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/pl/agh/enrollme/model/Person.java b/src/main/java/pl/agh/enrollme/model/Person.java index b78dbc0..c40ec33 100644 --- a/src/main/java/pl/agh/enrollme/model/Person.java +++ b/src/main/java/pl/agh/enrollme/model/Person.java @@ -1,263 +1,263 @@ package pl.agh.enrollme.model; import org.sprin...
true
true
public String toString() { return "Person{" + "authorityList=" + authorityList + ", id=" + id + ", password='" + password + '\'' + ", username='" + username + '\'' + ", firstName='" + firstName + '\'' + ", lastNa...
public String toString() { return "Person{" + "authorityList=" + authorityList + ", id=" + id + ", password='" + password + '\'' + ", username='" + username + '\'' + ", firstName='" + firstName + '\'' + ", lastNa...
diff --git a/milton-api/src/main/java/com/bradmcevoy/http/http11/DefaultHttp11ResponseHandler.java b/milton-api/src/main/java/com/bradmcevoy/http/http11/DefaultHttp11ResponseHandler.java index 83d8828..b7cc124 100644 --- a/milton-api/src/main/java/com/bradmcevoy/http/http11/DefaultHttp11ResponseHandler.java +++ b/milto...
true
true
public void respondContent(Resource resource, Response response, Request request, Map<String, String> params) throws NotAuthorizedException, BadRequestException { log.debug("respondContent: " + resource.getClass()); Auth auth = request.getAuthorization(); setRespondContentCommonHeaders(respo...
public void respondContent(Resource resource, Response response, Request request, Map<String, String> params) throws NotAuthorizedException, BadRequestException { log.debug("respondContent: " + resource.getClass()); Auth auth = request.getAuthorization(); setRespondContentCommonHeaders(respo...
diff --git a/src/org/ohmage/service/MobilityServices.java b/src/org/ohmage/service/MobilityServices.java index d9b28813..a0e2e237 100644 --- a/src/org/ohmage/service/MobilityServices.java +++ b/src/org/ohmage/service/MobilityServices.java @@ -1,363 +1,364 @@ /***********************************************************...
false
true
public void classifyData( final String uploadersUsername, final List<MobilityPoint> mobilityPoints) throws ServiceException { // If the list is empty, just exit. if(mobilityPoints == null) { return; } // Create a new classifier. MobilityClassifier classifier = new MobilityClassifier(); ...
public void classifyData( final String uploadersUsername, final List<MobilityPoint> mobilityPoints) throws ServiceException { // If the list is empty, just exit. if(mobilityPoints == null) { return; } // Create a new classifier. MobilityClassifier classifier = new MobilityClassifier(); ...
diff --git a/java/telehash-core/src/main/java/org/telehash/SeeHandler.java b/java/telehash-core/src/main/java/org/telehash/SeeHandler.java index 69a2c71..b5d577a 100644 --- a/java/telehash-core/src/main/java/org/telehash/SeeHandler.java +++ b/java/telehash-core/src/main/java/org/telehash/SeeHandler.java @@ -1,92 +1,92 ...
true
true
public void execute() { logger.debug("BEGIN .see HANDLER"); for (InetSocketAddress seeAddr : telex.getSee()) { if (seeAddr.equals(switchHandler.getAddress())) { continue; } // they're making themselves visible now, awesome if (seeAddr.equals(recvLine.getAd...
public void execute() { logger.debug("BEGIN .see HANDLER"); for (InetSocketAddress seeAddr : telex.getSee()) { if (seeAddr.equals(switchHandler.getAddress())) { continue; } // they're making themselves visible now, awesome if (seeAddr.equals(recvLine.getAd...
diff --git a/Java_CCN/test/ccn/data/query/InterestEndToEndTest.java b/Java_CCN/test/ccn/data/query/InterestEndToEndTest.java index 5c1e82637..8a62873f5 100644 --- a/Java_CCN/test/ccn/data/query/InterestEndToEndTest.java +++ b/Java_CCN/test/ccn/data/query/InterestEndToEndTest.java @@ -1,66 +1,69 @@ package test.ccn.dat...
true
true
public void testInterestEndToEnd() throws MalformedContentNameStringException, IOException, InterruptedException { getLibrary.registerFilter(ContentName.fromNative(_prefix), this); _interestSent = new Interest(ContentName.fromNative(_prefix + "/simpleTest")); doTest(); _interestSent = new Interest(ContentName....
public void testInterestEndToEnd() throws MalformedContentNameStringException, IOException, InterruptedException { getLibrary.registerFilter(ContentName.fromNative(_prefix), this); _interestSent = new Interest(ContentName.fromNative(_prefix + "/simpleTest")); doTest(); _interestSent = new Interest(ContentName....
diff --git a/src/a2/Lookup.java b/src/a2/Lookup.java index a3ebd84..4dc213e 100644 --- a/src/a2/Lookup.java +++ b/src/a2/Lookup.java @@ -1,42 +1,46 @@ package a2; import java.io.IOException; import java.io.InputStreamReader; import java.util.HashMap; import java.util.Map; import org.apache.commons.io.IOUtils;...
true
true
public static HashMap<Integer,Integer> get(){ HashMap<Integer,Integer> ret = new HashMap<Integer,Integer>(); CSVReader reader = null; try{ reader = new CSVReader(new InputStreamReader(new Lookup().getClass().getClassLoader() .getResourceAsStream("resources/lookup.csv"))); String [] nextLine; ...
public static HashMap<Integer,Integer> get(){ HashMap<Integer,Integer> ret = new HashMap<Integer,Integer>(); CSVReader reader = null; try{ reader = new CSVReader( new InputStreamReader( new Lookup() .getClass() .getClassLoader() .getResourceAsStream("resources/lookup.csv"))); ...
diff --git a/tests/src/com/android/providers/contacts/GlobalSearchSupportTest.java b/tests/src/com/android/providers/contacts/GlobalSearchSupportTest.java index 40ac1bab..066c47e8 100644 --- a/tests/src/com/android/providers/contacts/GlobalSearchSupportTest.java +++ b/tests/src/com/android/providers/contacts/GlobalSear...
false
true
public void testSearchSuggestionsByPhoneNumberOnPhone() throws Exception { getContactsProvider().setIsPhone(true); ContentValues values = new ContentValues(); Uri searchUri = new Uri.Builder().scheme("content").authority(ContactsContract.AUTHORITY) .appendPath(SearchManager...
public void testSearchSuggestionsByPhoneNumberOnPhone() throws Exception { getContactsProvider().setIsPhone(true); ContentValues values = new ContentValues(); Uri searchUri = new Uri.Builder().scheme("content").authority(ContactsContract.AUTHORITY) .appendPath(SearchManager...
diff --git a/webbeans-ri/src/main/java/org/jboss/webbeans/introspector/AnnotatedType.java b/webbeans-ri/src/main/java/org/jboss/webbeans/introspector/AnnotatedType.java index 7a306395a..6a58b1bee 100644 --- a/webbeans-ri/src/main/java/org/jboss/webbeans/introspector/AnnotatedType.java +++ b/webbeans-ri/src/main/java/or...
true
true
public AnnotatedType<Object> getSuperclass();
public AnnotatedType<?> getSuperclass();
diff --git a/org.envirocar.app/src/org/envirocar/app/protocol/drivedeck/DriveDeckSportConnector.java b/org.envirocar.app/src/org/envirocar/app/protocol/drivedeck/DriveDeckSportConnector.java index b917bfe7..0edfa1d8 100644 --- a/org.envirocar.app/src/org/envirocar/app/protocol/drivedeck/DriveDeckSportConnector.java +++...
true
true
public CommonCommand processResponse(byte[] bytes, int start, int count) { if (count <= 0) return null; char type = (char) bytes[start+0]; if (type == CycleCommand.RESPONSE_PREFIX_CHAR) { if ((char) bytes[start+4] == CycleCommand.TOKEN_SEPARATOR_CHAR) return null; String pid = new String...
public CommonCommand processResponse(byte[] bytes, int start, int count) { if (count <= 0) return null; char type = (char) bytes[start+0]; if (type == CycleCommand.RESPONSE_PREFIX_CHAR) { if ((char) bytes[start+4] == CycleCommand.TOKEN_SEPARATOR_CHAR) return null; String pid = new String...
diff --git a/trauma-backend/src/main/java/com/epam/pf/trauma/backend/HomeController.java b/trauma-backend/src/main/java/com/epam/pf/trauma/backend/HomeController.java index 6ccbac8..03a30c1 100644 --- a/trauma-backend/src/main/java/com/epam/pf/trauma/backend/HomeController.java +++ b/trauma-backend/src/main/java/com/ep...
true
true
public Collection<Marker> getMarkers(@RequestParam(value = "central-lan", required=false ) float centrallan, @RequestParam(value = "central-lng" ,required=false) float centrallng, @RequestParam(value = "central-rad", required=false) float centralrad){ if(centrallan==0) return markerService.getMarkers(); else ...
public Collection<Marker> getMarkers(@RequestParam(value = "central-lan", required=false, defaultValue="999999999") float centrallan, @RequestParam(value = "central-lng" ,required=false,defaultValue="999999999") float centrallng, @RequestParam(value = "central-rad", required=false,defaultValue="999999999") float ce...
diff --git a/source/de/anomic/http/httpdProxyHandler.java b/source/de/anomic/http/httpdProxyHandler.java index dbe1a84f8..56292465b 100644 --- a/source/de/anomic/http/httpdProxyHandler.java +++ b/source/de/anomic/http/httpdProxyHandler.java @@ -1,1308 +1,1321 @@ // httpdProxyHandler.java // ----------------------- ...
false
true
private void fulfillRequestFromWeb(Properties conProp, URL url,String ext, httpHeader requestHeader, httpHeader cachedResponseHeader, File cacheFile, OutputStream respond) { GZIPOutputStream gzippedOut = null; httpChunkedOutputStream chunkedOut = null; OutputStream hfos = null; ...
private void fulfillRequestFromWeb(Properties conProp, URL url,String ext, httpHeader requestHeader, httpHeader cachedResponseHeader, File cacheFile, OutputStream respond) { GZIPOutputStream gzippedOut = null; httpChunkedOutputStream chunkedOut = null; OutputStream hfos = null; ...
diff --git a/src/main/java/net/frontlinesms/ui/i18n/InternationalisationUtils.java b/src/main/java/net/frontlinesms/ui/i18n/InternationalisationUtils.java index 706b8f7..5bf1bed 100644 --- a/src/main/java/net/frontlinesms/ui/i18n/InternationalisationUtils.java +++ b/src/main/java/net/frontlinesms/ui/i18n/Internationali...
true
true
public static final Map<String, String> loadTextResources(String identifier, InputStream inputStream) throws IOException { HashMap<String, String> i18nStrings = new HashMap<String, String>(); BufferedReader in = new BufferedReader(new InputStreamReader(inputStream, CHARSET_UTF8)); String line; while((line = in...
public static final Map<String, String> loadTextResources(String identifier, InputStream inputStream) throws IOException { HashMap<String, String> i18nStrings = new HashMap<String, String>(); BufferedReader in = new BufferedReader(new InputStreamReader(inputStream, CHARSET_UTF8)); String line; while((line = in...
diff --git a/src/main/java/hudson/plugins/plot/Plot.java b/src/main/java/hudson/plugins/plot/Plot.java index 3da33c0..cb23db2 100644 --- a/src/main/java/hudson/plugins/plot/Plot.java +++ b/src/main/java/hudson/plugins/plot/Plot.java @@ -1,822 +1,824 @@ /* * Copyright (c) 2007-2009 Yahoo! Inc. All rights reserved. ...
true
true
private void generatePlot(boolean forceGenerate) { class Label implements Comparable<Label> { final private Integer buildNum; final private String buildDate; final private String text; public Label(String buildNum, String buildTime, String text) { ...
private void generatePlot(boolean forceGenerate) { class Label implements Comparable<Label> { final private Integer buildNum; final private String buildDate; final private String text; public Label(String buildNum, String buildTime, String text) { ...
diff --git a/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/smoke/AddRemoveJSFCapabilitiesTest.java b/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/smoke/AddRemoveJSFCapabilitiesTest.java index 802928db3..91134b5f5 100644 --- a/tests/org.jboss.tools.jsf.ui.bot.test...
true
true
private void importJsfProject() { String[] parts = System.getProperty("eclipse.commands").split("\n"); int index = 0; for (index = 0;parts.length > index + 1 && !parts[index].equals("-data");index++){ // do nothing just go through } if (parts.length > index + 1){ String webXmlF...
private void importJsfProject() { String[] parts = System.getProperty("eclipse.commands").split("\n"); int index = 0; for (index = 0;parts.length > index + 1 && !parts[index].equals("-data");index++){ // do nothing just go through } if (parts.length > index + 1){ String webXmlF...
diff --git a/modules/shell/src/main/java/org/novelang/outfit/shell/AgentFileInstaller.java b/modules/shell/src/main/java/org/novelang/outfit/shell/AgentFileInstaller.java index 7df72e9d..498e78d7 100644 --- a/modules/shell/src/main/java/org/novelang/outfit/shell/AgentFileInstaller.java +++ b/modules/shell/src/main/java...
true
true
private AgentFileInstaller() throws IOException { final String versionOverride = System.getProperty( VERSIONOVERRIDE_SYSTEMPROPERTYNAME ) ; if( versionOverride == null ) { final URL versionResource = AgentFileInstaller.class.getResource( VERSION_RESOURCE_NAME ) ; version = Resources.toString( ver...
private AgentFileInstaller() throws IOException { final String versionOverride = System.getProperty( VERSIONOVERRIDE_SYSTEMPROPERTYNAME ) ; if( versionOverride == null ) { final URL versionResource = AgentFileInstaller.class.getResource( VERSION_RESOURCE_NAME ) ; if( versionResource == null ) { ...
diff --git a/disambiguation-work/src/main/java/pl/edu/icm/coansys/disambiguation/work/DuplicateWorkDetectReduceService.java b/disambiguation-work/src/main/java/pl/edu/icm/coansys/disambiguation/work/DuplicateWorkDetectReduceService.java index 7d98dda6..30843c10 100644 --- a/disambiguation-work/src/main/java/pl/edu/icm/...
false
true
void process(Text key, Reducer<Text, BytesWritable, Text, BytesWritable>.Context context, List<DocumentWrapper> documents, int level, int maxNumberOfDocuments) throws IOException, InterruptedException { String dashes = getDashes(level); log.info(dashes+ "start process, key: {}, number of documents...
void process(Text key, Reducer<Text, BytesWritable, Text, BytesWritable>.Context context, List<DocumentWrapper> documents, int level, int maxNumberOfDocuments) throws IOException, InterruptedException { String dashes = getDashes(level); log.info(dashes+ "start process, key: {}, number of documents...
diff --git a/src/main/java/hudson/plugins/collabnet/auth/CNAuthentication.java b/src/main/java/hudson/plugins/collabnet/auth/CNAuthentication.java index 65149f7..a426062 100644 --- a/src/main/java/hudson/plugins/collabnet/auth/CNAuthentication.java +++ b/src/main/java/hudson/plugins/collabnet/auth/CNAuthentication.java...
false
true
private void setupAuthorities() { boolean isSuper = false; try { isSuper = myself.isSuperUser(); } catch (RemoteException re) { log.info("setupAuthoritites: failed with RemoteException: " + re.getMessage()); } if (isSuper) { ...
private void setupAuthorities() { boolean isSuper = false; try { isSuper = myself.isSuperUser(); } catch (RemoteException re) { log.info("setupAuthoritites: failed with RemoteException: " + re.getMessage()); } if (isSuper) { ...
diff --git a/src/network/Communicator.java b/src/network/Communicator.java index 398ba94..56aa776 100644 --- a/src/network/Communicator.java +++ b/src/network/Communicator.java @@ -1,167 +1,167 @@ package network; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOExceptio...
true
true
public boolean connect(String IP, int PORT) { try { chan = SocketChannel.open(); chan.configureBlocking(false); selector = Selector.open(); chan.register(selector, SelectionKey.OP_READ, new DataContainer()); } catch (Exception e) { System.err.println("SocketChannel Failed"); return false; ...
public boolean connect(String IP, int PORT) { try { chan = SocketChannel.open(); chan.configureBlocking(false); selector = Selector.open(); chan.register(selector, SelectionKey.OP_READ, new DataContainer()); } catch (Exception e) { System.err.println("SocketChannel Failed"); return false; ...
diff --git a/src/org/intellij/erlang/runner/ErlangRunningState.java b/src/org/intellij/erlang/runner/ErlangRunningState.java index 51162a67..4efdab6e 100644 --- a/src/org/intellij/erlang/runner/ErlangRunningState.java +++ b/src/org/intellij/erlang/runner/ErlangRunningState.java @@ -1,61 +1,62 @@ package org.intellij.e...
false
true
private GeneralCommandLine getCommand(Sdk sdk) throws ExecutionException { final GeneralCommandLine commandLine = new GeneralCommandLine(); VirtualFile moduleOutputDirectory = CompilerPaths.getModuleOutputDirectory(module, false); String erl = FileUtil.toSystemDependentName(ErlangSdkType.getTopLevelExecut...
private GeneralCommandLine getCommand(Sdk sdk) throws ExecutionException { final GeneralCommandLine commandLine = new GeneralCommandLine(); VirtualFile moduleOutputDirectory = CompilerPaths.getModuleOutputDirectory(module, false); String erl = FileUtil.toSystemDependentName(ErlangSdkType.getTopLevelExecut...
diff --git a/src/main/java/dal/admin/ImageStore.java b/src/main/java/dal/admin/ImageStore.java index b59cb74..51779be 100644 --- a/src/main/java/dal/admin/ImageStore.java +++ b/src/main/java/dal/admin/ImageStore.java @@ -1,73 +1,73 @@ package dal.admin; import java.sql.Connection; import java.sql.PreparedStatement...
true
true
public synchronized ArrayList<Image> getLast(int numberOfRows) { if(numberOfRows < 0) { throw new IllegalArgumentException(); } ArrayList<Image> images = new ArrayList<Image>(); try { PreparedStatement statement = conn.prepareStatement( "SELECT id, url, external_id, description, created_time "+ ...
public synchronized ArrayList<Image> getLast(int numberOfRows) { if(numberOfRows < 0) { throw new IllegalArgumentException(); } ArrayList<Image> images = new ArrayList<Image>(); try { PreparedStatement statement = conn.prepareStatement( "SELECT id, url, external_id, description, created_time" + ...
diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFPicture.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFPicture.java index 66a6d9c5a..728a8dd93 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFPicture.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFPicture.java @@ -1,323 +...
false
true
public XSSFClientAnchor getPreferredSize(double scale){ XSSFClientAnchor anchor = (XSSFClientAnchor)getAnchor(); XSSFPictureData data = getPictureData(); Dimension size = getImageDimension(data.getPackagePart(), data.getPictureType()); double scaledWidth = size.getWidth() * scale; ...
public XSSFClientAnchor getPreferredSize(double scale){ XSSFClientAnchor anchor = (XSSFClientAnchor)getAnchor(); XSSFPictureData data = getPictureData(); Dimension size = getImageDimension(data.getPackagePart(), data.getPictureType()); double scaledWidth = size.getWidth() * scale; ...
diff --git a/src/net/apertoire/vaultee/Server.java b/src/net/apertoire/vaultee/Server.java index 72ae2c0..da418ce 100644 --- a/src/net/apertoire/vaultee/Server.java +++ b/src/net/apertoire/vaultee/Server.java @@ -1,129 +1,129 @@ /* * Copyright 2011-2012 the original author or authors. * * Licensed under the Apac...
true
true
public void handle(final HttpServerRequest req) { if (req.path.equals("/")) { req.response.sendFile(indexPage); } else if (req.path.equals("/auth")) { req.bodyHandler(new Handler<Buffer>() { @Override public void handle(Buffer buff) { String contentType = req.head...
public void handle(final HttpServerRequest req) { if (req.path.equals("/")) { req.response.sendFile(indexPage); } else if (req.path.equals("/auth")) { req.bodyHandler(new Handler<Buffer>() { @Override public void handle(Buffer buff) { String contentType = req.head...
diff --git a/jmi-server/src/main/java/com/socialcomputing/wps/server/plandictionary/connectors/datastore/DatastoreAffinityGroupReader.java b/jmi-server/src/main/java/com/socialcomputing/wps/server/plandictionary/connectors/datastore/DatastoreAffinityGroupReader.java index 82e5848..efa9040 100644 --- a/jmi-server/src/ma...
false
true
public StringAndFloat[] retrieveAffinityGroup(String id, int affinityThreshold, int max) throws JMIException { StringAndFloat[] result = null; float maxPond = Float.MIN_VALUE; int i = 0; switch( m_entityConnector.m_planType) { case AnalysisProfile.GLOBAL_PLAN: LOG.debug("global plan"); if( m...
public StringAndFloat[] retrieveAffinityGroup(String id, int affinityThreshold, int max) throws JMIException { StringAndFloat[] result = null; float maxPond = Float.MIN_VALUE; int i = 0; switch( m_entityConnector.m_planType) { case AnalysisProfile.GLOBAL_PLAN: LOG.debug("global plan"); if( m...
diff --git a/javafx.editor/src/org/netbeans/modules/javafx/editor/completion/environment/FunctionValueEnvironment.java b/javafx.editor/src/org/netbeans/modules/javafx/editor/completion/environment/FunctionValueEnvironment.java index 518677f4..b3840742 100644 --- a/javafx.editor/src/org/netbeans/modules/javafx/editor/co...
false
true
protected void inside(JFXFunctionValue val) throws IOException { if (LOGGABLE) log("inside JFXFunctionValue " + val); JFXBlock bl = val.getBodyExpression(); if (bl != null) { ExpressionTree last = null; for (ExpressionTree stat : bl.getStatements()) { ...
protected void inside(JFXFunctionValue val) throws IOException { if (LOGGABLE) log("inside JFXFunctionValue " + val); JFXBlock bl = val.getBodyExpression(); if (bl != null) { ExpressionTree last = null; for (ExpressionTree stat : bl.getStatements()) { ...
diff --git a/src/main/java/org/jboss/cluster/proxy/container/MCMPAdapter.java b/src/main/java/org/jboss/cluster/proxy/container/MCMPAdapter.java index 0003184..280fde1 100644 --- a/src/main/java/org/jboss/cluster/proxy/container/MCMPAdapter.java +++ b/src/main/java/org/jboss/cluster/proxy/container/MCMPAdapter.java @@ ...
false
true
private void process_ping(Request req, Response res) throws Exception { System.out.println("process_ping"); Parameters params = req.getParameters(); if (params == null) { process_error(TYPESYNTAX, SMESPAR, res); return; } String jvmRoute = null; String scheme = null; String host = null; String po...
private void process_ping(Request req, Response res) throws Exception { System.out.println("process_ping"); Parameters params = req.getParameters(); if (params == null) { process_error(TYPESYNTAX, SMESPAR, res); return; } String jvmRoute = null; String scheme = null; String host = null; String po...
diff --git a/CubicTestSeleniumExporter/src/main/java/org/cubictest/exporters/selenium/runner/converters/TransitionConverter.java b/CubicTestSeleniumExporter/src/main/java/org/cubictest/exporters/selenium/runner/converters/TransitionConverter.java index 54e4155a..296e27b4 100644 --- a/CubicTestSeleniumExporter/src/main/...
true
true
private String handleUserInteraction(SeleniumHolder seleniumHolder, UserInteraction userInteraction) { IActionElement element = userInteraction.getElement(); ActionType actionType = userInteraction.getActionType(); boolean withinFrame = false; if(element instanceof PageElement && seleniumHolder.isPageElementW...
private String handleUserInteraction(SeleniumHolder seleniumHolder, UserInteraction userInteraction) { IActionElement element = userInteraction.getElement(); ActionType actionType = userInteraction.getActionType(); boolean withinFrame = false; if(element instanceof PageElement && seleniumHolder.isPageElementW...
diff --git a/src/main/java/archimulator/sim/uncore/cache/partitioning/CPIBasedCachePartitioningHelper.java b/src/main/java/archimulator/sim/uncore/cache/partitioning/CPIBasedCachePartitioningHelper.java index 896e24be..f172ac4f 100644 --- a/src/main/java/archimulator/sim/uncore/cache/partitioning/CPIBasedCachePartition...
true
true
protected void newInterval() { List<Integer> partition = new ArrayList<Integer>(); List<Double> cyclePerInstructions = new ArrayList<Double>(); for(int threadId = 0; threadId < this.getNumThreads(); threadId++) { if (!committedInstructions.containsKey(threadId)) { ...
protected void newInterval() { List<Integer> partition = new ArrayList<Integer>(); List<Double> cyclePerInstructions = new ArrayList<Double>(); for(int threadId = 0; threadId < this.getNumThreads(); threadId++) { if (!committedInstructions.containsKey(threadId)) { ...
diff --git a/src/com/jmex/model/XMLparser/Converters/ObjToJme.java b/src/com/jmex/model/XMLparser/Converters/ObjToJme.java index 90b8ba347..914d0deb9 100755 --- a/src/com/jmex/model/XMLparser/Converters/ObjToJme.java +++ b/src/com/jmex/model/XMLparser/Converters/ObjToJme.java @@ -1,431 +1,431 @@ /* * Copyright (c) 2...
true
true
private void processLine(String s) throws IOException { if (s==null) return ; if (s.length()==0) return; String[] parts=s.split(" "); parts=removeEmpty(parts); if ("#".equals(parts[0])) return; if ("v".equals(parts[0])){ addVertextoList(parts); ...
private void processLine(String s) throws IOException { if (s==null) return ; if (s.length()==0) return; String[] parts=s.split(" "); parts=removeEmpty(parts); if ("#".equals(parts[0])) return; if ("v".equals(parts[0])){ addVertextoList(parts); ...
diff --git a/src/streamfish/Reg_ordre.java b/src/streamfish/Reg_ordre.java index ac02f89..8e217fb 100644 --- a/src/streamfish/Reg_ordre.java +++ b/src/streamfish/Reg_ordre.java @@ -1,501 +1,501 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package streamfish...
false
true
private void initComponents() { jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jLabel1 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jComboBox1 = new javax.swing.JComboBox(); j...
private void initComponents() { jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jLabel1 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jComboBox1 = new javax.swing.JComboBox(); j...
diff --git a/Aoag/src/com/turlutu/Bonus.java b/Aoag/src/com/turlutu/Bonus.java index f1396af..9c4d717 100644 --- a/Aoag/src/com/turlutu/Bonus.java +++ b/Aoag/src/com/turlutu/Bonus.java @@ -1,108 +1,108 @@ package com.turlutu; import javax.microedition.khronos.opengles.GL10; import android.util.Log; import com...
true
true
public Bonus(GameUI game) { super(0, 1); mGame = game; mUsed = false; mType = (int) (Math.random() * (nbtype)); sndTouch = mGame.sndBonus[mType]; mSprite=new AngleSprite(mGame.mBonusLayout[mType]); addCircleCollider(new BallCollider(0, 0, radius)); }
public Bonus(GameUI game) { super(0, 1); mGame = game; mUsed = false; mType = (int) (Math.random() * (nbtype)) + 1; sndTouch = mGame.sndBonus[mType]; mSprite=new AngleSprite(mGame.mBonusLayout[mType]); addCircleCollider(new BallCollider(0, 0, radius)); }
diff --git a/src/main/java/com/github/anba/es6draft/runtime/objects/ArrayPrototype.java b/src/main/java/com/github/anba/es6draft/runtime/objects/ArrayPrototype.java index ca223b46..35f26881 100755 --- a/src/main/java/com/github/anba/es6draft/runtime/objects/ArrayPrototype.java +++ b/src/main/java/com/github/anba/es6dra...
false
true
public static Object splice(ExecutionContext cx, Object thisValue, Object start, Object deleteCount, Object... items) { ScriptObject o = ToObject(cx, thisValue); ScriptObject a = ArrayCreate(cx, 0); Object lenVal = Get(cx, o, "length"); long len = ...
public static Object splice(ExecutionContext cx, Object thisValue, @Optional(Optional.Default.NONE) Object start, @Optional(Optional.Default.NONE) Object deleteCount, Object... items) { ScriptObject o = ToObject(cx, thisValue); ScriptObject a = ArrayCreate...
diff --git a/src/actor/ship/weapon/AlternatingWeapon.java b/src/actor/ship/weapon/AlternatingWeapon.java index de55573..1a2a64f 100644 --- a/src/actor/ship/weapon/AlternatingWeapon.java +++ b/src/actor/ship/weapon/AlternatingWeapon.java @@ -1,36 +1,36 @@ package actor.ship.weapon; import actor.ship.projectile.Proje...
true
true
public void shoot(actor.Actor ship) { //calculates time passed in milliseconds if(hasNoAmmo()) return; if((System.currentTimeMillis() - getLastShotTime()) < coolDown) return; actor.ship.projectile.Projectile p = newProjectile(ship); if( currentAmmo % ...
public void shoot(actor.Actor ship) { //calculates time passed in milliseconds if(hasNoAmmo()) return; if((System.currentTimeMillis() - getLastShotTime()) < coolDown) return; actor.ship.projectile.Projectile p = newProjectile(ship); if( currentAmmo % ...
diff --git a/new/src/main/java/org/jboss/modules/ModuleClassLoader.java b/new/src/main/java/org/jboss/modules/ModuleClassLoader.java index 46ef7db4..b94730ee 100644 --- a/new/src/main/java/org/jboss/modules/ModuleClassLoader.java +++ b/new/src/main/java/org/jboss/modules/ModuleClassLoader.java @@ -1,324 +1,324 @@ /* ...
true
true
protected Class<?> loadClass(String className, boolean resolve) throws ClassNotFoundException { if (className.startsWith("java.")) { // always delegate to super return super.loadClass(className, resolve); } if (Thread.holdsLock(this) && Thread.currentThread() != Loade...
protected Class<?> loadClass(String className, boolean resolve) throws ClassNotFoundException { if (className.startsWith("java.")) { // always delegate to super return super.loadClass(className, resolve); } if (Thread.holdsLock(this) && Thread.currentThread() != Loade...
diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/api/LocalizedMessage.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/api/LocalizedMessage.java index 2314bbb0f..e6adad0b9 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/api/LocalizedMessage.java +++ b/src/checkstyle/com/puppycrawl/tools/chec...
false
true
public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof LocalizedMessage)) return false; final LocalizedMessage localizedMessage = (LocalizedMessage) o; if (mColNo != localizedMessage.mColNo) return false; if (mLineNo != localizedMessage.mLineNo...
public boolean equals(Object aObject) { if (this == aObject) { return true; } if (!(aObject instanceof LocalizedMessage)) { return false; } final LocalizedMessage localizedMessage = (LocalizedMessage) aObject; if (mColNo != localizedMessa...
diff --git a/user/src/com/google/gwt/i18n/rebind/AbstractLocalizableImplCreator.java b/user/src/com/google/gwt/i18n/rebind/AbstractLocalizableImplCreator.java index 71104daa3..b4c4d4dc1 100644 --- a/user/src/com/google/gwt/i18n/rebind/AbstractLocalizableImplCreator.java +++ b/user/src/com/google/gwt/i18n/rebind/Abstrac...
false
true
static String generateConstantOrMessageClass(TreeLogger logger, TreeLogger deprecatedLogger, GeneratorContext context, String locale, JClassType targetClass) throws UnableToCompleteException { TypeOracle oracle = context.getTypeOracle(); JClassType constantsClass; JClassType messagesClass; ...
static String generateConstantOrMessageClass(TreeLogger logger, TreeLogger deprecatedLogger, GeneratorContext context, String locale, JClassType targetClass) throws UnableToCompleteException { TypeOracle oracle = context.getTypeOracle(); JClassType constantsClass; JClassType messagesClass; ...
diff --git a/src/main/java/nl/surfnet/bod/nsi/v2/ConnectionsV2.java b/src/main/java/nl/surfnet/bod/nsi/v2/ConnectionsV2.java index 8e0bc4f6d..6ebe62e5e 100644 --- a/src/main/java/nl/surfnet/bod/nsi/v2/ConnectionsV2.java +++ b/src/main/java/nl/surfnet/bod/nsi/v2/ConnectionsV2.java @@ -1,73 +1,73 @@ /** * Copyright (c...
true
true
public QuerySummaryResultType apply(ConnectionV2 connection) { return new QuerySummaryResultType() .withRequesterNSA("requester") .withCriteria(new ReservationConfirmCriteriaType() .withBandwidth(connection.getDesiredBandwidth()) .withSchedule(new ScheduleType() ...
public QuerySummaryResultType apply(ConnectionV2 connection) { return new QuerySummaryResultType() .withRequesterNSA("requester") .withCriteria(new QuerySummaryResultCriteriaType() .withBandwidth(connection.getDesiredBandwidth()) .withSchedule(new ScheduleType() ...
diff --git a/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/_Suite.java b/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/_Suite.java index 4a6313429..fd2dcd9fd 100644 --- a/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/_Suite.java +++ b/java/testing/org/apache/d...
true
true
public static Test suite() throws Exception { TestSuite suite = new TestSuite("derbynet"); suite.addTest(PrepareStatementTest.suite()); suite.addTest(NetworkServerControlApiTest.suite()); suite.addTest(ShutDownDBWhenNSShutsDownTest.suite()); suite.addTest(DRDAProtocolTest.su...
public static Test suite() throws Exception { TestSuite suite = new TestSuite("derbynet"); suite.addTest(PrepareStatementTest.suite()); suite.addTest(NetworkServerControlApiTest.suite()); suite.addTest(ShutDownDBWhenNSShutsDownTest.suite()); suite.addTest(DRDAProtocolTest.su...
diff --git a/src/main/java/ch/tkuhn/hashuri/rdf/StatementComparator.java b/src/main/java/ch/tkuhn/hashuri/rdf/StatementComparator.java index 825c9fd..0d1e193 100644 --- a/src/main/java/ch/tkuhn/hashuri/rdf/StatementComparator.java +++ b/src/main/java/ch/tkuhn/hashuri/rdf/StatementComparator.java @@ -1,103 +1,105 @@ pa...
true
true
private int compareLiteral(Literal l1, Literal l2) { String s1 = l1.stringValue(); String s2 = l2.stringValue(); if (!s1.equals(s2)) { return s1.compareTo(s2); } s1 = l1.getDatatype().toString(); s2 = l2.getDatatype().toString(); if (s1 == null && s2 != null) { return -1; } else if (s1 != null &&...
private int compareLiteral(Literal l1, Literal l2) { String s1 = l1.stringValue(); String s2 = l2.stringValue(); if (!s1.equals(s2)) { return s1.compareTo(s2); } s1 = null; s2 = null; if (l1.getDatatype() != null) s1 = l1.getDatatype().toString(); if (l2.getDatatype() != null) s2 = l2.getDatatype()....
diff --git a/BlueFinderRS/src/knn/clean/BlueFinderEvaluation.java b/BlueFinderRS/src/knn/clean/BlueFinderEvaluation.java index 06aa21e..98bcfac 100644 --- a/BlueFinderRS/src/knn/clean/BlueFinderEvaluation.java +++ b/BlueFinderRS/src/knn/clean/BlueFinderEvaluation.java @@ -1,140 +1,140 @@ package knn.clean; import j...
false
true
private void processTest(int proportionOfConnectedPairs, int kValue, int testRowsNumber, String resultTableName) throws ClassNotFoundException, SQLException { ResultSet resultSet = WikipediaConnector.getRandomProportionOfConnectedPairs(proportionOfConnectedPairs); String relatedUFrom = "u_from=0 "; Str...
private void processTest(int proportionOfConnectedPairs, int kValue, int testRowsNumber, String resultTableName) throws ClassNotFoundException, SQLException { ResultSet resultSet = WikipediaConnector.getRandomProportionOfConnectedPairs(proportionOfConnectedPairs); String relatedUFrom = "u_from=0 "; Str...
diff --git a/src/main/java/org/linkedgov/questions/services/impl/QueryDataServiceImpl.java b/src/main/java/org/linkedgov/questions/services/impl/QueryDataServiceImpl.java index 7a23210..4b05d66 100644 --- a/src/main/java/org/linkedgov/questions/services/impl/QueryDataServiceImpl.java +++ b/src/main/java/org/linkedgov/q...
true
true
public List<Triple> executeQuery(Query query, Integer limit, Integer offset, String orderBy) { final List<Triple> triples = new ArrayList<Triple>(); if (!query.isNull()) { final String sparqlString = query.toSparqlString(); log.info("SPARQL ASKED:{}", sparqlString)...
public List<Triple> executeQuery(Query query, Integer limit, Integer offset, String orderBy) { final List<Triple> triples = new ArrayList<Triple>(); if (!query.isNull()) { final String sparqlString = query.toSparqlString(); log.info("SPARQL ASKED:{}", sparqlString)...
diff --git a/src/com/icecondor/nest/Pigeon.java b/src/com/icecondor/nest/Pigeon.java index 44f9682..48170c7 100644 --- a/src/com/icecondor/nest/Pigeon.java +++ b/src/com/icecondor/nest/Pigeon.java @@ -1,528 +1,530 @@ package com.icecondor.nest; import java.io.IOException; import java.net.URISyntaxException; impor...
true
true
public void onCreate() { Log.i(appTag, "*** service created."); super.onCreate(); /* Database */ rssdb = new GeoRss(this); rssdb.open(); rssdb.log("Pigon created"); /* GPS */ locationManager = (LocationManager) getSystemService(LOCATION_SERVICE); Log.i(appTag, "GPS provider enabled: "+locationMan...
public void onCreate() { Log.i(appTag, "*** service created."); super.onCreate(); /* Database */ rssdb = new GeoRss(this); rssdb.open(); rssdb.log("Pigon created"); /* GPS */ locationManager = (LocationManager) getSystemService(LOCATION_SERVICE); Log.i(appTag, "GPS provider enabled: "+locationMan...
diff --git a/src/TreeAutomata/FiniteTreesTable.java b/src/TreeAutomata/FiniteTreesTable.java index 07b76ef..7c4480a 100644 --- a/src/TreeAutomata/FiniteTreesTable.java +++ b/src/TreeAutomata/FiniteTreesTable.java @@ -1,88 +1,88 @@ package TreeAutomata; import java.util.*; import java.util.Map.Entry; public clas...
true
true
public FiniteTreesTable(HashSet<Transition> tr, HashSet<Integer> ac) { FiniteTreesTable = new HashMap<Integer, HashSet<HashSet<Integer>>>(); HashSet<Transition> transRelWorkCopy = (HashSet<Transition>) tr.clone(); HashSet<Transition> transToEliminate = new HashSet<Transition>(); boolean transitionAdded; d...
public FiniteTreesTable(HashSet<Transition> tr, HashSet<Integer> ac) { FiniteTreesTable = new HashMap<Integer, HashSet<HashSet<Integer>>>(); HashSet<Transition> transRelWorkCopy = (HashSet<Transition>) tr.clone(); HashSet<Transition> transToEliminate = new HashSet<Transition>(); boolean transitionAdded; d...
diff --git a/bonaparte-i18n/src/main/java/de/jpaw/bonaparte/core/ICUCSVConfiguration.java b/bonaparte-i18n/src/main/java/de/jpaw/bonaparte/core/ICUCSVConfiguration.java index ee70ee3b..1b61e934 100644 --- a/bonaparte-i18n/src/main/java/de/jpaw/bonaparte/core/ICUCSVConfiguration.java +++ b/bonaparte-i18n/src/main/java/d...
true
true
public ICUCSVConfiguration(String separator, Character quote, String quoteReplacement, String ctrlReplacement, boolean datesQuoted, boolean removePoint4BD, String mapStart, String mapEnd, String arrayStart, String arrayEnd, String objectStart, String objectEnd, String booleanTrue, String booleanFalse, ...
public ICUCSVConfiguration(String separator, Character quote, String quoteReplacement, String ctrlReplacement, boolean datesQuoted, boolean removePoint4BD, String mapStart, String mapEnd, String arrayStart, String arrayEnd, String objectStart, String objectEnd, String booleanTrue, String booleanFalse, ...
diff --git a/src/com/android/gallery3d/app/AbstractGalleryActivity.java b/src/com/android/gallery3d/app/AbstractGalleryActivity.java index 144485df8..7e9f50a04 100644 --- a/src/com/android/gallery3d/app/AbstractGalleryActivity.java +++ b/src/com/android/gallery3d/app/AbstractGalleryActivity.java @@ -1,269 +1,269 @@ /*...
true
true
protected void onStart() { super.onStart(); if (getExternalCacheDir() == null) { OnCancelListener onCancel = new OnCancelListener() { @Override public void onCancel(DialogInterface dialog) { finish(); } }; ...
protected void onStart() { super.onStart(); if (getExternalCacheDir() == null) { OnCancelListener onCancel = new OnCancelListener() { @Override public void onCancel(DialogInterface dialog) { finish(); } }; ...
diff --git a/src/net/madmanmarkau/Give/Give.java b/src/net/madmanmarkau/Give/Give.java index d80473f..6c5b29f 100644 --- a/src/net/madmanmarkau/Give/Give.java +++ b/src/net/madmanmarkau/Give/Give.java @@ -1,194 +1,196 @@ package net.madmanmarkau.Give; import java.util.logging.Logger; import org.bukkit.ChatColor;...
false
true
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { Material material = null; int quantity = 1; Player player = null; if ( cmd.getName().compareToIgnoreCase("give") == 0 ) { if (sender instanceof Player) { // Player-sent command player = (Player)...
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { Material material = null; int quantity = 1; Player player = null; if ( cmd.getName().compareToIgnoreCase("give") == 0 ) { if (sender instanceof Player) { // Player-sent command player = (Player)...
diff --git a/midp20/Hecl.java b/midp20/Hecl.java index ab407615..679dc499 100644 --- a/midp20/Hecl.java +++ b/midp20/Hecl.java @@ -1,147 +1,147 @@ /* * Copyright (C) 2005-2008 data2c GmbH (www.data2c.com) * * Author: Wolfgang S. Kechel - wolfgang.kechel@data2c.com */ import java.io.IOException; import java...
true
true
public void startApp() { if (started) { if (interp.commandExists("midlet.onresume")) { interp.evalAsync(new Thing("midlet.onresume")); } return; } started = true; Display display = Display.getDisplay(this); try { Alert a = new Alert("Loading Hecl", "Loading Hecl...", null, AlertType.INFO...
public void startApp() { if (started) { if (interp.commandExists("midlet.onresume")) { interp.evalAsync(new Thing("midlet.onresume")); } return; } started = true; Display display = Display.getDisplay(this); try { Alert a = new Alert("Loading Hecl", "Loading Hecl...", null, AlertType.INFO...
diff --git a/software/caTissue/modules/caTissueStaticDataService/src/edu/wustl/catissuecore/domain/util/CollectionsHandler.java b/software/caTissue/modules/caTissueStaticDataService/src/edu/wustl/catissuecore/domain/util/CollectionsHandler.java index 7c30bbbf4..4b85a5fe9 100644 --- a/software/caTissue/modules/caTissueS...
true
true
public static Object doInvokeGetter(Field f, Object o, boolean invokeSize) { PropertyDescriptor pd = null; try { pd = new PropertyDescriptor(f.getName(), o.getClass()); Method readMethod = pd.getReadMethod(); log.debug(">>> GETTER: " + readMethod); Obj...
public static Object doInvokeGetter(Field f, Object o, boolean invokeSize) { PropertyDescriptor pd = null; try { pd = new PropertyDescriptor(f.getName(), o.getClass()); Method readMethod = pd.getReadMethod(); log.debug(">>> GETTER: " + readMethod); Obj...
diff --git a/modules/admin-web/src/main/java/org/openlmis/admin/controller/UploadController.java b/modules/admin-web/src/main/java/org/openlmis/admin/controller/UploadController.java index bdba2f64cc..debf3d7154 100644 --- a/modules/admin-web/src/main/java/org/openlmis/admin/controller/UploadController.java +++ b/modul...
true
true
public ModelAndView upload(@RequestParam(value = "csvFile", required = true) MultipartFile multipartFile, @RequestParam(value = "model", required = true) String model) { ModelAndView modelAndView = new ModelAndView(); try { Class modelClass = modelMap.get...
public ModelAndView upload(@RequestParam(value = "csvFile", required = true) MultipartFile multipartFile, @RequestParam(value = "model", required = true) String model) { ModelAndView modelAndView = new ModelAndView(); try { Class modelClass = modelMap.get...
diff --git a/src/com/example/timetrack/Task.java b/src/com/example/timetrack/Task.java index 91de3d4..ef681cd 100644 --- a/src/com/example/timetrack/Task.java +++ b/src/com/example/timetrack/Task.java @@ -1,300 +1,296 @@ package com.example.timetrack; import android.app.AlertDialog; import android.app.Fragment; i...
true
true
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflating the layout for this fragment View v = inflater.inflate(R.layout.task_layout, null); // This final Task me = this; // Creating buttons final Button startButton = (Button)v.findViewById(R.id...
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflating the layout for this fragment View v = inflater.inflate(R.layout.task_layout, null); // This final Task me = this; // Creating buttons final Button startButton = (Button)v.findViewById(R.id...
diff --git a/java/TJExample.java b/java/TJExample.java index b9ea34a..a326c71 100644 --- a/java/TJExample.java +++ b/java/TJExample.java @@ -1,308 +1,307 @@ /* * Copyright (C)2011 D. R. Commander. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are p...
true
true
public static void main(String argv[]) { BufferedImage img = null; byte[] bmpBuf = null; TJTransform xform = new TJTransform(); try { sf = TJ.getScalingFactors(); if(argv.length < 2) { usage(); } TJScalingFactor scaleFactor = new TJScalingFactor(1, 1); String in...
public static void main(String argv[]) { BufferedImage img = null; byte[] bmpBuf = null; TJTransform xform = new TJTransform(); try { sf = TJ.getScalingFactors(); if(argv.length < 2) { usage(); } TJScalingFactor scaleFactor = new TJScalingFactor(1, 1); String in...
diff --git a/src/main/java/net/aufdemrand/denizen/flags/FlagManager.java b/src/main/java/net/aufdemrand/denizen/flags/FlagManager.java index 1a73d17d0..f58c71f90 100644 --- a/src/main/java/net/aufdemrand/denizen/flags/FlagManager.java +++ b/src/main/java/net/aufdemrand/denizen/flags/FlagManager.java @@ -1,551 +1,551 @@...
false
true
public void remove(Object obj, int index) { checkExpired(); // No index? Match object and remove it. if (index < 0 && obj != null) { int x = 0; for (String val : value.values) { // Evaluate as String if...
public void remove(Object obj, int index) { checkExpired(); // No index? Match object and remove it. if (index <= 0 && obj != null) { int x = 0; for (String val : value.values) { // Evaluate as String i...
diff --git a/src/web/org/openmrs/web/filter/initialization/InitializationFilter.java b/src/web/org/openmrs/web/filter/initialization/InitializationFilter.java index 23787c9f..84a72abb 100644 --- a/src/web/org/openmrs/web/filter/initialization/InitializationFilter.java +++ b/src/web/org/openmrs/web/filter/initialization...
false
true
private void doPost(HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws IOException { String page = httpRequest.getParameter("page"); Map<String, Object> referenceMap = new HashMap<String, Object>(); Writer writer = httpResponse.getWriter(); // clear existing errors wizardModel.err...
private void doPost(HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws IOException { String page = httpRequest.getParameter("page"); Map<String, Object> referenceMap = new HashMap<String, Object>(); Writer writer = httpResponse.getWriter(); // clear existing errors wizardModel.err...
diff --git a/src/com/axelby/podax/ui/AddSubscriptionFragment.java b/src/com/axelby/podax/ui/AddSubscriptionFragment.java index 2ac3591..38cd7e2 100644 --- a/src/com/axelby/podax/ui/AddSubscriptionFragment.java +++ b/src/com/axelby/podax/ui/AddSubscriptionFragment.java @@ -1,305 +1,305 @@ package com.axelby.podax.ui; ...
true
true
public void onListItemClick(ListView l, View v, int position, long id) { if (position == ADD_RSS) { AlertDialog.Builder alert = new AlertDialog.Builder(getActivity()); alert.setTitle("Podcast URL"); alert.setMessage("Type the URL of the podcast RSS"); final EditText input = new EditText(getActivity()); ...
public void onListItemClick(ListView l, View v, int position, long id) { if (position == ADD_RSS) { AlertDialog.Builder alert = new AlertDialog.Builder(getActivity()); alert.setTitle("Podcast URL"); alert.setMessage("Type the URL of the podcast RSS"); final EditText input = new EditText(getActivity()); ...
diff --git a/src/xmlvm/org/xmlvm/Main.java b/src/xmlvm/org/xmlvm/Main.java index 9dc95f3c..cd37325f 100755 --- a/src/xmlvm/org/xmlvm/Main.java +++ b/src/xmlvm/org/xmlvm/Main.java @@ -1,76 +1,81 @@ /* * Copyright (c) 2004-2009 XMLVM --- An XML-based Programming Language * * This program is free software; you can...
false
true
public static void main(String[] args) { // Initialize arguments. Arguments arguments = new Arguments(args); // Sets whether log messages should be shown or not. Log.setLevel(arguments.option_debug()); // Enable a timer if wanted. Timer timer = null; if (ar...
public static void main(String[] args) { // Initialize arguments. Arguments arguments = new Arguments(args); // Sets whether log messages should be shown or not. Log.setLevel(arguments.option_debug()); // Enable a timer if wanted. Timer timer = null; if (ar...
diff --git a/app/controllers/UserApp.java b/app/controllers/UserApp.java index f06e226a..1509251f 100644 --- a/app/controllers/UserApp.java +++ b/app/controllers/UserApp.java @@ -1,642 +1,642 @@ package controllers; import com.avaje.ebean.ExpressionList; import models.*; import models.enumeration.Operation; im...
true
true
public static Result editUserInfo() { Form<User> userForm = new Form<>(User.class).bindFromRequest("name", "email"); String newEmail = userForm.data().get("email"); String newName = userForm.data().get("name"); User user = UserApp.currentUser(); if (StringUtils.isEmpty(newEm...
public static Result editUserInfo() { Form<User> userForm = new Form<>(User.class).bindFromRequest("name", "email"); String newEmail = userForm.data().get("email"); String newName = userForm.data().get("name"); User user = UserApp.currentUser(); if (StringUtils.isEmpty(newEm...
diff --git a/src/main/java/org/mozilla/gecko/sync/net/BaseResource.java b/src/main/java/org/mozilla/gecko/sync/net/BaseResource.java index 9827cf267..01e1ccc2f 100644 --- a/src/main/java/org/mozilla/gecko/sync/net/BaseResource.java +++ b/src/main/java/org/mozilla/gecko/sync/net/BaseResource.java @@ -1,412 +1,415 @@ /*...
true
true
private void execute() { HttpResponse response; try { response = client.execute(request, context); Logger.debug(LOG_TAG, "Response: " + response.getStatusLine().toString()); } catch (ClientProtocolException e) { delegate.handleHttpProtocolException(e); return; } catch (IOExcept...
private void execute() { HttpResponse response; try { response = client.execute(request, context); Logger.debug(LOG_TAG, "Response: " + response.getStatusLine().toString()); } catch (ClientProtocolException e) { delegate.handleHttpProtocolException(e); return; } catch (IOExcept...
diff --git a/xbean-classloader/src/main/java/org/apache/xbean/classloader/MultiParentClassLoader.java b/xbean-classloader/src/main/java/org/apache/xbean/classloader/MultiParentClassLoader.java index aca615b4..927e3999 100644 --- a/xbean-classloader/src/main/java/org/apache/xbean/classloader/MultiParentClassLoader.java ...
true
true
protected synchronized Class loadClass(String name, boolean resolve) throws ClassNotFoundException { // // Check if class is in the loaded classes cache // Class cachedClass = findLoadedClass(name); if (cachedClass != null) { return resolveClass(cachedClass, resol...
protected synchronized Class loadClass(String name, boolean resolve) throws ClassNotFoundException { // // Check if class is in the loaded classes cache // Class cachedClass = findLoadedClass(name); if (cachedClass != null) { return resolveClass(cachedClass, resol...
diff --git a/src/main/java/org/jboss/pressgang/ccms/contentspec/client/commands/PushTranslationCommand.java b/src/main/java/org/jboss/pressgang/ccms/contentspec/client/commands/PushTranslationCommand.java index 468bbdd..fdb5b4b 100644 --- a/src/main/java/org/jboss/pressgang/ccms/contentspec/client/commands/PushTranslat...
false
true
protected boolean pushToZanata(final DataProviderFactory providerFactory, final ContentSpec contentSpec, final ContentSpecWrapper contentSpecEntity) { final List<Entity> entities = XMLUtilities.parseEntitiesFromString(contentSpec.getEntities()); final Map<TopicWrapper, SpecTopic> topicTo...
protected boolean pushToZanata(final DataProviderFactory providerFactory, final ContentSpec contentSpec, final ContentSpecWrapper contentSpecEntity) { final List<Entity> entities = XMLUtilities.parseEntitiesFromString(contentSpec.getEntities()); final Map<TopicWrapper, SpecTopic> topicTo...
diff --git a/test/src/com/redhat/ceylon/compiler/java/test/CompilerTest.java b/test/src/com/redhat/ceylon/compiler/java/test/CompilerTest.java index 1fd7a315f..d9806ac5c 100755 --- a/test/src/com/redhat/ceylon/compiler/java/test/CompilerTest.java +++ b/test/src/com/redhat/ceylon/compiler/java/test/CompilerTest.java @@ ...
true
true
protected void compareWithJavaSource(String java, String... ceylon) { // make a compiler task // FIXME: runFileManager.setSourcePath(dir); CeyloncTaskImpl task = getCompilerTask(ceylon); // grab the CU after we've completed it class Listener implements TaskListener{ ...
protected void compareWithJavaSource(String java, String... ceylon) { // make a compiler task // FIXME: runFileManager.setSourcePath(dir); CeyloncTaskImpl task = getCompilerTask(ceylon); // grab the CU after we've completed it class Listener implements TaskListener{ ...
diff --git a/sakai-plugin/src/main/java/org/sakaiproject/maven/plugin/component/ComponentDeployMojo.java b/sakai-plugin/src/main/java/org/sakaiproject/maven/plugin/component/ComponentDeployMojo.java index 631b0b5..17f7945 100644 --- a/sakai-plugin/src/main/java/org/sakaiproject/maven/plugin/component/ComponentDeployMoj...
false
true
public void deployToContainer() throws MojoExecutionException, MojoFailureException { try { Set artifacts = project.getDependencyArtifacts(); // iterate through the this to extract dependencies and deploy String packaging = project.getPackaging(); File deployDir = getDeployDirectory(); if (deplo...
public void deployToContainer() throws MojoExecutionException, MojoFailureException { try { Set artifacts = project.getDependencyArtifacts(); // iterate through the this to extract dependencies and deploy String packaging = project.getPackaging(); File deployDir = getDeployDirectory(); if (deplo...
diff --git a/gdx/src/com/badlogic/gdx/math/Matrix3.java b/gdx/src/com/badlogic/gdx/math/Matrix3.java index 7903840a4..3dbc2d771 100644 --- a/gdx/src/com/badlogic/gdx/math/Matrix3.java +++ b/gdx/src/com/badlogic/gdx/math/Matrix3.java @@ -1,314 +1,313 @@ /*****************************************************************...
true
true
public Matrix3 inv () { float det = det(); if (det == 0) throw new GdxRuntimeException("Can't invert a singular matrix"); float inv_det = 1.0f / det; float tmp[] = {0, 0, 0, 0, 0, 0, 0, 0, 0}; tmp[0] = vals[4] * vals[8] - vals[5] * vals[7]; tmp[1] = vals[2] * vals[7] - vals[1] * vals[8]; tmp[2] = vals[...
public Matrix3 inv () { float det = det(); if (det == 0) throw new GdxRuntimeException("Can't invert a singular matrix"); float inv_det = 1.0f / det; tmp[0] = vals[4] * vals[8] - vals[5] * vals[7]; tmp[1] = vals[2] * vals[7] - vals[1] * vals[8]; tmp[2] = vals[1] * vals[5] - vals[2] * vals[4]; tmp[3] = ...
diff --git a/src/main/java/org/dynjs/parser/Executor.java b/src/main/java/org/dynjs/parser/Executor.java index e281631f..a564a291 100644 --- a/src/main/java/org/dynjs/parser/Executor.java +++ b/src/main/java/org/dynjs/parser/Executor.java @@ -1,422 +1,421 @@ /** * Copyright 2011 dynjs contributors * * Licensed...
false
true
public Statement defineFunction(final String identifier, final List<String> args, final Statement block) { // put arguments on stack final Integer slot = getContext().store(block.getCodeBlock()); Statement statement = new Statement() { @Override public CodeBlock getCo...
public Statement defineFunction(final String identifier, final List<String> args, final Statement block) { // put arguments on stack final Integer slot = getContext().store(block.getCodeBlock()); Statement statement = new Statement() { @Override public CodeBlock getCo...
diff --git a/integration-test/src/test/java/net/nelz/simplesm/test/UpdateAssignCacheTest.java b/integration-test/src/test/java/net/nelz/simplesm/test/UpdateAssignCacheTest.java index 744fdaa..e366a1e 100644 --- a/integration-test/src/test/java/net/nelz/simplesm/test/UpdateAssignCacheTest.java +++ b/integration-test/src...
true
true
public void test() { final TestSvc test = (TestSvc) context.getBean("testSvc"); final List<String> result1 = test.getAssignStrings(); final List<String> altData = new ArrayList<String>(); for (int ix = 0; ix < result1.size(); ix++) { if (ix % 2 == 0) { a...
public void test() { final TestSvc test = (TestSvc) context.getBean("testSvc"); final List<String> result1 = test.getAssignStrings(); final List<String> altData = new ArrayList<String>(); for (int ix = 0; ix < result1.size(); ix++) { if (ix % 2 == 0) { a...
diff --git a/src/com/android/phone/PhoneApp.java b/src/com/android/phone/PhoneApp.java index f4b3cae4..38cd7f68 100644 --- a/src/com/android/phone/PhoneApp.java +++ b/src/com/android/phone/PhoneApp.java @@ -1,2021 +1,2022 @@ /* * Copyright (C) 2006 The Android Open Source Project * * Licensed under the Apache Li...
true
true
public void onCreate() { if (VDBG) Log.v(LOG_TAG, "onCreate()..."); ContentResolver resolver = getContentResolver(); // Cache the "voice capable" flag. // This flag currently comes from a resource (which is // overrideable on a per-product basis): sVoiceCapable = ...
public void onCreate() { if (VDBG) Log.v(LOG_TAG, "onCreate()..."); ContentResolver resolver = getContentResolver(); // Cache the "voice capable" flag. // This flag currently comes from a resource (which is // overrideable on a per-product basis): sVoiceCapable = ...
diff --git a/taskflows/interSliceTransfer/server/src/de/zib/gndms/taskflows/interslicetransfer/server/logic/InterSliceTransferTaskAction.java b/taskflows/interSliceTransfer/server/src/de/zib/gndms/taskflows/interslicetransfer/server/logic/InterSliceTransferTaskAction.java index dee029a2..cdcc3fe8 100644 --- a/taskflows...
true
true
protected void onInProgress(@NotNull String wid, @NotNull TaskState state, boolean isRestartedTask, boolean altTaskState) throws Exception { ensureOrder(); InterSliceTransferQuoteCalculator.prepareSourceUrl( getOrder(), sliceClient ); prepareDestination( ); ...
protected void onInProgress(@NotNull String wid, @NotNull TaskState state, boolean isRestartedTask, boolean altTaskState) throws Exception { ensureOrder(); InterSliceTransferQuoteCalculator.prepareSourceUrl( getOrder(), sliceClient ); prepareDestination( ); ...
diff --git a/src/com/redhat/ceylon/compiler/loader/AbstractModelLoader.java b/src/com/redhat/ceylon/compiler/loader/AbstractModelLoader.java index e241a9559..7e189d7ff 100644 --- a/src/com/redhat/ceylon/compiler/loader/AbstractModelLoader.java +++ b/src/com/redhat/ceylon/compiler/loader/AbstractModelLoader.java @@ -1,3...
true
true
private void complete(ClassOrInterface klass, ClassMirror classMirror) { Map<MethodMirror, List<MethodMirror>> variables = new HashMap<MethodMirror, List<MethodMirror>>(); boolean isFromJDK = isFromJDK(classMirror); boolean isCeylon = (classMirror.getAnnotation(CEYLON_CEYLON_ANNOTATION) != n...
private void complete(ClassOrInterface klass, ClassMirror classMirror) { Map<MethodMirror, List<MethodMirror>> variables = new HashMap<MethodMirror, List<MethodMirror>>(); boolean isFromJDK = isFromJDK(classMirror); boolean isCeylon = (classMirror.getAnnotation(CEYLON_CEYLON_ANNOTATION) != n...
diff --git a/ide/eclipse/esb/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/custom/deserializer/ScriptMediatorDeserializer.java b/ide/eclipse/esb/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/custom/deserializ...
false
true
public ScriptMediator createNode(IGraphicalEditPart part,AbstractMediator mediator) { Assert.isTrue(mediator instanceof org.apache.synapse.mediators.bsf.ScriptMediator, "Unsupported mediator passed in for deserialization at "+ this.getClass()); org.apache.synapse.mediators.bsf.ScriptMediator scriptMediator = (or...
public ScriptMediator createNode(IGraphicalEditPart part,AbstractMediator mediator) { Assert.isTrue(mediator instanceof org.apache.synapse.mediators.bsf.ScriptMediator, "Unsupported mediator passed in for deserialization at "+ this.getClass()); org.apache.synapse.mediators.bsf.ScriptMediator scriptMediator = (or...
diff --git a/src/simpleserver/command/MyAreaCommand.java b/src/simpleserver/command/MyAreaCommand.java index ceeb364..ec3a156 100644 --- a/src/simpleserver/command/MyAreaCommand.java +++ b/src/simpleserver/command/MyAreaCommand.java @@ -1,168 +1,167 @@ /* * Copyright (c) 2010 SimpleServer authors (see CONTRIBUTORS) ...
false
true
public void execute(Player player, String message) { // Set up an integer array to hold the maximum area size int[] maxSize = getAreaMax(player); // X, Z Config config = player.getServer().config; String arguments[] = extractArguments(message); if (arguments.length == 0) { player.addTC...
public void execute(Player player, String message) { // Set up an integer array to hold the maximum area size int[] maxSize = getAreaMax(player); // X, Z Config config = player.getServer().config; String arguments[] = extractArguments(message); if (arguments.length == 0) { player.addTC...
diff --git a/src/main/java/hudson/plugins/nodenamecolumn/NodeNameColumn.java b/src/main/java/hudson/plugins/nodenamecolumn/NodeNameColumn.java index 1c8ab0c..e4877c7 100644 --- a/src/main/java/hudson/plugins/nodenamecolumn/NodeNameColumn.java +++ b/src/main/java/hudson/plugins/nodenamecolumn/NodeNameColumn.java @@ -1,1...
false
true
private String getName(Object obj, String type){ String name = null; final JobTypeEnum jobType; try { jobType = JobTypeEnum.valueOf(type); } catch(IllegalArgumentException e) { throw new RuntimeException("String has no matching NumeralEnum value"); } ...
private String getName(Object obj, String type){ String name = null; final JobTypeEnum jobType; try { jobType = JobTypeEnum.valueOf(type); } catch(IllegalArgumentException e) { throw new RuntimeException("String has no matching NumeralEnum value"); } ...
diff --git a/jeeves/src/main/java/jeeves/config/springutil/MultiNodeAuthenticationFilter.java b/jeeves/src/main/java/jeeves/config/springutil/MultiNodeAuthenticationFilter.java index 37dd60e78a..71ab4f79ca 100644 --- a/jeeves/src/main/java/jeeves/config/springutil/MultiNodeAuthenticationFilter.java +++ b/jeeves/src/mai...
true
true
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { final SecurityContext context = SecurityContextHolder.getContext(); if (context != null) { final Authentication user = context.getAuthentication(); ...
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { final SecurityContext context = SecurityContextHolder.getContext(); if (context != null) { final Authentication user = context.getAuthentication(); ...
diff --git a/jing/rxnSys/ConversionTT.java b/jing/rxnSys/ConversionTT.java index e4c20b0c..9f02e24b 100644 --- a/jing/rxnSys/ConversionTT.java +++ b/jing/rxnSys/ConversionTT.java @@ -1,123 +1,130 @@ //////////////////////////////////////////////////////////////////////////////// // // RMG - Reaction Mechanism Genera...
true
true
public boolean isReactionTerminated(InitialStatus p_initialStatus, PresentStatus p_presentStatus) { //#[ operation isReactionTerminated(InitialStatus,PresentStatus) Iterator iter = speciesGoalConversionSet.iterator(); while (iter.hasNext()) { SpeciesConversion sc = (SpeciesConversi...
public boolean isReactionTerminated(InitialStatus p_initialStatus, PresentStatus p_presentStatus) { //#[ operation isReactionTerminated(InitialStatus,PresentStatus) Iterator iter = speciesGoalConversionSet.iterator(); while (iter.hasNext()) { SpeciesConversion sc = (SpeciesConversi...
diff --git a/src/com/github/norwae/whatiread/MainActivity.java b/src/com/github/norwae/whatiread/MainActivity.java index 726cb1b..2fd3793 100644 --- a/src/com/github/norwae/whatiread/MainActivity.java +++ b/src/com/github/norwae/whatiread/MainActivity.java @@ -1,194 +1,194 @@ package com.github.norwae.whatiread; im...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); viewPager = (ViewPager) findViewById(R.id.pager); pageAdapter = new PageAdapter(getSupportFragmentManager()); actionBar = getActionBar(); viewPager.setAdapter(pageAdapter);...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); viewPager = (ViewPager) findViewById(R.id.pager); pageAdapter = new PageAdapter(getSupportFragmentManager()); actionBar = getActionBar(); viewPager.setAdapter(pageAdapter);...
diff --git a/src/java/com/twitter/elephantbird/mapreduce/input/LzoBinaryB64LineRecordReader.java b/src/java/com/twitter/elephantbird/mapreduce/input/LzoBinaryB64LineRecordReader.java index 57914399..038360a0 100644 --- a/src/java/com/twitter/elephantbird/mapreduce/input/LzoBinaryB64LineRecordReader.java +++ b/src/java/...
true
true
public boolean nextKeyValue() throws IOException, InterruptedException { // Since the lzop codec reads everything in lzo blocks, we can't stop if pos == end. // Instead we wait for the next block to be read in, when pos will be > end. while (pos_ <= end_) { key_.set(pos_); int newSize = lineR...
public boolean nextKeyValue() throws IOException, InterruptedException { // Since the lzop codec reads everything in lzo blocks, we can't stop if pos == end. // Instead we wait for the next block to be read in, when pos will be > end. while (pos_ <= end_) { key_.set(pos_); int newSize = lineR...
diff --git a/TDI/src/controller/BigLogic.java b/TDI/src/controller/BigLogic.java index 25ae878..cf6a227 100644 --- a/TDI/src/controller/BigLogic.java +++ b/TDI/src/controller/BigLogic.java @@ -1,411 +1,415 @@ package controller; import java.util.ArrayList; import java.util.Collections; import java.util.Timer; im...
true
true
public void run() { while (true) { if (commands.size() > 0) { if (tdis.contains(commands.get(0))) { TDI tdi = tdis.get(tdis.indexOf(commands.get(0))); TDI command = commands.get(0); float[] movParam = new float[3]; TDI windFocused=null; TDI taskFocused=null; if (tdi.getPosition(...
public void run() { while (true) { if (commands.size() > 0) { if (tdis.contains(commands.get(0))) { TDI tdi = tdis.get(tdis.indexOf(commands.get(0))); TDI command = commands.get(0); float[] movParam = new float[3]; TDI windFocused=null; TDI taskFocused=null; if (tdi.getPosition(...
diff --git a/src/com/mareksebera/dilbert/DilbertPreferences.java b/src/com/mareksebera/dilbert/DilbertPreferences.java index b833088..9ab26dc 100644 --- a/src/com/mareksebera/dilbert/DilbertPreferences.java +++ b/src/com/mareksebera/dilbert/DilbertPreferences.java @@ -1,103 +1,104 @@ package com.mareksebera.dilbert; ...
true
true
public List<FavoritedItem> getFavoritedItems() { List<FavoritedItem> favorites = new ArrayList<FavoritedItem>(); Map<String, ?> allPreferences = preferences.getAll(); for (String key : allPreferences.keySet()) { if (key.startsWith("favorite_")) { String date = key.replace("favorite_", ""); favorites.a...
public List<FavoritedItem> getFavoritedItems() { List<FavoritedItem> favorites = new ArrayList<FavoritedItem>(); Map<String, ?> allPreferences = preferences.getAll(); for (String key : allPreferences.keySet()) { if (key.startsWith("favorite_") && (Boolean) allPreferences.get(key)) { String date = key...
diff --git a/org.eclipse.imp.pdb.values/src/org/eclipse/imp/pdb/facts/io/ATermReader.java b/org.eclipse.imp.pdb.values/src/org/eclipse/imp/pdb/facts/io/ATermReader.java index 813a28f..9d0535d 100644 --- a/org.eclipse.imp.pdb.values/src/org/eclipse/imp/pdb/facts/io/ATermReader.java +++ b/org.eclipse.imp.pdb.values/src/o...
false
true
private IValue parseAppl(SharingStream reader, Type expected) throws IOException { int c; IValue result; c = reader.getLastChar(); if (Character.isLetter(c)) { String funname = parseId(reader); Type node; if (expected.isAbstractDataType()) { Set<Type> nodes = ts.lookupConstructor(expected,...
private IValue parseAppl(SharingStream reader, Type expected) throws IOException { int c; IValue result; c = reader.getLastChar(); if (Character.isLetter(c)) { String funname = parseId(reader); Type node; if (expected.isAbstractDataType()) { Set<Type> nodes = ts.lookupConstructor(expected,...
diff --git a/ue3/src/main/java/formel0api/beans/LoginSession.java b/ue3/src/main/java/formel0api/beans/LoginSession.java index 83808df..cb60873 100644 --- a/ue3/src/main/java/formel0api/beans/LoginSession.java +++ b/ue3/src/main/java/formel0api/beans/LoginSession.java @@ -1,118 +1,119 @@ package formel0api.beans; i...
true
true
public String login() { if (registrar.getPlayer(playerName)!=null && registrar.getPlayer(playerName).getPassword().equals(playerPassword)) { player = registrar.getPlayer(playerName); computer = new Player(); computer.setFirstName("Super"); computer.setLastName("C"); loginfailed = false; ...
public String login() { if (registrar.getPlayer(playerName)!=null && registrar.getPlayer(playerName).getPassword().equals(playerPassword)) { player = registrar.getPlayer(playerName); computer = new Player(); computer.setName("Super C"); computer.setFirstName("Super"); computer.setLastName("C"); ...
diff --git a/src/test/RegExpTests.java b/src/test/RegExpTests.java index c648d5a9f4..385db1fa26 100644 --- a/src/test/RegExpTests.java +++ b/src/test/RegExpTests.java @@ -1,158 +1,158 @@ package test; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import org.junit.Test; ...
true
true
public void match() { assertTrue(runTest("/abc/ := \"abc\";")); assertFalse(runTest("/def/ := \"abc\";")); assertTrue(runTest("/def/ !:= \"abc\";")); assertTrue(runTest("/[a-z]+/ := \"abc\";")); assertTrue(runTest("/.*is.*/ := \"Rascal is marvelous\";")); assertTrue(runTest("/@.*@/ := \"@ abc @\";")); ...
public void match() { assertTrue(runTest("/abc/ := \"abc\";")); assertFalse(runTest("/def/ := \"abc\";")); assertTrue(runTest("/def/ !:= \"abc\";")); assertTrue(runTest("/[a-z]+/ := \"abc\";")); assertTrue(runTest("/.*is.*/ := \"Rascal is marvelous\";")); assertTrue(runTest("/@.*@/ := \"@ abc @\";")); ...
diff --git a/src/com/android/dreams/web/Screensaver.java b/src/com/android/dreams/web/Screensaver.java index 39a4146..65965ec 100644 --- a/src/com/android/dreams/web/Screensaver.java +++ b/src/com/android/dreams/web/Screensaver.java @@ -1,89 +1,89 @@ /* * Copyright (C) 2012 The Android Open Source Project * * Li...
true
true
public void onAttachedToWindow() { super.onAttachedToWindow(); setContentView(R.layout.main); lightsOut(); // lights out, fullscreen final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); final String url = prefs.getString("url", "file:///andr...
public void onAttachedToWindow() { super.onAttachedToWindow(); setContentView(R.layout.main); setFullscreen(true); final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); final String url = prefs.getString("url", "file:///android_asset/default....
diff --git a/src/org/plovr/Manifest.java b/src/org/plovr/Manifest.java index 8c711736c..6fdbcf1d8 100644 --- a/src/org/plovr/Manifest.java +++ b/src/org/plovr/Manifest.java @@ -1,442 +1,442 @@ package org.plovr; import java.io.File; import java.util.LinkedHashSet; import java.util.List; import java.util.Map; im...
true
true
private void getInputs(File file, Set<JsInput> output, boolean externsOnly, final File rootOfSearch) { // Some editors may write backup files whose names start with a // dot. Furthermore, Emacs will create symlinks that start with a // dot that don't point at actual files, causing file.exists() to ...
private void getInputs(File file, Set<JsInput> output, boolean externsOnly, final File rootOfSearch) { // Some editors may write backup files whose names start with a // dot. Furthermore, Emacs will create symlinks that start with a // dot that don't point at actual files, causing file.exists() to ...
diff --git a/E-Adventure/src/es/eucm/eadventure/editor/gui/structurepanel/structureelements/Effects/MainStructureListElement.java b/E-Adventure/src/es/eucm/eadventure/editor/gui/structurepanel/structureelements/Effects/MainStructureListElement.java index dca4c199..310fb1f0 100644 --- a/E-Adventure/src/es/eucm/eadventur...
true
true
public MainStructureListElement( ) { super( TC.get( "EffectsGroup.Main" ) ); //icon = EffectsStructurePanel.getEffectIcon(name, EffectsStructurePanel.ICON_SIZE_MEDIUM); //new ImageIcon( "img/icons/adaptationProfiles.png" ); groupEffects = new String[] { TC.get( "Effect.Activate" ), ...
public MainStructureListElement( ) { super( TC.get( "EffectsGroup.Main" ) ); //icon = EffectsStructurePanel.getEffectIcon(name, EffectsStructurePanel.ICON_SIZE_MEDIUM); //new ImageIcon( "img/icons/adaptationProfiles.png" ); groupEffects = new String[] { TC.get( "Effect.Activate" ), ...
diff --git a/cdm/src/test/java/thredds/catalog/parser/jdom/TestReadMetadata.java b/cdm/src/test/java/thredds/catalog/parser/jdom/TestReadMetadata.java index 9f2fed65f..06024a623 100644 --- a/cdm/src/test/java/thredds/catalog/parser/jdom/TestReadMetadata.java +++ b/cdm/src/test/java/thredds/catalog/parser/jdom/TestReadM...
true
true
public void testReadDatasetWithDataSize() { double sizeKb = 439.78; StringBuilder catAsString = new StringBuilder() .append( "<catalog xmlns=\"http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0\"\n" ) .append( " xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n" ) ...
public void testReadDatasetWithDataSize() { double sizeKb = 439.78; StringBuilder catAsString = new StringBuilder() .append( "<catalog xmlns=\"http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0\"\n" ) .append( " xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n" ) ...
diff --git a/modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java b/modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java index 04a52b8ed..25acfdf41 100755 --- a/modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java +++ b/modules/cpr/src/main/java/org/atmosphere/cp...
true
true
Action action(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException { boolean webSocketEnabled = false; if (req.getHeaders("Connection") != null && req.getHeaders("Connection").hasMoreElements()) { String[] e = req.getHeaders("Connection").nex...
Action action(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException { boolean webSocketEnabled = false; if (req.getHeaders("Connection") != null && req.getHeaders("Connection").hasMoreElements()) { String[] e = req.getHeaders("Connection").nex...
diff --git a/src/main/java/com/angelini/fly/LayoutTemplater.java b/src/main/java/com/angelini/fly/LayoutTemplater.java index 36895d1..7618745 100644 --- a/src/main/java/com/angelini/fly/LayoutTemplater.java +++ b/src/main/java/com/angelini/fly/LayoutTemplater.java @@ -1,57 +1,57 @@ package com.angelini.fly; import ...
true
true
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { if (auth != null && auth.verifySignature(req) != null) { resp.sendRedirect(AuthServlet.LOGIN_URL); return; } try { String path = (req.getPathInfo() == "/") ? "/index.html" : req.getPathInfo()...
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { if (auth != null && auth.verifySignature(req) == null) { resp.sendRedirect(AuthServlet.LOGIN_URL); return; } try { String path = (req.getPathInfo() == "/") ? "/index.html" : req.getPathInfo()...
diff --git a/sglr-invoker/src/sglr/SGLRInvoker.java b/sglr-invoker/src/sglr/SGLRInvoker.java index 134c0e6..90677c7 100644 --- a/sglr-invoker/src/sglr/SGLRInvoker.java +++ b/sglr-invoker/src/sglr/SGLRInvoker.java @@ -1,272 +1,272 @@ package sglr; import java.io.ByteArrayOutputStream; import java.io.File; import j...
false
true
public static void loadLibraries(){ if(baseLibraryPath == null){ // Look in the library path to find the libraries. try{ System.loadLibrary("ATerm"); System.loadLibrary("ConfigAPI"); System.loadLibrary("ErrorAPI"); System.loadLibrary("LocationAPI"); System.loadLib...
public static void loadLibraries(){ if(baseLibraryPath == null){ // Look in the library path to find the libraries. try{ System.loadLibrary("ATerm"); System.loadLibrary("ConfigAPI"); System.loadLibrary("ErrorAPI"); System.loadLibrary("LocationAPI"); System.loadLib...
diff --git a/src/PageView.java b/src/PageView.java index 377aa55..a7c5266 100644 --- a/src/PageView.java +++ b/src/PageView.java @@ -1,106 +1,108 @@ import java.util.ArrayList; /** * Abstract class to handle a page. * * Options: * s: to select * p: previous page * n: next page * q: to exit * * @...
false
true
public void pageView(int pageSize) { boolean run = true; int pageNumber = 1; int i = 0; while (run) { while (i < pageSize*pageNumber && i < rows.size()) { System.out.println((i + 1) + ": " + rows.get(i).toString()); i++; } System.out.println("\nSearch Result Options"); System.out....
public void pageView(int pageSize) { boolean run = true; int pageNumber = 1; int i = 0; while (run) { while (i < pageSize*pageNumber && i < rows.size()) { System.out.println((i + 1) + ": " + rows.get(i).toString()); i++; } System.out.println("\nSearch Result Options"); System.out....
diff --git a/src/web/org/codehaus/groovy/grails/web/mapping/RegexUrlMapping.java b/src/web/org/codehaus/groovy/grails/web/mapping/RegexUrlMapping.java index 5910343e1..483402b04 100644 --- a/src/web/org/codehaus/groovy/grails/web/mapping/RegexUrlMapping.java +++ b/src/web/org/codehaus/groovy/grails/web/mapping/RegexUrl...
true
true
private String createURLInternal(Map parameterValues, String encoding, boolean includeContextPath) { if (encoding == null) encoding = "utf-8"; String contextPath = ""; if (includeContextPath) { GrailsWebRequest webRequest = (GrailsWebRequest) RequestContextHolder.getRequestAttr...
private String createURLInternal(Map parameterValues, String encoding, boolean includeContextPath) { if (encoding == null) encoding = "utf-8"; String contextPath = ""; if (includeContextPath) { GrailsWebRequest webRequest = (GrailsWebRequest) RequestContextHolder.getRequestAttr...
diff --git a/src/net/daboross/bukkitdev/playerdata/PlayerData.java b/src/net/daboross/bukkitdev/playerdata/PlayerData.java index e67e73a..c9214fb 100644 --- a/src/net/daboross/bukkitdev/playerdata/PlayerData.java +++ b/src/net/daboross/bukkitdev/playerdata/PlayerData.java @@ -1,218 +1,216 @@ package net.daboross.bukki...
false
true
public static String getFormattedDate(long millis) { if (millis == 0) { return "Not That Long"; } long years; long days; long hours; long minutes; long seconds; years = 0; days = TimeUnit.MILLISECONDS.toDays(millis); hours =...
public static String getFormattedDate(long millis) { if (millis == 0) { return "Not That Long"; } long years; long days; long hours; long minutes; long seconds; years = 0; days = TimeUnit.MILLISECONDS.toDays(millis); hours =...
diff --git a/src/main/java/de/l3s/boilerpipe/sax/MediaExtractor.java b/src/main/java/de/l3s/boilerpipe/sax/MediaExtractor.java index e6f1943..d824bc7 100644 --- a/src/main/java/de/l3s/boilerpipe/sax/MediaExtractor.java +++ b/src/main/java/de/l3s/boilerpipe/sax/MediaExtractor.java @@ -1,367 +1,369 @@ /* * Licensed to...
true
true
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException { TagAction ta = TAG_ACTIONS.get(localName); if (ta != null) { ta.beforeStart(this, localName); ...
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException { TagAction ta = TAG_ACTIONS.get(localName); if (ta != null) { ta.beforeStart(this, localName); ...
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/OpenTaskAction.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/OpenTaskAction.java index 8bada682b..8b8975326 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/...
true
true
public void run(IAction action) { TaskSelectionDialogWithRandom dlg = new TaskSelectionDialogWithRandom(window.getShell()); dlg.setTitle(Messages.OpenTaskAction_Open_Task); dlg.setMessage(Messages.OpenTaskAction_Select_a_task_to_open__); dlg.setShowExtendedOpeningOptions(true); if (dlg.open() != Window.OK) ...
public void run(IAction action) { TaskSelectionDialog dlg = new TaskSelectionDialog(window.getShell()); dlg.setTitle(Messages.OpenTaskAction_Open_Task); dlg.setMessage(Messages.OpenTaskAction_Select_a_task_to_open__); dlg.setShowExtendedOpeningOptions(true); if (dlg.open() != Window.OK) { return; } ...
diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/Main.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/Main.java index 52f21ac8..7515b03d 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/Main.java +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/Main.java @@ -1,316 +1,317 @@ ////////////...
true
true
public static void main(String[] aArgs) { // parse the parameters final CommandLineParser clp = new PosixParser(); CommandLine line = null; try { line = clp.parse(OPTS, aArgs); } catch (final ParseException e) { e.printStackTrace(); ...
public static void main(String[] aArgs) { // parse the parameters final CommandLineParser clp = new PosixParser(); CommandLine line = null; try { line = clp.parse(OPTS, aArgs); } catch (final ParseException e) { e.printStackTrace(); ...
diff --git a/examples/quickstart/src/test/functional/org/springside/examples/quickstart/functional/rest/TaskRestIT.java b/examples/quickstart/src/test/functional/org/springside/examples/quickstart/functional/rest/TaskRestIT.java index 77a4de3..021275d 100644 --- a/examples/quickstart/src/test/functional/org/springside/...
false
true
public void createUpdateAndDeleteTask() { //create Task task = TaskData.randomTask(); URI taskUri = restTemplate.postForLocation(resoureUrl, task); assertEquals(resoureUrl + "/6", taskUri.toString()); //update String id = StringUtils.substringAfterLast(taskUri.toString(), "/"); String newTitle = Task...
public void createUpdateAndDeleteTask() { //create Task task = TaskData.randomTask(); URI taskUri = restTemplate.postForLocation(resoureUrl, task); Task createdTask = restTemplate.getForObject(taskUri, Task.class); assertEquals(task.getTitle(), createdTask.getTitle()); //update String id = StringUtil...
diff --git a/src/main/java/net/yeputons/cscenter/dbfall2013/engines/HashTrieEngine.java b/src/main/java/net/yeputons/cscenter/dbfall2013/engines/HashTrieEngine.java index d68c1bd..232094c 100644 --- a/src/main/java/net/yeputons/cscenter/dbfall2013/engines/HashTrieEngine.java +++ b/src/main/java/net/yeputons/cscenter/db...
false
true
public ByteBuffer put(ByteBuffer key, ByteBuffer value) { if (key == null || value == null) throw new NullPointerException("key and value should not be nulls"); byte[] hash = md.digest(key.array()); assert hash.length == MD_LEN; int ptr = 4; try { fo...
public ByteBuffer put(ByteBuffer key, ByteBuffer value) { if (key == null || value == null) throw new NullPointerException("key and value should not be nulls"); byte[] hash = md.digest(key.array()); assert hash.length == MD_LEN; int ptr = 4; try { fo...
diff --git a/tools/src/test/java/org/apache/tuscany/sdo/test/AllTests.java b/tools/src/test/java/org/apache/tuscany/sdo/test/AllTests.java index 9873419..c1af67d 100644 --- a/tools/src/test/java/org/apache/tuscany/sdo/test/AllTests.java +++ b/tools/src/test/java/org/apache/tuscany/sdo/test/AllTests.java @@ -1,30 +1,30 ...
true
true
public static TestSuite suite() { TestSuite suite = new TestSuite(); // suite.addTestSuite(ChangeSummaryOnDataObjectTestCase.class); suite.addTestSuite(ChangeSummaryGenTestCase.class); suite.addTestSuite(GenPatternsTestCase.class); suite.addTestSuite(org.apache.tuscany....
public static TestSuite suite() { TestSuite suite = new TestSuite(); // suite.addTestSuite(ChangeSummaryOnDataObjectTestCase.class); suite.addTestSuite(ChangeSummaryGenTestCase.class); suite.addTestSuite(GenPatternsTestCase.class); //suite.addTestSuite(org.apache.tuscan...
diff --git a/tools/host/src/com/android/cts/HostTimer.java b/tools/host/src/com/android/cts/HostTimer.java index 2cd2a290..f2181a9c 100644 --- a/tools/host/src/com/android/cts/HostTimer.java +++ b/tools/host/src/com/android/cts/HostTimer.java @@ -1,159 +1,161 @@ /* * Copyright (C) 2008 The Android Open Source Projec...
true
true
public void cancel(boolean timeout) { mTimer.cancel(); if (mStatus == RUNNING) { if (timeout) { mStatus = TIMEOUT; } else { mStatus = CANCELLED; } } }
public void cancel(boolean timeout) { if (mTimer != null) { mTimer.cancel(); } if (mStatus == RUNNING) { if (timeout) { mStatus = TIMEOUT; } else { mStatus = CANCELLED; } } }
diff --git a/lenskit-eval/src/main/java/org/grouplens/lenskit/eval/metrics/predict/CoveragePredictMetric.java b/lenskit-eval/src/main/java/org/grouplens/lenskit/eval/metrics/predict/CoveragePredictMetric.java index abc60c9fe..a63ecb3c4 100644 --- a/lenskit-eval/src/main/java/org/grouplens/lenskit/eval/metrics/predict/C...
false
true
public Object[] evaluate(TestUser user) { SparseVector ratings = user.getTestRatings(); SparseVector predictions = user.getPredictions(); int n = 0; int good = 0; for (VectorEntry e : ratings.fast()) { double pv = predictions.get(e.getK...
public Object[] evaluate(TestUser user) { SparseVector ratings = user.getTestRatings(); SparseVector predictions = user.getPredictions(); int n = 0; int good = 0; for (VectorEntry e : ratings.fast()) { n += 1; if (predic...
diff --git a/org.eclipse.riena.tests/src/org/eclipse/riena/navigation/ui/swt/views/ModuleGroupViewTest.java b/org.eclipse.riena.tests/src/org/eclipse/riena/navigation/ui/swt/views/ModuleGroupViewTest.java index 68e52976b..2699983fb 100644 --- a/org.eclipse.riena.tests/src/org/eclipse/riena/navigation/ui/swt/views/Modul...
true
true
public void testCalculateBounds() { LnfManager.setLnf(new MyLnF()); int y = view.calculateBounds(10); assertEquals(10, y); ModuleView moduleView = new ModuleView(shell); ModuleNode moduleNode = new ModuleNode(); moduleView.bind(moduleNode); view.registerModuleView(moduleView); y = view.calculateBou...
public void testCalculateBounds() { LnfManager.setLnf(new MyLnF()); int y = view.calculateBounds(10); assertEquals(10, y); ModuleView moduleView = new ModuleView(shell); ModuleNode moduleNode = new ModuleNode(); node.addChild(moduleNode); moduleView.bind(moduleNode); view.registerModuleView(moduleV...
diff --git a/src/cz/edu/x3m/Main.java b/src/cz/edu/x3m/Main.java index 5b59b93..f1d3531 100644 --- a/src/cz/edu/x3m/Main.java +++ b/src/cz/edu/x3m/Main.java @@ -1,115 +1,115 @@ package cz.edu.x3m; import com.gargoylesoftware.htmlunit.html.HtmlPage; import cz.edu.x3m.net.objects.Subject; import cz.edu.x3m.steps.Lo...
false
true
private boolean doWork() { System.out.println("Login page"); Client client = new Client(); HtmlPage LoginPage = client.getLoginPage(); System.out.println("Logged in page"); LoginStep loginStep = new LoginStep(LoginPage); HtmlPage loggedInPage = loginStep.login(); ...
private boolean doWork() { System.out.println("Login page"); Client client = new Client(); HtmlPage LoginPage = client.getLoginPage(); System.out.println("Logged in page"); LoginStep loginStep = new LoginStep(LoginPage); HtmlPage loggedInPage = loginStep.login(); ...
diff --git a/api/src/main/java/com/github/podd/utils/OntologyUtils.java b/api/src/main/java/com/github/podd/utils/OntologyUtils.java index f248a18f..5957b42e 100644 --- a/api/src/main/java/com/github/podd/utils/OntologyUtils.java +++ b/api/src/main/java/com/github/podd/utils/OntologyUtils.java @@ -1,840 +1,843 @@ /** ...
false
true
public static void mapAndSortImports(final Model model, final ConcurrentMap<URI, URI> currentVersionsMap, final ConcurrentMap<URI, Set<URI>> allVersionsMap, final ConcurrentMap<URI, Set<URI>> importsMap, final List<URI> importOrder, final URI nextOntologyUri) { final Set<Value> i...
public static void mapAndSortImports(final Model model, final ConcurrentMap<URI, URI> currentVersionsMap, final ConcurrentMap<URI, Set<URI>> allVersionsMap, final ConcurrentMap<URI, Set<URI>> importsMap, final List<URI> importOrder, final URI nextOntologyUri) { final Set<Value> i...
diff --git a/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/MethodDefinition.java b/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/MethodDefinition.java index 7f256efdc..e37d4d03f 100644 --- a/cdi/plugins/org.jboss.tools.cdi.core/sr...
true
true
void loadParamDefinitions(IType contextType, IRootDefinitionContext context) throws CoreException { if(method == null) return; boolean parametersAreInjectionPoints = parametersAreInjectionPoints(); String[] parameterNames = method.getParameterNames(); if(parameterNames == null || parameterNames.length == 0) re...
void loadParamDefinitions(IType contextType, IRootDefinitionContext context) throws CoreException { if(method == null) return; boolean parametersAreInjectionPoints = parametersAreInjectionPoints(); String[] parameterNames = method.getParameterNames(); if(parameterNames == null || parameterNames.length == 0) re...