MCPcopy Index your code
hub / github.com/google-deepmind/alphageometry / hashed

Function hashed

problem.py:1059–1068  ·  view source on GitHub ↗
(
    name: str, args: list[gm.Point], rename: bool = False
)

Source from the content-addressed store, hash-verified

1057
1058
1059def hashed(
1060 name: str, args: list[gm.Point], rename: bool = False
1061) -> tuple[str, ...]:
1062 if name == 's_angle':
1063 args = [p.name if not rename else p.new_name for p in args[:-1]] + [
1064 str(args[-1])
1065 ]
1066 else:
1067 args = [p.name if not rename else p.new_name for p in args]
1068 return hashed_txt(name, args)
1069
1070
1071def hashed_txt(name: str, args: list[str]) -> tuple[str, ...]:

Callers 2

why_meMethod · 0.70
hashedMethod · 0.70

Calls 1

hashed_txtFunction · 0.85

Tested by

no test coverage detected