2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# File 'lib/wikidata/diff/total.rb', line 2
def self.accumulate_totals(diff_data, total)
total[:claims_added] += diff_data[:added_claims]
total[:claims_removed] += diff_data[:removed_claims]
total[:claims_changed] += diff_data[:changed_claims]
total[:qualifiers_added] += diff_data[:added_qualifiers]
total[:qualifiers_removed] += diff_data[:removed_qualifiers]
total[:qualifiers_changed] += diff_data[:changed_qualifiers]
total[:references_added] += diff_data[:added_references]
total[:references_removed] += diff_data[:removed_references]
total[:references_changed] += diff_data[:changed_references]
total[:aliases_added] += diff_data[:added_aliases]
total[:aliases_removed] += diff_data[:removed_aliases]
total[:aliases_changed] += diff_data[:changed_aliases]
total[:labels_added] += diff_data[:added_labels]
total[:labels_removed] += diff_data[:removed_labels]
total[:labels_changed] += diff_data[:changed_labels]
total[:descriptions_added] += diff_data[:added_descriptions]
total[:descriptions_removed] += diff_data[:removed_descriptions]
total[:descriptions_changed] += diff_data[:changed_descriptions]
total[:sitelinks_added] += diff_data[:added_sitelinks]
total[:sitelinks_removed] += diff_data[:removed_sitelinks]
total[:sitelinks_changed] += diff_data[:changed_sitelinks]
total[:lemmas_added] += diff_data[:added_lemmas]
total[:lemmas_removed] += diff_data[:removed_lemmas]
total[:lemmas_changed] += diff_data[:changed_lemmas]
total[:forms_added] += diff_data[:added_forms]
total[:forms_removed] += diff_data[:removed_forms]
total[:forms_changed] += diff_data[:changed_forms]
total[:representations_added] += diff_data[:added_representations]
total[:representations_removed] += diff_data[:removed_representations]
total[:representations_changed] += diff_data[:changed_representations]
total[:formclaims_added] += diff_data[:added_formclaims]
total[:formclaims_removed] += diff_data[:removed_formclaims]
total[:formclaims_changed] += diff_data[:changed_formclaims]
total[:senses_added] += diff_data[:added_senses]
total[:senses_removed] += diff_data[:removed_senses]
total[:senses_changed] += diff_data[:changed_senses]
total[:glosses_added] += diff_data[:added_glosses]
total[:glosses_removed] += diff_data[:removed_glosses]
total[:glosses_changed] += diff_data[:changed_glosses]
total[:senseclaims_added] += diff_data[:added_senseclaims]
total[:senseclaims_removed] += diff_data[:removed_senseclaims]
total[:senseclaims_changed] += diff_data[:changed_senseclaims]
total[:merge_from] += diff_data[:merge_from]
total[:merge_to] += diff_data[:merge_to]
total[:undo] += diff_data[:undo]
total[:restore] += diff_data[:restore]
total[:clear_item] += diff_data[:clear_item]
total[:create_item] += diff_data[:create_item]
total[:create_property] += diff_data[:create_property]
total[:create_lexeme] += diff_data[:create_lexeme]
total[:redirect] += diff_data[:redirect]
end
|