Skip to content

Instantly share code, notes, and snippets.

View satsin06's full-sized avatar
💻
Developer

Satyam Sinha satsin06

💻
Developer
View GitHub Profile
@satsin06
satsin06 / GSoC2022.md
Last active August 28, 2023 07:02
Google Summer of Code'23 Final Work

Google Summer of Code 2023 Final Work

gsoc retriever
@satsin06
satsin06 / extract_training_data_new.ipynb
Created July 31, 2023 14:25
extract_training_data_new.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import pytest
from satyampy import __main__
def test_adding(sample_inputs):
x, y = sample_inputs
assert __main__.adding(x, y) == 5
import pytest
@pytest.fixture
def sample_inputs():
return 2, 3
from setuptools import setup, find_packages
setup(
name='satyampy',
version='0.1.3',
packages=find_packages(),
entry_points={
'console_scripts': [
'satyampy = satyampy.__main__:main'
]
import sys
def adding(x, y):
return x + y
def main():
if len(sys.argv) != 3:
print("Please provide two numbers as command-line arguments.")
else:
x = int(sys.argv[1])