mirror of
https://github.com/safishamsi/graphify.git
synced 2026-07-12 18:37:12 +00:00
81a43f028f
Java, C, C++, Ruby, C#, Kotlin, Scala, PHP via tree-sitter (13 total) benchmark.py measures BFS subgraph tokens vs corpus tokens 5 skill bug fixes (cohesion crash, dead step, missing MCP tool)
38 lines
813 B
C#
38 lines
813 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Net.Http;
|
|
|
|
namespace GraphifyDemo
|
|
{
|
|
public interface IProcessor
|
|
{
|
|
List<string> Process(List<string> items);
|
|
}
|
|
|
|
public class DataProcessor : IProcessor
|
|
{
|
|
private readonly HttpClient _client;
|
|
|
|
public DataProcessor()
|
|
{
|
|
_client = new HttpClient();
|
|
}
|
|
|
|
public List<string> Process(List<string> items)
|
|
{
|
|
return Validate(items);
|
|
}
|
|
|
|
private List<string> Validate(List<string> items)
|
|
{
|
|
var result = new List<string>();
|
|
foreach (var item in items)
|
|
{
|
|
if (!string.IsNullOrEmpty(item))
|
|
result.Add(item.Trim());
|
|
}
|
|
return result;
|
|
}
|
|
}
|
|
}
|