biborg 0.1.a

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE ADDED
@@ -0,0 +1,339 @@
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 2, June 1991
3
+
4
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
5
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
6
+ Everyone is permitted to copy and distribute verbatim copies
7
+ of this license document, but changing it is not allowed.
8
+
9
+ Preamble
10
+
11
+ The licenses for most software are designed to take away your
12
+ freedom to share and change it. By contrast, the GNU General Public
13
+ License is intended to guarantee your freedom to share and change free
14
+ software--to make sure the software is free for all its users. This
15
+ General Public License applies to most of the Free Software
16
+ Foundation's software and to any other program whose authors commit to
17
+ using it. (Some other Free Software Foundation software is covered by
18
+ the GNU Lesser General Public License instead.) You can apply it to
19
+ your programs, too.
20
+
21
+ When we speak of free software, we are referring to freedom, not
22
+ price. Our General Public Licenses are designed to make sure that you
23
+ have the freedom to distribute copies of free software (and charge for
24
+ this service if you wish), that you receive source code or can get it
25
+ if you want it, that you can change the software or use pieces of it
26
+ in new free programs; and that you know you can do these things.
27
+
28
+ To protect your rights, we need to make restrictions that forbid
29
+ anyone to deny you these rights or to ask you to surrender the rights.
30
+ These restrictions translate to certain responsibilities for you if you
31
+ distribute copies of the software, or if you modify it.
32
+
33
+ For example, if you distribute copies of such a program, whether
34
+ gratis or for a fee, you must give the recipients all the rights that
35
+ you have. You must make sure that they, too, receive or can get the
36
+ source code. And you must show them these terms so they know their
37
+ rights.
38
+
39
+ We protect your rights with two steps: (1) copyright the software, and
40
+ (2) offer you this license which gives you legal permission to copy,
41
+ distribute and/or modify the software.
42
+
43
+ Also, for each author's protection and ours, we want to make certain
44
+ that everyone understands that there is no warranty for this free
45
+ software. If the software is modified by someone else and passed on, we
46
+ want its recipients to know that what they have is not the original, so
47
+ that any problems introduced by others will not reflect on the original
48
+ authors' reputations.
49
+
50
+ Finally, any free program is threatened constantly by software
51
+ patents. We wish to avoid the danger that redistributors of a free
52
+ program will individually obtain patent licenses, in effect making the
53
+ program proprietary. To prevent this, we have made it clear that any
54
+ patent must be licensed for everyone's free use or not licensed at all.
55
+
56
+ The precise terms and conditions for copying, distribution and
57
+ modification follow.
58
+
59
+ GNU GENERAL PUBLIC LICENSE
60
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61
+
62
+ 0. This License applies to any program or other work which contains
63
+ a notice placed by the copyright holder saying it may be distributed
64
+ under the terms of this General Public License. The "Program", below,
65
+ refers to any such program or work, and a "work based on the Program"
66
+ means either the Program or any derivative work under copyright law:
67
+ that is to say, a work containing the Program or a portion of it,
68
+ either verbatim or with modifications and/or translated into another
69
+ language. (Hereinafter, translation is included without limitation in
70
+ the term "modification".) Each licensee is addressed as "you".
71
+
72
+ Activities other than copying, distribution and modification are not
73
+ covered by this License; they are outside its scope. The act of
74
+ running the Program is not restricted, and the output from the Program
75
+ is covered only if its contents constitute a work based on the
76
+ Program (independent of having been made by running the Program).
77
+ Whether that is true depends on what the Program does.
78
+
79
+ 1. You may copy and distribute verbatim copies of the Program's
80
+ source code as you receive it, in any medium, provided that you
81
+ conspicuously and appropriately publish on each copy an appropriate
82
+ copyright notice and disclaimer of warranty; keep intact all the
83
+ notices that refer to this License and to the absence of any warranty;
84
+ and give any other recipients of the Program a copy of this License
85
+ along with the Program.
86
+
87
+ You may charge a fee for the physical act of transferring a copy, and
88
+ you may at your option offer warranty protection in exchange for a fee.
89
+
90
+ 2. You may modify your copy or copies of the Program or any portion
91
+ of it, thus forming a work based on the Program, and copy and
92
+ distribute such modifications or work under the terms of Section 1
93
+ above, provided that you also meet all of these conditions:
94
+
95
+ a) You must cause the modified files to carry prominent notices
96
+ stating that you changed the files and the date of any change.
97
+
98
+ b) You must cause any work that you distribute or publish, that in
99
+ whole or in part contains or is derived from the Program or any
100
+ part thereof, to be licensed as a whole at no charge to all third
101
+ parties under the terms of this License.
102
+
103
+ c) If the modified program normally reads commands interactively
104
+ when run, you must cause it, when started running for such
105
+ interactive use in the most ordinary way, to print or display an
106
+ announcement including an appropriate copyright notice and a
107
+ notice that there is no warranty (or else, saying that you provide
108
+ a warranty) and that users may redistribute the program under
109
+ these conditions, and telling the user how to view a copy of this
110
+ License. (Exception: if the Program itself is interactive but
111
+ does not normally print such an announcement, your work based on
112
+ the Program is not required to print an announcement.)
113
+
114
+ These requirements apply to the modified work as a whole. If
115
+ identifiable sections of that work are not derived from the Program,
116
+ and can be reasonably considered independent and separate works in
117
+ themselves, then this License, and its terms, do not apply to those
118
+ sections when you distribute them as separate works. But when you
119
+ distribute the same sections as part of a whole which is a work based
120
+ on the Program, the distribution of the whole must be on the terms of
121
+ this License, whose permissions for other licensees extend to the
122
+ entire whole, and thus to each and every part regardless of who wrote it.
123
+
124
+ Thus, it is not the intent of this section to claim rights or contest
125
+ your rights to work written entirely by you; rather, the intent is to
126
+ exercise the right to control the distribution of derivative or
127
+ collective works based on the Program.
128
+
129
+ In addition, mere aggregation of another work not based on the Program
130
+ with the Program (or with a work based on the Program) on a volume of
131
+ a storage or distribution medium does not bring the other work under
132
+ the scope of this License.
133
+
134
+ 3. You may copy and distribute the Program (or a work based on it,
135
+ under Section 2) in object code or executable form under the terms of
136
+ Sections 1 and 2 above provided that you also do one of the following:
137
+
138
+ a) Accompany it with the complete corresponding machine-readable
139
+ source code, which must be distributed under the terms of Sections
140
+ 1 and 2 above on a medium customarily used for software interchange; or,
141
+
142
+ b) Accompany it with a written offer, valid for at least three
143
+ years, to give any third party, for a charge no more than your
144
+ cost of physically performing source distribution, a complete
145
+ machine-readable copy of the corresponding source code, to be
146
+ distributed under the terms of Sections 1 and 2 above on a medium
147
+ customarily used for software interchange; or,
148
+
149
+ c) Accompany it with the information you received as to the offer
150
+ to distribute corresponding source code. (This alternative is
151
+ allowed only for noncommercial distribution and only if you
152
+ received the program in object code or executable form with such
153
+ an offer, in accord with Subsection b above.)
154
+
155
+ The source code for a work means the preferred form of the work for
156
+ making modifications to it. For an executable work, complete source
157
+ code means all the source code for all modules it contains, plus any
158
+ associated interface definition files, plus the scripts used to
159
+ control compilation and installation of the executable. However, as a
160
+ special exception, the source code distributed need not include
161
+ anything that is normally distributed (in either source or binary
162
+ form) with the major components (compiler, kernel, and so on) of the
163
+ operating system on which the executable runs, unless that component
164
+ itself accompanies the executable.
165
+
166
+ If distribution of executable or object code is made by offering
167
+ access to copy from a designated place, then offering equivalent
168
+ access to copy the source code from the same place counts as
169
+ distribution of the source code, even though third parties are not
170
+ compelled to copy the source along with the object code.
171
+
172
+ 4. You may not copy, modify, sublicense, or distribute the Program
173
+ except as expressly provided under this License. Any attempt
174
+ otherwise to copy, modify, sublicense or distribute the Program is
175
+ void, and will automatically terminate your rights under this License.
176
+ However, parties who have received copies, or rights, from you under
177
+ this License will not have their licenses terminated so long as such
178
+ parties remain in full compliance.
179
+
180
+ 5. You are not required to accept this License, since you have not
181
+ signed it. However, nothing else grants you permission to modify or
182
+ distribute the Program or its derivative works. These actions are
183
+ prohibited by law if you do not accept this License. Therefore, by
184
+ modifying or distributing the Program (or any work based on the
185
+ Program), you indicate your acceptance of this License to do so, and
186
+ all its terms and conditions for copying, distributing or modifying
187
+ the Program or works based on it.
188
+
189
+ 6. Each time you redistribute the Program (or any work based on the
190
+ Program), the recipient automatically receives a license from the
191
+ original licensor to copy, distribute or modify the Program subject to
192
+ these terms and conditions. You may not impose any further
193
+ restrictions on the recipients' exercise of the rights granted herein.
194
+ You are not responsible for enforcing compliance by third parties to
195
+ this License.
196
+
197
+ 7. If, as a consequence of a court judgment or allegation of patent
198
+ infringement or for any other reason (not limited to patent issues),
199
+ conditions are imposed on you (whether by court order, agreement or
200
+ otherwise) that contradict the conditions of this License, they do not
201
+ excuse you from the conditions of this License. If you cannot
202
+ distribute so as to satisfy simultaneously your obligations under this
203
+ License and any other pertinent obligations, then as a consequence you
204
+ may not distribute the Program at all. For example, if a patent
205
+ license would not permit royalty-free redistribution of the Program by
206
+ all those who receive copies directly or indirectly through you, then
207
+ the only way you could satisfy both it and this License would be to
208
+ refrain entirely from distribution of the Program.
209
+
210
+ If any portion of this section is held invalid or unenforceable under
211
+ any particular circumstance, the balance of the section is intended to
212
+ apply and the section as a whole is intended to apply in other
213
+ circumstances.
214
+
215
+ It is not the purpose of this section to induce you to infringe any
216
+ patents or other property right claims or to contest validity of any
217
+ such claims; this section has the sole purpose of protecting the
218
+ integrity of the free software distribution system, which is
219
+ implemented by public license practices. Many people have made
220
+ generous contributions to the wide range of software distributed
221
+ through that system in reliance on consistent application of that
222
+ system; it is up to the author/donor to decide if he or she is willing
223
+ to distribute software through any other system and a licensee cannot
224
+ impose that choice.
225
+
226
+ This section is intended to make thoroughly clear what is believed to
227
+ be a consequence of the rest of this License.
228
+
229
+ 8. If the distribution and/or use of the Program is restricted in
230
+ certain countries either by patents or by copyrighted interfaces, the
231
+ original copyright holder who places the Program under this License
232
+ may add an explicit geographical distribution limitation excluding
233
+ those countries, so that distribution is permitted only in or among
234
+ countries not thus excluded. In such case, this License incorporates
235
+ the limitation as if written in the body of this License.
236
+
237
+ 9. The Free Software Foundation may publish revised and/or new versions
238
+ of the General Public License from time to time. Such new versions will
239
+ be similar in spirit to the present version, but may differ in detail to
240
+ address new problems or concerns.
241
+
242
+ Each version is given a distinguishing version number. If the Program
243
+ specifies a version number of this License which applies to it and "any
244
+ later version", you have the option of following the terms and conditions
245
+ either of that version or of any later version published by the Free
246
+ Software Foundation. If the Program does not specify a version number of
247
+ this License, you may choose any version ever published by the Free Software
248
+ Foundation.
249
+
250
+ 10. If you wish to incorporate parts of the Program into other free
251
+ programs whose distribution conditions are different, write to the author
252
+ to ask for permission. For software which is copyrighted by the Free
253
+ Software Foundation, write to the Free Software Foundation; we sometimes
254
+ make exceptions for this. Our decision will be guided by the two goals
255
+ of preserving the free status of all derivatives of our free software and
256
+ of promoting the sharing and reuse of software generally.
257
+
258
+ NO WARRANTY
259
+
260
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261
+ FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
262
+ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263
+ PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264
+ OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
266
+ TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
267
+ PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268
+ REPAIR OR CORRECTION.
269
+
270
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272
+ REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273
+ INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274
+ OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275
+ TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276
+ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277
+ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278
+ POSSIBILITY OF SUCH DAMAGES.
279
+
280
+ END OF TERMS AND CONDITIONS
281
+
282
+ How to Apply These Terms to Your New Programs
283
+
284
+ If you develop a new program, and you want it to be of the greatest
285
+ possible use to the public, the best way to achieve this is to make it
286
+ free software which everyone can redistribute and change under these terms.
287
+
288
+ To do so, attach the following notices to the program. It is safest
289
+ to attach them to the start of each source file to most effectively
290
+ convey the exclusion of warranty; and each file should have at least
291
+ the "copyright" line and a pointer to where the full notice is found.
292
+
293
+ <one line to give the program's name and a brief idea of what it does.>
294
+ Copyright (C) <year> <name of author>
295
+
296
+ This program is free software; you can redistribute it and/or modify
297
+ it under the terms of the GNU General Public License as published by
298
+ the Free Software Foundation; either version 2 of the License, or
299
+ (at your option) any later version.
300
+
301
+ This program is distributed in the hope that it will be useful,
302
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
303
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
304
+ GNU General Public License for more details.
305
+
306
+ You should have received a copy of the GNU General Public License along
307
+ with this program; if not, write to the Free Software Foundation, Inc.,
308
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
309
+
310
+ Also add information on how to contact you by electronic and paper mail.
311
+
312
+ If the program is interactive, make it output a short notice like this
313
+ when it starts in an interactive mode:
314
+
315
+ Gnomovision version 69, Copyright (C) year name of author
316
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
317
+ This is free software, and you are welcome to redistribute it
318
+ under certain conditions; type `show c' for details.
319
+
320
+ The hypothetical commands `show w' and `show c' should show the appropriate
321
+ parts of the General Public License. Of course, the commands you use may
322
+ be called something other than `show w' and `show c'; they could even be
323
+ mouse-clicks or menu items--whatever suits your program.
324
+
325
+ You should also get your employer (if you work as a programmer) or your
326
+ school, if any, to sign a "copyright disclaimer" for the program, if
327
+ necessary. Here is a sample; alter the names:
328
+
329
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
330
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
331
+
332
+ <signature of Ty Coon>, 1 April 1989
333
+ Ty Coon, President of Vice
334
+
335
+ This General Public License does not permit incorporating your program into
336
+ proprietary programs. If your program is a subroutine library, you may
337
+ consider it more useful to permit linking proprietary applications with the
338
+ library. If this is what you want to do, use the GNU Lesser General
339
+ Public License instead of this License.
data/README ADDED
@@ -0,0 +1,5 @@
1
+ For searches, use FERRET style keywords. Eg.,
2
+
3
+ color constancy
4
+ author: Chakrabarti
5
+ color && year: (> 2005)
@@ -0,0 +1,69 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'rubygems'
4
+ require 'erb'
5
+
6
+ gem 'rack', '= 1.1.0'
7
+ require 'rack'
8
+
9
+ require 'cgi'
10
+
11
+ libdir = File.expand_path(File.dirname(__FILE__)+'/../lib')
12
+ $:.unshift libdir
13
+ require 'biborg/parsebib'
14
+ require 'biborg/webapp'
15
+
16
+ include Biborg
17
+ $basedir = libdir + '/biborg'
18
+
19
+ theport = 6412
20
+
21
+ def usage
22
+ $stderr.puts "USAGE: biborg [-p port] bibfile"
23
+ exit(1)
24
+ end
25
+
26
+ usage if ARGV.length < 1
27
+ if ARGV[0] == '-p'
28
+ ARGV.shift
29
+ usage if ARGV.length < 1
30
+ theport = Integer(ARGV.shift)
31
+ usage if ARGV.length < 1
32
+ end
33
+
34
+
35
+ $bibfile = File.expand_path(ARGV[0])
36
+ s = ''
37
+ begin
38
+ File.open($bibfile,'r') { |f| s = f.read}
39
+ $bib,str = getbib(s)
40
+ if str.length > 0
41
+ $stderr.puts "PARSE ERROR:" + str
42
+ raise 0
43
+ end
44
+ rescue
45
+ $stderr.puts "Error parsing #{$bibfile}"
46
+ exit(1)
47
+ end
48
+
49
+ $searchurl = 'http://scholar.google.com/scholar?q='
50
+
51
+ begin
52
+ Rack::Handler::Mongrel.run(webapp, :Host=>"127.0.0.1", :Port=>theport) { |x|
53
+ if pid = Kernel.fork then
54
+ Process.detach(pid)
55
+ puts "Server running with PID=#{String(pid)}\n"
56
+ if RUBY_PLATFORM =~ /darwin/
57
+ system("open http://127.0.0.1:#{String(theport)}/");
58
+ else
59
+ puts "Go to http://127.0.0.1:#{String(theport)}/ to browse bibliography!\n"
60
+ end
61
+ exit(0)
62
+ end
63
+ $stderr.reopen('/dev/null','w')
64
+ $stdout.reopen('/dev/null','w')
65
+ }
66
+ rescue
67
+ STDERR.write "Could not listen on port #{String(theport)}.\n"
68
+ exit(1)
69
+ end
@@ -0,0 +1,158 @@
1
+ require 'rubygems'
2
+ require 'ferret'
3
+ include Ferret
4
+
5
+ module Biborg
6
+
7
+ SYM_EOF = 0
8
+ SYM_AT = 1
9
+ SYM_COMMA = 2
10
+ SYM_NUM = 3
11
+ SYM_EQ = 4
12
+ SYM_STR = 5
13
+ SYM_CLOSE = 6
14
+ SYM_OPEN = 7
15
+
16
+ # Returns [type,string,next]
17
+ def getnext(str,ifbrace = 1)
18
+ # Parse tokens
19
+ str.lstrip! if str
20
+ return SYM_EOF, nil, str if !str || str.length == 0
21
+
22
+ if str[0..0] == '@'
23
+ return SYM_AT, '@', str[1..-1]
24
+ elsif str[0..0] == ','
25
+ return SYM_COMMA, ',', str[1..-1]
26
+ elsif str =~ /\A[0-9]+/m
27
+ return SYM_NUM, $~[0], $~.post_match
28
+ elsif str[0..0] == '='
29
+ return SYM_EQ, '=', str[1..-1]
30
+ elsif str =~ /\A[^\s\,\"\=\{\}@]+/m
31
+ return SYM_STR, $~[0], $~.post_match
32
+ elsif str[0..0] == '}'
33
+ return SYM_CLOSE, '}', str[1..-1]
34
+ elsif str[0..0] == '{' && ifbrace == 1
35
+ return SYM_OPEN, '{', str[1..-1]
36
+ end
37
+
38
+ if ifbrace == 0
39
+
40
+ # String literal with braces
41
+ if str[0..0] = '{'
42
+ rval = ''
43
+ count = 1
44
+ bstr = str[1..-1]
45
+
46
+ while count > 0
47
+ if bstr =~ /\A[^\{\}]*([\{\}])/m
48
+ count = count + 1 if $~[1] == '{';
49
+ count = count - 1 if $~[1] == '}';
50
+ rval = rval + $~[0]
51
+ bstr = $~.post_match
52
+ else
53
+ puts 'brace error'
54
+ return nil, nil, str
55
+ end
56
+ end
57
+ rval = rval[0..-2]
58
+
59
+ while true
60
+ r = rval.strip
61
+ break if r.length < 2
62
+ if r[0..0] == '{' && r[-1..-1] == '}'
63
+ rval = r[1..-2];
64
+ else
65
+ break
66
+ end
67
+ end
68
+
69
+
70
+ return SYM_STR, rval, bstr
71
+ end
72
+
73
+ # String literal with quotes and #
74
+ # TODO
75
+ end
76
+
77
+ return nil, nil, str
78
+ end
79
+
80
+ def context(s)
81
+ return '!' if !s
82
+ return s if s.length < 10
83
+ return s[0..10]
84
+ end
85
+
86
+ def getbib(s)
87
+
88
+ # Ignore comments
89
+ s.gsub!(/^\s*%.*$/,'') if s
90
+
91
+ r = Hash.new
92
+
93
+ sold = s; t,b,s = getnext(s)
94
+ while t != SYM_EOF
95
+ return r, 'Expected @ at: ' + context(sold) if t != SYM_AT
96
+
97
+ sold = s; t,b,s = getnext(s)
98
+ return r, 'Expected reftype at: ' + context(sold) if t != SYM_STR
99
+ reftype = b.downcase
100
+
101
+ sold = s; t,b,s = getnext(s)
102
+ return r, 'Expected { at: ' + context(sold) if t != SYM_OPEN
103
+
104
+ sold = s; t,b,s = getnext(s)
105
+ return r, 'Expected keyname at: ' + context(sold) if t != SYM_STR
106
+ keyname = b.downcase
107
+
108
+ fields = Hash.new
109
+ while true
110
+ sold = s; t,b,s = getnext(s)
111
+ return r, 'Unexpected token (expect , or }) at: ' + context(sold) if t != SYM_CLOSE && t != SYM_COMMA
112
+ sold = s; t,b,s = getnext(s) if t == SYM_COMMA
113
+ break if t == SYM_CLOSE
114
+
115
+ return r, 'Unexpected token (expect fieldname) at: ' + context(sold) if t != SYM_STR
116
+ field = b.downcase
117
+ sold = s; t,b,s = getnext(s)
118
+ return r, 'Expected = at: ' + context(sold) if t != SYM_EQ
119
+ sold = s; t,b,s = getnext(s,0)
120
+ return r, 'Unexpected token (expect value) at: ' + context(sold) if t != SYM_STR && t != SYM_NUM
121
+ fields[field] = b;
122
+ end
123
+
124
+ r[keyname] = [keyname, reftype, fields];
125
+ sold = s; t,b,s = getnext(s)
126
+ end
127
+
128
+ return r, ''
129
+ end
130
+
131
+ def putentry(b)
132
+ s = ''
133
+ s = s + '@' + b[1] + '{' + b[0] + ",\n"
134
+ s = s + b[2].sort.collect{ |k| ' ' + k[0] + ' = ' + '{' + k[1] + '}'}.join(",\n")
135
+ s = s + "\n}"
136
+
137
+ return s
138
+ end
139
+
140
+ def putentries(b)
141
+ return b.sort.collect{|v| putentry(v[1])}.join("\n\n")
142
+ end
143
+
144
+ def bibquery(b,s)
145
+ results = Array.new
146
+ # Build Index
147
+ index = Index::Index.new();
148
+ b.each_pair {|k,v|
149
+ h = {:id => v[0]};
150
+ v[2].each_pair { |fk,fv| h[fk.to_sym] = fv}
151
+ index << h
152
+ }
153
+ index.search_each(s, {:limit => :all}) { |id,score| results << index[id][:id]}
154
+ index.close
155
+ return results
156
+ end
157
+
158
+ end
@@ -0,0 +1,119 @@
1
+ <html>
2
+ <%
3
+ if req["athrs"] && req["changeto"]
4
+
5
+ cfrom = req["athrs"].collect {|a| a.strip}
6
+ $bib.each_key{|k|
7
+ if $bib[k][2].has_key?('author')
8
+ athrs = $bib[k][2]['author'].split(' and ')
9
+ athrs = athrs.collect { |a|
10
+ if cfrom.include?(a.strip) then
11
+ req["changeto"]
12
+ else
13
+ a
14
+ end
15
+ }
16
+ $bib[k][2]['author'] = athrs.join(' and ')
17
+ end
18
+ }
19
+ File.open($bibfile,'w') {|f| f.write(putentries($bib))}
20
+ end
21
+
22
+
23
+ authors = Hash.new
24
+ $bib.each_value {|b|
25
+ if b[2].has_key?('author')
26
+ a = b[2]['author']
27
+ a = a.split(' and ')
28
+ a.each { |t| authors[t.strip] = t.strip }
29
+ end
30
+ }
31
+ authors = authors.keys.sort
32
+ %>
33
+ <head>
34
+ <title>BibOrg: <%= $bibfile %></title>
35
+ <style type="text/css">
36
+ a.alink {
37
+ padding: 2px;
38
+ text-decoration: none;
39
+ font-size:0.75em;
40
+ font-weight: bold;
41
+ color: #000000
42
+ }
43
+ a.alink:hover {
44
+ background-color: #fff
45
+ }
46
+ </style>
47
+
48
+ <script type="text/javascript">
49
+ function update()
50
+ {
51
+ l = document.getElementsByName("athrs[]");
52
+ t = document.getElementsByName("changeto");
53
+
54
+ for(i = 0; i < l.length;i++)
55
+ if(l[i].checked)
56
+ if(l[i].value.length > t[0].value.length)
57
+ t[0].value = l[i].value;
58
+ }
59
+
60
+ function clearsel()
61
+ {
62
+ l = document.getElementsByName("athrs[]");
63
+ for(i = 0; i < l.length;i++)
64
+ l[i].checked = false;
65
+ t = document.getElementsByName("changeto");
66
+ t[0].value = ''
67
+ }
68
+ </script>
69
+
70
+
71
+ </head>
72
+
73
+ <body style="background: #444; padding-top: 4px">
74
+ <center>
75
+ <form action="/authors.html" METHOD="POST">
76
+ <table style="width:61em; border-spacing: 0px;">
77
+ <tr style="background: #888;">
78
+ <td style="text-align: left; font-size: 0.8em">
79
+ &nbsp;Change Selected To: <input name='changeto' value='' style="width:30em; border:0px">
80
+ <input type=submit value='Change'>
81
+ &nbsp;<a href="javascript:" onClick="clearsel()" class="alink">Clear</a>
82
+ </td>
83
+ <td style="text-align: right">
84
+ <a href="/" class="alink">Library</a>
85
+ </td>
86
+ </tr>
87
+ </table>
88
+
89
+
90
+ <table style="width:61em; background: #ddd">
91
+ <%
92
+ tropen = 0
93
+ for i in 0..(authors.length-1)
94
+ if tropen == 0
95
+ %>
96
+ <tr>
97
+ <%
98
+ tropen = 1
99
+ end
100
+ %>
101
+ <td style="width: 14em; vertical-align: top; font-size: 0.8em">
102
+ <input onChange="update()" type="checkbox" name="athrs[]" value="<%= authors[i] %>">
103
+ <%= authors[i] %>
104
+ </td>
105
+ <%
106
+ if i.modulo(4) == 3 then
107
+ tropen = 0
108
+ %></tr><%
109
+ end
110
+ end
111
+ if tropen == 1 then
112
+ %></tr><%
113
+ end
114
+ %>
115
+ </table>
116
+ </form>
117
+ </center>
118
+ </body>
119
+ </html>
@@ -0,0 +1,84 @@
1
+ <html>
2
+
3
+ <%
4
+
5
+ if ! req["key"] || req["key"].length == 0 || ! $bib.has_key?(req["key"])
6
+ thekey = ''
7
+ msg = 'Invalid Key'
8
+ binit = ''
9
+ else
10
+ thekey = req["key"]
11
+ msg = ''
12
+ binit = putentry($bib[thekey])
13
+
14
+ if req["import"]
15
+ bimp, str = getbib(req["bib"])
16
+ str = 'Too many entries. Use Import instead.' if bimp.length > 1 && str.length == 0
17
+ str = 'No entry found. Use Delete instead.' if bimp.length < 1 && str.length == 0
18
+ if str.length == 0
19
+ $bib.delete(thekey)
20
+ $bib.merge!(bimp)
21
+ File.open($bibfile,'w') {|f| f.write(putentries($bib))}
22
+ msg = 'Entry updated'
23
+ thekey = bimp.keys[0]
24
+ binit = putentry($bib[thekey])
25
+ else
26
+ binit = req["bib"]
27
+ msg = str
28
+ end
29
+ end
30
+ end
31
+ %>
32
+
33
+ <head>
34
+ <title>BibOrg: <%= $bibfile %></title>
35
+ <style type="text/css">
36
+ a.alink {
37
+ padding: 2px;
38
+ text-decoration: none;
39
+ font-size:0.75em;
40
+ font-weight: bold;
41
+ color: #000000
42
+ }
43
+ a.alink:hover {
44
+ background-color: #fff
45
+ }
46
+ </style>
47
+ <script type="text/javascript">
48
+ function iform()
49
+ {
50
+ l = document.getElementsByName("iForm");
51
+ l[0].submit();
52
+ }
53
+ </script>
54
+ </head>
55
+
56
+ <body style="background: #444;">
57
+
58
+ <center>
59
+ <form method="POST" action="/edit.html?key=<%= thekey%>" name="iForm">
60
+ <input type="hidden" name="import" value="1">
61
+
62
+ <table style="width:61em; border-spacing: 0px; padding: 4px;">
63
+ <tr style="background: #ccc;">
64
+ <td style="text-aligh: left"><%= msg %></td>
65
+ <td style="text-align: right">
66
+ <a href="javascript:" onClick="iform()" class="alink">Update</a>&nbsp;
67
+ <a href="/" class="alink">Library</a>&nbsp;
68
+ <a href="/die" class="alink">Exit</a>
69
+ </td>
70
+ </tr>
71
+ </table>
72
+
73
+ <table style="width:61em; border-spacing: 0px; padding: 4px;">
74
+ <tr><td>
75
+ <textarea style="width:100%; border: 0px; height: 100em" name="bib"><%= binit %></textarea>
76
+ </td></tr>
77
+ </table>
78
+
79
+
80
+
81
+ </form>
82
+ </center>
83
+
84
+ </html>
@@ -0,0 +1,70 @@
1
+ <html>
2
+
3
+ <%
4
+ msg = ''
5
+ binit = ''
6
+ if req["import"]
7
+ bimp, str = getbib(req["bib"])
8
+ if str.length == 0
9
+ $bib.merge!(bimp)
10
+ File.open($bibfile,'w') {|f| f.write(putentries($bib))}
11
+ msg = String(bimp.length) + ' entries added.'
12
+ else
13
+ binit = req["bib"]
14
+ msg = str
15
+ end
16
+ end
17
+ %>
18
+
19
+ <head>
20
+ <title>BibOrg: <%= $bibfile %></title>
21
+ <style type="text/css">
22
+ a.alink {
23
+ padding: 2px;
24
+ text-decoration: none;
25
+ font-size:0.75em;
26
+ font-weight: bold;
27
+ color: #000000
28
+ }
29
+ a.alink:hover {
30
+ background-color: #fff
31
+ }
32
+ </style>
33
+ <script type="text/javascript">
34
+ function iform()
35
+ {
36
+ l = document.getElementsByName("iForm");
37
+ l[0].submit();
38
+ }
39
+ </script>
40
+ </head>
41
+
42
+ <body style="background: #444;">
43
+
44
+ <center>
45
+ <form method="POST" action="/import.html" name="iForm">
46
+ <input type="hidden" name="import" value="1">
47
+
48
+ <table style="width:61em; border-spacing: 0px; padding: 4px;">
49
+ <tr style="background: #ccc;">
50
+ <td style="text-align: left"><%= msg %></td>
51
+ <td style="text-align: right">
52
+ <a href="javascript:" onClick="iform()" class="alink">Add</a>&nbsp;
53
+ <a href="/" class="alink">Library</a>&nbsp;
54
+ <a href="/die" class="alink">Exit</a>
55
+ </td>
56
+ </tr>
57
+ </table>
58
+
59
+ <table style="width:61em; border-spacing: 0px; padding: 4px;">
60
+ <tr><td>
61
+ <textarea style="width:100%; border: 0px; height: 100em" name="bib"><%= binit %></textarea>
62
+ </td></tr>
63
+ </table>
64
+
65
+
66
+
67
+ </form>
68
+ </center>
69
+
70
+ </html>
@@ -0,0 +1,174 @@
1
+ <html>
2
+
3
+ <%
4
+
5
+ def yearsort(a,b)
6
+ return $bib[b][2]['year'] <=> $bib[a][2]['year'] if $bib[a][2].has_key?('year') && $bib[b][2].has_key?('year')
7
+ return -1 if $bib[a][2].has_key?('year')
8
+ return 1 if $bib[b][2].has_key?('year')
9
+ return a <=> b
10
+ end
11
+
12
+
13
+ if req["delete"] && req["selkeys"].length > 0
14
+ dkeys = req["selkeys"].split(",");
15
+ dkeys.each { |k|
16
+ $bib.delete(k) if $bib.has_key?(k)
17
+ }
18
+ File.open($bibfile,'w') {|f| f.write(putentries($bib))}
19
+ klst = $bib.keys.sort{|a,b| yearsort(a,b) }
20
+ elsif req["search"] && req["search"].length > 0
21
+ klst = bibquery($bib,req["search"])
22
+ else
23
+ klst = $bib.keys.sort{|a,b| yearsort(a,b)}
24
+ end
25
+ %>
26
+
27
+ <head>
28
+ <title>BibOrg: <%= $bibfile %></title>
29
+ <style type="text/css">
30
+ a.title {
31
+ text-decoration: none;
32
+ color: #119;
33
+ }
34
+ a.title:hover {
35
+ background-color: #faa
36
+ }
37
+
38
+ a.author {
39
+ text-decoration: none;
40
+ font-weight: bold;
41
+ color: #058;
42
+ }
43
+ a.author:hover {
44
+ background-color: #faa
45
+ }
46
+
47
+ a.alink {
48
+ padding: 2px;
49
+ text-decoration: none;
50
+ font-size:0.75em;
51
+ font-weight: bold;
52
+ color: #000000
53
+ }
54
+ a.alink:hover {
55
+ background-color: #fff
56
+ }
57
+ </style>
58
+
59
+ <script type="text/javascript">
60
+ function deleteForm()
61
+ {
62
+ l = document.getElementsByName("dForm");
63
+ if(confirm("Delete selected items ?")) l[0].submit();
64
+ }
65
+
66
+ function selectall(me)
67
+ {
68
+ l = document.getElementsByName("keys[]");
69
+ for(i = 0; i < l.length;i++)
70
+ l[i].checked = me.checked;
71
+ update();
72
+ }
73
+
74
+ function update() {
75
+ val = '';
76
+ l = document.getElementsByName("keys[]");
77
+ for(i = 0; i < l.length;i++)
78
+ if(l[i].checked)
79
+ val = val + l[i].value + ',';
80
+
81
+ if(val.length > 0)
82
+ val = val.substring(0,val.length-1);
83
+ l = document.getElementsByName("selkeys");
84
+ l[0].value = val;
85
+ }
86
+ </script>
87
+ </head>
88
+
89
+ <body style="background: #444;">
90
+ <center>
91
+ <table style="width:61em; border-spacing: 0px; padding: 4px;">
92
+ <form method="GET" action="/" name="dForm">
93
+ <tr style="background: #ccc;">
94
+ <td>
95
+ <input type="hidden" name="delete" value="1">
96
+ <input onFocus="this.select()" name="selkeys" value = "" style="width:45em; border:0px;" readonly>
97
+ &nbsp;&nbsp;<a href="javascript:" onClick="deleteForm()" class="alink">Delete</a>
98
+ </td>
99
+ <td style="text-align: right">
100
+ <a href="/authors.html" class="alink">Authors</a>&nbsp;
101
+ <a href="/journals.html" class="alink">Journals</a>&nbsp;
102
+ <a href="/import.html" class="alink">Import</a>&nbsp;
103
+ <a href="/die" class="alink">Exit</a>
104
+ </td>
105
+ </tr>
106
+ </form>
107
+ </table>
108
+ <table style="width:61em">
109
+ <form action="/" method="GET">
110
+ <tr style="background: #afa;">
111
+ <td style="width:3em"><input type="checkbox" onChange="selectall(this)"></td>
112
+ <td style="width:58em; text-align: right">
113
+ <input style="width: 45em; border: 0px" name="search">
114
+ <input type="submit" value="Search">
115
+ </td>
116
+ </tr>
117
+ </form>
118
+ </table>
119
+
120
+ <table style="width:61em;">
121
+ <%
122
+ if klst.length == 0
123
+ %>
124
+ <tr style="background: #fff">
125
+ <td><br>&nbsp;&nbsp;No bibliography items found.<br>&nbsp;</td>
126
+ </tr>
127
+ <%
128
+ else
129
+ clrs = ['#ddd','#eee']
130
+ i = 0
131
+ klst.each do |k|
132
+ i = (i+1).modulo(2)
133
+
134
+ if $bib[k][2].has_key?('title') && $bib[k][2]['title'].length > 0
135
+ text = '<b><a class="title" target=_BLANK href="'+$searchurl+CGI.escape('"'+$bib[k][2]['title'] + '"')+'">'+$bib[k][2]['title']+'</a></b>'
136
+
137
+ year = '<b>'+$bib[k][2]['year']+'</b>' if $bib[k][2].has_key?('year')
138
+ year ||= ''
139
+
140
+ btitle = nil
141
+ btitle = $bib[k][2]['booktitle'] if $bib[k][2].has_key?('booktitle')
142
+ btitle = $bib[k][2]['journal'] if $bib[k][2].has_key?('journal')
143
+ if btitle
144
+ text = text + '<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' + CGI.escapeHTML(btitle)
145
+ end
146
+ if $bib[k][2].has_key?('author') && $bib[k][2]['author'].length > 0
147
+ authors = $bib[k][2]['author'].split(" and ")
148
+ authors = authors.collect{ |a| '<a class="author" href="/?search='+CGI.escape('author:"'+a+'"')+'">'+a+'</a>'}
149
+ text = text + '<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<i>' + authors.join(" and ") + '</i>'
150
+ end
151
+ else
152
+ text = '<b>['+k+']</b>'
153
+ $bib[k][2].each_pair { |fk,fv|
154
+ text = text + '<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'
155
+ text = text + CGI.escapeHTML(fk) + ' = {' + CGI.escapeHTML(fv) + '}'
156
+ }
157
+ end
158
+ %>
159
+ <tr style="background: <%= clrs[i] %>">
160
+ <td style="width: 3em"><input type="checkbox" onChange="update()" name="keys[]" value="<%= k %>">
161
+ <a href="/edit.html?key=<%= k%>"><img src="/static/pencil.png" style="width:1em; border:0px" alt="[edit]"></a>
162
+ </td>
163
+ <td style="width: 53em">
164
+ <%= text %>
165
+ </td>
166
+ <td style="width: 5em; text-align: center; font-size: 0.8em"><%= year %></td>
167
+ <%
168
+ end
169
+ end
170
+ %>
171
+ </table>
172
+ </center>
173
+
174
+ </html>
@@ -0,0 +1,98 @@
1
+ <html>
2
+ <%
3
+ if req["jrnls"] && req["changeto"]
4
+
5
+ cfrom = req["jrnls"].collect {|a| a.strip}
6
+ $bib.each_key{|k|
7
+ if $bib[k][2].has_key?('journal') || $bib[k][2].has_key?('booktitle')
8
+ kname = 'booktitle'
9
+ kname = 'journal' if $bib[k][2].has_key?('journal')
10
+ $bib[k][2][kname] = req["changeto"] if cfrom.include?($bib[k][2][kname].strip)
11
+ end
12
+ }
13
+ File.open($bibfile,'w') {|f| f.write(putentries($bib))}
14
+ end
15
+
16
+
17
+ journals = Hash.new
18
+ $bib.each_value {|b|
19
+ journals[b[2]['journal'].strip] = 1 if b[2].has_key?('journal')
20
+ journals[b[2]['booktitle'].strip] = 1 if b[2].has_key?('booktitle')
21
+ }
22
+ journals = journals.keys.sort
23
+ %>
24
+ <head>
25
+ <title>BibOrg: <%= $bibfile %></title>
26
+ <style type="text/css">
27
+ a.alink {
28
+ padding: 2px;
29
+ text-decoration: none;
30
+ font-size:0.75em;
31
+ font-weight: bold;
32
+ color: #000000
33
+ }
34
+ a.alink:hover {
35
+ background-color: #fff
36
+ }
37
+ </style>
38
+
39
+ <script type="text/javascript">
40
+ function update()
41
+ {
42
+ l = document.getElementsByName("jrnls[]");
43
+ t = document.getElementsByName("changeto");
44
+
45
+ for(i = 0; i < l.length;i++)
46
+ if(l[i].checked)
47
+ if(l[i].value.length > t[0].value.length)
48
+ t[0].value = l[i].value;
49
+ }
50
+
51
+ function clearsel()
52
+ {
53
+ l = document.getElementsByName("jrnls[]");
54
+ for(i = 0; i < l.length;i++)
55
+ l[i].checked = false;
56
+ t = document.getElementsByName("changeto");
57
+ t[0].value = ''
58
+ }
59
+ </script>
60
+
61
+
62
+ </head>
63
+
64
+ <body style="background: #444; padding-top: 4px">
65
+ <center>
66
+ <form action="/journals.html" METHOD="POST">
67
+ <table style="width:61em; border-spacing: 0px;">
68
+ <tr style="background: #888;">
69
+ <td style="text-align: left; font-size: 0.8em">
70
+ &nbsp;Change Selected To: <input name='changeto' value='' style="width:30em; border:0px">
71
+ <input type=submit value='Change'>
72
+ &nbsp;<a href="javascript:" onClick="clearsel()" class="alink">Clear</a>
73
+ </td>
74
+ <td style="text-align: right">
75
+ <a href="/" class="alink">Library</a>
76
+ </td>
77
+ </tr>
78
+ </table>
79
+
80
+
81
+ <table style="width:61em;">
82
+ <%
83
+ clrs=['#ccc','#ddd'];
84
+ for i in 0..(journals.length-1)
85
+ bclr=clrs[i.modulo(2)]
86
+ %>
87
+ <tr style="background:<%=bclr%>;">
88
+ <td style="width:1.5em; padding: 3px"><input onChange="update()" type="checkbox" name="jrnls[]" value="<%= journals[i] %>"></td>
89
+ <td style="width: 58em; font-size: 1em; padding: 3px"><%= journals[i] %></td>
90
+ </tr>
91
+ <%
92
+ end
93
+ %>
94
+ </table>
95
+ </form>
96
+ </center>
97
+ </body>
98
+ </html>
@@ -0,0 +1 @@
1
+ adfadf
@@ -0,0 +1,27 @@
1
+ module Biborg
2
+
3
+ def webapp
4
+ return Rack::Builder.new {
5
+ use Rack::Static, :urls => ["/static"], :root => $basedir
6
+ map '/' do
7
+ run Proc.new {|env|
8
+ location = env["PATH_INFO"]
9
+ location = "/index.html" if location == '/'
10
+ if location == '/die'
11
+ Process.exit!(0)
12
+ end
13
+ if File.file? $basedir+"/rhtml"+location then
14
+ code = 200
15
+ header = {"Content-Type" => "text/html"}
16
+ req = Rack::Request.new(env)
17
+ data = ERB.new(File.read($basedir+"/rhtml"+location)).result(binding)
18
+ [code, header, data]
19
+ else
20
+ [404, {"Content-Type" => "text/plain"}, "File not found: "+location]
21
+ end
22
+ }
23
+ end
24
+ }
25
+ end
26
+
27
+ end
metadata ADDED
@@ -0,0 +1,118 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: biborg
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: true
5
+ segments:
6
+ - 0
7
+ - 1
8
+ - a
9
+ version: 0.1.a
10
+ platform: ruby
11
+ authors:
12
+ - Ayan Chakrabarti
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-12-07 00:00:00 -05:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: rack
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 1
29
+ - 1
30
+ - 0
31
+ version: 1.1.0
32
+ type: :runtime
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
35
+ name: mongrel
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ segments:
42
+ - 1
43
+ - 1
44
+ - 4
45
+ version: 1.1.4
46
+ type: :runtime
47
+ version_requirements: *id002
48
+ - !ruby/object:Gem::Dependency
49
+ name: ferret
50
+ prerelease: false
51
+ requirement: &id003 !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ segments:
56
+ - 0
57
+ - 11
58
+ - 6
59
+ version: 0.11.6
60
+ type: :runtime
61
+ version_requirements: *id003
62
+ description: .bib file browser and organizer.
63
+ email: ayan.chakrabarti@gmail.com
64
+ executables:
65
+ - biborg
66
+ extensions: []
67
+
68
+ extra_rdoc_files: []
69
+
70
+ files:
71
+ - LICENSE
72
+ - README
73
+ - lib/biborg/static/test.html
74
+ - lib/biborg/static/pencil.png
75
+ - lib/biborg/parsebib.rb
76
+ - lib/biborg/webapp.rb
77
+ - lib/biborg/rhtml/journals.html
78
+ - lib/biborg/rhtml/import.html
79
+ - lib/biborg/rhtml/index.html
80
+ - lib/biborg/rhtml/authors.html
81
+ - lib/biborg/rhtml/edit.html
82
+ - bin/biborg
83
+ has_rdoc: true
84
+ homepage: ""
85
+ licenses: []
86
+
87
+ post_install_message:
88
+ rdoc_options: []
89
+
90
+ require_paths:
91
+ - lib
92
+ required_ruby_version: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ segments:
97
+ - 1
98
+ - 8
99
+ - 1
100
+ version: 1.8.1
101
+ required_rubygems_version: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - ">"
104
+ - !ruby/object:Gem::Version
105
+ segments:
106
+ - 1
107
+ - 3
108
+ - 1
109
+ version: 1.3.1
110
+ requirements: []
111
+
112
+ rubyforge_project:
113
+ rubygems_version: 1.3.6
114
+ signing_key:
115
+ specification_version: 3
116
+ summary: .bib file browser and organizer.
117
+ test_files: []
118
+