_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
a7b2cfc78d07d7a4aef50d9dc75685844bb6ef189147ff5b6e3344d2c183f7cd
egonSchiele/dominion
Types.hs
# LANGUAGE TemplateHaskell # module Dominion.Types ( | This module uses the ` Lens ` library . So you might notice that the -- fields for the constructors look strange: they all have underscores. -- Given a card, you can see the cost like this: -- -- > _cost card -- -- But you can also use a lens: -- ...
null
https://raw.githubusercontent.com/egonSchiele/dominion/a4b7300f2e445da5e7cfcc1cf9029243a3561ed6/src/Dominion/Types.hs
haskell
fields for the constructors look strange: they all have underscores. Given a card, you can see the cost like this: > _cost card But you can also use a lens: > card ^. cost The lens library is very useful for modifying deeply nested data structures, and it's been very useful for this module. -----------------...
# LANGUAGE TemplateHaskell # module Dominion.Types ( | This module uses the ` Lens ` library . So you might notice that the module Dominion.Types ) where import Control.Lens import Control.Monad.State import qualified Data.Map.Lazy as M CARD data CardType = Action | Attack ...
0a05da5b7cddd6899538697d748d991eb1c40561479a790bab2cfe6eeab18664
Tim-ats-d/Tim-lang
compiler.ml
let from_lexbuf lexbuf = match Parsing.parse lexbuf with | Ok ast -> Ast.Eval.eval_program ast | Error err -> prerr_endline err let from_str str = Lexing.from_string str |> from_lexbuf let from_file filename = let lexbuf = Lexing.from_channel (open_in filename) in Lexing.set_filename lexbuf filename; from...
null
https://raw.githubusercontent.com/Tim-ats-d/Tim-lang/005d04de07871fe464fadbb80c3050b9bc9b0ace/src/core/compiler.ml
ocaml
let from_lexbuf lexbuf = match Parsing.parse lexbuf with | Ok ast -> Ast.Eval.eval_program ast | Error err -> prerr_endline err let from_str str = Lexing.from_string str |> from_lexbuf let from_file filename = let lexbuf = Lexing.from_channel (open_in filename) in Lexing.set_filename lexbuf filename; from...
e5ab4c57d830d0fef5bd45a9f0fcebb536ecacf8aaa69ef4d2c1a77a3fdb8e4e
brownplt/TeJaS
typeScript_kinding.ml
open Prelude open Sig open TypeScript_sigs open Strobe_sigs module Make (TypeScript : TYPESCRIPT_MODULE) (StrobeKind : STROBE_KINDING with type typ = TypeScript.baseTyp with type kind = TypeScript.baseKind with type binding = TypeScript.baseBinding with type extTyp = TypeScript.typ with type ...
null
https://raw.githubusercontent.com/brownplt/TeJaS/a8ad7e5e9ad938db205074469bbde6a688ec913e/src/typescript/typeScript_kinding.ml
ocaml
open Prelude open Sig open TypeScript_sigs open Strobe_sigs module Make (TypeScript : TYPESCRIPT_MODULE) (StrobeKind : STROBE_KINDING with type typ = TypeScript.baseTyp with type kind = TypeScript.baseKind with type binding = TypeScript.baseBinding with type extTyp = TypeScript.typ with type ...
b53837ad71810f3544a0f9c65ef370fced7222b1ffa9fd676728519828bc8c7d
ChrisPenner/rasa
Base.hs
# LANGUAGE TemplateHaskell , OverloadedStrings , Rank2Types # module Rasa.Ext.Cursors.Internal.Base ( rangeDo , rangeDo_ , overRanges , getRanges , setRanges , overEachRange , addRange , setStyleProvider ) where import Rasa.Ext import Control.Monad.State import Control.Lens import Data.Typeable im...
null
https://raw.githubusercontent.com/ChrisPenner/rasa/a2680324849088ee92f063fab091de21c4c2c086/rasa-ext-cursors/src/Rasa/Ext/Cursors/Internal/Base.hs
haskell
| Stores the cursor ranges in each buffer. and restricts them to fit within the given text. | Get the list of ranges | 'rangeDo' with void return. | Sequences actions over each range and replaces each range with its result. | Adds a new range to the list of ranges. | Adds cursor specific styles
# LANGUAGE TemplateHaskell , OverloadedStrings , Rank2Types # module Rasa.Ext.Cursors.Internal.Base ( rangeDo , rangeDo_ , overRanges , getRanges , setRanges , overEachRange , addRange , setStyleProvider ) where import Rasa.Ext import Control.Monad.State import Control.Lens import Data.Typeable im...
d46a7654b1eb418cb9bc054e64d482b5d8264041e561bb8661b742b83847ff5b
ska80/thinlisp
tlt-prim.lisp
(in-package "TLI") ;;;; Module TL-PRIM Copyright ( c ) 1999 - 2001 The ThinLisp Group Copyright ( c ) 1995 Gensym Corporation . ;;; All rights reserved. This file is part of ThinLisp . ThinLisp is open source ; you can redistribute it and/or modify it under the terms of the ThinLisp License as published b...
null
https://raw.githubusercontent.com/ska80/thinlisp/173573a723256d901887f1cbc26d5403025879ca/tlt/lisp/tlt-prim.lisp
lisp
Module TL-PRIM All rights reserved. you can redistribute it and/or modify it either version 1 or ( at your option ) any later version . WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. code or are present at compile time only. Arrays Format is: ( ...
(in-package "TLI") Copyright ( c ) 1999 - 2001 The ThinLisp Group Copyright ( c ) 1995 Gensym Corporation . This file is part of ThinLisp . under the terms of the ThinLisp License as published by the ThinLisp ThinLisp is distributed in the hope that it will be useful , but For additional information s...
6806e9c477bc89cfdf0d7f8d246e5bcab7eb874946b1566e960152eaa1049889
mark-watson/haskell_tutorial_cookbook_examples
Guards.hs
module Main where import Data.Maybe import System.Random -- uses random library (see Pure.cabal file) spaceship n | n < 0 = -1 | n == 0 = 0 | otherwise = 1 randomMaybeValue n | n `mod` 2 == 0 = Just n | otherwise = Nothing main = do print $ spaceship (-100) print $ spaceship 0 prin...
null
https://raw.githubusercontent.com/mark-watson/haskell_tutorial_cookbook_examples/0f46465b67d245fa3853b4e320d79b7d7234e061/Pure/Guards.hs
haskell
uses random library (see Pure.cabal file)
module Main where import Data.Maybe spaceship n | n < 0 = -1 | n == 0 = 0 | otherwise = 1 randomMaybeValue n | n `mod` 2 == 0 = Just n | otherwise = Nothing main = do print $ spaceship (-100) print $ spaceship 0 print $ spaceship 17 print $ randomMaybeValue 1 print $ randomMayb...
b34eb8a5044a7423dd97742b844b3894cb9ce2c0ad9ed2078e43c370acacc6f3
ldgrp/uptop
UI.hs
{-# LANGUAGE OverloadedStrings #-} module UI where import Brick.Types import Lens.Micro import Types import UI.HelpView import UI.MainView drawUI :: State -> [Widget Name] drawUI st = case st ^. (screen . focus . view) of MainView lz _m -> drawMain st lz HelpView -> drawHelp st
null
https://raw.githubusercontent.com/ldgrp/uptop/53001b39793df4be48c9c3aed9454be0fc178434/up-top/src/UI.hs
haskell
# LANGUAGE OverloadedStrings #
module UI where import Brick.Types import Lens.Micro import Types import UI.HelpView import UI.MainView drawUI :: State -> [Widget Name] drawUI st = case st ^. (screen . focus . view) of MainView lz _m -> drawMain st lz HelpView -> drawHelp st
30da2c8961c9fdc8758581b935091940f8b0e415c2597c6d3d8a5de8e963e634
dancrossnyc/multics
lisp_gfn_.lisp
;;; ************************************************************** ;;; * * * Copyright , ( C ) Massachusetts Institute of Technology , 1982 * ;;; * * ;;; **********************************************...
null
https://raw.githubusercontent.com/dancrossnyc/multics/dc291689edf955c660e57236da694630e2217151/library_dir_dir/system_library_unbundled/source/bound_lisp_library_.s.archive/lisp_gfn_.lisp
lisp
************************************************************** * * * * ************************************************************** *************************************************************...
* Copyright , ( C ) Massachusetts Institute of Technology , 1982 * * * * * * * * * * * * S - expression formatter ( grindef ) * * * * * * * * * * ( c ) Copyright 1974 Massachusetts Institute of Technology * * This version of Grind works in both ITS and Multics Maclisp copied from ( ) . gfn - fns for...
0015403ecaaf709584e306cbd1d8614777566c0984f8fbc40064d2169a84782b
docker-in-aws/docker-in-aws
version.clj
(ns swarmpit.version (:require [swarmpit.config :as cfg] [clojure.java.io :as io] [clojure.walk :refer [keywordize-keys]]) (:import (java.util Properties))) (def pom-properties (doto (Properties.) (.load (-> "META-INF/maven/swarmpit/swarmpit/pom.properties" (io/resource...
null
https://raw.githubusercontent.com/docker-in-aws/docker-in-aws/bfc7e82ac82ea158bfb03445da6aec167b1a14a3/ch16/swarmpit/src/clj/swarmpit/version.clj
clojure
(ns swarmpit.version (:require [swarmpit.config :as cfg] [clojure.java.io :as io] [clojure.walk :refer [keywordize-keys]]) (:import (java.util Properties))) (def pom-properties (doto (Properties.) (.load (-> "META-INF/maven/swarmpit/swarmpit/pom.properties" (io/resource...
976708be58b3feb79db32bb18bf3abb6b897084f9d68df71fe52a96825208f49
mpdairy/posh
update.cljc
(ns posh.lib.update (:require [posh.lib.util :as util] [posh.lib.datom-matcher :as dm] [posh.lib.pull-analyze :as pa] [posh.lib.q-analyze :as qa] [posh.lib.db :as db])) (defn update-pull [{:keys [dcfg retrieve] :as posh-tree} storage-key] ;;(println "updated pull: " ...
null
https://raw.githubusercontent.com/mpdairy/posh/2347c8505f795ab252dbab2fcdf27eca65a75b58/src/posh/lib/update.cljc
clojure
(println "updated pull: " storage-key) (println "updated filter-pull: " storage-key) (println "updated pull-many: " storage-key) no longer using (println "updated q: " storage-key) (println "update-filter-q" storage-key)
(ns posh.lib.update (:require [posh.lib.util :as util] [posh.lib.datom-matcher :as dm] [posh.lib.pull-analyze :as pa] [posh.lib.q-analyze :as qa] [posh.lib.db :as db])) (defn update-pull [{:keys [dcfg retrieve] :as posh-tree} storage-key] (let [[_ poshdb pull-pattern...
9abd247cec20b7895f28b1393474b7084ff0e3d1ed99d487512ec04099bc8197
microsoft/SLAyer
NSList.ml
Copyright ( c ) Microsoft Corporation . All rights reserved . open NSLib module List = struct include List let cons x xs = x :: xs let tryfind pred lst = try Some(find pred lst) with Not_found -> None let rec no_duplicates = function | [] -> true | x::xs -> if (List.mem x xs) then false else (...
null
https://raw.githubusercontent.com/microsoft/SLAyer/6f46f6999c18f415bc368b43b5ba3eb54f0b1c04/src/Library/NSList.ml
ocaml
Copyright ( c ) Microsoft Corporation . All rights reserved . open NSLib module List = struct include List let cons x xs = x :: xs let tryfind pred lst = try Some(find pred lst) with Not_found -> None let rec no_duplicates = function | [] -> true | x::xs -> if (List.mem x xs) then false else (...
99b056bba0a3e1c5c773c47b266754d3dcc3ca91eb6c9b2590ff2f092a84c701
hashobject/boot-s3
s3.clj
(ns hashobject.boot-s3.s3 (:require [aws.sdk.s3 :as s3])) (defn get-file-details-for "Get the file details for the file in s3. Returns nil if there is no file at the given key." [cred bucket-name key] (try (let [response (s3/get-object-metadata cred bucket-name key)] (assoc response :key key)) ...
null
https://raw.githubusercontent.com/hashobject/boot-s3/7f9dd89947703070d40e0b95cfa173d3812a7db3/src/hashobject/boot_s3/s3.clj
clojure
(ns hashobject.boot-s3.s3 (:require [aws.sdk.s3 :as s3])) (defn get-file-details-for "Get the file details for the file in s3. Returns nil if there is no file at the given key." [cred bucket-name key] (try (let [response (s3/get-object-metadata cred bucket-name key)] (assoc response :key key)) ...
b4d59bbb97bc73ee3f1bd0a336a579cefc8baeb124563c8533f2e0ba93dafbba
jfaure/Irie-lang
Externs.hs
Externs : resolve names from external files ( solvescopes handles λ , mutuals , locals et .. ) -- * things in scope, but defined later * primitives : ( note . prim bindings are CoreSyn ) -- * imported modules -- * extern functions (esp. C) -- * imported label/field names should overwrite locals (they are supposed t...
null
https://raw.githubusercontent.com/jfaure/Irie-lang/186640a095d14560ff102ef613648e558e5b3f1e/compiler/3_Core/Externs.hs
haskell
* things in scope, but defined later * imported modules * extern functions (esp. C) * imported label/field names should overwrite locals (they are supposed to be the same) * The 0 module (compiler primitives) is used to mark tuple fields: (n : Iname) -> 0.n , primFieldHNames, primFieldMap ) Except: file IName ...
Externs : resolve names from external files ( solvescopes handles λ , mutuals , locals et .. ) * primitives : ( note . prim bindings are CoreSyn ) module Externs (GlobalResolver(..) , ModDeps, ModDependencies(..), addModuleToResolver , addModName , primResolver , primBinds , Import(..) , Externs(..) , readParseExte...
2a05d0c04180cc034fec54514c3f4fd99b0dd8b0e63f14f2207ddee12a77411c
cxxxr/valtan
ansi-tests.lisp
Copyright ( C ) 2004 < > ;; ALL RIGHTS RESERVED. ;; $ I d : ansi - tests.lisp , v 1.3 2004/09/28 01:53:23 yuji Exp $ ;; ;; 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...
null
https://raw.githubusercontent.com/cxxxr/valtan/ec3164d42b86869357dc185b747c5dfba25c0a3c/tests/sacla-tests/ansi-tests.lisp
lisp
ALL RIGHTS RESERVED. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistribu...
Copyright ( C ) 2004 < > $ I d : ansi - tests.lisp , v 1.3 2004/09/28 01:53:23 yuji Exp $ " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT OWNER OR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT THEORY OF LIABILITY , WHET...
b768953ba1060b8d828220c8a15016dfef338941b3bb2d25731da84b0d6afcdc
hoytech/antiweb
cffi-scl.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;; ;;; cffi-scl.lisp --- CFFI-SYS implementation for the Scieneer Common Lisp. ;;; Copyright ( C ) 2005 - 2006 , < > Copyright ( C ) 2006 , Scieneer Pty Ltd. ;;; ;;; Permission is hereby granted, free of charge, to any person ;;; obtaining a copy of this software...
null
https://raw.githubusercontent.com/hoytech/antiweb/53c38f78ea01f04f6d1a1ecdca5c012e7a9ae4bb/bundled/cffi/cffi-scl.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- cffi-scl.lisp --- CFFI-SYS implementation for the Scieneer Common Lisp. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify,...
Copyright ( C ) 2005 - 2006 , < > Copyright ( C ) 2006 , Scieneer Pty Ltd. files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , W...
3087707589674610506a262c76f9cd84ba4035893f6f630596cc2cd8ba694d64
serras/t-regex
FPDag2015.hs
# LANGUAGE DeriveGeneric # # LANGUAGE ViewPatterns # # LANGUAGE PostfixOperators # # LANGUAGE QuasiQuotes # # LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # {-# LANGUAGE TypeSynonymInstances #-} # LANGUAGE FlexibleInstances # module Data.Regex.Example.FPDag2015 where import Control.Applicative import Data...
null
https://raw.githubusercontent.com/serras/t-regex/8890f99b849baaf55b7e9ae9fbdb6d818b992ba3/src/Data/Regex/Example/FPDag2015.hs
haskell
# LANGUAGE TypeSynonymInstances # Note this is a Fix-ed element
# LANGUAGE DeriveGeneric # # LANGUAGE ViewPatterns # # LANGUAGE PostfixOperators # # LANGUAGE QuasiQuotes # # LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleInstances # module Data.Regex.Example.FPDag2015 where import Control.Applicative import Data.Regex.Generics import Data.Regex.TH i...
26d6bb8fb3153953f5641bb2cb38c94957980b5dfb712cefc5dba0cdaf816d5d
synduce/Synduce
max_point_sum.ml
* @synduce -NBc -n 30 --no - lifting type list = | Elt of int * int | Cons of int * int * list type clist = | Single of int * int | Concat of clist * clist let rec repr = function | Single (a, b) -> Elt (a, b) | Concat (x, y) -> dec y x and dec l1 = function | Single (a, b) -> Cons (a, b, repr l1) |...
null
https://raw.githubusercontent.com/synduce/Synduce/d453b04cfb507395908a270b1906f5ac34298d29/benchmarks/constraints/sortedlist/max_point_sum.ml
ocaml
* @synduce -NBc -n 30 --no - lifting type list = | Elt of int * int | Cons of int * int * list type clist = | Single of int * int | Concat of clist * clist let rec repr = function | Single (a, b) -> Elt (a, b) | Concat (x, y) -> dec y x and dec l1 = function | Single (a, b) -> Cons (a, b, repr l1) |...
b94e91ab81c165c926cdd2b12ad91ef0c6e673f5c5f60aaef50d2810d5be1199
UnixJunkie/dokeysto
test_lz4.ml
open Printf let n = 1_000_000 (* RWDBZ *) let test_rwdbz () = let module Rwdbz = Dokeysto_lz4.Db_lz4.RWZ in let start = Unix.gettimeofday () in let rwz = Rwdbz.create "rwdb_lz4" in for i = 1 to n do let s = string_of_int i in Rwdbz.add rwz s s done; let stop = Unix.gettimeofday () in printf "RWZ...
null
https://raw.githubusercontent.com/UnixJunkie/dokeysto/48b0486769d127f60d523cce89db001179ced92b/src/test_lz4.ml
ocaml
RWDBZ
open Printf let n = 1_000_000 let test_rwdbz () = let module Rwdbz = Dokeysto_lz4.Db_lz4.RWZ in let start = Unix.gettimeofday () in let rwz = Rwdbz.create "rwdb_lz4" in for i = 1 to n do let s = string_of_int i in Rwdbz.add rwz s s done; let stop = Unix.gettimeofday () in printf "RWZ records cre...
b15e735ac86b7d4384dbcffa0f104692f6ecd340f0cae26a81f6c043cbfa5f0f
BrownCS1260/class-compiler
compile.ml
open S_exp open Asm open Util open Ast_lam open Constant_folding let num_shift = 2 let num_mask = 0b11 let num_tag = 0b00 let bool_shift = 7 let bool_mask = 0b1111111 let bool_tag = 0b0011111 let heap_mask = 0b111 let pair_tag = 0b010 let fn_tag = 0b110 let operand_of_bool (b : bool) : operand = Imm (((if b then 1 ...
null
https://raw.githubusercontent.com/BrownCS1260/class-compiler/31450320bfb3fd7da0e6473e29d001248ee087cf/lib/compile.ml
ocaml
open S_exp open Asm open Util open Ast_lam open Constant_folding let num_shift = 2 let num_mask = 0b11 let num_tag = 0b00 let bool_shift = 7 let bool_mask = 0b1111111 let bool_tag = 0b0011111 let heap_mask = 0b111 let pair_tag = 0b010 let fn_tag = 0b110 let operand_of_bool (b : bool) : operand = Imm (((if b then 1 ...
dd21bf615236047c287908ff2cdc246ccedc7a86fff3bf8da92d5e1cd4ccb496
lambdaisland/uri
uri_test.cljc
(ns lambdaisland.uri-test (:require [clojure.test :as t :refer [are deftest is testing]] [lambdaisland.uri :as uri] [lambdaisland.uri.normalize :as norm] [lambdaisland.uri.platform :as platform] [clojure.test.check.generators :as gen] [clojure.test.check.pro...
null
https://raw.githubusercontent.com/lambdaisland/uri/c3aab11508faf0301dc666216119e93e602334e3/test/lambdaisland/uri_test.cljc
clojure
(= nil {})
(ns lambdaisland.uri-test (:require [clojure.test :as t :refer [are deftest is testing]] [lambdaisland.uri :as uri] [lambdaisland.uri.normalize :as norm] [lambdaisland.uri.platform :as platform] [clojure.test.check.generators :as gen] [clojure.test.check.pro...
4fd109c6c256b38c269bfc02e5de2db0cc79584c60a678368ee235b2cb4af863
min-nguyen/prob-fx
Lift.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} # LANGUAGE ScopedTypeVariables # {- | For lifting arbitrary monadic computations into an algebraic effect setting. -} module Effects.Lift ( Lift(..) , lift , handleLift) where import Prog ( call, Member(prj), Prog(..) ) import Data.F...
null
https://raw.githubusercontent.com/min-nguyen/prob-fx/870a341f344638887ac63f6e6f7e3a352a03ef62/src/Effects/Lift.hs
haskell
# LANGUAGE GADTs # | For lifting arbitrary monadic computations into an algebraic effect setting. | Lift a monadic computation @m a@ into the effect @Lift m@ | Wrapper function for calling @Lift@ | Handle @Lift m@ as the last effect
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # module Effects.Lift ( Lift(..) , lift , handleLift) where import Prog ( call, Member(prj), Prog(..) ) import Data.Function (fix) newtype Lift m a = Lift (m a) lift :: (Member (Lift m) es) => m a -> Prog es a lift = call ....
f8c99da0a92483ef9b0092d9b403ff410ff609097edf8cafb165c2ca24086a58
footprintanalytics/footprint-web
google.clj
(ns metabase.api.google "/api/google endpoints" (:require [compojure.core :refer [PUT]] [metabase.api.common :as api] [metabase.api.common.validation :as validation] [metabase.integrations.google :as google] [metabase.models.setting :as setting] [schema.co...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/src/metabase/api/google.clj
clojure
(ns metabase.api.google "/api/google endpoints" (:require [compojure.core :refer [PUT]] [metabase.api.common :as api] [metabase.api.common.validation :as validation] [metabase.integrations.google :as google] [metabase.models.setting :as setting] [schema.co...
fce0c0b0d8587b276d2496565112b9176d649115cabfb27b736d6f3214103da5
ndmitchell/supero
Example6.hs
module Example6 where import Prelude hiding (head,fail,reverse,foldl) data Expr = Add Expr Expr | Mul Expr Expr | Val Int eval :: Expr -> Int eval (Add x y) = eval x + eval y eval (Mul x y) = eval x - eval y eval (Val x) = x main x y z = eval (Add (Mul (Val x) (Val y)) (Val z))
null
https://raw.githubusercontent.com/ndmitchell/supero/a8b16ea90862e2c021bb139d7a7e9a83700b43b2/example/Example6.hs
haskell
module Example6 where import Prelude hiding (head,fail,reverse,foldl) data Expr = Add Expr Expr | Mul Expr Expr | Val Int eval :: Expr -> Int eval (Add x y) = eval x + eval y eval (Mul x y) = eval x - eval y eval (Val x) = x main x y z = eval (Add (Mul (Val x) (Val y)) (Val z))
bc5009e5773011fbe4af9223c32cf389a4acd098224210ac87ba252cacc543cc
ocurrent/opam-health-check
server_configfile.ml
type t = { yamlfile : Fpath.t; mutable name : string option; mutable port : int option; mutable public_url : string option; mutable admin_port : int option; mutable auto_run_interval : int option; mutable processes : int option; mutable enable_dune_cache : bool option; mutable enable_logs_compression ...
null
https://raw.githubusercontent.com/ocurrent/opam-health-check/07dbcb82f1c6101823994b2f61b5f058025f6863/lib/server_configfile.ml
ocaml
NOTE: Too unstable to enable by default NOTE: Requires too much disk space for regular users TODO: Enable by default in the future (takes 2x the time)
type t = { yamlfile : Fpath.t; mutable name : string option; mutable port : int option; mutable public_url : string option; mutable admin_port : int option; mutable auto_run_interval : int option; mutable processes : int option; mutable enable_dune_cache : bool option; mutable enable_logs_compression ...
d4c5d75842bbeb5acbccae7bf2e6a7a6027a89e230b3073fdfe4bd7361218c84
kblake/erlang-chat-demo
action_event.erl
Nitrogen Web Framework for Erlang Copyright ( c ) 2008 - 2010 See MIT - LICENSE for licensing information . -module (action_event). -include_lib ("wf.hrl"). -compile(export_all). render_action(#event { postback=Postback, actions=Actions, anchor=Anchor, trigger=Trigger, target=Target, validation_grou...
null
https://raw.githubusercontent.com/kblake/erlang-chat-demo/6fd2fce12f2e059e25a24c9a84169b088710edaf/apps/nitrogen/src/actions/action_event.erl
erlang
SYSTEM EVENTS %%% Trigger a system postback immediately... Trigger a system postback after some delay... USER EVENTS %%% Convenience method for Enter Key... Run the event after a specified amount of time
Nitrogen Web Framework for Erlang Copyright ( c ) 2008 - 2010 See MIT - LICENSE for licensing information . -module (action_event). -include_lib ("wf.hrl"). -compile(export_all). render_action(#event { postback=Postback, actions=Actions, anchor=Anchor, trigger=Trigger, target=Target, validation_grou...
33a9c51e00e199d3008450e4c7e201350ac038b5081d8acca8b256b0e764f771
rm-hull/wireframes
lighting.clj
(ns wireframes.renderer.lighting (:require [inkspot.color :refer [coerce scale]] [wireframes.transform :refer [normal point]])) (def default-position (point 10000 -10000 -1000000)) (defn- brightness [i c] (coerce (scale c i))) (defn compute-lighting [lighting-position] (let [lx (double (get lightin...
null
https://raw.githubusercontent.com/rm-hull/wireframes/7df78cc6e2040cd0de026795f2e63ad129e4fee5/src/clj/wireframes/renderer/lighting.clj
clojure
when-not (neg? dp)
(ns wireframes.renderer.lighting (:require [inkspot.color :refer [coerce scale]] [wireframes.transform :refer [normal point]])) (def default-position (point 10000 -10000 -1000000)) (defn- brightness [i c] (coerce (scale c i))) (defn compute-lighting [lighting-position] (let [lx (double (get lightin...
7cad17fa13d96411280ba1783aff3bc12b1772719489f7503cbf89c57dc4fcb3
haskell-opengl/GLUT
TexBind.hs
TexBind.hs ( adapted from texbind.c which is ( c ) Silicon Graphics , Inc ) Copyright ( c ) 2002 - 2018 < > This file is part of HOpenGL and distributed under a BSD - style license See the file libraries / GLUT / LICENSE This program demonstrates using textureBinding by creating and manag...
null
https://raw.githubusercontent.com/haskell-opengl/GLUT/36207fa51e4c1ea1e5512aeaa373198a4a56cad0/examples/RedBook4/TexBind.hs
haskell
Create checkerboard image resolve overloading, not needed in "real" programs we have to do this *after* createWindow, otherwise we have no OpenGL context
TexBind.hs ( adapted from texbind.c which is ( c ) Silicon Graphics , Inc ) Copyright ( c ) 2002 - 2018 < > This file is part of HOpenGL and distributed under a BSD - style license See the file libraries / GLUT / LICENSE This program demonstrates using textureBinding by creating and manag...
6dca360f32231b5a5a9b83bd59ab4b9d62d95b2fe7b3ddcdfb611bc5db8a6d0f
Incubaid/arakoon
tlogcollection_test.ml
Copyright ( 2010 - 2014 ) INCUBAID BVBA 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 distribut...
null
https://raw.githubusercontent.com/Incubaid/arakoon/43a8d0b26e4876ef91d9657149f105c7e57e0cb0/src/tlog/tlogcollection_test.ml
ocaml
c1 # validate () >>= fun _ -> assumption that different tlog_collections with the same name have the same state
Copyright ( 2010 - 2014 ) INCUBAID BVBA 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 distribut...
e2c181728526ecd1e0ee27cdb8f7027276418c3d167152dfb5471a7dd5b31eab
ddssff/cabal-debian
Git.hs
-- | Git related functions that belong in some other package. # LANGUAGE ScopedTypeVariables # module System.Git ( gitResetHard , gitResetSubdir , gitUnclean , gitIsClean , withCleanRepo ) where import Control.Exception (catch, SomeException, throw) import System.Directory (getCurrentDirector...
null
https://raw.githubusercontent.com/ddssff/cabal-debian/763270aed987f870762e660f243451e9a34e1325/src/System/Git.hs
haskell
| Git related functions that belong in some other package. | Do a hard reset of all the files of the repository containing the working directory. | Do a hard reset of all the files of a subdirectory within a git repository. (Does this every throw an exception?) | Determine whether the repository containing the w...
# LANGUAGE ScopedTypeVariables # module System.Git ( gitResetHard , gitResetSubdir , gitUnclean , gitIsClean , withCleanRepo ) where import Control.Exception (catch, SomeException, throw) import System.Directory (getCurrentDirectory) import System.Exit (ExitCode(ExitSuccess, ExitFailure)) imp...
b8a8dd697378ccf29f283bdfb20542304644788e862385c221c2f2b6dfe18e33
FlowerWrong/mblog
mp3_manager.erl
%% --- Excerpted from " Programming Erlang , Second Edition " , published by The Pragmatic Bookshelf . %% Copyrights apply to this code. It may not be used to create training material, %% courses, books, articles, and the like. Contact us if you are in doubt. %% We make no guarantees that this code is fit for...
null
https://raw.githubusercontent.com/FlowerWrong/mblog/3233ede938d2019a7b57391405197ac19c805b27/categories/erlang/demo/jaerlang2_code/mp3_manager.erl
erlang
--- Copyrights apply to this code. It may not be used to create training material, courses, books, articles, and the like. Contact us if you are in doubt. We make no guarantees that this code is fit for any purpose. Visit for more book information. --- see if we can find a tag at the end bad flags
Excerpted from " Programming Erlang , Second Edition " , published by The Pragmatic Bookshelf . -module(mp3_manager). -import(lists, [map/2, reverse/1]). -compile(export_all). start1() -> Files = lib_files_find:files("/Volumes/joe/piano_concertos", "*.mp3", true), V = map(fun handle/1, Files), lib_mi...
3ef0f6a96bc1c5ef4d39f18aa966da115054a4a910df25cc20d04fcef356408b
freizl/dive-into-haskell
fibs.hs
# LANGUAGE TypeFamilies , QuasiQuotes , # LANGUAGE MultiParamTypeClasses , TemplateHaskell # {-# LANGUAGE OverloadedStrings #-} import Yesod import qualified Data.Text as T import Web.Routes.Quasi hiding (parseRoutes) data Fibs = Fibs START newtype Natural = Natural Int -- we might even like to go with Word her...
null
https://raw.githubusercontent.com/freizl/dive-into-haskell/b18a6bfe212db6c3a5d707b4a640170b8bcf9330/codes/web/yesod/misc/fibs.hs
haskell
# LANGUAGE OverloadedStrings # we might even like to go with Word here STOP
# LANGUAGE TypeFamilies , QuasiQuotes , # LANGUAGE MultiParamTypeClasses , TemplateHaskell # import Yesod import qualified Data.Text as T import Web.Routes.Quasi hiding (parseRoutes) data Fibs = Fibs START deriving (Show, Read, Eq, Num, Ord) START instance SinglePiece Natural where toSingleP...
7dc69df882b00b8e363d689ec62d671082b07dbd034066877e898ddd8441bd8d
haskell-mafia/boris
test-io.hs
import Disorder.Core.Main import qualified Test.IO.Boris.Build main :: IO () main = disorderMain [ Test.IO.Boris.Build.tests ]
null
https://raw.githubusercontent.com/haskell-mafia/boris/fb670071600e8b2d8dbb9191fcf6bf8488f83f5a/boris-build/test/test-io.hs
haskell
import Disorder.Core.Main import qualified Test.IO.Boris.Build main :: IO () main = disorderMain [ Test.IO.Boris.Build.tests ]
aa13203b1462bf42ba3ff5d2efa86666e790564357c444ba1ba36ef3e8cfe9af
vitorenesduarte/exp
exp_resource.erl
%% Copyright ( c ) 2018 . All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% a copy of the License at %% %% -2.0 %% %% Unless required by applicable law or agre...
null
https://raw.githubusercontent.com/vitorenesduarte/exp/99486aba658c1b5f077275ceca3eef173375d050/src/exp_resource.erl
erlang
Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ----------------------------...
Copyright ( c ) 2018 . All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(exp_resource). -autho...
2e50de097dcdbf7f1d32e7230fe2971841eaa6dac88c120d9797495caed6b7cc
openweb-nl/kafka-graphql-examples
views.cljs
(ns nl.openweb.bank.views (:require [re-frame.core :as re-frame] [nl.openweb.bank.subs :as subs] [nl.openweb.bank.templates :as templates])) (defn main-panel [] [:div (let [selected-nav (re-frame/subscribe [::subs/nav])] (apply templates/nav-bar @selected-nav)) [:div.section ...
null
https://raw.githubusercontent.com/openweb-nl/kafka-graphql-examples/a404a265b5b0f13968a24d00c6494981063937fe/frontend/src/cljs/nl/openweb/bank/views.cljs
clojure
(ns nl.openweb.bank.views (:require [re-frame.core :as re-frame] [nl.openweb.bank.subs :as subs] [nl.openweb.bank.templates :as templates])) (defn main-panel [] [:div (let [selected-nav (re-frame/subscribe [::subs/nav])] (apply templates/nav-bar @selected-nav)) [:div.section ...
92b44f1011a33f9c4e45bf405ba245718b1af7ba722ba7d8a23a27cfe45ae799
jtdaugherty/dbmigrations
BackendTest.hs
{-# LANGUAGE OverloadedStrings #-} -- | A test that is not executed as part of this package's test suite but rather -- acts as a conformance test suit for database specific backend -- implementations. All backend specific executable packages are expected to -- have a test suite that runs this test. module Database.Sch...
null
https://raw.githubusercontent.com/jtdaugherty/dbmigrations/80336a736ac394a2d38c65661b249b2fae142b64/src/Database/Schema/Migrations/Test/BackendTest.hs
haskell
# LANGUAGE OverloadedStrings # | A test that is not executed as part of this package's test suite but rather acts as a conformance test suit for database specific backend implementations. All backend specific executable packages are expected to have a test suite that runs this test. | A typeclass for database conn...
module Database.Schema.Migrations.Test.BackendTest ( BackendConnection (..) , tests ) where import Data.ByteString ( ByteString ) import Control.Monad ( forM_ ) import Test.HUnit import Database.Schema.Migrations.Migration ( Migration(..), newMigration ) import Database.Schema.Migrations.Backend ( Backe...
54073b785e90df381fb77efad1e18296232f171fa45efd295dec64cb99cd96c7
clash-lang/clash-compiler
T1019.hs
module T1019 where import Clash.Prelude f :: SNat m -> Integer f = snatToInteger # NOINLINE f # topEntity = f (SNat @(LCM 733301111 742))
null
https://raw.githubusercontent.com/clash-lang/clash-compiler/8e461a910f2f37c900705a0847a9b533bce4d2ea/tests/shouldwork/Numbers/T1019.hs
haskell
module T1019 where import Clash.Prelude f :: SNat m -> Integer f = snatToInteger # NOINLINE f # topEntity = f (SNat @(LCM 733301111 742))
50531f9f57b093b24bc3098e3dc41fbbe317ab8c961b33bd2c2b5278d9c5b759
cyverse-archive/DiscoveryEnvironmentBackend
messenger.clj
(ns monkey.messenger "This namespace implements the Messages protocol where langhor is used to interface with an AMQP broker." (:require [clojure.tools.logging :as log] [langohr.basic :as basic] [langohr.channel :as ch] [langohr.consumers :as consumer] [langohr.cor...
null
https://raw.githubusercontent.com/cyverse-archive/DiscoveryEnvironmentBackend/7f6177078c1a1cb6d11e62f12cfe2e22d669635b/services/monkey/src/monkey/messenger.clj
clojure
(ns monkey.messenger "This namespace implements the Messages protocol where langhor is used to interface with an AMQP broker." (:require [clojure.tools.logging :as log] [langohr.basic :as basic] [langohr.channel :as ch] [langohr.consumers :as consumer] [langohr.cor...
f190f720e3af3b46f2f0ffe82363e556b08855b5847733b7d144155c20585435
mkhan45/RustScript2
strings.ml
open Base open Stdio open Rustscript.Run open Util let () = let ss, state = test_state () |> run_file (test_file "strings.rsc") in assert_equal_expressions "result" "T" ss state; printf "Passed\n"
null
https://raw.githubusercontent.com/mkhan45/RustScript2/4e8cc6ab422116bd0a551aa43164926e413285ff/test/strings.ml
ocaml
open Base open Stdio open Rustscript.Run open Util let () = let ss, state = test_state () |> run_file (test_file "strings.rsc") in assert_equal_expressions "result" "T" ss state; printf "Passed\n"
55d08cdd2d09e74eafc28f0a3631072bc9b6a5b66b24536479d8de54ffeac921
tiensonqin/lymchat
main.cljs
(ns ^:figwheel-no-load env.ios.main (:require [reagent.core :as r] [lymchat.ios.core :as core] [figwheel.client :as figwheel :include-macros true])) (enable-console-print!) (def cnt (r/atom 0)) (defn reloader [] @cnt [core/app-root]) (def root-el (r/as-element [reloader])) (figwheel/watch...
null
https://raw.githubusercontent.com/tiensonqin/lymchat/824026607d30c12bc50afb06f677d1fa95ff1f2f/env/dev/env/ios/main.cljs
clojure
(ns ^:figwheel-no-load env.ios.main (:require [reagent.core :as r] [lymchat.ios.core :as core] [figwheel.client :as figwheel :include-macros true])) (enable-console-print!) (def cnt (r/atom 0)) (defn reloader [] @cnt [core/app-root]) (def root-el (r/as-element [reloader])) (figwheel/watch...
a757596b75625d2ea85ec397f818587c9ff9d9664f4b2bc11b1f3696f90f677c
kelamg/HtDP2e-workthrough
ex525.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 ex525) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Accumulators/ex525.rkt
racket
about the language level of this file in a form that our tools can easily process. Image Posn Posn Posn -> Image adds the black triangle a, b, c to scene Posn Posn Posn -> Boolean is the triangle a, b, c too small to be divided Posn Posn -> Number Posn Posn -> Posn determines the midpoint between a and b Im...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex525) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (require 2htdp/image) (define MT (empty-scene 400 400...
dfeb53b8004f8954740e1cd801d64e7571428a7958b82277441204cf55c0fa0a
haskell-tools/haskell-tools
SemicolonDo.hs
module Expr.SemicolonDo where import Control.Monad.Identity a = do { n <- Identity () ; return () }
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/refactor/examples/Expr/SemicolonDo.hs
haskell
module Expr.SemicolonDo where import Control.Monad.Identity a = do { n <- Identity () ; return () }
62b5a0bef386269f03357381908d45ed7d391ff7cd7e212d9b82b754872b1245
yuriy-chumak/ol
version-1-4.scm
OpenGL 1.4 ( 24 Jul 2002 ) (define-library (OpenGL version-1-4) (export (exports (OpenGL version-1-3)) GL_VERSION_1_4 glWindowPos2iv glPointParameterf glSecondaryColor3f # define GL_BLEND_DST_RGB 0x80C8 ;; #define GL_BLEND_SRC_RGB 0x80C9 # define ...
null
https://raw.githubusercontent.com/yuriy-chumak/ol/69f9159b6955ee11d7e30e9eb9b55c47c64d9720/libraries/OpenGL/version-1-4.scm
scheme
#define GL_BLEND_SRC_RGB 0x80C9 #define GL_POINT_FADE_THRESHOLD_SIZE 0x8128 #define GL_DEPTH_COMPONENT16 0x81A5 #define GL_MAX_TEXTURE_LOD_BIAS 0x84FD #define GL_TEXTURE_LOD_BIAS 0x8501 #define GL_POINT_DISTANCE_ATTENUATION 0x8129 #define GL_FOG_COOR...
OpenGL 1.4 ( 24 Jul 2002 ) (define-library (OpenGL version-1-4) (export (exports (OpenGL version-1-3)) GL_VERSION_1_4 glWindowPos2iv glPointParameterf glSecondaryColor3f # define GL_BLEND_DST_RGB 0x80C8 # define 0x80CA # define GL_BLEND_SRC_ALPHA ...
c52a85f33e152c952eb51506291f8303d0828a4b0c75eecea6e3c2b35b528e4a
Kakadu/fp2022
demo.ml
* Copyright 2021 - 2022 , * SPDX - License - Identifier : LGPL-3.0 - or - later open Python_lib.Interpreter open Eval (Result) let () = let path = String.trim (Stdio.In_channel.input_all Caml.stdin) in let ic = open_in path in try let code = Stdio.In_channel.input_all ic in let y = parse_and_interpet...
null
https://raw.githubusercontent.com/Kakadu/fp2022/27ec5cd84ad68b54bb1c7191bab59320684386ab/Python/demos/demo.ml
ocaml
* Copyright 2021 - 2022 , * SPDX - License - Identifier : LGPL-3.0 - or - later open Python_lib.Interpreter open Eval (Result) let () = let path = String.trim (Stdio.In_channel.input_all Caml.stdin) in let ic = open_in path in try let code = Stdio.In_channel.input_all ic in let y = parse_and_interpet...
82ad0d390f96521cc1f0a016900d957e2b30c3b9bf056f74d602caaeae915b1e
mikera/core.matrix
polynomial.clj
(ns clojure.core.matrix.demo.polynomial (:use clojure.core.matrix)) ;; our task is to find a polynomial that fits a set of points ;; a sey of [x y points] (def points [[0 1] [ 1 4] [2 10] [3 19] [4 31] [5 46]]) (def n (count points)) (def m (matrix (mapv (fn [[x y]] (mapv (fn [i] (pow x...
null
https://raw.githubusercontent.com/mikera/core.matrix/0a35f6e3d6d2335cb56f6f3e5744bfa1dd0390aa/src/test/clojure/clojure/core/matrix/demo/polynomial.clj
clojure
our task is to find a polynomial that fits a set of points a sey of [x y points] let x be the polynomial coefficients so x= (inv m).y now create a function that computes the polynomial
(ns clojure.core.matrix.demo.polynomial (:use clojure.core.matrix)) (def points [[0 1] [ 1 4] [2 10] [3 19] [4 31] [5 46]]) (def n (count points)) (def m (matrix (mapv (fn [[x y]] (mapv (fn [i] (pow x i)) (range n))) points))) (def y (mapv second points)) we have y (de...
aa1bcc9f501d73d7acb0151084f944ceacd0429b40fff474ef741cd58f94458d
sbcl/sbcl
memory.lisp
;;;; the RISC-V definitions of some general purpose memory reference VOPs ;;;; inherited by basic memory reference operations This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon Unive...
null
https://raw.githubusercontent.com/sbcl/sbcl/c6049bdd1b83d07833a29a88bb77e8846b1d260a/src/compiler/riscv/memory.lisp
lisp
the RISC-V definitions of some general purpose memory reference VOPs inherited by basic memory reference operations more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information.
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB-VM") Cell - Ref and Cell - Set are used to define VOPs like CAR , where the offset to be read or writte...
2ae0ef41388cb38651d4faf763143ec4ca832e45b2e3455773a4dc8b89a625b9
janestreet/learn-ocaml-workshop
frogger.ml
open Base open Scaffold module Direction = struct type t = | Up | Down | Left | Right end module Frog = struct type t = { position : Position.t ; facing : Direction.t } [@@deriving fields] let create = Fields.create end module Non_frog_character = struct module Kind = struct ...
null
https://raw.githubusercontent.com/janestreet/learn-ocaml-workshop/1ba9576b48b48a892644eb20c201c2c4aa643c32/solutions/frogger/frogger.ml
ocaml
Alternating directions
open Base open Scaffold module Direction = struct type t = | Up | Down | Left | Right end module Frog = struct type t = { position : Position.t ; facing : Direction.t } [@@deriving fields] let create = Fields.create end module Non_frog_character = struct module Kind = struct ...
12c329035565940ac263075c958e6260e4f2a6c53f7a37d60b66c1617a890386
hypernumbers/hypernumbers
dh_matrix.erl
%%%------------------------------------------------------------------- @author ( C ) 2008 - 2014 , Hypernumbers.com %%% @doc handle matrix functions %%% @end %%% Created : by %%%------------------------------------------------------------------- %%%---------------------------------------------------...
null
https://raw.githubusercontent.com/hypernumbers/hypernumbers/281319f60c0ac60fb009ee6d1e4826f4f2d51c4e/lib/hypernumbers-1.0/src/dh_matrix.erl
erlang
------------------------------------------------------------------- @doc handle matrix functions @end Created : by ------------------------------------------------------------------- ------------------------------------------------------------------- LICENSE This program is free software: you can redistr...
@author ( C ) 2008 - 2014 , Hypernumbers.com it under the terms of the GNU Affero General Public License as published by the Free Software Foundation version 3 You should have received a copy of the GNU Affero General Public License -module(dh_matrix). -export([ multiply/2 ]). multiply(M1, M2) -> ...
72dd026a61ddc0170e9b09bbc709cdc13b18f50f10fc321aea8180743e14b7ba
cedlemo/OCaml-libmpdclient
mpd_lwt_playlist_info.ml
* Copyright 2017 , * This file is part of . * * OCaml - libmpdclient is free software : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation , either version 3 of the License , or * any later version . ...
null
https://raw.githubusercontent.com/cedlemo/OCaml-libmpdclient/49922f4fa0c1471324c613301675ffc06ff3147c/samples/mpd_lwt_playlist_info.ml
ocaml
* Copyright 2017 , * This file is part of . * * OCaml - libmpdclient is free software : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation , either version 3 of the License , or * any later version . ...
fe6f6a6f01e227b64ba096403bc9ac54f9d01d9760099627ebb4a5254844565c
ghcjs/ghcjs-dom
RTCIceCandidateEvent.hs
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} module GHCJS.DOM.JSFFI.Generated.RTCIceCandidateEvent (js_getCandidate, getCandidate, RTCIceCandidateEvent(..), ...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/RTCIceCandidateEvent.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # module GHCJS.DOM.JSFFI.Generated.RTCIceCandidateEvent (js_getCandidate, getCandidate, RTCIceCandidateEvent(..), gTypeRTCIceCandidateEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, D...
54894c1667dfbed04acba441539d6e0597625debd907cfa6ad491098a65911ec
screenshotbot/screenshotbot-oss
test-login.lisp
;;;; Copyright 2018-Present Modern Interpreters Inc. ;;;; This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (defpackage :screenshotbot/login/test-login (:use #:cl #:fiveam) (:import...
null
https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/e2b32b8b536796122b7111c456728a5101a1ed08/src/screenshotbot/login/test-login.lisp
lisp
Copyright 2018-Present Modern Interpreters Inc.
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (defpackage :screenshotbot/login/test-login (:use #:cl #:fiveam) (:import-from #:screenshotbot/login/common #:signi...
6cecb2020e41da02dcd9879b9035a2b90bb45c9a3d64af597c23ae62272c6030
yuriy-chumak/ol
integers.scm
#!/usr/bin/env ol (import (otus fasl) (otus ffi)) (import (lib kore)) (define (page req) (http_populate_get req) (let*((out "analyze result:\n") ;; byte (byte (box 0)) (out (if (eq? (http_argument_get_byte req "id" byte) 1) (string-append out "byte: " (number->stri...
null
https://raw.githubusercontent.com/yuriy-chumak/ol/73230a893bee928c0111ad2416fd527e7d6749ee/samples/kore/integers/integers.scm
scheme
byte int16/uint16 int32/uint32 we should allocate large number float/double we should allocate large number end with newline
#!/usr/bin/env ol (import (otus fasl) (otus ffi)) (import (lib kore)) (define (page req) (http_populate_get req) (let*((out "analyze result:\n") (byte (box 0)) (out (if (eq? (http_argument_get_byte req "id" byte) 1) (string-append out "byte: " (number->string (unbox byte)) ...
495d3d505ce7445c932b65db69a3cf1a48eb6923a3b612ed51571a62b71fc7cb
jumarko/clojure-experiments
intro_to_lists.clj
(ns four-clojure.intro-to-lists) (= (list :a :b :c) '(:a :b :c))
null
https://raw.githubusercontent.com/jumarko/clojure-experiments/f0f9c091959e7f54c3fb13d0585a793ebb09e4f9/src/clojure_experiments/four_clojure/intro_to_lists.clj
clojure
(ns four-clojure.intro-to-lists) (= (list :a :b :c) '(:a :b :c))
f09b113c6e13327bdd147885c6e001fe7a4527f65f36d5288eed45c7e2b5a4f9
uw-unsat/serval-sosp19
keystone.rkt
#lang rosette (require (except-in rackunit fail) rackunit/text-ui rosette/lib/roseunit serval/llvm serval/lib/core serval/lib/unittest (prefix-in keystone: "generated/monitors/keystone.map.rkt") (prefix-in keystone: "generated/monitors/keystone.globals.rkt...
null
https://raw.githubusercontent.com/uw-unsat/serval-sosp19/175c42660fad84b44e4c9f6f723fd3c9450d65d4/monitors/keystone/verif/keystone.rkt
racket
#lang rosette (require (except-in rackunit fail) rackunit/text-ui rosette/lib/roseunit serval/llvm serval/lib/core serval/lib/unittest (prefix-in keystone: "generated/monitors/keystone.map.rkt") (prefix-in keystone: "generated/monitors/keystone.globals.rkt...
78789fbd42d3c69f65eb46fe4a91b3d6cac096b5d53abd409a100c2a4a38e75b
yurug/ocaml-crontab
check.ml
let () = Io.check ()
null
https://raw.githubusercontent.com/yurug/ocaml-crontab/59b0d84bfe3d7f2a9ee1e00c6f6733dba2765c55/tests/check.ml
ocaml
let () = Io.check ()
881bd5699917c9a15b23c2af73121e90e300594dbcf4fe24e3562e40a9783dd0
Frama-C/Frama-C-snapshot
wpReport.ml
(**************************************************************************) (* *) This file is part of WP plug - in of Frama - C. (* *) Copyrigh...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/wp/wpReport.ml
ocaml
************************************************************************ alternatives) ...
This file is part of WP plug - in of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat a l'energie atomique et aux energies Lesser General Public License as published by the Free Software Foundation ,...
6effcf8b6fa3921ad3eb6f84095377107dbc69de5d83769724710c93d1525c4d
xapi-project/xen-api-libs
udev.ml
open Printf external socket_netlink_udev : unit -> Unix.file_descr = "stub_socket_netlink_udev" external bind_netlink_udev : Unix.file_descr -> unit = "stub_bind_netlink_udev" external receive_events_udev : Unix.file_descr -> string = "stub_receive_events_udev" exception Timeout let wait_for action event timeout = ...
null
https://raw.githubusercontent.com/xapi-project/xen-api-libs/d603ee2b8456bc2aac99b0a4955f083e22f4f314/udev/udev.ml
ocaml
open Printf external socket_netlink_udev : unit -> Unix.file_descr = "stub_socket_netlink_udev" external bind_netlink_udev : Unix.file_descr -> unit = "stub_bind_netlink_udev" external receive_events_udev : Unix.file_descr -> string = "stub_receive_events_udev" exception Timeout let wait_for action event timeout = ...
a07d5159ca754910adbb007792d541e174938d875f271a662f2d88f6ce3781b9
roman/Haskell-Reactive-Extensions
MergeTest.hs
module Rx.Observable.MergeTest (tests) where import Test.HUnit import Test.Hspec import Control.Concurrent.Async (async, wait) import Control.Monad (forM_, replicateM, replicateM_) import qualified Rx.Observable as Rx import qualified Rx.Subject as Rx tests :: Spec tests = describe "Rx.Observable.Merge" $ ...
null
https://raw.githubusercontent.com/roman/Haskell-Reactive-Extensions/0faddbb671be7f169eeadbe6163e8d0b2be229fb/rx-core/test/Rx/Observable/MergeTest.hs
haskell
If merge doesn't wait for inner observables this numbers should not be in the total count
module Rx.Observable.MergeTest (tests) where import Test.HUnit import Test.Hspec import Control.Concurrent.Async (async, wait) import Control.Monad (forM_, replicateM, replicateM_) import qualified Rx.Observable as Rx import qualified Rx.Subject as Rx tests :: Spec tests = describe "Rx.Observable.Merge" $ ...
10e94e671ab2c09da6b5f605e017a5c6ef6985cb4252c023cad908a7e592fdcf
larcenists/larceny
comparators.body.scm
SRFI 114 comparators #; (define-syntax define-predefined-comparator ;; Define a comparator through a constructor function that caches its result. ;; It is to be used to retrieve the predefined comparators. ;; (syntax-rules () ((_ ?who ?build-form) (begin (define-syntax ?who (identifi...
null
https://raw.githubusercontent.com/larcenists/larceny/fef550c7d3923deb7a5a1ccd5a628e54cf231c75/lib/SRFI/srfi/116/comparators.body.scm
scheme
Define a comparator through a constructor function that caches its result. It is to be used to retrieve the predefined comparators. end of BEGIN -------------------------------------------------------------------- -------------------------------------------------------------------- ----------------------------...
SRFI 114 comparators (define-syntax define-predefined-comparator (syntax-rules () ((_ ?who ?build-form) (begin (define-syntax ?who (identifier-syntax (builder))) (define builder (let ((C #f)) (lambda () (or C (receive-and-return (rv) ...
8edee78c423b41d6d41e055a9bc4b3eca791b97c510737c7b5d35c01ea5b4f87
VisionsGlobalEmpowerment/webchange
constructor.cljs
(ns webchange.ui.components.audio-wave.constructor (:require ["wavesurfer.js/dist/plugin/wavesurfer.regions.js" :as Regions] ["wavesurfer.js/dist/plugin/wavesurfer.timeline.js" :as Timeline] ["/audio-script" :as AudioScript] [wavesurfer.js :as WaveSurferConstructor] [webchange.ui.components.audio-...
null
https://raw.githubusercontent.com/VisionsGlobalEmpowerment/webchange/c898e0632a518bf6d9dca6f2e0c2bb6460376427/src/cljs/webchange/ui/components/audio_wave/constructor.cljs
clojure
(ns webchange.ui.components.audio-wave.constructor (:require ["wavesurfer.js/dist/plugin/wavesurfer.regions.js" :as Regions] ["wavesurfer.js/dist/plugin/wavesurfer.timeline.js" :as Timeline] ["/audio-script" :as AudioScript] [wavesurfer.js :as WaveSurferConstructor] [webchange.ui.components.audio-...
d1286267cd67227a7cab9a6792579643c87626a5075fe197b069a14423059a92
robertluo/fun-map
wrapper.cljc
(ns robertluo.fun-map.wrapper "Protocols that sharing with other namespaces") (defprotocol ValueWrapper "A wrapper for a value." (-wrapped? [this m] "is this a wrapper?") (-unwrap [this m k] "unwrap the real value from a wrapper on the key of k")) ;; Make sure common value is not wrapped #?(:clj (e...
null
https://raw.githubusercontent.com/robertluo/fun-map/ea2d418dac2b77171f877c4d6fbc4d14d72ea04d/src/robertluo/fun_map/wrapper.cljc
clojure
Make sure common value is not wrapped High order wrappers Fine print the wrappers
(ns robertluo.fun-map.wrapper "Protocols that sharing with other namespaces") (defprotocol ValueWrapper "A wrapper for a value." (-wrapped? [this m] "is this a wrapper?") (-unwrap [this m k] "unwrap the real value from a wrapper on the key of k")) #?(:clj (extend-protocol ValueWrapper Object ...
6ad15b05c5ef1476fa92655087b0b4babc02507a4267f9477e257a7e700fdaa5
fukamachi/gotanda
core.lisp
(eval-when (:compile-toplevel :load-toplevel :execute) (let ((*standard-output* (make-broadcast-stream))) (require 'asdf) (require 'lisp-unit) (require 'cl-interpol) (require 'gotanda))) (cl-interpol:enable-interpol-syntax) (clsql:enable-sql-reader-syntax) ;;==================== Initialize ;;======...
null
https://raw.githubusercontent.com/fukamachi/gotanda/d911fed8f839c172e67d17e52e3a913c042178b1/test/core.lisp
lisp
==================== ==================== drop all tables and create it again ==================== Test Start ==================== ==================== Test End ====================
(eval-when (:compile-toplevel :load-toplevel :execute) (let ((*standard-output* (make-broadcast-stream))) (require 'asdf) (require 'lisp-unit) (require 'cl-interpol) (require 'gotanda))) (cl-interpol:enable-interpol-syntax) (clsql:enable-sql-reader-syntax) Initialize (in-package :clsql) (got:initia...
6ffb0274d61ece7d6d992a3a940ea1f8665be47ce1e57605f28310c18850a938
seereason/atp-haskell
DP.hs
| The Davis - Putnam and Davis - Putnam - Loveland - Logemann procedures . -- Copyright ( c ) 2003 - 2007 , . ( See " LICENSE.txt " for details . ) # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # module Data.Logic.ATP.DP ( dp, dpsat, ...
null
https://raw.githubusercontent.com/seereason/atp-haskell/8b3431236369b9bf5b8723225f65cfac1832a0f9/src/Data/Logic/ATP/DP.hs
haskell
Examples. Example. | Iterative implementation with explicit trail instead of recursion. :: pf | With simple non-chronological backjumping and learning. | Examples.
| The Davis - Putnam and Davis - Putnam - Loveland - Logemann procedures . Copyright ( c ) 2003 - 2007 , . ( See " LICENSE.txt " for details . ) # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # module Data.Logic.ATP.DP ( dp, dpsat, d...
e6091c6560b6bf79c8c5184456af4b4ca485df4bdf870694a40a3f79b2e7775f
ocaml/opam
opamCliMain.mli
(**************************************************************************) (* *) (* Copyright 2020 OCamlPro *) (* *) (* All righ...
null
https://raw.githubusercontent.com/ocaml/opam/074df6b6d87d4114116ea41311892b342cfad3de/src/client/opamCliMain.mli
ocaml
************************************************************************ Copyright 2020 OCamlPro All rights reserved. This ...
GNU Lesser General Public License version 2.1 , with the special * Handles calling opam plugins ( à la git ) . E.g. [ opam publish ] runs [ opam - publish ] from PATH , with specific addition of and the current switch bin directory ) . Note that this does load some configuration and env ,...
faba9fca569dd7ab7f5992d11310ddb4f3e13fe7bf6268a3c2db99e8e480c85d
elastic/runbld
opts_test.clj
(ns runbld.opts-test (:require [clj-time.core :as t] [clojure.test :refer :all] [runbld.io :as io] [runbld.java :as java] [runbld.opts :as opts] [runbld.test-support :as ts] [schema.test])) (use-fixtures :once schema.test/validate-schemas) (use-fixtures :each (ts/redirect-logging-fixture)) (def...
null
https://raw.githubusercontent.com/elastic/runbld/7afcb1d95a464dc068f95abf3ad8a7566202ce28/test/runbld/opts_test.clj
clojure
user.dir and io/abspath (c: vs C:)
(ns runbld.opts-test (:require [clj-time.core :as t] [clojure.test :refer :all] [runbld.io :as io] [runbld.java :as java] [runbld.opts :as opts] [runbld.test-support :as ts] [schema.test])) (use-fixtures :once schema.test/validate-schemas) (use-fixtures :each (ts/redirect-logging-fixture)) (def...
db6d5c2869ab4d616b4668db6073768bc0c5a6dfc26ce8804d93e6a79b93a96b
EligiusSantori/L2Apf
server_list.scm
(module system racket/base (provide login-client-packet/server-list) (require "../../packet.scm") (define (login-client-packet/server-list struct) (let ((s (open-output-bytes))) (begin (write-byte #x05 s) (write-bytes (cdr (assoc 'login-key struct)) s) (write-byte #x04 s) (write-bytes...
null
https://raw.githubusercontent.com/EligiusSantori/L2Apf/30ffe0828e8a401f58d39984efd862c8aeab8c30/packet/login/client/server_list.scm
scheme
(module system racket/base (provide login-client-packet/server-list) (require "../../packet.scm") (define (login-client-packet/server-list struct) (let ((s (open-output-bytes))) (begin (write-byte #x05 s) (write-bytes (cdr (assoc 'login-key struct)) s) (write-byte #x04 s) (write-bytes...
e98fb6415defb120174118975176bee9ac8f9bd36b85979f55f76a20fdf4a548
heraldry/heraldicon
motto.cljs
(ns heraldicon.frontend.component.motto (:require [heraldicon.context :as c] [heraldicon.frontend.component.core :as component] [heraldicon.frontend.component.ribbon :as ribbon] [heraldicon.frontend.element.core :as element] [heraldicon.frontend.language :refer [tr]] [heraldicon.interface :as interf...
null
https://raw.githubusercontent.com/heraldry/heraldicon/f742958ce1e85f47c8222f99c6c594792ac5a793/src/heraldicon/frontend/component/motto.cljs
clojure
TODO: fix numbering/naming
(ns heraldicon.frontend.component.motto (:require [heraldicon.context :as c] [heraldicon.frontend.component.core :as component] [heraldicon.frontend.component.ribbon :as ribbon] [heraldicon.frontend.element.core :as element] [heraldicon.frontend.language :refer [tr]] [heraldicon.interface :as interf...
2870d78e72c3c79a39bb1e0d4c072fdca2a1b815d26cd5714a1442c7a1f698db
fdlk/advent-2019
project.clj
(defproject advent-2019 "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" :url "-2.0/"} :dependencies [[org.clojure/clojure "1.10.0"] [criterium "0.4.5"] [org.clojure/math.comb...
null
https://raw.githubusercontent.com/fdlk/advent-2019/e7496448f9b67a550ac091f0df24d9890f437766/project.clj
clojure
(defproject advent-2019 "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" :url "-2.0/"} :dependencies [[org.clojure/clojure "1.10.0"] [criterium "0.4.5"] [org.clojure/math.comb...
b050029b0f59cd726ad32f83406d5dc4ef73cdc95b9b61ad874e7056f5a41481
helmutkian/cl-wasm-runtime
test-engine.lisp
(in-package #:cl-wasm-runtime.test) (5am:def-suite cl-wasm-runtime.test.engine :in cl-wasm-runtime.test) (5am:in-suite cl-wasm-runtime.test.engine) (5am:test test-make-wasm-engine (5am:with-fixture test-module-fixture () (5am:finishes (let* ((engine (make-wasm-engine)) (store (make-wasm-store eng...
null
https://raw.githubusercontent.com/helmutkian/cl-wasm-runtime/a838629cd4c94c76034491dd0d7f8d10383603ed/test/test-engine.lisp
lisp
(in-package #:cl-wasm-runtime.test) (5am:def-suite cl-wasm-runtime.test.engine :in cl-wasm-runtime.test) (5am:in-suite cl-wasm-runtime.test.engine) (5am:test test-make-wasm-engine (5am:with-fixture test-module-fixture () (5am:finishes (let* ((engine (make-wasm-engine)) (store (make-wasm-store eng...
63c36b5a48ac69e3f4b0f1557dde38bae196bba82e2a79494f511e9d9ca31cb6
cmsc430/www
lambdas.rkt
#lang racket (require "ast.rkt") (provide lambdas lambdas-ds) Prog - > [ ] List all of the lambda expressions in p (define (lambdas p) (match p [(Prog ds) (lambdas-ds ds)])) Defns - > [ ] ;; List all of the lambda expressions in ds (define (lambdas-ds ds) (match ds ['() '()] [(cons (Def...
null
https://raw.githubusercontent.com/cmsc430/www/3a2cc63191b75e477660961794958cead7cae35a/langs/outlaw/lambdas.rkt
racket
List all of the lambda expressions in ds List all of the lambda expressions in e
#lang racket (require "ast.rkt") (provide lambdas lambdas-ds) Prog - > [ ] List all of the lambda expressions in p (define (lambdas p) (match p [(Prog ds) (lambdas-ds ds)])) Defns - > [ ] (define (lambdas-ds ds) (match ds ['() '()] [(cons (Defn f l) ds) (append (lambdas-e l) ...
0256d6112e1b6bd89fd8f18db0f26aa81537d74207f7f824b253c93b42f43398
nanit/kubernetes-custom-hpa
server.clj
(ns custom-hpa.web.server (:require [taoensso.timbre :as logger] [compojure.core :refer [defroutes GET]] [org.httpkit.server :as http-kit] [custom-hpa.monitor.prometheus :as prometheus])) (defonce ^:private server (atom nil)) (defroutes app-routes (GET "/ping" [] {:sta...
null
https://raw.githubusercontent.com/nanit/kubernetes-custom-hpa/e6f07f271336c3ede1e8cdfcf426f639469c2f33/app/src/custom_hpa/web/server.clj
clojure
(ns custom-hpa.web.server (:require [taoensso.timbre :as logger] [compojure.core :refer [defroutes GET]] [org.httpkit.server :as http-kit] [custom-hpa.monitor.prometheus :as prometheus])) (defonce ^:private server (atom nil)) (defroutes app-routes (GET "/ping" [] {:sta...
9b1f709d5d7659fd464f2aa3bb238c44ad79a967c180060d6ac22962712e8726
tek/ribosome
Settings.hs
|The effect ' Settings ' abstracts Neovim variables module Ribosome.Effect.Settings where import Prelude hiding (get) import Ribosome.Data.Setting (Setting) import Ribosome.Data.SettingError (SettingError) import Ribosome.Host.Class.Msgpack.Decode (MsgpackDecode) import Ribosome.Host.Class.Msgpack.Encode (MsgpackEn...
null
https://raw.githubusercontent.com/tek/ribosome/a676b4f0085916777bfdacdcc761f82d933edb80/packages/ribosome/lib/Ribosome/Effect/Settings.hs
haskell
has no default value. default value.
|The effect ' Settings ' abstracts Neovim variables module Ribosome.Effect.Settings where import Prelude hiding (get) import Ribosome.Data.Setting (Setting) import Ribosome.Data.SettingError (SettingError) import Ribosome.Host.Class.Msgpack.Decode (MsgpackDecode) import Ribosome.Host.Class.Msgpack.Encode (MsgpackEn...
5556b21c19bbffd27cfc3f96ab5e94bc7bcee4fedde4332d71bc96aa35a5fd1c
wireapp/wire-server
V72_DropManagedConversations.hs
-- This file is part of the Wire Server implementation. -- Copyright ( C ) 2022 Wire Swiss GmbH < > -- -- This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License...
null
https://raw.githubusercontent.com/wireapp/wire-server/40f81847fc80c564f8d356d32c5063470f8a7315/services/galley/schema/src/V72_DropManagedConversations.hs
haskell
This file is part of the Wire Server implementation. This program is free software: you can redistribute it and/or modify it under later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTI...
Copyright ( C ) 2022 Wire Swiss GmbH < > the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any You should have received a copy of the GNU Affero General Public License along module V72_DropManagedConversati...
6f45f44ec4a2a9ab25b24f79640e5167391ca5027c99f8d559a9e3de6de4a91e
tech-sketch/functional_programming_parallelism_sample
core.clj
(ns par3.core (:require [clojure.java.io :as io] [clojure.string :as cs]) (:import [org.atilika.kuromoji Tokenizer Token]) (:gen-class)) (defn readFile [file enc] (with-open [rdr (io/reader file :encoding enc)] (doall (line-seq rdr)))) (defn morphological [lines] (let [tokenizer (.build (To...
null
https://raw.githubusercontent.com/tech-sketch/functional_programming_parallelism_sample/7d045754363aaa7768e2732dba13cd56ccab120f/clojure/par3/src/par3/core.clj
clojure
(ns par3.core (:require [clojure.java.io :as io] [clojure.string :as cs]) (:import [org.atilika.kuromoji Tokenizer Token]) (:gen-class)) (defn readFile [file enc] (with-open [rdr (io/reader file :encoding enc)] (doall (line-seq rdr)))) (defn morphological [lines] (let [tokenizer (.build (To...
3b61e522169f4fe2e283664a8d02b81eda05ed529edc87809a1e9dedcd78427b
ghcjs/ghcjs-base
Types.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE TypeFamilies # # LANGUAGE DataKinds # # LANGUAGE PolyKinds # module JavaScript.TypedArray.Internal.Types where import GHCJS.Types import GHCJS.Internal.Types import Data.Int import Data.Typeable import Data.Word newtype SomeTypedArray (e :: TypedArrayElem) (m :: Mutabi...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-base/18f31dec5d9eae1ef35ff8bbf163394942efd227/JavaScript/TypedArray/Internal/Types.hs
haskell
# LANGUAGE DeriveDataTypeable # ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- --------------------------------------------------...
# LANGUAGE TypeFamilies # # LANGUAGE DataKinds # # LANGUAGE PolyKinds # module JavaScript.TypedArray.Internal.Types where import GHCJS.Types import GHCJS.Internal.Types import Data.Int import Data.Typeable import Data.Word newtype SomeTypedArray (e :: TypedArrayElem) (m :: MutabilityType s) = SomeTypedArray JSVal...
57001772b5e4b5fe3a968ee7a6a985739d9c4f5e448af53722046d7f769033a4
Eonblast/Trinity
hello.erl
: Supervisor and Gen Server Skeleton % ----------------------------------------------- file : eonbeam / dev/3 / i_supervisortest2 / hello.erl % This file is just a preliminary test, not really important. % Starts, tests and terminates the hello_gen_server directly, without supervisor. % Then uses the supervisor t...
null
https://raw.githubusercontent.com/Eonblast/Trinity/15bcc0fa0997d7dd360f1542493e63208645bd88/i_supervisortest2/hello.erl
erlang
----------------------------------------------- This file is just a preliminary test, not really important. Starts, tests and terminates the hello_gen_server directly, without supervisor. Then uses the supervisor to start and restart the genserver, checking responses. Start with: erl -s hello run -s init stop -nos...
: Supervisor and Gen Server Skeleton file : eonbeam / dev/3 / i_supervisortest2 / hello.erl -module(hello). -export([run/0]). run() -> io:format("hello: starting gen_server (directly, stand alone)~n"), {ok, GenServer} = hello_gen_server:start_link(), io:format("hello: sending hello to gen_server~n"), wo...
13ebe7d675e0a30c500fa49b313114c8fc0f3f096cda37d3ef9c28aafed4f833
dym/movitz
functions.lisp
;;;;------------------------------------------------------------------ ;;;; Copyright ( C ) 2001 - 2005 , Department of Computer Science , University of Tromso , Norway . ;;;; ;;;; For distribution policy, see the accompanying file COPYING. ;;;; ;;;; Filename: functions.lisp ;;;; Description: Mis...
null
https://raw.githubusercontent.com/dym/movitz/56176e1ebe3eabc15c768df92eca7df3c197cb3d/losp/muerte/functions.lisp
lisp
------------------------------------------------------------------ For distribution policy, see the accompanying file COPYING. Filename: functions.lisp Description: Misc. function-oriented functions ------------------------------------------------------------------ ...
Copyright ( C ) 2001 - 2005 , Department of Computer Science , University of Tromso , Norway . Author : < > Created at : Tue Mar 12 22:58:54 2002 $ I d : functions.lisp , v 1.32 2009 - 07 - 19 18:58:33 Exp $ (require :muerte/basic-macros) (require :muerte/setf) (provide :muerte/functio...
c482c9840095b56678833eacb709269c400b4c4274ea224de3aabf9f63d23892
winny-/aoc
day03.rkt
#lang racket (define (read2 ip) (match (read-line ip) [(? eof-object? e) e] [s (string->number s 2)])) (define (integer-width i) (let loop ([n i]) (if (zero? n) 0 (add1 (loop (arithmetic-shift n -1)))))) (define (part1 ls) (define width (integer-width (argmax identity ls))) (defin...
null
https://raw.githubusercontent.com/winny-/aoc/76902981237b7e7a5a486e6c56e4a95cca0779af/2021/day03/day03.rkt
racket
Local Variables: compile-command: "racket day03.rkt < sample.txt" End:
#lang racket (define (read2 ip) (match (read-line ip) [(? eof-object? e) e] [s (string->number s 2)])) (define (integer-width i) (let loop ([n i]) (if (zero? n) 0 (add1 (loop (arithmetic-shift n -1)))))) (define (part1 ls) (define width (integer-width (argmax identity ls))) (defin...
7b864105103d04fc494d1f64258cc57465e4299e78af2161c3b5d7ff72ef8b4c
qkrgud55/ocamlmulti
globroots.ml
module type GLOBREF = sig type t val register: string -> t val get: t -> string val set: t -> string -> unit val remove: t -> unit end module Classic : GLOBREF = struct type t external register: string -> t = "gb_classic_register" external get: t -> string = "gb_get" external set: t -> string -> unit...
null
https://raw.githubusercontent.com/qkrgud55/ocamlmulti/74fe84df0ce7be5ee03fb4ac0520fb3e9f4b6d1f/testsuite/tests/gc-roots/globroots.ml
ocaml
update with young value update with old value re-register young value
module type GLOBREF = sig type t val register: string -> t val get: t -> string val set: t -> string -> unit val remove: t -> unit end module Classic : GLOBREF = struct type t external register: string -> t = "gb_classic_register" external get: t -> string = "gb_get" external set: t -> string -> unit...
946380b2fd074e0dbe6a19e3bc3e5e847cf97df8401cfacfe636c95dbdd70aa1
craigfe/ppx_effects
main.ml
open Stdlib.Effect open Stdlib.Effect.Deep exception%effect E : string let comp () = print_string "0 "; print_string (perform E); print_string "3 " let () = try comp () with [%effect? E, k] -> print_string "1 "; continue k "2 "; print_string "4 " let () = match comp () with | e -> e | [%...
null
https://raw.githubusercontent.com/craigfe/ppx_effects/ea728e6de95838c2c7df380b301b5e88dafa40d7/test/passing/main.ml
ocaml
open Stdlib.Effect open Stdlib.Effect.Deep exception%effect E : string let comp () = print_string "0 "; print_string (perform E); print_string "3 " let () = try comp () with [%effect? E, k] -> print_string "1 "; continue k "2 "; print_string "4 " let () = match comp () with | e -> e | [%...
2814fdadc718fe7de3d95b85359dcdc444d9fe483c18065f1ce1cc69ce1d9262
ericclack/overtone-loops
drums1.clj
(ns overtone-loops.music.drums1 (:use [overtone.live] [overtone-loops.loops] [overtone-loops.samples])) (set-up) ;; 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & (defloop ticks 1 cymbal-pedal [4 3 4 3 ]) (defloop hats 1/2 cymbal-closed [_ 5 _ 7 _ 7 _ 7]) (...
null
https://raw.githubusercontent.com/ericclack/overtone-loops/54b0c230c1e6bd3d378583af982db4e9ae4bda69/src/overtone_loops/music/drums1.clj
clojure
1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & ---------------------------------------------
(ns overtone-loops.music.drums1 (:use [overtone.live] [overtone-loops.loops] [overtone-loops.samples])) (set-up) (defloop ticks 1 cymbal-pedal [4 3 4 3 ]) (defloop hats 1/2 cymbal-closed [_ 5 _ 7 _ 7 _ 7]) (defloop crashes 1 cymbal-open [_ _ 3 _ _ _ _ _ ]) ...
4036f3998bdc0307f9b6972e7c035b8495c6fa866c3dacfe002e2d9dedbf75b2
samrushing/irken-compiler
aa_map.scm
;; -*- Mode: Irken -*- ;; Note : for a while this was used as the main mapping data structure for Irken . in late 2016 I removed recursive types from the compiler , added a delete ! ;; to the red-black code, and deprecated this module. It's possible to rewrite ;; this using a datatype to capture the recur...
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/lib/aa_map.scm
scheme
-*- Mode: Irken -*- to the red-black code, and deprecated this module. It's possible to rewrite this using a datatype to capture the recursion, I just haven't bothered yet. implementation, and if possible make skew & split tail-recursive by making them work from the bottom up rather than top down. [anoth...
Note : for a while this was used as the main mapping data structure for Irken . in late 2016 I removed recursive types from the compiler , added a delete ! this code is based on the C examples given by , and as such is n't very representative of an Irken / ML style . I 'd like to make a pure functio...
61161d98ad8d27bfea13c42e622b2010cf588f2f1b732bbe24bb843fcb01cb3e
gergoerdi/tandoori
var.hs
data Foo = Foo1 | Foo2 data Bar = Bar1 | Bar2 test = let v1 = Foo1 v2 = Bar1 (v3, v4) = (Foo2, Bar2) in (v1, v2, v3, v4)
null
https://raw.githubusercontent.com/gergoerdi/tandoori/515142ce76b96efa75d7044c9077d85394585556/input/var.hs
haskell
data Foo = Foo1 | Foo2 data Bar = Bar1 | Bar2 test = let v1 = Foo1 v2 = Bar1 (v3, v4) = (Foo2, Bar2) in (v1, v2, v3, v4)
fc3e45b9e8ad820a34f50080519775dc2ef14bab3dfd22d972a97de84d314312
oshyshko/adventofcode
D03.hs
module Y15.D03 where import qualified Data.Set as S import Geom.XY import Imports char2move :: Char -> XY char2move = \case '<' -> XY (-1) 0 '^' -> XY 0 (-1) '>' -> XY 1 0 'v' -> XY 0 1 x -> error $ "Unexpected character: " ++ [x] ^^<<v<<v><v^^<><>^^ ... m...
null
https://raw.githubusercontent.com/oshyshko/adventofcode/95b6bb4d514cf02680ba1a62de5a5dca2bf9e92d/src/Y15/D03.hs
haskell
module Y15.D03 where import qualified Data.Set as S import Geom.XY import Imports char2move :: Char -> XY char2move = \case '<' -> XY (-1) 0 '^' -> XY 0 (-1) '>' -> XY 1 0 'v' -> XY 0 1 x -> error $ "Unexpected character: " ++ [x] ^^<<v<<v><v^^<><>^^ ... m...
f5db6d29661b3eb49fb1c23beb15c0f66da0be72c8d31848085e21b169305dcb
ssadler/zeno
TestUtils.hs
module TestUtils ( module Out , module TestUtils_Node , (@?=) ) where import Control.Monad.Logger import Test.Tasty.HUnit as Out hiding ((@?=)) import Test.Hspec as Out import Test.QuickCheck as Out hiding (Fixed) import Test.Tasty.QuickCheck as Out hiding (Fixed) import Test.Tasty as Out hiding (after, afte...
null
https://raw.githubusercontent.com/ssadler/zeno/9f715d7104a7b7b00dee9fe35275fb217532fdb6/test/TestUtils.hs
haskell
module TestUtils ( module Out , module TestUtils_Node , (@?=) ) where import Control.Monad.Logger import Test.Tasty.HUnit as Out hiding ((@?=)) import Test.Hspec as Out import Test.QuickCheck as Out hiding (Fixed) import Test.Tasty.QuickCheck as Out hiding (Fixed) import Test.Tasty as Out hiding (after, afte...
361622beffcc864e84934b338edc944fc4e036b6e9dd4f50b28e7183c58f2e84
mrosset/nomad
guix-local.scm
;; guix-local.scm Copyright ( C ) 2017 - 2019 < > This file is part of Nomad Nomad is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ;; (at your option) any late...
null
https://raw.githubusercontent.com/mrosset/nomad/c94a65ede94d86eff039d2ef62d5ef3df609568a/guix-local.scm
scheme
guix-local.scm (at your option) any later version. 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. with this program. If not, see </>.
Copyright ( C ) 2017 - 2019 < > This file is part of Nomad Nomad is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or Nomad is distributed in the hope that it wi...
95137233bdfc96dc3f260c247094f44efbb96d319a1273d14b481b64034572fa
helium/blockchain-http
bh_route_snapshots_SUITE.erl
-module(bh_route_snapshots_SUITE). -compile([nowarn_export_all, export_all]). -include("ct_utils.hrl"). -include("../src/bh_route_handler.hrl"). all() -> [ list_test, current_test ]. init_per_suite(Config) -> ?init_bh(Config). end_per_suite(Config) -> ?end_bh(Config). list_test...
null
https://raw.githubusercontent.com/helium/blockchain-http/3d17c608891b758a6bee1cab42cae35357cde57f/test/bh_route_snapshots_SUITE.erl
erlang
-module(bh_route_snapshots_SUITE). -compile([nowarn_export_all, export_all]). -include("ct_utils.hrl"). -include("../src/bh_route_handler.hrl"). all() -> [ list_test, current_test ]. init_per_suite(Config) -> ?init_bh(Config). end_per_suite(Config) -> ?end_bh(Config). list_test...
7f216f4e229ce09d9770f6d49c076d10e32374232d84188a4ecbb37b23edcbfe
helmutkian/cl-wasm-runtime
wasm-module.lisp
(in-package #:cl-wasm-runtime) (define-wasm-sharable-ref module) (cffi:defcfun "wasm_module_new" %wasm-module-type ; own (store %wasm-store-type) (binary %wasm-byte-vec-type)) (cffi:defcfun "wasm_module_validate" :boolean (store %wasm-store-type) (binary %wasm-byte-vec-type)) (cffi:defcfun "wasm_module_impo...
null
https://raw.githubusercontent.com/helmutkian/cl-wasm-runtime/4ce7085d49fe983700db34fb0bad0997aa5c7da8/wasm-module.lisp
lisp
own
(in-package #:cl-wasm-runtime) (define-wasm-sharable-ref module) (store %wasm-store-type) (binary %wasm-byte-vec-type)) (cffi:defcfun "wasm_module_validate" :boolean (store %wasm-store-type) (binary %wasm-byte-vec-type)) (cffi:defcfun "wasm_module_imports" :void (module %wasm-module-type) (out %wasm-imp...
9710199573b61cbc0d0d49421ce16613f212b8701e65a897e00d28515f804c9e
ThoughtWorksInc/stonecutter
map.clj
(ns stonecutter.util.map) (defn deep-merge "Recursively merges maps. If keys are not maps, the last value wins." [& vals] (if (every? map? vals) (apply merge-with deep-merge vals) (last vals)))
null
https://raw.githubusercontent.com/ThoughtWorksInc/stonecutter/37ed22dd276ac652176c4d880e0f1b0c1e27abfe/src/stonecutter/util/map.clj
clojure
(ns stonecutter.util.map) (defn deep-merge "Recursively merges maps. If keys are not maps, the last value wins." [& vals] (if (every? map? vals) (apply merge-with deep-merge vals) (last vals)))
537c1082c4af191044769ececfb82affccfdb4a50f2a386cafe093d88fc17008
clojure/jvm.tools.analyzer
reflection.clj
Copyright ( c ) and contributors . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this distribution. ; By using this software in any fashion, you are agreeing t...
null
https://raw.githubusercontent.com/clojure/jvm.tools.analyzer/15ca8ddc5f966c3cb964b17171803ec367fa5861/src/main/clojure/clojure/jvm/tools/analyzer/examples/reflection.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) and contributors . All rights reserved . (ns clojure.jvm.tools.analyzer.examples.reflection "Same as *warn-on-reflection*" (:require [clojure.jvm.tools.analyzer :as analyze])) (defn check-new [exp] (when (not (:ctor exp)) (println "WARNING: Unresolved constructor" (:class exp) (-> exp ...
2848ef75eeaac58979dde6d9b00db0b043b7c633771cf43479a61d4c3a4f259c
camllight/camllight
source.ml
(************************ Source management ****************************) #open "misc";; #open "primitives";; (*** Conversion function. ***) let source_of_module module = find_in_path (module ^ ".ml");; (*** Buffer cache ***) (* Buffer and cache (to associate lines and positions in the buffer). *) type BUFFER ==...
null
https://raw.githubusercontent.com/camllight/camllight/0cc537de0846393322058dbb26449427bfc76786/sources/contrib/debugger/source.ml
ocaml
*********************** Source management *************************** ** Conversion function. ** ** Buffer cache ** Buffer and cache (to associate lines and positions in the buffer). ** Position conversions. ** Insert a new pair (position, line) in the cache of the given buffer. Position of the next linefeed after...
#open "misc";; #open "primitives";; let source_of_module module = find_in_path (module ^ ".ml");; type BUFFER == string * (int * int) list ref;; let buffer_max_count = ref 10;; let cache_size = 30;; let buffer_list = ref ([] : (string * BUFFER) list);; let flush_buffer_list () = buffer_list := [];; let ...
35850d6f846001fa39f4b9402a612b8296e6c6c386c182ffa90b6265ab8c150a
earl-ducaine/cl-garnet
garnet-errors.lisp
;;; -*- Mode: COMMON-LISP; Package: GARNET-GADGETS -*- ;; ;;-------------------------------------------------------------------;; Copyright 1993 ; ; ;;-------------------------------------------------------------------;; ;; This code is in the Public Domain. Anyone ...
null
https://raw.githubusercontent.com/earl-ducaine/cl-garnet/f0095848513ba69c370ed1dc51ee01f0bb4dd108/src/protected-eval/garnet-errors.lisp
lisp
-*- Mode: COMMON-LISP; Package: GARNET-GADGETS -*- ;; -------------------------------------------------------------------;; ; -------------------------------------------------------------------;; This code is in the Public Domain. Anyone who can get some use ;; from it is welcome. ...
$ Id$ (in-package "GARNET-GADGETS") the abstract error handling facilities in abstract-errors.lisp . This file must be loaded after abstract-errors.lisp . (defun protect-errors (context condition &key (allow-debugger (eql *user-type* :programmer))) "Error handler which prompts user for a ch...
cb808f2fbc29b5dc2c54395a448d9ff1affef84dab507039e6b0d21489950fe9
ocaml/opam
opamSwitchState.mli
(**************************************************************************) (* *) Copyright 2012 - 2020 OCamlPro Copyright 2012 INRIA (* ...
null
https://raw.githubusercontent.com/ocaml/opam/c9ab85dec017d0392bffaf7fb238bad8fa8c1285/src/state/opamSwitchState.mli
ocaml
************************************************************************ All rights reserved. This file is distributed under the terms of the exception on linking descr...
Copyright 2012 - 2020 OCamlPro Copyright 2012 INRIA GNU Lesser General Public License version 2.1 , with the special open OpamTypes open OpamStateTypes val load: 'a lock -> 'b global_state -> 'c repos_state ...
39581806ec8205e214db673399c0bd66eadc5882a833c30a2fd872abbf86c963
nuprl/gradual-typing-performance
lang.rkt
#lang racket/base (require scribble/doclang scribble/base) (provide (all-from-out scribble/doclang scribble/base))
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/pre-benchmark/ecoop/scribble-lib/scribble/base/lang.rkt
racket
#lang racket/base (require scribble/doclang scribble/base) (provide (all-from-out scribble/doclang scribble/base))
0f9b8680d8e2081cff9d657fdf03c2691382b7d957336f859480dc97b1eaa118
AdRoll/rebar3_format
types.erl
-module(types). -type my_int() :: undefined | integer(). -type person() :: #{name := binary() | string(), age := my_int()}. -type team() :: #{members := [person()], leader := person()}. -type big_team() :: #{members := [team()], office_address => my_int}.
null
https://raw.githubusercontent.com/AdRoll/rebar3_format/5ffb11341796173317ae094d4e165b85fad6aa19/test_app/after/src/otp_samples/types.erl
erlang
-module(types). -type my_int() :: undefined | integer(). -type person() :: #{name := binary() | string(), age := my_int()}. -type team() :: #{members := [person()], leader := person()}. -type big_team() :: #{members := [team()], office_address => my_int}.
afd5613046792e69511d7864cc5839bc3393178fd4874275129864711e024b50
takikawa/racket-ppa
error.rkt
#lang racket/base (require "../host/rktio.rkt" "../host/error.rkt" "../error/message.rkt") (provide raise-network-error raise-network-arguments-error raise-network-option-error) (define (raise-network-error who orig-err base-msg) (define err (remap-rktio-error orig-err)) (defin...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/caff086a1cd48208815cec2a22645a3091c11d4c/src/io/network/error.rkt
racket
#lang racket/base (require "../host/rktio.rkt" "../host/error.rkt" "../error/message.rkt") (provide raise-network-error raise-network-arguments-error raise-network-option-error) (define (raise-network-error who orig-err base-msg) (define err (remap-rktio-error orig-err)) (defin...
77283080f239b66c957f45b2a90a905f0c919186af13b51b6382b21f2f791f68
BranchTaken/Hemlock
test_cmp.ml
open! Basis.Rudiments open! Basis open String let test () = let strs = [ ""; "a"; "aa"; "ab"; "aa"; "a"; ""; ] in let rec fn s strs = begin match strs with | [] -> () | hd :: tl -> begin let () = List.iter strs ~f:(fun s2 -> File.Fmt.stdout |> B...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/f3604ceda4f75cf18b6ee2b1c2f3c5759ad495a5/bootstrap/test/basis/string/test_cmp.ml
ocaml
open! Basis.Rudiments open! Basis open String let test () = let strs = [ ""; "a"; "aa"; "ab"; "aa"; "a"; ""; ] in let rec fn s strs = begin match strs with | [] -> () | hd :: tl -> begin let () = List.iter strs ~f:(fun s2 -> File.Fmt.stdout |> B...
32383feff71aefff688b43323148d7385f78150b3e63cbb4243846545c654efc
statebox/cql
Instance.hs
SPDX - License - Identifier : AGPL-3.0 - only This file is part of ` statebox / cql ` , the categorical query language . Copyright ( C ) 2019 < This program is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free So...
null
https://raw.githubusercontent.com/statebox/cql/b155e737ef4977ec753e44790f236686ff6a4558/src/Language/CQL/Instance.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE ExplicitForAll # # LANGUAGE FlexibleContexts # # LANGUAGE LiberalTypeSynonyms # # LANGUAGE RankNTypes # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeOperators # # LANGUAGE TypeSynonymInstances # | A ...
SPDX - License - Identifier : AGPL-3.0 - only This file is part of ` statebox / cql ` , the categorical query language . Copyright ( C ) 2019 < This program is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free So...
46e2e67699ad2f8851ea3f6fe9a90ee565bd3efc9928c7fd9ad968d0847bdcc4
faylang/fay
CompileError.hs
module Fay.Types.CompileError (CompileError (..)) where import qualified Fay.Exts as F import qualified Fay.Exts.NoAnnotation as N import qualified Fay.Exts.Scoped as S import Language.Haskell.Exts -- | Error type. data CompileError = Couldn'tFindImport N....
null
https://raw.githubusercontent.com/faylang/fay/8455d975f9f0db2ecc922410e43e484fbd134699/src/Fay/Types/CompileError.hs
haskell
| Error type. # ANN module "HLint: ignore Use camelCase" #
module Fay.Types.CompileError (CompileError (..)) where import qualified Fay.Exts as F import qualified Fay.Exts.NoAnnotation as N import qualified Fay.Exts.Scoped as S import Language.Haskell.Exts data CompileError = Couldn'tFindImport N.ModuleName [FileP...
a2f4242718ebd0e99060a629632821ea4b713589b9f3789c6e547aade2b9707a
ku-fpg/hermit
ShellEffect.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE KindSignatures # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # module HERMIT.Shell.ShellEffect ( ShellEffe...
null
https://raw.githubusercontent.com/ku-fpg/hermit/3e7be430fae74a9e3860b8b574f36efbf9648dec/src/HERMIT/Shell/ShellEffect.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE GADTs # -------------------------------------------------------------------------------- --------------------------------------------------------------------------------
# LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE KindSignatures # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # module HERMIT.Shell.ShellEffect ( ShellEffect(..) , ShellEffectBox(..) , performShellEffect...
d588e1f5bf74b5f7b45a9656cac64e4e839e1faac9b8fce8d101a56d7bfd77e9
UBTECH-Walker/WalkerSimulationFor2020WAIC
_package_EcatSetZero.lisp
(cl:in-package servo_ctrl-srv) (cl:export '(SERVO-VAL SERVO RESULT-VAL RESULT ))
null
https://raw.githubusercontent.com/UBTECH-Walker/WalkerSimulationFor2020WAIC/7cdb21dabb8423994ba3f6021bc7934290d5faa9/walker_WAIC_18.04_v1.2_20200616/walker_install/share/common-lisp/ros/servo_ctrl/srv/_package_EcatSetZero.lisp
lisp
(cl:in-package servo_ctrl-srv) (cl:export '(SERVO-VAL SERVO RESULT-VAL RESULT ))