1
0

rename numContextLines to num_context_lines for consistency.

This commit is contained in:
Nathan TeBlunthuis 2025-08-01 09:28:41 -07:00
parent be70b06677
commit a533b1722a
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ static int
pywikidiff2_init(pywikidiff2Obj *self, PyObject *args, PyObject *kwds) pywikidiff2_init(pywikidiff2Obj *self, PyObject *args, PyObject *kwds)
{ {
// here's where we set non-default configuration values // here's where we set non-default configuration values
static char *kwlist[] = {"numContextLines", "moved_line_threshold", "change_threshold", "moved_paragraph_detection_cutoff", "max_word_level_diff_complexity", "max_split_size", "initial_split_threshold", "final_split_threshold", "words_cache_capacity", "diff_cache_capacity", "stats_cache_capacity", NULL}; static char *kwlist[] = {"num_context_lines", "moved_line_threshold", "change_threshold", "moved_paragraph_detection_cutoff", "max_word_level_diff_complexity", "max_split_size", "initial_split_threshold", "final_split_threshold", "words_cache_capacity", "diff_cache_capacity", "stats_cache_capacity", NULL};
if (!PyArg_ParseTupleAndKeywords(args, kwds, "|iffiiiff", kwlist, if (!PyArg_ParseTupleAndKeywords(args, kwds, "|iffiiiff", kwlist,
&self->config.numContextLines, &self->config.numContextLines,
&self->config.movedLineThreshold, &self->config.movedLineThreshold,

View File

@ -3,7 +3,7 @@ import json
num_context_lines = 100000 num_context_lines = 100000
obj = pywikidiff2.pywikidiff2() obj = pywikidiff2.pywikidiff2()
obj = pywikidiff2.pywikidiff2(numContextLines=num_context_lines, obj = pywikidiff2.pywikidiff2(num_context_lines=num_context_lines,
moved_paragraph_detection_cutoff=2000000) moved_paragraph_detection_cutoff=2000000)
# res = obj.inline_json_diff("help! \n I'm alive", "help! \n dead I am") # res = obj.inline_json_diff("help! \n I'm alive", "help! \n dead I am")
# print(res) # print(res)