Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/main/java/com/salesforce/saml/SAMLFilter.java b/src/main/java/com/salesforce/saml/SAMLFilter.java index dbb98a6..1a00ba6 100644 --- a/src/main/java/com/salesforce/saml/SAMLFilter.java +++ b/src/main/java/com/salesforce/saml/SAMLFilter.java @@ -1,160 +1,162 @@ /* * Copyright (c) 2012, Salesforce.com ...
true
true
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest httpRequest = (HttpServletRequest)request; HttpServletResponse httpResponse = (HttpServletResponse)response; HttpSession session = httpRequest....
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest httpRequest = (HttpServletRequest)request; HttpServletResponse httpResponse = (HttpServletResponse)response; HttpSession session = httpRequest....
diff --git a/src/test/java/mock/VoteActionHandlerMockTest.java b/src/test/java/mock/VoteActionHandlerMockTest.java index 3834c60..56b562d 100644 --- a/src/test/java/mock/VoteActionHandlerMockTest.java +++ b/src/test/java/mock/VoteActionHandlerMockTest.java @@ -1,112 +1,111 @@ package mock; import junit.framework.Te...
true
true
public void handleTest() throws UnavailableServiceException { context.setImposteriser(ClassImposteriser.INSTANCE); final NomicAgent mockAgent = context.mock(NomicAgent.class); final NomicService service = context.mock(NomicService.class); final Vote yes = new Vote(mockAgent, VoteType.YES); final Vote n...
public void handleTest() throws UnavailableServiceException { context.setImposteriser(ClassImposteriser.INSTANCE); final NomicAgent mockAgent = context.mock(NomicAgent.class); final NomicService service = context.mock(NomicService.class); final Vote yes = new Vote(mockAgent, VoteType.YES); final Vote n...
diff --git a/kundera-core/src/main/java/com/impetus/kundera/configure/PersistenceUnitConfiguration.java b/kundera-core/src/main/java/com/impetus/kundera/configure/PersistenceUnitConfiguration.java index 336123c03..988439e51 100644 --- a/kundera-core/src/main/java/com/impetus/kundera/configure/PersistenceUnitConfigurati...
true
true
private Map<String, PersistenceUnitMetadata> findPersistenceMetadatas() throws InvalidConfigurationException { Enumeration<URL> xmls = null; try { xmls = Thread.currentThread().getContextClassLoader().getResources("META-INF/persistence.xml"); } catch (IOExcep...
private Map<String, PersistenceUnitMetadata> findPersistenceMetadatas() throws InvalidConfigurationException { Enumeration<URL> xmls = null; try { xmls = Thread.currentThread().getContextClassLoader().getResources("META-INF/persistence.xml"); } catch (IOExcep...
diff --git a/src/com/dynamobi/ws/util/DBDao.java b/src/com/dynamobi/ws/util/DBDao.java index e451bf3..4a4a0b6 100644 --- a/src/com/dynamobi/ws/util/DBDao.java +++ b/src/com/dynamobi/ws/util/DBDao.java @@ -1,84 +1,85 @@ /* Dynamo Web Services is a web service project for administering LucidDB Copyright (C) 2010 Dynam...
false
true
public DBDao() throws ClassNotFoundException, SQLException, IOException { super(); Properties pro = new Properties(); InputStream user_props = this.getClass().getResourceAsStream("/luciddb-jdbc.properties"); if (user_props != null) { pro.load(user_props); } else { pro.load(this.getCl...
public DBDao() throws ClassNotFoundException, SQLException, IOException { super(); Properties pro = new Properties(); InputStream user_props = this.getClass().getResourceAsStream("/luciddb-jdbc.properties"); if (user_props != null) { pro.load(user_props); } else { pro.load(this.getCl...
diff --git a/src/main/java/uk/ac/ic/doc/campusProject/web/servlet/PlacesApi.java b/src/main/java/uk/ac/ic/doc/campusProject/web/servlet/PlacesApi.java index eca7e24..da75855 100644 --- a/src/main/java/uk/ac/ic/doc/campusProject/web/servlet/PlacesApi.java +++ b/src/main/java/uk/ac/ic/doc/campusProject/web/servlet/Places...
false
true
protected void doGet(HttpServletRequest request, HttpServletResponse response) { Connection conn = DatabaseConnectionManager.getConnection("live"); PreparedStatement stmt; String verbose = request.getParameter("verbose"); String building = request.getParameter("building"); String floor = request.getParameter...
protected void doGet(HttpServletRequest request, HttpServletResponse response) { Connection conn = DatabaseConnectionManager.getConnection("live"); PreparedStatement stmt; String verbose = request.getParameter("verbose"); String building = request.getParameter("building"); String floor = request.getParameter...
diff --git a/wiki-service/src/main/java/org/exoplatform/wiki/service/impl/SessionDestroyedListener.java b/wiki-service/src/main/java/org/exoplatform/wiki/service/impl/SessionDestroyedListener.java index fcbbd774..e8b9586e 100644 --- a/wiki-service/src/main/java/org/exoplatform/wiki/service/impl/SessionDestroyedListener...
true
true
public void onEvent(Event<PortalContainer, HttpSessionEvent> event) throws Exception { PortalContainer container = event.getSource(); String sessionId = event.getData().getSession().getId(); if (LOG.isTraceEnabled()) { LOG.trace("Removing the key: " + sessionId); } try { SessionMan...
public void onEvent(Event<PortalContainer, HttpSessionEvent> event) throws Exception { PortalContainer container = event.getSource(); String sessionId = event.getData().getSession().getId(); if (LOG.isTraceEnabled()) { LOG.trace("Removing the key: " + sessionId); } try { SessionMan...
diff --git a/activemq-core/src/main/java/org/activemq/transport/failover/FailoverTransport.java b/activemq-core/src/main/java/org/activemq/transport/failover/FailoverTransport.java index 16a8fdb9c..7b0c21dfa 100755 --- a/activemq-core/src/main/java/org/activemq/transport/failover/FailoverTransport.java +++ b/activemq-c...
false
true
public FailoverTransport() throws InterruptedIOException { // Setup a task that is used to reconnect the a connection async. reconnectTask = DefaultThreadPools.getDefaultTaskRunnerFactory().createTaskRunner(new Task() { public boolean iterate() { Exception failure=null...
public FailoverTransport() throws InterruptedIOException { // Setup a task that is used to reconnect the a connection async. reconnectTask = DefaultThreadPools.getDefaultTaskRunnerFactory().createTaskRunner(new Task() { public boolean iterate() { Exception failure=null...
diff --git a/src/mecard/customer/BImportFormatter.java b/src/mecard/customer/BImportFormatter.java index 74e9539..db1c9c6 100644 --- a/src/mecard/customer/BImportFormatter.java +++ b/src/mecard/customer/BImportFormatter.java @@ -1,233 +1,233 @@ /* * Metro allows customers from any affiliate library to join any other...
false
true
private BImportFormatter(Builder b) { StringBuilder headerContent = new StringBuilder(); StringBuilder dataContent = new StringBuilder(); File header = createFile(b.headerName); File data = createFile(b.dataName); // These fields need to be formatted String ex...
private BImportFormatter(Builder b) { StringBuilder headerContent = new StringBuilder(); StringBuilder dataContent = new StringBuilder(); File header = createFile(b.headerName); File data = createFile(b.dataName); // These fields need to be formatted String ex...
diff --git a/src/main/java/com/financial/pyramid/service/impl/AccountServiceImpl.java b/src/main/java/com/financial/pyramid/service/impl/AccountServiceImpl.java index 566fa67..b43dcbd 100644 --- a/src/main/java/com/financial/pyramid/service/impl/AccountServiceImpl.java +++ b/src/main/java/com/financial/pyramid/service/...
true
true
public void activate(Account account) { Date currentDate = new Date(); Date newActivationDate = null; if (account.getDateExpired().before(currentDate)){ newActivationDate = currentDate; } else { newActivationDate = account.getDateExpired(); } a...
public void activate(Account account) { Date currentDate = new Date(); Date newActivationDate = null; if (account.getDateExpired().before(currentDate)){ newActivationDate = currentDate; } else { newActivationDate = account.getDateExpired(); } a...
diff --git a/src/main/java/com/concursive/connect/web/controller/hooks/SecurityHook.java b/src/main/java/com/concursive/connect/web/controller/hooks/SecurityHook.java index 8702f6b..ff96342 100644 --- a/src/main/java/com/concursive/connect/web/controller/hooks/SecurityHook.java +++ b/src/main/java/com/concursive/connec...
true
true
public String beginRequest(Servlet servlet, HttpServletRequest request, HttpServletResponse response) { LOG.debug("Security request made"); ServletConfig config = servlet.getServletConfig(); ServletContext context = config.getServletContext(); // Application wide preferences ApplicationPrefs prefs...
public String beginRequest(Servlet servlet, HttpServletRequest request, HttpServletResponse response) { LOG.debug("Security request made"); ServletConfig config = servlet.getServletConfig(); ServletContext context = config.getServletContext(); // Application wide preferences ApplicationPrefs prefs...
diff --git a/src/nl/giantit/minecraft/GiantShop/core/Commands/check.java b/src/nl/giantit/minecraft/GiantShop/core/Commands/check.java index 5a8e4b3..d79ea23 100644 --- a/src/nl/giantit/minecraft/GiantShop/core/Commands/check.java +++ b/src/nl/giantit/minecraft/GiantShop/core/Commands/check.java @@ -1,134 +1,134 @@ pa...
true
true
public static void check(Player player, String[] args) { Messages msgs = GiantShop.getPlugin().getMsgHandler(); Items iH = GiantShop.getPlugin().getItemHandler(); perm perms = perm.Obtain(); config conf = config.Obtain(); if(perms.has(player, "giantshop.shop.check")) { db DB = db.Obtain(); int itemID; ...
public static void check(Player player, String[] args) { Messages msgs = GiantShop.getPlugin().getMsgHandler(); Items iH = GiantShop.getPlugin().getItemHandler(); perm perms = perm.Obtain(); config conf = config.Obtain(); if(perms.has(player, "giantshop.shop.check")) { db DB = db.Obtain(); int itemID; ...
diff --git a/loci/formats/in/OMETiffReader.java b/loci/formats/in/OMETiffReader.java index c23b2f467..e22cf2f28 100644 --- a/loci/formats/in/OMETiffReader.java +++ b/loci/formats/in/OMETiffReader.java @@ -1,525 +1,526 @@ // // OMETiffReader.java // /* LOCI Bio-Formats package for reading and converting biologica...
true
true
protected void initStandardMetadata() throws FormatException, IOException { super.initStandardMetadata(); String comment = (String) getMeta("Comment"); boolean lsids = true; // find list of Image IDs Vector v = new Vector(); String check = "<Image "; int ndx = comment.indexOf(check); ...
protected void initStandardMetadata() throws FormatException, IOException { super.initStandardMetadata(); String comment = (String) getMeta("Comment"); boolean lsids = true; // find list of Image IDs Vector v = new Vector(); String check = "<Image "; int ndx = comment.indexOf(check); ...
diff --git a/src/com/google/javascript/jscomp/ant/CompileTask.java b/src/com/google/javascript/jscomp/ant/CompileTask.java index 4e636a39..38741720 100644 --- a/src/com/google/javascript/jscomp/ant/CompileTask.java +++ b/src/com/google/javascript/jscomp/ant/CompileTask.java @@ -1,279 +1,281 @@ /* * Copyright 2010 Go...
true
true
public void execute() { if (this.outputFile == null) { throw new BuildException("outputFile attribute must be set"); } Compiler.setLoggingLevel(Level.OFF); CompilerOptions options = createCompilerOptions(); Compiler compiler = createCompiler(options); JSSourceFile[] externs = findExte...
public void execute() { if (this.outputFile == null) { throw new BuildException("outputFile attribute must be set"); } Compiler.setLoggingLevel(Level.OFF); CompilerOptions options = createCompilerOptions(); Compiler compiler = createCompiler(options); JSSourceFile[] externs = findExte...
diff --git a/mes-plugins/mes-plugins-operational-tasks-for-orders/src/main/java/com/qcadoo/mes/operationalTasksForOrders/hooks/OrderHooksOTFO.java b/mes-plugins/mes-plugins-operational-tasks-for-orders/src/main/java/com/qcadoo/mes/operationalTasksForOrders/hooks/OrderHooksOTFO.java index ca454ad657..76bd6aa71e 100644 -...
true
true
public void changedProductionLine(final DataDefinition dataDefinition, final Entity entity) { if (entity.getId() == null) { return; } Entity order = dataDefinition.get(entity.getId()); Entity productionLine = entity.getBelongsToField(OrderFields.PRODUCTION_LINE); ...
public void changedProductionLine(final DataDefinition dataDefinition, final Entity entity) { if (entity.getId() == null) { return; } Entity order = dataDefinition.get(entity.getId()); Entity productionLine = entity.getBelongsToField(OrderFields.PRODUCTION_LINE); ...
diff --git a/src/com/csipsimple/ui/outgoingcall/OutgoingCallChooser.java b/src/com/csipsimple/ui/outgoingcall/OutgoingCallChooser.java index 8016f671..99aa6b15 100644 --- a/src/com/csipsimple/ui/outgoingcall/OutgoingCallChooser.java +++ b/src/com/csipsimple/ui/outgoingcall/OutgoingCallChooser.java @@ -1,238 +1,238 @@ ...
false
true
public String getPhoneNumber() { if(phoneNumber == null) { Intent it = getIntent(); // First step is to retrieve the number that was asked to us. phoneNumber = PhoneNumberUtils.getNumberFromIntent(getIntent(), this); if (phoneNumber == null) { ...
public String getPhoneNumber() { if(phoneNumber == null) { Intent it = getIntent(); // First step is to retrieve the number that was asked to us. phoneNumber = PhoneNumberUtils.getNumberFromIntent(getIntent(), this); if (phoneNumber == null) { ...
diff --git a/Zed-Eclipse/src/zed/Level_Manager.java b/Zed-Eclipse/src/zed/Level_Manager.java index c3e090e..8146097 100644 --- a/Zed-Eclipse/src/zed/Level_Manager.java +++ b/Zed-Eclipse/src/zed/Level_Manager.java @@ -1,453 +1,453 @@ /* * To change this template, choose Tools | Templates * and open the template in ...
true
true
public void Init(int level_index, int player_x, int player_y) throws SlickException{ current_level_index = level_index; objectlist = null; npclist = null; portallist = null; tileset = new SpriteSheet("images/tileset.png", 16, 16); character_sprites = new Spr...
public void Init(int level_index, int player_x, int player_y) throws SlickException{ current_level_index = level_index; objectlist = null; npclist = null; portallist = null; tileset = new SpriteSheet("images/tileset.png", 16, 16); character_sprites = new Spr...
diff --git a/taedium/src/me/taedium/android/add/WizardActivity.java b/taedium/src/me/taedium/android/add/WizardActivity.java index 454c6ea..15be9ce 100644 --- a/taedium/src/me/taedium/android/add/WizardActivity.java +++ b/taedium/src/me/taedium/android/add/WizardActivity.java @@ -1,105 +1,108 @@ package me.taedium.and...
true
true
protected void initializeWizard(final Context context, final Class<?> cls, final int requestCode) { // Initialize the header and help button initializeHeader(new View.OnClickListener() { @Override public void onClick(View v) { showDialog(DIALOG_HELP); ...
protected void initializeWizard(final Context context, final Class<?> cls, final int requestCode) { // Initialize the header and help button initializeHeader(new View.OnClickListener() { @Override public void onClick(View v) { showDialog(DIALOG_HELP); ...
diff --git a/examples/org.eclipse.ocl.examples.xtext.base/src/org/eclipse/ocl/examples/xtext/base/scoping/cs/BaseScopeProvider.java b/examples/org.eclipse.ocl.examples.xtext.base/src/org/eclipse/ocl/examples/xtext/base/scoping/cs/BaseScopeProvider.java index e4705e4813..2e19fdd6db 100644 --- a/examples/org.eclipse.ocl....
false
true
public IScope getScope(EObject context, EReference reference) { Resource csResource = context.eResource(); if (reference.getEReferenceType().getEPackage().getNsURI().equals(TypesPackage.eNS_URI)) { return globalScopeProvider.getScope(csResource, reference, null); } MetaModelManagerResourceAdapter adapter = ...
public IScope getScope(EObject context, EReference reference) { Resource csResource = context.eResource(); if (reference.getEReferenceType().getEPackage().getNsURI().equals(TypesPackage.eNS_URI)) { return globalScopeProvider.getScope(csResource, reference, null); } MetaModelManagerResourceAdapter adapter = ...
diff --git a/test-fabric-node/src/test/java/org/fabric3/test/node/FabricBindingTestCase.java b/test-fabric-node/src/test/java/org/fabric3/test/node/FabricBindingTestCase.java index 0ee8377..edd40fb 100644 --- a/test-fabric-node/src/test/java/org/fabric3/test/node/FabricBindingTestCase.java +++ b/test-fabric-node/src/te...
false
true
public void testDeployServiceEndpoint() throws Exception { Fabric fabric = Bootstrap.initialize(); fabric.addProfile("rs").addExtension("fabric3-databinding-json").addExtension("fabric3-jetty"); fabric.start(); Domain domain = fabric.getDomain(); TestRsServiceImpl instance...
public void testDeployServiceEndpoint() throws Exception { Fabric fabric = Bootstrap.initialize(getClass().getResource("/testConfig.xml")); fabric.addProfile("rs").addExtension("fabric3-databinding-json").addExtension("fabric3-jetty"); fabric.start(); Domain domain = fabric.getDoma...
diff --git a/src/main/java/me/arno/blocklog/schedules/AliveSchedule.java b/src/main/java/me/arno/blocklog/schedules/AliveSchedule.java index fa7d087..8efc695 100644 --- a/src/main/java/me/arno/blocklog/schedules/AliveSchedule.java +++ b/src/main/java/me/arno/blocklog/schedules/AliveSchedule.java @@ -1,18 +1,18 @@ pack...
true
true
public void run() { try { BlockLog.getInstance().getConnection().createStatement().executeUpdate("UPDATE blocklog_data SET `id`=1 WHERE `id`=1"); } catch(SQLException e) { Util.sendNotice("Something went wrong while sending the alive query"); } }
public void run() { try { BlockLog.getInstance().getConnection().createStatement().executeUpdate("UPDATE " + BlockLog.getInstance().getDatabaseManager().getPrefix() + "data SET `id`=1 WHERE `id`=1"); } catch(SQLException e) { Util.sendNotice("Something went wrong while sending the alive query"); } }
diff --git a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java index 5f71183c2..be11dc361 100755 --- a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java +++ b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java @@ -1,2269 ...
true
true
private void handleReceivedJSONMessage(Response response) { final Date start = new Date(); // for(;;);[realjson] final String jsonText = response.getText().substring(9, response.getText().length() - 1); final ValueMap json; try { json = parseJSONRe...
private void handleReceivedJSONMessage(Response response) { final Date start = new Date(); // for(;;);[realjson] final String jsonText = response.getText().substring(9, response.getText().length() - 1); final ValueMap json; try { json = parseJSONRe...
diff --git a/src/main/java/com/griefcraft/modules/doors/DoorsModule.java b/src/main/java/com/griefcraft/modules/doors/DoorsModule.java index 49bb2a30..bb524662 100644 --- a/src/main/java/com/griefcraft/modules/doors/DoorsModule.java +++ b/src/main/java/com/griefcraft/modules/doors/DoorsModule.java @@ -1,295 +1,295 @@ ...
true
true
public void onProtectionInteract(LWCProtectionInteractEvent event) { if (event.getResult() == Result.CANCEL || !isEnabled()) { return; } // The more important check if (!event.canAccess()) { return; } Protection protection = event.getProtecti...
public void onProtectionInteract(LWCProtectionInteractEvent event) { if (event.getResult() == Result.CANCEL || !isEnabled()) { return; } // The more important check if (!event.canAccess()) { return; } Protection protection = event.getProtecti...
diff --git a/src/com/sleazyweasel/pandora/JsonPandoraRadio.java b/src/com/sleazyweasel/pandora/JsonPandoraRadio.java index b68f057..98da09e 100644 --- a/src/com/sleazyweasel/pandora/JsonPandoraRadio.java +++ b/src/com/sleazyweasel/pandora/JsonPandoraRadio.java @@ -1,303 +1,301 @@ package com.sleazyweasel.pandora; i...
false
true
public Song[] getPlaylist(Station station, String format) { Map<String, Object> data = new HashMap<String, Object>(); data.put("stationToken", station.getStationIdToken()); data.put("additionalAudioUrl", "HTTP_192_MP3,HTTP_128_MP3"); JsonObject songResult = doStandardCall("station.ge...
public Song[] getPlaylist(Station station, String format) { Map<String, Object> data = new HashMap<String, Object>(); data.put("stationToken", station.getStationIdToken()); data.put("additionalAudioUrl", "HTTP_192_MP3,HTTP_128_MP3"); JsonObject songResult = doStandardCall("station.ge...
diff --git a/src/main/java/hudson/plugins/jacoco/model/CoverageObject.java b/src/main/java/hudson/plugins/jacoco/model/CoverageObject.java index 4bcac00..6321269 100644 --- a/src/main/java/hudson/plugins/jacoco/model/CoverageObject.java +++ b/src/main/java/hudson/plugins/jacoco/model/CoverageObject.java @@ -1,492 +1,48...
true
true
protected JFreeChart createGraph() { final CategoryDataset dataset = createDataSet(obj).build(); final JFreeChart chart = ChartFactory.createLineChart( null, // chart title null, // unused "", // range axis label dataset, // data PlotOrientation.VERTICAL, // orientation true, // in...
protected JFreeChart createGraph() { final CategoryDataset dataset = createDataSet(obj).build(); final JFreeChart chart = ChartFactory.createLineChart( null, // chart title null, // unused "", // range axis label dataset, // data PlotOrientation.VERTICAL, // orientation true, // in...
diff --git a/src/tux2/spoutlwc/SpoutLWC.java b/src/tux2/spoutlwc/SpoutLWC.java index 0424f1a..b00e225 100644 --- a/src/tux2/spoutlwc/SpoutLWC.java +++ b/src/tux2/spoutlwc/SpoutLWC.java @@ -1,102 +1,102 @@ package tux2.spoutlwc; import java.util.HashSet; import java.util.concurrent.ConcurrentHashMap; import org....
true
true
public void onEnable() { setupPermissions(); Plugin lwcPlugin = getServer().getPluginManager().getPlugin("LWC"); if(lwcPlugin != null) { lwc = ((LWCPlugin) lwcPlugin).getLWC(); LWCScreenListener serverListener = new LWCScreenListener(this); // Register our events ...
public void onEnable() { setupPermissions(); Plugin lwcPlugin = getServer().getPluginManager().getPlugin("LWC"); if(lwcPlugin != null) { lwc = ((LWCPlugin) lwcPlugin).getLWC(); LWCServerListener serverListener = new LWCServerListener(this); // Register our events ...
diff --git a/activemq-core/src/test/java/org/apache/activemq/usecases/TwoBrokerQueueSendReceiveTest.java b/activemq-core/src/test/java/org/apache/activemq/usecases/TwoBrokerQueueSendReceiveTest.java index 6d01da5ef..d463c14cf 100644 --- a/activemq-core/src/test/java/org/apache/activemq/usecases/TwoBrokerQueueSendReceiv...
true
true
public void testReceiveOnXConsumersNoLeak() throws Exception { consumer.close(); sendMessages(); for (int i=0; i<data.length; i++) { consumer = createConsumer(); onMessage(consumer.receive(10000)); consumer.close(); } waitForMessagesToBeDel...
public void testReceiveOnXConsumersNoLeak() throws Exception { consumer.close(); sendMessages(); for (int i=0; i<data.length; i++) { consumer = createConsumer(); onMessage(consumer.receive(10000)); consumer.close(); } waitForMessagesToBeDel...
diff --git a/src/test/java/javax/time/format/TestStringLiteralParser.java b/src/test/java/javax/time/format/TestStringLiteralParser.java index bc2677bf..aa069a04 100644 --- a/src/test/java/javax/time/format/TestStringLiteralParser.java +++ b/src/test/java/javax/time/format/TestStringLiteralParser.java @@ -1,101 +1,102 ...
true
true
Object[][] data_success() { return new Object[][] { // match {new StringLiteralPrinterParser("hello"), true, "hello", 0, 5}, {new StringLiteralPrinterParser("hello"), true, "helloOTHER", 0, 5}, {new StringLiteralPrinterParser("hello"), true, "OTHERhelloOTHER",...
Object[][] data_success() { return new Object[][] { // match {new StringLiteralPrinterParser("hello"), true, "hello", 0, 5}, {new StringLiteralPrinterParser("hello"), true, "helloOTHER", 0, 5}, {new StringLiteralPrinterParser("hello"), true, "OTHERhelloOTHER",...
diff --git a/src/com/android/calendar/DayFragment.java b/src/com/android/calendar/DayFragment.java index e3ef6946..2ba8dbfe 100644 --- a/src/com/android/calendar/DayFragment.java +++ b/src/com/android/calendar/DayFragment.java @@ -1,271 +1,272 @@ /* * Copyright (C) 2010 The Android Open Source Project * * Licens...
true
true
private void goTo(Time goToTime, boolean ignoreTime, boolean animateToday) { if (mViewSwitcher == null) { // The view hasn't been set yet. Just save the time and use it later. mSelectedDay.set(goToTime); return; } DayView currentView = (DayView) mViewSwit...
private void goTo(Time goToTime, boolean ignoreTime, boolean animateToday) { if (mViewSwitcher == null) { // The view hasn't been set yet. Just save the time and use it later. mSelectedDay.set(goToTime); return; } DayView currentView = (DayView) mViewSwit...
diff --git a/java/src/org/pocketworkstation/pckeyboard/LatinKeyboardBaseView.java b/java/src/org/pocketworkstation/pckeyboard/LatinKeyboardBaseView.java index 6e1487f..327cf90 100644 --- a/java/src/org/pocketworkstation/pckeyboard/LatinKeyboardBaseView.java +++ b/java/src/org/pocketworkstation/pckeyboard/LatinKeyboardB...
false
true
private void onBufferDraw() { if (mBuffer == null || mKeyboardChanged) { mKeyboard.setKeyboardWidth(mViewWidth); if (mBuffer == null || mKeyboardChanged && (mBuffer.getWidth() != getWidth() || mBuffer.getHeight() != getHeight())) { // Make sure our...
private void onBufferDraw() { if (mBuffer == null || mKeyboardChanged) { mKeyboard.setKeyboardWidth(mViewWidth); if (mBuffer == null || mKeyboardChanged && (mBuffer.getWidth() != getWidth() || mBuffer.getHeight() != getHeight())) { // Make sure our...
diff --git a/src/gwt/src/org/rstudio/studio/client/workbench/views/vcs/common/model/VcsState.java b/src/gwt/src/org/rstudio/studio/client/workbench/views/vcs/common/model/VcsState.java index 7582f5d86b..c43dede231 100644 --- a/src/gwt/src/org/rstudio/studio/client/workbench/views/vcs/common/model/VcsState.java +++ b/sr...
true
true
public VcsState(EventBus eventBus, GlobalDisplay globalDisplay, final Session session) { eventBus_ = eventBus; globalDisplay_ = globalDisplay; session_ = session; final HandlerRegistrations registrations = new HandlerRegistrations(); registration...
public VcsState(EventBus eventBus, GlobalDisplay globalDisplay, final Session session) { eventBus_ = eventBus; globalDisplay_ = globalDisplay; session_ = session; final HandlerRegistrations registrations = new HandlerRegistrations(); registration...
diff --git a/xjc/src/com/sun/tools/xjc/model/CEnumLeafInfo.java b/xjc/src/com/sun/tools/xjc/model/CEnumLeafInfo.java index 5056c08b..e8b9cb1c 100644 --- a/xjc/src/com/sun/tools/xjc/model/CEnumLeafInfo.java +++ b/xjc/src/com/sun/tools/xjc/model/CEnumLeafInfo.java @@ -1,271 +1,271 @@ /* * The contents of this file are...
true
true
public CEnumLeafInfo(Model model, QName typeName, CClassInfoParent container, String shortName, CNonElement base, Collection<CEnumConstant> _members, XSComponent sour...
public CEnumLeafInfo(Model model, QName typeName, CClassInfoParent container, String shortName, CNonElement base, Collection<CEnumConstant> _members, XSComponent sour...
diff --git a/src/java/org/apache/fop/apps/FOURIResolver.java b/src/java/org/apache/fop/apps/FOURIResolver.java index 5b73a66fd..a2b70346f 100644 --- a/src/java/org/apache/fop/apps/FOURIResolver.java +++ b/src/java/org/apache/fop/apps/FOURIResolver.java @@ -1,151 +1,151 @@ /* * Copyright 2005 The Apache Software Foun...
true
true
public Source resolve(String href, String base) throws javax.xml.transform.TransformerException { URL absoluteURL = null; File f = new File(href); if (f.exists()) { try { absoluteURL = f.toURL(); } catch (MalformedURLException mfue) { ...
public Source resolve(String href, String base) throws javax.xml.transform.TransformerException { URL absoluteURL = null; File f = new File(href); if (f.exists()) { try { absoluteURL = f.toURL(); } catch (MalformedURLException mfue) { ...
diff --git a/plugins/org.eclipse.incquery.patternlanguage.emf/src/org/eclipse/incquery/patternlanguage/emf/validation/EMFPatternLanguageJavaValidator.java b/plugins/org.eclipse.incquery.patternlanguage.emf/src/org/eclipse/incquery/patternlanguage/emf/validation/EMFPatternLanguageJavaValidator.java index aa9600c7..3818a...
false
true
public void checkForCartesianProduct(PatternBody patternBody) { List<Variable> variables = patternBody.getVariables(); variables.removeAll(CorePatternLanguageHelper.getUnnamedRunningVariables(patternBody)); UnionFindForVariables justPositiveUnionFindForVariables = new UnionFindForVariables(v...
public void checkForCartesianProduct(PatternBody patternBody) { List<Variable> variables = patternBody.getVariables(); variables.removeAll(CorePatternLanguageHelper.getUnnamedRunningVariables(patternBody)); UnionFindForVariables justPositiveUnionFindForVariables = new UnionFindForVariables(v...
diff --git a/src/it/fahner/mywapi/http/HttpRequest.java b/src/it/fahner/mywapi/http/HttpRequest.java index 37cab23..fe5ff80 100644 --- a/src/it/fahner/mywapi/http/HttpRequest.java +++ b/src/it/fahner/mywapi/http/HttpRequest.java @@ -1,211 +1,213 @@ /* Copyright 2013 FahnerIT Licensed under the Apache License, ...
true
true
public HttpResponse getResponse(int timeout) throws HttpRequestTimeoutException { if (response != null) { return response; } connection.setRequestProperty("Content-Length", "" + Integer.toString(body.getBytes().length)); connection.setConnectTimeout(timeout); try { // Send the request body (if a body con...
public HttpResponse getResponse(int timeout) throws HttpRequestTimeoutException { if (response != null) { return response; } connection.setRequestProperty("Content-Length", "" + Integer.toString(body.getBytes().length)); connection.setConnectTimeout(timeout); try { // Send the request body (if a body con...
diff --git a/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java b/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java index 2dceb691..09467f70 100644 --- a/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java +++ b/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java @@ -1,303...
true
true
public RelationListDialog() { super(tr("Relations"), "relationlist", tr("Open a list of all relations."), Shortcut.registerShortcut("subwindow:relations", tr("Toggle: {0}", tr("Relations")), KeyEvent.VK_R, Shortcut.GROUP_LAYER), 150); // create the list of relations // ...
public RelationListDialog() { super(tr("Relations"), "relationlist", tr("Open a list of all relations."), Shortcut.registerShortcut("subwindow:relations", tr("Toggle: {0}", tr("Relations")), KeyEvent.VK_R, Shortcut.GROUP_LAYER), 150); // create the list of relations // ...
diff --git a/url-shortener-domain/src/test/java/com/repaskys/domain/ShortUrlTest.java b/url-shortener-domain/src/test/java/com/repaskys/domain/ShortUrlTest.java index fad2f9c..2d60076 100644 --- a/url-shortener-domain/src/test/java/com/repaskys/domain/ShortUrlTest.java +++ b/url-shortener-domain/src/test/java/com/repas...
true
true
public void fullUrlCannotBeOnlySpaces() { Set<String> expectedErrors = new HashSet<String>() {{ add("Full URL cannot be blank"); add("Expected a URL (example: http://www.google.com)"); }}; shortUrl.setFullUrl(" "); // this is unordered, so we compare 2 HashSets of only the...
public void fullUrlCannotBeOnlySpaces() { Set<String> expectedErrors = new HashSet<String>() { private static final long serialVersionUID = 6480942588471789481L; { add("Full URL cannot be blank"); add("Expected a URL (example: http://www.google.com)"); } }; shortUrl.setFullUrl(" "); ...
diff --git a/gwtN/src/cz/incad/kramerius/ngwt/client/panels/ImageContainerParent.java b/gwtN/src/cz/incad/kramerius/ngwt/client/panels/ImageContainerParent.java index f9fa64bbe..fdf6795ea 100644 --- a/gwtN/src/cz/incad/kramerius/ngwt/client/panels/ImageContainerParent.java +++ b/gwtN/src/cz/incad/kramerius/ngwt/client/...
true
true
public ImageContainerParent(JsArrayString jsArrayString) { super(); Window.alert("jsArray : "+jsArrayString); this.imageContainer = new ImageContainer(jsArrayString); for (int i = 0; i < jsArrayString.length(); i++) { id2Index.put(jsArrayString.get(i), new Integer(i)); index2Id.put(new Integer(i),jsArr...
public ImageContainerParent(JsArrayString jsArrayString) { super(); if (jsArrayString == null) Window.alert("error in data !"); if (jsArrayString.length() == 0) Window.alert("error in data !"); this.imageContainer = new ImageContainer(jsArrayString); for (int i = 0; i < jsArrayString.length(); i++) { id2...
diff --git a/datasource-spss/src/main/java/org/obiba/magma/datasource/spss/support/SpssVariableTypeMapper.java b/datasource-spss/src/main/java/org/obiba/magma/datasource/spss/support/SpssVariableTypeMapper.java index 58d6b81f..82a8f3cd 100644 --- a/datasource-spss/src/main/java/org/obiba/magma/datasource/spss/support/S...
false
true
private static AbstractValueType mapNumericType(SPSSVariable variable) { switch(getSpssNumericDataType(variable)) { case COMMA: // comma case DOLLAR: // dollar case DOT: // dot case FIXED: // fixed format (default) case SCIENTIFIC: // scientific notation return variable.getD...
private static AbstractValueType mapNumericType(SPSSVariable variable) { switch(getSpssNumericDataType(variable)) { case COMMA: // comma case DOLLAR: // dollar case DOT: // dot case FIXED: // fixed format (default) case SCIENTIFIC: // scientific notation return variable.getD...
diff --git a/src-pos/com/openbravo/pos/scripting/ScriptFactory.java b/src-pos/com/openbravo/pos/scripting/ScriptFactory.java index 8e7b90b..cbae05f 100644 --- a/src-pos/com/openbravo/pos/scripting/ScriptFactory.java +++ b/src-pos/com/openbravo/pos/scripting/ScriptFactory.java @@ -1,51 +1,50 @@ // Openbravo POS is a...
true
true
public static ScriptEngine getScriptEngine(String name) throws ScriptException { if (VELOCITY.equals(name)) { return new ScriptEngineVelocity(); } else if (BEANSHELL.equals(name)) { // return new ScriptEngineBeanshell(); return new ScriptEngineRhino(); } el...
public static ScriptEngine getScriptEngine(String name) throws ScriptException { if (VELOCITY.equals(name)) { return new ScriptEngineVelocity(); } else if (BEANSHELL.equals(name)) { return new ScriptEngineBeanshell(); // } else if (RHINO.equals(name)) { // r...
diff --git a/spring-integration-mail/src/test/java/org/springframework/integration/mail/config/MessageWithContentTypeTests.java b/spring-integration-mail/src/test/java/org/springframework/integration/mail/config/MessageWithContentTypeTests.java index ae220dbc8d..3d7caeb04f 100644 --- a/spring-integration-mail/src/test/...
true
true
public void testMessageConversionWithHtmlAndContentType() throws Exception{ JavaMailSender sender = mock(JavaMailSender.class); MailSendingMessageHandler handler = new MailSendingMessageHandler(sender); StringWriter writer = new StringWriter(); FileReader reader = new FileReader("test.html"); FileCopyUtils....
public void testMessageConversionWithHtmlAndContentType() throws Exception{ JavaMailSender sender = mock(JavaMailSender.class); MailSendingMessageHandler handler = new MailSendingMessageHandler(sender); StringWriter writer = new StringWriter(); FileReader reader = new FileReader("src/test/java/org/springframew...
diff --git a/src/name/gano/file/SaveImageFile.java b/src/name/gano/file/SaveImageFile.java index 93e00c9..fedea10 100644 --- a/src/name/gano/file/SaveImageFile.java +++ b/src/name/gano/file/SaveImageFile.java @@ -1,96 +1,97 @@ /* * SaveImageFile.java * Utility class to help save images to a file -- lets you specif...
true
true
public static Exception saveImage(String format,File file, BufferedImage buff, float compressionQuality) { Iterator iter = ImageIO.getImageWritersByFormatName(format); ImageWriter writer = (ImageWriter)iter.next(); // instantiate an ImageWriteParam object with default co...
public static Exception saveImage(String format,File file, BufferedImage buff, float compressionQuality) { Iterator iter = ImageIO.getImageWritersByFormatName(format); ImageWriter writer = (ImageWriter)iter.next(); // instantiate an ImageWriteParam object with default co...
diff --git a/WEB-INF/src/org/cdlib/xtf/saxonExt/mail/SendElement.java b/WEB-INF/src/org/cdlib/xtf/saxonExt/mail/SendElement.java index c523e97c..ad4ded9a 100644 --- a/WEB-INF/src/org/cdlib/xtf/saxonExt/mail/SendElement.java +++ b/WEB-INF/src/org/cdlib/xtf/saxonExt/mail/SendElement.java @@ -1,218 +1,218 @@ package org....
false
true
public TailCall processLeavingTail(final XPathContext context) throws XPathException { boolean debug = false; try { // Determine the proper protocol String protocol = ""; String useSSL = attribs.get("useSSL").evaluateAsString(context); if (useSSL != nul...
public TailCall processLeavingTail(final XPathContext context) throws XPathException { boolean debug = false; try { // Determine the proper protocol String protocol = ""; String useSSL = attribs.get("useSSL").evaluateAsString(context); if (useSSL != nul...
diff --git a/tools/KeggConverter/src/org/pathvisio/kegg/Converter.java b/tools/KeggConverter/src/org/pathvisio/kegg/Converter.java index 4f1b5308..37abae4b 100644 --- a/tools/KeggConverter/src/org/pathvisio/kegg/Converter.java +++ b/tools/KeggConverter/src/org/pathvisio/kegg/Converter.java @@ -1,378 +1,378 @@ //PathVi...
true
true
public static void main(String[] args) { String filename = "examples/map00031.xml"; String specie = "hsa"; //Some progress logging Logger.log.setStream(System.out); Logger.log.setLogLevel(true, true, true, true, true, true); Logger.log.trace("Start converting pathway " + filename); SAXBuilder builder ...
public static void main(String[] args) { String filename = "examples/map00031.xml"; String specie = "hsa"; //Some progress logging Logger.log.setStream(System.out); Logger.log.setLogLevel(true, true, true, true, true, true); Logger.log.trace("Start converting pathway " + filename); SAXBuilder builder ...
diff --git a/infra/src/de/zib/gndms/infra/action/SetupUpdatingConfigletAction.java b/infra/src/de/zib/gndms/infra/action/SetupUpdatingConfigletAction.java index 829ed35b..918c9267 100644 --- a/infra/src/de/zib/gndms/infra/action/SetupUpdatingConfigletAction.java +++ b/infra/src/de/zib/gndms/infra/action/SetupUpdatingCo...
true
true
protected ConfigActionResult update( ConfigletState state, EntityManager emParam, PrintWriter writerParam ) { ConfigActionResult res = super.update( state, emParam, writerParam ); try { Class clazz = Class.forName( state.getClassName() ); Configlet conf = Configlet.class.cast...
protected ConfigActionResult update( ConfigletState state, EntityManager emParam, PrintWriter writerParam ) { ConfigActionResult res = super.update( state, emParam, writerParam ); try { Class clazz = Class.forName( state.getClassName() ); Configlet conf = Configlet.class.cast...
diff --git a/src/com/xforj/productions/AbstractVariableDeclaration.java b/src/com/xforj/productions/AbstractVariableDeclaration.java index 394e9a8..3812c70 100644 --- a/src/com/xforj/productions/AbstractVariableDeclaration.java +++ b/src/com/xforj/productions/AbstractVariableDeclaration.java @@ -1,84 +1,84 @@ /* * C...
false
true
public final void execute(CharWrapper characters, ProductionContext context) throws Exception { characters.removeSpace(); String extraExcMsg=""; if(!hasValue){ Matcher match = characters.match(getPattern()); if(match.find()){ characters.shift(match.group(1).length());...
public final void execute(CharWrapper characters, ProductionContext context) throws Exception { characters.removeSpace(); String extraExcMsg=""; if(!hasValue){ hasValue=true; Matcher match = characters.match(getPattern()); if(match.find()){ characters.shift(m...
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/recovery/NdbRMStateStore.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server...
false
true
public NdbRMState() { appState = new HashMap<ApplicationId, ApplicationState>(); QueryDomainType<NdbApplicationStateCJ> domainApp; QueryDomainType<NdbAttemptStateCJ> domainAttempt; Query<NdbApplicationStateCJ> queryApp; Query<NdbAttemptStateCJ> queryAt...
public NdbRMState() { appState = new HashMap<ApplicationId, ApplicationState>(); QueryDomainType<NdbApplicationStateCJ> domainApp; QueryDomainType<NdbAttemptStateCJ> domainAttempt; Query<NdbApplicationStateCJ> queryApp; Query<NdbAttemptStateCJ> queryAt...
diff --git a/src/java/fedora/server/access/dissemination/DatastreamResolverServlet.java b/src/java/fedora/server/access/dissemination/DatastreamResolverServlet.java index ee19e342d..25e4c06fd 100755 --- a/src/java/fedora/server/access/dissemination/DatastreamResolverServlet.java +++ b/src/java/fedora/server/access/diss...
false
true
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String id = null; String dsPhysicalLocation = null; String dsControlGroupType = null; String user = null; String pass = null; MIMETypedStream mimeTypedStream = null; DisseminationService ...
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String id = null; String dsPhysicalLocation = null; String dsControlGroupType = null; String user = null; String pass = null; MIMETypedStream mimeTypedStream = null; DisseminationService ...
diff --git a/src/com/willluongo/asbestos/gui/AsbestosWindow.java b/src/com/willluongo/asbestos/gui/AsbestosWindow.java index 9048fd0..a79d2a3 100644 --- a/src/com/willluongo/asbestos/gui/AsbestosWindow.java +++ b/src/com/willluongo/asbestos/gui/AsbestosWindow.java @@ -1,199 +1,200 @@ package com.willluongo.asbestos.gu...
true
true
protected void createContents() { try { users = campfire.users(); log.debug(users); room = campfire.rooms().get(2); for (User user : users) { log.debug(user.name); log.debug(user.id); userIds.add(user.id); } } catch (IOException e1) { // TODO Auto-generated catch block e1.print...
protected void createContents() { try { users = campfire.users(); log.debug(users); room = campfire.rooms().get(2); room.join(); for (User user : users) { log.debug(user.name); log.debug(user.id); userIds.add(user.id); } } catch (IOException e1) { // TODO Auto-generated catch b...
diff --git a/compass2/core/src/main/java/no/ovitas/compass2/config/KnowledgeBases.java b/compass2/core/src/main/java/no/ovitas/compass2/config/KnowledgeBases.java index 663e7ea..5d0a316 100644 --- a/compass2/core/src/main/java/no/ovitas/compass2/config/KnowledgeBases.java +++ b/compass2/core/src/main/java/no/ovitas/com...
true
true
public KnowledgeBase getKnowledgeBase(String name) { if (name != null && elements.containsKey(name)) { return elements.get(name); } else { logger.error("The " + name + " KnowledgeBase is not exists!"); return null; } }
public KnowledgeBase getKnowledgeBase(String name) { if (name != null && elements.containsKey(name)) { return elements.get(name); } else { logger.error("The " + name + " KnowledgeBase is not exist!"); return null; } }
diff --git a/JavaSource/org/unitime/timetable/action/ChameleonAction.java b/JavaSource/org/unitime/timetable/action/ChameleonAction.java index 7e3e84c7..b4886967 100644 --- a/JavaSource/org/unitime/timetable/action/ChameleonAction.java +++ b/JavaSource/org/unitime/timetable/action/ChameleonAction.java @@ -1,182 +1,182 ...
true
true
public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { HttpSession httpSession = request.getSession(); if(!Web.isLoggedIn( httpSession ) || ( !Web.isAdmin(httpSes...
public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { HttpSession httpSession = request.getSession(); if(!Web.isLoggedIn( httpSession ) || ( !Web.isAdmin(httpSes...
diff --git a/src/bspkrs/mmv/version/AppVersionChecker.java b/src/bspkrs/mmv/version/AppVersionChecker.java index 02b0c9c..fbc4020 100644 --- a/src/bspkrs/mmv/version/AppVersionChecker.java +++ b/src/bspkrs/mmv/version/AppVersionChecker.java @@ -1,157 +1,160 @@ /* * Copyright (C) 2013 bspkrs * * Permission is he...
true
true
public AppVersionChecker(String appName, String oldVer, String versionURL, String updateURL, String[] logMsg, String[] dialogMsg, int timeoutMS) { this.appName = appName; this.oldVer = oldVer; this.updateURL = updateURL; this.logMsg = logMsg; this.dialogMsg = dialogMsg; ...
public AppVersionChecker(String appName, String oldVer, String versionURL, String updateURL, String[] logMsg, String[] dialogMsg, int timeoutMS) { this.appName = appName; this.oldVer = oldVer; this.updateURL = updateURL; this.logMsg = logMsg; this.dialogMsg = dialogMsg; ...
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tests/src/org/eclipse/tcf/te/tests/tcf/processes/model/ProcessModelTestCase.java b/target_explorer/plugins/org.eclipse.tcf.te.tests/src/org/eclipse/tcf/te/tests/tcf/processes/model/ProcessModelTestCase.java index 72ae606e7..48ff6a3cc 100644 --- a/target_explorer/p...
true
true
public void testProcessModel() { assertNotNull("Test peer missing.", peer); //$NON-NLS-1$ assertNotNull("Test peer model missing.", peerModel); //$NON-NLS-1$ // Get the process model for the test peer model final IRuntimeModel model = ModelManager.getRuntimeModel(peerModel); assertNotNull("Failed to get run...
public void testProcessModel() { assertNotNull("Test peer missing.", peer); //$NON-NLS-1$ assertNotNull("Test peer model missing.", peerModel); //$NON-NLS-1$ // Get the process model for the test peer model final IRuntimeModel model = ModelManager.getRuntimeModel(peerModel); assertNotNull("Failed to get run...
diff --git a/src/main/java/org/jbei/ice/lib/bulkupload/BulkUploadController.java b/src/main/java/org/jbei/ice/lib/bulkupload/BulkUploadController.java index e52a108e6..0dcc3a682 100755 --- a/src/main/java/org/jbei/ice/lib/bulkupload/BulkUploadController.java +++ b/src/main/java/org/jbei/ice/lib/bulkupload/BulkUploadCon...
false
true
public BulkUploadAutoUpdate autoUpdateBulkUpload(Account account, BulkUploadAutoUpdate autoUpdate, EntryAddType addType) throws ControllerException { BulkUpload draft = null; if (autoUpdate.getEditMode() != EditMode.BULK_EDIT) { // deal with bulk upload try { ...
public BulkUploadAutoUpdate autoUpdateBulkUpload(Account account, BulkUploadAutoUpdate autoUpdate, EntryAddType addType) throws ControllerException { BulkUpload draft = null; if (autoUpdate.getEditMode() != EditMode.BULK_EDIT) { // deal with bulk upload try { ...
diff --git a/core/plugins/org.eclipse.dltk.core/search/org/eclipse/dltk/core/search/indexing/core/ExternalProjectFragmentRequest.java b/core/plugins/org.eclipse.dltk.core/search/org/eclipse/dltk/core/search/indexing/core/ExternalProjectFragmentRequest.java index d75572be4..21431d30f 100644 --- a/core/plugins/org.eclips...
true
true
protected void run() throws CoreException, IOException { IEnvironment environment = EnvironmentManager.getEnvironment(fragment .getScriptProject()); if (environment == null || !environment.connect()) { return; } final Set<ISourceModule> modules = getExternalSourceModules(); final Index index = getInde...
protected void run() throws CoreException, IOException { IEnvironment environment = EnvironmentManager.getEnvironment(fragment .getScriptProject()); if (environment == null || !environment.connect()) { return; } final Set<ISourceModule> modules = getExternalSourceModules(); final Index index = getInde...
diff --git a/src/java/nl/b3p/viewer/admin/stripes/ApplicationStartMapActionBean.java b/src/java/nl/b3p/viewer/admin/stripes/ApplicationStartMapActionBean.java index 25659bd4b..e42ed3b99 100644 --- a/src/java/nl/b3p/viewer/admin/stripes/ApplicationStartMapActionBean.java +++ b/src/java/nl/b3p/viewer/admin/stripes/Applic...
false
true
public Resolution save() { rootlevel = application.getRoot(); List selectedMaps = getSelectedLayers(rootlevel); if(selectedMaps != null){ for (Iterator it = selectedMaps.iterator(); it.hasNext();) { Object map = it.next(); if(map instanceo...
public Resolution save() { rootlevel = application.getRoot(); List selectedMaps = getSelectedLayers(rootlevel); if(selectedMaps != null){ for (Iterator it = selectedMaps.iterator(); it.hasNext();) { Object map = it.next(); if(map instanceo...
diff --git a/src/server/Game.java b/src/server/Game.java index 4fe72b8..0a7d247 100644 --- a/src/server/Game.java +++ b/src/server/Game.java @@ -1,164 +1,167 @@ package server; import commonlib.D2vector; import commonlib.GameSituationSerialized; import commonlib.Random_2Dcoord_generator; import commonlib.gameObj...
false
true
void start() { System.out.println("Starting game server"); try { gameServer = new GameServer(this); } catch (IOException e) { e.printStackTrace(); } mygamemap = new game_map(1000,1000); mygamemap.initialize_map(0); ...
void start() { System.out.println("Starting game server"); try { gameServer = new GameServer(this); } catch (IOException e) { e.printStackTrace(); } mygamemap = new game_map(Map.WIDTH,Map.HEIGHT); mygamemap.initiali...
diff --git a/end-to-end-tests/src/test/java/fi/jumi/test/AppRunner.java b/end-to-end-tests/src/test/java/fi/jumi/test/AppRunner.java index df5d8155..6d5ce1a6 100644 --- a/end-to-end-tests/src/test/java/fi/jumi/test/AppRunner.java +++ b/end-to-end-tests/src/test/java/fi/jumi/test/AppRunner.java @@ -1,287 +1,287 @@ // C...
true
true
private JumiLauncher createLauncher() { class CustomJumiLauncherBuilder extends JumiLauncherBuilder { @Override protected ProcessStarter createProcessStarter() { return processStarter; } @Override protected NetworkServer createNet...
private JumiLauncher createLauncher() { class CustomJumiLauncherBuilder extends JumiLauncherBuilder { @Override protected ProcessStarter createProcessStarter() { return processStarter; } @Override protected NetworkServer createNet...
diff --git a/src/java/org/jamwiki/utils/ImageUtil.java b/src/java/org/jamwiki/utils/ImageUtil.java index 6ccb503b..04b5948b 100644 --- a/src/java/org/jamwiki/utils/ImageUtil.java +++ b/src/java/org/jamwiki/utils/ImageUtil.java @@ -1,187 +1,188 @@ /** * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, version 2....
true
true
public static BufferedImage resizeImage(WikiImage wikiImage, int maxDimension) throws Exception { File imageFile = new File(Environment.getValue(Environment.PROP_FILE_DIR_FULL_PATH), wikiImage.getUrl()); BufferedImage original = ImageUtil.loadImage(imageFile); maxDimension = calculateImageIncrement(maxDimension)...
public static BufferedImage resizeImage(WikiImage wikiImage, int maxDimension) throws Exception { File imageFile = new File(Environment.getValue(Environment.PROP_FILE_DIR_FULL_PATH), wikiImage.getUrl()); BufferedImage original = ImageUtil.loadImage(imageFile); maxDimension = calculateImageIncrement(maxDimension)...
diff --git a/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/EclipseClassLoader.java b/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/EclipseClassLoader.java index 9f3cc66c..830f4289 100644 --- a/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runt...
false
true
public Class findLocalClass(String name) throws ClassNotFoundException { // See if we need to do autoactivation. We don't if autoActivation is turned off // or if we have already activated this bundle. if (EclipseAdaptor.MONITOR_CLASSES) ClassloaderStats.startLoadingClass(getClassloaderId(), name); boolean...
public Class findLocalClass(String name) throws ClassNotFoundException { // See if we need to do autoactivation. We don't if autoActivation is turned off // or if we have already activated this bundle. if (EclipseAdaptor.MONITOR_CLASSES) ClassloaderStats.startLoadingClass(getClassloaderId(), name); boolean...
diff --git a/rpmstubby/org.eclipse.linuxtools.packaging.rpmstubby/src/org/eclipse/linuxtools/rpmstubby/StubbyGenerator.java b/rpmstubby/org.eclipse.linuxtools.packaging.rpmstubby/src/org/eclipse/linuxtools/rpmstubby/StubbyGenerator.java index 069cf8020..12a7aeba3 100644 --- a/rpmstubby/org.eclipse.linuxtools.packaging....
true
true
public String generateSpecfile() { StringBuffer buffer = new StringBuffer(); String simplePackageName = getPackageName(mainPackage.getName()); String packageName = "eclipse-" + simplePackageName; if (withGCJSupport) buffer.append("%define gcj_support 1\n"); if (withFetchScript) buffer.append("%defi...
public String generateSpecfile() { StringBuffer buffer = new StringBuffer(); String simplePackageName = getPackageName(mainPackage.getName()); String packageName = "eclipse-" + simplePackageName; if (withGCJSupport) buffer.append("%define gcj_support 1\n"); if (withFetchScript) buffer.append("%defi...
diff --git a/Pineapple/src/com/example/pineapple/Protagonist.java b/Pineapple/src/com/example/pineapple/Protagonist.java index a83f057..59f80b2 100644 --- a/Pineapple/src/com/example/pineapple/Protagonist.java +++ b/Pineapple/src/com/example/pineapple/Protagonist.java @@ -1,243 +1,244 @@ package com.example.pineapple;...
false
true
public void checkPlatform(ArrayList<Platform> al) { for (int i = 0; i < al.size(); i++) { if(al.get(i).spans(this.getXPos())) { if(this.getYPos() - this.getHeight()/2 > al.get(i).getLowerYFromX(this.getXPos())) { this.setYVel(-this.getYVel()); this.setYAcc(0); } if(this.getYPos() + this.getH...
public void checkPlatform(ArrayList<Platform> al) { for (int i = 0; i < al.size(); i++) { if(al.get(i).spans(this.getXPos())) { //if head is in platform if(this.getYPos() - this.getHeight()/2 < al.get(i).getLowerYFromX(this.getXPos()) && this.getYPos() - this.getHeight()/2 > al.get(i).getUpperYFromX(this....
diff --git a/src/haven/RootWidget.java b/src/haven/RootWidget.java index 058ef5f6..bcacade2 100644 --- a/src/haven/RootWidget.java +++ b/src/haven/RootWidget.java @@ -1,71 +1,71 @@ /* * This file is part of the Haven & Hearth game client. * Copyright (C) 2009 Fredrik Tolf <fredrik@dolda2000.com>, and * ...
true
true
public boolean globtype(char key, KeyEvent ev) { if(!super.globtype(key, ev)) { if(Config.profile && (key == '`')) { new Profwnd(findchild(SlenHud.class), gprof, "Glob prof"); } else if(Config.profile && (key == '!')) { entercmd(); } else if(key != 0) { wdgmsg("gk", (int)key); } } retur...
public boolean globtype(char key, KeyEvent ev) { if(!super.globtype(key, ev)) { if(Config.profile && (key == '`')) { new Profwnd(findchild(SlenHud.class), gprof, "Glob prof"); } else if(key == ':') { entercmd(); } else if(key != 0) { wdgmsg("gk", (int)key); } } return(true); }
diff --git a/remote/src/main/java/ch/ethz/iks/r_osgi/impl/ChannelEndpointImpl.java b/remote/src/main/java/ch/ethz/iks/r_osgi/impl/ChannelEndpointImpl.java index 6e87002..380ba33 100644 --- a/remote/src/main/java/ch/ethz/iks/r_osgi/impl/ChannelEndpointImpl.java +++ b/remote/src/main/java/ch/ethz/iks/r_osgi/impl/ChannelE...
true
true
private RemoteOSGiMessage handleMessage(final RemoteOSGiMessage msg) throws RemoteOSGiException { switch (msg.getFuncID()) { // requests case RemoteOSGiMessageImpl.LEASE: { final LeaseMessage lease = (LeaseMessage) msg; updateStatements(lease); if (lease.getXID() == 0) { return null; } /...
private RemoteOSGiMessage handleMessage(final RemoteOSGiMessage msg) throws RemoteOSGiException { switch (msg.getFuncID()) { // requests case RemoteOSGiMessageImpl.LEASE: { final LeaseMessage lease = (LeaseMessage) msg; updateStatements(lease); if (lease.getXID() == 0) { return null; } r...
diff --git a/res-pos/src/main/java/com/res/controller/MenuController.java b/res-pos/src/main/java/com/res/controller/MenuController.java index 01f5624..112efa7 100644 --- a/res-pos/src/main/java/com/res/controller/MenuController.java +++ b/res-pos/src/main/java/com/res/controller/MenuController.java @@ -1,54 +1,54 @@ ...
true
true
public ModelAndView showMenu(HttpServletRequest req, HttpServletResponse res) throws ServiceException{ HttpSession session = req.getSession(); String resId = (String)session.getAttribute("restaurantId"); if(StringUtils.isEmpty(resId)){ throw new ServiceException(messageLoader.getMessage("restaurantid.not.s...
public ModelAndView showMenu(HttpServletRequest req, HttpServletResponse res) throws ServiceException{ HttpSession session = req.getSession(); String resId = (String)session.getAttribute("restaurantId"); if(StringUtils.isEmpty(resId)){ throw new ServiceException(messageLoader.getMessage("restaurantid.not.s...
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java index 5a1eaf81..f849cafa 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java +++ b/packages/SystemUI/src/com/a...
false
true
private QuickSettingsTileView getTile(int tile, ViewGroup parent, LayoutInflater inflater) { QuickSettingsTileView quick = null; switch (tile) { case USER_TILE: quick = (QuickSettingsTileView) inflater.inflate(R.layout.quick_settings_tile, parent, ...
private QuickSettingsTileView getTile(int tile, ViewGroup parent, LayoutInflater inflater) { QuickSettingsTileView quick = null; switch (tile) { case USER_TILE: quick = (QuickSettingsTileView) inflater.inflate(R.layout.quick_settings_tile, parent, ...
diff --git a/src/main/java/at/ac/tuwien/sepm/ui/startUp/First.java b/src/main/java/at/ac/tuwien/sepm/ui/startUp/First.java index 6c0eb65..9fbf0f4 100644 --- a/src/main/java/at/ac/tuwien/sepm/ui/startUp/First.java +++ b/src/main/java/at/ac/tuwien/sepm/ui/startUp/First.java @@ -1,178 +1,178 @@ package at.ac.tuwien.sepm....
false
true
public void subInit(){ tissUsername.setText(getStartUp().propertyService.getProperty("user.user","")); tissPassword.setText(getStartUp().propertyService.getProperty("user.password","")); studyDrop = new WideComboBox(); studyDrop.addItem(new CurriculumContainer()); try { ...
public void subInit(){ tissUsername.setText(getStartUp().propertyService.getProperty("tiss.user","")); tissPassword.setText(getStartUp().propertyService.getProperty("tiss.password","")); studyDrop = new WideComboBox(); studyDrop.addItem(new CurriculumContainer()); try { ...
diff --git a/src/net/armooo/locationlog/LocationActivity.java b/src/net/armooo/locationlog/LocationActivity.java index 684333e..dc7fabf 100644 --- a/src/net/armooo/locationlog/LocationActivity.java +++ b/src/net/armooo/locationlog/LocationActivity.java @@ -1,177 +1,180 @@ package net.armooo.locationlog; import net....
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); db = new LocationDatabase(this); best_location_proxy = new BestLocationProxy(this); if (savedInstanceState != null) { location_id = savedInstanceState.getLong(LOCATION_ID); } Intent intent = getIntent(); locati...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); db = new LocationDatabase(this); best_location_proxy = new BestLocationProxy(this); if (savedInstanceState != null) { location_id = savedInstanceState.getLong(LOCATION_ID); } Intent intent = getIntent(); locati...
diff --git a/core/src/main/java/org/mule/galaxy/config/CustomListenersBeanDefinitionParser.java b/core/src/main/java/org/mule/galaxy/config/CustomListenersBeanDefinitionParser.java index b660492f..171b8fdf 100644 --- a/core/src/main/java/org/mule/galaxy/config/CustomListenersBeanDefinitionParser.java +++ b/core/src/mai...
false
true
protected AbstractBeanDefinition parseInternal(final Element element, final ParserContext parserContext) { // this is the bean peforming the registration of custom listeners BeanDefinitionBuilder listenerRegBean = BeanDefinitionBuilder.rootBeanDefinition(CustomListenersBean.class); Element e...
protected AbstractBeanDefinition parseInternal(final Element element, final ParserContext parserContext) { // this is the bean peforming the registration of custom listeners BeanDefinitionBuilder listenerRegBean = BeanDefinitionBuilder.rootBeanDefinition(CustomListenersBean.class); Element e...
diff --git a/src/org/geometerplus/zlibrary/core/util/RationalNumber.java b/src/org/geometerplus/zlibrary/core/util/RationalNumber.java index 3900ce64e..7ea99be5c 100644 --- a/src/org/geometerplus/zlibrary/core/util/RationalNumber.java +++ b/src/org/geometerplus/zlibrary/core/util/RationalNumber.java @@ -1,37 +1,37 @@ ...
true
true
public static RationalNumber create(long numerator, long denominator) { if (denominator == null) { return null; } return new RationalNumber(numerator, denominator); }
public static RationalNumber create(long numerator, long denominator) { if (denominator == 0) { return null; } return new RationalNumber(numerator, denominator); }
diff --git a/dev/core/src/com/google/gwt/dev/jdt/TypeOracleBuilder.java b/dev/core/src/com/google/gwt/dev/jdt/TypeOracleBuilder.java index b8b813678..12056ea48 100644 --- a/dev/core/src/com/google/gwt/dev/jdt/TypeOracleBuilder.java +++ b/dev/core/src/com/google/gwt/dev/jdt/TypeOracleBuilder.java @@ -1,1678 +1,1677 @@ ...
true
true
private JType resolveType(TreeLogger logger, TypeBinding binding) { TypeOracle oracle = cacheManager.getTypeOracle(); // Check for primitives. // if (binding instanceof BaseTypeBinding) { switch (binding.id) { case TypeIds.T_boolean: return JPrimitiveType.BOOLEAN; case ...
private JType resolveType(TreeLogger logger, TypeBinding binding) { TypeOracle oracle = cacheManager.getTypeOracle(); // Check for primitives. // if (binding instanceof BaseTypeBinding) { switch (binding.id) { case TypeIds.T_boolean: return JPrimitiveType.BOOLEAN; case ...
diff --git a/jsword/src/main/java/org/crosswire/jsword/book/filter/gbf/GBFTagBuilders.java b/jsword/src/main/java/org/crosswire/jsword/book/filter/gbf/GBFTagBuilders.java index 01f7daef..44f14135 100644 --- a/jsword/src/main/java/org/crosswire/jsword/book/filter/gbf/GBFTagBuilders.java +++ b/jsword/src/main/java/org/cr...
false
true
public static Tag getTag(Book book, Key key, String name) { Tag tag = null; int length = name.length(); if (length > 0) { // Only the first two letters of the tag are indicative of the tag // The rest, if present, is data. TagBuilder builder = ...
public static Tag getTag(Book book, Key key, String name) { Tag tag = null; int length = name.length(); if (length > 0) { // Only the first two letters of the tag are indicative of the tag // The rest, if present, is data. TagBuilder builder = ...
diff --git a/ExtractFlexMetdata.java b/ExtractFlexMetdata.java index 185af55..46969ad 100644 --- a/ExtractFlexMetdata.java +++ b/ExtractFlexMetdata.java @@ -1,36 +1,36 @@ // // ExtractFlexMetdata.java // import java.io.File; import java.io.FileWriter; import loci.common.RandomAccessInputStream; import loci.f...
true
true
public static void main(String[] args) throws Exception { File dir; if (args.length != 1 || !(dir=new File(args[0])).canRead()) { System.out.println("Usage: java ExtractFlexMetdata dir"); return; } for(File file:dir.listFiles()) { if(file.getName().endsWith(".flex"));{ String i...
public static void main(String[] args) throws Exception { File dir; if (args.length != 1 || !(dir=new File(args[0])).canRead()) { System.out.println("Usage: java ExtractFlexMetdata dir"); return; } for(File file:dir.listFiles()) { if(file.getName().endsWith(".flex")){ String id...
diff --git a/src/test/java/com/wikia/webdriver/TestCases/SignUpTests/SignUpTests_account_creation.java b/src/test/java/com/wikia/webdriver/TestCases/SignUpTests/SignUpTests_account_creation.java index 861ca48..a1864ff 100644 --- a/src/test/java/com/wikia/webdriver/TestCases/SignUpTests/SignUpTests_account_creation.java...
true
true
public void SignUp_account_creation_TC_007_forgotYourPassword() { userNameEmail = Properties.emailQaart3; passwordEmail = Properties.emailPasswordQaart3; SignUpPageObject signUp = new SignUpPageObject(driver); timeStamp = signUp.getTimeStamp(); userName = Properties.userName+timeStamp; password = Propert...
public void SignUp_account_creation_TC_007_forgotYourPassword() { userNameEmail = Properties.emailQaart3; passwordEmail = Properties.emailPasswordQaart3; SignUpPageObject signUp = new SignUpPageObject(driver); timeStamp = signUp.getTimeStamp(); userName = Properties.userName+timeStamp; password = Propert...
diff --git a/jkit/compiler/ClassLoader.java b/jkit/compiler/ClassLoader.java index c2c9d2c..131147c 100755 --- a/jkit/compiler/ClassLoader.java +++ b/jkit/compiler/ClassLoader.java @@ -1,615 +1,615 @@ package jkit.compiler; import java.util.*; import java.util.jar.JarEntry; import java.util.jar.JarFile; import j...
true
true
private Clazz loadClass(String name, PackageInfo pkgInfo) { long time = System.currentTimeMillis(); String jarname = name.replace('.','/') + ".class"; String filename = name.replace('.',File.separatorChar); // The srcFilename gives the filename of the source file. So, if the // class we're looking fo...
private Clazz loadClass(String name, PackageInfo pkgInfo) { long time = System.currentTimeMillis(); String jarname = name.replace('.','/') + ".class"; String filename = name.replace('.',File.separatorChar); // The srcFilename gives the filename of the source file. So, if the // class we're looking fo...
diff --git a/code/android/src/main/java/no/kantega/android/afp/controllers/Transactions.java b/code/android/src/main/java/no/kantega/android/afp/controllers/Transactions.java index b2aae21..cba0500 100644 --- a/code/android/src/main/java/no/kantega/android/afp/controllers/Transactions.java +++ b/code/android/src/main/j...
true
true
private double getAvgDay() { try { GenericRawResults<String[]> rawResults = transactionDao. queryRaw("SELECT accountingDate FROM transactions ORDER BY accountingDate ASC LIMIT 1"); final List<String[]> results = rawResults.getResults(); if (results.siz...
private double getAvgDay() { try { GenericRawResults<String[]> rawResults = transactionDao. queryRaw("SELECT accountingDate FROM transactions ORDER BY accountingDate ASC LIMIT 1"); final List<String[]> results = rawResults.getResults(); if (results.siz...
diff --git a/test/unit/org/apache/cassandra/db/TimeSortTest.java b/test/unit/org/apache/cassandra/db/TimeSortTest.java index c96d1d51..3731d284 100644 --- a/test/unit/org/apache/cassandra/db/TimeSortTest.java +++ b/test/unit/org/apache/cassandra/db/TimeSortTest.java @@ -1,112 +1,110 @@ /* * Licensed to the Apache Sof...
false
true
public void testTimeSort() throws IOException, ExecutionException, InterruptedException { Table table = Table.open("Table1"); for (int i = 900; i < 1000; ++i) { String key = Integer.toString(i); RowMutation rm; for (int j = 0; j < 8; ++j) ...
public void testTimeSort() throws IOException, ExecutionException, InterruptedException { Table table = Table.open("Table1"); for (int i = 900; i < 1000; ++i) { String key = Integer.toString(i); RowMutation rm = new RowMutation("Table1", key); for (in...
diff --git a/orbisgis-view/src/main/java/org/orbisgis/view/map/MapStatusBar.java b/orbisgis-view/src/main/java/org/orbisgis/view/map/MapStatusBar.java index 47ae48c70..fd93334c8 100644 --- a/orbisgis-view/src/main/java/org/orbisgis/view/map/MapStatusBar.java +++ b/orbisgis-view/src/main/java/org/orbisgis/view/map/MapSt...
true
true
public boolean verify(JComponent input) { if (input instanceof JTextField) { LOGGER.debug("Verify scale user input.."); JTextField ftf = (JTextField) input; String text = ftf.getText()...
public boolean verify(JComponent input) { if (input instanceof JTextField) { LOGGER.debug("Verify scale user input.."); JTextField ftf = (JTextField) input; String text = ftf.getText()...
diff --git a/src/fr/utc/nf28/moka/agents/itemcreation/ItemCreationAgent.java b/src/fr/utc/nf28/moka/agents/itemcreation/ItemCreationAgent.java index e2cc58d..9734fdb 100644 --- a/src/fr/utc/nf28/moka/agents/itemcreation/ItemCreationAgent.java +++ b/src/fr/utc/nf28/moka/agents/itemcreation/ItemCreationAgent.java @@ -1,1...
true
true
public void create(final String type, final ACLMessage response, final AID creator) throws IOException { MokaItem newItem = null; final MokaEnvironment environment = getEnvironment(); final int newItemId = environment.generateNewId(); if (type.equals("UML")) { newItem = new UmlClass("MyClass", 200, 350, "U...
public void create(final String type, final ACLMessage response, final AID creator) throws IOException { MokaItem newItem = null; final MokaEnvironment environment = getEnvironment(); final int newItemId = environment.generateNewId(); if (type.equals("UML")) { newItem = new UmlClass("MyClass", 200, 350, "U...
diff --git a/src/main/java/com/almuradev/sprout/plugin/task/GrowthTask.java b/src/main/java/com/almuradev/sprout/plugin/task/GrowthTask.java index 9eff8df..0e21c76 100644 --- a/src/main/java/com/almuradev/sprout/plugin/task/GrowthTask.java +++ b/src/main/java/com/almuradev/sprout/plugin/task/GrowthTask.java @@ -1,177 +...
false
true
public void run() { final TInt21TripleObjectHashMap<?> worldRegistry = this.worldRegistry.get(world); if (worldRegistry == null) { return; } //First tick if (pastTime == 0) { pastTime = System.currentTimeMillis() / 1000; } final long localTime = System.currentTimeMillis() / 1000; final long delta...
public void run() { final TInt21TripleObjectHashMap<?> worldRegistry = this.worldRegistry.get(world); if (worldRegistry == null) { return; } //First tick if (pastTime == 0) { pastTime = System.currentTimeMillis() / 1000; } final long localTime = System.currentTimeMillis() / 1000; final long delta...
diff --git a/src/simple/home/jtbuaa/simpleHome.java b/src/simple/home/jtbuaa/simpleHome.java index f44a4e5..4795ca8 100755 --- a/src/simple/home/jtbuaa/simpleHome.java +++ b/src/simple/home/jtbuaa/simpleHome.java @@ -1,1415 +1,1415 @@ package simple.home.jtbuaa; import java.io.EOFException; import java.io.File; i...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); myPackageName = this.getPackageName(); pm = getPackageManager(); version = util.getVersion(this); try { getPackageSizeInfo = PackageManager.class.getMethod( "getPackageSiz...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); myPackageName = this.getPackageName(); pm = getPackageManager(); version = util.getVersion(this); try { getPackageSizeInfo = PackageManager.class.getMethod( "getPackageSiz...
diff --git a/astrid/plugin-src/com/todoroo/astrid/gtasks/api/GtasksService.java b/astrid/plugin-src/com/todoroo/astrid/gtasks/api/GtasksService.java index 550e7d570..fbd250bd7 100644 --- a/astrid/plugin-src/com/todoroo/astrid/gtasks/api/GtasksService.java +++ b/astrid/plugin-src/com/todoroo/astrid/gtasks/api/GtasksServ...
true
true
private synchronized void handleException(IOException e) throws IOException { if (e instanceof HttpResponseException) { HttpResponseException h = (HttpResponseException)e; int statusCode = h.getResponse().getStatusCode(); if (statusCode == 401 || statusCode == 403) { ...
private synchronized void handleException(IOException e) throws IOException { if (e instanceof HttpResponseException) { HttpResponseException h = (HttpResponseException)e; int statusCode = h.getResponse().getStatusCode(); if (statusCode == 401 || statusCode == 403) { ...
diff --git a/src/be/ibridge/kettle/trans/step/xmloutput/XMLOutputDialog.java b/src/be/ibridge/kettle/trans/step/xmloutput/XMLOutputDialog.java index 8ba45524..f1b167b7 100644 --- a/src/be/ibridge/kettle/trans/step/xmloutput/XMLOutputDialog.java +++ b/src/be/ibridge/kettle/trans/step/xmloutput/XMLOutputDialog.java @@ -1...
false
true
public String open() { Shell parent = getParent(); Display display = parent.getDisplay(); shell = new Shell(parent, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.MAX | SWT.MIN); props.setLook(shell); ModifyListener lsMod = new ModifyListener() { public void modifyText(ModifyEvent e) { inpu...
public String open() { Shell parent = getParent(); Display display = parent.getDisplay(); shell = new Shell(parent, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.MAX | SWT.MIN); props.setLook(shell); ModifyListener lsMod = new ModifyListener() { public void modifyText(ModifyEvent e) { inpu...
diff --git a/KalenderProsjekt/src/framePackage/SharedCalendarView.java b/KalenderProsjekt/src/framePackage/SharedCalendarView.java index 56baf94..bb96d41 100644 --- a/KalenderProsjekt/src/framePackage/SharedCalendarView.java +++ b/KalenderProsjekt/src/framePackage/SharedCalendarView.java @@ -1,79 +1,80 @@ package fram...
false
true
private void setCheckBox(List<Person> list){ GridBagConstraints c = new GridBagConstraints(); c.anchor = GridBagConstraints.LINE_START; for(int i = 0; i < list.size(); i++){ personList.add(list.get(i)); checkBox = new JCheckBox(list.get(i).getFirstName() + list.get(i).getLastName()); checkBox.setBackgro...
private void setCheckBox(List<Person> list){ GridBagConstraints c = new GridBagConstraints(); c.anchor = GridBagConstraints.LINE_START; for(int i = 0; i < list.size(); i++){ personList.add(list.get(i)); checkBox = new JCheckBox(list.get(i).getFirstName() + list.get(i).getLastName()); checkBox.setForegro...
diff --git a/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/ast/databuilder/statement/LocalVariableDeclarationStatementBuilder.java b/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/ast/databuilder/statement/LocalVariableDeclarationStatementBuilder.java index ff5c15af..927ac4f0 100644 --- a/main/src/jp/ac/osaka_u/ist/...
true
true
private UnresolvedVariableDeclarationStatementInfo buildVariableDeclarationStatement( final UnresolvedLocalVariableUsageInfo declarationUsage, final UnresolvedExpressionInfo<? extends ExpressionInfo> initializerExpression, final int fromLine, final int fromColumn, final int toLin...
private UnresolvedVariableDeclarationStatementInfo buildVariableDeclarationStatement( final UnresolvedLocalVariableUsageInfo declarationUsage, final UnresolvedExpressionInfo<? extends ExpressionInfo> initializerExpression, final int fromLine, final int fromColumn, final int toLin...
diff --git a/oak-core/src/main/java/org/apache/jackrabbit/oak/namepath/GlobalNameMapper.java b/oak-core/src/main/java/org/apache/jackrabbit/oak/namepath/GlobalNameMapper.java index 6e81cc7fcc..2c0e6682bf 100644 --- a/oak-core/src/main/java/org/apache/jackrabbit/oak/namepath/GlobalNameMapper.java +++ b/oak-core/src/main...
false
true
protected String getOakNameFromExpanded(String expandedName) { checkArgument(expandedName.startsWith("{")); int brace = expandedName.indexOf('}', 1); if (brace > 0) { String uri = expandedName.substring(1, brace); if (uri.isEmpty()) { return expandedN...
protected String getOakNameFromExpanded(String expandedName) { checkArgument(expandedName.startsWith("{")); int brace = expandedName.indexOf('}', 1); if (brace > 0) { String uri = expandedName.substring(1, brace); if (uri.isEmpty()) { return expandedN...
diff --git a/modules/maven-plugin/src/main/java/org/cipango/plugin/CipangoPluginSipAppContext.java b/modules/maven-plugin/src/main/java/org/cipango/plugin/CipangoPluginSipAppContext.java index 3e2bb83..8a4f671 100644 --- a/modules/maven-plugin/src/main/java/org/cipango/plugin/CipangoPluginSipAppContext.java +++ b/modul...
true
true
public void configure () throws Exception { loadConfigurations(); Configuration[] configurations = getConfigurations(); for (int i = 0; i < configurations.length; i++) { if (configurations[i] instanceof CipangoMavenConfiguration) ((CipangoMavenConfiguration) configurations[i]).setC...
public void configure () throws Exception { loadConfigurations(); Configuration[] configurations = getConfigurations(); for (int i = 0; i < configurations.length; i++) { if (configurations[i] instanceof CipangoMavenConfiguration) { CipangoMavenConfiguration configuration = (C...
diff --git a/app/controllers/WebService.java b/app/controllers/WebService.java index fd4252e..b1a9319 100755 --- a/app/controllers/WebService.java +++ b/app/controllers/WebService.java @@ -1,403 +1,403 @@ package controllers; import static eu.play_project.play_commons.constants.Event.EVENT_ID_SUFFIX; import java...
true
true
public static void soapNotifEndPoint(String topicId) { String eventTitle; String eventText; String notifyMessage; // A trick to read a Stream into to String: try { notifyMessage = new java.util.Scanner(request.body).useDelimiter("\\A").next(); } catch (java.util.NoSuchElementException e) { ...
public static void soapNotifEndPoint(String topicId) { String eventTitle; String eventText; String notifyMessage; // A trick to read a Stream into to String: try { notifyMessage = new java.util.Scanner(request.body).useDelimiter("\\A").next(); } catch (java.util.NoSuchElementException e) { ...
diff --git a/src/com/nedogeek/holdem/server/HoldemWebSocketHandler.java b/src/com/nedogeek/holdem/server/HoldemWebSocketHandler.java index b3d3b63..e5b08b8 100644 --- a/src/com/nedogeek/holdem/server/HoldemWebSocketHandler.java +++ b/src/com/nedogeek/holdem/server/HoldemWebSocketHandler.java @@ -1,28 +1,29 @@ package ...
true
true
public WebSocket doWebSocketConnect(HttpServletRequest request, String protocol) { String login = request.getParameter("user"); String password = request.getParameter("password"); if(login == null && password == null){ return new HoldemWebSocket(); }else{ if(RegisterServlet.USER_LIST...
public WebSocket doWebSocketConnect(HttpServletRequest request, String protocol) { String login = request.getParameter("user"); String password = request.getParameter("password"); if(login == null && password == null){ return new HoldemWebSocket(); }else{ if(RegisterServlet.USER_LIST...
diff --git a/src/java/com/stackframe/sarariman/ContactController.java b/src/java/com/stackframe/sarariman/ContactController.java index 78f204f..4ca8c4f 100644 --- a/src/java/com/stackframe/sarariman/ContactController.java +++ b/src/java/com/stackframe/sarariman/ContactController.java @@ -1,118 +1,117 @@ /* * Copyrig...
true
true
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { Employee user = (Employee)request.getAttribute("user"); if (!user.isAdministrator()) { response.sendError(401); return; } Sarariman sararima...
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { Employee user = (Employee)request.getAttribute("user"); if (!user.isAdministrator()) { response.sendError(401); return; } Sarariman sararima...
diff --git a/src/org/liberty/android/fantastischmemo/XMLConverter.java b/src/org/liberty/android/fantastischmemo/XMLConverter.java index d2a422b5..86bbfa3b 100644 --- a/src/org/liberty/android/fantastischmemo/XMLConverter.java +++ b/src/org/liberty/android/fantastischmemo/XMLConverter.java @@ -1,282 +1,282 @@ /* Copy...
true
true
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException{ if(localName.equals("mnemosyne")){ try{ timeOfStart = Long.parseLong(atts.getValue("time_of_start")); /* Convert to local time */ //Cal...
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException{ if(localName.equals("mnemosyne")){ try{ timeOfStart = Long.parseLong(atts.getValue("time_of_start")); /* Convert to local time */ Calen...
diff --git a/src/fileserve/cz/vity/freerapid/plugins/services/fileserve/FileserveFilesRunner.java b/src/fileserve/cz/vity/freerapid/plugins/services/fileserve/FileserveFilesRunner.java index b1d617d5..04d27cd3 100644 --- a/src/fileserve/cz/vity/freerapid/plugins/services/fileserve/FileserveFilesRunner.java +++ b/src/fi...
true
true
public void run() throws Exception { super.run(); HttpMethod getMethod = getGetMethod(fileURL); if (makeRedirectedRequest(getMethod)) { checkProblems(); checkNameAndSize(getContentAsString()); Matcher matcher = PlugUtils.matcher("http://(?:www\\.)?filese...
public void run() throws Exception { super.run(); HttpMethod getMethod = getGetMethod(fileURL); if (makeRedirectedRequest(getMethod)) { checkProblems(); checkNameAndSize(getContentAsString()); Matcher matcher = PlugUtils.matcher("http://(?:www\\.)?filese...
diff --git a/VectorString/src/main/java/ini/trakem2/vector/VectorString2D.java b/VectorString/src/main/java/ini/trakem2/vector/VectorString2D.java index 84cf9865..d2e07233 100644 --- a/VectorString/src/main/java/ini/trakem2/vector/VectorString2D.java +++ b/VectorString/src/main/java/ini/trakem2/vector/VectorString2D.ja...
false
true
private void resample() { reorderToCCW(); final double MAX_DISTANCE = 4 * delta; final double MAX_DISTANCE_SQ = MAX_DISTANCE * MAX_DISTANCE; final double deltaSq = delta * delta; final Sequence seq = this.closed ? new CircularSequence(this.length) : new Sequence(this.length); final GrowablePolygon gpol = n...
private void resample() { reorderToCCW(); final double MAX_DISTANCE = 2.5 * delta; final double MAX_DISTANCE_SQ = MAX_DISTANCE * MAX_DISTANCE; final double deltaSq = delta * delta; final Sequence seq = this.closed ? new CircularSequence(this.length) : new Sequence(this.length); final GrowablePolygon gpol =...
diff --git a/Essentials/src/com/earth2me/essentials/InventoryWorkaround.java b/Essentials/src/com/earth2me/essentials/InventoryWorkaround.java index 4ce5cb52..0b8121f8 100644 --- a/Essentials/src/com/earth2me/essentials/InventoryWorkaround.java +++ b/Essentials/src/com/earth2me/essentials/InventoryWorkaround.java @@ -1...
false
true
public static Map<Integer, ItemStack> addItem(final Inventory cinventory, final boolean forceDurability, final boolean dontBreakStacks, final IEssentials ess, final ItemStack... items) { final Map<Integer, ItemStack> leftover = new HashMap<Integer, ItemStack>(); /* TODO: some optimization * - Create a 'first...
public static Map<Integer, ItemStack> addItem(final Inventory cinventory, final boolean forceDurability, final boolean dontBreakStacks, final IEssentials ess, final ItemStack... items) { final Map<Integer, ItemStack> leftover = new HashMap<Integer, ItemStack>(); /* TODO: some optimization * - Create a 'first...
diff --git a/src-pos/com/openbravo/pos/config/JPanelConfigGeneral.java b/src-pos/com/openbravo/pos/config/JPanelConfigGeneral.java index 64ecca3..89b89fc 100644 --- a/src-pos/com/openbravo/pos/config/JPanelConfigGeneral.java +++ b/src-pos/com/openbravo/pos/config/JPanelConfigGeneral.java @@ -1,1273 +1,1273 @@ // Op...
true
true
private void initComponents() { jPanel13 = new javax.swing.JPanel(); jLabel5 = new javax.swing.JLabel(); jtxtMachineHostname = new javax.swing.JTextField(); jLabel2 = new javax.swing.JLabel(); jcboLAF = new javax.swing.JComboBox(); jLabel6 = new javax.swing.JLabel();...
private void initComponents() { jPanel13 = new javax.swing.JPanel(); jLabel5 = new javax.swing.JLabel(); jtxtMachineHostname = new javax.swing.JTextField(); jLabel2 = new javax.swing.JLabel(); jcboLAF = new javax.swing.JComboBox(); jLabel6 = new javax.swing.JLabel();...
diff --git a/src/main/java/cz/cvut/fit/mi_mpr_dip/admission/dao/persistence/BaseUniqueConstraint.java b/src/main/java/cz/cvut/fit/mi_mpr_dip/admission/dao/persistence/BaseUniqueConstraint.java index d4efb85..d180e3e 100644 --- a/src/main/java/cz/cvut/fit/mi_mpr_dip/admission/dao/persistence/BaseUniqueConstraint.java ++...
true
true
public Boolean isFound() { return !isFound(); }
public Boolean isFound() { return !isNotFound(); }
diff --git a/src/java-common/org/xins/common/spec/FunctionSpec.java b/src/java-common/org/xins/common/spec/FunctionSpec.java index e120b89d6..c4672b4b6 100644 --- a/src/java-common/org/xins/common/spec/FunctionSpec.java +++ b/src/java-common/org/xins/common/spec/FunctionSpec.java @@ -1,713 +1,716 @@ /* * $Id$ * ...
true
true
private void parseFunction(Reader reader, Class reference, String baseURL) throws IllegalArgumentException, IOException, InvalidSpecificationException { MandatoryArgumentChecker.check("reader", reader, "reference", reference, "baseURL", baseURL); ElementParser parser = new ElementParser(); Ele...
private void parseFunction(Reader reader, Class reference, String baseURL) throws IllegalArgumentException, IOException, InvalidSpecificationException { MandatoryArgumentChecker.check("reader", reader, "reference", reference, "baseURL", baseURL); ElementParser parser = new ElementParser(); Ele...
diff --git a/tpc/src/serializers/BenchmarkRunner.java b/tpc/src/serializers/BenchmarkRunner.java index 14a6aee..af03dce 100644 --- a/tpc/src/serializers/BenchmarkRunner.java +++ b/tpc/src/serializers/BenchmarkRunner.java @@ -1,119 +1,120 @@ package serializers; import java.io.*; import java.net.URLEncoder; import...
true
true
protected void addTests(TestGroups groups) { // Binary Formats; language-specific ones JavaBuiltIn.register(groups); JavaManual.register(groups); // 06-May-2013, tatu: way too slow, commenting out for now, can add in slow section? // Scala.register(groups); // hessian, kryo and w...
protected void addTests(TestGroups groups) { // Binary Formats; language-specific ones JavaBuiltIn.register(groups); JavaManual.register(groups); // 06-May-2013, tatu: way too slow, commenting out for now, can add in slow section? // Scala.register(groups); // hessian, kryo and w...
diff --git a/activejdbc/src/test/java/org/javalite/activejdbc/Defect149Test.java b/activejdbc/src/test/java/org/javalite/activejdbc/Defect149Test.java index 1eb04675..a085d2d0 100644 --- a/activejdbc/src/test/java/org/javalite/activejdbc/Defect149Test.java +++ b/activejdbc/src/test/java/org/javalite/activejdbc/Defect14...
false
true
public void shouldNotIncludeNullValuesIntoInsertStatement(){ deleteAndPopulateTable("users"); User user = new User(); user.set("email", "john@doe.net"); SystemStreamUtil.replaceError(); user.saveIt(); a(SystemStreamUtil.getSystemErr()).shouldContain("INSERT INTO u...
public void shouldNotIncludeNullValuesIntoInsertStatement(){ deleteAndPopulateTable("users"); User user = new User(); user.set("email", "john@doe.net"); SystemStreamUtil.replaceOut(); user.saveIt(); //this is tested manually, for some reason, Maven does something ...
diff --git a/src/main/java/com/hmsonline/cassandra/triggers/TriggerTask.java b/src/main/java/com/hmsonline/cassandra/triggers/TriggerTask.java index 02f6a15..e934c38 100644 --- a/src/main/java/com/hmsonline/cassandra/triggers/TriggerTask.java +++ b/src/main/java/com/hmsonline/cassandra/triggers/TriggerTask.java @@ -1,6...
true
true
public void run() { boolean gotUpdates = false; while (true) { gotUpdates = false; try { if (ConfigurationStore.getStore().isCommitLogEnabled()) { List<LogEntry> logEntries = CommitLog.getCommitLog().getPending(); if (lo...
public void run() { boolean gotUpdates = false; while (true) { gotUpdates = false; try { if (ConfigurationStore.getStore().isCommitLogEnabled()) { List<LogEntry> logEntries = CommitLog.getCommitLog().getPending(); if (lo...
diff --git a/rultor-base/src/main/java/com/rultor/base/GetterOf.java b/rultor-base/src/main/java/com/rultor/base/GetterOf.java index 02d4954d0..230b31a8e 100644 --- a/rultor-base/src/main/java/com/rultor/base/GetterOf.java +++ b/rultor-base/src/main/java/com/rultor/base/GetterOf.java @@ -1,144 +1,140 @@ /** * Copyri...
false
true
private Method find(final BeanInfo info) { Method foundMethod = null; boolean found = false; for (PropertyDescriptor descr : info.getPropertyDescriptors()) { if (descr.getName().equals(this.property) && (descr.getReadMethod() != null)) { foundMetho...
private Method find(final BeanInfo info) { Method found = null; for (PropertyDescriptor descr : info.getPropertyDescriptors()) { if (descr.getName().equals(this.property) && (descr.getReadMethod() != null)) { found = descr.getReadMethod(); ...