_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
f2e1a33fb59c5cb72d436d4de7e5eeb7738c8e6f2053dfc736d5ffbbc6c30723
composewell/streamly
Array.hs
-- | Module : Streamly . Test . Data . Array Copyright : ( c ) 2019 Composewell technologies -- License : BSD-3-Clause -- Maintainer : -- Stability : experimental Portability : GHC module Streamly.Test.Data.Array (main) where import Data.Char (isLower) import Data.List (sort) import Data.Proxy ...
null
https://raw.githubusercontent.com/composewell/streamly/34b2b4987629420cb3140e0b32a2b46daf9e5981/test/Streamly/Test/Data/Array.hs
haskell
| License : BSD-3-Clause Maintainer : Stability : experimental XXX There is an issue prop "testAppend" testAppend
Module : Streamly . Test . Data . Array Copyright : ( c ) 2019 Composewell technologies Portability : GHC module Streamly.Test.Data.Array (main) where import Data.Char (isLower) import Data.List (sort) import Data.Proxy (Proxy(..)) import Data.Word(Word8) import Foreign.Storable (peek) import GHC.Ptr (...
c83ad264776adc243a5ab231b0ef642f87d3626646743b71d4765480417392bc
con-kitty/categorifier
Instances.hs
# OPTIONS_GHC -Wno - orphans # module Categorifier.Test.Vec.Instances ( module Categorifier.Test.Hask, module Categorifier.Test.Term, ) where import Categorifier.Test.Hask import Categorifier.Test.Term import Data.Pointed (Pointed (..)) import qualified Data.Type.Nat as Nat import Data.Vec.Lazy (Vec) instanc...
null
https://raw.githubusercontent.com/con-kitty/categorifier/8b33d0bdcab8172a0b53cb202a6449ad1b4a6992/integrations/vec/integration-test/Categorifier/Test/Vec/Instances.hs
haskell
# OPTIONS_GHC -Wno - orphans # module Categorifier.Test.Vec.Instances ( module Categorifier.Test.Hask, module Categorifier.Test.Term, ) where import Categorifier.Test.Hask import Categorifier.Test.Term import Data.Pointed (Pointed (..)) import qualified Data.Type.Nat as Nat import Data.Vec.Lazy (Vec) instanc...
055380d19c42f84a2945b0572458ae7984921fc0a18f2bd8a23403f03fc11775
aphyr/prism
project.clj
(defproject com.aphyr/prism "0.1.3" :description "Re-run lein tests automatically" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.5.1"] [filevents "0.1.0"]])
null
https://raw.githubusercontent.com/aphyr/prism/9a7a2165d287ab2f929c4a697b0668d7e7126753/project.clj
clojure
(defproject com.aphyr/prism "0.1.3" :description "Re-run lein tests automatically" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.5.1"] [filevents "0.1.0"]])
53fb9910cb7aa70793fc076d5b87c82531b8941b4f2f12266ab3519e630cce0b
MinaProtocol/mina
blockchain_snark_state.ml
open Core_kernel open Snark_params open Tick open Mina_base open Mina_state open Pickles_types include struct open Snarky_backendless.Request type _ t += | Prev_state : Protocol_state.Value.t t | Prev_state_proof : (Nat.N2.n, Nat.N2.n) Pickles.Proof.t t | Transition : Snark_transition.Value.t t | ...
null
https://raw.githubusercontent.com/MinaProtocol/mina/f3e74168f08a2ce65331ca718f88d214da71370f/src/lib/blockchain_snark/blockchain_snark_state.ml
ocaml
TODO: Clean up the handler composition interface. only increase the supply if the txn statement represents a new ledger transition If snarked ledger hash did not change (no new ledger proof) then pop_coinbases should be a no-op TODO: Any assertion about the local state and sok digest in the statement requi...
open Core_kernel open Snark_params open Tick open Mina_base open Mina_state open Pickles_types include struct open Snarky_backendless.Request type _ t += | Prev_state : Protocol_state.Value.t t | Prev_state_proof : (Nat.N2.n, Nat.N2.n) Pickles.Proof.t t | Transition : Snark_transition.Value.t t | ...
633fb7542c4c6b4c68903f53827177a087a24adcc7bf94e9ecdaefb04d634ede
bsansouci/bsb-native
bytelink.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/bsansouci/bsb-native/9a89457783d6e80deb0fba9ca7372c10a768a9ea/vendor/ocaml/bytecomp/bytelink.ml
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . Link a set of .cmo files and produce ...
cefd25ff8f1315eb52f1ad8406c0a59babcc44c9fd80f63f342f60b500b415ce
Engil/Goodboy
cpu.ml
open Registers type t = { sp : int; pc : int; rg : Registers.t; ime : bool; t : int; m : int; halted : bool; } let make () = { sp = 0; pc = 0; rg = Registers.make (); ime = false; t = 0; m = 0; halted = false; } let get_register { rg; _ } r = get rg r let set_register { rg; _ } r = set rg...
null
https://raw.githubusercontent.com/Engil/Goodboy/2e9abc243b929d8bdfb7c5d4874ddb8a07c55fac/lib/cpu.ml
ocaml
open Registers type t = { sp : int; pc : int; rg : Registers.t; ime : bool; t : int; m : int; halted : bool; } let make () = { sp = 0; pc = 0; rg = Registers.make (); ime = false; t = 0; m = 0; halted = false; } let get_register { rg; _ } r = get rg r let set_register { rg; _ } r = set rg...
cb0e5e5c9e2ee2be1ec5684a6dd537f3b0fd0faea23f0ce06218e131f93d5ba2
ijvcms/chuanqi_dev
guild_config.erl
%%%------------------------------------------------------------------- @author zhengsiying %%% @doc %%% 自动生成文件,不要手动修改 %%% @end Created : 2016/10/12 %%%------------------------------------------------------------------- -module(guild_config). -include("common.hrl"). -include("config.hrl"). -compile([export_all])...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/config/guild_config.erl
erlang
------------------------------------------------------------------- @doc 自动生成文件,不要手动修改 @end -------------------------------------------------------------------
@author zhengsiying Created : 2016/10/12 -module(guild_config). -include("common.hrl"). -include("config.hrl"). -compile([export_all]). get_list_conf() -> [ guild_config:get(X) || X <- get_list() ]. get_list() -> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]. get(1) -> #guild_conf{ key = 1, exp = 9000, member_limi...
bb25d2983c2bb2202388894e2833b828901e008664635c42672d149f317c8c84
johnlawrenceaspden/hobby-code
quadraticregression.clj
What is the best fit for a+bx+cxx here ? (defn fit [[ a b c]] (let [predictions (map #(+ a (* b %) (* c % %)) (range 1 8))] [(reduce + (map #(* % %) (map - predictions [2 6 14 26 40 60 96]))) [a b c] predictions])) (defn improve-guess...
null
https://raw.githubusercontent.com/johnlawrenceaspden/hobby-code/48e2a89d28557994c72299962cd8e3ace6a75b2d/quadraticregression.clj
clojure
[2 6 14 26 40 60 96]
What is the best fit for a+bx+cxx here ? (defn fit [[ a b c]] (let [predictions (map #(+ a (* b %) (* c % %)) (range 1 8))] [(reduce + (map #(* % %) (map - predictions [2 6 14 26 40 60 96]))) [a b c] predictions])) (defn improve-guess...
470adadadd9807634082af6bca9162f4eb6a3b28296096fc2b5f049c87112e29
richmit/mjrcalc
use-colorized.lisp
;; -*- Mode:Lisp; Syntax:ANSI-Common-LISP; Coding:us-ascii-unix; fill-column:158 -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;; @file use-colorized.lisp @author < > @brief o...
null
https://raw.githubusercontent.com/richmit/mjrcalc/96f66d030034754e7d3421688ff201f4f1db4833/use-colorized.lisp
lisp
-*- Mode:Lisp; Syntax:ANSI-Common-LISP; Coding:us-ascii-unix; fill-column:158 -*- @file use-colorized.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 of discrete spaces ( Z_n).@EOL @parblock Copyright ( c ) 1996,1997,2008,2010,2015 , < > All rights reserved . 1 . Redistributions of source code must retain the above copyright notice , this list of conditions , and the following disclaimer . 2 . Redistributions in...
a2808a56c6b98c6ce0d156aa8852a77998fb01f7fe93882cd64df91ea1d03244
hercules-ci/hercules-ci-agent
Project.hs
# LANGUAGE TypeFamilies # module Hercules.CLI.Project where import qualified Data.Attoparsec.Text as A import Data.Has (Has) import qualified Data.UUID import Hercules.API (ClientAuth, Id, enterApiE) import Hercules.API.Id (Id (Id)) import Hercules.API.Name (Name (Name)) import Hercules.API.Projects (ProjectResourceG...
null
https://raw.githubusercontent.com/hercules-ci/hercules-ci-agent/43ca2239f768905be0cc5d8627699f15e1a60519/hercules-ci-cli/src/Hercules/CLI/Project.hs
haskell
# LANGUAGE TypeFamilies # module Hercules.CLI.Project where import qualified Data.Attoparsec.Text as A import Data.Has (Has) import qualified Data.UUID import Hercules.API (ClientAuth, Id, enterApiE) import Hercules.API.Id (Id (Id)) import Hercules.API.Name (Name (Name)) import Hercules.API.Projects (ProjectResourceG...
a30b3df230e7e6df8e06cfa0897e1a0ce80ef04a232b39b0664f6e3a3f7d84ff
rurban/clisp
floatprint.lisp
;; Printing of Floating-Point-Numbers with PRINT and FORMAT 10.2.1990 - 26.3.1990 8.9.1990 - 10.9.1990 Translation : 2003 - 04 - 26 The German variable names ' unten ' and ' oben ' where translated with ' below ' resp . ' above ' in English ! wlog = = without loss of generality 2004 - 03 - 2...
null
https://raw.githubusercontent.com/rurban/clisp/75ed2995ff8f5364bcc18727cde9438cca4e7c2c/src/floatprint.lisp
lisp
Printing of Floating-Point-Numbers with PRINT and FORMAT basic idea: Each real-number /= 0 represents an (open) interval. We print the decimal number with as few digits as possible, that is situated in this interval. increased. Here we utilize long-floats of arbitrary precision. based on: (sys::log2 digits) ret...
10.2.1990 - 26.3.1990 8.9.1990 - 10.9.1990 Translation : 2003 - 04 - 26 The German variable names ' unten ' and ' oben ' where translated with ' below ' resp . ' above ' in English ! wlog = = without loss of generality 2004 - 03 - 27 : Fixed printing of short floats like 1782592s0 . In or...
88296e65da8842fae33e86676bdab076c2cfc9051c358a8e31c4aebcba529821
elastic/apm-agent-ocaml
client.mli
include Elastic_apm.Client_intf.S with type 'a io := 'a Async.Deferred.t val set_reporter : Elastic_apm_async_reporter.Reporter.t option -> unit val make_context' : ?trace_id:Elastic_apm.Id.Trace_id.t -> ?parent_id:Elastic_apm.Id.Span_id.t -> ?request:Elastic_apm.Context.Http.Request.t -> kind:string -> str...
null
https://raw.githubusercontent.com/elastic/apm-agent-ocaml/d17dd0bb40f92c150befbd8c33a50e7bae165556/async_client/client.mli
ocaml
include Elastic_apm.Client_intf.S with type 'a io := 'a Async.Deferred.t val set_reporter : Elastic_apm_async_reporter.Reporter.t option -> unit val make_context' : ?trace_id:Elastic_apm.Id.Trace_id.t -> ?parent_id:Elastic_apm.Id.Span_id.t -> ?request:Elastic_apm.Context.Http.Request.t -> kind:string -> str...
94222396909da312e72c893a7714861a989d6444e527182072cdcfd0bd99425f
ghc/packages-Cabal
Condition.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # module Distribution.Types.Condition ( Condition(..), cNot, cAnd, cOr, simplifyCondition, ) where import Prelude () import Distribution.Compat.Prelude -- | A boolean expression parameterized over the variable type used. data Condition ...
null
https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/Cabal/Distribution/Types/Condition.hs
haskell
# LANGUAGE DeriveDataTypeable # | A boolean expression parameterized over the variable type used. | Boolean negation of a 'Condition' value. Terminating cases Recursing cases | Simplify the condition and return its free variables. ^ (partial) variable assignment gather free vars
# LANGUAGE DeriveGeneric # module Distribution.Types.Condition ( Condition(..), cNot, cAnd, cOr, simplifyCondition, ) where import Prelude () import Distribution.Compat.Prelude data Condition c = Var c | Lit Bool | CNot (Condition c) | COr (Condi...
f667f822bab78d93f4ae442b8c84c05034e24fd58553e6a381a088ea10b2bb28
s312569/clj-biosequence
protocols.clj
(in-ns 'clj-biosequence.core) (def return-nil (fn [_] nil)) (defprotocol fastaReduce (fasta-reduce [this func fold] "Applies a function to sequence data streamed line-by-line and reduces the results using the supplied `fold` function. Uses the core reducers library so the fold function needs to have an ...
null
https://raw.githubusercontent.com/s312569/clj-biosequence/b4d2a2750d8fd6a2b398d859879c193e00212415/src/clj_biosequence/protocols.clj
clojure
readers and files annotations others nil
(in-ns 'clj-biosequence.core) (def return-nil (fn [_] nil)) (defprotocol fastaReduce (fasta-reduce [this func fold] "Applies a function to sequence data streamed line-by-line and reduces the results using the supplied `fold` function. Uses the core reducers library so the fold function needs to have an ...
2070f4c3d238da4ce357d33c1a7e7fd73f72487dcc6877b93af3178c8bd88ddc
ftovagliari/ocamleditor
oebuild_tool.ml
OCamlEditor Copyright ( C ) 2010 - 2014 This file is part of OCamlEditor . OCamlEditor 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 3 of the License , or ( at y...
null
https://raw.githubusercontent.com/ftovagliari/ocamleditor/53284253cf7603b96051e7425e85a731f09abcd1/src/oebuild/oebuild_tool.ml
ocaml
* main ("-cs", Set compile_separately, " Compile separately without recompiling unmodified modules."); Compilation mode print_output_name Clean Build, install and run (compilation, None)
OCamlEditor Copyright ( C ) 2010 - 2014 This file is part of OCamlEditor . OCamlEditor 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 3 of the License , or ( at y...
3b249bb92064115fa8a871fb5aabd817fc3056369d33734f3437b5c60f554864
ghcjs/jsaddle
WKWebView.hs
module Language.Javascript.JSaddle.WKWebView ( run ) where run :: IO () -> IO () run = id # INLINE run #
null
https://raw.githubusercontent.com/ghcjs/jsaddle/97273656e28790ab6e35c827f8086cf47bfbedca/jsaddle-wkwebview/src-ghcjs/Language/Javascript/JSaddle/WKWebView.hs
haskell
module Language.Javascript.JSaddle.WKWebView ( run ) where run :: IO () -> IO () run = id # INLINE run #
5a4efc938a2365c7fac3e4688b75accf9e157ea592e6a1a253e13bdd100aa991
racket/drdr
replay.rkt
#lang racket/base (require racket/match racket/contract/base (prefix-in racket: racket/base) "formats.rkt" "status.rkt") (define replay-event (match-lambda [(struct stdout (bs)) (printf "~a\n" bs)] [(struct stderr (bs)) (eprintf "~a\n" bs)])) (define (replay-status s) (...
null
https://raw.githubusercontent.com/racket/drdr/a3e5e778a1c19e7312b98bab25ed95075783f896/replay.rkt
racket
(when (timeout? s) (when (exit? s) (printf "[replay-log] Took ~a\n"
#lang racket/base (require racket/match racket/contract/base (prefix-in racket: racket/base) "formats.rkt" "status.rkt") (define replay-event (match-lambda [(struct stdout (bs)) (printf "~a\n" bs)] [(struct stderr (bs)) (eprintf "~a\n" bs)])) (define (replay-status s) (...
fdd3e52b750611bcc461b8bee59ed0008e21d71ef087ef7415f9c78d0453f031
GaloisInc/daedalus
Compat.hs
# Language CPP , TemplateHaskell # # OPTIONS_GHC -Wno - orphans # module Daedalus.Compat where
null
https://raw.githubusercontent.com/GaloisInc/daedalus/d02dda2e149ffa0e7bcca59cddc4991b875006e4/daedalus-utils/src/Daedalus/Compat.hs
haskell
# Language CPP , TemplateHaskell # # OPTIONS_GHC -Wno - orphans # module Daedalus.Compat where
d4f76fa7b6c4e3ca3e323509e46eeef149ebebc1e475b4b9e235f15de71faf11
GillianPlatform/Gillian
wislConstants.ml
let internal_imports = [ "wisl_pointer_arith.gil"; "wisl_core.gil" ] let internal_prefix = "i__" module Prefix = struct let gvar = "gvar" let sgvar = "#wisl__" let loopinv_lab = "loopinv" let loop_lab = "loop" let ctn_lab = "continue" let fail_lab = "fail" let lbody_lab = "lbody" let end_lab = "end" ...
null
https://raw.githubusercontent.com/GillianPlatform/Gillian/3c6d690d82c1b9f63f5dbf2e9357dbde69e5071c/wisl/lib/ParserAndCompiler/wislConstants.ml
ocaml
let internal_imports = [ "wisl_pointer_arith.gil"; "wisl_core.gil" ] let internal_prefix = "i__" module Prefix = struct let gvar = "gvar" let sgvar = "#wisl__" let loopinv_lab = "loopinv" let loop_lab = "loop" let ctn_lab = "continue" let fail_lab = "fail" let lbody_lab = "lbody" let end_lab = "end" ...
5e1a9148d2cc7004e67fe5e61a31ba68c5d7a2bd19dcb7b019a743c84b95625e
racket/drracket
number-snip.rkt
#lang racket/base (require mred racket/class framework) (provide snip-class) (define snip-class (make-object number-snip:snip-class%)) (send snip-class set-classname (format "~s" `(lib "number-snip.ss" "drracket" "private"))) (send (get-the-snip-class-list) add snip-class)
null
https://raw.githubusercontent.com/racket/drracket/2d7c2cded99e630a69f05fb135d1bf7543096a23/drracket/drracket/private/number-snip.rkt
racket
#lang racket/base (require mred racket/class framework) (provide snip-class) (define snip-class (make-object number-snip:snip-class%)) (send snip-class set-classname (format "~s" `(lib "number-snip.ss" "drracket" "private"))) (send (get-the-snip-class-list) add snip-class)
2419c9fb2053e7007df170987b4cab97f4a096b33d17a76d37e27073c9a213d7
alaricsp/chicken-scheme
port-tests.scm
(require-extension srfi-1) (define *text* #<<EOF this is a test 33 > ( let ( ( in ( open - input - string " " ) ) ) ( close - input - port in ) (read-char in)) [09:40] <foof> Error: (read-char) port already closed: #<input port "(string)"> 33 > ( let ( ( in ( open - input - string " " ) ) ) ( close - input - po...
null
https://raw.githubusercontent.com/alaricsp/chicken-scheme/1eb14684c26b7c2250ca9b944c6b671cb62cafbc/tests/port-tests.scm
scheme
(require-extension srfi-1) (define *text* #<<EOF this is a test 33 > ( let ( ( in ( open - input - string " " ) ) ) ( close - input - port in ) (read-char in)) [09:40] <foof> Error: (read-char) port already closed: #<input port "(string)"> 33 > ( let ( ( in ( open - input - string " " ) ) ) ( close - input - po...
d2e70c94dc77212b752bbccbfbc477d7234f82a243eef2facaf3c4d4e2457989
racket/db
connect-util.rkt
#lang racket/base (require racket/class db/private/generic/interfaces db/private/generic/common) (provide kill-safe-connection virtual-connection connection-pool connection-pool? connection-pool-lease) manager% implements kill - safe manager thread w/ request cha...
null
https://raw.githubusercontent.com/racket/db/0336d2522a613e76ebf60705cea3be4c237c447e/db-lib/db/private/generic/connect-util.rkt
racket
other-evt : (-> evt) ---- Kill-safe wrapper Note: wrapper protects against kill-thread, but not from custodian-shutdown of ports, etc. If mgr is busy, then just return last-connected?, otherwise, do check. ---- ======================================== Virtual connection called from client thread called from ...
#lang racket/base (require racket/class db/private/generic/interfaces db/private/generic/common) (provide kill-safe-connection virtual-connection connection-pool connection-pool? connection-pool-lease) manager% implements kill - safe manager thread w/ request cha...
c4ff6c7eab0ca5c7458903b2d2bdad98a0aaa0794138101e2ffc141f35912f7e
picty/parsifal
pcapContainers.ml
open Parsifal open BasePTypes open PTypes open Pcap (* TODO: All this should be rewritten from scratch *) (* because of lots of shortcuts in the current implementation *) type connection_key = { source : ipv4 * int; destination : ipv4 * int; } let string_of_connexion_key k = Printf.sprin...
null
https://raw.githubusercontent.com/picty/parsifal/767a1d558ea6da23ada46d8d96a057514b0aa2a8/net/pcapContainers.ml
ocaml
TODO: All this should be rewritten from scratch because of lots of shortcuts in the current implementation TODO: Handle SYN/SYN-ACK TODO: Improve this function (it does not take segment overlapping into account TODO: What should we do with leftover here?
open Parsifal open BasePTypes open PTypes open Pcap type connection_key = { source : ipv4 * int; destination : ipv4 * int; } let string_of_connexion_key k = Printf.sprintf "%s:%d -> %s:%d\n" (string_of_ipv4 (fst k.source)) (snd k.source) (string_of_ipv4 (fst k.destination)) (snd k.destination) type se...
b9db540e984c6900931b02d3db36a64eb45481a5c386ea42c9bc622dad820263
brendanhay/statgrab
Internal.hs
{-# LANGUAGE DeriveGeneric #-} # LANGUAGE GeneralizedNewtypeDeriving # -- Module : System.Statgrab.Internal Copyright : ( c ) 2013 - 2015 < > License : This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . A copy of the M...
null
https://raw.githubusercontent.com/brendanhay/statgrab/26146944abc99a3ac312b2f557d5762b3a6aebb4/src/System/Statgrab/Internal.hs
haskell
# LANGUAGE DeriveGeneric # Module : System.Statgrab.Internal you can obtain it at /. Stability : experimental | Interface types for copying and unmarshalling libstatgrab structs into a
# LANGUAGE GeneralizedNewtypeDeriving # Copyright : ( c ) 2013 - 2015 < > License : This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . A copy of the MPL can be found in the LICENSE file or Maintainer : < > Portability : non - p...
f9c02c25c0265b8d0a34e48e5cab71451a650f29f48a2686ec39a6ae1a2e197d
chenyukang/eopl
18.scm
(load-relative "../libs/init.scm") (load-relative "./base/environments.scm") based on exercises 16 ;;; a little similar with let, ;;; but the vals should be a list-exp-val ;;;;;;;;;;;;;;;; grammatical specification ;;;;;;;;;;;;;;;; (define the-lexical-spec '((whitespace (whitespace) skip) (comment ("%" (arbno ...
null
https://raw.githubusercontent.com/chenyukang/eopl/0406ff23b993bfe020294fa70d2597b1ce4f9b78/ch3/18.scm
scheme
a little similar with let, but the vals should be a list-exp-val grammatical specification ;;;;;;;;;;;;;;;; new stuff sllgen boilerplate ;;;;;;;;;;;;;;;; an expressed value is either a number, a boolean or a procval. extractors: expval->num : ExpVal -> Int expval->bool : ExpVal -> Bool new stuff the interpret...
(load-relative "../libs/init.scm") (load-relative "./base/environments.scm") based on exercises 16 (define the-lexical-spec '((whitespace (whitespace) skip) (comment ("%" (arbno (not #\newline))) skip) (identifier (letter (arbno (or letter digit "_" "-" "?"))) symbol) (number (digit (arbno di...
8da5b6d7bbf363e8ecd93e79ebb68906807cea969a7aafa5f7607f750deb6ebe
kmi/irs
irs.lisp
Copyright © 2007 - 2010 The Open University (in-package #:cl-user) #+:lispworks (setf system:*stack-overflow-behaviour* :warn) Lispworks does n't seem to guess UTF-8 files properly , which is a shame since most files in the IRS are UTF-8 , and the rest are ;;; heading that way. We override its encoding detect...
null
https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/scripts/irs.lisp
lisp
heading that way. We override its encoding detection for files, the next guesser function. }}} ASDF system definition setup. image is in. definition relies on ASDF already being loaded, which can't be {{{ Image and deliverable build support }}} do, so persuade it. functionality is not realistic, at least not...
Copyright © 2007 - 2010 The Open University (in-package #:cl-user) #+:lispworks (setf system:*stack-overflow-behaviour* :warn) Lispworks does n't seem to guess UTF-8 files properly , which is a shame since most files in the IRS are UTF-8 , and the rest are and tell the editor to use UTF-8 . #+:lispworks (lw...
33d48d3bb8c6c60d7947fba6ed8154f660119ba3fff4c2c2530e5a6c1664236b
pallet/thread-expr
thread_expr_test.clj
(ns pallet.thread-expr-test (:use pallet.thread-expr clojure.test)) (deftest for->-test (is (= 7 (-> 1 (for-> [x [1 2 3]] (+ x))))) (is (= 13 (-> 1 (for-> [x [1 2 3]] (+ x) (+ x))))) (is (= 1 (-> 1 (for-> [x []] (+ x))))) (is (= 55 (-> 1 (for-> [x [1 2 3] y [2 3 4] ...
null
https://raw.githubusercontent.com/pallet/thread-expr/8db8f9cbf0d1ebf6945e2312c8d46d8191a68c5c/test/pallet/thread_expr_test.clj
clojure
(ns pallet.thread-expr-test (:use pallet.thread-expr clojure.test)) (deftest for->-test (is (= 7 (-> 1 (for-> [x [1 2 3]] (+ x))))) (is (= 13 (-> 1 (for-> [x [1 2 3]] (+ x) (+ x))))) (is (= 1 (-> 1 (for-> [x []] (+ x))))) (is (= 55 (-> 1 (for-> [x [1 2 3] y [2 3 4] ...
9f8386f4502f55062be5ecc8fd80c56fcd1a31ee7f04526cf396b24036aebbc1
racket/racket7
letrec.rkt
#lang racket/base (require "wrap.rkt" "infer-known.rkt") (provide letrec-splitable-values-binding? letrec-split-values-binding) ;; Detect binding of lambdas that were probably generated from an ;; R[56]RS program (define (letrec-splitable-values-binding? idss rhss) (and (pair? idss) (null?...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/schemify/letrec.rkt
racket
Detect binding of lambdas that were probably generated from an R[56]RS program
#lang racket/base (require "wrap.rkt" "infer-known.rkt") (provide letrec-splitable-values-binding? letrec-split-values-binding) (define (letrec-splitable-values-binding? idss rhss) (and (pair? idss) (null? (cdr idss)) (wrap-pair? (car rhss)) (eq? 'values (wrap-car (car rhss))...
d17038d8b981c4e0c551e21efa18a7347b2268afb87a65eab81246c630d5a134
rtoy/ansi-cl-tests
remf.lsp
;-*- Mode: Lisp -*- Author : Created : Sun Apr 20 07:38:18 2003 ;;;; Contains: Tests of REMF (in-package :cl-test) (compile-and-load "cons-aux.lsp") (deftest remf.1 (let ((x nil)) (values (remf x 'a) x)) nil ()) (deftest remf.2 (let ((x (list 'a 'b))) (values (not (null (remf x 'a))) x)...
null
https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/remf.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of REMF Test that explicit calls to macroexpand in subforms are done in the correct environment
Author : Created : Sun Apr 20 07:38:18 2003 (in-package :cl-test) (compile-and-load "cons-aux.lsp") (deftest remf.1 (let ((x nil)) (values (remf x 'a) x)) nil ()) (deftest remf.2 (let ((x (list 'a 'b))) (values (not (null (remf x 'a))) x)) t ()) (deftest remf.3 (let ((x (list 'a 'b 'a ...
9cf34b91f0cd125ed26c3e2c02761e4a80a32c7dcfa60fe40b8fdab506f98619
avsm/mirage-duniverse
introduce.ml
* Copyright ( C ) Citrix Systems Inc. * * This program 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 ; version 2.1 only . with the special * exception on linking described in file LI...
null
https://raw.githubusercontent.com/avsm/mirage-duniverse/983e115ff5a9fb37e3176c373e227e9379f0d777/ocaml_modules/xenstore/server/introduce.ml
ocaml
* Copyright ( C ) Citrix Systems Inc. * * This program 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 ; version 2.1 only . with the special * exception on linking described in file LI...
8e8bba2eced3787a6a28a9f07d06885614ac6d28fc03c9b8b57551dd991db185
matsen/pplacer
test_rerooting.ml
open Ppatteries open OUnit open Test_util open Convex let suite = List.map (fun (before, reroot_at, after) -> let before' = Newick_gtree.of_string before and after' = Newick_gtree.of_string after in Printf.sprintf "%s@%d" before reroot_at >:: fun () -> before' |> Gtree.get_stree |>...
null
https://raw.githubusercontent.com/matsen/pplacer/f40a363e962cca7131f1f2d372262e0081ff1190/tests/pplacer/test_rerooting.ml
ocaml
open Ppatteries open OUnit open Test_util open Convex let suite = List.map (fun (before, reroot_at, after) -> let before' = Newick_gtree.of_string before and after' = Newick_gtree.of_string after in Printf.sprintf "%s@%d" before reroot_at >:: fun () -> before' |> Gtree.get_stree |>...
9d3dea6434a5674fce5b1d04e0eb255445af067ba690e9332f6022647cb96042
Plisp/vico
interface.lisp
(in-package :vico-tickit) (defconstant +tickit-window-popup+ (cffi:foreign-enum-value 'tkt:tickitwindowflags :tickit-window-popup)) ;;; state class (defclass tickit-instance () ((%tickit :initarg :%tickit :reader %tickit :documentation "") (windows :initarg :buffers :type l...
null
https://raw.githubusercontent.com/Plisp/vico/40606aea583ef9db98941ee337feb47f10c9696c/ui/tickit/interface.lisp
lisp
state class timers ()) (tkt:tickit-watch-cancel)) window interface TODO tab character control characters are displayed as ^* TODO computation of changed region
(in-package :vico-tickit) (defconstant +tickit-window-popup+ (cffi:foreign-enum-value 'tkt:tickitwindowflags :tickit-window-popup)) (defclass tickit-instance () ((%tickit :initarg :%tickit :reader %tickit :documentation "") (windows :initarg :buffers :type list ...
ba59b4700e614f221d0494c72bdfb824a390c323151f7663b75453f0c96e89bf
ocaml/ocamlbuild
d.ml
(***********************************************************************) (* *) (* ocamlbuild *) (* *) , , projet Galliu...
null
https://raw.githubusercontent.com/ocaml/ocamlbuild/792b7c8abdbc712c98ed7e69469ed354b87e125b/test/test5/d.ml
ocaml
********************************************************************* ocamlbuild ...
, , projet Gallium , INRIA Rocquencourt Copyright 2007 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with Format.printf "C.B.b = %d@." C.B.b
0c1f60e62ec9e49e49a7b2c0957b804b3e512676a53b860c93ad0e7dffac91c9
forward/incanter-BLAS
internal.clj
;;; internal.clj -- Internal functions by April 19 , 2009 Copyright ( c ) , 2009 . All rights reserved . The use and distribution terms for this software are covered by the Eclipse ;; Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.htincanter.at the root of this ;; distributio...
null
https://raw.githubusercontent.com/forward/incanter-BLAS/da48558cc9d8296b775d8e88de532a4897ee966e/src/main/clojure/incanter/internal.clj
clojure
internal.clj -- Internal functions Public License 1.0 (-1.0.php) which can be found in the file epl-v10.htincanter.at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software...
by April 19 , 2009 Copyright ( c ) , 2009 . All rights reserved . The use and distribution terms for this software are covered by the Eclipse CHANGE LOG April 19 , 2009 : First version (ns incanter.internal (:import [uk.co.forward.clojure.incanter DoubleFunction DoubleDoubleFunction DoubleF...
5c07b796acbfe9366f3ca1008ad627d196ffc42639758c4c2555329b62deb62b
gator1/jepsen
client.clj
(ns jepsen.cockroach.client "For talking to cockroachdb over the network" (:require [clojure.tools.logging :refer :all] [clojure.java.jdbc :as j] [clojure.string :as str] [clojure.pprint :refer [pprint]] [jepsen [util :as util :refer [meh]] [reconn...
null
https://raw.githubusercontent.com/gator1/jepsen/1932cbd72cbc1f6c2a27abe0fe347ea989f0cfbb/cockroachdb/src/jepsen/cockroach/client.clj
clojure
for secure mode Postgres user and dbname for jdbc-mode = :pg-* must already exist must already exist must already exist Wrap underlying exception error with [:batch ...]
(ns jepsen.cockroach.client "For talking to cockroachdb over the network" (:require [clojure.tools.logging :refer :all] [clojure.java.jdbc :as j] [clojure.string :as str] [clojure.pprint :refer [pprint]] [jepsen [util :as util :refer [meh]] [reconn...
c3bd005491b88a25558f14a28121270dbfdcf0095fb0d97f2ebbea280668ffba
herd/herdtools7
hardwareExtra.ml
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/de608e9a67a4c91e442bb0f807c6641a4283b4be/litmus/hardwareExtra.ml
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2022 - 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...
20e4ac73df4dc4a94d194b3a4beb19c611d3f179f52588f5d9d1ab3ddcd213b8
stritzinger/opcua
opcua_channel.erl
-module(opcua_channel). %%% BEHAVIOUR opcua_channel DEFINITION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -callback channel_id(State) -> ChannelId when State :: term(), ChannelId :: opcua:channel_id(). -callback lock(Chunk, Conn, State) -> {ok, Chunk, Conn, State} | {error, Reason} when Chunk :: opcua:chunk...
null
https://raw.githubusercontent.com/stritzinger/opcua/a9802f829f80e6961871653f4d3c932f9496ba99/src/opcua_channel.erl
erlang
BEHAVIOUR opcua_channel DEFINITION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-module(opcua_channel). -callback channel_id(State) -> ChannelId when State :: term(), ChannelId :: opcua:channel_id(). -callback lock(Chunk, Conn, State) -> {ok, Chunk, Conn, State} | {error, Reason} when Chunk :: opcua:chunk(), Conn :: opcua:connection(), State :: term(), Reaso...
766d42a12c7fc3eaf3446e7629c1c05c845723a2d72743e06af6fc69a1fa0e96
kupl/LearnML
patch.ml
let rec iter ((n : int), (f : int -> int)) (x : int) : int = if n = 0 then x else if n < 1 then raise Failure "ERROR" else f (iter (n - 1, f) x)
null
https://raw.githubusercontent.com/kupl/LearnML/c98ef2b95ef67e657b8158a2c504330e9cfb7700/result/cafe2/iter/sub25/patch.ml
ocaml
let rec iter ((n : int), (f : int -> int)) (x : int) : int = if n = 0 then x else if n < 1 then raise Failure "ERROR" else f (iter (n - 1, f) x)
813b1ef972b44250cef61a1c4cdb8de8c0e96e50691c1febf150a0a008511e57
mon-key/unicly
unicly-bit-vectors.lisp
: FILE - CREATED < Timestamp : # { 2011 - 08 - 13T19:18:12 - 04:00Z}#{11326 } - by MON > ;;; :FILE unicly/unicly-bit-vectors.lisp ;;; ============================== ;;; ============================== ;; :NOTE Per RFC 4.1.3 bit 48 should always be 0. The UUID as bit field : WEIGHT INDEX OCTETS ...
null
https://raw.githubusercontent.com/mon-key/unicly/f9bd21446f35e28766d2f1ada2741399b14d93cb/unicly-bit-vectors.lisp
lisp
:FILE unicly/unicly-bit-vectors.lisp ============================== ============================== :NOTE Per RFC 4.1.3 bit 48 should always be 0. The UUIDs bit-vector representation (uuid-to-bit-vector (make-v5-uuid *uuid-namespace-dns* "bubba")) ! ! ! ! ! ! ! ! ...
: FILE - CREATED < Timestamp : # { 2011 - 08 - 13T19:18:12 - 04:00Z}#{11326 } - by MON > The UUID as bit field : WEIGHT INDEX OCTETS BIT - FIELD - PER - OCTET 4 | ( 0 31 ) | 255 255 255 255 | # * 11111111 # * 11111111 # * 11111111 # * 11111111 | % uuid_time - ...
d51e4ac53b3463f84ab8101555980f74894337faaa8f5ce8be8c72f446a8b6f4
ragkousism/Guix-on-Hurd
pki.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2013 , 2014 , 2016 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU 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...
null
https://raw.githubusercontent.com/ragkousism/Guix-on-Hurd/e951bb2c0c4961dc6ac2bda8f331b9c4cee0da95/guix/pki.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2013 , 2014 , 2016 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (guix pki) #:use-module (guix config) #:use-module (guix pk-crypto) #:use-modul...
a1dec7757c59cb54939fdd55700808161ac44f560ddf706e08cd04beda982ba4
juji-io/datalevin
sparselist.clj
(ns ^:no-doc datalevin.sparselist "Sparse array list of integers" (:refer-clojure :exclude [get set remove]) (:require [taoensso.nippy :as nippy]) (:import [java.io Writer DataInput DataOutput] [java.nio ByteBuffer] [datalevin.utl GrowingIntArray] [me.lemire.integercompression IntCompressor] [...
null
https://raw.githubusercontent.com/juji-io/datalevin/8eceb2fa17933eb248edb07b717a70228c1987ba/src/datalevin/sparselist.clj
clojure
don't compress small array
(ns ^:no-doc datalevin.sparselist "Sparse array list of integers" (:refer-clojure :exclude [get set remove]) (:require [taoensso.nippy :as nippy]) (:import [java.io Writer DataInput DataOutput] [java.nio ByteBuffer] [datalevin.utl GrowingIntArray] [me.lemire.integercompression IntCompressor] [...
4e5c890b776af2488f4a7d9321a55fc9d97b8f2ba431b0c279a98110a4215cac
techascent/tech.datatype
mmul_test.clj
(ns tech.v2.tensor.mmul-test (:require [tech.v2.datatype :as dtype] [tech.v2.tensor :as tens] [tech.v2.tensor.select-test :refer [tensor-default-context]] [clojure.test :refer :all])) (defn do-basic-mm [container-type datatype] (let [n-elems (* 2 5) test-mat (tens/->t...
null
https://raw.githubusercontent.com/techascent/tech.datatype/8cc83d771d9621d580fd5d4d0625005bd7ab0e0c/test/tech/v2/tensor/mmul_test.clj
clojure
sparse is disabled for now
(ns tech.v2.tensor.mmul-test (:require [tech.v2.datatype :as dtype] [tech.v2.tensor :as tens] [tech.v2.tensor.select-test :refer [tensor-default-context]] [clojure.test :refer :all])) (defn do-basic-mm [container-type datatype] (let [n-elems (* 2 5) test-mat (tens/->t...
7137e21176e0506040106a0e0afd04852ea056870044f7fd44dc1639a0135af0
tlaplus/tlapm
ext_induct.mli
Copyright 2006 INRIA val is_constr : string -> bool;;
null
https://raw.githubusercontent.com/tlaplus/tlapm/b82e2fd049c5bc1b14508ae16890666c6928975f/zenon/ext_induct.mli
ocaml
Copyright 2006 INRIA val is_constr : string -> bool;;
23581f5ce1f5d1deb881569dc4ad6099a5a1f111591a4d8e9a749516516c1315
input-output-hk/plutus-apps
Checkpoint.hs
# LANGUAGE AllowAmbiguousTypes # {-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE DerivingStrategies #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE GADTs # {-# LANGUAGE KindSignatures #-} # LANGUAGE LambdaCase # ...
null
https://raw.githubusercontent.com/input-output-hk/plutus-apps/d637b1916522e4ec20b719487a8a2e066937aceb/plutus-contract/src/Plutus/Contract/Checkpoint.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DeriveAnyClass # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE KindSignatures # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # # LANGUAGE TypeOperators # * Checkpoints $checkpoints $checkpoints This module ...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DeriveGeneric # # LANGUAGE GADTs # # LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # module Plutus.Contract.Checkpoint( Checkpoint(..) , CheckpointError(..) ...
aa8d80561c5145c7c1c2fd85c66b2b133c1d5699fc4ec9a4060ac7df038e1885
M4GNV5/Geschwindigkeitsficken
CopyLoops.hs
module Brainfuck.Optimizations.CopyLoops (optimizeLoops) where import Data.Ratio import Data.Maybe import Data.Foldable import qualified Data.Map.Lazy as M import Brainfuck isBasicOp (Add _ (Const _)) = True isBasicOp (Shift _) = True isBasicOp (Comment _) = True isBasicOp _ = False TO...
null
https://raw.githubusercontent.com/M4GNV5/Geschwindigkeitsficken/1567ea4213f72212b43f97629809f255b6b5f8a3/src/Brainfuck/Optimizations/CopyLoops.hs
haskell
module Brainfuck.Optimizations.CopyLoops (optimizeLoops) where import Data.Ratio import Data.Maybe import Data.Foldable import qualified Data.Map.Lazy as M import Brainfuck isBasicOp (Add _ (Const _)) = True isBasicOp (Shift _) = True isBasicOp (Comment _) = True isBasicOp _ = False TO...
f30af01776ce92454566d2de0b1e5b23850997fd0efbc35b3f26baf3dc483f32
thangngoc89/denu
main.ml
let () = Depend_on_main.run ()
null
https://raw.githubusercontent.com/thangngoc89/denu/aadd9eed431181cd3da3da14063b07bacfd0377e/play/main.ml
ocaml
let () = Depend_on_main.run ()
023f772e3593b36ca15139f9b28b9f99b751f959186b2c925197af23ba20a8e1
gndl/graffophone
voice.ml
* Copyright ( C ) 2015 Ga � * * All rights reserved . This file is distributed under the terms of the * GNU General Public License version 3.0 . * * This program is distributed in the hope that it will be useful , * but WITHOUT ANY WARRANTY ; without even the implied warranty of * MERCHAN...
null
https://raw.githubusercontent.com/gndl/graffophone/71a12fcf8e799bb8ebfc37141b300ecbc9475c43/plugin/voice.ml
ocaml
* Copyright ( C ) 2015 Ga � * * All rights reserved . This file is distributed under the terms of the * GNU General Public License version 3.0 . * * This program is distributed in the hope that it will be useful , * but WITHOUT ANY WARRANTY ; without even the implied warranty of * MERCHAN...
5c86fcc91c85fd0cc75eb96f4d5bd8cfd58d66c05fc3a59bd6c803e5aa469b11
mbutterick/aoc-racket
day05.rkt
#lang scribble/lp2 @(require scribble/manual aoc-racket/helper) @aoc-title[5] @defmodule[aoc-racket/day05] @link[""]{The puzzle}. Our @link-rp["day05-input.txt"]{input} is a list of random-looking but not really random text strings. @chunk[<day05> <day05-setup> <day05-q1> <day05-q2> <day...
null
https://raw.githubusercontent.com/mbutterick/aoc-racket/2c6cb2f3ad876a91a82f33ce12844f7758b969d6/day05.rkt
racket
#lang scribble/lp2 @(require scribble/manual aoc-racket/helper) @aoc-title[5] @defmodule[aoc-racket/day05] @link[""]{The puzzle}. Our @link-rp["day05-input.txt"]{input} is a list of random-looking but not really random text strings. @chunk[<day05> <day05-setup> <day05-q1> <day05-q2> <day...
cc5682468e2e26ea69cadef843b373305ee89bf04c2f54748c21dde3a1cbced8
racket/rhombus-prototype
unquote-binding-primitive.rkt
#lang racket/base (require (for-syntax racket/base syntax/parse/pre enforest/hier-name-parse enforest/name-parse enforest/syntax-local "name-path-op.rkt" "attribute-name.rkt") syntax/pa...
null
https://raw.githubusercontent.com/racket/rhombus-prototype/b05f8a1515cf01c6b431f820c2a7f62b2b9532a8/rhombus/private/unquote-binding-primitive.rkt
racket
nested quasiquote matching, `_` is in "quasiquote.rkt" so it can be matched literally, and plain identifiers are implemented in "unquote-binding-identifier.rkt" empty parentheses match an empty group, which is only useful for matching an empty group tail shortcut for kind mismatch used for `::` and for `pattern`...
#lang racket/base (require (for-syntax racket/base syntax/parse/pre enforest/hier-name-parse enforest/name-parse enforest/syntax-local "name-path-op.rkt" "attribute-name.rkt") syntax/pa...
d5e21b191d0b3ee93fbb8e3720a2120383a45dac6fafeb4bab8feeb44a189ccd
keera-studios/haskell-titan
TestStreamChart.hs
import Graphics.UI.Gtk import Graphics.UI.Gtk.StreamChart main :: IO () main = do _ <- initGUI window <- windowNew -- (w,h) <- widgetGetSize window -- -- adjustX <- adjustmentNew 1 0 10000000 1 (fromIntegral w) (fromIntegral w) -- adjustY <- adjustmentNew 1 0 10000 1 (fromIntegral h) (fromIntegr...
null
https://raw.githubusercontent.com/keera-studios/haskell-titan/958ddd2b468af00db46004a683c1c7aebe81526c/titan/examples/TestStreamChart.hs
haskell
(w,h) <- widgetGetSize window adjustX <- adjustmentNew 1 0 10000000 1 (fromIntegral w) (fromIntegral w) adjustY <- adjustmentNew 1 0 10000 1 (fromIntegral h) (fromIntegral h) viewport <- viewportNew adjustX adjustY sw <- scrolledWindowNew (Just adjustX) (Just adjustY) scrolledWindowSetPolicy sw Poli...
import Graphics.UI.Gtk import Graphics.UI.Gtk.StreamChart main :: IO () main = do _ <- initGUI window <- windowNew sw <- scrolledWindowNew Nothing Nothing streamChart <- streamChartNew widgetSetSizeRequest streamChart 10000 10000 containerAdd viewport streamChart scrolledWindowAddWithView...
208aab1acd7de12dfd2446bec9b2692667cd3f25f0f6f82bd3ab057626c8a25c
clojure-interop/google-cloud-clients
SpeechSettings.clj
(ns com.google.cloud.speech.v1.SpeechSettings "Settings class to configure an instance of SpeechClient. The default instance has everything set to sensible defaults: The default service address (speech.googleapis.com) and default port (443) are used. Credentials are acquired automatically through Applica...
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.speech/src/com/google/cloud/speech/v1/SpeechSettings.clj
clojure
"
(ns com.google.cloud.speech.v1.SpeechSettings "Settings class to configure an instance of SpeechClient. The default instance has everything set to sensible defaults: The default service address (speech.googleapis.com) and default port (443) are used. Credentials are acquired automatically through Applica...
82da0c641e8895855468f47759d480465248bc644f8cbdcae5ab305ee1717d3c
ghc/ghc
Exit.hs
# LANGUAGE Trustworthy # ----------------------------------------------------------------------------- -- | -- Module : System.Exit Copyright : ( c ) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : -- Stability : provisional -- Port...
null
https://raw.githubusercontent.com/ghc/ghc/6fe2d778e9ad015f35c520724d7f222a015586ed/libraries/base/System/Exit.hs
haskell
--------------------------------------------------------------------------- | Module : System.Exit License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : provisional Portability : portable Exiting the program. ------------------------------------------------------...
# LANGUAGE Trustworthy # Copyright : ( c ) The University of Glasgow 2001 module System.Exit ( ExitCode(ExitSuccess,ExitFailure) , exitWith , exitFailure , exitSuccess , die ) where import System.IO import GHC.IO import GHC.IO.Exception | Computation ' exitWith ' @code@ throws...
6902313fc76326c8e16b864a5677c62f91a3c5dbf663f9675a3ce38c82de048e
immoh/lein-nsorg
nsorg.clj
(ns leiningen.nsorg "Organize ns forms in source files." (:require [leiningen.core.main :as lein] [nsorg.cli :as cli] [nsorg.cli.terminal :as terminal])) (defn ^:no-project-needed nsorg "Leiningen plugin for organizing ns forms in source files. Usage: lein nsorg [OPTIONS] [PATHS] Clojur...
null
https://raw.githubusercontent.com/immoh/lein-nsorg/63d1c115451f6fe7883718bb3287a03d33d5d3f9/src/leiningen/nsorg.clj
clojure
(ns leiningen.nsorg "Organize ns forms in source files." (:require [leiningen.core.main :as lein] [nsorg.cli :as cli] [nsorg.cli.terminal :as terminal])) (defn ^:no-project-needed nsorg "Leiningen plugin for organizing ns forms in source files. Usage: lein nsorg [OPTIONS] [PATHS] Clojur...
b64f452692149d11f57143f0892f6ded9503a77c4ccecb43963800be514ef339
hopbit/sonic-pi-snippets
dp_fac_6_a.sps
# key: dp fac 6 a # point_line: 0 # point_index: 0 # -- # DP FAC 6 A: Beat Factory Method implementation class BeatFactoryMethod def initialize(samples_path) raise 'Use one of sublasses' end def createBeat(beat_name) rais 'Unimplemented method' end end # BPM 88-92 class ModeratoBeatFactory < BeatFac...
null
https://raw.githubusercontent.com/hopbit/sonic-pi-snippets/2232854ac9587fc2f9f684ba04d7476e2dbaa288/dp/dp_fac_6_a.sps
scheme
# key: dp fac 6 a # point_line: 0 # point_index: 0 # -- # DP FAC 6 A: Beat Factory Method implementation class BeatFactoryMethod def initialize(samples_path) raise 'Use one of sublasses' end def createBeat(beat_name) rais 'Unimplemented method' end end # BPM 88-92 class ModeratoBeatFactory < BeatFac...
51abdc996f137586b87043383c11e084308c9e5f2e5995a5c5d6e82dbeba46af
achirkin/vulkan
VK_NV_representative_fragment_test.hs
# OPTIONS_HADDOCK not - home # {-# LANGUAGE DataKinds #-} {-# LANGUAGE MagicHash #-} # LANGUAGE PatternSynonyms # {-# LANGUAGE Strict #-} {-# LANGUAGE ViewPatterns #-} module Graphics.Vulkan.Ext.VK_NV_representative_fragment_test * Vulkan extension : @VK_NV_representative_fragment_test@ ...
null
https://raw.githubusercontent.com/achirkin/vulkan/b2e0568c71b5135010f4bba939cd8dcf7a05c361/vulkan-api/src-gen/Graphics/Vulkan/Ext/VK_NV_representative_fragment_test.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE MagicHash # # LANGUAGE Strict # # LANGUAGE ViewPatterns # | supported: @vulkan@ contact: @Kedarnath Thangudu @kthangudu@ type: @device@ Extension number: @167@ > #include "vk_platform.h"
# OPTIONS_HADDOCK not - home # # LANGUAGE PatternSynonyms # module Graphics.Vulkan.Ext.VK_NV_representative_fragment_test * Vulkan extension : @VK_NV_representative_fragment_test@ author : module Graphics.Vulkan.Marshal, VkBlendFactor(..), VkBlendOp(..), VkBlendOverlapEXT(..), AHardwareBuffer(), AN...
e674c0bc19b4af2f18774cfa4ebc0b10dd050b48bcb82d4df1611b8647f6c15a
dbuenzli/trel
mkv_test.ml
--------------------------------------------------------------------------- Copyright ( c ) 2017 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
null
https://raw.githubusercontent.com/dbuenzli/trel/990084e92fe44a0f1ffa2d8a0ebc20731ab9eafc/test/mkv_test.ml
ocaml
--------------------------------------------------------------------------- Copyright ( c ) 2017 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
b2d1741cbb6aaa2d479026b7b8fab27af57a239eb3777edadf78124c5ec9d99a
juxt/roll
service_security.cljs
(ns roll.modules.service-security (:require [roll.utils :refer [resolve-path ->json $ ->snake]])) (defn- aws-security-groups "Generate a security group for each service." [{:keys [environment] :as config}] (into {} (for [[service-k {:keys [port]}] (:services config) :let [environment (str envi...
null
https://raw.githubusercontent.com/juxt/roll/1ef07d72f05b5604eec4f7d6a5dbf0d21ec3c8b3/src/roll/modules/service_security.cljs
clojure
(ns roll.modules.service-security (:require [roll.utils :refer [resolve-path ->json $ ->snake]])) (defn- aws-security-groups "Generate a security group for each service." [{:keys [environment] :as config}] (into {} (for [[service-k {:keys [port]}] (:services config) :let [environment (str envi...
08eff6af01a86f992645efbac66e3526885db4966740923c3d4d4c13048c3d08
fukamachi/fast-websocket
fast-websocket.lisp
(in-package :cl-user) (defpackage fast-websocket (:use :cl #:fast-websocket.constants #:fast-websocket.ws) (:import-from :fast-websocket.parser #:make-ll-parser) (:import-from :fast-websocket.compose #:compose-frame) (:import-from :fast-websocket.payload ...
null
https://raw.githubusercontent.com/fukamachi/fast-websocket/24c0217e7c0d25b6ef6ab799452cba0b9fb58f44/src/fast-websocket.lisp
lisp
errors (message) (payload) (payload) (payload &key code) (code reason)
(in-package :cl-user) (defpackage fast-websocket (:use :cl #:fast-websocket.constants #:fast-websocket.ws) (:import-from :fast-websocket.parser #:make-ll-parser) (:import-from :fast-websocket.compose #:compose-frame) (:import-from :fast-websocket.payload ...
ee659f52fc4798e634893799864679a50c6b8d553accfe35edff355534145026
bhuztez/russell
russell_prim_shell.erl
-module(russell_prim_shell). -export([run/1, format_error/1]). format_error({unknown_command, Name}) -> io_lib:format("unknown command ~ts", [Name]); format_error(step_not_allowed) -> "proof step not allowed". run([Filename]) -> case russell_prim:parse(Filename) of {ok, Forms} -> cas...
null
https://raw.githubusercontent.com/bhuztez/russell/eaafa8207f2da3e2544a567edf10e6d33120c4ce/src/russell_prim_shell.erl
erlang
-module(russell_prim_shell). -export([run/1, format_error/1]). format_error({unknown_command, Name}) -> io_lib:format("unknown command ~ts", [Name]); format_error(step_not_allowed) -> "proof step not allowed". run([Filename]) -> case russell_prim:parse(Filename) of {ok, Forms} -> cas...
4e53df6ec27a409829ec8e94cbac11d64d642e60199f38f6c1d4e7394f3e5d35
nikita-volkov/rerebase
Complex.hs
module Data.Complex ( module Rebase.Data.Complex ) where import Rebase.Data.Complex
null
https://raw.githubusercontent.com/nikita-volkov/rerebase/25895e6d8b0c515c912c509ad8dd8868780a74b6/library/Data/Complex.hs
haskell
module Data.Complex ( module Rebase.Data.Complex ) where import Rebase.Data.Complex
80079a5c60ff4707f2610b9e52021c1a61a5141a9a9cbe47acbb6c94fe4ef1bd
brendanhay/gogol
Product.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/8cbceeaaba36a3c08712b2e272606161500fbe91/lib/services/gogol-tpu/gen/Gogol/TPU/Internal/Product.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated * Empty * GenerateServiceIdentityRequest * GenerateServiceIdentityResponse * GetGuestAttributesRequest * GetGuestAttributesResponse * GuestAttributesEntry * GuestAttributesValue * ListAcceleratorTypesResponse * ListNodesRes...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
3bb300e4abd328f7407136e52966212802daf5d61def546d3797bdfc931339d3
justinethier/cyclone
bytevector-tests.scm
(import (scheme base) (scheme write)) (write #u8(1 2 3 4 5)) (write (make-bytevector 2 12)) ; =⇒ #u8(12 12) = ⇒ # u8(1 3 5 1 3 5 ) = ⇒ # u8 ( ) (write (bytevector-append (make-bytevector 1 1) (make-bytevector 2 2) (make-bytevector 3 3) )) = ⇒ 8 (write (let ((bv (bytevector 1 2 3 4))...
null
https://raw.githubusercontent.com/justinethier/cyclone/a1c2a8f282f37ce180a5921ae26a5deb04768269/tests/bytevector-tests.scm
scheme
=⇒ #u8(12 12)
(import (scheme base) (scheme write)) (write #u8(1 2 3 4 5)) = ⇒ # u8(1 3 5 1 3 5 ) = ⇒ # u8 ( ) (write (bytevector-append (make-bytevector 1 1) (make-bytevector 2 2) (make-bytevector 3 3) )) = ⇒ 8 (write (let ((bv (bytevector 1 2 3 4))) (bytevector-u8-set! bv 1 3) bv) = ⇒ #...
abd389f98c42e08421c54dcb6ee5b71a47bba21a5581a2813cfdc7a41355de88
CryptoKami/cryptokami-core
Genesis.hs
| Aeson instances for GenesisSpec and related datatypes . module Pos.Aeson.Genesis ( * FromJSONKey RedeemPublicKey -- * FromJSON -- ** GenesisAvvmBalances -- ** GenesisWStakeholders -- ** GenesisNonAvvmBalances -- ** VssCertificatesMap * * GenesisVssCertificatesMap ...
null
https://raw.githubusercontent.com/CryptoKami/cryptokami-core/12ca60a9ad167b6327397b3b2f928c19436ae114/core/Pos/Aeson/Genesis.hs
haskell
* FromJSON ** GenesisAvvmBalances ** GenesisWStakeholders ** GenesisNonAvvmBalances ** VssCertificatesMap ** GenesisDelegation ** FakeAvvmOptions ** GenesisInitializer ** ProtocolConstants ** GenesisSpec
| Aeson instances for GenesisSpec and related datatypes . module Pos.Aeson.Genesis ( * FromJSONKey RedeemPublicKey * * GenesisVssCertificatesMap * * TestnetBalanceOptions ) where import Universum import Control.Lens (_Left) import Data.Aeson (FromJSON (..), FromJSO...
d8d109849934d33eb44e0c9f63f4b3e789fc2fd6cb9ad930abf923c8076135f6
Elzair/nazghul
earl.scm
;;---------------------------------------------------------------------------- ;; Schedule ;; ;; The schedule below is for the place "Trigrave" ;;---------------------------------------------------------------------------- (kern-mk-sched 'sch_earl (list 0 0 trigrave-earls-bed "sleeping") ...
null
https://raw.githubusercontent.com/Elzair/nazghul/8f3a45ed6289cd9f469c4ff618d39366f2fbc1d8/worlds/haxima-1.001/earl.scm
scheme
---------------------------------------------------------------------------- Schedule The schedule below is for the place "Trigrave" ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- Gob ------------------------...
(kern-mk-sched 'sch_earl (list 0 0 trigrave-earls-bed "sleeping") (list 5 0 trigrave-tavern-table-3a "eating") (list 6 0 trigrave-earls-counter "working") (list 12 0 trigrave-tavern-table-3a "eating") (list 13 0 trigrave-earl...
66c289b89fdc1f8307a8ba50b586c7c28e30f7d069e00d7b41444d681b612a6c
ohri-anurag/TwoFifty-Backend
Card.hs
# LANGUAGE TemplateHaskell # module Card where import Data.Aeson.TH import Data.Foldable (foldlM) import qualified Data.Map as M import Data.Maybe (fromJust) import System.Random (getStdRandom, randomR) data Suit = Spade | Heart | Club | Diamond deriving (Eq, Ord, Show, Enum) data CardValue = Two | T...
null
https://raw.githubusercontent.com/ohri-anurag/TwoFifty-Backend/746a57afad9abdfd47c064b3c02321ef0ff2c426/src/Card.hs
haskell
JSON derivations
# LANGUAGE TemplateHaskell # module Card where import Data.Aeson.TH import Data.Foldable (foldlM) import qualified Data.Map as M import Data.Maybe (fromJust) import System.Random (getStdRandom, randomR) data Suit = Spade | Heart | Club | Diamond deriving (Eq, Ord, Show, Enum) data CardValue = Two | T...
835e3de47905ceae662848efa124b404fdd41a4e43f47ed85137216450bf68e5
rfkm/zou
handler.clj
(ns zou.web.handler (:require [clojure.string :as str] [zou.util :as u] [zou.web.handler.args-mapper :as mapper] [zou.web.middleware.proto :as proto])) (defmacro -defhandler [handler-tag ns-tag name & fdecl] (let [m {handler-tag (if (keyword? (first fdecl)) ...
null
https://raw.githubusercontent.com/rfkm/zou/228feefae3e008f56806589cb8019511981f7b01/web/src/zou/web/handler.clj
clojure
middleware
(ns zou.web.handler (:require [clojure.string :as str] [zou.util :as u] [zou.web.handler.args-mapper :as mapper] [zou.web.middleware.proto :as proto])) (defmacro -defhandler [handler-tag ns-tag name & fdecl] (let [m {handler-tag (if (keyword? (first fdecl)) ...
88b720834885c0f6944ba3c87bb4ffbc92fd9d391b343a5cd4a0131ea453647a
andy128k/cl-gobject-introspection
object.lisp
(in-package :gir) (defgeneric field (object name)) (defgeneric set-field! (object name value)) (defun c-name (name) (etypecase name (string name) (symbol (string-downcase (substitute #\_ #\- (symbol-name name)))))) (defclass object-instance () ((class :initarg :class :reader gir-class-of) (this :inita...
null
https://raw.githubusercontent.com/andy128k/cl-gobject-introspection/ce7d470debf6e3e5e828430f69b190dfbb037c3e/src/object.lisp
lisp
when gtype is not in g-i
(in-package :gir) (defgeneric field (object name)) (defgeneric set-field! (object name value)) (defun c-name (name) (etypecase name (string name) (symbol (string-downcase (substitute #\_ #\- (symbol-name name)))))) (defclass object-instance () ((class :initarg :class :reader gir-class-of) (this :inita...
5bd8fca5755702a91d9938973bb85734720f7f33c3948e16d1940c0b513a807b
cjohansen/gadget-inspector
diff_test.cljc
(ns gadget.diff-test (:require [gadget.diff :as sut] #?(:clj [clojure.test :refer [deftest testing is]] :cljs [cljs.test :refer [deftest testing is]]))) (deftest diff-test (testing "Reports added keys" (is (= (sut/diff {} {:a 1 :b 2}) {:added #{:a :b} :removed ...
null
https://raw.githubusercontent.com/cjohansen/gadget-inspector/c7b8ed79fbba7218bb214955342ed19d5cc57bfd/lib/test/gadget/diff_test.cljc
clojure
(ns gadget.diff-test (:require [gadget.diff :as sut] #?(:clj [clojure.test :refer [deftest testing is]] :cljs [cljs.test :refer [deftest testing is]]))) (deftest diff-test (testing "Reports added keys" (is (= (sut/diff {} {:a 1 :b 2}) {:added #{:a :b} :removed ...
d27b0fe0aff4af236e9fc752ec01a59b346553f089410d84033a0e0f1dea5f13
Gbury/archsat
sig.ml
This file is free software , part of Archsat . See file " LICENSE " for more details . * { 2 Common signatures for modules } (** Standard interface for modules defining a new type. *) module type Std = sig type t val hash : t -> int val equal : t -> t -> bool val compare : t -> t -> int end (** Standard in...
null
https://raw.githubusercontent.com/Gbury/archsat/322fbefa4a58023ddafb3fa1a51f8199c25cde3d/src/base/sig.ml
ocaml
* Standard interface for modules defining a new type. * Standard interface for printing * Variant of the standard signature for parametric types. * Standard interface for printing polymorphic types
This file is free software , part of Archsat . See file " LICENSE " for more details . * { 2 Common signatures for modules } module type Std = sig type t val hash : t -> int val equal : t -> t -> bool val compare : t -> t -> int end module type Print = sig type t val print : Format.formatter -> t -> un...
8434b1d1ee253a8ef4e9f072d37cdd20f2980604ecce9e9c090375f29d66ed76
scalaris-team/scalaris
dht_node_join_recover.erl
2007 - 2015 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; % you may not use this file except in compliance with the License. % You may obtain a copy of the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software di...
null
https://raw.githubusercontent.com/scalaris-team/scalaris/feb894d54e642bb3530e709e730156b0ecc1635f/src/dht_node_join_recover.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language gov...
2007 - 2015 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > -module(dht_node_join_recover). -author(''). -vsn('$Id$'). -include("scalaris.hrl"). -include("record_helpers.hrl")....
1eb3c7c115bc3b68be3c2b48ce522dd3b4d27055362c0c7c38ce4ad5eb7a107d
input-output-hk/ouroboros-network
Subscription.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # module Cardano.Client.Subscription ( subscribe , MuxMode (..) , ClientCodecs , ConnectionId , LocalAddress , NodeToClientProtocols (..) , BlockNodeToClientVersion , ...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/2793b6993c8f6ed158f432055fa4ef581acdb661/cardano-client/src/Cardano/Client/Subscription.hs
haskell
# LANGUAGE DataKinds # can be checked if the networking runtime system requests the protocols to stop. it's not exposed in 'subscribe'. We should provide
# LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # module Cardano.Client.Subscription ( subscribe , MuxMode (..) , ClientCodecs , ConnectionId , LocalAddress , NodeToClientProtocols (..) , BlockNodeToClientVersion , MuxPeer (..) , MuxTrace , RunMini...
be1c2b168dd0a912410c5c82f32f483eac496535cc62cd8638261c97445a8e08
bozsahin/yalalr
sdd.lisp
this example generates Lisp code for CCG grammar using ccglab syntax -cem bozsahin ;;; some auxiliary definitions needed by code generator (defparameter *ccg-grammar* nil) ; current ccg grammar, as a list of Lisp-translated lex specs unique keys for each entry ; from 1 to n ;; ===========================...
null
https://raw.githubusercontent.com/bozsahin/yalalr/ebf7a3d388e889c101eb4bed9690acb7cb236cf7/examples/ex2/sdd.lisp
lisp
some auxiliary definitions needed by code generator current ccg grammar, as a list of Lisp-translated lex specs from 1 to n ============================================== The lambda layer, whose syntax is given below. ============================================== Thanks for putting it on the web. (minor addit...
this example generates Lisp code for CCG grammar using ccglab syntax -cem bozsahin this is a direct import of Alessandro Cimatti 's ADT for Lambda - calculus . The ADT for expressions (defun mk-v (sym) sym) (defun is-v (e) (cond ((consp e) nil) ((symbolp e) t) ((constantp e) t) ((...
a1a83f6f82cc3c64c0601eafb025dd0618e0f3597767346e234848bb12ed6df9
brunoV/throttler
project.clj
(defproject throttler "1.0.1" :description "Control the throughput of function calls and core.async channels using the token bucket algorithm" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.10.0"] [org.clojure/core.async "0....
null
https://raw.githubusercontent.com/brunoV/throttler/1e845d72fdd22cce6445d17624895fa2692b66e5/project.clj
clojure
(defproject throttler "1.0.1" :description "Control the throughput of function calls and core.async channels using the token bucket algorithm" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.10.0"] [org.clojure/core.async "0....
7a5080e40c168525fc34ff43aa09931efb3a0bb97d6fa66fe36253580dfb51c0
patricoferris/ocaml-multicore-monorepo
unit.ml
This file is part of Dream , released under the MIT license . See LICENSE.md for details , or visit . Copyright 2021 for details, or visit . Copyright 2021 Anton Bachin *) let () = Alcotest.run "Dream" [ Request.tests; Headers.tests; ]
null
https://raw.githubusercontent.com/patricoferris/ocaml-multicore-monorepo/22b441e6727bc303950b3b37c8fbc024c748fe55/duniverse/dream/test/unit/unit.ml
ocaml
This file is part of Dream , released under the MIT license . See LICENSE.md for details , or visit . Copyright 2021 for details, or visit . Copyright 2021 Anton Bachin *) let () = Alcotest.run "Dream" [ Request.tests; Headers.tests; ]
dcdcf6fcc29397d054e140b37488e8093bc735242cfa1e363f27c7d5f7fd1645
rtoy/cmucl
read-insert.lisp
(in-package :cl-haml) (defun read-haml-insert-line (stream &optional (eof-error-p nil) (eof-value +eof+)) (list +haml+ (read-contents stream (read-options stream eof-error-p ...
null
https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/tests/resources/read-insert.lisp
lisp
(in-package :cl-haml) (defun read-haml-insert-line (stream &optional (eof-error-p nil) (eof-value +eof+)) (list +haml+ (read-contents stream (read-options stream eof-error-p ...
e67b8cd6ab846cc0a485de7bda75b498033414fcaca06f866c2155347a31761c
ucsd-progsys/nate
odoc_cross.mli
(***********************************************************************) (* OCamldoc *) (* *) , projet Cristal , INRIA Rocquencourt (* ...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/ocamldoc/odoc_cross.mli
ocaml
********************************************************************* OCamldoc ...
, projet Cristal , INRIA Rocquencourt Copyright 2001 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : odoc_cross.mli , v 1.3 2006/09/2...
6acbaf0093f8df3b7fc90335eea2edbffe1913550fadbdc6fabaaa8205ceef3c
EFanZh/EOPL-Exercises
exercise-5.46.rkt
#lang eopl Exercise 5.46 [ ★ ★ ] In the systemof exercise 5.45 , a thread may be placed on the ready queue either because its time ;; slot has been exhausted or because it chose to yield. In the latter case, it will be restarted with a full time ;; slice. Modify the system so that the ready queue keeps track of the ...
null
https://raw.githubusercontent.com/EFanZh/EOPL-Exercises/11667f1e84a1a3e300c2182630b56db3e3d9246a/solutions/exercise-5.46.rkt
racket
slot has been exhausted or because it chose to yield. In the latter case, it will be restarted with a full time slice. Modify the system so that the ready queue keeps track of the remaining time slice (if any) of each thread, and restarts the thread only with the time it has remaining. Grammar. Data structures. R...
#lang eopl Exercise 5.46 [ ★ ★ ] In the systemof exercise 5.45 , a thread may be placed on the ready queue either because its time (define the-lexical-spec '([whitespace (whitespace) skip] [comment ("%" (arbno (not #\newline))) skip] [identifier (letter (arbno (or letter digit "_" "-" "?"))) symbol] ...
7282badaa0f2ebdd985fbcccb264e5325e767b436a997b32a3244fb8ee0411ab
mistupv/cauder-core
child.erl
-module(child). -export([main/0, child/0]). main() -> Child = spawn(?MODULE, child, []), Child ! {self(), hello}, receive hello2 -> ok end. child() -> receive {Parent, hello} -> Parent ! hello2 end, main().
null
https://raw.githubusercontent.com/mistupv/cauder-core/b676fccd1bbd629eb63f3cb5259f7a9a8c6da899/examples/child.erl
erlang
-module(child). -export([main/0, child/0]). main() -> Child = spawn(?MODULE, child, []), Child ! {self(), hello}, receive hello2 -> ok end. child() -> receive {Parent, hello} -> Parent ! hello2 end, main().
3d53c59978d47334defbd0c77f006b2b8650383933311251236be3b6ad7134c1
input-output-hk/marlowe-cardano
Submit.hs
{-# LANGUAGE GADTs #-} {-# LANGUAGE RankNTypes #-} module Language.Marlowe.Runtime.Transaction.Submit where import Cardano.Api (BabbageEra, ScriptDataSupportedInEra(..), Tx) import qualified Cardano.Api as C import Control.Concurrent (threadDelay) import Control.Concurrent.Async (race) import Control.Concurrent.STM...
null
https://raw.githubusercontent.com/input-output-hk/marlowe-cardano/bc9a0325f13b886e90ea05196ffb70a46c2ab095/marlowe-runtime/tx/Language/Marlowe/Runtime/Transaction/Submit.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes #
module Language.Marlowe.Runtime.Transaction.Submit where import Cardano.Api (BabbageEra, ScriptDataSupportedInEra(..), Tx) import qualified Cardano.Api as C import Control.Concurrent (threadDelay) import Control.Concurrent.Async (race) import Control.Concurrent.STM (STM, atomically, newTVar, readTVar, writeTVar) im...
f7042bbcd59a6dd1611ad1efca33ad10402c363fe3089756d5ead37f7caeef5f
Bodigrim/arithmoi
Approximate.hs
-- | Module : Math . . Primes . Counting . Approximate Copyright : ( c ) 2011 Licence : MIT Maintainer : < > -- -- Approximations to the number of primes below a limit and the -- n-th prime. -- module Math.NumberTheory.Primes.Counting.Approximate ( approxPrimeCount , approxPrimeCou...
null
https://raw.githubusercontent.com/Bodigrim/arithmoi/df789d23341247e9cdb4f690595ea99c89836d09/Math/NumberTheory/Primes/Counting/Approximate.hs
haskell
| Approximations to the number of primes below a limit and the n-th prime. | Following property holds: approximation of the number of primes not exceeding | Following property holds: > nthPrimeApprox n <= nthPrime n || n >= nthPrimeApproxUnderestimateLimit | @'nthPrimeApprox' n@ gives an approximation ...
Module : Math . . Primes . Counting . Approximate Copyright : ( c ) 2011 Licence : MIT Maintainer : < > module Math.NumberTheory.Primes.Counting.Approximate ( approxPrimeCount , approxPrimeCountOverestimateLimit , nthPrimeApprox , nthPrimeApproxUnderestimateLimit ) wher...
06e88623fa33bc87759920c51c1e5e8d5fd4fdb5450bd7acc87481f750fc5da4
hanshuebner/vlm
clisp-support.lisp
-*- Mode : LISP ; Syntax : Common - Lisp ; Package : SYSTEM ; Base : 10 ; Lowercase : Yes -*- ;;; ( in - package " CCL " ) ( ( name arglist & body body ) ` ( progn ;; (declaim (inline ,name)) ( defun , name , arglist , ) ) ) (defmacro defsubst (name arglist &body body) `(progn (de...
null
https://raw.githubusercontent.com/hanshuebner/vlm/20510ddc98b52252a406012a50a4d3bbd1b75dd0/support/clisp-support.lisp
lisp
Syntax : Common - Lisp ; Package : SYSTEM ; Base : 10 ; Lowercase : Yes -*- (declaim (inline ,name)) (declaim (inline circular-list)) (defun circular-list (&rest list) (let ((list (copy-list list))) list)) (defsubst %32-bit-difference (x y) (- x y)) (ldb bytespec integer)) result (ccl::defsubs...
( in - package " CCL " ) ( ( name arglist & body body ) ` ( progn ( defun , name , arglist , ) ) ) (defmacro defsubst (name arglist &body body) `(progn (declaim (inline ,name)) (defun ,name ,arglist ,@body))) (defmacro stack-let (vars-and-vals &body body) (let ((vars (loop for v...
6460c448a5154eaac4877ac4e90b92531cbc14517a04e18008b8c8f79feefdd2
basho/basho_bench
basho_bench_driver_ets.erl
-module(basho_bench_driver_ets). -export([new/1, run/4]). new(_Id) -> EtsTable = ets:new(basho_bench, [ordered_set]), {ok, EtsTable}. run(get, KeyGen, _ValueGen, EtsTable) -> Start = KeyGen(), case ets:lookup(EtsTable, Start) of [] -> {ok, EtsTable}; [{_Key, _Val...
null
https://raw.githubusercontent.com/basho/basho_bench/aa66398bb6a91645dbb97e91a236f3cdcd1f188f/src/basho_bench_driver_ets.erl
erlang
-module(basho_bench_driver_ets). -export([new/1, run/4]). new(_Id) -> EtsTable = ets:new(basho_bench, [ordered_set]), {ok, EtsTable}. run(get, KeyGen, _ValueGen, EtsTable) -> Start = KeyGen(), case ets:lookup(EtsTable, Start) of [] -> {ok, EtsTable}; [{_Key, _Val...
e8539978721dfabcc73224d5d9af59b1ddb126c93908b194267cf1e5f481c045
realark/vert
object-manager.lisp
(in-package :recurse.vert) @export-class (defclass object-manager (game-object) () (:documentation "A game object which manages other game objects.")) @export (defgeneric get-managed-objects (object-manager) (:method ((object-manager object-manager)) '())) (defmethod remove-from-scene :after ((scene game-scene...
null
https://raw.githubusercontent.com/realark/vert/4cb88545abc60f1fba4a8604ce85e70cbd4764a2/src/scene/object-manager.lisp
lisp
(in-package :recurse.vert) @export-class (defclass object-manager (game-object) () (:documentation "A game object which manages other game objects.")) @export (defgeneric get-managed-objects (object-manager) (:method ((object-manager object-manager)) '())) (defmethod remove-from-scene :after ((scene game-scene...
3d107a29f6e1711abf042beaa1cd279a4401b3098a4196717db1fc894d3fa8a0
facebook/pyre-check
jsonParsing.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/pyre-check/98b8362ffa5c715c708676c1a37a52647ce79fe0/source/jsonParsing.ml
ocaml
TODO(T132410158) Add a module-level doc comment. The absent of explicit `~default` parameter means that the corresponding JSON field is mandantory.
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
08154d741049c1c3a5101cf7809cdc0aad01977d36e99ced57ae0bfc5c6eb5a2
lambdaisland/gaiwan_co
team.cljc
(ns co.gaiwan.site.components.team) (defn item [{:keys [title subtitle link image description] :as member}] [:li [:div {:class "space-y-4 sm:grid sm:grid-cols-3 sm:gap-6 sm:space-y-0 lg:gap-8"} [:div {:class "h-0 aspect-w-3 aspect-h-2 sm:aspect-w-3 sm:aspect-h-4"} [:img {:alt "", :class ...
null
https://raw.githubusercontent.com/lambdaisland/gaiwan_co/05ac04356ac2701442a6dfadd12b482485545921/src/co/gaiwan/site/components/team.cljc
clojure
(ns co.gaiwan.site.components.team) (defn item [{:keys [title subtitle link image description] :as member}] [:li [:div {:class "space-y-4 sm:grid sm:grid-cols-3 sm:gap-6 sm:space-y-0 lg:gap-8"} [:div {:class "h-0 aspect-w-3 aspect-h-2 sm:aspect-w-3 sm:aspect-h-4"} [:img {:alt "", :class ...
7925730bd75223de83f939b4b63a3eae8fa7a1a2bf10e4ade0f6bd96538bfdff
runtimeverification/haskell-backend
ErrorBottomTotalFunction.hs
# LANGUAGE NoStrict # # LANGUAGE NoStrictData # | Copyright : ( c ) Runtime Verification , 2020 - 2021 License : BSD-3 - Clause Copyright : (c) Runtime Verification, 2020-2021 License : BSD-3-Clause -} module Kore.Log.ErrorBottomTotalFunction ( ErrorBottomTotalFunction (..), errorBottomTo...
null
https://raw.githubusercontent.com/runtimeverification/haskell-backend/de44aad602e76f45baaa4dabac2b8088f22c3415/kore/src/Kore/Log/ErrorBottomTotalFunction.hs
haskell
# LANGUAGE NoStrict # # LANGUAGE NoStrictData # | Copyright : ( c ) Runtime Verification , 2020 - 2021 License : BSD-3 - Clause Copyright : (c) Runtime Verification, 2020-2021 License : BSD-3-Clause -} module Kore.Log.ErrorBottomTotalFunction ( ErrorBottomTotalFunction (..), errorBottomTo...
9cded051ff3a45993699598003537cc79097d316f7d47a09fd0bedc441608d1f
jhidding/chez-glfw
features.scm
(library (glfw parse-api features) (export get-features feature? feature-name feature-number feature-require-enums feature-require-commands feature-remove-enums feature-remove-commands extend-commands extend-enums) (import (rnrs base (6)) (rnrs lists (6)) ...
null
https://raw.githubusercontent.com/jhidding/chez-glfw/fe53b5d8915c1c0b9f6a07446a0399a430d09851/glfw/parse-api/features.scm
scheme
(library (glfw parse-api features) (export get-features feature? feature-name feature-number feature-require-enums feature-require-commands feature-remove-enums feature-remove-commands extend-commands extend-enums) (import (rnrs base (6)) (rnrs lists (6)) ...
d3199ade8e4cc9ebd0beea219631775c920599673139b9fcffe7b0f3d8956352
d-cent/objective8
marks.clj
(ns objective8.integration.db.marks (:require [midje.sweet :refer :all] [objective8.integration.integration-helpers :as ih] [objective8.integration.storage-helpers :as sh] [objective8.back-end.domain.marks :as marks])) (facts "about storing marks" (against-background ...
null
https://raw.githubusercontent.com/d-cent/objective8/db8344ba4425ca0b38a31c99a3b282d7c8ddaef0/test/objective8/integration/db/marks.clj
clojure
(ns objective8.integration.db.marks (:require [midje.sweet :refer :all] [objective8.integration.integration-helpers :as ih] [objective8.integration.storage-helpers :as sh] [objective8.back-end.domain.marks :as marks])) (facts "about storing marks" (against-background ...
2c3c6c48ccab13358547516ea821a6efac8ab8b3532344d96f816cac3fb1c07f
rixed/ramen
RamenFieldOrder.ml
open Batteries module DT = DessserTypes module N = RamenName let rec_field_cmp (n1, _) (n2, _) = String.compare n1 n2 let rec order_rec_fields mn = let rec order_value_type = function | DT.TRec mns -> let mns = Array.copy mns in Array.fast_sort rec_field_cmp mns ; DT.TRec (Array.map (...
null
https://raw.githubusercontent.com/rixed/ramen/9606882b5a62d4f89a944d6579cd9daf25ebfaa7/src/RamenFieldOrder.ml
ocaml
open Batteries module DT = DessserTypes module N = RamenName let rec_field_cmp (n1, _) (n2, _) = String.compare n1 n2 let rec order_rec_fields mn = let rec order_value_type = function | DT.TRec mns -> let mns = Array.copy mns in Array.fast_sort rec_field_cmp mns ; DT.TRec (Array.map (...
39eb71578bde97660a2f6e8093063854b9c4bb218db6b37557095b32439b6a5d
tfausak/strive
Kudos.hs
-- | </> module Strive.Actions.Kudos ( getActivityKudoers, ) where import Network.HTTP.Types (toQuery) import Strive.Aliases (ActivityId, Result) import Strive.Client (Client) import Strive.Internal.HTTP (get) import Strive.Options (GetActivityKudoersOptions) import Strive.Types (AthleteSummary) -- | </#list> get...
null
https://raw.githubusercontent.com/tfausak/strive/8bd61df4b2723301273b11589c5f237b42e934dc/source/library/Strive/Actions/Kudos.hs
haskell
| </> | </#list>
module Strive.Actions.Kudos ( getActivityKudoers, ) where import Network.HTTP.Types (toQuery) import Strive.Aliases (ActivityId, Result) import Strive.Client (Client) import Strive.Internal.HTTP (get) import Strive.Options (GetActivityKudoersOptions) import Strive.Types (AthleteSummary) getActivityKudoers :: Cl...
ebe2ba550abf5ef78b31f5966239cfbf36abd3e86b704086236c49ea14cf0d93
sbcl/sbcl
barrier.lisp
;;;; Support for memory barriers required for multithreaded operation 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 soft...
null
https://raw.githubusercontent.com/sbcl/sbcl/8911276f69a6f3e11f81e6da7c6b84c6302a4f35/src/code/barrier.lisp
lisp
Support for memory barriers required for multithreaded operation 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. If no memory barrier vops exist, then the %{mumble}-BARRIER function is an in...
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-THREAD") is always translated with a vop , and the DEFUN is merely an interpreter stub . (eval-when (:comp...
cd8d1abfa626720177039eecb3b5f5b2c54240b3465695bd3340bcf3cbe8652b
thierry-martinez/stdcompat
lexing.mli
type position = { pos_fname: string ; pos_lnum: int ; pos_bol: int ; pos_cnum: int } val dummy_pos : position type lexbuf = { refill_buff: lexbuf -> unit ; mutable lex_buffer: string ; mutable lex_buffer_len: int ; mutable lex_abs_pos: int ; mutable lex_start_pos: int ; mutable lex_curr_pos: int...
null
https://raw.githubusercontent.com/thierry-martinez/stdcompat/83d786cdb17fae0caadf5c342e283c3dcfee2279/interfaces/3.11/lexing.mli
ocaml
type position = { pos_fname: string ; pos_lnum: int ; pos_bol: int ; pos_cnum: int } val dummy_pos : position type lexbuf = { refill_buff: lexbuf -> unit ; mutable lex_buffer: string ; mutable lex_buffer_len: int ; mutable lex_abs_pos: int ; mutable lex_start_pos: int ; mutable lex_curr_pos: int...
a9151adef9e6f9ce1c564baf9b90c5baac18446f0bdddc1eb934bdad5f266adb
shiguredo/swidden
swidden_dispatch.erl
-module(swidden_dispatch). -export([get_dispatches/0]). -export([lookup/3]). -export([start/1]). -export_type([service/0, operation/0, version/0, id/0]). -include("swidden.hrl"). -include("swidden_dispatch.hrl"). -type service() :: binary(). -type operation() :: binary(). -type version() :: binary(). -type id() :...
null
https://raw.githubusercontent.com/shiguredo/swidden/faec93ae6b6c9e59840f0df22c5f72e381b54c02/src/swidden_dispatch.erl
erlang
Schema == Function INTERNAL TODO(nakai): Service が [a-zA-Z]+ かどうかチェックすること TODO(nakai): Version が YYYYMMDD かどうかをチェックすること atom 生成しているが、起動時の一回だけなので問題ない
-module(swidden_dispatch). -export([get_dispatches/0]). -export([lookup/3]). -export([start/1]). -export_type([service/0, operation/0, version/0, id/0]). -include("swidden.hrl"). -include("swidden_dispatch.hrl"). -type service() :: binary(). -type operation() :: binary(). -type version() :: binary(). -type id() :...
69f2f4c057f9e8086646cc3d2dd9dcd33b438bf524c0753699b34f008310fe49
cjdev/cloud-seeder
Provision.hs
module Network.CloudSeeder.Commands.Provision ( provisionCommand ) where import Control.Applicative.Lift (Errors, failure, runErrors) import Control.Arrow (second) import Control.Lens (Getting, Prism', (^.), (^..), (^?), _1, _2, _Wrapped, anyOf, aside, each, filtered, folded, has, to) import Control.Monad (unless,...
null
https://raw.githubusercontent.com/cjdev/cloud-seeder/242a3826a0cef58e1c390b51177e025781aecc66/library/Network/CloudSeeder/Commands/Provision.hs
haskell
| Fetches parameter values for all param sources, handling potential errors and misconfigurations. ^ parameter sources to fetch values for ^ parameter specs from the template currently being deployed ^ stack dependencies ^ name of environment being deployed to ^ name of application being deployed ^ command line...
module Network.CloudSeeder.Commands.Provision ( provisionCommand ) where import Control.Applicative.Lift (Errors, failure, runErrors) import Control.Arrow (second) import Control.Lens (Getting, Prism', (^.), (^..), (^?), _1, _2, _Wrapped, anyOf, aside, each, filtered, folded, has, to) import Control.Monad (unless,...
245d1bce0f2e5aa0ccb0cd7c828bf24f449555c0f9624a020ebb9f397ec961b1
rtoy/cmucl
run-program.lisp
;;; -*- Package: Extensions; Log: code.log -*- ;;; ;;; ********************************************************************** This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . ;;; (ext:file-comment "$Header: src/code/run-progra...
null
https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/code/run-program.lisp
lisp
-*- Package: Extensions; Log: code.log -*- ********************************************************************** ********************************************************************** RUN-PROGRAM and friends. Facility for running unix programs from inside a lisp. Process control stuff. PID of child pr...
This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . (ext:file-comment "$Header: src/code/run-program.lisp $") Written by and , November 1987 , using an earlier version written by . Completely re - written by , July 1...
1868619c0f4618f0d814d800d9199df72dcdd1b88a13c670f800a26b34878c02
facebook/duckling
Corpus.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE OverloadedStrings #-} module Duckling.Numeral.AF.Corpus ( corpus ) where import Data.Stri...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Numeral/AF/Corpus.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Numeral.AF.Corpus ( corpus ) where import Data.String import Prelude import Duckling.Locale import Duckling.Numeral.Types import Duckling.Resolve import Duckling.Testing.Types corpus :: Corpus corpus = ( testContext {locale = makeLocale AF N...
1fd2852aa8bf2adc2f103ccc81c66feec12aa30b3fe4baae698ce9e22f82871a
ephemient/aoc2018
Day14Spec.hs
module Day14Spec (spec) where import Day14 (day14a, day14b) import Test.Hspec (Spec, describe, it, shouldBe) spec :: Spec spec = do describe "part 1" $ it "examples" $ do day14a "9" `shouldBe` "5158916779" day14a "5" `shouldBe` "0124515891" day14a "18" `shouldBe` "92510...
null
https://raw.githubusercontent.com/ephemient/aoc2018/eb0d04193ccb6ad98ed8ad2253faeb3d503a5938/test/Day14Spec.hs
haskell
module Day14Spec (spec) where import Day14 (day14a, day14b) import Test.Hspec (Spec, describe, it, shouldBe) spec :: Spec spec = do describe "part 1" $ it "examples" $ do day14a "9" `shouldBe` "5158916779" day14a "5" `shouldBe` "0124515891" day14a "18" `shouldBe` "92510...
cc12e44b9d8af950769607c76b8174f2e69bca0fe5f9af03e5198db4c40915ad
dparis/gen-phzr
tween.cljs
(ns phzr.tween (:require [phzr.impl.utils.core :refer [clj->phaser phaser->clj]] [phzr.impl.extend :as ex] [cljsjs.phaser]) (:refer-clojure :exclude [delay repeat loop update])) (defn ->Tween "A Tween allows you to alter one or more properties of a target object over a defined period of t...
null
https://raw.githubusercontent.com/dparis/gen-phzr/e4c7b272e225ac343718dc15fc84f5f0dce68023/out/tween.cljs
clojure
(ns phzr.tween (:require [phzr.impl.utils.core :refer [clj->phaser phaser->clj]] [phzr.impl.extend :as ex] [cljsjs.phaser]) (:refer-clojure :exclude [delay repeat loop update])) (defn ->Tween "A Tween allows you to alter one or more properties of a target object over a defined period of t...
14c5e47e65651a6bba67ea9ad8278355aae5a20389fce60ae14dde46b2473c24
lspector/Clojush
report.clj
(ns clojush.pushgp.report (:use [clojush util globals pushstate simplification individual] [clojure.data.json :only (json-str)]) (:require [clojure.string :as string] [config :as config] [clj-random.core :as random] [local-file] [clojure.data.csv :as csv] ...
null
https://raw.githubusercontent.com/lspector/Clojush/8f8c6dcb181e675a3f514e6c9e9fc92cf76ac566/src/clojush/pushgp/report.clj
clojure
helper functions This is a map of an individual report printing functions Number of (open) parens / points Number of (open) parens / points Number of (open) parens / points The following are for CSV or JSON logs This tests each individual that passes current generation's subsampled training cases on all traini...
(ns clojush.pushgp.report (:use [clojush util globals pushstate simplification individual] [clojure.data.json :only (json-str)]) (:require [clojure.string :as string] [config :as config] [clj-random.core :as random] [local-file] [clojure.data.csv :as csv] ...
b12178c689d43244d764b8047db36d82e363c59ca0a5db6c969518a9ffc02618
LuisThiamNye/chic
test_clj_syntax.clj
;; -Sublimed/blob/master/test_syntax/syntax_test_clojure.cljc This file is a copy of -Sublimed/blob/43de45c36b3a40d1819f76243f09c18cac3625f3/test_syntax/syntax_test_clojure.cljc ;; Distributed under the following license: The MIT License ( MIT ) Copyright ( c ) 2018 - 2021 Nikita Prokopov ;; Permission is her...
null
https://raw.githubusercontent.com/LuisThiamNye/chic/813633a689f9080731613f788a295604d4d9a510/resources/clj/test_clj_syntax.clj
clojure
-Sublimed/blob/master/test_syntax/syntax_test_clojure.cljc Distributed under the following license: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense...
This file is a copy of -Sublimed/blob/43de45c36b3a40d1819f76243f09c18cac3625f3/test_syntax/syntax_test_clojure.cljc The MIT License ( MIT ) Copyright ( c ) 2018 - 2021 Nikita Prokopov in the Software without restriction , including without limitation the rights copies of the Software , and to permit perso...