repo
stringlengths
1
191
file
stringlengths
23
351
code
stringlengths
0
5.32M
file_length
int64
0
5.32M
avg_line_length
float64
0
2.9k
max_line_length
int64
0
288k
extension_type
stringclasses
1 value
null
jabref-main/src/main/java/org/jabref/logic/formatter/IdentityFormatter.java
package org.jabref.logic.formatter; import java.util.Objects; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; /** * It may seem useless, but is needed as a fallback option */ public class IdentityFormatter extends Formatter { @Override public String getName() { ...
761
18.538462
58
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/bibtexfields/AddBracesFormatter.java
package org.jabref.logic.formatter.bibtexfields; import java.util.Objects; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; public class AddBracesFormatter extends Formatter { @Override public String getName() { return Localization.lang("Add enclosing braces"); ...
1,045
23.904762
109
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/bibtexfields/CleanupUrlFormatter.java
package org.jabref.logic.formatter.bibtexfields; import java.net.URLDecoder; import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import java.util.Objects; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Loca...
2,545
32.5
108
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/bibtexfields/ClearFormatter.java
package org.jabref.logic.formatter.bibtexfields; import java.util.Objects; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; public class ClearFormatter extends Formatter { @Override public String getName() { return Localization.lang("Clear"); } @Override...
725
19.166667
65
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/bibtexfields/EscapeAmpersandsFormatter.java
package org.jabref.logic.formatter.bibtexfields; import java.util.Objects; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; public class EscapeAmpersandsFormatter extends Formatter { @Override public String getName() { return Localization.lang("Escape ampersands"...
3,268
33.052083
93
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/bibtexfields/EscapeDollarSignFormatter.java
package org.jabref.logic.formatter.bibtexfields; import java.util.Objects; import java.util.regex.Matcher; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; public class EscapeDollarSignFormatter extends Formatter { @Override public String getName() { return Local...
845
21.864865
81
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/bibtexfields/EscapeUnderscoresFormatter.java
package org.jabref.logic.formatter.bibtexfields; import java.util.Objects; import java.util.regex.Pattern; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; public class EscapeUnderscoresFormatter extends Formatter { private static final Pattern UNDERSCORES = Pattern.compile(...
899
21.5
68
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/bibtexfields/HtmlToLatexFormatter.java
package org.jabref.logic.formatter.bibtexfields; import java.util.Objects; import java.util.Set; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; import org.jabref.logic.layout.LayoutFormatter; import org.jabref.logic...
5,572
38.246479
120
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/bibtexfields/HtmlToUnicodeFormatter.java
package org.jabref.logic.formatter.bibtexfields; import org.jabref.architecture.ApacheCommonsLang3Allowed; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; import org.jabref.logic.layout.LayoutFormatter; import org.apache.commons.lang3.StringEscapeUtils; @ApacheCommonsLang3Allowe...
1,089
26.948718
84
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/bibtexfields/LatexCleanupFormatter.java
package org.jabref.logic.formatter.bibtexfields; import java.util.regex.Pattern; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; /** * Simplifies LaTeX syntax. {@see org.jabref.logic.layout.format.RemoveLatexCommandsFormatter} for a formatter removing LaTeX commands completely....
2,948
41.73913
167
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/bibtexfields/NormalizeDateFormatter.java
package org.jabref.logic.formatter.bibtexfields; import java.util.Optional; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; import org.jabref.model.entry.Date; /** * This class transforms date to the format yyyy-mm-dd or yyyy-mm.. */ public class NormalizeDateFormatter extends...
1,278
26.212766
119
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/bibtexfields/NormalizeEnDashesFormatter.java
package org.jabref.logic.formatter.bibtexfields; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; public class NormalizeEnDashesFormatter extends Formatter { @Override public String getName() { return Localization.lang("Normalize en dashes"); } @Override ...
763
22.151515
77
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/bibtexfields/NormalizeMonthFormatter.java
package org.jabref.logic.formatter.bibtexfields; import java.util.Objects; import java.util.Optional; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; import org.jabref.model.entry.Month; public class NormalizeMonthFormatter extends Formatter { @Override public String ge...
922
22.666667
85
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/bibtexfields/NormalizeNamesFormatter.java
package org.jabref.logic.formatter.bibtexfields; import java.util.Objects; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; import org.jabref.model.entry.AuthorList; /** * Formatter normalizing a list of person names to the BibTeX format. */ public class NormalizeNamesFormatter...
1,026
24.04878
88
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/bibtexfields/NormalizePagesFormatter.java
package org.jabref.logic.formatter.bibtexfields; import java.util.Objects; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.formatter.casechanger.UnprotectTermsFormatter; import org.jabref.logic.l10n.Localization; /** * This class inc...
3,023
31.869565
99
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/bibtexfields/OrdinalsToSuperscriptFormatter.java
package org.jabref.logic.formatter.bibtexfields; import java.util.Objects; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; /** * This class transforms ordinal numbers into LaTeX superscripts. */ public class Ordin...
1,793
26.6
106
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/bibtexfields/RegexFormatter.java
package org.jabref.logic.formatter.bibtexfields; import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.regex.Matcher; import java.util.regex.Pattern; import java.util.regex.PatternSyntaxException; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localizat...
4,935
39.459016
121
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/bibtexfields/RemoveBracesFormatter.java
package org.jabref.logic.formatter.bibtexfields; import java.util.Objects; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; public class RemoveBracesFormatter extends Formatter { @Override public String getName() { return Localization.lang("Remove enclosing brace...
2,183
28.513514
117
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/bibtexfields/RemoveDigitsFormatter.java
package org.jabref.logic.formatter.bibtexfields; import java.util.Objects; import java.util.regex.Pattern; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; public class RemoveDigitsFormatter extends Formatter { private static final Pattern DIGITS = Pattern.compile("[ ]\\d+")...
863
20.6
69
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/bibtexfields/RemoveHyphenatedNewlinesFormatter.java
package org.jabref.logic.formatter.bibtexfields; import java.util.Objects; import java.util.regex.Pattern; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; /** * Removes all hyphenated line breaks in the string. */ public class RemoveHyphenatedNewlinesFormatter extends Formatte...
1,057
23.604651
93
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/bibtexfields/RemoveNewlinesFormatter.java
package org.jabref.logic.formatter.bibtexfields; import java.util.Objects; import java.util.regex.Pattern; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; /** * Removes all line breaks in the string. */ public class RemoveNewlinesFormatter extends Formatter { private stati...
985
21.930233
82
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/bibtexfields/RemoveRedundantSpacesFormatter.java
package org.jabref.logic.formatter.bibtexfields; import java.util.Objects; import java.util.regex.Pattern; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; /** * Finds any occurrence of consecutive spaces and replaces it with a single space */ public class RemoveRedundantSpaces...
1,050
24.02381
106
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/bibtexfields/ReplaceTabsBySpaceFormater.java
package org.jabref.logic.formatter.bibtexfields; import java.util.Objects; import java.util.regex.Pattern; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; /** * Replaces any tab with a space */ public class ReplaceTabsBySpaceFormater extends Formatter { private static fin...
938
21.357143
82
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/bibtexfields/ShortenDOIFormatter.java
package org.jabref.logic.formatter.bibtexfields; import java.util.Objects; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.importer.util.ShortDOIService; import org.jabref.logic.importer.util.ShortDOIServiceException; import org.jabref.logic.l10n.Localization; import org.jabref.model.entry.identifi...
1,446
26.826923
92
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/bibtexfields/TrimWhitespaceFormatter.java
package org.jabref.logic.formatter.bibtexfields; import java.util.Objects; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; /** * Trim all whitespace characters (as defined in Java) in the beginning and at the end of the string. */ public class TrimWhitespaceFormatter extends F...
904
22.205128
101
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/bibtexfields/UnicodeToLatexFormatter.java
package org.jabref.logic.formatter.bibtexfields; import java.util.Map; import java.util.Objects; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; import org.jabref.logic.layout.LayoutFormatter; import org.jabref.logic.util.strings.HTMLUnicodeConversionMaps; import org.slf4j.Logge...
2,832
30.831461
112
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/bibtexfields/UnitsToLatexFormatter.java
package org.jabref.logic.formatter.bibtexfields; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Objects; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; import org.jabref.logic.util.strings.StringLengthCo...
4,420
30.805755
146
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/casechanger/CapitalizeFormatter.java
package org.jabref.logic.formatter.casechanger; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; public class CapitalizeFormatter extends Formatter { @Override public String getName() { return Localization.lang("Capitalize"); } @Override public String...
1,059
24.853659
160
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/casechanger/LowerCaseFormatter.java
package org.jabref.logic.formatter.casechanger; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; public class LowerCaseFormatter extends Formatter { @Override public String getName() { return Localization.lang("lower case"); } @Override public String ...
907
21.7
103
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/casechanger/ProtectTermsFormatter.java
package org.jabref.logic.formatter.casechanger; import java.util.List; import java.util.Objects; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; import org.jabref.logic.protectedterms.ProtectedTermsLoader; import org.jabref.logic.util.strings.StringLengthComparator; /** * Adds ...
2,022
30.123077
149
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/casechanger/SentenceCaseFormatter.java
package org.jabref.logic.formatter.casechanger; import java.util.stream.Collectors; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; import org.jabref.model.strings.StringUtil; public class SentenceCaseFormatter extends Formatter { @Override public String getName() { ...
1,463
28.877551
242
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/casechanger/Title.java
package org.jabref.logic.formatter.casechanger; import java.util.Collections; import java.util.LinkedList; import java.util.List; import java.util.Optional; import java.util.stream.Collectors; /** * Represents a title of a bibtex entry. */ public final class Title { private final List<Word> words = new LinkedL...
1,039
23.186047
83
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/casechanger/TitleCaseFormatter.java
package org.jabref.logic.formatter.casechanger; import java.util.stream.Collectors; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; import org.jabref.model.strings.StringUtil; public class TitleCaseFormatter extends Formatter { @Override public String getName() { ...
1,969
31.295082
110
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/casechanger/TitleParser.java
package org.jabref.logic.formatter.casechanger; import java.util.LinkedList; import java.util.List; import java.util.Optional; /** * Parses a title to a list of words. */ public final class TitleParser { private StringBuilder buffer; private int wordStart; public List<Word> parse(String title) { ...
1,951
23.708861
82
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/casechanger/UnprotectTermsFormatter.java
package org.jabref.logic.formatter.casechanger; import java.util.Objects; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; /** * Remove {} braces around words in case they appear balanced * * Related formatter: {@link ProtectTermsFormatter} */ public class UnprotectTermsForma...
1,705
25.65625
128
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/casechanger/UpperCaseFormatter.java
package org.jabref.logic.formatter.casechanger; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; /** * Converts all characters of the given string to upper case, but does not change words starting with "{" */ public class UpperCaseFormatter extends Formatter { @Override ...
917
21.390244
105
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/casechanger/Word.java
package org.jabref.logic.formatter.casechanger; import java.util.Arrays; import java.util.HashSet; import java.util.Locale; import java.util.Objects; import java.util.Set; import java.util.stream.Collectors; /** * Represents a word in a title of a bibtex entry. * <p> * A word can have protected chars (enclosed in ...
5,672
34.018519
400
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/minifier/MinifyNameListFormatter.java
package org.jabref.logic.formatter.minifier; import java.util.Objects; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; /** * Replaces three or more authors with and others */ public class MinifyNameListFormatter extends Formatter { @Override public String getName() { ...
2,051
24.333333
110
java
null
jabref-main/src/main/java/org/jabref/logic/formatter/minifier/TruncateFormatter.java
package org.jabref.logic.formatter.minifier; import java.util.Objects; import org.jabref.logic.cleanup.Formatter; import org.jabref.logic.l10n.Localization; public class TruncateFormatter extends Formatter { private final int TRUNCATE_AFTER; private final String KEY; /** * The TruncateFormatter tru...
1,362
25.211538
103
java
null
jabref-main/src/main/java/org/jabref/logic/git/GitHandler.java
package org.jabref.logic.git; import java.io.File; import java.io.IOException; import java.net.URISyntaxException; import java.nio.file.Files; import java.nio.file.Path; import java.util.Optional; import org.jabref.logic.util.io.FileUtil; import org.eclipse.jgit.api.Git; import org.eclipse.jgit.api.RmCommand; import...
8,103
37.961538
138
java
null
jabref-main/src/main/java/org/jabref/logic/git/SlrGitHandler.java
package org.jabref.logic.git; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Objects; import java.util.Optional; im...
7,012
43.106918
142
java
null
jabref-main/src/main/java/org/jabref/logic/groups/DefaultGroupsFactory.java
package org.jabref.logic.groups; import org.jabref.logic.l10n.Localization; import org.jabref.model.groups.AllEntriesGroup; public class DefaultGroupsFactory { private static String ALL_ENTRIES_GROUP_DEFAULT_ICON = "ALL_ENTRIES_GROUP_ICON"; private DefaultGroupsFactory() { } public static AllEntrie...
526
26.736842
86
java
null
jabref-main/src/main/java/org/jabref/logic/help/HelpFile.java
package org.jabref.logic.help; /** * This enum globally defines all help pages with the name of the markdown file in the help repository at Github. * * @see <a href="https://github.com/JabRef/user-documentation">user-documentation@github</a> */ public enum HelpFile { // empty string denotes that it refers to t...
3,204
45.449275
116
java
null
jabref-main/src/main/java/org/jabref/logic/importer/AuthorListParser.java
package org.jabref.logic.importer; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.HashSet; import java.util.List; import java.util.Locale; import java.util.Objects; import java.util.Optional; import java.util.Set; import org.jabref.model.entry.Author; import org.jab...
21,208
41.933198
134
java
null
jabref-main/src/main/java/org/jabref/logic/importer/CompositeIdFetcher.java
package org.jabref.logic.importer; import java.util.Optional; import java.util.stream.Stream; import org.jabref.logic.importer.fetcher.ArXivFetcher; import org.jabref.logic.importer.fetcher.DoiFetcher; import org.jabref.logic.importer.fetcher.isbntobibtex.EbookDeIsbnFetcher; import org.jabref.logic.importer.fetcher.i...
2,593
42.233333
122
java
null
jabref-main/src/main/java/org/jabref/logic/importer/EntryBasedFetcher.java
package org.jabref.logic.importer; import java.util.List; import org.jabref.model.entry.BibEntry; /** * Searches web resources for bibliographic information based on a {@link BibEntry}. * Useful to <b>complete</b> an existing entry with fetched information. * May return multiple search hits. */ public interface ...
685
30.181818
88
java
null
jabref-main/src/main/java/org/jabref/logic/importer/EntryBasedParserFetcher.java
package org.jabref.logic.importer; import java.io.BufferedInputStream; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.net.URISyntaxException; import java.net.URL; import java.util.Collections; import java.util.List; import java.util.Objects; import org.jabre...
2,884
34.182927
118
java
null
jabref-main/src/main/java/org/jabref/logic/importer/FetcherClientException.java
package org.jabref.logic.importer; /** * Should be thrown when you encounter an HTTP status code error &gt;= 400 and &lt; 500. */ public class FetcherClientException extends FetcherException { public FetcherClientException(String errorMessage, Throwable cause) { super(errorMessage, cause); } pu...
568
27.45
98
java
null
jabref-main/src/main/java/org/jabref/logic/importer/FetcherException.java
package org.jabref.logic.importer; import org.jabref.logic.JabRefException; public class FetcherException extends JabRefException { public FetcherException(String errorMessage, Throwable cause) { super(errorMessage, cause); } public FetcherException(String errorMessage) { super(errorMess...
488
24.736842
92
java
null
jabref-main/src/main/java/org/jabref/logic/importer/FetcherResult.java
package org.jabref.logic.importer; import java.net.URL; import org.jabref.logic.importer.fetcher.TrustLevel; public final class FetcherResult { private final TrustLevel trust; private final URL source; public FetcherResult(TrustLevel trust, URL source) { this.trust = trust; this.source =...
460
18.208333
56
java
null
jabref-main/src/main/java/org/jabref/logic/importer/FetcherServerException.java
package org.jabref.logic.importer; /** * Should be thrown when you encounter a http status code error >= 500 */ public class FetcherServerException extends FetcherException { public FetcherServerException(String errorMessage, Throwable cause) { super(errorMessage, cause); } public FetcherServer...
550
28
98
java
null
jabref-main/src/main/java/org/jabref/logic/importer/FulltextFetcher.java
package org.jabref.logic.importer; import java.io.IOException; import java.net.URL; import java.util.Optional; import org.jabref.logic.importer.fetcher.TrustLevel; import org.jabref.model.entry.BibEntry; /** * This interface is used for classes that try to resolve a full-text PDF url for a BibTex entry. * Implemen...
1,275
33.486486
97
java
null
jabref-main/src/main/java/org/jabref/logic/importer/FulltextFetchers.java
package org.jabref.logic.importer; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.util.Comparator; import java.util.HashSet; import java.util.List; import java.util.Objects; import java.util.Optional; import java.util.Set; import java.util.concurrent.Callable; impor...
4,546
36.891667
168
java
null
jabref-main/src/main/java/org/jabref/logic/importer/IdBasedFetcher.java
package org.jabref.logic.importer; import java.util.Optional; import org.jabref.model.entry.BibEntry; /** * Searches web resources for bibliographic information based on an identifier. * Examples are ISBN numbers and DOIs. */ public interface IdBasedFetcher extends WebFetcher { /** * Looks for bibliogra...
663
30.619048
118
java
null
jabref-main/src/main/java/org/jabref/logic/importer/IdBasedParserFetcher.java
package org.jabref.logic.importer; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.net.URISyntaxException; import java.net.URL; import java.util.List; import java.util.Optional; import org.jabref.logic.cleanup.Formatter; import org.jabref.model.entry.BibEntry...
3,270
33.797872
140
java
null
jabref-main/src/main/java/org/jabref/logic/importer/IdFetcher.java
package org.jabref.logic.importer; import java.util.Optional; import org.jabref.model.entry.BibEntry; import org.jabref.model.entry.identifier.Identifier; /** * Looks for article identifier based on already present bibliographic information. */ public interface IdFetcher<T extends Identifier> extends WebFetcher { ...
806
30.038462
93
java
null
jabref-main/src/main/java/org/jabref/logic/importer/IdParserFetcher.java
package org.jabref.logic.importer; import java.io.BufferedInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.net.URISyntaxException; import java.net.URL; import java.util.List; import java.util.Objects; import ja...
3,682
35.465347
118
java
null
jabref-main/src/main/java/org/jabref/logic/importer/ImportCleanup.java
package org.jabref.logic.importer; import java.util.Collection; import org.jabref.logic.cleanup.ConvertToBiblatexCleanup; import org.jabref.logic.cleanup.ConvertToBibtexCleanup; import org.jabref.model.database.BibDatabaseMode; import org.jabref.model.entry.BibEntry; public class ImportCleanup { private final B...
1,248
31.025641
91
java
null
jabref-main/src/main/java/org/jabref/logic/importer/ImportException.java
package org.jabref.logic.importer; import org.jabref.logic.JabRefException; public class ImportException extends JabRefException { public ImportException(String errorMessage, Exception cause) { super(errorMessage, cause); } public ImportException(String errorMessage) { super(errorMessage...
406
20.421053
66
java
null
jabref-main/src/main/java/org/jabref/logic/importer/ImportFormatPreferences.java
package org.jabref.logic.importer; import org.jabref.logic.bibtex.FieldPreferences; import org.jabref.logic.citationkeypattern.CitationKeyPatternPreferences; import org.jabref.logic.importer.fetcher.GrobidPreferences; import org.jabref.logic.preferences.DOIPreferences; import org.jabref.logic.xmp.XmpPreferences; impor...
694
37.611111
73
java
null
jabref-main/src/main/java/org/jabref/logic/importer/ImportFormatReader.java
package org.jabref.logic.importer; import java.io.IOException; import java.nio.file.Path; import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.Optional; import java.util.SortedSet; import java.util.TreeSet; import org.jabref.logic.importer.fileformat.BiblioscapeImporter; impor...
10,100
41.0875
187
java
null
jabref-main/src/main/java/org/jabref/logic/importer/Importer.java
package org.jabref.logic.importer; import java.io.BufferedInputStream; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.StringReader; import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import java.nio.file.Fi...
9,074
35.445783
178
java
null
jabref-main/src/main/java/org/jabref/logic/importer/ImporterPreferences.java
package org.jabref.logic.importer; import java.nio.file.Path; import java.util.Set; import javafx.beans.property.BooleanProperty; import javafx.beans.property.ObjectProperty; import javafx.beans.property.SimpleBooleanProperty; import javafx.beans.property.SimpleObjectProperty; import javafx.collections.FXCollections;...
3,013
34.458824
98
java
null
jabref-main/src/main/java/org/jabref/logic/importer/OpenDatabase.java
package org.jabref.logic.importer; import java.io.IOException; import java.nio.file.Path; import java.util.Arrays; import java.util.List; import org.jabref.logic.importer.fileformat.BibtexImporter; import org.jabref.migrations.ConvertLegacyExplicitGroups; import org.jabref.migrations.ConvertMarkingToGroups; import or...
1,620
33.489362
140
java
null
jabref-main/src/main/java/org/jabref/logic/importer/OutputPrinter.java
package org.jabref.logic.importer; public interface OutputPrinter { void setStatus(String s); void showMessage(String message, String title, int msgType); void showMessage(String string); }
206
17.818182
64
java
null
jabref-main/src/main/java/org/jabref/logic/importer/PagedSearchBasedFetcher.java
package org.jabref.logic.importer; import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.jabref.model.entry.BibEntry; import org.jabref.model.paging.Page; import org.apache.lucene.queryparser.flexible.core.QueryNodeParseException; import org.apache.lucene.queryparser.flexible.co...
2,211
35.866667
107
java
null
jabref-main/src/main/java/org/jabref/logic/importer/PagedSearchBasedParserFetcher.java
package org.jabref.logic.importer; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.net.URISyntaxException; import java.net.URL; import java.util.List; import org.jabref.model.entry.BibEntry; import org.jabref.model.paging.Page; import org.apache.lucene.query...
2,343
38.728814
129
java
null
jabref-main/src/main/java/org/jabref/logic/importer/ParseException.java
package org.jabref.logic.importer; public class ParseException extends Exception { public ParseException(Throwable cause) { super(cause); } public ParseException(String message, Throwable cause) { super(message, cause); } public ParseException(String message) { super(mess...
334
18.705882
60
java
null
jabref-main/src/main/java/org/jabref/logic/importer/Parser.java
package org.jabref.logic.importer; import java.io.ByteArrayInputStream; import java.io.InputStream; import java.nio.charset.StandardCharsets; import java.util.List; import org.jabref.model.entry.BibEntry; /** * A parser converts an {@link InputStream} into a list of {@link BibEntry}. */ public interface Parser { ...
592
27.238095
99
java
null
jabref-main/src/main/java/org/jabref/logic/importer/ParserResult.java
package org.jabref.logic.importer; import java.nio.file.Path; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Objects; import java.util.Optional; import java.util.Set; import org.jabref.model.database.BibDatabase;...
4,599
27.04878
101
java
null
jabref-main/src/main/java/org/jabref/logic/importer/QueryParser.java
package org.jabref.logic.importer; import java.util.ArrayList; import java.util.Comparator; import java.util.HashSet; import java.util.List; import java.util.Optional; import java.util.Set; import org.jabref.logic.importer.fetcher.ComplexSearchQuery; import org.apache.lucene.index.Term; import org.apache.lucene.quer...
2,100
41.02
133
java
null
jabref-main/src/main/java/org/jabref/logic/importer/SearchBasedFetcher.java
package org.jabref.logic.importer; import java.util.Collections; import java.util.List; import org.jabref.model.entry.BibEntry; import org.apache.lucene.queryparser.flexible.core.QueryNodeParseException; import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode; import org.apache.lucene.queryparser.flexible...
1,971
35.518519
104
java
null
jabref-main/src/main/java/org/jabref/logic/importer/SearchBasedParserFetcher.java
package org.jabref.logic.importer; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.net.URISyntaxException; import java.net.URL; import java.util.List; import org.jabref.logic.cleanup.Formatter; import org.jabref.model.entry.BibEntry; import org.apache.lucene...
4,202
41.454545
215
java
null
jabref-main/src/main/java/org/jabref/logic/importer/WebFetcher.java
package org.jabref.logic.importer; import java.net.URL; import java.util.Optional; import org.jabref.logic.help.HelpFile; import org.jabref.logic.net.URLDownload; /** * Searches web resources for bibliographic information. */ public interface WebFetcher { /** * Returns the localized name of this fetcher....
1,006
25.5
163
java
null
jabref-main/src/main/java/org/jabref/logic/importer/WebFetchers.java
package org.jabref.logic.importer; import java.util.Comparator; import java.util.HashSet; import java.util.Optional; import java.util.Set; import java.util.SortedSet; import java.util.TreeSet; import org.jabref.logic.importer.fetcher.ACMPortalFetcher; import org.jabref.logic.importer.fetcher.ACS; import org.jabref.lo...
11,091
47.863436
164
java
null
jabref-main/src/main/java/org/jabref/logic/importer/fetcher/ACMPortalFetcher.java
package org.jabref.logic.importer.fetcher; import java.net.CookieHandler; import java.net.CookieManager; import java.net.MalformedURLException; import java.net.URISyntaxException; import java.net.URL; import java.util.Optional; import org.jabref.logic.help.HelpFile; import org.jabref.logic.importer.FetcherException; ...
2,079
29.588235
115
java
null
jabref-main/src/main/java/org/jabref/logic/importer/fetcher/ACS.java
package org.jabref.logic.importer.fetcher; import java.io.IOException; import java.net.URL; import java.util.Objects; import java.util.Optional; import org.jabref.logic.importer.FulltextFetcher; import org.jabref.model.entry.BibEntry; import org.jabref.model.entry.field.StandardField; import org.jabref.model.entry.id...
1,996
29.723077
90
java
null
jabref-main/src/main/java/org/jabref/logic/importer/fetcher/AbstractIsbnFetcher.java
package org.jabref.logic.importer.fetcher; import java.util.Optional; import org.jabref.logic.help.HelpFile; import org.jabref.logic.importer.FetcherException; import org.jabref.logic.importer.IdBasedParserFetcher; import org.jabref.logic.importer.ImportFormatPreferences; import org.jabref.logic.importer.Parser; impo...
1,265
31.461538
93
java
null
jabref-main/src/main/java/org/jabref/logic/importer/fetcher/ApsFetcher.java
package org.jabref.logic.importer.fetcher; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.net.URLConnection; import java.util.Objects; import java.util.Optional; import org.jabref.logic.importer.FulltextFetcher; import org.jabref.model.entry.BibEntry; import org.ja...
2,963
31.217391
93
java
null
jabref-main/src/main/java/org/jabref/logic/importer/fetcher/ArXivFetcher.java
package org.jabref.logic.importer.fetcher; import java.io.IOException; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URISyntaxException; import java.net.URL; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; import ...
38,017
47.992268
206
java
null
jabref-main/src/main/java/org/jabref/logic/importer/fetcher/AstrophysicsDataSystem.java
package org.jabref.logic.importer.fetcher; import java.io.IOException; import java.net.MalformedURLException; import java.net.URISyntaxException; import java.net.URL; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.Objects; import java.util...
14,077
42.051988
137
java
null
jabref-main/src/main/java/org/jabref/logic/importer/fetcher/BibsonomyScraper.java
package org.jabref.logic.importer.fetcher; import java.io.IOException; import java.net.URL; import java.util.Optional; import org.jabref.logic.importer.ImportFormatPreferences; import org.jabref.logic.importer.ParseException; import org.jabref.logic.importer.fileformat.BibtexParser; import org.jabref.logic.net.URLDow...
2,046
37.622642
119
java
null
jabref-main/src/main/java/org/jabref/logic/importer/fetcher/BiodiversityLibrary.java
package org.jabref.logic.importer.fetcher; import java.io.IOException; import java.net.MalformedURLException; import java.net.URISyntaxException; import java.net.URL; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.stream.IntStream; import org.jabref.logic.importer.Fe...
9,375
41.044843
125
java
null
jabref-main/src/main/java/org/jabref/logic/importer/fetcher/BvbFetcher.java
package org.jabref.logic.importer.fetcher; import java.net.MalformedURLException; import java.net.URISyntaxException; import java.net.URL; import java.util.Optional; import org.jabref.logic.help.HelpFile; import org.jabref.logic.importer.Parser; import org.jabref.logic.importer.SearchBasedParserFetcher; import org.ja...
1,581
32.659574
111
java
null
jabref-main/src/main/java/org/jabref/logic/importer/fetcher/CiteSeer.java
package org.jabref.logic.importer.fetcher; import java.io.IOException; import java.net.URL; import java.util.List; import java.util.Objects; import java.util.Optional; import org.jabref.logic.help.HelpFile; import org.jabref.logic.importer.FetcherException; import org.jabref.logic.importer.FulltextFetcher; import org...
4,097
38.028571
113
java
null
jabref-main/src/main/java/org/jabref/logic/importer/fetcher/CollectionOfComputerScienceBibliographiesFetcher.java
package org.jabref.logic.importer.fetcher; import java.net.MalformedURLException; import java.net.URISyntaxException; import java.net.URL; import java.util.Arrays; import org.jabref.logic.cleanup.FieldFormatterCleanup; import org.jabref.logic.formatter.bibtexfields.RemoveDigitsFormatter; import org.jabref.logic.forma...
4,254
45.758242
148
java
null
jabref-main/src/main/java/org/jabref/logic/importer/fetcher/CollectionOfComputerScienceBibliographiesParser.java
package org.jabref.logic.importer.fetcher; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.List; import java.util.Scanner; import java.util.regex.Pattern; import java.util.stream.Collectors; import org.jabref.logic.formatter.bibtexfields.HtmlToUnicodeFormatter; imp...
2,703
39.358209
125
java
null
jabref-main/src/main/java/org/jabref/logic/importer/fetcher/ComplexSearchQuery.java
package org.jabref.logic.importer.fetcher; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.Objects; import java.util.Optional; import java.util.StringJoiner; import org.jabref.model.strings.StringUtil; import org.apache.lucene.index.Term; public class ComplexSearchQu...
13,021
40.078864
220
java
null
jabref-main/src/main/java/org/jabref/logic/importer/fetcher/CompositeSearchBasedFetcher.java
package org.jabref.logic.importer.fetcher; import java.util.List; import java.util.Optional; import java.util.Set; import java.util.stream.Collectors; import java.util.stream.Stream; import org.jabref.logic.help.HelpFile; import org.jabref.logic.importer.FetcherException; import org.jabref.logic.importer.SearchBasedF...
2,590
38.861538
119
java
null
jabref-main/src/main/java/org/jabref/logic/importer/fetcher/CrossRef.java
package org.jabref.logic.importer.fetcher; import java.net.MalformedURLException; import java.net.URISyntaxException; import java.net.URL; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Optional; import java.util.stream.IntStream; import org.jabref.logic.cleanup.Fiel...
8,796
42.985
142
java
null
jabref-main/src/main/java/org/jabref/logic/importer/fetcher/CustomizableKeyFetcher.java
package org.jabref.logic.importer.fetcher; import org.jabref.logic.importer.WebFetcher; public interface CustomizableKeyFetcher extends WebFetcher { default String getTestUrl() { return null; } }
214
20.5
60
java
null
jabref-main/src/main/java/org/jabref/logic/importer/fetcher/DBLPFetcher.java
package org.jabref.logic.importer.fetcher; import java.net.MalformedURLException; import java.net.URISyntaxException; import java.net.URL; import java.util.List; import java.util.Objects; import java.util.Optional; import org.jabref.logic.cleanup.DoiCleanup; import org.jabref.logic.cleanup.FieldFormatterCleanup; impo...
3,430
38.436782
139
java
null
jabref-main/src/main/java/org/jabref/logic/importer/fetcher/DOABFetcher.java
package org.jabref.logic.importer.fetcher; import java.net.MalformedURLException; import java.net.URISyntaxException; import java.net.URL; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.StringJoiner; import org.jabref.logic.importer.FetcherException; import org.jabre...
9,217
50.497207
126
java
null
jabref-main/src/main/java/org/jabref/logic/importer/fetcher/DOAJFetcher.java
package org.jabref.logic.importer.fetcher; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.MalformedURLException; import java.net.URISyntaxException; import java.net.URL; import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.Optional; import java...
8,575
37.981818
133
java
null
jabref-main/src/main/java/org/jabref/logic/importer/fetcher/DiVA.java
package org.jabref.logic.importer.fetcher; import java.net.MalformedURLException; import java.net.URISyntaxException; import java.net.URL; import java.util.Optional; import org.jabref.logic.help.HelpFile; import org.jabref.logic.importer.FetcherException; import org.jabref.logic.importer.IdBasedParserFetcher; import ...
1,780
29.706897
122
java
null
jabref-main/src/main/java/org/jabref/logic/importer/fetcher/DoiFetcher.java
package org.jabref.logic.importer.fetcher; import java.io.IOException; import java.net.HttpURLConnection; import java.net.URL; import java.net.URLConnection; import java.util.Collections; import java.util.List; import java.util.Optional; import java.util.concurrent.CompletableFuture; import java.util.concurrent.Comple...
11,077
43.850202
147
java
null
jabref-main/src/main/java/org/jabref/logic/importer/fetcher/DoiResolution.java
package org.jabref.logic.importer.fetcher; import java.io.IOException; import java.net.MalformedURLException; import java.net.URI; import java.net.URISyntaxException; import java.net.URL; import java.util.ArrayList; import java.util.List; import java.util.Locale; import java.util.Objects; import java.util.Optional; im...
7,059
35.205128
121
java
null
jabref-main/src/main/java/org/jabref/logic/importer/fetcher/GoogleScholar.java
package org.jabref.logic.importer.fetcher; import java.io.IOException; import java.io.StringReader; import java.net.HttpCookie; import java.net.URISyntaxException; import java.net.URL; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.Objects; import java.util.Optional; i...
9,578
42.739726
269
java
null
jabref-main/src/main/java/org/jabref/logic/importer/fetcher/GrobidCitationFetcher.java
package org.jabref.logic.importer.fetcher; import java.io.IOException; import java.net.SocketTimeoutException; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Optional; import java.util.stream.Collectors; import org.jabref.logic.importer.FetcherException; import org.jabr...
3,345
36.177778
135
java
null
jabref-main/src/main/java/org/jabref/logic/importer/fetcher/GrobidPreferences.java
package org.jabref.logic.importer.fetcher; import javafx.beans.property.BooleanProperty; import javafx.beans.property.SimpleBooleanProperty; import javafx.beans.property.SimpleStringProperty; import javafx.beans.property.StringProperty; public class GrobidPreferences { private final BooleanProperty grobidEnabled;...
1,586
26.842105
70
java