| name | explain-diff-html |
|---|---|
| description | Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output. |
Please make me a rich, interactive explanation of the specified code change.
It should have these sections:
| --- ext/bigdecimal/bigdecimal.c.orig 2024-09-25 16:24:50 | |
| +++ ext/bigdecimal/bigdecimal.c 2024-09-25 16:25:15 | |
| @@ -65,7 +65,7 @@ | |
| static ID id_half; | |
| /* MACRO's to guard objects from GC by keeping them in stack */ | |
| -#define ENTER(n) volatile VALUE RB_UNUSED_VAR(vStack[n]);int iStack=0 | |
| +#define ENTER(n) volatile VALUE vStack[n];int iStack=0 | |
| #define PUSH(x) (vStack[iStack++] = (VALUE)(x)) | |
| #define SAVE(p) PUSH((p)->obj) |
| class BaseClient | |
| class APINotFound < StandardError; end | |
| attr_reader :auth_strategy | |
| def initialize(auth_strategy: :headers, headers: {}) | |
| @auth_strategy = auth_strategy | |
| @headers = headers | |
| end |
| def search | |
| @pagy, @bookmarks = if params[:search].present? | |
| pagy(@bookmarks.search(params[:search]), params: ->(params) { params.merge!({search: params[:search]}) }) | |
| else | |
| pagy(@bookmarks) | |
| end | |
| end |
| function reportError(error, message) { | |
| message = message || ''; | |
| console.error( | |
| 'ERROR: ' + message + ' [' + error.toString() + ']\n' + | |
| '\nName:\t\t' + (error.name || '-') + | |
| '\nMessage:\t' + (error.message || '-') + | |
| '\nFile:\t\t\t' + (error.fileName || '-') + | |
| '\nSource:\t\t' + ((error.toSource && error.toSource()) || '-') + | |
| '\nLine #:\t\t' + (error.lineNumber || '-') + | |
| '\nColumn #:\t' + (error.columnNumber || '-') + |