比較エビデンスを生成します。

@param baseEvidenceDir
基準エビデンスディレクトリ
@param evidenceFile
比較エビデンスの生成対象のエビデンス
@param withUnmatch
不一致スクリーンショットに対する比較エビデンスを生成する場合にtrue
@throws IOException
入出力エラーが発生した場合または基準エビデンスが存在しない場合
960380
void generateDiffEvidence(EvidenceDir baseEvidenceDir, File evidenceFile, boolean withUnmatch)
            throws IOException {

        File baseEvidence = new File(baseEvidenceDir.getDir(), evidenceFile.getName());

        DiffEvidence diffEvidence = appCtx.getBean(DiffEvidence.class);
        load(diffEvidence, baseEvidenceDir, baseEvidence, evidenceFile, withUnmatch);

        templateEngine.write(diffEvidence);

        File maskEvidence = new File(evidenceFile.getParent(),
                EvidenceDir.toMaskEvidenceName(evidenceFile.getName()));

        if (!withUnmatch && maskEvidence.exists()) {
            generateMaskDiffEvidence(diffEvidence, baseEvidence, evidenceFile, withUnmatch);
        }

    }
761772
func (o *GetServiceIDURL) WithBasePath(bp string) *GetServiceIDURL {
	o.SetBasePath(bp)
	return o
}
339303
public static void downloadDistributeStormCode(Map conf, String topologyId, String masterCodeDir)
            throws IOException, TException {
        String tmpToot = null;
        try {
            // STORM_LOCAL_DIR/supervisor/tmp/(UUID)
            tmpToot = StormConfig.supervisorTmpDir(conf) + File.separator + UUID.randomUUID().toString();

            // STORM_LOCAL_DIR/supervisor/stormdist/topologyId
            String stormRoot = StormConfig.supervisor_stormdist_root(conf, topologyId);

//        JStormServerUtils.downloadCodeFromMaster(conf, tmproot, masterCodeDir, topologyId, true);
            JStormServerUtils.downloadCodeFromBlobStore(conf, tmpToot, topologyId);

            // tmproot/stormjar.jar
            String localFileJarTmp = StormConfig.stormjar_path(tmpToot);

            // extract dir from jar
            JStormUtils.extractDirFromJar(localFileJarTmp, StormConfig.RESOURCES_SUBDIR, tmpToot);

            File srcDir = new File(tmpToot);
            File destDir = new File(stormRoot);
            try {
                FileUtils.moveDirectory(srcDir, destDir);
            } catch (FileExistsException e) {
                FileUtils.copyDirectory(srcDir, destDir);
                FileUtils.deleteQuietly(srcDir);
            }
        } finally {
            if (tmpToot != null) {
                File srcDir = new File(tmpToot);
                FileUtils.deleteQuietly(srcDir);
            }
        }
    }
465082
public void setBaseEvidence(EvidenceDir targetDir) {

        if (!(targetDir.exists())) {
            LOG.error("evidence.error");
        } else {
            EvidenceDir baseDir = EvidenceDir.getBase(targetDir.getBrowser());
            LOG.info("base.evidence.set", targetDir.getDir());
            copy(targetDir.getDir(), baseDir.getDir());

        }

    }
567477
@SuppressWarnings("unchecked")
	public static void showDirInExplorer (FileHandle dir) throws IOException {
		File dirToShow;
		if (dir.isDirectory()) {
			dirToShow = dir.file();
		} else {
			dirToShow = dir.parent().file();
		}

		if (OsUtils.isMac()) {
			FileManager.revealInFinder(dirToShow);
		} else {
			try {
				// Using reflection to avoid importing AWT desktop which would trigger Android Lint errors
				// This is desktop only, rarely called, performance drop is negligible
				// Basically 'Desktop.getDesktop().open(dirToShow);'
				Class desktopClass = Class.forName("java.awt.Desktop");
				Object desktop = desktopClass.getMethod("getDesktop").invoke(null);
				desktopClass.getMethod("open", File.class).invoke(desktop, dirToShow);
			} catch (Exception e) {
				Gdx.app.log("VisUI", "Can't open file " + dirToShow.getPath(), e);
			}
		}
	}
1096932
func (o *GetEndpointIDHealthzURL) WithBasePath(bp string) *GetEndpointIDHealthzURL {
	o.SetBasePath(bp)
	return o
}
1095667
private ProjectFile handleDatabaseInDirectory(File directory) throws Exception
   {
      byte[] buffer = new byte[BUFFER_SIZE];
      File[] files = directory.listFiles();
      if (files != null)
      {
         for (File file : files)
         {
            if (file.isDirectory())
            {
               continue;
            }

            FileInputStream fis = new FileInputStream(file);
            int bytesRead = fis.read(buffer);
            fis.close();

            //
            // If the file is smaller than the buffer we are peeking into,
            // it's probably not a valid schedule file.
            //
            if (bytesRead != BUFFER_SIZE)
            {
               continue;
            }

            if (matchesFingerprint(buffer, BTRIEVE_FINGERPRINT))
            {
               return handleP3BtrieveDatabase(directory);
            }

            if (matchesFingerprint(buffer, STW_FINGERPRINT))
            {
               return handleSureTrakDatabase(directory);
            }
         }
      }
      return null;
   }
1184444
func (o *FindPetsByStatusURL) WithBasePath(bp string) *FindPetsByStatusURL {
	o.SetBasePath(bp)
	return o
}
531399
func (o *GetEndpointIDConfigURL) WithBasePath(bp string) *GetEndpointIDConfigURL {
	o.SetBasePath(bp)
	return o
}
177111
public synchronized void removeEvidence(EvidenceType type, Evidence e) {
        if (null != type) {
            switch (type) {
                case VENDOR:
                    vendors.remove(e);
                    break;
                case PRODUCT:
                    products.remove(e);
                    break;
                case VERSION:
                    versions.remove(e);
                    break;
                default:
                    break;
            }
        }
    }
846275
public static void exportCSVSequenceLocal(File baseDir, JavaRDD<List<List<Writable>>> sequences, long seed)
                    throws Exception {
        baseDir.mkdirs();
        if (!baseDir.isDirectory())
            throw new IllegalArgumentException("File is not a directory: " + baseDir.toString());
        String baseDirStr = baseDir.toString();

        List<String> fileContents = sequences.map(new SequenceToStringFunction(",")).collect();
        if (!(fileContents instanceof ArrayList))
            fileContents = new ArrayList<>(fileContents);
        Collections.shuffle(fileContents, new Random(seed));

        int i = 0;
        for (String s : fileContents) {
            String path = FilenameUtils.concat(baseDirStr, i + ".csv");
            File f = new File(path);
            FileUtils.writeStringToFile(f, s);
            i++;
        }
    }
448116
public static FilesystemFramework getInstanceWithoutProjectsDir(final String rdeck_base_dir) {
        File baseDir = new File(rdeck_base_dir);
        File propertyFile = getPropertyFile(getConfigDir(baseDir));
        String projectsDir=null;
        if(propertyFile.exists()){
            PropertyRetriever propertyRetriever = FilesystemFramework.createPropertyRetriever(baseDir);
            projectsDir = propertyRetriever.getProperty("framework.projects.dir");
        }
        return new FilesystemFramework(new File(rdeck_base_dir), new File(projectsDir));
    }
851353
func (o *CreateURL) WithBasePath(bp string) *CreateURL {
	o.SetBasePath(bp)
	return o
}
638254
func (o *GetItemsURL) WithBasePath(bp string) *GetItemsURL {
	o.SetBasePath(bp)
	return o
}
1175001
public void initDriverFromFile(File shpFile, String forceEncoding) throws IOException {             // Read columns from files metadata
        this.shpFile = shpFile;

        if (!shpFile.exists()) {
            throw new FileNotFoundException("The following file does not exists: " + shpFile.getPath());
        }
        // Find appropriate file extension for shx and dbf, maybe SHX or Shx..
        //String shxFileName = shpFile.getName();

        String fileName = shpFile.getAbsolutePath();
        final int dotIndex = fileName.lastIndexOf('.');
        final String fileNamePrefix = fileName.substring(0, dotIndex).toLowerCase();

        File tmpFile = new File(fileNamePrefix + ".shx");
        if (tmpFile.exists())
            shxFile = tmpFile;
        tmpFile = new File(fileNamePrefix + ".dbf");
        if (tmpFile.exists())
            dbfFile = tmpFile;
        tmpFile = new File(fileNamePrefix + ".prj");
        if (tmpFile.exists())
            prjFile = tmpFile;

        if (dbfFile != null) {
            dbfDriver.initDriverFromFile(dbfFile, forceEncoding);
        } else {
            throw new IllegalArgumentException("DBF File not found");
        }
        if (shxFile == null) {
            throw new IllegalArgumentException("SHX File not found");
        }
        FileInputStream shpFis = new FileInputStream(shpFile);
        shapefileReader = new ShapefileReader(shpFis.getChannel());
        FileInputStream shxFis = new FileInputStream(shxFile);
        shxFileReader = new IndexFile(shxFis.getChannel());
    }
136863
func (o *ElapseURL) WithBasePath(bp string) *ElapseURL {
	o.SetBasePath(bp)
	return o
}
703930
func (o *PetListURL) WithBasePath(bp string) *PetListURL {
	o.SetBasePath(bp)
	return o
}