-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Implimented arXivId Parsing for PDF with arXivId #12335
Open
ar-rana
wants to merge
10
commits into
JabRef:main
Choose a base branch
from
ar-rana:feature/arXivId
base: main
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.
+77
−3
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
220ddac
Implimented arXivId Parsing forPDF with arXivId
ar-rana 32e9867
added Optional parameter
ar-rana 9c80e04
Merge branch 'main' into feature/arXivId
ar-rana 89de378
merged fixes
ar-rana 28755cf
removed csl-styles
ar-rana 06b6bb0
fixed null arxiv issue on external imports
ar-rana 457bb3f
Improved getArxivId Implementation
ar-rana a653de5
reduced nesting and added arxiv constant
ar-rana 06c771b
reduced nesting
ar-rana 1512d7e
modified testcase
ar-rana 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
Submodule abbrv.jabref.org
updated
2 files
+0 −9 | journals/journal_abbreviations_mathematics.csv | |
+1 −20 | journals/journal_abbreviations_ubc.csv |
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
Submodule csl-styles
updated
20 files
+0 −279 | acta-medica-portuguesa.csl | |
+1 −1 | anesthesiology.csl | |
+0 −5 | apa-5th-edition.csl | |
+0 −5 | apa-6th-edition-no-ampersand.csl | |
+0 −5 | apa-6th-edition.csl | |
+0 −5 | apa-annotated-bibliography.csl | |
+0 −5 | apa-cv.csl | |
+0 −5 | apa-no-ampersand.csl | |
+0 −5 | apa-no-doi-no-issue.csl | |
+0 −5 | apa-no-initials.csl | |
+0 −5 | apa-numeric-superscript-brackets.csl | |
+0 −5 | apa-numeric-superscript.csl | |
+0 −5 | apa-old-doi-prefix.csl | |
+0 −5 | apa-single-spaced.csl | |
+0 −5 | apa-with-abstract.csl | |
+0 −5 | apa.csl | |
+1 −11 | bern-university-of-applied-sciences-school-of-agricultural-forest-and-food-sciences-hafl.csl | |
+0 −416 | gayana.csl | |
+0 −24 | royal-society-of-chemistry-with-titles.csl | |
+1 −1 | spec/spec_helper.rb |
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 |
---|---|---|
|
@@ -129,6 +129,43 @@ British Journal of Nutrition (2008), 99, 1–11 doi: 10.1017/S0007114507795296 | |
assertEquals(Optional.of(entry), importer.getEntryFromPDFContent(firstPageContent, "\n", Optional.empty())); | ||
} | ||
|
||
@Test | ||
void extractArXivFromPage1() { | ||
BibEntry entry = new BibEntry(StandardEntryType.TechReport) | ||
.withField(StandardField.AUTHOR, "Filippo Riccaa and Alessandro Marchettob and Andrea Stoccoc") | ||
.withField(StandardField.TITLE, "A Multi-Year Grey Literature Review on AI-assisted Test Automation") | ||
.withField(StandardField.YEAR, "2024") | ||
.withField(StandardField.EPRINT, "2408.06224v1") | ||
.withField((StandardField.KEYWORDS), "Test Automation Artificial Intelligence AI-assisted Test Automation Grey Literature Automated Test Generation Self-Healing Test Scripts"); | ||
|
||
String firstPageContent = """ | ||
A Multi-Year Grey Literature Review on AI-assisted Test Automation | ||
|
||
Filippo Riccaa, Alessandro Marchettob and Andrea Stoccoc | ||
|
||
aUniversity of Genoa, Via Balbi 5, Genova, 16126, Italy | ||
bUniversity of Trento, Via Sommarive 9, Trento, 38123, Italy | ||
cTechnical University of Munich, Boltzmannstraße 3, Munich, 85748, Germany | ||
dfortiss GmbH, Guerickestraße 25, Munich, 80805, Germany | ||
|
||
Keywords: | ||
Test Automation | ||
Artificial Intelligence | ||
AI-assisted Test Automation | ||
Grey Literature | ||
Automated Test Generation | ||
Self-Healing Test Scripts | ||
|
||
*Corresponding author | ||
[email protected] (F. Ricca) | ||
https://person.dibris.unige.it/ricca-filippo/ (F. Ricca) | ||
ORCID(s): 0000-0002-3928-5408 (F. Ricca); 0000-0002-6833-896X (A. Marchetto); 0000-0001-8956-3894 (A. Stocco) | ||
|
||
arXiv:2408.06224v1 [cs.SE] 12 Aug 2024"""; | ||
|
||
assertEquals(Optional.of(entry), importer.getEntryFromPDFContent(firstPageContent, "\n", Optional.empty())); | ||
} | ||
|
||
@ParameterizedTest | ||
@MethodSource("providePdfData") | ||
void pdfTitleExtraction(String expectedTitle, String filePath) throws Exception { | ||
|
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.
This is an example why comments are to be avoided as much as possible, this line compiles fine, runs fine but the comment above it is misguiding. Please move comment to its correct location.
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.
sure