Skip to content

Instantly share code, notes, and snippets.

@ko1
Created June 27, 2024 08:53
Show Gist options
  • Save ko1/16bd6ffb7dcdc29c2fa9fa36e2b71e7e to your computer and use it in GitHub Desktop.
Save ko1/16bd6ffb7dcdc29c2fa9fa36e2b71e7e to your computer and use it in GitHub Desktop.
local variable usages
value 660113
options 641865
v 624172
result 531962
args 520225
name 496562
key 380259
k 378120
val 365826
block 340054
response 325469
hash 305521
e 289736
data 283882
type 257015
_values 255596
path 253294
opts 246408
attributes 232042
params 217443
o 194957
i 180013
custom_headers 179416
node 178789
t 161596
f 161032
c 147449
file 142391
message 141450
r 136274
h 134658
id 134341
klass 132737
x 131206
config 128670
a 122079
resource_group_name 121017
body 119021
s 118757
method 106736
headers 102474
request 101117
line 99595
n 99329
status_code 98655
attr 98226
url 94653
other 93527
param 90782
str 89059
m 87511
env 83872
b 79267
command 78384
obj 75919
p 74588
_ 73060
res 71905
text 71243
index 71081
item 69946
msg 69229
context 68056
object 66009
expected 64352
uri 63755
promise 62367
header_params 61870
inner_type 61432
v_type 61356
k_type 61347
query_params 59354
invalid_properties 58528
string 58042
d 57473
arg 55574
user 55170
filename 54786
req 54712
parsed_response 54568
post_body 54249
app 52977
code 52825
output 51465
content 50717
base 50002
http_response 49939
request_url 49811
cmd 49623
form_params 49510
request_headers 49503
result_mapper 48718
model 48682
response_content 48516
path_template 48499
client 48479
error_model 48466
fields 48369
local_var_path 47800
doc 47674
auth_names 47419
record 47332
status 47206
page 46939
dir 46033
xml 45332
input 44531
source 43538
parameters 42742
query 42130
_headers 41760
method_name 41095
event 40889
_status_code 40695
action 40649
error 40351
row 39567
target 39492
field 39230
pn 38593
version 37928
token 37683
y 37086
format 36536
values 36104
tag 35949
time 35251
next_page_link 35186
parent 34519
is_nullable 34274
list 33505
out 33436
payload 33288
attribute 32804
host 32298
quota_user 32196
io 32041
table 31746
element 31452
attrs 31043
count 30739
l 30694
post 30319
resource 29162
scope 29036
actual 28580
instance 28256
template 28135
endpoint 27714
entry 27706
results 27683
match 26669
exception 26490
size 26280
return_type 26248
pattern 26001
json 25768
column 25608
task 25531
ret 25367
request_info 25082
port 25006
request_configuration 24993
keys 24819
filter 24529
operation 24529
title 24517
err 24380
default 24280
prefix 24275
corrector 24155
state 24074
child 23990
location 23567
server 23220
new_options 23202
password 23177
opt 22481
blk 22297
group 22093
temp_model 22091
resp 21760
files 21739
range 21663
rel 21650
src 21523
ex 21485
validator 21366
offset 20960
description 20865
items 20786
lines 20332
session 20240
date 20188
sql 20186
project 20113
metadata 20042
table_name 19857
w 19803
connection 19783
from 19675
http 19655
header 19556
parser 19474
buffer 19097
array 18936
mod 18824
g 18816
desc 18628
timeout 18533
spec 18475
to 18450
builder 18404
idx 18346
info 18208
names 18015
subject 17944
q 17780
number 17754
money 17459
arguments 17420
logger 17412
limit 17405
root 17343
order 17289
address 17163
mode 16985
label 16980
html 16856
sym 16716
level 16643
file_name 16629
link 16156
var 16105
comment 16090
username 16033
j 15797
conn 15671
tz 15608
namespace 15603
content_type 15397
matcher 15251
start 15071
FAILED 14906
collection 14877
length 14833
option 14694
num 14490
color 14429
u 14412
service 14372
map 14360
job 14318
part 14242
example 14106
meth 13839
pid 13816
callback 13812
errors 13808
paths 13711
fname 13656
argv 13559
email 13484
op 13483
width 13480
exp 13357
identifier 13134
locale 13130
tags 13095
file_path 13049
fn 12645
deserialize_method 12602
col 12583
document 12558
error_mapping 12496
el 12402
stream 12309
parts 12308
channel 12257
amount 12237
request_pb 12003
ctx 11966
allowable_values 11926
db 11805
word 11755
handler 11744
controller 11696
rule 11689
image 11600
request_content 11572
request_mapper 11554
dest 11532
pos 11479
repo 11323
test 11241
domain 11186
ref 11146
ids 11118
reqid 11118
arr 11032
contents 11028
class_name 10988
start_index 10941
verb 10936
cached 10918
kwargs 10836
kind 10819
max 10787
user_id 10769
tokens 10740
r1 10527
ext 10412
inst 10410
queue 10364
requestid 10149
r0 10143
columns 10137
first 10136
schema 10117
datatype 10103
r2 10102
style 10097
buf 9956
ip 9912
ent 9891
conf 9876
rows 9808
filters 9792
account_name 9784
memo 9771
set 9749
column_name 9710
destination 9704
service_name 9652
current 9607
records 9606
pair 9493
pool 9454
selector 9362
len 9355
parsed 9220
chunk 9196
conditions 9179
owner 9172
client_id 9169
first_page 9163
symbol 9127
sum 9115
year 9110
api_client 9039
condition 9039
proc 9006
position 8986
credentials 8946
ary 8945
property 8882
configuration 8820
now 8816
success 8810
attr_name 8803
platform 8773
i0 8752
bucket 8751
raw 8737
role 8725
ch 8682
timestamp 8654
total 8646
log 8620
receiver 8619
user_ip 8605
ns 8582
properties 8574
expr 8563
left 8554
proxy 8462
elements 8449
form 8409
region 8381
height 8376
definition 8345
methods 8312
stdout 8287
encoding 8271
right 8257
path_parameters 8240
matches 8185
request_adapter 8161
topic 8158
relation 8100
indent 8019
elem 8008
environment 8008
association 8004
types 7985
tmp 7974
nodes 7863
settings 7859
reason 7837
step 7819
char 7812
account 7792
old 7789
authorization 7785
min 7784
writer 7778
entity 7765
api 7739
flags 7711
cmd2 7587
meta 7574
cdef 7532
notification 7512
machine 7487
messages 7453
socket 7452
argument 7451
r3 7446
rest 7428
route 7428
auth 7384
reader 7350
mock 7336
view 7335
operator 7275
container 7274
api_key 7259
found 7221
network_watcher_name 7204
diff 7189
rhs 7184
flag 7165
reflection 7155
stderr 7149
page_size 7097
section 7097
signature 7072
site 7068
category 7053
s2 7051
search 7007
z 6996
branch 6974
s1 6957
const 6952
_args 6925
runner 6915
entries 6908
player 6835
store 6833
re 6818
top 6817
defaults 6757
bytes 6755
t1 6736
directory 6730
events 6727
last 6713
zone 6711
api_name 6691
it 6688
operands 6623
package 6612
page_token 6561
extension 6548
language 6532
tree 6523
cache 6506
cookie 6490
locals 6479
attachment 6399
duration 6398
original_name 6387
lang 6379
type_name 6370
query_string_params 6354
children 6330
variable 6329
direction 6276
s0 6228
field_name 6204
script 6187
end_t 6146
foo 6125
stack 6109
start_time 6105
request_params_header 6099
account_id 6080
operation_signing_strategy 6079
ast 6050
api_spec 6022
regexp 6005
secret 5943
force 5932
uuid 5932
mail 5923
expectation 5921
t2 5911
project_id 5905
component 5888
chain 5872
details 5853
cell 5846
plugin 5846
transcoder 5844
adapter 5840
lib 5807
seconds 5800
original 5797
acc 5784
month 5782
r4 5780
addr 5740
dirname 5735
call_metadata 5718
regex 5697
html_options 5693
expression 5679
transformed_hash 5679
new_value 5669
circuit_name 5668
serialized 5644
statement 5629
mapping 5606
groups 5600
engine 5573
test_result 5557
ptr 5554
frame 5545
formatter 5542
day 5525
member 5520
head 5514
worker 5511
task_name 5502
term 5496
credit_card 5481
_options 5479
severity 5465
uid 5454
suffix 5453
hsh 5451
feature 5421
objects 5418
expand 5413
depth 5410
begin_t 5403
provider 5402
vm 5375
creditcard 5371
profile 5362
listener 5322
folder 5319
sid 5313
dirs 5309
device 5304
img 5284
report 5233
loc 5227
interval 5200
answer 5190
cfg 5186
fmt 5166
stats 5135
request_id 5127
packet 5116
dep 5084
server_id 5063
replacement 5055
thread 5047
r5 5041
product 5027
tag_name 5024
resource_name 4976
stub 4964
person 4936
keyword 4934
pat 4933
unit 4870
handle 4831
backtrace 4824
reference 4824
app_id 4815
commands 4809
transaction 4799
include_private 4777
digest 4765
access_token 4749
hook 4740
author 4736
attribute_name 4715
ts 4710
vars 4702
stat 4678
base_url 4660
rs 4659
verbose 4633
resources 4617
local_header_accept 4602
local_header_accept_result 4602
local_header_content_type 4602
redis 4588
virtual_network_gateway_name 4582
rules 4570
dst 4566
prop 4565
md 4556
point 4545
separator 4524
lhs 4512
collector 4499
lparen_t 4478
object_name 4478
rparen_t 4478
hostname 4466
new 4461
peering_name 4453
basename 4436
generator 4421
_model 4404
seqid 4394
group_id 4382
yaml 4359
iprot 4345
oprot 4341
asset 4335
href 4330
txt 4318
cls 4312
actions 4305
imports 4275
country 4260
thing 4243
all 4240
instance_id 4222
classes 4211
virtual_network_name 4197
metric 4193
load_balancer_name 4185
words 4184
currency 4181
before 4171
protocol 4169
new_name 4164
filepath 4150
repository 4143
expected_filename 4131
subclass 4119
descriptor_data 4109
stmt 4103
ents 4098
import_file 4093
seq 4085
counter 4076
delta 4072
http_method 4070
r6 4026
sock 4022
object_type 4011
progname 4010
variables 4008
st 4002
parse_node 3998
sig 3983
graph 3967
props 3948
card 3943
locator 3943
bucket_name 3937
_1 3933
p1 3925
csv 3891
links 3884
fragment 3881
expectations 3878
fl 3878
call 3871
database 3871
targets 3855
failure 3854
prompt 3851
clazz 3847
check 3844
group_name 3834
feed 3830
ds 3828
o1 3825
segment 3818
visitor 3809
period 3805
what 3803
moid 3786
users 3770
strategy 3751
incoming 3750
error_message 3742
config_file 3726
reporter 3725
sub 3725
pointer 3717
commit 3712
sources 3710
reply 3708
parent_id 3696
_name 3692
enum 3692
api_version 3642
remote 3628
app_name 3627
p2 3623
test_case 3618
agent 3614
method_call 3613
layout 3602
batch 3598
local 3593
after 3592
mocks 3565
policy 3543
const_name 3542
pt 3533
struct 3529
pairs 3518
edge 3509
line_number 3507
parent_rpcs 3498
process 3496
v1 3490
end_date 3487
origin 3479
database_name 3476
else_t 3472
required 3466
pass 3465
labels 3455
qname 3451
_tmp 3439
func 3437
scheme 3436
loader 3435
temp 3423
driver 3419
cb 3400
sheet 3398
patterns 3397
cursor 3379
valid 3377
predicate 3362
cols 3361
identity 3360
stdin 3356
manager 3351
score 3350
second 3348
book 3347
customer_id 3346
suite 3339
base_path 3337
rv 3334
scenario 3331
question 3329
constant 3327
gem 3323
menu 3317
factory 3313
callbacks 3307
deps 3300
start_date 3297
comments 3292
full_path 3291
return_value 3283
binds 3275
arg1 3272
o2 3266
payment 3262
binding 3256
sep 3250
processor 3246
network 3242
slot 3233
subscription 3212
v2 3205
sha 3190
note 3188
cert 3181
span 3181
fileName 3180
datetime 3175
selection 3173
extra 3149
pack 3149
end_time 3136
gateway_name 3128
rec 3126
customer 3125
ancestor 3122
summary 3122
story 3117
_save 3113
class_id 3107
assoc 3106
fd 3106
org 3106
dependency 3101
ok 3093
threads 3093
parameter 3090
function 3079
sender 3077
query_string 3072
_value 3071
storage 3066
routes 3065
i2 3060
vals 3056
chars 3054
c2 3053
issue 3044
act 3037
space 3033
slug 3032
window 3032
priority 3031
allowed_values 3027
c1 3020
expect 3015
jid 3011
profile_id 3009
r7 3003
old_value 2999
setting 2989
network_interface_name 2982
ele 2974
as 2973
rc 2972
session_id 2971
pkg 2967
specs 2967
module_name 2965
called 2964
gemfile 2961
lineno 2950
changes 2946
kparams 2937
charset 2929
skip 2926
os 2925
sequence 2921
byte 2920
image_id 2912
parent_config 2912
manifest 2904
login 2903
gem_name 2877
server_name 2872
bool 2871
i1 2861
seed 2855
browser 2851
pre 2851
inputs 2847
times 2843
scale 2836
mid 2829
object_type_validator 2826
pk 2825
class_id_validator 2815
ttl 2815
s3 2814
versions 2799
modification 2797
user_name 2796
processed_source 2793
candidate 2789
mask 2778
retval 2774
debug 2773
cond 2764
stop 2762
fp 2761
posts 2759
with 2755
allowed 2752
dt 2751
job_id 2748
servers 2748
a1 2745
model_name 2739
major 2736
max_results 2735
extensions 2727
bin 2718
tempfile 2713
double 2711
disk 2704
delay 2703
this 2698
ivar 2691
per_page 2682
css 2681
syms 2675
application 2667
asm 2665
criteria 2665
minor 2661
docs 2654
key_name 2652
tail 2645
treasure 2644
metrics 2641
scanner 2638
order_by 2637
dependencies 2636
interface 2631
roles 2630
sort 2630
response_body 2624
connection_name 2614
_k 2609
change 2605
tuple 2600
hosts 2599
order_id 2599
game 2594
network_security_group_name 2593
serializer 2591
orig 2579
rate 2576
ps 2572
route_table_name 2571
contact 2569
transition 2567
tk 2555
sec 2554
points 2550
observer 2545
fixture 2542
tok 2540
detail 2536
revision 2534
iter 2528
organization 2528
retries 2521
widget 2521
cluster 2516
recipient 2516
sample 2508
blob 2505
components 2505
coder 2503
event_name 2503
space_id 2503
var_name 2501
members 2498
validation 2495
queue_name 2494
cop 2492
mime_type 2492
at 2487
locations 2482
previous 2482
instances 2474
identification 2457
iv 2455
model_class 2449
backend 2447
weight 2447
encoder 2440
api_path 2437
selected 2436
rb 2435
button 2432
_block 2429
pdf 2425
xpath 2425
units 2421
signal 2420
_key 2419
project_name 2419
steps 2412
relative_path 2401
ws 2401
enc 2400
int 2399
cookies 2398
pages 2396
article 2395
box 2394
cc 2394
structure 2393
cs 2388
expires 2385
pr 2385
urls 2384
history 2381
build 2378
trace 2378
exc 2376
npc 2373
virtual_network_gateway_connection_name 2370
actor 2367
cache_key 2364
t3 2360
packages 2359
application_gateway_name 2356
arg0 2355
registry 2355
aliases 2341
precision 2338
deployment_name 2332
r8 2328
images 2327
action_name 2324
markup 2314
where 2301
cipher 2292
modules 2287
plan 2287
price 2286
volume 2282
bar 2278
segments 2278
keywords 2276
trigger 2275
tests 2274
arg2 2272
tasks 2271
default_value 2266
domain_name 2259
cl 2258
resource_id 2255
renderer 2252
cluster_name 2247
copy 2247
reg 2244
dataset 2240
queue_url 2240
operation_result 2239
request_options 2232
ct 2225
board 2223
index_name 2223
permission 2221
waiter_opts 2215
enabled 2214
strings 2209
wait_for_states 2203
delimiter 2202
result_to_return 2202
base_operation_opts 2201
lowered_wait_for_states 2201
waiter_result 2201
salt 2199
base_dir 2198
models 2197
work 2196
hour 2193
shell 2193
other_hash 2190
cli 2189
consumer 2185
padding 2183
vm_scale_set_name 2179
variant 2178
tmpfile 2172
template_name 2171
else_ 2170
iq 2169
partial 2167
transaction_id 2159
installer 2158
site_id 2153
tr 2152
klass_name 2137
finish 2133
city 2132
b2 2124
payment_method 2120
a2 2117
fs 2114
route_filter_name 2114
inner 2108
encoded 2107
package_name 2101
ardir_root 2099
threshold 2092
user_agent 2089
if_match 2088
rescue_body 2085
ruby 2085
association_name 2074
indices 2073
company 2071
x1 2070
converter 2067
one 2067
ss 2064
features 2063
on 2055
tx 2055
prev 2051
associations 2047
existing 2047
default_options 2044
font 2043
quantity 2040
includes 2032
responses 2031
ver 2030
overrides 2028
indexes 2027
examples 2024
warning 2024
others 2023
param_name 2020
parampassword 2015
glob 2014
tables 2014
raw_response 2012
wait_for_resource_id 2011
escape 2010
sign 2007
attr_names 2006
js 2006
photo 2002
program 2002
name_t 2000
colors 1996
gateway 1996
pats 1994
oid 1991
pipeline 1987
services 1983
node_name 1981
definitions 1980
message_id 1980
r9 1979
sc 1979
example_group 1978
ar 1974
save 1973
marker 1971
caption 1969
pager 1966
states 1961
db_name 1959
superclass 1958
decoded 1957
pathname 1953
icon 1950
collection_name 1948
cross_connection_name 1944
matched 1942
building_type 1934
json_response 1934
att 1933
middleware 1933
_save1 1932
lock 1929
ruby_value 1929
sel 1926
test_name 1925
vm_name 1925
rbconfig 1924
version_id 1924
choice 1916
binary 1912
subscriber 1911
tries 1910
full_name 1909
_opts 1906
paramstorage 1905
layer 1904
jobs 1898
snapshot 1896
callable 1895
send_node 1894
pin 1893
assignment 1891
namespaces 1891
offenses 1891
m2 1889
days 1887
x2 1887
container_name 1886
private_key 1886
virtual_hub_name 1882
source_file 1880
wait 1877
firm 1876
me 1876
tt 1876
stage 1870
end_pos 1869
i3 1869
patch 1865
lat 1863
volume_id 1861
scopes 1859
helper_path 1858
ticket 1855
constraint 1852
track 1851
mime 1850
realm 1850
distance 1847
candidates 1844
paramname 1843
mtime 1838
formatted 1837
product_id 1836
vault_base_url 1834
page_number 1832
team 1827
rd 1826
anchor 1825
minutes 1823
sexp 1822
gen 1818
rep 1818
checksum 1817
update 1817
library 1815
_v 1812
climate_zone 1812
erb 1810
solution 1807
template_path 1801
con 1796
ev 1796
dn 1791
comp 1788
resource_type 1783
paramfolder 1781
fh 1774
cur 1773
boolean 1772
limits 1768
output_path 1763
market_pair 1762
klasses 1761
output_file 1758
m1 1757
ssh 1755
terms 1751
by 1750
visibility 1749
request_body 1745
ip_address 1742
symbols 1741
alpha 1738
transport 1738
y1 1736
choices 1735
subscription_id 1733
activity 1732
pp 1731
run 1729
column_names 1726
hex 1726
default_config 1723
ln 1723
task_id 1722
select 1721
global_options 1720
_notification 1716
service_id 1716
new_attributes 1715
classname 1714
executor 1711
workspace_name 1709
added 1706
character 1706
_params 1705
record_id 1703
handlers 1699
control 1698
match_data 1698
usage 1698
numbers 1696
objs 1696
updated 1696
heading 1691
parent_name 1691
phone 1688
repo_name 1687
slice 1686
config_path 1684
operations 1684
request_params 1680
extras 1679
auth_token 1677
room 1672
d1 1671
seen 1670
device_path 1669
cat 1668
elapsed 1668
progress 1667
new_content 1666
lookup 1663
release 1663
hours 1660
colorizer 1658
th 1658
letter 1655
wrapper 1654
filenames 1653
ignore 1653
filtered 1651
public_key 1650
schedule 1650
tab 1650
peer 1645
datum 1644
nonce 1644
pipe 1642
faraday 1641
framework 1641
missing 1640
profile_name 1636
translation 1635
tmpdir 1632
node_id 1631
_node 1629
periods 1627
gid 1620
addresses 1619
arity 1618
sp 1618
_context 1614
bits 1614
short 1613
canvas 1612
es 1607
done 1601
bot 1600
configs 1597
zip 1597
block_args 1595
exit_code 1593
ident 1592
win 1589
background 1588
json_object 1585
rank 1585
sub_type 1585
additional_properties 1584
zone_id 1582
hit 1581
is 1581
instanceid 1575
migration 1573
recipe 1573
api_id 1572
sg 1572
application_id 1570
new_hash 1570
new_path 1570
vs 1570
rev 1566
dc 1565
helper 1565
vector 1564
compiler 1562
categories 1561
te 1559
lexer 1558
empty 1552
old_name 1552
algorithm 1551
evt 1551
spaces 1551
bt 1547
_request 1546
date_time 1546
update_mask 1545
help 1543
ta 1541
namespace_name 1540
xml_element 1539
invoice 1538
rule_name 1538
clause 1536
styles 1534
pname 1533
exclude 1531
plural 1523
ranges 1523
resolver 1522
line_no 1520
cp 1519
delim 1519
tc 1518
d2 1517
directive 1517
command_name 1511
ops 1510
dsl 1509
last_name 1509
item_id 1508
y2 1508
shape 1507
self_p 1503
zf 1502
boom 1498
gems 1496
piece 1491
ssl 1491
chunks 1490
singular 1485
foreign_key 1483
ans 1481
easy 1481
which 1476
warnings 1475
switch 1474
codes 1473
runtime 1470
target_name 1470
div 1468
pwd 1468
fault 1467
acl 1464
join 1463
constantValues 1462
snippet 1461
ix 1459
r10 1459
long 1458
mgr 1458
raw_data 1457
master 1456
yielded 1456
admin 1454
totalcount 1452
except 1447
secret_key 1446
pool_name 1441
variable_name 1441
age 1440
campaign_id 1440
dev 1440
perm 1440
first_name 1439
job_name 1439
rr 1439
removed 1438
ii 1436
cells 1434
expected_result 1434
parents 1428
e2 1427
match_len 1426
soap 1425
sql_type 1425
caller 1421
mapper 1421
ms 1421
nick 1420
t0 1418
templates 1418
two 1417
channels 1414
rt 1414
permissions 1413
partition 1412
dummy 1411
mac 1410
topics 1408
url_tpl_params 1407
replace 1406
tp 1406
property_name 1405
e1 1402
camel_cased_word 1400
queries 1399
dict 1398
df 1397
li 1397
subnet_name 1397
fallback 1396
operand 1394
statements 1394
mark 1390
expected_output 1389
base_name 1388
paramslide_index 1388
recv 1384
cmds 1382
boundary 1379
init 1379
tf 1378
finder 1377
strict 1376
role_name 1374
begin_pos 1372
created 1372
modifier 1370
optparse 1368
primary_key 1366
markdown 1365
policy_name 1365
macro 1364
merged 1364
access 1361
offense 1361
read 1360
else_body 1359
exceptions 1359
formats 1358
only 1358
source_path 1358
accessor 1356
angle 1354
blocks 1352
statuses 1352
cnt 1349
transitions 1349
course_id 1348
gz 1348
health 1346
new_node 1346
pdef 1343
modified 1341
failed 1339
subcommand 1338
radius 1337
first_line 1335
local_path 1334
packet_capture_name 1334
request_hash 1333
documents 1329
atts 1328
requirements 1327
file_id 1326
maker 1326
active 1325
input_file 1325
worksheet 1324
mappings 1323
constraints 1322
bind 1321
phrase 1319
route_name 1319
type_validator 1319
korona_account_id 1318
department 1317
created_at 1314
without 1314
object_id 1313
timezone 1313
setter 1311
template_file 1310
json_hash 1309
trans 1308
b1 1307
full_message 1307
_id 1305
libs 1305
query_options 1305
evaluator 1304
updates 1304
offsets 1303
theme 1303
kv 1298
quote 1296
enable_self_signed_jwt 1295
counts 1294
new_key 1294
service_endpoint_policy_name 1294
discriminator_value 1293
delegate 1292
task_args 1291
xs 1290
curl 1288
timer 1288
connection_monitor_name 1286
optional 1286
matrix 1285
add 1283
prefixes 1283
replacements 1281
expected_value 1280
apiError_Type 1278
fieldPath 1278
req_hash 1278
use_util 1276
handler_instance 1275
exchange 1274
f2 1274
projects 1274
attribute_names 1273
element_name 1273
place 1272
page_name 1270
notifier 1269
area 1268
attrib 1266
i4 1262
percent 1262
field_type 1261
method_id 1261
sz 1260
output_dir 1258
virtual_wanname 1258
zones 1256
td 1255
world 1254
callstack 1253
notes 1250
loaded 1248
pc 1248
etag 1247
directories 1246
elt 1246
how 1245
sections 1244
side 1244
dump 1243
expires_in 1243
runtime_options 1241
core 1239
style_name 1239
got 1238
capture 1237
entities 1237
error_code 1237
exit_status 1237
indentation 1235
relationship 1234
artist 1232
h2 1232
metric_name 1232
expiry 1231
target_path 1231
cid 1229
invocation 1229
_ctx 1228
build_id 1226
svc 1226
wsdl 1226
ali 1224
given 1224
chart 1222
branch_name 1220
ben 1219
ruby_values 1218
branches 1215
initial 1215
country_code 1213
_save2 1210
dx 1208
rss 1208
cname 1206
batch_size 1204
event_id 1203
outfile 1203
utc 1203
notice 1201
client_secret 1200
param_def 1200
stubs 1197
dates 1195
latitude 1195
method_names 1194
mem 1193
parsed_json 1193
msgs 1192
rubypath 1190
sentence 1190
requests 1188
longitude 1187
runtime_args 1186
teeny 1186
experiment 1185
max_length 1185
alt 1183
cm 1183
tracker 1182
cause 1181
dimensions 1181
root_path 1180
ind 1178
requirement 1178
script_name 1178
diffs 1177
srcroot 1177
yielder 1177
prevdir 1176
arel 1174
pres 1173
newpath_p 1172
objroot 1172
realdest 1172
siteruby 1172
failures 1171
tenant_id 1170
arch 1169
workbook 1169
proto 1168
qs 1168
file_content 1167
guid 1167
md5 1164
archive 1162
implementation 1162
txn 1161
commits 1159
rhs_dom 1159
_env 1158
phone_number 1158
sorted 1158
code_object 1157
logs 1157
recursive 1154
dynamicType 1152
printer 1152
system 1152
dynamicProperty 1151
list_id 1151
device_id 1150
today 1150
ci 1149
dimension 1149
contentType 1148
hooks 1148
rx 1148
soapaction 1147
else_branch 1145
makeprog 1145
validate 1144
coords 1143
node_hash 1143
router 1143
start_room 1141
current_user 1140
r11 1139
alias_name 1138
future 1137
data_source 1135
event_type 1135
literal 1133
log_file 1133
reload 1132
apps 1131
obj_class 1131
attempts 1129
calls 1129
cr 1129
mutex 1128
_response 1127
integer 1126
hashes 1124
net 1123
plugins 1119
sha1 1118
di 1117
invalid 1117
tm 1117
bundle 1116
ui 1116
home 1114
expressions 1113
current_value 1110
parameterize 1110
rsp 1109
remote_path 1108
s4 1108
video 1107
ire 1106
exists 1105
appname 1104
contract 1104
method_sym 1104
remaining 1104
digits 1103
dy 1103
h1 1102
porcelain 1102
chr 1101
orders 1101
plumbing 1100
public_ip_address_name 1100
entity_id 1098
david 1097
log_level 1097
ran 1097
subnet 1097
global 1096
pe 1095
authors 1094
local_network_gateway_name 1094
assets 1093
_header_accept 1092
_header_content_type 1092
emails 1090
obj2 1089
red 1088
rect 1087
presenter 1085
row_index 1084
plugin_name 1083
hits 1082
workspace 1082
certificate 1080
cf 1079
null 1079
syntax_host 1079
device_name 1078
role_id 1075
tweet 1075
https 1074
passed 1073
remainder 1073
request_data 1071
when_bodies 1071
exe 1070
hunk 1070
import 1070
method_url 1070
siterubyver 1070
siterubyverarch 1070
lifecycle_state 1069
refs 1068
exts 1067
outputs 1067
patchset 1067
seq1 1067
target_dir 1067
family 1065
grid 1065
relative 1065
resource_group 1065
git 1063
issues 1062
help_default 1061
node2 1061
override 1060
ports 1060
sequence_name 1060
media 1059
factor 1058
ancestors 1057
low 1056
cn 1055
constant_name 1055
express_route_gateway_name 1054
ai 1053
file_data 1053
ee 1052
n1 1052
buff 1048
parent_const 1047
item_name 1046
jar 1046
creds 1045
main 1045
seq2 1045
pg 1044
devices 1043
facet 1043
raw_value 1043
dir_name 1041
folder_name 1040
folders 1040
cand 1038
subdomain 1038
recipients 1036
locales 1035
oo 1035
bit 1033
child_node 1033
envelope 1032
snapshot_id 1032
changed 1031
_out 1029
_header_accept_result 1028
cont 1028
paragraph 1027
movie 1025
recorder 1023
sm 1020
cookbook 1019
node1 1019
encrypted 1017
template_id 1017
translator 1017
catalog 1016
operation_id 1016
schema_name 1016
wfid 1015
multi 1014
user_data 1012
dom 1010
target_url 1009
display 1007
include_all 1006
tbl 1006
descriptor 1005
ratio 1005
album 1004
error_msg 1004
full 1003
load_path 1003
racc_reduce_table 1003
racc_action_check 1002
racc_action_default 1002
racc_action_pointer 1002
racc_action_table 1002
racc_goto_check 1002
racc_goto_default 1002
racc_goto_pointer 1002
racc_goto_table 1002
racc_nt_base 1002
racc_reduce_n 1002
racc_shift_n 1002
racc_token_table 1002
racc_use_result_var 1002
downcase 1001
@ko1
Copy link
Author

ko1 commented Jun 27, 2024

require_relative 'finder'

class LVarFinder < Finder
  def rec node
    if node.respond_to? :locals
      node.locals.each{|lv|
        case lv
        when Symbol
          inc lv
        when Prism::BlockLocalVariableNode
          inc lv.name
        else
          pp [node.type, lv.type, node.locals].inspect
          raise
        end
      }
    end

    node.child_nodes.compact.each{|n|
      rec n
    }
  end

  def self.print_result
    @@result.sort_by{|lv, v| [-v, lv]}.each{|lv, v|
      puts "#{lv}\t#{v}"
    }
  end
end

Finder.run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment