Creates a set of edges with attached {@link String} values.

@param env execution environment
@return edge data set with string values
541314
public static DataSet<Edge<Long, String>> getEdges(ExecutionEnvironment env) {
		List<Edge<Long, String>> edges = new ArrayList<>(INPUT_EDGES.length);
		for (String edge : INPUT_EDGES) {
			String[] tokens = edge.split(";");
			edges.add(new Edge<>(Long.parseLong(tokens[0]), Long.parseLong(tokens[1]), tokens[2]));
		}

		return env.fromCollection(edges);
	}
1171575
public com.google.protobuf.ByteString
      getEnvironmentBytes() {
    java.lang.Object ref = environment_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      environment_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }
142540
public static String getEnvVariable( String name )
        throws EnvironmentException
    {
        if( isUnix() )
        {
            Properties properties = getUnixShellVariables();
            return properties.getProperty( name );
        }
        else if( isWindows() )
        {
            Properties properties = getWindowsShellVariables();
            return properties.getProperty( name );
        }

        String osName = System.getProperty( "os.name" );
        throw new EnvironmentException( name, "Non-supported operating system: " + osName );
    }
1306375
public static String envelope2WKT(org.locationtech.jts.geom.Envelope env) {
        GeometryFactory gf = GeometryUtilities.gf();
        Geometry geometry = gf.toGeometry(env);
        return geometry.toText();
    }
1286058
private String resolveVarEnv(final String entryValue) {

        String value = entryValue;
        if (value != null) {
            value = checkPattern(value, ENV_VAR_PATTERN1, true);
            value = checkPattern(value, ENV_VAR_PATTERN2, false);
        }
        return value;
    }
1190384
public static List<ConnectionSpecWrapper> getConnectionSpecWrappers(String env) {
        return connectionWrappers.get(env) == null? new ArrayList<>() :connectionWrappers.get(env);
    }
829718
function getServeEnv (baseDir) {
  let serverEnv

  const envPath = path.join(baseDir, 'config/env')
  if (fs.existsSync(envPath)) {
    serverEnv = fs.readFileSync(envPath, 'utf8')
  }

  if (!serverEnv) {
    serverEnv = process.env.KNOTWORK_ENV || process.env.KOA_ENV
  }

  if (!serverEnv) {
    if (process.env.NODE_ENV === 'test') {
      serverEnv = 'unittest'
    } else if (process.env.NODE_ENV === 'production') {
      serverEnv = 'prod'
    } else {
      serverEnv = 'local'
    }
  } else {
    serverEnv = serverEnv.trim()
  }

  return serverEnv
}
1084769
public java.lang.String getEnv() {
    java.lang.Object ref = env_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      env_ = s;
      return s;
    }
  }
370499
function edgeStringify(edge) {
        var stream = new Tinkerpop.ByteArrayOutputStream();
        var builder = Tinkerpop.GraphSONWriter.build();
        var writer = builder.create();
        writer.writeEdge(stream, edge);
        return stream.toString(Tinkerpop.UTF8);
    }
442374
@SuppressWarnings("unchecked")
	private static DataSet<StringTriple> getDataSet(ExecutionEnvironment env, ParameterTool params) {
		if (params.has("input")) {
			return env.readCsvFile(params.get("input"))
				.fieldDelimiter(";")
				.pojoType(StringTriple.class);
		} else {
			System.out.println("Executing EmptyFieldsCountAccumulator example with default input data set.");
			System.out.println("Use --input to specify file input.");
			return env.fromCollection(getExampleInputTuples());
		}
	}
674757
public java.lang.String getEnvironment() {
    java.lang.Object ref = environment_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      environment_ = s;
      return s;
    }
  }
216165
private static EnvVars inherit(@Nonnull Map<String,String> overrides) {
        EnvVars m = new EnvVars(EnvVars.masterEnvVars);
        m.overrideExpandingAll(overrides);
        return m;
    }
1375057
public CreateBranchRequest withEnvironmentVariables(java.util.Map<String, String> environmentVariables) {
        setEnvironmentVariables(environmentVariables);
        return this;
    }
1081539
def create_env(env_file):
    """"""

    environ = {}
    with open(env_file, 'r') as f:
        for line in f.readlines():
            line = line.rstrip(os.linesep)
            if '=' not in line:
                continue
            if line.startswith('#'):
                continue
            key, value = line.split('=', 1)
            environ[key] = parse_value(value)
    return environ
321403
public static void main(String[] args) throws Exception {
		
		if(!parseParameters(args)) {
			return;
		}
		
		// set up execution environment
		final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();
	
		// read input data
		DataSet<Edge> edges = getEdgeDataSet(env);
		
		// project edges by vertex id
		DataSet<Edge> edgesById = edges
				.map(new EdgeByIdProjector());
		
		DataSet<Triad> triangles = edgesById
				// build triads
				.groupBy(Edge.V1).sortGroup(Edge.V2, Order.ASCENDING).reduceGroup(new TriadBuilder())
				// filter triads
				.join(edgesById).where(Triad.V2, Triad.V3).equalTo(Edge.V1, Edge.V2).with(new TriadFilter());

		// emit result
		if(fileOutput) {
			triangles.writeAsCsv(outputPath, "\n", ",");
		} else {
			triangles.print();
		}

		// execute program
		env.execute("Basic Triangle Enumeration Example");

	}
137516
public static JavacTrees instance(ProcessingEnvironment env) {
        if (!(env instanceof JavacProcessingEnvironment))
            throw new IllegalArgumentException();
        return instance(((JavacProcessingEnvironment)env).getContext());
    }
1039299
public void addEnv(final Environment.Variable env){
        if(null==envVars) {
            envVars = new ArrayList<Environment.Variable>();
        }
        envVars.add(env);
    }