Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs2-19wi
project06
Commits
d533f59c
There was a problem fetching linked pipelines.
Commit
d533f59c
authored
6 years ago
by
Adam Blank
Browse files
Options
Download
Email Patches
Plain Diff
Misc. ErrorProne Fixes
parent
2b7bc29d
master
No related merge requests found
Pipeline
#7796
failed with stage
in 0 seconds
Changes
6
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
.idea/workspace.xml
+3
-3
.idea/workspace.xml
src/edu/caltech/cs2/datastructures/NGramMap.java
+2
-1
src/edu/caltech/cs2/datastructures/NGramMap.java
src/edu/caltech/cs2/interfaces/IPriorityQueue.java
+4
-2
src/edu/caltech/cs2/interfaces/IPriorityQueue.java
src/edu/caltech/cs2/misc/IntegerComparator.java
+2
-0
src/edu/caltech/cs2/misc/IntegerComparator.java
src/edu/caltech/cs2/types/NGram.java
+2
-1
src/edu/caltech/cs2/types/NGram.java
src/wordsuggestor/ParseFBMessages.java
+1
-1
src/wordsuggestor/ParseFBMessages.java
with
14 additions
and
8 deletions
+14
-8
.idea/workspace.xml
View file @
d533f59c
...
...
@@ -133,7 +133,7 @@
<entry
file=
"file://$PROJECT_DIR$/src/edu/caltech/cs2/datastructures/MinFourHeap.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"192"
>
<caret
line=
"8"
lean-forward=
"true"
selection-start-line=
"8"
selection-end-line=
"8"
/>
<caret
line=
"8"
selection-start-line=
"8"
selection-end-line=
"8"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
<element
signature=
"e#829#830#0"
expanded=
"true"
/>
...
...
@@ -242,7 +242,7 @@
</dirStrings>
</component>
<component
name=
"Git.Settings"
>
<option
name=
"RECENT_GIT_ROOT_PATH"
value=
"$PROJECT_DIR$
/../../..
"
/>
<option
name=
"RECENT_GIT_ROOT_PATH"
value=
"$PROJECT_DIR$"
/>
</component>
<component
name=
"IdeDocumentHistory"
>
<option
name=
"CHANGED_PATHS"
>
...
...
@@ -1348,7 +1348,7 @@
<entry
file=
"file://$PROJECT_DIR$/src/edu/caltech/cs2/datastructures/MinFourHeap.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"192"
>
<caret
line=
"8"
lean-forward=
"true"
selection-start-line=
"8"
selection-end-line=
"8"
/>
<caret
line=
"8"
selection-start-line=
"8"
selection-end-line=
"8"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
<element
signature=
"e#829#830#0"
expanded=
"true"
/>
...
...
This diff is collapsed.
Click to expand it.
src/edu/caltech/cs2/datastructures/NGramMap.java
View file @
d533f59c
...
...
@@ -100,6 +100,7 @@ public class NGramMap {
return
null
;
}
@Override
public
String
toString
()
{
return
map
.
toString
();
}
...
...
This diff is collapsed.
Click to expand it.
src/edu/caltech/cs2/interfaces/IPriorityQueue.java
View file @
d533f59c
...
...
@@ -15,10 +15,12 @@ public interface IPriorityQueue<E> extends IQueue<IPriorityQueue.PQElement<E>> {
this
.
priority
=
priority
;
}
@Override
public
int
hashCode
()
{
return
this
.
data
.
hashCode
();
}
@Override
public
boolean
equals
(
Object
o
)
{
if
(!(
o
instanceof
PQElement
))
{
return
false
;
...
...
@@ -26,7 +28,7 @@ public interface IPriorityQueue<E> extends IQueue<IPriorityQueue.PQElement<E>> {
return
this
.
data
.
equals
(((
PQElement
)
o
).
data
);
}
@Override
public
String
toString
()
{
return
"("
+
this
.
data
+
", "
+
this
.
priority
+
")"
;
}
...
...
This diff is collapsed.
Click to expand it.
src/edu/caltech/cs2/misc/IntegerComparator.java
View file @
d533f59c
...
...
@@ -3,6 +3,7 @@ package edu.caltech.cs2.misc;
import
java.util.Comparator
;
public
class
IntegerComparator
implements
Comparator
<
Integer
>
{
@Override
public
int
compare
(
Integer
a
,
Integer
b
)
{
if
(
a
<
b
)
{
return
-
1
;
...
...
@@ -13,6 +14,7 @@ public class IntegerComparator implements Comparator<Integer> {
return
1
;
}
@Override
public
boolean
equals
(
Object
obj
)
{
return
(
this
==
obj
);
}
...
...
This diff is collapsed.
Click to expand it.
src/edu/caltech/cs2/types/NGram.java
View file @
d533f59c
...
...
@@ -48,6 +48,7 @@ public class NGram implements Iterable<String>, Comparable<NGram> {
return
new
NGram
(
data
);
}
@Override
public
String
toString
()
{
String
result
=
""
;
String
prev
=
""
;
...
...
This diff is collapsed.
Click to expand it.
src/wordsuggestor/ParseFBMessages.java
View file @
d533f59c
...
...
@@ -41,7 +41,7 @@ public final class ParseFBMessages {
String
archive
=
args
[
1
];
IQueue
<
String
>
messages
=
new
ArrayDeque
<
String
>();
File
[]
listOfFiles
=
(
new
File
(
archive
+
File
.
separator
+
"messages"
)
)
.
listFiles
();
File
[]
listOfFiles
=
new
File
(
archive
+
File
.
separator
+
"messages"
).
listFiles
();
for
(
int
i
=
0
;
i
<
listOfFiles
.
length
;
i
++)
{
if
(
listOfFiles
[
i
].
isFile
())
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help