conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "FIX control => loop in template\n" }, { "from": "human", "value": "<form $FormAttributes>\n\t$dataFieldByName(TargetPage)\n \t<% if Actions %>\n <% control Actions %>$Field<% end_control %>\n \t<% end_if %>\n</form>" }, { "from": "gpt", "value": "...
scheme
chosen
[ { "from": "system", "value": "elofgren: Apply r37456 to Statistics section - Removed scrollbar on sitetree \n(merged from branches/gsoc)\n\n\ngit-svn-id: 61ad833bee3a753d148e0d349fad2a795836b318@41881 467b73ca-7a2a-4603-9d3b-597d59a354a9\n" }, { "from": "human", "value": "<h2>Report Types</h2>\n...
scheme
chosen
[ { "from": "system", "value": "Increase click-size of multi-selection button\n" }, { "from": "human", "value": "<div class=\"cms-content-batchactions\">\n\t<div class=\"view-mode-batchactions-wrapper\">\n\t\t<input id=\"view-mode-batchactions\" name=\"view-mode-batchactions\" type=\"checkbox\" />...
scheme
chosen
[ { "from": "system", "value": "Use string-copy to avoid risk of unintended inlining.\n\n\ngit-svn-id: 169764d5f12c41a1cff66b81d896619f3ce5473d@7118 5e0a886f-7f45-49c5-bc19-40643649e37f\n" }, { "from": "human", "value": ";; Test run-time reflection.\n;; Testcase from Bill Robinson <airbaggins@gmai...
scheme
chosen
[ { "from": "system", "value": "Remove useless TV in BindTVUTest\n" }, { "from": "human", "value": ";; Definitions\n\n(define (sp x)\n\"\n Return (stv 0.55 0.55) and store it into its own call, that is\n\n Evaluation (stv 0.55 0.55)\n GroundedPredicate \\\"scm:sp\\\"\n x\n\"\n (let* ((tv ...
scheme
chosen
[ { "from": "system", "value": "Fix \"hidden links\" in Document listing\n" }, { "from": "human", "value": "<div class=\"documents-holder\">\n <div class=\"container\">\n <div class=\"row\">\n\n <% loop $ArticleCategories %>\n\n \t<div class=\"col-sm-6 document-category...
scheme
chosen
[ { "from": "system", "value": "Allow this program to compile\n" }, { "from": "human", "value": ";;;\n;;; Justin Ethier\n;;; husk scheme\n;;;\n;;; The game of life example from r7rs. \n;;; Main program\n;;;\n;;; To execute from the husk directory:\n;;;\n;;; > cd examples/game-of-life\n;;; > husk...
scheme
chosen
[ { "from": "human", "value": "Add the new file, too.\n" }, { "from": "gpt", "value": ";\n; A more accurate interrogative detector, based on LG link types.\n;\n(define interrogative-LG\n (BindLink\n (VariableList\n (TypedVariableLink\n (VariableNode \"$interp\")...
scheme
chosen
[ { "from": "system", "value": "BUGFIX: Check the drag and drop radio by default.\n\nThe default state of the tree is drag and drop mode.\n" }, { "from": "human", "value": "<div class=\"cms-tree-view-modes\">\n\t<span><% _t(\"TreeTools.DisplayLabel\",\"Display:\") %></span>\n\t<% if CanOrganiseSit...
scheme
chosen
[ { "from": "system", "value": "Make sure we don't include the same libraries twice. This means our library structures can form a DAG.\n" }, { "from": "human", "value": "(library\n (harlan front expand-include)\n (export expand-include)\n (import\n (except (chezscheme) gensym)\n (only (el...
scheme
chosen
[ { "from": "system", "value": "Test deterministic type inference using run*\n" }, { "from": "human", "value": "(load \"mk/mk-vicare.scm\")\n(load \"mk/mk.scm\")\n(load \"mk/test-check.scm\")\n(load \"interp-hm.scm\")\n\n(test 'lambda-1\n (run 1 (type)\n (:o '((lambda (id) id) (lambda (x) x)) ...
scheme
chosen
[ { "from": "human", "value": "ADD - View file for client subscriptions\n" }, { "from": "gpt", "value": "\t\t\t<% require themedCSS(page-projects) %>\n\t\t\t\n\t\t\t<div id=\"gallery\">\n\t\t\t\t<div class=\"holder\">\n\t\t\t\t\t<div class=\"frame\">\n\t\t\t\t\t\t<h1>\n\t\t\t\t\t\tSubscriptions\n\...
scheme
chosen
[ { "from": "system", "value": "FIX Upgrade button to use bootstrap classes\n" }, { "from": "human", "value": "<button href=\"$Link\" class=\"ss-gridfield-add-new-inline ss-ui-action-constructive ss-ui-button\" data-icon=\"add\">\n\t$Title\n</button>\n" }, { "from": "gpt", "value": "<b...
scheme
chosen
[ { "from": "system", "value": "Fix X11 errors on switch.\n" }, { "from": "human", "value": ";; Copyright (c) 2013 The Chromium OS Authors. All rights reserved.\n;; Use of this source code is governed by a BSD-style license that can be\n;; found in the LICENSE file.\n\n;; Run xbindkeys -dg for som...
scheme
chosen
[ { "from": "system", "value": "Collect/Utils: Add Filter and Some? Utilities\n" }, { "from": "human", "value": ";;; Utility functions\n;;; This are not specified in R5RS\n\n\n\n;; Check if the list is empty\n;;\n;; @param lst - the list to check\n;;\n;; @return boolean\n(define (empty? lst)\n (i...
scheme
chosen
[ { "from": "system", "value": "Increase inlining-limit within the gambit runtime library to 300 from 134.\n" }, { "from": "human", "value": ";;;============================================================================\n\n;;; File: \"header.scm\", Time-stamp: <2007-11-20 11:27:56 feeley>\n\n;;;...
scheme
chosen
[ { "from": "system", "value": "Fix crazy guile module bug.\n" }, { "from": "human", "value": "\n(define-module (opencog nlp))\n\n(use-modules (opencog) (opencog atom-types))\n\n; User-modifiable config paramters.\n(define-public relex-server-host \"127.0.0.1\")\n(define-public relex-server-port 4...
scheme
chosen
[ { "from": "system", "value": "Add stack based vm's benchmark (revised)\n" }, { "from": "human", "value": "(define expr\n '(define fib\n (lambda (n)\n (if (= 0 n)\n 0\n (if (= 1 n)\n 1\n (+ (fib (- n 1)) (fib (- n 2))))))))\n\n(eval-vm expr)\n\n(print (eval...
scheme
chosen
[ { "from": "human", "value": "Add basic vm setting for guix\n" }, { "from": "gpt", "value": ";; This is an operating system configuration generated\n;; by the graphical installer.\n\n(use-modules (gnu))\n(use-modules (nongnu packages linux)\n (nongnu system linux-initrd))\n(use-module...
scheme
chosen
[ { "from": "system", "value": "FIX: Use options instead of lots of parameters to render a map\n" }, { "from": "human", "value": "/* mapping of google_map_N to an array of markers */\n<% if DownloadJS %>\nvar infoWindows = [];\nvar gmarkers = [];\nvar mapLayers = [];\nvar mapLines = [];\n<% end_if...
scheme
chosen
[ { "from": "system", "value": "ENHANCEMENT: Remove min/max bounds from register map call\n" }, { "from": "human", "value": "/* mapping of google_map_N to an array of markers */\n<% if DownloadJS %>\nvar infoWindows = [];\nvar gmarkers = [];\nvar mapLayers = [];\nvar mapLines = [];\n<% end_if %>\n...
scheme
chosen
[ { "from": "system", "value": "Add python-cryptography to inputs of pyld-signatures library\n" }, { "from": "human", "value": "(use-modules (ice-9 match)\n (srfi srfi-1)\n (guix gexp)\n (guix packages)\n (guix licenses)\n (guix download)...
scheme
chosen
[ { "from": "human", "value": "Add support for bootstrap breadcrumbs.\n" }, { "from": "gpt", "value": "\n<% if $Pages %>\n<ol class=\"breadcrumb\">\n\t<% loop $Pages %>\n\t<% if $Last %>\n\t<li class=\"active\">$MenuTitle</li>\n\t<% else %>\n\t<li class=\"link\"><a href=\"$Link\">$MenuTitle</a></l...
scheme
chosen
[ { "from": "system", "value": "Update cms-sitename__title to include CMSVersion\n\nFirst of all, I love your work! I'm using your theme as a replacement for CMS Grouped Menus to reduce the amount of \"clutter\" in my ModelAdmin column and it works beautifully :)\r\n\r\nWhen a user or developer is debugging ...
scheme
chosen
[ { "from": "system", "value": "Fix up a little bit\n" }, { "from": "human", "value": "\n; For users who are not aware of readline ...\n(use-modules (ice-9 readline))\n(activate-readline)\n\n; Stuff actually needed to get the chatbot running...\n(use-modules (opencog) (opencog cogserver))\n\n(use-...
scheme
chosen
[ { "from": "system", "value": "Replace the absolute path in the DVL wrapper script with a relative one.\n" }, { "from": "human", "value": "(set! load/suppress-loading-message? #t)\n(load \"/home/manzyuk/Projects/BCL-AD/ls/dvl/load\")\n(pp (compile-to-raw-fol (read)))\n(%exit 0)" }, { "fro...
scheme
chosen
[ { "from": "system", "value": "Add support for having multiple tabs with only one having an inner sidebar\n" }, { "from": "human", "value": "<%-- Adapted from TabSet.ss (framework) --%>\n<div $getAttributesHTML(\"class\") class=\"ss-tabset $extraClass rightsidebar-inner\">\n\t<ul>\n\t<% loop $Tab...
scheme
chosen
[ { "from": "system", "value": "Update CSS loaded in test theme\n" }, { "from": "human", "value": "<% require themedCSS(account,shop) %>\n<% include AccountNavigation %>\n<div class=\"typography\">\n\t<% if Order %>\n\t\t<% with Order %>\n\t\t\t\n\t\t\t<%-- Silvershop Bank Deposit --%>\n\t\t\t<% i...
scheme
chosen
[ { "from": "human", "value": "Add missing sld for casual hand gather extents\n" }, { "from": "gpt", "value": "<NamedLayer>\n <Name>{{info['name']}}</Name>\n <UserStyle>\n <Name>name</Name>\n <FeatureTypeStyle>\n <Rule>\n <Name>{{ _('Casual Hand Gather...
scheme
chosen
[ { "from": "system", "value": "FIX closing tag for h2\n" }, { "from": "human", "value": "<div class=\"<% if $Children || $Parent %>large-9 large-push-3<% else %>large-12<% end_if %> columns\">\n\t<article>\n\t\t<h2>$Title<h2>\n\t\t$Content\n\t\t$Form\n\t</article>\n</div>\n<% if $Children || $Par...
scheme
chosen
[ { "from": "system", "value": "FIX: Move caching to inside the template for the slider\n" }, { "from": "human", "value": "<div class=\"sliderContainer\">\n<% loop AllChildren %>\n <div class=\"imageCaptionContainer\">\n <a href=\"$Link\">\n <figure>\n <img class=\"shadowbox sliderImage\" data-int...
scheme
chosen
[ { "from": "system", "value": "FIX: Remove commented out code that was doubling the JSON output for the markers\n" }, { "from": "human", "value": "/* mapping of google_map_N to an array of markers */\n<% if DownloadJS %>\nvar infoWindows = [];\nvar gmarkers = [];\nvar mapLayers = [];\nvar mapLine...
scheme
chosen
[ { "from": "system", "value": "Revert \"added a minimal version of fmt\"\n\nThis reverts commit 42f2073f5d1080c849fca21d2f427d2c641bea23" }, { "from": "human", "value": ";;;\n;;; Extra processing functions\n;;;\n\n(define-library (led extra)\n\n ;; there are intentionally no led-specific import...
scheme
chosen
[ { "from": "system", "value": "Allow breadcrumbs to define HTML support or not.\n" }, { "from": "human", "value": "<div class=\"breadcrumbs-wrapper flexbox-area-grow\" data-pjax-fragment=\"Breadcrumbs\">\n\t<h2 id=\"page-title-heading\">\n\t\t<% loop $Breadcrumbs %>\n\t\t\t<% if $Last %>\n\t\t\t\...
scheme
chosen
[ { "from": "system", "value": "Change form in Support section\n" }, { "from": "human", "value": "<div class=\"article-holder\">\n <div class=\"container\">\n <div class=\"row\">\n <div class=\"col-sm-7\">\n <h2>$Title</h2>\n <div class=\"date\">$...
scheme
chosen
[ { "from": "system", "value": "ADD - Unread bold class for admin project list\n" }, { "from": "human", "value": "<thead>\n\t<tr>\n\t\t<% control Headings %>\n\t\t\t<th><a href=\"$SortLink\" class=\"<% if Sorted %>sorted $SortDir<% end_if %>\">$Label</a></th>\n\t\t<% end_control %>\n\t</tr>\n</the...
scheme
chosen
[ { "from": "system", "value": "Make the factorial count up, and to 10 this time instead\n" }, { "from": "human", "value": "=inc\n\"ll\"\n\"factorial\"\n\"fizzbuzz\"\n=\n\n(fun do_factorials '(n) \n (if (> n 0) \n (\n (println \"%: %\" n (factorial n))\n (do_factori...
scheme
chosen
[ { "from": "system", "value": "FIX Remove duplicate \"field\" class in FieldGroup holder template\n\nIt is added automatically by `CompositeField::extraClass` anyway.\n" }, { "from": "human", "value": "<div id=\"$HolderID\" class=\"form-group field<% if $extraClass %> $extraClass<% end_if %>\">\n...
scheme
chosen
[ { "from": "human", "value": "ADD - View file for client subscriptions\n" }, { "from": "gpt", "value": "<h2>Your Subscriptions</h2>\n<div>\n\t<a href=\"$Link(order)\"><% _t('SSP.NEWPROJECT','New project') %></a> \n\t<a href=\"$Link(profile)\"><% _t('SSP.EDITPROFILE','Edit profile') %></a> \n\t<a ...
scheme
chosen
[ { "from": "system", "value": "Fix misplacement of actions class\n" }, { "from": "human", "value": "<nav id=\"step-navigation\" class=\"step-navigation\">\n\t<ul class=\"step-buttons Actions\">\n\t\t<%--\n\t\t\tIf JavaScript is disabled multi-step forms are displayed as a single page\n\t\t\tso th...
scheme
chosen
[ { "from": "system", "value": "Include print-c when time passes is enabled.\n" }, { "from": "human", "value": "#! /usr/bin/env scheme-script\n;; -*- scheme -*-\n(import\n (chezscheme)\n (harlan compile-opts)\n (harlan driver)\n (harlan backend print-c)\n (harlan compiler)\n (util system) ;;...
scheme
chosen
[ { "from": "system", "value": "Check if variables are mutable\n" }, { "from": "human", "value": ";;; Hello world program\n(define name \"World\")\n(display (string-append \"Hello \" name \"!\" ))\n(newline)\n(display (/ 10 4))\n(newline)\n" }, { "from": "gpt", "value": ";;; Hello worl...
scheme
chosen
[ { "from": "human", "value": "Add solution for Problem001 written in Scheme\n" }, { "from": "gpt", "value": "(define (range a b)\n (if (>= a b)\n '()\n (cons a (range (+ a 1) b))))\n\n(define (filter f l)\n (cond ((null? l) '())\n ((f (car l)) (cons (car l) (filter f (cdr l))))...
scheme
chosen
[ { "from": "system", "value": "FIX \"My profile\" title in CMS is now vertical centered as other LeftAndMain screens are\n" }, { "from": "human", "value": "<div id=\"settings-controller-cms-content\" class=\"cms-content cms-tabset flexbox-area-grow fill-height $BaseCSSClasses\" data-layout-type=\...
scheme
chosen
[ { "from": "system", "value": "Allow the MobileImage to be displayed.\n" }, { "from": "human", "value": "\n<%-- Args: $Title, $Link, $DesktopImage [, $MobileImage [, $TabletImage ]] --%>\n\n<span class=\"picturefill\" data-picture=\"\" data-alt=\"$Title.ATT\" data-link=\"$Link\">\n\t<% if $Deskto...
scheme
chosen
[ { "from": "system", "value": "FIX Remove admin edit button from element holder to prevent canEdit errors\n" }, { "from": "human", "value": "<div class=\"element $SimpleClassName.LowerCase<% if $StyleVariant %> $StyleVariant<% end_if %><% if $ExtraClass %> $ExtraClass<% end_if %>\" id=\"$Anchor\"...
scheme
chosen
[ { "from": "system", "value": "Fix the person tag handling\n" }, { "from": "human", "value": ";\n; Person and gender conversion.\n;\n\n; AIML-tag person -- Convert 1st to third person, and back.\n(define-public (do-aiml-person TEXT)\n\t(define (cvt WORD)\n\t\t(define ws (cog-name WORD))\n\t\t(con...
scheme
chosen
[ { "from": "system", "value": "FIX Use double escapes backslashes in translation string\n" }, { "from": "human", "value": "<form $FormAttributes data-layout-type=\"border\">\n\n\t<div class=\"panel panel--padded panel--scrollable flexbox-area-grow cms-content-fields\">\n\t\t<% if $Message %>\n\t\...
scheme
chosen
[ { "from": "system", "value": "MINOR: Remove debug from render tweet\n" }, { "from": "human", "value": "\n<div class=\"tweet\" tweetID=\"{$TweetID}\"></div>\n\n<div class=\"tweet\" tweetID=\"972332296337420289\"></div>\n\n<h2>For twitter loader</h2>\n\n<blockquote class=\"twitter-tweet\"><a href=...
scheme
chosen
[ { "from": "system", "value": "FIX: Move JavaScript to a template that can be rendered at the end of the page\n" }, { "from": "human", "value": "<% include GoogleJavaScript %>\n<div class=\"streetviewcontainer\">\n<div id=\"$DomID\" class=\"streetview googlestreetview\"></div>\n<% if $Caption %><...
scheme
chosen
[ { "from": "system", "value": "Update injection query for new TS highlight API\n\nRefs tree-sitter/tree-sitter#526\n" }, { "from": "human", "value": "; Parse the contents of tagged template literals using\n; a language inferred from the tag.\n\n(call_expression\n (identifier) @injection.language...
scheme
chosen
[ { "from": "system", "value": "Add Description to the default list template.\n" }, { "from": "human", "value": "<% if $ListName %>\n\t<h3>$ListName</h3>\n<% end_if %>\n\n<% if $Widget.Elements %>\n\t<ul class=\"$ClassName <% if $ExtraClass %> $ExtraClass<% end_if %>\">\n\t\t<% loop $Widget.Elemen...
scheme
chosen
[ { "from": "human", "value": "rcas-web: Add draft of worker script.\n" }, { "from": "gpt", "value": "#!/gnu/store/kqq37w4xnl1q21g6vz93qq1rdb2y7ayc-guile-next-2.1.3/bin/guile \\\n-s\n!#\n\n;;; rcas-web - Web interface for RCAS\n;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>\n;;;\n;;; Th...
scheme
chosen
[ { "from": "system", "value": "Update preview classes as area broken\n" }, { "from": "human", "value": "<div class=\"cms-preview east\" data-layout-type=\"border\">\n\t<div class=\"preview-note\"><span><!-- --></span><%t CMSPageHistoryController_versions_ss.PREVIEW 'Website preview' %></div>\n\t<...
scheme
chosen
[ { "from": "system", "value": "Change to links to allow for no link & Resize images in template\n" }, { "from": "human", "value": "<div class=\"flexslider\"><ul class=\"slides\">\n\t<% loop SortedSlides %>\n\t\t<li><a href=\"<% if External %>$ExternalLink<% else %>$IntenalLink.Link<% end_if %>\">...
scheme
chosen
[ { "from": "system", "value": "Fix update asset files to be module aware\n" }, { "from": "human", "value": "<% require css(\"silverstripe-admin/client/dist/styles/browser-warning.css\") %>\n\n<div id=\"browser-warning-wrapper\" class=\"browser-warning-wrapper hide\">\n <div class=\"browser-war...
scheme
chosen
[ { "from": "system", "value": "Reset ExtraClass on ViewModeSelector include\n\nSince silverstripe/silverstripe-admin version 1.11 the include `SilverStripe\\\\Admin\\\\LeftAndMain_ViewModeSelector` uses an [ExtraClass parameter](https://github.com/silverstripe/silverstripe-admin/blob/6d1998707d7cb96e888a8305...
scheme
chosen
[ { "from": "system", "value": "Update unit test, now that python works\n" }, { "from": "human", "value": "\n(use-modules (opencog) (opencog test-runner))\n(use-modules (opencog python))\n\n(opencog-test-runner)\n(define t \"opencog-python-sniff-test\")\n\n(test-begin t)\n\n; All that we do here i...
scheme
chosen
[ { "from": "human", "value": "Add an SDE model of 1/f noise\n" }, { "from": "gpt", "value": ";; Equation (9) and (10) of:\n;; Kaulakys, B., Ruseckas, J., Gontis, V. & Alaburda, M. Nonlinear stochastic models of 1/f noise and power-law distributions. Physica A: Statistical Mechanics and its Applic...
scheme
chosen
[ { "from": "system", "value": "FIX - changed class name to remove conflict with existing class\n" }, { "from": "human", "value": "<% control Messages %>\n\t<div class=\"project_message<% if You %> you<% end_if %>\">\n\t\t<div class=\"title\"><strong>$Author.Name</strong> said on $Created.Nice</di...
scheme
chosen
[ { "from": "human", "value": "Add example of a dynamically computed constraint\n" }, { "from": "gpt", "value": "(*functional-properties* '(rdf:type))\n\n(*unique-variables* '(?user ?role))\n\n(*query-functional-properties?* #t)\n\n(*queried-properties* '())\n\n(*headers-replacements* '((\"<SESSIO...
scheme
chosen
[ { "from": "system", "value": "Move logger config at the beginning\n" }, { "from": "human", "value": ";; Like moses-pln-synergy-pm.scm but this version relies on the\n;; forward chainer.\n\n;; Load MOSES model\n(load \"moses-model.scm\")\n\n;; Load the background knowledge\n(load \"background-kno...
scheme
chosen
[ { "from": "system", "value": "Swap out .Actions class for bootstrap .btn-toolbar\n\nSo siteconfig can be saved after https://github.com/silverstripe/silverstripe-framework/commit/f4037fe31968409d6c0ea6095a82a37f10067ae2" }, { "from": "human", "value": "<form $FormAttributes data-layout-type=\"bo...
scheme
chosen
[ { "from": "system", "value": "FIX - added arrows for consistency\n" }, { "from": "human", "value": "<div class=\"order\">\n\t<h3><% _t('SSP.ORDERDETAILS','Initial Order details') %></h3>\n\t<% control SelectedOptions %>\n\t<div class=\"options\">\n\t\t<div class=\"option\">\n\t\t\t<% control Opt...
scheme
chosen
[ { "from": "system", "value": "MINOR: Use unique name for each options variable\n" }, { "from": "human", "value": "/* mapping of google_map_N to an array of markers */\n<% if DownloadJS %>\nvar infoWindows = [];\nvar gmarkers = [];\nvar mapLayers = [];\nvar mapLines = [];\n<% end_if %>\nvar optio...
scheme
chosen
[ { "from": "system", "value": "[Eclectus]\nUse PCT-PAST in generated PIR.\n\n\ngit-svn-id: 6e74a02f85675cec270f5d931b0f6998666294a3@23216 d31e2699-5ff4-0310-a27c-f18f2fbe73fe\n" }, { "from": "human", "value": "( define (compile-program x)\n (emit \".sub main :main\")\n (emit \"say ~a\" x)\n (e...
scheme
chosen
[ { "from": "system", "value": "MINOR: Use BestCrop method to select best cropping available\n" }, { "from": "human", "value": "<% include SideBar %>\n<div class=\"content-container unit size3of4 lastUnit\">\n\t<article>\n\t\t<h1>$Title</h1>\n\t\t<div class=\"content\">\n\t\t$Content\n\t\t<% loop ...
scheme
chosen
[ { "from": "system", "value": "MINOR: Remove hardwired style and move to css\n" }, { "from": "human", "value": "<% include GoogleJavaScript %>\n<div class=\"googlemapcontainer\">\n<div id=\"$DomID\" class=\"map googlemap\" style=\"background: #EEE; border: solid red 1px;height: 500px;\"><!-- map ...
scheme
chosen
[ { "from": "human", "value": "Add utilities to help configure the URE\n" }, { "from": "gpt", "value": ";\n; rule-engine-utils.scm\n;\n;;; Commentary:\n;\n; Handy utilities for working with the rule-engine. In particular to\n; configure a rule-based system (rbs).\n;\n; Utilities include:\n; -- ure...
scheme
chosen
[ { "from": "human", "value": "Add a test case for calling lambdas\n" }, { "from": "gpt", "value": ";; Copyright 2018 Google LLC\n;;\n;; Licensed under the Apache License, Version 2.0 (the License);\n;; you may not use this file except in compliance with the License.\n;; You may obtain a copy of t...
scheme
chosen
[ { "from": "system", "value": "Choose second and third, when b is lower then c\n" }, { "from": "human", "value": "(use-modules (unit-test))\n\n(define (square a) (* a a))\n(define (excercise1.1 a b c)\n (if (< b c)\n (+ (square a) (square c))\n (if (< a b)\n (+ (sq...
scheme
chosen
[ { "from": "system", "value": "Fix comment on module import\n" }, { "from": "human", "value": ";; Load SRFI-64 lightweight testing specification\n(use-modules (srfi srfi-64))\n\n;; Require bob impl\n(add-to-load-path (dirname (current-filename)))\n(use-modules (leap-year))\n\n(test-begin \"leap-y...
scheme
chosen
[ { "from": "human", "value": "Add a model of Arnold-Beltrami-Childress (ABC) flow\n" }, { "from": "gpt", "value": ";; Arnold-Beltrami-Childress (ABC) flow\n(define-model abc\n (variable t :independent)\n (variable x)\n (variable y)\n (variable z)\n (parameter A)\n (parameter B)\n (paramete...
scheme
chosen
[ { "from": "human", "value": "Add the PLN rule to be tested by derived_rule\n" }, { "from": "gpt", "value": ";; =====================================================================\n;; Implication construction rule\n;; \n;; P\n;; Q\n;; |-\n;; ImplicationLink\n;; P\n;; Q\n;;\n;; To properly...
scheme
chosen
[ { "from": "system", "value": "Implement the slide image as a background image instead of a separate <img> element.\n" }, { "from": "human", "value": "<div class=\"slick-carousel-slide\">\n\t$Image\n\t<% if $Content %>\n\t\t<div class=\"slick-carousel-slide-content\">\n\t\t\t$Content\n\t\t</div>\...
scheme
chosen
[ { "from": "system", "value": "ENHANCEMENT: Change access keys to a list and use site config for navigation key\n" }, { "from": "human", "value": "<% cached 'accessKeys', Aggregate(Page).Max(LastEdited) %>\n<div id=\"accesskeys\">\n<h3>Access Keys</h3>\n<% control PagesWithAccessKeys %>\n<a href=...
scheme
chosen
[ { "from": "system", "value": "FIX Disable change tracking on configurable paginator inputs\n\nSee https://github.com/silverstripe/silverstripe-framework/pull/8486" }, { "from": "human", "value": "<tr>\n <td class=\"grid-field__paginator bottom-all\" colspan=\"$Colspan\">\n <span class=...
scheme
chosen
[ { "from": "system", "value": "FIX - Moved styling div to remove erroneous payment option areas\n" }, { "from": "human", "value": "<% control Messages %>\n\t<div class=\"project_message<% if You %> you<% end_if %>\">\n\t\t<div class=\"author\"><strong>$Author.Name</strong> said on $Created.Nice</...
scheme
chosen
[ { "from": "system", "value": "Add arrows to next / previous.\n" }, { "from": "human", "value": "<% if NextPage || PreviousPage %>\n\t<div class=\"next-prev\">\n\t\t<% if PreviousPage %>\n\t\t\t<p class=\"prev-link\"><a href=\"$PreviousPage.Link\">$PreviousPage.Title</a></p>\n\t\t<% end_if %>\n\n...
scheme
chosen
[ { "from": "system", "value": "Simplify logout and remove bad <a>" }, { "from": "human", "value": "<div class=\"accountnav\">\n\t<div class=\"nav\">\n\t\t<h2>My Account</h2>\n\t\t<ul class=\"nav nav-list\">\n\t\t\t<li class=\"$LinkingMode\"><a href=\"$Link\"><i class=\"icon icon-list\"></i> Past ...
scheme
chosen
[ { "from": "system", "value": "FIX: Load google maps asynchronously and use callback to prime maps with provided data. This gets around the issue of timing and google map library not being found\n" }, { "from": "human", "value": "<% if DownloadJS %>\n<% if DelayLoadMapFunction %>\n<% else %>\n<%...
scheme
chosen
[ { "from": "system", "value": "FIX Remove link in footer that goes to spammy site\n" }, { "from": "human", "value": "<footer class=\"footer\" role=\"contentinfo\">\r\n\t<div class=\"inner copy\">\r\n\t\t<div class=\"left\">Simple <span class=\"arrow\">&rarr;</span> <% include Navigation %></div>\...
scheme
chosen
[ { "from": "system", "value": "Add missing keywords to highlight query\n" }, { "from": "human", "value": "; Types\n\n(type_identifier) @type\n(predefined_type) @type.builtin\n((identifier) @type\n (match? @type \"^[A-Z]\"))\n\n(type_arguments\n \"<\" @punctuation.bracket\n \">\" @punctuation.br...
scheme
chosen
[ { "from": "system", "value": "MINOR: Switch to URL Segments instead of ID\n" }, { "from": "human", "value": "<h5>$Name</h5>\n<ul>\n<li><a href=\"{$Link}current/$ID\">Current Weather</a></li>\n<li><a href=\"{$Link}shortterm/$ID\">Short Term Forecast</a></li>\n<li><a href=\"{$Link}longterm/$ID\">L...
scheme
chosen
[ { "from": "system", "value": "Remove mime type from js index\n" }, { "from": "human", "value": "<link rel=\"stylesheet\" type=\"text/css\" href=\"{$BaseHref}staticsearch/css/tipuesearch.css\">\n\n<script type=\"text/javascript\" src=\"{$BaseHref}{$ThemeDir}/js/lib/jquery.js\"></script>\n<script ...
scheme
chosen
[ { "from": "system", "value": "Tweak heading to be more to the point\n" }, { "from": "human", "value": "<div class=\"help\">\n\t<h4>Instructions to import a sspak file into your local site after downloading</h4>\n\n\t<p><strong>Note:</strong> Databases and asset snapshots are stored using the <a ...
scheme
chosen
[ { "from": "system", "value": "Revert change to inlining-limit, and we'll look at which 'define-prims' we can change to 'define's.\n" }, { "from": "human", "value": ";;;============================================================================\n\n;;; File: \"header.scm\", Time-stamp: <2007-11-2...
scheme
chosen
[ { "from": "system", "value": "Fix conditional logic for subsites dropdown\n" }, { "from": "human", "value": "<% if $CurrentMember.CanSelectSubsite %>\n<div class=\"cms-subsites\" data-pjax-fragment=\"SubsiteList\">\n\t<div class=\"field dropdown\">\n\t\t<select id=\"SubsitesSelect\">\n\t\t\t<% l...
scheme
chosen
[ { "from": "system", "value": "Fix type in commit\nNo functional change\n" }, { "from": "human", "value": "(require-extension srfi-1)\n\n;;; The scrape-list is a list of every url->video procedures.\n(define scraper-list '())\n\n;;; Allow \"plugins\" in sites/ to add procedures to the scraper-lis...
scheme
chosen
[ { "from": "system", "value": "FIX Only show user's first name in CMS header\n" }, { "from": "human", "value": "<div class=\"cms-login-status\">\n\t<% with $CurrentMember %>\n <a href=\"{$AdminURL}myprofile\" class=\"cms-login-status__profile-link\">\n <i class=\"font-icon-torso...
scheme
chosen
[ { "from": "human", "value": "Add scheme version for exercise 2.02\n" }, { "from": "gpt", "value": ";; The solution of exercise 2.2\n;; Consider the problem of representing line segments in a plane. Each\n;; segment is represented as a pair of points: a starting point and an\n;; ending point. Def...
scheme
chosen
[ { "from": "system", "value": "FIX: Remove now obsolete control directive for looping\n" }, { "from": "human", "value": "<h1>$Title</h1>\n<% control MainImage %>\n\t<% control SetWidth(400) %>\n\t<img class=\"introductoryImage\" src=\"$URL\" class=\"center\"/>\n\t<% end_control %>\n\t<% end_contr...
scheme
chosen
[ { "from": "system", "value": "FIX: Move JS requirements to inline gallery\n" }, { "from": "human", "value": "<ul id=\"galleryArea\">\n<% loop getGalleryImages %>\n<li>\n\t<% with $Image.SetRatioSize(700,700) %>\n <a href=\"$URL\"<% end_with %> title=\"$Caption.XML\" rel=\"prettyPhoto[pp_gal]\...
scheme
chosen
[ { "from": "system", "value": "Make default template compatible with silverstrap\n\nRewrote GalleryPage.ss from scratch to make it compatible with latest\n(BootStrap 3.1.1 enabled) silverstrap theme.\n" }, { "from": "human", "value": "<% require css(gallery/css/jquery.ad-gallery.css) %>\n\n<% req...
scheme
chosen
[ { "from": "system", "value": "Fix the load path; missing prefix\n" }, { "from": "human", "value": ";\n; OpenCog Rule Engine module\n;\n(define-module (opencog rule-engine))\n\n; We need this to set the LTDL_LIBRARY_PATH\n(use-modules (opencog))\n\n(load-extension \"libruleengine\" \"opencog_rule...
scheme
chosen
[ { "from": "system", "value": "FIX Only output permission fields if they're defined\n" }, { "from": "human", "value": "<form $FormAttributes >\n\t$HiddenFields\n\t<% with FieldMap %>\n\n\t<% if $Top.Options.UserTitle %>\n\t<label class=\"postform-label\" for=\"Form_PostForm_Title\">Title</label>\...
scheme
chosen
[ { "from": "system", "value": "Revert hacky python bug work-around\n" }, { "from": "human", "value": ";\n; Opencog atom-types module\n;\n(define-module (opencog atom-types))\n\n; Alternately, we could also have\n; (define-module (opencog atomtypes nlp-types))\n; (define-module (opencog atomtypes ...
scheme
chosen
[ { "from": "system", "value": "FIX: Use requirements to load the JavaScript files\n" }, { "from": "human", "value": "<% if DownloadJS %>\n<% if DelayLoadMapFunction %>\n<% else %>\n<script src=\"//maps.google.com/maps/api/js?sensor=false&amp;hl=$Lang\" type=\"text/javascript\"></script>\n<% if $U...
scheme
chosen
[ { "from": "system", "value": "Comment result of fib benchmark\n" }, { "from": "human", "value": "(eval-vm\n '(define fib\n (lambda (n)\n (if (= 0 n)\n 0\n (if (= 1 n)\n 1\n (+ (fib (- n 1)) (fib (- n 2))))))))\n\n(print (eval-vm '(fib 30)))\n(newline)\n" ...
scheme
chosen
[ { "from": "system", "value": "Remove this, as it isn't needed.\n" }, { "from": "human", "value": "#lang typed-scheme\n\n(: f3 (case-lambda (Integer * -> Integer) (Number * -> Number)))\n(define (f3 x y) (+ x y))\n\n(+ 1 'foo)\n\n(: f2 (case-lambda (Number * -> Number)))\n(define (f2 x y) (+ x y)...
scheme
chosen