<commit_before># -*- coding: utf-8 -*-
"""
    API_Dict.py

    This is the first step for data collection.

    Firstly, get android.jar in Android SDK folder.
    Rename them and place them into Data/RawData folder.
    Glob module will automatically detect them and decompile them.
    Finally, we could extract all the APIs.

    Warning: Working Directory should be LibRadar other than LibRadar/LibRadarData

    Warning: Working Directory should be LibRadar other than LibRadar/LibRadarData

"""

import os
import commands
import redis
import glob
from settings import *

"""
    Information about Database.
    Redis is used here and the default setting points to localhost:6379
    If your Redis IP and Port is different, you can change the value here.
    In my redis.conf, I set 32 for the maximum number of databases.
    What's the databases for?

        0 : Android.jar Classes
        1 : Android.jar APIs
"""


class Singleton(object):
    """
        Implementation for Singleton
    """
    def __new__(cls):<commit_msg>blank<commit_after># -*- coding: utf-8 -*-
"""
    API_Dict.py

    This is the first step for data collection.

    Firstly, get android.jar in Android SDK folder.
    Rename them and place them into Data/RawData folder.
    Glob module will automatically detect them and decompile them.
    Finally, we could extract all the APIs.

    Warning: Working Directory should be LibRadar other than LibRadar/LibRadarData

"""

import os
import commands
import redis
import glob
from settings import *

"""
    Information about Database.
    Redis is used here and the default setting points to localhost:6379
    If your Redis IP and Port is different, you can change the value here.
    In my redis.conf, I set 32 for the maximum number of databases.
    What's the databases for?

        0 : Android.jar Classes
        1 : Android.jar APIs
"""


class Singleton(object):
    """
        Implementation for Singleton
    """
    def __new__(cls):
{'fraction_non_alphanumeric': 0.06350806451612903, 'fraction_numerical': 0.009072580645161291, 'mean_word_length': 2.954183266932271, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6309654', 'n_tokens_mistral': 567, 'n_tokens_neox': 525, 'n_words': 248}