-
-
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
base: main
Are you sure you want to change the base?
Changes from 9 commits
220ddac
32e9867
9c80e04
89de378
28755cf
06b6bb0
457bb3f
a653de5
06c771b
1512d7e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
+0 −9 | journals/journal_abbreviations_mathematics.csv | |
+1 −20 | journals/journal_abbreviations_ubc.csv |
+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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,6 +129,42 @@ 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 = """ | ||
arXiv:2408.06224v1 [cs.SE] 12 Aug 2024 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it guaranteed that the arXiv id will be on the first line? If not we need to add at least two more tests.
You can use JUnit 5 Parameterized Tests to reduce verbosity. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hello houssem, I checked multiple arXiv papers(10) and all of them had their arxiv string at the last line, here you can see it at the top(sorry for the oversight, will fix that) but moving it at the last also passes the test, and since all these papers have the same format i think the arxiv string would mostly be at the end |
||
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)"""; | ||
|
||
assertEquals(Optional.of(entry), importer.getEntryFromPDFContent(firstPageContent, "\n", Optional.empty())); | ||
} | ||
|
||
@ParameterizedTest | ||
@MethodSource("providePdfData") | ||
void pdfTitleExtraction(String expectedTitle, String filePath) throws Exception { | ||
|
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