subtitle_shifter 1.0.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 Gabriel Fortuna
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,19 @@
1
+ = subtitle_shifter
2
+
3
+ A simple little gem for modifying SubRip subtitle files. Done as a mentoring exercise with Citizen428, and taken from the Ruby Programming Challenge For Newbies
4
+
5
+ == Contributing to subtitle_shifter
6
+
7
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
8
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
9
+ * Fork the project
10
+ * Start a feature/bugfix branch
11
+ * Commit and push until you are happy with your contribution
12
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
+
15
+ == Copyright
16
+
17
+ Copyright (c) 2011 Gabriel Fortuna. See LICENSE.txt for
18
+ further details.
19
+
data/Rakefile ADDED
@@ -0,0 +1,55 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+ require 'jeweler'
4
+
5
+ require './lib/subtitle_shifter'
6
+
7
+ Jeweler::Tasks.new do |gem|
8
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
9
+ gem.name = "subtitle_shifter"
10
+ gem.version = SubtitleShifter::Version::STRING
11
+ gem.homepage = "http://github.com/gee-forr/subtitle_shifter"
12
+ gem.license = "MIT"
13
+ gem.summary = %Q{A simple library for adjusting SubRip (.srt) subtitles}
14
+ gem.description = %Q{A simple little gem for modifying SubRip subtitle files. Done as a mentoring exercise with Citizen428, and taken from the Ruby Programming Challenge For Newbies}
15
+ gem.email = "gee.forr@gmail.com"
16
+ gem.authors = ["Gabriel Fortuna"]
17
+ gem.executables = ['shift_subtitle']
18
+
19
+ # Include your dependencies below. Runtime dependencies are required when using your gem,
20
+ # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
21
+ gem.add_development_dependency "minitest", ">= 0"
22
+ gem.add_development_dependency "bundler", "~> 1.0.0"
23
+ gem.add_development_dependency "jeweler", "~> 1.6.4"
24
+ gem.add_development_dependency "rcov", ">= 0"
25
+ gem.add_development_dependency "rdoc", ">= 0"
26
+ end
27
+
28
+ Jeweler::RubygemsDotOrgTasks.new
29
+
30
+ require 'rake/testtask'
31
+ Rake::TestTask.new(:test) do |test|
32
+ test.libs << 'lib' << 'test' << 'spec'
33
+ test.pattern = 'test/**/*_spec.rb'
34
+ test.verbose = true
35
+ end
36
+
37
+ require 'rcov/rcovtask'
38
+ Rcov::RcovTask.new do |test|
39
+ test.libs << 'test'
40
+ test.pattern = 'test/**/*_spec.rb'
41
+ test.verbose = true
42
+ test.rcov_opts << '--exclude "gems/*"'
43
+ end
44
+
45
+ task :default => :test
46
+
47
+ #require 'rdoc/task'
48
+ #RDoc::Task.new do |rdoc|
49
+ #version = File.exist?('VERSION') ? File.read('VERSION') : ""
50
+ #
51
+ #rdoc.rdoc_dir = 'rdoc'
52
+ #rdoc.title = "subtitle_shifter #{version}"
53
+ #rdoc.rdoc_files.include('README*')
54
+ #rdoc.rdoc_files.include('lib/**/*.rb')
55
+ #end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.0
@@ -0,0 +1,63 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'getoptlong'
4
+ require 'subtitle_shifter'
5
+ #shift_subtitle --operation add --time 02,110 input_file output_file
6
+
7
+ opts = GetoptLong.new(
8
+ ['--help', '-h', GetoptLong::NO_ARGUMENT],
9
+ ['--operation', '-o', GetoptLong::REQUIRED_ARGUMENT],
10
+ ['--index', '-i', GetoptLong::REQUIRED_ARGUMENT],
11
+ ['--time', '-t', GetoptLong::REQUIRED_ARGUMENT],
12
+ )
13
+
14
+ operation = 'add'
15
+ index = 1
16
+ time = 0
17
+
18
+ opts.each do |opt, arg|
19
+ case opt
20
+ when '--help'
21
+ puts <<-EOF
22
+ shift_subtitle [REQUIRED ARGUMENTS] input_file output_file
23
+
24
+ -h, --help:
25
+ show this help
26
+
27
+ --operation [add|sub], -o [add|sub]:
28
+ either add time to or subtract time from subtitles
29
+
30
+ --index [index], -i [index]:
31
+ choose from which index to start the operation
32
+
33
+ --time [time], -t [time]:
34
+ the amount of time shifted e.g. 10,500 - 10 seconds, 500 ms.
35
+
36
+ EOF
37
+
38
+ exit 0
39
+ when '--operation'
40
+ operation = (['add', 'sub'].index(arg)) ? arg : 'add'
41
+ when '--index'
42
+ index = arg.to_i
43
+ when '--time'
44
+ time_parts = arg.split(',')
45
+ time = (time_parts[0].to_i * 1000) + time_parts[1].to_i
46
+ end
47
+ end
48
+
49
+ if ARGV.length != 2
50
+ puts "Input and output files appear to be missing (try --help)"
51
+ exit 0
52
+ end
53
+
54
+ input = ARGV.shift
55
+ output = ARGV.shift
56
+ time = -time if operation.eql? 'sub' # Subtracting time works with negative numbers
57
+
58
+ subtitles = SubtitleShifter.new(input)
59
+ subtitles.shift(index: index, time: time)
60
+
61
+ puts subtitles
62
+
63
+ #puts "op = -#{operation}-, index = -#{index}-, time = -#{time}-, input = -#{input}-, output = -#{output}-"
Binary file
@@ -0,0 +1,130 @@
1
+
2
+ # encoding: UTF-8
3
+
4
+ class SubtitleShifter
5
+ module Version
6
+ MAJOR = 1
7
+ MINOR = 0
8
+ PATCH = 0
9
+ BUILD = 0
10
+
11
+ STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
12
+ end
13
+
14
+ attr_reader :subtitles, :parsed_ok
15
+
16
+ TIME_SEPERATOR = '-->'
17
+
18
+ def initialize(file, linebreak = "\r\n")
19
+ @sub_file = file
20
+ @linebreak = linebreak
21
+ end
22
+
23
+ def parse
24
+ raw_text = File.open(@sub_file, 'r').read.force_encoding('UTF-8')
25
+ raw_text.gsub!("\xEF\xBB\xBF".force_encoding("UTF-8"), '') #Remove stupid BOM that was causing me so much grief!
26
+
27
+ #raw_text = IO.read @sub_file
28
+ subtitle_parts = raw_text.split "#{@linebreak}#{@linebreak}"
29
+ @subtitles = {}
30
+
31
+ subtitle_parts.each do |subtitle|
32
+ @subtitles.update extract_sub_data subtitle
33
+ end
34
+
35
+ # No longer needed due to removal of BOM
36
+ #fix_first_index # What a hack :(
37
+ @parsed_ok = true # Not very useful, but will help when error checking is added
38
+ end
39
+
40
+ def shift(args)
41
+ first = args[:index] # used for checking first go round.
42
+ index = first
43
+ shift = args[:time]
44
+
45
+ if shift < 0 # backward shift check
46
+ time1 = @subtitles[first][:start] + shift
47
+ time2 = @subtitles[first-1][:end]
48
+ raise RuntimeError, 'Cannot overlap backward shift' if time2 > time1
49
+ end
50
+
51
+ loop do
52
+ break unless @subtitles.has_key?(index)
53
+
54
+ @subtitles[index][:start] += shift
55
+ @subtitles[index][:end] += shift
56
+
57
+ index += 1
58
+ end
59
+ end
60
+
61
+ def to_s
62
+ raise RuntimeError, 'File has not been parsed yet' unless @parsed_ok
63
+
64
+ output = ''
65
+
66
+ @subtitles.sort.map do |index, sub|
67
+ start = ms_to_srt_time sub[:start]
68
+ fin = ms_to_srt_time sub[:end]
69
+
70
+ output += "#{index}#{@linebreak}#{start} #{TIME_SEPERATOR} #{fin}#{@linebreak}#{sub[:subtitle]}#{@linebreak}#{@linebreak}"
71
+ end
72
+
73
+ output.chomp
74
+ end
75
+
76
+ private
77
+
78
+ def extract_sub_data(subtitle)
79
+ s = subtitle.split @linebreak
80
+ times = s[1].split " #{TIME_SEPERATOR} "
81
+
82
+ {s[0].to_i => {
83
+ start: srt_time_to_ms(times[0]),
84
+ end: srt_time_to_ms(times[1]),
85
+ subtitle: s[2..-1].join(@linebreak)
86
+ }
87
+ }
88
+ end
89
+
90
+ def srt_time_to_ms(srt_time)
91
+ time_parts = parse_srt_time srt_time
92
+
93
+ hours_ms = time_parts[:hours] * 60 * 60 * 1000
94
+ mins_ms = time_parts[:mins] * 60 * 1000
95
+ secs_ms = time_parts[:secs] * 1000
96
+
97
+ hours_ms + mins_ms + secs_ms + time_parts[:ms]
98
+ end
99
+
100
+ def ms_to_srt_time(ms)
101
+ hours = (ms / (1000 * 60 *60)) % 60
102
+ minutes = (ms / (1000 * 60)) % 60
103
+ seconds = (ms / 1000) % 60
104
+ adj_ms = ms.to_s[-3..-1].to_i
105
+
106
+ "%02d:%02d:%02d,%03d" % [hours, minutes, seconds, adj_ms]
107
+ end
108
+
109
+ def parse_srt_time (srt_time)
110
+ # Time looks like: hh:mm:ss,ms
111
+ # ... 10:09:08,756
112
+ /^(\d+):(\d+):(\d+),(\d+)$/ =~ srt_time
113
+
114
+ {hours: $1.to_i,
115
+ mins: $2.to_i,
116
+ secs: $3.to_i,
117
+ ms: $4.to_i
118
+ }
119
+ end
120
+
121
+ # No longer needed due to fixing the BOM issue. But I'm leaving it in.
122
+ def fix_first_index
123
+ # This makes me feel *so* dirty :/
124
+ sub_arr = @subtitles.to_a
125
+ idx1 = sub_arr[0][0]
126
+ idx2 = sub_arr[1][0]
127
+
128
+ @subtitles[idx2 - 1] = @subtitles.delete idx1 # At least I learnt this trick :) How to rename a hash key
129
+ end
130
+ end
@@ -0,0 +1,37 @@
1
+ 46
2
+ 00:02:53,610 --> 00:02:57,196
3
+ ♪ Our whole universe
4
+ was in a hot, dense state ♪
5
+
6
+ 47
7
+ 00:02:57,198 --> 00:03:00,532
8
+ ♪ Then nearly 14 billion years
9
+ ago expansion started... Wait! ♪
10
+
11
+ 48
12
+ 00:03:00,534 --> 00:03:02,184
13
+ ♪ The Earth began to cool ♪
14
+
15
+ 49
16
+ 00:03:02,186 --> 00:03:04,736
17
+ ♪ The autotrophs began to drool,
18
+ Neanderthals developed tools ♪
19
+
20
+ 50
21
+ 00:03:04,738 --> 00:03:07,372
22
+ ♪ We built the Wall ♪
23
+ ♪ <i>We built the pyramids</i> ♪
24
+
25
+ 51
26
+ 00:03:07,374 --> 00:03:10,058
27
+ ♪ Math, Science, History,
28
+ unraveling the mystery ♪
29
+
30
+ 52
31
+ 00:03:10,060 --> 00:03:11,960
32
+ ♪ That all started
33
+ with a big bang ♪
34
+
35
+ 53
36
+ 00:03:11,962 --> 00:03:12,710
37
+ ♪ <i>Bang!</i> ♪
data/test/helper.rb ADDED
@@ -0,0 +1,8 @@
1
+ require 'rubygems'
2
+ require 'minitest/spec'
3
+
4
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
5
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
6
+ require 'subtitle_shifter'
7
+
8
+ MiniTest::Spec.autorun
@@ -0,0 +1,106 @@
1
+ #!/usr/bin/env ruby
2
+ # encoding: UTF-8
3
+
4
+ require 'minitest/spec'
5
+ require 'minitest/autorun'
6
+
7
+ require './lib/subtitle_shifter'
8
+
9
+ describe SubtitleShifter do
10
+ it "should have a new method" do
11
+ SubtitleShifter.must_respond_to('new')
12
+ end
13
+
14
+ describe "parsing a subtitle file" do
15
+ srt = SubtitleShifter.new('./test/The.Big.Bang.Theory.srt')
16
+ srt.parse
17
+
18
+ it "should work with utf-8 files" do
19
+ srt.parsed_ok.must_equal true
20
+ end
21
+
22
+ it "should have some parsed data" do
23
+ first_sub = srt.subtitles[46]
24
+ first_sub.must_be_instance_of Hash
25
+
26
+ first_sub[:subtitle].must_equal "♪ Our whole universe\r\nwas in a hot, dense state ♪"
27
+ first_sub[:start].must_equal 173610
28
+ first_sub[:end].must_equal 177196
29
+ end
30
+ end
31
+
32
+ describe "shifting subtitles" do
33
+ before(:each) do
34
+ @srt = SubtitleShifter.new('./test/The.Big.Bang.Theory.srt')
35
+ @srt.parse
36
+ end
37
+
38
+ describe "forward" do
39
+ it "should shift subtitles forward from an index" do
40
+ @srt.must_respond_to('shift')
41
+
42
+ shift = 2500
43
+ start = @srt.subtitles[50][:start]
44
+ fin = @srt.subtitles[50][:end]
45
+
46
+ @srt.shift(:index => 50, :time => shift)
47
+ @srt.subtitles[50][:start].must_equal start+shift
48
+ @srt.subtitles[50][:end].must_equal fin+shift
49
+ end
50
+
51
+ it "should affect all indexes till the end" do
52
+ # start = @srt
53
+ # 53 - s - 191962 e - 192710
54
+ @srt.shift(:index => 50, :time => 2500)
55
+ @srt.subtitles[53][:start].must_equal 194462
56
+ @srt.subtitles[53][:end].must_equal 195210
57
+ end
58
+ end
59
+
60
+ describe "backward" do
61
+ it "should shift subtitles backward from an index" do
62
+ # Test start of shift
63
+ @srt.shift(:index => 50, :time => -1)
64
+ @srt.subtitles[50][:start].must_equal 184737
65
+ @srt.subtitles[50][:end].must_equal 187371
66
+ end
67
+
68
+ it "should affect all indexes till the end" do
69
+ # start = @srt
70
+ # 53 - s - 191962 e - 192710
71
+ @srt.shift(:index => 50, :time => -1)
72
+ @srt.subtitles[53][:start].must_equal 191961
73
+ @srt.subtitles[53][:end].must_equal 192709
74
+ end
75
+
76
+ it "should raise an exception if shifted too far back" do
77
+ proc do
78
+ @srt.shift(:index => 50, :time => -2500)
79
+ end.must_raise RuntimeError
80
+ end
81
+ end
82
+ end
83
+
84
+ describe "outputting an srt file" do
85
+ before(:each) do
86
+ @srt = SubtitleShifter.new('./test/The.Big.Bang.Theory.srt')
87
+ end
88
+
89
+ it "should raise an exception if it hasn't been parsed yet" do
90
+ proc do
91
+ @srt.to_s
92
+ end.must_raise RuntimeError
93
+ end
94
+
95
+ it "should provide a string that is similar to the file when no shifting takes place" do
96
+ @srt.parse
97
+ @srt.to_s.must_equal "46\r\n00:02:53,610 --> 00:02:57,196\r\n♪ Our whole universe\r\nwas in a hot, dense state ♪\r\n\r\n47\r\n00:02:57,198 --> 00:03:00,532\r\n♪ Then nearly 14 billion years\r\nago expansion started... Wait! ♪\r\n\r\n48\r\n00:03:00,534 --> 00:03:02,184\r\n♪ The Earth began to cool ♪\r\n\r\n49\r\n00:03:02,186 --> 00:03:04,736\r\n♪ The autotrophs began to drool,\r\nNeanderthals developed tools ♪\r\n\r\n50\r\n00:03:04,738 --> 00:03:07,372\r\n♪ We built the Wall ♪\r\n♪ <i>We built the pyramids</i> ♪\r\n\r\n51\r\n00:03:07,374 --> 00:03:10,058\r\n♪ Math, Science, History,\r\nunraveling the mystery ♪\r\n\r\n52\r\n00:03:10,060 --> 00:03:11,960\r\n♪ That all started\r\nwith a big bang ♪\r\n\r\n53\r\n00:03:11,962 --> 00:03:12,710\r\n♪ <i>Bang!</i> ♪\r\n"
98
+ end
99
+
100
+ it "should provide a string that shows shifted times when a shift op occurs" do
101
+ @srt.parse
102
+ @srt.shift(:index => 50, :time => 2500)
103
+ @srt.to_s.must_equal "46\r\n00:02:53,610 --> 00:02:57,196\r\n♪ Our whole universe\r\nwas in a hot, dense state ♪\r\n\r\n47\r\n00:02:57,198 --> 00:03:00,532\r\n♪ Then nearly 14 billion years\r\nago expansion started... Wait! ♪\r\n\r\n48\r\n00:03:00,534 --> 00:03:02,184\r\n♪ The Earth began to cool ♪\r\n\r\n49\r\n00:03:02,186 --> 00:03:04,736\r\n♪ The autotrophs began to drool,\r\nNeanderthals developed tools ♪\r\n\r\n50\r\n00:03:07,238 --> 00:03:09,872\r\n♪ We built the Wall ♪\r\n♪ <i>We built the pyramids</i> ♪\r\n\r\n51\r\n00:03:09,874 --> 00:03:12,558\r\n♪ Math, Science, History,\r\nunraveling the mystery ♪\r\n\r\n52\r\n00:03:12,560 --> 00:03:14,460\r\n♪ That all started\r\nwith a big bang ♪\r\n\r\n53\r\n00:03:14,462 --> 00:03:15,210\r\n♪ <i>Bang!</i> ♪\r\n"
104
+ end
105
+ end
106
+ end
metadata ADDED
@@ -0,0 +1,115 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: subtitle_shifter
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Gabriel Fortuna
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-12-13 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: minitest
16
+ requirement: &70285953842120 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: *70285953842120
25
+ - !ruby/object:Gem::Dependency
26
+ name: bundler
27
+ requirement: &70285953840700 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: 1.0.0
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *70285953840700
36
+ - !ruby/object:Gem::Dependency
37
+ name: jeweler
38
+ requirement: &70285953839740 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: 1.6.4
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *70285953839740
47
+ - !ruby/object:Gem::Dependency
48
+ name: rcov
49
+ requirement: &70285953838260 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *70285953838260
58
+ - !ruby/object:Gem::Dependency
59
+ name: rdoc
60
+ requirement: &70285953837240 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: *70285953837240
69
+ description: A simple little gem for modifying SubRip subtitle files. Done as a mentoring
70
+ exercise with Citizen428, and taken from the Ruby Programming Challenge For Newbies
71
+ email: gee.forr@gmail.com
72
+ executables:
73
+ - shift_subtitle
74
+ extensions: []
75
+ extra_rdoc_files:
76
+ - LICENSE.txt
77
+ - README.rdoc
78
+ files:
79
+ - .document
80
+ - LICENSE.txt
81
+ - README.rdoc
82
+ - Rakefile
83
+ - VERSION
84
+ - bin/shift_subtitle
85
+ - lib/.subtitle_shifter.rb.swp
86
+ - lib/subtitle_shifter.rb
87
+ - test/The.Big.Bang.Theory.srt
88
+ - test/helper.rb
89
+ - test/subtitle_shifter_spec.rb
90
+ homepage: http://github.com/gee-forr/subtitle_shifter
91
+ licenses:
92
+ - MIT
93
+ post_install_message:
94
+ rdoc_options: []
95
+ require_paths:
96
+ - lib
97
+ required_ruby_version: !ruby/object:Gem::Requirement
98
+ none: false
99
+ requirements:
100
+ - - ! '>='
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ required_rubygems_version: !ruby/object:Gem::Requirement
104
+ none: false
105
+ requirements:
106
+ - - ! '>='
107
+ - !ruby/object:Gem::Version
108
+ version: '0'
109
+ requirements: []
110
+ rubyforge_project:
111
+ rubygems_version: 1.8.6
112
+ signing_key:
113
+ specification_version: 3
114
+ summary: A simple library for adjusting SubRip (.srt) subtitles
115
+ test_files: []