IlyaGusev/rulm

View on GitHub
self_instruct/src/data_processing/postprocess_chat.py

Summary

Maintainability
A
1 hr
Test Coverage

Avoid deeply nested control flow statements.
Open

                if current_agent and current_message:
                    if current_agent != "bot":
                        is_bad_record = True
                        break
                    messages.append({
Severity: Major
Found in self_instruct/src/data_processing/postprocess_chat.py - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                    if current_agent and current_message:
                        if current_agent != "user":
                            is_bad_record = True
                            break
                        messages.append({
    Severity: Major
    Found in self_instruct/src/data_processing/postprocess_chat.py - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status