Giter Site home page Giter Site logo

codesim's Introduction

codesim

ISER2020 PA1 - c++源代码相似性度量

课程主页:http://jyywiki.cn/ISER/2020/

实验要求: http://jyywiki.cn/ISER/2020/assignments/PA1

参考论文

  • Yanyan Jiang, and Chang Xu. Needle: Detecting Code Plagiarism on Student Submissions. In SIGCSE China, 2018.
# 代码文件结构
├── include
│   ├── MaximumWeightFlow.h
│   └── MyPaser.h
├── makefile
└── src
    ├── MaximumWeightFlow.cpp
    ├── MyPaser.cpp
    └── main.cpp

Dependencies

本项目运行在Linux 或 Windows Subsystem for Linux(WSL)上,在使用前请确保已安装如下package:

  • g++
  • objdump
  • make

可以通过-v参数测试是否已经安装。

Build & Run

Linux

Build:

在linux环境下,请使用make命令构建项目,输出文件为项目根目录下的codesim

mxy@linux:~$ cd your/project/codesim/dir
mxy@linux:/codesim$ make clean
mxy@linux:/codesim$ make

Run:

在本地,以./运行codesim,接受两个c++源文件,并输出他们之间的差异值,精确到小数。

mxy@linux:/codesim$ ./codesim --help
usage: codesim [-v|--verbose] [-h|--help] code1 code2
mxy@linux:/codesim$ ./codesim foo.cc bar.cpp
99.3

如果不想添加./前缀,可以将生成的codesim文件复制到/usr/bin目录下。

mxy@linux:/codesim$ sudo mv codesim /usr/bin
mxy@linux:/codesim$ codesim foo.cc bar.cpp
99.3
mxy@linux:/codesim$ sudo rm /usr/bin/codesim 	# delete codesim 

codesim's People

Contributors

mxy161610207 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.