Team Ai
Datasetpublic

timlawrenz/gnn-ruby-code-study

GNN Ruby Code Study Systematic study of Graph Neural Network architectures for Ruby code complexity prediction and generation. Paper: Graph Neural Networks for Ruby Code Complexity Prediction and Generation: A Systematic Architecture Study Dataset 22,452 Ruby methods parsed into AST graphs with 74-dimensional node features. Split Samples File Train 19,084 dataset/train.jsonl Validation 3,368 dataset/val.jsonl Each JSONL record contains:… See the full description on the dataset page: https://huggingface.co/datasets/timlawrenz/gnn-ruby-code-study.

sourceHugging Facemitupdated 6mo agoView on Hugging Face
0likes101downloads
check_syntax.rb14 linesDownload Raw Back to scripts
1#!/usr/bin/env ruby2# frozen_string_literal: true3 4require 'parser/current'5 6# Reads code from stdin and exits with 0 if syntax is valid, 1 otherwise.7begin8  code = $stdin.read9  Parser::CurrentRuby.parse(code)10  exit 011rescue Parser::SyntaxError => e12  $stderr.puts e.message13  exit 114end