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/examples/api/java/Datatypes.java b/examples/api/java/Datatypes.java index d5d4af897..9406031c1 100644 --- a/examples/api/java/Datatypes.java +++ b/examples/api/java/Datatypes.java @@ -1,104 +1,103 @@ /********************* */ /*! \file Datatypes.java...
true
true
public static void main(String[] args) { System.loadLibrary("cvc4jni"); ExprManager em = new ExprManager(); Expr helloworld = em.mkVar("Hello World!", em.booleanType()); SmtEngine smt = new SmtEngine(em); // This example builds a simple "cons list" of integers, with // two constructors, "con...
public static void main(String[] args) { System.loadLibrary("cvc4jni"); ExprManager em = new ExprManager(); SmtEngine smt = new SmtEngine(em); // This example builds a simple "cons list" of integers, with // two constructors, "cons" and "nil." // Building a datatype consists of two steps. ...
diff --git a/src/main/java/nodebox/node/NodeContext.java b/src/main/java/nodebox/node/NodeContext.java index 0fca6f75..101390be 100644 --- a/src/main/java/nodebox/node/NodeContext.java +++ b/src/main/java/nodebox/node/NodeContext.java @@ -1,504 +1,506 @@ package nodebox.node; import com.google.common.base.Objects; ...
true
true
public List<?> renderChild(Node network, Node child, Map<Port, ?> networkArgumentMap) { // A list of all result objects. List<Object> resultsList = new ArrayList<Object>(); // If the node has no input ports, execute the node once for its side effects. if (child.getInputs().isEmpty()...
public List<?> renderChild(Node network, Node child, Map<Port, ?> networkArgumentMap) { // A list of all result objects. List<Object> resultsList = new ArrayList<Object>(); // If the node has no input ports, execute the node once for its side effects. if (child.getInputs().isEmpty()...
diff --git a/src/de/ueller/midlet/gps/ImageCollector.java b/src/de/ueller/midlet/gps/ImageCollector.java index f92645dd..9ae43667 100644 --- a/src/de/ueller/midlet/gps/ImageCollector.java +++ b/src/de/ueller/midlet/gps/ImageCollector.java @@ -1,683 +1,683 @@ /* * GpsMid - Copyright (c) 2007 Harald Mueller james22 at...
true
true
public void run() { PaintContext createPC = null; final byte MAXCRASHES = 5; byte crash = 0; do { try { while (!shutdown) { if (!needRedraw || suspended) { synchronized (this) { try { /* FIXME: We still have some situations where redraw is not done automatically immediately, ...
public void run() { PaintContext createPC = null; final byte MAXCRASHES = 5; byte crash = 0; do { try { while (!shutdown) { if (!needRedraw || suspended) { synchronized (this) { try { /* FIXME: We still have some situations where redraw is not done automatically immediately, ...
diff --git a/src/main/java/org/rest/spring/root/ApplicationConfig.java b/src/main/java/org/rest/spring/root/ApplicationConfig.java index acf0d3a9..6a914d51 100644 --- a/src/main/java/org/rest/spring/root/ApplicationConfig.java +++ b/src/main/java/org/rest/spring/root/ApplicationConfig.java @@ -1,26 +1,26 @@ package or...
true
true
public PropertyPlaceholderConfigurer properties(){ final PropertyPlaceholderConfigurer ppc = new PropertyPlaceholderConfigurer(); final Resource[] resources = new ClassPathResource[ ] { new ClassPathResource( "persistence.properties" ), new ClassPathResource( "restfull.properties" ) }; ppc.setLocations( resource...
public static PropertyPlaceholderConfigurer properties(){ final PropertyPlaceholderConfigurer ppc = new PropertyPlaceholderConfigurer(); final Resource[] resources = new ClassPathResource[ ] { new ClassPathResource( "persistence.properties" ), new ClassPathResource( "restfull.properties" ) }; ppc.setLocations( r...
diff --git a/src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsBitmapWGLDrawable.java b/src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsBitmapWGLDrawable.java index 18c868c6d..c61a8d0e4 100644 --- a/src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsBitmapWGLDrawable.java +++ b/src/jogl/clas...
true
true
private void create() { int werr; NativeSurface ns = getNativeSurface(); if(DEBUG) { System.err.println("WindowsBitmapWGLDrawable (1): "+ns); } WindowsWGLGraphicsConfiguration config = (WindowsWGLGraphicsConfiguration)ns.getGraphicsConfiguration().getNativeGraphicsConfiguration(); GLCa...
private void create() { int werr; NativeSurface ns = getNativeSurface(); if(DEBUG) { System.err.println("WindowsBitmapWGLDrawable (1): "+ns); } WindowsWGLGraphicsConfiguration config = (WindowsWGLGraphicsConfiguration)ns.getGraphicsConfiguration().getNativeGraphicsConfiguration(); GLCa...
diff --git a/qa/cycle-tests/src/test/java/com/camunda/fox/cycle/test/TestCycleRoundtripIT.java b/qa/cycle-tests/src/test/java/com/camunda/fox/cycle/test/TestCycleRoundtripIT.java index a0d56e196..4184e2bf2 100644 --- a/qa/cycle-tests/src/test/java/com/camunda/fox/cycle/test/TestCycleRoundtripIT.java +++ b/qa/cycle-test...
false
true
public static void testCycleDeployment() throws Exception { String serverName = System.getProperty("test.server.name"); if(serverName == null) { httpPort = "38080"; } else { if("jboss".equals(serverName)) { httpPort = "38080"; } else if("glassfish".equals(serverName)) { ...
public static void testCycleDeployment() throws Exception { String serverName = System.getProperty("test.server.name"); if(serverName == null) { httpPort = "38080"; } else { if("jboss".equals(serverName)) { httpPort = "38080"; } else if("glassfish".equals(serverName)) { ...
diff --git a/SITracker/src/main/java/com/andrada/sitracker/tasks/UpdateAuthorsTask.java b/SITracker/src/main/java/com/andrada/sitracker/tasks/UpdateAuthorsTask.java index 58ef518..dc29c4d 100644 --- a/SITracker/src/main/java/com/andrada/sitracker/tasks/UpdateAuthorsTask.java +++ b/SITracker/src/main/java/com/andrada/si...
true
true
private boolean updateAuthor(Author author) throws SQLException { boolean authorUpdated = false; HttpRequest request; try { request = HttpRequest.get(new URL(author.getUrl())); if (request.code() == 404) { //skip this author //Not avail...
private boolean updateAuthor(Author author) throws SQLException { boolean authorUpdated = false; HttpRequest request; try { request = HttpRequest.get(new URL(author.getUrl())); if (request.code() == 404) { //skip this author //Not avail...
diff --git a/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/core/dispatchers/ResponseDispatcher.java b/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/core/dispatchers/ResponseDispatcher.java index 189713322..f77a35988 100644 --- a/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/core/disp...
true
true
public void dispatchMessage(final SipProvider sipProvider, SipServletMessageImpl sipServletMessage) throws DispatcherException { final SipFactoryImpl sipFactoryImpl = sipApplicationDispatcher.getSipFactory(); final SipServletResponseImpl sipServletResponse = (SipServletResponseImpl) sipServletMessage; final Re...
public void dispatchMessage(final SipProvider sipProvider, SipServletMessageImpl sipServletMessage) throws DispatcherException { final SipFactoryImpl sipFactoryImpl = sipApplicationDispatcher.getSipFactory(); final SipServletResponseImpl sipServletResponse = (SipServletResponseImpl) sipServletMessage; final Re...
diff --git a/src/main/java/org/datacite/mds/tools/AbstractTool.java b/src/main/java/org/datacite/mds/tools/AbstractTool.java index 62aec9d..d4acac6 100644 --- a/src/main/java/org/datacite/mds/tools/AbstractTool.java +++ b/src/main/java/org/datacite/mds/tools/AbstractTool.java @@ -1,37 +1,40 @@ package org.datacite.mds...
false
true
public static final void initAndRun(String[] args) { try { AbstractApplicationContext context = new ClassPathXmlApplicationContext(APPLICATION_CONTEXT); String callingClassName = Thread.currentThread().getStackTrace()[2].getClassName(); Class<AbstractTool> callingClass = ...
public static final void initAndRun(String[] args) { AbstractApplicationContext context = null; try { context = new ClassPathXmlApplicationContext(APPLICATION_CONTEXT); String callingClassName = Thread.currentThread().getStackTrace()[2].getClassName(); Class<Abstr...
diff --git a/src/frontend/edu/brown/hstore/PartitionLockQueue.java b/src/frontend/edu/brown/hstore/PartitionLockQueue.java index c296a0de2..dd014334b 100644 --- a/src/frontend/edu/brown/hstore/PartitionLockQueue.java +++ b/src/frontend/edu/brown/hstore/PartitionLockQueue.java @@ -1,681 +1,686 @@ package edu.brown.hsto...
false
true
private QueueState checkQueueState(boolean afterRemoval) { if (trace.val && super.isEmpty() == false) LOG.trace(String.format("Partition %d :: checkQueueState(afterPoll=%s) [current=%s]", this.partitionId, afterRemoval, this.state)); QueueState newState = (afterRemo...
private QueueState checkQueueState(boolean afterRemoval) { if (trace.val && super.isEmpty() == false) LOG.trace(String.format("Partition %d :: checkQueueState(afterPoll=%s) [current=%s]", this.partitionId, afterRemoval, this.state)); QueueState newState = (afterRemo...
diff --git a/openregistry-api/src/main/java/org/openregistry/core/domain/MockPerson.java b/openregistry-api/src/main/java/org/openregistry/core/domain/MockPerson.java index 35f610a6..dc303ef9 100644 --- a/openregistry-api/src/main/java/org/openregistry/core/domain/MockPerson.java +++ b/openregistry-api/src/main/java/or...
true
true
public Set<Identifier> getIdentifiers() { final Set<Identifier> identifiers = new HashSet<Identifier>(); final Identifier id = new Identifier() { public IdentifierType getType() { return new IdentifierType() { public Long getId() { ...
public Set<Identifier> getIdentifiers() { final Set<Identifier> identifiers = new HashSet<Identifier>(); final Identifier id = new Identifier() { public IdentifierType getType() { return new IdentifierType() { public Long getId() { ...
diff --git a/cadpage/src/net/anei/cadpage/SmsReceiver.java b/cadpage/src/net/anei/cadpage/SmsReceiver.java index b36fcf1f5..64a791895 100644 --- a/cadpage/src/net/anei/cadpage/SmsReceiver.java +++ b/cadpage/src/net/anei/cadpage/SmsReceiver.java @@ -1,138 +1,141 @@ package net.anei.cadpage; import android.content.Br...
false
true
public void onReceive(Context context, Intent intent) { if (Log.DEBUG) Log.v("SMSReceiver: onReceive()"); // If initialization failure in progress, shut down without doing anything if (TopExceptionHandler.isInitFailure()) return; SmsMmsMessage message = null; // If repeat_last flag is s...
public void onReceive(Context context, Intent intent) { if (Log.DEBUG) Log.v("SMSReceiver: onReceive()"); // If initialization failure in progress, shut down without doing anything if (TopExceptionHandler.isInitFailure()) return; SmsMmsMessage message = null; // If repeat_last flag is s...
diff --git a/src/ui/jsf-backend/java/com/flexive/war/beans/admin/main/SystemInfoBean.java b/src/ui/jsf-backend/java/com/flexive/war/beans/admin/main/SystemInfoBean.java index 35a2af75..91032e45 100644 --- a/src/ui/jsf-backend/java/com/flexive/war/beans/admin/main/SystemInfoBean.java +++ b/src/ui/jsf-backend/java/com/fl...
false
true
public String getApplicationServerName() { if (System.getProperty("product.name") != null) { String ver = System.getProperty("product.name"); if (System.getProperty("com.sun.jbi.domain.name") != null) ver = " Domain: " + System.getProperty("com.sun.jbi.domain.name");...
public String getApplicationServerName() { if (System.getProperty("product.name") != null) { // Glassfish / Sun AS String ver = System.getProperty("product.name"); if (System.getProperty("com.sun.jbi.domain.name") != null) ver += " (Domain: " + System.get...
diff --git a/src/main/java/com/wormhole_xtreme/wormhole/model/StargateShapeLayer.java b/src/main/java/com/wormhole_xtreme/wormhole/model/StargateShapeLayer.java index f83960d..8336cb9 100644 --- a/src/main/java/com/wormhole_xtreme/wormhole/model/StargateShapeLayer.java +++ b/src/main/java/com/wormhole_xtreme/wormhole/m...
false
true
protected StargateShapeLayer(final String[] layerLines, final int height, final int width) { int numBlocks = 0; // 1. scan all lines for lines beginning with [ - that is the height of the gate for (int i = 0; i < layerLines.length; i++) { final Matcher m = Pattern.c...
protected StargateShapeLayer(final String[] layerLines, final int height, final int width) { int numBlocks = 0; // 1. scan all lines for lines beginning with [ - that is the height of the gate for (int i = 0; i < layerLines.length; i++) { final Matcher m = Pattern.c...
diff --git a/src/wikipathways/org/pathvisio/gui/wikipathways/PathwayPageApplet.java b/src/wikipathways/org/pathvisio/gui/wikipathways/PathwayPageApplet.java index f6978771..4fad7c1b 100644 --- a/src/wikipathways/org/pathvisio/gui/wikipathways/PathwayPageApplet.java +++ b/src/wikipathways/org/pathvisio/gui/wikipathways/...
false
true
public final void init() { //Add a mouse listener that requests focus on clicking //To fix bug 299 addMouseListener(new MouseAdapter() { public void mousePressed(MouseEvent e) { PathwayPageApplet.this.requestFocus(); PathwayPageApplet.this.requestFocusInWindow(); } }); try { Logger.log.tr...
public final void init() { //Add a mouse listener that requests focus on clicking //To fix bug 299 addMouseListener(new MouseAdapter() { public void mousePressed(MouseEvent e) { PathwayPageApplet.this.requestFocus(); PathwayPageApplet.this.requestFocusInWindow(); } }); try { Logger.log.tr...
diff --git a/shell/bundles/src/main/java/org/apache/karaf/shell/bundles/Refresh.java b/shell/bundles/src/main/java/org/apache/karaf/shell/bundles/Refresh.java index 73a13d956..144448c71 100644 --- a/shell/bundles/src/main/java/org/apache/karaf/shell/bundles/Refresh.java +++ b/shell/bundles/src/main/java/org/apache/kara...
true
true
protected void doExecute(List<Bundle> bundles) throws Exception { // Get package admin service. ServiceReference ref = getBundleContext().getServiceReference(PackageAdmin.class.getName()); if (ref == null) { System.out.println("PackageAdmin service is unavailable."); ...
protected void doExecute(List<Bundle> bundles) throws Exception { // Get package admin service. ServiceReference ref = getBundleContext().getServiceReference(PackageAdmin.class.getName()); if (ref == null) { System.out.println("PackageAdmin service is unavailable."); ...
diff --git a/ev/endrov/makeMovie/MakeMovieWindow.java b/ev/endrov/makeMovie/MakeMovieWindow.java index 9ddb0f1c..2f0a237a 100644 --- a/ev/endrov/makeMovie/MakeMovieWindow.java +++ b/ev/endrov/makeMovie/MakeMovieWindow.java @@ -1,314 +1,314 @@ /*** * Copyright (C) 2010 Johan Henriksson * This code is under the Endr...
true
true
public MakeMovieWindow(Rectangle bounds) { spinnerEnd.setFrame("1000h"); updateQualityList(); for(int i=0;i<numChannelCombo;i++) { EvComboChannel c=new EvComboChannel(false, false); c.addActionListener(this); channelCombo.add(c); //filterSeq.add(new FilterSeq()); if(i==0) chanDesc....
public MakeMovieWindow(Rectangle bounds) { spinnerEnd.setFrame("1000h"); updateQualityList(); for(int i=0;i<numChannelCombo;i++) { EvComboChannel c=new EvComboChannel(true, false); c.addActionListener(this); channelCombo.add(c); //filterSeq.add(new FilterSeq()); if(i==0) chanDesc.a...
diff --git a/src/com/maton/tools/stiletto/model/SpritePool.java b/src/com/maton/tools/stiletto/model/SpritePool.java index 46d132c..d5d641e 100644 --- a/src/com/maton/tools/stiletto/model/SpritePool.java +++ b/src/com/maton/tools/stiletto/model/SpritePool.java @@ -1,30 +1,34 @@ package com.maton.tools.stiletto.model; ...
false
true
public Sprite getElement(String name) { if (name.equals("< empty >")) { return EMPTY; } return super.getElement(name); }
public Sprite getElement(String name) { if (name.equals(EMPTY.getName())) { return EMPTY; } Sprite spr = super.getElement(name); if (spr == null) { spr = createElement(name); } return spr; }
diff --git a/src/java/davmail/caldav/CaldavConnection.java b/src/java/davmail/caldav/CaldavConnection.java index 6a0735b..e160907 100644 --- a/src/java/davmail/caldav/CaldavConnection.java +++ b/src/java/davmail/caldav/CaldavConnection.java @@ -1,588 +1,588 @@ package davmail.caldav; import davmail.AbstractConnecti...
true
true
public void handleRequest(String command, String path, Map<String, String> headers, String body) throws IOException { int depth = getDepth(headers); // full debug trace DavGatewayTray.debug("command: " + command + " " + path + " Depth: " + depth + "\n" + body); if ("OPTIONS".equals(...
public void handleRequest(String command, String path, Map<String, String> headers, String body) throws IOException { int depth = getDepth(headers); // full debug trace DavGatewayTray.debug("command: " + command + " " + path + " Depth: " + depth + "\n" + body); if ("OPTIONS".equals(...
diff --git a/src/web/org/openmrs/web/taglib/ForEachEncounterTag.java b/src/web/org/openmrs/web/taglib/ForEachEncounterTag.java index ac886dda..4bebddb4 100644 --- a/src/web/org/openmrs/web/taglib/ForEachEncounterTag.java +++ b/src/web/org/openmrs/web/taglib/ForEachEncounterTag.java @@ -1,200 +1,200 @@ /** * The cont...
false
true
public int doStartTag() { if (encounters == null || encounters.isEmpty()) { log.error("ForEachEncounterTag skipping body due to encounters param = " + encounters); return SKIP_BODY; } // First retrieve all encounters matching the passed concept id, if provided. // If not provided, return all encounters ...
public int doStartTag() { if (encounters == null || encounters.isEmpty()) { log.error("ForEachEncounterTag skipping body due to 'encounters' param = " + encounters); return SKIP_BODY; } // First retrieve all encounters matching the passed encounter type id, if provided. // If not provided, return all enc...
diff --git a/motech-pillreminder-api/src/test/java/org/motechproject/server/pillreminder/domain/ReminderTest.java b/motech-pillreminder-api/src/test/java/org/motechproject/server/pillreminder/domain/ReminderTest.java index 1f7cffb7e..57771d0f2 100644 --- a/motech-pillreminder-api/src/test/java/org/motechproject/server/...
true
true
public void shouldTestEquality() { Reminder reminder = new Reminder(TestUtil.newDate(2011, 1, 1)); assertFalse(reminder.equals(null)); assertFalse(reminder.equals("")); assertFalse(reminder.equals(new Reminder())); assertTrue(reminder.equals(reminder)); assertTrue(r...
public void shouldTestEquality() { Reminder reminder = new Reminder(TestUtil.newDate(2011, 1, 1)); assertFalse(reminder.equals(null)); assertFalse(reminder.equals("")); assertFalse(reminder.equals(new Reminder())); assertTrue(reminder.equals(reminder)); }
diff --git a/cool-tree.java b/cool-tree.java index 15a730b..51698c7 100755 --- a/cool-tree.java +++ b/cool-tree.java @@ -1,2290 +1,2292 @@ // -*- mode: java -*- // // file: cool-tree.m4 // // This file defines the AST // ////////////////////////////////////////////////////////// import java.util.Enumeration;...
true
true
private void typeCheckExpression(class_c currentClass, Expression expression, MySymbolTable objectSymTab, MySymbolTable methodSymTab) { String className = currentClass.getName().getString(); if (expression instanceof typcase){ //check first expression typcase caseE...
private void typeCheckExpression(class_c currentClass, Expression expression, MySymbolTable objectSymTab, MySymbolTable methodSymTab) { String className = currentClass.getName().getString(); if (expression instanceof typcase){ //check first expression typcase caseE...
diff --git a/src/web/org/codehaus/groovy/grails/web/servlet/mvc/SimpleGrailsController.java b/src/web/org/codehaus/groovy/grails/web/servlet/mvc/SimpleGrailsController.java index b0b4b84dd..d5f85be3c 100644 --- a/src/web/org/codehaus/groovy/grails/web/servlet/mvc/SimpleGrailsController.java +++ b/src/web/org/codehaus/g...
true
true
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception { // Step 1: determine the name of the controller. // This maps to a slash + the name of the controller. String uri = this.urlPathHelper.getRequestUri(request); if (uri.indexOf("?") > -1) { u...
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception { // Step 1: determine the correct URI of the request. String uri = this.urlPathHelper.getLookupPathForRequest(request); if (uri.indexOf("?") > -1) { uri = uri.substring(0, uri.indexOf("?")); ...
diff --git a/src/main/java/org/crsh/web/CancelServlet.java b/src/main/java/org/crsh/web/CancelServlet.java index 9c41065..3d145a0 100644 --- a/src/main/java/org/crsh/web/CancelServlet.java +++ b/src/main/java/org/crsh/web/CancelServlet.java @@ -1,23 +1,23 @@ package org.crsh.web; import javax.servlet.ServletExcepti...
false
true
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { HttpSession session = req.getSession(); CommandExecution execution = ((SerializableTransient<CommandExecution>)session.getAttribute("execution")).object; if (execution != null) { execution.c...
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { HttpSession session = req.getSession(); SerializableTransient<CommandExecution> execution = ((SerializableTransient<CommandExecution>)session.getAttribute("execution")); if (execution != null) { ...
diff --git a/webapp/WEB-INF/classes/org/makumba/parade/model/managers/UserManager.java b/webapp/WEB-INF/classes/org/makumba/parade/model/managers/UserManager.java index 162ae04..18107d0 100644 --- a/webapp/WEB-INF/classes/org/makumba/parade/model/managers/UserManager.java +++ b/webapp/WEB-INF/classes/org/makumba/parade...
true
true
public Object[] createUser(String login, String name, String surname, String nickname, String email) { User u = new User(login, name, surname, nickname, email); boolean success = false; Session s = null; Transaction tx = null; String result = "User account for " + name + " s...
public Object[] createUser(String login, String name, String surname, String nickname, String email) { User u = new User(login, name, surname, nickname, email); boolean success = false; Session s = null; Transaction tx = null; String result = "User account for " + name + " s...
diff --git a/moho-sample/MidCallRecord/src/main/java/com/voxeo/moho/sample/MidCallRecord.java b/moho-sample/MidCallRecord/src/main/java/com/voxeo/moho/sample/MidCallRecord.java index cc9a6e72..616f6b2d 100755 --- a/moho-sample/MidCallRecord/src/main/java/com/voxeo/moho/sample/MidCallRecord.java +++ b/moho-sample/MidCal...
true
true
public void inputComplete(final InputCompleteEvent evt) { switch (evt.getCause()) { case MATCH: URL media = null; try { media = new URL(_mediaLocation + System.getProperty("file.separator") + ((Call) evt.getSource()).getAddress().getURI() + "_" + new Date().getTime() ...
public void inputComplete(final InputCompleteEvent evt) { switch (evt.getCause()) { case MATCH: URL media = null; try { media = new URL(_mediaLocation + System.getProperty("file.separator") + "_" + new Date().getTime() + "_recording.au"); Recording recordin...
diff --git a/src/test/java/org/gsoft/openserv/util/time/FrequencyTypeJsonTest.java b/src/test/java/org/gsoft/openserv/util/time/FrequencyTypeJsonTest.java index 09066119..dfdfbad6 100644 --- a/src/test/java/org/gsoft/openserv/util/time/FrequencyTypeJsonTest.java +++ b/src/test/java/org/gsoft/openserv/util/time/Frequenc...
true
true
public void testSerialize() throws JsonProcessingException, JSONException { ObjectMapper mapper = new ObjectMapper(); String json = mapper.writeValueAsString(FrequencyType.values()); String expected = "[{\"name\":\"MONTHLY\",\"id\":\"10\"},{\"name\":\"QUARTERLY\",\"id\":\"20\"},{\"name\":\"SEMI_ANNUALLY\",\"id\"...
public void testSerialize() throws JsonProcessingException, JSONException { ObjectMapper mapper = new ObjectMapper(); String json = mapper.writeValueAsString(FrequencyType.values()); String expected = "[{\"label\":\"MONTHLY\",\"id\":10},{\"label\":\"QUARTERLY\",\"id\":20},{\"label\":\"SEMI_ANNUALLY\",\"id\":30},...
diff --git a/src/MensaUniBe/src/com/ese2013/mub/NotificationFragment.java b/src/MensaUniBe/src/com/ese2013/mub/NotificationFragment.java index 6db988e..f2b7860 100644 --- a/src/MensaUniBe/src/com/ese2013/mub/NotificationFragment.java +++ b/src/MensaUniBe/src/com/ese2013/mub/NotificationFragment.java @@ -1,196 +1,196 @@...
false
true
private void displayMenu(LinearLayout layout, Criteria criteria, Menu menu) { TextView menuHeader = new TextView(getActivity()); menuHeader.setText(R.string.givenMenu); layout.addView(menuHeader); layout.addView(new MenuView(getActivity(), menu, Day.today())); TextView mensaHeader = new TextView(ge...
private void displayMenu(LinearLayout layout, Criteria criteria, Menu menu) { TextView menuHeader = new TextView(getActivity()); menuHeader.setText(R.string.givenMenu); layout.addView(menuHeader); layout.addView(new MenuView(getActivity(), menu, Day.today())); TextView mensaHeader = new TextView(ge...
diff --git a/src/java/com/idega/block/cal/presentation/GroupAndCalendarChooserBlock.java b/src/java/com/idega/block/cal/presentation/GroupAndCalendarChooserBlock.java index 6d69780..69f6410 100644 --- a/src/java/com/idega/block/cal/presentation/GroupAndCalendarChooserBlock.java +++ b/src/java/com/idega/block/cal/presen...
true
true
public void main(IWContext iwc) { Layer groupsAndCalendarsLayer = new Layer(); GroupsChooserBlock groupsChooser = new GroupsChooserBlock(); groupsChooser.setAddExtraJavaScript(true); groupsChooser.setNodeOnClickAction(NODE_ON_CLICK_ACTION); groupsChooser.setStyleClass("groupsLayerStyleClass"); groupsCho...
public void main(IWContext iwc) { Layer groupsAndCalendarsLayer = new Layer(); GroupsChooserBlock groupsChooser = new GroupsChooserBlock(); groupsChooser.setAddExtraJavaScript(true); groupsChooser.setNodeOnClickAction(NODE_ON_CLICK_ACTION); groupsChooser.setStyleClass("groupsLayerStyleClass"); groupsCho...
diff --git a/src/valable/model/ValaSource.java b/src/valable/model/ValaSource.java index 5c0b930..e18678a 100644 --- a/src/valable/model/ValaSource.java +++ b/src/valable/model/ValaSource.java @@ -1,363 +1,363 @@ /** * Copyright (C) 2008 Andrew Flegg <andrew@bleb.org> * * All rights reserved. This program and ...
false
true
public List<String> parse() throws CoreException { uses.clear(); types.clear(); // -- Find usings... // InputStream contents; try { contents = source.getContents(); } catch (Exception e) { e.printStackTrace(); return null; } Scanner scanner = new Scanner(contents); List<String> li...
public List<String> parse() throws CoreException { uses.clear(); types.clear(); // -- Find usings... // InputStream contents; try { contents = source.getContents(); } catch (Exception e) { e.printStackTrace(); return null; } Scanner scanner = new Scanner(contents); List<String> li...
diff --git a/src/org/hyperchron/impl/TimeSeriesImplementation.java b/src/org/hyperchron/impl/TimeSeriesImplementation.java index d15279b..67f724f 100644 --- a/src/org/hyperchron/impl/TimeSeriesImplementation.java +++ b/src/org/hyperchron/impl/TimeSeriesImplementation.java @@ -1,306 +1,306 @@ /* * Hyperchron, a times...
true
true
public void activate() { tsFileDB = System.getProperty("timeseries.blockfile"); if (tsFileDB == null) tsFileDB = "D:\\Temp\\ts\\entities.db"; File dbFile = new File(tsFileDB); try { BufferedReader br = new BufferedReader(new FileReader(dbFile)); String line; while ((line = br.readLi...
public void activate() { tsFileDB = System.getProperty("timeseries.entityfile"); if (tsFileDB == null) tsFileDB = "D:\\Temp\\ts\\entities.db"; File dbFile = new File(tsFileDB); try { BufferedReader br = new BufferedReader(new FileReader(dbFile)); String line; while ((line = br.readL...
diff --git a/web/src/main/java/elw/web/core/Core.java b/web/src/main/java/elw/web/core/Core.java index 9eb57eb..7fe18c3 100644 --- a/web/src/main/java/elw/web/core/Core.java +++ b/web/src/main/java/elw/web/core/Core.java @@ -1,209 +1,209 @@ /* * ELW : e-learning workspace * Copyright (C) 2010 Anton Kraievoy * ...
true
true
protected Object[] createRowLog( Format f, VelocityUtils u, final String mode, List<Object[]> data, int index, Ctx ctx, FileSlot slot, Entry<FileMeta> e, String scope ) { final long time = e == null ? System.currentTimeMillis() : e.getMeta().getCreateStamp().getTime(); final IndexEntry iEntry = ctx.getInde...
protected Object[] createRowLog( Format f, VelocityUtils u, final String mode, List<Object[]> data, int index, Ctx ctx, FileSlot slot, Entry<FileMeta> e, String scope ) { final long time = e == null ? System.currentTimeMillis() : e.getMeta().getCreateStamp().getTime(); final IndexEntry iEntry = ctx.getInde...
diff --git a/src/main/java/org/vaadin/securityauction/server/AuctionServiceImpl.java b/src/main/java/org/vaadin/securityauction/server/AuctionServiceImpl.java index 96cac1a..26fbffb 100644 --- a/src/main/java/org/vaadin/securityauction/server/AuctionServiceImpl.java +++ b/src/main/java/org/vaadin/securityauction/server...
false
true
public void bid(int auctionItemId, float amount, BidType bidType, Date bidTime) { User user = userService.getCurrentUser(); if (user == null) { return; } EntityManager em = factory.createEntityManager(); try { AuctionItem item = em.find(Au...
public void bid(int auctionItemId, float amount, BidType bidType, Date bidTime) { User user = userService.getCurrentUser(); if (user == null) { return; } EntityManager em = factory.createEntityManager(); try { em.getTransaction().begin(); ...
diff --git a/com.isencia.passerelle.workbench.model.editor.ui/src/main/java/com/isencia/passerelle/workbench/model/editor/ui/cell/ResourceBrowserEditor.java b/com.isencia.passerelle.workbench.model.editor.ui/src/main/java/com/isencia/passerelle/workbench/model/editor/ui/cell/ResourceBrowserEditor.java index 0b64aec..44...
true
true
protected Object openDialogBox(Control cellEditorWindow, Object textValue) { IResource currentValue=null; try { currentValue = getSelectedResource((String)textValue); } catch (Exception e1) { logger.error("Cannot get resource!", e1); } final Actor actor = (Actor)param.getContainer()...
protected Object openDialogBox(Control cellEditorWindow, Object textValue) { IResource currentValue=null; try { currentValue = getSelectedResource((String)textValue); } catch (Exception e1) { logger.error("Cannot get resource!", e1); } final Actor actor = (Actor)param.getContainer()...
diff --git a/eclipse_files/src/Networking/StreamWriter.java b/eclipse_files/src/Networking/StreamWriter.java index 4967e864..d6a50269 100644 --- a/eclipse_files/src/Networking/StreamWriter.java +++ b/eclipse_files/src/Networking/StreamWriter.java @@ -1,42 +1,42 @@ package Networking; import java.io.IOException; im...
true
true
public void sendData(Request req) { try { System.out.println("StreamWriter: requesting for \"" + req + "\""); oos.writeObject(req); oos.flush(); oos.reset(); } catch(SocketException e) { System.out.println("StreamWriter: Connection lost. Other terminal has discnonected."); } catch (Exception e) { ...
public void sendData(Request req) { try { System.out.println("StreamWriter: requesting for \"" + req + "\""); oos.writeObject(req); oos.flush(); oos.reset(); } catch(SocketException e) { System.out.println("StreamWriter: Connection lost. Other terminal has disconnected."); } catch (Exception e) { ...
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorAttachmentPart.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorAttachmentPart.java index bd408abe9..09edb7efa 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/intern...
true
true
private void createAttachmentTable(FormToolkit toolkit, final Composite attachmentsComposite) { Table attachmentsTable = toolkit.createTable(attachmentsComposite, SWT.MULTI | SWT.FULL_SELECTION); attachmentsTable.setLinesVisible(true); attachmentsTable.setHeaderVisible(true); attachmentsTable.setLayout(new Gri...
private void createAttachmentTable(FormToolkit toolkit, final Composite attachmentsComposite) { Table attachmentsTable = toolkit.createTable(attachmentsComposite, SWT.MULTI | SWT.FULL_SELECTION); attachmentsTable.setLinesVisible(true); attachmentsTable.setHeaderVisible(true); attachmentsTable.setLayout(new Gri...
diff --git a/Chat/src/States/Connected.java b/Chat/src/States/Connected.java index f6d9d23..f2cb951 100644 --- a/Chat/src/States/Connected.java +++ b/Chat/src/States/Connected.java @@ -1,56 +1,57 @@ package States; import Communications.*; import Messages.*; import Utilities.User; public class Connected ex...
true
true
public State process(String input, TCP tcp, UDPSender us,Message udpMessage,Message tcpMessage,long timeEnteredState,boolean firstCall){ if(firstCall){ System.out.println("A connection has been established. Type :client if you are connected to a client and :server if its a server"); } if(tcp.getActive()==fals...
public State process(String input, TCP tcp, UDPSender us,Message udpMessage,Message tcpMessage,long timeEnteredState,boolean firstCall){ if(firstCall){ System.out.println("A connection has been established. Type :client if you are connected to a client and :server if its a server"); } if(tcp.getActive()==fals...
diff --git a/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/css/engine/value/css/FontSizeManager.java b/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/css/engine/value/css/FontSizeManager.java index 2f8ceaa8e..5eea7cc13 100644 --- a/plugins/org.eclipse.birt.report.e...
true
true
public Value computeValue(CSSStylableElement elt, CSSEngine engine, int idx, Value value) { CSSContext ctx = engine.getCSSContext(); float fs = ctx.getMediumFontSize(); // absolute size if (value == CSSValueConstants.XX_SMALL_VALUE) { return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, fs / 1.2f / ...
public Value computeValue(CSSStylableElement elt, CSSEngine engine, int idx, Value value) { CSSContext ctx = engine.getCSSContext(); float fs = ctx.getMediumFontSize(); // absolute size if (value == CSSValueConstants.XX_SMALL_VALUE) { return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, fs / 1.2f / ...
diff --git a/src/main/java/org/fazio/utils/map/CountingHashMap.java b/src/main/java/org/fazio/utils/map/CountingHashMap.java index e3af3ed..d238ce2 100644 --- a/src/main/java/org/fazio/utils/map/CountingHashMap.java +++ b/src/main/java/org/fazio/utils/map/CountingHashMap.java @@ -1,107 +1,107 @@ package org.fazio.util...
false
true
public String toString() { final StringBuilder sb = new StringBuilder(); for(CountingMap.Entry<K, Number> entry : this.entrySet()) { sb .append(entry.getKey()) .append(" = ") .append(entry.getValue()) .append('\n'); } return sb.toString(); }
public String toString() { final StringBuilder sb = new StringBuilder(); for(CountingMap.Entry<K, Number> entry : this.entrySet()) { sb .append(entry.getKey().toString()) .append(" = ") .append(entry.getValue().toString()) .append('\n'); } return sb.toString(); }
diff --git a/src/edu/wheaton/simulator/entity/Agent.java b/src/edu/wheaton/simulator/entity/Agent.java index cd8c5ed7..5e873e91 100644 --- a/src/edu/wheaton/simulator/entity/Agent.java +++ b/src/edu/wheaton/simulator/entity/Agent.java @@ -1,157 +1,157 @@ /** * Agent.java * * Agents model actors in the simulation...
true
true
public void act(GridEntity local, GridEntity global) { try { for (Trigger t : triggers) t.evaluate(this, getGrid(), local, global); } catch (Exception e) { System.err.println(e); } }
public void act(GridEntity local, GridEntity global) { try { for (Trigger t : triggers) t.evaluate(this); } catch (Exception e) { System.err.println(e); } }
diff --git a/oa-server/src/main/java/org/huamuzhen/oa/server/controller/ReportFormController.java b/oa-server/src/main/java/org/huamuzhen/oa/server/controller/ReportFormController.java index bdb29cf..0ae36c7 100644 --- a/oa-server/src/main/java/org/huamuzhen/oa/server/controller/ReportFormController.java +++ b/oa-serve...
true
true
public ModelAndView list(@PathVariable String reportFormStatusLink, HttpSession session){ ModelAndView mav = new ModelAndView("listResponseReportForm"); User currentUser = (User)session.getAttribute("currentUser"); List<ReportForm> reportFormList = null; if (reportFormStatusLink.equals("sentToLeader1ReportForm...
public ModelAndView list(@PathVariable String reportFormStatusLink, HttpSession session){ ModelAndView mav = new ModelAndView("listResponseReportForm"); User currentUser = (User)session.getAttribute("currentUser"); List<ReportForm> reportFormList = null; if (reportFormStatusLink.equals("sentToLeader1ReportForm...
diff --git a/activemq-core/src/main/java/org/apache/activemq/network/DiscoveryNetworkConnector.java b/activemq-core/src/main/java/org/apache/activemq/network/DiscoveryNetworkConnector.java index b5ebdf327..79e0487fe 100644 --- a/activemq-core/src/main/java/org/apache/activemq/network/DiscoveryNetworkConnector.java +++ ...
true
true
public void onServiceAdd(DiscoveryEvent event) { String localURIName = localURI.getScheme() + "://" + localURI.getHost(); // Ignore events once we start stopping. if (serviceSupport.isStopped() || serviceSupport.isStopping()) { return; } String url = event.getServ...
public void onServiceAdd(DiscoveryEvent event) { String localURIName = localURI.getScheme() + "://" + localURI.getHost(); // Ignore events once we start stopping. if (serviceSupport.isStopped() || serviceSupport.isStopping()) { return; } String url = event.getServ...
diff --git a/spring-social-gowalla/src/main/java/org/springframework/social/gowalla/provider/GowallaServiceProvider.java b/spring-social-gowalla/src/main/java/org/springframework/social/gowalla/provider/GowallaServiceProvider.java index ee1cc34..1f41e25 100644 --- a/spring-social-gowalla/src/main/java/org/springframewo...
true
true
public GowallaServiceProvider(String clientId, String clientSecret, ConnectionRepository connectionRepository) { super("gowalla", connectionRepository, new OAuth2Template(clientId, clientSecret, "https://gowalla.com/api/oauth/new?client_id={clientId}&redirect_uri={redirectUri}&scope={scope}", "https://gowall...
public GowallaServiceProvider(String clientId, String clientSecret, ConnectionRepository connectionRepository) { super("gowalla", connectionRepository, new OAuth2Template(clientId, clientSecret, "https://gowalla.com/api/oauth/new?client_id={client_id}&redirect_uri={redirect_uri}&scope={scope}", "https://gowa...
diff --git a/src/test/cli/cloudify/cloud/ExamplesTest.java b/src/test/cli/cloudify/cloud/ExamplesTest.java index b5cbba7a..c981a122 100644 --- a/src/test/cli/cloudify/cloud/ExamplesTest.java +++ b/src/test/cli/cloudify/cloud/ExamplesTest.java @@ -1,54 +1,54 @@ package test.cli.cloudify.cloud; import java.io.IOExcep...
true
true
private void doTest(String cloudName, String applicationFolderName, String applicationName) throws IOException, InterruptedException { LogUtils.log("installing application" + applicationName + " on " + cloudName); setCloudToUse(cloudName); String applicationPath = ScriptUtils.getBuildPath() + "/examples/" + appl...
private void doTest(String cloudName, String applicationFolderName, String applicationName) throws IOException, InterruptedException { LogUtils.log("installing application " + applicationName + " on " + cloudName); setCloudToUse(cloudName); String applicationPath = ScriptUtils.getBuildPath() + "/examples/" + app...
diff --git a/src/de/fuberlin/wiwiss/d2rq/server/D2RServer.java b/src/de/fuberlin/wiwiss/d2rq/server/D2RServer.java index 7c840a5..6b620ee 100644 --- a/src/de/fuberlin/wiwiss/d2rq/server/D2RServer.java +++ b/src/de/fuberlin/wiwiss/d2rq/server/D2RServer.java @@ -1,294 +1,294 @@ package de.fuberlin.wiwiss.d2rq.server; ...
true
true
public void start() { startupError = true; if (config.isLocalMappingFile()) { this.dataset = new AutoReloadableDataset(loader, config.getLocalMappingFilename(), config.getAutoReloadMapping()); } else { this.dataset = new AutoReloadableDataset(loader, null, false); } if (loader.getMapping().c...
public void start() { startupError = true; if (config.isLocalMappingFile()) { this.dataset = new AutoReloadableDataset(loader, config.getLocalMappingFilename(), config.getAutoReloadMapping()); } else { this.dataset = new AutoReloadableDataset(loader, null, false); } if (loader.getMapping().c...
diff --git a/src/com/untamedears/ItemExchange/command/commands/SetCommand.java b/src/com/untamedears/ItemExchange/command/commands/SetCommand.java index d799f4a..639c5d5 100644 --- a/src/com/untamedears/ItemExchange/command/commands/SetCommand.java +++ b/src/com/untamedears/ItemExchange/command/commands/SetCommand.java...
true
true
public boolean execute(CommandSender sender, String[] args) { try { ExchangeRule exchangeRule = ExchangeRule.parseRuleBlock(((Player) sender).getItemInHand()); int itemAmount = ((Player) sender).getItemInHand().getAmount(); if ((args[0].equalsIgnoreCase("commonname") || args[0].equalsIgnoreCase("c"))) { ...
public boolean execute(CommandSender sender, String[] args) { try { ExchangeRule exchangeRule = ExchangeRule.parseRuleBlock(((Player) sender).getItemInHand()); int itemAmount = ((Player) sender).getItemInHand().getAmount(); if ((args[0].equalsIgnoreCase("commonname") || args[0].equalsIgnoreCase("c"))) { ...
diff --git a/core/src/main/java/hudson/model/Project.java b/core/src/main/java/hudson/model/Project.java index b3a6c53e1..8cfa05ff5 100644 --- a/core/src/main/java/hudson/model/Project.java +++ b/core/src/main/java/hudson/model/Project.java @@ -1,228 +1,228 @@ /* * The MIT License * * Copyright (c) 2004-2010, S...
true
true
protected void updateTransientActions() { synchronized(transientActions) { super.updateTransientActions(); for (BuildStep step : getBuildersList()) transientActions.addAll(step.getProjectActions(this)); for (BuildStep step : getPublishersList()) ...
protected synchronized void updateTransientActions() { synchronized(transientActions) { super.updateTransientActions(); for (BuildStep step : getBuildersList()) transientActions.addAll(step.getProjectActions(this)); for (BuildStep step : getPublishersList...
diff --git a/org.emftext.sdk/src/org/emftext/sdk/codegen/TextPrinterBaseGenerator.java b/org.emftext.sdk/src/org/emftext/sdk/codegen/TextPrinterBaseGenerator.java index d38ef1fad..140916b44 100644 --- a/org.emftext.sdk/src/org/emftext/sdk/codegen/TextPrinterBaseGenerator.java +++ b/org.emftext.sdk/src/org/emftext/sdk/c...
false
true
private void printSequence(Sequence sequence, PrintWriter out, EClass metaClass, String basetab) { Set<String> neededFeatures = new LinkedHashSet<String>( sequence2NecessaryFeatures.get(sequence)); boolean needsCompoundDecl = true; boolean needsIterateDecl = true; ListIterator<Definition> definitionIter...
private void printSequence(Sequence sequence, PrintWriter out, EClass metaClass, String basetab) { Set<String> neededFeatures = new LinkedHashSet<String>( sequence2NecessaryFeatures.get(sequence)); boolean needsCompoundDecl = true; boolean needsIterateDecl = true; ListIterator<Definition> definitionIter...
diff --git a/controls/mgcp/src/main/java/org/mobicents/media/server/mgcp/tx/cmd/MgcpCommandException.java b/controls/mgcp/src/main/java/org/mobicents/media/server/mgcp/tx/cmd/MgcpCommandException.java index 16dd8a0b0..75f4c25b4 100644 --- a/controls/mgcp/src/main/java/org/mobicents/media/server/mgcp/tx/cmd/MgcpCommandE...
true
true
public MgcpCommandException(int code, Text message) { this.code = code; this.message = message; }
public MgcpCommandException(int code, Text message) { super(message.toString()); this.code = code; this.message = message; }
diff --git a/src/FE_SRC_COMMON/com/ForgeEssentials/serverVote/ModuleServerVote.java b/src/FE_SRC_COMMON/com/ForgeEssentials/serverVote/ModuleServerVote.java index 940044171..024f9a7ef 100644 --- a/src/FE_SRC_COMMON/com/ForgeEssentials/serverVote/ModuleServerVote.java +++ b/src/FE_SRC_COMMON/com/ForgeEssentials/serverVo...
true
true
public void defVoteResponces(VoteEvent vote) { OutputHandler.debug("Got Vote!"); /* * Offline check. */ EntityPlayerMP player = FunctionHelper.getPlayerFromUsername(vote.player); if(player == null) { if(!config.allowOfflineVotes) { OutputHandler.SOP("Player for vote not online, vote ca...
public void defVoteResponces(VoteEvent vote) { OutputHandler.debug("Got Vote!"); /* * Offline check. */ EntityPlayerMP player = FunctionHelper.getPlayerFromPartialName(vote.player); if(player == null) { if(!config.allowOfflineVotes) { OutputHandler.SOP("Player for vote not online, vote...
diff --git a/sglr-invoker/src/sglr/SGLRInvoker.java b/sglr-invoker/src/sglr/SGLRInvoker.java index ad29c6a..bcf8ba8 100644 --- a/sglr-invoker/src/sglr/SGLRInvoker.java +++ b/sglr-invoker/src/sglr/SGLRInvoker.java @@ -1,288 +1,305 @@ package sglr; import java.io.ByteArrayOutputStream; import java.io.File; import j...
false
true
public static void loadLibraries(){ if(baseLibraryPath == null){ try{ System.loadLibrary("ATerm"); System.loadLibrary("ConfigAPI"); System.loadLibrary("ErrorAPI"); System.loadLibrary("LocationAPI"); System.loadLibrary("ATB"); System.loadLibrary("mept"); ...
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/main/java/com/geNAZt/RegionShop/Command/Shop.java b/src/main/java/com/geNAZt/RegionShop/Command/Shop.java index eb08cfd..f12f25e 100644 --- a/src/main/java/com/geNAZt/RegionShop/Command/Shop.java +++ b/src/main/java/com/geNAZt/RegionShop/Command/Shop.java @@ -1,341 +1,341 @@ package com.geNAZt.RegionS...
true
true
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { boolean isPlayer = (sender instanceof Player); Player p = (isPlayer) ? (Player) sender : null; if(!isPlayer) { sender.sendMessage(Chat.getPrefix() + "No shop for you Console!"); ...
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { boolean isPlayer = (sender instanceof Player); Player p = (isPlayer) ? (Player) sender : null; if(!isPlayer) { sender.sendMessage(Chat.getPrefix() + "No shop for you Console!"); ...
diff --git a/WebSDKProject/SampleApp/src/main/java/com/dailymotion/websdksample/SampleActivity.java b/WebSDKProject/SampleApp/src/main/java/com/dailymotion/websdksample/SampleActivity.java index ec2f871..5b52f69 100644 --- a/WebSDKProject/SampleApp/src/main/java/com/dailymotion/websdksample/SampleActivity.java +++ b/We...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.screen_sample); mVideoView = ((DMWebVideoView) findViewById(R.id.dmWebVideoView)); //mVideoView.loadUrl("http://www.youtube.com/embed/PEikGKDVsCc"); mVideoView.se...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.screen_sample); mVideoView = ((DMWebVideoView) findViewById(R.id.dmWebVideoView)); //mVideoView.loadUrl("http://orange.jobs/jobs/mobi.do?do=getOffer&lang=FR&id=28866"); ...
diff --git a/src/edu/berkeley/nlp/chess/util/FileIterator.java b/src/edu/berkeley/nlp/chess/util/FileIterator.java index 3c5d492..797a001 100644 --- a/src/edu/berkeley/nlp/chess/util/FileIterator.java +++ b/src/edu/berkeley/nlp/chess/util/FileIterator.java @@ -1,48 +1,48 @@ package edu.berkeley.nlp.chess.util; import...
true
true
public Iterator<File> iterator() { return new Iterator<File>() { public boolean hasNext() { return !files.isEmpty(); } public void remove() { } public File next() { while (hasNext()) { File f = new File(files.pop()); if (f.isDirectory()) { if (f.isDirectory()) { for (...
public Iterator<File> iterator() { return new Iterator<File>() { public boolean hasNext() { return !files.isEmpty(); } public void remove() { } public File next() { while (!files.isEmpty()) { File f = new File(files.pop()); if (f.isDirectory()) { if (f.isDirectory()) { ...
diff --git a/src/test/java/org/atlasapi/remotesite/synd/OpmlFeedClientTest.java b/src/test/java/org/atlasapi/remotesite/synd/OpmlFeedClientTest.java index 95d7ce2c5..66c0e0670 100644 --- a/src/test/java/org/atlasapi/remotesite/synd/OpmlFeedClientTest.java +++ b/src/test/java/org/atlasapi/remotesite/synd/OpmlFeedClientT...
true
true
public void testCanReadOpmlOutline() throws Exception { String feedUrl = "http://www.bbc.co.uk/radio/opml/bbc_podcast_opml.xml"; Opml feed = new OpmlFeedClient().get(feedUrl); assertThat(feed.getTitle(), is("BBC Podcast OPML")); }
public void testCanReadOpmlOutline() throws Exception { String feedUrl = "http://www.bbc.co.uk/radio/opml/bbc_podcast_opml.xml"; Opml feed = new OpmlFeedClient().get(feedUrl); assertThat(feed.getTitle(), is("BBC Radio Podcasts")); }
diff --git a/Web-Defender/src/com/valleskeyp/WebDefender/screens/GameScreen.java b/Web-Defender/src/com/valleskeyp/WebDefender/screens/GameScreen.java index 624e055..495fa7c 100644 --- a/Web-Defender/src/com/valleskeyp/WebDefender/screens/GameScreen.java +++ b/Web-Defender/src/com/valleskeyp/WebDefender/screens/GameScr...
true
true
public void render(float delta) { if (loggedIn) { if (smallFly > 5 && loggedIn) { platformInterface .incrementAchievement("ach_smallFry", smallFly); smallFly = 0; } else if (mediumFly > 5 && loggedIn) { platformInterface.incrementAchievement("ach_middleMan", mediumFly); mediumFly = ...
public void render(float delta) { if (loggedIn) { if (smallFly > 5 && loggedIn) { platformInterface .incrementAchievement("ach_smallFry", smallFly); smallFly = 0; } else if (mediumFly > 5 && loggedIn) { platformInterface.incrementAchievement("ach_middleMan", mediumFly); mediumFly = ...
diff --git a/src/perftest.java b/src/perftest.java index 274fb93..5e6f98f 100644 --- a/src/perftest.java +++ b/src/perftest.java @@ -1,219 +1,220 @@ import com.objy.db.DatabaseClosedException; import com.objy.db.DatabaseNotFoundException; import com.objy.db.DatabaseOpenException; import com.objy.db.ObjyRuntimeExcep...
true
true
public static void main(String[] args) { String bootfile = ""; String testType = ""; boolean readTest = false; int numObjects = 0; int numCommits = 0; try { System.out.println("Performance Test"); // default assumes running from Samples/java/helloWorld folder if (ar...
public static void main(String[] args) { String bootfile = ""; String testType = ""; boolean readTest = false; int numObjects = 0; int numCommits = 0; try { System.out.println("Performance Test"); // default assumes running from Samples/java/helloWorld folder if (ar...
diff --git a/src/main/java/db/TaskDb.java b/src/main/java/db/TaskDb.java index d335621..709364a 100644 --- a/src/main/java/db/TaskDb.java +++ b/src/main/java/db/TaskDb.java @@ -1,164 +1,164 @@ package db; import java.io.File; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSe...
true
true
public static boolean addTask(int accountID, String name, String question, double accuracy, int type, long expiryTime){ StringBuilder sql = new StringBuilder(); sql.append("INSERT INTO tasks (name, question, type, accuracy)\n"); sql.append("VALUES(?, ?, ?, ?)"); Connection c; try { c = DbAdaptor.connect()...
public static boolean addTask(int accountID, String name, String question, double accuracy, int type, long expiryTime){ StringBuilder sql = new StringBuilder(); sql.append("INSERT INTO tasks (name, question, type, accuracy)\n"); sql.append("VALUES(?, ?, ?, ?)"); Connection c; try { c = DbAdaptor.connect()...
diff --git a/flexmojos-testing/flexmojos-tester/src/main/java/org/sonatype/flexmojos/test/monitor/AsVmPing.java b/flexmojos-testing/flexmojos-tester/src/main/java/org/sonatype/flexmojos/test/monitor/AsVmPing.java index 93723a4e..30854dfb 100644 --- a/flexmojos-testing/flexmojos-tester/src/main/java/org/sonatype/flexmoj...
true
true
protected void handleRequest() throws SocketTimeoutException, SocketException, IOException { getLogger().debug( "[CONTROL] AsVmControl handleRequest" ); clientSocket.setSoTimeout( testTimeout ); int errorCount = 0; while ( true ) { try {...
protected void handleRequest() throws SocketTimeoutException, SocketException, IOException { getLogger().debug( "[CONTROL] AsVmControl handleRequest" ); clientSocket.setSoTimeout( testTimeout ); int errorCount = 0; while ( true ) { try {...
diff --git a/src/Botti.java b/src/Botti.java index 936716d..29b3f85 100644 --- a/src/Botti.java +++ b/src/Botti.java @@ -1,217 +1,217 @@ import java.io.IOException; import java.io.InputStreamReader; import java.io.*; import java.net.*; import java.util.ArrayList; import java.util.Scanner; /** * * @author...
true
true
public void connect() throws IOException { try { socket = new Socket(serveri, portti); lukija = new BufferedReader(new InputStreamReader(socket.getInputStream())); kirjoittaja = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())); kirjoitta...
public void connect() throws IOException { try { socket = new Socket(serveri, portti); lukija = new BufferedReader(new InputStreamReader(socket.getInputStream())); kirjoittaja = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())); kirjoitta...
diff --git a/commons/solr/managed/src/main/java/org/apache/stanbol/commons/solr/managed/standalone/StandaloneEmbeddedSolrServerProvider.java b/commons/solr/managed/src/main/java/org/apache/stanbol/commons/solr/managed/standalone/StandaloneEmbeddedSolrServerProvider.java index f485c994a..d2ae5e697 100644 --- a/commons/s...
true
true
public EmbeddedSolrServer getSolrServer(IndexReference indexRef, String configName){ if(indexRef == null){ throw new IllegalArgumentException("The parsed InexReference MUST NOT be NULL!"); } StandaloneManagedSolrServer server; log.debug("Create EmbeddedSolrServer for Serv...
public EmbeddedSolrServer getSolrServer(IndexReference indexRef, String configName){ if(indexRef == null){ throw new IllegalArgumentException("The parsed InexReference MUST NOT be NULL!"); } StandaloneManagedSolrServer server; log.debug("Create EmbeddedSolrServer for Serv...
diff --git a/algorithm-module/src/main/java/ca/ubc/magic/enph479/builder/DataRetrievalModule.java b/algorithm-module/src/main/java/ca/ubc/magic/enph479/builder/DataRetrievalModule.java index cecf91b..5640abe 100644 --- a/algorithm-module/src/main/java/ca/ubc/magic/enph479/builder/DataRetrievalModule.java +++ b/algorith...
true
true
public WoTDataFetcher retrieveFromBennu() throws Exception { final int job_interval = 5 * 60; final int fetch_interval = job_interval * 2; // in seconds String start_datetime = "undefined"; BennuStatus bs = new BennuStatus(); // initialize WoTDataFetcher WoTDataFetcher wdf = new WoTDataFetcher(); Syst...
public WoTDataFetcher retrieveFromBennu() throws Exception { //retrieve old data from bennu final int job_interval = 5 * 60; final int fetch_interval = job_interval * 2; // in seconds String start_datetime = "undefined"; BennuStatus bs = new BennuStatus(); // initialize WoTDataFetcher WoTDataFetcher w...
diff --git a/x10.compiler/src/x10/visit/X10Translator.java b/x10.compiler/src/x10/visit/X10Translator.java index 7042d640c..ea2ed7b57 100644 --- a/x10.compiler/src/x10/visit/X10Translator.java +++ b/x10.compiler/src/x10/visit/X10Translator.java @@ -1,321 +1,327 @@ /* * This file is part of the X10 project (http://x...
false
true
public static boolean postCompile(X10CompilerOptions options, Compiler compiler, ErrorQueue eq) { if (eq.hasErrors()) return false; if (options.post_compiler != null && !options.output_stdout) { Runtime runtime = Runtime.getRuntime(); QuotedStringTokenizer st = n...
public static boolean postCompile(X10CompilerOptions options, Compiler compiler, ErrorQueue eq) { if (eq.hasErrors()) return false; if (options.post_compiler != null && !options.output_stdout) { Runtime runtime = Runtime.getRuntime(); QuotedStringTokenizer st = n...
diff --git a/common/src/org/riotfamily/common/image/ImageMagickCropper.java b/common/src/org/riotfamily/common/image/ImageMagickCropper.java index 34a732ea8..1449a5491 100644 --- a/common/src/org/riotfamily/common/image/ImageMagickCropper.java +++ b/common/src/org/riotfamily/common/image/ImageMagickCropper.java @@ -1,6...
true
true
public void cropImage(File source, File dest, int width, int height, int x, int y, int scaledWidth) throws IOException { ArrayList args = new ArrayList(); args.add(source.getAbsolutePath()); args.add("-resize"); args.add(scaledWidth + "x>"); args.add("-crop"); args.add(width + "x" + height + "+" + x ...
public void cropImage(File source, File dest, int width, int height, int x, int y, int scaledWidth) throws IOException { ArrayList args = new ArrayList(); args.add(source.getAbsolutePath()); args.add("-resize"); args.add(scaledWidth + "x>"); args.add("-crop"); args.add(width + "x" + height + "+" + x ...
diff --git a/src/br/com/activity/CarregarActivity.java b/src/br/com/activity/CarregarActivity.java index eca8731..7c234ae 100644 --- a/src/br/com/activity/CarregarActivity.java +++ b/src/br/com/activity/CarregarActivity.java @@ -1,108 +1,110 @@ package br.com.activity; import java.io.File; import java.io.FilenameF...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_carregar); sdcard = Environment.getExternalStorageDirectory(); final File[] files = sdcard.listFiles(new FilenameFilter() { @Override public boolean accept(File dir, String file...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_carregar); sdcard = Environment.getExternalStorageDirectory(); final File[] files = sdcard.listFiles(new FilenameFilter() { @Override public boolean accept(File dir, String file...
diff --git a/HighSchoolTix/src/com/HST/highschooltix/Login.java b/HighSchoolTix/src/com/HST/highschooltix/Login.java index 384c661..b4ff03b 100755 --- a/HighSchoolTix/src/com/HST/highschooltix/Login.java +++ b/HighSchoolTix/src/com/HST/highschooltix/Login.java @@ -1,513 +1,513 @@ package com.HST.highschooltix; impo...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.requestWindowFeature(Window.FEATURE_NO_TITLE); Load_login(); if(user_name.equalsIgnoreCase("no")&&password.equalsIgnoreCase("no")) { dbcopy=new DatabaseCopy(); Asset...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.requestWindowFeature(Window.FEATURE_NO_TITLE); Load_login(); if(user_name.equalsIgnoreCase("no")&&password.equalsIgnoreCase("no")) { dbcopy=new DatabaseCopy(); Asset...
diff --git a/modules/rampart-policy/src/main/java/org/apache/ws/secpolicy/model/TransportToken.java b/modules/rampart-policy/src/main/java/org/apache/ws/secpolicy/model/TransportToken.java index ce9c00f04..8d9963b80 100644 --- a/modules/rampart-policy/src/main/java/org/apache/ws/secpolicy/model/TransportToken.java +++ ...
true
true
public void serialize(XMLStreamWriter writer) throws XMLStreamException { String localName = getName().getLocalPart(); String namespaceURI = getName().getNamespaceURI(); String prefix = writer.getPrefix(namespaceURI); if (prefix == null) { prefi...
public void serialize(XMLStreamWriter writer) throws XMLStreamException { String localName = getName().getLocalPart(); String namespaceURI = getName().getNamespaceURI(); String prefix = writer.getPrefix(namespaceURI); if (prefix == null) { prefi...
diff --git a/src/com/bukkit/erbros/Lottery/Lottery.java b/src/com/bukkit/erbros/Lottery/Lottery.java index e806e3c..f6ccc2e 100644 --- a/src/com/bukkit/erbros/Lottery/Lottery.java +++ b/src/com/bukkit/erbros/Lottery/Lottery.java @@ -1,92 +1,92 @@ package com.bukkit.erbros.Lottery; //All the imports import java.io.Fi...
true
true
public void onEnable() { // Gets version number and writes out starting line to console. PluginDescriptionFile pdfFile = this.getDescription(); System.out.println( pdfFile.getName() + "version " + pdfFile.getVersion() + "is enabled" ); // Start Registration. Thanks TheYeti. getDataFolder().mkdirs(); ...
public void onEnable() { // Gets version number and writes out starting line to console. PluginDescriptionFile pdfFile = this.getDescription(); System.out.println( pdfFile.getName() + " version " + pdfFile.getVersion() + " is enabled" ); // Start Registration. Thanks TheYeti. getDataFolder().mkdirs(); ...
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandburn.java b/Essentials/src/com/earth2me/essentials/commands/Commandburn.java index c951fae9..1a734ebd 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandburn.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandburn.java @...
true
true
protected void run(final Server server, final CommandSender sender, final String commandLabel, final String[] args) throws Exception { if (args.length < 2) { throw new NotEnoughArgumentsException(); } //TODO: TL this if (args[0].trim().length() < 2) { throw new NotEnoughArgumentsException("You ne...
protected void run(final Server server, final CommandSender sender, final String commandLabel, final String[] args) throws Exception { if (args.length < 2) { throw new NotEnoughArgumentsException(); } //TODO: TL this if (args[0].trim().length() < 2) { throw new NotEnoughArgumentsException("You ne...
diff --git a/src/main/java/fi/csc/microarray/messaging/message/JobMessage.java b/src/main/java/fi/csc/microarray/messaging/message/JobMessage.java index fd0667226..c4293dade 100755 --- a/src/main/java/fi/csc/microarray/messaging/message/JobMessage.java +++ b/src/main/java/fi/csc/microarray/messaging/message/JobMessage....
true
true
public List<String> getParameters(ParameterSecurityPolicy securityPolicy, AnalysisDescription description) throws ParameterValidityException { // Do argument checking first if (securityPolicy == null) { throw new IllegalArgumentException("security policy cannot be null"); } if (description == null) { ...
public List<String> getParameters(ParameterSecurityPolicy securityPolicy, AnalysisDescription description) throws ParameterValidityException { // Do argument checking first if (securityPolicy == null) { throw new IllegalArgumentException("security policy cannot be null"); } if (description == null) { ...
diff --git a/draughts-game/src/main/java/pl/edu/agh/draughts/gui/ChessboardPanel.java b/draughts-game/src/main/java/pl/edu/agh/draughts/gui/ChessboardPanel.java index d52dd66..d50c011 100644 --- a/draughts-game/src/main/java/pl/edu/agh/draughts/gui/ChessboardPanel.java +++ b/draughts-game/src/main/java/pl/edu/agh/draug...
true
true
public void addPieces(Piece[][] pieces) { for (int row = 0; row < rows; row++) { for (int column = 0; column < rows; column++) { Piece piece = pieces[row][column]; if (piece != null) { PieceLabel pieceLabel = null; if (piece...
public void addPieces(Piece[][] pieces) { for (int row = 0; row < rows; row++) { for (int column = 0; column < rows; column++) { Piece piece = pieces[row][column]; if (piece != null) { PieceLabel pieceLabel = null; if (piece...
diff --git a/org.alskor.redmine_api/src/main/java/org/alskor/redmine/RedmineManager.java b/org.alskor.redmine_api/src/main/java/org/alskor/redmine/RedmineManager.java index 53c4697..d36b9d3 100644 --- a/org.alskor.redmine_api/src/main/java/org/alskor/redmine/RedmineManager.java +++ b/org.alskor.redmine_api/src/main/jav...
true
true
private List<Issue> getIssuesV104(String projectKey, Integer queryId) throws IOException, AuthenticationException, NotFoundException { List<Issue> allTasks = new ArrayList<Issue>(); final int FIRST_REDMINE_PAGE = 1; int pageNum = FIRST_REDMINE_PAGE; // Redmine 1.0.4 (and Trunk at this moment - Dec 22, 2010...
private List<Issue> getIssuesV104(String projectKey, Integer queryId) throws IOException, AuthenticationException, NotFoundException { List<Issue> allTasks = new ArrayList<Issue>(); final int FIRST_REDMINE_PAGE = 1; int pageNum = FIRST_REDMINE_PAGE; // Redmine 1.0.4 (and Trunk at this moment - Dec 22, 2010...
diff --git a/lib/java/src/protocol/TBinaryProtocol.java b/lib/java/src/protocol/TBinaryProtocol.java index 2e487cd..b9167d2 100644 --- a/lib/java/src/protocol/TBinaryProtocol.java +++ b/lib/java/src/protocol/TBinaryProtocol.java @@ -1,339 +1,339 @@ // Copyright (c) 2006- Facebook // Distributed under the Thrift Softw...
true
true
public TMessage readMessageBegin() throws TException { TMessage message = new TMessage(); int size = readI32(); if (size < 0) { int version = size & VERSION_MASK; if (version != VERSION_1) { throw new TProtocolException(TProtocolException.BAD_VERSION, "Bad version in readMessageBegin"...
public TMessage readMessageBegin() throws TException { TMessage message = new TMessage(); int size = readI32(); if (size < 0) { int version = size & VERSION_MASK; if (version != VERSION_1) { throw new TProtocolException(TProtocolException.BAD_VERSION, "Bad version in readMessageBegin"...
diff --git a/src/main/java/ar/sgt/resolver/tag/UrlTag.java b/src/main/java/ar/sgt/resolver/tag/UrlTag.java index 679ec03..0cf126f 100644 --- a/src/main/java/ar/sgt/resolver/tag/UrlTag.java +++ b/src/main/java/ar/sgt/resolver/tag/UrlTag.java @@ -1,74 +1,74 @@ /** * UrlTag * Copyright(c) 2011 Sergio Gabriel Teve...
true
true
public int doEndTag() throws JspException { ResolverConfig config = (ResolverConfig) pageContext.getServletContext().getAttribute(ContextLoader.RESOLVER_CONFIG); UrlReverse reverse = new UrlReverse(config); try { pageContext.getOut().write(reverse.resolve(this.name)); } catch (IOException e) { throw new ...
public int doEndTag() throws JspException { ResolverConfig config = (ResolverConfig) pageContext.getServletContext().getAttribute(ContextLoader.RESOLVER_CONFIG); UrlReverse reverse = new UrlReverse(config); try { pageContext.getOut().write(reverse.resolve(this.name, this.params)); } catch (IOException e) { ...
diff --git a/application/app/controllers/UserController.java b/application/app/controllers/UserController.java index 2978b35d..28fc06c8 100644 --- a/application/app/controllers/UserController.java +++ b/application/app/controllers/UserController.java @@ -1,219 +1,219 @@ package controllers; import java.security.NoS...
true
true
public static Result register(){ // Bind play form request. Form<Register> registerForm = form(Register.class).bindFromRequest(); List<Link> breadcrumbs = new ArrayList<Link>(); breadcrumbs.add(new Link("Home", "/")); breadcrumbs.add(new Link("Sign Up", "/signup")); // If the form contains error's (specif...
public static Result register(){ // Bind play form request. Form<Register> registerForm = form(Register.class).bindFromRequest(); List<Link> breadcrumbs = new ArrayList<Link>(); breadcrumbs.add(new Link("Home", "/")); breadcrumbs.add(new Link("Sign Up", "/signup")); // If the form contains error's (specif...
diff --git a/src/main/java/ch/ethz/iks/slp/impl/SLPDaemonImpl.java b/src/main/java/ch/ethz/iks/slp/impl/SLPDaemonImpl.java index 66ec330..202f32b 100644 --- a/src/main/java/ch/ethz/iks/slp/impl/SLPDaemonImpl.java +++ b/src/main/java/ch/ethz/iks/slp/impl/SLPDaemonImpl.java @@ -1,606 +1,607 @@ /* Copyright (c) 2005-2008...
true
true
public ReplyMessage handleMessage(final SLPMessage msg) throws ServiceLocationException { if (msg == null) { return null; } String via = msg.tcp ? " (tcp)" : " (udp)"; SLPCore.platform.logTraceMessage("RECEIVED (" + msg.address + ":" + msg.port + ") " + msg.toString() + via); ReplyMessage reply...
public ReplyMessage handleMessage(final SLPMessage msg) throws ServiceLocationException { if (msg == null) { return null; } String via = msg.tcp ? " (tcp)" : " (udp)"; SLPCore.platform.logTraceMessage("RECEIVED (" + msg.address + ":" + msg.port + ") " + msg.toString() + via); ReplyMessage reply...
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/UpdateManagerUtils.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/UpdateManagerUtils.java index 85442d7ac..8a4966d46 100644 --- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/UpdateManager...
false
true
public static String getURLAsString(URL rootURL, URL url) { String result = null; if (rootURL == null) { return (url == null) ? null : url.toString(); } // if no URL , return null if (url != null) { result = url.toExternalForm(); if (rootURL.getHost() != null && !rootURL.getHost().equals(url.get...
public static String getURLAsString(URL rootURL, URL url) { String result = null; if (rootURL == null) { return (url == null) ? null : url.toString(); } // if no URL , return null if (url != null) { result = url.toExternalForm(); if (rootURL.getHost() != null && !rootURL.getHost().equals(url.get...
diff --git a/Bracketeer/src/com/chookapp/org/bracketeer/core/PaintableBracket.java b/Bracketeer/src/com/chookapp/org/bracketeer/core/PaintableBracket.java index c4a2a98..b2169cc 100644 --- a/Bracketeer/src/com/chookapp/org/bracketeer/core/PaintableBracket.java +++ b/Bracketeer/src/com/chookapp/org/bracketeer/core/Paint...
true
true
protected void innerPaint(GC gc, StyledText st, IDocument doc, IRegion widgetRange, Rectangle widgetRect) { int offset = widgetRange.getOffset(); int length = widgetRange.getLength(); if (length != 1) throw new IllegalArgumentException(S...
protected void innerPaint(GC gc, StyledText st, IDocument doc, IRegion widgetRange, Rectangle widgetRect) { int offset = widgetRange.getOffset(); int length = widgetRange.getLength(); if (length != 1) throw new IllegalArgumentException(S...
diff --git a/src/java/com/homework/hw2/HomePage.java b/src/java/com/homework/hw2/HomePage.java index e701826..3bdd55b 100644 --- a/src/java/com/homework/hw2/HomePage.java +++ b/src/java/com/homework/hw2/HomePage.java @@ -1,35 +1,35 @@ /* * To change this template, choose Tools | Templates * and open the template i...
true
true
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { Object url_attribute = request.getParameter(SESSION_ATTRIBUTE); request.getSession().setAttribute(SESSION_ATTRIBUTE, url_attribute); String session_value = (String)request.g...
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { Object url_attribute = request.getParameter(SESSION_ATTRIBUTE); request.getSession().setAttribute(SESSION_ATTRIBUTE, url_attribute); String session_value = (String)request.g...
diff --git a/zendserver-sdk-java/org.zend.sdk/sdklib/org/zend/sdklib/monitor/ZendMonitor.java b/zendserver-sdk-java/org.zend.sdk/sdklib/org/zend/sdklib/monitor/ZendMonitor.java index d29b7c15..a96bef5f 100644 --- a/zendserver-sdk-java/org.zend.sdk/sdklib/org/zend/sdklib/monitor/ZendMonitor.java +++ b/zendserver-sdk-jav...
true
true
public List<IZendIssue> getIssues(Filter filter, long lastTime, IZendTarget target) { List<IZendIssue> result = new ArrayList<IZendIssue>(); int offset = 0; try { WebApiClient client = getClient(); while (true) { IssueList list = client.monitorGetIssuesListPredefinedFilter( filter.getName(), 2...
public List<IZendIssue> getIssues(Filter filter, long lastTime, IZendTarget target) { List<IZendIssue> result = new ArrayList<IZendIssue>(); int offset = 0; try { WebApiClient client = getClient(); while (true) { IssueList list = client.monitorGetIssuesListPredefinedFilter( filter.getName(), 2...
diff --git a/ISDS/src/main/java/cz/abclinuxu/datoveschranky/impl/DataBoxMessagesServiceImpl.java b/ISDS/src/main/java/cz/abclinuxu/datoveschranky/impl/DataBoxMessagesServiceImpl.java index 3551fe8..6d69de0 100644 --- a/ISDS/src/main/java/cz/abclinuxu/datoveschranky/impl/DataBoxMessagesServiceImpl.java +++ b/ISDS/src/ma...
false
true
protected List<MessageEnvelope> createMessages(TRecordsArray records, MessageType type) { List<MessageEnvelope> result = new ArrayList<MessageEnvelope>(); for (TRecord record : records.getDmRecord()) { // odesílatel String senderID = record.getDbIDSender().getValue(); ...
protected List<MessageEnvelope> createMessages(TRecordsArray records, MessageType type) { List<MessageEnvelope> result = new ArrayList<MessageEnvelope>(); for (TRecord record : records.getDmRecord()) { // odesílatel String senderID = record.getDbIDSender().getValue(); ...
diff --git a/src/main/java/org/werti/uima/enhancer/BaseformPostEnhancer.java b/src/main/java/org/werti/uima/enhancer/BaseformPostEnhancer.java index 9ce4e61..13d3462 100644 --- a/src/main/java/org/werti/uima/enhancer/BaseformPostEnhancer.java +++ b/src/main/java/org/werti/uima/enhancer/BaseformPostEnhancer.java @@ -1,9...
true
true
public void process(JCas cas) throws AnalysisEngineProcessException { FSIterator enhanceIter = cas.getAnnotationIndex(Enhancement.type).iterator(); while (enhanceIter.hasNext()) { Enhancement e = (Enhancement) enhanceIter.next(); String baseForm = null; String startTag = e.getEnhanceStart(); // to-i...
public void process(JCas cas) throws AnalysisEngineProcessException { FSIterator enhanceIter = cas.getAnnotationIndex(Enhancement.type).iterator(); while (enhanceIter.hasNext()) { Enhancement e = (Enhancement) enhanceIter.next(); String baseForm = null; String startTag = e.getEnhanceStart(); // to-i...
diff --git a/itests/src/test/java/org/openengsb/itests/util/AbstractExamTestHelper.java b/itests/src/test/java/org/openengsb/itests/util/AbstractExamTestHelper.java index 7bb01ea8b..6d6ed602c 100644 --- a/itests/src/test/java/org/openengsb/itests/util/AbstractExamTestHelper.java +++ b/itests/src/test/java/org/openengsb...
true
true
public static Option[] configuration() throws Exception { return combine( Helper.getDefaultOptions(), Helper.loadKarafStandardFeatures("config", "ssh", "management", "wrapper", "obr"), Helper.setLogLevel("WARN"), mavenBundle(maven().groupId("org.apache.aries.b...
public static Option[] configuration() throws Exception { return combine( Helper.getDefaultOptions(), Helper.loadKarafStandardFeatures("config", "ssh", "management", "wrapper", "obr"), Helper.setLogLevel("WARN"), mavenBundle(maven().groupId("org.apache.aries")...
diff --git a/capture-server/capture/Preprocessor.java b/capture-server/capture/Preprocessor.java index f7ac1c5..adfbc2e 100644 --- a/capture-server/capture/Preprocessor.java +++ b/capture-server/capture/Preprocessor.java @@ -1,112 +1,114 @@ package capture; import java.io.*; /** * PROJECT: Capture-HPC * DATE...
false
true
public void readInputUrls(final String inputUrlsFile) { Thread fileTail = new Thread(new Runnable() { public void run() { try { BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(inputUrlsFile), "UTF-8")); whi...
public void readInputUrls(final String inputUrlsFile) { Thread fileTail = new Thread(new Runnable() { public void run() { try { BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(inputUrlsFile), "UTF-8")); whi...
diff --git a/patientview-parent/radar/src/main/java/org/patientview/radar/service/impl/PatientLinkManagerImpl.java b/patientview-parent/radar/src/main/java/org/patientview/radar/service/impl/PatientLinkManagerImpl.java index 60822118..679cfb6c 100644 --- a/patientview-parent/radar/src/main/java/org/patientview/radar/se...
true
true
public Patient linkPatientRecord(Patient patient) throws Exception { try { PatientLink patientLink = new PatientLink(); patientLink.setSourceNhsNO(patient.getNhsno()); patientLink.setSourceUnit(patient.getUnitcode()); patientLink.setDestinationNhsNo(patient.ge...
public Patient linkPatientRecord(Patient patient) throws Exception { try { PatientLink patientLink = new PatientLink(); patientLink.setSourceNhsNO(patient.getNhsno()); patientLink.setSourceUnit(patient.getRenalUnit().getUnitCode()); patientLink.setDestinationN...
diff --git a/datatables-core/src/main/java/com/github/dandelion/datatables/core/export/ExportManager.java b/datatables-core/src/main/java/com/github/dandelion/datatables/core/export/ExportManager.java index 91c187ee..3bc9b9ae 100644 --- a/datatables-core/src/main/java/com/github/dandelion/datatables/core/export/ExportM...
false
true
private HtmlDiv initExportDiv(HtmlTable table, JsResource mainJsfile){ // Init the wrapping HTML div HtmlDiv divExport = new HtmlDiv(); divExport.addCssClass("dandelion_dataTables_export"); // ExportTag have been added to the TableTag if (table.getTableConfiguration().getExportConfs() != null && table....
private HtmlDiv initExportDiv(HtmlTable table, JsResource mainJsfile){ // Init the wrapping HTML div HtmlDiv divExport = new HtmlDiv(); divExport.addCssClass("dandelion_dataTables_export"); // ExportTag have been added to the TableTag if (table.getTableConfiguration().getExportConfs() != null && table....
diff --git a/src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java b/src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java index ca1e5b026..68c0b8dd3 100644 --- a/src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java +++ b/src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java @@ -1,3...
true
true
public void surfaceChanged(SurfaceHolder aHolder, int aFormat, int aWidth, int aHeight) { Log.d(MD.TAG, "surfaceChanged: f "+nativeFormat+" -> "+aFormat+", "+aWidth+"x"+aHeight+", current surfaceHandle: 0x"+Long.toHexString(surfaceHandle)); if(0!=surfaceHandle && ( androidFormat != aFormat || getWid...
public void surfaceChanged(SurfaceHolder aHolder, int aFormat, int aWidth, int aHeight) { Log.d(MD.TAG, "surfaceChanged: f "+nativeFormat+" -> "+aFormat+", "+aWidth+"x"+aHeight+", current surfaceHandle: 0x"+Long.toHexString(surfaceHandle)); if(0!=surfaceHandle && androidFormat != aFormat ) { ...
diff --git a/src/frontend/org/voltdb/sysprocs/EvictHistory.java b/src/frontend/org/voltdb/sysprocs/EvictHistory.java index 67e125e48..d1515f1dd 100644 --- a/src/frontend/org/voltdb/sysprocs/EvictHistory.java +++ b/src/frontend/org/voltdb/sysprocs/EvictHistory.java @@ -1,117 +1,119 @@ package org.voltdb.sysprocs; im...
true
true
public DependencySet executePlanFragment(Long txn_id, Map<Integer, List<VoltTable>> dependencies, int fragmentId, ParameterSet params, P...
public DependencySet executePlanFragment(Long txn_id, Map<Integer, List<VoltTable>> dependencies, int fragmentId, ParameterSet params, P...
diff --git a/org/jruby/RubyNil.java b/org/jruby/RubyNil.java index 0671f57d5..980a065ad 100644 --- a/org/jruby/RubyNil.java +++ b/org/jruby/RubyNil.java @@ -1,132 +1,134 @@ /* * RubyNil.java - No description * Created on 09. Juli 2001, 21:38 * * Copyright (C) 2001 Jan Arne Petersen, Stefan Matthias Aust, Alan...
true
true
public static RubyClass createNilClass(Ruby ruby) { RubyClass nilClass = ruby.defineClass("NilClass", ruby.getClasses().getObjectClass()); nilClass.defineMethod("type", CallbackFactory.getSingletonMethod(RubyNil.class, "type")); nilClass.defineMethod("to_i", CallbackFactory.getSingl...
public static RubyClass createNilClass(Ruby ruby) { RubyClass nilClass = ruby.defineClass("NilClass", ruby.getClasses().getObjectClass()); nilClass.defineMethod("type", CallbackFactory.getSingletonMethod(RubyNil.class, "type")); nilClass.defineMethod("to_i", CallbackFactory.getSingl...
diff --git a/src/com/dmdirc/tls/CertificateManager.java b/src/com/dmdirc/tls/CertificateManager.java index de70f2bc1..73466add6 100644 --- a/src/com/dmdirc/tls/CertificateManager.java +++ b/src/com/dmdirc/tls/CertificateManager.java @@ -1,464 +1,467 @@ /* * Copyright (c) 2006-2011 DMDirc Developers * * Permissio...
true
true
public void checkServerTrusted(final X509Certificate[] chain, final String authType) throws CertificateException { this.chain = chain; problems.clear(); boolean verified = false; boolean manual = false; if (checkHost) { // Check that the cert is issu...
public void checkServerTrusted(final X509Certificate[] chain, final String authType) throws CertificateException { this.chain = chain; problems.clear(); boolean verified = false; boolean manual = false; if (checkHost) { // Check that the cert is issu...
diff --git a/src/com/vulcastudios/states/CreditsState.java b/src/com/vulcastudios/states/CreditsState.java index 45efad1..973fd03 100644 --- a/src/com/vulcastudios/states/CreditsState.java +++ b/src/com/vulcastudios/states/CreditsState.java @@ -1,46 +1,46 @@ package com.vulcastudios.states; import org.newdawn.slick...
true
true
public void render(GameContainer container, StateBasedGame game, Graphics g) throws SlickException { g.drawString("Alex Meade", 50, 50); g.drawString("Forrest Meade", 50, 75); g.drawString("Andrew Melton", 50, 100); g.drawString("Taylor Paschal", 50, 125); g.drawString("Stephanie Reese", 50, 150); g.dra...
public void render(GameContainer container, StateBasedGame game, Graphics g) throws SlickException { g.drawString("Alex Meade", 50, 50); g.drawString("Forrest Meade", 50, 75); g.drawString("Andrew Melton", 50, 100); g.drawString("Taylor Paschal", 50, 125); g.drawString("Stephanie Reese", 50, 150); g.dra...
diff --git a/saiku-core/saiku-service/src/test/java/org/saiku/AbstractServiceUtils.java b/saiku-core/saiku-service/src/test/java/org/saiku/AbstractServiceUtils.java index 18a0723b..c83298af 100644 --- a/saiku-core/saiku-service/src/test/java/org/saiku/AbstractServiceUtils.java +++ b/saiku-core/saiku-service/src/test/ja...
true
true
public void initTestContext() { if (!IS_INIT_DONE) { try { InputStream inputStream= getClass().getResourceAsStream("connection.properties"); /* * Step 1. Create a datasource for Mondrian tests. */ ...
public void initTestContext() { if (!IS_INIT_DONE) { try { InputStream inputStream= getClass().getResourceAsStream("connection.properties"); /* * Step 1. Create a datasource for Mondrian tests. */ ...
diff --git a/src/com/philiptorchinsky/TimeAppe/MainActivity.java b/src/com/philiptorchinsky/TimeAppe/MainActivity.java index 6a20aec..27d83af 100644 --- a/src/com/philiptorchinsky/TimeAppe/MainActivity.java +++ b/src/com/philiptorchinsky/TimeAppe/MainActivity.java @@ -1,93 +1,93 @@ package com.philiptorchinsky.TimeApp...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); dh = new DBAdapter (this); dh.open(); // dh.destroy(); // dh.close(); // // dh = new DBAdapter (this); dh.insert("TeamCity training", "inactive", 0,0); dh.insert("Androi...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); dh = new DBAdapter (this); dh.open(); // dh.destroy(); // dh.close(); // // dh = new DBAdapter (this); dh.insert("TeamCity training", "inactive", 0,0); dh.insert("Androi...
diff --git a/src/main/java/com/mysema/webmin/impl/MinifierHandler.java b/src/main/java/com/mysema/webmin/impl/MinifierHandler.java index 49580cd..6406195 100644 --- a/src/main/java/com/mysema/webmin/impl/MinifierHandler.java +++ b/src/main/java/com/mysema/webmin/impl/MinifierHandler.java @@ -1,197 +1,197 @@ /* * Cop...
true
true
public void handle(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { String path = request.getRequestURI().substring(request.getContextPath().length()); logger.debug("path = {}", path); Configuration.Bundle bundle = configuration.ge...
public void handle(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { String path = request.getRequestURI().substring(request.getContextPath().length()); logger.debug("path = {}", path); Configuration.Bundle bundle = configuration.ge...
diff --git a/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/Finished.java b/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/Finished.java index 9cc988c79..fc89d485f 100644 --- a/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/Finished.java +++ b/luni/src/main/java/org/apache/harmony/xnet/pro...
true
true
public Finished(HandshakeIODataStream in, int length) throws IOException { if (length == 12 || length == 36) { data = in.read(length); length = data.length; } else { fatalAlert(AlertProtocol.DECODE_ERROR, "DECODE ERROR: incorrect Finished"); } ...
public Finished(HandshakeIODataStream in, int length) throws IOException { if (length == 12 || length == 36) { data = in.read(length); this.length = data.length; } else { fatalAlert(AlertProtocol.DECODE_ERROR, "DECODE ERROR: incorrect Finished"); ...
diff --git a/jdeeco-core/src/cz/cuni/mff/d3s/deeco/scheduling/Scheduler.java b/jdeeco-core/src/cz/cuni/mff/d3s/deeco/scheduling/Scheduler.java index d32ff98b..5cf8b7b7 100644 --- a/jdeeco-core/src/cz/cuni/mff/d3s/deeco/scheduling/Scheduler.java +++ b/jdeeco-core/src/cz/cuni/mff/d3s/deeco/scheduling/Scheduler.java @@ -1...
false
true
public synchronized void remove(SchedulableProcess process) { if (!running) if (process.scheduling instanceof ProcessTriggeredSchedule) for (SchedulableProcessTrigger tsp : triggeredProcesses) if (tsp.sp == process) { tsp.unregisterListener(); triggeredProcesses .remove(new Schedulabl...
public synchronized void remove(SchedulableProcess process) { if (!running) if (process.scheduling instanceof ProcessTriggeredSchedule) for (SchedulableProcessTrigger tsp : triggeredProcesses) { if (tsp.sp == process) { tsp.unregisterListener(); triggeredProcesses .remove(new Schedula...
diff --git a/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/client/container/ContainerRegistryCreator.java b/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/client/container/ContainerRegistryCreator.java index 539a0e27..d9ca98a1 100644 --- a/container/impl-base/src/main/java...
true
true
public void createRegistry(@Observes ArquillianDescriptor event) { LocalContainerRegistry reg = new LocalContainerRegistry(injector.get()); ServiceLoader serviceLoader = loader.get(); validateConfiguration(event); String activeConfiguration = getActivatedConfiguration(); for(Contai...
public void createRegistry(@Observes ArquillianDescriptor event) { LocalContainerRegistry reg = new LocalContainerRegistry(injector.get()); ServiceLoader serviceLoader = loader.get(); validateConfiguration(event); String activeConfiguration = getActivatedConfiguration(); for(Contai...
diff --git a/src/core/org/luaj/vm/LuaState.java b/src/core/org/luaj/vm/LuaState.java index b3b5fad..b6d08e7 100644 --- a/src/core/org/luaj/vm/LuaState.java +++ b/src/core/org/luaj/vm/LuaState.java @@ -1,2542 +1,2542 @@ /******************************************************************************* * Copyright (c) 20...
true
true
public void exec() { if ( cc < 0 ) return; int i, a, b, c, o, n, cb; LValue rkb, rkc, nvarargs, key, val; LValue i0, step, idx, limit, init, table; boolean back, body; LPrototype proto; LClosure newClosure; // reload values from the curre...
public void exec() { if ( cc < 0 ) return; int i, a, b, c, o, n, cb; LValue rkb, rkc, nvarargs, key, val; LValue i0, step, idx, limit, init, table; boolean back, body; LPrototype proto; LClosure newClosure; // reload values from the curre...
diff --git a/src/org/python/core/PyString.java b/src/org/python/core/PyString.java index ffc1ca63..08c2783b 100644 --- a/src/org/python/core/PyString.java +++ b/src/org/python/core/PyString.java @@ -1,3120 +1,3120 @@ /// Copyright (c) Corporation for National Research Initiatives package org.python.core; import ja...
true
true
public PyString format(PyObject args) { PyObject dict = null; this.args = args; boolean needUnicode = unicodeCoercion; if (args instanceof PyTuple) { argIndex = 0; } else { // special index indicating a single item rather than a tuple argIn...
public PyString format(PyObject args) { PyObject dict = null; this.args = args; boolean needUnicode = unicodeCoercion; if (args instanceof PyTuple) { argIndex = 0; } else { // special index indicating a single item rather than a tuple argIn...
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/PreCompilerBuilder.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/PreCompilerBuilder.java index 2f733fa9c..ae5583d70 100644 --- a/eclipse/plugins/com.android.ide.ecl...
false
true
protected IProject[] build(int kind, Map args, IProgressMonitor monitor) throws CoreException { try { mDerivedProgressMonitor.reset(); // First thing we do is go through the resource delta to not // lose it if we have to abort the build for any reason. ...
protected IProject[] build(int kind, Map args, IProgressMonitor monitor) throws CoreException { try { mDerivedProgressMonitor.reset(); // First thing we do is go through the resource delta to not // lose it if we have to abort the build for any reason. ...