text:
package com.intellij.packaging.impl.compiler;

import com.intellij.compiler.impl.packagingCompiler.ExplodedDestinationInfo;
import com.intellij.compiler.impl.packagingCompiler.ArchivePackageInfo;
import com.intellij.openapi.vfs.VirtualFile;
import consulo.packaging.elements.ArchivePackageWriter;
import com.intellij.packaging.elements.IncrementalCompilerInstructionCreator;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;

/**
 * @author nik
 */
public class CopyToDirectoryInstructionCreator extends IncrementalCompilerInstructionCreatorBase {
  private final String myOutputPath;
  private final @Nullable VirtualFile myOutputFile;

  public CopyToDirectoryInstructionCreator(ArtifactsProcessingItemsBuilderContext context, String outputPath,
                                           @Nullable VirtualFile outputFile) {
    super(context);
    myOutputPath = outputPath;
    myOutputFile = outputFile;
  }

  @Override
  public void addFileCopyInstruction(@Nonnull VirtualFile file, @Nonnull String outputFileName) {
    myContext.addDestination(file, new ExplodedDestinationInfo(myOutputPath + "/" + outputFileName, outputChild(outputFileName)));
  }

  @Override
  public CopyToDirectoryInstructionCreator subFolder(@Nonnull String directoryName) {
    return new CopyToDirectoryInstructionCreator(myContext, myOutputPath + "/" + directoryName, outputChild(directoryName));
  }

  @Nonnull
  @Override
  public IncrementalCompilerInstructionCreator archive(@Nonnull String archiveFileName, @Nonnull ArchivePackageWriter<?> packageWriter) {
    String jarOutputPath = myOutputPath + "/" + archiveFileName;
    final ArchivePackageInfo archivePackageInfo = new ArchivePackageInfo(packageWriter);
    if (!myContext.registerJarFile(archivePackageInfo, jarOutputPath)) {
      return new SkipAllInstructionCreator(myContext);
    }
    VirtualFile outputFile = outputChild(archiveFileName);
    final ExplodedDestinationInfo destination = new ExplodedDestinationInfo(jarOutputPath, outputFile);
    archivePackageInfo.addDestination(destination);
    return new PackIntoArchiveInstructionCreator(myContext, archivePackageInfo, "", destination);
  }

  @Nullable
  private VirtualFile outputChild(String name) {
    return myOutputFile != null ? myOutputFile.findChild(name) : null;
  }
}


text:
package org.camunda.bpm.welcome.plugin.spi.impl;

import org.camunda.bpm.webapp.plugin.spi.impl.AbstractAppPlugin;
import org.camunda.bpm.welcome.plugin.spi.WelcomePlugin;

/**
 * Base class for implementing {@link WelcomePlugin WelcomePlugins}.
 *
 * @author Daniel Meyer
 *
 */
public abstract class AbstractWelcomePlugin extends AbstractAppPlugin implements WelcomePlugin {

}

redpajama_set_name: RedPajamaGithub


text:
using System;
using HoS_AP.BLL.Models;
using HoS_AP.DAL.Dto;

namespace HoS_AP.BLL.Mappers
{
    internal static class CharacterMapper
    {
        internal static void MapTo(this CharacterEditModel model, ref Character entity)
        {
            if (model.Id == Guid.Empty)
            {
                entity.Id = Guid.NewGuid();
                entity.Created = DateTime.Now;
            }

            entity.Name = model.Name;
            entity.Price = model.Price;
            entity.Type = model.Type;
            entity.Active = model.Active;
        }
    }
}