Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crisxuan/bestJavaer
/ line_number
Function
line_number
scripts/check_article_quality.py:178–179 ·
view source on GitHub ↗
(text: str, offset: int)
Source
from the content-addressed store, hash-verified
176
177
178
def
line_number(text: str, offset: int) -> int:
179
return
text.count(
"\n"
, 0, offset) + 1
180
181
182
def
preserve_shape(match: re.Match[str]) -> str:
Callers
1
find_image_refs
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected