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/geoserver/web/src/main/java/org/vfny/geoserver/action/MapPreviewAction.java b/geoserver/web/src/main/java/org/vfny/geoserver/action/MapPreviewAction.java index 8dd99f33de..1fa488e3ab 100644 --- a/geoserver/web/src/main/java/org/vfny/geoserver/action/MapPreviewAction.java +++ b/geoserver/web/src/main/java/o...
true
true
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { ArrayList dsList = new ArrayList(); ArrayList ftList = new ArrayList(); ArrayList bboxList = new ArrayList(); ...
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { ArrayList dsList = new ArrayList(); ArrayList ftList = new ArrayList(); ArrayList bboxList = new ArrayList(); ...
diff --git a/modules/cpr/src/main/java/org/atmosphere/client/TrackMessageSizeFilter.java b/modules/cpr/src/main/java/org/atmosphere/client/TrackMessageSizeFilter.java index b1566141e..1430f311b 100644 --- a/modules/cpr/src/main/java/org/atmosphere/client/TrackMessageSizeFilter.java +++ b/modules/cpr/src/main/java/org/a...
true
true
public BroadcastAction filter(AtmosphereResource r, Object originalMessage, Object message) { AtmosphereRequest request = r.getRequest(); if ("true".equalsIgnoreCase(request.getHeader(X_ATMOSPHERE_TRACKMESSAGESIZE)) && message != null && String.class.isAssignableFrom(message.getClas...
public BroadcastAction filter(AtmosphereResource r, Object originalMessage, Object message) { AtmosphereRequest request = r.getRequest(); if ("true".equalsIgnoreCase(request.getHeader(X_ATMOSPHERE_TRACKMESSAGESIZE)) && message != null && String.class.isAssignableFrom(message.getClas...
diff --git a/src/main/java/hudson/plugins/promoted_builds/Status.java b/src/main/java/hudson/plugins/promoted_builds/Status.java index cbe0df3..a4c4cac 100644 --- a/src/main/java/hudson/plugins/promoted_builds/Status.java +++ b/src/main/java/hudson/plugins/promoted_builds/Status.java @@ -1,227 +1,227 @@ package hudson...
true
true
public List<Promotion> getPromotionBuilds() { PromotionProcess p = getProcess(); List<Promotion> builds = new ArrayList<Promotion>(); for( Integer n : promotionAttempts ) { Promotion b = p.getBuildByNumber(n); if (b != null) { builds.add(b); ...
public List<Promotion> getPromotionBuilds() { PromotionProcess p = getProcess(); List<Promotion> builds = new ArrayList<Promotion>(); for( Integer n : Iterators.reverse(promotionAttempts) ) { Promotion b = p.getBuildByNumber(n); if (b != null) { builds...
diff --git a/Birthday/src/cz/krtinec/birthday/ui/PhotoLoader.java b/Birthday/src/cz/krtinec/birthday/ui/PhotoLoader.java index 92f0b74..7de8558 100644 --- a/Birthday/src/cz/krtinec/birthday/ui/PhotoLoader.java +++ b/Birthday/src/cz/krtinec/birthday/ui/PhotoLoader.java @@ -1,119 +1,117 @@ /* * This file is part of Bi...
false
true
public void run() { while (!shutdown) { if (paused) { try { Thread.sleep(100); } catch (InterruptedException e) { //do nothing } } else { if (!photosToLoad.isEmpty()) { ...
public void run() { while (!shutdown) { if (paused) { try { Thread.sleep(100); } catch (InterruptedException e) { //do nothing } } else { if (!photosToLoad.isEmpty()) { ...
diff --git a/vo/src/main/uk/ac/starlink/vo/TapCapability.java b/vo/src/main/uk/ac/starlink/vo/TapCapability.java index 4f3211494..13089b54a 100644 --- a/vo/src/main/uk/ac/starlink/vo/TapCapability.java +++ b/vo/src/main/uk/ac/starlink/vo/TapCapability.java @@ -1,278 +1,281 @@ package uk.ac.starlink.vo; import java....
false
true
private static TapCapability attemptReadTapCapability( URL url ) throws ParserConfigurationException, XPathExpressionException, IOException, SAXException { /* Parse and prepare for document interrogation. */ Document capsDoc = DocumentBuilderFactory.newInstance() ...
private static TapCapability attemptReadTapCapability( URL url ) throws ParserConfigurationException, XPathExpressionException, IOException, SAXException { /* Parse and prepare for document interrogation. */ Document capsDoc = DocumentBuilderFactory.newInstance() ...
diff --git a/src/minecraft/co/uk/flansmods/common/guns/GrenadeType.java b/src/minecraft/co/uk/flansmods/common/guns/GrenadeType.java index ab813db3..aff83004 100644 --- a/src/minecraft/co/uk/flansmods/common/guns/GrenadeType.java +++ b/src/minecraft/co/uk/flansmods/common/guns/GrenadeType.java @@ -1,212 +1,212 @@ pack...
true
true
protected void read(String[] split, TypeFile file) { super.read(split, file); try { if(FMLCommonHandler.instance().getSide().isClient() && split[0].equals("Model")) model = FlansMod.proxy.loadModel(split, shortName, ModelBase.class); if(split[0].equals("Texture")) texture = split[1]; if(split[0...
protected void read(String[] split, TypeFile file) { super.read(split, file); try { if(FMLCommonHandler.instance().getSide().isClient() && split[0].equals("Model")) model = FlansMod.proxy.loadModel(split, shortName, ModelBase.class); if(split[0].equals("Texture")) texture = split[1]; if(split[0...
diff --git a/code/app/devkit/mvc/Controller.java b/code/app/devkit/mvc/Controller.java index b407ee5..ca0c99a 100644 --- a/code/app/devkit/mvc/Controller.java +++ b/code/app/devkit/mvc/Controller.java @@ -1,132 +1,133 @@ package devkit.mvc; import devkit.utils.Binder; import play.api.templates.Html; import play.l...
true
true
private static Map<String,String[]> getParams(){ String method = request().method(); Map<String,String[]> params = (Map<String,String[]>) ctx().args.get(HTTP_PARAMS_KEY); if (params == null){ if ("GET".equals(method)){ params = request().queryString(); ...
private static Map<String,String[]> getParams(){ String method = request().method(); Map<String,String[]> params = (Map<String,String[]>) ctx().args.get(HTTP_PARAMS_KEY); if (params == null){ if ("GET".equals(method)){ params = request().queryString(); ...
diff --git a/sveditor/plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/search/SVDBFindDocComment.java b/sveditor/plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/search/SVDBFindDocComment.java index a7e884f1..231b24f5 100644 --- a/sveditor/plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/db/search/...
true
true
public SVDBDocComment find(IProgressMonitor monitor, ISVDBItemBase item) { SVDBDocComment comment = null; // Must reach the file scope ISVDBItemBase p = item; while (p != null && p.getType() != SVDBItemType.File) { if (p instanceof ISVDBChildItem) { p = ((ISVDBChildItem)p).getParent(); } else { ...
public SVDBDocComment find(IProgressMonitor monitor, ISVDBItemBase item) { SVDBDocComment comment = null; // Must reach the file scope ISVDBItemBase p = item; while (p != null && p.getType() != SVDBItemType.File) { if (p instanceof ISVDBChildItem) { p = ((ISVDBChildItem)p).getParent(); } else { ...
diff --git a/src/main/java/net/nunnerycode/bukkit/mythicdrops/savers/MythicTierSaver.java b/src/main/java/net/nunnerycode/bukkit/mythicdrops/savers/MythicTierSaver.java index 46720415..9e4bd0ac 100644 --- a/src/main/java/net/nunnerycode/bukkit/mythicdrops/savers/MythicTierSaver.java +++ b/src/main/java/net/nunnerycode/...
true
true
public void save() { ConventConfiguration c = getPlugin().getTierYAML(); if (c == null) { return; } FileConfiguration fc = c.getFileConfiguration(); for (Tier t : getPlugin().getTierManager().getTiers()) { fc.set(t.getTierName() + ".displayName", t.getTierDisplayName()); fc.set(t.getTierName() + ".d...
public void save() { ConventConfiguration c = getPlugin().getTierYAML(); if (c == null) { return; } FileConfiguration fc = c.getFileConfiguration(); for (Tier t : getPlugin().getTierManager().getTiers()) { fc.set(t.getTierName() + ".displayName", t.getTierDisplayName()); fc.set(t.getTierName() + ".d...
diff --git a/src/haven/CacheMap.java b/src/haven/CacheMap.java index d72c3e83..23481448 100644 --- a/src/haven/CacheMap.java +++ b/src/haven/CacheMap.java @@ -1,156 +1,158 @@ /* * This file is part of the Haven & Hearth game client. * Copyright (C) 2009 Fredrik Tolf <fredrik@dolda2000.com>, and * ...
true
true
public Set<Entry<K, V>> entrySet() { if(entries == null) entries = new AbstractSet<Entry<K, V>>() { public int size() { clean(); return(back.size()); } public Iterator<Entry<K, V>> iterator() { clean(); final Iterator<Entry<K, Reference<V>>> iter = back.entrySet().iterator(); ...
public Set<Entry<K, V>> entrySet() { if(entries == null) entries = new AbstractSet<Entry<K, V>>() { public int size() { clean(); return(back.size()); } public Iterator<Entry<K, V>> iterator() { clean(); final Iterator<Entry<K, Reference<V>>> iter = back.entrySet().iterator(); ...
diff --git a/Plugins/de.devboost.codecomposers.test/src/de/devboost/codecomposers/test/JavaCompositeTest.java b/Plugins/de.devboost.codecomposers.test/src/de/devboost/codecomposers/test/JavaCompositeTest.java index 1b4e90d..077639f 100644 --- a/Plugins/de.devboost.codecomposers.test/src/de/devboost/codecomposers/test/J...
true
true
public void testSplitMethod() { JavaComposite sc = new JavaComposite(); assertEquals(Arrays.asList(new String[] {"123" , "123"}), sc.split("123 123", 3)); assertEquals(Arrays.asList(new String[] {"12" , "12"}), sc.split("12 12", 3)); assertEquals(Arrays.asList(new String[] {"123" , "456"}), sc.split("123456", ...
public void testSplitMethod() { JavaComposite sc = new JavaComposite(); assertEquals(Arrays.asList(new String[] {"123" , "123"}), sc.split("123 123", 3)); assertEquals(Arrays.asList(new String[] {"12" , "12"}), sc.split("12 12", 3)); assertEquals(Arrays.asList(new String[] {"123" , "456"}), sc.split("123456", ...
diff --git a/src/main/java/org/apache/hadoop/mapred/MesosScheduler.java b/src/main/java/org/apache/hadoop/mapred/MesosScheduler.java index 2228a42..abfe360 100644 --- a/src/main/java/org/apache/hadoop/mapred/MesosScheduler.java +++ b/src/main/java/org/apache/hadoop/mapred/MesosScheduler.java @@ -1,982 +1,982 @@ packag...
true
true
public void resourceOffers(SchedulerDriver schedulerDriver, List<Offer> offers) { // Before synchronizing, we pull all needed information from the JobTracker. final HttpHost jobTrackerAddress = new HttpHost(jobTracker.getHostname(), jobTracker.getTrackerPort()); ...
public void resourceOffers(SchedulerDriver schedulerDriver, List<Offer> offers) { // Before synchronizing, we pull all needed information from the JobTracker. final HttpHost jobTrackerAddress = new HttpHost(jobTracker.getHostname(), jobTracker.getTrackerPort()); ...
diff --git a/htroot/CacheAdmin_p.java b/htroot/CacheAdmin_p.java index 7a84721f9..7434a343a 100644 --- a/htroot/CacheAdmin_p.java +++ b/htroot/CacheAdmin_p.java @@ -1,249 +1,249 @@ // CacheAdmin_p.java // ----------------------- // part of the AnomicHTTPD caching proxy // (C) by Michael Peter Christen; mc@anomic.d...
true
true
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) { final plasmaSwitchboard switchboard = (plasmaSwitchboard) env; final serverObjects prop = new serverObjects(); final String action = ((post == null) ? "info" : post.get("action", "info")); ...
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) { final plasmaSwitchboard switchboard = (plasmaSwitchboard) env; final serverObjects prop = new serverObjects(); final String action = ((post == null) ? "info" : post.get("action", "info")); ...
diff --git a/SoarSuite/Tools/SoarJavaDebugger/src/debugger/SWTApplication.java b/SoarSuite/Tools/SoarJavaDebugger/src/debugger/SWTApplication.java index 4acfc4c56..e2fecb480 100644 --- a/SoarSuite/Tools/SoarJavaDebugger/src/debugger/SWTApplication.java +++ b/SoarSuite/Tools/SoarJavaDebugger/src/debugger/SWTApplication....
true
true
public void startApp(String[] args) throws Exception { // The document manages the Soar process m_Document = new Document() ; // Check for command line options boolean remote = hasOption(args, "-remote") ; String ip = getOptionValue(args, "-ip") ; String port = getOptionValue(args, "-port") ; String...
public void startApp(String[] args) throws Exception { // The document manages the Soar process m_Document = new Document() ; // Check for command line options boolean remote = hasOption(args, "-remote") ; String ip = getOptionValue(args, "-ip") ; String port = getOptionValue(args, "-port") ; String...
diff --git a/container/openejb-loader/src/main/java/org/apache/openejb/loader/JarLocation.java b/container/openejb-loader/src/main/java/org/apache/openejb/loader/JarLocation.java index 1996f317aa..671c50076e 100644 --- a/container/openejb-loader/src/main/java/org/apache/openejb/loader/JarLocation.java +++ b/container/o...
true
true
public static File jarLocation(Class clazz) { try { String classFileName = clazz.getName().replace(".", "/") + ".class"; URL classURL = clazz.getClassLoader().getResource(classFileName); URI uri = classURL.toURI(); if (uri.getPath() == null){ ...
public static File jarLocation(Class clazz) { try { String classFileName = clazz.getName().replace(".", "/") + ".class"; URL classURL = clazz.getClassLoader().getResource(classFileName); URI uri = classURL.toURI(); if (uri.getPath() == null){ ...
diff --git a/holmes-core/src/main/java/net/holmes/core/media/MediaServiceImpl.java b/holmes-core/src/main/java/net/holmes/core/media/MediaServiceImpl.java index 14a3d3b0..de0582f5 100644 --- a/holmes-core/src/main/java/net/holmes/core/media/MediaServiceImpl.java +++ b/holmes-core/src/main/java/net/holmes/core/media/Med...
true
true
private List<AbstractNode> getPodcastChildNodes(final String parentId, final String url) { try { return podcastCache.get(url, new Callable<List<AbstractNode>>() { @Override public List<AbstractNode> call() throws Exception { // No entries in c...
private List<AbstractNode> getPodcastChildNodes(final String parentId, final String url) { try { return podcastCache.get(url, new Callable<List<AbstractNode>>() { @Override public List<AbstractNode> call() throws Exception { // No entries in c...
diff --git a/gui/main/mainMenu.java b/gui/main/mainMenu.java index d1f1ebf..7cb924a 100644 --- a/gui/main/mainMenu.java +++ b/gui/main/mainMenu.java @@ -1,307 +1,307 @@ /* mainMenu.java - mainMenu class * Copyright (C) 1999 Fredrik Ehnbom * * This program is free software; you can redistribute it and/or modif...
true
true
public void actionPerformed(ActionEvent ae) { String kommando = ((JMenuItem)ae.getSource()).getText(); if(kommando.equals(res.getString("file.exit"))) { Rectangle rv = new Rectangle(); frame.getBounds(rv); try { InputStream in = new FileInputStream(System.getProperty...
public void actionPerformed(ActionEvent ae) { String kommando = ((JMenuItem)ae.getSource()).getText(); if(kommando.equals(res.getString("file.exit"))) { Rectangle rv = new Rectangle(); frame.getBounds(rv); try { InputStream in = new FileInputStream(System.getProperty...
diff --git a/gshell/gshell-core/src/main/java/org/apache/geronimo/gshell/spring/CreateCommand.java b/gshell/gshell-core/src/main/java/org/apache/geronimo/gshell/spring/CreateCommand.java index 417de58e..5942ea55 100644 --- a/gshell/gshell-core/src/main/java/org/apache/geronimo/gshell/spring/CreateCommand.java +++ b/gsh...
false
true
protected Object doExecute() throws Exception { try { File serviceMixBase = new File(instance).getCanonicalFile(); io.out.println("Creating new instance at:@|bold "+serviceMixBase+"|"); mkdir(serviceMixBase, "bin"); mkdir(serviceMixBase, "etc"); mkdir(serviceMixBase, "system"); mkdi...
protected Object doExecute() throws Exception { try { File serviceMixBase = new File(instance).getCanonicalFile(); io.out.println("Creating new instance at:@|bold "+serviceMixBase+"|"); mkdir(serviceMixBase, "bin"); mkdir(serviceMixBase, "etc"); mkdir(serviceMixBase, "system"); mkdi...
diff --git a/src/com/undeadscythes/udsplugin/eventhandlers/InventoryClose.java b/src/com/undeadscythes/udsplugin/eventhandlers/InventoryClose.java index 806f835..efbc0bb 100644 --- a/src/com/undeadscythes/udsplugin/eventhandlers/InventoryClose.java +++ b/src/com/undeadscythes/udsplugin/eventhandlers/InventoryClose.java...
true
true
public final void onEvent(final InventoryCloseEvent event) { final SaveablePlayer shopper = PlayerUtils.getOnlinePlayer(event.getPlayer().getName()); if(shopper.isShopping()) { final ItemStack handItem = event.getView().getCursor(); if(!handItem.getType().equals(Material.AIR)...
public final void onEvent(final InventoryCloseEvent event) { final SaveablePlayer shopper = PlayerUtils.getOnlinePlayer(event.getPlayer().getName()); if(shopper.isShopping()) { final ItemStack handItem = event.getView().getCursor(); if(!handItem.getType().equals(Material.AIR)...
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/TypeTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/TypeTests.java index 0023af977..70d3e5933 100644 --- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/TypeTests.java +++ b/org.eclipse.j...
true
true
public void testDeclaringTypes() throws Exception { IJavaType[] types = new IJavaType[3]; int index = 0; String typeName = "Breakpoints"; List bps = new ArrayList(); // main bps.add(createLineBreakpoint(52, typeName)); // threading bps.add(createLineBreakpoint(66, typeName)); // InnerRunnable.run b...
public void XtestDeclaringTypes() throws Exception { IJavaType[] types = new IJavaType[3]; int index = 0; String typeName = "Breakpoints"; List bps = new ArrayList(); // main bps.add(createLineBreakpoint(52, typeName)); // threading bps.add(createLineBreakpoint(66, typeName)); // InnerRunnable.run ...
diff --git a/modules/org.restlet.ext.dataservices/src/org/restlet/ext/dataservices/internal/edm/MetadataReader.java b/modules/org.restlet.ext.dataservices/src/org/restlet/ext/dataservices/internal/edm/MetadataReader.java index fc4309e9d..344b2fe84 100755 --- a/modules/org.restlet.ext.dataservices/src/org/restlet/ext/da...
true
true
public void startElement(String uri, String localName, String name, Attributes attributes) throws SAXException { // Access to attributes regardless of attributes's namespace Map<String, String> attr = new HashMap<String, String>(); for (int i = 0; i < attributes.getLength(); i++)...
public void startElement(String uri, String localName, String name, Attributes attributes) throws SAXException { // Access to attributes regardless of attributes's namespace Map<String, String> attr = new HashMap<String, String>(); for (int i = 0; i < attributes.getLength(); i++)...
diff --git a/src/expensable/client/util/Tokenizers.java b/src/expensable/client/util/Tokenizers.java index 8f7c8fd..684216e 100644 --- a/src/expensable/client/util/Tokenizers.java +++ b/src/expensable/client/util/Tokenizers.java @@ -1,39 +1,39 @@ package expensable.client.util; import java.util.HashMap; import c...
true
true
public static HashMap<String, String> tokenizeQueryString(String qs) { HashMap<String, String> map = Maps.newHashMap(); if (qs.startsWith("?")) { qs.substring(1); } String[] params = qs.split("&"); for (String param : params) { String[] paramParts = param.split("="); String key;...
public static HashMap<String, String> tokenizeQueryString(String qs) { HashMap<String, String> map = Maps.newHashMap(); if (qs.startsWith("?")) { qs = qs.substring(1); } String[] params = qs.split("&"); for (String param : params) { String[] paramParts = param.split("="); String...
diff --git a/src/org/openjump/core/ui/plugin/tools/UnionByAttributePlugIn.java b/src/org/openjump/core/ui/plugin/tools/UnionByAttributePlugIn.java index ae7d7b0b..59167c81 100644 --- a/src/org/openjump/core/ui/plugin/tools/UnionByAttributePlugIn.java +++ b/src/org/openjump/core/ui/plugin/tools/UnionByAttributePlugIn.ja...
false
true
public void run(TaskMonitor monitor, PlugInContext context) throws Exception { monitor.allowCancellationRequests(); Collection inputC = null; FeatureSchema schema = null; if (use_selection) { inputC = context.getLayerViewPanel().getSelectionManager().getFea...
public void run(TaskMonitor monitor, PlugInContext context) throws Exception { monitor.allowCancellationRequests(); Collection inputC = null; FeatureSchema schema = null; if (use_selection) { inputC = context.getLayerViewPanel().getSelectionManager().getFea...
diff --git a/odcleanstore/core/src/main/java/cz/cuni/mff/odcleanstore/data/DebugGraphFileLoader.java b/odcleanstore/core/src/main/java/cz/cuni/mff/odcleanstore/data/DebugGraphFileLoader.java index d58e4ee6..454e0694 100644 --- a/odcleanstore/core/src/main/java/cz/cuni/mff/odcleanstore/data/DebugGraphFileLoader.java +++...
true
true
private HashMap<String, String> loadImpl (NamedGraphSetImpl namedGraphSet, String discriminator) throws Exception { /** * Copy them into unique graphs */ UniqueGraphNameGenerator graphNameGen = new UniqueGraphNameGenerator("http://example.com/" + discriminator + "/debug/", connectionCredentials); HashM...
private HashMap<String, String> loadImpl (NamedGraphSetImpl namedGraphSet, String discriminator) throws Exception { /** * Copy them into unique graphs */ UniqueGraphNameGenerator graphNameGen = new UniqueGraphNameGenerator(temporaryGraphURIPrefix + "/" + discriminator + "/debug/", connectionCredentials); ...
diff --git a/cadpage/src/net/anei/cadpage/donation/DonationManager.java b/cadpage/src/net/anei/cadpage/donation/DonationManager.java index 5e2609045..924ce9361 100644 --- a/cadpage/src/net/anei/cadpage/donation/DonationManager.java +++ b/cadpage/src/net/anei/cadpage/donation/DonationManager.java @@ -1,292 +1,292 @@ pa...
false
true
private void calculate() { // If this is the free version of Cadpage, we can skip all of the hard stuff if (this.getClass().getName().contains(".cadpagefree")) { status = DonationStatus.FREE; return; } // If the current day hasn't changed, we can use the cached values long cu...
private void calculate() { // If this is the free version of Cadpage, we can skip all of the hard stuff if (this.getClass().getName().contains(".cadpagefree")) { status = DonationStatus.FREE; return; } // If the current day hasn't changed, we can use the cached values long cu...
diff --git a/src/main/java/net/pms/encoders/MEncoderVideo.java b/src/main/java/net/pms/encoders/MEncoderVideo.java index 5f50b8877..b4cb23eef 100644 --- a/src/main/java/net/pms/encoders/MEncoderVideo.java +++ b/src/main/java/net/pms/encoders/MEncoderVideo.java @@ -1,2511 +1,2510 @@ /* * PS3 Media Server, for streami...
true
true
public ProcessWrapper launchTranscode( DLNAResource dlna, DLNAMediaInfo media, OutputParams params ) throws IOException { params.manageFastStart(); boolean avisynth = avisynth(); final String filename = dlna.getSystemName(); setAudioAndSubs(filename, media, params); String externalSubtitlesFileName ...
public ProcessWrapper launchTranscode( DLNAResource dlna, DLNAMediaInfo media, OutputParams params ) throws IOException { params.manageFastStart(); boolean avisynth = avisynth(); final String filename = dlna.getSystemName(); setAudioAndSubs(filename, media, params); String externalSubtitlesFileName ...
diff --git a/test/ApplicationTest.java b/test/ApplicationTest.java index 045b47f..4e856bc 100644 --- a/test/ApplicationTest.java +++ b/test/ApplicationTest.java @@ -1,52 +1,52 @@ import models.Note; import org.junit.After; import org.junit.Before; import org.junit.Test; import play.data.Form; import play.mvc.Cont...
true
true
public void testInitialData() { // Should be 4 notes in DB assertEquals(4, Note.find.findRowCount()); // Should have note with text "The first note" Note myNote = Note.find.where().eq("title", "Note title 1").findUnique(); assertNotNull(myNote); }
public void testInitialData() { // Should be 4 notes in DB assertEquals(10, Note.find.findRowCount()); // Should have note with text "The first note" Note myNote = Note.find.where().eq("title", "Note title 1").findUnique(); assertNotNull(myNote); }
diff --git a/source/org/jivesoftware/smack/packet/Packet.java b/source/org/jivesoftware/smack/packet/Packet.java index a8cabf81..11a37cd3 100644 --- a/source/org/jivesoftware/smack/packet/Packet.java +++ b/source/org/jivesoftware/smack/packet/Packet.java @@ -1,348 +1,348 @@ /** * $RCSfile$ * $Revision$ * $Date$ ...
true
true
protected synchronized String getPropertiesXML() { // Return null if there are no properties. if (properties.isEmpty()) { return null; } StringBuffer buf = new StringBuffer(); buf.append("<x xmlns=\"http://www.jivesoftware.com/xmlns/xmpp/properties\">"); /...
protected synchronized String getPropertiesXML() { // Return null if there are no properties. if (properties.isEmpty()) { return null; } StringBuffer buf = new StringBuffer(); buf.append("<x xmlns=\"http://www.jivesoftware.com/xmlns/xmpp/properties\">"); /...
diff --git a/src/org/tekkotsu/api/BehaviorWriter.java b/src/org/tekkotsu/api/BehaviorWriter.java index e065956..b3fedbf 100644 --- a/src/org/tekkotsu/api/BehaviorWriter.java +++ b/src/org/tekkotsu/api/BehaviorWriter.java @@ -1,380 +1,380 @@ package org.tekkotsu.api; import java.util.ArrayList; public class Behav...
true
true
public String getTransitions(){ //Create string to return String transitions = ""; //Create transition instance objects from the setup object. ArrayList<TransitionInstance> transList = this.setup.getTransitions(); //for every transition initialized for(int i = 0; i < transList.size(); i++){ ...
public String getTransitions(){ //Create string to return String transitions = ""; //Create transition instance objects from the setup object. ArrayList<TransitionInstance> transList = this.setup.getTransitions(); //for every transition initialized for(int i = 0; i < transList.size(); i++){ ...
diff --git a/de.jutzig.jabylon.rest.ui/src/main/java/de/jutzig/jabylon/rest/ui/wicket/panels/SinglePropertyEditor.java b/de.jutzig.jabylon.rest.ui/src/main/java/de/jutzig/jabylon/rest/ui/wicket/panels/SinglePropertyEditor.java index fb0adc0d..afda27c0 100644 --- a/de.jutzig.jabylon.rest.ui/src/main/java/de/jutzig/jabyl...
true
true
public SinglePropertyEditor(String id, IModel<PropertyPair> model, boolean expanded) { super(id, model); this.expanded = expanded; setOutputMarkupId(true); PropertyPair propertyPair = model.getObject(); IStatus status = calculateRowStatus(propertyPair); String key = propertyPair.getTemplate().getKey(); ...
public SinglePropertyEditor(String id, IModel<PropertyPair> model, boolean expanded) { super(id, model); this.expanded = expanded; setOutputMarkupId(true); PropertyPair propertyPair = model.getObject(); IStatus status = calculateRowStatus(propertyPair); String key = propertyPair.getTemplate().getKey(); ...
diff --git a/gsf-controller/src/main/java/com/fatwire/gst/foundation/url/WraPageReference.java b/gsf-controller/src/main/java/com/fatwire/gst/foundation/url/WraPageReference.java index 45d46ed1..56f6d3ca 100644 --- a/gsf-controller/src/main/java/com/fatwire/gst/foundation/url/WraPageReference.java +++ b/gsf-controller/...
true
true
public void setParameters(Map args, ICS ics) throws ReferenceException { // no processing to do if not serving a page for SS if (getSatelliteContext() == SatelliteContext.SATELLITE_SERVER && isGetTemplateUrl(args)) { AssetId id = new AssetIdImpl((String) args.get("c"), Long.parseLong((S...
public void setParameters(Map args, ICS ics) throws ReferenceException { // no processing to do if not serving a page for SS if (getSatelliteContext() == SatelliteContext.SATELLITE_SERVER && isGetTemplateUrl(args)) { AssetId id = new AssetIdImpl((String) args.get("c"), Long.parseLong((S...
diff --git a/src/com/chuckanutbay/webapp/common/shared/WeekReportData.java b/src/com/chuckanutbay/webapp/common/shared/WeekReportData.java index 9466133..e17e422 100644 --- a/src/com/chuckanutbay/webapp/common/shared/WeekReportData.java +++ b/src/com/chuckanutbay/webapp/common/shared/WeekReportData.java @@ -1,69 +1,69 ...
true
true
public void addHours(double hours) { hoursNormalPay += hours; if ((hoursNormalPay + prePayPeriodHours) > 40) { hoursOvertime = (hoursNormalPay + prePayPeriodHours) - 40; hoursNormalPay = (40 - prePayPeriodHours); } }
public void addHours(double hours) { hoursNormalPay += hours; if ((hoursNormalPay + prePayPeriodHours) > 40) { hoursOvertime = (hoursNormalPay + prePayPeriodHours + hoursOvertime) - 40; hoursNormalPay = (40 - prePayPeriodHours); } }
diff --git a/gr/auth/ee/lcs/evaluators/SingleLabelEvaluator.java b/gr/auth/ee/lcs/evaluators/SingleLabelEvaluator.java index ebe891d..c6f43b1 100644 --- a/gr/auth/ee/lcs/evaluators/SingleLabelEvaluator.java +++ b/gr/auth/ee/lcs/evaluators/SingleLabelEvaluator.java @@ -1,68 +1,69 @@ /** * */ package gr.auth.ee.lc...
true
true
public final double evaluateSet(final ClassifierSet classifiers) { final ClassifierTransformBridge bridge = ClassifierTransformBridge .getInstance(); int tp = 0; for (int i = 0; i < instanceSet.numInstances(); i++) { final double[] instance = new double[instanceSet.numAttributes()]; for (int j = 0; j ...
public final double evaluateSet(final ClassifierSet classifiers) { final ClassifierTransformBridge bridge = ClassifierTransformBridge .getInstance(); int tp = 0; for (int i = 0; i < instanceSet.numInstances(); i++) { final double[] instance = new double[instanceSet.numAttributes()]; for (int j = 0; j ...
diff --git a/src/java/com/idega/presentation/ui/PostalCodeDropdownMenu.java b/src/java/com/idega/presentation/ui/PostalCodeDropdownMenu.java index 5649cd3be..7ff5f0209 100755 --- a/src/java/com/idega/presentation/ui/PostalCodeDropdownMenu.java +++ b/src/java/com/idega/presentation/ui/PostalCodeDropdownMenu.java @@ -1,9...
true
true
public void main(IWContext iwc) throws Exception{ super.main(iwc); clearChildren(); if( countryName!=null && country == null) { country = getAddressBusiness(iwc).getCountryHome().findByCountryName(countryName); } //TODO extract the following code to a method in CountryDropDownMenu or CountryBMPBean i...
public void main(IWContext iwc) throws Exception{ super.main(iwc); clearChildren(); if( countryName!=null && country == null) { country = getAddressBusiness(iwc).getCountryHome().findByCountryName(countryName); } //TODO extract the following code to a method in CountryDropDownMenu or CountryBMPBean i...
diff --git a/src/utils/TimeService.java b/src/utils/TimeService.java index 5b4d7fb..9726c23 100644 --- a/src/utils/TimeService.java +++ b/src/utils/TimeService.java @@ -1,67 +1,67 @@ package utils; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.C...
true
true
public boolean isDateValid(int year, int month, int day, int hour, int minute) { if(hour == 0) hour = 24; else if(hour == 24) hour = 0; String date = String.valueOf(year)+"-"+String.valueOf(month)+"-"+String.valueOf(day)+"-"+String.valueOf(hour)+"-"+String.valueOf(minute); System.out.println("input: ...
public boolean isDateValid(int year, int month, int day, int hour, int minute) { if(hour == 0) hour = 24; else if(hour == 24) return false; String date = String.valueOf(year)+"-"+String.valueOf(month)+"-"+String.valueOf(day)+"-"+String.valueOf(hour)+"-"+String.valueOf(minute); System.out.println("inp...
diff --git a/common/logisticspipes/logic/LogicLiquidSupplier.java b/common/logisticspipes/logic/LogicLiquidSupplier.java index 2579d448..14697b48 100644 --- a/common/logisticspipes/logic/LogicLiquidSupplier.java +++ b/common/logisticspipes/logic/LogicLiquidSupplier.java @@ -1,196 +1,196 @@ /** * Copyright (c) Kraph...
true
true
public void throttledUpdateEntity() { if (MainProxy.isClient(worldObj)) return; super.throttledUpdateEntity(); WorldUtil worldUtil = new WorldUtil(worldObj, xCoord, yCoord, zCoord); for (AdjacentTile tile : worldUtil.getAdjacentTileEntities()){ if (!(tile.tile instanceof ITankContainer) || tile.tile instan...
public void throttledUpdateEntity() { if (MainProxy.isClient(worldObj)) return; super.throttledUpdateEntity(); WorldUtil worldUtil = new WorldUtil(worldObj, xCoord, yCoord, zCoord); for (AdjacentTile tile : worldUtil.getAdjacentTileEntities()){ if (!(tile.tile instanceof ITankContainer) || tile.tile instan...
diff --git a/src/de/sofd/viskit/ui/imagelist/jlistimpl/test/JListImageListTestApp.java b/src/de/sofd/viskit/ui/imagelist/jlistimpl/test/JListImageListTestApp.java index a998a21..64f28d6 100644 --- a/src/de/sofd/viskit/ui/imagelist/jlistimpl/test/JListImageListTestApp.java +++ b/src/de/sofd/viskit/ui/imagelist/jlistimpl...
true
true
public JFrame newSingleListFrame(String frameTitle, GraphicsConfiguration graphicsConfig) throws Exception { //final DefaultListModel model = getTestImageViewerListModel(); //final DefaultListModel model = getViewerListModelForDirectory(new File("/home/olaf/gi/resources/DICOM-Testbilder/1578")); ...
public JFrame newSingleListFrame(String frameTitle, GraphicsConfiguration graphicsConfig) throws Exception { //final DefaultListModel model = getTestImageViewerListModel(); //final DefaultListModel model = getViewerListModelForDirectory(new File("/home/olaf/gi/resources/DICOM-Testbilder/1578")); ...
diff --git a/src/de/tu_darmstadt/gdi1/samegame/model/Level.java b/src/de/tu_darmstadt/gdi1/samegame/model/Level.java index dc8005e..d6e85dd 100755 --- a/src/de/tu_darmstadt/gdi1/samegame/model/Level.java +++ b/src/de/tu_darmstadt/gdi1/samegame/model/Level.java @@ -1,1745 +1,1745 @@ package de.tu_darmstadt.gdi1.samegam...
true
true
public static void validateSyntactical(final String levelString) throws WrongLevelFormatException{ Scanner s; LineNumberReader line = new LineNumberReader( new StringReader(levelString)); s = new Scanner(line); // get the length of the first line if(!s.hasNextLine()) throw new WrongLevelF...
public static void validateSyntactical(final String levelString) throws WrongLevelFormatException{ Scanner s; LineNumberReader line = new LineNumberReader( new StringReader(levelString)); s = new Scanner(line); // get the length of the first line if(!s.hasNextLine()) throw new WrongLevelF...
diff --git a/simulator/Tournament/src/edu/harvard/seas/cs266/naptime/Robot.java b/simulator/Tournament/src/edu/harvard/seas/cs266/naptime/Robot.java index baf03bf..6c84fc6 100644 --- a/simulator/Tournament/src/edu/harvard/seas/cs266/naptime/Robot.java +++ b/simulator/Tournament/src/edu/harvard/seas/cs266/naptime/Robot....
false
true
private void updateCamera(Continuous2D field) { // Calculate some camera constants final double imageWidth = Math.tan(Math.PI/6)*robotSize; // Get the robot's current location Double2D current = field.getObjectLocation(this); // Find the closest object of the specified type within the field of view d...
private void updateCamera(Continuous2D field) { // Calculate some camera constants final double imageWidth = Math.tan(Math.PI/6)*robotSize; // Get the robot's current location Double2D current = field.getObjectLocation(this); // Find the closest object of the specified type within the field of view d...
diff --git a/src/de/quiz/Servlets/PlayerServlet.java b/src/de/quiz/Servlets/PlayerServlet.java index 1029e76..f0a1c27 100644 --- a/src/de/quiz/Servlets/PlayerServlet.java +++ b/src/de/quiz/Servlets/PlayerServlet.java @@ -1,210 +1,210 @@ package de.quiz.Servlets; import java.io.IOException; import java.io.PrintWrit...
false
true
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String sc = ""; if (request.getParameter("rID") != null) { sc = request.getParameter("rID"); } // login request if (sc.equals("1")) { response.setContentType("application/json"); ...
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String sc = ""; if (request.getParameter("rID") != null) { sc = request.getParameter("rID"); } // login request if (sc.equals("1")) { response.setContentType("application/json"); ...
diff --git a/src/java/net/percederberg/mibble/FileLocation.java b/src/java/net/percederberg/mibble/FileLocation.java index 056bf87..69db2ac 100644 --- a/src/java/net/percederberg/mibble/FileLocation.java +++ b/src/java/net/percederberg/mibble/FileLocation.java @@ -1,137 +1,140 @@ /* * FileLocation.java * * This ...
true
true
public String readLine() { BufferedReader input; String str = null; int count = 1; int ch; if (file == null || line < 0) { return null; } try { input = new BufferedReader(new FileReader(file)); ...
public String readLine() { BufferedReader input; String str = null; int count = 1; int ch; if (file == null || line < 0) { return null; } try { input = new BufferedReader(new FileReader(file)); ...
diff --git a/translator/src/jedd/Main.java b/translator/src/jedd/Main.java index 2728ebd..b672e66 100644 --- a/translator/src/jedd/Main.java +++ b/translator/src/jedd/Main.java @@ -1,72 +1,72 @@ /* Jedd - A language for implementing relations using BDDs * Copyright (C) 2003 Ondrej Lhotak * * This library is free...
true
true
public static final void main( String[] args ) { LinkedList largs = new LinkedList( Arrays.asList(args) ); for( Iterator argIt = largs.iterator(); argIt.hasNext(); ) { final String arg = (String) argIt.next(); if( arg.equals( "-s" ) ) { argIt.remove(); ...
public static final void main( String[] args ) { LinkedList largs = new LinkedList( Arrays.asList(args) ); for( Iterator argIt = largs.iterator(); argIt.hasNext(); ) { final String arg = (String) argIt.next(); if( arg.equals( "-s" ) ) { argIt.remove(); ...
diff --git a/src/main/java/com/yetanotherx/xbot/bots/aiv/CheckUserIsBlockedJob.java b/src/main/java/com/yetanotherx/xbot/bots/aiv/CheckUserIsBlockedJob.java index f9d0a71..0ad6458 100644 --- a/src/main/java/com/yetanotherx/xbot/bots/aiv/CheckUserIsBlockedJob.java +++ b/src/main/java/com/yetanotherx/xbot/bots/aiv/CheckU...
true
true
public void doRun() { try { LogEntry[] logs = bot.getParent().getWiki().getIPBlockList(user); if( logs.length > 0 ) { // should never be >1 // User is blocked LogEntry log = logs[0]; if( !log.getType().equals("block") ) { ...
public void doRun() { try { LogEntry[] logs = bot.getParent().getWiki().getIPBlockList(user); if( logs.length > 0 ) { // should never be >1 // User is blocked LogEntry log = logs[0]; if( !log.getType().equals("block") ) { ...
diff --git a/src/jam/ld27/entities/Player.java b/src/jam/ld27/entities/Player.java index bf19911..17bf538 100644 --- a/src/jam/ld27/entities/Player.java +++ b/src/jam/ld27/entities/Player.java @@ -1,135 +1,135 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ pa...
true
true
public void update(GameContainer gc, int delta) { super.update(gc, delta); float x = getX(); float y = getY(); //Applying gravity: if(gravityActive) { if(velY >= maxVelY) { velY = maxVelY; } else { velY += velY*g; ...
public void update(GameContainer gc, int delta) { super.update(gc, delta); float x = getX(); float y = getY(); //Applying gravity: if(gravityActive) { if(velY >= maxVelY) { velY = maxVelY; } else { velY += velY*g; ...
diff --git a/activemq-core/src/main/java/org/apache/activemq/ActiveMQMessageConsumer.java b/activemq-core/src/main/java/org/apache/activemq/ActiveMQMessageConsumer.java index 8fb0c4491..2deab5a44 100755 --- a/activemq-core/src/main/java/org/apache/activemq/ActiveMQMessageConsumer.java +++ b/activemq-core/src/main/java/...
true
true
public ActiveMQMessageConsumer(ActiveMQSession session, ConsumerId consumerId, ActiveMQDestination dest, String name, String selector, int prefetch, int maximumPendingMessageCount, boolean noLocal, boolean browser, boolean dispatchAsync, MessageListener messageListener) throws JM...
public ActiveMQMessageConsumer(ActiveMQSession session, ConsumerId consumerId, ActiveMQDestination dest, String name, String selector, int prefetch, int maximumPendingMessageCount, boolean noLocal, boolean browser, boolean dispatchAsync, MessageListener messageListener) throws JM...
diff --git a/src/brut/androlib/res/util/ExtMXSerializer.java b/src/brut/androlib/res/util/ExtMXSerializer.java index 0fdbb87..2f14329 100644 --- a/src/brut/androlib/res/util/ExtMXSerializer.java +++ b/src/brut/androlib/res/util/ExtMXSerializer.java @@ -1,61 +1,62 @@ /* * Copyright 2010 Ryszard Wiśniewski <brut.alll...
false
true
public void setProperty(String name, Object value) throws IllegalArgumentException, IllegalStateException { if (PROPERTY_DEFAULT_ENCODING.equals(name)) { mDefaultEncoding = (String) value; } super.setProperty(name, value); }
public void setProperty(String name, Object value) throws IllegalArgumentException, IllegalStateException { if (PROPERTY_DEFAULT_ENCODING.equals(name)) { mDefaultEncoding = (String) value; } else { super.setProperty(name, value); } }
diff --git a/user/super/com/google/gwt/emul/java/lang/Enum.java b/user/super/com/google/gwt/emul/java/lang/Enum.java index 2f7df8998..4018c32e1 100644 --- a/user/super/com/google/gwt/emul/java/lang/Enum.java +++ b/user/super/com/google/gwt/emul/java/lang/Enum.java @@ -1,130 +1,130 @@ /* * Copyright 2008 Google Inc. ...
true
true
protected static <T extends Enum<T>> T valueOf(JavaScriptObject map, String name) { T result = Enum.<T> get0(map, ":" + name); if (result != null) { return result; } if (name == null) { throw new NullPointerException(); } throw new IllegalArgumentException(); }
protected static <T extends Enum<T>> T valueOf(JavaScriptObject map, String name) { T result = Enum.<T> get0(map, ":" + name); if (result != null) { return result; } if (name == null) { throw new NullPointerException(); } throw new IllegalArgumentException("Enum constant unde...
diff --git a/test/edu/harvard/cs262/grading/test/TestSharderService.java b/test/edu/harvard/cs262/grading/test/TestSharderService.java index e6222d0..b6efa26 100644 --- a/test/edu/harvard/cs262/grading/test/TestSharderService.java +++ b/test/edu/harvard/cs262/grading/test/TestSharderService.java @@ -1,42 +1,42 @@ pack...
true
true
public void testShard() throws Exception { MongoSubmissionStorageService storage = new MongoSubmissionStorageService(); storage.init(); SharderServiceServer sharder = new SharderServiceServer(); sharder.init(true); byte[] contents = new byte[42]; Assignment assn = new AssignmentImpl(0); Submission s0 ...
public void testShard() throws Exception { MongoSubmissionStorageService storage = new MongoSubmissionStorageService(); storage.init(); SharderServiceServer sharder = new SharderServiceServer(); sharder.init(true); byte[] contents = new byte[42]; Assignment assn = new AssignmentImpl(0); Submission s0 ...
diff --git a/zazl/maqetta.zazl/src/maqetta/zazl/Activator.java b/zazl/maqetta.zazl/src/maqetta/zazl/Activator.java index 3740db68f..1d7ae5bf9 100644 --- a/zazl/maqetta.zazl/src/maqetta/zazl/Activator.java +++ b/zazl/maqetta.zazl/src/maqetta/zazl/Activator.java @@ -1,143 +1,143 @@ package maqetta.zazl; import java.u...
true
true
protected boolean register() { if (!registered && httpService != null) {// && httpContextExtensionService != null) { /* httpContext = httpContextExtensionService.getHttpContext(httpServiceReference, httpContextName); if (httpContext == null) { System.out.println("Unable to obtain HttpContext for "+httpC...
protected boolean register() { if (!registered && httpService != null) {// && httpContextExtensionService != null) { /* httpContext = httpContextExtensionService.getHttpContext(httpServiceReference, httpContextName); if (httpContext == null) { System.out.println("Unable to obtain HttpContext for "+httpC...
diff --git a/services/common/src/main/java/org/collectionspace/services/common/ServiceMain.java b/services/common/src/main/java/org/collectionspace/services/common/ServiceMain.java index b29470437..43af76e74 100644 --- a/services/common/src/main/java/org/collectionspace/services/common/ServiceMain.java +++ b/services/c...
false
true
private void createDefaultAccounts() { if (logger.isDebugEnabled()) { logger.debug("ServiceMain.createDefaultAccounts starting..."); } Hashtable<String, TenantBindingType> tenantBindings = tenantBindingConfigReader.getTenantBindings(); Hashtable<String, String> tenantInfo = ...
private void createDefaultAccounts() { if (logger.isDebugEnabled()) { logger.debug("ServiceMain.createDefaultAccounts starting..."); } Hashtable<String, TenantBindingType> tenantBindings = tenantBindingConfigReader.getTenantBindings(); Hashtable<String, String> tenantInfo = ...
diff --git a/src/main/java/org/jboss/pressgang/ccms/contentspec/client/commands/BuildCommand.java b/src/main/java/org/jboss/pressgang/ccms/contentspec/client/commands/BuildCommand.java index e2612c8..dcb3c8c 100644 --- a/src/main/java/org/jboss/pressgang/ccms/contentspec/client/commands/BuildCommand.java +++ b/src/main...
false
true
public void process() { final long startTime = System.currentTimeMillis(); // Add the details for the csprocessor.cfg if no ids are specified and then validate input boolean buildingFromConfig = ClientUtilities.prepareAndValidateStringIds(this, getCspConfig(), getIds()); // Good po...
public void process() { final long startTime = System.currentTimeMillis(); // Add the details for the csprocessor.cfg if no ids are specified and then validate input boolean buildingFromConfig = ClientUtilities.prepareAndValidateStringIds(this, getCspConfig(), getIds()); // Good po...
diff --git a/plugins/org.eclipse.dltk.ruby.ui/src/org/eclipse/dltk/ruby/internal/ui/wizards/RubyNewProjectWizard.java b/plugins/org.eclipse.dltk.ruby.ui/src/org/eclipse/dltk/ruby/internal/ui/wizards/RubyNewProjectWizard.java index 29583c88..8f9cc23b 100644 --- a/plugins/org.eclipse.dltk.ruby.ui/src/org/eclipse/dltk/rub...
true
true
public void addPages() { super.addPages(); fFirstPage = new ProjectWizardFirstPage() { RubyInterpreterGroup fInterpreterGroup; final class RubyInterpreterGroup extends AbstractInterpreterGroup { public RubyInterpreterGroup(Composite composite) { super (composi...
public void addPages() { super.addPages(); fFirstPage = new ProjectWizardFirstPage() { RubyInterpreterGroup fInterpreterGroup; final class RubyInterpreterGroup extends AbstractInterpreterGroup { public RubyInterpreterGroup(Composite composite) { super (composi...
diff --git a/Android/src/com/jetthoughts/socksboots/MainFrame.java b/Android/src/com/jetthoughts/socksboots/MainFrame.java index 9422cef..d713e8e 100644 --- a/Android/src/com/jetthoughts/socksboots/MainFrame.java +++ b/Android/src/com/jetthoughts/socksboots/MainFrame.java @@ -1,15 +1,15 @@ package com.jetthoughts.sock...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.loadUrl("file:///android_asset/www/index.html"); }
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.loadUrl("file:///android_asset/www/index_android.html"); }
diff --git a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/test/util/HTMLFactory.java b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/test/util/HTMLFactory.java index 61430b95f..722859b36 100644 --- a/editor/tools/plugins/com.google.dart.tools....
true
true
public static String allScriptTypes() { return "<html><head>" + "<script type=\"application/dart\" src=\"special.dart\"/>" + "<script type=\"text/javascript\" src=\"main.dart.app.js\"/>" + "<script type=\"text/javascript\" src=\"other.js\"/>" + "<script type=\"text/ruby\" src=\"script.rb\"...
public static String allScriptTypes() { return "<html><head>" + "<script type=\"application/dart\" src=\"special.dart\"/>" + "<script type=\"text/javascript\" src=\"main.dart.js\"/>" + "<script type=\"text/javascript\" src=\"other.js\"/>" + "<script type=\"text/ruby\" src=\"script.rb\"/>" ...
diff --git a/src/uk/co/timwise/sqlhawk/console/ArgParser.java b/src/uk/co/timwise/sqlhawk/console/ArgParser.java index 4e16a7c..98921ba 100644 --- a/src/uk/co/timwise/sqlhawk/console/ArgParser.java +++ b/src/uk/co/timwise/sqlhawk/console/ArgParser.java @@ -1,364 +1,363 @@ /* This file is a part of the sqlHawk project....
false
true
public Config Parse(String[] argv) throws Exception { SimpleJSAP jsapParser = getJsapParser(); JSAPResult jsapConfig = jsapParser.parse(argv); if (jsapParser.messagePrinted()) { if (!jsapConfig.getBoolean("help")) { showUsage(); } System.exit( 1 ); } if (argv.length == 0) { showUsage(); S...
public Config Parse(String[] argv) throws Exception { SimpleJSAP jsapParser = getJsapParser(); JSAPResult jsapConfig = jsapParser.parse(argv); if (jsapParser.messagePrinted()) { if (!jsapConfig.getBoolean("help")) { showUsage(); } System.exit( 1 ); } if (argv.length == 0) { showUsage(); S...
diff --git a/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/AddMavenOneProjectAction.java b/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/AddMavenOneProjectAction.java index d7f8382b6..cba181009 100644 --- a/continuum-webapp/src/main/java/org/apache/maven/continuum/web/actio...
true
true
protected ContinuumProjectBuildingResult doExecute( String pomUrl ) throws ContinuumException { return continuum.addMavenTwoProject( pomUrl ); }
protected ContinuumProjectBuildingResult doExecute( String pomUrl ) throws ContinuumException { return continuum.addMavenOneProject( pomUrl ); }
diff --git a/java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java b/java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java index 7d2ccdf5f..9dcffd4e2 100644 --- a/java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java +++ b/java/src/com/android/inputmethod/latin/Expanda...
false
true
private void generateBinaryDictionary() { if (DEBUG) { Log.d(TAG, "Generating binary dictionary: request=" + mSharedDictionaryController.mLastUpdateRequestTime + " update=" + mSharedDictionaryController.mLastUpdateTime); } loadDictionaryAs...
private void generateBinaryDictionary() { if (DEBUG) { Log.d(TAG, "Generating binary dictionary: request=" + mSharedDictionaryController.mLastUpdateRequestTime + " update=" + mSharedDictionaryController.mLastUpdateTime); } loadDictionaryAs...
diff --git a/gdms/src/test/java/org/gdms/sql/function/IOSpatialFunctionTest.java b/gdms/src/test/java/org/gdms/sql/function/IOSpatialFunctionTest.java index a8725d526..f2b217176 100644 --- a/gdms/src/test/java/org/gdms/sql/function/IOSpatialFunctionTest.java +++ b/gdms/src/test/java/org/gdms/sql/function/IOSpatialFunct...
false
true
public void testGeomFromTextWithCRS() throws Exception { String wkt = new WKTWriter().write(JTSMultiPolygon2D); ST_GeomFromText st = new ST_GeomFromText(); Value ret = st.evaluate(dsf, new Value[] { ValueFactory.createValue(wkt), V...
public void testGeomFromTextWithCRS() throws Exception { String wkt = new WKTWriter().write(JTSMultiPolygon2D); ST_GeomFromText st = new ST_GeomFromText(); Value ret = st.evaluate(dsf, new Value[] { ValueFactory.createValue(wkt), V...
diff --git a/VariableDescriptorRecord.java b/VariableDescriptorRecord.java index 3cc7280..e57a993 100644 --- a/VariableDescriptorRecord.java +++ b/VariableDescriptorRecord.java @@ -1,103 +1,103 @@ package cdf; public abstract class VariableDescriptorRecord extends Record { public final long vdrNext_; pu...
false
true
private VariableDescriptorRecord( RecordPlan plan, int recordType, boolean hasDims ) { super( plan, recordType ); Buf buf = plan.getBuf(); Pointer ptr = plan.createContentPointer(); vdrNext_ = buf.readOffset( ptr ); dataType_ = buf.readIn...
private VariableDescriptorRecord( RecordPlan plan, int recordType, boolean hasDims ) { super( plan, recordType ); Buf buf = plan.getBuf(); Pointer ptr = plan.createContentPointer(); vdrNext_ = buf.readOffset( ptr ); dataType_ = buf.readIn...
diff --git a/public/java/src/org/broadinstitute/sting/utils/text/ListFileUtils.java b/public/java/src/org/broadinstitute/sting/utils/text/ListFileUtils.java index 79271464b..61d53679a 100644 --- a/public/java/src/org/broadinstitute/sting/utils/text/ListFileUtils.java +++ b/public/java/src/org/broadinstitute/sting/utils...
true
true
public static Collection<RMDTriplet> unpackRODBindings(final Collection<RodBinding> RODBindings, final ParsingEngine parser) { // todo -- this is a strange home for this code. Move into ROD system Collection<RMDTriplet> rodBindings = new ArrayList<RMDTriplet>(); FeatureManager builderForVal...
public static Collection<RMDTriplet> unpackRODBindings(final Collection<RodBinding> RODBindings, final ParsingEngine parser) { // todo -- this is a strange home for this code. Move into ROD system Collection<RMDTriplet> rodBindings = new ArrayList<RMDTriplet>(); FeatureManager builderForVal...
diff --git a/src/java/com/android/internal/telephony/cdma/CdmaLteServiceStateTracker.java b/src/java/com/android/internal/telephony/cdma/CdmaLteServiceStateTracker.java index df2b7feb..4176767d 100644 --- a/src/java/com/android/internal/telephony/cdma/CdmaLteServiceStateTracker.java +++ b/src/java/com/android/internal/...
true
true
protected void pollStateDone() { log("pollStateDone: lte 1 ss=[" + mSS + "] newSS=[" + mNewSS + "]"); useDataRegStateForDataOnlyDevices(); boolean hasRegistered = mSS.getVoiceRegState() != ServiceState.STATE_IN_SERVICE && mNewSS.getVoiceRegState() == ServiceState.STATE_IN_S...
protected void pollStateDone() { log("pollStateDone: lte 1 ss=[" + mSS + "] newSS=[" + mNewSS + "]"); useDataRegStateForDataOnlyDevices(); boolean hasRegistered = mSS.getVoiceRegState() != ServiceState.STATE_IN_SERVICE && mNewSS.getVoiceRegState() == ServiceState.STATE_IN_S...
diff --git a/src/com/example/solfege/VerticalSeekBar.java b/src/com/example/solfege/VerticalSeekBar.java index c3af68c..22f8707 100644 --- a/src/com/example/solfege/VerticalSeekBar.java +++ b/src/com/example/solfege/VerticalSeekBar.java @@ -1,119 +1,118 @@ package com.example.solfege; import android.content.Context...
true
true
public boolean onTouchEvent(MotionEvent event) { if (!isEnabled()) { return false; } switch (event.getAction()) { case MotionEvent.ACTION_DOWN: onChangeListener.onStartTrackingTouch(this); setPressed(true); setSelected(true); break; case MotionEvent.ACTION_MOVE: // Calling the super seems ...
public boolean onTouchEvent(MotionEvent event) { if (!isEnabled()) { return false; } switch (event.getAction()) { case MotionEvent.ACTION_DOWN: onChangeListener.onStartTrackingTouch(this); setPressed(true); setSelected(true); break; case MotionEvent.ACTION_MOVE: // Calling the super seems ...
diff --git a/org.eclipse.emf.refactor.metrics.runtime/src/org/eclipse/emf/refactor/metrics/runtime/core/MetricCalculator.java b/org.eclipse.emf.refactor.metrics.runtime/src/org/eclipse/emf/refactor/metrics/runtime/core/MetricCalculator.java index 5d0f2cd..546c7a8 100644 --- a/org.eclipse.emf.refactor.metrics.runtime/sr...
true
true
public void calculateMetrics() { LinkedList<Metric> metricsToCalculate = configuration.getSelectedMetrics(); results.clear(); for (Metric metric : metricsToCalculate) { if(metric.getContext().equals(context.get(0).eClass().getInstanceClassName())) results.add(calculateMetric(metric)); } }
public void calculateMetrics() { LinkedList<Metric> metricsToCalculate = configuration.getSelectedMetrics(); results.clear(); for (Metric metric : metricsToCalculate) { if(metric.getContext().equals(context.get(0).eClass().getInstanceClass().getSimpleName())) { System.out.println("Calculate metric '" + m...
diff --git a/webServices/Shipper/src/main/java/eu/choreos/services/ShipperWS.java b/webServices/Shipper/src/main/java/eu/choreos/services/ShipperWS.java index 644cd33..232d4a4 100644 --- a/webServices/Shipper/src/main/java/eu/choreos/services/ShipperWS.java +++ b/webServices/Shipper/src/main/java/eu/choreos/services/Sh...
true
true
public String setDelivery(PurchaseInfo purchaseinfo){ //this.start(); WSClient wscustomer; try { wscustomer = new WSClient(purchaseinfo.getCustomer().getEndpoint()); DeliveryInfo deliveryInfo = new DeliveryInfo(); deliveryInfo.setPurchase(purchaseinfo); deliveryInfo.setId(""+id++); deliveryInf...
public String setDelivery(PurchaseInfo purchaseinfo){ //this.start(); WSClient wscustomer; try { wscustomer = new WSClient(purchaseinfo.getCustomerInfo().getEndpoint()); DeliveryInfo deliveryInfo = new DeliveryInfo(); deliveryInfo.setPurchase(purchaseinfo); deliveryInfo.setId(""+id++); deliver...
diff --git a/src/eu/nerdz/api/impl/reverse/messages/ReverseMessenger.java b/src/eu/nerdz/api/impl/reverse/messages/ReverseMessenger.java index 4b40a0c..69bea64 100644 --- a/src/eu/nerdz/api/impl/reverse/messages/ReverseMessenger.java +++ b/src/eu/nerdz/api/impl/reverse/messages/ReverseMessenger.java @@ -1,449 +1,449 @@...
true
true
private ConversationHandler createHandler() { //The mConversationHandler instance is created. This is an inner class because it needs access to post/get methods, that are protected. return new ConversationHandler() { /** * */ private static final ...
private ConversationHandler createHandler() { //The mConversationHandler instance is created. This is an inner class because it needs access to post/get methods, that are protected. return new ConversationHandler() { /** * */ private static final ...
diff --git a/core/src/main/java/cucumber/runtime/transformers/BooleanTransformer.java b/core/src/main/java/cucumber/runtime/transformers/BooleanTransformer.java index de07c55b..01ccf821 100644 --- a/core/src/main/java/cucumber/runtime/transformers/BooleanTransformer.java +++ b/core/src/main/java/cucumber/runtime/transf...
true
true
public Boolean transform(Locale locale, String... arguments) throws TransformationException { if ("false".equalsIgnoreCase(arguments[0]) || "true".equalsIgnoreCase(arguments[0])) { return Boolean.parseBoolean(arguments[0]); } else { throw new TransformationException(String.fo...
public Boolean transform(Locale locale, String... arguments) throws TransformationException { if ("false".equalsIgnoreCase(arguments[0]) || "true".equalsIgnoreCase(arguments[0])) { return Boolean.parseBoolean(arguments[0]); } else { throw new TransformationException(String.fo...
diff --git a/TetrisClone/src/Game.java b/TetrisClone/src/Game.java index 21b1c10..ddb71c3 100644 --- a/TetrisClone/src/Game.java +++ b/TetrisClone/src/Game.java @@ -1,538 +1,540 @@ import org.newdawn.slick.*; import LinkedQueue.*; public class Game extends BasicGame { private final int HEIGHT = 600; priv...
true
true
public void keyPressed (int kc, char v) { if (paused) { if (kc == Input.KEY_ESCAPE) { paused = false; } } else if (!tetrisGrid.isLose() && current != null) { //move left if (kc == Input.KEY_LEFT) { if (shapeCanMoveLeft(tetrisGrid, current)) { --current.x; ghost = new GhostShape(cu...
public void keyPressed (int kc, char v) { if (paused) { if (kc == Input.KEY_ESCAPE) { paused = false; } } else if (!tetrisGrid.isLose() && current != null) { //move left if (kc == Input.KEY_LEFT) { if (shapeCanMoveLeft(tetrisGrid, current)) { --current.x; ghost = new GhostShape(cu...
diff --git a/plugins/org.eclipse.dltk.javascript.parser/src/org/eclipse/dltk/javascript/ast/ArrayInitializer.java b/plugins/org.eclipse.dltk.javascript.parser/src/org/eclipse/dltk/javascript/ast/ArrayInitializer.java index e624a655..e8b5908f 100644 --- a/plugins/org.eclipse.dltk.javascript.parser/src/org/eclipse/dltk/j...
true
true
public String toSourceString(String indentionString) { Assert.isTrue(sourceStart() >= 0); Assert.isTrue(sourceEnd() > 0); Assert.isTrue(LB > 0); Assert.isTrue(RB > 0); Assert.isTrue(items.size() == 0 || commas.size() == items.size() - 1); StringBuffer buffer = new StringBuffer(); buffer.append(Keyword...
public String toSourceString(String indentionString) { Assert.isTrue(sourceStart() >= 0); Assert.isTrue(sourceEnd() > 0); Assert.isTrue(LB >= 0); Assert.isTrue(RB > 0); Assert.isTrue(items.size() == 0 || commas.size() == items.size() - 1); StringBuffer buffer = new StringBuffer(); buffer.append(Keywor...
diff --git a/src/org/irmacard/personalisation/CredentialLoader.java b/src/org/irmacard/personalisation/CredentialLoader.java index b6133da..a22a515 100644 --- a/src/org/irmacard/personalisation/CredentialLoader.java +++ b/src/org/irmacard/personalisation/CredentialLoader.java @@ -1,130 +1,133 @@ package org.irmacard.p...
true
true
public static void main(String[] args) { try { try { CORE_LOCATION = CredentialLoader.class.getClassLoader() .getResource("resources/irma_configuration/").toURI(); } catch (URISyntaxException e) { e.printStackTrace(); throw new RuntimeException(e.toString()); } Card card = getCardFro...
public static void main(String[] args) { try { //try { //CORE_LOCATION = CredentialLoader.class.getClassLoader() // .getResource("resources/irma_configuration/").toURI(); //} catch (URISyntaxException e) { // e.printStackTrace(); // throw new RuntimeException(e.toString()); // } CORE_LOC...
diff --git a/src/uk/co/oliwali/MultiHome/Permission.java b/src/uk/co/oliwali/MultiHome/Permission.java index 4d54499..fe313ed 100644 --- a/src/uk/co/oliwali/MultiHome/Permission.java +++ b/src/uk/co/oliwali/MultiHome/Permission.java @@ -1,57 +1,57 @@ package uk.co.oliwali.MultiHome; import org.anjocaido.groupmanage...
true
true
public Permission(MultiHome instance) { plugin = instance; Plugin groupManager = plugin.getServer().getPluginManager().getPlugin("GroupManager"); Plugin permissions = plugin.getServer().getPluginManager().getPlugin("Permissions"); if (groupManager != null) { permissionPlugin = gro...
public Permission(MultiHome instance) { plugin = instance; Plugin groupManager = plugin.getServer().getPluginManager().getPlugin("GroupManager"); Plugin permissions = plugin.getServer().getPluginManager().getPlugin("Permissions"); if (groupManager != null) { permissionPlugin = gro...
diff --git a/src/com/isaacjg/darklight/issues/PathIssue.java b/src/com/isaacjg/darklight/issues/PathIssue.java index 88333a1..5279e58 100644 --- a/src/com/isaacjg/darklight/issues/PathIssue.java +++ b/src/com/isaacjg/darklight/issues/PathIssue.java @@ -1,69 +1,69 @@ package com.isaacjg.darklight.issues; import java...
true
true
public boolean isFixed() { try { Process p = Runtime.getRuntime().exec("cmd.exe /c echo %PATH%"); BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream())); String path = ""; String line = ""; while ((line = br.readLine()) != null) { path += line; } br.close(); for...
public boolean isFixed() { try { Process p = Runtime.getRuntime().exec("cmd.exe \\c echo %PATH%"); BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream())); String path = ""; String line = ""; while ((line = br.readLine()) != null) { path += line; } br.close(); fo...
diff --git a/src/org/jsc/client/LoginScreen.java b/src/org/jsc/client/LoginScreen.java index d0a67bc..21cf40a 100644 --- a/src/org/jsc/client/LoginScreen.java +++ b/src/org/jsc/client/LoginScreen.java @@ -1,175 +1,175 @@ package org.jsc.client; import java.util.Date; import com.google.gwt.core.client.GWT; impor...
true
true
private void authenticate() { // Initialize the service proxy. if (regService == null) { regService = GWT.create(SkaterRegistrationService.class); } // Set up the callback object. AsyncCallback<LoginSession> callback = new AsyncCallback<LoginSession>() { ...
private void authenticate() { // Initialize the service proxy. if (regService == null) { regService = GWT.create(SkaterRegistrationService.class); } // Set up the callback object. AsyncCallback<LoginSession> callback = new AsyncCallback<LoginSession>() { ...
diff --git a/src/java/net/sf/jabref/imports/HTMLConverter.java b/src/java/net/sf/jabref/imports/HTMLConverter.java index 8a4791c27..44f41f6ab 100644 --- a/src/java/net/sf/jabref/imports/HTMLConverter.java +++ b/src/java/net/sf/jabref/imports/HTMLConverter.java @@ -1,880 +1,880 @@ /* Copyright (C) 2003-2012 JabRef con...
false
true
public String format(String text) { if (text == null) return null; StringBuffer sb = new StringBuffer(); // Deal with the form <sup>k</sup>and <sub>k</sub> // If the result is in text or equation form can be controlled // From the "Advanced settings" tab if(Globa...
public String format(String text) { if (text == null) return null; StringBuffer sb = new StringBuffer(); // Deal with the form <sup>k</sup>and <sub>k</sub> // If the result is in text or equation form can be controlled // From the "Advanced settings" tab if(Globa...
diff --git a/src/main/java/net/minecraft/server/NetLoginHandler.java b/src/main/java/net/minecraft/server/NetLoginHandler.java index e057bd0..7fd09c2 100644 --- a/src/main/java/net/minecraft/server/NetLoginHandler.java +++ b/src/main/java/net/minecraft/server/NetLoginHandler.java @@ -1,211 +1,211 @@ package net.minecr...
true
true
public void a(Packet254ServerPing packet254serverping) { try { ServerConfigurationManager serverconfigurationmanager = this.e.af(); String s0 = null; if (packet254serverping.d()) { s0 = this.e.ac() + "\u00a7" + serverconfigurationmanager.k() + "\u00a7" + ...
public void a(Packet254ServerPing packet254serverping) { try { ServerConfigurationManager serverconfigurationmanager = this.e.af(); String s0 = null; if (packet254serverping.d()) { s0 = this.e.ac() + "\u00a7" + serverconfigurationmanager.k() + "\u00a7" + ...
diff --git a/illagameengine/src/org/illarion/engine/backend/slick/SlickScene.java b/illagameengine/src/org/illarion/engine/backend/slick/SlickScene.java index 225db896..444dbf9a 100644 --- a/illagameengine/src/org/illarion/engine/backend/slick/SlickScene.java +++ b/illagameengine/src/org/illarion/engine/backend/slick/S...
false
true
public void render(@Nonnull final Graphics graphics, final int offsetX, final int offsetY) { if (graphics instanceof SlickGraphics) { final SlickGraphics slickGraphics = (SlickGraphics) graphics; final org.newdawn.slick.Graphics slickGraphicsImpl = slickGraphics.getSlickGraphicsImpl(...
public void render(@Nonnull final Graphics graphics, final int offsetX, final int offsetY) { if (graphics instanceof SlickGraphics) { final SlickGraphics slickGraphics = (SlickGraphics) graphics; final org.newdawn.slick.Graphics slickGraphicsImpl = slickGraphics.getSlickGraphicsImpl(...
diff --git a/src/main/java/bjornno/javabatch/BatchFileScanManager.java b/src/main/java/bjornno/javabatch/BatchFileScanManager.java index 68422ac..c80df9b 100755 --- a/src/main/java/bjornno/javabatch/BatchFileScanManager.java +++ b/src/main/java/bjornno/javabatch/BatchFileScanManager.java @@ -1,31 +1,31 @@ package bjor...
true
true
public void run() { System.out.println("Start scanning for files in: " + dir); BatchFileReader bfrdr = new BatchFileReader(dir); while (true) { Reader rdr = bfrdr.getOneFile(); if (rdr != null) { reciever.recieve(rdr); } try { ...
public void run() { System.out.println("Start scanning for files in: " + dir); BatchFileReader bfrdr = new BatchFileReader(dir); while (true) { Reader rdr = bfrdr.getOneFile(); if (rdr != null) { reciever.recieve(rdr); } try { ...
diff --git a/sub/source/net/sourceforge/texlipse/spelling/SpellChecker.java b/sub/source/net/sourceforge/texlipse/spelling/SpellChecker.java index ed4bb2e..bedcb33 100644 --- a/sub/source/net/sourceforge/texlipse/spelling/SpellChecker.java +++ b/sub/source/net/sourceforge/texlipse/spelling/SpellChecker.java @@ -1,714 +...
true
true
private void checkLineSpelling(String line, int offset, int lineNumber, IFile file) { // check that there is text for the checker if (line == null || line.length() == 0) { return; } if (line.trim().length() == 0) { return; } ...
private void checkLineSpelling(String line, int offset, int lineNumber, IFile file) { // check that there is text for the checker if (line == null || line.length() == 0) { return; } if (line.trim().length() == 0) { return; } ...
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/AllTasksTests.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/AllTasksTests.java index b038e9391..d38aed1b7 100644 --- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/AllTasksTests.java +++ b/org.eclips...
true
true
public static Test suite() { TestSuite suite = new TestSuite("Test for org.eclipse.mylar.tasks.tests"); // $JUnit-BEGIN$ // suite.addTest(WebRepositoryConnectorTest.suite()); suite.addTestSuite(TaskDataManagerTest.class); suite.addTestSuite(CopyDetailsActionTest.class); suite.addTestSuite(TaskListTest.clas...
public static Test suite() { TestSuite suite = new TestSuite("Test for org.eclipse.mylar.tasks.tests"); // $JUnit-BEGIN$ suite.addTest(WebRepositoryConnectorTest.suite()); suite.addTestSuite(TaskDataManagerTest.class); suite.addTestSuite(CopyDetailsActionTest.class); suite.addTestSuite(TaskListTest.class)...
diff --git a/bundles/org.eclipse.equinox.p2.publisher/src_ant/org/eclipse/equinox/internal/p2/publisher/ant/FeaturesAndBundlesPublisherTask.java b/bundles/org.eclipse.equinox.p2.publisher/src_ant/org/eclipse/equinox/internal/p2/publisher/ant/FeaturesAndBundlesPublisherTask.java index 28ce30d4d..bd276c160 100644 --- a/b...
true
true
private File[] getLocations(List collection) { ArrayList results = new ArrayList(); for (Iterator iterator = collection.iterator(); iterator.hasNext();) { Object obj = iterator.next(); if (obj instanceof FileSet) { FileSet set = (FileSet) iterator.next(); DirectoryScanner scanner = set.getDirectoryS...
private File[] getLocations(List collection) { ArrayList results = new ArrayList(); for (Iterator iterator = collection.iterator(); iterator.hasNext();) { Object obj = iterator.next(); if (obj instanceof FileSet) { FileSet set = (FileSet) obj; DirectoryScanner scanner = set.getDirectoryScanner(getPr...
diff --git a/src/com/android/deskclock/stopwatch/StopwatchFragment.java b/src/com/android/deskclock/stopwatch/StopwatchFragment.java index 523ebfc00..b61448c3b 100644 --- a/src/com/android/deskclock/stopwatch/StopwatchFragment.java +++ b/src/com/android/deskclock/stopwatch/StopwatchFragment.java @@ -1,934 +1,935 @@ pa...
true
true
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment ViewGroup v = (ViewGroup)inflater.inflate(R.layout.stopwatch_fragment, container, false); mLeftButton = (ImageButton)v.fin...
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment ViewGroup v = (ViewGroup)inflater.inflate(R.layout.stopwatch_fragment, container, false); mLeftButton = (ImageButton)v.fin...
diff --git a/beam-visat-rcp/src/main/java/org/esa/beam/visat/toolviews/stat/HistogramPanel.java b/beam-visat-rcp/src/main/java/org/esa/beam/visat/toolviews/stat/HistogramPanel.java index 94a73b356..c5c28326b 100644 --- a/beam-visat-rcp/src/main/java/org/esa/beam/visat/toolviews/stat/HistogramPanel.java +++ b/beam-visat...
true
true
public void compute() { final boolean autoMinMaxEnabled = getAutoMinMaxEnabled(); final Double min; final Double max; if (autoMinMaxEnabled) { min = null; max = null; } else { min = (Double) xAxisRangeControl.getBindingContext().getBinding(...
public void compute() { final boolean autoMinMaxEnabled = getAutoMinMaxEnabled(); final Double min; final Double max; if (autoMinMaxEnabled) { min = null; max = null; } else { min = (Double) xAxisRangeControl.getBindingContext().getBinding(...
diff --git a/plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgChangesetViewer.java b/plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgChangesetViewer.java index 07df39aa0..93689bdbd 100644 --- a/plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgChangesetViewer.java +++ b/plugins/scm-hg-plug...
true
true
public ChangesetPagingResult getChangesets(int start, int max) { ChangesetPagingResult changesets = null; InputStream in = null; try { String repositoryPath = getRepositoryPath(repository); int total = getTotalChangesets(repositoryPath); int startRev = total - start; int end...
public ChangesetPagingResult getChangesets(int start, int max) { ChangesetPagingResult changesets = null; InputStream in = null; try { String repositoryPath = getRepositoryPath(repository); int total = getTotalChangesets(repositoryPath); int startRev = total - start; int end...
diff --git a/src/main/java/net/t7seven7t/swornguard/listeners/EntityListener.java b/src/main/java/net/t7seven7t/swornguard/listeners/EntityListener.java index d61148b..c1db85c 100644 --- a/src/main/java/net/t7seven7t/swornguard/listeners/EntityListener.java +++ b/src/main/java/net/t7seven7t/swornguard/listeners/EntityL...
true
true
public void onEntityDamageByEntityMonitor(final EntityDamageByEntityEvent event) { if (! event.isCancelled()) { Entity attacker = event.getDamager(); Player att = null; // Figure out the attacker if (attacker instanceof Player) { att = (Player) attacker; } else if (attacker instanceof Proj...
public void onEntityDamageByEntityMonitor(final EntityDamageByEntityEvent event) { if (! event.isCancelled()) { Entity attacker = event.getDamager(); Player att = null; // Figure out the attacker if (attacker instanceof Player) { att = (Player) attacker; } else if (attacker instanceof Proj...
diff --git a/remoting/src/main/java/hudson/remoting/Engine.java b/remoting/src/main/java/hudson/remoting/Engine.java index e37161b88..ddb21c1c1 100644 --- a/remoting/src/main/java/hudson/remoting/Engine.java +++ b/remoting/src/main/java/hudson/remoting/Engine.java @@ -1,246 +1,248 @@ /* * The MIT License * * Co...
true
true
public void run() { try { boolean first = true; while(true) { if(first) { first = false; } else { if(!noReconnect) return; // exit } listener.status("Locat...
public void run() { try { boolean first = true; while(true) { if(first) { first = false; } else { if(!noReconnect) return; // exit } listener.status("Locat...
diff --git a/org.neclipse.graphiti.objecteditor/src/org/neclipse/graphiti/objecteditor/services/ObjectDslLinkingService.java b/org.neclipse.graphiti.objecteditor/src/org/neclipse/graphiti/objecteditor/services/ObjectDslLinkingService.java index 199b8ba..1518c5b 100644 --- a/org.neclipse.graphiti.objecteditor/src/org/ne...
true
true
private PictogramElement createPictogramElement() { final IDiagramType[] diagramTypes = GraphitiUi.getExtensionManager().getDiagramTypes(); if (diagramTypes.length == 0) { // TODO: Throw some exception here } final IDiagramType diagramType = diagramTypes[0]; fina...
private PictogramElement createPictogramElement() { final IDiagramType[] diagramTypes = GraphitiUi.getExtensionManager().getDiagramTypes(); if (diagramTypes.length == 0) { // TODO: Throw some exception here } final IDiagramType diagramType = diagramTypes[0]; fina...
diff --git a/src/main/java/net/aufdemrand/denizen/commands/ArgumentHelper.java b/src/main/java/net/aufdemrand/denizen/commands/ArgumentHelper.java index 0be10bfce..d1d7a5d15 100644 --- a/src/main/java/net/aufdemrand/denizen/commands/ArgumentHelper.java +++ b/src/main/java/net/aufdemrand/denizen/commands/ArgumentHelper....
false
true
public ItemStack getItemModifier(String thisArg) { Matcher m = materialArgument.matcher(thisArg); Matcher m2 = materialArgument2.matcher(thisArg); Matcher m3 = materialArgument3.matcher(thisArg); Matcher m4 = materialArgument4.matcher(thisArg); ItemStack theItem = null; try { if (m.matches()) the...
public ItemStack getItemModifier(String thisArg) { Matcher m = materialArgument.matcher(thisArg); Matcher m2 = materialArgument2.matcher(thisArg); Matcher m3 = materialArgument3.matcher(thisArg); Matcher m4 = materialArgument4.matcher(thisArg); ItemStack theItem = null; try { if (m.matches()) the...
diff --git a/src/com/funkymonkeysoftware/adm/checker/CheckerModel.java b/src/com/funkymonkeysoftware/adm/checker/CheckerModel.java index 7511575..e7436f8 100644 --- a/src/com/funkymonkeysoftware/adm/checker/CheckerModel.java +++ b/src/com/funkymonkeysoftware/adm/checker/CheckerModel.java @@ -1,240 +1,240 @@ package co...
true
true
public void removeSelected(){ LinkedList<String> removeURLS = new LinkedList<String>(); int i=0; for( CheckerLink link : getLinks()) { if(link.isSelected()){ removeURLS.add(link.getURL().toString()); checkerLinks.remove(i); } i++; } if(removeURLS.size() > 0){ String w...
public void removeSelected(){ LinkedList<String> removeURLS = new LinkedList<String>(); int i=0; for( CheckerLink link : getLinks()) { if(link.isSelected()){ removeURLS.add(link.getURL().toString()); checkerLinks.remove(link); } i++; } if(removeURLS.size() > 0){ Strin...
diff --git a/com/buglabs/bug/module/motion/MotionAccelerometerSampleStream.java b/com/buglabs/bug/module/motion/MotionAccelerometerSampleStream.java index c550a93..2b85087 100644 --- a/com/buglabs/bug/module/motion/MotionAccelerometerSampleStream.java +++ b/com/buglabs/bug/module/motion/MotionAccelerometerSampleStream....
true
true
public AccelerometerSample readSample() throws IOException { byte[] data = new byte[6]; short[] sample = null; System.out.println("readSample enter"); int result = read(data); if(result == data.length) { sample = new short[3]; for(int i = 0; i < sample.length; ++i) { short byte0 = (short) (0...
public AccelerometerSample readSample() throws IOException { byte[] data = new byte[6]; short[] sample = null; int result = read(data); if(result == data.length) { sample = new short[3]; for(int i = 0; i < sample.length; ++i) { short byte0 = (short) (0x00FF & (short)data[i*2 + 1]); short b...
diff --git a/model/src/main/java/com/media2359/euphoria/dao/employee/EmployeeDaoImpl.java b/model/src/main/java/com/media2359/euphoria/dao/employee/EmployeeDaoImpl.java index 72aef67..b04bcf5 100644 --- a/model/src/main/java/com/media2359/euphoria/dao/employee/EmployeeDaoImpl.java +++ b/model/src/main/java/com/media235...
true
true
public List<Employee> getAllEmployees() { List<Employee> employeeList = new ArrayList<Employee>(); Employee emp1 = new Employee(); emp1.setName("Alfred"); emp1.setCompanyEmail("alfred@companyemail.com"); emp1.setEmploymentType("Permenant"); emp1.setDesignation("System Architect"); emp1.setPla...
public List<Employee> getAllEmployees() { List<Employee> employeeList = new ArrayList<Employee>(); Employee emp1 = new Employee(); emp1.setName("Alfred"); emp1.setCompanyEmail("alfred@companyemail.com"); emp1.setEmploymentType("Permenant"); emp1.setDesignation("System Architect"); emp1.setPla...
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/externalization/DelegatingTaskExternalizer.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/externalization/DelegatingTaskExternalizer.java index 707ab0687..952f06af3 100644 --- a/org.eclipse.mylyn.tasks.cor...
true
true
private void readTaskInfo(AbstractTask task, Element element, ITask parent, AbstractTaskCategory legacyCategory) { if (element.hasAttribute(KEY_CATEGORY)) { // Migration 2.0 -> 3.0 task list. Category no longer maintained on the task element but // task handles held within category nodes similar to query chil...
private void readTaskInfo(AbstractTask task, Element element, ITask parent, AbstractTaskCategory legacyCategory) { if (element.hasAttribute(KEY_CATEGORY)) { // Migration 2.0 -> 3.0 task list. Category no longer maintained on the task element but // task handles held within category nodes similar to query chil...
diff --git a/src/ProgramCounter.java b/src/ProgramCounter.java index b7041d8..f930a0f 100644 --- a/src/ProgramCounter.java +++ b/src/ProgramCounter.java @@ -1,14 +1,14 @@ public class ProgramCounter implements Clockable{ Pin pcIn = new Pin(); Pin pcOut = new Pin(); Pin control = new Pin(); public ProgramC...
true
true
public void clockEdge() { if(new BinaryNum("0").equals(control)){ pcOut.setValue(pcIn.getValue()); } }
public void clockEdge() { if(new BinaryNum("0").equals(control.getValue())){ pcOut.setValue(pcIn.getValue()); } }
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/AbstractDecoratedTextEditorPreferenceConstants.java b/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/AbstractDecoratedTextEditorPreferenceConstants.java index 44b595949..f23a8717f 100644 --- a/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/Ab...
false
true
public static void initializeDefaultValues(IPreferenceStore store) { store.setDefault(AbstractDecoratedTextEditorPreferenceConstants.USE_ANNOTATIONS_PREFERENCE_PAGE, false); store.setDefault(AbstractDecoratedTextEditorPreferenceConstants.USE_QUICK_DIFF_PREFERENCE_PAGE, false); store.setDefault(AbstractDecorated...
public static void initializeDefaultValues(IPreferenceStore store) { store.setDefault(AbstractDecoratedTextEditorPreferenceConstants.USE_ANNOTATIONS_PREFERENCE_PAGE, false); store.setDefault(AbstractDecoratedTextEditorPreferenceConstants.USE_QUICK_DIFF_PREFERENCE_PAGE, false); store.setDefault(AbstractDecorated...
diff --git a/src/main/java/org/openmrs/contrib/databaseexporter/transform/RwandaLocationTransform.java b/src/main/java/org/openmrs/contrib/databaseexporter/transform/RwandaLocationTransform.java index 63a05ed..631e3a3 100755 --- a/src/main/java/org/openmrs/contrib/databaseexporter/transform/RwandaLocationTransform.java...
true
true
public List<TableRow> postProcess(String tableName, ExportContext context) { List<TableRow> ret = new ArrayList<TableRow>(); if (tableName.equals("global_property")) { { TableRow tr = rowsToReplace.get("reports.currentlocation"); tr.setRawValue("property_value", (getUsedNames().isEmpty() ? "" : getUsedN...
public List<TableRow> postProcess(String tableName, ExportContext context) { List<TableRow> ret = new ArrayList<TableRow>(); if (tableName.equals("global_property")) { { TableRow tr = rowsToReplace.get("reports.currentlocation"); tr.setRawValue("property_value", (getUsedNames().isEmpty() ? "" : getUsedN...
diff --git a/src/ru/spbau/bioinf/tagfinder/stat/PlaceStatistics.java b/src/ru/spbau/bioinf/tagfinder/stat/PlaceStatistics.java index 037731d..2ccf88c 100644 --- a/src/ru/spbau/bioinf/tagfinder/stat/PlaceStatistics.java +++ b/src/ru/spbau/bioinf/tagfinder/stat/PlaceStatistics.java @@ -1,123 +1,124 @@ package ru.spbau.b...
true
true
public static void main(String[] args) throws Exception { Configuration conf = new Configuration(args); List<Protein> proteins = conf.getProteins(); Map<Integer, Integer> msAlignResults = conf.getMSAlignResults(); Map<Integer, Scan> scans = conf.getScans(); List<Integer> keys...
public static void main(String[] args) throws Exception { Configuration conf = new Configuration(args); List<Protein> proteins = conf.getProteins(); Map<Integer, Integer> msAlignResults = conf.getMSAlignResults(); Map<Integer, Scan> scans = conf.getScans(); List<Integer> keys...
diff --git a/src/me/rainoboy97/scrimmage/CommandListener.java b/src/me/rainoboy97/scrimmage/CommandListener.java index d63e59e..d9b2951 100644 --- a/src/me/rainoboy97/scrimmage/CommandListener.java +++ b/src/me/rainoboy97/scrimmage/CommandListener.java @@ -1,304 +1,304 @@ package me.rainoboy97.scrimmage; import jav...
true
true
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { String command = cmd.getName(); Player player = (Player) sender; if (command.equalsIgnoreCase("start") && player.isOp()) { try { if (args.length == 1) { String arg = ""; for (String e : args) { ...
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { String command = cmd.getName(); Player player = (Player) sender; if (command.equalsIgnoreCase("start") && player.isOp()) { try { if (args.length == 1) { String arg = ""; for (String e : args) { ...
diff --git a/src/main/java/antidot/r2rml/main/R2RML.java b/src/main/java/antidot/r2rml/main/R2RML.java index 1d50682..590a7db 100644 --- a/src/main/java/antidot/r2rml/main/R2RML.java +++ b/src/main/java/antidot/r2rml/main/R2RML.java @@ -1,276 +1,283 @@ /* * Copyright 2011 Antidot opensource@antidot.net * https://...
false
true
public static void main(String[] args) { // Get all options Options options = new Options(); options.addOption(userNameOpt); options.addOption(passwordOpt); options.addOption(URLOpt); options.addOption(driverOpt); options.addOption(dbOpt); options.addOption(forceOpt); options.addOption(nativeOpt); ...
public static void main(String[] args) { // Get all options Options options = new Options(); options.addOption(userNameOpt); options.addOption(passwordOpt); options.addOption(URLOpt); options.addOption(driverOpt); options.addOption(dbOpt); options.addOption(forceOpt); options.addOption(nativeOpt); ...
diff --git a/src/org/webservice/countryInfo/CountryInfo.java b/src/org/webservice/countryInfo/CountryInfo.java index 4360133..5052286 100644 --- a/src/org/webservice/countryInfo/CountryInfo.java +++ b/src/org/webservice/countryInfo/CountryInfo.java @@ -1,280 +1,280 @@ /** * CountryInfo.java * * This file was aut...
true
true
public CountryInfoResult getCountryInfo(String countryCode){ CountryInfoKV[] cmap=getCountriesMap(); this.countryCode=countryCode; res = new CountryInfoResult(); res.ICAO="Please wait for the version 1.0.0.0.1"; ServiceThread[] threads=new ServiceThread[5]; threads[0]=new ServiceThread(res,cmap,countryC...
public CountryInfoResult getCountryInfo(String countryCode){ CountryInfoKV[] cmap=getCountriesMap(); this.countryCode=countryCode; res = new CountryInfoResult(); res.ICAO="Please wait for the version 1.0.0.0.1"; ServiceThread[] threads=new ServiceThread[5]; threads[0]=new ServiceThread(res,cmap,countryC...
diff --git a/src/main/java/jenkins/plugins/testthemall/TestopiaBuilder.java b/src/main/java/jenkins/plugins/testthemall/TestopiaBuilder.java index 29eb2e9..a81c737 100644 --- a/src/main/java/jenkins/plugins/testthemall/TestopiaBuilder.java +++ b/src/main/java/jenkins/plugins/testthemall/TestopiaBuilder.java @@ -1,351 +...
true
true
protected void executeIterativeBuildSteps(TestCase[] testCases, AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException { if (beforeIteratingAllTestCasesBuildSteps != null) { for (BuildStep b : beforeIteratingAllTestCasesBuildSteps) { final boole...
protected void executeIterativeBuildSteps(TestCase[] testCases, AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException { if (beforeIteratingAllTestCasesBuildSteps != null) { for (BuildStep b : beforeIteratingAllTestCasesBuildSteps) { final boole...
diff --git a/gwt-client/src/main/java/org/mule/galaxy/web/client/ui/ExternalHyperlink.java b/gwt-client/src/main/java/org/mule/galaxy/web/client/ui/ExternalHyperlink.java index c5486e68..593b4b3c 100644 --- a/gwt-client/src/main/java/org/mule/galaxy/web/client/ui/ExternalHyperlink.java +++ b/gwt-client/src/main/java/or...
false
true
private Element getAnchorElement(final String text, final String link, final String target) { setElement(DOM.createDiv()); final Element anchorElem = DOM.createAnchor(); DOM.appendChild(getElement(), this.anchorElem); ...
private Element getAnchorElement(final String text, final String link, final String target) { setElement(DOM.createDiv()); final Element anchorElement = DOM.createAnchor(); DOM.appendChild(getElement(), anchorElement);...
diff --git a/src/main/java/jp/ousttrue/comiketroid/ComiketList.java b/src/main/java/jp/ousttrue/comiketroid/ComiketList.java index 2acc06d..53be66e 100644 --- a/src/main/java/jp/ousttrue/comiketroid/ComiketList.java +++ b/src/main/java/jp/ousttrue/comiketroid/ComiketList.java @@ -1,127 +1,127 @@ package jp.ousttrue.co...
true
true
public void handleMessage(Message msg) { Log.d(TAG, "setAdapterHandler: "); Intent intent = listActivity.getIntent(); Uri uri=(Uri)intent.getData(); Log.i(TAG, uri.toString()); String selectParams; String[] selectArgs; //if (intent.getData() == null) { selectParams=null; sele...
public void handleMessage(Message msg) { Log.d(TAG, "setAdapterHandler: "); Intent intent = listActivity.getIntent(); Uri uri=intent.getData(); Log.i(TAG, uri.toString()); String selectParams; String[] selectArgs; //if (intent.getData() == null) { selectParams=null; selectArg...