24 questions
0
votes
1
answer
129
views
Syntax of "filter" param in Azure Code Search API
The Azure Code Search API defines the request body param filter as such :
filters
object
Filters to be applied. Set it to null if there are no filters to be applied.
and provides a single example ...
1
vote
1
answer
247
views
Discrepancies Between GitHub API and Web Interface Search Results
I am currently facing issues with the GitHub Search API where the number of search results significantly differs from what I see on the GitHub web app. I would like to understand these discrepancies ...
0
votes
1
answer
373
views
Is there any documentation on the Azure DevOps REST API codesearchresults "filters" section? Need support for git "Tag" in the filters
Microsoft has some documentation here: Code Search Results - Fetch Code Search Results
However, for the "filters" in the "Request Body" section, the only thing mentioned is:
"...
0
votes
0
answers
47
views
Vector based information retrieval on code resulting in high correlation values for all candidates
I am writing an algorithm that scans over a code base and uses the "text-embedding-ada-002" model from open ai, to turn each code line into a vector. Then I also use the same model to embed ...
1
vote
1
answer
2k
views
How can I list all occurrences of a search term in one specific file in VS Code?
In VS Code I can find all occurrences of a search term in all project files via the main Search ("Find in Files" -- Ctrl+Shift+F).
This is a nice list of occurrences grouped by filename. ...
1
vote
1
answer
525
views
Difference between source code hosted on Android Code Search and on Git repos on android.googlesource.com?
I'm trying to understand the difference between the two resources:
Android Code Search - https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:;bpv=0
and
Git repositories on ...
0
votes
1
answer
42
views
In the android code base, where is the activity lifecycle defined?
I see this documentation under developer.android.com, describing the Activity lifecycle. However, I am trying to match the description up with the actual android code, at cs.android.com, where the ...
0
votes
1
answer
259
views
How can I find all if-statements without an else?
I've got quite a lot of code in which sometimes if-statements have been written, without a matching else-statement. In some places, this is an issue, because when something fails, the failure is not ...
2
votes
0
answers
201
views
fast code searching in a large number of git repositories
We have about 20000 git repositories and the number is increasing. Sometimes we want to find out which repositories have contained a keyword on any of its branches/tags. git grep works for one or ...
2
votes
2
answers
70
views
Find all patterns used in preg_* functions in PHP code
I have around 4k PHP files. There are more than 6k preg_* functions used in the code.
I need to find all patterns used in the code and extract them. My aim is to group such patterns and replace them ...
1
vote
0
answers
37
views
TFS search code under path and combine scopes
I am trying to search TFS 2018 using code search feature for some text (.NET version in this case) in all config files for a given project or path but it only works without path: or proj: scope ...
1
vote
2
answers
751
views
Retention policy to TFS Code Search Server (Elastic Search)
We have TFS 2017.3 with separate Code Search server.
We have huge TFS DB (about 1.6TB), in the code search server we have 700GB dis space.
After few weeks the disk space running out and the code ...
0
votes
2
answers
2k
views
TFS Code Search/Work Rest API return 404
we are using TFS on-premise.
TFS version:
Microsoft Visual Studio Team Foundation Server
Version 16.122.27409.2 (2018).
We need to perform TFS source control (Code Search)
According to MS API ...
2
votes
2
answers
1k
views
TFS CodeSearch - Search multiple Git Branches
We have a GIT Repository on our TFS 2017 OnPremise Installation (Version 15.117.26714.0) with CodeSearch installed.
As per default, CodeSearch is only indexing and searching in the default Branch of ...
1
vote
1
answer
440
views
How long is the delay before I can use TFS code search on my latest changes?
When I was trying to search through some the most latest checked in changes, I couldn't find them in the result set. The code search gives 22 founds only. While, I get a full set 38 founds using ...