• Tutorials
  • Api Documentation
  • Download
  • Credits
Show / Hide Table of Contents
  • AutoCheck.Core
    • Output
    • Output.Log
    • Output.Style
    • Output.Type
    • Script
    • Script.ExecutionMode
    • Utils
    • Utils.OS
  • AutoCheck.Core.Connectors
    • Atom
    • Base
    • Compressed
    • Css
    • Csv
    • CsvDocument
    • Dmoj
    • GDrive
    • Html
    • Math
    • Odoo
    • Operator
    • PlainText
    • PlainText.PlainTextDocument
    • Postgres
    • Rss
    • Shell
    • TextStream
    • Xml
    • Xml.XmlNodeType
  • AutoCheck.Core.CopyDetectors
    • Base
    • Base.Mode
    • Css
    • Html
    • PlainText
    • PlainText.File
    • SourceCode
    • SqlLog
    • Xml
  • AutoCheck.Core.Events
    • LogUpdateEventArgs
    • StatusUpdateEventArgs
    • StatusUpdateEventArgs.ExecutionEvent
  • AutoCheck.Core.Exceptions
    • ArgumentInvalidException
    • ArgumentNotFoundException
    • ConfigFileMissingException
    • ConnectionInvalidException
    • ConnectorInvalidException
    • ConnectorNotFoundException
    • DocumentInvalidException
    • DownloadFailedException
    • ItemNotFoundException
    • PorpertyNotFoundException
    • QueryInvalidException
    • RegexInvalidException
    • ResultMismatchException
    • ScriptInvalidException
    • ScriptNotFoundException
    • StyleInvalidException
    • StyleNotAppliedException
    • StyleNotFoundException
    • TableInconsistencyException
    • VariableInvalidException
    • VariableNotFoundException
  • Google.DiffMatchPatch
    • Diff
    • DiffMatchPatch
    • Operation
    • Patch

Class PlainText

Copy detector for plain text files.

Inheritance
System.Object
AutoCheck.Core.CopyDetector
PlainText
Css
Html
SqlLog
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: AutoCheck.Core.CopyDetectors
Assembly: AutoCheck.dll
Syntax
public class PlainText : CopyDetector

Constructors

| Improve this Doc View Source

PlainText()

Creates a new instance, setting up its properties in order to allow copy detection with the lowest possible false-positive probability.

Declaration
public PlainText()

Properties

| Improve this Doc View Source

Count

The quantity of files loaded.

Declaration
public override int Count { get; }
Property Value
Type Description
System.Int32
Overrides
AutoCheck.Core.CopyDetector.Count
| Improve this Doc View Source

Extension

File extension

Declaration
protected string Extension { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

LineCountWeight

The weight that line counting will have when computing the global matching percentage.

Declaration
protected float LineCountWeight { get; set; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

WordCountWeight

The weight that word counting will have when computing the global matching percentage.

Declaration
protected float WordCountWeight { get; set; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

WordsAmountWeight

The weight that different words counting will have when computing the global matching percentage.

Declaration
protected float WordsAmountWeight { get; set; }
Property Value
Type Description
System.Single

Methods

| Improve this Doc View Source

Compare()

Compares all the previously loaded files, between each other.

Declaration
public override void Compare()
Overrides
AutoCheck.Core.CopyDetector.Compare()
| Improve this Doc View Source

CopyDetected(String, Single)

Checks if a potential copy has been detected. The Compare() method should be called firts.

Declaration
public override bool CopyDetected(string path, float threshold)
Parameters
Type Name Description
System.String path
System.Single threshold

The threshold value, a higher one will be considered as copy.

Returns
Type Description
System.Boolean

True of copy has been detected.

Overrides
AutoCheck.Core.CopyDetector.CopyDetected(System.String, System.Single)
| Improve this Doc View Source

GetDetails(String)

Returns a printable details list, containing information about the comparissons (student, source and % of match).

Declaration
public override List<(string student, string source, float match)> GetDetails(string path)
Parameters
Type Name Description
System.String path

Student name

Returns
Type Description
System.Collections.Generic.List<System.ValueTuple<System.String, System.String, System.Single>>

A list of tuples, on each one will contain information about the current student, the source compared with and the % of match.

Overrides
AutoCheck.Core.CopyDetector.GetDetails(System.String)
| Improve this Doc View Source

Load(String)

Loads the given file into the local collection, in order to compare it when Compare() is called.

Declaration
public override void Load(string path)
Parameters
Type Name Description
System.String path
Overrides
AutoCheck.Core.CopyDetector.Load(System.String)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX