Bennett University Students: Version Control and Reproducibility Checklist for Internship Code

Bennett University Students: Version Control and Reproducibility Checklist for Internship Code

Facebook
Twitter
LinkedIn
WhatsApp
Email

Internship code is reproducible when a stranger can clone your repository, follow the README, and get the same numbers and charts you reported, without messaging you. To get there, track everything in Git, pin your environment, fix random seeds, keep data paths relative, and have a peer run the project from scratch before you submit.

This guide is built for a 14-day data science internship, so every step is sized to fit a two-week schedule. It ends with a checklist you can paste into your repository, a scoring table, and a peer-run test.

Why reproducibility matters for a two-week data science internship

Most short internship projects fail to impress for one dull reason: the reviewer cannot run them. A notebook that depends on a file in your Downloads folder, a library version you never wrote down, or a train-test split that changes on every run produces results nobody can verify. Reviewers, mentors and future interviewers will open your repository for a few minutes at most. If it runs, you stand out. If it does not, the quality of your modelling hardly matters.

Reproducibility also protects you. When a mentor asks “why did accuracy drop from 0.87 to 0.84?”, you need to be able to answer from your commit history rather than from memory.

If you are still looking for a project to apply this to, the free two-week online internship from CareerSwami offers 26 tracks, a free offer letter and a free completion certificate after successful completion. Any track with a coding deliverable can be used with the checklist below.

Version control habits that fit a 14-day schedule

Git does not need to be elaborate here. You need a clean history that tells the story of the project.

Repository setup on day 1

  • Create the repository before writing any analysis code, and make the first commit contain only a README stub, a .gitignore and an empty folder structure.
  • Add a .gitignore that excludes virtual environments, .ipynb_checkpoints, large raw data files, model binaries and any file containing keys or passwords.
  • Use one default branch (main) that always runs. Do experiments on short-lived branches such as feature-baseline-model.
  • Commit at least once per working session, with messages that say what changed and why, for example “Drop rows with missing target before split”.

Notebooks and Git

Notebooks store outputs and execution counts, which produce noisy diffs. Before committing, restart the kernel and run all cells top to bottom. Either clear outputs or commit them deliberately so a reviewer sees the real results. Move reusable logic (cleaning functions, feature builders) into a src/ folder as plain .py files, and import them in the notebook.

Suggested folder structure

project/
  README.md
  requirements.txt
  .gitignore
  data/
    raw/          (not committed if large; documented in README)
    processed/
  notebooks/
    01_eda.ipynb
    02_model.ipynb
  src/
    config.py
    features.py
  outputs/
    figures/
    metrics.json

Free 2-Week CareerSwami Internship

Online, 14 days, with a free offer letter and a free completion certificate once you finish the work. Check with your college that it fits your requirement before you enrol.

Apply for the free internship

Environments and requirements files: pin what you used

“It works on my laptop” usually means “it works with the library versions installed on my laptop”. An isolated environment plus a pinned requirements file fixes this.

  1. Create a fresh virtual environment for the project (python -m venv .venv or a conda environment) instead of using your base installation.
  2. Install only what the project needs.
  3. Record the Python version in the README, for instance “Python 3.11”.
  4. Export exact versions with pip freeze > requirements.txt, then trim the file to the packages you actually import if the list is very long. Keep pinned versions (pandas==2.2.2) rather than open ranges.
  5. Conda users can also export an environment.yml. Choose one primary method and say which in the README.
  6. Test the file by creating a second empty environment and installing from it. If installation fails, the file is wrong.

Operating system and hardware notes

If your code needs a GPU, a specific operating system or a large amount of RAM, say so in the README. Add a small-sample mode (for example, a flag that uses 5,000 rows) so a reviewer on an ordinary laptop can still run the pipeline end to end.

Random seeds: making stochastic steps repeatable

Anything involving randomness can give different results on every run: train-test splits, shuffling, model initialisation, cross-validation folds, sampling and some tree-based algorithms. Set seeds in one place and reuse them.

  • Define SEED = 42 (or any number) in src/config.py and import it everywhere.
  • Pass it explicitly: train_test_split(..., random_state=SEED), RandomForestClassifier(random_state=SEED), KFold(..., shuffle=True, random_state=SEED).
  • Seed the libraries you use directly, such as random.seed(SEED) and numpy.random.seed(SEED). If you use a deep learning framework, follow its documentation for seeding and for deterministic operations, since GPU behaviour can still vary slightly.
  • Where exact repeatability is impossible, run the experiment with several seeds and report the mean and spread. That is more honest than quoting one lucky number.
  • Never tune the seed to get a better score. Pick it once and leave it.

Data paths: no absolute paths, no hidden files

The most common failure in peer runs is a path such as C:\Users\Riya\Desktop\sales.csv. Replace every such path.

  • Use paths relative to the project root, built with pathlib.Path, for example DATA_RAW = Path("data") / "raw" defined once in config.py.
  • Never modify raw data in place. Write cleaned versions to data/processed/ from a script or notebook that can be re-run.
  • If the dataset is public, put the download link, date accessed and licence in the README. If it is too large for Git, give the exact download steps and the expected file name and size.
  • If the data is confidential or supplied by a mentor, do not commit it. Provide a small synthetic or anonymised sample with the same columns so the code can still run.
  • Check that your code does not rely on the current working directory being a particular folder; run it from the project root and say so in the README.

The reproducibility checklist for internship code (copy into your README)

Area Check Pass condition
Git Repository has meaningful commit history At least one commit per working session; messages describe changes
Git .gitignore in place No environments, secrets or large binaries committed
Git Final state tagged or noted A tag such as v1.0-submission or a recorded commit hash
Environment Python version stated README names the version
Environment Pinned requirements file Installs cleanly in a brand-new environment
Seeds Single seed constant Used in splits, models and sampling
Seeds Repeat run matches Two runs give identical metrics (or documented spread)
Data Relative paths only No drive letters or user folders anywhere in code
Data Source documented Link, access date, licence and file names in README
Data Raw data untouched Processed files regenerate from code
Execution Notebook runs top to bottom Restart-and-run-all succeeds without errors
Execution Run order documented README lists commands or notebook order
Results Metrics saved to file Reported numbers match outputs/metrics.json
Safety No credentials in history No API keys, tokens or personal data

The peer fresh-run test: have a classmate run your project from scratch

Your own machine cannot test your project, because it already contains everything you forgot to document. A classmate on a different laptop can. Treat this as a 45 to 60 minute session around day 11 or 12, leaving time to fix what breaks.

Rules for the tester

  1. The tester uses a different computer, or at minimum a new user account or a fresh folder with a new environment.
  2. The tester receives only the repository link. No verbal help, no extra files by chat.
  3. The tester follows the README exactly, copying commands as written.
  4. Every point of confusion or error is written down with the exact message and the time lost.
  5. The tester compares the final metrics and figures with those reported in your README.

Peer test log template

Step What the tester does Result (pass/fail) Notes and error text
1 Clone repository
2 Create new environment, install requirements
3 Obtain data using README instructions
4 Run pipeline or notebooks in stated order
5 Compare metrics with reported values
6 Total time taken and blockers

Treat any failure as a documentation or code defect, not as the tester’s mistake. Fix it, commit the fix with a message naming the problem, and ask the tester to rerun only the failed step.

Worked illustrative example: a churn prediction project that failed its first peer run

This scenario is invented for illustration. No code was executed to produce it.

Imagine a student building a customer churn classifier. Her notebook reads C:\Users\Ananya\Downloads\churn.csv, uses train_test_split without a seed, and she has no requirements file. She reports 0.86 accuracy.

Her classmate clones the repository and hits these problems in order:

  1. Import error. A library is missing. Fix: she creates a new environment, installs only what is needed, and commits a pinned requirements.txt.
  2. File not found. The absolute path fails. Fix: she moves the path into config.py as Path("data/raw/churn.csv") and documents the download link in the README.
  3. Different accuracy. The tester gets 0.83. Fix: she adds SEED, passes it to the split and model, and re-runs. She then reports the metric from five seeds as a mean with its range, writing it to outputs/metrics.json.
  4. Unclear order. The tester ran notebooks in the wrong order. Fix: she numbers them 01_ and 02_ and adds a “How to run” section.

The second peer run passes in twenty minutes. The lesson is that every fix was small, but none would have been found without an outsider.

Scoring your own repository before you submit

Score band What it looks like Action
12-14 checks passed A stranger can run it and match your numbers Submit; tag the commit
8-11 checks passed Runs with some guesswork Fix environment and path issues first
Below 8 Works only on your machine Rebuild the environment, remove absolute paths, rerun the peer test

A 14-day plan for building reproducibility in as you go

  • Days 1-2: repository, folder structure, .gitignore, environment, README skeleton, data source notes.
  • Days 3-6: exploration and cleaning in notebooks; move reusable code to src/; commit daily; update requirements whenever you install something.
  • Days 7-9: modelling with a central seed; save metrics and figures to outputs/.
  • Days 10-11: restart-and-run-all, clean-environment install test, README “How to run” section.
  • Day 12: peer fresh-run test and fixes.
  • Days 13-14: final run, tag the commit, final README review, submission.

Bennett University: Making Internship Code Reproducible for Reviewers and Mentors

Bennett University is a private university in Greater Noida, Uttar Pradesh. The University Grants Commission’s list of private universities includes it, giving the address as Plot No. 8-11, Tech Zone II, Greater Noida, 201310. That listing confirms that the university exists in the UGC register; it does not describe any internship rule, curriculum or placement arrangement, so those details need to come from the university itself.

That matters for a version-control checklist. Whether an internship at Bennett is credit-bearing, how long it runs, who evaluates it and what must be submitted are decisions made by the student’s school and programme. A student who treats the repository as part of the deliverable will be better placed whatever the format: a clean history shows what was done and when, and a README lets a faculty evaluator or company mentor re-run the work without the student present.

Practical points follow from that. Keep the repository private unless the host company agrees in writing to publication, and never commit client data, credentials or API keys. If the employer owns the code, a personal copy for a portfolio may be restricted, so ask early. Pin library versions, record the Python or R version and set random seeds, so a reviewer gets the same results from the same data. Where the data cannot be shared, provide a small synthetic sample and describe the schema.

Students should also note that no claim is made here about how the university evaluates internship code; the checklist below is meant to be matched against the written rules of the programme.

What to confirm with Bennett before you rely on this checklist

  • Ask your school office for the written internship or project guidelines that apply to your programme and semester.
  • Check what the evaluator expects at submission: report only, code, or a repository link.
  • Ask the Career Services team whether the internship needs a registered offer letter or an approved host.
  • Get the host organisation’s written position on code ownership and on keeping a copy.
  • Confirm whether plagiarism or originality checks apply to submitted code and how commits are treated.

Handling secrets, licences and sensitive data in a public repository

  • Scan your history for keys and tokens before making a repository public. If one was ever committed, revoke it and create a new one; deleting the file is not enough.
  • Store credentials in environment variables and provide a .env.example file with placeholder names.
  • Add a licence file only if you own the code and are comfortable with others reusing it; otherwise say “all rights reserved” or ask your mentor.
  • Remove names, phone numbers and other personal identifiers from any sample data.

Frequently Asked Questions

Do I need Docker to make internship code reproducible?

No. For a 14-day project, a virtual environment, a pinned requirements file and a clear README are enough. Docker helps when system-level dependencies are complicated, but it adds setup time that most short projects cannot spare.

Should I commit my dataset to GitHub as a Bennett University student?

Only if it is small, public and licensed for redistribution. Otherwise, document how to download it, keep it out of Git through .gitignore, and include a small sample so the code still runs.

Is pip freeze enough for a requirements file?

It is a good start because it records exact versions. Review the output and keep the packages you actually use if the list contains many unrelated items, then verify by installing into a new environment.

What if my results change slightly even after setting seeds?

Different library versions, hardware or parallel and GPU operations can cause small differences. Report which versions you used, run several seeds, and present the mean with the range instead of a single figure.

Can I use Jupyter notebooks and still be reproducible?

Yes, if the notebook runs from top to bottom after a kernel restart, uses relative paths, and imports shared code from src/. Number your notebooks to show the intended order.

How many commits should an internship project have?

There is no fixed number. Aim for at least one meaningful commit per working session, so that a reviewer can follow the decisions you made from day to day.

Will Bennett University accept a short online internship toward its internship requirement?

That cannot be confirmed from public third-party pages. Ask your department coordinator or career services office in writing, and request the official regulation for your batch before relying on any internship for a requirement.

Who should be my peer tester?

Choose a classmate with similar skills but no involvement in your project, ideally on a different operating system. Someone who has never seen your code will expose the gaps in your instructions fastest.

Related Data Science guides

Ready to put this into practice?

Join the free two-week CareerSwami online internship in Data Science. The internship, the offer letter and the completion certificate are free.

Start your free 2-week internship

Web Stories

Scroll to Top