_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
6182865ab81b9700e47a9d8da68942dc5690da44420cc9d9602a82dd216f6612
ocaml/ocaml-lsp
w.ml
open Import open Pp.O open Pp type t = unit Pp.t type w = t (* This module contains all the writing primitives *) let ident = verbatim let i = verbatim let quoted s = i (sprintf "%S" s) let surround delim a = let start, finish = match delim with | `Paren -> (i "(", i ")") | `Curly -> (i "{", i "}")...
null
https://raw.githubusercontent.com/ocaml/ocaml-lsp/6a38d66c57930c6ef5ac67d740a51e2d9551f93f/lsp/bin/ocaml/w.ml
ocaml
This module contains all the writing primitives
open Import open Pp.O open Pp type t = unit Pp.t type w = t let ident = verbatim let i = verbatim let quoted s = i (sprintf "%S" s) let surround delim a = let start, finish = match delim with | `Paren -> (i "(", i ")") | `Curly -> (i "{", i "}") | `Square -> (i "[", i "]") in Pp.concat [ st...
08920ddd2efe7905547dc341022fe938edb98d80e4a41e649a169f64ca9c053a
owainlewis/ocaml-datastructures-algorithms
sorting.ml
module Algorithms = struct let rec bubble: 'a list -> 'a list = fun xs -> let rec aux ys = match ys with | [] -> [] | x::[] -> [x] | x::y::xs when x > y -> y::aux(x::xs) | x::y::xs -> x :: aux(y::xs) in let sweep = aux xs in if sweep = xs then sweep else bubble sweep...
null
https://raw.githubusercontent.com/owainlewis/ocaml-datastructures-algorithms/4696fa4f5a015fc18e903b0b9ba2a1a8013a40ce/src/sorting.ml
ocaml
module Algorithms = struct let rec bubble: 'a list -> 'a list = fun xs -> let rec aux ys = match ys with | [] -> [] | x::[] -> [x] | x::y::xs when x > y -> y::aux(x::xs) | x::y::xs -> x :: aux(y::xs) in let sweep = aux xs in if sweep = xs then sweep else bubble sweep...
670792eb4f61b62fcb471aee7a988729f5c80fabd832e8cf0413d9b540d918c4
rizo/snowflake-os
printlinear.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/rizo/snowflake-os/51df43d9ba715532d325e8880d3b8b2c589cd075/plugins/ocamlopt.opt/asmcomp/printlinear.mli
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 Q Public License version 1.0 . $ Id$ open Format open Linearize v...
0da333c93c8491d4662e55a5f5f736870359ac2444989dd2b858199c6c859e0f
openmusic-project/OMChroma
specenv-model.lisp
;===================================================== ; CHROMA ;===================================================== part of the OMChroma library - > High - level control of sound synthesis in OM ;===================================================== ; ;This program is free software; you can redistribute it and/...
null
https://raw.githubusercontent.com/openmusic-project/OMChroma/5ded34f22b59a1a93ea7b87e182c9dbdfa95e047/sources/chroma/models/specenv-model.lisp
lisp
===================================================== CHROMA ===================================================== ===================================================== This program is free software; you can redistribute it and/or either version 2 of the License, or (at your option) any later version. See file LIC...
part of the OMChroma library - > High - level control of sound synthesis in OM modify it under the terms of the GNU General Public License (in-package :chroma) (defclass model-specenv (chroma-model) ((timelist :accessor timelist :documentation "temps des enveloppes") (envlist :accessor envlist ...
2b51316962a24ca52c982647469c571a493f9a818e33e633ae8756931d1cbf02
dym/movitz
integers.lisp
;;;;------------------------------------------------------------------ ;;;; Copyright ( C ) 2000 - 2005 , Department of Computer Science , University of Tromso , Norway ;;;; ;;;; Filename: integers.lisp Description : Arithmetics . Author : < > ;;;; Created at: Wed Nov 8 18:44:57 ...
null
https://raw.githubusercontent.com/dym/movitz/56176e1ebe3eabc15c768df92eca7df3c197cb3d/losp/muerte/integers.lisp
lisp
------------------------------------------------------------------ Filename: integers.lisp Created at: Wed Nov 8 18:44:57 2000 Distribution: See the accompanying file COPYING. ------------------------------------------------------------------ unspecified both were fi...
Copyright ( C ) 2000 - 2005 , Department of Computer Science , University of Tromso , Norway Description : Arithmetics . Author : < > $ I d : , v 1.128 2008 - 04 - 27 19:41:10 Exp $ (require :muerte/basic-macros) (require :muerte/typep) (require :muerte/arithmetic-macros) (provide :mue...
0584e662453c3fb2f104176dad5efa10d3af3774ae95c5b4eefd3c757b071751
Reisen/pixel
UpdatePasswordUser.hs
module API.User.Routes.UpdatePasswordUser ( postUpdatePassword ) where import Protolude hiding ( hash ) import Servant import Data.UUID ( fromText ) import Crypto.Random ( getRandomBytes ) import Crypto.Hash ( Digest, SHA3_224(..), hash ) impo...
null
https://raw.githubusercontent.com/Reisen/pixel/9096cc2c5b909049cdca6d14856ffc1fc99d81b5/src/app/API/User/Routes/UpdatePasswordUser.hs
haskell
------------------------------------------------------------------------------
module API.User.Routes.UpdatePasswordUser ( postUpdatePassword ) where import Protolude hiding ( hash ) import Servant import Data.UUID ( fromText ) import Crypto.Random ( getRandomBytes ) import Crypto.Hash ( Digest, SHA3_224(..), hash ) impo...
82331cd673091d5ef072d810a16766687c9cd1bb71831f16417c56d354b13fca
marigold-dev/mankavar
main.ml
let () = let open Ml_main.TBytes.Raw in let ptr = malloc 50 in Format.printf "Raw ptr as int:\t%d@;%!" ptr ; Format.printf "Value int64:\t%Ld@;%!" @@ get_int64 ptr ; Format.printf "Value int:\t%d@;%!" @@ get_int ptr ; free ptr ; ()
null
https://raw.githubusercontent.com/marigold-dev/mankavar/8afac59f0045d096b8eac3184fda805d8177723f/experiments/externals/test/main.ml
ocaml
let () = let open Ml_main.TBytes.Raw in let ptr = malloc 50 in Format.printf "Raw ptr as int:\t%d@;%!" ptr ; Format.printf "Value int64:\t%Ld@;%!" @@ get_int64 ptr ; Format.printf "Value int:\t%d@;%!" @@ get_int ptr ; free ptr ; ()
8154850944cf25a9814a892b8ad05ebc57d1061986150395da3cda8b88e4af3e
bob-cd/bob
main.clj
; Copyright 2018- Rahul De ; Use of this source code is governed by an MIT - style ; license that can be found in the LICENSE file or at ; . (ns apiserver.main (:require [apiserver.system :as system] [clojure.repl :as repl] [clojure.tools.logging :as log]) (:gen-class)) (defn shutdown! [& _] (log/i...
null
https://raw.githubusercontent.com/bob-cd/bob/72ee2dd1c58fbbeff2c63333732eefa260e5d0cf/apiserver/src/apiserver/main.clj
clojure
Copyright 2018- Rahul De license that can be found in the LICENSE file or at .
Use of this source code is governed by an MIT - style (ns apiserver.main (:require [apiserver.system :as system] [clojure.repl :as repl] [clojure.tools.logging :as log]) (:gen-class)) (defn shutdown! [& _] (log/info "Received SIGINT, Shutting down ...") (system/stop) (shutdown-agents) (log/in...
e1d07ee148ded5a13e0cb929bcb6e09c72f4108e49abb850ba31a2048d0026e4
tweag/servant-oauth2
Hacks.hs
| A collection of hacky functions needed to work around the fact that ' ' is presently defined in terms of , and , really , we want something that is defined for Servant . A collection of hacky functions needed to work around the fact that 'wai-middleware-auth' is presently defined in terms of Wai, and, r...
null
https://raw.githubusercontent.com/tweag/servant-oauth2/b8a6e9189986167ef9f4ada1f93e673e9fdd305b/src/Servant/OAuth2/Hacks.hs
haskell
| For some settings specialised to 'Github', return the login url. | An extremely unfortunate way of getting the redirect URL; stolen from
| A collection of hacky functions needed to work around the fact that ' ' is presently defined in terms of , and , really , we want something that is defined for Servant . A collection of hacky functions needed to work around the fact that 'wai-middleware-auth' is presently defined in terms of Wai, and, r...
08b11922f849bf55834acabb28c668061cdac309728bcfcc95b55297dbaad9ea
alekcz/pcp
includes_test.clj
(ns pcp.includes-test (:require [clojure.test :refer [deftest is testing]] [pcp.includes :as includes])) (deftest extract-namespace-test (testing "Test extracting namespaces" (let [result (includes/extract-namespace 'pcp.includes) ans {'includes #'pcp.includes/includes, 'extract-namespace...
null
https://raw.githubusercontent.com/alekcz/pcp/400844c1f13e3cc51ee6db67d3e2d12e0e776b8f/test/pcp/includes_test.clj
clojure
(ns pcp.includes-test (:require [clojure.test :refer [deftest is testing]] [pcp.includes :as includes])) (deftest extract-namespace-test (testing "Test extracting namespaces" (let [result (includes/extract-namespace 'pcp.includes) ans {'includes #'pcp.includes/includes, 'extract-namespace...
0a1fa367a8402d74f2804d201929aaad6e5ab7a2f33e4da6f1662ec51e6bbf10
c4-project/c4f
flow_for.ml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
null
https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/fuzz_actions/src/flow_for.ml
ocaml
Shared with Flow_while. These may induce atomic loads, and so can't be in atomic blocks. Note that this sets the known value of the loop counter to 0, so we have to erase it again; otherwise, the for loop's activity on the loop counter would be ignored by the rest of the fuzzer and ...
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
564ed9194bfcc83a39d5f417767e6ac6c84edc079185899d57e4978f8d171aac
headwinds/reagent-reframe-material-ui
demo_pickers.cljs
(ns example.demos.demo-pickers (:require [reagent.core :as r] [example.utils.js :as utils :refer [moment-parse moment-parse-format moment-parse-d-format reverse-to-yyyy]] [example.demos.demo-text-field :refer [text-field]])) State (def model-default { :to-date "2018-10-29" :to-date-d...
null
https://raw.githubusercontent.com/headwinds/reagent-reframe-material-ui/8a6fba82a026cfedca38491becac85751be9a9d4/resources/public/js/out/example/demos/demo_pickers.cljs
clojure
(ns example.demos.demo-pickers (:require [reagent.core :as r] [example.utils.js :as utils :refer [moment-parse moment-parse-format moment-parse-d-format reverse-to-yyyy]] [example.demos.demo-text-field :refer [text-field]])) State (def model-default { :to-date "2018-10-29" :to-date-d...
5854c273e306c4591deef895434cf3f6e1a95f15ea5a978a6e761bfe044af4de
AshleyYakeley/Truth
Context.hs
module Pinafore.Language.Library.GTK.Element.Context where import Changes.Core import Changes.World.GNOME.GTK import Pinafore.Language.API import Pinafore.Language.Library.GTK.Context import Shapes data SelectionModel = TextSelectionModel LangTextModel data ElementContext = MkElementContext { ecUnlift :: Vie...
null
https://raw.githubusercontent.com/AshleyYakeley/Truth/f567d19253bb471cbd8c39095fb414229b27706a/Pinafore/pinafore-gnome/lib/Pinafore/Language/Library/GTK/Element/Context.hs
haskell
> IO
module Pinafore.Language.Library.GTK.Element.Context where import Changes.Core import Changes.World.GNOME.GTK import Pinafore.Language.API import Pinafore.Language.Library.GTK.Context import Shapes data SelectionModel = TextSelectionModel LangTextModel data ElementContext = MkElementContext , ecAccelGroup ::...
e49b12ebebfb1cd4048ef07eea8c00f0567f2771f25d14b28e001be08ee51f68
FranklinChen/learn-you-some-erlang
exceptions.erl
-module(exceptions). -compile(export_all). throws(F) -> try F() of _ -> ok catch Throw -> {throw, caught, Throw} end. errors(F) -> try F() of _ -> ok catch error:Error -> {error, caught, Error} end. exits(F) -> try F() of _ -> ok ...
null
https://raw.githubusercontent.com/FranklinChen/learn-you-some-erlang/878c8bc2011a12862fe72dd7fdc6c921348c79d6/exceptions.erl
erlang
"I must cross this bridge" "We'll call it a draw..."
-module(exceptions). -compile(export_all). throws(F) -> try F() of _ -> ok catch Throw -> {throw, caught, Throw} end. errors(F) -> try F() of _ -> ok catch error:Error -> {error, caught, Error} end. exits(F) -> try F() of _ -> ok ...
3dcdcb0a5c38a806dd9fe91bcb5dbb59ae96352d4a2d54b29c7adc5a6b8d47d0
tree-sitter/haskell-tree-sitter
OCaml.hs
module TreeSitter.OCaml ( tree_sitter_ocaml , getNodeTypesPath , getTestCorpusDir ) where import Foreign.Ptr import TreeSitter.Language import Paths_tree_sitter_ocaml foreign import ccall unsafe "vendor/tree-sitter-ocaml/src/parser.c tree_sitter_ocaml" tree_sitter_ocaml :: Ptr Language getNodeTypesPath :: IO FilePat...
null
https://raw.githubusercontent.com/tree-sitter/haskell-tree-sitter/8a5a2b12a3c36a8ca7e117fff04023f1595e04e7/tree-sitter-ocaml/TreeSitter/OCaml.hs
haskell
module TreeSitter.OCaml ( tree_sitter_ocaml , getNodeTypesPath , getTestCorpusDir ) where import Foreign.Ptr import TreeSitter.Language import Paths_tree_sitter_ocaml foreign import ccall unsafe "vendor/tree-sitter-ocaml/src/parser.c tree_sitter_ocaml" tree_sitter_ocaml :: Ptr Language getNodeTypesPath :: IO FilePat...
ff70e45fb261a31e4300f2be784dd8cbfb803b48f5dba65c4af35ed8aa7e1750
ralphrecto/xic
preTest.ml
open Core.Std open OUnit2 open TestUtil open Util open Pre open Ir open ExprSet module IrCfgEq = struct let (===) (a: Cfg.IrCfg.t) (b: Cfg.IrCfg.t) : unit = assert_equal ~cmp:Cfg.IrCfg.equal ~printer:Cfg.IrCfg.to_dot a b let (=/=) (a: Cfg.IrCfg.t) (b: Cfg.IrCfg.t) : unit = if Cfg.IrCfg.equal a b then ...
null
https://raw.githubusercontent.com/ralphrecto/xic/7dddfc855775467244a7949ee6d311dd8150f748/test/ocaml/preTest.ml
ocaml
vertexes edges graph testing helper helpers (start) -> (x = 1 + 2) -> (exit) book example testing helper book example testing helper book example testing helper book example book example B1 B2 B3 B7 B7 start B1 B2 B3 B3 B7 B7 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!...
open Core.Std open OUnit2 open TestUtil open Util open Pre open Ir open ExprSet module IrCfgEq = struct let (===) (a: Cfg.IrCfg.t) (b: Cfg.IrCfg.t) : unit = assert_equal ~cmp:Cfg.IrCfg.equal ~printer:Cfg.IrCfg.to_dot a b let (=/=) (a: Cfg.IrCfg.t) (b: Cfg.IrCfg.t) : unit = if Cfg.IrCfg.equal a b then ...
21d50d05299c24f6c87ce10c2b3258b8e8d7cba93d6559f1b39eac62b7b7ccf6
clojure-dus/chess
moves.clj
(ns chess.movelogic.bitboard.moves (:use [chess.movelogic.bitboard bitoperations file-rank chessboard piece-attacks]) (:use [clojure.pprint])) (require '[clojure.core.reducers :as r]) (comment (set! *warn-on-reflection* true)) (defn attacked-by-black? [mask-sq game-state] "looks at squares set in mask-sq ...
null
https://raw.githubusercontent.com/clojure-dus/chess/7eb0e5bf15290f520f31e7eb3f2b7742c7f27729/src/chess/movelogic/bitboard/moves.clj
clojure
means last row so pawn gets promoted means last row so pawn gets promoted
(ns chess.movelogic.bitboard.moves (:use [chess.movelogic.bitboard bitoperations file-rank chessboard piece-attacks]) (:use [clojure.pprint])) (require '[clojure.core.reducers :as r]) (comment (set! *warn-on-reflection* true)) (defn attacked-by-black? [mask-sq game-state] "looks at squares set in mask-sq ...
26440d340b63b0c66389a49ddd6d08e4e3502c942c2f4325a607faf3d5902b73
futurice/haskell-mega-repo
HourKinds.hs
{-# LANGUAGE ApplicativeDo #-} # LANGUAGE DerivingVia # # LANGUAGE DataKinds # # LANGUAGE InstanceSigs # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # {-# LANGUAGE TypeFamilies #-...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/95fe8e33ad6426eb6e52a9c23db4aeffd443b3e5/futuqu/src/Futuqu/Ggrr/HourKinds.hs
haskell
# LANGUAGE ApplicativeDo # # LANGUAGE OverloadedStrings # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # ----------------------------------------------------------------------------- Data ----------------------------------------------------------------------------- identifiers data additional dat...
# LANGUAGE DerivingVia # # LANGUAGE DataKinds # # LANGUAGE InstanceSigs # # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # module Futuqu.Ggrr.HourKinds where import Data.Fixed (Centi) import Data.Set...
b38abc460643e870a51f9d09152d9e25f3a88940014bc4b0547e130aafeba2e8
JacquesCarette/Drasil
Body.hs
-- | Defines lesson plan notebook section constructors. module Drasil.NBSections.Body ( -- * Constructors reviewSec, mainIdeaSec, mthdAndanls, exampleSec) where import Language.Drasil import qualified Drasil.DocLang.Notebook as NB (review, mainIdea, methAndAnls, example) -- Leave blank for now : : Contents = fo...
null
https://raw.githubusercontent.com/JacquesCarette/Drasil/92dddf7a545ba5029f99ad5c5eddcd8dad56a2d8/code/drasil-docLang/lib/Drasil/NBSections/Body.hs
haskell
| Defines lesson plan notebook section constructors. * Constructors Leave blank for now | Review Section. | Main Idea Section. | Method and Analysis Section. | Example Section.
module Drasil.NBSections.Body ( reviewSec, mainIdeaSec, mthdAndanls, exampleSec) where import Language.Drasil import qualified Drasil.DocLang.Notebook as NB (review, mainIdea, methAndAnls, example) : : Contents = foldlSP [ S " " ] reviewSec :: [Contents] -> Section reviewSec cs = NB.review cs [] mainIdeaSec :: ...
a1f0d9e95405e0ead558c648cd8f5bca82e0f876b3bca3023e007047f070af3e
hasktorch/hasktorch
Recurrent.hs
module Torch.Typed.NN.Recurrent ( module Torch.Typed.NN.Recurrent, module Torch.Typed.NN.Recurrent.Auxiliary, module Torch.Typed.NN.Recurrent.GRU, module Torch.Typed.NN.Recurrent.LSTM, module Torch.Typed.NN.Recurrent.Cell.GRU, module Torch.Typed.NN.Recurrent.Cell.LSTM, ) where import Torch.Type...
null
https://raw.githubusercontent.com/hasktorch/hasktorch/9560d149b06af17e2d4e73d1e116afd2b0baff86/hasktorch/src/Torch/Typed/NN/Recurrent.hs
haskell
module Torch.Typed.NN.Recurrent ( module Torch.Typed.NN.Recurrent, module Torch.Typed.NN.Recurrent.Auxiliary, module Torch.Typed.NN.Recurrent.GRU, module Torch.Typed.NN.Recurrent.LSTM, module Torch.Typed.NN.Recurrent.Cell.GRU, module Torch.Typed.NN.Recurrent.Cell.LSTM, ) where import Torch.Type...
de3c27ac7959bfc785fb727e7ffe76a99c1383d0c50cae6b3d54266a81158e6b
dannypsnl/k
def.rkt
#lang racket/base (provide def) (require syntax/parse/define (for-syntax racket/base racket/list racket/dict syntax/parse syntax/transformer syntax/stx "bindings.rkt" ...
null
https://raw.githubusercontent.com/dannypsnl/k/2b5f5066806a5bbd0733b781a2ed5fce6956a4f5/k-core/k/def.rkt
racket
typeof x should be a Pi type here, then here are going to unify p*... with telescope of the Pi type we should use telescope to bind type to free variable bind pattern type to the free variable here and brings the binding to the end for return type unification implicit form store implicit arguments full case: use...
#lang racket/base (provide def) (require syntax/parse/define (for-syntax racket/base racket/list racket/dict syntax/parse syntax/transformer syntax/stx "bindings.rkt" ...
5a00b4bf7e1fc2d14fc15a5338da2855bd013056dbc6fd86b862a9ea50eca58a
fulcro-legacy/semantic-ui-wrapper
ui_divider.cljs
(ns fulcrologic.semantic-ui.elements.divider.ui-divider (:require [fulcrologic.semantic-ui.factory-helpers :as h] ["semantic-ui-react/dist/commonjs/elements/Divider/Divider" :default Divider])) (def ui-divider "A divider visually segments content into groups. Props: - as (custom): An element type ...
null
https://raw.githubusercontent.com/fulcro-legacy/semantic-ui-wrapper/b0473480ddfff18496df086bf506099ac897f18f/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/elements/divider/ui_divider.cljs
clojure
(ns fulcrologic.semantic-ui.elements.divider.ui-divider (:require [fulcrologic.semantic-ui.factory-helpers :as h] ["semantic-ui-react/dist/commonjs/elements/Divider/Divider" :default Divider])) (def ui-divider "A divider visually segments content into groups. Props: - as (custom): An element type ...
76fe96d568d8fba06338ff32808790fc40f158fa4767d5486f6caee9453a2929
vonzhou/LearnYouHaskellForGreatGood
foldM.hs
binSmalls :: Int -> Int -> Maybe Int binSmalls acc x | x > 9 = Nothing | otherwise = Just (acc + x)
null
https://raw.githubusercontent.com/vonzhou/LearnYouHaskellForGreatGood/439d848deac53ef6da6df433078b7f1dcf54d18d/chapter14/foldM.hs
haskell
binSmalls :: Int -> Int -> Maybe Int binSmalls acc x | x > 9 = Nothing | otherwise = Just (acc + x)
523c691b55b1870ed90b0bb925d3d3a046b48c809f3c82a740c2069a921df7ec
gja/pwa-clojure
main.cljs
(ns pwa-clojure.main (:require [pwa-clojure.app-state :as app-state] [pwa-clojure.pages :as pages] [pwa-clojure.navigation :as navigation] [rum.core :as rum] [pwa-clojure.components :as components])) (defn- get-current-path [] js/window.location.pathname) (defn- get...
null
https://raw.githubusercontent.com/gja/pwa-clojure/a06450747c6ead439d1a74653a34afe415d8ef02/src-cljs/pwa_clojure/main.cljs
clojure
(ns pwa-clojure.main (:require [pwa-clojure.app-state :as app-state] [pwa-clojure.pages :as pages] [pwa-clojure.navigation :as navigation] [rum.core :as rum] [pwa-clojure.components :as components])) (defn- get-current-path [] js/window.location.pathname) (defn- get...
f32fbaf67fd930f700b96979f1aeef48d0a527fcd2de0b768c4bbc032ab8b32c
comby-tools/comby
test_string_literals_alpha.ml
open Core open Rewriter open Test_helpers include Test_alpha let all ?(configuration = configuration) template source = C.all ~configuration ~template ~source () let%expect_test "comments_in_string_literals_should_not_be_treated_as_comments_by_fuzzy" = let source = {|"/*"(x)|} in let template = {|(:[1])|} in...
null
https://raw.githubusercontent.com/comby-tools/comby/7b401063024da9ddc94446ade27a24806398d838/test/common/test_string_literals_alpha.ml
ocaml
this tests special functionality in non-literal hole parser but which must still ignore unbalanced delims within strings
open Core open Rewriter open Test_helpers include Test_alpha let all ?(configuration = configuration) template source = C.all ~configuration ~template ~source () let%expect_test "comments_in_string_literals_should_not_be_treated_as_comments_by_fuzzy" = let source = {|"/*"(x)|} in let template = {|(:[1])|} in...
f6570fae5c92063fb36edd7706c4927d6835c3219e05e91a441a2af100aa3030
camlp4/camlp4
pr_scheme.ml
(* pa_r.cmo q_MLast.cmo pa_extfun.cmo pr_dump.cmo *) (***********************************************************************) (* *) (* Camlp4 *) (* ...
null
https://raw.githubusercontent.com/camlp4/camlp4/9b3314ea63288decb857239bd94f0c3342136844/camlp4/unmaintained/scheme/pr_scheme.ml
ocaml
pa_r.cmo q_MLast.cmo pa_extfun.cmo pr_dump.cmo ********************************************************************* Camlp4 ...
, projet Cristal , INRIA Rocquencourt Copyright 2002 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 open Pcaml; open Format; type printer_t 'a =...
b264a93f2a9ddf23b517f3c3619cf6698784c416a147a4691983de2efafd6273
drjdn/p5scm
test_p5scm.ml
The MIT License Copyright ( c ) 2021 < > The MIT License Copyright (c) 2021 Jason D. Nielsen <> *) open P5scm let tscm = " (define pass (ref True...
null
https://raw.githubusercontent.com/drjdn/p5scm/b12ccf2b5d34ae338c91ecd0ecc0d3ebd22009b3/src/test/test_p5scm.ml
ocaml
The MIT License Copyright ( c ) 2021 < > The MIT License Copyright (c) 2021 Jason D. Nielsen <> *) open P5scm let tscm = " (define pass (ref True...
c6e7af18e52a750fcbaf7f1dfef0bfe454fc4bc54d2c4d0966074a6ea9c77a73
samply/blaze
chained.clj
(ns blaze.db.impl.search-param.chained (:require [blaze.anomaly :as ba :refer [when-ok]] [blaze.coll.core :as coll] [blaze.db.impl.codec :as codec] [blaze.db.impl.index :as index] [blaze.db.impl.index.resource-handle :as rh] [blaze.db.impl.macros :refer [with-open-coll]] [blaze.db.impl.pro...
null
https://raw.githubusercontent.com/samply/blaze/6ef8eff7687513554131819d080fed9aaf531a34/modules/db/src/blaze/db/impl/search_param/chained.clj
clojure
TODO: improve
(ns blaze.db.impl.search-param.chained (:require [blaze.anomaly :as ba :refer [when-ok]] [blaze.coll.core :as coll] [blaze.db.impl.codec :as codec] [blaze.db.impl.index :as index] [blaze.db.impl.index.resource-handle :as rh] [blaze.db.impl.macros :refer [with-open-coll]] [blaze.db.impl.pro...
72fa91b487fc81bd5b387fce2d425a18c4aee6597d0973ef423c944139ac6e7b
Decentralized-Pictures/T4L3NT
environment_protocol_T.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > Copyright ( c...
null
https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/lib_protocol_environment/environment_protocol_T.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > Copyright ( c ) 2018 Nomadic Labs . < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WIT...
8d2bf6987f5eb10f21225c6a2b8c9e3aa0bfd53a9579c8b52ac5fb93076afaae
pfdietz/ansi-test
macro-function.lsp
;-*- Mode: Lisp -*- Author : Created : Fri Jun 3 22:17:34 2005 ;;;; Contains: Tests of MACRO-FUNCTION (deftest macro-function.1 (loop for n in *cl-macro-symbols* unless (macro-function n) collect n) nil) (deftest macro-function.2 (loop for n in *cl-macro-symbols* unles...
null
https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/eval-and-compile/macro-function.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of MACRO-FUNCTION Error tests
Author : Created : Fri Jun 3 22:17:34 2005 (deftest macro-function.1 (loop for n in *cl-macro-symbols* unless (macro-function n) collect n) nil) (deftest macro-function.2 (loop for n in *cl-macro-symbols* unless (macro-function n nil) collect n) nil) (deftest ma...
b8579f2596152bc214102717611f1f3794c77b9ba9c46d5dba1055f0ce76d92d
korya/efuns
wX_display.mli
(***********************************************************************) (* *) (* ____ *) (* *) Fabrice Le Fessa...
null
https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/toolkit/wX_display.mli
ocaml
********************************************************************* ____ ...
Fabrice Le Fessant , projet Para / SOR , INRIA Rocquencourt Copyright 1999 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . class from : Xtypes.display -> object val display : Xtypes.display val eloop : Eloop.dis...
0a0813e469eb017ee9f9ff6cfb024b2cd4261b9cae940b6dea19f09760b6a111
privet-kitty/cl-competitive
util.lisp
(defpackage :cp/util (:use :cl) (:import-from :fiveam) #+sbcl (:import-from :sb-sprof) (:export #:run #:get-clipbrd #:submit #:sub #:login #:*lisp-file-pathname* #:*problem-url*)) (in-package :cp/util) (defvar *lisp-file-pathname*) (defvar *problem-url*) (defun get-clipbrd () (with-output-to-string (out) ...
null
https://raw.githubusercontent.com/privet-kitty/cl-competitive/77cf767213ee8f6673b90715a10dca07fd35f138/module/util.lisp
lisp
(defpackage :cp/util (:use :cl) (:import-from :fiveam) #+sbcl (:import-from :sb-sprof) (:export #:run #:get-clipbrd #:submit #:sub #:login #:*lisp-file-pathname* #:*problem-url*)) (in-package :cp/util) (defvar *lisp-file-pathname*) (defvar *problem-url*) (defun get-clipbrd () (with-output-to-string (out) ...
2af3306dc758872c1877fbd57c26673ddb616b3c47baac4967194371b37e6554
mdunnio/coinbase-pro
Heartbeat.hs
{-# LANGUAGE OverloadedStrings #-} module CoinbasePro.WebSocketFeed.Channel.Heartbeat ( Heartbeat (..) )where import Data.Aeson (FromJSON (..), withObject, (.:)) import Data.Text (Text) import Data.Time.Clock (UTCTime) data Heartbeat = Heartbeat { sequence :: ...
null
https://raw.githubusercontent.com/mdunnio/coinbase-pro/5d5fa95e66481a974786ef362a4ea55ba94c63a9/src/lib/CoinbasePro/WebSocketFeed/Channel/Heartbeat.hs
haskell
# LANGUAGE OverloadedStrings #
module CoinbasePro.WebSocketFeed.Channel.Heartbeat ( Heartbeat (..) )where import Data.Aeson (FromJSON (..), withObject, (.:)) import Data.Text (Text) import Data.Time.Clock (UTCTime) data Heartbeat = Heartbeat { sequence :: Int , lastTradeId :: Int , ...
2105834a6f6d204c9763e9d1325a06583c1f9ec485d212ee75181507e25ece55
alsonkemp/turbinado
Naming.hs
module Turbinado.Utility.Naming where import Data.Char import Data.List -- -- * Turbinado Utility functions for Naming -- | Lowercases the first letter to make a valid function . underscoreToFunction [] = error "toFunction passed an empty string" underscoreToFunction (firstL:ls) = (Data.Char.toLower firstL) : fro...
null
https://raw.githubusercontent.com/alsonkemp/turbinado/da2ba7c3443ddf6a51d1ec5b05cb45a85efc0809/Turbinado/Utility/Naming.hs
haskell
* Turbinado Utility functions for Naming end with "_", then end with "_" end with "_", then end with "_"
module Turbinado.Utility.Naming where import Data.Char import Data.List | Lowercases the first letter to make a valid function . underscoreToFunction [] = error "toFunction passed an empty string" underscoreToFunction (firstL:ls) = (Data.Char.toLower firstL) : fromUnderscore ls | Uppercases the first letter to...
4fcba8a5ea0277ca87d531913b936c8dc0492fec8b96111c7a3fd948bcdfcba9
joehillen/craft
Internal.hs
module Craft.Internal (module X) where import Craft.DSL as X import Craft.Helpers as X import Craft.Run as X import Craft.Types as X
null
https://raw.githubusercontent.com/joehillen/craft/de31caa7f86cceaab23dbef0f05208bb853cf73b/src/Craft/Internal.hs
haskell
module Craft.Internal (module X) where import Craft.DSL as X import Craft.Helpers as X import Craft.Run as X import Craft.Types as X
f774a4e43676d5e1b2d65b475ef9a17245e3b6e6de486ffd089d930b398c973b
MassD/pearls
multiway_tree.ml
multiway_tree preorder traversal & loopless preorder is that always the root goes first multiway_tree preorder traversal & loopless preorder is that always the root goes first *) type 'a multiway_tree = Node of 'a * ('a multiway_tree list) let mt1 = Node (1, [Node (2, [Node (3,[]); Node (4,[])]);N...
null
https://raw.githubusercontent.com/MassD/pearls/da73f49ffe61125c1def4f2b3ed339963318dbec/28_loopless/multiway_tree.ml
ocaml
On list of multiway_trees, so called forest crs is child tree list, ms is list of multiway_trees Since the above preorder involves list concate operation, we need to transform it to :: operation 1. We can change the parameter to be list of list of multiway_trees 2. So each time we get the Node, we can di...
multiway_tree preorder traversal & loopless preorder is that always the root goes first multiway_tree preorder traversal & loopless preorder is that always the root goes first *) type 'a multiway_tree = Node of 'a * ('a multiway_tree list) let mt1 = Node (1, [Node (2, [Node (3,[]); Node (4,[])]);N...
ede99341e15790f4f7d755ab60f70d2e03c9e2873726a5f5c7e52b18f67909df
janestreet/universe
unix_extended.mli
(** Extensions to [Core.Unix]. *) open! Core * [ fork_exec prog args ~stdin ~stdout ~stderr ~setuid ~setgid ] forks a new process that executes the program in file [ prog ] , with arguments [ args ] . The pid of the new process is returned immediately ; the new process executes concurrently wit...
null
https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/shell/unix_extended/src/unix_extended.mli
ocaml
* Extensions to [Core.Unix]. * Network to host order long, like C. * Host to network order long, like C. * file system block size * fragment size * size of fs in frsize units * # free blocks * # free blocks for non-root * # inodes * # free inodes * # free inodes for non-root * file system ID * mount flags ...
open! Core * [ fork_exec prog args ~stdin ~stdout ~stderr ~setuid ~setgid ] forks a new process that executes the program in file [ prog ] , with arguments [ args ] . The pid of the new process is returned immediately ; the new process executes concurrently with the current process . The...
2a9efecd6f85acaa7ed56faab1e41d6f1b2b570779508123c0bd7b9d90657e7a
sile/proxy
proxy_lifetime_tests.erl
-module(proxy_lifetime_tests). -include_lib("eunit/include/eunit.hrl"). -export([sleep_infinity/0]). restart_test_() -> [ {"実プロセスの開始時刻と終了時刻を指定できる", fun () -> 100ms後 200ms後 ProxyPid = proxy:spawn(?MODULE, sleep_infinity, [], [{proxy_lif...
null
https://raw.githubusercontent.com/sile/proxy/009418087d92ec44d25ae82462213f3792360f77/test/proxy_lifetime_tests.erl
erlang
-module(proxy_lifetime_tests). -include_lib("eunit/include/eunit.hrl"). -export([sleep_infinity/0]). restart_test_() -> [ {"実プロセスの開始時刻と終了時刻を指定できる", fun () -> 100ms後 200ms後 ProxyPid = proxy:spawn(?MODULE, sleep_infinity, [], [{proxy_lif...
88aa1b0a9dee2b913139cbc967e830455d87c3ee736bb2a88f9cf0b00ed9defa
gonzojive/hunchentoot
test-handlers.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : HUNCHENTOOT ; Base : 10 -*- $ Header : /usr / local / cvsrep / hunchentoot / test / test.lisp , v 1.24 2008/03/06 07:46:53 edi Exp $ Copyright ( c ) 2004 - 2010 , Dr. . All rights reserved . ;;; Redistribution and use in source and binary forms, with or w...
null
https://raw.githubusercontent.com/gonzojive/hunchentoot/36e3a81655be0eeb8084efd853dd3ac3e5afc91b/test/test-handlers.lisp
lisp
Syntax : COMMON - LISP ; Package : HUNCHENTOOT ; Base : 10 -*- 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 t...
$ Header : /usr / local / cvsrep / hunchentoot / test / test.lisp , v 1.24 2008/03/06 07:46:53 edi Exp $ Copyright ( c ) 2004 - 2010 , Dr. . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (in-...
76da48e969c7884ca2c049b5f337541a8443caa4e645313c848efe9c6c4ba6cd
Elzair/nazghul
ancient-derelict.scm
(kern-mk-map 'm_ancient_derelict 19 19 pal_expanded (list "^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ " "^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ " "^^ ^^ {{ {{ {{ {{ ^^ ^^ ^^ ^^ ^^ ^^ ^^ {{ {{ {{ {{ ^^ ^^ " "^^ {{ {{ bb {{ {{ {{ {{ ^^ ^^ ^^ ^^ {{ {{ {3 {5 {{ {{ ^^ " "{{ {...
null
https://raw.githubusercontent.com/Elzair/nazghul/8f3a45ed6289cd9f469c4ff618d39366f2fbc1d8/worlds/haxima-1.002/ancient-derelict.scm
scheme
---------------------------------------------------------------------------- Place ---------------------------------------------------------------------------- tag name sprite map wraps underground large-scale (wilderness) tmp combat place subplaces neighbors objects hooks edge entrances
(kern-mk-map 'm_ancient_derelict 19 19 pal_expanded (list "^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ " "^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ " "^^ ^^ {{ {{ {{ {{ ^^ ^^ ^^ ^^ ^^ ^^ ^^ {{ {{ {{ {{ ^^ ^^ " "^^ {{ {{ bb {{ {{ {{ {{ ^^ ^^ ^^ ^^ {{ {{ {3 {5 {{ {{ ^^ " "{{ {...
5afada644ce4bfa8dd4bb04a10258173b9eff24830e1af5618cd4ebd4e178457
clckwrks/clckwrks
OpenIdRealm.hs
# LANGUAGE TypeFamilies , QuasiQuotes , OverloadedStrings # module Clckwrks.Authenticate.Page.OpenIdRealm where import Clckwrks.Admin.Template (template) import Clckwrks.Monad import Clckwrks.URL (ClckURL) import Happstack.Server (Response, ServerPartT, ok, toResponse) import Language.Haskell.HSX.Q...
null
https://raw.githubusercontent.com/clckwrks/clckwrks/dd4ea1e2f41066aa5779f1cc22f3b7a0ca8a0bed/Clckwrks/Authenticate/Page/OpenIdRealm.hs
haskell
# LANGUAGE TypeFamilies , QuasiQuotes , OverloadedStrings # module Clckwrks.Authenticate.Page.OpenIdRealm where import Clckwrks.Admin.Template (template) import Clckwrks.Monad import Clckwrks.URL (ClckURL) import Happstack.Server (Response, ServerPartT, ok, toResponse) import Language.Haskell.HSX.Q...
02e266bcc064bb1e6dac056c9555e1c52eff2a5220e606ed4f67cab250688f81
clojure-interop/google-cloud-clients
VideoIntelligenceServiceStubSettings.clj
(ns com.google.cloud.videointelligence.v1beta1.stub.VideoIntelligenceServiceStubSettings "Settings class to configure an instance of VideoIntelligenceServiceStub. The default instance has everything set to sensible defaults: The default service address (videointelligence.googleapis.com) and default port (443...
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.videointelligence/src/com/google/cloud/videointelligence/v1beta1/stub/VideoIntelligenceServiceStubSettings.clj
clojure
"
(ns com.google.cloud.videointelligence.v1beta1.stub.VideoIntelligenceServiceStubSettings "Settings class to configure an instance of VideoIntelligenceServiceStub. The default instance has everything set to sensible defaults: The default service address (videointelligence.googleapis.com) and default port (443...
9d649fa83a3ab9d6d5431a4d3406ec8d74fa0ba6fb1dd576ed562d4e6c35f1df
erszcz/pa
pa_SUITE.erl
-module(pa_SUITE). -compile([export_all]). -include_lib("common_test/include/ct.hrl"). -include_lib("proper/include/proper.hrl"). -include_lib("eunit/include/eunit.hrl"). -define(eq(Expected, Actual), ?assertEqual(Expected, Actual)). all() -> [bind, invalid_bind]. init_per_suite(Config) -> Config. end...
null
https://raw.githubusercontent.com/erszcz/pa/84b73c33bc9c95b64ef99cead65278f3a91bc635/test/pa_SUITE.erl
erlang
Tests Partial application whose result is an N-ary function. Error when the input function arity or number of args make it impossible to get an N-ary function. Generators Helpers
-module(pa_SUITE). -compile([export_all]). -include_lib("common_test/include/ct.hrl"). -include_lib("proper/include/proper.hrl"). -include_lib("eunit/include/eunit.hrl"). -define(eq(Expected, Actual), ?assertEqual(Expected, Actual)). all() -> [bind, invalid_bind]. init_per_suite(Config) -> Config. end...
28f7b36992669c6841f990d6a4c351a2f60fac5a608f456c82c44e5ec26873bf
igorhvr/bedlam
k-store.scm
The contents of this file are subject to the Mozilla Public License Version 1.1 ( the " License " ) ; you may not use this file except in compliance with ;;; the License. You may obtain a copy of the License at ;;; / ;;; Software distributed under the License is distributed on an " AS IS " basis , ;;; WITHOUT WAR...
null
https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/siscweb/siscweb-src-0.5/scm/siscweb/k-store.scm
scheme
you may not use this file except in compliance with the License. You may obtain a copy of the License at / WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. Contributor(s): Alternatively, the contents of th...
The contents of this file are subject to the Mozilla Public License Version Software distributed under the License is distributed on an " AS IS " basis , The Original Code is SISCweb . The Initial Developer of the Original Code is . Portions created by the Initial Developer are Copyright ( C ) 2005 - 2006 ...
e4a6135e2922acab2e9f6ae3f53e2a02d6c73d3ca57b1111f8f508eeaf6a26d8
GaloisInc/cryptol
Fin.hs
-- | Module : Cryptol . . Solver . Numeric . Fin Copyright : ( c ) 2015 - 2016 Galois , Inc. -- License : BSD3 -- Maintainer : -- Stability : provisional -- Portability : portable -- -- Simplification of `fin` constraints. # LANGUAGE PatternGuards # module Cryptol.TypeCheck.Solver.Numeric...
null
https://raw.githubusercontent.com/GaloisInc/cryptol/8cca24568ad499f06032c2e4eaa7dfd4c542efb6/src/Cryptol/TypeCheck/Solver/Numeric/Fin.hs
haskell
| License : BSD3 Maintainer : Stability : provisional Portability : portable Simplification of `fin` constraints. fin (x * y) fin (x ^ y) fin (min x y)
Module : Cryptol . . Solver . Numeric . Fin Copyright : ( c ) 2015 - 2016 Galois , Inc. # LANGUAGE PatternGuards # module Cryptol.TypeCheck.Solver.Numeric.Fin where import qualified Data.Map as Map import Cryptol.TypeCheck.Type import Cryptol.TypeCheck.Solver.Types import Cryptol.TypeCheck.Solver.N...
36d9ce5b7f3992c9e2015a530b64c0462c8a898aac5a67d36be3179130ab2cdd
dysinger/restack
config.ml
open Mirage let server = cohttp_server @@ conduit_direct ~tls:false (socket_stackv4 [Ipaddr.V4.any]) let main = let packages = [ package "reason" ] in let port = let doc = Key.Arg.info ~doc:"Listening HTTP port." ["port"] in Key.(create "port" Arg.(opt int 80 doc)) in let keys = List.map Key.abstract ...
null
https://raw.githubusercontent.com/dysinger/restack/ef8ac0ae0542f1d81d7bd3032c6077149d403d68/001-webserver/config.ml
ocaml
open Mirage let server = cohttp_server @@ conduit_direct ~tls:false (socket_stackv4 [Ipaddr.V4.any]) let main = let packages = [ package "reason" ] in let port = let doc = Key.Arg.info ~doc:"Listening HTTP port." ["port"] in Key.(create "port" Arg.(opt int 80 doc)) in let keys = List.map Key.abstract ...
df41b6c9b3d817c5ac0d609208861abe942ac354148f7d1e5f500bbf2d1be099
ghc/ghc
Utils.hs
# LANGUAGE CPP , ScopedTypeVariables , TypeFamilies # # LANGUAGE DataKinds # module GHC.Stg.Utils ( mkStgAltTypeFromStgAlts , bindersOf, bindersOfX, bindersOfTop, bindersOfTopBinds , stripStgTicksTop, stripStgTicksTopE , idArgs , mkUnarisedId, mkUnarisedIds ) where import GHC.Prelude import...
null
https://raw.githubusercontent.com/ghc/ghc/37cfe3c0f4fb16189bbe3bb735f758cd6e3d9157/compiler/GHC/Stg/Utils.hs
haskell
Checks if id is a top level error application. isErrorAp_maybe :: Id -> | Extract the default case alternative "Any" is lifted but primitive Type family; e.g. Any, or arising from strict function application where argument has a type-family type grabbing the one from a constructor alternative if one exists. A...
# LANGUAGE CPP , ScopedTypeVariables , TypeFamilies # # LANGUAGE DataKinds # module GHC.Stg.Utils ( mkStgAltTypeFromStgAlts , bindersOf, bindersOfX, bindersOfTop, bindersOfTopBinds , stripStgTicksTop, stripStgTicksTopE , idArgs , mkUnarisedId, mkUnarisedIds ) where import GHC.Prelude import...
7a29a89e660e309c810d2ba9cd19ab20a3121c03f85a56a1bdf4a7d4a306aad1
gebi/jungerl
rdbms_verify.erl
%%% The contents of this file are subject to the Erlang Public License , Version 1.0 , ( the " License " ) ; you may not use this file except in %%% compliance with the License. You may obtain a copy of the License at %%% %%% Software distributed under the License is distributed on an " AS IS " %%% basis, WITHOU...
null
https://raw.githubusercontent.com/gebi/jungerl/8f5c102295dbe903f47d79fd64714b7de17026ec/lib/rdbms/src/rdbms_verify.erl
erlang
compliance with the License. You may obtain a copy of the License at basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. Contributor(s): ______________________________________. -------------------------...
The contents of this file are subject to the Erlang Public License , Version 1.0 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " The Original Code is rdbms-1.2 . The Initial Developer of the Original Code is Ericsson Telecom A...
cb15ffd59d4d8228373dfbfbcbd2072d24f5f0bc8582521d1cd87c4fadbc906b
FarmLogs/geojson
generators.clj
(ns geojson.generators "A set of test.check GeoJSON generators." (:require [clojure.test.check.generators :as gen])) (def ^{:private true} max-count "Keeps the vector generation within a reasonable upper bound." 100) (def ^{:private true} lng "Generates a valid longitude." (->> (gen/fmap float gen/ratio) ...
null
https://raw.githubusercontent.com/FarmLogs/geojson/a21338f24ca2b16128c24ff1d163b69ca207c77f/src/geojson/generators.clj
clojure
(ns geojson.generators "A set of test.check GeoJSON generators." (:require [clojure.test.check.generators :as gen])) (def ^{:private true} max-count "Keeps the vector generation within a reasonable upper bound." 100) (def ^{:private true} lng "Generates a valid longitude." (->> (gen/fmap float gen/ratio) ...
279d436f5cac9beb6eff15b3b6cd69a0bc4903303b9f6f503e6341daabbe2873
ocaml-flambda/flambda-backend
unboxing_epa.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-flambda/flambda-backend/089504f86099bbf7402cbffeeb5e5295eae6d5f6/middle_end/flambda2/simplify/unboxing/unboxing_epa.ml
ocaml
************************************************************************ OCaml ...
, OCamlPro and , Copyright 2014 - -2020 Jane Street Group LLC the GNU Lesser General Public License version 2.1 , with the open! Simplify_import module U = Unboxing_types module Extra_param_a...
414790b66a0ab4d0be7ac991576ab8466d5c0ed31ba6309dcd9a18b80dcdd654
clash-lang/clash-compiler
File.hs
| Copyright : ( C ) 2015 - 2016 , University of Twente , 2017 , Google Inc. , 2019 , Myrtle Software Ltd , 2021 - 2022 , QBayLogic B.V. License : BSD2 ( see the file LICENSE ) Maintainer : QBayLogic B.V. < > = Initializing a blo...
null
https://raw.githubusercontent.com/clash-lang/clash-compiler/d09e154ef674cea92c8f345d763606cf85e96403/clash-prelude/src/Clash/Explicit/BlockRam/File.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE GADTs # # OPTIONS_HADDOCK show-extensions # See: -lang/clash-compiler/commit/721fcfa9198925661cd836668705f817bddaae3c as to why we need this. * Block RAM synchronized to an arbitrary clock * Producing files * Internal start benchmark only end benchmark only $setup >>> :m -P...
| Copyright : ( C ) 2015 - 2016 , University of Twente , 2017 , Google Inc. , 2019 , Myrtle Software Ltd , 2021 - 2022 , QBayLogic B.V. License : BSD2 ( see the file LICENSE ) Maintainer : QBayLogic B.V. < > = Initializing a blo...
d40e81b402d57c7b51c7d52953236c932fbff314265c743aca1f7ca4e14971f7
FPBench/FPBench
core2smtlib2.rkt
#lang racket (require math/bigfloat) (require "lisp.rkt") (provide core->smtlib2 smt-supported rm->smt number->smt) (define smt-supported (supported-list (disjoin ieee754-ops (curry set-member? '(remainder fmax fmin trunc round nearbyint < > <= >= == and or not isinf isnan is...
null
https://raw.githubusercontent.com/FPBench/FPBench/ecdfbfc484cc7f392c46bfba43813458a6406608/src/core2smtlib2.rkt
racket
Language-specific reserved names (avoid name collisions) Extremely simple html-inspired escapes. The understanding is that the [('nearestAway) ] ;; math/bigfloat does not support this mode Any exact number can be written out (exactly) as a division. In general, adding lots of real divisions to a formula is probably...
#lang racket (require math/bigfloat) (require "lisp.rkt") (provide core->smtlib2 smt-supported rm->smt number->smt) (define smt-supported (supported-list (disjoin ieee754-ops (curry set-member? '(remainder fmax fmin trunc round nearbyint < > <= >= == and or not isinf isnan is...
7a1e82101874092ebdcf4164bd6f84525b788d514ea0e2033b657c5400316532
zotonic/zotonic
action_admin_identity_dialog_set_username_password.erl
@author < > 2009 Date : 2009 - 05 - 12 %% @doc Open a dialog with some fields to add or change an username/password identity Copyright 2009 %% 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 ...
null
https://raw.githubusercontent.com/zotonic/zotonic/ec05433cffa39b13585ffbbbb50119767cf522fd/apps/zotonic_mod_admin_identity/src/actions/action_admin_identity_dialog_set_username_password.erl
erlang
@doc Open a dialog with some fields to add or change an username/password identity 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, ...
@author < > 2009 Date : 2009 - 05 - 12 Copyright 2009 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(action_admin_identity_dialog_set_username_password). -author("Marc Worrell <>"). -export([ r...
79a173c9a5af8eb7030f82421f3d802248844772e0f2aba4b6c4b241f3ce0691
mcorbin/meuse
log.clj
(ns meuse.log "Functions for structured logging" (:require [unilog.context :as context] [clojure.tools.logging :as log])) (defmacro info [data & args] `(context/with-context~ data (log/info ~@args))) (defmacro infof [data & args] `(context/with-context~ data (log/infof ~@args))) (defm...
null
https://raw.githubusercontent.com/mcorbin/meuse/d2b74543fce37c8cde770ae6f6097cabb509a804/src/meuse/log.clj
clojure
(ns meuse.log "Functions for structured logging" (:require [unilog.context :as context] [clojure.tools.logging :as log])) (defmacro info [data & args] `(context/with-context~ data (log/info ~@args))) (defmacro infof [data & args] `(context/with-context~ data (log/infof ~@args))) (defm...
8fce1d8c46a05b0f8f5048104537a34afed1ef634e5f981fd361a14750c8eb1f
Frama-C/Frama-C-snapshot
gtk_compat.2.ml
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/gui/gtk_compat.2.ml
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
a634fc3525810cf59152afa4a557241e8806b45bd6e47fbaa9724a46fddffecb
erlangonrails/devdb
p1_fsm.erl
` ` 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 %% 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 via the world wide...
null
https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/ejabberd-2.1.4/src/p1_fsm.erl
erlang
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 via the world wide web at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations ...
` ` 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 " The Initial Developer of the Original Code is Ericsson Utvecklings AB . Portions created by Eri...
abb4d5bc77b3486598b75329a187ee9aa5516b5de6503fdbe76333a9d3e68c59
nuprl/gradual-typing-performance
data.rkt
#lang racket/base (provide (struct-out Array) (struct-out Settable-Array) (struct-out Mutable-Array)) (define-struct Array (shape size strict? strict! unsafe-proc) #:prefab) (define-struct (Settable-Array Array) (set-proc) #:prefab) (define-struct (M...
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/experimental/unsafe/synth/both/data.rkt
racket
#lang racket/base (provide (struct-out Array) (struct-out Settable-Array) (struct-out Mutable-Array)) (define-struct Array (shape size strict? strict! unsafe-proc) #:prefab) (define-struct (Settable-Array Array) (set-proc) #:prefab) (define-struct (M...
81855e9551053992956bd99561cfd8049e66e92e823e117b6cecca890396842d
f-o-a-m/kepler
Prometheus.hs
# LANGUAGE TemplateHaskell # module Tendermint.SDK.BaseApp.Metrics.Prometheus ( -- | Config and Setup MetricsScrapingConfig(..) , prometheusPort , MetricsState(..) , metricsRegistry , metricsCounters , metricsHistograms , PrometheusEnv(..) , envMetricsState , envMetricsScrapingConfig , empt...
null
https://raw.githubusercontent.com/f-o-a-m/kepler/6c1ad7f37683f509c2f1660e3561062307d3056b/hs-abci-sdk/src/Tendermint/SDK/BaseApp/Metrics/Prometheus.hs
haskell
| Config and Setup * Utils * Eval ------------------------------------------------------------------------------ Metrics Types ------------------------------------------------------------------------------ | Core metrics state | Intermediary prometheus registry index key indexes | Prometheus registry index key ...
# LANGUAGE TemplateHaskell # module Tendermint.SDK.BaseApp.Metrics.Prometheus ( MetricsScrapingConfig(..) , prometheusPort , MetricsState(..) , metricsRegistry , metricsCounters , metricsHistograms , PrometheusEnv(..) , envMetricsState , envMetricsScrapingConfig , emptyState , forkMetricsServ...
8f05773d9231b235156b8d5c49c5202da4366ac4be114f2b594e65ca4856de86
metaocaml/ber-metaocaml
w58.ml
TEST flags = " -w A " files = " module_without_cmx.mli " * setup - ocamlc.byte - build - env * * ocamlc.byte module = " module_without_cmx.mli " * * * ocamlc.byte module = " w58.ml " * * * * check - ocamlc.byte - output * setup - ocamlopt.byte - build - env * * ocamlopt.byte module = " module...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/warnings/w58.ml
ocaml
TEST flags = " -w A " files = " module_without_cmx.mli " * setup - ocamlc.byte - build - env * * ocamlc.byte module = " module_without_cmx.mli " * * * ocamlc.byte module = " w58.ml " * * * * check - ocamlc.byte - output * setup - ocamlopt.byte - build - env * * ocamlopt.byte module = " module...
e27274cd2e2bf84151eee8904b2070551ef0bbcd6e1ab44bc39c6145a23ae631
ocsigen/js_of_ocaml
state.ml
Copyright ( c ) 2015 , < > Permission to use , copy , modify , and/or distribute this software for any purpose with or without fee is hereby granted , provided that the above copyright notice and this permission notice appear in all copies . THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL...
null
https://raw.githubusercontent.com/ocsigen/js_of_ocaml/90d8240eed4e422f7074caf6c2516d429af48425/compiler/tests-jsoo/lib-effects/state.ml
ocaml
state.ml --------------------------------------------------------------------------- * Type Definitions. [TYPE] specifies a type [t]. [STATE] is the type of a module that offers the functions [get] and [set] for manipulating a piece of mutable state with contents in the type [t]. This module must also off...
Copyright ( c ) 2015 , < > Permission to use , copy , modify , and/or distribute this software for any purpose with or without fee is hereby granted , provided that the above copyright notice and this permission notice appear in all copies . THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL...
cc17f9ceedb481416d03be0fee5ba51431671784109b2d030fa6c2f5538b2a02
cronburg/antlr-haskell
DoubleSemi.hs
# LANGUAGE QuasiQuotes , , DeriveGeneric , TypeFamilies , DataKinds , ScopedTypeVariables , OverloadedStrings , TypeSynonymInstances , FlexibleInstances , UndecidableInstances , FlexibleContexts , TemplateHaskell # , DataKinds, ScopedTypeVariables, OverloadedStrings, TypeSynonymInstances , Flexible...
null
https://raw.githubusercontent.com/cronburg/antlr-haskell/7a9367038eaa58f9764f2ff694269245fbebc155/test/g4/DoubleSemi.hs
haskell
# LANGUAGE QuasiQuotes , , DeriveGeneric , TypeFamilies , DataKinds , ScopedTypeVariables , OverloadedStrings , TypeSynonymInstances , FlexibleInstances , UndecidableInstances , FlexibleContexts , TemplateHaskell # , DataKinds, ScopedTypeVariables, OverloadedStrings, TypeSynonymInstances , Flexible...
43a4d22af48171f65c9e1863e63a8378d22d201224b0e0bad69f49b559725f61
ghc/ghc
Word.hs
# LANGUAGE Trustworthy # # LANGUAGE CPP , NoImplicitPrelude , BangPatterns , MagicHash , UnboxedTuples # # OPTIONS_HADDOCK not - home # ----------------------------------------------------------------------------- -- | -- Module : GHC.Word Copyright : ( c ) The University of Glasgow , 1997 - 2002 -- Licen...
null
https://raw.githubusercontent.com/ghc/ghc/929161943f19e1673288adc83d165ddc99865798/libraries/base/GHC/Word.hs
haskell
--------------------------------------------------------------------------- | Module : GHC.Word License : see libraries/base/LICENSE Maintainer : Stability : internal 'Word64'. --------------------------------------------------------------------------- * Shifts * Bit reversal * Equality ope...
# LANGUAGE Trustworthy # # LANGUAGE CPP , NoImplicitPrelude , BangPatterns , MagicHash , UnboxedTuples # # OPTIONS_HADDOCK not - home # Copyright : ( c ) The University of Glasgow , 1997 - 2002 Portability : non - portable ( GHC Extensions ) Sized unsigned integral types : ' Word ' , ' Word8 ' , ' Word16 ...
1727484c18073b5e5036e12f0449fc8b75b73e9b9d6b00ee244fcefdf58d0aaf
janestreet/memtrace_viewer_with_deps
backpressure_test_shared.ml
module Protocol = Protocol
null
https://raw.githubusercontent.com/janestreet/memtrace_viewer_with_deps/5a9e1f927f5f8333e2d71c8d3ca03a45587422c4/vendor/incr_dom/example/test_backpressure/shared/backpressure_test_shared.ml
ocaml
module Protocol = Protocol
ac59ef7baa539cc1982bb59261cb5fd44de1ae29b66909107d1572d887079bb2
Lupino/haskell-periodic
BaseClient.hs
{-# LANGUAGE OverloadedStrings #-} module Periodic.Trans.BaseClient ( BaseClientT , BaseClientEnv , getClientEnv , close , runBaseClientT , ping , submitJob_ , submitJob , runJob_ , runJob , checkHealth , successRequest ) where import Control.Monad (unless) import ...
null
https://raw.githubusercontent.com/Lupino/haskell-periodic/d685e806caf3bb54575fc5cb1ca5a3bf1e98969c/periodic-client/src/Periodic/Trans/BaseClient.hs
haskell
# LANGUAGE OverloadedStrings #
module Periodic.Trans.BaseClient ( BaseClientT , BaseClientEnv , getClientEnv , close , runBaseClientT , ping , submitJob_ , submitJob , runJob_ , runJob , checkHealth , successRequest ) where import Control.Monad (unless) import Data.Binary ...
4f9b07d927fc2a8a6c57befaaf9e7bed9531a9947a26bc07ab16f28cdbc17960
hraberg/shen.clj
overwrite.clj
src / shen / overwrite.clj (ns shen (:use [shen.primitives]) (:require [clojure.core :as c]) (:refer-clojure :only [])) (set '*language* "Clojure") (set '*implementation* (c/str "Clojure " (c/clojure-version) " [jvm "(System/getProperty "java.version")"]")) (set '*porters* "Håkan ...
null
https://raw.githubusercontent.com/hraberg/shen.clj/41bf09e61dd3a9df03cf929f0e8415087b730396/src/shen/overwrite.clj
clojure
src / shen / overwrite.clj (ns shen (:use [shen.primitives]) (:require [clojure.core :as c]) (:refer-clojure :only [])) (set '*language* "Clojure") (set '*implementation* (c/str "Clojure " (c/clojure-version) " [jvm "(System/getProperty "java.version")"]")) (set '*porters* "Håkan ...
82a3bcd818ec3e6ec551117b8815a3c1294961619a4ad99afe12f49fa0452f47
kadena-io/chainweaver
Annotation.hs
# LANGUAGE CPP # {-# LANGUAGE ConstraintKinds #-} # LANGUAGE DataKinds # # LANGUAGE ExtendedDefaultRules # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskel...
null
https://raw.githubusercontent.com/kadena-io/chainweaver/5d40e91411995e0a9a7e782d6bb2d89ac1c65d52/frontend/src/Frontend/Editor/Annotation.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE OverloadedStrings # | Annotations for our `Editor`. License : BSD-style (see the file LICENSE) * Types and Classes ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ...
# LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE ExtendedDefaultRules # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # Copyright : ( C ) 2020 - 2022 ...
c095940ce4a21a1b8ccf4d56395ea15020594d2787b98e5f33956c467a7397d6
uwiger/parse_trans
ex_gen_module.erl
-module(ex_gen_module). -compile(export_all). -compile({parse_transform, parse_trans_codegen}). f() -> codegen:gen_module(test, [{render,0}, {source, 0}], [ {render, fun() -> x end}, {source, fun() -> ok end} ]).
null
https://raw.githubusercontent.com/uwiger/parse_trans/56f5c6cad48eaca8e0b2626e0df3587e6bf2da6e/examples/ex_gen_module.erl
erlang
-module(ex_gen_module). -compile(export_all). -compile({parse_transform, parse_trans_codegen}). f() -> codegen:gen_module(test, [{render,0}, {source, 0}], [ {render, fun() -> x end}, {source, fun() -> ok end} ]).
1f0203700c72e196b4c4f82242af7ede93c4a5674ea31ddc8f460a6f6690774e
Engil/Canopy
canopy_utils.ml
let assoc_opt k l = match List.assoc k l with | v -> Some v | exception Not_found -> None let map_opt fn default = function | None -> default | Some v -> fn v let list_reduce_opt l = let rec aux acc = function | [] -> acc | (Some x)::xs -> aux (x::acc) xs | None::xs -> aux acc xs in aux []...
null
https://raw.githubusercontent.com/Engil/Canopy/7ad8691be9dffa60ba4fe9e1f2a786c12909780b/canopy_utils.ml
ocaml
let assoc_opt k l = match List.assoc k l with | v -> Some v | exception Not_found -> None let map_opt fn default = function | None -> default | Some v -> fn v let list_reduce_opt l = let rec aux acc = function | [] -> acc | (Some x)::xs -> aux (x::acc) xs | None::xs -> aux acc xs in aux []...
132e6e6650d7fc44876fa2f81639a7df7a2d6775e6fbdc5c7df1ebe74435477b
ghollisjr/cl-ana
package.lisp
(defpackage :cl-ana.spline (:use :cl :cl-ana.fitting :cl-ana.macro-utils :cl-ana.list-utils :cl-ana.tensor :cl-ana.math-functions) (:export :polynomial-spline ; supports polynomial splines of arbitrary order ;; struct accessors :polynomial-spline-degree :polynomia...
null
https://raw.githubusercontent.com/ghollisjr/cl-ana/c866a85e32da66bb23012ea151d20314db6a3bcd/spline/package.lisp
lisp
supports polynomial splines of arbitrary order struct accessors generate consraint equations derivatives to any degree definite integral
(defpackage :cl-ana.spline (:use :cl :cl-ana.fitting :cl-ana.macro-utils :cl-ana.list-utils :cl-ana.tensor :cl-ana.math-functions) (:export :polynomial-spline-degree :polynomial-spline-coefs :polynomial-spline-xs :polynomial-spline-deltas supports splines provid...
cfee5fe8d325487ee985fab767a606827ab94fcf9e89818f341e0fb1b12487be
thizanne/cormoran
util.ml
open Batteries Lexing Lexing *) let file_lexbuf filename = let open Lexing in let lexbuf = from_channel @@ open_in filename in lexbuf.lex_curr_p <- { lexbuf.lex_curr_p with pos_fname = filename }; lexbuf.lex_start_p <- { lexbuf.lex_start_p with pos_fname = filename }; lexbuf (* Option *) let s...
null
https://raw.githubusercontent.com/thizanne/cormoran/46d13330ebd1c8224a0603fd473d8e6bed48bf53/src/util.ml
ocaml
Option List Timing
open Batteries Lexing Lexing *) let file_lexbuf filename = let open Lexing in let lexbuf = from_channel @@ open_in filename in lexbuf.lex_curr_p <- { lexbuf.lex_curr_p with pos_fname = filename }; lexbuf.lex_start_p <- { lexbuf.lex_start_p with pos_fname = filename }; lexbuf let str_int_option =...
dadea68786b8573b80c82d1f51087c7766ac12d3b796898de0656aa2a4dcd3ad
RJ/erlang-spdy
espdy_stream.erl
%% One of these is spawned per stream ( SYN_STREAM ) %% %% It delegates to the (currently hardcoded) callback module, which will %% makes the request look like a normal http req to the app %% -module(espdy_stream). -behaviour(gen_server). -include("include/espdy.hrl"). -compile(export_all). %% API -export([start_...
null
https://raw.githubusercontent.com/RJ/erlang-spdy/3a15f26a80db87e0d901e8f1096682f848953d75/src/espdy_stream.erl
erlang
It delegates to the (currently hardcoded) callback module, which will makes the request look like a normal http req to the app API gen_server callbacks them us API gen_server callbacks Z = zlib:open(), part of streamed body last of streamed body Called when we got a syn_stream for this stream. cb mo...
One of these is spawned per stream ( SYN_STREAM ) -module(espdy_stream). -behaviour(gen_server). -include("include/espdy.hrl"). -compile(export_all). -export([start_link/5, send_data_fin/1, send_data/2, closed/2, received_data/2, send_response/3, received_fin/1, send_frame/2, headers_updated/3 ])....
0a685e5ab04a2ad315d4df56ed4311b6aea2cab972c716be1d9fedac1c1bec34
ml4tp/tcoq
cUnix.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/lib/cUnix.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * correct_path f dir = dir/f if f is...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * { 5 System utilities } typ...
28d995faf29cb89371609e6ad0b883abe07ea7359d36d8502d93dbc1880e4052
gelisam/ludum-dare-31
Ending.hs
module Ending where import Control.Applicative import Data.Monoid import Graphics.Gloss import Animation import Graphics.Gloss.Extra import InputBlocking import Popup import Vec2d endingAnimation :: InputBlockingAnimation Picture endingAnimation = inputBlockingAnimation $ mappend fadeToWhite ...
null
https://raw.githubusercontent.com/gelisam/ludum-dare-31/4bdd2937b290c41118503bc85a2a16a73139edd2/src/Ending.hs
haskell
module Ending where import Control.Applicative import Data.Monoid import Graphics.Gloss import Animation import Graphics.Gloss.Extra import InputBlocking import Popup import Vec2d endingAnimation :: InputBlockingAnimation Picture endingAnimation = inputBlockingAnimation $ mappend fadeToWhite ...
b635c9d23e08f5bf318dd6d01eebe34da7d595447920eb0bae35de9ca35355f9
kayceesrk/Quelea
SimpleBroker.hs
{-# LANGUAGE OverloadedStrings #-} module Quelea.NameService.SimpleBroker ( startBroker, mkNameService ) where import qualified System.ZMQ4 as ZMQ4 import System.ZMQ4.Monadic import Control.Concurrent import Control.Monad import Data.ByteString.Char8 (unpack, pack) import System.Directory import System.Posix.Proc...
null
https://raw.githubusercontent.com/kayceesrk/Quelea/73db79a5d5513b9aeeb475867a67bacb6a5313d0/src/Quelea/NameService/SimpleBroker.hs
haskell
# LANGUAGE OverloadedStrings # ip Port# Create a router and a dealer Start proxy to distribute requests to workers Fork a daemon thread that joins with the backend. The daemon shares the - servers address for every client request. The client then joins with the - server. Backend ip (only for sticky)...
module Quelea.NameService.SimpleBroker ( startBroker, mkNameService ) where import qualified System.ZMQ4 as ZMQ4 import System.ZMQ4.Monadic import Control.Concurrent import Control.Monad import Data.ByteString.Char8 (unpack, pack) import System.Directory import System.Posix.Process import Control.Monad.Trans (lif...
d21e5676ec3e564ef9caa199195ef616ffa819cbeae058318f7b400888ca4cf1
Deep-Symmetry/beat-link-trigger
settings_loader.clj
(ns beat-link-trigger.settings-loader "Provides the user inerface for configuring a My Settings profile and sending it to players found on the network." (:require [beat-link-trigger.prefs :as prefs] [beat-link-trigger.track-loader :as track-loader] [clojure.string :as str] [see...
null
https://raw.githubusercontent.com/Deep-Symmetry/beat-link-trigger/f25a79b70d7da55b4feeca5690cf2c40e00a2dee/src/beat_link_trigger/settings_loader.clj
clojure
If there is a stored preference for this setting, establish it. Create the combo box with a model that uses the specified enumeration constants, and a custom cell renderer which draws the displayValue, rather than the persistence-oriented toString() value, and install a state change handler which updates both the s...
(ns beat-link-trigger.settings-loader "Provides the user inerface for configuring a My Settings profile and sending it to players found on the network." (:require [beat-link-trigger.prefs :as prefs] [beat-link-trigger.track-loader :as track-loader] [clojure.string :as str] [see...
1a54370a7dee4720e0cff2e3328b5cc9dbb5facba9b6ee9d3ecd02c1d2088839
roosta/herb
handler.clj
(ns site.handler (:require [reitit.ring :as reitit-ring] [site.middleware :refer [middleware]] [hiccup.page :refer [include-js include-css html5]] [config.core :refer [env]])) (def mount-target [:div#app]) (defn head [] [:head [:meta {:charset "utf-8"}] [:title "Herb: C...
null
https://raw.githubusercontent.com/roosta/herb/5718582956a3f6c52092e663412debc3983c2ff0/site/src/site/handler.clj
clojure
(ns site.handler (:require [reitit.ring :as reitit-ring] [site.middleware :refer [middleware]] [hiccup.page :refer [include-js include-css html5]] [config.core :refer [env]])) (def mount-target [:div#app]) (defn head [] [:head [:meta {:charset "utf-8"}] [:title "Herb: C...
881caceb2618d981629c26d39d1cdad16ffa8dedc79f789e8fc5f8e906387a71
replikativ/datahike-frontend
rest_remote.cljs
(ns app.dashboard.rest-remote (:require [clojure.core.async :refer [go]] [com.wsscode.async.async-cljs :refer [<?maybe]] [com.fulcrologic.fulcro.algorithms.tx-processing :as txn] [edn-query-language.core :as eql] [taoensso.timbre :as log] )) (defn remote [parser] {:transmit! (fn [_ {::txn/key...
null
https://raw.githubusercontent.com/replikativ/datahike-frontend/6e3ab3bb761b41c4ffea792297286f8942a27909/src/main/app/dashboard/rest_remote.cljs
clojure
(ns app.dashboard.rest-remote (:require [clojure.core.async :refer [go]] [com.wsscode.async.async-cljs :refer [<?maybe]] [com.fulcrologic.fulcro.algorithms.tx-processing :as txn] [edn-query-language.core :as eql] [taoensso.timbre :as log] )) (defn remote [parser] {:transmit! (fn [_ {::txn/key...
d6507588b4b15404d5a624160df4c46a9f965f764364b4dd16b9720b0d944f51
ChrisCoffey/haskell-opentracing-light
Tracing.hs
{-# LANGUAGE RankNTypes #-} module Servant.Tracing ( WithTracing, TracingInstructions(..), instructionsToHeader, getInstructions ) where import Tracing.Core (Tracer, TraceId(..), SpanId(..), MonadTracer, TracingInstructions(..)) import Control.Arrow (first) import Control.Monad.Trans (liftIO, Mona...
null
https://raw.githubusercontent.com/ChrisCoffey/haskell-opentracing-light/82a4dfa757a7cbbbbef82e68e766e0f1a9411570/src/Servant/Tracing.hs
haskell
# LANGUAGE RankNTypes # | Jaeger format: /#propagation-format This allows the trace backend to reassemble downstream traces. | In the event that there are no 'TracingInstructions' for this call, generate new instructions. This has a
module Servant.Tracing ( WithTracing, TracingInstructions(..), instructionsToHeader, getInstructions ) where import Tracing.Core (Tracer, TraceId(..), SpanId(..), MonadTracer, TracingInstructions(..)) import Control.Arrow (first) import Control.Monad.Trans (liftIO, MonadIO) import qualified Data.T...
d4feadd0d4576daa186961f0752dd2b9ee8e00371382b3b6f81563d3b572234e
ghc/testsuite
Check08.hs
# LANGUAGE Trustworthy , NoImplicitPrelude # {-# OPTIONS_GHC -fpackage-trust #-} make sure selective safe imports brings in pkg trust requirements correctly . -- (e.g only for the imports that are safe ones) module Check08 ( main' ) where no pkg trust base pkg trust main' = let n = a (b 1) in n
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/safeHaskell/check/Check08.hs
haskell
# OPTIONS_GHC -fpackage-trust # (e.g only for the imports that are safe ones)
# LANGUAGE Trustworthy , NoImplicitPrelude # make sure selective safe imports brings in pkg trust requirements correctly . module Check08 ( main' ) where no pkg trust base pkg trust main' = let n = a (b 1) in n
0e28e4c7bc002892639c87fafd188559623944d716fe8a4c7652ab21f407159c
nubank/midje-nrepl
arithmetic_test.clj
(ns octocat.arithmetic-test (:require [midje.sweet :refer :all])) (facts "about arithmetic operations" (fact (* 2 5) => 10) (fact "this is a crazy arithmetic" (+ 2 3) => 6) (fact "two assertions in the same fact; the former is correct while the later is wrong" (+ 10 ...
null
https://raw.githubusercontent.com/nubank/midje-nrepl/b4d505f346114db88ad5b5c6b3c8f0af4e0136fc/dev-resources/octocat/test/octocat/arithmetic_test.clj
clojure
(ns octocat.arithmetic-test (:require [midje.sweet :refer :all])) (facts "about arithmetic operations" (fact (* 2 5) => 10) (fact "this is a crazy arithmetic" (+ 2 3) => 6) (fact "two assertions in the same fact; the former is correct while the later is wrong" (+ 10 ...
528fda7b934a0699091f5f3e6121671f2c5444cdad2c638a05f3243fe0af10be
skanev/playground
15-tests.scm
(require rackunit rackunit/text-ui) (load-relative "../../support/eopl.scm") (load-relative "../15.scm") (define (run code) (eval* code (empty-env))) (define (expval->schemeval val) (cases expval val (num-val (num) num) (bool-val (bool) bool) (emptylist-val () '()) (pair-val (car cdr) (cons ...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/eopl/03/tests/15-tests.scm
scheme
(require rackunit rackunit/text-ui) (load-relative "../../support/eopl.scm") (load-relative "../15.scm") (define (run code) (eval* code (empty-env))) (define (expval->schemeval val) (cases expval val (num-val (num) num) (bool-val (bool) bool) (emptylist-val () '()) (pair-val (car cdr) (cons ...
cc0ff29d6855d2e3d72e0513f6199b5dc4688bc48fc572ee72041aceeb0d138e
borodust/bodge-ui
color-picker.lisp
(cl:in-package :bodge-ui) ;;; ;;; ;;; (defclass color-picker (widget disposable) ((color))) (defmethod initialize-instance :after ((this color-picker) &key (color (vec4 1 1 1 1))) (with-slots ((this-color color)) this (setf this-color (c-let ((color-f (:struct %nuklear:colorf) :alloc t)) ...
null
https://raw.githubusercontent.com/borodust/bodge-ui/db896ca3be9026444398e0192a48b048aa7db574/src/elements/color-picker.lisp
lisp
(cl:in-package :bodge-ui) (defclass color-picker (widget disposable) ((color))) (defmethod initialize-instance :after ((this color-picker) &key (color (vec4 1 1 1 1))) (with-slots ((this-color color)) this (setf this-color (c-let ((color-f (:struct %nuklear:colorf) :alloc t)) (setf (co...
cb7bb32018ab2042fb6ce9ef35dd4382dbc140dda58f448d0a4bdae640006881
esoeylemez/netwire
Switch.hs
-- | -- Module: Control.Wire.Switch Copyright : ( c ) 2013 -- License: BSD3 Maintainer : < > module Control.Wire.Switch ( -- * Simple switching (-->), (>--), -- * Context switching modes, -- * Event-based switching -- ** Intrinsic switch, dSwitch, ...
null
https://raw.githubusercontent.com/esoeylemez/netwire/612daf7440e903ecc94231141145d80cf452513a/Control/Wire/Switch.hs
haskell
| Module: Control.Wire.Switch License: BSD3 * Simple switching >), ), * Context switching * Event-based switching ** Intrinsic ** Intrinsic continuable ** Extrinsic ** Extrinsic continuable * Depends: like current wire. * Switch: now. >) :: (Monad m) => Wire s e m a b -> Wire s e m a b -> Wire s e...
Copyright : ( c ) 2013 Maintainer : < > module Control.Wire.Switch modes, switch, dSwitch, kSwitch, dkSwitch, rSwitch, drSwitch, alternate, krSwitch, dkrSwitch ) where import Control.Applicative import Control.Arrow import Control.Monad i...
e0a83f31ce20ddb0b1c8bca85103ac6258087b90e0a5170f40ac1e38b64d378e
unison-code/unison
GroupCalls.hs
| Copyright : Copyright ( c ) 2016 , RISE SICS AB License : BSD3 ( see the LICENSE file ) Maintainer : Copyright : Copyright (c) 2016, RISE SICS AB License : BSD3 (see the LICENSE file) Maintainer : -} Main authors : < > This file is part of Unison , see -code.github.io ...
null
https://raw.githubusercontent.com/unison-code/unison/9f8caf78230f956a57b50a327f8d1dca5839bf64/src/unison/src/Unison/Tools/Extend/GroupCalls.hs
haskell
| Copyright : Copyright ( c ) 2016 , RISE SICS AB License : BSD3 ( see the LICENSE file ) Maintainer : Copyright : Copyright (c) 2016, RISE SICS AB License : BSD3 (see the LICENSE file) Maintainer : -} Main authors : < > This file is part of Unison , see -code.github.io ...
02fab3e5b2dc683443e66658189024343dff10d4414cc251c2bc557abaf2b309
bytekid/mkbtt
monad.ml
Copyright 2008 , Christian Sternagel , * GNU Lesser General Public License * * This file is part of TTT2 . * * TTT2 is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either ve...
null
https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/util/src/monad.ml
ocaml
** OPENS ******************************************************************* ** MODULES ***************************************************************** ** MODULE TYPES ************************************************************ ** MODULES ***************************************************************** ** INCLUDES ...
Copyright 2008 , Christian Sternagel , * GNU Lesser General Public License * * This file is part of TTT2 . * * TTT2 is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either ve...
2dd63e362e2121f9aca23aafcb0a69fa6de1a76af23d09b96360005b1c5de5ff
ftovagliari/ocamleditor
greek.ml
OCamlEditor Copyright ( C ) 2010 - 2014 This file is part of OCamlEditor . OCamlEditor is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at y...
null
https://raw.githubusercontent.com/ftovagliari/ocamleditor/53284253cf7603b96051e7425e85a731f09abcd1/src/greek.ml
ocaml
let tag = buffer#create_tag [`SCALE `X_LARGE] in ~name:(Gtk_util.create_mark_name "Greek.replace1") ~name:(Gtk_util.create_mark_name "Greek.replace3") ~name:(Gtk_util.create_mark_name "Greek.replace4") ~name:(Gtk_util.create_mark_name "Greek.replace5")
OCamlEditor Copyright ( C ) 2010 - 2014 This file is part of OCamlEditor . OCamlEditor is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at y...
392c0c331a79f0ebcbcd90163c7134bc2fbbbb892c5afa9c74b599d058057fa6
mbutterick/fontland
directory.rkt
#lang racket (require rackunit racket/runtime-path fontland) #| approximates |# (define-runtime-path open-sans-ttf "data/OpenSans/OpenSans-Regular.ttf") (define font (open-font open-sans-ttf)) (test-case "decodes SFNT directory values correctly" (define dir (font-directory font)) (check-equal? (hash-ref dir 'nu...
null
https://raw.githubusercontent.com/mbutterick/fontland/e50e4c82f58e2014d64e87a14c1d29b546fb393b/fontland/test/directory.rkt
racket
approximates
#lang racket (require rackunit racket/runtime-path fontland) (define-runtime-path open-sans-ttf "data/OpenSans/OpenSans-Regular.ttf") (define font (open-font open-sans-ttf)) (test-case "decodes SFNT directory values correctly" (define dir (font-directory font)) (check-equal? (hash-ref dir 'numTables) 19) (check...
2f611ecd6e0ea7153d815da8e5a9ea7f9d2dd381316ed4b163276c49eecb97c3
yitzchak/common-lisp-jupyter
sys-install.lisp
(load "quicklisp.lisp") (quicklisp-quickstart:install) (ql-util:without-prompting (ql:add-to-init-file)) (ql:quickload :ziz) (ziz:with-distribution (dist :releases '(".")) (ql-dist:install-dist (ziz:distribution-info-url dist) :prompt nil) (ql:quickload :common-lisp-jupyter)) (cl-jupyter:install :system t :pr...
null
https://raw.githubusercontent.com/yitzchak/common-lisp-jupyter/930e600cac727360e53cc44a17fde41f05125547/scripts/sys-install.lisp
lisp
(load "quicklisp.lisp") (quicklisp-quickstart:install) (ql-util:without-prompting (ql:add-to-init-file)) (ql:quickload :ziz) (ziz:with-distribution (dist :releases '(".")) (ql-dist:install-dist (ziz:distribution-info-url dist) :prompt nil) (ql:quickload :common-lisp-jupyter)) (cl-jupyter:install :system t :pr...
184807973091a76e278d0e086e3d92525395144e6b1355ef5cfe45ac8df7e70d
dyoo/ragg
support.rkt
#lang racket/base (provide [struct-out token-struct] token [struct-out exn:fail:parsing]) (struct token-struct (type val offset line column span skip?) #:transparent) ;; Token constructor. ;; This is intended to be a general token structure constructor that's nice ;; to work with. ;; It s...
null
https://raw.githubusercontent.com/dyoo/ragg/9cc648e045f7195702599b88e6b8db9364f88302/ragg/support.rkt
racket
Token constructor. This is intended to be a general token structure constructor that's nice to work with. It should cooperate with the tokenizers constructed with make-permissive-tokenizer. (U symbol string) any (U #f number) (U #f number) (U #f number) boolean When bad things happen, we need to emit errors ...
#lang racket/base (provide [struct-out token-struct] token [struct-out exn:fail:parsing]) (struct token-struct (type val offset line column span skip?) #:transparent) (define token #:skip? [skip? #f]) (token-struct (if (string? type) (string->symbol type) type) ...
79aae92a59a582368b186bc358631762a6bd0168007ad3f4d612b292a6484d68
rowangithub/DOrder
split.ml
let rec loop i j k n b = if (n < 2 * k) then let n = n + 1 in let i, j = if (b = 1) then i+1, j else i, j+1 in let b = 1 - b in loop i j k n b Hack : add n mod 2 = 0 as a predicate else if (n mod 2 = 0) then assert (i = j) else () add a qualifier b = 0 || b = 1 to encode boolean variables using...
null
https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/tests/folprograms/sc/split.ml
ocaml
let rec loop i j k n b = if (n < 2 * k) then let n = n + 1 in let i, j = if (b = 1) then i+1, j else i, j+1 in let b = 1 - b in loop i j k n b Hack : add n mod 2 = 0 as a predicate else if (n mod 2 = 0) then assert (i = j) else () add a qualifier b = 0 || b = 1 to encode boolean variables using...
0cf46f67813b5fe93bd0107c5fca60d2c6b4b08b0aa5628f4340d1f12b35b1eb
returntocorp/semgrep
Run.ml
(* Entry point to the program and command-line interface *) [ run file ] will print on stdout some * boilerplate code of the form : * * let todo _ env _ x = * failwith " TODO " * * let v = * match v with * | Int v1 - > * let v1 = map_int env v1 in * tod...
null
https://raw.githubusercontent.com/returntocorp/semgrep/855abad9ada6ea5fd72d437fd69ff2e5fa42c1f1/tools/otarzan/lib/Run.ml
ocaml
Entry point to the program and command-line interface
[ run file ] will print on stdout some * boilerplate code of the form : * * let todo _ env _ x = * failwith " TODO " * * let v = * match v with * | Int v1 - > * let v1 = map_int env v1 in * todo env v1 * | Plus ( v1 , v2 ) - > * let v1 = ma...
338ad032c936e2879b5c270478069042816e8f7585d56c97fc9edaef716f6f4a
Zulu-Inuoe/clution
builtin-expanders.lisp
enumerable - enumerable implementation for CL , using cl - cont Written in 2018 by < > ;;; ;;;To the extent possible under law, the author(s) have dedicated all copyright ;;;and related and neighboring rights to this software to the public domain ;;;worldwide. This software is distributed without any warran...
null
https://raw.githubusercontent.com/Zulu-Inuoe/clution/b72f7afe5f770ff68a066184a389c23551863f7f/cl-clution/qlfile-libs/enumerable-master/src/builtin-expanders.lisp
lisp
To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. with this software. If not, see </>.
enumerable - enumerable implementation for CL , using cl - cont Written in 2018 by < > You should have received a copy of the CC0 Public Domain Dedication along (in-package #:enumerable) (define-do-enumerable-expander list (type var enumerable result body env) `(dolist (,var ,enumerable ,result)...
2f9750622a583c059f7d39b089313dcf2c9ee5c4a7f08605f4301cd1f95381b2
xandkar/tiger.ml
tiger_semant_escape.ml
module List = ListLabels module A = Tiger_absyn module Opt = Tiger_opt module Map = Tiger_map module Sym = Tiger_symbol type info = { depth : int ; escapes : bool ref } type env = (Sym.t, info) Map.t let rec traverseExp ~(env : env) ~depth (exp : A.exp) = (match exp with | A.NilExp | A.IntExp _ ...
null
https://raw.githubusercontent.com/xandkar/tiger.ml/cc540a7e2dfcee4411953075210a64de874b91e5/compiler/src/lib/tiger/tiger_semant_escape.ml
ocaml
module List = ListLabels module A = Tiger_absyn module Opt = Tiger_opt module Map = Tiger_map module Sym = Tiger_symbol type info = { depth : int ; escapes : bool ref } type env = (Sym.t, info) Map.t let rec traverseExp ~(env : env) ~depth (exp : A.exp) = (match exp with | A.NilExp | A.IntExp _ ...
1b8dfb1cbc44af2967ad0d9310f134f7359e6a5cc5bcc849b41eb9b442cf53d7
dyzsr/ocaml-selectml
datarepr.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/typing/datarepr.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the Compute constructor and label descriptions from type declarations , determining their representati...
ab551c5a56e013a20eb3a727763e7eac2b55f66cd3969c8718ccb5cca4f445ce
b0-system/b0
b00.mli
--------------------------------------------------------------------------- Copyright ( c ) 2018 The b0 programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 20...
null
https://raw.githubusercontent.com/b0-system/b0/403364829e51d8bb0c1c3fddcfc7d240a4714e4c/src/b00/b00.mli
ocaml
* Build kernel * {1:b00 B00} * The type for lists of environment variable names. * The type for response file specification. * [response_file_of to_file cli] is a response file specification that uses [to_file cmd] to convert the command line [cmd] to a response file content and [cli f] a command line f...
--------------------------------------------------------------------------- Copyright ( c ) 2018 The b0 programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 20...
857ea64b7294ebfd26be2df0bfae9b950affa570e2c19d7c5d3f935d68c41d7a
retro/keechma-next-realworld-app
delete_article_button.cljs
(ns app.ui.components.delete-article-button (:require [keechma.next.helix.core :refer [with-keechma dispatch]] [keechma.next.helix.lib :refer [defnc]] [helix.core :as hx :refer [$ <> suspense]] [helix.dom :as d] ["react" :as react] ["react-dom" :as rdom] ...
null
https://raw.githubusercontent.com/retro/keechma-next-realworld-app/47a14f4f3f6d56be229cd82f7806d7397e559ebe/src/app/ui/components/delete_article_button.cljs
clojure
(ns app.ui.components.delete-article-button (:require [keechma.next.helix.core :refer [with-keechma dispatch]] [keechma.next.helix.lib :refer [defnc]] [helix.core :as hx :refer [$ <> suspense]] [helix.dom :as d] ["react" :as react] ["react-dom" :as rdom] ...
f8e9e7261e687982e38f099f302193445d70d77062874b225a3ea416c9897b96
Shirakumo/kandria
history.lisp
(in-package #:org.shirakumo.fraf.kandria) (defclass history () ()) (defgeneric commit (action history)) (defgeneric actions (history)) (defclass action () ((description :initarg :description :initform "<unknown change>" :accessor description) (index :initform 0 :accessor index))) (defmethod print-object ((ac...
null
https://raw.githubusercontent.com/Shirakumo/kandria/0eafe60b5f50c18980a6acc977dc45987e8e26c1/editor/history.lisp
lisp
(in-package #:org.shirakumo.fraf.kandria) (defclass history () ()) (defgeneric commit (action history)) (defgeneric actions (history)) (defclass action () ((description :initarg :description :initform "<unknown change>" :accessor description) (index :initform 0 :accessor index))) (defmethod print-object ((ac...
96dedb786c956948375b45984549c40c2f60e0bbbdcb37cea2ca1b805ea00dca
leftaroundabout/beamonad
Redundancy.hs
-- | Module : Data . . Redundancy Copyright : ( c ) 2017 -- License : GPL v3 -- -- Maintainer : (@) jsag $ hvl.no -- Stability : experimental -- Portability : portable -- module Data.Traversable.Redundancy where import Data.Foldable (toList) import Data.Traversable import Data.Vector (Vecto...
null
https://raw.githubusercontent.com/leftaroundabout/beamonad/67cb0f34b38dc31944ff9c360051face3f7760d5/Data/Traversable/Redundancy.hs
haskell
| License : GPL v3 Maintainer : (@) jsag $ hvl.no Stability : experimental Portability : portable
Module : Data . . Redundancy Copyright : ( c ) 2017 module Data.Traversable.Redundancy where import Data.Foldable (toList) import Data.Traversable import Data.Vector (Vector) import qualified Data.Vector as Arr import qualified Data.Map as Map import Data.List (sortBy) import Data.Ord (comparing) ...
506468e10d507c88c7086d0bccbae5485bf6126aff8fc3f37cd96ebfcb2379f8
macourtney/Dark-Exchange
confirm_trade.clj
(ns darkexchange.model.actions.confirm-trade (:require [darkexchange.interchange-map-util :as interchange-map-util] [darkexchange.model.actions.action-keys :as action-keys] [darkexchange.model.trade :as trade-model])) (def action-key action-keys/confirm-trade-action-key) (defn confirm-trade ...
null
https://raw.githubusercontent.com/macourtney/Dark-Exchange/1654d05cda0c81585da7b8e64f9ea3e2944b27f1/src/darkexchange/model/actions/confirm_trade.clj
clojure
(ns darkexchange.model.actions.confirm-trade (:require [darkexchange.interchange-map-util :as interchange-map-util] [darkexchange.model.actions.action-keys :as action-keys] [darkexchange.model.trade :as trade-model])) (def action-key action-keys/confirm-trade-action-key) (defn confirm-trade ...
b3da73209f253e2e465548d0463171d45fd9c5daef5aa3a85e5de7f9e7f6ab11
B-Lang-org/bsc
YicesFFI.hs
{-# LANGUAGE ForeignFunctionInterface #-} {-# LANGUAGE EmptyDataDecls #-} module YicesFFI ( -- * C types YExpr, YType, YContext, YStatus, YModel, YContextConfig, YParams, YErrorCode, -- YErrorReport, -- * Version numbers yices_version, yices_build_ar...
null
https://raw.githubusercontent.com/B-Lang-org/bsc/bd141b505394edc5a4bdd3db442a9b0a8c101f0f/src/vendor/yices/v2.6/HaskellIfc/YicesFFI.hs
haskell
# LANGUAGE ForeignFunctionInterface # # LANGUAGE EmptyDataDecls # * C types YErrorReport, * Version numbers yices_has_mcsat, yices_is_thread_safe, * Global initialization and cleanup yices_free_string, * Out-of-memory callback yices_set_out_ot_mem_callback, * Error reporting yices_error_report,...
module YicesFFI ( YExpr, YType, YContext, YStatus, YModel, YContextConfig, YParams, YErrorCode, yices_version, yices_build_arch, yices_build_mode, yices_build_date, yices_init, yices_exit, yices_reset, yices_error_code, yices_clear_error , ...