Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
This project is a data mocker for CCNUACM. It is written in Python. Source code is available on our Github repo:CCNUACM_DataMocker.
To install the necessary dependencies, run the following command:
pip3 install ccnuacm-datamocker -U
Following is a basic example of how to use the data mocker. More examples are avaliable here.
import ccnuacm_datamocker as dm
from ccnuacm_datamocker.data_model import *
import os
dm.set_seed(0)
dm.set_work_dir(".")
dm.set_compiler("D:/mingw/bin/g++.exe")
os.makedirs("./std", exist_ok=True)
open("./std/APlusB.cpp", "w").write(
"""
#include <iostream>
int32_t main() {
int64_t T;
std::cin >> T;
while (T--) {
int64_t a, b;
std::cin >> a >> b;
std::cout << a + b << '\\n';
}
return 0;
}
"""
)
ds = DataSet(name="APlusB", std_path="./std/APlusB.cpp")
ds.add(
RandomInt(low=1, high=100)
.repeat(times=2, sep=" ")
.repeat(times=10, sep="\n", show_times=True, h_sep="\n"),
reputation=2,
)
ds.show()
ds.run()
Contributions are welcome. Please submit a pull request or create an issue to discuss the changes you want to make.
This project is licensed under the MIT License.
If you have any questions, please feel free to post an issue.
FAQs
A data mocking library for CCNU ACM
We found that ccnuacm-datamocker demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.