Formats a string containing the fully-qualified path to represent a dataset resource.

@deprecated Use the {@link DatasetName} class instead.
967849
@Deprecated
  public static final String formatDatasetName(String project, String dataset) {
    return DATASET_PATH_TEMPLATE.instantiate(
        "project", project,
        "dataset", dataset);
  }
175160
public static String normalizeResourcePath(final String path) {
		if (path == null) {
			return null;
		}
		String normalizedPath = replaceSlashes(path.trim());
		if (normalizedPath.startsWith("/") && normalizedPath.length() > 1) {
			normalizedPath = normalizedPath.substring(1);
		}
		return normalizedPath;
	}
546642
public static Optional<String> getStringAsOptWithClasspath(
            String classpath, String charsetName) {
        return getResourceInputStreamAsOpt(classpath)
                .map(resourceInputStream -> JMInputStream
                        .toString(resourceInputStream, charsetName));
    }
1322908
@Deprecated
  public static final String formatAnnotationSpecSetName(String project, String annotationSpecSet) {
    return ANNOTATION_SPEC_SET_PATH_TEMPLATE.instantiate(
        "project", project,
        "annotation_spec_set", annotationSpecSet);
  }
921014
@Deprecated
  public static final String formatGlossaryName(String project, String location, String glossary) {
    return GLOSSARY_PATH_TEMPLATE.instantiate(
        "project", project,
        "location", location,
        "glossary", glossary);
  }
1009109
@Deprecated
  public static final String formatDataItemName(String project, String dataset, String dataItem) {
    return DATA_ITEM_PATH_TEMPLATE.instantiate(
        "project", project,
        "dataset", dataset,
        "data_item", dataItem);
  }
1043684
@Deprecated
  public static final String formatInstructionName(String project, String instruction) {
    return INSTRUCTION_PATH_TEMPLATE.instantiate(
        "project", project,
        "instruction", instruction);
  }
36845
public Dataset getDataset(String datasetName) {
    // [START ]
    Dataset dataset = bigquery.getDataset(datasetName);
    // [END ]
    return dataset;
  }
1119856
private URI datasetURNtoURI(String datasetURN) {
    try {
      return new URI(PathUtils.mergePaths(new Path(this.storeRoot), new Path(datasetURN)).toString());
    }catch (URISyntaxException e) {
      log.error("Dataset with URN:" + datasetURN + " cannot be converted into URI. Skip the dataset");
      return null;
    }
  }
224035
def dataset_path(cls, project, dataset):
        """"""
        return google.api_core.path_template.expand(
            "projects/{project}/datasets/{dataset}", project=project, dataset=dataset
        )
290789
@Deprecated
    public String get(String path) {
        final JsonValue value = this.values.get(this.pathToProperty(path));
        if (value == null) {
            return null;
        }
        if (!value.isString()) {
            return value.toString();
        }
        return value.asString();
    }
1358852
private function formatDataPath(string $path): string
    {
        if ('data' !== $this->scheme) {
            return $path;
        }

        if ('' == $path) {
            return 'text/plain;charset=us-ascii,';
        }

        if (false === mb_detect_encoding($path, 'US-ASCII', true) || false === strpos($path, ',')) {
            throw new SyntaxError(sprintf('The path `%s` is invalid according to RFC2937', $path));
        }

        $parts = explode(',', $path, 2) + [1 => null];
        $mediatype = explode(';', (string) $parts[0], 2) + [1 => null];
        $data = (string) $parts[1];
        $mimetype = $mediatype[0];
        if (null === $mimetype || '' === $mimetype) {
            $mimetype = 'text/plain';
        }

        $parameters = $mediatype[1];
        if (null === $parameters || '' === $parameters) {
            $parameters = 'charset=us-ascii';
        }

        $this->assertValidPath($mimetype, $parameters, $data);

        return $mimetype.';'.$parameters.','.$data;
    }
993405
@Deprecated
	public static String generateOutputFilePath(String path) {
		String tempPath = separatorsToSystem(path);
		tempPath = tempPath + File.separatorChar + generateAuditFileName();
		return tempPath;
	}
1328872
public void prependKeyToDataPath(String key) {
    if (dataPath == null) {
      dataPath = key;
    } else {
      dataPath = key + ((dataPath.charAt(0) == '[') ? "" : ".") + dataPath;
    }
  }
416866
public static void checkDatasetName(String namespace, String name) {
    Preconditions.checkNotNull(namespace, "Namespace cannot be null");
    Preconditions.checkNotNull(name, "Dataset name cannot be null");
    ValidationException.check(Compatibility.isCompatibleName(namespace),
        "Namespace %s is not alphanumeric (plus '_')",
        namespace);
    ValidationException.check(Compatibility.isCompatibleName(name),
        "Dataset name %s is not alphanumeric (plus '_')",
        name);
  }
1096797
protected static void printDataSet(DataSet dataSet) {
        final String SPACER = "| \t |";

        if (dataSet == null) System.out.println("DataSet is null");
        if (dataSet.getRowCount() == 0) System.out.println("DataSet is empty");

        List<DataColumn> dataSetColumns = dataSet.getColumns();
        int colColunt = dataSetColumns.size();
        int rowCount = dataSet.getRowCount();

        System.out.println("********************************************************************************************************************************************************");
        for (int row = 0; row < rowCount; row++) {
            System.out.print(SPACER);
            for (int col= 0; col< colColunt; col++) {
                Object value = dataSet.getValueAt(row, col);
                String colId = dataSet.getColumnByIndex(col).getId();
                System.out.print(colId + ": " +  value);
                System.out.print(SPACER);
            }
            System.out.println("");
        }
        System.out.println("********************************************************************************************************************************************************");
    }
28175
@Deprecated
  public static final String formatReferenceImageName(
      String project, String location, String product, String referenceImage) {
    return REFERENCE_IMAGE_PATH_TEMPLATE.instantiate(
        "project", project,
        "location", location,
        "product", product,
        "reference_image", referenceImage);
  }