This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| def transform_graph_spec(graph_spec: str) -> str: | |
| lines = graph_spec.split('\n') | |
| transformed_lines = [] | |
| for line in lines: | |
| if '=>' in line and not line[0].isspace(): | |
| parts = line.split('=>') | |
| if parts[0].strip(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import itertools | |
| import json | |
| import jmespath | |
| import sys | |
| file_names = sys.argv[1:] | |
| def parsed_names(file_names): | |
| for file in file_names: | |
| names = jmespath.search("entitiesExtracted[?category=='Person'].content", json.loads(open(file).read())) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| # This file is used by our CI to send build information to symphony for your viewing pleasure. | |
| require 'open3' | |
| require "uri" | |
| require "net/http" | |
| require 'json' | |
| hash = ARGV[0] | |
| service_account_key = ARGV[1] | |
| service_account_secret = ARGV[2] |