package net.openhft.chronicle.queue;

import net.openhft.chronicle.core.threads.EventHandler;
import net.openhft.chronicle.core.threads.HandlerPriority;
import net.openhft.chronicle.core.threads.InvalidEventHandlerException;
import net.openhft.chronicle.queue.impl.single.Pretoucher;
import net.openhft.chronicle.queue.impl.single.SingleChronicleQueue;
import org.jetbrains.annotations.NotNull;

public final class PretouchHandler implements EventHandler {
    private final Pretoucher pretoucher;

    public PretouchHandler(final SingleChronicleQueue queue) {
        this.pretoucher = new Pretoucher(queue);
    }

    @Override
    public boolean action() throws InvalidEventHandlerException {
        pretoucher.execute();
        return false;
    }

    @NotNull
    @Override
    public HandlerPriority priority() {
        return HandlerPriority.MONITOR;
    }

    public void shutdown() {
        pretoucher.shutdown();
    }
}

package net.openhft.chronicle.queue;

import net.openhft.chronicle.core.threads.EventHandler;
import net.openhft.chronicle.core.threads.HandlerPriority;
import net.openhft.chronicle.core.threads.InvalidEventHandlerException;
import net.openhft.chronicle.queue.impl.single.Pretoucher;
import net.openhft.chronicle.queue.impl.single.SingleChronicleQueue;
import org.jetbrains.annotations.NotNull;

public final class PretouchHandler implements EventHandler {
    private final Pretoucher pretoucher;
    private long lastRun = 0;

    public PretouchHandler(final SingleChronicleQueue queue) {
        this.pretoucher = new Pretoucher(queue);
    }

    @Override
    public boolean action() throws InvalidEventHandlerException {
        long now = System.currentTimeMillis();
        // don't check too often.
        if (now > lastRun + 100) {
            pretoucher.execute();
            lastRun = now;
        }
        return false;
    }

    @NotNull
    @Override
    public HandlerPriority priority() {
        return HandlerPriority.MONITOR;
    }

    public void shutdown() {
        pretoucher.shutdown();
    }
}

Make the pretoucher touch further ahead for long delays on new chunks.


package de.graeuler.garden.config;

import java.util.EnumMap;

public class StaticAppConfig implements AppConfig {

	private EnumMap<AppConfig.Key, Object> config = new EnumMap<>(Key.class);

	public StaticAppConfig() {

		this.config.put(AppConfig.Key.TF_DAEMON_HOST, "192.168.1.10");
		this.config.put(AppConfig.Key.TF_DAEMON_PORT, Integer.valueOf(4223));
		this.config.put(AppConfig.Key.UPLINK_ADRESS, "http://localhost:8081/datafeed/collect/garden");
		// this.config.put(AppConfig.Key.API_TOKEN, "non-working-token");
	}

	@Override
	public Object get(Key key) {
		if (config.containsKey(key))
			return config.get(key);
		else
			return key.getDefaultValue();
	}

	@Override
	public Object get(Key key, Object defaultValue) {
		return this.config.getOrDefault(key, defaultValue);
	}

}

package de.graeuler.garden.config;

import java.util.EnumMap;

public class StaticAppConfig implements AppConfig {

	private EnumMap<AppConfig.Key, Object> config = new EnumMap<>(Key.class);

	public StaticAppConfig() {

		this.config.put(AppConfig.Key.TF_DAEMON_HOST, "localhost");
		this.config.put(AppConfig.Key.TF_DAEMON_PORT, Integer.valueOf(4223));
		this.config.put(AppConfig.Key.UPLINK_ADRESS, "http://localhost:8081/datafeed/collect/garden");
		// this.config.put(AppConfig.Key.API_TOKEN, "non-working-token");
	}

	@Override
	public Object get(Key key) {
		if (config.containsKey(key))
			return config.get(key);
		else
			return key.getDefaultValue();
	}

	@Override
	public Object get(Key key, Object defaultValue) {
		return this.config.getOrDefault(key, defaultValue);
	}

}

Connect to localhost brick daemon.

Connect to localhost brick daemon.


// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

package com.yahoo.container.logging;

import com.google.inject.Inject;
import com.yahoo.component.AbstractComponent;

import java.util.logging.Logger;

/**
 * @author mortent
 */
public class FileConnectionLog extends AbstractComponent implements ConnectionLog {

    private static final Logger logger = Logger.getLogger(FileConnectionLog.class.getName());
    private final ConnectionLogHandler logHandler;

    @Inject
    public FileConnectionLog(ConnectionLogConfig config) {
        logHandler = new ConnectionLogHandler(config.cluster(), config.logDirectoryName(), config.queueSize(), new JsonConnectionLogWriter());
    }

    @Override
    public void log(ConnectionLogEntry connectionLogEntry) {
        logHandler.log(connectionLogEntry);
    }

    @Override
    public void deconstruct() {
        logHandler.shutdown();
    }

}

// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

package com.yahoo.container.logging;

import com.google.inject.Inject;
import com.yahoo.component.AbstractComponent;

/**
 * @author mortent
 */
public class FileConnectionLog extends AbstractComponent implements ConnectionLog {

    private final ConnectionLogHandler logHandler;

    @Inject
    public FileConnectionLog(ConnectionLogConfig config) {
        logHandler = new ConnectionLogHandler(config.logDirectoryName(), config.cluster(), config.queueSize(), new JsonConnectionLogWriter());
    }

    @Override
    public void log(ConnectionLogEntry connectionLogEntry) {
        logHandler.log(connectionLogEntry);
    }

    @Override
    public void deconstruct() {
        logHandler.shutdown();
    }

}

Fix ordering of constructor arguments

Fix ordering of constructor arguments


package com.elmakers.mine.bukkit.plugins.magic;

import java.util.Set;

import org.bukkit.Material;
import org.bukkit.block.Block;

import com.elmakers.mine.bukkit.utilities.borrowed.ConfigurationNode;

public abstract class BlockSpell extends Spell {

	private Set<Material>	indestructible;
	private Set<Material>	destructible;

	public boolean isIndestructible(Block block)
	{
		if (indestructible == null) {
			return mage.isIndestructible(block);
		}
		return indestructible.contains(block);
	}

	public boolean isDestructible(Block block)
	{
		if (destructible == null) {
			return mage.isDestructible(block);
		}
		return destructible.contains(block);
	}

	@Override
	protected void processParameters(ConfigurationNode parameters) {
		super.processParameters(parameters);
		indestructible = null;
		if (parameters.containsKey("indestructible")) {
			indestructible = parameters.getMaterials("indestructible", "");
		}
		destructible = null;
		if (parameters.containsKey("destructible")) {
			destructible = parameters.getMaterials("destructible", "");
		}
	}
}

package com.elmakers.mine.bukkit.plugins.magic;

import java.util.Set;

import org.bukkit.Material;
import org.bukkit.block.Block;

import com.elmakers.mine.bukkit.utilities.borrowed.ConfigurationNode;

public abstract class BlockSpell extends Spell {

	private Set<Material>	indestructible;
	private Set<Material>	destructible;

	public boolean isIndestructible(Block block)
	{
		if (indestructible == null) {
			return mage.isIndestructible(block);
		}
		return indestructible.contains(block.getType());
	}

	public boolean isDestructible(Block block)
	{
		if (destructible == null) {
			return mage.isDestructible(block);
		}
		return destructible.contains(block.getType());
	}

	@Override
	protected void processParameters(ConfigurationNode parameters) {
		super.processParameters(parameters);
		indestructible = null;
		if (parameters.containsKey("indestructible")) {
			indestructible = parameters.getMaterials("indestructible", "");
		}
		destructible = null;
		if (parameters.containsKey("destructible")) {
			destructible = parameters.getMaterials("destructible", "");
		}
	}
}

Fix really broken destructible material test.


package com.thegongoliers.output.motors;

import com.thegongoliers.annotations.Untested;

import java.util.function.BooleanSupplier;

@Untested
public class LimiterMotorModule implements MotorModule {

    private BooleanSupplier mPositiveLimit;
    private BooleanSupplier mNegativeLimit;

    public LimiterMotorModule(BooleanSupplier positiveLimit, BooleanSupplier negativeLimit) {
        mPositiveLimit = positiveLimit;
        mNegativeLimit = negativeLimit;

        if (mPositiveLimit == null) {
            mPositiveLimit = () -> false;
        }

        if (mNegativeLimit == null) {
            mNegativeLimit = () -> false;
        }
    }

    @Override
    public double run(double currentSpeed, double desiredSpeed, double deltaTime) {
        if (shouldStop(desiredSpeed)) {
            return 0.0;
        }
        return desiredSpeed;
    }

    public boolean isAtPositiveLimit(){
        return mPositiveLimit.getAsBoolean();
    }

    public boolean isAtNegativeLimit(){
        return mNegativeLimit.getAsBoolean();
    }

    private boolean shouldStop(double speed) {
        if (speed > 0 && isAtPositiveLimit()) {
            return true;
        }

        if (speed < 0 && isAtNegativeLimit()) {
            return true;
        }

        return false;
    }
}

package com.thegongoliers.output.motors;

import com.thegongoliers.annotations.Untested;

import java.util.function.BooleanSupplier;

@Untested
public class LimiterMotorModule implements MotorModule {

    private BooleanSupplier mPositiveLimit;
    private BooleanSupplier mNegativeLimit;

    public LimiterMotorModule(BooleanSupplier positiveLimit, BooleanSupplier negativeLimit) {
        mPositiveLimit = positiveLimit;
        mNegativeLimit = negativeLimit;

        if (mPositiveLimit == null) {
            mPositiveLimit = () -> false;
        }

        if (mNegativeLimit == null) {
            mNegativeLimit = () -> false;
        }
    }

    public void setNegativeLimit(BooleanSupplier mNegativeLimit) {
        this.mNegativeLimit = mNegativeLimit;
    }

    public void setPositiveLimit(BooleanSupplier mPositiveLimit) {
        this.mPositiveLimit = mPositiveLimit;
    }

    @Override
    public double run(double currentSpeed, double desiredSpeed, double deltaTime) {
        if (shouldStop(desiredSpeed)) {
            return 0.0;
        }
        return desiredSpeed;
    }

    public boolean isAtPositiveLimit(){
        return mPositiveLimit.getAsBoolean();
    }

    public boolean isAtNegativeLimit(){
        return mNegativeLimit.getAsBoolean();
    }

    private boolean shouldStop(double speed) {
        if (speed > 0 && isAtPositiveLimit()) {
            return true;
        }

        if (speed < 0 && isAtNegativeLimit()) {
            return true;
        }

        return false;
    }
}

Add setters for limited motor

Add setters for limited motor


package codenizer.sonarqube.typescript;

public class AnalysisRunnerImpl implements AnalysisRunner {
    public AnalysisResult[] Execute(String projectRootDirectory) {
        AnalysisResult[] result = new AnalysisResult[0];

       try {
           // 1) Set working directory to projectRootDirectory
           // 2) Call analyzer.js
           // 3) Parse result file
           Process p = Runtime.getRuntime().exec("node analyzer.js");

           p.waitFor();
       }
       catch(Exception ex) {

       }

        return result;
    }
}

package codenizer.sonarqube.typescript;

import java.io.File;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class AnalysisRunnerImpl implements AnalysisRunner {
    private final Logger log = LoggerFactory.getLogger(this.getClass());

    public AnalysisResult[] Execute(String projectRootDirectory) {
        AnalysisResult[] result = new AnalysisResult[0];

       try {
           // 1) Set working directory to projectRootDirectory
           // 2) Call analyzer.js
           // 3) Parse result file

           String[] commands = new String[] {
               "node",
               "analyzer.js",
               "**/*.ts"    /* we can specify this glob because we're already in the source directory */
           };

           Process p = Runtime.getRuntime().exec(commands, null /* inherit env */, new File(projectRootDirectory));

           int exitCode = p.waitFor();

           if(exitCode != 0) {
               log.error("Running analyzer failed with exit code " + exitCode);
           }

           // Look for file in current directory
           String pathToResultFile = "ts-analysis-results.json";

           result = AnalysisResultParser.FromFile(pathToResultFile);
       }
       catch(Exception ex) {
           log.error(ex.getMessage());
       }

        return result;
    }
}

Set working directory and command arguments


package devopsdistilled.operp.server.data.repo.items;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import devopsdistilled.operp.server.data.entity.items.Item;

@Repository
public interface ItemRepository extends JpaRepository<Item, Long> {

}

package devopsdistilled.operp.server.data.repo.items;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import devopsdistilled.operp.server.data.entity.items.Item;

@Repository
public interface ItemRepository extends JpaRepository<Item, Long> {

	List<Item> findByProductNameAndBrandName(String productName,
			String brandName);

	List<Item> findByItemName(String itemName);

}

Correct return type of the methods

Correct return type of the methods

OPEN - task 32: Add "Create Item" functionalities
http://github.com/DevOpsDistilled/OpERP/issues/issue/32


package uk.ac.ebi.quickgo.index.annotation.coterms;

import uk.ac.ebi.quickgo.index.annotation.Annotation;

import java.util.function.Predicate;
import org.springframework.batch.item.ItemProcessor;

/**
 * @author Tony Wardell
 * Date: 06/09/2016
 * Time: 16:30
 * Created with IntelliJ IDEA.
 *
 * A version of ItemProcessor for adding details from an {@link uk.ac.ebi.quickgo.index.annotation.Annotation}
 * to a matrix of permutations where GOTerm A and GOTerm B both annotate the same Gene Product.
 *
 * Version of GPAFileToSummary from Beta
 */
public class AnnotationCoStatsProcessor implements ItemProcessor<Annotation, Annotation> {

    private final CoStatsPermutations coStatsPermutations;
    private final Predicate<Annotation> toBeProcessed;

    public AnnotationCoStatsProcessor(CoStatsPermutations coStatsPermutations,
            Predicate<Annotation> toBeProcessed) {
        this.coStatsPermutations = coStatsPermutations;
        this.toBeProcessed = toBeProcessed;
    }

    @Override
    public Annotation process(Annotation annotation) throws Exception {

        if(toBeProcessed.test(annotation)){
            coStatsPermutations.addRowToMatrix(annotation);
        }

        return annotation;
    }
}

package uk.ac.ebi.quickgo.index.annotation.coterms;

import uk.ac.ebi.quickgo.index.annotation.Annotation;

import com.google.common.base.Preconditions;
import java.util.function.Predicate;
import org.springframework.batch.item.ItemProcessor;

/**
 * @author Tony Wardell
 * Date: 06/09/2016
 * Time: 16:30
 * Created with IntelliJ IDEA.
 *
 * A version of ItemProcessor for adding details from an {@link uk.ac.ebi.quickgo.index.annotation.Annotation}
 * to a matrix of permutations where GOTerm A and GOTerm B both annotate the same Gene Product.
 *
 * Version of GPAFileToSummary from Beta
 */
public class AnnotationCoStatsProcessor implements ItemProcessor<Annotation, Annotation> {

    private final CoStatsPermutations coStatsPermutations;
    private final Predicate<Annotation> toBeProcessed;

    public AnnotationCoStatsProcessor(CoStatsPermutations coStatsPermutations,Predicate<Annotation> toBeProcessed) {
        Preconditions.checkArgument(coStatsPermutations!=null);
        Preconditions.checkArgument(toBeProcessed!=null);
        this.coStatsPermutations = coStatsPermutations;
        this.toBeProcessed = toBeProcessed;
    }

    @Override
    public Annotation process(Annotation annotation) throws Exception {

        if(toBeProcessed.test(annotation)){
            coStatsPermutations.addRowToMatrix(annotation);
        }

        return annotation;
    }
}

Add some preconditions to check state of constructor arguments.


//
// $Id: ActionSequence.java,v 1.2 2001/11/27 08:09:34 mdb Exp $

package com.threerings.cast;

import java.awt.Point;
import java.io.Serializable;

/**
 * The action sequence class describes a particular character animation
 * sequence. An animation sequence consists of one or more frames of
 * animation, renders at a particular frame rate, and has an origin point
 * that specifies the location of the base of the character in relation to
 * the bounds of the animation images.
 */
public class ActionSequence implements Serializable
{
    /** The action sequence name. */
    public String name;

    /** The number of frames per second to show when animating. */
    public int framesPerSecond;

    /** The position of the character's base for this sequence. */
    public Point origin = new Point();

    /**
     * Returns a string representation of this action sequence.
     */
    public String toString ()
    {
        return "[name=" + name + ", framesPerSecond=" + framesPerSecond +
            ", origin=" + origin + "]";
    }
}

//
// $Id: ActionSequence.java,v 1.3 2002/03/27 21:51:33 mdb Exp $

package com.threerings.cast;

import java.awt.Point;
import java.io.Serializable;

/**
 * The action sequence class describes a particular character animation
 * sequence. An animation sequence consists of one or more frames of
 * animation, renders at a particular frame rate, and has an origin point
 * that specifies the location of the base of the character in relation to
 * the bounds of the animation images.
 */
public class ActionSequence implements Serializable
{
    /** The action sequence name. */
    public String name;

    /** The number of frames per second to show when animating. */
    public float framesPerSecond;

    /** The position of the character's base for this sequence. */
    public Point origin = new Point();

    /**
     * Returns a string representation of this action sequence.
     */
    public String toString ()
    {
        return "[name=" + name + ", framesPerSecond=" + framesPerSecond +
            ", origin=" + origin + "]";
    }
}

Define frames per second in floating point.

git-svn-id: a1a4b28b82a3276cc491891159dd9963a0a72fae@1163 542714f4-19e9-0310-aa3c-eee0fc999fb1


/*
 * Axelor Business Solutions
 *
 * Copyright (C) 2005-2019 Axelor (<http://axelor.com>).
 *
 * This program is free software: you can redistribute it and/or  modify
 * it under the terms of the GNU Affero General Public License, version 3,
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.axelor.tools.changelog;

public enum EntryType {
  FEATURE("Feature"),
  CHANGE("Change"),
  DEPRECATED("Deprecated"),
  REMOVED("Removed"),
  FIXED("Fixed"),
  SECURITY("Security");

  private final String value;

  private EntryType(String value) {
    this.value = value;
  }

  public String getValue() {
    return value;
  }
}

/*
 * Axelor Business Solutions
 *
 * Copyright (C) 2005-2019 Axelor (<http://axelor.com>).
 *
 * This program is free software: you can redistribute it and/or  modify
 * it under the terms of the GNU Affero General Public License, version 3,
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.axelor.tools.changelog;

public enum EntryType {
  FEATURE("Features"),
  CHANGE("Changes"),
  DEPRECATE("Deprecated"),
  REMOVE("Removed"),
  FIX("Fixed"),
  SECURITY("Security");

  private final String value;

  private EntryType(String value) {
    this.value = value;
  }

  public String getValue() {
    return value;
  }
}

Rename changelog types and headers

Rename changelog types and headers


package cz.cuni.mff.d3s.spl.example.newton.checker;

import cz.cuni.mff.d3s.spl.core.data.SerieDataSource;
import cz.cuni.mff.d3s.spl.core.data.instrumentation.InstrumentingDataSource;
import cz.cuni.mff.d3s.spl.core.formula.Formula;
import cz.cuni.mff.d3s.spl.core.formula.Result;
import cz.cuni.mff.d3s.spl.core.formula.SlaFormula;

public class SlaChecker implements Runnable {

	private final static String METHOD = "org.apache.commons.math.analysis.solvers.NewtonSolver#solve";
			//"org.apache.commons.math.analysis.polynomials.PolynomialFunction#value";
	private final static long SEC_TO_NANOS = 1000 * 1000 * 1000;

	SerieDataSource source;
	Formula sla;

	public SlaChecker() {
		source = InstrumentingDataSource.create(METHOD);
		sla = SlaFormula.createSimple(source, 1 * SEC_TO_NANOS);
	}

	@Override
	public void run() {
		Result result = sla.evaluate();

		System.err.printf("Contract of NewtonSolver.solve(): %s.\n", result);
	}
}

package cz.cuni.mff.d3s.spl.example.newton.checker;

import cz.cuni.mff.d3s.spl.core.data.SerieDataSource;
import cz.cuni.mff.d3s.spl.core.data.Statistics;
import cz.cuni.mff.d3s.spl.core.data.instrumentation.InstrumentingDataSource;
import cz.cuni.mff.d3s.spl.core.formula.Formula;
import cz.cuni.mff.d3s.spl.core.formula.Result;
import cz.cuni.mff.d3s.spl.core.formula.SlaFormula;

public class SlaChecker implements Runnable {

	private final static String METHOD = "org.apache.commons.math.analysis.solvers.NewtonSolver#solve";
	private final static long SEC_TO_NANOS = 1000 * 1000 * 1000;

	SerieDataSource source;
	Formula sla;

	public SlaChecker() {
		source = InstrumentingDataSource.create(METHOD);
		sla = SlaFormula.createSimple(source, 1 * SEC_TO_NANOS);
	}

	@Override
	public void run() {
		Result result = sla.evaluate();
		Statistics stats = source.get();

		/* Explicitly flush all previous output to prevent interleaving. */
		System.out.flush();
		System.err.flush();

		System.err.printf(
				"NewtonSolver.solve(): mean is %2.1fns, %d samples: %s.\n",
				stats.getArithmeticMean(), stats.getSampleCount(), result);
	}
}

Print more statistics on exit

Print more statistics on exit


package com.github.aureliano.verbum_domini.helper;

import org.apache.commons.lang.StringUtils;

public final class UrlHelper {

	private UrlHelper() {
		super();
	}

	public static String join(Object...tokens) {
		return "/" + StringUtils.join(tokens, '/');
	}
}

package com.github.aureliano.verbum_domini.helper;

import javax.servlet.ServletRequest;
import javax.servlet.http.HttpServletRequest;

import org.apache.commons.lang.StringUtils;

public final class UrlHelper {

	private UrlHelper() {
		super();
	}

	public static String join(Object...tokens) {
		return "/" + StringUtils.join(tokens, '/');
	}

	public static String buildWebAppUrl(ServletRequest request, String path) {
		String contextPath = ((HttpServletRequest) request).getContextPath();
		return join(contextPath.substring(1), path);
	}

	public static String buildWebAppUrl(String path) {
		return buildWebAppUrl(WebHelper.getRequest(), path);
	}
}

Add method to build URLs with context path.


package net.sf.clirr.ant;

import junit.framework.TestCase;
import net.sf.clirr.event.ApiDifference;
import net.sf.clirr.event.Severity;

public class ChangeCounterTest extends TestCase
{
  public void testCorrectCounting()
  {
      ChangeCounter counter = new ChangeCounter();
      counter.reportDiff(new ApiDifference("blah", Severity.WARNING, "Test", null, null));
      counter.reportDiff(new ApiDifference("blah", Severity.ERROR, "Test", null, null));
      counter.reportDiff(new ApiDifference("blah", Severity.INFO, "Test", null, null));
      counter.reportDiff(new ApiDifference("blah", Severity.ERROR, "Test", null, null));
      counter.reportDiff(new ApiDifference("blah", Severity.ERROR, "Test", null, null));
      counter.reportDiff(new ApiDifference("blah", Severity.WARNING, "Test", null, null));
      assertEquals("number of expected errors", 3, counter.getBinErrors());
      assertEquals("number of expected warnings", 2, counter.getBinWarnings());
      assertEquals("number of expected infos", 1, counter.getBinInfos());
  }
}

package net.sf.clirr.ant;

import junit.framework.TestCase;
import net.sf.clirr.event.ApiDifference;
import net.sf.clirr.event.Severity;
import net.sf.clirr.event.Message;

public class ChangeCounterTest extends TestCase
{
  public void testCorrectCounting()
  {
      // a dummy message object
      Message msg = new Message(0, false);

      ChangeCounter counter = new ChangeCounter();
      counter.reportDiff(new ApiDifference(msg, Severity.WARNING, "Test", null, null, null));
      counter.reportDiff(new ApiDifference(msg, Severity.ERROR, "Test", null, null, null));
      counter.reportDiff(new ApiDifference(msg, Severity.INFO, "Test", null, null, null));
      counter.reportDiff(new ApiDifference(msg, Severity.ERROR, "Test", null, null, null));
      counter.reportDiff(new ApiDifference(msg, Severity.ERROR, "Test", null, null, null));
      counter.reportDiff(new ApiDifference(msg, Severity.WARNING, "Test", null, null, null));
      assertEquals("number of expected errors", 3, counter.getBinErrors());
      assertEquals("number of expected warnings", 2, counter.getBinWarnings());
      assertEquals("number of expected infos", 1, counter.getBinInfos());
  }
}

Use dummy Message object to be compatible with new ApiDifference API


/*****************************************************************************
 ** Copyright (c) 2010 - 2012 Ushahidi Inc
 ** All rights reserved
 ** Contact: team@ushahidi.com
 ** Website: http://www.ushahidi.com
 **
 ** GNU Lesser General Public License Usage
 ** This file may be used under the terms of the GNU Lesser
 ** General Public License version 3 as published by the Free Software
 ** Foundation and appearing in the file LICENSE.LGPL included in the
 ** packaging of this file. Please review the following information to
 ** ensure the GNU Lesser General Public License version 3 requirements
 ** will be met: http://www.gnu.org/licenses/lgpl.html.
 **
 **
 ** If you have questions regarding the use of this file, please contact
 ** Ushahidi developers at team@ushahidi.com.
 **
 *****************************************************************************/
package com.crowdmap.java.sdk.net;

/**
 * Crowdmap constants for http related activities
 */
public interface ICrowdmapConstants {

	public String CHARSET_UTF8 = "UTF-8";

	public String CONTENT_TYPE_JSON = "application/json";

	public String DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";
}

/*****************************************************************************
 ** Copyright (c) 2010 - 2012 Ushahidi Inc
 ** All rights reserved
 ** Contact: team@ushahidi.com
 ** Website: http://www.ushahidi.com
 **
 ** GNU Lesser General Public License Usage
 ** This file may be used under the terms of the GNU Lesser
 ** General Public License version 3 as published by the Free Software
 ** Foundation and appearing in the file LICENSE.LGPL included in the
 ** packaging of this file. Please review the following information to
 ** ensure the GNU Lesser General Public License version 3 requirements
 ** will be met: http://www.gnu.org/licenses/lgpl.html.
 **
 **
 ** If you have questions regarding the use of this file, please contact
 ** Ushahidi developers at team@ushahidi.com.
 **
 *****************************************************************************/
package com.crowdmap.java.sdk.net;

/**
 * Crowdmap constants for http related activities
 */
public interface ICrowdmapConstants {

	public String CHARSET_UTF8 = "UTF-8";

	public String CONTENT_TYPE_JSON = "application/json";

	public String DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";

	public String HOST_API = "api.crdmp3.com";

	public String API_VERSION = "v1";

	public String PROTOCOL_HTTPS = "https";

	public String PROTOCOL_HTTP = "http";

	public String URL_API = PROTOCOL_HTTP + "://" + HOST_API;

	public String SEGMENT_MEDIA = "/media";

	public String SEGMENT_MAPS = "/maps";

	public String SEGMENT_LOCATIONS = "/locations";

	public String SEGMENT_POSTS = "/posts";

	public String SEGMENT_PEOPLE = "/people";

	public String SEGMENT_EXTERNALS = "/externals";

	public String SEGMENT_ABOUT = "/about";

	public String SEGMENT_HEARTBEAT = "/heartbeat";

	public String SEGMENT_PLACES_SEARCH = "/places/search";

}

Add the different segments that makes up crowdmap endit point as constants for easier maintenance


package com.williamfiset.algorithms.graphtheory;

public class NewAlgorithm {

  public static void main(String[] args) {

                       }
}

Test hooks/ dir pre-push hook works

Test hooks/ dir pre-push hook works


/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package net.kirauks.minigames.engine.utils;

import javafx.scene.input.KeyCode;

/**
 *
 * @author Karl
 */
public class Options {
    public Options(){}

    public KeyCode getUpKey(){
        return KeyCode.UP;
    }
    public KeyCode getDownKey(){
        return KeyCode.DOWN;
    }
    public KeyCode getLeftKey(){
        return KeyCode.LEFT;
    }
    public KeyCode getRightKey(){
        return KeyCode.RIGHT;
    }
    public KeyCode getActionKey(){
        return KeyCode.SPACE;
    }
    public KeyCode getPauseKey(){
        return KeyCode.ESCAPE;
    }
}

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package net.kirauks.minigames.engine.utils;

import javafx.scene.input.KeyCode;

/**
 *
 * @author Karl
 */
public class Options {
    public static KeyCode getUpKey(){
        return KeyCode.UP;
    }
    public static KeyCode getDownKey(){
        return KeyCode.DOWN;
    }
    public static KeyCode getLeftKey(){
        return KeyCode.LEFT;
    }
    public static KeyCode getRightKey(){
        return KeyCode.RIGHT;
    }
    public static KeyCode getActionKey(){
        return KeyCode.SPACE;
    }
    public static KeyCode getPauseKey(){
        return KeyCode.ESCAPE;
    }
}

Use static methods for options

Use static methods for options


package edu.umich.lib.solr.analysis;
import java.util.Map;
import org.apache.lucene.analysis.util.TokenFilterFactory;
import org.apache.lucene.analysis.TokenStream;

public class LCCNNormalizerFilterFactory extends TokenFilterFactory
{
    protected LCCNNormalizerFilterFactory(Map<String, String> args) {
		super(args);
	}

    public LCCNNormalizerFilter create(TokenStream input)
    {
        return new LCCNNormalizerFilter(input);
    }
}

package edu.umich.lib.solr.analysis;
import java.util.Map;
import org.apache.lucene.analysis.util.TokenFilterFactory;
import org.apache.lucene.analysis.TokenStream;

public class LCCNNormalizerFilterFactory extends TokenFilterFactory
{
    public LCCNNormalizerFilterFactory(Map<String, String> args) {
        super(args);
    }

    @Override
    public LCCNNormalizerFilter create(TokenStream input)
    {
        return new LCCNNormalizerFilter(input);
    }
}

Fix constructor in LCCNNormalizationFilterFactory too


/*
 * Copyright 2015 Open mHealth
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.openmhealth.shimmer.common.domain.parameters;

import java.time.OffsetDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @author Chris Schaefbauer
 */
public class DateTimeRequestParameter extends RequestParameter<OffsetDateTime> {

    private DateTimeFormatter dateTimeFormat;

    public DateTimeFormatter getDateTimeFormat() {
        return dateTimeFormat;
    }

    public void setDateTimeFormat(DateTimeFormatter dateTimeFormat) {
        this.dateTimeFormat = dateTimeFormat;
    }
}

/*
 * Copyright 2015 Open mHealth
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.openmhealth.shimmer.common.domain.parameters;

import java.time.OffsetDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @author Chris Schaefbauer
 */
public class DateTimeRequestParameter extends RequestParameter<OffsetDateTime> {

    // TODO unix time?
    // TODO how do we parse?
    private DateTimeFormatter dateTimeFormat;

    public DateTimeFormatter getDateTimeFormat() {
        return dateTimeFormat;
    }

    public void setDateTimeFormat(DateTimeFormatter dateTimeFormat) {
        this.dateTimeFormat = dateTimeFormat;
    }
}

Add TODOs to date time request parameter


package org.webdsl.lang;

import java.util.HashMap;
import java.util.Map;

/**
 *  lookup of session variables
 */
public class EnvironmentSessionVariableLookup {

	protected Map<String,Object> variables = new HashMap<String,Object>();

	public EnvironmentSessionVariableLookup(){}

	public Object getVariable(String key) {
		Object o = variables.get(key);
		if(o != null){
			return o;
		}
		else{
			throw new RuntimeException("session variable lookup failed for name: "+key);
		}
	}

	public void putVariable(String key, Object value) {
		variables.put(key, value);
	}

}

package org.webdsl.lang;

import java.util.HashMap;
import java.util.Map;

import org.webdsl.logging.Logger;

/**
 *  lookup of session variables
 */
public class EnvironmentSessionVariableLookup {

	protected Map<String,Object> variables = new HashMap<String,Object>();

	public EnvironmentSessionVariableLookup(){}

	public Object getVariable(String key) {
		Object o = variables.get(key);
		if(o == null){
			Logger.error(new RuntimeException("session variable lookup failed for name: "+key));
		}
		return o;
	}

	public void putVariable(String key, Object value) {
		variables.put(key, value);
	}

}

Change handling session variables. When lookup fails, return null instead of throwing exception. It still logs an exception.

svn path=/webdsls/trunk/; revision=6029


/*
 * Copyright 2017, TeamDev Ltd. All rights reserved.
 *
 * Redistribution and use in source and/or binary forms, with or without
 * modification, must retain the above copyright notice and the following
 * disclaimer.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

/**
 * This package contains the types representing the queries to a relational Database.
 *
 * <p>The package is {@linkplain io.spine.annotation.Internal internal} to Spine code and should not
 * be used outside of the library.
 */

@Internal
@ParametersAreNonnullByDefault
package io.spine.server.storage.jdbc.query;

import io.spine.annotation.Internal;

import javax.annotation.ParametersAreNonnullByDefault;

/*
 * Copyright 2017, TeamDev Ltd. All rights reserved.
 *
 * Redistribution and use in source and/or binary forms, with or without
 * modification, must retain the above copyright notice and the following
 * disclaimer.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

/**
 * This package contains the API for working with queries and common queries for different storages.
 *
 * <p>The package is {@linkplain io.spine.annotation.Internal internal} to Spine code and should not
 * be used outside of the library.
 */

@Internal
@ParametersAreNonnullByDefault
package io.spine.server.storage.jdbc.query;

import io.spine.annotation.Internal;

import javax.annotation.ParametersAreNonnullByDefault;

Update package info for `query` package

Update package info for `query` package


/*
 * Licensed to Crate under one or more contributor license agreements.
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.  Crate licenses this file
 * to you under the Apache License, Version 2.0 (the "License"); you may
 * not use this file except in compliance with the License.  You may
 * obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 * implied.  See the License for the specific language governing
 * permissions and limitations under the License.
 *
 * However, if you have executed another commercial license agreement
 * with Crate these terms will supersede the license and you may use the
 * software solely pursuant to the terms of the relevant commercial
 * agreement.
 */

package io.crate.operation.projectors;

import io.crate.core.collections.Row;
import io.crate.core.collections.Row1;

public class MergeCountProjector extends AbstractProjector {

    private long sum;

    @Override
    public boolean setNextRow(Row row) {
        Long count = (Long)row.get(0);
        sum += count.longValue();
        return true;
    }

    @Override
    public void finish() {
        downstream.setNextRow(new Row1(sum));
        downstream.finish();
    }

    @Override
    public void fail(Throwable throwable) {
        downstream.fail(throwable);
    }
}

/*
 * Licensed to Crate under one or more contributor license agreements.
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.  Crate licenses this file
 * to you under the Apache License, Version 2.0 (the "License"); you may
 * not use this file except in compliance with the License.  You may
 * obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 * implied.  See the License for the specific language governing
 * permissions and limitations under the License.
 *
 * However, if you have executed another commercial license agreement
 * with Crate these terms will supersede the license and you may use the
 * software solely pursuant to the terms of the relevant commercial
 * agreement.
 */

package io.crate.operation.projectors;

import io.crate.core.collections.Row;
import io.crate.core.collections.Row1;

public class MergeCountProjector extends AbstractProjector {

    private long sum;

    @Override
    public boolean setNextRow(Row row) {
        Long count = (Long)row.get(0);
        sum += count;
        return true;
    }

    @Override
    public void finish() {
        downstream.setNextRow(new Row1(sum));
        downstream.finish();
    }

    @Override
    public void fail(Throwable throwable) {
        downstream.fail(throwable);
    }
}

Remove explicit unboxing to primitive

Remove explicit unboxing to primitive


package me.coley.recaf.ui.component;

import java.awt.Component;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import javax.swing.JPanel;

/**
 * A group of radio-buttons that handles singular radio selection.
 *
 * @author Matt
 */
@SuppressWarnings("serial")
public class LabeledComponentGroup extends JPanel {
	private final GridBagConstraints c = new GridBagConstraints();

	public LabeledComponentGroup(LabeledComponent... components) {
		setLayout(new GridBagLayout());
		c.anchor = GridBagConstraints.WEST;
		c.weightx = 1.0;
		c.weighty = 1.0;
		for (LabeledComponent comp : components) {
			add(comp);
			c.gridy += 1;
		}
	}

	/**
	 * Overridden to prevent adding components the default way.
	 */
	@Override
	public Component add(Component comp) throws RuntimeException {
		if (comp instanceof LabeledComponent) {
			LabeledComponent lc = (LabeledComponent) comp;
			c.fill = GridBagConstraints.HORIZONTAL;
			c.gridx = 0;
			c.gridwidth = 1;
			super.add(lc.getLabel(), c);
			c.fill = GridBagConstraints.HORIZONTAL;
			c.gridx = 0;
			c.gridwidth = 1;
			super.add(lc.getComponent(), c);
			return comp;
		} else throw new RuntimeException("Non-LabeledComponent are not supported!!");
	}
}

package me.coley.recaf.ui.component;

import java.awt.Component;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import javax.swing.JPanel;

/**
 * A group of radio-buttons that handles singular radio selection.
 *
 * @author Matt
 */
@SuppressWarnings("serial")
public class LabeledComponentGroup extends JPanel {
	private final GridBagConstraints c = new GridBagConstraints();

	public LabeledComponentGroup(LabeledComponent... components) {
		setLayout(new GridBagLayout());
		c.anchor = GridBagConstraints.WEST;
		c.weightx = 1.0;
		c.weighty = 1.0;
		c.gridy = 1;
		for (LabeledComponent comp : components) {
			add(comp);
		}
	}

	/**
	 * Overridden to prevent adding components the default way.
	 */
	@Override
	public Component add(Component comp) throws RuntimeException {
		if (comp instanceof LabeledComponent) {
			LabeledComponent lc = (LabeledComponent) comp;
			c.fill = GridBagConstraints.HORIZONTAL;
			c.gridx = 0;
			c.gridwidth = 1;
			super.add(lc.getLabel(), c);
			c.fill = GridBagConstraints.HORIZONTAL;
			c.gridx = 1;
			c.gridwidth = 1;
			super.add(lc.getComponent(), c);
			c.gridy += 1;
			return comp;
		} else throw new RuntimeException("Non-LabeledComponent are not supported!!");
	}
}

Fix overlapping elements in groups

Fix overlapping elements in groups


package org.usfirst.frc.team4761.robot.subsystems;

import edu.wpi.first.wpilibj.command.Subsystem;

/**
 *
 */
public class Shooter extends Subsystem {

    // Put methods for controlling this subsystem
    // here. Call these from Commands.

    public void initDefaultCommand() {
        // Set the default command for a subsystem here.
        //setDefaultCommand(new MySpecialCommand());
    }

    public void shoot() {
    	//TODO: Implement shooting
    }
}

package org.usfirst.frc.team4761.robot.subsystems;

import org.usfirst.frc.team4761.robot.XAxisRelativeDirection;

import edu.wpi.first.wpilibj.command.Subsystem;

/**
 *
 */
public class Shooter extends Subsystem {

    // Put methods for controlling this subsystem
    // here. Call these from Commands.

    public void initDefaultCommand() {
        // Set the default command for a subsystem here.
        //setDefaultCommand(new MySpecialCommand());
    }

    public void shoot() {
    	//TODO: Implement shooting
    }

    public void rotate(XAxisRelativeDirection direction) {
    	//TODO: Implement turning (must be very precise)
    }
}

Add stub function for rotating

Add stub function for rotating


package org.usfirst.frc.team4761.robot.subsystems;

import edu.wpi.first.wpilibj.command.Subsystem;

/**
 *
 */
public class Shooter extends Subsystem {

    // Put methods for controlling this subsystem
    // here. Call these from Commands.

    public void initDefaultCommand() {
        // Set the default command for a subsystem here.
        //setDefaultCommand(new MySpecialCommand());
    }

    public void shoot() {
    	//TODO: Implement shooting
    }

}

Add shoot function to shooter (stub)

Add shoot function to shooter (stub)


package de.fernunihagen.dna.jkn.scalephant.distribution.resource;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Random;

import de.fernunihagen.dna.jkn.scalephant.distribution.membership.DistributedInstance;

public class RandomResourcePlacementStrategy implements ResourcePlacementStrategy {

	/**
	 * The random generator
	 */
	protected final Random randomGenerator;

	public RandomResourcePlacementStrategy() {
		randomGenerator = new Random();
	}

	@Override
	public DistributedInstance findSystemToAllocate(final Collection<DistributedInstance> systems) {

		synchronized (systems) {
			final List<DistributedInstance> elements = new ArrayList<DistributedInstance>(systems);
			final int element = Math.abs(randomGenerator.nextInt()) % elements.size();
			return elements.get(element);
		}

	}

}

package de.fernunihagen.dna.jkn.scalephant.distribution.resource;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Random;

import de.fernunihagen.dna.jkn.scalephant.distribution.membership.DistributedInstance;

public class RandomResourcePlacementStrategy implements ResourcePlacementStrategy {

	/**
	 * The random generator
	 */
	protected final Random randomGenerator;

	public RandomResourcePlacementStrategy() {
		randomGenerator = new Random();
	}

	@Override
	public DistributedInstance findSystemToAllocate(final Collection<DistributedInstance> systems) {

		if(systems.isEmpty()) {
			throw new IllegalArgumentException("Unable to choose a system, list of systems is empty");
		}

		synchronized (systems) {
			final List<DistributedInstance> elements = new ArrayList<DistributedInstance>(systems);
			final int element = Math.abs(randomGenerator.nextInt()) % elements.size();
			return elements.get(element);
		}

	}

}

Throw an exception on empty resource list


/*
 * Copyright 2016 Red Hat, Inc. and/or its affiliates.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.optaplanner.examples.taskassigning.app;

import org.optaplanner.examples.common.app.CommonBenchmarkApp;

public class TaskAssigningBenchmarkApp extends CommonBenchmarkApp {

    public static void main(String[] args) {
        new TaskAssigningBenchmarkApp().buildAndBenchmark(args);
    }

    public TaskAssigningBenchmarkApp() {
        super(
                new ArgOption("default",
                        "org/optaplanner/examples/taskassigning/benchmark/taskAssigningBenchmarkConfig.xml")
        );
    }

}

/*
 * Copyright 2016 Red Hat, Inc. and/or its affiliates.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.optaplanner.examples.taskassigning.app;

import org.optaplanner.examples.common.app.CommonBenchmarkApp;

public class TaskAssigningBenchmarkApp extends CommonBenchmarkApp {

    public static void main(String[] args) {
        new TaskAssigningBenchmarkApp().buildAndBenchmark(args);
    }

    public TaskAssigningBenchmarkApp() {
        super(
                new ArgOption("default",
                        "org/optaplanner/examples/taskassigning/benchmark/taskAssigningBenchmarkConfig.xml"),
                new ArgOption("scoreDirector",
                        "org/optaplanner/examples/taskassigning/benchmark/taskAssigningScoreDirectorBenchmarkConfig.xml")
        );
    }

}

Add scoreDirector benchmark in the app too


/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.sakamichi46.api;

import javax.ws.rs.ApplicationPath;
import org.glassfish.jersey.server.ResourceConfig;
import org.springframework.stereotype.Component;

/**
 *
 * @author kikuta
 */
@Component
@ApplicationPath("api")
public class JerseyConfig extends ResourceConfig {

    public JerseyConfig() {
        register(HiraganaKeyakiResource.class);
        register(Keyakizaka46Resource.class);
        register(Nogizaka46Resource.class);
        register(Nogizaka46ThirdResource.class);
    }

}

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.sakamichi46.api;

import javax.ws.rs.ApplicationPath;
import org.glassfish.jersey.server.ResourceConfig;
import org.springframework.stereotype.Component;

/**
 *
 * @author kikuta
 */
@Component
@ApplicationPath("sakamichi46api/api")
public class JerseyConfig extends ResourceConfig {

    public JerseyConfig() {
        register(HiraganaKeyakiResource.class);
        register(Keyakizaka46Resource.class);
        register(Nogizaka46Resource.class);
        register(Nogizaka46ThirdResource.class);
    }

}

Change root path from api to sakamichi46api/api.


package weiboclient4j.oauth2;

/**
 * @author Hover Ruan
 */
public enum DisplayType {

    Default("default"),

    Mobile("mobile"),

    Popup("popup"),

    Wap12("wap1.2"),

    Wap20("wap2.0"),

    Js("js"),

    AppOnWeibo("apponweibo");

    private String display;

    DisplayType(String display) {
        this.display = display;
    }

    public String getDisplay() {
        return display;
    }
}

package weiboclient4j.oauth2;

/**
 * @author Hover Ruan
 */
public enum DisplayType {

    Default("default"),

    Mobile("mobile"),

    Popup("popup"),

    Wap12("wap1.2"),

    Wap20("wap2.0"),

    Js("js"),

    Wap("wap"),

    Client("client"),

    AppOnWeibo("apponweibo");

    private String display;

    DisplayType(String display) {
        this.display = display;
    }

    public String getDisplay() {
        return display;
    }
}

Add new display-type for API 2.0

Add new display-type for API 2.0


package fi.reaktor.android.rssreader;

import android.app.Activity;

import fi.reaktor.android.rssreader.app.RssReaderApplication;

public abstract class RssReaderBaseActivity extends Activity {

    @Override
    protected void onPause() {
        ((RssReaderApplication)getApplicationContext()).persistDataIfModified();
        super.onPause();
    }
}

package fi.reaktor.android.rssreader;

import android.app.Activity;

import fi.reaktor.android.rssreader.app.RssReaderApplication;

public abstract class RssReaderBaseActivity extends Activity {

    @Override
    protected void onPause() {
        ((RssReaderApplication)getApplication()).persistDataIfModified();
        super.onPause();
    }
}

Use getApplication() to access the Application instance


package org.bouncycastle.asn1;

public class ASN1ObjectIdentifier
    extends DERObjectIdentifier
{
    public ASN1ObjectIdentifier(String identifier)
    {
        super(identifier);
    }

    ASN1ObjectIdentifier(byte[] bytes)
    {
        super(bytes);
    }

    /**
     * Return an OID that creates a branch under the current one.
     *
     * @param branchID node numbers for the new branch.
     * @return
     */
    public ASN1ObjectIdentifier branch(String branchID)
    {
        return new ASN1ObjectIdentifier(getId() + "." + branchID);
    }

    /**
     * Return  true if this oid is an extension of the passed in branch, stem.
     * @param stem the arc or branch that is a possible parent.
     * @return  true if the branch is on the passed in stem, false otherwise.
     */
    public boolean on(ASN1ObjectIdentifier stem)
    {
        return this.getId().startsWith(stem.getId());
    }
}

package org.bouncycastle.asn1;

public class ASN1ObjectIdentifier
    extends DERObjectIdentifier
{
    public ASN1ObjectIdentifier(String identifier)
    {
        super(identifier);
    }

    ASN1ObjectIdentifier(byte[] bytes)
    {
        super(bytes);
    }

    /**
     * Return an OID that creates a branch under the current one.
     *
     * @param branchID node numbers for the new branch.
     * @return
     */
    public ASN1ObjectIdentifier branch(String branchID)
    {
        return new ASN1ObjectIdentifier(getId() + "." + branchID);
    }

    /**
     * Return  true if this oid is an extension of the passed in branch, stem.
     * @param stem the arc or branch that is a possible parent.
     * @return  true if the branch is on the passed in stem, false otherwise.
     */
    public boolean on(ASN1ObjectIdentifier stem)
    {
        String id = getId(), stemId = stem.getId();
        return id.length() > stemId.length() && id.charAt(stemId.length()) == '.' && id.startsWith(stemId);
    }
}

Improve check in method "on"

Improve check in method "on"


package com.psidox.saddlewoof.web.rest;

import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.container.ContainerRequestFilter;
import javax.ws.rs.container.PreMatching;
import javax.ws.rs.ext.Provider;
import java.io.IOException;

@Provider
@PreMatching
public class Interceptor implements ContainerRequestFilter {

    @Override
    public void filter(ContainerRequestContext reqContext) throws IOException {

//    	String request = "";
//        request += String.format("uri: %s %s %s\n", reqContext.getMethod(), reqContext.getUriInfo().getPath(), reqContext.getUriInfo().getQueryParameters().toString());
//    	request += String.format("lang: %s\n", reqContext.getAcceptableLanguages());
//    	request += String.format("media: %s\n", reqContext.getAcceptableMediaTypes());
//    	request += "headers:\n";
//    	for (String key: reqContext.getHeaders().keySet()) {
//    	   	request += String.format("+ %s: %s\n", key, reqContext.getHeaders().get(key));
//    	}
//		//request += String.format("body: %s\n", IOUtils.toString(reqContext.getEntityStream()));
//
//    	System.out.println(request);

    }
}

package com.psidox.saddlewoof.web.rest;

import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.container.ContainerRequestFilter;
import javax.ws.rs.container.PreMatching;
import javax.ws.rs.ext.Provider;
import java.io.IOException;

@Provider
@PreMatching
public class Interceptor implements ContainerRequestFilter {

    @Override
    public void filter(ContainerRequestContext reqContext) throws IOException {

    	String request = "";
        request += String.format("uri: %s %s %s\n", reqContext.getMethod(), reqContext.getUriInfo().getPath(), reqContext.getUriInfo().getQueryParameters().toString());
    	request += String.format("lang: %s\n", reqContext.getAcceptableLanguages());
    	request += String.format("media: %s\n", reqContext.getAcceptableMediaTypes());
    	request += "headers:\n";
    	for (String key: reqContext.getHeaders().keySet()) {
    	   	request += String.format("+ %s: %s\n", key, reqContext.getHeaders().get(key));
    	}
		//request += String.format("body: %s\n", IOUtils.toString(reqContext.getEntityStream()));

    	System.out.println(request);

    }
}

Add back logging for production debug

Add back logging for production debug


/**
 * Created by Eduardo veras on 19-Jun-16.
 * Edited by Siclait on 19-Juu-16
 */

import Entity.*;
import Service.*;

import java.util.List;

public class DatabaseManager {

    // Singleton Constructor
    private DatabaseManager(){

    }

    public static void BootDataBase(){

        List<User> users = UserORMService.GetInstance().FindAll();

        if(users.size() == 0)
        {
            System.out.println("\n\nCreating Admins ...");

            UserORMService.GetInstance().Create(new User("admin", "Administrator", "The", "admin", true));
            UserORMService.GetInstance().Create(new User("Wardo", "Eduardo", "Veras", "1234", true));
            UserORMService.GetInstance().Create(new User("EmmJ", "Emmanuel", "Jaquez", "1234", true));
            UserORMService.GetInstance().Create(new User("Djsiclait", "Djidjelly", "Siclait", "1234", true));

            System.out.println("Admins created successfully!\n");
        }
        else
            System.out.println("\n\nDatabase already created!\n");

    }
}

/**
 * Created by Eduardo veras on 19-Jun-16.
 * Edited by Siclait on 19-Juu-16
 */

import Entity.*;
import Service.*;

import java.util.List;

public class DatabaseManager {

    // Singleton Constructor
    private DatabaseManager(){

    }

    public static void BootDataBase(){

        List<User> users = UserORMService.GetInstance().FindAll();

        if(users.size() == 0)
        {
            System.out.println("\n\nCreating Admins ...");

            UserORMService.GetInstance().Create(new User("admin", "Administrator", "The", "admin", true));
            UserORMService.GetInstance().Create(new User("Wardo", "Eduardo", "Veras", "1234", true));
            UserORMService.GetInstance().Create(new User("EmmJ", "Emmanuel", "Jaquez", "1234", true));
            UserORMService.GetInstance().Create(new User("Djsiclait", "Djidjelly", "Siclait", "1234", true));

            System.out.println("Admins created successfully!\n");
        }
        else
            System.out.println("\n\nDatabase already created!\n");

    }

    // Database Commands
    public static boolean CheckUserCredentials(String option){ return false; }

    public static void MakeAdmin(){ }

}

Add data base root commands

Add data base root commands


package info.u_team.u_team_test.init;

import info.u_team.u_team_core.util.registry.CommonDeferredRegister;
import info.u_team.u_team_test.TestMod;
import net.minecraft.util.*;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.ForgeRegistries;

public class TestSounds {

	public static final CommonDeferredRegister<SoundEvent> SOUND_EVENTS = CommonDeferredRegister.create(ForgeRegistries.SOUND_EVENTS, TestMod.MODID);

	public static final RegistryObject<SoundEvent> BETTER_ENDERPEARL_USE = SOUND_EVENTS.register("better_enderpearl_use", SoundEvent::new);

	public static void register(IEventBus bus) {
		SOUND_EVENTS.register(bus);
	}

}

package info.u_team.u_team_test.init;

import info.u_team.u_team_core.util.registry.CommonDeferredRegister;
import info.u_team.u_team_test.TestMod;
import net.minecraft.util.SoundEvent;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.ForgeRegistries;

public class TestSounds {

	public static final CommonDeferredRegister<SoundEvent> SOUND_EVENTS = CommonDeferredRegister.create(ForgeRegistries.SOUND_EVENTS, TestMod.MODID);

	public static final RegistryObject<SoundEvent> BETTER_ENDERPEARL_USE = SOUND_EVENTS.register("better_enderpearl_use", SoundEvent::new);

	public static void register(IEventBus bus) {
		SOUND_EVENTS.register(bus);
	}

}

Fix imports in test sounds

Fix imports in test sounds


package edu.vse.configuration;

import edu.vse.filters.LoggingContextFilter;
import edu.vse.filters.RequestLoggingFilter;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FiltersConfig {

    @Bean
    public FilterRegistrationBean loggingContextFilter() {
        LoggingContextFilter loggingContextFilter = new LoggingContextFilter();
        FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean(loggingContextFilter);
        filterRegistrationBean.setOrder(1);
        return filterRegistrationBean;
    }

    @Bean
    public FilterRegistrationBean requestLoggingFilter() {
        RequestLoggingFilter requestLoggingFilter = new RequestLoggingFilter();
        FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean(requestLoggingFilter);
        filterRegistrationBean.setOrder(2);
        return filterRegistrationBean;
    }
}

package edu.vse.configuration;

import edu.vse.filters.LoggingContextFilter;
import edu.vse.filters.RequestLoggingFilter;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
import org.springframework.web.filter.CorsFilter;

@Configuration
public class FiltersConfig {

    @Bean
    public FilterRegistrationBean loggingContextFilter() {
        LoggingContextFilter loggingContextFilter = new LoggingContextFilter();
        FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean(loggingContextFilter);
        filterRegistrationBean.setOrder(1);
        return filterRegistrationBean;
    }

    @Bean
    public FilterRegistrationBean requestLoggingFilter() {
        RequestLoggingFilter requestLoggingFilter = new RequestLoggingFilter();
        FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean(requestLoggingFilter);
        filterRegistrationBean.setOrder(2);
        return filterRegistrationBean;
    }

    @Bean
    public FilterRegistrationBean corsFilter() {
        UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
        CorsConfiguration config = new CorsConfiguration();
        config.setAllowCredentials(true);
        config.addAllowedOrigin("*");
        config.addAllowedHeader("*");
        config.addAllowedMethod("*");
        source.registerCorsConfiguration("/**", config);
        FilterRegistrationBean bean = new FilterRegistrationBean(new CorsFilter(source));
        bean.setOrder(0);
        return bean;
    }
}

Enable cross origin for development

Enable cross origin for development


/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package io.appium.java_client.pagefactory;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.concurrent.TimeUnit;

/**
 * This annotation is used when some element waits for time
 * that differs from defined by default
 */
@Retention(RetentionPolicy.RUNTIME) @Target({ElementType.FIELD})
public @interface WithTimeout {
    /**
     * Desired waiting duration.
     *
     * @return waiting duration
     */
    long time();

    /**
     * Desired time unit.
     *
     * @return time unit
     */
    TimeUnit unit();
}

/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package io.appium.java_client.pagefactory;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.concurrent.TimeUnit;

/**
 * This annotation is used when some element waits for time
 * that differs from defined by default.
 */
@Retention(RetentionPolicy.RUNTIME) @Target({ElementType.FIELD})
public @interface WithTimeout {
    /**
     * Desired waiting duration.
     *
     * @return waiting duration
     */
    long time();

    /**
     * Desired time unit.
     *
     * @return time unit
     */
    TimeUnit unit();
}

Fix checkstyle violation: add missing period to javadoc


/*
 * Mutability Detector
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 *
 * Further licensing information for this project can be found in
 * 		license/LICENSE.txt
 */

package org.mutabilitydetector.unittesting.matchers;

import org.mutabilitydetector.IAnalysisSession.IsImmutable;

public class MutabilityMatchers {

    public static AnalysisResultMatcher noWarningsAllowed() {
        return new NoWarningsAllowedMatcher();
    }

    public static IsImmutableMatcher areImmutable() {
        return new IsImmutableMatcher(IsImmutable.IMMUTABLE);
    }

    public static IsImmutableMatcher areNotImmutable() {
        return new IsImmutableMatcher(IsImmutable.NOT_IMMUTABLE);
    }
}

/*
 * Mutability Detector
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 *
 * Further licensing information for this project can be found in
 * 		license/LICENSE.txt
 */

package org.mutabilitydetector.unittesting.matchers;

import org.mutabilitydetector.IAnalysisSession.IsImmutable;

public class MutabilityMatchers {

    public static AnalysisResultMatcher noWarningsAllowed() {
        return new NoWarningsAllowedMatcher();
    }

    public static IsImmutableMatcher areImmutable() {
        return new IsImmutableMatcher(IsImmutable.IMMUTABLE);
    }

    public static IsImmutableMatcher areEffectivelyImmutable() {
        return new IsImmutableMatcher(IsImmutable.EFFECTIVELY_IMMUTABLE);
    }

    public static IsImmutableMatcher areNotImmutable() {
        return new IsImmutableMatcher(IsImmutable.NOT_IMMUTABLE);
    }
}

Add method to match effectively immutable.

git-svn-id: ed609ce04ec9e3c0bc25e071e87814dd6d976548@393 c7a0535c-eda6-11de-83d8-6d5adf01d787


package org.ossmeter.metricprovider.rascal.trans.model;

import com.googlecode.pongo.runtime.*;
import com.mongodb.*;
// protected region custom-imports on begin
// protected region custom-imports end

public class RascalMetrics extends PongoDB {

	public RascalMetrics() {}

	public RascalMetrics(DB db) {
		setDb(db);
	}

	protected MeasurementCollection measurements = null;

	// protected region custom-fields-and-methods on begin
	// protected region custom-fields-and-methods end

	public MeasurementCollection getMeasurements() {
		return measurements;
	}

	@Override
	public void setDb(DB db) {
		super.setDb(db);
		measurements = new MeasurementCollection(db.getCollection("RascalMetrics.measurements"));
		pongoCollections.add(measurements);
	}
}

package org.ossmeter.metricprovider.rascal.trans.model;

import com.googlecode.pongo.runtime.*;
import com.mongodb.*;
// protected region custom-imports on begin
// protected region custom-imports end

public class RascalMetrics extends PongoDB {
	private final String collectionName;

	public RascalMetrics(DB db, String collectionName) {
		this.collectionName = collectionName;
		setDb(db);
	}

	protected MeasurementCollection measurements = null;

	// protected region custom-fields-and-methods on begin
	// protected region custom-fields-and-methods end

	public MeasurementCollection getMeasurements() {
		return measurements;
	}

	@Override
	public void setDb(DB db) {
		super.setDb(db);
		measurements = new MeasurementCollection(db.getCollection("RascalMetrics.measurements"));
		pongoCollections.add(measurements);
	}
}

Fix for naming collections in Rascal metrics


package net.blay09.mods.cookingforblockheads.registry.recipe;

import com.google.common.collect.Lists;
import net.blay09.mods.cookingforblockheads.registry.CookingRegistry;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.item.crafting.Ingredient;
import net.minecraft.item.crafting.ShapedRecipes;
import net.minecraftforge.oredict.ShapedOreRecipe;

public class GeneralFoodRecipe extends FoodRecipe {

    public GeneralFoodRecipe(IRecipe recipe) {
        this.outputItem = recipe.getRecipeOutput();
        if (recipe instanceof ShapedRecipes) {
            this.recipeWidth = ((ShapedRecipes) recipe).getWidth();
        } else if (recipe instanceof ShapedOreRecipe) {
            this.recipeWidth = ((ShapedOreRecipe) recipe).getWidth();
        } else {
            this.recipeWidth = recipe.canFit(1, 1) ? 1 : recipe.canFit(2, 1) ? 2 : 3;
        }
        craftMatrix = Lists.newArrayList();
        for (Ingredient ingredient : recipe.getIngredients()) {
            if (ingredient != Ingredient.EMPTY) {
                boolean isToolItem = CookingRegistry.isToolItem(ingredient);
                craftMatrix.add(new FoodIngredient(ingredient, isToolItem));
            } else {
                craftMatrix.add(null);
            }
        }
    }

}

package net.blay09.mods.cookingforblockheads.registry.recipe;

import com.google.common.collect.Lists;
import net.blay09.mods.cookingforblockheads.registry.CookingRegistry;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.item.crafting.Ingredient;
import net.minecraft.item.crafting.ShapedRecipes;
import net.minecraftforge.common.crafting.IShapedRecipe;
import net.minecraftforge.oredict.ShapedOreRecipe;

public class GeneralFoodRecipe extends FoodRecipe {

    public GeneralFoodRecipe(IRecipe recipe) {
        this.outputItem = recipe.getRecipeOutput();
        if (recipe instanceof IShapedRecipe) {
            this.recipeWidth = ((IShapedRecipe) recipe).getRecipeWidth();
        } else {
            this.recipeWidth = recipe.canFit(1, 1) ? 1 : recipe.canFit(2, 2) ? 2 : 3;
        }
        craftMatrix = Lists.newArrayList();
        for (Ingredient ingredient : recipe.getIngredients()) {
            if (ingredient != Ingredient.EMPTY) {
                boolean isToolItem = CookingRegistry.isToolItem(ingredient);
                craftMatrix.add(new FoodIngredient(ingredient, isToolItem));
            } else {
                craftMatrix.add(null);
            }
        }
    }

}

Use new IShapedRecipe for more compatible width detection (alongside the fallback)

#348


package scheduler;

import os.OperatingSystem;
import readinstruction.ReadInstruction;

import java.util.LinkedList;
import java.util.Queue;

/**
 * Created by Karol on 2017-04-20.
 */
public class FcfsScheduler implements Scheduler {
    private Queue<ReadInstruction> waitingQueue;
    private OperatingSystem parentOs;

    public FcfsScheduler(){
        this.waitingQueue = new LinkedList<>();
    }

    @Override
    public void setOs(OperatingSystem parentOs) {
        this.parentOs = parentOs;
    }

    @Override
    public void push(ReadInstruction instruction) {

    }

    @Override
    public String getName() {
        return null;
    }

    @Override
    public void update(int time) {

    }
}

package scheduler;

import os.OperatingSystem;
import readinstruction.ReadInstruction;

import java.util.LinkedList;
import java.util.Queue;

/**
 * Created by Karol on 2017-04-20.
 */
public class FcfsScheduler implements Scheduler {
    private Queue<ReadInstruction> waitingQueue;
    private OperatingSystem parentOs;

    public FcfsScheduler(){
        this.waitingQueue = new LinkedList<>();
    }

    @Override
    public void setOs(OperatingSystem parentOs) {
        this.parentOs = parentOs;
    }

    @Override
    public void push(ReadInstruction instruction) {
        this.waitingQueue.add(instruction);
    }

    @Override
    public String getName() {
        return null;
    }

    @Override
    public void update(int time) {

    }
}

Implement build method of ReadInstructionBuilder


// Copyright (C) 2013 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package com.googlesource.gerrit.plugins.download.command;

import com.google.gerrit.extensions.annotations.Exports;
import com.google.gerrit.extensions.config.DownloadCommand;
import com.google.inject.AbstractModule;

public class DownloadCommandsModule extends AbstractModule {
  @Override
  protected void configure() {
    bind(DownloadCommand.class)
      .annotatedWith(Exports.named("Checkout"))
      .to(CheckoutCommand.class);

    bind(DownloadCommand.class)
      .annotatedWith(Exports.named("Cherry-Pick"))
      .to(CherryPickCommand.class);

    bind(DownloadCommand.class)
      .annotatedWith(Exports.named("Format-Patch"))
      .to(FormatPatchCommand.class);

    bind(DownloadCommand.class)
      .annotatedWith(Exports.named("Pull"))
      .to(PullCommand.class);

    bind(DownloadCommand.class)
      .annotatedWith(Exports.named("Repo-Download"))
      .to(RepoCommand.class);
  }
}

// Copyright (C) 2013 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package com.googlesource.gerrit.plugins.download.command;

import com.google.gerrit.extensions.annotations.Exports;
import com.google.gerrit.extensions.config.DownloadCommand;
import com.google.inject.AbstractModule;

public class DownloadCommandsModule extends AbstractModule {
  @Override
  protected void configure() {
    bind(DownloadCommand.class)
      .annotatedWith(Exports.named("Checkout"))
      .to(CheckoutCommand.class);

    bind(DownloadCommand.class)
      .annotatedWith(Exports.named("Cherry Pick"))
      .to(CherryPickCommand.class);

    bind(DownloadCommand.class)
      .annotatedWith(Exports.named("Format Patch"))
      .to(FormatPatchCommand.class);

    bind(DownloadCommand.class)
      .annotatedWith(Exports.named("Pull"))
      .to(PullCommand.class);

    bind(DownloadCommand.class)
      .annotatedWith(Exports.named("repo"))
      .to(RepoCommand.class);
  }
}

Clean up names of commands

Clean up names of commands

Remove the hyphen, this is horrible to read in the web UI.  Rename
"Repo Download" to "repo", matching the old style used before these
were ejected to a plugin.

Change-Id: I1a4a02b0ab39e8249f3d3dc3d42b88fe893a93f4


package net.morimekta.providence.util;

import net.morimekta.providence.PServiceCall;

import javax.annotation.Nullable;
import java.util.concurrent.TimeUnit;

/**
 * Interface handling the instrumentation of service calls.
 */
@FunctionalInterface
public interface ServiceCallInstrumentation {
    /**
     * After each service call this method is called with the duration, call and
     * response objects. Exceptions from the call is ignored, and will not affect
     * the response in any way.
     *
     * @param duration The duration of handling the service call in milliseconds,
     *                 including receiving and sending it. It does not include the
     *                 time receiving the first HTTP packet with the headers, or
     *                 waiting for free worker threads.
     * @param call     The call triggered.
     * @param response The response returned.
     */
    void afterCall(double duration,
                   @Nullable PServiceCall call,
                   @Nullable PServiceCall response);

    /**
     * Handy constant for calculating MS duration.
     */
    long NS_IN_MILLIS = TimeUnit.MILLISECONDS.toNanos(1);
}

package net.morimekta.providence.util;

import net.morimekta.providence.PServiceCall;

import javax.annotation.Nullable;
import java.util.concurrent.TimeUnit;

/**
 * Interface handling the instrumentation of service calls.
 */
@FunctionalInterface
public interface ServiceCallInstrumentation {
    /**
     * After each service call this method is called with the duration, call and
     * response objects. Exceptions from the call is ignored, and will not affect
     * the response in any way.
     *

     * Note that the timing may not include the whole stack time since receiving
     * the first packet, that is dependent on the specific implementation and the
     * limitations there. E.g. it does not include the time receiving the first
     * HTTP packet with the headers, or waiting for free worker threads when using
     * ProvidenceServlet.
     *
     * @param duration The duration of handling the service call in milliseconds,
     *                 including receiving and sending it.
     * @param call     The call triggered.
     * @param reply    The reply returned.
     */
    void afterCall(double duration,
                   @Nullable PServiceCall call,
                   @Nullable PServiceCall reply);

    /**
     * Handy constant for calculating MS duration.
     */
    long NS_IN_MILLIS = TimeUnit.MILLISECONDS.toNanos(1);
}

Fix comment relating HTTP to be more generic.


package com.google.heartrate.wearos.app.gatt.attributes;

import java.util.UUID;

/**
 * {@link GattAttribute} is an interface for all GATT (ATT) protocol attributes.
 * According to GATT, all attributes should have Universally Unique Identifier (UUID),
 * which is a standardized 128-bit format for a string ID used to uniquely identify information.
 */
public interface GattAttribute {

    /**
     * Get attribute UUID.
     *
     * @return attribute UUID
     */
    UUID getUUid();
}

Fix code style. Add blank line.

Fix code style. Add blank line.


package org.jvirtanen.parity.top;

public enum Side {
    BUY,
    SELL
}

package org.jvirtanen.parity.top;

/**
 * The order side.
 */
public enum Side {
    BUY,
    SELL
}

Add documentation for side in order book reconstruction


/*
 * Copyright (c) 2021, WSO2 Inc. (http://www.wso2.org).
 *
 * WSO2 Inc. licenses this file to you under the Apache License,
 * Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

package org.wso2.carbon.identity.claim.metadata.mgt.dao;

import org.wso2.carbon.user.core.claim.inmemory.ClaimConfig;

/**
 * Initialize the claim configuration of tenant to the tables.
 */
public interface ClaimConfigInitDAO {

    /**
     * Initialize the claim configuration of tenant to the database.
     *
     * @param claimConfig   Claim Configuration.
     * @param tenantId      Tenant Id.
     */
    void initClaimConfig(ClaimConfig claimConfig, int tenantId);
}

/*
 * Copyright (c) 2021, WSO2 Inc. (http://www.wso2.org).
 *
 * WSO2 Inc. licenses this file to you under the Apache License,
 * Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

package org.wso2.carbon.identity.claim.metadata.mgt.dao;

import org.wso2.carbon.identity.claim.metadata.mgt.exception.ClaimMetadataException;
import org.wso2.carbon.user.core.claim.inmemory.ClaimConfig;

/**
 * Initialize the claim configuration of tenant to the tables.
 */
public interface ClaimConfigInitDAO {

    /**
     * Initialize the claim configuration of tenant to the database.
     *
     * @param claimConfig Claim Configuration.
     * @param tenantId    Tenant Id.
     * @throws ClaimMetadataException Claim Meta data Exception.
     */
    void initClaimConfig(ClaimConfig claimConfig, int tenantId) throws ClaimMetadataException;
}

Add Exception for new created interface.


package devopsdistilled.operp.client.context;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.remoting.rmi.RmiProxyFactoryBean;

import devopsdistilled.operp.server.data.service.items.ItemService;

@Configuration
public class RmiContext {

	@Bean
	public RmiProxyFactoryBean itemService() {
		RmiProxyFactoryBean rmiProxy = new RmiProxyFactoryBean();
		rmiProxy.setServiceUrl("rmi://127.0.1.1:1099/ItemService");
		rmiProxy.setServiceInterface(ItemService.class);
		return rmiProxy;
	}
}

package devopsdistilled.operp.client.context;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.remoting.rmi.RmiProxyFactoryBean;

import devopsdistilled.operp.server.data.service.items.BrandService;
import devopsdistilled.operp.server.data.service.items.ItemService;
import devopsdistilled.operp.server.data.service.items.ProductService;

@Configuration
public class RmiContext {

	@Bean
	public RmiProxyFactoryBean itemService() {
		RmiProxyFactoryBean rmiProxy = new RmiProxyFactoryBean();
		rmiProxy.setServiceUrl("rmi://127.0.1.1:1099/ItemService");
		rmiProxy.setServiceInterface(ItemService.class);
		return rmiProxy;
	}

	@Bean
	public RmiProxyFactoryBean productService() {
		RmiProxyFactoryBean rmiProxy = new RmiProxyFactoryBean();
		rmiProxy.setServiceUrl("rmi://127.0.1.1:1099/ProductService");
		rmiProxy.setServiceInterface(ProductService.class);
		return rmiProxy;
	}

	@Bean
	public RmiProxyFactoryBean brandService() {
		RmiProxyFactoryBean rmiProxy = new RmiProxyFactoryBean();
		rmiProxy.setServiceUrl("rmi://127.0.1.1:1099/BrandService");
		rmiProxy.setServiceInterface(BrandService.class);
		return rmiProxy;
	}
}

Configure RmiProxy Bean for Product and Brand

OPEN - task 20: Create a working item module workflow
http://github.com/DevOpsDistilled/OpERP/issues/issue/20


package sssj;

import com.google.common.base.Preconditions;
import com.google.common.collect.ForwardingTable;
import com.google.common.collect.HashBasedTable;
import com.google.common.collect.Table;

public class Utils {

  public static double computeTau(double theta, double lambda) {
    Preconditions.checkArgument(theta > 0 && theta < 1);
    Preconditions.checkArgument(lambda > 0);
    double tau = 1 / lambda * Math.log(1 / theta);
    return tau;
  }

  public static class BatchResult extends ForwardingTable<Long, Long, Double> {
    private final HashBasedTable<Long, Long, Double> delegate = HashBasedTable.create();

    @Override
    protected Table<Long, Long, Double> delegate() {
      return delegate;
    }
  }

  public static enum IndexType {
    INVERTED, ALL_PAIRS, L2AP;
  }
}

package sssj;

import com.google.common.base.Preconditions;
import com.google.common.collect.ForwardingTable;
import com.google.common.collect.Table;
import com.google.common.collect.TreeBasedTable;

public class Utils {

  public static double computeTau(double theta, double lambda) {
    Preconditions.checkArgument(theta > 0 && theta < 1);
    Preconditions.checkArgument(lambda > 0);
    double tau = 1 / lambda * Math.log(1 / theta);
    return tau;
  }

  public static class BatchResult extends ForwardingTable<Long, Long, Double> {
    private final Table<Long, Long, Double> delegate = TreeBasedTable.create();

    @Override
    protected Table<Long, Long, Double> delegate() {
      return delegate;
    }
  }

  public static enum IndexType {
    INVERTED, ALL_PAIRS, L2AP;
  }
}

Sort results in minibatch mode

Sort results in minibatch mode


package org.xbean.jmx;

import junit.framework.TestCase;
import org.xbean.spring.context.ClassPathXmlApplicationContext;

/**
 * $Rev$
 */
public class JMXTest extends TestCase {
    public void testSimple() throws Exception {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("org/xbean/jmx/jmx-simple.xml");
        try {
            Object jmxService = context.getBean("jmxService");
            assertNotNull(jmxService);

            Object jmxExporter = context.getBean("jmxExporter");
            assertNotNull(jmxExporter);
        } finally {
            context.destroy();
        }
    }
}

package org.xbean.jmx;

import junit.framework.TestCase;
import org.xbean.spring.context.ClassPathXmlApplicationContext;

import java.util.List;

/**
 * $Rev$
 */
public class JMXTest extends TestCase {
    public void testSimple() throws Exception {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("org/xbean/jmx/jmx-simple.xml");
        try {
            Object jmxService = context.getBean("jmxService");
            assertNotNull(jmxService);

            Object jmxExporter = context.getBean("jmxExporter");
            assertNotNull(jmxExporter);
            assertTrue(jmxExporter instanceof MBeanExporter);
            List mbeans = ((MBeanExporter) jmxExporter).getMBeans();
            assertNotNull(mbeans);
            assertEquals(2, mbeans.size());
            assertSame(jmxService, mbeans.get(0));
            assertSame(jmxService, mbeans.get(1));
        } finally {
            context.destroy();
        }
    }
}

Add a few asserts to the test

Add a few asserts to the test

git-svn-id: c55cfc7c8893d43c3333f2d886128b43c8520716@380472 13f79535-47bb-0310-9956-ffa450edef68


// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.billing;

/**
 * A Plan knows about the billing calculations and the default quota for any tenant associated with the Plan.
 * The Plan can also enforce transitions from one plan to another.
 *
 * @author ogronnesby
 */
public interface Plan {

    /** Unique ID for the plan */
    PlanId id();

    /** A string to be used for display purposes */
    String displayName();

    /** The cost calculator for this plan */
    CostCalculator calculator();

    /** The quota for this plan */
    QuotaCalculator quota();

}

// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.billing;

/**
 * A Plan knows about the billing calculations and the default quota for any tenant associated with the Plan.
 * The Plan can also enforce transitions from one plan to another.
 *
 * @author ogronnesby
 */
public interface Plan {

    /** Unique ID for the plan */
    PlanId id();

    /** A string to be used for display purposes */
    String displayName();

    /** The cost calculator for this plan */
    CostCalculator calculator();

    /** The quota for this plan */
    QuotaCalculator quota();

    /** Is this a plan that is billed */
    boolean isBilled();
}

Update interface for check if plan is billed


package com.xamoom.android.xamoomsdk.Utils;

import java.util.List;

/**
 * ListUtil to join lists of string.
 * (Because TextUtil gets mocked in tests)
 */
public class ListUtil {
  /**
   * Will return joined list with seperator.
   *
   * @param list List of Strings.
   * @param seperator String to seperate them.
   * @return Joined list.
   */
  public static String joinStringList(List<String> list, String seperator) {
    if (list == null || seperator == null) {
      return "";
    }

    StringBuilder sb = new StringBuilder();
    int counter = 0;
    for (String item : list) {
      counter++;
      sb.append(item);
      if (counter != list.size()) {
        sb.append(seperator);
      }
    }
    return sb.toString();
  }
}

package com.xamoom.android.xamoomsdk.Utils;

import java.util.List;

/**
 * ListUtil to join lists of string.
 * (Because TextUtil gets mocked in tests)
 */
public class ListUtil {
  /**
   * Will return joined list with seperator.
   *
   * @param list List of Strings.
   * @param seperator String to seperate them.
   * @return Joined list.
   */
  public static String joinStringList(List<String> list, String seperator) {
    if (list == null || seperator == null) {
      return "";
    }

    StringBuilder sb = new StringBuilder();
    sb.append("[");
    int counter = 0;
    for (String item : list) {
      counter++;
      sb.append("'");
      sb.append(item);
      sb.append("'");
      if (counter != list.size()) {
        sb.append(seperator);
      }
    }
    sb.append("]");
    return sb.toString();
  }
}

Fix for problem with tags

Fix for problem with tags


package com.example.mwismer.mobproto_finalproject;

import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

/**
 * Created by mwismer on 10/23/14.
 */
public class MyFragment extends Fragment{
    public MyFragment() {
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View rootView = inflater.inflate(R.layout.fragment_my, container, false);
        return rootView;
    }
}

package com.example.mwismer.mobproto_finalproject;

import android.app.Fragment;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothManager;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

/**
 * Created by mwismer on 10/23/14.
 */
public class MyFragment extends Fragment{
    private String TAG = "MyFragment";
    private BluetoothAdapter mBLEAdapter;

    public MyFragment() {
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View rootView = inflater.inflate(R.layout.fragment_my, container, false);
        final BluetoothManager bluetoothManager =
                (BluetoothManager) getActivity().getSystemService(Context.BLUETOOTH_SERVICE);
        mBLEAdapter = bluetoothManager.getAdapter();
        if (mBLEAdapter == null || !mBLEAdapter.isEnabled()) {
            Log.d(TAG, "Enabling Bluetooth");
            Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);
            getActivity().startActivityForResult(enableBtIntent, 20);
        }

        return rootView;
    }
}

Enable Bluetooth if not already enabled

Enable Bluetooth if not already enabled


package info.u_team.u_team_test.init;

import info.u_team.u_team_test.TestMod;
import info.u_team.u_team_test.potion.RadiationPotion;
import net.minecraft.potion.Potion;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus;
import net.minecraftforge.registries.*;

@EventBusSubscriber(modid = TestMod.MODID, bus = Bus.MOD)
public class TestPotions {

	public static final DeferredRegister<Potion> POTIONS = DeferredRegister.create(ForgeRegistries.POTION_TYPES, TestMod.MODID);

	public static final RegistryObject<Potion> RADIATION = POTIONS.register("radiation", () -> new RadiationPotion(1200, 0));
	public static final RegistryObject<Potion> RADIATION_LONG = POTIONS.register("radiation_long", () -> new RadiationPotion(2400, 1));
	public static final RegistryObject<Potion> RADIATION_EXTREME = POTIONS.register("radiation_extrem", () -> new RadiationPotion(1200, 2));

	public static void register(IEventBus bus) {
		POTIONS.register(bus);
	}

}

package info.u_team.u_team_test.init;

import info.u_team.u_team_test.TestMod;
import info.u_team.u_team_test.potion.RadiationPotion;
import net.minecraft.potion.Potion;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus;
import net.minecraftforge.registries.*;

@EventBusSubscriber(modid = TestMod.MODID, bus = Bus.MOD)
public class TestPotions {

	public static final DeferredRegister<Potion> POTIONS = DeferredRegister.create(ForgeRegistries.POTION_TYPES, TestMod.MODID);

	public static final RegistryObject<Potion> RADIATION = POTIONS.register("radiation", () -> new RadiationPotion(1200, 0));
	public static final RegistryObject<Potion> RADIATION_LONG = POTIONS.register("radiation_long", () -> new RadiationPotion(2400, 1));
	public static final RegistryObject<Potion> RADIATION_EXTREME = POTIONS.register("radiation_extreme", () -> new RadiationPotion(1200, 2));

	public static void register(IEventBus bus) {
		POTIONS.register(bus);
	}

}

Fix name not containing the e

Fix name not containing the e


/**
 * @author benjamin.hoffmeyer
 */
// package
package com.thedoctorslife.hello;

import com.thedoctorslife.hello.StuffUtils;

public class HelloWorld {

	public static void main(String[] args) {
		StuffUtils.hello();
		StuffUtils.cheese();
		StuffUtils.end();
	}
}

/**
 * @author benjamin.hoffmeyer
 */
// package
package com.thedoctorslife.hello;

public class HelloWorld {

	public static void main(String[] args) {
		StuffUtils.hello();
		StuffUtils.cheese();
		StuffUtils.end();
	}
}

Remove the import since they are in the same package.

Signed-off-by: TheDoctorsLife <5f15c2f87d000932be98132f8483e055af19d725@gmail.com>


package org.daisy.maven.xproc.pipeline;

import com.google.common.eventbus.Subscribe;

import org.daisy.common.messaging.Message;
import org.daisy.pipeline.event.EventBusProvider;

import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
import org.osgi.service.component.annotations.ReferenceCardinality;
import org.osgi.service.component.annotations.ReferencePolicy;

@Component
public class MessageEventListener {

	@Reference(
		name = "EventBusProvider",
		unbind = "-",
		service = EventBusProvider.class,
		cardinality = ReferenceCardinality.MANDATORY,
		policy = ReferencePolicy.STATIC
	)
	public void setEventBusProvider(EventBusProvider provider) {
		provider.get().register(this);
	}

	@Subscribe
	public synchronized void handleMessage(Message message) {
		System.out.printf("[%s] %s\n", message.getLevel(), message.getText());
	}
}

package org.daisy.maven.xproc.pipeline;

import com.google.common.eventbus.Subscribe;

import org.daisy.common.messaging.Message;
import org.daisy.pipeline.event.EventBusProvider;

import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
import org.osgi.service.component.annotations.ReferenceCardinality;
import org.osgi.service.component.annotations.ReferencePolicy;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Component
public class MessageEventListener {

	@Reference(
		name = "EventBusProvider",
		unbind = "-",
		service = EventBusProvider.class,
		cardinality = ReferenceCardinality.MANDATORY,
		policy = ReferencePolicy.STATIC
	)
	public void setEventBusProvider(EventBusProvider provider) {
		provider.get().register(this);
	}

	@Subscribe
	public synchronized void handleMessage(Message message) {
		String m = message.getText();
		switch (message.getLevel()) {
		case TRACE:
			logger.trace(m);
			break;
		case DEBUG:
			logger.debug(m);
			break;
		case INFO:
			logger.info(m);
			break;
		case WARNING:
			logger.warn(m);
			break;
		case ERROR:
			logger.error(m);
			break; }
	}

	private static final Logger logger = LoggerFactory.getLogger(MessageEventListener.class);

}

Use logback to print job messages

Use logback to print job messages