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/bundles/core/org.openhab.core.autoupdate/src/main/java/org/openhab/core/autoupdate/internal/AutoUpdateBinding.java b/bundles/core/org.openhab.core.autoupdate/src/main/java/org/openhab/core/autoupdate/internal/AutoUpdateBinding.java index defedfbf..3bc33f50 100644 --- a/bundles/core/org.openhab.core.autoupd...
true
true
public void receiveCommand(String itemName, Command command) { Boolean autoUpdate = null; for (AutoUpdateBindingProvider provider : providers) { autoUpdate = provider.autoUpdate(itemName); if (Boolean.TRUE.equals(autoUpdate)) { break; } } // we didn't find any autoupdate configuration, so apply...
public void receiveCommand(String itemName, Command command) { Boolean autoUpdate = null; for (AutoUpdateBindingProvider provider : providers) { Boolean au = provider.autoUpdate(itemName); if (au != null) { autoUpdate = au; if (Boolean.TRUE.equals(autoUpdate)) { break; } } } // we ...
diff --git a/baixing_quanleimu/src/com/quanleimu/imageCache/LazyImageLoader.java b/baixing_quanleimu/src/com/quanleimu/imageCache/LazyImageLoader.java index 6849bd8d..5a82bb68 100644 --- a/baixing_quanleimu/src/com/quanleimu/imageCache/LazyImageLoader.java +++ b/baixing_quanleimu/src/com/quanleimu/imageCache/LazyImageL...
true
true
public void run() { try { while(isRun && urlDequeDownload.size() > 0) { String url= urlDequeDownload.remove(0); if(null == url){ continue; } Bitmap bitmap = imgManger.safeGetFromNetwork(url); if(null != bitmap){ Message msg=handler.obtainMessage(...
public void run() { try { while(isRun && urlDequeDownload.size() > 0) { String url= urlDequeDownload.remove(0); if(null == url || !url.trim().startsWith("http")){ continue; } Bitmap bitmap = imgManger.safeGetFromNetwork(url); if(null != bitmap){ ...
diff --git a/nuxeo-core-storage-sql/nuxeo-core-storage-sql-test/src/test/java/org/nuxeo/ecm/core/storage/sql/TestSQLRepositoryAPI.java b/nuxeo-core-storage-sql/nuxeo-core-storage-sql-test/src/test/java/org/nuxeo/ecm/core/storage/sql/TestSQLRepositoryAPI.java index 0ec5e72e5..c437e6ced 100644 --- a/nuxeo-core-storage-sq...
false
true
public void testComplexType() throws Exception { // boiler plate to handle the asynchronous full-text indexing of blob // content in a deterministic way EventServiceImpl eventService = (EventServiceImpl) Framework.getLocalService(EventService.class); deployBundle("org.nuxeo.ecm.core....
public void testComplexType() throws Exception { // boiler plate to handle the asynchronous full-text indexing of blob // content in a deterministic way EventServiceImpl eventService = (EventServiceImpl) Framework.getLocalService(EventService.class); deployBundle("org.nuxeo.ecm.core....
diff --git a/geoserver/src/org/vfny/geoserver/action/data/DataDataStoresEditorAction.java b/geoserver/src/org/vfny/geoserver/action/data/DataDataStoresEditorAction.java index da902721c0..db7f09c5ad 100644 --- a/geoserver/src/org/vfny/geoserver/action/data/DataDataStoresEditorAction.java +++ b/geoserver/src/org/vfny/geo...
false
true
public ActionForward execute(ActionMapping mapping, ActionForm form, UserContainer user, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { DataDataStoresEditorForm dataStoresForm = (DataDataStoresEditorForm) form; String dataStoreID = d...
public ActionForward execute(ActionMapping mapping, ActionForm form, UserContainer user, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { DataDataStoresEditorForm dataStoresForm = (DataDataStoresEditorForm) form; String dataStoreID = d...
diff --git a/E-EYE-O_DAOHibernateImpl/src/com/jtbdevelopment/e_eye_o/hibernate/DAO/HibernateReadOnlyDAO.java b/E-EYE-O_DAOHibernateImpl/src/com/jtbdevelopment/e_eye_o/hibernate/DAO/HibernateReadOnlyDAO.java index a5d4f11..238544e 100644 --- a/E-EYE-O_DAOHibernateImpl/src/com/jtbdevelopment/e_eye_o/hibernate/DAO/Hiberna...
true
true
public <T extends AppUserOwnedObject> Set<T> getEntitiesModifiedSince(final Class<T> entityType, final AppUser appUser, final DateTime since) { Query query = sessionFactory.getCurrentSession().createQuery("from " + getHibernateEntityName(entityType) + " where appUser = :user and modificationTimestamp > :sin...
public <T extends AppUserOwnedObject> Set<T> getEntitiesModifiedSince(final Class<T> entityType, final AppUser appUser, final DateTime since) { Query query = sessionFactory.getCurrentSession().createQuery("from " + getHibernateEntityName(entityType) + " where appUser = :user and modificationTimestamp > :sin...
diff --git a/com.genericworkflownodes.knime.base_plugin/src/com/genericworkflownodes/knime/generic_node/dialogs/param_dialog/list_editor/ListEditorDialog.java b/com.genericworkflownodes.knime.base_plugin/src/com/genericworkflownodes/knime/generic_node/dialogs/param_dialog/list_editor/ListEditorDialog.java index c4a2890...
false
true
private void addButtons(Container pane) { JButton addButton = new JButton("Add"); addButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent arg0) { final int addedIndex = model.addValue(); SwingUtilities.invokeLater(new Runnable() { @Override publi...
private void addButtons(Container pane) { JButton addButton = new JButton("Add"); addButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent arg0) { if (table.isEditing()) table.getCellEditor().stopCellEditing(); final int addedIndex = model.addValue(); ...
diff --git a/src/org/python/modules/types.java b/src/org/python/modules/types.java index 4864d0cf..6a3a04f5 100644 --- a/src/org/python/modules/types.java +++ b/src/org/python/modules/types.java @@ -1,60 +1,60 @@ // Copyright (c) Corporation for National Research Initiatives package org.python.modules; import org.py...
true
true
public static void classDictInit(PyObject dict) { dict.__setitem__("ArrayType", PyType.fromClass(PyArray.class)); dict.__setitem__("BuiltinFunctionType", PyType.fromClass(PyReflectedFunction.class)); dict.__setitem__("BuiltinMethodType", PyTy...
public static void classDictInit(PyObject dict) { dict.__setitem__("ArrayType", PyType.fromClass(PyArray.class)); dict.__setitem__("BuiltinFunctionType", PyType.fromClass(PyReflectedFunction.class)); dict.__setitem__("BuiltinMethodType", PyTy...
diff --git a/src/java/com/android/internal/telephony/uicc/AdnRecordLoader.java b/src/java/com/android/internal/telephony/uicc/AdnRecordLoader.java index 20ec787..eea397b 100644 --- a/src/java/com/android/internal/telephony/uicc/AdnRecordLoader.java +++ b/src/java/com/android/internal/telephony/uicc/AdnRecordLoader.java...
true
true
public void handleMessage(Message msg) { AsyncResult ar; byte data[]; AdnRecord adn; try { switch (msg.what) { case EVENT_EF_LINEAR_RECORD_SIZE_DONE: ar = (AsyncResult)(msg.obj); adn = (AdnRecord)(ar.userObj); ...
public void handleMessage(Message msg) { AsyncResult ar; byte data[]; AdnRecord adn; try { switch (msg.what) { case EVENT_EF_LINEAR_RECORD_SIZE_DONE: ar = (AsyncResult)(msg.obj); adn = (AdnRecord)(ar.userObj); ...
diff --git a/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/DigestAuthenticator.java b/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/DigestAuthenticator.java index ac4ebe2ea..5a2ecf412 100644 --- a/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/Di...
true
true
public Authentication validateRequest(ServletRequest req, ServletResponse res, boolean mandatory) throws ServerAuthException { if (!mandatory) return _deferred; HttpServletRequest request = (HttpServletRequest)req; HttpServletResponse response = (HttpServletResponse)...
public Authentication validateRequest(ServletRequest req, ServletResponse res, boolean mandatory) throws ServerAuthException { if (!mandatory) return _deferred; HttpServletRequest request = (HttpServletRequest)req; HttpServletResponse response = (HttpServletResponse)...
diff --git a/src/test/com/mongodb/DBRefTest.java b/src/test/com/mongodb/DBRefTest.java index 67b4ab446..048a951e7 100644 --- a/src/test/com/mongodb/DBRefTest.java +++ b/src/test/com/mongodb/DBRefTest.java @@ -1,156 +1,156 @@ /** * Copyright (C) 2008 10gen Inc. * * Licensed under the Apache License, Versio...
true
true
public void testDBRef(){ DBRef ref = new DBRef(_db, "hello", (Object)"world"); DBObject o = new BasicDBObject("!", ref); OutMessage out = new OutMessage( cleanupMongo ); out.putObject( o ); DefaultDBCallback cb = new DefaultDBCallback( null ); BSONDecoder decoder =...
public void testDBRef(){ DBRef ref = new DBRef(_db, "hello", (Object)"world"); DBObject o = new BasicDBObject("!", ref); OutMessage out = new OutMessage( cleanupMongo ); out.putObject( o ); DefaultDBCallback cb = new DefaultDBCallback( null ); BSONDecoder decoder =...
diff --git a/core/src/org/icepdf/core/pobjects/Form.java b/core/src/org/icepdf/core/pobjects/Form.java index 428fd4c2..044c2683 100644 --- a/core/src/org/icepdf/core/pobjects/Form.java +++ b/core/src/org/icepdf/core/pobjects/Form.java @@ -1,223 +1,223 @@ /* * Copyright 2006-2012 ICEsoft Technologies Inc. * * Lic...
true
true
public synchronized void init() { if (inited) { return; } List v = (List) library.getObject(entries, MATRIX_KEY); if (v != null) { matrix = getAffineTransform(v); } bbox = library.getRectangle(entries, BBOX_KEY); // try and find the for...
public synchronized void init() { if (inited) { return; } List v = (List) library.getObject(entries, MATRIX_KEY); if (v != null) { matrix = getAffineTransform(v); } bbox = library.getRectangle(entries, BBOX_KEY); // try and find the for...
diff --git a/Pos/src/com/rtt_ku/pos/Add_Activity.java b/Pos/src/com/rtt_ku/pos/Add_Activity.java index 87122c3..47ed7a8 100644 --- a/Pos/src/com/rtt_ku/pos/Add_Activity.java +++ b/Pos/src/com/rtt_ku/pos/Add_Activity.java @@ -1,101 +1,101 @@ package com.rtt_ku.pos; import com.database.pos.Database; import com.rtt_s...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.add_layout); // view matching Button okButton = (Button)findViewById(R.id.OK_button); Button cancelButton = (Button)findViewById(R.id.cancel_button); Database myDb = new Database(this);...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.add_layout); // view matching Button okButton = (Button)findViewById(R.id.OK_button); Button cancelButton = (Button)findViewById(R.id.cancel_button); Database myDb = new Database(this);...
diff --git a/src/main/java/org/candlepin/util/X509Util.java b/src/main/java/org/candlepin/util/X509Util.java index b60ff5168..60a26a9eb 100644 --- a/src/main/java/org/candlepin/util/X509Util.java +++ b/src/main/java/org/candlepin/util/X509Util.java @@ -1,226 +1,228 @@ /** * Copyright (c) 2009 - 2012 Red Hat, Inc. ...
true
true
public Set<ProductContent> filterContentByContentArch( Set<ProductContent> pcSet, Consumer consumer, Product product) { Set<ProductContent> filtered = new HashSet<ProductContent>(); String consumerArch = consumer.getFact(ARCH_FACT); log.debug("consumerArch: " + consumerArch); ...
public Set<ProductContent> filterContentByContentArch( Set<ProductContent> pcSet, Consumer consumer, Product product) { Set<ProductContent> filtered = new HashSet<ProductContent>(); String consumerArch = consumer.getFact(ARCH_FACT); log.debug("consumerArch: " + consumerArch); ...
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/FetchMembersOperation.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/FetchMembersOperation.java index add9a360b..4e268038e 100644 --- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/t...
true
true
protected void execute(IProgressMonitor monitor) throws CVSException, InterruptedException { ICVSRemoteFolder remote = getRemoteFolder(); if (remote instanceof RemoteFolder) { monitor = Policy.monitorFor(monitor); boolean isRoot = remote.getName().equals(ICVSRemoteFolder.REPOSITORY_ROOT_FOLDER_NAME); moni...
protected void execute(IProgressMonitor monitor) throws CVSException, InterruptedException { ICVSRemoteFolder remote = getRemoteFolder(); if (remote.getClass().equals(RemoteFolder.class)) { monitor = Policy.monitorFor(monitor); boolean isRoot = remote.getName().equals(ICVSRemoteFolder.REPOSITORY_ROOT_FOLDER_...
diff --git a/nuxeo-web-mobile/src/main/java/org/nuxeo/ecm/mobile/webengine/document/PreviewAdapter.java b/nuxeo-web-mobile/src/main/java/org/nuxeo/ecm/mobile/webengine/document/PreviewAdapter.java index 3f08ab7..d217972 100644 --- a/nuxeo-web-mobile/src/main/java/org/nuxeo/ecm/mobile/webengine/document/PreviewAdapter.j...
true
true
public String getPreviewURL() { Object targetObject = ctx.getTargetObject(); if (!(targetObject instanceof MobileDocument)) { throw new WebException("Target Object must be MobileDocument"); } return getNuxeoContextPath() + PreviewHelper.getPreviewURL(((Mob...
public String getPreviewURL() { Object targetObject = ctx.getTargetObject(); if (!(targetObject instanceof MobileDocument)) { throw new WebException("Target Object must be MobileDocument"); } return getNuxeoContextPath() + "/" + PreviewHelper.getPreviewURL...
diff --git a/src/com/mick88/convoytrucking/player/PlayerEntity.java b/src/com/mick88/convoytrucking/player/PlayerEntity.java index 6372156..6d05eb0 100644 --- a/src/com/mick88/convoytrucking/player/PlayerEntity.java +++ b/src/com/mick88/convoytrucking/player/PlayerEntity.java @@ -1,233 +1,233 @@ package com.mick88.con...
true
true
public PlayerStat [] getStats() { return new PlayerStat[] { new PlayerStat("Artic", statArtic), new PlayerStat("Dumper", statDumper), new PlayerStat("Fuel delivery", statTanker), new PlayerStat("Cement", statCement), new PlayerStat("Trashmaster", statTrash), new PlayerStat("Coach", statCoach...
public PlayerStat [] getStats() { return new PlayerStat[] { new PlayerStat("Artic", statArtic), new PlayerStat("Dumper", statDumper), new PlayerStat("Fuel delivery", statTanker), new PlayerStat("Cement", statCement), new PlayerStat("Trashmaster", statTrash), new PlayerStat("Coach", statCoach...
diff --git a/src/main/java/org/basex/server/QueryListener.java b/src/main/java/org/basex/server/QueryListener.java index 19780ff5f..0d085e21f 100644 --- a/src/main/java/org/basex/server/QueryListener.java +++ b/src/main/java/org/basex/server/QueryListener.java @@ -1,211 +1,213 @@ package org.basex.server; import st...
true
true
void execute(final boolean iter, final OutputStream out, final boolean enc, final boolean full) throws IOException { try { try { // parses the query and registers the process ctx.register(parse()); // create serializer qp.compile(); qi.cmpl = perf.time(); ...
void execute(final boolean iter, final OutputStream out, final boolean enc, final boolean full) throws IOException { try { try { // parses the query and registers the process ctx.register(parse()); // create serializer qp.compile(); qi.cmpl = perf.time(); ...
diff --git a/test/java/org/apache/fop/fotreetest/ext/AssertElement.java b/test/java/org/apache/fop/fotreetest/ext/AssertElement.java index 6d12073f7..ebd8335c1 100644 --- a/test/java/org/apache/fop/fotreetest/ext/AssertElement.java +++ b/test/java/org/apache/fop/fotreetest/ext/AssertElement.java @@ -1,72 +1,74 @@ /* ...
true
true
public void processNode(String elementName, Locator locator, Attributes attlist, PropertyList propertyList) throws FOPException { //super.processNode(elementName, locator, attlist, propertyList); ResultCollector ...
public void processNode(String elementName, Locator locator, Attributes attlist, PropertyList propertyList) throws FOPException { //super.processNode(elementName, locator, attlist, propertyList); ResultCollector ...
diff --git a/android/src/com/sonyericsson/chkbugreport/LogViewer.java b/android/src/com/sonyericsson/chkbugreport/LogViewer.java index 7dcd597..cf831e1 100644 --- a/android/src/com/sonyericsson/chkbugreport/LogViewer.java +++ b/android/src/com/sonyericsson/chkbugreport/LogViewer.java @@ -1,63 +1,63 @@ /* * Copyright...
true
true
protected void onDraw(Canvas canvas) { canvas.drawColor(0xff000000); int count = getHeight() / mTextHeight; int y = mTextHeight; for (int i = 0; i < count; i++) { int idx = (mIdx + SIZE + i - count) % SIZE; String string = mLogs[idx]; if (string !=...
protected void onDraw(Canvas canvas) { canvas.drawColor(0xff000000); int count = Math.min(SIZE, getHeight() / mTextHeight); int y = mTextHeight; for (int i = 0; i < count; i++) { int idx = (mIdx + SIZE + i - count) % SIZE; String string = mLogs[idx]; ...
diff --git a/src/JDBCtask.java b/src/JDBCtask.java index 9d4d2b7..d991f0b 100644 --- a/src/JDBCtask.java +++ b/src/JDBCtask.java @@ -1,70 +1,70 @@ import java.sql.*; import java.util.Scanner; public class JDBCtask{ public static void main(String[] args) { System.out.println("Table Creation Example!"); Conn...
false
true
public static void main(String[] args) { System.out.println("Table Creation Example!"); Connection con = null; String url = "jdbc:mysql://localhost:3306/"; String dbName = "jdbctutorial"; String driverName = "com.mysql.jdbc.Driver"; String userName = "root"; String password = "root"; PreparedStatement prepare...
public static void main(String[] args) { System.out.println("Table Creation Example!"); Connection con = null; String url = "jdbc:mysql://localhost:3306/"; String dbName = "jdbctutorial"; String driverName = "com.mysql.jdbc.Driver"; String userName = "root"; String password = "root"; PreparedStatement prepare...
diff --git a/keystore/java/android/security/ServiceCommand.java b/keystore/java/android/security/ServiceCommand.java index 2f335be1..6178d59a 100644 --- a/keystore/java/android/security/ServiceCommand.java +++ b/keystore/java/android/security/ServiceCommand.java @@ -1,196 +1,196 @@ /* * Copyright (C) 2009 The Androi...
true
true
private boolean writeCommand(int cmd, String _data) { byte buf[] = new byte[8]; byte[] data = _data.getBytes(); int len = data.length; // the length of data buf[0] = (byte) (len & 0xff); buf[1] = (byte) ((len >> 8) & 0xff); buf[2] = (byte) ((len >> 16) & 0xff)...
private boolean writeCommand(int cmd, String _data) { byte buf[] = new byte[8]; byte[] data = (_data == null) ? new byte[0] : _data.getBytes(); int len = data.length; // the length of data buf[0] = (byte) (len & 0xff); buf[1] = (byte) ((len >> 8) & 0xff); buf[...
diff --git a/src/scratchpad/src/org/apache/poi/hssf/record/formula/functions/Mid.java b/src/scratchpad/src/org/apache/poi/hssf/record/formula/functions/Mid.java index d6c4399ae..191735543 100644 --- a/src/scratchpad/src/org/apache/poi/hssf/record/formula/functions/Mid.java +++ b/src/scratchpad/src/org/apache/poi/hssf/r...
true
true
public Eval evaluate(Eval[] operands, int srcCellRow, short srcCellCol) { Eval retval = null; String str = null; int startNum = 0; int numChars = 0; switch (operands.length) { default: retval = ErrorEval.VALUE_INVALID; case 3: ...
public Eval evaluate(Eval[] operands, int srcCellRow, short srcCellCol) { Eval retval = null; String str = null; int startNum = 0; int numChars = 0; switch (operands.length) { default: retval = ErrorEval.VALUE_INVALID; case 3: ...
diff --git a/jpwgen/src/main/java/org/jpwgen/Main.java b/jpwgen/src/main/java/org/jpwgen/Main.java index 2188e9f..4eba1a0 100644 --- a/jpwgen/src/main/java/org/jpwgen/Main.java +++ b/jpwgen/src/main/java/org/jpwgen/Main.java @@ -1,108 +1,108 @@ // Copyright (c) Andrew Smith. All rights reserved. // The use and distri...
true
true
public static void main(String[] args) { CommandLineParser parser = new PosixParser(); HelpFormatter formatter = new HelpFormatter(); Options options = new Options(); options.addOption("l", "lowercase", false, "Include lowercase alpha characters"); options....
public static void main(String[] args) { CommandLineParser parser = new PosixParser(); HelpFormatter formatter = new HelpFormatter(); Options options = new Options(); options.addOption("l", "lowercase", false, "Include lowercase alpha characters"); options....
diff --git a/app/controllers/Application.java b/app/controllers/Application.java index 195ef83..93e5c8d 100644 --- a/app/controllers/Application.java +++ b/app/controllers/Application.java @@ -1,543 +1,543 @@ package controllers; import java.io.ByteArrayInputStream; import java.io.File; import java.io.FileInputSt...
true
true
private static Object[] process(File f, String sourceUrlString, Comet comet) { List<Message> deps = new ArrayList<Message>(); try { final URL sourceUrl=new URL(sourceUrlString); Source source = new Source(f); OutputDocument outputDocument = new OutputDocument(source); StringBuilder sb=new StringBuilder...
private static Object[] process(File f, String sourceUrlString, Comet comet) { List<Message> deps = new ArrayList<Message>(); try { final URL sourceUrl=new URL(sourceUrlString); Source source = new Source(f); OutputDocument outputDocument = new OutputDocument(source); StringBuilder sb=new StringBuilder...
diff --git a/Lab3/src/utils/DNAUtil.java b/Lab3/src/utils/DNAUtil.java index 9d38066..df3b217 100644 --- a/Lab3/src/utils/DNAUtil.java +++ b/Lab3/src/utils/DNAUtil.java @@ -1,347 +1,347 @@ package utils; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.text.DecimalFormat...
true
true
private static void calculateGeneContentAndDensity( Map<String, List<Gene>> genes) { List<Gene> gList; int mRNATotalSize = 0; int mRNACount = 0; Map<String, Double> averageCDSSizes = new HashMap<String, Double>(); Map<String, Double> averageExonSizes = new HashMap<String, Double>(); Map<String, Attribut...
private static void calculateGeneContentAndDensity( Map<String, List<Gene>> genes) { List<Gene> gList; int mRNATotalSize = 0; int mRNACount = 0; Map<String, Double> averageCDSSizes = new HashMap<String, Double>(); Map<String, Double> averageExonSizes = new HashMap<String, Double>(); Map<String, Attribut...
diff --git a/titan-core/src/main/java/com/thinkaurelius/titan/graphdb/transaction/AbstractTitanTx.java b/titan-core/src/main/java/com/thinkaurelius/titan/graphdb/transaction/AbstractTitanTx.java index 928177187..2a844a1a7 100644 --- a/titan-core/src/main/java/com/thinkaurelius/titan/graphdb/transaction/AbstractTitanTx....
true
true
public Iterable<TitanVertex> getVertices(final TitanKey key, Object attribute) { verifyAccess(key); Preconditions.checkNotNull(key); attribute = AttributeUtil.prepareAttribute(attribute, key.getDataType()); if (key.hasIndex()) { // First, get stuff from disk l...
public Iterable<TitanVertex> getVertices(final TitanKey key, Object attribute) { verifyAccess(key); Preconditions.checkNotNull(key); if (attribute!=null) attribute = AttributeUtil.prepareAttribute(attribute, key.getDataType()); if (key.hasIndex() && attribute!=null) { // ...
diff --git a/src/main/java/org/agilewiki/jasocket/jid/agent/EvalAgent.java b/src/main/java/org/agilewiki/jasocket/jid/agent/EvalAgent.java index 601745c..252eeed 100644 --- a/src/main/java/org/agilewiki/jasocket/jid/agent/EvalAgent.java +++ b/src/main/java/org/agilewiki/jasocket/jid/agent/EvalAgent.java @@ -1,61 +1,61 ...
true
true
protected void process(RP rp) throws Exception { if (!isLocal()) { LoggerFactory.getLogger(EvalAgent.class). info("from " + agentChannel().remoteAddress + ">" + getArgString() + "\n>"); } String in = getArgString().trim(); int i = in.indexOf(' '); ...
protected void process(RP rp) throws Exception { if (!isLocal()) { LoggerFactory.getLogger(EvalAgent.class). info("from " + agentChannel().remoteAddress + ">" + getArgString()); } String in = getArgString().trim(); int i = in.indexOf(' '); Stri...
diff --git a/src/chvck/colourMate/activities/CompareColours.java b/src/chvck/colourMate/activities/CompareColours.java index cfa1179..a658caa 100644 --- a/src/chvck/colourMate/activities/CompareColours.java +++ b/src/chvck/colourMate/activities/CompareColours.java @@ -1,60 +1,65 @@ package chvck.colourMate.activities;...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.compare); ImageView origColourView = (ImageView) findViewById(R.id.originalColourView); LinearLayout ll = (LinearLayout) findViewById(R.id.ll_compare); Bundle extras = ...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.compare); ImageView origColourView = (ImageView) findViewById(R.id.originalColourView); LinearLayout ll = (LinearLayout) findViewById(R.id.ll_compare); Bundle extras = ...
diff --git a/src/com/dmdirc/updater/Update.java b/src/com/dmdirc/updater/Update.java index 441f7865a..bade7d0d1 100644 --- a/src/com/dmdirc/updater/Update.java +++ b/src/com/dmdirc/updater/Update.java @@ -1,222 +1,226 @@ /* * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes * * Permission is...
true
true
public void doUpdate() { new Thread(new Runnable() { /** {@inheritDoc} */ @Override public void run() { final String path = Main.getConfigDir() + "update.tmp." + Math.round(Math.random() * 1000); setStatus(UpdateSt...
public void doUpdate() { new Thread(new Runnable() { /** {@inheritDoc} */ @Override public void run() { final String path = Main.getConfigDir() + "update.tmp." + Math.round(Math.random() * 1000); setStatus(UpdateSt...
diff --git a/src/api/org/openmrs/module/ModuleUtil.java b/src/api/org/openmrs/module/ModuleUtil.java index 54ac5b86..978c4807 100644 --- a/src/api/org/openmrs/module/ModuleUtil.java +++ b/src/api/org/openmrs/module/ModuleUtil.java @@ -1,567 +1,565 @@ /** * The contents of this file are subject to the OpenMRS Public ...
false
true
public static void startup(Properties props) { String moduleListString = props.getProperty(ModuleConstants.RUNTIMEPROPERTY_MODULE_LIST_TO_LOAD); if (moduleListString == null || moduleListString.length() == 0) { // Attempt to get all of the modules from the modules folder // and store them in the module...
public static void startup(Properties props) { String moduleListString = props.getProperty(ModuleConstants.RUNTIMEPROPERTY_MODULE_LIST_TO_LOAD); if (moduleListString == null || moduleListString.length() == 0) { // Attempt to get all of the modules from the modules folder // and store them in the module...
diff --git a/src/org/apache/xalan/templates/FuncFormatNumb.java b/src/org/apache/xalan/templates/FuncFormatNumb.java index 4e2e6ce9..b1df0c9a 100644 --- a/src/org/apache/xalan/templates/FuncFormatNumb.java +++ b/src/org/apache/xalan/templates/FuncFormatNumb.java @@ -1,220 +1,220 @@ /* * The Apache Software License, ...
true
true
public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException { // A bit of an ugly hack to get our context. ElemTemplateElement templElem = (ElemTemplateElement) xctxt.getNamespaceContext(); StylesheetRoot ss = templElem.getStylesheetRoot(); java.text.DecimalForm...
public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException { // A bit of an ugly hack to get our context. ElemTemplateElement templElem = (ElemTemplateElement) xctxt.getNamespaceContext(); StylesheetRoot ss = templElem.getStylesheetRoot(); java.text.DecimalForm...
diff --git a/clients/android/NewsBlur/src/com/newsblur/activity/Reading.java b/clients/android/NewsBlur/src/com/newsblur/activity/Reading.java index 17d69a870..4fe4657a1 100644 --- a/clients/android/NewsBlur/src/com/newsblur/activity/Reading.java +++ b/clients/android/NewsBlur/src/com/newsblur/activity/Reading.java @@ ...
false
true
private void nextUnread() { synchronized (UNREAD_SEARCH_MUTEX) { int candidate = 0; boolean unreadFound = false; unreadSearch:while (!unreadFound) { Story story = readingAdapter.getStory(candidate); if (story == null) { ...
private void nextUnread() { synchronized (UNREAD_SEARCH_MUTEX) { int candidate = 0; boolean unreadFound = false; boolean error = false; unreadSearch:while (!unreadFound) { Story story = readingAdapter.getStory(candidate); if (...
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/BrowserInfo.java b/src/com/itmill/toolkit/terminal/gwt/client/BrowserInfo.java index 63805fd62..d62a4a657 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/BrowserInfo.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/BrowserInfo.java @@ -1,141 +1,141 @@...
true
true
private BrowserInfo() { try { String ua = getBrowserString().toLowerCase(); // browser engine name isGecko = ua.indexOf("gecko") != -1 && ua.indexOf("safari") == -1; isAppleWebKit = ua.indexOf("applewebkit") != -1; // browser name isSa...
private BrowserInfo() { try { String ua = getBrowserString().toLowerCase(); // browser engine name isGecko = ua.indexOf("gecko") != -1 && ua.indexOf("webkit") == -1; isAppleWebKit = ua.indexOf("applewebkit") != -1; // browser name isSa...
diff --git a/library/src/org/whispersystems/textsecure/storage/SessionRecordV2.java b/library/src/org/whispersystems/textsecure/storage/SessionRecordV2.java index 6a0fdb6ce..e4c5ba39f 100644 --- a/library/src/org/whispersystems/textsecure/storage/SessionRecordV2.java +++ b/library/src/org/whispersystems/textsecure/stor...
true
true
public MessageKeys removeMessageKeys(ECPublicKey senderEphemeral, int counter) { Pair<Chain,Integer> chainAndIndex = getReceiverChain(senderEphemeral); Chain chain = chainAndIndex.first; if (chain == null) { return null; } List<Chain.MessageKey> messageKeyList ...
public MessageKeys removeMessageKeys(ECPublicKey senderEphemeral, int counter) { Pair<Chain,Integer> chainAndIndex = getReceiverChain(senderEphemeral); Chain chain = chainAndIndex.first; if (chain == null) { return null; } List<Chain.MessageKey> messageKeyList ...
diff --git a/Osm2GpsMid/FBrowser/de/ueller/osm/fBrowser/SingleTile.java b/Osm2GpsMid/FBrowser/de/ueller/osm/fBrowser/SingleTile.java index e4232a6b..15fbcfc2 100644 --- a/Osm2GpsMid/FBrowser/de/ueller/osm/fBrowser/SingleTile.java +++ b/Osm2GpsMid/FBrowser/de/ueller/osm/fBrowser/SingleTile.java @@ -1,168 +1,168 @@ /* ...
false
true
private void readContent() throws IOException{ String fn = root+"/t" + zl + fileId + ".d"; System.out.println("read " + fn); FileInputStream f=new FileInputStream(fn); DataInputStream ds = new DataInputStream(f); if (ds.readByte()!=0x54) { throw new IOException("not a MapMid-file"); } centerLat = ds.r...
private void readContent() throws IOException{ String fn = root+"/t" + zl + fileId + ".d"; System.out.println("read " + fn); FileInputStream f=new FileInputStream(fn); DataInputStream ds = new DataInputStream(f); if (ds.readByte()!=0x54) { throw new IOException("not a MapMid-file"); } centerLat = ds.r...
diff --git a/js/src/main/java/org/obiba/magma/js/methods/TextMethods.java b/js/src/main/java/org/obiba/magma/js/methods/TextMethods.java index e1d9fdf1..9dbdbac2 100644 --- a/js/src/main/java/org/obiba/magma/js/methods/TextMethods.java +++ b/js/src/main/java/org/obiba/magma/js/methods/TextMethods.java @@ -1,203 +1,205 ...
true
true
private static Value lookupValue(Context ctx, Scriptable thisObj, Value value, ValueType returnType, NativeObject valueMap) { Object newValue = null; if(value.getValueType().isNumeric()) { newValue = valueMap.get(((Number) value.getValue()).intValue(), null); } else { newValue = valueMap.get((...
private static Value lookupValue(Context ctx, Scriptable thisObj, Value value, ValueType returnType, NativeObject valueMap) { Object newValue = null; if(value.getValueType().isNumeric()) { newValue = valueMap.get(((Number) value.getValue()).intValue(), null); } else { newValue = valueMap.get((...
diff --git a/bpel-compiler/src/test/java/org/apache/ode/bpel/compiler_2_0/GoodCompileTest.java b/bpel-compiler/src/test/java/org/apache/ode/bpel/compiler_2_0/GoodCompileTest.java index ae183b82..83417409 100644 --- a/bpel-compiler/src/test/java/org/apache/ode/bpel/compiler_2_0/GoodCompileTest.java +++ b/bpel-compiler/s...
true
true
public static Test suite() throws Exception { TestSuite suite = new TestSuite(); suite.addTest(new GoodCompileTCase("/2.0/good/assign/Assign1-2.0.bpel")); suite.addTest(new GoodCompileTCase("/2.0/good/assign/Assign2-2.0.bpel")); suite.addTest(new GoodCompileTCase("/2.0/good/assign/As...
public static Test suite() throws Exception { TestSuite suite = new TestSuite(); suite.addTest(new GoodCompileTCase("/2.0/good/assign/Assign1-2.0.bpel")); suite.addTest(new GoodCompileTCase("/2.0/good/assign/Assign2-2.0.bpel")); suite.addTest(new GoodCompileTCase("/2.0/good/assign/As...
diff --git a/src/com/zemariamm/appirater/AppirateUtils.java b/src/com/zemariamm/appirater/AppirateUtils.java index 916ec67..9f185d9 100644 --- a/src/com/zemariamm/appirater/AppirateUtils.java +++ b/src/com/zemariamm/appirater/AppirateUtils.java @@ -1,123 +1,123 @@ package com.zemariamm.appirater; import android.app...
true
true
public static void appiraterDialog(final Context context,final AppiraterBase parent) { AlertDialog.Builder builderInvite = new AlertDialog.Builder(context); //String appName = context.getResources().getString(R.string.app_name); String packageName = ""; String appName = "" ; try { PackageManager manager =...
public static void appiraterDialog(final Context context,final AppiraterBase parent) { AlertDialog.Builder builderInvite = new AlertDialog.Builder(context); //String appName = context.getResources().getString(R.string.app_name); String packageName = ""; String appName = "" ; try { PackageManager manager =...
diff --git a/src/java/org/infoglue/cms/applications/structuretool/actions/CreatePageTemplateAction.java b/src/java/org/infoglue/cms/applications/structuretool/actions/CreatePageTemplateAction.java index 0e402e8a9..8250cd85f 100755 --- a/src/java/org/infoglue/cms/applications/structuretool/actions/CreatePageTemplateActi...
true
true
public String doExecute() throws Exception { CmsLogger.logInfo("contentId:" + contentId); CmsLogger.logInfo("parentContentId:" + parentContentId); CmsLogger.logInfo("repositoryId:" + repositoryId); CmsLogger.logInfo("siteNodeId:" + siteNodeId); CmsLogger.logInfo("name:" +...
public String doExecute() throws Exception { CmsLogger.logInfo("contentId:" + contentId); CmsLogger.logInfo("parentContentId:" + parentContentId); CmsLogger.logInfo("repositoryId:" + repositoryId); CmsLogger.logInfo("siteNodeId:" + siteNodeId); CmsLogger.logInfo("name:" +...
diff --git a/src/main/java/org/jbei/ice/web/utils/WebUtils.java b/src/main/java/org/jbei/ice/web/utils/WebUtils.java index b061f4731..559b868a3 100644 --- a/src/main/java/org/jbei/ice/web/utils/WebUtils.java +++ b/src/main/java/org/jbei/ice/web/utils/WebUtils.java @@ -1,151 +1,163 @@ package org.jbei.ice.web.utils; ...
false
true
public static String jbeiLinkifyText(String text) { Pattern basicJbeiPattern = Pattern.compile("\\[\\[jbei:.*?\\]\\]"); Pattern partNumberPattern = Pattern.compile("\\[\\[jbei:(.*)\\]\\]"); Pattern descriptivePattern = Pattern.compile("\\[\\[jbei:(.*)\\|(.*)\\]\\]"); Matcher basicJb...
public static String jbeiLinkifyText(String text) { Pattern basicJbeiPattern = Pattern.compile("\\[\\[jbei:.*?\\]\\]"); Pattern partNumberPattern = Pattern.compile("\\[\\[jbei:(.*)\\]\\]"); Pattern descriptivePattern = Pattern.compile("\\[\\[jbei:(.*)\\|(.*)\\]\\]"); if (text == nul...
diff --git a/src/org/jacorb/idl/StructType.java b/src/org/jacorb/idl/StructType.java index 2727d637e..4db26e31a 100644 --- a/src/org/jacorb/idl/StructType.java +++ b/src/org/jacorb/idl/StructType.java @@ -1,673 +1,673 @@ package org.jacorb.idl; /* * JacORB - a free Java ORB * * Copyright (C) 1997-200...
true
true
private void printStructClass(String className, PrintWriter ps) { if (parser.checkJdk14 && pack_name.equals("")) parser.fatal_error ("No package defined for " + className + " - illegal in JDK1.4", token); String fullClassName = className; if (!pack_name.equal...
private void printStructClass(String className, PrintWriter ps) { if (parser.checkJdk14 && pack_name.equals("")) parser.fatal_error ("No package defined for " + className + " - illegal in JDK1.4", token); String fullClassName = className; if (!pack_name.equal...
diff --git a/dspace/src/org/dspace/search/Harvest.java b/dspace/src/org/dspace/search/Harvest.java index 6497ab13f..2b0c8cd9d 100644 --- a/dspace/src/org/dspace/search/Harvest.java +++ b/dspace/src/org/dspace/search/Harvest.java @@ -1,406 +1,406 @@ /* * Harvest.java * * Version: $Revision$ * * Date: $Date$ ...
true
true
public static List harvest(Context context, DSpaceObject scope, String startDate, String endDate, int offset, int limit, boolean items, boolean collections, boolean withdrawn) throws SQLException { // Put together our query. Note there is no need for an // "i...
public static List harvest(Context context, DSpaceObject scope, String startDate, String endDate, int offset, int limit, boolean items, boolean collections, boolean withdrawn) throws SQLException { // Put together our query. Note there is no need for an // "i...
diff --git a/src/org/rascalmpl/semantics/dynamic/ShellCommand.java b/src/org/rascalmpl/semantics/dynamic/ShellCommand.java index d921143ea0..55585438af 100644 --- a/src/org/rascalmpl/semantics/dynamic/ShellCommand.java +++ b/src/org/rascalmpl/semantics/dynamic/ShellCommand.java @@ -1,148 +1,148 @@ /*******************...
true
true
public Result<IValue> interpret(Evaluator __eval) { String name = "rascal.config." + this.getName().toString(); String value = this.getExpression().interpret(__eval).getValue() .toString(); java.lang.System.setProperty(name, value); __eval.updateProperties(); return org.rascalmpl.interpreter.r...
public Result<IValue> interpret(Evaluator __eval) { String name = "rascal." + this.getName().toString(); String value = this.getExpression().interpret(__eval).getValue() .toString(); java.lang.System.setProperty(name, value); __eval.updateProperties(); return org.rascalmpl.interpreter.result.R...
diff --git a/src/com/android/ficus/zipper/ZipperAdapter.java b/src/com/android/ficus/zipper/ZipperAdapter.java index f064793..c69da31 100644 --- a/src/com/android/ficus/zipper/ZipperAdapter.java +++ b/src/com/android/ficus/zipper/ZipperAdapter.java @@ -1,109 +1,109 @@ /* * Copyright (C) 2011 Ficus Kirkpatrick * ...
true
true
public View getChildView(int groupPosition, int childPosition, boolean isLastChild, View convertView, ViewGroup parent) { if (convertView == null) { convertView = LayoutInflater.from(mContext).inflate(R.layout.field_view, null); } ClipperzField field = mCards.get(grou...
public View getChildView(int groupPosition, int childPosition, boolean isLastChild, View convertView, ViewGroup parent) { if (convertView == null) { convertView = LayoutInflater.from(mContext).inflate(R.layout.field_view, null); } ClipperzField field = mCards.get(grou...
diff --git a/src/main/java/org/dasein/cloud/openstack/nova/os/network/NovaSecurityGroup.java b/src/main/java/org/dasein/cloud/openstack/nova/os/network/NovaSecurityGroup.java index 1aa515b..c228e1c 100644 --- a/src/main/java/org/dasein/cloud/openstack/nova/os/network/NovaSecurityGroup.java +++ b/src/main/java/org/dasei...
true
true
public @Nonnull Collection<FirewallRule> getRules(@Nonnull String firewallId) throws InternalException, CloudException { APITrace.begin(getProvider(), "Firewall.getRules"); try { NovaMethod method = new NovaMethod((NovaOpenStack)getProvider()); JSONObject ob = method.getServ...
public @Nonnull Collection<FirewallRule> getRules(@Nonnull String firewallId) throws InternalException, CloudException { APITrace.begin(getProvider(), "Firewall.getRules"); try { NovaMethod method = new NovaMethod((NovaOpenStack)getProvider()); JSONObject ob = method.getServ...
diff --git a/src/schedule/ScheduleHeuristic.java b/src/schedule/ScheduleHeuristic.java index 4201fd4..a3b660d 100644 --- a/src/schedule/ScheduleHeuristic.java +++ b/src/schedule/ScheduleHeuristic.java @@ -1,77 +1,77 @@ package src.schedule; import java.util.ArrayList; import java.util.List; import src.optimizer...
true
true
public Integer getValue(Schedule evolvable) { Integer value = 0; for(Week w : evolvable.getWeeks()) { Integer weekValue = 0; // Everything is on Day 0 for now. Day day = w.getDay(0); List<String> teams = new ArrayList<String>(); for(NFLEvent e : day.getEvents()) { teams.add(e.getAway()); te...
public Integer getValue(Schedule evolvable) { Integer value = 0; for(Week w : evolvable.getWeeks()) { Integer weekValue = 0; // Everything is on Day 0 for now. Day day = w.getDay(0); List<String> teams = new ArrayList<String>(); for(NFLEvent e : day.getEvents()) { teams.add(e.getAway()); te...
diff --git a/jboss-5/src/main/java/org/mobicents/ha/javax/sip/cache/SIPDialogCacheData.java b/jboss-5/src/main/java/org/mobicents/ha/javax/sip/cache/SIPDialogCacheData.java index d8d0359..d176147 100644 --- a/jboss-5/src/main/java/org/mobicents/ha/javax/sip/cache/SIPDialogCacheData.java +++ b/jboss-5/src/main/java/org/...
true
true
public SIPDialog getSIPDialog(String dialogId) throws SipCacheException { HASipDialog haSipDialog = null; final Cache jbossCache = getMobicentsCache().getJBossCache(); final boolean isBuddyReplicationEnabled = jbossCache.getConfiguration().getBuddyReplicationConfig().isEnabled(); TransactionManager transaction...
public SIPDialog getSIPDialog(String dialogId) throws SipCacheException { HASipDialog haSipDialog = null; final Cache jbossCache = getMobicentsCache().getJBossCache(); final boolean isBuddyReplicationEnabled = jbossCache.getConfiguration().getBuddyReplicationConfig().isEnabled(); TransactionManager transaction...
diff --git a/services/bonita-scheduler/bonita-scheduler-quartz/src/main/java/org/bonitasoft/engine/scheduler/impl/JDBCJobListener.java b/services/bonita-scheduler/bonita-scheduler-quartz/src/main/java/org/bonitasoft/engine/scheduler/impl/JDBCJobListener.java index af79ed693b..950610e01a 100644 --- a/services/bonita-sch...
true
true
public void jobWasExecuted(final JobExecutionContext context, final JobExecutionException jobException) { final JobDetail jobDetail = context.getJobDetail(); final Long jobDescriptorId = (Long) jobDetail.getJobDataMap().getWrappedMap().get("jobId"); try { if (jobException != null...
public void jobWasExecuted(final JobExecutionContext context, final JobExecutionException jobException) { final JobDetail jobDetail = context.getJobDetail(); final Long jobDescriptorId = (Long) jobDetail.getJobDataMap().getWrappedMap().get("jobId"); try { if (jobException != null...
diff --git a/src/test/java/org/sonar/report/pdf/test/ReporterTest.java b/src/test/java/org/sonar/report/pdf/test/ReporterTest.java index 40e7cfd..9db53b2 100644 --- a/src/test/java/org/sonar/report/pdf/test/ReporterTest.java +++ b/src/test/java/org/sonar/report/pdf/test/ReporterTest.java @@ -1,42 +1,42 @@ package org....
true
true
public void getReportTest() throws DocumentException, IOException, org.dom4j.DocumentException { URL resource = this.getClass().getClassLoader().getResource("report.properties"); Properties config = new Properties(); config.load(resource.openStream()); PDFReporter reporter = new TeamWorkbookPDFReport...
public void getReportTest() throws DocumentException, IOException, org.dom4j.DocumentException { URL resource = this.getClass().getClassLoader().getResource("report.properties"); Properties config = new Properties(); config.load(resource.openStream()); PDFReporter reporter = new TeamWorkbookPDFReport...
diff --git a/providers/netty/src/main/java/com/ning/http/client/providers/netty/NettyAsyncHttpProvider.java b/providers/netty/src/main/java/com/ning/http/client/providers/netty/NettyAsyncHttpProvider.java index 584be4b2e..1732e3f9b 100644 --- a/providers/netty/src/main/java/com/ning/http/client/providers/netty/NettyAsy...
true
true
private static HttpRequest construct(AsyncHttpClientConfig config, Request request, HttpMethod m, URI uri, ChannelBuffer buffer) throws IOException { ...
private static HttpRequest construct(AsyncHttpClientConfig config, Request request, HttpMethod m, URI uri, ChannelBuffer buffer) throws IOException { ...
diff --git a/native/SalesforceSDK/src/com/salesforce/androidsdk/auth/AuthenticatorService.java b/native/SalesforceSDK/src/com/salesforce/androidsdk/auth/AuthenticatorService.java index ff3a6ff89..77b0f2a1d 100644 --- a/native/SalesforceSDK/src/com/salesforce/androidsdk/auth/AuthenticatorService.java +++ b/native/Salesf...
true
true
public Bundle getAuthToken( AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle options) throws NetworkErrorException { // Log.i("Authenticator:getAuthToke...
public Bundle getAuthToken( AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle options) throws NetworkErrorException { // Log.i("Authenticator:getAuthToke...
diff --git a/ToolReplenish/src/com/onyxchills/toolreplenish/PlayerHandListener.java b/ToolReplenish/src/com/onyxchills/toolreplenish/PlayerHandListener.java index b9c4450..e7d2e93 100644 --- a/ToolReplenish/src/com/onyxchills/toolreplenish/PlayerHandListener.java +++ b/ToolReplenish/src/com/onyxchills/toolreplenish/Pla...
false
true
public boolean onPlayerRightClick(PlayerItemHeldEvent event) { Player player = event.getPlayer(); Material item = player.getItemInHand().getType(); if(player.isSneaking()) { if(player.hasPermission("toolreplenish.fix")) { if(item == Material.WOOD_SPADE || item == Material.WOOD_SWORD || item == Ma...
public boolean onPlayerRightClick(PlayerItemHeldEvent event) { Player player = event.getPlayer(); Material item = player.getItemInHand().getType(); if(player.isSneaking()) { if(player.hasPermission("toolreplenish.fix")) { /* if(item == Material.WOOD_SPADE || item == Material.WOOD_SWORD || ite...
diff --git a/x10.compiler/src/x10/ast/X10CanonicalTypeNode_c.java b/x10.compiler/src/x10/ast/X10CanonicalTypeNode_c.java index 33bc2c991..30827d896 100644 --- a/x10.compiler/src/x10/ast/X10CanonicalTypeNode_c.java +++ b/x10.compiler/src/x10/ast/X10CanonicalTypeNode_c.java @@ -1,318 +1,318 @@ /* * This file is part ...
true
true
public static void checkType(Context context, Type t, Position pos) throws SemanticException { if (t == null) throw new SemanticException("Invalid type.", pos); if (t instanceof ConstrainedType) { ConstrainedType ct = (ConstrainedType) t; Type base = Types.get(ct.baseType()); // if (base ins...
public static void checkType(Context context, Type t, Position pos) throws SemanticException { if (t == null) throw new SemanticException("Invalid type.", pos); if (t instanceof ConstrainedType) { ConstrainedType ct = (ConstrainedType) t; Type base = Types.get(ct.baseType()); // if (base ins...
diff --git a/GnuBackgammon/src/it/alcacoop/backgammon/layers/TwoPlayersScreen.java b/GnuBackgammon/src/it/alcacoop/backgammon/layers/TwoPlayersScreen.java index 6193644..a7f7715 100644 --- a/GnuBackgammon/src/it/alcacoop/backgammon/layers/TwoPlayersScreen.java +++ b/GnuBackgammon/src/it/alcacoop/backgammon/layers/TwoPl...
false
true
public TwoPlayersScreen(){ ClickListener cl = new ClickListener() { public void clicked(InputEvent event, float x, float y) { String s = ((TextButton)event.getListenerActor()).getText().toString().toUpperCase(); if (!s.equals("BACK")) s+=variant; GnuBackgammon.fsm.processEv...
public TwoPlayersScreen(){ ClickListener cl = new ClickListener() { public void clicked(InputEvent event, float x, float y) { String s = ((TextButton)event.getListenerActor()).getText().toString().toUpperCase(); if (!s.equals("BACK")) s+=variant; GnuBackgammon.fsm.processEv...
diff --git a/src/java/org/infoglue/deliver/util/VelocityTemplateProcessor.java b/src/java/org/infoglue/deliver/util/VelocityTemplateProcessor.java index a9f5e348d..d67a4f7d6 100755 --- a/src/java/org/infoglue/deliver/util/VelocityTemplateProcessor.java +++ b/src/java/org/infoglue/deliver/util/VelocityTemplateProcessor....
true
true
public void renderTemplate(Map params, PrintWriter pw, String templateAsString, boolean forceVelocity) throws Exception { try { Timer timer = new Timer(); timer.setActive(false); if(templateAsString.indexOf("<%") > -1 || templateAsString.indexOf("http://java.sun.com/products/jsp/dtd/jspcore...
public void renderTemplate(Map params, PrintWriter pw, String templateAsString, boolean forceVelocity) throws Exception { try { Timer timer = new Timer(); timer.setActive(false); if(templateAsString.indexOf("<%") > -1 || templateAsString.indexOf("http://java.sun.com/products/jsp/dtd/jspcore...
diff --git a/netbout/netbout-rest/src/main/java/com/netbout/rest/FastRs.java b/netbout/netbout-rest/src/main/java/com/netbout/rest/FastRs.java index 3c311e5eb..fbea40e43 100644 --- a/netbout/netbout-rest/src/main/java/com/netbout/rest/FastRs.java +++ b/netbout/netbout-rest/src/main/java/com/netbout/rest/FastRs.java @@ ...
true
true
public Response start(@QueryParam("participants") final String participants, @QueryParam("message") final String message, @QueryParam("leader") @DefaultValue("0") final String leader) { if (participants == null || message == null) { throw new ForwardException( thi...
public Response start(@QueryParam("participants") final String participants, @QueryParam("message") final String message, @QueryParam("leader") @DefaultValue("0") final String leader) { if (participants == null || message == null) { throw new ForwardException( thi...
diff --git a/src/app/net/onlite/morplay/mongo/MongoStore.java b/src/app/net/onlite/morplay/mongo/MongoStore.java index a12a89c..331f3fc 100644 --- a/src/app/net/onlite/morplay/mongo/MongoStore.java +++ b/src/app/net/onlite/morplay/mongo/MongoStore.java @@ -1,88 +1,88 @@ package net.onlite.morplay.mongo; import com....
true
true
protected <T> MongoCollection<T> collection(Class<T> entityClass) { // We need to create concrete classes for specific entity type /** * Concrete atomic operation class */ class TAtomicOperation extends AtomicOperation<T> { public TAtomicOperation(Datastore ds...
public <T> MongoCollection<T> collection(Class<T> entityClass) { // We need to create concrete classes for specific entity type /** * Concrete atomic operation class */ class TAtomicOperation extends AtomicOperation<T> { public TAtomicOperation(Datastore ds, Q...
diff --git a/booking/src/main/java/org/sample/booking/controllers/Application.java b/booking/src/main/java/org/sample/booking/controllers/Application.java index 8b061466..65992af1 100644 --- a/booking/src/main/java/org/sample/booking/controllers/Application.java +++ b/booking/src/main/java/org/sample/booking/controller...
true
true
public Response login(String username, String password) { System.out.println("Want login " + username + " " + password); User user = User.find(username, password); if (user != null) { login.setUserName(user.name); flash.setSuccess("Welcome, " + user.name); return...
public Response login(String username, String password) { System.out.println("Want login " + username + " " + password); User user = User.find(username, password); if (user != null) { login.setUserName(user.username); flash.setSuccess("Welcome, " + user.name); re...
diff --git a/src/main/java/com/rackspace/cloud/api/docs/calabash/extensions/CopyTransformImage.java b/src/main/java/com/rackspace/cloud/api/docs/calabash/extensions/CopyTransformImage.java index 06dbfd6..76d3821 100644 --- a/src/main/java/com/rackspace/cloud/api/docs/calabash/extensions/CopyTransformImage.java +++ b/sr...
true
true
private String processSelectedImage(XdmNode imageDataFileRef) { final URI baseUri = imageDataFileRef.getBaseURI(); final String fileRef = imageDataFileRef.getStringValue(); final URI baseDirUri = baseUri.resolve("."); String srcImgFilePath = FilenameUtils.normalize(baseDirUri.getPath() + File.separator + fi...
private String processSelectedImage(XdmNode imageDataFileRef) { final URI baseUri = imageDataFileRef.getBaseURI(); final String fileRef = imageDataFileRef.getStringValue(); final URI baseDirUri = baseUri.resolve("."); String srcImgFilePath = FilenameUtils.normalize(baseDirUri.getPath() + File.separator + fi...
diff --git a/core/src/java/ru/brandanalyst/core/db/provider/BrandDictionaryProvider.java b/core/src/java/ru/brandanalyst/core/db/provider/BrandDictionaryProvider.java index 600e442..255b1b7 100644 --- a/core/src/java/ru/brandanalyst/core/db/provider/BrandDictionaryProvider.java +++ b/core/src/java/ru/brandanalyst/core/...
false
true
public List<BrandDictionaryItem> getDictionary() { SqlRowSet rowSet = jdbcTemplate.getJdbcOperations().queryForRowSet("SELECT (BrandId, Brand.Name, Item) FROM BrandDictionary INNER JOIN Brand ON BrandId = Brand.Id ORDER BY BrandId"); List<BrandDictionaryItem> dictionary = new ArrayList<BrandDiction...
public List<BrandDictionaryItem> getDictionary() { SqlRowSet rowSet = jdbcTemplate.getJdbcOperations().queryForRowSet("SELECT BrandId, Brand.Name, Term FROM BrandDictionary INNER JOIN Brand ON BrandId = Brand.Id ORDER BY BrandId"); List<BrandDictionaryItem> dictionary = new ArrayList<BrandDictionar...
diff --git a/src/main/java/org/utgenome/weaver/db/ImportBED.java b/src/main/java/org/utgenome/weaver/db/ImportBED.java index 5c23243..98e388b 100755 --- a/src/main/java/org/utgenome/weaver/db/ImportBED.java +++ b/src/main/java/org/utgenome/weaver/db/ImportBED.java @@ -1,137 +1,137 @@ /*--------------------------------...
false
true
public void execute(String[] args) throws Exception { if (bedFile == null) { throw new UTGBException("no input file is given"); } final BlockArrayTable chromatinAnnotation = new BlockArrayTable(); // Prepare binning code: BEDAnnotation object stream -> BinInGenome<BEDAn...
public void execute(String[] args) throws Exception { if (bedFile == null) { throw new UTGBException("no input file is given"); } final BlockArrayTable chromatinAnnotation = new BlockArrayTable(); // Prepare binning code: BEDAnnotation object stream -> BinInGenome<BEDAn...
diff --git a/src/main/us/exultant/mdm/Plumbing.java b/src/main/us/exultant/mdm/Plumbing.java index b4613b0..d8202b1 100644 --- a/src/main/us/exultant/mdm/Plumbing.java +++ b/src/main/us/exultant/mdm/Plumbing.java @@ -1,130 +1,130 @@ /* * Copyright 2012, 2013 Eric Myhre <http://exultant.us> * * This file is part ...
true
true
public static void fetch(Repository repo, MdmModule module) throws MdmException { switch (module.getStatus().getType()) { case INITIALIZED: return; case MISSING: throw new MajorBug(); case UNINITIALIZED: if (module.getRepo() == null) try { RepositoryBuilder builder = new RepositoryBui...
public static void fetch(Repository repo, MdmModule module) throws MdmException { switch (module.getStatus().getType()) { case INITIALIZED: return; case MISSING: throw new MajorBug(); case UNINITIALIZED: if (module.getRepo() == null) try { RepositoryBuilder builder = new RepositoryBui...
diff --git a/etrading/src/main/java/common/messaging/MessageConsumer.java b/etrading/src/main/java/common/messaging/MessageConsumer.java index 97b6a72..6d22695 100644 --- a/etrading/src/main/java/common/messaging/MessageConsumer.java +++ b/etrading/src/main/java/common/messaging/MessageConsumer.java @@ -1,105 +1,105 @@...
true
true
public void run() { while (true) { Excerpt excerpt = chr.createExcerpt(); long size = excerpt.size(); long index = getLastIndex(); while (index < size && listeners.size() > 0) { log.debug("index:" + index + ",size:" + size); excerpt.index(index); Object o = excerpt.readObject();...
public void run() { while (true) { Excerpt excerpt = chr.createExcerpt(); long size = excerpt.size(); long index = getLastIndex(); while (index < size && listeners.size() > 0) { log.debug("index:" + index + ",size:" + size); excerpt.index(index); Object o = excerpt.readObject();...
diff --git a/src/rajawali/primitives/Cube.java b/src/rajawali/primitives/Cube.java index ffcd2271..e7ac31af 100644 --- a/src/rajawali/primitives/Cube.java +++ b/src/rajawali/primitives/Cube.java @@ -1,193 +1,193 @@ package rajawali.primitives; import rajawali.BaseObject3D; /** * A cube primitive. The construct...
true
true
private void init() { float halfSize = mSize * .5f; float[] vertices = { halfSize, halfSize, halfSize, -halfSize, halfSize, halfSize, -halfSize, -halfSize, halfSize, halfSize, -halfSize, halfSize, // 0-1-halfSize-3 front halfSize, halfSize, halfSize, halfSize, -halfSize, halfSize, halfSiz...
private void init() { float halfSize = mSize * .5f; float[] vertices = { halfSize, halfSize, halfSize, -halfSize, halfSize, halfSize, -halfSize, -halfSize, halfSize, halfSize, -halfSize, halfSize, // 0-1-halfSize-3 front halfSize, halfSize, halfSize, halfSize, -halfSize, halfSize, halfSiz...
diff --git a/strongbox-authentication/strongbox-authentication-xml/src/test/java/org/carlspring/strongbox/dao/xml/UsersDaoImplTest.java b/strongbox-authentication/strongbox-authentication-xml/src/test/java/org/carlspring/strongbox/dao/xml/UsersDaoImplTest.java index fdb7066..22974c6 100644 --- a/strongbox-authenticatio...
true
true
public void testCreateAndUpdateUser() throws Exception { User user = new User(); user.setUsername(USERNAME); user.setPassword(PASSWORD); final long countOld = usersDao.count(); usersDao.createUser(user); final long countNew = usersDao.count(); ...
public void testCreateAndUpdateUser() throws Exception { User user = new User(); user.setUsername(USERNAME); user.setPassword(PASSWORD); final long countOld = usersDao.count(); usersDao.createUser(user); final long countNew = usersDao.count(); ...
diff --git a/src/FE_SRC_COMMON/com/ForgeEssentials/economy/WalletHandler.java b/src/FE_SRC_COMMON/com/ForgeEssentials/economy/WalletHandler.java index 85daf8522..e427004d5 100644 --- a/src/FE_SRC_COMMON/com/ForgeEssentials/economy/WalletHandler.java +++ b/src/FE_SRC_COMMON/com/ForgeEssentials/economy/WalletHandler.java...
true
true
public void onPlayerLogin(EntityPlayer player) { Wallet wallet = (Wallet) DataStorageManager.getReccomendedDriver().loadObject(con, player.username); if (wallet == null) { wallet = new Wallet(player, ModuleEconomy.startbuget); } wallets.put(wallet.getUsername(), wallet); }
public void onPlayerLogin(EntityPlayer player) { Wallet wallet = (Wallet) DataStorageManager.getReccomendedDriver().loadObject(con, player.username); if (wallet == null) { wallet = new Wallet(player, ModuleEconomy.startbuget); } wallets.put(player.username, wallet); }
diff --git a/src/StatementsNode.java b/src/StatementsNode.java index 8a77524..d48b962 100644 --- a/src/StatementsNode.java +++ b/src/StatementsNode.java @@ -1,46 +1,46 @@ import java.util.ArrayList; public class StatementsNode extends ASTNode { public StatementsNode(int yyline, int yycol) { ...
true
true
public void checkSemantics() throws Exception { for (ASTNode statement : this.getChildren()) { statement.checkSemantics(); } /* * Check to make sure function has a return statement that * ...
public void checkSemantics() throws Exception { for (ASTNode statement : this.getChildren()) { statement.checkSemantics(); } /* * Check to make sure function has a return statement that * ...
diff --git a/src/test/java/algorithm/TestAlgorithm.java b/src/test/java/algorithm/TestAlgorithm.java index 90f22d5..a431b9d 100644 --- a/src/test/java/algorithm/TestAlgorithm.java +++ b/src/test/java/algorithm/TestAlgorithm.java @@ -1,175 +1,176 @@ package algorithm; import java.text.DateFormat; import java.text.P...
false
true
public void testAlgorithm(){ boolean labs = false; if(labs){ DbInitialiser.init(); } //Lets create some annotators with id's 1 - 1000 and place them in array annotators = new AnnotatorModel[annotatorNumber]; for(int i = 0; i < annotatorNumber; i++){ String uuid = UUID.randomUUID().toString(); uuid...
public void testAlgorithm(){ boolean labs = false; if(labs){ DbInitialiser.init(); } //Lets create some annotators with id's 1 - 1000 and place them in array annotators = new AnnotatorModel[annotatorNumber]; for(int i = 0; i < annotatorNumber; i++){ String uuid = UUID.randomUUID().toString(); uuid...
diff --git a/src/net/derkholm/nmica/extra/app/MotifSetThresholder.java b/src/net/derkholm/nmica/extra/app/MotifSetThresholder.java index 88d2442..58babfb 100644 --- a/src/net/derkholm/nmica/extra/app/MotifSetThresholder.java +++ b/src/net/derkholm/nmica/extra/app/MotifSetThresholder.java @@ -1,97 +1,97 @@ package net....
true
true
public void main(String[] args) throws FileNotFoundException, Exception { FileReader reader = null; BufferedReader bufferedReader = null; Motif[] motifs = null; try { reader = new FileReader(inFile); if (reader != null) { bufferedReader = new BufferedReader(reader); } motifs = MotifIOTools.l...
public void main(String[] args) throws FileNotFoundException, Exception { FileReader reader = null; BufferedReader bufferedReader = null; Motif[] motifs = null; try { reader = new FileReader(inFile); if (reader != null) { bufferedReader = new BufferedReader(reader); } motifs = MotifIOTools.l...
diff --git a/src/asl/seedscan/config/ConfigReader.java b/src/asl/seedscan/config/ConfigReader.java index 920f928..1fd5202 100644 --- a/src/asl/seedscan/config/ConfigReader.java +++ b/src/asl/seedscan/config/ConfigReader.java @@ -1,291 +1,291 @@ /* * Copyright 2012, United States Geological Survey or * third-party ...
true
true
private void parseConfig(String configPassword) throws FileNotFoundException, IOException, XPathExpressionException { logger.info("Parsing the configuration file"); logger.fine("Document: " + doc); // Lock File logger.fine("Parsing lockfile."); ...
private void parseConfig(String configPassword) throws FileNotFoundException, IOException, XPathExpressionException { logger.info("Parsing the configuration file"); logger.fine("Document: " + doc); // Lock File logger.fine("Parsing lockfile."); ...
diff --git a/src/main/java/ru/histone/evaluator/nodes/NodeFactory.java b/src/main/java/ru/histone/evaluator/nodes/NodeFactory.java index ee47fb3..d8d0dfe 100644 --- a/src/main/java/ru/histone/evaluator/nodes/NodeFactory.java +++ b/src/main/java/ru/histone/evaluator/nodes/NodeFactory.java @@ -1,349 +1,367 @@ /** * ...
true
true
public String toJsonString(JsonNode jsonNode) { if (jsonNode.isBigDecimal()) { BigDecimal number = ((DecimalNode) jsonNode).decimalValue(); return number.toPlainString(); } else if (jsonNode.isObject()) { ObjectNode objNode = (ObjectNode) jsonNode; StringBuilder sb = new StringBuilder(); sb.append("...
public String toJsonString(JsonNode jsonNode) { if (jsonNode.isBigDecimal()) { BigDecimal number = ((DecimalNode) jsonNode).decimalValue(); return number.toPlainString(); } else if (jsonNode.isArray()) { ArrayNode node = (ArrayNode) jsonNode; StringBuilder sb = new StringBuilder(); sb.append('['); ...
diff --git a/src/main/java/net/pterodactylus/wotns/main/Resolver.java b/src/main/java/net/pterodactylus/wotns/main/Resolver.java index 7ec725c..1c00144 100644 --- a/src/main/java/net/pterodactylus/wotns/main/Resolver.java +++ b/src/main/java/net/pterodactylus/wotns/main/Resolver.java @@ -1,125 +1,125 @@ /* * WoTNS -...
true
true
private Identity locateIdentity(String shortName) { int atSign = shortName.indexOf('@'); String identityName = shortName; String keyStart = ""; if (atSign > -1) { identityName = shortName.substring(0, atSign); keyStart = shortName.substring(atSign + 1); } @SuppressWarnings("hiding") final OwnIdenti...
private Identity locateIdentity(String shortName) { int atSign = shortName.indexOf('@'); String identityName = shortName; String keyStart = ""; if (atSign > -1) { identityName = shortName.substring(0, atSign); keyStart = shortName.substring(atSign + 1); } @SuppressWarnings("hiding") final OwnIdenti...
diff --git a/user/test/com/google/gwt/user/client/WindowTest.java b/user/test/com/google/gwt/user/client/WindowTest.java index 3f1ceef1b..d5f44078f 100644 --- a/user/test/com/google/gwt/user/client/WindowTest.java +++ b/user/test/com/google/gwt/user/client/WindowTest.java @@ -1,80 +1,80 @@ /* * Copyright 2008 Google...
true
true
public void testGetClientSize() { // Get the dimensions without any scroll bars Window.enableScrolling(false); final int oldClientHeight = Window.getClientHeight(); final int oldClientWidth = Window.getClientWidth(); assertTrue(oldClientHeight > 0); assertTrue(oldClientWidth > 0); // Comp...
public void disabledTestGetClientSize() { // Get the dimensions without any scroll bars Window.enableScrolling(false); final int oldClientHeight = Window.getClientHeight(); final int oldClientWidth = Window.getClientWidth(); assertTrue(oldClientHeight > 0); assertTrue(oldClientWidth > 0); ...
diff --git a/src/me/makskay/bukkit/tidy/tasks/KillExpiredIssuesTask.java b/src/me/makskay/bukkit/tidy/tasks/KillExpiredIssuesTask.java index e2bfb1a..83d8d8a 100644 --- a/src/me/makskay/bukkit/tidy/tasks/KillExpiredIssuesTask.java +++ b/src/me/makskay/bukkit/tidy/tasks/KillExpiredIssuesTask.java @@ -1,34 +1,36 @@ pack...
false
true
public void run() { boolean isOpen = true; String key = ""; Set<String> keys = plugin.issuesYml.getConfig().getConfigurationSection("issues").getKeys(false); while (isOpen) { if (!keys.iterator().hasNext()) { return; } key = keys.iterator().next(); isOpen = plugin.issuesYml.getConfig()....
public void run() { boolean isOpen = true; boolean isSticky = false; String key = ""; Set<String> keys = plugin.issuesYml.getConfig().getConfigurationSection("issues").getKeys(false); while (isOpen || isSticky) { if (!keys.iterator().hasNext()) { return; } key = keys.iterator().next(); ...
diff --git a/client/net/minecraftforge/client/ForgeHooksClient.java b/client/net/minecraftforge/client/ForgeHooksClient.java index 154387072..9163e7255 100644 --- a/client/net/minecraftforge/client/ForgeHooksClient.java +++ b/client/net/minecraftforge/client/ForgeHooksClient.java @@ -1,281 +1,280 @@ package net.minecr...
false
true
public static boolean renderEntityItem(EntityItem entity, ItemStack item, float bobing, float rotation, Random random, RenderEngine engine, RenderBlocks renderBlocks) { IItemRenderer customRenderer = MinecraftForgeClient.getItemRenderer(item, ENTITY); if (customRenderer == null) { ...
public static boolean renderEntityItem(EntityItem entity, ItemStack item, float bobing, float rotation, Random random, RenderEngine engine, RenderBlocks renderBlocks) { IItemRenderer customRenderer = MinecraftForgeClient.getItemRenderer(item, ENTITY); if (customRenderer == null) { ...
diff --git a/src/main/java/org/spout/engine/world/SpoutBlock.java b/src/main/java/org/spout/engine/world/SpoutBlock.java index c8eb3b207..ab1701cd4 100644 --- a/src/main/java/org/spout/engine/world/SpoutBlock.java +++ b/src/main/java/org/spout/engine/world/SpoutBlock.java @@ -1,308 +1,308 @@ /* * This file is part o...
false
true
public Block update(boolean around) { Chunk chunk = this.getChunk(); chunk.updateBlockPhysics(this.x, this.y, this.z, this.source); if (around) { //South and North chunk.updateBlockPhysics(this.x + 1, this.y, this.z, this.source); chunk.updateBlockPhysics(this.x - 1, this.y, this.z, this.source); //...
public Block update(boolean around) { World world = this.getWorld(); world.updateBlockPhysics(this.x, this.y, this.z, this.source); if (around) { //South and North world.updateBlockPhysics(this.x + 1, this.y, this.z, this.source); world.updateBlockPhysics(this.x - 1, this.y, this.z, this.source); //...
diff --git a/src/main/java/no/steria/swhrs/RegistrationServlet.java b/src/main/java/no/steria/swhrs/RegistrationServlet.java index 93cdbaf..15d1fc3 100644 --- a/src/main/java/no/steria/swhrs/RegistrationServlet.java +++ b/src/main/java/no/steria/swhrs/RegistrationServlet.java @@ -1,106 +1,106 @@ package no.steria.swhr...
true
true
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { if (req.getRequestURL().toString().contains(("hours/registration"))) { int personId = Integer.parseInt(req.getParameter("personId")); String favourite = req.getParameter("fav"); String pNr...
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { if (req.getRequestURL().toString().contains(("hours/registration"))) { int personId = Integer.parseInt(req.getParameter("personId")); String favourite = req.getParameter("fav"); String pNr...
diff --git a/c/YetiType.java b/c/YetiType.java index 44779b7..4d04d63 100644 --- a/c/YetiType.java +++ b/c/YetiType.java @@ -1,1610 +1,1614 @@ // ex: set sts=4 sw=4 expandtab: /** * Yeti type analyzer. * Uses Hindley-Milner type inference algorithm * with extensions for polymorphic structs and variants. * C...
true
true
static Code analyze(Node node, Scope scope, int depth) { if (node instanceof Sym) { String sym = ((Sym) node).sym; if (Character.isUpperCase(sym.charAt(0))) { return variantConstructor(sym, depth); } return resolve(sym, node, scope, depth); ...
static Code analyze(Node node, Scope scope, int depth) { if (node instanceof Sym) { String sym = ((Sym) node).sym; if (Character.isUpperCase(sym.charAt(0))) { return variantConstructor(sym, depth); } return resolve(sym, node, scope, depth); ...
diff --git a/src/jregex/Matcher.java b/src/jregex/Matcher.java index 37ecc7105..a20c8fd6a 100644 --- a/src/jregex/Matcher.java +++ b/src/jregex/Matcher.java @@ -1,2296 +1,2296 @@ /** * Copyright (c) 2001, Sergey A. Samokhodkin * All rights reserved. * * Redistribution and use in source and binary forms, with ...
true
true
private final boolean search(int anchors){ called=true; final int end=this.end; int offset=this.offset; char[] data=this.data; int wOffset=this.wOffset; int wEnd=this.wEnd; MemReg[] memregs=this.memregs; int[] counters=this.counters; LAEntry[] lookaheads=t...
private final boolean search(int anchors){ called=true; final int end=this.end; int offset=this.offset; char[] data=this.data; int wOffset=this.wOffset; int wEnd=this.wEnd; MemReg[] memregs=this.memregs; int[] counters=this.counters; LAEntry[] lookaheads=t...
diff --git a/obdalib/reformulation-core/src/test/java/it/unibz/krdb/obda/reformulation/tests/StockExchangeTest.java b/obdalib/reformulation-core/src/test/java/it/unibz/krdb/obda/reformulation/tests/StockExchangeTest.java index 0283b12dd..5ed9cc667 100644 --- a/obdalib/reformulation-core/src/test/java/it/unibz/krdb/obda...
true
true
public void test() throws Exception { String owlfile = "src/test/resources/test/ontologies/scenarios/stockexchange-workbench.owl"; // Loading the OWL file OWLOntologyManager manager = OWLManager.createOWLOntologyManager(); OWLOntology ontology = manager.loadOntologyFromPhysicalURI((new File(owlfile)).toURI(...
public void test() throws Exception { String owlfile = "src/test/resources/test/ontologies/scenarios/stockexchange-workbench.owl"; // Loading the OWL file OWLOntologyManager manager = OWLManager.createOWLOntologyManager(); OWLOntology ontology = manager.loadOntologyFromPhysicalURI((new File(owlfile)).toURI(...
diff --git a/gshell/gshell-admin/src/main/java/org/apache/servicemix/kernel/gshell/admin/internal/AdminServiceImpl.java b/gshell/gshell-admin/src/main/java/org/apache/servicemix/kernel/gshell/admin/internal/AdminServiceImpl.java index 2e6fa829..9c1ebada 100644 --- a/gshell/gshell-admin/src/main/java/org/apache/servicem...
true
true
public synchronized Instance createInstance(String name, int port, String location) throws Exception { if (instances.get(name) != null) { throw new IllegalArgumentException("Instance '" + name + "' already exists"); } File serviceMixBase = new File(location != null ? location : (...
public synchronized Instance createInstance(String name, int port, String location) throws Exception { if (instances.get(name) != null) { throw new IllegalArgumentException("Instance '" + name + "' already exists"); } File serviceMixBase = new File(location != null ? location : (...
diff --git a/plugins/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/ReportEngineService.java b/plugins/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/ReportEngineService.java index f765f743..5c652b63 100644 --- a/plugins/org.eclipse.birt.report.v...
true
true
public ReportEngineService( ServletConfig servletConfig ) { System.setProperty( "RUN_UNDER_ECLIPSE", "false" ); //$NON-NLS-1$ //$NON-NLS-2$ if ( servletConfig == null ) { return; } config = new EngineConfig( ); // Register new image handler HTMLEmitterConfig emitterConfig = new HTMLEmitterConfig( ...
public ReportEngineService( ServletConfig servletConfig ) { System.setProperty( "RUN_UNDER_ECLIPSE", "false" ); //$NON-NLS-1$ //$NON-NLS-2$ if ( servletConfig == null ) { return; } config = new EngineConfig( ); // Register new image handler HTMLEmitterConfig emitterConfig = new HTMLEmitterConfig( ...
diff --git a/phone/com/android/internal/policy/impl/PhoneWindowManager.java b/phone/com/android/internal/policy/impl/PhoneWindowManager.java index 2143f52..2f9faae 100755 --- a/phone/com/android/internal/policy/impl/PhoneWindowManager.java +++ b/phone/com/android/internal/policy/impl/PhoneWindowManager.java @@ -1,2236 ...
false
true
public int interceptKeyTq(RawInputEvent event, boolean screenIsOn) { int result = ACTION_PASS_TO_USER; final boolean isWakeKey = isWakeKeyTq(event); final boolean keyguardShowing = keyguardIsShowingTq(); if (false) { Log.d(TAG, "interceptKeyTq event=" + event + " keycode...
public int interceptKeyTq(RawInputEvent event, boolean screenIsOn) { int result = ACTION_PASS_TO_USER; final boolean isWakeKey = isWakeKeyTq(event); // If screen is off then we treat the case where the keyguard is open but hidden // the same as if it were open and in front. /...
diff --git a/src/uk/me/parabola/imgfmt/sys/ImgFS.java b/src/uk/me/parabola/imgfmt/sys/ImgFS.java index 5539f024..7dbb43b7 100644 --- a/src/uk/me/parabola/imgfmt/sys/ImgFS.java +++ b/src/uk/me/parabola/imgfmt/sys/ImgFS.java @@ -1,199 +1,207 @@ /* * Copyright (C) 2006 Steve Ratcliffe * * This program is free sof...
true
true
public ImgFS(String filename, FileSystemParam params) throws FileNotFoundException { log.info("Creating file system"); RandomAccessFile rafile = new RandomAccessFile(filename, "rw"); file = rafile.getChannel(); header = new ImgHeader(file); header.setDirectoryStartBlock(2); // could be from params /...
public ImgFS(String filename, FileSystemParam params) throws FileNotFoundException { log.info("Creating file system"); RandomAccessFile rafile = new RandomAccessFile(filename, "rw"); try { // Set length to zero because if you don't you can get a // map that doesn't work. Not clear why. rafile.setLe...
diff --git a/libraries/javalib/java/text/SimpleDateFormat.java b/libraries/javalib/java/text/SimpleDateFormat.java index 5945f2df1..20e36d22b 100644 --- a/libraries/javalib/java/text/SimpleDateFormat.java +++ b/libraries/javalib/java/text/SimpleDateFormat.java @@ -1,390 +1,390 @@ package java.text; import java.lang...
true
true
public StringBuffer format(Date date, StringBuffer buf, FieldPosition pos) { calendar.setTime(date); char[] patt = pattern.toCharArray(); for (int i = 0; i < patt.length; ) { int plen = 0; char letter = patt[i]; i++; if (letter != '\'') { for (plen++; i < patt.length && patt[i] == letter; plen++, i++); ...
public StringBuffer format(Date date, StringBuffer buf, FieldPosition pos) { calendar.setTime(date); char[] patt = pattern.toCharArray(); for (int i = 0; i < patt.length; ) { int plen = 0; char letter = patt[i]; i++; if (letter != '\'') { for (plen++; i < patt.length && patt[i] == letter; plen++, i++); ...
diff --git a/odata4j-core/src/main/java/org/odata4j/producer/exceptions/ODataException.java b/odata4j-core/src/main/java/org/odata4j/producer/exceptions/ODataException.java index 224c89f7..1176564e 100644 --- a/odata4j-core/src/main/java/org/odata4j/producer/exceptions/ODataException.java +++ b/odata4j-core/src/main/ja...
true
true
public OError getError() { return new OError() { public String getMessage() { return ODataException.this.getMessage() != null ? ODataException.this.getMessage() : status.getReasonPhrase(); } public String getCode() { return ODataException.this.getClass().getSimpleName(); }...
public OError getError() { return new OError() { public String getMessage() { return ODataException.this.getMessage() != null ? ODataException.this.getMessage() : status.getReasonPhrase(); } public String getCode() { return ODataException.this.getClass().getSimpleName(); }...
diff --git a/src/main/java/org/spout/engine/filesystem/WorldFiles.java b/src/main/java/org/spout/engine/filesystem/WorldFiles.java index d3cc458de..a85f2f1df 100644 --- a/src/main/java/org/spout/engine/filesystem/WorldFiles.java +++ b/src/main/java/org/spout/engine/filesystem/WorldFiles.java @@ -1,579 +1,579 @@ /* *...
true
true
public static SpoutChunk loadChunk(SpoutRegion r, int x, int y, int z, InputStream dis, ChunkDataForRegion dataForRegion) { SpoutChunk chunk = null; NBTInputStream is = null; try { if (dis == null) { //The inputstream is null because no chunk data exists return chunk; } is = new NBTInputStream...
public static SpoutChunk loadChunk(SpoutRegion r, int x, int y, int z, InputStream dis, ChunkDataForRegion dataForRegion) { SpoutChunk chunk = null; NBTInputStream is = null; try { if (dis == null) { //The inputstream is null because no chunk data exists return chunk; } is = new NBTInputStream...
diff --git a/src/com/android/gallery3d/app/PhotoDataAdapter.java b/src/com/android/gallery3d/app/PhotoDataAdapter.java index fd3a7cf73..bee014911 100644 --- a/src/com/android/gallery3d/app/PhotoDataAdapter.java +++ b/src/com/android/gallery3d/app/PhotoDataAdapter.java @@ -1,1133 +1,1137 @@ /* * Copyright (C) 2010 Th...
false
true
public void run() { while (mActive) { synchronized (this) { if (!mDirty && mActive) { updateLoading(false); Utils.waitWithoutInterrupt(this); continue; } } ...
public void run() { while (mActive) { synchronized (this) { if (!mDirty && mActive) { updateLoading(false); Utils.waitWithoutInterrupt(this); continue; } } ...
diff --git a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/commands/YankOperation.java b/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/commands/YankOperation.java index 3621c0f5..2dc7d960 100644 --- a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/commands/YankOperation.java ...
true
true
public static void doIt(EditorAdaptor editorAdaptor, TextRange range, ContentType contentType) { String text = editorAdaptor.getModelContent().getText(range.getLeftBound().getModelOffset(), range.getModelLength()); //if we're expecting lines and this text doesn't end in a newline, //manually...
public static void doIt(EditorAdaptor editorAdaptor, TextRange range, ContentType contentType) { String text = editorAdaptor.getModelContent().getText(range.getLeftBound().getModelOffset(), range.getModelLength()); //if we're expecting lines and this text doesn't end in a newline, //manually...
diff --git a/branches/sng/GeoBeagle/di/com/google/code/geobeagle/data/GeocacheFactory.java b/branches/sng/GeoBeagle/di/com/google/code/geobeagle/data/GeocacheFactory.java index ab9acc69..2003546a 100644 --- a/branches/sng/GeoBeagle/di/com/google/code/geobeagle/data/GeocacheFactory.java +++ b/branches/sng/GeoBeagle/di/c...
true
true
public Geocache create(CharSequence id, CharSequence name, double latitude, double longitude, Source sourceType, String sourceName) { if (id.length() < 2) { // ID is missing for waypoints imported from the browser; create a // new id // from the time. ...
public Geocache create(CharSequence id, CharSequence name, double latitude, double longitude, Source sourceType, String sourceName) { if (id.length() < 2) { // ID is missing for waypoints imported from the browser; create a // new id // from the time. ...
diff --git a/src/com/wolflink289/bukkit/worldregions/util/TimeUtil.java b/src/com/wolflink289/bukkit/worldregions/util/TimeUtil.java index 475755a..35b53b2 100644 --- a/src/com/wolflink289/bukkit/worldregions/util/TimeUtil.java +++ b/src/com/wolflink289/bukkit/worldregions/util/TimeUtil.java @@ -1,140 +1,141 @@ packag...
true
true
static public int timeAsCticks(String str) { // Ticks try { int ticks = Integer.parseInt(str); if (ticks < 0 || ticks > 24000) throw new RuntimeException("Ticks range from 0 to 24000."); return ticks; } catch (NumberFormatException ex) { // Ignore and continue } catch (RuntimeException ex) { thr...
static public int timeAsCticks(String str) { // Ticks try { int ticks = Integer.parseInt(str); if (ticks < 0 || ticks > 24000) throw new RuntimeException("Ticks range from 0 to 24000."); return ticks; } catch (NumberFormatException ex) { // Ignore and continue } catch (RuntimeException ex) { thr...
diff --git a/src/main/java/me/captainbern/animationlib/utils/refs/PacketRef.java b/src/main/java/me/captainbern/animationlib/utils/refs/PacketRef.java index b11720e..bfc94f9 100644 --- a/src/main/java/me/captainbern/animationlib/utils/refs/PacketRef.java +++ b/src/main/java/me/captainbern/animationlib/utils/refs/Packet...
true
true
public static BiMap getServerPacketRegistry(){ return (BiMap) protocol.getField("h").get(null); }
public static BiMap getServerPacketRegistry(){ return (BiMap) protocol.getField("h").get(protocol.newInstance()); }
diff --git a/src/main/java/net/countercraft/movecraft/utils/MapUpdateManager.java b/src/main/java/net/countercraft/movecraft/utils/MapUpdateManager.java index 5bb12d8..de94fdf 100644 --- a/src/main/java/net/countercraft/movecraft/utils/MapUpdateManager.java +++ b/src/main/java/net/countercraft/movecraft/utils/MapUpdate...
true
true
public void run() { if ( updates.isEmpty() ) return; long startTime=System.currentTimeMillis(); for ( World w : updates.keySet() ) { if ( w != null ) { List<MapUpdateCommand> updatesInWorld = updates.get( w ); List<EntityUpdateCommand> entityUpdatesInWorld = entityUpdates.get( w ); Map<Movecraf...
public void run() { if ( updates.isEmpty() ) return; long startTime=System.currentTimeMillis(); for ( World w : updates.keySet() ) { if ( w != null ) { List<MapUpdateCommand> updatesInWorld = updates.get( w ); List<EntityUpdateCommand> entityUpdatesInWorld = entityUpdates.get( w ); Map<Movecraf...
diff --git a/execution/src/main/java/org/springframework/batch/execution/facade/SimpleJobExecutorFacade.java b/execution/src/main/java/org/springframework/batch/execution/facade/SimpleJobExecutorFacade.java index a1084b3ff..9d5f3095f 100644 --- a/execution/src/main/java/org/springframework/batch/execution/facade/Simple...
false
true
public ExitStatus start(JobIdentifier jobRuntimeInformation) throws NoSuchJobConfigurationException { Assert.notNull(jobRuntimeInformation, "JobRuntimeInformation must not be null."); Assert.notNull(jobRuntimeInformation.getName(), "JobRuntimeInformation name must not be null."); Assert.state(!jobExecutionRegi...
public ExitStatus start(JobIdentifier jobRuntimeInformation) throws NoSuchJobConfigurationException { Assert.notNull(jobRuntimeInformation, "JobRuntimeInformation must not be null."); Assert.notNull(jobRuntimeInformation.getName(), "JobRuntimeInformation name must not be null."); Assert.state(!jobExecutionRegi...
diff --git a/org.openscada.core.client/src/org/openscada/core/client/AutoReconnectController.java b/org.openscada.core.client/src/org/openscada/core/client/AutoReconnectController.java index b82cfda91..9c30e1eac 100644 --- a/org.openscada.core.client/src/org/openscada/core/client/AutoReconnectController.java +++ b/org....
false
true
private void performCheckNow () { synchronized ( this ) { this.checkScheduled = false; } logger.debug ( String.format ( "Performing state check: %s (request: %s)", this.state, this.connect ) ); switch ( this.state ) { case CLOSED: ...
private void performCheckNow () { ConnectionState currentState; boolean connect; synchronized ( this ) { currentState = this.state; connect = this.connect; this.checkScheduled = false; } logger.debug ( String.format ( "Performi...
diff --git a/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/CriteriaBuilder.java b/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/CriteriaBuilder.java index 837c106b9..851dcf51b 100644 --- a/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/CriteriaBuilder.java +++ b/dao-hibernate/src/main/java/org...
true
true
Query buildHQLQuery(Session session, InstanceFilter filter) { Map<String, Object> parameters = new HashMap<String, Object>(); StringBuffer query = new StringBuffer(); query.append("select pi from HProcessInstance as pi left join fetch pi.fault "); if (filte...
Query buildHQLQuery(Session session, InstanceFilter filter) { Map<String, Object> parameters = new HashMap<String, Object>(); StringBuffer query = new StringBuffer(); query.append("select pi from HProcessInstance as pi left join fetch pi.fault "); if (filte...
diff --git a/exchange2/src/com/android/exchange/adapter/ProvisionParser.java b/exchange2/src/com/android/exchange/adapter/ProvisionParser.java index de30111..0825f74 100644 --- a/exchange2/src/com/android/exchange/adapter/ProvisionParser.java +++ b/exchange2/src/com/android/exchange/adapter/ProvisionParser.java @@ -1,6...
false
true
private void parseProvisionDocWbxml() throws IOException { Policy policy = new Policy(); ArrayList<Integer> unsupportedList = new ArrayList<Integer>(); boolean passwordEnabled = false; while (nextTag(Tags.PROVISION_EAS_PROVISION_DOC) != END) { boolean tagIsSupported = tr...
private void parseProvisionDocWbxml() throws IOException { Policy policy = new Policy(); ArrayList<Integer> unsupportedList = new ArrayList<Integer>(); boolean passwordEnabled = false; while (nextTag(Tags.PROVISION_EAS_PROVISION_DOC) != END) { boolean tagIsSupported = tr...
diff --git a/ttools/src/main/uk/ac/starlink/ttools/lint/StreamHandler.java b/ttools/src/main/uk/ac/starlink/ttools/lint/StreamHandler.java index b675a5cab..eb9acf3fc 100644 --- a/ttools/src/main/uk/ac/starlink/ttools/lint/StreamHandler.java +++ b/ttools/src/main/uk/ac/starlink/ttools/lint/StreamHandler.java @@ -1,177 +...
true
true
public void startElement() { /* Get and check href and encoding attributes. */ String href = getAttribute( "href" ); String encoding = getAttribute( "encoding" ); if ( href == null || href.trim().length() == 0 && ! "base64".equals( encoding ) ) { warning( t...
public void startElement() { /* Get and check href and encoding attributes. */ String href = getAttribute( "href" ); String encoding = getAttribute( "encoding" ); if ( ( href == null || href.trim().length() == 0 ) && ! "base64".equals( encoding ) ) { warnin...
diff --git a/contentconnector/contentconnector-lucene/src/main/java/com/gentics/cr/lucene/search/LuceneRequestProcessor.java b/contentconnector/contentconnector-lucene/src/main/java/com/gentics/cr/lucene/search/LuceneRequestProcessor.java index d435a644..0d4bcaed 100644 --- a/contentconnector/contentconnector-lucene/sr...
false
true
public final Collection<CRResolvableBean> getObjects(final CRRequest request, final boolean doNavigation) throws CRException { UseCase ucGetObjects = startUseCase("LuceneRequestProcessor." + "getObjects(" + name + ")"); /** * search preparations (instantiate/validate all needed variables) */ UseCase uc...
public final Collection<CRResolvableBean> getObjects(final CRRequest request, final boolean doNavigation) throws CRException { UseCase ucGetObjects = startUseCase("LuceneRequestProcessor." + "getObjects(" + name + ")"); /** * search preparations (instantiate/validate all needed variables) */ UseCase uc...
diff --git a/src/main/java/edu/unsw/cse/comp9323/group1/controllers/CourseDetailController.java b/src/main/java/edu/unsw/cse/comp9323/group1/controllers/CourseDetailController.java index a231a7c..0a34c47 100644 --- a/src/main/java/edu/unsw/cse/comp9323/group1/controllers/CourseDetailController.java +++ b/src/main/java/...
true
true
public String getCourseDetail(@RequestParam("courseName") String courseName,@RequestParam("studentId") String studentId, ModelMap model) throws UnsupportedEncodingException, URISyntaxException, HttpException { CourseDAO crsDAO = new CourseDAO(); Course course = new Course(); course = crsDAO.getCourseByName(cours...
public String getCourseDetail(@RequestParam("courseName") String courseName,@RequestParam("studentId") String studentId, ModelMap model) throws UnsupportedEncodingException, URISyntaxException, HttpException { CourseDAO crsDAO = new CourseDAO(); Course course = new Course(); course = crsDAO.getCourseByName(cours...