Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 1.29 KB

size-of-code-base.md

File metadata and controls

47 lines (38 loc) · 1.29 KB

Size of Code Base

1. Description

Lines of code

2. Use Cases

3. Formula

4. Sample Filter and Visualization

Git

Lines in Repository

Kibble: Repos by lines of code:

    query = {
                'query': {
                    'bool': {
                        'must': [
                            {'terms':
                                {
                                    'type': ['git', 'svn', 'github']
                                }
                            },
                            {
                                'term': {
                                    'organisation': dOrg
                                }
                            }
                        ]
                    }
                }
            }
    # Source-specific or view-specific??
    if indata.get('source'):
        query['query']['bool']['must'].append({'term': {'sourceID': indata.get('source')}})
    elif viewList:
        query['query']['bool']['must'].append({'terms': {'sourceID': viewList}})

6. Known Implementations

Kibble

7. Test Cases (Examples)

8. External References (Literature)