_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
90e1e411be23e779e409016d7b460244c02b83f4e50c20572a4600cfde29e557
OCamlPro/ocp-ocamlres
oCamlResSubFormats.mli
(** Formatters for resource leaves in the tree structure *) This file is part of ocp - ocamlres - subformats * ( C ) 2013 OCamlPro - Benjamin CANOU * * ocp - ocamlres is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published b...
null
https://raw.githubusercontent.com/OCamlPro/ocp-ocamlres/8ec8bce4afb55dd13f6df30eccda60ca1f6f0d6b/src/oCamlResSubFormats.mli
ocaml
* Formatters for resource leaves in the tree structure * The generation-time intermediate representation of data. * A parser as used by the scanner to obtain the in-memory resources from files. * A dumper to reconstitute the files from the in-memory resources. * Takes the path to the resource in the res...
This file is part of ocp - ocamlres - subformats * ( C ) 2013 OCamlPro - Benjamin CANOU * * ocp - ocamlres 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.0 of ...
77bcf5492d30b4d4e041cd3239a46d730b60bf084723422fc34e57b12ad26e29
mcdejonge/rs
rs-util.rkt
#lang racket/base (require racket/bool racket/contract/base racket/contract/region) ;; Utility functions for use in rs (provide rs-util-rtsleep rs-util-diag rs-util-set-diag-mode rs-util-loop-and-wait rs-util-run-timed-ms rs-util-calc-time-corrected ) ;; Diagnosis mode. When turned on it...
null
https://raw.githubusercontent.com/mcdejonge/rs/d9cb3a15e7416df7c2a0a29748cb2f07f1dace32/rs-util.rkt
racket
Utility functions for use in rs Diagnosis mode. When turned on it prints diagnostic messages. Print a diagnostic message (using printf) but only if NOTE: if you need to perform a function call in one of your args, make sure it only happens when diag-mode is #t, in other words supply a procedure object rather tha...
#lang racket/base (require racket/bool racket/contract/base racket/contract/region) (provide rs-util-rtsleep rs-util-diag rs-util-set-diag-mode rs-util-loop-and-wait rs-util-run-timed-ms rs-util-calc-time-corrected ) (define rs-util-diag-mode #f) (define (rs-util-set-diag-mode true-or-fa...
84c4c9bfd391a9cf2947a0987fd371b9db0a39ebb9ab694262b5b91c3fd1c8d6
rodrigosetti/messagepack
Main.hs
# LANGUAGE TemplateHaskell # module Main where import Control.Applicative import Data.MessagePack import Data.Serialize import Test.QuickCheck import qualified Data.ByteString as BS import qualified Data.Map as M instance Arbitrary Object where arbitrary = sized $ \n -> oneof [ return ObjectNil ...
null
https://raw.githubusercontent.com/rodrigosetti/messagepack/c84a93ebc260837eecaca0182a8626d1615a14c4/tests/Main.hs
haskell
# LANGUAGE TemplateHaskell # module Main where import Control.Applicative import Data.MessagePack import Data.Serialize import Test.QuickCheck import qualified Data.ByteString as BS import qualified Data.Map as M instance Arbitrary Object where arbitrary = sized $ \n -> oneof [ return ObjectNil ...
6a4fc237fe176d87b2fb5279d9829beeac1f80d7f55f86a66b9d45196ccbf244
vkz/PLAI
type-unify.rkt
#lang plai-typed (require "type-constraints.rkt") (define-type-alias Subst (listof Substitution)) (define-type Substitution [sub (var : Term) (is : Term)]) (define (unify [cs : (listof Constraints)]) : Subst (unify/theta cs empty)) (define (lookup [t : Term] [in : Subst]) : (optionof Term) (cond [(empty?...
null
https://raw.githubusercontent.com/vkz/PLAI/3a7dc604dab78f4ebcfa6f88d03242cb3f7f1113/type-unify.rkt
racket
#lang plai-typed (require "type-constraints.rkt") (define-type-alias Subst (listof Substitution)) (define-type Substitution [sub (var : Term) (is : Term)]) (define (unify [cs : (listof Constraints)]) : Subst (unify/theta cs empty)) (define (lookup [t : Term] [in : Subst]) : (optionof Term) (cond [(empty?...
d0fba302cb53460caecbfbcf0b04a3d1a0420223619426ae25c65fe6fee40ec9
khotyn/4clojure-answer
138-squares-squared.clj
(fn [i j] (let [num-str (apply str (take-while #(<= % j) (iterate #(* % %) i))) str-size (first (drop-while #(< (* % %) (count num-str)) (range))) s (concat num-str (repeat (- (* str-size str-size) (count num-str)) \*)) board-size (dec (* 2 str-size)) init-board (vec (repeat board-size...
null
https://raw.githubusercontent.com/khotyn/4clojure-answer/3de82d732faedceafac4f1585a72d0712fe5d3c6/138-squares-squared.clj
clojure
(fn [i j] (let [num-str (apply str (take-while #(<= % j) (iterate #(* % %) i))) str-size (first (drop-while #(< (* % %) (count num-str)) (range))) s (concat num-str (repeat (- (* str-size str-size) (count num-str)) \*)) board-size (dec (* 2 str-size)) init-board (vec (repeat board-size...
d8d32f2b4e572953967a03cb8eeea34a9b734c4b2438ea2ed8ed3924f7d60c19
AccelerateHS/accelerate-examples
MatrixMarket.hs
{-# LANGUAGE GADTs #-} {-# LANGUAGE OverloadedStrings #-} module MatrixMarket (Matrix(..), readMatrix) where import Control.Applicative hiding ( many ) import Data.Int import Data.Complex import Data.Attoparsec.ByteString.Char8 import Data.ByteString.Lex.Fractional import qualified D...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate-examples/a973ee423b5eadda6ef2e2504d2383f625e49821/examples/smvm/icebox/MatrixMarket.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings # | Specifies the element type. Pattern matrices do not have any elements, only indices, and only make sense for coordinate matrices and vectors. | Specifies either sparse or dense storage. In sparse (\"coordinate\") storage, elements are given in (i,j,...
module MatrixMarket (Matrix(..), readMatrix) where import Control.Applicative hiding ( many ) import Data.Int import Data.Complex import Data.Attoparsec.ByteString.Char8 import Data.ByteString.Lex.Fractional import qualified Data.Attoparsec.Lazy as L import qualified Data.ByteString.La...
88396af7054e64daf6a0fc41289b538a33f52f12248f72ac6eddd89c115599d3
huangz1990/real-world-haskell-cn
foldA.hs
-- file: ch12/Barcode.hs -- | Strict left fold, similar to foldl' on lists. foldA :: Ix k => (a -> b -> a) -> a -> Array k b -> a foldA f s a = go s (indices a) where go s (j:js) = let s' = f s (a ! j) in s' `seq` go s' js go s _ = s | Strict left fold using the first element of the arra...
null
https://raw.githubusercontent.com/huangz1990/real-world-haskell-cn/f67b07dd846b1950d17ff941d650089fcbbe9586/code/ch12/foldA.hs
haskell
file: ch12/Barcode.hs | Strict left fold, similar to foldl' on lists.
foldA :: Ix k => (a -> b -> a) -> a -> Array k b -> a foldA f s a = go s (indices a) where go s (j:js) = let s' = f s (a ! j) in s' `seq` go s' js go s _ = s | Strict left fold using the first element of the array as its starting value , similar to foldl1 on lists . foldA1 :: Ix k => (...
1010c7496ed3065f12660862855cde1c29f669fb12ebd404d3f5feb42dfc285b
chicken-mobile/chicken-sdl2-android-builder
window.scm
;; chicken - sdl2 : CHICKEN Scheme bindings to Simple DirectMedia Layer 2 ;; Copyright © 2013 , 2015 - 2016 . ;; All rights reserved. ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions ;; are met: ;; ;; - Redistributions...
null
https://raw.githubusercontent.com/chicken-mobile/chicken-sdl2-android-builder/90ef1f0ff667737736f1932e204d29ae615a00c4/eggs/sdl2/lib/sdl2-internals/functions/window.scm
scheme
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributio...
chicken - sdl2 : CHICKEN Scheme bindings to Simple DirectMedia Layer 2 Copyright © 2013 , 2015 - 2016 . " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT COPYRIGHT HOLDER OR FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT N...
084bafae9f5d0276d83cdc9626eff71d8e9e00ec5a9b9566a502d9a08b808139
rm-hull/project-euler
euler069.clj
EULER # 069 ;; ========== Euler 's Totient function , ) [ sometimes called the phi function ] , is ;; used to determine the number of numbers less than n which are relatively prime to n. For example , as 1 , 2 , 4 , 5 , 7 , and 8 , are all less than nine and relatively prime to nine , φ(9)=6 . ;; n Rel...
null
https://raw.githubusercontent.com/rm-hull/project-euler/04e689e87a1844cfd83229bb4628051e3ac6a325/src/euler069.clj
clojure
========== used to determine the number of numbers less than n which are relatively
EULER # 069 Euler 's Totient function , ) [ sometimes called the phi function ] , is prime to n. For example , as 1 , 2 , 4 , 5 , 7 , and 8 , are all less than nine and relatively prime to nine , φ(9)=6 . n Relatively Prime φ(n ) n / φ(n ) 2 1 1 2 3 1,2 ...
d6898ff05a6206f100d4be871e7101aba995b1ae4dee14f68ccef4921fa5ef0c
byorgey/haxr
validate.hs
-- Implements the validation suite from / This has not been tested as the XML - RPC validator does not seem to -- be working at the moment. import System.Time import Network.XmlRpc.Internals import Network.XmlRpc.Server get :: String -> [(String,a)] -> IO a get f xs = maybeToM ("No such field: '" ++ f ++ "'") (look...
null
https://raw.githubusercontent.com/byorgey/haxr/0a643b9b8ce1265736b1bc454d7df47c57bd9f50/examples/validate.hs
haskell
Implements the validation suite from / be working at the moment. FIXME: should be able to get it as a struct
This has not been tested as the XML - RPC validator does not seem to import System.Time import Network.XmlRpc.Internals import Network.XmlRpc.Server get :: String -> [(String,a)] -> IO a get f xs = maybeToM ("No such field: '" ++ f ++ "'") (lookup f xs) arrayOfStructsTest :: [[(String,Int)]] -> IO Int arrayOfStru...
a4ff2fff5a3e2cca32b96655f88ac88f13c37af984a5fef317dfe2d93cd74c3a
webyrd/n-grams-for-synthesis
recnum.scm
; This file is part of the reference implementation of the R6RS Arithmetic SRFI. ; See file COPYING. ; Exact complex arithmetic built on rational arithmetic from Scheme 48 ; By structuring the complex numbers this way---instead of using just one representation using tuples of arbitrary reals --- we avoid having ...
null
https://raw.githubusercontent.com/webyrd/n-grams-for-synthesis/b53b071e53445337d3fe20db0249363aeb9f3e51/datasets/srfi/srfi-77/arithmetic-reference/recnum.scm
scheme
This file is part of the reference implementation of the R6RS Arithmetic SRFI. See file COPYING. Exact complex arithmetic built on rational arithmetic By structuring the complex numbers this way---instead of using just to implement full generic arithmetic below the complex numbers, or having to resort to confusin...
from Scheme 48 one representation using tuples of arbitrary reals --- we avoid having Note that , unlike the COMPNUMS operations , these can return (define-record-type :recnum (make-recnum real imag) recnum? (real recnum-real) (imag recnum-imag)) (define-record-discloser :recnum (lambda (r) (l...
a663e4790a89ef781061be5aec4ff6fbeed2c50a8639c66c8d005c840c07952d
IUCompilerCourse/public-student-support-code
interp-Lvecof.rkt
#lang racket (require racket/fixnum) (require "utilities.rkt") (require "interp-Lvec.rkt") (provide interp-Lvecof interp-Lvecof-class) ;; Note to maintainers of this code: ;; A copy of this interpreter is in the book and should be ;; kept in sync with this code. (define interp-Lvecof-class (class interp-Lvec-cl...
null
https://raw.githubusercontent.com/IUCompilerCourse/public-student-support-code/fe5f4a657f4622eba596454c14bc8f72765004d9/interp-Lvecof.rkt
racket
Note to maintainers of this code: A copy of this interpreter is in the book and should be kept in sync with this code.
#lang racket (require racket/fixnum) (require "utilities.rkt") (require "interp-Lvec.rkt") (provide interp-Lvecof interp-Lvecof-class) (define interp-Lvecof-class (class interp-Lvec-class (super-new) (define/override (interp-op op) (verbose "Lvecof/interp-op" op) (match op ['make-vector...
5595fa62ce45e33dafdf61aac37b4fe36075732177ad469f339b7a2380959ef8
privet-kitty/cl-competitive
eulerian-polynomial.lisp
(defpackage :cp/eulerian-polynomial (:use :cl :cp/ntt :cp/fps :cp/perfect-kth-powers :cp/binom-mod-prime :cp/static-mod) (:export #:make-eulerian-polynomial #:make-eulerian-polynomial*)) (in-package :cp/eulerian-polynomial) (defun make-eulerian-polynomial (n minfactor-table) "Returns a sequence A(n, 0), A(n, ...
null
https://raw.githubusercontent.com/privet-kitty/cl-competitive/a2e4156e66417c051404ade181ce6305cb0c2824/module/eulerian-polynomial.lisp
lisp
(defpackage :cp/eulerian-polynomial (:use :cl :cp/ntt :cp/fps :cp/perfect-kth-powers :cp/binom-mod-prime :cp/static-mod) (:export #:make-eulerian-polynomial #:make-eulerian-polynomial*)) (in-package :cp/eulerian-polynomial) (defun make-eulerian-polynomial (n minfactor-table) "Returns a sequence A(n, 0), A(n, ...
8f305442899e362a4619502bde420fac8ec04156e54b03434e10a2bf484af68f
funcool/cats
core_spec.cljc
(ns cats.core-spec #?(:cljs (:require [cljs.test :as t] [cats.builtin :as b] [cats.monad.maybe :as maybe] [cats.core :as m :include-macros true] [cats.context :as ctx :include-macros true]) :clj (:require [clojure.test :as t] [c...
null
https://raw.githubusercontent.com/funcool/cats/120c8f99afff9d9d92f4f690392a1ce1dc68e0b6/test/cats/core_spec.cljc
clojure
(ns cats.core-spec #?(:cljs (:require [cljs.test :as t] [cats.builtin :as b] [cats.monad.maybe :as maybe] [cats.core :as m :include-macros true] [cats.context :as ctx :include-macros true]) :clj (:require [clojure.test :as t] [c...
d60d032b919fe90a7850b67ec3f9f474ad9cd03a19ed394ac5ca91a7b1bc62a1
jackfirth/lens
test-lens.rkt
#lang racket/base (require racket/contract rackunit fancy-app lens/private/base/base "../base/view-set.rkt") (provide (contract-out [check-lens-view (-> lens? any/c any/c void?)] [check-lens-set (-> lens? any/c any/c any/c void?)] [check-lens-view-set (-> lens? any/...
null
https://raw.githubusercontent.com/jackfirth/lens/733db7744921409b69ddc78ae5b23ffaa6b91e37/lens-common/lens/private/test-util/test-lens.rkt
racket
#lang racket/base (require racket/contract rackunit fancy-app lens/private/base/base "../base/view-set.rkt") (provide (contract-out [check-lens-view (-> lens? any/c any/c void?)] [check-lens-set (-> lens? any/c any/c any/c void?)] [check-lens-view-set (-> lens? any/...
85ad09b0729cb0a4174b82f0a50b9e765a0d4a929551bb4d9d0c3389b3d1fa51
mswift42/themecreator
components.cljs
(ns app.components (:require [reagent.core :as r] [app.db :as db] [app.colors :as colors] [app.previews :as prev])) (def active-preview (r/atom prev/preview-javascript)) (defn toggle-preview [lang] (reset! active-preview lang)) (defn select-component [compid title li...
null
https://raw.githubusercontent.com/mswift42/themecreator/b2b5d2e9b24572122aa43688d4376b62d6dda638/app.core/src/app/components.cljs
clojure
(ns app.components (:require [reagent.core :as r] [app.db :as db] [app.colors :as colors] [app.previews :as prev])) (def active-preview (r/atom prev/preview-javascript)) (defn toggle-preview [lang] (reset! active-preview lang)) (defn select-component [compid title li...
36cf68f1f2ddc464583ffc7c0b6af9a3d8044852b09d838c1895cfbdc9f6fc84
rizo/snowflake-os
sys.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/rizo/snowflake-os/51df43d9ba715532d325e8880d3b8b2c589cd075/libraries/stdlib/sys.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with $ I d : sys.mlp , v 1.1.2.1 2007 - 03...
b0c3bf84b52dced6165d3b07e0944ee86d826ca77b18727a54d90977f9a056a7
remyoudompheng/hs-language-go
Operators.hs
module Language.Go.Parser.Operators ( goOpExpr, goUnaryOp ) where import Text.Parsec.Expr import Text.Parsec.Prim (try, token) import Text.Parsec.Combinator (anyToken) import Language.Go.Parser.Tokens (GoParser,GoToken(..),GoTokenPos(..)) import Language.Go.Syntax.AST -- | @goOpExpr p@ returns a parser for expre...
null
https://raw.githubusercontent.com/remyoudompheng/hs-language-go/5440485f6404356892eab4832cff4f1378c11670/Language/Go/Parser/Operators.hs
haskell
| @goOpExpr p@ returns a parser for expressions with buildExpressionParser so we parse them separately in goUnaryExpr. | @goUnaryOp@ parse a unary (prefix) operator. unary_op = "+" | "-" | "!" | "^" | "*" | "&" | "<-" binary_op = "||" | "&&" | rel_op | add_op | mul_op . rel_op = "==" | "!=" | "<" | "<="...
module Language.Go.Parser.Operators ( goOpExpr, goUnaryOp ) where import Text.Parsec.Expr import Text.Parsec.Prim (try, token) import Text.Parsec.Combinator (anyToken) import Language.Go.Parser.Tokens (GoParser,GoToken(..),GoTokenPos(..)) import Language.Go.Syntax.AST binary operators whose terms are parsed by...
21f5cd4ae88560e2458790d7644b2d1c80e29f7b1e9c930c8e443223f2cccba5
blindglobe/clocc
typedvar.lisp
;;; Typed variable syntax for Common Lisp 2004 - 08 - 05 ;;; This file is put in the public domain by its authors. ;;; A typed variable is a variable whose value at any time is guaranteed ;;; by the programmer to belong to a given type. It is assumed that the ;;; type's semantics doesn't change during the dynamic ...
null
https://raw.githubusercontent.com/blindglobe/clocc/a50bb75edb01039b282cf320e4505122a59c59a7/src/syntax/typedecl/typedvar.lisp
lisp
Typed variable syntax for Common Lisp This file is put in the public domain by its authors. A typed variable is a variable whose value at any time is guaranteed by the programmer to belong to a given type. It is assumed that the type's semantics doesn't change during the dynamic extent of the variable. syntax to...
2004 - 08 - 05 Common Lisp supports typed variables in various situations , but the - In LAMBDA , LET , LET * , MULTIPLE - VALUE - BIND : - In DEFMETHOD , : - In LAMBDA , LET , LET * , MULTIPLE - VALUE - BIND : - In DEFMETHOD , : ( defmethod foo ( [ x integer ] ... ) ... ) Note : Specialized l...
9c3cfbe224ece0d2b71fffc820dcbfa7ac3ac0fb3e0e5cfe3ab2da7b44e37fa9
janestreet/vcaml
test_nvim.ml
open Core open Async open Vcaml open Vcaml_test_helpers let%expect_test "open neovim and get channel list" = let%bind () = simple [%here] Nvim.channels (fun channels -> channels |> List.length > 0 |> sexp_of_bool) in [%expect "true"]; return () ;; let%expect_test "get_channel_info" = let%bind () =...
null
https://raw.githubusercontent.com/janestreet/vcaml/64d205c2d6eee4a7e57abd2d452f5979dc6cd797/test/bindings/test_nvim.ml
ocaml
This behavior is perhaps surprising.
open Core open Async open Vcaml open Vcaml_test_helpers let%expect_test "open neovim and get channel list" = let%bind () = simple [%here] Nvim.channels (fun channels -> channels |> List.length > 0 |> sexp_of_bool) in [%expect "true"]; return () ;; let%expect_test "get_channel_info" = let%bind () =...
5184dfeb93055cb4ba910b575297fc442d94f3b3e72944beec4d7da8b3f1923a
Bogdanp/racket-gui-extra
outline-view.rkt
#lang racket/gui (require racket/gui/extra) ;; NOTE: The outline view is not ready for use yet. The code below ;; mostly works, but the implementation is incomplete and partially ;; wrong. (define tree (hash "/" '("a" "b") "a" '() "b" '("c") "c" '())) (define ds (new (class outline-view-datasour...
null
https://raw.githubusercontent.com/Bogdanp/racket-gui-extra/6e1d2d154427707424dcc8bbfe2115009e38d3d4/examples/outline-view.rkt
racket
NOTE: The outline view is not ready for use yet. The code below mostly works, but the implementation is incomplete and partially wrong.
#lang racket/gui (require racket/gui/extra) (define tree (hash "/" '("a" "b") "a" '() "b" '("c") "c" '())) (define ds (new (class outline-view-datasource% (super-new) (define/override (get-item-child-count it) (length (hash-ref tree (or it "/") null))) (define/override (get...
6396cb7f650cda958e2d16b5f0c140d8e1f9aeb60ca5f910972a95e646299446
cmr-exchange/cmr-client
project.clj
(defproject gov.nasa.earthdata/cmr-client "0.3.0-SNAPSHOT" :description "A Clojure(Script) Client for NASA's Common Metadata Repository" :url "-exchange/cmr-client" :license { :name "Apache License, Version 2.0" :url "-2.0"} :exclusions [ org.clojure/clojure potemkin] :dependencies [ [clj-...
null
https://raw.githubusercontent.com/cmr-exchange/cmr-client/0b4dd4114e3b5ed28fc5b57db0f8dcd8773c1c14/project.clj
clojure
"--name" "sockets"] ["shell" "cp" "resources/public/cdn.html" "docs"] ["check-deps"]
(defproject gov.nasa.earthdata/cmr-client "0.3.0-SNAPSHOT" :description "A Clojure(Script) Client for NASA's Common Metadata Repository" :url "-exchange/cmr-client" :license { :name "Apache License, Version 2.0" :url "-2.0"} :exclusions [ org.clojure/clojure potemkin] :dependencies [ [clj-...
3bcf79ba277d9c11f2a02cc1b8ca39331dee41bac40efefc9faf2c30983a650a
eta-lang/eta-prelude
ByteString.hs
module Eta.Types.ByteString ( ByteString(..) , pack , unpack ) where import Data.ByteString
null
https://raw.githubusercontent.com/eta-lang/eta-prelude/e25e9aa42093e090a86d2728b0cac288a25bc52e/src/Eta/Types/ByteString.hs
haskell
module Eta.Types.ByteString ( ByteString(..) , pack , unpack ) where import Data.ByteString
b621d980ce7995f99892211338a03867055665fa8653b543767168850c3578de
sellout/haskerwaul
Stable.hs
# language UndecidableInstances , UndecidableSuperClasses # , UndecidableSuperClasses #-} module Haskerwaul.Relation.Equality.Stable ( module Haskerwaul.Relation.Equality.Stable -- * extended modules , module Haskerwaul.Relation.Equality ) where import Data.Bool (Bool) import...
null
https://raw.githubusercontent.com/sellout/haskerwaul/cf54bd7ce5bf4f3d1fd0d9d991dc733785b66a73/src/Haskerwaul/Relation/Equality/Stable.hs
haskell
* extended modules | [nLab](+equality)
# language UndecidableInstances , UndecidableSuperClasses # , UndecidableSuperClasses #-} module Haskerwaul.Relation.Equality.Stable ( module Haskerwaul.Relation.Equality.Stable , module Haskerwaul.Relation.Equality ) where import Data.Bool (Bool) import Data.Int (Int...
b29110eda7f6b073329a9064a3fb4f86fe2e3ec5a68b76f7258635485b3476ad
BU-CS320/Fall-2018
WarmUp.hs
module WarmUp where -- how to write good tests -- write a function that returns a number bigger than its input biggerNumber :: Integer -> Integer biggerNumber i = undefined
null
https://raw.githubusercontent.com/BU-CS320/Fall-2018/beec3ca88be5c5a62271a45c8053fb1b092e0af1/assignments/week5/hw/src/WarmUp.hs
haskell
how to write good tests write a function that returns a number bigger than its input
module WarmUp where biggerNumber :: Integer -> Integer biggerNumber i = undefined
6b3fc2430ea427f465d79662be79c7be67109ef10c530502e73bbc9e7178bf41
untangled-web/untangled-ui
components.cljs
(ns styles.components (:require [om.next :as om :refer-macros [defui]] [styles.util :as util :refer [to-cljs] :refer-macros [source->react defexample defarticle defview defviewport]] [untangled.ui.layout :as l] [untangled.icons :as icons] [om.dom :as dom] [u...
null
https://raw.githubusercontent.com/untangled-web/untangled-ui/ae101f90cd9b7bf5d0c80e9453595fdfe784923c/src/css-guide/styles/components.cljs
clojure
START OF EXAMPLES ------------------------- Avatar ------------------------- ------------------------- Badges ------------------------- ------------------------- Buttons ------------------------- ------------------------- Card ------------------------- -------------------...
(ns styles.components (:require [om.next :as om :refer-macros [defui]] [styles.util :as util :refer [to-cljs] :refer-macros [source->react defexample defarticle defview defviewport]] [untangled.ui.layout :as l] [untangled.icons :as icons] [om.dom :as dom] [u...
16552ed3163f744da08257580879630eb44f4e1f1b966184860c21b8b7266f14
NorfairKing/sydtest
SpecifySpec.hs
module Test.Syd.SpecifySpec (spec) where import Test.QuickCheck import Test.Syd spec :: Spec spec = sequential $ do describe "boolean" $ do it "boolean" True before (pure (2 :: Int)) $ it "boolean function (inner)" $ \i -> even i beforeAll (pure (2 :: Int)) $ do itWithOuter "boolean function...
null
https://raw.githubusercontent.com/NorfairKing/sydtest/0fad471cee677a4018acbe1983385dfc9a1b49d2/sydtest/test/Test/Syd/SpecifySpec.hs
haskell
module Test.Syd.SpecifySpec (spec) where import Test.QuickCheck import Test.Syd spec :: Spec spec = sequential $ do describe "boolean" $ do it "boolean" True before (pure (2 :: Int)) $ it "boolean function (inner)" $ \i -> even i beforeAll (pure (2 :: Int)) $ do itWithOuter "boolean function...
fa07f65b10344ac2cb3c36d52e34b06cafc2c5a7b99521ae0e61106fff9fa838
gdamore/tree-sitter-d
helix-indents.scm
[ (parameters) (template_parameters) (expression_statement) (aggregate_body) (function_body) (scope_statement) (block_statement) (case_statement) ] @indent [ (case) (default) "}" "]" ] @outdent
null
https://raw.githubusercontent.com/gdamore/tree-sitter-d/0f0fdd68dc03931c0a718d2b98f0bf85caf574a3/queries/helix-indents.scm
scheme
[ (parameters) (template_parameters) (expression_statement) (aggregate_body) (function_body) (scope_statement) (block_statement) (case_statement) ] @indent [ (case) (default) "}" "]" ] @outdent
1f4ffdc107b0e375b35467ec5c946426da1314575afabe74ebaad4ba67a11325
cstar/ejabberd-old
mod_configure.erl
%%%---------------------------------------------------------------------- File : Author : < > %%% Purpose : Support for online configuration of ejabberd Created : 19 Jan 2003 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2010 ProcessOne %%% %%% This program is free software; you can redistrib...
null
https://raw.githubusercontent.com/cstar/ejabberd-old/559f8b6b0a935710fe93e9afacb4270d6d6ea00f/src/mod_configure.erl
erlang
---------------------------------------------------------------------- Purpose : Support for online configuration of ejabberd 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...
File : Author : < > Created : 19 Jan 2003 by < > ejabberd , Copyright ( C ) 2002 - 2010 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...
bd2ab4d5bed85b1b13733f5b3b548497752e7696255d599991b5d5923dab0062
alura-cursos/clojure-mutabilidade-atomos-e-refs
core.clj
(ns hospital.core (:use [clojure pprint]) (:require [hospital.model :as h.model])) espera ESPERA 3 ; laboratorio1 3 ; laboratorio2 2 ; laboratorio3 (let [hospital-do-gui (h.model/novo-hospital)] (pprint hospital-do-gui)) (pprint h.model/fila-vazia)
null
https://raw.githubusercontent.com/alura-cursos/clojure-mutabilidade-atomos-e-refs/18c70bc13862df53377ac607b53b8f210f4239dd/aula6.2/hospital/src/hospital/core.clj
clojure
laboratorio1 3 laboratorio2 2 laboratorio3
(ns hospital.core (:use [clojure pprint]) (:require [hospital.model :as h.model])) espera ESPERA 3 (let [hospital-do-gui (h.model/novo-hospital)] (pprint hospital-do-gui)) (pprint h.model/fila-vazia)
59c9d1902868166d25770151e63e8f3ed531ed7a5e8e95deced9f754b00f77eb
erikd/hjsmin
hjsmin.hs
# LANGUAGE CPP # #include "cabal_macros.h" import qualified Data.ByteString.Lazy.Char8 as LBS import Options.Applicative (Parser, ParserInfo, ParserPrefs) import qualified Options.Applicative as Opt import Text.Jasmine (minify) import System.IO (hPutStrLn, stderr) import Syste...
null
https://raw.githubusercontent.com/erikd/hjsmin/2983d01c16f7a1d5659620b9b3cfc1ee883d2e81/main/hjsmin.hs
haskell
# LANGUAGE CPP # #include "cabal_macros.h" import qualified Data.ByteString.Lazy.Char8 as LBS import Options.Applicative (Parser, ParserInfo, ParserPrefs) import qualified Options.Applicative as Opt import Text.Jasmine (minify) import System.IO (hPutStrLn, stderr) import Syste...
2210b483ae6a8bb0ad5019c2d4580a0ae7e092c73d37c9041251045809ba02fc
korya/efuns
test12.ml
let _ = let x = if Random.int 100 > -10 then 3 else 3 in while x > 2 do Printf.printf "bonjour"; print_newline (); done
null
https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/inliner/tests/test12.ml
ocaml
let _ = let x = if Random.int 100 > -10 then 3 else 3 in while x > 2 do Printf.printf "bonjour"; print_newline (); done
13fce6cef65f799cca79affda8df76932567512724660d0ec101e4afa9d3b65f
portkey-cloud/aws-clj-sdk
codestar.clj
(ns portkey.aws.codestar (:require [portkey.aws])) (def endpoints '{"ap-northeast-1" {:credential-scope {:service "codestar", :region "ap-northeast-1"}, :ssl-common-name "codestar.ap-northeast-1.amazonaws.com", :endpoint "-northeast-1.amazonaws.com", :signature-version :v4}, "eu-west-1" {:creden...
null
https://raw.githubusercontent.com/portkey-cloud/aws-clj-sdk/10623a5c86bd56c8b312f56b76ae5ff52c26a945/src/portkey/aws/codestar.clj
clojure
(ns portkey.aws.codestar (:require [portkey.aws])) (def endpoints '{"ap-northeast-1" {:credential-scope {:service "codestar", :region "ap-northeast-1"}, :ssl-common-name "codestar.ap-northeast-1.amazonaws.com", :endpoint "-northeast-1.amazonaws.com", :signature-version :v4}, "eu-west-1" {:creden...
ff11ca96410d81c10f42e7ebe39bbe29c8bd82340fd9bedc90227c8469f840a8
jdevuyst/termcat
core_macros_cljs.clj
(ns termcat.core-macros-cljs (:require [cljs.core.match.macros :refer (match)] [clojure.core.reducers :as r] [termcat.term :as t] [termcat.rewrite :as rw])) (defmacro with-cache [cache & body] `(binding [rw/!*cache* ~cache] ~@body)) (defmacro window [init-state proj [& arg...
null
https://raw.githubusercontent.com/jdevuyst/termcat/5b4d89da67de89e6d62933c8c407e7a79ffdb0cb/src/clj/termcat/core_macros_cljs.clj
clojure
(ns termcat.core-macros-cljs (:require [cljs.core.match.macros :refer (match)] [clojure.core.reducers :as r] [termcat.term :as t] [termcat.rewrite :as rw])) (defmacro with-cache [cache & body] `(binding [rw/!*cache* ~cache] ~@body)) (defmacro window [init-state proj [& arg...
479439efe783c812bdd87d018ac63e66779295c5ed311842dc772a04eb0f86b3
haroldcarr/learn-haskell-coq-ml-etc
Lib.hs
{-# LANGUAGE OverloadedStrings #-} module Lib ( scottyMain ) where import Web.Scotty import Data.Monoid (mconcat) import Web.Scotty import Network.Wai.Middleware.RequestLogger -- install wai-extra if you don't have this import Control.Monad import Control.Monad.Trans import Data.Monoid import System.Random (...
null
https://raw.githubusercontent.com/haroldcarr/learn-haskell-coq-ml-etc/b4e83ec7c7af730de688b7376497b9f49dc24a0e/haskell/topic/web/scotty/01-basic-example/src/Lib.hs
haskell
# LANGUAGE OverloadedStrings # install wai-extra if you don't have this Add any WAI middleware, they are run top-down. get (function $ \req -> Just [("version", T.pack $ show $ httpVersion req)]) $ do v <- param "version" text v To demonstrate that routes are matched top-down. Using a parameter ...
module Lib ( scottyMain ) where import Web.Scotty import Data.Monoid (mconcat) import Web.Scotty import Control.Monad import Control.Monad.Trans import Data.Monoid import System.Random (newStdGen, randomRs) import Network.HTTP.Types (status302) import Data.Text.Lazy.Encoding (decodeUtf8) import Data.String (...
bdfdaf9e363cd39675f91050aaf5af1a4fac725f17c7dfa228c7cdf7c9751cbc
weblocks-framework/weblocks
twitter.lisp
;;;; A quick demo hack of a twitter user and/or friends timeline feed ;;;; widget. Depends on cl-twitter (cl.net) ;;;; ;;;; You have to authenticate a user before the widget will work correctly. (defwidget twitter-widget () ((history :accessor twitter-history :initarg :history :initform nil) (timeout :access...
null
https://raw.githubusercontent.com/weblocks-framework/weblocks/fe96152458c8eb54d74751b3201db42dafe1708b/contrib/ian/twitter.lisp
lisp
A quick demo hack of a twitter user and/or friends timeline feed widget. Depends on cl-twitter (cl.net) You have to authenticate a user before the widget will work correctly. Rendering
(defwidget twitter-widget () ((history :accessor twitter-history :initarg :history :initform nil) (timeout :accessor twitter-timeout :initarg :timeout :initform 300) (last-poll :accessor twitter-last-poll :initarg :last-poll :initform 0) (maxcount :accessor twitter-max-count :initarg :max :initform 100) ...
6d94218d002c73dbc635f333e9fc4a157dea81b16744a4027e3cf869bfe03cb3
jhgarner/Xest-Window-Manager
ActionTypes.hs
{-# LANGUAGE DeriveAnyClass #-} module Actions.ActionTypes where import Dhall (Interpret) import FocusList import Standard -- | Actions/events to be performed data Action = Insert | ChangeNamed Text | Move Direction | RunCommand Text | ChangeModeTo Mode | ShowWindow Text | HideWindow Text | ZoomInInp...
null
https://raw.githubusercontent.com/jhgarner/Xest-Window-Manager/d1e7640b70fea662508f99778535069e9c639517/src/Actions/ActionTypes.hs
haskell
# LANGUAGE DeriveAnyClass # | Actions/events to be performed | Modes similar to modes in vim
module Actions.ActionTypes where import Dhall (Interpret) import FocusList import Standard data Action = Insert | ChangeNamed Text | Move Direction | RunCommand Text | ChangeModeTo Mode | ShowWindow Text | HideWindow Text | ZoomInInput | ZoomOutInput | ZoomInMonitor | ZoomOutMonitor | ZoomMon...
ff9ceeff628693f08ed13f05a34af1d36f4fa129aa9922b92699863497765a6e
jacquev6/General
Parsable.ml
#include "../Generated/Traits/Parsable.ml" module Tests = struct include Tests_ module MakeExamples(M: Testable.S0)(E: Examples.S0 with type t := M.t) = E module MakeTests(M: Testable.S0)(E: Examples.S0 with type t := M.t) = struct open Testing open M let tests = ( E.literals |> List.f...
null
https://raw.githubusercontent.com/jacquev6/General/5237123668e939c0cb83aa3e1c4756473336bc7e/src/Traits/Parsable.ml
ocaml
#include "../Generated/Traits/Parsable.ml" module Tests = struct include Tests_ module MakeExamples(M: Testable.S0)(E: Examples.S0 with type t := M.t) = E module MakeTests(M: Testable.S0)(E: Examples.S0 with type t := M.t) = struct open Testing open M let tests = ( E.literals |> List.f...
5863dd6bcf3edf89b89e5a96f3d99de5f2681e5fcbbaf474652967f71efbd2c5
ekmett/haskell
Relative.hs
module Relative ( Relative(..) , RelativeSemigroup , RelativeMonoid ) where import Delta import Unaligned.Internal (Rev(..)) -------------------------------------------------------------------------------- -- * Interface -------------------------------------------------------------------------------- -- mono...
null
https://raw.githubusercontent.com/ekmett/haskell/37ad048531f5a3a13c6dfbf4772ee4325f0e4458/sequences/monoid-relative/Relative.hs
haskell
------------------------------------------------------------------------------ * Interface ------------------------------------------------------------------------------ monoid action | @rel d (a <> b) = rel d a <> rel d b@
module Relative ( Relative(..) , RelativeSemigroup , RelativeMonoid ) where import Delta import Unaligned.Internal (Rev(..)) class Relative a where rel :: Delta -> a -> a instance Relative a => Relative (Maybe a) where rel = fmap . rel class (Relative a, Semigroup a) => RelativeSemigroup a | @rel d ...
cc521e632661b4b6c13394827da8f36ddb949b7a31a8dad891c54a8b1553fa23
haskell/cabal
Variable.hs
module Distribution.Solver.Types.Variable where import Prelude (Eq, Show) import Distribution.Solver.Types.OptionalStanza import Distribution.PackageDescription (FlagName) -- | Variables used by the dependency solver. This type is similar to the internal ' Var ' type . data Variable qpn = PackageVar qpn | F...
null
https://raw.githubusercontent.com/haskell/cabal/6896c6aa0e4804913aaba0bbbe00649e18f17bb8/cabal-install-solver/src/Distribution/Solver/Types/Variable.hs
haskell
| Variables used by the dependency solver. This type is similar to the
module Distribution.Solver.Types.Variable where import Prelude (Eq, Show) import Distribution.Solver.Types.OptionalStanza import Distribution.PackageDescription (FlagName) internal ' Var ' type . data Variable qpn = PackageVar qpn | FlagVar qpn FlagName | StanzaVar qpn OptionalStanza deriving (Eq, Show)...
cd04adea15ad2258c0beab3d534f161f1a1d907e65d17777ecea24bd20cb6837
juspay/atlas
FarePolicy.hs
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/driver-offer-bpp/src/App/Routes/FarePolicy.hs
haskell
total
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
5f191bed393f4bf944ee75581a953ddf489435cf0cd2b94db906f3df0e488968
ekmett/algebra
Class.hs
# LANGUAGE TypeOperators # module Numeric.Additive.Class ( -- * Additive Semigroups Additive(..) , sum1 * Additive Abelian semigroups , Abelian -- * Additive Monoids , Idempotent , sinnum1pIdempotent -- * Partitionable semigroups , Partitionable(..) ) where import Data.Int import Data.Word i...
null
https://raw.githubusercontent.com/ekmett/algebra/12dd33e848f406dd53d19b69b4f14c93ba6e352b/src/Numeric/Additive/Class.hs
haskell
* Additive Semigroups * Additive Monoids * Partitionable semigroups | > (a + b) + c = a + (b + c) | partitionWith f c returns a list containing f a b for each a b such that a + b = c, | an additive abelian semigroup a + b = b + a | An additive semigroup with idempotent addition. > a + a = a
# LANGUAGE TypeOperators # module Numeric.Additive.Class ( Additive(..) , sum1 * Additive Abelian semigroups , Abelian , Idempotent , sinnum1pIdempotent , Partitionable(..) ) where import Data.Int import Data.Word import Data.Foldable hiding (concat) import Data.Semigroup.Foldable import Numeric.N...
253add24d2978b0e9ea39c271615e9074528582bacd11ad838f4a5c135853346
codecrafters-io/build-your-own-grep
Parser.hs
module Parser (parse, astToMatcher, AST(..)) where import qualified Text.Megaparsec as M import Text.Megaparsec.Char (char, digitChar) import Data.Void (Void) import Data.Maybe (fromMaybe, isNothing) import RegEx (M, posLit, negLit, emptyStrM, digitM, digitInverseM, alphaNumM, alphaNumInverseM, anyCharM, orM, andM, co...
null
https://raw.githubusercontent.com/codecrafters-io/build-your-own-grep/085a70404357c4abf11ff7c039cdf13181349e3c/solutions/haskell/06-combining_character_classes/code/src/Parser.hs
haskell
| Inverts an AST Char The regex parser starts here I had to adjust a few rules to support better parsing
module Parser (parse, astToMatcher, AST(..)) where import qualified Text.Megaparsec as M import Text.Megaparsec.Char (char, digitChar) import Data.Void (Void) import Data.Maybe (fromMaybe, isNothing) import RegEx (M, posLit, negLit, emptyStrM, digitM, digitInverseM, alphaNumM, alphaNumInverseM, anyCharM, orM, andM, co...
870d15c1a7f84f60b7c7360caa2acc2aaa05d0b9a39fab4e23527ed65d6bcf08
ivankelly/gambit
_num#.scm
;;;============================================================================ File : " _ num#.scm " , Time - stamp : < 2008 - 10 - 30 16:53:55 feeley > Copyright ( c ) 1994 - 2008 by , All Rights Reserved . ;;;============================================================================ ;;; Representation of...
null
https://raw.githubusercontent.com/ivankelly/gambit/7377246988d0982ceeb10f4249e96badf3ff9a8f/lib/_num%23.scm
scheme
============================================================================ ============================================================================ Representation of exceptions. ---------------------------------------------------------------------------- Define type checking macros. ============================...
File : " _ num#.scm " , Time - stamp : < 2008 - 10 - 30 16:53:55 feeley > Copyright ( c ) 1994 - 2008 by , All Rights Reserved . (define-library-type-of-exception range-exception id: 10aa6857-6f27-45ab-ac38-2318ef2f277c constructor: #f opaque: (procedure unprintable: read-only:) (arguments unprint...
358353bc7d6be8859c25f253df5931c793e3e498ebfc32318100888b3f3d0a10
metabase/metabase
annotate_test.clj
(ns metabase.query-processor.middleware.annotate-test (:require [clojure.test :refer :all] [medley.core :as m] [metabase.driver :as driver] [metabase.models :refer [Card Field]] [metabase.query-processor :as qp] [metabase.query-processor.middleware.annotate :as annotate] [metabase.query-processor...
null
https://raw.githubusercontent.com/metabase/metabase/7e3048bf73f6cb7527579446166d054292166163/test/metabase/query_processor/middleware/annotate_test.clj
clojure
+----------------------------------------------------------------------------------------------------------------+ | column-info (:native) | +--------------------------------------------------------------------------------------...
(ns metabase.query-processor.middleware.annotate-test (:require [clojure.test :refer :all] [medley.core :as m] [metabase.driver :as driver] [metabase.models :refer [Card Field]] [metabase.query-processor :as qp] [metabase.query-processor.middleware.annotate :as annotate] [metabase.query-processor...
6b02bf482b579776860a6975f167c515ef885d3464b07d59a6cc908bd1c594f4
nibbula/yew
where.lisp
;;; ;;; where.lisp - Where command. ;;; (defpackage :where (:documentation "Where command.") (:use :cl :dlib :collections #| :where-is |#) (:export #:where )) (in-package :where) (defun where (predicate sequence) "Return the items from sequence for which predicate returns true. Predicate can be a funct...
null
https://raw.githubusercontent.com/nibbula/yew/a62473dae637fb33a92aa75f260bf77b34cdbcfd/los/where.lisp
lisp
where.lisp - Where command. :where-is End
(defpackage :where (:documentation "Where command.") (:export #:where )) (in-package :where) (defun where (predicate sequence) "Return the items from sequence for which predicate returns true. Predicate can be a function of one argument, or a list which which is the body of a function of the argument ‘_’....
e01490fe0c689575b79bceffe05ff11dd7552dcc9f59836c3754d54284ed8fca
souenzzo/souenzzo.github.io
rgt.cljc
(ns br.com.souenzzo.rgt (:require [clojure.string :as string]) #?(:clj (:import (clojure.lang Keyword)))) (defn render-properties [attr] (let [kvs (for [[k v] (dissoc attr :key :on-click) :when (some? v)] [(name k) (pr-str v)])] (when (seq kvs) (string/join " " (cons "...
null
https://raw.githubusercontent.com/souenzzo/souenzzo.github.io/30a811c4e5633ad07bba1d58d19eb091dac222e9/projects/rgt/src/br/com/souenzzo/rgt.cljc
clojure
(ns br.com.souenzzo.rgt (:require [clojure.string :as string]) #?(:clj (:import (clojure.lang Keyword)))) (defn render-properties [attr] (let [kvs (for [[k v] (dissoc attr :key :on-click) :when (some? v)] [(name k) (pr-str v)])] (when (seq kvs) (string/join " " (cons "...
139c3538e98ac737c2a1bc4f6d5f05bf3f57c42f270970a7004dad9d2d938227
weyrick/roadsend-php
php-skeleton.scm
;; ***** BEGIN LICENSE BLOCK ***** Roadsend PHP Compiler Runtime Libraries Copyright ( C ) 2008 Roadsend , Inc. ;; ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 2....
null
https://raw.githubusercontent.com/weyrick/roadsend-php/d6301a897b1a02d7a85bdb915bea91d0991eb158/runtime/ext/skeleton/php-skeleton.scm
scheme
***** BEGIN LICENSE BLOCK ***** This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License either version 2.1 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER...
Roadsend PHP Compiler Runtime Libraries Copyright ( C ) 2008 Roadsend , Inc. of the License , or ( at your option ) any later version . GNU Lesser General Public License for more details . You should have received a copy of the GNU Lesser General Public License Foundation , Inc. , 51 Franklin Street , Fifth...
fa0c671a6efc81c4d7a6cf1b95dfb1f97e98ba0b0ea3aee3b119ee59a17eef74
aeden/learn-you-some-erlang
event.erl
-module(event). -compile(export_all). -record(state, {server, name="", to_go=0}). loop(S = #state{server=Server, to_go=[T|Next]}) -> receive {Server, Ref, cancel} -> Server ! {Ref, ok} after T*1000 -> if Next =:= [] -> Server ! {done, S#state.name}; Next =/= [] -> ...
null
https://raw.githubusercontent.com/aeden/learn-you-some-erlang/b72efc8617de7ec129cc31e5d504aa0bac7964ea/event_app/src/event.erl
erlang
Event's innards
-module(event). -compile(export_all). -record(state, {server, name="", to_go=0}). loop(S = #state{server=Server, to_go=[T|Next]}) -> receive {Server, Ref, cancel} -> Server ! {Ref, ok} after T*1000 -> if Next =:= [] -> Server ! {done, S#state.name}; Next =/= [] -> ...
6ae1a0d35b9880b8ee23a590845f1ead13c11e448b03cf2d1c4e1054305433bc
kloimhardt/clj-tiles
tutorials_advent1.cljs
(ns cljtiles.tutorials-advent1 (:require [cljtiles.codeexplode :as explode] [clojure.string :as str] [cljtiles.utils :as utils] [cljs.reader :as edn] [clojure.walk :as walk])) (defn read-tuts [txt] (let [src-split-1 (str/split (str txt "\n") #"\#\+end_src") r...
null
https://raw.githubusercontent.com/kloimhardt/clj-tiles/18c2e06886cc8131ef694ec92dcabf2c78af2462/src/cljtiles/tutorials_advent1.cljs
clojure
some random keywords used as marker remove comment lines remove last newline
(ns cljtiles.tutorials-advent1 (:require [cljtiles.codeexplode :as explode] [clojure.string :as str] [cljtiles.utils :as utils] [cljs.reader :as edn] [clojure.walk :as walk])) (defn read-tuts [txt] (let [src-split-1 (str/split (str txt "\n") #"\#\+end_src") r...
e09f1dfbb4e10a932cb42dd6a3c5bb0ba13da6595efbeeb066493f9d5649f279
wdebeaum/step
boxer.lisp
;;;; ;;;; w::boxer ;;;; (define-words :pos W::n :words ( ((w::boxer w::shorts) (senses ((LF-PARENT ONT::attire) (meta-data :origin caloy3 :entry-date 20070330 :change-date nil :comments nil) ;(TEMPL mass-PRED-TEMPL) (TEMPL COUNT-PRED-3p-TEMPL) (syntax (W::morph (:forms (-none)))) ) ) ) )...
null
https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/LexiconManager/Data/new/boxer.lisp
lisp
w::boxer (TEMPL mass-PRED-TEMPL)
(define-words :pos W::n :words ( ((w::boxer w::shorts) (senses ((LF-PARENT ONT::attire) (meta-data :origin caloy3 :entry-date 20070330 :change-date nil :comments nil) (TEMPL COUNT-PRED-3p-TEMPL) (syntax (W::morph (:forms (-none)))) ) ) ) ))
a1a1b93d9b3488c806b22ee576b91a2a46da2fc8c381b80e8d2d046704e90f64
rescript-lang/rescript-compiler
belt_Option.mli
Copyright ( C ) 2017 Authors of ReScript * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later version ....
null
https://raw.githubusercontent.com/rescript-lang/rescript-compiler/c3fcc430360079546a6aabd2b2770303480f8486/jscomp/others/belt_Option.mli
ocaml
* `getUnsafe(x)` returns `x` This is an unsafe operation, it assumes `x` is neither `None` nor `Some(None(...)))` * Returns `true` if the argument is `Some(value)`, `false` otherwise. ```res example Belt.Option.isSome(None) /* false */ Belt.Option.isSome(Some(1)) /* true */ ```
Copyright ( C ) 2017 Authors of ReScript * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later version ....
c2cc902a3650ddbda6ed6fa4d6b442677616281614c47ade7be2205eabfbaa5f
the-little-typer/pie
pie-err.rkt
#lang racket/base (require racket/string racket/port racket/match) (require "locations.rkt") (require "resugar.rkt") (require "pretty.rkt") (provide (all-defined-out)) (struct exn:fail:pie exn:fail (where) #:property prop:exn:srclocs (lambda (e) (match (exn:fail:pie-where e) [(list raw-src line col pos ...
null
https://raw.githubusercontent.com/the-little-typer/pie/a698d4cacd6823b5161221596d34bd17ce5282b8/pie-err.rkt
racket
return an actual path for the source when the source string corresponds to a valid file on the user's machine.
#lang racket/base (require racket/string racket/port racket/match) (require "locations.rkt") (require "resugar.rkt") (require "pretty.rkt") (provide (all-defined-out)) (struct exn:fail:pie exn:fail (where) #:property prop:exn:srclocs (lambda (e) (match (exn:fail:pie-where e) [(list raw-src line col pos ...
bafc6e59005d7b4b98e72bc27f95560fa8e16060a486e2f0271c8e15c07ceba3
dakrone/clj-http
core_old.clj
(ns clj-http.core-old "Core HTTP request/response implementation." (:require [clj-http.conn-mgr :as conn] [clj-http.headers :as headers] [clj-http.multipart :as mp] [clj-http.util :refer [opt]] clojure.pprint) (:import [java.io ByteArrayOutputStream FilterInputStrea...
null
https://raw.githubusercontent.com/dakrone/clj-http/dd15359451645f677b3e294164cf70330b92241d/src/clj_http/core_old.clj
clojure
Eliminate the reflection warning from proxy-super deprecated merge in map of specified timeouts, to support backward compatibility.
(ns clj-http.core-old "Core HTTP request/response implementation." (:require [clj-http.conn-mgr :as conn] [clj-http.headers :as headers] [clj-http.multipart :as mp] [clj-http.util :refer [opt]] clojure.pprint) (:import [java.io ByteArrayOutputStream FilterInputStrea...
49532febd25b0f449530a06c88dbcedd353abb530ec75f23f028a0d9c06b780b
owainlewis/clojure-mail
message_test.clj
(ns clojure-mail.message-test (:require [clojure.test :refer :all] [clojure-mail.message :refer :all] [clojure-mail.core :refer [file->message]] [clojure.java.io :as io])) (defn load-fixture [fixture] (->> (str "emails/" fixture) io/resource io/file file->message)) (def fixture...
null
https://raw.githubusercontent.com/owainlewis/clojure-mail/8e792f5fdda2d38d5ce1fe90082c7859e66ab9a7/test/clojure_mail/message_test.clj
clojure
(ns clojure-mail.message-test (:require [clojure.test :refer :all] [clojure-mail.message :refer :all] [clojure-mail.core :refer [file->message]] [clojure.java.io :as io])) (defn load-fixture [fixture] (->> (str "emails/" fixture) io/resource io/file file->message)) (def fixture...
bdd8c1c988644ebd8ab5eeecbc2d57bd5091238371518c367f06a8ebbeb6ef48
tanders/cluster-engine
bugs.lisp
;;; Examples that seem to show bugs
null
https://raw.githubusercontent.com/tanders/cluster-engine/064ad4fd107f8d9a3dfcaf260524c2ab034c6d3f/test_files/bugs.lisp
lisp
Examples that seem to show bugs
c0f212025f2c65a4868dff0ab9df255f140f2a9c4783233feaf6024e5eb6a622
ocaml-community/ocamlscript
calc.ml
Ocaml.sources := ["parser.mly"; "lexer.mll"] -- (* Calculator example from the Objective Caml reference manual *) (* File calc.ml *) let _ = try let lexbuf = Lexing.from_channel stdin in while true do let result = Parser.main Lexer.token lexbuf in print_int result; print_newline(); flush stdout ...
null
https://raw.githubusercontent.com/ocaml-community/ocamlscript/df0f04d7e41655944bd14e6989dd695425e5f871/examples/calc.ml
ocaml
Calculator example from the Objective Caml reference manual File calc.ml
Ocaml.sources := ["parser.mly"; "lexer.mll"] -- let _ = try let lexbuf = Lexing.from_channel stdin in while true do let result = Parser.main Lexer.token lexbuf in print_int result; print_newline(); flush stdout done with Lexer.Eof -> exit 0
10d8ca2142630b99025398d88cc224e16948ed1f855ab0c15148d24ea5d80eda
janestreet/bonsai
bonsai_web_ui_query_box.mli
open! Core open Bonsai_web * A textbox with suggested results , modeled off of Chrome 's address bar . - " Enter " invokes [ on_select ] with the selected suggestion . If the suggestion list is closed , the callback is not invoked , because of course nothing is selected ; instead the suggestion ...
null
https://raw.githubusercontent.com/janestreet/bonsai/34430405574a4de68835f1010c22f9ac18dfffb6/web_ui/query_box/src/bonsai_web_ui_query_box.mli
ocaml
* When set to Transient, the suggestion-list only shows up when the textbox is focused, and the list will float over other items on the page. * Permanent will make the suggestion-list always present, and it will take up space during the layout of the application. * The value defaults to Transie...
open! Core open Bonsai_web * A textbox with suggested results , modeled off of Chrome 's address bar . - " Enter " invokes [ on_select ] with the selected suggestion . If the suggestion list is closed , the callback is not invoked , because of course nothing is selected ; instead the suggestion ...
253fb9a601e4d298bc5163a79d4f78dddea81225c2746890cd4b3cb06165e863
erlang/otp
beam_validator.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2004 - 2023 . 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 of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/erlang/otp/8bd51c239d39923846936e00b8e52f4265d5e7b3/lib/compiler/src/beam_validator.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2004 - 2023 . 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(beam_validator). -include("beam_asm.hrl"). -define(UNICODE_MAX, (16#10FFFF)). -define(EXCEPTION_LABEL, 0)...
00776d55a8f1da9ad09be7dcc24dbccdaaa4ff9005de623a07c8cd89b8230f5c
jellelicht/guix
upstream.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2010 , 2011 , 2012 , 2013 , 2014 , 2015 , 2016 < > Copyright © 2015 < > ;;; ;;; 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 publis...
null
https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/guix/upstream.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 © 2010 , 2011 , 2012 , 2013 , 2014 , 2015 , 2016 < > Copyright © 2015 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (guix upstream) #:use-module ...
479fb708d7f2910b2dd3e94cece348dbf42a33707ec1ee53d23c53338e417d6b
AshleyYakeley/Truth
Ordered.hs
module Changes.Core.Types.List.Ordered where import Changes.Core.Edit import Changes.Core.Import import Changes.Core.Lens import Changes.Core.Read import Changes.Core.Sequence import Changes.Core.Types.List.Edit import Changes.Core.Types.List.Read import Changes.Core.Types.List.Update import Changes.Core.Types.None im...
null
https://raw.githubusercontent.com/AshleyYakeley/Truth/2817d5e36bd1dc5de932d808026098b6c35e7185/Changes/changes-core/lib/Changes/Core/Types/List/Ordered.hs
haskell
| Like ListEdit, except without a way of adding new elements. This is what both lists and unordered sets presented in some order have in common. already checks bounds no "instance IsUpdate OrderedListUpdate", because we cannot calculate moves without knowing the order | prevents creation of the element | prevents...
module Changes.Core.Types.List.Ordered where import Changes.Core.Edit import Changes.Core.Import import Changes.Core.Lens import Changes.Core.Read import Changes.Core.Sequence import Changes.Core.Types.List.Edit import Changes.Core.Types.List.Read import Changes.Core.Types.List.Update import Changes.Core.Types.None im...
1da6f45bb2a309d019779a8783e86e5557579f9c6fe441874844756bddea6028
lopec/LoPEC
chronicler_app.erl
%%%------------------------------------------------------------------- @private @author < > ( C ) 2009 , Clusterbusters %%% @doc The logger client is responsible for all the logging in the system. %%% @end Created : 29 Sep 2009 by < > %%%-------------------------------------------------------------------...
null
https://raw.githubusercontent.com/lopec/LoPEC/29a3989c48a60e5990615dea17bad9d24d770f7b/branches/stable-1/lib/chronicler/src/chronicler_app.erl
erlang
------------------------------------------------------------------- @doc The logger client is responsible for all the logging in the system. @end ------------------------------------------------------------------- Application callbacks -------------------------------------------------------------------- @doc This ...
@private @author < > ( C ) 2009 , Clusterbusters Created : 29 Sep 2009 by < > -module(chronicler_app). -behaviour(application). -export([start/2, stop/1]). application : start/[1,2 ] , and should start the processes of the @spec start(StartType , ) - > { ok , Pid } | = term ( ) start(_Type...
344d0a210c89c062921ad77f1f35e14aedafa0b21800f11992bb6c7e16dab9ee
luminus-framework/examples
nrepl.clj
(ns multi-client-ws-immutant.nrepl (:require [nrepl.server :as nrepl] [clojure.tools.logging :as log])) (defn start "Start a network repl for debugging on specified port followed by an optional parameters map. The :bind, :transport-fn, :handler, :ack-port and :greeting-fn will be forwarded to clojure...
null
https://raw.githubusercontent.com/luminus-framework/examples/cbeee2fef8f457a6a6bac2cae0b640370ae2499b/multi-client-ws-immutant/src/clj/multi_client_ws_immutant/nrepl.clj
clojure
(ns multi-client-ws-immutant.nrepl (:require [nrepl.server :as nrepl] [clojure.tools.logging :as log])) (defn start "Start a network repl for debugging on specified port followed by an optional parameters map. The :bind, :transport-fn, :handler, :ack-port and :greeting-fn will be forwarded to clojure...
e69d34646aabbc8b86c552d3ce72f4a47a942ed383c7c91478bc2f8633f0ec50
helvm/helma
FileExtra.hs
module HelVM.HelMA.Automata.WhiteSpace.FileExtra ( readWsFile, readStnFile, readExtFile, buildAbsoluteWsFileName, buildAbsoluteStnFileName, buildAbsoluteWsIlFileName, buildAbsoluteWsOutFileName, buildAbsoluteWsLogFileName, tokenTypeToExt, showAscii, options, ) where import HelVM.HelMA.A...
null
https://raw.githubusercontent.com/helvm/helma/36287506200d330cd6013a5517a8124380af5e97/hs/test/HelVM/HelMA/Automata/WhiteSpace/FileExtra.hs
haskell
module HelVM.HelMA.Automata.WhiteSpace.FileExtra ( readWsFile, readStnFile, readExtFile, buildAbsoluteWsFileName, buildAbsoluteStnFileName, buildAbsoluteWsIlFileName, buildAbsoluteWsOutFileName, buildAbsoluteWsLogFileName, tokenTypeToExt, showAscii, options, ) where import HelVM.HelMA.A...
3f97a2839ebc3b6ea9ca59c00a204a356aae33c0e42b1a88979a6852e911c661
mitsuchi/mud
Spec.hs
module Main where import qualified Lib import System.IO.Unsafe import qualified Test.Framework as Test import qualified Test.Framework.Providers.HUnit as Test import Test.HUnit main :: IO () main = do Test.defaultMain $ Test.hUnitTestToTests $ TestList [ "0" ~=? pe "0",...
null
https://raw.githubusercontent.com/mitsuchi/mud/48c08a2847b6f3efcef598806682da7efca2449d/test/Spec.hs
haskell
module Main where import qualified Lib import System.IO.Unsafe import qualified Test.Framework as Test import qualified Test.Framework.Providers.HUnit as Test import Test.HUnit main :: IO () main = do Test.defaultMain $ Test.hUnitTestToTests $ TestList [ "0" ~=? pe "0",...
89ed142108c312e7ce7ca66461b22279265d73c20173447d8df0f4d3cb7dbf93
nomeata/arbtt
TimeLog.hs
# LANGUAGE CPP # # LANGUAGE PatternGuards # module TimeLog where import Data import Control.Applicative import System.IO import Control.Concurrent import Control.Monad import Data.Time import Data.Binary import Data.Binary.StringRef import Data.Binary.Get import Data.Function import Data.Char import System.Directory ...
null
https://raw.githubusercontent.com/nomeata/arbtt/85437e00de45db38c8778cb13d778ff20c0ecc54/src/TimeLog.hs
haskell
| Runs the given action each delay milliseconds and appends the TimeLog to the given file. | This might be very bad style, and it hogs memory, but it might help in some situations... Use of unsafeInterleaveIO should be replaced by conduit, pipe or something the like
# LANGUAGE CPP # # LANGUAGE PatternGuards # module TimeLog where import Data import Control.Applicative import System.IO import Control.Concurrent import Control.Monad import Data.Time import Data.Binary import Data.Binary.StringRef import Data.Binary.Get import Data.Function import Data.Char import System.Directory ...
2583a2c00e88ffb3700148cf8f1728786a42157c428c338c4d14ec3ed19b11a0
rwmjones/guestfs-tools
setlocale.ml
virt - builder * Copyright ( C ) 2014 Red Hat Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option ) any later ver...
null
https://raw.githubusercontent.com/rwmjones/guestfs-tools/57423d907270526ea664ff15601cce956353820e/builder/setlocale.ml
ocaml
virt - builder * Copyright ( C ) 2014 Red Hat Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option ) any later ver...
45f47d488992ea89441754b55c90e77fbd66d7d7269d3cbd730231baa03fcad3
thelema/ocaml-community
hello.ml
(***********************************************************************) (* *) MLTk , Tcl / Tk interface of OCaml (* *) , , and ...
null
https://raw.githubusercontent.com/thelema/ocaml-community/ed0a2424bbf13d1b33292725e089f0d7ba94b540/otherlibs/labltk/examples_labltk/hello.ml
ocaml
********************************************************************* described in file LICENSE found in the...
MLTk , Tcl / Tk interface of OCaml , , and projet Cristal , INRIA Rocquencourt , Kyoto University RIMS Copyright 2002 Institut National de Recherche en Informatique et en Automatique and...
6f369cebb78fa34294453d135b8837ca546f74641d10f9da743d85230a073921
ninjudd/cake
bar.clj
(ns bar (:refer-clojure :exclude [inc])) (defn foo [] (println "this is a bar, FOO!")) (defn bar [] 8) (defn bar-inc [n] (+ 2 n))
null
https://raw.githubusercontent.com/ninjudd/cake/3a1627120b74e425ab21aa4d1b263be09e945cfd/examples/test/src/bar.clj
clojure
(ns bar (:refer-clojure :exclude [inc])) (defn foo [] (println "this is a bar, FOO!")) (defn bar [] 8) (defn bar-inc [n] (+ 2 n))
1904065d20c07927107e5d0264fc7c6cb9ed6d5ad3ffe598359a0f66e62000ac
jeromesimeon/Galax
alg_stream_project.ml
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/projection/alg_stream_project.ml
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ I d : alg_stream_project.ml , v 1.2 2007/02/01 22:08:52 simeon Exp $ open Error open Streaming_types open Streaming_util open Streaming_ops open Ast_path_struct open Alg_path_structutil open Alg_project_context let project_attributes o...
910005b4d46d7c3223440354debe442b1f7d84e451ee85b9f4a76b57577a8413
swtwsk/vinci-lang
DList.hs
# LANGUAGE FlexibleContexts # module Utils.DList (output) where import Control.Monad.Writer (MonadWriter, tell) import Data.DList (DList, singleton) output :: (Monad m, MonadWriter (DList a) m) => a -> m () output = tell . singleton
null
https://raw.githubusercontent.com/swtwsk/vinci-lang/9c7e01953e0b1cf135af7188e0c71fe6195bdfa1/src/Utils/DList.hs
haskell
# LANGUAGE FlexibleContexts # module Utils.DList (output) where import Control.Monad.Writer (MonadWriter, tell) import Data.DList (DList, singleton) output :: (Monad m, MonadWriter (DList a) m) => a -> m () output = tell . singleton
add32bddec6e897cb66e43e3d1dc80ed54a3e5231629fa005e9c380ed2860d6b
Naproche-SAD/Naproche-SAD
Main.hs
Authors : ( 2001 - 2008 ) , ( 2017 - 2018 ) , ( 2018 ) Main application entry point : console or server mode . Authors: Andrei Paskevich (2001 - 2008), Steffen Frerix (2017 - 2018), Makarius Wenzel (2018) Main application entry point: console or server mode. -} # LANGUAGE TupleSections # # LANGUAGE Lambd...
null
https://raw.githubusercontent.com/Naproche-SAD/Naproche-SAD/da131a6eaf65d4e02e82082a50a4febb6d42db3d/app/Main.hs
haskell
command line and init file main body with explicit error handling, notably for PIDE parse input text if -T / --onlytranslate is passed as an option, only print the translated text print statistics read provers.dat initialize reasoner state print statistics Command line parsing
Authors : ( 2001 - 2008 ) , ( 2017 - 2018 ) , ( 2018 ) Main application entry point : console or server mode . Authors: Andrei Paskevich (2001 - 2008), Steffen Frerix (2017 - 2018), Makarius Wenzel (2018) Main application entry point: console or server mode. -} # LANGUAGE TupleSections # # LANGUAGE Lambd...
f73fe3151b58577f6b1fc5508805cf0cf8a03046e37878b2c9d66316406986b9
softlab-ntua/bencherl
dialyzer_gui_wx.erl
-*- erlang - indent - level : 2 -*- %%------------------------------------------------------------------------ %% %CopyrightBegin% %% Copyright Ericsson AB 2009 - 2012 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not ...
null
https://raw.githubusercontent.com/softlab-ntua/bencherl/317bdbf348def0b2f9ed32cb6621e21083b7e0ca/app/dialyzer/src/dialyzer_gui_wx.erl
erlang
------------------------------------------------------------------------ %CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. S...
-*- erlang - indent - level : 2 -*- Copyright Ericsson AB 2009 - 2012 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " Au...
a53630043984504084c391b8b69e85336fb454e147188ee1f3f1385a4a1cd6bc
btq-ag/keelung
Field.hs
# LANGUAGE DataKinds # {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleInstances # {-# LANGUAGE RankNTypes #-} -- | Field types provided by the compiler module Keelung.Field ( B64, GF181, BN128, FieldType (..), realizeAs, normalize, module Keelung.Data.N, ) whe...
null
https://raw.githubusercontent.com/btq-ag/keelung/930c265d6fa0ccfbce6aad473b7396a250ddb0d1/src/Keelung/Field.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE RankNTypes # | Field types provided by the compiler ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ | Field types provided by the compiler | Utility function for normal...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleInstances # module Keelung.Field ( B64, GF181, BN128, FieldType (..), realizeAs, normalize, module Keelung.Data.N, ) where import Control.DeepSeq (NFData) import Data.Field.Galois (Binary, Prime) import Data.Serialize (Se...
1eb27ad3de3e6c47056ad4706460b42c38115a2ab04a127b56da1f1152451557
TrustInSoft/tis-kernel
binary_cache.mli
(**************************************************************************) (* *) This file is part of . (* *) is a fork of Frama - C. Al...
null
https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/libraries/utils/binary_cache.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 ...
b634b618b7a256c93874e5f5a71106ccb1904831b7d44ae8e28478b2b4d23952
jcfaracco/lispvirt
lispvirt-tests-connection.lisp
;;;------------------------------------------------------------------------- Lispvirt - Common LISP bindings for Libvirt . ;;; Copyright ( C ) 2015 ;;; lispvirt-tests-connection.lisp is part of Lispvirt . ;;; Lispvirt is free software : you can redistribute it and/or modify it under the terms of the GNU Ge...
null
https://raw.githubusercontent.com/jcfaracco/lispvirt/568495b00bb19b46a40f4669b8b21395e5f5fe74/tests/lispvirt-tests-connection.lisp
lisp
------------------------------------------------------------------------- (at your option) any later version. but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -------------------------------...
Lispvirt - Common LISP bindings for Libvirt . Copyright ( C ) 2015 lispvirt-tests-connection.lisp is part of Lispvirt . Lispvirt 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...
d141fb066bcfe3eb29a00562f99a8b19a95bcfd398829bd13781f31646c97fd6
jcomellas/bstr
bstr.erl
%%%------------------------------------------------------------------- @author < > @author < > 2008 - 2011 , . @doc String implemented over an Erlang binary . %%% @end This source file is subject to the New BSD License . You should have received %%% a copy of the New BSD license with this s...
null
https://raw.githubusercontent.com/jcomellas/bstr/609ba263df6b940b4d7f66ac2768f73ac9e17e0e/src/bstr.erl
erlang
------------------------------------------------------------------- @end a copy of the New BSD license with this software. If not, it can be retrieved from: -license.php ------------------------------------------------------------------- @doc Return the length of a string. @doc Return the character in the nth pos...
@author < > @author < > 2008 - 2011 , . @doc String implemented over an Erlang binary . This source file is subject to the New BSD License . You should have received -module(bstr). -author('Juan Jose Comellas <>'). -author('Mahesh Paolini-Subramanya <>'). -export([ bstr/1 , chomp/...
39822788439c2de68a4c7e1f3d875ee104b6a7adb3a2949dd42c456a5cf4f2c8
bcc32/projecteuler-ocaml
test_digits.ml
open! Core open! Import let%test_unit "basic round tripping" = let check_round_trip (n, digits) = [%test_result: int] ~expect:n (Number_theory.Int.As_base10.of_list digits); [%test_result: int list] ~expect:digits (Number_theory.Int.As_base10.to_list n) in let digits_through_string n = n |> Int.to_st...
null
https://raw.githubusercontent.com/bcc32/projecteuler-ocaml/712f85902c70adc1ec13dcbbee456c8bfa8450b2/test/test_digits.ml
ocaml
* [quickcheck_generator] should generate pairs of [(int, digits)] where [digits] corresponds to the digits of [int] in the order specified by [M]. Don't bother testing functions that are produced by the functor. They are probably correct.
open! Core open! Import let%test_unit "basic round tripping" = let check_round_trip (n, digits) = [%test_result: int] ~expect:n (Number_theory.Int.As_base10.of_list digits); [%test_result: int list] ~expect:digits (Number_theory.Int.As_base10.to_list n) in let digits_through_string n = n |> Int.to_st...
38b6bb51299c8869a4474490ad9504af92aae15d40ae3260dc5343adf7816e19
DrTom/clj-pg-types
arrays_test.clj
(ns pg-types.arrays-test (:require [pg-types.connection :refer :all] [pg-types.all] [clojure.java.jdbc :as jdbc] [clojure.test :refer :all] [java-time])) (def db-spec (env-db-spec)) (deftest arrays (jdbc/with-db-transaction [tx db-spec] (jdbc/db-do-commands tx "CREATE TEMP TABLE test ...
null
https://raw.githubusercontent.com/DrTom/clj-pg-types/d847735c46b2da173fd50a6ebe492bead0d75dd5/test/pg_types/arrays_test.clj
clojure
(ns pg-types.arrays-test (:require [pg-types.connection :refer :all] [pg-types.all] [clojure.java.jdbc :as jdbc] [clojure.test :refer :all] [java-time])) (def db-spec (env-db-spec)) (deftest arrays (jdbc/with-db-transaction [tx db-spec] (jdbc/db-do-commands tx "CREATE TEMP TABLE test ...
1827811879dbefaf262c13beb5a35d5d062c23c81fc37432c4e4d20d64fa8d8c
gadfly361/reagent-figwheel
bundle.cljs
(ns {{ns-name}}.pages.bundle (:require [bide.core :as bide] [{{ns-name}}.models.app.navigation.model :as nav-model] [{{ns-name}}.pages.home.bundle :as home] [{{ns-name}}.pages.about.bundle :as about] [{{ns-name}}.pages.not-found.bundle :as not-found] )) (def bundles {:home home/main :abo...
null
https://raw.githubusercontent.com/gadfly361/reagent-figwheel/4c40657b31a2b358be5697add2e96e8cac6f8535/src/leiningen/new/reagent_figwheel/gadfly/src/app/pages/bundle.cljs
clojure
(ns {{ns-name}}.pages.bundle (:require [bide.core :as bide] [{{ns-name}}.models.app.navigation.model :as nav-model] [{{ns-name}}.pages.home.bundle :as home] [{{ns-name}}.pages.about.bundle :as about] [{{ns-name}}.pages.not-found.bundle :as not-found] )) (def bundles {:home home/main :abo...
6d822c486adc97c42254449729187beca802ea651969f2e7294450cc8ba00354
rmculpepper/crypto
main.rkt
Copyright 2020 SPDX - License - Identifier : Apache-2.0 #lang racket/base (require racket/contract/base racket/lazy-require "private/interfaces.rkt" "private/cert.rkt" "private/store.rkt") (lazy-require ["private/revocation.rkt" (make-revocation-checker)]) (prov...
null
https://raw.githubusercontent.com/rmculpepper/crypto/75138461a74d6b4bc26c65e981ccfba6b60719de/x509-lib/main.rkt
racket
Copyright 2020 SPDX - License - Identifier : Apache-2.0 #lang racket/base (require racket/contract/base racket/lazy-require "private/interfaces.rkt" "private/cert.rkt" "private/store.rkt") (lazy-require ["private/revocation.rkt" (make-revocation-checker)]) (prov...
db5aac9bdc0832bd83e7f90bc9db26e9872196f84746898753ca6c5b3e50b010
TempusMUD/cl-tempus
editor.lisp
(in-package #:tempus) (defclass editor () ((target :accessor target-of :initarg :target) (target-desc :accessor target-desc-of :initarg :target-desc) (old-buffer :accessor old-buffer-of :initarg :old-buffer) (buffer :accessor buffer-of :initarg :buffer :initform '()) (state :accessor state-of :initform '...
null
https://raw.githubusercontent.com/TempusMUD/cl-tempus/c5008c8d782ba44373d89b77c23abaefec3aa6ff/src/support/editor.lisp
lisp
(in-package #:tempus) (defclass editor () ((target :accessor target-of :initarg :target) (target-desc :accessor target-desc-of :initarg :target-desc) (old-buffer :accessor old-buffer-of :initarg :old-buffer) (buffer :accessor buffer-of :initarg :buffer :initform '()) (state :accessor state-of :initform '...
0faa444de849cd6f0e02a037c36586adb60cbefffecd53543675f02239c86d45
cedlemo/OCaml-GI-ctypes-bindings-generator
Handle_box.ml
open Ctypes open Foreign type t = unit ptr let t_typ : t typ = ptr void let create = foreign "gtk_handle_box_new" (void @-> returning (ptr Widget.t_typ)) let get_child_detached = foreign "gtk_handle_box_get_child_detached" (t_typ @-> returning (bool)) let get_handle_position = foreign "gtk_handle_box_get_handle...
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Handle_box.ml
ocaml
open Ctypes open Foreign type t = unit ptr let t_typ : t typ = ptr void let create = foreign "gtk_handle_box_new" (void @-> returning (ptr Widget.t_typ)) let get_child_detached = foreign "gtk_handle_box_get_child_detached" (t_typ @-> returning (bool)) let get_handle_position = foreign "gtk_handle_box_get_handle...
405db0171ca79b4743255ad173dbc7a1d08c1d329f4a454906bcb7cade8d423e
vrnithinkumar/ETC
simple_return.erl
-module(simple_return). -spec foo(integer()) -> boolean(). foo (42) -> X = false, X and true.
null
https://raw.githubusercontent.com/vrnithinkumar/ETC/5e5806975fe96a902dab830a0c8caadc5d61e62b/testsuit/test_cases/simple_return.erl
erlang
-module(simple_return). -spec foo(integer()) -> boolean(). foo (42) -> X = false, X and true.
ede705289566c8037f9e3995ab8739696c692e0fa9a1c59508c5e001fa914b31
grin-compiler/ghc-wpc-sample-programs
PrimType.hs
Module : Basement . -- License : BSD-style Maintainer : < > -- Stability : experimental -- Portability : portable -- # LANGUAGE DataKinds # # LANGUAGE MagicHash # # LANGUAGE UnboxedTuples # # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # LANGUAGE CPP # module Basement.PrimType ...
null
https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/basement-0.0.11/Basement/PrimType.hs
haskell
License : BSD-style Stability : experimental Portability : portable # INLINE primBaIndex # Types need to be a instance of storable and have fixed sized. | type level size of the given `ty` | get the size in bytes of a ty element | get the shift size --- --- | return the element stored at a specific inde...
Module : Basement . Maintainer : < > # LANGUAGE DataKinds # # LANGUAGE MagicHash # # LANGUAGE UnboxedTuples # # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # LANGUAGE CPP # module Basement.PrimType ( PrimType(..) , PrimMemoryComparable , primBaIndex , primMbaRead , ...
816a5cdb22dcdda48c49921b8f3cc15bd760b184922b73626ee076f059376575
clj-kondo/config
config.clj
(ns clj-kondo.config (:require [clojure.java.io :as io] [clojure.string :as str] [clojure.tools.cli :refer [parse-opts]] [cpath-clj.core :as cp])) (def cli-options [["-l" "--lib LIBRARY" "Library" :default [] :assoc-fn (fn [m k v] (update m k (fnil conj [...
null
https://raw.githubusercontent.com/clj-kondo/config/b31c108bf13ece623850596363d2cb7350a5e5fe/src/clj_kondo/config.clj
clojure
(ns clj-kondo.config (:require [clojure.java.io :as io] [clojure.string :as str] [clojure.tools.cli :refer [parse-opts]] [cpath-clj.core :as cp])) (def cli-options [["-l" "--lib LIBRARY" "Library" :default [] :assoc-fn (fn [m k v] (update m k (fnil conj [...
fd37df7adccabff0dcb7f39651e6a3c57f7a19add9c849375ef924d386c66c0e
dscarpetti/codax
core_test.clj
(ns codax.core-test (:require [clojure.test :refer :all] [codax.test-logging :refer [logln]] [codax.core :refer :all] [codax.store :refer [destroy-database]] [codax.swaps :refer :all])) (def ^:dynamic *testing-database* nil) (defn store-setup-and-teardown [f] (bindi...
null
https://raw.githubusercontent.com/dscarpetti/codax/68edc73dbdfe4d33f5d08f658052edbc3de85121/test/codax/core_test.clj
clojure
convenience function tests -- consistency validation -- --- path conversions ---
(ns codax.core-test (:require [clojure.test :refer :all] [codax.test-logging :refer [logln]] [codax.core :refer :all] [codax.store :refer [destroy-database]] [codax.swaps :refer :all])) (def ^:dynamic *testing-database* nil) (defn store-setup-and-teardown [f] (bindi...
127407d16f6628555b9ec912f35eab8cefb985c05bcc35b6c32311fa7830a8a8
juspay/atlas
Quote.hs
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/atlas-transport/src/Domain/Types/Quote.hs
haskell
do we need this field?
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
a0af6dadd700aa060a85b2245b3dee9ce161d8f91739f6b3b7c3a877d0cfb2e2
dom96/ElysiaBot
GDict.hs
{-# LANGUAGE OverloadedStrings #-} import PluginUtils import Network.SimpleIRC.Messages import qualified Data.ByteString.Char8 as B import Data.Maybe (fromJust) import GDictParse main = do initPlugin ["dict"] [] onDict onDict mInfo (MsgCmd cMsg server prefix cmd rest) = do evalResult <- lookupDict (B.unpack ...
null
https://raw.githubusercontent.com/dom96/ElysiaBot/3accf5825e67880c7f1696fc81e3fc449efe3294/src/Plugins/GDict/GDict.hs
haskell
# LANGUAGE OverloadedStrings #
import PluginUtils import Network.SimpleIRC.Messages import qualified Data.ByteString.Char8 as B import Data.Maybe (fromJust) import GDictParse main = do initPlugin ["dict"] [] onDict onDict mInfo (MsgCmd cMsg server prefix cmd rest) = do evalResult <- lookupDict (B.unpack rest) either (\err -> sendMsg $ (...
3b5b068ff4c6bed433089093eaa8ed74aca37178f1114007458b605ba1abaa43
xsc/ancient-clj
zip_test.clj
(ns ancient-clj.zip-test (:require [ancient-clj.zip :refer [dependencies update-dependencies project-clj profiles-clj]] [ancient-clj.artifact :as artifact] [ancient-clj.test [zip :refer [form->zloc]] ...
null
https://raw.githubusercontent.com/xsc/ancient-clj/c34d96553c74ee1909a71e014e54a718933d1dd0/test/ancient_clj/zip_test.clj
clojure
## Helpers ## Tests
(ns ancient-clj.zip-test (:require [ancient-clj.zip :refer [dependencies update-dependencies project-clj profiles-clj]] [ancient-clj.artifact :as artifact] [ancient-clj.test [zip :refer [form->zloc]] ...
9b7eb408d017ecb44a3801b93fa08f2da0023198a63f135d708f95479872a439
pfeiferj/nvim-hurl
indents.scm
; indents.scm [ (json_object) (json_array) ] @indent [ "}" "]" ] @branch (xml_tag) @indent (xml_close_tag) @branch
null
https://raw.githubusercontent.com/pfeiferj/nvim-hurl/e22d346edcb56fe07a96df5f6a83670e4e648d0b/queries/hurl/indents.scm
scheme
indents.scm
[ (json_object) (json_array) ] @indent [ "}" "]" ] @branch (xml_tag) @indent (xml_close_tag) @branch
91b63268be75a688aa3537918d55ad4e1823757261b2b61d253068cdfcb9fb50
turquoise-hexagon/euler
solution.scm
(import (chicken flonum) (chicken format) (chicken sort) (euler)) (define (make-generator) (set! i 290797) (define (generator) (let ((_ i)) (set! i (modulo (* i i) 50515093)) _)) generator) (define (generate n) (let ((generator (make-generator))) (let loop ((i 1) (acc '())) (...
null
https://raw.githubusercontent.com/turquoise-hexagon/euler/a5a8d06d9090754fdf5d9d52c7c87d4833fb2c38/src/spoilers/816/solution.scm
scheme
(import (chicken flonum) (chicken format) (chicken sort) (euler)) (define (make-generator) (set! i 290797) (define (generator) (let ((_ i)) (set! i (modulo (* i i) 50515093)) _)) generator) (define (generate n) (let ((generator (make-generator))) (let loop ((i 1) (acc '())) (...
05d30dadc7e8a3247bfe2b774329bfac8b07d1ebb348dbba6c58ce23e5ed31ca
hbr/albatross
typecheck.mli
module Problem: sig type t = | Out_of_bound of int * Gamma.t | Argument_type | Typed | Lambda | No_type | Name of string end type path = int list val is_valid_context: Gamma.t -> bool (** [is_valid_context gamma] [gamma] is wellformed if - every type is valid, i.e. it typech...
null
https://raw.githubusercontent.com/hbr/albatross/8f28ef97951f92f30dc69cf94c0bbe20d64fba21/ocaml/core/typecheck.mli
ocaml
* [is_valid_context gamma] [gamma] is wellformed if - every type is valid, i.e. it typechecks using only entries of [gamma] with a smaller level (this is true by contruction, since we are using de bruijn indices) - the same holds for all definition terms - {b TODO}: every type is a type (and not an...
module Problem: sig type t = | Out_of_bound of int * Gamma.t | Argument_type | Typed | Lambda | No_type | Name of string end type path = int list val is_valid_context: Gamma.t -> bool val equivalent: Term.typ -> Term.typ -> Gamma.t -> bool val check: Term.t -> Gamma.t -> (Term.typ...
41ec9086bf63df5c8063710e51941fa0300a626bf385e4be9e2a6fc5579063d5
unsplash/intlc
Compiler.hs
module Intlc.Backend.JavaScript.Compiler (InterpStrat (..), Overrides (..), emptyOverrides, compileStmt, buildReactImport, emptyModule, validateKey) where import Control.Monad.Extra (pureIf) import Data.Char (isAlpha, isDigit) import qualified Data.Text ...
null
https://raw.githubusercontent.com/unsplash/intlc/cde1ada3fc472953bd484e9a668a8bb906c2e982/lib/Intlc/Backend/JavaScript/Compiler.hs
haskell
Allow other compilers to leverage this one, overriding only specific parts of it. What's here and in what form is merely ad hoc. | Everything shares a single argument object whence we can access interpolations. -US/docs/Glossary/identifier Technically already caught by `T.null`. Useful docs: -US/docs/Web/Java...
module Intlc.Backend.JavaScript.Compiler (InterpStrat (..), Overrides (..), emptyOverrides, compileStmt, buildReactImport, emptyModule, validateKey) where import Control.Monad.Extra (pureIf) import Data.Char (isAlpha, isDigit) import qualified Data.Text ...
2ab200d172c9d12cc98599cfdb6e241669acd7fce1ebb3f434c02c283326aeff
Shirakumo/kandria
environment.lisp
(in-package #:org.shirakumo.fraf.kandria) (defvar *environments* (make-hash-table :test 'eql)) (defclass audible-entity (listener entity) ((voice :initarg :voice :accessor voice))) (defmethod stage :after ((entity audible-entity) (area staging-area)) (when (typep (voice entity) 'placeholder-resource) (let ((...
null
https://raw.githubusercontent.com/Shirakumo/kandria/94fd727bd93e302c6a28fae33815043d486d794b/environment.lisp
lisp
Start a bit before the entrance to ensure we have a smooth ramp up. Stop even farther out to ensure we don't accidentally flip-flop and overburden the sound server. Early def
(in-package #:org.shirakumo.fraf.kandria) (defvar *environments* (make-hash-table :test 'eql)) (defclass audible-entity (listener entity) ((voice :initarg :voice :accessor voice))) (defmethod stage :after ((entity audible-entity) (area staging-area)) (when (typep (voice entity) 'placeholder-resource) (let ((...
f958ff5eef3a0ed6f074e2f0c95532c0e0c61c6bf81a38b9cd953b688fcf18eb
mtt-lang/mtt-lang
Evaluator.ml
open Base open Result.Let_syntax open Ast type error = [ `EvaluationError of string | Env.error ] let rec free_vars_m Location.{ data = term; _ } = let open Expr in match term with | Unit -> Set.empty (module Id.M) | Pair { e1; e2 } -> Set.union (free_vars_m e1) (free_vars_m e2) | Fst { e } | Snd { e } -> f...
null
https://raw.githubusercontent.com/mtt-lang/mtt-lang/2d330efccd154e1c158dc673ca3ec4f64b9dd09e/core/Evaluator.ml
ocaml
it's fresh enough already :) modal (modal) substitution no need to rename the bound var
open Base open Result.Let_syntax open Ast type error = [ `EvaluationError of string | Env.error ] let rec free_vars_m Location.{ data = term; _ } = let open Expr in match term with | Unit -> Set.empty (module Id.M) | Pair { e1; e2 } -> Set.union (free_vars_m e1) (free_vars_m e2) | Fst { e } | Snd { e } -> f...
782242214e20b45b325077c2c8d1498eeb902cc506ed64c6f591b1c10f036ae2
robrix/Manifold
REPL.hs
# LANGUAGE DeriveFunctor , FlexibleContexts , FlexibleInstances , LambdaCase , MultiParamTypeClasses , PolyKinds , TypeOperators , UndecidableInstances # module Manifold.REPL where import Control.Applicative (Alternative(..)) import Control.Effect import Data.Functor (($>)) import Data.Semilattice.Lower import Data.Se...
null
https://raw.githubusercontent.com/robrix/Manifold/3cc7a49c90b9cc7d1da61c532d0ee526ccdd3474/src/Manifold/REPL.hs
haskell
# LANGUAGE DeriveFunctor , FlexibleContexts , FlexibleInstances , LambdaCase , MultiParamTypeClasses , PolyKinds , TypeOperators , UndecidableInstances # module Manifold.REPL where import Control.Applicative (Alternative(..)) import Control.Effect import Data.Functor (($>)) import Data.Semilattice.Lower import Data.Se...
4d5184a6733fdee665a7e8e81fa09d27c8de498f700c46068e32b6e477d76317
johnwhitington/ocamli
curry.ml
let f x y = x + y in f 3 (f (1 + 1) (2 + 2))
null
https://raw.githubusercontent.com/johnwhitington/ocamli/28da5d87478a51583a6cb792bf3a8ee44b990e9f/examples/curry.ml
ocaml
let f x y = x + y in f 3 (f (1 + 1) (2 + 2))
78bb82218b33561e1b0f69ed7d0f26a50fa71bf3473becde4550975ccadf7594
mgajda/syntaxnet-haskell
SyntaxNet.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # {-# LANGUAGE RecordWildCards #-} module NLP.SyntaxNet.SyntaxNet ( readCnll , readParseTree , SnConllToken(..) , Data.ConllToken.ConllToken (..) , NLP.SyntaxNet.Types.CoNLL.PosCG(..) , Model.PennTreebank.POS (....
null
https://raw.githubusercontent.com/mgajda/syntaxnet-haskell/c29f41721672f48bb8a308ca7e7a81ee84e279d4/src/NLP/SyntaxNet/SyntaxNet.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RecordWildCards # ------------------------------------------------------------------------------ | Define custom options to read tab-delimeted files ------------------------------------------------------------------------------ Dealing with trees | Same as readParseTre...
# LANGUAGE ScopedTypeVariables # module NLP.SyntaxNet.SyntaxNet ( readCnll , readParseTree , SnConllToken(..) , Data.ConllToken.ConllToken (..) , NLP.SyntaxNet.Types.CoNLL.PosCG(..) , Model.PennTreebank.POS (..) , Model.UniversalTreebank.REL (..) ) where import ...
cd182de3a3ac9dfcb898b328349c913c791a95779f25097cf514ce41cc8c0a5a
herd/herdtools7
X86Arch_gen.ml
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/36806ac2b4139957a14fd90512727f2d51a1a096/gen/X86Arch_gen.ml
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2010 - present Institut National de Recherche en Informatique et This software is governed by the CeCILL - B license under French law and modify and/ or redistribu...