Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
p2
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cse332-20sp
p2
Commits
eb59d989
Commit
eb59d989
authored
8 years ago
by
Adam Blank
Browse files
Options
Downloads
Patches
Plain Diff
Hash -> Tree
parent
dfc6ad2c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/tests/gitlab/ckpt1/NGramToNextChoicesMapTests.java
+2
-2
2 additions, 2 deletions
src/tests/gitlab/ckpt1/NGramToNextChoicesMapTests.java
with
2 additions
and
2 deletions
src/tests/gitlab/ckpt1/NGramToNextChoicesMapTests.java
+
2
−
2
View file @
eb59d989
...
...
@@ -2,7 +2,7 @@ package tests.gitlab.ckpt1;
import
java.util.Arrays
;
import
java.util.Comparator
;
import
java.util.
Hash
Map
;
import
java.util.
Tree
Map
;
import
java.util.Map
;
import
java.util.function.Supplier
;
...
...
@@ -148,7 +148,7 @@ public class NGramToNextChoicesMapTests extends TestsUtility {
};
// yes this is awful, but i can't think of a better way to do it atm
Map
<
NGram
,
Item
<
String
,
Integer
>[]>
answers
=
new
Hash
Map
<>();
Map
<
NGram
,
Item
<
String
,
Integer
>[]>
answers
=
new
Tree
Map
<>();
answers
.
put
(
ngrams
[
0
],
(
Item
<
String
,
Integer
>[])
new
Item
[
3
]);
answers
.
get
(
ngrams
[
0
])[
0
]
=
new
Item
<
String
,
Integer
>(
"bip"
,
1
);
answers
.
get
(
ngrams
[
0
])[
1
]
=
new
Item
<
String
,
Integer
>(
"boop"
,
1
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment