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/com/android/photos/GalleryActivity.java b/src/com/android/photos/GalleryActivity.java index e62262666..420fc3d51 100644 --- a/src/com/android/photos/GalleryActivity.java +++ b/src/com/android/photos/GalleryActivity.java @@ -1,180 +1,180 @@ /* * Copyright (C) 2013 The Android Open Source Project * ...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mViewPager = new ViewPager(this); mViewPager.setId(R.id.root_view); setContentView(mViewPager); ActionBar ab = getActionBar(); ab.setNavigationMode(ActionBar.NAVIGATION_MODE_TAB...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mViewPager = new ViewPager(this); mViewPager.setId(R.id.viewpager); setContentView(mViewPager); ActionBar ab = getActionBar(); ab.setNavigationMode(ActionBar.NAVIGATION_MODE_TAB...
diff --git a/SimplePVPToggle/src/com/gmail/jameshealey1994/simplepvptoggle/commands/SimplePVPToggleCommandExecutor.java b/SimplePVPToggle/src/com/gmail/jameshealey1994/simplepvptoggle/commands/SimplePVPToggleCommandExecutor.java index 0b79a59..6e3e313 100644 --- a/SimplePVPToggle/src/com/gmail/jameshealey1994/simplepvp...
true
true
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { if (args.length > 0) { for (SimplePVPToggleCommand command : plugin.getCommands()) { if (command.getAliases().contains(args[1].toLowerCase())) { return command.e...
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { if (args.length > 0) { for (SimplePVPToggleCommand command : plugin.getCommands()) { if (command.getAliases().contains(args[0].toLowerCase())) { return command.e...
diff --git a/orbisgis-ui/src/main/java/org/orbisgis/core/ui/plugins/sql/SQLFunctionsPlugIn.java b/orbisgis-ui/src/main/java/org/orbisgis/core/ui/plugins/sql/SQLFunctionsPlugIn.java index 79c301191..d9d2675b4 100644 --- a/orbisgis-ui/src/main/java/org/orbisgis/core/ui/plugins/sql/SQLFunctionsPlugIn.java +++ b/orbisgis-u...
true
true
public void initialize(PlugInContext context) throws Exception { context.getFeatureInstaller().addRegisterFunction(MapContext_BBox.class); context.getFeatureInstaller().addRegisterFunction(MapContext_AddLayer.class); context.getFeatureInstaller().addRegisterFuncti...
public void initialize(PlugInContext context) throws Exception { context.getFeatureInstaller().addRegisterFunction(MapContext_BBox.class); context.getFeatureInstaller().addRegisterFunction(MapContext_AddLayer.class); // context.getFeatureInstaller().addRegisterFunc...
diff --git a/app/controllers/IssueApp.java b/app/controllers/IssueApp.java index e5331b3d..634f3aa4 100644 --- a/app/controllers/IssueApp.java +++ b/app/controllers/IssueApp.java @@ -1,391 +1,389 @@ package controllers; import models.*; import models.enumeration.*; import play.data.DynamicForm; import play.mvc...
false
true
public static Result massUpdate(String ownerName, String projectName) throws IOException { Form<IssueMassUpdate> issueMassUpdateForm = new Form<IssueMassUpdate>(IssueMassUpdate.class).bindFromRequest(); if (issueMassUpdateForm.hasErrors()) { return badRequest(issueMassUpd...
public static Result massUpdate(String ownerName, String projectName) throws IOException { Form<IssueMassUpdate> issueMassUpdateForm = new Form<IssueMassUpdate>(IssueMassUpdate.class).bindFromRequest(); if (issueMassUpdateForm.hasErrors()) { return badRequest(issueMassUpd...
diff --git a/src/net/java/sip/communicator/impl/neomedia/codec/video/SwScaler.java b/src/net/java/sip/communicator/impl/neomedia/codec/video/SwScaler.java index e85320e0b..452c83ddd 100644 --- a/src/net/java/sip/communicator/impl/neomedia/codec/video/SwScaler.java +++ b/src/net/java/sip/communicator/impl/neomedia/codec...
false
true
public int process(Buffer input, Buffer output) { if (!checkInputBuffer(input)) return BUFFER_PROCESSED_FAILED; if (isEOM(input)) { propagateEOM(output); // TODO: what about data? can there be any? return BUFFER_PROCESSED_OK; } Vid...
public int process(Buffer input, Buffer output) { if (!checkInputBuffer(input)) return BUFFER_PROCESSED_FAILED; if (isEOM(input)) { propagateEOM(output); // TODO: what about data? can there be any? return BUFFER_PROCESSED_OK; } Vid...
diff --git a/src/main/java/liquibase/ext/ora/addcheck/AddCheckGenerator.java b/src/main/java/liquibase/ext/ora/addcheck/AddCheckGenerator.java index 6714747..8438283 100644 --- a/src/main/java/liquibase/ext/ora/addcheck/AddCheckGenerator.java +++ b/src/main/java/liquibase/ext/ora/addcheck/AddCheckGenerator.java @@ -1,6...
true
true
public Sql[] generateSql(AddCheckStatement statement, Database database, SqlGeneratorChain sqlGeneratorChain) { StringBuilder sql = new StringBuilder(); sql.append("ALTER TABLE ").append(database.escapeTableName(null, statement.getSchemaName(), statement.getTableName()...
public Sql[] generateSql(AddCheckStatement statement, Database database, SqlGeneratorChain sqlGeneratorChain) { StringBuilder sql = new StringBuilder(); sql.append("ALTER TABLE ").append(database.escapeTableName(null, statement.getSchemaName(), statement.getTableName()...
diff --git a/src/BotClientSender.java b/src/BotClientSender.java index b079209..8397e18 100644 --- a/src/BotClientSender.java +++ b/src/BotClientSender.java @@ -1,33 +1,33 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author geza */ impor...
false
true
public void start() { try { origim.publish(origI); origim.publish(procI); java.lang.Thread.sleep(1000); } catch (Exception e) { e.printStackTrace(); } }
public void start() { try { java.lang.Thread.sleep(1000); origim.publish(origI); origim.publish(procI); } catch (Exception e) { e.printStackTrace(); } }
diff --git a/src/com/android/gallery3d/filtershow/PanelController.java b/src/com/android/gallery3d/filtershow/PanelController.java index 6694e37f6..2a97e7e53 100644 --- a/src/com/android/gallery3d/filtershow/PanelController.java +++ b/src/com/android/gallery3d/filtershow/PanelController.java @@ -1,588 +1,588 @@ /* *...
true
true
public void showComponent(View view) { boolean doPanelTransition = true; if (view instanceof FilterIconButton) { ImageFilter f = ((FilterIconButton) view).getImageFilter(); if (f != null) { // FIXME: this check shouldn't be necessary doPanelTr...
public void showComponent(View view) { boolean doPanelTransition = true; if (view instanceof FilterIconButton) { ImageFilter f = ((FilterIconButton) view).getImageFilter(); if (f != null) { // FIXME: this check shouldn't be necessary doPanelTr...
diff --git a/MODSRC/vazkii/tinkerer/client/render/tile/RenderTileWardChest.java b/MODSRC/vazkii/tinkerer/client/render/tile/RenderTileWardChest.java index b30bdd6f..0194da80 100644 --- a/MODSRC/vazkii/tinkerer/client/render/tile/RenderTileWardChest.java +++ b/MODSRC/vazkii/tinkerer/client/render/tile/RenderTileWardChes...
false
true
public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) { int meta = tileentity.worldObj == null ? 3 : tileentity.getBlockMetadata(); int rotation = meta == 2 ? 180 : meta == 3 ? 0 : meta == 4 ? 90 : 270; GL11.glPushMatrix(); GL11.glEnable(GL12.GL_RESCALE_NORMA...
public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) { int meta = tileentity.worldObj == null ? 3 : tileentity.getBlockMetadata(); int rotation = meta == 2 ? 180 : meta == 3 ? 0 : meta == 4 ? 90 : 270; GL11.glPushMatrix(); GL11.glEnable(GL12.GL_RESCALE_NORMA...
diff --git a/source/com/mucommander/ui/icon/IconManager.java b/source/com/mucommander/ui/icon/IconManager.java index 9cb25e1b..c114ccaf 100644 --- a/source/com/mucommander/ui/icon/IconManager.java +++ b/source/com/mucommander/ui/icon/IconManager.java @@ -1,190 +1,191 @@ package com.mucommander.ui.icon; import com...
true
true
public static ImageIcon getIcon(int iconSet, String iconName, float scaleFactor) { Hashtable cache = caches[iconSet]; ImageIcon icon; if(cache==null) { // No caching, simply create the icon icon = getIcon(ICON_SET_FOLDERS[iconSet]+iconName); } else { ...
public static ImageIcon getIcon(int iconSet, String iconName, float scaleFactor) { Hashtable cache = caches[iconSet]; ImageIcon icon; if(cache==null) { // No caching, simply create the icon icon = getIcon(ICON_SET_FOLDERS[iconSet]+iconName); } else { ...
diff --git a/src/org/eclipse/core/tests/resources/NatureTest.java b/src/org/eclipse/core/tests/resources/NatureTest.java index cfb8117..8c9d96f 100644 --- a/src/org/eclipse/core/tests/resources/NatureTest.java +++ b/src/org/eclipse/core/tests/resources/NatureTest.java @@ -1,348 +1,348 @@ /*****************************...
true
true
public void testBug297871() { IWorkspace ws = ResourcesPlugin.getWorkspace(); Project project = (Project) ws.getRoot().getProject("Project"); ensureExistsInWorkspace(project, true); java.io.File desc = null; try { IFileStore descStore = ((File) project.getFile(IProjectDescription.DESCRIPTION_FILE_NAME))....
public void testBug297871() { IWorkspace ws = ResourcesPlugin.getWorkspace(); Project project = (Project) ws.getRoot().getProject("Project"); ensureExistsInWorkspace(project, true); java.io.File desc = null; try { IFileStore descStore = ((File) project.getFile(IProjectDescription.DESCRIPTION_FILE_NAME))....
diff --git a/RallyInterviewExercise/src/Spiral.java b/RallyInterviewExercise/src/Spiral.java index e6fd74d..40aba5b 100644 --- a/RallyInterviewExercise/src/Spiral.java +++ b/RallyInterviewExercise/src/Spiral.java @@ -1,85 +1,85 @@ /** * The Class Spiral. */ public class Spiral { // the number of integers ...
true
true
private void showSpiralList() { displayMatrix[center][center] = 0; // create the spiral in a display matrix to be show later while (count < spiralLength) { insertIntoMatrix(true); insertIntoMatrix(false); } // used to evaluate the display length for each number int numberWidth = String.valueOf(spi...
private void showSpiralList() { displayMatrix[center][center] = 0; // create the spiral in a display matrix to be shown later while (count < spiralLength) { insertIntoMatrix(true); insertIntoMatrix(false); } // used to evaluate the display length for each number int numberWidth = String.valueOf(sp...
diff --git a/src/plugins/floghelper/ui/FlogListToadlet.java b/src/plugins/floghelper/ui/FlogListToadlet.java index fc9ef0d..4f1e453 100644 --- a/src/plugins/floghelper/ui/FlogListToadlet.java +++ b/src/plugins/floghelper/ui/FlogListToadlet.java @@ -1,239 +1,239 @@ /* FlogHelper, Freenet plugin to create flogs * Copy...
true
true
public void getPagePost(final PageNode pageNode, final URI uri, final HTTPRequest request, final ToadletContext ctx) throws ToadletContextClosedException, IOException { if (request.isPartSet("FlogToDelete") || request.isPartSet("FlogToReallyDelete")) { final String idToDelete = request.getPartAsString("FlogToDele...
public void getPagePost(final PageNode pageNode, final URI uri, final HTTPRequest request, final ToadletContext ctx) throws ToadletContextClosedException, IOException { if (request.isPartSet("FlogToDelete") || request.isPartSet("FlogToReallyDelete")) { final String idToDelete = request.getPartAsString("FlogToDele...
diff --git a/SWADroid/src/es/ugr/swad/swadroid/modules/notifications/NotificationsCursorAdapter.java b/SWADroid/src/es/ugr/swad/swadroid/modules/notifications/NotificationsCursorAdapter.java index dbe290b3..ffac7665 100644 --- a/SWADroid/src/es/ugr/swad/swadroid/modules/notifications/NotificationsCursorAdapter.java +++...
true
true
public void bindView(View view, Context context, Cursor cursor) { final Context ctx = context; final Long notificationCode = cursor.getLong(cursor.getColumnIndex("id")); long unixTime; String type, sender, senderFirstname, senderSurname1, senderSurname2, summaryText; String contentText; String[] dateConten...
public void bindView(View view, Context context, Cursor cursor) { final Context ctx = context; final Long notificationCode = cursor.getLong(cursor.getColumnIndex("id")); long unixTime; String type, sender, senderFirstname, senderSurname1, senderSurname2, summaryText; String contentText; String[] dateConten...
diff --git a/src/main/java/com/thoughtworks/lirenlab/interfaces/common/filters/SetCharacterEncodingFilter.java b/src/main/java/com/thoughtworks/lirenlab/interfaces/common/filters/SetCharacterEncodingFilter.java index 86d0a1c..abbab64 100644 --- a/src/main/java/com/thoughtworks/lirenlab/interfaces/common/filters/SetChar...
true
true
public void init(final FilterConfig filterConfig) throws ServletException { String encoding = filterConfig.getInitParameter(ENCODING); checkState(encoding != null, "encoding must be set"); }
public void init(final FilterConfig filterConfig) throws ServletException { encoding = filterConfig.getInitParameter(ENCODING); checkState(encoding != null, "encoding must be set"); }
diff --git a/drools-core/src/main/java/org/drools/audit/WorkingMemoryLogger.java b/drools-core/src/main/java/org/drools/audit/WorkingMemoryLogger.java index 8f7ed0f284..71cf7839df 100644 --- a/drools-core/src/main/java/org/drools/audit/WorkingMemoryLogger.java +++ b/drools-core/src/main/java/org/drools/audit/WorkingMem...
true
true
private String extractDeclarations(final Activation activation, final WorkingMemory workingMemory) { final StringBuffer result = new StringBuffer(); final Tuple tuple = activation.getTuple(); final Map declarations = activation.getSubRule().getOuterDeclarations(); for ( Iterator it ...
private String extractDeclarations(final Activation activation, final WorkingMemory workingMemory) { final StringBuffer result = new StringBuffer(); final Tuple tuple = activation.getTuple(); final Map declarations = activation.getSubRule().getOuterDeclarations(); for ( Iterator it ...
diff --git a/cq-package-plugin/src/test/java/com/sixdimensions/wcm/cq/pack/PackageManagerServiceImplTest.java b/cq-package-plugin/src/test/java/com/sixdimensions/wcm/cq/pack/PackageManagerServiceImplTest.java index 71995e1..26f4a4d 100644 --- a/cq-package-plugin/src/test/java/com/sixdimensions/wcm/cq/pack/PackageManage...
true
true
public void init(){ log.info("Init"); PackageManagerConfig config = new PackageManagerConfig(); config.setHost("http://poc.crownpartners.com"); config.setPort("4502"); config.setUseLegacy(false); config.setUser("admin"); config.setPassword("admin"); config.setErrorOnFailure(true); config.setLog(log)...
public void init(){ log.info("Init"); PackageManagerConfig config = new PackageManagerConfig(); config.setHost("http://poc.crownpartners.com"); config.setPort("4502"); config.setUseLegacy(false); config.setUser("admin"); config.setPassword("admin"); config.setErrorOnFailure(false); config.setLog(log...
diff --git a/opentripplanner-updater/src/main/java/org/opentripplanner/updater/UpdateHandler.java b/opentripplanner-updater/src/main/java/org/opentripplanner/updater/UpdateHandler.java index 228422a2a..294696d3c 100644 --- a/opentripplanner-updater/src/main/java/org/opentripplanner/updater/UpdateHandler.java +++ b/open...
true
true
private void handleAlert(String id, GtfsRealtime.Alert alert) { Alert alertText = new Alert(); alertText.alertDescriptionText = deBuffer(alert.getDescriptionText()); alertText.alertHeaderText = deBuffer(alert.getHeaderText()); alertText.alertUrl = deBuffer(alert.getUrl()); Ar...
private void handleAlert(String id, GtfsRealtime.Alert alert) { Alert alertText = new Alert(); alertText.alertDescriptionText = deBuffer(alert.getDescriptionText()); alertText.alertHeaderText = deBuffer(alert.getHeaderText()); alertText.alertUrl = deBuffer(alert.getUrl()); Ar...
diff --git a/dependency-shot-aop/src/main/java/cx/ath/mancel01/dependencyshot/aop/ProxyHelper.java b/dependency-shot-aop/src/main/java/cx/ath/mancel01/dependencyshot/aop/ProxyHelper.java index ef41ee5..796c1c8 100644 --- a/dependency-shot-aop/src/main/java/cx/ath/mancel01/dependencyshot/aop/ProxyHelper.java +++ b/depen...
true
true
public static <T> T createProxy( Object bean, MethodInvocationHandler handler) { ProxyFactory fact = new ProxyFactory(); Class<T> from = handler.getFrom(); Class<? extends T> to = handler.getTo(); if (from.isInterface()) { fact.setInterfaces(new Class[] {from}...
public static <T> T createProxy( Object bean, MethodInvocationHandler handler) { ProxyFactory fact = new ProxyFactory(); Class<T> from = handler.getFrom(); Class<? extends T> to = handler.getTo(); if (from.isInterface()) { fact.setInterfaces(new Class[] {from}...
diff --git a/bundles/org.eclipse.orion.server.servlets/src/org/eclipse/orion/internal/server/servlets/workspace/ProjectParentDecorator.java b/bundles/org.eclipse.orion.server.servlets/src/org/eclipse/orion/internal/server/servlets/workspace/ProjectParentDecorator.java index 17429165..b3715310 100644 --- a/bundles/org.e...
false
true
private void addParents(URI resource, JSONObject representation, IPath resourcePath) throws JSONException { //start at parent of current resource resourcePath = resourcePath.removeLastSegments(1).addTrailingSeparator(); JSONArray parents = new JSONArray(); //for all but the project we can just manipulate the p...
private void addParents(URI resource, JSONObject representation, IPath resourcePath) throws JSONException { //start at parent of current resource resourcePath = resourcePath.removeLastSegments(1).addTrailingSeparator(); JSONArray parents = new JSONArray(); //for all but the project we can just manipulate the p...
diff --git a/src/main/java/com/ning/http/util/AsyncHttpProviderUtils.java b/src/main/java/com/ning/http/util/AsyncHttpProviderUtils.java index c9e88506b..c0dcc5e83 100644 --- a/src/main/java/com/ning/http/util/AsyncHttpProviderUtils.java +++ b/src/main/java/com/ning/http/util/AsyncHttpProviderUtils.java @@ -1,494 +1,49...
true
true
public static Cookie parseCookie(String value) { String[] fields = value.split(";\\s*"); String[] cookie = fields[0].split("="); String cookieName = cookie[0]; String cookieValue = cookie[1]; int maxAge = -1; String path = null; String domain = null; b...
public static Cookie parseCookie(String value) { String[] fields = value.split(";\\s*"); String[] cookie = fields[0].split("="); String cookieName = cookie[0]; String cookieValue = cookie[1]; int maxAge = -1; String path = null; String domain = null; b...
diff --git a/main/src/org/gameflow/utils/ImageRef.java b/main/src/org/gameflow/utils/ImageRef.java index c74f357..594a883 100644 --- a/main/src/org/gameflow/utils/ImageRef.java +++ b/main/src/org/gameflow/utils/ImageRef.java @@ -1,161 +1,163 @@ package org.gameflow.utils; import com.badlogic.gdx.graphics.g2d.Sprite...
true
true
public void render(float x, float y, TextureAtlas atlas, SpriteBatch spriteBatch) { if (imageName != null) { if (image == null) image = atlas.findRegion(imageName, imageIndex); float w = image.getRegionWidth(); float h = image.getRegionHeight(); float originY...
public void render(float x, float y, TextureAtlas atlas, SpriteBatch spriteBatch) { if (imageName != null) { if (image == null) image = atlas.findRegion(imageName, imageIndex); if (image != null) { float w = image.getRegionWidth(); float h = image.get...
diff --git a/dspace-api/src/main/java/org/dspace/app/statistics/LogAnalyser.java b/dspace-api/src/main/java/org/dspace/app/statistics/LogAnalyser.java index 9a2bc5ab2..03f750834 100644 --- a/dspace-api/src/main/java/org/dspace/app/statistics/LogAnalyser.java +++ b/dspace-api/src/main/java/org/dspace/app/statistics/LogA...
true
true
public static void processLogs(Context context, String myLogDir, String myFileTemplate, String myConfigFile, String myOutFile, Date myStartDate, Date myEndDate, boolean myLookUp) throws IOException...
public static void processLogs(Context context, String myLogDir, String myFileTemplate, String myConfigFile, String myOutFile, Date myStartDate, Date myEndDate, boolean myLookUp) throws IOException...
diff --git a/phone/com/android/internal/policy/impl/PhoneWindowManager.java b/phone/com/android/internal/policy/impl/PhoneWindowManager.java index d376341..135dc83 100755 --- a/phone/com/android/internal/policy/impl/PhoneWindowManager.java +++ b/phone/com/android/internal/policy/impl/PhoneWindowManager.java @@ -1,2227 ...
false
true
public int interceptKeyTq(RawInputEvent event, boolean screenIsOn) { int result = ACTION_PASS_TO_USER; final boolean isWakeKey = isWakeKeyTq(event); final boolean keyguardShowing = keyguardIsShowingTq(); if (false) { Log.d(TAG, "interceptKeyTq event=" + event + " keycode...
public int interceptKeyTq(RawInputEvent event, boolean screenIsOn) { int result = ACTION_PASS_TO_USER; final boolean isWakeKey = isWakeKeyTq(event); final boolean keyguardShowing = keyguardIsShowingTq(); if (false) { Log.d(TAG, "interceptKeyTq event=" + event + " keycode...
diff --git a/messages-core/src/main/java/org/ybiquitous/messages/Utils.java b/messages-core/src/main/java/org/ybiquitous/messages/Utils.java index 1010256..5fb7c49 100644 --- a/messages-core/src/main/java/org/ybiquitous/messages/Utils.java +++ b/messages-core/src/main/java/org/ybiquitous/messages/Utils.java @@ -1,42 +1...
true
true
public static @Nonnull <T> T notNull( @Nullable T obj, @Nullable String name) throws NullPointerException { if (obj == null) { if (name == null) { throw new NullPointerException(); } else { throw new NullPointerException(name +...
public static @Nonnull <T> T notNull( @Nonnull T obj, @Nullable String name) throws NullPointerException { if (obj == null) { if (name == null) { throw new NullPointerException(); } else { throw new NullPointerException(name + ...
diff --git a/openejb/tomee/tomee-webapp/src/main/java/org/apache/tomee/webapp/JsonExecutor.java b/openejb/tomee/tomee-webapp/src/main/java/org/apache/tomee/webapp/JsonExecutor.java index e19a0b4ee..bc1aba0be 100644 --- a/openejb/tomee/tomee-webapp/src/main/java/org/apache/tomee/webapp/JsonExecutor.java +++ b/openejb/to...
true
true
public static void execute(final HttpServletResponse resp, final Executor executor) { try { final Map<String, Object> result = new HashMap<String, Object>(); executor.call(result); resp.setContentType("application/json"); resp.setCharacterEncoding("UTF-8"); ...
public static void execute(final HttpServletResponse resp, final Executor executor) { try { final Map<String, Object> result = new HashMap<String, Object>(); executor.call(result); resp.setContentType("application/json"); resp.setCharacterEncoding("UTF-8"); ...
diff --git a/backend/transparent/core/Core.java b/backend/transparent/core/Core.java index 4071fde..1910de8 100644 --- a/backend/transparent/core/Core.java +++ b/backend/transparent/core/Core.java @@ -1,844 +1,846 @@ package transparent.core; import java.io.BufferedReader; import java.io.File; import java.io.File...
false
true
public static void main(String[] args) { AnsiConsole.systemInstall(); /* parse argument flags */ String script = DEFAULT_SCRIPT; for (int i = 0; i < args.length; i++) { if (args[i].equals(SCRIPT_FLAG)) { if (i + 1 < args.length) { i++; script = args[i]; } else { Console.printError("...
public static void main(String[] args) { AnsiConsole.systemInstall(); /* parse argument flags */ String script = DEFAULT_SCRIPT; for (int i = 0; i < args.length; i++) { if (args[i].equals(SCRIPT_FLAG)) { if (i + 1 < args.length) { i++; script = args[i]; } else { Console.printError("...
diff --git a/src/org/ohmage/triggers/types/location/LocTrigSettingsActivity.java b/src/org/ohmage/triggers/types/location/LocTrigSettingsActivity.java index b18b40a..d230f83 100644 --- a/src/org/ohmage/triggers/types/location/LocTrigSettingsActivity.java +++ b/src/org/ohmage/triggers/types/location/LocTrigSettingsActiv...
true
true
protected Dialog onCreateDialog(int id) { switch(id) { case DIALOG_DELETE: AlertDialog dialog = new AlertDialog.Builder(this) .setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface d...
protected Dialog onCreateDialog(int id) { switch(id) { case DIALOG_DELETE: AlertDialog dialog = new AlertDialog.Builder(this) .setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface d...
diff --git a/src/org/dazzlewire/Guilder/Guilder.java b/src/org/dazzlewire/Guilder/Guilder.java index ea74f61..d9746cb 100644 --- a/src/org/dazzlewire/Guilder/Guilder.java +++ b/src/org/dazzlewire/Guilder/Guilder.java @@ -1,631 +1,631 @@ package org.dazzlewire.Guilder; // Java imports import java.io.File; import j...
false
true
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){ // Check if the command /g is used if(cmd.getName().equalsIgnoreCase("g")) { // Check if the sender is a player if(sender instanceof Player) { // Check if the player is sending a message (in the arg...
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){ // Check if the command /g is used if(cmd.getName().equalsIgnoreCase("g")) { // Check if the sender is a player if(sender instanceof Player) { // Check if the player is sending a message (in the arg...
diff --git a/test/Strings.java b/test/Strings.java index 01082559..16ad24cd 100644 --- a/test/Strings.java +++ b/test/Strings.java @@ -1,29 +1,32 @@ package test; public class Strings { public static void main(String[] args) { String a = "alphabet"; String b = "belvedere"; String c = "AlPhAbEt"; ...
false
true
public static void main(String[] args) { String a = "alphabet"; String b = "belvedere"; String c = "AlPhAbEt"; String d = " \t alphabet \n \t "; int ia = 5; int ib = 6; System.out.println(a.contains("phab")); System.out.println(a.contains(b)); System.out.println(a.startsWith("al...
public static void main(String[] args) { String a = "alphabet"; String b = "belvedere"; String c = "AlPhAbEt"; String d = " \t alphabet \n \t "; int ia = 5; int ib = 6; System.out.println(a.contains("phab")); System.out.println(a.contains(b)); System.out.println(a.startsWith("al...
diff --git a/runtime/ceylon/language/Ordinal$impl.java b/runtime/ceylon/language/Ordinal$impl.java index 9c8e0769..ed274247 100644 --- a/runtime/ceylon/language/Ordinal$impl.java +++ b/runtime/ceylon/language/Ordinal$impl.java @@ -1,5 +1,5 @@ package ceylon.language; public class Ordinal$impl<Other extends Ordinal<...
true
true
public Ordinal$impl(Ordinal<Other> $this) {}
public Ordinal$impl(Ordinal<? extends Other> $this) {}
diff --git a/geoserver/web/src/main/java/org/geoserver/GeoserverInitStartupListener.java b/geoserver/web/src/main/java/org/geoserver/GeoserverInitStartupListener.java index 83687695f9..0159318e76 100644 --- a/geoserver/web/src/main/java/org/geoserver/GeoserverInitStartupListener.java +++ b/geoserver/web/src/main/java/o...
true
true
public void contextInitialized(ServletContextEvent sce) { // if the server admin did not set it up otherwise, force X/Y axis // ordering // This one is a good place because we need to initialize this property // before any other opeation can trigger the initialization of the CRS ...
public void contextInitialized(ServletContextEvent sce) { // if the server admin did not set it up otherwise, force X/Y axis // ordering // This one is a good place because we need to initialize this property // before any other opeation can trigger the initialization of the CRS ...
diff --git a/src/com/btmura/android/reddit/content/ProfileThingLoader.java b/src/com/btmura/android/reddit/content/ProfileThingLoader.java index 61509aae..f4cc21d7 100644 --- a/src/com/btmura/android/reddit/content/ProfileThingLoader.java +++ b/src/com/btmura/android/reddit/content/ProfileThingLoader.java @@ -1,71 +1,7...
true
true
public ProfileThingLoader(Context context, String accountName, String profileUser, int filter, String more) { super(context); this.accountName = accountName; this.profileUser = profileUser; this.filter = filter; this.more = more; setUri(ThingProvider.THIN...
public ProfileThingLoader(Context context, String accountName, String profileUser, int filter, String more) { super(context); this.accountName = accountName; this.profileUser = profileUser; this.filter = filter; this.more = more; setUri(ThingProvider.THIN...
diff --git a/MyParser.java b/MyParser.java index 78aba42..b5c16a8 100755 --- a/MyParser.java +++ b/MyParser.java @@ -1,817 +1,817 @@ //--------------------------------------------------------------------- // //--------------------------------------------------------------------- import java_cup.runtime.*; impo...
true
true
STO DoFuncCall(STO sto, Vector<ExprSTO> args) { if(!sto.isFunc()) { m_nNumErrors++; m_errors.print(Formatter.toString(ErrorMsg.not_function, sto.getName())); return (new ErrorSTO(sto.getName())); } // We know it's a function, do functi...
STO DoFuncCall(STO sto, Vector<ExprSTO> args) { if(!sto.isFunc()) { m_nNumErrors++; m_errors.print(Formatter.toString(ErrorMsg.not_function, sto.getName())); return (new ErrorSTO(sto.getName())); } // We know it's a function, do functi...
diff --git a/Comecocos/src/Escenario.java b/Comecocos/src/Escenario.java index 2ae148e..764eced 100644 --- a/Comecocos/src/Escenario.java +++ b/Comecocos/src/Escenario.java @@ -1,78 +1,79 @@ import java.awt.Dimension; import java.awt.Graphics; import java.awt.event.ActionEvent; import java.awt.event.ActionListener;...
true
true
public Escenario() { setPreferredSize(new Dimension(l.getImagen().getWidth(),l.getImagen().getHeight())); registerKeyboardAction(this, "iniciar", KeyStroke.getKeyStroke(KeyEvent.VK_I, 0), JComponent.WHEN_IN_FOCUSED_WINDOW); registerKeyboardAction(this, "arriba", KeyStroke.getKeyStroke(KeyEvent....
public Escenario() { direccion=pacman.getDireccion(); setPreferredSize(new Dimension(l.getImagen().getWidth(),l.getImagen().getHeight())); registerKeyboardAction(this, "iniciar", KeyStroke.getKeyStroke(KeyEvent.VK_I, 0), JComponent.WHEN_IN_FOCUSED_WINDOW); registerKeyboardAction(this, "arriba", ...
diff --git a/bundles/org.eclipse.emf.emfstore.server/src/org/eclipse/emf/emfstore/internal/server/connection/xmlrpc/XmlRpcWebserverManager.java b/bundles/org.eclipse.emf.emfstore.server/src/org/eclipse/emf/emfstore/internal/server/connection/xmlrpc/XmlRpcWebserverManager.java index 5ed726b1e..2f149b3f9 100644 --- a/bun...
true
true
public void initServer() throws FatalESException { if (webServer != null) { return; } try { webServer = new EMFStoreWebServer(port) { @Override protected ServerSocket createServerSocket(int pPort, int backlog, InetAddress addr) throws IOException { SSLServerSocketFactory serverSocketFactory ...
public void initServer() throws FatalESException { if (webServer != null) { return; } try { webServer = new WebServer(port) { @Override protected ServerSocket createServerSocket(int pPort, int backlog, InetAddress addr) throws IOException { SSLServerSocketFactory serverSocketFactory = null; ...
diff --git a/org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/editor/PatchSetSection.java b/org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/editor/PatchSetSection.java index baa2d60c..3ca3d329 100644 --- a/org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/edit...
true
true
void createSubSectionContents(final ChangeDetail changeDetail, final PatchSetDetail patchSetDetail, PatchSetPublishDetail publishDetail, Section subSection) { Composite composite = toolkit.createComposite(subSection); GridLayoutFactory.fillDefaults().numColumns(2).applyTo(composite); subSection.setClient(comp...
void createSubSectionContents(final ChangeDetail changeDetail, final PatchSetDetail patchSetDetail, PatchSetPublishDetail publishDetail, Section subSection) { Composite composite = toolkit.createComposite(subSection); GridLayoutFactory.fillDefaults().numColumns(2).applyTo(composite); subSection.setClient(comp...
diff --git a/de.gebit.integrity.dsl/src/de/gebit/integrity/parameter/conversion/conversions/integrity/nestedobjects/AbstractNestedObjectToString.java b/de.gebit.integrity.dsl/src/de/gebit/integrity/parameter/conversion/conversions/integrity/nestedobjects/AbstractNestedObjectToString.java index fdf00db4..384e4081 100644...
true
true
protected FormattedString convertToFormattedString(NestedObject aSource, UnresolvableVariableHandling anUnresolvableVariableHandlingPolicy) throws ConversionFailedException { FormattedString tempBuffer = new FormattedString("{"); tempBuffer.add(new FormatTokenElement(FormatTokenType.NEWLINE)); Integer tempDe...
protected FormattedString convertToFormattedString(NestedObject aSource, UnresolvableVariableHandling anUnresolvableVariableHandlingPolicy) throws ConversionFailedException { FormattedString tempBuffer = new FormattedString("{"); tempBuffer.add(new FormatTokenElement(FormatTokenType.NEWLINE)); Integer tempDe...
diff --git a/src/examples/wikisearch/ingest/src/main/java/org/apache/accumulo/examples/wikisearch/ingest/WikipediaInputFormat.java b/src/examples/wikisearch/ingest/src/main/java/org/apache/accumulo/examples/wikisearch/ingest/WikipediaInputFormat.java index 4c6a3b8e0..e8b8b5224 100644 --- a/src/examples/wikisearch/inges...
false
true
public List<InputSplit> getSplits(JobContext job) throws IOException { List<InputSplit> superSplits = super.getSplits(job); List<WikipediaInputSplit> splits = new ArrayList<WikipediaInputSplit>(); int numGroups = WikipediaConfiguration.getNumGroups(job.getConfiguration()); for(InputSplit split:s...
public List<InputSplit> getSplits(JobContext job) throws IOException { List<InputSplit> superSplits = super.getSplits(job); List<InputSplit> splits = new ArrayList<InputSplit>(); int numGroups = WikipediaConfiguration.getNumGroups(job.getConfiguration()); for(InputSplit split:superSplits) { ...
diff --git a/src/com/android/timezonepicker/TimeZoneFilterTypeAdapter.java b/src/com/android/timezonepicker/TimeZoneFilterTypeAdapter.java index 65bd530..ffc699b 100644 --- a/src/com/android/timezonepicker/TimeZoneFilterTypeAdapter.java +++ b/src/com/android/timezonepicker/TimeZoneFilterTypeAdapter.java @@ -1,392 +1,40...
false
true
protected FilterResults performFiltering(CharSequence prefix) { Log.e(TAG, "performFiltering >>>> [" + prefix + "]"); FilterResults results = new FilterResults(); String prefixString = null; if (prefix != null) { prefixString = prefix.toString().t...
protected FilterResults performFiltering(CharSequence prefix) { Log.e(TAG, "performFiltering >>>> [" + prefix + "]"); FilterResults results = new FilterResults(); String prefixString = null; if (prefix != null) { prefixString = prefix.toString().t...
diff --git a/src/test/java/org/chaoticbits/collabcloud/vc/svn/SVNRepoMaker.java b/src/test/java/org/chaoticbits/collabcloud/vc/svn/SVNRepoMaker.java index 030da57..90881e4 100755 --- a/src/test/java/org/chaoticbits/collabcloud/vc/svn/SVNRepoMaker.java +++ b/src/test/java/org/chaoticbits/collabcloud/vc/svn/SVNRepoMaker....
true
true
private static void importProject(SVNRepository repo) throws Exception { log.info("Import the project..."); repo.setAuthenticationManager(andyMeneely); ISVNEditor editor = repo.getCommitEditor("import project", null /* locks */, true /* keepLocks */, null /* mediator */); editor.openRoot(-1); List<File> file...
private static void importProject(SVNRepository repo) throws Exception { log.info("Import the project..."); repo.setAuthenticationManager(andyMeneely); ISVNEditor editor = repo.getCommitEditor("import project", null /* locks */, true /* keepLocks */, null /* mediator */); editor.openRoot(-1); List<File> file...
diff --git a/software/ncimbrowser/src/java/gov/nih/nci/evs/browser/utils/HTTPUtils.java b/software/ncimbrowser/src/java/gov/nih/nci/evs/browser/utils/HTTPUtils.java index 01baef26..3dab7cc4 100644 --- a/software/ncimbrowser/src/java/gov/nih/nci/evs/browser/utils/HTTPUtils.java +++ b/software/ncimbrowser/src/java/gov/ni...
true
true
public static String cleanXSS(String value) { if (value == null || value.length() < 1) return value; try { value = URLDecoder.decode(value, "UTF-8"); } catch (UnsupportedEncodingException e) { // Do nothing, just use the input } catch (IllegalArg...
public static String cleanXSS(String value) { if (value == null || value.length() < 1) return value; try { value = URLDecoder.decode(value, "UTF-8"); } catch (UnsupportedEncodingException e) { // Do nothing, just use the input } catch (IllegalArg...
diff --git a/src/test/java/uk/ac/ebi/fgpt/sampletab/TestFileUtils.java b/src/test/java/uk/ac/ebi/fgpt/sampletab/TestFileUtils.java index 61986a06..f9c39ba9 100644 --- a/src/test/java/uk/ac/ebi/fgpt/sampletab/TestFileUtils.java +++ b/src/test/java/uk/ac/ebi/fgpt/sampletab/TestFileUtils.java @@ -1,77 +1,77 @@ package uk...
false
true
public void testFileFilterRegex() { //first create a bunch of likely files //First //A1.txt //A2.txt //Second //A1.txt //A2.txt File first = new File("First"); if (!first.exists()) first.mkdir(); File ...
public void testFileFilterRegex() { //first create a bunch of likely files //First //A1.txt //A2.txt //Second //A1.txt //A2.txt File first = new File("First"); if (!first.exists()) first.mkdir(); File ...
diff --git a/src/wjhk/jupload2/upload/DefaultFileUploadThread.java b/src/wjhk/jupload2/upload/DefaultFileUploadThread.java index 8ad7b84..8cf5124 100644 --- a/src/wjhk/jupload2/upload/DefaultFileUploadThread.java +++ b/src/wjhk/jupload2/upload/DefaultFileUploadThread.java @@ -1,570 +1,570 @@ // // $Id: DefaultFileUpl...
true
true
final private void doChunkedUpload(final long totalContentLength, final long totalFileLength) throws JUploadException { boolean bLastChunk = false; int chunkPart = 0; long contentLength = 0; long thisChunkSize = 0; // No more than one file, when in chunk mode. ...
final private void doChunkedUpload(final long totalContentLength, final long totalFileLength) throws JUploadException { boolean bLastChunk = false; int chunkPart = 0; long contentLength = 0; long thisChunkSize = 0; // No more than one file, when in chunk mode. ...
diff --git a/src/at/ac/tuwien/lsdc/mape/Planner.java b/src/at/ac/tuwien/lsdc/mape/Planner.java index 406c1fe..8f07119 100644 --- a/src/at/ac/tuwien/lsdc/mape/Planner.java +++ b/src/at/ac/tuwien/lsdc/mape/Planner.java @@ -1,8 +1,8 @@ package at.ac.tuwien.lsdc.mape; import at.ac.tuwien.lsdc.actions.Action; public ...
true
true
public Action selectAction(App app);
public abstract Action selectAction(Problem problem);
diff --git a/src/powercrystals/minefactoryreloaded/tile/machine/TileEntityRedNote.java b/src/powercrystals/minefactoryreloaded/tile/machine/TileEntityRedNote.java index 2770a82c..003dffa7 100644 --- a/src/powercrystals/minefactoryreloaded/tile/machine/TileEntityRedNote.java +++ b/src/powercrystals/minefactoryreloaded/t...
true
true
public void onRedNetChanged(int value) { if(value < 0 || value > 125) { return; } if(_playedLastChange) { _playedLastChange = false; return; } else { _playedLastChange = true; } int instrument = value / 25; int note = value % 25; float f = (float)Math.pow(2.0D, (note - 12)...
public void onRedNetChanged(int value) { if(value < 0 || value > 119) { return; } if(_playedLastChange) { _playedLastChange = false; return; } else { _playedLastChange = true; } int instrument = value / 25; int note = value % 25; float f = (float)Math.pow(2.0D, (note - 12)...
diff --git a/LaTeXDraw/src/net/sf/latexdraw/glib/views/Java2D/impl/LViewsFactory.java b/LaTeXDraw/src/net/sf/latexdraw/glib/views/Java2D/impl/LViewsFactory.java index 613dcdf8..55a5a986 100644 --- a/LaTeXDraw/src/net/sf/latexdraw/glib/views/Java2D/impl/LViewsFactory.java +++ b/LaTeXDraw/src/net/sf/latexdraw/glib/views/...
false
true
private void initCommands() { CreateView2DCmd cmd = new CreateView2DCmd(null, IPicture.class) { @Override public IViewShape create(final IShape shape) { return new LPictureView((IPicture)shape); } }; cmd = new CreateView2DCmd(cmd, IFreehand.class) { @Override public IViewShape create(final IShape shape) { return ...
private void initCommands() { CreateView2DCmd cmd = new CreateView2DCmd(null, IPicture.class) { @Override public IViewShape create(final IShape shape) { return new LPictureView((IPicture)shape); } }; cmd = new CreateView2DCmd(cmd, IFreehand.class) { @Override public IViewShape create(final IShape shape) { return ...
diff --git a/applications/rainbow/src/main/java/net/sf/okapi/applications/rainbow/batchconfig/BatchConfiguration.java b/applications/rainbow/src/main/java/net/sf/okapi/applications/rainbow/batchconfig/BatchConfiguration.java index 95732b7cf..f33fdd392 100644 --- a/applications/rainbow/src/main/java/net/sf/okapi/applica...
true
true
public void installConfiguration (String configPath, String outputDir, Map<String, StepInfo> availableSteps) { RandomAccessFile raf = null; PrintWriter pw = null; try { raf = new RandomAccessFile(configPath, "r"); String tmp = raf.readUTF(); // signature if ( !SIGNATURE.equals(tmp) ) { throw ne...
public void installConfiguration (String configPath, String outputDir, Map<String, StepInfo> availableSteps) { RandomAccessFile raf = null; PrintWriter pw = null; try { raf = new RandomAccessFile(configPath, "r"); String tmp = raf.readUTF(); // signature if ( !SIGNATURE.equals(tmp) ) { throw ne...
diff --git a/AE-go_GameServer/data/scripts/system/handlers/quest/ascension/_1006Ascension.java b/AE-go_GameServer/data/scripts/system/handlers/quest/ascension/_1006Ascension.java index 0de72929..4d779c4c 100644 --- a/AE-go_GameServer/data/scripts/system/handlers/quest/ascension/_1006Ascension.java +++ b/AE-go_GameServe...
true
true
public boolean onDialogEvent(QuestEnv env) { final Player player = env.getPlayer(); final QuestState qs = player.getQuestStateList().getQuestState(questId); if(qs == null) return false; int var = qs.getQuestVars().getQuestVars(); int targetId = 0; if(env.getVisibleObject() instanceof Npc) targetId ...
public boolean onDialogEvent(QuestEnv env) { final Player player = env.getPlayer(); final QuestState qs = player.getQuestStateList().getQuestState(questId); if(qs == null) return false; int var = qs.getQuestVars().getQuestVars(); int targetId = 0; if(env.getVisibleObject() instanceof Npc) targetId ...
diff --git a/src/main/java/org/jason/mapmaker/server/service/FeatureServiceImpl.java b/src/main/java/org/jason/mapmaker/server/service/FeatureServiceImpl.java index 3c76b91..3402fba 100644 --- a/src/main/java/org/jason/mapmaker/server/service/FeatureServiceImpl.java +++ b/src/main/java/org/jason/mapmaker/server/service...
true
true
public void importFromUrl(String url, FeaturesMetadata fm) throws ServiceException { URL u = null; try { u = new URL(url); } catch (MalformedURLException ex) { log.debug("Exception thrown:", ex.getMessage()); throw new ServiceException(ex); } ...
public void importFromUrl(String url, FeaturesMetadata fm) throws ServiceException { URL u; try { u = new URL(url); } catch (MalformedURLException ex) { log.debug("Exception thrown:", ex.getMessage()); throw new ServiceException(ex); } Li...
diff --git a/com/mewin/WGRegionEffects/Util.java b/com/mewin/WGRegionEffects/Util.java index cb22ebb..a8fa1ee 100644 --- a/com/mewin/WGRegionEffects/Util.java +++ b/com/mewin/WGRegionEffects/Util.java @@ -1,114 +1,114 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. ...
false
true
public static List<PotionEffectDesc> getEffectsForLocation(WorldGuardPlugin wgp, Location loc) { Map<PotionEffectType, Entry<ProtectedRegion, PotionEffectDesc>> allEffects = new HashMap<PotionEffectType, Entry<ProtectedRegion, PotionEffectDesc>>(); Map<PotionEffectType, List<ProtectedRegion>> ig...
public static List<PotionEffectDesc> getEffectsForLocation(WorldGuardPlugin wgp, Location loc) { Map<PotionEffectType, Entry<ProtectedRegion, PotionEffectDesc>> allEffects = new HashMap<PotionEffectType, Entry<ProtectedRegion, PotionEffectDesc>>(); Map<PotionEffectType, List<ProtectedRegion>> ig...
diff --git a/preflight/src/main/java/org/apache/padaf/preflight/helpers/StreamValidationHelper.java b/preflight/src/main/java/org/apache/padaf/preflight/helpers/StreamValidationHelper.java index d32304ca..de67f798 100644 --- a/preflight/src/main/java/org/apache/padaf/preflight/helpers/StreamValidationHelper.java +++ b/...
true
true
protected void checkStreamLength(DocumentHandler handler, COSObject cObj, List<ValidationError> result) throws ValidationException { COSStream streamObj = (COSStream) cObj.getObject(); int length = streamObj.getInt(COSName .getPDFName(STREAM_DICTIONARY_KEY_LENGHT)); InputStream ra = null; try { ra = ...
protected void checkStreamLength(DocumentHandler handler, COSObject cObj, List<ValidationError> result) throws ValidationException { COSStream streamObj = (COSStream) cObj.getObject(); int length = streamObj.getInt(COSName .getPDFName(STREAM_DICTIONARY_KEY_LENGHT)); InputStream ra = null; try { ra = ...
diff --git a/src/smartpool/web/form/CreateCarpoolFormValidator.java b/src/smartpool/web/form/CreateCarpoolFormValidator.java index e8a532f..f6a4e5a 100644 --- a/src/smartpool/web/form/CreateCarpoolFormValidator.java +++ b/src/smartpool/web/form/CreateCarpoolFormValidator.java @@ -1,55 +1,55 @@ package smartpool.web.fo...
true
true
public void validate(Object target, Errors errors) { CreateCarpoolForm form = (CreateCarpoolForm) target; if(form.from == null || form.from.equals("")) errors.rejectValue("from", Constants.FIELD_REQUIRED); if(form.to == null || form.to.equals("")) errors.rejectValue("to", Constants.FIELD_RE...
public void validate(Object target, Errors errors) { CreateCarpoolForm form = (CreateCarpoolForm) target; if(form.from == null || form.from.trim().isEmpty() || form.from.equals("")) errors.rejectValue("from", Constants.FIELD_REQUIRED); if(form.to == null || form.to.trim().isEmpty() || form....
diff --git a/src/main/java/net/epsilony/tb/analysis/DifferentiableFunctionUtils.java b/src/main/java/net/epsilony/tb/analysis/DifferentiableFunctionUtils.java index 5c7566f..6790b1a 100644 --- a/src/main/java/net/epsilony/tb/analysis/DifferentiableFunctionUtils.java +++ b/src/main/java/net/epsilony/tb/analysis/Differen...
true
true
public AbstractMinMax(List<DifferentiableFunction> functions) { this.functions = functions; if (null == functions || functions.isEmpty()) { throw new IllegalArgumentException(); } Iterator<DifferentiableFunction> it = functions.iterator(); ...
public AbstractMinMax(List<DifferentiableFunction> functions) { this.functions = functions; if (null == functions || functions.isEmpty()) { throw new IllegalArgumentException(); } Iterator<DifferentiableFunction> it = functions.iterator(); ...
diff --git a/src/main/java/ohtu/radioaine/controller/BatchController.java b/src/main/java/ohtu/radioaine/controller/BatchController.java index 04bfff6..2a271ec 100644 --- a/src/main/java/ohtu/radioaine/controller/BatchController.java +++ b/src/main/java/ohtu/radioaine/controller/BatchController.java @@ -1,219 +1,220 @@...
false
true
private Batch updateBatch(Integer id, BatchFormObject bfo) { int temp = 0; for(int i=0; i < bfo.getStorageLocations().length; i++) { temp += bfo.getStorageLocations()[i][1]; } bfo.setAmount(temp); Batch batch = batchService.read(id); batch.set...
private Batch updateBatch(Integer id, BatchFormObject bfo) { int temp = 0; for(int i=0; i < bfo.getStorageLocations().length; i++) { temp += bfo.getStorageLocations()[i][1]; } bfo.setAmount(temp); Batch batch = batchService.read(id); int oldAm...
diff --git a/src/java/fedora/server/security/AttributeFinderModule.java b/src/java/fedora/server/security/AttributeFinderModule.java index 4468acbe1..0d7e914ef 100755 --- a/src/java/fedora/server/security/AttributeFinderModule.java +++ b/src/java/fedora/server/security/AttributeFinderModule.java @@ -1,357 +1,360 @@ pa...
true
true
public EvaluationResult findAttribute( URI attributeType, URI attributeId, URI issuer, URI category, EvaluationCtx context, int designatorType) { log("AttributeFinder:findAttribute " + iAm()); log("attributeType=[" + attributeType + "], attributeId=[" + attributeId + "]" + iAm()); if (! parmsOk(attr...
public EvaluationResult findAttribute( URI attributeType, URI attributeId, URI issuer, URI category, EvaluationCtx context, int designatorType) { log("AttributeFinder:findAttribute " + iAm()); log("attributeType=[" + attributeType + "], attributeId=[" + attributeId + "]" + iAm()); if (! parmsOk(attr...
diff --git a/core/src/main/java/org/apache/commons/vfs2/provider/ram/RamFileRandomAccessContent.java b/core/src/main/java/org/apache/commons/vfs2/provider/ram/RamFileRandomAccessContent.java index 78461e4f..2d51be4d 100644 --- a/core/src/main/java/org/apache/commons/vfs2/provider/ram/RamFileRandomAccessContent.java +++...
true
true
public RamFileRandomAccessContent(RamFileObject file, RandomAccessMode mode) { super(); this.buf = file.getData().getBuffer(); this.file = file; this.mode = mode; rafis = new InputStream() { @Override public int read() throws IOException ...
public RamFileRandomAccessContent(RamFileObject file, RandomAccessMode mode) { super(); this.buf = file.getData().getBuffer(); this.file = file; this.mode = mode; rafis = new InputStream() { @Override public int read() throws IOException ...
diff --git a/src/com/menny/android/anysoftkeyboard/Dictionary/DictionaryFactory.java b/src/com/menny/android/anysoftkeyboard/Dictionary/DictionaryFactory.java index 571061cc..2089fc22 100644 --- a/src/com/menny/android/anysoftkeyboard/Dictionary/DictionaryFactory.java +++ b/src/com/menny/android/anysoftkeyboard/Diction...
true
true
public synchronized static Dictionary getDictionary(final Dictionary.Language language, AnyKeyboardContextProvider context) { if (msDictionaries.containsKey(language)) return msDictionaries.get(language); Dictionary dict = null; //showing lengthy operation toast //context.showToastMessage(R.string.to...
public synchronized static Dictionary getDictionary(final Dictionary.Language language, AnyKeyboardContextProvider context) { if (msDictionaries.containsKey(language)) return msDictionaries.get(language); Dictionary dict = null; //showing lengthy operation toast //context.showToastMessage(R.string.to...
diff --git a/src/eu/bryants/anthony/plinth/compiler/passes/llvm/CodeGenerator.java b/src/eu/bryants/anthony/plinth/compiler/passes/llvm/CodeGenerator.java index d7b0fe2..a3d5459 100644 --- a/src/eu/bryants/anthony/plinth/compiler/passes/llvm/CodeGenerator.java +++ b/src/eu/bryants/anthony/plinth/compiler/passes/llvm/Co...
true
true
private LLVMValueRef buildExpression(Expression expression, LLVMValueRef llvmFunction, LLVMValueRef thisValue, Map<Variable, LLVMValueRef> variables) { if (expression instanceof ArithmeticExpression) { ArithmeticExpression arithmeticExpression = (ArithmeticExpression) expression; LLVMValueRef le...
private LLVMValueRef buildExpression(Expression expression, LLVMValueRef llvmFunction, LLVMValueRef thisValue, Map<Variable, LLVMValueRef> variables) { if (expression instanceof ArithmeticExpression) { ArithmeticExpression arithmeticExpression = (ArithmeticExpression) expression; LLVMValueRef le...
diff --git a/src/com/orangeleap/tangerine/controller/importexport/CsvExportController.java b/src/com/orangeleap/tangerine/controller/importexport/CsvExportController.java index 8d55a295..3dac5c3b 100644 --- a/src/com/orangeleap/tangerine/controller/importexport/CsvExportController.java +++ b/src/com/orangeleap/tangerin...
true
true
protected ModelAndView processFormSubmission( HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) throws Exception { ExportRequest er = (ExportRequest)command; if (er.getFromDate() == null) er.setFromDate(PAST_DATE); if (er.getToDate() == null) er.setToDate(...
protected ModelAndView processFormSubmission( HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) throws Exception { ExportRequest er = (ExportRequest)command; if (er.getFromDate() == null) er.setFromDate(PAST_DATE); if (er.getToDate() == null) er.setToDate(...
diff --git a/TiramisouApp/src/com/amazon/hackday/trms/DisplayFeeYouShipActivity.java b/TiramisouApp/src/com/amazon/hackday/trms/DisplayFeeYouShipActivity.java index 15db70e..1ff1438 100644 --- a/TiramisouApp/src/com/amazon/hackday/trms/DisplayFeeYouShipActivity.java +++ b/TiramisouApp/src/com/amazon/hackday/trms/Displa...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.display_fee_you_ship); // start Over button ImageView startover = (ImageView)findViewById(R.id.youshipstartOver); startover.setOnClickListener(startOverClickListener); //...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.display_fee_you_ship); // start Over button ImageView startover = (ImageView)findViewById(R.id.youshipstartover); startover.setOnClickListener(startOverClickListener); //...
diff --git a/kie-wb-common-widgets/kie-wb-common-ui/src/main/java/org/kie/workbench/common/widgets/client/widget/AttachmentFileWidget.java b/kie-wb-common-widgets/kie-wb-common-ui/src/main/java/org/kie/workbench/common/widgets/client/widget/AttachmentFileWidget.java index 6b13aa2cb8..53cdddf370 100644 --- a/kie-wb-comm...
false
true
private void setup( boolean addFileUpload ) { up = new FileUpload( new org.uberfire.mvp.Command() { @Override public void execute() { uploadButtonClickHanlder.onClick( null ); } }, addFileUpload ); up.setName( FileManagerFields.UPLOAD_FIELD...
private void setup( boolean addFileUpload ) { up = new FileUpload( new org.uberfire.mvp.Command() { @Override public void execute() { uploadButtonClickHanlder.onClick( null ); } }, addFileUpload ); up.setName( FileManagerFields.UPLOAD_FIELD...
diff --git a/src/test/java/org/fusesource/camel/component/salesforce/SalesforceComponentTest.java b/src/test/java/org/fusesource/camel/component/salesforce/SalesforceComponentTest.java index b93210a..ed84c58 100644 --- a/src/test/java/org/fusesource/camel/component/salesforce/SalesforceComponentTest.java +++ b/src/test...
false
true
protected RouteBuilder createRouteBuilder() throws Exception { // create a json mapper objectMapper = new ObjectMapper(); // create the component SalesforceComponent component = new SalesforceComponent(); setLoginProperties(component); // default component level pa...
protected RouteBuilder createRouteBuilder() throws Exception { // create a json mapper objectMapper = new ObjectMapper(); // create the component SalesforceComponent component = new SalesforceComponent(); setLoginProperties(component); // default component level pa...
diff --git a/src/de/podfetcher/feed/RSSHandler.java b/src/de/podfetcher/feed/RSSHandler.java index 75671f29..80e7fab8 100644 --- a/src/de/podfetcher/feed/RSSHandler.java +++ b/src/de/podfetcher/feed/RSSHandler.java @@ -1,123 +1,123 @@ package de.podfetcher.feed; import java.util.ArrayList; import de.podfetcher.fee...
false
true
public void endElement(String uri, String localName, String qName) throws SAXException { if (qName.equalsIgnoreCase(FeedHandler.ITEM)) { currentItem.setFeed(feed); items.add(currentItem); } else if (qName.equalsIgnoreCase(FeedHandler.TITLE)) { if (active_root_element.equalsIgnoreCase(FeedHandler.CHANNE...
public void endElement(String uri, String localName, String qName) throws SAXException { if (qName.equalsIgnoreCase(FeedHandler.ITEM)) { currentItem.setFeed(feed); items.add(currentItem); } else if (qName.equalsIgnoreCase(FeedHandler.TITLE)) { if (active_root_element.equalsIgnoreCase(FeedHandler.CHANNE...
diff --git a/src/me/Kruithne/WolfHunt/WolfHunt.java b/src/me/Kruithne/WolfHunt/WolfHunt.java index 8899e39..bffc05d 100644 --- a/src/me/Kruithne/WolfHunt/WolfHunt.java +++ b/src/me/Kruithne/WolfHunt/WolfHunt.java @@ -1,43 +1,43 @@ package me.Kruithne.WolfHunt; import java.util.logging.Logger; import org.bukkit.S...
false
true
public void onEnable() { this.server = this.getServer(); this.config = new Configuration(this); this.commandHandler = new CommandHandler(this); this.tracking = new Tracking(this.config); this.permission = new Permissions(this.config); this.vanishHandler = new VanishHandler(this.server); this.output = ...
public void onEnable() { this.server = this.getServer(); this.config = new Configuration(this); this.commandHandler = new CommandHandler(this); this.tracking = new Tracking(this.config); this.permission = new Permissions(this.config); this.vanishHandler = new VanishHandler(this.server, this.config); t...
diff --git a/src/com/github/desmaster/Devio/realm/storage/Inventory.java b/src/com/github/desmaster/Devio/realm/storage/Inventory.java index c73b3da..13a8dcb 100644 --- a/src/com/github/desmaster/Devio/realm/storage/Inventory.java +++ b/src/com/github/desmaster/Devio/realm/storage/Inventory.java @@ -1,182 +1,182 @@ pa...
true
true
public void renderSlots() { glLoadIdentity(); int x = container.getX(); int y = container.getY() + 20; glColor4f(1, 1, 1, 1); glTranslatef(x, y, 0); glBegin(GL_LINES); glVertex2f(x, y); glVertex2f(x + container.getWidth() - 50, y); glEnd(); x += 50; glBegin(GL_LINES); glVertex2f(x, y); glVert...
public void renderSlots() { glLoadIdentity(); int x = container.getX(); int y = container.getY() + 20; glColor4f(1, 1, 1, 1); glTranslatef(x, y, 0); glBegin(GL_LINES); glVertex2f(x, y); glVertex2f(x + container.getWidth() - 50, y); glEnd(); x += 50; glBegin(GL_LINES); glVertex2f(x, y); glVert...
diff --git a/core/src/main/java/org/icepush/PushGroupManagerFactory.java b/core/src/main/java/org/icepush/PushGroupManagerFactory.java index 478d768..8439783 100644 --- a/core/src/main/java/org/icepush/PushGroupManagerFactory.java +++ b/core/src/main/java/org/icepush/PushGroupManagerFactory.java @@ -1,128 +1,131 @@ /*...
true
true
public static PushGroupManager newPushGroupManager(final ServletContext servletContext, final Configuration configuration) { String _pushGroupManager = configuration.getAttribute("pushGroupManager", null); if (_pushGroupManager == null || _pushGroupManager.trim().length() == 0) { LOGGER....
public static PushGroupManager newPushGroupManager(final ServletContext servletContext, final Configuration configuration) { String _pushGroupManager = (String)servletContext.getAttribute("org.icepush.PushGroupManager"); if (_pushGroupManager == null) { _pushGroupManager = configuration....
diff --git a/src/main/java/net/qldarch/ingest/transcript/TranscriptDescribeFactory.java b/src/main/java/net/qldarch/ingest/transcript/TranscriptDescribeFactory.java index dc6e8a5..ef6ca45 100644 --- a/src/main/java/net/qldarch/ingest/transcript/TranscriptDescribeFactory.java +++ b/src/main/java/net/qldarch/ingest/trans...
true
true
public String getStageName() { return "deploy"; }
public String getStageName() { return "describe"; }
diff --git a/src/test/cli/cloudify/cloud/services/rackspace/RackspaceCloudService.java b/src/test/cli/cloudify/cloud/services/rackspace/RackspaceCloudService.java index ae3e4e9c..ab51980c 100644 --- a/src/test/cli/cloudify/cloud/services/rackspace/RackspaceCloudService.java +++ b/src/test/cli/cloudify/cloud/services/ra...
true
true
public void injectAuthenticationDetails() throws IOException { String cloudTestPath = (SGTestHelper.getSGTestRootDir() + "/apps/cloudify/cloud/" + cloudName).replace('\\', '/'); // cloud plugin should include recipe that includes secret key File cloudPluginDir = new File(ScriptUtils.getBuildPath() , "tools/c...
public void injectAuthenticationDetails() throws IOException { String cloudTestPath = (SGTestHelper.getSGTestRootDir() + "/apps/cloudify/cloud/" + cloudName).replace('\\', '/'); // cloud plugin should include recipe that includes secret key File cloudPluginDir = new File(ScriptUtils.getBuildPath() , "tools/c...
diff --git a/iris-core/src/main/java/ru/iris/Launcher.java b/iris-core/src/main/java/ru/iris/Launcher.java index 2c9436a..cca80fe 100644 --- a/iris-core/src/main/java/ru/iris/Launcher.java +++ b/iris-core/src/main/java/ru/iris/Launcher.java @@ -1,86 +1,86 @@ package ru.iris; import org.h2.tools.Server; import org....
false
true
public static void main(String[] args) throws Exception { // Launch H2 TCP server Server.createTcpServer().start(); msg = new Messaging(); messageConsumer = msg.getConsumer (); messageProducer = msg.getProducer (); session = msg.getSession (); // Enable int...
public static void main(String[] args) throws Exception { // Launch H2 TCP server Server.createTcpServer().start(); msg = new Messaging(); messageConsumer = msg.getConsumer (); messageProducer = msg.getProducer (); session = msg.getSession (); // Enable int...
diff --git a/river/src/main/java/org/jboss/marshalling/river/RiverMarshaller.java b/river/src/main/java/org/jboss/marshalling/river/RiverMarshaller.java index fbfd6ef..81f335d 100644 --- a/river/src/main/java/org/jboss/marshalling/river/RiverMarshaller.java +++ b/river/src/main/java/org/jboss/marshalling/river/RiverMar...
false
true
protected void doWriteObject(final Object original, final boolean unshared) throws IOException { final ClassExternalizerFactory classExternalizerFactory = this.classExternalizerFactory; final ObjectResolver objectResolver = this.objectResolver; Object obj = original; Class<?> objClas...
protected void doWriteObject(final Object original, final boolean unshared) throws IOException { final ClassExternalizerFactory classExternalizerFactory = this.classExternalizerFactory; final ObjectResolver objectResolver = this.objectResolver; Object obj = original; Class<?> objClas...
diff --git a/src/main/java/ch/entwine/weblounge/contentrepository/impl/endpoint/PreviewsEndpoint.java b/src/main/java/ch/entwine/weblounge/contentrepository/impl/endpoint/PreviewsEndpoint.java index 9be743876..2e70b4fab 100644 --- a/src/main/java/ch/entwine/weblounge/contentrepository/impl/endpoint/PreviewsEndpoint.jav...
true
true
public Response getPreview(@Context HttpServletRequest request, @PathParam("resource") String resourceId, @PathParam("language") String languageId, @PathParam("style") String styleId) { // Check the parameters if (resourceId == null) throw new WebApplicationException(Status.BAD_REQUES...
public Response getPreview(@Context HttpServletRequest request, @PathParam("resource") String resourceId, @PathParam("language") String languageId, @PathParam("style") String styleId) { // Check the parameters if (resourceId == null) throw new WebApplicationException(Status.BAD_REQUES...
diff --git a/plugins/com.aptana.rdt.profiling/src/com/aptana/rdt/internal/profiling/StandardVMProfiler.java b/plugins/com.aptana.rdt.profiling/src/com/aptana/rdt/internal/profiling/StandardVMProfiler.java index 1a53f07..2424508 100644 --- a/plugins/com.aptana.rdt.profiling/src/com/aptana/rdt/internal/profiling/Standard...
true
true
public void run(VMRunnerConfiguration config, ILaunch launch, IProgressMonitor monitor) throws CoreException { if (monitor == null) { monitor = new NullProgressMonitor(); } IProgressMonitor subMonitor = new SubProgressMonitor(monitor, 1); subMonitor.beginTask(LaunchingMessages.StandardVMRunner_Launching_...
public void run(VMRunnerConfiguration config, ILaunch launch, IProgressMonitor monitor) throws CoreException { if (monitor == null) { monitor = new NullProgressMonitor(); } IProgressMonitor subMonitor = new SubProgressMonitor(monitor, 1); subMonitor.beginTask(LaunchingMessages.StandardVMRunner_Launching_...
diff --git a/tools/src/XJavac.java b/tools/src/XJavac.java index 75a59d01d..72d10d75d 100644 --- a/tools/src/XJavac.java +++ b/tools/src/XJavac.java @@ -1,150 +1,151 @@ /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with ...
false
true
public void execute() throws BuildException { if(isJDK14OrHigher()) { // maybe the right one; check vendor: // by checking system properties: Properties props = null; try { props = System.getProperties(); } catch (Exception e) { ...
public void execute() throws BuildException { if(isJDK14OrHigher()) { // maybe the right one; check vendor: // by checking system properties: Properties props = null; try { props = System.getProperties(); } catch (Exception e) { ...
diff --git a/springnet-git/src/main/java/mantech/controller/EquipmentController.java b/springnet-git/src/main/java/mantech/controller/EquipmentController.java index 157fc9d..c15344e 100644 --- a/springnet-git/src/main/java/mantech/controller/EquipmentController.java +++ b/springnet-git/src/main/java/mantech/controller/...
true
true
public String list(@RequestParam(value="page", required=false, defaultValue="1") int page, ModelMap model) { int pageCount; if (equipmentRepo.count().intValue() % 3 == 0) { pageCount = equipmentRepo.count().intValue() / 3; } else { pageCount = (equipmentRepo.count().intValue() / 3) ...
public String list(@RequestParam(value="id", required=false, defaultValue="1") int page, ModelMap model) { int pageCount; if (equipmentRepo.count().intValue() % 3 == 0) { pageCount = equipmentRepo.count().intValue() / 3; } else { pageCount = (equipmentRepo.count().intValue() / 3) + ...
diff --git a/twitter4j-core/src/main/java/twitter4j/internal/http/HttpResponseImpl.java b/twitter4j-core/src/main/java/twitter4j/internal/http/HttpResponseImpl.java index e805602c..0327237c 100644 --- a/twitter4j-core/src/main/java/twitter4j/internal/http/HttpResponseImpl.java +++ b/twitter4j-core/src/main/java/twitter...
true
true
HttpResponseImpl(HttpURLConnection con, HttpClientConfiguration conf) throws IOException { super(conf); this.con = con; this.statusCode = con.getResponseCode(); if (null == (is = con.getErrorStream())) { is = con.getInputStream(); } if (is != null && "gzip...
HttpResponseImpl(HttpURLConnection con, HttpClientConfiguration conf) throws IOException { super(conf); this.con = con; try { this.statusCode = con.getResponseCode(); } catch (IOException e) { /* * If the user has revoked the access token in use, then T...
diff --git a/src/main/java/com/alta189/simplesave/h2/H2Database.java b/src/main/java/com/alta189/simplesave/h2/H2Database.java index 277e541..d2fa801 100644 --- a/src/main/java/com/alta189/simplesave/h2/H2Database.java +++ b/src/main/java/com/alta189/simplesave/h2/H2Database.java @@ -1,558 +1,558 @@ /* * This file i...
false
true
public <T> QueryResult<T> execute(Query<T> query) { if (!isConnected()) { try { connect(); } catch (ConnectionException e) { throw new RuntimeException(e); } } try { switch (query.getType()) { case SELECT: SelectQuery selectQuery = (SelectQuery) query; TableRegistration table = get...
public <T> QueryResult<T> execute(Query<T> query) { if (!isConnected()) { try { connect(); } catch (ConnectionException e) { throw new RuntimeException(e); } } try { switch (query.getType()) { case SELECT: SelectQuery selectQuery = (SelectQuery) query; TableRegistration table = get...
diff --git a/src/main/java/servlet/HelloServlet.java b/src/main/java/servlet/HelloServlet.java index 62cd5fe..9a28f90 100644 --- a/src/main/java/servlet/HelloServlet.java +++ b/src/main/java/servlet/HelloServlet.java @@ -1,122 +1,122 @@ package servlet; import java.io.IOException; import javax.servlet.ServletExc...
true
true
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // response.getWriter().print("Hello from Java!\n"); try { Connection connection = getConnection(); Statement stmt = connection.createStatement(); ...
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // response.getWriter().print("Hello from Java!\n"); try { Connection connection = getConnection(); Statement stmt = connection.createStatement(); ...
diff --git a/src/org/hackystat/sensor/xmldata/option/TestArgListOption.java b/src/org/hackystat/sensor/xmldata/option/TestArgListOption.java index c138889..8d1c558 100644 --- a/src/org/hackystat/sensor/xmldata/option/TestArgListOption.java +++ b/src/org/hackystat/sensor/xmldata/option/TestArgListOption.java @@ -1,44 +1...
true
true
public void testIsValid() { XmlDataController controller = new XmlDataController(); // Tests a valid argList parameter count, but invalid file. List<String> parameters = new ArrayList<String>(); String testPackage = "src/org/hackystat/sensor/xmldata/testdataset/"; parameters.add(new File("") + tes...
public void testIsValid() { XmlDataController controller = new XmlDataController(); // Tests a valid argList parameter count, but invalid file. List<String> parameters = new ArrayList<String>(); String testPackage = "src/org/hackystat/sensor/xmldata/testdataset/"; File testArgList = new File(Syste...
diff --git a/Android/cloudLogin/src/com/cloude/entropin/CloudLoginTow.java b/Android/cloudLogin/src/com/cloude/entropin/CloudLoginTow.java index 89acecc..6f2c7bd 100644 --- a/Android/cloudLogin/src/com/cloude/entropin/CloudLoginTow.java +++ b/Android/cloudLogin/src/com/cloude/entropin/CloudLoginTow.java @@ -1,93 +1,93 ...
false
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); try{ new Thread(new Runnable() { public void run() { GAEConnector _gaeConnector = new GAEConnector(null, "http://logincookietest.appspot.com"); if...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); try{ new Thread(new Runnable() { public void run() { GAEConnector _gaeConnector = new GAEConnector(null, "http://logincookietest.appspot.com"); if...
diff --git a/plugins/org.eclipse.emf.compare.ide.ui.tests/src/org/eclipse/emf/compare/ide/ui/tests/egit/CompareGitTestCase.java b/plugins/org.eclipse.emf.compare.ide.ui.tests/src/org/eclipse/emf/compare/ide/ui/tests/egit/CompareGitTestCase.java index dcbf2d795..9f4892bc5 100644 --- a/plugins/org.eclipse.emf.compare.ide...
true
true
public void setUp() throws Exception { super.setUp(); // ensure there are no shared Repository instances left // when starting a new test Activator.getDefault().getRepositoryCache().clear(); final MockSystemReader mockSystemReader = new MockSystemReader(); SystemReader.setInstance(mockSystemReader); mock...
public void setUp() throws Exception { super.setUp(); // ensure there are no shared Repository instances left // when starting a new test Activator.getDefault().getRepositoryCache().clear(); final MockSystemReader mockSystemReader = new MockSystemReader(); SystemReader.setInstance(mockSystemReader); mock...
diff --git a/izpack-src/trunk/src/lib/com/izforge/izpack/panels/HelloPanel.java b/izpack-src/trunk/src/lib/com/izforge/izpack/panels/HelloPanel.java index 886091a8..a9f00677 100644 --- a/izpack-src/trunk/src/lib/com/izforge/izpack/panels/HelloPanel.java +++ b/izpack-src/trunk/src/lib/com/izforge/izpack/panels/HelloPane...
true
true
public HelloPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // The 'super' layout GridBagLayout superLayout = new GridBagLayout(); setLayout(superLayout); GridBagConstraints gbConstraints = new GridBagConstraints(); gbConstraints.insets = ...
public HelloPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // The 'super' layout GridBagLayout superLayout = new GridBagLayout(); setLayout(superLayout); GridBagConstraints gbConstraints = new GridBagConstraints(); gbConstraints.insets = ...
diff --git a/src/com/voracious/dragons/client/screens/StatScreen.java b/src/com/voracious/dragons/client/screens/StatScreen.java index b79f1d6..75a30c1 100644 --- a/src/com/voracious/dragons/client/screens/StatScreen.java +++ b/src/com/voracious/dragons/client/screens/StatScreen.java @@ -1,120 +1,120 @@ package com.vo...
true
true
public StatScreen(/*player's pid to do db searching*/) { super(WIDTH, HEIGHT); background = new Sprite("/mainMenuBackground.png"); returnButton=new Button("Back",0,0); returnButton.addActionListener(new ActionListener(){ @Override public void actionPerformed(ActionEvent arg0) { Game.setCurrentScreen(...
public StatScreen(/*player's pid to do db searching*/) { super(WIDTH, HEIGHT); background = new Sprite("/mainMenuBackground.png"); returnButton=new Button("Back",0,0); returnButton.addActionListener(new ActionListener(){ @Override public void actionPerformed(ActionEvent arg0) { Game.setCurrentScreen(...
diff --git a/stado/src/org/postgresql/stado/metadata/SysColumn.java b/stado/src/org/postgresql/stado/metadata/SysColumn.java index 7795f93..929bb49 100644 --- a/stado/src/org/postgresql/stado/metadata/SysColumn.java +++ b/stado/src/org/postgresql/stado/metadata/SysColumn.java @@ -1,425 +1,425 @@ /*********************...
true
true
public int getColumnLength() { int colLength; switch (this.coltype) { case java.sql.Types.BIT: colLength = 1; break; case java.sql.Types.CHAR: colLength = this.collength; break; case java.sql.Types.VARCHAR: colLen...
public int getColumnLength() { int colLength; switch (this.coltype) { case java.sql.Types.BIT: colLength = 1; break; case java.sql.Types.CHAR: colLength = this.collength; break; case java.sql.Types.VARCHAR: colLength...
diff --git a/server-integ/src/test/java/org/apache/directory/server/replication/ClientServerReplicationIT.java b/server-integ/src/test/java/org/apache/directory/server/replication/ClientServerReplicationIT.java index 88f8fcce73..c9f6b71754 100644 --- a/server-integ/src/test/java/org/apache/directory/server/replication/...
false
true
private static void startConsumer() throws Exception { Method createProviderMethod = ClientServerReplicationIT.class.getDeclaredMethod( "startConsumer" ); CreateDS dsAnnotation = createProviderMethod.getAnnotation( CreateDS.class ); DirectoryService provDirService = DSAnnotationProcessor...
private static void startConsumer() throws Exception { Method createProviderMethod = ClientServerReplicationIT.class.getDeclaredMethod( "startConsumer" ); CreateDS dsAnnotation = createProviderMethod.getAnnotation( CreateDS.class ); DirectoryService provDirService = DSAnnotationProcessor...
diff --git a/plugins/org.eclipse.emf.eef.runtime/src/org/eclipse/emf/eef/runtime/ui/widgets/settings/EEFEditorSettingsBuilder.java b/plugins/org.eclipse.emf.eef.runtime/src/org/eclipse/emf/eef/runtime/ui/widgets/settings/EEFEditorSettingsBuilder.java index 45a2c48c0..19308159a 100644 --- a/plugins/org.eclipse.emf.eef.r...
false
true
public EObject getOrCreateSignificantObject() { if (significantObject == null) { EObject current = source; for (NavigationStep step : EEFEditorSettingsImpl.this.steps) { // reference * if (step.getReference().isMany()) { @SuppressWarnings("unchecked") List<EObject> result = (List<EObj...
public EObject getOrCreateSignificantObject() { if (significantObject == null) { EObject current = source; for (NavigationStep step : EEFEditorSettingsImpl.this.steps) { // reference * if (step.getReference().isMany()) { @SuppressWarnings("unchecked") List<EObject> result = (List<EObj...
diff --git a/odata-testutil/src/test/java/com/sap/core/odata/testutil/server/TestServer.java b/odata-testutil/src/test/java/com/sap/core/odata/testutil/server/TestServer.java index 9080cbe41..c15169759 100644 --- a/odata-testutil/src/test/java/com/sap/core/odata/testutil/server/TestServer.java +++ b/odata-testutil/src/...
true
true
public void startServer(final Class<? extends ODataServiceFactory> factoryClass) { try { for (int port = PORT_MIN; port <= PORT_MAX; port += PORT_INC) { final CXFNonSpringJaxrsServlet odataServlet = new CXFNonSpringJaxrsServlet(); final ServletHolder odataServletHolder = new ServletHolder(od...
public void startServer(final Class<? extends ODataServiceFactory> factoryClass) { try { for (int port = PORT_MIN; port <= PORT_MAX; port += PORT_INC) { final CXFNonSpringJaxrsServlet odataServlet = new CXFNonSpringJaxrsServlet(); final ServletHolder odataServletHolder = new ServletHolder(od...
diff --git a/src/jp/ac/osaka_u/ist/sdl/ectec/analyzer/sourceanalyzer/CodeFragmentDetectingThreadMonitor.java b/src/jp/ac/osaka_u/ist/sdl/ectec/analyzer/sourceanalyzer/CodeFragmentDetectingThreadMonitor.java index 0c39ce4..8131bed 100644 --- a/src/jp/ac/osaka_u/ist/sdl/ectec/analyzer/sourceanalyzer/CodeFragmentDetecting...
true
true
public void monitor() throws Exception { long numberOfCrds = 0; long numberOfFragments = 0; while (true) { try { Thread.sleep(Constants.MONITORING_INTERVAL); if (detectedCrds.size() >= maxElementsCount) { final Collection<CRD> currentElements = detectedCrds .values(); crdRegisterer....
public void monitor() throws Exception { long numberOfCrds = 0; long numberOfFragments = 0; while (true) { try { Thread.sleep(Constants.MONITORING_INTERVAL); if (detectedCrds.size() >= maxElementsCount) { final Collection<CRD> currentElements = detectedCrds .values(); crdRegisterer....
diff --git a/Temp/src/OR/SolutionList.java b/Temp/src/OR/SolutionList.java index faf61cf..0bd146d 100644 --- a/Temp/src/OR/SolutionList.java +++ b/Temp/src/OR/SolutionList.java @@ -1,39 +1,39 @@ package OR; import java.util.LinkedList; /** * * */ public class SolutionList extends LinkedList<Double[]> { ...
true
true
public boolean add(Double[] item) { if (item.length == n) { super.add(item); return true; } else{ throw new RuntimeException("item must be Double[" + (n+1) +"]"); } }
public boolean add(Double[] item) { if (item.length == n) { super.add(item); return true; } else{ throw new RuntimeException("item must be Double[" + (n) +"]"); } }
diff --git a/src/java/no/schibstedsok/front/searchportal/view/velocity/VelocityEngineFactory.java b/src/java/no/schibstedsok/front/searchportal/view/velocity/VelocityEngineFactory.java index 0ea6782cc..d9fc6a2d9 100644 --- a/src/java/no/schibstedsok/front/searchportal/view/velocity/VelocityEngineFactory.java +++ b/src/...
true
true
private VelocityEngineFactory(final Context cxt) { INSTANCES_LOCK.writeLock().lock(); context = cxt; final Site site = cxt.getSite(); engine = new VelocityEngine(){ /** We override this method to dampen the <ERROR velocity: ResourceManager : unable to find resou...
private VelocityEngineFactory(final Context cxt) { INSTANCES_LOCK.writeLock().lock(); context = cxt; final Site site = cxt.getSite(); engine = new VelocityEngine(){ /** We override this method to dampen the <ERROR velocity: ResourceManager : unable to find resou...
diff --git a/drools-compiler/src/main/java/org/drools/commons/jci/compilers/EclipseJavaCompiler.java b/drools-compiler/src/main/java/org/drools/commons/jci/compilers/EclipseJavaCompiler.java index 636ab777c9..25440a951e 100644 --- a/drools-compiler/src/main/java/org/drools/commons/jci/compilers/EclipseJavaCompiler.java...
true
true
public org.drools.commons.jci.compilers.CompilationResult compile( final String[] pSourceFiles, final ResourceReader pReader, final ResourceStore pStore, final ClassLoader pClassLoader, final JavaCompilerSettings pSettings ) { final Ma...
public org.drools.commons.jci.compilers.CompilationResult compile( final String[] pSourceFiles, final ResourceReader pReader, final ResourceStore pStore, final ClassLoader pClassLoader, final JavaCompilerSettings pSettings ) { final Ma...
diff --git a/src/main/java/com/eggs/impl/CsvFileMenuRepository.java b/src/main/java/com/eggs/impl/CsvFileMenuRepository.java index 5297f10..88039cc 100644 --- a/src/main/java/com/eggs/impl/CsvFileMenuRepository.java +++ b/src/main/java/com/eggs/impl/CsvFileMenuRepository.java @@ -1,86 +1,87 @@ package com.eggs.impl; ...
true
true
private Menu getMenu(String path) { MenuBuilder menu = MenuBuilder.menu(); BufferedReader br = null; try { InputStream is = this.getClass().getClassLoader().getResourceAsStream(path); br = new BufferedReader(new InputStreamReader(is)); String s; int i = 0; while((s = br.readLine()) !=...
private Menu getMenu(String path) { MenuBuilder menu = MenuBuilder.menu(); BufferedReader br = null; try { InputStream is = this.getClass().getClassLoader().getResourceAsStream(path); br = new BufferedReader(new InputStreamReader(is)); String s; int i = 0; while((s = br.readLine()) !=...
diff --git a/swing/visualizer/src/main/java/org/qi4j/library/swing/visualizer/detailPanel/internal/form/common/ServiceDescriptorForm.java b/swing/visualizer/src/main/java/org/qi4j/library/swing/visualizer/detailPanel/internal/form/common/ServiceDescriptorForm.java index b2b23916d..8fc90299e 100644 --- a/swing/visualize...
true
true
private void $$$setupUI$$$() { createUIComponents(); placeHolder = new JPanel(); placeHolder.setLayout( new FormLayout( "fill:max(d;4px):noGrow,fill:p:noGrow,fill:max(d;4px):noGrow,fill:max(m;160dlu):noGrow", "center:max(d;4px):noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:p:noG...
private void $$$setupUI$$$() { createUIComponents(); placeHolder = new JPanel(); placeHolder.setLayout( new FormLayout( "fill:max(d;4px):noGrow,fill:p:noGrow,fill:max(d;4px):noGrow,fill:max(p;160dlu):noGrow", "center:max(d;4px):noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:p:noG...
diff --git a/src/ru/ifmo/neerc/timer/TimerFrame.java b/src/ru/ifmo/neerc/timer/TimerFrame.java index fa36eb4..9ce9d6e 100644 --- a/src/ru/ifmo/neerc/timer/TimerFrame.java +++ b/src/ru/ifmo/neerc/timer/TimerFrame.java @@ -1,179 +1,179 @@ package ru.ifmo.neerc.timer; import java.awt.BorderLayout; import java.awt.Col...
true
true
TimerFrame() { super("PCMS2 Timer"); palette = new Color[8]; for (int i = 0; i < 8; ++i) { palette[i] = Color.BLACK; } this.setUndecorated(true); setBounds(0, 0, 1024, 768); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); Container con = this.getContentPane(); timeLabel.setFont(new Font("Calibr...
TimerFrame() { super("PCMS2 Timer"); palette = new Color[8]; for (int i = 0; i < 8; ++i) { palette[i] = Color.BLACK; } this.setUndecorated(true); setBounds(0, 0, 1024, 768); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); Container con = this.getContentPane(); timeLabel.setFont(new Font("Calibr...
diff --git a/dspace-jspui/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java b/dspace-jspui/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java index 9e5e5490c..bdba906ae 100644 --- a/dspace-jspui/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java +++ b/dspace-jspui/src/main/java/org/dspace/app/webui/jsptag/...
true
true
private void render() throws IOException, SQLException, DCInputsReaderException { JspWriter out = pageContext.getOut(); HttpServletRequest request = (HttpServletRequest)pageContext.getRequest(); Context context = UIUtil.obtainContext(request); Locale sessionLocale = UIUtil.getSes...
private void render() throws IOException, SQLException, DCInputsReaderException { JspWriter out = pageContext.getOut(); HttpServletRequest request = (HttpServletRequest)pageContext.getRequest(); Context context = UIUtil.obtainContext(request); Locale sessionLocale = UIUtil.getSes...
diff --git a/DistFileSystem/src/distclient/ClntCheckPosition.java b/DistFileSystem/src/distclient/ClntCheckPosition.java index 9c79f65..c1fe8f1 100644 --- a/DistFileSystem/src/distclient/ClntCheckPosition.java +++ b/DistFileSystem/src/distclient/ClntCheckPosition.java @@ -1,115 +1,117 @@ package distclient; import ...
false
true
public void run() { try { DistConfig distConfig = DistConfig.get_Instance(); System.out.println("Connecting"); Socket sock = new Socket(host, distConfig.get_servPortNumber()); sock.setSoTimeout(5000); System.out.println("Connected"); BufferedOutputStream bo...
public void run() { try { DistConfig distConfig = DistConfig.get_Instance(); System.out.println("Connecting"); Socket sock = new Socket(host, distConfig.get_servPortNumber()); sock.setSoTimeout(5000); System.out.println("Connected"); BufferedOutputStream bo...
diff --git a/com/minebans/antispam/checks/PlayerDataChecker.java b/com/minebans/antispam/checks/PlayerDataChecker.java index 8302a51..a1ead29 100755 --- a/com/minebans/antispam/checks/PlayerDataChecker.java +++ b/com/minebans/antispam/checks/PlayerDataChecker.java @@ -1,104 +1,105 @@ package com.minebans.antispam.chec...
true
true
public void run(){ String playerName; PlayerData playerData; for (Entry<String, PlayerData> entry : plugin.dataManager.getAll()){ playerName = entry.getKey(); playerData = entry.getValue(); if (this.isChatSpamer(playerData) || this.isLoginSpammer(playerData) || this.isLogoutSpammer(playerData)){ ...
public void run(){ String playerName; PlayerData playerData; for (Entry<String, PlayerData> entry : plugin.dataManager.getAll()){ playerName = entry.getKey(); playerData = entry.getValue(); if (this.isChatSpamer(playerData) || this.isLoginSpammer(playerData) || this.isLogoutSpammer(playerData)){ ...
diff --git a/src/main/java/org/apache/james/jspf/terms/ExpModifier.java b/src/main/java/org/apache/james/jspf/terms/ExpModifier.java index 0686114..d7b281e 100644 --- a/src/main/java/org/apache/james/jspf/terms/ExpModifier.java +++ b/src/main/java/org/apache/james/jspf/terms/ExpModifier.java @@ -1,92 +1,92 @@ /*******...
true
true
public String run(SPF1Data spfData) { String exp = null; String host = this.host; // If the currentResult is not fail we have no need to run all these // methods! if (!spfData.getCurrentResult().equals(SPF1Constants.FAIL)) return null; // If we s...
public String run(SPF1Data spfData) { String exp = null; String host = this.host; // If the currentResult is not fail we have no need to run all these // methods! if (!spfData.getCurrentResult().equals(SPF1Constants.FAIL)) return null; // If we s...
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandmail.java b/Essentials/src/com/earth2me/essentials/commands/Commandmail.java index 9b7f57fb..b54b88a1 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandmail.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandmail.java @...
true
true
public void run(Server server, User user, String commandLabel, String[] args) throws Exception { if (args.length >= 1 && "read".equalsIgnoreCase(args[0])) { List<String> mail = user.getMails(); if (mail.isEmpty()) { user.sendMessage(Util.i18n("noMail")); return; } for (String s : mail) {...
public void run(Server server, User user, String commandLabel, String[] args) throws Exception { if (args.length >= 1 && "read".equalsIgnoreCase(args[0])) { List<String> mail = user.getMails(); if (mail.isEmpty()) { user.sendMessage(Util.i18n("noMail")); return; } for (String s : mail) {...
diff --git a/src/main/java/ar/edu/utn/tacs/group5/controller/GetFeedController.java b/src/main/java/ar/edu/utn/tacs/group5/controller/GetFeedController.java index 1492c1b..641d90a 100644 --- a/src/main/java/ar/edu/utn/tacs/group5/controller/GetFeedController.java +++ b/src/main/java/ar/edu/utn/tacs/group5/controller/Ge...
true
true
public Navigation run() throws Exception { Long userId = sessionScope(Constants.USER_ID); if (userId == null) { response.setStatus(HttpStatus.SC_FORBIDDEN); return null; } if (!isGet()) { response.setStatus(HttpStatus.SC_METHOD_NOT_ALLOWED); ...
public Navigation run() throws Exception { if (!isGet()) { response.setStatus(HttpStatus.SC_METHOD_NOT_ALLOWED); response.getWriter().print(ALLOWED_METHODS); return null; } String encodedFeedKey = param(Constants.FEED); if (encodedFeedKey == null) ...