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/aokp/backup/RestoreFragment.java b/src/com/aokp/backup/RestoreFragment.java index fabcad2..50295bc 100644 --- a/src/com/aokp/backup/RestoreFragment.java +++ b/src/com/aokp/backup/RestoreFragment.java @@ -1,382 +1,382 @@ /* * Copyright (C) 2012 Roman Birg * * Licensed under the Apache License...
true
true
public Dialog onCreateDialog(Bundle savedInstanceState) { backupDir = Tools.getBackupDirectory(getActivity()); // This filter only returns directories FileFilter fileFilter = new FileFilter() { public boolean accept(File file) { return fil...
public Dialog onCreateDialog(Bundle savedInstanceState) { backupDir = Tools.getBackupDirectory(getActivity()); // This filter only returns directories FileFilter fileFilter = new FileFilter() { public boolean accept(File file) { return fil...
diff --git a/src/com/hexcore/cas/model/ColourRuleSetWriter.java b/src/com/hexcore/cas/model/ColourRuleSetWriter.java index 85ab132..d07c576 100644 --- a/src/com/hexcore/cas/model/ColourRuleSetWriter.java +++ b/src/com/hexcore/cas/model/ColourRuleSetWriter.java @@ -1,60 +1,60 @@ package com.hexcore.cas.model; import...
true
true
private String writeRange(ColourRule.Range range) { String str = "\t\t" + range.from + " - " + range.to + " : "; switch (range.getType()) { case SOLID: str += writeColour(range.getColour(0)); break; case GRADIENT: str += writeColour(range.getColour(0)) + " "; str += writeColour(range.ge...
private String writeRange(ColourRule.Range range) { String str = "\t\t" + range.from + " - " + range.to + " : "; switch (range.getType()) { case SOLID: str += writeColour(range.getColour(0)); break; case GRADIENT: str += writeColour(range.getColour(0)) + " "; str += writeColour(range.ge...
diff --git a/FlightGearMap/src/com/juanvvc/flightgear/instruments/CalibratableSurfaceManager.java b/FlightGearMap/src/com/juanvvc/flightgear/instruments/CalibratableSurfaceManager.java index 5596568..ea27861 100644 --- a/FlightGearMap/src/com/juanvvc/flightgear/instruments/CalibratableSurfaceManager.java +++ b/FlightGe...
true
true
public void run() { FGFSConnection conn = null; boolean cancelled = false; int waitPeriod = 5000; int port = 9000; String fgfsIP = "192.168.1.2"; // read preferences try { waitPeriod = new Integer(sp.getString("update_period", "5000")).intValue(); // check limits waitPeriod = Mat...
public void run() { FGFSConnection conn = null; boolean cancelled = false; int waitPeriod = 5000; int port = 9000; String fgfsIP = "192.168.1.2"; // read preferences try { waitPeriod = new Integer(sp.getString("update_period", "500")).intValue(); // check limits waitPeriod = Math...
diff --git a/src/com/android/phone/SimContacts.java b/src/com/android/phone/SimContacts.java index f162b116..36f39015 100644 --- a/src/com/android/phone/SimContacts.java +++ b/src/com/android/phone/SimContacts.java @@ -1,314 +1,309 @@ /* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the...
false
true
private static void actuallyImportOneSimContact( final Cursor cursor, final ContentResolver resolver) { final NamePhoneTypePair namePhoneTypePair = new NamePhoneTypePair(cursor.getString(NAME_COLUMN)); final String name = namePhoneTypePair.name; final int phoneType = ...
private static void actuallyImportOneSimContact( final Cursor cursor, final ContentResolver resolver) { final NamePhoneTypePair namePhoneTypePair = new NamePhoneTypePair(cursor.getString(NAME_COLUMN)); final String name = namePhoneTypePair.name; final int phoneType = ...
diff --git a/src/main/java/org/drools/planner/examples/ras2012/util/GraphVisualizer.java b/src/main/java/org/drools/planner/examples/ras2012/util/GraphVisualizer.java index 270edfb..1060215 100644 --- a/src/main/java/org/drools/planner/examples/ras2012/util/GraphVisualizer.java +++ b/src/main/java/org/drools/planner/ex...
false
true
public void visualize(final OutputStream visualize) throws IOException { final Layout<Node, Arc> layout = new ISOMLayout<>(this.formGraph()); layout.setSize(new Dimension(GraphVisualizer.GRAPH_WIDTH, GraphVisualizer.GRAPH_HEIGHT)); final VisualizationImageServer<Node, Arc> server = new Visua...
public void visualize(final OutputStream visualize) throws IOException { final Layout<Node, Arc> layout = new ISOMLayout<Node, Arc>(this.formGraph()); layout.setSize(new Dimension(GraphVisualizer.GRAPH_WIDTH, GraphVisualizer.GRAPH_HEIGHT)); final VisualizationImageServer<Node, Arc> server = ...
diff --git a/java/src/com/yahoo/platform/yuitest/coverage/YUITestCoverage.java b/java/src/com/yahoo/platform/yuitest/coverage/YUITestCoverage.java index b449a9f..47f5a7b 100644 --- a/java/src/com/yahoo/platform/yuitest/coverage/YUITestCoverage.java +++ b/java/src/com/yahoo/platform/yuitest/coverage/YUITestCoverage.java...
true
true
public static void main(String args[]) { //---------------------------------------------------------------------- // Initialize command line parser //---------------------------------------------------------------------- CmdLineParser parser = new CmdLineParser(); CmdLinePar...
public static void main(String args[]) { //---------------------------------------------------------------------- // Initialize command line parser //---------------------------------------------------------------------- CmdLineParser parser = new CmdLineParser(); CmdLinePar...
diff --git a/src/com/woopra/tracking/android/WoopraTracker.java b/src/com/woopra/tracking/android/WoopraTracker.java index f8a2698..2bd2c0d 100755 --- a/src/com/woopra/tracking/android/WoopraTracker.java +++ b/src/com/woopra/tracking/android/WoopraTracker.java @@ -1,227 +1,227 @@ /* * Copyright 2014 Woopra, Inc. *...
true
true
private boolean trackEventImpl(WoopraEvent event) { // generate request url StringBuilder urlBuilder = new StringBuilder(); urlBuilder.append(W_EVENT_ENDPOINT) .append("?host=") .append(encodeUriComponent(getDomain())) .append("&cookie=") .append(encodeUriComponent(getVisitor().getCookie())) ...
private boolean trackEventImpl(WoopraEvent event) { // generate request url StringBuilder urlBuilder = new StringBuilder(); urlBuilder.append(W_EVENT_ENDPOINT) .append("?host=") .append(encodeUriComponent(getDomain())) .append("&cookie=") .append(encodeUriComponent(getVisitor().getCookie())) ...
diff --git a/src/cytoscape/view/CyMenus.java b/src/cytoscape/view/CyMenus.java index a9fce5b7f..e6cd0eca0 100644 --- a/src/cytoscape/view/CyMenus.java +++ b/src/cytoscape/view/CyMenus.java @@ -1,853 +1,853 @@ /** Copyright (c) 2002 Institute for Systems Biology and the Whitehead Institute ** ** This library is fre...
true
true
private void createMenuBar() { menuBar = new CytoscapeMenuBar(); fileMenu = menuBar.getMenu("File"); final JMenu f_fileMenu = fileMenu; fileMenu.addMenuListener(new MenuListener() { public void menuCanceled(MenuEvent e) { } public void menuDeselected(MenuEvent e) { } public void menuSelected(M...
private void createMenuBar() { menuBar = new CytoscapeMenuBar(); fileMenu = menuBar.getMenu("File"); final JMenu f_fileMenu = fileMenu; fileMenu.addMenuListener(new MenuListener() { public void menuCanceled(MenuEvent e) { } public void menuDeselected(MenuEvent e) { } public void menuSelected(M...
diff --git a/src/controllers/NewsController.java b/src/controllers/NewsController.java index df0ebe7..974dba1 100644 --- a/src/controllers/NewsController.java +++ b/src/controllers/NewsController.java @@ -1,155 +1,155 @@ package controllers; import java.util.Date; import javax.servlet.http.HttpServletRequest; ...
false
true
public Object saveComment(HttpServletRequest req,@Param("username")String username,@Param("code")String code,@Param("content")String content,@Param("newsId")long newsId){ if(Strings.isEmpty(username)){ username = req.getRemoteHost(); } if(Strings.isEmpty(code)){ return "{result:false,msg:'暗号不能为空'}"; } ...
public Object saveComment(HttpServletRequest req,@Param("username")String username,@Param("code")String code,@Param("content")String content,@Param("newsId")long newsId){ if(Strings.isEmpty(username)){ username = req.getRemoteHost(); } if(Strings.isEmpty(code)){ return "{\"result\":false,\"msg\":\"暗号不能为空\...
diff --git a/src/com/tzapps/tzpalette/ui/PaletteListFragment.java b/src/com/tzapps/tzpalette/ui/PaletteListFragment.java index a1f3baf..202180d 100644 --- a/src/com/tzapps/tzpalette/ui/PaletteListFragment.java +++ b/src/com/tzapps/tzpalette/ui/PaletteListFragment.java @@ -1,283 +1,287 @@ package com.tzapps.tzpalette.u...
true
true
private void updateViewByData(View itemView, PaletteData data, int position) { ImageView thumb = (ImageView)itemView.findViewById(R.id.palette_item_thumb); TextView title = (TextView)itemView.findViewById(R.id.palette_item_title); TextView updated ...
private void updateViewByData(View itemView, PaletteData data, int position) { ImageView thumb = (ImageView)itemView.findViewById(R.id.palette_item_thumb); TextView title = (TextView)itemView.findViewById(R.id.palette_item_title); TextView updated ...
diff --git a/src/pt/webdetails/cda/cache/HazelcastQueryCache.java b/src/pt/webdetails/cda/cache/HazelcastQueryCache.java index e1f37113..e36cefd6 100644 --- a/src/pt/webdetails/cda/cache/HazelcastQueryCache.java +++ b/src/pt/webdetails/cda/cache/HazelcastQueryCache.java @@ -1,455 +1,454 @@ /* This Source Code Form is ...
false
true
public TableModel getTableModel(TableCacheKey key) { try { ExtraCacheInfo info = getWithTimeout(key, getCacheStats()); if(info != null) { //per instance ttl not supported by hazelcast, need to check manually if(info.getTimeToLive() > 0 && (info.getTimeToLive() + info.getEntry...
public TableModel getTableModel(TableCacheKey key) { try { ExtraCacheInfo info = getWithTimeout(key, getCacheStats()); if(info != null) { //per instance ttl not supported by hazelcast, need to check manually if(info.getTimeToLive() > 0 && (info.getTimeToLive() + info.getEntry...
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/operation/DartModelOperation.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/operation/DartModelOperation.java index 10893a00..2c3f1d52 100644 --- a/editor/tools/plugins/co...
true
true
public void run(IProgressMonitor monitor) throws CoreException { DartCore.notYetImplemented(); DartModelManager manager = DartModelManager.getInstance(); DeltaProcessor deltaProcessor = manager.getDeltaProcessor(); int previousDeltaCount = deltaProcessor.dartModelDeltas.size(); try { progres...
public void run(IProgressMonitor monitor) throws CoreException { DartCore.notYetImplemented(); DartModelManager manager = DartModelManager.getInstance(); DeltaProcessor deltaProcessor = manager.getDeltaProcessor(); int previousDeltaCount = deltaProcessor.dartModelDeltas.size(); try { progres...
diff --git a/src/com/cianmcgovern/giveit/GiveMe.java b/src/com/cianmcgovern/giveit/GiveMe.java index f5ca86f..aacd398 100644 --- a/src/com/cianmcgovern/giveit/GiveMe.java +++ b/src/com/cianmcgovern/giveit/GiveMe.java @@ -1,81 +1,81 @@ package com.cianmcgovern.giveit; import org.bukkit.command.CommandSender; import...
false
true
public boolean giveme(CommandSender sender, String[] trimmedArgs){ if ((trimmedArgs[0] == null) || (trimmedArgs[1]== null)) { return false; } Player player = (Player)sender; PlayerInventory inventory = player.getInventory(); String item = idchange.idChange(trimmedArgs[0]); // Check to see if the playe...
public boolean giveme(CommandSender sender, String[] trimmedArgs){ if ((trimmedArgs[0] == null) || (trimmedArgs[1]== null)) { return false; } Player player = (Player)sender; PlayerInventory inventory = player.getInventory(); String item = idchange.idChange(trimmedArgs[0]); // Check to see if the playe...
diff --git a/examples/call-controller2/profile-spec/src/main/java/org/mobicents/slee/examples/callcontrol/profile/ProfileCreator.java b/examples/call-controller2/profile-spec/src/main/java/org/mobicents/slee/examples/callcontrol/profile/ProfileCreator.java index da3f3490b..73baf58a0 100644 --- a/examples/call-controlle...
false
true
private static void _createProfiles() { // TODO change this code to be an exmaple of how to create Slee Profiles // from an external java app log.info("Creating profiles for CallControl2 example"); try { //read user and password; String user=null; String password = null; Properties props = new...
private static void _createProfiles() { // TODO change this code to be an exmaple of how to create Slee Profiles // from an external java app log.info("Creating profiles for CallControl2 example"); try { //read user and password; String user=null; String password = null; Properties props = new...
diff --git a/src/com/jpii/navalbattle/pavo/GameWindow.java b/src/com/jpii/navalbattle/pavo/GameWindow.java index b30de44b..c5fe1d78 100644 --- a/src/com/jpii/navalbattle/pavo/GameWindow.java +++ b/src/com/jpii/navalbattle/pavo/GameWindow.java @@ -1,139 +1,139 @@ /** * */ package com.jpii.navalbattle.pavo; imp...
true
true
public void render() { buffer = new BufferedImage(getWidth()+1,getHeight()+1,BufferedImage.TYPE_INT_ARGB); Graphics2D g = PavoHelper.createGraphics(buffer); g.setColor(Color.black); g.drawRect(0,0,getWidth()-1,getHeight()-1); g.setColor(getBackgroundColor()); g.fillRect(1,1,getWidth()-2,getHeight()-2); i...
public void render() { buffer = new BufferedImage(getWidth()+1,getHeight()+1,BufferedImage.TYPE_INT_ARGB); Graphics2D g = PavoHelper.createGraphics(buffer); g.setColor(Color.black); g.drawRect(0,0,getWidth()-1,getHeight()-1); g.setColor(getBackgroundColor()); g.fillRect(1,1,getWidth()-2,getHeight()-2); i...
diff --git a/deegree-core/deegree-core-base/src/main/java/org/deegree/protocol/wfs/AbstractWFSRequestXMLAdapter.java b/deegree-core/deegree-core-base/src/main/java/org/deegree/protocol/wfs/AbstractWFSRequestXMLAdapter.java index f5338f1522..e7ae016f89 100644 --- a/deegree-core/deegree-core-base/src/main/java/org/deegre...
true
true
protected Version determineVersion110Safe() { if ( WFS_NS.equals( rootElement.getQName().getNamespaceURI() ) ) { return Version.parseVersion( getNodeAsString( rootElement, new XPath( "@version", nsContext ), "1.1.0" ) ); } return Version.parseVersion( getRequiredNodeAsString( roo...
protected Version determineVersion110Safe() { if ( WFS_NS.equals( rootElement.getQName().getNamespaceURI() ) ) { String s = getNodeAsString( rootElement, new XPath( "@version", nsContext ), "1.1.0" ); if ( s.isEmpty() ) { s = "1.1.0"; } return ...
diff --git a/src/com/LRFLEW/bukkit/skygrid/SkyGridGenerator.java b/src/com/LRFLEW/bukkit/skygrid/SkyGridGenerator.java index e4bf903..69f6204 100644 --- a/src/com/LRFLEW/bukkit/skygrid/SkyGridGenerator.java +++ b/src/com/LRFLEW/bukkit/skygrid/SkyGridGenerator.java @@ -1,87 +1,88 @@ package com.LRFLEW.bukkit.skygrid; ...
true
true
public byte[][] generateBlockSections(World world, Random random, int chunkx, int chunkz, BiomeGrid biomes) { byte blockid; BlockProbobility p = WorldStyles.get(world.getEnvironment()).p; int vsegs = world.getMaxHeight() / 16; byte[][] chunk = new byte[vsegs][]; boolean b; byte t; for (int ys = 0; ...
public byte[][] generateBlockSections(World world, Random random, int chunkx, int chunkz, BiomeGrid biomes) { byte blockid; BlockProbobility p = WorldStyles.get(world.getEnvironment()).p; int vsegs = world.getMaxHeight() / 16; byte[][] chunk = new byte[vsegs][]; boolean b; byte t; for (int ys = 0; ...
diff --git a/brix-core/src/main/java/brix/jcr/jackrabbit/HtmlTextExtractor.java b/brix-core/src/main/java/brix/jcr/jackrabbit/HtmlTextExtractor.java index f14471c..3911889 100644 --- a/brix-core/src/main/java/brix/jcr/jackrabbit/HtmlTextExtractor.java +++ b/brix-core/src/main/java/brix/jcr/jackrabbit/HtmlTextExtractor....
true
true
public Reader extractText(InputStream stream, String type, String encoding) throws IOException { try { StringBuilder textBuffer = new StringBuilder(); // parse html using lexer Lexer lexer = new Lexer(new Page(stream, encoding)); for (Node node = ...
public Reader extractText(InputStream stream, String type, String encoding) throws IOException { try { StringBuilder textBuffer = new StringBuilder(); // parse html using lexer Lexer lexer = new Lexer(new Page(stream, encoding)); for (Node node = ...
diff --git a/util-datatables/src/main/java/org/gvnix/web/datatables/util/DatatablesUtils.java b/util-datatables/src/main/java/org/gvnix/web/datatables/util/DatatablesUtils.java index 4534b6e0..ff73d8e2 100644 --- a/util-datatables/src/main/java/org/gvnix/web/datatables/util/DatatablesUtils.java +++ b/util-datatables/sr...
false
true
public static <T, E extends Comparable<?>> SearchResults<T> findByCriteria( Class<T> entityClass, Map<String, List<String>> filterByAssociations, Map<String, List<String>> orderByAssociations, EntityManager entityManager, DatatablesCriterias datatablesCrit...
public static <T, E extends Comparable<?>> SearchResults<T> findByCriteria( Class<T> entityClass, Map<String, List<String>> filterByAssociations, Map<String, List<String>> orderByAssociations, EntityManager entityManager, DatatablesCriterias datatablesCrit...
diff --git a/org.emftext.sdk.codegen.resource/src/org/emftext/sdk/codegen/resource/generators/BuilderAdapterGenerator.java b/org.emftext.sdk.codegen.resource/src/org/emftext/sdk/codegen/resource/generators/BuilderAdapterGenerator.java index 8ec38193d..a653e8d0f 100644 --- a/org.emftext.sdk.codegen.resource/src/org/emft...
true
true
private void addBuildMethod2(StringComposite sc) { sc.add("public " + I_PROJECT + "[] build(int kind, " + MAP + "<?,?> args, final " + I_PROGRESS_MONITOR + " monitor, final " + iBuilderClassName + " builder, " + I_PROJECT + " project) throws " + CORE_EXCEPTION + " {"); sc.add(I_RESOURCE_DELTA + " delta = getDelta(...
private void addBuildMethod2(StringComposite sc) { sc.add("public " + I_PROJECT + "[] build(int kind, " + MAP + "<?,?> args, final " + I_PROGRESS_MONITOR + " monitor, final " + iBuilderClassName + " builder, " + I_PROJECT + " project) throws " + CORE_EXCEPTION + " {"); sc.add(I_RESOURCE_DELTA + " delta = getDelta(...
diff --git a/src/com/android/settings/applications/RunningState.java b/src/com/android/settings/applications/RunningState.java index beb960578..1b5310de0 100644 --- a/src/com/android/settings/applications/RunningState.java +++ b/src/com/android/settings/applications/RunningState.java @@ -1,1154 +1,1156 @@ /* * Copyr...
false
true
private boolean update(Context context, ActivityManager am) { final PackageManager pm = context.getPackageManager(); mSequence++; boolean changed = false; // Retrieve list of services, filtering out anything that definitely // won't be shown in the UI. ...
private boolean update(Context context, ActivityManager am) { final PackageManager pm = context.getPackageManager(); mSequence++; boolean changed = false; // Retrieve list of services, filtering out anything that definitely // won't be shown in the UI. ...
diff --git a/src/org/jaudiotagger/tag/id3/ID3v24Tag.java b/src/org/jaudiotagger/tag/id3/ID3v24Tag.java index c207c38d..a9ef5305 100644 --- a/src/org/jaudiotagger/tag/id3/ID3v24Tag.java +++ b/src/org/jaudiotagger/tag/id3/ID3v24Tag.java @@ -1,913 +1,913 @@ /* * MusicTag Copyright (C)2003,2004 * * This library is...
true
true
public ID3v24Tag(AbstractTag mp3tag) { logger.info("Creating tag from a tag of a different version"); if (mp3tag != null) { //Should use simpler copy constructor if ((mp3tag instanceof ID3v24Tag == true)) { throw new UnsupportedOperati...
public ID3v24Tag(AbstractTag mp3tag) { logger.info("Creating tag from a tag of a different version"); if (mp3tag != null) { //Should use simpler copy constructor if ((mp3tag instanceof ID3v24Tag == true)) { throw new UnsupportedOperati...
diff --git a/msv/src/com/sun/msv/driver/textui/RELAXBatchTest.java b/msv/src/com/sun/msv/driver/textui/RELAXBatchTest.java index 32a70cae..70263deb 100644 --- a/msv/src/com/sun/msv/driver/textui/RELAXBatchTest.java +++ b/msv/src/com/sun/msv/driver/textui/RELAXBatchTest.java @@ -1,121 +1,122 @@ package com.sun.tranquil...
false
true
public static void main( String[] av ) throws Exception { Driver.factory.setNamespaceAware(true); Driver.factory.setValidating(false); final String dir = "c:\\work\\relax\\"; final File testDir = new File( dir ); // enumerate all schema String[] schemas = testDir.list( new FilenameFilter(){ publi...
public static void main( String[] av ) throws Exception { SAXParserFactory factory = new org.apache.xerces.jaxp.SAXParserFactoryImpl(); factory.setNamespaceAware(true); factory.setValidating(false); final String dir = "c:\\work\\relax\\"; final File testDir = new File( dir ); // enumerate all schema...
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java index 6658f07c..63e80775 100644 --- a/src/com/android/launcher2/LauncherModel.java +++ b/src/com/android/launcher2/LauncherModel.java @@ -1,1881 +1,1880 @@ /* * Copyright (C) 2008 The Android Open Source Project ...
true
true
static boolean shortcutExists(Context context, String title, Intent intent) { final ContentResolver cr = context.getContentResolver(); Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI, new String[] { "title", "intent" }, "title=? and intent=?", new String[] { title,...
static boolean shortcutExists(Context context, String title, Intent intent) { final ContentResolver cr = context.getContentResolver(); Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI, new String[] { "title", "intent" }, "title=? and intent=?", new String[] { title,...
diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/changedetail/DeleteDraftPatchSet.java b/gerrit-server/src/main/java/com/google/gerrit/server/changedetail/DeleteDraftPatchSet.java index adec292ac..d20b0f63a 100644 --- a/gerrit-server/src/main/java/com/google/gerrit/server/changedetail/DeleteDraftPatchS...
true
true
public ReviewResult call() throws NoSuchChangeException, OrmException { final ReviewResult result = new ReviewResult(); final Change.Id changeId = patchSetId.getParentKey(); result.setChangeId(changeId); final ChangeControl control = changeControlFactory.validateFor(changeId); final PatchSet patc...
public ReviewResult call() throws NoSuchChangeException, OrmException { final ReviewResult result = new ReviewResult(); final Change.Id changeId = patchSetId.getParentKey(); result.setChangeId(changeId); final ChangeControl control = changeControlFactory.validateFor(changeId); final PatchSet patc...
diff --git a/src/com/android/settings/cyanogenmod/AutoBrightnessCustomizeDialog.java b/src/com/android/settings/cyanogenmod/AutoBrightnessCustomizeDialog.java index 3f93afcd9..f9b6e195e 100644 --- a/src/com/android/settings/cyanogenmod/AutoBrightnessCustomizeDialog.java +++ b/src/com/android/settings/cyanogenmod/AutoBr...
false
true
public View getView(int position, View convertView, ViewGroup parent) { final Holder holder; if (convertView == null) { convertView = getLayoutInflater().inflate( R.layout.auto_brightness_list_item, parent, false); holder = new Hol...
public View getView(int position, View convertView, ViewGroup parent) { final Holder holder; if (convertView == null) { convertView = getLayoutInflater().inflate( R.layout.auto_brightness_list_item, parent, false); holder = new Hol...
diff --git a/src/main/java/org/basex/query/func/FNGen.java b/src/main/java/org/basex/query/func/FNGen.java index 33fd99708..3adac6c8b 100644 --- a/src/main/java/org/basex/query/func/FNGen.java +++ b/src/main/java/org/basex/query/func/FNGen.java @@ -1,362 +1,362 @@ package org.basex.query.func; import static org.bas...
true
true
static SerializerProp serialPar(final Fun fun, final int arg, final QueryContext ctx) throws SerializerException, QueryException { final TokenBuilder tb = new TokenBuilder(); // check if enough arguments are available if(arg < fun.expr.length) { // retrieve parameters final Item it = f...
static SerializerProp serialPar(final Fun fun, final int arg, final QueryContext ctx) throws SerializerException, QueryException { final TokenBuilder tb = new TokenBuilder(); // check if enough arguments are available if(arg < fun.expr.length) { // retrieve parameters final Item it = f...
diff --git a/project/src/de/topobyte/livecg/algorithms/dcel/HalfEdgeArrow.java b/project/src/de/topobyte/livecg/algorithms/dcel/HalfEdgeArrow.java index dfdbc26..afcb0b1 100644 --- a/project/src/de/topobyte/livecg/algorithms/dcel/HalfEdgeArrow.java +++ b/project/src/de/topobyte/livecg/algorithms/dcel/HalfEdgeArrow.java...
false
true
private Vector findPoint(Coordinate c1, Coordinate c2, Coordinate c3, Coordinate co, Coordinate cd, boolean origin) { Vector v2 = new Vector(c2); Vector e1 = new Vector(c1, c2).normalized(); Vector e2 = new Vector(c2, c3).normalized(); Vector e = new Vector(co, cd).normalized(); double angle = GeomMath....
private Vector findPoint(Coordinate c1, Coordinate c2, Coordinate c3, Coordinate co, Coordinate cd, boolean origin) { Vector v2 = new Vector(c2); Vector e1 = new Vector(c1, c2).normalized(); Vector e2 = new Vector(c2, c3).normalized(); Vector e = new Vector(co, cd).normalized(); double angle = GeomMath....
diff --git a/fap/app/controllers/SeguimientoController.java b/fap/app/controllers/SeguimientoController.java index 59916225..abf63e81 100644 --- a/fap/app/controllers/SeguimientoController.java +++ b/fap/app/controllers/SeguimientoController.java @@ -1,61 +1,61 @@ package controllers; import java.io.File; import j...
true
true
public static void generarSeguimientoForm(String generarSeguimiento) { checkAuthenticity(); if (!permisoGenerarSeguimientoForm("editar")) { Messages.error("No tiene permisos suficientes para realizar la acción"); } if (!Messages.hasErrors()) { List<SolicitudGenerica> todasSolicitudes = SolicitudGenerica...
public static void generarSeguimientoForm(String generarSeguimiento) { checkAuthenticity(); if (!permisoGenerarSeguimientoForm("editar")) { Messages.error("No tiene permisos suficientes para realizar la acción"); } if (!Messages.hasErrors()) { List<SolicitudGenerica> todasSolicitudes = SolicitudGenerica...
diff --git a/geotools2/geotools-src/gmldatasource/src/org/geotools/gml/FlatFeature.java b/geotools2/geotools-src/gmldatasource/src/org/geotools/gml/FlatFeature.java index cba57c672..46fa8182b 100644 --- a/geotools2/geotools-src/gmldatasource/src/org/geotools/gml/FlatFeature.java +++ b/geotools2/geotools-src/gmldatasour...
true
true
public String toString() { StringBuffer featureString = new StringBuffer(); Vector currentAttributes = new Vector( java.util.Arrays.asList(attributes) ); featureString.append("\n"); featureString.append(" attributes: " + currentAttributes.toString() + "\n"); featureString.a...
public String toString() { StringBuffer featureString = new StringBuffer(); Vector currentAttributes = new Vector( java.util.Arrays.asList(attributes) ); featureString.append("\n"); if(currentAttributes != null){ featureString.append(" attributes: " + currentAttribute...
diff --git a/src/main/java/org/jenkinsci/plugins/scriptler/ScriptlerManagment.java b/src/main/java/org/jenkinsci/plugins/scriptler/ScriptlerManagment.java index 07bbf78..61fbdbb 100644 --- a/src/main/java/org/jenkinsci/plugins/scriptler/ScriptlerManagment.java +++ b/src/main/java/org/jenkinsci/plugins/scriptler/Scriptl...
false
true
public void doRun(StaplerRequest req, StaplerResponse rsp, @QueryParameter(fixEmpty = true) String script, @QueryParameter(fixEmpty = true) String node, @QueryParameter(fixEmpty = true) String contentType) throws IOException, ServletException { checkPermission(getRequiredPermissionF...
public void doRun(StaplerRequest req, StaplerResponse rsp, @QueryParameter(fixEmpty = true) String script, @QueryParameter(fixEmpty = true) String node, @QueryParameter(fixEmpty = true) String contentType) throws IOException, ServletException { checkPermission(getRequiredPermissionF...
diff --git a/org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/wizards/refactor/pages/ChooseTestCasePage.java b/org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/wizards/refactor/pages/ChooseTestCasePage.java index 1f0b1052d..da2e5b541 100644 --- a/org.eclipse.jubula.client.ui.rc...
true
true
public void createControl(Composite parent) { final TestCaseTreeComposite tctc; if (m_parentTestCase != null) { tctc = new TestCaseTreeComposite(parent, SWT.SINGLE, m_parentTestCase); } else { tctc = new TestCaseTreeComposite(parent, ...
public void createControl(Composite parent) { final TestCaseTreeComposite tctc; if (m_parentTestCase != null) { tctc = new TestCaseTreeComposite(parent, SWT.SINGLE, m_parentTestCase); } else { tctc = new TestCaseTreeComposite(parent, ...
diff --git a/domino/eclipse/plugins/com.ibm.xsp.sbtsdk.playground/src/nsf/playground/playground/PreviewJavaHandler.java b/domino/eclipse/plugins/com.ibm.xsp.sbtsdk.playground/src/nsf/playground/playground/PreviewJavaHandler.java index d5949a7bd..bfe9e317c 100644 --- a/domino/eclipse/plugins/com.ibm.xsp.sbtsdk.playgroun...
true
true
protected void execRequest(HttpServletRequest req, HttpServletResponse resp, RequestParams requestParams) throws ServletException, IOException { HttpSession session = req.getSession(); resp.setContentType("text/html"); resp.setStatus(HttpServletResponse.SC_OK); String sOptions = requestParams.sOptions; Json...
protected void execRequest(HttpServletRequest req, HttpServletResponse resp, RequestParams requestParams) throws ServletException, IOException { resp.setContentType("text/html"); resp.setStatus(HttpServletResponse.SC_OK); String sOptions = requestParams.sOptions; JsonJavaObject options = new JsonJavaObject();...
diff --git a/src/main/java/fr/inria/diversify/replace/RunMaven.java b/src/main/java/fr/inria/diversify/replace/RunMaven.java index 22b59bc..bd89f30 100644 --- a/src/main/java/fr/inria/diversify/replace/RunMaven.java +++ b/src/main/java/fr/inria/diversify/replace/RunMaven.java @@ -1,73 +1,73 @@ package fr.inria.diversi...
true
true
protected void parseResult(String r) { result = new ArrayList<String>(); boolean start = false; for (String s : r.split("\n")) { // System.out.println(s); if (s.startsWith("[ERROR] COMPILATION ERROR")) compileError = true; if (s.startsWith("...
protected void parseResult(String r) { result = new ArrayList<String>(); boolean start = false; for (String s : r.split("\n")) { System.out.println(s); if (s.startsWith("[ERROR] COMPILATION ERROR")) compileError = true; if (s.startsWith("Te...
diff --git a/TFC_Shared/src/TFC/TFCItems.java b/TFC_Shared/src/TFC/TFCItems.java index 093f359c4..a36eed162 100644 --- a/TFC_Shared/src/TFC/TFCItems.java +++ b/TFC_Shared/src/TFC/TFCItems.java @@ -1,1969 +1,1969 @@ package TFC; import java.io.File; import net.minecraft.block.Block; import net.minecraft.creative...
true
true
public static void Setup() { try { config = new net.minecraftforge.common.Configuration( new File(TerraFirmaCraft.proxy.getMinecraftDir(), "/config/TFC.cfg")); config.load(); } catch (Exception e) { System.out.println(new StringBuilder()....
public static void Setup() { try { config = new net.minecraftforge.common.Configuration( new File(TerraFirmaCraft.proxy.getMinecraftDir(), "/config/TFC.cfg")); config.load(); } catch (Exception e) { System.out.println(new StringBuilder()....
diff --git a/java/client/src/org/openqa/selenium/internal/seleniumemulation/Type.java b/java/client/src/org/openqa/selenium/internal/seleniumemulation/Type.java index de87249a4..2cec35888 100644 --- a/java/client/src/org/openqa/selenium/internal/seleniumemulation/Type.java +++ b/java/client/src/org/openqa/selenium/inte...
true
true
protected Void handleSeleneseCommand(WebDriver driver, String locator, String value) { alertOverride.replaceAlertMethod(driver); if (state.controlKeyDown || state.altKeyDown || state.metaKeyDown) throw new SeleniumException( "type not supported immediately after call to controlKeyDown() or al...
protected Void handleSeleneseCommand(WebDriver driver, String locator, String value) { alertOverride.replaceAlertMethod(driver); if (state.controlKeyDown || state.altKeyDown || state.metaKeyDown) throw new SeleniumException( "type not supported immediately after call to controlKeyDown() or al...
diff --git a/src/main/java/org/rsna/isn/prepcontent/dcm/CStoreHandler.java b/src/main/java/org/rsna/isn/prepcontent/dcm/CStoreHandler.java index a178d21..990b4ce 100644 --- a/src/main/java/org/rsna/isn/prepcontent/dcm/CStoreHandler.java +++ b/src/main/java/org/rsna/isn/prepcontent/dcm/CStoreHandler.java @@ -1,155 +1,15...
false
true
public void cstore(Association as, int pcid, DicomObject cmd, PDVInputStream dataStream, String tsuid) throws DicomServiceException, IOException { try { DicomObject dcmObj = dataStream.readDataset(); String accNum = dcmObj.getString(Tag.AccessionNumber); String mrn = dcmObj.getString(Tag.PatientID...
public void cstore(Association as, int pcid, DicomObject cmd, PDVInputStream dataStream, String tsuid) throws DicomServiceException, IOException { try { DicomObject dcmObj = dataStream.readDataset(); String accNum = dcmObj.getString(Tag.AccessionNumber); String mrn = dcmObj.getString(Tag.PatientID...
diff --git a/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Update.java b/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Update.java index a1e04fe..ca0f15e 100644 --- a/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Update.java +++ b/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Update.java @@ ...
true
true
private void validate(HttpServletRequest request) { // WebContent needs to migrate to using ContentType. String ctStr ; { ContentType incoming = FusekiLib.contentType(request) ; if ( incoming == null ) ctStr = WebContent.contentTypeSPARQLUpdate ; ...
private void validate(HttpServletRequest request) { // WebContent needs to migrate to using ContentType. String ctStr ; { ContentType incoming = FusekiLib.contentType(request) ; if ( incoming == null ) ctStr = WebContent.contentTypeSPARQLUpdate ; ...
diff --git a/nl.dslmeinte.xtext.sgml.test.simplemarkup/src/nl/dslmeinte/xtext/sgml/test/simplemarkup/naming/SimpleMarkupNameProvider.java b/nl.dslmeinte.xtext.sgml.test.simplemarkup/src/nl/dslmeinte/xtext/sgml/test/simplemarkup/naming/SimpleMarkupNameProvider.java index 6a04f3c..a913d0e 100644 --- a/nl.dslmeinte.xtext....
true
true
public QualifiedName getFullyQualifiedName(EObject object) { if( object instanceof Section ) { return QualifiedName.create( ((Section) object).getSection_tagOpen().getAttributes().getName() ); } return super.getFullyQualifiedName(object); }
public QualifiedName getFullyQualifiedName(EObject object) { if( object instanceof Section ) { String name = ((Section) object).getSection_tagOpen().getAttributes().getName(); return name != null ? QualifiedName.create(name) : null; } return super.getFullyQualifiedName(object); }
diff --git a/bw-calendar-client-webcommon/src/main/java/org/bedework/webcommon/category/FetchCategoriesAction.java b/bw-calendar-client-webcommon/src/main/java/org/bedework/webcommon/category/FetchCategoriesAction.java index 3aead06..9c49584 100644 --- a/bw-calendar-client-webcommon/src/main/java/org/bedework/webcommon...
true
true
public int doAction(BwRequest request, BwActionFormBase form) throws Throwable { request.getSess().embedCategories(request, false, BwSession.editableEntity); return forwardSuccess; }
public int doAction(BwRequest request, BwActionFormBase form) throws Throwable { request.getSess().embedCategories(request, true, BwSession.editableEntity); return forwardSuccess; }
diff --git a/openejb/container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiBuilder.java b/openejb/container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiBuilder.java index bd3631993..63956baa1 100644 --- a/openejb/container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiBuilder.java +++ b/openejb...
true
true
public static ThreadSingletonService initializeOWB(ClassLoader classLoader) { ThreadSingletonService singletonService = new ThreadSingletonServiceImpl(); logger.info("Created new singletonService " + singletonService); SystemInstance.get().setComponent(ThreadSingletonService.class, singleton...
public static ThreadSingletonService initializeOWB(ClassLoader classLoader) { ThreadSingletonService singletonService = new ThreadSingletonServiceImpl(); logger.info("Created new singletonService " + singletonService); SystemInstance.get().setComponent(ThreadSingletonService.class, singleton...
diff --git a/src/Core/org/objectweb/proactive/core/util/TimeoutAccounter.java b/src/Core/org/objectweb/proactive/core/util/TimeoutAccounter.java index 7b381a9b1..82d0dcd90 100644 --- a/src/Core/org/objectweb/proactive/core/util/TimeoutAccounter.java +++ b/src/Core/org/objectweb/proactive/core/util/TimeoutAccounter.java...
true
true
public long getRemainingTimeout() { long remainingTimeout = 0; if (this.timeout != 0) { remainingTimeout = (System.nanoTime() / 1000000) - start - timeout; if (remainingTimeout <= 0) { /* Returning a timeout of 0 would mean infinite timeout */ ...
public long getRemainingTimeout() { long remainingTimeout = 0; if (this.timeout != 0) { long elapsedTime = (System.nanoTime() / 1000000) - start; remainingTimeout = timeout - elapsedTime; if (remainingTimeout <= 0) { /* Returning a timeout of 0 wou...
diff --git a/bugrap-ui/src/main/java/com/vaadin/training/bugrap/view/reports/components/ReportEditLayout.java b/bugrap-ui/src/main/java/com/vaadin/training/bugrap/view/reports/components/ReportEditLayout.java index 0377be8..49b1cb6 100644 --- a/bugrap-ui/src/main/java/com/vaadin/training/bugrap/view/reports/components/...
true
true
public ReportEditLayout() { setSizeFull(); setMargin(true); HorizontalLayout headerLayout = new HorizontalLayout(); headerLayout.setSpacing(true); headerLayout.setWidth("100%"); newWindowButton = new Button("New window", new Button.ClickListener() { @Ove...
public ReportEditLayout() { setSizeFull(); setMargin(true); HorizontalLayout headerLayout = new HorizontalLayout(); headerLayout.setSpacing(true); headerLayout.setWidth("100%"); newWindowButton = new Button("New window", new Button.ClickListener() { @Ove...
diff --git a/src/game/util/IO/Net/GameClientListeners.java b/src/game/util/IO/Net/GameClientListeners.java index 717096e..a60cbca 100644 --- a/src/game/util/IO/Net/GameClientListeners.java +++ b/src/game/util/IO/Net/GameClientListeners.java @@ -1,66 +1,66 @@ package game.util.IO.Net; import java.util.Iterator; i...
true
true
public static void createListeners() { client.addListener(new ThreadedListener(new Listener() { public void connected (Connection connection) { } public void received (Connection connection, Object object) { if (object instanceof UpdatePlayer) { ...
public static void createListeners() { client.addListener(new ThreadedListener(new Listener() { public void connected (Connection connection) { } public void received (Connection connection, Object object) { if (object instanceof UpdatePlayer) { ...
diff --git a/src/com/sk89q/worldguard/bukkit/WorldGuardWorldConfiguration.java b/src/com/sk89q/worldguard/bukkit/WorldGuardWorldConfiguration.java index c1b582ea..49b20259 100644 --- a/src/com/sk89q/worldguard/bukkit/WorldGuardWorldConfiguration.java +++ b/src/com/sk89q/worldguard/bukkit/WorldGuardWorldConfiguration.ja...
true
true
private void loadConfiguration() { Configuration config = new Configuration(this.configFile); config.load(); enforceOneSession = config.getBoolean("protection.enforce-single-session", true); itemDurability = config.getBoolean("protection.item-durability", true); classicWat...
private void loadConfiguration() { Configuration config = new Configuration(this.configFile); config.load(); enforceOneSession = config.getBoolean("protection.enforce-single-session", true); itemDurability = config.getBoolean("protection.item-durability", true); classicWat...
diff --git a/NewsBlurPlus/src/com/asafge/newsblurplus/SubsStruct.java b/NewsBlurPlus/src/com/asafge/newsblurplus/SubsStruct.java index 1a2488d..2360350 100644 --- a/NewsBlurPlus/src/com/asafge/newsblurplus/SubsStruct.java +++ b/NewsBlurPlus/src/com/asafge/newsblurplus/SubsStruct.java @@ -1,123 +1,131 @@ package com.as...
true
true
private boolean getFoldersAndFeeds() throws ReaderException { try { if (_lastSync != null) { Calendar tmp = Calendar.getInstance(); tmp.setTimeInMillis(_lastSync.getTimeInMillis()); tmp.add(Calendar.SECOND, 10); if (tmp.after(Calendar.getInstance())) return true; } APICall ac = new APIC...
private boolean getFoldersAndFeeds() throws ReaderException { try { if (_lastSync != null) { Calendar tmp = Calendar.getInstance(); tmp.setTimeInMillis(_lastSync.getTimeInMillis()); tmp.add(Calendar.SECOND, 10); if (tmp.after(Calendar.getInstance())) return true; } APICall ac = new APIC...
diff --git a/JsTestDriver/src/com/google/jstestdriver/output/FileNameFormatter.java b/JsTestDriver/src/com/google/jstestdriver/output/FileNameFormatter.java index 2bf4a940..3e69aabd 100644 --- a/JsTestDriver/src/com/google/jstestdriver/output/FileNameFormatter.java +++ b/JsTestDriver/src/com/google/jstestdriver/output/...
true
true
public String format(String path, String format) { String escaped = path .replace('/', 'a') .replace('\\', 'a') .replace(">", "a") .replace(".", "a") .replace(":", "a") .replace(":", "a") .replace(";", "a") .replace("+", "a") .replace(",", "a...
public String format(String path, String format) { String escaped = path .replace('/', 'a') .replace('\\', 'a') .replace(">", "a") .replace(":", "a") .replace(":", "a") .replace(";", "a") .replace("+", "a") .replace(",", "a") .replace("<", "a...
diff --git a/yp-hibernate-equals/src/main/java/com/github/snd297/yp/hibernateequals/model/FixedGetClassCar.java b/yp-hibernate-equals/src/main/java/com/github/snd297/yp/hibernateequals/model/FixedGetClassCar.java index ef44d77..ae95af0 100644 --- a/yp-hibernate-equals/src/main/java/com/github/snd297/yp/hibernateequals/...
true
true
public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!Hibernate.getClass(obj).equals(FixedGetClassCar.class)) { return false; } FixedGetClassCar other = (FixedGetClassCar) obj; if (!Objects.equal(this.v...
public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (Hibernate.getClass(this) != Hibernate.getClass(obj)) { return false; } FixedGetClassCar other = (FixedGetClassCar) obj; if (!Objects.equal(this.vin, ...
diff --git a/org.amanzi.awe.afp/src/org/amanzi/awe/afp/wizards/AfpWizardPage.java b/org.amanzi.awe.afp/src/org/amanzi/awe/afp/wizards/AfpWizardPage.java index 94f94b1d1..c8fff7bab 100644 --- a/org.amanzi.awe.afp/src/org/amanzi/awe/afp/wizards/AfpWizardPage.java +++ b/org.amanzi.awe.afp/src/org/amanzi/awe/afp/wizards/Af...
true
true
protected Table addTRXFilterGroup(Group main, String[] headers, int emptyrows, boolean isSite, FilterListener listener, String[] noListenerHeaders){ final Shell parentShell = main.getShell(); this.listener = listener; Arrays.sort(noListenerHeaders); parentShell.addMouseListener(new MouseListener(){ @Ove...
protected Table addTRXFilterGroup(Group main, String[] headers, int emptyrows, boolean isSite, FilterListener listener, String[] noListenerHeaders){ final Shell parentShell = main.getShell(); this.listener = listener; Arrays.sort(noListenerHeaders); parentShell.addMouseListener(new MouseListener(){ @Ove...
diff --git a/src/main/java/com/bubble/db/subscription/JdbcSubsRepository.java b/src/main/java/com/bubble/db/subscription/JdbcSubsRepository.java index 9e9778f..d24d597 100644 --- a/src/main/java/com/bubble/db/subscription/JdbcSubsRepository.java +++ b/src/main/java/com/bubble/db/subscription/JdbcSubsRepository.java @@ ...
true
true
public void createSubscription(int topic, String user, boolean subscribed){ jdbcTemplate.update("update subscriptions set subscribed=? and datecreated=now() " + "where userid=? and topic=?;", subscribed, user, topic); try { jdbcTemplate.update( "insert into subscriptions (topic, userid, subscribed...
public void createSubscription(int topic, String user, boolean subscribed){ System.out.println("top"+topic + " " + "user" + user + " " + "subscr" + subscribed); jdbcTemplate.update("update subscriptions set subscribed=?, datecreated=now() " + "where userid=? and topic=?;", subscribed, user, topic); try ...
diff --git a/src/com/herocraftonline/dev/heroes/persistence/Hero.java b/src/com/herocraftonline/dev/heroes/persistence/Hero.java index 9b9eb2ec..e8109cd4 100644 --- a/src/com/herocraftonline/dev/heroes/persistence/Hero.java +++ b/src/com/herocraftonline/dev/heroes/persistence/Hero.java @@ -1,472 +1,472 @@ package com....
true
true
public void gainExp(double expChange, ExperienceType source, boolean distributeToParty) { Properties prop = plugin.getConfigManager().getProperties(); if (prop.disabledWorlds.contains(player.getWorld().getName())) return; if (distributeToParty && party != null && party....
public void gainExp(double expChange, ExperienceType source, boolean distributeToParty) { Properties prop = plugin.getConfigManager().getProperties(); if (prop.disabledWorlds.contains(player.getWorld().getName())) return; if (distributeToParty && party != null && party....
diff --git a/org.springsource.ide.eclipse.commons.livexp/src/org/springsource/ide/eclipse/commons/livexp/ui/StringFieldSection.java b/org.springsource.ide.eclipse.commons.livexp/src/org/springsource/ide/eclipse/commons/livexp/ui/StringFieldSection.java index a72bd226..ed919777 100644 --- a/org.springsource.ide.eclipse....
true
true
public void createContents(Composite page) { // project specification group Composite projectGroup = new Composite(page, SWT.NONE); GridLayout layout = new GridLayout(); layout.numColumns = 2; // layout.marginBottom = 0; // layout.marginTop = 0; // layout.marginLeft...
public void createContents(Composite page) { // project specification group Composite projectGroup = new Composite(page, SWT.NONE); GridLayout layout = new GridLayout(); layout.numColumns = 2; // layout.marginBottom = 0; // layout.marginTop = 0; // layout.marginLeft...
diff --git a/src/com/codisimus/plugins/buttonwarp/SaveSystem.java b/src/com/codisimus/plugins/buttonwarp/SaveSystem.java index deda374..db14ff9 100644 --- a/src/com/codisimus/plugins/buttonwarp/SaveSystem.java +++ b/src/com/codisimus/plugins/buttonwarp/SaveSystem.java @@ -1,240 +1,241 @@ package com.codisimus.plugins....
true
true
public static void load() { String line = ""; try { //Open save file in BufferedReader new File("plugins/ButtonWarp").mkdir(); new File("plugins/ButtonWarp/warps.save").createNewFile(); BufferedReader bReader = new BufferedReader(new FileReader("plugi...
public static void load() { String line = ""; try { //Open save file in BufferedReader new File("plugins/ButtonWarp").mkdir(); new File("plugins/ButtonWarp/warps.save").createNewFile(); BufferedReader bReader = new BufferedReader(new FileReader("plugi...
diff --git a/src/org/jruby/util/Sprintf.java b/src/org/jruby/util/Sprintf.java index 4e2ba7381..e64769825 100644 --- a/src/org/jruby/util/Sprintf.java +++ b/src/org/jruby/util/Sprintf.java @@ -1,1418 +1,1418 @@ /***** BEGIN LICENSE BLOCK ***** * Version: CPL 1.0/GPL 2.0/LGPL 2.1 * * The contents of this file are...
true
true
private static boolean rubySprintfToBuffer(ByteList buf, CharSequence charFormat, Args args, boolean usePrefixForZero) { boolean tainted = false; final byte[] format; int offset; int length; int start; int mark; if (charFormat instanceof ByteList) { ...
private static boolean rubySprintfToBuffer(ByteList buf, CharSequence charFormat, Args args, boolean usePrefixForZero) { boolean tainted = false; final byte[] format; int offset; int length; int start; int mark; if (charFormat instanceof ByteList) { ...
diff --git a/src/com/travel/service/MessageServiceScheduler.java b/src/com/travel/service/MessageServiceScheduler.java index 1574057..f67b3da 100644 --- a/src/com/travel/service/MessageServiceScheduler.java +++ b/src/com/travel/service/MessageServiceScheduler.java @@ -1,58 +1,59 @@ /** * @author Zhang Zhipeng * ...
true
true
void doSomethingWithRate() { log.debug("检查自动触发"); List<TriggerConfig> list = triggerService.getValidTriggerConfigs(); for(TriggerConfig trigger : list){ log.debug("自动触发:" + trigger.toString()); if(trigger.getTypeValue().intValue() != TRIGGER_TYPE.WEATHER.getValue()){ triggerService.trigger(trigger); ...
void doSomethingWithRate() { log.debug("检查自动触发"); List<TriggerConfig> list = triggerService.getValidTriggerConfigs(); for(TriggerConfig trigger : list){ log.debug("自动触发:" + trigger.toString()); if(trigger.getTypeValue().intValue() != TRIGGER_TYPE.TOMORROW_WEATHER.getValue() && trigger.getTypeValue()....
diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitChangesetConverter.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitChangesetConverter.java index 28e862d85..fb14003e6 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitChangesetConverter.jav...
false
true
private Modifications createModifications(TreeWalk treeWalk, RevCommit commit) throws IOException { Modifications modifications = null; treeWalk.reset(); treeWalk.setRecursive(true); if (commit.getParentCount() > 0) { RevCommit parent = commit.getParent(0); RevTree tree = paren...
private Modifications createModifications(TreeWalk treeWalk, RevCommit commit) throws IOException { Modifications modifications = null; treeWalk.reset(); treeWalk.setRecursive(true); if (commit.getParentCount() > 0) { RevCommit parent = commit.getParent(0); RevTree tree = paren...
diff --git a/src/main/java/hudson/plugins/git/GitSCM.java b/src/main/java/hudson/plugins/git/GitSCM.java index c6902cc..7c48180 100644 --- a/src/main/java/hudson/plugins/git/GitSCM.java +++ b/src/main/java/hudson/plugins/git/GitSCM.java @@ -1,911 +1,911 @@ package hudson.plugins.git; import hudson.EnvVars; import ...
true
true
public boolean checkout(final AbstractBuild build, Launcher launcher, final FilePath workspace, final BuildListener listener, File changelogFile) throws IOException, InterruptedException { listener.getLogger().println("Checkout:" + workspace.getName() + " / " + workspace.getRemote() + " - " + workspace.get...
public boolean checkout(final AbstractBuild build, Launcher launcher, final FilePath workspace, final BuildListener listener, File changelogFile) throws IOException, InterruptedException { listener.getLogger().println("Checkout:" + workspace.getName() + " / " + workspace.getRemote() + " - " + workspace.get...
diff --git a/src/net/sf/freecol/client/gui/panel/BuildingSiteToolTip.java b/src/net/sf/freecol/client/gui/panel/BuildingSiteToolTip.java index 7494f5e64..c61f3b4d6 100644 --- a/src/net/sf/freecol/client/gui/panel/BuildingSiteToolTip.java +++ b/src/net/sf/freecol/client/gui/panel/BuildingSiteToolTip.java @@ -1,111 +1,11...
true
true
public BuildingSiteToolTip(Colony colony, Canvas parent) { setLayout(new MigLayout("fill", "", "")); BuildableType buildable = colony.getCurrentlyBuilding(); if (buildable == null) { add(FreeColPanel.getDefaultTextArea(Messages.message("colonyPanel.clickToBuild")), ...
public BuildingSiteToolTip(Colony colony, Canvas parent) { setLayout(new MigLayout("fill", "", "")); BuildableType buildable = colony.getCurrentlyBuilding(); if (buildable == null) { add(FreeColPanel.getDefaultTextArea(Messages.message("colonyPanel.clickToBuild")), ...
diff --git a/src/com/modcrafting/ultrabans/commands/Ipban.java b/src/com/modcrafting/ultrabans/commands/Ipban.java index 383ced4..e7c01ad 100644 --- a/src/com/modcrafting/ultrabans/commands/Ipban.java +++ b/src/com/modcrafting/ultrabans/commands/Ipban.java @@ -1,238 +1,238 @@ package com.modcrafting.ultrabans.commands...
true
true
public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) { YamlConfiguration config = (YamlConfiguration) plugin.getConfig(); boolean auth = false; boolean anon = false; Player player = null; String admin = config.getString("defAdminName", "server"); String rea...
public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) { YamlConfiguration config = (YamlConfiguration) plugin.getConfig(); boolean auth = false; boolean anon = false; Player player = null; String admin = config.getString("defAdminName", "server"); String rea...
diff --git a/src/TuioSimulator.java b/src/TuioSimulator.java index dd14590..fe7c7ef 100644 --- a/src/TuioSimulator.java +++ b/src/TuioSimulator.java @@ -1,126 +1,127 @@ /* TUIO Simulator - part of the reacTIVision project http://reactivision.sourceforge.net/ Copyright (c) 2005-2009 Martin Kaltenbrunne...
false
true
public static void main(String[] argv) { String host = "127.0.0.1"; int port = 3333; String config=null; for (int i=0;i<argv.length;i++) { if (argv[i].equalsIgnoreCase("-host")) { try { host = argv[i+1]; } catch (Exception e) {} i++; } else if (argv[i].equalsIgnoreCase("-port")) { try { ...
public static void main(String[] argv) { String host = "127.0.0.1"; int port = 3333; String config=null; for (int i=0;i<argv.length;i++) { if (argv[i].equalsIgnoreCase("-host")) { try { host = argv[i+1]; } catch (Exception e) {} i++; } else if (argv[i].equalsIgnoreCase("-port")) { try { ...
diff --git a/experimental/src/main/java/com/proofpoint/experimental/http/client/HttpServiceSelector.java b/experimental/src/main/java/com/proofpoint/experimental/http/client/HttpServiceSelector.java index 4b9ffb2f1..aa54af778 100644 --- a/experimental/src/main/java/com/proofpoint/experimental/http/client/HttpServiceSel...
true
true
public URI selectHttpService() { List<ServiceDescriptor> serviceDescriptors = Lists.newArrayList(serviceSelector.selectAllServices()); Collections.shuffle(serviceDescriptors); for (ServiceDescriptor serviceDescriptor : serviceDescriptors) { // favor https over http ...
public URI selectHttpService() { List<ServiceDescriptor> serviceDescriptors = Lists.newArrayList(serviceSelector.selectAllServices()); Collections.shuffle(serviceDescriptors); for (ServiceDescriptor serviceDescriptor : serviceDescriptors) { // favor https over http ...
diff --git a/issues/jira/src/main/java/uk/org/sappho/code/change/management/issues/Jira.java b/issues/jira/src/main/java/uk/org/sappho/code/change/management/issues/Jira.java index f388c2d..2225ced 100644 --- a/issues/jira/src/main/java/uk/org/sappho/code/change/management/issues/Jira.java +++ b/issues/jira/src/main/ja...
false
true
public IssueData getIssueData(String issueKey) { String subTaskKey = null; if (parentIssues.get(issueKey) == null) { String parentKey = null; if (getParentService != null) { try { parentKey = getParentService.getParent(issueKey); ...
public IssueData getIssueData(String issueKey) { String subTaskKey = null; if (parentIssues.get(issueKey) == null) { String parentKey = subTaskParents.get(issueKey); if (parentKey == null) { if (getParentService != null) { try { ...
diff --git a/src/com/android/calendar/AlertAdapter.java b/src/com/android/calendar/AlertAdapter.java index d9fac2de..03a2151b 100644 --- a/src/com/android/calendar/AlertAdapter.java +++ b/src/com/android/calendar/AlertAdapter.java @@ -1,108 +1,108 @@ /* * Copyright (C) 2008 The Android Open Source Project * * Li...
true
true
public static void updateView(Context context, View view, String eventName, String location, long startMillis, long endMillis, boolean allDay) { Resources res = context.getResources(); TextView textView; // What if (eventName == null || eventName.length(...
public static void updateView(Context context, View view, String eventName, String location, long startMillis, long endMillis, boolean allDay) { Resources res = context.getResources(); TextView textView; // What if (eventName == null || eventName.length(...
diff --git a/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/servlet/AbstractBrowserServlet.java b/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/servlet/AbstractBrowserServlet.java index c588dbcdf..c7f5b73e7 100644 --- a/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webu...
true
true
protected BrowserScope getBrowserScopeForRequest(Context context, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException { try { // first, lift all the stuff out of the request that we might need ...
protected BrowserScope getBrowserScopeForRequest(Context context, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException { try { // first, lift all the stuff out of the request that we might need ...
diff --git a/gruppe32/src/Aktion.java b/gruppe32/src/Aktion.java index 50e16ce..aa433c9 100644 --- a/gruppe32/src/Aktion.java +++ b/gruppe32/src/Aktion.java @@ -1,238 +1,244 @@ /** * Klassenkommentar: * Hauptspiellogik bzw. was tun wenn was passiert * */ public class Aktion{ private static int figurX;...
false
true
public void figurBewegen(int richtung){ if (richtung == Main.RECHTS){ newFigurX=figurX+1; newFigurY=figurY; } else if (richtung == Main.UNTEN){ newFigurX=figurX; newFigurY=figurY-1; } else if (richtung == Main.LINKS){ newFigurX=figurX-1; newFigurY=figurY; } else if (richtun...
public void figurBewegen(int richtung){ if (richtung == Main.RECHTS){ newFigurX=figurX+1; newFigurY=figurY; } else if (richtung == Main.UNTEN){ newFigurX=figurX; newFigurY=figurY-1; } else if (richtung == Main.LINKS){ newFigurX=figurX-1; newFigurY=figurY; } else if (richtun...
diff --git a/community/gss/src/main/java/org/geoserver/gss/SynchronizationManager.java b/community/gss/src/main/java/org/geoserver/gss/SynchronizationManager.java index 9aa77d52e..ccdf9e592 100644 --- a/community/gss/src/main/java/org/geoserver/gss/SynchronizationManager.java +++ b/community/gss/src/main/java/org/geose...
false
true
public void synchronizeOustandlingLayers() throws IOException { // make sure we're properly configured core.ensureEnabled(); if (core.getMode() != GSSMode.Central) { return; } FeatureIterator<SimpleFeature> fi = null; FeatureIterator<SimpleFeatur...
public void synchronizeOustandlingLayers() throws IOException { // make sure we're properly configured core.ensureEnabled(); if (core.getMode() != GSSMode.Central) { return; } FeatureIterator<SimpleFeature> fi = null; FeatureIterator<SimpleFeatur...
diff --git a/examples/activeweb-simple/src/test/java/app/views/books/ShowSpec.java b/examples/activeweb-simple/src/test/java/app/views/books/ShowSpec.java index 789ebdc..db0b854 100644 --- a/examples/activeweb-simple/src/test/java/app/views/books/ShowSpec.java +++ b/examples/activeweb-simple/src/test/java/app/views/boo...
false
true
public void shouldRenderOneBook(){ setCurrentController(BooksController.class); Map book = map("author", "Douglas Adams", "title", "The Restaurant at the End of the Universe", "isbn", "ISBN 0-345-39181-0"); a(render("/books/show", map("book", book))).shouldBeEqual("\n<a href=\"/test_conte...
public void shouldRenderOneBook() { setCurrentController(BooksController.class); Map book = map("author", "Douglas Adams", "title", "The Restaurant at the End of the Universe", "isbn", "ISBN 0-345-39181-0"); String renderedPage = render("/books/show", map("book", book)); a(render...
diff --git a/src/ca/ubc/ctlt/copyalerts/indexer/CSIndexJob.java b/src/ca/ubc/ctlt/copyalerts/indexer/CSIndexJob.java index 1cbad72..6b453dd 100644 --- a/src/ca/ubc/ctlt/copyalerts/indexer/CSIndexJob.java +++ b/src/ca/ubc/ctlt/copyalerts/indexer/CSIndexJob.java @@ -1,392 +1,408 @@ package ca.ubc.ctlt.copyalerts.indexer...
false
true
private boolean indexer(SavedConfiguration config) throws JobExecutionException { // run actual job // part 1, try generating the queue QueueTable queue; logger.info("Queue Generation Start"); ArrayList<String> paths = new ArrayList<String>(); try { queue = new QueueTable(); paths = queue.load...
private boolean indexer(SavedConfiguration config) throws JobExecutionException { // run actual job // part 1, try generating the queue QueueTable queue; logger.info("Queue Generation Start"); ArrayList<String> paths = new ArrayList<String>(); // we're either going to continue processing a previously g...
diff --git a/src/org/eclipse/imp/lpg/parser/ParseController.java b/src/org/eclipse/imp/lpg/parser/ParseController.java index 2147eb3..7b3e5e2 100644 --- a/src/org/eclipse/imp/lpg/parser/ParseController.java +++ b/src/org/eclipse/imp/lpg/parser/ParseController.java @@ -1,113 +1,113 @@ /* * Created on Oct 28, 2005 *...
true
true
public Object parse(String contents, boolean scanOnly, IProgressMonitor monitor) { MyMonitor my_monitor = new MyMonitor(monitor); char[] contentsArray = contents.toCharArray(); // // No need to reconstruct the parser. Just reset the lexer. // // lexer = new SmalltalkLexer(c...
public Object parse(String contents, boolean scanOnly, IProgressMonitor monitor) { MyMonitor my_monitor = new MyMonitor(monitor); char[] contentsArray = contents.toCharArray(); // // No need to reconstruct the parser. Just reset the lexer. // // lexer = new SmalltalkLexer(c...
diff --git a/panc/src/main/java/org/quattor/pan/utils/XmlUtils.java b/panc/src/main/java/org/quattor/pan/utils/XmlUtils.java index 02f04fa..923e46a 100644 --- a/panc/src/main/java/org/quattor/pan/utils/XmlUtils.java +++ b/panc/src/main/java/org/quattor/pan/utils/XmlUtils.java @@ -1,67 +1,65 @@ package org.quattor.pan....
true
true
public static TransformerHandler getSaxTransformerHandler() { try { // Generate the transformer factory. Need to guarantee that we get a // SAXTransformerFactory. TransformerFactory factory = TransformerFactory.newInstance(); if (!factory.getFeature(SAXTrans...
public static TransformerHandler getSaxTransformerHandler() { try { // Generate the transformer factory. Need to guarantee that we get a // SAXTransformerFactory. TransformerFactory factory = TransformerFactory.newInstance(); if (!factory.getFeature(SAXTrans...
diff --git a/52n-sos-importer/52n-sos-importer-core/src/main/java/org/n52/sos/importer/controller/Step6bSpecialController.java b/52n-sos-importer/52n-sos-importer-core/src/main/java/org/n52/sos/importer/controller/Step6bSpecialController.java index c54af863..ab700302 100644 --- a/52n-sos-importer/52n-sos-importer-core/...
false
true
public Step6bSpecialModel getNextModel() { int rows = this.tableController.getRowCount(); //iterate through all measured value columns/rows for (MeasuredValue mv: ModelStore.getInstance().getMeasuredValues()) { int rowOrColumnNumber; if (mv.getTableElement() instanceof Column) rowOrColumnNumber = ((C...
public Step6bSpecialModel getNextModel() { int rows = this.tableController.getRowCount(); int flwd = this.tableController.getFirstLineWithData(); //iterate through all measured value columns/rows for (MeasuredValue mv: ModelStore.getInstance().getMeasuredValues()) { int rowOrColumnNumber; if (mv.getTabl...
diff --git a/src/main/java/br/com/yaw/sjpac/controller/BuscarMercadoriaController.java b/src/main/java/br/com/yaw/sjpac/controller/BuscarMercadoriaController.java index 1e7b6c1..8d8bd65 100755 --- a/src/main/java/br/com/yaw/sjpac/controller/BuscarMercadoriaController.java +++ b/src/main/java/br/com/yaw/sjpac/controller...
true
true
public BuscarMercadoriaController(AbstractController parent) { super(parent); frame = new BuscaMercadoriaFrame(); frame.addWindowListener(this); registerAction(frame.getBuscarButton(), new AbstractAction() { List<Mercadoria> list; public void action() { if (frame.getText().length() > 0) {...
public BuscarMercadoriaController(AbstractController parent) { super(parent); frame = new BuscaMercadoriaFrame(); frame.addWindowListener(this); registerAction(frame.getBuscarButton(), new AbstractAction() { List<Mercadoria> list; public void action() { if (frame.getText().length() > 0) {...
diff --git a/src/net/sf/freecol/client/gui/panel/ReportLabourPanel.java b/src/net/sf/freecol/client/gui/panel/ReportLabourPanel.java index 960539779..38b221f16 100644 --- a/src/net/sf/freecol/client/gui/panel/ReportLabourPanel.java +++ b/src/net/sf/freecol/client/gui/panel/ReportLabourPanel.java @@ -1,201 +1,201 @@ pa...
true
true
public void initialize() { // Count Units unitCount = new int[Unit.UNIT_COUNT]; unitLocations = new Vector<HashMap<String,Integer>>(Unit.UNIT_COUNT); for (int index = 0; index < Unit.UNIT_COUNT; index++) { unitLocations.set(index,new HashMap<String, Integer>()); }...
public void initialize() { // Count Units unitCount = new int[Unit.UNIT_COUNT]; unitLocations = new Vector<HashMap<String,Integer>>(Unit.UNIT_COUNT); for (int index = 0; index < Unit.UNIT_COUNT; index++) { unitLocations.add(new HashMap<String, Integer>()); } ...
diff --git a/specs/src/eu/sqooss/impl/service/SpecsActivator.java b/specs/src/eu/sqooss/impl/service/SpecsActivator.java index 9e40cea8..5f86de5b 100644 --- a/specs/src/eu/sqooss/impl/service/SpecsActivator.java +++ b/specs/src/eu/sqooss/impl/service/SpecsActivator.java @@ -1,59 +1,59 @@ /* * This file is part of th...
true
true
public void start(BundleContext bc) { try { System.out.println("SpecsActivator: creating session"); new WSSession("alitheia", "alitheia", "http://localhost:8088/sqooss/services/ws/"); System.out.println("SpecsActivator: SUCCESS"); } catch (Exception e) { e.printSt...
public void start(BundleContext bc) throws Exception { try { System.out.println("SpecsActivator: creating session"); new WSSession("alitheia", "alitheia", "http://localhost:8088/sqooss/services/ws/"); System.out.println("SpecsActivator: SUCCESS"); } catch (Exception e) { ...
diff --git a/utilities/maven/Jaxb2SimpleXMLplugin/src/main/java/org/societies/maven/Jaxb2Simple.java b/utilities/maven/Jaxb2SimpleXMLplugin/src/main/java/org/societies/maven/Jaxb2Simple.java index 02d000b9a..220c1c70a 100644 --- a/utilities/maven/Jaxb2SimpleXMLplugin/src/main/java/org/societies/maven/Jaxb2Simple.java +...
false
true
private String findReplacePatterns(StringBuffer schemaContent) { String newSchemaContent; String textToFind; String textToReplace; //import javax.xml.bind.annotation.* -> import org.simpleframework.xml.* //s/^\(import javax.xml.bind.annotation.\w*;\n\)*import javax.xml.bind.annotation.\w*;/import org.simplefram...
private String findReplacePatterns(StringBuffer schemaContent) { String newSchemaContent; String textToFind; String textToReplace; //import javax.xml.bind.annotation.* -> import org.simpleframework.xml.* //s/^\(import javax.xml.bind.annotation.\w*;\n\)*import javax.xml.bind.annotation.\w*;/import org.simplefram...
diff --git a/src/strictmode-lib-test/src/com/robomorphine/strictmode/StrictModeHelperTest.java b/src/strictmode-lib-test/src/com/robomorphine/strictmode/StrictModeHelperTest.java index 587aa7a..0c98452 100644 --- a/src/strictmode-lib-test/src/com/robomorphine/strictmode/StrictModeHelperTest.java +++ b/src/strictmode-li...
true
true
public void testEnableDisableUniqueViolations() { try { StrictModeHelper.enableUniqueViolations(true); StrictModeHelper.enableUniqueViolations(false); assertFalse(Build.VERSION.SDK_INT > 8);//should not reach this line on 8th or earlier ...
public void testEnableDisableUniqueViolations() { try { StrictModeHelper.enableUniqueViolations(true); StrictModeHelper.enableUniqueViolations(false); assertTrue(Build.VERSION.SDK_INT > 8);//should not reach this line on 8th or earlier ...
diff --git a/src/test/java/it/uniroma3/dia/alfred/mpi/ConfiguratorParserTest.java b/src/test/java/it/uniroma3/dia/alfred/mpi/ConfiguratorParserTest.java index d4f81bb..47cfab9 100644 --- a/src/test/java/it/uniroma3/dia/alfred/mpi/ConfiguratorParserTest.java +++ b/src/test/java/it/uniroma3/dia/alfred/mpi/ConfiguratorPar...
false
true
public void test(String filePathConfigurations, String filePathDomains){ configHoldersList = ConfiguratorParser.readConfig(); assertEquals(7, configHoldersList.size()); ConfigHolder currentConfigHolder = configHoldersList.get(0); assertEquals("conf1_movies", currentConfigHolder.getUid()); assertEqu...
public void test(String filePathConfigurations, String filePathDomains){ configHoldersList = ConfiguratorParser.readConfig(); assertEquals(7, configHoldersList.size()); ConfigHolder currentConfigHolder = configHoldersList.get(0); assertEquals("conf1_movies", currentConfigHolder.getUid()); assertEqu...
diff --git a/src/main/java/org/powertac/officecomplexcustomer/customers/OfficeComplex.java b/src/main/java/org/powertac/officecomplexcustomer/customers/OfficeComplex.java index 40aab64..8a0fac2 100644 --- a/src/main/java/org/powertac/officecomplexcustomer/customers/OfficeComplex.java +++ b/src/main/java/org/powertac/of...
true
true
public void consumePower () { Timeslot ts = timeslotRepo.currentTimeslot(); double summary = 0; double summaryControllable = 0; HashMap<TariffSubscription, Double> subs = new HashMap<TariffSubscription, Double>(); for (TariffSubscription sub: subscriptionMap.values()) { subs.put(s...
public void consumePower () { Timeslot ts = timeslotRepo.currentTimeslot(); double summary = 0; double summaryControllable = 0; HashMap<TariffSubscription, Double> subs = new HashMap<TariffSubscription, Double>(); for (TariffSubscription sub: subscriptionMap.values()) { subs.put(s...
diff --git a/src/com/wickedspiral/jacss/lexer/builder/NumberTokenBuilder.java b/src/com/wickedspiral/jacss/lexer/builder/NumberTokenBuilder.java index 1684023..60c62bb 100644 --- a/src/com/wickedspiral/jacss/lexer/builder/NumberTokenBuilder.java +++ b/src/com/wickedspiral/jacss/lexer/builder/NumberTokenBuilder.java @@ ...
false
true
public void handle(ParserState state, char c) throws UnrecognizedCharacterException { boolean nonDigit = ! Character.isDigit(c); boolean point = ('.' == state.getLastCharacter()); // .2em or .classname ? if (point && nonDigit) { state.tokenFinished(Token.OP) ...
public void handle(ParserState state, char c) throws UnrecognizedCharacterException { boolean nonDigit = !Character.isDigit(c); boolean point = ('.' == state.getLastCharacter()); // .2em or .classname ? if (point && nonDigit) { state.tokenFinished(Token.OP) ...
diff --git a/activiti-cycle/src/main/java/org/activiti/cycle/impl/connector/signavio/SignavioConnector.java b/activiti-cycle/src/main/java/org/activiti/cycle/impl/connector/signavio/SignavioConnector.java index 89b83d04d..02fed239c 100644 --- a/activiti-cycle/src/main/java/org/activiti/cycle/impl/connector/signavio/Sig...
true
true
public RepositoryArtifact createArtifactFromJSON(String containingFolderId, String artifactName, String artifactType, String jsonContent) throws RepositoryNodeNotFoundException { // TODO: Add check if model already exists (overwrite or throw exception?) String revisionComment = null; Strin...
public RepositoryArtifact createArtifactFromJSON(String containingFolderId, String artifactName, String artifactType, String jsonContent) throws RepositoryNodeNotFoundException { // TODO: Add check if model already exists (overwrite or throw exception?) String revisionComment = null; Strin...
diff --git a/zendserver-deployment-eclipse/org.zend.php.library.core/src/org/zend/php/library/core/deploy/DeployLibraryJob.java b/zendserver-deployment-eclipse/org.zend.php.library.core/src/org/zend/php/library/core/deploy/DeployLibraryJob.java index 2ccd862e..93e27436 100644 --- a/zendserver-deployment-eclipse/org.zen...
false
true
public IStatus run(IProgressMonitor monitor) { StatusChangeListener listener = new StatusChangeListener(monitor); ZendLibrary lib = new ZendLibrary(new EclipseMappingModelLoader()); lib.addStatusChangeListener(listener); lib.setVariableResolver(new EclipseVariableResolver()); if (data.getRoot().getName().end...
public IStatus run(IProgressMonitor monitor) { StatusChangeListener listener = new StatusChangeListener(monitor); ZendLibrary lib = new ZendLibrary(new EclipseMappingModelLoader()); lib.addStatusChangeListener(listener); lib.setVariableResolver(new EclipseVariableResolver()); if (data.getRoot().getName().end...
diff --git a/src/com/palmergames/bukkit/towny/TownyEconomyHandler.java b/src/com/palmergames/bukkit/towny/TownyEconomyHandler.java index 2dc739f..1027e4c 100644 --- a/src/com/palmergames/bukkit/towny/TownyEconomyHandler.java +++ b/src/com/palmergames/bukkit/towny/TownyEconomyHandler.java @@ -1,360 +1,360 @@ package co...
true
true
public static Boolean setupEconomy() { Plugin economyProvider = null; /* * Test for native iCo5 support */ economyProvider = Bukkit.getPluginManager().getPlugin("iConomy"); if (economyProvider != null) { /* * Flag as using native iCo5 hooks */ if (economyProvider.getDescription().getVers...
public static Boolean setupEconomy() { Plugin economyProvider = null; /* * Test for native iCo5 support */ economyProvider = Bukkit.getPluginManager().getPlugin("iConomy"); if (economyProvider != null) { /* * Flag as using native iCo5 hooks */ if (economyProvider.getDescription().getVers...
diff --git a/src/java/net/spy/memcached/ops/Operation.java b/src/java/net/spy/memcached/ops/Operation.java index 0e08b02..84c3d10 100644 --- a/src/java/net/spy/memcached/ops/Operation.java +++ b/src/java/net/spy/memcached/ops/Operation.java @@ -1,195 +1,196 @@ // Copyright (c) 2006 Dustin Sallings <dustin@spy.net> /...
true
true
public final void readFromBuffer(ByteBuffer data) { // Loop while there's data remaining to get it all drained. while(data.remaining() > 0) { if(readType == ReadType.DATA) { handleRead(data); } else { int offset=-1; for(int i=0; data.remaining() > 0; i++) { byte b=data.get(); if(b == '\...
public final void readFromBuffer(ByteBuffer data) { // Loop while there's data remaining to get it all drained. while(data.remaining() > 0) { if(readType == ReadType.DATA) { handleRead(data); } else { int offset=-1; for(int i=0; data.remaining() > 0; i++) { byte b=data.get(); if(b == '\...
diff --git a/api/src/main/java/org/openmrs/module/feedback/extension/html/AdminList.java b/api/src/main/java/org/openmrs/module/feedback/extension/html/AdminList.java index 43f7325..a048499 100644 --- a/api/src/main/java/org/openmrs/module/feedback/extension/html/AdminList.java +++ b/api/src/main/java/org/openmrs/modul...
true
true
public Map<String, String> getLinks() { Map<String, String> map = new LinkedHashMap<String, String>(); map.put("module/feedback/addPredefinedSubject.form", "feedback.predefinedsubjects"); map.put("module/feedback/addSeverity.form", "feedback.severities"); map.put("module/feedback/ad...
public Map<String, String> getLinks() { Map<String, String> map = new LinkedHashMap<String, String>(); map.put("module/feedback/addPredefinedSubject.form", "feedback.predefinedsubjects"); map.put("module/feedback/addSeverity.form", "feedback.severities"); map.put("module/feedback/ad...
diff --git a/gui/src/main/java/com/jakeapp/gui/swing/models/NotesTableModel.java b/gui/src/main/java/com/jakeapp/gui/swing/models/NotesTableModel.java index c3c163c7..44a0c89d 100644 --- a/gui/src/main/java/com/jakeapp/gui/swing/models/NotesTableModel.java +++ b/gui/src/main/java/com/jakeapp/gui/swing/models/NotesTable...
true
true
public Object getValueAt(int row, int column) { Object value; Attributed<NoteObject> note = this.getAttributedNotes().get(row); switch (column) { case 0: // soft lock if (note.isLocked()) { value = this.padlock; } else { value = ""; } break; case 1: //is local if (!note.isOnly...
public Object getValueAt(int row, int column) { Object value; Attributed<NoteObject> note = this.getAttributedNotes().get(row); switch (column) { case 0: // soft lock if (note.isLocked()) { value = this.padlock; } else { value = ""; } break; case 1: //is local if (!note.isOnly...
diff --git a/gnu/testlet/java/beans/Beans/instantiate_1.java b/gnu/testlet/java/beans/Beans/instantiate_1.java index 9ac8d810..e88efd2b 100644 --- a/gnu/testlet/java/beans/Beans/instantiate_1.java +++ b/gnu/testlet/java/beans/Beans/instantiate_1.java @@ -1,123 +1,124 @@ //Tags: JDK1.2 //Uses: TestBean1 TestBean2 Te...
false
true
public void test(TestHarness harness) { /** Tries to instantiate a Bean with a <code>private</code> * constructor and expects an <code>IllegalAccessException</code> * wrapped in an <code>ClassNotFoundException</code> to be thrown. */ try { Beans.in...
public void test(TestHarness harness) { ClassLoader cl = getClass().getClassLoader(); /** Tries to instantiate a Bean with a <code>private</code> * constructor and expects an <code>IllegalAccessException</code> * wrapped in an <code>ClassNotFoundException</code> to be thrown. ...
diff --git a/src/org/jacorb/notification/filter/etcl/EqOperator.java b/src/org/jacorb/notification/filter/etcl/EqOperator.java index b3d21cc7b..29184b72e 100644 --- a/src/org/jacorb/notification/filter/etcl/EqOperator.java +++ b/src/org/jacorb/notification/filter/etcl/EqOperator.java @@ -1,78 +1,80 @@ package org.jaco...
true
true
public EvaluationResult evaluate(EvaluationContext context) throws EvaluationException { EvaluationResult _left = left().evaluate(context); EvaluationResult _right = right().evaluate(context); if (_left.compareTo( _right) == 0) { return EvaluationResult.BOOL_TRUE; ...
public EvaluationResult evaluate(EvaluationContext context) throws EvaluationException { EvaluationResult _left = left().evaluate(context); EvaluationResult _right = right().evaluate(context); if (_left != null && _right != null && _left.compareTo( _right) =...
diff --git a/src/com/sk89q/worldguard/bukkit/WorldGuardPlayerListener.java b/src/com/sk89q/worldguard/bukkit/WorldGuardPlayerListener.java index 492baba8..ce1a1bd8 100644 --- a/src/com/sk89q/worldguard/bukkit/WorldGuardPlayerListener.java +++ b/src/com/sk89q/worldguard/bukkit/WorldGuardPlayerListener.java @@ -1,571 +1,...
false
true
public void handleBlockRightClick(PlayerInteractEvent event) { if (event.isCancelled()) { return; } Block block = event.getClickedBlock(); World world = block.getWorld(); Material type = block.getType(); Player player = event.getPlayer(); ItemStac...
public void handleBlockRightClick(PlayerInteractEvent event) { if (event.isCancelled()) { return; } Block block = event.getClickedBlock(); World world = block.getWorld(); Material type = block.getType(); Player player = event.getPlayer(); ItemStac...
diff --git a/src/com/android/settings/wifi/AdvancedWifiSettings.java b/src/com/android/settings/wifi/AdvancedWifiSettings.java index fc1b128a4..c213512bb 100644 --- a/src/com/android/settings/wifi/AdvancedWifiSettings.java +++ b/src/com/android/settings/wifi/AdvancedWifiSettings.java @@ -1,198 +1,200 @@ /* * Copyrig...
false
true
private void initPreferences() { CheckBoxPreference notifyOpenNetworks = (CheckBoxPreference) findPreference(KEY_NOTIFY_OPEN_NETWORKS); notifyOpenNetworks.setChecked(Secure.getInt(getContentResolver(), Secure.WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON, 0) == 1); noti...
private void initPreferences() { CheckBoxPreference notifyOpenNetworks = (CheckBoxPreference) findPreference(KEY_NOTIFY_OPEN_NETWORKS); notifyOpenNetworks.setChecked(Secure.getInt(getContentResolver(), Secure.WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON, 0) == 1); noti...
diff --git a/src/main/org/testng/TestRunner.java b/src/main/org/testng/TestRunner.java index f595d587..d23b72f8 100644 --- a/src/main/org/testng/TestRunner.java +++ b/src/main/org/testng/TestRunner.java @@ -1,1077 +1,1076 @@ package org.testng; import java.io.File; import java.util.ArrayList; import java.util.C...
true
true
private void initMethods() { // // Calculate all the methods we need to invoke // List<ITestNGMethod> beforeClassMethods = new ArrayList<ITestNGMethod>(); List<ITestNGMethod> testMethods = new ArrayList<ITestNGMethod>(); List<ITestNGMethod> afterClassMethods = new ArrayList<ITestNGMethod>(); ...
private void initMethods() { // // Calculate all the methods we need to invoke // List<ITestNGMethod> beforeClassMethods = new ArrayList<ITestNGMethod>(); List<ITestNGMethod> testMethods = new ArrayList<ITestNGMethod>(); List<ITestNGMethod> afterClassMethods = new ArrayList<ITestNGMethod>(); ...
diff --git a/loci/plugins/Importer.java b/loci/plugins/Importer.java index 08b13512b..8a2473a2d 100644 --- a/loci/plugins/Importer.java +++ b/loci/plugins/Importer.java @@ -1,865 +1,865 @@ // // Importer.java // /* LOCI Plugins for ImageJ: a collection of ImageJ plugins including the Bio-Formats Importer, Bio-F...
true
true
public void run(String arg) { // -- Step 1: parse core options -- ImporterOptions options = new ImporterOptions(); options.loadPreferences(); options.parseArg(arg); int status = options.promptLocation(); if (!statusOk(status)) return; status = options.promptId(); if (!statusOk(statu...
public void run(String arg) { // -- Step 1: parse core options -- ImporterOptions options = new ImporterOptions(); options.loadPreferences(); options.parseArg(arg); int status = options.promptLocation(); if (!statusOk(status)) return; status = options.promptId(); if (!statusOk(statu...
diff --git a/src/pl/dmcs/whatsupdoc/client/providers/PatientRecognitionsProvider.java b/src/pl/dmcs/whatsupdoc/client/providers/PatientRecognitionsProvider.java index 9be2c48..eb83df3 100644 --- a/src/pl/dmcs/whatsupdoc/client/providers/PatientRecognitionsProvider.java +++ b/src/pl/dmcs/whatsupdoc/client/providers/Pati...
true
true
public PatientRecognitionsProvider(ContentManager cm, String key) { super(cm); this.drawWaitContent(); final TreatmentServiceAsync userService = GWT.create(TreatmentService.class); final AuthenticationServiceAsync auth = GWT.create(AuthenticationService.class); rowsCSS = Arrays.asList(new String[]{"even",...
public PatientRecognitionsProvider(ContentManager cm, String key) { super(cm); this.drawWaitContent(); final TreatmentServiceAsync userService = GWT.create(TreatmentService.class); final AuthenticationServiceAsync auth = GWT.create(AuthenticationService.class); rowsCSS = Arrays.asList(new String[]{"even",...
diff --git a/src/com/noshufou/android/su/InfoFragment.java b/src/com/noshufou/android/su/InfoFragment.java index 7f5b9fc..d0664eb 100644 --- a/src/com/noshufou/android/su/InfoFragment.java +++ b/src/com/noshufou/android/su/InfoFragment.java @@ -1,331 +1,331 @@ package com.noshufou.android.su; import java.io.Buffere...
true
true
protected void onProgressUpdate(Object... values) { switch ((Integer) values[0]) { case 0: VersionInfo superuserVersion = (VersionInfo) values[1]; mSuperuserVersion.setText(getSherlockActivity().getString( R.string.i...
protected void onProgressUpdate(Object... values) { switch ((Integer) values[0]) { case 0: VersionInfo superuserVersion = (VersionInfo) values[1]; mSuperuserVersion.setText(getSherlockActivity().getString( R.string.i...
diff --git a/src/haven/MenuGrid.java b/src/haven/MenuGrid.java index 069c257e..15f7957c 100644 --- a/src/haven/MenuGrid.java +++ b/src/haven/MenuGrid.java @@ -1,315 +1,315 @@ /* * This file is part of the Haven & Hearth game client. * Copyright (C) 2009 Fredrik Tolf <fredrik@dolda2000.com>, and * ...
true
true
public void draw(GOut g) { long now = System.currentTimeMillis(); Inventory.invsq(g, Coord.z, gsz); for(int y = 0; y < gsz.y; y++) { for(int x = 0; x < gsz.x; x++) { Coord p = Inventory.sqoff(new Coord(x, y)); Pagina btn = layout[x][y]; if(btn != null) { Tex btex = btn.img.tex(); g.image(b...
public void draw(GOut g) { long now = System.currentTimeMillis(); Inventory.invsq(g, Coord.z, gsz); for(int y = 0; y < gsz.y; y++) { for(int x = 0; x < gsz.x; x++) { Coord p = Inventory.sqoff(new Coord(x, y)); Pagina btn = layout[x][y]; if(btn != null) { Tex btex = btn.img.tex(); g.image(b...
diff --git a/src/main/java/com/almuramc/aqualock/bukkit/display/button/RemoveButton.java b/src/main/java/com/almuramc/aqualock/bukkit/display/button/RemoveButton.java index 7e87921..e4e7f30 100644 --- a/src/main/java/com/almuramc/aqualock/bukkit/display/button/RemoveButton.java +++ b/src/main/java/com/almuramc/aqualock...
true
true
public void onButtonClick(ButtonClickEvent event) { final CachedGeoPopup panel = (CachedGeoPopup) event.getScreen(); String password = ""; for (Widget widget : panel.getAttachedWidgets()) { if (widget instanceof PasswordField) { password = ((PasswordField) widget).getText(); } } if (LockUtil.unlock...
public void onButtonClick(ButtonClickEvent event) { final CachedGeoPopup panel = (CachedGeoPopup) event.getScreen(); String password = ""; for (Widget widget : panel.getAttachedWidgets()) { if (widget instanceof PasswordField) { password = ((PasswordField) widget).getText(); } } if (LockUtil.unlock...
diff --git a/src/main/java/org/wiztools/restclient/xml/XMLUtil.java b/src/main/java/org/wiztools/restclient/xml/XMLUtil.java index 6ca16dc..7a8cccb 100644 --- a/src/main/java/org/wiztools/restclient/xml/XMLUtil.java +++ b/src/main/java/org/wiztools/restclient/xml/XMLUtil.java @@ -1,604 +1,604 @@ package org.wiztools.r...
true
true
public static Document request2XML(final RequestBean bean) throws XMLException { try{ Document xmldoc = null; DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); DOMImplemen...
public static Document request2XML(final RequestBean bean) throws XMLException { try{ Document xmldoc = null; DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); DOMImplemen...
diff --git a/cycle/src/test/java/com/camunda/fox/cycle/connector/AbstractConnectorTestBase.java b/cycle/src/test/java/com/camunda/fox/cycle/connector/AbstractConnectorTestBase.java index 9092cc150..030f634ba 100644 --- a/cycle/src/test/java/com/camunda/fox/cycle/connector/AbstractConnectorTestBase.java +++ b/cycle/src/...
true
true
public void shouldUpdateSingleFileContents() throws Exception { // given Connector connector = getConnector(); InputStream originalInputStream = null; InputStream nodeInputStream = null; Date now = new Date(); try { originalInputStream = getDiagramResourceAsStream("collab...
public void shouldUpdateSingleFileContents() throws Exception { // given Connector connector = getConnector(); InputStream originalInputStream = null; InputStream nodeInputStream = null; Date now = new Date(); try { originalInputStream = getDiagramResourceAsStream("collab...
diff --git a/SeriesGuide/src/com/battlelancer/seriesguide/ui/EpisodeDetailsFragment.java b/SeriesGuide/src/com/battlelancer/seriesguide/ui/EpisodeDetailsFragment.java index b7b4c6f27..2884bb93b 100644 --- a/SeriesGuide/src/com/battlelancer/seriesguide/ui/EpisodeDetailsFragment.java +++ b/SeriesGuide/src/com/battlelance...
true
true
public void bindView(View view, Context context, Cursor cursor) { mShowId = cursor.getInt(DetailsQuery.REF_SHOW_ID); mSeasonNumber = cursor.getInt(DetailsQuery.SEASON); mEpisodeNumber = cursor.getInt(DetailsQuery.NUMBER); final String showTitle = cursor.getString(...
public void bindView(View view, Context context, Cursor cursor) { mShowId = cursor.getInt(DetailsQuery.REF_SHOW_ID); mSeasonNumber = cursor.getInt(DetailsQuery.SEASON); mEpisodeNumber = cursor.getInt(DetailsQuery.NUMBER); final String showTitle = cursor.getString(...
diff --git a/source/src/main/java/com/redcats/tst/database/DatabaseVersioningService.java b/source/src/main/java/com/redcats/tst/database/DatabaseVersioningService.java index 8317f2c5b..0e111c6c0 100644 --- a/source/src/main/java/com/redcats/tst/database/DatabaseVersioningService.java +++ b/source/src/main/java/com/red...
true
true
public ArrayList<String> getSQLScript() { // Temporary string that will store the SQL Command before putting in the array. StringBuilder SQLS; // Full script that create the cerberus database. ArrayList<String> SQLInstruction; // Start to build the SQL Script here. S...
public ArrayList<String> getSQLScript() { // Temporary string that will store the SQL Command before putting in the array. StringBuilder SQLS; // Full script that create the cerberus database. ArrayList<String> SQLInstruction; // Start to build the SQL Script here. S...
diff --git a/src/gwt/src/org/rstudio/studio/client/workbench/prefs/views/GeneralPreferencesPane.java b/src/gwt/src/org/rstudio/studio/client/workbench/prefs/views/GeneralPreferencesPane.java index 23773af8ae..fc1464a924 100644 --- a/src/gwt/src/org/rstudio/studio/client/workbench/prefs/views/GeneralPreferencesPane.java...
true
true
public GeneralPreferencesPane(RemoteFileSystemContext fsContext, FileDialogs fileDialogs, UIPrefs prefs, Session session, final GlobalDisplay globalDisplay, ...
public GeneralPreferencesPane(RemoteFileSystemContext fsContext, FileDialogs fileDialogs, UIPrefs prefs, Session session, final GlobalDisplay globalDisplay, ...