mirror of
https://github.com/safishamsi/graphify.git
synced 2026-07-13 19:07:10 +00:00
5db8f7ce39
style: replace all em dashes with hyphens fix: explain hidden .graphify/ folder in skill output and README fix: rename .graphify/ to graphify-out/ so output is visible by default
27 lines
517 B
Python
27 lines
517 B
Python
"""Fixture: functions and methods that call each other - for call-graph extraction tests."""
|
|
|
|
|
|
def compute_score(data):
|
|
return sum(data)
|
|
|
|
|
|
def normalize(value):
|
|
return value / 100.0
|
|
|
|
|
|
def run_analysis(data):
|
|
score = compute_score(data)
|
|
return normalize(score)
|
|
|
|
|
|
class Analyzer:
|
|
def process(self, data):
|
|
return run_analysis(data)
|
|
|
|
def score(self, data):
|
|
return compute_score(data)
|
|
|
|
def full_pipeline(self, data):
|
|
raw = self.score(data)
|
|
return normalize(raw)
|