2

For e.g. I am looking for all the words "import" and I can use the search box that returns something like this...

https://github.com/charlesdaniel/s3_uploader/search?l=python&q=import&utf8=%E2%9C%93

This lists only 8 results for s3_uploader.py file. When I checked the file, there are 12 import statements, some of those are not returned in the search. Why?

shantanuo
  • 31,689
  • 78
  • 245
  • 403

1 Answers1

2

This lists only 8 results for s3_uploader.py file. When I checked the file, there are 12 import statements

Not exactly: it shows the top height results

enter image description here

That means it isn't meant to reflect the accurate number of occurrences, but rather indicate the most prominent ones.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Is there any other way to return all results from a repository? – shantanuo Apr 22 '16 at 03:39
  • @shantanuo Not without cloning the repo first, and then running a git grep (as in http://stackoverflow.com/a/18279145/6309 for instance) – VonC Apr 22 '16 at 06:38