search
Homephp教程php手册Using Standford Moss code duplication checking system in PHP projects

The Standford Moss system is Stanford University's famous code duplication checking system. It can find out which code submitted by students is plagiarized from others, thereby rejecting the submission results. It is open to anyone who wants to use the system, so how to use it in PHP projects?

  1. Download Moss’s PHP file moss.php

    You can visit https://github.com/Phhere/MOSS-PHP to download moss.php and put it in your third-party extension library

  2. Use moss.php

    With the sample code below, you can simply do a small Moss test

include("moss.php");
$userid = ""; // Enter your MOSS userid
$moss = new MOSS($userid);
$moss->setLanguage('java' );
$moss->addByWildcard('test/*');
$moss->addBaseFile('Example.java');
$moss->setCommentString("This is a test");
print_r ($moss->send());
?>

This code uses moss.php to complete Java code duplication checking. Unfortunately, $userid is required.

3. Get userid

Since it is an open system, there is a way to obtain its account, and that is to send an email.

Send an email to moss@moss.stanford.edu and include

registeruser
mail Your email address (may be used as userid)

The next step is to wait for a reply. With userid, you can happily use Moss.

This article was first published on Dingqiu.com, please indicate the source when reprinting

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use