Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Datasets:
devirt-dev
/
devirt-corpus
like
1
Follow
devirt-dev
1
Modalities:
Tabular
Text
Formats:
json
Size:
1K - 10K
Tags:
code
javascript
deobfuscation
obfuscation
Libraries:
Datasets
Dask
Polars
+ 1
License:
mit
Dataset card
Data Studio
Files
Files and versions
xet
Community
1
main
devirt-corpus
/
seeds
/
s0010_bsearch.js
vasie
Expand corpus to ~9.5k: 500 seeds x 19 obfuscation profiles + real samples
c930535
11 days ago
Raw
Download with hf CLI
Copy download link
History
Blame
Contribute
Delete
192 Bytes
function
binarySearch
(
a,t
){
let
lo=
0
,hi=a.
length
-
1
;
while
(lo<=hi){
const
m=(lo+hi)>>
1
;
if
(a[m]===t)
return
m;
if
(a[m]<t)lo=m+
1
;
else
hi=m-
1
;}
return
-
1
;}
console
.
log
(
binarySearch
([
2
,
8
,
9
,
9
,
10
,
13
],
13
));