Skip to content

Commit f100f15

Browse files
committed
Update example data. Single line only for slate generation scripts.
1 parent 42ecec3 commit f100f15

14 files changed

+17
-70
lines changed

.rubocop_todo.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2019-11-04 18:38:39 +0000 using RuboCop version 0.76.0.
3+
# on 2019-11-07 23:16:01 +0000 using RuboCop version 0.76.0.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
@@ -40,7 +40,6 @@ Metrics/PerceivedComplexity:
4040
Max: 8
4141

4242
# Offense count: 10
43-
# Rubocop not hip to RDoc directives.
4443
Style/CommentedKeyword:
4544
Exclude:
4645
- 'lib/address_parameter.rb'
@@ -76,9 +75,9 @@ Style/IfUnlessModifier:
7675
Style/RaiseArgs:
7776
EnforcedStyle: compact
7877

79-
# Offense count: 15
78+
# Offense count: 25
8079
# Cop supports --auto-correct.
8180
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
8281
# URISchemes: http, https
8382
Metrics/LineLength:
84-
Max: 208
83+
Max: 772

examples/categories.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
RosetteAPI.new(api_key)
1111
end
1212

13-
categories_url_data =
14-
'https://onlocationvacations.com/2015/03/05/the-new-ghostbusters-movie-' \
15-
'begins-filming-in-boston-in-june/'
13+
categories_url_data = 'https://onlocationvacations.com/2018/02/06/downton-abbey-exhibition-extended-april-2-nyc/'
1614
begin
1715
params = DocumentParameters.new(content_uri: categories_url_data)
1816
response = rosette_api.get_categories(params)

examples/entities.rb

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,7 @@
1010
RosetteAPI.new(api_key)
1111
end
1212

13-
entities_text_data = 'The Securities and Exchange Commission today ' \
14-
'announced the leadership of the agency\'s trial unit. Bridget Fitzpatrick ' \
15-
'has been named Chief Litigation Counsel of the SEC and David Gottesman ' \
16-
'will continue to serve as the agency\'s Deputy Chief Litigation Counsel. ' \
17-
'Since December 2016, Ms. Fitzpatrick and Mr. Gottesman have served as ' \
18-
'Co-Acting Chief Litigation Counsel. In that role, they were jointly ' \
19-
'responsible for supervising the trial unit at the agency\'s Washington ' \
20-
'D.C. headquarters as well as coordinating with litigators in the SEC\'s ' \
21-
'11 regional offices around the country.'
13+
entities_text_data = 'The Securities and Exchange Commission today announced the leadership of the agency\'s trial unit. Bridget Fitzpatrick has been named Chief Litigation Counsel of the SEC and David Gottesman will continue to serve as the agency\'s Deputy Chief Litigation Counsel. Since December 2016, Ms. Fitzpatrick and Mr. Gottesman have served as Co-Acting Chief Litigation Counsel. In that role, they were jointly responsible for supervising the trial unit at the agency\'s Washington D.C. headquarters as well as coordinating with litigators in the SEC\'s 11 regional offices around the country.'
2214
begin
2315
params = DocumentParameters.new(content: entities_text_data,
2416
genre: 'social-media')

examples/language_multilingual.rb

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,7 @@
1010
RosetteAPI.new(api_key)
1111
end
1212

13-
language_multilingual_data = 'On Thursday, as protesters gathered in ' \
14-
'Washington D.C., the United States Federal Communications Commission ' \
15-
'under Chairman Ajit Pai voted 3-2 to overturn a 2015 decision, commonly ' \
16-
'called Net Neutrality, that forbade Internet service providers (ISPs) ' \
17-
'such as Verizon, Comcast, and AT&T from blocking individual websites or ' \
18-
'charging websites or customers more for faster load times. Quatre ' \
19-
'femmes ont été nommées au Conseil de rédaction de la loi du Qatar. Jeudi, ' \
20-
'le décret royal du Qatar a annoncé que 28 nouveaux membres ont été nommés ' \
21-
'pour le Conseil de la Choura du pays. ذكرت مصادر أمنية يونانية، أن 9 موقوفين من منظمة \"د هـ ك ب ج\" الذين كانت قد أوقفتهم الشرطة اليونانية في وقت سابق كانوا يخططون لاغتيال الرئيس التركي رجب طيب أردوغان.'
13+
language_multilingual_data = 'On Thursday, as protesters gathered in Washington D.C., the United States Federal Communications Commission under Chairman Ajit Pai voted 3-2 to overturn a 2015 decision, commonly called Net Neutrality, that forbade Internet service providers (ISPs) such as Verizon, Comcast, and AT&T from blocking individual websites or charging websites or customers more for faster load times. Quatre femmes ont été nommées au Conseil de rédaction de la loi du Qatar. Jeudi, le décret royal du Qatar a annoncé que 28 nouveaux membres ont été nommés pour le Conseil de la Choura du pays. ذكرت مصادر أمنية يونانية، أن 9 موقوفين من منظمة \"د هـ ك ب ج\" الذين كانت قد أوقفتهم الشرطة اليونانية في وقت سابق كانوا يخططون لاغتيال الرئيس التركي رجب طيب أردوغان.'
2214

2315
begin
2416
params = DocumentParameters.new(content: language_multilingual_data)

examples/morphology_complete.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
RosetteAPI.new(api_key)
1111
end
1212

13-
morphology_complete_data = 'The quick brown fox jumped over the lazy ' \
14-
'dog. 👍🏾 Yes he did. B)'
13+
morphology_complete_data = 'The quick brown fox jumped over the lazy dog. 👍🏾 Yes he did. B)'
1514
begin
1615
params = DocumentParameters.new(content: morphology_complete_data)
1716
response = rosette_api.get_morphology_complete(params)

examples/morphology_lemmas.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
RosetteAPI.new(api_key)
1111
end
1212

13-
morphology_lemmas_data =
14-
'The fact is that the geese just went back to get a rest and I\'m not ' \
15-
'banking on their return soon'
13+
morphology_lemmas_data = 'The fact is that the geese just went back to get a rest and I\'m not banking on their return soon'
1614
begin
1715
params = DocumentParameters.new(content: morphology_lemmas_data)
1816
response = rosette_api.get_lemmas(params)

examples/morphology_parts_of_speech.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
RosetteAPI.new(api_key)
1111
end
1212

13-
morphology_parts_of_speech_data =
14-
'The fact is that the geese just went back to get a rest and I\'m not ' \
15-
'banking on their return soon'
13+
morphology_parts_of_speech_data = 'The fact is that the geese just went back to get a rest and I\'m not banking on their return soon'
1614
begin
1715
params = DocumentParameters.new(content: morphology_parts_of_speech_data)
1816
response = rosette_api.get_parts_of_speech(params)

examples/name_deduplication.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
RosetteAPI.new(api_key)
1111
end
1212

13-
name_dedupe_data = 'Alice Terry,Alice Thierry,Betty Grable,Betty Gable,' \
14-
'Norma Shearer,Norm Shearer,Brigitte Helm,Bridget Helem,Judy Holliday,' \
15-
'Julie Halliday'
13+
name_dedupe_data = 'Alice Terry,Alice Thierry,Betty Grable,Betty Gable,Norma Shearer,Norm Shearer,Brigitte Helm,Bridget Helem,Judy Holliday,Julie Halliday'
1614

1715
threshold = 0.75
1816
names = name_dedupe_data.split(',').map { |n| NameParameter.new(n) }

examples/relationships.rb

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,7 @@
1010
RosetteAPI.new(api_key)
1111
end
1212

13-
relationships_text_data = 'FLIR Systems is headquartered in Oregon and ' \
14-
'produces thermal imaging, night vision, and infrared cameras and sensor ' \
15-
'systems. According to the SEC\'s order instituting a settled ' \
16-
'administrative proceeding, FLIR entered into a multi-million dollar ' \
17-
'contract to provide thermal binoculars to the Saudi government in ' \
18-
'November 2008. Timms and Ramahi were the primary sales employees ' \
19-
'responsible for the contract, and also were involved in negotiations to ' \
20-
'sell FLIR\'s security cameras to the same government officials. At the ' \
21-
'time, Timms was the head of FLIR\'s Middle East office in Dubai.'
13+
relationships_text_data = 'FLIR Systems is headquartered in Oregon and produces thermal imaging, night vision, and infrared cameras and sensor systems. According to the SEC\'s order instituting a settled administrative proceeding, FLIR entered into a multi-million dollar contract to provide thermal binoculars to the Saudi government in November 2008. Timms and Ramahi were the primary sales employees responsible for the contract, and also were involved in negotiations to sell FLIR\'s security cameras to the same government officials. At the time, Timms was the head of FLIR\'s Middle East office in Dubai.'
2214

2315
begin
2416
params = DocumentParameters.new(content: relationships_text_data)

examples/sentences.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@
1010
RosetteAPI.new(api_key)
1111
end
1212

13-
sentences_data = 'This land is your land. This land is my land, from ' \
14-
'California to the New York island; from the red wood forest to the Gulf ' \
15-
'Stream waters. This land was made for you and Me. As I was walking that ' \
16-
'ribbon of highway, I saw above me that endless skyway: I saw below me ' \
17-
'that golden valley: This land was made for you and me.'
13+
sentences_data = 'This land is your land. This land is my land, from California to the New York island; from the red wood forest to the Gulf Stream waters. This land was made for you and Me. As I was walking that ribbon of highway, I saw above me that endless skyway: I saw below me that golden valley: This land was made for you and me.'
1814

1915
begin
2016
params = DocumentParameters.new

0 commit comments

Comments
 (0)