_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
4a9612d721f8eae31a51ac0cf50bb6dfa035a0a3ded3181f3c234cf36355b8e3
degree9/enterprise
factory.cljs
(ns degree9.browser.indexed-db.factory) (defprotocol IDBFactory (open [this name] [this name version] "Open the connection to indexedDB database.") (deleteDatabase [this name] "Delete an indexedDB database.") (databases [this] "List all available databases, including name and version.")) (extend-type js/IDBFact...
null
https://raw.githubusercontent.com/degree9/enterprise/65737c347e513d0a0bf94f2d4374935c7270185d/src/degree9/browser/indexed_db/factory.cljs
clojure
(ns degree9.browser.indexed-db.factory) (defprotocol IDBFactory (open [this name] [this name version] "Open the connection to indexedDB database.") (deleteDatabase [this name] "Delete an indexedDB database.") (databases [this] "List all available databases, including name and version.")) (extend-type js/IDBFact...
229b030ba863b0922ba37dd22e376bd2547306f72fc0d30d120f0629baf33c5c
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
PaymentMethodOptionsKlarna.hs
{-# 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 types generated from the schema PaymentMethodOptionsKlarna module StripeAPI.Types.PaymentMethodOptionsKlarn...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Types/PaymentMethodOptionsKlarna.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | Contains the types generated from the schema PaymentMethodOptionsKlarna | capture_method: Controls when the funds will be captured from the customer\'s account. Constraints: | setup_future_usage: Indicates that you intend to make future payments with this P...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . module StripeAPI.Types.PaymentMethodOptionsKlarna where import qualified Control.Monad.Fail import qualified Data.Aeson import qualified Data.Aeson as Data.Aeson.Encoding.Internal import ...
b4f826510bde3e4b085cc11204a97af02533f8ad2d7413506a9aa6b7a271a832
reborg/clojure-essential-reference
2.clj
< 1 > 11 < 2 > 3
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/OtherFunctions/StringsandRegularExpressions/index-of%2Clast-index-of/2.clj
clojure
< 1 > 11 < 2 > 3
762befe724153fdf14286a6f5c2979d465d5b84e1b7e4679bf3908611ea75ce6
juxt/tick
interval_test.cljc
Copyright © 2016 - 2017 , JUXT LTD . (ns tick.alpha.interval-test (:require [clojure.spec.alpha :as s] [tick.core :as t] [tick.protocols :as p] [clojure.test :refer [deftest is testing run-tests] :refer-macros [deftest is testing run-tests]] [tick.alpha.interval :as ti])) (s/check-asserts t...
null
https://raw.githubusercontent.com/juxt/tick/9c76dcf948684aec663370b9544411f943cb0f3f/test/tick/alpha/interval_test.cljc
clojure
Each interval should have just one relation that is true For each combination, count how many relations are true (should be just one each time) For each combination, count how many relations are true (should be just one each time) anywhere to ensure the complement function is working as expected. Sequence tests ...
Copyright © 2016 - 2017 , JUXT LTD . (ns tick.alpha.interval-test (:require [clojure.spec.alpha :as s] [tick.core :as t] [tick.protocols :as p] [clojure.test :refer [deftest is testing run-tests] :refer-macros [deftest is testing run-tests]] [tick.alpha.interval :as ti])) (s/check-asserts t...
91b9511d313271425f48fade3714106d33a9bb031cd691529ecd41384a9358cf
meagtan/99-lisp-problems
p85-p89.lisp
;;;; Graph isomorphism, traversal, etc. (in-package #:99-lisp-problems) ;;; p85 (defun isomorphic-p (graph1 graph2) "Determine whether the two graphs are isomorphic, and if so, return an isomorphism in the form of an alist." (and (= (length (graph-nodes graph1)) (length (graph-nodes graph2))) (=...
null
https://raw.githubusercontent.com/meagtan/99-lisp-problems/82bd35b1c161aaba37306332505700c26721296c/src/80-89%20graphs/p85-p89.lisp
lisp
Graph isomorphism, traversal, etc. p85 try mapping edge to each edge in edges whose nodes aren't mapped to any node match start-node to start-node or to end-node p86 Welsh-Powell algorithm color all nodes not connected to node, including node itself, with color and remove them from the list of sorted nodes p87...
(in-package #:99-lisp-problems) (defun isomorphic-p (graph1 graph2) "Determine whether the two graphs are isomorphic, and if so, return an isomorphism in the form of an alist." (and (= (length (graph-nodes graph1)) (length (graph-nodes graph2))) (= (length (graph-edges graph1)) (length...
c85c9e8201b73b0dd5554a5ce9e4c55918c221d0ca851404605aa36316210621
dyzsr/ocaml-selectml
build_as_type.ml
(* TEST * expect *) let f = function | ([] : int list) as x -> x | _ :: _ -> assert false;; [%%expect{| val f : int list -> int list = <fun> |}] let f = let f' = function | ([] : 'a list) as x -> x | _ :: _ -> assert false in f', f';; [%%expect{| val f : ('a list -> 'a list) * ('a list -> 'a list...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/testsuite/tests/typing-misc/build_as_type.ml
ocaml
TEST * expect This should be flagged as non-exhaustive: because of the constraint [x] is of type [t]. Make sure *all* the constraints are respected: This should be flagged as non-exhaustive: because of the constraint [x] is of type [t]. This should be flagged as non-exhaustive: because of the ...
let f = function | ([] : int list) as x -> x | _ :: _ -> assert false;; [%%expect{| val f : int list -> int list = <fun> |}] let f = let f' = function | ([] : 'a list) as x -> x | _ :: _ -> assert false in f', f';; [%%expect{| val f : ('a list -> 'a list) * ('a list -> 'a list) = (<fun>, <fun>) |}] ...
4abf78d31f9d282271bd9792430611b192d8051ad112110334d8939c85a6c247
lemenkov/99problems
arithmetic.erl
% -problems/2 -module(arithmetic). -compile([export_all]). 2.01 ( * * ) Determine whether a given integer number is prime . % -sufficiency/how-to-identify-a-prime-number problem1(IsPrime) when is_integer(IsPrime), IsPrime < 2 -> false; problem1(2) -> true; problem1(3) -> true; problem1(5) -> true; problem1(IsP...
null
https://raw.githubusercontent.com/lemenkov/99problems/ba304237bfd2fd562d044849870a0efdc2e97825/arithmetic.erl
erlang
-problems/2 -sufficiency/how-to-identify-a-prime-number
-module(arithmetic). -compile([export_all]). 2.01 ( * * ) Determine whether a given integer number is prime . problem1(IsPrime) when is_integer(IsPrime), IsPrime < 2 -> false; problem1(2) -> true; problem1(3) -> true; problem1(5) -> true; problem1(IsPrime) when is_integer(IsPrime) -> case IsPrime rem 10 of ...
03a9508518cf127fdd4ed5793fdbf366025df8f3f80ccbe71ec915940deafa16
emina/rosette
lib.rkt
#lang racket (require rosette) (provide mac) (define-syntax-rule (mac) (begin (begin (define foo (verify (1))) (define bar 1))))
null
https://raw.githubusercontent.com/emina/rosette/a64e2bccfe5876c5daaf4a17c5a28a49e2fbd501/test/trace/code/lib.rkt
racket
#lang racket (require rosette) (provide mac) (define-syntax-rule (mac) (begin (begin (define foo (verify (1))) (define bar 1))))
b7dbe0ef0403f5638e9595ddf049dc0b864ce0acf815d03f46cc16bc35073338
pirapira/coq2rust
classes.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/toplevel/classes.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i i * TODO: add subinstances Decla...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Names open Term open Var...
d822ec792ba7b4ed816a27c0b01c7a47da146a4f4d8cb7b5c9a6808adc1c4582
danieljharvey/nix-mate
Remove.hs
module NixMate.Actions.Remove (removePackage) where import Data.Coerce import qualified Data.Set as S import qualified NixMate.Actions.Config as Actions import NixMate.Types.Config type Path = String removeFromConfig :: Dependency -> Config -> Config removeFromConfig depName cfg = cfg {inputs = newPackages} wher...
null
https://raw.githubusercontent.com/danieljharvey/nix-mate/0197b8517319a4ad4c9cb489579a6ed36ad9aec1/src/NixMate/Actions/Remove.hs
haskell
module NixMate.Actions.Remove (removePackage) where import Data.Coerce import qualified Data.Set as S import qualified NixMate.Actions.Config as Actions import NixMate.Types.Config type Path = String removeFromConfig :: Dependency -> Config -> Config removeFromConfig depName cfg = cfg {inputs = newPackages} wher...
bdca42eb0d80b93660cf98c37dfbc40500729bbd3ce279b6b08eaf4f1b932f74
plum-umd/adapton.ocaml
statistics.ml
* Adapton performance statistics and measurement function . module Counts : sig val create : int ref val hit : int ref val miss : int ref val update : int ref val dirty : int ref val clean : int ref val evaluate : int ref val tables : int ref val evict : int ref val destroy : in...
null
https://raw.githubusercontent.com/plum-umd/adapton.ocaml/a8e642ac1cc113b33e1837da960940c2dfcfa772/src/core/statistics.ml
ocaml
XXX -- always distinguish these cases; remove general case above. Count operations that compute information about node equivalence classes Changing the representations of nodes requires considering how important different computations over equivalence classes are. This can be arbitrarily high, since we can cache...
* Adapton performance statistics and measurement function . module Counts : sig val create : int ref val hit : int ref val miss : int ref val update : int ref val dirty : int ref val clean : int ref val evaluate : int ref val tables : int ref val evict : int ref val destroy : in...
da0b3282a9aac51e94db7bf3cdc2195b1686302327224fc94021e76a69f3d411
montyly/gueb
reil.mli
module REIL : Ir.IR
null
https://raw.githubusercontent.com/montyly/gueb/45f496a5a1e8e908e562928762ece304c2408c3a/src/reil.mli
ocaml
module REIL : Ir.IR
b2741744b9cce5e9038945ea5b989dd4209731576d5081ecb1605e5767557c84
jixiuf/helloerlang
emysql_execute.erl
-module(emysql_execute). -export([execute/1]). execute(Fun)-> Fun() .
null
https://raw.githubusercontent.com/jixiuf/helloerlang/3960eb4237b026f98edf35d6064539259a816d58/emysql-test/src/emysql_execute.erl
erlang
-module(emysql_execute). -export([execute/1]). execute(Fun)-> Fun() .
ed5a9cbdb5a31d2d2adc80bcca520aafdc56b702d79b9f3528b192a6e82ec3eb
semilin/layoup
SIND.lisp
(MAKE-LAYOUT :NAME "SIND" :MATRIX (APPLY #'KEY-MATRIX '("y,hwfqkoux" "sindcvtaer" "j.lpbgm'/z")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
null
https://raw.githubusercontent.com/semilin/layoup/27ec9ba9a9388cd944ac46206d10424e3ab45499/data/layouts/SIND.lisp
lisp
(MAKE-LAYOUT :NAME "SIND" :MATRIX (APPLY #'KEY-MATRIX '("y,hwfqkoux" "sindcvtaer" "j.lpbgm'/z")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
8f51759a1e465b0a5de63c32751cb9eb7a739a66fdccbaac1927090ddd77eaac
basho/riak_core
riak_core_sysmon_minder.erl
%% ------------------------------------------------------------------- %% %% riak_core: Core Riak Application %% Copyright ( c ) 2007 - 2010 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except...
null
https://raw.githubusercontent.com/basho/riak_core/762ec81ae9af9a278e853f1feca418b9dcf748a3/src/riak_core_sysmon_minder.erl
erlang
------------------------------------------------------------------- riak_core: Core Riak Application Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the sp...
Copyright ( c ) 2007 - 2010 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY ...
f4ea9b0e7aba94022298182767d37f7e07007c4cc7fc22a4843011e6f91833c6
slyrus/mcclim-old
stream-output.lisp
;;; -*- Mode: Lisp; Package: CLIM-INTERNALS -*- ( c ) copyright 1998,1999,2000,2001 by ( ) ( c ) copyright 2000 by ( ) ;;; This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Fou...
null
https://raw.githubusercontent.com/slyrus/mcclim-old/354cdf73c1a4c70e619ccd7d390cb2f416b21c1a/stream-output.lisp
lisp
-*- Mode: Lisp; Package: CLIM-INTERNALS -*- This library is free software; you can redistribute it and/or 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 the GNU Licen...
( c ) copyright 1998,1999,2000,2001 by ( ) ( c ) copyright 2000 by ( ) modify it under the terms of the GNU Library General Public version 2 of the License , or ( at your option ) any later version . Library General Public License for more details . You should have received a copy of t...
b6c1c3021dc343e5786d9a3c0da46baa1640d5d7b2b6fac9a47ddd30a0657ca9
babashka/sci.configs
pprint.cljs
(ns sci.configs.cljs.pprint (:require [cljs.pprint :as pp] [sci.core :as sci])) (def pns (sci/create-ns 'cljs.pprint nil)) (defn pprint [& args] (binding [*print-fn* @sci/print-fn] (apply pp/pprint args))) (defn print-table [& args] (binding [*print-fn* @sci/print-fn] (apply pp/print-table ...
null
https://raw.githubusercontent.com/babashka/sci.configs/0702ea5a21ad92e6d7cca6d36de84271083ea68f/src/sci/configs/cljs/pprint.cljs
clojure
(ns sci.configs.cljs.pprint (:require [cljs.pprint :as pp] [sci.core :as sci])) (def pns (sci/create-ns 'cljs.pprint nil)) (defn pprint [& args] (binding [*print-fn* @sci/print-fn] (apply pp/pprint args))) (defn print-table [& args] (binding [*print-fn* @sci/print-fn] (apply pp/print-table ...
b021be378b85c4a6a070cbd45e0e0b826239508493c2c01c1d608d6f5ed89773
nuvla/api-server
nuvlabox_status_2.cljc
(ns sixsq.nuvla.server.resources.spec.nuvlabox-status-2 (:require [clojure.spec.alpha :as s] [sixsq.nuvla.server.resources.spec.common :as common] [sixsq.nuvla.server.resources.spec.core :as core] [sixsq.nuvla.server.resources.spec.nuvlabox-status :as nb-status] [sixsq.nuvla.server.resources.spec....
null
https://raw.githubusercontent.com/nuvla/api-server/19d0d6213232d5fbcc7d7878f82e8ff56d00f639/code/src/sixsq/nuvla/server/resources/spec/nuvlabox_status_2.cljc
clojure
This version of the schema is the same as the previous one (0), except that the peripherals attribute has been removed. Use the same attribute definitions to avoid repetition. network (su/constrained-map keyword? any?))
(ns sixsq.nuvla.server.resources.spec.nuvlabox-status-2 (:require [clojure.spec.alpha :as s] [sixsq.nuvla.server.resources.spec.common :as common] [sixsq.nuvla.server.resources.spec.core :as core] [sixsq.nuvla.server.resources.spec.nuvlabox-status :as nb-status] [sixsq.nuvla.server.resources.spec....
af420bbce363646f87b2dc7e426b9e6c7f1dc88ae141797759b5421b5f20af87
exercism/scheme
test.scm
(load "test-util.ss") (use-modules (srfi srfi-64)) (use-modules (srfi srfi-1)) (module-define! (resolve-module '(srfi srfi-64)) 'test-log-to-file #f) (add-to-load-path (dirname (current-filename))) (use-modules (list-ops)) (test-begin "list-ops-test") (test-eqv "length of empty list" 0 (my-length '())) (t...
null
https://raw.githubusercontent.com/exercism/scheme/2064dd5e5d5a03a06417d28c33c5349bec97dad7/exercises/practice/list-ops/test.scm
scheme
(load "test-util.ss") (use-modules (srfi srfi-64)) (use-modules (srfi srfi-1)) (module-define! (resolve-module '(srfi srfi-64)) 'test-log-to-file #f) (add-to-load-path (dirname (current-filename))) (use-modules (list-ops)) (test-begin "list-ops-test") (test-eqv "length of empty list" 0 (my-length '())) (t...
b585fe4b8851bffe52b84ddcf0eeac52f5397482615a98fd42dfadf1cba4f320
rixed/ramen
expr.ml
For now this merely describes what 's implemented in RamenExpr . and * RamenTyping . Maybe one day it will be authoritative . * RamenTyping. Maybe one day it will be authoritative. *) open Html type expr = { name : string ; infix : bool ; has_state : bool ; deterministic : bool ; short_descr :...
null
https://raw.githubusercontent.com/rixed/ramen/1fc06122e423b71b08838b382e95f24547574eaf/doc/raql/expr.ml
ocaml
what function names are accepted Note: parentheses are required to disambiguate: Note: parentheses are required to disambiguate: Notice the doubled escape character: FIXME: have a sort function to clean this Tells whether the *last value* is distinct from the previous ones: Order by time: "group" ; "past"
For now this merely describes what 's implemented in RamenExpr . and * RamenTyping . Maybe one day it will be authoritative . * RamenTyping. Maybe one day it will be authoritative. *) open Html type expr = { name : string ; infix : bool ; has_state : bool ; deterministic : bool ; short_descr :...
82f1a85d7218cef37b3d58626926491db76827e36cc91eeb4129c8ca63139a4a
qitab/ace.core
collect.lisp
Copyright 2020 Google LLC ;;; Use of this source code is governed by an MIT - style ;;; license that can be found in the LICENSE file or at ;;; . ;;;; Provides macros for collecting values ;;;; (defpackage #:ace.core.collect (:use #:common-lisp) (:export #:with-collectors #:with-collected-values)) (in-...
null
https://raw.githubusercontent.com/qitab/ace.core/e6eb21ff67b0c5eaec21c9b543b6dce18d7c8e6d/collect.lisp
lisp
license that can be found in the LICENSE file or at . Provides macros for collecting values With collectors (lambda ...) and (function ...) are (fun)called directly. This inlines the code in place of funcall. This is so because we touch each of the conses only once when creating them and appending. The list...
Copyright 2020 Google LLC Use of this source code is governed by an MIT - style (defpackage #:ace.core.collect (:use #:common-lisp) (:export #:with-collectors #:with-collected-values)) (in-package #:ace.core.collect) (deftype mode () "The mode in which collector functions operate." '(member nil :...
57c987eb98ee3030f21b1d78edf1530170b7096e8fe2d7f239cfd22e7943ff07
input-output-hk/ouroboros-network
OnDisk.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveFoldable # {-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DeriveTraversable #-} {-# LANGUAGE DerivingStrategies #-} # LANGUAGE Exis...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/9e0e5c84a365948cb7105a8a5a1e8817124b746a/ouroboros-consensus-test/test-storage/Test/Ouroboros/Storage/LedgerDB/OnDisk.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DeriveAnyClass # # LANGUAGE DeriveFunctor # # LANGUAGE DeriveGeneric # # LANGUAGE DeriveTraversable # # LANGUAGE DerivingStrategies # # LANGUAGE RankNTypes # # LANGUAGE TypeOperators # ...
# LANGUAGE DeriveFoldable # # LANGUAGE ExistentialQuantification # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE InstanceSigs # # LANGUAGE KindSignatures # # LANGUAGE LambdaCase ...
e7c54e67afb6ea21bb6dfe30b8378fff6509012ad510f03ae05d74f540ef9f75
facebookincubator/hsthrift
MessageTest.hs
Copyright ( c ) Facebook , Inc. and its affiliates . module MessageTest where import Control.Exception import Thrift.Binary.Parser hiding (peek) import Data.ByteString (packCStringLen, useAsCStringLen) import Data.ByteString.Builder import Data.ByteString.Lazy (toStrict) import Data.Proxy import Data.Text (Text) im...
null
https://raw.githubusercontent.com/facebookincubator/hsthrift/d3ff75d487e9d0c2904d18327373b603456e7a01/tests/MessageTest.hs
haskell
------------------------------------------------------------------------------
Copyright ( c ) Facebook , Inc. and its affiliates . module MessageTest where import Control.Exception import Thrift.Binary.Parser hiding (peek) import Data.ByteString (packCStringLen, useAsCStringLen) import Data.ByteString.Builder import Data.ByteString.Lazy (toStrict) import Data.Proxy import Data.Text (Text) im...
c85f7d38133a685f43061365f2a6a8b43ecce74cccb529d486788cfa391578d6
softwarelanguageslab/maf
R5RS_various_collatz-4.scm
; Changes: * removed : 0 * added : 2 * swaps : 0 ; * negated predicates: 0 ; * swapped branches: 0 * calls to i d fun : 2 (letrec ((div2* (lambda (n s) (if (= (* 2 n) s) n (if (= (+ (* 2 n) 1) s) n (div2* (- n 1) s))))) (div2 (lambda (n) ...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_various_collatz-4.scm
scheme
Changes: * negated predicates: 0 * swapped branches: 0
* removed : 0 * added : 2 * swaps : 0 * calls to i d fun : 2 (letrec ((div2* (lambda (n s) (if (= (* 2 n) s) n (if (= (+ (* 2 n) 1) s) n (div2* (- n 1) s))))) (div2 (lambda (n) (<change> () ...
7c7936abb1ca5c01f7adb7dce62dfecd88373f4d1e111a6eb6b4aaf584556ab1
maximedenes/native-coq
string_syntax.ml
(***********************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - Rocquencourt & LRI - CNRS - Orsay \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ...
null
https://raw.githubusercontent.com/maximedenes/native-coq/3623a4d9fe95c165f02f7119c0e6564a83a9f4c9/plugins/syntax/string_syntax.ml
ocaml
********************************************************************* // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************* make a string term from the string s
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - Rocquencourt & LRI - CNRS - Orsay \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Errors open Ut...
9dcc25941aa46eaf95c252904141e181fca916978347067972066727b4be11e8
sicmutils/sicmutils
rigid_rotation.cljc
#_"SPDX-License-Identifier: GPL-3.0" (ns sicmutils.examples.rigid-rotation (:require [sicmutils.env :as e :refer [up]] [sicmutils.mechanics.rigid :as r])) (defn evolver [t dt A B C θ0 φ0 ψ0 θdot0 φdot0 ψdot0] (let [state-history (atom []) L (r/Euler-state->L-space A B C)] ((e/evolve r/ri...
null
https://raw.githubusercontent.com/sicmutils/sicmutils/f181f153f1432e9648206f903282e7cb4cdd9644/test/sicmutils/examples/rigid_rotation.cljc
clojure
moments of inertia
#_"SPDX-License-Identifier: GPL-3.0" (ns sicmutils.examples.rigid-rotation (:require [sicmutils.env :as e :refer [up]] [sicmutils.mechanics.rigid :as r])) (defn evolver [t dt A B C θ0 φ0 ψ0 θdot0 φdot0 ψdot0] (let [state-history (atom []) L (r/Euler-state->L-space A B C)] ((e/evolve r/ri...
44215930942d6aa56c2af47c196b71a73ec098ab1e0b8ca4bcade539dce412e5
igorhvr/bedlam
build-heapjar.scm
#! /usr/bin/env scheme-r5rs This is an SRFI-22 script which will build a SISC Heap jar by locating the heap from the current directory , the Heap Anchor , ; and emitting sisc-heap.jar, or another file if specified as a ; command-line argument (import s2j) (import oo) (import binary-io) (import generic-procedure...
null
https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/sisc/sisc-1.16.6/full-src/sisc/src/sisc/boot/build-heapjar.scm
scheme
and emitting sisc-heap.jar, or another file if specified as a command-line argument License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specif...
#! /usr/bin/env scheme-r5rs This is an SRFI-22 script which will build a SISC Heap jar by locating the heap from the current directory , the Heap Anchor , (import s2j) (import oo) (import binary-io) (import generic-procedures) (define-java-classes <sisc.boot.heap-anchor> <sisc.interpreter.app-context> <si...
067560872054d3cc1d293a0bbdabd8fa163da5deeed5e5e69b3864a89b5c6bd8
bytekid/mkbtt
matrixInterpretation.ml
Copyright 2008 , Christian Sternagel , * GNU Lesser General Public License * * This file is part of TTT2 . * * TTT2 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 ve...
null
https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/processors/src/termination/interpretations/matrixInterpretation.ml
ocaml
** OPENS ******************************************************************* ** TYPES ******************************************************************* tmp confluence distances experimental ** GLOBALS ***************************************************************** tmp confluence ** FUNCTIONS *******************...
Copyright 2008 , Christian Sternagel , * GNU Lesser General Public License * * This file is part of TTT2 . * * TTT2 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 ve...
1f9d2bf6761c53a42e1588c06d032943931e3be58bee594e2552ba8cdca9c062
bakul/s9fes
letrecstar.scm
Scheme 9 from Empty Space , Function Library By , 2009 ; Placed in the Public Domain ; ; (letrec* ((<variable> <expression>) ...) <body> ...) ==> object ; ; (load-from-library "letrecstar.scm") ; LETREC * is like LETREC , but < expression > s can apply procedures bound to < variable > defined earlier in th...
null
https://raw.githubusercontent.com/bakul/s9fes/74c14c0db5f07f5bc6d94131e9e4ee15a29275aa/lib/letrecstar.scm
scheme
Placed in the Public Domain (letrec* ((<variable> <expression>) ...) <body> ...) ==> object (load-from-library "letrecstar.scm") does not allow procedures to be defined in terms of each other, e.g.: (b (a))) (b)) ==> undefined LETREC* exp...
Scheme 9 from Empty Space , Function Library By , 2009 LETREC * is like LETREC , but < expression > s can apply procedures bound to < variable > defined earlier in the same LETREC * . LETREC ( ( ( a ( lambda ( ) ( lambda ( ) 1 ) ) ) LETREC * may be used in the place of R4RS LETREC . The oppos...
b71def8ecfc5ac242d2849019a3feb7a8ddb5099d3b254c6ec41dc689333ffbc
acl2/acl2
defobject-doc.lisp
C Library ; Copyright ( C ) 2022 Kestrel Institute ( ) Copyright ( C ) 2022 Kestrel Technology LLC ( ) ; License : A 3 - clause BSD license . See the LICENSE file distributed with ACL2 . ; Author : ( ) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (in-package "C") (i...
null
https://raw.githubusercontent.com/acl2/acl2/c17fb3d154c2ea21f49a3cf163734ac0be425d40/books/kestrel/c/atc/defobject-doc.lisp
lisp
C Library Copyright ( C ) 2022 Kestrel Institute ( ) Copyright ( C ) 2022 Kestrel Technology LLC ( ) License : A 3 - clause BSD license . See the LICENSE file distributed with ACL2 . Author : ( ) (in-package "C") (include-book "kestrel/event-macros/xdoc-constructors" :dir :system) (defxdoc defobject...
f249a1efccf1d30c48c21d536d7c594ce5eff26a97dad62b2690b3e59ca121a9
mbutterick/typesetting
font-embedded.rkt
#lang debug racket/base (require "core.rkt" "reference.rkt" racket/class racket/match racket/string racket/format racket/list racket/dict sugar/unstable/dict fontland) (provide make-embedded-font) #| approximates |# (define width-cache (make-hash)) (define-syntax-rule (sum-flags [COND VAL] ...) ...
null
https://raw.githubusercontent.com/mbutterick/typesetting/6f7a8bbc422a64d3a54cbbbd78801a01410f5c92/pitfall/pitfall/font-embedded.rkt
racket
approximates we make `unicode` and `width` fields integer-keyed hashes not lists because they offer better random access and growability always include the missing glyph (gid = 0) needs to be per font, not in top level of module set the advance width of the posn scale all values in posn (incl advance width) ...
#lang debug racket/base (require "core.rkt" "reference.rkt" racket/class racket/match racket/string racket/format racket/list racket/dict sugar/unstable/dict fontland) (provide make-embedded-font) (define width-cache (make-hash)) (define-syntax-rule (sum-flags [COND VAL] ...) (for/sum ([c (in-l...
5a654169708cd57614b4e3841afb6431165679e06b441eebf56607be8ae8d340
racket/eopl
scheduler.rkt
#lang eopl (require "queues.rkt") (require "data-structures.rkt") ; for continuation? (require "lang.rkt") ; for expval? (provide initialize-scheduler! set-final-answer! time-expired? decrement-timer! place-on-ready-queue! run-next-thread ) ;;;;;;;;;;;;;;;; the state ;;;;;;;;;;;;...
null
https://raw.githubusercontent.com/racket/eopl/43575d6e95dc34ca6e49b305180f696565e16e0f/tests/chapter5/thread-lang/scheduler.rkt
racket
for continuation? for expval? the state ;;;;;;;;;;;;;;;; components of the scheduler state: initialize-scheduler! : Int -> Unspecified the final answer ;;;;;;;;;;;;;;;; place-on-ready-queue! : Thread -> Unspecified run-next-thread : () -> FinalAnswer set-final-answer! : ExpVal -> Unspecified time-expired? : (...
#lang eopl (require "queues.rkt") (provide initialize-scheduler! set-final-answer! time-expired? decrement-timer! place-on-ready-queue! run-next-thread ) (define the-ready-queue 'uninitialized) (define the-final-answer 'uninitialized) (define the-max-time-slice 'uninitialized) (define...
0841db4fe194473a09758ec2c2c8d88f5ae3e4441a2a25c50f8def6d55d6cae0
protolude/protolude
Base.hs
# LANGUAGE CPP # # LANGUAGE MagicHash # # LANGUAGE Unsafe # {-# LANGUAGE BangPatterns #-} # LANGUAGE NoImplicitPrelude # # LANGUAGE ExplicitNamespaces # module Protolude.Base ( module Base, ($!), ) where -- Glorious Glasgow Haskell Compiler #if defined(__GLASGOW_HASKELL__) && ( __GLASGOW_HASKELL__ >= 600 ) -- Ba...
null
https://raw.githubusercontent.com/protolude/protolude/f8cf1375d5f0b3adb6be65c0b7c067f55a4872cd/src/Protolude/Base.hs
haskell
# LANGUAGE BangPatterns # Glorious Glasgow Haskell Compiler Base GHC types Exported for lifting into new functions. Default Prelude defines this at the toplevel module, so we do as well.
# LANGUAGE CPP # # LANGUAGE MagicHash # # LANGUAGE Unsafe # # LANGUAGE NoImplicitPrelude # # LANGUAGE ExplicitNamespaces # module Protolude.Base ( module Base, ($!), ) where #if defined(__GLASGOW_HASKELL__) && ( __GLASGOW_HASKELL__ >= 600 ) import GHC.Num as Base ( Num( (+), (-), (*), ...
a50a25d5e4493c45880e3392ceee4974dad36158421e045e246d351dc11e9eaf
yuriy-chumak/ol
stencil_wrap.scm
; =========================================================================== EXT_stencil_wrap ( included in OpenGL 1.4 ) ; ; ; ; Version ; ; Overview ; (define-library (OpenGL EXT stencil_wrap) ; --------------------------------------------------------------------------- ; Depend...
null
https://raw.githubusercontent.com/yuriy-chumak/ol/83dd03d311339763682eab02cbe0c1321daa25bc/libraries/OpenGL/EXT/stencil_wrap.scm
scheme
=========================================================================== Version Overview --------------------------------------------------------------------------- Dependencies --------------------------------------------------------------------------- -------------------------------------------------...
EXT_stencil_wrap ( included in OpenGL 1.4 ) (define-library (OpenGL EXT stencil_wrap) (import (scheme core) (OpenGL platform)) (export EXT_stencil_wrap ) (begin (define EXT_stencil_wrap (gl:QueryExtension "GL_EXT_stencil_wrap")) ))
a9b886fb9c1da34e0e8a348ac2b001a7027b1ca9cddf4910fce7235f16095897
clj-kondo/clj-kondo
hooks_test.clj
(ns clj-kondo.impl.hooks-test (:require [clj-kondo.hooks-api :as hooks-api] [clj-kondo.impl.core :as core] [clj-kondo.impl.utils :as utils :refer [parse-string *ctx*]] [clj-kondo.test-utils :refer [lint! make-dirs with-temp-dir]] [clojure.java.io :as io] [clojure.test :as t :refer [deftest is testin...
null
https://raw.githubusercontent.com/clj-kondo/clj-kondo/47dc5acbb1a484d883f1c98988dd4db6647c6b3d/test/clj_kondo/impl/hooks_test.clj
clojure
populate cache
(ns clj-kondo.impl.hooks-test (:require [clj-kondo.hooks-api :as hooks-api] [clj-kondo.impl.core :as core] [clj-kondo.impl.utils :as utils :refer [parse-string *ctx*]] [clj-kondo.test-utils :refer [lint! make-dirs with-temp-dir]] [clojure.java.io :as io] [clojure.test :as t :refer [deftest is testin...
6e0e50940f65f7485a017722933d226a912e69df0cb462adcc144d9237f46719
bazqux/bazqux-urweb
GetServerInfoRequest.hs
# LANGUAGE BangPatterns , DeriveDataTypeable , FlexibleInstances , MultiParamTypeClasses , TemplateHaskell # # OPTIONS_GHC -fno - warn - unused - imports # module Network.Riak.Protocol.GetServerInfoRequest (GetServerInfoRequest(..)) where import Prelude ((+), (/)) import qualified Prelude as Prelude' import qualified D...
null
https://raw.githubusercontent.com/bazqux/bazqux-urweb/bf2d5a65b5b286348c131e91b6e57df9e8045c3f/crawler/Lib/riak-protobuf-0.22.0.0/src/Network/Riak/Protocol/GetServerInfoRequest.hs
haskell
# LANGUAGE BangPatterns , DeriveDataTypeable , FlexibleInstances , MultiParamTypeClasses , TemplateHaskell # # OPTIONS_GHC -fno - warn - unused - imports # module Network.Riak.Protocol.GetServerInfoRequest (GetServerInfoRequest(..)) where import Prelude ((+), (/)) import qualified Prelude as Prelude' import qualified D...
dd0a017500f89b08d35f4cd54a0288c00bcf2555129a99ec8a80f6f0ca355034
mstksg/advent-of-code-2019
Day05.hs
# LANGUAGE ExistentialQuantification # -- | -- Module : AOC.Challenge.Day05 -- License : BSD3 -- -- Stability : experimental -- Portability : non-portable -- Day 5 . See " AOC.Solver " for the types used in this module ! module AOC.Challenge.Day05 ( day05a , day05b ) where import AOC...
null
https://raw.githubusercontent.com/mstksg/advent-of-code-2019/df2b1c76ad26ad20306f705e923a09b14d538374/src/AOC/Challenge/Day05.hs
haskell
| Module : AOC.Challenge.Day05 License : BSD3 Stability : experimental Portability : non-portable
# LANGUAGE ExistentialQuantification # Day 5 . See " AOC.Solver " for the types used in this module ! module AOC.Challenge.Day05 ( day05a , day05b ) where import AOC.Common.Intcode (Memory, IErr, parseMem, yieldAndDie, stepForever) import AOC.Solver ((:~>)(..)) i...
aeaffb518a853a1eda5b184e8c675d7d5a00e43ba86282a9741ec371a024458e
MyDataFlow/ttalk-server
mod_register.erl
%%%---------------------------------------------------------------------- %%% File : mod_register.erl Author : < > Purpose : Inband registration support Created : 8 Dec 2002 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2011 ProcessOne %%% %%% This program is free software; you can redistribu...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/apps/ejabberd/src/mod_register.erl
erlang
---------------------------------------------------------------------- File : mod_register.erl This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even ...
Author : < > Purpose : Inband registration support Created : 8 Dec 2002 by < > ejabberd , Copyright ( C ) 2002 - 2011 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy o...
ec3de7203051144c00cc3ef0c03bb1f131997c2ec660f7e504dc7539edfb9aaa
LaurentMazare/tensorflow-ocaml
ops_gradients.ml
open Base open Float.O_dot module O = Tensorflow_core.Operation module N = Node module T = Node.Type type unary = { f1 : 'a. x:([< `float | `double ] as 'a) N.t -> y:'a N.t -> gradient:'a N.t -> 'a N.t } let all = List.map ~f:Option.some let unary_wrapper_exn (type a) ~self ~(gradient : a N.t) ~t = let (N.P x)...
null
https://raw.githubusercontent.com/LaurentMazare/tensorflow-ocaml/52c5f1dec1a8b7dc9bc6ef06abbc07da6cd90d39/src/graph/ops_gradients.ml
ocaml
open Base open Float.O_dot module O = Tensorflow_core.Operation module N = Node module T = Node.Type type unary = { f1 : 'a. x:([< `float | `double ] as 'a) N.t -> y:'a N.t -> gradient:'a N.t -> 'a N.t } let all = List.map ~f:Option.some let unary_wrapper_exn (type a) ~self ~(gradient : a N.t) ~t = let (N.P x)...
7b2ddba2c2e67d43250eda8b0798e6f4a61f9749c6d3979592d7a46923db0696
S8A/htdp-exercises
ex511.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-intermediate-lambda-reader.ss" "lang")((modname ex511) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-...
null
https://raw.githubusercontent.com/S8A/htdp-exercises/578e49834a9513f29ef81b7589b28081c5e0b69f/ex511.rkt
racket
about the language level of this file in a form that our tools can easily process. ↑ ↑ 1->2 ↑ ↑ but an occurrence of y, which is undefined in this context. ↑ ↑ ↑ 1-------->3 lambda, which has no bound occurrences of x. ↑ ↑ ↑ ↑ ((λ (x) (x x)) (λ (x) (x x))) ↑ ↑ ↑ ↑ ↑ ↑ ...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex511) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (λ (x) x) 1 : binding occurrence of x 2 : bound occ...
78f7013b6931546f87f3008b1ed06a31189561b7d63a8ff0dd20cdbcb0032086
haskell/haskell-language-server
EmptyCaseNested.hs
test = case (case (Just "") of) of True -> _
null
https://raw.githubusercontent.com/haskell/haskell-language-server/f3ad27ba1634871b2240b8cd7de9f31b91a2e502/plugins/hls-tactics-plugin/new/test/golden/EmptyCaseNested.hs
haskell
test = case (case (Just "") of) of True -> _
68b51a8faf2ac9e2004752c300c3f0dec3d69d59122f69c97b070f28e5b383d0
scheme-live/live
output.scm
#(null)
null
https://raw.githubusercontent.com/scheme-live/live/4c7c9d80f2fcf80692614e10935fa66be69e3708/live/json/data/y-array-null/output.scm
scheme
#(null)
43281ac80eddbdb5ff91c265188059f2ebcadd9eee1af5e71ce61c38d8ebd1e3
wgnet/fox
fox_subs_worker.erl
-module(fox_subs_worker). -behavior(gen_server). -export([start_link/1, connection_established/2, stop/1]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -include("otp_types.hrl"). -include("fox.hrl"). -callback init(Channel :: pid(), Args :: list()) -> {ok, State :: ter...
null
https://raw.githubusercontent.com/wgnet/fox/030cc35d5828db959d19e67c90456d24a2c77c8e/src/subscription/fox_subs_worker.erl
erlang
module API gen_server API inner functions
-module(fox_subs_worker). -behavior(gen_server). -export([start_link/1, connection_established/2, stop/1]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -include("otp_types.hrl"). -include("fox.hrl"). -callback init(Channel :: pid(), Args :: list()) -> {ok, State :: ter...
e6efb4dfe948cdb8f9fd3c6973aa25630f1f952ad4c2d02819df55f50a1e0ce9
emqx/emqx
emqx_gateway_api.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2021 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . %% 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 o...
null
https://raw.githubusercontent.com/emqx/emqx/dbc10c2eed3df314586c7b9ac6292083204f1f68/apps/emqx_gateway/src/emqx_gateway_api.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 ...
Copyright ( c ) 2021 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_gateway_api). -include("emqx_gateway_http.hrl"). -include_lib("typerefl/include/typ...
3eb6799cd65502da6c6d6ffc684820834520df6c9c83d0b121d387abf6dd8502
gsakkas/rite
20060308-19:58:35-73bc04d94b0b091a44df19c1baaf55f3.seminal.ml
exception Unimplemented let char2str c = String.make 1 c let rec getStr str count = if count = -1 then "" else (char2str (String.get str count)) ^ (getStr str (count-1)) let reverse str = let count = (String.length str)-1 in getStr str count let rec map_helper f str index = if...
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/features/data/seminal/20060308-19%3A58%3A35-73bc04d94b0b091a44df19c1baaf55f3.seminal.ml
ocaml
exception Unimplemented let char2str c = String.make 1 c let rec getStr str count = if count = -1 then "" else (char2str (String.get str count)) ^ (getStr str (count-1)) let reverse str = let count = (String.length str)-1 in getStr str count let rec map_helper f str index = if...
34b30ef3d914557c2168e44e8a08ad2beb4902079d769af5e86d6cfba8385c66
argp/bap
batCharParser.ml
* CharParser - Parsing character strings * Copyright ( C ) 2008 * * 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 yo...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/batteries/src/batCharParser.ml
ocaml
Furthest position List of labels at that point
* CharParser - Parsing character strings * Copyright ( C ) 2008 * * 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 yo...
34fe53df9c1a55b560e4522628080a128a949ff0d838667861bb38545b70971c
ghc/ghc
Symbols.hs
-- | JS symbol generation module GHC.StgToJS.Symbols ( moduleGlobalSymbol , moduleExportsSymbol , mkJsSymbol , mkJsSymbolBS , mkFreshJsSymbol , mkRawSymbol , intBS ) where import GHC.Prelude import GHC.Data.FastString import GHC.Unit.Module import Data.ByteString (ByteString) import qualified Data.By...
null
https://raw.githubusercontent.com/ghc/ghc/cc25d52e0f65d54c052908c7d91d5946342ab88a/compiler/GHC/StgToJS/Symbols.hs
haskell
| JS symbol generation | Hexadecimal representation of an int faster. | Return z-encoded unit:module z-encoding for ":" | the global linkable unit of a module exports this symbol, depend on it to include that unit (used for cost centres) module z-encoding of "." module | Make JS symbol for given module an...
module GHC.StgToJS.Symbols ( moduleGlobalSymbol , moduleExportsSymbol , mkJsSymbol , mkJsSymbolBS , mkFreshJsSymbol , mkRawSymbol , intBS ) where import GHC.Prelude import GHC.Data.FastString import GHC.Unit.Module import Data.ByteString (ByteString) import qualified Data.ByteString.Char8 as BSC im...
16e00e7d5a036197c0b3a9ce587832cc4564768afd0c0f5fd7c62ba80f0631b6
atomvm/atomvm_packbeam
e.erl
-module(e). -export([b_calls_me/0]). b_calls_me() -> ok.
null
https://raw.githubusercontent.com/atomvm/atomvm_packbeam/52281e850dbfc83904e9f26ea048675a116f8fff/test/e.erl
erlang
-module(e). -export([b_calls_me/0]). b_calls_me() -> ok.
f76ba752d3cbaa72ece5b5cec16f2ada49a0c854fa478bcbb8b89ee3342bc62c
returntocorp/semgrep
SubAST_generic.ml
* * Copyright ( C ) 2019 - 2022 r2c * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file LICE...
null
https://raw.githubusercontent.com/returntocorp/semgrep/6848073c6220aaffeb9b41f4f1657cb6d84a1311/src/matching/SubAST_generic.ml
ocaml
*************************************************************************** Prelude *************************************************************************** Various helper functions to extract subparts of AST elements. * *************************************************************************** Sub-expressio...
* * Copyright ( C ) 2019 - 2022 r2c * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file LICE...
ca615ff3cf51d2f2d2f5f23646cd5e6d0b350e54354ae221953d621a880deaf2
ekmett/ekmett.github.com
State.hs
# LANGUAGE MagicHash , UnboxedTuples # module Control.Monad.CPS.State ( module Control.Monad.State.Class , State , runState , State' , runState' ) where import Control.Monad import Control.Monad.CPS.Codensity import Control.Monad.State.Class import Control.Applicative newtype State s a = Stat...
null
https://raw.githubusercontent.com/ekmett/ekmett.github.com/8d3abab5b66db631e148e1d046d18909bece5893/haskell/monad-cps/src/Control/Monad/CPS/State.hs
haskell
# LANGUAGE MagicHash , UnboxedTuples # module Control.Monad.CPS.State ( module Control.Monad.State.Class , State , runState , State' , runState' ) where import Control.Monad import Control.Monad.CPS.Codensity import Control.Monad.State.Class import Control.Applicative newtype State s a = Stat...
99f1bf14ba02f98d851d97f50f50c1515cf396f914d03e07a9b443c50405ceda
joearms/music_experiments
midi_parser.erl
-module(midi_parser). -compile(export_all). info() -> info("rach-pc1-1.mid"). test() -> E = parse_file("jerusalem.mid"), E. parse_file(F) -> {ok, Bin} = file:read_file(F), parse_bin(Bin). parse_bin(B) -> Chunks = collect_chunks(B, []), [parse_chunk(I) || I <- Chunks]. %%--------------------...
null
https://raw.githubusercontent.com/joearms/music_experiments/3c0db01d03571599a3506fcb1a001d0b8dd205d9/midi_mac_driver/midi_parser.erl
erlang
---------------------------------------------------------------------- ---------------------------------------------------------------------- ---------------------------------------------------------------------- ---------------------------------------------------------------------- rewrite ...
-module(midi_parser). -compile(export_all). info() -> info("rach-pc1-1.mid"). test() -> E = parse_file("jerusalem.mid"), E. parse_file(F) -> {ok, Bin} = file:read_file(F), parse_bin(Bin). parse_bin(B) -> Chunks = collect_chunks(B, []), [parse_chunk(I) || I <- Chunks]. collect_chunks(<<"MTh...
e5fb0b0ec1390751b297f1f208a3237c997438af8dd22b4e85f04d77b6907fdc
gedge-platform/gedge-platform
rabbit_stomp_util.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved . %% -module(rabbit_stomp_util). -export([parse_messa...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/rabbitmq_stomp/src/rabbit_stomp_util.erl
erlang
-------------------------------------------------------------------- Frame and Header Parsing -------------------------------------------------------------------- ---- Header processing helpers ---- -------------------------------------------------------------------- Destination Formatting ------------------------...
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved . -module(rabbit_stomp_util). -export([parse_message_id/...
7146ca1f8af7b35de2e8b04797e5d02d12eb142821bb234852ef0b633c4544b2
nuprl/gradual-typing-performance
roof-south-east.rkt
#lang racket/base (provide roof-south-east) (require racket/draw racket/runtime-path) (define-runtime-path roof-south-east-img "roof-south-east.png") (define roof-south-east (read-bitmap roof-south-east-img))
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/pre-benchmark/ecoop/htdp-lib/2htdp/planetcute/roof-south-east.rkt
racket
#lang racket/base (provide roof-south-east) (require racket/draw racket/runtime-path) (define-runtime-path roof-south-east-img "roof-south-east.png") (define roof-south-east (read-bitmap roof-south-east-img))
c4ef8566c73b91cff340b2fc2f8d826be2ae0e0c9ce316cf37fd877fb572aeb4
dhleong/spade
atom.cljc
(ns spade.container.atom "The AtomStyleContainer renders styles into an atom it is provided with." (:require [spade.container :refer [IStyleContainer]])) (deftype AtomStyleContainer [styles-atom] IStyleContainer (mount-style! [_ style-name css] (swap! styles-atom assoc style-name css)))
null
https://raw.githubusercontent.com/dhleong/spade/d77c2adcf451aa9c0b55bd0a835d53f95c7becf4/src/spade/container/atom.cljc
clojure
(ns spade.container.atom "The AtomStyleContainer renders styles into an atom it is provided with." (:require [spade.container :refer [IStyleContainer]])) (deftype AtomStyleContainer [styles-atom] IStyleContainer (mount-style! [_ style-name css] (swap! styles-atom assoc style-name css)))
552eeff49c577b278af6d846d5a4fbbae0acd03531edfaed1f404ee274ea0583
emotiq/emotiq
package.lisp
(defpackage #:gossip-test (:use #:cl #:gossip #:lisp-unit))
null
https://raw.githubusercontent.com/emotiq/emotiq/9af78023f670777895a3dac29a2bbe98e19b6249/src/gossip/test/package.lisp
lisp
(defpackage #:gossip-test (:use #:cl #:gossip #:lisp-unit))
75416d45bcd692fe6a4bc3180c5ba0c5bac592779527098b5c76f09a03582d6d
yawaramin/re-web
ReWeb__Manual.ml
* ReWeb User 's Manual . This manual is written in syntax . OCaml syntax readers should hopefully be able to follow along without too much trouble . See { { : -web/ } } for sources OCaml syntax readers should hopefully be able to follow along without too much trouble. See {{: -web/}} fo...
null
https://raw.githubusercontent.com/yawaramin/re-web/7b407c1b98ddfac32a81c32481c40cc535c7452a/ReWeb/Manual/ReWeb__Manual.ml
ocaml
* Introduction to ReWeb--starting point--some ReasonML language knowledge assumed. * Details on ReWeb servers--what they are, how to use them. * Details on requests--how to use them. * Sending responses back to clients. * Transforming requests and responses in the pipeline. * How to configure ReWeb.
* ReWeb User 's Manual . This manual is written in syntax . OCaml syntax readers should hopefully be able to follow along without too much trouble . See { { : -web/ } } for sources OCaml syntax readers should hopefully be able to follow along without too much trouble. See {{: -web/}} fo...
71da31a3803114db937192d084ae35a3489c5aaf891006746081d97394460649
TrustInSoft/tis-kernel
lmap_bitwise.mli
(**************************************************************************) (* *) This file is part of . (* *) is a fork of Frama - C. Al...
null
https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/kernel_services/abstract_interp/lmap_bitwise.mli
ocaml
************************************************************************ ...
This file is part of . is a fork of Frama - C. All the differences are : Copyright ( C ) 2016 - 2017 is released under GPLv2 This file is part of Frama - C. Copyright ( C ) 2007 - 2015 ...
c52f86996ed907fd3f03d30c1290d1d78f67f3ef56f06693343d7717ec2a7b38
scymtym/clim.flamegraph
presentations.lisp
;;;; presentations.lisp --- Presentation types used in the view.flamegraph module. ;;;; Copyright ( C ) 2017 , 2018 , 2019 , 2020 Jan Moringen ;;;; Author : < > (cl:in-package #:clim.flamegraph.view.flamegraph) (clim:define-presentation-type node (&optional (depth 0) (position 0) (scale 1)) :inherit-from...
null
https://raw.githubusercontent.com/scymtym/clim.flamegraph/03b5e4f08b53af86a98afa975a8e7a29d0ddd3a7/src/view/flamegraph/presentations.lisp
lisp
presentations.lisp --- Presentation types used in the view.flamegraph module. Default view Flamegraph view Cache for graphical properties Text Dimensions FIXME This doesn't work. why? TODO correct? (format stream "~%~:D hit~:P" ) (format stream "~%~:D hit~:P" ) Include the RECORD so the border will be at l...
Copyright ( C ) 2017 , 2018 , 2019 , 2020 Jan Moringen Author : < > (cl:in-package #:clim.flamegraph.view.flamegraph) (clim:define-presentation-type node (&optional (depth 0) (position 0) (scale 1)) :inherit-from '(t)) (clim:define-presentation-type tree (&optional (shrink 1)) :inherit-from '(t)) (c...
56fc3f4c5a5f0b3e50009b830e4a5aa457d6664bdc65cbb8c4e2c815279f10f9
ekmett/category-extras
HigherOrder.hs
{-# OPTIONS_GHC -fglasgow-exts #-} ----------------------------------------------------------------------------- -- | -- Module : Control.Functor.HigherOrder Copyright : ( C ) 2008 -- License : BSD-style (see the file LICENSE) -- Maintainer : < > -- Stability : experimental -- Portabilit...
null
https://raw.githubusercontent.com/ekmett/category-extras/f0f3ca38a3dfcb49d39aa2bb5b31b719f2a5b1ae/Control/Functor/HigherOrder.hs
haskell
# OPTIONS_GHC -fglasgow-exts # --------------------------------------------------------------------------- | Module : Control.Functor.HigherOrder License : BSD-style (see the file LICENSE) Stability : experimental Portability : non-portable (rank-2 polymorphism) </~pjohann/tlca07-rev.pdf> -------...
Copyright : ( C ) 2008 Maintainer : < > and higher order functors from module Control.Functor.HigherOrder ( HFunctor(..) , HPointed(..) , HCopointed(..) , HAlgebra , HCoalgebra , FixH(..) , LowerH(..) ) where import Control.Functor import Control.Functor.Pointed import Control.Functo...
9884c298c63311ae16f7aac726510b0bfcdf80887425fbc9231fb838213621e2
Deducteam/CoqInE
translator.mli
open Dedukti (** Representation of universe level expression *) type level_expr = | Lvl of int (** Concrete integer level *) | S of int*level_expr (** [S(lvl,i)] level is [lvl] + [i] *) | GlobalLevel of string | NamedLevel of string | Local of int (** Locally bounded universe level polymorphic variable...
null
https://raw.githubusercontent.com/Deducteam/CoqInE/c38cca7fa27ee56c3ab2e8712d904b1620f8546d/src/translator.mli
ocaml
* Representation of universe level expression * Concrete integer level * [S(lvl,i)] level is [lvl] + [i] * Locally bounded universe level polymorphic variable. * Representation of universe expression * Predicative Set * Type of a level * Locally bounded polymorphic universe * [mk_type i] represents Type@{i...
open Dedukti type level_expr = | GlobalLevel of string | NamedLevel of string | Local of int * { u | u \in l } type universe_expr = | Prop | GlobalSort of string * Global universe " Coq.Module.index " | NamedSort of string | LocalU of int * Locally bounded universe polymorphic variable . ( FIXME : ...
10cbee03eac38322a70df0e0c1a12a3870fe404b946cddf55c8fdc7f571b740a
kappelmann/engaging-large-scale-functional-programming
IO.hs
# LANGUAGE Trustworthy # # LANGUAGE NoImplicitPrelude # module System.IO ( IO, Handle, IOMode (..), SeekMode (..), FilePath, HandlePosn, IOException (..), IOErrorType (..), BufferMode (..), stdin, stdout, stderr, withFile, openFile, hClose, readFile, writeFile, appendFile, doesFileExist, hFileSize,...
null
https://raw.githubusercontent.com/kappelmann/engaging-large-scale-functional-programming/28905255605b55353de2d06239f79448c6fe4230/resources/io_mocking/hello/mock/System/IO.hs
haskell
# LANGUAGE Trustworthy # # LANGUAGE NoImplicitPrelude # module System.IO ( IO, Handle, IOMode (..), SeekMode (..), FilePath, HandlePosn, IOException (..), IOErrorType (..), BufferMode (..), stdin, stdout, stderr, withFile, openFile, hClose, readFile, writeFile, appendFile, doesFileExist, hFileSize,...
2f82d57571b8f5b493f007a56c5475bc7242d25ae5ad46ce5df3f0e730b83ade
B-Lang-org/bsc
PreIds.hs
module PreIds where import Position import PreStrings import Id import FStringCompat(FString) -- | Identifier without a position mk_no :: FString -> Id mk_no fs = mkId noPosition fs -- | Identifier in the Standard Prelude, with a position prelude_id :: Position -> FString -> Id prelude_id p fs = mkQId p fsPrelude fs...
null
https://raw.githubusercontent.com/B-Lang-org/bsc/38674d719e6372a84fa1ca15986701b206073f7c/src/comp/PreIds.hs
haskell
| Identifier without a position | Identifier in the Standard Prelude, with a position | Identifier in the Standard Prelude, with no position | Identifier in the Standard Prelude, with a position | Identifier in the Standard Prelude, with no position | Add id properties to an already existing identifier Used by d...
module PreIds where import Position import PreStrings import Id import FStringCompat(FString) mk_no :: FString -> Id mk_no fs = mkId noPosition fs prelude_id :: Position -> FString -> Id prelude_id p fs = mkQId p fsPrelude fs prelude_id_no :: FString -> Id prelude_id_no fs = prelude_id noPosition fs prelude_bsv_id...
27959d11b595499aeff2a67ecc87a0e254172d73ad27a6e7739a39e5e4973cf8
alexandergunnarson/quantum
ns.cljc
(ns quantum.test.core.ns (:require [quantum.core.ns :as ns])) (defn test:search-var [var0]) (defn test:ns-exclude [& syms]) (defn test:with-ns [ns- & body]) (defn test:with-temp-ns [& exprs]) (defn test:import-static [class & fields-and-methods])
null
https://raw.githubusercontent.com/alexandergunnarson/quantum/0c655af439734709566110949f9f2f482e468509/test/quantum/test/core/ns.cljc
clojure
(ns quantum.test.core.ns (:require [quantum.core.ns :as ns])) (defn test:search-var [var0]) (defn test:ns-exclude [& syms]) (defn test:with-ns [ns- & body]) (defn test:with-temp-ns [& exprs]) (defn test:import-static [class & fields-and-methods])
32e876845886d88eb384c235e6ecb6e343712919f118bdcfd94a27afb77dd0f2
crosswire/xiphos
siod.scm
SIOD : Scheme In One Defun -*-mode : scheme-*- ;; * COPYRIGHT ( c ) 1989 - 1992 BY * * PARADIGM ASSOCIATES INCORPORATED , CAMBRIDGE , MASSACHUSETTS . * * See the source file SLIB.C for more information . ...
null
https://raw.githubusercontent.com/crosswire/xiphos/a9283769ef4d0d47f1d09a3ca4138610bb96a46c/win32/festival/lib/siod.scm
scheme
* adding documentation strings to all functions/variable * removing some example functions not relevant to Festival (or siod) * addition of new functions (require provide etc) ; Optional Runtime Library for Release 2.8 ") Have to set var-docstrings to nil first as defvar requires it to be set always add ...
SIOD : Scheme In One Defun -*-mode : scheme-*- * COPYRIGHT ( c ) 1989 - 1992 BY * * PARADIGM ASSOCIATES INCORPORATED , CAMBRIDGE , MASSACHUSETTS . * * See the source file SLIB.C for more information . ...
9380350f6ac5a685035ddd1f921e899cba9fb97188b7df085cb609e251ed7614
lambdaisland/glogi
glogc_test.cljs
(ns lambdaisland.glogc-test (:require [lambdaisland.glogc :as logc] [lambdaisland.glogi :as log] [clojure.test :refer [deftest testing is are use-fixtures run-tests join-fixtures]])) (enable-console-print!) (deftest smoke-test (let [captured (atom []) handler (fn [record] (swap! ca...
null
https://raw.githubusercontent.com/lambdaisland/glogi/96487504deafc25cceac4e1bd2f4de2c37b8711d/test/lambdaisland/glogc_test.cljs
clojure
(ns lambdaisland.glogc-test (:require [lambdaisland.glogc :as logc] [lambdaisland.glogi :as log] [clojure.test :refer [deftest testing is are use-fixtures run-tests join-fixtures]])) (enable-console-print!) (deftest smoke-test (let [captured (atom []) handler (fn [record] (swap! ca...
81ff87163b27ba5c2f6f611dcdf13c640dc8d274894ead30d64a697b75d8852e
matteobusi/incremental-mincaml
fact-wrongtype.ml
let rec fact (n : int) : int = if n > 0 then n * (fact (n-1)) else 1 in print_int(fact 7.1)
null
https://raw.githubusercontent.com/matteobusi/incremental-mincaml/aebbaf3b918bab4b0398edbf01b43c63d8b7820d/src/fun/examples/fact-wrongtype.ml
ocaml
let rec fact (n : int) : int = if n > 0 then n * (fact (n-1)) else 1 in print_int(fact 7.1)
820bb8f81743e4075fc2762e39adf37977fe4170d093ff75604490a3485a7e85
monadfix/ormolu-live
PackageDb.hs
# LANGUAGE CPP # {-# LANGUAGE ConstraintKinds #-} # LANGUAGE DataKinds # # LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # {-# LANGUAGE DeriveTraversable #-} # LANGUAGE FunctionalDependencies # # LANGUAGE LambdaCase # {-# LANGUAGE GADTs #-} # LANGUAGE KindSignatures # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ...
null
https://raw.githubusercontent.com/monadfix/ormolu-live/d8ae72ef168b98a8d179d642f70352c88b3ac226/ghc-lib-parser-8.10.1.20200412/libraries/ghc-boot/GHC/PackageDb.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE DeriveTraversable # # LANGUAGE GADTs # --------------------------------------------------------------------------- | Module : GHC.PackageDb Portability : portable registerd packages, such as module names, various paths etc. On the other to regurgitate it for users...
# LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # # LANGUAGE FunctionalDependencies # # LANGUAGE LambdaCase # # LANGUAGE KindSignatures # # LANGUAGE MultiParamTypeClasses # # LANGUAGE StandaloneDeriving # # LANGUAGE TupleSections # # OPTIONS_GHC -fno - warn - name - shadowin...
91e49a554c4031a75a7d17518636a4a15c6e1cc703533d4b4b29534d76be44ca
haskell-mafia/boris
Dashboard.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} module Boris.Http.Resource.Dashboard ( dashboard ) where import Airship (Resource (..), defaultResource) import Boris.Http.Airship import qualified Boris.Http.Html.Template as T import Boris.Queue (BuildQueue (..)) ...
null
https://raw.githubusercontent.com/haskell-mafia/boris/fb670071600e8b2d8dbb9191fcf6bf8488f83f5a/boris-http/src/Boris/Http/Resource/Dashboard.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE NoImplicitPrelude # module Boris.Http.Resource.Dashboard ( dashboard ) where import Airship (Resource (..), defaultResource) import Boris.Http.Airship import qualified Boris.Http.Html.Template as T import Boris.Queue (BuildQueue (..)) import qualified Boris.Queue as Q ...
76e5f0511694599d863bd3fbe6215dca19a63fa4e69f42b7ec1bcf6382b6009c
picty/parsifal
enum_test.ml
enum pouet (8, UnknownVal Unknown) = | 0 -> Zero, "0" | 1 -> One | 2 | 3 -> TwoOrThree, "2 or 3" | 4 | 5 -> FourOrFive | 6, 10 -> SixToTen, "6 .. 10" | 11, 20 -> More
null
https://raw.githubusercontent.com/picty/parsifal/767a1d558ea6da23ada46d8d96a057514b0aa2a8/syntax/unit/enum_test.ml
ocaml
enum pouet (8, UnknownVal Unknown) = | 0 -> Zero, "0" | 1 -> One | 2 | 3 -> TwoOrThree, "2 or 3" | 4 | 5 -> FourOrFive | 6, 10 -> SixToTen, "6 .. 10" | 11, 20 -> More
e5afaa893d3d0e2974456cd2dcef7c20eb584d12f91db9f0911b47fdc6ebbdac
josefs/Gradualizer
underscore.erl
-module(underscore). -compile([export_all, nowarn_export_all]). -spec underscore(_) -> _. underscore(1) -> "apa".
null
https://raw.githubusercontent.com/josefs/Gradualizer/208f5816b0157f282212fc036ba7560f0822f9fc/test/should_pass/underscore.erl
erlang
-module(underscore). -compile([export_all, nowarn_export_all]). -spec underscore(_) -> _. underscore(1) -> "apa".
078e5b41a6ed69e37b2a56b8732ca4f673462b94255ce0a4dff13a197650f4ae
darrenldl/ProVerif-ATP
reduction.mli
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
null
https://raw.githubusercontent.com/darrenldl/ProVerif-ATP/7af6cfb9e0550ecdb072c471e15b8f22b07408bd/proverif2.00/src/reduction.mli
ocaml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
665bad907bed41bd7de1ad1761197432fe596fa4fcf52c8bb8ca7814fa0b8c05
urbanslug/wai-devel
ReverseProxySpec.hs
module Devel.ReverseProxySpec where import Test.Hspec import Control.Concurrent import Devel.ReverseProxy import Data.IORef main :: IO () main = hspec spec spec :: Spec spec = do describe "Reverse proxing" $ it "Starts a reverse proxy server from 3000 to 3001" $ do iStrLst <- newIORef [] :: IO (IORef [...
null
https://raw.githubusercontent.com/urbanslug/wai-devel/6d1c5dc7fe59f8aa3b88b91201e859af9f8a92a4/tests/Devel/ReverseProxySpec.hs
haskell
module Devel.ReverseProxySpec where import Test.Hspec import Control.Concurrent import Devel.ReverseProxy import Data.IORef main :: IO () main = hspec spec spec :: Spec spec = do describe "Reverse proxing" $ it "Starts a reverse proxy server from 3000 to 3001" $ do iStrLst <- newIORef [] :: IO (IORef [...
2dde2f5032983fdb02bd6b2312310531ee289378626690487aa15d35b12f648e
MaartenFaddegon/Hoed
Behaviour.hs
module Behaviour(Trace(..),(+++),approx) where data Trace a = Step (Trace a) | a :> Trace a | End | Crash deriving (Eq, Show) (+++) :: Trace a -> Trace a -> Trace a Step s +++ t = Step (s +++ t) (x :> s) +++ t = x :> (s +++ t) End +++ t = t Crash +++ t = Crash approx :: Eq a => Int -> Trace a -> ...
null
https://raw.githubusercontent.com/MaartenFaddegon/Hoed/8769d69e309928aab439b22bc3f3dbf5452acc77/examples/afp02Exercises/Compiler/vanilla/Behaviour.hs
haskell
module Behaviour(Trace(..),(+++),approx) where data Trace a = Step (Trace a) | a :> Trace a | End | Crash deriving (Eq, Show) (+++) :: Trace a -> Trace a -> Trace a Step s +++ t = Step (s +++ t) (x :> s) +++ t = x :> (s +++ t) End +++ t = t Crash +++ t = Crash approx :: Eq a => Int -> Trace a -> ...
a35218faee854f136b21b4745776d1727fe3d882e24604f5c16fe903a462b72a
imrehg/ypsilon
text.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 gtk text) (export gtk_text_attributes_copy gtk_text_attributes_copy_values gtk_text_attributes_get_type gtk_...
null
https://raw.githubusercontent.com/imrehg/ypsilon/e57a06ef5c66c1a88905b2be2fa791fa29848514/sitelib/ypsilon/gtk/text.scm
scheme
GtkTextAttributes* gtk_text_attributes_copy (GtkTextAttributes* src) void gtk_text_attributes_copy_values (GtkTextAttributes* src, GtkTextAttributes* dest) GtkTextAttributes* gtk_text_attributes_ref (GtkTextAttributes* values) void gtk_text_attributes_unref (GtkTextAttributes* values) void gtk_text_buffer_add_mark...
#!nobacktrace Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (library (ypsilon gtk text) (export gtk_text_attributes_copy gtk_text_attributes_copy_values gtk_text_attributes_get_type gtk_...
85ac0bc7298105b92f59a0ee4d9b252d0568811408db5f84c663dcd30aa14c5a
cljdoc/cljdoc
lint.clj
#!/usr/bin/env bb (ns lint (:require [babashka.classpath :as bbcp] [babashka.fs :as fs] [clojure.string :as string] [helper.main :as main] [helper.shell :as shell] [lread.status-line :as status])) (def clj-kondo-cache ".clj-kondo/.cache") (defn- cache-exi...
null
https://raw.githubusercontent.com/cljdoc/cljdoc/390404a4907beb3b6c311b96b4455131d33a7e63/script/lint.clj
clojure
#!/usr/bin/env bb (ns lint (:require [babashka.classpath :as bbcp] [babashka.fs :as fs] [clojure.string :as string] [helper.main :as main] [helper.shell :as shell] [lread.status-line :as status])) (def clj-kondo-cache ".clj-kondo/.cache") (defn- cache-exi...
eafcfc72b15192a529ffdb1e7fa42020dd8ef73719bcb78d3864d57d22135c5f
agda/agda2hs
AutoLambdaCaseInCase.hs
# LANGUAGE LambdaCase # module AutoLambdaCaseInCase where lcaseInsideCaseOf :: [a] -> Maybe a -> Maybe a lcaseInsideCaseOf xs = case xs of [] -> \case Nothing -> Nothing Just _ -> Nothing x : _ -> \case Nothing -> Nothing J...
null
https://raw.githubusercontent.com/agda/agda2hs/a248c10876ad7832da3c908535a1ddeff84d210e/test/golden/AutoLambdaCaseInCase.hs
haskell
# LANGUAGE LambdaCase # module AutoLambdaCaseInCase where lcaseInsideCaseOf :: [a] -> Maybe a -> Maybe a lcaseInsideCaseOf xs = case xs of [] -> \case Nothing -> Nothing Just _ -> Nothing x : _ -> \case Nothing -> Nothing J...
e1c3a20df520bc05e75c06a0c713eac88b4380840e378f70e3221ef37eda502f
nuvla/api-server
cloud_entry_point_test.cljc
(ns sixsq.nuvla.server.resources.spec.cloud-entry-point-test (:require [clojure.test :refer [deftest]] [sixsq.nuvla.server.app.params :as p] [sixsq.nuvla.server.resources.cloud-entry-point :as t] [sixsq.nuvla.server.resources.spec.cloud-entry-point :as cep] [sixsq.nuvla.server.resources.spec.spec-...
null
https://raw.githubusercontent.com/nuvla/api-server/a64a61b227733f1a0a945003edf5abaf5150a15c/code/test/sixsq/nuvla/server/resources/spec/cloud_entry_point_test.cljc
clojure
(ns sixsq.nuvla.server.resources.spec.cloud-entry-point-test (:require [clojure.test :refer [deftest]] [sixsq.nuvla.server.app.params :as p] [sixsq.nuvla.server.resources.cloud-entry-point :as t] [sixsq.nuvla.server.resources.spec.cloud-entry-point :as cep] [sixsq.nuvla.server.resources.spec.spec-...
a5d6305904a96ce065b1310c211d73112a0a51110b1f82a3070498ce6a7f7a4c
sicmutils/sicmutils
midpoint_test.cljc
#_"SPDX-License-Identifier: GPL-3.0" (ns sicmutils.numerical.quadrature.midpoint-test (:require [clojure.test :refer [is deftest testing]] [same :refer [ish?]] [sicmutils.numerical.quadrature.midpoint :as qm] [sicmutils.numerical.quadrature.riemann :as qr] [sicmutils.n...
null
https://raw.githubusercontent.com/sicmutils/sicmutils/ce763b31153eb9253f165bd5b4e4e6a6087bf730/test/sicmutils/numerical/quadrature/midpoint_test.cljc
clojure
#_"SPDX-License-Identifier: GPL-3.0" (ns sicmutils.numerical.quadrature.midpoint-test (:require [clojure.test :refer [is deftest testing]] [same :refer [ish?]] [sicmutils.numerical.quadrature.midpoint :as qm] [sicmutils.numerical.quadrature.riemann :as qr] [sicmutils.n...
391533b00608e596c4b8fbdfecec483fae3bf17e570747137803eeaf316f8da3
Datomic/day-of-datomic
pipelining.clj
Copyright ( c ) Cognitect , Inc. 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.html at the root of this distribution. ; By using this software in any fashion, you are agreeing to be...
null
https://raw.githubusercontent.com/Datomic/day-of-datomic/20c02d26fd2a12481903dd5347589456c74f8eeb/tutorial/pipelining.clj
clojure
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.html 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 ...
Copyright ( c ) Cognitect , Inc. All rights reserved . (require '[datomic.api :as d] '[datomic.samples.repl :as repl]) (set! *warn-on-reflection* true) (import 'java.util.concurrent.LinkedBlockingQueue) (defn pipeline [conn txes in-flight] (let [q (LinkedBlockingQueue. (int in-flight))] {:result-future...
d66a23b17db73a47b060eb78e452b6b8472acd68a2e9d50c050b0ab1e797f619
wedesoft/sfsim25
curl.clj
(require '[clojure.math :refer (to-radians cos sin PI round floor pow)] '[clojure.core.matrix :refer (matrix array dimension-count eseq slice-view add sub mul inverse mmul mget)] '[clojure.core.matrix.linear :refer (norm)] '[com.climate.claypoole :refer (pfor ncpus)] '[comb.template ...
null
https://raw.githubusercontent.com/wedesoft/sfsim25/7d2f4a31c21ac8c2f6833fb5a63617d07da55f39/etc/curl.clj
clojure
(require '[clojure.math :refer (to-radians cos sin PI round floor pow)] '[clojure.core.matrix :refer (matrix array dimension-count eseq slice-view add sub mul inverse mmul mget)] '[clojure.core.matrix.linear :refer (norm)] '[com.climate.claypoole :refer (pfor ncpus)] '[comb.template ...
a6aff2d0768e92b50b7b5b5a7405dc18d0fe946f9c1b689beb9b80aea511f09a
auser/hermes
protobuffs_parser.erl
Copyright ( c ) 2009 < > < > %% %% Permission is hereby granted, free of charge, to any person %% obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without %% restriction, including without limitation the rights to use, %% copy, modify, mer...
null
https://raw.githubusercontent.com/auser/hermes/32741eb75398ebbcbf640e2c73dfd2a54f0d1241/deps/erlang_protobuffs/src/protobuffs_parser.erl
erlang
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell Software is furnished to do so, subject to the following condit...
Copyright ( c ) 2009 < > < > files ( the " Software " ) , to deal in the Software without copies of the Software , and to permit persons to whom the included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , -module(protobuffs...
77d6dd456348f33cf4395201226f9274373f161004caf4b0108fc94b8d0f5724
marigold-dev/deku
node.mli
open Deku_stdlib open Deku_concepts open Deku_chain open Deku_network open Deku_block_storage open Deku_tezos_interop type node = private { identity : Identity.t; default_block_size : int; dump : Chain.t -> unit; network : Network_manager.t; indexer : Block_storage.t option; mutable tezos_interop : Tezos_i...
null
https://raw.githubusercontent.com/marigold-dev/deku/6ba7a02f1ebb28552d5e645d87b1742de91ef986/deku-p/src/core/bin/node/node.mli
ocaml
open Deku_stdlib open Deku_concepts open Deku_chain open Deku_network open Deku_block_storage open Deku_tezos_interop type node = private { identity : Identity.t; default_block_size : int; dump : Chain.t -> unit; network : Network_manager.t; indexer : Block_storage.t option; mutable tezos_interop : Tezos_i...
944547220ec62867a261f870b15953e294ab1f285b65edc66b569ad789519661
shenxs/about-scheme
Tax.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 Tax) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "universe.rkt" ...
null
https://raw.githubusercontent.com/shenxs/about-scheme/d458776a62cb0bbcbfbb2a044ed18b849f26fd0f/HTDP/Tax.rkt
racket
about the language level of this file in a form that our tools can easily process.
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname Tax) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "universe.rkt" "teachpack" "2htdp") (lib "batch-io.rkt" "teachpack" "2htdp"))) (htdp-settings #(#t wr...
5d4dbd8b900406eb74c2ff40eb5a0d2a3e60bc33cbf48e482dcc3f20fbb530e6
simonmar/monad-par
IList.hs
-- | INTERNAL module. -- -- ILists are lists whose cdr fields are IVars, filled in asynchronously via Par computation . This module mostly exists as a -- datatype to use in building other, higher-level abstractions. (See -- OpenList and Stream.) module Control.Monad.Par.IList ( IList(..) ) where import C...
null
https://raw.githubusercontent.com/simonmar/monad-par/1266b0ac1b4040963ab356cf032c6aae6b8a7add/monad-par/Control/Monad/Par/IList.hs
haskell
| INTERNAL module. ILists are lists whose cdr fields are IVars, filled in datatype to use in building other, higher-level abstractions. (See OpenList and Stream.) produced and consumed in parallel. and tail. This does not evaluate the entire spine of the list rnf Null = r0
asynchronously via Par computation . This module mostly exists as a module Control.Monad.Par.IList ( IList(..) ) where import Control.Monad.Par import Control.DeepSeq | An ' IList ' is the equivalent of a lazy list in the ' Par ' monad . The tail of the list is an ' IVar ' , which allows the list to b...
cdd4c935cd4c217ab4618bcd4b456066740d1f7e9e386b55bff26ab6c899e9b6
google/ormolu
no-annotation-out.hs
module Main where -- | Documentation. data family Array e
null
https://raw.githubusercontent.com/google/ormolu/ffdf145bbdf917d54a3ef4951fc2655e35847ff0/data/examples/declaration/type-families/data-family/no-annotation-out.hs
haskell
| Documentation.
module Main where data family Array e
315ec49e9d49f37c215b3b804d4d8e05e570c9c7a7b9722b147e9fc75029f5dd
beamspirit/bigwig
bigwig_util.erl
%% %% miscellaneous utilities %% -module(bigwig_util). -export([parse_term/1, ensure_dot/1, url_decode/1, md5/1]). -export([date_str/1, date_str/2]). -spec parse_term(binary() | list()) -> {ok, any()} | {error, any()}. parse_term(Bin) when is_binary(Bin) -> parse_term(binary_to_list(Bin)); parse_term(Str) when is...
null
https://raw.githubusercontent.com/beamspirit/bigwig/552ac9968d2457286056a17f3be7f53ec72a31cc/src/bigwig_util.erl
erlang
miscellaneous utilities the following url encoding stuff was taken from yaws.erl sadly, cowboy _req:qs_val doesn't url-decode vals , Hi, Lo | Tail]) -> deep lists should not happen
-module(bigwig_util). -export([parse_term/1, ensure_dot/1, url_decode/1, md5/1]). -export([date_str/1, date_str/2]). -spec parse_term(binary() | list()) -> {ok, any()} | {error, any()}. parse_term(Bin) when is_binary(Bin) -> parse_term(binary_to_list(Bin)); parse_term(Str) when is_list(Str) -> case erl_scan:s...
e9191bff2c11412f1192fff78fa6737622f420b78343bc3790db6c389d920baa
ndmitchell/shake
Value.hs
# LANGUAGE ExistentialQuantification , RecordWildCards , ScopedTypeVariables # {-# LANGUAGE ConstraintKinds #-} | This module implements the Key / Value types , to abstract over hetrogenous data types . module Development.Shake.Internal.Value( Value, newValue, fromValue, Key, newKey, fromKey, typeKey, Sh...
null
https://raw.githubusercontent.com/ndmitchell/shake/99c5a7a4dc1d5a069b13ed5c1bc8e4bc7f13f4a6/src/Development/Shake/Internal/Value.hs
haskell
# LANGUAGE ConstraintKinds # Using this alias requires the @ConstraintKinds@ extension. To define your own values meeting the necessary constraints it is convenient to use the extensions @GeneralizedNewtypeDeriving@ and @DeriveDataTypeable@ to write: Shake needs these instances on keys and values. They a...
# LANGUAGE ExistentialQuantification , RecordWildCards , ScopedTypeVariables # | This module implements the Key / Value types , to abstract over hetrogenous data types . module Development.Shake.Internal.Value( Value, newValue, fromValue, Key, newKey, fromKey, typeKey, ShakeValue ) where import Deve...
fa4520ff6bdfcf621b314989f846e92febb033b91e30d2472b68224eccf0df9c
huangz1990/SICP-answers
test-79-install-scheme-number-package.scm
(load "test-manager/load.scm") (load "79-install-scheme-number-package.scm") (load "79-equ.scm") (install-scheme-number-package) (define-each-check (equ? (make-scheme-number 10) (make-scheme-number 10)) (false? (equ? (make-scheme-number 10) (make-scheme-number 1008611))) ) (...
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp2/code/test-79-install-scheme-number-package.scm
scheme
(load "test-manager/load.scm") (load "79-install-scheme-number-package.scm") (load "79-equ.scm") (install-scheme-number-package) (define-each-check (equ? (make-scheme-number 10) (make-scheme-number 10)) (false? (equ? (make-scheme-number 10) (make-scheme-number 1008611))) ) (...
eddbd466dc990de1cf466e7806e6c8de599568605e66cafeef628bef6ce4d95a
adaliu-gh/htdp
10-174.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 10-174) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f...
null
https://raw.githubusercontent.com/adaliu-gh/htdp/a0fca8af2ae8bdcef40d56f6f45021dd92df2995/8-13%20Arbitrarily%20Large%20Data/10-174.rkt
racket
about the language level of this file in a form that our tools can easily process. 1String -> String 1String -> String String -> String converts the given word into a numeric string Low -> Low encodes a list of words encodes a list of list of strings String -> LLS encodes a file
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname 10-174) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (require 2htdp/batch-io) converts the given 1String to a 3 - l...
312d31f815f6c245c2ad7238a70f2d626632289994148aee34bac3c451416b39
clojurecademy/clojurecademy
user.clj
(ns clojurecademy.controller.user (:require [clojurecademy.validation :as validation] [clojurecademy.util.resource :as resource.util :refer [check]] [clojurecademy.dao.user :as user.dao] [kezban.core :refer :all] [clojure.string :as str] [pandect.algo.sha256...
null
https://raw.githubusercontent.com/clojurecademy/clojurecademy/97dc7f9b91a90a3f30ca5a3de88542c90a50ce01/src/clj/clojurecademy/controller/user.clj
clojure
(ns clojurecademy.controller.user (:require [clojurecademy.validation :as validation] [clojurecademy.util.resource :as resource.util :refer [check]] [clojurecademy.dao.user :as user.dao] [kezban.core :refer :all] [clojure.string :as str] [pandect.algo.sha256...
98e7973ce12b43dc5ec498954db1038add6d6b70ab1a27439cb5b0063312a1a8
kardan/taxa
taxa.cljc
(ns ^{:author "Daniel Sunnerek" :doc "Taxa, an experiment in hierarchical domain logic "} com.kardans.taxa (:require [clojure.set :as set])) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; Tag ;;; (defmulti tag "Tag from either tag, taxon or variant." {:arglists '([...
null
https://raw.githubusercontent.com/kardan/taxa/e76d1ded4ad2fe140284a0be7261580d65293578/src/main/com/kardans/taxa.cljc
clojure
Tag Thing Taxon Derive defaults tags in default hierarchy. Predicates
(ns ^{:author "Daniel Sunnerek" :doc "Taxa, an experiment in hierarchical domain logic "} com.kardans.taxa (:require [clojure.set :as set])) (defmulti tag "Tag from either tag, taxon or variant." {:arglists '([from])} (fn [from] (cond (map? from) :taxon (keyword? from) :tag (vec...
483af04fc79eb8c579bb30cd3bfb2e772238a19ab0e920da2a11705957d84ba1
aplusbi/reflow
ringbuffer.mli
type t val create : int -> t val unix_read : Unix.file_descr -> t -> int val unix_write : Unix.file_descr -> t -> int val read_from_string : string -> t -> int -> int -> unit val string_of_ringbuffer : t -> string val substring_of_ringbuffer : t -> int -> int -> string val iter : (char -> 'a) -> t -> unit val get : t ...
null
https://raw.githubusercontent.com/aplusbi/reflow/771c901077a9a46485e54bd824c68959c964ed04/ringbuffer.mli
ocaml
type t val create : int -> t val unix_read : Unix.file_descr -> t -> int val unix_write : Unix.file_descr -> t -> int val read_from_string : string -> t -> int -> int -> unit val string_of_ringbuffer : t -> string val substring_of_ringbuffer : t -> int -> int -> string val iter : (char -> 'a) -> t -> unit val get : t ...
13fee28e150caf35da679d14d6e57c4a268e83158ae4ef818daa748053c53d00
avsm/platform
opamSysPoll.mli
(**************************************************************************) (* *) (* Copyright 2017 OCamlPro *) (* *) (* All righ...
null
https://raw.githubusercontent.com/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/opam-client.2.0.5%2Bdune/src/state/opamSysPoll.mli
ocaml
************************************************************************ Copyright 2017 OCamlPro All rights reserved. This ...
GNU Lesser General Public License version 2.1 , with the special val arch: unit -> string option val os: unit -> string option val os_distribution: unit -> string option val os_version: unit -> string option val os_family: unit -> string option val variables: (OpamVariable.t * OpamTypes.variable_contents o...
5837f7db888ee8ab1166292f3818ba1158d2ca693b88d675d3050af6fe9a0e57
mbacarella/opws
opws.ml
An implementation of PWSAFE command - line which supports v3 databases Copyright ( C ) 2008 < > 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 Lice...
null
https://raw.githubusercontent.com/mbacarella/opws/f262e0f6d24ed896c9559c94dc4b747375b90224/opws.ml
ocaml
find start of next block read the block get in position for the next call | Named Password Policies of string | Protected of bool KEYSTRETCH/hash implementation as specified here: /~daw/papers/keystretch.ps XXX: not tail recursive
An implementation of PWSAFE command - line which supports v3 databases Copyright ( C ) 2008 < > 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 Lice...
6355d4aaa699fbff2cf77e6eb996f831e71c4b1c8c0822b7da47761e5d9d1662
gsakkas/rite
2020.ml
let rec removeZero l = match l with | [] -> [] | 0::t -> removeZero t | _ -> l;; let rec mulByDigit i l = let f a x = match a with | [] -> (i * x) :: a | h::t -> [(i * x) + (h / 10); h mod 10] @ t in let base = [] in let args = List.rev (0 :: l) in removeZero (List.fold_left f base args);; let bi...
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/data/sp14_min/2020.ml
ocaml
let rec removeZero l = match l with | [] -> [] | 0::t -> removeZero t | _ -> l;; let rec mulByDigit i l = let f a x = match a with | [] -> (i * x) :: a | h::t -> [(i * x) + (h / 10); h mod 10] @ t in let base = [] in let args = List.rev (0 :: l) in removeZero (List.fold_left f base args);; let bi...
db2f6658c6f274b8a01486057a9769803e432b3edaa9598bcc0be485860f3339
fragnix/fragnix
GHC.List.hs
{-# LINE 1 "GHC.List.hs" #-} # LANGUAGE Trustworthy # # LANGUAGE CPP , NoImplicitPrelude , ScopedTypeVariables , MagicHash # {-# LANGUAGE BangPatterns #-} {-# OPTIONS_HADDOCK hide #-} ----------------------------------------------------------------------------- -- | -- Module ...
null
https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/builtins/base/GHC.List.hs
haskell
# LINE 1 "GHC.List.hs" # # LANGUAGE BangPatterns # # OPTIONS_HADDOCK hide # --------------------------------------------------------------------------- | Module : GHC.List License : see libraries/base/LICENSE Maintainer : Stability : internal The List data type and its operations -------------...
# LANGUAGE Trustworthy # # LANGUAGE CPP , NoImplicitPrelude , ScopedTypeVariables , MagicHash # Copyright : ( c ) The University of Glasgow 1994 - 2002 Portability : non - portable ( GHC Extensions ) module GHC.List ( map, (++), filter, concat, head, last, t...
65957c52dfe1a2446aaeb936d04bb6040418c9e522eead1acd6f86d20158d18d
BitGameEN/bitgamex
websocket_req.erl
@doc Accessor module for the # websocket_req { } record . -module(websocket_req). -record(websocket_req, { protocol :: protocol(), host :: string(), port :: inet:port_number(), path ...
null
https://raw.githubusercontent.com/BitGameEN/bitgamex/151ba70a481615379f9648581a5d459b503abe19/src/deps/websocket_client/src/websocket_req.erl
erlang
@doc Mapping from opcode to opcode name @doc Mapping from opcode to opcode name
@doc Accessor module for the # websocket_req { } record . -module(websocket_req). -record(websocket_req, { protocol :: protocol(), host :: string(), port :: inet:port_number(), path ...
178c88885002ef0f9313bbbcbf5146b4e6dbc72782edfff8f6e58914bfbd238b
TorXakis/TorXakis
VarRef.hs
TorXakis - Model Based Testing Copyright ( c ) 2015 - 2017 TNO and Radboud University See LICENSE at root directory of this repository . TorXakis - Model Based Testing Copyright (c) 2015-2017 TNO and Radboud University See LICENSE at root directory of this repository. -} {-# LANGUAGE FlexibleContexts #-} {-#...
null
https://raw.githubusercontent.com/TorXakis/TorXakis/038463824b3d358df6b6b3ff08732335b7dbdb53/sys/txs-compiler/src/TorXakis/Compiler/Maps/VarRef.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # ------------------------------------------------------------------------------ | Stability : experimental Portability : portable Functions to manipulate maps of variable references. -----------------------------...
TorXakis - Model Based Testing Copyright ( c ) 2015 - 2017 TNO and Radboud University See LICENSE at root directory of this repository . TorXakis - Model Based Testing Copyright (c) 2015-2017 TNO and Radboud University See LICENSE at root directory of this repository. -} # LANGUAGE ScopedTypeVariables # Modul...
ef6551830a2dc7eb90aa8b85a924b2bc068c8bcef59f35a22bc4b5e3f5ac8ed3
noinia/hgeometry
DualCH.hs
# LANGUAGE ScopedTypeVariables # -------------------------------------------------------------------------------- -- | Module : Algorithms . Geometry . LowerEnvelope . DualCH Copyright : ( C ) -- License : see the LICENSE file Maintainer : ------------------------------------------------...
null
https://raw.githubusercontent.com/noinia/hgeometry/89cd3d3109ec68f877bf8e34dc34b6df337a4ec1/hgeometry/src/Algorithms/Geometry/LowerEnvelope/DualCH.hs
haskell
------------------------------------------------------------------------------ | License : see the LICENSE file ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ | Given a list of non-vertical lines, comp...
# LANGUAGE ScopedTypeVariables # Module : Algorithms . Geometry . LowerEnvelope . DualCH Copyright : ( C ) Maintainer : module Algorithms.Geometry.LowerEnvelope.DualCH where import Data.Maybe(fromJust) import Control.Lens((^.)) import Data.Ext import Geometry.Point import Geometry.Line impor...
db12d3c9649972c0cf40aece5fc6924cc6cc612b0a49fd6dc9880ed83e711fdc
softwarelanguageslab/maf
R5RS_scp1_compress-measurements-2.scm
; Changes: * removed : 0 * added : 1 * swaps : 0 * negated predicates : 1 ; * swapped branches: 0 ; * calls to id fun: 0 (letrec ((comprimeer (lambda (metingen) (<change> () cdr) (letrec ((hulp (lambda (lst prev co...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_scp1_compress-measurements-2.scm
scheme
Changes: * swapped branches: 0 * calls to id fun: 0
* removed : 0 * added : 1 * swaps : 0 * negated predicates : 1 (letrec ((comprimeer (lambda (metingen) (<change> () cdr) (letrec ((hulp (lambda (lst prev count) (if (null? ls...