Metadata-Version: 2.1
Name: Py-SCSO-Compare
Version: 0.0.1
Summary: Search and download Java files that contain StackOverflow links from Searchcode, and compare them with code snippets from StackOverflow questions or answers.
Home-page: https://github.com/mernst32/Py-SCSO-Compare
Author: Maximilian Ernst
Author-email: mernst32@yahoo.com
License: UNKNOWN
Description: # Py-SCSO-Compare
        This is neither an official Searchcode nor an official Stackoverflow application!
        ## dsc_cli.py
        ```
        usage: dsc_cli.py [-h] [-i] [-r REPO] Q
        
        Download Java Code from searchcode, that contain the given searchquery.
        
        positional arguments:
          Q                     the searchquery.
        
        optional arguments:
          -h, --help            show this help message and exit
          -i, --info            only get the number of results.
          -r REPO, --repo REPO  specify the repo to search by giving the repo_id.
        ```
        
        ## exlf_cli.py
        ```
        usage: exlf_cli.py [-h] [-r] [-o OUTPUT_FILE] [-c] [-v] F Q
        
        Scans Java files for a given query and returns the lines containing said query
        starting from the first occurrence.
        
        positional arguments:
          F                     file to be scanned.
          Q                     the searchquery.
        
        optional arguments:
          -h, --help            show this help message and exit
          -r, --recursive       scan a directory recursively.
          -o OUTPUT_FILE, --output-file OUTPUT_FILE
                                save output in given output file.
          -c, --copy-line       copy first line of the scanned file(s), removing
                                comment characters like "//"
          -v, --verbose         gives a more detailed output
        ```
        
        ## dso_cli.py
        ```
        usage: dso_cli.py [-h] [-q] [-b] [-a] [-o OUTPUT_FILE] [-i] [-v] I
        
        Download code snippets from StackOverflow
        
        positional arguments:
          I                     The id of the entity, either an answer or a question,
                                from which the code snippet(s) will be downloaded.
        
        optional arguments:
          -h, --help            show this help message and exit
          -q, --question        Get the code snippet(s) from a question body instead.
          -b, --best-answer     When the question option is used, this option tells
                                the program to get the highest rated answer of the
                                specified question.
          -a, --accepted-answer
                                When the question option is used, this option tells
                                the program to get the accepted answer of the
                                specified question. If there is no accepted answer the
                                highest rated answer is used instead.
          -o OUTPUT_FILE, --output-file OUTPUT_FILE
                                Saves extracted code snippet to file with the
                                specified name, or if there are more than one to a
                                folder of the same name.
          -i, --input-file      Parses data from CSV file and uses them to get code
                                snippets. REQUIRED HEADERS: Stackoverflow_Links,
                                SC_Filepath. OPTIONAL HEADER: Download.
          -v, --verbose         gives a more detailed output
        ```
        
        ## moss_cli_client.py
        ```
        usage: moss_cli_client.py [-h] U F
        
        MOSS CLI client for submitting java files to the service and downloading the
        report from the service locally. Will go through the sub folders of the given
        folder and submit the java files for plagiarism checks and download the
        reports locally, creating a linking file in the process
        
        positional arguments:
          U           Your user-id for the MOSS service.
          F           The folder whose contents you want to submit.
        
        optional arguments:
          -h, --help  show this help message and exit
        ```
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Requires-Python: >=3.6
Description-Content-Type: text/markdown
