CopyPastor

Detecting plagiarism made easy.

Score: 1.881726046778121; Reported for: String similarity, Exact paragraph match Open both answers

Possible Plagiarism

Reposted on 2023-09-16
by Rohallah Hatami

Original Post

Original - Posted on 2023-09-16
by Rohallah Hatami



            
Present in both answers; Present only in the new answer; Present only in the old answer;

you can use this command in your repository :
``` git log --format='%aN' | Sort-Object -Unique | ForEach-Object { $name = $_ $addedLines = 0 $removedLines = 0 (git log --author="$name" --pretty=tformat: --numstat) | ForEach-Object { if ($_ -match '(\d+)\s+(\d+)') { $addedLines += [int]$matches[1] $removedLines += [int]$matches[2] } } [PSCustomObject]@{ Author = $name AddedLines = $addedLines RemovedLines = $removedLines TotalLines = $addedLines - $removedLines } } | Format-Table -AutoSize ```
you can use this command in your repository : ``` git log --format='%aN' | Sort-Object -Unique | ForEach-Object { $name = $_ $addedLines = 0 $removedLines = 0 (git log --author="$name" --pretty=tformat: --numstat) | ForEach-Object { if ($_ -match '(\d+)\s+(\d+)') { $addedLines += [int]$matches[1] $removedLines += [int]$matches[2] } } [PSCustomObject]@{ Author = $name AddedLines = $addedLines RemovedLines = $removedLines TotalLines = $addedLines - $removedLines } } | Format-Table -AutoSize

        
Present in both answers; Present only in the new answer; Present only in the old answer;