<commit_before> * ### How does the API handle authentication?
 
 
 
 * ### Do I need to authenticate?
 
 Authenticate is used to prevent leakage of private repositories to unauthorized users.
 
 * ### What can I do with an unauthenticated request?
 
 Requests that require authentication can return 404 Not Found, instead of 403 Forbidden, in some places.
 
 * ### How can I authenticate my request? (3 ways)
 
* Basic Autentication
```
curl -u "username" https://api.github.com
```
* OAuth2 Token (sent in a header)
```
curl -H "Authorization: token OAUTH-TOKEN" https://api.github.com
```
* OAuth2 Token (sent as a parameter)
```
curl https://api.github.com/?access_token=OAUTH-TOKEN
```
 
 * ### How do I ask the API for...
    * ### The profile information for a specific user?
    
    This fetches the profile info for octocat

    ```
    curl -i https://api.github.com/users/octocat
    ```
    
    * ### The repository listing for a specific user?
    
    This will fetch the repos of octokit
    
    ```
    GET /orgs/octokit/repos
    ```
    * ### The recent, public activity for a specific user?
    
    This fetches a specific repo....the octokit/octokit.rb repo
    
    ```
    GET /repos/octokit/octokit.rb
    ```
    
    * ### Is there a limit to the number of requests I can make?
      * 5k requests/hr for basic authentication or OAuth
      * 60 requests/hr for unauthenticated requests (associated with your IP address)
 


* ### Is there a way of extending that limit?

You can pass your app's client ID and secret as part of the query string to increase rate limit (only to be used for server to server calls) 
``` 
HTTP/1.1 200 OK
Date: Mon, 01 Jul 2013 17:27:06 GMT
Status: 200 OK
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4966
X-RateLimit-Reset: 1372700873
```

* ### What happens when I hit the limit?
 
You get a 
```
HTTP/1.1 403 Forbidden
Date: Tue, 20 Aug 2013 14:50:41 GMT
Status: 403 Forbidden
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 1377013266
```

* ### What if there is a lot of data returned?
 
fix the issue by caching API responses and using conditional requests

* ### How can I ask for more (or less) data from a request?
 
Contact Github costumer support??


* ### How do I know that there is more data available?<commit_msg>Set up<commit_after> * ### How does the API handle authentication?
 
 
 
 * ### Do I need to authenticate?
 
 Authenticate is used to prevent leakage of private repositories to unauthorized users.
 
 * ### What can I do with an unauthenticated request?
 
 Requests that require authentication can return 404 Not Found, instead of 403 Forbidden, in some places.
 
 * ### How can I authenticate my request? (3 ways)
 
* Basic Autentication
```
curl -u "username" https://api.github.com
```
* OAuth2 Token (sent in a header)
```
curl -H "Authorization: token OAUTH-TOKEN" https://api.github.com
```
* OAuth2 Token (sent as a parameter)
```
curl https://api.github.com/?access_token=OAUTH-TOKEN
```
 
 * ### How do I ask the API for...
    * ### The profile information for a specific user?
    
    This fetches the profile info for octocat

    ```
    curl -i https://api.github.com/users/octocat
    ```
    
    * ### The repository listing for a specific user?
    
    This will fetch the repos of octokit
    
    ```
    GET /orgs/octokit/repos
    ```
    * ### The recent, public activity for a specific user?
    
    This fetches a specific repo....the octokit/octokit.rb repo
    
    ```
    GET /repos/octokit/octokit.rb
    ```
    
    * ### Is there a limit to the number of requests I can make?
      * 5k requests/hr for basic authentication or OAuth
      * 60 requests/hr for unauthenticated requests (associated with your IP address)
 


* ### Is there a way of extending that limit?

You can pass your app's client ID and secret as part of the query string to increase rate limit (only to be used for server to server calls) 
``` 
HTTP/1.1 200 OK
Date: Mon, 01 Jul 2013 17:27:06 GMT
Status: 200 OK
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4966
X-RateLimit-Reset: 1372700873
```

* ### What happens when I hit the limit?
 
You get a 
```
HTTP/1.1 403 Forbidden
Date: Tue, 20 Aug 2013 14:50:41 GMT
Status: 403 Forbidden
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 1377013266
```

* ### What if there is a lot of data returned?
 
fix the issue by caching API responses and using conditional requests

* ### How can I ask for more (or less) data from a request?
 
Contact Github costumer support??


* ### How do I know that there is more data available?



### What are the endpoints for fetching...

  ### the profile data for a user? 
  
  ### the organizations a user belongs to?
  
  ### the repositories a user has created?
  
  ### a filtered list of repositories?
  
  ### a sorted list of repositories?
  
  ### public events for a user?
  
  ### When fetching public events for a user...
  
### How many results are returned by default?

  ### What limitations exist on fetching more results?
  
  ### What is the basic structure of the results?
  
  ### What fields are included in each result?
  
  ### What are the data types for each field?
  
  ### What are some of the different values for the type field?
{'fraction_non_alphanumeric': 0.09863429438543247, 'fraction_numerical': 0.03148710166919575, 'mean_word_length': 3.0530361260568792, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '723709', 'n_tokens_mistral': 1774, 'n_tokens_neox': 1561, 'n_words': 690}