Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge upstream #1

Open
wants to merge 97 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
87e13ee
Paging configuration params
Mar 25, 2014
f0f5da7
Discussion on #995 (paging, first iteration, buggy)
Mar 25, 2014
8b291f6
Issue #995 (paging; rendering tentatively done)
Mar 26, 2014
796eea0
Issue #995 (changed API)
Mar 26, 2014
5d76411
Issue #995 (paging; API changed back)
Mar 26, 2014
297835b
Issue #995 (paging; `undefined` & last word fixes)
Mar 26, 2014
4009086
Issue #995 (paging hopefully done)
Apr 1, 2014
1c1b42f
Unneeded row
Apr 3, 2014
8a387a1
Issue #995 (paging - prevent reset on edit)
Apr 4, 2014
a9dd31c
python 3; fix imports and formatting
benman1 Jul 6, 2018
725b118
fix: python3; imports
benman1 Jul 6, 2018
32182ce
fix more unicode and json; annotations work in python3!
benman1 Jul 8, 2018
0acabcb
fix import order
benman1 Jul 8, 2018
a6a40a3
Merge branch 'paging'
amadanmath Sep 3, 2018
c4a08bd
Merge branch 'master' of https://github.com/benman1/brat into benman1…
amadanmath Sep 3, 2018
75b6ff3
Merge branch 'benman1-master'
amadanmath Sep 3, 2018
17a395c
Add benman1 as major contributor, remove simplejson
amadanmath Sep 3, 2018
e3c5d4f
Python 3 touch-ups
amadanmath Sep 3, 2018
3727c5f
Fix incompatibilities with `sort`
amadanmath Sep 7, 2018
2fc8315
Implement Arcs bundle:hide
amadanmath Sep 7, 2018
3bd0e5a
Fix an unwanted comma
amadanmath Oct 31, 2018
b0814e9
Add C-H to repeat an edit
amadanmath Oct 31, 2018
c8373cf
backwards compatibility
spyysalo Nov 8, 2018
38da123
fix import error
spyysalo Nov 8, 2018
d9f8039
Removed several more encodes
amadanmath Nov 22, 2018
35b948d
Merge branch 'master' of github.com:nlplab/brat
amadanmath Nov 22, 2018
765337f
Change normalisation search default
amadanmath Nov 22, 2018
c9bb6a3
Fill span dialog with first configured normalization
amadanmath Nov 22, 2018
15eb2f0
Fix an error when using Enter
amadanmath Nov 26, 2018
063fde3
Fix a session naming bug
amadanmath Nov 26, 2018
9b05ca2
Prevent resize breaking the display
amadanmath Nov 28, 2018
a517b2d
Recalculate popup position when norm info comes
amadanmath Nov 28, 2018
cfdf628
Fix unresponsive collapser bug
amadanmath Nov 29, 2018
e99ce7b
Make session saving atomic
amadanmath Dec 3, 2018
8de323b
Fixes #1296
amadanmath Dec 4, 2018
0876c81
Solve XML space issue bug regarding matchFocus
amadanmath Dec 4, 2018
2e1e8f5
Allow selection in case of multiple normalisations
amadanmath Dec 17, 2018
5a022ee
Merge branch 'multinorm'
amadanmath Dec 17, 2018
0776d0c
Fixes the bug with non-Boolean attributes
amadanmath Dec 19, 2018
cbe0708
Add support for simstring-pure
amadanmath Dec 26, 2018
4675e3a
Merge branch 'master' of github.com:nlplab/brat
amadanmath Dec 26, 2018
9c34b78
Support for simstring-pure
amadanmath Mar 22, 2019
370b2e4
Fix Unicode bug
amadanmath Mar 22, 2019
731e564
bugfixes
spyysalo Mar 22, 2019
50ca6df
Merge branch 'master' of github.com:nlplab/brat
spyysalo Mar 22, 2019
6be2b71
Fix encoding problem in hash
amadanmath Apr 9, 2019
06b286b
Merge branch 'master' of github.com:nlplab/brat
amadanmath Apr 9, 2019
86bc3a9
Merge branch 'master' of github.com:nlplab/brat
Apr 24, 2019
e22866f
Change standalone.py to use Python3
amadanmath Jun 25, 2019
c411494
Update the troubleshooting script to Python3
amadanmath Jul 12, 2019
7a58bbe
Fix for Python 3.8: cgi.escape moved to html.escape
amadanmath Jan 20, 2020
580a45d
Simstring rework
amadanmath Mar 31, 2020
be68912
Integrate new simstring module
amadanmath Mar 31, 2020
1909339
Make multinormalization interface work
amadanmath Apr 10, 2020
20ea1b5
Fix the broken dialog sequencing
amadanmath Apr 13, 2020
0f06504
Make normalization UI work
amadanmath Apr 17, 2020
081e5f1
Bugfix: simstring detection and correct span type detection
amadanmath Apr 17, 2020
54ef420
Add normalization URLs, remove dead code
amadanmath Apr 22, 2020
35fd824
Merge branch 'feature-simstringrework'
amadanmath Apr 23, 2020
75779e6
Fix norm_db_init
amadanmath Apr 24, 2020
db78d87
Issue #1115 (support astral characters)
amadanmath Apr 27, 2020
94008a6
Remove debug output
amadanmath Apr 29, 2020
7f1e280
Fix offsets on span selection
amadanmath Apr 29, 2020
f1289ef
Remove redundant code
amadanmath Apr 30, 2020
c7e87f9
Stop requiring simstring
amadanmath Apr 30, 2020
49c8a1e
Let be used by itself
amadanmath May 24, 2020
96aad08
Add convenience to
amadanmath May 25, 2020
2e7552c
Rename work_dir -> lock_dir
amadanmath May 25, 2020
106f90e
Fix logic error when text is provided
amadanmath May 25, 2020
a7543fc
Save As; fix readonly bug
amadanmath May 25, 2020
3b8db66
Add usage sample to annotation.py
amadanmath May 25, 2020
c8d3b1b
Rename a constant
amadanmath May 25, 2020
6de1c2a
Add overview of annotation classes
amadanmath May 25, 2020
913de38
Fix bug with norms of misconfigured spans
amadanmath May 26, 2020
683d31c
Fix error when simstring is not set
amadanmath Jun 23, 2020
9ab78dd
Closes #1356
amadanmath Aug 14, 2020
660db9b
Closes #1350
amadanmath Aug 14, 2020
0de9ea4
Closes #1351
amadanmath Aug 14, 2020
eb80468
Merge branch 'master' of github.com:nlplab/brat
Sep 9, 2020
fa3cb1a
Add simple bioes2standoff tool
Sep 9, 2020
44178b6
Make bioes2standoff more programmer-friendly
Sep 9, 2020
f110f2e
py3
spyysalo Sep 23, 2020
80be116
Add rank info
spyysalo Sep 23, 2020
d8d9945
Support sentence comments
amadanmath Oct 8, 2020
523048b
Merge branch 'master' of github.com:nlplab/brat
amadanmath Oct 8, 2020
550ff1b
Fix style for sentence comments
amadanmath Oct 8, 2020
268f8e5
Fix UnicodeString handling in span form
amadanmath Nov 10, 2020
8289525
fix import for recent py3
spyysalo Nov 20, 2020
694bc4c
Fix collection download bug
amadanmath Apr 7, 2021
1848f7f
Merge branch 'master' of github.com:nlplab/brat
amadanmath Apr 7, 2021
cf786c7
Allow annotations to be read from string
amadanmath Jun 28, 2021
26034fd
Fix issue with gaussian blur
amadanmath Jun 28, 2021
0060ce7
Add setting to allow anonymous editing
amadanmath Jun 28, 2021
e297176
Fix bug with anonymous edit mode
amadanmath Jun 28, 2021
23f8ffb
Fix typo
amadanmath Jun 28, 2021
c667cd1
Prevent a reentrancy bug
amadanmath Oct 4, 2021
44ecd82
Merge branch 'master' of github.com:nlplab/brat
amadanmath Oct 4, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
#
# (See also http://brat.nlplab.org/troubleshooting.html)
<FilesMatch "^(\.htaccess|config\.py)$">
Order allow,deny
Deny from all
Require all denied
</FilesMatch>

Options +ExecCGI +FollowSymLinks
Expand Down
3 changes: 2 additions & 1 deletion CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ In order by changed lines of code ([Ballmer][ballmer] says [SLOC][sloc]

* Pontus Stenetorp &lt;pontus is s u-tokyo ac jp&gt;
* Sampo Pyysalo &lt;smp is s u-tokyo ac jp&gt;
* Goran Topić &lt;goran is s u-tokyo ac jp&gt;
* Goran Topić &lt;amadanmath gmail com&gt;
* Ben Auffarth &lt;auffarth gmail com&gt;
* Tomoko Ohta &lt;tomoko.ohta manchester ac uk&gt;
* Pierre-Francois Laquerre &lt;pierre.francois gmail com&gt;
* Illés Solt &lt;solt tmit bme hu&gt;
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,6 @@ are recognised in the CONTRIBUTORS.md file.
For help and feedback please contact the authors below, preferably with all on
them on CC since their responsibilities and availability may vary:

* Goran Topić &lt;goran_topic nii ac jp&gt;
* Goran Topić &lt;amadanmath gmail com&gt;
* Sampo Pyysalo &lt;sampo.pyysalo gmail com&gt;
* Pontus Stenetorp &lt;pontus stenetorp se&gt;
34 changes: 20 additions & 14 deletions ajax.cgi
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
#!/usr/bin/env python
# -*- Mode: Python; tab-width: 4; indent-tabs-mode: nil; -*-
#!/usr/bin/env python3
# -*- Mode: Python; tab-width: 4; indent-tabs-mode: nil; -*-
# vim:set ft=python ts=4 sw=4 sts=4 autoindent:

'''
Entry for CGI calls to brat. A simple wrapper around the CGI handling that then
delegates the work to the CGI-agnostic brat server.
"""Entry for CGI calls to brat. A simple wrapper around the CGI handling that
then delegates the work to the CGI-agnostic brat server.

Author: Pontus Stenetorp <pontus is s u-tokyo ac jp>
Version: 2011-02-07
'''
"""

# Standard library imports
from cgi import FieldStorage
Expand All @@ -22,6 +21,9 @@ sys_path.append(path_join(dirname(__file__), 'server/src'))

from server import serve


stdout = open(stdout.fileno(), mode='w', encoding='utf8', buffering=1)

def main(args):
# Get data required for server call
try:
Expand All @@ -41,7 +43,7 @@ def main(args):

# Call main server
cookie_hdrs, response_data = serve(params, remote_addr, remote_host,
cookie_data)
cookie_data)

# Package and send response
if cookie_hdrs is not None:
Expand All @@ -53,30 +55,34 @@ def main(args):
stdout.write('\n'.join('%s: %s' % (k, v) for k, v in response_hdrs))
stdout.write('\n')
stdout.write('\n')
# Hack to support binary data and general Unicode for SVGs and JSON
if isinstance(response_data[1], unicode):
stdout.write(response_data[1].encode('utf-8'))
if isinstance(response_data[1], bytes):
stdout.flush()
stdout.buffer.write(response_data[1])
else:
stdout.write(response_data[1])
return 0


def profile_main(argv):
# runs main() with profiling, storing in a rotating set of files
# in work. To see a profile, run e.g.
# python -c 'import pstats; pstats.Stats("work/serverprofile0").strip_dirs().sort_stats("time").print_stats()' | less
# python -c 'import pstats;
# pstats.Stats("work/serverprofile0").strip_dirs().sort_stats("time").print_stats()'
# | less
import cProfile
import os.path
for i in range(0,10):
pfn = 'work/serverprofile'+str(i)
for i in range(0, 10):
pfn = 'work/serverprofile' + str(i)
if not os.path.exists(pfn):
break
if os.path.exists(pfn):
# rotate back; TODO: clear next in rotation
pfn = 'work/serverprofile0'
cProfile.run('main(argv)', pfn)


if __name__ == '__main__':
from sys import argv, exit
exit(main(argv))
# To turn on server profiles, comment out the line above and use the one below.
#exit(profile_main(argv))
# exit(profile_main(argv))
Loading