_id
stringlengths
64
64
repository
stringlengths
6
84
name
stringlengths
4
110
content
stringlengths
0
248k
license
null
download_url
stringlengths
89
454
language
stringclasses
7 values
comments
stringlengths
0
74.6k
code
stringlengths
0
248k
966c1238cf4b6973c9eab6a17fe3424f9fda300ecac4c9b4acb09850ea292dea
valderman/haste-compiler
WeekDate.hs
| ISO 8601 Week Date format module Data.Time.Calendar.WeekDate where import Data.Time.Calendar.OrdinalDate import Data.Time.Calendar.Days import Data.Time.Calendar.Private | convert to ISO 8601 Week Date format . First element of result is year , second week number ( 1 - 53 ) , third day of week ( 1 for Monday to...
null
https://raw.githubusercontent.com/valderman/haste-compiler/47d942521570eb4b8b6828b0aa38e1f6b9c3e8a8/libraries/time/lib/Data/Time/Calendar/WeekDate.hs
haskell
Invalid week and day values will be clipped to the correct range. Invalid week and day values will return Nothing.
| ISO 8601 Week Date format module Data.Time.Calendar.WeekDate where import Data.Time.Calendar.OrdinalDate import Data.Time.Calendar.Days import Data.Time.Calendar.Private | convert to ISO 8601 Week Date format . First element of result is year , second week number ( 1 - 53 ) , third day of week ( 1 for Monday to...
4ba0f021c673a6d21013abb39d2d9a0dbc14fa8cd72fd29cdfceb4e45d55511b
ocaml-multicore/tezos
tx_rollup_inbox_storage.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2022 Marigold < > Copyright ( c ) 2...
null
https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/src/proto_alpha/lib_protocol/tx_rollup_inbox_storage.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2022 Marigold < > Copyright ( c ) 2022 Nomadic Labs < > Copyright ( c ) 2022 Oxhead Alpha < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to w...
cde3be2ca6e9fd5f35d153f9fb8a8725e051a644c86e8a13ffdd4ee80a118066
REMath/mit_16.399
red123.ml
(* red123.ml *) open Red12 open Red23 open Red13 open Avalues1 open Avalues2 open Avalues3 open Trace (* printing *) let print (x,y,z) = (print_string "("; Avalues1.print x; print_string ","; Avalues2.print y; print_string ","; Avalues3.print z; print_string ")") let reduce' (a, b, c) =...
null
https://raw.githubusercontent.com/REMath/mit_16.399/3f395d6a9dfa1ed232d307c3c542df3dbd5b614a/project/Generic-FW-Abstract-Interpreter/red123.ml
ocaml
red123.ml printing
open Red12 open Red23 open Red13 open Avalues1 open Avalues2 open Avalues3 open Trace let print (x,y,z) = (print_string "("; Avalues1.print x; print_string ","; Avalues2.print y; print_string ","; Avalues3.print z; print_string ")") let reduce' (a, b, c) = let (a', b') = Red12.reduce (...
fff1caf013a240132398a738fe0ec64afdeb450347b9652b908d2abecb592bc6
CafeOBJ/cafeobj
set.lisp
-*- Mode : LISP ; Package : CHAOS ; ; Syntax : Common - lisp -*- ;;; Copyright ( c ) 2000 - 2017 , . All rights reserved . ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; ;;; * Redistributions of so...
null
https://raw.githubusercontent.com/CafeOBJ/cafeobj/261e3a50407f568272321378df370e5cf7492aaf/chaos/tools/set.lisp
lisp
Package : CHAOS ; ; Syntax : Common - lisp -*- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following...
Copyright ( c ) 2000 - 2017 , . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (in-package :chaos) #-:chaos-debug (declaim (optimize (speed 3) (safety 0) #-GCL (debug 0))) #+:chaos-debug (declaim (optim...
f4833857496cae8b6a2de91c8027ebb8800b9b69f11a8421dc8695f88451936d
simmsb/calamity
Upgradeable.hs
-- | Things that can be upgraded from snowflakes to their full data module Calamity.Types.Upgradeable (Upgradeable (..)) where import Calamity.Cache.Eff import Calamity.Client.Types import Calamity.HTTP as H import Calamity.Internal.SnowflakeMap qualified as SM import Calamity.Internal.Utils import Calamity.Types.Mode...
null
https://raw.githubusercontent.com/simmsb/calamity/be310255b446e87e7432673de1fbc67ef46de3ae/calamity/Calamity/Types/Upgradeable.hs
haskell
| Things that can be upgraded from snowflakes to their full data | A typeclass that represents snowflakes that can be upgraded to their complete data, either through the cache or HTTP. | Upgrade a snowflake to its complete data. If it existed in the cache then it is returned from there, otherwise we fetch from ...
module Calamity.Types.Upgradeable (Upgradeable (..)) where import Calamity.Cache.Eff import Calamity.Client.Types import Calamity.HTTP as H import Calamity.Internal.SnowflakeMap qualified as SM import Calamity.Internal.Utils import Calamity.Types.Model.Channel import Calamity.Types.Model.Guild import Calamity.Types.Mo...
21f7aab2129ef2ec1a21650f92fdfc6fd0a6838518f5876496de884bd779e00d
LaurentMazare/ocaml-tqdm
utils.mli
val format_rate : float -> string module Time : sig module Span : sig type t val format : t -> string val of_secs : float -> t val to_secs : t -> float end type t val now : unit -> t val diff : t -> t -> Span.t end
null
https://raw.githubusercontent.com/LaurentMazare/ocaml-tqdm/a69e02408007038c2cb0cbb4793f564d5725a2ec/src/utils.mli
ocaml
val format_rate : float -> string module Time : sig module Span : sig type t val format : t -> string val of_secs : float -> t val to_secs : t -> float end type t val now : unit -> t val diff : t -> t -> Span.t end
fd167ebeac08c7f029753b2bafcbe6c1cdc4a7c9c1b21ae3f4a626c2062e9677
re-ops/re-cog
scp.clj
(ns re-cog.scripts.scp "remote scp commands" (:require [pallet.stevedore :refer (script)])) (defn scp-from [user host src target recursive?] (fn [] (let [in (str user "@" host ":" src) args (if recursive? "-r" "")] (script ("/usr/bin/scp" ~args ~in ~target)))))
null
https://raw.githubusercontent.com/re-ops/re-cog/3b42946babccee65f811cb8abfb5d4e247750bf8/src/re_cog/scripts/scp.clj
clojure
(ns re-cog.scripts.scp "remote scp commands" (:require [pallet.stevedore :refer (script)])) (defn scp-from [user host src target recursive?] (fn [] (let [in (str user "@" host ":" src) args (if recursive? "-r" "")] (script ("/usr/bin/scp" ~args ~in ~target)))))
115d1e2d235139e7c60d73124eae5fe3b820c33e8e9822e6ed45c0538444b87b
bazurbat/chicken-scheme
csi.scm
csi.scm - Interpreter stub for CHICKEN ; Copyright ( c ) 2008 - 2016 , The CHICKEN Team Copyright ( c ) 2000 - 2007 , ; All rights reserved. ; ; Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following ; conditions are met: ; ; Redistributions...
null
https://raw.githubusercontent.com/bazurbat/chicken-scheme/f0c9d1fd8b68eb322e320e65ec40b0bf7d1b41dc/csi.scm
scheme
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributio...
csi.scm - Interpreter stub for CHICKEN Copyright ( c ) 2008 - 2016 , The CHICKEN Team Copyright ( c ) 2000 - 2007 , THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " AND ANY EXPRESS CONTRIBUTORS BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQ...
039f96a10b9dd4e2ae623835ef2761683118fde542c25736605a64d24078e362
ocaml-ppx/ppx
ppx_print_diff.ml
open StdLabels let patdiff_cmd ~use_color ~extra_patdiff_args = let args = List.concat [ ["-keep-whitespace"]; ["-location-style omake"]; (if use_color then [] else ["-ascii"]); extra_patdiff_args ] in String.concat ~sep:" " ("patdiff" :: args) ;; let print ?diff_command ?(extra_...
null
https://raw.githubusercontent.com/ocaml-ppx/ppx/40e5a35a4386d969effaf428078c900bd03b78ec/print-diff/ppx_print_diff.ml
ocaml
patdiff produced no output, fallback to diff -u patdiff successfully found a difference
open StdLabels let patdiff_cmd ~use_color ~extra_patdiff_args = let args = List.concat [ ["-keep-whitespace"]; ["-location-style omake"]; (if use_color then [] else ["-ascii"]); extra_patdiff_args ] in String.concat ~sep:" " ("patdiff" :: args) ;; let print ?diff_command ?(extra_...
6be186df0b16d6fc226c5785b93f9021ea82da8f59c54bb2c69537f8c284a2f8
mirage/ocaml-git
idx.mli
type bigstring = (char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t type 'uid idx type optint = Optint.t val make : bigstring -> uid_ln:int -> uid_rw:('uid -> string) -> uid_wr:(string -> 'uid) -> 'uid idx val find : 'uid idx -> 'uid -> (optint * int64) option val iter : f:(uid:'u...
null
https://raw.githubusercontent.com/mirage/ocaml-git/37c9ef41944b5b19117c34eee83ca672bb63f482/src/carton/idx.mli
ocaml
type bigstring = (char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t type 'uid idx type optint = Optint.t val make : bigstring -> uid_ln:int -> uid_rw:('uid -> string) -> uid_wr:(string -> 'uid) -> 'uid idx val find : 'uid idx -> 'uid -> (optint * int64) option val iter : f:(uid:'u...
e2c9d558ea186f87e530ce9838a8b62d9755bf9605676456e78e80bedea44070
manuel-serrano/hop
_tty_wrap.scm
;*=====================================================================*/ * serrano / prgm / project / hop / hop / nodejs/_tty_wrap.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation : ...
null
https://raw.githubusercontent.com/manuel-serrano/hop/dc2a1b5ece943f9bf2b9e4fd24e00ff718c6caf0/nodejs/_tty_wrap.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ *=====================================================================*/ *---------------------------...
* serrano / prgm / project / hop / hop / nodejs/_tty_wrap.scm * / * Author : * / * Creation : Sun Oct 19 07:19:20 2014 * / * Last change : We d Apr 28 09:35:31 2021 ( serrano ) * / * Copyr...
04d4dfa29bd69d28ecab9d29e5ac59e1880af808e621655a4608bb8be5058b81
herd/herdtools7
access.mli
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/e661e10c5436eca119b5765a45496a6b1f70c1c2/herd/access.mli
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2021 - present Institut National de Recherche en Informatique et This software is governed by the CeCILL - B license under French law and modify and/ or redistribu...
9745b642b56abf1580a95e11c2d91c51099f34786594ee0d1bc567177a84ba50
ekmett/graphs
AdjacencyMatrix.hs
# LANGUAGE CPP , TypeFamilies , FlexibleContexts # ----------------------------------------------------------------------------- -- | -- Module : Data.Graph.Adjacency.Matrix Copyright : ( C ) 2011 -- License : BSD-style (see the file LICENSE) -- Maintainer : < > -- Stability : experiment...
null
https://raw.githubusercontent.com/ekmett/graphs/dd26e6c3c49ace64fc05f53ef4e389910f852ef1/src/Data/Graph/AdjacencyMatrix.hs
haskell
--------------------------------------------------------------------------- | Module : Data.Graph.Adjacency.Matrix License : BSD-style (see the file LICENSE) Stability : experimental Portability : type families --------------------------------------------------------------------------
# LANGUAGE CPP , TypeFamilies , FlexibleContexts # Copyright : ( C ) 2011 Maintainer : < > module Data.Graph.AdjacencyMatrix ( AdjacencyMatrix(..) , AdjacencyMatrixGraph , ask ) where #if __GLASGOW_HASKELL__ < 710 import Control.Applicative #endif import Data.Ix import Data.Array.IArray impo...
ce9e985a4891dd60d2cc50fe2f19df836c93ef618f0bf5c942351d66a45693be
jesperes/aoc_erlang
aoc2016_day08.erl
-module(aoc2016_day08). -include("aoc_puzzle.hrl"). -include_lib("stdlib/include/assert.hrl"). -export([parse/1, solve/1, info/0]). -behavior(aoc_puzzle). -spec info() -> aoc_puzzle(). info() -> #aoc_puzzle{module = ?MODULE, year = 2016, day = 8, n...
null
https://raw.githubusercontent.com/jesperes/aoc_erlang/ec0786088fb9ab886ee57e17ea0149ba3e91810a/src/2016/aoc2016_day08.erl
erlang
Replace a member in a list Generate a display of the given dimensions. Replace the Nth column with the given list. Execute a single instruction. Returns the modified display. Rotate Col by the given number of Steps. Execute a list of instructions on the given display. Returns the modified display.
-module(aoc2016_day08). -include("aoc_puzzle.hrl"). -include_lib("stdlib/include/assert.hrl"). -export([parse/1, solve/1, info/0]). -behavior(aoc_puzzle). -spec info() -> aoc_puzzle(). info() -> #aoc_puzzle{module = ?MODULE, year = 2016, day = 8, n...
d92667dc98a1832a9fff3d163074415ac6724e282606d32030244152a0180d6a
falsetru/htdp
23.2.4.scm
(define (a-fives-closed i) (+ (+ 3 5) (* 5 i))) (define (seq-a-fives n) (build-list n a-fives-closed)) (require rackunit) (require rackunit/text-ui) (define seq-a-fives-tests (test-suite "Test for seq-a-fives" (check-equal? (seq-a-fives 3) '(8 13 18)) )) (run-tests seq-a-fives-tests)
null
https://raw.githubusercontent.com/falsetru/htdp/4cdad3b999f19b89ff4fa7561839cbcbaad274df/23/23.2.4.scm
scheme
(define (a-fives-closed i) (+ (+ 3 5) (* 5 i))) (define (seq-a-fives n) (build-list n a-fives-closed)) (require rackunit) (require rackunit/text-ui) (define seq-a-fives-tests (test-suite "Test for seq-a-fives" (check-equal? (seq-a-fives 3) '(8 13 18)) )) (run-tests seq-a-fives-tests)
ec101b6913c3547c29cc4c2f172d774bc78ab64f6efde5e8b8d478c18dce94d1
imrehg/ypsilon
render.scm
#!nobacktrace Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (library (ypsilon pango render) (export pango_render_part_get_type) (import (rnrs) (ypsilon ffi)) (define lib-name (cond (on-linux "libpango-1.0...
null
https://raw.githubusercontent.com/imrehg/ypsilon/e57a06ef5c66c1a88905b2be2fa791fa29848514/sitelib/ypsilon/pango/render.scm
scheme
[end]
#!nobacktrace Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (library (ypsilon pango render) (export pango_render_part_get_type) (import (rnrs) (ypsilon ffi)) (define lib-name (cond (on-linux "libpango-1.0...
d89d2c5af6b680438d11418c588810337302b44225048184fabf98ae2eecfb51
jlollis/sicp-solutions
sierpinski-triangle.scm
#lang sicp triangle (define (sierpinski n) (for-each (lambda (x) (display (list->string x)) (newline)) (let loop ((acc (list (list #\*))) (spaces (list #\ )) (n n)) (if (zero? n) acc (loop (append (map (lambda (x) (append spaces x spaces)) acc) (map (l...
null
https://raw.githubusercontent.com/jlollis/sicp-solutions/7b03befcfe82e26a7fb28d94bc99292bc484f9dd/Supplemental%20Materials/notes/sierpinski-triangle.scm
scheme
#lang sicp triangle (define (sierpinski n) (for-each (lambda (x) (display (list->string x)) (newline)) (let loop ((acc (list (list #\*))) (spaces (list #\ )) (n n)) (if (zero? n) acc (loop (append (map (lambda (x) (append spaces x spaces)) acc) (map (l...
5351f8c908cbd5c8292d59c492cff69325e9cdae944beb9d5ba5644909262501
janestreet/hardcaml_xilinx_components
import.ml
include Base module In_channel = Stdio.In_channel module Parameter = Hardcaml.Parameter let error_s = Or_error.error_s let sprintf = Printf.sprintf
null
https://raw.githubusercontent.com/janestreet/hardcaml_xilinx_components/9eca3e195431ff13bc6a333fd91bc23be27c3043/xilinx_vhdl/src/import.ml
ocaml
include Base module In_channel = Stdio.In_channel module Parameter = Hardcaml.Parameter let error_s = Or_error.error_s let sprintf = Printf.sprintf
ad668e2f3b3985159b02d00afde7235e6ba81dc9a09c58c41bc3a2bea17970ea
keechma/keechma-toolbox
app.cljs
(ns keechma.toolbox.forms.app (:require [keechma.toolbox.forms.controller :as forms-controller] [keechma.toolbox.forms.mount-controller :as forms-mount-controller] [keechma.toolbox.forms.core :as forms-core]) (:require-macros [reagent.ratom :refer [reaction]])) (defn form-state-sub [app-db-...
null
https://raw.githubusercontent.com/keechma/keechma-toolbox/61bf68cbffc1540b56b7b1925fef5e0aa12d60e7/src/cljs/keechma/toolbox/forms/app.cljs
clojure
(ns keechma.toolbox.forms.app (:require [keechma.toolbox.forms.controller :as forms-controller] [keechma.toolbox.forms.mount-controller :as forms-mount-controller] [keechma.toolbox.forms.core :as forms-core]) (:require-macros [reagent.ratom :refer [reaction]])) (defn form-state-sub [app-db-...
5d0114ffde0b7f3d6fb20c33e68c0b8cbf5c96e5cbbb205ba6742f95a6eafe4e
pmh/funkyweb
multipart_params.clj
(ns funkyweb.middleware.multipart-params "Parse multipart upload into params." (:use [clojure.contrib.def :only (defvar-)]) (:import (org.apache.commons.fileupload FileUpload RequestContext) (org.apache.commons.fileupload.disk DiskFileItemFactory DiskFileItem))) ...
null
https://raw.githubusercontent.com/pmh/funkyweb/b3731c5664c3b6a40db32a1fef18a59777d9156d/src/funkyweb/middleware/multipart_params.clj
clojure
(ns funkyweb.middleware.multipart-params "Parse multipart upload into params." (:use [clojure.contrib.def :only (defvar-)]) (:import (org.apache.commons.fileupload FileUpload RequestContext) (org.apache.commons.fileupload.disk DiskFileItemFactory DiskFileItem))) ...
dd39826174074fe250b113979eb9428e93028687eff44bef4c4ef88daa3acfe8
woodrush/lambdalisp
malloc.lisp
(defparameter **lambdalisp-suppress-repl** t) ;; Enters script mode and suppresses REPL messages ;; Allocate a region from the heap memory that can be used to store any value (setq *p (malloc)) (memwrite *p '(a b c)) (print (memread *p)) (memwrite *p 10) (print (+ (memread *p) (memread *p))) ;; Allocate consecutive r...
null
https://raw.githubusercontent.com/woodrush/lambdalisp/2294e38aab9f14cca0d04fd2569faf679caaab34/examples/malloc.lisp
lisp
Enters script mode and suppresses REPL messages Allocate a region from the heap memory that can be used to store any value Allocate consecutive regions
(setq *p (malloc)) (memwrite *p '(a b c)) (print (memread *p)) (memwrite *p 10) (print (+ (memread *p) (memread *p))) (setq *s (malloc)) (malloc) (malloc) (malloc) (malloc) (malloc) (memwrite *s 'H) (memwrite (+ 1 *s) 'e) (memwrite (+ 2 *s) 'l) (memwrite (+ 3 *s) 'l) (memwrite (+ 4 *s) 'o) (memwrite (+ 5 *s) '!) (pri...
7340a9715439b47607caf5f33b58dd3bf12b4902dedac79978aa69659930c892
kelamg/HtDP2e-workthrough
ex132.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex132) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f ...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Arbitrarily-Large-Data/ex132.rkt
racket
about the language level of this file in a form that our tools can easily process. – '() – (cons String List-of-names) interpretation a list of invitees, by last name List-of-names -> Boolean determines whether "Flatt" occurs on alon should return #true
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex132) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) A List - of - names is one of : (check-expect (contains-flatt?...
841d622e5f6179d53482f98d3b16b5bdd6813a8b5b8f759fe3fc725d89cf659c
alanzplus/EOPL
1.32.rkt
#lang eopl (require "1.31.rkt") (define double-tree (lambda (btree) (if (null? btree) '() (if (leaf? btree) (leaf (* 2 (contents-of btree))) (interior-node (contents-of btree) (double-tree (lson btree)) (double-tree (rson btree)))...
null
https://raw.githubusercontent.com/alanzplus/EOPL/d7b06392d26d93df851d0ca66d9edc681a06693c/EOPL/ch1/1.32.rkt
racket
#lang eopl (require "1.31.rkt") (define double-tree (lambda (btree) (if (null? btree) '() (if (leaf? btree) (leaf (* 2 (contents-of btree))) (interior-node (contents-of btree) (double-tree (lson btree)) (double-tree (rson btree)))...
19ca856b40836efb86400f4c5c868e87dd95b9ee7e07ee4575a56b3203719600
sunng87/slacker
protocol_test.clj
(ns slacker.protocol-test (:require [clojure.test :refer :all] [slacker.protocol :refer :all] [link.codec :as codec]) (:import [io.netty.buffer Unpooled])) (deftest test-slacker-codec (are [data] (let [buf (Unpooled/buffer)] (= data (codec/decode* slacker-root-codec ...
null
https://raw.githubusercontent.com/sunng87/slacker/60e5372782bed6fc58cb8ba55951516a6b971513/test/slacker/protocol_test.clj
clojure
(ns slacker.protocol-test (:require [clojure.test :refer :all] [slacker.protocol :refer :all] [link.codec :as codec]) (:import [io.netty.buffer Unpooled])) (deftest test-slacker-codec (are [data] (let [buf (Unpooled/buffer)] (= data (codec/decode* slacker-root-codec ...
e3802c88bf316a9be82164fc49911cb6497111861b008f35f45939484d9bdbc6
baskeboler/cljs-karaoke-client
modals.cljs
(ns cljs-karaoke.modals (:require [reagent.core :refer [atom]] [re-frame.core :as rf] [cljs-karaoke.events.modals :as modal-events] [cljs-karaoke.subs :as s] [goog.string :as gstr] [cljs-karaoke.notifications :as notification] [cljs-karaoke.compo...
null
https://raw.githubusercontent.com/baskeboler/cljs-karaoke-client/bb6512435eaa436d35034886be99213625847ee0/src/main/cljs_karaoke/modals.cljs
clojure
modal (modal-card-dialog {:title "Export sync data" :content [:div.export-sync-data-content [:div.field>div.control [:textarea.textarea.is-primary {:id "sync-info-textarea" :value data}]]] ...
(ns cljs-karaoke.modals (:require [reagent.core :refer [atom]] [re-frame.core :as rf] [cljs-karaoke.events.modals :as modal-events] [cljs-karaoke.subs :as s] [goog.string :as gstr] [cljs-karaoke.notifications :as notification] [cljs-karaoke.compo...
2521ece1fa0b01b714cbb385122cb018a5d5b7b93d57338c5cd7c6f8ec6affbd
thobbs/genartlib
dynamic.clj
(ns sketch.dynamic (:require [clojure.java.shell :refer [sh]] ; [genartlib.algebra :refer :all] ; [genartlib.curves :refer :all] ; [genartlib.geometry :refer :all] ; [genartlib.random :refer :all] [genartlib.util :refer [set-color-mode w h]] [qui...
null
https://raw.githubusercontent.com/thobbs/genartlib/032f685b326ef56235e1dc1198cacf02264d3c39/project-template/src/clj/sketch/dynamic.clj
clojure
[genartlib.algebra :refer :all] [genartlib.curves :refer :all] [genartlib.geometry :refer :all] [genartlib.random :refer :all] (:import [sketch Example])) avoid some saving issues make it easy to generate multiple images Some part of image saving appears to be async on windows. This is lame, but for now, add a...
(ns sketch.dynamic (:require [clojure.java.shell :refer [sh]] [genartlib.util :refer [set-color-mode w h]] [quil.core :as q])) (defn setup [] (q/smooth) (q/hint :disable-async-saveframe)) (declare actual-draw) (defn draw [] disable animation , just one frame (q/no-loop) set color...
5cb976f226f4f3bb6355898c64c732d0370a008fbc77b2b2a44acf4d0ba1d598
mstepniowski/project-euler
euler_011.clj
Solution to Project Euler problem 11 ;; ;; What is the greatest product of four adjacent numbers in any direction ( up , down , left , right , or diagonally ) in the 20x20 grid ? (ns com.stepniowski.euler-011) (def *grid* [[ 8 2 22 97 38 15 0 40 0 75 4 5 7 78 52 12 50 77 91 8] [49 49 99 40 17 81 18...
null
https://raw.githubusercontent.com/mstepniowski/project-euler/01d64aa46b21d96fc5291fdf216bf4bad8249029/src/com/stepniowski/euler_011.clj
clojure
Solution to Project Euler problem 11 What is the greatest product of four adjacent numbers in any direction ( up , down , left , right , or diagonally ) in the 20x20 grid ? (ns com.stepniowski.euler-011) (def *grid* [[ 8 2 22 97 38 15 0 40 0 75 4 5 7 78 52 12 50 77 91 8] [49 49 99 40 17 81 18 57 60 ...
202190dc9e76b3086640e7f8cf6b583c39c528ed6c1c2acdcae06941147a3392
chris-taylor/Haskeme
Main.hs
module Main where import System.Environment import Control.Monad.Error import System.IO import System.Info import Data.IORef import Language.Core import Language.Types import Language.Parser import Language.Primitives import Language.Variables import Paths_haskeme import Data.Version (showVersion) ...
null
https://raw.githubusercontent.com/chris-taylor/Haskeme/e9f9fc93c727c6127ac9e1d7e05f105a0fee4a38/src/Interpreter/Main.hs
haskell
Config Main IO Functions p <- runIOThrows $ liftM show $ run parsedExpr env e <- runIOThrows $ liftM show $ run evaledExpr env return e Utility functions
module Main where import System.Environment import Control.Monad.Error import System.IO import System.Info import Data.IORef import Language.Core import Language.Types import Language.Parser import Language.Primitives import Language.Variables import Paths_haskeme import Data.Version (showVersion) ...
a8d987cc7835ed84b5d4f839f0f5fa00f765f266eb3dff3fbddcc77d793a51f8
seagreen/ian
Main.hs
{-# LANGUAGE OverloadedStrings #-} module Main where import qualified Network.HTTP.Types as Http import qualified Network.Wai as Wai import qualified Network.Wai.Handler.Warp as Warp import qualified Network.Wai.Handler.Warp.Internal as Warp import System.Environment (getEnv) import Prelude main :: IO () main = do ...
null
https://raw.githubusercontent.com/seagreen/ian/f245fb68d94299f0e3e12744e9d1549447ad529a/heroku-docker-haskell/Main.hs
haskell
# LANGUAGE OverloadedStrings #
module Main where import qualified Network.HTTP.Types as Http import qualified Network.Wai as Wai import qualified Network.Wai.Handler.Warp as Warp import qualified Network.Wai.Handler.Warp.Internal as Warp import System.Environment (getEnv) import Prelude main :: IO () main = do port <- getPort putStrLn ("Liste...
42cdc923a51767e157e4f64d8b27597509442834bf3d41643a960363ab61ab8a
cram2/cram
simple-actionlib-client.lisp
;;; Copyright ( c ) 2017 , < > ;;; All rights reserved. ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions are met: ;;; ;;; * Redistributions of source code must retain the above copyright ;;; notice, this list...
null
https://raw.githubusercontent.com/cram2/cram/dcb73031ee944d04215bbff9e98b9e8c210ef6c5/cram_boxy/cram_boxy_low_level/src/simple-actionlib-client.lisp
lisp
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redi...
Copyright ( c ) 2017 , < > * Neither the name of the Institute for Artificial Intelligence/ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT OWNER OR ...
eff88642d0d1dca5ac0c9f81dcf2c3af489d8f9f2c8cdb544f02dbb8f60fa293
keigoi/linocaml
ppx_linocaml.ml
TODO : replace " failwith " with proper error - handling open Migrate_parsetree open Ast_408 open Asttypes open Longident open Parsetree open Ast_helper let may_tuple ?loc tup = function | [] -> None | [x] -> Some x | l -> Some (tup ?loc ?attrs:None l) FIXME let lid ?(loc = !default_loc) s = Location.mkloc...
null
https://raw.githubusercontent.com/keigoi/linocaml/6cbc4fc698c04a69a53239c86ab9475580dc3ce0/ppx/ppx_linocaml.ml
ocaml
* * The main function converting lens-patterns #tconst _ x 'a'..'z' constructor without payloads polymorphic variant constructor without payloads `A (None) `A P (Some P) [| P1; ...; Pn |] (P : T) P as 'a pexp_loc_stack
TODO : replace " failwith " with proper error - handling open Migrate_parsetree open Ast_408 open Asttypes open Longident open Parsetree open Ast_helper let may_tuple ?loc tup = function | [] -> None | [x] -> Some x | l -> Some (tup ?loc ?attrs:None l) FIXME let lid ?(loc = !default_loc) s = Location.mkloc...
f07b81649aa929338e4fd8c32392ed1365a6e4cb79970ebfd6918ffacb6f8a02
rmculpepper/crypto
store.rkt
Copyright 2020 SPDX - License - Identifier : Apache-2.0 #lang racket/base (require racket/match racket/class racket/list racket/hash racket/promise scramble/result asn1 crypto/pem "interfaces.rkt" "asn1.rkt" "cert.rkt" ...
null
https://raw.githubusercontent.com/rmculpepper/crypto/75138461a74d6b4bc26c65e981ccfba6b60719de/x509-lib/private/store.rkt
racket
============================================================ Reads up to `count` certificates (or until end of port); does not close. ============================================================ Certificate => #t Does the anchor require less trust than the store gives? ---------------------------------------- --...
Copyright 2020 SPDX - License - Identifier : Apache-2.0 #lang racket/base (require racket/match racket/class racket/list racket/hash racket/promise scramble/result asn1 crypto/pem "interfaces.rkt" "asn1.rkt" "cert.rkt" ...
16b72d00e28923e4c0d728fe21ad59b0da185733eaf25dfcfc5cbaa110712867
vyos/vyconf
vyconfd.ml
open Lwt open Defaults open Vyconf_config open Vyconf_pb open Vyconf_types module FP = FilePath On UNIX , self_init uses /dev / random for seed let () = Random.self_init () let () = Lwt_log.add_rule "*" Lwt_log.Info Default VyConf configuration let daemonize = ref true let config_file = ref defaults.config_file...
null
https://raw.githubusercontent.com/vyos/vyconf/dd9271b4304c6b1a5a2576821d1b2b8fd3aa6bf5/src/vyconfd.ml
ocaml
Global data Command line arguments
open Lwt open Defaults open Vyconf_config open Vyconf_pb open Vyconf_types module FP = FilePath On UNIX , self_init uses /dev / random for seed let () = Random.self_init () let () = Lwt_log.add_rule "*" Lwt_log.Info Default VyConf configuration let daemonize = ref true let config_file = ref defaults.config_file...
c9cd4bb7f8300577810ff5c59988bcf8bfcc055c9a901f1a00b7e137ac1b2491
uhc/uhc
Args.hs
| Module : Args License : GPL Maintainer : Stability : experimental Portability : portable License : GPL Maintainer : Stability : experimental Portability : portable -} module Helium.Compiler.Args ( Option(..) , p...
null
https://raw.githubusercontent.com/uhc/uhc/8eb6914df3ba2ba43916a1a4956c6f25aa0e07c5/EHC/src/helium/Compiler/Args.hs
haskell
More options Experimental options More options Experimental options problem with argument
| Module : Args License : GPL Maintainer : Stability : experimental Portability : portable License : GPL Maintainer : Stability : experimental Portability : portable -} module Helium.Compiler.Args ( Option(..) , p...
152603f6f6b85f8d88899338004fcf9558e46ab0e2f0623ace047c9f2288a9fe
databrary/databrary
Asset.hs
{-# LANGUAGE OverloadedStrings #-} module Controller.Asset ( getAsset -- , getOrigAsset , assetJSONField , viewAsset , AssetTarget(..) , postAsset -- , viewAssetEdit , createAsset -- , viewAssetCreate , createSlotAsset -- , viewSlotAssetCreate , deleteAsset , downloadAsset , downloadOrigAsse...
null
https://raw.githubusercontent.com/databrary/databrary/685f3c625b960268f5d9b04e3d7c6146bea5afda/src/Controller/Asset.hs
haskell
# LANGUAGE OverloadedStrings # , getOrigAsset , viewAssetEdit , viewAssetCreate , viewSlotAssetCreate # SOURCE # import View.Asset public restricted should consult volume original uploaded files have the extension embedded in the name DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG TODO: populate with parsed position...
module Controller.Asset ( getAsset , assetJSONField , viewAsset , AssetTarget(..) , postAsset , createAsset , createSlotAsset , deleteAsset , downloadAsset , downloadOrigAsset , thumbAsset , assetDownloadName ) where import Control.Applicative ((<|>)) import Control.Monad ((<=<), void, guard,...
351c4466175a03f39fdf51597421f88a509cf231ebc9ccde4be52955a828b525
day8/re-frame-debux
core.clj
(ns day8.re-frame.debux.core (:require [day8.re-frame.debux.dbgn :as dbgn] [day8.re-frame.debux.common.util :as ut] [clojure.walk :as walk] [clojure.spec.alpha :as s] [day8.re-frame.debux.common.macro-specs :as ms])) (def reset-indent-level! ut/reset-indent-level!) (de...
null
https://raw.githubusercontent.com/day8/re-frame-debux/382b8dc98bb7cd205abd8b8f5f7e2075ebb82c56/src/day8/re_frame/debux/core.clj
clojure
debugging APIs defn-traced and fn-traced macros prepost+body name docstring? meta? bs (1-n) body prepost? Components of a fn name? bs (1-n) body prepost? If name is nil, then the empty vector is removed by the unquote arity-n
(ns day8.re-frame.debux.core (:require [day8.re-frame.debux.dbgn :as dbgn] [day8.re-frame.debux.common.util :as ut] [clojure.walk :as walk] [clojure.spec.alpha :as s] [day8.re-frame.debux.common.macro-specs :as ms])) (def reset-indent-level! ut/reset-indent-level!) (de...
4c17fc4c78012c29a6b7934095c3b0c60d40a5319c92b54c5c38f92dc453c91b
ocaml-multicore/ocaml-tsan
floatarraylabeled.template.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-multicore/ocaml-tsan/ae9c1502103845550162a49fcd3f76276cdfa866/stdlib/templates/floatarraylabeled.template.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt , LexiFi Copyright 2018 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the type t = floatarray * The type of float array...
eebecd7db8577af886cacd72d26867606214c7c24edbff0bce77e22140fb4ec0
jedimahdi/soltan
Text.hs
# LANGUAGE NoImplicitPrelude # module Hokm.Data.Text ( module Data.Text , NonEmpty ) where import Hokm.Data.Text.NonEmpty ( NonEmpty ) import Data.Text
null
https://raw.githubusercontent.com/jedimahdi/soltan/bc2f9c040854420b8964ad011205d6a251872fe0/backend/hokm-prelude/src/Hokm/Data/Text.hs
haskell
# LANGUAGE NoImplicitPrelude # module Hokm.Data.Text ( module Data.Text , NonEmpty ) where import Hokm.Data.Text.NonEmpty ( NonEmpty ) import Data.Text
4fa44f713912723bec705137834a9a024d7ce4f1696d1c7f25517b0a8c5aba70
nilenso/time-tracker
handlers.clj
(ns time-tracker.timers.handlers (:require [org.httpkit.server :as http-kit] [ring.util.response :as res] [taoensso.timbre :as log] [time-tracker.timers.pubsub :as pubsub] [time-tracker.timers.db :as timers-db] [cheshire.core :as json] [time-trac...
null
https://raw.githubusercontent.com/nilenso/time-tracker/054d0dc6d6b89a4ed234d8f0b0a260b6deeef9e3/src/clj/time_tracker/timers/handlers.clj
clojure
See -kit/http-kit/blob/protocol-api/src/org/httpkit/server.clj#L61 for the possible values of status Send a "ready" message to the client to confirm that it can send message without them getting dropped. -kit/http-kit/issues/318
(ns time-tracker.timers.handlers (:require [org.httpkit.server :as http-kit] [ring.util.response :as res] [taoensso.timbre :as log] [time-tracker.timers.pubsub :as pubsub] [time-tracker.timers.db :as timers-db] [cheshire.core :as json] [time-trac...
6b719f7dcc1edd9b8df915b6101f63820a87d27c3cdeaa376f06244f6831e0a1
janestreet/fuzzy_match
fuzzy_search.ml
open! Core module Case_mode = struct type t = Smart end module Query = struct type t = { queries : string array (* The pattern split by spaces *) ; raw : string ; case_sensitive : bool } let create query = let queries = String.split query ~on:' ' |> List.filter ~f:(fun s -> not ...
null
https://raw.githubusercontent.com/janestreet/fuzzy_match/e7288bda3b138f7995f1d6756287f2c51f9e88e1/search/src/fuzzy_search.ml
ocaml
The pattern split by spaces All subqueries must match some part of the item.
open! Core module Case_mode = struct type t = Smart end module Query = struct type t = ; raw : string ; case_sensitive : bool } let create query = let queries = String.split query ~on:' ' |> List.filter ~f:(fun s -> not (String.is_empty s)) |> Array.of_list in let case...
5a530b3cd8e7e9df3f231ca1153010a14cf0275551a7bba189715bd177d91658
niyarin/red-paren
badcode1.scm
(if (not (and (> x 0) (= (modulo (+ x y) 2) 0))) (display (car (car y))))
null
https://raw.githubusercontent.com/niyarin/red-paren/4ce87f6d45334b724b3daef25000eb9c16e2d483/example-resources/badcode1.scm
scheme
(if (not (and (> x 0) (= (modulo (+ x y) 2) 0))) (display (car (car y))))
db856a8344b2ca808605e2e8ec20cbd986cd35ce1a8b04f9fd9507b8399e1924
symbiont-io/detsys-testkit
Model.hs
module Lec05.ViewstampReplication.Test.Model where import qualified Lec04.LineariseWithFault as Lec4 import Lec05.ViewstampReplication.State (ReplicatedStateMachine(..)) import Lec05.ViewstampReplication.Message type Model = [String] type Command = VRRequest String type Response = VRResponse [String] step :: Model ...
null
https://raw.githubusercontent.com/symbiont-io/detsys-testkit/4d95010bba8c6d75706a57f3557bf659b4e3b510/doc/advanced-testing-mini-course/src/Lec05/ViewstampReplication/Test/Model.hs
haskell
-
module Lec05.ViewstampReplication.Test.Model where import qualified Lec04.LineariseWithFault as Lec4 import Lec05.ViewstampReplication.State (ReplicatedStateMachine(..)) import Lec05.ViewstampReplication.Message type Model = [String] type Command = VRRequest String type Response = VRResponse [String] step :: Model ...
5c179f17213f40d077e1aa836ace1b384b174c11958ad1c87c053b9737c912bd
CSCfi/rems
flash_message.cljs
(ns rems.flash-message (:require [clojure.test :refer [deftest is]] [reagent.core :as reagent] [re-frame.core :as rf] [rems.administration.status-flags :as status-flags] [rems.atoms :as atoms] [rems.focus :as focus] [rems.text :refer [text text-f...
null
https://raw.githubusercontent.com/CSCfi/rems/77090739c90c831ad043fea7004e941dcc6e3b61/src/cljs/rems/flash_message.cljs
clojure
TODO: flash the message with CSS XXX: this expiration check keeps component rendered after page transition, for example navigation TODO: copied as-is from status-modal; consider refactoring
(ns rems.flash-message (:require [clojure.test :refer [deftest is]] [reagent.core :as reagent] [re-frame.core :as rf] [rems.administration.status-flags :as status-flags] [rems.atoms :as atoms] [rems.focus :as focus] [rems.text :refer [text text-f...
fa7c5e6b02c43eb4755bd579b44e8e2dd5beab9bb5d9420397aace7f16aabbe7
metabase/metabase
env.clj
(ns metabase.test.data.env "Logic for determining which datasets to test against. By default, we'll test against against only the :h2 (H2) dataset; otherwise, you can specify which datasets to test against by setting the env var `DRIVERS` to a comma-separated list of dataset names, e.g. # test against :h2 a...
null
https://raw.githubusercontent.com/metabase/metabase/9ac7f26ed92ea0dff3474c0f887040549d2d85ad/test/metabase/test/data/env.clj
clojure
otherwise, you can specify which datasets to test this is println on purpose so it always shows up regardless of log level tests actually run against the union of the this will run against H2 if `(test-drivers)` contains `:h2`, and Postgres if `(test-drivers)` contains `:postgres`
(ns metabase.test.data.env "Logic for determining which datasets to test against. against by setting the env var `DRIVERS` to a comma-separated list of dataset names, e.g. # test against :h2 and :mongo DRIVERS=h2,mongo # just test against :h2 (default) DRIVERS=h2" (:require [colorize.core :a...
23cf5532c0c840227298697d4732eb1288a7dffc5fcce6cd7cc93987c6d995c9
eliast/edoop
wordcount.erl
#!/usr/bin/env escript %% -*- erlang -*- %%! -smp enable -mode(compile). map(_Key, Value, Collector) -> Tokens = [string:strip(Token) || Token <- string:tokens(Value, " \n")], [Collector({Token, 1}) || Token <- Tokens, length(Token) > 0]. reduce(Key, Values, Collector) -> Collector({Key, lists:sum(Values)}). ...
null
https://raw.githubusercontent.com/eliast/edoop/7af28b6782427bd09f56beedbc9a47da26806820/wordcount.erl
erlang
-*- erlang -*- ! -smp enable
#!/usr/bin/env escript -mode(compile). map(_Key, Value, Collector) -> Tokens = [string:strip(Token) || Token <- string:tokens(Value, " \n")], [Collector({Token, 1}) || Token <- Tokens, length(Token) > 0]. reduce(Key, Values, Collector) -> Collector({Key, lists:sum(Values)}). main([String]) -> edoop:run(S...
2d423530dc50eb97cec876c681d52015106350d028045ef3a84fe0469e048803
sixthnormal/clj-3df
logging.cljc
(ns clj-3df.logging (:require [clj-3df.core :as df :refer [exec!]] [clj-3df.binding :as binding])) (def schema {:timely/scope {:db/valueType :Eid} :timely.event.operates/local-id {:db/valueType :Eid} :timely.event.operates/name {:db/valueType :String} :timely.event.operates/address ...
null
https://raw.githubusercontent.com/sixthnormal/clj-3df/7dfb89a438f9fb1a3c5d0d356f05acf3f9c51177/examples/logging.cljc
clojure
(ns clj-3df.logging (:require [clj-3df.core :as df :refer [exec!]] [clj-3df.binding :as binding])) (def schema {:timely/scope {:db/valueType :Eid} :timely.event.operates/local-id {:db/valueType :Eid} :timely.event.operates/name {:db/valueType :String} :timely.event.operates/address ...
a315a23e6e402dcddfa39bba01dd9112f55ece8f6f6c76505e997f53d969efe8
koto-bank/lbge
image.lisp
(in-package :lbge.image) (defclass image () ((width :reader width :initarg :width :type integer) (height :reader height :initarg :height :type integer) (channels :reader channels :initarg :channels :type string) (data :reader data ...
null
https://raw.githubusercontent.com/koto-bank/lbge/6be4b3212ea87288b1ee2a655e9a1bb30a74dd27/src/image-loader/image.lisp
lisp
(in-package :lbge.image) (defclass image () ((width :reader width :initarg :width :type integer) (height :reader height :initarg :height :type integer) (channels :reader channels :initarg :channels :type string) (data :reader data ...
a3181c8f113fc23ba493f43fcd118e6a629d5a2ea8a21a5f835ec6cb279c3e38
szynwelski/nlambda
TestImportClass.hs
{-# OPTIONS_GHC -fplugin MetaPlugin #-} module TestImportClass where import Data.Maybe (listToMaybe) class Select a where select :: [a] -> Maybe a select = listToMaybe
null
https://raw.githubusercontent.com/szynwelski/nlambda/b9acb98af29fc240552b9bb2b991f83306888484/src/meta/TestImportClass.hs
haskell
# OPTIONS_GHC -fplugin MetaPlugin #
module TestImportClass where import Data.Maybe (listToMaybe) class Select a where select :: [a] -> Maybe a select = listToMaybe
109d98a781007782bea8a22abbe31d1893b1504c4282f9e2f63ed74acb10dd92
DeepSec-prover/deepsec
parsing_functions_ui.ml
(**************************************************************************) (* *) DeepSec (* *) ...
null
https://raw.githubusercontent.com/DeepSec-prover/deepsec/8ddc45ec79de5ec49810302ea7da32d3dc9f46e4/Source/interface/parsing_functions_ui.ml
ocaml
************************************************************************ ...
DeepSec , project PESTO , , project PESTO , , project PESTO , Copyright ( C ) INRIA 2017 - 2020 the GNU General Publ...
a378c2f440f64ce50d8e832ee36ccafcd60491464e8792a6624ad1a5587969b6
BumblebeeBat/FlyingFox
db.erl
-module(db). -export([test/0, save/2, read/1]). save(F, X) -> file:write_file(F, term_to_binary(X)). read(F) -> case file:read_file(F) of {ok, Out} -> binary_to_term(Out); {error, enoent} -> %io:fwrite("file does not exist\n"), ""; {error, Reason} -> Reason end. ...
null
https://raw.githubusercontent.com/BumblebeeBat/FlyingFox/0fa039cd2394b08b1a85559f9392086c6be47fa6/src/consensus/db.erl
erlang
io:fwrite("file does not exist\n"), File = "database.db",
-module(db). -export([test/0, save/2, read/1]). save(F, X) -> file:write_file(F, term_to_binary(X)). read(F) -> case file:read_file(F) of {ok, Out} -> binary_to_term(Out); {error, enoent} -> ""; {error, Reason} -> Reason end. -record(d, {a = "", b = "" }). test() -> X = ...
c47acc361285946d455892d4a9c1a5065fe99a6e7684f8fa1f2d17b028914486
processone/tsung
ts_ldap.erl
%%% This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or %%% (at your option) any later version. %%% %%% This program is distributed in the hope that it will ...
null
https://raw.githubusercontent.com/processone/tsung/b0ed22981b534ee3becefb2124a6e168c664d434/src/tsung/ts_ldap.erl
erlang
This program is free software; you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General P...
it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or You should have received a copy of the GNU General Public License Foundation , Inc. , 59 Temple Place , Suite 330 , Boston , MA 02111 - 1307 , USA . the EPL license and...
dae666e5e01e115cc771c9bfdb5493b0ff014a617a780ac2eb3d6f2947929278
nineties/Choco
Proc.hs
------------------------------------------------- Choco -- Chikadzume Oriented Compiler -- Copyright 2007 - 2008 by Basement fairy -- ------------------------------------------------- module Proc where import Choco import Mach import Reg import RegM ...
null
https://raw.githubusercontent.com/nineties/Choco/0081351d0b556ff74f096accb65c9ab45d29ddfe/tsubaki/Proc.hs
haskell
----------------------------------------------- ----------------------------------------------- utilities move another source file later move this table another place
module Proc where import Choco import Mach import Reg import RegM import Control.Monad.State import qualified Data.Map as M boolRepr True = 1 boolRepr False = -1 destroyedAtOper :: InstDesc -> ChocoM [Reg] destroyedAtOper desc = case desc of Iop Icall_ind -> gets phys_regs Iop (Icall_imm s) -> do table...
aae0435f044c17f7927ba9627d7dc321c05eab163289f5e629ecebc1824d471e
melwyn95/streaming-json-parser
bench.ml
open Core open Core_bench let read f = let s = ref "" in let ic = Caml.open_in f in let len = ref (Caml.Unix.stat f).st_size in let () = while !len > 0 do let buf = Bytes.create !len in let size = min 1024 !len in let len' = Caml.input ic buf 0 size in Format.printf " - % d % d % " ! len len ' ...
null
https://raw.githubusercontent.com/melwyn95/streaming-json-parser/855212d1de51d2026b01437ada4ffdca62119454/benchmark/bench.ml
ocaml
open Core open Core_bench let read f = let s = ref "" in let ic = Caml.open_in f in let len = ref (Caml.Unix.stat f).st_size in let () = while !len > 0 do let buf = Bytes.create !len in let size = min 1024 !len in let len' = Caml.input ic buf 0 size in Format.printf " - % d % d % " ! len len ' ...
4369b5f91eb13b765a088e269feb4bd93cb623a8cd66e486d0d2c4673af88cc3
vikram/lisplibraries
window.lisp
;; -*- lisp -*- (in-package :it.bese.ucw) ;;;; ** Simple Window (defclass window-component () ((content-type :accessor window-component.content-type :initarg :content-type :initform nil ; default is text/html with charset from current application :documentation "T...
null
https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/ucw-boxset/ucw_ajax/src/components/window.lisp
lisp
-*- lisp -*- ** Simple Window default is text/html with charset from current application really, really don't like empty script tags. The "" forces yaclml to generate a seperate closing tag. An example to return fully XML docs. But then don't expect your pages to work out of the box... :) :content-type (format ni...
(in-package :it.bese.ucw) (defclass window-component () ((content-type :accessor window-component.content-type :initarg :content-type :documentation "The Content-Type header for the http response (also used in the meta tag)"))) (defmethod window-component.content...
9e5dfef51f126fa576015343c82781f46dad60ceeac15b78db56bd632282ee5e
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
GetTopupsTopup.hs
{-# LANGUAGE ExplicitForAll #-} {-# LANGUAGE MultiWayIf #-} CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} -- | Contains the different functions to run the operation getTopupsTopup module StripeAPI.Op...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Operations/GetTopupsTopup.hs
haskell
# LANGUAGE ExplicitForAll # # LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | Contains the different functions to run the operation getTopupsTopup | > GET /v1/topups/{topup} | Contains all available parameters of this operation (query and path parameters) | Monadic computation which returns the result of th...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . module StripeAPI.Operations.GetTopupsTopup where import qualified Control.Monad.Fail import qualified Control.Monad.Trans.Reader import qualified Data.Aeson import qualified Data.Aeson as...
f1c3dca1a0940f10806554148e96e8b3131e16692458822f9f00c13f26481b85
xoken/xoken-core
Test.hs
| Module : Network . . Test Copyright : Xoken Labs License : Open BSV License Stability : experimental Portability : POSIX Arbitrary instances for testing . Module : Network.Xoken.Test Copyright : Xoken Labs License : Open BSV License Stability : experimental Portability ...
null
https://raw.githubusercontent.com/xoken/xoken-core/34399655febdc8c0940da7983489f0c9d58c35d2/core/src/Network/Xoken/Test.hs
haskell
| Module : Network . . Test Copyright : Xoken Labs License : Open BSV License Stability : experimental Portability : POSIX Arbitrary instances for testing . Module : Network.Xoken.Test Copyright : Xoken Labs License : Open BSV License Stability : experimental Portability ...
3a441fd6622d5ce0f63f536b03377b8a1bc79e0ef327616fb311384bb5d37849
rcherrueau/APE
adder-test.rkt
#lang s-exp "../adder/lang.rkt" ;; Adder -- A starter language. ;; ;; See: ;; - -and-stack_notes.html ;; - ;; n ∈ Nat ;; exp : : = n ( ) ;; | (add1 e) (Prim1 Add1) ;; | (sub1 e) (Prim1 Sub1) (sub1 (add1 (add1 42)))
null
https://raw.githubusercontent.com/rcherrueau/APE/8b5302709000bd043b64d46d55642acb34ce5ba7/racket/pan/examples/adder-test.rkt
racket
Adder -- A starter language. See: - -and-stack_notes.html - n ∈ Nat | (add1 e) (Prim1 Add1) | (sub1 e) (Prim1 Sub1)
#lang s-exp "../adder/lang.rkt" exp : : = n ( ) (sub1 (add1 (add1 42)))
203f95312ef9e5772a763da25c6641d8be2aa6e3de1a31d1d431f66eed52272c
pveber/biotk
croquis_demo.ml
open Base open Biotk open Biotk_croquis open Gg.Color let tree = let open Phylo_tree_draw in let leaf = leaf ~style:`italic in node [ branch 0.5 (leaf "Pan troglodytes") ; branch 2.5 ( node ~tag:red [ branch ~col:red 1. (Phylo_tree_draw.leaf ~col:red "Mus musculus"); branch ~col:blu...
null
https://raw.githubusercontent.com/pveber/biotk/2b4fec29f565a8aa6e057757c13a08cec5d1258c/app/croquis_demo.ml
ocaml
open Base open Biotk open Biotk_croquis open Gg.Color let tree = let open Phylo_tree_draw in let leaf = leaf ~style:`italic in node [ branch 0.5 (leaf "Pan troglodytes") ; branch 2.5 ( node ~tag:red [ branch ~col:red 1. (Phylo_tree_draw.leaf ~col:red "Mus musculus"); branch ~col:blu...
f80eb224ab0a125dc3e02ae050249802926300db45a5da06227c2861c2a9f341
hercules-ci/hercules-ci-agent
Job.hs
{-# LANGUAGE DeriveAnyClass #-} module Hercules.API.Projects.Job ( module Hercules.API.Projects.Job, JobStatus (..), JobPhase (..), ) where import Hercules.API.Accounts.Account (Account) import Hercules.API.Evaluation.Evaluation ( Evaluation, ) import Hercules.API.Inputs.ImmutableInput (ImmutableInput...
null
https://raw.githubusercontent.com/hercules-ci/hercules-ci-agent/b3f8aa8e4a8b22dbbe92cc5a89e6881090b933b3/hercules-ci-api/src/Hercules/API/Projects/Job.hs
haskell
# LANGUAGE DeriveAnyClass # | This is only correct when querying a single Job.
module Hercules.API.Projects.Job ( module Hercules.API.Projects.Job, JobStatus (..), JobPhase (..), ) where import Hercules.API.Accounts.Account (Account) import Hercules.API.Evaluation.Evaluation ( Evaluation, ) import Hercules.API.Inputs.ImmutableInput (ImmutableInput) import Hercules.API.Prelude im...
b63b4a7d6d9360155b6ba725b27afde7ecd415d577b1d1099444c6615e49a974
snapframework/snap-core
Headers.hs
{-# LANGUAGE OverloadedStrings #-} -- | An opaque data type for HTTP headers. Intended to be imported qualified, -- i.e: -- -- > import Snap.Types.Headers (Headers) > import qualified Snap . Types . Headers as H -- > -- > foo :: Headers -- > foo = H.empty module Snap.Types.Headers ( -- * Headers type ...
null
https://raw.githubusercontent.com/snapframework/snap-core/04295679ccf8316fcf4944f2eb65d1b5266587ef/src/Snap/Types/Headers.hs
haskell
# LANGUAGE OverloadedStrings # | An opaque data type for HTTP headers. Intended to be imported qualified, i.e: > import Snap.Types.Headers (Headers) > > foo :: Headers > foo = H.empty * Headers type * Headers creation * Predicates * Lookup * Adding/setting headers * Deleting * Traversal * Lists...
> import qualified Snap . Types . Headers as H module Snap.Types.Headers Headers , empty , null , member , lookup , lookupWithDefault , insert , unsafeInsert , set , delete , foldl' , foldr , foldedFoldl' , foldedFoldr , toList , fromList , unsafeFromCaseFoldedList , un...
b19619bc56dcfecbe922c1416b7201ec437ae49f687db8c0b033304d85f8fdbd
erlang/rebar3
bar1.erl
-module(bar1). -export([bar1/0]). -export_type([barer1/0]). -type barer1() :: string(). % @doc Bar1 bars the bar. -spec bar1() -> barer1(). bar1() -> "Barer1".
null
https://raw.githubusercontent.com/erlang/rebar3/048412ed4593e19097f4fa91747593aac6706afb/apps/rebar/test/rebar_edoc_SUITE_data/foo/apps/bar1/src/bar1.erl
erlang
@doc Bar1 bars the bar.
-module(bar1). -export([bar1/0]). -export_type([barer1/0]). -type barer1() :: string(). -spec bar1() -> barer1(). bar1() -> "Barer1".
c0e807a2e6086baf6a371b5925c564523ccc12700e779b382645aec3d02c9206
Tatsuki-I/Vihs
ReadWrite.hs
module ReadWrite where createBuffer :: String -> IO [String] createBuffer path = readFile path >>= \x -> return $ lines x buffToFile :: String -> [String] -> IO () buffToFile path str = writeFile path $ unlines str
null
https://raw.githubusercontent.com/Tatsuki-I/Vihs/18543d0e2d2970d28a72674d5c502384bb41d98d/src/ReadWrite.hs
haskell
module ReadWrite where createBuffer :: String -> IO [String] createBuffer path = readFile path >>= \x -> return $ lines x buffToFile :: String -> [String] -> IO () buffToFile path str = writeFile path $ unlines str
dbea324d2d722df2c6e83696fc9f74525c37ba8dc5cd2e4e73f0339f6b819d38
crategus/cl-cffi-gtk
rtest-pango-attributes.lisp
(def-suite pango-attributes :in pango-suite) (in-suite pango-attributes) ;;; --- Types and Values ------------------------------------------------------- ;;; PangoAttrType (test pango-attr-type ;; Check the type (is (g-type-is-enum "PangoAttrType")) ;; Check the type initializer (is (eq (gtype "PangoAttr...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/22156e3e2356f71a67231d9868abcab3582356f3/test/rtest-pango-attributes.lisp
lisp
--- Types and Values ------------------------------------------------------- PangoAttrType Check the type Check the type initializer Check the registered name Check the names Check the values Check the enum definition PangoAttrClass PangoAttribute Type check Check the type initializer PANGO...
(def-suite pango-attributes :in pango-suite) (in-suite pango-attributes) (test pango-attr-type (is (g-type-is-enum "PangoAttrType")) (is (eq (gtype "PangoAttrType") (gtype (foreign-funcall "pango_attr_type_get_type" g-size)))) (is (eq 'pango-attr-type (registered-enum-type "PangoAttrType"))...
f7b7720efa01814127cf10a4afa8a4a88268ba2853e190e8e02370dfec88e806
racket/typed-racket
pr10350.rkt
#; (exn-pred exn:fail:contract? #rx"shape-check") #lang typed/racket/shallow (require/typed scheme/base [values (All (T) ((Any -> Boolean) -> (Any -> Boolean : T)))]) (: number->string? (Any -> Boolean : (Number -> String))) (define (number->string? x) (((inst values (Number -> String)) procedure?) x)) (: f (Numb...
null
https://raw.githubusercontent.com/racket/typed-racket/1dde78d165472d67ae682b68622d2b7ee3e15e1e/typed-racket-test/fail/shallow/pr10350.rkt
racket
(exn-pred exn:fail:contract? #rx"shape-check") #lang typed/racket/shallow (require/typed scheme/base [values (All (T) ((Any -> Boolean) -> (Any -> Boolean : T)))]) (: number->string? (Any -> Boolean : (Number -> String))) (define (number->string? x) (((inst values (Number -> String)) procedure?) x)) (: f (Number ...
6f3cc2145e59e22dde2684d764db9c3930e4de2a2aaebdc3a3bf6405d569bba2
kpblc2000/KpblcLispLib
_kpblc-browsefiles-in-directory-nested.lsp
(defun _kpblc-browsefiles-in-directory-nested (path mask) ;| * Ôóíêöèÿ âîçâðàùàåò ñïèñîê ôàéëîâ óêàçàííîé ìàñêè, íàõîäÿùèõñÿ â * çàäàííîì êàòàëîãå * Ïàðàìåòðû âûçîâà: ïóòü ê êîðíåâîìó . ìàñêà èìåíè ôàéëà . nil èëè ñïèñîê * Ïðèìåðû âûçîâà: ...
null
https://raw.githubusercontent.com/kpblc2000/KpblcLispLib/49d1d9d29078b4167cc65dc881bea61b706c620d/lsp/browse/_kpblc-browsefiles-in-directory-nested.lsp
lisp
| _ end of mapcar _ end of if _ end of lambda _ end of function _ end of mapcar _ end of cons _ end of apply _ end of defun
(defun _kpblc-browsefiles-in-directory-nested (path mask) * Ôóíêöèÿ âîçâðàùàåò ñïèñîê ôàéëîâ óêàçàííîé ìàñêè, íàõîäÿùèõñÿ â * çàäàííîì êàòàëîãå * Ïàðàìåòðû âûçîâà: ïóòü ê êîðíåâîìó . ìàñêà èìåíè ôàéëà . nil èëè ñïèñîê * Ïðèìåðû âûçîâà: (_kpblc-browsefiles-in-directory-nested "c:\\doc...
e698164b9521139f4a1d4ea875a6d45953674aa86a26775f43c7fb860823eab9
bravit/tt-ghc-exercises
Syntax.hs
{- Defines the terms, types, and bindings used in the fullsimple implemenation, and provides a couple simple helper functions. -} module Syntax where import Control.Monad import Control.Monad.State import Control.Monad.Error import TaplError {- -------------------------------- TERMS ------------------...
null
https://raw.githubusercontent.com/bravit/tt-ghc-exercises/c4805ac48134df42112b2823eb9391d17b2780b3/stlc/Syntax.hs
haskell
Defines the terms, types, and bindings used in the fullsimple implemenation, and provides a couple simple helper functions. -------------------------------- TERMS -------------------------------- -------------------------------- TYPES -------------------------------- "t1 -> t2" -----------------...
module Syntax where import Control.Monad import Control.Monad.State import Control.Monad.Error import TaplError data Term = TmTrue | TmFalse | TmIf Term Term Term | TmCase Term [(String, (String, Term))] | TmTag String Term Ty | TmVar Int Int | TmAbs ...
16f1c2c46d38937930a0000fbac50ac902b3d723a63115ebcaa0e47de59f6d86
titola/incudine
cffi-ladspa.lisp
Copyright ( c ) 2014 ;;; ;;; This library is free software; you can redistribute it and/or ;;; modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 2.1 of the License , or ( at your option ) any later version . ;;; ;;; This library is d...
null
https://raw.githubusercontent.com/titola/incudine/325174a54a540f4daa67bcbb29780073c35b7b80/contrib/cl-ladspa/cffi-ladspa.lisp
lisp
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public either This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See...
Copyright ( c ) 2014 version 2.1 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , MA 02110 - 1301 USA (in-package :ladspa) (cffi:defctype data :float) (cffi:defcty...
a47476c7e3b52a57a92ef91fdcc144b4ffe9e579c6132dc1106bbc198b77b838
shayan-najd/NativeMetaprogramming
T11731.hs
module Main (main ) where import Debug.Trace foo :: (a,b) -> a foo (x,y) = x # NOINLINE foo # wwMe :: Int -> (Int,Int) -> (Int, Int) wwMe 0 p = let a = fst p b = snd p -- This ensure sharing of b, as seen by the demand analyzer in foo p `seq` This ensures that is strict in the tuple , but...
null
https://raw.githubusercontent.com/shayan-najd/NativeMetaprogramming/24e5f85990642d3f0b0044be4327b8f52fce2ba3/testsuite/tests/simplCore/should_run/T11731.hs
haskell
This ensure sharing of b, as seen by the demand analyzer is preserved. ^ Make it recursive, so that it is attractive to worker-wrapper ^ This is the thunk that is wrongly evaluated twice. ^ Use both components
module Main (main ) where import Debug.Trace foo :: (a,b) -> a foo (x,y) = x # NOINLINE foo # wwMe :: Int -> (Int,Int) -> (Int, Int) wwMe 0 p = let a = fst p b = snd p in foo p `seq` This ensures that is strict in the tuple , but that the tuple (b + a, a + b) wwMe n p = wwMe (n-1) (0,0) ...
8c5c9e82841077c4d80dd585b6b3d7a618ac33d7994f090d4f74192a315b399b
lukeg101/lplzoo
Main.hs
| Module : Main Description : The Main access point for STLC . Copyright : ( c ) , 2018 License : GPL-3 Maintainer : Stability : stable Portability : POSIX The " Main " module provides the access point for running SystemT. This is targeted by main when compiled and run . Modul...
null
https://raw.githubusercontent.com/lukeg101/lplzoo/463ca93f22f018ee07bdc18d84b3b0c966d51766/SystemT/Main.hs
haskell
System T imports. | Simple System T Repl
| Module : Main Description : The Main access point for STLC . Copyright : ( c ) , 2018 License : GPL-3 Maintainer : Stability : stable Portability : POSIX The " Main " module provides the access point for running SystemT. This is targeted by main when compiled and run . Modul...
66554a29d893a54918cccc82b23e2a665433a16254015b46d5d15df1fa057e49
chetant/LibClang
File.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE FlexibleContexts # -- | Functions for manipulating 'FFI.File's, which represent references to files in the libclang AST . -- -- This module is intended to be imported qualified. module Clang.File ( -- * Creating files createFromPath -- * File properties , getName , isMu...
null
https://raw.githubusercontent.com/chetant/LibClang/5e6d245024f7005e1a1dd1076031954b7cd8702f/src/Clang/File.hs
haskell
# LANGUAGE ConstraintKinds # | Functions for manipulating 'FFI.File's, which represent This module is intended to be imported qualified. * Creating files * File properties * Unique IDs | Create a new 'FFI.File' value from the provided path. | Retrieve the filename of the given file. | Determines whether the gi...
# LANGUAGE FlexibleContexts # references to files in the libclang AST . module Clang.File ( createFromPath , getName , isMultipleIncludeGuarded , getMTime , getPosixMTime , getUniqueId , FFI.UniqueId ) where import Control.Applicative import Control.Monad.IO.Class import Data.Time.Clock.POSIX (POSIXTime, posixS...
f6a4d85f1285b8bd110b9801025669a806e1e3068d386e250c2da20e1e0a3f17
clojure/core.typed
example.clj
(ns clojure.core.typed.test.example (:refer-clojure :exclude [< not=]) (:import (java.io File)) (:require [clojure.core.typed :refer [ann inst cf check-ns ann-form] :as t] [clojure.repl :refer [pst]])) (ann test1 (t/All [x y] [x y -> x])) (defn test1 [a b] a) (test1 1 2) (ann test2 (...
null
https://raw.githubusercontent.com/clojure/core.typed/f5b7d00bbb29d09000d7fef7cca5b40416c9fa91/typed/checker.jvm/test/clojure/core/typed/test/example.clj
clojure
#lang typed-scheme (cond (collatz (/ n 2))]
(ns clojure.core.typed.test.example (:refer-clojure :exclude [< not=]) (:import (java.io File)) (:require [clojure.core.typed :refer [ann inst cf check-ns ann-form] :as t] [clojure.repl :refer [pst]])) (ann test1 (t/All [x y] [x y -> x])) (defn test1 [a b] a) (test1 1 2) (ann test2 (...
b856aecd7e815ff3aad971190319f17f9d2e5044315152d348b914b960482b18
sacerdot/CovidMonitoring
server.erl
-module(server). -export([start/0]). server(Luoghi)-> receive richiesta da parte di un luogo di essere aggiunto case lists:member(PID_LUOGO,Luoghi) of true-> server(Luoghi); false->server(Luoghi ++ [PID_LUOGO]) end; {get_places, PID} -> io...
null
https://raw.githubusercontent.com/sacerdot/CovidMonitoring/fe969cd51869bbe6479da509c9a6ab21d43e6d11/AndreaBaroni/server.erl
erlang
-module(server). -export([start/0]). server(Luoghi)-> receive richiesta da parte di un luogo di essere aggiunto case lists:member(PID_LUOGO,Luoghi) of true-> server(Luoghi); false->server(Luoghi ++ [PID_LUOGO]) end; {get_places, PID} -> io...
81600d134448360676c1014b45dd7e0f11f7652204f69403ca5fc888ed203303
pkhuong/bitap-regexp
compile-regexp3.lisp
(defpackage "REGEXP-TO-NFA" (:use "CL") (:export "PARSE-REGEXP" "DFO" "DRAW-REGEXP" "CONVERT-REGEXP-TO-COMPRESSED-NFA" "REMOVE-USELESS-STATES" "ENSURE-STATE-NUMBER-GAPS" "REMOVE-USELESS-EPSILONS" "CONVERT-REGEXP" ...
null
https://raw.githubusercontent.com/pkhuong/bitap-regexp/b24beb2dd74e4f79263f3f8f5d09199f16dc9c34/compile-regexp3.lisp
lisp
regexp designator. any empty string? set of chars to match ~}\"];~%" skip node directly to char/accept nodes virtual states are in the same eqv class when they are reachable exactly after the same set of CHAR nodes. Also do the same for start nodes. Mark-class adds "root" to the set of nodes after which eac...
(defpackage "REGEXP-TO-NFA" (:use "CL") (:export "PARSE-REGEXP" "DFO" "DRAW-REGEXP" "CONVERT-REGEXP-TO-COMPRESSED-NFA" "REMOVE-USELESS-STATES" "ENSURE-STATE-NUMBER-GAPS" "REMOVE-USELESS-EPSILONS" "CONVERT-REGEXP" ...
3d5b4d82089071ca3a833d8a28e7e442abd98e6fbd47f28cf6dcc292daa02426
johnwhitington/haskell-from-the-very-beginning-exercises
Stats.hs
-- Text Statistics import System.Environment import Textstat main :: IO () main = do args <- getArgs case args of [inFile] -> do (l, c, w, s) <- Textstat.statsFromFile inFile putStr "Lines: " putStrLn (show l) putStr "Characters: " putStrLn (...
null
https://raw.githubusercontent.com/johnwhitington/haskell-from-the-very-beginning-exercises/18bda69bf8a0233feb6f023c6a2219b7c20e9fa1/examples/Chapter15/Stats.hs
haskell
Text Statistics
import System.Environment import Textstat main :: IO () main = do args <- getArgs case args of [inFile] -> do (l, c, w, s) <- Textstat.statsFromFile inFile putStr "Lines: " putStrLn (show l) putStr "Characters: " putStrLn (show c) ...
e925ca5cd5dd3c9c116d318b3c229b2ec3f6c376ac9e0e18b5b9e41204c98420
richmit/mjrcalc
exp-PovGraphs.lisp
;; -*- Mode:Lisp; Syntax:ANSI-Common-LISP; Coding:us-ascii-unix; fill-column:158 -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;; @file exp-PovGraphs.lisp @author < > @brief So...
null
https://raw.githubusercontent.com/richmit/mjrcalc/96f66d030034754e7d3421688ff201f4f1db4833/exp-PovGraphs.lisp
lisp
-*- Mode:Lisp; Syntax:ANSI-Common-LISP; Coding:us-ascii-unix; fill-column:158 -*- @file exp-PovGraphs.lisp @std Common Lisp Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: and/or other materials prov...
@author < > @brief Some graphs with -- using general p.pov - like code.@EOL @parblock Copyright ( c ) 1997,1998,2004,2015 , < > All rights reserved . 1 . Redistributions of source code must retain the above copyright notice , this list of conditions , and the following disclaimer . 2...
bec670026b69f7b1fe6e8846696bdc4ef0a9299efb8560462ef612ce4b598ea7
w3ntao/sicp-solution
lazy-evaluator.rkt
#lang racket (require (only-in (combine-in rnrs/base-6 rnrs/mutable-pairs-6 rnrs/io/simple-6) cons car cdr cadr caadr caddr cadddr ...
null
https://raw.githubusercontent.com/w3ntao/sicp-solution/00be3a7b4da50bb266f8a2db521a24e9f8c156be/chap-4/lazy-evaluator.rkt
racket
replace exp with its value forget unneeded env Apply changed changed Application Procedure arguments Sequences Assignments and definitions Representing Expressions self evaluating := items, numbers variables = symbol (quote <text-of-quotation>) (set! <var> <value>) (define <var> <value>) or (define <va...
#lang racket (require (only-in (combine-in rnrs/base-6 rnrs/mutable-pairs-6 rnrs/io/simple-6) cons car cdr cadr caadr caddr cadddr ...
37dd8d4e07a528f7cb92a1567324361b43a93628792642bbfd3808de32830087
mtolly/onyxite-customs
PartGuitar.hs
| PART GUITAR , PART GUITAR COOP , PART BASS , PART RHYTHM PART GUITAR, PART GUITAR COOP, PART BASS, PART RHYTHM -} # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DerivingVia # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards ...
null
https://raw.githubusercontent.com/mtolly/onyxite-customs/0c8acd6248fe92ea0d994b18b551973816adf85b/haskell/packages/onyx-lib/src/Onyx/Harmonix/GH2/PartGuitar.hs
haskell
# LANGUAGE OverloadedStrings # seen in GH1 ^ headbang or similar. probably like [intense] in RB ^ fire hands, special animations sound effect to play if the player misses any and all notes during its duration instead of a long note, due to easier scripting implementation
| PART GUITAR , PART GUITAR COOP , PART BASS , PART RHYTHM PART GUITAR, PART GUITAR COOP, PART BASS, PART RHYTHM -} # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DerivingVia # # LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # module Onyx.Harmonix.GH2.PartGuita...
eca5fee9b181176275b7dc1e740b1762391ac269655bc10e7dbffe07f60abc44
databrary/databrary
Deform.hs
# LANGUAGE OverloadedStrings , TypeFamilies , ScopedTypeVariables # module HTTP.Form.Deform ( DeformT , runDeform , deformSync' , (.:>) , withSubDeforms , deformOptional , deformNonEmpty , Deform(..) , deformError , deformError' , deformMaybe' , deformGuard , deformCheck , deformParse , de...
null
https://raw.githubusercontent.com/databrary/databrary/685f3c625b960268f5d9b04e3d7c6146bea5afda/src/HTTP/Form/Deform.hs
haskell
# LANGUAGE OverloadedStrings , TypeFamilies , ScopedTypeVariables # module HTTP.Form.Deform ( DeformT , runDeform , deformSync' , (.:>) , withSubDeforms , deformOptional , deformNonEmpty , Deform(..) , deformError , deformError' , deformMaybe' , deformGuard , deformCheck , deformParse , de...
4879461e3f9561ddc3fa4b521ca4db738a4d687bc6ffc0f1fde9c8cbe247bfa2
pfdietz/ansi-test
load.lsp
;-*- Mode: Lisp -*- Author : Created : Tue Jan 13 19:38:10 2004 Contains : Load files containing tests for section 21 ( streams ) (in-package #:cl-test) (let ((*default-pathname-defaults* (make-pathname :directory (pathname-directory *load-pathname*)))) (load "input-stream-p.lsp") ...
null
https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/streams/load.lsp
lisp
-*- Mode: Lisp -*-
Author : Created : Tue Jan 13 19:38:10 2004 Contains : Load files containing tests for section 21 ( streams ) (in-package #:cl-test) (let ((*default-pathname-defaults* (make-pathname :directory (pathname-directory *load-pathname*)))) (load "input-stream-p.lsp") (load "output-stream-p.l...
9173536c876c1f40a0ffef9c905536c8caedb0a22feb24ac31c1962d69ba6249
gtod/postgres-json
interface.lisp
(in-package :postgres-json) Define the CRUD++ interface to the Postgre - JSON persistence model (defgeneric insert (model object &optional key) (:documentation "Insert lisp object OBJECT into the backend MODEL, after JSON serialization. If KEY is supplied use that as the primary key for the JSON document rather ...
null
https://raw.githubusercontent.com/gtod/postgres-json/a545b6c61ca6ee4c6a579c77dbe6856013c7c34f/model/interface.lisp
lisp
people may help us with the next release or there are suggestions History methods
(in-package :postgres-json) Define the CRUD++ interface to the Postgre - JSON persistence model (defgeneric insert (model object &optional key) (:documentation "Insert lisp object OBJECT into the backend MODEL, after JSON serialization. If KEY is supplied use that as the primary key for the JSON document rather ...
159f0e5eb951b915736ba228555501849d316e26fe2029959ddeca68450d6678
julian-baldwin/parachute-browser
example-tests.lisp
(in-package #:cl-user) (defpackage #:parachute-browser/examples (:add-use-defaults t) (:shadowing-import-from #:parachute #:true #:false #:is #:fail #:finish #...
null
https://raw.githubusercontent.com/julian-baldwin/parachute-browser/dfef3b06a9194dcfd6df9a809425e8cfbe4191d3/example-tests.lisp
lisp
These tests should be accessible by 'Command+Double Click' from the test and results browser.
(in-package #:cl-user) (defpackage #:parachute-browser/examples (:add-use-defaults t) (:shadowing-import-from #:parachute #:true #:false #:is #:fail #:finish #...
1e0ae6e69fe461d6ce9daad41b11b61607d667936f4e275803f276576451cf4d
scmlab/gcl
Class.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE FlexibleInstances # module Render.Class ( Render (..), RenderSection(..), tempHandleLoc, renderManySepByComma, PrecContext(..) ) where import Render.Element import qualified Data.Text as Text import Data.Text (Text) import Data.Loc.Range (fromLoc) imp...
null
https://raw.githubusercontent.com/scmlab/gcl/09deb3079c79eec204db96229f6fafaa9831615a/src/Render/Class.hs
haskell
# LANGUAGE OverloadedStrings # ------------------------------------------------------------------------------ | Describing the precedence context of an expression: AppHOLE,OpHOLE means the expression at issue (whether it needs parentheses or not) is at the parent's operator's right side, denotes as like: "f {a + b}...
# LANGUAGE FlexibleInstances # module Render.Class ( Render (..), RenderSection(..), tempHandleLoc, renderManySepByComma, PrecContext(..) ) where import Render.Element import qualified Data.Text as Text import Data.Text (Text) import Data.Loc.Range (fromLoc) import Data.Loc (Loc) import Prettypri...
17c55ff1fdce6aeee912a850620ed94e9b41d640bfdd51f41bd862c93cbb888a
runtimeverification/haskell-backend
Changed.hs
| Copyright : ( c ) Runtime Verification , 2020 - 2021 License : BSD-3 - Clause Copyright : (c) Runtime Verification, 2020-2021 License : BSD-3-Clause -} module Changed ( Changed (..), getChanged, ) where import Prelude.Kore | @'Changed ' thing@ carries a @thing@ and a marker . data Ch...
null
https://raw.githubusercontent.com/runtimeverification/haskell-backend/b06757e252ee01fdd5ab8f07de2910711997d845/kore/src/Changed.hs
haskell
| Copyright : ( c ) Runtime Verification , 2020 - 2021 License : BSD-3 - Clause Copyright : (c) Runtime Verification, 2020-2021 License : BSD-3-Clause -} module Changed ( Changed (..), getChanged, ) where import Prelude.Kore | @'Changed ' thing@ carries a @thing@ and a marker . data Ch...
afd2a833adaa8ee4e0f70cacb9fde38d2bcaddd101d5d5a0b95d30d10914d08c
giorgidze/YampaSynth
SynthParams.hs
module SynthParams ( SynthParams (..) , soundFontToSynthParams , SynthParamsGen , toFreq ) where import qualified Codec.SoundFont as SF import qualified Data.Audio as Audio import qualified Codec.Midi as Midi import Data.List import Data.Array.IArray import Data.Word import Control.Monad import Control.Applic...
null
https://raw.githubusercontent.com/giorgidze/YampaSynth/a262eeb735c80845868f905cbebde01ac47b9cfd/src/SynthParams.hs
haskell
[ ( Time , CV ) ] deriving (Show) , sfHoldVolEnv :: Int , sfReleaseVolEnv :: Int For subset of generators I am dealing here this definition is OK But in general preset and instrument generator should be handeled separatly Is can be implemented way more efficiently by translating soundFont to intermediate data...
module SynthParams ( SynthParams (..) , soundFontToSynthParams , SynthParamsGen , toFreq ) where import qualified Codec.SoundFont as SF import qualified Data.Audio as Audio import qualified Codec.Midi as Midi import Data.List import Data.Array.IArray import Data.Word import Control.Monad import Control.Applic...
1fa822d23fd37f37b17e40603aa66d43a8a3784f5712f61c6b877b4f9df2185a
eccentric-j/clj-cgi-example
index.clj
#!/usr/bin/env bb (ns cgi.lib.index (:require [hiccup2.core :refer [html]])) (println "Content-Type: text/html\n") (println (str (html [:html [:head [:title "Libs"] [:link {:rel "stylesheet" :type "text/css" :href "/style.css"}]] [:body [:div.page [:h1 "Lib...
null
https://raw.githubusercontent.com/eccentric-j/clj-cgi-example/fb6d9417ffef6807be361ebacbf2c6325ee1d58e/docker/public_html/lib/index.clj
clojure
#!/usr/bin/env bb (ns cgi.lib.index (:require [hiccup2.core :refer [html]])) (println "Content-Type: text/html\n") (println (str (html [:html [:head [:title "Libs"] [:link {:rel "stylesheet" :type "text/css" :href "/style.css"}]] [:body [:div.page [:h1 "Lib...
7beac8b196bc14555e6f350f864b05fa14bb916008b68c1e260b43b728470585
Clozure/ccl-tests
format-logical-block.lsp
;-*- Mode: Lisp -*- Author : ;;;; Created: Sun Aug 8 12:17:31 2004 ;;;; Contains: Tests of the ~< ~:> format directives (in-package :cl-test) (compile-and-load "printer-aux.lsp") ;;; Error cases ;;; Prefix and suffix cannot contain format directives (deftest format.logical-block.error.1 (signals-err...
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/format-logical-block.lsp
lisp
-*- Mode: Lisp -*- Created: Sun Aug 8 12:17:31 2004 Contains: Tests of the ~< ~:> format directives Error cases Prefix and suffix cannot contain format directives "an error is also signaled if the ~<...~:;...~> form of ~<...~> is used in the same format string with ~W, ~_, ~<...~:>, ~I, or ~:T." Non-error ...
Author : (in-package :cl-test) (compile-and-load "printer-aux.lsp") (deftest format.logical-block.error.1 (signals-error-always (format nil "~<foo~A~;~A~;bar~:>" '(X) '(Y)) error) t t) (deftest format.logical-block.error.2 (signals-error-always (format nil "~<foo~A~@;~A~;bar~:>" '(X) '(Y)) error) t...
ecb2a3e4caa9ab006cdc6203984cf12a73e4736f8d5e05d82fc3fb1468790d9e
exercism/erlang
resistor_color.erl
-module(resistor_color). -export([colors/0, color_code/1]). colors() -> undefined. color_code(_Color) -> undefined.
null
https://raw.githubusercontent.com/exercism/erlang/a742ae7224749cde700fb21d7a2c17b9d4589e76/exercises/practice/resistor-color/src/resistor_color.erl
erlang
-module(resistor_color). -export([colors/0, color_code/1]). colors() -> undefined. color_code(_Color) -> undefined.
69ee16258b1ba19081db95ede314d6ed5af943e9a59c84edbe14a9fc574448d4
appleshan/cl-http
url-class.lisp
-*- Mode : LISP ; Syntax : Ansi - common - lisp ; Package : URL ; Base : 10 -*- ( C ) Copyright 1994 - 97 , 2000 - 2001 , 2005 - 2006 , . ;;; All Rights Reserved. ;;; ;;;------------------------------------------------------------------- ;;; ;;; UNIVERSAL RESOURCE LOCATORS CLASSES ;;; (in-package :url) (...
null
https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/server/url-class.lisp
lisp
Syntax : Ansi - common - lisp ; Package : URL ; Base : 10 -*- All Rights Reserved. ------------------------------------------------------------------- UNIVERSAL RESOURCE LOCATORS CLASSES (defclass require-proxy-access-mixin () (:documentation "A mixin that provides allows access to be limited to ...
( C ) Copyright 1994 - 97 , 2000 - 2001 , 2005 - 2006 , . (in-package :url) (defclass colon-scheme-prefix-mixin () ()) (defclass displayable-name-mixin () ((display-string :initform nil :initarg :display-string))) (defclass host-mixin () ((host-string :initarg :host-string :accesso...
06e94e5ccfce843370cb12afe5d5565a57d23e7fd854da91ba017ff459695e47
Haskell-Things/HSlice
Definitions.hs
{- ORMOLU_DISABLE -} -- Slicer. - Copyright 2016 and - Copyright 2019 - - This program is free software : you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published by - the Free Software Foundation , either version 3 of the License , or -...
null
https://raw.githubusercontent.com/Haskell-Things/HSlice/2c7578e78c1a9984bc57816317fd9b48e866c289/Graphics/Slicer/Formats/JSON/Definitions.hs
haskell
ORMOLU_DISABLE Slicer. Format handler for JSON format.
- Copyright 2016 and - Copyright 2019 - - This program is free software : you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published by - the Free Software Foundation , either version 3 of the License , or - ( at your option ) any later ve...
aa7c52a561ab7371b7e46fe066039bde98142895bb751e9e25f2baf88b87a117
rudymatela/express
name.hs
Copyright ( c ) 2017 - 2021 . -- Distributed under the 3-Clause BSD licence (see the file LICENSE). import Test import Data.Express.Utils.List main :: IO () main = mainTest tests 5040 tests :: Int -> [Bool] tests n = [ True -- simple types , name (undefined :: Int) == "x" , name (undefined :: Integer) =...
null
https://raw.githubusercontent.com/rudymatela/express/24193a8ea5e238404808a8ef196b0973d0383c21/test/name.hs
haskell
Distributed under the 3-Clause BSD licence (see the file LICENSE). simple types lists eithers maybes pairs triples tuples
Copyright ( c ) 2017 - 2021 . import Test import Data.Express.Utils.List main :: IO () main = mainTest tests 5040 tests :: Int -> [Bool] tests n = [ True , name (undefined :: Int) == "x" , name (undefined :: Integer) == "x" , name (undefined :: Char) == "c" , name (undefined :: Bool) == "p" , name (...
b3c74f5d04453b301df677e4bb411319b649db4613d9fcbf4115a28f000c5571
input-output-hk/plutus-apps
SqlUtils.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} # LANGUAGE TemplateHaskell # # OPTIONS_GHC -fno - warn - orphans # | This module extracts addresses from a utxo SQLite database . -- Addresses are: -- store in shelleyad...
null
https://raw.githubusercontent.com/input-output-hk/plutus-apps/385228f6b726a06a655d1b2c8c56cfd5389bf276/marconi-sidechain/db-utils/src/Marconi/DB/SqlUtils.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings # # LANGUAGE QuasiQuotes # Addresses are: store in shelleyaddresses table ranked on their corresponding number of utxos to get a sample of the data : | create a small SQL pipeline: first create a table of addresses and their corespondi...
# LANGUAGE DeriveGeneric # # LANGUAGE TemplateHaskell # # OPTIONS_GHC -fno - warn - orphans # | This module extracts addresses from a utxo SQLite database . stored in ` Text ` Bech32 format , addresses / utxo - db " select * from shelleyaddresses limit 10 ; " " .exit " module Marconi.DB.SqlUtil...
92eb5bc52bc96583c7bbf16be5ea01ef71547c82e7293f047b7bf41b9d376f37
coq-community/aac-tactics
coq.ml
(***************************************************************************) (* This is part of aac_tactics, it is distributed under the terms of the *) (* GNU Lesser General Public License version 3 *) (* (see file LICENSE for more details) *) (* ...
null
https://raw.githubusercontent.com/coq-community/aac-tactics/0f2de225cb6d42d93c8aa61891510e5c6ac6726c/src/coq.ml
ocaml
************************************************************************* This is part of aac_tactics, it is distributed under the terms of the GNU Lesser General Public License version 3 (see file LICENSE for more details) ...
Copyright 2009 - 2010 : , . * Interface with Coq open Constr open EConstr open Names open Context.Rel.Declaration open Proofview.Notations type tactic = unit Proofview.tactic let mkArrow x y = mkArrow x Sorts.Relevant y type lazy_ref = Names.GlobRef.t Lazy.t The contrib name is used...
a2bbc87ee8dcf71ab061d004bcdc4dd2236cb35da7a113eee74e4acb65a93083
matthewhammer/ceal
tv_surface.ml
< > The metaphor is that this Surface module provides surface - like objects like those found in drawing libraries such as SDL ; ( that is , where each object is a buffer full of pixels ) . In our case , we do not specify what sort of " stuff " goes into the surface --- we are parametric i...
null
https://raw.githubusercontent.com/matthewhammer/ceal/cc67ef1ad336649b2362c39faaccdd08ba59d728/src/tv/tv_surface.ml
ocaml
stack element = operation arg. No change to the surface. pushing the argument stack. Popping the argument stack. val flatten : ('a surf) surf -> 'a surf Manipulate data that's "here". Create a list of lists, in row-major order. Move relative to a distance stored on the stack. The absolute x coordinate...
< > The metaphor is that this Surface module provides surface - like objects like those found in drawing libraries such as SDL ; ( that is , where each object is a buffer full of pixels ) . In our case , we do not specify what sort of " stuff " goes into the surface --- we are parametric i...
afacb002beb62e8204d3b141d939a45729f14703eb855eb3f603581fc8d2af87
melange-re/melange
int64.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/melange-re/melange/246e6df78fe3b6cc124cb48e5a37fdffd99379ed/jscomp/stdlib-412/stdlib_modules/int64.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the Module [ Int64 ] : 64 - bit integers external neg : int64 -> int64 = "%int64_neg" external add : int64...
32a14d0511ad13eb6aa77f35422ff1cb282821a41914b4ce927a7b5137e0b61f
gregwebs/Shelly.hs
Pipe.hs
# LANGUAGE FlexibleInstances , TypeSynonymInstances , TypeFamilies , ExistentialQuantification # TypeFamilies, ExistentialQuantification #-} | This module is a wrapper for the module " " . -- The only difference is a main type 'Sh'. In this module -- 'Sh' contains a list of results. Actu...
null
https://raw.githubusercontent.com/gregwebs/Shelly.hs/25a7884aa5a227707968b45b1336af71c1e627f6/src/Shelly/Pipe.hs
haskell
The only difference is a main type 'Sh'. In this module 'Sh' contains a list of results. Actual definition of the type 'Sh' is: > > newtype Sh a = Sh { unSh :: S.Sh [a] } This definition can simplify some filesystem commands. A monad bind operator becomes a pipe operator and we can write > > main :: IO () >...
# LANGUAGE FlexibleInstances , TypeSynonymInstances , TypeFamilies , ExistentialQuantification # TypeFamilies, ExistentialQuantification #-} | This module is a wrapper for the module " " . > import qualified as S > findExt ext = findWhen ( pure . ) > " new " the main " ...
859e2d6a7441cf9227d9b95e2ecbefff172c88deb930bf485bb08b11dd5106bf
sbcl/sbcl
debug.lisp
;;;; RISC-V support for the debugger This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software is in the public domain and ...
null
https://raw.githubusercontent.com/sbcl/sbcl/8518e2b2c35731df44a3d0070d5114a1b45d9af1/src/compiler/riscv/debug.lisp
lisp
RISC-V support for the debugger more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information.
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB-VM") (define-vop () (:translate current-sp) (:policy :fast-safe) (:results (res :scs (sap-reg))) (:r...
b1fe2afa0ab25dad1f95a8e731aae5598a246fd744ab1a40637a1f0e1eea2dbd
ucsd-progsys/nate
searchpos.ml
(*************************************************************************) (* *) (* Objective Caml LablTk library *) (* *) ,...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/otherlibs/labltk/browser/searchpos.ml
ocaml
*********************************************************************** Objective Caml LablTk library ...
, Kyoto University RIMS Copyright 1999 Institut National de Recherche en Informatique et en Automatique and Kyoto University . All rights reserved . This file is distributed under the terms of the GNU Library $ I d : searchpos.ml , v 1.49 2006/0...
281ff8527fe837d9b75974195887d89efaa88e192ed5e38394d60bc277865cc6
huangz1990/SICP-answers
test-57-deriv.scm
(load "test-manager/load.scm") (load "57-deriv.scm") (define x (make-product 'x 'y)) (define y (make-product 'x 'y 'z)) (define-each-check (equal? x '(* x y)) (equal? y '(* x y z)) (equal? (multiplier x) 'x) (equal? (multiplicand x) 'y) (equal?...
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp2/code/test-57-deriv.scm
scheme
(load "test-manager/load.scm") (load "57-deriv.scm") (define x (make-product 'x 'y)) (define y (make-product 'x 'y 'z)) (define-each-check (equal? x '(* x y)) (equal? y '(* x y z)) (equal? (multiplier x) 'x) (equal? (multiplicand x) 'y) (equal?...
eec67f96e8096c5255aadfcfd3cf0620933a1bd8a0fcfe49241a018ab6779cdd
karetsu/xmonad-aloysius
Util.hs
-- | Personal version of X.U.EZConfig with Super_L as named key --------------------------------------------------------------------- -- | Module : XMonad . Util . EZConfig Copyright : < > < > ( key parsing ) -- License : BSD3-style (see LICENSE) -- Maintainer : < >...
null
https://raw.githubusercontent.com/karetsu/xmonad-aloysius/9910c8db4bb75600fc9af51b9e64ab5704e8126c/app/Bind/Util.hs
haskell
| Personal version of X.U.EZConfig with Super_L as named key ------------------------------------------------------------------- | License : BSD3-style (see LICENSE) Useful helper functions for amending the default configuration, and for parsing keybindings specified in a special (emacs-like) format. (See...
Module : XMonad . Util . EZConfig Copyright : < > < > ( key parsing ) Maintainer : < > module Bind.Util ( additionalKeys , additionalKeysP , removeKeys , removeKeysP , additionalMouseBindings , removeMouseBindings , mkKeymap , checkKeymap , mkN...
82da106896c5f7719f7884c806347bcc63fa579d0b815dd2b5582e55e2127ac4
NelosG/fp-tests
Spec.hs
import T7Spec (tests) import Test.Tasty (defaultMain) main :: IO () main = tests >>= \test -> defaultMain test
null
https://raw.githubusercontent.com/NelosG/fp-tests/7e2af5c3c3279c2045662faaff8e5f895af6af6a/hw1/test/T7/Spec.hs
haskell
import T7Spec (tests) import Test.Tasty (defaultMain) main :: IO () main = tests >>= \test -> defaultMain test