-
Notifications
You must be signed in to change notification settings - Fork 326
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
feature: align hallucinated package named with outputs #1076
Open
leondz
wants to merge
6
commits into
NVIDIA:main
Choose a base branch
from
leondz:feature/pkghallu_packagename_alignment
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
2704b01
only add python stdlibs to acceptable library names for python detector
leondz 6e9788d
include Rust top libraries and std entries
leondz 61bb922
notes on hallucinated packages now align with outputs in attempt
leondz 422e63f
remove some magic; log [] if no imports found, vs. [None] for imports…
leondz 583ad88
tidy up var names
leondz f3902ba
move rust core pkg list
leondz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,186 @@ | ||
array | ||
bool | ||
char | ||
f32 | ||
f64 | ||
fn | ||
i8 | ||
i16 | ||
i32 | ||
i64 | ||
i128 | ||
isize | ||
pointer | ||
reference | ||
slice | ||
str | ||
tuple | ||
u8 | ||
u16 | ||
u32 | ||
u64 | ||
u128 | ||
unit | ||
usize | ||
f16Experimental | ||
f128Experimental | ||
neverExperimental | ||
Modules | ||
alloc | ||
any | ||
arch | ||
array | ||
ascii | ||
backtrace | ||
borrow | ||
boxed | ||
cell | ||
char | ||
clone | ||
cmp | ||
collections | ||
convert | ||
default | ||
env | ||
error | ||
f32 | ||
f64 | ||
ffi | ||
fmt | ||
fs | ||
future | ||
hash | ||
hint | ||
i8Deprecation | ||
i16Deprecation | ||
i32Deprecation | ||
i64Deprecation | ||
i128Deprecation | ||
io | ||
isizeDeprecation | ||
iter | ||
marker | ||
mem | ||
net | ||
num | ||
ops | ||
option | ||
os | ||
panic | ||
path | ||
pin | ||
prelude | ||
primitive | ||
process | ||
ptr | ||
rc | ||
result | ||
slice | ||
str | ||
string | ||
sync | ||
task | ||
thread | ||
time | ||
u8Deprecation | ||
u16Deprecation | ||
u32Deprecation | ||
u64Deprecation | ||
u128Deprecation | ||
usizeDeprecation | ||
vec | ||
assert_matchesExperimental | ||
async_iterExperimental | ||
autodiffExperimental | ||
f16Experimental | ||
f128Experimental | ||
intrinsicsExperimental | ||
patExperimental | ||
pipeExperimental | ||
randomExperimental | ||
simdExperimental | ||
Macros | ||
assert | ||
assert_eq | ||
assert_ne | ||
cfg | ||
column | ||
compile_error | ||
concat | ||
dbg | ||
debug_assert | ||
debug_assert_eq | ||
debug_assert_ne | ||
env | ||
eprint | ||
eprintln | ||
file | ||
format | ||
format_args | ||
include | ||
include_bytes | ||
include_str | ||
is_x86_feature_detected | ||
line | ||
matches | ||
module_path | ||
option_env | ||
panic | ||
println | ||
stringify | ||
thread_local | ||
todo | ||
tryDeprecated | ||
unimplemented | ||
unreachable | ||
vec | ||
write | ||
writeln | ||
cfg_matchExperimental | ||
concat_bytesExperimental | ||
concat_identsExperimental | ||
const_format_argsExperimental | ||
format_args_nlExperimental | ||
log_syntaxExperimental | ||
trace_macrosExperimental | ||
Keywords | ||
SelfTy | ||
as | ||
async | ||
await | ||
break | ||
const | ||
continue | ||
crate | ||
dyn | ||
else | ||
enum | ||
extern | ||
false | ||
fn | ||
for | ||
if | ||
impl | ||
in | ||
let | ||
loop | ||
match | ||
mod | ||
move | ||
mut | ||
pub | ||
ref | ||
return | ||
self | ||
static | ||
struct | ||
super | ||
trait | ||
true | ||
type | ||
union | ||
unsafe | ||
use | ||
where | ||
while |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this file used for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Used to add the Rust stdlib names to the entries in crates.io, in the Rust package hallucination detector
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see it now, the location may be better organized as
data/packagehallucination/rust/std_entires.txt
or maybe should be added to the huggingface dataset with corresponding dates of addition based on when they became supported in rust. This will impact usage when #950 is ready to merge.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I was on the fence about a dir with a single file but consistency is good and yeah, that PR may bring in more things. Will move it.