Skip to content
This repository was archived by the owner on Dec 23, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions rplugin/python3/deoplete/sources/kindness.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ def gather_candidates(self, context):
# 3.5 and higher, 4.x or less,python version is required.
if (py_mj == 3 and py_mi > 4) or (py_mj < 4):

# Settings, vim-plug | neovim path is true/false folder search.
neo_f: Optional[str] = '~/.neovim/plugged/ruby-dict/autoload/source/'
neo_t = '~/.neovim/plugged/ruby-dict/autoload/source/ruby_method.txt'

# Settings, vim-plug | vim path is true/false folder search.
vim_f: Optional[str] = '~/.vim/plugged/ruby-dict/autoload/source/'
vim_t = '~/.vim/plugged/ruby-dict/autoload/source/ruby_method.txt'
Expand Down Expand Up @@ -74,25 +70,6 @@ def gather_candidates(self, context):
sorted(data_py, key=itemgetter(0))
return data_py

# Neovim Folder, Set the dictionary.
elif os.path.exists(os.path.expanduser(neo_f)):

# Get Receiver/kindness behavior.
with open(os.path.expanduser(neo_t)) as r_meth:
# pandas and dask
neo_ruby: Optional[list] = list(r_meth.readlines())
pd_ruby = pd.Series(neo_ruby)
st_r = pd_ruby.sort_index()
ddf = from_pandas(
data=st_r, npartitions=multiprocessing.cpu_count())
data_array = ddf.to_dask_array(lengths=True)
data = data_array.compute()
neo_py: Optional[list] = [s.rstrip() for s in data]

# sort and itemgetter
neo_py.sort(key=itemgetter(0))
return neo_py

# Vim Folder, Set the dictionary.
elif os.path.exists(os.path.expanduser(vim_f)):

Expand Down