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/c/YetiCode.java b/c/YetiCode.java index 6b789ea..ac81897 100644 --- a/c/YetiCode.java +++ b/c/YetiCode.java @@ -1,2129 +1,2131 @@ // ex: se sts=4 sw=4 expandtab: /* * Yeti language compiler java bytecode generator. * * Copyright (c) 2007,2008,2009,2010 Madis Janson * All rights reserved. * ...
false
true
YType compile(String sourceName, String name, char[] code, int flags) throws Exception { if (definedClasses.containsKey(name)) { throw new RuntimeException(definedClasses.get(name) == null ? "Circular module dependency: " + name : "Duplic...
YType compile(String sourceName, String name, char[] code, int flags) throws Exception { if (definedClasses.containsKey(name)) { throw new RuntimeException(definedClasses.get(name) == null ? "Circular module dependency: " + name : "Duplic...
diff --git a/src/platform/android/src/net/sourceforge/smallbasic/MainActivity.java b/src/platform/android/src/net/sourceforge/smallbasic/MainActivity.java index b82761a9..470708cb 100644 --- a/src/platform/android/src/net/sourceforge/smallbasic/MainActivity.java +++ b/src/platform/android/src/net/sourceforge/smallbasic...
true
true
public void optionsBox(final String[] items) { final Activity activity = this; runOnUiThread(new Runnable() { public void run() { AlertDialog.Builder builder = new AlertDialog.Builder(activity); builder.setItems(items, new DialogInterface.OnClickListener() { @Override ...
public void optionsBox(final String[] items) { final Activity activity = this; runOnUiThread(new Runnable() { public void run() { AlertDialog.Builder builder = new AlertDialog.Builder(activity); builder.setItems(items, new DialogInterface.OnClickListener() { @Override ...
diff --git a/src/com/android/mms/data/Contact.java b/src/com/android/mms/data/Contact.java index f1c6bc1..2d725f0 100644 --- a/src/com/android/mms/data/Contact.java +++ b/src/com/android/mms/data/Contact.java @@ -1,488 +1,490 @@ package com.android.mms.data; import java.util.ArrayList; import java.util.HashSet; i...
true
true
private static void updateContact(final Contact c) { if (c == null) { return; } ContactInfoCache cache = ContactInfoCache.getInstance(); ContactInfoCache.CacheEntry entry = cache.getContactInfo(c.mNumber); synchronized (Cache.getInstance()) { if (cont...
private static void updateContact(final Contact c) { if (c == null) { return; } ContactInfoCache cache = ContactInfoCache.getInstance(); ContactInfoCache.CacheEntry entry = cache.getContactInfo(c.mNumber); synchronized (Cache.getInstance()) { if (cont...
diff --git a/src/main/java/de/cismet/cids/custom/objectrenderer/wunda_blau/AlkisLandparcelRenderer.java b/src/main/java/de/cismet/cids/custom/objectrenderer/wunda_blau/AlkisLandparcelRenderer.java index c42b986d..195d63b3 100644 --- a/src/main/java/de/cismet/cids/custom/objectrenderer/wunda_blau/AlkisLandparcelRenderer...
false
true
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; bindingGroup = new org.jdesktop.beansbinding.BindingGroup(); panTitle = new javax.swing.JPanel(); lblTitle = new javax.swing.JLabel(); blWait = new org.jdesktop.swingx.JXBusyLabel(); panF...
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; bindingGroup = new org.jdesktop.beansbinding.BindingGroup(); panTitle = new javax.swing.JPanel(); lblTitle = new javax.swing.JLabel(); blWait = new org.jdesktop.swingx.JXBusyLabel(); panF...
diff --git a/nifty-renderer-slick/src/main/java/de/lessvoid/nifty/slick2d/render/font/loader/AngelCodeSlickRenderFontLoader.java b/nifty-renderer-slick/src/main/java/de/lessvoid/nifty/slick2d/render/font/loader/AngelCodeSlickRenderFontLoader.java index 4870114f..bcfaed07 100644 --- a/nifty-renderer-slick/src/main/java/...
true
true
public SlickRenderFont loadFont(final Graphics g, final String filename) throws SlickLoadFontException { final String definition = filename.substring(0, filename.lastIndexOf('.') + 1) + "fnt"; try { return new AngelCodeSlickRenderFont(new AngelCodeFont(filename, definition)); } catch (final SlickLo...
public SlickRenderFont loadFont(final Graphics g, final String filename) throws SlickLoadFontException { final String definition = filename.substring(0, filename.lastIndexOf('.') + 1) + "fnt"; try { return new AngelCodeSlickRenderFont(new AngelCodeFont(definition, filename)); } catch (final SlickLo...
diff --git a/StatMagic/src/com/techtalk4geeks/blogspot/MainActivity.java b/StatMagic/src/com/techtalk4geeks/blogspot/MainActivity.java index c99c4b7..200c5c8 100644 --- a/StatMagic/src/com/techtalk4geeks/blogspot/MainActivity.java +++ b/StatMagic/src/com/techtalk4geeks/blogspot/MainActivity.java @@ -1,111 +1,111 @@ p...
false
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.setup); // myDatePicker = ((DatePicker)findViewById(R.id.typeSelecter)); Button doneButton = (Button) this.findViewById(R.id.done_button); doneButton.setOnClickListener(new View.OnClickListener() ...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.setup); // myDatePicker = ((DatePicker)findViewById(R.id.typeSelecter)); Button doneButton = (Button) this.findViewById(R.id.done_button); doneButton.setOnClickListener(new View.OnClickListener() ...
diff --git a/src/org/daxplore/presenter/admin/AdminEntryPoint.java b/src/org/daxplore/presenter/admin/AdminEntryPoint.java index 9ac8396..1256d49 100644 --- a/src/org/daxplore/presenter/admin/AdminEntryPoint.java +++ b/src/org/daxplore/presenter/admin/AdminEntryPoint.java @@ -1,36 +1,36 @@ /** * This file is part o...
true
true
public void onModuleLoad() { AdminInjector injector = GWT.create(AdminInjector.class); AdminController adminController = injector.getAdminController(); adminController.go(RootPanel.get()); }
public void onModuleLoad() { AdminInjector injector = GWT.create(AdminInjector.class); AdminController adminController = injector.getAdminController(); adminController.go(RootPanel.get("ID-AdminPanel")); }
diff --git a/edu/mit/wi/haploview/DPrimeDisplay.java b/edu/mit/wi/haploview/DPrimeDisplay.java index 5f9e11b..961629b 100644 --- a/edu/mit/wi/haploview/DPrimeDisplay.java +++ b/edu/mit/wi/haploview/DPrimeDisplay.java @@ -1,544 +1,544 @@ package edu.mit.wi.haploview; import java.awt.*; import java.awt.geom.GeneralP...
false
true
public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; Dimension size = getSize(); Dimension pref = getPreferredSize(); Rectangle visRect = getVisibleRect(); /* boxSize = ((clipRect.width-2*H_BORDER)/dPrimeTable.length-1); if (boxSize < 12){bo...
public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; Dimension size = getSize(); Dimension pref = getPreferredSize(); Rectangle visRect = getVisibleRect(); /* boxSize = ((clipRect.width-2*H_BORDER)/dPrimeTable.length-1); if (boxSize < 12){bo...
diff --git a/deegree-core/deegree-core-commons/src/main/java/org/deegree/commons/xml/XMLAdapter.java b/deegree-core/deegree-core-commons/src/main/java/org/deegree/commons/xml/XMLAdapter.java index 3c0a05776a..66760891ed 100644 --- a/deegree-core/deegree-core-commons/src/main/java/org/deegree/commons/xml/XMLAdapter.java...
false
true
public static void writeElement( XMLStreamWriter writer, XMLStreamReader inStream ) throws XMLStreamException { if ( inStream.getEventType() != XMLStreamConstants.START_ELEMENT ) { throw new XMLStreamException( "Input stream does not point to a START_ELEMENT event." ...
public static void writeElement( XMLStreamWriter writer, XMLStreamReader inStream ) throws XMLStreamException { if ( inStream.getEventType() != XMLStreamConstants.START_ELEMENT ) { throw new XMLStreamException( "Input stream does not point to a START_ELEMENT event." ...
diff --git a/batch-layer/src/main/java/be/raildelays/batch/reader/DatabaseDatesItemReader.java b/batch-layer/src/main/java/be/raildelays/batch/reader/DatabaseDatesItemReader.java index 0fcf62ac..a6dfbdaa 100644 --- a/batch-layer/src/main/java/be/raildelays/batch/reader/DatabaseDatesItemReader.java +++ b/batch-layer/src...
true
true
protected Date doRead() throws Exception { Date result = null; if (getCurrentItemCount() < dates.size()) { result = dates.get(getCurrentItemCount()); LOGGER.debug("Reading one more date={}", result); } return result; }
protected Date doRead() throws Exception { Date result = null; if (getCurrentItemCount() < dates.size()) { result = dates.get(getCurrentItemCount()-1); LOGGER.debug("Reading one more date={}", result); } return result; }
diff --git a/src/main/java/com/twistlet/falcon/controller/ListPatronController.java b/src/main/java/com/twistlet/falcon/controller/ListPatronController.java index fad8f70..6d0fd45 100644 --- a/src/main/java/com/twistlet/falcon/controller/ListPatronController.java +++ b/src/main/java/com/twistlet/falcon/controller/ListP...
false
true
public List<List<Object>> validateNricAndPhone(final HttpServletRequest request){ List<Object> item = new ArrayList<>(); List<List<Object>> response = new ArrayList<>(); String responseString = ""; String theNric = request.getParameter("falconUserByPatron.nric"); String thePhone = request.getParameter("falco...
public List<List<Object>> validateNricAndPhone(final HttpServletRequest request){ List<Object> item = new ArrayList<>(); List<List<Object>> response = new ArrayList<>(); String responseString = ""; String username = request.getParameter("falconUserByPatron.username"); String theNric = request.getParameter("f...
diff --git a/swag49/swag49.processing/src/main/java/swag49/statistics/StatisticCalculatorBase.java b/swag49/swag49.processing/src/main/java/swag49/statistics/StatisticCalculatorBase.java index 4518f72..205df3d 100644 --- a/swag49/swag49.processing/src/main/java/swag49/statistics/StatisticCalculatorBase.java +++ b/swag4...
true
true
public void calculate() { log.info("Calculation of {} started (limit: {}).", getStatisticName(), limit); Statistic statistic = new Statistic(); statistic.setName(getStatisticName()); statistic.setEntries(null); Collection<Statistic> statistics = statisticDAO.queryByExample(s...
public void calculate() { log.info("Calculation of {} started (limit: {}).", getStatisticName(), limit); Statistic statistic = new Statistic(); statistic.setName(getStatisticName()); Collection<Statistic> statistics = statisticDAO.queryByExample(statistic); assert statistics...
diff --git a/openFaces/source/org/openfaces/taglib/internal/AbstractUIInputTag.java b/openFaces/source/org/openfaces/taglib/internal/AbstractUIInputTag.java index fbdf814e8..7da9e41de 100644 --- a/openFaces/source/org/openfaces/taglib/internal/AbstractUIInputTag.java +++ b/openFaces/source/org/openfaces/taglib/internal...
true
true
public void setComponentProperties(FacesContext facesContext, UIComponent component) { super.setComponentProperties(facesContext, component); if (isAutomaticValueAttributeHandling()) setNumberProperty(component, "value"); UIInput uiInput = (UIInput) component; setValid...
public void setComponentProperties(FacesContext facesContext, UIComponent component) { super.setComponentProperties(facesContext, component); if (isAutomaticValueAttributeHandling()) setObjectProperty(component, "value"); UIInput uiInput = (UIInput) component; setValid...
diff --git a/samples/simple-dataset/app/models/Computer.java b/samples/simple-dataset/app/models/Computer.java index 19dbe24c4..1ab823426 100644 --- a/samples/simple-dataset/app/models/Computer.java +++ b/samples/simple-dataset/app/models/Computer.java @@ -1,57 +1,57 @@ package models; import java.util.*; import j...
true
true
public static Page page(int page, int pageSize, String sortBy, String order, String filter) { return find.where() .ilike("name", "%" + filter + "%") .orderBy(sortBy + " " + order) .fetch("company") .findPagingList(pageSize) ...
public static Page page(int page, int pageSize, String sortBy, String order, String filter) { return find.where() .ilike("name", "%" + filter + "%") .orderBy(sortBy + " " + order) .join("company") .findPagingList(pageSize) ...
diff --git a/src/main/java/com/github/rnewson/couchdb/lucene/ViewIndexer.java b/src/main/java/com/github/rnewson/couchdb/lucene/ViewIndexer.java index 035fdec..ab4727d 100644 --- a/src/main/java/com/github/rnewson/couchdb/lucene/ViewIndexer.java +++ b/src/main/java/com/github/rnewson/couchdb/lucene/ViewIndexer.java @@ ...
true
true
public Void handleResponse(final HttpResponse response) { try { final HttpEntity entity = response.getEntity(); final BufferedReader reader = new BufferedReader(new InputStreamReader(entity.getContent(), "UTF-8")); String line; loop: wh...
public Void handleResponse(final HttpResponse response) { try { final HttpEntity entity = response.getEntity(); final BufferedReader reader = new BufferedReader(new InputStreamReader(entity.getContent(), "UTF-8")); String line; loop: wh...
diff --git a/src/org/eclipse/core/internal/resources/Workspace.java b/src/org/eclipse/core/internal/resources/Workspace.java index 6736b927..cd777e70 100644 --- a/src/org/eclipse/core/internal/resources/Workspace.java +++ b/src/org/eclipse/core/internal/resources/Workspace.java @@ -1,2185 +1,2185 @@ /*****************...
false
true
protected void copyTree(IResource source, IPath destination, int depth, int updateFlags, boolean keepSyncInfo, boolean moveResources, boolean movingProject) throws CoreException { // retrieve the resource at the destination if there is one (phantoms included). // if there isn't one, then create a new ha...
private void copyTree(IResource source, IPath destination, int depth, int updateFlags, boolean keepSyncInfo, boolean moveResources, boolean movingProject) throws CoreException { // retrieve the resource at the destination if there is one (phantoms included). // if there isn't one, then create a new hand...
diff --git a/com.sap.core.odata.processor/src/main/java/com/sap/core/odata/processor/jpa/model/JPAEdmProperty.java b/com.sap.core.odata.processor/src/main/java/com/sap/core/odata/processor/jpa/model/JPAEdmProperty.java index c07d1e448..3679ed824 100644 --- a/com.sap.core.odata.processor/src/main/java/com/sap/core/odata...
true
true
public void build() throws ODataJPAModelException { JPAEdmBuilder keyViewBuilder = null; properties = new ArrayList<Property>(); Set<?> jpaAttributes = null; if (isBuildModeComplexType) { jpaAttributes = complexTypeView.getJPAEmbeddableType() .getAttributes(); } else { jpaAttributes ...
public void build() throws ODataJPAModelException { JPAEdmBuilder keyViewBuilder = null; properties = new ArrayList<Property>(); Set<?> jpaAttributes = null; if (isBuildModeComplexType) { jpaAttributes = complexTypeView.getJPAEmbeddableType() .getAttributes(); } else { jpaAttributes ...
diff --git a/com/gallery/GalleryRemote/util/PostChangeLog.java b/com/gallery/GalleryRemote/util/PostChangeLog.java index a16cfb4..d6a6463 100644 --- a/com/gallery/GalleryRemote/util/PostChangeLog.java +++ b/com/gallery/GalleryRemote/util/PostChangeLog.java @@ -1,162 +1,162 @@ package com.gallery.GalleryRemote.util; ...
true
true
public void execute() throws BuildException { PropertiesFile changeProps = new PropertiesFile("postchangelog"); PropertiesFile defaultProps = new PropertiesFile("defaults"); // should we even be doing this? boolean active = changeProps.getBooleanProperty("active"); if (!active) { System.out.println("Not ...
public void execute() throws BuildException { PropertiesFile changeProps = new PropertiesFile("postchangelog"); PropertiesFile defaultProps = new PropertiesFile("defaults"); // should we even be doing this? boolean active = changeProps.getBooleanProperty("active", false); if (!active) { System.out.printl...
diff --git a/services/java/com/android/server/AppWidgetService.java b/services/java/com/android/server/AppWidgetService.java index 78db6f93..5439f8be 100644 --- a/services/java/com/android/server/AppWidgetService.java +++ b/services/java/com/android/server/AppWidgetService.java @@ -1,1189 +1,1188 @@ /* * Copyright (...
true
true
void readStateFromFileLocked(File file) { FileInputStream stream = null; boolean success = false; try { stream = new FileInputStream(file); XmlPullParser parser = Xml.newPullParser(); parser.setInput(stream, null); int type; int ...
void readStateFromFileLocked(File file) { FileInputStream stream = null; boolean success = false; try { stream = new FileInputStream(file); XmlPullParser parser = Xml.newPullParser(); parser.setInput(stream, null); int type; int ...
diff --git a/mod/jodd/src/jodd/bean/loader/MapBeanLoader.java b/mod/jodd/src/jodd/bean/loader/MapBeanLoader.java index 6f4064c7f..e1d090d2c 100644 --- a/mod/jodd/src/jodd/bean/loader/MapBeanLoader.java +++ b/mod/jodd/src/jodd/bean/loader/MapBeanLoader.java @@ -1,35 +1,35 @@ // Copyright (c) 2003-2010, Jodd Team (jodd....
true
true
public static void loadBean(Object bean, Object map) { if (map instanceof Map) { for (Object o : ((Map) map).keySet()) { String propertyName = (String) o; Object propertyValue = ((Map) map).get(propertyName); if (propertyValue == null) { return; } BeanUtil.setPropertyForcedSilent(bean, pr...
public static void loadBean(Object bean, Object map) { if (map instanceof Map) { for (Object o : ((Map) map).keySet()) { String propertyName = (String) o; Object propertyValue = ((Map) map).get(propertyName); if (propertyValue == null) { continue; } BeanUtil.setPropertyForcedSilent(bean, ...
diff --git a/src/main/java/fi/csc/microarray/client/workflow/WorkflowManager.java b/src/main/java/fi/csc/microarray/client/workflow/WorkflowManager.java index 41db9a8ca..2361dc012 100644 --- a/src/main/java/fi/csc/microarray/client/workflow/WorkflowManager.java +++ b/src/main/java/fi/csc/microarray/client/workflow/Work...
true
true
public void runScript(final URL workflowUrl, final AtEndListener listener) { Runnable runnable = new Runnable() { public void run() { BufferedReader in = null; boolean success = false; try { in = new BufferedReader(new InputStreamReader(workflowUrl.openConnection().getInputStream())); ...
public void runScript(final URL workflowUrl, final AtEndListener listener) { Runnable runnable = new Runnable() { public void run() { BufferedReader in = null; boolean success = false; try { in = new BufferedReader(new InputStreamReader(workflowUrl.openConnection().getInputStream())); ...
diff --git a/src/com/android/music/MediaPlaybackService.java b/src/com/android/music/MediaPlaybackService.java index ed94634..5444ee9 100644 --- a/src/com/android/music/MediaPlaybackService.java +++ b/src/com/android/music/MediaPlaybackService.java @@ -1,1917 +1,1921 @@ /* * Copyright (C) 2007 The Android Open Sourc...
true
true
private void reloadQueue() { String q = null; boolean newstyle = false; int id = mCardId; if (mPreferences.contains("cardid")) { newstyle = true; id = mPreferences.getInt("cardid", ~mCardId); } if (id == mCardId) { // Only ...
private void reloadQueue() { String q = null; boolean newstyle = false; int id = mCardId; if (mPreferences.contains("cardid")) { newstyle = true; id = mPreferences.getInt("cardid", ~mCardId); } if (id == mCardId) { // Only ...
diff --git a/src/main/java/org/guiceae/util/GuiceConfig.java b/src/main/java/org/guiceae/util/GuiceConfig.java index 4b57894..87554e3 100644 --- a/src/main/java/org/guiceae/util/GuiceConfig.java +++ b/src/main/java/org/guiceae/util/GuiceConfig.java @@ -1,48 +1,48 @@ package org.guiceae.util; import com.google.injec...
true
true
protected Injector getInjector() { final Map<String, String> params = new HashMap<String, String>(); params.put("javax.ws.rs.Application", "org.guiceae.util.JaxrsControllersConfig"); params.put(JSONConfiguration.FEATURE_POJO_MAPPING,"true"); params.put("com.sun.jersey.config.propert...
protected Injector getInjector() { final Map<String, String> params = new HashMap<String, String>(); params.put("javax.ws.rs.Application", JaxrsControllersConfig.class.getName()); params.put(JSONConfiguration.FEATURE_POJO_MAPPING,"true"); params.put("com.sun.jersey.config.property.J...
diff --git a/project-set/commons/utilities/src/test/java/com/rackspace/papi/commons/util/regex/KeyedRegexExtractorTest.java b/project-set/commons/utilities/src/test/java/com/rackspace/papi/commons/util/regex/KeyedRegexExtractorTest.java index 17e48c2363..01aa6d159a 100644 --- a/project-set/commons/utilities/src/test/ja...
true
true
public void shouldCaptureUserWithNegativeId(){ final KeyedRegexExtractor<Object> extractor = new KeyedRegexExtractor<Object>(); final Object expectedKey = new Object(); final String pattern = ".*/servers/([-|\\w]+)/.*"; extractor.addPattern(pattern, expectedKey); ...
public void shouldCaptureUserWithNegativeId(){ final KeyedRegexExtractor<Object> extractor = new KeyedRegexExtractor<Object>(); final Object expectedKey = new Object(); final String pattern = ".*/servers/([-|\\w]+)/?.*"; extractor.addPattern(pattern, expectedKey); ...
diff --git a/src/scratchpad/src/org/apache/poi/hdgf/streams/ChunkStream.java b/src/scratchpad/src/org/apache/poi/hdgf/streams/ChunkStream.java index 0f7a92da9..34399ee50 100644 --- a/src/scratchpad/src/org/apache/poi/hdgf/streams/ChunkStream.java +++ b/src/scratchpad/src/org/apache/poi/hdgf/streams/ChunkStream.java @@ ...
false
true
public void findChunks() { ArrayList chunksA = new ArrayList(); if(getPointer().getOffset() == 0x64b3) { int i = 0; i++; } int pos = 0; byte[] contents = getStore().getContents(); while(pos < contents.length) { // Ensure we have enough data to create a chunk from int headerSize = ChunkHeader....
public void findChunks() { ArrayList<Chunk> chunksA = new ArrayList<Chunk>(); if(getPointer().getOffset() == 0x64b3) { int i = 0; i++; } int pos = 0; byte[] contents = getStore().getContents(); while(pos < contents.length) { // Ensure we have enough data to create a chunk from int headerSize ...
diff --git a/Log4jInitializer.java b/Log4jInitializer.java index 9c76399..4faacaf 100644 --- a/Log4jInitializer.java +++ b/Log4jInitializer.java @@ -1,63 +1,64 @@ import java.io.IOException; import java.net.URL; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.http....
true
true
public void init(ServletConfig config) throws ServletException { String env = System.getenv("MY_ENVIRONMENT_VARIABLE"); URL log4jConfig = Loader.getResource("log4j-" + env + ".properties"); PropertyConfigurator.configureAndWatch(log4jConfig.getFile().substring(1), 60 * 1000); }
public void init(ServletConfig config) throws ServletException { String env = System.getenv("MY_ENVIRONMENT_VARIABLE"); URL log4jConfig = Loader.getResource("log4j-" + env + ".properties"); LogManager.resetConfiguration(); PropertyConfigurator.configureAndWatch(new File(log4jConfig.getFile()).getAbsolutePath(...
diff --git a/common/src/main/java/de/escidoc/core/common/util/stax/handler/RelsExtContentRelationsReadHandler.java b/common/src/main/java/de/escidoc/core/common/util/stax/handler/RelsExtContentRelationsReadHandler.java index 6b299eb19..7fa54087e 100644 --- a/common/src/main/java/de/escidoc/core/common/util/stax/handler...
false
true
public StartElement startElement(StartElement element) throws WebserverSystemException { String curPath = parser.getCurPath(); if (curPath.equals(path)) { inRdf = true; } if (inRdf) { if (element.getPrefix().equals( Constants.CONTENT_...
public StartElement startElement(StartElement element) throws WebserverSystemException { String curPath = parser.getCurPath(); if (curPath.equals(path)) { inRdf = true; } if (inRdf) { if (element.getPrefix().equals( Constants.CONTENT_...
diff --git a/src/org/jruby/compiler/CallNodeCompiler.java b/src/org/jruby/compiler/CallNodeCompiler.java index 3ca6a8e86..46ed4a29a 100644 --- a/src/org/jruby/compiler/CallNodeCompiler.java +++ b/src/org/jruby/compiler/CallNodeCompiler.java @@ -1,74 +1,75 @@ /* * CallNodeCompiler.java * * Created on January 3, 2...
true
true
public void compile(Node node, Compiler context) { context.lineNumber(node.getPosition()); CallNode callNode = (CallNode)node; if (callNode.getIterNode() == null) { // no block, go for simple version // handle receiver NodeCo...
public void compile(Node node, Compiler context) { context.lineNumber(node.getPosition()); CallNode callNode = (CallNode)node; if (callNode.getIterNode() == null) { // no block, go for simple version // handle receiver NodeCo...
diff --git a/db/src/main/java/com/psddev/dari/db/Modification.java b/db/src/main/java/com/psddev/dari/db/Modification.java index e04ac5ec..9b3e4888 100644 --- a/db/src/main/java/com/psddev/dari/db/Modification.java +++ b/db/src/main/java/com/psddev/dari/db/Modification.java @@ -1,160 +1,160 @@ package com.psddev.dari....
true
true
public static Set<Class<?>> getModifiedClasses(Class<? extends Modification<?>> modificationClass) { Set<Class<?>> modified = new LinkedHashSet<Class<?>>(); Classes classes = modificationClass.getAnnotation(Classes.class); if (classes != null) { for (Class<?>...
public static Set<Class<?>> getModifiedClasses(Class<? extends Modification<?>> modificationClass) { Set<Class<?>> modified = new LinkedHashSet<Class<?>>(); Classes classes = modificationClass.getAnnotation(Classes.class); if (classes != null) { for (Class<?>...
diff --git a/src/web/org/openmrs/web/filter/initialization/InitializationFilter.java b/src/web/org/openmrs/web/filter/initialization/InitializationFilter.java index e2fd841f..3ee12640 100644 --- a/src/web/org/openmrs/web/filter/initialization/InitializationFilter.java +++ b/src/web/org/openmrs/web/filter/initialization...
true
true
private void doPost(HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws IOException { String page = httpRequest.getParameter("page"); Map<String, Object> referenceMap = new HashMap<String, Object>(); Writer writer = httpResponse.getWriter(); // clear existing errors wizardModel.err...
private void doPost(HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws IOException { String page = httpRequest.getParameter("page"); Map<String, Object> referenceMap = new HashMap<String, Object>(); Writer writer = httpResponse.getWriter(); // clear existing errors wizardModel.err...
diff --git a/src/com/me/tft_02/dynamictextures/PlayerListener.java b/src/com/me/tft_02/dynamictextures/PlayerListener.java index 1a28b27..161defc 100644 --- a/src/com/me/tft_02/dynamictextures/PlayerListener.java +++ b/src/com/me/tft_02/dynamictextures/PlayerListener.java @@ -1,51 +1,54 @@ package com.me.tft_02.dynami...
true
true
private void loadTexturePack(Player player) { if (!player.hasPermission("dynamictextures.change_texturepack")) { return; } String url; String world = player.getWorld().getName().toLowerCase(); url = plugin.getConfig().getString("Worlds." + world); Strin...
private void loadTexturePack(Player player) { if (!player.hasPermission("dynamictextures.change_texturepack")) { return; } String url; String world = player.getWorld().getName().toLowerCase(); url = plugin.getConfig().getString("Worlds." + world); Strin...
diff --git a/src/com/legit2/Demigods/Listeners/DDivineBlockListener.java b/src/com/legit2/Demigods/Listeners/DDivineBlockListener.java index 02c7c6c0..893a4886 100644 --- a/src/com/legit2/Demigods/Listeners/DDivineBlockListener.java +++ b/src/com/legit2/Demigods/Listeners/DDivineBlockListener.java @@ -1,334 +1,334 @@ ...
true
true
public void shrineInteract(PlayerInteractEvent event) { // Exit method if it isn't a block of gold or if the player is mortal if(!DCharUtil.isImmortal(event.getPlayer())) return; if(event.getAction() != Action.LEFT_CLICK_BLOCK || event.getAction() != Action.RIGHT_CLICK_BLOCK || event.getClickedBlock().getType()...
public void shrineInteract(PlayerInteractEvent event) { // Exit method if it isn't a block of gold or if the player is mortal if(!DCharUtil.isImmortal(event.getPlayer())) return; if(event.getAction() != Action.LEFT_CLICK_BLOCK && event.getAction() != Action.RIGHT_CLICK_BLOCK || event.getClickedBlock().getType()...
diff --git a/Orego/src/orego/mcts/McRunnable.java b/Orego/src/orego/mcts/McRunnable.java index b44a5719..2ddec259 100644 --- a/Orego/src/orego/mcts/McRunnable.java +++ b/Orego/src/orego/mcts/McRunnable.java @@ -1,256 +1,259 @@ package orego.mcts; import static orego.core.Colors.VACANT; import static orego.core.Coo...
true
true
public int selectAndPlayOneMove(MersenneTwisterFast random, Board board) { // Compute heuristic values int bestMove = NO_POINT; int bestValue = 0; // IntSet vacantPoints = board.getVacantPoints(); // int start = random.nextInt(vacantPoints.size()); // int i = start; // do { // int p = vacantPoints.get(i); ...
public int selectAndPlayOneMove(MersenneTwisterFast random, Board board) { // Compute heuristic values int bestMove = NO_POINT; int bestValue = 0; // IntSet vacantPoints = board.getVacantPoints(); // int start = random.nextInt(vacantPoints.size()); // int i = start; // do { // int p = vacantPoints.get(i); ...
diff --git a/common/logisticspipes/routing/RoutedEntityItem.java b/common/logisticspipes/routing/RoutedEntityItem.java index 9ab08864..159c19b1 100644 --- a/common/logisticspipes/routing/RoutedEntityItem.java +++ b/common/logisticspipes/routing/RoutedEntityItem.java @@ -1,387 +1,390 @@ /** * Copyright (c) Krapht, 2...
false
true
public EntityItem toEntityItem(ForgeDirection dir) { if (!CoreProxy.proxy.isRenderWorld(worldObj)) { if (getItemStack().stackSize <= 0) { return null; } if(getItemStack().getItem() instanceof LogisticsLiquidContainer) { remove(); return null; } //detect items spawning in the center of pi...
public EntityItem toEntityItem(ForgeDirection dir) { if (!CoreProxy.proxy.isRenderWorld(worldObj)) { if (getItemStack().stackSize <= 0) { return null; } if(getItemStack().getItem() instanceof LogisticsLiquidContainer) { remove(); return null; } //detect items spawning in the center of pi...
diff --git a/src/shoddybattleclient/WelcomeWindow.java b/src/shoddybattleclient/WelcomeWindow.java index 409a0f1..a973d96 100644 --- a/src/shoddybattleclient/WelcomeWindow.java +++ b/src/shoddybattleclient/WelcomeWindow.java @@ -1,319 +1,319 @@ /* * WelcomeWindow.java * * Created on Apr 4, 2009, 2:26:28 PM * ...
false
true
private void initComponents() { jButton1 = new javax.swing.JButton(); serverListPane = new javax.swing.JScrollPane(); lstServers = new javax.swing.JList(); btnConnect = new javax.swing.JButton(); btnAdvanced = new javax.swing.JButton(); btnRefresh = new javax.swing.J...
private void initComponents() { jButton1 = new javax.swing.JButton(); serverListPane = new javax.swing.JScrollPane(); lstServers = new javax.swing.JList(); btnConnect = new javax.swing.JButton(); btnAdvanced = new javax.swing.JButton(); btnRefresh = new javax.swing.J...
diff --git a/atlas-dao/src/test/java/uk/ac/ebi/microarray/atlas/dao/procedures/LoadProgress.java b/atlas-dao/src/test/java/uk/ac/ebi/microarray/atlas/dao/procedures/LoadProgress.java index ac67f7c88..ade641791 100644 --- a/atlas-dao/src/test/java/uk/ac/ebi/microarray/atlas/dao/procedures/LoadProgress.java +++ b/atlas-d...
true
true
public static void call(Connection conn, String accession, String stage, String status) throws Exception { // this mimics the stored procedure load_progress in the actual DB // todo // // lookup i...
public static void call(Connection conn, String accession, String stage, String status, String load_type) throws Exception { // this mimics the stored procedure load_progress in the ac...
diff --git a/same/src/main/java/com/orbekk/same/RpcHandler.java b/same/src/main/java/com/orbekk/same/RpcHandler.java index ae87bea..7b2adb3 100644 --- a/same/src/main/java/com/orbekk/same/RpcHandler.java +++ b/same/src/main/java/com/orbekk/same/RpcHandler.java @@ -1,51 +1,51 @@ package com.orbekk.same; import com.g...
true
true
public synchronized void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { logger.info("Handling request to target: " + target); if (urlReceiver != null) { String sameServic...
public synchronized void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { logger.info("Handling request to target: " + target); if (urlReceiver != null) { String sameServic...
diff --git a/src/org/apache/xerces/utils/URI.java b/src/org/apache/xerces/utils/URI.java index d33ee02e..6a993afb 100644 --- a/src/org/apache/xerces/utils/URI.java +++ b/src/org/apache/xerces/utils/URI.java @@ -1,1400 +1,1402 @@ /* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999,2000 The Ap...
false
true
private void initialize(URI p_base, String p_uriSpec) throws MalformedURIException { if (p_base == null && (p_uriSpec == null || p_uriSpec.trim().length() == 0)) { throw new MalformedURIException( "Cannot initialize URI with empty parameters."); } ...
private void initialize(URI p_base, String p_uriSpec) throws MalformedURIException { if (p_base == null && (p_uriSpec == null || p_uriSpec.trim().length() == 0)) { throw new MalformedURIException( "Cannot initialize URI with empty parameters."); } ...
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/ScannerRunnable.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/ScannerRunnable.java index 4a15db66d..fb68ed9ee 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te....
true
true
public void onChannelOpened() { // Peer is reachable if (channel != null && !sharedChannel) { // Remove ourself as channel listener channel.removeChannelListener(this); } if (CoreBundleActivator.getTraceHandler().isSlotEnabled(ITracing.ID_TRACE_SCANNER)) { CoreBundleActivator.getTraceHandler().trace(...
public void onChannelOpened() { // Peer is reachable if (channel != null && !sharedChannel) { // Remove ourself as channel listener channel.removeChannelListener(this); } if (CoreBundleActivator.getTraceHandler().isSlotEnabled(ITracing.ID_TRACE_SCANNER)) { CoreBundleActivator.getTraceHandler().trace(...
diff --git a/src/main/java/org/thymeleaf/standard/expression/Token.java b/src/main/java/org/thymeleaf/standard/expression/Token.java index ff9398b7..c889ad8c 100755 --- a/src/main/java/org/thymeleaf/standard/expression/Token.java +++ b/src/main/java/org/thymeleaf/standard/expression/Token.java @@ -1,225 +1,229 @@ /* ...
false
true
public static boolean isTokenChar(final String context, final int pos) { /* * TOKEN chars: A-Za-z0-9[]._ (and '-' in some contexts) * (additionally, also, a series of internationalized characters: accents, other alphabets, etc.) * * '-' can also be a numeric operator, so...
public static boolean isTokenChar(final String context, final int pos) { /* * TOKEN chars: A-Za-z0-9[]._ (and '-' in some contexts) * (additionally, also, a series of internationalized characters: accents, other alphabets, etc.) * * '-' can also be a numeric operator, so...
diff --git a/sterling-web/src/main/java/sterling/web/SterlingWebApp.java b/sterling-web/src/main/java/sterling/web/SterlingWebApp.java index 04be1268..4ff5f012 100644 --- a/sterling-web/src/main/java/sterling/web/SterlingWebApp.java +++ b/sterling-web/src/main/java/sterling/web/SterlingWebApp.java @@ -1,145 +1,146 @@ ...
false
true
public Expression getHandlerFor(String method, String pathInfo) { method = normalizeMethod(method); pathInfo = normalizePathInfo(pathInfo); if (handlers.containsKey(pathInfo)) { if (handlers.get(pathInfo).containsKey(method)) { return handlers.get(pathInfo).get(me...
public Expression getHandlerFor(String method, String pathInfo) { method = normalizeMethod(method); pathInfo = normalizePathInfo(pathInfo); if (handlers.containsKey(pathInfo)) { if (handlers.get(pathInfo).containsKey(method)) { return handlers.get(pathInfo).get(me...
diff --git a/game/things/Valuable.java b/game/things/Valuable.java index a0f7f22..2889018 100644 --- a/game/things/Valuable.java +++ b/game/things/Valuable.java @@ -1,54 +1,54 @@ package game.things; import game.*; import serialization.*; public class Valuable extends PickupGameThing { public static void ma...
true
true
public static void makeSerializer(SerializerUnion<GameThing> union, final GameWorld world){ union.addIdentifier(new SerializerUnion.Identifier<GameThing>(){ public String type(GameThing g){ return g instanceof Valuable? "valuable" : null; } }); union.addSerializer("valuable", new Serializer<GameThing>...
public static void makeSerializer(SerializerUnion<GameThing> union, final GameWorld world){ union.addIdentifier(new SerializerUnion.Identifier<GameThing>(){ public String type(GameThing g){ return g instanceof Valuable? "valuable" : null; } }); union.addSerializer("valuable", new Serializer<GameThing>...
diff --git a/libraries/javalib/java/nio/channels/FileLock.java b/libraries/javalib/java/nio/channels/FileLock.java index a4af08091..7f4a89ced 100644 --- a/libraries/javalib/java/nio/channels/FileLock.java +++ b/libraries/javalib/java/nio/channels/FileLock.java @@ -1,147 +1,147 @@ /* FileLock.java -- Copyright (C) ...
true
true
public final String toString() { String toReturn = getClass().getName() + "[" + position + ":" + size; if (shared) toReturn += " shared"; else toReturn += " exclusive"; if (isValid()) toReturn += " valid]"; else toReturn += " invalid]"; return toReturn; }
public final String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append("[" + position + ":" + size); if (shared) buf.append(" shared"); else buf.append(" exclusive"); if (isValid()) buf.append(" valid]"); else buf.append(" invalid]"); ...
diff --git a/waterken/web_send/src/org/web_send/split/Splitter.java b/waterken/web_send/src/org/web_send/split/Splitter.java index d92acad8..14ecd76f 100644 --- a/waterken/web_send/src/org/web_send/split/Splitter.java +++ b/waterken/web_send/src/org/web_send/split/Splitter.java @@ -1,61 +1,60 @@ // Copyright 2008 Wate...
false
true
static public <T> T make(final Spawn spawn, final Class<?> maker) { class X extends Struct implements InvocationHandler, Serializable { static private final long serialVersionUID = 1L; public Object invoke(final Object proxy, final Method method, f...
static public @SuppressWarnings("unchecked") <T> T make(final Spawn spawn, final Class<?> maker) { class X extends Struct implements InvocationHandler, Serializable { static private final long serialVersionUID = 1L; public Object invoke(final Object proxy, ...
diff --git a/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/platform/ui/web/contentview/ContentViewImpl.java b/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/platform/ui/web/contentview/ContentViewImpl.java index 30e1a2b7..c119cd82 100644 --- a/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/platform/ui/web/con...
true
true
public PageProvider<?> getPageProvider(DocumentModel searchDocument, List<SortInfo> sortInfos, Long pageSize, Long currentPage, Object... params) throws ClientException { // fallback on local parameters if defined in the XML configuration if (params == null) { par...
public PageProvider<?> getPageProvider(DocumentModel searchDocument, List<SortInfo> sortInfos, Long pageSize, Long currentPage, Object... params) throws ClientException { // fallback on local parameters if defined in the XML configuration if (params == null) { par...
diff --git a/src/main/java/ch/entwine/weblounge/contentrepository/impl/endpoint/PreviewsEndpoint.java b/src/main/java/ch/entwine/weblounge/contentrepository/impl/endpoint/PreviewsEndpoint.java index 2e70b4fab..35be25eb4 100644 --- a/src/main/java/ch/entwine/weblounge/contentrepository/impl/endpoint/PreviewsEndpoint.jav...
false
true
public Response getPreview(@Context HttpServletRequest request, @PathParam("resource") String resourceId, @PathParam("language") String languageId, @PathParam("style") String styleId) { // Check the parameters if (resourceId == null) throw new WebApplicationException(Status.BAD_REQUES...
public Response getPreview(@Context HttpServletRequest request, @PathParam("resource") String resourceId, @PathParam("language") String languageId, @PathParam("style") String styleId) { // Check the parameters if (resourceId == null) throw new WebApplicationException(Status.BAD_REQUES...
diff --git a/src/main/java/jcombinatorics/permutations/TypedSepaPnkIterator.java b/src/main/java/jcombinatorics/permutations/TypedSepaPnkIterator.java index 6e608db..63300f8 100644 --- a/src/main/java/jcombinatorics/permutations/TypedSepaPnkIterator.java +++ b/src/main/java/jcombinatorics/permutations/TypedSepaPnkItera...
true
true
private void computeNext() { int i = k - 1; int j = k; // find smallest j > k - 1 where a[j] >= a[k - 1] while (j < n && a[i].compareTo(a[j]) >= 0) { ++j; } if (j < n) { swap(i, j); } else { reverseRightOf(i); //...
private void computeNext() { int i = k - 1; int j = k; // find smallest j > k - 1 where a[j] > a[k - 1] while (j < n && a[i].compareTo(a[j]) >= 0) { ++j; } if (j < n) { swap(i, j); } else { reverseRightOf(i); // ...
diff --git a/src/com/google/bitcoin/core/Block.java b/src/com/google/bitcoin/core/Block.java index 460336c..cdb2802 100644 --- a/src/com/google/bitcoin/core/Block.java +++ b/src/com/google/bitcoin/core/Block.java @@ -1,533 +1,532 @@ /** * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version ...
false
true
private List<byte[]> buildMerkleTree() { // The Merkle root is based on a tree of hashes calculated from the transactions: // // root // / \ // / \ // A B // / \ / \ // t1 t2 t3 t4 ...
private List<byte[]> buildMerkleTree() { // The Merkle root is based on a tree of hashes calculated from the transactions: // // root // / \ // / \ // A B // / \ / \ // t1 t2 t3 t4 ...
diff --git a/tools/pldt/org.eclipse.ptp.pldt.common/src/org/eclipse/ptp/pldt/common/actions/AnalysisDropdownHandler.java b/tools/pldt/org.eclipse.ptp.pldt.common/src/org/eclipse/ptp/pldt/common/actions/AnalysisDropdownHandler.java index 8df7fe0d2..ab986b24b 100644 --- a/tools/pldt/org.eclipse.ptp.pldt.common/src/org/ec...
true
true
public AnalysisDropdownHandler() { assert (instance == null); // we presume this is a singleton instance = this; ISelectionService ss = null; try { // register to be notified of future selections IWorkbenchWindow ww = CommonPlugin.getDefault().getWorkbench() .getActiveWorkbenchWindow(); // if ss ...
public AnalysisDropdownHandler() { assert (instance == null); // we presume this is a singleton instance = this; ISelectionService ss = null; try { // register to be notified of future selections IWorkbenchWindow ww = CommonPlugin.getDefault().getWorkbench() .getActiveWorkbenchWindow(); // if ss ...
diff --git a/src/test/java/edu/mssm/pharm/maayanlab/Enrichr/RegressionTest.java b/src/test/java/edu/mssm/pharm/maayanlab/Enrichr/RegressionTest.java index 0789f08..4a35e54 100644 --- a/src/test/java/edu/mssm/pharm/maayanlab/Enrichr/RegressionTest.java +++ b/src/test/java/edu/mssm/pharm/maayanlab/Enrichr/RegressionTest....
true
true
private void assertEquivalentOutput(Collection<Term> terms, String expectedFile) { Iterator<Term> term = terms.iterator(); Collection<String> testResults = FileUtils.readResource(expectedFile); Iterator<String> result = testResults.iterator(); assertEquals(testResults.size(), terms.size()+1); assertEquals...
private void assertEquivalentOutput(Collection<Term> terms, String expectedFile) { Iterator<Term> term = terms.iterator(); Collection<String> testResults = FileUtils.readResource(expectedFile); Iterator<String> result = testResults.iterator(); assertEquals(testResults.size(), terms.size()+1); assertEquals...
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es1/PointsDemoES1.java b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es1/PointsDemoES1.java index 097784f67..5f0c99a3d 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es1/PointsDemoES1.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/...
true
true
public void init(GLAutoDrawable glad) { GL _gl = glad.getGL(); if(debugFFPEmu) { // Debug .. _gl = _gl.getContext().setGL( GLPipelineFactory.create("javax.media.opengl.Debug", GL2ES2.class, _gl, null) ); debug = false; } if(traceFFPEmu) { ...
public void init(GLAutoDrawable glad) { GL _gl = glad.getGL(); if(debugFFPEmu) { // Debug .. _gl = _gl.getContext().setGL( GLPipelineFactory.create("javax.media.opengl.Debug", GL2ES2.class, _gl, null) ); debug = false; } if(traceFFPEmu) { ...
diff --git a/src/org/guanxi/common/log/Log4JLogger.java b/src/org/guanxi/common/log/Log4JLogger.java index 409d49c..1475a80 100644 --- a/src/org/guanxi/common/log/Log4JLogger.java +++ b/src/org/guanxi/common/log/Log4JLogger.java @@ -1,84 +1,84 @@ //: "The contents of this file are subject to the Mozilla Public License...
false
true
public Logger initLogger(Log4JLoggerConfig config) throws GuanxiException { Logger log = Logger.getLogger(config.getClazz()); PatternLayout defaultLayout = new PatternLayout(logLayout); RollingFileAppender rollingFileAppender = new RollingFileAppender(); rollingFileAppender.setName(config.getClazz()...
public Logger initLogger(Log4JLoggerConfig config) throws GuanxiException { Logger log = Logger.getLogger(config.getClazz()); PatternLayout defaultLayout = new PatternLayout(config.getLogLayout()); RollingFileAppender rollingFileAppender = new RollingFileAppender(); rollingFileAppender.setName(confi...
diff --git a/src/java/org/smoothbuild/fs/base/DiskFileSystem.java b/src/java/org/smoothbuild/fs/base/DiskFileSystem.java index 29e82f49..6f69deda 100644 --- a/src/java/org/smoothbuild/fs/base/DiskFileSystem.java +++ b/src/java/org/smoothbuild/fs/base/DiskFileSystem.java @@ -1,111 +1,104 @@ package org.smoothbuild.fs.b...
false
true
private static void copy(File from, File to) throws IOException { final RandomAccessFile fromFile = new RandomAccessFile(from, "r"); try { final RandomAccessFile toFile = new RandomAccessFile(to, "rw"); try { final FileChannel fromChannel = fromFile.getChannel(); final FileChannel ...
private static void copy(File from, File to) throws IOException { try (RandomAccessFile fromFile = new RandomAccessFile(from, "r"); RandomAccessFile toFile = new RandomAccessFile(to, "rw");) { final FileChannel fromChannel = fromFile.getChannel(); final FileChannel toChannel = toFile.getChanne...
diff --git a/src/main/java/com/google/gerrit/client/account/AccountSettings.java b/src/main/java/com/google/gerrit/client/account/AccountSettings.java index 0f52b2c16..34fd5f45a 100644 --- a/src/main/java/com/google/gerrit/client/account/AccountSettings.java +++ b/src/main/java/com/google/gerrit/client/account/AccountS...
true
true
private void initUI() { if (LocaleInfo.getCurrentLocale().isRTL()) { labelIdx = 1; fieldIdx = 0; } else { labelIdx = 0; fieldIdx = 1; } info = new Grid(5, 2); info.setStyleName("gerrit-InfoBlock"); info.addStyleName("gerrit-AccountInfoBlock"); add(info); infoR...
private void initUI() { if (LocaleInfo.getCurrentLocale().isRTL()) { labelIdx = 1; fieldIdx = 0; } else { labelIdx = 0; fieldIdx = 1; } info = new Grid(5, 2); info.setStyleName("gerrit-InfoBlock"); info.addStyleName("gerrit-AccountInfoBlock"); add(info); infoR...
diff --git a/integration/src/main/java/org/apache/mahout/text/PrefixAdditionFilter.java b/integration/src/main/java/org/apache/mahout/text/PrefixAdditionFilter.java index 1667bdc6d..4183a01f1 100644 --- a/integration/src/main/java/org/apache/mahout/text/PrefixAdditionFilter.java +++ b/integration/src/main/java/org/apac...
true
true
protected void process(FileStatus fst, Path current) throws IOException { FileSystem fs = getFs(); ChunkedWriter writer = getWriter(); if (fst.isDir()) { fs.listStatus(fst.getPath(), new PrefixAdditionFilter(getConf(), getPrefix() + Path.SEPARATOR + current.getName(), ...
protected void process(FileStatus fst, Path current) throws IOException { FileSystem fs = getFs(); ChunkedWriter writer = getWriter(); if (fst.isDir()) { String dirPath = getPrefix() + Path.SEPARATOR + current.getName() + Path.SEPARATOR + fst.getPath().getName(); fs.listStatus(fst.getPath(), n...
diff --git a/atlas-web/src/main/java/ae3/service/Download.java b/atlas-web/src/main/java/ae3/service/Download.java index 644d00572..558ef2934 100644 --- a/atlas-web/src/main/java/ae3/service/Download.java +++ b/atlas-web/src/main/java/ae3/service/Download.java @@ -1,224 +1,225 @@ /* * Copyright 2008-2010 Microarray ...
false
true
public void run() { if (query != null) { ZipOutputStream zout = null; try { zout = new ZipOutputStream(new FileOutputStream(getOutputFile())); boolean first = true; query.setExpsPerGene(Integer.MAX_VALUE); query.setVie...
public void run() { if (query != null) { ZipOutputStream zout = null; try { zout = new ZipOutputStream(new FileOutputStream(getOutputFile())); boolean first = true; query.setExpsPerGene(Integer.MAX_VALUE); query.setVie...
diff --git a/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIStackFrame.java b/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIStackFrame.java index e8fdfd31f..a90b48aeb 100644 --- a/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIStackFrame.jav...
true
true
protected void updateVariables() throws DebugException { if (fVariables == null) { return; } Method method= getUnderlyingMethod(); int index= 0; if (!method.isStatic()) { // update "this" ObjectReference thisObject; try { thisObject= getUnderlyingThisObject(); } catch (DebugException exce...
protected void updateVariables() throws DebugException { if (fVariables == null) { return; } Method method= getUnderlyingMethod(); int index= 0; if (!method.isStatic()) { // update "this" ObjectReference thisObject; thisObject= getUnderlyingThisObject(); JDIThisVariable oldThisObject= null; ...
diff --git a/svn/org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/templates/template/TextualCompletionProcessor.java b/svn/org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/templates/template/TextualCompletionProcessor.java index bac53221..73e36fee 100644 --- a/svn/org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/templates...
true
true
public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int offset) { int relavance = 0; ITextSelection selection = (ITextSelection) viewer.getSelectionProvider().getSelection(); // adjust offset to end of normalized selection /* incorrect for templates that instert what is selected if ...
public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int offset) { int relavance = 0; ITextSelection selection = (ITextSelection) viewer.getSelectionProvider().getSelection(); // adjust offset to end of normalized selection /* incorrect for templates that instert what is selected if ...
diff --git a/src/minecraft/co/uk/flansmods/client/FlansModClient.java b/src/minecraft/co/uk/flansmods/client/FlansModClient.java index 60defb7f..961d4bd1 100644 --- a/src/minecraft/co/uk/flansmods/client/FlansModClient.java +++ b/src/minecraft/co/uk/flansmods/client/FlansModClient.java @@ -1,322 +1,322 @@ package co.u...
false
true
public static void tick() { if (minecraft.thePlayer == null) return; if(minecraft.thePlayer.ridingEntity instanceof EntityPlane && controlModeMouse && minecraft.currentScreen == null) minecraft.displayGuiScreen(new GuiPlaneController((EntityPlane)minecraft.thePlayer.ridingEntity)); // Guns if (shootT...
public static void tick() { if (minecraft.thePlayer == null) return; if(minecraft.thePlayer.ridingEntity instanceof EntityPlane && controlModeMouse && minecraft.currentScreen == null) minecraft.displayGuiScreen(new GuiPlaneController((EntityPlane)minecraft.thePlayer.ridingEntity)); // Guns if (shootT...
diff --git a/src/com/android/calendar/alerts/AlertReceiver.java b/src/com/android/calendar/alerts/AlertReceiver.java index fd35144b..9b917327 100644 --- a/src/com/android/calendar/alerts/AlertReceiver.java +++ b/src/com/android/calendar/alerts/AlertReceiver.java @@ -1,219 +1,219 @@ /* * Copyright (C) 2007 The Androi...
true
true
public static Notification makeNewAlertNotification(Context context, String title, String location, int numReminders, boolean highPriority, long startMillis, boolean allDay) { Resources res = context.getResources(); // Create an intent triggered by clicking on the status ico...
public static Notification makeNewAlertNotification(Context context, String title, String location, int numReminders, boolean highPriority, long startMillis, boolean allDay) { Resources res = context.getResources(); // Create an intent triggered by clicking on the status ico...
diff --git a/Dashboard/src/dashboard/model/achievement/Omni.java b/Dashboard/src/dashboard/model/achievement/Omni.java index 3b4ce89..1906881 100644 --- a/Dashboard/src/dashboard/model/achievement/Omni.java +++ b/Dashboard/src/dashboard/model/achievement/Omni.java @@ -1,53 +1,52 @@ package dashboard.model.achievement;...
false
true
public float getProgress(ArrayList<StudyMoment> studyMoments) { for(StudyMoment moment : studyMoments){ int momentsGood = 0; HashSet<Course> courses = new HashSet<Course>(); Date afterDate = new Date(moment.getStart().getTime() + 24*60*60*1000); for(StudyMoment moment2: studyMoments){ if(moment2.getS...
public float getProgress(ArrayList<StudyMoment> studyMoments) { for(StudyMoment moment : studyMoments){ HashSet<Course> courses = new HashSet<Course>(); Date afterDate = new Date(moment.getStart().getTime() + (24*60*60*1000)); for(StudyMoment moment2: studyMoments){ if(moment2.getStart().before(afterDat...
diff --git a/eclipse/plugins/net.sf.orcc.backends/src/net/sf/orcc/backends/c/transform/CBroadcastAdder.java b/eclipse/plugins/net.sf.orcc.backends/src/net/sf/orcc/backends/c/transform/CBroadcastAdder.java index 06368257b..1ddb92082 100644 --- a/eclipse/plugins/net.sf.orcc.backends/src/net/sf/orcc/backends/c/transform/C...
true
true
private void createNeededBcast(Port srcPort, List<? extends Edge> edges) { if (edges.size() > 1) { int size = ((Connection) edges.get(0)).getSize(); for (Edge edge : edges) { if (size != ((Connection) edge).getSize()) { createBroadcast(network.getName(), srcPort, edges); OrccLogger .warnln...
private void createNeededBcast(Port srcPort, List<? extends Edge> edges) { if (edges.size() > 1) { int size = ((Connection) edges.get(0)).getSize(); for (Edge edge : edges) { if (size != ((Connection) edge).getSize()) { createBroadcast(network.getSimpleName(), srcPort, edges); OrccLogger ....
diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/ChangeUtil.java b/gerrit-server/src/main/java/com/google/gerrit/server/ChangeUtil.java index 45dba4e48..41a8af1df 100644 --- a/gerrit-server/src/main/java/com/google/gerrit/server/ChangeUtil.java +++ b/gerrit-server/src/main/java/com/google/gerrit/server...
false
true
public static Change.Id revert(final PatchSet.Id patchSetId, final IdentifiedUser user, final String message, final ReviewDb db, final RevertedSender.Factory revertedSenderFactory, final ChangeHooks hooks, GitRepositoryManager gitManager, final PatchSetInfoFactory patchSetInfoFactory, fi...
public static Change.Id revert(final PatchSet.Id patchSetId, final IdentifiedUser user, final String message, final ReviewDb db, final RevertedSender.Factory revertedSenderFactory, final ChangeHooks hooks, GitRepositoryManager gitManager, final PatchSetInfoFactory patchSetInfoFactory, fi...
diff --git a/src/main/java/pl/aleskiewicz/jaxrs/SimpleService.java b/src/main/java/pl/aleskiewicz/jaxrs/SimpleService.java index 4fc4d65..c03daa7 100644 --- a/src/main/java/pl/aleskiewicz/jaxrs/SimpleService.java +++ b/src/main/java/pl/aleskiewicz/jaxrs/SimpleService.java @@ -1,76 +1,76 @@ // (c) Copyright 3ES Innovat...
true
true
public void addResponseListener(final AsyncResponse ar, int offset) { final Collection<SimpleEntry> recentActivities = list(5, offset); if (!recentActivities.isEmpty()) { Response simpleResponse = Response.ok(recentActivities).build(); // try { // OutboundJaxrsRes...
public void addResponseListener(final AsyncResponse ar, int offset) { final Collection<SimpleEntry> recentActivities = list(5, offset); if (!recentActivities.isEmpty()) { Response simpleResponse = Response.ok(recentActivities).build(); // try { // OutboundJaxrsRes...
diff --git a/src/main/java/org/datanucleus/samples/jpa/tutorial/Main.java b/src/main/java/org/datanucleus/samples/jpa/tutorial/Main.java index b30b37c..89b4773 100644 --- a/src/main/java/org/datanucleus/samples/jpa/tutorial/Main.java +++ b/src/main/java/org/datanucleus/samples/jpa/tutorial/Main.java @@ -1,223 +1,218 @@...
false
true
public static void main(String args[]) { // Create an EntityManagerFactory for this "persistence-unit" // See the file "META-INF/persistence.xml" EntityManagerFactory emf = Persistence.createEntityManagerFactory("Tutorial"); System.out.println("DataNucleus Tutorial with JPA"); ...
public static void main(String args[]) { // Create an EntityManagerFactory for this "persistence-unit" // See the file "META-INF/persistence.xml" EntityManagerFactory emf = Persistence.createEntityManagerFactory("Tutorial"); System.out.println("DataNucleus Tutorial with JPA"); ...
diff --git a/src/main/com/mucommander/ui/main/tabs/FileTableTab.java b/src/main/com/mucommander/ui/main/tabs/FileTableTab.java index 2d8f3ed3..19a73c26 100644 --- a/src/main/com/mucommander/ui/main/tabs/FileTableTab.java +++ b/src/main/com/mucommander/ui/main/tabs/FileTableTab.java @@ -1,117 +1,117 @@ /* * This file...
true
true
private String getFilenameRepresentation(String filename, boolean local) { // Under for OSes with 'root drives' (Windows, OS/2), remove the leading '/' character if(local && LocalFile.hasRootDrives()) return PathUtils.removeLeadingSeparator(filename, "/"); // Under other OSes, if the filename is empty return ...
private String getFilenameRepresentation(String filename, boolean local) { // Under for OSes with 'root drives' (Windows, OS/2), remove the leading '/' character if(local && LocalFile.hasRootDrives() && filename != null) return PathUtils.removeLeadingSeparator(filename, "/"); // Under other OSes, if the filen...
diff --git a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/model/TCFBreakpointsModel.java b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/model/TCFBreakpointsModel.java index 42a018a2f..d68a44d1b 100644 --- a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/...
true
true
public Map<String,Object> toBreakpointAttributes(IChannel channel, String id, String file, String type, Map<String,Object> p) { assert !disposed; assert Protocol.isDispatchThread(); Map<String,Object> m = new HashMap<String,Object>(); Map<String,Object> capabilities = channels.get(ch...
public Map<String,Object> toBreakpointAttributes(IChannel channel, String id, String file, String type, Map<String,Object> p) { assert !disposed; assert Protocol.isDispatchThread(); Map<String,Object> m = new HashMap<String,Object>(); Map<String,Object> capabilities = channels.get(ch...
diff --git a/src/main/ed/lang/ruby/Ruby.java b/src/main/ed/lang/ruby/Ruby.java index 0ef06abcb..5c0d73645 100644 --- a/src/main/ed/lang/ruby/Ruby.java +++ b/src/main/ed/lang/ruby/Ruby.java @@ -1,82 +1,82 @@ // Ruby.java package ed.lang.ruby; import ed.js.*; import ed.js.func.*; import ed.js.engine.*; public...
true
true
public static void install( Scope s ){ s.put( RUBY_V_CALL , new JSFunctionCalls1(){ public Object call( Scope s , Object foo , Object extra[] ){ if ( foo == null ) return null; if ( foo instanceof ...
public static void install( Scope s ){ s.put( RUBY_V_CALL , new JSFunctionCalls1(){ public Object call( Scope s , Object foo , Object extra[] ){ if ( foo == null ) return null; if ( foo instanceof ...
diff --git a/src/main/java/hudson/plugins/phing/PhingBuilder.java b/src/main/java/hudson/plugins/phing/PhingBuilder.java index 0ec2f3f..0ef8cfe 100644 --- a/src/main/java/hudson/plugins/phing/PhingBuilder.java +++ b/src/main/java/hudson/plugins/phing/PhingBuilder.java @@ -1,288 +1,290 @@ /* * The MIT License * *...
true
true
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { ArgumentListBuilder args = new ArgumentListBuilder(); EnvVars env = build.getEnvironment(listener); PhingInstallation pi = getPhing(env, liste...
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { ArgumentListBuilder args = new ArgumentListBuilder(); EnvVars env = build.getEnvironment(listener); PhingInstallation pi = getPhing(env, liste...
diff --git a/src/de/earthdawn/ECEWorker.java b/src/de/earthdawn/ECEWorker.java index c1e4852..499eeb5 100644 --- a/src/de/earthdawn/ECEWorker.java +++ b/src/de/earthdawn/ECEWorker.java @@ -1,780 +1,779 @@ package de.earthdawn; /******************************************************************************\ Copyright...
false
true
public EDCHARACTER verarbeiteCharakter(EDCHARACTER charakter) { CharacterContainer character = new CharacterContainer(charakter); // Orignal berechnete LP sichern CALCULATEDLEGENDPOINTSType oldcalculatedLP = character.getCopyOfCalculatedLegendpoints(); // Berechnete LP erstmal zurücksetzen calculatedLP = ch...
public EDCHARACTER verarbeiteCharakter(EDCHARACTER charakter) { CharacterContainer character = new CharacterContainer(charakter); // Orignal berechnete LP sichern CALCULATEDLEGENDPOINTSType oldcalculatedLP = character.getCopyOfCalculatedLegendpoints(); // Berechnete LP erstmal zurücksetzen calculatedLP = ch...
diff --git a/src/test/java/au/net/netstorm/boost/test/parallel/DefaultTestLifecycleRunner.java b/src/test/java/au/net/netstorm/boost/test/parallel/DefaultTestLifecycleRunner.java index 037b66f2b..ba0ab43ab 100644 --- a/src/test/java/au/net/netstorm/boost/test/parallel/DefaultTestLifecycleRunner.java +++ b/src/test/java...
true
true
private List runTest(LifecycleTest test) { List exceptions = new ArrayList(); TestLifecycle lifecycle = test.lifecycle(); try { engine.runTest(test, lifecycle); } catch (Throwable t) { Throwable throwable = engine.error(test, t); exceptions.add(thr...
private List runTest(LifecycleTest test) { // FIX (Nov 27, 2007) TESTING 83271 Change this to 'Errors'. List exceptions = new ArrayList(); TestLifecycle lifecycle = test.lifecycle(); try { engine.runTest(test, lifecycle); } catch (Throwable t) { Throwa...
diff --git a/src/main/java/edu/msu/nscl/olog/LogManager.java b/src/main/java/edu/msu/nscl/olog/LogManager.java index f47a7ed..f799dc0 100644 --- a/src/main/java/edu/msu/nscl/olog/LogManager.java +++ b/src/main/java/edu/msu/nscl/olog/LogManager.java @@ -1,562 +1,564 @@ /* * To change this template, choose Tools | Tem...
false
true
public static Logs findLog(MultivaluedMap<String, String> matches) throws CFException { List<String> log_patterns = new ArrayList(); List<String> id_patterns = new ArrayList(); List<String> tag_matches = new ArrayList(); List<String> tag_patterns = new ArrayList(); ...
public static Logs findLog(MultivaluedMap<String, String> matches) throws CFException { List<String> log_patterns = new ArrayList(); List<String> id_patterns = new ArrayList(); List<String> tag_matches = new ArrayList(); List<String> tag_patterns = new ArrayList(); ...
diff --git a/src/com/pandj/wewrite/GetEmailAndDisplayName.java b/src/com/pandj/wewrite/GetEmailAndDisplayName.java index a1b6ab9..545ac5c 100644 --- a/src/com/pandj/wewrite/GetEmailAndDisplayName.java +++ b/src/com/pandj/wewrite/GetEmailAndDisplayName.java @@ -1,156 +1,157 @@ package com.pandj.wewrite; import edu.u...
true
true
public void attemptLogin() { // Reset errors. mEmailView.setError(null); mUsernameView.setError(null); // Store values at the time of the login attempt. mEmail = mEmailView.getText().toString(); mUserName = mUsernameView.getText().toString(); boolean cancel = false; View focusView...
public void attemptLogin() { // Reset errors. mEmailView.setError(null); mUsernameView.setError(null); // Store values at the time of the login attempt. mEmail = mEmailView.getText().toString(); mUserName = mUsernameView.getText().toString(); boolean cancel = false; View focusView...
diff --git a/engine/src/main/java/org/archive/crawler/postprocessor/CandidatesProcessor.java b/engine/src/main/java/org/archive/crawler/postprocessor/CandidatesProcessor.java index 11fb7f0..6752f2d 100644 --- a/engine/src/main/java/org/archive/crawler/postprocessor/CandidatesProcessor.java +++ b/engine/src/main/java/or...
true
true
protected void innerProcess(final CrawlURI curi) throws InterruptedException { // Handle any prerequisites when S_DEFERRED for prereqs if (curi.hasPrerequisiteUri() && curi.getFetchStatus() == S_DEFERRED) { CrawlURI prereq = curi.getPrerequisiteUri(); sheetOverlaysManager.app...
protected void innerProcess(final CrawlURI curi) throws InterruptedException { // Handle any prerequisites when S_DEFERRED for prereqs if (curi.hasPrerequisiteUri() && curi.getFetchStatus() == S_DEFERRED) { CrawlURI prereq = curi.getPrerequisiteUri(); prereq.setFullVia(curi);...
diff --git a/src/test/java/examples/SiteExamples.java b/src/test/java/examples/SiteExamples.java index a148e16..e25e30b 100644 --- a/src/test/java/examples/SiteExamples.java +++ b/src/test/java/examples/SiteExamples.java @@ -1,81 +1,84 @@ package examples; import java.io.File; import org.junit.BeforeClass; impo...
true
true
public void rdfStoreUsage() { // START SNIPPET: rdfStoreUsage GraphDatabaseService graphDb = new EmbeddedGraphDatabase( "target/var/examples" ); LuceneIndexService indexService = new LuceneIndexService( graphDb ); RdfStore store = new VerboseQuadStore( graphDb, indexService ); ...
public void rdfStoreUsage() { // START SNIPPET: rdfStoreUsage GraphDatabaseService graphDb = new EmbeddedGraphDatabase( "target/var/examples" ); LuceneIndexService indexService = new LuceneIndexService( graphDb ); RdfStore store = new VerboseQuadStore( graphDb, indexService ); ...
diff --git a/ViewController/src/com/edumet/models/payroll/W2Model.java b/ViewController/src/com/edumet/models/payroll/W2Model.java index b9cd6f2..789be42 100644 --- a/ViewController/src/com/edumet/models/payroll/W2Model.java +++ b/ViewController/src/com/edumet/models/payroll/W2Model.java @@ -1,115 +1,115 @@ package co...
true
true
private void downloadPDF() throws IOException { // Prepare. FacesContext facesContext = FacesContext.getCurrentInstance(); ExternalContext externalContext = facesContext.getExternalContext(); HttpServletResponse response = (HttpServletResponse)externalContext.getResponse(); ...
private void downloadPDF() throws IOException { // Prepare. FacesContext facesContext = FacesContext.getCurrentInstance(); ExternalContext externalContext = facesContext.getExternalContext(); HttpServletResponse response = (HttpServletResponse)externalContext.getResponse(); ...
diff --git a/src/Cubee/src/main/java/com/eagerlogic/cubee/client/components/AUserControl.java b/src/Cubee/src/main/java/com/eagerlogic/cubee/client/components/AUserControl.java index a8650a0..6cb727a 100644 --- a/src/Cubee/src/main/java/com/eagerlogic/cubee/client/components/AUserControl.java +++ b/src/Cubee/src/main/j...
true
true
public AUserControl() { super(DOM.createDiv()); width.addChangeListener(new IChangeListener() { @Override public void onChanged(Object sender) { if (width.get() == null) { getElement().getStyle().clearWidth(); getElement...
public AUserControl() { super(DOM.createDiv()); width.addChangeListener(new IChangeListener() { @Override public void onChanged(Object sender) { if (width.get() == null) { getElement().getStyle().clearWidth(); getElement...
diff --git a/GrinnellDirectory/src/edu/grinnell/appdev/grinnelldirectory/RequestTask.java b/GrinnellDirectory/src/edu/grinnell/appdev/grinnelldirectory/RequestTask.java index f2285c7..63c7c75 100644 --- a/GrinnellDirectory/src/edu/grinnell/appdev/grinnelldirectory/RequestTask.java +++ b/GrinnellDirectory/src/edu/grinne...
true
true
private boolean parseResponse(){ //Set up the tokenizer, seperating by token '\n'. You should find out what a tokenizer is. StringTokenizer strTok = new StringTokenizer(responseString, "\n"); String curTok, picurl, firstName, lastName, username, dept, phonenum, campusaddress, boxno, stufacstatu...
private boolean parseResponse(){ //Set up the tokenizer, seperating by token '\n'. You should find out what a tokenizer is. StringTokenizer strTok = new StringTokenizer(responseString, "\n"); String curTok, picurl, firstName, lastName, username, dept, phonenum, campusaddress, boxno, stufacstatu...
diff --git a/org.spearce.egit.core/src/org/spearce/egit/core/internal/mapping/GitFileRevision.java b/org.spearce.egit.core/src/org/spearce/egit/core/internal/mapping/GitFileRevision.java index 7b726f72..def142fd 100644 --- a/org.spearce.egit.core/src/org/spearce/egit/core/internal/mapping/GitFileRevision.java +++ b/org...
true
true
public TreeEntry getTreeEntry() { GitProvider provider = (GitProvider) RepositoryProvider .getProvider(resource.getProject()); RepositoryMapping repositoryMapping = provider.getData() .getRepositoryMapping(resource.getProject()); Tree tree; try { tree = repositoryMapping.getRepository().mapTree(getC...
public TreeEntry getTreeEntry() { GitProvider provider = (GitProvider) RepositoryProvider .getProvider(resource.getProject()); RepositoryMapping repositoryMapping = provider.getData() .getRepositoryMapping(resource.getProject()); Tree tree; try { tree = repositoryMapping.getRepository().mapTree(getC...
diff --git a/wikipedia/visualize-app/src/edu/mit/cci/wikipedia/articlenetwork/CreateNetworkFromAllData.java b/wikipedia/visualize-app/src/edu/mit/cci/wikipedia/articlenetwork/CreateNetworkFromAllData.java index 87d568e..2932dce 100644 --- a/wikipedia/visualize-app/src/edu/mit/cci/wikipedia/articlenetwork/CreateNetworkF...
true
true
public static void main(String[] args) { // TODO Auto-generated method stub try { BufferedWriter bw = new BufferedWriter(new FileWriter("Data/Es/Category_LivingPeople_links_20110214.txt")); BufferedReader br = new BufferedReader(new FileReader("Data/Es/Category_LivingPeople.txt")); Map<String,String> peop...
public static void main(String[] args) { // TODO Auto-generated method stub try { BufferedWriter bw = new BufferedWriter(new FileWriter("Data/Es/Category_LivingPeople_links_20110214.txt")); BufferedReader br = new BufferedReader(new FileReader("Data/Es/Category_LivingPeople.txt")); Map<String,String> peop...
diff --git a/src/org/apache/xerces/impl/xpath/regex/ParserForXMLSchema.java b/src/org/apache/xerces/impl/xpath/regex/ParserForXMLSchema.java index 7b784eac..7739d511 100644 --- a/src/org/apache/xerces/impl/xpath/regex/ParserForXMLSchema.java +++ b/src/org/apache/xerces/impl/xpath/regex/ParserForXMLSchema.java @@ -1,486...
false
true
protected RangeToken parseCharacterClass(boolean useNrange) throws ParseException { this.setContext(S_INBRACKETS); this.next(); // '[' boolean nrange = false; boolean wasDecoded = false; // used to detect if the last - was escaped. RangeToken ...
protected RangeToken parseCharacterClass(boolean useNrange) throws ParseException { this.setContext(S_INBRACKETS); this.next(); // '[' boolean nrange = false; boolean wasDecoded = false; // used to detect if the last - was escaped. RangeToken ...
diff --git a/org/jruby/exceptions/RangeError.java b/org/jruby/exceptions/RangeError.java index 7b3987abd..456a08897 100644 --- a/org/jruby/exceptions/RangeError.java +++ b/org/jruby/exceptions/RangeError.java @@ -1,48 +1,48 @@ /* * RangeError.java - No description * Created on 27. Feb 2002 * * Copyright (C) 2...
true
true
public RangeError(Ruby ruby, String msg) { super(ruby, ruby.getExceptions().getNameError(), msg); }
public RangeError(Ruby ruby, String msg) { super(ruby, ruby.getExceptions().getRangeError(), msg); }
diff --git a/omod/src/main/java/org/openmrs/module/appointmentscheduling/web/controller/AppointmentBlockCalendarController.java b/omod/src/main/java/org/openmrs/module/appointmentscheduling/web/controller/AppointmentBlockCalendarController.java index 4d71c18..239ce45 100644 --- a/omod/src/main/java/org/openmrs/module/a...
true
true
public String loadForm(HttpServletRequest request, ModelMap model, @RequestParam(value = "action", required = false) String action, @RequestParam(value = "fromDate", required = false) Long fromDate, @RequestParam(value = "toDate", required = false) Long toDate, @RequestParam(value =...
public String loadForm(HttpServletRequest request, ModelMap model, @RequestParam(value = "action", required = false) String action, @RequestParam(value = "fromDate", required = false) Long fromDate, @RequestParam(value = "toDate", required = false) Long toDate, @RequestParam(value =...
diff --git a/htroot/yacy/urls.java b/htroot/yacy/urls.java index 83ec67b34..528d567a6 100644 --- a/htroot/yacy/urls.java +++ b/htroot/yacy/urls.java @@ -1,138 +1,138 @@ // urls.java // (C) 2007 by Michael Peter Christen; mc@yacy.net, Frankfurt a. M., Germany // first published 22.08.2007 on http://yacy.net // // T...
false
true
public static serverObjects respond(final httpRequestHeader header, final serverObjects post, final serverSwitch<?> env) { final plasmaSwitchboard sb = (plasmaSwitchboard) env; // insert default values final serverObjects prop = new serverObjects(); prop.put("iam", sb.webInd...
public static serverObjects respond(final httpRequestHeader header, final serverObjects post, final serverSwitch<?> env) { final plasmaSwitchboard sb = (plasmaSwitchboard) env; // insert default values final serverObjects prop = new serverObjects(); prop.put("iam", sb.webInd...
diff --git a/org.caleydo.datadomain.genetic/src/org/caleydo/datadomain/genetic/GeneticDataDomain.java b/org.caleydo.datadomain.genetic/src/org/caleydo/datadomain/genetic/GeneticDataDomain.java index 4e8a2e975..d0c564ce4 100644 --- a/org.caleydo.datadomain.genetic/src/org/caleydo/datadomain/genetic/GeneticDataDomain.jav...
false
true
public void createDefaultConfiguration() { configuration = new DataDomainConfiguration(); configuration.setMappingFile("data/bootstrap/bootstrap.xml"); configuration.setColumnDimension(true); configuration.setRecordIDCategory("GENE"); configuration.setDimensionIDCategory("EXPERIMENT"); configuration.s...
public void createDefaultConfiguration() { configuration = new DataDomainConfiguration(); configuration.setMappingFile("data/bootstrap/bootstrap.xml"); configuration.setColumnDimension(true); configuration.setRecordIDCategory("GENE"); configuration.setDimensionIDCategory("SAMPLE"); configuration.setPr...
diff --git a/src/com/android/gallery3d/ui/PhotoView.java b/src/com/android/gallery3d/ui/PhotoView.java index 3de383b..c769961 100644 --- a/src/com/android/gallery3d/ui/PhotoView.java +++ b/src/com/android/gallery3d/ui/PhotoView.java @@ -1,1076 +1,1076 @@ /* * Copyright (C) 2010 The Android Open Source Project * ...
true
true
private void setTileViewPosition(Rect r) { TileImageView t = mTileView; // Find out the bitmap coordinates of the center of the view int imageW = mPositionController.getImageWidth(); int imageH = mPositionController.getImageHeight(); float scale = mPo...
private void setTileViewPosition(Rect r) { TileImageView t = mTileView; // Find out the bitmap coordinates of the center of the view int imageW = mPositionController.getImageWidth(); int imageH = mPositionController.getImageHeight(); float scale = mPo...
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandkickall.java b/Essentials/src/com/earth2me/essentials/commands/Commandkickall.java index e78c77e..c52dc8d 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandkickall.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandkick...
true
true
public void run(Server server, CommandSender sender, String commandLabel, String[] args) throws Exception { charge(sender); for (Player p : server.getOnlinePlayers()) { if (sender instanceof Player && p.getName().equalsIgnoreCase(((Player)sender).getName())) { continue; } else { p.kickPl...
public void run(Server server, CommandSender sender, String commandLabel, String[] args) throws Exception { charge(sender); for (Player p : server.getOnlinePlayers()) { if (sender instanceof Player && p.getName().equalsIgnoreCase(((Player)sender).getName())) { continue; } else { p.kickPl...
diff --git a/org.orbisgis.core-ui/src/main/java/org/orbisgis/views/editor/EditorPanel.java b/org.orbisgis.core-ui/src/main/java/org/orbisgis/views/editor/EditorPanel.java index 46c1996f1..c0ea0ee78 100644 --- a/org.orbisgis.core-ui/src/main/java/org/orbisgis/views/editor/EditorPanel.java +++ b/org.orbisgis.core-ui/src/...
false
true
public EditorPanel(EditorView editorView) { this.setLayout(new BorderLayout()); root = new RootWindow(null); root.getRootWindowProperties().getSplitWindowProperties() .setContinuousLayoutEnabled(false); root.getRootWindowProperties().getTabWindowProperties() .getTabProperties().getNormalButtonPropertie...
public EditorPanel(EditorView editorView) { this.setLayout(new BorderLayout()); root = new RootWindow(null); root.getRootWindowProperties().getSplitWindowProperties() .setContinuousLayoutEnabled(false); root.getRootWindowProperties().getTabWindowProperties() .getCloseButtonProperties().setVisible(false...
diff --git a/loci/formats/in/ICSReader.java b/loci/formats/in/ICSReader.java index 2fcd8cd4e..84bb288e1 100644 --- a/loci/formats/in/ICSReader.java +++ b/loci/formats/in/ICSReader.java @@ -1,479 +1,481 @@ // // ICSReader.java // /* LOCI Bio-Formats package for reading and converting biological file formats. Cop...
true
true
protected void initFile(String id) throws FormatException, IOException { if (debug) debug("ICSReader.initFile(" + id + ")"); super.initFile(id); status("Finding companion file"); //String icsId = l.getPath(), idsId = l.getPath(); String icsId = id, idsId = id; int dot = id.lastIndexOf("."); ...
protected void initFile(String id) throws FormatException, IOException { if (debug) debug("ICSReader.initFile(" + id + ")"); super.initFile(id); status("Finding companion file"); //String icsId = l.getPath(), idsId = l.getPath(); String icsId = id, idsId = id; int dot = id.lastIndexOf("."); ...
diff --git a/tools/tcgaWorkflow/src/main/java/org/sagebionetworks/workflow/activity/Curation.java b/tools/tcgaWorkflow/src/main/java/org/sagebionetworks/workflow/activity/Curation.java index d969585f..11405ff2 100644 --- a/tools/tcgaWorkflow/src/main/java/org/sagebionetworks/workflow/activity/Curation.java +++ b/tools/...
true
true
public static Map<String, String> formulateMetadataFromTcgaUrl( String tcgaUrl, boolean getMD5) throws UnrecoverableException, ClientProtocolException, NoSuchAlgorithmException, IOException, HttpClientHelperException { Map<String, String> metadata = new HashMap<String, String>(); URL parsedUrl = new URL...
public static Map<String, String> formulateMetadataFromTcgaUrl( String tcgaUrl, boolean getMD5) throws UnrecoverableException, ClientProtocolException, NoSuchAlgorithmException, IOException, HttpClientHelperException { Map<String, String> metadata = new HashMap<String, String>(); URL parsedUrl = new URL...
diff --git a/app/preproc/PdeEmitter.java b/app/preproc/PdeEmitter.java index 9e92761e1..35900d515 100644 --- a/app/preproc/PdeEmitter.java +++ b/app/preproc/PdeEmitter.java @@ -1,927 +1,928 @@ /* -*- mode: jde; c-basic-offset: 2; indent-tabs-mode: nil -*- */ package processing.app.preproc; import processing.app....
true
true
public void print (AST ast) throws RunnerException { if (ast == null) { return; } AST parent = null; if (!stack.isEmpty()) { parent = (AST) stack.peek(); } stack.push(ast); AST child1 = ast.getFirstChild(); AST child2 = null; AST child3 = null; if (child1 != null)...
public void print (AST ast) throws RunnerException { if (ast == null) { return; } AST parent = null; if (!stack.isEmpty()) { parent = (AST) stack.peek(); } stack.push(ast); AST child1 = ast.getFirstChild(); AST child2 = null; AST child3 = null; if (child1 != null)...
diff --git a/postprocessing/demo/src/com/bitfire/postprocessing/demo/PostProcessingDemo.java b/postprocessing/demo/src/com/bitfire/postprocessing/demo/PostProcessingDemo.java index 5ff39c3..236d252 100644 --- a/postprocessing/demo/src/com/bitfire/postprocessing/demo/PostProcessingDemo.java +++ b/postprocessing/demo/src...
true
true
private void draw() { boolean willPostProcess = post.isReady(); boolean backgroundFirst = (willPostProcess && !ui.backgroundAffected && ui.drawBackground) || (!willPostProcess && ui.drawBackground); boolean drawbg = ui.drawBackground && ui.backgroundAffected; boolean drawsmth = drawbg || ui.drawSprite; ...
private void draw() { boolean willPostProcess = post.isReady(); boolean backgroundFirst = (willPostProcess && !ui.backgroundAffected && ui.drawBackground) || (!willPostProcess && ui.drawBackground); boolean drawbg = ui.drawBackground && ui.backgroundAffected; boolean drawsmth = drawbg || ui.drawSprite; ...
diff --git a/plugins/org.jboss.tools.forge.ui.ext/src/org/jboss/tools/forge/ui/ext/handlers/ForgeCommandHandler.java b/plugins/org.jboss.tools.forge.ui.ext/src/org/jboss/tools/forge/ui/ext/handlers/ForgeCommandHandler.java index 60d1a7ff..f452652c 100644 --- a/plugins/org.jboss.tools.forge.ui.ext/src/org/jboss/tools/fo...
false
true
public Object execute(ExecutionEvent event) { try { shell = HandlerUtil.getActiveShell(event); final IWorkbenchWindow window = HandlerUtil .getActiveWorkbenchWindowChecked(event); ProgressMonitorDialog pmd = new ProgressMonitorDialog(HandlerUtil.getActiveShell(event)); pmd.run(true, false, new...
public Object execute(ExecutionEvent event) { try { shell = HandlerUtil.getActiveShell(event); final IWorkbenchWindow window = HandlerUtil .getActiveWorkbenchWindowChecked(event); final ISelection selection = window.getSelectionService().getSelection(); if (!FurnaceService.INSTANCE.getContainerStatu...
diff --git a/src/fr/tikione/steam/cleaner/gui/dialog/JFrameMain.java b/src/fr/tikione/steam/cleaner/gui/dialog/JFrameMain.java index e73ddb5..fc3dbfd 100644 --- a/src/fr/tikione/steam/cleaner/gui/dialog/JFrameMain.java +++ b/src/fr/tikione/steam/cleaner/gui/dialog/JFrameMain.java @@ -1,1066 +1,1066 @@ package fr.tikio...
true
true
private void initComponents() { jPanelMain = new JPanel(); jLabelSteamDir = new JLabel(); jTextFieldSteamDir = new JTextField(); jButtonLocateSteamDir = new JButton(); jButtonManualSteamDirSearch = new JButton(); jPanelList = new JPanel(); jButtonReloadRedist...
private void initComponents() { jPanelMain = new JPanel(); jLabelSteamDir = new JLabel(); jTextFieldSteamDir = new JTextField(); jButtonLocateSteamDir = new JButton(); jButtonManualSteamDirSearch = new JButton(); jPanelList = new JPanel(); jButtonReloadRedist...
diff --git a/ide/org.codehaus.groovy.eclipse.core/src/org/codehaus/groovy/eclipse/core/compiler/CompilerUtils.java b/ide/org.codehaus.groovy.eclipse.core/src/org/codehaus/groovy/eclipse/core/compiler/CompilerUtils.java index d39bc838f..be74a2149 100644 --- a/ide/org.codehaus.groovy.eclipse.core/src/org/codehaus/groovy/...
true
true
public static IStatus switchVersions(boolean toVersion18) { String version17 = "[1.7.0,1.8.1)"; String version18 = "1.8.1"; try { State state = ((StateManager) Platform.getPlatformAdmin()).getSystemState(); if (toVersion18) { BundleDescription disabl...
public static IStatus switchVersions(boolean toVersion18) { String version17 = "[1.7.0,1.8.1)"; String version18 = "1.8.1"; try { State state = ((StateManager) Platform.getPlatformAdmin()).getSystemState(); if (toVersion18) { BundleDescription disabl...
diff --git a/MODSRC/vazkii/tinkerer/common/research/ModResearch.java b/MODSRC/vazkii/tinkerer/common/research/ModResearch.java index 34066e6b..155177d1 100644 --- a/MODSRC/vazkii/tinkerer/common/research/ModResearch.java +++ b/MODSRC/vazkii/tinkerer/common/research/ModResearch.java @@ -1,183 +1,183 @@ /** * This cla...
true
true
public static void initResearch() { registerResearchPages(); ResearchItem research; research = new TTResearchItem(LibResearch.KEY_DARK_QUARTZ, LibResearch.CATEGORY_ARTIFICE, new AspectList(), -2, -1, 0, new ItemStack(ModItems.darkQuartz)).setStub().setAutoUnlock().setRound().registerResearchItem(); research....
public static void initResearch() { registerResearchPages(); ResearchItem research; research = new TTResearchItem(LibResearch.KEY_DARK_QUARTZ, LibResearch.CATEGORY_ARTIFICE, new AspectList(), -2, -1, 0, new ItemStack(ModItems.darkQuartz)).setStub().setAutoUnlock().setRound().registerResearchItem(); research....
diff --git a/src/com/monllao/david/androidrestclient/camera/VideoRecorder.java b/src/com/monllao/david/androidrestclient/camera/VideoRecorder.java index e0cd59c..c93dbbc 100644 --- a/src/com/monllao/david/androidrestclient/camera/VideoRecorder.java +++ b/src/com/monllao/david/androidrestclient/camera/VideoRecorder.java...
true
true
protected void calculateOptimalScreenSize() { DisplayMetrics metrics = new DisplayMetrics(); activity.getWindowManager().getDefaultDisplay().getMetrics(metrics); int screenHeight = metrics.heightPixels; int screenWidth = metrics.widthPixels; List<Size> supportedSizes = camera.getParameters().getSuppo...
protected void calculateOptimalScreenSize() { DisplayMetrics metrics = new DisplayMetrics(); activity.getWindowManager().getDefaultDisplay().getMetrics(metrics); int screenHeight = metrics.heightPixels; int screenWidth = metrics.widthPixels; List<Size> supportedSizes = camera.getParameters().getSuppo...
diff --git a/src/me/libraryaddict/Hungergames/Configs/FeastConfig.java b/src/me/libraryaddict/Hungergames/Configs/FeastConfig.java index b385442..a0772f4 100644 --- a/src/me/libraryaddict/Hungergames/Configs/FeastConfig.java +++ b/src/me/libraryaddict/Hungergames/Configs/FeastConfig.java @@ -1,101 +1,101 @@ package me...
true
true
public FeastConfig() { super("feast"); for (int i = 0; i < 4; i++) { getFeastAdvertisements().put((60 * 15) + (i * 60), ChatColor.RED + "The feast will begin at (%s, %s, %s) in %s"); getFeastAdvertisements().put((60 * 15) + (i * 60), ChatColor.RED + "Use /feast to fix your co...
public FeastConfig() { super("feast"); for (int i = 0; i < 4; i++) { getFeastAdvertisements().put((60 * 15) + (i * 60), ChatColor.RED + "The feast will begin at (%s, %s, %s) in %s"); getFeastAdvertisements().put((60 * 15) + (i * 60) + 1, ChatColor.RED + "Use /feast to fix you...
diff --git a/src/test/java/org/vivoweb/test/harvester/fetch/nih/NLMJournalFetchTest.java b/src/test/java/org/vivoweb/test/harvester/fetch/nih/NLMJournalFetchTest.java index fe1982a9..d730be80 100644 --- a/src/test/java/org/vivoweb/test/harvester/fetch/nih/NLMJournalFetchTest.java +++ b/src/test/java/org/vivoweb/test/ha...
true
true
public final void testNLMJournalFetchOneRecord() throws IOException, ParserConfigurationException, SAXException { log.info("BEGIN testNLMJournalFetchOneRecord"); //test 1 record new NLMJournalFetch("test@test.com", "1:8000[dp]", "1", "1", this.rh).execute(); assertTrue(this.rh.iterator().hasNext()); Document...
public final void testNLMJournalFetchOneRecord() throws IOException, ParserConfigurationException, SAXException { log.info("BEGIN testNLMJournalFetchOneRecord"); //test 1 record new NLMJournalFetch("test@test.com", "1:8000[dp]", "1", "1", this.rh).execute(); assertTrue(this.rh.iterator().hasNext()); Document...
diff --git a/cdm/src/test/java/ucar/nc2/ncml/TestOffAggUpdating.java b/cdm/src/test/java/ucar/nc2/ncml/TestOffAggUpdating.java index f0a0d7653..aa8b5b459 100644 --- a/cdm/src/test/java/ucar/nc2/ncml/TestOffAggUpdating.java +++ b/cdm/src/test/java/ucar/nc2/ncml/TestOffAggUpdating.java @@ -1,121 +1,123 @@ /* * Copyrig...
true
true
public void testUpdate() throws IOException, InvalidRangeException, InterruptedException { String dir = TestAll.cdmUnitTestDir + "agg/updating"; File dirFile = new File(dir); assert dirFile != null; assert dirFile.exists(); assert dirFile.isDirectory(); // make sure that the extra file is not...
public void testUpdate() throws IOException, InvalidRangeException, InterruptedException { String dir = TestAll.cdmUnitTestDir + "agg/updating"; File dirFile = new File(dir); assert dirFile != null; assert dirFile.exists(); assert dirFile.isDirectory(); // make sure that the extra file is not...