Skip to content

Instantly share code, notes, and snippets.

View komtaki's full-sized avatar

komtaki komtaki

View GitHub Profile
#!/bin/bash
set -eu
readonly HOME_DIR=$(pwd)
readonly INPUT_DIR="${HOME_DIR}/dataset"
readonly RESULT_DIR="${HOME_DIR}/result"
if [ ! -d "${RESULT_DIR}" ]; then
<?php
declare(strict_types=1);
require_once __DIR__ . '/../vendor/autoload.php';
use PhpParser\Error;
use PhpParser\Lexer;
use PhpParser\Node;
use PhpParser\NodeTraverser;
<?php
declare(strict_types=1);
require_once __DIR__ . '/../vendor/autoload.php';
use PhpParser\Error;
use PhpParser\Node;
use PhpParser\NodeTraverser;
use PhpParser\NodeVisitorAbstract;