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/org/freenetproject/freemail/ui/web/LogInToadlet.java b/src/org/freenetproject/freemail/ui/web/LogInToadlet.java index 6d3a912..0089050 100644 --- a/src/org/freenetproject/freemail/ui/web/LogInToadlet.java +++ b/src/org/freenetproject/freemail/ui/web/LogInToadlet.java @@ -1,130 +1,130 @@ /* * LogInTo...
true
true
void makeWebPagePost(URI uri, HTTPRequest req, ToadletContext ctx, PageNode page) throws ToadletContextClosedException, IOException { String identity; try { identity = req.getPartAsStringThrowing("OwnIdentityID", 64); } catch (SizeLimitExceededException e) { //Someone is deliberately passing bad data, or t...
void makeWebPagePost(URI uri, HTTPRequest req, ToadletContext ctx, PageNode page) throws ToadletContextClosedException, IOException { String identity; try { identity = req.getPartAsStringThrowing("OwnIdentityID", 64); } catch (SizeLimitExceededException e) { //Someone is deliberately passing bad data, or t...
diff --git a/platform/android/src/org/geometerplus/zlibrary/ui/android/library/BugReportActivity.java b/platform/android/src/org/geometerplus/zlibrary/ui/android/library/BugReportActivity.java index 71c707ba..f5acfcec 100644 --- a/platform/android/src/org/geometerplus/zlibrary/ui/android/library/BugReportActivity.java ...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.bug_report_view); final String stackTrace = getIntent().getStringExtra(STACKTRACE); final TextView reportTextView = (TextView)findViewById(R.id.report_text); reportTextView.setMovementMethod(Scrollin...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.bug_report_view); final String stackTrace = getIntent().getStringExtra(STACKTRACE); final TextView reportTextView = (TextView)findViewById(R.id.report_text); reportTextView.setMovementMethod(Scrollin...
diff --git a/cocos2dx-common/java/org/cocos2dx/lib/RichLabelBitmap.java b/cocos2dx-common/java/org/cocos2dx/lib/RichLabelBitmap.java index 63a596b..87b954d 100644 --- a/cocos2dx-common/java/org/cocos2dx/lib/RichLabelBitmap.java +++ b/cocos2dx-common/java/org/cocos2dx/lib/RichLabelBitmap.java @@ -1,997 +1,1001 @@ /****...
false
true
public static void createRichLabelBitmap(String pString, final String pFontName, final int pFontSize, final float fontTintR, final float fontTintG, final float fontTintB, final int pAlignment, final int pWidth, final int pHeight, final boolean shadow, final float shadowDX, final float shadowDY, ...
public static void createRichLabelBitmap(String pString, final String pFontName, final int pFontSize, final float fontTintR, final float fontTintG, final float fontTintB, final int pAlignment, final int pWidth, final int pHeight, final boolean shadow, final float shadowDX, final float shadowDY, ...
diff --git a/src/java/org/apache/fop/render/awt/viewer/PreviewPanel.java b/src/java/org/apache/fop/render/awt/viewer/PreviewPanel.java index bc63c14a9..b568ddeb2 100644 --- a/src/java/org/apache/fop/render/awt/viewer/PreviewPanel.java +++ b/src/java/org/apache/fop/render/awt/viewer/PreviewPanel.java @@ -1,416 +1,415 @@...
true
true
public void run() { if (!renderer.renderingDone) { // do not allow the reloading while FOP is still rendering JOptionPane.showMessageDialog(previewArea, "Cannot perform the requested operation until " + "all page...
public void run() { if (!renderer.renderingDone) { // do not allow the reloading while FOP is still rendering JOptionPane.showMessageDialog(previewArea, "Cannot perform the requested operation until " + "all page...
diff --git a/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/helpers/EventManager.java b/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/helpers/EventManager.java index a01538058..30d2763b8 100644 --- a/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/helpers/EventManager.java +...
false
true
public static List<String> raiseEventsOnDocumentSelected(DocumentModel document) { List<String> eventsFired = new ArrayList<String>(); if (document == null) { // XXX AT: kind of BBB, not sure why this was used like this eventsFired = raiseEventsOnLocationSelectionChanged(); ...
public static List<String> raiseEventsOnDocumentSelected(DocumentModel document) { List<String> eventsFired = new ArrayList<String>(); if (document == null) { // XXX AT: kind of BBB, not sure why this was used like this eventsFired = raiseEventsOnLocationSelectionChanged(); ...
diff --git a/src/com/djdch/bukkit/onehundredgenerator/mc100/GenLayerSmoothZoom.java b/src/com/djdch/bukkit/onehundredgenerator/mc100/GenLayerSmoothZoom.java index 9467fe6..e545d92 100644 --- a/src/com/djdch/bukkit/onehundredgenerator/mc100/GenLayerSmoothZoom.java +++ b/src/com/djdch/bukkit/onehundredgenerator/mc100/Gen...
true
true
public int[] a(int paramInt1, int paramInt2, int paramInt3, int paramInt4) { int i = paramInt1 >> 1; int j = paramInt2 >> 1; int k = (paramInt3 >> 1) + 3; int m = (paramInt4 >> 1) + 3; int[] arrayOfInt1 = this.a.a(i, j, k, m); int[] arrayOfInt2 = IntCache.a(k * 2 * (...
public int[] a(int paramInt1, int paramInt2, int paramInt3, int paramInt4) { int i = paramInt1 >> 1; int j = paramInt2 >> 1; int k = (paramInt3 >> 1) + 3; int m = (paramInt4 >> 1) + 3; int[] arrayOfInt1 = this.a.a(i, j, k, m); int[] arrayOfInt2 = IntCache.a(k * 2 * (...
diff --git a/samples/src/main/java/Main.java b/samples/src/main/java/Main.java index 0b7861c..4087124 100644 --- a/samples/src/main/java/Main.java +++ b/samples/src/main/java/Main.java @@ -1,19 +1,19 @@ import pojos.Contact; import pojos.ContactBuilder; public class Main { public static void main(String[] args...
true
true
public static void main(String[] args) { // Build a single contact Contact james = new ContactBuilder() .withName("James Bond") .withEmail("007@secretservice.org") .build(); // Build 100 contacts with on of the given names and no email Contact[] someContacts = new ContactBuilder() .withNameFrom(...
public static void main(String[] args) { // Build a single contact Contact james = new ContactBuilder() .withName("James Bond") .withEmail("007@secretservice.org") .build(); // Build 100 contacts with one of the given names and no email Contact[] someContacts = new ContactBuilder() .withNameFrom...
diff --git a/BetterBatteryStats/src/com/asksven/betterbatterystats/adapters/ServicesAdapter.java b/BetterBatteryStats/src/com/asksven/betterbatterystats/adapters/ServicesAdapter.java index 463ba70e..9f2ff5dd 100644 --- a/BetterBatteryStats/src/com/asksven/betterbatterystats/adapters/ServicesAdapter.java +++ b/BetterBat...
false
true
public View getView(int position, View convertView, ViewGroup viewGroup) { String entry = m_listData.get(position); if (convertView == null) { LayoutInflater inflater = (LayoutInflater) m_context .getSystemService(Context.LAYOUT_INFLATER_SERVICE); ...
public View getView(int position, View convertView, ViewGroup viewGroup) { String entry = m_listData.get(position); if (convertView == null) { LayoutInflater inflater = (LayoutInflater) m_context .getSystemService(Context.LAYOUT_INFLATER_SERVICE); ...
diff --git a/src/org/flowvisor/config/ConfDBHandler.java b/src/org/flowvisor/config/ConfDBHandler.java index 8c120ef..6ec7a6d 100644 --- a/src/org/flowvisor/config/ConfDBHandler.java +++ b/src/org/flowvisor/config/ConfDBHandler.java @@ -1,127 +1,127 @@ package org.flowvisor.config; import java.sql.Connection; impo...
true
true
private DataSource getDataSource() { if (pds != null) return pds; gop = new GenericObjectPool(null); gop.setTestOnBorrow(true); gop.setTestWhileIdle(true); cf = new DriverManagerConnectionFactory(this.protocol + this.dbName, this.username, this.password); pcf = new PoolableConnectionFactory(cf, gop,...
private DataSource getDataSource() { if (pds != null) return pds; gop = new GenericObjectPool(null); gop.setTestOnBorrow(true); gop.setTestWhileIdle(true); cf = new DriverManagerConnectionFactory(this.protocol + this.dbName, this.username, this.password); pcf = new PoolableConnectionFactory(cf, gop,...
diff --git a/DotMatrixView/src/com/escapeindustries/numericdisplay/BaseGrid.java b/DotMatrixView/src/com/escapeindustries/numericdisplay/BaseGrid.java index 81f6611..d939038 100644 --- a/DotMatrixView/src/com/escapeindustries/numericdisplay/BaseGrid.java +++ b/DotMatrixView/src/com/escapeindustries/numericdisplay/BaseG...
true
true
public void setFormat(String format) { GlyphFactory factory = new GlyphFactory(this); FormatStringParser parser = new FormatStringParser(factory); glyphs = parser.parse(format); digits = extractDigits(glyphs); int gridHeight = 0; int column = getPaddingColumnsLeft(); for (Glyph glyph : glyphs) { glyph...
public void setFormat(String format) { GlyphFactory factory = new GlyphFactory(this); FormatStringParser parser = new FormatStringParser(factory); glyphs = parser.parse(format); digits = extractDigits(glyphs); int gridHeight = 0; int column = getPaddingColumnsLeft(); for (Glyph glyph : glyphs) { glyph...
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java index 28dfd652..54324844 100644 --- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher2/Launcher.java @@ -1,3714 +1,3714 @@ /* * Copyright (C) 2008 The Android Open Source Project * * Licensed u...
false
true
private void showAppsCustomizeHelper(final boolean animated, final boolean springLoaded) { if (mStateAnimation != null) { mStateAnimation.cancel(); mStateAnimation = null; } final Resources res = getResources(); final int duration = res.getInteger(R.integer.c...
private void showAppsCustomizeHelper(final boolean animated, final boolean springLoaded) { if (mStateAnimation != null) { mStateAnimation.cancel(); mStateAnimation = null; } final Resources res = getResources(); final int duration = res.getInteger(R.integer.c...
diff --git a/raven/src/main/java/net/kencochrane/raven/event/EventBuilder.java b/raven/src/main/java/net/kencochrane/raven/event/EventBuilder.java index 96b48c4c..a1ce5272 100644 --- a/raven/src/main/java/net/kencochrane/raven/event/EventBuilder.java +++ b/raven/src/main/java/net/kencochrane/raven/event/EventBuilder.ja...
false
true
private static void makeImmutable(Event event) { // Make the tags unmodifiable Map<String, Set<String>> unmodifiablesTags = new HashMap<String, Set<String>>(event.getTags().size()); for (Map.Entry<String, Set<String>> tag : event.getTags().entrySet()) { unmodifiablesTags.put(tag....
private static void makeImmutable(Event event) { // Make the tags unmodifiable Map<String, Set<String>> unmodifiableTags = new HashMap<String, Set<String>>(event.getTags().size()); for (Map.Entry<String, Set<String>> tag : event.getTags().entrySet()) { unmodifiableTags.put(tag.ge...
diff --git a/MPesaXlsImporter/src/main/java/ke/co/safaricom/MPesaXlsImporter.java b/MPesaXlsImporter/src/main/java/ke/co/safaricom/MPesaXlsImporter.java index c28e085..cfd200b 100644 --- a/MPesaXlsImporter/src/main/java/ke/co/safaricom/MPesaXlsImporter.java +++ b/MPesaXlsImporter/src/main/java/ke/co/safaricom/MPesaXlsI...
true
true
public ParseResultDto parse(final InputStream input) { initializeParser(); try { Iterator<Row> rowIterator = null; // Copy input into byte input to try two implementations of POI parsers: HSSF and XSSF (XML formats) ByteArrayInputStream copiedInput = copyInputIntoByteI...
public ParseResultDto parse(final InputStream input) { initializeParser(); try { Iterator<Row> rowIterator = null; // Copy input into byte input to try two implementations of POI parsers: HSSF and XSSF (XML formats) ByteArrayInputStream copiedInput = copyInputIntoByteI...
diff --git a/xfire-xmlbeans/src/test/org/codehaus/xfire/xmlbeans/weather/WeatherTest.java b/xfire-xmlbeans/src/test/org/codehaus/xfire/xmlbeans/weather/WeatherTest.java index 3bca5a82..547f539b 100644 --- a/xfire-xmlbeans/src/test/org/codehaus/xfire/xmlbeans/weather/WeatherTest.java +++ b/xfire-xmlbeans/src/test/org/co...
true
true
public void testWeather() throws Exception { WeatherForecastSoapClient client = new WeatherForecastSoapClient(); }
public void testWeather() throws Exception { // WeatherForecastSoapClient client = new WeatherForecastSoapClient(); }
diff --git a/src/psywerx/platformGl/game/Square.java b/src/psywerx/platformGl/game/Square.java index 9d7a69a..8f52d92 100644 --- a/src/psywerx/platformGl/game/Square.java +++ b/src/psywerx/platformGl/game/Square.java @@ -1,68 +1,68 @@ package psywerx.platformGl.game; import java.nio.FloatBuffer; import javax.med...
true
true
public void draw(GL2ES2 gl) { float[] modelMatrix = new float[16]; Matrix.setIdentityM(modelMatrix, 0); Matrix.translateM(modelMatrix, 0, position.x, position.y, z); gl.glUniformMatrix4fv(Main.modelMatrix_location, 1, false, modelMatrix, 0); float[] vertices = { 1....
public void draw(GL2ES2 gl) { float[] modelMatrix = new float[16]; Matrix.setIdentityM(modelMatrix, 0); Matrix.translateM(modelMatrix, 0, position.x, position.y, z); gl.glUniformMatrix4fv(Main.modelMatrix_location, 1, false, modelMatrix, 0); float[] vertices = { 1....
diff --git a/src/org/python/modules/_collections/PyDefaultDict.java b/src/org/python/modules/_collections/PyDefaultDict.java index a8013d72..7bf3b93f 100644 --- a/src/org/python/modules/_collections/PyDefaultDict.java +++ b/src/org/python/modules/_collections/PyDefaultDict.java @@ -1,142 +1,142 @@ /* Copyright (c) Jyt...
true
true
final void defaultdict___init__(PyObject[] args, String[] kwds) { int nargs = args.length - kwds.length; if (nargs != 0) { defaultFactory = args[0]; if (defaultFactory.__findattr__("__call__") == null) { throw Py.TypeError("first argument must be callable"); ...
final void defaultdict___init__(PyObject[] args, String[] kwds) { int nargs = args.length - kwds.length; if (nargs != 0) { defaultFactory = args[0]; if (!defaultFactory.isCallable()) { throw Py.TypeError("first argument must be callable"); } ...
diff --git a/Start.java b/Start.java index 09867fd..d03a970 100644 --- a/Start.java +++ b/Start.java @@ -1,188 +1,188 @@ /* * Copyright (c) 2011 Xamarin Inc. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "...
true
true
public static void main (String[] args) { String droiddocs = null; String javadocs = null; String annots = null; List<String> jar_paths = new ArrayList<String> (); String out_path = null; List<String> additional_jar_paths = new ArrayList<String> (); String usage = "Usage: jar2xml --jar=<jarfile> --out=<...
public static void main (String[] args) { String droiddocs = null; String javadocs = null; String annots = null; List<String> jar_paths = new ArrayList<String> (); String out_path = null; List<String> additional_jar_paths = new ArrayList<String> (); String usage = "Usage: jar2xml --jar=<jarfile> --out=<...
diff --git a/src/java/nextgen/core/readers/PairedEndReader.java b/src/java/nextgen/core/readers/PairedEndReader.java index 21b062f..49a4eb4 100644 --- a/src/java/nextgen/core/readers/PairedEndReader.java +++ b/src/java/nextgen/core/readers/PairedEndReader.java @@ -1,417 +1,417 @@ package nextgen.core.readers; impor...
true
true
private Alignment samRecordToAlignment(SAMRecord record,TranscriptionRead transcriptionRead,boolean fragment) { Alignment rtrn; try { if (alignmentType == AlignmentType.PAIRED_END) { if (record.getReadPairedFlag() && !record.getMateUnmappedFlag()) { //revised to read single end data @zhuxp String...
private Alignment samRecordToAlignment(SAMRecord record,TranscriptionRead transcriptionRead,boolean fragment) { Alignment rtrn; try { if (alignmentType == AlignmentType.PAIRED_END) { if (record.getReadPairedFlag() && !record.getMateUnmappedFlag()) { //revised to read single end data @zhuxp String...
diff --git a/src/main/java/edu/ucsf/rbvi/cddApp/internal/ui/DomainsPanel.java b/src/main/java/edu/ucsf/rbvi/cddApp/internal/ui/DomainsPanel.java index 6314634..189c373 100644 --- a/src/main/java/edu/ucsf/rbvi/cddApp/internal/ui/DomainsPanel.java +++ b/src/main/java/edu/ucsf/rbvi/cddApp/internal/ui/DomainsPanel.java @@ ...
false
true
public void handleEvent(RowsSetEvent arg0) { try { CyTable table; if (manager.getCurrentNetwork() == null) return; table = manager.getCurrentNetwork().getDefaultNodeTable(); String message = ""; Collection<RowSetRecord> record = arg0.getPayloadCollection(); for (RowSetRecord r: record) { Long suid = r...
public void handleEvent(RowsSetEvent arg0) { try { CyTable table; // If we're not getting selection, we're not interested if (manager.getCurrentNetwork() == null || !arg0.containsColumn(CyNetwork.SELECTED)) return; table = manager.getCurrentNetwork().getDefaultNodeTable(); // Oops, not relevant to us... ...
diff --git a/Osm2GpsMid/src/de/ueller/osmToGpsMid/TriangulateRelations.java b/Osm2GpsMid/src/de/ueller/osmToGpsMid/TriangulateRelations.java index 055370a0..157cf699 100644 --- a/Osm2GpsMid/src/de/ueller/osmToGpsMid/TriangulateRelations.java +++ b/Osm2GpsMid/src/de/ueller/osmToGpsMid/TriangulateRelations.java @@ -1,159...
false
true
private void convertAreasToTriangles() { HashMap<Long, Way> wayHashMap = parser.getWayHashMap(); ArrayList<Way> removeWays = new ArrayList<Way>(); Way firstWay = null; Iterator<Relation> i = parser.getRelations().iterator(); rel: while (i.hasNext()) { firstWay = null; Relation r = i.next(); // System...
private void convertAreasToTriangles() { HashMap<Long, Way> wayHashMap = parser.getWayHashMap(); ArrayList<Way> removeWays = new ArrayList<Way>(); Way firstWay = null; Iterator<Relation> i = parser.getRelations().iterator(); rel: while (i.hasNext()) { firstWay = null; Relation r = i.next(); // System...
diff --git a/src/main/java/me/iffa/bananaspace/config/SpaceConfigUpdater.java b/src/main/java/me/iffa/bananaspace/config/SpaceConfigUpdater.java index ff02551..7cb5681 100644 --- a/src/main/java/me/iffa/bananaspace/config/SpaceConfigUpdater.java +++ b/src/main/java/me/iffa/bananaspace/config/SpaceConfigUpdater.java @@ ...
true
true
public static void updateConfigs() { if (!needsUpdate(ConfigFile.CONFIG)) { return; } // Variables SpaceMessageHandler.print(Level.INFO, "Starting to update configs for compatability with v2."); YamlConfiguration configFile = SpaceConfig.getConfig(ConfigFile.CONFI...
public static void updateConfigs() { if (!needsUpdate(ConfigFile.CONFIG)) { return; } // Variables SpaceMessageHandler.print(Level.INFO, "Starting to update configs for compatability with v2."); YamlConfiguration configFile = SpaceConfig.getConfig(ConfigFile.CONFI...
diff --git a/dspace-stats/src/main/java/org/dspace/statistics/util/LocationUtils.java b/dspace-stats/src/main/java/org/dspace/statistics/util/LocationUtils.java index ae29658ae..bf1b18908 100644 --- a/dspace-stats/src/main/java/org/dspace/statistics/util/LocationUtils.java +++ b/dspace-stats/src/main/java/org/dspace/st...
true
true
static public String getContinentName(String continentCode, Locale locale) { ResourceBundle names; if (null == locale) locale = Locale.US; if (null == continentCode) { logger.error("Null continentCode"); return I18nUtil .g...
static public String getContinentName(String continentCode, Locale locale) { ResourceBundle names; if (null == locale) locale = Locale.US; if (null == continentCode) { logger.error("Null continentCode"); return I18nUtil .g...
diff --git a/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/viewArtifacts/Navigation.java b/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/viewArtifacts/Navigation.java index fa6ad8073..ff4ba4eb6 100644 --- a/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xm...
true
true
public void addPageMeta(PageMeta pageMeta) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { // FIXME: I don't think these should be set here, but they're needed and I'm // not sure where else it could go. Perhaps the linkRes...
public void addPageMeta(PageMeta pageMeta) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { // FIXME: I don't think these should be set here, but they're needed and I'm // not sure where else it could go. Perhaps the linkRes...
diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/search/highlight/HighlighterParseElement.java b/modules/elasticsearch/src/main/java/org/elasticsearch/search/highlight/HighlighterParseElement.java index 4725a20b364..9c3f54291ec 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/search/...
true
true
@Override public void parse(XContentParser parser, SearchContext context) throws Exception { XContentParser.Token token; String topLevelFieldName = null; List<SearchContextHighlight.Field> fields = newArrayList(); String[] globalPreTags = DEFAULT_PRE_TAGS; String[] globalPos...
@Override public void parse(XContentParser parser, SearchContext context) throws Exception { XContentParser.Token token; String topLevelFieldName = null; List<SearchContextHighlight.Field> fields = newArrayList(); String[] globalPreTags = DEFAULT_PRE_TAGS; String[] globalPos...
diff --git a/src/main/java/org/jboss/forge/scaffold/spring/metawidget/widgetbuilder/ReadOnlyEntityWidgetBuilder.java b/src/main/java/org/jboss/forge/scaffold/spring/metawidget/widgetbuilder/ReadOnlyEntityWidgetBuilder.java index 47dc966..6ff31de 100644 --- a/src/main/java/org/jboss/forge/scaffold/spring/metawidget/widg...
true
true
public StaticXmlWidget buildWidget(String elementName, Map<String, String> attributes, StaticXmlMetawidget metawidget) { StaticXmlWidget widget = super.buildWidget(elementName, attributes, metawidget); Class<?> clazz = WidgetBuilderUtils.getActualClassOrType(attributes, null); if (TRUE...
public StaticXmlWidget buildWidget(String elementName, Map<String, String> attributes, StaticXmlMetawidget metawidget) { StaticXmlWidget widget = super.buildWidget(elementName, attributes, metawidget); Class<?> clazz = WidgetBuilderUtils.getActualClassOrType(attributes, null); if (TRUE...
diff --git a/bundles/P2P/src/main/java/org/paxle/p2p/services/search/impl/SearchClientImpl.java b/bundles/P2P/src/main/java/org/paxle/p2p/services/search/impl/SearchClientImpl.java index 65217c28..9487e765 100644 --- a/bundles/P2P/src/main/java/org/paxle/p2p/services/search/impl/SearchClientImpl.java +++ b/bundles/P2P/...
true
true
protected void extractResult(Message reqMessage, List<IIndexerDocument> results) { List<Message> messageList = null; synchronized (this.resultMap) { if (!this.resultMap.containsKey(Integer.valueOf(reqMessage.getMessageNumber()))) { this.logger.warn("Unknown requestID: " + reqMessage.getMessageNumber());...
protected void extractResult(Message reqMessage, List<IIndexerDocument> results) { List<Message> messageList = null; synchronized (this.resultMap) { if (!this.resultMap.containsKey(Integer.valueOf(reqMessage.getMessageNumber()))) { this.logger.warn("Unknown requestID: " + reqMessage.getMessageNumber());...
diff --git a/src/java/org/apache/cassandra/transport/DataType.java b/src/java/org/apache/cassandra/transport/DataType.java index 0cb9d2d75..80528e759 100644 --- a/src/java/org/apache/cassandra/transport/DataType.java +++ b/src/java/org/apache/cassandra/transport/DataType.java @@ -1,197 +1,197 @@ /* * Licensed to the...
true
true
public static Pair<DataType, Object> fromType(AbstractType type) { DataType dt = dataTypeMap.get(type); if (dt == null) { if (type.isCollection()) { if (type instanceof ListType) { return Pair.<DataType, Object>c...
public static Pair<DataType, Object> fromType(AbstractType type) { DataType dt = dataTypeMap.get(type); if (dt == null) { if (type.isCollection()) { if (type instanceof ListType) { return Pair.<DataType, Object>c...
diff --git a/src/net/sourcewalker/smugview/gui/AlbumListActivity.java b/src/net/sourcewalker/smugview/gui/AlbumListActivity.java index 068ba4c..88ee3a9 100644 --- a/src/net/sourcewalker/smugview/gui/AlbumListActivity.java +++ b/src/net/sourcewalker/smugview/gui/AlbumListActivity.java @@ -1,212 +1,212 @@ package net.so...
true
true
public View getView(int position, View convertView, ViewGroup parent) { AlbumListHolder holder; if (convertView == null) { convertView = View.inflate(AlbumListActivity.this, R.layout.albumlist_row, null); holder = new AlbumListHolde...
public View getView(int position, View convertView, ViewGroup parent) { AlbumListHolder holder; if (convertView == null) { convertView = View.inflate(AlbumListActivity.this, R.layout.albumlist_row, null); holder = new AlbumListHolde...
diff --git a/autocompleteServer/src/main/java/de/metalcon/autocompleteServer/Search.java b/autocompleteServer/src/main/java/de/metalcon/autocompleteServer/Search.java index 0961799..465ecf5 100644 --- a/autocompleteServer/src/main/java/de/metalcon/autocompleteServer/Search.java +++ b/autocompleteServer/src/main/java/de...
true
true
public static String treeSearch(String input) { if (suggestTree == null) { int priority = 100000; String filename = "/var/lib/datasets/metalcon/Band.csv"; // there must be a way to use relative paths! try { BufferedReader in = new BufferedReader(new FileReader(filename)); String zeile = null; ...
public static String treeSearch(String input) { if (suggestTree == null) { suggestTree = new SuggestTree(7); int priority = 100000; String filename = "/var/lib/datasets/metalcon/Band.csv"; // there must be a way to use relative paths! try { BufferedReader in = new BufferedReader(new FileReader(fi...
diff --git a/sahi/src/main/java/com/redhat/qe/jon/sahi/base/inventory/Operations.java b/sahi/src/main/java/com/redhat/qe/jon/sahi/base/inventory/Operations.java index 1a539406..f83a7fbf 100644 --- a/sahi/src/main/java/com/redhat/qe/jon/sahi/base/inventory/Operations.java +++ b/sahi/src/main/java/com/redhat/qe/jon/sahi/...
true
true
public Map<String, String> assertOperationResult(Operation op, boolean success) { String opName = op.name; String resultImage = "Operation_failed_16.png"; String succ = "Failed"; if (success) { resultImage = "Operation_ok_16.png"; succ = "Success"; } ...
public Map<String, String> assertOperationResult(Operation op, boolean success) { String opName = op.name; String resultImage = "Operation_failed_16.png"; String succ = "Failed"; if (success) { resultImage = "Operation_ok_16.png"; succ = "Success"; } ...
diff --git a/hale/eu.esdihumboldt.hale/src/eu/esdihumboldt/hale/rcp/wizards/io/InstanceDataImportWizardMainPage.java b/hale/eu.esdihumboldt.hale/src/eu/esdihumboldt/hale/rcp/wizards/io/InstanceDataImportWizardMainPage.java index 19a68a9a5..3e92edab8 100644 --- a/hale/eu.esdihumboldt.hale/src/eu/esdihumboldt/hale/rcp/wi...
false
true
private void createSourceGroup(Composite parent) { // define source group composite Group selectionArea = new Group(parent, SWT.NONE); selectionArea.setText(Messages.InstanceDataImportWizardMainPage_ReadGeodata); selectionArea.setLayout(new GridLayout()); GridData selectionAreaGD = new GridData(GridData.V...
private void createSourceGroup(Composite parent) { // define source group composite Group selectionArea = new Group(parent, SWT.NONE); selectionArea.setText(Messages.InstanceDataImportWizardMainPage_ReadGeodata); selectionArea.setLayout(new GridLayout()); GridData selectionAreaGD = new GridData(GridData.V...
diff --git a/DesktopDataLaboratory/src/org/gephi/desktop/datalab/persistence/DataLaboratoryPersistenceProvider.java b/DesktopDataLaboratory/src/org/gephi/desktop/datalab/persistence/DataLaboratoryPersistenceProvider.java index 49fac158d..76ea2221e 100644 --- a/DesktopDataLaboratory/src/org/gephi/desktop/datalab/persist...
true
true
private void readDataTablesModel(XMLStreamReader reader, Workspace workspace) throws XMLStreamException { AttributeModel attributeModel = workspace.getLookup().lookup(AttributeModel.class); AttributeTable nodesTable = attributeModel.getNodeTable(); AttributeTable edgesTable = attributeModel....
private void readDataTablesModel(XMLStreamReader reader, Workspace workspace) throws XMLStreamException { AttributeModel attributeModel = workspace.getLookup().lookup(AttributeModel.class); AttributeTable nodesTable = attributeModel.getNodeTable(); AttributeTable edgesTable = attributeModel....
diff --git a/api/src/main/java/org/jboss/marshalling/reflect/SerializableClass.java b/api/src/main/java/org/jboss/marshalling/reflect/SerializableClass.java index b3f350b..8f9ac3e 100644 --- a/api/src/main/java/org/jboss/marshalling/reflect/SerializableClass.java +++ b/api/src/main/java/org/jboss/marshalling/reflect/Se...
false
true
private static Method lookupInheritableMethod(final Class<?> subject, final String name) { return AccessController.doPrivileged(new PrivilegedAction<Method>() { public Method run() { Class<?> foundClass; Method method = null; for (foundClass = subj...
private static Method lookupInheritableMethod(final Class<?> subject, final String name) { return AccessController.doPrivileged(new PrivilegedAction<Method>() { public Method run() { Class<?> foundClass = subject; Method method = null; while (metho...
diff --git a/gr.sch.ira.minoas/src/gr/sch/ira/minoas/seam/components/management/TeachingHoursCDRManagement.java b/gr.sch.ira.minoas/src/gr/sch/ira/minoas/seam/components/management/TeachingHoursCDRManagement.java index d4472074..ec85514c 100644 --- a/gr.sch.ira.minoas/src/gr/sch/ira/minoas/seam/components/management/Te...
true
true
public void doCalculateCurrentCDRs() { long started = System.currentTimeMillis(); DateFormat df = new SimpleDateFormat("dd/MM/yyyy"); EntityManager em = getEntityManager(); SchoolYear currentSchoolYear = coreSearching.getActiveSchoolYear(em); info("generating teaching hours C...
public void doCalculateCurrentCDRs() { long started = System.currentTimeMillis(); DateFormat df = new SimpleDateFormat("dd/MM/yyyy"); EntityManager em = getEntityManager(); SchoolYear currentSchoolYear = coreSearching.getActiveSchoolYear(em); info("generating teaching hours C...
diff --git a/sbia/ch05/src/test/java/com/manning/sbia/ch05/CommandLineJobRunnerTest.java b/sbia/ch05/src/test/java/com/manning/sbia/ch05/CommandLineJobRunnerTest.java index 8ff666e..3a7c31b 100755 --- a/sbia/ch05/src/test/java/com/manning/sbia/ch05/CommandLineJobRunnerTest.java +++ b/sbia/ch05/src/test/java/com/manning...
true
true
@Test public void run() { final Queue<Integer> exitCode = new ArrayBlockingQueue<Integer>(1); CommandLineJobRunner.presetSystemExiter(new SystemExiter() { @Override public void exit(int status) { exitCode.add(status); } }); CommandLineJobRunner.main(new String[] { "/com/manning/sbia/ch05/im...
@Test public void run() throws Exception { final Queue<Integer> exitCode = new ArrayBlockingQueue<Integer>(1); CommandLineJobRunner.presetSystemExiter(new SystemExiter() { @Override public void exit(int status) { exitCode.add(status); } }); CommandLineJobRunner.main(new String[] { "/com/man...
diff --git a/src/modules/Todo.java b/src/modules/Todo.java index a70d92c..5e73d47 100644 --- a/src/modules/Todo.java +++ b/src/modules/Todo.java @@ -1,243 +1,243 @@ /* Copyright (c) Kenneth Prugh 2012 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General P...
true
true
public String deleteTodo(final Message m) { String todoString = m.msg.substring(5).trim(); if (todoString.length() == 0) { return "No todo id specified"; } int userid = getUserID(m.user); int todoid = -1; try { todoid = In...
public String deleteTodo(final Message m) { String todoString = m.msg.substring(5).trim(); if (todoString.length() == 0) { return "No todo id specified"; } int userid = getUserID(m.user); int todoid = -1; try { todoid = In...
diff --git a/core/java/android/preference/PreferenceScreen.java b/core/java/android/preference/PreferenceScreen.java index 6ea2528b..95e54324 100644 --- a/core/java/android/preference/PreferenceScreen.java +++ b/core/java/android/preference/PreferenceScreen.java @@ -1,260 +1,260 @@ /* * Copyright (C) 2007 The Androi...
true
true
private void showDialog(Bundle state) { Context context = getContext(); ListView listView = new ListView(context); bind(listView); // Set the title bar if title is available, else no title bar final CharSequence title = getTitle(); Dialog dialog = mDialog = new Dialo...
private void showDialog(Bundle state) { Context context = getContext(); ListView listView = new ListView(context); bind(listView); // Set the title bar if title is available, else no title bar final CharSequence title = getTitle(); Dialog dialog = mDialog = new Dialo...
diff --git a/parser/org/eclipse/cdt/internal/core/parser/scanner2/ExpressionEvaluator.java b/parser/org/eclipse/cdt/internal/core/parser/scanner2/ExpressionEvaluator.java index 0dd640883..705574c3c 100644 --- a/parser/org/eclipse/cdt/internal/core/parser/scanner2/ExpressionEvaluator.java +++ b/parser/org/eclipse/cdt/in...
true
true
private void nextToken() throws EvalException { boolean isHex = false; boolean isOctal = false; boolean isDecimal = false; contextLoop: while (bufferStackPos >= 0) { // Find the first thing we would care about skipWhiteSpace(); while (++bufferPo...
private void nextToken() throws EvalException { boolean isHex = false; boolean isOctal = false; boolean isDecimal = false; contextLoop: while (bufferStackPos >= 0) { // Find the first thing we would care about skipWhiteSpace(); while (++bufferPo...
diff --git a/src/com/onarandombox/MultiverseCore/MVConfigMigrator.java b/src/com/onarandombox/MultiverseCore/MVConfigMigrator.java index 0fb57f8..07f1231 100644 --- a/src/com/onarandombox/MultiverseCore/MVConfigMigrator.java +++ b/src/com/onarandombox/MultiverseCore/MVConfigMigrator.java @@ -1,115 +1,114 @@ package co...
false
true
public boolean migrate(String name, File folder) { File oldFolder = null; // They still have MV 1 installed! Good! if (this.core.getServer().getPluginManager().getPlugin("MultiVerse") != null) { this.core.log(Level.INFO, "Found MultiVerse 1. Starting Config Migration..."); ...
public boolean migrate(String name, File folder) { File oldFolder = null; // They still have MV 1 installed! Good! if (this.core.getServer().getPluginManager().getPlugin("MultiVerse") != null) { this.core.log(Level.INFO, "Found MultiVerse 1. Starting Config Migration..."); ...
diff --git a/src/main/java/org/mvel/AbstractParser.java b/src/main/java/org/mvel/AbstractParser.java index de5ced00..a41d098a 100644 --- a/src/main/java/org/mvel/AbstractParser.java +++ b/src/main/java/org/mvel/AbstractParser.java @@ -1,1420 +1,1420 @@ package org.mvel; import static org.mvel.Operator.*; import or...
true
true
protected ASTNode nextToken() { /** * If the cursor is at the end of the expression, we have nothing more to do: * return null. */ if (cursor >= length) { if (debugSymbols && lastNode != null) { /** * Produce a trailing line lab...
protected ASTNode nextToken() { /** * If the cursor is at the end of the expression, we have nothing more to do: * return null. */ if (cursor >= length) { // if (debugSymbols && lastNode != null) { // /** // * Produce a trailing li...
diff --git a/src/cytoscape/CytoscapeInit.java b/src/cytoscape/CytoscapeInit.java index 9029418a7..eba9b7b46 100644 --- a/src/cytoscape/CytoscapeInit.java +++ b/src/cytoscape/CytoscapeInit.java @@ -1,628 +1,628 @@ /* File: CytoscapeInit.java Copyright (c) 2006, The Cytoscape Consortium (www.cytoscape.org) The...
true
true
public boolean init(CyInitParams params) { long begintime = System.currentTimeMillis(); if (logger == null) logger = CyLogger.getLogger(CytoscapeInit.class); try { initParams = params; // setup properties initProperties(); // Reinitialize so we can pick up the debug flag logger = CyLogger.ge...
public boolean init(CyInitParams params) { long begintime = System.currentTimeMillis(); if (logger == null) logger = CyLogger.getLogger(CytoscapeInit.class); try { initParams = params; // setup properties initProperties(); // Reinitialize so we can pick up the debug flag logger = CyLogger.ge...
diff --git a/ffxieq/src/com/github/kanata3249/ffxieq/android/AtmaListView.java b/ffxieq/src/com/github/kanata3249/ffxieq/android/AtmaListView.java index 3bb98c8..6253842 100644 --- a/ffxieq/src/com/github/kanata3249/ffxieq/android/AtmaListView.java +++ b/ffxieq/src/com/github/kanata3249/ffxieq/android/AtmaListView.java...
true
true
public boolean setParam(FFXIDAO dao) { AtmaListViewAdapter adapter; Cursor cursor; mDao = (FFXIDatabase)dao; if (mFilterID != -1) { mFilter = ((FFXIEQBaseActivity)getContext()).getSettings().getFilter(mFilterID); } cursor = mDao.getAtmaCursor(columns, mOrderBy, mFilter); adapter = new AtmaListViewAda...
public boolean setParam(FFXIDAO dao) { AtmaListViewAdapter adapter; Cursor cursor; mDao = (FFXIDatabase)dao; if (mFilterID != -1) { mFilter = ((FFXIEQBaseActivity)getContext()).getSettings().getFilter(mFilterID); } cursor = mDao.getAtmaCursor(columns, mOrderBy, mFilter); if (getAdapter() != null) { ...
diff --git a/basic/enricher/src/main/java/org/springframework/integration/samples/enricher/Main.java b/basic/enricher/src/main/java/org/springframework/integration/samples/enricher/Main.java index 92f67e0c..76b6ce67 100644 --- a/basic/enricher/src/main/java/org/springframework/integration/samples/enricher/Main.java +++...
true
true
public static void main(final String... args) { LOGGER.info(LINE_SEPARATOR + EMPTY_LINE + "\n Welcome to Spring Integration! " + EMPTY_LINE + "\n For more information please visit: " ...
public static void main(final String... args) { LOGGER.info(LINE_SEPARATOR + EMPTY_LINE + "\n Welcome to Spring Integration! " + EMPTY_LINE + "\n For more information please visit: " ...
diff --git a/wdb-api/src/main/java/org/wdbuilder/service/PluginFacadeRepository.java b/wdb-api/src/main/java/org/wdbuilder/service/PluginFacadeRepository.java index e18c152..67a2b49 100644 --- a/wdb-api/src/main/java/org/wdbuilder/service/PluginFacadeRepository.java +++ b/wdb-api/src/main/java/org/wdbuilder/service/Plu...
true
true
PluginFacadeRepository(Collection<S> plugins) { for (S plugin : plugins) { this.plugins.put(plugin.getEntityClass(), plugin); } }
public PluginFacadeRepository(Collection<S> plugins) { for (S plugin : plugins) { this.plugins.put(plugin.getEntityClass(), plugin); } }
diff --git a/Modmode/src/iggy/Modmode/Modmode.java b/Modmode/src/iggy/Modmode/Modmode.java index cdeb6c5..d34f538 100644 --- a/Modmode/src/iggy/Modmode/Modmode.java +++ b/Modmode/src/iggy/Modmode/Modmode.java @@ -1,160 +1,161 @@ package iggy.Modmode; import java.util.HashMap; import java.util.Map; import java.uti...
true
true
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { Player player = null; if (sender instanceof Player) { player = (Player) sender; } if (player == null) { info("This command can only be run by a player"); return false; } info (player.getName() +...
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { Player player = null; if (sender instanceof Player) { player = (Player) sender; } if (player == null) { info("This command can only be run by a player"); return false; } info (player.getName() +...
diff --git a/org.eclipse.emf.emfstore.client.ui/src/org/eclipse/emf/emfstore/client/ui/views/historybrowserview/graph/AbstractPlotRenderer.java b/org.eclipse.emf.emfstore.client.ui/src/org/eclipse/emf/emfstore/client/ui/views/historybrowserview/graph/AbstractPlotRenderer.java index 9451bf0b..f1b7ec90 100644 --- a/org.e...
true
true
protected void paintCommit(final IPlotCommit commit, final int h) { final int dotSize = computeDotSize(h); final PlotLane myLane = commit.getLane(); final int myLaneX = laneC(myLane); final Color myColor = laneColor(myLane, true); int maxCenter = 0; for (final PlotLane passingLane : commit.getPassingLanes...
protected void paintCommit(final IPlotCommit commit, final int h) { final int dotSize = computeDotSize(h); final PlotLane myLane = commit.getLane(); final int myLaneX = laneC(myLane); final Color myColor = laneColor(myLane, true); int maxCenter = 0; for (final PlotLane passingLane : commit.getPassingLanes...
diff --git a/engine/src/main/java/org/archive/crawler/frontier/BucketQueueAssignmentPolicy.java b/engine/src/main/java/org/archive/crawler/frontier/BucketQueueAssignmentPolicy.java index b89b4fe2..79fbe7ad 100644 --- a/engine/src/main/java/org/archive/crawler/frontier/BucketQueueAssignmentPolicy.java +++ b/engine/src/m...
false
true
public String getClassKey(final CrawlURI curi) { CrawlHost host; host = serverCache.getHostFor(curi.getUURI()); if(host == null) { return "NO-HOST"; } else if(host.getIP() == null) { return "NO-IP-".concat(Integer.toString(Math.abs(host.getHostName() ...
public String getClassKey(final CrawlURI curi) { CrawlHost host; host = serverCache.getHostFor(curi.getUURI()); if(host == null) { return "NO-HOST"; } else if(host.getIP() == null) { return "NO-IP-".concat(Long.toString(Math.abs((long) host ...
diff --git a/src/org/bh/platform/PlatformActionListener.java b/src/org/bh/platform/PlatformActionListener.java index 03b9c0e6..69f803e9 100644 --- a/src/org/bh/platform/PlatformActionListener.java +++ b/src/org/bh/platform/PlatformActionListener.java @@ -1,277 +1,278 @@ package org.bh.platform; import java.awt.even...
true
true
public void actionPerformed(ActionEvent aEvent) { // get actionKey of fired action PlatformKey actionKey = ((IBHAction) aEvent.getSource()).getPlatformKey(); //do right action... switch (actionKey) { case FILENEW: break; // TODO Loeckelt.Michael case FILEOPEN: System.out.println...
public void actionPerformed(ActionEvent aEvent) { // get actionKey of fired action PlatformKey actionKey = ((IBHAction) aEvent.getSource()).getPlatformKey(); //do right action... switch (actionKey) { case FILENEW: break; // TODO Loeckelt.Michael case FILEOPEN: System.out.println...
diff --git a/service/mcs/rest/src/main/java/eu/europeana/cloud/service/mcs/rest/JerseyConfig.java b/service/mcs/rest/src/main/java/eu/europeana/cloud/service/mcs/rest/JerseyConfig.java index daf56e86a..e629420bc 100644 --- a/service/mcs/rest/src/main/java/eu/europeana/cloud/service/mcs/rest/JerseyConfig.java +++ b/serv...
true
true
public JerseyConfig() { super(); //features register(MultiPartFeature.class); // filters register(RequestContextFilter.class); register(LoggingFilter.class); // exception mappers register(CannotModifyPersistentRepresentationExceptionMapper.class); ...
public JerseyConfig() { super(); //features register(MultiPartFeature.class); // filters register(RequestContextFilter.class); register(LoggingFilter.class); // exception mappers register(CannotPersistEmptyRepresentationExceptionMapper.class); ...
diff --git a/src/com/android/stk/StkApp.java b/src/com/android/stk/StkApp.java index 0b1f208..0f0af52 100644 --- a/src/com/android/stk/StkApp.java +++ b/src/com/android/stk/StkApp.java @@ -1,66 +1,66 @@ /* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (th...
true
true
public static int calculateDurationInMilis(Duration duration) { int timeout = 0; if (duration != null) { switch (duration.timeUnit) { case MINUTE: timeout = 1000 * 60; break; case TENTH_SECOND: timeout = 1000 * 10; ...
public static int calculateDurationInMilis(Duration duration) { int timeout = 0; if (duration != null) { switch (duration.timeUnit) { case MINUTE: timeout = 1000 * 60; break; case TENTH_SECOND: timeout = 1000 / 10; ...
diff --git a/strategoxt-java-backend/java/runtime/org/strategoxt/HybridInterpreter.java b/strategoxt-java-backend/java/runtime/org/strategoxt/HybridInterpreter.java index b6602ec1c..ee7c323c6 100644 --- a/strategoxt-java-backend/java/runtime/org/strategoxt/HybridInterpreter.java +++ b/strategoxt-java-backend/java/runti...
true
true
private void registerJar(URLClassLoader classLoader, URL jar) throws SecurityException, IncompatibleJarException, IOException { URL protocolfulUrl = new URL("jar", "", jar + "!/"); JarURLConnection connection = (JarURLConnection) protocolfulUrl.openConnection(); JarFile jarFile = connection.getJarFile(); E...
private void registerJar(URLClassLoader classLoader, URL jar) throws SecurityException, IncompatibleJarException, IOException { URL protocolfulUrl = new URL("jar", "", jar + "!/"); JarURLConnection connection = (JarURLConnection) protocolfulUrl.openConnection(); connection.setUseCaches(false); JarFile jarF...
diff --git a/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/ti/TypeInferencer2.java b/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/ti/TypeInferencer2.java index aeaac387..93f89d44 100644 --- a/plugins/org.eclipse.dltk.javascript.core/src/org/eclips...
true
true
private JSType2 doResolveTypeRef(JSType type) { if (type instanceof TypeRef) { final TypeRef r = (TypeRef) type; return JSTypeSet.ref(doResolveType(r.getTarget())); } else if (type instanceof ClassType) { final ClassType c = (ClassType) type; return JSTypeSet.classType(doResolveType(c.getTarget())); ...
private JSType2 doResolveTypeRef(JSType type) { if (type instanceof TypeRef) { final TypeRef r = (TypeRef) type; return JSTypeSet.ref(doResolveType(r.getTarget())); } else if (type instanceof ClassType) { final ClassType c = (ClassType) type; final Type target = c.getTarget(); return JSTypeSet.class...
diff --git a/eol-globi-data-tool/src/test/java/org/eol/globi/data/taxon/TaxonNameNormalizerTest.java b/eol-globi-data-tool/src/test/java/org/eol/globi/data/taxon/TaxonNameNormalizerTest.java index 69125cd1..762d165f 100644 --- a/eol-globi-data-tool/src/test/java/org/eol/globi/data/taxon/TaxonNameNormalizerTest.java +++...
true
true
public void cleanName() { TaxonNameNormalizer normalizer = new TaxonNameNormalizer(); assertThat(normalizer.normalize("Blbua blas "), is("Blbua blas")); assertThat(normalizer.normalize("Blbua blas "), is("Blbua blas")); assertThat(normalizer.normalize("Blbua blas (akjhaskdjhf)"), ...
public void cleanName() { TaxonNameNormalizer normalizer = new TaxonNameNormalizer(); assertThat(normalizer.normalize("Blbua blas "), is("Blbua blas")); assertThat(normalizer.normalize("Blbua blas "), is("Blbua blas")); assertThat(normalizer.normalize("Blbua blas (akjhaskdjhf)"), ...
diff --git a/nexus/nexus-rest-api/src/main/java/org/sonatype/nexus/rest/repositories/AllRepositoryListPlexusResource.java b/nexus/nexus-rest-api/src/main/java/org/sonatype/nexus/rest/repositories/AllRepositoryListPlexusResource.java index 42272dbc6..77a0a7701 100644 --- a/nexus/nexus-rest-api/src/main/java/org/sonatype...
true
true
public Object get( Context context, Request request, Response response, Variant variant ) throws ResourceException { return listRepositories( request, true, false ); }
public Object get( Context context, Request request, Response response, Variant variant ) throws ResourceException { return listRepositories( request, true, true ); }
diff --git a/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/Folder.java b/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/Folder.java index 5ff092261..1d377ac64 100644 --- a/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/Folder.java +++ ...
true
true
public void create(int updateFlags, boolean local, IProgressMonitor monitor) throws CoreException { final boolean force = (updateFlags & IResource.FORCE) != 0; monitor = Policy.monitorFor(monitor); try { String message = Policy.bind("resources.creating", getFullPath().toString()); //$NON-NLS-1$ monitor.beginTask...
public void create(int updateFlags, boolean local, IProgressMonitor monitor) throws CoreException { final boolean force = (updateFlags & IResource.FORCE) != 0; monitor = Policy.monitorFor(monitor); try { String message = Policy.bind("resources.creating", getFullPath().toString()); //$NON-NLS-1$ monitor.beginTask...
diff --git a/src/BindTest.java b/src/BindTest.java index d263814..4727927 100644 --- a/src/BindTest.java +++ b/src/BindTest.java @@ -1,42 +1,39 @@ import java.net.InetSocketAddress; import java.net.ServerSocket; import java.net.SocketException; import java.net.SocketTimeoutException; import java.io.IOException; ...
false
true
public static void main(String[] args) { try{ Integer port = Integer.valueOf(args[0]); ServerSocket ss = null; /* workaround a macos|windows problem */ String os = System.getProperty("os.name"); if(os != null && os.equalsIgnoreCase("Windows")) ss = new ServerSocket(port.intValue()); else { ...
public static void main(String[] args) { try{ Integer port = Integer.valueOf(args[0]); ServerSocket ss = null; /* workaround a macos|windows problem */ String os = System.getProperty("os.name").toLowerCase(); ss = new ServerSocket(); if(os.startsWith("mac")) ss.setReuseAddress(false); ss.bin...
diff --git a/src/com/redhat/ceylon/compiler/java/codegen/CallableBuilder.java b/src/com/redhat/ceylon/compiler/java/codegen/CallableBuilder.java index 10093e779..c045827ac 100644 --- a/src/com/redhat/ceylon/compiler/java/codegen/CallableBuilder.java +++ b/src/com/redhat/ceylon/compiler/java/codegen/CallableBuilder.java...
true
true
public static CallableBuilder unboundFunctionalMemberReference(CeylonTransformer gen, ProducedType typeModel, final Functional methodOrClass, ProducedReference producedReference) { final String instanceName = "$instance"; final ParameterList parameterList = met...
public static CallableBuilder unboundFunctionalMemberReference(CeylonTransformer gen, ProducedType typeModel, final Functional methodOrClass, ProducedReference producedReference) { final String instanceName = "$instance"; final ParameterList parameterList = met...
diff --git a/src/main/java/net/pms/dlna/DLNAMediaDatabase.java b/src/main/java/net/pms/dlna/DLNAMediaDatabase.java index 0165a4929..f22dd48bd 100644 --- a/src/main/java/net/pms/dlna/DLNAMediaDatabase.java +++ b/src/main/java/net/pms/dlna/DLNAMediaDatabase.java @@ -1,763 +1,763 @@ /* * PS3 Media Server, for streaming...
false
true
public void init(boolean force) { dbCount = -1; String version = null; Connection conn = null; ResultSet rs = null; Statement stmt = null; // Check whether the database is not severely damaged, corrupted or wrong version boolean force_delete = false; try { conn = getConnection(); } catch (SQLExce...
public void init(boolean force) { dbCount = -1; String version = null; Connection conn = null; ResultSet rs = null; Statement stmt = null; try { conn = getConnection(); } catch (SQLException se) { if (FileUtils.exists(dbDir + File.separator + dbName + ".data.db") || (se.getErrorCode() == 90048)) ...
diff --git a/src/com/jgaap/distances/KendallCorrelationDistance.java b/src/com/jgaap/distances/KendallCorrelationDistance.java index 1a6833e..556d660 100644 --- a/src/com/jgaap/distances/KendallCorrelationDistance.java +++ b/src/com/jgaap/distances/KendallCorrelationDistance.java @@ -1,192 +1,193 @@ // Copyright (c) 2...
false
true
public double distance(EventSet es1, EventSet es2) { EventHistogram h1 = new EventHistogram(); EventHistogram h2 = new EventHistogram(); Set<Event> s = new HashSet<Event>(); List<Pair<Event,Double>> l1 = new ArrayList<Pair<Event,Double>>(); List<Pair<Event,Double>> l2 = new ArrayList<Pair<Event,Double>...
public double distance(EventSet es1, EventSet es2) { EventHistogram h1 = new EventHistogram(); EventHistogram h2 = new EventHistogram(); Set<Event> s = new HashSet<Event>(); List<Pair<Event,Double>> l1 = new ArrayList<Pair<Event,Double>>(); List<Pair<Event,Double>> l2 = new ArrayList<Pair<Event,Double>...
diff --git a/modules/xml/src/main/java/org/mule/ibeans/module/xml/transformers/JAXBMarshallerTransformer.java b/modules/xml/src/main/java/org/mule/ibeans/module/xml/transformers/JAXBMarshallerTransformer.java index 8e14528..8a24eff 100644 --- a/modules/xml/src/main/java/org/mule/ibeans/module/xml/transformers/JAXBMarsh...
true
true
protected Object doTransform(Object src, String encoding) throws TransformerException { try { final Marshaller m = jaxbContext.createMarshaller(); if (getReturnClass().equals(String.class)) { Writer w = new StringWriter(); m.mar...
protected Object doTransform(Object src, String encoding) throws TransformerException { try { final Marshaller m = jaxbContext.createMarshaller(); if (getReturnClass().equals(String.class)) { Writer w = new StringWriter(); m.mar...
diff --git a/java/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/SALoadbalanceEndpointSerializer.java b/java/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/SALoadbalanceEndpointSerializer.java index 8f92084e5..f8f559fa3 100644 --- a/java/modules/core/src/main/java/org/apache/syna...
true
true
public OMElement serializeEndpoint(Endpoint endpoint) { if (!(endpoint instanceof SALoadbalanceEndpoint)) { handleException("Invalid endpoint type for serializing. " + "Expected: SALoadbalanceEndpoint Found: " + endpoint.getClass().getName()); } SALoadbalanc...
public OMElement serializeEndpoint(Endpoint endpoint) { if (!(endpoint instanceof SALoadbalanceEndpoint)) { handleException("Invalid endpoint type for serializing. " + "Expected: SALoadbalanceEndpoint Found: " + endpoint.getClass().getName()); } SALoadbalanc...
diff --git a/aura/src/test/java/org/auraframework/perfTest/RerenderMarksUITest.java b/aura/src/test/java/org/auraframework/perfTest/RerenderMarksUITest.java index b0dbf152dd..fa03e6160c 100644 --- a/aura/src/test/java/org/auraframework/perfTest/RerenderMarksUITest.java +++ b/aura/src/test/java/org/auraframework/perfTes...
true
true
public void _testRerenderMarksHaveAllComponentNames() throws Exception{ Map<String, String> logStats = Maps.newHashMap(); open("/performanceTest/perfApp.app", Mode.CADENCE); clearStats(); //Mark an attribute as dirty at the root component WebElement button = getDrive...
public void testRerenderMarksHaveAllComponentNames() throws Exception{ Map<String, String> logStats = Maps.newHashMap(); open("/performanceTest/perfApp.app", Mode.CADENCE); clearStats(); //Mark an attribute as dirty at the root component WebElement button = getDriver...
diff --git a/src/main/java/org/mapdb/BTreeMap.java b/src/main/java/org/mapdb/BTreeMap.java index 23043a2b..bf0391ad 100644 --- a/src/main/java/org/mapdb/BTreeMap.java +++ b/src/main/java/org/mapdb/BTreeMap.java @@ -1,2739 +1,2737 @@ /* * Copyright (c) 2012 Jan Kotek * * Licensed under the Apache License, Versi...
true
true
protected V put2(K v, V value2, final boolean putOnlyIfAbsent){ if(v == null) throw new IllegalArgumentException("null key"); if(value2 == null) throw new IllegalArgumentException("null value"); Utils.checkMapValueIsNotCollecion(value2); V value = value2; if(valsOutsideNodes...
protected V put2(K v, V value2, final boolean putOnlyIfAbsent){ if(v == null) throw new IllegalArgumentException("null key"); if(value2 == null) throw new IllegalArgumentException("null value"); Utils.checkMapValueIsNotCollecion(value2); V value = value2; if(valsOutsideNodes...
diff --git a/source/net/sourceforge/texlipse/wizards/TexlipseProjectCreationWizardPage.java b/source/net/sourceforge/texlipse/wizards/TexlipseProjectCreationWizardPage.java index eb3341b..51214e8 100644 --- a/source/net/sourceforge/texlipse/wizards/TexlipseProjectCreationWizardPage.java +++ b/source/net/sourceforge/tex...
false
true
private void createProjectLocationControl(Composite parent) { // create borders Group group = new Group(parent, SWT.NULL); group.setText(TexlipsePlugin.getResourceString("projectWizardLocationTitle")); group.setLayout(new GridLayout()); GridData lgd = new GridData(GridData.F...
private void createProjectLocationControl(Composite parent) { // create borders Group group = new Group(parent, SWT.NULL); group.setText(TexlipsePlugin.getResourceString("projectWizardLocationTitle")); group.setLayout(new GridLayout()); GridData lgd = new GridData(GridData.F...
diff --git a/src/util/FormatterText.java b/src/util/FormatterText.java index 4ef1cec..499f943 100644 --- a/src/util/FormatterText.java +++ b/src/util/FormatterText.java @@ -1,216 +1,221 @@ package util; import com.ebay.services.finding.Amount; import com.ebay.services.finding.SearchItem; import java.text.Simple...
false
true
public static String formatForConsole(List<SearchItem> items, Map<String, Boolean> showOpts, String id, String type) { StringBuilder sb = new StringBuilder(); sb.append(type).append(" (").append(id).append(")").append("\n\n"); for (SearchItem item : items) { for (Map.Entry<Strin...
public static String formatForConsole(List<SearchItem> items, Map<String, Boolean> showOpts, String id, String type) { StringBuilder sb = new StringBuilder(); sb.append(type).append(" (").append(id).append(")").append("\n\n"); for (SearchItem item : items) { for (Map.Entry<Strin...
diff --git a/net.atos.optimus.m2m.engine.parent/net.atos.optimus.m2m.engine.core/src/main/java/net/atos/optimus/m2m/engine/core/masks/PreferencesTransformationMask.java b/net.atos.optimus.m2m.engine.parent/net.atos.optimus.m2m.engine.core/src/main/java/net/atos/optimus/m2m/engine/core/masks/PreferencesTransformationMas...
true
true
public boolean isTransformationEnabled(String id) { String enablementKey = Activator.PLUGIN_ID + ".disabled." + id; return this.preferenceStore.getBoolean(enablementKey); }
public boolean isTransformationEnabled(String id) { String enablementKey = Activator.PLUGIN_ID + ".disabled." + id; return !this.preferenceStore.getBoolean(enablementKey); }
diff --git a/tool/src/java/org/sakaiproject/assignment2/tool/entity/Assignment2SubmissionEntityProvider.java b/tool/src/java/org/sakaiproject/assignment2/tool/entity/Assignment2SubmissionEntityProvider.java index 0285a308..976e6539 100644 --- a/tool/src/java/org/sakaiproject/assignment2/tool/entity/Assignment2Submissio...
true
true
public List<?> getEntities(EntityReference ref, Search search) { Long assignmentId = requestStorage.getStoredValueAsType(Long.class, "asnnid"); DateFormat df = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.SHORT, assignmentBundleLogic.getLocale()); List togo = new ArrayList(...
public List<?> getEntities(EntityReference ref, Search search) { Long assignmentId = requestStorage.getStoredValueAsType(Long.class, "asnnid"); DateFormat df = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.SHORT, assignmentBundleLogic.getLocale()); List togo = new ArrayList(...
diff --git a/workspace-android/BarcodeScanner/src/net/redlinesoft/app/barcodescanner/MainActivity.java b/workspace-android/BarcodeScanner/src/net/redlinesoft/app/barcodescanner/MainActivity.java index d7c1696..8519c9e 100644 --- a/workspace-android/BarcodeScanner/src/net/redlinesoft/app/barcodescanner/MainActivity.java...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Button bntScan = (Button) findViewById(R.id.button1); bntScan.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Activity MainActivity...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Button bntScan = (Button) findViewById(R.id.button1); bntScan.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generate...
diff --git a/lang/java/tools/src/main/java/org/apache/avro/tool/BinaryFragmentToJsonTool.java b/lang/java/tools/src/main/java/org/apache/avro/tool/BinaryFragmentToJsonTool.java index bcb63a42..f2cc5939 100644 --- a/lang/java/tools/src/main/java/org/apache/avro/tool/BinaryFragmentToJsonTool.java +++ b/lang/java/tools/sr...
true
true
public int run(InputStream stdin, PrintStream out, PrintStream err, List<String> args) throws Exception { if (args.size() != 2) { err.println("Expected 1 arguments: schema binary_data_file"); err.println("Use '-' as binary_data_file for stdin."); return 1; } Schema schema = Schema....
public int run(InputStream stdin, PrintStream out, PrintStream err, List<String> args) throws Exception { if (args.size() != 2) { err.println("Expected 2 arguments: schema binary_data_file"); err.println("Use '-' as binary_data_file for stdin."); return 1; } Schema schema = Schema....
diff --git a/src/main/java/hu/sztaki/ilab/longneck/process/task/ProcessWorker.java b/src/main/java/hu/sztaki/ilab/longneck/process/task/ProcessWorker.java index 92e8ba4..6d5656c 100644 --- a/src/main/java/hu/sztaki/ilab/longneck/process/task/ProcessWorker.java +++ b/src/main/java/hu/sztaki/ilab/longneck/process/task/Pr...
true
true
public void run() { // Run parent method super.run(); LOG.info("Starting up."); // Create queue item list List<Record> queueItemList = new ArrayList<Record>(bulkSize); boolean shutdownReceived = false; List<Record> targetRecords = new Array...
public void run() { // Run parent method super.run(); LOG.info("Starting up."); // Create queue item list List<Record> queueItemList = new ArrayList<Record>(bulkSize); boolean shutdownReceived = false; List<Record> targetRecords = new Array...
diff --git a/srcj/com/sun/electric/tool/routing/SimpleWirer.java b/srcj/com/sun/electric/tool/routing/SimpleWirer.java index c3e53f06e..a0ddaffd4 100644 --- a/srcj/com/sun/electric/tool/routing/SimpleWirer.java +++ b/srcj/com/sun/electric/tool/routing/SimpleWirer.java @@ -1,227 +1,227 @@ /* -*- tab-width: 4 -*- * ...
true
true
protected boolean planRoute(Route route, Cell cell, RouteElementPort endRE, Point2D startLoc, Point2D endLoc, Point2D clicked, PolyMerge stayInside, VerticalRoute vroute, boolean contactsOnEndObj, boolean extendArcHead, boolean extendArcTail) { ...
protected boolean planRoute(Route route, Cell cell, RouteElementPort endRE, Point2D startLoc, Point2D endLoc, Point2D clicked, PolyMerge stayInside, VerticalRoute vroute, boolean contactsOnEndObj, boolean extendArcHead, boolean extendArcTail) { ...
diff --git a/src/test/java/org/codehaus/gmavenplus/util/ReflectionUtilsTest.java b/src/test/java/org/codehaus/gmavenplus/util/ReflectionUtilsTest.java index 14276f2a..b49525a2 100644 --- a/src/test/java/org/codehaus/gmavenplus/util/ReflectionUtilsTest.java +++ b/src/test/java/org/codehaus/gmavenplus/util/ReflectionUtil...
true
true
public void testHappyPaths() throws Exception { String expectedString = "some string"; Object test1 = ReflectionUtils.invokeConstructor(ReflectionUtils.findConstructor(TestClass.class)); ReflectionUtils.invokeMethod(ReflectionUtils.findMethod(TestClass.class, "setStringField", String.class),...
public void testHappyPaths() throws Exception { String expectedString = "some string"; Object test1 = ReflectionUtils.invokeConstructor(ReflectionUtils.findConstructor(TestClass.class)); ReflectionUtils.invokeMethod(ReflectionUtils.findMethod(TestClass.class, "setStringField", String.class),...
diff --git a/src/main/java/cn/mobiledaily/web/controller/NewsController.java b/src/main/java/cn/mobiledaily/web/controller/NewsController.java index 483bef0..e052591 100644 --- a/src/main/java/cn/mobiledaily/web/controller/NewsController.java +++ b/src/main/java/cn/mobiledaily/web/controller/NewsController.java @@ -1,1...
true
true
public void saveNews( String pwd, String exKey, String newsKey, MultipartFile icon, String title, MultipartFile content ) { try { if (!securityService.isValidExchangePassword(pwd)) { throw new InvalidValu...
public void saveNews( String pwd, String exKey, String newsKey, MultipartFile icon, String title, MultipartFile content ) { try { if (!securityService.isValidExchangePassword(pwd)) { throw new InvalidValu...
diff --git a/src/com/oresomecraft/maps/arcade/ArcadeMap.java b/src/com/oresomecraft/maps/arcade/ArcadeMap.java index 6a7dd62..c8e5180 100644 --- a/src/com/oresomecraft/maps/arcade/ArcadeMap.java +++ b/src/com/oresomecraft/maps/arcade/ArcadeMap.java @@ -1,45 +1,45 @@ package com.oresomecraft.maps.arcade; import com....
true
true
public void onDamage(EntityDamageByEntityEvent event) { if (!event.getEntity().getWorld().getName().equals(name)) return; if (!damage) return; if (event.getCause().equals(EntityDamageEvent.DamageCause.ENTITY_ATTACK)) event.setCancelled(true); }
public void onDamage(EntityDamageByEntityEvent event) { if (!event.getEntity().getWorld().getName().equals(name)) return; if (damage) return; if (event.getCause().equals(EntityDamageEvent.DamageCause.ENTITY_ATTACK)) event.setCancelled(true); }
diff --git a/King.java b/King.java index 2c4b37a..de68e8f 100644 --- a/King.java +++ b/King.java @@ -1,58 +1,58 @@ public class King extends Piece{ public String color; public boolean hasMoved; public boolean castled; public King(String color){ this.color = color; this.hasMoved = false; this.c...
true
true
public boolean validateMove(Piece[][] board, int currentRow, int currentCol, int newRow, int newCol) { if(Math.abs(newRow - currentRow) > 1 || Math.abs(newCol - currentCol) > 1){ if(hasMoved){ return false; } //Do castling logic here if(newCol - currentCol == 2 && currentRow == newRow){ ...
public boolean validateMove(Piece[][] board, int currentRow, int currentCol, int newRow, int newCol) { if(Math.abs(newRow - currentRow) > 1 || Math.abs(newCol - currentCol) > 1){ if(hasMoved){ return false; } //Do castling logic here if(newCol - currentCol == 2 && currentRow == newRow){ ...
diff --git a/freemind/freemind/view/mindmapview/MapView.java b/freemind/freemind/view/mindmapview/MapView.java index 18970c0..5d302d7 100644 --- a/freemind/freemind/view/mindmapview/MapView.java +++ b/freemind/freemind/view/mindmapview/MapView.java @@ -1,1487 +1,1487 @@ /*FreeMind - A Program for creating and viewing ...
false
true
public MapView( MindMap model, Controller controller ) { super(); this.model = model; this.controller= controller; // initialize the standard colors. if (standardNodeTextColor == null) { try{ String stdcolor = getController().getFrame().getProperty(Fr...
public MapView( MindMap model, Controller controller ) { super(); this.model = model; this.controller= controller; mCenterNodeTimer = new Timer(); // initialize the standard colors. if (standardNodeTextColor == null) { try{ String stdcolor = getC...
diff --git a/src/turkbait/Turkbait.java b/src/turkbait/Turkbait.java index 4b922d9..f2e05b2 100644 --- a/src/turkbait/Turkbait.java +++ b/src/turkbait/Turkbait.java @@ -1,131 +1,132 @@ package turkbait; import java.awt.event.InputEvent; import java.awt.event.KeyEvent; import java.io.File; import java.awt.Robot...
true
true
public static void main(String[] args) { /* Create the robot. */ try { robot = new Robot(); } catch (java.awt.AWTException e) { System.out.println("Could not create Robot."); System.exit(1); return; } while (true) { ...
public static void main(String[] args) { /* Create the robot. */ try { robot = new Robot(); } catch (java.awt.AWTException e) { System.out.println("Could not create Robot."); System.exit(1); return; } robot.setAutoDelay(100); ...
diff --git a/de.hswt.hrm.plant.dao.jdbc/src/de/hswt/hrm/plant/dao/jdbc/PlantDao.java b/de.hswt.hrm.plant.dao.jdbc/src/de/hswt/hrm/plant/dao/jdbc/PlantDao.java index 3a088604..e189fd9e 100644 --- a/de.hswt.hrm.plant.dao.jdbc/src/de/hswt/hrm/plant/dao/jdbc/PlantDao.java +++ b/de.hswt.hrm.plant.dao.jdbc/src/de/hswt/hrm/pl...
true
true
public Plant insert(Plant plant) throws SaveException { final String query = "INSERT INTO Plant (Plant_Place_FK, Plant_Inspection_Interval, " + "Plant_Manufacturer, Plant_Year_Of_Construction, Plant_Type " + "Plant_Airperformance, Plant_Motorpower, Plant_Motor_Rpm, Plant_Vent...
public Plant insert(Plant plant) throws SaveException { final String query = "INSERT INTO Plant (Plant_Place_FK, Plant_Inspection_Interval, " + "Plant_Manufacturer, Plant_Year_Of_Construction, Plant_Type, " + "Plant_Airperformance, Plant_Motorpower, Plant_Motor_Rpm, Plant_Ven...
diff --git a/src/main/java/ee/ignorance/transformiceapi/event/EventService.java b/src/main/java/ee/ignorance/transformiceapi/event/EventService.java index ba7392b..fe69c72 100644 --- a/src/main/java/ee/ignorance/transformiceapi/event/EventService.java +++ b/src/main/java/ee/ignorance/transformiceapi/event/EventService....
true
true
public void notifyListeners(Event e) { synchronized(listeners){ for (EventListener listener : listeners) { if (listener.matches(e)) { listener.actionPerformed(e); } ...
public synchronized void notifyListeners(Event e) { synchronized(listeners){ for (EventListener listener : listeners) { if (listener.matches(e)) { listener.actionPerformed(e); ...
diff --git a/luni/src/test/java/tests/xml/AllTests.java b/luni/src/test/java/tests/xml/AllTests.java index 2e12a59c5..8fd809670 100644 --- a/luni/src/test/java/tests/xml/AllTests.java +++ b/luni/src/test/java/tests/xml/AllTests.java @@ -1,49 +1,48 @@ /* * Copyright (C) 2007 The Android Open Source Project * * Li...
true
true
public static Test suite() { TestSuite suite = new TestSuite(); suite.addTestSuite(DeclarationTest.class); suite.addTestSuite(DomTest.class); suite.addTestSuite(SimpleParserTest.class); suite.addTestSuite(SimpleBuilderTest.class); suite.addTestSuite(NodeTest.class); ...
public static Test suite() { TestSuite suite = new TestSuite(); suite.addTestSuite(DeclarationTest.class); suite.addTestSuite(DomTest.class); suite.addTestSuite(SimpleParserTest.class); suite.addTestSuite(SimpleBuilderTest.class); suite.addTestSuite(NodeTest.class); ...
diff --git a/Alkitab/src/yuku/alkitab/base/IsiActivity.java b/Alkitab/src/yuku/alkitab/base/IsiActivity.java index cd4000a0..cfb1fe0d 100644 --- a/Alkitab/src/yuku/alkitab/base/IsiActivity.java +++ b/Alkitab/src/yuku/alkitab/base/IsiActivity.java @@ -1,2080 +1,2082 @@ package yuku.alkitab.base; import android.annot...
false
true
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == REQCODE_goto) { if (resultCode == RESULT_OK) { GotoActivity.Result result = GotoActivity.obtainResult(data); if (result != null) { // ...
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == REQCODE_goto) { if (resultCode == RESULT_OK) { GotoActivity.Result result = GotoActivity.obtainResult(data); if (result != null) { // ...
diff --git a/Operator/DecOp.java b/Operator/DecOp.java index bef1166..88d5b3c 100644 --- a/Operator/DecOp.java +++ b/Operator/DecOp.java @@ -1,48 +1,52 @@ //--------------------------------------------------------------------- // //--------------------------------------------------------------------- class DecOp ...
true
true
public STO checkOperand(STO operand) { STO resultSTO; // Check #2 - increment, decrement - operand numeric if((!operand.getType().isNumeric()) && (!operand.getType().isPointer())) { return (new ErrorSTO(Formatter.toString(ErrorMsg.error2_Type, operand.getType().g...
public STO checkOperand(STO operand) { STO resultSTO; // Check #2 - increment, decrement - operand numeric if((!operand.getType().isNumeric()) && (!operand.getType().isPointer())) { return (new ErrorSTO(Formatter.toString(ErrorMsg.error2_Type, operand.getType().g...
diff --git a/src/main/java/com/mulesoft/util/ObjectNamesHTMLTransformer.java b/src/main/java/com/mulesoft/util/ObjectNamesHTMLTransformer.java index 794c5af..40baa26 100644 --- a/src/main/java/com/mulesoft/util/ObjectNamesHTMLTransformer.java +++ b/src/main/java/com/mulesoft/util/ObjectNamesHTMLTransformer.java @@ -1,5...
false
true
public Object transformMessage(MuleMessage msg, String encoding) throws TransformerException{ String lPrices = (String)msg.getPayload().toString(); lPrices = lPrices.substring(1,lPrices.length()-1); String sHTML = "<html>" + "<head>" + "<link rel=stylesheet href=http://twitter.github.com/bootst...
public Object transformMessage(MuleMessage msg, String encoding) throws TransformerException{ String lPrices = (String)msg.getPayload().toString(); lPrices = lPrices.substring(1,lPrices.length()-1); String sHTML = "<html>" + "<head>" + "<title>iON - Salesforce Initializer</title>"+ "<lin...
diff --git a/core/src/main/java/hudson/scm/SubversionChangeLogBuilder.java b/core/src/main/java/hudson/scm/SubversionChangeLogBuilder.java index 5ecee3f8c..39eef34a8 100644 --- a/core/src/main/java/hudson/scm/SubversionChangeLogBuilder.java +++ b/core/src/main/java/hudson/scm/SubversionChangeLogBuilder.java @@ -1,196 +...
true
true
private boolean buildModule(String url, SVNLogClient svnlc, SVNXMLLogHandler logHandler) { PrintStream logger = listener.getLogger(); Long prevRev = previousRevisions.get(url); if(prevRev==null) { logger.println("no revision recorded for "+url+" in the previous build"); ...
private boolean buildModule(String url, SVNLogClient svnlc, SVNXMLLogHandler logHandler) { PrintStream logger = listener.getLogger(); Long prevRev = previousRevisions.get(url); if(prevRev==null) { logger.println("no revision recorded for "+url+" in the previous build"); ...
diff --git a/src/com/android/mms/ui/SlideView.java b/src/com/android/mms/ui/SlideView.java index 4d3710b6..5b36b3c7 100644 --- a/src/com/android/mms/ui/SlideView.java +++ b/src/com/android/mms/ui/SlideView.java @@ -1,543 +1,544 @@ /* * Copyright (C) 2008 Esmertec AG. * Copyright (C) 2008 The Android Open Source Pr...
true
true
public void enableMMSConformanceMode(int textLeft, int textTop, int imageLeft, int imageTop) { mConformanceMode = true; if (mScrollViewPort == null) { mScrollViewPort = new ScrollView(mContext) { private int mBottomY; @Override ...
public void enableMMSConformanceMode(int textLeft, int textTop, int imageLeft, int imageTop) { mConformanceMode = true; if (mScrollViewPort == null) { mScrollViewPort = new ScrollView(mContext) { private int mBottomY; @Override ...
diff --git a/src/core/java/org/wyona/yanel/cmdl/YanelCommandLine.java b/src/core/java/org/wyona/yanel/cmdl/YanelCommandLine.java index e7b385a4e..911bb1d58 100644 --- a/src/core/java/org/wyona/yanel/cmdl/YanelCommandLine.java +++ b/src/core/java/org/wyona/yanel/cmdl/YanelCommandLine.java @@ -1,263 +1,263 @@ /* * Cop...
true
true
static public void main(String[] args) throws Exception { System.out.println("Welcome to the Yanel command line interface!\n"); Yanel yanel = Yanel.getInstance(); yanel.init(); Map map = yanel.getMapImpl("map"); ResourceTypeRegistry rtr = new ResourceTypeRegistry(); ...
static public void main(String[] args) throws Exception { System.out.println("Welcome to the Yanel command line interface!\n"); Yanel yanel = Yanel.getInstance(); yanel.init(); Map map = yanel.getMapImpl("map"); ResourceTypeRegistry rtr = new ResourceTypeRegistry(); ...
diff --git a/src/html2windows/dom/AttrInter.java b/src/html2windows/dom/AttrInter.java index c84db98..b54be59 100644 --- a/src/html2windows/dom/AttrInter.java +++ b/src/html2windows/dom/AttrInter.java @@ -1,254 +1,259 @@ package html2windows.dom; import org.w3c.dom.DOMException; import org.w3c.dom.events.Event; imp...
true
true
private void add(int index, Node newChild){ this.specified = true; if(newChild.ownerDocument() != this.ownerDocument()){ throw new DOMException(DOMException.WRONG_DOCUMENT_ERR, "Need import node first"); } switch(newChild.nodeType()){ case TEXT_NODE : { if(newChild.parentNode() == this && childNod...
private void add(int index, Node newChild){ this.specified = true; if(newChild.ownerDocument() != this.ownerDocument()){ throw new DOMException(DOMException.WRONG_DOCUMENT_ERR, "Need import node first"); } switch(newChild.nodeType()){ case TEXT_NODE : { /* * If newChild is a child of this node...
diff --git a/flexodesktop/generators/flexogenerator/src/main/java/org/openflexo/velocity/FlexoVelocityIntrospector.java b/flexodesktop/generators/flexogenerator/src/main/java/org/openflexo/velocity/FlexoVelocityIntrospector.java index 37f63db38..1846e8e84 100644 --- a/flexodesktop/generators/flexogenerator/src/main/jav...
true
true
public VelMethod getMethod(Object obj, String methodName, Object[] args, Info i) throws Exception { if (obj == null) { return null; } // Allow to use the 'magic' methods provided by Velocity on array (ex. get(x)) if (obj instanceof Object[]) { return super.getMethod(obj, methodName, args, i); } Cla...
public VelMethod getMethod(Object obj, String methodName, Object[] args, Info i) throws Exception { if (obj == null) { return null; } // Allow to use the 'magic' methods provided by Velocity on array (ex. get(x)) if (obj instanceof Object[]) { return super.getMethod(obj, methodName, args, i); } Cla...
diff --git a/src/com/sonyericsson/chkbugreport/plugins/logs/LogPlugin.java b/src/com/sonyericsson/chkbugreport/plugins/logs/LogPlugin.java index cb6a589..e8dd524 100644 --- a/src/com/sonyericsson/chkbugreport/plugins/logs/LogPlugin.java +++ b/src/com/sonyericsson/chkbugreport/plugins/logs/LogPlugin.java @@ -1,694 +1,69...
true
true
private boolean generateGCGraph(BugReportModule br, Chapter ch, GCRecords gcs) { int w = 800; int h = 300; int cx = 100; int cy = 250; int gw = 600; int gh = 200; int pid = gcs.get(0).pid; long firstTs = getFirstTs(); long duration = (getLastT...
private boolean generateGCGraph(BugReportModule br, Chapter ch, GCRecords gcs) { int w = 800; int h = 300; int cx = 100; int cy = 250; int gw = 600; int gh = 200; int pid = gcs.get(0).pid; long firstTs = getFirstTs(); long duration = (getLastT...
diff --git a/luaj-vm/src/core/org/luaj/vm/LThread.java b/luaj-vm/src/core/org/luaj/vm/LThread.java index 4b56cbb..2b3ddae 100644 --- a/luaj-vm/src/core/org/luaj/vm/LThread.java +++ b/luaj-vm/src/core/org/luaj/vm/LThread.java @@ -1,168 +1,169 @@ /*************************************************************************...
false
true
public void resumeFrom(LuaState vm, int nargs) { synchronized ( this ) { if ( status == STATUS_DEAD ) { vm.resettop(); vm.pushboolean(false); vm.pushstring("cannot resume dead coroutine"); return; } // set prior thread to normal status while we are running LThread prior = running; ...
public void resumeFrom(LuaState vm, int nargs) { synchronized ( this ) { if ( status == STATUS_DEAD ) { vm.resettop(); vm.pushboolean(false); vm.pushstring("cannot resume dead coroutine"); return; } // set prior thread to normal status while we are running LThread prior = running; ...
diff --git a/dropwizard-extra-core/src/main/java/com/datasift/dropwizard/bundles/GraphiteReportingBundle.java b/dropwizard-extra-core/src/main/java/com/datasift/dropwizard/bundles/GraphiteReportingBundle.java index 669d41b..392f06a 100644 --- a/dropwizard-extra-core/src/main/java/com/datasift/dropwizard/bundles/Graphit...
true
true
public void initialize(final GraphiteReportingConfiguration conf, final Environment env) { if (conf.getGraphite().getEnabled()) { log.info("Reporting metrics to Graphite at {}:{}, every {} seconds", conf.getGraphite().getHost(), ...
public void initialize(final GraphiteReportingConfiguration conf, final Environment env) { if (conf.getGraphite().getEnabled()) { log.info("Reporting metrics to Graphite at {}:{}, every {}", conf.getGraphite().getHost(), conf.get...
diff --git a/E-Adventure/src/es/eucm/eadventure/engine/core/control/functionaldata/FunctionalConditions.java b/E-Adventure/src/es/eucm/eadventure/engine/core/control/functionaldata/FunctionalConditions.java index f554f12f..a334917d 100644 --- a/E-Adventure/src/es/eucm/eadventure/engine/core/control/functionaldata/Funct...
true
true
private boolean evaluateSimpleConditionsWithAND( ) { boolean evaluation = true; FlagSummary flags = Game.getInstance( ).getFlags( ); VarSummary vars = Game.getInstance( ).getVars( ); for( Condition condition : conditions.getSimpleConditions( ) ) { if( evaluation ) { ...
private boolean evaluateSimpleConditionsWithAND( ) { boolean evaluation = true; FlagSummary flags = Game.getInstance( ).getFlags( ); VarSummary vars = Game.getInstance( ).getVars( ); for( Condition condition : conditions.getSimpleConditions( ) ) { if( evaluation ) { ...
diff --git a/ps3mediaserver/net/pms/encoders/MPlayerAudio.java b/ps3mediaserver/net/pms/encoders/MPlayerAudio.java index 73b93032..208ca701 100644 --- a/ps3mediaserver/net/pms/encoders/MPlayerAudio.java +++ b/ps3mediaserver/net/pms/encoders/MPlayerAudio.java @@ -1,191 +1,192 @@ /* * PS3 Media Server, for streaming a...
true
true
public ProcessWrapper launchTranscode( String fileName, DLNAResource dlna, DLNAMediaInfo media, OutputParams params) throws IOException { if (!(this instanceof MPlayerWebAudio) && !(this instanceof MPlayerWebVideoDump)) { params.waitbeforestart = 2000; } params.manageFastStart(); if (params.mediaR...
public ProcessWrapper launchTranscode( String fileName, DLNAResource dlna, DLNAMediaInfo media, OutputParams params) throws IOException { if (!(this instanceof MPlayerWebAudio) && !(this instanceof MPlayerWebVideoDump)) { params.waitbeforestart = 2000; } params.manageFastStart(); if (params.mediaR...
diff --git a/src/main/java/grisu/gricli/command/LocalLoginCommand.java b/src/main/java/grisu/gricli/command/LocalLoginCommand.java index b6a4721..c95227c 100644 --- a/src/main/java/grisu/gricli/command/LocalLoginCommand.java +++ b/src/main/java/grisu/gricli/command/LocalLoginCommand.java @@ -1,37 +1,38 @@ package gris...
true
true
public GricliEnvironment execute(GricliEnvironment env) throws GricliRuntimeException { try { if (siUrl == null) { siUrl = env.getServiceInterfaceUrl(); } final ServiceInterface serviceInterface = LoginManager.login(siUrl); return InteractiveLoginCommand.login(env, serviceInterface); } catch (...
public GricliEnvironment execute(GricliEnvironment env) throws GricliRuntimeException { try { if (siUrl == null) { siUrl = env.getServiceInterfaceUrl(); } final ServiceInterface serviceInterface = LoginManager .loginCommandline(siUrl); return InteractiveLoginCommand.login(env, serviceInterfa...
diff --git a/client/src/main/java/com/nesscomputing/httpclient/response/StreamedJsonContentConverter.java b/client/src/main/java/com/nesscomputing/httpclient/response/StreamedJsonContentConverter.java index a5a2dfa..cebc0d5 100644 --- a/client/src/main/java/com/nesscomputing/httpclient/response/StreamedJsonContentConve...
true
true
public Void convert(final HttpClientResponse response, final InputStream inputStream) throws IOException { switch(response.getStatusCode()) { case 201: case 204: LOG.debug("Return code is %d, finishing.", response.getStatusCode()); return null; ...
public Void convert(final HttpClientResponse response, final InputStream inputStream) throws IOException { switch(response.getStatusCode()) { case 201: case 204: LOG.debug("Return code is %d, finishing.", response.getStatusCode()); return null; ...
diff --git a/source/de/anomic/plasma/plasmaSearchRankingProcess.java b/source/de/anomic/plasma/plasmaSearchRankingProcess.java index 079845643..3a8cce781 100644 --- a/source/de/anomic/plasma/plasmaSearchRankingProcess.java +++ b/source/de/anomic/plasma/plasmaSearchRankingProcess.java @@ -1,481 +1,483 @@ // plasmaSearc...
true
true
public void insertRanked(indexContainer index, boolean local, int fullResource) { // we collect the urlhashes and construct a list with urlEntry objects // attention: if minEntries is too high, this method will not terminate within the maxTime assert (index != null); if (index.size(...
public void insertRanked(indexContainer index, boolean local, int fullResource) { // we collect the urlhashes and construct a list with urlEntry objects // attention: if minEntries is too high, this method will not terminate within the maxTime assert (index != null); if (index.size(...
diff --git a/src/main/java/com/bennight/serializers/SimpleFeatureTest.java b/src/main/java/com/bennight/serializers/SimpleFeatureTest.java index 076f1ef..283a961 100644 --- a/src/main/java/com/bennight/serializers/SimpleFeatureTest.java +++ b/src/main/java/com/bennight/serializers/SimpleFeatureTest.java @@ -1,48 +1,48 ...
true
true
public List<byte[]> Serialize(List<SimpleFeature> features) { StringBuilder sb = new StringBuilder(); for (SimpleFeature f : features){ //sb.append(DataUtilities.encodeFeature(f)); sb.append("c_03de13.1=MULTIPOLYGON (((-171.04048645299997 -11.082452137999951, -171.03939819299998 -11.083986281999955, -171....
public List<byte[]> Serialize(List<SimpleFeature> features) { StringBuilder sb = new StringBuilder(); for (SimpleFeature f : features){ sb.append(DataUtilities.encodeFeature(f)); //sb.append("c_03de13.1=MULTIPOLYGON (((-171.04048645299997 -11.082452137999951, -171.03939819299998 -11.083986281999955, -171....
diff --git a/src/org/hyperic/hq/hqapi1/tools/Command.java b/src/org/hyperic/hq/hqapi1/tools/Command.java index 371634f..f343f84 100644 --- a/src/org/hyperic/hq/hqapi1/tools/Command.java +++ b/src/org/hyperic/hq/hqapi1/tools/Command.java @@ -1,183 +1,183 @@ package org.hyperic.hq.hqapi1.tools; import joptsimple.Opti...
true
true
protected HQApi getApi(OptionSet s) { Properties clientProps = getClientProperties(); String host = (String)s.valueOf(OPT_HOST); if (host == null) { host = clientProps.getProperty(OPT_HOST); } Integer port; if (s.hasArgument(OPT_PORT)) { por...
protected HQApi getApi(OptionSet s) { Properties clientProps = getClientProperties(); String host = (String)s.valueOf(OPT_HOST); if (host == null) { host = clientProps.getProperty(OPT_HOST); } Integer port; if (s.hasArgument(OPT_PORT)) { por...
diff --git a/ev/evplugin/imageset/EvImageJAI.java b/ev/evplugin/imageset/EvImageJAI.java index ebab50ab..0f8ee0ab 100755 --- a/ev/evplugin/imageset/EvImageJAI.java +++ b/ev/evplugin/imageset/EvImageJAI.java @@ -1,173 +1,173 @@ package evplugin.imageset; import javax.imageio.*; //import javax.vecmath.Vector2d; i...
true
true
public BufferedImage loadJavaImage() { try { File file=new File(filename); if(!file.exists()) return null; else { String fname=file.getName(); fname=fname.substring(fname.lastIndexOf(".")+1); if(slice==-1 && (fname.equals("tif") || fname.equals("tiff"))) //ImageIO failed on a .tif ...
public BufferedImage loadJavaImage() { try { File file=new File(filename); if(!file.exists()) return null; else { String fname=file.getName(); fname=fname.substring(fname.lastIndexOf(".")+1); if(slice==-1 && (fname.equals("tif") || fname.equals("tiff"))) //ImageIO failed on a .tif ...
diff --git a/src/sphinx4/edu/cmu/sphinx/util/props/test/ConfigurationManagerTest.java b/src/sphinx4/edu/cmu/sphinx/util/props/test/ConfigurationManagerTest.java index ebe8a257..ec51898c 100644 --- a/src/sphinx4/edu/cmu/sphinx/util/props/test/ConfigurationManagerTest.java +++ b/src/sphinx4/edu/cmu/sphinx/util/props/test...
true
true
public void testXmlExtendedConfiguration() { ConfigurationManager cm = new ConfigurationManager("../../sphinx4/tests/other/extendconfig.sxl"); String instanceName = "duco"; Assert.assertTrue(cm.getPropertySheet(instanceName) != null); Assert.assertTrue(cm.lookup(instanceName) != nul...
public void testXmlExtendedConfiguration() { ConfigurationManager cm = new ConfigurationManager("../tests/other/extendconfig.sxl"); String instanceName = "duco"; Assert.assertTrue(cm.getPropertySheet(instanceName) != null); Assert.assertTrue(cm.lookup(instanceName) != null); ...