Skip to content

Commit

Permalink
Added copyright & OpenAPI
Browse files Browse the repository at this point in the history
Dimitris committed Feb 16, 2022
1 parent 4637324 commit 6176a8a
Showing 9 changed files with 99 additions and 9 deletions.
11 changes: 6 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
@@ -46,13 +46,14 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>

<!-- OpenAPI -->
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<version>1.5.2</version>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<version>1.5.2</version>
</dependency>

</dependencies>

<build>
12 changes: 10 additions & 2 deletions src/main/java/gr/zisis/reusabilityapi/Application.java
Original file line number Diff line number Diff line change
@@ -9,10 +9,18 @@
import org.springframework.web.reactive.function.client.ExchangeStrategies;
import org.springframework.web.reactive.function.client.WebClient;

/**
* @author George Digkas <digasgeo@gmail.com>
/*
*
* * Copyright (C) 2021 UoM - University of Macedonia
* *
* * This program and the accompanying materials are made available under the
* * terms of the Eclipse Public License 2.0 which is available at
* * https://www.eclipse.org/legal/epl-2.0/
* *
* * SPDX-License-Identifier: EPL-2.0
*
*/

@SpringBootApplication(exclude = {
DataSourceAutoConfiguration.class,
DataSourceTransactionManagerAutoConfiguration.class,
Original file line number Diff line number Diff line change
@@ -9,6 +9,18 @@

import gr.zisis.reusabilityapi.service.ReusabilityService;

/*
*
* * Copyright (C) 2021 UoM - University of Macedonia
* *
* * This program and the accompanying materials are made available under the
* * terms of the Eclipse Public License 2.0 which is available at
* * https://www.eclipse.org/legal/epl-2.0/
* *
* * SPDX-License-Identifier: EPL-2.0
*
*/

@RestController
@RequestMapping(value = "/api")
public class ReusabilityController {
Original file line number Diff line number Diff line change
@@ -3,6 +3,18 @@
import java.math.BigDecimal;
import java.util.Objects;

/*
*
* * Copyright (C) 2021 UoM - University of Macedonia
* *
* * This program and the accompanying materials are made available under the
* * terms of the Eclipse Public License 2.0 which is available at
* * https://www.eclipse.org/legal/epl-2.0/
* *
* * SPDX-License-Identifier: EPL-2.0
*
*/

public class FileReusabilityIndex implements Comparable<FileReusabilityIndex>{
private String sha;
private Long revisionCount;
Original file line number Diff line number Diff line change
@@ -2,6 +2,18 @@

import java.util.Objects;

/*
*
* * Copyright (C) 2021 UoM - University of Macedonia
* *
* * This program and the accompanying materials are made available under the
* * terms of the Eclipse Public License 2.0 which is available at
* * https://www.eclipse.org/legal/epl-2.0/
* *
* * SPDX-License-Identifier: EPL-2.0
*
*/

public class ProjectReusabilityIndex implements Comparable<ProjectReusabilityIndex> {
private String sha;
private Long revisionCount;
12 changes: 12 additions & 0 deletions src/main/java/gr/zisis/reusabilityapi/domain/AnalyzedCommits.java
Original file line number Diff line number Diff line change
@@ -2,6 +2,18 @@

import java.util.Objects;

/*
*
* * Copyright (C) 2021 UoM - University of Macedonia
* *
* * This program and the accompanying materials are made available under the
* * terms of the Eclipse Public License 2.0 which is available at
* * https://www.eclipse.org/legal/epl-2.0/
* *
* * SPDX-License-Identifier: EPL-2.0
*
*/

public class AnalyzedCommits implements Comparable<AnalyzedCommits> {
private String sha;
private Long revisionCount;
Original file line number Diff line number Diff line change
@@ -3,6 +3,18 @@
import java.math.BigDecimal;
import java.math.BigInteger;

/*
*
* * Copyright (C) 2021 UoM - University of Macedonia
* *
* * This program and the accompanying materials are made available under the
* * terms of the Eclipse Public License 2.0 which is available at
* * https://www.eclipse.org/legal/epl-2.0/
* *
* * SPDX-License-Identifier: EPL-2.0
*
*/

public class ReusabilityMetrics {
private String sha;
private Long revisionCount;
Original file line number Diff line number Diff line change
@@ -4,6 +4,18 @@

import gr.zisis.reusabilityapi.controller.response.entity.*;

/*
*
* * Copyright (C) 2021 UoM - University of Macedonia
* *
* * This program and the accompanying materials are made available under the
* * terms of the Eclipse Public License 2.0 which is available at
* * https://www.eclipse.org/legal/epl-2.0/
* *
* * SPDX-License-Identifier: EPL-2.0
*
*/

/**
* @author Dimitrios Zisis <zisisndimitris@gmail.com>
*
Original file line number Diff line number Diff line change
@@ -10,9 +10,18 @@

import static java.lang.Math.log10;

/**
* @author George Digkas <digasgeo@gmail.com>
/*
*
* * Copyright (C) 2021 UoM - University of Macedonia
* *
* * This program and the accompanying materials are made available under the
* * terms of the Eclipse Public License 2.0 which is available at
* * https://www.eclipse.org/legal/epl-2.0/
* *
* * SPDX-License-Identifier: EPL-2.0
*
*/

@Service
public class ReusabilityServiceBean implements ReusabilityService {

0 comments on commit 6176a8a

Please sign in to comment.