24 questions
0
votes
1
answer
134
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
264
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
376
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 ...
2
votes
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
549
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
45
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
210
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
71
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
754
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
442
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 ...
5
votes
1
answer
3k
views
Is there a way to make TFS code search recognize the "@" symbol?
I am searching for all occurrences of an out of date email domain in my codebase on TFS. Specifically, I am searching for "@testexample.com". However, the search seems to completely ignore the "@" ...
0
votes
2
answers
310
views
Semantics based code search
We have a large number of repositories. We want to implement a semantics(functionality) based code search on those repositories. Right now, we already have implemented keyword based code search in ...
0
votes
1
answer
330
views
Equivalent of "Open Implementation" for C in Eclipse CDT
I have a C project on Eclipse CDT, which makes use of the OpenSSL library.
I correctly configured the library and include paths, so as a result I can open declaration of functions inside the editor (I ...
1
vote
1
answer
131
views
Searching a code segment from a file
I am trying to achieve searching for bug fixes available on certain code repository. All I have is individual fix's code . I need to come up with an executable which can parse the entire file and can ...
0
votes
4
answers
353
views
searching for multiple occurrences of variables in a method
I have a problem with cursor leakage in my Java project.
Typical example:
private void doSomething() throws Exception {
String sql1= "some sql statement";
String sql2= "some other sql ...
9
votes
2
answers
4k
views
Code fragment repository search on github.com
How can I search for code fragments on github.com? When I search for MSG_PREPARE in the repository ErikZalm/Marlin github shows up nothing.
I'm using the repository code search syntax described on ...
0
votes
1
answer
93
views
Only getting diffs in Atlassians Fisheye tool
Sometimes when searching code using Fisheye from Atlassian, I only get results under the Diffs tab. Does this mean that the code used to reference what I search but no longer does since it does not ...
170
votes
4
answers
51k
views
Replacement for Google Code Search? [closed]
Google Code Search has been incredibly valuable to me as a developer - I use it a couple times a week to see how other developers have used (usually poorly documented) APIs. It's also convenient to ...
0
votes
1
answer
162
views
Google code search - missed languages
This is very odd, but I don't see neither PowerShell nor XAML among supported languages
http://www.google.com/codesearch/advanced_code_search ?!
How can I filter results for that languages?