Skip to content

Instantly share code, notes, and snippets.

@dlamblin
Created September 11, 2023 22:56
Show Gist options
  • Save dlamblin/401acc51705967ae803c358b55b26cfa to your computer and use it in GitHub Desktop.
Save dlamblin/401acc51705967ae803c358b55b26cfa to your computer and use it in GitHub Desktop.
Tabs vs Spaces, Entab, Detab
SELECT
IF(message like '% reindent%', 'reindent', IF(message like '% entab%', 'entab', 'detab')) AS refmt,
count(*) as mentions,
ANY_VALUE(message) as EG
FROM `bigquery-public-data.github_repos.commits`
WHERE encoding IS NULL
AND (message like '% reindent%'
OR message like '% entab%'
OR message like '% detab%')
GROUP BY 1
ORDER BY 1;
refmt mentions EG
detab 468 Fixed crash when detabbing with zero spaces per tab.
entab 88 Add C functions to centralize entab processing
reindent 6311 lang_css: reindented parser_css.mly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment