Questions tagged [false-positive]

False positive is the case where the positive result of a test doesn't correspond to reality. It can lead to the wrong decision.

236 questions
3
votes
1 answer

Findbugs false positive: Dereference of the result of readLine() without nullcheck

The following seems to be a false positive of Findbugs. BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String s = br.readLine(); if(s == null) { return; } at the line of the if, I'm getting the message…
Ulrich Scholz
  • 2,039
  • 4
  • 30
  • 51
3
votes
2 answers

Bonferroni correction of p-values from hypergeometric analysis

I have performed a hypergeometric analysis (using a python script) to investigate enrichment of GO-terms in a subset of genes. An example of my output is as follows: GO00001 1500 300 200 150 5.39198144708e-77 GO00002 1500 500 400 350…
Gloom
  • 317
  • 1
  • 3
  • 13
3
votes
2 answers

Handling "incompatibily" overloaded names in Cppcheck

I'm stuck with a "conflict" between with AnsiStrings sprintfmember function and Cppcheck's built-insprintf` knowledge. In cases like this, const char* name = "X"; int version = 1; return AnsiString().sprintf("%s.H%02d", name, version); // <--…
Wolf
  • 9,679
  • 7
  • 62
  • 108
3
votes
2 answers

My program is getting a false positive from AVG

My program is getting a false positive from AVG. Its just our companies branded version of Ultra VNC. Its only this one company that's identifying it as a virus and we've been using the same copy of that program for almost a year. I know its…
JimDel
  • 4,309
  • 11
  • 54
  • 99
3
votes
1 answer

Block port for integration testing

Is there a way to block a port for running Java application, to emulate connectivity failures, for false-positive tests: Block connection to DB to emulate **DB failure Block connection to JMS to emulate JMS failure Block connection to Internet to…
mavarazy
  • 7,562
  • 1
  • 34
  • 60
3
votes
1 answer

Rails Best Practices false positive unused methods

I'm using Rails best practices to validate my own code. ./app/controllers/news_items_controller.rb:2 - remove unused methods (NewsItemsController#new) ./app/controllers/news_items_controller.rb:2 - remove unused methods…
Loïc Faure-Lacroix
  • 13,220
  • 6
  • 67
  • 99
2
votes
0 answers

How to avoid false import compile error with Java Annotation?

Let's assume ClassGenerated.java is generated by running the java annotation processor on ClassGeneratedParent.java and ClassA imports both ClassGenerated and ClassGeneratedParent. When running javac ClassA.java ClassGeneratedParent.java (we don't…
Long Vu
  • 281
  • 1
  • 10
2
votes
1 answer

Buffer overflow or false positive?

getmodulefilenamew function produces false positive (buffer overflow) as it accepts second argument as buffer - of fixed size in our case. But looking through its documentation:…
2
votes
2 answers

pandas duplicate values: Result visual inspection not duplicates

Hello thanks in advance for all answers, I really appreciate community help Here is my dataframe - from a csv containing scraped data from cars classified ads Unnamed: 0 NameYear \ 0 0 BMW 7 серия, 2007 …
2
votes
1 answer

Why does Windows Defender detect compiled autoit executables as viruses?

I have another issue not related to script or syntax it a problem with the windows defender I write a very very basic program. this ProgressOn("Waiting", "Setup", "Loading") For $i = 0 To 50 ProgressSet($i) Sleep(50) Next but I don't…
2
votes
1 answer

Training out false positives in object detection

This is my first foray into the world of object recognition. I have successfully trained a model on yolo with images that I have found on Google and annotated myself in CVAT. My questions are as follows. a) How do I train the model to ignore some…
2
votes
1 answer

junit: how to avoid false positives when using forkMode="once"?

I'd like to speed up junit tests and I think about using forkMode="once". Due to the fact that junit seems to use a shared classloader for all tests within one process beside false negatives (which is good thing because it exposes static coupling)…
MRalwasser
  • 15,605
  • 15
  • 101
  • 147
2
votes
2 answers

Avoiding Antivirus False-Positives in Data Files

A data file used by one of my applications was recently quarantined by Symantec Antivirus (signature triggered was 'Nightfall.5815'). The file is written and read dynamically, and the content is arbitrary data. Is there any way for my application to…
Adam Holmberg
  • 7,245
  • 3
  • 30
  • 53
2
votes
1 answer

find roc/auc/auc-roc score for single class 1's in y_true variable

How to calculate auc or roc or auc-roc score from y_true and y_pred values for SINGLE CLASS in y_true using python code. I have checked various similar questions on stackoverflow and internet but the task is not solved or the output is not that is…
2
votes
1 answer

PyCharm thinks variable is not used but clearly is inside class method?

For some reason PyCharm is telling me that 3 of my 5 list are not used in my function but they in fact are being used in the function and the code completes with the expected results. This is odd behavior. Is this a bug? I have seen some issues for…
Mike - SMT
  • 14,784
  • 4
  • 35
  • 79