Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/main/java/org/sakaiproject/nakamura/lite/storage/jdbc/JDBCStorageClient.java b/src/main/java/org/sakaiproject/nakamura/lite/storage/jdbc/JDBCStorageClient.java index 03db596..1a7b751 100644 --- a/src/main/java/org/sakaiproject/nakamura/lite/storage/jdbc/JDBCStorageClient.java +++ b/src/main/java/org/sa...
false
true
public void insert(String keySpace, String columnFamily, String key, Map<String, Object> values, boolean probablyNew) throws StorageClientException { checkClosed(); Map<String, PreparedStatement> statementCache = Maps.newHashMap(); boolean autoCommit = true; try { ...
public void insert(String keySpace, String columnFamily, String key, Map<String, Object> values, boolean probablyNew) throws StorageClientException { checkClosed(); Map<String, PreparedStatement> statementCache = Maps.newHashMap(); boolean autoCommit = true; try { ...
diff --git a/overwatch/src/overwatch/db/Database.java b/overwatch/src/overwatch/db/Database.java index 4298835..72f365f 100644 --- a/overwatch/src/overwatch/db/Database.java +++ b/overwatch/src/overwatch/db/Database.java @@ -1,272 +1,274 @@ package overwatch.db; import java.sql.Connection; import java.sql.Pr...
true
true
public static EnhancedResultSet query( String sql ) { Connection conn = getConnection(); EnhancedResultSet ers = null; try { Statement st = conn.createStatement(); ers = new EnhancedResultSet( st.executeQuery(sql) ); st.close(); } catch (SQLException ex) { throw new RuntimeExceptio...
public static EnhancedResultSet query( String sql ) { Connection conn = getConnection(); EnhancedResultSet ers = null; try { Statement st = conn.createStatement(); ResultSet rs = st.executeQuery( sql ); ers = new EnhancedResultSet( rs ); rs.close(); st.close(); } catc...
diff --git a/Camml/camml/test/core/models/dTree/TestMLDTreeLearner.java b/Camml/camml/test/core/models/dTree/TestMLDTreeLearner.java index 9221b4d..1a30053 100644 --- a/Camml/camml/test/core/models/dTree/TestMLDTreeLearner.java +++ b/Camml/camml/test/core/models/dTree/TestMLDTreeLearner.java @@ -1,92 +1,92 @@ // //JU...
true
true
public final void testMLTreeVsCPT() throws Exception { Value.Vector data = Weka.load("/home/rodo/Repository/data/UCI/medium/letter.symbolic.arff", false, false); for (int ii = 0; ii < 3; ii++) { Value.Vector x = data.cmpnt(0); int[] cmpnts = new int[ii]; for (int i = 0; i < cmpnts.length; i++) {...
public final void testMLTreeVsCPT() throws Exception { Value.Vector data = Weka.load("camml/test/letter.symbolic.arff", false, false); for (int ii = 0; ii < 3; ii++) { Value.Vector x = data.cmpnt(0); int[] cmpnts = new int[ii]; for (int i = 0; i < cmpnts.length; i++) { cmpnts[i] = i+1;} Value....
diff --git a/plugins/org.eclipse.dltk.ruby.launching/src/org/eclipse/dltk/ruby/internal/launching/RubyInterpreterRunner.java b/plugins/org.eclipse.dltk.ruby.launching/src/org/eclipse/dltk/ruby/internal/launching/RubyInterpreterRunner.java index 1e8a3e79..90b2dd90 100644 --- a/plugins/org.eclipse.dltk.ruby.launching/src...
true
true
public RubyInterpreterRunner(IInterpreterInstall InterpreterInstance) { super(InterpreterInstance); }
public RubyInterpreterRunner(IInterpreterInstall install) { super(install); }
diff --git a/src/be/ibridge/kettle/job/entry/ftp/JobEntryFTP.java b/src/be/ibridge/kettle/job/entry/ftp/JobEntryFTP.java index abbc293e..0ae01d3e 100644 --- a/src/be/ibridge/kettle/job/entry/ftp/JobEntryFTP.java +++ b/src/be/ibridge/kettle/job/entry/ftp/JobEntryFTP.java @@ -1,548 +1,551 @@ /**************************...
false
true
public Result execute(Result prev_result, int nr, Repository rep, Job parentJob) { LogWriter log = LogWriter.getInstance(); log4j.info("Started FTP job to "+serverName); Result result = new Result(nr); result.setResult( false ); long filesRetrieved = 0; log.logDetailed(toString(), "Start of FTP j...
public Result execute(Result prev_result, int nr, Repository rep, Job parentJob) { LogWriter log = LogWriter.getInstance(); log4j.info("Started FTP job to "+serverName); Result result = new Result(nr); result.setResult( false ); long filesRetrieved = 0; log.logDetailed(toString(), "Start of FTP j...
diff --git a/ardor3d-awt/src/main/java/com/ardor3d/input/awt/AwtMouseWrapper.java b/ardor3d-awt/src/main/java/com/ardor3d/input/awt/AwtMouseWrapper.java index e9ea264..547c5f4 100644 --- a/ardor3d-awt/src/main/java/com/ardor3d/input/awt/AwtMouseWrapper.java +++ b/ardor3d-awt/src/main/java/com/ardor3d/input/awt/AwtMouse...
true
true
public synchronized void mouseMoved(final MouseEvent e) { _clickArmed.clear(); _clicks.clear(); // check that we have a valid _lastState initState(e); // remember our current ardor3d position final int oldX = _lastState.getX(), oldY = _lastState.getY(); // ...
public synchronized void mouseMoved(final MouseEvent e) { _clickArmed.clear(); _clicks.clear(); // check that we have a valid _lastState initState(e); // remember our current ardor3d position final int oldX = _lastState.getX(), oldY = _lastState.getY(); // ...
diff --git a/Interpreter/src/edu/tum/lua/junit/ToNumberTest.java b/Interpreter/src/edu/tum/lua/junit/ToNumberTest.java index 0aaa665..337de2f 100644 --- a/Interpreter/src/edu/tum/lua/junit/ToNumberTest.java +++ b/Interpreter/src/edu/tum/lua/junit/ToNumberTest.java @@ -1,44 +1,44 @@ package edu.tum.lua.junit; import...
true
true
public void test() { ToNumber p = new ToNumber(); LinkedList<Object> l; l = new LinkedList<Object>(); try { p.apply(l); fail("Accept empty input"); } catch (LuaRuntimeException e) { assertTrue("Don't accept empty input", true); } catch (Exception e) { fail("Unknow exception"); } l.add("1...
public void test() { ToNumber p = new ToNumber(); LinkedList<Object> l; l = new LinkedList<Object>(); try { p.apply(l); fail("Accept empty input"); } catch (LuaRuntimeException e) { assertTrue("Don't accept empty input", true); } catch (Exception e) { fail("Unknow exception"); } l.add("1...
diff --git a/plugins/org.eclipse.birt.report.engine.emitter.postscript/src/org/eclipse/birt/report/engine/emitter/postscript/PostscriptWriter.java b/plugins/org.eclipse.birt.report.engine.emitter.postscript/src/org/eclipse/birt/report/engine/emitter/postscript/PostscriptWriter.java index bf233c02f..146598916 100644 ---...
true
true
public void drawBackgroundImage( String imageURI, float x, float y, float width, float height, float imageWidth, float imageHeight, float positionX, float positionY, int repeat ) throws IOException { if ( imageURI == null || imageURI.length( ) == 0 ) { return; } org.eclipse.birt.report.engine.layout....
public void drawBackgroundImage( String imageURI, float x, float y, float width, float height, float imageWidth, float imageHeight, float positionX, float positionY, int repeat ) throws IOException { if ( imageURI == null || imageURI.length( ) == 0 ) { return; } org.eclipse.birt.report.engine.layout....
diff --git a/src/com/linkomnia/android/StrokeFiveKeyboard/Stroke5Table.java b/src/com/linkomnia/android/StrokeFiveKeyboard/Stroke5Table.java index e1b912f..1f5f71c 100644 --- a/src/com/linkomnia/android/StrokeFiveKeyboard/Stroke5Table.java +++ b/src/com/linkomnia/android/StrokeFiveKeyboard/Stroke5Table.java @@ -1,83 +1...
false
true
public ArrayList<String> searchRecord(String input) { ArrayList<String> result = new ArrayList<String>(); String[] args = {input}; String order = Stroke5Table.COLUMN_USAGE+" DESC , "+ Stroke5Table.COLUMN_ID +" ASC"; Cursor cursor = database.query(Stroke5Table.TABLE_NAME, ...
public ArrayList<String> searchRecord(String input) { ArrayList<String> result = new ArrayList<String>(); String[] args = {input+"%"}; String groupby = " " + Stroke5Table.COLUMN_CODE + " "; String order = Stroke5Table.COLUMN_USAGE+" DESC , "+ Stroke5Table.COLUMN_ID +" ASC "; ...
diff --git a/source/de/anomic/http/httpdFileHandler.java b/source/de/anomic/http/httpdFileHandler.java index 78240b13e..92723e514 100644 --- a/source/de/anomic/http/httpdFileHandler.java +++ b/source/de/anomic/http/httpdFileHandler.java @@ -1,1003 +1,1003 @@ // httpdFileHandler.java // ----------------------- // (C)...
true
true
public static void doResponse(final Properties conProp, final httpRequestHeader requestHeader, final OutputStream out, final InputStream body) { String path = null; try { // getting some connection properties final String method = conProp.getProperty(http...
public static void doResponse(final Properties conProp, final httpRequestHeader requestHeader, final OutputStream out, final InputStream body) { String path = null; try { // getting some connection properties final String method = conProp.getProperty(http...
diff --git a/src/cz/muni/stanse/codestructures/traversal/CFGTraversal.java b/src/cz/muni/stanse/codestructures/traversal/CFGTraversal.java index f4ec0aa..536ea33 100644 --- a/src/cz/muni/stanse/codestructures/traversal/CFGTraversal.java +++ b/src/cz/muni/stanse/codestructures/traversal/CFGTraversal.java @@ -1,374 +1,38...
false
true
private static void traverseCFGPathsInterprocedural( final LinkedList<CFGNode> path, final CFGNodeFollowersInterprocedural nodeFollowers, final CFGPathVisitor visitor, final Stack<HashSet<Pair<CFGNode,CFGNode>>> visitedStack, ...
private static void traverseCFGPathsInterprocedural( final LinkedList<CFGNode> path, final CFGNodeFollowersInterprocedural nodeFollowers, final CFGPathVisitor visitor, final Stack<HashSet<Pair<CFGNode,CFGNode>>> visitedStack, ...
diff --git a/src/eionet/meta/exports/ods/OdsServlet.java b/src/eionet/meta/exports/ods/OdsServlet.java index 998fc8a7..cc7bbff3 100644 --- a/src/eionet/meta/exports/ods/OdsServlet.java +++ b/src/eionet/meta/exports/ods/OdsServlet.java @@ -1,222 +1,223 @@ /* * Created on 4.05.2006 * * To change the template for t...
true
true
protected void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { Connection conn = null; String workingFolderPath = null; try{ // get object id String id = req.getParameter("id"); if (Util.voidStr(id)) throw new Exception...
protected void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { Connection conn = null; String workingFolderPath = null; try{ // get object id String id = req.getParameter("id"); if (Util.voidStr(id)) throw new Exception...
diff --git a/src/com/bekvon/bukkit/residence/listeners/ResidencePlayerListener.java b/src/com/bekvon/bukkit/residence/listeners/ResidencePlayerListener.java index 1d1ad32..20fed19 100644 --- a/src/com/bekvon/bukkit/residence/listeners/ResidencePlayerListener.java +++ b/src/com/bekvon/bukkit/residence/listeners/Residenc...
false
true
public void onPlayerMove(PlayerMoveEvent event) { if(event.getFrom().distance(event.getTo()) == 0) { return; } Player player = event.getPlayer(); ILog.sendToPlayer(player, "onPlayerMove("+event.getFrom().distance(event.getTo())+") Fired"); String pname = player.get...
public void onPlayerMove(PlayerMoveEvent event) { if(event.getFrom().getWorld() == event.getTo().getWorld()) if(event.getFrom().distance(event.getTo()) == 0) return; Player player = event.getPlayer(); ILog.sendToPlayer(player, "onPlayerMove("+event.getFrom().distance(eve...
diff --git a/src/algvis/avltree/AVLNode.java b/src/algvis/avltree/AVLNode.java index 5b3b1a9..c394309 100644 --- a/src/algvis/avltree/AVLNode.java +++ b/src/algvis/avltree/AVLNode.java @@ -1,116 +1,116 @@ package algvis.avltree; import java.awt.Color; import algvis.bst.BSTNode; import algvis.core.NodeColor; im...
true
true
public void draw(View V) { if (state == Node.INVISIBLE || key == NULL) { return; } drawBg(V); drawArrow(V); drawArc(V); int xx = x - Node.radius, yy = y - Node.radius, dx = 2 * Node.radius, dy = 2 * Node.radius; String b = ""; if (getColor() == NodeColor.NORMAL) { V.setColor(Color.ORANGE); sw...
public void draw(View V) { if (state == Node.INVISIBLE || key == NULL) { return; } drawBg(V); drawArrow(V); drawArc(V); int xx = x - Node.radius, yy = y - Node.radius, dx = 2 * Node.radius, dy = 2 * Node.radius; String b = ""; if (getBgColor() == NodeColor.NORMAL.bgColor) { V.setColor(Color.ORAN...
diff --git a/src/be/ibridge/kettle/core/database/DatabaseMetaInformation.java b/src/be/ibridge/kettle/core/database/DatabaseMetaInformation.java index 84197f58..f75f4092 100644 --- a/src/be/ibridge/kettle/core/database/DatabaseMetaInformation.java +++ b/src/be/ibridge/kettle/core/database/DatabaseMetaInformation.java @...
true
true
public void getData(IProgressMonitor monitor) throws KettleDatabaseException { if (monitor!=null) { monitor.beginTask("Getting information from the database...", 8); } Database db = new Database(dbInfo); try { if (monitor!=null) monitor.subTask("Connecting to database"); db.connect(); if (mo...
public void getData(IProgressMonitor monitor) throws KettleDatabaseException { if (monitor!=null) { monitor.beginTask("Getting information from the database...", 8); } Database db = new Database(dbInfo); try { if (monitor!=null) monitor.subTask("Connecting to database"); db.connect(); if (mo...
diff --git a/plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/impl/LocalVariableInstructionImpl.java b/plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/impl/LocalVariableInstructionImpl.java index 0d551a05..02a1d20c 100644 --- a/plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/at...
false
true
public LocalVariable getLocalVariable() { if (localVariable == null) { if (cbOffset != CB_OFFSET_EDEFAULT && localVariableIndex != LOCAL_VARIABLE_INDEX_EDEFAULT) { final CodeBlock cb = getOwningBlock(); if (cb != null) { final int index = cb.getCode().indexOf(this); assert index > -1; CodeB...
public LocalVariable getLocalVariable() { if (localVariable == null) { if (cbOffset != CB_OFFSET_EDEFAULT && localVariableIndex != LOCAL_VARIABLE_INDEX_EDEFAULT) { final CodeBlock cb = getOwningBlock(); if (cb != null) { final int index = cb.getCode().indexOf(this); assert index > -1; CodeB...
diff --git a/chapter03/http/src/test/java/com/muleinaction/HttpPollingFunctionalTestCase.java b/chapter03/http/src/test/java/com/muleinaction/HttpPollingFunctionalTestCase.java index 66e4282..b2fe1f5 100644 --- a/chapter03/http/src/test/java/com/muleinaction/HttpPollingFunctionalTestCase.java +++ b/chapter03/http/src/t...
true
true
protected void doSetUp() throws Exception { super.doSetUp(); FileUtils.cleanDirectory(new File(DEST_DIRECTORY)); for (Object o : FileUtils.listFiles(new File(DEST_DIRECTORY), new String[]{"html"}, false)) { File file = (File) o; file.delete(); } mule...
protected void doSetUp() throws Exception { super.doSetUp(); for (Object o : FileUtils.listFiles(new File(DEST_DIRECTORY), new String[]{"html"}, false)) { File file = (File) o; file.delete(); } muleContext.registerListener(new EndpointMessageNotificationList...
diff --git a/src/kg/apc/jmeter/gui/CopyRowAction.java b/src/kg/apc/jmeter/gui/CopyRowAction.java index 6f912494..569249ba 100644 --- a/src/kg/apc/jmeter/gui/CopyRowAction.java +++ b/src/kg/apc/jmeter/gui/CopyRowAction.java @@ -1,52 +1,52 @@ package kg.apc.jmeter.gui; import java.awt.event.ActionEvent; import java....
true
true
public void actionPerformed(ActionEvent e) { if (grid.isEditing()) { TableCellEditor cellEditor = grid.getCellEditor(grid.getEditingRow(), grid.getEditingColumn()); cellEditor.stopCellEditing(); } final int selectedRow = grid.getSelectedRow(); if (tableModel....
public void actionPerformed(ActionEvent e) { if (grid.isEditing()) { TableCellEditor cellEditor = grid.getCellEditor(grid.getEditingRow(), grid.getEditingColumn()); cellEditor.stopCellEditing(); } final int selectedRow = grid.getSelectedRow(); if (tableModel....
diff --git a/src/minecraft/kaijin/InventoryStocker/BlockInventoryStocker.java b/src/minecraft/kaijin/InventoryStocker/BlockInventoryStocker.java index 82b923f..ec8fe51 100644 --- a/src/minecraft/kaijin/InventoryStocker/BlockInventoryStocker.java +++ b/src/minecraft/kaijin/InventoryStocker/BlockInventoryStocker.java @@ ...
false
true
public int getBlockTextureFromSideAndMetadata(int i, int m) { int dir = m & 7; if (dir == i) { // front face return 1; } if (dir <= 1) // Up or down { if (i >= 4) { return 18; // Side face } if (i >= 2) { return 16; // Top/bottom face } return 0; // Back face } if (...
public int getBlockTextureFromSideAndMetadata(int i, int m) { int dir = m & 7; if (dir == i) { // front face return 1; } if (dir <= 1) // Up or down { if (i >= 4) { return 16; // Side face } if (i >= 2) { return 16; // Top/bottom face (as sides, so using 16 instead of 18 for ...
diff --git a/tests/org.eclipse.graphiti.testtool.sketch/src/org/eclipse/graphiti/testtool/sketch/features/SketchResizeShapeFeature.java b/tests/org.eclipse.graphiti.testtool.sketch/src/org/eclipse/graphiti/testtool/sketch/features/SketchResizeShapeFeature.java index 07be0d0b..e93ac0e2 100644 --- a/tests/org.eclipse.gra...
false
true
public IResizeConfiguration getResizeConfiguration() { return new DefaultResizeConfiguration() { @Override public boolean isHorizantalResizeAllowed() { return false; } }; }
public IResizeConfiguration getResizeConfiguration(IResizeShapeContext context) { return new DefaultResizeConfiguration() { @Override public boolean isHorizontalResizeAllowed() { return false; } }; }
diff --git a/src/com/nexus/webserver/WebServer.java b/src/com/nexus/webserver/WebServer.java index f3af486..0c64187 100644 --- a/src/com/nexus/webserver/WebServer.java +++ b/src/com/nexus/webserver/WebServer.java @@ -1,135 +1,135 @@ package com.nexus.webserver; import java.io.IOException; import java.net.InetSocke...
true
true
public void run(){ WebServer.Log.info("Server starting..."); try{ SocketChannel = ServerSocketChannel.open(); SocketChannel.configureBlocking(false); Socket = this.SocketChannel.socket(); Socket.bind(this.Address); SocketSelector = Selector.open(); SocketChannel.register(SocketSelector, SocketCha...
public void run(){ WebServer.Log.info("Server starting..."); try{ SocketChannel = ServerSocketChannel.open(); SocketChannel.configureBlocking(false); Socket = this.SocketChannel.socket(); Socket.bind(this.Address); SocketSelector = Selector.open(); SocketChannel.register(SocketSelector, SocketCha...
diff --git a/src/main/java/de/hd/cl/haas/distributedcrawl/map/IndexerMap.java b/src/main/java/de/hd/cl/haas/distributedcrawl/map/IndexerMap.java index 5cddf4c..49aca78 100644 --- a/src/main/java/de/hd/cl/haas/distributedcrawl/map/IndexerMap.java +++ b/src/main/java/de/hd/cl/haas/distributedcrawl/map/IndexerMap.java @@ ...
false
true
protected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException { System.out.println("key is " + key.toString()); System.out.println("value is " + value.toString()); URL url = new URL(value.toString()); url.openConnection(); InputStr...
protected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException { System.out.println("key is " + key.toString()); System.out.println("value is " + value.toString()); URL url = new URL(value.toString()); url.openConnection(); InputStr...
diff --git a/src/com/fsck/k9/view/MessageWebView.java b/src/com/fsck/k9/view/MessageWebView.java index 6ec7f50b..e81016df 100644 --- a/src/com/fsck/k9/view/MessageWebView.java +++ b/src/com/fsck/k9/view/MessageWebView.java @@ -1,154 +1,160 @@ package com.fsck.k9.view; import android.content.Context; import android...
true
true
public void configure() { this.setVerticalScrollBarEnabled(true); this.setVerticalScrollbarOverlay(true); this.setScrollBarStyle(SCROLLBARS_INSIDE_OVERLAY); this.setLongClickable(true); if (K9.getK9Theme() == K9.THEME_DARK) { // Black theme should get a black web...
public void configure() { this.setVerticalScrollBarEnabled(true); this.setVerticalScrollbarOverlay(true); this.setScrollBarStyle(SCROLLBARS_INSIDE_OVERLAY); this.setLongClickable(true); if (K9.getK9Theme() == K9.THEME_DARK) { // Black theme should get a black web...
diff --git a/src/com/github/joakimpersson/tda367/Main.java b/src/com/github/joakimpersson/tda367/Main.java index 6999f71..ed8694b 100644 --- a/src/com/github/joakimpersson/tda367/Main.java +++ b/src/com/github/joakimpersson/tda367/Main.java @@ -1,51 +1,51 @@ package com.github.joakimpersson.tda367; import java.io.F...
false
true
public static void main(String[] args) { // Get the game size int gameWidth = GUIUtils.getGameWidth(); int gameHeight = GUIUtils.getGameHeight(); /* * Dynamically uses the correct native files for lwjgl */ System.setProperty("org.lwjgl.librarypath", new File(new File(new File(System.getProperty("u...
public static void main(String[] args) { // Get the game size int gameWidth = GUIUtils.getGameWidth(); int gameHeight = GUIUtils.getGameHeight(); /* * Dynamically uses the correct native files for lwjgl */ System.setProperty("org.lwjgl.librarypath", new File(new File(new File(System.getProperty("u...
diff --git a/x10.compiler/src/x10/ast/X10AmbTypeNode_c.java b/x10.compiler/src/x10/ast/X10AmbTypeNode_c.java index 6554b138b..9c767c20e 100644 --- a/x10.compiler/src/x10/ast/X10AmbTypeNode_c.java +++ b/x10.compiler/src/x10/ast/X10AmbTypeNode_c.java @@ -1,299 +1,300 @@ /* * This file is part of the X10 project (http...
false
true
public Node disambiguate(ContextVisitor ar) { SemanticException ex; Position pos = position(); ContextVisitor tc = ar; TypeSystem ts = tc.typeSystem(); NodeFactory nf = (NodeFactory) tc.nodeFactory(); try { TypeNode tn = disambiguateAnnotation(tc); if (tn !=...
public Node disambiguate(ContextVisitor ar) { SemanticException ex; Position pos = position(); ContextVisitor tc = ar; TypeSystem ts = tc.typeSystem(); NodeFactory nf = (NodeFactory) tc.nodeFactory(); try { TypeNode tn = disambiguateAnnotation(tc); if (tn !=...
diff --git a/org/python/core/imp.java b/org/python/core/imp.java index 423554d4..d255676f 100644 --- a/org/python/core/imp.java +++ b/org/python/core/imp.java @@ -1,795 +1,795 @@ // Copyright (c) Corporation for National Research Initiatives package org.python.core; import java.io.ByteArrayOutputStream; import ja...
false
true
static PyObject loadFromSource(String name, String modName, PyObject entry) { // System.err.println("load-from-source: "+name+" "+modName+" "+entry); int nlen = name.length(); String sourceName = "__init__.py"; String compiledName = "__init__$py.class"; String directoryName ...
static PyObject loadFromSource(String name, String modName, PyObject entry) { // System.err.println("load-from-source: "+name+" "+modName+" "+entry); int nlen = name.length(); String sourceName = "__init__.py"; String compiledName = "__init__$py.class"; String directoryName ...
diff --git a/src/com/jidesoft/plaf/basic/BasicStyledLabelUI.java b/src/com/jidesoft/plaf/basic/BasicStyledLabelUI.java index 72e97dd7..058a5dac 100644 --- a/src/com/jidesoft/plaf/basic/BasicStyledLabelUI.java +++ b/src/com/jidesoft/plaf/basic/BasicStyledLabelUI.java @@ -1,1704 +1,1704 @@ /* * @(#)BasicStyledLabelUI....
true
true
private int internalPaintStyledText(StyledLabel label, Graphics g, int textX, int textY, int paintWidth) { int labelHeight = label.getHeight(); if (labelHeight <= 0) { labelHeight = Integer.MAX_VALUE; } Insets insets = label.getInsets(); if (insets != null) { ...
private int internalPaintStyledText(StyledLabel label, Graphics g, int textX, int textY, int paintWidth) { int labelHeight = label.getHeight(); if (labelHeight <= 0) { labelHeight = Integer.MAX_VALUE; } Insets insets = label.getInsets(); if (insets != null) { ...
diff --git a/cprprime/src/edu/psu/iam/cpr/utility/UiFieldTypesLoader.java b/cprprime/src/edu/psu/iam/cpr/utility/UiFieldTypesLoader.java index 31b7f63..4d4db52 100755 --- a/cprprime/src/edu/psu/iam/cpr/utility/UiFieldTypesLoader.java +++ b/cprprime/src/edu/psu/iam/cpr/utility/UiFieldTypesLoader.java @@ -1,68 +1,68 @@ ...
true
true
public void loadTable(Database db, String primeDirectory, String tableName) { BufferedReader bufferedReader = null; try { Date d = new Date(); String requestor = "SYSTEM"; db.openSession(SessionFactoryUtil.getSessionFactory()); Session session = db.getSession(); // Remove all of the records ...
public void loadTable(Database db, String primeDirectory, String tableName) { BufferedReader bufferedReader = null; try { Date d = new Date(); String requestor = "SYSTEM"; db.openSession(SessionFactoryUtil.getSessionFactory()); Session session = db.getSession(); // Remove all of the records ...
diff --git a/src/jDistsim/utils/logging/handlers/FileLoggerHandler.java b/src/jDistsim/utils/logging/handlers/FileLoggerHandler.java index a5c1278..82c6ccb 100644 --- a/src/jDistsim/utils/logging/handlers/FileLoggerHandler.java +++ b/src/jDistsim/utils/logging/handlers/FileLoggerHandler.java @@ -1,79 +1,77 @@ package ...
false
true
public void publish(LogMessage logMessage) { PrintWriter output = null; try { File file; file = new File(fileName); if (!file.exists()) file.createNewFile(); output = new PrintWriter(new FileWriter(file)); output.println(lo...
public void publish(LogMessage logMessage) { try { File file; file = new File(fileName); if (!file.exists()) file.createNewFile(); PrintWriter output = new PrintWriter(new FileWriter(file)); output.println(loggerFormatter.applyForm...
diff --git a/src/com/ftwinston/Killer/CraftBukkit/CraftBukkitAccess.java b/src/com/ftwinston/Killer/CraftBukkit/CraftBukkitAccess.java index 56ba371..11e9e06 100644 --- a/src/com/ftwinston/Killer/CraftBukkit/CraftBukkitAccess.java +++ b/src/com/ftwinston/Killer/CraftBukkit/CraftBukkitAccess.java @@ -1,74 +1,74 @@ pack...
true
true
public static CraftBukkitAccess createCorrectVersion(Plugin plugin) { // Get full package string of CraftServer class, then extract the version name from that // org.bukkit.craftbukkit.versionstring (or for pre-refactor, just org.bukkit.craftbukkit String packageName = plugin.getServer().getClass()...
public static CraftBukkitAccess createCorrectVersion(Plugin plugin) { // Get full package string of CraftServer class, then extract the version name from that // org.bukkit.craftbukkit.versionstring (or for pre-refactor, just org.bukkit.craftbukkit String packageName = plugin.getServer().getClass()...
diff --git a/src/java/org/infoglue/deliver/util/SelectiveLivePublicationThread.java b/src/java/org/infoglue/deliver/util/SelectiveLivePublicationThread.java index b0573f296..5ac012ac6 100755 --- a/src/java/org/infoglue/deliver/util/SelectiveLivePublicationThread.java +++ b/src/java/org/infoglue/deliver/util/SelectiveLi...
false
true
public void run() { logger.info("Run in SelectiveLivePublicationThread...."); int publicationDelay = 5000; String publicationThreadDelay = CmsPropertyHandler.getPublicationThreadDelay(); if(publicationThreadDelay != null && !publicationThreadDelay.equalsIgnoreCase("") && publicationThreadDelay.indexO...
public void run() { logger.info("Run in SelectiveLivePublicationThread...."); int publicationDelay = 5000; String publicationThreadDelay = CmsPropertyHandler.getPublicationThreadDelay(); if(publicationThreadDelay != null && !publicationThreadDelay.equalsIgnoreCase("") && publicationThreadDelay.indexO...
diff --git a/VisualizationModule/src/org/gephi/visualization/VizModel.java b/VisualizationModule/src/org/gephi/visualization/VizModel.java index 61259e0d8..b68b0fd8f 100644 --- a/VisualizationModule/src/org/gephi/visualization/VizModel.java +++ b/VisualizationModule/src/org/gephi/visualization/VizModel.java @@ -1,565 +...
true
true
public void writeXML(XMLStreamWriter writer) throws XMLStreamException { writer.writeStartElement("vizmodel"); //Fast refreh GraphDrawable drawable = VizController.getInstance().getDrawable(); cameraPosition = Arrays.copyOf(drawable.getCameraLocation(), 3); cameraTarget = A...
public void writeXML(XMLStreamWriter writer) throws XMLStreamException { writer.writeStartElement("vizmodel"); //Fast refreh GraphDrawable drawable = VizController.getInstance().getDrawable(); cameraPosition = Arrays.copyOf(drawable.getCameraLocation(), 3); cameraTarget = A...
diff --git a/modules/compute4/org/molgenis/compute/commandline/ComputeBundleValidator.java b/modules/compute4/org/molgenis/compute/commandline/ComputeBundleValidator.java index bcb1a6a06..73dcee423 100644 --- a/modules/compute4/org/molgenis/compute/commandline/ComputeBundleValidator.java +++ b/modules/compute4/org/molg...
false
true
public void validateBundle() { // VALIDATE WORKFLOW List<WorkflowElement> wfelements = cb.getWorkflowElements(); // Validate that all wfe step names are different List<String> wfeNamesList = new ArrayList<String>(); Set<String> wfeNamesSet = new HashSet(); for (WorkflowElement wfe : wfelements) { wf...
public void validateBundle() { // VALIDATE WORKFLOW List<WorkflowElement> wfelements = cb.getWorkflowElements(); // Validate that all wfe step names are different List<String> wfeNamesList = new ArrayList<String>(); Set<String> wfeNamesSet = new HashSet(); for (WorkflowElement wfe : wfelements) { wf...
diff --git a/src/net/reichholf/dreamdroid/helpers/SimpleHttpClient.java b/src/net/reichholf/dreamdroid/helpers/SimpleHttpClient.java index 691dc667..27ce15bc 100644 --- a/src/net/reichholf/dreamdroid/helpers/SimpleHttpClient.java +++ b/src/net/reichholf/dreamdroid/helpers/SimpleHttpClient.java @@ -1,255 +1,257 @@ /* ©...
true
true
public boolean fetchPageContent(String uri, List<NameValuePair> parameters) { // Set login, ssl, port, host etc; applyConfig(); mErrorText = ""; mError = false; mBytes = new byte[0]; if (!uri.startsWith("/")) { uri = "/".concat(uri); } HttpURLConnection conn = null; try { URL url = new URL(bu...
public boolean fetchPageContent(String uri, List<NameValuePair> parameters) { // Set login, ssl, port, host etc; applyConfig(); mErrorText = ""; mError = false; mBytes = new byte[0]; if (!uri.startsWith("/")) { uri = "/".concat(uri); } HttpURLConnection conn = null; try { URL url = new URL(bu...
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 833158b8..ca899bde 100644 --- a/cli/src/main/java/com/vmware/bdd/cli/commands/ClusterCommands.java +++ b/cli/src/main/java/com/vmware/bdd/cli/commands/ClusterCommand...
true
true
public void createCluster( @CliOption(key = { "name" }, mandatory = true, help = "The cluster name") final String name, @CliOption(key = { "distro" }, mandatory = false, help = "Hadoop Distro") final String distro, @CliOption(key = { "specFile" }, mandatory = false, help = "The spec file n...
public void createCluster( @CliOption(key = { "name" }, mandatory = true, help = "The cluster name") final String name, @CliOption(key = { "distro" }, mandatory = false, help = "Hadoop Distro") final String distro, @CliOption(key = { "specFile" }, mandatory = false, help = "The spec file n...
diff --git a/utgb-shell/src/main/java/org/utgenome/shell/ScreenShot.java b/utgb-shell/src/main/java/org/utgenome/shell/ScreenShot.java index 4dd25bbe..e24a8b2f 100755 --- a/utgb-shell/src/main/java/org/utgenome/shell/ScreenShot.java +++ b/utgb-shell/src/main/java/org/utgenome/shell/ScreenShot.java @@ -1,285 +1,287 @@ ...
false
true
void createPNG(File viewFile, ChrLoc loc) throws Exception { _logger.info(String.format("query: %s", loc)); TrackDisplay display; if (viewFile == null) { display = new TrackDisplay(); Track t = new Track(); t.name = ""; t.db = new DB(); t.db.path = readFile; display.track.add(t); } else ...
void createPNG(File viewFile, ChrLoc loc) throws Exception { _logger.info(String.format("query: %s", loc)); TrackDisplay display; if (viewFile == null) { display = new TrackDisplay(); Track t = new Track(); t.name = ""; t.db = new DB(); t.db.path = readFile; display.track.add(t); } else ...
diff --git a/sample/src/com/twotoasters/android/horizontalimagescroller/sample/MainActivity.java b/sample/src/com/twotoasters/android/horizontalimagescroller/sample/MainActivity.java index 9f0f026..0d5e95d 100644 --- a/sample/src/com/twotoasters/android/horizontalimagescroller/sample/MainActivity.java +++ b/sample/src/...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); _horizontalImageScrollers = new ArrayList<HorizontalImageScroller>(); /* * this is a convenience to map our ImageToLoad objects by name of toaster, making it easy * to refer...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); _horizontalImageScrollers = new ArrayList<HorizontalImageScroller>(); /* * this is a convenience to map our ImageToLoad objects by name of toaster, making it easy * to refer...
diff --git a/mes-plugins/mes-plugins-assignment-to-shift/src/main/java/com/qcadoo/mes/assignmentToShift/print/xls/AssignmentToShiftXlsService.java b/mes-plugins/mes-plugins-assignment-to-shift/src/main/java/com/qcadoo/mes/assignmentToShift/print/xls/AssignmentToShiftXlsService.java index 85e41e5485..b20f7ef44f 100644 -...
true
true
private void fillColumnWithStaffForWorkOnLine(final HSSFSheet sheet, int rowNum, final Entity assignmentToShiftReport, final List<DateTime> days, final List<Entity> productionLines, final Entity dictionaryItem) { if ((assignmentToShiftReport != null) && (days != null) && (productionLines != null...
private void fillColumnWithStaffForWorkOnLine(final HSSFSheet sheet, int rowNum, final Entity assignmentToShiftReport, final List<DateTime> days, final List<Entity> productionLines, final Entity dictionaryItem) { if ((assignmentToShiftReport != null) && (days != null) && (productionLines != null...
diff --git a/org.emftext.sdk/src/org/emftext/sdk/codegen/generators/ManifestGenerator.java b/org.emftext.sdk/src/org/emftext/sdk/codegen/generators/ManifestGenerator.java index 9ac1260c6..458c0e51a 100644 --- a/org.emftext.sdk/src/org/emftext/sdk/codegen/generators/ManifestGenerator.java +++ b/org.emftext.sdk/src/org/e...
true
true
private String getManifestContent() { StringComposite sc = new ManifestComposite(); ConcreteSyntax concreteSyntax = context.getConcreteSyntax(); String projectName = context.getPluginName(); sc.add("Manifest-Version: 1.0"); sc.add("Bundle-ManifestVersion: 2"); sc.add("Bundle-Name: EMFText Parser Plugin:...
private String getManifestContent() { StringComposite sc = new ManifestComposite(); ConcreteSyntax concreteSyntax = context.getConcreteSyntax(); String projectName = context.getPluginName(); sc.add("Manifest-Version: 1.0"); sc.add("Bundle-ManifestVersion: 2"); sc.add("Bundle-Name: EMFText Parser Plugin:...
diff --git a/org.eclipse.scout.rt.ui.swt/src/org/eclipse/scout/rt/ui/swt/AbstractSwtEnvironment.java b/org.eclipse.scout.rt.ui.swt/src/org/eclipse/scout/rt/ui/swt/AbstractSwtEnvironment.java index d3c5bb9318..34bd742201 100644 --- a/org.eclipse.scout.rt.ui.swt/src/org/eclipse/scout/rt/ui/swt/AbstractSwtEnvironment.java...
true
true
public void showStandaloneForm(final IForm form) { if (form == null) { return; } ISwtScoutPart part = m_openForms.get(form); if (part != null) { return; } switch (form.getDisplayHint()) { case IForm.DISPLAY_HINT_DIALOG: { int dialogStyle = SWT.DIALOG_TRIM | SWT.RESIZE...
public void showStandaloneForm(final IForm form) { if (form == null) { return; } ISwtScoutPart part = m_openForms.get(form); if (part != null) { return; } switch (form.getDisplayHint()) { case IForm.DISPLAY_HINT_DIALOG: { int dialogStyle = SWT.DIALOG_TRIM | SWT.RESIZE...
diff --git a/src/com/secpro/platform/log/Activator.java b/src/com/secpro/platform/log/Activator.java index 7418a56..622337d 100644 --- a/src/com/secpro/platform/log/Activator.java +++ b/src/com/secpro/platform/log/Activator.java @@ -1,84 +1,84 @@ package com.secpro.platform.log; import org.osgi.framework.BundleActi...
true
true
private void initConfigurationForLogging(String logConfigruationPath) throws Exception { if (logConfigruationPath == null || logConfigruationPath.trim().equals("")) { throw new Exception("invaild logging configuration path."); } try { LoggerContext logContext = (LoggerContext) LoggerFactory.getILoggerFacto...
private void initConfigurationForLogging(String logConfigruationPath) throws Exception { if (logConfigruationPath == null || logConfigruationPath.trim().equals("")) { throw new Exception("invalid logging configuration path."); } try { LoggerContext logContext = (LoggerContext) LoggerFactory.getILoggerFacto...
diff --git a/lenskit-core/src/main/java/org/grouplens/lenskit/core/LenskitRecommenderEngineFactory.java b/lenskit-core/src/main/java/org/grouplens/lenskit/core/LenskitRecommenderEngineFactory.java index 9583660c4..32cc8d83b 100644 --- a/lenskit-core/src/main/java/org/grouplens/lenskit/core/LenskitRecommenderEngineFacto...
true
true
public LenskitRecommenderEngine create(DataAccessObject dao) { BindingFunctionBuilder config = this.config.clone(); config.getRootContext().bind(DataAccessObject.class).to(dao); DependencySolver solver = new DependencySolver( Arrays.asList(config.build(RuleSet.EXPLICIT), ...
public LenskitRecommenderEngine create(DataAccessObject dao) { BindingFunctionBuilder config = this.config.clone(); config.getRootContext().bind(DataAccessObject.class).to(dao); DependencySolver solver = new DependencySolver( Arrays.asList(config.build(RuleSet.EXPLICIT), ...
diff --git a/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/TextField.java b/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/TextField.java index f4b3b6b8e..36a95b840 100644 --- a/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/TextField.java +++ b/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/TextField.java @@ -1,815 +1,815 @@ /*****...
true
true
private void initialize () { addListener(inputListener = new ClickListener() { public void clicked (InputEvent event, float x, float y) { if (getTapCount() > 1) setSelection(0, text.length()); } public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { if (!super.touc...
private void initialize () { addListener(inputListener = new ClickListener() { public void clicked (InputEvent event, float x, float y) { if (getTapCount() > 1) setSelection(0, text.length()); } public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { if (!super.touc...
diff --git a/asterix-external-data/src/main/java/edu/uci/ics/asterix/external/dataset/adapter/NCFileSystemAdapter.java b/asterix-external-data/src/main/java/edu/uci/ics/asterix/external/dataset/adapter/NCFileSystemAdapter.java index ae9b412e..ef39d454 100644 --- a/asterix-external-data/src/main/java/edu/uci/ics/asterix...
false
true
private void configureFileSplits(String[] splits) { if (fileSplits == null) { fileSplits = new FileSplit[splits.length]; String nodeName; String nodeLocalPath; int count = 0; String trimmedValue; for (String splitPath : splits) { ...
private void configureFileSplits(String[] splits) throws AsterixException { if (fileSplits == null) { fileSplits = new FileSplit[splits.length]; String nodeName; String nodeLocalPath; int count = 0; String trimmedValue; for (String spli...
diff --git a/src/com/android/settings/wifi/WifiDialog.java b/src/com/android/settings/wifi/WifiDialog.java index f86482620..f980d0c30 100644 --- a/src/com/android/settings/wifi/WifiDialog.java +++ b/src/com/android/settings/wifi/WifiDialog.java @@ -1,95 +1,95 @@ /* * Copyright (C) 2010 The Android Open Source Projec...
true
true
public WifiDialog(Context context, DialogInterface.OnClickListener listener, AccessPoint accessPoint, boolean edit) { super(context); mEdit = edit; mListener = listener; mAccessPoint = accessPoint; }
public WifiDialog(Context context, DialogInterface.OnClickListener listener, AccessPoint accessPoint, boolean edit) { super(context, R.style.Theme_WifiDialog); mEdit = edit; mListener = listener; mAccessPoint = accessPoint; }
diff --git a/src/main/java/org/primefaces/component/calendar/CalendarRenderer.java b/src/main/java/org/primefaces/component/calendar/CalendarRenderer.java index 001b98811..2eceab585 100644 --- a/src/main/java/org/primefaces/component/calendar/CalendarRenderer.java +++ b/src/main/java/org/primefaces/component/calendar/C...
true
true
protected void encodeScript(FacesContext context, Calendar calendar, String value) throws IOException { ResponseWriter writer = context.getResponseWriter(); String clientId = calendar.getClientId(context); writer.startElement("script", null); writer.writeAttribute("type", "te...
protected void encodeScript(FacesContext context, Calendar calendar, String value) throws IOException { ResponseWriter writer = context.getResponseWriter(); String clientId = calendar.getClientId(context); writer.startElement("script", null); writer.writeAttribute("type", "te...
diff --git a/src/api/org/openmrs/util/OpenmrsConstants.java b/src/api/org/openmrs/util/OpenmrsConstants.java index e627d1d2..e93c0b37 100644 --- a/src/api/org/openmrs/util/OpenmrsConstants.java +++ b/src/api/org/openmrs/util/OpenmrsConstants.java @@ -1,1153 +1,1151 @@ /** * The contents of this file are subject to t...
false
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/src/sphinx4/edu/cmu/sphinx/util/props/PropertySheet.java b/src/sphinx4/edu/cmu/sphinx/util/props/PropertySheet.java index 3114c72a..b55b757f 100644 --- a/src/sphinx4/edu/cmu/sphinx/util/props/PropertySheet.java +++ b/src/sphinx4/edu/cmu/sphinx/util/props/PropertySheet.java @@ -1,715 +1,720 @@ package edu....
false
true
public Configurable getComponent(String name) throws PropertyException { S4PropWrapper s4PropWrapper = getProperty(name, S4Component.class); S4Component s4Component = (S4Component) s4PropWrapper.getAnnotation(); Class expectedType = s4Component.type(); if (propValues.get(name) == n...
public Configurable getComponent(String name) throws PropertyException { S4PropWrapper s4PropWrapper = getProperty(name, S4Component.class); S4Component s4Component = (S4Component) s4PropWrapper.getAnnotation(); Class expectedType = s4Component.type(); if (propValues.get(name) == n...
diff --git a/src/minecraft/org/getspout/spout/packet/PacketWidgetRemove.java b/src/minecraft/org/getspout/spout/packet/PacketWidgetRemove.java index 5dcf5012..c1763c29 100644 --- a/src/minecraft/org/getspout/spout/packet/PacketWidgetRemove.java +++ b/src/minecraft/org/getspout/spout/packet/PacketWidgetRemove.java @@ -1...
false
true
public void run(int playerId) { InGameHUD mainScreen = SpoutClient.getInstance().getActivePlayer().getMainScreen(); PopupScreen popup = mainScreen.getActivePopup(); Screen overlay = null; if(SpoutClient.getHandle().currentScreen != null) { overlay = SpoutClie...
public void run(int playerId) { InGameHUD mainScreen = SpoutClient.getInstance().getActivePlayer().getMainScreen(); PopupScreen popup = mainScreen.getActivePopup(); Screen overlay = null; if(SpoutClient.getHandle().currentScreen != null) { overlay = SpoutClient.getHandle().currentScreen.getScreen(); } ...
diff --git a/GAE/src/org/waterforpeople/mapping/portal/client/widgets/component/SurveySelectionDialog.java b/GAE/src/org/waterforpeople/mapping/portal/client/widgets/component/SurveySelectionDialog.java index 386893836..ec85af4cd 100644 --- a/GAE/src/org/waterforpeople/mapping/portal/client/widgets/component/SurveySele...
true
true
public SurveySelectionDialog(CompletionListener listener, boolean allowMultiple, Widget additionalControls, boolean useLangSelection) { super(TEXT_CONSTANTS.selectSurvey(), null, true, listener); this.additionalControls = additionalControls; Panel panel = new VerticalPanel(); messageLabel = new Label(); ...
public SurveySelectionDialog(CompletionListener listener, boolean allowMultiple, Widget additionalControls, boolean useLangSelection) { super(TEXT_CONSTANTS.selectSurvey(), null, true, listener); this.additionalControls = additionalControls; Panel panel = new VerticalPanel(); messageLabel = new Label(); ...
diff --git a/org.springsource.ide.eclipse.commons.core/src/org/springsource/ide/eclipse/commons/core/preferences/StsProperties.java b/org.springsource.ide.eclipse.commons.core/src/org/springsource/ide/eclipse/commons/core/preferences/StsProperties.java index c2beff21..45e772d1 100644 --- a/org.springsource.ide.eclipse....
true
true
protected Properties createProperties() { Properties props = new Properties(); // Default properties (guarantees certain properties have a value no // matter what). props.put("spring.site.url", "http://springsource.org"); props.put("spring.initializr.form.url", "http://start.springframework.io/"); props....
protected Properties createProperties() { Properties props = new Properties(); // Default properties (guarantees certain properties have a value no // matter what). props.put("spring.site.url", "http://springsource.org"); props.put("spring.initializr.form.url", "http://start.springframework.io/"); props....
diff --git a/model/org/eclipse/cdt/internal/core/model/Binary.java b/model/org/eclipse/cdt/internal/core/model/Binary.java index d0fed86f4..bfda27a9c 100644 --- a/model/org/eclipse/cdt/internal/core/model/Binary.java +++ b/model/org/eclipse/cdt/internal/core/model/Binary.java @@ -1,557 +1,557 @@ /*********************...
true
true
private boolean addSourceFiles(OpenableInfo info, IBinaryObject obj, Map<IPath, BinaryModule> hash) throws CModelException { // Try to get the list of source files used to build the binary from the // symbol information. ISymbolReader symbolreader = (ISymbolReader)obj.getAdapter(ISymbolReader.class); if (s...
private boolean addSourceFiles(OpenableInfo info, IBinaryObject obj, Map<IPath, BinaryModule> hash) throws CModelException { // Try to get the list of source files used to build the binary from the // symbol information. ISymbolReader symbolreader = (ISymbolReader)obj.getAdapter(ISymbolReader.class); if (s...
diff --git a/AppServer_Java/src/com/google/appengine/api/users/dev/LoginCookieUtils.java b/AppServer_Java/src/com/google/appengine/api/users/dev/LoginCookieUtils.java index bc0fc715b..83a9ec6eb 100644 --- a/AppServer_Java/src/com/google/appengine/api/users/dev/LoginCookieUtils.java +++ b/AppServer_Java/src/com/google/a...
true
true
private static AppScaleCookieData parseCookie( Cookie cookie ) { String value = cookie.getValue(); // replace chars value = value.replace("%3A", ":"); value = value.replace("%40", "@"); value = value.replace("%2C", ","); String[] parts = value.split(":"); ...
private static AppScaleCookieData parseCookie( Cookie cookie ) { String value = cookie.getValue(); // replace chars value = value.replace("%3A", ":"); value = value.replace("%40", "@"); value = value.replace("%2C", ","); String[] parts = value.split(":"); ...
diff --git a/src/com/moupress/app/ui/UIMgr.java b/src/com/moupress/app/ui/UIMgr.java index d21f312..b1a8bce 100644 --- a/src/com/moupress/app/ui/UIMgr.java +++ b/src/com/moupress/app/ui/UIMgr.java @@ -1,660 +1,661 @@ package com.moupress.app.ui; import java.util.ArrayList; import java.util.Calendar; import kank...
true
true
private void initAlarmTimeUI() { alarmListView = (ListView) activity.findViewById(R.id.alarmlistview); alarmAdapter = new AlarmListViewAdapter(alarmDisplayTxt,alarmDisplayIcon, alarmSelected); alarmListView.setAdapter(alarmAdapter); alarmListView.setOnItemClickListener(optionListOnItemClickListener); alarmL...
private void initAlarmTimeUI() { alarmListView = (ListView) activity.findViewById(R.id.alarmlistview); alarmAdapter = new AlarmListViewAdapter(alarmDisplayTxt,alarmDisplayIcon, alarmSelected); alarmListView.setAdapter(alarmAdapter); alarmListView.setOnItemClickListener(optionListOnItemClickListener); alarmL...
diff --git a/src/com/redhat/ceylon/compiler/tools/CeyloncTool.java b/src/com/redhat/ceylon/compiler/tools/CeyloncTool.java index 331490c00..cd38a387a 100644 --- a/src/com/redhat/ceylon/compiler/tools/CeyloncTool.java +++ b/src/com/redhat/ceylon/compiler/tools/CeyloncTool.java @@ -1,100 +1,101 @@ /* * Copyright (c) 1...
false
true
public JavacTask getTask(Writer out, JavaFileManager fileManager, DiagnosticListener<? super JavaFileObject> diagnosticListener, Iterable<String> options, Iterable<String> classes, Iterable<? extends JavaFileObject> compilationUnits) { final String kindMsg = "All compilation units must be of SOURCE kind"; ...
public JavacTask getTask(Writer out, JavaFileManager fileManager, DiagnosticListener<? super JavaFileObject> diagnosticListener, Iterable<String> options, Iterable<String> classes, Iterable<? extends JavaFileObject> compilationUnits) { final String kindMsg = "All compilation units must be of SOURCE kind"; ...
diff --git a/src/balle/world/processing/AbstractWorldProcessor.java b/src/balle/world/processing/AbstractWorldProcessor.java index 038c78e..b78c043 100644 --- a/src/balle/world/processing/AbstractWorldProcessor.java +++ b/src/balle/world/processing/AbstractWorldProcessor.java @@ -1,61 +1,61 @@ package balle.world.proc...
false
true
public final void run() { snapshot = null; while (true) { Snapshot newSnapshot = world.getSnapshot(); if ((newSnapshot != null) && (!newSnapshot.equals(prevSnapshot))) { actionOnStep(); prevSnapshot = snapshot; snapshot = newSn...
public final void run() { snapshot = null; while (true) { Snapshot newSnapshot = world.getSnapshot(); if ((newSnapshot != null) && (!newSnapshot.equals(prevSnapshot))) { actionOnChange(); prevSnapshot = snapshot; snapshot = new...
diff --git a/linkid-sdk-saml2/src/test/java/test/unit/net/link/safeonline/sdk/auth/saml2/AuthnRequestFactoryTest.java b/linkid-sdk-saml2/src/test/java/test/unit/net/link/safeonline/sdk/auth/saml2/AuthnRequestFactoryTest.java index 47e7a84bd..1ad240d13 100644 --- a/linkid-sdk-saml2/src/test/java/test/unit/net/link/safeo...
true
true
public void createAuthnRequestWithDeviceContextAndSubjectAttributesAndPaymentContext() throws Exception { // Setup Data String applicationName = "test-application-id"; String assertionConsumerServiceURL = "http://test.assertion.consumer.service"; String destinationURL = ...
public void createAuthnRequestWithDeviceContextAndSubjectAttributesAndPaymentContext() throws Exception { // Setup Data String applicationName = "test-application-id"; String assertionConsumerServiceURL = "http://test.assertion.consumer.service"; String destinationURL = ...
diff --git a/src/com/forgenz/mobmanager/listeners/commands/MMCommandCount.java b/src/com/forgenz/mobmanager/listeners/commands/MMCommandCount.java index 7e470d6..d00d0a3 100644 --- a/src/com/forgenz/mobmanager/listeners/commands/MMCommandCount.java +++ b/src/com/forgenz/mobmanager/listeners/commands/MMCommandCount.java...
true
true
public void run(CommandSender sender, String maincmd, String[] args) { if (sender instanceof Player && !sender.hasPermission("mobmanager.count")) { sender.sendMessage(ChatColor.DARK_RED + "You do not have permission to use /mm count"); return; } if (!super.validArgs(sender, maincmd, args)) return;...
public void run(CommandSender sender, String maincmd, String[] args) { if (sender instanceof Player && !sender.hasPermission("mobmanager.count")) { sender.sendMessage(ChatColor.DARK_RED + "You do not have permission to use /mm count"); return; } if (!super.validArgs(sender, maincmd, args)) return;...
diff --git a/src/SRMA.java b/src/SRMA.java index b884c2d..2c607fc 100644 --- a/src/SRMA.java +++ b/src/SRMA.java @@ -1,403 +1,403 @@ /* * LICENSE to be determined */ package srma; import srma.Align; import net.sf.samtools.*; import net.sf.samtools.util.*; import net.sf.picard.cmdline.*; import net.sf.pic...
true
true
protected int doWork() { int ctr=0; int prevReferenceIndex=-1, prevAlignmentStart=-1; try { // this is annoying QUIET = true; this.startTime = System.nanoTime(); // Check input files IoUtil.assertFileIsReadable(INPUT); ...
protected int doWork() { int ctr=0; int prevReferenceIndex=-1, prevAlignmentStart=-1; try { // this is annoying QUIET = true; this.startTime = System.nanoTime(); // Check input files IoUtil.assertFileIsReadable(INPUT); ...
diff --git a/src/test/java/com/leokom/chess/WinBoardTest.java b/src/test/java/com/leokom/chess/WinBoardTest.java index 425489b9..413247cf 100644 --- a/src/test/java/com/leokom/chess/WinBoardTest.java +++ b/src/test/java/com/leokom/chess/WinBoardTest.java @@ -1,16 +1,16 @@ package com.leokom.chess; import org.junit....
true
true
public void firstTest() { fail( "Checking if JUnit works fine" ); }
public void firstTest() { fail( "any message" ); }
diff --git a/BusTours/src/org/gitorious/scrapfilbleu/android/MapViewActivity.java b/BusTours/src/org/gitorious/scrapfilbleu/android/MapViewActivity.java index 904a8cd..f2bafc5 100644 --- a/BusTours/src/org/gitorious/scrapfilbleu/android/MapViewActivity.java +++ b/BusTours/src/org/gitorious/scrapfilbleu/android/MapViewA...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.mapview); this.geoPointTours = new GeoPoint(47.3883 * 1000000, 0.7276 * 1000000); osmMap = (MapView)findViewById(R.id.map); osmMap.setTileSource(TileSourceFacto...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.mapview); this.geoPointTours = new GeoPoint((int)(47.3883*1e6), (int)(0.7276*1e6)); osmMap = (MapView)findViewById(R.id.map); osmMap.setTileSource(TileSourceFac...
diff --git a/nuxeo-webengine-client/src/main/java/org/nuxeo/ecm/client/atompub/AtomPubConnector.java b/nuxeo-webengine-client/src/main/java/org/nuxeo/ecm/client/atompub/AtomPubConnector.java index c516f595..96ae7aed 100644 --- a/nuxeo-webengine-client/src/main/java/org/nuxeo/ecm/client/atompub/AtomPubConnector.java +++...
true
true
protected <T extends Element> T doGet(AbstractCommand<?> command) throws CannotConnectToServerException { URL baseURL = contentManager.getBaseURL(); String url = command.formatURL(baseURL); GetMethod method = new GetMethod(url); InputStream bodyStream = null; try ...
protected <T extends Element> T doGet(AbstractCommand<?> command) throws CannotConnectToServerException { URL baseURL = contentManager.getBaseURL(); String url = command.formatURL(baseURL); GetMethod method = new GetMethod(url); InputStream bodyStream = null; Stri...
diff --git a/src/java/com/threerings/getdown/data/Application.java b/src/java/com/threerings/getdown/data/Application.java index 7fbbdef..ac4dbc7 100644 --- a/src/java/com/threerings/getdown/data/Application.java +++ b/src/java/com/threerings/getdown/data/Application.java @@ -1,1026 +1,1026 @@ // // $Id$ // // Getd...
true
true
public UpdateInterface init (boolean checkPlatform) throws IOException { // parse our configuration file HashMap<String,Object> cdata = null; try { cdata = ConfigUtil.parseConfig(_config, checkPlatform); } catch (FileNotFoundException fnfe) { // th...
public UpdateInterface init (boolean checkPlatform) throws IOException { // parse our configuration file HashMap<String,Object> cdata = null; try { cdata = ConfigUtil.parseConfig(_config, checkPlatform); } catch (FileNotFoundException fnfe) { // th...
diff --git a/src/com/googlecode/jspcompressor/compressor/JspCompressor.java b/src/com/googlecode/jspcompressor/compressor/JspCompressor.java index 1a4fd7e..fd672a1 100644 --- a/src/com/googlecode/jspcompressor/compressor/JspCompressor.java +++ b/src/com/googlecode/jspcompressor/compressor/JspCompressor.java @@ -1,813 +...
false
true
private void processScriptBlocks(List<String> scriptBlocks) throws Exception { List<String> jspBlocks = new ArrayList<String>(); List<String> jspELBlocks = new ArrayList<String>(); int originalSourceLength = 0, compressionRatio = 0; for(int i = 0; i < scriptBlocks.size(...
private void processScriptBlocks(List<String> scriptBlocks) throws Exception { List<String> jspBlocks = new ArrayList<String>(); List<String> jspELBlocks = new ArrayList<String>(); int originalSourceLength = 0, compressionRatio = 0; for(int i = 0; i < scriptBlocks.size(...
diff --git a/activemq-core/src/main/java/org/apache/activemq/kaha/impl/async/AsyncDataManager.java b/activemq-core/src/main/java/org/apache/activemq/kaha/impl/async/AsyncDataManager.java index 3eb68fd5c..84ed26f2e 100644 --- a/activemq-core/src/main/java/org/apache/activemq/kaha/impl/async/AsyncDataManager.java +++ b/a...
false
true
public synchronized void start() throws IOException { if (started) { return; } started = true; directory.mkdirs(); synchronized (this) { controlFile = new ControlFile(new File(directory, filePrefix + "control"), CONTROL_RECORD_MAX_LENGTH); ...
public synchronized void start() throws IOException { if (started) { return; } started = true; directory.mkdirs(); synchronized (this) { controlFile = new ControlFile(new File(directory, filePrefix + "control"), CONTROL_RECORD_MAX_LENGTH); ...
diff --git a/src/main/java/ch/entwine/weblounge/workbench/WorkbenchService.java b/src/main/java/ch/entwine/weblounge/workbench/WorkbenchService.java index a01a335d8..dc6113fa3 100644 --- a/src/main/java/ch/entwine/weblounge/workbench/WorkbenchService.java +++ b/src/main/java/ch/entwine/weblounge/workbench/WorkbenchServ...
true
true
public PageletEditor getEditor(Site site, ResourceURI pageURI, String composerId, int pageletIndex) throws IOException { if (site == null) throw new IllegalArgumentException("Site must not be null"); if (composerId == null) throw new IllegalArgumentException("Composer must not be null"); ...
public PageletEditor getEditor(Site site, ResourceURI pageURI, String composerId, int pageletIndex) throws IOException { if (site == null) throw new IllegalArgumentException("Site must not be null"); if (composerId == null) throw new IllegalArgumentException("Composer must not be null"); ...
diff --git a/src/java/org/lwjgl/MacOSXSysImplementation.java b/src/java/org/lwjgl/MacOSXSysImplementation.java index b7084e7d..53f277ae 100644 --- a/src/java/org/lwjgl/MacOSXSysImplementation.java +++ b/src/java/org/lwjgl/MacOSXSysImplementation.java @@ -1,96 +1,96 @@ /* * Copyright (c) 2002-2004 LWJGL Project * A...
true
true
public String[] getNativeLibraryNames() { /* If we're on 10.4, fine, we'll just try the default library name. For * earlier versions of Mac OS X, try the legacy library first. * * Having a kludge like this is unfortunate, but necessary for the following reasons: * 1. We need two libraries to support Mac ...
public String[] getNativeLibraryNames() { /* If we're on 10.4, fine, we'll just try the default library name. For * earlier versions of Mac OS X, try the legacy library first. * * Having a kludge like this is unfortunate, but necessary for the following reasons: * 1. We need two libraries to support Mac ...
diff --git a/src/InstructionState.java b/src/InstructionState.java index 3cf1f05..212f5e2 100644 --- a/src/InstructionState.java +++ b/src/InstructionState.java @@ -1,118 +1,118 @@ import org.newdawn.slick.GameContainer; import org.newdawn.slick.Graphics; import org.newdawn.slick.Image; import org.newdawn.slick.Sli...
true
true
private void initMenu(GameContainer gc, StateBasedGame sbg) { instructionsMenu = new Menu(startingX, startingY, spaceBetweenItems); // create images for each button try { instructionList = new Image(instructions); backUs = new Image(menuUnselected); backS...
private void initMenu(GameContainer gc, StateBasedGame sbg) { instructionsMenu = new Menu(startingX, startingY, spaceBetweenItems); // create images for each button try { instructionList = new Image(instructions); backUs = new Image(menuUnselected); backS...
diff --git a/org.eclipse.mylyn.discovery.ui/src/org/eclipse/mylyn/internal/discovery/ui/wizards/OverviewToolTip.java b/org.eclipse.mylyn.discovery.ui/src/org/eclipse/mylyn/internal/discovery/ui/wizards/OverviewToolTip.java index 1920dd33..bba55a97 100644 --- a/org.eclipse.mylyn.discovery.ui/src/org/eclipse/mylyn/intern...
false
true
protected Composite createToolTipArea(Event event, final Composite parent) { if (colorBlack == null) { ColorRegistry colorRegistry = JFaceResources.getColorRegistry(); if (!colorRegistry.hasValueFor(COLOR_BLACK)) { colorRegistry.put(COLOR_BLACK, new RGB(0, 0, 0)); } colorBlack = colorRegistry.get(COL...
protected Composite createToolTipArea(Event event, final Composite parent) { if (colorBlack == null) { ColorRegistry colorRegistry = JFaceResources.getColorRegistry(); if (!colorRegistry.hasValueFor(COLOR_BLACK)) { colorRegistry.put(COLOR_BLACK, new RGB(0, 0, 0)); } colorBlack = colorRegistry.get(COL...
diff --git a/src/main/java/com/metaweb/gridworks/operations/RowFlagOperation.java b/src/main/java/com/metaweb/gridworks/operations/RowFlagOperation.java index 9a05b7a5..c9c425d7 100644 --- a/src/main/java/com/metaweb/gridworks/operations/RowFlagOperation.java +++ b/src/main/java/com/metaweb/gridworks/operations/RowFlag...
true
true
protected RowVisitor createRowVisitor(Project project, List<Change> changes) throws Exception { return new RowVisitor() { List<Change> changes; public RowVisitor init(List<Change> changes) { this.changes = changes; return this; ...
protected RowVisitor createRowVisitor(Project project, List<Change> changes) throws Exception { return new RowVisitor() { List<Change> changes; public RowVisitor init(List<Change> changes) { this.changes = changes; return this; ...
diff --git a/src/com/application/takeacoffee/RetrieveDataFromServer.java b/src/com/application/takeacoffee/RetrieveDataFromServer.java index df34cb5..e87a94b 100644 --- a/src/com/application/takeacoffee/RetrieveDataFromServer.java +++ b/src/com/application/takeacoffee/RetrieveDataFromServer.java @@ -1,100 +1,100 @@ pa...
false
true
private static ArrayList<CoffeMachine> parseData(String data) { try { JSONObject jsonObj = (JSONObject) new JSONObject(data); JSONArray jsonArray = jsonObj.getJSONArray("coffe_machine_data"); ArrayList<CoffeMachine> dataArray = new ArrayList<CoffeMachine>(); for (int i = 0; i < jsonArray.length(); i++...
private static ArrayList<CoffeMachine> parseData(String data) { try { JSONObject jsonObj = (JSONObject) new JSONObject(data); JSONArray jsonArray = jsonObj.getJSONArray("coffe_machine_data"); ArrayList<CoffeMachine> dataArray = new ArrayList<CoffeMachine>(); for (int i = 0; i < jsonArray.length(); i++...
diff --git a/modules/quercus/src/com/caucho/quercus/lib/MailModule.java b/modules/quercus/src/com/caucho/quercus/lib/MailModule.java index 8ad02cdfb..cae8518f6 100644 --- a/modules/quercus/src/com/caucho/quercus/lib/MailModule.java +++ b/modules/quercus/src/com/caucho/quercus/lib/MailModule.java @@ -1,251 +1,251 @@ /*...
true
true
public static boolean mail(Env env, String to, String subject, StringValue message, @Optional String additionalHeaders, @Optional String additionalParameters) { Transp...
public static boolean mail(Env env, String to, String subject, StringValue message, @Optional String additionalHeaders, @Optional String additionalParameters) { Transp...
diff --git a/search-impl/impl/src/java/org/sakaiproject/search/component/adapter/message/MessageContentProducer.java b/search-impl/impl/src/java/org/sakaiproject/search/component/adapter/message/MessageContentProducer.java index f268f7ca..b1e122d8 100644 --- a/search-impl/impl/src/java/org/sakaiproject/search/component...
true
true
public String getContent(Entity cr) { Reference ref = entityManager.newReference(cr.getReference()); EntityProducer ep = ref.getEntityProducer(); if (ep instanceof MessageService) { try { MessageService ms = (MessageService) ep; Message m = ms.getMessage(ref); MessageHeader mh = m.getHeader...
public String getContent(Entity cr) { Reference ref = entityManager.newReference(cr.getReference()); EntityProducer ep = ref.getEntityProducer(); if (ep instanceof MessageService) { try { MessageService ms = (MessageService) ep; Message m = ms.getMessage(ref); MessageHeader mh = m.getHeader...
diff --git a/src/main/com/giftoftheembalmer/gotefarm/client/RoleAndBadgeEditor.java b/src/main/com/giftoftheembalmer/gotefarm/client/RoleAndBadgeEditor.java index bcade41..cfaaeb1 100644 --- a/src/main/com/giftoftheembalmer/gotefarm/client/RoleAndBadgeEditor.java +++ b/src/main/com/giftoftheembalmer/gotefarm/client/Rol...
true
true
public <A extends BadgeAndRole, B extends ChrBadgeAndRole, C extends BadgeAndRoleClickHandlerFactory> void update(List<A> roles, B[] chrroles, C clickListener) { vpanel.clear(); FlexTable flex = new FlexTable(); flex.setWidth("100%"); vpanel.add(new Label(flavor1 + " - Check al...
public <A extends BadgeAndRole, B extends ChrBadgeAndRole, C extends BadgeAndRoleClickHandlerFactory> void update(List<A> roles, B[] chrroles, C clickListener) { vpanel.clear(); FlexTable flex = new FlexTable(); flex.setWidth("100%"); vpanel.add(new Label(flavor1 + " - Check al...
diff --git a/OpenSudoku/src/cz/romario/opensudoku/gui/SudokuBoardView.java b/OpenSudoku/src/cz/romario/opensudoku/gui/SudokuBoardView.java index ebfe2a9..9a96aad 100644 --- a/OpenSudoku/src/cz/romario/opensudoku/gui/SudokuBoardView.java +++ b/OpenSudoku/src/cz/romario/opensudoku/gui/SudokuBoardView.java @@ -1,613 +1,61...
false
true
protected void onDraw(Canvas canvas) { super.onDraw(canvas); // some notes: // Drawable has its own draw() method that takes your Canvas as an arguement // int width = getMeasuredWidth(); // int height = getMeasuredHeight(); // TODO: padding? int width = getWidth() - getPaddingLeft() - getPaddingRigh...
protected void onDraw(Canvas canvas) { super.onDraw(canvas); // some notes: // Drawable has its own draw() method that takes your Canvas as an arguement // int width = getMeasuredWidth(); // int height = getMeasuredHeight(); // TODO: padding? int width = getWidth() - getPaddingLeft() - getPaddingRigh...
diff --git a/src/main/java/de/cismet/cismap/commons/gui/metasearch/SearchTopic.java b/src/main/java/de/cismet/cismap/commons/gui/metasearch/SearchTopic.java index dfd1681d..c315fbbd 100644 --- a/src/main/java/de/cismet/cismap/commons/gui/metasearch/SearchTopic.java +++ b/src/main/java/de/cismet/cismap/commons/gui/metas...
true
true
public SearchTopic(final String name, final String description, final String key, final String iconName, final boolean selected) { this.name = name; this.description = description; this.key = key; this.iconName = iconName; this....
public SearchTopic(final String name, final String description, final String key, final String iconName, final boolean selected) { this.name = name; this.description = description; this.key = key; this.iconName = iconName; this....
diff --git a/squeal/task/EnterGame.java b/squeal/task/EnterGame.java index 712b6a1..b54e5ab 100644 --- a/squeal/task/EnterGame.java +++ b/squeal/task/EnterGame.java @@ -1,236 +1,236 @@ package squeal.task; import java.awt.event.KeyEvent; import java.util.Scanner; import org.powerbot.concurrent.strategy.Strategy...
true
true
public void run() { if(Squeal.isLogoutNeeded()) { while(Game.isLoggedIn()) { Game.logout(false); Time.sleep(1000); } Squeal.setLogout(false); } clientDead = false; if(!Lobby.isOpen() || !Lobby.getOpenDialog().isOpen()) { while(!Lobby.isOpen() && !client...
public void run() { if(Squeal.isLogoutNeeded()) { while(Game.isLoggedIn()) { Game.logout(false); Time.sleep(1000); } Squeal.setLogout(false); } clientDead = false; if(!Lobby.isOpen() || !Lobby.getOpenDialog().isOpen()) { while(!Lobby.isOpen() && !client...
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/AST.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/AST.java index f12d8af75..72b665473 100644 --- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/do...
true
true
public <N extends DartNode> N createInstance(Class<N> nodeClass) { if (nodeClass == DartArrayAccess.class) { return (N) new DartArrayAccess(null, null); } else if (nodeClass == DartArrayLiteral.class) { return (N) new DartArrayLiteral(false, null, new ArrayList<DartExpression>()); } else if (n...
public <N extends DartNode> N createInstance(Class<N> nodeClass) { if (nodeClass == DartArrayAccess.class) { return (N) new DartArrayAccess(null, null); } else if (nodeClass == DartArrayLiteral.class) { return (N) new DartArrayLiteral(false, null, new ArrayList<DartExpression>()); } else if (n...
diff --git a/src/pro/oneredpixel/deflektorclassic/LevelsState.java b/src/pro/oneredpixel/deflektorclassic/LevelsState.java index eae3c3d..2246021 100644 --- a/src/pro/oneredpixel/deflektorclassic/LevelsState.java +++ b/src/pro/oneredpixel/deflektorclassic/LevelsState.java @@ -1,105 +1,105 @@ package pro.oneredpixel.de...
true
true
public boolean tap(float x, float y, int tapCount, int button) { //app.gotoAppState(Deflektor.APPSTATE_GAME); int ix=(int)((x-app.winX)/app.sprScale); int iy=(int)((y-app.winY)/app.sprScale); if ((ix>=0) && (ix<240) && (iy>=0) && (iy<160)) { if ((page>1) && checkInBox(ix,iy,0,160/2-8-8,32,32)) { page--;...
public boolean tap(float x, float y, int tapCount, int button) { //app.gotoAppState(Deflektor.APPSTATE_GAME); int ix=(int)((x-app.winX)/app.sprScale); int iy=(int)((y-app.winY)/app.sprScale); if ((ix>=0) && (ix<240) && (iy>=0) && (iy<160)) { if ((page>1) && checkInBox(ix,iy,0,160/2-8-8,32,32)) { page--;...
diff --git a/src/mmode/Commands.java b/src/mmode/Commands.java index 48e1725..d767985 100644 --- a/src/mmode/Commands.java +++ b/src/mmode/Commands.java @@ -1,121 +1,121 @@ /** * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as publi...
false
true
public boolean onCommand(CommandSender sender, Command arg1, String arg2, String[] args) { //check permissions if (!hasPerm(sender)) { sender.sendMessage(ColorParser.parseColor("&4You don't have permission to do this")); return true; } //handle command if (args.length == 1 && args[0].equalsIgnoreC...
public boolean onCommand(CommandSender sender, Command arg1, String arg2, String[] args) { //check permissions if (!hasPerm(sender)) { sender.sendMessage(ColorParser.parseColor("&4You don't have permission to do this")); return true; } //handle command if (args.length == 1 && args[0].equalsIgnoreC...
diff --git a/src/DVN-EJB/src/java/edu/harvard/hmdc/vdcnet/util/FileUtil.java b/src/DVN-EJB/src/java/edu/harvard/hmdc/vdcnet/util/FileUtil.java index 95be90428..97063bc57 100644 --- a/src/DVN-EJB/src/java/edu/harvard/hmdc/vdcnet/util/FileUtil.java +++ b/src/DVN-EJB/src/java/edu/harvard/hmdc/vdcnet/util/FileUtil.java @@ ...
true
true
private static String determineFileType(File f, String fileName) throws IOException{ String fileType = null; // step 1: check whether the file is subsettable SubsettableFileChecker sfchk = new SubsettableFileChecker(SUBSETTABLE_FORMAT_SET); fileType = sfchk.detectSubsettableFormat(f...
private static String determineFileType(File f, String fileName) throws IOException{ String fileType = null; // step 1: check whether the file is subsettable SubsettableFileChecker sfchk = new SubsettableFileChecker(SUBSETTABLE_FORMAT_SET); fileType = sfchk.detectSubsettableFormat(f...
diff --git a/entitystore-rest/src/main/java/org/qi4j/rest/client/RESTEntityStoreServiceMixin.java b/entitystore-rest/src/main/java/org/qi4j/rest/client/RESTEntityStoreServiceMixin.java index 2e41b511e..28dd09cfa 100644 --- a/entitystore-rest/src/main/java/org/qi4j/rest/client/RESTEntityStoreServiceMixin.java +++ b/enti...
true
true
public StateCommitter applyChanges( Iterable<EntityState> state, String identity ) { /* Reference ref = entityStoreUrl.clone(); Response response = client.post( ref, new OutputRepresentation( MediaType.APPLICATION_JAVA_OBJECT ) { public void write( OutputStream outputStream ...
public StateCommitter applyChanges( Iterable<EntityState> state, String identity, long lastModified ) { /* Reference ref = entityStoreUrl.clone(); Response response = client.post( ref, new OutputRepresentation( MediaType.APPLICATION_JAVA_OBJECT ) { public void write( OutputS...
diff --git a/src/gov/nist/javax/sip/stack/IOHandler.java b/src/gov/nist/javax/sip/stack/IOHandler.java index 8afc69bb..d343bbab 100755 --- a/src/gov/nist/javax/sip/stack/IOHandler.java +++ b/src/gov/nist/javax/sip/stack/IOHandler.java @@ -1,304 +1,304 @@ /* * Conditions Of Use * * This software was developed b...
false
true
public Socket sendBytes(InetAddress senderAddress, InetAddress receiverAddress, int contactPort, String transport, byte[] bytes, boolean retry) throws IOException { int retry_count = 0; int max_retry = retry ? 2 : 1; // Server uses TCP transport. TCP client sockets are cached int length = bytes.length; ...
public Socket sendBytes(InetAddress senderAddress, InetAddress receiverAddress, int contactPort, String transport, byte[] bytes, boolean retry) throws IOException { int retry_count = 0; int max_retry = retry ? 2 : 1; // Server uses TCP transport. TCP client sockets are cached int length = bytes.length; ...
diff --git a/src/test/com/jogamp/opengl/test/junit/newt/event/TestNewtKeyEventAutoRepeatAWT.java b/src/test/com/jogamp/opengl/test/junit/newt/event/TestNewtKeyEventAutoRepeatAWT.java index 3ef96edc2..c374f1efe 100644 --- a/src/test/com/jogamp/opengl/test/junit/newt/event/TestNewtKeyEventAutoRepeatAWT.java +++ b/src/tes...
false
true
static void testKeyEventAutoRepeat(Robot robot, NEWTKeyAdapter keyAdapter, int loops, int pressDurationMS) { System.err.println("KEY Event Auto-Repeat Test: "+loops); EventObject[][] first = new EventObject[loops][2]; EventObject[][] last = new EventObject[loops][2]; keyAdapter.rese...
static void testKeyEventAutoRepeat(Robot robot, NEWTKeyAdapter keyAdapter, int loops, int pressDurationMS) { System.err.println("KEY Event Auto-Repeat Test: "+loops); EventObject[][] first = new EventObject[loops][2]; EventObject[][] last = new EventObject[loops][2]; keyAdapter.rese...
diff --git a/Core/src/java/ho/module/lineup/substitution/SubstitutionEditView.java b/Core/src/java/ho/module/lineup/substitution/SubstitutionEditView.java index b4b0034b..f2a5d11f 100644 --- a/Core/src/java/ho/module/lineup/substitution/SubstitutionEditView.java +++ b/Core/src/java/ho/module/lineup/substitution/Substit...
false
true
private void initComponents() { setLayout(new GridBagLayout()); JLabel playerLabel = new JLabel(); if (isSubstitution()) { playerLabel.setText(HOVerwaltung.instance().getLanguageString( "subs.Out")); } else if (isPositionSwap()) { playerLabel.setText(HOVerwaltung.instance().getLanguageString( ...
private void initComponents() { setLayout(new GridBagLayout()); JLabel playerLabel = new JLabel(); if (isSubstitution()) { playerLabel.setText(HOVerwaltung.instance().getLanguageString( "subs.Out")); } else if (isPositionSwap()) { playerLabel.setText(HOVerwaltung.instance().getLanguageString( ...
diff --git a/crypto/src/org/bouncycastle/asn1/DERVisibleString.java b/crypto/src/org/bouncycastle/asn1/DERVisibleString.java index 13a3aadd..1c385b7a 100644 --- a/crypto/src/org/bouncycastle/asn1/DERVisibleString.java +++ b/crypto/src/org/bouncycastle/asn1/DERVisibleString.java @@ -1,123 +1,123 @@ package org.bouncyca...
true
true
public static DERVisibleString getInstance( ASN1TaggedObject obj, boolean explicit) { ASN1Primitive o = obj.getObject(); if (explicit || o instanceof DERUTF8String) { return getInstance(o); } else { return new DERV...
public static DERVisibleString getInstance( ASN1TaggedObject obj, boolean explicit) { ASN1Primitive o = obj.getObject(); if (explicit || o instanceof DERVisibleString) { return getInstance(o); } else { return new D...
diff --git a/src/org/woltage/irssiconnectbot/service/TerminalKeyListener.java b/src/org/woltage/irssiconnectbot/service/TerminalKeyListener.java index 14fd8cf..466d341 100644 --- a/src/org/woltage/irssiconnectbot/service/TerminalKeyListener.java +++ b/src/org/woltage/irssiconnectbot/service/TerminalKeyListener.java @@ ...
true
true
public boolean onKey(View v, int keyCode, KeyEvent event) { try { final boolean hardKeyboardHidden = manager.hardKeyboardHidden; // Ignore all key-up events except for the special keys if (event.getAction() == KeyEvent.ACTION_UP) { // There's nothing here for virtual keyboard users. if (!hardKeyboa...
public boolean onKey(View v, int keyCode, KeyEvent event) { try { final boolean hardKeyboardHidden = manager.hardKeyboardHidden; // Ignore all key-up events except for the special keys if (event.getAction() == KeyEvent.ACTION_UP) { // There's nothing here for virtual keyboard users. if (!hardKeyboa...
diff --git a/src/org/opensolaris/opengrok/history/HistoryCache.java b/src/org/opensolaris/opengrok/history/HistoryCache.java index 9e25349..3dad462 100644 --- a/src/org/opensolaris/opengrok/history/HistoryCache.java +++ b/src/org/opensolaris/opengrok/history/HistoryCache.java @@ -1,207 +1,215 @@ /* * CDDL HEADER STA...
false
true
static History get(File file, Class<? extends HistoryParser> parserClass, ExternalRepository repository) throws Exception { File cache = getCachedFile(file); boolean hasCache = (cache != null) && cache.exists(); if (hasCache && file.lastModified() < cache....
static History get(File file, Class<? extends HistoryParser> parserClass, ExternalRepository repository) throws Exception { File cache = getCachedFile(file); boolean hasCache = (cache != null) && cache.exists(); if (hasCache && file.lastModified() < cache....
diff --git a/src/chameleon/support/test/ExpressionTest.java b/src/chameleon/support/test/ExpressionTest.java index 1865ee7..7ac5e1a 100644 --- a/src/chameleon/support/test/ExpressionTest.java +++ b/src/chameleon/support/test/ExpressionTest.java @@ -1,107 +1,108 @@ package chameleon.support.test; import static org.j...
true
true
public void processType(Type type) throws Exception { _count++; Expression expr = null; Object o = null; try { List<Expression> exprs = type.descendants(Expression.class); for(Expression expression : exprs) { Syntax syntax = language().connector(Syntax.class); // if(syntax != ...
public void processType(Type type) throws Exception { _count++; Expression expr = null; Object o = null; try { List<Expression> exprs = type.descendants(Expression.class); for(Expression expression : exprs) { Syntax syntax = language().connector(Syntax.class); // if(syntax != ...
diff --git a/Paintroid/src/org/catrobat/paintroid/tools/implementation/BaseTool.java b/Paintroid/src/org/catrobat/paintroid/tools/implementation/BaseTool.java index 3be84e97..5b1cfa48 100644 --- a/Paintroid/src/org/catrobat/paintroid/tools/implementation/BaseTool.java +++ b/Paintroid/src/org/catrobat/paintroid/tools/im...
true
true
public int getAttributeButtonResource(ToolButtonIDs buttonNumber) { switch (buttonNumber) { case BUTTON_ID_TOOL: switch (mToolType) { case BRUSH: return R.drawable.icon_menu_brush; case CROP: return R.drawable.icon_menu_crop; case CURSOR: return R.drawable.icon_menu_cursor; case ELLIPSE:...
public int getAttributeButtonResource(ToolButtonIDs buttonNumber) { switch (buttonNumber) { case BUTTON_ID_TOOL: switch (mToolType) { case BRUSH: return R.drawable.icon_menu_brush; case CROP: return R.drawable.icon_menu_crop; case CURSOR: return R.drawable.icon_menu_cursor; case ELLIPSE:...
diff --git a/farrago/src/net/sf/farrago/namespace/mdr/MedMdrJoinRule.java b/farrago/src/net/sf/farrago/namespace/mdr/MedMdrJoinRule.java index 760a9afb7..4455bc117 100644 --- a/farrago/src/net/sf/farrago/namespace/mdr/MedMdrJoinRule.java +++ b/farrago/src/net/sf/farrago/namespace/mdr/MedMdrJoinRule.java @@ -1,154 +1,15...
true
true
public void onMatch(RelOptRuleCall call) { JoinRel joinRel = (JoinRel) call.rels[0]; RelNode leftRel = call.rels[1]; MedMdrClassExtentRel rightRel = (MedMdrClassExtentRel) call.rels[2]; if (!joinRel.getVariablesStopped().isEmpty()) { return; } if ((...
public void onMatch(RelOptRuleCall call) { JoinRel joinRel = (JoinRel) call.rels[0]; RelNode leftRel = call.rels[1]; MedMdrClassExtentRel rightRel = (MedMdrClassExtentRel) call.rels[2]; if (!joinRel.getVariablesStopped().isEmpty()) { return; } if ((...
diff --git a/net.sf.jmoney.qif-stock/src/net/sf/jmoney/qifstock/InvestmentImporter.java b/net.sf.jmoney.qif-stock/src/net/sf/jmoney/qifstock/InvestmentImporter.java index 38c30916..9602b4b3 100644 --- a/net.sf.jmoney.qif-stock/src/net/sf/jmoney/qifstock/InvestmentImporter.java +++ b/net.sf.jmoney.qif-stock/src/net/sf/j...
true
true
private void importAccount(Session session, StockAccount account, List<QifInvstTransaction> transactions) { // TODO: This should come from the account???? Currency currency = session.getDefaultCurrency(); Account miscIncAccount = getCategory("Ameritrade - Misc Income", session); Account interestIncomeAc...
private void importAccount(Session session, StockAccount account, List<QifInvstTransaction> transactions) { // TODO: This should come from the account???? Currency currency = session.getDefaultCurrency(); Account miscIncAccount = getCategory("Ameritrade - Misc Income", session); Account interestIncomeAc...
diff --git a/coastal-hazards-wps/src/test/java/gov/usgs/cida/coastalhazards/wps/CreateResultsLayerProcessTest.java b/coastal-hazards-wps/src/test/java/gov/usgs/cida/coastalhazards/wps/CreateResultsLayerProcessTest.java index aa50bfe5d..7d8b9ff77 100644 --- a/coastal-hazards-wps/src/test/java/gov/usgs/cida/coastalhazard...
true
true
public void testExecute() throws Exception { URL resource = CreateResultsLayerProcessTest.class.getClassLoader() .getResource("gov/usgs/cida/coastalhazards/jersey/NewJerseyN_results"); URL transects = CreateResultsLayerProcessTest.class.getClassLoader() .getResource("...
public void testExecute() throws Exception { URL resource = CreateResultsLayerProcessTest.class.getClassLoader() .getResource("gov/usgs/cida/coastalhazards/jersey/NewJerseyN_results.txt"); URL transects = CreateResultsLayerProcessTest.class.getClassLoader() .getResour...
diff --git a/sipXconfig/neoconf/test/org/sipfoundry/sipxconfig/common/X509SelectorTest.java b/sipXconfig/neoconf/test/org/sipfoundry/sipxconfig/common/X509SelectorTest.java index 30240c944..7a874e99a 100644 --- a/sipXconfig/neoconf/test/org/sipfoundry/sipxconfig/common/X509SelectorTest.java +++ b/sipXconfig/neoconf/tes...
true
true
public void testAvailableAlgorithm() { String alg = new X509Selector.getAvailableAlgorithm(); // only works w/2 VM vendors. If others are known to work, add here assertTrue(alg.equals("SunX509") || alg.equals("IbmX509")); }
public void testAvailableAlgorithm() { String alg = new X509Selector().getAvailableAlgorithm(); // only works w/2 VM vendors. If others are known to work, add here assertTrue(alg.equals("SunX509") || alg.equals("IbmX509")); }
diff --git a/modules/foundation/appbase/src/classes/org/jdesktop/wonderland/modules/appbase/client/HUDDisplayer.java b/modules/foundation/appbase/src/classes/org/jdesktop/wonderland/modules/appbase/client/HUDDisplayer.java index 1290c430a..97252aa35 100644 --- a/modules/foundation/appbase/src/classes/org/jdesktop/wonde...
true
true
public View2D createView (Window2D window) { // Don't ever show frame headers in the HUD if (window instanceof WindowSwingHeader) return null; HUDComponent component = mainHUD.createComponent(window); component.setName(app.getName()); component.setPreferredLocation(Layout.C...
public View2D createView (Window2D window) { // Don't ever show frame headers in the HUD if (window instanceof WindowSwingHeader) return null; HUDComponent component = mainHUD.createComponent(window); component.setName(app.getName()); component.setPreferredLocation(Layout.N...
diff --git a/src/main/java/com/jdkcn/jabber/web/filter/UserLoginFilter.java b/src/main/java/com/jdkcn/jabber/web/filter/UserLoginFilter.java index 92f52f0..93aa111 100644 --- a/src/main/java/com/jdkcn/jabber/web/filter/UserLoginFilter.java +++ b/src/main/java/com/jdkcn/jabber/web/filter/UserLoginFilter.java @@ -1,53 +1...
false
true
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest req = (HttpServletRequest) request; HttpSession session = req.getSession(); if (session == null || session.getAttribute(Constants.LOGIN_USER) == null) { ((HttpSe...
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest req = (HttpServletRequest) request; HttpSession session = req.getSession(); if (session == null || session.getAttribute(Constants.LOGIN_USER) == null) { ((HttpSe...
diff --git a/x10.compiler/src/polyglot/types/TypeEnv_c.java b/x10.compiler/src/polyglot/types/TypeEnv_c.java index d14cec320..319d728d3 100644 --- a/x10.compiler/src/polyglot/types/TypeEnv_c.java +++ b/x10.compiler/src/polyglot/types/TypeEnv_c.java @@ -1,815 +1,815 @@ package polyglot.types; import java.util.*; ...
true
true
public boolean isCastValid(Type fromType, Type toType) { if (fromType instanceof NullType) { return toType.isNull() || toType.isReference(); } if (fromType.isJavaPrimitive() && toType.isJavaPrimitive()) { if (fromType.isVoid() || toType.isVoid()) return false; if (ts.typeEquals(fromType, toType...
public boolean isCastValid(Type fromType, Type toType) { if (fromType instanceof NullType) { return toType.isNull() || toType.isReference(); } if (fromType.isJavaPrimitive() && toType.isJavaPrimitive()) { if (fromType.isVoid() || toType.isVoid()) return false; if (ts.typeEquals(fromType, toType...
diff --git a/src/java/com/threerings/media/FrameInterval.java b/src/java/com/threerings/media/FrameInterval.java index e5dc43f3a..f168c3960 100644 --- a/src/java/com/threerings/media/FrameInterval.java +++ b/src/java/com/threerings/media/FrameInterval.java @@ -1,110 +1,111 @@ package com.threerings.media; import ja...
true
true
public void tick (long tickStamp) { if (_nextTime == -1) { // First time through _nextTime = tickStamp + _initDelay; } else if (tickStamp >= _nextTime) { // If we're repeating, set the next time to run, otherwise, reset if (_repeatDelay != 0L) { ...
public void tick (long tickStamp) { if (_nextTime == -1) { // First time through _nextTime = tickStamp + _initDelay; } else if (tickStamp >= _nextTime) { // If we're repeating, set the next time to run, otherwise, reset if (_repeatDelay != 0L) { ...
diff --git a/antipasto/GUI/ImageListView/ImageListPanel.java b/antipasto/GUI/ImageListView/ImageListPanel.java index e3f5c37..868de18 100644 --- a/antipasto/GUI/ImageListView/ImageListPanel.java +++ b/antipasto/GUI/ImageListView/ImageListPanel.java @@ -1,336 +1,338 @@ package antipasto.GUI.ImageListView; import jav...
true
true
private void init(){ this.createTransferButton(); this.transferButton.setVisible(true); this.setLayout(new BorderLayout()); this.createRemoveButton(); /* The north panel */ JPanel northPanel = new JPanel(); northPanel.setBackground(new Color(0x04, 0x4F, 0x6F)); northPanel.setOpaque(true); no...
private void init(){ this.createTransferButton(); this.transferButton.setVisible(true); this.setLayout(new BorderLayout()); this.createRemoveButton(); /* The north panel */ JPanel northPanel = new JPanel(); northPanel.setBackground(new Color(0x04, 0x4F, 0x6F)); northPanel.setOpaque(true); no...
diff --git a/java/de/sanandrew/mods/particledeco/tileentity/TileEntityParticleBox.java b/java/de/sanandrew/mods/particledeco/tileentity/TileEntityParticleBox.java index 5b591cf..f190cf6 100644 --- a/java/de/sanandrew/mods/particledeco/tileentity/TileEntityParticleBox.java +++ b/java/de/sanandrew/mods/particledeco/tilee...
true
true
private void changeDirection(MutableFloat motionX, MutableFloat motionY, MutableFloat motionZ) { ForgeDirection dir = ForgeDirection.getOrientation(this.getBlockMetadata()); switch( this.particleData.particleSpread ) { case SPREADED_FOUR_DIAG: int ticksMod = this.ticksExi...
private void changeDirection(MutableFloat motionX, MutableFloat motionY, MutableFloat motionZ) { ForgeDirection dir = ForgeDirection.getOrientation(this.getBlockMetadata()); switch( this.particleData.particleSpread ) { case SPREADED_FOUR_DIAG: int ticksMod = this.ticksExi...