You can find what we need to do in issue.
To setup the environment, run:
$ git clone https://github.com/sangheestyle/bigdiff-code
$ cd bigdiff-code
$ npm installFor more information, please see documentation for bigdiff-code
You can see some example to know how to use this module.
The bigdiff-code module will give you submodules for accessing repositories and social artifacts.
Wrap git functionalities.
-
git.log: do git log with given regular expression. -
git.grep: grep commits by given regular expression and context. -
git.clone: clone single repository. -
git.multipleClone: clone single or multiple repositories.
Find repositories or issues via various criteria. See Search APIs.
-
github.authClient: return a client with authentification. -
github.getRepoIssues: get issues of a repository and save result in DB. -
github.searchRepos: search repos and save result in DB.
Search packages, crawl their information, and save them.
- getReviews: crawl reviews of app.
- isExisted: check a app whether existed or not in Google Play with package ID.
Some utils help other modules.
-
utils.dateRange: generate date range between start and end date.
Search regex for commits with some params. example
$ curl -H "Content-Type: application/json" -X POST \
-d '{"regex": ".setTag\\([^,|^\\(]*,[^,]*\\)", "ext":"java", "local_repo_root": "demo_set", "max":100}' \
http://sangheestyle.com:8080/api/search/commits \
-o result.jsonParams:
regex: regular expressionext: file extensionlocal_repo_root: root directory including cloned reposrepos: root including all the cloned reposdemo_set: root incuding only some cloned repos
max: max number of result to get limited result
You will want to understand and follow the style guides listed below.
- express
- node-style-guide
- Javascript: Google JavaScript Style Guide