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/test/system/java/org/apache/hadoop/mapred/TestDistributedCacheModifiedFile.java b/src/test/system/java/org/apache/hadoop/mapred/TestDistributedCacheModifiedFile.java index b02143202..626d5fdd1 100644 --- a/src/test/system/java/org/apache/hadoop/mapred/TestDistributedCacheModifiedFile.java +++ b/src/tes...
true
true
public void testDistributedCache() throws Exception { Configuration conf = new Configuration(cluster.getConf()); JTProtocol wovenClient = cluster.getJTClient().getProxy(); //This counter will check for count of a loop, //which might become infinite. int count = 0; //This boolean will decide ...
public void testDistributedCache() throws Exception { Configuration conf = new Configuration(cluster.getConf()); JTProtocol wovenClient = cluster.getJTClient().getProxy(); //This counter will check for count of a loop, //which might become infinite. int count = 0; //This boolean will decide ...
diff --git a/SoundStream/src/com/lastcrusade/soundstream/service/PlaylistService.java b/SoundStream/src/com/lastcrusade/soundstream/service/PlaylistService.java index 81ca6fe..8f6d882 100644 --- a/SoundStream/src/com/lastcrusade/soundstream/service/PlaylistService.java +++ b/SoundStream/src/com/lastcrusade/soundstream/...
true
true
private void registerReceivers() { this.registrar = new BroadcastRegistrar(); this.registrar .addAction(SingleFileAudioPlayer.ACTION_SONG_FINISHED, new IBroadcastActionHandler() { @Override public void onReceiveAction(Context context, Intent intent) { ...
private void registerReceivers() { this.registrar = new BroadcastRegistrar(); this.registrar .addAction(SingleFileAudioPlayer.ACTION_SONG_FINISHED, new IBroadcastActionHandler() { @Override public void onReceiveAction(Context context, Intent intent) { ...
diff --git a/src/main/java/org/basex/gui/view/explore/ExploreArea.java b/src/main/java/org/basex/gui/view/explore/ExploreArea.java index 5bfff61dc..c15f0ccc0 100644 --- a/src/main/java/org/basex/gui/view/explore/ExploreArea.java +++ b/src/main/java/org/basex/gui/view/explore/ExploreArea.java @@ -1,349 +1,350 @@ packag...
true
true
void query(final boolean force) { final TokenBuilder tb = new TokenBuilder(); final Data data = gui.context.data; final int cs = panel.getComponentCount(); for(int c = 0; c < cs; c += 2) { final BaseXCombo com = (BaseXCombo) panel.getComponent(c); final int k = com.getSelectedIndex(); ...
void query(final boolean force) { final TokenBuilder tb = new TokenBuilder(); final Data data = gui.context.data; final int cs = panel.getComponentCount(); for(int c = 0; c < cs; c += 2) { final BaseXCombo com = (BaseXCombo) panel.getComponent(c); final int k = com.getSelectedIndex(); ...
diff --git a/src/main/java/Main.java b/src/main/java/Main.java index 1b93bb1..4fa55fe 100644 --- a/src/main/java/Main.java +++ b/src/main/java/Main.java @@ -1,77 +1,74 @@ import net.sf.json.JSONException; import net.sf.json.JSONObject; import org.apache.commons.io.IOUtils; import scalaskel.Change; import scalaskel...
true
true
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String path = req.getPathInfo(); // strange behavior on cloudbees tomcat compared to unit test jetty System.out.println("getPathInfo: " +path); System.out.println("getServl...
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String path = req.getPathInfo(); // tomcat don't behave like jetty if (path == null) path = req.getServletPath(); if (path.equals("/")) { String q = req.getPar...
diff --git a/src/main/java/bakersoftware/maven_replacer_plugin/ReplacerMojo.java b/src/main/java/bakersoftware/maven_replacer_plugin/ReplacerMojo.java index 55fb726..d60f2f0 100644 --- a/src/main/java/bakersoftware/maven_replacer_plugin/ReplacerMojo.java +++ b/src/main/java/bakersoftware/maven_replacer_plugin/ReplacerM...
true
true
public void execute() throws MojoExecutionException { try { if (ignoreMissingFile && !fileExists(file)) { getLog().info("Ignoring missing file"); return; } getLog().info("Replacing " + token + " with " + value + " in " + file); if (outputFile != null) { getLog().info("Outputting to: " + outpu...
public void execute() throws MojoExecutionException { try { if (ignoreMissingFile && !fileExists(file)) { getLog().info("Ignoring missing file"); return; } if (value != null) { getLog().info("Replacing " + token + " with " + value + " in " + file); } else { getLog().info("...
diff --git a/zxingorg/src/com/google/zxing/web/DecodeServlet.java b/zxingorg/src/com/google/zxing/web/DecodeServlet.java index e3245c1d..70a35556 100644 --- a/zxingorg/src/com/google/zxing/web/DecodeServlet.java +++ b/zxingorg/src/com/google/zxing/web/DecodeServlet.java @@ -1,402 +1,405 @@ /* * Copyright 2008 ZXing ...
true
true
private static void processStream(InputStream is, ServletRequest request, HttpServletResponse response) throws ServletException, IOException { BufferedImage image; try { image = ImageIO.read(is); } catch (IOException ioe) { log.fine(ioe.toString()); // Includes javax.imageio.IIOEx...
private static void processStream(InputStream is, ServletRequest request, HttpServletResponse response) throws ServletException, IOException { BufferedImage image; try { image = ImageIO.read(is); } catch (IOException ioe) { log.fine(ioe.toString()); // Includes javax.imageio.IIOEx...
diff --git a/src/gov/nih/nci/cadsr/cdecurate/tool/ValueDomainServlet.java b/src/gov/nih/nci/cadsr/cdecurate/tool/ValueDomainServlet.java index 85f2dddf..8be30f57 100644 --- a/src/gov/nih/nci/cadsr/cdecurate/tool/ValueDomainServlet.java +++ b/src/gov/nih/nci/cadsr/cdecurate/tool/ValueDomainServlet.java @@ -1,2360 +1,236...
true
true
private void doValidateVD() throws Exception { HttpSession session = m_classReq.getSession(); String sAction = (String) m_classReq.getParameter("pageAction"); if (sAction == null) sAction = ""; // do below for versioning to check whether these two have changed ...
private void doValidateVD() throws Exception { HttpSession session = m_classReq.getSession(); String sAction = (String) m_classReq.getParameter("pageAction"); if (sAction == null) sAction = ""; // do below for versioning to check whether these two have changed ...
diff --git a/hk2/hk2-locator/src/main/java/org/jvnet/hk2/internal/SingletonContext.java b/hk2/hk2-locator/src/main/java/org/jvnet/hk2/internal/SingletonContext.java index 8c35bd420..d0a3fe24b 100644 --- a/hk2/hk2-locator/src/main/java/org/jvnet/hk2/internal/SingletonContext.java +++ b/hk2/hk2-locator/src/main/java/org/...
false
true
public <T> T findOrCreate(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root) { if (activeDescriptor.isCacheSet()) return activeDescriptor.getCache(); T t = activeDescriptor.create(root); activeDescriptor.setCache(t); return t; }
public <T> T findOrCreate(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root) { if (activeDescriptor.isCacheSet()) return activeDescriptor.getCache(); synchronized(activeDescriptor) { T t = activeDescriptor.create(root); activeDescriptor.setCache...
diff --git a/grails-app/services/org/chai/kevin/value/ValueService.java b/grails-app/services/org/chai/kevin/value/ValueService.java index a8805cf3..500d0ee2 100644 --- a/grails-app/services/org/chai/kevin/value/ValueService.java +++ b/grails-app/services/org/chai/kevin/value/ValueService.java @@ -1,256 +1,256 @@ pack...
false
true
public <T extends DataValue> List<T> searchDataElementValues(String text, DataElement<T> data, DataLocation dataLocation, Period period, Map<String, Object> params) { if (log.isDebugEnabled()) log.debug("searchDataElementValues(text="+text+", data="+data+", period="+period+", dataLocation="+dataLocation+")"); Crit...
public <T extends DataValue> List<T> searchDataValues(String text, DataElement<T> data, DataLocation dataLocation, Period period, Map<String, Object> params) { if (log.isDebugEnabled()) log.debug("searchDataValues(text="+text+", data="+data+", period="+period+", dataLocation="+dataLocation+")"); Criteria criteria ...
diff --git a/src/java/net/sf/jabref/groups/GroupTreeCellRenderer.java b/src/java/net/sf/jabref/groups/GroupTreeCellRenderer.java index 6aa7b8db9..47330e8ea 100644 --- a/src/java/net/sf/jabref/groups/GroupTreeCellRenderer.java +++ b/src/java/net/sf/jabref/groups/GroupTreeCellRenderer.java @@ -1,155 +1,159 @@ /* All p...
true
true
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { if (value == highlight1Cell) selected = true; // show as selected Component c = super.getTreeCellRendererComponen...
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { if (value == highlight1Cell) selected = true; // show as selected Component c = super.getTreeCellRendererComponen...
diff --git a/src/de/freiburg/uni/iig/sisi/model/ModelObject.java b/src/de/freiburg/uni/iig/sisi/model/ModelObject.java index ebdd7c9..4f7f908 100644 --- a/src/de/freiburg/uni/iig/sisi/model/ModelObject.java +++ b/src/de/freiburg/uni/iig/sisi/model/ModelObject.java @@ -1,49 +1,49 @@ package de.freiburg.uni.iig.sisi.mod...
true
true
public String toString() { if (name != null) return name; if (id != null) return id; return super.toString(); }
public String toString() { if (name != "") return name; if (id != "") return id; return super.toString(); }
diff --git a/main/src/main/java/com/bloatit/BloatitExampleDB.java b/main/src/main/java/com/bloatit/BloatitExampleDB.java index ca8252bc7..236457316 100644 --- a/main/src/main/java/com/bloatit/BloatitExampleDB.java +++ b/main/src/main/java/com/bloatit/BloatitExampleDB.java @@ -1,516 +1,528 @@ // // Copyright (c) 2011 ...
false
true
public BloatitExampleDB() throws UnauthorizedOperationException, NotEnoughMoneyException { System.setProperty("log4J.path", ConfigurationManager.SHARE_DIR + "/log"); MailServer.getInstance().initialize(); SessionManager.beginWorkUnit(); fred = createMember("fred", "Frédéric Bertolu...
public BloatitExampleDB() throws UnauthorizedOperationException, NotEnoughMoneyException { System.setProperty("log4J.path", ConfigurationManager.SHARE_DIR + "/log"); MailServer.getInstance().initialize(); SessionManager.beginWorkUnit(); fred = createMember("fred", "Frédéric Bertolu...
diff --git a/src/main/java/com/solidstategroup/radar/web/panels/PathologyPanel.java b/src/main/java/com/solidstategroup/radar/web/panels/PathologyPanel.java index abffc98b..80d15ac3 100644 --- a/src/main/java/com/solidstategroup/radar/web/panels/PathologyPanel.java +++ b/src/main/java/com/solidstategroup/radar/web/pane...
true
true
public PathologyPanel(String id, final IModel<Long> radarNumberModel) { super(id); setOutputMarkupId(true); setOutputMarkupPlaceholderTag(true); // Model for tha pathology container, the pathology ID final IModel<Pathology> pathologyModel = new Model<Pathology>(); I...
public PathologyPanel(String id, final IModel<Long> radarNumberModel) { super(id); setOutputMarkupId(true); setOutputMarkupPlaceholderTag(true); // Model for tha pathology container, the pathology ID final IModel<Pathology> pathologyModel = new Model<Pathology>(); I...
diff --git a/src/main/java/be/Balor/Manager/Permissions/PermParent.java b/src/main/java/be/Balor/Manager/Permissions/PermParent.java index e9c01f9f..37359897 100644 --- a/src/main/java/be/Balor/Manager/Permissions/PermParent.java +++ b/src/main/java/be/Balor/Manager/Permissions/PermParent.java @@ -1,164 +1,164 @@ /***...
false
true
void registerPermission() { if (registered) return; if (permName == null) return; for (PermChild child : children) child.registerPermission(); final Permission perm = ACPluginManager.getServer().getPluginManager() .getPermission(permName); if (perm == null) ACPluginManager.getServer().getPlug...
void registerPermission() { if (registered) return; for (PermChild child : children) child.registerPermission(); if (permName == null) return; final Permission perm = ACPluginManager.getServer().getPluginManager() .getPermission(permName); if (perm == null) ACPluginManager.getServer().getP...
diff --git a/src/com/jidesoft/plaf/basic/BasicJidePopupMenuUI.java b/src/com/jidesoft/plaf/basic/BasicJidePopupMenuUI.java index a9d14212..15b39d43 100644 --- a/src/com/jidesoft/plaf/basic/BasicJidePopupMenuUI.java +++ b/src/com/jidesoft/plaf/basic/BasicJidePopupMenuUI.java @@ -1,56 +1,56 @@ /* * @(#)BasicJidePopupM...
false
true
public static Popup addScrollPaneIfNecessary(JPopupMenu popupMenu, int x, int y) { if (popupMenu instanceof JidePopupMenu && popupMenu.getPreferredSize().height != ((JidePopupMenu) popupMenu).getPreferredScrollableViewportSize().height) { if (popupMenu.getLayout() instanceof DefaultMenuLayout) {...
public static Popup addScrollPaneIfNecessary(JPopupMenu popupMenu, int x, int y) { SimpleScrollPane contents = new SimpleScrollPane(popupMenu, SimpleScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, SimpleScrollPane.HORIZONTAL_SCROLLBAR_NEVER); if (popupMenu instanceof JidePopupMenu && popupMenu.getPreferred...
diff --git a/ini/trakem2/display/Stack.java b/ini/trakem2/display/Stack.java index 45135dda..ad10811d 100644 --- a/ini/trakem2/display/Stack.java +++ b/ini/trakem2/display/Stack.java @@ -1,555 +1,556 @@ /** * */ package ini.trakem2.display; import ij.IJ; import ij.ImagePlus; import ij.process.ImageProcessor...
false
true
public void paint( final Graphics2D g, final double magnification, final boolean active, final int channels, final Layer active_layer ) { final AffineTransform atp = new AffineTransform( this.at ); //final Image image = project.getLoader().fetchImage(this,0); //Utils.log2("Patch " + id + " pa...
public void paint( final Graphics2D g, final double magnification, final boolean active, final int channels, final Layer active_layer ) { final AffineTransform atp = new AffineTransform( this.at ); //final Image image = project.getLoader().fetchImage(this,0); //Utils.log2("Patch " + id + " pa...
diff --git a/TheAdventure/src/se/chalmers/kangaroo/view/KangarooAnimation.java b/TheAdventure/src/se/chalmers/kangaroo/view/KangarooAnimation.java index 6b3f3a8..798d4a5 100644 --- a/TheAdventure/src/se/chalmers/kangaroo/view/KangarooAnimation.java +++ b/TheAdventure/src/se/chalmers/kangaroo/view/KangarooAnimation.java...
false
true
public void drawSprite(Graphics g, int x, int y) { if (tick == 9) { tick = 0; currentFrame++; currentFrame = (currentFrame % 3); } if (kangaroo.getVerticalSpeed() != 0) { if(kangaroo.getDirection() == Direction.DIRECTION_EAST) { g.drawImage(rightSheet, (x-widthPerFrame/2)+10, y-height, (x+widthPe...
public void drawSprite(Graphics g, int x, int y) { if (tick == 9) { tick = 0; currentFrame++; currentFrame = (currentFrame % 3); } if (kangaroo.getVerticalSpeed() != 0) { if(kangaroo.getDirection() == Direction.DIRECTION_EAST) { g.drawImage(rightSheet, (x-widthPerFrame/2)+10, y-height, (x+widthPe...
diff --git a/src/uk/org/ponder/rsf/renderer/html/HeadCollectingSCR.java b/src/uk/org/ponder/rsf/renderer/html/HeadCollectingSCR.java index 326518a..6b7d344 100644 --- a/src/uk/org/ponder/rsf/renderer/html/HeadCollectingSCR.java +++ b/src/uk/org/ponder/rsf/renderer/html/HeadCollectingSCR.java @@ -1,71 +1,72 @@ /* * C...
true
true
public int render(XMLLump lump, XMLLumpList collected, XMLWriter xmlw) { PrintOutputStream pos = xmlw.getInternalWriter(); RenderUtil.dumpTillLump(lump.parent.lumps, lump.lumpindex, lump.open_end.lumpindex + 1, pos); Set used = new HashSet(); for (int i = 0; i < collected.size(); ++i) { ...
public int render(XMLLump lump, XMLLumpList collected, XMLWriter xmlw) { PrintOutputStream pos = xmlw.getInternalWriter(); RenderUtil.dumpTillLump(lump.parent.lumps, lump.lumpindex, lump.open_end.lumpindex + 1, pos); Set used = new HashSet(); for (int i = 0; i < collected.size(); ++i) { ...
diff --git a/src/main/java/org/jboss/modcluster/mcmp/impl/DefaultMCMPHandler.java b/src/main/java/org/jboss/modcluster/mcmp/impl/DefaultMCMPHandler.java index 4702834e..e0fd5506 100644 --- a/src/main/java/org/jboss/modcluster/mcmp/impl/DefaultMCMPHandler.java +++ b/src/main/java/org/jboss/modcluster/mcmp/impl/DefaultMC...
true
true
private String sendRequest(MCMPRequest request, Proxy proxy) { // If there was an error, do nothing until the next periodic event, where the whole configuration // will be refreshed if (proxy.getState() != Proxy.State.OK) return null; if (log.isTraceEnabled()) { log.trace(S...
private String sendRequest(MCMPRequest request, Proxy proxy) { // If there was an error, do nothing until the next periodic event, where the whole configuration // will be refreshed if (proxy.getState() != Proxy.State.OK) return null; if (log.isTraceEnabled()) { log.trace(S...
diff --git a/fds/src/main/java/org/intalio/tempo/workflow/fds/core/WorkflowProcessesMessageConvertor.java b/fds/src/main/java/org/intalio/tempo/workflow/fds/core/WorkflowProcessesMessageConvertor.java index 22ca3a9a..bc5e916b 100644 --- a/fds/src/main/java/org/intalio/tempo/workflow/fds/core/WorkflowProcessesMessageCon...
false
true
public void convertMessage(Document message, String userProcessNamespaceUri) throws MessageFormatException { XPath xpathSelector = DocumentHelper.createXPath("/soapenv:Envelope/soapenv:Body/soapenv:Fault"); xpathSelector.setNamespaceURIs(MessageConstants.get_nsMap()); List fault = xpathSe...
public void convertMessage(Document message, String userProcessNamespaceUri) throws MessageFormatException { XPath xpathSelector = DocumentHelper.createXPath("/soapenv:Envelope/soapenv:Body/soapenv:Fault"); xpathSelector.setNamespaceURIs(MessageConstants.get_nsMap()); List fault = xpathSe...
diff --git a/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java b/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java index 153bfaf..921ffae 100644 --- a/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java +++ b/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java @@ -1,863 +1,864 @@ /* *...
true
true
public BufferedImage convertToImage(int imageType, int resolution) throws IOException { PDRectangle cropBox = findCropBox(); float widthPt = cropBox.getWidth(); float heightPt = cropBox.getHeight(); float scaling = resolution / (float)DEFAULT_USER_SPACE_UNIT_DPI; int widt...
public BufferedImage convertToImage(int imageType, int resolution) throws IOException { PDRectangle cropBox = findCropBox(); float widthPt = cropBox.getWidth(); float heightPt = cropBox.getHeight(); float scaling = resolution / (float)DEFAULT_USER_SPACE_UNIT_DPI; int widt...
diff --git a/eclipse/plugins/net.sf.orcc.backends/src/net/sf/orcc/backends/xlim/transform/UnaryListRemoval.java b/eclipse/plugins/net.sf.orcc.backends/src/net/sf/orcc/backends/xlim/transform/UnaryListRemoval.java index 0903faadb..7bcbb53e4 100644 --- a/eclipse/plugins/net.sf.orcc.backends/src/net/sf/orcc/backends/xlim/...
true
true
public Void casePattern(Pattern pattern) { List<Port> ports = new ArrayList<Port>(pattern.getPorts()); for (Port port : ports) { if (pattern.getNumTokens(port) == 1) { Var var = pattern.getVariable(port); // Transform in scalar variable var.setType(((TypeList) var.getType()).getInnermostType()); ...
public Void casePattern(Pattern pattern) { List<Port> ports = new ArrayList<Port>(pattern.getPorts()); for (Port port : ports) { if (pattern.getNumTokens(port) == 1) { Var var = pattern.getVariable(port); // Transform in scalar variable var.setType(((TypeList) var.getType()).getInnermostType()); ...
diff --git a/src/main/java/ar/edu/itba/paw/grupo1/controller/QueryServlet.java b/src/main/java/ar/edu/itba/paw/grupo1/controller/QueryServlet.java index 8f60fb4..b2df453 100644 --- a/src/main/java/ar/edu/itba/paw/grupo1/controller/QueryServlet.java +++ b/src/main/java/ar/edu/itba/paw/grupo1/controller/QueryServlet.java...
false
true
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String operation = req.getParameter("operation"); String property = req.getParameter("property"); String rangeFrom = req.getParameter("rangeFrom"); String rangeTo = req.getParameter("rangeTo"); ...
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String operation = req.getParameter("operation"); String property = req.getParameter("property"); String rangeFrom = req.getParameter("rangeFrom"); String rangeTo = req.getParameter("rangeTo"); ...
diff --git a/deegree-services/src/main/java/org/deegree/services/wms/StyleRegistry.java b/deegree-services/src/main/java/org/deegree/services/wms/StyleRegistry.java index abbd37910d..41a6847283 100644 --- a/deegree-services/src/main/java/org/deegree/services/wms/StyleRegistry.java +++ b/deegree-services/src/main/java/o...
false
true
public void load( String layerName, XMLAdapter adapter, List<SLDStyleType> styles ) { for ( SLDStyleType sty : styles ) { try { File file = new File( adapter.resolve( sty.getFile() ).toURI() ); String namedLayer = sty.getNamedLayer(); LOG.debug( "W...
public void load( String layerName, XMLAdapter adapter, List<SLDStyleType> styles ) { for ( SLDStyleType sty : styles ) { try { File file = new File( adapter.resolve( sty.getFile() ).toURI() ); String namedLayer = sty.getNamedLayer(); LOG.debug( "W...
diff --git a/net/sf/mpxj/mpp/CompObj.java b/net/sf/mpxj/mpp/CompObj.java index cb678b8..a16bd30 100644 --- a/net/sf/mpxj/mpp/CompObj.java +++ b/net/sf/mpxj/mpp/CompObj.java @@ -1,110 +1,113 @@ /* * file: CompObj.java * author: Jon Iles * copyright: (c) Tapster Rock Limited 2002-2003 * date: 07...
true
true
CompObj (InputStream is) throws IOException { int length; is.skip(28); length = readInt(is); m_applicationName = new String (readByteArray(is, length), 0, length-1); if (m_applicationName != null && m_applicationName.equals("Microsoft Project 4.0") == true) { ...
CompObj (InputStream is) throws IOException { int length; is.skip(28); length = readInt(is); m_applicationName = new String (readByteArray(is, length), 0, length-1); if (m_applicationName != null && m_applicationName.equals("Microsoft Project 4.0") == true) { ...
diff --git a/src/zapfmaster2000-service/src/main/java/de/kile/zapfmaster2000/rest/impl/core/push/PushServiceImpl.java b/src/zapfmaster2000-service/src/main/java/de/kile/zapfmaster2000/rest/impl/core/push/PushServiceImpl.java index 9b412425..5d056dd5 100644 --- a/src/zapfmaster2000-service/src/main/java/de/kile/zapfmast...
false
true
private void sendViaGcm(Object entity, Long... userIds) { // collect the gcm tokens we want to send the entity to Session session = Zapfmaster2000Core.INSTANCE.getTransactionService() .getSessionFactory().getCurrentSession(); Transaction tx = session.beginTransaction(); Set<String> gcmTokens = new HashSe...
private void sendViaGcm(Object entity, Long... userIds) { // collect the gcm tokens we want to send the entity to Session session = Zapfmaster2000Core.INSTANCE.getTransactionService() .getSessionFactory().getCurrentSession(); Transaction tx = session.beginTransaction(); Set<String> gcmTokens = new HashSe...
diff --git a/src/de/schildbach/pte/AbstractHafasProvider.java b/src/de/schildbach/pte/AbstractHafasProvider.java index 9836e974..3413a936 100644 --- a/src/de/schildbach/pte/AbstractHafasProvider.java +++ b/src/de/schildbach/pte/AbstractHafasProvider.java @@ -1,888 +1,890 @@ /* * Copyright 2010 the original author or...
true
true
public QueryConnectionsResult queryConnections(Location from, Location via, Location to, final Date date, final boolean dep, final String products, final WalkSpeed walkSpeed) throws IOException { if (from.type == LocationType.ANY) { final List<Location> autocompletes = autocompleteStations(from.name); if...
public QueryConnectionsResult queryConnections(Location from, Location via, Location to, final Date date, final boolean dep, final String products, final WalkSpeed walkSpeed) throws IOException { if (from.type == LocationType.ANY) { final List<Location> autocompletes = autocompleteStations(from.name); if...
diff --git a/src/ecprac/era270/NeuralGenome.java b/src/ecprac/era270/NeuralGenome.java index 3049037..483bac2 100644 --- a/src/ecprac/era270/NeuralGenome.java +++ b/src/ecprac/era270/NeuralGenome.java @@ -1,26 +1,24 @@ package ecprac.era270; import java.util.Arrays; //import ecprac.torcs.genome.IGenome; public ...
true
true
public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof NeuralGenome)) return false; NeuralGenome other = (NeuralGenome)o; return Arrays.equals(network.inputLayer, other.network.inputLayer) && Arrays.equals(network.hiddenLayer, othe...
public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof NeuralGenome)) return false; NeuralGenome other = (NeuralGenome)o; return Arrays.equals(network.getWeights(), other.network.getWeights()); }
diff --git a/src/servlets/EditQuestionServlet.java b/src/servlets/EditQuestionServlet.java index 45ec564..06aba09 100644 --- a/src/servlets/EditQuestionServlet.java +++ b/src/servlets/EditQuestionServlet.java @@ -1,72 +1,76 @@ //Created By Ilan Godik package servlets; import db.DB; import db.RealDB; import model...
false
true
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { req.setCharacterEncoding("UTF-8"); resp.setCharacterEncoding("UTF-8"); HttpSession session = req.getSession(); User adminUser = (User) session.getAttribute("user"); ...
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { req.setCharacterEncoding("UTF-8"); resp.setCharacterEncoding("UTF-8"); HttpSession session = req.getSession(); User adminUser = (User) session.getAttribute("user"); ...
diff --git a/src/main/java/org/jenkinsci/plugins/multiplescms/MultiSCM.java b/src/main/java/org/jenkinsci/plugins/multiplescms/MultiSCM.java index 53c81b5..0bf835d 100644 --- a/src/main/java/org/jenkinsci/plugins/multiplescms/MultiSCM.java +++ b/src/main/java/org/jenkinsci/plugins/multiplescms/MultiSCM.java @@ -1,206 +...
true
true
public boolean checkout(AbstractBuild<?, ?> build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile) throws IOException, InterruptedException { MultiSCMRevisionState revisionState = new MultiSCMRevisionState(); build.addAction(revisionState); HashSet<Object> scmAction...
public boolean checkout(AbstractBuild<?, ?> build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile) throws IOException, InterruptedException { MultiSCMRevisionState revisionState = new MultiSCMRevisionState(); build.addAction(revisionState); HashSet<Object> scmAction...
diff --git a/hangeulreader/src/se/iroiro/md/hangeulreader/HangeulReaderTest.java b/hangeulreader/src/se/iroiro/md/hangeulreader/HangeulReaderTest.java index 5bf25ab..07d973a 100644 --- a/hangeulreader/src/se/iroiro/md/hangeulreader/HangeulReaderTest.java +++ b/hangeulreader/src/se/iroiro/md/hangeulreader/HangeulReaderT...
true
true
public String test(String characters, Font font, JamoReferenceDB jrdb){ DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd H:m:ss"); StringBuilder result = new StringBuilder(); result.append("Character images rendered using font \""+font.getName()+"\" at "+CHARSIZE+"x"+CHARSIZE+" pixels.\n"); result.appe...
public String test(String characters, Font font, JamoReferenceDB jrdb){ DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); StringBuilder result = new StringBuilder(); result.append("Character images rendered using font \""+font.getName()+"\" at "+CHARSIZE+"x"+CHARSIZE+" pixels.\n"); result.ap...
diff --git a/api/src/main/java/org/jboss/marshalling/reflect/SerializableField.java b/api/src/main/java/org/jboss/marshalling/reflect/SerializableField.java index dfe86bf..701ee18 100644 --- a/api/src/main/java/org/jboss/marshalling/reflect/SerializableField.java +++ b/api/src/main/java/org/jboss/marshalling/reflect/Se...
false
true
public Field getField() { final WeakReference<Field> fieldRef = fieldRefRef.get(); if (fieldRef == null) { final Field field = lookupField(); if (field != null) { fieldRefRef.compareAndSet(null, new WeakReference<Field>(field)); } Acces...
public Field getField() { final WeakReference<Field> fieldRef = fieldRefRef.get(); if (fieldRef == null) { final Field field = lookupField(); if (field != null) { fieldRefRef.compareAndSet(null, new WeakReference<Field>(field)); AccessControlle...
diff --git a/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editparts/BPELTrayAccessibleEditPart.java b/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editparts/BPELTrayAccessibleEditPart.java index 6cc81d0c..9621cf92 100644 --- a/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editparts/BPELTrayAccessibl...
true
true
public void getName(AccessibleEvent e) { String childType = null; String displayName = null; ILabeledElement labeledElement = BPELUtil.adapt(part.getModel(), ILabeledElement.class); if (labeledElement != null) { childType = labeledElement.getTypeLabel(part.getModel()); displayName = labeledElement.getLab...
public void getName(AccessibleEvent e) { String childType = null; String displayName = null; ILabeledElement labeledElement = BPELUtil.adapt(part.getModel(), ILabeledElement.class); if (labeledElement != null) { childType = labeledElement.getTypeLabel(part.getModel()); displayName = labeledElement.getLab...
diff --git a/org.orbisgis.geocatalog/src/main/java/org/orbisgis/geocatalog/Activator.java b/org.orbisgis.geocatalog/src/main/java/org/orbisgis/geocatalog/Activator.java index e5c185a24..79a8e83a1 100644 --- a/org.orbisgis.geocatalog/src/main/java/org/orbisgis/geocatalog/Activator.java +++ b/org.orbisgis.geocatalog/src/...
false
true
public boolean allowStop() { GeoCatalog geoCatalog = (GeoCatalog) EPWindowHelper .getWindows("org.orbisgis.geocatalog.Window")[0]; Catalog catalog = geoCatalog.getCatalog(); IResource[] res = catalog.getTreeModel().getNodes(new NodeFilter() { public boolean accept(IResource resource) { return true; ...
public boolean allowStop() { GeoCatalog geoCatalog = (GeoCatalog) EPWindowHelper .getWindows("org.orbisgis.geocatalog.Window")[0]; Catalog catalog = geoCatalog.getCatalog(); IResource[] res = catalog.getTreeModel().getNodes(new NodeFilter() { public boolean accept(IResource resource) { return true; ...
diff --git a/src/main/java/de/cismet/security/exceptions/AuthenticationCanceledException.java b/src/main/java/de/cismet/security/exceptions/AuthenticationCanceledException.java index 28426f6..92e5568 100644 --- a/src/main/java/de/cismet/security/exceptions/AuthenticationCanceledException.java +++ b/src/main/java/de/cis...
true
true
public AuthenticationCanceledException() { super(java.util.ResourceBundle.getBundle("de/cismet/cismap/commons/GuiBundle").getString("Exception.AuthenticationCanceledException")); }
public AuthenticationCanceledException() { super("The HTTP authentication was canceled by user"); }
diff --git a/src/main/java/com/cgbystrom/Server.java b/src/main/java/com/cgbystrom/Server.java index 1d76026..fdfaaaf 100644 --- a/src/main/java/com/cgbystrom/Server.java +++ b/src/main/java/com/cgbystrom/Server.java @@ -1,77 +1,77 @@ package com.cgbystrom; import org.jboss.netty.bootstrap.ServerBootstrap; import ...
true
true
public static void main(String[] args) { final HttpHandler handler = new HttpHandler(); int numThreads = 2 * Runtime.getRuntime().availableProcessors(); int backlog = 128; int port = 8080; if (System.getProperty("threads") != null) numThreads = Integer.valueOf(Sy...
public static void main(String[] args) { final HttpHandler handler = new HttpHandler(); int numThreads = 2 * Runtime.getRuntime().availableProcessors(); int backlog = 128; int port = 8080; if (System.getProperty("threads") != null) numThreads = Integer.valueOf(Sy...
diff --git a/src/com/android/settings/ChooseLockGeneric.java b/src/com/android/settings/ChooseLockGeneric.java index d589aa3d2..ea15f9e6e 100644 --- a/src/com/android/settings/ChooseLockGeneric.java +++ b/src/com/android/settings/ChooseLockGeneric.java @@ -1,362 +1,360 @@ /* * Copyright (C) 2010 The Android Open Sou...
false
true
void updateUnlockMethodAndFinish(int quality, boolean disabled) { // Sanity check. We should never get here without confirming user's existing password. if (!mPasswordConfirmed) { throw new IllegalStateException("Tried to update password without confirming it"); ...
void updateUnlockMethodAndFinish(int quality, boolean disabled) { // Sanity check. We should never get here without confirming user's existing password. if (!mPasswordConfirmed) { throw new IllegalStateException("Tried to update password without confirming it"); ...
diff --git a/jsf-api/src/javax/faces/component/UIViewRoot.java b/jsf-api/src/javax/faces/component/UIViewRoot.java index 78327908f..8596a42af 100644 --- a/jsf-api/src/javax/faces/component/UIViewRoot.java +++ b/jsf-api/src/javax/faces/component/UIViewRoot.java @@ -1,1319 +1,1323 @@ /* * $Id: UIViewRoot.java,v 1.50.8...
false
true
private void broadcastEvents(FacesContext context, PhaseId phaseId) { if (null == events) { // no events have been queued return; } boolean hasMoreAnyPhaseEvents; boolean hasMoreCurrentPhaseEvents; List<FacesEvent> eventsForPhaseId = eve...
private void broadcastEvents(FacesContext context, PhaseId phaseId) { if (null == events) { // no events have been queued return; } boolean hasMoreAnyPhaseEvents; boolean hasMoreCurrentPhaseEvents; List<FacesEvent> eventsForPhaseId = eve...
diff --git a/src/org/apache/xerces/util/URI.java b/src/org/apache/xerces/util/URI.java index 950310fcc..9285416df 100644 --- a/src/org/apache/xerces/util/URI.java +++ b/src/org/apache/xerces/util/URI.java @@ -1,1994 +1,1994 @@ /* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999-2003 The Apac...
true
true
private void initialize(URI p_base, String p_uriSpec) throws MalformedURIException { String uriSpec = (p_uriSpec != null) ? p_uriSpec.trim() : null; int uriSpecLen = (uriSpec != null) ? uriSpec.length() : 0; if (p_base == null && uriSpecLen == 0) { throw new MalformedU...
private void initialize(URI p_base, String p_uriSpec) throws MalformedURIException { String uriSpec = p_uriSpec; int uriSpecLen = (uriSpec != null) ? uriSpec.length() : 0; if (p_base == null && uriSpecLen == 0) { throw new MalformedURIException( "Cann...
diff --git a/miner/src/java/ru/brandanalyst/miner/GrabberTwitter.java b/miner/src/java/ru/brandanalyst/miner/GrabberTwitter.java index d075275..47104de 100644 --- a/miner/src/java/ru/brandanalyst/miner/GrabberTwitter.java +++ b/miner/src/java/ru/brandanalyst/miner/GrabberTwitter.java @@ -1,157 +1,160 @@ package ru.bra...
false
true
public void grab(Date timeLimit) { log.info("Twitter grabber started..."); Twitter twitter = new TwitterFactory().getInstance(); List<Brand> brandList = new BrandProvider(jdbcTemplate).getAllBrands(); ArticleProvider articleProvider = new ArticleProvider(jdbcTemplate); Brand...
public void grab(Date timeLimit) { log.info("Twitter grabber started..."); Twitter twitter = new TwitterFactory().getInstance(); List<Brand> brandList = new BrandProvider(jdbcTemplate).getAllBrands(); ArticleProvider articleProvider = new ArticleProvider(jdbcTemplate); Brand...
diff --git a/src/fractalFlameV3/Main.java b/src/fractalFlameV3/Main.java index 566522d..a7d2b78 100644 --- a/src/fractalFlameV3/Main.java +++ b/src/fractalFlameV3/Main.java @@ -1,220 +1,219 @@ package fractalFlameV3; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.FileNotFoundExcepti...
false
true
public void keyPressed() { stopThreads(); switch (key) { case 'h': case 'H': ss = (ss == 1) ? SS_MAX : 1; h = null; System.gc(); h = newHistogram(); System.out.println("# SS\t|\t " + ss); break; case 'r': case 'R': genome = newGenome(); h.reset(); break; case 't': case 'T':...
public void keyPressed() { stopThreads(); switch (keyCode) { case 'h': case 'H': ss = (ss == 1) ? SS_MAX : 1; h = null; System.gc(); h = newHistogram(); System.out.println("# SS\t|\t " + ss); break; case 'r': case 'R': genome = newGenome(); h.reset(); break; case 't': case ...
diff --git a/editor/tools/plugins/com.google.dart.tools.debug.ui/src/com/google/dart/tools/debug/ui/launch/DartRunLastAction.java b/editor/tools/plugins/com.google.dart.tools.debug.ui/src/com/google/dart/tools/debug/ui/launch/DartRunLastAction.java index 02f4449b5..efe97c203 100644 --- a/editor/tools/plugins/com.google...
true
true
public void run() { try { List<ILaunchConfiguration> launches = LaunchUtils.getAllLaunches(); if (launches.size() != 0) { ILaunchConfiguration launchConfig = LaunchUtils.chooseLatest(launches); launch(launchConfig); } else { DartRunAction dartRunAction = new DartRunA...
public void run() { try { List<ILaunchConfiguration> launches = LaunchUtils.getAllLaunches(); if (launches.size() != 0) { ILaunchConfiguration launchConfig = LaunchUtils.chooseLatest(launches); if (launchConfig != null) { launch(launchConfig); } } else { ...
diff --git a/SoarSuite/Environments/JavaTankSoar/source/tanksoar/InputLinkManager.java b/SoarSuite/Environments/JavaTankSoar/source/tanksoar/InputLinkManager.java index ffd81ad36..beb14ac48 100644 --- a/SoarSuite/Environments/JavaTankSoar/source/tanksoar/InputLinkManager.java +++ b/SoarSuite/Environments/JavaTankSoar/s...
true
true
void write() { MapPoint location = m_Tank.getLocation(); TankSoarCell cell = m_World.getCell(location); String energyRecharger = cell.isEnergyRecharger() ? kYes : kNo; String healthRecharger = cell.isHealthRecharger() ? kYes : kNo; if (m_Reset) { m_EnergyRechargerWME = CreateStringWME(m_InputLink, kEn...
void write() { MapPoint location = m_Tank.getLocation(); TankSoarCell cell = m_World.getCell(location); String energyRecharger = cell.isEnergyRecharger() ? kYes : kNo; String healthRecharger = cell.isHealthRecharger() ? kYes : kNo; if (m_Reset) { m_EnergyRechargerWME = CreateStringWME(m_InputLink, kEn...
diff --git a/cyklotron-ui/src/main/java/net/cyklotron/cms/modules/views/documents/ProposeDocument.java b/cyklotron-ui/src/main/java/net/cyklotron/cms/modules/views/documents/ProposeDocument.java index 805d4b5bb..d7f1c2bd5 100644 --- a/cyklotron-ui/src/main/java/net/cyklotron/cms/modules/views/documents/ProposeDocument....
true
true
public boolean checkAccessRights(Context context) throws ProcessingException { TemplatingContext templatingContext = context.getAttribute(TemplatingContext.class); String result = (String)templatingContext.get("result"); if("exception".equals(result)) { return...
public boolean checkAccessRights(Context context) throws ProcessingException { TemplatingContext templatingContext = context.getAttribute(TemplatingContext.class); String result = (String)templatingContext.get("result"); if("exception".equals(result)) { return...
diff --git a/src/main/java/com/drtshock/willie/command/misc/HelpCommandHandler.java b/src/main/java/com/drtshock/willie/command/misc/HelpCommandHandler.java index 0e0e979..ef857eb 100755 --- a/src/main/java/com/drtshock/willie/command/misc/HelpCommandHandler.java +++ b/src/main/java/com/drtshock/willie/command/misc/Hel...
true
true
public void handle(Willie bot, Channel channel, User sender, String[] args) { String cmdPrefix = bot.getConfig().getCommandPrefix(); for (Command command : bot.commandManager.getCommands()) { sender.sendMessage(cmdPrefix + command.getName() + " - " + command.getHelp()); } }
public void handle(Willie bot, Channel channel, User sender, String[] args) { String cmdPrefix = bot.getConfig().getCommandPrefix(); for (Command command : bot.commandManager.getCommands()) { if (command.isAdminOnly() && channel.getOps().contains(sender)) { sender.sendMessage(cmdP...
diff --git a/server-coreless/src/main/java/cybervillains/ca/KeyStoreManager.java b/server-coreless/src/main/java/cybervillains/ca/KeyStoreManager.java index 69326d35..9253307a 100755 --- a/server-coreless/src/main/java/cybervillains/ca/KeyStoreManager.java +++ b/server-coreless/src/main/java/cybervillains/ca/KeyStoreMa...
true
true
public KeyStoreManager(File root) { this.root = root; Security.insertProviderAt(new BouncyCastleProvider(), 2); _sr = new SecureRandom(); try { _rsaKpg = KeyPairGenerator.getInstance(RSA_KEYGEN_ALGO); _dsaKpg = KeyPairGenerator.getInstance(DSA_KEYGEN_ALGO); } catch(Throwable t) { ...
public KeyStoreManager(File root) { this.root = root; Security.insertProviderAt(new BouncyCastleProvider(), 2); _sr = new SecureRandom(); try { _rsaKpg = KeyPairGenerator.getInstance(RSA_KEYGEN_ALGO); _dsaKpg = KeyPairGenerator.getInstance(DSA_KEYGEN_ALGO); } catch(Throwable t) { ...
diff --git a/src/main/java/com/concursive/connect/web/modules/messages/portlets/composePrivateMessage/SavePrivateMessageAction.java b/src/main/java/com/concursive/connect/web/modules/messages/portlets/composePrivateMessage/SavePrivateMessageAction.java index 6953842..8b98345 100644 --- a/src/main/java/com/concursive/co...
true
true
public GenericBean processAction(ActionRequest request, ActionResponse response) throws Exception { // Determine the project container to use Project project = findProject(request); if (project == null) { throw new Exception("Project is null"); } // Check the user's permissions User use...
public GenericBean processAction(ActionRequest request, ActionResponse response) throws Exception { // Determine the project container to use Project project = findProject(request); if (project == null) { throw new Exception("Project is null"); } // Check the user's permissions User use...
diff --git a/src/main/java/mmo/Core/MMOPlugin.java b/src/main/java/mmo/Core/MMOPlugin.java index 074c296..2722812 100644 --- a/src/main/java/mmo/Core/MMOPlugin.java +++ b/src/main/java/mmo/Core/MMOPlugin.java @@ -1,875 +1,878 @@ /* * This file is part of mmoMinecraft (https://github.com/mmoMinecraftDev). * * mmo...
false
true
public void onEnable() { if (this instanceof MMOCore) { mmoCore = (MMOCore) this; } plugin = this; logger = Logger.getLogger("Minecraft"); description = getDescription(); server = getServer(); pm = server.getPluginManager(); title = description.getName().replace("^mmo", ""); prefix = ChatColor.GRE...
public void onEnable() { if (this instanceof MMOCore) { mmoCore = (MMOCore) this; } plugin = this; logger = Logger.getLogger("Minecraft"); description = getDescription(); server = getServer(); pm = server.getPluginManager(); title = description.getName().replace("^mmo", ""); prefix = ChatColor.GRE...
diff --git a/iudex-simhash/src/main/java/iudex/simhash/brutefuzzy/FuzzyList64.java b/iudex-simhash/src/main/java/iudex/simhash/brutefuzzy/FuzzyList64.java index 76bd7aa2..5cd1d20e 100644 --- a/iudex-simhash/src/main/java/iudex/simhash/brutefuzzy/FuzzyList64.java +++ b/iudex-simhash/src/main/java/iudex/simhash/brutefuzz...
true
true
void store( final long key ) { if( _length < _set.length ) { _set[ _length++ ] = key; } else { // Start chaining at 2048 total segment size if( ( _set.length < ( 128 - 8 ) ) ) { long[] snew = new long[ _set.length * 2 + 8 ]; ...
void store( final long key ) { if( _length < _set.length ) { _set[ _length++ ] = key; } else { // Start chaining at 1024 total segment size if( ( _set.length < ( 128 - 8 ) ) ) { long[] snew = new long[ _set.length * 2 + 8 ]; ...
diff --git a/Enduro/src/gui/Gui.java b/Enduro/src/gui/Gui.java index 4b5b877..3406531 100644 --- a/Enduro/src/gui/Gui.java +++ b/Enduro/src/gui/Gui.java @@ -1,157 +1,157 @@ package gui; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.Font; import java.awt.Toolkit; import java.awt.event....
true
true
public Gui(String output) { screenSize = Toolkit.getDefaultToolkit().getScreenSize(); bigFont = new Font("Times New Roman", Font.BOLD, screenSize.height / 7); setLayout(new BorderLayout()); controlNorthPanelSetUp(); textCentralPanelSetUp(); setTitle("ENDURO"); printer = new GuiPrinter(output); setD...
public Gui(String output) { screenSize = Toolkit.getDefaultToolkit().getScreenSize(); bigFont = new Font("Times New Roman", Font.BOLD, screenSize.height / 7); setLayout(new BorderLayout()); controlNorthPanelSetUp(); textCentralPanelSetUp(); setTitle("ENDURO"); printer = new GuiPrinter(output); setD...
diff --git a/UncodinCommon/src/in/uncod/android/media/widget/ImagePicker.java b/UncodinCommon/src/in/uncod/android/media/widget/ImagePicker.java index 417bae1..375eacd 100644 --- a/UncodinCommon/src/in/uncod/android/media/widget/ImagePicker.java +++ b/UncodinCommon/src/in/uncod/android/media/widget/ImagePicker.java @@ ...
false
true
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ViewGroup layoutRoot = (ViewGroup) inflater.inflate(R.layout.image_picker, container, false); mImageThumbnail = (ImageView) layoutRoot.findViewById(R.id.image_thumbnail); mCameraButton = (Im...
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ViewGroup layoutRoot = (ViewGroup) inflater.inflate(R.layout.image_picker, container, false); mImageThumbnail = (ImageView) layoutRoot.findViewById(R.id.image_thumbnail); mCameraButton = (Im...
diff --git a/raven-log4j/src/test/java/net/kencochrane/raven/log4j/SentryAppenderNGTest.java b/raven-log4j/src/test/java/net/kencochrane/raven/log4j/SentryAppenderNGTest.java index 400212d3..fd0121c1 100644 --- a/raven-log4j/src/test/java/net/kencochrane/raven/log4j/SentryAppenderNGTest.java +++ b/raven-log4j/src/test/...
true
true
public void testSimpleMesageLogging() throws Exception { final String loggerName = UUID.randomUUID().toString(); final String message = UUID.randomUUID().toString(); final String threadName = UUID.randomUUID().toString(); final Date date = new Date(1373883196416L); new Expect...
public void testSimpleMessageLogging() throws Exception { final String loggerName = UUID.randomUUID().toString(); final String message = UUID.randomUUID().toString(); final String threadName = UUID.randomUUID().toString(); final Date date = new Date(1373883196416L); new Expec...
diff --git a/src/org/hackystat/sensor/xmldata/XmlDataController.java b/src/org/hackystat/sensor/xmldata/XmlDataController.java index d98e399..5dccd68 100644 --- a/src/org/hackystat/sensor/xmldata/XmlDataController.java +++ b/src/org/hackystat/sensor/xmldata/XmlDataController.java @@ -1,172 +1,176 @@ package org.hackys...
false
true
private void processArguments() { Map<String, List<String>> optionToArgs = new HashMap<String, List<String>>(); String currentOption = ""; // Iterate through all -option <arguments>... pairings to build a mapping of // option -> arguments. for (String argument : this.arguments) { // If the ...
private void processArguments() { Map<String, List<String>> optionToArgs = new HashMap<String, List<String>>(); String currentOption = ""; // Iterate through all -option <arguments>... pairings to build a mapping of // option -> arguments. for (String argument : this.arguments) { // If the ...
diff --git a/atlas-utils/src/main/java/uk/ac/ebi/gxa/utils/NumberFormatUtil.java b/atlas-utils/src/main/java/uk/ac/ebi/gxa/utils/NumberFormatUtil.java index 152a392d7..e570e4956 100644 --- a/atlas-utils/src/main/java/uk/ac/ebi/gxa/utils/NumberFormatUtil.java +++ b/atlas-utils/src/main/java/uk/ac/ebi/gxa/utils/NumberFor...
true
true
public static String prettyFloatFormat(Float number) { DecimalFormat df = new DecimalFormat(E_PATTERN); // Examples values of auxFormat: 6.2E-3, 0E0 String auxFormat = df.format((double) number); // We now convert this format to 6.2*10<sup>-3</sup> (and 0 in the case of 0E0 specific...
public static String prettyFloatFormat(Float number) { DecimalFormat df = new DecimalFormat(E_PATTERN); // Examples values of auxFormat: 6.2E-3, 0E0 String auxFormat = df.format((double) number); // We now convert this format to 6.2*10<sup>-3</sup> (and 0 in the case of 0E0 specific...
diff --git a/src/com/redhat/ceylon/compiler/tools/LanguageCompiler.java b/src/com/redhat/ceylon/compiler/tools/LanguageCompiler.java index 7df206d70..59454a5f9 100755 --- a/src/com/redhat/ceylon/compiler/tools/LanguageCompiler.java +++ b/src/com/redhat/ceylon/compiler/tools/LanguageCompiler.java @@ -1,322 +1,322 @@ /*...
true
true
private JCCompilationUnit ceylonParse(JavaFileObject filename, CharSequence readSource) { try { String source = readSource.toString(); ANTLRStringStream input = new ANTLRStringStream(source); CeylonLexer lexer = new CeylonLexer(input); CommonTokenStream token...
private JCCompilationUnit ceylonParse(JavaFileObject filename, CharSequence readSource) { try { String source = readSource.toString(); ANTLRStringStream input = new ANTLRStringStream(source); CeylonLexer lexer = new CeylonLexer(input); CommonTokenStream token...
diff --git a/src/com/github/bjarneh/simple/mime/Content.java b/src/com/github/bjarneh/simple/mime/Content.java index b20516f..2d9f567 100644 --- a/src/com/github/bjarneh/simple/mime/Content.java +++ b/src/com/github/bjarneh/simple/mime/Content.java @@ -1,98 +1,98 @@ // Copyright © 2012 bjarneh // // This program i...
true
true
private void load() throws IOException { String path = Handy.fromSlash("resources/txt/mime.types"); URL url = getClass().getClassLoader().getResource(path); Scanner scanner = new Scanner(url.openStream()); String line; String[] tokens; while( scanner.hasNextLine() ...
private void load() throws IOException { String path = Handy.fromSlash("resources/txt/mime.types"); URL url = getClass().getClassLoader().getResource(path); Scanner scanner = new Scanner(url.openStream()); String line; String[] tokens; while( scanner.hasNextLine() ...
diff --git a/mydlp-ui-dao/src/main/java/com/mydlp/ui/dao/RevisionDAOImpl.java b/mydlp-ui-dao/src/main/java/com/mydlp/ui/dao/RevisionDAOImpl.java index d256dc14..5a441562 100644 --- a/mydlp-ui-dao/src/main/java/com/mydlp/ui/dao/RevisionDAOImpl.java +++ b/mydlp-ui-dao/src/main/java/com/mydlp/ui/dao/RevisionDAOImpl.java @...
true
true
public Long getRevisionIndex(Revision revision) { if (revision == null || revision.getId() == null) return 0L; DetachedCriteria criteria = DetachedCriteria.forClass(Revision.class) .addOrder(Order.desc("id")); @SuppressWarnings("unchecked") Revision firstRevision = DAOUtil.getSingleResult(criteria.ge...
public Long getRevisionIndex(Revision revision) { if (revision == null || revision.getId() == null) return 0L; DetachedCriteria criteria = DetachedCriteria.forClass(Revision.class) .addOrder(Order.desc("id")); @SuppressWarnings("unchecked") Revision firstRevision = (Revision) DAOUtil.getSingleResult(...
diff --git a/src/test/java/endtoend/AuctionSniperEndToEndITCase.java b/src/test/java/endtoend/AuctionSniperEndToEndITCase.java index 3c9624b..7262ac2 100644 --- a/src/test/java/endtoend/AuctionSniperEndToEndITCase.java +++ b/src/test/java/endtoend/AuctionSniperEndToEndITCase.java @@ -1,93 +1,93 @@ package endtoend; ...
true
true
public void sniperBidsForMultipleItems() throws Exception{ auction.startSellingItem(); auction2.startSellingItem(); application.startBiddingIn(auction, auction2); auction.hasReceivedJoinRequestFrom(ApplicationRunner.SNIPER_XMPP_ID); auction2.hasReceivedJoinRequestFrom(ApplicationRunner.SNIPER_XMPP_ID); ...
public void sniperBidsForMultipleItems() throws Exception{ auction.startSellingItem(); auction2.startSellingItem(); application.startBiddingIn(auction, auction2); auction.hasReceivedJoinRequestFrom(ApplicationRunner.SNIPER_XMPP_ID); auction2.hasReceivedJoinRequestFrom(ApplicationRunner.SNIPER_XMPP_ID); ...
diff --git a/pace-server/src/main/java/com/pace/settings/ui/MDBDatasourceFieldFactory.java b/pace-server/src/main/java/com/pace/settings/ui/MDBDatasourceFieldFactory.java index 3f46ebec..e1dc7336 100644 --- a/pace-server/src/main/java/com/pace/settings/ui/MDBDatasourceFieldFactory.java +++ b/pace-server/src/main/java/c...
true
true
public MDBDatasourceFieldFactory() { formOrderList.add(NAME); formOrderList.add(TOOL_TIP); formOrderList.add(CONNECTION_STRING); formOrderList.add(META_DATA_SERVICE_PROVIDER); formOrderList.add(DATA_SERVICE_PROVIDER); requiredFieldSet.add(NAME); requiredFieldSet.add(META_DATA_SERVICE_PROVIDER...
public MDBDatasourceFieldFactory() { formOrderList.add(NAME); formOrderList.add(TOOL_TIP); formOrderList.add(CONNECTION_STRING); formOrderList.add(META_DATA_SERVICE_PROVIDER); formOrderList.add(DATA_SERVICE_PROVIDER); requiredFieldSet.add(NAME); requiredFieldSet.add(META_DATA_SERVICE_PROVIDER...
diff --git a/src/org/meta_environment/rascal/interpreter/Evaluator.java b/src/org/meta_environment/rascal/interpreter/Evaluator.java index 9760fe03e4..4eeea6af7c 100644 --- a/src/org/meta_environment/rascal/interpreter/Evaluator.java +++ b/src/org/meta_environment/rascal/interpreter/Evaluator.java @@ -1,4137 +1,4137 @@...
true
true
public Result visitExpressionSubscript(Subscript x) { Result expr = x.getExpression().accept(this); Type exprType = expr.getType(); int nSubs = x.getSubscripts().size(); if (exprType.isRelationType()) { int relArity = exprType.getArity(); if(nSubs >= relArity){ throw new ArityError(exprType...
public Result visitExpressionSubscript(Subscript x) { Result expr = x.getExpression().accept(this); Type exprType = expr.getType(); int nSubs = x.getSubscripts().size(); if (exprType.isRelationType()) { int relArity = exprType.getArity(); if(nSubs >= relArity){ throw new ArityError(exprType...
diff --git a/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/context/ui/TaskListInterestSorter.java b/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/context/ui/TaskListInterestSorter.java index f2c2c877f..062f9076a 100644 --- a/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/context...
true
true
public int compare(Viewer compareViewer, Object o1, Object o2) { // OrphanedTasksContainer localArchive = TasksUiPlugin.getTaskListManager().getTaskList().getOrphanContainer( // LocalRepositoryConnector.REPOSITORY_URL); // if (o1 == localArchive && o2 instanceof AbstractTaskContainer) { // return -1; // } els...
public int compare(Viewer compareViewer, Object o1, Object o2) { // OrphanedTasksContainer localArchive = TasksUiPlugin.getTaskListManager().getTaskList().getOrphanContainer( // LocalRepositoryConnector.REPOSITORY_URL); // if (o1 == localArchive && o2 instanceof AbstractTaskContainer) { // return -1; // } els...
diff --git a/modules/dCache/org/dcache/chimera/namespace/ChimeraOsmStorageInfoExtractor.java b/modules/dCache/org/dcache/chimera/namespace/ChimeraOsmStorageInfoExtractor.java index d07f3f6919..c62c2506ef 100644 --- a/modules/dCache/org/dcache/chimera/namespace/ChimeraOsmStorageInfoExtractor.java +++ b/modules/dCache/or...
true
true
private static StorageInfo getDirStorageInfo(FsInode inode) throws CacheException { FsInode dirInode = null; if (!inode.isDirectory()) { dirInode = inode.getParent(); } else { dirInode = inode; } StorageInfo si = null; try { St...
private static StorageInfo getDirStorageInfo(FsInode inode) throws CacheException { FsInode dirInode = null; if (!inode.isDirectory()) { dirInode = inode.getParent(); } else { dirInode = inode; } StorageInfo si = null; try { St...
diff --git a/frontend/grisu-client/src/main/java/org/vpac/grisu/frontend/control/login/LoginManager.java b/frontend/grisu-client/src/main/java/org/vpac/grisu/frontend/control/login/LoginManager.java index 5009d6d6..9fa867d1 100644 --- a/frontend/grisu-client/src/main/java/org/vpac/grisu/frontend/control/login/LoginMana...
true
true
public static ServiceInterface login(GlobusCredential cred, char[] password, String username, String idp, LoginParams loginParams) throws LoginException { DependencyManager.initArcsCommonJavaLibDir(); DependencyManager.checkForBouncyCastleDependency(); Security .addProvider(new org.bouncycastle.jce.p...
public static ServiceInterface login(GlobusCredential cred, char[] password, String username, String idp, LoginParams loginParams) throws LoginException { DependencyManager.initArcsCommonJavaLibDir(); DependencyManager.checkForBouncyCastleDependency(); // Security // .addProvider(new org.bouncycastle.j...
diff --git a/nuxeo-platform-commandline-executor/src/main/java/org/nuxeo/ecm/platform/commandline/executor/service/CommandLineExecutorComponent.java b/nuxeo-platform-commandline-executor/src/main/java/org/nuxeo/ecm/platform/commandline/executor/service/CommandLineExecutorComponent.java index dc2f03a1a..2131021e5 100644...
false
true
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception { if (EP_ENV.equals(extensionPoint)) { env.merge((EnvironementDescriptor) contribution); } else if (EP_CMD.equals(extensionPoint)) { ...
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception { if (EP_ENV.equals(extensionPoint)) { env.merge((EnvironementDescriptor) contribution); } else if (EP_CMD.equals(extensionPoint)) { ...
diff --git a/pact/pact-runtime/src/main/java/eu/stratosphere/pact/runtime/task/CrossTask.java b/pact/pact-runtime/src/main/java/eu/stratosphere/pact/runtime/task/CrossTask.java index 5d7540930..3f1160a2b 100644 --- a/pact/pact-runtime/src/main/java/eu/stratosphere/pact/runtime/task/CrossTask.java +++ b/pact/pact-runtim...
true
true
private void runBlocked(MemoryManager memoryManager, IOManager ioManager, Iterator<KeyValuePair<Key, Value>> innerReader, Iterator<KeyValuePair<Key, Value>> outerReader) throws Exception { // spilling iterator for inner side SpillingResettableIterator<KeyValuePair<Key, Value>> innerInput = null; // blocke...
private void runBlocked(MemoryManager memoryManager, IOManager ioManager, Iterator<KeyValuePair<Key, Value>> innerReader, Iterator<KeyValuePair<Key, Value>> outerReader) throws Exception { // spilling iterator for inner side SpillingResettableIterator<KeyValuePair<Key, Value>> innerInput = null; // blocke...
diff --git a/modules/resin/src/com/caucho/amber/field/EntityManyToOneField.java b/modules/resin/src/com/caucho/amber/field/EntityManyToOneField.java index f3a819c41..bbeba88c8 100644 --- a/modules/resin/src/com/caucho/amber/field/EntityManyToOneField.java +++ b/modules/resin/src/com/caucho/amber/field/EntityManyToOneFi...
false
true
public void generateCopyLoadObject(JavaWriter out, String dst, String src, int updateIndex) throws IOException { // order matters: jpa/0h08, jpa/0h09 String value = generateGet(src); out.println(generateSet(dst, value) + ";"...
public void generateCopyLoadObject(JavaWriter out, String dst, String src, int updateIndex) throws IOException { // order matters: jpa/0h08, jpa/0h09 String value = generateGet(src); out.println(generateSet(dst, value) + ";"...
diff --git a/schedulemanager/src/main/java/cours/ulaval/glo4003/controller/model/SectionModel.java b/schedulemanager/src/main/java/cours/ulaval/glo4003/controller/model/SectionModel.java index e354605..12469fa 100644 --- a/schedulemanager/src/main/java/cours/ulaval/glo4003/controller/model/SectionModel.java +++ b/sched...
true
true
public SectionModel(Section section) { initialize(); this.nrc = section.getNrc(); this.group = section.getGroup(); this.personInCharge = section.getPersonInCharge(); this.teachers = section.getTeachers(); this.teachMode = section.getTeachMode().toString(); this.acronym = section.getCourseAcronym(); Ti...
public SectionModel(Section section) { initialize(); this.nrc = section.getNrc(); this.group = section.getGroup(); this.personInCharge = section.getPersonInCharge(); this.teachers = section.getTeachers(); this.teachMode = section.getTeachMode().toString(); this.acronym = section.getCourseAcronym(); Ti...
diff --git a/project/src/no/ntnu/fp/gui/EventView.java b/project/src/no/ntnu/fp/gui/EventView.java index 857d818..45f6cba 100644 --- a/project/src/no/ntnu/fp/gui/EventView.java +++ b/project/src/no/ntnu/fp/gui/EventView.java @@ -1,154 +1,153 @@ package no.ntnu.fp.gui; import java.awt.Dimension; import java.awt.Gri...
true
true
private void createPanel(){ Employee hans = new Employee("Hans", "heihei", new Date(1998,2,2), Employee.Gender.MALE); Employee geir = new Employee("Geir", "heihei", new Date(1998,2,2), Employee.Gender.MALE); Employee bjarne = new Employee("Bjarne", "heihei", new Date(1998,2,2), Employee.Gender.MALE); Employee ...
private void createPanel(){ Employee hans = new Employee("Hans", "heihei", new Date(1998,2,2), Employee.Gender.MALE); Employee geir = new Employee("Geir", "heihei", new Date(1998,2,2), Employee.Gender.MALE); Employee bjarne = new Employee("Bjarne", "heihei", new Date(1998,2,2), Employee.Gender.MALE); Employee ...
diff --git a/stage/0/gloop/Runner.java b/stage/0/gloop/Runner.java index 87dcb7d..2f565ac 100644 --- a/stage/0/gloop/Runner.java +++ b/stage/0/gloop/Runner.java @@ -1,141 +1,141 @@ // -*- mode: Java; c-basic-offset: 3; tab-width: 8; indent-tabs-mode: nil -*- // Copyright (C) 2008 Andreas Krey, Ulm, Germany <a.krey@gm...
true
true
public void run () { Object [] stack = new Object [100]; /// XXX Need some measure... int sp = 0; int pc = entry; Object acc = null; Frame tmp = null; int param = 0; Frame fp = new Frame (); fp.base = 0; fp.data = new Object [100]; fp.pc = -1; while ...
public void run () { Object [] stack = new Object [100]; /// XXX Need some measure... int sp = 0; int pc = entry; Object acc = null; Frame tmp = null; int param = 0; Frame fp = new Frame (); fp.base = 0; fp.data = new Object [100]; fp.pc = -1; while ...
diff --git a/standalone/src/main/java/org/jboss/as/console/client/domain/groups/deployment/DeploymentStep1.java b/standalone/src/main/java/org/jboss/as/console/client/domain/groups/deployment/DeploymentStep1.java index 248b1804..636f60fb 100644 --- a/standalone/src/main/java/org/jboss/as/console/client/domain/groups/de...
true
true
public Widget asWidget() { VerticalPanel layout = new VerticalPanel(); layout.getElement().setAttribute("style", "width:95%; margin:15px;"); // Create a FormPanel and point it at a service. final FormPanel form = new FormPanel(); String url = Console.MODULES.getBootstrap...
public Widget asWidget() { VerticalPanel layout = new VerticalPanel(); layout.getElement().setAttribute("style", "width:95%; margin:15px;"); // Create a FormPanel and point it at a service. final FormPanel form = new FormPanel(); String url = Console.MODULES.getBootstrap...
diff --git a/core-client/src/main/java/org/glassfish/jersey/client/ClientRequest.java b/core-client/src/main/java/org/glassfish/jersey/client/ClientRequest.java index 2ecd5ae44..22eaf6999 100644 --- a/core-client/src/main/java/org/glassfish/jersey/client/ClientRequest.java +++ b/core-client/src/main/java/org/glassfish/...
true
true
public void writeEntity() throws IOException { Preconditions.checkState(!entityWritten, LocalizationMessages.REQUEST_ENTITY_ALREADY_WRITTEN()); entityWritten = true; ensureMediaType(); final GenericType<?> entityType = new GenericType(getEntityType()); OutputStream entityStre...
public void writeEntity() throws IOException { Preconditions.checkState(!entityWritten, LocalizationMessages.REQUEST_ENTITY_ALREADY_WRITTEN()); entityWritten = true; ensureMediaType(); final GenericType<?> entityType = new GenericType(getEntityType()); OutputStream entityStre...
diff --git a/modules/plugin/geotiff/src/main/java/org/geotools/gce/geotiff/GeoTiffReader.java b/modules/plugin/geotiff/src/main/java/org/geotools/gce/geotiff/GeoTiffReader.java index 57da9adc2..df0796bc7 100644 --- a/modules/plugin/geotiff/src/main/java/org/geotools/gce/geotiff/GeoTiffReader.java +++ b/modules/plugin/g...
true
true
private void getHRInfo(Hints hints) throws DataSourceException { ImageReader reader = null; try { // // // // Get a reader for this format // // // reader = readerSPI.createReaderInstance(); // // // ...
private void getHRInfo(Hints hints) throws DataSourceException { ImageReader reader = null; try { // // // // Get a reader for this format // // // reader = readerSPI.createReaderInstance(); // // // ...
diff --git a/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java b/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java index 8ad60ae6..f0597096 100644 --- a/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java +++ b/site-manage-tool/tool/src/java/org/saka...
true
true
private String buildContextForTemplate(String preIndex, int index, VelocityPortlet portlet, Context context, RunData data, SessionState state) { String realmId = ""; String site_type = ""; String sortedBy = ""; String sortedAsc = ""; ParameterParser params = data.getParameters(); context.put("tlang", rb...
private String buildContextForTemplate(String preIndex, int index, VelocityPortlet portlet, Context context, RunData data, SessionState state) { String realmId = ""; String site_type = ""; String sortedBy = ""; String sortedAsc = ""; ParameterParser params = data.getParameters(); context.put("tlang", rb...
diff --git a/nuxeo-drive-server/nuxeo-drive-core/src/main/java/org/nuxeo/drive/listener/NuxeoDriveCacheInvalidationListener.java b/nuxeo-drive-server/nuxeo-drive-core/src/main/java/org/nuxeo/drive/listener/NuxeoDriveCacheInvalidationListener.java index 15811a53..864344cd 100644 --- a/nuxeo-drive-server/nuxeo-drive-core...
true
true
public void handleEvent(Event event) throws ClientException { DocumentEventContext docCtx; if (event.getContext() instanceof DocumentEventContext) { docCtx = (DocumentEventContext) event.getContext(); } else { // not interested in event that are not related to documen...
public void handleEvent(Event event) throws ClientException { DocumentEventContext docCtx; if (event.getContext() instanceof DocumentEventContext) { docCtx = (DocumentEventContext) event.getContext(); } else { // not interested in event that are not related to documen...
diff --git a/txtfnnl-uima/src/main/java/txtfnnl/uima/collection/AnnotationLineWriter.java b/txtfnnl-uima/src/main/java/txtfnnl/uima/collection/AnnotationLineWriter.java index 3c55871..e988716 100644 --- a/txtfnnl-uima/src/main/java/txtfnnl/uima/collection/AnnotationLineWriter.java +++ b/txtfnnl-uima/src/main/java/txtfn...
false
true
public void process(CAS cas) throws AnalysisEngineProcessException { JCas textJCas; try { textJCas = cas.getJCas(); setStream(textJCas); } catch (CASException e1) { throw new AnalysisEngineProcessException(e1); } catch (final IOException e2) { throw new AnalysisEngineProcessExc...
public void process(CAS cas) throws AnalysisEngineProcessException { JCas textJCas; try { textJCas = cas.getJCas(); setStream(textJCas); } catch (CASException e1) { throw new AnalysisEngineProcessException(e1); } catch (final IOException e2) { throw new AnalysisEngineProcessExc...
diff --git a/beam-pixel-extraction/src/main/java/org/esa/beam/pixex/visat/PixelExtractionDialog.java b/beam-pixel-extraction/src/main/java/org/esa/beam/pixex/visat/PixelExtractionDialog.java index dd8f53996..9400e1304 100644 --- a/beam-pixel-extraction/src/main/java/org/esa/beam/pixex/visat/PixelExtractionDialog.java +...
false
true
PixelExtractionDialog(AppContext appContext, String title) { super(appContext.getApplicationWindow(), title, ID_OK | ID_CLOSE | ID_HELP, "pixelExtraction"); this.appContext = appContext; AbstractButton button = getButton(ID_OK); button.setText("Extract"); button.setMnemonic...
PixelExtractionDialog(AppContext appContext, String title) { super(appContext.getApplicationWindow(), title, ID_OK | ID_CLOSE | ID_HELP, "pixelExtraction"); this.appContext = appContext; AbstractButton button = getButton(ID_OK); button.setText("Extract"); button.setMnemonic...
diff --git a/src/main/java/net/loadingchunks/plugins/AuthenticItem/AuthenticItem/AuthenticItemCommandExecutor.java b/src/main/java/net/loadingchunks/plugins/AuthenticItem/AuthenticItem/AuthenticItemCommandExecutor.java index cfc3a59..1b3e08f 100644 --- a/src/main/java/net/loadingchunks/plugins/AuthenticItem/AuthenticIt...
true
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if (command.getName().equalsIgnoreCase("authentic")) { if(!sender.hasPermission("aitem.authentic")) { sender.sendMessage("You do not have permission to use this command."); ...
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if (command.getName().equalsIgnoreCase("authentic")) { if(!sender.hasPermission("aitem.authentic")) { sender.sendMessage("You do not have permission to use this command."); ...
diff --git a/app/controllers/PageController.java b/app/controllers/PageController.java index b83fddc..0aae29c 100644 --- a/app/controllers/PageController.java +++ b/app/controllers/PageController.java @@ -1,83 +1,83 @@ package controllers; import java.util.Arrays; import java.util.Locale; import java.util.Set; i...
true
true
public static void doNewPage() { String urlId = params.get("linkto.otherUrlId"); Page page = null; PageRef pageRef = null; if (urlId != null && urlId.equals("")) page = Page.getPageByUrlId(urlId); if (page != null) pageRef = page.pageReference; ...
public static void doNewPage() { String urlId = params.get("linkto.otherUrlId"); Page page = null; PageRef pageRef = null; if (urlId != null && !urlId.equals("")) page = Page.getPageByUrlId(urlId); if (page != null) pageRef = page.pageReference; ...
diff --git a/src/test/java/org/elasticsearch/common/lucene/search/XBooleanFilterTests.java b/src/test/java/org/elasticsearch/common/lucene/search/XBooleanFilterTests.java index fabdb0f10f6..d41d4dc585b 100644 --- a/src/test/java/org/elasticsearch/common/lucene/search/XBooleanFilterTests.java +++ b/src/test/java/org/ela...
true
true
public void testRandom() throws IOException { int iterations = atLeast(400); // don't worry that is fast! for (int iter = 0; iter < iterations; iter++) { int numClauses = 1 + random().nextInt(10); FilterClause[] clauses = new FilterClause[numClauses]; BooleanQuery...
public void testRandom() throws IOException { int iterations = atLeast(400); // don't worry that is fast! for (int iter = 0; iter < iterations; iter++) { int numClauses = 1 + random().nextInt(10); FilterClause[] clauses = new FilterClause[numClauses]; BooleanQuery...
diff --git a/Osm2GpsMid/src/de/ueller/osmToGpsMid/model/name/Names.java b/Osm2GpsMid/src/de/ueller/osmToGpsMid/model/name/Names.java index 8357feab..ae532162 100644 --- a/Osm2GpsMid/src/de/ueller/osmToGpsMid/model/name/Names.java +++ b/Osm2GpsMid/src/de/ueller/osmToGpsMid/model/name/Names.java @@ -1,242 +1,242 @@ /** ...
false
true
public void addName(Entity w, WayRedirect wayRedirect) { if (w.getName() == null ) return; if (w.getName().trim().length() == 0){ return; } boolean houseNumber = false; if (w instanceof Node) { byte type = (byte) ((Node) w).getType(Configuration.getConfiguration()); POIdescription poiDesc = ...
public void addName(Entity w, WayRedirect wayRedirect) { if (w.getName() == null ) return; if (w.getName().trim().length() == 0){ return; } boolean houseNumber = false; if (w instanceof Node) { short type = (short) ((Node) w).getType(Configuration.getConfiguration()); POIdescription poiDesc = ...
diff --git a/src/com/android/email/activity/MailboxListFragment.java b/src/com/android/email/activity/MailboxListFragment.java index 2d18799b..51c1a787 100644 --- a/src/com/android/email/activity/MailboxListFragment.java +++ b/src/com/android/email/activity/MailboxListFragment.java @@ -1,305 +1,310 @@ /* * Copyright...
true
true
public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) { if (Email.DEBUG_LIFECYCLE && Email.DEBUG) { Log.d(Email.LOG_TAG, "MailboxListFragment onLoadFinished"); } mLastLoadedAccountId = mAccountId; // Save list view state (primarily scro...
public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) { if (Email.DEBUG_LIFECYCLE && Email.DEBUG) { Log.d(Email.LOG_TAG, "MailboxListFragment onLoadFinished"); } mLastLoadedAccountId = mAccountId; // Save list view state (primarily scro...
diff --git a/src/AdditionalBuildcraftObjects/PipeLiquidsValve.java b/src/AdditionalBuildcraftObjects/PipeLiquidsValve.java index affc992..bb8aea4 100644 --- a/src/AdditionalBuildcraftObjects/PipeLiquidsValve.java +++ b/src/AdditionalBuildcraftObjects/PipeLiquidsValve.java @@ -1,198 +1,198 @@ /** * Copyright (C) 201...
true
true
public void updateEntity() { super.updateEntity(); if (worldObj.isBlockIndirectlyGettingPowered(xCoord, yCoord, zCoord)) { powerProvider.receiveEnergy(1, Orientations.Unknown); } int meta = worldObj.getBlockMetadata(xCoord, yCoord, zCoord); if (liquidToExtract > 0 && meta < 6) { Position pos = new P...
public void updateEntity() { super.updateEntity(); if (worldObj.isBlockIndirectlyGettingPowered(xCoord, yCoord, zCoord)) { powerProvider.receiveEnergy(1, Orientations.YNeg); } int meta = worldObj.getBlockMetadata(xCoord, yCoord, zCoord); if (liquidToExtract > 0 && meta < 6) { Position pos = new Posi...
diff --git a/core/src/main/java/org/apache/mahout/cf/taste/impl/eval/IRStatisticsImpl.java b/core/src/main/java/org/apache/mahout/cf/taste/impl/eval/IRStatisticsImpl.java index f6aadae1..f82f9584 100644 --- a/core/src/main/java/org/apache/mahout/cf/taste/impl/eval/IRStatisticsImpl.java +++ b/core/src/main/java/org/apac...
true
true
IRStatisticsImpl(double precision, double recall, double fallOut, double ndcg, double reach) { Preconditions.checkArgument(precision >= 0.0 && precision <= 1.0, "Illegal precision: " + precision); Preconditions.checkArgument(recall >= 0.0 && recall <= 1.0, "Illegal recall: " + recall); Preconditions.check...
IRStatisticsImpl(double precision, double recall, double fallOut, double ndcg, double reach) { Preconditions.checkArgument(precision >= 0.0 && precision <= 1.0, "Illegal precision: " + precision); Preconditions.checkArgument(recall >= 0.0 && recall <= 1.0, "Illegal recall: " + recall); Preconditions.check...
diff --git a/gwt20/modules/atmosphere-gwt20-client/src/main/java/org/atmosphere/gwt20/client/AtmosphereClientTimeoutHandler.java b/gwt20/modules/atmosphere-gwt20-client/src/main/java/org/atmosphere/gwt20/client/AtmosphereClientTimeoutHandler.java index 80107bd8..cd86a087 100644 --- a/gwt20/modules/atmosphere-gwt20-clie...
true
true
public void onClientTimeout(AtmosphereRequest response);
public void onClientTimeout(AtmosphereRequest request);
diff --git a/ggj_2013/src/sound/BeatTrack.java b/ggj_2013/src/sound/BeatTrack.java index eed0f68..0a1005b 100644 --- a/ggj_2013/src/sound/BeatTrack.java +++ b/ggj_2013/src/sound/BeatTrack.java @@ -1,85 +1,86 @@ package sound; import game.GameControl; import java.util.ArrayList; import java.util.List; publi...
true
true
public void update(long currentTime) { if (playing) { if (currentTime >= beatTime) { getNextBeat(); for (BeatListener listener : listeners) { listener.beat(); } } if (currentTime >= endTime) { if (loopsLeft > 0) { play(currentTime); loopsLeft--; } else { for (Beat...
public void update(long currentTime) { if (playing) { if (currentTime >= beatTime) { getNextBeat(); for (BeatListener listener : listeners) { listener.beat(); } } if (currentTime >= endTime) { if (loopsLeft > 0) { play(currentTime); loopsLeft--; } else { for (Beat...
diff --git a/src/edu/vanderbilt/vm/guide/util/JsonUtils.java b/src/edu/vanderbilt/vm/guide/util/JsonUtils.java index 82cfc83..b0de913 100644 --- a/src/edu/vanderbilt/vm/guide/util/JsonUtils.java +++ b/src/edu/vanderbilt/vm/guide/util/JsonUtils.java @@ -1,32 +1,34 @@ package edu.vanderbilt.vm.guide.util; import java...
true
true
public static JSONArray readJSONArrayFromFile(Uri uri, Context context) throws FileNotFoundException { InputStream in = context.getContentResolver().openInputStream(uri); BufferedReader buf = new BufferedReader(new InputStreamReader(in)); }
public static JSONArray readJSONArrayFromFile(Uri uri, Context context) throws FileNotFoundException { InputStream in = context.getContentResolver().openInputStream(uri); BufferedReader buf = new BufferedReader(new InputStreamReader(in)); return null; // incomplete code }
diff --git a/src/com/android/gallery3d/photoeditor/filters/DoodleFilter.java b/src/com/android/gallery3d/photoeditor/filters/DoodleFilter.java index 3c4bbf7..b40f458 100644 --- a/src/com/android/gallery3d/photoeditor/filters/DoodleFilter.java +++ b/src/com/android/gallery3d/photoeditor/filters/DoodleFilter.java @@ -1,8...
true
true
public void process(EffectContext context, Photo src, Photo dst) { Bitmap bitmap = Bitmap.createBitmap(src.width(), src.height(), Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(bitmap); Matrix matrix = new Matrix(); matrix.setRectToRect(new RectF(0, 0, 1, 1), n...
public void process(EffectContext context, Photo src, Photo dst) { Bitmap bitmap = Bitmap.createBitmap(src.width(), src.height(), Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(bitmap); Matrix matrix = new Matrix(); matrix.setRectToRect(new RectF(0, 0, 1, 1), n...
diff --git a/GlassLine/src/engine/brandonCF/agents/ConShuttle.java b/GlassLine/src/engine/brandonCF/agents/ConShuttle.java index 3b4cd27..b475469 100644 --- a/GlassLine/src/engine/brandonCF/agents/ConShuttle.java +++ b/GlassLine/src/engine/brandonCF/agents/ConShuttle.java @@ -1,198 +1,198 @@ package engine.brandonCF.a...
true
true
public void eventFired(TChannel channel, TEvent event, Object[] args) { // TODO Auto-generated method stub if(channel == TChannel.SENSOR & event == TEvent.SENSOR_GUI_RELEASED) { if(args[0].equals(number[0] *2))//if second sensor { //released = true; //stateChanged(); } // if(args[0].equals(num...
public void eventFired(TChannel channel, TEvent event, Object[] args) { // TODO Auto-generated method stub if(channel == TChannel.SENSOR & event == TEvent.SENSOR_GUI_RELEASED) { if(args[0].equals(number[0] *2))//if second sensor { //released = true; //stateChanged(); } // if(args[0].equals(num...
diff --git a/emailcommon/src/com/android/emailcommon/Device.java b/emailcommon/src/com/android/emailcommon/Device.java index 889139ac..ba93062e 100644 --- a/emailcommon/src/com/android/emailcommon/Device.java +++ b/emailcommon/src/com/android/emailcommon/Device.java @@ -1,110 +1,112 @@ /* /* * Copyright (C) 2011 T...
true
true
static private String getDeviceIdInternal(Context context) throws IOException { if (context == null) { throw new IllegalStateException("getDeviceId requires a Context"); } File f = context.getFileStreamPath("deviceName"); BufferedReader rdr = null; String id; ...
static private String getDeviceIdInternal(Context context) throws IOException { if (context == null) { throw new IllegalStateException("getDeviceId requires a Context"); } File f = context.getFileStreamPath("deviceName"); BufferedReader rdr = null; String id; ...
diff --git a/webapp/WEB-INF/classes/org/makumba/parade/init/ParadeProperties.java b/webapp/WEB-INF/classes/org/makumba/parade/init/ParadeProperties.java index 1f5b283..2d33dcd 100644 --- a/webapp/WEB-INF/classes/org/makumba/parade/init/ParadeProperties.java +++ b/webapp/WEB-INF/classes/org/makumba/parade/init/ParadePro...
true
true
public static List getElements(String configProperty) { List l = new LinkedList(); String s = getProperty(configProperty); if(s == null) s = "noSuchProperty"; StringTokenizer st = new StringTokenizer(s,","); while(st.hasMoreElements()) { l.add(((String)st.nextToken()).trim()); } return l; }
public static List getElements(String configProperty) { List l = new LinkedList(); String s = getProperty(configProperty); if(s == null) return null; StringTokenizer st = new StringTokenizer(s,","); while(st.hasMoreElements()) { l.add(((String)st.nextToken()).trim()); } return l; }
diff --git a/src/main/java/cc/redberry/core/transformations/ApplyIndexMapping.java b/src/main/java/cc/redberry/core/transformations/ApplyIndexMapping.java index c43d3cb..c17e0f4 100644 --- a/src/main/java/cc/redberry/core/transformations/ApplyIndexMapping.java +++ b/src/main/java/cc/redberry/core/transformations/ApplyI...
true
true
public static Tensor unsafeApplyIndexMappingFromSortedClonedSource( Tensor tensor, int[] from, int[] to, int[] forbidden) { Set<Integer> dummyIndices = TensorUtils.getAllIndices(tensor); //extracting contracted only Indices indices = tensor.getIndices().getFreeIndices(); ...
public static Tensor unsafeApplyIndexMappingFromSortedClonedSource( Tensor tensor, int[] from, int[] to, int[] forbidden) { Set<Integer> dummyIndices = TensorUtils.getAllIndices(tensor); //extracting contracted only Indices indices = tensor.getIndices().getFreeIndices(); ...
diff --git a/java/src/org/jruby/jubilee/JubileeVerticle.java b/java/src/org/jruby/jubilee/JubileeVerticle.java index 80e6020..0019a24 100644 --- a/java/src/org/jruby/jubilee/JubileeVerticle.java +++ b/java/src/org/jruby/jubilee/JubileeVerticle.java @@ -1,67 +1,67 @@ package org.jruby.jubilee; import org.jruby.Ruby;...
false
true
public void start() { JsonObject config = container.config(); HttpServer httpServer = vertx.createHttpServer(); ruby = config.getValue("ruby"); IRubyObject rackApplication; final RackApplication app; boolean ssl =config.getBoolean("ssl"); if (config.containsField("rackapp")) rackApplicatio...
public void start() { JsonObject config = container.config(); HttpServer httpServer = vertx.createHttpServer(); ruby = config.getValue("ruby"); IRubyObject rackApplication; final RackApplication app; boolean ssl =config.getBoolean("ssl"); if (config.containsField("rackapp")) rackApplicatio...
diff --git a/git-server/src/jetbrains/buildServer/buildTriggers/vcs/git/GitServerUtil.java b/git-server/src/jetbrains/buildServer/buildTriggers/vcs/git/GitServerUtil.java index 29716f7..be8f566 100644 --- a/git-server/src/jetbrains/buildServer/buildTriggers/vcs/git/GitServerUtil.java +++ b/git-server/src/jetbrains/buil...
true
true
public static Repository getRepository(File dir, URIish remote) throws VcsException { WindowCacheConfig cfg = new WindowCacheConfig(); cfg.setDeltaBaseCacheLimit(MAX_CACHED_FILE); WindowCache.reconfigure(cfg); if (dir.exists() && !dir.isDirectory()) { throw new VcsException("The specified path i...
public static Repository getRepository(File dir, URIish remote) throws VcsException { WindowCacheConfig cfg = new WindowCacheConfig(); cfg.setDeltaBaseCacheLimit(MAX_CACHED_FILE); WindowCache.reconfigure(cfg); if (dir.exists() && !dir.isDirectory()) { throw new VcsException("The specified path i...
diff --git a/NoItem/src/net/worldoftomorrow/nala/ni/Configuration.java b/NoItem/src/net/worldoftomorrow/nala/ni/Configuration.java index 383db8f..603cd8a 100644 --- a/NoItem/src/net/worldoftomorrow/nala/ni/Configuration.java +++ b/NoItem/src/net/worldoftomorrow/nala/ni/Configuration.java @@ -1,342 +1,342 @@ package ne...
true
true
private void writeConfig(PrintWriter writer){ if(writer != null){ //----WRITE THE CONFIGURATION ONE LINE AT A TIME----// writer.println("# Notify Message Variables:"); writer.println("# %n = player name"); writer.println("# %i = item id"); writer.println("# %x = X location"); writer.println("# %y =...
private void writeConfig(PrintWriter writer){ if(writer != null){ //----WRITE THE CONFIGURATION ONE LINE AT A TIME----// writer.println("# Notify Message Variables:"); writer.println("# %n = player name"); writer.println("# %i = item id"); writer.println("# %x = X location"); writer.println("# %y =...
diff --git a/src/org/apache/xerces/impl/xs/traversers/XSDAttributeTraverser.java b/src/org/apache/xerces/impl/xs/traversers/XSDAttributeTraverser.java index 73bd5fdbc..4109dce8e 100644 --- a/src/org/apache/xerces/impl/xs/traversers/XSDAttributeTraverser.java +++ b/src/org/apache/xerces/impl/xs/traversers/XSDAttributeTr...
true
true
protected XSAttributeUse traverseLocal(Element attrDecl, XSDocumentInfo schemaDoc, SchemaGrammar grammar) { // General Attribute Checking Object[] attrValues = fAttrChecker.checkAttributes(attrDecl, false, schemaD...
protected XSAttributeUse traverseLocal(Element attrDecl, XSDocumentInfo schemaDoc, SchemaGrammar grammar) { // General Attribute Checking Object[] attrValues = fAttrChecker.checkAttributes(attrDecl, false, schemaD...
diff --git a/closure/closure-compiler/src/com/google/javascript/jscomp/DefaultPassConfig.java b/closure/closure-compiler/src/com/google/javascript/jscomp/DefaultPassConfig.java index 06e4c425..95b554bf 100644 --- a/closure/closure-compiler/src/com/google/javascript/jscomp/DefaultPassConfig.java +++ b/closure/closure-co...
true
true
protected List<PassFactory> getOptimizations() { List<PassFactory> passes = Lists.newArrayList(); // TODO(nicksantos): The order of these passes makes no sense, and needs // to be re-arranged. if (options.runtimeTypeCheck) { passes.add(runtimeTypeCheck); } passes.add(createEmptyPass("...
protected List<PassFactory> getOptimizations() { List<PassFactory> passes = Lists.newArrayList(); // TODO(nicksantos): The order of these passes makes no sense, and needs // to be re-arranged. if (options.runtimeTypeCheck) { passes.add(runtimeTypeCheck); } passes.add(createEmptyPass("...
diff --git a/hazelcast/src/main/java/com/hazelcast/map/operation/MapReplicationOperation.java b/hazelcast/src/main/java/com/hazelcast/map/operation/MapReplicationOperation.java index 844d3e899f..a4e64913c4 100644 --- a/hazelcast/src/main/java/com/hazelcast/map/operation/MapReplicationOperation.java +++ b/hazelcast/src/...
true
true
public MapReplicationOperation(PartitionContainer container, int partitionId, int replicaIndex) { this.setPartitionId(partitionId).setReplicaIndex(replicaIndex); SerializationService ss = container.getMapService().getSerializationService(); data = new HashMap<String, Set<RecordReplicationInf...
public MapReplicationOperation(PartitionContainer container, int partitionId, int replicaIndex) { this.setPartitionId(partitionId).setReplicaIndex(replicaIndex); SerializationService ss = container.getMapService().getSerializationService(); data = new HashMap<String, Set<RecordReplicationInf...
diff --git a/src/main/java/net/nexisonline/spade/populators/SedimentGenerator.java b/src/main/java/net/nexisonline/spade/populators/SedimentGenerator.java index 739af8b..2af82d5 100644 --- a/src/main/java/net/nexisonline/spade/populators/SedimentGenerator.java +++ b/src/main/java/net/nexisonline/spade/populators/Sedime...
false
true
public void populate(World world, Random rand, Chunk chunk) { SpadeLogging.info(String.format("Generating sediment in chunk (%d,%d)",chunk.getX(),chunk.getZ())); int YH = 128; for (int x = 0; x < 16; x++) { for (int z = 0; z < 16; z++) { //int H=Math.max(Math...
public void populate(World world, Random rand, Chunk chunk) { SpadeLogging.info(String.format("Generating sediment in chunk (%d,%d)",chunk.getX(),chunk.getZ())); int YH = 128; for (int x = 0; x < 16; x++) { for (int z = 0; z < 16; z++) { //int H=Math.max(Math...
diff --git a/src/main/java/no/uio/master/autoscale/agent/AutoscaleAgent.java b/src/main/java/no/uio/master/autoscale/agent/AutoscaleAgent.java index a7c8159..1562bc0 100644 --- a/src/main/java/no/uio/master/autoscale/agent/AutoscaleAgent.java +++ b/src/main/java/no/uio/master/autoscale/agent/AutoscaleAgent.java @@ -1,4...
true
true
public static void main(String[] args) { LOG.debug("Autoscale agent invoked..."); try { server = new AutoscaleAgentServer(); } catch (IOException e) { LOG.error("Failed to initialize agent server"); } executor = Executors.newSingleThreadScheduledExecutor(); executor.scheduleAtFixedRate(server, 0, INT...
public static void main(String[] args) { LOG.info("Autoscale agent invoked..."); try { server = new AutoscaleAgentServer(); } catch (IOException e) { LOG.error("Failed to initialize agent server"); } executor = Executors.newSingleThreadScheduledExecutor(); executor.scheduleAtFixedRate(server, 0, INTE...
diff --git a/dspace-api/src/main/java/org/dspace/browse/ItemCounter.java b/dspace-api/src/main/java/org/dspace/browse/ItemCounter.java index cb2b8d0a0..5af58b8f8 100644 --- a/dspace-api/src/main/java/org/dspace/browse/ItemCounter.java +++ b/dspace-api/src/main/java/org/dspace/browse/ItemCounter.java @@ -1,291 +1,291 @@...
true
true
public int getCount(DSpaceObject dso) throws ItemCountException { boolean useCache = ConfigurationManager.getBooleanProperty("webui.strengths.cache"); if (useCache) { return dao.getCount(dso); } // if we make it this far, we need to manually count if (dso instanceof Collection) { try { ...
public int getCount(DSpaceObject dso) throws ItemCountException { boolean useCache = ConfigurationManager.getBooleanProperty("webui.strengths.cache"); if (useCache) { return dao.getCount(dso); } // if we make it this far, we need to manually count if (dso instanceof Collection) { try { ...