-
Notifications
You must be signed in to change notification settings - Fork 12
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
Refactor many things, fix extra/missing commas #58
Open
NickCrews
wants to merge
102
commits into
washingtonpost:develop
Choose a base branch
from
NickCrews:refactor
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
102 commits
Select commit
Hold shift + click to select a range
eb7ebed
ref: improve usesAscii28 parsing from version
NickCrews c218b74
ref: extract ctxWarn() helper
NickCrews 8e0e914
ref: add freeSafe() helper
NickCrews 413fbcc
ref: add _compileRegex() helper
NickCrews 1df3bd3
ref: statically compile regexes
NickCrews cb308c2
ref: split parseHeader() into *Legacy() and *NonLegacy() versions
NickCrews a79be13
ref: move string stuff to string_utils.h
NickCrews 22fcc2c
ref: remove unused FEC_CONTEXT.useAscii28
NickCrews 1467a7d
ref: Move isParseDone() to csv.h and csv.c
NickCrews 4ef050a
ref: move initParseContext() into csv.h and csv.c
NickCrews 088bf0b
ref: Move readField() into csv.h
NickCrews 98774db
ref: store FIELD_INFO in PARSE_CONTEXT as value, not pointer
NickCrews 88c31c7
ref: clean up a few warnings
NickCrews cd86048
ref: Move mapping regexes to separate, static struct
NickCrews efe1ff3
ref: deduplicate testIncludes in build.zig
NickCrews 2f0d02f
ref: format test files with black
NickCrews 41672ce
ref: Replace py.path with pathlib.Path in tests
NickCrews 30b27a7
ref: test: simplify getting fixtures
NickCrews c9ef40c
ref: blacken client.py
NickCrews 706710b
fix: Make reader thread a daemon
NickCrews c784f91
test: ref: Overhaul python testing
NickCrews 7bc8549
ref: take char*, not PARSE_CONTEXT, as arg to lookupMappings()
NickCrews 7427a07
ref: move create lookupType() helper in mappings.c
NickCrews 18451c1
test: add a unique marker for each test case
NickCrews c17412e
ref: Move all form schema lookup logic into mappings.c
NickCrews 46db0b4
ref: remove unused collectLineInfo() from encoding.h
NickCrews 05dccfa
ref: rename lookupSchema() to formSchemaLookup()
NickCrews 6772cdc
ref: rename lookupMappings() to updateCurrentFormSchema()
NickCrews 93456d3
fix: Print correct string on extra column
NickCrews 2e84117
ref: factor out ctxWriteField() when printing lines
NickCrews 3dd36c4
ref: Rename writeQuotedCsvField() to writeQuotedString()
NickCrews 86730f5
tests: add xfailing traling_commas test
NickCrews dbb7ee8
ref: rename PARSE_CONTEXT to CSV_LINE_PARSER
NickCrews 4e5cdd1
ref: Simplify API of csv.writeField()
NickCrews b55d079
ref: tidy up csv.h
NickCrews 29a73bf
ref: simplify readCsvSubField()
NickCrews 66ad20d
ref: csv: make advanceField() a noop if isParseDone()
NickCrews 39e5174
ref: make setVersion() take explicit str
NickCrews b30a4de
test: rename test case to legacy_header
NickCrews 0d4d3c6
ref: fix a few simple warnings in mappings.c
NickCrews 1c8173a
fix: Fix segfault crash when parsing legacy header
NickCrews 3f75fd1
fix: test: fix legacy_header test case
NickCrews 361fac5
ref: simplify comments in parseFec()
NickCrews 0c2d4e3
ref: mark few private functions static
NickCrews d6df47f
ref: simplify parseLine() type warnings
NickCrews 9e53f1b
Remove extra FEC constant in fec.c
NickCrews e5a70d6
feat: python: prioritize zig-out dir when searching for dll
NickCrews 1f9aa57
test: ignore .DS_Store files from test cases.
NickCrews d6d3f5f
ref: const-ify many args
NickCrews aea66e9
ref: fix warnings on comparison of diff types
NickCrews e2abdc9
ref: explicitly pass NULL for types for header
NickCrews d0d8188
ref: fix: make formSchemaFree() safe from NULLS
NickCrews c531383
ref: encapsulate FEC_CONTEXT into FORM_SCHEMA
NickCrews e632121
test: add csv_test case
NickCrews 235aaae
ref: remove unused asciiOnly flag from LINE_INFO
NickCrews 3628de1
ref: improve growStringTo()
NickCrews f97e8b1
fix: don't reallocate extra byte in copyString()
NickCrews cfcebb9
ref: don't excessively pass around FEC_CONTEXT to _lineContainsF99Sta…
NickCrews 472104d
ref: remove unused FEC_CONTEXT.currentLineLength, LINE_INFO.length
NickCrews be55068
fix: fix warning
NickCrews 567e85d
ref: Move date and float csv writing to csv.c
NickCrews 8c25c50
ref: Create CSV_FIELD as first class citizen in csv API
NickCrews 3699c97
ref: tweak csv docstrings
NickCrews f7addbb
ref: csv: Remove advanceField(), replace columnIndex with numFieldsRead
NickCrews 95d2a5d
ref: reduce level of nesting in parseLine()
NickCrews 55c107b
ref: remove unused FEC_CONTEXT.summary
NickCrews 1258352
ref: remove unused FEC_CONTEXT.f99Text
NickCrews e50e4b2
docs: improve memory.h docstring
NickCrews 466cc9e
ref: reduce API of collectLineInfo()
NickCrews 4f7a575
ref: simplify API of encoding.decodeLine()
NickCrews 007c1c8
ref: Make freeString() OK with accepting NULLs
NickCrews 0e846f9
ref: remove unused versionUsesAscii28() from fec.h
NickCrews 6401f2b
ref: fix #includes
NickCrews bbe1e7a
ref: combine FEC_CONTEXT.version and versionLength into STRING
NickCrews 8340587
ref: cleanup malloc()s, don't cast result
NickCrews 763fbf9
ref: re-order stuff in FEC_CONTEXT
NickCrews 1d7af46
ref: make path length calculation make more sense
NickCrews df17f90
ref: move path stuff from writer.c to new path.c
NickCrews 6461d00
ref: add pathJoin() to path.h
NickCrews 4f26872
ref: calculate outputDir outside of WRITE_CONTEXT
NickCrews 12726ca
ref: name args when calling newFecContext()
NickCrews 70776ed
ref: one arg per line for newFecContext()
NickCrews f7837de
ref: label args to newFecContext() in client.py
NickCrews 91ade4a
ref: improve WriteCache in utils.py
NickCrews a524dd7
ref: simplify decoding bytes in provide_line_callback()
NickCrews 2a790ee
ref: simplify provide_line_callback()
NickCrews 1b8e100
ref: remove includeFilingId from FEC_CONTEXT
NickCrews cc2df27
BREAKING ref: re-order args to newFecContext()
NickCrews 4919d82
ref: rename test case trailing_commas to too_few_fields
NickCrews 827f903
test: rename case 1550126 to slash_form
NickCrews 6005a40
test: ref: add helper assert method to better show errors
NickCrews 7f5d80b
test: fix slash_form test
NickCrews 0d70f9c
add types to client.py
NickCrews dc72c90
feat: Fail earlier on bad output_directory in parse_as_files()
NickCrews 70b3431
docs: improve docstrings of python API
NickCrews 4618d74
test: better error message on fail
NickCrews 5c4c487
ref: improve comparison between numFieldsRead and schema.numFields
NickCrews a244b38
ref: clean up newline handling in ctxWarn()
NickCrews 56b954c
fix: Don't warn on an empty float field
NickCrews 5e0cd77
feat: put quotes around strings in warnings.
NickCrews 8073321
BREAKING: feat: print correct number of fields be default
NickCrews b7eb213
Update VERSION
NickCrews File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.1.9 | ||
0.1.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, you should just ignore this PR, as I discover that this parsing is never even used, and I remove it in 22fcc2c