id
stringlengths
7
14
text
stringlengths
1
106k
206478_70
@Override public void time( String datetime ) { // nop }
206478_71
@Override public void address() { // nop }
206478_72
@Override public void blockquote() { // nop }
206478_73
@Override public void division() { // nop }
206478_74
@Override public void verbatim( boolean boxed ) { // nop }
206478_75
@Override public void definedTerm() { // nop }
206478_76
@Override public void figureCaption() { // nop }
206478_77
@Override public void tableCell() { // nop }
206478_78
@Override public void tableHeaderCell() { // nop }
206478_79
@Override public void tableCaption() { // nop }
206478_80
@Override public void figureGraphics( String name ) { // nop }
206478_81
@Override public void horizontalRule() { // nop }
206478_82
@Override public void pageBreak() { // nop }
206478_83
@Override public void anchor( String name ) { // nop }
206478_84
@Override public void link( String name ) { // nop }
206478_85
@Override public void inline() { // nop }
206478_86
@Override public void italic() { // nop }
206478_87
@Override public void bold() { // nop }
206478_88
@Override public void monospaced() { // nop }
206478_89
@Override public void lineBreak() { // nop }
206478_90
@Override public void lineBreakOpportunity() { // nop }
206478_91
@Override public void nonBreakingSpace() { // nop }
206478_92
@Override public void text( String text ) { // nop }
206478_93
@Override public void rawText( String text ) { // nop }
206478_94
@Override public void comment( String comment ) { // nop }
206478_95
@Override public void flush() { // nop }
206478_96
@Override public void close() { // nop }
206478_97
@Override public void section( int level, SinkEventAttributes attributes ) { if ( level == SECTION_LEVEL_1 ) { section1(); } else if ( level == SECTION_LEVEL_2 ) { section2(); } else if ( level == SECTION_LEVEL_3 ) { section3(); } else if ( level == SECTIO...
206478_98
@Override public void unknown( String name, Object[] requiredParams, SinkEventAttributes attributes ) { // nop }
206478_99
protected void writeStartTag( Tag t ) { writeStartTag ( t, null ); }
206483_10
public Path createDist( WrapperConfiguration configuration ) throws IOException, URISyntaxException { URI distributionUrl; String mvnwRepoUrl = System.getenv( MavenWrapperMain.MVNW_REPOURL ); if ( mvnwRepoUrl != null && !mvnwRepoUrl.isEmpty() ) { distributionUrl = new URI( mvnwRepoUrl + "/" ...
206483_11
public static WrapperExecutor forWrapperPropertiesFile( Path propertiesFile ) { if ( !Files.exists( propertiesFile ) ) { throw new RuntimeException( String.format( "Wrapper properties file '%s' does not exist.", propertiesFile ) ); } return new ...
206483_12
public static WrapperExecutor forWrapperPropertiesFile( Path propertiesFile ) { if ( !Files.exists( propertiesFile ) ) { throw new RuntimeException( String.format( "Wrapper properties file '%s' does not exist.", propertiesFile ) ); } return new ...
206483_13
public LocalDistribution getDistribution( WrapperConfiguration configuration ) { String baseName = getDistName( configuration.getDistribution() ); String rootDirName = removeExtension( baseName ); Path distDir = getBaseDir( configuration.getDistributionBase() ) .resolve( configuration.ge...
206483_14
public LocalDistribution getDistribution( WrapperConfiguration configuration ) { String baseName = getDistName( configuration.getDistribution() ); String rootDirName = removeExtension( baseName ); Path distDir = getBaseDir( configuration.getDistributionBase() ) .resolve( configuration.ge...
206483_15
public LocalDistribution getDistribution( WrapperConfiguration configuration ) { String baseName = getDistName( configuration.getDistribution() ); String rootDirName = removeExtension( baseName ); Path distDir = getBaseDir( configuration.getDistributionBase() ) .resolve( configuration.ge...
206483_16
public LocalDistribution getDistribution( WrapperConfiguration configuration ) { String baseName = getDistName( configuration.getDistribution() ); String rootDirName = removeExtension( baseName ); Path distDir = getBaseDir( configuration.getDistributionBase() ) .resolve( configuration.ge...
206483_17
public LocalDistribution getDistribution( WrapperConfiguration configuration ) { String baseName = getDistName( configuration.getDistribution() ); String rootDirName = removeExtension( baseName ); Path distDir = getBaseDir( configuration.getDistributionBase() ) .resolve( configuration.ge...
206483_18
static ProfileActivation determineProfileActivation( final CommandLine commandLine ) { final ProfileActivation result = new ProfileActivation(); if ( commandLine.hasOption( CLIManager.ACTIVATE_PROFILES ) ) { String[] profileOptionValues = commandLine.getOptionValues( CLIManager.ACTIVATE_PROFILES ); ...
206483_19
static ProjectActivation determineProjectActivation ( final CommandLine commandLine ) { final ProjectActivation projectActivation = new ProjectActivation(); if ( commandLine.hasOption( CLIManager.PROJECT_LIST ) ) { String[] projectOptionValues = commandLine.getOptionValues( CLIManager.PROJECT_LIST )...
206483_20
int calculateDegreeOfConcurrencyWithCoreMultiplier( String threadConfiguration ) { int procs = Runtime.getRuntime().availableProcessors(); return (int) ( Float.parseFloat( threadConfiguration.replace( "C", "" ) ) * procs ); }
206483_21
String getResumeFromSelector( List<MavenProject> mavenProjects, MavenProject firstFailedProject ) { boolean hasOverlappingArtifactId = mavenProjects.stream() .filter( project -> firstFailedProject.getArtifactId().equals( project.getArtifactId() ) ) .count() > 1; if ( hasOverlappingArtifa...
206483_22
String getResumeFromSelector( List<MavenProject> mavenProjects, MavenProject firstFailedProject ) { boolean hasOverlappingArtifactId = mavenProjects.stream() .filter( project -> firstFailedProject.getArtifactId().equals( project.getArtifactId() ) ) .count() > 1; if ( hasOverlappingArtifa...
206483_23
protected MavenExecutionRequest populateRequest( CliRequest cliRequest ) { return populateRequest( cliRequest, cliRequest.request ); }
206483_24
public CommandLine parse( String[] args ) throws ParseException { // We need to eat any quotes surrounding arguments... String[] cleanArgs = CleanArgument.cleanArgs( args ); CommandLineParser parser = new GnuParser(); return parser.parse( options, cleanArgs ); }
206483_25
public static String[] cleanArgs( String[] args ) { List<String> cleaned = new ArrayList<>(); StringBuilder currentArg = null; for ( String arg : args ) { boolean addedToBuffer = false; if ( arg.startsWith( "\"" ) ) { // if we're in the process of building up another ...
206483_26
public static String[] cleanArgs( String[] args ) { List<String> cleaned = new ArrayList<>(); StringBuilder currentArg = null; for ( String arg : args ) { boolean addedToBuffer = false; if ( arg.startsWith( "\"" ) ) { // if we're in the process of building up another ...
206483_27
public static String[] cleanArgs( String[] args ) { List<String> cleaned = new ArrayList<>(); StringBuilder currentArg = null; for ( String arg : args ) { boolean addedToBuffer = false; if ( arg.startsWith( "\"" ) ) { // if we're in the process of building up another ...
206483_28
@Override public void projectStarted( ExecutionEvent event ) { if ( logger.isInfoEnabled() ) { MavenProject project = event.getProject(); logger.info( "" ); // -------< groupId:artifactId >------- String projectKey = project.getGroupId() + ':' + project.getArtifactId(); f...
206483_29
@Override public void projectStarted( ExecutionEvent event ) { if ( logger.isInfoEnabled() ) { MavenProject project = event.getProject(); logger.info( "" ); // -------< groupId:artifactId >------- String projectKey = project.getGroupId() + ':' + project.getArtifactId(); f...
206483_30
@Override public boolean equals( Object obj ) { if ( this == obj ) { return true; } if ( obj == null ) { return false; } if ( !FileModelSource.class.equals( obj.getClass() ) ) { return false; } FileModelSource other = ( FileModelSource ) obj; retur...
206483_31
@Override public boolean equals( Object obj ) { if ( this == obj ) { return true; } if ( obj == null ) { return false; } if ( !FileModelSource.class.equals( obj.getClass() ) ) { return false; } FileModelSource other = ( FileModelSource ) obj; retur...
206483_32
void interpolateObject( Object obj, Model model, File projectDir, ModelBuildingRequest config, ModelProblemCollector problems ) { List<? extends ValueSource> valueSources = createValueSources( model, projectDir, config, problems ); List<? extends InterpolationPostProcessor> postProcessor...
206483_33
void interpolateObject( Object obj, Model model, File projectDir, ModelBuildingRequest config, ModelProblemCollector problems ) { List<? extends ValueSource> valueSources = createValueSources( model, projectDir, config, problems ); List<? extends InterpolationPostProcessor> postProcessor...
206483_34
@Override protected void mergeModel_ModelVersion( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { // neither inherited nor injected }
206483_35
@Override protected void mergeModel_ArtifactId( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { // neither inherited nor injected }
206483_36
@Override protected void mergeModel_Prerequisites( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { // neither inherited nor injected }
206483_37
@Override protected void mergeModel_Profiles( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { // neither inherited nor injected }
206483_38
@Override public String normalize( String url ) { String result = url; if ( result != null ) { while ( true ) { int idx = result.indexOf( "/../" ); if ( idx < 0 ) { break; } else if ( idx == 0 ) { ...
206483_39
@Override public String normalize( String url ) { String result = url; if ( result != null ) { while ( true ) { int idx = result.indexOf( "/../" ); if ( idx < 0 ) { break; } else if ( idx == 0 ) { ...
206483_40
@Override public String normalize( String url ) { String result = url; if ( result != null ) { while ( true ) { int idx = result.indexOf( "/../" ); if ( idx < 0 ) { break; } else if ( idx == 0 ) { ...
206483_41
@Override public String normalize( String url ) { String result = url; if ( result != null ) { while ( true ) { int idx = result.indexOf( "/../" ); if ( idx < 0 ) { break; } else if ( idx == 0 ) { ...
206483_42
@Override public String normalize( String url ) { String result = url; if ( result != null ) { while ( true ) { int idx = result.indexOf( "/../" ); if ( idx < 0 ) { break; } else if ( idx == 0 ) { ...
206483_43
@Override public String normalize( String url ) { String result = url; if ( result != null ) { while ( true ) { int idx = result.indexOf( "/../" ); if ( idx < 0 ) { break; } else if ( idx == 0 ) { ...
206483_44
@Override public String normalize( String url ) { String result = url; if ( result != null ) { while ( true ) { int idx = result.indexOf( "/../" ); if ( idx < 0 ) { break; } else if ( idx == 0 ) { ...
206483_45
public void merge( Model target, Model source, boolean sourceDominant, Map<?, ?> hints ) { Objects.requireNonNull( target, "target cannot be null" ); if ( source == null ) { return; } Map<Object, Object> context = new HashMap<>(); if ( hints != null ) { context.putAll( hints ...
206483_46
public void merge( Model target, Model source, boolean sourceDominant, Map<?, ?> hints ) { Objects.requireNonNull( target, "target cannot be null" ); if ( source == null ) { return; } Map<Object, Object> context = new HashMap<>(); if ( hints != null ) { context.putAll( hints ...
206483_47
public void merge( Model target, Model source, boolean sourceDominant, Map<?, ?> hints ) { Objects.requireNonNull( target, "target cannot be null" ); if ( source == null ) { return; } Map<Object, Object> context = new HashMap<>(); if ( hints != null ) { context.putAll( hints ...
206483_48
public void merge( Model target, Model source, boolean sourceDominant, Map<?, ?> hints ) { Objects.requireNonNull( target, "target cannot be null" ); if ( source == null ) { return; } Map<Object, Object> context = new HashMap<>(); if ( hints != null ) { context.putAll( hints ...
206483_49
public void merge( Model target, Model source, boolean sourceDominant, Map<?, ?> hints ) { Objects.requireNonNull( target, "target cannot be null" ); if ( source == null ) { return; } Map<Object, Object> context = new HashMap<>(); if ( hints != null ) { context.putAll( hints ...
206483_50
protected void mergePatternSet_Excludes( PatternSet target, PatternSet source, boolean sourceDominant, Map<Object, Object> context ) { target.setExcludes( merge( target.getExcludes(), source.getExcludes(), sourceDominant, e -> e ) ); }
206483_51
protected void mergeBuild( Build target, Build source, boolean sourceDominant, Map<Object, Object> context ) { mergeBuildBase( target, source, sourceDominant, context ); mergeBuild_SourceDirectory( target, source, sourceDominant, context ); mergeBuild_ScriptSourceDirectory( target, source, sourceDominant, c...
206483_52
protected void mergePluginExecution( PluginExecution target, PluginExecution source, boolean sourceDominant, Map<Object, Object> context ) { mergeConfigurationContainer( target, source, sourceDominant, context ); mergePluginExecution_Id( target, source, sourceDominant, conte...
206483_53
public void merge( Model target, Model source, boolean sourceDominant, Map<?, ?> hints ) { Objects.requireNonNull( target, "target cannot be null" ); if ( source == null ) { return; } Map<Object, Object> context = new HashMap<>(); if ( hints != null ) { context.putAll( hints ...
206483_54
public void merge( Model target, Model source, boolean sourceDominant, Map<?, ?> hints ) { Objects.requireNonNull( target, "target cannot be null" ); if ( source == null ) { return; } Map<Object, Object> context = new HashMap<>(); if ( hints != null ) { context.putAll( hints ...
206483_55
protected void mergePatternSet_Includes( PatternSet target, PatternSet source, boolean sourceDominant, Map<Object, Object> context ) { target.setIncludes( merge( target.getIncludes(), source.getIncludes(), sourceDominant, e -> e ) ); }
206483_56
public void merge( Model target, Model source, boolean sourceDominant, Map<?, ?> hints ) { Objects.requireNonNull( target, "target cannot be null" ); if ( source == null ) { return; } Map<Object, Object> context = new HashMap<>(); if ( hints != null ) { context.putAll( hints ...
206483_57
public void merge( Model target, Model source, boolean sourceDominant, Map<?, ?> hints ) { Objects.requireNonNull( target, "target cannot be null" ); if ( source == null ) { return; } Map<Object, Object> context = new HashMap<>(); if ( hints != null ) { context.putAll( hints ...
206483_58
public void merge( Model target, Model source, boolean sourceDominant, Map<?, ?> hints ) { Objects.requireNonNull( target, "target cannot be null" ); if ( source == null ) { return; } Map<Object, Object> context = new HashMap<>(); if ( hints != null ) { context.putAll( hints ...
206483_59
public void merge( Model target, Model source, boolean sourceDominant, Map<?, ?> hints ) { Objects.requireNonNull( target, "target cannot be null" ); if ( source == null ) { return; } Map<Object, Object> context = new HashMap<>(); if ( hints != null ) { context.putAll( hints ...
206483_60
protected void mergeMailingList( MailingList target, MailingList source, boolean sourceDominant, Map<Object, Object> context ) { mergeMailingList_Name( target, source, sourceDominant, context ); mergeMailingList_Subscribe( target, source, sourceDominant, context ); mergeMail...
206483_61
public void merge( Model target, Model source, boolean sourceDominant, Map<?, ?> hints ) { Objects.requireNonNull( target, "target cannot be null" ); if ( source == null ) { return; } Map<Object, Object> context = new HashMap<>(); if ( hints != null ) { context.putAll( hints ...
206483_62
public void merge( Model target, Model source, boolean sourceDominant, Map<?, ?> hints ) { Objects.requireNonNull( target, "target cannot be null" ); if ( source == null ) { return; } Map<Object, Object> context = new HashMap<>(); if ( hints != null ) { context.putAll( hints ...
206483_63
public void merge( Model target, Model source, boolean sourceDominant, Map<?, ?> hints ) { Objects.requireNonNull( target, "target cannot be null" ); if ( source == null ) { return; } Map<Object, Object> context = new HashMap<>(); if ( hints != null ) { context.putAll( hints ...
206483_64
protected void mergeReportSet( ReportSet target, ReportSet source, boolean sourceDominant, Map<Object, Object> context ) { mergeConfigurationContainer( target, source, sourceDominant, context ); mergeReportSet_Id( target, source, sourceDominant, context ); mergeReportSet_Repor...
206483_65
public void merge( Model target, Model source, boolean sourceDominant, Map<?, ?> hints ) { Objects.requireNonNull( target, "target cannot be null" ); if ( source == null ) { return; } Map<Object, Object> context = new HashMap<>(); if ( hints != null ) { context.putAll( hints ...
206483_66
protected void mergeContributor_Roles( Contributor target, Contributor source, boolean sourceDominant, Map<Object, Object> context ) { target.setRoles( merge( target.getRoles(), source.getRoles(), sourceDominant, e -> e ) ); }
206483_67
public void merge( Model target, Model source, boolean sourceDominant, Map<?, ?> hints ) { Objects.requireNonNull( target, "target cannot be null" ); if ( source == null ) { return; } Map<Object, Object> context = new HashMap<>(); if ( hints != null ) { context.putAll( hints ...
206483_68
public void merge( Model target, Model source, boolean sourceDominant, Map<?, ?> hints ) { Objects.requireNonNull( target, "target cannot be null" ); if ( source == null ) { return; } Map<Object, Object> context = new HashMap<>(); if ( hints != null ) { context.putAll( hints ...
206483_69
@Override protected void merge( Metadata recessive ) { Snapshot snapshot; String lastUpdated; if ( metadata.getVersioning() == null ) { DateFormat utcDateFormatter = new SimpleDateFormat( DEFAULT_SNAPSHOT_TIMESTAMP_FORMAT ); utcDateFormatter.setCalendar( new GregorianCalendar() ); ...
206483_70
@Override public List<Problem> getProblems() { return problems; }
206483_71
@Override public void setSource( String source ) { this.source = source; }
206483_72
public Severity getSeverity() { return severity; }
206483_73
public int getLineNumber() { return lineNumber; }
206483_74
public int getColumnNumber() { return columnNumber; }
206483_75
public Exception getException() { return exception; }
206483_76
public String getSource() { return source; }
206483_77
public String getLocation() { StringBuilder buffer = new StringBuilder( 256 ); if ( getSource().length() > 0 ) { if ( buffer.length() > 0 ) { buffer.append( ", " ); } buffer.append( getSource() ); } if ( getLineNumber() > 0 ) { if ( buffer.leng...
206483_78
public String getMessage() { String msg; if ( message != null && message.length() > 0 ) { msg = message; } else { msg = exception.getMessage(); if ( msg == null ) { msg = ""; } } return msg; }
206483_79
@Override public InputStream getInputStream() throws IOException { return new ByteArrayInputStream( content.getBytes( StandardCharsets.UTF_8 ) ); }