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/main/java/net/binout/codestory2013/HeinRestService.java b/src/main/java/net/binout/codestory2013/HeinRestService.java index a60d154..7eb1001 100644 --- a/src/main/java/net/binout/codestory2013/HeinRestService.java +++ b/src/main/java/net/binout/codestory2013/HeinRestService.java @@ -1,55 +1,55 @@ pack...
false
true
public Response get(@Context UriInfo uriInfo, @QueryParam(Q) String query) { System.out.println("\nGET"); logAllQueryParameters(uriInfo); if (query.equals(QUELLE_EST_TON_ADRESSE_EMAIL)) { return Response.ok(MAIL).build(); } if (query.equals(ES_TU_ABONNE_A_LA_MAIL...
public Response get(@Context UriInfo uriInfo, @QueryParam(Q) String query) { System.out.println("\nGET"); logAllQueryParameters(uriInfo); if (QUELLE_EST_TON_ADRESSE_EMAIL.equals(query)) { return Response.ok(MAIL).build(); } if (ES_TU_ABONNE_A_LA_MAILING_LIST.equa...
diff --git a/Enduro/src/test/unit/main/Acceptans.java b/Enduro/src/test/unit/main/Acceptans.java index f3914c9..767d139 100644 --- a/Enduro/src/test/unit/main/Acceptans.java +++ b/Enduro/src/test/unit/main/Acceptans.java @@ -1,90 +1,90 @@ package test.unit.main; import java.io.FileInputStream; import java.util.Arr...
false
true
public void testStandard() throws Exception { String path = TEST_PATH + "standard/"; in = new InputFileHandler(path); Properties prop = new Properties(); prop.load(new FileInputStream(path + CONFIG)); Map<Integer, Competitor> map = null; map = in.parseInputFiles(in.getInputFiles(prop), prop); ArrayList...
public void testStandard() throws Exception { String path = TEST_PATH + "lap/"; in = new InputFileHandler(path); Properties prop = new Properties(); prop.load(new FileInputStream(path + CONFIG)); Map<Integer, Competitor> map = null; map = in.parseInputFiles(in.getInputFiles(prop), prop); ArrayList<Comp...
diff --git a/modules/samples/image-viewer/src/classes/org/jdesktop/wonderland/modules/imageviewer/client/cell/jme/cellrenderer/ImageViewerCellRenderer.java b/modules/samples/image-viewer/src/classes/org/jdesktop/wonderland/modules/imageviewer/client/cell/jme/cellrenderer/ImageViewerCellRenderer.java index 291b7febe..7e...
false
true
protected Node createSceneGraph(Entity entity) { // Create a new root node node = new Node("Image Viewer Node"); // First load the texture to figure out its size String textureURI = ((ImageViewerCell)cell).getImageURI(); if (textureURI == null) { logger.warning(...
protected Node createSceneGraph(Entity entity) { // Create a new root node node = new Node("Image Viewer Node"); // First load the texture to figure out its size String textureURI = ((ImageViewerCell)cell).getImageURI(); if (textureURI == null) { logger.warning(...
diff --git a/src/main/java/org/vertx/java/deploy/impl/rhino/RhinoVerticle.java b/src/main/java/org/vertx/java/deploy/impl/rhino/RhinoVerticle.java index dbee3cb..cf935c2 100644 --- a/src/main/java/org/vertx/java/deploy/impl/rhino/RhinoVerticle.java +++ b/src/main/java/org/vertx/java/deploy/impl/rhino/RhinoVerticle.java...
true
true
private static Require installRequire(final ClassLoader cl, Context cx, ScriptableObject scope) { RequireBuilder rb = new RequireBuilder(); rb.setSandboxed(false); rb.setModuleScriptProvider( new SoftCachingModuleScriptProvider(new UrlModuleSourceProvider(null, null)) { @Override ...
private static Require installRequire(final ClassLoader cl, Context cx, ScriptableObject scope) { RequireBuilder rb = new RequireBuilder(); rb.setSandboxed(false); rb.setModuleScriptProvider( new SoftCachingModuleScriptProvider(new UrlModuleSourceProvider(null, null)) { @Override ...
diff --git a/java-scripts/ply-package/src/main/java/net/ocheyedan/ply/script/PackageScript.java b/java-scripts/ply-package/src/main/java/net/ocheyedan/ply/script/PackageScript.java index 274976f..b8b443d 100644 --- a/java-scripts/ply-package/src/main/java/net/ocheyedan/ply/script/PackageScript.java +++ b/java-scripts/p...
true
true
public static void main(String[] args) { String packaging = Props.getValue("project", "packaging"); PackagingScript packagingScript; if ("zip".equals(packaging)) { packagingScript = new ZipPackageScript(); } else if ("jar".equals(packaging)) { packagingScript ...
public static void main(String[] args) { String packaging = Props.getValue("project", "packaging"); PackagingScript packagingScript; if ("zip".equals(packaging)) { packagingScript = new ZipPackageScript(); } else if ("jar".equals(packaging)) { packagingScript ...
diff --git a/plugins/SPIMAcquisition/spim/SPIMAcquisition.java b/plugins/SPIMAcquisition/spim/SPIMAcquisition.java index 77cbfebec..c902a003a 100644 --- a/plugins/SPIMAcquisition/spim/SPIMAcquisition.java +++ b/plugins/SPIMAcquisition/spim/SPIMAcquisition.java @@ -1,857 +1,859 @@ package spim; import ij.IJ; import...
false
true
protected void initUI() { if (frame != null) return; frame = new JFrame("SPIM in a Briefcase"); JPanel left = new JPanel(); left.setLayout(new BoxLayout(left, BoxLayout.PAGE_AXIS)); left.setBorder(BorderFactory.createTitledBorder("Position/Angle")); xSlider = new MotorSlider(motorMin, motorMax, 1) { ...
protected void initUI() { if (frame != null) return; frame = new JFrame("SPIM in a Briefcase"); JPanel left = new JPanel(); left.setLayout(new BoxLayout(left, BoxLayout.PAGE_AXIS)); left.setBorder(BorderFactory.createTitledBorder("Position/Angle")); xSlider = new MotorSlider(motorMin, motorMax, 1) { ...
diff --git a/src/main/java/dk/teamonline/util/couchDo/CouchObjectChanges.java b/src/main/java/dk/teamonline/util/couchDo/CouchObjectChanges.java index 27562c2..7dccdfc 100644 --- a/src/main/java/dk/teamonline/util/couchDo/CouchObjectChanges.java +++ b/src/main/java/dk/teamonline/util/couchDo/CouchObjectChanges.java @@ ...
false
true
private JSONObject waitForChange( boolean acceptTimeout ) { JSONObject change = null; try { // I just want one change. If I choose more, when I will wait longer. URL url = new URL( getDbUrl() + "/_changes?feed=continuous&limit=1&since=" + sequenceNo + "&filter=" + filter ); change = loadJSONObject( url, ...
private JSONObject waitForChange( boolean acceptTimeout ) { JSONObject change = null; try { // I just want one change. If I choose more, when I will wait longer. URL url = new URL( getDbUrl() + "/_changes?feed=continuous&limit=1&since=" + sequenceNo + "&filter=" + filter ); change = loadJSONObject( url, ...
diff --git a/tools/src/main/java/org/usergrid/tools/AppNameFix.java b/tools/src/main/java/org/usergrid/tools/AppNameFix.java index 8872195d..62a06dce 100644 --- a/tools/src/main/java/org/usergrid/tools/AppNameFix.java +++ b/tools/src/main/java/org/usergrid/tools/AppNameFix.java @@ -1,115 +1,115 @@ /*******************...
false
true
public void runTool(CommandLine line) throws Exception { startSpring(); EntityManager rootEm = emf.getEntityManager(CassandraService.MANAGEMENT_APPLICATION_ID); for(Entry<UUID, String> org :managementService.getOrganizations().entrySet()){ for(Entry<UUID,...
public void runTool(CommandLine line) throws Exception { startSpring(); EntityManager rootEm = emf.getEntityManager(CassandraService.MANAGEMENT_APPLICATION_ID); for(Entry<UUID, String> org :managementService.getOrganizations().entrySet()){ for(Entry<UUID,...
diff --git a/application/app/models/user/Independent.java b/application/app/models/user/Independent.java index 34a5f04f..c653a781 100644 --- a/application/app/models/user/Independent.java +++ b/application/app/models/user/Independent.java @@ -1,84 +1,84 @@ package models.user; import java.util.ArrayList; import ...
true
true
public Collection<ClassGroup> getPreviousClasses(){ ArrayList<ClassGroup> res = new ArrayList<>(); List<ClassPupil> cp = Ebean.find(ClassPupil.class).where().eq("indid", this.data.id).findList(); for(ClassPupil c : cp){ ClassGroup cg = Ebean.find(ClassGroup.class).where().eq("id", c.classid).findUnique(); ...
public Collection<ClassGroup> getPreviousClasses(){ ArrayList<ClassGroup> res = new ArrayList<ClassGroup>(); List<ClassPupil> cp = Ebean.find(ClassPupil.class).where().eq("indid", this.data.id).findList(); for(ClassPupil c : cp){ ClassGroup cg = Ebean.find(ClassGroup.class).where().eq("id", c.classid).find...
diff --git a/org.whole.test/test/org/whole/lang/templates/ResourceTemplateTest.java b/org.whole.test/test/org/whole/lang/templates/ResourceTemplateTest.java index d0b929171..f1cd006c2 100755 --- a/org.whole.test/test/org/whole/lang/templates/ResourceTemplateTest.java +++ b/org.whole.test/test/org/whole/lang/templates/R...
true
true
private IEntity getFilesystemPattern() { ModelBuilderOperation op = new ModelBuilderOperation(); IArtifactsBuilder ab = (IArtifactsBuilder) op.wGetBuilder(ArtifactsLanguageKit.URI); ICommonsBuilder cb = (ICommonsBuilder) op.wGetBuilder(CommonsLanguageKit.URI); ab.FolderArtifact_(); ab.Name("testfolder"); c...
private IEntity getFilesystemPattern() { ModelBuilderOperation op = new ModelBuilderOperation(); IArtifactsBuilder ab = (IArtifactsBuilder) op.wGetBuilder(ArtifactsLanguageKit.URI); ICommonsBuilder cb = (ICommonsBuilder) op.wGetBuilder(CommonsLanguageKit.URI); ab.FolderArtifact_(); ab.Name("testfolder"); c...
diff --git a/src/net/sf/freecol/client/gui/panel/ReportForeignAffairPanel.java b/src/net/sf/freecol/client/gui/panel/ReportForeignAffairPanel.java index 2bc7966c2..3a815f230 100644 --- a/src/net/sf/freecol/client/gui/panel/ReportForeignAffairPanel.java +++ b/src/net/sf/freecol/client/gui/panel/ReportForeignAffairPanel....
true
true
public ReportForeignAffairPanel(Canvas parent) { super(parent, Messages.message("reportForeignAction.name")); // Display Panel reportPanel.removeAll(); reportPanel.setLayout(new MigLayout("wrap 2", "[]push[]")); for (Player enemy : getGame().getLiveEuropeanPlayers()) { ...
public ReportForeignAffairPanel(Canvas parent) { super(parent, Messages.message("reportForeignAction.name")); // Display Panel reportPanel.removeAll(); reportPanel.setLayout(new MigLayout("wrap 2", "[]push[]", "[align top]")); for (Player enemy : getGame().getLiveEuropeanP...
diff --git a/astrid/plugin-src/com/todoroo/astrid/gtasks/sync/GtasksSyncService.java b/astrid/plugin-src/com/todoroo/astrid/gtasks/sync/GtasksSyncService.java index 9757973ed..2e4e1d4d7 100644 --- a/astrid/plugin-src/com/todoroo/astrid/gtasks/sync/GtasksSyncService.java +++ b/astrid/plugin-src/com/todoroo/astrid/gtasks...
true
true
public void pushTaskOnSave(Task task, ContentValues values, GtasksInvoker invoker, boolean sleep) throws IOException { if (sleep) AndroidUtilities.sleepDeep(1000L); //Wait for metadata to be saved Metadata gtasksMetadata = gtasksMetadataService.getTaskMetadata(task.getId()); com...
public void pushTaskOnSave(Task task, ContentValues values, GtasksInvoker invoker, boolean sleep) throws IOException { if (sleep) AndroidUtilities.sleepDeep(1000L); //Wait for metadata to be saved Metadata gtasksMetadata = gtasksMetadataService.getTaskMetadata(task.getId()); com...
diff --git a/M4/src/edu/gatech/oad/antlab/person/Person1.java b/M4/src/edu/gatech/oad/antlab/person/Person1.java index 4402549..9d70080 100644 --- a/M4/src/edu/gatech/oad/antlab/person/Person1.java +++ b/M4/src/edu/gatech/oad/antlab/person/Person1.java @@ -1,51 +1,51 @@ package edu.gatech.oad.antlab.person; /** *...
true
true
private String calc(String input) { String res = "" + input.charAt(0) + input.charAt(1); for (int i = 2; i < input.length(); i++) res = input.charAt(i) + res; return res; }
private String calc(String input) { String res = "" + input.charAt(0) + input.charAt(1); for (int i = input.length() - 1; i > 1; i--) res = input.charAt(i) + res; return res; }
diff --git a/org.orbisgis.core-ui/src/main/java/org/orbisgis/views/geocatalog/actions/create/CreateResource.java b/org.orbisgis.core-ui/src/main/java/org/orbisgis/views/geocatalog/actions/create/CreateResource.java index 36fd9e05e..be37f1fc5 100644 --- a/org.orbisgis.core-ui/src/main/java/org/orbisgis/views/geocatalog/...
true
true
public void execute(Catalog catalog, IResource selectedNode) { // Get the non raster writable drivers DataManager dm = (DataManager) Services .getService("org.orbisgis.DataManager"); DriverManager driverManager = dm.getSourceManager().getDriverManager(); String[] driverNames = driverManager.getDriverNames(...
public void execute(Catalog catalog, IResource selectedNode) { // Get the non raster writable drivers DataManager dm = (DataManager) Services .getService("org.orbisgis.DataManager"); DriverManager driverManager = dm.getSourceManager().getDriverManager(); String[] driverNames = driverManager.getDriverNames(...
diff --git a/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaBrowserManager.java b/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaBrowserManager.java index bf3aa0a4c..43a5307fa 100644 --- a/ldapbrowser-ui/src/main/j...
false
true
private static void setInput( SchemaBrowserInput input ) { SchemaBrowser editor = ( SchemaBrowser ) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage() .findEditor( DUMMY_INPUT ); if ( editor == null && input != null ) { // open new schema browser...
private static void setInput( SchemaBrowserInput input ) { SchemaBrowser editor = ( SchemaBrowser ) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage() .findEditor( DUMMY_INPUT ); if ( editor == null && input != null ) { // open new schema browser...
diff --git a/kiji-mapreduce-lib/src/main/java/org/kiji/mapreduce/lib/bulkimport/DescribedInputTextBulkImporter.java b/kiji-mapreduce-lib/src/main/java/org/kiji/mapreduce/lib/bulkimport/DescribedInputTextBulkImporter.java index 72559a1..415b421 100644 --- a/kiji-mapreduce-lib/src/main/java/org/kiji/mapreduce/lib/bulkimp...
true
true
public final void setup(KijiTableContext context) throws IOException { HadoopConfigurator.configure(this); final Configuration conf = getConf(); Preconditions.checkNotNull(mTableImportDescriptor); final KijiURI uri = KijiURI.newBuilder(conf.get(KijiConfKeys.KIJI_OUTPUT_TABLE_URI)).build(); final...
public final void setup(KijiTableContext context) throws IOException { HadoopConfigurator.configure(this); final Configuration conf = getConf(); Preconditions.checkNotNull(mTableImportDescriptor); final KijiURI uri = KijiURI.newBuilder(conf.get(KijiConfKeys.KIJI_OUTPUT_TABLE_URI)).build(); final...
diff --git a/src/com/centny/jetty4a/server/EnvProperties.java b/src/com/centny/jetty4a/server/EnvProperties.java index b2f0cdd..8b6fdc0 100644 --- a/src/com/centny/jetty4a/server/EnvProperties.java +++ b/src/com/centny/jetty4a/server/EnvProperties.java @@ -1,85 +1,86 @@ package com.centny.jetty4a.server; import jav...
true
true
public static String envVal(String val) { if (val == null || val.length() == 0) { return val; } Pattern ptn = Pattern.compile("\\$\\([^\\)]*\\)"); Matcher mch = ptn.matcher(val); StringBuffer sb = new StringBuffer(); String tmp; while (mch.find()) { String key = mch.group(); key = key.substring(...
public static String envVal(String val) { if (val == null || val.length() == 0) { return val; } Pattern ptn = Pattern.compile("\\$\\([^\\)]*\\)"); Matcher mch = ptn.matcher(val); StringBuffer sb = new StringBuffer(); String tmp; while (mch.find()) { String key = mch.group(); key = key.substring(...
diff --git a/src/org/ablaf/internal/lexer/AbstractLexerSource.java b/src/org/ablaf/internal/lexer/AbstractLexerSource.java index 70ecbf545..1d7baf022 100644 --- a/src/org/ablaf/internal/lexer/AbstractLexerSource.java +++ b/src/org/ablaf/internal/lexer/AbstractLexerSource.java @@ -1,137 +1,138 @@ /* * AbstractLexerSo...
true
true
public void unread() { synchronized (buffer) { char result; if (offset > 0) { result = buffer.charAt(--offset); } else { result = 0; } if (result == '\n') { line--; } return; ...
public void unread() { synchronized (buffer) { char result; if (offset > 0) { result = buffer.charAt(--offset); } else { result = 0; } if (result == '\n') { line--; } lastRead = r...
diff --git a/src/myservs/Publish.java b/src/myservs/Publish.java index 11f10b7..56b5b1f 100644 --- a/src/myservs/Publish.java +++ b/src/myservs/Publish.java @@ -1,122 +1,130 @@ package myservs; import java.io.*; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.HashMap; ...
false
true
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub request.setCharacterEncoding("UTF-8"); response.setCharacterEncoding("UTF-8"); DiskFileItemFactory fileItemFactory = new DiskFileItemFactory(); //Set t...
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub request.setCharacterEncoding("UTF-8"); response.setCharacterEncoding("UTF-8"); DiskFileItemFactory fileItemFactory = new DiskFileItemFactory(); //Set t...
diff --git a/src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify/UnsupportedOperationErrorMsgTest.java b/src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify/UnsupportedOperationErrorMsgTest.java index 85530cbf..cf917304 100644 --- a/src/main/java/org/cloudifysource/quality/iTests/test/cli/cl...
true
true
public void removeTemplateAndTryToInstallService() throws MalformedURLException { DefaultHttpClient httpClient = new SystemDefaultHttpClient(); final HttpParams httpParams = httpClient.getParams(); HttpConnectionParams.setConnectionTimeout(httpParams, CloudifyConstants.DEFAULT_HTTP_CONNECTION_TIMEOUT); H...
public void UnsupportedGetServiceStatusOperationTest() throws MalformedURLException { DefaultHttpClient httpClient = new SystemDefaultHttpClient(); final HttpParams httpParams = httpClient.getParams(); HttpConnectionParams.setConnectionTimeout(httpParams, CloudifyConstants.DEFAULT_HTTP_CONNECTION_TIMEOUT);...
diff --git a/user/src/com/google/gwt/user/client/ui/UIObject.java b/user/src/com/google/gwt/user/client/ui/UIObject.java index 23cc9ded1..15e4e83d7 100644 --- a/user/src/com/google/gwt/user/client/ui/UIObject.java +++ b/user/src/com/google/gwt/user/client/ui/UIObject.java @@ -1,394 +1,397 @@ /* * Copyright 2007 Goog...
true
true
protected static void setStyleName(Element elem, String style, boolean add) { if (elem == null) { throw new RuntimeException(NULL_HANDLE_MSG); } if (style.length() == 0) { throw new IllegalArgumentException( "Cannot pass is an empty string as a style name."); } // Get the cu...
protected static void setStyleName(Element elem, String style, boolean add) { if (elem == null) { throw new RuntimeException(NULL_HANDLE_MSG); } if (style.length() == 0) { throw new IllegalArgumentException( "Cannot pass is an empty string as a style name."); } // Get the cu...
diff --git a/src/main/java/com/onarandombox/utils/MVTravelAgent.java b/src/main/java/com/onarandombox/utils/MVTravelAgent.java index 03a5233..ea05063 100644 --- a/src/main/java/com/onarandombox/utils/MVTravelAgent.java +++ b/src/main/java/com/onarandombox/utils/MVTravelAgent.java @@ -1,83 +1,86 @@ package com.onarando...
true
true
private Location getSafeLocation() { // At this time, these can never use the velocity. if (this.destination instanceof CannonDestination) { this.core.log(Level.FINE, "Using Stock TP method. This cannon will have 0 velocity"); } MVTeleport teleporter = new MVTeleport(this...
private Location getSafeLocation() { // At this time, these can never use the velocity. if (this.destination instanceof CannonDestination) { this.core.log(Level.FINE, "Using Stock TP method. This cannon will have 0 velocity"); } MVTeleport teleporter = new MVTeleport(this...
diff --git a/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/JavaMigrationDelegate.java b/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/JavaMigrationDelegate.java index cb1526992..810d6de85 100644 --- a/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launchin...
true
true
public void migrate(ILaunchConfiguration candidate) throws CoreException { IProject[] projects = getProjectsForCandidate(candidate); ArrayList mappings = new ArrayList(); for(int i = 0; i < projects.length; i++) { if(projects[i].exists() & !mappings.contains(projects[i])) { mappings.add(projects[i]); }...
public void migrate(ILaunchConfiguration candidate) throws CoreException { IProject[] projects = getProjectsForCandidate(candidate); ArrayList mappings = new ArrayList(); for(int i = 0; i < projects.length; i++) { if(!mappings.contains(projects[i])) { mappings.add(projects[i]); } } ILaunchConfigura...
diff --git a/modules/core/src/main/java/org/torquebox/core/runtime/RubyRuntimeFactoryImpl.java b/modules/core/src/main/java/org/torquebox/core/runtime/RubyRuntimeFactoryImpl.java index 1ea9d13c6..8e7bce049 100644 --- a/modules/core/src/main/java/org/torquebox/core/runtime/RubyRuntimeFactoryImpl.java +++ b/modules/core/...
true
true
public synchronized Ruby createInstance(String contextInfo) throws Exception { RubyInstanceConfig config = new TorqueBoxRubyInstanceConfig(); config.setLoader( this.classLoader ); config.setClassCache( getClassCache() ); config.setLoadServiceCreator( new VFSLoadServiceCreator() ); ...
public synchronized Ruby createInstance(String contextInfo) throws Exception { RubyInstanceConfig config = new TorqueBoxRubyInstanceConfig(); config.setLoader( getClassLoader() ); config.setClassCache( getClassCache() ); config.setLoadServiceCreator( new VFSLoadServiceCreator() ); ...
diff --git a/flume-ng-channels/flume-recoverable-memory-channel/src/main/java/org/apache/flume/channel/recoverable/memory/RecoverableMemoryChannel.java b/flume-ng-channels/flume-recoverable-memory-channel/src/main/java/org/apache/flume/channel/recoverable/memory/RecoverableMemoryChannel.java index 2d08b686..0622f279 10...
true
true
public void configure(Context context) { memoryChannel.configure(context); String homePath = System.getProperty("user.home").replace('\\', '/'); String dataDir = context.getString(WAL_DATA_DIR, homePath + "/.flume/recoverable-memory-channel"); if(wal != null) { try { wal.close(); ...
public void configure(Context context) { memoryChannel.configure(context); String homePath = System.getProperty("user.home").replace('\\', '/'); String dataDir = context.getString(WAL_DATA_DIR, homePath + "/.flume/recoverable-memory-channel"); if(wal != null) { try { wal.close(); ...
diff --git a/oldCode/BedRoom.java b/oldCode/BedRoom.java index 8c7e3d1..55d01eb 100644 --- a/oldCode/BedRoom.java +++ b/oldCode/BedRoom.java @@ -1,10 +1,9 @@ package oldCode; public class BedRoom { public String whatKindOfRoomAreYou() { - // TODO Auto-generated method stub - return null; + return "Bedroom"; ...
true
true
public String whatKindOfRoomAreYou() { // TODO Auto-generated method stub return null; }
public String whatKindOfRoomAreYou() { return "Bedroom"; }
diff --git a/src/main/java/timeSheet/database/manager/GroupManager.java b/src/main/java/timeSheet/database/manager/GroupManager.java index 92fd883..10efa4d 100644 --- a/src/main/java/timeSheet/database/manager/GroupManager.java +++ b/src/main/java/timeSheet/database/manager/GroupManager.java @@ -1,66 +1,66 @@ package ...
true
true
public String getGroupSelection(Employee employee) { List<EmployeeGroup> groupList = getGroupList(); StringBuilder groupSelectionList = new StringBuilder(); for (EmployeeGroup group : groupList) { if (employee != null && employee.getGroup().getId() == group.getId()) { ...
public String getGroupSelection(Employee employee) { List<EmployeeGroup> groupList = getGroupList(); StringBuilder groupSelectionList = new StringBuilder(); for (EmployeeGroup group : groupList) { if (employee != null && employee.getGroup() != null && employee.getGroup().getId() ...
diff --git a/org.eclipse.mylyn.monitor.ui/src/org/eclipse/mylyn/monitor/ui/AbstractUserActivityMonitor.java b/org.eclipse.mylyn.monitor.ui/src/org/eclipse/mylyn/monitor/ui/AbstractUserActivityMonitor.java index 38e81a04..59c94134 100644 --- a/org.eclipse.mylyn.monitor.ui/src/org/eclipse/mylyn/monitor/ui/AbstractUserAct...
false
true
public String getStructureHandle() { if (ContextCore.getContextManager().getActiveContext() != null) { return ContextCore.getContextManager().getActiveContext().getHandleIdentifier(); } else { return null; } }
public String getStructureHandle() { if (ContextCore.getContextManager().getActiveContext().getHandleIdentifier() != null) { return ContextCore.getContextManager().getActiveContext().getHandleIdentifier(); } else { return IInteractionContextManager.ACTIVITY_DELTA_ADDED; } }
diff --git a/src/main/java/eu/serscis/sam/SAMInput.java b/src/main/java/eu/serscis/sam/SAMInput.java index ff0ef7f..d75f4ea 100644 --- a/src/main/java/eu/serscis/sam/SAMInput.java +++ b/src/main/java/eu/serscis/sam/SAMInput.java @@ -1,227 +1,231 @@ //////////////////////////////////////////////////////////////////////...
true
true
public Reader getScenario(String scenario) throws InvalidModelException { // (note: nesting isn't very useful at the moment, since there's only ever one scenario active) Stack<Directive.NestedIf> stack = new Stack<Directive.NestedIf>(); char[] chars = rawText.toCharArray(); int cutStart = -1; int ignoresOnSt...
public Reader getScenario(String scenario) throws InvalidModelException { // (note: nesting isn't very useful at the moment, since there's only ever one scenario active) Stack<Directive.NestedIf> stack = new Stack<Directive.NestedIf>(); char[] chars = rawText.toCharArray(); int cutStart = -1; int ignoresOnSt...
diff --git a/grails/src/java/org/codehaus/groovy/grails/orm/hibernate/cfg/GrailsAnnotationConfiguration.java b/grails/src/java/org/codehaus/groovy/grails/orm/hibernate/cfg/GrailsAnnotationConfiguration.java index 042983b9c..f73ac0280 100644 --- a/grails/src/java/org/codehaus/groovy/grails/orm/hibernate/cfg/GrailsAnnota...
false
true
protected void secondPassCompile() throws MappingException { if (configLocked) { return; } if(LOG.isDebugEnabled()) { LOG.debug("[GrailsAnnotationConfiguration] [" + this.domainClasses.size() + "] Grails domain classes to bind to persistence runtime"); } // do...
protected void secondPassCompile() throws MappingException { if (!configLocked) { if(LOG.isDebugEnabled()) { LOG.debug("[GrailsAnnotationConfiguration] [" + this.domainClasses.size() + "] Grails domain classes to bind to persistence runtime"); } // do Gra...
diff --git a/src/main/ed/util/LicenseHeaderCheck.java b/src/main/ed/util/LicenseHeaderCheck.java index 852302b87..c6cd81b54 100644 --- a/src/main/ed/util/LicenseHeaderCheck.java +++ b/src/main/ed/util/LicenseHeaderCheck.java @@ -1,254 +1,254 @@ // LicenseHeaderCheck.java /** * Copyright (C) 2008 10gen Inc. * ...
true
true
void doLicense( File f ) throws IOException { final CodeType type = getCodeType( f ); if ( type == null ) throw new RuntimeException( "can't handle files lke : " + f ); final String raw = StreamUtil.readFully( ( new FileInputStream( f ) ) ); fina...
void doLicense( File f ) throws IOException { final CodeType type = getCodeType( f ); if ( type == null ) throw new RuntimeException( "can't handle files lke : " + f ); final String raw = StreamUtil.readFully( ( new FileInputStream( f ) ) ); fina...
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/threadgroups/JavaThreadEventHandler.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/threadgroups/JavaThreadEventHandler.java index 00de76752..021cc352c 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/...
true
true
protected ModelDelta addPathToThread(ModelDelta delta, IThread thread) { if (JavaElementContentProvider.isDisplayThreadGroups()) { ILaunch launch = thread.getLaunch(); ILaunch[] launches = DebugPlugin.getDefault().getLaunchManager().getLaunches(); Object[] launchChildren = launch.getChildren(); delta = d...
protected ModelDelta addPathToThread(ModelDelta delta, IThread thread) { if (JavaElementContentProvider.isDisplayThreadGroups()) { ILaunch launch = thread.getLaunch(); ILaunch[] launches = DebugPlugin.getDefault().getLaunchManager().getLaunches(); Object[] launchChildren = launch.getChildren(); delta = d...
diff --git a/src/common/me/nallar/tickprofiler/util/contextaccess/ContextAccessProvider.java b/src/common/me/nallar/tickprofiler/util/contextaccess/ContextAccessProvider.java index 5db9b10..612d2a7 100755 --- a/src/common/me/nallar/tickprofiler/util/contextaccess/ContextAccessProvider.java +++ b/src/common/me/nallar/ti...
false
true
static ContextAccess getContextAccess() { for (Class<?> clazz : contextAccessClasses) { try { ContextAccess contextAccess = (ContextAccess) clazz.newInstance(); Class<?> currentClass = contextAccess.getContext(0); if (currentClass != ContextAccessProvider.class) { throw new Error("Wrong class ret...
static ContextAccess getContextAccess() { for (Class<?> clazz : contextAccessClasses) { try { ContextAccess contextAccess = (ContextAccess) clazz.newInstance(); Class<?> currentClass = contextAccess.getContext(0); if (currentClass != ContextAccessProvider.class) { StringBuilder sb = new StringBui...
diff --git a/src/com/fsck/k9/mail/store/WebDavStore.java b/src/com/fsck/k9/mail/store/WebDavStore.java index 3c2e5017..df1f0a38 100644 --- a/src/com/fsck/k9/mail/store/WebDavStore.java +++ b/src/com/fsck/k9/mail/store/WebDavStore.java @@ -1,2667 +1,2665 @@ package com.fsck.k9.mail.store; import android.util.Log; ...
false
true
public void doFBA() throws IOException, MessagingException { /* public CookieStore doAuthentication(String username, String password, String url) throws IOException, MessagingException {*/ String authPath; String url = this.mUrl; String username = this.mUsername;...
public void doFBA() throws IOException, MessagingException { /* public CookieStore doAuthentication(String username, String password, String url) throws IOException, MessagingException {*/ String authPath; String url = this.mUrl; String username = this.mUsername;...
diff --git a/servicemix-core/src/main/java/org/apache/servicemix/jbi/security/acl/impl/AuthorizationEntry.java b/servicemix-core/src/main/java/org/apache/servicemix/jbi/security/acl/impl/AuthorizationEntry.java index def0b3975..f4edca3f5 100644 --- a/servicemix-core/src/main/java/org/apache/servicemix/jbi/security/acl/...
true
true
public String getRoles() { StringBuffer sb = new StringBuffer(); for (Iterator iter = this.acls.iterator(); iter.hasNext();) { GroupPrincipal p = (GroupPrincipal) iter.next(); sb.append(p); if (iter.hasNext()) { sb.append(","); } ...
public String getRoles() { StringBuffer sb = new StringBuffer(); if (this.acls != null) { for (Iterator iter = this.acls.iterator(); iter.hasNext();) { GroupPrincipal p = (GroupPrincipal) iter.next(); sb.append(p); if (iter.hasNext()) { ...
diff --git a/app/controllers/DnD.java b/app/controllers/DnD.java index b38b40f..dc8d6c2 100644 --- a/app/controllers/DnD.java +++ b/app/controllers/DnD.java @@ -1,49 +1,50 @@ package controllers; import play.libs.WS; import play.libs.WS.HttpResponse; import play.libs.WS.WSRequest; import play.mvc.Controller; im...
true
true
public static void index() { // Get our secret from the environment, we use this to access and verify the request String yourConsumerSecret=System.getenv("CANVAS_CONSUMER_SECRET"); // Verify the request and decode into concrete object CanvasRequest cReq = SignedRequest.verifyAndDe...
public static void index() { // Get our secret from the environment, we use this to access and verify the request String yourConsumerSecret=System.getenv("CANVAS_CONSUMER_SECRET"); // Verify the request and decode into concrete object CanvasRequest cReq = SignedRequest.verifyAndDe...
diff --git a/src/main/java/org/vertx/java/test/VertxTestBase.java b/src/main/java/org/vertx/java/test/VertxTestBase.java index b043735..90c75db 100644 --- a/src/main/java/org/vertx/java/test/VertxTestBase.java +++ b/src/main/java/org/vertx/java/test/VertxTestBase.java @@ -1,143 +1,142 @@ /* * Copyright 2012 the orig...
false
true
protected final void testMessageEcho(String address, String message) throws Exception { final long timeout = 2000L; final TimeUnit timeUnit = TimeUnit.MILLISECONDS; final LinkedBlockingQueue<String> queue = new LinkedBlockingQueue<>(); getVertx().eventBus().send(address, message, new QueueReplyHandl...
protected final void testMessageEcho(String address, String message) throws Exception { final TimeUnit timeUnit = TimeUnit.MILLISECONDS; final LinkedBlockingQueue<String> queue = new LinkedBlockingQueue<>(); getVertx().eventBus().send(address, message, new QueueReplyHandler<String>(queue, AWAIT_TIMEOUT,...
diff --git a/src/main/java/com/github/gwtbootstrap/client/ui/base/ValueBoxBase.java b/src/main/java/com/github/gwtbootstrap/client/ui/base/ValueBoxBase.java index 3e92e8086..5ed243b95 100644 --- a/src/main/java/com/github/gwtbootstrap/client/ui/base/ValueBoxBase.java +++ b/src/main/java/com/github/gwtbootstrap/client/u...
true
true
public void showErrors(List<EditorError> errors) { Widget decoratedWidget = controlGroup != null? controlGroup : this; if(errors != null && !errors.isEmpty()) { StyleHelper.addStyle(decoratedWidget, ControlGroupType.ERROR); SafeHtmlBuilder sb = new SafeHtmlBuilder(); for (EditorError error : errors) { ...
public void showErrors(List<EditorError> errors) { Widget decoratedWidget = controlGroup != null? controlGroup : this; if(errors != null && !errors.isEmpty()) { StyleHelper.addStyle(decoratedWidget, ControlGroupType.ERROR); SafeHtmlBuilder sb = new SafeHtmlBuilder(); for (EditorError error : errors) { ...
diff --git a/izpack-src/trunk/src/lib/com/izforge/izpack/installer/Unpacker.java b/izpack-src/trunk/src/lib/com/izforge/izpack/installer/Unpacker.java index 3dddc909..76a4dfc3 100644 --- a/izpack-src/trunk/src/lib/com/izforge/izpack/installer/Unpacker.java +++ b/izpack-src/trunk/src/lib/com/izforge/izpack/installer/Unp...
false
true
public void run() { addToInstances(); try { // // Initialisations FileOutputStream out = null; ArrayList<ParsableFile> parsables = new ArrayList<ParsableFile>(); ArrayList<ExecutableFile> executables = new ArrayList<ExecutableFi...
public void run() { addToInstances(); try { // // Initialisations FileOutputStream out = null; ArrayList<ParsableFile> parsables = new ArrayList<ParsableFile>(); ArrayList<ExecutableFile> executables = new ArrayList<ExecutableFi...
diff --git a/table/src/main/uk/ac/starlink/table/formats/RowEvaluator.java b/table/src/main/uk/ac/starlink/table/formats/RowEvaluator.java index c703bab49..38b6a3b6c 100644 --- a/table/src/main/uk/ac/starlink/table/formats/RowEvaluator.java +++ b/table/src/main/uk/ac/starlink/table/formats/RowEvaluator.java @@ -1,434 +...
false
true
public void submitRow( List row ) throws TableFormatException { nrow_++; if ( ncol_ < 0 ) { init( row.size() ); } if ( row.size() != ncol_ ) { throw new TableFormatException( "Wrong number of columns at row " + nrow_ + " (expect...
public void submitRow( List row ) throws TableFormatException { nrow_++; if ( ncol_ < 0 ) { init( row.size() ); } if ( row.size() != ncol_ ) { throw new TableFormatException( "Wrong number of columns at row " + nrow_ + " (expect...
diff --git a/src/my/edu/mmu/timetable/TimeTableAppWidget.java b/src/my/edu/mmu/timetable/TimeTableAppWidget.java index 7389d91..e9fd590 100644 --- a/src/my/edu/mmu/timetable/TimeTableAppWidget.java +++ b/src/my/edu/mmu/timetable/TimeTableAppWidget.java @@ -1,130 +1,130 @@ package my.edu.mmu.timetable; import java.i...
false
true
static void updateAppWidget(Context context, AppWidgetManager appWidgetManager, int appWidgetId) { String title; StringBuilder output = new StringBuilder(); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); String session = prefs.getString("session", ""); String trimester ...
static void updateAppWidget(Context context, AppWidgetManager appWidgetManager, int appWidgetId) { String title; StringBuilder output = new StringBuilder(); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); String session = prefs.getString("session", ""); String trimester ...
diff --git a/P2Pnode/src/file/FileClient.java b/P2Pnode/src/file/FileClient.java index a9f1969..efcf320 100644 --- a/P2Pnode/src/file/FileClient.java +++ b/P2Pnode/src/file/FileClient.java @@ -1,116 +1,116 @@ package file; import java.io.BufferedOutputStream; import java.io.BufferedReader; import java.io.FileInpu...
false
true
public void receiveFile(FolderTree ft, Nod n, InputStream is, String path, String name , String usr) throws Exception{ try { String tempStamp = "^"; // read this file into InputStream // write the inputStream to a FileOutputStream FileOutputStream outputStream = new FileOutputStream(new jav...
public void receiveFile(FolderTree ft, Nod n, InputStream is, String path, String name , String usr) throws Exception{ try { String tempStamp = "^"; // read this file into InputStream // write the inputStream to a FileOutputStream FileOutputStream outputStream = new FileOutputStream(new jav...
diff --git a/solr/impl/src/main/java/org/sakaiproject/search/queueing/WaitingTaskRunner.java b/solr/impl/src/main/java/org/sakaiproject/search/queueing/WaitingTaskRunner.java index ea543676..4f4c2487 100644 --- a/solr/impl/src/main/java/org/sakaiproject/search/queueing/WaitingTaskRunner.java +++ b/solr/impl/src/main/ja...
false
true
public void runTask(Task task) { try { checkLockdown(); // Unlock permissions so every resource is accessible securityService.pushAdvisor(OPEN_SECURITY_ADVISOR); try { taskHandler.executeTask(task); } catch (NestedTaskHandlingExce...
public void runTask(Task task) { try { checkLockdown(); // Unlock permissions so every resource is accessible securityService.pushAdvisor(OPEN_SECURITY_ADVISOR); try { taskHandler.executeTask(task); // If there is no exception...
diff --git a/src/realtalk/model/ChatRoomModel.java b/src/realtalk/model/ChatRoomModel.java index c75dcb0..7063068 100644 --- a/src/realtalk/model/ChatRoomModel.java +++ b/src/realtalk/model/ChatRoomModel.java @@ -1,267 +1,271 @@ package realtalk.model; import java.sql.Timestamp; import java.util.ArrayList; import...
false
true
public void addMi(MessageInfo mi) { //If we ever decide to limit the number of messages being cached for each room, // this is where we should implement the logic of that. //Preserves rgmi[k].timestamp before rgmi[k].timestamp invariant //It assumes existing messages are already sorted, and then basicall...
public void addMi(MessageInfo mi) { //If we ever decide to limit the number of messages being cached for each room, // this is where we should implement the logic of that. //Preserves rgmi[k].timestamp before rgmi[k].timestamp invariant //It assumes existing messages are already sorted, and then basicall...
diff --git a/plugins/org.eclipse.dltk.ruby.ui/src/org/eclipse/dltk/ruby/internal/ui/text/RubySemanticUpdateWorker.java b/plugins/org.eclipse.dltk.ruby.ui/src/org/eclipse/dltk/ruby/internal/ui/text/RubySemanticUpdateWorker.java index 8db51cc6..73457c71 100644 --- a/plugins/org.eclipse.dltk.ruby.ui/src/org/eclipse/dltk/r...
true
true
public boolean visitGeneral(ASTNode node) throws Exception { if (!ACTIVE) { return true; } if (node instanceof RubyRegexpExpression || node instanceof RubyDRegexpExpression) { handleRegexp(node); } else if (node instanceof RubySymbolReference) { addHighlightedPosition(node.sourceStart(), node.sour...
public boolean visitGeneral(ASTNode node) throws Exception { if (!ACTIVE) { return true; } if (node instanceof RubyRegexpExpression || node instanceof RubyDRegexpExpression) { handleRegexp(node); } else if (node instanceof RubySymbolReference) { addHighlightedPosition(node.sourceStart(), node.sour...
diff --git a/tests/src/java/com/threerings/presents/server/TestDispatcher.java b/tests/src/java/com/threerings/presents/server/TestDispatcher.java index f0e3aa78d..8f8abcdd1 100644 --- a/tests/src/java/com/threerings/presents/server/TestDispatcher.java +++ b/tests/src/java/com/threerings/presents/server/TestDispatcher....
false
true
public void dispatchRequest ( ClientObject source, int methodId, Object[] args) throws InvocationException { switch (methodId) { case TestMarshaller.GET_TEST_OID: ((TestProvider)provider).getTestOid( source, (TestService.TestOidListener)args[0] ...
public void dispatchRequest ( ClientObject source, int methodId, Object[] args) throws InvocationException { switch (methodId) { case TestMarshaller.GET_TEST_OID: ((TestProvider)provider).getTestOid( source, (TestService.TestOidListener)args[0] ...
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/AbstractDecoratedTextEditorPreferenceConstants.java b/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/AbstractDecoratedTextEditorPreferenceConstants.java index f9b654438..d5932c0c4 100644 --- a/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/Ab...
true
true
public static void initializeDefaultValues(IPreferenceStore store) { store.setDefault(AbstractDecoratedTextEditorPreferenceConstants.USE_ANNOTATIONS_PREFERENCE_PAGE, false); store.setDefault(AbstractDecoratedTextEditorPreferenceConstants.USE_QUICK_DIFF_PREFERENCE_PAGE, false); store.setDefault(AbstractDecorate...
public static void initializeDefaultValues(IPreferenceStore store) { store.setDefault(AbstractDecoratedTextEditorPreferenceConstants.USE_ANNOTATIONS_PREFERENCE_PAGE, false); store.setDefault(AbstractDecoratedTextEditorPreferenceConstants.USE_QUICK_DIFF_PREFERENCE_PAGE, false); store.setDefault(AbstractDecorate...
diff --git a/src/main/java/net/pms/dlna/ResumeObj.java b/src/main/java/net/pms/dlna/ResumeObj.java index b24d73882..fea589f1a 100644 --- a/src/main/java/net/pms/dlna/ResumeObj.java +++ b/src/main/java/net/pms/dlna/ResumeObj.java @@ -1,130 +1,132 @@ package net.pms.dlna; import java.io.BufferedReader; import java.i...
false
true
public void stop(long startTime, long expDuration, long bytes) { long now = System.currentTimeMillis(); long thisPlay = now - startTime; long duration = thisPlay + getTimeOffset(); if (expDuration > MIN_RESUME_TIME) { if (duration >= (expDuration - BACK_FACTOR)) { // we've seen the whole movie (likely) ...
public void stop(long startTime, long expDuration, long bytes) { long now = System.currentTimeMillis(); long thisPlay = now - startTime; long duration = thisPlay + getTimeOffset(); if (expDuration > MIN_RESUME_TIME) { if (duration >= (expDuration - BACK_FACTOR)) { // We've seen the whole video (likely) ...
diff --git a/android/src/org/coolreader/crengine/ProgressPopup.java b/android/src/org/coolreader/crengine/ProgressPopup.java index 410dc9b8..89e9371e 100644 --- a/android/src/org/coolreader/crengine/ProgressPopup.java +++ b/android/src/org/coolreader/crengine/ProgressPopup.java @@ -1,59 +1,59 @@ package org.coolreader...
true
true
public void show() { if (popup == null) { L.d("showing progress indicator"); LayoutInflater inflater = LayoutInflater.from(context); View content = inflater.inflate(R.layout.network_access_progress, null); content.measure(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams...
public void show() { if (popup == null) { L.d("showing progress indicator"); LayoutInflater inflater = LayoutInflater.from(context); View content = inflater.inflate(R.layout.network_access_progress, null); content.measure(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams...
diff --git a/rultor-base/src/test/java/com/rultor/shell/bash/S3CmdPutTest.java b/rultor-base/src/test/java/com/rultor/shell/bash/S3CmdPutTest.java index f90ae1097..f9a60a9ee 100644 --- a/rultor-base/src/test/java/com/rultor/shell/bash/S3CmdPutTest.java +++ b/rultor-base/src/test/java/com/rultor/shell/bash/S3CmdPutTest....
true
true
public void executesUploadCmd() throws Exception { final File dir = Files.createTempDir(); FileUtils.write(new File(dir, "s3cmd"), "echo $@"); final S3CmdPut cmd = new S3CmdPut("", "", "", "", "", ""); cmd.exec( new ShellMocker.ProvisionedBash( new ShellMo...
public void executesUploadCmd() throws Exception { final File dir = Files.createTempDir(); FileUtils.write(new File(dir, "s3cmd"), "echo $@"); final S3CmdPut cmd = new S3CmdPut("", "", "", "", "", ""); cmd.exec( new ShellMocker.ProvisionedBash( new ShellMo...
diff --git a/src/org/opensolaris/opengrok/history/SubversionGet.java b/src/org/opensolaris/opengrok/history/SubversionGet.java index 5e211e8..34b66ce 100644 --- a/src/org/opensolaris/opengrok/history/SubversionGet.java +++ b/src/org/opensolaris/opengrok/history/SubversionGet.java @@ -1,91 +1,91 @@ /* * CDDL HEADER S...
true
true
public int read(byte[] b, int off, int len) throws IOException { if (input == null) { long revision; try { revision = Long.parseLong(rev); } catch (NumberFormatException exp) { throw new IOException("Failed to retrieve rev (" + rev + "): Nr...
public int read(byte[] b, int off, int len) throws IOException { if (input == null) { long revision; try { revision = Long.parseLong(rev); } catch (NumberFormatException exp) { throw new IOException("Failed to retrieve rev (" + rev + "): No...
diff --git a/src/org/eclipse/jface/action/StatusLineManager.java b/src/org/eclipse/jface/action/StatusLineManager.java index a7a92f5e..3c673f6e 100644 --- a/src/org/eclipse/jface/action/StatusLineManager.java +++ b/src/org/eclipse/jface/action/StatusLineManager.java @@ -1,346 +1,346 @@ /*******************************...
true
true
public IProgressMonitor getProgressMonitor() { return new IProgressMonitorWithBlocking() { IProgressMonitor progressDelegate = getProgressMonitorDelegate(); /* (non-Javadoc) * @see org.eclipse.core.runtime.IProgressMonitor#beginTask(java.lang.String, int) ...
public IProgressMonitor getProgressMonitor() { return new IProgressMonitorWithBlocking() { IProgressMonitor progressDelegate = getProgressMonitorDelegate(); /* (non-Javadoc) * @see org.eclipse.core.runtime.IProgressMonitor#beginTask(java.lang.String, int) ...
diff --git a/asm/src/org/objectweb/asm/ClassReader.java b/asm/src/org/objectweb/asm/ClassReader.java index 4e4185b4..922416c4 100644 --- a/asm/src/org/objectweb/asm/ClassReader.java +++ b/asm/src/org/objectweb/asm/ClassReader.java @@ -1,1391 +1,1391 @@ /*** * ASM: a very small and fast Java bytecode manipulation fra...
true
true
public void accept ( final ClassVisitor classVisitor, final Attribute[] attrs, final boolean skipDebug) { byte[] b = this.b; // the bytecode array char[] c = new char[maxStringLength]; // buffer used to read strings int i, j, k; // loop variable...
public void accept ( final ClassVisitor classVisitor, final Attribute[] attrs, final boolean skipDebug) { byte[] b = this.b; // the bytecode array char[] c = new char[maxStringLength]; // buffer used to read strings int i, j, k; // loop variable...
diff --git a/src/main/java/com/urbanairship/statshtable/StatsTimerRegistry.java b/src/main/java/com/urbanairship/statshtable/StatsTimerRegistry.java index c1fed66..8e13c52 100644 --- a/src/main/java/com/urbanairship/statshtable/StatsTimerRegistry.java +++ b/src/main/java/com/urbanairship/statshtable/StatsTimerRegistry....
true
true
public SHTimerMetric newSHTimerMetric(String scope, String name) { MetricName metricName = StatsHTable.newMetricName(scope + scopeSuffix, name); SHTimerMetric existingMetric = (SHTimerMetric)allMetrics().get(metricName); if(existingMetric != null) { return existingMetric; ...
public SHTimerMetric newSHTimerMetric(String scope, String name) { if(scope == null) { scope = ""; } MetricName metricName = StatsHTable.newMetricName(scope + scopeSuffix, name); SHTimerMetric existingMetric = (SHTimerMetric)allMetrics().get(metricName); if(existi...
diff --git a/rhq-server/src/main/java/org/rhq/plugins/server/AlertsCacheResourceComponent.java b/rhq-server/src/main/java/org/rhq/plugins/server/AlertsCacheResourceComponent.java index 54f0e436da..cb041b2cd8 100644 --- a/rhq-server/src/main/java/org/rhq/plugins/server/AlertsCacheResourceComponent.java +++ b/rhq-server/...
false
true
public OperationResult invokeOperation(String name, Configuration parameters) throws Exception { if ("reloadCaches".equals(name)) { EmsBean emsBean = getEmsBean(); String[] cacheNames = (String[]) emsBean.getAttribute("CacheNames").refresh(); Map<String, Integer> before =...
public OperationResult invokeOperation(String name, Configuration parameters) throws Exception { if ("reloadCaches".equals(name)) { EmsBean emsBean = getEmsBean(); Map<String, Integer> before = (Map<String, Integer>) emsBean.getAttribute("CacheCounts").refresh(); emsBean....
diff --git a/Poker/src/poker/GUI/Login.java b/Poker/src/poker/GUI/Login.java index d9c2b01..3d42e32 100644 --- a/Poker/src/poker/GUI/Login.java +++ b/Poker/src/poker/GUI/Login.java @@ -1,227 +1,228 @@ package poker.GUI; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.e...
true
true
public void actionPerformed(ActionEvent e) { System.out.println(e.getActionCommand()); if("connect".equals(e.getActionCommand())){ if(buttonConnect.getText().equals("Connect")){ if(textName.getText().length() >= 3 && textName.getText().length() <= 15){ PlayerNa...
public void actionPerformed(ActionEvent e) { System.out.println(e.getActionCommand()); if("connect".equals(e.getActionCommand())){ if(buttonConnect.getText().equals("Connect")){ if(textName.getText().length() >= 3 && textName.getText().length() <= 15){ PlayerNa...
diff --git a/src/co/firebase/tasks/specialized/json/JSONTask.java b/src/co/firebase/tasks/specialized/json/JSONTask.java index 7357634..3d25dca 100644 --- a/src/co/firebase/tasks/specialized/json/JSONTask.java +++ b/src/co/firebase/tasks/specialized/json/JSONTask.java @@ -1,43 +1,41 @@ package co.firebase.tasks.specia...
false
true
protected JSONResult doInBackground(InnerParams... params) { FireTaskResult<String> jsonStringResult = this.executeInner(params); if(jsonStringResult.isSuccess()) { String jsonResult = jsonStringResult.getValue(); if (jsonResult != null && !"".equalsIgnoreCase(jsonResult)) { Object json; try { ...
protected JSONResult doInBackground(InnerParams... params) { FireTaskResult<String> jsonStringResult = this.executeInner(params); if(jsonStringResult.isSuccess()) { String jsonResult = jsonStringResult.getValue(); if (jsonResult != null && !"".equalsIgnoreCase(jsonResult)) { Object json; try { ...
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeaturePackagedContentProvider.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeaturePackagedContentProvider.java index 18025a133..c0feb7e41 100644 --- a/update/org.eclipse.update.core/src/org/eclipse/update/int...
false
true
private ContentReference retrieveLocalJar(JarContentReference reference, InstallMonitor monitor) throws IOException, CoreException { //If the site does not support pack200, just get the jar as normal if(siteModel == null || !siteModel.supportsPack200() || !JarProcessor.canPerformUnpack()) { ContentReference con...
private ContentReference retrieveLocalJar(JarContentReference reference, InstallMonitor monitor) throws IOException, CoreException { //If the site does not support pack200, just get the jar as normal if(siteModel == null || !siteModel.supportsPack200() || !JarProcessor.canPerformUnpack()) { ContentReference con...
diff --git a/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTName.java b/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTName.java index 759dc7c5e..2012f2dfc 100644 --- a/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTName.java +++ b/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPP...
false
true
public IBinding[] findBindings(IASTName n, boolean isPrefix, String[] namespaces) { IASTNode parent = getParent(); if (parent instanceof ICPPASTElaboratedTypeSpecifier) { ICPPASTElaboratedTypeSpecifier specifier = (ICPPASTElaboratedTypeSpecifier) parent; int kind = specifier.getKind(); switch (kind) { ...
public IBinding[] findBindings(IASTName n, boolean isPrefix, String[] namespaces) { IASTNode parent = getParent(); if (parent instanceof ICPPASTElaboratedTypeSpecifier) { ICPPASTElaboratedTypeSpecifier specifier = (ICPPASTElaboratedTypeSpecifier) parent; int kind = specifier.getKind(); switch (kind) { ...
diff --git a/srcj/com/sun/electric/technology/DRCTemplate.java b/srcj/com/sun/electric/technology/DRCTemplate.java index 41d1aa0c4..0ba69f4f1 100755 --- a/srcj/com/sun/electric/technology/DRCTemplate.java +++ b/srcj/com/sun/electric/technology/DRCTemplate.java @@ -1,783 +1,786 @@ /* -*- tab-width: 4 -*- * * Electr...
false
true
public static boolean parseXmlElement(List<DRCTemplate> drcRules, String qName, Attributes attributes, String localName) { boolean layerRule = qName.equals("LayerRule"); boolean layersRule = qName.equals("LayersRule"); boolean nodeLayersRule = qN...
public static boolean parseXmlElement(List<DRCTemplate> drcRules, String qName, Attributes attributes, String localName) { boolean layerRule = qName.equals("LayerRule"); boolean layersRule = qName.equals("LayersRule"); boolean nodeLayersRule = qN...
diff --git a/haw/ci/Application.java b/haw/ci/Application.java index 4829420..e569836 100644 --- a/haw/ci/Application.java +++ b/haw/ci/Application.java @@ -1,26 +1,25 @@ package haw.ci; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.io.Reader; import haw.ci.lib.IToken...
true
true
public static void main(String[] args) throws IOException { Reader fileReader = new FileReader(new File("./example4.ob")); ITokenStream tokenStream = new Tokenizer(fileReader); Parser parser = new Parser(tokenStream); try { System.out.println(parser.build()); } catch (ParserAcceptError e) { System.out....
public static void main(String[] args) throws IOException { Reader fileReader = new FileReader(new File("./example4.ob")); ITokenStream tokenStream = new Tokenizer(fileReader); Parser parser = new Parser(tokenStream); try { System.out.println(parser.build()); } catch (ParserAcceptError e) { System.out....
diff --git a/javasvn-eclipse/org.tmatesoft.javasvn/src/org/tmatesoft/svn/core/JavaSVNPlugin.java b/javasvn-eclipse/org.tmatesoft.javasvn/src/org/tmatesoft/svn/core/JavaSVNPlugin.java index 6ba4d9626..d41adfc33 100644 --- a/javasvn-eclipse/org.tmatesoft.javasvn/src/org/tmatesoft/svn/core/JavaSVNPlugin.java +++ b/javasvn...
false
true
private void initProxy() { String proxyHost = Platform.getPreferencesService().getString("org.eclipse.update.core", "org.eclipse.update.core.proxy.host", null, null); String proxyPort = Platform.getPreferencesService().getString("org.eclipse.update.core", "org.eclipse.update.core.proxy.port", null, ...
private void initProxy() { String proxyHost = Platform.getPreferencesService().getString("org.eclipse.update.core", "org.eclipse.update.core.proxy.host", "", null); String proxyPort = Platform.getPreferencesService().getString("org.eclipse.update.core", "org.eclipse.update.core.proxy.port", "", null...
diff --git a/src/de/uni_leipzig/simba/saim/gui/widget/panel/MetricPanel.java b/src/de/uni_leipzig/simba/saim/gui/widget/panel/MetricPanel.java index 5f51066..d780b16 100644 --- a/src/de/uni_leipzig/simba/saim/gui/widget/panel/MetricPanel.java +++ b/src/de/uni_leipzig/simba/saim/gui/widget/panel/MetricPanel.java @@ -1,3...
false
true
public void attach() { if((SAIMApplication)getApplication()!= null) config = ((SAIMApplication)getApplication()).getConfig(); VerticalLayout mainLayout = new VerticalLayout(); mainLayout.setSizeFull(); mainLayout.setSpacing(false); mainLayout.setMargin(false); final VerticalLayout accordionLayout ...
public void attach() { if((SAIMApplication)getApplication()!= null) config = ((SAIMApplication)getApplication()).getConfig(); VerticalLayout mainLayout = new VerticalLayout(); mainLayout.setSizeFull(); mainLayout.setSpacing(false); mainLayout.setMargin(false); final VerticalLayout accordionLayout ...
diff --git a/Intercambio-II/src/java/Actions/AccionPlanDeEstudio.java b/Intercambio-II/src/java/Actions/AccionPlanDeEstudio.java index 5586c49..cea3498 100644 --- a/Intercambio-II/src/java/Actions/AccionPlanDeEstudio.java +++ b/Intercambio-II/src/java/Actions/AccionPlanDeEstudio.java @@ -1,94 +1,94 @@ /* * To change...
false
true
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { // aqui recibimos el plan de estudio puesto en el form PlanDeEstudio plan = (PlanDeEstudio) form; String nom = plan.getNom...
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { // aqui recibimos el plan de estudio puesto en el form PlanDeEstudio plan = (PlanDeEstudio) form; String nom = plan.getNom...
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/module/AcceleoModuleWizard.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/module/AcceleoModuleWizard.java index f3f99c20..33262399 100644 --- a/plugins/org.eclipse.acceleo.ide.ui/sr...
true
true
public boolean performFinish() { AcceleoModule acceleoModule = this.acceleoModuleWizardPage.getAcceleoModule(); IProject project = ResourcesPlugin.getWorkspace().getRoot() .getProject(acceleoModule.getProjectName()); if (project.exists() && project.isAccessible()) { IPath path = new Path(acceleoModule.ge...
public boolean performFinish() { AcceleoModule acceleoModule = this.acceleoModuleWizardPage.getAcceleoModule(); IProject project = ResourcesPlugin.getWorkspace().getRoot() .getProject(acceleoModule.getProjectName()); if (project.exists() && project.isAccessible()) { IPath path = new Path(acceleoModule.ge...
diff --git a/components/bio-formats/src/loci/formats/in/BIFormatReader.java b/components/bio-formats/src/loci/formats/in/BIFormatReader.java index e7a2ab9c1..7b0d21f98 100644 --- a/components/bio-formats/src/loci/formats/in/BIFormatReader.java +++ b/components/bio-formats/src/loci/formats/in/BIFormatReader.java @@ -1,9...
true
true
public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException { FormatTools.checkPlaneParameters(this, no, buf.length, x, y, w, h); BufferedImage data = (BufferedImage) openPlane(no, x, y, w, h); switch (data.getColorModel().getComponentSize(0)) { ...
public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException { FormatTools.checkPlaneParameters(this, no, buf.length, x, y, w, h); BufferedImage data = (BufferedImage) openPlane(no, x, y, w, h); switch (data.getColorModel().getComponentSize(0)) { ...
diff --git a/src/com/android/camera/CameraSettings.java b/src/com/android/camera/CameraSettings.java index 905c134b..748d904f 100644 --- a/src/com/android/camera/CameraSettings.java +++ b/src/com/android/camera/CameraSettings.java @@ -1,187 +1,193 @@ package com.android.camera; import android.app.Activity; import ...
false
true
private void initPreference(PreferenceScreen screen) { ListPreference videoDuration = (ListPreference) screen.findPreference(KEY_VIDEO_DURATION); ListPreference pictureSize = (ListPreference) screen.findPreference(KEY_PICTURE_SIZE); ListPreference whiteBalance...
private void initPreference(PreferenceScreen screen) { ListPreference videoDuration = (ListPreference) screen.findPreference(KEY_VIDEO_DURATION); ListPreference pictureSize = (ListPreference) screen.findPreference(KEY_PICTURE_SIZE); ListPreference whiteBalance...
diff --git a/FindMyApp/src/com/unidevel/findmyapp/FMAMainActivity.java b/FindMyApp/src/com/unidevel/findmyapp/FMAMainActivity.java index 8405c72..177106b 100644 --- a/FindMyApp/src/com/unidevel/findmyapp/FMAMainActivity.java +++ b/FindMyApp/src/com/unidevel/findmyapp/FMAMainActivity.java @@ -1,317 +1,318 @@ package co...
true
true
public boolean onContextItemSelected(MenuItem item) { if ( item.getItemId() == R.id.menuFind ) { AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) item.getMenuInfo(); AppInfo app = (AppInfo) appView.getAdapter().getItem(info.position); String APP_MARKET_URL = "market://deta...
public boolean onContextItemSelected(MenuItem item) { if ( item.getItemId() == R.id.menuFind ) { AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) item.getMenuInfo(); AppInfo app = (AppInfo) appView.getAdapter().getItem(info.position); String APP_MARKET_URL = "market://deta...
diff --git a/software/newtermform/src/java/gov/nih/nci/evs/browser/bean/NewConceptRequest.java b/software/newtermform/src/java/gov/nih/nci/evs/browser/bean/NewConceptRequest.java index 3c6109d..ae9a35e 100644 --- a/software/newtermform/src/java/gov/nih/nci/evs/browser/bean/NewConceptRequest.java +++ b/software/newtermf...
false
true
public String submit() { updateAllSessionAttributes(); String warnings = validate(); if (warnings.length() > 0) { _request.getSession().setAttribute("warning", warnings); return "warning"; } String mailServer = AppProperties.getInstance().getM...
public String submit() { updateAllSessionAttributes(); String warnings = validate(); if (warnings.length() > 0) { _request.getSession().setAttribute("warnings", warnings); return "warnings"; } String mailServer = AppProperties.getInstance().ge...
diff --git a/src/frontend/org/voltdb/utils/CommandLine.java b/src/frontend/org/voltdb/utils/CommandLine.java index 9e6a59c7d..da255af1d 100644 --- a/src/frontend/org/voltdb/utils/CommandLine.java +++ b/src/frontend/org/voltdb/utils/CommandLine.java @@ -1,811 +1,812 @@ /* This file is part of VoltDB. * Copyright (C) ...
true
true
public List<String> createCommandLine() { List<String> cmdline = new ArrayList<String>(50); cmdline.add(javaExecutable); cmdline.add("-XX:-ReduceInitialCardMarks"); cmdline.add("-XX:+HeapDumpOnOutOfMemoryError"); cmdline.add("-Djava.library.path=" + java_library_path); ...
public List<String> createCommandLine() { List<String> cmdline = new ArrayList<String>(50); cmdline.add(javaExecutable); cmdline.add("-XX:-ReduceInitialCardMarks"); cmdline.add("-XX:+HeapDumpOnOutOfMemoryError"); cmdline.add("-Djava.library.path=" + java_library_path); ...
diff --git a/orbisgis-ui/src/main/java/org/orbisgis/core/ui/workspace/DefaultSwingWorkspace.java b/orbisgis-ui/src/main/java/org/orbisgis/core/ui/workspace/DefaultSwingWorkspace.java index d2a475828..432402b7a 100644 --- a/orbisgis-ui/src/main/java/org/orbisgis/core/ui/workspace/DefaultSwingWorkspace.java +++ b/orbisgi...
true
true
public void createWorkspaceFolderPanelChooser() throws IOException { WorkspaceFolderPanel workspaceFolderPanel = new WorkspaceFolderPanel( loadWorkspaces()); boolean ok = UIFactory.showDialog(workspaceFolderPanel); if (ok) { String currentWorkspace = workspaceFolderPanel.getWorkspacePath(); workspaceFo...
public void createWorkspaceFolderPanelChooser() throws IOException { WorkspaceFolderPanel workspaceFolderPanel = new WorkspaceFolderPanel( loadWorkspaces()); boolean ok = UIFactory.showDialog(workspaceFolderPanel); if (ok) { String currentWorkspace = workspaceFolderPanel.getWorkspacePath(); workspaceFo...
diff --git a/srcj/com/sun/electric/tool/io/output/Spice.java b/srcj/com/sun/electric/tool/io/output/Spice.java index 2e1056b16..6080c3f17 100755 --- a/srcj/com/sun/electric/tool/io/output/Spice.java +++ b/srcj/com/sun/electric/tool/io/output/Spice.java @@ -1,1521 +1,1521 @@ /* -*- tab-width: 4 -*- * * Electric(tm)...
true
true
protected void writeCellTopology(Cell cell, CellNetInfo cni, VarContext context) { // look for a model file on the current cell Variable var = cell.getVar(SPICE_MODEL_FILE_KEY); if (var != null) { multiLinePrint(true, "* Cell " + cell.describe() + " is described in this file:\n"); addIncludeFile(var.get...
protected void writeCellTopology(Cell cell, CellNetInfo cni, VarContext context) { // look for a model file on the current cell Variable var = cell.getVar(SPICE_MODEL_FILE_KEY); if (var != null) { multiLinePrint(true, "* Cell " + cell.describe() + " is described in this file:\n"); addIncludeFile(var.get...
diff --git a/pace-base/src/main/java/com/pace/base/project/excel/elements/RuleSetsExcelElementItem.java b/pace-base/src/main/java/com/pace/base/project/excel/elements/RuleSetsExcelElementItem.java index 5286431b..424a69a3 100644 --- a/pace-base/src/main/java/com/pace/base/project/excel/elements/RuleSetsExcelElementItem...
false
true
private RuleSet getRuleSet(String sheetName) throws PafException { PafExcelInput input = new PafExcelInput.Builder(getWorkbook(), sheetName, getHeaderListMap().get(ProjectElementId.RuleSet_RuleSet.toString()).size()) .headerListMap(getHeaderListMap()) .excludeHeaderRows(false) .excludeEmptyRows(true) ...
private RuleSet getRuleSet(String sheetName) throws PafException { PafExcelInput input = new PafExcelInput.Builder(getWorkbook(), sheetName, getHeaderListMap().get(ProjectElementId.RuleSet_RuleSet.toString()).size()) .headerListMap(getHeaderListMap()) .excludeHeaderRows(false) .excludeEmptyRows(true) ...
diff --git a/modules/quercus/src/com/caucho/quercus/lib/file/PhpProtocolWrapper.java b/modules/quercus/src/com/caucho/quercus/lib/file/PhpProtocolWrapper.java index 87f19f5e9..ec94c3e3d 100644 --- a/modules/quercus/src/com/caucho/quercus/lib/file/PhpProtocolWrapper.java +++ b/modules/quercus/src/com/caucho/quercus/lib/...
true
true
public BinaryStream fopen(Env env, StringValue pathV, StringValue mode, LongValue options) { String path = pathV.toString(); if (path.equals("php://output")) return new PhpBinaryOutput(env); else if (path.equals("php://input")) return new PhpBinaryInput(env)...
public BinaryStream fopen(Env env, StringValue pathV, StringValue mode, LongValue options) { String path = pathV.toString(); if (path.equals("php://output")) return new PhpBinaryOutput(env); else if (path.equals("php://input")) return new PhpBinaryInput(env)...
diff --git a/org.emftext.sdk/src/org/emftext/sdk/codegen/util/StringComposite.java b/org.emftext.sdk/src/org/emftext/sdk/codegen/util/StringComposite.java index a81e01abc..61198bc38 100644 --- a/org.emftext.sdk/src/org/emftext/sdk/codegen/util/StringComposite.java +++ b/org.emftext.sdk/src/org/emftext/sdk/codegen/util/...
false
true
private void enableComponents() { List<ComponentNode> disabledComponents = new ArrayList<ComponentNode>(); // find the scoping depth for the disabled components // TODO mseifert: this should be created when the components are added and replace // the field 'components'. Tree subTree = new Tree(null); for ...
private void enableComponents() { List<ComponentNode> disabledComponents = new ArrayList<ComponentNode>(); // find the scoping depth for the disabled components // TODO mseifert: this should be created when the components are added and replace // the field 'components'. Tree subTree = new Tree(null); for ...
diff --git a/app/controllers/Application.java b/app/controllers/Application.java index 1e1ddce..96d0192 100644 --- a/app/controllers/Application.java +++ b/app/controllers/Application.java @@ -1,40 +1,38 @@ package controllers; import play.mvc.Controller; import play.mvc.Result; import views.html.index; public...
false
true
public static Result mailTest() { /* MailerAPI mail = play.Play.application().plugin(MailerPlugin.class).email(); mail.setSubject("Tutor.me Mailer Test"); //mail.addRecipient("some display name <sometoadd@email.com>"); mail.addRecipient("Daniel Alexander Perlmutter <dap2163@columbia.ed...
public static Result mailTest() { MailerAPI mail = play.Play.application().plugin(MailerPlugin.class).email(); mail.setSubject("Tutor.me Mailer Test"); //mail.addRecipient("some display name <sometoadd@email.com>"); mail.addRecipient("Daniel Alexander Perlmutter <dap2163@columbia.edu>", "Jos...
diff --git a/src/com/redhat/ceylon/compiler/java/codegen/ClassTransformer.java b/src/com/redhat/ceylon/compiler/java/codegen/ClassTransformer.java index 4a5ba2e4c..b20d1bc78 100755 --- a/src/com/redhat/ceylon/compiler/java/codegen/ClassTransformer.java +++ b/src/com/redhat/ceylon/compiler/java/codegen/ClassTransformer....
false
true
private MethodDefinitionBuilder makeOverloadsForDefaultedParameter( boolean generateBody, boolean forImplementor, boolean forDelegator, MethodDefinitionBuilder overloadBuilder, final Declaration model, java.util.List<Parameter> parameters, final Paramete...
private MethodDefinitionBuilder makeOverloadsForDefaultedParameter( boolean generateBody, boolean forImplementor, boolean forDelegator, MethodDefinitionBuilder overloadBuilder, final Declaration model, java.util.List<Parameter> parameters, final Paramete...
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/ReplaceWithAction.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/ReplaceWithAction.java index bd8991f94..9ea92bb7d 100644 --- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/c...
true
true
protected boolean isDirty(IResource resource) { final CoreException DECORATOR_EXCEPTION = new CoreException(new Status(IStatus.OK, "id", 1, "", null)); try { resource.accept(new IResourceVisitor() { public boolean visit(IResource resource) throws CoreException { // a project can't be dirty, continue w...
protected boolean isDirty(IResource resource) { final CoreException DECORATOR_EXCEPTION = new CoreException(new Status(IStatus.OK, "id", 1, "", null)); try { resource.accept(new IResourceVisitor() { public boolean visit(IResource resource) throws CoreException { // a project can't be dirty, continue w...
diff --git a/jcr/api/src/main/java/org/apache/sling/jcr/api/NodeTypeLoader.java b/jcr/api/src/main/java/org/apache/sling/jcr/api/NodeTypeLoader.java index 3c82271b95..65734b141c 100644 --- a/jcr/api/src/main/java/org/apache/sling/jcr/api/NodeTypeLoader.java +++ b/jcr/api/src/main/java/org/apache/sling/jcr/api/NodeTypeL...
true
true
public static boolean registerNodeType(Session session, InputStream source) throws IOException, RepositoryException { final Workspace workspace = session.getWorkspace(); final NodeTypeManager ntm = workspace.getNodeTypeManager(); if (ntm instanceof JackrabbitNodeTypeManager) { ...
public static boolean registerNodeType(Session session, InputStream source) throws IOException, RepositoryException { final Workspace workspace = session.getWorkspace(); final NodeTypeManager ntm = workspace.getNodeTypeManager(); if (ntm instanceof JackrabbitNodeTypeManager) { ...
diff --git a/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/GwtApplication.java b/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/GwtApplication.java index 6dc7d07f0..df6424635 100644 --- a/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/GwtApplication.java +++ b/backends/gdx-backen...
true
true
private void setupLoop () { // setup modules try { graphics = new GwtGraphics(root, config); } catch(Throwable e) { root.add(new Label("Sorry, your browser doesn't seem to support WebGL")); return; } lastWidth = graphics.getWidth(); lastHeight = graphics.getHeight(); Gdx.app = this; Gdx.graphi...
private void setupLoop () { // setup modules try { graphics = new GwtGraphics(root, config); } catch(Throwable e) { root.clear(); root.add(new Label("Sorry, your browser doesn't seem to support WebGL")); return; } lastWidth = graphics.getWidth(); lastHeight = graphics.getHeight(); Gdx.app = t...
diff --git a/src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify/cloud/NewAbstractCloudTest.java b/src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify/cloud/NewAbstractCloudTest.java index 08b574bd..4afb447b 100644 --- a/src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify/cloud...
true
true
protected void bootstrap(CloudService service, CloudBootstrapper bootstrapper) throws Exception { if (this.isReusableCloud()) { throw new UnsupportedOperationException(this.getClass().getName() + "Requires reusable clouds, which are not supported yet"); } if (service == null) { ...
protected void bootstrap(CloudService service, CloudBootstrapper bootstrapper) throws Exception { if (this.isReusableCloud()) { throw new UnsupportedOperationException(this.getClass().getName() + "Requires reusable clouds, which are not supported yet"); } if (service == null) { ...
diff --git a/src/com/android/browser/search/DefaultSearchEngine.java b/src/com/android/browser/search/DefaultSearchEngine.java index c939de7..f282b0b 100644 --- a/src/com/android/browser/search/DefaultSearchEngine.java +++ b/src/com/android/browser/search/DefaultSearchEngine.java @@ -1,122 +1,123 @@ /* * Copyright (...
true
true
public void startSearch(Context context, String query, Bundle appData, String extraData) { try { Intent intent = new Intent(Intent.ACTION_WEB_SEARCH); intent.addCategory(Intent.CATEGORY_DEFAULT); intent.putExtra(SearchManager.QUERY, query); if (appData != null...
public void startSearch(Context context, String query, Bundle appData, String extraData) { try { Intent intent = new Intent(Intent.ACTION_WEB_SEARCH); intent.setComponent(mSearchable.getSearchActivity()); intent.addCategory(Intent.CATEGORY_DEFAULT); intent.put...
diff --git a/src/main/java/de/bwaldvogel/mongo/backend/memory/index/UniqueIndex.java b/src/main/java/de/bwaldvogel/mongo/backend/memory/index/UniqueIndex.java index 67f8f6d..fa9abb2 100644 --- a/src/main/java/de/bwaldvogel/mongo/backend/memory/index/UniqueIndex.java +++ b/src/main/java/de/bwaldvogel/mongo/backend/memor...
false
true
public synchronized Iterable<Integer> getPositions(BSONObject query) { Object keyValue = getKeyValue(query); if (keyValue instanceof BSONObject) { BSONObject keyObj = (BSONObject) keyValue; if (keyObj.keySet().size() != 1) { throw new UnsupportedOperationExce...
public synchronized Iterable<Integer> getPositions(BSONObject query) { Object keyValue = getKeyValue(query); if (keyValue instanceof BSONObject) { BSONObject keyObj = (BSONObject) keyValue; if (Utils.containsQueryExpression(keyObj)) { if (keyObj.keySet().size...
diff --git a/src/main/java/imagej/omero/ScriptGenerator.java b/src/main/java/imagej/omero/ScriptGenerator.java index 8949831..47a1d08 100644 --- a/src/main/java/imagej/omero/ScriptGenerator.java +++ b/src/main/java/imagej/omero/ScriptGenerator.java @@ -1,155 +1,155 @@ /* * #%L * Server- and client-side communicati...
true
true
public void generate(final ModuleInfo info, final File dir) throws IOException { // validate arguments if (!(info instanceof Identifiable)) { throw new IllegalArgumentException("Unidentifable module: " + info); } if (!dir.isDirectory()) { throw new IllegalArgumentException("Invalid directory: " + dir)...
public void generate(final ModuleInfo info, final File dir) throws IOException { // validate arguments if (!(info instanceof Identifiable)) { throw new IllegalArgumentException("Unidentifiable module: " + info); } if (!dir.isDirectory()) { throw new IllegalArgumentException("Invalid directory: " + dir...
diff --git a/plugins/check/trunk/edm/src/test/java/org/theeuropeanlibrary/uim/check/edm/EdmCheckIngestionPluginTest.java b/plugins/check/trunk/edm/src/test/java/org/theeuropeanlibrary/uim/check/edm/EdmCheckIngestionPluginTest.java index 903d7a29..d6d5fd3b 100644 --- a/plugins/check/trunk/edm/src/test/java/org/theeurope...
true
true
public void testSimpleCheck() throws Exception { EdmCheckIngestionPlugin plugin = new EdmCheckIngestionPlugin(); plugin.initialize(); CollectionBean collection = new CollectionBean(); collection.setName("test"); ExecutionBean execution = new ExecutionBean(1L); execut...
public void testSimpleCheck() throws Exception { EdmCheckIngestionPlugin plugin = new EdmCheckIngestionPlugin(); plugin.initialize(); CollectionBean collection = new CollectionBean(); collection.setName("test"); ExecutionBean execution = new ExecutionBean(1L); execut...
diff --git a/src/impl/java/org/wyona/yarep/impl/repo/vfs/VirtualFileSystemRepository.java b/src/impl/java/org/wyona/yarep/impl/repo/vfs/VirtualFileSystemRepository.java index 1fdae9e..bd8b78e 100644 --- a/src/impl/java/org/wyona/yarep/impl/repo/vfs/VirtualFileSystemRepository.java +++ b/src/impl/java/org/wyona/yarep/im...
true
true
public void readConfiguration(File configFile) throws RepositoryException { DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder(); Configuration config; try { config = builder.buildFromFile(configFile); name = config.getChild("name", false).getValu...
public void readConfiguration(File configFile) throws RepositoryException { this.configFile = configFile; DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder(); Configuration config; try { config = builder.buildFromFile(configFile); name = ...
diff --git a/JREngage/src/com/janrain/android/engage/session/JRSessionData.java b/JREngage/src/com/janrain/android/engage/session/JRSessionData.java index 55f1540..f87d79c 100644 --- a/JREngage/src/com/janrain/android/engage/session/JRSessionData.java +++ b/JREngage/src/com/janrain/android/engage/session/JRSessionData....
true
true
private void processShareActivityResponse(String payload, JRDictionary userDataTag) { String providerName = userDataTag.getAsString(USERDATA_PROVIDER_NAME_KEY); JRDictionary responseDict = JRDictionary.fromJSON(payload); if (responseDict == null) { setCurrentlyPublishingProvide...
private void processShareActivityResponse(String payload, JRDictionary userDataTag) { String providerName = userDataTag.getAsString(USERDATA_PROVIDER_NAME_KEY); JRDictionary responseDict = JRDictionary.fromJSON(payload); if (responseDict == null) { setCurrentlyPublishingProvide...
diff --git a/src/main/java/net/syamn/sakuracmd/commands/other/AdminCommand.java b/src/main/java/net/syamn/sakuracmd/commands/other/AdminCommand.java index 4205eb9..539a502 100644 --- a/src/main/java/net/syamn/sakuracmd/commands/other/AdminCommand.java +++ b/src/main/java/net/syamn/sakuracmd/commands/other/AdminCommand....
true
true
public void execute() throws CommandException { final String sub = args.remove(0).trim().toLowerCase(Locale.ENGLISH); // bcast if (sub.equals("bcast") && args.size() > 0) { args.remove(0); Util.broadcastMessage(StrUtil.join(args, " ")); return; ...
public void execute() throws CommandException { final String sub = args.remove(0).trim().toLowerCase(Locale.ENGLISH); // bcast if (sub.equals("bcast") && args.size() > 0) { args.remove(0); Util.broadcastMessage(StrUtil.join(args, " ")); return; ...
diff --git a/ic2d-plugins-src/org.objectweb.proactive.ic2d.monitoring/src/org/objectweb/proactive/ic2d/monitoring/spy/SpyEventManager.java b/ic2d-plugins-src/org.objectweb.proactive.ic2d.monitoring/src/org/objectweb/proactive/ic2d/monitoring/spy/SpyEventManager.java index 85c96a0c6..85448b3b0 100644 --- a/ic2d-plugins-...
true
true
SpyEvent[] createSpyEventForExistingBodies(Body spyBody) { BodyMap knownBodies = LocalBodyStore.getInstance().getLocalBodies(); // remove our body knownBodies.removeBody(masterSpyID); SpyEvent[] spyEvents = new SpyEvent[knownBodies.size()]; // messages to send bufferized int i = 0; Iterator bodiesIterator...
SpyEvent[] createSpyEventForExistingBodies(Body spyBody) { BodyMap knownBodies = LocalBodyStore.getInstance().getLocalBodies(); // remove our body knownBodies.removeBody(masterSpyID); SpyEvent[] spyEvents = new SpyEvent[knownBodies.size()]; // messages to send bufferized int i = 0; Iterator bodiesIterator...
diff --git a/src/com/dmdirc/ui/swing/framemanager/ctrltab/CtrlTabFrameManager.java b/src/com/dmdirc/ui/swing/framemanager/ctrltab/CtrlTabFrameManager.java index f3b59d9d9..510a33a54 100644 --- a/src/com/dmdirc/ui/swing/framemanager/ctrltab/CtrlTabFrameManager.java +++ b/src/com/dmdirc/ui/swing/framemanager/ctrltab/Ctrl...
false
true
public CtrlTabFrameManager(final JDesktopPane desktopPane) { nodes = new HashMap<FrameContainer, DefaultMutableTreeNode>(); labels = new HashMap<DefaultMutableTreeNode, JLabel>(); root = new DefaultMutableTreeNode("DMDirc"); model = new TreeViewModel(root); selectionModel = n...
public CtrlTabFrameManager(final JDesktopPane desktopPane) { nodes = new HashMap<FrameContainer, DefaultMutableTreeNode>(); labels = new HashMap<DefaultMutableTreeNode, JLabel>(); root = new DefaultMutableTreeNode("DMDirc"); model = new TreeViewModel(root); selectionModel = n...
diff --git a/src/test/ed/js/engine/line/LineTest.java b/src/test/ed/js/engine/line/LineTest.java index ef86720e3..f211a3f7d 100644 --- a/src/test/ed/js/engine/line/LineTest.java +++ b/src/test/ed/js/engine/line/LineTest.java @@ -1,110 +1,110 @@ // LineTest.java /** * Copyright (C) 2008 10gen Inc. * * Thi...
true
true
public void test() throws IOException { boolean debug = false; Convert c = new Convert( _file ); JSFunction f = c.get(); final String jsCode = StreamUtil.readFully( new FileInputStream( _file ) ); final String javaCode = c.ge...
public void test() throws IOException { boolean debug = false; Convert c = new Convert( _file ); JSFunction f = c.get(); final String jsCode = StreamUtil.readFully( new FileInputStream( _file ) ); final String javaCode = c.ge...
diff --git a/src/com/hotcats/textreminder/TextReceiver.java b/src/com/hotcats/textreminder/TextReceiver.java index 93a78c0..99d1eb4 100644 --- a/src/com/hotcats/textreminder/TextReceiver.java +++ b/src/com/hotcats/textreminder/TextReceiver.java @@ -1,125 +1,123 @@ package com.hotcats.textreminder; import android.ap...
true
true
private void handleText(Context context, AlarmManager am, PendingIntent pi) { Log.i("text", "text message recieved!"); // TODO: How can I look this and repeatDelay up only once instead of // every time this method is called? boolean enabledDefault = context.getResources().getBoolean...
private void handleText(Context context, AlarmManager am, PendingIntent pi) { Log.i("text", "text message recieved!"); boolean enabledDefault = context.getResources().getBoolean( R.bool.pref_enabled_default); SharedPreferences prefs = PreferenceManager .getD...
diff --git a/src/test/java/net/praqma/hudson/scm/ScmTest.java b/src/test/java/net/praqma/hudson/scm/ScmTest.java index fe7548d..10a9cdc 100644 --- a/src/test/java/net/praqma/hudson/scm/ScmTest.java +++ b/src/test/java/net/praqma/hudson/scm/ScmTest.java @@ -1,158 +1,158 @@ package net.praqma.hudson.scm; import java....
true
true
public void test1() throws Exception { String uniqueTestVobName = "ccucm" + coolTest.uniqueTimeStamp; coolTest.variables.put( "vobname", uniqueTestVobName ); coolTest.variables.put( "pvobname", uniqueTestVobName + "_PVOB" ); coolTest.bootStrap(); FreeStyleProject project = createFreeStyleProject( "ccucm" ...
public void test1() throws Exception { String uniqueTestVobName = "ccucm" + coolTest.uniqueTimeStamp; coolTest.variables.put( "vobname", uniqueTestVobName ); coolTest.variables.put( "pvobname", uniqueTestVobName + "_PVOB" ); coolTest.bootStrap(); FreeStyleProject project = createFreeStyleProject( "ccucm" ...
diff --git a/org.promasi.client_swing/src/org/promasi/client_swing/gui/desktop/application/EMail/EmailJPanel.java b/org.promasi.client_swing/src/org/promasi/client_swing/gui/desktop/application/EMail/EmailJPanel.java index 789bfc56..ee86640e 100644 --- a/org.promasi.client_swing/src/org/promasi/client_swing/gui/desktop...
false
true
public EmailJPanel(){ setLayout(new BorderLayout()); JPanel topPanel = new JPanel(); topPanel.setLayout(new BorderLayout()); JPanel senderPanel = new JPanel(); senderPanel.setLayout(new BorderLayout()); JLabel fromLabel = new JLabel("Theme"); fromLabel.setPreferredSize(new Dimension(50,20)); senderP...
public EmailJPanel(){ setLayout(new BorderLayout()); JPanel topPanel = new JPanel(); topPanel.setLayout(new BorderLayout()); JPanel senderPanel = new JPanel(); senderPanel.setLayout(new BorderLayout()); JLabel fromLabel = new JLabel("From :"); fromLabel.setPreferredSize(new Dimension(50,20)); sender...
diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/group/ListIncludedGroups.java b/gerrit-server/src/main/java/com/google/gerrit/server/group/ListIncludedGroups.java index 392485740..3f28509ac 100644 --- a/gerrit-server/src/main/java/com/google/gerrit/server/group/ListIncludedGroups.java +++ b/gerrit-ser...
true
true
public List<GroupInfo> apply(GroupResource rsrc) throws ResourceNotFoundException, OrmException { if (!rsrc.isInternal()) { throw new ResourceNotFoundException(rsrc.getGroupUUID().get()); } boolean ownerOfParent = rsrc.getControl().isOwner(); List<GroupInfo> included = Lists.newArrayList(...
public List<GroupInfo> apply(GroupResource rsrc) throws ResourceNotFoundException, OrmException { if (!rsrc.isInternal()) { throw new ResourceNotFoundException(rsrc.getGroupUUID().get()); } boolean ownerOfParent = rsrc.getControl().isOwner(); List<GroupInfo> included = Lists.newArrayList(...
diff --git a/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/ProfileSynchronizer.java b/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/ProfileSynchronizer.java index cf20afc68..d0a37a05a 100644 --- a/bundl...
true
true
public ProfileChangeRequest createProfileChangeRequest(ProvisioningContext context) { ProfileChangeRequest request = new ProfileChangeRequest(profile); boolean resolve = Boolean.valueOf(profile.getProperty("org.eclipse.equinox.p2.resolve")).booleanValue(); if (resolve) request.removeProfileProperty("org.ecli...
public ProfileChangeRequest createProfileChangeRequest(ProvisioningContext context) { ProfileChangeRequest request = new ProfileChangeRequest(profile); boolean resolve = Boolean.valueOf(profile.getProperty("org.eclipse.equinox.p2.resolve")).booleanValue(); if (resolve) request.removeProfileProperty("org.ecli...
diff --git a/scm-issue-check/src/test/java/dk/fujitsu/issuecheck/ShellTest.java b/scm-issue-check/src/test/java/dk/fujitsu/issuecheck/ShellTest.java index b4f54e1..04d5440 100644 --- a/scm-issue-check/src/test/java/dk/fujitsu/issuecheck/ShellTest.java +++ b/scm-issue-check/src/test/java/dk/fujitsu/issuecheck/ShellTest....
false
true
private String[] getArguments(String... arguments) throws Exception { String[] args; if (System.getenv().containsKey("windir")) { args = new String[2 + arguments.length]; args[0] = System.getenv("windir") + "\\system32\\cmd.exe"; args[1] = "/C"; Syst...
private String[] getArguments(String... arguments) throws Exception { String[] args; if (System.getenv().containsKey("windir")) { args = new String[2 + arguments.length]; args[0] = System.getenv("windir") + "\\system32\\cmd.exe"; args[1] = "/C"; Syst...
diff --git a/src/graindcafe/tribu/TribuSpawner.java b/src/graindcafe/tribu/TribuSpawner.java index 8ae4471..bbce4db 100644 --- a/src/graindcafe/tribu/TribuSpawner.java +++ b/src/graindcafe/tribu/TribuSpawner.java @@ -1,362 +1,364 @@ /******************************************************************************* * C...
true
true
public boolean spawnZombie() { if (alreadySpawned < totalToSpawn && !finished) { Location pos = plugin.getLevel().getRandomZombieSpawn(); if (pos != null) { if (!pos.getWorld().isChunkLoaded(pos.getWorld().getChunkAt(pos))) { checkZombies(); pos = getValidSpawn(); } if (pos != null) { ...
public boolean spawnZombie() { if (alreadySpawned < totalToSpawn && !finished) { Location pos = plugin.getLevel().getRandomZombieSpawn(); if (pos != null) { if (!pos.getWorld().isChunkLoaded(pos.getWorld().getChunkAt(pos))) { checkZombies(); pos = getValidSpawn(); } if (pos != null) { ...
diff --git a/activemq-console/src/main/java/org/apache/activemq/console/command/QueryCommand.java b/activemq-console/src/main/java/org/apache/activemq/console/command/QueryCommand.java index de4d13ffb..c3bc70212 100644 --- a/activemq-console/src/main/java/org/apache/activemq/console/command/QueryCommand.java +++ b/acti...
false
true
protected void handleOption(String token, List tokens) throws Exception { // If token is a additive predefined query define option if (token.startsWith("-Q")) { String key = token.substring(2); String value = ""; int pos = key.indexOf("="); if (pos >= ...
protected void handleOption(String token, List tokens) throws Exception { // If token is a additive predefined query define option if (token.startsWith("-Q")) { String key = token.substring(2); String value = ""; int pos = key.indexOf("="); if (pos >= ...
diff --git a/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/emitter/TableLayout.java b/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/emitter/TableLayout.java index c4650b23d..03f221e9a 100644 --- a/plugins/org.eclipse.birt.report.engine/src/or...
false
true
protected int[] formalize(DimensionType[] columns, int tableWidth) { ArrayList percentageList = new ArrayList(); ArrayList unsetList = new ArrayList(); int[] resolvedColumnWidth = new int[columns.length]; double total = 0.0f; int fixedLength = 0; for(int i=0; i<columns.length; i++) { if(col...
protected int[] formalize(DimensionType[] columns, int tableWidth) { ArrayList percentageList = new ArrayList(); ArrayList unsetList = new ArrayList(); int[] resolvedColumnWidth = new int[columns.length]; double total = 0.0f; int fixedLength = 0; for(int i=0; i<columns.length; i++) { if(col...