Skip to content

Commit ecd6d5c

Browse files
committed
Merge branch 'master' of github.com:cqfn/jpeek
2 parents 85447bf + 1f63ccc commit ecd6d5c

File tree

13 files changed

+22
-22
lines changed

13 files changed

+22
-22
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ Then, we have a collection of XSL stylesheets, one per each metric. For example,
260260
<title>MMAC</title>
261261
<app>
262262
<class id='InstantiatorProvider' value='1'/>
263-
<class id='InstantationException' value='0'/>
263+
<class id='InstantiationException' value='0'/>
264264
<class id='AnswersValidator' value='0.0583'/>
265265
<class id='ClassNode' value='0.25'/>
266266
[... skipped ...]

src/main/java/org/jpeek/skeleton/TypesOf.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ final class TypesOf extends SignatureVisitor implements Iterable<Directive> {
3838
/**
3939
* Method signature.
4040
*/
41-
private final String singature;
41+
private final String signature;
4242

4343
/**
4444
* Is it return type?
@@ -52,14 +52,14 @@ final class TypesOf extends SignatureVisitor implements Iterable<Directive> {
5252
TypesOf(final String sign) {
5353
super(Opcodes.ASM6);
5454
this.types = new LinkedList<>();
55-
this.singature = sign;
55+
this.signature = sign;
5656
this.rtype = new AtomicReference<>();
5757
this.ret = new AtomicBoolean();
5858
}
5959

6060
@Override
6161
public Iterator<Directive> iterator() {
62-
new SignatureReader(this.singature).accept(this);
62+
new SignatureReader(this.signature).accept(this);
6363
final Directives dirs = new Directives().add("args");
6464
for (final String type : this.types) {
6565
dirs.add("arg").set("?").attr("type", type).up();

src/main/resources/org/jpeek/metrics/LCC.xsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
The key sentence is "The indirect connection relation is the **transitive closure** of direct connection relation".
4747
See https://en.wikipedia.org/wiki/Transitive_closure for more info on what is a Transitive Closure.
4848
We need to apply a Transitive Closure Algorithm on a graph of `directly-related-pairs`.
49-
A simpliest Transitive Closure algorithms has O(V³) time complexity and involves a mutable V×V table (V is amount of vertices).
49+
A simplest Transitive Closure algorithms has O(V³) time complexity and involves a mutable V×V table (V is amount of vertices).
5050
See https://www.geeksforgeeks.org/transitive-closure-of-a-graph/ for an example.
5151
-->
5252
<!--<xsl:variable name="indirectly-related-pairs">

src/main/resources/org/jpeek/metrics/TLCOM.xsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<xsl:text>
1313
"Transitive Lack of Cohesion in Methods" (TLCOM) expands upon
1414
the original definition for LCOM by extending the criteria for
15-
estabilishing relations between method pairs by also including cases
15+
establishing relations between method pairs by also including cases
1616
when a m1 calls m2 and m2 happens to use attribute a2 of the class. This
1717
then means that m1 transitively uses a2 via m2.
1818
The chain of calls can have more than one hop: if m1 calls m2 which calls

src/main/resources/org/jpeek/templates.xsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<link rel="shortcut icon" href="https://www.jpeek.org/logo.png"/>
1818
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/yegor256/tacit@gh-pages/tacit-css.min.css"/>
1919
<link rel="stylesheet" href="jpeek.css"/>
20-
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/sortable/0.8.0/js/sortable.min.js">&#xA0;</script>
20+
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/sortable/0.8.0/js/sortable.min.js"> </script>
2121
<title>
2222
<xsl:value-of select="$title"/>
2323
</title>

src/main/resources/org/jpeek/web/index.xsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
<thead>
7171
<tr>
7272
<th>
73-
<xsl:text>&#xA0;</xsl:text>
73+
<xsl:text> </xsl:text>
7474
</th>
7575
<th>
7676
<xsl:text>Artifact</xsl:text>

src/main/resources/org/jpeek/web/mistakes.xsl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
</th>
6767
<th style="text-align:right;">
6868
<a href="https://en.wikipedia.org/wiki/Mean">
69-
<xsl:text>&#x3BC;</xsl:text>
69+
<xsl:text>μ</xsl:text>
7070
</a>
7171
<a href="#4">
7272
<sup>
@@ -76,7 +76,7 @@
7676
</th>
7777
<th style="text-align:right;">
7878
<a href="https://en.wikipedia.org/wiki/Standard_deviation">
79-
<xsl:text>&#x3C3;</xsl:text>
79+
<xsl:text>σ</xsl:text>
8080
</a>
8181
<a href="#4">
8282
<sup>
@@ -127,19 +127,19 @@
127127
<sup id="4">
128128
<xsl:text>4</xsl:text>
129129
</sup>
130-
<xsl:text>&#x3BC; and &#x3C3; are taken from the projects where
130+
<xsl:text>μ and σ are taken from the projects where
131131
the amount of defects is less than 10% and the amount of
132132
classes is more than 200.</xsl:text>
133133
<sup id="5">
134134
<xsl:text>5</xsl:text>
135135
</sup>
136136
<xsl:text>"Artifact" is the name of the artifact where
137-
the best &#x3BC; and &#x3C3; were found.</xsl:text>
137+
the best μ and σ were found.</xsl:text>
138138
<sup id="6">
139139
<xsl:text>6</xsl:text>
140140
</sup>
141141
<xsl:text>"Champions" is the amount of projects we've tried
142-
in order to select the best &#x3BC; and &#x3C3;.</xsl:text>
142+
in order to select the best μ and σ.</xsl:text>
143143
</p>
144144
</xsl:template>
145145
<xsl:template match="metric">

src/main/resources/org/jpeek/xsd/skeleton.xsd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
<xs:attribute name="p" use="required" type="xs:double">
166166
<xs:annotation>
167167
<xs:documentation>
168-
Probability of the topic's occurence in the method.
168+
Probability of the topic's occurrence in the method.
169169
A decimal number between 0 and 1.
170170
</xs:documentation>
171171
</xs:annotation>

src/main/resources/org/jpeek/xsl/index.xsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
</th>
5252
<th>
5353
<a href="https://en.wikipedia.org/wiki/Mean">
54-
<xsl:text>&#x3BC;</xsl:text>
54+
<xsl:text>μ</xsl:text>
5555
</a>
5656
<a href="#3">
5757
<sup>
@@ -61,7 +61,7 @@
6161
</th>
6262
<th>
6363
<a href="https://en.wikipedia.org/wiki/Standard_deviation">
64-
<xsl:text>&#x3C3;</xsl:text>
64+
<xsl:text>σ</xsl:text>
6565
</a>
6666
<a href="#3">
6767
<sup>

src/main/resources/org/jpeek/xsl/matrix.xsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<link rel="shortcut icon" href="https://www.jpeek.org/logo.png"/>
1616
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/yegor256/tacit@gh-pages/tacit-css.min.css"/>
1717
<link rel="stylesheet" href="jpeek.css"/>
18-
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/sortable/0.8.0/js/sortable.min.js">&#xA0;</script>
18+
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/sortable/0.8.0/js/sortable.min.js"> </script>
1919
<title>
2020
<xsl:text>matrix</xsl:text>
2121
</title>
@@ -122,7 +122,7 @@
122122
</xsl:choose>
123123
<xsl:text>;</xsl:text>
124124
</xsl:attribute>
125-
<xsl:text>&#xA0;</xsl:text>
125+
<xsl:text> </xsl:text>
126126
</td>
127127
</xsl:template>
128128
</xsl:stylesheet>

0 commit comments

Comments
 (0)