Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 1.2 KB

language-makeup.md

File metadata and controls

43 lines (33 loc) · 1.2 KB

Language Makeup

1. Description

The makeup of the project in terms of the amount of whitespace, comments, and code.

2. Use Cases

3. Formula

4. Sample Filter and Visualization

Kibble

Language Makeup visual

5. Sample Implementation

Kibble

while (scroll_size > 0):
    for doc in res['hits']['hits']:
        updates = doc['_source']
        ts = updates['time'] #round(updates['time']/86400) * 86400
        if updates['time'] % 86400 != 0:
            continue
        tstmp[ts] = tstmp.get(ts, {})
        item = tstmp[ts]
        if breakdown:
            pass
        else:

            item['blanks'] = item.get('blanks', 0) + (updates['blank'] or 0)
            item['comments'] = item.get('comments', 0) + (updates['comments'] or 0)
            item['code'] = item.get('code', 0) + (updates['loc'] or 0)

    res = session.DB.ES.scroll(scroll_id = sid, scroll = '1m')
    sid = res['_scroll_id']
    scroll_size = len(res['hits']['hits'])

6. Known Implementations

Kibble

7. Test Cases (Examples)

8. External References (Literature)