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/illaclient/src/illarion/client/net/server/InventoryMsg.java b/illaclient/src/illarion/client/net/server/InventoryMsg.java index 8c5c8403..d4bdecf5 100644 --- a/illaclient/src/illarion/client/net/server/InventoryMsg.java +++ b/illaclient/src/illarion/client/net/server/InventoryMsg.java @@ -1,101 +1,101 @@ ...
false
true
public String toString() { final StringBuilder builder = new StringBuilder(); builder.append("pos: "); builder.append(location); builder.append(" itemid: "); builder.append(itemId); builder.append(" count: "); builder.append(count); return toString(bui...
public String toString() { final StringBuilder builder = new StringBuilder(); builder.append("pos: "); builder.append(location); builder.append(' '); builder.append(itemId); builder.append(' '); builder.append(count); return toString(builder.toString()...
diff --git a/atlassian-plugins-osgi/src/main/java/com/atlassian/plugin/osgi/factory/transform/stage/ScanDescriptorForHostClassesStage.java b/atlassian-plugins-osgi/src/main/java/com/atlassian/plugin/osgi/factory/transform/stage/ScanDescriptorForHostClassesStage.java index 42d5edf7..9857b18b 100644 --- a/atlassian-plugi...
true
true
public void execute(TransformContext context) throws PluginTransformationException { XPath xpath = DocumentHelper.createXPath("//@class"); List<Attribute> attributes = xpath.selectNodes(context.getDescriptorDocument()); for (Attribute attr : attributes) { String class...
public void execute(TransformContext context) throws PluginTransformationException { XPath xpath = DocumentHelper.createXPath("//@class"); List<Attribute> attributes = xpath.selectNodes(context.getDescriptorDocument()); for (Attribute attr : attributes) { String class...
diff --git a/src/wiseguys/radar/SourceParser.java b/src/wiseguys/radar/SourceParser.java index 8ad059c..b607186 100644 --- a/src/wiseguys/radar/SourceParser.java +++ b/src/wiseguys/radar/SourceParser.java @@ -1,43 +1,43 @@ package wiseguys.radar; import java.util.regex.Matcher; import java.util.regex.Pattern; i...
true
true
public String parseRadarImages() { String temp = code.substring(code.indexOf("<div class=\"image list\">")); temp = temp.substring(0,temp.indexOf("</div>")); //At times, the Env. Canada page does not have available data if (!temp.contains("li")) { return null; } temp = temp.substring(temp.indexOf...
public String parseRadarImages() { String temp = code.substring(code.indexOf("<div class=\"image list\">")); temp = temp.substring(0,temp.indexOf("</div>")); //At times, the Env. Canada page does not have available data if (!temp.contains("<li>")) { return null; } temp = temp.substring(temp.index...
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 485e7b79..92366783 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((project.getPackaging().equals("a") ? nativeStaticLibrariesDirectory : nativeSharedLibrariesDirectory), ndkArchitecture ); final boolean libsDirectoryExists = nati...
public void execute() throws MojoExecutionException, MojoFailureException { // This points File nativeLibDirectory = new File((project.getPackaging().equals("a") ? nativeStaticLibrariesDirectory : nativeSharedLibrariesDirectory), ndkArchitecture ); final boolean libsDirectoryExists = nati...
diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java index cffc456a..ad00d4fe 100644 --- a/src/com/android/launcher2/Workspace.java +++ b/src/com/android/launcher2/Workspace.java @@ -1,3267 +1,3267 @@ /* * Copyright (C) 2008 The Android Open Source Project * * Licensed...
true
true
public void shrink(ShrinkState shrinkState, boolean animated) { if (mFirstLayout) { // (mFirstLayout == "first layout has not happened yet") // if we get a call to shrink() as part of our initialization (for example, if // Launcher is started in All Apps mode) then we nee...
public void shrink(ShrinkState shrinkState, boolean animated) { if (mFirstLayout) { // (mFirstLayout == "first layout has not happened yet") // if we get a call to shrink() as part of our initialization (for example, if // Launcher is started in All Apps mode) then we nee...
diff --git a/com.intel.ide.eclipse.mpt/src/com/intel/ide/eclipse/mpt/wizards/convert/ConvertWizards.java b/com.intel.ide.eclipse.mpt/src/com/intel/ide/eclipse/mpt/wizards/convert/ConvertWizards.java index 97f5044..fc96d8f 100644 --- a/com.intel.ide.eclipse.mpt/src/com/intel/ide/eclipse/mpt/wizards/convert/ConvertWizard...
true
true
private void partialConversionSync(final IProgressMonitor monitor){ try { if (project.isNatureEnabled("org.eclipse.jdt.core.javanature")) { this.missingTypesMap = new HashMap<String, LinkedCorrectionProposal>(); IJavaProject javaProject = JavaCore.create(project); Map<String, String> option...
private void partialConversionSync(final IProgressMonitor monitor){ try { if (project.isNatureEnabled("org.eclipse.jdt.core.javanature")) { this.missingTypesMap = new HashMap<String, LinkedCorrectionProposal>(); IJavaProject javaProject = JavaCore.create(project); Map<String, String> option...
diff --git a/war/src/main/java/com/tommytony/war/mapper/ZoneVolumeMapper.java b/war/src/main/java/com/tommytony/war/mapper/ZoneVolumeMapper.java index 50b79d7..7018410 100644 --- a/war/src/main/java/com/tommytony/war/mapper/ZoneVolumeMapper.java +++ b/war/src/main/java/com/tommytony/war/mapper/ZoneVolumeMapper.java @@ ...
true
true
public static int load(Connection databaseConnection, ZoneVolume volume, World world, boolean onlyLoadCorners, int start, int total, boolean[][][] changes) throws SQLException { Validate.isTrue(!databaseConnection.isClosed()); Statement stmt = databaseConnection.createStatement(); ResultSet cornerQuery = stmt.ex...
public static int load(Connection databaseConnection, ZoneVolume volume, World world, boolean onlyLoadCorners, int start, int total, boolean[][][] changes) throws SQLException { Validate.isTrue(!databaseConnection.isClosed()); Statement stmt = databaseConnection.createStatement(); ResultSet cornerQuery = stmt.ex...
diff --git a/pentaho-gwt-widgets/src/org/pentaho/gwt/widgets/client/utils/MessageBundle.java b/pentaho-gwt-widgets/src/org/pentaho/gwt/widgets/client/utils/MessageBundle.java index f6977a4..493d121 100644 --- a/pentaho-gwt-widgets/src/org/pentaho/gwt/widgets/client/utils/MessageBundle.java +++ b/pentaho-gwt-widgets/src...
true
true
private void initCallbacks() { baseCallback = new RequestCallback() { public void onError(Request request, Throwable exception) { Window.alert("baseCallback " + MSGS.error() + ":" + exception.getMessage()); //$NON-NLS-1$ //$NON-NLS-2$ fireBundleLoadCallback(); } public void onRe...
private void initCallbacks() { baseCallback = new RequestCallback() { public void onError(Request request, Throwable exception) { Window.alert("baseCallback " + MSGS.error() + ":" + exception.getMessage()); //$NON-NLS-1$ //$NON-NLS-2$ fireBundleLoadCallback(); } public void onRe...
diff --git a/src/com/android/gallery3d/ui/DialogDetailsView.java b/src/com/android/gallery3d/ui/DialogDetailsView.java index fb6ccf5a..8d96b821 100644 --- a/src/com/android/gallery3d/ui/DialogDetailsView.java +++ b/src/com/android/gallery3d/ui/DialogDetailsView.java @@ -1,244 +1,244 @@ /* * Copyright (C) 2011 The An...
false
true
private void setDetails(Context context, MediaDetails details) { for (Entry<Integer, Object> detail : details) { String value; switch (detail.getKey()) { case MediaDetails.INDEX_LOCATION: { double[] latlng = (double[]) detai...
private void setDetails(Context context, MediaDetails details) { for (Entry<Integer, Object> detail : details) { String value; switch (detail.getKey()) { case MediaDetails.INDEX_LOCATION: { double[] latlng = (double[]) detai...
diff --git a/org.strategoxt.imp.runtime/src/org/strategoxt/imp/runtime/parser/JSGLRI.java b/org.strategoxt.imp.runtime/src/org/strategoxt/imp/runtime/parser/JSGLRI.java index 30343040..0685506e 100644 --- a/org.strategoxt.imp.runtime/src/org/strategoxt/imp/runtime/parser/JSGLRI.java +++ b/org.strategoxt.imp.runtime/src...
true
true
protected IStrategoTerm doParse(String input, String filename) throws TokenExpectedException, BadTokenException, SGLRException, IOException { // Read stream using tokenizer/lexstream if (parseTable.isDynamic()) { parseTable.initialize(new File(filename)); resetState(); } try { return (IStr...
protected IStrategoTerm doParse(String input, String filename) throws TokenExpectedException, BadTokenException, SGLRException, IOException { // Read stream using tokenizer/lexstream if (parseTable.isDynamic()) { parseTable.initialize(new File(filename)); resetState(); } try { return (IStr...
diff --git a/RC/CommonalityMiningTool/src/view/ControllerProject.java b/RC/CommonalityMiningTool/src/view/ControllerProject.java index 4c9b590..5f4b617 100644 --- a/RC/CommonalityMiningTool/src/view/ControllerProject.java +++ b/RC/CommonalityMiningTool/src/view/ControllerProject.java @@ -1,177 +1,177 @@ /** * *...
true
true
public void actionPerformed(ActionEvent ae) { if(ae.getActionCommand().equals("Create Project")) { String s = null; if((s = viewProject.assignNameProjectDialog()) != null) { if(!modelProject.createProject(s)) viewProject.errorDialog("Project already exists"); else viewProje...
public void actionPerformed(ActionEvent ae) { if(ae.getActionCommand().equals("Create Project")) { String s = null; if((s = viewProject.assignNameProjectDialog()) != null) { if(!modelProject.createProject(s)) viewProject.errorDialog("Project already exists"); else viewProje...
diff --git a/jython/src/org/python/core/SyspathJavaLoader.java b/jython/src/org/python/core/SyspathJavaLoader.java index 93dc5e2c..255e60cd 100644 --- a/jython/src/org/python/core/SyspathJavaLoader.java +++ b/jython/src/org/python/core/SyspathJavaLoader.java @@ -1,189 +1,193 @@ // Copyright (c) Corporation for Nationa...
false
true
protected URL findResource(String res) { PySystemState sys = Py.getSystemState(); if (res.charAt(0) == SLASH_CHAR) { res = res.substring(1); } String entryRes = res; if (File.separatorChar != SLASH_CHAR) { res = res.replace(SLASH_CHAR, File.separatorChar)...
protected URL findResource(String res) { PySystemState sys = Py.getSystemState(); if (res.charAt(0) == SLASH_CHAR) { res = res.substring(1); } String entryRes = res; if (File.separatorChar != SLASH_CHAR) { res = res.replace(SLASH_CHAR, File.separatorChar)...
diff --git a/src/me/libraryaddict/disguise/PacketsManager.java b/src/me/libraryaddict/disguise/PacketsManager.java index 7294ed9..bc41939 100644 --- a/src/me/libraryaddict/disguise/PacketsManager.java +++ b/src/me/libraryaddict/disguise/PacketsManager.java @@ -1,1229 +1,1229 @@ package me.libraryaddict.disguise; im...
false
true
protected static void init(LibsDisguises plugin) { libsDisguises = plugin; soundsListener = new PacketAdapter(libsDisguises, ConnectionSide.SERVER_SIDE, ListenerPriority.NORMAL, Packets.Server.NAMED_SOUND_EFFECT, Packets.Server.ENTITY_STATUS) { @Override publi...
protected static void init(LibsDisguises plugin) { libsDisguises = plugin; soundsListener = new PacketAdapter(libsDisguises, ConnectionSide.SERVER_SIDE, ListenerPriority.NORMAL, Packets.Server.NAMED_SOUND_EFFECT, Packets.Server.ENTITY_STATUS) { @Override publi...
diff --git a/flexmojos-testing/flexmojos-test-harness/src/test/java/org/sonatype/flexmojos/tests/concept/ArchetypesTest.java b/flexmojos-testing/flexmojos-test-harness/src/test/java/org/sonatype/flexmojos/tests/concept/ArchetypesTest.java index c9bcfbbb..3b3d4519 100644 --- a/flexmojos-testing/flexmojos-test-harness/sr...
true
true
private void testArchetype( String kind ) throws IOException, VerificationException { if ( baseTestDir == null ) { baseTestDir = getProject( "/concept/archetype" ); } String artifactId = "artifact-it-" + kind; String[] args = new String[]...
private void testArchetype( String kind ) throws IOException, VerificationException { if ( baseTestDir == null ) { baseTestDir = getProject( "/concept/archetype" ); } String artifactId = "artifact-it-" + kind; String[] args = new String[]...
diff --git a/PS2DSelfLocalisation/src/uibk/autonom/ps/navigation/Marker.java b/PS2DSelfLocalisation/src/uibk/autonom/ps/navigation/Marker.java index 0d27ab1..deaf26f 100644 --- a/PS2DSelfLocalisation/src/uibk/autonom/ps/navigation/Marker.java +++ b/PS2DSelfLocalisation/src/uibk/autonom/ps/navigation/Marker.java @@ -1,6...
true
true
public void calculateImgPosition(Mat curImgFrame){ ColorDetector colorDetector = new ColorDetector(); colorDetector.setHsvColor(getColor()); colorDetector.detect(curImgFrame); NavigableMap<Double, MatOfPoint> result = colorDetector.getMaxContourSizes(1); if(result.size() > 1){ java.util.Map.Entry<Doub...
public void calculateImgPosition(Mat curImgFrame){ ColorDetector colorDetector = new ColorDetector(); colorDetector.setHsvColor(getColor()); colorDetector.detect(curImgFrame); NavigableMap<Double, MatOfPoint> result = colorDetector.getMaxContourSizes(1); if(result.size() > 0){ java.util.Map.Entry<Doub...
diff --git a/StatisticsPlugin/src/org/gephi/statistics/plugin/InOutDegree.java b/StatisticsPlugin/src/org/gephi/statistics/plugin/InOutDegree.java index dc3811414..2348bd580 100644 --- a/StatisticsPlugin/src/org/gephi/statistics/plugin/InOutDegree.java +++ b/StatisticsPlugin/src/org/gephi/statistics/plugin/InOutDegree....
true
true
public void execute(GraphModel graphModel, AttributeModel attributeModel) { mIsCanceled = false; mAvgInDegree = mAvgOutDegree = 0.0; //Attributes cols AttributeTable nodeTable = attributeModel.getNodeTable(); AttributeColumn inCol = nodeTable.getColumn(INDEGREE); Att...
public void execute(GraphModel graphModel, AttributeModel attributeModel) { mIsCanceled = false; mAvgInDegree = mAvgOutDegree = 0.0; //Attributes cols AttributeTable nodeTable = attributeModel.getNodeTable(); AttributeColumn inCol = nodeTable.getColumn(INDEGREE); Att...
diff --git a/de.htwg.se.dog/test/de/htwg/se/dog/controller/MovementTest.java b/de.htwg.se.dog/test/de/htwg/se/dog/controller/MovementTest.java index 0d7b32e..f915bcf 100644 --- a/de.htwg.se.dog/test/de/htwg/se/dog/controller/MovementTest.java +++ b/de.htwg.se.dog/test/de/htwg/se/dog/controller/MovementTest.java @@ -1,6...
true
true
public void testMoveFigure() { //Move Figure from empty Field assertFalse(movement.moveFigure(gamefield, ONE, ZERO)); array[ZERO].putFigure(tp1.removeFigure()); Figure tmpZERO = array[ZERO].getFigure(); array[ONE].putFigure(tp1.removeFigure()); array[ONE].setBlocked(true); array[5].putFigure(tp2.removeFi...
public void testMoveFigure() { //Move Figure from empty Field assertFalse(movement.moveFigure(gamefield, ONE, ZERO)); array[ZERO].putFigure(tp1.removeFigure()); Figure tmpZERO = array[ZERO].getFigure(); array[ONE].putFigure(tp1.removeFigure()); array[ONE].setBlocked(true); array[5].putFigure(tp2.removeFi...
diff --git a/agent/cz/cuni/mff/d3s/adapt/bookstore/agent/ClassTransformer.java b/agent/cz/cuni/mff/d3s/adapt/bookstore/agent/ClassTransformer.java index c30e6fe..e4dc00d 100644 --- a/agent/cz/cuni/mff/d3s/adapt/bookstore/agent/ClassTransformer.java +++ b/agent/cz/cuni/mff/d3s/adapt/bookstore/agent/ClassTransformer.java...
false
true
public byte[] transform(ClassLoader loader, String classname, Class<?> theClass, ProtectionDomain domain, byte[] bytecode) throws IllegalClassFormatException { try { if (actuallyTransform) { boolean isBuiltIn = classname.startsWith("java.") || classname.startsWith("javax.") || classname.startsWith("sun....
public byte[] transform(ClassLoader loader, String classname, Class<?> theClass, ProtectionDomain domain, byte[] bytecode) throws IllegalClassFormatException { try { if (actuallyTransform) { boolean isBuiltIn = classname.startsWith("java/") || classname.startsWith("javax/") || classname.startsWith("sun/...
diff --git a/src/main/java/org/spoutcraft/launcher/skin/MetroLoginFrame.java b/src/main/java/org/spoutcraft/launcher/skin/MetroLoginFrame.java index 08f48da..33e1451 100644 --- a/src/main/java/org/spoutcraft/launcher/skin/MetroLoginFrame.java +++ b/src/main/java/org/spoutcraft/launcher/skin/MetroLoginFrame.java @@ -1,4...
false
true
private void initComponents() { Font minecraft = getMinecraftFont(12); int xShift = 0; int yShift = 0; if (this.isUndecorated()) { yShift += 30; } // Setup username box name = new LiteTextBox(this, "Username..."); name.setBounds(622 + xShift, 426 + yShift, 140, 24); name.setFont(minecraft); na...
private void initComponents() { Font minecraft = getMinecraftFont(12); int xShift = 0; int yShift = 0; if (this.isUndecorated()) { yShift += 30; } // Setup username box name = new LiteTextBox(this, "Username..."); name.setBounds(622 + xShift, 426 + yShift, 140, 24); name.setFont(minecraft); na...
diff --git a/Freerider/src/no/ntnu/idi/socialhitchhiking/inbox/Inbox.java b/Freerider/src/no/ntnu/idi/socialhitchhiking/inbox/Inbox.java index ec0fde9..bd4c52f 100644 --- a/Freerider/src/no/ntnu/idi/socialhitchhiking/inbox/Inbox.java +++ b/Freerider/src/no/ntnu/idi/socialhitchhiking/inbox/Inbox.java @@ -1,539 +1,540 @@...
true
true
public void showMain(Response response) { Log.e("hit?", "KAKE ER J����VLIG GODT"); setContentView(R.layout.inbox); Intent intent = getIntent(); history = intent.getBooleanExtra("history", false); request = intent.getBooleanExtra("request", false); header = (CheckedTextView) findViewByI...
public void showMain(Response response) { Log.e("hit?", "KAKE ER J����VLIG GODT"); setContentView(R.layout.inbox); Intent intent = getIntent(); history = intent.getBooleanExtra("history", false); request = intent.getBooleanExtra("request", false); header = (CheckedTextView) findViewByI...
diff --git a/JPL/ch13/ex04/TypeReader.java b/JPL/ch13/ex04/TypeReader.java index 7d70220..77d49ce 100644 --- a/JPL/ch13/ex04/TypeReader.java +++ b/JPL/ch13/ex04/TypeReader.java @@ -1,36 +1,36 @@ package ch13.ex04; import java.util.ArrayList; public class TypeReader { public static void convert(String[][] input...
true
true
public static void convert(String[][] input) throws ClassNotFoundException { ArrayList list = new ArrayList(); Class<?> clazz = null; for (int i = 0; i < input.length; i++) { String str = input[i][0]; clazz = Class.forName(str); if (str.equals("java.lang.Boolean")) { list.add(Boolean.parseBoolean(in...
public static void convert(String[][] input) throws ClassNotFoundException { ArrayList list = new ArrayList(); Class<?> clazz = null; for (int i = 0; i < input.length; i++) { String str = input[i][0]; clazz = Class.forName(str); //�^�̃`�F�b�N if (str.equals("java.lang.Boolean")) { list.add(Boolean.p...
diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java index cb3df2874..9d26e9821 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java +++ b/openjpa-jdbc/src/main/java/org/apache...
true
true
public DB2Dictionary() { platform = "DB2"; validationSQL = "SELECT DISTINCT(CURRENT TIMESTAMP) FROM " + "SYSIBM.SYSTABLES"; supportsSelectEndIndex = true; nextSequenceQuery = "VALUES NEXTVAL FOR {0}"; sequenceSQL = "SELECT SEQSCHEMA AS SEQUENCE_SCHEMA, " ...
public DB2Dictionary() { platform = "DB2"; validationSQL = "SELECT DISTINCT(CURRENT TIMESTAMP) FROM " + "SYSIBM.SYSTABLES"; supportsSelectEndIndex = true; nextSequenceQuery = "VALUES NEXTVAL FOR {0}"; sequenceSQL = "SELECT SEQSCHEMA AS SEQUENCE_SCHEMA, " ...
diff --git a/src/vues/VueNoeud.java b/src/vues/VueNoeud.java index aa65e15..9b7d29b 100644 --- a/src/vues/VueNoeud.java +++ b/src/vues/VueNoeud.java @@ -1,111 +1,106 @@ package vues; import ihm.ImagesManager; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; imp...
true
true
void dessin(Graphics g) { Graphics2D g2d = (Graphics2D)g; if(selection){ if(noeud instanceof NoeudGarage){ g2d.drawImage(imagesManager.getImgNodeGarageSel(), posPixel.x, posPixel.y, imageWidth, imageHeight, vueGenerale); vueGenerale.getZoneInfo().setText("<html>Chariots presents : " + Aeroport.ga...
void dessin(Graphics g) { Graphics2D g2d = (Graphics2D)g; if(selection){ if(noeud instanceof NoeudGarage){ g2d.drawImage(imagesManager.getImgNodeGarageSel(), posPixel.x, posPixel.y, imageWidth, imageHeight, vueGenerale); vueGenerale.getZoneInfo().setText("<html>Chariots presents : " + Aeroport.ga...
diff --git a/server/src/net/gnehzr/tnoodle/server/TNoodleServer.java b/server/src/net/gnehzr/tnoodle/server/TNoodleServer.java index e015a34c..513fe5c1 100755 --- a/server/src/net/gnehzr/tnoodle/server/TNoodleServer.java +++ b/server/src/net/gnehzr/tnoodle/server/TNoodleServer.java @@ -1,349 +1,350 @@ package net.gneh...
true
true
public static void main(String[] args) throws IOException { Launcher.wrapMain(args); OptionParser parser = new OptionParser(); OptionSpec<Integer> portOpt = parser.acceptsAll(Arrays.asList("p", "port"), "The port to run the http server on").withOptionalArg().ofType(Integer.class).defaultsTo(80); OptionSpec<Fi...
public static void main(String[] args) throws IOException { Launcher.wrapMain(args); OptionParser parser = new OptionParser(); // TODO - optional url prefix? OptionSpec<Integer> portOpt = parser.acceptsAll(Arrays.asList("p", "port"), "The port to run the http server on").withOptionalArg().ofType(Integer.class...
diff --git a/src/com/mpower/util/ModifyReportJRXML.java b/src/com/mpower/util/ModifyReportJRXML.java index 6ccd966..304245b 100644 --- a/src/com/mpower/util/ModifyReportJRXML.java +++ b/src/com/mpower/util/ModifyReportJRXML.java @@ -1,1085 +1,1085 @@ /** * */ package com.mpower.util; import java.io.File; impo...
false
true
private Element createGroupFooterBand(Document document, HashMap<String, Integer> fieldProperties, HashMap<String, Integer> fieldWidth, String resetGroup) { // //Variables Integer bandTotalHeight = 0; Integer rowHeight = 16; int y = 0; int x = 0; int width = 0; int xCalc = 0;...
private Element createGroupFooterBand(Document document, HashMap<String, Integer> fieldProperties, HashMap<String, Integer> fieldWidth, String resetGroup) { // //Variables Integer bandTotalHeight = 0; Integer rowHeight = 16; int y = 0; int x = 0; int width = 0; int xCalc = 0;...
diff --git a/biz.aQute.bndlib/src/aQute/bnd/build/ProjectBuilder.java b/biz.aQute.bndlib/src/aQute/bnd/build/ProjectBuilder.java index 83dbe7548..588f12b01 100644 --- a/biz.aQute.bndlib/src/aQute/bnd/build/ProjectBuilder.java +++ b/biz.aQute.bndlib/src/aQute/bnd/build/ProjectBuilder.java @@ -1,420 +1,420 @@ package aQ...
true
true
public Jar getBaselineJar() throws Exception { String bl = getProperty(Constants.BASELINE); if (bl == null || Constants.NONE.equals(bl)) return null; Instructions baselines = new Instructions(getProperty(Constants.BASELINE)); if (baselines.isEmpty()) return null; // no baselining RepositoryPlugin rep...
public Jar getBaselineJar() throws Exception { String bl = getProperty(Constants.BASELINE); if (bl == null || Constants.NONE.equals(bl)) return null; Instructions baselines = new Instructions(getProperty(Constants.BASELINE)); if (baselines.isEmpty()) return null; // no baselining RepositoryPlugin rep...
diff --git a/jtrim-async/src/main/java/org/jtrim/concurrent/async/SafeDataListener.java b/jtrim-async/src/main/java/org/jtrim/concurrent/async/SafeDataListener.java index ec895c89..e5115ca9 100644 --- a/jtrim-async/src/main/java/org/jtrim/concurrent/async/SafeDataListener.java +++ b/jtrim-async/src/main/java/org/jtrim/...
true
true
public void execute(CancellationToken cancelToken) { assert eventScheduler.isExecutingInThis(); OrderedData<DataType> data = pollData(); if (data == null) { // A data was overwritten by a newever one. return; } if (for...
public void execute(CancellationToken cancelToken) { assert eventScheduler.isExecutingInThis(); OrderedData<DataType> data = pollData(); if (data == null) { // A data was overwritten by a newever one. return; } if (for...
diff --git a/js-class-loader/src/main/java/jsclassloader/cli/ArgumentParser.java b/js-class-loader/src/main/java/jsclassloader/cli/ArgumentParser.java index 2242d14..da506f8 100644 --- a/js-class-loader/src/main/java/jsclassloader/cli/ArgumentParser.java +++ b/js-class-loader/src/main/java/jsclassloader/cli/ArgumentPar...
true
true
public Config parseArgs(String[] args) { for (String arg : args) { if ( !seedFilesArg.checkAndSet(arg) && !seedClassesArg.checkAndSet(arg) && !sourcePathArg.checkAndSet(arg) && !basePathArg.checkAndSet(arg) && !configFileArg.checkAndSet(arg) && !helpArg.checkAndSet(arg) && !listArg.ch...
public Config parseArgs(String[] args) { for (String arg : args) { if ( !seedFilesArg.checkAndSet(arg) && !seedClassesArg.checkAndSet(arg) && !sourcePathArg.checkAndSet(arg) && !basePathArg.checkAndSet(arg) && !configFileArg.checkAndSet(arg) && !helpArg.checkAndSet(arg) && !listArg.ch...
diff --git a/src/AboutPanel.java b/src/AboutPanel.java index d2c6aca..0e35f23 100755 --- a/src/AboutPanel.java +++ b/src/AboutPanel.java @@ -1,238 +1,239 @@ import java.awt.Color; import java.awt.Cursor; import java.awt.Font; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Inset...
true
true
public AboutPanel(ListenerHandler listenerHandler) { super(new GridBagLayout()); this.listener = listenerHandler; // this.enlLogo = new JLabel(makeImageIcon("/images/enlightened_big.png")); this.aboutUs = new JLabel("About us"); this.version = new JLabel("Version"); ...
public AboutPanel(ListenerHandler listenerHandler) { super(new GridBagLayout()); this.listener = listenerHandler; // this.enlLogo = new JLabel(makeImageIcon("/images/enlightened_big.png")); this.aboutUs = new JLabel("About us"); this.version = new JLabel("Version"); ...
diff --git a/src/net/mdcreator/tpplus/TPPlusExecutor.java b/src/net/mdcreator/tpplus/TPPlusExecutor.java index fe29548..5b18165 100644 --- a/src/net/mdcreator/tpplus/TPPlusExecutor.java +++ b/src/net/mdcreator/tpplus/TPPlusExecutor.java @@ -1,74 +1,76 @@ package net.mdcreator.tpplus; import org.bukkit.ChatColor; i...
false
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { PluginDescriptionFile pdf = plugin.getDescription(); if(args.length==0){ sender.sendMessage(new String[] { title + "info", ChatColor.DARK_GRAY + "by " + ...
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { PluginDescriptionFile pdf = plugin.getDescription(); if(args.length==0){ sender.sendMessage(new String[] { title + "info", ChatColor.DARK_GRAY + "by " + ...
diff --git a/src/lib/com/izforge/izpack/installer/Unpacker.java b/src/lib/com/izforge/izpack/installer/Unpacker.java index 3dddc909..76a4dfc3 100644 --- a/src/lib/com/izforge/izpack/installer/Unpacker.java +++ b/src/lib/com/izforge/izpack/installer/Unpacker.java @@ -1,614 +1,619 @@ /* * $Id$ * IzPack - Copyright 2...
false
true
public void run() { addToInstances(); try { // // Initialisations FileOutputStream out = null; ArrayList<ParsableFile> parsables = new ArrayList<ParsableFile>(); ArrayList<ExecutableFile> executables = new ArrayList<ExecutableFi...
public void run() { addToInstances(); try { // // Initialisations FileOutputStream out = null; ArrayList<ParsableFile> parsables = new ArrayList<ParsableFile>(); ArrayList<ExecutableFile> executables = new ArrayList<ExecutableFi...
diff --git a/src/org/apache/xerces/util/URI.java b/src/org/apache/xerces/util/URI.java index 6c5e473bf..a6cafa4f6 100644 --- a/src/org/apache/xerces/util/URI.java +++ b/src/org/apache/xerces/util/URI.java @@ -1,1408 +1,1409 @@ /* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999-2002 The Apac...
true
true
private void initialize(URI p_base, String p_uriSpec) throws MalformedURIException { if (p_base == null && (p_uriSpec == null || p_uriSpec.trim().length() == 0)) { throw new MalformedURIException( "Cannot initialize URI with empty parameters."); } ...
private void initialize(URI p_base, String p_uriSpec) throws MalformedURIException { if (p_base == null && (p_uriSpec == null || p_uriSpec.trim().length() == 0)) { throw new MalformedURIException( "Cannot initialize URI with empty parameters."); } ...
diff --git a/src/com/intervigil/micdroid/MediaStoreHelper.java b/src/com/intervigil/micdroid/MediaStoreHelper.java index 2873ab8..5b4748a 100644 --- a/src/com/intervigil/micdroid/MediaStoreHelper.java +++ b/src/com/intervigil/micdroid/MediaStoreHelper.java @@ -1,104 +1,104 @@ /* MediaStoreHelper.java Copyright (...
true
true
public static boolean isInserted(Context context, File file) { ContentValues values = new ContentValues(); values.put(MediaStore.MediaColumns.DATA, file.getAbsolutePath()); values.put(MediaStore.MediaColumns.TITLE, file.getName()); Uri contentUri = MediaStore.Audio.Media.getContentUriForPath(file.getAbsolut...
public static boolean isInserted(Context context, File file) { ContentValues values = new ContentValues(); values.put(MediaStore.MediaColumns.DATA, file.getAbsolutePath()); values.put(MediaStore.MediaColumns.TITLE, file.getName()); Uri contentUri = MediaStore.Audio.Media.getContentUriForPath(file.getAbsolut...
diff --git a/src/main/java/com/philihp/weblabora/model/building/Inn.java b/src/main/java/com/philihp/weblabora/model/building/Inn.java index 10549c1..42de76e 100644 --- a/src/main/java/com/philihp/weblabora/model/building/Inn.java +++ b/src/main/java/com/philihp/weblabora/model/building/Inn.java @@ -1,42 +1,43 @@ pack...
true
true
public void use(Board board, UsageParam param) throws WeblaboraException { Player player = board.getPlayer(board.getActivePlayer()); int payout = 0; if(param.getWine() != 0) { param.subtractWine(1); payout += 6; } payout += Math.min((int)param.getFood(), 7); player.subtractAll(param); p...
public void use(Board board, UsageParam param) throws WeblaboraException { Player player = board.getPlayer(board.getActivePlayer()); int payout = 0; if(param.getWine() != 0) { param.subtractWine(1); player.subtractWine(1); payout += 6; } payout += Math.min((int)param.getFood(), 7); pla...
diff --git a/core/java/com/android/internal/widget/LockPatternView.java b/core/java/com/android/internal/widget/LockPatternView.java index 53be8911..cfcf1116 100644 --- a/core/java/com/android/internal/widget/LockPatternView.java +++ b/core/java/com/android/internal/widget/LockPatternView.java @@ -1,1015 +1,1015 @@ /*...
false
true
public boolean onTouchEvent(MotionEvent motionEvent) { if (!mInputEnabled || !isEnabled()) { return false; } final float x = motionEvent.getX(); final float y = motionEvent.getY(); Cell hitCell; switch(motionEvent.getAction()) { case MotionEve...
public boolean onTouchEvent(MotionEvent motionEvent) { if (!mInputEnabled || !isEnabled()) { return false; } final float x = motionEvent.getX(); final float y = motionEvent.getY(); Cell hitCell; switch(motionEvent.getAction()) { case MotionEve...
diff --git a/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/ProjectGroupTest.java b/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/ProjectGroupTest.java index efb1c5bd1..558e13dbd 100644 --- a/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/ProjectGroupTest.java +++ b/c...
true
true
public void testDefaultBuildDefinition() throws Exception { goToProjectGroupsSummaryPage(); showProjectGroup( DEFAULT_PROJ_GRP_NAME, DEFAULT_PROJ_GRP_ID, DEFAULT_PROJ_GRP_DESCRIPTION ); clickLinkWithText( "Build Definitions" ); String tableElement = "ec_table"; ...
public void testDefaultBuildDefinition() throws Exception { goToProjectGroupsSummaryPage(); showProjectGroup( DEFAULT_PROJ_GRP_NAME, DEFAULT_PROJ_GRP_ID, DEFAULT_PROJ_GRP_DESCRIPTION ); clickLinkWithText( "Build Definitions" ); String tableElement = "ec_table"; ...
diff --git a/continuum-web/src/main/java/org/apache/maven/continuum/web/tool/ContinuumStateContentGenerator.java b/continuum-web/src/main/java/org/apache/maven/continuum/web/tool/ContinuumStateContentGenerator.java index 91d76fcb2..813c0d531 100644 --- a/continuum-web/src/main/java/org/apache/maven/continuum/web/tool/C...
false
true
public String generate( Object item ) { int state; if ( item instanceof Project ) { Project project = (Project) item; state = project.getState(); } else { BuildResult buildResult = (BuildResult) item; state = buildR...
public String generate( Object item ) { int state; if ( item instanceof Project ) { Project project = (Project) item; state = project.getState(); } else { BuildResult buildResult = (BuildResult) item; state = buildR...
diff --git a/org.fedoraproject.eclipse.packager.koji/src/org/fedoraproject/eclipse/packager/koji/KojiMessageDialog.java b/org.fedoraproject.eclipse.packager.koji/src/org/fedoraproject/eclipse/packager/koji/KojiMessageDialog.java index 41c5718..c376adc 100644 --- a/org.fedoraproject.eclipse.packager.koji/src/org/fedorap...
true
true
protected Control createCustomArea(Composite parent) { FormText taskLink = new FormText(parent, SWT.NONE); final String url = kojiClient.getWebUrl() + "/koji/taskinfo?taskID=" //$NON-NLS-1$ + taskNo; taskLink.setText("<form><p>" + //$NON-NLS-1$ Messages.kojiMessageDialog_buildResponseMsg + "</p><p>"+ ur...
protected Control createCustomArea(Composite parent) { FormText taskLink = new FormText(parent, SWT.NONE); final String url = kojiClient.getWebUrl() + "/koji/taskinfo?taskID=" //$NON-NLS-1$ + taskNo; taskLink.setText("<form><p>" + //$NON-NLS-1$ Messages.kojiMessageDialog_buildResponseMsg + "</p><p>"+ ur...
diff --git a/cometd-java/client/src/test/java/org/cometd/client/BayeuxLoadGenerator.java b/cometd-java/client/src/test/java/org/cometd/client/BayeuxLoadGenerator.java index 8429272bd..8424cc007 100644 --- a/cometd-java/client/src/test/java/org/cometd/client/BayeuxLoadGenerator.java +++ b/cometd-java/client/src/test/jav...
true
true
public void generateLoad() throws Exception { Random random = new Random(); BufferedReader console = new BufferedReader(new InputStreamReader(System.in)); System.err.print("protocol [http]: "); String value = console.readLine().trim(); if (value.length() == 0) ...
public void generateLoad() throws Exception { Random random = new Random(); BufferedReader console = new BufferedReader(new InputStreamReader(System.in)); System.err.print("protocol [http]: "); String value = console.readLine().trim(); if (value.length() == 0) ...
diff --git a/src/com/farproc/wifi/connecter/MainActivity.java b/src/com/farproc/wifi/connecter/MainActivity.java index 8fe26e3..bdcc961 100644 --- a/src/com/farproc/wifi/connecter/MainActivity.java +++ b/src/com/farproc/wifi/connecter/MainActivity.java @@ -1,92 +1,93 @@ /* * Wifi Connecter * * Copyright (c) 201...
true
true
private void doNewIntent(final Intent intent) { mScanResult = intent.getParcelableExtra(EXTRA_HOTSPOT); if(isAdHoc(mScanResult)) { Toast.makeText(this, R.string.adhoc_not_supported_yet, Toast.LENGTH_LONG).show(); finish(); } final String security = Wifi.getScanResultSecurity(mScanResult); final W...
private void doNewIntent(final Intent intent) { mScanResult = intent.getParcelableExtra(EXTRA_HOTSPOT); if(isAdHoc(mScanResult)) { Toast.makeText(this, R.string.adhoc_not_supported_yet, Toast.LENGTH_LONG).show(); finish(); } final String security = Wifi.getScanResultSecurity(mScanResult); final W...
diff --git a/moho-impl/src/main/java/com/voxeo/moho/sip/JoinDelegate.java b/moho-impl/src/main/java/com/voxeo/moho/sip/JoinDelegate.java index 736d5813..398eaade 100644 --- a/moho-impl/src/main/java/com/voxeo/moho/sip/JoinDelegate.java +++ b/moho-impl/src/main/java/com/voxeo/moho/sip/JoinDelegate.java @@ -1,710 +1,710 ...
true
true
public synchronized void done(final Cause cause, Exception exception) { if(exception == null){ LOG.error("Join complete in error cause:"+ cause + " for joinDelegate" + this, exception); } else{ LOG.debug("Join complete with cause:"+ cause + " for joinDelegate" + this); } if (done)...
public synchronized void done(final Cause cause, Exception exception) { if(exception != null){ LOG.error("Join complete in error cause:"+ cause + " for joinDelegate" + this, exception); } else{ LOG.debug("Join complete with cause:"+ cause + " for joinDelegate" + this); } if (done)...
diff --git a/src/evopaint/gui/MainFrame.java b/src/evopaint/gui/MainFrame.java index bdd89a3..dd518f9 100644 --- a/src/evopaint/gui/MainFrame.java +++ b/src/evopaint/gui/MainFrame.java @@ -1,310 +1,309 @@ /* * Copyright (C) 2010 Markus Echterhoff <tam@edu.uni-klu.ac.at>, * Daniel Hoelbling (h...
false
true
public MainFrame(final Configuration configuration, EvoPaint evopaint) { this.configuration = configuration; this.contentPane = getContentPane(); setTitle("EvoPaint"); resumeCommand = new ResumeCommand(configuration); pauseCommand = new PauseCommand(configuration); ...
public MainFrame(final Configuration configuration, EvoPaint evopaint) { this.configuration = configuration; this.contentPane = getContentPane(); setTitle("EvoPaint"); resumeCommand = new ResumeCommand(configuration); pauseCommand = new PauseCommand(configuration); ...
diff --git a/voicelib/src/com/sun/mpk20/voicelib/app/FullVolumeSpatializer.java b/voicelib/src/com/sun/mpk20/voicelib/app/FullVolumeSpatializer.java index d941700..de1f650 100644 --- a/voicelib/src/com/sun/mpk20/voicelib/app/FullVolumeSpatializer.java +++ b/voicelib/src/com/sun/mpk20/voicelib/app/FullVolumeSpatializer....
false
true
public double[] spatialize(double sourceX, double sourceY, double sourceZ, double sourceOrientation, double destX, double destY, double destZ, double destOrientation) { double[] parameters = new double[4]; parameters...
public double[] spatialize(double sourceX, double sourceY, double sourceZ, double sourceOrientation, double destX, double destY, double destZ, double destOrientation) { double[] parameters = new double[4]; parameters...
diff --git a/src/main/java/com/araeosia/ArcherGames/CommandHandler.java b/src/main/java/com/araeosia/ArcherGames/CommandHandler.java index 2a8fdf1..0f96aa1 100644 --- a/src/main/java/com/araeosia/ArcherGames/CommandHandler.java +++ b/src/main/java/com/araeosia/ArcherGames/CommandHandler.java @@ -1,187 +1,188 @@ packag...
true
true
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { if (cmd.getName().equalsIgnoreCase("vote")) { sender.sendMessage(plugin.strings.get("voteinfo")); for (String s : plugin.voteSites) { sender.sendMessage(ChatColor.GREEN + s); return true; } } else if ...
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { if (cmd.getName().equalsIgnoreCase("vote")) { sender.sendMessage(plugin.strings.get("voteinfo")); for (String s : plugin.voteSites) { sender.sendMessage(ChatColor.GREEN + s); return true; } } else if ...
diff --git a/server/mmud/commands/LookCommand.java b/server/mmud/commands/LookCommand.java index 75ce3db9..3019a775 100644 --- a/server/mmud/commands/LookCommand.java +++ b/server/mmud/commands/LookCommand.java @@ -1,124 +1,129 @@ /*------------------------------------------------------------------------- cvsinfo: $H...
true
true
public boolean run(User aUser) throws ItemException, MudException { Logger.getLogger("mmud").finer(""); if (!super.run(aUser)) { return false; } // initialise string, important otherwise previous instances will return this theResult = null; String[] myParsed = getParsedCommand(); if (myParsed.leng...
public boolean run(User aUser) throws ItemException, MudException { Logger.getLogger("mmud").finer(""); if (!super.run(aUser)) { return false; } // initialise string, important otherwise previous instances will return this theResult = null; String[] myParsed = getParsedCommand(); if (myParsed.leng...
diff --git a/src/main/java/org/apache/bcel/generic/TABLESWITCH.java b/src/main/java/org/apache/bcel/generic/TABLESWITCH.java index 40756b2e..0ce9e4d1 100644 --- a/src/main/java/org/apache/bcel/generic/TABLESWITCH.java +++ b/src/main/java/org/apache/bcel/generic/TABLESWITCH.java @@ -1,107 +1,105 @@ /* * Copyright 20...
false
true
protected void initFromFile( ByteSequence bytes, boolean wide ) throws IOException { super.initFromFile(bytes, wide); int low = bytes.readInt(); int high = bytes.readInt(); match_length = high - low + 1; fixed_length = (short) (13 + match_length * 4); length = (short)...
protected void initFromFile( ByteSequence bytes, boolean wide ) throws IOException { super.initFromFile(bytes, wide); int low = bytes.readInt(); int high = bytes.readInt(); match_length = high - low + 1; fixed_length = (short) (13 + match_length * 4); length = (short)...
diff --git a/bridge/src/org/aspectj/bridge/WeaveMessage.java b/bridge/src/org/aspectj/bridge/WeaveMessage.java index e15abeae7..3f2e72297 100644 --- a/bridge/src/org/aspectj/bridge/WeaveMessage.java +++ b/bridge/src/org/aspectj/bridge/WeaveMessage.java @@ -1,75 +1,75 @@ /* *********************************************...
true
true
public static WeaveMessage constructWeavingMessage( WeaveMessageKind kind, String[] inserts) { StringBuffer str = new StringBuffer(kind.getMessage()); int pos = -1; while ((pos=str.indexOf("%"))!=-1) { int n = Character.getNumericValue(str.charAt(pos+1)); str.replace(pos,pos+2,inserts[n-1]); } re...
public static WeaveMessage constructWeavingMessage( WeaveMessageKind kind, String[] inserts) { StringBuffer str = new StringBuffer(kind.getMessage()); int pos = -1; while ((pos=new String(str).indexOf("%"))!=-1) { int n = Character.getNumericValue(str.charAt(pos+1)); str.replace(pos,pos+2,inserts[n-1...
diff --git a/src/main/java/v7db/files/Main.java b/src/main/java/v7db/files/Main.java index 2f216ea..dee524b 100644 --- a/src/main/java/v7db/files/Main.java +++ b/src/main/java/v7db/files/Main.java @@ -1,89 +1,90 @@ /** * Copyright (c) 2011, Thilo Planz. All rights reserved. * * This program is free software: you...
true
true
public static void main(String[] args) throws Exception { if (args.length == 2 && "-f".equals(args[0])) { File configFile = new File(args[1]); Properties config = new Properties(); config.load(new FileInputStream(configFile)); Configuration.init(config); } else if (args.length == 0) { Configuration...
public static void main(String[] args) throws Exception { if (args.length == 2 && "-f".equals(args[0])) { File configFile = new File(args[1]); Properties config = new Properties(); config.load(new FileInputStream(configFile)); Configuration.init(config); } else if (args.length == 0) { Configuration...
diff --git a/ValensContentProvider/src/ntnu/stud/valens/contentprovider/ValensDataProvider.java b/ValensContentProvider/src/ntnu/stud/valens/contentprovider/ValensDataProvider.java index 9cc856e..0b3aca3 100644 --- a/ValensContentProvider/src/ntnu/stud/valens/contentprovider/ValensDataProvider.java +++ b/ValensContentP...
false
true
public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { Cursor cursor = null; switch (URI_MATCHER.match(uri)) { case STEPS: if (TextUtils.isEmpty(sortOrder)) { sortOrder = "ASC"; } String querySteps = ""; if (selectionArgs.length == Steps...
public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { Cursor cursor = null; switch (URI_MATCHER.match(uri)) { case STEPS: if (TextUtils.isEmpty(sortOrder)) { sortOrder = "ASC"; } String querySteps = ""; if (selectionArgs.length == Steps...
diff --git a/membrane-esb/core/src/test/java/com/predic8/membrane/core/config/CustomRulesConfigurationTest.java b/membrane-esb/core/src/test/java/com/predic8/membrane/core/config/CustomRulesConfigurationTest.java index f852cabc..ec32d401 100644 --- a/membrane-esb/core/src/test/java/com/predic8/membrane/core/config/Cust...
true
true
public void testRulesConfig() throws Exception { StringWriter w = new StringWriter(); router.getConfigurationManager().getProxies() .write(XMLOutputFactory.newInstance().createXMLStreamWriter(w)); System.out.println(w); assertAttribute(w.toString(), "/proxies/serviceProxy/@name", "Service Proxy"); as...
public void testRulesConfig() throws Exception { StringWriter w = new StringWriter(); router.getConfigurationManager().getProxies() .write(XMLOutputFactory.newInstance().createXMLStreamWriter(w)); System.out.println(w); assertAttribute(w.toString(), "/proxies/serviceProxy/@name", "Service Proxy"); as...
diff --git a/src/org/encog/workbench/process/CreateTrainingData.java b/src/org/encog/workbench/process/CreateTrainingData.java index 8665edf6..22bac3b3 100644 --- a/src/org/encog/workbench/process/CreateTrainingData.java +++ b/src/org/encog/workbench/process/CreateTrainingData.java @@ -1,256 +1,256 @@ package org.enco...
true
true
public static void createMarketWindow() { CreateMarketTrainingDialog dialog = new CreateMarketTrainingDialog( EncogWorkBench.getInstance().getMainWindow()); dialog.getFromDay().setValue(1); dialog.getFromMonth().setValue(1); dialog.getFromYear().setValue(1995); dialog.getToDay().setValue(31); dia...
public static void createMarketWindow() { CreateMarketTrainingDialog dialog = new CreateMarketTrainingDialog( EncogWorkBench.getInstance().getMainWindow()); dialog.getFromDay().setValue(1); dialog.getFromMonth().setValue(1); dialog.getFromYear().setValue(1995); dialog.getToDay().setValue(31); dia...
diff --git a/src/com/android/camera/CameraScreenNail.java b/src/com/android/camera/CameraScreenNail.java index ed97e50d..ed7c8477 100644 --- a/src/com/android/camera/CameraScreenNail.java +++ b/src/com/android/camera/CameraScreenNail.java @@ -1,221 +1,220 @@ /* * Copyright (C) 2012 The Android Open Source Project ...
false
true
public void draw(GLCanvas canvas, int x, int y, int width, int height) { if (getSurfaceTexture() == null) return; synchronized (mLock) { if (!mFirstFrameArrived) return; if (!mVisible) mVisible = true; if (mAnimState == ANIM_NONE) { super.draw(can...
public void draw(GLCanvas canvas, int x, int y, int width, int height) { synchronized (mLock) { if (!mVisible) mVisible = true; if (getSurfaceTexture() == null || !mFirstFrameArrived) return; if (mAnimState == ANIM_NONE) { super.draw(canvas, x, y, width, ...
diff --git a/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java b/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java index a17e5472..8c44ff2e 100644 --- a/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java +++ b/site-manage-tool/tool/src/java/org/saka...
true
true
private String buildContextForTemplate (int index, VelocityPortlet portlet, Context context, RunData data, SessionState state) { String realmId = ""; String site_type = ""; String sortedBy = ""; String sortedAsc = ""; ParameterParser params = data.getParameters (); context.put("tlang",rb); c...
private String buildContextForTemplate (int index, VelocityPortlet portlet, Context context, RunData data, SessionState state) { String realmId = ""; String site_type = ""; String sortedBy = ""; String sortedAsc = ""; ParameterParser params = data.getParameters (); context.put("tlang",rb); c...
diff --git a/jbpm-designer-standalone/src/main/java/org/jbpm/designer/client/perspectives/HomePerspective.java b/jbpm-designer-standalone/src/main/java/org/jbpm/designer/client/perspectives/HomePerspective.java index c370fbabb..47eb1df5a 100644 --- a/jbpm-designer-standalone/src/main/java/org/jbpm/designer/client/persp...
true
true
public PerspectiveDefinition buildPerspective() { perspective = new PerspectiveDefinitionImpl(); perspective.setName( "Home" ); final PanelDefinition west = new PanelDefinitionImpl(); west.addPart(new PartDefinitionImpl(new DefaultPlaceRequest("FileExplorer"))); perspective...
public PerspectiveDefinition buildPerspective() { perspective = new PerspectiveDefinitionImpl(); perspective.setName( "Home" ); final PanelDefinition west = new PanelDefinitionImpl(); west.setWidth(300); west.setMinWidth(200); west.addPart(new PartDefinitionImpl(new ...
diff --git a/TFC_Shared/src/TFC/Items/ItemLeather.java b/TFC_Shared/src/TFC/Items/ItemLeather.java index da5c0c1c5..17fc9405d 100644 --- a/TFC_Shared/src/TFC/Items/ItemLeather.java +++ b/TFC_Shared/src/TFC/Items/ItemLeather.java @@ -1,91 +1,95 @@ package TFC.Items; import java.util.List; import net.minecraft.cli...
true
true
public ItemStack onItemRightClick(ItemStack itemstack, World par2World, EntityPlayer entityplayer) { PlayerInfo pi = PlayerManagerTFC.getInstance().getPlayerInfoFromPlayer(entityplayer); pi.specialCraftingType = new ItemStack(specialCraftingType, 1, itemstack.getItemDamage()); boolean hasKnife = false; ...
public ItemStack onItemRightClick(ItemStack itemstack, World par2World, EntityPlayer entityplayer) { PlayerInfo pi = PlayerManagerTFC.getInstance().getPlayerInfoFromPlayer(entityplayer); pi.specialCraftingType = new ItemStack(specialCraftingType, 1, itemstack.getItemDamage()); boolean hasKnife = false; ...
diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java index c337c307..cba1a3bd 100644 --- a/src/com/android/launcher2/Workspace.java +++ b/src/com/android/launcher2/Workspace.java @@ -1,1519 +1,1521 @@ /* * Copyright (C) 2008 The Android Open Source Project * * Licensed...
true
true
public boolean onInterceptTouchEvent(MotionEvent ev) { final boolean workspaceLocked = mLauncher.isWorkspaceLocked(); final boolean allAppsVisible = mLauncher.isAllAppsVisible(); if (workspaceLocked || allAppsVisible) { return false; // We don't want the events. Let them fall th...
public boolean onInterceptTouchEvent(MotionEvent ev) { final boolean workspaceLocked = mLauncher.isWorkspaceLocked(); final boolean allAppsVisible = mLauncher.isAllAppsVisible(); if (workspaceLocked || allAppsVisible) { return false; // We don't want the events. Let them fall th...
diff --git a/stripes/src/net/sourceforge/stripes/controller/HttpCacheInterceptor.java b/stripes/src/net/sourceforge/stripes/controller/HttpCacheInterceptor.java index 2c969e6..ef70bc6 100644 --- a/stripes/src/net/sourceforge/stripes/controller/HttpCacheInterceptor.java +++ b/stripes/src/net/sourceforge/stripes/controll...
false
true
protected HttpCache getAnnotation(Method method, Class<? extends ActionBean> beanClass) { // check cache first CacheKey cacheKey = new CacheKey(method, beanClass); if (cache.containsKey(cacheKey)) { HttpCache annotation = cache.get(cacheKey); return annotation; ...
protected HttpCache getAnnotation(Method method, Class<? extends ActionBean> beanClass) { // check cache first CacheKey cacheKey = new CacheKey(method, beanClass); if (cache.containsKey(cacheKey)) { HttpCache annotation = cache.get(cacheKey); return annotation; ...
diff --git a/src/org/apache/xalan/xslt/Process.java b/src/org/apache/xalan/xslt/Process.java index 5d0dc0c0..38ef2f51 100644 --- a/src/org/apache/xalan/xslt/Process.java +++ b/src/org/apache/xalan/xslt/Process.java @@ -1,1169 +1,1169 @@ /* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999-200...
true
true
public static void main(String argv[]) { // Runtime.getRuntime().traceMethodCalls(false); // turns Java tracing off boolean doStackDumpOnError = false; boolean setQuietMode = false; boolean doDiag = false; // Runtime.getRuntime().traceMethodCalls(false); // Runtime.getRuntime().traceIn...
public static void main(String argv[]) { // Runtime.getRuntime().traceMethodCalls(false); // turns Java tracing off boolean doStackDumpOnError = false; boolean setQuietMode = false; boolean doDiag = false; // Runtime.getRuntime().traceMethodCalls(false); // Runtime.getRuntime().traceIn...
diff --git a/api/src/main/java/org/openmrs/util/OpenmrsConstants.java b/api/src/main/java/org/openmrs/util/OpenmrsConstants.java index 41dc30ec..eac9aa57 100644 --- a/api/src/main/java/org/openmrs/util/OpenmrsConstants.java +++ b/api/src/main/java/org/openmrs/util/OpenmrsConstants.java @@ -1,1459 +1,1459 @@ /** * Th...
true
true
public static final List<GlobalProperty> CORE_GLOBAL_PROPERTIES() { List<GlobalProperty> props = new Vector<GlobalProperty>(); props.add(new GlobalProperty("use_patient_attribute.healthCenter", "false", "Indicates whether or not the 'health center' attribute is shown when viewing/searching for patient...
public static final List<GlobalProperty> CORE_GLOBAL_PROPERTIES() { List<GlobalProperty> props = new Vector<GlobalProperty>(); props.add(new GlobalProperty("use_patient_attribute.healthCenter", "false", "Indicates whether or not the 'health center' attribute is shown when viewing/searching for patient...
diff --git a/grails/src/java/org/codehaus/groovy/grails/web/metaclass/RedirectDynamicMethod.java b/grails/src/java/org/codehaus/groovy/grails/web/metaclass/RedirectDynamicMethod.java index 5fe537e88..492965457 100644 --- a/grails/src/java/org/codehaus/groovy/grails/web/metaclass/RedirectDynamicMethod.java +++ b/grails/...
true
true
public Object invoke(Object target, String methodName, Object[] arguments) { if(arguments.length == 0) throw new MissingMethodException(METHOD_SIGNATURE,target.getClass(),arguments); Map argMap = arguments[0] instanceof Map ? (Map)arguments[0] : Collections.EMPTY_MAP; if(argMap....
public Object invoke(Object target, String methodName, Object[] arguments) { if(arguments.length == 0) throw new MissingMethodException(METHOD_SIGNATURE,target.getClass(),arguments); Map argMap = arguments[0] instanceof Map ? (Map)arguments[0] : Collections.EMPTY_MAP; if(argMap....
diff --git a/src/com/jidesoft/dialog/BannerPanel.java b/src/com/jidesoft/dialog/BannerPanel.java index edf0334d..2f54b3d1 100644 --- a/src/com/jidesoft/dialog/BannerPanel.java +++ b/src/com/jidesoft/dialog/BannerPanel.java @@ -1,586 +1,596 @@ /* * @(#)BannerPanel.java * * Copyright 2002 - 2003 JIDE Software. All...
false
true
public void lazyInitialize() { removeAll(); _textPanel = new JPanel(new BorderLayout(5, 5)); _textPanel.setOpaque(false); _textPanel.setBorder(BorderFactory.createEmptyBorder(3, 10, 2, 10)); if (getSubTitleFont() == null) { setSubTitleFont(getFont()); } ...
public void lazyInitialize() { removeAll(); _textPanel = new JPanel(new BorderLayout(5, 5)); _textPanel.setOpaque(false); _textPanel.setBorder(BorderFactory.createEmptyBorder(3, 10, 2, 10)); if (getSubTitleFont() == null) { setSubTitleFont(getFont()); } ...
diff --git a/javafx.project/src/org/netbeans/modules/javafx/project/ui/customizer/CustomizerRun.java b/javafx.project/src/org/netbeans/modules/javafx/project/ui/customizer/CustomizerRun.java index 5406627c..73f7e6fa 100644 --- a/javafx.project/src/org/netbeans/modules/javafx/project/ui/customizer/CustomizerRun.java +++...
false
true
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; buttonGroup1 = new javax.swing.ButtonGroup(); configSep = new javax.swing.JSeparator(); configPanel = new javax.swing.JPanel(); configLabel = new javax.swing.JLabel(); configCombo = new j...
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; buttonGroup1 = new javax.swing.ButtonGroup(); configSep = new javax.swing.JSeparator(); configPanel = new javax.swing.JPanel(); configLabel = new javax.swing.JLabel(); configCombo = new j...
diff --git a/src/org/nyet/ecuxplot/AxisMenu.java b/src/org/nyet/ecuxplot/AxisMenu.java index cf986f3..2ad69b6 100644 --- a/src/org/nyet/ecuxplot/AxisMenu.java +++ b/src/org/nyet/ecuxplot/AxisMenu.java @@ -1,339 +1,340 @@ package org.nyet.ecuxplot; import java.util.Arrays; import java.util.HashMap; import java.uti...
false
true
private void add(String id, SubActionListener listener, ButtonGroup bg) { AbstractButton item = makeMenuItem(id, listener, bg); if(id.matches("RPM")) { this.add(item, 0); // always add rpms first! this.add("RPM - raw", listener, bg, 1); this.add("Calc Velocity", listener, bg); this.add("Ca...
private void add(String id, SubActionListener listener, ButtonGroup bg) { AbstractButton item = makeMenuItem(id, listener, bg); if(id.matches("RPM")) { this.add(item, 0); // always add rpms first! this.add("RPM - raw", listener, bg, 1); this.add("Calc Velocity", listener, bg); this.add("Ca...
diff --git a/blackboardvc-portlet-dao/src/test/java/org/jasig/portlet/blackboardvcportlet/dao/impl/BlackboardSessionDaoImplTest.java b/blackboardvc-portlet-dao/src/test/java/org/jasig/portlet/blackboardvcportlet/dao/impl/BlackboardSessionDaoImplTest.java index e8dd701..298c023 100644 --- a/blackboardvc-portlet-dao/src/...
false
true
public void testCreateUpdate() throws Exception { this.execute(new Callable<Object>() { @Override public Object call() { final SessionResponse sessionResponse = new SessionResponse(); sessionResponse.setSessionId(106582); sessionRespons...
public void testCreateUpdate() throws Exception { this.execute(new Callable<Object>() { @Override public Object call() { final SessionResponse sessionResponse = new SessionResponse(); sessionResponse.setSessionId(106582); sessionRespons...
diff --git a/wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/ScpWagon.java b/wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/ScpWagon.java index cecc0008..0adf1938 100644 --- a/wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/ScpWagon...
true
true
public void put( File source, String resourceName ) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException { String basedir = getRepository().getBasedir(); resourceName = StringUtils.replace( resourceName, "\\", "/" ); String dir = PathUtils.dirnam...
public void put( File source, String resourceName ) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException { String basedir = getRepository().getBasedir(); resourceName = StringUtils.replace( resourceName, "\\", "/" ); String dir = PathUtils.dirnam...
diff --git a/Chitanda/src/com/luzi82/chitanda/game/ui/GameScreen.java b/Chitanda/src/com/luzi82/chitanda/game/ui/GameScreen.java index 9ea3928..2cdeb52 100644 --- a/Chitanda/src/com/luzi82/chitanda/game/ui/GameScreen.java +++ b/Chitanda/src/com/luzi82/chitanda/game/ui/GameScreen.java @@ -1,470 +1,470 @@ package com.lu...
false
true
protected void onScreenLoad() { GL10 gl = Gdx.graphics.getGL10(); mBoard = new Board(); mBoard.setAll(true); mCamera = new OrthographicCamera(); mBasePixmap0 = new Pixmap(Gdx.files.internal("data/chitanda0.png")); mBasePixmap1 = new Pixmap(Gdx.files.internal("data/chitanda1.png")); mBaseTexture0 = new...
protected void onScreenLoad() { GL10 gl = Gdx.graphics.getGL10(); mBoard = new Board(); mBoard.setAll(true); mCamera = new OrthographicCamera(); mBasePixmap0 = new Pixmap(Gdx.files.internal("data/chitanda0.png")); mBasePixmap1 = new Pixmap(Gdx.files.internal("data/chitanda1.png")); mBaseTexture0 = new...
diff --git a/src/main/java/hudson/plugins/timestamper/annotator/TimestampAnnotatorFactory.java b/src/main/java/hudson/plugins/timestamper/annotator/TimestampAnnotatorFactory.java index 71b51a8..09b7f2e 100644 --- a/src/main/java/hudson/plugins/timestamper/annotator/TimestampAnnotatorFactory.java +++ b/src/main/java/hud...
false
true
private static long getOffset(StaplerRequest request) { String pathInfo = request.getPathInfo(); if (pathInfo.endsWith("/consoleFull")) { // Displaying the full log of a completed build. return 0; } if (pathInfo.endsWith("/console")) { // Displaying the tail of the log of a completed...
private static long getOffset(StaplerRequest request) { String path = request.getPathInfo(); if (path == null) { // JENKINS-16438 path = request.getServletPath(); } if (path.endsWith("/consoleFull")) { // Displaying the full log of a completed build. return 0; } if (pat...
diff --git a/Chat/src/info/tregmine/chat/ChatPlayer.java b/Chat/src/info/tregmine/chat/ChatPlayer.java index 70836bd..eb7c44a 100644 --- a/Chat/src/info/tregmine/chat/ChatPlayer.java +++ b/Chat/src/info/tregmine/chat/ChatPlayer.java @@ -1,97 +1,97 @@ package info.tregmine.chat; //import java.util.HashMap; import...
true
true
public void onPlayerChat(PlayerChatEvent event) { Player sender = event.getPlayer(); info.tregmine.api.TregminePlayer tregminePlayer = this.plugin.tregmine.tregminePlayer.get(sender.getName()); Player[] players = plugin.getServer().getOnlinePlayers(); if ( !this.plugin.lasttime.containsKey(tregminePlayer.get...
public void onPlayerChat(PlayerChatEvent event) { Player sender = event.getPlayer(); info.tregmine.api.TregminePlayer tregminePlayer = this.plugin.tregmine.tregminePlayer.get(sender.getName()); Player[] players = plugin.getServer().getOnlinePlayers(); if ( !this.plugin.lasttime.containsKey(tregminePlayer.get...
diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/beans/DataPropertyComparator.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/beans/DataPropertyComparator.java index d6d562384..796edaeb1 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/beans/DataPropertyComparator.java +++ b/webapp/src/edu/cornell/ma...
true
true
public int compare(Individual ind1, Individual ind2) { DataPropertyStatement dps1 = ind1.getDataPropertyStatement(dataPropertyUri); DataPropertyStatement dps2 = ind2.getDataPropertyStatement(dataPropertyUri); int result; // Push null values to the end of the list. /...
public int compare(Individual ind1, Individual ind2) { DataPropertyStatement dps1 = ind1.getDataPropertyStatement(dataPropertyUri); DataPropertyStatement dps2 = ind2.getDataPropertyStatement(dataPropertyUri); int result; // Push null values to the end of the list. /...
diff --git a/lucene/src/test-framework/org/apache/lucene/search/QueryUtils.java b/lucene/src/test-framework/org/apache/lucene/search/QueryUtils.java index e47d2fb5..83cfe0ca 100644 --- a/lucene/src/test-framework/org/apache/lucene/search/QueryUtils.java +++ b/lucene/src/test-framework/org/apache/lucene/search/QueryUtil...
true
true
public static void checkSkipTo(final Query q, final IndexSearcher s) throws IOException { //System.out.println("Checking "+q); if (q.weight(s).scoresDocsOutOfOrder()) return; // in this case order of skipTo() might differ from that of next(). final int skip_op = 0; final int next_op = 1; fi...
public static void checkSkipTo(final Query q, final IndexSearcher s) throws IOException { //System.out.println("Checking "+q); if (q.weight(s).scoresDocsOutOfOrder()) return; // in this case order of skipTo() might differ from that of next(). final int skip_op = 0; final int next_op = 1; fi...
diff --git a/src/main/java/org/jboss/loom/utils/el/ELUtils.java b/src/main/java/org/jboss/loom/utils/el/ELUtils.java index 344cb20..626ff05 100644 --- a/src/main/java/org/jboss/loom/utils/el/ELUtils.java +++ b/src/main/java/org/jboss/loom/utils/el/ELUtils.java @@ -1,43 +1,45 @@ package org.jboss.loom.utils.el; im...
false
true
public static void evaluateObjectMembersEL( Object obj, JuelCustomResolverEvaluator eval, EL.ResolvingStage stage ) { Class curClass = obj.getClass(); while( curClass != null && ! Object.class.equals( curClass ) ){ for( Field fld : curClass.getDeclaredFields() ){ ...
public static void evaluateObjectMembersEL( Object obj, JuelCustomResolverEvaluator eval, EL.ResolvingStage stage ) { Class curClass = obj.getClass(); while( curClass != null && ! Object.class.equals( curClass ) ){ for( Field fld : curClass.getDeclaredFields() ){ ...
diff --git a/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/parser/JavaScriptSourceParser.java b/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/parser/JavaScriptSourceParser.java index e6809529..3def2ce5 100644 --- a/plugins/org.eclipse.dltk.javascri...
true
true
private void processNode(ScriptOrFnNode parse, ModuleDeclaration moduleDeclaration) { for (int a = 0; a < parse.getFunctionCount(); a++) { FunctionNode functionNode = parse.getFunctionNode(a); functionNode.getFunctionName(); ISourceElementRequestor.MethodInfo methodInfo = new ISourceElementRequestor.MethodI...
private void processNode(ScriptOrFnNode parse, ModuleDeclaration moduleDeclaration) { for (int a = 0; a < parse.getFunctionCount(); a++) { FunctionNode functionNode = parse.getFunctionNode(a); functionNode.getFunctionName(); ISourceElementRequestor.MethodInfo methodInfo = new ISourceElementRequestor.MethodI...
diff --git a/src/com/bretth/osmosis/core/change/ChangeApplier.java b/src/com/bretth/osmosis/core/change/ChangeApplier.java index 4a05415a..90c92f39 100644 --- a/src/com/bretth/osmosis/core/change/ChangeApplier.java +++ b/src/com/bretth/osmosis/core/change/ChangeApplier.java @@ -1,228 +1,235 @@ package com.bretth.osmos...
true
true
public void run() { boolean completed = false; try { EntityByTypeThenIdComparator comparator; EntityContainer base = null; ChangeContainer change = null; // Create a comparator for comparing two entities by type and identifier. comparator = new EntityByTypeThenIdComparator(); // We con...
public void run() { boolean completed = false; try { EntityByTypeThenIdComparator comparator; EntityContainer base = null; ChangeContainer change = null; // Create a comparator for comparing two entities by type and identifier. comparator = new EntityByTypeThenIdComparator(); // We con...
diff --git a/src/uk/org/ponder/rsf/renderer/html/BasicHTMLRenderSystem.java b/src/uk/org/ponder/rsf/renderer/html/BasicHTMLRenderSystem.java index 1c388b1..e438d60 100644 --- a/src/uk/org/ponder/rsf/renderer/html/BasicHTMLRenderSystem.java +++ b/src/uk/org/ponder/rsf/renderer/html/BasicHTMLRenderSystem.java @@ -1,439 +...
true
true
public int renderComponent(UIComponent torendero, View view, XMLLump[] lumps, int lumpindex, PrintOutputStream pos) { XMLWriter xmlw = new XMLWriter(pos); XMLLump lump = lumps[lumpindex]; int nextpos = -1; XMLLump outerendopen = lump.open_end; XMLLump outerclose = lump.close_tag; nextpo...
public int renderComponent(UIComponent torendero, View view, XMLLump[] lumps, int lumpindex, PrintOutputStream pos) { XMLWriter xmlw = new XMLWriter(pos); XMLLump lump = lumps[lumpindex]; int nextpos = -1; XMLLump outerendopen = lump.open_end; XMLLump outerclose = lump.close_tag; nextpo...
diff --git a/bundles/org.eclipse.equinox.p2.ui.importexport/src/org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportWizard.java b/bundles/org.eclipse.equinox.p2.ui.importexport/src/org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportWizard.java index fa8b88ac8..f059fef8e 100644 --- a/bundl...
true
true
public void recomputePlan(IRunnableContext runnableContext) { if (((ImportPage) mainPage).hasUnloadedRepo()) { try { runnableContext.run(true, true, new IRunnableWithProgress() { public void run(IProgressMonitor monitor) throws InterruptedException { final SubMonitor sub = SubMonitor.convert(monito...
public void recomputePlan(IRunnableContext runnableContext) { if (((ImportPage) mainPage).hasUnloadedRepo()) { try { runnableContext.run(true, true, new IRunnableWithProgress() { public void run(IProgressMonitor monitor) throws InterruptedException { final SubMonitor sub = SubMonitor.convert(monito...
diff --git a/fog.routing.hrm/src/de/tuilmenau/ics/fog/routing/hierarchical/HRMRoutingService.java b/fog.routing.hrm/src/de/tuilmenau/ics/fog/routing/hierarchical/HRMRoutingService.java index ad28d369..2e781550 100644 --- a/fog.routing.hrm/src/de/tuilmenau/ics/fog/routing/hierarchical/HRMRoutingService.java +++ b/fog.ro...
true
true
public Route getRoute(ForwardingNode pSource, Name pDestination, Description pRequirements, Identity pRequester) throws RoutingException, RequirementsException { Route tResultRoute = null; L2Address tDestinationL2Address = null; L2Address tSourceL2Address = null; /** * Check parameters */ // check ...
public Route getRoute(ForwardingNode pSource, Name pDestination, Description pRequirements, Identity pRequester) throws RoutingException, RequirementsException { Route tResultRoute = null; L2Address tDestinationL2Address = null; L2Address tSourceL2Address = null; /** * Check parameters */ // check ...
diff --git a/src/org/python/core/PyString.java b/src/org/python/core/PyString.java index ffc1ca63..08c2783b 100644 --- a/src/org/python/core/PyString.java +++ b/src/org/python/core/PyString.java @@ -1,3120 +1,3120 @@ /// Copyright (c) Corporation for National Research Initiatives package org.python.core; import ja...
true
true
public PyString format(PyObject args) { PyObject dict = null; this.args = args; boolean needUnicode = unicodeCoercion; if (args instanceof PyTuple) { argIndex = 0; } else { // special index indicating a single item rather than a tuple argIn...
public PyString format(PyObject args) { PyObject dict = null; this.args = args; boolean needUnicode = unicodeCoercion; if (args instanceof PyTuple) { argIndex = 0; } else { // special index indicating a single item rather than a tuple argIn...
diff --git a/netbout/netbout-rest/src/main/java/com/netbout/rest/log/LogList.java b/netbout/netbout-rest/src/main/java/com/netbout/rest/log/LogList.java index 5f60b5ec7..b04d5561e 100644 --- a/netbout/netbout-rest/src/main/java/com/netbout/rest/log/LogList.java +++ b/netbout/netbout-rest/src/main/java/com/netbout/rest/...
true
true
public void append(final String text) { try { final String[] events = StringUtils.splitPreserveAllTokens( SecureString.valueOf(text).text(), LogList.SEP ); for (String event : events) { this.list.add(StringEscapeUtils.unesca...
public void append(final String text) { try { final String[] events = StringUtils.splitPreserveAllTokens( SecureString.valueOf(text).text(), LogList.SEP ); for (String event : events) { if (event.isEmpty()) { ...
diff --git a/xmpbox/src/main/java/org/apache/padaf/xmpbox/parser/DateConverter.java b/xmpbox/src/main/java/org/apache/padaf/xmpbox/parser/DateConverter.java index cde6230c..87990481 100644 --- a/xmpbox/src/main/java/org/apache/padaf/xmpbox/parser/DateConverter.java +++ b/xmpbox/src/main/java/org/apache/padaf/xmpbox/par...
true
true
public static Calendar toCalendar(String date) throws IOException { Calendar retval = null; if ((date != null) && (date.trim().length() > 0)) { // these are the default values int year = 0; int month = 1; int day = 1; int hour = 0; ...
public static Calendar toCalendar(String date) throws IOException { Calendar retval = null; if ((date != null) && (date.trim().length() > 0)) { // these are the default values int year = 0; int month = 1; int day = 1; int hour = 0; ...
diff --git a/web/src/sirius/web/http/Response.java b/web/src/sirius/web/http/Response.java index d418491..88d0d73 100644 --- a/web/src/sirius/web/http/Response.java +++ b/web/src/sirius/web/http/Response.java @@ -1,1121 +1,1121 @@ /* * Made with all the love in the world * by scireum in Remshalden, Germany * *...
true
true
public void tunnel(final String url) { try { AsyncHttpClient.BoundRequestBuilder brb = ASYNC_CLIENT.prepareGet(url); // Support caching... long ifModifiedSince = wc.getDateHeader(HttpHeaders.Names.IF_MODIFIED_SINCE); if (ifModifiedSince > 0) { ...
public void tunnel(final String url) { try { AsyncHttpClient.BoundRequestBuilder brb = ASYNC_CLIENT.prepareGet(url); // Support caching... long ifModifiedSince = wc.getDateHeader(HttpHeaders.Names.IF_MODIFIED_SINCE); if (ifModifiedSince > 0) { ...
diff --git a/com.ibm.wala.core/src/com/ibm/wala/ipa/callgraph/propagation/SSAPropagationCallGraphBuilder.java b/com.ibm.wala.core/src/com/ibm/wala/ipa/callgraph/propagation/SSAPropagationCallGraphBuilder.java index ee2673478..a53a169d4 100644 --- a/com.ibm.wala.core/src/com/ibm/wala/ipa/callgraph/propagation/SSAPropaga...
true
true
private void addExceptionDefConstraints(IR ir, DefUse du, CGNode node, List<ProgramCounter> peis, PointerKey exceptionVar, Set catchClasses) { boolean debug = false; if (DEBUG) { debug = Trace.guardedPrintln("Add exception def constraints for node " + node, DEBUG_METHOD_SUBSTRING); } for (...
private void addExceptionDefConstraints(IR ir, DefUse du, CGNode node, List<ProgramCounter> peis, PointerKey exceptionVar, Set catchClasses) { boolean debug = false; if (DEBUG) { debug = Trace.guardedPrintln("Add exception def constraints for node " + node, DEBUG_METHOD_SUBSTRING); } for (...
diff --git a/uk.ac.diamond.scisoft.analysis/src/uk/ac/diamond/scisoft/analysis/dataset/function/Histogram.java b/uk.ac.diamond.scisoft.analysis/src/uk/ac/diamond/scisoft/analysis/dataset/function/Histogram.java index 1ed93e6b2..32178eac2 100644 --- a/uk.ac.diamond.scisoft.analysis/src/uk/ac/diamond/scisoft/analysis/dat...
true
true
public List<AbstractDataset> value(IDataset... datasets) { if (datasets.length == 0) return null; List<AbstractDataset> result = new ArrayList<AbstractDataset>(); if (useEqualSpanBins) { for (IDataset ds : datasets) { if (bins == null) { bins = (DoubleDataset) DatasetUtils.linSpace(ds.min().doub...
public List<AbstractDataset> value(IDataset... datasets) { if (datasets.length == 0) return null; List<AbstractDataset> result = new ArrayList<AbstractDataset>(); if (useEqualSpanBins) { for (IDataset ds : datasets) { if (bins == null) { bins = (DoubleDataset) DatasetUtils.linSpace(ds.min().doub...
diff --git a/src/org/flowvisor/config/FlowSpaceHandler.java b/src/org/flowvisor/config/FlowSpaceHandler.java index c451c39..68ebdf4 100644 --- a/src/org/flowvisor/config/FlowSpaceHandler.java +++ b/src/org/flowvisor/config/FlowSpaceHandler.java @@ -1,102 +1,102 @@ package org.flowvisor.config; import java.util.Iter...
true
true
public void run() { while (!shutdown) { if (!isEmpty()) { //flowSpace = getFlowMap(); Iterator<Entry<Integer, List<FlowEntry>>> it = this.entrySet().iterator(); while (it.hasNext()) { Entry<Integer, List<FlowEntry>> entry = it.next(); for (FlowEntry fentry : entry.getValue()) { try { ...
public void run() { while (!shutdown) { if (!isEmpty()) { flowSpace = getFlowMap(); Iterator<Entry<Integer, List<FlowEntry>>> it = this.entrySet().iterator(); while (it.hasNext()) { Entry<Integer, List<FlowEntry>> entry = it.next(); for (FlowEntry fentry : entry.getValue()) { try { ...
diff --git a/src/org/broad/igv/sam/AbstractAlignment.java b/src/org/broad/igv/sam/AbstractAlignment.java index d7517f0b..ea45c223 100644 --- a/src/org/broad/igv/sam/AbstractAlignment.java +++ b/src/org/broad/igv/sam/AbstractAlignment.java @@ -1,282 +1,282 @@ /* * Copyright (c) 2007-2011 by The Broad Institute of MIT...
false
true
public String getValueString(double position, WindowFunction windowFunction) { // First check insertions. Position is zero based, block coords 1 based if (this.insertions != null) { for (AlignmentBlock block : this.insertions) { double insertionLeft = block.getStart() +...
public String getValueString(double position, WindowFunction windowFunction) { // First check insertions. Position is zero based, block coords 1 based if (this.insertions != null) { for (AlignmentBlock block : this.insertions) { double insertionLeft = block.getStart() -...
diff --git a/cadpage/src/net/anei/cadpage/parsers/MILivingstonCountyParser.java b/cadpage/src/net/anei/cadpage/parsers/MILivingstonCountyParser.java index 8cbaef6a0..04dd04af9 100644 --- a/cadpage/src/net/anei/cadpage/parsers/MILivingstonCountyParser.java +++ b/cadpage/src/net/anei/cadpage/parsers/MILivingstonCountyPar...
false
true
protected void parse(String body, Data data) { Log.v("DecodeLivingstonPage: Message Body of:" + body); data.defState="MI"; data.defCity = "LIVINGSTON COUNTY"; body = body.trim(); String[] AData = body.split(";"); data.strCall = AData[1]; parseAddress(AData[2], data); if (AData[3].lengt...
protected void parse(String body, Data data) { Log.v("DecodeLivingstonPage: Message Body of:" + body); data.defState="MI"; data.defCity = "LIVINGSTON COUNTY"; body = body.trim(); String[] AData = body.split(";"); data.strCall = AData[1]; if (AData.length <= 2) return; parseAddress(ADat...
diff --git a/core/src/main/java/org/apache/ftpserver/filesystem/nativefs/impl/NativeFtpFile.java b/core/src/main/java/org/apache/ftpserver/filesystem/nativefs/impl/NativeFtpFile.java index 400188a4..cbab9e3d 100644 --- a/core/src/main/java/org/apache/ftpserver/filesystem/nativefs/impl/NativeFtpFile.java +++ b/core/src/...
true
true
public final static String getPhysicalName(final String rootDir, final String currDir, final String fileName, final boolean caseInsensitive) { // get the starting directory String normalizedRootDir = normalizeSeparateChar(rootDir); if (normalizedRootDir.charAt(normal...
public final static String getPhysicalName(final String rootDir, final String currDir, final String fileName, final boolean caseInsensitive) { // get the starting directory String normalizedRootDir = normalizeSeparateChar(rootDir); if (normalizedRootDir.charAt(normal...
diff --git a/src/voodoodriver/SodaEventDriver.java b/src/voodoodriver/SodaEventDriver.java index 4500799..3952536 100644 --- a/src/voodoodriver/SodaEventDriver.java +++ b/src/voodoodriver/SodaEventDriver.java @@ -1,3237 +1,3237 @@ /* Copyright 2011 SugarCRM Inc. Licensed under the Apache License, Version 2.0 (the ...
true
true
private WebElement selectEvent(SodaHash event, WebElement parent) { boolean required = true; WebElement element = null; String setvalue = null; String msg = ""; boolean do_assert = false; boolean assert_direction = true; boolean included = false; boolean included_direction = true; boolean real = fals...
private WebElement selectEvent(SodaHash event, WebElement parent) { boolean required = true; WebElement element = null; String setvalue = null; String msg = ""; boolean do_assert = false; boolean assert_direction = true; boolean included = false; boolean included_direction = true; boolean real = fals...
diff --git a/src/main/java/hudson/plugins/emma/AbstractReport.java b/src/main/java/hudson/plugins/emma/AbstractReport.java index a3f7986..a384b65 100644 --- a/src/main/java/hudson/plugins/emma/AbstractReport.java +++ b/src/main/java/hudson/plugins/emma/AbstractReport.java @@ -1,70 +1,70 @@ package hudson.plugins.emma;...
true
true
public SELF getPreviousResult() { PARENT p = parent; while(true) { p = p.getPreviousResult(); if(p==null) return null; SELF prev = (SELF)parent.getChildren().get(name); if(prev!=null) return prev; } }
public SELF getPreviousResult() { PARENT p = parent; while(true) { p = p.getPreviousResult(); if(p==null) return null; SELF prev = (SELF)p.getChildren().get(name); if(prev!=null) return prev; } }
diff --git a/src/ru/spbau/bioinf/tagfinder/IntencityTableGenerator.java b/src/ru/spbau/bioinf/tagfinder/IntencityTableGenerator.java index 6061673..0379301 100644 --- a/src/ru/spbau/bioinf/tagfinder/IntencityTableGenerator.java +++ b/src/ru/spbau/bioinf/tagfinder/IntencityTableGenerator.java @@ -1,187 +1,187 @@ packag...
true
true
private static void printTable(double[][] res, String file, String caption, String label) throws Exception { double[][] res2 = new double[6][]; int max = 0; for (int gap = 1; gap <= 3; gap++) { BufferedReader in = ReaderUtil.createInputReader(new File("res", "share_" + file +...
private static void printTable(double[][] res, String file, String caption, String label) throws Exception { double[][] res2 = new double[6][]; int max = 0; for (int gap = 1; gap <= 3; gap++) { BufferedReader in = ReaderUtil.createInputReader(new File("res", "share_" + file +...
diff --git a/OsceManager/src/main/java/ch/unibas/medizin/osce/client/a_nonroo/client/ui/examinationPlan/StudentViewImpl.java b/OsceManager/src/main/java/ch/unibas/medizin/osce/client/a_nonroo/client/ui/examinationPlan/StudentViewImpl.java index dfbb1241..df0e731c 100644 --- a/OsceManager/src/main/java/ch/unibas/medizin...
false
true
public void showBreakBurationPopupView() { if(popupView==null) { popupView=new PopupViewImpl(); popupView.createEditBreakDurationPopupView(); ((PopupViewImpl)popupView).setAnimationEnabled(true); //checkForLunchBreak(previousAssignment); //if (previousAssignment != null && previousAssig...
public void showBreakBurationPopupView() { if(popupView==null) { popupView=new PopupViewImpl(); popupView.createEditBreakDurationPopupView(); ((PopupViewImpl)popupView).setAnimationEnabled(true); //checkForLunchBreak(previousAssignment); //if (previousAssignment != null && previousAssig...
diff --git a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/Saros.java b/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/Saros.java index 426a56913..e42106bd2 100644 --- a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/Saros.java +++ b/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/Saros.java @@ -1,700 +1,701 @@ /* * DPP...
true
true
public void connect(boolean failSilently) { /* * the Saros Configuration Wizard may call this again when invoking the * configureXMPPAccount method call, so abort here to prevent an already * logged in error */ // FIXME this "logic" should not be done here ! ...
public void connect(boolean failSilently) { /* * the Saros Configuration Wizard may call this again when invoking the * configureXMPPAccount method call, so abort here to prevent an already * logged in error */ // FIXME this "logic" should not be done here ! ...
diff --git a/axis2/src/main/java/org/apache/ode/axis2/util/OMUtils.java b/axis2/src/main/java/org/apache/ode/axis2/util/OMUtils.java index b876cb4b1..283184b08 100644 --- a/axis2/src/main/java/org/apache/ode/axis2/util/OMUtils.java +++ b/axis2/src/main/java/org/apache/ode/axis2/util/OMUtils.java @@ -1,218 +1,218 @@ /*...
false
true
public static OMElement toOM(Element src, OMFactory omf, OMContainer parent) throws AxisFault { OMNamespace elns = omf.createOMNamespace(src.getNamespaceURI(), src.getPrefix()); OMElement omElement = parent == null ? omf.createOMElement(src.getLocalName(),elns) : omf.createOMElement(src.getL...
public static OMElement toOM(Element src, OMFactory omf, OMContainer parent) throws AxisFault { OMNamespace elns = omf.createOMNamespace(src.getNamespaceURI(), src.getPrefix()); OMElement omElement = parent == null ? omf.createOMElement(src.getLocalName(),elns) : omf.createOMElement(src.getL...
diff --git a/CASi/src/de/uniluebeck/imis/casi/CASi.java b/CASi/src/de/uniluebeck/imis/casi/CASi.java index 3388473..8ebf39c 100644 --- a/CASi/src/de/uniluebeck/imis/casi/CASi.java +++ b/CASi/src/de/uniluebeck/imis/casi/CASi.java @@ -1,424 +1,424 @@ /* CASi Context Awareness Simulation Software * Copyright (C) 20...
false
true
private static void showHelp() { System.out.print("Welcome to the help mode"); showLogHeader(true); System.out .println("You are allowed to use the following parameter to customize the behaviour:"); // Single parameter System.out .println("\tFlags which can be used seperated or combined, e.g. '-vd' i...
private static void showHelp() { System.out.print("Welcome to the help mode"); showLogHeader(true); System.out .println("You are allowed to use the following parameter to customize the behaviour:"); // Single parameter System.out .println("\tFlags which can be used seperated or combined, e.g. '-vd' i...
diff --git a/lapg/org.textway.templates/src/org/textway/templates/types/ConstraintUtil.java b/lapg/org.textway.templates/src/org/textway/templates/types/ConstraintUtil.java index d22368ba..3caa29b6 100644 --- a/lapg/org.textway.templates/src/org/textway/templates/types/ConstraintUtil.java +++ b/lapg/org.textway.templat...
true
true
public static String validate(Object literal, Constraint constraint) { if(literal instanceof String) { String s = (String) literal; switch(constraint.getKind()) { case CHOICE: if(s.length() == 0) { break; } if(!(constraint.getParameters().contains(s.trim()))) { return "should be ...
public static String validate(Object literal, Constraint constraint) { if(literal instanceof String) { String s = (String) literal; switch(constraint.getKind()) { case CHOICE: if(s.length() == 0) { break; } if(!(constraint.getParameters().contains(s.trim()))) { return "should be ...
diff --git a/src/server/server/file/FileRead.java b/src/server/server/file/FileRead.java index ff6d0d4..da89e67 100644 --- a/src/server/server/file/FileRead.java +++ b/src/server/server/file/FileRead.java @@ -1,47 +1,47 @@ package server.file; import java.io.BufferedReader; import java.io.FileReader; import java....
true
true
public static boolean ReadConfig() { String file = JServer.rootDir + "config"; String cLine; String[][] str = new String[2][2]; try (BufferedReader bReader = new BufferedReader(new FileReader(file))) { int i = 0; while ((cLine = bReader.readLine()) != null) { if (cLine.trim().indexOf('#') == 0) co...
public static boolean ReadConfig() { String file = JServer.rootDir + "config"; String cLine; String[][] str = new String[2][2]; try (BufferedReader bReader = new BufferedReader(new FileReader(file))) { int i = 0; while ((cLine = bReader.readLine()) != null) { if (cLine.trim().indexOf('#') == 0) co...
diff --git a/jogger-core/src/main/java/org/jogger/middleware/statik/StaticMiddleware.java b/jogger-core/src/main/java/org/jogger/middleware/statik/StaticMiddleware.java index b0c7d2f..9db85cf 100644 --- a/jogger-core/src/main/java/org/jogger/middleware/statik/StaticMiddleware.java +++ b/jogger-core/src/main/java/org/jo...
true
true
public void handle(Request request, Response response, MiddlewareChain chain) throws Exception { // check if we have to handle the request or not String requestPath = fixRequestPath(request.getPath()); if (!requestPath.startsWith(prefix)) { chain.next(); return; } // only handle GET requests if (!...
public void handle(Request request, Response response, MiddlewareChain chain) throws Exception { // check if we have to handle the request or not String requestPath = fixRequestPath(request.getPath()); if (!requestPath.startsWith(prefix)) { chain.next(); return; } // only handle GET requests if (!...
diff --git a/blocks/sublima-app/src/main/java/com/computas/sublima/app/controller/Search.java b/blocks/sublima-app/src/main/java/com/computas/sublima/app/controller/Search.java index 6965fa09..e1f00663 100644 --- a/blocks/sublima-app/src/main/java/com/computas/sublima/app/controller/Search.java +++ b/blocks/sublima-app...
false
true
private void doGetTopic(AppleResponse res, AppleRequest req) { String subject = "<http://sublima.computas.com/topic-instance/" + req.getSitemapParameter("topic") + ">"; String queryString = StringUtils.join("\n", new String[]{ "PREFIX dct: <http://purl.org/dc/terms/>", "PREFIX rdfs: <...
private void doGetTopic(AppleResponse res, AppleRequest req) { String subject = "<http://sublima.computas.com/topic-instance/" + req.getSitemapParameter("topic") + ">"; String queryString = StringUtils.join("\n", new String[]{ "PREFIX dct: <http://purl.org/dc/terms/>", "PREFIX rdfs: <...
diff --git a/src/com/rabbitmessenger/server/RabbitCommunication.java b/src/com/rabbitmessenger/server/RabbitCommunication.java index 2152fea..ea55151 100644 --- a/src/com/rabbitmessenger/server/RabbitCommunication.java +++ b/src/com/rabbitmessenger/server/RabbitCommunication.java @@ -1,101 +1,101 @@ /* * This file i...
true
true
private static boolean sendURL(String inputUrl) { inputUrl = inputUrl.replaceAll(" ", "%20"); log.fine("Calling URL: " + inputUrl); boolean result = false; try { URL url = new URL(inputUrl); HttpURLConnection connection = (HttpURLConnection) url .openConnection(); connection.setRequestProper...
private static boolean sendURL(String inputUrl) { inputUrl = inputUrl.replaceAll(" ", "%20"); log.fine("Calling URL: " + inputUrl); boolean result = false; try { URL url = new URL(inputUrl); HttpURLConnection connection = (HttpURLConnection) url .openConnection(); connection.setRequestProper...
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java index b0837e5b..54457e52 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java @@ -1,276 +1,276 @@ ...
false
true
private FetchResult fetch(Repository repo, URIish u) throws URISyntaxException, JGitInternalException, InvalidRemoteException, IOException { // create the remote config and save it RemoteConfig config = new RemoteConfig(repo.getConfig(), remote); config.addURI(u); final String dst = Constants.R_REMOT...
private FetchResult fetch(Repository repo, URIish u) throws URISyntaxException, JGitInternalException, InvalidRemoteException, IOException { // create the remote config and save it RemoteConfig config = new RemoteConfig(repo.getConfig(), remote); config.addURI(u); final String dst = Constants.R_REMOT...
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)) { ...