_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
93940eb8b0273708a1300def87ea6f3139bc457bcc3ece34d9d66a53951bbdc7
tonyg/kali-scheme
primop.scm
Copyright ( c ) 1994 . See file COPYING . (define prescheme-primop-table (make-symbol-table)) (walk-vector (lambda (primop) (if (primop? primop) (table-set! prescheme-primop-table (primop-id primop) primop))) all-primops) (define (get-prescheme-primop id) (cond ((table...
null
https://raw.githubusercontent.com/tonyg/kali-scheme/79bf76b4964729b63fce99c4d2149b32cb067ac0/ps-compiler/prescheme/primop/primop.scm
scheme
all four args must be present if used as value (lambda (exp env) (args (map (lambda (arg) (expand arg env #f)) (make-block-exp (list (make-call-exp (get-prescheme-primop 'error) 0 type/unknown `...
Copyright ( c ) 1994 . See file COPYING . (define prescheme-primop-table (make-symbol-table)) (walk-vector (lambda (primop) (if (primop? primop) (table-set! prescheme-primop-table (primop-id primop) primop))) all-primops) (define (get-prescheme-primop id) (cond ((table...
39717f05c9b0ec81f640dc56eeefb74e66ef33294ae0c027d04faabca3b56fb2
plewto/Cadejo
noise_freq_panel.clj
(ns cadejo.instruments.cobalt.editor.noise-freq-panel (:require [cadejo.ui.util.sgwr-factory :as sf]) (:require [cadejo.util.math :as math]) (:require [sgwr.indicators.displaybar :as dbar])) (def ^:private left-margin 30) (defn- freq-pos [item p0] (let [pan-width 410 pan-height 120 x-offset le...
null
https://raw.githubusercontent.com/plewto/Cadejo/2a98610ce1f5fe01dce5f28d986a38c86677fd67/src/cadejo/instruments/cobalt/editor/noise_freq_panel.clj
clojure
(ns cadejo.instruments.cobalt.editor.noise-freq-panel (:require [cadejo.ui.util.sgwr-factory :as sf]) (:require [cadejo.util.math :as math]) (:require [sgwr.indicators.displaybar :as dbar])) (def ^:private left-margin 30) (defn- freq-pos [item p0] (let [pan-width 410 pan-height 120 x-offset le...
080ad8768a8ee40a46a8b556f408593198b45073e1840a144cc93c070be2637a
smuenzel/opile
flambda.ml
(* This file is generated from ../raw-compiler/flambda.mli using sexpify *) open! Core type call_kind = Compiler_without_sexp.Flambda.call_kind = | Indirect | Direct of Closure_id.t [@@deriving sexp_of] type const = Compiler_without_sexp.Flambda.const = | Int of int | Char of char | Const_pointer of int [...
null
https://raw.githubusercontent.com/smuenzel/opile/190ca86df6440550d0fddf0222e16ba2e52bca64/compiler-with-sexp/flambda.ml
ocaml
This file is generated from ../raw-compiler/flambda.mli using sexpify
open! Core type call_kind = Compiler_without_sexp.Flambda.call_kind = | Indirect | Direct of Closure_id.t [@@deriving sexp_of] type const = Compiler_without_sexp.Flambda.const = | Int of int | Char of char | Const_pointer of int [@@deriving sexp_of] type apply = Compiler_without_sexp.Flambda.apply = { ...
a9c8650ab56197e5eda931a27e12a5da6635676afb7658cfffbf4f7806b6b3d7
GrammaTech/sel
get-vars-from-ordinary-lambda-list-1.lisp
(defun f (a &rest b &key ((:c d) 1) &aux (e (list a b d))) e)
null
https://raw.githubusercontent.com/GrammaTech/sel/a59174c02a454e8d588614e221cf281260cf12f8/test/etc/lisp-scopes/get-vars-from-ordinary-lambda-list-1.lisp
lisp
(defun f (a &rest b &key ((:c d) 1) &aux (e (list a b d))) e)
ac1e030722d7d1859169ce1ed39b7220917443f17667edc9cffc7d299f284f17
jrm-code-project/LISP-Machine
pipe.lisp
-*- Mode : LISP ; Package : USER ; ; : CL -*- (defconst *n-inst* 8.) (defconst *level-width* 64.) (defconst *tick-width* (round (/ *level-width* 8))) (defun draw-one-level (x-pos tick-mark) (multiple-value-bind (width height) (send standard-output :inside-size) width (let ((start (round (* height...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/pace/pipe.lisp
lisp
Package : USER ; ; : CL -*-
(defconst *n-inst* 8.) (defconst *level-width* 64.) (defconst *tick-width* (round (/ *level-width* 8))) (defun draw-one-level (x-pos tick-mark) (multiple-value-bind (width height) (send standard-output :inside-size) width (let ((start (round (* height .02))) (end (round (* height .98)))) ...
3431e8746e814ae9038356684255e5df34bdb6e24e40951f32cb4f2a90add200
byorgey/diagrams-play
Color.hs
# LANGUAGE NoMonomorphismRestriction # import Diagrams.Backend.Cairo.CmdLine import Diagrams.Prelude colors = map (\k -> blend k blue yellow) [0, 0.05 .. 1] main = defaultMain (hcat . map (\c -> square 1 # fc c # lw 0) $ colors)
null
https://raw.githubusercontent.com/byorgey/diagrams-play/5362c715db394be6848ff5de1bbe71178e5f173f/Color.hs
haskell
# LANGUAGE NoMonomorphismRestriction # import Diagrams.Backend.Cairo.CmdLine import Diagrams.Prelude colors = map (\k -> blend k blue yellow) [0, 0.05 .. 1] main = defaultMain (hcat . map (\c -> square 1 # fc c # lw 0) $ colors)
9167068c68077083af2d5cec99b3dc8fb8404fc80668346fa8e9532df613e19d
ytomino/headmaster
myocamlbuild.ml
open Ocamlbuild_plugin;; dispatch begin function | After_rules -> ocaml_lib ~extern:true ~dir:(".") "gmp"; ocaml_lib ~extern:true ~dir:(".") "mpfr"; ocaml_lib ~extern:true ~dir:(".") "unicode"; tag_file "test_translator.ml" [ "use_gmp"; "use_mpfr"; "use_unicode"]; tag_file "test_translator.byte" [ "use_bi...
null
https://raw.githubusercontent.com/ytomino/headmaster/6c52709c7355b6418d5094f2b96da168fe276bae/examples/translator/myocamlbuild.ml
ocaml
open Ocamlbuild_plugin;; dispatch begin function | After_rules -> ocaml_lib ~extern:true ~dir:(".") "gmp"; ocaml_lib ~extern:true ~dir:(".") "mpfr"; ocaml_lib ~extern:true ~dir:(".") "unicode"; tag_file "test_translator.ml" [ "use_gmp"; "use_mpfr"; "use_unicode"]; tag_file "test_translator.byte" [ "use_bi...
5460355106ae31f7c9638679edbfbcc3285c57080e95bea13e606ead37ada3a9
janestreet/ppx_optcomp
c.ml
[%% optcomp.error "nested error" ]
null
https://raw.githubusercontent.com/janestreet/ppx_optcomp/f99923eebd455ef3a38bcadeb83dae42d5cb9773/test/test_imported/error/c.ml
ocaml
[%% optcomp.error "nested error" ]
44b4f70aac98185cb6631779a3f325a667e697c2b9ac3b3cc771d2833006e7f9
hikettei/cl-waffe
package.lisp
(in-package :cl-user) (defpackage cl-waffe.nn (:use :cl :cl-waffe) (:documentation "An packages for nn utils.") (:export :linear :linearlayer :denselayer :dropout :batchnorm2d :embedding :RNN :mse :softmax-cross-entropy :...
null
https://raw.githubusercontent.com/hikettei/cl-waffe/e6e46d3eab8133e30ce9d25dc773a1f3620cb718/source/nn/package.lisp
lisp
(in-package :cl-user) (defpackage cl-waffe.nn (:use :cl :cl-waffe) (:documentation "An packages for nn utils.") (:export :linear :linearlayer :denselayer :dropout :batchnorm2d :embedding :RNN :mse :softmax-cross-entropy :...
de547da3ba127b577113f5be4b71e9fabba2ebc14d214e55ea1a5632752065f5
RedPRL/redtt
Dir.ml
type t = I.t * I.t type 'a m = [`Ok of 'a | `Same of t] let make r r' = if r = r' then `Same (r, r') else `Ok (r, r') let gen_const x epsilon : t = `Atom x, match epsilon with | `Dim0 -> `Dim0 | `Dim1 -> `Dim1 let swap (r, r') = r', r let unleash p = p let act phi (r, r') : t m = make (I.act phi r) (I....
null
https://raw.githubusercontent.com/RedPRL/redtt/50689559ff970e33013b8cf8a3bbc8be18ec4e09/src/core/Dir.ml
ocaml
type t = I.t * I.t type 'a m = [`Ok of 'a | `Same of t] let make r r' = if r = r' then `Same (r, r') else `Ok (r, r') let gen_const x epsilon : t = `Atom x, match epsilon with | `Dim0 -> `Dim0 | `Dim1 -> `Dim1 let swap (r, r') = r', r let unleash p = p let act phi (r, r') : t m = make (I.act phi r) (I....
c3bb0636f1c8ea8fd2942d5f6509faa97c6f154b88be86c0d0eb8a4a19c12372
lamdu/lamdu
Apply.hs
# LANGUAGE TypeFamilies , TypeApplications # module Lamdu.Sugar.Convert.Apply ( convert ) where import qualified Control.Lens as Lens import Control.Monad.Once (OnceT, Typeable) import Control.Monad.Trans.Except.Extended (runMatcherT, justToLeft) import Control.Monad.Trans.Maybe ...
null
https://raw.githubusercontent.com/lamdu/lamdu/8c4b60d42f980f3e03c7e88b01c4437e31cf1cb1/src/Lamdu/Sugar/Convert/Apply.hs
haskell
Make sure it's a not a param, get the var Make sure it is not a "let" but a "def" (recursive or external) Make sure the argument is a record that is closed If it is an external (non-recursive) def (i.e: not in scope), make sure the def (frozen) type is inferred to have closed record of same parameters
# LANGUAGE TypeFamilies , TypeApplications # module Lamdu.Sugar.Convert.Apply ( convert ) where import qualified Control.Lens as Lens import Control.Monad.Once (OnceT, Typeable) import Control.Monad.Trans.Except.Extended (runMatcherT, justToLeft) import Control.Monad.Trans.Maybe ...
810084132f18be8e6f64eca7417bc295cea927fc9fcc3c049b06b395bd2ce726
antono/guix-debian
bittorrent.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2014 < > ;;; ;;; 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 3 of the Lice...
null
https://raw.githubusercontent.com/antono/guix-debian/85ef443788f0788a62010a942973d4f7714d10b4/gnu/packages/bittorrent.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 © 2014 < > 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 (gnu packages bittorrent) #:use-module (guix packages) #:use-module (guix download) #:use-mod...
e061e0143a031db8ad9be50c67ac4875e1158d9a7cffea6c37ae72baf93356d7
clojurewerkz/ogre
count_test.clj
(ns clojurewerkz.ogre.suite.count-test (:refer-clojure :exclude [and count drop filter group-by key key identity iterate loop map max min next not or range repeat sort shuffle]) (:require [clojurewerkz.ogre.core :refer :all])) (defn get_g_V_out_count "g.V().out().count()" [g] (traverse g (V) (...
null
https://raw.githubusercontent.com/clojurewerkz/ogre/cfc5648881d509a55f8a951e01d7b2a166e71d17/test/clojure/clojurewerkz/ogre/suite/count_test.clj
clojure
(ns clojurewerkz.ogre.suite.count-test (:refer-clojure :exclude [and count drop filter group-by key key identity iterate loop map max min next not or range repeat sort shuffle]) (:require [clojurewerkz.ogre.core :refer :all])) (defn get_g_V_out_count "g.V().out().count()" [g] (traverse g (V) (...
a678bda482ef1c1f532f906bb4581a94b42c0078c6146f1f29a27c99824a27a7
cocreature/diagrams-miso
Miso.hs
# LANGUAGE CPP # {-# LANGUAGE ConstraintKinds #-} # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ViewPatterns #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE TypeS...
null
https://raw.githubusercontent.com/cocreature/diagrams-miso/cbb5ef975f9e59be69c703529131a9d13d16fdee/src/Graphics/Rendering/Miso.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # # LANGUAGE ViewPatterns # # LANGUAGE DeriveDataTypeable # # LANGUAGE TypeSynonymInstances # --------------------------------------------------------------------------- | Module : Grap...
# LANGUAGE CPP # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # Copyright : ( c ) 2015 diagrams - reflex team ( see LICENSE ) Lower level tools for creating SVGs . module Graphics.Rendering.Miso ( RenderM , Element(..) , Attrs , render...
94d9b906f7dec347da42c2fc0b08d30a6715dc3eebfd4e68110e185331857c96
HunterYIboHu/htdp2-solution
ex376-find-hello.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 ex376-find-hello) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor...
null
https://raw.githubusercontent.com/HunterYIboHu/htdp2-solution/6182b4c2ef650ac7059f3c143f639d09cd708516/Chapter4/Section22-the-commerce-of-XML/ex376-find-hello.rkt
racket
about the language level of this file in a form that our tools can easily process. data difinitions An XItem.v2 is one of: – (cons 'li (cons [List-of Attribute] XWords)) – (cons 'li (cons [List-of Attribute] XEnums)) An XEnum.v2 is one of: – (cons 'ul [List-of XItem.v2]) – (cons 'ul (cons [List-of Attribute]...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex376-find-hello) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (require 2htdp/image) – ( cons ' li ( co...
1c3b40f50cbec0daaece8dd855374a7e672efaf94998288722135ec3579edf53
metaocaml/ber-metaocaml
question.ml
(* TEST script = "sh ${test_source_directory}/has-lib-bfd.sh" * shared-libraries ** script *** setup-ocamlopt.byte-build-env **** ocamlopt.byte flags = "-shared" all_modules = "question.ml" program = "question.cmxs" ***** check-ocamlopt.byte-output ****** ocamlobjinfo ******* check-program-output *) let answer = 42
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/tool-ocamlobjinfo/question.ml
ocaml
TEST script = "sh ${test_source_directory}/has-lib-bfd.sh" * shared-libraries ** script *** setup-ocamlopt.byte-build-env **** ocamlopt.byte flags = "-shared" all_modules = "question.ml" program = "question.cmxs" ***** check-ocamlopt.byte-output ****** ocamlobjinfo ******* check-program-output
let answer = 42
c08680da6488f1728eab4d8184263a8be9063dfc2e05e0220f3b3bec69761b85
elastic/eui-cljs
icon_database.cljs
(ns eui.icon-database (:require ["@elastic/eui/lib/components/icon/assets/database.js" :as eui])) (def database eui/icon)
null
https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/icon_database.cljs
clojure
(ns eui.icon-database (:require ["@elastic/eui/lib/components/icon/assets/database.js" :as eui])) (def database eui/icon)
c961528185be299463d97cced12f7bfc1e58522ec47babed6567a63380d520b0
Gabriella439/sig
Main.hs
# OPTIONS_GHC -F -pgmF tasty - discover -optF --hide - successes # import Driver
null
https://raw.githubusercontent.com/Gabriella439/sig/894a04851d64f4b871f8976adf4b6c3eb868f43e/tasty/Main.hs
haskell
hide - successes #
import Driver
57c7fd84a85a9eeefd28f9443ed88c9ec612d08ada45a1b4d2f5889d8ff86a6e
jordanthayer/ocaml-search
dblq.ml
$ I d : dblq.ml , v 1.3 2003/09/27 01:11:52 ruml Exp ruml $ double - ended queues . destructive double-ended queues. destructive *) type 'a cell = 'a Dbl.t type 'a t = { mutable head : 'a cell; mutable tail : 'a cell; } let create () = { head = Dbl.nil; tail = Dbl.nil; } let is_empty q...
null
https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/structs/dblq.ml
ocaml
*********** adding ************ ********** removing ******** ******** iteration and mapping ******* ********* derived **********
$ I d : dblq.ml , v 1.3 2003/09/27 01:11:52 ruml Exp ruml $ double - ended queues . destructive double-ended queues. destructive *) type 'a cell = 'a Dbl.t type 'a t = { mutable head : 'a cell; mutable tail : 'a cell; } let create () = { head = Dbl.nil; tail = Dbl.nil; } let is_empty q...
bb7e167793e7db531605df280e8fc55525d994bb682069f6a36f8b88a977ff70
LeventErkok/sbv
Fish.hs
----------------------------------------------------------------------------- -- | -- Module : Documentation.SBV.Examples.Puzzles.Fish Copyright : ( c ) -- License : BSD3 -- Maintainer: -- Stability : experimental -- Solves the following logic puzzle , attributed to : -- - The Briton lives in the red ...
null
https://raw.githubusercontent.com/LeventErkok/sbv/cfaa40b8c8ff8e1b7ff9ab71304654f6f531ba72/Documentation/SBV/Examples/Puzzles/Fish.hs
haskell
--------------------------------------------------------------------------- | Module : Documentation.SBV.Examples.Puzzles.Fish License : BSD3 Maintainer: Stability : experimental - The Dane drinks tea. - The person who plays football rears birds. - The owner of the yellow house plays baseball. ...
Copyright : ( c ) Solves the following logic puzzle , attributed to : - The Briton lives in the red house . - The Swede keeps dogs as pets . - The green house is left to the white house . - The owner of the green house drinks coffee . - The Norwegian lives in the first house . - The Germ...
377a07190d519a36c7bdc1ed2e9ef7475e8682099d80fc97f83568e1b0e998d3
minoki/haskell-floating-point
Remainder.hs
# LANGUAGE CPP # # LANGUAGE NoImplicitPrelude # module Numeric.Floating.IEEE.Internal.Remainder ( remainder ) where import MyPrelude import Numeric.Floating.IEEE.Internal.Classify default () -- | @'remainder ' x y@ returns \(r = x - yn\ ) , where \(n\ ) is the integer nearest the exact numbe...
null
https://raw.githubusercontent.com/minoki/haskell-floating-point/7d7bb31bb2b07c637a5eaeda92fc622566e9b141/fp-ieee/src/Numeric/Floating/IEEE/Internal/Remainder.hs
haskell
| if r == 0, the sign of r is the same as x # RULES "remainder/Float" remainder = c_remainderFloat "remainder/Double" remainder = c_remainderDouble #
# LANGUAGE CPP # # LANGUAGE NoImplicitPrelude # module Numeric.Floating.IEEE.Internal.Remainder ( remainder ) where import MyPrelude import Numeric.Floating.IEEE.Internal.Classify default () @'remainder ' x y@ returns \(r = x - yn\ ) , where \(n\ ) is the integer nearest the exact number \(x...
116e05089a973c9eac5a0bf4801895a5b608336f5a80ead999e447429924a8ef
binghe/cl-net-snmp
if-mib.lisp
;;;; -*- Mode: Lisp -*- Generated from MIB : IETF;IF - MIB by CL - NET - SNMP (in-package :asn.1) (eval-when (:load-toplevel :execute) (setf *current-module* 'if-mib)) (defpackage :asn.1/if-mib (:nicknames :if-mib) (:use :common-lisp :asn.1) (:import-from :|ASN.1/SNMPv2-SMI| module-identity object-type ...
null
https://raw.githubusercontent.com/binghe/cl-net-snmp/3cf053bce75734097f0d7e2245a53fa0c45f5e05/compiled-mibs/if-mib.lisp
lisp
-*- Mode: Lisp -*- IF - MIB by CL - NET - SNMP it should it should remain in the notPresent(6) for the other, I is the
(in-package :asn.1) (eval-when (:load-toplevel :execute) (setf *current-module* 'if-mib)) (defpackage :asn.1/if-mib (:nicknames :if-mib) (:use :common-lisp :asn.1) (:import-from :|ASN.1/SNMPv2-SMI| module-identity object-type |Counter32| |Gauge32| |Counter64| |Integer32| |TimeTic...
ff7b5b616c0048b3e77e6fb9f5290c511d1eecc676052065728a6559e9c800d9
haskell/haskell-ide-engine
Compat.hs
# LANGUAGE CPP # module Haskell.Ide.Engine.Plugin.Package.Compat where #if MIN_VERSION_Cabal(2,2,0) #else import Control.Lens import Distribution.Types.GenericPackageDescription (GenericPackageDescription(GenericPackageDescription), ConfVar (..)) import Distribution.Types.UnqualComponentName (UnqualComponentName) impo...
null
https://raw.githubusercontent.com/haskell/haskell-ide-engine/d84b84322ccac81bf4963983d55cc4e6e98ad418/src/Haskell/Ide/Engine/Plugin/Package/Compat.hs
haskell
# INLINE condTestSuites #
# LANGUAGE CPP # module Haskell.Ide.Engine.Plugin.Package.Compat where #if MIN_VERSION_Cabal(2,2,0) #else import Control.Lens import Distribution.Types.GenericPackageDescription (GenericPackageDescription(GenericPackageDescription), ConfVar (..)) import Distribution.Types.UnqualComponentName (UnqualComponentName) impo...
0fcc6d36204f51070c92e17557b83d811c09ac2274dc9d1be6af716b529e4b1b
cnuernber/dtype-next
native_buffer.clj
(ns tech.v3.datatype.native-buffer "Support for malloc/free and generalized support for reading/writing typed data to a long integer address of memory." (:require [tech.v3.resource :as resource] [tech.v3.datatype.protocols :as dtype-proto] [tech.v3.datatype.copy :as copy] [tech...
null
https://raw.githubusercontent.com/cnuernber/dtype-next/7f3d85d159c3a74d5fca53c8c50243812e0da4e2/src/tech/v3/datatype/native_buffer.clj
clojure
Size is in elements, not in bytes of the system.
(ns tech.v3.datatype.native-buffer "Support for malloc/free and generalized support for reading/writing typed data to a long integer address of memory." (:require [tech.v3.resource :as resource] [tech.v3.datatype.protocols :as dtype-proto] [tech.v3.datatype.copy :as copy] [tech...
df5f75c0539d8ba181a6c9a54b6ac918a876c13ff64304a48113138d7eab9fe4
oakes/play-cljc-examples
start_dev.cljs
(ns dungeon-crawler.start-dev (:require [dungeon-crawler.start] [clojure.spec.test.alpha :as st])) (st/instrument) (st/unstrument 'odoyle.rules/insert) ;; don't require specs for attributes
null
https://raw.githubusercontent.com/oakes/play-cljc-examples/b83bfd98585297bc27958be58dc06afec6c20740/dungeon-crawler/src/dungeon_crawler/start_dev.cljs
clojure
don't require specs for attributes
(ns dungeon-crawler.start-dev (:require [dungeon-crawler.start] [clojure.spec.test.alpha :as st])) (st/instrument)
bef79c071a9e59eaad4b4811ce3300be2c6fa2e98b3f751c690b0174bc603bd3
kazu-yamamoto/quic
Config.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TupleSections # module Network.QUIC.Config where import Data.IP import Network.Socket import Network.TLS hiding (Version, HostName, Hooks) import Network.TLS.QUIC import Network.QUIC.Imports import Network.QUIC.Parameters import Network.QUIC.Stream import Network.QUIC.Ty...
null
https://raw.githubusercontent.com/kazu-yamamoto/quic/974f00e18c30a30d9365446acf5ac773192d3537/Network/QUIC/Config.hs
haskell
# LANGUAGE OverloadedStrings # -------------------------------------------------------------- | Hooks. | Default hooks. -------------------------------------------------------------- | Client configuration. ^ Compatible versions in the preferred order. ^ TLS credentials. client original ^ Used to create a socket...
# LANGUAGE TupleSections # module Network.QUIC.Config where import Data.IP import Network.Socket import Network.TLS hiding (Version, HostName, Hooks) import Network.TLS.QUIC import Network.QUIC.Imports import Network.QUIC.Parameters import Network.QUIC.Stream import Network.QUIC.Types data Hooks = Hooks { onCl...
394a62461e622577e58c8c719611d942fc74468abf283e8feb4a5217618a91ec
finnishtransportagency/harja
paikkaus_test.clj
(ns harja.kyselyt.paikkaus-test (:require [clojure.test :refer :all] [harja.testi :refer :all] [harja.palvelin.komponentit.tietokanta :as tietokanta] [harja.domain.paikkaus :as paikkaus] [harja.kyselyt.paikkaus :as paikkaus-q] [taoensso.timbre :as log] ...
null
https://raw.githubusercontent.com/finnishtransportagency/harja/f839c43561901d74528debac2fe6c5f9e88d329c/test/clj/harja/kyselyt/paikkaus_test.clj
clojure
harjan id:lla paivittaminen
(ns harja.kyselyt.paikkaus-test (:require [clojure.test :refer :all] [harja.testi :refer :all] [harja.palvelin.komponentit.tietokanta :as tietokanta] [harja.domain.paikkaus :as paikkaus] [harja.kyselyt.paikkaus :as paikkaus-q] [taoensso.timbre :as log] ...
5a0b29f3f6aa6ed85cda480202501b052d62bc203f2762e318614b18f6f6a927
chetmurthy/ensemble
fpmb.ml
(**************************************************************) FPMB.ML Author : , 12/97 (**************************************************************) open Util open Layer open Trans open Event open View (**************************************************************) let name = Trace.filel "FPMB" let failwit...
null
https://raw.githubusercontent.com/chetmurthy/ensemble/8266a89e68be24a4aaa5d594662e211eeaa6dc89/ensemble/server/layers/bypass/fpmb.ml
ocaml
************************************************************ ************************************************************ ************************************************************ ************************************************************ let compress msg = eprintf "FPMB:%s\n" (string_of_msg msg) ; compress m...
FPMB.ML Author : , 12/97 open Util open Layer open Trans open Event open View let name = Trace.filel "FPMB" let failwith s = Trace.make_failwith name s let (|||) = Glue.Functional.compose type 'a msg = | Opt0 of seqno | Opt1 of seqno | Normal of 'a let compress = function | NoMsg -> NoMsg | Full(Bott...
9f8e2ab202e7aa0daea515f1a4652431bcf21574d57a2fada721069ed46e0a78
GregoryTravis/holfenstein
Window.hs
{-# LANGUAGE OverloadedStrings #-} module Window ( KeySet , Window , blit , getDimensions , getInput , getInputWait , windowInit , windowTerm , withFramebuffer ) where import Control.Monad hiding (mapM_) import Data.Maybe import qualified Data.Set as S import Data.Word (Word32) import Foreign.C.Types import Foreign.Pt...
null
https://raw.githubusercontent.com/GregoryTravis/holfenstein/fcb8743351700c701757dc13fb6defcde53be306/Window.hs
haskell
# LANGUAGE OverloadedStrings #
module Window ( KeySet , Window , blit , getDimensions , getInput , getInputWait , windowInit , windowTerm , withFramebuffer ) where import Control.Monad hiding (mapM_) import Data.Maybe import qualified Data.Set as S import Data.Word (Word32) import Foreign.C.Types import Foreign.Ptr import SDL (($=), unwrapKeycode, ...
8420025888d96828706217b211bf117c3799ee779eaa7132aab7eb41f6721d87
locusmath/locus
group_with_zero.clj
(ns locus.algebra.commutative.monoid.group-with-zero (:require [locus.set.logic.core.set :refer :all] [locus.set.logic.limit.product :refer :all] [locus.set.logic.structure.protocols :refer :all] [locus.set.copresheaf.structure.core.protocols :refer :all] [locus.set.map...
null
https://raw.githubusercontent.com/locusmath/locus/b94caabdbec71294c8fb320887646ddf0312ef24/src/clojure/locus/algebra/commutative/monoid/group_with_zero.clj
clojure
Let F be a field. Then the multiplicative semigroup (F,*) of the field is a commutative group with multiplicative properties of fields. Every semigroup is a function
(ns locus.algebra.commutative.monoid.group-with-zero (:require [locus.set.logic.core.set :refer :all] [locus.set.logic.limit.product :refer :all] [locus.set.logic.structure.protocols :refer :all] [locus.set.copresheaf.structure.core.protocols :refer :all] [locus.set.map...
2bde9220a0c21f4b5b4885477bb8ab4b3e8c62f6b6ef23d6d1de9f4305dace95
styx/Raincat
FireHydrant.hs
module Level.FireHydrant (FireHydrant(..), initFireHydrant, updateFireHydrant, drawFireHydrant) where import Graphics.Rendering.OpenGL hiding (rect) import Nxt.Graphics import Nxt.Types import Settings.WorldSettings as WorldSettings import Settings.Path data FireHydrant = FireHydrant { ...
null
https://raw.githubusercontent.com/styx/Raincat/49b688c73335c9a4090708bc75f6af9575a65670/src/Level/FireHydrant.hs
haskell
initFireHydrant updateFireHydrant drawFireHydrant
module Level.FireHydrant (FireHydrant(..), initFireHydrant, updateFireHydrant, drawFireHydrant) where import Graphics.Rendering.OpenGL hiding (rect) import Nxt.Graphics import Nxt.Types import Settings.WorldSettings as WorldSettings import Settings.Path data FireHydrant = FireHydrant { ...
1d2c0ebd39641d67d9432113e2277e0a08fd22645aafc3c0fd6a8ac04a1514ce
semilin/layoup
ISRT.lisp
(MAKE-LAYOUT :NAME "ISRT" :MATRIX (APPLY #'KEY-MATRIX '("yclmkzfu,'" "isrtgpneao" "qvwdjbh/.x")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
null
https://raw.githubusercontent.com/semilin/layoup/27ec9ba9a9388cd944ac46206d10424e3ab45499/data/layouts/ISRT.lisp
lisp
(MAKE-LAYOUT :NAME "ISRT" :MATRIX (APPLY #'KEY-MATRIX '("yclmkzfu,'" "isrtgpneao" "qvwdjbh/.x")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
98744d759fdbd7f3881061dfd6bc3ead65510db09af64f3ad9a43c36153e9e7c
jj1bdx/tinymt-erlang
tinymt32.erl
@author < > @author @author 2012 - 2016 , , , Kyoto University , Hiroshima University , The University of Tokyo @doc 32 - bit pseudo random generator module in pure Erlang %% @end ( This is a simplified BSD license . ) %% Copyright ( c ) 2012 - 2016 and Kyoto University . %% All rights re...
null
https://raw.githubusercontent.com/jj1bdx/tinymt-erlang/08f1763b9c45d9cb0dbf8a37deffcb5ed175a531/src/tinymt32.erl
erlang
@end All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. ...
@author < > @author @author 2012 - 2016 , , , Kyoto University , Hiroshima University , The University of Tokyo @doc 32 - bit pseudo random generator module in pure Erlang ( This is a simplified BSD license . ) Copyright ( c ) 2012 - 2016 and Kyoto University . Copyright ( c ) 2011 , ...
625c30adec4af70ceedbd40a3a76fdcffd6d21b1d98dd493b733e84265b3b0c5
Plutonomicon/plutarch-plutus
Golden.hs
{-# LANGUAGE ImpredicativeTypes #-} module Plutarch.Test.Golden ( -- * DSL pgoldenSpec, pgoldenSpec', (@|), (@\), (@->), (@:->), TermExpectation, PlutarchGoldens, -- * Golden key and path GoldenKey, currentGoldenKey, goldenKeyString, mkGoldenKeyFromSpecPath, defaultGoldenBasePath, gold...
null
https://raw.githubusercontent.com/Plutonomicon/plutarch-plutus/9b83892057f2aaaed76e3af6193ad1ae242244cc/plutarch-test/Plutarch/Test/Golden.hs
haskell
# LANGUAGE ImpredicativeTypes # * DSL * Golden key and path * Golden config * Evaluation ^ Golden string for benchmark JSON ^ Evaluated result ^ User test's expectation function ^ Directory to put the goldens in. terms. | Like `@->` but also takes the evaluated script and benchmark as arguments Useful to d...
module Plutarch.Test.Golden ( pgoldenSpec, pgoldenSpec', (@|), (@\), (@->), (@:->), TermExpectation, PlutarchGoldens, GoldenKey, currentGoldenKey, goldenKeyString, mkGoldenKeyFromSpecPath, defaultGoldenBasePath, goldenTestPath, GoldenConf (..), GoldenTest (..), evalScriptAlwaysWith...
79e784f18840a79def447427f0f9d80328b06993240c788e3893edc5087d2fef
nadeemabdulhamid/racketui
blood-test-2list.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 blood-test-2list) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-...
null
https://raw.githubusercontent.com/nadeemabdulhamid/racketui/045e0e647439623397cdf67e8e045ec7aa5e2def/bsl-tests/blood-test-2list.rkt
racket
about the language level of this file in a form that our tools can easily process. blood test given a list of 'normal ranges' and a list of patient readings produce a list of strings indicating "L" or "H" if patient reading is below or above corresponding 'normal' range =========================================...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname blood-test-2list) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) DATA DEFINITIONS / TEMPLATES (define-struct mrange ...
d2487a2e4acb572195674de27c731db9391877ea3da0ad0bd1163305fa97b4cd
fortytools/holumbus
SimpleDMapReduceIO.hs
-- ---------------------------------------------------------------------------- | Module : Examples2.SimpleMR.SimpleDMapReduce Copyright : Copyright ( C ) 2009 License : MIT Maintainer : ( ) Stability : experimental Portability : portable Version : 0.1 Module ...
null
https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/mapreduce/Examples2/Count/Count_Presi/source/Holumbus/MapReduce/Examples/Count/SimpleDMapReduceIO.hs
haskell
---------------------------------------------------------------------------- ---------------------------------------------------------------------------- actionConfig Just splitConfiguration --------------------------------------------------------------------------------------------------------- The simple c...
| Module : Examples2.SimpleMR.SimpleDMapReduce Copyright : Copyright ( C ) 2009 License : MIT Maintainer : ( ) Stability : experimental Portability : portable Version : 0.1 Module : Examples2.SimpleMR.SimpleDMapReduce Copyright : Copyright (C) 2009 Sebasti...
a04e3abd205499faf80fd2df832a85f7eaaeec590d05d362cbef782e2a3cb550
ocharles/zero-to-quake-3
WSI.hs
# language DataKinds # # language TypeApplications # module Vulkan.WSI ( acquireNextImage , assertSurfacePresentable , createSwapchain , determineSwapchainFormat , getSwapchainImages , present ) where -- base import Control.Monad ( (>=>), unless ) import Control.Monad.IO.Class ( MonadIO, liftIO ) import...
null
https://raw.githubusercontent.com/ocharles/zero-to-quake-3/6fe4ef61955b8a816369cf70c0edd2cacfd911db/src/Vulkan/WSI.hs
haskell
base managed vulkan-api
# language DataKinds # # language TypeApplications # module Vulkan.WSI ( acquireNextImage , assertSurfacePresentable , createSwapchain , determineSwapchainFormat , getSwapchainImages , present ) where import Control.Monad ( (>=>), unless ) import Control.Monad.IO.Class ( MonadIO, liftIO ) import Data.Li...
7d18505ff1335b37ac089cd0a54db50402b6e47ce8893b9b32803e09a6dd08aa
processone/ejabberd
ejabberd_sm.erl
%%%---------------------------------------------------------------------- File : Author : < > %%% Purpose : Session manager Created : 24 Nov 2002 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2023 ProcessOne %%% %%% This program is free software; you can redistribute it and/or modify it und...
null
https://raw.githubusercontent.com/processone/ejabberd/c103182bc7e5b8a8ab123ce02d1959a54e939480/src/ejabberd_sm.erl
erlang
---------------------------------------------------------------------- Purpose : Session manager 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 t...
File : Author : < > Created : 24 Nov 2002 by < > ejabberd , Copyright ( C ) 2002 - 2023 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 of the GNU General Public Li...
ab92efd2d925d0916445bbe0e36ceca6e7f5cec42b2fbc8ba7ad10244a4a16e0
RichiH/git-annex
LockCache.hs
git - annex lock cache data types - - Copyright 2014 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2014 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Types.LockCache ( LockCache, LockHandle ) where import qualified Data.Map as M import ...
null
https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Types/LockCache.hs
haskell
git - annex lock cache data types - - Copyright 2014 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2014 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Types.LockCache ( LockCache, LockHandle ) where import qualified Data.Map as M import ...
741fd183759bfedb8a7aca634cc7d7c5d7f03e875a20f878609ac285b56a51d1
FlowerWrong/mblog
tut1.erl
-module(tut1). -export([fac/1, mult/2]). fac(1) -> 1; fac(N) -> N * fac(N - 1). mult(X, Y) -> X * Y.
null
https://raw.githubusercontent.com/FlowerWrong/mblog/3233ede938d2019a7b57391405197ac19c805b27/categories/erlang/demo/tut1.erl
erlang
-module(tut1). -export([fac/1, mult/2]). fac(1) -> 1; fac(N) -> N * fac(N - 1). mult(X, Y) -> X * Y.
919761eda9e4ed04d99f3f3efea31b9d931c31bf012cfe93ac1befb27bc6f6a5
byorgey/haskell-course
InClass.hs
data Tree a = Empty | Node (Tree a) a (Tree a) treeSize : : Tree a - > Integer treeSum : : Integer treeDepth : : Tree a - > Integer flatten : : Tree a - > [ a ] treeSize :: Tree a -> Integer treeSum :: Tree Integer -> Integer treeDepth :: Tree a -> Integer flatten :: Tree a -> [a] -} -- foldr...
null
https://raw.githubusercontent.com/byorgey/haskell-course/f928cc8031aec2147f037949826134a484414ed6/weeks/07-folds-monoids/InClass.hs
haskell
foldr :: b -> (a -> b -> b) -> [a] -> b :: b -> (Tree a -> a -> Tree a -> b) -> Tree a -> b :: b -> (Tree a -> b) -> Tree a -> b :: b -> (Tree a -> b -> b) -> Tree a -> b :: (Tree a -> b -> b) -> Tree a -> b :: b -> (Tree a -> a -> Tree a -> b -> b) -> Tree a -> b :: b -> (a -> b) -> (b -> b -> b) -> Tree a -> b...
data Tree a = Empty | Node (Tree a) a (Tree a) treeSize : : Tree a - > Integer treeSum : : Integer treeDepth : : Tree a - > Integer flatten : : Tree a - > [ a ] treeSize :: Tree a -> Integer treeSum :: Tree Integer -> Integer treeDepth :: Tree a -> Integer flatten :: Tree a -> [a] -} t = No...
978bb9dbdc9098c6a720f4fcf993f511aec100c3867018faa2824128fb2e42b2
TheLortex/mirage-monorepo
loc.ml
open! Import type 'a t = 'a loc = { txt : 'a; loc : Location.t } let txt t = t.txt let loc t = t.loc let make ~loc txt = { loc; txt } let map t ~f = { t with txt = f t.txt }
null
https://raw.githubusercontent.com/TheLortex/mirage-monorepo/b557005dfe5a51fc50f0597d82c450291cfe8a2a/duniverse/ppxlib/src/loc.ml
ocaml
open! Import type 'a t = 'a loc = { txt : 'a; loc : Location.t } let txt t = t.txt let loc t = t.loc let make ~loc txt = { loc; txt } let map t ~f = { t with txt = f t.txt }
bed3a046824f41b99af301c270c9664ac2977fd64ce5f0fe063bd88b71e043d6
kupl/FixML
symbol_lang.ml
open Lang (* equality *) type eq_operator = | Eq | NEq (* bop *) type combinator = | And | Or (* abbop *) type comparator = | Lt | Gt | Le | Ge (* abop *) type operator = | Add | Sub | Mul | Div | Mod (************* Partial Evaluation **************) type symbolic_val...
null
https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/engine/symbol_lang.ml
ocaml
equality bop abbop abop ************ Partial Evaluation ************* Const unary operation binary operation variable to symbolic variable ex. x -> e1 new symbol ************ SMT formula ************* Int String => char Int String Bool domain
open Lang type eq_operator = | Eq | NEq type combinator = | And | Or type comparator = | Lt | Gt | Le | Ge type operator = | Add | Sub | Mul | Div | Mod type symbolic_value = | Unit | Int of int | Bool of bool | Str of string | List of symbolic_value list ...
468f5bc09fe446c63e9d0f2d0c508c647597b0ed603a90a31b1c0f30852cfc5b
CloudI/CloudI
rebar_port_compiler.erl
-*- erlang - indent - level : 4;indent - tabs - mode : nil -*- %% ex: ts=4 sw=4 et %% ------------------------------------------------------------------- %% rebar : Erlang Build Tools %% Copyright ( c ) 2009 ( ) %% %% Permission is hereby granted, free of charge, to any person obtaining a copy %% of this softw...
null
https://raw.githubusercontent.com/CloudI/CloudI/3e45031c7ee3e974ead2612ea7dd06c9edf973c9/src/external/rebar/src/rebar_port_compiler.erl
erlang
ex: ts=4 sw=4 et ------------------------------------------------------------------- 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, and/or sel...
-*- erlang - indent - level : 4;indent - tabs - mode : nil -*- rebar : Erlang Build Tools Copyright ( c ) 2009 ( ) in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the...
123a31cafe001e9f6ab8cb4667702f4fe6f7fa18a72534b113bddbc34df2d18f
oetr/racket-opencv
20-2-finding-contours-in-your-video.rkt
#! /usr/bin/env racket Author : Date : 2013 ;; Description: Contours detection in a video stream ;; inspired by #find-contours #lang racket (require ffi/unsafe opencv/core opencv/types opencv/imgproc opencv/videoio opencv/highgui) (define (sequence-chain->list a-seq)...
null
https://raw.githubusercontent.com/oetr/racket-opencv/8124eb6b620769137656547e83f9d9587ab37c23/tutorials/03_imgproc/20-2-finding-contours-in-your-video.rkt
racket
Description: Contours detection in a video stream inspired by #find-contours seq: get block get all elements from the block Capture an image to get parameters Get parameters from the captured image to initialize copied images Add a trackbar allocate memory free up the memory
#! /usr/bin/env racket Author : Date : 2013 #lang racket (require ffi/unsafe opencv/core opencv/types opencv/imgproc opencv/videoio opencv/highgui) (define (sequence-chain->list a-seq) (define next-ptr (CvSeq-h_next a-seq)) (if next-ptr (let ([next-sequen...
25d5795c2e5ca49e611d889d5e9870e36d026af214a72c781abb3dd216524705
amperity/lein-monolith
core.clj
(ns project-a.core) (defn foo "I don't do a whole lot." [x] (println x "Hello, World!"))
null
https://raw.githubusercontent.com/amperity/lein-monolith/f7d476b3b746498d0d0539e090a1db33a6602280/example/apps/app-a/src/project_a/core.clj
clojure
(ns project-a.core) (defn foo "I don't do a whole lot." [x] (println x "Hello, World!"))
d9363a905382ec29be7d67960edc36f7d3a01c96cc93f0df879c461910025749
intermine/bluegenes-old
core.cljs
(ns bluegenes.tools.externallinks.core (:require-macros [cljs.core.async.macros :refer [go]]) (:require [re-frame.core :as re-frame] [cljs.core.async :refer [put! chan <! >! timeout close!]] [bluegenes.utils.imcljs :as im] [bluegenes.tools.externallinks.config :as json-html] [reagent.core :as reagen...
null
https://raw.githubusercontent.com/intermine/bluegenes-old/5b719c7ac83a7340e0ff65790cf42413c15fb7e9/src/cljs/bluegenes/tools/externallinks/core.cljs
clojure
useful intemrine configs: don't load homologues for, say, publications
(ns bluegenes.tools.externallinks.core (:require-macros [cljs.core.async.macros :refer [go]]) (:require [re-frame.core :as re-frame] [cljs.core.async :refer [put! chan <! >! timeout close!]] [bluegenes.utils.imcljs :as im] [bluegenes.tools.externallinks.config :as json-html] [reagent.core :as reagen...
c0d07cbca334beea45efe23277cc0cbc54d3e9e92101d8113a12f099abf406cf
skrah/minicaml
test05.ml
Example from 's " Modern Compiler Implementation in ML " , translated to . to Caml. *) type intlist = { hd : int; tl : intlist } type tree = { key : int; children : treelist } and treelist = { hd1 : tree; tl1 : treelist } let l : intlist = { hd = 0; tl = nil }
null
https://raw.githubusercontent.com/skrah/minicaml/e5f5cad7fdbcfc11561f717042fae73fa743823f/test/test05.ml
ocaml
Example from 's " Modern Compiler Implementation in ML " , translated to . to Caml. *) type intlist = { hd : int; tl : intlist } type tree = { key : int; children : treelist } and treelist = { hd1 : tree; tl1 : treelist } let l : intlist = { hd = 0; tl = nil }
3696f8594aa08d2afaf03fb7178c40a227fccebe262e0a9847f170619ad25fac
yoriyuki/Camomile
dune_gen.ml
open StdLabels module Charmap_decode = struct let extract_words s ~is_word_char = let open String in let rec skip_blanks i = if i = length s then [] else if is_word_char s.[i] then parse_word i (i + 1) else skip_blanks (i + 1) and parse_word i j = if j = le...
null
https://raw.githubusercontent.com/yoriyuki/Camomile/d7d8843c88fae774f513610f8e09a613778e64b3/Camomile/charmaps/dune_gen.ml
ocaml
open StdLabels module Charmap_decode = struct let extract_words s ~is_word_char = let open String in let rec skip_blanks i = if i = length s then [] else if is_word_char s.[i] then parse_word i (i + 1) else skip_blanks (i + 1) and parse_word i j = if j = le...
37e3d3f91dcba75b7da9f4a1b30402dc10b0f01f5ed66d2a0ffe1c4d4b2097d1
seralbdev/protocool
pseq_encoder_test.clj
(ns seralbdev.protocool.pseq_encoder-test (:require [clojure.test :as t] [seralbdev.protocool.base :as b] [seralbdev.protocool.pseq :as d] [seralbdev.protocool.pseq_encoder :as enc])) (t/deftest process-varlen-str (let [bs (b/create) pseq [["F1" ::d/str]] data {"...
null
https://raw.githubusercontent.com/seralbdev/protocool/d391ee88a0dac091320e62f45377a00042cd50c3/test/seralbdev/protocool/pseq_encoder_test.clj
clojure
(ns seralbdev.protocool.pseq_encoder-test (:require [clojure.test :as t] [seralbdev.protocool.base :as b] [seralbdev.protocool.pseq :as d] [seralbdev.protocool.pseq_encoder :as enc])) (t/deftest process-varlen-str (let [bs (b/create) pseq [["F1" ::d/str]] data {"...
4ac0e1bf56dd325a4f83494a14110173559379ebca44c4d8ad36c53d38186692
appleshan/cl-http
sysdcl.lisp
-*- Syntax : Ansi - Common - Lisp ; Base : 10 ; Mode : lisp ; Package : common - lisp - user -*- ;;; Copyright 2005 - 2006 , . ;;; All rights reserved. ;;;------------------------------------------------------------------- ;;; EXAMPLES SYSTEM DEFINITION FOR MCL CL - HTTP ;;; (in-package :cl-user) (define-sys...
null
https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/mcl/examples/sysdcl.lisp
lisp
Base : 10 ; Mode : lisp ; Package : common - lisp - user -*- All rights reserved. ------------------------------------------------------------------- Web apropos Find url Frame, and various examples web-based access control reference manual for cl-http W3P self documentation Simple Web slide show generator
Copyright 2005 - 2006 , . EXAMPLES SYSTEM DEFINITION FOR MCL CL - HTTP (in-package :cl-user) (define-system (cl-http-base-examples) (:compile-load) Server push log window for Netscape & Mozilla VRML examples Java twist - down menu tree Web Lisp Listener
7af76fe1260715309ffe20f18de206c5d7683947a925745377796d05168da4ed
capsjac/opengles
Graphics.hs
-- | module Linear.Graphics where import Linear.V2 import Data.Word sequence [ ( $ cos ( x/100 ) ) | x < - [ 0 .. 100 ] ] ( \x - > V3 0 x 0 ) [ V2 x $ sin ( x/50 ) | x < - [ 0 .. 100 ] ] circle2 :: (Ord a, Enum a, Floating a) => a -> [V2 a] circle2 n | n > 1 = [V2 (cos t) (sin t) | t <- [0,2*pi/n..2*pi]] rectang...
null
https://raw.githubusercontent.com/capsjac/opengles/23b78e5d1b058349a778a49310d867164ea1a529/src/Linear/Graphics.hs
haskell
| | 2D Rectangle covers whole screen. | Rectangle covers whole texture. | Build a matrix that modify 2D aspect ratio. | 2D rotation matrix.
module Linear.Graphics where import Linear.V2 import Data.Word sequence [ ( $ cos ( x/100 ) ) | x < - [ 0 .. 100 ] ] ( \x - > V3 0 x 0 ) [ V2 x $ sin ( x/50 ) | x < - [ 0 .. 100 ] ] circle2 :: (Ord a, Enum a, Floating a) => a -> [V2 a] circle2 n | n > 1 = [V2 (cos t) (sin t) | t <- [0,2*pi/n..2*pi]] rectangle2 :...
88fdfc68e9675e70d86d409497c94b6320df64bbf6293b00a7967b244a9b6b11
xfthhxk/unminify
cli.cljs
(ns unminify.cli "unminify: restore a minified stacktrace using a source map Usage: unminify :source-map index.js.map :stacktrace stacktrace.txt Available options: - :source-map (required) path to source map file - :stacktrace (required) path to a file with the minified stacktrace" (:require [clojure.ed...
null
https://raw.githubusercontent.com/xfthhxk/unminify/8c1920e3597e8d82331a117f209af10980ccddb5/workspaces/cli/src/unminify/cli.cljs
clojure
(ns unminify.cli "unminify: restore a minified stacktrace using a source map Usage: unminify :source-map index.js.map :stacktrace stacktrace.txt Available options: - :source-map (required) path to source map file - :stacktrace (required) path to a file with the minified stacktrace" (:require [clojure.ed...
cc6a4c2699bf730db637c133cf386de1c7d667796e1b1350528d050bb6d06ebd
dmitryvk/sbcl-win32-threads
backq.impure.lisp
;;;; tests of backquote readmacro This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; While most of SBCL is derived from the CMU CL system , the test ;;;; files (like this one) were written from scratch after the fork from CMU CL . ;;;; ;;;; This software is in the publ...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/tests/backq.impure.lisp
lisp
tests of backquote readmacro more information. files (like this one) were written from scratch after the fork This software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information.
This software is part of the SBCL system . See the README file for While most of SBCL is derived from the CMU CL system , the test from CMU CL . (in-package "CL-USER") (defparameter *qq* '(*rr* *ss*)) (defparameter *rr* '(3 5)) (defparameter *ss* '(4 6)) (defun *rr* (x) (reduce #'* x)) (defparameter *x* '(...
943f3cb7f00e8145595ae8f6740417db1cb09ebbe5a487064c1332a4f6710409
bobzhang/fan
multiple_private.ml
type u = private (private int);
null
https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/todoml/testr/multiple_private.ml
ocaml
type u = private (private int);
2fb028115a47ca35213b188cb3d104fa9129e4cd555428e494611059bb7e5d66
ds-wizard/engine-backend
PackageBundleSM.hs
module Shared.Api.Resource.PackageBundle.PackageBundleSM where import Data.Swagger import Shared.Api.Resource.Package.PackageSM () import Shared.Api.Resource.PackageBundle.PackageBundleDTO import Shared.Api.Resource.PackageBundle.PackageBundleJM () import Shared.Database.Migration.Development.PackageBundle.Data.Packa...
null
https://raw.githubusercontent.com/ds-wizard/engine-backend/090f4f3460e8df128e88e2c3ce266b165e4a0a50/engine-shared/src/Shared/Api/Resource/PackageBundle/PackageBundleSM.hs
haskell
module Shared.Api.Resource.PackageBundle.PackageBundleSM where import Data.Swagger import Shared.Api.Resource.Package.PackageSM () import Shared.Api.Resource.PackageBundle.PackageBundleDTO import Shared.Api.Resource.PackageBundle.PackageBundleJM () import Shared.Database.Migration.Development.PackageBundle.Data.Packa...
e5ccfa913b3cb9b384392f4f9114800cdf8d1b7ed4c6ffa5bbb7457c574ceecd
na4zagin3/satyrographos
main.ml
open Core let total_command = Command.group ~summary:"Simple SATySFi Package Manager" [ "build", CommandBuild.build_command; "debug", CommandDebug.debug_command; "new", CommandNew.new_command; "opam", CommandOpam.opam_command; "library-opam", CommandLibrary.library_opam_command; ...
null
https://raw.githubusercontent.com/na4zagin3/satyrographos/d2943bac9659d20746720ab36ebe11ae59203d32/bin/main.ml
ocaml
open Core let total_command = Command.group ~summary:"Simple SATySFi Package Manager" [ "build", CommandBuild.build_command; "debug", CommandDebug.debug_command; "new", CommandNew.new_command; "opam", CommandOpam.opam_command; "library-opam", CommandLibrary.library_opam_command; ...
fe6c7059cdbcb77810dd74c3e8141139058ea908057e70c7f275c9641e021db7
markbastian/partsbin
middleware.clj
(ns partsbin.middleware) (defn wrap-component [handler component] (fn [request] (handler (into component request))))
null
https://raw.githubusercontent.com/markbastian/partsbin/8dc159327f296c9625d129b5943ec79433019e54/src/partsbin/middleware.clj
clojure
(ns partsbin.middleware) (defn wrap-component [handler component] (fn [request] (handler (into component request))))
7d0f7ca92f1f4539092e618bc5c86644d595f808d8e4b64a57b534f6b4560832
quil-lang/quilc
simplification-grab-bag.lisp
;;;; simplification-grab-bag.lisp ;;;; Author : (in-package #:cl-quil.frontend) ;;;; This file contains a grab bag of INDIVIDUAL INSTRUCTION SIMPLIFICATIONS . The reason for the " grab bag " nature is to avoid having lots of passes over the same program , and instead have one ;;;; pass that may simplify a lot...
null
https://raw.githubusercontent.com/quil-lang/quilc/44442079373f8033c7ccc7f95854fcd2ea185dba/src/analysis/simplification-grab-bag.lisp
lisp
simplification-grab-bag.lisp This file contains a grab bag of INDIVIDUAL INSTRUCTION pass that may simplify a lot in one go. Current simplifications include: Arithmetic Simplifier Dagger Simplifier Instruction Rewriter
Author : (in-package #:cl-quil.frontend) SIMPLIFICATIONS . The reason for the " grab bag " nature is to avoid having lots of passes over the same program , and instead have one (defparameter *grab-bag-simplifiers* '(simplify-instruction-modifiers simplify-arithmetic)) See simplify-arithmetic.lisp ...
6c1a5f3415395c387e32691c206f45053f07605ffa08991f8149d35dd636fd4d
circuithub/rel8
Num.hs
# language DataKinds # {-# language FlexibleContexts #-} # language FlexibleInstances # # language MultiParamTypeClasses # # language StandaloneKindSignatures # {-# language TypeFamilies #-} {-# language UndecidableInstances #-} module Rel8.Type.Num ( DBNum, DBIntegral, DBFractional, DBFloating ) where -- base im...
null
https://raw.githubusercontent.com/circuithub/rel8/2833c4b6061a0a4d2205e4e4e17fae1ca162e69b/src/Rel8/Type/Num.hs
haskell
# language FlexibleContexts # # language TypeFamilies # # language UndecidableInstances # base rel8 scientific | The class of database types that can be coerced to from integral expressions. This is a Rel8 concept, and allows us to provide 'fromIntegral'. | The class of database types that support the @/@ operat...
# language DataKinds # # language FlexibleInstances # # language MultiParamTypeClasses # # language StandaloneKindSignatures # module Rel8.Type.Num ( DBNum, DBIntegral, DBFractional, DBFloating ) where import Data.Int ( Int16, Int32, Int64 ) import Data.Kind ( Constraint, Type ) import Prelude import Rel8.Type (...
581e7d05b460bb5900a90b67729a3eb49814b93cf1a1642cfb2293f6780e9fdb
bcc32/advent-of-code
b.ml
open! Core open! Async open! Import let main () = let%bind claims = Reader.with_file "input" ~f:(fun r -> r |> Reader.lines |> Pipe.map ~f:Claim.of_string |> Pipe.to_list) in let claims_by_square = Hashtbl.create (module Tuple.Hashable_t (Int) (Int)) in List.iter claims ~f:(fun claim -> Claim.ite...
null
https://raw.githubusercontent.com/bcc32/advent-of-code/86a9387c3d6be2afe07d2657a0607749217b1b77/2018/03/b.ml
ocaml
non overlapping
open! Core open! Async open! Import let main () = let%bind claims = Reader.with_file "input" ~f:(fun r -> r |> Reader.lines |> Pipe.map ~f:Claim.of_string |> Pipe.to_list) in let claims_by_square = Hashtbl.create (module Tuple.Hashable_t (Int) (Int)) in List.iter claims ~f:(fun claim -> Claim.ite...
e6379768edebcead362fa7b5e76df398a1ec797a8f18590748f215f19c05b72e
atlas-engineer/nyxt
benchmark-package.lisp
SPDX - FileCopyrightText : Atlas Engineer LLC SPDX - License - Identifier : BSD-3 - Clause (benchmark:define-benchmark-package nyxt/benchmark (:import-from :nyxt)) (unless lparallel:*kernel* (setf lparallel:*kernel* (lparallel:make-kernel (or (serapeum:count-cpus) 1))))
null
https://raw.githubusercontent.com/atlas-engineer/nyxt/aa27fc47314046062d6f4e7ef5d8c95a62c2858f/tests/benchmark-package.lisp
lisp
SPDX - FileCopyrightText : Atlas Engineer LLC SPDX - License - Identifier : BSD-3 - Clause (benchmark:define-benchmark-package nyxt/benchmark (:import-from :nyxt)) (unless lparallel:*kernel* (setf lparallel:*kernel* (lparallel:make-kernel (or (serapeum:count-cpus) 1))))
35fcb43fe6ef5b3761d5b6fe4a6bba3c506279337e68e9cb098604a353716d7e
clojure-interop/java-jdk
core.clj
(ns javax.xml.ws.handler.core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[javax.xml.ws.handler.Handler]) (require '[javax.xml.ws.handler.HandlerResolver]) (require '[javax.xml.ws.handler.LogicalHandler]) (require '[javax.xml.ws.handler.LogicalMessageContext]) (require '[javax.xml.ws.han...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.xml/src/javax/xml/ws/handler/core.clj
clojure
(ns javax.xml.ws.handler.core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[javax.xml.ws.handler.Handler]) (require '[javax.xml.ws.handler.HandlerResolver]) (require '[javax.xml.ws.handler.LogicalHandler]) (require '[javax.xml.ws.handler.LogicalMessageContext]) (require '[javax.xml.ws.han...
fecf4f09d81cccf1901687b55fda9fe425ee96ff95e1f3d0b019605662d6c9d2
RefactoringTools/HaRe
InfixIn4AST.hs
module InfixIn4 where data Inf a b = Nil | a :* b f :: (Inf [Int] (Either Int Int)) -> [Int] f Nil = [] f ((a@[] :* b)) = a f ((a@(b_1 : b_2) :* b)) = a f ((a :* b)) = a
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/old/testing/subIntroPattern/InfixIn4AST.hs
haskell
module InfixIn4 where data Inf a b = Nil | a :* b f :: (Inf [Int] (Either Int Int)) -> [Int] f Nil = [] f ((a@[] :* b)) = a f ((a@(b_1 : b_2) :* b)) = a f ((a :* b)) = a
4157892af7780492212c8160be6312158b72dd994e38b510ea551bf05ca6953b
drathier/elm-offline
Summary.hs
# OPTIONS_GHC -Wall # module Elm.Project.Summary ( Summary(..) , ExposedModules , DepsGraph , init , cheapInit ) where import Prelude hiding (init) import qualified Data.List as List import qualified Data.Map as Map import Data.Map (Map) import qualified Elm.Compiler.Module as Module import Elm.Package...
null
https://raw.githubusercontent.com/drathier/elm-offline/f562198cac29f4cda15b69fde7e66edde89b34fa/builder/src/Elm/Project/Summary.hs
haskell
SUMMARY MAKE SUMMARY MAKE CHEAP SUMMARY
# OPTIONS_GHC -Wall # module Elm.Project.Summary ( Summary(..) , ExposedModules , DepsGraph , init , cheapInit ) where import Prelude hiding (init) import qualified Data.List as List import qualified Data.Map as Map import Data.Map (Map) import qualified Elm.Compiler.Module as Module import Elm.Package...
35951630cdc1734f9cb9c4599f2477c0e80012625ddb59e7f1a1070829dcac6b
alexandroid000/improv
AddTwoIntsResponse.hs
# LANGUAGE OverloadedStrings , DeriveDataTypeable , DeriveGeneric # module Ros.Test_srvs.AddTwoIntsResponse where import qualified Prelude as P import Prelude ((.), (+), (*)) import qualified Data.Typeable as T import Control.Applicative import Ros.Internal.RosBinary import Ros.Internal.Msg.MsgInfo import qualified GHC...
null
https://raw.githubusercontent.com/alexandroid000/improv/ef0f4a6a5f99a9c7ff3d25f50529417aba9f757c/roshask/Tests/ServiceClientTests/Ros/Test_srvs/AddTwoIntsResponse.hs
haskell
# LANGUAGE OverloadedStrings , DeriveDataTypeable , DeriveGeneric # module Ros.Test_srvs.AddTwoIntsResponse where import qualified Prelude as P import Prelude ((.), (+), (*)) import qualified Data.Typeable as T import Control.Applicative import Ros.Internal.RosBinary import Ros.Internal.Msg.MsgInfo import qualified GHC...
a406d167069cfd1e7587494619a8ea487cce6caca7058cba80c0741022c27b09
well-typed/recover-rtti
CheckSame.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE GADTs # # LANGUAGE LambdaCase # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # {-# LANGUAGE TypeOperators #-} module Debug.RecoverRTTI.CheckSame ( * Check if two classifiers are ...
null
https://raw.githubusercontent.com/well-typed/recover-rtti/57c45f9352cda7e385ef9b4c525dbd7b9f979e32/src/Debug/RecoverRTTI/CheckSame.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE RankNTypes # # LANGUAGE TypeOperators # ------------------------------------------------------------------------------ Equality check ------------------------------------------------------------------------------ Primitive ty...
# LANGUAGE GADTs # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # module Debug.RecoverRTTI.CheckSame ( * Check if two classifiers are the same samePrim , sameClassifier_ , sameElem , sameElems ) where import Data.SOP import Data.Type.Equality import Debug.RecoverRTTI....
45dc459a9c6481d26b516b2b13181bf36bf1038bc2bfd4fe6844c5a4fb8e1f09
paf31/dovetail
Show.hs
# LANGUAGE BlockArguments # # LANGUAGE ImportQualifiedPost # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE ViewPatterns # module Dovetail.Core.Data.Show where import Data.Foldable (fold) import Data.Text (Text) import Data.Text qualifi...
null
https://raw.githubusercontent.com/paf31/dovetail/60e00e247b643ad9c05e4137396ffddedcd8bcb6/dovetail-core/src/Dovetail/Core/Data/Show.hs
haskell
# LANGUAGE OverloadedStrings # showIntImpl :: Int -> String showNumberImpl :: Number -> String showStringImpl :: String -> String showArrayImpl :: forall a. (a -> String) -> Array a -> String cons :: forall a. a -> Array a -> Array a join :: String -> Array String -> String
# LANGUAGE BlockArguments # # LANGUAGE ImportQualifiedPost # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE ViewPatterns # module Dovetail.Core.Data.Show where import Data.Foldable (fold) import Data.Text (Text) import Data.Text qualified as Text import Data.Vector (Vector...
043f3074cb2cb1d51f5f9e3a7ea030f133a8641d52fd132c8257e7cd5e4a616c
scrintal/heroicons-reagent
sparkles.cljs
(ns com.scrintal.heroicons.solid.sparkles) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M9 4.5a.75.75 0 01.721.544l.813 2.846a3.75 3.75 0 002.576 2.576l2.846.813a.75.75 ...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/solid/sparkles.cljs
clojure
(ns com.scrintal.heroicons.solid.sparkles) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M9 4.5a.75.75 0 01.721.544l.813 2.846a3.75 3.75 0 002.576 2.576l2.846.813a.75.75 ...
970233688d8795ae6591b90ba033fb65a06d600c1bc5e467d7207602da861f08
exoscale/clojure-kubernetes-client
v1beta1_daemon_set_condition.clj
(ns clojure-kubernetes-client.specs.v1beta1-daemon-set-condition (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] ) (:import (java.io File))) (declare v1beta1-daemon-set-condition-data v1beta1-daemon-set-condition) (def v1beta1-daemon-set-condition-data { (ds/opt :la...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1beta1_daemon_set_condition.clj
clojure
(ns clojure-kubernetes-client.specs.v1beta1-daemon-set-condition (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] ) (:import (java.io File))) (declare v1beta1-daemon-set-condition-data v1beta1-daemon-set-condition) (def v1beta1-daemon-set-condition-data { (ds/opt :la...
7a15f6288fa879b20479bad9e9609988edacdf2d6be54f4a31dd6c5fe346cc78
babashka/babashka
sqlite.clj
#!/usr/bin/env bb --time -o -f ;; Usage: sqlite.clj <paths>. Lints paths with , stores var information in sqlite database , ;; executes query and prints output. ;; Example: ;; $ examples/sqlite.clj sci/src ;; 'ns','name','filename','row','col' ' sci.impl.main','-main','sci / src / sci / impl / main.cljc',10,1...
null
https://raw.githubusercontent.com/babashka/babashka/3dfc15f5a40efaec07cba991892c1207a352fab4/examples/sqlite.clj
clojure
Usage: sqlite.clj <paths>. executes query and prints output. Example: $ examples/sqlite.clj sci/src 'ns','name','filename','row','col'
#!/usr/bin/env bb --time -o -f Lints paths with , stores var information in sqlite database , ' sci.impl.main','-main','sci / src / sci / impl / main.cljc',10,1 (def db "/tmp/analysis.db") (defn query [& args] (apply shell/sh "sqlite3" "-quote" "-header" "-separator" " | " db args)) (defn create-db! [] ...
9486c9f251f1ef9f5ce7fcd278e128a4276e4c753ce46735c4115383984d928c
Clozure/ccl
easygui.lisp
(in-package :ccl) (let ((path (or *load-pathname* *loading-file-source-file*))) (load (merge-pathnames ";easygui;system.lisp" path)) (load-easygui nil))
null
https://raw.githubusercontent.com/Clozure/ccl/6c1a9458f7a5437b73ec227e989aa5b825f32fd3/examples/cocoa/easygui.lisp
lisp
(in-package :ccl) (let ((path (or *load-pathname* *loading-file-source-file*))) (load (merge-pathnames ";easygui;system.lisp" path)) (load-easygui nil))
ba17afa178e0f0117e09c8048a722d44a109c77d48d360e67fdfeb0a163e41d0
xclerc/ocamljava
throwable-template.ml
* This file is part of library . * Copyright ( C ) 2007 - 2015 . * * 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 3 of the License , or * ( at yo...
null
https://raw.githubusercontent.com/xclerc/ocamljava/8330bfdfd01d0c348f2ba2f0f23d8f5a8f6015b1/library/javalib/templates/throwable-template.ml
ocaml
Null value Instance creation Throw Base methods Miscellaneous
* This file is part of library . * Copyright ( C ) 2007 - 2015 . * * 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 3 of the License , or * ( at yo...
5f0c2e50a5c7f09a4cdc02e6aa693a909ef753e616e6c72d5a0772d5837385da
jasonstolaruk/CurryMUD
NpcServer.hs
# LANGUAGE LambdaCase , OverloadedStrings # module Mud.Threads.NpcServer ( runNpcServerAsync , startNpcServers , stopNpcServers , stopWaitNpcServer , threadNpcServer ) where import Mud.Data.Mi...
null
https://raw.githubusercontent.com/jasonstolaruk/CurryMUD/f9775fb3ede08610f33f27bb1fb5fc0565e98266/lib/Mud/Threads/NpcServer.hs
haskell
================================================== ---
# LANGUAGE LambdaCase , OverloadedStrings # module Mud.Threads.NpcServer ( runNpcServerAsync , startNpcServers , stopNpcServers , stopWaitNpcServer , threadNpcServer ) where import Mud.Data.Mi...
e0ac6da2f05b68735bfdd2bb802a467dca602d63f802c1b121d4569347445b9e
AHartNtkn/SICAM
Clashi.hs
import Prelude import System.Environment (getArgs) import Clash.Main (defaultMain) main :: IO () main = getArgs >>= defaultMain . ("--interactive":)
null
https://raw.githubusercontent.com/AHartNtkn/SICAM/126d8eb90452af9f535c838fa953be05a9ddf282/clash%20files/bin/Clashi.hs
haskell
import Prelude import System.Environment (getArgs) import Clash.Main (defaultMain) main :: IO () main = getArgs >>= defaultMain . ("--interactive":)
42c22d5e3693df1f265b2ff91ccf88d324e7a1e7aef2b9d43468f55d0f94c208
tcsprojects/pgsolver
stratimpralgs.mli
open Paritygame open Tcsset val register: unit -> unit val enable_exp_bit_count: bool ref val get_last_exp_bit_count: unit -> int val get_last_iteration_count: unit -> int val _strat_impr_callback: (strategy -> int -> unit) option ref type node_total_ordering_fun = Paritygame.paritygame -> node -> node -> int va...
null
https://raw.githubusercontent.com/tcsprojects/pgsolver/b0c31a8b367c405baed961385ad645d52f648325/src/solvers/stratimpralgs.mli
ocaml
open Paritygame open Tcsset val register: unit -> unit val enable_exp_bit_count: bool ref val get_last_exp_bit_count: unit -> int val get_last_iteration_count: unit -> int val _strat_impr_callback: (strategy -> int -> unit) option ref type node_total_ordering_fun = Paritygame.paritygame -> node -> node -> int va...
97f9744a207e316a17b1d18963092ae9f82e687a12805362497a312ce3e3d3f0
neilprosser/mr-maestro
deployments.clj
(ns maestro.deployments (:require [clj-time.core :as time] [clojure.string :as str] [maestro [actions :as actions] [elasticsearch :as es] [log :as log] [redis :as redis]])) (def ^:private retryable-tasks #{:maestro.messages.asg/wait-for-in...
null
https://raw.githubusercontent.com/neilprosser/mr-maestro/469790fd712262016729c1d83d4b4e11869237a2/src/maestro/deployments.clj
clojure
(ns maestro.deployments (:require [clj-time.core :as time] [clojure.string :as str] [maestro [actions :as actions] [elasticsearch :as es] [log :as log] [redis :as redis]])) (def ^:private retryable-tasks #{:maestro.messages.asg/wait-for-in...
5b2e4e0b7ab0d2fb525130b59b4bceffe6c830c646055c06cdc25ce2eba54572
takikawa/racket-ppa
base.rkt
#lang racket/base (require "decode.rkt" "core.rkt" "manual-struct.rkt" "decode-struct.rkt" "html-properties.rkt" "tag.rkt" "private/tag.rkt" racket/list racket/class racket/contract/base racket/contract/combinator (for-s...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/5f2031309f6359c61a8dfd1fec0b77bbf9fb78df/share/pkgs/scribble-lib/scribble/base.rkt
racket
---------------------------------------- ---------------------------------------- ---------------------------------------- ---------------------------------------- ---------------------------------------- ---------------------------------------- Expand given column and cell properties lists to match the dimensi...
#lang racket/base (require "decode.rkt" "core.rkt" "manual-struct.rkt" "decode-struct.rkt" "html-properties.rkt" "tag.rkt" "private/tag.rkt" racket/list racket/class racket/contract/base racket/contract/combinator (for-s...
88d44bd44726fece1b5c4cc1cd632107016d5e3d40784dba05bed13bee90b66d
atongen/setml
clients.mli
module GameKey = CCInt module PlayerKey = CCInt type t val make : ?n:int -> unit -> t val send : (Websocket_cohttp_lwt.Frame.t option -> unit) -> string -> unit val game_send : t -> GameKey.t -> string -> unit val in_game : t -> GameKey.t -> PlayerKey.t -> bool val game_has_players : t -> GameKey.t -> bool val add : t ...
null
https://raw.githubusercontent.com/atongen/setml/8afee909ba6656506a69f79fd8682b37f2d2928a/src/server/clients.mli
ocaml
module GameKey = CCInt module PlayerKey = CCInt type t val make : ?n:int -> unit -> t val send : (Websocket_cohttp_lwt.Frame.t option -> unit) -> string -> unit val game_send : t -> GameKey.t -> string -> unit val in_game : t -> GameKey.t -> PlayerKey.t -> bool val game_has_players : t -> GameKey.t -> bool val add : t ...
f87357d827b40a807173c1777e0dd79e54422b1a418290d36a6429cfd6025421
tetigi/unearthing-clojurescript
core.cljs
(ns unearthing-clojurescript.core (:require [reagent.core :as reagent] [devtools.core :as devtools] [unearthing-clojurescript.app :as app])) (devtools/install!) (enable-console-print!) ;; -- VIEW -------------------------------------------------------------------- (defn app-component [] ...
null
https://raw.githubusercontent.com/tetigi/unearthing-clojurescript/fe698adb2690a5f4d19efa99be6c2d40d79e3b9a/src/cljs/unearthing-clojurescript/core.cljs
clojure
-- VIEW --------------------------------------------------------------------
(ns unearthing-clojurescript.core (:require [reagent.core :as reagent] [devtools.core :as devtools] [unearthing-clojurescript.app :as app])) (devtools/install!) (enable-console-print!) (defn app-component [] [:div [app/component]]) (reagent/render-component [app-component] ...
7b97e5df5db64e4f60504a05cc14e11a486f6ebed123601422b97f27b3b76b07
marcoheisig/Typo
class-subclasses.lisp
(in-package #:typo.ntype) (defun class-subclasses (class) (declare (class class)) (let ((table (make-hash-table :test #'eq)) (classes '())) (labels ((scan-class (class) (unless (gethash class table) (setf (gethash class table) t) (push class classes) ...
null
https://raw.githubusercontent.com/marcoheisig/Typo/88f2708bbb8f8f8ac2dd19cd153a16c06554a6aa/code/ntype/class-subclasses.lisp
lisp
(in-package #:typo.ntype) (defun class-subclasses (class) (declare (class class)) (let ((table (make-hash-table :test #'eq)) (classes '())) (labels ((scan-class (class) (unless (gethash class table) (setf (gethash class table) t) (push class classes) ...
0721aa27ce8f118e3453ff870dcc1e855363dbcd520a2fcab8ae14293b7eb89f
skanev/playground
07.scm
EOPL exercise 1.07 ; ; The error message form nth-element is uninformative. Rewrite nth-element so ; that it produces a more informative error message such as "(a b c) does not have 8 elements " ; I don't know how much Scheme can I use in this exercise, so I will just go ; with an internal definition. (define (nt...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/eopl/01/07.scm
scheme
The error message form nth-element is uninformative. Rewrite nth-element so that it produces a more informative error message such as "(a b c) does not I don't know how much Scheme can I use in this exercise, so I will just go with an internal definition.
EOPL exercise 1.07 have 8 elements " (define (nth-element lst n) (define (iter items counter) (if (null? items) (eopl:error 'nth-element "~s does not have ~s elements." lst n) (if (zero? counter) (car items) (iter (cdr items) (- counter 1))))) (iter lst n))
e1651c7f44f50b57aadd0fcd34155377b4d3ff776f88f439e2335c64e692c954
bcc32/projecteuler-ocaml
sol_800.mli
open! Core open! Import include Solution.S
null
https://raw.githubusercontent.com/bcc32/projecteuler-ocaml/d67aca3a9017bec6443aa46d6e24cd9e6d83b65b/sol/sol_800.mli
ocaml
open! Core open! Import include Solution.S
e05f9c45a284d67c4846af65a8934a848d05a0efd9f05c46873b2a616171e653
juspay/atlas
QuoteTerms.hs
# LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE QuasiQuotes # # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # # OPTIONS_GHC -Wno - orphans # | Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you m...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/app-backend/src/Storage/Tabular/Quote/QuoteTerms.hs
haskell
FIXME quoteId should be QuoteTId, but I made it Text to avoid cyclic dependencies
# LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE QuasiQuotes # # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # # OPTIONS_GHC -Wno - orphans # | Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you m...
7854e812f3407aae9574f404b6e5c87e3339e6fe51424be500b3a4a908c0dcc0
merijn/broadcast-chan
Sync.hs
{-# LANGUAGE BangPatterns #-} import Criterion.Main import Control.Concurrent (forkIO, setNumCapabilities, yield) import Control.Concurrent.Async (async) import qualified Control.Concurrent.Async as Async import Control.Concurrent.Chan import Control.Concurrent.MVar import Control.Concurrent.QSem import Control.Concur...
null
https://raw.githubusercontent.com/merijn/broadcast-chan/1a884f9ffa6f9f5628f575aec1e06502c853ab9f/broadcast-chan/benchmarks/Sync.hs
haskell
# LANGUAGE BangPatterns #
import Criterion.Main import Control.Concurrent (forkIO, setNumCapabilities, yield) import Control.Concurrent.Async (async) import qualified Control.Concurrent.Async as Async import Control.Concurrent.Chan import Control.Concurrent.MVar import Control.Concurrent.QSem import Control.Concurrent.QSemN import Control.Conc...
4365f14d49329bc61cb0fea332515c08371acd6752680619ebfb29222e5ac14e
alexpeits/harg
Env.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # # LANGUAGE TypeFamilies # module Options.Harg.Sources.Env ( EnvSource (..), EnvSourceVal (..), ) where import qualified Barbies as B import Data.Functor.Compose (Compose (..)) import Data.Kind (Type) import Data.List (find) import GHC.Generics (Generi...
null
https://raw.githubusercontent.com/alexpeits/harg/a5a684ba974a788f97836888e8631199c550a73f/src/Options/Harg/Sources/Env.hs
haskell
# LANGUAGE DeriveAnyClass # | Source that enables a parser to read options from environment variables. variable names and values (strings). | Try to get a value from the environment variable association list.
# LANGUAGE DeriveGeneric # # LANGUAGE TypeFamilies # module Options.Harg.Sources.Env ( EnvSource (..), EnvSourceVal (..), ) where import qualified Barbies as B import Data.Functor.Compose (Compose (..)) import Data.Kind (Type) import Data.List (find) import GHC.Generics (Generic) import Options.Harg.Sources.T...
9c790e1237635cb9e0cbe001216cfeb50fca68e722f9bd50efdb97e2fba1150e
nvim-treesitter/nvim-treesitter
highlights.scm
[ "true" "false" ] @boolean "null" @constant (string) @string (number) @number (comment) @comment (member name: (_) @keyword) (ERROR) @error
null
https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/45610f18a31c290d8fd07bcf6fa1353312819ea6/queries/json5/highlights.scm
scheme
[ "true" "false" ] @boolean "null" @constant (string) @string (number) @number (comment) @comment (member name: (_) @keyword) (ERROR) @error
f7f7c8b51cc6d83b5835d0073a8a3e3027a9a9ad16b1ca8be43acaa1ff48dafa
IUCompilerCourse/public-student-support-code
interp-Llambda-prime.rkt
#lang racket (require "interp-Lvec-prime.rkt") (require "interp-Lvecof-prime.rkt") (require "interp-Lfun-prime.rkt") (require "interp-Llambda.rkt") (require "utilities.rkt") (require (prefix-in runtime-config: "runtime-config.rkt")) (provide interp-Llambda-prime interp-Llambda-prime-mixin interp-Llambda-prime-class) (...
null
https://raw.githubusercontent.com/IUCompilerCourse/public-student-support-code/fe5f4a657f4622eba596454c14bc8f72765004d9/interp-Llambda-prime.rkt
racket
#lang racket (require "interp-Lvec-prime.rkt") (require "interp-Lvecof-prime.rkt") (require "interp-Lfun-prime.rkt") (require "interp-Llambda.rkt") (require "utilities.rkt") (require (prefix-in runtime-config: "runtime-config.rkt")) (provide interp-Llambda-prime interp-Llambda-prime-mixin interp-Llambda-prime-class) (...
8f049c2b42000497860e832562d86f888883fe1f5b8e0445ec5e4cdf9d8a290f
OCamlPro/drom
build.mli
(**************************************************************************) (* *) Copyright 2020 OCamlPro & Origin Labs (* *) (* All rights ...
null
https://raw.githubusercontent.com/OCamlPro/drom/dbbb5f9225df65c589e6f307ac28be4c408b9cae/src/drom_lib/build.mli
ocaml
************************************************************************ All rights reserved. This file is distributed under the terms of the exception on linking descr...
Copyright 2020 OCamlPro & Origin Labs GNU Lesser General Public License version 2.1 , with the special open Ezcmd.V2 open Types type build_args = { mutable arg_switch : switch_arg option; mutable arg_yes : bool; mutable arg_edition : string option; mutable a...
f5261c2f8d69e5720ff146ccfb2306178a01a7031a6588902cf35302791e0332
boxp/sample-github-spa
container.cljs
(ns sample-github-spa.auth.container (:require [reagent.core :as reagent] [sample-github-spa.auth.component :as component] [sample-github-spa.auth.events :as events] [sample-github-spa.util :as util] [re-frame.core :as re-frame])) ;; metaデータがcljs.loader/loadによって上書きされるた...
null
https://raw.githubusercontent.com/boxp/sample-github-spa/f1fc3649b0b8c61d63b8137f7fff97f6fd477ec6/src/cljs/sample_github_spa/auth/container.cljs
clojure
metaデータがcljs.loader/loadによって上書きされるためreagent/create-classでLifecycleを定義している
(ns sample-github-spa.auth.container (:require [reagent.core :as reagent] [sample-github-spa.auth.component :as component] [sample-github-spa.auth.events :as events] [sample-github-spa.util :as util] [re-frame.core :as re-frame])) (defn box [params] (reagent/create...
1bc13b32e2bda1921def2eb62b5be9557169776d3135266b0c0fa009b187d65c
rmculpepper/crypto
digest.rkt
Copyright 2012 - 2018 Copyright 2007 - 2009 < vyzo at media.mit.edu > ;; ;; 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 3 of the License , or ;; (at your optio...
null
https://raw.githubusercontent.com/rmculpepper/crypto/63e131c06d54756c3f36833ad0b700d56d6a75c8/crypto-lib/private/common/digest.rkt
racket
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 (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCH...
Copyright 2012 - 2018 Copyright 2007 - 2009 < vyzo at media.mit.edu > by the Free Software Foundation , either version 3 of the License , or GNU Lesser General Public License for more details . You should have received a copy of the GNU Lesser General Public License #lang racket/base (require racket/clas...
b8cc76cfe672b3bbdfefe8888b774134ebd3e48855229c5cc97ade5e372465b9
facebook/flow
codemod_ast_reducer.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/flow/741104e69c43057ebd32804dd6bcc1b5e97548ea/src/codemods/utils/codemod_ast_reducer.ml
ocaml
* 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...
03434b56ea50bcc166cb2732c824aa8dfa7d350cf678ad90f280243d840ced54
Tim-ats-d/Indigobi
mime.ml
type t = { media_type : media_type; encoding : [ `Utf8 | `Other of string ] } and media_type = Gemini | Text of string | Other of string let mime_re = Str.regexp {|text/\(.*\)|} let guess = function | "text/gemini" -> Gemini | s when Str.string_match mime_re s 0 -> Text (Str.matched_group 1 s) | o -> Other o l...
null
https://raw.githubusercontent.com/Tim-ats-d/Indigobi/dee46e999c23e2fa6fb6fa1fd728322e0e4dceba/src/back/mime.ml
ocaml
type t = { media_type : media_type; encoding : [ `Utf8 | `Other of string ] } and media_type = Gemini | Text of string | Other of string let mime_re = Str.regexp {|text/\(.*\)|} let guess = function | "text/gemini" -> Gemini | s when Str.string_match mime_re s 0 -> Text (Str.matched_group 1 s) | o -> Other o l...
b6e763b0cb22416a09c80424762b7d480864e3b985234ef696004ef376f2ab8d
Copilot-Language/copilot
Operators.hs
{-# LANGUAGE GADTs #-} {-# LANGUAGE Rank2Types #-} {-# LANGUAGE Safe #-} -- | -- Description: Internal representation of Copilot operators. Copyright : ( c ) 2011 National Institute of Aerospace / Galois , Inc. module Copilot.Core.Operators ( Op1 (..) , Op2 (..) , Op3 (..) ) where --...
null
https://raw.githubusercontent.com/Copilot-Language/copilot/efa3b97d008340e5a3ae21e602b87fe4f60124d5/copilot-core/src/Copilot/Core/Operators.hs
haskell
# LANGUAGE GADTs # # LANGUAGE Rank2Types # # LANGUAGE Safe # | Description: Internal representation of Copilot operators. External imports Internal imports | Unary operators. Numeric operators. Fractional operators. Floating operators. Casting operator. ^ Casting operator. Struct operator. ^ Proj...
Copyright : ( c ) 2011 National Institute of Aerospace / Galois , Inc. module Copilot.Core.Operators ( Op1 (..) , Op2 (..) , Op3 (..) ) where import Data.Bits (Bits) import Data.Word (Word32) import GHC.TypeLits (KnownSymbol) import Copilot.Core.Type (Field (..), Type (..)) import ...
1b97b76b33116770757db35afa51454a818225360d5e0aadb1958ab1527298a6
melange-re/melange
external_polyfill_test.ml
let suites : Mt.pair_suites ref = ref [] let test_id = ref 0 let eq loc x y = Mt.eq_suites ~test_id ~suites loc x y external ff : int -> int -> int = "caml_fancy_add" [%%raw{| require('melange.runtime/caml_external_polyfill.js') .register("caml_fancy_add", function(x,y){ return + ((""+x ) + (""+y)) }) |}] ...
null
https://raw.githubusercontent.com/melange-re/melange/13edf6108d884e64cd510bce077ef2ce73de6a97/jscomp/test/external_polyfill_test.ml
ocaml
let suites : Mt.pair_suites ref = ref [] let test_id = ref 0 let eq loc x y = Mt.eq_suites ~test_id ~suites loc x y external ff : int -> int -> int = "caml_fancy_add" [%%raw{| require('melange.runtime/caml_external_polyfill.js') .register("caml_fancy_add", function(x,y){ return + ((""+x ) + (""+y)) }) |}] ...
65ce0e7403ccfc21db03f7956d152fe68868d5e57397d668fb780a22bc2f80c5
glv/snergly
algorithms_properties.clj
(ns snergly.algorithms-properties (:import (clojure.lang PersistentQueue)) (:require [clojure.test :refer :all] [clojure.test.check.properties :as prop] [clojure.test.check.clojure-test :refer :all] [clojure.spec.alpha :as s] [clojure.spec.gen.alpha :as sg] ...
null
https://raw.githubusercontent.com/glv/snergly/2f09860b3b3f8d2a58d8a2b2b63184c4a7240f05/test/snergly/algorithms_properties.clj
clojure
This seems like a perfect application for property-based testing. There's no way to inspect a maze and prove that it was generated by a correct the algorithms means that any particular example I come up with might not expose all of the issues. But we do know that all of these algorithms are supposed to produce ...
(ns snergly.algorithms-properties (:import (clojure.lang PersistentQueue)) (:require [clojure.test :refer :all] [clojure.test.check.properties :as prop] [clojure.test.check.clojure-test :refer :all] [clojure.spec.alpha :as s] [clojure.spec.gen.alpha :as sg] ...
2fb35baf618c484b860599fc419c91c91e98cdab660f3e580014d7b8c510d075
Plutonomicon/plutarch-plutus
Other.hs
# LANGUAGE UndecidableInstances # module Plutarch.Internal.Other ( printTerm, printScript, pto, pfix, POpaque (..), popaque, ) where import Data.Text qualified as T import GHC.Stack (HasCallStack) import Plutarch.Internal (ClosedTerm, Config, Term, compile, phoistAcyclic, plam', punsafeCoerce, (#), (:-->)...
null
https://raw.githubusercontent.com/Plutonomicon/plutarch-plutus/9b83892057f2aaaed76e3af6193ad1ae242244cc/Plutarch/Internal/Other.hs
haskell
>)) | An Arbitrary Term with an unknown type | Erase the type of a Term > ( a : -- > a ) : -- > a : -- > a ) - > > a ) - > > ( a : -- > a ) : -- > a : -- > a ) > (a :--> a) :--> a :--> a) -> > a) -> > (a :--> a) :--> a :--> a) > b) :--> a :--> b) :--> a :--> b)
# LANGUAGE UndecidableInstances # module Plutarch.Internal.Other ( printTerm, printScript, pto, pfix, POpaque (..), popaque, ) where import Data.Text qualified as T import GHC.Stack (HasCallStack) import Plutarch.Internal.PlutusType ( PContravariant', PCovariant', PInner, PVariant', PlutusType, ...
6267bc3870c387e1b7b298f1ac8c6e02ba59a5f2cb95511ce65ff4e09bd43b05
erlio/vmq_commons
on_unsubscribe_hook.erl
-module(on_unsubscribe_hook). -include("vmq_types.hrl"). %% called as an 'all'-hook, return value is ignored -callback on_unsubscribe(UserName :: username(), SubscriberId :: subscriber_id(), Topics :: [Topic :: topic()]) -> ok ...
null
https://raw.githubusercontent.com/erlio/vmq_commons/847d92d23ec212430bd8bace097ee91a033a8ff9/src/on_unsubscribe_hook.erl
erlang
called as an 'all'-hook, return value is ignored
-module(on_unsubscribe_hook). -include("vmq_types.hrl"). -callback on_unsubscribe(UserName :: username(), SubscriberId :: subscriber_id(), Topics :: [Topic :: topic()]) -> ok | {ok, [Topic ::...
41cf327709af8cc7781214513540727a20e5ba29133ccf2fb9a4c40c5fe81d03
tweag/asterius
T2080.hs
# OPTIONS_GHC -XMagicHash # module Main where import GHC.Base import Foreign import Foreign.C import GHC.Ptr (Ptr(..)) utf8DecodeChar# :: Addr# -> Bool -> Bool # NOINLINE utf8DecodeChar # # utf8DecodeChar# a# fred = case () of _ | isTrue# (word2Int# (indexWord8OffAddr# a# 0#) <=# 0x7F#) -> True Omitting the ...
null
https://raw.githubusercontent.com/tweag/asterius/e7b823c87499656860f87b9b468eb0567add1de8/asterius/test/ghc-testsuite/codeGen/T2080.hs
haskell
ghc-6.9: panic! (the 'impossible' happened) should be False
# OPTIONS_GHC -XMagicHash # module Main where import GHC.Base import Foreign import Foreign.C import GHC.Ptr (Ptr(..)) utf8DecodeChar# :: Addr# -> Bool -> Bool # NOINLINE utf8DecodeChar # # utf8DecodeChar# a# fred = case () of _ | isTrue# (word2Int# (indexWord8OffAddr# a# 0#) <=# 0x7F#) -> True Omitting the ...
2c39743d50f3d5d1ddf0ff6e49ee43a31cede2d2ba2ad759903f826d268f60ea
janestreet/merlin-jst
stypes.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/janestreet/merlin-jst/980b574405617fa0dfb0b79a84a66536b46cd71b/src/ocaml/typing/stypes.ml
ocaml
************************************************************************ OCaml ...
, projet , INRIA Rocquencourt Copyright 2003 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Annot;; open Lexing;; open Location;; open Typedtree;; let output_int oc i = output_string oc (Int.to_stri...