Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
variety
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-gitdep
variety
Commits
f4a0f5de
Commit
f4a0f5de
authored
Mar 17, 2016
by
TimLudwinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added optional logging of new key types
parent
9895a4d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
variety.js
variety.js
+7
-0
No files found.
variety.js
View file @
f4a0f5de
...
@@ -81,6 +81,7 @@ var readConfig = function(configProvider) {
...
@@ -81,6 +81,7 @@ var readConfig = function(configProvider) {
read
(
'resultsCollection'
,
collection
+
'Keys'
);
read
(
'resultsCollection'
,
collection
+
'Keys'
);
read
(
'resultsUser'
,
null
);
read
(
'resultsUser'
,
null
);
read
(
'resultsPass'
,
null
);
read
(
'resultsPass'
,
null
);
read
(
'logKeysContinuously'
,
false
);
return
config
;
return
config
;
};
};
...
@@ -230,6 +231,9 @@ var mergeDocument = function(docResult, interimResults) {
...
@@ -230,6 +231,9 @@ var mergeDocument = function(docResult, interimResults) {
existing
.
types
[
type
]
=
existing
.
types
[
type
]
+
1
;
existing
.
types
[
type
]
=
existing
.
types
[
type
]
+
1
;
}
else
{
}
else
{
existing
.
types
[
type
]
=
1
;
existing
.
types
[
type
]
=
1
;
if
(
config
.
logKeysContinuously
)
{
log
(
'Found new key type "'
+
key
+
'" type "'
+
type
'"'
);
}
}
}
}
}
existing
.
totalOccurrences
=
existing
.
totalOccurrences
+
1
;
existing
.
totalOccurrences
=
existing
.
totalOccurrences
+
1
;
...
@@ -237,6 +241,9 @@ var mergeDocument = function(docResult, interimResults) {
...
@@ -237,6 +241,9 @@ var mergeDocument = function(docResult, interimResults) {
var
types
=
{};
var
types
=
{};
for
(
var
newType
in
docResult
[
key
])
{
for
(
var
newType
in
docResult
[
key
])
{
types
[
newType
]
=
1
;
types
[
newType
]
=
1
;
if
(
config
.
logKeysContinuously
)
{
log
(
'Found new key type "'
+
key
+
'" type "'
+
newType
'"'
);
}
}
}
interimResults
[
key
]
=
{
'types'
:
types
,
'totalOccurrences'
:
1
};
interimResults
[
key
]
=
{
'types'
:
types
,
'totalOccurrences'
:
1
};
}
}
...
...
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