Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove wget. replaces with the python native "requests" library #293

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

richard087
Copy link

What does this PR do?

Fixes #292

Before submitting
  • Was this discussed/agreed via a GitHub issue? (not for typos and docs)
  • [agreed ] Did you read the contributor guideline?
  • [ agreed] Did you make sure your PR does only one thing, instead of bundling different changes together?
  • Did you make sure to update the documentation with your changes? (if necessary)
  • Did you write any new necessary tests? (not for typos and docs)
  • [agreed ] Did you verify new and existing tests pass locally with your changes?
  • Did you list all the breaking changes introduced by this pull request?

@richard087 richard087 marked this pull request as draft December 2, 2024 11:14
@richard087 richard087 marked this pull request as ready for review December 2, 2024 12:14
@richard087
Copy link
Author

tested using code:

from adalflow.datasets.big_bench_hard import BigBenchHard
import difflib

def check_datasets():
    train_data = BigBenchHard(split="train")
    expected = r"Example(id='a6d1c6de-4ff5-4f7f-a316-723c566645ea', question='I have a flute, a piano, a trombone, four stoves, a violin, an accordion, a clarinet, a drum, two lamps, and a trumpet. How many musical instruments do I have?', answer='8')"

    cases = [(str(expected), str(train_data[0]))]
    if train_data[0] == expected :
        print("Winner, winner! Chicken dinner!")
    else:
        for a,b in cases:
            print('{} => {}'.format(a,b))  
            for i,s in enumerate(difflib.ndiff(a,b)):
                if s[0]==' ':
                    print(u'No change "{}" from position {}'.format(s[-1],i))
                elif s[0]=='-':
                    print(u'Delete "{}" from position {}'.format(s[-1],i))
                elif s[0]=='+':
                    print(u'Add "{}" to position {}'.format(s[-1],i))   
check_datasets()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wget is unreliable in some environments
1 participant