Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/org/gridlab/gridsphere/provider/portlet/jsr/PortletServlet.java b/src/org/gridlab/gridsphere/provider/portlet/jsr/PortletServlet.java index c0682cd4a..84736b3b5 100644 --- a/src/org/gridlab/gridsphere/provider/portlet/jsr/PortletServlet.java +++ b/src/org/gridlab/gridsphere/provider/portlet/jsr/Portlet...
true
true
public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { registry = PortletRegistry.getInstance(); // If no portlet ID exists, this may be a command to init or shutdown a portlet instance // currently either all portlets are initai...
public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { registry = PortletRegistry.getInstance(); // If no portlet ID exists, this may be a command to init or shutdown a portlet instance // currently either all portlets are initai...
diff --git a/platform-infrastructure/service-lifecycle/platform-webapp/src/main/java/org/societies/webapp/controller/ServiceControlController.java b/platform-infrastructure/service-lifecycle/platform-webapp/src/main/java/org/societies/webapp/controller/ServiceControlController.java index 293e19703..f2bdc78ee 100644 ---...
true
true
public ModelAndView serviceControlPost(@Valid ServiceControlForm scForm, BindingResult result, Map model) { String returnPage = "servicecontrolresult"; if (result.hasErrors()) { model.put("result", "service control form error"); return new ModelAndView("servicecontrol", model); } if (getSCService() ...
public ModelAndView serviceControlPost(@Valid ServiceControlForm scForm, BindingResult result, Map model) { String returnPage = "servicecontrolresult"; if (result.hasErrors()) { model.put("result", "service control form error"); return new ModelAndView("servicecontrol", model); } if (getSCService() ...
diff --git a/whitespace_short_circuit/src/main/java/bobcat/applications/WhitespaceShortCircuit.java b/whitespace_short_circuit/src/main/java/bobcat/applications/WhitespaceShortCircuit.java index 37c229c..d4e1d84 100644 --- a/whitespace_short_circuit/src/main/java/bobcat/applications/WhitespaceShortCircuit.java +++ b/wh...
false
true
public static void main(String[] args) { NetworkGenerator networkGenerator; Network network; WhitespaceShortCircuitOptions options = new WhitespaceShortCircuitOptions(); CmdLineParser parser = new CmdLineParser(options); Draw drawing = null; ChannelSelection cs = null; double rcsThpt; double[][] rcsBis...
public static void main(String[] args) { NetworkGenerator networkGenerator; Network network; WhitespaceShortCircuitOptions options = new WhitespaceShortCircuitOptions(); CmdLineParser parser = new CmdLineParser(options); Draw drawing = null; ChannelSelection cs = null; double rcsThpt; double[][] rcsBis...
diff --git a/src/main/java/net/LoadingChunks/OakLog/Util/SQLWrapper.java b/src/main/java/net/LoadingChunks/OakLog/Util/SQLWrapper.java index 70d9dc3..1c8799e 100644 --- a/src/main/java/net/LoadingChunks/OakLog/Util/SQLWrapper.java +++ b/src/main/java/net/LoadingChunks/OakLog/Util/SQLWrapper.java @@ -1,111 +1,113 @@ pa...
false
true
static public void commitLog(LogEntry entry) { if(con == null) { plugin.getLogger().severe("Could not connect to logger database!"); return; } try { PreparedStatement stat = con.prepareStatement("INSERT INTO logs (`server`,`type`,`level`,`message`,`plugin`,`timestamp`) VALUES (?,?,?,?,?,?)", Statement....
static public void commitLog(LogEntry entry) { if(con == null) { plugin.getLogger().severe("Could not connect to logger database!"); return; } try { PreparedStatement stat = con.prepareStatement("INSERT INTO logs (`server`,`type`,`level`,`message`,`plugin`,`timestamp`) VALUES (?,?,?,?,?,?)", Statement....
diff --git a/src/net/sf/jsignpdf/SignerLogic.java b/src/net/sf/jsignpdf/SignerLogic.java index cbc8eaa..41fb73f 100644 --- a/src/net/sf/jsignpdf/SignerLogic.java +++ b/src/net/sf/jsignpdf/SignerLogic.java @@ -1,306 +1,315 @@ package net.sf.jsignpdf; import java.io.File; import java.io.FileOutputStream; import jav...
false
true
public void run() { if (options == null) { throw new NullPointerException("Options has to be filled."); } final String outFile = options.getOutFileX(); if (!validateInOutFiles(options.getInFile(), outFile)) { options.log("console.skippingSigning"); return; } Exception tmpResult = null; try { ...
public void run() { if (options == null) { throw new NullPointerException("Options has to be filled."); } final String outFile = options.getOutFileX(); if (!validateInOutFiles(options.getInFile(), outFile)) { options.log("console.skippingSigning"); return; } Exception tmpResult = null; FileOutp...
diff --git a/src/com/android/email/mail/transport/MailTransport.java b/src/com/android/email/mail/transport/MailTransport.java index 5c7f2646c..785d647e6 100644 --- a/src/com/android/email/mail/transport/MailTransport.java +++ b/src/com/android/email/mail/transport/MailTransport.java @@ -1,326 +1,331 @@ /* * Copyrig...
true
true
public void open() throws MessagingException, CertificateValidationException { if (MailActivityEmail.DEBUG) { Log.d(Logging.LOG_TAG, "*** " + mDebugLabel + " open " + getHost() + ":" + String.valueOf(getPort())); } try { SocketAddress socketAddres...
public void open() throws MessagingException, CertificateValidationException { if (MailActivityEmail.DEBUG) { Log.d(Logging.LOG_TAG, "*** " + mDebugLabel + " open " + getHost() + ":" + String.valueOf(getPort())); } try { SocketAddress socketAddres...
diff --git a/orbisgis-core/src/main/java/org/orbisgis/core/ui/plugins/views/sqlConsole/ui/FunctionListModel.java b/orbisgis-core/src/main/java/org/orbisgis/core/ui/plugins/views/sqlConsole/ui/FunctionListModel.java index 9e1b72ed4..bd7e7e329 100644 --- a/orbisgis-core/src/main/java/org/orbisgis/core/ui/plugins/views/sq...
true
true
public void filter(String text) { if (text.length() == 0) { getSQLFunctions(); } else { ArrayList<FunctionElement> functionsFiltered = new ArrayList<FunctionElement>(); for (FunctionElement functionElement : functionsList) { if (functionElement.g...
public void filter(String text) { if (text.length() == 0) { getSQLFunctions(); } else { ArrayList<FunctionElement> functionsFiltered = new ArrayList<FunctionElement>(); for (FunctionElement functionElement : functionsList) { if (functionElement.g...
diff --git a/src/gov/nih/nci/ncicb/cadsr/loader/persister/DEPersister.java b/src/gov/nih/nci/ncicb/cadsr/loader/persister/DEPersister.java index 9940af99..2a31d454 100755 --- a/src/gov/nih/nci/ncicb/cadsr/loader/persister/DEPersister.java +++ b/src/gov/nih/nci/ncicb/cadsr/loader/persister/DEPersister.java @@ -1,250 +1,...
true
true
public void persist() { DataElement de = DomainObjectFactory.newDataElement(); List<DataElement> des = elements.getElements(de); logger.debug("des..."); int count = 0; sendProgressEvent(count++, des.size(), "DEs"); if (des != null) { for (ListIterator<DataElement> it = des.listIterat...
public void persist() { DataElement de = DomainObjectFactory.newDataElement(); List<DataElement> des = elements.getElements(de); logger.debug("des..."); int count = 0; sendProgressEvent(count++, des.size(), "DEs"); if (des != null) { for (ListIterator<DataElement> it = des.listIterat...
diff --git a/main/java/org/spoutcraft/spoutcraftapi/gui/GenericScreen.java b/main/java/org/spoutcraft/spoutcraftapi/gui/GenericScreen.java index 1fe32213..e0225f04 100755 --- a/main/java/org/spoutcraft/spoutcraftapi/gui/GenericScreen.java +++ b/main/java/org/spoutcraft/spoutcraftapi/gui/GenericScreen.java @@ -1,230 +1,...
true
true
public Widget[] getAttachedWidgets(boolean recursive) { Widget[] list = new Widget[widgets.size()]; Set<Widget> allwidgets = new HashSet<Widget>(); allwidgets.addAll(widgets.keySet()); if(recursive) { for(Widget w:widgets.keySet()) { if(w instanceof Screen) { allwidgets.addAll(((Screen)w).getAttach...
public Widget[] getAttachedWidgets(boolean recursive) { Widget[] list = new Widget[widgets.size()]; Set<Widget> allwidgets = new HashSet<Widget>(); allwidgets.addAll(widgets.keySet()); if(recursive) { for(Widget w:widgets.keySet()) { if(w instanceof Screen) { allwidgets.addAll(((Screen)w).getAttach...
diff --git a/src/org/biojava/bio/symbol/AbstractReversibleTranslationTable.java b/src/org/biojava/bio/symbol/AbstractReversibleTranslationTable.java index 677d2a344..c2eea6d08 100644 --- a/src/org/biojava/bio/symbol/AbstractReversibleTranslationTable.java +++ b/src/org/biojava/bio/symbol/AbstractReversibleTranslationTa...
true
true
public Symbol untranslate(final Symbol sym) throws IllegalSymbolException { // make an attempt to translate immediately Symbol s = doUntranslate(sym); // translation failed, validate and try an ambiguity lookup if(s == null) { if(sym instanceof AtomicSymbol) { //chan...
public Symbol untranslate(final Symbol sym) throws IllegalSymbolException { // make an attempt to translate immediately Symbol s = doUntranslate(sym); // translation failed, validate and try an ambiguity lookup if(s == null) { if(sym instanceof AtomicSymbol) { //chan...
diff --git a/realtime/src/main/java/com/metamx/druid/realtime/firehose/WikipediaIrcDecoder.java b/realtime/src/main/java/com/metamx/druid/realtime/firehose/WikipediaIrcDecoder.java index b1ecf91554..fc45f5f4e9 100644 --- a/realtime/src/main/java/com/metamx/druid/realtime/firehose/WikipediaIrcDecoder.java +++ b/realtime...
true
true
public InputRow decodeMessage(final DateTime timestamp, String channel, String msg) { final Map<String, String> dimensions = Maps.newHashMap(); final Map<String, Float> metrics = Maps.newHashMap(); Matcher m = pattern.matcher(msg); if(!m.matches()) { throw new IllegalArgumentException("Invali...
public InputRow decodeMessage(final DateTime timestamp, String channel, String msg) { final Map<String, String> dimensions = Maps.newHashMap(); final Map<String, Float> metrics = Maps.newHashMap(); Matcher m = pattern.matcher(msg); if(!m.matches()) { throw new IllegalArgumentException("Invali...
diff --git a/src/no/runsafe/creativetoolbox/events/InteractEvents.java b/src/no/runsafe/creativetoolbox/events/InteractEvents.java index fc37772..d8d5963 100644 --- a/src/no/runsafe/creativetoolbox/events/InteractEvents.java +++ b/src/no/runsafe/creativetoolbox/events/InteractEvents.java @@ -1,137 +1,140 @@ package no...
true
true
private void listRegion(String regionName, RunsafePlayer player, Boolean simple) { if (player.hasPermission("runsafe.creative.approval.read")) { PlotApproval approval = plotRepository.get(regionName); if (approval == null || approval.getApproved() == null) player.sendColouredMessage("Region: " + regionN...
private void listRegion(String regionName, RunsafePlayer player, Boolean simple) { if (player.hasPermission("runsafe.creative.approval.read")) { PlotApproval approval = plotRepository.get(regionName); if (approval == null || approval.getApproved() == null) player.sendColouredMessage("Region: " + regionN...
diff --git a/src/com/oppian/oikos/util/DateFormatter.java b/src/com/oppian/oikos/util/DateFormatter.java index 95b73ba..134c0b1 100644 --- a/src/com/oppian/oikos/util/DateFormatter.java +++ b/src/com/oppian/oikos/util/DateFormatter.java @@ -1,26 +1,26 @@ package com.oppian.oikos.util; import java.util.Calendar; im...
true
true
public static String formatToYesterdayOrToday(Date dateTime) { Calendar calendar = Calendar.getInstance(); calendar.setTime(dateTime); Calendar today = Calendar.getInstance(); Calendar yesterday = Calendar.getInstance(); yesterday.add(Calendar.DATE, -1); if (calendar...
public static String formatToYesterdayOrToday(Date dateTime) { Calendar calendar = Calendar.getInstance(); calendar.setTime(dateTime); Calendar today = Calendar.getInstance(); Calendar yesterday = Calendar.getInstance(); yesterday.add(Calendar.DATE, -1); if (calendar...
diff --git a/src/me/Kruithne/MinecartsMod/MMPoweredMinecart.java b/src/me/Kruithne/MinecartsMod/MMPoweredMinecart.java index fd284b3..b37feb2 100644 --- a/src/me/Kruithne/MinecartsMod/MMPoweredMinecart.java +++ b/src/me/Kruithne/MinecartsMod/MMPoweredMinecart.java @@ -1,72 +1,72 @@ package me.Kruithne.MinecartsMod; ...
true
true
public void gainSpeed(Double speed) { Vector direction = this.cart.getLocation().getDirection(); if (this.isOnSlopedRail() || this.isOnStraightRail()) { //this.server.broadcastMessage("Minecart (" + this.cart.getEntityId() + ") was on slope/straight, setting speed."); this.cart.setVelocity(new Vector(d...
public void gainSpeed(Double speed) { Vector direction = this.cart.getLocation().getDirection(); if (this.isOnSlopedRail() || this.isOnStraightRail()) { //this.server.broadcastMessage("Minecart (" + this.cart.getEntityId() + ") was on slope/straight, setting speed."); this.cart.setVelocity(new Vector(d...
diff --git a/site/src/main/java/org/soluvas/web/site/MultitenantPage.java b/site/src/main/java/org/soluvas/web/site/MultitenantPage.java index 65609fdc..310b2ea7 100644 --- a/site/src/main/java/org/soluvas/web/site/MultitenantPage.java +++ b/site/src/main/java/org/soluvas/web/site/MultitenantPage.java @@ -1,130 +1,132 ...
false
true
protected void getTenantServices() { TenantRef tenant = WebTenantUtils.getTenant(); final String tenantId = tenant.getTenantId(); final String tenantEnv = tenant.getTenantEnv(); Class<?> clazz = getClass(); List<Field> fields = new ArrayList<Field>(); while (clazz != null) { fields.addAll(ImmutableLi...
protected void getTenantServices() { TenantRef tenant = WebTenantUtils.getTenant(); final String tenantId = tenant.getTenantId(); final String tenantEnv = tenant.getTenantEnv(); Class<?> clazz = getClass(); List<Field> fields = new ArrayList<Field>(); while (clazz != null) { fields.addAll(ImmutableLi...
diff --git a/src/com/quicinc/fmradio/FMTransmitterConfigReceiver.java b/src/com/quicinc/fmradio/FMTransmitterConfigReceiver.java index f08fd57..eb63bb1 100644 --- a/src/com/quicinc/fmradio/FMTransmitterConfigReceiver.java +++ b/src/com/quicinc/fmradio/FMTransmitterConfigReceiver.java @@ -1,81 +1,81 @@ /* * Copyright...
true
true
public void onReceive(Context context, Intent intent) { String action = intent.getAction(); Log.d(TAG, "Received intent: " + action); if((action != null) && action.equals("android.intent.action.BOOT_COMPLETED")) { Log.d(TAG, "boot complete intent received"); boolean i...
public void onReceive(Context context, Intent intent) { String action = intent.getAction(); Log.d(TAG, "Received intent: " + action); if((action != null) && action.equals("android.intent.action.BOOT_COMPLETED")) { Log.d(TAG, "boot complete intent received"); boolean i...
diff --git a/src/com/palmergames/bukkit/TownyChat/Command/JoinCommand.java b/src/com/palmergames/bukkit/TownyChat/Command/JoinCommand.java index 6505545..ea3a17f 100644 --- a/src/com/palmergames/bukkit/TownyChat/Command/JoinCommand.java +++ b/src/com/palmergames/bukkit/TownyChat/Command/JoinCommand.java @@ -1,84 +1,84 ...
true
true
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { // If not our command if ((!label.equalsIgnoreCase("join") || args.length != 1) && (!label.equalsIgnoreCase("ch") || args.length != 2 || !args[0].equalsIgnoreCase("join"))) { TownyMessaging.sendErrorMsg(sender, "[Town...
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { // If not our command if ((!label.equalsIgnoreCase("join") || args.length != 1) && (!label.equalsIgnoreCase("ch") || args.length != 2 || !args[0].equalsIgnoreCase("join"))) { TownyMessaging.sendErrorMsg(sender, "[Town...
diff --git a/src/org/openstreetmap/josm/gui/layer/markerlayer/ButtonMarker.java b/src/org/openstreetmap/josm/gui/layer/markerlayer/ButtonMarker.java index 090716aa..bc3f6486 100644 --- a/src/org/openstreetmap/josm/gui/layer/markerlayer/ButtonMarker.java +++ b/src/org/openstreetmap/josm/gui/layer/markerlayer/ButtonMarke...
true
true
@Override public void paint(Graphics g, MapView mv, boolean mousePressed, String show) { if (! show.equalsIgnoreCase("show")) { super.paint(g, mv, mousePressed, show); return; } Point screen = mv.getPoint(getEastNorth()); buttonRectangle.setLocation(screen.x+4...
@Override public void paint(Graphics g, MapView mv, boolean mousePressed, String show) { if (! show.equalsIgnoreCase("show")) { super.paint(g, mv, mousePressed, show); return; } Point screen = mv.getPoint(getEastNorth()); buttonRectangle.setLocation(screen.x+4...
diff --git a/aa-server/src/main/java/edu/umich/eecs/tac/is/TACAAResultManager.java b/aa-server/src/main/java/edu/umich/eecs/tac/is/TACAAResultManager.java index ff67595..eb78cf7 100644 --- a/aa-server/src/main/java/edu/umich/eecs/tac/is/TACAAResultManager.java +++ b/aa-server/src/main/java/edu/umich/eecs/tac/is/TACAARe...
true
true
protected void generateResult() throws IOException { TACAASimulationInfo simInfo; LogReader reader = getLogReader(); int simulationID = reader.getSimulationID(); String serverName = reader.getServerName(); reader.setContext(new AAInfo().createContext()); try { ...
protected void generateResult() throws IOException { TACAASimulationInfo simInfo; LogReader reader = getLogReader(); int simulationID = reader.getSimulationID(); String serverName = reader.getServerName(); reader.setContext(new AAInfo().createContext()); try { ...
diff --git a/servo-core/src/main/java/com/netflix/servo/publish/FileMetricObserver.java b/servo-core/src/main/java/com/netflix/servo/publish/FileMetricObserver.java index 36cbff5..ab631e8 100644 --- a/servo-core/src/main/java/com/netflix/servo/publish/FileMetricObserver.java +++ b/servo-core/src/main/java/com/netflix/s...
true
true
public void updateImpl(List<Metric> metrics) { Preconditions.checkNotNull(metrics); File file = new File(dir, fileFormat.format(new Date())); Writer out = null; try { LOGGER.debug("writing %d metrics to file %s", metrics.size(), file); OutputStream fileOut = n...
public void updateImpl(List<Metric> metrics) { Preconditions.checkNotNull(metrics); File file = new File(dir, fileFormat.format(new Date())); Writer out = null; try { LOGGER.debug("writing {} metrics to file {}", metrics.size(), file); OutputStream fileOut = n...
diff --git a/src/jbsdiff/Patch.java b/src/jbsdiff/Patch.java index dd5a96c..552dd80 100644 --- a/src/jbsdiff/Patch.java +++ b/src/jbsdiff/Patch.java @@ -1,136 +1,136 @@ /* Copyright (c) 2013, Colorado State University All rights reserved. Redistribution and use in source and binary forms, with or without modifica...
true
true
public static void patch(byte[] old, byte[] patch, OutputStream out) throws CompressorException, InvalidHeaderException, IOException { /* Read bsdiff header */ InputStream headerIn = new ByteArrayInputStream(patch); Header header = new Header(headerIn); headerIn.close(); ...
public static void patch(byte[] old, byte[] patch, OutputStream out) throws CompressorException, InvalidHeaderException, IOException { /* Read bsdiff header */ InputStream headerIn = new ByteArrayInputStream(patch); Header header = new Header(headerIn); headerIn.close(); ...
diff --git a/src/org/androidaalto/droidkino/xml/FinnikoSAXParser.java b/src/org/androidaalto/droidkino/xml/FinnikoSAXParser.java index 56c11a4..9304b54 100644 --- a/src/org/androidaalto/droidkino/xml/FinnikoSAXParser.java +++ b/src/org/androidaalto/droidkino/xml/FinnikoSAXParser.java @@ -1,456 +1,456 @@ /*************...
true
true
public List<MovieInfo> parseMovies(String areaId) { final MovieInfo movieInfo = new MovieInfo(); final MovieTrailer movieTrailer = new MovieTrailer(); final List<MovieInfo> movies = new ArrayList<MovieInfo>(); RootElement root = new RootElement(EVENTS); Element event = root....
public List<MovieInfo> parseMovies(String areaId) { final MovieInfo movieInfo = new MovieInfo(); final MovieTrailer movieTrailer = new MovieTrailer(); final List<MovieInfo> movies = new ArrayList<MovieInfo>(); RootElement root = new RootElement(EVENTS); Element event = root....
diff --git a/orcid-core/src/main/java/org/orcid/core/cli/SendEventEmail.java b/orcid-core/src/main/java/org/orcid/core/cli/SendEventEmail.java index 1aeead977e..08ab9074df 100644 --- a/orcid-core/src/main/java/org/orcid/core/cli/SendEventEmail.java +++ b/orcid-core/src/main/java/org/orcid/core/cli/SendEventEmail.java @...
true
true
private boolean sendEmail(String orcid) { OrcidProfile orcidProfile = orcidProfileManager.retrieveOrcidProfile(orcid); if (orcidProfile.getOrcidBio() != null && orcidProfile.getOrcidBio().getContactDetails() != null && orcidProfile.getOrcidBio().getContactDetails().retrievePrimaryEma...
private boolean sendEmail(String orcid) { OrcidProfile orcidProfile = orcidProfileManager.retrieveOrcidProfile(orcid); if (orcidProfile.getOrcidBio() != null && orcidProfile.getOrcidBio().getContactDetails() != null && orcidProfile.getOrcidBio().getContactDetails().retrievePrimaryEma...
diff --git a/src/oving1/ServingArea.java b/src/oving1/ServingArea.java index 8ff64cc..f1cd978 100644 --- a/src/oving1/ServingArea.java +++ b/src/oving1/ServingArea.java @@ -1,46 +1,46 @@ package oving1; import java.util.ArrayList; public class ServingArea { private static int capacity = SushiBar.capacity; pr...
true
true
public synchronized static void handleCustomer(Customer customer, Boolean bool){ if (customers.size() < capacity && bool && customer.getId()==id){ id++; customers.add(customer); orders += customer.getOrders(); eatenOrders += customer.getEatenOrders(); takeAwayOrders += customer.getEatenOrders(); Sy...
public synchronized static void handleCustomer(Customer customer, Boolean bool){ if (customers.size() < capacity && bool && customer.getId()==id){ id++; customers.add(customer); orders += customer.getOrders(); eatenOrders += customer.getEatenOrders(); takeAwayOrders += customer.getEatenOrders(); Sy...
diff --git a/solr/core/src/java/org/apache/solr/search/grouping/endresulttransformer/GroupedEndResultTransformer.java b/solr/core/src/java/org/apache/solr/search/grouping/endresulttransformer/GroupedEndResultTransformer.java index 026cc4f57..0414affc8 100644 --- a/solr/core/src/java/org/apache/solr/search/grouping/endr...
true
true
public void transform(Map<String, ?> result, ResponseBuilder rb, SolrDocumentSource solrDocumentSource) { NamedList<Object> commands = new NamedList<Object>(); for (Map.Entry<String, ?> entry : result.entrySet()) { Object value = entry.getValue(); if (TopGroups.class.isInstance(value)) { @...
public void transform(Map<String, ?> result, ResponseBuilder rb, SolrDocumentSource solrDocumentSource) { NamedList<Object> commands = new SimpleOrderedMap<Object>(); for (Map.Entry<String, ?> entry : result.entrySet()) { Object value = entry.getValue(); if (TopGroups.class.isInstance(value)) { ...
diff --git a/lucene/src/test/org/apache/lucene/index/TestFieldsReader.java b/lucene/src/test/org/apache/lucene/index/TestFieldsReader.java index 82316867..e8f05382 100644 --- a/lucene/src/test/org/apache/lucene/index/TestFieldsReader.java +++ b/lucene/src/test/org/apache/lucene/index/TestFieldsReader.java @@ -1,510 +1,...
false
true
public void testLatentFields() throws Exception { assertTrue(dir != null); assertTrue(fieldInfos != null); FieldsReader reader = new FieldsReader(dir, TEST_SEGMENT_NAME, fieldInfos); assertTrue(reader != null); assertTrue(reader.size() == 1); Set loadFieldNames = new HashSet(); loadFieldNa...
public void testLatentFields() throws Exception { assertTrue(dir != null); assertTrue(fieldInfos != null); FieldsReader reader = new FieldsReader(dir, TEST_SEGMENT_NAME, fieldInfos); assertTrue(reader != null); assertTrue(reader.size() == 1); Set<String> loadFieldNames = new HashSet<String>();...
diff --git a/modules/cpr/src/main/java/org/atmosphere/container/JettyWebSocketUtil.java b/modules/cpr/src/main/java/org/atmosphere/container/JettyWebSocketUtil.java index 6a83630bf..51fdf9921 100644 --- a/modules/cpr/src/main/java/org/atmosphere/container/JettyWebSocketUtil.java +++ b/modules/cpr/src/main/java/org/atmo...
true
true
public final static AtmosphereServlet.Action doService(AsynchronousProcessor cometSupport, HttpServletRequest req, HttpServletResponse res, ...
public final static AtmosphereServlet.Action doService(AsynchronousProcessor cometSupport, HttpServletRequest req, HttpServletResponse res, ...
diff --git a/gui/src/main/java/org/jboss/as/console/client/shared/subsys/jca/JcaBootstrapEditor.java b/gui/src/main/java/org/jboss/as/console/client/shared/subsys/jca/JcaBootstrapEditor.java index 25657cbc..6c94beb7 100644 --- a/gui/src/main/java/org/jboss/as/console/client/shared/subsys/jca/JcaBootstrapEditor.java +++...
true
true
Widget asWidget() { final Form<JcaBootstrapContext> form = new Form<JcaBootstrapContext>(JcaBootstrapContext.class); form.setEnabled(false); table = new DefaultCellTable<JcaBootstrapContext>(10); dataProvider = new ListDataProvider<JcaBootstrapContext>(); dataProvider.addDa...
Widget asWidget() { final Form<JcaBootstrapContext> form = new Form<JcaBootstrapContext>(JcaBootstrapContext.class); form.setEnabled(false); table = new DefaultCellTable<JcaBootstrapContext>(10); dataProvider = new ListDataProvider<JcaBootstrapContext>(); dataProvider.addDa...
diff --git a/src/TorperfProcessor.java b/src/TorperfProcessor.java index d2bb050..b851249 100644 --- a/src/TorperfProcessor.java +++ b/src/TorperfProcessor.java @@ -1,152 +1,159 @@ import java.io.*; import java.text.*; import java.util.*; import java.util.logging.*; public class TorperfProcessor { public Torp...
false
true
public TorperfProcessor(String torperfDirectory) { Logger logger = Logger.getLogger(TorperfProcessor.class.getName()); File rawFile = new File("stats/torperf-raw"); File statsFile = new File("stats/torperf-stats"); File torperfDir = new File(torperfDirectory); SortedMap<String, String> rawObs = ne...
public TorperfProcessor(String torperfDirectory) { Logger logger = Logger.getLogger(TorperfProcessor.class.getName()); File rawFile = new File("stats/torperf-raw"); File statsFile = new File("stats/torperf-stats"); File torperfDir = new File(torperfDirectory); SortedMap<String, String> rawObs = ne...
diff --git a/astrid/src/com/todoroo/astrid/activity/EditPreferences.java b/astrid/src/com/todoroo/astrid/activity/EditPreferences.java index 4f15ef673..a32386d0e 100644 --- a/astrid/src/com/todoroo/astrid/activity/EditPreferences.java +++ b/astrid/src/com/todoroo/astrid/activity/EditPreferences.java @@ -1,769 +1,769 @@...
false
true
public void updatePreferences(final Preference preference, Object value) { final Resources r = getResources(); if (r.getString(R.string.p_account).equals(preference.getKey())) { int title; int summary; if (!actFmPreferenceService.isLoggedIn()) { t...
public void updatePreferences(final Preference preference, Object value) { final Resources r = getResources(); if (r.getString(R.string.p_account).equals(preference.getKey())) { int title; int summary; if (!actFmPreferenceService.isLoggedIn()) { t...
diff --git a/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2149KahaDBTest.java b/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2149KahaDBTest.java index 4d35ff3ab..4883edf01 100644 --- a/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2149KahaDBTest.java +++ b/activemq-core/src/test/java/org...
true
true
protected void configurePersistenceAdapter(BrokerService brokerService) throws Exception { // nothing to do as kahaDB is now the default //KahaDBPersistenceAdapter kahaDB = (KahaDBPersistenceAdapter) brokerService.getPersistenceAdapter(); //kahaDB.setConcurrentStoreAndDispatchTopics(true); ...
protected void configurePersistenceAdapter(BrokerService brokerService) throws Exception { // nothing to do as kahaDB is now the default KahaDBPersistenceAdapter kahaDB = (KahaDBPersistenceAdapter) brokerService.getPersistenceAdapter(); kahaDB.setConcurrentStoreAndDispatchTopics(true); }...
diff --git a/Yamba/src/com/cisco/yamba/StatusProvider.java b/Yamba/src/com/cisco/yamba/StatusProvider.java index cd46c9a..9bad1e4 100644 --- a/Yamba/src/com/cisco/yamba/StatusProvider.java +++ b/Yamba/src/com/cisco/yamba/StatusProvider.java @@ -1,118 +1,117 @@ package com.cisco.yamba; import android.content.Content...
true
true
public Uri insert(Uri uri, ContentValues values) { // Assert if (matcher.match(uri) != StatusContract.CONTENT_TYPE_DIR) { throw new IllegalArgumentException("Wrong uri: " + uri); } SQLiteDatabase db = dbHelper.getWritableDatabase(); long rowId = db.insertWithOnConflict(StatusContract.TABLE, null, va...
public Uri insert(Uri uri, ContentValues values) { // Assert if (matcher.match(uri) != StatusContract.CONTENT_TYPE_DIR) { throw new IllegalArgumentException("Wrong uri: " + uri); } SQLiteDatabase db = dbHelper.getWritableDatabase(); long rowId = db.insertWithOnConflict(StatusContract.TABLE, null, va...
diff --git a/src/step1/Reducer1.java b/src/step1/Reducer1.java index 6a9cf9d..b3117a8 100644 --- a/src/step1/Reducer1.java +++ b/src/step1/Reducer1.java @@ -1,87 +1,87 @@ package step1; import java.io.IOException; import java.util.HashSet; import java.util.logging.Logger; import org.apache.hadoop.io.IntWritabl...
true
true
protected void reduce( final IntWritable key, final Iterable<IntWritable> values, final Reducer<IntWritable, IntWritable, IntWritable, Tuple>.Context context) throws IOException, InterruptedException { if (Constants.DEBUG) LOGGER.info("Reducer1 - r...
protected void reduce( final IntWritable key, final Iterable<IntWritable> values, final Reducer<IntWritable, IntWritable, IntWritable, Tuple>.Context context) throws IOException, InterruptedException { if (Constants.DEBUG) LOGGER.info("Reducer1 - r...
diff --git a/src/com/deliciousdroid/authenticator/OauthUtilities.java b/src/com/deliciousdroid/authenticator/OauthUtilities.java index 17ca637..fe906aa 100644 --- a/src/com/deliciousdroid/authenticator/OauthUtilities.java +++ b/src/com/deliciousdroid/authenticator/OauthUtilities.java @@ -1,112 +1,112 @@ /* * Delicio...
true
true
public static HttpGet signRequest(HttpGet request, TreeMap<String, String> params, String authtoken, String tokenSecret){ Random r = new Random(); String nonce = Long.toString(Math.abs(r.nextLong()), 36); Date d = new Date(); String timestamp = Long.toString(d.getTime() /...
public static HttpGet signRequest(HttpGet request, TreeMap<String, String> params, String authtoken, String tokenSecret){ Random r = new Random(); String nonce = Long.toString(Math.abs(r.nextLong()), 36); Date d = new Date(); String timestamp = Long.toString(d.getTime() /...
diff --git a/src/editor/highlighter/LuaIdentifierHighlighterEditorComponent.java b/src/editor/highlighter/LuaIdentifierHighlighterEditorComponent.java index f3e0e953..d4905455 100644 --- a/src/editor/highlighter/LuaIdentifierHighlighterEditorComponent.java +++ b/src/editor/highlighter/LuaIdentifierHighlighterEditorComp...
false
true
protected void handleCaretPositionChanged(CaretEvent ce) { // if(_ignoreEvents) // return; // if(_identifiersLocked) // return; if (_editor == null) return; if (_editor.getProject() == null) return; if (_editor.getDocument() == null) return...
protected void handleCaretPositionChanged(CaretEvent ce) { // if(_ignoreEvents) // return; // if(_identifiersLocked) // return; if (_editor == null) return; if (_editor.getProject() == null) return; if (_editor.getDocument() == null) return...
diff --git a/src/devflow/hoseotable/Chapel.java b/src/devflow/hoseotable/Chapel.java index ff4a415..1f96a0d 100644 --- a/src/devflow/hoseotable/Chapel.java +++ b/src/devflow/hoseotable/Chapel.java @@ -1,64 +1,64 @@ package devflow.hoseotable; import org.json.JSONArray; import org.json.JSONException; import org....
true
true
public String getSeat(int numbericSeat) { try { for(int i = 0; i <= seatData.length(); i++ ){ JSONObject lData = seatData.getJSONObject(i); int StartNumber = lData.getInt("S"); int LineCount = lData.getInt("C"); if( StartNumber <= numbericSeat && StartNumber+LineCount > numbericSeat ...
public String getSeat(int numbericSeat) { try { for(int i = 0; i <= seatData.length(); i++ ){ JSONObject lData = seatData.getJSONObject(i); int StartNumber = lData.getInt("S"); int LineCount = lData.getInt("C"); if( StartNumber <= numbericSeat && StartNumber+LineCount >= numbericSeat...
diff --git a/src/com/android/volley/RequestQueue.java b/src/com/android/volley/RequestQueue.java index bfcd7d4..5c0e7af 100644 --- a/src/com/android/volley/RequestQueue.java +++ b/src/com/android/volley/RequestQueue.java @@ -1,286 +1,286 @@ /* * Copyright (C) 2011 The Android Open Source Project * * Licensed und...
true
true
public Request<?> add(Request<?> request) { // Tag the request as belonging to this queue and add it to the set of current requests. request.setRequestQueue(this); synchronized (mCurrentRequests) { mCurrentRequests.add(request); } // Process requests in the order...
public <T> Request<T> add(Request<T> request) { // Tag the request as belonging to this queue and add it to the set of current requests. request.setRequestQueue(this); synchronized (mCurrentRequests) { mCurrentRequests.add(request); } // Process requests in the o...
diff --git a/asm/test/conform/org/objectweb/asm/ClassWriterComputeFramesTest.java b/asm/test/conform/org/objectweb/asm/ClassWriterComputeFramesTest.java index c48dd219..2f46e262 100644 --- a/asm/test/conform/org/objectweb/asm/ClassWriterComputeFramesTest.java +++ b/asm/test/conform/org/objectweb/asm/ClassWriterComputeF...
true
true
protected String getCommonSuperClass(final String type1, final String type2) { try { ClassReader info1 = typeInfo(type1); ClassReader info2 = typeInfo(type2); if ((info1.getAccess() & Opcodes.ACC_INTERFACE) != 0) { if (typeImplements(type2, info2, type...
protected String getCommonSuperClass(final String type1, final String type2) { try { ClassReader info1 = typeInfo(type1); ClassReader info2 = typeInfo(type2); if ((info1.getAccess() & Opcodes.ACC_INTERFACE) != 0) { if (typeImplements(type2, info2, type...
diff --git a/src/org/apache/xalan/serialize/SerializerToXML.java b/src/org/apache/xalan/serialize/SerializerToXML.java index 9bd45668..148586b9 100644 --- a/src/org/apache/xalan/serialize/SerializerToXML.java +++ b/src/org/apache/xalan/serialize/SerializerToXML.java @@ -1,2476 +1,2478 @@ /* * The Apache Software Lic...
true
true
public void characters(char chars[], int start, int length) throws org.xml.sax.SAXException { // if (m_inEntityRef) // return; // else if (m_inCData || m_cdataSectionStates.peekOrFalse()) { cdata(chars, start, length); return; } try { ...
public void characters(char chars[], int start, int length) throws org.xml.sax.SAXException { if(0 == length) return; // if (m_inEntityRef) // return; // else if (m_inCData || m_cdataSectionStates.peekOrFalse()) { cdata(chars, start, length); return;...
diff --git a/gcm-client/src/com/google/android/gcm/GCMBroadcastReceiver.java b/gcm-client/src/com/google/android/gcm/GCMBroadcastReceiver.java index 86f0bb4..1020610 100644 --- a/gcm-client/src/com/google/android/gcm/GCMBroadcastReceiver.java +++ b/gcm-client/src/com/google/android/gcm/GCMBroadcastReceiver.java @@ -1,7...
true
true
public final void onReceive(Context context, Intent intent) { Log.v(TAG, "onReceive: " + intent.getAction()); // do a one-time check if app is using a custom GCMBroadcastReceiver if (!mReceiverSet) { mReceiverSet = true; String myClass = getClass().getName(); ...
public final void onReceive(Context context, Intent intent) { Log.v(TAG, "onReceive: " + intent.getAction()); // do a one-time check if app is using a custom GCMBroadcastReceiver if (!mReceiverSet) { mReceiverSet = true; GCMRegistrar.setRetryReceiverClassName(getClass...
diff --git a/src/classes/com/sun/opengl/impl/x11/DRIHack.java b/src/classes/com/sun/opengl/impl/x11/DRIHack.java index 4dda1305f..35a1c8fc7 100644 --- a/src/classes/com/sun/opengl/impl/x11/DRIHack.java +++ b/src/classes/com/sun/opengl/impl/x11/DRIHack.java @@ -1,133 +1,128 @@ /* * Copyright (c) 2006 Sun Microsystems...
true
true
public static void begin() { AccessController.doPrivileged(new PrivilegedAction() { public Object run() { String os = System.getProperty("os.name").toLowerCase(); // Do DRI hack on all Linux distributions for best robustness driHackNeeded = (os.startsWith("linux")...
public static void begin() { AccessController.doPrivileged(new PrivilegedAction() { public Object run() { String os = System.getProperty("os.name").toLowerCase(); // Do DRI hack on all Linux distributions for best robustness driHackNeeded = (os.startsWith("linux")...
diff --git a/blocks/sublima-query/src/main/java/com/computas/sublima/query/service/SearchService.java b/blocks/sublima-query/src/main/java/com/computas/sublima/query/service/SearchService.java index 274f0a0d..59a67f66 100644 --- a/blocks/sublima-query/src/main/java/com/computas/sublima/query/service/SearchService.java ...
false
true
public String buildSearchString(String searchstring, boolean truncate, boolean advancedsearch) { /* try { searchstring = new String(searchstring.getBytes("ISO-8859-1"), "UTF-8"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } */ if...
public String buildSearchString(String searchstring, boolean truncate, boolean advancedsearch) { /* try { searchstring = new String(searchstring.getBytes("ISO-8859-1"), "UTF-8"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } */ if...
diff --git a/src/music/Note.java b/src/music/Note.java index 941efef..3bcf731 100644 --- a/src/music/Note.java +++ b/src/music/Note.java @@ -1,98 +1,98 @@ package music; /** * Note represents a note played by an instrument. */ public class Note implements Music { private final double duration; priva...
true
true
public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return true; if (getClass() != obj.getClass()) return false; final Note other = (Note) obj; if (duration != other.duration) return false; ...
public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; final Note other = (Note) obj; if (duration != other.duration) return false; ...
diff --git a/sonar-batch/src/main/java/org/sonar/batch/components/PastSnapshotFinderByPreviousVersion.java b/sonar-batch/src/main/java/org/sonar/batch/components/PastSnapshotFinderByPreviousVersion.java index ea2f23ee7b..b0b54947df 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/components/PastSnapshotFinderByPr...
true
true
PastSnapshot findByPreviousVersion(Snapshot projectSnapshot) { String hql = "from " + Snapshot.class.getSimpleName() + " where version!=:version AND version!='' AND resourceId=:resourceId AND status=:status AND qualifier<>:lib order by createdAt desc"; List<Snapshot> snapshots = session.createQuery(hql)...
PastSnapshot findByPreviousVersion(Snapshot projectSnapshot) { String hql = "from " + Snapshot.class.getSimpleName() + " where version<>:version AND version IS NOT NULL AND resourceId=:resourceId AND status=:status AND qualifier<>:lib order by createdAt desc"; List<Snapshot> snapshots = session.createQu...
diff --git a/src/org/ethelred/mymailtool/ApplyMessageRulesTask.java b/src/org/ethelred/mymailtool/ApplyMessageRulesTask.java index 43c1529..bc2da56 100644 --- a/src/org/ethelred/mymailtool/ApplyMessageRulesTask.java +++ b/src/org/ethelred/mymailtool/ApplyMessageRulesTask.java @@ -1,182 +1,182 @@ /* * To change this ...
true
true
private void initRule(int i, Store store) { try { RuleType type = RuleType.valueOf(props.getProperty(RULE_PREFIX + i + ".type")); String fromAddressList = props.getProperty(RULE_PREFIX + i + ".match"); if(fromAddressList == null) { fromAddressL...
private void initRule(int i, Store store) { try { RuleType type = RuleType.valueOf(props.getProperty(RULE_PREFIX + i + ".type")); String fromAddressList = props.getProperty(RULE_PREFIX + i + ".match"); if(fromAddressList == null) { fromAddressL...
diff --git a/src/graph-editor/src/com/trendmicro/tme/grapheditor/GraphEditorMain.java b/src/graph-editor/src/com/trendmicro/tme/grapheditor/GraphEditorMain.java index 33cc302..42e9474 100644 --- a/src/graph-editor/src/com/trendmicro/tme/grapheditor/GraphEditorMain.java +++ b/src/graph-editor/src/com/trendmicro/tme/grap...
true
true
public static void main(String[] args) throws Exception { try { Properties prop = new Properties(); prop.load(new FileInputStream(CONFIG_PATH)); // Let the system properties override the ones in the config file prop.putAll(System.getProperties()); ...
public static void main(String[] args) throws Exception { try { Properties prop = new Properties(); prop.load(new FileInputStream(CONFIG_PATH)); // Let the system properties override the ones in the config file prop.putAll(System.getProperties()); ...
diff --git a/javafx.project/src/org/netbeans/modules/javafx/project/ui/customizer/CustomizerRun.java b/javafx.project/src/org/netbeans/modules/javafx/project/ui/customizer/CustomizerRun.java index 659020a6..96b718cf 100644 --- a/javafx.project/src/org/netbeans/modules/javafx/project/ui/customizer/CustomizerRun.java +++...
false
true
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; buttonGroup1 = new javax.swing.ButtonGroup(); configSep = new javax.swing.JSeparator(); configPanel = new javax.swing.JPanel(); configLabel = new javax.swing.JLabel(); configCombo = new j...
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; buttonGroup1 = new javax.swing.ButtonGroup(); configSep = new javax.swing.JSeparator(); configPanel = new javax.swing.JPanel(); configLabel = new javax.swing.JLabel(); configCombo = new j...
diff --git a/src/tconstruct/common/TContent.java b/src/tconstruct/common/TContent.java index ba6891d01..ad73b3bab 100644 --- a/src/tconstruct/common/TContent.java +++ b/src/tconstruct/common/TContent.java @@ -1,2552 +1,2552 @@ package tconstruct.common; import net.minecraft.item.Item; import net.minecraft.item.Ite...
true
true
void registerBlocks () { //Tool Station toolStationWood = new ToolStationBlock(PHConstruct.woodStation, Material.wood).setUnlocalizedName("ToolStation"); GameRegistry.registerBlock(toolStationWood, ToolStationItemBlock.class, "ToolStationBlock"); GameRegistry.registerTileEntity(T...
void registerBlocks () { //Tool Station toolStationWood = new ToolStationBlock(PHConstruct.woodStation, Material.wood).setUnlocalizedName("ToolStation"); GameRegistry.registerBlock(toolStationWood, ToolStationItemBlock.class, "ToolStationBlock"); GameRegistry.registerTileEntity(T...
diff --git a/org.dawb.workbench.plotting/src/org/dawb/workbench/plotting/system/LightWeightPlottingSystem.java b/org.dawb.workbench.plotting/src/org/dawb/workbench/plotting/system/LightWeightPlottingSystem.java index faddc5a81..87353d171 100644 --- a/org.dawb.workbench.plotting/src/org/dawb/workbench/plotting/system/Li...
true
true
private List<ITrace> createPlot1DInternal( final AbstractDataset xIn, final List<AbstractDataset> ysIn, final String title, final boolean createdIndices, final IProgressMonitor monitor) { this.plottingMode = PlotType.PT1D; this.lightWeightAction...
private List<ITrace> createPlot1DInternal( final AbstractDataset xIn, final List<AbstractDataset> ysIn, final String title, final boolean createdIndices, final IProgressMonitor monitor) { this.plottingMode = PlotType.PT1D; this.lightWeightAction...
diff --git a/src/me/libraryaddict/Hungergames/Managers/GenerationManager.java b/src/me/libraryaddict/Hungergames/Managers/GenerationManager.java index a979835..12849e3 100644 --- a/src/me/libraryaddict/Hungergames/Managers/GenerationManager.java +++ b/src/me/libraryaddict/Hungergames/Managers/GenerationManager.java @@ ...
false
true
public void generateChunks() { if (!isChunkGeneratorRunning()) { // Get the measurements I need int chunks1 = Bukkit.getViewDistance() + 3; int chunks2 = 0; Hungergames hungergames = HungergamesApi.getHungergames(); YamlConfiguration mapConfig = Ya...
public void generateChunks() { if (!isChunkGeneratorRunning()) { // Get the measurements I need int chunks1 = Bukkit.getViewDistance() + 3; int chunks2 = 0; Hungergames hungergames = HungergamesApi.getHungergames(); YamlConfiguration mapConfig = Ya...
diff --git a/src/com/android/email/activity/MessageCompose.java b/src/com/android/email/activity/MessageCompose.java index 123ac9a8..d7b2c47a 100644 --- a/src/com/android/email/activity/MessageCompose.java +++ b/src/com/android/email/activity/MessageCompose.java @@ -1,2323 +1,2323 @@ /* * Copyright (C) 2008 The Andr...
false
true
private void initViews() { ViewGroup toParent = UiUtilities.getViewOrNull(this, R.id.to_content); if (toParent != null) { mToView = (MultiAutoCompleteTextView) toParent.findViewById(R.id.address_field); ((TextView) toParent.findViewById(R.id.label)) .setTe...
private void initViews() { ViewGroup toParent = UiUtilities.getViewOrNull(this, R.id.to_content); if (toParent != null) { mToView = (MultiAutoCompleteTextView) toParent.findViewById(R.id.to_address_field); ((TextView) toParent.findViewById(R.id.label)) .se...
diff --git a/src/uk/ac/ic/doc/analysis/PhiPlacement.java b/src/uk/ac/ic/doc/analysis/PhiPlacement.java index 63dbc15..5d57721 100644 --- a/src/uk/ac/ic/doc/analysis/PhiPlacement.java +++ b/src/uk/ac/ic/doc/analysis/PhiPlacement.java @@ -1,69 +1,69 @@ package uk.ac.ic.doc.analysis; import java.util.Collection; impo...
true
true
public PhiPlacement(Cfg graph) throws Exception { finder = new GlobalsAndDefsFinder(graph); domInfo = new DomFront(new DomMethod(graph)).run(); for (String name : finder.globals()) { Collection<BasicBlock> definingLocations = finder .definingLocations(name); // Variables can be global (used in multi...
public PhiPlacement(Cfg graph) throws Exception { finder = new GlobalsAndDefsFinder(graph); domInfo = new DomFront(new DomMethod(graph)).run(); for (String name : finder.globals()) { Collection<BasicBlock> definingLocations = finder .definingLocations(name); // Variables can be global (used in multi...
diff --git a/src-pos/com/openbravo/pos/printer/escpos/UnicodeTranslatorStar.java b/src-pos/com/openbravo/pos/printer/escpos/UnicodeTranslatorStar.java index 431c5b6..2a1c0b3 100644 --- a/src-pos/com/openbravo/pos/printer/escpos/UnicodeTranslatorStar.java +++ b/src-pos/com/openbravo/pos/printer/escpos/UnicodeTranslatorS...
false
true
public byte transChar(char sChar) { if ((sChar >= 0x0000) && (sChar < 0x0080)) { return (byte) sChar; } else { switch (sChar) { case '\u00c1': return 0x41; // A acute case '\u00c9': return 0x45; // E acute case '\u00cd': return ...
public byte transChar(char sChar) { if ((sChar >= 0x0000) && (sChar < 0x0080)) { return (byte) sChar; } else { switch (sChar) { case '\u00c1': return 0x41; // A acute case '\u00c9': return 0x45; // E acute case '\u00cd': return ...
diff --git a/GuerraVaixellsMylyn/src/Tauler.java b/GuerraVaixellsMylyn/src/Tauler.java index af3f560..0e15fdd 100644 --- a/GuerraVaixellsMylyn/src/Tauler.java +++ b/GuerraVaixellsMylyn/src/Tauler.java @@ -1,64 +1,64 @@ public class Tauler { int alc, ampl; Casella casella [][]; public Tauler(int ampl...
true
true
public boolean ColocarVaixell(int y, int x, Vaixell v) { int incrX=0 ; int incrY=0; switch (v.getOrientacio() ) { case V: incrX=0; incrY=1; break; case H: incrX=1; incrY=0; break; } // Copiem el vaixell int xPointer=x; int yPointer=y; for(int i=0;i<v.getMida();++...
public boolean ColocarVaixell(int y, int x, Vaixell v) { int incrX=0 ; int incrY=0; switch (v.getOrientacio() ) { case V: incrX=0; incrY=1; break; case H: incrX=1; incrY=0; break; } // Copiem el vaixell int xPointer=x; int yPointer=y; for(int i=0;i<v.getMida();+...
diff --git a/atlas-web/src/test/java/uk/ac/ebi/gxa/web/AtlasPlotterAssayFactorValuesTest.java b/atlas-web/src/test/java/uk/ac/ebi/gxa/web/AtlasPlotterAssayFactorValuesTest.java index 328bbd34d..b45792465 100644 --- a/atlas-web/src/test/java/uk/ac/ebi/gxa/web/AtlasPlotterAssayFactorValuesTest.java +++ b/atlas-web/src/te...
true
true
public void testAssayFactorValues() { String[] factorValues = new String[]{"value1", "value2", "value1", "value2", "value3"}; List<Float> expressions = Arrays.asList(1.0f, 2.0f, 1.0f, 2.0f, 3.0f, 0.0f); assertEquals(factorValues.length, expressions.size()); AssayFactorValues afv = n...
public void testAssayFactorValues() { String[] factorValues = new String[]{"value1", "value2", "value1", "value2", "value3"}; List<Float> expressions = Arrays.asList(1.0f, 2.0f, 1.0f, 2.0f, 3.0f); assertEquals(factorValues.length, expressions.size()); AssayFactorValues afv = new Ass...
diff --git a/Utilities/java/GetFastaStats.java b/Utilities/java/GetFastaStats.java index 7e17457..cf9aad1 100755 --- a/Utilities/java/GetFastaStats.java +++ b/Utilities/java/GetFastaStats.java @@ -1,400 +1,400 @@ import java.io.BufferedReader; import java.io.FileInputStream; import java.io.InputStreamReader; import...
true
true
public String toString(boolean outputHeader, String title) { StringBuffer st = new StringBuffer(); int max = Integer.MIN_VALUE; int min = Integer.MAX_VALUE; long total = 0; int count = 0; int n10 = 0; int n25 = 0; int n50 = 0; int n75 = 0; int n95 = ...
public String toString(boolean outputHeader, String title) { StringBuffer st = new StringBuffer(); int max = Integer.MIN_VALUE; int min = Integer.MAX_VALUE; long total = 0; int count = 0; int n10 = 0; int n25 = 0; int n50 = 0; int n75 = 0; int n95 = ...
diff --git a/src/com/android/calendar/CalendarViewAdapter.java b/src/com/android/calendar/CalendarViewAdapter.java index 5045b6b9a..a31287547 100644 --- a/src/com/android/calendar/CalendarViewAdapter.java +++ b/src/com/android/calendar/CalendarViewAdapter.java @@ -1,450 +1,450 @@ /* * Copyright (C) 2011 The Android ...
true
true
public View getView(int position, View convertView, ViewGroup parent) { View v; if (mShowDate) { // Check if can recycle the view if (convertView == null || ((Integer) convertView.getTag()).intValue() != R.layout.actionbar_pulldown_menu_top_button) { ...
public View getView(int position, View convertView, ViewGroup parent) { View v; if (mShowDate) { // Check if can recycle the view if (convertView == null || ((Integer) convertView.getTag()).intValue() != R.layout.actionbar_pulldown_menu_top_button) { ...
diff --git a/src/service/hr/fer/zemris/vhdllab/vhdl/simulations/VcdParser.java b/src/service/hr/fer/zemris/vhdllab/vhdl/simulations/VcdParser.java index b45c9867..36a0e376 100644 --- a/src/service/hr/fer/zemris/vhdllab/vhdl/simulations/VcdParser.java +++ b/src/service/hr/fer/zemris/vhdllab/vhdl/simulations/VcdParser.ja...
false
true
public void parse() { /* Pretrazuje sve do kraja datoteke, tj. polja Stringova. Izmedu svake * tocke u kojima se dogada promjena (tocke tranzicije) cita red po red i * provjerava vrijednosti signala. Ako vrijednost pocinje s slovom 'b' * znaci da slijedi vrijednost vektora iza koj...
public void parse() { /* Pretrazuje sve do kraja datoteke, tj. polja Stringova. Izmedu svake * tocke u kojima se dogada promjena (tocke tranzicije) cita red po red i * provjerava vrijednosti signala. Ako vrijednost pocinje s slovom 'b' * znaci da slijedi vrijednost vektora iza koj...
diff --git a/src/org/fiz/section/CompoundSection.java b/src/org/fiz/section/CompoundSection.java index 1a4b2ac..ec7b0bd 100644 --- a/src/org/fiz/section/CompoundSection.java +++ b/src/org/fiz/section/CompoundSection.java @@ -1,221 +1,221 @@ /* Copyright (c) 2008-2010 Stanford University * * Permission to use, copy...
true
true
public void render(ClientRequest cr) { // If there is a border for this section, then the section gets // rendered as a 3x3 table, with the outer cells containing the // border and the inner cell containing the children's sections. // If there is no border then the section is rendere...
public void render(ClientRequest cr) { // If there is a border for this section, then the section gets // rendered as a 3x3 table, with the outer cells containing the // border and the inner cell containing the children's sections. // If there is no border then the section is rendere...
diff --git a/uk.ac.gda.core/src/gda/device/detector/countertimer/TfgScalerWithLogValues.java b/uk.ac.gda.core/src/gda/device/detector/countertimer/TfgScalerWithLogValues.java index f96484f0e..19863fd94 100644 --- a/uk.ac.gda.core/src/gda/device/detector/countertimer/TfgScalerWithLogValues.java +++ b/uk.ac.gda.core/src/...
false
true
public void setOutputLogValues(boolean outputLogValues) { this.outputLogValues = outputLogValues; // adjust the extraNmaes and outputFormat arrays if (!configured) { return; } if (outputLogValues) { if (!ArrayUtils.contains(extraNames, LNI0IT_LABEL)) { extraNames = (String[]) ArrayUtils.add(extraN...
public void setOutputLogValues(boolean outputLogValues) { this.outputLogValues = outputLogValues; // adjust the extraNmaes and outputFormat arrays if (!configured) { return; } if (outputLogValues) { if (!ArrayUtils.contains(extraNames, LNI0IT_LABEL)) { extraNames = (String[]) ArrayUtils.add(extraN...
diff --git a/sql12/app/src/net/sourceforge/squirrel_sql/client/session/mainpanel/ResultTab.java b/sql12/app/src/net/sourceforge/squirrel_sql/client/session/mainpanel/ResultTab.java index 2f4efb1b6..6a3aeca76 100755 --- a/sql12/app/src/net/sourceforge/squirrel_sql/client/session/mainpanel/ResultTab.java +++ b/sql12/app/...
true
true
private void createGUI() { setLayout(new GridBagLayout()); GridBagConstraints gbc = new GridBagConstraints(); gbc.anchor = GridBagConstraints.NORTHWEST; gbc.gridwidth = 1; gbc.weightx = 0; gbc.gridx = 0; gbc.gridy = 0; gbc.insets = new Insets(5, 10, 5, 10); gbc.fill = GridBagConstraints...
private void createGUI() { setLayout(new GridBagLayout()); GridBagConstraints gbc = new GridBagConstraints(); gbc.anchor = GridBagConstraints.NORTHWEST; gbc.gridwidth = 1; gbc.weightx = 0; gbc.gridx = 0; gbc.gridy = 0; gbc.insets = new Insets(5, 10, 5, 10); gbc.fill = GridBagConstraints...
diff --git a/tests/balle/strategy/StrategyFactoryTest.java b/tests/balle/strategy/StrategyFactoryTest.java index bf73a7a..cf3df9f 100644 --- a/tests/balle/strategy/StrategyFactoryTest.java +++ b/tests/balle/strategy/StrategyFactoryTest.java @@ -1,23 +1,23 @@ package balle.strategy; import org.junit.Test; public ...
true
true
public void testAvailableDesignators() throws UnknownDesignatorException { String[] availableDesignators = StrategyFactory.availableDesignators(); for (String designator : availableDesignators) { // An actual test StrategyFactory.createClass(designator, null, null); }...
public void testAvailableDesignators() throws UnknownDesignatorException { String[] availableDesignators = StrategyFactory.availableDesignators(); for (String designator : availableDesignators) { // An actual test StrategyFactory.createClass(designator); } }
diff --git a/src/dark/core/common/DarkMain.java b/src/dark/core/common/DarkMain.java index 0b5366cd..9f3e92c6 100644 --- a/src/dark/core/common/DarkMain.java +++ b/src/dark/core/common/DarkMain.java @@ -1,338 +1,338 @@ package dark.core.common; import java.awt.Color; import java.io.File; import java.util.Arrays; ...
false
true
public void init(FMLInitializationEvent event) { super.init(event); EntityRegistry.registerGlobalEntityID(EntityTestCar.class, "TestCar", EntityRegistry.findGlobalUniqueEntityId()); EntityRegistry.registerModEntity(EntityTestCar.class, "TestCar", 60, this, 64, 1, true); for (Enu...
public void init(FMLInitializationEvent event) { super.init(event); EntityRegistry.registerGlobalEntityID(EntityTestCar.class, "TestCar", EntityRegistry.findGlobalUniqueEntityId()); EntityRegistry.registerModEntity(EntityTestCar.class, "TestCar", 60, this, 64, 1, true); for (Enu...
diff --git a/src/master/src/org/drftpd/vfs/DirectoryHandle.java b/src/master/src/org/drftpd/vfs/DirectoryHandle.java index 0b47412b..9f394edc 100644 --- a/src/master/src/org/drftpd/vfs/DirectoryHandle.java +++ b/src/master/src/org/drftpd/vfs/DirectoryHandle.java @@ -1,810 +1,808 @@ /* * This file is part of DrFTPD, ...
false
true
public void remerge(List<LightRemoteInode> files, RemoteSlave rslave) throws IOException, SlaveUnavailableException { Iterator<LightRemoteInode> sourceIter = files.iterator(); // source comes pre-sorted from the slave List<InodeHandle> destinationList = null; try { destinationList = new ArrayList<InodeHa...
public void remerge(List<LightRemoteInode> files, RemoteSlave rslave) throws IOException, SlaveUnavailableException { Iterator<LightRemoteInode> sourceIter = files.iterator(); // source comes pre-sorted from the slave List<InodeHandle> destinationList = null; try { destinationList = new ArrayList<InodeHa...
diff --git a/extensions/search/src/main/java/uk/co/tfd/sm/search/es/ContentEventListener.java b/extensions/search/src/main/java/uk/co/tfd/sm/search/es/ContentEventListener.java index 4db94b3..6d347a3 100644 --- a/extensions/search/src/main/java/uk/co/tfd/sm/search/es/ContentEventListener.java +++ b/extensions/search/sr...
false
true
public void handleEvent(Event event) { String topic = event.getTopic(); Session session = (Session) event.getProperty(Session.class.getName()); RepositorySession repositoryRession = null; Thread thisThread = Thread.currentThread(); ClassLoader classloader = thisThread.getContextClassLoader(); // ES might l...
public void handleEvent(Event event) { String topic = event.getTopic(); Session session = (Session) event.getProperty(Session.class.getName()); RepositorySession repositoryRession = null; Thread thisThread = Thread.currentThread(); ClassLoader classloader = thisThread.getContextClassLoader(); // ES might l...
diff --git a/src/main/java/freemarker/core/Include.java b/src/main/java/freemarker/core/Include.java index f0634d5e..5bcbea7d 100644 --- a/src/main/java/freemarker/core/Include.java +++ b/src/main/java/freemarker/core/Include.java @@ -1,216 +1,216 @@ /* * Copyright (c) 2003 The Visigoth Software Society. All rights ...
false
true
void accept(Environment env) throws TemplateException, IOException { String templateNameString = includedTemplateName.getStringValue(env); if( templateNameString == null ) { String msg = "Error " + getStartLocation() + "The expression " + includedTemplateName + " ...
void accept(Environment env) throws TemplateException, IOException { String templateNameString = includedTemplateName.getStringValue(env); if( templateNameString == null ) { String msg = "Error " + getStartLocation() + "The expression " + includedTemplateName + " ...
diff --git a/src/org/fudgemsg/proto/c/CClassCode.java b/src/org/fudgemsg/proto/c/CClassCode.java index 5512d35..214ead5 100644 --- a/src/org/fudgemsg/proto/c/CClassCode.java +++ b/src/org/fudgemsg/proto/c/CClassCode.java @@ -1,1683 +1,1683 @@ /* * Copyright 2009 by OpenGamma Inc and other contributors. * * Lice...
true
true
private void decodeFieldValue(final IndentWriter writer, final FieldType type, final String source, final String target, final Stack<String> unwind, final boolean allowNull) throws IOException { if (type instanceof FieldType.MessageType) { writer.write("if (" + source + ".type == FUDGE_TYPE_FUDGE_MSG)...
private void decodeFieldValue(final IndentWriter writer, final FieldType type, final String source, final String target, final Stack<String> unwind, final boolean allowNull) throws IOException { if (type instanceof FieldType.MessageType) { writer.write("if (" + source + ".type == FUDGE_TYPE_FUDGE_MSG)...
diff --git a/src/com/iBank/iBank.java b/src/com/iBank/iBank.java index 46ab584..9eccac7 100644 --- a/src/com/iBank/iBank.java +++ b/src/com/iBank/iBank.java @@ -1,528 +1,528 @@ package com.iBank; import java.io.File; import java.io.InputStream; import java.math.BigDecimal; import java.util.ArrayList; import jav...
true
true
public void onEnable() { if(!(getDataFolder().exists())) getDataFolder().mkdir(); // Load configuration + strings reloadConfig(); loadStrings(); Configuration.init(Config); Configuration.stringinit(StringConfig); if(!Configuration.Entry.Enabled.getBoolean()) { System.out.println("[iBank] Disable...
public void onEnable() { if(!(getDataFolder().exists())) getDataFolder().mkdir(); // Load configuration + strings reloadConfig(); loadStrings(); Configuration.init(Config); Configuration.stringinit(StringConfig); if(!Configuration.Entry.Enabled.getBoolean()) { System.out.println("[iBank] Disable...
diff --git a/src/net/rptools/maptool/model/vision/FacingConicVision.java b/src/net/rptools/maptool/model/vision/FacingConicVision.java index 4b20274c..92c512b9 100644 --- a/src/net/rptools/maptool/model/vision/FacingConicVision.java +++ b/src/net/rptools/maptool/model/vision/FacingConicVision.java @@ -1,81 +1,81 @@ pa...
true
true
protected Area createArea(Zone zone) { Token token = getToken(); if (token == null || token.getFacing() == null) { return null; } // Start round int size = getDistance() * getZonePointsPerCell(zone) * 2; int half = size/2; Area area = new Area(new Ellipse2D.Float(-half, -half, size, size)); // ...
protected Area createArea(Zone zone) { Token token = getToken(); if (token == null || token.getFacing() == null) { return null; } // Start round int size = getDistance() * getZonePointsPerCell(zone) * 2; int half = size/2; Area area = new Area(new Ellipse2D.Float(-half, -half, size, size)); // ...
diff --git a/src/java/org/jdesktop/swingx/plaf/JXTaskPaneAddon.java b/src/java/org/jdesktop/swingx/plaf/JXTaskPaneAddon.java index 7a25a5f5..31230246 100644 --- a/src/java/org/jdesktop/swingx/plaf/JXTaskPaneAddon.java +++ b/src/java/org/jdesktop/swingx/plaf/JXTaskPaneAddon.java @@ -1,253 +1,252 @@ /* * $Id$ * * ...
true
true
private Object[] getDefaults(LookAndFeelAddons addon) { List defaults = new ArrayList(); if (addon instanceof BasicLookAndFeelAddons) { Color menuBackground = new ColorUIResource(SystemColor.menu); defaults.addAll(Arrays.asList(new Object[]{ JXTaskPane.uiClassID, "org.jdesktop.swin...
private Object[] getDefaults(LookAndFeelAddons addon) { List defaults = new ArrayList(); if (addon instanceof BasicLookAndFeelAddons) { Color menuBackground = new ColorUIResource(SystemColor.menu); defaults.addAll(Arrays.asList(new Object[]{ JXTaskPane.uiClassID, "org.jdesktop.swin...
diff --git a/javagit/src/test/java/edu/nyu/cs/javagit/api/TestGitFileSystem.java b/javagit/src/test/java/edu/nyu/cs/javagit/api/TestGitFileSystem.java index 359c232..32290aa 100644 --- a/javagit/src/test/java/edu/nyu/cs/javagit/api/TestGitFileSystem.java +++ b/javagit/src/test/java/edu/nyu/cs/javagit/api/TestGitFileSys...
false
true
public void testGitFileSystem() throws IOException, JavaGitException { //Add another file FileUtilities.createFile(repositoryDirectory, "file1", "Some data"); FileUtilities.createFile(repositoryDirectory, "file2", "Some data"); //check contents List<GitFileSystemObject> children = workingTree...
public void testGitFileSystem() throws IOException, JavaGitException { //Add another file FileUtilities.createFile(repositoryDirectory, "file1", "Some data"); FileUtilities.createFile(repositoryDirectory, "file2", "Some data"); //check contents List<GitFileSystemObject> children = workingTree...
diff --git a/kohola/src/edu/hawaii/ihale/frontend/page/lighting/Lighting.java b/kohola/src/edu/hawaii/ihale/frontend/page/lighting/Lighting.java index 1dda725..65f8024 100644 --- a/kohola/src/edu/hawaii/ihale/frontend/page/lighting/Lighting.java +++ b/kohola/src/edu/hawaii/ihale/frontend/page/lighting/Lighting.java @@ ...
true
true
public Lighting() { ((SolarDecathlonSession) getSession()).getHeaderSession().setActiveTab(3); Repository repository = new Repository(); livingState = repository.getLightingEnabled(IHaleRoom.LIVING).getValue(); diningState = repository.getLightingEnabled(IHaleRoom.DINING).getValue(); kitchenState...
public Lighting() { ((SolarDecathlonSession) getSession()).getHeaderSession().setActiveTab(3); Repository repository = new Repository(); livingState = repository.getLightingEnabled(IHaleRoom.LIVING).getValue(); diningState = repository.getLightingEnabled(IHaleRoom.DINING).getValue(); kitchenState...
diff --git a/src/com/sunshine/SearchActivity.java b/src/com/sunshine/SearchActivity.java index 69db1ad..663bc5b 100644 --- a/src/com/sunshine/SearchActivity.java +++ b/src/com/sunshine/SearchActivity.java @@ -1,182 +1,182 @@ package com.sunshine; import java.util.Collections; import java.util.Comparator; import j...
false
true
private void search() { //Do we search through the question text? The answer text? boolean searchQs = checkBoxQuestions.isChecked(); boolean searchAs = checkBoxAnswers.isChecked(); if (!searchQs && !searchAs) { return; } String originalQuery = ((EditText)findViewById(R.id.editTextSearch)).getText().to...
private void search() { //Do we search through the question text? The answer text? boolean searchQs = checkBoxQuestions.isChecked(); boolean searchAs = checkBoxAnswers.isChecked(); if (!searchQs && !searchAs) { return; } String originalQuery = ((EditText)findViewById(R.id.editTextSearch)).getText().to...
diff --git a/src/com/btmura/android/reddit/app/ThingListFragment.java b/src/com/btmura/android/reddit/app/ThingListFragment.java index 19c551b1..736e65cb 100644 --- a/src/com/btmura/android/reddit/app/ThingListFragment.java +++ b/src/com/btmura/android/reddit/app/ThingListFragment.java @@ -1,530 +1,531 @@ /* * Copyr...
false
true
public boolean onPrepareActionMode(ActionMode mode, Menu menu) { int position = getFirstCheckedPosition(); int count = getListView().getCheckedItemCount(); mode.setTitle(getResources().getQuantityString(R.plurals.things, count, count)); menu.findItem(R.id.menu_copy_url).setVisible(c...
public boolean onPrepareActionMode(ActionMode mode, Menu menu) { int position = getFirstCheckedPosition(); int count = getListView().getCheckedItemCount(); mode.setTitle(getResources().getQuantityString(R.plurals.things, count, count)); menu.findItem(R.id.menu_copy_url).setVisible(c...
diff --git a/trunk/uim/orchestration/basic/src/main/java/eu/europeana/uim/orchestration/UIMWorkflowProcessor.java b/trunk/uim/orchestration/basic/src/main/java/eu/europeana/uim/orchestration/UIMWorkflowProcessor.java index fc9d1301..ae757174 100644 --- a/trunk/uim/orchestration/basic/src/main/java/eu/europeana/uim/orch...
true
true
public void run() { running = true; while (running) { int total = 0; try { Iterator<ActiveExecution<Task>> iterator = executions.iterator(); while (iterator.hasNext()) { ActiveExecution<Task> execution = iterator.next(); ...
public void run() { running = true; while (running) { int total = 0; try { Iterator<ActiveExecution<Task>> iterator = executions.iterator(); while (iterator.hasNext()) { ActiveExecution<Task> execution = iterator.next(); ...
diff --git a/javasrc/src/org/ccnx/ccn/utils/CommonArguments.java b/javasrc/src/org/ccnx/ccn/utils/CommonArguments.java index 4531941d1..01d56327d 100644 --- a/javasrc/src/org/ccnx/ccn/utils/CommonArguments.java +++ b/javasrc/src/org/ccnx/ccn/utils/CommonArguments.java @@ -1,68 +1,68 @@ /* * A CCNx command line utili...
true
true
public static boolean parseArguments(String[] args, int i, Usage u) { boolean ret = true; if (args[i].equals("-unversioned")) { CommonParameters.unversioned = true; } else if (args[i].equals("-timeout")) { if (args.length < (i + 2)) { u.usage(); } try { CommonParameters.timeout = Integer.pars...
public static boolean parseArguments(String[] args, int i, Usage u) { boolean ret = true; if (args[i].equals("-unversioned")) { CommonParameters.unversioned = true; } else if (args[i].equals("-timeout")) { if (args.length < (i + 2)) { u.usage(); } try { CommonParameters.timeout = Integer.pars...
diff --git a/framework/src/com/phonegap/ContactManager.java b/framework/src/com/phonegap/ContactManager.java index 5a79c37a..7ef70c18 100755 --- a/framework/src/com/phonegap/ContactManager.java +++ b/framework/src/com/phonegap/ContactManager.java @@ -1,67 +1,74 @@ /* * PhoneGap is available under *either* the terms ...
true
true
public PluginResult execute(String action, JSONArray args, String callbackId) { if (contactAccessor == null) { contactAccessor = ContactAccessor.getInstance(webView, ctx); } PluginResult.Status status = PluginResult.Status.OK; String result = ""; try { if (action.equals("search")) { JSONArray ...
public PluginResult execute(String action, JSONArray args, String callbackId) { if (contactAccessor == null) { contactAccessor = ContactAccessor.getInstance(webView, ctx); } PluginResult.Status status = PluginResult.Status.OK; String result = ""; try { if (action.equals("search")) { JSONArray ...
diff --git a/DataDroid/src/com/foxykeep/datadroid/internal/network/NetworkConnectionImpl.java b/DataDroid/src/com/foxykeep/datadroid/internal/network/NetworkConnectionImpl.java index 9ca7a15..4f1080f 100644 --- a/DataDroid/src/com/foxykeep/datadroid/internal/network/NetworkConnectionImpl.java +++ b/DataDroid/src/com/fo...
true
true
public static ConnectionResult execute(Context context, String urlValue, Method method, HashMap<String, String> parameterMap, HashMap<String, String> headerMap, boolean isGzipEnabled, String userAgent, String postText, UsernamePasswordCredentials credentials, boolean isSslValidat...
public static ConnectionResult execute(Context context, String urlValue, Method method, HashMap<String, String> parameterMap, HashMap<String, String> headerMap, boolean isGzipEnabled, String userAgent, String postText, UsernamePasswordCredentials credentials, boolean isSslValidat...
diff --git a/modules/org.restlet/src/org/restlet/data/Conditions.java b/modules/org.restlet/src/org/restlet/data/Conditions.java index b09b323b9..6951c8510 100644 --- a/modules/org.restlet/src/org/restlet/data/Conditions.java +++ b/modules/org.restlet/src/org/restlet/data/Conditions.java @@ -1,255 +1,259 @@ /* * Cop...
false
true
public Status getStatus(Method method, Variant variant) { Status result = null; // Is the "if-Match" rule followed or not? if (getMatch() != null && getMatch().size() != 0) { boolean matched = false; boolean failed = false; if (variant != null) { ...
public Status getStatus(Method method, Variant variant) { Status result = null; // Is the "if-Match" rule followed or not? if (getMatch() != null && getMatch().size() != 0) { boolean matched = false; boolean failed = false; if (variant != null) { ...
diff --git a/exo.jcr.component.ext/src/test/java/org/exoplatform/services/jcr/ext/backup/AbstractBackupUseCasesTest.java b/exo.jcr.component.ext/src/test/java/org/exoplatform/services/jcr/ext/backup/AbstractBackupUseCasesTest.java index 2bd5f0faf..b9f3dcee8 100644 --- a/exo.jcr.component.ext/src/test/java/org/exoplatfo...
true
true
public void testEnvironmentVariablesToBackupDir() throws Exception { // prepare stage #1 ManageableRepository repository = helper.createRepository(container, true, null); addConent(repository, repository.getConfiguration().getSystemWorkspaceName()); String tempDir = PrivilegedSystemHelper...
public void testEnvironmentVariablesToBackupDir() throws Exception { // prepare stage #1 ManageableRepository repository = helper.createRepository(container, true, null); addConent(repository, repository.getConfiguration().getSystemWorkspaceName()); String tempDir = PrivilegedSystemHelper...
diff --git a/src/com/suxsem/liquidnextparts/activities/Webview.java b/src/com/suxsem/liquidnextparts/activities/Webview.java index ff557ad..11b8651 100644 --- a/src/com/suxsem/liquidnextparts/activities/Webview.java +++ b/src/com/suxsem/liquidnextparts/activities/Webview.java @@ -1,125 +1,130 @@ package com.suxsem.liq...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.webviewlayout); waitdialog = ProgressDialog.show(this, "", "Processing click...", true); waittextview = (TextView) findViewById(R.id.textView1); waittextview.setText("Loading ADS..."); ...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.webviewlayout); waitdialog = ProgressDialog.show(this, "", "Processing click...", true); waittextview = (TextView) findViewById(R.id.textView1); waittextview.setText("Loading ADS..."); ...
diff --git a/src/main/java/com/hrktsoft/portfowardutility/ConfigurationLoader.java b/src/main/java/com/hrktsoft/portfowardutility/ConfigurationLoader.java index e8905b7..d743e27 100644 --- a/src/main/java/com/hrktsoft/portfowardutility/ConfigurationLoader.java +++ b/src/main/java/com/hrktsoft/portfowardutility/Configur...
true
true
public Configuration getConfiguration() throws FileNotFoundException, IllegalConfigurationException, IOException { BufferedReader br = null; try { br = new BufferedReader(new FileReader(filePath)); Configuration configuration = new Configuration(); L...
public Configuration getConfiguration() throws FileNotFoundException, IllegalConfigurationException, IOException { BufferedReader br = null; try { br = new BufferedReader(new FileReader(filePath)); Configuration configuration = new Configuration(); L...
diff --git a/src/com/minecarts/verrier/lockdown/Lockdown.java b/src/com/minecarts/verrier/lockdown/Lockdown.java index 415e5b3..a526136 100644 --- a/src/com/minecarts/verrier/lockdown/Lockdown.java +++ b/src/com/minecarts/verrier/lockdown/Lockdown.java @@ -1,207 +1,206 @@ package com.minecarts.verrier.lockdown; imp...
false
true
public void onEnable(){ PluginDescriptionFile pdf = getDescription(); log.info("[" + pdf.getName() + "] version " + pdf.getVersion() + " enabled."); pluginManager = getServer().getPluginManager(); loadConfig(); // Start the world in lockdown mode? if(config.getBoolean("locked", false)) { lock(...
public void onEnable(){ PluginDescriptionFile pdf = getDescription(); log.info("[" + pdf.getName() + "] version " + pdf.getVersion() + " enabled."); pluginManager = getServer().getPluginManager(); loadConfig(); // Start the world in lockdown mode? if(config.getBoolean("locked", false)) { lock(...
diff --git a/src/com/github/LeoVerto/Fact/Fact.java b/src/com/github/LeoVerto/Fact/Fact.java index 6c03383..6d7693e 100644 --- a/src/com/github/LeoVerto/Fact/Fact.java +++ b/src/com/github/LeoVerto/Fact/Fact.java @@ -1,170 +1,172 @@ package com.github.LeoVerto.Fact; import java.util.Arrays; import java.util.HashSe...
true
true
public boolean onCommand(final CommandSender sender, final Command cmd, final String commandLabel, final String[] args) { if (cmd.getName().equalsIgnoreCase("fact")) { //Reload command if (args[0].equalsIgnoreCase("reload")) { if ((sender instanceof Player)) { final Player player = (Player) sender; ...
public boolean onCommand(final CommandSender sender, final Command cmd, final String commandLabel, final String[] args) { if (cmd.getName().equalsIgnoreCase("fact")) { //Reload command if (args[0].equalsIgnoreCase("reload")) { if ((sender instanceof Player)) { final Player player = (Player) sender; ...
diff --git a/src/org/mozilla/javascript/DefaultErrorReporter.java b/src/org/mozilla/javascript/DefaultErrorReporter.java index 17ad79ac..c7d93d48 100644 --- a/src/org/mozilla/javascript/DefaultErrorReporter.java +++ b/src/org/mozilla/javascript/DefaultErrorReporter.java @@ -1,102 +1,113 @@ /* -*- Mode: java; tab-width...
true
true
public void error(String message, String sourceURI, int line, String lineText, int lineOffset) { if (forEval) { throw ScriptRuntime.constructError( "SyntaxError", message, sourceURI, line, lineText, lineOffset); } if (chainedReporter != n...
public void error(String message, String sourceURI, int line, String lineText, int lineOffset) { if (forEval) { // Assume error message strings that start with "TypeError: " // should become TypeError exceptions. A bit of a hack, but we // don't ...
diff --git a/apt/src/main/java/com/bloatit/framework/webprocessor/annotations/MessageFormater.java b/apt/src/main/java/com/bloatit/framework/webprocessor/annotations/MessageFormater.java index 5f13ab415..a528faeb9 100644 --- a/apt/src/main/java/com/bloatit/framework/webprocessor/annotations/MessageFormater.java +++ b/a...
false
true
public String format(final String message) { String errorMsg = message; for (final Entry<String, String> formatter : params.entrySet()) { if (!formatter.getValue().isEmpty()) { errorMsg = message.replaceAll(formatter.getKey(), Matcher.quoteReplacement(formatter.getValue()...
public String format(final String message) { String errorMsg = message; for (final Entry<String, String> formatter : params.entrySet()) { if (!formatter.getValue().isEmpty()) { errorMsg = errorMsg.replaceAll(formatter.getKey(), Matcher.quoteReplacement(formatter.getValue(...
diff --git a/src/gwt/src/org/rstudio/studio/client/pdfviewer/pdfjs/PDFView.java b/src/gwt/src/org/rstudio/studio/client/pdfviewer/pdfjs/PDFView.java index 468210a15a..b31ddf2e8a 100644 --- a/src/gwt/src/org/rstudio/studio/client/pdfviewer/pdfjs/PDFView.java +++ b/src/gwt/src/org/rstudio/studio/client/pdfviewer/pdfjs/PD...
true
true
public native static void initializeEvents() /*-{ var _load = $wnd.PDFView.load; $wnd.PDFView.load = $entry(function(data, scale) { _load.call($wnd.PDFView, data, scale); @org.rstudio.studio.client.pdfviewer.pdfjs.PDFView::firePDFLoadEvent()(); }); $wnd.addEventListener( ...
public native static void initializeEvents() /*-{ var _setInitialView = $wnd.PDFView.setInitialView; $wnd.PDFView.setInitialView = $entry(function(storedHash, scale) { _setInitialView.call($wnd.PDFView, storedHash, scale); @org.rstudio.studio.client.pdfviewer.pdfjs.PDFView::firePDFLoad...
diff --git a/app/domainservices/RandomHorsesBreeder.java b/app/domainservices/RandomHorsesBreeder.java index 64b0074..9f25b8a 100644 --- a/app/domainservices/RandomHorsesBreeder.java +++ b/app/domainservices/RandomHorsesBreeder.java @@ -1,42 +1,42 @@ package domainservices; import models.Horse; import models.Horse...
true
true
public Horse createRandomHorse() { if (allRandomHorsesAreExhausted()) { throw new RuntimeException("All horses exhausted. Couldn't breed new horse!"); } List<HorseNamePrefix> horsePrefixes = HorseNamePrefix.findAll(); List<HorseNameSuffix> horseSuffixes = HorseNameSuffix.findAll(); Random random = new R...
public Horse createRandomHorse() { if (allRandomHorsesAreExhausted()) { throw new RuntimeException("All horses exhausted. Couldn't breed new horse!"); } List<HorseNamePrefix> horsePrefixes = HorseNamePrefix.findAll(); List<HorseNameSuffix> horseSuffixes = HorseNameSuffix.findAll(); Random random = new R...
diff --git a/code/src/presenter/ui/editor/EditDialog.java b/code/src/presenter/ui/editor/EditDialog.java index 9b8b3e3..a4bfc8d 100644 --- a/code/src/presenter/ui/editor/EditDialog.java +++ b/code/src/presenter/ui/editor/EditDialog.java @@ -1,203 +1,204 @@ package presenter.ui.editor; import java.io.File; import...
true
true
protected Control createToolBarControl(Composite parent) { ToolBar toolbar = (ToolBar) super.createToolBarControl(parent); ToolItem addButton = new ToolItem(toolbar, SWT.PUSH); addButton.setText("add"); addButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(Selecti...
protected Control createToolBarControl(Composite parent) { ToolBar toolbar = (ToolBar) super.createToolBarControl(parent); ToolItem addButton = new ToolItem(toolbar, SWT.PUSH); addButton.setText("add"); addButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(Selecti...
diff --git a/src/main/org/codehaus/groovy/transform/ImmutableASTTransformation.java b/src/main/org/codehaus/groovy/transform/ImmutableASTTransformation.java index 9cdc6ed9f..87e9a6a9b 100644 --- a/src/main/org/codehaus/groovy/transform/ImmutableASTTransformation.java +++ b/src/main/org/codehaus/groovy/transform/Immutab...
true
true
public void visit(ASTNode[] nodes, SourceUnit source) { if (!(nodes[0] instanceof AnnotationNode) || !(nodes[1] instanceof AnnotatedNode)) { throw new RuntimeException("Internal error: wrong types: $node.class / $parent.class"); } AnnotatedNode parent = (AnnotatedNode) nodes[1];...
public void visit(ASTNode[] nodes, SourceUnit source) { if (nodes.length != 2 || !(nodes[0] instanceof AnnotationNode) || !(nodes[1] instanceof AnnotatedNode)) { throw new RuntimeException("Internal error: expecting [AnnotationNode, AnnotatedClass] but got: " + Arrays.asList(nodes)); } ...
diff --git a/opentaps/opentaps-common/src/base/org/opentaps/common/widget/screen/ScreenHelper.java b/opentaps/opentaps-common/src/base/org/opentaps/common/widget/screen/ScreenHelper.java index a89614e95..a6f4cdfe1 100644 --- a/opentaps/opentaps-common/src/base/org/opentaps/common/widget/screen/ScreenHelper.java +++ b/o...
true
true
public static String renderScreenLocationAsText(String screenLocation, Delegator delegator, LocalDispatcher dispatcher, Security security, Map<String, Object> screenContext, Map<String, Object> screenParameters) throws GeneralException, IOException, SAXException, ParserConfigurationException { // Construc...
public static String renderScreenLocationAsText(String screenLocation, Delegator delegator, LocalDispatcher dispatcher, Security security, Map<String, Object> screenContext, Map<String, Object> screenParameters) throws GeneralException, IOException, SAXException, ParserConfigurationException { // Construc...
diff --git a/src/ar/edu/it/itba/pdc/v2/implementations/utils/DecoderImpl.java b/src/ar/edu/it/itba/pdc/v2/implementations/utils/DecoderImpl.java index 5c0b2df..07422a9 100755 --- a/src/ar/edu/it/itba/pdc/v2/implementations/utils/DecoderImpl.java +++ b/src/ar/edu/it/itba/pdc/v2/implementations/utils/DecoderImpl.java @@ ...
false
true
public synchronized void analize(byte[] bytes, int count) { if (!headers.contentExpected()) { keepReadingBytes = 0; read = false; return; } String[] array = headers.getHeader("Content-Type").split(";"); String charset; if (array.length >= 2) charset = array[1].split("=")[1]; else charset = "...
public synchronized void analize(byte[] bytes, int count) { if (!headers.contentExpected()) { keepReadingBytes = 0; read = false; return; } String[] array = null; String charset; if (headers.getHeader("Content-Type") != null) { array = headers.getHeader("Content-Type").split(";"); } if (array...
diff --git a/src/contributions/resources/policymanager/src/java/org/wyona/yanel/impl/resources/policymanager/PolicyManagerResource.java b/src/contributions/resources/policymanager/src/java/org/wyona/yanel/impl/resources/policymanager/PolicyManagerResource.java index bd76b28ae..858e728e8 100644 --- a/src/contributions/r...
false
true
protected InputStream getContentXML(String viewId) throws Exception { // For example ?policy-path=/foo/bar.html String policyPath = request.getParameter(PARAMETER_EDIT_PATH); if (policyPath == null) { log.error("No policy path specified! Please specify a policy path, e....
protected InputStream getContentXML(String viewId) throws Exception { // For example ?policy-path=/foo/bar.html String policyPath = request.getParameter(PARAMETER_EDIT_PATH); if (policyPath == null) { log.warn("No policy path specified, e.g. ?policy-path=/foo/bar.html")...
diff --git a/psl-rewriter/src/main/java/edu/umd/cs/linqs/embers/JointPredictionTester.java b/psl-rewriter/src/main/java/edu/umd/cs/linqs/embers/JointPredictionTester.java index 290f3b6..c056b18 100644 --- a/psl-rewriter/src/main/java/edu/umd/cs/linqs/embers/JointPredictionTester.java +++ b/psl-rewriter/src/main/java/ed...
false
true
public static void main(String [] args) { if (args.length < 3) throw new IllegalArgumentException("Usage: JointPredictionTester <input_json_file> <output_json_file> <optional_model>"); try { Scanner scanner = new Scanner(new File(args[0])); FileWriter fw; fw = new FileWriter(new File(args[1])); ...
public static void main(String [] args) { if (args.length < 2) throw new IllegalArgumentException("Usage: JointPredictionTester <input_json_file> <output_json_file> <optional_model>"); try { Scanner scanner = new Scanner(new File(args[0])); FileWriter fw; fw = new FileWriter(new File(args[1])); ...
diff --git a/src/view/pokemetrics/PokeGenerationsPanel.java b/src/view/pokemetrics/PokeGenerationsPanel.java index dc6b5c4..d6edbfc 100644 --- a/src/view/pokemetrics/PokeGenerationsPanel.java +++ b/src/view/pokemetrics/PokeGenerationsPanel.java @@ -1,302 +1,307 @@ package view.pokemetrics; import java.awt.Dimension...
true
true
private void initComponents(){ jta = new JTextArea(DEFAULT); jta.setPreferredSize(new Dimension(90,30)); table = new JTable(); jsp = new JScrollPane(table); table.getTableHeader().setReorderingAllowed(false); jsp.setPreferredSize(new Dimension(160,200)); metricsBtn = new JButton("Base Stats"); genBtn =...
private void initComponents(){ jta = new JTextArea(DEFAULT); jta.setPreferredSize(new Dimension(90,30)); table = new JTable(); jsp = new JScrollPane(table); table.getTableHeader().setReorderingAllowed(false); jsp.setPreferredSize(new Dimension(160,200)); metricsBtn = new JButton("Base Stats"); genBtn =...
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListDropAdapter.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListDropAdapter.java index 1d7683817..078d5e3f1 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/vi...
true
true
public boolean performDrop(Object data) { Object currentTarget = getCurrentTarget(); List<AbstractTask> tasksToMove = new ArrayList<AbstractTask>(); ISelection selection = ((TreeViewer) getViewer()).getSelection(); if (isUrl(data) && createTaskFromUrl(data)) { tasksToMove.add(newTask); } else if (TaskTran...
public boolean performDrop(Object data) { Object currentTarget = getCurrentTarget(); List<AbstractTask> tasksToMove = new ArrayList<AbstractTask>(); ISelection selection = ((TreeViewer) getViewer()).getSelection(); if (isUrl(data) && createTaskFromUrl(data)) { tasksToMove.add(newTask); } else if (TaskTran...
diff --git a/src/com/android/browser/CombinedBookmarkHistoryView.java b/src/com/android/browser/CombinedBookmarkHistoryView.java index 184314e1..4b3e6d84 100644 --- a/src/com/android/browser/CombinedBookmarkHistoryView.java +++ b/src/com/android/browser/CombinedBookmarkHistoryView.java @@ -1,392 +1,396 @@ /* * Copyr...
true
true
public CombinedBookmarkHistoryView(Activity activity, UiController controller, ComboViews startingView, Bundle extras) { super(activity); mUiController = controller; mActivity = activity; mExtras = extras; mActionBar = mActivity.getActionBar(); View v = L...
public CombinedBookmarkHistoryView(Activity activity, UiController controller, ComboViews startingView, Bundle extras) { super(activity); mUiController = controller; mActivity = activity; mExtras = extras; mActionBar = mActivity.getActionBar(); View v = L...
diff --git a/src/Powerup.java b/src/Powerup.java index 20eb50a..2fc4bd2 100644 --- a/src/Powerup.java +++ b/src/Powerup.java @@ -1,26 +1,26 @@ import org.newdawn.slick.Image; import org.newdawn.slick.geom.Shape; import org.newdawn.slick.geom.Vector2f; /** * A class that implements a screen object that gives adv...
true
true
public Powerup(String name, Image image, Vector2f position, Shape collisionShape) { super(name, image, position, collisionShape); }
public Powerup(String name, Image image, Vector2f position, Shape collisionShape, int speed) { super(name, image, position, collisionShape, speed); }
diff --git a/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java b/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java index 7cfc44bd7..d9bff0f45 100644 --- a/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java +++ b/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java @@ -1,4604 +1,4604 @@ /* * Licensed to t...
true
true
Augmentations handleStartElement(QName element, XMLAttributes attributes, Augmentations augs) { if (DEBUG) { System.out.println("==>handleStartElement: " + element); } // root element if (fElementDepth == -1 && fValidationManager.isGrammarFound()) { if (fSch...
Augmentations handleStartElement(QName element, XMLAttributes attributes, Augmentations augs) { if (DEBUG) { System.out.println("==>handleStartElement: " + element); } // root element if (fElementDepth == -1 && fValidationManager.isGrammarFound()) { if (fSch...
diff --git a/astrid/src/com/todoroo/astrid/utility/AstridLitePreferenceSpec.java b/astrid/src/com/todoroo/astrid/utility/AstridLitePreferenceSpec.java index 70d6a487e..ac4a05ef5 100644 --- a/astrid/src/com/todoroo/astrid/utility/AstridLitePreferenceSpec.java +++ b/astrid/src/com/todoroo/astrid/utility/AstridLitePrefere...
true
true
private static void setPrefs(PreferenceExtras extras, boolean ifUnset) { Context context = ContextManager.getContext(); SharedPreferences prefs = Preferences.getPrefs(context); Editor editor = prefs.edit(); Resources r = context.getResources(); setPreference(prefs, editor, r...
private static void setPrefs(PreferenceExtras extras, boolean ifUnset) { Context context = ContextManager.getContext(); SharedPreferences prefs = Preferences.getPrefs(context); Editor editor = prefs.edit(); Resources r = context.getResources(); setPreference(prefs, editor, r...