Code Report Generation via Segmented Evaluation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional programming environments restrict the creation of code that includes multi-line statements like 'while' or 'for' loops within a single cell, and fail to properly evaluate code that uses separate function workspaces, limiting the ability to generate report documents that interleave code and evaluation results effectively.

Innovation Solution

A computer-implemented method and system that allows sectioning code with commands for generating a report document, enabling evaluation and data collection, even for multi-line statements, and supporting evaluation across both script and function workspaces to generate a report document that interweaves code and evaluation outputs.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If the entire code is contained within a single cell to allow multi-line statements, then multi-line statements can be included in the code, but the report document may not allow for interleaving sections of the code with data that results from the evaluation

Engineering Contradiction:
Improveability to include multi-line statementsVSAvoidinterleaving of code sections with evaluation data
Core Design Contradiction:
Adaptability or versatilityVSLoss of information

Solution Approach 1:

The patent divides the code into multiple executable sections that can be evaluated independently. Each section can contain portions of multi-line statements, and the system evaluates them sequentially while maintaining the ability to interleave code and evaluation results in the report document. This resolves the contradiction by allowing both multi-line statements and interleaved output through strategic code division.

Inventive Principle:
Principle #1Segmentation

2Ease of operation

If code is divided into discrete cells for independent evaluation, then each cell can be evaluated independently, but the user is prohibited from creating code that includes multi-line statements like while, if or for loops

Engineering Contradiction:
Improveindependent evaluation of code cellsVSAvoidability to create multi-line statements
Core Design Contradiction:
Ease of operationVSAdaptability or versatility

Solution Approach 1:

The patent segments multi-line statements into multiple executable sections that can be independently evaluated. Each section contains a portion of the overall multi-line statement, and the system reconstructs the complete logic by evaluating sections in sequence. This allows users to create multi-line statements while maintaining independent evaluability of each section.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces an intermediary evaluation system that bridges discrete code sections and multi-line statement logic. This intermediary layer manages the evaluation of segmented code portions and reconstructs the intended behavior of multi-line statements like while, if, and for loops across section boundaries.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Adaptability or versatility

If separate workspaces are provided for scripts and functions, then both scripts and functions can be supported, but the conventional modular approach may not properly evaluate code that uses a separate function workspace

Engineering Contradiction:
Improvesupport for both scripts and functionsVSAvoidproper evaluation of function workspace code
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The patent creates a universal evaluation system that can handle both script workspace and function workspace code through the same modular sectioning approach. The system identifies and evaluates executable sections regardless of whether they belong to scripts or functions, ensuring reliable evaluation across different workspace types while maintaining support for both paradigms.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS8762956B1Generating a report document from code
Publication Date: 2014.06.24 MATHWORKS INC
  • US8762956B1 patent drawing
  • US8762956B1 patent drawing
  • US8762956B1 patent drawing

AI summary

Exemplary embodiments enable the generation of a report document. Exemplary embodiments identify a section of code for evaluation and insert at least one command for generating a report document into the section of code. An evaluation of the section of code is initiated and data is collected that is related to the evaluation of the section of code when the at least one command for generating a report document is evaluated.