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/jvm/storm/starter/spout/FileFeedSpout.java b/src/jvm/storm/starter/spout/FileFeedSpout.java index a0b37bc..229a27e 100644 --- a/src/jvm/storm/starter/spout/FileFeedSpout.java +++ b/src/jvm/storm/starter/spout/FileFeedSpout.java @@ -1,122 +1,123 @@ /** * Copyright [2012] [Datasalt Systems S.L.] * ...
true
true
public void open(Map conf, TopologyContext context, SpoutOutputCollector collector){ super.open(conf, context, collector); _collector = collector; System.out.println("called spout--------------------"); // Utils.sleep(3600000/60*30); try{ String channel = "GoogleAlerts"; String sCurr...
public void open(Map conf, TopologyContext context, SpoutOutputCollector collector){ super.open(conf, context, collector); _collector = collector; System.out.println("called spout--------------------"); // Utils.sleep(3600000/60*30); try{ String channel = "GoogleAlerts"; String sCurr...
diff --git a/ibs/ibs-core/src/test/java/edu/ibs/core/operation/logic/CommonServiceTest.java b/ibs/ibs-core/src/test/java/edu/ibs/core/operation/logic/CommonServiceTest.java index dd46e2e..c8df091 100644 --- a/ibs/ibs-core/src/test/java/edu/ibs/core/operation/logic/CommonServiceTest.java +++ b/ibs/ibs-core/src/test/java...
true
true
public void updateAccountTest() { String email = "vadim.martos@gmail.com", pass = "ad"; Account acc = null; User u = null; try { acc = service.register(email, pass); Assert.assertNull(acc.getUser()); u = new User("Vadim", "Martos", "AB1953782"); acc.setUser(u); service.update(acc); Account ac...
public void updateAccountTest() { String email = "vadim.martos@gmail.com", pass = "ad"; Account acc = null; User u = null; try { acc = service.register(email, pass); Assert.assertNull(acc.getUser()); u = new User("Vadim", "Martos", "AB1953782"); acc.setUser(u); service.update(acc); Account ac...
diff --git a/JavaSource/org/unitime/timetable/dataexchange/StudentEnrollmentImport.java b/JavaSource/org/unitime/timetable/dataexchange/StudentEnrollmentImport.java index b1f8cab7..54d3ba9f 100644 --- a/JavaSource/org/unitime/timetable/dataexchange/StudentEnrollmentImport.java +++ b/JavaSource/org/unitime/timetable/dat...
true
true
public void loadXml(Element rootElement) throws Exception { boolean trimLeadingZerosFromExternalId = "true".equals(ApplicationProperties.getProperty("tmtbl.data.exchange.trim.externalId","false")); if (!rootElement.getName().equalsIgnoreCase("studentEnrollments")) throw new Exception("Given XML fil...
public void loadXml(Element rootElement) throws Exception { boolean trimLeadingZerosFromExternalId = "true".equals(ApplicationProperties.getProperty("tmtbl.data.exchange.trim.externalId","false")); if (!rootElement.getName().equalsIgnoreCase("studentEnrollments")) throw new Exception("Given XML fil...
diff --git a/Operator/DerefOp.java b/Operator/DerefOp.java index 374ee47..b6e541b 100644 --- a/Operator/DerefOp.java +++ b/Operator/DerefOp.java @@ -1,49 +1,49 @@ //--------------------------------------------------------------------- // //--------------------------------------------------------------------- clas...
true
true
public STO checkOperand(STO operand) { STO resultSTO; // Check #15a - operand is pointer type // Check operand if(!operand.getType().isPtrGrp()) { return(new ErrorSTO(Formatter.toString(ErrorMsg.error15_Receiver, operand.getType().getName()))); } /* ...
public STO checkOperand(STO operand) { STO resultSTO; // Check #15a - operand is pointer type // Check operand if(!operand.getType().isPtrGrp()) { return(new ErrorSTO(Formatter.toString(ErrorMsg.error15_Receiver, operand.getType().getName()))); } /* ...
diff --git a/src/edu/stanford/mobisocial/dungbeetle/feed/objects/PictureObj.java b/src/edu/stanford/mobisocial/dungbeetle/feed/objects/PictureObj.java index fa36f02..e085bd8 100644 --- a/src/edu/stanford/mobisocial/dungbeetle/feed/objects/PictureObj.java +++ b/src/edu/stanford/mobisocial/dungbeetle/feed/objects/Picture...
false
true
public static DbObject from(Context context, Uri imageUri) throws IOException { // Query gallery for camera picture via // Android ContentResolver interface ContentResolver cr = context.getContentResolver(); InputStream is = cr.openInputStream(imageUri); // Get binary bytes f...
public static DbObject from(Context context, Uri imageUri) throws IOException { // Query gallery for camera picture via // Android ContentResolver interface ContentResolver cr = context.getContentResolver(); InputStream is = cr.openInputStream(imageUri); // Get binary bytes f...
diff --git a/src/savant/view/swing/Savant.java b/src/savant/view/swing/Savant.java index 12b6dc83..120f61ee 100644 --- a/src/savant/view/swing/Savant.java +++ b/src/savant/view/swing/Savant.java @@ -1,3159 +1,3158 @@ /* * Copyright 2009-2010 University of Toronto * * Licensed under the Apache License, Vers...
true
true
private void initComponents() { view_buttongroup = new javax.swing.ButtonGroup(); panel_top = new javax.swing.JPanel(); panelExtendedMiddle = new javax.swing.JPanel(); panel_main = new javax.swing.JPanel(); toolbar_bottom = new javax.swing.JToolBar(); label_mouseposi...
private void initComponents() { view_buttongroup = new javax.swing.ButtonGroup(); panel_top = new javax.swing.JPanel(); panelExtendedMiddle = new javax.swing.JPanel(); panel_main = new javax.swing.JPanel(); toolbar_bottom = new javax.swing.JToolBar(); label_mouseposi...
diff --git a/de.gebit.integrity.dsl/src/de/gebit/integrity/utils/ParameterUtil.java b/de.gebit.integrity.dsl/src/de/gebit/integrity/utils/ParameterUtil.java index 14972911..f84f29bf 100644 --- a/de.gebit.integrity.dsl/src/de/gebit/integrity/utils/ParameterUtil.java +++ b/de.gebit.integrity.dsl/src/de/gebit/integrity/ut...
true
true
public static Object convertEncapsulatedValueToParamType(Class<?> aParamType, ValueOrEnumValueOrOperation aValue, Map<VariableEntity, Object> aVariableMap, ClassLoader aClassLoader) throws UnresolvableVariableException, ClassNotFoundException, UnexecutableException, InstantiationException { if (aValue == null)...
public static Object convertEncapsulatedValueToParamType(Class<?> aParamType, ValueOrEnumValueOrOperation aValue, Map<VariableEntity, Object> aVariableMap, ClassLoader aClassLoader) throws UnresolvableVariableException, ClassNotFoundException, UnexecutableException, InstantiationException { if (aValue == null)...
diff --git a/src/main/java/com/syncup/service/resources/LogInResource.java b/src/main/java/com/syncup/service/resources/LogInResource.java index 4593225..346b399 100644 --- a/src/main/java/com/syncup/service/resources/LogInResource.java +++ b/src/main/java/com/syncup/service/resources/LogInResource.java @@ -1,83 +1,83 ...
false
true
public LogInResponse logIn(LogInRequest request) { if (request.getLoginId() == null || request.getPassword() == null) { throw new WebApplicationException(400); } User user = userDAO.findByLoginId(request.getLoginId()); if (user == null) throw new WebApplica...
public LogInResponse logIn(LogInRequest request) { if (request.getLoginId() == null || request.getPassword() == null) { throw new WebApplicationException(400); } User user = userDAO.findByLoginId(request.getLoginId()); if (user == null) throw new WebApplica...
diff --git a/src/main/java/net/aufdemrand/denizen/scripts/triggers/core/ProximityTrigger.java b/src/main/java/net/aufdemrand/denizen/scripts/triggers/core/ProximityTrigger.java index d58381ff6..815d45985 100644 --- a/src/main/java/net/aufdemrand/denizen/scripts/triggers/core/ProximityTrigger.java +++ b/src/main/java/ne...
false
true
public void proximityTrigger(PlayerMoveEvent event) { // // Make sure that the player actually moved to a different block. // if (!event.getTo ().getBlock ().equals (event.getFrom ().getBlock ())) { // // Get block location // Locatio...
public void proximityTrigger(PlayerMoveEvent event) { // // Make sure that the player actually moved to a different block. // if (!event.getTo ().getBlock ().equals (event.getFrom ().getBlock ())) { // // Get block location // Locatio...
diff --git a/ui_swing/src/com/dmdirc/addons/ui_swing/components/frames/ComponentCreator.java b/ui_swing/src/com/dmdirc/addons/ui_swing/components/frames/ComponentCreator.java index 5e628663..0403f1d8 100644 --- a/ui_swing/src/com/dmdirc/addons/ui_swing/components/frames/ComponentCreator.java +++ b/ui_swing/src/com/dmdi...
true
true
public Set<JComponent> initFrameComponents( final Object frame, final SwingController controller, final DMDircMBassador eventBus, final URLBuilder urlBuilder, final FrameContainer owner) { final SimpleInjector injector = new SimpleInjector(); ...
public Set<JComponent> initFrameComponents( final Object frame, final SwingController controller, final DMDircMBassador eventBus, final URLBuilder urlBuilder, final FrameContainer owner) { final SimpleInjector injector = new SimpleInjector(); ...
diff --git a/src/MapReduceObjects/WorkerListener.java b/src/MapReduceObjects/WorkerListener.java index e8023c7..f2a8ee5 100644 --- a/src/MapReduceObjects/WorkerListener.java +++ b/src/MapReduceObjects/WorkerListener.java @@ -1,105 +1,107 @@ package MapReduceObjects; import Config.Configuration; import Interfaces.I...
true
true
public synchronized void start() throws Exception { if (thread != null) { throw new Exception("Listener already started."); } thread = new Thread(new Runnable() { /** run() * * Listens for requests from the master. * Interprets the requests and responds to them */ @Override pub...
public synchronized void start() throws Exception { if (thread != null) { throw new Exception("Listener already started."); } thread = new Thread(new Runnable() { /** run() * * Listens for requests from the master. * Interprets the requests and responds to them */ @Override pub...
diff --git a/java/src/org/broadinstitute/sting/gatk/walkers/variantutils/SelectVariants.java b/java/src/org/broadinstitute/sting/gatk/walkers/variantutils/SelectVariants.java index 08f55b533..0f1d5221c 100755 --- a/java/src/org/broadinstitute/sting/gatk/walkers/variantutils/SelectVariants.java +++ b/java/src/org/broadi...
true
true
public void initialize() { // Get list of samples to include in the output ArrayList<String> rodNames = new ArrayList<String>(); rodNames.add(variantRodName); Map<String, VCFHeader> vcfRods = VCFUtils.getVCFHeadersFromRods(getToolkit(), rodNames); TreeSet<String> vcfSamples ...
public void initialize() { // Get list of samples to include in the output ArrayList<String> rodNames = new ArrayList<String>(); rodNames.add(variantRodName); Map<String, VCFHeader> vcfRods = VCFUtils.getVCFHeadersFromRods(getToolkit(), rodNames); TreeSet<String> vcfSamples ...
diff --git a/src/org/imaginationforpeople/android/adapter/ProjectsGridAdapter.java b/src/org/imaginationforpeople/android/adapter/ProjectsGridAdapter.java index cadffb2..eba8ad3 100644 --- a/src/org/imaginationforpeople/android/adapter/ProjectsGridAdapter.java +++ b/src/org/imaginationforpeople/android/adapter/Projects...
true
true
public View getView(int position, View convertView, ViewGroup parent) { if(convertView == null) convertView = activity.getLayoutInflater().inflate(R.layout.projectslist_item, parent, false); I4pProjectTranslation project = getItem(position); TextView projectTitle = (TextView) convertView.findViewById(R.id....
public View getView(int position, View convertView, ViewGroup parent) { if(convertView == null) convertView = activity.getLayoutInflater().inflate(R.layout.projectslist_item, parent, false); I4pProjectTranslation project = getItem(position); TextView projectTitle = (TextView) convertView.findViewById(R.id....
diff --git a/app/src/main/java/org/cbase/smartahoy/AboutDialog.java b/app/src/main/java/org/cbase/smartahoy/AboutDialog.java index fb8075f..d97171a 100644 --- a/app/src/main/java/org/cbase/smartahoy/AboutDialog.java +++ b/app/src/main/java/org/cbase/smartahoy/AboutDialog.java @@ -1,19 +1,19 @@ package org.cbase.smarta...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.about); TextView aboutText=(TextView)findViewById(R.id.aboutText); aboutText.setText(Html.fromHtml("SmarAhoy! v0.1 is the app to show the notifications from <a href='ht...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.about); TextView aboutText=(TextView)findViewById(R.id.aboutText); aboutText.setText(Html.fromHtml("SmartAhoy! v0.1 is the app to show the notifications from <a href='h...
diff --git a/amibe/src/org/jcae/mesh/amibe/algos3d/Remesh.java b/amibe/src/org/jcae/mesh/amibe/algos3d/Remesh.java index aa0409bd..920c7f2f 100644 --- a/amibe/src/org/jcae/mesh/amibe/algos3d/Remesh.java +++ b/amibe/src/org/jcae/mesh/amibe/algos3d/Remesh.java @@ -1,1100 +1,1101 @@ /* jCAE stand for Java Computer Aided ...
true
true
public final Remesh compute() { LOGGER.info("Run "+getClass().getName()); if (analyticMetric != null) { if (analyticMetric.equals(LATER_BINDING)) throw new RuntimeException("Cannot determine metrics, either set 'size' or 'metricsMap' arguments, or call Remesh.setAnalyticMetric()"); for (Vertex v : kd...
public final Remesh compute() { LOGGER.info("Run "+getClass().getName()); if (analyticMetric != null) { if (analyticMetric.equals(LATER_BINDING)) throw new RuntimeException("Cannot determine metrics, either set 'size' or 'metricsMap' arguments, or call Remesh.setAnalyticMetric()"); for (Vertex v : kd...
diff --git a/src/ui/controller/GameController.java b/src/ui/controller/GameController.java index a33dede..0d3fb0d 100644 --- a/src/ui/controller/GameController.java +++ b/src/ui/controller/GameController.java @@ -1,405 +1,406 @@ package src.ui.controller; import java.awt.event.ActionEvent; import java.awt.event.Ke...
true
true
public void tick() { if (!isPaused) { game.tick(); if (isDoubleTime) { game.tick(); } if (game.isOver()) { if (game instanceof NetworkGame) { multiController.gameOver(((NetworkGame)game).getOpponent().getHealth() <= 0); } else { gameMain.showScreen(new GameOverPanel(gameMain))...
public void tick() { if (!isPaused) { game.tick(); if (isDoubleTime) { game.tick(); } if (game.isOver()) { if (game instanceof NetworkGame) { multiController.gameOver(((NetworkGame)game).getOpponent().getHealth() <= 0); } else { gameMain.showScreen(new GameOverPanel(gameMain))...
diff --git a/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/webservice/eap/EAPFromWSDLTest.java b/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/webservice/eap/EAPFromWSDLTest.java index c869bf34..d6efcbce 100644 --- a/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/...
false
true
public void testService() { topDownWS(TopDownWSTest.class.getResourceAsStream("/resources/jbossws/AreaService.wsdl"), getWsPackage()); IProject project = ResourcesPlugin.getWorkspace().getRoot() .getProject(getWsProjectName()); IFile f = project.getFile("src/" + getWsPackage().replace(".", "/") + "/...
public void testService() { topDownWS(TopDownWSTest.class.getResourceAsStream("/resources/jbossws/AreaService.wsdl"), getWsPackage()); IProject project = ResourcesPlugin.getWorkspace().getRoot() .getProject(getWsProjectName()); IFile f = project.getFile("src/" + getWsPackage().replace(".", "/") + "/...
diff --git a/code/app/com/feth/play/module/pa/providers/oauth1/OAuth1AuthProvider.java b/code/app/com/feth/play/module/pa/providers/oauth1/OAuth1AuthProvider.java index 50a7c90..0e6a5e2 100644 --- a/code/app/com/feth/play/module/pa/providers/oauth1/OAuth1AuthProvider.java +++ b/code/app/com/feth/play/module/pa/provider...
true
true
public Object authenticate(final Context context, final Object payload) throws AuthException { final Request request = context.request(); final String uri = request.uri(); if (Logger.isDebugEnabled()) { Logger.debug("Returned with URL: '" + uri + "'"); } final Configuration c = getConfiguration(); ...
public Object authenticate(final Context context, final Object payload) throws AuthException { final Request request = context.request(); final String uri = request.uri(); if (Logger.isDebugEnabled()) { Logger.debug("Returned with URL: '" + uri + "'"); } final Configuration c = getConfiguration(); ...
diff --git a/src/net/sf/jailer/ui/graphical_view/GraphicalDataModelView.java b/src/net/sf/jailer/ui/graphical_view/GraphicalDataModelView.java index 3eeccfb..ae08d6c 100644 --- a/src/net/sf/jailer/ui/graphical_view/GraphicalDataModelView.java +++ b/src/net/sf/jailer/ui/graphical_view/GraphicalDataModelView.java @@ -1,1...
true
true
public GraphicalDataModelView(final DataModel model, ExtractionModelEditor modelEditor, Table subject, int width, int height) { super(new BorderLayout()); this.model = model; this.modelEditor = modelEditor; this.root = subject; tableRenderer = new TableRenderer(model, this); t...
public GraphicalDataModelView(final DataModel model, ExtractionModelEditor modelEditor, Table subject, int width, int height) { super(new BorderLayout()); this.model = model; this.modelEditor = modelEditor; this.root = subject; tableRenderer = new TableRenderer(model, this); t...
diff --git a/src/soot/jimple/spark/SparkTransformer.java b/src/soot/jimple/spark/SparkTransformer.java index 124fa8b5..dd514ab0 100644 --- a/src/soot/jimple/spark/SparkTransformer.java +++ b/src/soot/jimple/spark/SparkTransformer.java @@ -1,200 +1,200 @@ /* Soot - a J*va Optimization Framework * Copyright (C) 2002 O...
true
true
protected void internalTransform( String phaseName, Map options ) { SparkOptions opts = new SparkOptions( options ); final String output_dir = Options.v().output_dir(); // Build pointer assignment graph ContextInsensitiveBuilder b = new ContextInsensitiveBuilder(); if( o...
protected void internalTransform( String phaseName, Map options ) { SparkOptions opts = new SparkOptions( options ); final String output_dir = SourceLocator.v().getOutputDir(); // Build pointer assignment graph ContextInsensitiveBuilder b = new ContextInsensitiveBuilder(); ...
diff --git a/app/repo/Repository.java b/app/repo/Repository.java index d5a2ce4..005341a 100644 --- a/app/repo/Repository.java +++ b/app/repo/Repository.java @@ -1,104 +1,104 @@ package repo; import java.util.*; import org.apache.commons.lang.time.DateUtils; import models.*; /** * Class that contains many gen...
true
true
public static List<Exam> searchByDate(Date first, Date last){ //Check for null if( first == null || last == null){ return new ArrayList<Exam>(0); } //Make sure that last is either the same day or after the first date if(!last.after(first) && DateUtils.isSameDay(first, last)){ //Swap them, so the sea...
public static List<Exam> searchByDate(Date first, Date last){ //Check for null if( first == null || last == null){ return new ArrayList<Exam>(0); } //Make sure that last is either the same day or after the first date if(!last.after(first) && DateUtils.isSameDay(first, last)){ //Swap them, so the sea...
diff --git a/Assignment1/src/Percolation.java b/Assignment1/src/Percolation.java index 6fd31b5..f4e9475 100644 --- a/Assignment1/src/Percolation.java +++ b/Assignment1/src/Percolation.java @@ -1,81 +1,79 @@ public class Percolation { int N; private UF grid; // create N-by-N grid, with all sites blocke...
false
true
public void open(int r, int c) { validateRange(r, c); grid.union(openElement(), site(r, c)); boolean isTopRow = r == 1; if(isTopRow){ grid.union(topElement(), site(r, c)); } boolean isBottomRow = r == N; if(isBottomRow){ grid.union(bottom...
public void open(int r, int c) { validateRange(r, c); grid.union(openElement(), site(r, c)); if(r == 1){ grid.union(topElement(), site(r, c)); } if(r == N){ grid.union(bottomElement(), site(r, c)); } }
diff --git a/CubicTestHtmlPrototypeExporter/src/main/java/org/cubictest/exporters/htmlPrototype/HtmlExportDirectoryWalker.java b/CubicTestHtmlPrototypeExporter/src/main/java/org/cubictest/exporters/htmlPrototype/HtmlExportDirectoryWalker.java index 3d20879b..4d12816d 100755 --- a/CubicTestHtmlPrototypeExporter/src/main...
true
true
protected void convertCubicTestFile(IFile file, IFolder outFolder, IProgressMonitor monitor, boolean isSelected) throws Exception{ Test test = TestPersistance.loadFromFile(file); if (!ExportUtils.testIsOkForExport(test)) { if (isSelected) { ExportUtils.throwTestNotOkForExport(test); return; } e...
protected void convertCubicTestFile(IFile file, IFolder outFolder, IProgressMonitor monitor, boolean isSelected) throws Exception{ Test test = TestPersistance.loadFromFile(file); if (!ExportUtils.testIsOkForExport(test)) { if (isSelected) { ExportUtils.throwTestNotOkForExportException(test); return; ...
diff --git a/TraceTranslator/src/AtomicTranslatorTest.java b/TraceTranslator/src/AtomicTranslatorTest.java index c526cbb..c14a49a 100644 --- a/TraceTranslator/src/AtomicTranslatorTest.java +++ b/TraceTranslator/src/AtomicTranslatorTest.java @@ -1,57 +1,57 @@ /***********************************************************...
true
true
public static void main(String[] args) { XmlTraceReader xtr = new XmlTraceReader(); File f = new File("traces/trace1.xml"); Operator o = null; try { o = Operator.parseFromString("G ((a) = (1))"); } catch (Operator.ParseException e) { System.exit(1); } EventTrace t = xtr.parseEventTrace(f); ...
public static void main(String[] args) { XmlTraceReader xtr = new XmlTraceReader(); File f = new File("traces/trace1.xml"); Operator o = null; try { o = Operator.parseFromString("G (((a) = (1)) | ((b) = (1)))"); } catch (Operator.ParseException e) { System.exit(1); } EventTrace t = xtr.parse...
diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/admin/ShowBackgroundThreadsController.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/admin/ShowBackgroundThreadsController.java index 0dacad944..f8241ca6b 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/admin/ShowBack...
true
true
protected ResponseValues processRequest(VitroRequest vreq) throws ExceptionXX { SortedMap<String, ThreadInfo> threadMap = new TreeMap<String, ThreadInfo>(); for (VitroBackgroundThread thread : VitroBackgroundThread .getLivingThreads()) { ThreadInfo threadInfo = getThreadInfo(thread); threadMap.put(thre...
protected ResponseValues processRequest(VitroRequest vreq) throws Exception { SortedMap<String, ThreadInfo> threadMap = new TreeMap<String, ThreadInfo>(); for (VitroBackgroundThread thread : VitroBackgroundThread .getLivingThreads()) { ThreadInfo threadInfo = getThreadInfo(thread); threadMap.put(thread...
diff --git a/src/main/java/hudson/plugins/perforce/PerforceSCM.java b/src/main/java/hudson/plugins/perforce/PerforceSCM.java index c7eee4e..84854ff 100644 --- a/src/main/java/hudson/plugins/perforce/PerforceSCM.java +++ b/src/main/java/hudson/plugins/perforce/PerforceSCM.java @@ -1,2324 +1,2324 @@ package hudson.plugi...
true
true
public boolean checkout(AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile) throws IOException, InterruptedException { PrintStream log = listener.getLogger(); changelogFilename = changelogFile.getAbsolutePath(); boolean wipeBe...
public boolean checkout(AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile) throws IOException, InterruptedException { PrintStream log = listener.getLogger(); changelogFilename = changelogFile.getAbsolutePath(); boolean wipeBe...
diff --git a/src/helpers/HTMLHelper.java b/src/helpers/HTMLHelper.java index 42dc243..03b86e5 100644 --- a/src/helpers/HTMLHelper.java +++ b/src/helpers/HTMLHelper.java @@ -1,191 +1,191 @@ package helpers; import java.sql.ResultSet; import java.sql.SQLException; import java.util.*; import com.mysql.jdbc.Statem...
true
true
public static String printNewsFeed(ArrayList<String> adminNews, ArrayList<String> friendActivity){ StringBuilder newsBox = new StringBuilder(); newsBox.append("<div style=\"min-width:210px;top:60px; position:fixed;height:96%; left:1060px; min-height:700px; right:0;\">"); newsBox.append("<div class=newsfeed style...
public static String printNewsFeed(ArrayList<String> adminNews, ArrayList<String> friendActivity){ StringBuilder newsBox = new StringBuilder(); newsBox.append("<div style=\"min-width:210px;top:60px; position:fixed;height:96%; left:1060px; min-height:700px; right:0;\">"); newsBox.append("<div class=newsfeed style...
diff --git a/bundles/org.eclipse.orion.server.git/src/org/eclipse/orion/server/git/servlets/GitRemoteHandlerV1.java b/bundles/org.eclipse.orion.server.git/src/org/eclipse/orion/server/git/servlets/GitRemoteHandlerV1.java index 1bae593a..96372a13 100644 --- a/bundles/org.eclipse.orion.server.git/src/org/eclipse/orion/se...
true
true
private boolean handleGet(HttpServletRequest request, HttpServletResponse response, String path) throws IOException, JSONException, ServletException, URISyntaxException, CoreException { Path p = new Path(path); // FIXME: what if a remote or branch is named "file"? if (p.segment(0).equals("file")) { //$NON-NLS-1$...
private boolean handleGet(HttpServletRequest request, HttpServletResponse response, String path) throws IOException, JSONException, ServletException, URISyntaxException, CoreException { Path p = new Path(path); // FIXME: what if a remote or branch is named "file"? if (p.segment(0).equals("file")) { //$NON-NLS-1$...
diff --git a/common/plugins/eu.esdihumboldt.hale.common.align/src/eu/esdihumboldt/hale/common/align/model/transformation/tree/context/impl/TargetContext.java b/common/plugins/eu.esdihumboldt.hale.common.align/src/eu/esdihumboldt/hale/common/align/model/transformation/tree/context/impl/TargetContext.java index 2cebe9179...
true
true
private TargetNode duplicateTarget(TargetNode target, CellNode relation, DuplicationContext duplicationContext) { TargetNodeImpl duplicatedTarget = duplicationContext.getNode( target.getEntityDefinition()); if (duplicatedTarget == null) { // target node not created yet boolean duplicateParent =...
private TargetNode duplicateTarget(TargetNode target, CellNode relation, DuplicationContext duplicationContext) { TargetNodeImpl duplicatedTarget = duplicationContext.getNode( target.getEntityDefinition()); if (duplicatedTarget == null) { // target node not created yet boolean duplicateParent =...
diff --git a/src/com/codeminders/ardrone/NavDataReader.java b/src/com/codeminders/ardrone/NavDataReader.java index 8b5b857..98c265d 100644 --- a/src/com/codeminders/ardrone/NavDataReader.java +++ b/src/com/codeminders/ardrone/NavDataReader.java @@ -1,103 +1,103 @@ package com.codeminders.ardrone; import java.io.IOE...
false
true
public void run() { try { ByteBuffer inbuf = ByteBuffer.allocate(BUFSIZE); done = false; while (!done) { selector.select(); if (done) { Log.v("Drone Control", "dissssconnnnnnect"); disconnect(); break; } Set readyKeys = selector.selectedKeys(); Iterator iterator = readyKey...
public void run() { try { ByteBuffer inbuf = ByteBuffer.allocate(BUFSIZE); done = false; while (true) { selector.select(); if (done) { Log.v("Drone Control", "dissssconnnnnnect"); disconnect(); break; } Set readyKeys = selector.selectedKeys(); Iterator iterator = readyKeys...
diff --git a/Messenger/src/au/edu/uts/eng/remotelabs/schedserver/messenger/impl/Templator.java b/Messenger/src/au/edu/uts/eng/remotelabs/schedserver/messenger/impl/Templator.java index dd156fa0..f6b3fbb7 100644 --- a/Messenger/src/au/edu/uts/eng/remotelabs/schedserver/messenger/impl/Templator.java +++ b/Messenger/src/a...
true
true
public Message generate() throws Exception { Message message = new Message(); BufferedReader reader = new BufferedReader(new InputStreamReader(this.templateUrl.openStream())); /* First line a subject line. */ message.setSubject(this.replaceMacros(reader.readLine...
public Message generate() throws Exception { Message message = new Message(); BufferedReader reader = new BufferedReader(new InputStreamReader(this.templateUrl.openStream())); /* First line a subject line. */ message.setSubject(this.replaceMacros(reader.readLine...
diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java index 2ca74bf1..f52733d5 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java +++ b/metastore/src/java/org/apache/hadoop/hi...
true
true
public void alterTable(RawStore msdb, Warehouse wh, String dbname, String name, Table newt) throws InvalidOperationException, MetaException { if (newt == null) { throw new InvalidOperationException("New table is invalid: " + newt); } if (!MetaStoreUtils.validateName(newt.getTableName()) ...
public void alterTable(RawStore msdb, Warehouse wh, String dbname, String name, Table newt) throws InvalidOperationException, MetaException { if (newt == null) { throw new InvalidOperationException("New table is invalid: " + newt); } if (!MetaStoreUtils.validateName(newt.getTableName()) ...
diff --git a/src/com/googlecode/jmxtrans/util/JmxUtils.java b/src/com/googlecode/jmxtrans/util/JmxUtils.java index 2f3ca330c..56c276a13 100644 --- a/src/com/googlecode/jmxtrans/util/JmxUtils.java +++ b/src/com/googlecode/jmxtrans/util/JmxUtils.java @@ -1,899 +1,902 @@ package com.googlecode.jmxtrans.util; import ja...
false
true
public static void processQuery(MBeanServerConnection mbeanServer, Query query) throws Exception { ObjectName oName = new ObjectName(query.getObj()); Set<ObjectName> queryNames = mbeanServer.queryNames(oName, null); for (ObjectName queryName : queryNames) { List<Result> resList = new ArrayList<Result>(); ...
public static void processQuery(MBeanServerConnection mbeanServer, Query query) throws Exception { ObjectName oName = new ObjectName(query.getObj()); Set<ObjectName> queryNames = mbeanServer.queryNames(oName, null); for (ObjectName queryName : queryNames) { List<Result> resList = new ArrayList<Result>(); ...
diff --git a/src/main/java/org/deft/web/protocol/HttpRequestMessage.java b/src/main/java/org/deft/web/protocol/HttpRequestMessage.java index 2962c92..f7722a6 100644 --- a/src/main/java/org/deft/web/protocol/HttpRequestMessage.java +++ b/src/main/java/org/deft/web/protocol/HttpRequestMessage.java @@ -1,47 +1,50 @@ pack...
true
true
public static HttpRequestMessage of(ByteBuffer buffer) { //logger.debug(new String(buffer.array(), Charset.forName("US-ASCII"))); String raw = new String(buffer.array(), Charset.forName("US-ASCII")); String[] fields = raw.split("\\r\\n"); String requestLine = fields[0]; Map<String, String> generalHeaders = ...
public static HttpRequestMessage of(ByteBuffer buffer) { //logger.debug(new String(buffer.array(), Charset.forName("US-ASCII"))); String raw = new String(buffer.array(), Charset.forName("US-ASCII")); String[] fields = raw.split("\\r\\n"); String requestLine = fields[0]; Map<String, String> generalHeaders = ...
diff --git a/src/org/apache/xerces/dom/DeferredAttrImpl.java b/src/org/apache/xerces/dom/DeferredAttrImpl.java index b9a03bf8b..d7f8fb35d 100644 --- a/src/org/apache/xerces/dom/DeferredAttrImpl.java +++ b/src/org/apache/xerces/dom/DeferredAttrImpl.java @@ -1,180 +1,180 @@ /* * The Apache Software License, Version 1....
true
true
protected void synchronizeData() { // no need to sync in the future needsSyncData(false); // fluff data DeferredDocumentImpl ownerDocument = (DeferredDocumentImpl) ownerDocument(); name = ownerDocument.getNodeName(fNodeIndex); int extra = ownerDocument.g...
protected void synchronizeData() { // no need to sync in the future needsSyncData(false); // fluff data DeferredDocumentImpl ownerDocument = (DeferredDocumentImpl) ownerDocument(); name = ownerDocument.getNodeName(fNodeIndex); int extra = ownerDocument.g...
diff --git a/src/test/java/de/hypoport/twitterwall/twitter/AuthenticatorTest.java b/src/test/java/de/hypoport/twitterwall/twitter/AuthenticatorTest.java index 73cb671..0555248 100644 --- a/src/test/java/de/hypoport/twitterwall/twitter/AuthenticatorTest.java +++ b/src/test/java/de/hypoport/twitterwall/twitter/Authentica...
true
true
public void test() { assertThat(1).isEqualTo(2); }
public void test() { assertThat(1).isEqualTo(1); }
diff --git a/src/main/java/org/vectomatic/svg/samples/client/shapes/ShapesSample.java b/src/main/java/org/vectomatic/svg/samples/client/shapes/ShapesSample.java index 0b700ce..3867054 100644 --- a/src/main/java/org/vectomatic/svg/samples/client/shapes/ShapesSample.java +++ b/src/main/java/org/vectomatic/svg/samples/cli...
true
true
public Panel getPanel() { if (panel == null) { panel = binder.createAndBindUi(this); requestSourceContents(HTML_SRC_DIR + "ShapesSample" + ".html"); tabPanel.getTabBar().setTabText(0, "Shapes"); tabPanel.getTabBar().setTabText(1, "HTML"); tabPanel.selectTab(0); // Create a SVG document OMSVG...
public Panel getPanel() { if (panel == null) { panel = binder.createAndBindUi(this); requestSourceContents(HTML_SRC_DIR + "ShapesSample" + ".html"); tabPanel.getTabBar().setTabText(0, "Shapes"); tabPanel.getTabBar().setTabText(1, "HTML"); tabPanel.selectTab(0); // Create a SVG document OMSVG...
diff --git a/test/src/main/java/org/apache/accumulo/test/randomwalk/Framework.java b/test/src/main/java/org/apache/accumulo/test/randomwalk/Framework.java index b5c9e284f..f4e57e4e9 100644 --- a/test/src/main/java/org/apache/accumulo/test/randomwalk/Framework.java +++ b/test/src/main/java/org/apache/accumulo/test/rando...
true
true
public static void main(String[] args) throws Exception { Opts opts = new Opts(); opts.parseArgs(Framework.class.getName(), args); Properties props = new Properties(); FileInputStream fis = new FileInputStream(opts.configDir + "/randomwalk.conf"); props.load(fis); fis.close(); System...
public static void main(String[] args) throws Exception { Opts opts = new Opts(); opts.parseArgs(Framework.class.getName(), args); Properties props = new Properties(); FileInputStream fis = new FileInputStream(opts.configDir + "/randomwalk.conf"); props.load(fis); fis.close(); System...
diff --git a/src/Vectors/VectorReader.java b/src/Vectors/VectorReader.java index e6e6f93..a204486 100644 --- a/src/Vectors/VectorReader.java +++ b/src/Vectors/VectorReader.java @@ -1,26 +1,28 @@ package Vectors; /** * Created with IntelliJ IDEA. * User: user * Date: 06.11.13 * Time: 17:04 * To change this...
false
true
public void run() { while(true) { syncHelper.read(); } }
public void run() { int count=0; while(count<syncHelper.size) { syncHelper.read(); count++; } }
diff --git a/src/net/zwerks/dumpfs/DumpFSLocal.java b/src/net/zwerks/dumpfs/DumpFSLocal.java index a862b89..991d155 100644 --- a/src/net/zwerks/dumpfs/DumpFSLocal.java +++ b/src/net/zwerks/dumpfs/DumpFSLocal.java @@ -1,209 +1,209 @@ package net.zwerks.dumpfs; import java.io.InputStream; import javax.swing.JOptio...
true
true
public static void main(String[] args) { // TODO Auto-generated method stub //For Benchmarking the time long progStartTime = System.currentTimeMillis(); DumpFSStatistics myStatistics = new DumpFSStatistics(); myStatistics.setAppStartTime(progStartTime); System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
public static void main(String[] args) { // TODO Auto-generated method stub //For Benchmarking the time long progStartTime = System.currentTimeMillis(); DumpFSStatistics myStatistics = new DumpFSStatistics(); myStatistics.setAppStartTime(progStartTime); System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
diff --git a/src/ru/elifantiev/fga/widget/WidgetUpdater.java b/src/ru/elifantiev/fga/widget/WidgetUpdater.java index c78f4c0..2ba7b4f 100644 --- a/src/ru/elifantiev/fga/widget/WidgetUpdater.java +++ b/src/ru/elifantiev/fga/widget/WidgetUpdater.java @@ -1,47 +1,48 @@ package ru.elifantiev.fga.widget; import ru.elifa...
true
true
public void run() { // show loading message appWidgetManager.updateAppWidget( widgetID, buildWidget( "Загружаю" ) ); // fetch advice FuckinGreatAdvice advice = new FuckinGreatAdvice( context.getString( R.string.adviceUrl ), context.getString( R.string.error ) ); ...
public void run() { // show loading message appWidgetManager.updateAppWidget( widgetID, buildWidget( context .getString( R.string.gettingAdvice ) ) ); // fetch advice FuckinGreatAdvice advice = new FuckinGreatAdvice( context.getString( R.string.adviceUrl ), ...
diff --git a/src/main/java/uk/ac/ebi/fg/annotare2/magetab/checks/idf/AtLeastOneContactWithRolesRequired.java b/src/main/java/uk/ac/ebi/fg/annotare2/magetab/checks/idf/AtLeastOneContactWithRolesRequired.java index 4605ac5..08dddaa 100644 --- a/src/main/java/uk/ac/ebi/fg/annotare2/magetab/checks/idf/AtLeastOneContactWith...
true
true
public void visit(Person person) { TermList roles = person.getRoles(); if (roles != null && roles.isEmpty()) { roleCount++; } }
public void visit(Person person) { TermList roles = person.getRoles(); if (roles != null && !roles.isEmpty()) { roleCount++; } }
diff --git a/src/com/fsck/k9/fragment/MessageListFragment.java b/src/com/fsck/k9/fragment/MessageListFragment.java index 732d83cfc..7d59ed654 100644 --- a/src/com/fsck/k9/fragment/MessageListFragment.java +++ b/src/com/fsck/k9/fragment/MessageListFragment.java @@ -1,3623 +1,3624 @@ package com.fsck.k9.fragment; imp...
true
true
public void bindView(View view, Context context, Cursor cursor) { Account account = getAccountFromCursor(cursor); String fromList = cursor.getString(SENDER_LIST_COLUMN); String toList = cursor.getString(TO_LIST_COLUMN); String ccList = cursor.getString(CC_LIST_CO...
public void bindView(View view, Context context, Cursor cursor) { Account account = getAccountFromCursor(cursor); String fromList = cursor.getString(SENDER_LIST_COLUMN); String toList = cursor.getString(TO_LIST_COLUMN); String ccList = cursor.getString(CC_LIST_CO...
diff --git a/src/org/gridlab/gridsphere/provider/portletui/tags/ActionTag.java b/src/org/gridlab/gridsphere/provider/portletui/tags/ActionTag.java index 856b988fd..e2f626fbc 100644 --- a/src/org/gridlab/gridsphere/provider/portletui/tags/ActionTag.java +++ b/src/org/gridlab/gridsphere/provider/portletui/tags/ActionTag....
true
true
protected String createJSRActionURI(PortletURL url) throws JspException { // Builds a URI containing the actin and associated params RenderResponse res = (RenderResponse) pageContext.getAttribute(SportletProperties.RENDER_RESPONSE, PageContext.REQUEST_SCOPE); this.actionURL = (PortletURLImpl...
protected String createJSRActionURI(PortletURL url) throws JspException { // Builds a URI containing the actin and associated params RenderResponse res = (RenderResponse) pageContext.getAttribute(SportletProperties.RENDER_RESPONSE, PageContext.REQUEST_SCOPE); this.actionURL = (PortletURLImpl...
diff --git a/src/java/jia/agents_coordination.java b/src/java/jia/agents_coordination.java index 25f8312..0d31f10 100644 --- a/src/java/jia/agents_coordination.java +++ b/src/java/jia/agents_coordination.java @@ -1,180 +1,182 @@ package jia; import jason.asSemantics.DefaultInternalAction; import jason.asSemantics....
true
true
private ListTerm[] coordinateGroup(int group, List<List<Vertex>> actualZones, List<Vertex> bestZone) { ListTerm positions = new ListTermImpl(); ListTerm agents = new ListTermImpl(); String[] missions; if (group == 1) { missions = new String[] {"mOccupyZone1", "mRepairZone1"}; } else if (group == 2) { ...
private ListTerm[] coordinateGroup(int group, List<List<Vertex>> actualZones, List<Vertex> bestZone) { ListTerm positions = new ListTermImpl(); ListTerm agents = new ListTermImpl(); String[] missions; if (group == 1) { missions = new String[] {"mOccupyZone1", "mRepairZone1"}; } else if (group == 2) { ...
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandtpaccept.java b/Essentials/src/com/earth2me/essentials/commands/Commandtpaccept.java index cef410a..bd59bd2 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandtpaccept.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandt...
true
true
public void run(Server server, User user, String commandLabel, String[] args) throws Exception { User p = user.getTeleportRequest(); if (p == null) { throw new Exception("You do not have a pending request."); } if (user.isTeleportRequestHere()) { user.canAfford(this); user.sendMessage("§7Telepo...
public void run(Server server, User user, String commandLabel, String[] args) throws Exception { User p = user.getTeleportRequest(); if (p == null) { throw new Exception("You do not have a pending request."); } if (user.isTeleportRequestHere()) { user.canAfford(this); user.sendMessage("§7Telepo...
diff --git a/src/com/gmail/zant95/LiveChat/PlayerDisplayName.java b/src/com/gmail/zant95/LiveChat/PlayerDisplayName.java index dd5eafe..aeb8ae5 100644 --- a/src/com/gmail/zant95/LiveChat/PlayerDisplayName.java +++ b/src/com/gmail/zant95/LiveChat/PlayerDisplayName.java @@ -1,80 +1,85 @@ package com.gmail.zant95.LiveCha...
true
true
public static void main(Player player) { String playerGroup = LiveChat.chat.getPrimaryGroup(player); String playerPrefix = LiveChat.chat.getPlayerPrefix(player); String groupPrefix = LiveChat.chat.getGroupPrefix(player.getWorld(), playerGroup); String playerSuffix = LiveChat.chat.getPlayerSuffix(player); Str...
public static void main(Player player) { String playerGroup = LiveChat.chat.getPrimaryGroup(player); String playerPrefix = LiveChat.chat.getPlayerPrefix(player); String groupPrefix = LiveChat.chat.getGroupPrefix(player.getWorld(), playerGroup); String playerSuffix = LiveChat.chat.getPlayerSuffix(player); Str...
diff --git a/ComicReader/src/com/blogspot/applications4android/comicreader/comics/Xkcd.java b/ComicReader/src/com/blogspot/applications4android/comicreader/comics/Xkcd.java index 76c0c38..fce898f 100755 --- a/ComicReader/src/com/blogspot/applications4android/comicreader/comics/Xkcd.java +++ b/ComicReader/src/com/blogsp...
true
true
protected String parse(String url, BufferedReader reader, Strip strip) throws IOException { String str; String final_str = null; String final_title = null; String final_title1 = null; String final_itext = null; while ((str = reader.readLine()) != null) { int index1 = str.indexOf("<img src=\"http:/...
protected String parse(String url, BufferedReader reader, Strip strip) throws IOException { String str; String final_str = null; String final_title = null; String final_title1 = null; String final_itext = null; while ((str = reader.readLine()) != null) { int index1 = str.indexOf("<img src=\"http:/...
diff --git a/minnal-security/src/test/java/org/minnal/security/filter/AuthenticationFilterTest.java b/minnal-security/src/test/java/org/minnal/security/filter/AuthenticationFilterTest.java index fbbf1fb..06ab088 100644 --- a/minnal-security/src/test/java/org/minnal/security/filter/AuthenticationFilterTest.java +++ b/mi...
true
true
public void shouldRedirectIfClientNameIsSet() throws RequiresHttpAction { Session session = mock(Session.class); when(session.getId()).thenReturn(UUID.randomUUID().toString()); Response response = mock(Response.class); JaxrsWebContext webContext = mock(JaxrsWebContext.class); when(webContext.getResponse()).t...
public void shouldRedirectIfClientNameIsSet() throws RequiresHttpAction { Session session = mock(Session.class); when(session.getId()).thenReturn(UUID.randomUUID().toString()); Response response = mock(Response.class); JaxrsWebContext webContext = mock(JaxrsWebContext.class); when(webContext.getResponse()).t...
diff --git a/app/controllers/WeatherController.java b/app/controllers/WeatherController.java index 1d8cb82..c8faeec 100644 --- a/app/controllers/WeatherController.java +++ b/app/controllers/WeatherController.java @@ -1,257 +1,260 @@ /** * */ package controllers; import java.io.InputStream; import java.net.UR...
false
true
public static WebSocket<JsonNode> webSocket() { return new WebSocket<JsonNode>() { // Called when the Websocket Handshake is done. public void onReady(WebSocket.In<JsonNode> in, final WebSocket.Out<JsonNode> out) { in.onMessage(new Callback<JsonNode>() { public void invoke(JsonNode event) { Lo...
public static WebSocket<JsonNode> webSocket() { return new WebSocket<JsonNode>() { // Called when the Websocket Handshake is done. public void onReady(WebSocket.In<JsonNode> in, final WebSocket.Out<JsonNode> out) { in.onMessage(new Callback<JsonNode>() { public void invoke(JsonNode event) { Lo...
diff --git a/src/org/tvheadend/tvhguide/ProgrammeListActivity.java b/src/org/tvheadend/tvhguide/ProgrammeListActivity.java index 11e754f..73a1457 100644 --- a/src/org/tvheadend/tvhguide/ProgrammeListActivity.java +++ b/src/org/tvheadend/tvhguide/ProgrammeListActivity.java @@ -1,495 +1,497 @@ /* * Copyright (C) 2011...
true
true
public void onCreate(Bundle icicle) { SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); Boolean theme = prefs.getBoolean("lightThemePref", false); setTheme(theme ? R.style.CustomTheme_Light : R.style.CustomTheme); super.onCreate(icicle); TVHGuideApplicat...
public void onCreate(Bundle icicle) { SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); Boolean theme = prefs.getBoolean("lightThemePref", false); setTheme(theme ? R.style.CustomTheme_Light : R.style.CustomTheme); super.onCreate(icicle); TVHGuideApplicat...
diff --git a/gerrithudsontrigger/src/main/java/com/sonyericsson/hudson/plugins/gerrit/trigger/ExceptionDataHelper.java b/gerrithudsontrigger/src/main/java/com/sonyericsson/hudson/plugins/gerrit/trigger/ExceptionDataHelper.java index 4626a712..3e16ed83 100644 --- a/gerrithudsontrigger/src/main/java/com/sonyericsson/huds...
true
true
public ExceptionDataHelper(String displayName, int id, WatchTimeExceptionData data) { this.displayName = displayName; this.checked = data.isExceptionDay(id); this.id = id; }
public ExceptionDataHelper(String displayName, int id, WatchTimeExceptionData data) { this.displayName = displayName; if (data == null) { this.checked = false; } else { this.checked = data.isExceptionDay(id); } this.id = id; }
diff --git a/oauth2-server/src/main/java/oauthsample/oauth/SamlAuthenticator.java b/oauth2-server/src/main/java/oauthsample/oauth/SamlAuthenticator.java index a4847b6..cb302da 100644 --- a/oauth2-server/src/main/java/oauthsample/oauth/SamlAuthenticator.java +++ b/oauth2-server/src/main/java/oauthsample/oauth/SamlAuthen...
true
true
private void redirectToSamlIdp(org.restlet.Response response) { // the appSettings object contain application specific settings used by // the SAML library AppSettings appSettings = new AppSettings(); // set the URL of the consume.jsp (or similar) file for this app. The // SAML Response will be posted to this...
private void redirectToSamlIdp(org.restlet.Response response) { // the appSettings object contain application specific settings used by // the SAML library AppSettings appSettings = new AppSettings(); // set the URL of the consume.jsp (or similar) file for this app. The // SAML Response will be posted to this...
diff --git a/WFPMapping/device/survey/src/com/gallatinsystems/survey/device/service/DataSyncService.java b/WFPMapping/device/survey/src/com/gallatinsystems/survey/device/service/DataSyncService.java index 8ca63d5c5..82dcdf12d 100644 --- a/WFPMapping/device/survey/src/com/gallatinsystems/survey/device/service/DataSyncSe...
false
true
private HashSet<String>[] formZip(String fileName, boolean dataOnly) { HashSet<String>[] idsToUpdate = new HashSet[3]; idsToUpdate[0] = new HashSet<String>(); idsToUpdate[1] = new HashSet<String>(); idsToUpdate[2] = new HashSet<String>(); StringBuilder surveyBuf = new StringBuilder(); ArrayList<String> ima...
private HashSet<String>[] formZip(String fileName, boolean dataOnly) { HashSet<String>[] idsToUpdate = new HashSet[3]; idsToUpdate[0] = new HashSet<String>(); idsToUpdate[1] = new HashSet<String>(); idsToUpdate[2] = new HashSet<String>(); StringBuilder surveyBuf = new StringBuilder(); ArrayList<String> ima...
diff --git a/loci/formats/FileStitcher.java b/loci/formats/FileStitcher.java index 864124df5..38d5122c5 100644 --- a/loci/formats/FileStitcher.java +++ b/loci/formats/FileStitcher.java @@ -1,822 +1,822 @@ // // FileStitcher.java // /* LOCI Bio-Formats package for reading and converting biological file formats. ...
true
true
protected void initFile(String id) throws FormatException, IOException { currentId = id; fp = findPattern(id); // verify that file pattern is valid and matches existing files String msg = " Please rename your files or disable file stitching."; if (!fp.isValid()) { throw new FormatException(...
protected void initFile(String id) throws FormatException, IOException { currentId = id; fp = findPattern(id); // verify that file pattern is valid and matches existing files String msg = " Please rename your files or disable file stitching."; if (!fp.isValid()) { throw new FormatException(...
diff --git a/src/org/jacorb/orb/CDRInputStream.java b/src/org/jacorb/orb/CDRInputStream.java index d7da4cf44..fdd195aef 100644 --- a/src/org/jacorb/orb/CDRInputStream.java +++ b/src/org/jacorb/orb/CDRInputStream.java @@ -1,2893 +1,2893 @@ package org.jacorb.orb; /* * JacORB - a free Java ORB * * Copy...
true
true
private final org.omg.CORBA.TypeCode read_TypeCode(final Map tcMap ) { String id = null; String name = null; int member_count = 0; int length = 0; int size = 0; boolean byteorder = false; org.omg.CORBA.TypeC...
private final org.omg.CORBA.TypeCode read_TypeCode(final Map tcMap ) { String id = null; String name = null; int member_count = 0; int length = 0; int size = 0; boolean byteorder = false; org.omg.CORBA.TypeC...
diff --git a/EWUPackage/loaders/ColladaLoader.java b/EWUPackage/loaders/ColladaLoader.java index 7e69319..794a555 100644 --- a/EWUPackage/loaders/ColladaLoader.java +++ b/EWUPackage/loaders/ColladaLoader.java @@ -1,565 +1,565 @@ package EWUPackage.loaders; import java.io.FileNotFoundException; import EWUPackage....
true
true
public void loadModel(Collada collada) throws Exception { String sceneUrl = collada.scene.instance_visual_scene.url.substring(1); //starting point into the collada file Nodec node = null; //the first node in the scene boolean flag = true; String igurl; //the starting url Mesh mesh=null; //the mesh...
public void loadModel(Collada collada) throws Exception { String sceneUrl = collada.scene.instance_visual_scene.url.substring(1); //starting point into the collada file Nodec node = null; //the first node in the scene boolean flag = true; String igurl; //the starting url Mesh mesh=null; //the mesh...
diff --git a/src/main/java/org/mvel/compiler/AbstractParser.java b/src/main/java/org/mvel/compiler/AbstractParser.java index c2b293ef..5bf264e5 100644 --- a/src/main/java/org/mvel/compiler/AbstractParser.java +++ b/src/main/java/org/mvel/compiler/AbstractParser.java @@ -1,1771 +1,1771 @@ /** * MVEL (The MVFLEX Expre...
false
true
protected ASTNode nextToken() { try { /** * If the cursor is at the end of the expression, we have nothing more to do: * return null. */ if (cursor >= length) { return null; } else if (!splitAccumulator.i...
protected ASTNode nextToken() { try { /** * If the cursor is at the end of the expression, we have nothing more to do: * return null. */ if (cursor >= length) { return null; } else if (!splitAccumulator.i...
diff --git a/modules/weblounge-contentrepository/src/main/java/ch/entwine/weblounge/contentrepository/impl/AbstractContentRepository.java b/modules/weblounge-contentrepository/src/main/java/ch/entwine/weblounge/contentrepository/impl/AbstractContentRepository.java index 0656bbfc6..1d9c2af41 100644 --- a/modules/webloun...
true
true
public <R extends Resource<?>> R get( ResourceURI uri) throws ContentRepositoryException { if (!isStarted()) throw new IllegalStateException("Content repository is not connected"); // Check if the resource is available try { if (!index.exists(uri)) { return null; ...
public <R extends Resource<?>> R get( ResourceURI uri) throws ContentRepositoryException { if (!isStarted()) throw new IllegalStateException("Content repository is not connected"); // Check if the resource is available try { if (!index.exists(uri)) { return null; ...
diff --git a/araqne-logdb-client/src/main/java/org/araqne/logdb/client/http/impl/WebSocketSession.java b/araqne-logdb-client/src/main/java/org/araqne/logdb/client/http/impl/WebSocketSession.java index 86ca2585..36f0626b 100644 --- a/araqne-logdb-client/src/main/java/org/araqne/logdb/client/http/impl/WebSocketSession.ja...
true
true
public Message rpc(Message req, int timeout) throws IOException { WaitingCall call = table.set(req.getGuid()); String json = MessageCodec.encode(req); synchronized (sendLock) { websocket.send(json); } // wait response infinitely Message m; try { if (timeout == 0) m = table.await(call); el...
public Message rpc(Message req, int timeout) throws IOException { WaitingCall call = table.set(req.getGuid()); String json = MessageCodec.encode(req); synchronized (sendLock) { websocket.send(json); } // wait response infinitely Message m; try { if (timeout == 0) m = table.await(call); el...
diff --git a/cspi-webui/src/main/java/org/collectionspace/chain/csp/webui/authorities/AuthoritiesVocabulariesSearchList.java b/cspi-webui/src/main/java/org/collectionspace/chain/csp/webui/authorities/AuthoritiesVocabulariesSearchList.java index 75080e17..e7b6fa5c 100644 --- a/cspi-webui/src/main/java/org/collectionspac...
true
true
private void search_or_list_vocab(JSONObject out,Instance n,Storage storage,UIRequest ui,String param, String pageSize, String pageNum) throws ExistException, UnimplementedException, UnderlyingStorageException, JSONException { JSONObject restriction=new JSONObject(); if(param!=null){ restriction.put("queryTerm"...
private void search_or_list_vocab(JSONObject out,Instance n,Storage storage,UIRequest ui,String param, String pageSize, String pageNum) throws ExistException, UnimplementedException, UnderlyingStorageException, JSONException { JSONObject restriction=new JSONObject(); if(param!=null && !param.equals("")){ restri...
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataManager.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataManager.java index e5297073e..a65396269 100644 --- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/...
true
true
public void putUpdatedTaskData(final ITask itask, final TaskData taskData, final boolean user, Object token) throws CoreException { final AbstractTask task = (AbstractTask) itask; Assert.isNotNull(task); Assert.isNotNull(taskData); final AbstractRepositoryConnector connector = repositoryManager.getRepositor...
public void putUpdatedTaskData(final ITask itask, final TaskData taskData, final boolean user, Object token) throws CoreException { final AbstractTask task = (AbstractTask) itask; Assert.isNotNull(task); Assert.isNotNull(taskData); final AbstractRepositoryConnector connector = repositoryManager.getRepositor...
diff --git a/src/it/example/storygame/story1.java b/src/it/example/storygame/story1.java index 281ae58..519bc8b 100644 --- a/src/it/example/storygame/story1.java +++ b/src/it/example/storygame/story1.java @@ -1,268 +1,268 @@ package it.example.storygame; import android.os.Bundle; import android.app.Activity;...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.story1); second = (Button)findViewById(R.id.indietro); second.setVisibility(View.INVISIBLE); //inizio textview = (TextView) findViewById(R.id.story1); //textview.setVerticalScrollBarEnab...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.story1); second = (Button)findViewById(R.id.indietro); second.setVisibility(View.INVISIBLE); //inizio textview = (TextView) findViewById(R.id.story1); //textview.setVerticalScrollBarEnab...
diff --git a/src/com/android/launcher/SubMenu.java b/src/com/android/launcher/SubMenu.java index ae00bf3..c585271 100644 --- a/src/com/android/launcher/SubMenu.java +++ b/src/com/android/launcher/SubMenu.java @@ -1,64 +1,64 @@ package com.android.launcher; import android.app.Activity; import android.content.Contex...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); context = this.getApplicationContext(); setContentView(R.layout.submenu); title = getIntent().getStringExtra("com.andr...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); context = this; setContentView(R.layout.submenu); title = getIntent().getStringExtra("com.android.launcher.Extended.Su...
diff --git a/arago-portlet-util/src/main/java/de/arago/portlet/util/SecurityHelper.java b/arago-portlet-util/src/main/java/de/arago/portlet/util/SecurityHelper.java index fd0404b..1b208ad 100644 --- a/arago-portlet-util/src/main/java/de/arago/portlet/util/SecurityHelper.java +++ b/arago-portlet-util/src/main/java/de/ar...
true
true
private static User getUserFromCookies(HttpServletRequest request) throws Exception { // https://www.everit.biz/web/guest/everit-blog/-/blogs/getting-current-liferay-user-in-a-standalone-webapp final Cookie[] cookies = request.getCookies(); String userId = null; String password = ...
private static User getUserFromCookies(HttpServletRequest request) throws Exception { // https://www.everit.biz/web/guest/everit-blog/-/blogs/getting-current-liferay-user-in-a-standalone-webapp final Cookie[] cookies = request.getCookies() == null?new Cookie[0]:request.getCookies(); String u...
diff --git a/modules/rampart-core/src/main/java/org/apache/rampart/util/HandlerParameterDecoder.java b/modules/rampart-core/src/main/java/org/apache/rampart/util/HandlerParameterDecoder.java index 92a8f695d..4deb5691b 100644 --- a/modules/rampart-core/src/main/java/org/apache/rampart/util/HandlerParameterDecoder.java +...
true
true
public static void processParameters(MessageContext msgCtx, boolean inflow) throws Exception { Parameter inFlowSecParam; Parameter outFlowSecParam; if(msgCtx.isServerSide()){ inFlowSecParam = msgCtx.getParameter(WSSHandlerConstants.INFLOW_SECURITY_SERVER); o...
public static void processParameters(MessageContext msgCtx, boolean inflow) throws Exception { Parameter inFlowSecParam; Parameter outFlowSecParam; if(msgCtx.isServerSide()){ inFlowSecParam = msgCtx.getParameter(WSSHandlerConstants.INFLOW_SECURITY_SERVER); o...
diff --git a/RMG.java b/RMG.java index a9102870..16e660dc 100644 --- a/RMG.java +++ b/RMG.java @@ -1,321 +1,325 @@ //////////////////////////////////////////////////////////////////////////////// // // RMG - Reaction Mechanism Generator // // Copyright (c) 2002-2009 Prof. William H. Green (whgreen@mit.edu) and the...
true
true
public static void initializeSystemProperties(String inputfile) { File f = new File("."); String dir = f.getAbsolutePath(); File therfit = new File("therfit"); therfit.mkdir(); File chemkin = new File("chemkin"); chemkin.mkdir(); //writeThermoFile(); File Restart = new File("Restart"); Restart....
public static void initializeSystemProperties(String inputfile) { File f = new File("."); String dir = f.getAbsolutePath(); File therfit = new File("therfit"); therfit.mkdir(); File chemkin = new File("chemkin"); chemkin.mkdir(); //writeThermoFile(); File Restart = new File("Restart"); Restart....
diff --git a/wings/src/org/wings/session/Session.java b/wings/src/org/wings/session/Session.java index 07739e74..b08116bf 100644 --- a/wings/src/org/wings/session/Session.java +++ b/wings/src/org/wings/session/Session.java @@ -1,628 +1,628 @@ /* * $Id$ * (c) Copyright 2000 wingS development team. * * This file...
true
true
protected void destroy() { Iterator it = frames.iterator(); while (it.hasNext()) { SContainer container = ((SFrame)it.next()).getContentPane(); if (container != null) container.removeAll(); } reloadManager.clear(); reloadManage...
protected void destroy() { Iterator it = frames.iterator(); while (it.hasNext()) { SContainer container = ((SFrame)it.next()).getContentPane(); if (container != null) container.removeAll(); } reloadManager.clear(); reloadManage...
diff --git a/src/org/joval/util/tree/CachingTree.java b/src/org/joval/util/tree/CachingTree.java index 39df45c5..74fcdec6 100755 --- a/src/org/joval/util/tree/CachingTree.java +++ b/src/org/joval/util/tree/CachingTree.java @@ -1,388 +1,392 @@ // Copyright (C) 2011 jOVAL.org. All rights reserved. // This software is ...
false
true
private Collection<String> treeSearch(String parent, String path) throws Exception { if (path == null || path.length() < 1) { throw new IOException(JOVALSystem.getMessage(JOVALMsg.ERROR_FS_NULLPATH)); } String parentName = parent == null ? "[root]" : parent; getLogger().trace(JOVALMsg.STATUS_FS_SEARCH, par...
private Collection<String> treeSearch(String parent, String path) throws Exception { if (path == null || path.length() < 1) { throw new IOException(JOVALSystem.getMessage(JOVALMsg.ERROR_FS_NULLPATH)); } String parentName = parent == null ? "[root]" : parent; getLogger().trace(JOVALMsg.STATUS_FS_SEARCH, par...
diff --git a/test/com/google/inject/ProviderInjectionTest.java b/test/com/google/inject/ProviderInjectionTest.java index 20367af3..176bdb92 100644 --- a/test/com/google/inject/ProviderInjectionTest.java +++ b/test/com/google/inject/ProviderInjectionTest.java @@ -1,80 +1,81 @@ /** * Copyright (C) 2006 Google Inc. *...
false
true
public void testProvidersAreInjectedWhenBound() { Module m = new AbstractModule() { @Override protected void configure() { bind(Bar.class).toProvider(new Provider<Bar>() { @SuppressWarnings("unused") @Inject void cantBeCalled(Baz baz) { fail("Can't have called this method...
public void testProvidersAreInjectedWhenBound() { Module m = new AbstractModule() { @Override protected void configure() { bind(Bar.class).toProvider(new Provider<Bar>() { @SuppressWarnings("unused") @Inject void cantBeCalled(Baz baz) { fail("Can't have called t...
diff --git a/src/com/dmdirc/ui/dialogs/error/ErrorDetailPanel.java b/src/com/dmdirc/ui/dialogs/error/ErrorDetailPanel.java index 6eb46837c..cbb4e7345 100644 --- a/src/com/dmdirc/ui/dialogs/error/ErrorDetailPanel.java +++ b/src/com/dmdirc/ui/dialogs/error/ErrorDetailPanel.java @@ -1,172 +1,172 @@ /* * Copyright (c) 2...
false
true
private void updateDetails() { SwingUtilities.invokeLater(new Runnable() { public void run() { if (error == null) { id.setText(""); date.setText(""); level.setText(""); status.setText(""); ...
private void updateDetails() { SwingUtilities.invokeLater(new Runnable() { public void run() { details.clear(); if (error == null) { id.setText(""); date.setText(""); level.setText(""); ...
diff --git a/sonar-csharp-plugin/src/main/java/org/sonar/plugins/csharp/core/CSharpFxCopProvider.java b/sonar-csharp-plugin/src/main/java/org/sonar/plugins/csharp/core/CSharpFxCopProvider.java index 46c4565ff..0a8728d6d 100644 --- a/sonar-csharp-plugin/src/main/java/org/sonar/plugins/csharp/core/CSharpFxCopProvider.jav...
false
true
public static List extensions() { return ImmutableList.of( CSharpFxCopRuleRepository.class, CSharpFxCopSensor.class, PropertyDefinition.builder(FXCOP_ASSEMBLIES_PROPERTY_KEY) .name("Assembly to analyze") .description("Example.: bin\\Debug\\MyProject.dll") .category(CATEGO...
public static List extensions() { return ImmutableList.of( CSharpFxCopRuleRepository.class, CSharpFxCopSensor.class, PropertyDefinition.builder(FXCOP_ASSEMBLIES_PROPERTY_KEY) .name("Assembly to analyze") .description("Example: bin\\Debug\\MyProject.dll") .category(CATEGOR...
diff --git a/src/com/trippylizard/tensixtysix/Main.java b/src/com/trippylizard/tensixtysix/Main.java index 5478ebd..e37be47 100644 --- a/src/com/trippylizard/tensixtysix/Main.java +++ b/src/com/trippylizard/tensixtysix/Main.java @@ -1,226 +1,226 @@ package com.trippylizard.tensixtysix; import static org.lwjgl.opena...
true
true
public Main() { try { Display.setDisplayMode(new DisplayMode(WIDTH, HEIGHT)); Display.setTitle("1066 - Alpha Version 0.0.1"); Display.create(); AL.create(); } catch (LWJGLException ex) { ex.printStackTrace(); closeall(); } glMatrixMode(GL_PROJECTION); glLoadIdentity(); glOrtho(0, WIDTH...
public Main() { try { Display.setDisplayMode(new DisplayMode(WIDTH, HEIGHT)); Display.setTitle("1066 - Alpha Version 0.0.1"); Display.create(); AL.create(); } catch (LWJGLException ex) { ex.printStackTrace(); closeall(); } glMatrixMode(GL_PROJECTION); glLoadIdentity(); glOrtho(0, WIDTH...
diff --git a/gui/src/main/java/com/jakeapp/gui/swing/actions/abstracts/PeopleListAction.java b/gui/src/main/java/com/jakeapp/gui/swing/actions/abstracts/PeopleListAction.java index 838da658..a10862c0 100644 --- a/gui/src/main/java/com/jakeapp/gui/swing/actions/abstracts/PeopleListAction.java +++ b/gui/src/main/java/com...
false
true
protected void actionOnSelectedPeople(TrustState trust) { // support multiselect for (Object oMember : getList().getSelectedValues()) { UserId member = (UserId) oMember; if (member == null) { log.warn("Action TrustNoPeopleAction failed for " + oMember); ...
protected void actionOnSelectedPeople(TrustState trust) { // support multiselect for (Object oMember : getList().getSelectedValues()) { UserInfo member = (UserInfo) oMember; if (member == null) { log.warn("Action TrustNoPeopleAction failed for " + oMember); ...
diff --git a/trunk/crux-widgets/src/main/java/org/cruxframework/crux/widgets/client/anchor/Anchor.java b/trunk/crux-widgets/src/main/java/org/cruxframework/crux/widgets/client/anchor/Anchor.java index 5962809b2..b48e160d6 100644 --- a/trunk/crux-widgets/src/main/java/org/cruxframework/crux/widgets/client/anchor/Anchor....
true
true
protected SelectEvent select() { if (getHandlerCount(SelectEvent.getType()) > 0) { return SelectEvent.fire(this); } else if (!StringUtils.isEmpty(getHref())) { if (!StringUtils.isEmpty(getTarget())) { Window.open(getHref(), getTarget(), null); } else { Window.Locatio...
protected SelectEvent select() { if (getHandlerCount(SelectEvent.getType()) > 0) { return SelectEvent.fire(this); } else if (!StringUtils.isEmpty(getHref())) { if (!StringUtils.isEmpty(getTarget())) { Window.open(getHref(), getTarget(), ""); } else { Window.Location....
diff --git a/src/TreeWalker.java b/src/TreeWalker.java index f6c0180..f823873 100644 --- a/src/TreeWalker.java +++ b/src/TreeWalker.java @@ -1,845 +1,854 @@ import org.antlr.runtime.ANTLRStringStream; import org.antlr.runtime.CommonTokenStream; import org.antlr.runtime.RecognitionException; import org.antlr.runtime...
false
true
public void walk(CommonTree t, BufferedWriter out) { try { if (t != null) { { // every unary operator needs to be preceded by a open // parenthesis and ended with a closed parenthesis if (printedAlready.contains((CommonTree) t)) { } else switch (t.getType()) { case TanGParse...
public void walk(CommonTree t, BufferedWriter out) { try { if (t != null) { { // every unary operator needs to be preceded by a open // parenthesis and ended with a closed parenthesis if (printedAlready.contains((CommonTree) t)) { } else switch (t.getType()) { case TanGParse...
diff --git a/test/src/org/mozilla/gecko/background/common/TestUtils.java b/test/src/org/mozilla/gecko/background/common/TestUtils.java index 07cec9541..288ba90d2 100644 --- a/test/src/org/mozilla/gecko/background/common/TestUtils.java +++ b/test/src/org/mozilla/gecko/background/common/TestUtils.java @@ -1,159 +1,159 @@...
true
true
public void testDeleteDirectory() throws Exception { final String TEST_DIR = getApplicationContext().getCacheDir().getAbsolutePath() + "-testDeleteDirectory-" + System.currentTimeMillis(); // Non-existent directory. final File nonexistent = new File("nonexistentDirectory"); // Hopefully. ;) a...
public void testDeleteDirectory() throws Exception { final String TEST_DIR = getApplicationContext().getCacheDir().getAbsolutePath() + "-testDeleteDirectory-" + System.currentTimeMillis(); // Non-existent directory. final File nonexistent = new File("nonexistentDirectory"); // Hopefully. ;) a...
diff --git a/melati/src/main/java/org/melati/admin/Admin.java b/melati/src/main/java/org/melati/admin/Admin.java index 5d97d992b..d6bc2abdd 100644 --- a/melati/src/main/java/org/melati/admin/Admin.java +++ b/melati/src/main/java/org/melati/admin/Admin.java @@ -1,599 +1,601 @@ /* * $Source$ * $Revision$ * * Par...
true
true
protected WebContext selection(WebContext context, Melati melati) throws NotFoundException, InvalidTypeException, PoemException, HandlerException { final Table table = melati.getTable(); context.put("table", table); final Database database = table.getDatabase(); context.put("databa...
protected WebContext selection(WebContext context, Melati melati) throws NotFoundException, InvalidTypeException, PoemException, HandlerException { final Table table = melati.getTable(); context.put("table", table); final Database database = table.getDatabase(); context.put("databa...
diff --git a/hazelcast/src/main/java/com/hazelcast/core/ItemEvent.java b/hazelcast/src/main/java/com/hazelcast/core/ItemEvent.java index 2a6d3c68..edcd2059 100644 --- a/hazelcast/src/main/java/com/hazelcast/core/ItemEvent.java +++ b/hazelcast/src/main/java/com/hazelcast/core/ItemEvent.java @@ -1,51 +1,51 @@ /* * Cop...
true
true
public String toString() { return "ItemEvent{" + "event=" + eventType + ", item=" + item + "} "; }
public String toString() { return "ItemEvent{" + "event=" + eventType + ", item=" + getItem() + "} "; }
diff --git a/src/main/java/grisu/gricli/command/DownloadJobCommand.java b/src/main/java/grisu/gricli/command/DownloadJobCommand.java index 93b95d9..d3c556a 100644 --- a/src/main/java/grisu/gricli/command/DownloadJobCommand.java +++ b/src/main/java/grisu/gricli/command/DownloadJobCommand.java @@ -1,251 +1,255 @@ packag...
true
true
public void execute(final GricliEnvironment env) throws GricliRuntimeException { if ((async != null) && !"&".equals(async)) { throw new GricliRuntimeException( "Last token needs to be \"&\" or local directory."); } boolean hasError = false; final ServiceInterface si = env.getServiceInterface(); ...
public void execute(final GricliEnvironment env) throws GricliRuntimeException { if ((async != null) && !"&".equals(async)) { throw new GricliRuntimeException( "Last token needs to be \"&\" or local directory."); } boolean hasError = false; final ServiceInterface si = env.getServiceInterface(); ...
diff --git a/src/main/java/de/cismet/cismap/commons/gui/metasearch/MetaSearch.java b/src/main/java/de/cismet/cismap/commons/gui/metasearch/MetaSearch.java index 99262216..8385d872 100644 --- a/src/main/java/de/cismet/cismap/commons/gui/metasearch/MetaSearch.java +++ b/src/main/java/de/cismet/cismap/commons/gui/metasear...
false
true
public void masterConfigure(final Element parent) { if (parent == null) { LOG.warn("The meta search isn't configured."); return; } final Element metaSearch = parent.getChild(CONF_METASEARCH); if (metaSearch == null) { LOG.warn("The meta search isn...
public void masterConfigure(final Element parent) { if (parent == null) { LOG.warn("The meta search isn't configured."); return; } final Element metaSearch = parent.getChild(CONF_METASEARCH); if (metaSearch == null) { LOG.warn("The meta search isn...
diff --git a/deegree-core/deegree-core-metadata/src/main/java/org/deegree/metadata/iso/persistence/parsing/ParseIdentificationInfo.java b/deegree-core/deegree-core-metadata/src/main/java/org/deegree/metadata/iso/persistence/parsing/ParseIdentificationInfo.java index 914bcb7729..cd42771a4e 100644 --- a/deegree-core/deeg...
false
true
protected void parseIdentificationInfo( List<OMElement> identificationInfo, QueryableProperties qp, ReturnableProperties rp ) throws IllegalArgumentException { List<OMElement> identificationInfo_Update = new ArrayList<OMElement>(); ...
protected void parseIdentificationInfo( List<OMElement> identificationInfo, QueryableProperties qp, ReturnableProperties rp ) throws IllegalArgumentException { List<OMElement> identificationInfo_Update = new ArrayList<OMElement>(); ...
diff --git a/test/util/CsvnConfigTest.java b/test/util/CsvnConfigTest.java index c68700f..e978d69 100644 --- a/test/util/CsvnConfigTest.java +++ b/test/util/CsvnConfigTest.java @@ -1,182 +1,182 @@ package util; import java.io.File; import java.io.IOException; import java.util.List; import models.Group; import...
false
true
public void testGetConfigurationWhenGroupDontHaveUsers() { List<Group> groups = Group.find("order by name").fetch(); List<Repository> repositories = Repository.all().fetch(); String config = csvnConfig.getConfig(groups, repositories); String expected = "[groups]" + LINE_SEP...
public void testGetConfigurationWhenGroupDontHaveUsers() { List<Group> groups = Group.find("order by name").fetch(); List<Repository> repositories = Repository.all().fetch(); String config = csvnConfig.getConfig(groups, repositories); String expected = "[groups]" + LINE_SEP...
diff --git a/ludum-dare-26/src/eu32k/ludumdare/ld26/LudumDare26.java b/ludum-dare-26/src/eu32k/ludumdare/ld26/LudumDare26.java index ac5bc8f..bea1bd6 100644 --- a/ludum-dare-26/src/eu32k/ludumdare/ld26/LudumDare26.java +++ b/ludum-dare-26/src/eu32k/ludumdare/ld26/LudumDare26.java @@ -1,119 +1,119 @@ package eu32k.ludu...
true
true
public void draw(float delta) { // player inputs -------------------------------- boolean up = Gdx.input.isKeyPressed(Input.Keys.W) || Gdx.input.isKeyPressed(Input.Keys.UP); boolean down = Gdx.input.isKeyPressed(Input.Keys.S) || Gdx.input.isKeyPressed(Input.Keys.DOWN); boolean left = Gdx.inp...
public void draw(float delta) { // player inputs -------------------------------- boolean up = Gdx.input.isKeyPressed(Input.Keys.W) || Gdx.input.isKeyPressed(Input.Keys.UP); boolean down = Gdx.input.isKeyPressed(Input.Keys.S) || Gdx.input.isKeyPressed(Input.Keys.DOWN); boolean left = Gdx.inp...
diff --git a/src/org/mozilla/javascript/NativeGenerator.java b/src/org/mozilla/javascript/NativeGenerator.java index 34d95a58..d008c6de 100755 --- a/src/org/mozilla/javascript/NativeGenerator.java +++ b/src/org/mozilla/javascript/NativeGenerator.java @@ -1,243 +1,244 @@ /* -*- Mode: java; tab-width: 8; indent-tabs-mod...
false
true
public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { if (!f.hasTag(GENERATOR_TAG)) { return super.execIdCall(f, cx, scope, thisObj, args); } int id = f.methodId(); if (!(thisObj i...
public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { if (!f.hasTag(GENERATOR_TAG)) { return super.execIdCall(f, cx, scope, thisObj, args); } int id = f.methodId(); if (!(thisObj i...
diff --git a/src/main/battlecode/world/Sensor.java b/src/main/battlecode/world/Sensor.java index 27914b23..f0d30f46 100644 --- a/src/main/battlecode/world/Sensor.java +++ b/src/main/battlecode/world/Sensor.java @@ -1,109 +1,109 @@ package battlecode.world; import battlecode.common.Chassis; import com.google.common...
true
true
public RobotInfo senseRobotInfo(Robot r) throws GameActionException { assertEquipped(); InternalRobot ir = castInternalRobot(r); assertWithinRange(ir); ComponentType[] components; if (canSenseComponents(ir)) components = ir.getComponentTypes(); else ...
public RobotInfo senseRobotInfo(Robot r) throws GameActionException { assertEquipped(); InternalRobot ir = castInternalRobot(r); assertWithinRange(ir); ComponentType[] components; if (canSenseComponents(ir)) components = ir.getComponentTypes(); else ...
diff --git a/src/main/java/suite/node/util/Comparer.java b/src/main/java/suite/node/util/Comparer.java index 636b1eae0..9f264b079 100644 --- a/src/main/java/suite/node/util/Comparer.java +++ b/src/main/java/suite/node/util/Comparer.java @@ -1,54 +1,56 @@ package suite.node.util; import java.util.Comparator; import...
true
true
public int compare(Node n0, Node n1) { n0 = n0.finalNode(); n1 = n1.finalNode(); Class<? extends Node> clazz0 = n0.getClass(); Class<? extends Node> clazz1 = n1.getClass(); if (clazz0 == clazz1) if (clazz0 == Atom.class) return ((Atom) n0).getName().compareTo(((Atom) n1).getName()); else if (clazz...
public int compare(Node n0, Node n1) { n0 = n0.finalNode(); n1 = n1.finalNode(); Class<? extends Node> clazz0 = n0.getClass(); Class<? extends Node> clazz1 = n1.getClass(); if (clazz0 == clazz1) if (clazz0 == Atom.class) return ((Atom) n0).getName().compareTo(((Atom) n1).getName()); else if (clazz...
diff --git a/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/mongomk/ClusterJoinTest.java b/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/mongomk/ClusterJoinTest.java index 80992a9c9e..c777c45068 100644 --- a/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/mongomk/ClusterJoinTest.java +++ b...
false
true
public void nodeJoins() throws Exception { String rev1, rev2, rev3; // perform manual background ops mk.getNodeStore().setAsyncDelay(0); rev1 = mk.commit("/", "+\"foo\":{}", null, null); // start a new MongoMK instance. this instance sees /foo // because it started a...
public void nodeJoins() throws Exception { String rev1, rev2, rev3; // perform manual background ops mk.getNodeStore().setAsyncDelay(0); rev1 = mk.commit("/", "+\"foo\":{}", null, null); // start a new MongoMK instance. this instance sees /foo // because it started a...
diff --git a/src/com/android/exchange/PartRequest.java b/src/com/android/exchange/PartRequest.java index 2cc322d..23b4add 100644 --- a/src/com/android/exchange/PartRequest.java +++ b/src/com/android/exchange/PartRequest.java @@ -1,51 +1,51 @@ /* * Copyright (C) 2008-2009 Marc Blank * Licensed to The Android Open S...
true
true
public PartRequest(Attachment _att, String _destination, String _contentUriString) { super(_att.mId); mAttachment = _att; mLocation = mAttachment.mLocation; mDestination = _destination; mContentUriString = _contentUriString; }
public PartRequest(Attachment _att, String _destination, String _contentUriString) { super(_att.mMessageKey); mAttachment = _att; mLocation = mAttachment.mLocation; mDestination = _destination; mContentUriString = _contentUriString; }
diff --git a/src/org/biojava/bio/program/search/FastaSearchParser.java b/src/org/biojava/bio/program/search/FastaSearchParser.java index 9aa2ac8d6..d46885566 100644 --- a/src/org/biojava/bio/program/search/FastaSearchParser.java +++ b/src/org/biojava/bio/program/search/FastaSearchParser.java @@ -1,636 +1,636 @@ /* *...
true
true
public void parseSearch(final BufferedReader reader, final SearchContentHandler handler) throws IOException, BioException, ParserException { lineNumber = 0; boolean parsedQueryId = false; this.handler = handler; LINE: while ((line = reader.readLine()) != null)...
public void parseSearch(final BufferedReader reader, final SearchContentHandler handler) throws IOException, BioException, ParserException { lineNumber = 0; boolean parsedQueryId = false; this.handler = handler; LINE: while ((line = reader.readLine()) != null)...
diff --git a/src/com/mojang/mojam/gui/OptionsMenu.java b/src/com/mojang/mojam/gui/OptionsMenu.java index 287ce301..df64ce78 100644 --- a/src/com/mojang/mojam/gui/OptionsMenu.java +++ b/src/com/mojang/mojam/gui/OptionsMenu.java @@ -1,241 +1,241 @@ package com.mojang.mojam.gui; import java.awt.event.KeyEvent; impo...
true
true
public OptionsMenu() { loadOptions(); int gameWidth = MojamComponent.GAME_WIDTH; int gameHeight = MojamComponent.GAME_HEIGHT; int offset = 32; int xOffset = (gameWidth - Button.BUTTON_WIDTH) / 2; int yOffset = (gameHeight - (7 * offset + 20 + 32)) / 2; textY = yOffset; yOffset += 32; addButton(new ...
public OptionsMenu() { loadOptions(); int gameWidth = MojamComponent.GAME_WIDTH; int gameHeight = MojamComponent.GAME_HEIGHT; int offset = 32; int xOffset = (gameWidth - Button.BUTTON_WIDTH) / 2; int yOffset = (gameHeight - (7 * offset + 20 + 32)) / 2; textY = yOffset; yOffset += 16; addButton(new ...
diff --git a/main/src/com/google/android/apps/dashclock/calendar/CalendarExtension.java b/main/src/com/google/android/apps/dashclock/calendar/CalendarExtension.java index 28a4646..17f520b 100644 --- a/main/src/com/google/android/apps/dashclock/calendar/CalendarExtension.java +++ b/main/src/com/google/android/apps/dashc...
false
true
protected void onUpdateData(int reason) { SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this); boolean showAllDay = sp.getBoolean(PREF_SHOW_ALL_DAY, false); try { mLookAheadHours = Integer.parseInt(sp.getString(PREF_LOOK_AHEAD_HOURS, In...
protected void onUpdateData(int reason) { SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this); boolean showAllDay = sp.getBoolean(PREF_SHOW_ALL_DAY, false); try { mLookAheadHours = Integer.parseInt(sp.getString(PREF_LOOK_AHEAD_HOURS, In...
diff --git a/code/ContextAnalyser/src/uk/co/md87/android/contextanalyser/DataHelper.java b/code/ContextAnalyser/src/uk/co/md87/android/contextanalyser/DataHelper.java index 84c393e..1d9262f 100644 --- a/code/ContextAnalyser/src/uk/co/md87/android/contextanalyser/DataHelper.java +++ b/code/ContextAnalyser/src/uk/co/md87...
true
true
public void addJourney(final Place start, final Place end, final List<String> activities) { final List<JourneyStep> steps = JourneyUtil.getSteps(activities); final Collection<Journey> journeys = findJourneys(start, end); for (Journey journey : journeys) { if (journey.getSteps() ...
public void addJourney(final Place start, final Place end, final List<String> activities) { final List<JourneyStep> steps = JourneyUtil.getSteps(activities); final Collection<Journey> journeys = findJourneys(start, end); for (Journey journey : journeys) { if (journey.getSteps() ...
diff --git a/src/pxchat/util/Logging.java b/src/pxchat/util/Logging.java index 06a4a5d..f3d36e0 100644 --- a/src/pxchat/util/Logging.java +++ b/src/pxchat/util/Logging.java @@ -1,241 +1,241 @@ /** * */ package pxchat.util; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream;...
true
true
public void endLog() { end = "\t<end date=\"" + getLogDate() + "\" time=\"" + getLogTime() + "\" />\n"; try { File fLog = new File(logfilename); if (!fLog.exists()) fLog.createNewFile(); oswLog = new OutputStreamWriter(new FileOutputStream(fLog), encoding); /** * build the basic header...
public void endLog() { end = "\t<end date=\"" + getLogDate() + "\" time=\"" + getLogTime() + "\" />\n"; try { File fLog = new File(logfilename); if (!fLog.exists()) fLog.createNewFile(); oswLog = new OutputStreamWriter(new FileOutputStream(fLog), encoding); /** * build the basic header...
diff --git a/Login/src/server/DezernatBean.java b/Login/src/server/DezernatBean.java index 1d28d28..04190dc 100644 --- a/Login/src/server/DezernatBean.java +++ b/Login/src/server/DezernatBean.java @@ -1,126 +1,126 @@ package server; import java.util.HashMap; import java.util.List; import javax.faces.application...
true
true
public DezernatBean() { subjectList = DBSubject.loadSubjectsforDezernat(); Map = new HashMap<Subject, List<Field>>(); for (Subject s : subjectList) { s.getSubTitle(); if(!DBField.loadFieldforDezernat(s.getSubTitle()).isEmpty()){ fieldList = DBField.loadFieldforDezernat(s.getSubTitle()); } M...
public DezernatBean() { subjectList = DBSubject.loadSubjectsforDezernat(); Map = new HashMap<Subject, List<Field>>(); for (Subject s : subjectList) { s.getSubTitle(); if(!DBField.loadFieldforDezernat(s.getSubTitle()).isEmpty()){ fieldList = DBField.loadFieldforDezernat(s.getSubTitle()); } M...
diff --git a/Superuser/src/com/koushikdutta/superuser/PolicyFragmentInternal.java b/Superuser/src/com/koushikdutta/superuser/PolicyFragmentInternal.java index 6e56673..e50a465 100644 --- a/Superuser/src/com/koushikdutta/superuser/PolicyFragmentInternal.java +++ b/Superuser/src/com/koushikdutta/superuser/PolicyFragmentI...
true
true
public void showExtraActions(final UidPolicy up, final ListItem item){ AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); builder.setTitle(up.name); builder.setIcon(Helper.loadPackageIcon(getActivity(), up.packageName)); final String permissionChange = (up.policy.equa...
public void showExtraActions(final UidPolicy up, final ListItem item){ AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); builder.setTitle(up.name); builder.setIcon(Helper.loadPackageIcon(getActivity(), up.packageName)); final String permissionChange = (up.policy.equa...
diff --git a/src/Main.java b/src/Main.java index 4d73e9c..469d811 100644 --- a/src/Main.java +++ b/src/Main.java @@ -1,23 +1,23 @@ import client.CameraClient; import client.HTTPServer; import se.lth.cs.fakecamera.Axis211A; public class Main { public static void main(String[] args) { Axis211A camera = n...
true
true
public static void main(String[] args) { Axis211A camera = new Axis211A(); (new CameraServer(6077, 6078, "localhost", 6079, camera)).start(); (new CameraServer(6080, 6081, "localhost", 6082, camera)).start(); CameraClient cameraClient = new CameraClient( "localhost", 60...
public static void main(String[] args) { Axis211A camera = new Axis211A(); (new CameraServer(6077, 6078, "localhost", 6079, camera)).start(); (new CameraServer(6080, 6081, "localhost", 6082, camera)).start(); CameraClient cameraClient = new CameraClient( "localhost", 60...
diff --git a/src/com/android/htmlviewer/HTMLViewerActivity.java b/src/com/android/htmlviewer/HTMLViewerActivity.java index 1c42441..2e46e49 100644 --- a/src/com/android/htmlviewer/HTMLViewerActivity.java +++ b/src/com/android/htmlviewer/HTMLViewerActivity.java @@ -1,161 +1,157 @@ /* * Copyright (C) 2008 The Android ...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Call createInstance() explicitly. createInstance() is called in // BrowserFrame by WebView. As it is called in WebCore thread, it can // happen after onResume() is called. To use getInstanc...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Call createInstance() explicitly. createInstance() is called in // BrowserFrame by WebView. As it is called in WebCore thread, it can // happen after onResume() is called. To use getInstanc...
diff --git a/de.peeeq.wurstscript/src/de/peeeq/wurstscript/parser/WurstScriptScanner.java b/de.peeeq.wurstscript/src/de/peeeq/wurstscript/parser/WurstScriptScanner.java index b93921dd..a0543e74 100644 --- a/de.peeeq.wurstscript/src/de/peeeq/wurstscript/parser/WurstScriptScanner.java +++ b/de.peeeq.wurstscript/src/de/pe...
false
true
public java_cup.runtime.Symbol next_token() throws java.io.IOException { if (eof != null) { // finish unindents... if (indent > 0) { indent--; return new Symbol(TokenType.UNINDENT, eof.left, eof.right); } else { return new Symbol(TokenType.EOF, eof.left, eof.right); } } Symbol token; ...
public java_cup.runtime.Symbol next_token() throws java.io.IOException { if (eof != null) { if (indent > 0) { // finish unindents... indent--; return new Symbol(TokenType.UNINDENT, eof.left, eof.right); } else { return new Symbol(TokenType.EOF, eof.left, eof.right); } } Symbol token; ...
diff --git a/src/com/android/camera/PhotoMenu.java b/src/com/android/camera/PhotoMenu.java index 92396c71b..f9400fc99 100644 --- a/src/com/android/camera/PhotoMenu.java +++ b/src/com/android/camera/PhotoMenu.java @@ -1,245 +1,249 @@ /* * Copyright (C) 2012 The Android Open Source Project * * Licensed under the A...
false
true
public void initialize(PreferenceGroup group) { super.initialize(group); mPopup = null; mSecondPopup = null; PieItem item = null; // flash if (group.findPreference(CameraSettings.KEY_FLASH_MODE) != null) { item = makeItem(CameraSettings.KEY_FLASH_MODE, POS...
public void initialize(PreferenceGroup group) { super.initialize(group); mPopup = null; mSecondPopup = null; PieItem item = null; // flash if (group.findPreference(CameraSettings.KEY_FLASH_MODE) != null) { item = makeItem(CameraSettings.KEY_FLASH_MODE, POS...