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/telnet/CommandRecall.java b/src/telnet/CommandRecall.java index de6ae3c..5f92870 100644 --- a/src/telnet/CommandRecall.java +++ b/src/telnet/CommandRecall.java @@ -1,32 +1,32 @@ package telnet; import java.util.ArrayList; public class CommandRecall { private ArrayList<String> cmds = new Arra...
false
true
public void add(String cmd) { if (cmd != null && !cmd.equals("") && (cmds.size() == 0 || !cmds.get(cmds.size() - 1).equals(cmd))) { cmds.add(cmd); pos = cmds.size(); } }
public void add(String cmd) { if (cmd != null && !cmd.equals("") && (cmds.size() == 0 || !cmds.get(cmds.size() - 1).equals(cmd))) { cmds.add(cmd); } pos = cmds.size(); }
diff --git a/common/plugins/eu.esdihumboldt.hale.common.instance/src/eu/esdihumboldt/hale/common/instance/model/impl/DefaultGroup.java b/common/plugins/eu.esdihumboldt.hale.common.instance/src/eu/esdihumboldt/hale/common/instance/model/impl/DefaultGroup.java index 819ba6cb7..2e149e982 100644 --- a/common/plugins/eu.esd...
true
true
private void setPropertyCopy(QName propertyName, Object... values) { properties.replaceValues(propertyName, Collections2.transform(Arrays.asList(values), new Function<Object, Object>() { @Override public Object apply(Object input) { /* * If the input is a Group/Instance. This is to preve...
private void setPropertyCopy(QName propertyName, Object... values) { properties.replaceValues(propertyName, Collections2.transform(Arrays.asList(values), new Function<Object, Object>() { @Override public Object apply(Object input) { /* * If the input is a Group/Instance. This is to preve...
diff --git a/core/src/main/java/org/apache/ftpserver/listener/nio/NioListener.java b/core/src/main/java/org/apache/ftpserver/listener/nio/NioListener.java index 1da6149d..d22a7cd9 100644 --- a/core/src/main/java/org/apache/ftpserver/listener/nio/NioListener.java +++ b/core/src/main/java/org/apache/ftpserver/listener/ni...
false
true
public void start(FtpServerContext context) throws Exception { this.context = context; acceptor = new NioSocketAcceptor(Runtime.getRuntime().availableProcessors()); if(getServerAddress() != null) { address = new InetSocketAddress(getServerAddress(), get...
public void start(FtpServerContext context) throws Exception { this.context = context; acceptor = new NioSocketAcceptor(Runtime.getRuntime().availableProcessors()); if(getServerAddress() != null) { address = new InetSocketAddress(getServerAddress(), get...
diff --git a/src/org/ibex/nestedvm/ClassFileCompiler.java b/src/org/ibex/nestedvm/ClassFileCompiler.java index bcd069e..0092c0f 100644 --- a/src/org/ibex/nestedvm/ClassFileCompiler.java +++ b/src/org/ibex/nestedvm/ClassFileCompiler.java @@ -1,2182 +1,2182 @@ package org.ibex.nestedvm; import java.io.*; import java...
false
true
protected void _go() throws Exn, IOException { if(lessConstants) throw new Exn("ClassFileCompiler doesn't support -o lessconstants"); if(!pruneCases) throw new Exn("-o prunecases MUST be enabled for ClassFileCompiler"); // Class cl = new ClassGen(fullClassName,runtimeClass,source,AC...
protected void _go() throws Exn, IOException { if(lessConstants) throw new Exn("ClassFileCompiler doesn't support -o lessconstants"); if(!pruneCases) throw new Exn("-o prunecases MUST be enabled for ClassFileCompiler"); // Class cl = new ClassGen(fullClassName,runtimeClass,source,AC...
diff --git a/JodaTime/src/java/org/joda/time/format/AbstractDateTimeFormatter.java b/JodaTime/src/java/org/joda/time/format/AbstractDateTimeFormatter.java index cd8915ef..7f6e3097 100644 --- a/JodaTime/src/java/org/joda/time/format/AbstractDateTimeFormatter.java +++ b/JodaTime/src/java/org/joda/time/format/AbstractDate...
true
true
static String createErrorMessage(final String text, final int errorPos) { int sampleLen = errorPos + 20; String sampleText; if (text.length() <= sampleLen) { sampleText = text; } else { sampleText = text.substring(0, sampleLen).concat("..."); } ...
static String createErrorMessage(final String text, final int errorPos) { int sampleLen = errorPos + 20; String sampleText; if (text.length() <= sampleLen + 3) { sampleText = text; } else { sampleText = text.substring(0, sampleLen).concat("..."); } ...
diff --git a/jbpm-bpmn2/src/main/java/org/jbpm/bpmn2/xml/ComplexGatewayHandler.java b/jbpm-bpmn2/src/main/java/org/jbpm/bpmn2/xml/ComplexGatewayHandler.java index 61056183a..4055c897b 100644 --- a/jbpm-bpmn2/src/main/java/org/jbpm/bpmn2/xml/ComplexGatewayHandler.java +++ b/jbpm-bpmn2/src/main/java/org/jbpm/bpmn2/xml/Co...
false
true
protected Node createNode(Attributes attrs) { final String type = attrs.getValue("gatewayDirection"); if ("converging".equals(type)) { Join join = new Join(); join.setType(Join.TYPE_UNDEFINED); return join; } else if ("diverging".equals(type)) { Split spli...
protected Node createNode(Attributes attrs) { final String type = attrs.getValue("gatewayDirection"); if ("Converging".equals(type)) { Join join = new Join(); join.setType(Join.TYPE_UNDEFINED); return join; } else if ("Diverging".equals(type)) { Split spli...
diff --git a/src/webapp/src/java/org/wyona/yanel/servlet/HeartbeatJob.java b/src/webapp/src/java/org/wyona/yanel/servlet/HeartbeatJob.java index 034c8c5b8..c165c04c0 100644 --- a/src/webapp/src/java/org/wyona/yanel/servlet/HeartbeatJob.java +++ b/src/webapp/src/java/org/wyona/yanel/servlet/HeartbeatJob.java @@ -1,22 +1...
true
true
public void execute(JobExecutionContext context) throws JobExecutionException { log.warn("DEBUG: Heartbeat: " + new java.util.Date()); }
public void execute(JobExecutionContext context) throws JobExecutionException { log.info("Heartbeat: " + new java.util.Date()); // TODO: Show statistics, e.g. uptime, etc. }
diff --git a/tests-src/net/grinder/communication/TestMessageQueue.java b/tests-src/net/grinder/communication/TestMessageQueue.java index b1c2495c..1851cdac 100755 --- a/tests-src/net/grinder/communication/TestMessageQueue.java +++ b/tests-src/net/grinder/communication/TestMessageQueue.java @@ -1,288 +1,288 @@ // Copyr...
true
true
public void testExceptionPropagation() throws Exception { // m_queue does not allow exceptions to be queued. try { m_queue.queue(new CommunicationException("")); fail("Expected a CommunicationException"); } catch (RuntimeException e) { } final MessageQueue exceptionQueue = new MessageQueue(true...
public void testExceptionPropagation() throws Exception { // m_queue does not allow exceptions to be queued. try { m_queue.queue(new CommunicationException("")); fail("Expected a CommunicationException"); } catch (RuntimeException e) { } final MessageQueue exceptionQueue = new MessageQueue(true...
diff --git a/org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java b/org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java index 591111a4a..0ddba6b0a 100644 --- a/org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java +++ ...
false
true
public boolean processFile(IFile file) { try { if (!fCollector.acceptFile(file) || fMatcher == null) { return true; } IDocument document= getOpenDocument(file); if (document != null) { DocumentCharSequence documentCharSequence= new DocumentCharSequence(document); // ...
public boolean processFile(IFile file) { try { if (!fCollector.acceptFile(file) || fMatcher == null) { return true; } IDocument document= getOpenDocument(file); if (document != null) { DocumentCharSequence documentCharSequence= new DocumentCharSequence(document); // ...
diff --git a/src/main/java/com/github/kpacha/jkata/potter/Potter.java b/src/main/java/com/github/kpacha/jkata/potter/Potter.java index c9c5ee2..8a76ad4 100644 --- a/src/main/java/com/github/kpacha/jkata/potter/Potter.java +++ b/src/main/java/com/github/kpacha/jkata/potter/Potter.java @@ -1,12 +1,14 @@ package com.gith...
true
true
public static double priceFor(int items) { if (items == 2) return 8 * 2 * 0.95; if (items == 1) return 8; return 0; }
public static double priceFor(int items) { if (items == 3) return 8 * 3 * 0.90; if (items == 2) return 8 * 2 * 0.95; if (items == 1) return 8; return 0; }
diff --git a/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/SyncUsers.java b/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/SyncUsers.java index f17cc2eb..0d076b4f 100644 --- a/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/SyncUsers.java +++ b/expenditure-tracking/...
true
true
public static void syncData() throws IOException, SQLException { final Connection connection = Transaction.getCurrentJdbcConnection(); Statement statementQuery = null; ResultSet resultSetQuery = null; try { statementQuery = connection.createStatement(); resultSetQuery = statementQuery.executeQuery("s...
public static void syncData() throws IOException, SQLException { final Connection connection = Transaction.getCurrentJdbcConnection(); Statement statementQuery = null; ResultSet resultSetQuery = null; try { statementQuery = connection.createStatement(); resultSetQuery = statementQuery.executeQuery("s...
diff --git a/Pixokalypse-Prototypes/src/com/we/PixokalypsePrototypes/test/Map.java b/Pixokalypse-Prototypes/src/com/we/PixokalypsePrototypes/test/Map.java index aaa766f..eeb2d66 100644 --- a/Pixokalypse-Prototypes/src/com/we/PixokalypsePrototypes/test/Map.java +++ b/Pixokalypse-Prototypes/src/com/we/PixokalypsePrototyp...
true
true
private void fixStreets() { for(int y = 1; y < mapSize-1; y++){ for(int x = 1; x < mapSize-1; x++){ if(map[x][y].fieldCategory == FieldCategory.STREET && //1 map[x+1][y].fieldCategory == FieldCategory.STREET && //2 map[x+1][y+1].fieldCategory == FieldCategory.STREET && //3 map[x][y+1].f...
private void fixStreets() { for(int y = 1; y < mapSize-1; y++){ for(int x = 1; x < mapSize-1; x++){ if(map[x][y].fieldCategory == FieldCategory.STREET && //1 map[x+1][y].fieldCategory == FieldCategory.STREET && //2 map[x+1][y+1].fieldCategory == FieldCategory.STREET && //3 map[x][y+1].f...
diff --git a/project2/src/hmm/ForwardAlgorithm.java b/project2/src/hmm/ForwardAlgorithm.java index 30bf3e8..0900262 100644 --- a/project2/src/hmm/ForwardAlgorithm.java +++ b/project2/src/hmm/ForwardAlgorithm.java @@ -1,75 +1,73 @@ package hmm; import java.util.ArrayList; import java.util.HashMap; import java.util...
false
true
public double getV(int index, State qj) { assert(index >= 1); assert(index-1 < outputSencence.size()); double cachedValue = checkCache(index, qj); if (cachedValue != -1) return cachedValue; if (index == 1) { double probability; probability = stateCollection.startState().nextStateProbabil...
public double getAlpha(int index, State qj) { assert(index >= 1); assert(index-1 < outputSencence.size()); double cachedValue = checkCache(index, qj); if (cachedValue != -1) return cachedValue; if (index == 1) { double probability; probability = stateCollection.startState().nextStateProb...
diff --git a/src/plugins/XMLSpider/XMLSpider.java b/src/plugins/XMLSpider/XMLSpider.java index b7ec085..f85349e 100644 --- a/src/plugins/XMLSpider/XMLSpider.java +++ b/src/plugins/XMLSpider/XMLSpider.java @@ -1,806 +1,806 @@ /* This code is part of Freenet. It is distributed under the GNU General * Public License, v...
true
true
protected void onSuccess(FetchResult result, ClientGetter state, Page page) { synchronized (this) { if (stopped) return; } FreenetURI uri = state.getURI(); ClientMetadata cm = result.getMetadata(); Bucket data = result.asBucket(); String mimeType = cm.getMIMEType(); boolean dbTransaction...
protected void onSuccess(FetchResult result, ClientGetter state, Page page) { synchronized (this) { if (stopped) return; } FreenetURI uri = state.getURI(); ClientMetadata cm = result.getMetadata(); Bucket data = result.asBucket(); String mimeType = cm.getMIMEType(); boolean dbTransaction...
diff --git a/library/src/com/handmark/pulltorefresh/library/internal/FlipLoadingLayout.java b/library/src/com/handmark/pulltorefresh/library/internal/FlipLoadingLayout.java index 688e4e0..fc257fa 100644 --- a/library/src/com/handmark/pulltorefresh/library/internal/FlipLoadingLayout.java +++ b/library/src/com/handmark/p...
true
true
protected void onLoadingDrawableSet(Drawable imageDrawable) { if (null != imageDrawable) { final int dHeight = imageDrawable.getIntrinsicHeight(); final int dWidth = imageDrawable.getIntrinsicWidth(); /** * We need to set the width/height of the ImageView so that it is * square with each side the s...
protected void onLoadingDrawableSet(Drawable imageDrawable) { if (null != imageDrawable) { final int dHeight = imageDrawable.getIntrinsicHeight(); final int dWidth = imageDrawable.getIntrinsicWidth(); /** * We need to set the width/height of the ImageView so that it is * square with each side the s...
diff --git a/ev/util/debian/Main.java b/ev/util/debian/Main.java index 24577ad1..6bea964b 100644 --- a/ev/util/debian/Main.java +++ b/ev/util/debian/Main.java @@ -1,444 +1,445 @@ /*** * Copyright (C) 2010 Johan Henriksson * This code is under the Endrov / BSD license. See www.endrov.net * for the full text and h...
false
true
public static void main(String[] args) { try { File zip=new File("../ev081225.zip"); if(args.length==1) zip=new File(args[0]); else { System.out.println("Argument: zip-file of release"); System.exit(1); } File dPkg=new File("/tmp/endrov"); File dUsr=new File(dPkg,"...
public static void main(String[] args) { try { File zip=null; if(args.length==1) zip=new File(args[0]); else { System.out.println("Argument: zip-file of release"); System.exit(1); } File dPkg=new File("/tmp/endrov"); File dUsr=new File(dPkg,"usr"); File dEtc=new...
diff --git a/marid/src/java/com/ifountain/opsgenie/client/marid/http/action/ScriptAction.java b/marid/src/java/com/ifountain/opsgenie/client/marid/http/action/ScriptAction.java index 1182c26..9e17c0d 100644 --- a/marid/src/java/com/ifountain/opsgenie/client/marid/http/action/ScriptAction.java +++ b/marid/src/java/com/i...
true
true
public HTTPResponse doExecute(HTTPRequest request) throws Exception { ScriptResponseVariable scriptResponseVariable = new ScriptResponseVariable(); String script = request.getParameter(OpsgenieClientApplicationConstants.Marid.SCRIPT_NAME_PARAMETER); Map<String, Object> params = new HashMap<S...
public HTTPResponse doExecute(HTTPRequest request) throws Exception { ScriptResponseVariable scriptResponseVariable = new ScriptResponseVariable(); String script = request.getParameter(OpsgenieClientApplicationConstants.Marid.SCRIPT_NAME_PARAMETER); Map<String, Object> params = new HashMap<S...
diff --git a/src/com/android/phone/CallFeaturesSetting.java b/src/com/android/phone/CallFeaturesSetting.java index fcd895fb..2f6976b5 100644 --- a/src/com/android/phone/CallFeaturesSetting.java +++ b/src/com/android/phone/CallFeaturesSetting.java @@ -1,1731 +1,1737 @@ /* * Copyright (C) 2008 The Android Open Source ...
false
true
protected void onCreate(Bundle icicle) { super.onCreate(icicle); if (DBG) log("Creating activity"); mPhone = PhoneFactory.getDefaultPhone(); addPreferencesFromResource(R.xml.call_feature_setting); mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); ...
protected void onCreate(Bundle icicle) { super.onCreate(icicle); if (DBG) log("Creating activity"); mPhone = PhoneFactory.getDefaultPhone(); addPreferencesFromResource(R.xml.call_feature_setting); mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); ...
diff --git a/src/com/googlecode/gitst/fastimport/FastImport.java b/src/com/googlecode/gitst/fastimport/FastImport.java index 893091d..2381ac0 100644 --- a/src/com/googlecode/gitst/fastimport/FastImport.java +++ b/src/com/googlecode/gitst/fastimport/FastImport.java @@ -1,544 +1,545 @@ package com.googlecode.gitst.fasti...
false
true
private void load(final ItemFilter filter, final ConcurrentMap<CommitId, Commit> commits, final OLEDate endDate, final Folder folder, final ExecutorService threadPool, final ProgressBar pb) { final ItemList files = folder.getList("File"); final ItemList folders = ...
private void load(final ItemFilter filter, final ConcurrentMap<CommitId, Commit> commits, final OLEDate endDate, final Folder folder, final ExecutorService threadPool, final ProgressBar pb) { final ItemList files = folder.getList("File"); final ItemList folders = ...
diff --git a/current/Challenge.java b/current/Challenge.java index 8f2607d..59e910a 100644 --- a/current/Challenge.java +++ b/current/Challenge.java @@ -1,255 +1,255 @@ import java.awt.Polygon; import java.awt.Rectangle; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Collection...
true
true
public static Set<Set<Point>> getEnclosures(Board b) { SortedSet<Point> allWalls = getWallParticles(b); SortedSet<Point> walls = new TreeSet<Point>(allWalls); HashSet<Set<Point>> enclosures = new HashSet<Set<Point>>(); // Check if there are walls, then see if those walls make cages if(walls.size() > 3) { ...
public static Set<Set<Point>> getEnclosures(Board b) { SortedSet<Point> allWalls = getWallParticles(b); SortedSet<Point> walls = Collections.synchronizedSortedSet(new TreeSet<Point>(allWalls)); HashSet<Set<Point>> enclosures = new HashSet<Set<Point>>(); // Check if there are walls, then see if those walls make...
diff --git a/src/main/java/org/basex/server/QueryListener.java b/src/main/java/org/basex/server/QueryListener.java index 30a82f8a0..b330d17f1 100644 --- a/src/main/java/org/basex/server/QueryListener.java +++ b/src/main/java/org/basex/server/QueryListener.java @@ -1,200 +1,201 @@ package org.basex.server; import st...
false
true
void execute(final boolean iter, final OutputStream out, final boolean enc, final boolean full) throws IOException { check(); try { // parses the query init(); try { // registers the process ctx.register(qp); // create serializer final Iter ir = qp.ite...
void execute(final boolean iter, final OutputStream out, final boolean enc, final boolean full) throws IOException { check(); boolean init = false; try { // parses the query init(); try { // registers the process ctx.register(qp); init = true; // c...
diff --git a/srcj/com/sun/electric/tool/user/menus/MenuCommands.java b/srcj/com/sun/electric/tool/user/menus/MenuCommands.java index 2933ecd0c..e30a73f36 100755 --- a/srcj/com/sun/electric/tool/user/menus/MenuCommands.java +++ b/srcj/com/sun/electric/tool/user/menus/MenuCommands.java @@ -1,149 +1,155 @@ /* -*- tab-wid...
true
true
public static MenuBar createMenuBar() { // create the menu bar MenuBar menuBar = new MenuBar(); FileMenu.addFileMenu(menuBar); EditMenu.addEditMenu(menuBar); CellMenu.addCellMenu(menuBar); ExportMenu.addExportMenu(menuBar); ViewMenu.addViewMenu(menuBar); WindowMenu...
public static MenuBar createMenuBar() { // create the menu bar MenuBar menuBar = new MenuBar(); FileMenu.addFileMenu(menuBar); EditMenu.addEditMenu(menuBar); CellMenu.addCellMenu(menuBar); ExportMenu.addExportMenu(menuBar); ViewMenu.addViewMenu(menuBar); WindowMenu...
diff --git a/src/test/java/com/threewks/thundr/json/DateTimeTypeConvertorTest.java b/src/test/java/com/threewks/thundr/json/DateTimeTypeConvertorTest.java index 1a916bb..485c22d 100644 --- a/src/test/java/com/threewks/thundr/json/DateTimeTypeConvertorTest.java +++ b/src/test/java/com/threewks/thundr/json/DateTimeTypeCo...
true
true
public void shouldDeserializeDateTime() { GsonBuilder builder = new GsonBuilder(); builder.registerTypeAdapter(DateTime.class, new DateTimeTypeConvertor()); Gson gson = builder.create(); DateTime result = gson.fromJson("\"2010-01-01T12:00:00.000+11:00\"", DateTime.class); DateTime srcInSydney = new DateTim...
public void shouldDeserializeDateTime() { GsonBuilder builder = new GsonBuilder(); builder.registerTypeAdapter(DateTime.class, new DateTimeTypeConvertor()); Gson gson = builder.create(); DateTime result = gson.fromJson("\"2010-01-01T12:00:00.000+11:00\"", DateTime.class); DateTime srcInSydney = new DateTim...
diff --git a/WPS/src/de/rwth/ti/common/WPSQuadKnot.java b/WPS/src/de/rwth/ti/common/WPSQuadKnot.java index b904f0c..83f8b28 100644 --- a/WPS/src/de/rwth/ti/common/WPSQuadKnot.java +++ b/WPS/src/de/rwth/ti/common/WPSQuadKnot.java @@ -1,74 +1,74 @@ package de.rwth.ti.common; import de.rwth.ti.db.MeasurePoint; publ...
false
true
public void addMPoint(MeasurePoint mp){ if(tl==null && value == null){ value = mp; }else{ tl = new WPSQuadKnot(xMin, (xMax+xMin)/2, yMin, (yMin+yMax)/2); tr = new WPSQuadKnot((xMax+xMin)/2, xMax, yMin, (yMin+yMax)/2); bl = new WPSQuadKnot(xMin, (xMax+xMin)/2, (yMin+yMax)/2, yMax); br = new WPSQuadKn...
public void addMPoint(MeasurePoint mp){ if(tl==null && value == null){ value = mp; }else{ tl = new WPSQuadKnot(xMin, (xMax+xMin)/2, yMin, (yMin+yMax)/2); tr = new WPSQuadKnot((xMax+xMin)/2, xMax, yMin, (yMin+yMax)/2); bl = new WPSQuadKnot(xMin, (xMax+xMin)/2, (yMin+yMax)/2, yMax); br = new WPSQuadKn...
diff --git a/org.cloudsmith.geppetto.pp.dsl.ui/src/org/cloudsmith/geppetto/pp/dsl/ui/builder/PPModulefileBuilder.java b/org.cloudsmith.geppetto.pp.dsl.ui/src/org/cloudsmith/geppetto/pp/dsl/ui/builder/PPModulefileBuilder.java index 060ef8e6..f1c82139 100644 --- a/org.cloudsmith.geppetto.pp.dsl.ui/src/org/cloudsmith/gepp...
true
true
private void syncModulefileAndReferences(final IProgressMonitor monitor) { IProject project = getProject(); if(!isAccessiblePuppetProject(project)) return; if(tracer.isTracing()) tracer.trace("Syncing modulefile with project"); File projectDir = project.getLocation().toFile(); if(!forge.hasModuleMeta...
private void syncModulefileAndReferences(final IProgressMonitor monitor) { IProject project = getProject(); if(!isAccessiblePuppetProject(project)) return; if(tracer.isTracing()) tracer.trace("Syncing modulefile with project"); File projectDir = project.getLocation().toFile(); if(!forge.hasModuleMeta...
diff --git a/Ocaml/src/ocaml/debugging/views/OcamlCallStackView.java b/Ocaml/src/ocaml/debugging/views/OcamlCallStackView.java index cab2795..13430d4 100644 --- a/Ocaml/src/ocaml/debugging/views/OcamlCallStackView.java +++ b/Ocaml/src/ocaml/debugging/views/OcamlCallStackView.java @@ -1,82 +1,81 @@ package ocaml.debugg...
false
true
public void createPartControl(Composite parent) { composite = new Composite(parent, SWT.NONE); composite.addControlListener(new ControlAdapter() { @Override public void controlResized(ControlEvent e) { resized(); } }); list = new List(composite, SWT.SINGLE | SWT.V_SCROLL); // TRUNG: add hyper-...
public void createPartControl(Composite parent) { composite = new Composite(parent, SWT.NONE); composite.addControlListener(new ControlAdapter() { @Override public void controlResized(ControlEvent e) { resized(); } }); list = new List(composite, SWT.SINGLE | SWT.V_SCROLL); // TRUNG: add hyper-...
diff --git a/java/de/dfki/lt/mary/modules/MaryXMLToMbrola.java b/java/de/dfki/lt/mary/modules/MaryXMLToMbrola.java index 1d8da86a5..4ec8f9871 100755 --- a/java/de/dfki/lt/mary/modules/MaryXMLToMbrola.java +++ b/java/de/dfki/lt/mary/modules/MaryXMLToMbrola.java @@ -1,236 +1,244 @@ /** * Copyright 2000-2006 DFKI GmbH....
true
true
public String convertToMbrola(List phonemesAndBoundaries, Voice voice) { StringBuffer buf = new StringBuffer(); Element element = null; Iterator it = phonemesAndBoundaries.iterator(); // In order to test for missing diphones, we need to // look at two subsequent phonemes....
public String convertToMbrola(List phonemesAndBoundaries, Voice voice) { StringBuffer buf = new StringBuffer(); Element element = null; Iterator it = phonemesAndBoundaries.iterator(); // In order to test for missing diphones, we need to // look at two subsequent phonemes....
diff --git a/src/main/java/com/jayway/maven/plugins/android/phase05compile/NdkBuildMojo.java b/src/main/java/com/jayway/maven/plugins/android/phase05compile/NdkBuildMojo.java index 34bc8bcf..00784469 100644 --- a/src/main/java/com/jayway/maven/plugins/android/phase05compile/NdkBuildMojo.java +++ b/src/main/java/com/jay...
true
true
public void execute() throws MojoExecutionException, MojoFailureException { // This points File nativeLibDirectory = new File( nativeLibrariesDirectory , ndkArchitecture ); final boolean libsDirectoryExists = nativeLibDirectory.exists(); File directoryToRemove = nativeLibDirector...
public void execute() throws MojoExecutionException, MojoFailureException { // This points File nativeLibDirectory = new File( nativeLibrariesDirectory , ndkArchitecture ); final boolean libsDirectoryExists = nativeLibDirectory.exists(); File directoryToRemove = nativeLibDirector...
diff --git a/jslint4java-ant/src/main/java/com/googlecode/jslint4java/ant/PlainResultFormatter.java b/jslint4java-ant/src/main/java/com/googlecode/jslint4java/ant/PlainResultFormatter.java index d7808fd..081c23d 100644 --- a/jslint4java-ant/src/main/java/com/googlecode/jslint4java/ant/PlainResultFormatter.java +++ b/js...
true
true
public void output(String name, String fullPath, List<Issue> issues) { if (issues.size() == 0) return; for (Issue issue : issues) { w.println(issue.toString()); w.println(issue.getEvidence()); w.println(spaces(issue.getCharacter()) + "^"); } ...
public void output(String name, String fullPath, List<Issue> issues) { if (issues.size() == 0) return; for (Issue issue : issues) { w.println(issue.toString()); w.println(issue.getEvidence()); // character is now one-based. w.println(space...
diff --git a/api/src/main/java/org/openmrs/module/spreadsheetimport/DatabaseBackend.java b/api/src/main/java/org/openmrs/module/spreadsheetimport/DatabaseBackend.java index 6cd01e1..0bd1bc2 100644 --- a/api/src/main/java/org/openmrs/module/spreadsheetimport/DatabaseBackend.java +++ b/api/src/main/java/org/openmrs/modul...
true
true
public static String importData(Map<UniqueImport, Set<SpreadsheetImportTemplateColumn>> rowData, boolean rollbackTransaction) throws Exception { Connection conn = null; Statement s = null; Exception exception = null; String sql = null; String encounterId = null; try { ...
public static String importData(Map<UniqueImport, Set<SpreadsheetImportTemplateColumn>> rowData, boolean rollbackTransaction) throws Exception { Connection conn = null; Statement s = null; Exception exception = null; String sql = null; String encounterId = null; try { ...
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/performance/PerfBreakpointTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/performance/PerfBreakpointTests.java index 91df56150..63af460f8 100644 --- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/perfo...
true
true
public void testBreakpointRemoval() throws Exception { tagAsSummary("Remove Line Breakpoints", Dimension.ELAPSED_PROCESS); String typeName = "LargeSourceFile"; IResource resource = getBreakpointResource(typeName); IJavaLineBreakpoint bp = createLineBreakpoint(14, typeName); ...
public void testBreakpointRemoval() throws Exception { setDegradationComment("This degradation is not noticeable/important to the end user."); String typeName = "LargeSourceFile"; IResource resource = getBreakpointResource(typeName); IJavaLineBreakpoint bp = createLineBreakpoint(14, ty...
diff --git a/src/CEF/RenderSystem.java b/src/CEF/RenderSystem.java index 71034a2..a8af0fa 100644 --- a/src/CEF/RenderSystem.java +++ b/src/CEF/RenderSystem.java @@ -1,274 +1,274 @@ package CEF; import logic.Engine; import static logic.level.Level.FOV; import CEF.Components.*; import CEF.Groups.*; import com...
false
true
public void draw(SpriteBatch batch) { this.process(); //temp variable name holders Renderable r; Entity e; GroupManager gm = this.world.getManager(GroupManager.class); TagManager tm = this.world.getManager(TagManager.class); ImmutableBag<Entity> bag; //we group the different parts to maxim...
public void draw(SpriteBatch batch) { this.process(); //temp variable name holders Renderable r; Entity e; GroupManager gm = this.world.getManager(GroupManager.class); TagManager tm = this.world.getManager(TagManager.class); ImmutableBag<Entity> bag; //we group the different parts to maxim...
diff --git a/src/com/android/contacts/interactions/ImportExportDialogFragment.java b/src/com/android/contacts/interactions/ImportExportDialogFragment.java index 2eedfb33f..7fdc47ed1 100644 --- a/src/com/android/contacts/interactions/ImportExportDialogFragment.java +++ b/src/com/android/contacts/interactions/ImportExpor...
true
true
public Dialog onCreateDialog(Bundle savedInstanceState) { // Wrap our context to inflate list items using the correct theme final Resources res = getActivity().getResources(); final LayoutInflater dialogInflater = (LayoutInflater)getActivity() .getSystemService(Context.LAYOUT...
public Dialog onCreateDialog(Bundle savedInstanceState) { // Wrap our context to inflate list items using the correct theme final Resources res = getActivity().getResources(); final LayoutInflater dialogInflater = (LayoutInflater)getActivity() .getSystemService(Context.LAYOUT...
diff --git a/test/Arrays.java b/test/Arrays.java index 27acd2e3..e00bbf56 100644 --- a/test/Arrays.java +++ b/test/Arrays.java @@ -1,98 +1,98 @@ public class Arrays { private static void expect(boolean v) { if (! v) throw new RuntimeException(); } public static void main(String[] args) { { int[] a...
true
true
public static void main(String[] args) { { int[] array = new int[0]; Exception exception = null; try { int x = array[0]; } catch (ArrayIndexOutOfBoundsException e) { exception = e; } expect(exception != null); } { int[] array = new int[0]; Exception ex...
public static void main(String[] args) { { int[] array = new int[0]; Exception exception = null; try { int x = array[0]; } catch (ArrayIndexOutOfBoundsException e) { exception = e; } expect(exception != null); } { int[] array = new int[0]; Exception ex...
diff --git a/src/java/com/eviware/soapui/impl/wadl/inference/support/InferredSchemaImpl.java b/src/java/com/eviware/soapui/impl/wadl/inference/support/InferredSchemaImpl.java index f0912dc46..bfd255aff 100644 --- a/src/java/com/eviware/soapui/impl/wadl/inference/support/InferredSchemaImpl.java +++ b/src/java/com/eviwar...
true
true
public SchemaTypeSystem getSchemaTypeSystem( SchemaTypeSystem sts ) { List<XmlObject> schemas = new ArrayList<XmlObject>(); try { for( String namespace : getNamespaces() ) { schemas.add( XmlObject.Factory.parse( getXsdForNamespace( namespace ).toString() ) ); } return XmlBeans.compileXsd( schema...
public SchemaTypeSystem getSchemaTypeSystem( SchemaTypeSystem sts ) { List<XmlObject> schemas = new ArrayList<XmlObject>(); try { for( String namespace : getNamespaces() ) { schemas.add( XmlObject.Factory.parse( getXsdForNamespace( namespace ).toString() ) ); } return XmlBeans.compileXsd( sts, s...
diff --git a/src/main/java/dao/CustomerDAO.java b/src/main/java/dao/CustomerDAO.java index 80e6542..ea42d5e 100644 --- a/src/main/java/dao/CustomerDAO.java +++ b/src/main/java/dao/CustomerDAO.java @@ -1,115 +1,115 @@ package dao; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedS...
true
true
synchronized public void editOrSaveCustomer(Customer customer) throws SQLException, ClassNotFoundException { Customer persistedCustomer = getCustomer(customer.getUsername()); if ( persistedCustomer != null){ PreparedStatement preparedStatement = getConnection().prepareStatement( UPDATE_BY_USERNAME); pre...
synchronized public void editOrSaveCustomer(Customer customer) throws SQLException, ClassNotFoundException { Customer persistedCustomer = getCustomer(customer.getUsername()); if ( persistedCustomer != null){ PreparedStatement preparedStatement = getConnection().prepareStatement( UPDATE_BY_USERNAME); pre...
diff --git a/test/com/labs/rpc/RemoteCallReturnTest.java b/test/com/labs/rpc/RemoteCallReturnTest.java index a73a7e0..7a32819 100644 --- a/test/com/labs/rpc/RemoteCallReturnTest.java +++ b/test/com/labs/rpc/RemoteCallReturnTest.java @@ -1,38 +1,38 @@ package com.labs.rpc; import org.json.*; import java.util.*; im...
false
true
public void testFromBytes() { RemoteCall rc = new RemoteCall("methodName"); assertEquals(rc.seq, 1); Object[] vals = new Object[]{2, 4.5, true, null, new Object[]{"1",1,false}, new JSONObject(), new JSONArray(), new ArrayList<String>(0), new RemoteException("test")}; for (Object val:vals) { try { Remote...
public void testFromBytes() { RemoteCall rc = new RemoteCall("methodName"); assertEquals(rc.getSeq(), 1); Object[] vals = new Object[]{2, 4.5, true, null, new Object[]{"1",1,false}, new JSONObject(), new JSONArray(), new ArrayList<String>(0), new RemoteException("test")}; for (Object val:vals) { try { R...
diff --git a/cli/src/main/java/com/vmware/bdd/cli/commands/ClusterCommands.java b/cli/src/main/java/com/vmware/bdd/cli/commands/ClusterCommands.java index f7f0b4a3..c9a8092d 100644 --- a/cli/src/main/java/com/vmware/bdd/cli/commands/ClusterCommands.java +++ b/cli/src/main/java/com/vmware/bdd/cli/commands/ClusterCommand...
false
true
public void createCluster( @CliOption(key = { "name" }, mandatory = true, help = "The cluster name") final String name, @CliOption(key = { "type" }, mandatory = false, help = "The cluster type is Hadoop or HBase") final String type, @CliOption(key = { "distro" }, mandatory = false, help = ...
public void createCluster( @CliOption(key = { "name" }, mandatory = true, help = "The cluster name") final String name, @CliOption(key = { "type" }, mandatory = false, help = "The cluster type is Hadoop or HBase") final String type, @CliOption(key = { "distro" }, mandatory = false, help = ...
diff --git a/src/main/java/org/motechproject/carereporting/indicator/DailyValueCalculator.java b/src/main/java/org/motechproject/carereporting/indicator/DailyValueCalculator.java index 24bf1d2..5a8a2f8 100644 --- a/src/main/java/org/motechproject/carereporting/indicator/DailyValueCalculator.java +++ b/src/main/java/org...
false
true
protected IndicatorValueEntity calculateIndicatorValueForArea(IndicatorEntity indicator, FrequencyEntity frequency, AreaEntity area, Date from, Date to) { BigDecimal numeratorValue = calculateDwQueryValue(indicator.getNumerator(), area, from, to); BigDecimal denominatorValue = BigDecimal.ZERO; ...
protected IndicatorValueEntity calculateIndicatorValueForArea(IndicatorEntity indicator, FrequencyEntity frequency, AreaEntity area, Date from, Date to) { BigDecimal numeratorValue = calculateDwQueryValue(indicator.getNumerator(), area, from, to); BigDecimal denominatorValue = BigDecimal.ZERO; ...
diff --git a/src/share/classes/com/sun/tools/javafx/antlr/JavafxSyntacticAnalysis.java b/src/share/classes/com/sun/tools/javafx/antlr/JavafxSyntacticAnalysis.java index 2fa9ce96e..6995a9303 100644 --- a/src/share/classes/com/sun/tools/javafx/antlr/JavafxSyntacticAnalysis.java +++ b/src/share/classes/com/sun/tools/javaf...
false
true
public JCCompilationUnit parse(CharSequence content) { JCCompilationUnit unit = null; String parserChoice = options.get("parser"); if (parserChoice == null) { parserChoice = "vn"; // default } if (parserChoice.equals("vn")) { // leave this default unti...
public JCCompilationUnit parse(CharSequence content) { JCCompilationUnit unit = null; String parserChoice = options.get("parser"); if (parserChoice == null) { parserChoice = "v2"; // default } if (parserChoice.equals("v2")) { // leave this default unti...
diff --git a/src/main/com/nacre/servlet/FormServlet.java b/src/main/com/nacre/servlet/FormServlet.java index 35666c1..8454b3c 100755 --- a/src/main/com/nacre/servlet/FormServlet.java +++ b/src/main/com/nacre/servlet/FormServlet.java @@ -1,57 +1,59 @@ package com.nacre.servlet; import java.io.IOException; import ja...
false
true
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); if ("true".equals(request.getParameter("reload"))) { System.out.println("RELOADING"); loadSchema(this.getClass().getResource(this.getInitParameter(XSD))); ...
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); if ("true".equals(request.getParameter("reload"))) { System.out.println("RELOADING"); loadSchema(this.getClass().getResource(this.getInitParameter(XSD))); ...
diff --git a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/modes/NormalMode.java b/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/modes/NormalMode.java index 210733de..d1ebea77 100644 --- a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/modes/NormalMode.java +++ b/net.sourcefo...
false
true
protected State<Command> buildInitialState() { final Command resumeInsertMode = new ChangeToInsertModeCommand( new MotionCommand(new GoToMarkMotion(false, CursorService.LAST_INSERT_MARK))); final Command visualMode = new ChangeModeCommand(VisualMode.NAME); final Comm...
protected State<Command> buildInitialState() { final Command resumeInsertMode = new ChangeToInsertModeCommand( new MotionCommand(new GoToMarkMotion(false, CursorService.LAST_INSERT_MARK))); final Command visualMode = new ChangeModeCommand(VisualMode.NAME); final Comm...
diff --git a/src/java/Indexer.java b/src/java/Indexer.java index 23a4dd9..75904bd 100644 --- a/src/java/Indexer.java +++ b/src/java/Indexer.java @@ -1,212 +1,212 @@ /* * Copyright 2010 Internet Archive * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in com...
true
true
public int run( String[] args ) throws Exception { if (args.length < 2) { System.err.println( "Indexer <output> <input>..." ); return 1; } JobConf conf = new JobConf( getConf(), Indexer.class); conf.setJobName("Indexer"); conf.setOutputKeyClass(Text.class); ...
public int run( String[] args ) throws Exception { if (args.length < 2) { System.err.println( "Indexer <output> <input>..." ); return 1; } JobConf conf = new JobConf( getConf(), Indexer.class); conf.setJobName("Indexer"); conf.setOutputKeyClass(Text.class); ...
diff --git a/src/me/libraryaddict/disguise/Commands/UndisguisePlayerCommand.java b/src/me/libraryaddict/disguise/Commands/UndisguisePlayerCommand.java index b73c5a0..d410fcd 100644 --- a/src/me/libraryaddict/disguise/Commands/UndisguisePlayerCommand.java +++ b/src/me/libraryaddict/disguise/Commands/UndisguisePlayerComm...
true
true
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { if (sender.hasPermission("libsdisguises.undisguiseothers")) { if (args.length > 0) { Player p = Bukkit.getPlayer(args[0]); if (p != null) { if (DisguiseA...
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { if (sender.hasPermission("libsdisguises.undisguiseplayer")) { if (args.length > 0) { Player p = Bukkit.getPlayer(args[0]); if (p != null) { if (DisguiseA...
diff --git a/jamwiki-web/src/main/java/org/jamwiki/search/SolrSearchEngine.java b/jamwiki-web/src/main/java/org/jamwiki/search/SolrSearchEngine.java index 970ac00f..319f305a 100644 --- a/jamwiki-web/src/main/java/org/jamwiki/search/SolrSearchEngine.java +++ b/jamwiki-web/src/main/java/org/jamwiki/search/SolrSearchEngin...
true
true
public void addToIndex(Topic topic) { if(topic.getTopicType() == TopicType.REDIRECT) { return; } try { SolrInputDocument doc = new SolrInputDocument(); doc.addField("id", genId(topic)); doc.addField("section", "wiki"); List<RecentChange> changes = WikiBase.getDataHandler().g...
public void addToIndex(Topic topic) { if(topic.getTopicType() == TopicType.REDIRECT) { return; } try { SolrInputDocument doc = new SolrInputDocument(); doc.addField("id", genId(topic)); doc.addField("section", "wiki"); List<RecentChange> changes = WikiBase.getDataHandler().g...
diff --git a/AndroidAsync/src/com/koushikdutta/async/AsyncSSLSocketWrapper.java b/AndroidAsync/src/com/koushikdutta/async/AsyncSSLSocketWrapper.java index 369c201..af76bce 100644 --- a/AndroidAsync/src/com/koushikdutta/async/AsyncSSLSocketWrapper.java +++ b/AndroidAsync/src/com/koushikdutta/async/AsyncSSLSocketWrapper....
true
true
public AsyncSSLSocketWrapper(AsyncSocket socket, String host, int port, SSLContext sslContext, TrustManager[] trustManagers, HostnameVerifier verifier, boolean clientMode) { mSocket = socket; hostnameVerifier = verifier; this.clientMode = clientMode; this.trustManagers = trustManager...
public AsyncSSLSocketWrapper(AsyncSocket socket, String host, int port, SSLContext sslContext, TrustManager[] trustManagers, HostnameVerifier verifier, boolean clientMode) { mSocket = socket; hostnameVerifier = verifier; this.clientMode = clientMode; this.trustManagers = trustManager...
diff --git a/CSipSimple/src/com/csipsimple/wizards/WizardUtils.java b/CSipSimple/src/com/csipsimple/wizards/WizardUtils.java index c528ff28..d166d4cb 100644 --- a/CSipSimple/src/com/csipsimple/wizards/WizardUtils.java +++ b/CSipSimple/src/com/csipsimple/wizards/WizardUtils.java @@ -1,498 +1,498 @@ /** * Copyright (C...
false
true
private static void initWizards() { WIZARDS_DICT = new HashMap<String, WizardInfo>(); //Generic WIZARDS_DICT.put("BASIC", new WizardInfo("BASIC", "Basic", R.drawable.ic_wizard_basic, 50, new Locale[] {}, true, false, Basic.class)); WIZARDS_DICT.put("ADVANCED", new WizardInfo("ADVANCED", "Adva...
private static void initWizards() { WIZARDS_DICT = new HashMap<String, WizardInfo>(); //Generic WIZARDS_DICT.put("BASIC", new WizardInfo("BASIC", "Basic", R.drawable.ic_wizard_basic, 50, new Locale[] {}, true, false, Basic.class)); WIZARDS_DICT.put("ADVANCED", new WizardInfo("ADVANCED", "Adva...
diff --git a/src/de/hotmail/gurkilein/bankcraft/MinecraftChatListener.java b/src/de/hotmail/gurkilein/bankcraft/MinecraftChatListener.java index 41c8d58..58fa0ca 100644 --- a/src/de/hotmail/gurkilein/bankcraft/MinecraftChatListener.java +++ b/src/de/hotmail/gurkilein/bankcraft/MinecraftChatListener.java @@ -1,69 +1,69 ...
true
true
public void onPlayerChat(AsyncPlayerChatEvent event) { if (!((bankcraft.getInteractionHandler().getChatSignMap().get(event.getPlayer()) == null) || (Integer)bankcraft.getInteractionHandler().getChatSignMap().get(event.getPlayer()) == 0)) { if (event.getMessage().toLowerCase().contains(bankcraft.getCo...
public void onPlayerChat(AsyncPlayerChatEvent event) { if (!((bankcraft.getInteractionHandler().getChatSignMap().get(event.getPlayer()) == null) || (Integer)bankcraft.getInteractionHandler().getChatSignMap().get(event.getPlayer()) == 0)) { if (event.getMessage().toLowerCase().contains(bankcraft.getCo...
diff --git a/question-reply/question-reply-war/src/main/java/com/silverpeas/questionReply/servlets/QuestionReplyRequestRouter.java b/question-reply/question-reply-war/src/main/java/com/silverpeas/questionReply/servlets/QuestionReplyRequestRouter.java index 4a5298145..35a6f5420 100644 --- a/question-reply/question-reply...
true
true
public String getDestination(String function, QuestionReplySessionController scc, HttpServletRequest request) { SilverTrace.info("questionReply", "QuestionReplyRequestRouter.getDestination()", "root.MSG_GEN_PARAM_VALUE", function); String destination; String flag = scc.getUserProfil(); S...
public String getDestination(String function, QuestionReplySessionController scc, HttpServletRequest request) { SilverTrace.info("questionReply", "QuestionReplyRequestRouter.getDestination()", "root.MSG_GEN_PARAM_VALUE", function); String destination; String flag = scc.getUserProfil(); S...
diff --git a/clinical-scenarios/src/main/java/org/mdpnp/clinicalscenarios/client/user/UserInfoSearchPanel.java b/clinical-scenarios/src/main/java/org/mdpnp/clinicalscenarios/client/user/UserInfoSearchPanel.java index 024d6be0..e1f06872 100644 --- a/clinical-scenarios/src/main/java/org/mdpnp/clinicalscenarios/client/use...
true
true
private void drawUsersList(final List<UserInfoProxy> response){ list.removeAllRows(); //HEADERS list.insertRow(0); list.getRowFormatter().addStyleName(0, "userListHeader"); //TODO Style this table for(int j = 0; j < headers.length; j++) { final int col = j; Label propLabel = new Label(headers[j]...
private void drawUsersList(final List<UserInfoProxy> response){ list.removeAllRows(); //HEADERS list.insertRow(0); list.getRowFormatter().addStyleName(0, "userListHeader"); //TODO Style this table for(int j = 0; j < headers.length; j++) { final int col = j; Label propLabel = new Label(headers[j]...
diff --git a/src/ucbang/gui/ClientGUI.java b/src/ucbang/gui/ClientGUI.java index 2daf501..685250d 100644 --- a/src/ucbang/gui/ClientGUI.java +++ b/src/ucbang/gui/ClientGUI.java @@ -1,297 +1,297 @@ package ucbang.gui; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Grap...
true
true
public int promptYesNo(String message, String title) { // I think it's visually more intuitive to have Yes on the left, but keep in // mind that this means 0 is yes and 1 is no! int r = -1; while (r == -1) { r = JOptionPane.showOptionDialog(this, message, title, JOptionPane.YES_NO_OPTION, JOptionPane.Q...
public int promptYesNo(String message, String title) { // I think it's visually more intuitive to have Yes on the left, but keep in // mind that this means 0 is yes and 1 is no! int r = -1; while (r == -1) { r = JOptionPane.showOptionDialog(this, message, title, JOptionPane.YES_NO_OPTION, JOptionPane.Q...
diff --git a/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/examples/ESBExampleTest.java b/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/examples/ESBExampleTest.java index d9fab4a..14459da 100644 --- a/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb...
false
true
protected void fixLibrary(String project, String lib) { SWTBotTree tree = projectExplorer.show().bot().tree(); SWTBotTreeItem proj = tree.select(project).getTreeItem(project); boolean fixed=false; for (SWTBotTreeItem item : proj.getItems()) { if (item.getText().startsWith(lib)) { ContextMenuHelper.prepa...
protected void fixLibrary(String project, String lib) { SWTBotTree tree = projectExplorer.show().bot().tree(); SWTBotTreeItem proj = tree.select(project).getTreeItem(project); boolean fixed=false; boolean found=false; for (SWTBotTreeItem item : proj.getItems()) { if (item.getText().startsWith(lib)) { ...
diff --git a/src/java/org/apache/fop/fo/properties/PropertyCache.java b/src/java/org/apache/fop/fo/properties/PropertyCache.java index 22f001a07..c1f9a985c 100644 --- a/src/java/org/apache/fop/fo/properties/PropertyCache.java +++ b/src/java/org/apache/fop/fo/properties/PropertyCache.java @@ -1,372 +1,374 @@ /* * Lic...
true
true
private final void rehash(int index) { CacheSegment seg = segments[index]; synchronized (seg) { if (index > 0) { /* need to recursively acquire locks on all segments */ rehash(index - 1); } else { /* double the amount o...
private final void rehash(int index) { CacheSegment seg = segments[index]; synchronized (seg) { if (index > 0) { /* need to recursively acquire locks on all segments */ rehash(index - 1); } else { /* double the amount o...
diff --git a/src/uk/me/parabola/mkgmap/combiners/TdbBuilder.java b/src/uk/me/parabola/mkgmap/combiners/TdbBuilder.java index 161c00ba..2965d6c5 100644 --- a/src/uk/me/parabola/mkgmap/combiners/TdbBuilder.java +++ b/src/uk/me/parabola/mkgmap/combiners/TdbBuilder.java @@ -1,265 +1,265 @@ /* * Copyright (C) 2007 Steve ...
false
true
private void addToOverviewMap(FileInfo finfo) { Area bounds = finfo.getBounds(); //System.out.printf("overview shift %d\n", overviewSource.getShift()); int overviewMask = ((1 << overviewSource.getShift()) - 1); //System.out.printf("mask %x\n", overviewMask); //System.out.println("overviewSource.getShift() =...
private void addToOverviewMap(FileInfo finfo) { Area bounds = finfo.getBounds(); //System.out.printf("overview shift %d\n", overviewSource.getShift()); int overviewMask = ((1 << overviewSource.getShift()) - 1); //System.out.printf("mask %x\n", overviewMask); //System.out.println("overviewSource.getShift() =...
diff --git a/src/nl/giantit/minecraft/GiantShop/core/Commands/buy.java b/src/nl/giantit/minecraft/GiantShop/core/Commands/buy.java index a4397a5..7ff01a4 100644 --- a/src/nl/giantit/minecraft/GiantShop/core/Commands/buy.java +++ b/src/nl/giantit/minecraft/GiantShop/core/Commands/buy.java @@ -1,197 +1,198 @@ package nl...
false
true
public static void buy(Player player, String[] args) { Heraut.savePlayer(player); if(perms.has(player, "giantshop.shop.buy")) { if(args.length >= 2) { int itemID; Integer itemType = -1; int quantity; if(!args[1].matches("[0-9]+:[0-9]+")) { try { itemID = Integer.parseInt(args[1]); ...
public static void buy(Player player, String[] args) { Heraut.savePlayer(player); if(perms.has(player, "giantshop.shop.buy")) { if(args.length >= 2) { int itemID; Integer itemType = -1; int quantity; if(!args[1].matches("[0-9]+:[0-9]+")) { try { itemID = Integer.parseInt(args[1]); ...
diff --git a/src/java/org/jivesoftware/sparkimpl/plugin/alerts/BroadcastDialog.java b/src/java/org/jivesoftware/sparkimpl/plugin/alerts/BroadcastDialog.java index d203da77..cb85a6a8 100644 --- a/src/java/org/jivesoftware/sparkimpl/plugin/alerts/BroadcastDialog.java +++ b/src/java/org/jivesoftware/sparkimpl/plugin/alert...
false
true
public BroadcastDialog() { setLayout(new GridBagLayout()); rosterNode = new CheckNode("Roster"); checkTree = new CheckTree(rosterNode); // Build out from Roster final ContactList contactList = SparkManager.getWorkspace().getContactList(); for (ContactGroup group : c...
public BroadcastDialog() { setLayout(new GridBagLayout()); rosterNode = new CheckNode("Roster"); checkTree = new CheckTree(rosterNode); // Build out from Roster final ContactList contactList = SparkManager.getWorkspace().getContactList(); for (ContactGroup group : c...
diff --git a/Chartsy/StockScanPRO/src/org/chartsy/stockscanpro/ui/Content.java b/Chartsy/StockScanPRO/src/org/chartsy/stockscanpro/ui/Content.java index 6caf74b..7d91771 100644 --- a/Chartsy/StockScanPRO/src/org/chartsy/stockscanpro/ui/Content.java +++ b/Chartsy/StockScanPRO/src/org/chartsy/stockscanpro/ui/Content.java...
false
true
public void layoutContainer(Container parent) { int gap = 10; Insets insets = parent.getInsets(); int width = parent.getWidth() - insets.left - insets.right; int height = parent.getHeight() - insets.top - insets.bottom; int logoWidth = logoBar.getPreferredSize().width; int logoHeight = logoBar.g...
public void layoutContainer(Container parent) { int gap = 10; Insets insets = parent.getInsets(); int width = parent.getWidth() - insets.left - insets.right; int height = parent.getHeight() - insets.top - insets.bottom; int logoWidth = logoBar.getPreferredSize().width; int logoHeight = logoBar.g...
diff --git a/src/org/openstreetmap/josm/actions/CopyAction.java b/src/org/openstreetmap/josm/actions/CopyAction.java index 6357ca56..a0658eb7 100644 --- a/src/org/openstreetmap/josm/actions/CopyAction.java +++ b/src/org/openstreetmap/josm/actions/CopyAction.java @@ -1,143 +1,145 @@ // License: GPL. Copyright 2007 by I...
false
true
public DataSet copyData() { /* New pasteBuffer - will be assigned to the global one at the end */ final DataSet pasteBuffer = new DataSet(); final HashMap<OsmPrimitive,OsmPrimitive> map = new HashMap<OsmPrimitive,OsmPrimitive>(); /* temporarily maps old nodes to new so we can do a tr...
public DataSet copyData() { /* New pasteBuffer - will be assigned to the global one at the end */ final DataSet pasteBuffer = new DataSet(); final HashMap<OsmPrimitive,OsmPrimitive> map = new HashMap<OsmPrimitive,OsmPrimitive>(); /* temporarily maps old nodes to new so we can do a tr...
diff --git a/MPDroid/src/com/namelessdev/mpdroid/cover/LocalCover.java b/MPDroid/src/com/namelessdev/mpdroid/cover/LocalCover.java index 97cd938d..daa0a9e9 100644 --- a/MPDroid/src/com/namelessdev/mpdroid/cover/LocalCover.java +++ b/MPDroid/src/com/namelessdev/mpdroid/cover/LocalCover.java @@ -1,72 +1,72 @@ package co...
true
true
public String[] getCoverUrl(String artist, String album, String path, String filename) throws Exception { // load URL parts from settings String musicPath = settings.getString("musicPath", "music/"); FILENAMES[0] = settings.getString("coverFileName", null); if (musicPath != null) { // load server name/ip ...
public String[] getCoverUrl(String artist, String album, String path, String filename) throws Exception { // load URL parts from settings String musicPath = settings.getString("musicPath", "music/"); FILENAMES[0] = settings.getString("coverFileName", null); if (musicPath != null) { // load server name/ip ...
diff --git a/BinaryTreeMaximPathSum/Solution.java b/BinaryTreeMaximPathSum/Solution.java index 3293cee..e057bef 100644 --- a/BinaryTreeMaximPathSum/Solution.java +++ b/BinaryTreeMaximPathSum/Solution.java @@ -1,51 +1,51 @@ /** * Definition for binary tree * public class TreeNode { * int val; * TreeNode...
true
true
public MetaData maxPathSumWithMeta(TreeNode root) { // Start typing your Java solution below // DO NOT write main() function if(root==null){ return new MetaData(Integer.MIN_VALUE, Integer.MIN_VALUE); } MetaData leftData = maxPathSumWithMeta(root.left); Me...
public MetaData maxPathSumWithMeta(TreeNode root) { // Start typing your Java solution below // DO NOT write main() function if(root==null){ return new MetaData(Integer.MIN_VALUE, Integer.MIN_VALUE); } MetaData leftData = maxPathSumWithMeta(root.left); Me...
diff --git a/common/src/kg/apc/jmeter/DirectoryAnchor.java b/common/src/kg/apc/jmeter/DirectoryAnchor.java index e74277b0..0a0d138e 100644 --- a/common/src/kg/apc/jmeter/DirectoryAnchor.java +++ b/common/src/kg/apc/jmeter/DirectoryAnchor.java @@ -1,14 +1,14 @@ package kg.apc.jmeter; /** * * @author undera */ ...
true
true
public String toString() { String file = this.getClass().getResource("short.jtl").getPath(); return file.substring(0, file.lastIndexOf("/")); }
public String toString() { String file = this.getClass().getResource("version.properties").getPath(); return file.substring(0, file.lastIndexOf("/")); }
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/fetch/SimpleConfigureFetchDialog.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/fetch/SimpleConfigureFetchDialog.java index bf1e3d2a..64d698fe 100644 --- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/fetch/SimpleConfigureFetchDialog...
false
true
protected Control createDialogArea(Composite parent) { boolean advancedMode = Activator.getDefault().getPreferenceStore() .getBoolean(ADVANCED_MODE_PREFERENCE); final Composite main = new Composite(parent, SWT.NONE); main.setLayout(new GridLayout(1, false)); GridDataFactory.fillDefaults().grab(true, true)....
protected Control createDialogArea(Composite parent) { boolean advancedMode = Activator.getDefault().getPreferenceStore() .getBoolean(ADVANCED_MODE_PREFERENCE); final Composite main = new Composite(parent, SWT.NONE); main.setLayout(new GridLayout(1, false)); GridDataFactory.fillDefaults().grab(true, true)....
diff --git a/modules/jersey/src/main/java/org/atmosphere/jersey/util/JerseyBroadcasterUtil.java b/modules/jersey/src/main/java/org/atmosphere/jersey/util/JerseyBroadcasterUtil.java index 557f94b2e..c83832768 100644 --- a/modules/jersey/src/main/java/org/atmosphere/jersey/util/JerseyBroadcasterUtil.java +++ b/modules/je...
false
true
public final static void broadcast(final AtmosphereResource<?, ?> r, final AtmosphereResourceEvent e) { HttpServletRequest request = (HttpServletRequest) r.getRequest(); try { ContainerResponse cr = (ContainerResponse) request.getAttribute(FrameworkConfig.CONTAINER_RESPONSE); ...
public final static void broadcast(final AtmosphereResource<?, ?> r, final AtmosphereResourceEvent e) { HttpServletRequest request = (HttpServletRequest) r.getRequest(); try { ContainerResponse cr = (ContainerResponse) request.getAttribute(FrameworkConfig.CONTAINER_RESPONSE); ...
diff --git a/micropolis-java/src/micropolisj/engine/TileSpec.java b/micropolis-java/src/micropolisj/engine/TileSpec.java index c19cda6..87b20e5 100644 --- a/micropolis-java/src/micropolisj/engine/TileSpec.java +++ b/micropolis-java/src/micropolisj/engine/TileSpec.java @@ -1,171 +1,171 @@ package micropolisj.engine; ...
true
true
protected void load(String inStr) { Scanner in = new Scanner(inStr); while (in.hasMore()) { if (in.peekChar() == '(') { in.eatChar('('); String k = in.readAttributeKey(); String v = "true"; if (in.peekChar() == '=') { in.eatChar('='); v = in.readAttributeValue(); } in.eatCha...
protected void load(String inStr) { Scanner in = new Scanner(inStr); while (in.hasMore()) { if (in.peekChar() == '(') { in.eatChar('('); String k = in.readAttributeKey(); String v = "true"; if (in.peekChar() == '=') { in.eatChar('='); v = in.readAttributeValue(); } in.eatCha...
diff --git a/src/org/apache/xalan/xsltc/trax/TemplatesImpl.java b/src/org/apache/xalan/xsltc/trax/TemplatesImpl.java index d0a2a95a..e146102c 100644 --- a/src/org/apache/xalan/xsltc/trax/TemplatesImpl.java +++ b/src/org/apache/xalan/xsltc/trax/TemplatesImpl.java @@ -1,293 +1,293 @@ /* * @(#)$Id$ * * The Apache S...
false
true
private void defineTransletClasses() throws TransformerConfigurationException { if (_bytecodes == null) { ErrorMsg err = new ErrorMsg(ErrorMsg.NO_TRANSLET_CLASS_ERR); throw new TransformerConfigurationException(err.toString()); } TransletClassLoader loader = (TransletClassLoader) AccessControl...
private void defineTransletClasses() throws TransformerConfigurationException { if (_bytecodes == null) { ErrorMsg err = new ErrorMsg(ErrorMsg.NO_TRANSLET_CLASS_ERR); throw new TransformerConfigurationException(err.toString()); } TransletClassLoader loader = (TransletClassLoader) AccessControl...
diff --git a/src/main/java/net/sourceforge/metware/binche/BiNChe.java b/src/main/java/net/sourceforge/metware/binche/BiNChe.java index a04836e..55b5e92 100644 --- a/src/main/java/net/sourceforge/metware/binche/BiNChe.java +++ b/src/main/java/net/sourceforge/metware/binche/BiNChe.java @@ -1,318 +1,318 @@ /* * Copyrig...
true
true
public void execute() { LOGGER.log(Level.INFO, "Parsing annotation ..."); AnnotationParser annParser = new ChEBIAnnotationParser(params, new HashSet<String>()); annParser.run(); if (annParser.getStatus()) { params.setAnnotation(annParser.getAnnotation()); p...
public void execute() { LOGGER.log(Level.INFO, "Parsing annotation ..."); AnnotationParser annParser = new ChEBIAnnotationParser(params, new HashSet<String>()); annParser.run(); if (annParser.getStatus()) { params.setAnnotation(annParser.getAnnotation()); p...
diff --git a/plugins/com.aptana.ide.filesystem.secureftp/src/com/aptana/ide/filesystem/secureftp/FTPConnectionFileManager.java b/plugins/com.aptana.ide.filesystem.secureftp/src/com/aptana/ide/filesystem/secureftp/FTPConnectionFileManager.java index 6534a37..d9f2982 100644 --- a/plugins/com.aptana.ide.filesystem.securef...
false
true
protected void getherServerInfo(ConnectionContext context, IProgressMonitor monitor) { Policy.checkCanceled(monitor); monitor.subTask(Messages.FTPConnectionFileManager_gethering_server_info); try { serverFeatures = null; String[] features = ftpClient.features(); if (features != null && features.length >...
protected void getherServerInfo(ConnectionContext context, IProgressMonitor monitor) { Policy.checkCanceled(monitor); monitor.subTask(Messages.FTPConnectionFileManager_gethering_server_info); try { serverFeatures = null; String[] features = ftpClient.features(); if (features != null && features.length >...
diff --git a/src/test/ErrorTests.java b/src/test/ErrorTests.java index 0c1b24f620..0cb7d0191b 100644 --- a/src/test/ErrorTests.java +++ b/src/test/ErrorTests.java @@ -1,41 +1,41 @@ package test; import junit.framework.TestCase; import java.io.IOException; public class ErrorTests extends TestCase{ private...
true
true
public void testErrors() throws IOException{ assertTrue(tf.runWithError("int i = true;", "declared type int incompatible with initialization type bool")); assertTrue(tf.runWithError("assert \"a\": 3.5;", "expression in assertion should be bool instead of double")); assertTrue(tf.runWithError("{int n = 3; n = t...
public void testErrors() throws IOException{ assertTrue(tf.runWithError("int i = true;", "int i incompatible with initialization type bool")); assertTrue(tf.runWithError("assert \"a\": 3.5;", "Expression in assertion should be bool instead of double")); assertTrue(tf.runWithError("{int n = 3; n = true;}", "can...
diff --git a/SPR-10297/src/main/groovy/test/service/PersonService.java b/SPR-10297/src/main/groovy/test/service/PersonService.java index ef9190d..dc16b88 100644 --- a/SPR-10297/src/main/groovy/test/service/PersonService.java +++ b/SPR-10297/src/main/groovy/test/service/PersonService.java @@ -1,12 +1,12 @@ package test...
true
true
public PersonService() { new Person(); }
public PersonService() { //new Person(); }
diff --git a/tests/org.eclipse.mylyn.docs.intent.client.ui.test/src/org/eclipse/mylyn/docs/intent/client/ui/test/unit/demo/synchronization/JavaTest.java b/tests/org.eclipse.mylyn.docs.intent.client.ui.test/src/org/eclipse/mylyn/docs/intent/client/ui/test/unit/demo/synchronization/JavaTest.java index 15ee7829..5b93b374 ...
true
true
public void testSynchronization() throws IOException, CoreException { // Step 1 : open the editor at 3.7 IntentEditor editor37 = openIntentEditor(getIntentSection(EDITOR_SECTION_3_7)); IntentEditorDocument document37 = (IntentEditorDocument)editor37.getDocumentProvider().getDocument( editor37.getEditorInput...
public void testSynchronization() throws IOException, CoreException { // Step 1 : open the editor at 3.7 IntentEditor editor37 = openIntentEditor(getIntentSection(EDITOR_SECTION_3_7)); IntentEditorDocument document37 = (IntentEditorDocument)editor37.getDocumentProvider().getDocument( editor37.getEditorInput...
diff --git a/src/com/csipsimple/wizards/impl/Expert.java b/src/com/csipsimple/wizards/impl/Expert.java index 584e059e..2e5385a8 100644 --- a/src/com/csipsimple/wizards/impl/Expert.java +++ b/src/com/csipsimple/wizards/impl/Expert.java @@ -1,251 +1,255 @@ /** * Copyright (C) 2010 Regis Montoya (aka r3gis - www.r3gis....
true
true
public void fillLayout(final SipProfile account) { bindFields(); accountDisplayName.setText(account.display_name); accountAccId.setText(account.acc_id); accountRegUri.setText(account.reg_uri); accountRealm.setText(account.realm); accountUserName.setText(account.username); accountData.setText(account.da...
public void fillLayout(final SipProfile account) { bindFields(); accountDisplayName.setText(account.display_name); accountAccId.setText(account.acc_id); accountRegUri.setText(account.reg_uri); accountRealm.setText(account.realm); accountUserName.setText(account.username); accountData.setText(account.da...
diff --git a/core/src/test/java/org/modelmapper/functional/provider/ProviderTest1.java b/core/src/test/java/org/modelmapper/functional/provider/ProviderTest1.java index b460054..2db647e 100644 --- a/core/src/test/java/org/modelmapper/functional/provider/ProviderTest1.java +++ b/core/src/test/java/org/modelmapper/functi...
true
true
public void shouldUseTypeMapPropertyProvider() { final String value = new String("test"); modelMapper.createTypeMap(Source.class, Dest.class).setPropertyProvider(new Provider<String>() { public String get(ProvisionRequest<String> request) { return value; } }); Source source = new...
public void shouldUseTypeMapPropertyProvider() { final String value = new String("test"); modelMapper.createTypeMap(Source.class, Dest.class).setPropertyProvider(new Provider<String>() { public String get(ProvisionRequest<String> request) { return value; } }); Source source = new...
diff --git a/src/main/java/org/mvnsearch/snippet/web/actions/snippet/SnippetQueryAction.java b/src/main/java/org/mvnsearch/snippet/web/actions/snippet/SnippetQueryAction.java index af35f3d..ac8736f 100644 --- a/src/main/java/org/mvnsearch/snippet/web/actions/snippet/SnippetQueryAction.java +++ b/src/main/java/org/mvnse...
true
true
public String query() { request.setAttribute("icons", snippetManager.getAllSnippetIcon()); if (StringUtils.isNotEmpty(request.getParameter("category"))) { //list snippets under category int categoryId = Integer.valueOf(request.getParameter("category")); if (categoryId == -1) ...
public String query() { request.setAttribute("icons", snippetManager.getAllSnippetIcon()); if (StringUtils.isNotEmpty(request.getParameter("category"))) { //list snippets under category int categoryId = Integer.valueOf(request.getParameter("category")); if (categoryId == -1) ...
diff --git a/src/com/jidesoft/swing/DelegateAction.java b/src/com/jidesoft/swing/DelegateAction.java index b4c42942..71bb4752 100644 --- a/src/com/jidesoft/swing/DelegateAction.java +++ b/src/com/jidesoft/swing/DelegateAction.java @@ -1,221 +1,233 @@ /* * @(#)DelegateAction.java 10/2/2006 * * Copyright 2002 - 20...
true
true
public static void replaceAction(JComponent component, int condition, JComponent target, int targetCondition, KeyStroke keyStroke, DelegateAction delegateAction, boolean first) { ActionListener action = component.getActionForKeyStroke(keyStroke); if (action != delegateAction && action instanceof Act...
public static void replaceAction(JComponent component, int condition, JComponent target, int targetCondition, KeyStroke keyStroke, DelegateAction delegateAction, boolean first) { ActionListener action = component.getActionForKeyStroke(keyStroke); if (action != delegateAction && action instanceof Act...
diff --git a/src/cz/muni/stanse/main/SCV.java b/src/cz/muni/stanse/main/SCV.java index e769ebe..14df99b 100644 --- a/src/cz/muni/stanse/main/SCV.java +++ b/src/cz/muni/stanse/main/SCV.java @@ -1,457 +1,462 @@ /* * Main class of the project. */ package cz.muni.stanse.main; import cz.muni.stanse.c2xml.CParser; ...
false
true
public static void main(String[] args) { OptionParser optionsParser = new OptionParser() { { accepts(OPT_HELP, "prints help"); accepts(OPT_USAGE, "shows usage"); accepts(OPT_VERBOSITY, "Sets the level of verbosity") ...
public static void main(String[] args) { OptionParser optionsParser = new OptionParser() { { accepts(OPT_HELP, "prints help"); accepts(OPT_USAGE, "shows usage"); accepts(OPT_VERBOSITY, "Sets the level of verbosity") ...
diff --git a/src/rocketview/APSObserver.java b/src/rocketview/APSObserver.java index f5dfbd6..0725bdb 100644 --- a/src/rocketview/APSObserver.java +++ b/src/rocketview/APSObserver.java @@ -1,64 +1,65 @@ package rocketview; import cansocket.*; import java.util.*; import java.text.*; import javax.swing.*; /*-...
false
true
public void update(Observable o, Object arg) { if (!(arg instanceof CanMessage)) return; // filter on id CanMessage msg = (CanMessage) arg; switch(msg.getId()) { case CanBusIDs.APS_DATA_VOLTS: // 0.2442 V / count voltage = 0.2442 * msg.getData16(0); break; case CanBusIDs.APS_DATA_...
public void update(Observable o, Object arg) { int counts; if (!(arg instanceof CanMessage)) return; // filter on id CanMessage msg = (CanMessage) arg; switch(msg.getId()) { case CanBusIDs.APS_DATA_VOLTS: counts = msg.getData16(0); counts &= 0xffff; // unsigned voltage = counts * 5 /...
diff --git a/src/org/apache/xerces/impl/xpath/regex/CaseInsensitiveMap.java b/src/org/apache/xerces/impl/xpath/regex/CaseInsensitiveMap.java index 190996c49..dbfd5a2f8 100644 --- a/src/org/apache/xerces/impl/xpath/regex/CaseInsensitiveMap.java +++ b/src/org/apache/xerces/impl/xpath/regex/CaseInsensitiveMap.java @@ -1,1...
true
true
private static void buildCaseInsensitiveMap() { caseInsensitiveMap = new int[INITIAL_CHUNK_COUNT][][]; for (int i=0; i<INITIAL_CHUNK_COUNT; i++) { caseInsensitiveMap[i] = new int[CHUNK_SIZE][]; } int lc, uc; for (int i=0; i<0x10000; i++) { lc ...
private static void buildCaseInsensitiveMap() { caseInsensitiveMap = new int[INITIAL_CHUNK_COUNT][][]; for (int i=0; i<INITIAL_CHUNK_COUNT; i++) { caseInsensitiveMap[i] = new int[CHUNK_SIZE][]; } int lc, uc; for (int i=0; i<0x10000; i++) { lc ...
diff --git a/src/cn/edu/tsinghua/academic/c00740273/magictower/standard/AttributeSelectiveMixin.java b/src/cn/edu/tsinghua/academic/c00740273/magictower/standard/AttributeSelectiveMixin.java index ddccde9..70da46a 100644 --- a/src/cn/edu/tsinghua/academic/c00740273/magictower/standard/AttributeSelectiveMixin.java +++ b...
true
true
public boolean enter(StandardEvent event, Coordinate coord, RegularTile tile, Coordinate sourceCoord, CharacterTile sourceTile, Map<String, Object> args, StandardGame game) { Number valueObj = (Number) game.getAttribute(event, this.attributeName); long value = valueObj.longValue(); String[] matchingOperato...
public boolean enter(StandardEvent event, Coordinate coord, RegularTile tile, Coordinate sourceCoord, CharacterTile sourceTile, Map<String, Object> args, StandardGame game) { Number valueObj = (Number) game.getAttribute(event, this.attributeName); long value = valueObj.longValue(); String[] matchingOperato...
diff --git a/user/src/com/google/gwt/user/client/ui/ScrollImpl.java b/user/src/com/google/gwt/user/client/ui/ScrollImpl.java index 93e12f6b2..06e8a20e5 100644 --- a/user/src/com/google/gwt/user/client/ui/ScrollImpl.java +++ b/user/src/com/google/gwt/user/client/ui/ScrollImpl.java @@ -1,124 +1,128 @@ /* * Copyright 2...
true
true
public native void initialize(Element scrollable, Element container) /*-{ // Remember the last scroll position. var scrollableElem = scrollable; scrollableElem.__lastScrollTop = scrollableElem.__lastScrollLeft = 0; var scrollHandler = $entry(function() { scrollableElem.__lastScrollTo...
public native void initialize(Element scrollable, Element container) /*-{ // Remember the last scroll position. var scrollableElem = scrollable; scrollableElem.__lastScrollTop = scrollableElem.__lastScrollLeft = 0; var scrollHandler = $entry(function() { scrollableElem.__lastScrollTo...
diff --git a/runtime/core/src/main/java/fr/imag/adele/apam/util/Visible.java b/runtime/core/src/main/java/fr/imag/adele/apam/util/Visible.java index 1743c61d..0f35d3a4 100644 --- a/runtime/core/src/main/java/fr/imag/adele/apam/util/Visible.java +++ b/runtime/core/src/main/java/fr/imag/adele/apam/util/Visible.java @@ -1...
true
true
private static boolean isVisibleIn(Composite source, Instance target) { assert source != null && target != null && target.getComposite() != null; /* * Check if the target is in the source composite */ if (target.getComposite().equals(source)) { return true; } // Check if target is visible fr...
private static boolean isVisibleIn(Composite source, Instance target) { assert source != null && target != null && target.getComposite() != null; /* * Check if the target is in the source composite */ if (target.getComposite().equals(source)) { return true; } // Check if target is visible fr...
diff --git a/grails/src/web/org/codehaus/groovy/grails/web/metaclass/ControllerDynamicMethods.java b/grails/src/web/org/codehaus/groovy/grails/web/metaclass/ControllerDynamicMethods.java index e6f9b1530..0f8842e9f 100644 --- a/grails/src/web/org/codehaus/groovy/grails/web/metaclass/ControllerDynamicMethods.java +++ b/g...
true
true
public ControllerDynamicMethods( GroovyObject controller,GrailsControllerHelper helper,HttpServletRequest request, HttpServletResponse response) throws IntrospectionException { super(controller); this.controllerClass = helper.getControllerClassByName(controller.getClass().getName()); // ad...
public ControllerDynamicMethods( GroovyObject controller,GrailsControllerHelper helper,HttpServletRequest request, HttpServletResponse response) throws IntrospectionException { super(controller); this.controllerClass = helper.getControllerClassByName(controller.getClass().getName()); // ad...
diff --git a/com.antimatterstudios.esftp/src/com/antimatterstudios/esftp/ui/widgets/SiteBrowser.java b/com.antimatterstudios.esftp/src/com/antimatterstudios/esftp/ui/widgets/SiteBrowser.java index 67a44fc..99a5fec 100755 --- a/com.antimatterstudios.esftp/src/com/antimatterstudios/esftp/ui/widgets/SiteBrowser.java +++ b...
true
true
public SiteBrowser(Composite parent, int style, UserInterface ui) { super(parent,style); m_userInterface = ui; m_details = new TransferDetails(m_userInterface.getPreferences()); m_transfer = null; GridLayout layout = new GridLayout(); layout.numColumns = 5; setLayout(layout); setLayoutData(ne...
public SiteBrowser(Composite parent, int style, UserInterface ui) { super(parent,style); m_userInterface = ui; m_details = new TransferDetails(m_userInterface.getPreferences()); m_transfer = null; GridLayout layout = new GridLayout(); layout.numColumns = 5; setLayout(layout); setLayoutData(ne...
diff --git a/cat-core/src/main/java/com/dianping/cat/Cat.java b/cat-core/src/main/java/com/dianping/cat/Cat.java index 15afae0d..3bef2600 100644 --- a/cat-core/src/main/java/com/dianping/cat/Cat.java +++ b/cat-core/src/main/java/com/dianping/cat/Cat.java @@ -1,181 +1,181 @@ package com.dianping.cat; import java.io....
true
true
static Config loadClientConfig(File configFile) { Config globalConfig = null; Config clientConfig = null; try { // read the global configure from local file system // so that OPS can: // - configure the cat servers to connect // - enable/disable Cat for specific domain(s) if (configFile != null) ...
static Config loadClientConfig(File configFile) { Config globalConfig = null; Config clientConfig = null; try { // read the global configure from local file system // so that OPS can: // - configure the cat servers to connect // - enable/disable Cat for specific domain(s) if (configFile != null &...
diff --git a/proj/facebook/PostMessage.java b/proj/facebook/PostMessage.java index e7fc81b..e0fbcb1 100644 --- a/proj/facebook/PostMessage.java +++ b/proj/facebook/PostMessage.java @@ -1,71 +1,73 @@ package facebook; import nodes.DistNode; import transactions.Command; import transactions.Transaction; public cl...
true
true
public void onCommandFinish(Command c) { String newCommand; switch( this.cmds.size() ) { case 3: if( FacebookOperation.isUserLoggedIn(this.user, this.n.addr, c.getContents())) { newCommand = FacebookOperation.replaceField(this.nextCommand(), "username", this.user.getUsername()); this.n.onFacebookCo...
public void onCommandFinish(Command c) { String newCommand; switch( this.cmds.size() ) { case 3: if( FacebookOperation.isUserLoggedIn(this.user, this.n.addr, c.getContents())) { newCommand = FacebookOperation.replaceField(this.nextCommand(), "username", this.user.getUsername()); this.n.onFacebookCo...
diff --git a/src/chess/uci/controlExtension/PrintPositionExt.java b/src/chess/uci/controlExtension/PrintPositionExt.java index ecafb74..9d2af44 100644 --- a/src/chess/uci/controlExtension/PrintPositionExt.java +++ b/src/chess/uci/controlExtension/PrintPositionExt.java @@ -1,28 +1,28 @@ package chess.uci.controlExtensi...
true
true
public void execute(String command, Position pos, UCIEngine engine) { if(pos == null){ System.out.println("no state information"); } else{ System.out.println("side to move: "+(pos.sideToMove == 0? "w": "b")); State4 s = pos.s; String castleInfo = ""; if(s.kingMoved[0] && s.rookMoved[0][0]) castleIn...
public void execute(String command, Position pos, UCIEngine engine) { if(pos == null){ System.out.println("no state information"); } else{ System.out.println("side to move: "+(pos.sideToMove == 0? "w": "b")); State4 s = pos.s; String castleInfo = ""; if(!s.kingMoved[0] && !s.rookMoved[0][0]) castle...
diff --git a/araqne-logdb/src/main/java/org/araqne/logdb/query/command/Table.java b/araqne-logdb/src/main/java/org/araqne/logdb/query/command/Table.java index 72ed0f28..1ae116ba 100644 --- a/araqne-logdb/src/main/java/org/araqne/logdb/query/command/Table.java +++ b/araqne-logdb/src/main/java/org/araqne/logdb/query/comm...
false
true
public void start() { try { status = Status.Running; for (String tableName : tableNames) { String parserName = tableRegistry.getTableMetadata(tableName, "logparser"); LogParserFactory parserFactory = parserFactoryRegistry.get(parserName); LogParser parser = null; if (parserFactory != null) { ...
public void start() { try { status = Status.Running; for (String tableName : tableNames) { String parserName = tableRegistry.getTableMetadata(tableName, "logparser"); LogParserFactory parserFactory = parserFactoryRegistry.get(parserName); LogParser parser = null; if (parserFactory != null) { ...
diff --git a/izpack-panel/src/main/java/com/izforge/izpack/panels/simplefinish/SimpleFinishPanel.java b/izpack-panel/src/main/java/com/izforge/izpack/panels/simplefinish/SimpleFinishPanel.java index 45b29dccf..df4b45cf4 100644 --- a/izpack-panel/src/main/java/com/izforge/izpack/panels/simplefinish/SimpleFinishPanel.jav...
true
true
public void panelActivate() { parent.lockNextButton(); parent.lockPrevButton(); parent.setQuitButtonText(installData.getLangpack().getString("FinishPanel.done")); parent.setQuitButtonIcon("done"); if (this.installData.isInstallSuccess()) { // We set t...
public void panelActivate() { parent.lockNextButton(); parent.lockPrevButton(); parent.setQuitButtonText(installData.getLangpack().getString("FinishPanel.done")); parent.setQuitButtonIcon("done"); if (this.installData.isInstallSuccess()) { // We set t...
diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/AbstractConnector.java b/jetty-server/src/main/java/org/eclipse/jetty/server/AbstractConnector.java index 2263205e..a6bc2e10 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/AbstractConnector.java +++ b/jetty-server/src/main/java/org/eclip...
false
true
public void run() { Thread current = Thread.currentThread(); synchronized(AbstractConnector.this) { if (_acceptorThread==null) return; _acceptorThread[_acceptor]=current; String na...
public void run() { Thread current = Thread.currentThread(); String name; synchronized(AbstractConnector.this) { if (_acceptorThread==null) return; _acceptorThread[_acceptor]=current; ...
diff --git a/src/test/java/edu/rivfader/test/commands/PrintQueryTest.java b/src/test/java/edu/rivfader/test/commands/PrintQueryTest.java index cb7a5ab..66a4667 100644 --- a/src/test/java/edu/rivfader/test/commands/PrintQueryTest.java +++ b/src/test/java/edu/rivfader/test/commands/PrintQueryTest.java @@ -1,83 +1,84 @@ ...
true
true
public void checkPrintQueryExecution() throws IOException { Database database = createMock(Database.class); IRelAlgExpr query; Writer writer = createMock(Writer.class); List<IQualifiedColumnName> columns = new LinkedList<IQualifiedColumnName>(); columns.add(new Qu...
public void checkPrintQueryExecution() throws IOException { Database database = createMock(Database.class); IRelAlgExpr query; Writer writer = createMock(Writer.class); List<IQualifiedColumnName> columns = new LinkedList<IQualifiedColumnName>(); columns.add(new Qu...
diff --git a/source/java-android/src/com/getbeamapp/transit/prompt/TransitChromeClient.java b/source/java-android/src/com/getbeamapp/transit/prompt/TransitChromeClient.java index 3b67896..e791488 100644 --- a/source/java-android/src/com/getbeamapp/transit/prompt/TransitChromeClient.java +++ b/source/java-android/src/co...
true
true
private void doInvokeNative(final Object _invocationDescription) { lock.close(); TransitJSObject invocationDescription = (TransitJSObject) _invocationDescription; final String nativeId = (String) invocationDescription.get("nativeId"); final Object thisArg = (Object) invocationDescr...
private void doInvokeNative(final Object _invocationDescription) { lock.close(); TransitJSObject invocationDescription = (TransitJSObject) _invocationDescription; final String nativeId = (String) invocationDescription.get("nativeId"); final Object thisArg = (Object) invocationDescr...
diff --git a/common/jaxrs/src/main/java/com/redhat/rhevm/api/common/resource/AbstractActionableResource.java b/common/jaxrs/src/main/java/com/redhat/rhevm/api/common/resource/AbstractActionableResource.java index 698531b1..84de9a8b 100644 --- a/common/jaxrs/src/main/java/com/redhat/rhevm/api/common/resource/AbstractAct...
true
true
protected Response doAction(UriInfo uriInfo, Action action, final Runnable task) { Response.Status status = null; final ActionResource actionResource = new BaseActionResource(uriInfo, action); if (action.isAsync()) { action.setStatus(com.redhat.rhevm.api.model.Status.PENDING); ...
protected Response doAction(UriInfo uriInfo, Action action, final Runnable task) { Response.Status status = null; final ActionResource actionResource = new BaseActionResource(uriInfo, action); if (action.isSetAsync() && action.isAsync()) { action.setStatus(com.redhat.rhevm.api.mo...
diff --git a/src/main/java/demo/CeSymmMain.java b/src/main/java/demo/CeSymmMain.java index 09d7d0cd..8f6fd2ae 100644 --- a/src/main/java/demo/CeSymmMain.java +++ b/src/main/java/demo/CeSymmMain.java @@ -1,291 +1,291 @@ package demo; import java.io.IOException; import java.lang.reflect.Constructor; import java.lan...
true
true
public static void main(String[] args) { // Begin argument parsing final String usage = "[OPTIONS] [structures...]"; final String header = "Determine the order for each structure, which may " + "be PDB IDs, SCOP domains, or file paths. If none are given, the " + "user will be prompted at startup."; Opt...
public static void main(String[] args) { // Begin argument parsing final String usage = "[OPTIONS] [structures...]"; final String header = "Determine the order for each structure, which may " + "be PDB IDs, SCOP domains, or file paths. If none are given, the " + "user will be prompted at startup."; Opt...
diff --git a/PreviewAPI/src/org/gephi/preview/types/DependantColor.java b/PreviewAPI/src/org/gephi/preview/types/DependantColor.java index 1cd57268b..2497ccfeb 100644 --- a/PreviewAPI/src/org/gephi/preview/types/DependantColor.java +++ b/PreviewAPI/src/org/gephi/preview/types/DependantColor.java @@ -1,68 +1,68 @@ /* ...
false
true
public Color getColor(Color parentColor) { if (customColor == null) { return parentColor; } return customColor; }
public Color getColor(Color parentColor) { if (mode.equals(Mode.CUSTOM) && customColor != null) { return customColor; } return parentColor; }
diff --git a/test/regression/BufferedInputStreamAvailableTest.java b/test/regression/BufferedInputStreamAvailableTest.java index e965d2116..d4ccae85b 100644 --- a/test/regression/BufferedInputStreamAvailableTest.java +++ b/test/regression/BufferedInputStreamAvailableTest.java @@ -1,19 +1,19 @@ import java.io.*; pub...
true
true
public static void main(String av[]) throws Exception { File file = new File("BufferedInputStreamAvailableTest.java"); long flen = file.length(); BufferedInputStream is = new BufferedInputStream( new FileInputStream(file), (int)flen); int alen = is.available(); // System.out.println((int)flen == alen); //...
public static void main(String av[]) throws Exception { File file = new File("TestScript"); long flen = file.length(); BufferedInputStream is = new BufferedInputStream( new FileInputStream(file), (int)flen); int alen = is.available(); // System.out.println((int)flen == alen); // We are happy if (int)flen ...
diff --git a/src/markehme/factionsplus/Cmds/CmdAddWarp.java b/src/markehme/factionsplus/Cmds/CmdAddWarp.java index 70684ef..1fecff2 100644 --- a/src/markehme/factionsplus/Cmds/CmdAddWarp.java +++ b/src/markehme/factionsplus/Cmds/CmdAddWarp.java @@ -1,203 +1,203 @@ package markehme.factionsplus.Cmds; import java.i...
true
true
public void perform() { String warpname = this.argAsString(0); String pass = null; if(this.argAsString(1) != null) { pass = this.argAsString(1); } if(!FactionsPlus.permission.has(sender, "factionsplus.createwarp")) { sender.sendMessage(ChatColor.RED + "No permission!"); return; } FPlayer fpl...
public void perform() { String warpname = this.argAsString(0); String pass = null; if(this.argAsString(1) != null) { pass = this.argAsString(1); } if(!FactionsPlus.permission.has(sender, "factionsplus.createwarp")) { sender.sendMessage(ChatColor.RED + "No permission!"); return; } FPlayer fpl...
diff --git a/src/main/java/me/eccentric_nz/TARDIS/travel/TARDISArea.java b/src/main/java/me/eccentric_nz/TARDIS/travel/TARDISArea.java index 451caa427..16360fcc4 100644 --- a/src/main/java/me/eccentric_nz/TARDIS/travel/TARDISArea.java +++ b/src/main/java/me/eccentric_nz/TARDIS/travel/TARDISArea.java @@ -1,207 +1,208 @@...
false
true
public Location getNextSpot(String a) { Location location = null; // find the next available slot in this area HashMap<String, Object> where = new HashMap<String, Object>(); where.put("area_name", a); ResultSetAreas rsa = new ResultSetAreas(plugin, where, false); if (...
public Location getNextSpot(String a) { Location location = null; // find the next available slot in this area HashMap<String, Object> where = new HashMap<String, Object>(); where.put("area_name", a); ResultSetAreas rsa = new ResultSetAreas(plugin, where, false); if (...
diff --git a/asakusa-yaess-core/src/main/java/com/asakusafw/yaess/basic/ProcessCommandScriptHandler.java b/asakusa-yaess-core/src/main/java/com/asakusafw/yaess/basic/ProcessCommandScriptHandler.java index 6335e065d..e04203345 100644 --- a/asakusa-yaess-core/src/main/java/com/asakusafw/yaess/basic/ProcessCommandScriptHa...
true
true
private void execute0( ExecutionMonitor monitor, ExecutionContext context, CommandScript script) throws InterruptedException, IOException { assert monitor != null; assert context != null; assert script != null; Map<String, String> env = buildEnvi...
private void execute0( ExecutionMonitor monitor, ExecutionContext context, CommandScript script) throws InterruptedException, IOException { assert monitor != null; assert context != null; assert script != null; Map<String, String> env = buildEnvi...
diff --git a/src/com/android/launcher3/PackageChangedReceiver.java b/src/com/android/launcher3/PackageChangedReceiver.java index 1a8ec7f84..75a1e095c 100644 --- a/src/com/android/launcher3/PackageChangedReceiver.java +++ b/src/com/android/launcher3/PackageChangedReceiver.java @@ -1,19 +1,21 @@ package com.android.laun...
true
true
public void onReceive(final Context context, Intent intent) { final String packageName = intent.getData().getSchemeSpecificPart(); if (packageName == null || packageName.length() == 0) { // they sent us a bad intent return; } LauncherAppState app = LauncherAp...
public void onReceive(final Context context, Intent intent) { final String packageName = intent.getData().getSchemeSpecificPart(); if (packageName == null || packageName.length() == 0) { // they sent us a bad intent return; } // in rare cases the receiver rac...
diff --git a/activemq-pool/src/main/java/org/apache/activemq/pool/ConnectionPool.java b/activemq-pool/src/main/java/org/apache/activemq/pool/ConnectionPool.java index fe515830e..e383ba1f7 100644 --- a/activemq-pool/src/main/java/org/apache/activemq/pool/ConnectionPool.java +++ b/activemq-pool/src/main/java/org/apache/a...
true
true
public ConnectionPool(ActiveMQConnection connection, ObjectPoolFactory poolFactory) { this(connection, new HashMap<SessionKey, SessionPool>(), poolFactory); // Add a transport Listener so that we can notice if this connection // should be expired due to // a connection failure. ...
public ConnectionPool(ActiveMQConnection connection, ObjectPoolFactory poolFactory) { this(connection, new HashMap<SessionKey, SessionPool>(), poolFactory); // Add a transport Listener so that we can notice if this connection // should be expired due to // a connection failure. ...
diff --git a/eol-globi-data-tool/src/main/java/org/eol/globi/export/StudyExportUnmatchedTaxaForStudies.java b/eol-globi-data-tool/src/main/java/org/eol/globi/export/StudyExportUnmatchedTaxaForStudies.java index 625b0abe..c35707db 100644 --- a/eol-globi-data-tool/src/main/java/org/eol/globi/export/StudyExportUnmatchedTa...
true
true
public void exportStudy(Study study, Writer writer, boolean includeHeader) throws IOException { ExecutionEngine engine = new ExecutionEngine(study.getUnderlyingNode().getGraphDatabase()); StringBuilder query = new StringBuilder(); query.append("START study = node:studies(title=\""); ...
public void exportStudy(Study study, Writer writer, boolean includeHeader) throws IOException { ExecutionEngine engine = new ExecutionEngine(study.getUnderlyingNode().getGraphDatabase()); StringBuilder query = new StringBuilder(); query.append("START study = node:studies(title=\""); ...