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/main/java/com/server/HandleUDP.java b/src/main/java/com/server/HandleUDP.java index f31ab2a..16f35f1 100644 --- a/src/main/java/com/server/HandleUDP.java +++ b/src/main/java/com/server/HandleUDP.java @@ -1,183 +1,184 @@ package com.server; import java.net.*; import java.io.*; import java.util.*; ...
true
true
private void uploadBlackHole(){ double length = 0.0; addressTable = new HashMap<String, TimeStampValue>(); try{ //build a buffer for holding the packets. byte[] buf = new byte[MAXIMUM_PACKET_SIZE]; //make a new packet object DatagramPacket packet = new DatagramPacket(buf, buf.length); //wait unt...
private void uploadBlackHole(){ double length = 0.0; addressTable = new HashMap<String, TimeStampValue>(); try{ //build a buffer for holding the packets. byte[] buf = new byte[MAXIMUM_PACKET_SIZE]; //make a new packet object DatagramPacket packet = new DatagramPacket(buf, buf.length); //wait unt...
diff --git a/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/xobject/PDJpeg.java b/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/xobject/PDJpeg.java index 0b50a261..59874ea2 100644 --- a/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/xobject/PDJpeg.java +++ b/pdfbox/src/main/java/org/apache/p...
false
true
public BufferedImage getRGBImage() throws IOException { if (image != null) { return image; } BufferedImage bi = null; boolean readError = false; ByteArrayOutputStream os = new ByteArrayOutputStream(); removeAllFiltersButDCT(os); ...
public BufferedImage getRGBImage() throws IOException { if (image != null) { // use the cached image return image; } BufferedImage bi = null; boolean readError = false; ByteArrayOutputStream os = new ByteArrayOutputStream(); ...
diff --git a/core/src/com/google/zxing/qrcode/decoder/DecodedBitStreamParser.java b/core/src/com/google/zxing/qrcode/decoder/DecodedBitStreamParser.java index f271ac34..e69ca8d5 100644 --- a/core/src/com/google/zxing/qrcode/decoder/DecodedBitStreamParser.java +++ b/core/src/com/google/zxing/qrcode/decoder/DecodedBitStr...
true
true
private static String guessEncoding(byte[] bytes) { if (ASSUME_SHIFT_JIS) { return SHIFT_JIS; } // Does it start with the UTF-8 byte order mark? then guess it's UTF-8 if (bytes.length > 3 && bytes[0] == (byte) 0xEF && bytes[1] == (byte) 0xBB && bytes[2] == (byte) 0xBF) { return UTF8; }...
private static String guessEncoding(byte[] bytes) { if (ASSUME_SHIFT_JIS) { return SHIFT_JIS; } // Does it start with the UTF-8 byte order mark? then guess it's UTF-8 if (bytes.length > 3 && bytes[0] == (byte) 0xEF && bytes[1] == (byte) 0xBB && bytes[2] == (byte) 0xBF) { return UTF8; }...
diff --git a/src/org/mozilla/javascript/optimizer/Optimizer.java b/src/org/mozilla/javascript/optimizer/Optimizer.java index 55294307..746bd0dd 100644 --- a/src/org/mozilla/javascript/optimizer/Optimizer.java +++ b/src/org/mozilla/javascript/optimizer/Optimizer.java @@ -1,507 +1,510 @@ /* ***** BEGIN LICENSE BLOCK ***...
true
true
private int rewriteForNumberVariables(Node n, int desired) { switch (n.getType()) { case Token.EXPR_VOID : { Node child = n.getFirstChild(); int type = rewriteForNumberVariables(child, NumberType); if (type == NumberType) ...
private int rewriteForNumberVariables(Node n, int desired) { switch (n.getType()) { case Token.EXPR_VOID : { Node child = n.getFirstChild(); int type = rewriteForNumberVariables(child, NumberType); if (type == NumberType) ...
diff --git a/public/java/src/org/broadinstitute/sting/gatk/walkers/annotator/VariantAnnotator.java b/public/java/src/org/broadinstitute/sting/gatk/walkers/annotator/VariantAnnotator.java index 20e72dd57..c9ea7a3b5 100755 --- a/public/java/src/org/broadinstitute/sting/gatk/walkers/annotator/VariantAnnotator.java +++ b/p...
false
true
public void initialize() { if ( LIST ) listAnnotationsAndExit(); // get the list of all sample names from the variant VCF input rod, if applicable List<String> rodName = Arrays.asList(variantCollection.variants.getName()); Set<String> samples = SampleUtils.getUniqueSamp...
public void initialize() { if ( LIST ) listAnnotationsAndExit(); // get the list of all sample names from the variant VCF input rod, if applicable List<String> rodName = Arrays.asList(variantCollection.variants.getName()); Set<String> samples = SampleUtils.getUniqueSamp...
diff --git a/main/adapter/src/main/java/net/java/messageapi/adapter/PojoInvoker.java b/main/adapter/src/main/java/net/java/messageapi/adapter/PojoInvoker.java index 56d6566..5643164 100644 --- a/main/adapter/src/main/java/net/java/messageapi/adapter/PojoInvoker.java +++ b/main/adapter/src/main/java/net/java/messageapi/...
false
true
public void invoke(Object pojo) { log.debug("invoke for {}", pojo); PojoProperties pojoProperties = PojoProperties.of(pojo); String methodName = getMethodNameFor(pojo); log.debug("search {} with {}", methodName, pojoProperties); for (Method method : api.getMethods()) { ...
public void invoke(Object pojo) { log.trace("invoke for {}", pojo); PojoProperties pojoProperties = PojoProperties.of(pojo); String methodName = getMethodNameFor(pojo); log.trace("search {} with {}", methodName, pojoProperties); for (Method method : api.getMethods()) { ...
diff --git a/src/test/java/npanday/its/NPandayIT9903ResGenWithErrorInFileNameTest.java b/src/test/java/npanday/its/NPandayIT9903ResGenWithErrorInFileNameTest.java index 3be3e54..fc6576e 100644 --- a/src/test/java/npanday/its/NPandayIT9903ResGenWithErrorInFileNameTest.java +++ b/src/test/java/npanday/its/NPandayIT9903Re...
true
true
public void testResGenWithErrorInFileName() throws Exception { File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/npanday-9903" ); Verifier verifier = getVerifier( testDir ); verifier.executeGoal( "install" ); verifier.assertFilePresent( new File( "npa...
public void testResGenWithErrorInFileName() throws Exception { File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/npanday-9903" ); Verifier verifier = getVerifier( testDir ); verifier.executeGoal( "install" ); verifier.assertFilePresent( new File( test...
diff --git a/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/cluster/ClusterViewServiceImpl.java b/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/cluster/ClusterViewServiceImpl.java index e817af8d78..816efb91c5 100644 --- a/bundles/extensions/discovery/im...
true
true
public ClusterView getClusterView() { if (resourceResolverFactory==null) { logger.warn("getClusterView: no resourceResolverFactory set at the moment."); return null; } ResourceResolver resourceResolver = null; try { resourceResolver = resourceResolverFactory ...
public ClusterView getClusterView() { if (resourceResolverFactory==null) { logger.warn("getClusterView: no resourceResolverFactory set at the moment."); return null; } ResourceResolver resourceResolver = null; try { resourceResolver = resourceResolverFactory ...
diff --git a/src/SearchController.java b/src/SearchController.java index 5555b3e..034f8a7 100644 --- a/src/SearchController.java +++ b/src/SearchController.java @@ -1,92 +1,96 @@ package ca.awesome; import javax.servlet.*; import javax.servlet.http.*; import java.sql.*; import java.util.Collection; import java....
true
true
public boolean doSearch() { query = new SearchQuery(request.getParameter(QUERY_FIELD), parseDateOrGetNull(request.getParameter(START_FIELD)), parseDateOrGetNull(request.getParameter(END_FIELD))); String rankBy = request.getParameter(RANKING_FIELD); if (rankBy != null && rankBy.equals("DATE_ASC")) { qu...
public boolean doSearch() { query = new SearchQuery(request.getParameter(QUERY_FIELD), parseDateOrGetNull(request.getParameter(START_FIELD)), parseDateOrGetNull(request.getParameter(END_FIELD))); String rankBy = request.getParameter(RANKING_FIELD); if (rankBy != null && rankBy.equals("DATE_ASC")) { qu...
diff --git a/src/jipdbs/web/SearchServlet.java b/src/jipdbs/web/SearchServlet.java index 8e4c414..ca3082d 100644 --- a/src/jipdbs/web/SearchServlet.java +++ b/src/jipdbs/web/SearchServlet.java @@ -1,145 +1,145 @@ package jipdbs.web; import java.io.IOException; import java.util.ArrayList; import java.util.List; i...
false
true
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { int page = 1; int pageSize = DEFAULT_PAGE_SIZE; try { page = Integer.parseInt(req.getParameter("p")); } catch (NumberFormatException e) { // Ignore. } try { pageSize = Integer.parseI...
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { int page = 1; int pageSize = DEFAULT_PAGE_SIZE; try { page = Integer.parseInt(req.getParameter("p")); } catch (NumberFormatException e) { // Ignore. } try { pageSize = Integer.parseI...
diff --git a/perftest/src/test/org/apache/ftpserver/perftest/PerformanceTestTemplate.java b/perftest/src/test/org/apache/ftpserver/perftest/PerformanceTestTemplate.java index 64fcb77d..75b33822 100644 --- a/perftest/src/test/org/apache/ftpserver/perftest/PerformanceTestTemplate.java +++ b/perftest/src/test/org/apache/f...
false
true
protected Properties createDefaultConfig() { assertTrue(USERS_FILE.getAbsolutePath() + " must exist", USERS_FILE .exists()); Properties configProps = new Properties(); configProps.setProperty("serverContext.socket-factory.port", Integer .toString(port)); ...
protected Properties createDefaultConfig() { assertTrue(USERS_FILE.getAbsolutePath() + " must exist", USERS_FILE .exists()); Properties configProps = new Properties(); configProps.setProperty("config.socket-factory.port", Integer .toString(port)); con...
diff --git a/src/helpers/Evaluator.java b/src/helpers/Evaluator.java index 5cb2799..8bff72d 100644 --- a/src/helpers/Evaluator.java +++ b/src/helpers/Evaluator.java @@ -1,107 +1,108 @@ package helpers; import java.io.FileNotFoundException; import java.io.IOException; import java.sql.ResultSet; import java.sql.SQ...
false
true
public void makeLine(boolean isTest, double training_error, ChainParams chainPars, BasicNeuralDataSet dataSet, Statement sqlStatement, long chainId) throws SQLException { DataMapper dataMapper = dataLoader.getMapper(); PerfResults perf = this.technique.testPerformance(dataSet, dataMapper,false); sqlStatement.exe...
public void makeLine(boolean isTest, double trainingError, ChainParams chainPars, BasicNeuralDataSet dataSet, Statement sqlStatement, long chainId) throws SQLException { DataMapper dataMapper = dataLoader.getMapper(); PerfResults perf = this.technique.testPerformance(dataSet, dataMapper,false); sqlStatement.exec...
diff --git a/src/com/android/exchange/eas/EasOperation.java b/src/com/android/exchange/eas/EasOperation.java index 6d615d77..1c695e08 100644 --- a/src/com/android/exchange/eas/EasOperation.java +++ b/src/com/android/exchange/eas/EasOperation.java @@ -1,554 +1,556 @@ /* * Copyright (C) 2013 The Android Open Source Pr...
false
true
protected final int performOperation(final SyncResult syncResult) { // We handle server redirects by looping, but we need to protect against too much looping. int redirectCount = 0; do { // Perform the HTTP request and handle exceptions. final EasResponse response; ...
protected final int performOperation(final SyncResult syncResult) { // We handle server redirects by looping, but we need to protect against too much looping. int redirectCount = 0; do { // Perform the HTTP request and handle exceptions. final EasResponse response; ...
diff --git a/ItineRennes/src/fr/itinerennes/ui/activity/BusStationActivity.java b/ItineRennes/src/fr/itinerennes/ui/activity/BusStationActivity.java index 2450d1f..f65a891 100644 --- a/ItineRennes/src/fr/itinerennes/ui/activity/BusStationActivity.java +++ b/ItineRennes/src/fr/itinerennes/ui/activity/BusStationActivity....
true
true
protected void onResume() { super.onResume(); final DatabaseHelper dbHelper = new DatabaseHelper(getBaseContext()); busService = new BusService(dbHelper.getWritableDatabase()); busRouteService = new BusRouteService(dbHelper.getWritableDatabase()); busDepartureService = new ...
protected void onResume() { super.onResume(); final DatabaseHelper dbHelper = new DatabaseHelper(getBaseContext()); busService = new BusService(dbHelper.getWritableDatabase()); busRouteService = new BusRouteService(dbHelper.getWritableDatabase()); busDepartureService = new ...
diff --git a/src/main/java/dk/frv/eavdam/utils/RoundCoverage.java b/src/main/java/dk/frv/eavdam/utils/RoundCoverage.java index fef3786..6a4df9e 100644 --- a/src/main/java/dk/frv/eavdam/utils/RoundCoverage.java +++ b/src/main/java/dk/frv/eavdam/utils/RoundCoverage.java @@ -1,332 +1,332 @@ package dk.frv.eavdam.utils; ...
true
true
public static List<double[]> getRoundInterferenceCoverage(double antennaHeight, double receiverHeight, double centerLat, double centerLon, double heading, double fieldOfViewAngle, int numberOfPoints){ List<double[]> points = new ArrayList<double[]>(); double radius1 = getRoundCoverageRadius(antennaHeight, receiv...
public static List<double[]> getRoundInterferenceCoverage(double antennaHeight, double receiverHeight, double centerLat, double centerLon, double heading, double fieldOfViewAngle, int numberOfPoints){ List<double[]> points = new ArrayList<double[]>(); double radius1 = getRoundCoverageRadius(antennaHeight, receiv...
diff --git a/core/src/main/java/org/springframework/security/config/HttpSecurityBeanDefinitionParser.java b/core/src/main/java/org/springframework/security/config/HttpSecurityBeanDefinitionParser.java index bfa42b552..cef6812ba 100644 --- a/core/src/main/java/org/springframework/security/config/HttpSecurityBeanDefiniti...
true
true
public BeanDefinition parse(Element element, ParserContext parserContext) { BeanDefinitionRegistry registry = parserContext.getRegistry(); RootBeanDefinition filterChainProxy = new RootBeanDefinition(FilterChainProxy.class); RootBeanDefinition httpScif = new RootBeanDefinition(HttpSessionCon...
public BeanDefinition parse(Element element, ParserContext parserContext) { BeanDefinitionRegistry registry = parserContext.getRegistry(); RootBeanDefinition filterChainProxy = new RootBeanDefinition(FilterChainProxy.class); RootBeanDefinition httpScif = new RootBeanDefinition(HttpSessionCon...
diff --git a/jamwiki-web/src/main/java/org/jamwiki/db/WikiDatabase.java b/jamwiki-web/src/main/java/org/jamwiki/db/WikiDatabase.java index a26bf32f..4aa714ac 100644 --- a/jamwiki-web/src/main/java/org/jamwiki/db/WikiDatabase.java +++ b/jamwiki-web/src/main/java/org/jamwiki/db/WikiDatabase.java @@ -1,403 +1,421 @@ /** ...
false
true
public static void exportToCsv() throws Exception { if (!(WikiBase.getDataHandler() instanceof HSqlDataHandler)) { throw new IllegalStateException("Exporting to CSV is allowed only when the wiki is configured to use the internal database setting."); } Connection conn = null; WikiPreparedStatement stmt = nul...
public static void exportToCsv() throws Exception { if (!(WikiBase.getDataHandler() instanceof HSqlDataHandler)) { throw new IllegalStateException("Exporting to CSV is allowed only when the wiki is configured to use the internal database setting."); } Connection conn = null; WikiPreparedStatement stmt = nul...
diff --git a/core/src/main/java/hudson/maven/reporters/SurefireArchiver.java b/core/src/main/java/hudson/maven/reporters/SurefireArchiver.java index 69f2cfafb..385ff9213 100644 --- a/core/src/main/java/hudson/maven/reporters/SurefireArchiver.java +++ b/core/src/main/java/hudson/maven/reporters/SurefireArchiver.java @@ ...
true
true
public boolean postExecute(MavenBuildProxy build, MavenProject pom, MojoInfo mojo, final BuildListener listener, Throwable error) throws InterruptedException, IOException { if (!isSurefireTest(mojo)) return true; listener.getLogger().println(Messages.SurefireArchiver_Recording()); File rep...
public boolean postExecute(MavenBuildProxy build, MavenProject pom, MojoInfo mojo, final BuildListener listener, Throwable error) throws InterruptedException, IOException { if (!isSurefireTest(mojo)) return true; listener.getLogger().println(Messages.SurefireArchiver_Recording()); File rep...
diff --git a/core/src/visad/trunk/ShadowFunctionOrSetType.java b/core/src/visad/trunk/ShadowFunctionOrSetType.java index 52341aea1..f253c1dbc 100644 --- a/core/src/visad/trunk/ShadowFunctionOrSetType.java +++ b/core/src/visad/trunk/ShadowFunctionOrSetType.java @@ -1,3338 +1,3348 @@ // // ShadowFunctionOrSetType.java ...
false
true
public boolean doTransform(Object group, Data data, float[] value_array, float[] default_values, DataRenderer renderer, ShadowType shadow_api) throws VisADException, RemoteException { // return if data is missing or no ScalarMaps if (data.isM...
public boolean doTransform(Object group, Data data, float[] value_array, float[] default_values, DataRenderer renderer, ShadowType shadow_api) throws VisADException, RemoteException { // return if data is missing or no ScalarMaps if (data.isM...
diff --git a/src/main/java/net/aufdemrand/denizen/objects/dPlayer.java b/src/main/java/net/aufdemrand/denizen/objects/dPlayer.java index 13ce7a328..b579c46c6 100644 --- a/src/main/java/net/aufdemrand/denizen/objects/dPlayer.java +++ b/src/main/java/net/aufdemrand/denizen/objects/dPlayer.java @@ -1,1016 +1,1017 @@ pack...
true
true
public String getAttribute(Attribute attribute) { if (attribute == null) return "null"; if (player_name == null) return "null"; ///////////////////// // OFFLINE ATTRIBUTES ///////////////// ///////////////////// // DEBUG ATTRIBUTES /////////////...
public String getAttribute(Attribute attribute) { if (attribute == null) return "null"; if (player_name == null) return "null"; ///////////////////// // OFFLINE ATTRIBUTES ///////////////// ///////////////////// // DEBUG ATTRIBUTES /////////////...
diff --git a/src/com/dmdirc/parser/irc/ProcessListModes.java b/src/com/dmdirc/parser/irc/ProcessListModes.java index 9a640acdf..1008d19a2 100644 --- a/src/com/dmdirc/parser/irc/ProcessListModes.java +++ b/src/com/dmdirc/parser/irc/ProcessListModes.java @@ -1,241 +1,241 @@ /* * Copyright (c) 2006-2009 Chris Smith, Sh...
true
true
public void process(String sParam, String[] token) { ChannelInfo channel = getChannelInfo(token[3]); String thisIRCD = myParser.getIRCD(true).toLowerCase(); String item = ""; String owner = ""; byte tokenStart = 4; // Where do the relevent tokens start? boolean isCleverMode = false; long time = 0; char...
public void process(String sParam, String[] token) { ChannelInfo channel = getChannelInfo(token[3]); String thisIRCD = myParser.getIRCD(true).toLowerCase(); String item = ""; String owner = ""; byte tokenStart = 4; // Where do the relevent tokens start? boolean isCleverMode = false; long time = 0; char...
diff --git a/openejb2/modules/openejb-core/src/main/java/org/apache/openejb/corba/NameService.java b/openejb2/modules/openejb-core/src/main/java/org/apache/openejb/corba/NameService.java index 99279d2ce..ed55b8f8c 100644 --- a/openejb2/modules/openejb-core/src/main/java/org/apache/openejb/corba/NameService.java +++ b/o...
true
true
public NameService(ServerInfo serverInfo, ConfigAdapter config, String host, int port) throws Exception { this.host = host; this.port = port; this.config = config; localServer = true; service = null; // if not specified, our default host is "localhost". if (ho...
public NameService(ServerInfo serverInfo, ConfigAdapter config, String host, int port) throws Exception { this.host = host; this.port = port; this.config = config; localServer = true; service = null; // if not specified, our default host is "localhost". if (th...
diff --git a/src/com/mycompany/reservationsystem/peer/client/booking/BookingClientWorker.java b/src/com/mycompany/reservationsystem/peer/client/booking/BookingClientWorker.java index 933edf1..106439c 100644 --- a/src/com/mycompany/reservationsystem/peer/client/booking/BookingClientWorker.java +++ b/src/com/mycompany/re...
true
true
public void run(){ try{ requestSocket = new Socket(this.ipAddress, PORT_NUMBER); out = new ObjectOutputStream(requestSocket.getOutputStream()); out.flush(); in = new ObjectInputStream(requestSocket.getInputStream()); while(isFinished == false){ sendMessage(COMMUNICATION_MESSAGES.TRANSACT...
public void run(){ try{ requestSocket = new Socket(this.ipAddress, PORT_NUMBER); out = new ObjectOutputStream(requestSocket.getOutputStream()); out.flush(); in = new ObjectInputStream(requestSocket.getInputStream()); while(isFinished == false){ sendMessage(COMMUNICATION_MESSAGES.TRANSACT...
diff --git a/src/jpcsp/graphics/VideoEngine.java b/src/jpcsp/graphics/VideoEngine.java index 5abe47b8..e32d69b0 100644 --- a/src/jpcsp/graphics/VideoEngine.java +++ b/src/jpcsp/graphics/VideoEngine.java @@ -1,2413 +1,2418 @@ /* Parts based on soywiz's pspemulator. This file is part of jpcsp. Jpcsp is free softw...
true
true
public void executeCommand(int instruction) { int normalArgument = intArgument(instruction); float floatArgument = floatArgument(instruction); switch (command(instruction)) { case END: listHasEnded = true; log(helper.getCommandString(END)); ...
public void executeCommand(int instruction) { int normalArgument = intArgument(instruction); float floatArgument = floatArgument(instruction); switch (command(instruction)) { case END: listHasEnded = true; log(helper.getCommandString(END)); ...
diff --git a/org.amanzi.scripting.jruby/src/org/amanzi/scripting/jruby/ScriptUtils.java b/org.amanzi.scripting.jruby/src/org/amanzi/scripting/jruby/ScriptUtils.java index 74eea7295..c5e7c57a2 100644 --- a/org.amanzi.scripting.jruby/src/org/amanzi/scripting/jruby/ScriptUtils.java +++ b/org.amanzi.scripting.jruby/src/org...
true
true
private List<String> doMakeLoadPath(String[] extras) throws IOException { // The following code finds the location of jruby on the computer and // makes sure the right loadpath is provided to the interpreter // The paths can be overridden by -Djruby.home and -Djruby.version ensureJRubyHome(); ...
private List<String> doMakeLoadPath(String[] extras) throws IOException { // The following code finds the location of jruby on the computer and // makes sure the right loadpath is provided to the interpreter // The paths can be overridden by -Djruby.home and -Djruby.version ensureJRubyHome(); ...
diff --git a/src/test/java/net/floodlightcontroller/loadbalancer/LoadBalancerTest.java b/src/test/java/net/floodlightcontroller/loadbalancer/LoadBalancerTest.java index fba97343..8c970183 100644 --- a/src/test/java/net/floodlightcontroller/loadbalancer/LoadBalancerTest.java +++ b/src/test/java/net/floodlightcontroller/...
false
true
public void testTwoSubsequentIcmpRequests() throws Exception { testCreateVip(); testCreatePool(); testCreateMember(); IOFSwitch sw1; IPacket arpRequest1, arpRequest2, arpReply1, arpReply2, icmpPacket1, icmpPacket2; byte[] arpRequest1Serialized, arpRequest2Serialized; ...
public void testTwoSubsequentIcmpRequests() throws Exception { testCreateVip(); testCreatePool(); testCreateMember(); IOFSwitch sw1; IPacket arpRequest1, arpReply1, icmpPacket1, icmpPacket2; byte[] arpRequest1Serialized; byte[] arpReply1Serialized; byte[] ic...
diff --git a/src/main/java/com/ai/myplugin/sensor/RandomSensor.java b/src/main/java/com/ai/myplugin/sensor/RandomSensor.java index 5082a5a..ec5ca4e 100644 --- a/src/main/java/com/ai/myplugin/sensor/RandomSensor.java +++ b/src/main/java/com/ai/myplugin/sensor/RandomSensor.java @@ -1,100 +1,100 @@ package com.ai.myplugi...
true
true
public TestResult execute(TestSessionContext testSessionContext) { String nodeName = (String) testSessionContext.getAttribute(NodeSessionParams.NODE_NAME); BayesianNetwork bayesianNetwork = (BayesianNetwork) testSessionContext.getAttribute(NodeSessionParams.BN_NETWORK); List<Pair<Double, St...
public TestResult execute(TestSessionContext testSessionContext) { String nodeName = (String) testSessionContext.getAttribute(NodeSessionParams.NODE_NAME); BayesianNetwork bayesianNetwork = (BayesianNetwork) testSessionContext.getAttribute(NodeSessionParams.BN_NETWORK); List<Pair<Double, St...
diff --git a/rms/org.eclipse.ptp.rm.mpi.openmpi.core/src/org/eclipse/ptp/rm/mpi/openmpi/core/rtsystem/OpenMPIRuntimeSystemJob.java b/rms/org.eclipse.ptp.rm.mpi.openmpi.core/src/org/eclipse/ptp/rm/mpi/openmpi/core/rtsystem/OpenMPIRuntimeSystemJob.java index 29bd06447..7c29e0786 100644 --- a/rms/org.eclipse.ptp.rm.mpi.op...
true
true
protected void doExecutionStarted(IProgressMonitor monitor) throws CoreException { /* * Create a zero index job. */ final OpenMPIRuntimeSystem rtSystem = (OpenMPIRuntimeSystem) getRtSystem(); final IPJob ipJob = PTPCorePlugin.getDefault().getUniverse().getResourceManager(rtSystem.getRmID()).getQueueById(ge...
protected void doExecutionStarted(IProgressMonitor monitor) throws CoreException { /* * Create a zero index job. */ final OpenMPIRuntimeSystem rtSystem = (OpenMPIRuntimeSystem) getRtSystem(); final IPJob ipJob = PTPCorePlugin.getDefault().getUniverse().getResourceManager(rtSystem.getRmID()).getQueueById(ge...
diff --git a/src/DVN-EJB/src/java/edu/harvard/iq/dvn/core/vdc/VDCServiceBean.java b/src/DVN-EJB/src/java/edu/harvard/iq/dvn/core/vdc/VDCServiceBean.java index c242edf26..7b79f37dd 100644 --- a/src/DVN-EJB/src/java/edu/harvard/iq/dvn/core/vdc/VDCServiceBean.java +++ b/src/DVN-EJB/src/java/edu/harvard/iq/dvn/core/vdc/VDC...
false
true
public List<Long> getOrderedVDCIds(Long classificationId, String letter, String orderBy, boolean hideRestrictedVDCs, String filterString, Long subNetworkId) { List<Long> returnList = new ArrayList(); // this query will get all vdcids for the dvn or for a classification (and one level of children, p...
public List<Long> getOrderedVDCIds(Long classificationId, String letter, String orderBy, boolean hideRestrictedVDCs, String filterString, Long subNetworkId) { List<Long> returnList = new ArrayList(); // this query will get all vdcids for the dvn or for a classification (and one level of children, p...
diff --git a/tez-tests/src/test/java/org/apache/tez/test/MiniTezCluster.java b/tez-tests/src/test/java/org/apache/tez/test/MiniTezCluster.java index 8926ed8a..6bbc7b32 100644 --- a/tez-tests/src/test/java/org/apache/tez/test/MiniTezCluster.java +++ b/tez-tests/src/test/java/org/apache/tez/test/MiniTezCluster.java @@ -1...
true
true
public void serviceInit(Configuration conf) throws Exception { conf.set(MRConfig.FRAMEWORK_NAME, MRConfig.YARN_TEZ_FRAMEWORK_NAME); if (conf.get(MRJobConfig.MR_AM_STAGING_DIR) == null) { conf.set(MRJobConfig.MR_AM_STAGING_DIR, new File(getTestWorkDir(), "apps_staging_dir" + Path.SEPARATOR).get...
public void serviceInit(Configuration conf) throws Exception { conf.set(MRConfig.FRAMEWORK_NAME, MRConfig.YARN_TEZ_FRAMEWORK_NAME); if (conf.get(MRJobConfig.MR_AM_STAGING_DIR) == null) { conf.set(MRJobConfig.MR_AM_STAGING_DIR, new File(getTestWorkDir(), "apps_staging_dir" + Path.SEPARATOR).get...
diff --git a/src/net/miz_hi/smileessence/listener/TimelineScrollListener.java b/src/net/miz_hi/smileessence/listener/TimelineScrollListener.java index af9c6dc..412d120 100644 --- a/src/net/miz_hi/smileessence/listener/TimelineScrollListener.java +++ b/src/net/miz_hi/smileessence/listener/TimelineScrollListener.java @@ ...
true
true
public void onScrollStateChanged(AbsListView view, int scrollState) { adapter.setCanNotifyOnChange(false); if (view.getFirstVisiblePosition() == 0 && view.getChildAt(0) != null && view.getChildAt(0).getTop() == 0) { if (scrollState == SCROLL_STATE_IDLE) { ...
public void onScrollStateChanged(AbsListView view, int scrollState) { adapter.setCanNotifyOnChange(false); if (view.getFirstVisiblePosition() == 0 && view.getChildAt(0) != null && view.getChildAt(0).getTop() == 0) { if (scrollState == SCROLL_STATE_IDLE) { ...
diff --git a/shell/core/src/main/java/org/crsh/command/CRaSHCommand.java b/shell/core/src/main/java/org/crsh/command/CRaSHCommand.java index 5881fadb..4edab8f4 100644 --- a/shell/core/src/main/java/org/crsh/command/CRaSHCommand.java +++ b/shell/core/src/main/java/org/crsh/command/CRaSHCommand.java @@ -1,432 +1,432 @@ ...
false
true
public final CommandInvoker<?, ?> resolveInvoker(final CommandMatch<CRaSHCommand, ?, ?> match) { if (match instanceof MethodMatch) { // final MethodMatch<CRaSHCommand> methodMatch = (MethodMatch<CRaSHCommand>)match; // boolean help = false; for (OptionMatch optionMatch : methodMatc...
public final CommandInvoker<?, ?> resolveInvoker(final CommandMatch<CRaSHCommand, ?, ?> match) { if (match instanceof MethodMatch) { // final MethodMatch<CRaSHCommand> methodMatch = (MethodMatch<CRaSHCommand>)match; // boolean help = false; for (OptionMatch optionMatch : methodMatc...
diff --git a/bundles/org.eclipse.rap.demo/src/org/eclipse/rap/demo/controls/ControlsDemo.java b/bundles/org.eclipse.rap.demo/src/org/eclipse/rap/demo/controls/ControlsDemo.java index 0647a4b5a..c9e7ae432 100644 --- a/bundles/org.eclipse.rap.demo/src/org/eclipse/rap/demo/controls/ControlsDemo.java +++ b/bundles/org.ecli...
true
true
private void createContent( final Composite parent ) { parent.setLayout( new FillLayout() ); final CTabFolder topFolder = new CTabFolder( parent, SWT.TOP ); topFolder.marginWidth = 5; topFolder.marginHeight = 5; ensureMinTabHeight( topFolder ); Display display = parent.getDisplay(); Color ...
private void createContent( final Composite parent ) { parent.setLayout( new FillLayout() ); final CTabFolder topFolder = new CTabFolder( parent, SWT.TOP ); topFolder.marginWidth = 5; topFolder.marginHeight = 5; ensureMinTabHeight( topFolder ); Display display = parent.getDisplay(); Color ...
diff --git a/MonitoringGae/src/main/java/cmg/org/monitor/app/schedule/MailServiceScheduler.java b/MonitoringGae/src/main/java/cmg/org/monitor/app/schedule/MailServiceScheduler.java index 5e0ca52..bb5f208 100644 --- a/MonitoringGae/src/main/java/cmg/org/monitor/app/schedule/MailServiceScheduler.java +++ b/MonitoringGae/...
true
true
public void doSchedule() { // BEGIN LOG long start = System.currentTimeMillis(); logger.log(Level.INFO, MonitorUtil.parseTime(start, true) + " -> START: Scheduled send alert mail ..."); // BEGIN LOG String alertName = MonitorConstant.ALERTSTORE_DEFAULT_NAME + ": " + MonitorUtil.parseTime(start, false...
public void doSchedule() { // BEGIN LOG long start = System.currentTimeMillis(); logger.log(Level.INFO, MonitorUtil.parseTime(start, true) + " -> START: Scheduled send alert mail ..."); // BEGIN LOG String alertName = MonitorConstant.ALERTSTORE_DEFAULT_NAME + ": " + MonitorUtil.parseTime(start, false...
diff --git a/test/src/net/sf/freecol/common/model/AllTests.java b/test/src/net/sf/freecol/common/model/AllTests.java index dba23c522..d1f205153 100644 --- a/test/src/net/sf/freecol/common/model/AllTests.java +++ b/test/src/net/sf/freecol/common/model/AllTests.java @@ -1,33 +1,32 @@ package net.sf.freecol.common.model;...
true
true
public static Test suite() { TestSuite suite = new TestSuite("Test for net.sf.freecol.common"); //$JUnit-BEGIN$ suite.addTestSuite(BuildingTest.class); suite.addTestSuite(SchoolTest.class); suite.addTestSuite(GoodsTest.class); suite.addTestSuite(GameTest.class); suite.addTestSuite(MapTest.class); suite...
public static Test suite() { TestSuite suite = new TestSuite("Test for net.sf.freecol.common"); //$JUnit-BEGIN$ suite.addTestSuite(BuildingTest.class); suite.addTestSuite(SchoolTest.class); suite.addTestSuite(GoodsTest.class); suite.addTestSuite(GameTest.class); suite.addTestSuite(MapTest.class); suite...
diff --git a/source/com/mucommander/ui/dnd/ClipboardNotifier.java b/source/com/mucommander/ui/dnd/ClipboardNotifier.java index 419d14fe..f9c6fb98 100644 --- a/source/com/mucommander/ui/dnd/ClipboardNotifier.java +++ b/source/com/mucommander/ui/dnd/ClipboardNotifier.java @@ -1,80 +1,80 @@ /* * This file is part of mu...
true
true
private void toggleActionState() { try { action.setEnabled(ClipboardSupport.getClipboard().isDataFlavorAvailable(DataFlavor.javaFileListFlavor)); } catch(Exception e) { // Works around "java.lang.IllegalStateException: cannot open system clipboard" thrown without ...
private void toggleActionState() { try { action.setEnabled(ClipboardSupport.getClipboard().isDataFlavorAvailable(DataFlavor.javaFileListFlavor)); } catch(Exception e) { // Works around "java.lang.IllegalStateException: cannot open system clipboard" thrown when the cli...
diff --git a/brut.apktool/apktool-lib/src/main/java/brut/androlib/src/SmaliDecoder.java b/brut.apktool/apktool-lib/src/main/java/brut/androlib/src/SmaliDecoder.java index 134fb88..98ed63e 100644 --- a/brut.apktool/apktool-lib/src/main/java/brut/androlib/src/SmaliDecoder.java +++ b/brut.apktool/apktool-lib/src/main/java...
true
true
private void decode() throws AndrolibException { if (mDebug) { ClassPath.dontLoadClassPath = true; } try { baksmali.disassembleDexFile(mApkFile.getAbsolutePath(), new DexFile(mApkFile), false, mOutDir.getAbsolutePath(), null, null, nul...
private void decode() throws AndrolibException { if (mDebug) { ClassPath.dontLoadClassPath = true; } try { baksmali.disassembleDexFile(mApkFile.getAbsolutePath(), new DexFile(mApkFile), false, mOutDir.getAbsolutePath(), null, null, nul...
diff --git a/src/main/java/org/vivoweb/harvester/fetch/JDBCFetch.java b/src/main/java/org/vivoweb/harvester/fetch/JDBCFetch.java index 5fdab63c..4fc61164 100644 --- a/src/main/java/org/vivoweb/harvester/fetch/JDBCFetch.java +++ b/src/main/java/org/vivoweb/harvester/fetch/JDBCFetch.java @@ -1,816 +1,826 @@ /***********...
false
true
public JDBCFetch(Connection dbConn, RecordHandler rh, String uriNS, String queryPre, String querySuf, Set<String> tableNames, Map<String, String> fromClauses, Map<String, List<String>> dataFields, Map<String, List<String>> idFields, Map<String, List<String>> whereClauses, Map<String, Map<String, String>> relations, Ma...
public JDBCFetch(Connection dbConn, RecordHandler rh, String uriNS, String queryPre, String querySuf, Set<String> tableNames, Map<String, String> fromClauses, Map<String, List<String>> dataFields, Map<String, List<String>> idFields, Map<String, List<String>> whereClauses, Map<String, Map<String, String>> relations, Ma...
diff --git a/java/src/com/google/appengine/tools/mapreduce/InputStreamIterator.java b/java/src/com/google/appengine/tools/mapreduce/InputStreamIterator.java index 67c816f..d13711e 100644 --- a/java/src/com/google/appengine/tools/mapreduce/InputStreamIterator.java +++ b/java/src/com/google/appengine/tools/mapreduce/Inpu...
true
true
public boolean hasNext() { try { if (input.getCount() == 0 && skipFirstTerminator) { // find the first record start; if (!skipUntilNextRecord(input)) { return false; } } // we are reading one record after split-end // and are skipping first record for all ...
public boolean hasNext() { try { if (input.getCount() == 0 && skipFirstTerminator) { // find the first record start; if (!skipUntilNextRecord(input)) { return false; } } // we are reading one record after split-end // and are skipping first record for all ...
diff --git a/src/edu/stanford/mobisocial/dungbeetle/App.java b/src/edu/stanford/mobisocial/dungbeetle/App.java index 1018bb2..6ba06ab 100644 --- a/src/edu/stanford/mobisocial/dungbeetle/App.java +++ b/src/edu/stanford/mobisocial/dungbeetle/App.java @@ -1,161 +1,162 @@ package edu.stanford.mobisocial.dungbeetle; impor...
false
true
private void resetUnreadMessages(Uri feedUri) { try { switch(Feed.typeOf(feedUri)) { case Feed.FEED_GROUP: { String feedName = feedUri.getLastPathSegment(); ContentValues cv = new ContentValues(); cv.put(Group.NUM_UNREAD, 0); ...
private void resetUnreadMessages(Uri feedUri) { try { switch(Feed.typeOf(feedUri)) { case Feed.FEED_FRIEND: { String personId = Feed.personIdForFeed(feedUri); ContentValues cv = new ContentValues(); cv.put(Contact.NUM_UN...
diff --git a/src/br/usp/cata/web/controller/IndexController.java b/src/br/usp/cata/web/controller/IndexController.java index 1377abc..70cdf2d 100644 --- a/src/br/usp/cata/web/controller/IndexController.java +++ b/src/br/usp/cata/web/controller/IndexController.java @@ -1,175 +1,176 @@ /* * Modificado de IndexControll...
false
true
public void signup(User newUser, String password) { if(newUser.getName().equals("")) validator.add(new ValidationMessage( "O campo não pode ser vazio", "Nome")); if(newUser.getEmail().equals("")) validator.add(new ValidationMessage( "O campo não pode ser vazio", "E-mail"));...
public void signup(User newUser, String password) { if(newUser.getName().equals("")) validator.add(new ValidationMessage( "O campo não pode ser vazio", "Nome")); if(newUser.getEmail().equals("")) validator.add(new ValidationMessage( "O campo não pode ser vazio", "E-mail"));...
diff --git a/src/java/org/codehaus/groovy/grails/orm/hibernate/proxy/GroovyAwareJavassistLazyInitializer.java b/src/java/org/codehaus/groovy/grails/orm/hibernate/proxy/GroovyAwareJavassistLazyInitializer.java index 6a67260f3..84edba801 100644 --- a/src/java/org/codehaus/groovy/grails/orm/hibernate/proxy/GroovyAwareJava...
true
true
public Object invoke( final Object proxy, final Method thisMethod, final Method proceed, final Object[] args) throws Throwable { if (constructed) { Object result; try { result = invoke(thisMethod, args, proxy); ...
public Object invoke( final Object proxy, final Method thisMethod, final Method proceed, final Object[] args) throws Throwable { if (constructed) { Object result; try { result = invoke(thisMethod, args, proxy); ...
diff --git a/org.strategoxt.imp.runtime/src/org/strategoxt/imp/runtime/services/OnSaveService.java b/org.strategoxt.imp.runtime/src/org/strategoxt/imp/runtime/services/OnSaveService.java index a0c2b0dc..369a32f9 100644 --- a/org.strategoxt.imp.runtime/src/org/strategoxt/imp/runtime/services/OnSaveService.java +++ b/org...
true
true
public void documentChanged(DocumentEvent event) { if (function == null) return; //String contents = event.getDocument().get(); try { Environment.getStrategoLock().lock(); try { IStrategoTerm ast = editor.getCurrentAst(); if (ast == null) return; IStrategoTerm result = runtime.invoke...
public void documentChanged(DocumentEvent event) { if (function == null) return; //String contents = event.getDocument().get(); try { Environment.getStrategoLock().lock(); try { IStrategoTerm ast = editor.getCurrentAst(); if (ast == null) return; IStrategoTerm result = runtime.invoke...
diff --git a/integration/src/main/java/com/quartercode/quarterbukkit/QuarterBukkitIntegration.java b/integration/src/main/java/com/quartercode/quarterbukkit/QuarterBukkitIntegration.java index 99d3db3..ea46c3f 100644 --- a/integration/src/main/java/com/quartercode/quarterbukkit/QuarterBukkitIntegration.java +++ b/integ...
false
true
public static boolean integrate(final Plugin plugin) { // Register caller callers.add(plugin); if (!Bukkit.getPluginManager().isPluginEnabled(PLUGIN_NAME)) { if (!invoked) { // Block this part (it should only be called once) invoked = true; ...
public static boolean integrate(final Plugin plugin) { // Register caller callers.add(plugin); if (!Bukkit.getPluginManager().isPluginEnabled(PLUGIN_NAME)) { if (!invoked) { // Block this part (it should only be called once) invoked = true; ...
diff --git a/survey/src/com/gallatinsystems/survey/device/view/GeoQuestionView.java b/survey/src/com/gallatinsystems/survey/device/view/GeoQuestionView.java index 9bef15d7..a1ee71a1 100644 --- a/survey/src/com/gallatinsystems/survey/device/view/GeoQuestionView.java +++ b/survey/src/com/gallatinsystems/survey/device/vie...
true
true
protected void init() { Context context = getContext(); TableRow tr = new TableRow(context); TableLayout innerTable = new TableLayout(context); TableRow innerRow = new TableRow(context); DigitsKeyListener numericListener = new DigitsKeyListener(true, true); res = ge...
protected void init() { Context context = getContext(); TableRow tr = new TableRow(context); TableLayout innerTable = new TableLayout(context); TableRow innerRow = new TableRow(context); DigitsKeyListener numericListener = new DigitsKeyListener(true, true); res = ge...
diff --git a/solr/src/java/org/apache/solr/search/ReturnFields.java b/solr/src/java/org/apache/solr/search/ReturnFields.java index e3061f62d..9bc5411c0 100644 --- a/solr/src/java/org/apache/solr/search/ReturnFields.java +++ b/solr/src/java/org/apache/solr/search/ReturnFields.java @@ -1,362 +1,359 @@ /** * Licensed t...
false
true
private void add(String fl, NamedList<String> rename, DocTransformers augmenters, SolrQueryRequest req) { if( fl == null ) { return; } try { QueryParsing.StrParser sp = new QueryParsing.StrParser(fl); for(;;) { sp.opt(','); sp.eatws(); if (sp.pos >= sp.end) break...
private void add(String fl, NamedList<String> rename, DocTransformers augmenters, SolrQueryRequest req) { if( fl == null ) { return; } try { QueryParsing.StrParser sp = new QueryParsing.StrParser(fl); for(;;) { sp.opt(','); sp.eatws(); if (sp.pos >= sp.end) break...
diff --git a/src/main/java/org/openengsb/connector/mavendep/internal/MavendepServiceInstanceFactory.java b/src/main/java/org/openengsb/connector/mavendep/internal/MavendepServiceInstanceFactory.java index d3e7804..b3f4382 100644 --- a/src/main/java/org/openengsb/connector/mavendep/internal/MavendepServiceInstanceFactor...
true
true
public void doApplyAttributes(MavendepServiceImpl instance, Map<String, String> attributes) { if (attributes.containsKey("pomfile")) { instance.setPomFile(attributes.get("pomfile")); } if (attributes.containsKey("attribute")) { instance.setAttribute(attrib...
public void doApplyAttributes(MavendepServiceImpl instance, Map<String, String> attributes) { if (attributes.containsKey("pomfile")) { instance.setPomFile(attributes.get("pomfile")); } if (attributes.containsKey("property")) { instance.setAttribute(attribu...
diff --git a/src/com/android/exchange/service/EasAutoDiscover.java b/src/com/android/exchange/service/EasAutoDiscover.java index 4f7558ef..0713b0db 100644 --- a/src/com/android/exchange/service/EasAutoDiscover.java +++ b/src/com/android/exchange/service/EasAutoDiscover.java @@ -1,405 +1,405 @@ package com.android.exch...
true
true
public Bundle doAutodiscover() { final String domain = getDomain(); if (domain == null) { return null; } final StringEntity entity = buildRequestEntity(); if (entity == null) { return null; } try { final HttpPost post = mak...
public Bundle doAutodiscover() { final String domain = getDomain(); if (domain == null) { return null; } final StringEntity entity = buildRequestEntity(); if (entity == null) { return null; } try { final HttpPost post = mak...
diff --git a/hk2/auto-depends/src/java/org/jvnet/hk2/component/MultiMap.java b/hk2/auto-depends/src/java/org/jvnet/hk2/component/MultiMap.java index ac325ccde..cadbfa3b6 100644 --- a/hk2/auto-depends/src/java/org/jvnet/hk2/component/MultiMap.java +++ b/hk2/auto-depends/src/java/org/jvnet/hk2/component/MultiMap.java @@ ...
true
true
public final String toString() { final StringBuilder builder = new StringBuilder(); final String newline = System.getProperty( "line.separator" ); builder.append( "{" ); for ( final K key : store.keySet() ) { builder.append( key + ": {" ); for( final...
public final String toString() { final StringBuilder builder = new StringBuilder(); final String newline = System.getProperty( "line.separator" ); builder.append( "{" ); for ( final K key : store.keySet() ) { builder.append( key + ": {" ); for( final...
diff --git a/src/uk/ac/gla/dcs/tp3/w/algorithm/Graph.java b/src/uk/ac/gla/dcs/tp3/w/algorithm/Graph.java index 8a20205..9dd7121 100644 --- a/src/uk/ac/gla/dcs/tp3/w/algorithm/Graph.java +++ b/src/uk/ac/gla/dcs/tp3/w/algorithm/Graph.java @@ -1,186 +1,186 @@ package uk.ac.gla.dcs.tp3.w.algorithm; import java.util.Lin...
false
true
public Graph(League l, Team t) { if (l == null || t == null) return; // Number of team nodes is one less than total number of teams. // The team nodes do not include the team being tested for elimination. int teamTotal = l.getTeams().length; // The r-combination of teamTotal for length 2 is the number of ...
public Graph(League l, Team t) { if (l == null || t == null) return; // Number of team nodes is one less than total number of teams. // The team nodes do not include the team being tested for elimination. int teamTotal = l.getTeams().length; // The r-combination of teamTotal for length 2 is the number of ...
diff --git a/CASi/src/de/uniluebeck/imis/casi/simulation/model/AbstractInteractionComponent.java b/CASi/src/de/uniluebeck/imis/casi/simulation/model/AbstractInteractionComponent.java index 1a360a0..de3aea2 100644 --- a/CASi/src/de/uniluebeck/imis/casi/simulation/model/AbstractInteractionComponent.java +++ b/CASi/src/de...
true
true
public Shape getShapeRepresentation() { if (shapeRepresentation != null) { // Shape was calculated before: return shapeRepresentation; } if (radius < 0 && getCurrentPosition() != null) { // Monitor the whole room: shapeRepresentation = getCurrentPosition().getShapeRepresentation(); return shapeRep...
public Shape getShapeRepresentation() { if (shapeRepresentation != null) { // Shape was calculated before: return shapeRepresentation; } if (radius < 0 && getCurrentPosition() != null) { // Monitor the whole room: shapeRepresentation = getCurrentPosition().getShapeRepresentation(); return shapeRep...
diff --git a/src/engine/God.java b/src/engine/God.java index 7d66255..a843029 100644 --- a/src/engine/God.java +++ b/src/engine/God.java @@ -1,74 +1,74 @@ /* * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free So...
true
true
private void initFactions() { //make a list of all factions ArrayList<Faction> factions = new ArrayList<>(); Parser fParse = new Parser("FACTIONS.txt"); ArrayList<Term> terms = fParse.getTermsOfType("Faction"); for (int a = 0; a < terms.size(); a++) { factions.add...
private void initFactions() { //make a list of all factions ArrayList<Faction> tmpF = new ArrayList<>(); Parser fParse = new Parser("FACTIONS.txt"); ArrayList<Term> terms = fParse.getTermsOfType("Faction"); for (int a = 0; a < terms.size(); a++) { factions.add(new...
diff --git a/src/com/cooliris/media/MediaFeed.java b/src/com/cooliris/media/MediaFeed.java index 555c16d..73dcd0c 100644 --- a/src/com/cooliris/media/MediaFeed.java +++ b/src/com/cooliris/media/MediaFeed.java @@ -1,902 +1,903 @@ package com.cooliris.media; import java.util.ArrayList; import java.util.HashMap; imp...
true
true
public void run() { DataSource dataSource = mDataSource; int sleepMs = 10; Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND); if (dataSource != null) { while (!Thread.interrupted()) { String[] databaseUris = null; boolean perfor...
public void run() { DataSource dataSource = mDataSource; int sleepMs = 10; Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND); if (dataSource != null) { while (!Thread.interrupted()) { String[] databaseUris = null; boolean perfor...
diff --git a/portlet/exoadmin/src/main/java/org/exoplatform/organization/webui/component/UIUserInfo.java b/portlet/exoadmin/src/main/java/org/exoplatform/organization/webui/component/UIUserInfo.java index a798451..00eaa2d 100644 --- a/portlet/exoadmin/src/main/java/org/exoplatform/organization/webui/component/UIUserInf...
true
true
public void execute(Event<UIUserInfo> event) throws Exception { UIUserInfo uiUserInfo = event.getSource(); OrganizationService service = uiUserInfo.getApplicationComponent(OrganizationService.class); boolean save = uiUserInfo.getChild(UIAccountEditInputSet.class).save(service); ...
public void execute(Event<UIUserInfo> event) throws Exception { UIUserInfo uiUserInfo = event.getSource(); OrganizationService service = uiUserInfo.getApplicationComponent(OrganizationService.class); boolean save = uiUserInfo.getChild(UIAccountEditInputSet.class).save(service); ...
diff --git a/src/com/android/calendar/alerts/AlertReceiver.java b/src/com/android/calendar/alerts/AlertReceiver.java index 8894ae0d..611de683 100644 --- a/src/com/android/calendar/alerts/AlertReceiver.java +++ b/src/com/android/calendar/alerts/AlertReceiver.java @@ -1,442 +1,442 @@ /* * Copyright (C) 2007 The Androi...
true
true
public static Notification makeDigestNotification(Context context, List<AlertService.NotificationInfo> notificationInfos, String digestTitle) { if (notificationInfos == null || notificationInfos.size() < 1) { return null; } Resources res = context.getResources(); ...
public static Notification makeDigestNotification(Context context, List<AlertService.NotificationInfo> notificationInfos, String digestTitle) { if (notificationInfos == null || notificationInfos.size() < 1) { return null; } Resources res = context.getResources(); ...
diff --git a/src/test/java/com/jcabi/aether/ClasspathTest.java b/src/test/java/com/jcabi/aether/ClasspathTest.java index a1d3fb0..a7acac9 100644 --- a/src/test/java/com/jcabi/aether/ClasspathTest.java +++ b/src/test/java/com/jcabi/aether/ClasspathTest.java @@ -1,150 +1,157 @@ /** * Copyright (c) 2012-2013, JCabi.com...
true
true
public void buildsClasspath() throws Exception { final Dependency dep = new Dependency(); final String group = "junit"; dep.setGroupId(group); dep.setArtifactId(group); dep.setVersion("4.10"); dep.setScope(JavaScopes.TEST); MatcherAssert.assertThat( ...
public void buildsClasspath() throws Exception { final Dependency dep = new Dependency(); final String group = "junit"; dep.setGroupId(group); dep.setArtifactId(group); dep.setVersion("4.10"); dep.setScope(JavaScopes.TEST); MatcherAssert.assertThat( ...
diff --git a/software/examples/java/ExampleSwitchSocket.java b/software/examples/java/ExampleSwitchSocket.java index 413bf3a..e6a4c99 100644 --- a/software/examples/java/ExampleSwitchSocket.java +++ b/software/examples/java/ExampleSwitchSocket.java @@ -1,27 +1,27 @@ import com.tinkerforge.BrickletRemoteSwitch; import...
true
true
public static void main(String args[]) throws Exception { IPConnection ipcon = new IPConnection(); // Create IP connection BrickletRemoteSwitch rs = new BrickletRemoteSwitch(UID, ipcon); // Create device object ipcon.connect(host, port); // Connect to brickd // Don't use device before ipcon is connected //...
public static void main(String args[]) throws Exception { IPConnection ipcon = new IPConnection(); // Create IP connection BrickletRemoteSwitch rs = new BrickletRemoteSwitch(UID, ipcon); // Create device object ipcon.connect(host, port); // Connect to brickd // Don't use device before ipcon is connected //...
diff --git a/src/org/es/butler/logic/impl/AgendaLogic.java b/src/org/es/butler/logic/impl/AgendaLogic.java index 97bcc35..43aa29b 100644 --- a/src/org/es/butler/logic/impl/AgendaLogic.java +++ b/src/org/es/butler/logic/impl/AgendaLogic.java @@ -1,74 +1,74 @@ package org.es.butler.logic.impl; import android.content....
false
true
private String getPronunciationEn(final List<AgendaEvent> events, Context context) { int count = (events == null || events.isEmpty()) ? 0 : events.size(); StringBuilder sb = new StringBuilder(); if (mToday) { sb.append(context.getResources().getQuantityString(R.plurals.today_app...
private String getPronunciationEn(final List<AgendaEvent> events, Context context) { int count = (events == null || events.isEmpty()) ? 0 : events.size(); StringBuilder sb = new StringBuilder(); if (mToday) { sb.append(context.getResources().getQuantityString(R.plurals.today_app...
diff --git a/src/concurrency/main/Main.java b/src/concurrency/main/Main.java index d199a75..d894833 100644 --- a/src/concurrency/main/Main.java +++ b/src/concurrency/main/Main.java @@ -1,53 +1,53 @@ package concurrency.main; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutorService; ...
false
true
public static void main(String[] args) { final SharedObject obj = new SharedObject(0); final Object synchObj = new Object(); final int NUM_THREADS = 1000; final int POOL_SIZE = 5; ExecutorService pool = Executors.newFixedThreadPool(POOL_SIZE); final CountDownLatch cdl = new CountDownLatch(NUM_THREADS); ...
public static void main(String[] args) { final SharedObject obj = new SharedObject(0); final Object synchObj = new Object(); final int NUM_THREADS = 1000; final int POOL_SIZE = 5; ExecutorService pool = Executors.newFixedThreadPool(POOL_SIZE); final CountDownLatch cdl = new CountDownLatch(POOL_SIZE); ...
diff --git a/src/test/java/org/healthonnet/spellchecker/client/test/JsonParsingTest.java b/src/test/java/org/healthonnet/spellchecker/client/test/JsonParsingTest.java index ec2fafd..7980070 100644 --- a/src/test/java/org/healthonnet/spellchecker/client/test/JsonParsingTest.java +++ b/src/test/java/org/healthonnet/spell...
true
true
public void testMultipleSuggestions() throws IOException { SpellcheckResponse spellcheckResponse = SpellcheckRequester.getSpellcheckResponse(English, 15, "diabetis"); List<Suggestion> suggestions = spellcheckResponse.getSpellcheck().getSuggestions(); Assert.assertEquals(1, suggestions.size()); Assert.ass...
public void testMultipleSuggestions() throws IOException { SpellcheckResponse spellcheckResponse = SpellcheckRequester.getSpellcheckResponse(English, 15, "diabetis"); List<Suggestion> suggestions = spellcheckResponse.getSpellcheck().getSuggestions(); Assert.assertEquals(1, suggestions.size()); Assert.ass...
diff --git a/core/src/visad/trunk/python/JPythonMethods.java b/core/src/visad/trunk/python/JPythonMethods.java index c5157fefe..f483dca98 100644 --- a/core/src/visad/trunk/python/JPythonMethods.java +++ b/core/src/visad/trunk/python/JPythonMethods.java @@ -1,600 +1,603 @@ // // JPythonMethods.java // /* VisAD sy...
true
true
public static void plot(DataImpl data, double red, double green, double blue) throws VisADException, RemoteException { if (data == null) throw new VisADException("Data cannot be null"); if (display == null) { displayFrame = new JFrame("VisAD Display Plot"); widgetFrame = new JFrame("VisAD Disp...
public static void plot(DataImpl data, double red, double green, double blue) throws VisADException, RemoteException { if (data == null) throw new VisADException("Data cannot be null"); if (display == null) { displayFrame = new JFrame("VisAD Display Plot"); widgetFrame = new JFrame("VisAD Disp...
diff --git a/user/src/com/google/gwt/user/client/impl/WindowImpl.java b/user/src/com/google/gwt/user/client/impl/WindowImpl.java index 3d3339db1..61efc5a8b 100644 --- a/user/src/com/google/gwt/user/client/impl/WindowImpl.java +++ b/user/src/com/google/gwt/user/client/impl/WindowImpl.java @@ -1,43 +1,43 @@ /* * Copyr...
true
true
public native void enableScrolling(boolean enable) /*-{ @com.google.gwt.user.client.impl.DocumentRootImpl::documentRoot.style.overflow = enable ? "auto" : "hidden"; }-*/;
public native void enableScrolling(boolean enable) /*-{ @com.google.gwt.user.client.impl.DocumentRootImpl::documentRoot.style.overflow = enable ? "" : "hidden"; }-*/;
diff --git a/src/main/java/org/vivoweb/ingest/score/Score.java b/src/main/java/org/vivoweb/ingest/score/Score.java index 6214e70d..486dd31a 100644 --- a/src/main/java/org/vivoweb/ingest/score/Score.java +++ b/src/main/java/org/vivoweb/ingest/score/Score.java @@ -1,613 +1,612 @@ /***************************************...
false
true
public static void main(String... args) { log.info("Scoring: Start"); try { ArgList opts = new ArgList(getParser(), args); //Get optional inputs / set defaults //Check for config files, before parsing name options String workingModel = opts.get("T"); if (workingModel == null) workingMode...
public static void main(String... args) { log.info("Scoring: Start"); try { ArgList opts = new ArgList(getParser(), args); //Get optional inputs / set defaults //Check for config files, before parsing name options String workingModel = opts.get("T"); if (workingModel == null) workingMode...
diff --git a/src/com/android/contacts/util/PhoneNumberFormatter.java b/src/com/android/contacts/util/PhoneNumberFormatter.java index 6e63aac37..204ac69a8 100644 --- a/src/com/android/contacts/util/PhoneNumberFormatter.java +++ b/src/com/android/contacts/util/PhoneNumberFormatter.java @@ -1,75 +1,73 @@ /* * Copyright...
true
true
protected void onPostExecute(PhoneNumberFormattingTextWatcher watcher) { if (watcher == null || isCancelled()) { return; // May happen if we cancel the task. } if (mTextView.getHandler() == null) { return; // View is already detached. ...
protected void onPostExecute(PhoneNumberFormattingTextWatcher watcher) { if (watcher == null || isCancelled()) { return; // May happen if we cancel the task. } // Setting a text changed listener is safe even after the view is detached. mTextView.ad...
diff --git a/src/algorithm/Palindrome_Partitioning.java b/src/algorithm/Palindrome_Partitioning.java index af22865..9dbc9a2 100644 --- a/src/algorithm/Palindrome_Partitioning.java +++ b/src/algorithm/Palindrome_Partitioning.java @@ -1,53 +1,53 @@ package algorithm; import java.util.ArrayList; import java.util.Hash...
false
true
public ArrayList<ArrayList<String>> helper(String s, HashMap<String, ArrayList<ArrayList<String>>> map){ if(map.containsKey(s)){ return map.get(s); } ArrayList<ArrayList<String>> ret = new ArrayList<ArrayList<String>>(); if(s.length()==0){ ret.add(new ArrayList<String>()); ...
public ArrayList<ArrayList<String>> helper(String s, HashMap<String, ArrayList<ArrayList<String>>> map){ //if(map.containsKey(s)){ //return map.get(s); //} ArrayList<ArrayList<String>> ret = new ArrayList<ArrayList<String>>(); if(s.length()==0){ ret.add(new ArrayList<String>...
diff --git a/pivot4j-analytics/src/main/java/org/pivot4j/analytics/ui/WorkbenchHandler.java b/pivot4j-analytics/src/main/java/org/pivot4j/analytics/ui/WorkbenchHandler.java index 1b7004de..de37ffa9 100644 --- a/pivot4j-analytics/src/main/java/org/pivot4j/analytics/ui/WorkbenchHandler.java +++ b/pivot4j-analytics/src/ma...
true
true
public LayoutOptions getLayoutOptions() { if (layoutOptions == null) { this.layoutOptions = new LayoutOptions(); layoutOptions.addOption("enableCursorHotkey", false); LayoutOptions toolbarOptions = new LayoutOptions(); toolbarOptions.addOption("resizable", false); toolbarOptions.addOption("closable",...
public LayoutOptions getLayoutOptions() { if (layoutOptions == null) { this.layoutOptions = new LayoutOptions(); layoutOptions.addOption("enableCursorHotkey", false); LayoutOptions toolbarOptions = new LayoutOptions(); toolbarOptions.addOption("resizable", false); toolbarOptions.addOption("closable",...
diff --git a/src/com/softcocoa/eightpuzzle/solvers/AStarSearching.java b/src/com/softcocoa/eightpuzzle/solvers/AStarSearching.java index dc588e2..86d11d5 100644 --- a/src/com/softcocoa/eightpuzzle/solvers/AStarSearching.java +++ b/src/com/softcocoa/eightpuzzle/solvers/AStarSearching.java @@ -1,56 +1,56 @@ package com....
true
true
public ArrayList<PuzzleState> solvePuzzle() { ArrayList<PuzzleState> solvingSteps = new ArrayList<PuzzleState>(C.INITIAL_STEP_LIST_SIZE); // TODO expand PuzzleState in nodes TreeSet and keep expanded nodes in closedNodes // until we reach the goal and extract the solution path from closedNodes into solvingSteps....
public ArrayList<PuzzleState> solvePuzzle() { ArrayList<PuzzleState> solvingSteps = new ArrayList<PuzzleState>(C.INITIAL_STEP_LIST_SIZE); // TODO expand PuzzleState in nodes TreeSet and keep expanded nodes in closedNodes // until we reach the goal and extract the solution path from closedNodes into solvingSteps....
diff --git a/IDEtalk/src/idea/jetbrains/communicator/idea/toolWindow/IDEtalkToolWindow.java b/IDEtalk/src/idea/jetbrains/communicator/idea/toolWindow/IDEtalkToolWindow.java index 6b76e4081c..1fc3185bd0 100644 --- a/IDEtalk/src/idea/jetbrains/communicator/idea/toolWindow/IDEtalkToolWindow.java +++ b/IDEtalk/src/idea/jet...
true
true
protected void createToolWindowComponent() { StartupManager.getInstance(myProject).registerPostStartupActivity(new Runnable() { public void run() { initializeTransports(myProject.getName()); } }); StatusToolbar statusToolbar = ((StatusToolbar) myContainer.getComponentInstanceOfType(S...
protected void createToolWindowComponent() { StartupManager.getInstance(myProject).registerPostStartupActivity(new Runnable() { public void run() { initializeTransports(myProject.getName()); } }); StatusToolbar statusToolbar = ((StatusToolbar) myContainer.getComponentInstanceOfType(S...
diff --git a/signserver/modules/SignServer-AdminCLI/src/org/signserver/admin/cli/defaultimpl/TestKeyCommand.java b/signserver/modules/SignServer-AdminCLI/src/org/signserver/admin/cli/defaultimpl/TestKeyCommand.java index ab34b510e..5dc440604 100644 --- a/signserver/modules/SignServer-AdminCLI/src/org/signserver/admin/c...
true
true
public int execute(String... args) throws IllegalCommandArgumentsException, CommandFailureException, UnexpectedCommandFailureException { try { // Parse the command line parseCommandLine(new GnuParser().parse(OPTIONS, args)); } catch (ParseException ex) { throw new...
public int execute(String... args) throws IllegalCommandArgumentsException, CommandFailureException, UnexpectedCommandFailureException { try { // Parse the command line parseCommandLine(new GnuParser().parse(OPTIONS, args)); } catch (ParseException ex) { throw new...
diff --git a/app/EditorListener.java b/app/EditorListener.java index 65b907cd9..f881fd397 100644 --- a/app/EditorListener.java +++ b/app/EditorListener.java @@ -1,647 +1,651 @@ /* -*- mode: jde; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* Part of the Processing project - http://processing.org Copyrig...
true
true
public boolean keyPressed(KeyEvent event) { // don't do things if the textarea isn't editable if (externalEditor) return false; //deselect(); // this is for paren balancing char c = event.getKeyChar(); int code = event.getKeyCode(); //System.out.println((int)c + " " + code + " " + event); ...
public boolean keyPressed(KeyEvent event) { // don't do things if the textarea isn't editable if (externalEditor) return false; //deselect(); // this is for paren balancing char c = event.getKeyChar(); int code = event.getKeyCode(); //System.out.println((int)c + " " + code + " " + event); ...
diff --git a/tests/frontend/org/voltdb/VoltJUnitFormatter.java b/tests/frontend/org/voltdb/VoltJUnitFormatter.java index 535c21f3d..c2d2752ee 100644 --- a/tests/frontend/org/voltdb/VoltJUnitFormatter.java +++ b/tests/frontend/org/voltdb/VoltJUnitFormatter.java @@ -1,123 +1,124 @@ /* This file is part of VoltDB. * Co...
true
true
public void addError(Test arg0, Throwable arg1) { String testName = "unknown"; if (arg0 != null) { testName = arg0.toString(); testName = testName.substring(0, testName.indexOf('(')); } out.println(" " + testName + " had an error."); StackTraceElem...
public void addError(Test arg0, Throwable arg1) { String testName = "unknown"; if (arg0 != null) { testName = arg0.toString(); if (arg0.toString().indexOf('(') != -1) testName = testName.substring(0, testName.indexOf('(')); } out.println(" ...
diff --git a/samples/buttonmanager-sample/src/com/sample/buttonmanager/ButtonManagerServlet.java b/samples/buttonmanager-sample/src/com/sample/buttonmanager/ButtonManagerServlet.java index 6e1f175..f5c166b 100644 --- a/samples/buttonmanager-sample/src/com/sample/buttonmanager/ButtonManagerServlet.java +++ b/samples/but...
true
true
protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { HttpSession session = req.getSession(); session.setAttribute("url", req.getRequestURI()); session.setAttribute( "relatedUrl", "<ul><li><a href='BM/BMCreateButton'>BMCreateButton</a></li><li><a...
protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { HttpSession session = req.getSession(); session.setAttribute("url", req.getRequestURI()); session.setAttribute( "relatedUrl", "<ul><li><a href='BM/BMCreateButton'>BMCreateButton</a></li><li><a...
diff --git a/robocode.core/src/main/java/net/sf/robocode/host/RobotStatics.java b/robocode.core/src/main/java/net/sf/robocode/host/RobotStatics.java index bae1293f7..c4692dd66 100644 --- a/robocode.core/src/main/java/net/sf/robocode/host/RobotStatics.java +++ b/robocode.core/src/main/java/net/sf/robocode/host/RobotStat...
true
true
public RobotStatics(RobotSpecification robotSpecification, int duplicate, boolean isLeader, BattleRules rules, String teamName, List<String> teamMembers, int index, int contestantIndex) { IRobotRepositoryItem specification = ((IRobotRepositoryItem) HiddenAccess.getFileSpecification( robotSpecification)); shor...
public RobotStatics(RobotSpecification robotSpecification, int duplicate, boolean isLeader, BattleRules rules, String teamName, List<String> teamMembers, int index, int contestantIndex) { IRobotRepositoryItem specification = ((IRobotRepositoryItem) HiddenAccess.getFileSpecification( robotSpecification)); shor...
diff --git a/src/com/android/providers/downloads/StorageManager.java b/src/com/android/providers/downloads/StorageManager.java index 228f668..2766860 100644 --- a/src/com/android/providers/downloads/StorageManager.java +++ b/src/com/android/providers/downloads/StorageManager.java @@ -1,466 +1,467 @@ /* * Copyright (...
false
true
private synchronized void findSpace(File root, long targetBytes, int destination) throws StopRequestException { if (targetBytes == 0) { return; } if (destination == Downloads.Impl.DESTINATION_FILE_URI || destination == Downloads.Impl.DESTINATION_EXTERN...
private synchronized void findSpace(File root, long targetBytes, int destination) throws StopRequestException { if (targetBytes == 0) { return; } if (destination == Downloads.Impl.DESTINATION_FILE_URI || destination == Downloads.Impl.DESTINATION_EXTERN...
diff --git a/src/main/java/com/opentok/api/OpenTokSDK.java b/src/main/java/com/opentok/api/OpenTokSDK.java index e2b0816..69a3f71 100644 --- a/src/main/java/com/opentok/api/OpenTokSDK.java +++ b/src/main/java/com/opentok/api/OpenTokSDK.java @@ -1,211 +1,211 @@ /*! * OpenTok Java Library * http://www.tokbox.com/ *...
false
true
public String generate_token(String session_id, String role, Long expire_time, String connection_data) throws OpenTokException { if(session_id == null || session_id == "") { throw new OpenTokException("SessionId cannot be null or empty."); } String decodedSessionId = ""; ...
public String generate_token(String session_id, String role, Long expire_time, String connection_data) throws OpenTokException { if(session_id == null || session_id == "") { throw new OpenTokException("Null or empty session ID are not valid"); } String decodedSessionId = "";...
diff --git a/java/tools/src/joptimizer/optimizer/peephole/PeepGetfield.java b/java/tools/src/joptimizer/optimizer/peephole/PeepGetfield.java index 5552f829..e5819bd8 100644 --- a/java/tools/src/joptimizer/optimizer/peephole/PeepGetfield.java +++ b/java/tools/src/joptimizer/optimizer/peephole/PeepGetfield.java @@ -1,73 ...
true
true
public StmtHandle processStatement(StmtHandle stmt) { PutfieldStmt put = (PutfieldStmt) stmt.getStatement(); StmtHandle nextStmt = stmt.getNext(); if ( nextStmt == null || !(nextStmt.getStatement() instanceof GetfieldStmt) ) { return null; } GetfieldStmt get = ...
public StmtHandle processStatement(StmtHandle stmt) { PutfieldStmt put = (PutfieldStmt) stmt.getStatement(); StmtHandle nextStmt = stmt.getNext(); if ( nextStmt == null || !(nextStmt.getStatement() instanceof GetfieldStmt) ) { return null; } GetfieldStmt get = ...
diff --git a/servers/sip-servlets/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/core/dispatchers/SubsequentRequestDispatcher.java b/servers/sip-servlets/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/core/dispatchers/SubsequentRequestDispatcher.java index c066dd611..4d4e496b8 100644 --- a/servers...
true
true
public void dispatchMessage(final SipProvider sipProvider, SipServletMessageImpl sipServletMessage) throws DispatcherException { final SipFactoryImpl sipFactoryImpl = sipApplicationDispatcher.getSipFactory(); final SipServletRequestImpl sipServletRequest = (SipServletRequestImpl) sipServletMessage; if(logger.isD...
public void dispatchMessage(final SipProvider sipProvider, SipServletMessageImpl sipServletMessage) throws DispatcherException { final SipFactoryImpl sipFactoryImpl = sipApplicationDispatcher.getSipFactory(); final SipServletRequestImpl sipServletRequest = (SipServletRequestImpl) sipServletMessage; if(logger.isD...
diff --git a/src/main/java/org/gwaspi/model/MatrixMetadata.java b/src/main/java/org/gwaspi/model/MatrixMetadata.java index 71d854c5..6e9e7947 100644 --- a/src/main/java/org/gwaspi/model/MatrixMetadata.java +++ b/src/main/java/org/gwaspi/model/MatrixMetadata.java @@ -1,441 +1,443 @@ /* * Copyright (C) 2013 Universita...
true
true
public MatrixMetadata( int matrixId, String matrixFriendlyName, String matrixNetCDFName, String pathToMatrix, ImportFormat technology, String gwaspiDBVersion, String description, GenotypeEncoding gtEncoding, StrandType strand, boolean hasDictionray, int markerSetSize, int sampleSetS...
public MatrixMetadata( int matrixId, String matrixFriendlyName, String matrixNetCDFName, String pathToMatrix, ImportFormat technology, String gwaspiDBVersion, String description, GenotypeEncoding gtEncoding, StrandType strand, boolean hasDictionray, int markerSetSize, int sampleSetS...
diff --git a/src/com/tactfactory/harmony/template/SQLiteAdapterGenerator.java b/src/com/tactfactory/harmony/template/SQLiteAdapterGenerator.java index e16fc2e7..e68c976b 100644 --- a/src/com/tactfactory/harmony/template/SQLiteAdapterGenerator.java +++ b/src/com/tactfactory/harmony/template/SQLiteAdapterGenerator.java @...
false
true
public final void generateAll() { ConsoleUtils.display(">> Generate Adapter..."); for (final ClassMetadata classMeta : this.getAppMetas().getEntities().values()) { if (!classMeta.getFields().isEmpty()) { this.localNameSpace = this.getAdapter().getNameSpace( classMeta, this.getAdapter().getData())...
public final void generateAll() { ConsoleUtils.display(">> Generate Adapter..."); for (final ClassMetadata classMeta : this.getAppMetas().getEntities().values()) { if (!classMeta.getFields().isEmpty()) { this.localNameSpace = this.getAdapter().getNameSpace( classMeta, this.getAdapter().getData())...
diff --git a/src/main/java/org/apache/commons/digester3/annotations/handlers/FactoryCreateHandler.java b/src/main/java/org/apache/commons/digester3/annotations/handlers/FactoryCreateHandler.java index 2c86eabf..60f82fa0 100644 --- a/src/main/java/org/apache/commons/digester3/annotations/handlers/FactoryCreateHandler.ja...
false
true
public void handle( FactoryCreate annotation, Class<?> element, RulesBinder rulesBinder ) { FactoryCreateBuilder builder = rulesBinder.forPattern(annotation.pattern()) .withNamespaceURI(annotation.namespaceURI()) .factoryCreate() .overriddenByAttribute(annotation.attr...
public void handle( FactoryCreate annotation, Class<?> element, RulesBinder rulesBinder ) { FactoryCreateBuilder builder = rulesBinder.forPattern( annotation.pattern() ) .withNamespaceURI( annotation.namespaceURI() ) .factoryCreate() .overriddenByAttribute( annotation...
diff --git a/src/com/android/settings/wifi/WifiConfigController.java b/src/com/android/settings/wifi/WifiConfigController.java index 3efedf604..0d2429886 100644 --- a/src/com/android/settings/wifi/WifiConfigController.java +++ b/src/com/android/settings/wifi/WifiConfigController.java @@ -1,733 +1,732 @@ /* * Copyrig...
false
true
public WifiConfigController( WifiConfigUiBase parent, View view, AccessPoint accessPoint, boolean edit) { mConfigUi = parent; mInXlSetupWizard = (parent instanceof WifiConfigUiForSetupWizardXL); mView = view; mAccessPoint = accessPoint; mAccessPointSecurity = (ac...
public WifiConfigController( WifiConfigUiBase parent, View view, AccessPoint accessPoint, boolean edit) { mConfigUi = parent; mInXlSetupWizard = (parent instanceof WifiConfigUiForSetupWizardXL); mView = view; mAccessPoint = accessPoint; mAccessPointSecurity = (ac...
diff --git a/opencv/modules/java/src/java/Converters.java b/opencv/modules/java/src/java/Converters.java index 8efed8ce3..32edce866 100644 --- a/opencv/modules/java/src/java/Converters.java +++ b/opencv/modules/java/src/java/Converters.java @@ -1,514 +1,514 @@ package org.opencv; import java.util.List; import or...
true
true
public static Mat vector_Point3_to_Mat(List<Point3> pts, int typeDepth) { Mat res; int count = (pts!=null) ? pts.size() : 0; if(count>0){ switch (typeDepth){ case CvType.CV_32S: { res = new Mat(count, 1, CvType.CV_32SC3); ...
public static Mat vector_Point3_to_Mat(List<Point3> pts, int typeDepth) { Mat res; int count = (pts!=null) ? pts.size() : 0; if(count>0){ switch (typeDepth){ case CvType.CV_32S: { res = new Mat(count, 1, CvType.CV_32SC3); ...
diff --git a/org.dawnsci.plotting.draw2d/src/org/dawnsci/plotting/draw2d/swtxy/selection/RectangularHandle.java b/org.dawnsci.plotting.draw2d/src/org/dawnsci/plotting/draw2d/swtxy/selection/RectangularHandle.java index 64ccccd02..2399a2ea6 100644 --- a/org.dawnsci.plotting.draw2d/src/org/dawnsci/plotting/draw2d/swtxy/s...
true
true
public Shape createHandleShape(Figure parent, int side, double[] params) { double angle; if (parent instanceof RotatablePolygonShape) { RotatablePolygonShape pg = (RotatablePolygonShape) parent; angle = pg.getAngleDegrees(); } else { angle = 0; } location = new PrecisionPoint(params[0], params[1]); ...
public Shape createHandleShape(Figure parent, int side, double[] params) { double angle; if (parent instanceof RotatablePolygonShape) { RotatablePolygonShape pg = (RotatablePolygonShape) parent; angle = pg.getAngleDegrees(); } else { angle = 0; } location = new PrecisionPoint(params[0], params[1]); ...
diff --git a/src/com/dmdirc/logger/Logger.java b/src/com/dmdirc/logger/Logger.java index 1ae831f92..ad7bda96e 100644 --- a/src/com/dmdirc/logger/Logger.java +++ b/src/com/dmdirc/logger/Logger.java @@ -1,229 +1,229 @@ /* * Copyright (c) 2006-2007 Chris Smith, Shane Mc Cormack, Gregory Holmes * * Permission is her...
true
true
private static synchronized OutputStream createNewErrorFile(final ProgramError error) { if (errorDir == null) { errorDir = new File(Main.getConfigDir() + "errors"); if (!errorDir.exists()) { errorDir.mkdirs(); } } final String logName = err...
private static synchronized OutputStream createNewErrorFile(final ProgramError error) { if (errorDir == null || !errorDir.exists()) { errorDir = new File(Main.getConfigDir() + "errors"); if (!errorDir.exists()) { errorDir.mkdirs(); } } fina...
diff --git a/src/main/java/org/genedb/crawl/dao/proxy/Proxies.java b/src/main/java/org/genedb/crawl/dao/proxy/Proxies.java index a0860d7..fb198b2 100644 --- a/src/main/java/org/genedb/crawl/dao/proxy/Proxies.java +++ b/src/main/java/org/genedb/crawl/dao/proxy/Proxies.java @@ -1,81 +1,81 @@ package org.genedb.crawl.dao...
true
true
public static <T extends Object> T proxyRequest(JavaType type) throws CrawlException { RequestAttributes attrs = RequestContextHolder.getRequestAttributes(); Assert.isInstanceOf(ServletRequestAttributes.class, attrs); ServletRequestAttributes servletAttrs = (ServletRequestAttributes...
public static <T extends Object> T proxyRequest(JavaType type) throws CrawlException { RequestAttributes attrs = RequestContextHolder.getRequestAttributes(); Assert.isInstanceOf(ServletRequestAttributes.class, attrs); ServletRequestAttributes servletAttrs = (ServletRequestAttributes...
diff --git a/PrimeNumbers/src/PrimeNumbers.java b/PrimeNumbers/src/PrimeNumbers.java index 8d00b3a..1e92beb 100644 --- a/PrimeNumbers/src/PrimeNumbers.java +++ b/PrimeNumbers/src/PrimeNumbers.java @@ -1,14 +1,14 @@ import java.util.ArrayList; public class PrimeNumbers { public static ArrayList<Integer> generate...
true
true
public static ArrayList<Integer> generatePrimes(int n){ ArrayList<Integer> ret = new ArrayList<Integer>(); if(n != 1){ ret.add(2); } return ret; }
public static ArrayList<Integer> generatePrimes(int n){ ArrayList<Integer> ret = new ArrayList<Integer>(); if(n != 1){ ret.add(n); } return ret; }
diff --git a/src/Main.java b/src/Main.java index 938615a..41640a3 100644 --- a/src/Main.java +++ b/src/Main.java @@ -1,45 +1,45 @@ import java.util.ResourceBundle; public class Main { public static void checkOver(String[] args) throws Exception { if (args.length == 0) { throw new Exception("No Files")...
true
true
public static void main(String[] args){ long start = System.currentTimeMillis(); ResourceBundle bundle = ResourceBundle.getBundle("config"); try { checkOver(args); //information is parsed and printed here using a HistoryParser instance HistoryParser history = new HistoryParser(args); hist...
public static void main(String[] args){ long start = System.currentTimeMillis(); ResourceBundle bundle = ResourceBundle.getBundle("config"); try { checkOver(args); //information is parsed and printed here using a HistoryParser instance HistoryParser history = new HistoryParser(args); hist...
diff --git a/kovu/teamstats/api/TeamStatsAPI.java b/kovu/teamstats/api/TeamStatsAPI.java index fe79fd5..4c3aa5d 100644 --- a/kovu/teamstats/api/TeamStatsAPI.java +++ b/kovu/teamstats/api/TeamStatsAPI.java @@ -1,673 +1,681 @@ package kovu.teamstats.api; import java.io.IOException; import java.io.ObjectInputStream; ...
false
true
public void run() { if (online) { try { Packet packet = new Packet(ClientRequest.GETFRIENDS); packet.addData("session", Minecraft.getMinecraft().session.sessionId); packetSender.sendPacket(packet); String...
public void run() { if (online) { try { Packet packet = new Packet(ClientRequest.GETFRIENDS); packet.addData("session", Minecraft.getMinecraft().session.sessionId); packetSender.sendPacket(packet); String...
diff --git a/MyTracks/src/com/google/android/apps/mytracks/services/tasks/StatusAnnouncerTask.java b/MyTracks/src/com/google/android/apps/mytracks/services/tasks/StatusAnnouncerTask.java index ee1c53cc..ed6472bd 100644 --- a/MyTracks/src/com/google/android/apps/mytracks/services/tasks/StatusAnnouncerTask.java +++ b/MyT...
true
true
protected String getAnnouncement(TripStatistics tripStatistics) { boolean metricUnits = PreferencesUtils.getBoolean( context, R.string.metric_units_key, PreferencesUtils.METRIC_UNITS_DEFAULT); boolean reportSpeed = PreferencesUtils.getBoolean( context, R.string.report_speed_key, PreferencesUti...
protected String getAnnouncement(TripStatistics tripStatistics) { boolean metricUnits = PreferencesUtils.getBoolean( context, R.string.metric_units_key, PreferencesUtils.METRIC_UNITS_DEFAULT); boolean reportSpeed = PreferencesUtils.getBoolean( context, R.string.report_speed_key, PreferencesUti...
diff --git a/grails/src/java/org/codehaus/groovy/grails/orm/hibernate/ConfigurableLocalSessionFactoryBean.java b/grails/src/java/org/codehaus/groovy/grails/orm/hibernate/ConfigurableLocalSessionFactoryBean.java index 9d7b3ea7a..ca2404128 100644 --- a/grails/src/java/org/codehaus/groovy/grails/orm/hibernate/Configurable...
false
true
protected Configuration newConfiguration() { if(configClass == null) { try { configClass = this.classLoader.loadClass("org.codehaus.groovy.grails.orm.hibernate.cfg.GrailsAnnotationConfiguration"); } catch (Throwable e) { // probably not Java 5...
protected Configuration newConfiguration() { ClassLoader cl = this.classLoader != null ? this.classLoader : Thread.currentThread().getContextClassLoader(); if(configClass == null) { try { configClass = cl.loadClass("org.codehaus.groovy.grails.orm.hibernate.cfg.GrailsAnnotati...
diff --git a/src/com/bignerdranch/android/geoquiz/QuizActivity.java b/src/com/bignerdranch/android/geoquiz/QuizActivity.java index 07bcb9d..75e19e3 100644 --- a/src/com/bignerdranch/android/geoquiz/QuizActivity.java +++ b/src/com/bignerdranch/android/geoquiz/QuizActivity.java @@ -1,176 +1,178 @@ package com.bignerdran...
false
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.d(TAG, "onCreate(Bundle) called"); setContentView(R.layout.activity_quiz); mQuestionTextView = (TextView)findViewById(R.id.question_text_view); mTrueButton = (Button)findViewById(R.id.true_button); mTrueButto...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.d(TAG, "onCreate(Bundle) called"); setContentView(R.layout.activity_quiz); mQuestionTextView = (TextView)findViewById(R.id.question_text_view); mTrueButton = (Button)findViewById(R.id.true_button); mTrueButto...
diff --git a/src/AboutPanel.java b/src/AboutPanel.java index cc3fe81..95603b1 100755 --- a/src/AboutPanel.java +++ b/src/AboutPanel.java @@ -1,241 +1,241 @@ import java.awt.Color; import java.awt.Cursor; import java.awt.Font; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Inset...
true
true
public AboutPanel(ListenerHandler listenerHandler) { super(new GridBagLayout()); this.listener = listenerHandler; // this.enlLogo = new JLabel(makeImageIcon("/images/enlightened_big.png")); this.aboutUs = new JLabel("About us"); this.version = new JLabel("Version"); ...
public AboutPanel(ListenerHandler listenerHandler) { super(new GridBagLayout()); this.listener = listenerHandler; // this.enlLogo = new JLabel(makeImageIcon("/images/enlightened_big.png")); this.aboutUs = new JLabel("About us"); this.version = new JLabel("Version"); ...
diff --git a/client/net/minecraftforge/client/ForgeHooksClient.java b/client/net/minecraftforge/client/ForgeHooksClient.java index 412e1acdb..b47ae3b4f 100644 --- a/client/net/minecraftforge/client/ForgeHooksClient.java +++ b/client/net/minecraftforge/client/ForgeHooksClient.java @@ -1,308 +1,308 @@ package net.minecr...
false
true
public static boolean renderEntityItem(EntityItem entity, ItemStack item, float bobing, float rotation, Random random, RenderEngine engine, RenderBlocks renderBlocks) { IItemRenderer customRenderer = MinecraftForgeClient.getItemRenderer(item, ENTITY); if (customRenderer == null) { ...
public static boolean renderEntityItem(EntityItem entity, ItemStack item, float bobing, float rotation, Random random, RenderEngine engine, RenderBlocks renderBlocks) { IItemRenderer customRenderer = MinecraftForgeClient.getItemRenderer(item, ENTITY); if (customRenderer == null) { ...
diff --git a/src/dailymotion/cz/vity/freerapid/plugins/services/dailymotion/DailymotionRunner.java b/src/dailymotion/cz/vity/freerapid/plugins/services/dailymotion/DailymotionRunner.java index 9bb86662..8e678406 100644 --- a/src/dailymotion/cz/vity/freerapid/plugins/services/dailymotion/DailymotionRunner.java +++ b/src...
true
true
public void run() throws Exception { super.run(); logger.info("Starting download in TASK " + fileURL); addCookie(new Cookie(".dailymotion.com", "family_filter", "off", "/", 86400, false)); HttpMethod method = getGetMethod(fileURL); if (makeRedirectedRequest(method)) { ...
public void run() throws Exception { super.run(); logger.info("Starting download in TASK " + fileURL); addCookie(new Cookie(".dailymotion.com", "family_filter", "off", "/", 86400, false)); HttpMethod method = getGetMethod(fileURL); if (makeRedirectedRequest(method)) { ...
diff --git a/src/main/java/org/dita/dost/writer/KeyrefPaser.java b/src/main/java/org/dita/dost/writer/KeyrefPaser.java index ec23e74ab..1e6314119 100644 --- a/src/main/java/org/dita/dost/writer/KeyrefPaser.java +++ b/src/main/java/org/dita/dost/writer/KeyrefPaser.java @@ -1,661 +1,661 @@ /* * This file is part of th...
true
true
public void startElement(final String uri, final String localName, final String name, final Attributes atts) throws SAXException { currentElement = null; final String cls = atts.getValue(ATTRIBUTE_NAME_CLASS); for (final KeyrefInfo k: keyrefInfos) { if (k.type.matches...
public void startElement(final String uri, final String localName, final String name, final Attributes atts) throws SAXException { currentElement = null; final String cls = atts.getValue(ATTRIBUTE_NAME_CLASS); for (final KeyrefInfo k: keyrefInfos) { if (k.type.matches...
diff --git a/src/net/sf/freecol/client/control/PreGameController.java b/src/net/sf/freecol/client/control/PreGameController.java index a7990a6aa..67295368d 100644 --- a/src/net/sf/freecol/client/control/PreGameController.java +++ b/src/net/sf/freecol/client/control/PreGameController.java @@ -1,261 +1,260 @@ /** * C...
true
true
public void startGame() { Canvas canvas = freeColClient.getCanvas(); GUI gui = freeColClient.getGUI(); canvas.closeMainPanel(); canvas.closeMenus(); InGameController inGameController = freeColClient.getInGameController(); InGameInputHandler inGameInputHandler = free...
public void startGame() { Canvas canvas = freeColClient.getCanvas(); GUI gui = freeColClient.getGUI(); canvas.closeMainPanel(); canvas.closeMenus(); InGameController inGameController = freeColClient.getInGameController(); InGameInputHandler inGameInputHandler = free...
diff --git a/src/main/java/org/offlike/server/LikeController.java b/src/main/java/org/offlike/server/LikeController.java index 28e591e..9d01ae6 100644 --- a/src/main/java/org/offlike/server/LikeController.java +++ b/src/main/java/org/offlike/server/LikeController.java @@ -1,59 +1,59 @@ package org.offlike.server; i...
true
true
public ModelAndView like( @RequestParam(value = "campaign_name", required = false) String campaignName, @RequestParam(value = "lat", required = false) Double lat, @RequestParam(value = "lng", required = false) Double lng, @RequestParam(value = "accuracy", required = false) Integer accuracy, @PathVariabl...
public ModelAndView like( @RequestParam(value = "campaign_name", required = false) String campaignName, @RequestParam(value = "lat", required = false) Double lat, @RequestParam(value = "lon", required = false) Double lng, @RequestParam(value = "accuracy", required = false) Integer accuracy, @PathVariabl...
diff --git a/jruby-maven-plugin/src/main/java/de/saumya/mojo/jruby/IRBMojo.java b/jruby-maven-plugin/src/main/java/de/saumya/mojo/jruby/IRBMojo.java index 95a4cd52..c15226d4 100644 --- a/jruby-maven-plugin/src/main/java/de/saumya/mojo/jruby/IRBMojo.java +++ b/jruby-maven-plugin/src/main/java/de/saumya/mojo/jruby/IRBMoj...
true
true
public void execute() throws MojoExecutionException { super.fork = this.fork; final StringBuilder args = new StringBuilder("-S irb"); if (this.args != null) { args.append(" ").append(this.args); } execute(args.toString()); }
public void execute() throws MojoExecutionException { // make sure the whole things run in the same process super.fork = false; final StringBuilder args = new StringBuilder("-S irb"); if (this.args != null) { args.append(" ").append(this.args); } execute(a...
diff --git a/de.tud.cs.st.vespucci.diagram/src/de/tud/cs/st/vespucci/diagram/converter/DiagramConverter.java b/de.tud.cs.st.vespucci.diagram/src/de/tud/cs/st/vespucci/diagram/converter/DiagramConverter.java index ab9ad5f4..6bfd588f 100644 --- a/de.tud.cs.st.vespucci.diagram/src/de/tud/cs/st/vespucci/diagram/converter/D...
false
true
private String createDependencyFact(Connection connection, String fileName) throws Exception { Shape source = null; Shape target = null; // Get the original source (and not the red line source) if ((connection.getOriginalSource()==null) || (connection.getOriginalSource().size()==0)) source = connectio...
private String createDependencyFact(Connection connection, String fileName) throws Exception { Shape source = null; Shape target = null; // Get the original source (and not the red line source) if ((connection.getOriginalSource()==null) || (connection.getOriginalSource().size()==0)) source = connectio...
diff --git a/src/java/org/apache/fop/layoutmgr/FlowLayoutManager.java b/src/java/org/apache/fop/layoutmgr/FlowLayoutManager.java index 597032848..9c05d2ee7 100644 --- a/src/java/org/apache/fop/layoutmgr/FlowLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/FlowLayoutManager.java @@ -1,354 +1,357 @@ /* * Lic...
false
true
public List getNextKnuthElements(LayoutContext context, int alignment) { // set layout dimensions int flowIPD = getCurrentPV().getCurrentSpan().getColumnWidth(); int flowBPD = getCurrentPV().getBodyRegion().getBPD(); // currently active LM LayoutManager curLM; List ...
public List getNextKnuthElements(LayoutContext context, int alignment) { // set layout dimensions int flowIPD = getCurrentPV().getCurrentSpan().getColumnWidth(); int flowBPD = getCurrentPV().getBodyRegion().getBPD(); // currently active LM LayoutManager curLM; List ...