<commit_before>NetProphet is a library supporting networking delay diagnosis and optimization. We will provide customized packages for different HTTP libraries, minimizing the deployment burden of developers. This package is for okhttp3, so it’s backward compatible to okhttp functionalities.

In this version, NetProphet will breakdown the delays into 1. DNS delay, 2. TCP Handshake delay, 3. TLS handshake delay, 4. Request Upload delay, 5. Time-to-first-byte (TTFB) delay, 6. Server delay (a part of TTFB delay) and 7. Response Transmission delay. The delay information will be cached onto app and uploaded to server: http://netprophet.xcdu.me/ when the number of requests have achieved a threshold when user is on WIFI.

Usage:

1. Add the jar file okhttp/target/okhttp-3.1.0-SNAPSHOT.jar into your project:
    cp libs/okhttp-3.1.0-SNAPSHOT.jar <app-directory>/app/libs/
    cp libs/dnsjava-2.1.7.jar <app-directory>/app/libs/
   Guarantee the app has the following permissions:
    android.permission.INTERNET
    android.permission.ACCESS_COARSE_LOCATION
    android.permission.ACCESS_FINE_LOCATION
    android.permission.ACCESS_WIFI_STATE
    android.permission.ACCESS_NETWORK_STATE
    android.permission.READ_PHONE_STATE

2. Initialization: In the beginning of the application (onCreate(…) method), add the following line of code:
    //The second argument indicates no optimization. <commit_msg>by xiang on Tue May 17 00:35:57 CDT 2016<commit_after>#NetProphet:
NetProphet is a library supporting networking delay diagnosis and optimization. We will provide customized packages for different HTTP libraries, minimizing the deployment burden of developers. This package is for okhttp3, so it’s backward compatible to okhttp functionalities.

In this version, NetProphet will breakdown the delays into 1. DNS delay, 2. TCP Handshake delay, 3. TLS handshake delay, 4. Request Upload delay, 5. Time-to-first-byte (TTFB) delay, 6. Server delay (a part of TTFB delay) and 7. Response Transmission delay. The delay information will be cached onto app and uploaded to server: http://netprophet.xcdu.me/ when the number of requests have achieved a threshold when user is on WIFI.

#Usage:
1. Add the jar file okhttp/target/okhttp-3.1.0-SNAPSHOT.jar into your project:
    cp libs/okhttp-3.1.0-SNAPSHOT.jar <app-directory>/app/libs/
    cp libs/dnsjava-2.1.7.jar <app-directory>/app/libs/
   Guarantee the app has the following permissions:
    android.permission.INTERNET
    android.permission.ACCESS_COARSE_LOCATION
    android.permission.ACCESS_FINE_LOCATION
    android.permission.ACCESS_WIFI_STATE
    android.permission.ACCESS_NETWORK_STATE
    android.permission.READ_PHONE_STATE

2. Initialization: In the beginning of the application (onCreate(…) method), add the following line of code:
    //The second argument indicates no optimization. 
{'fraction_non_alphanumeric': 0.06907433380084152, 'fraction_numerical': 0.01753155680224404, 'mean_word_length': 4.352720450281426, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '550900', 'n_tokens_mistral': 842, 'n_tokens_neox': 801, 'n_words': 321}