_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
bde944430f52bede1d8d4adac64292287353b4177ccd00714ee56dd9a7773d1a
ocaml-multicore/ocaml-tsan
functors.ml
(* TEST flags = "-dshape" * expect *) module type S = sig type t val x : t end [%%expect{| { "S"[module type] -> <.2>; } module type S = sig type t val x : t end |}] module Falias (X : S) = X [%%expect{| { "Falias"[module] -> Abs<.4>(X/280, X/280<.3>); } module Falias : functor (X : S) -> sig type t = X...
null
https://raw.githubusercontent.com/ocaml-multicore/ocaml-tsan/ae9c1502103845550162a49fcd3f76276cdfa866/testsuite/tests/shapes/functors.ml
ocaml
TEST flags = "-dshape" * expect ************************************************************************* Make sure we restrict shapes even when constraints imply [Tcoerce_none] *************************************************************************
module type S = sig type t val x : t end [%%expect{| { "S"[module type] -> <.2>; } module type S = sig type t val x : t end |}] module Falias (X : S) = X [%%expect{| { "Falias"[module] -> Abs<.4>(X/280, X/280<.3>); } module Falias : functor (X : S) -> sig type t = X.t val x : t end |}] module Finclude (X : S...
794133a9dcf46dc6d1465bd4d71a6c07c4e8929edff7c204aba5f0ce7e80e5a5
avsm/mirage-duniverse
topkg_fexts.ml
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
null
https://raw.githubusercontent.com/avsm/mirage-duniverse/983e115ff5a9fb37e3176c373e227e9379f0d777/ocaml_modules/topkg/src/topkg_fexts.ml
ocaml
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
72c7526540310d8f737f617e27b2d8ac3d7413ef7b6db01f981a3506dc8c1074
VERIMAG-Polyhedra/VPL
PoltoPLP.ml
module Cs = Cstr.Rat module Vec = Cs.Vec let build : 'c Factory.t -> Vec.t -> 'c Cons.t list -> 'c PSplx.t = fun factory normalization_point cstrs -> let conss = cstrs @ [PSplxBuild.trivial_constraint factory] in let obj_cstrs = List.mapi (fun i _ -> i) conss in let n_rows = 1 in PSplxBuild.init conss n_rows obj_...
null
https://raw.githubusercontent.com/VERIMAG-Polyhedra/VPL/cd78d6e7d120508fd5a694bdb01300477e5646f8/ocaml/plp/PoltoPLP.ml
ocaml
* Computes the denominantor of lambda from the new point (homogenized) and the polyhedron face.
module Cs = Cstr.Rat module Vec = Cs.Vec let build : 'c Factory.t -> Vec.t -> 'c Cons.t list -> 'c PSplx.t = fun factory normalization_point cstrs -> let conss = cstrs @ [PSplxBuild.trivial_constraint factory] in let obj_cstrs = List.mapi (fun i _ -> i) conss in let n_rows = 1 in PSplxBuild.init conss n_rows obj_...
0814441b96d2142006ff1290b1254ee6c970b52d347d78f49a60e6cffaeaebd6
nkaretnikov/OOHaskell
Implicit1.hs
( C ) 2004 - 2005 , Oleg Kiselyov & 's overlooked object system module ConsEither where import Shape import Circle import Rectangle import Polymorph hiding (main) -- Constructors for lists of shapes nil :: [AnyShape] nil = [] class Cons s where cons :: s -> [AnyShape] -> [AnyShape] instance Cons Rectan...
null
https://raw.githubusercontent.com/nkaretnikov/OOHaskell/ddf42cfa62f8bd27643ff6db136dec6c14466232/repository/shapes/Haskell/Shapes7/Implicit1.hs
haskell
Constructors for lists of shapes Handle the shapes polymorphically Handle rectangle-specific instance
( C ) 2004 - 2005 , Oleg Kiselyov & 's overlooked object system module ConsEither where import Shape import Circle import Rectangle import Polymorph hiding (main) nil :: [AnyShape] nil = [] class Cons s where cons :: s -> [AnyShape] -> [AnyShape] instance Cons RectangleData where cons = (:) . Left ...
080dfdaa216a82c6d571d02504e39a3a193904310c679f3417c9f95c71a8998c
b1412/clojure-web-admin
common.cljs
(ns clojure-web.components.common (:require-macros [secretary.core :refer [defroute]] [reagent.ratom :refer [reaction]]) (:require [cljs-http.client :as http] [reagent.core :as reagent :refer [atom render-component]] [re-com.core ...
null
https://raw.githubusercontent.com/b1412/clojure-web-admin/018161dcdb364cc168d6f5a56ceb798005a0701f/src/cljs/clojure_web/components/common.cljs
clojure
(ns clojure-web.components.common (:require-macros [secretary.core :refer [defroute]] [reagent.ratom :refer [reaction]]) (:require [cljs-http.client :as http] [reagent.core :as reagent :refer [atom render-component]] [re-com.core ...
d2f9d161de52f58d926cc8648fcae413543d8e9f91b5df884018067b5a99df57
carl-eastlund/mischief
mischief.rkt
#lang mischief (require ;; Base language: mischief (for-template (only-in racket define-syntax define-syntaxes)) ;; Debugging versions: debug (for-template debug/syntax) ;; Export macro: debug/provide) (provide (debug-out (all-from-out mischief) (for-template define-syn...
null
https://raw.githubusercontent.com/carl-eastlund/mischief/ce58c3170240f12297e2f98475f53c9514225825/debug/mischief.rkt
racket
Base language: Debugging versions: Export macro:
#lang mischief (require mischief (for-template (only-in racket define-syntax define-syntaxes)) debug (for-template debug/syntax) debug/provide) (provide (debug-out (all-from-out mischief) (for-template define-syntax define-syntaxes)))
119a2782de2f69c9eec721a6f850dd1d23aa0620d371544fbf345b6950e31c6f
liyang/thyme
sanity.hs
# LANGUAGE CPP # # LANGUAGE ViewPatterns # #if HLINT #include "cabal_macros.h" #endif import Prelude import Control.Arrow import Control.Lens import qualified Data.Attoparsec.ByteString.Char8 as P import Data.ByteString (ByteString) import Data.Thyme import Data.Thyme.Calendar.OrdinalDate import Data.Thyme.Time impo...
null
https://raw.githubusercontent.com/liyang/thyme/c0dcc251ff4f843672987c80b73ec4808bc009e4/tests/sanity.hs
haskell
---------------------------------------------------------------------- ----------------------------------------------------------------------
# LANGUAGE CPP # # LANGUAGE ViewPatterns # #if HLINT #include "cabal_macros.h" #endif import Prelude import Control.Arrow import Control.Lens import qualified Data.Attoparsec.ByteString.Char8 as P import Data.ByteString (ByteString) import Data.Thyme import Data.Thyme.Calendar.OrdinalDate import Data.Thyme.Time impo...
67535757fca00bd706fa9d755e0bc19cb6ea6cde1aafd27aba37366b21581887
erlangonrails/devdb
mochiweb_socket_server.erl
@author < > 2007 Mochi Media , Inc. @doc MochiWeb socket server . -module(mochiweb_socket_server). -author(''). -behaviour(gen_server). -export([start/1, stop/1]). -export([init/1, handle_call/3, handle_cast/2, terminate/2, code_change/3, handle_info/2]). -export([get/2]). -export([acceptor_loop/...
null
https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/riak-0.11.0/deps/mochiweb/src/mochiweb_socket_server.erl
erlang
Internal API IPv4, and IPv6 if supported IPv6 io:format("normal acceptor down~n"), Tests
@author < > 2007 Mochi Media , Inc. @doc MochiWeb socket server . -module(mochiweb_socket_server). -author(''). -behaviour(gen_server). -export([start/1, stop/1]). -export([init/1, handle_call/3, handle_cast/2, terminate/2, code_change/3, handle_info/2]). -export([get/2]). -export([acceptor_loop/...
9b4aeb2387c888fbeaed291412588636d51762e9a4b338c7dc041f14ffa14220
chenyukang/eopl
lang.scm
(module lang (lib "eopl.ss" "eopl") ;; language for MUTABLE-PAIRS (require "drscheme-init.scm") (provide (all-defined)) ;;;;;;;;;;;;;;;; grammatical specification ;;;;;;;;;;;;;;;; (define the-lexical-spec '((whitespace (whitespace) skip) (comment ("%" (arbno (n...
null
https://raw.githubusercontent.com/chenyukang/eopl/0406ff23b993bfe020294fa70d2597b1ce4f9b78/base/chapter4/mutable-pairs/lang.scm
scheme
language for MUTABLE-PAIRS grammatical specification ;;;;;;;;;;;;;;;; new for mutable-pairs sllgen boilerplate ;;;;;;;;;;;;;;;;
(module lang (lib "eopl.ss" "eopl") (require "drscheme-init.scm") (provide (all-defined)) (define the-lexical-spec '((whitespace (whitespace) skip) (comment ("%" (arbno (not #\newline))) skip) (identifier (letter (arbno (or letter digit "_" "-" "?"))) ...
0e0ab282e7805242904a11e5ba29d1b91a92823109bb949c7db41e868030fbf9
appleshan/cl-http
http-client-substrate-4-10.lisp
-*- Mode : LISP ; Syntax : ansi - common - lisp ; Package : cl - USER ; Base : 10 ; Patch - File : t -*- Patch file for HTTP - CLIENT - SUBSTRATE version 4.10 ;;; Reason: Function (CLOS:METHOD HTTP::NOTE-SERVER-HTTP-VERSION-ON-PORT (T T T)): check for correct http versions. Written by JCMa , 4/27/01 19:22:07 w...
null
https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/lispm/client/patch/http-client-substrate-4/http-client-substrate-4-10.lisp
lisp
Syntax : ansi - common - lisp ; Package : cl - USER ; Base : 10 ; Patch - File : t -*- Reason: Function (CLOS:METHOD HTTP::NOTE-SERVER-HTTP-VERSION-ON-PORT (T T T)): check for correct http versions. DOMAIN - FIXES.LISP.33 ) , MAILBOX - FORMAT.LISP.24 ) , MAILER - FIXES.LISP.15 ) , Patch TCP hang on close when clien...
Patch file for HTTP - CLIENT - SUBSTRATE version 4.10 Written by JCMa , 4/27/01 19:22:07 while running on FUJI - VLM from FUJI:/usr / lib / symbolics / ComLink-39 - 8 - F - MIT-8 - 5.vlod with Open Genera 2.0 , Genera 8.5 , Lock Simple 437.0 , Version Control 405.0 , Compare Merge 404.0 , VC Documentation 401...
6d866f8f5ecbb590ad619b849ad0f94bf7761436d564140dcd599df927ee9774
tonsky/datascript
datafy.cljc
(ns datascript.test.datafy (:require #?(:cljs [cljs.test :as t :refer-macros [is are deftest testing]] :clj [clojure.test :as t :refer [is are deftest testing]]) [datascript.datafy :as datafy] [datascript.core :as d] [clojure.core.protocols :as cp] [datascript.impl.entity :as e])) (defn- ...
null
https://raw.githubusercontent.com/tonsky/datascript/4f1af628d5650e0ca0ffd0b6b384941eef2c37fb/test/datascript/test/datafy.cljc
clojure
(ns datascript.test.datafy (:require #?(:cljs [cljs.test :as t :refer-macros [is are deftest testing]] :clj [clojure.test :as t :refer [is are deftest testing]]) [datascript.datafy :as datafy] [datascript.core :as d] [clojure.core.protocols :as cp] [datascript.impl.entity :as e])) (defn- ...
6413c87411d804b40d544aed36402e845bf91388710de7d0282ffd62f04e5b81
haskell-opengl/OpenGLRaw
DepthBufferFloat.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.NV.DepthBufferFloat Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- ----------------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/NV/DepthBufferFloat.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.GL.NV.DepthBufferFloat License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Enums * Functio...
# LANGUAGE PatternSynonyms # Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.NV.DepthBufferFloat ( glGetNVDepthBufferFloat, gl_NV_depth_buffer_float, pattern GL_DEPTH32F_STENCIL8_NV, pattern GL_DEPTH_BUFFER_FLOAT_MODE_NV, pattern GL_DEPTH_COMPONENT32F_NV, pattern GL_FLOAT_32_UN...
6014c3c5ccb002fedfc4be755c1ff4e4c12d70166fb953ebc930e3d19f936cb9
metaocaml/ber-metaocaml
main.ml
TEST modules = " file.ml " * setup - ocamlc.byte - build - env program = " $ { test_build_directory}/main.exe " * * ocamlc.byte module = " file.ml " * * * ocamlc.byte module = " " program = " lib.cma " flags = " -a " all_modules = " file.cmo " * * * * ocamlc.byte program = " $ { test_build_di...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/required-external/main.ml
ocaml
TEST modules = " file.ml " * setup - ocamlc.byte - build - env program = " $ { test_build_directory}/main.exe " * * ocamlc.byte module = " file.ml " * * * ocamlc.byte module = " " program = " lib.cma " flags = " -a " all_modules = " file.cmo " * * * * ocamlc.byte program = " $ { test_build_di...
50c5b55951e3d237d384d03cbaa7a1c0d6ff59f17c66d1bb75e586364fc79530
zkincaid/duet
linear.ml
open Syntax open BatPervasives include Log.Make(struct let name = "srk.linear" end) module IntSet = SrkUtil.Int.Set module Term = ArithTerm module ZZVector = struct include Ring.MakeVector(ZZ) let pp formatter vec = let pp_elt formatter (v, k) = Format.fprintf formatter "%d:%a" k ZZ.pp v in enum vec ...
null
https://raw.githubusercontent.com/zkincaid/duet/162d3da830f12ab8e8d51f7757cddcb49c4084ca/srk/src/linear.ml
ocaml
p = ax + b vec is a linear combination of vectors in rewrite1 and rewrite2. a_1 v_1 + ... + a_n v_n + b_1 u_1 + ... + b_i u_i = vec. So a_1 v_1 + ... + a_n v_n belongs to the intersection For each row i, map mat_i -> b_i. If no such map exists, the system is inconsistent. ...
open Syntax open BatPervasives include Log.Make(struct let name = "srk.linear" end) module IntSet = SrkUtil.Int.Set module Term = ArithTerm module ZZVector = struct include Ring.MakeVector(ZZ) let pp formatter vec = let pp_elt formatter (v, k) = Format.fprintf formatter "%d:%a" k ZZ.pp v in enum vec ...
83284de527cbcece6bd9bc6aff30285f6c3e7f8cd0f5ff8de0af976544aca68d
norm2782/NanoProlog
Main.hs
module Main where import Language.Prolog.NanoProlog.Interpreter (run) -- * Running the Interpreter -- ** The main interpreter | The ` main ` program prompt for a file with Prolog rules and call the main -- interpreter loop main :: IO () main = run
null
https://raw.githubusercontent.com/norm2782/NanoProlog/30b3165fe462252ba6d8aafce9a4ce783aa3e066/src/Main.hs
haskell
* Running the Interpreter ** The main interpreter interpreter loop
module Main where import Language.Prolog.NanoProlog.Interpreter (run) | The ` main ` program prompt for a file with Prolog rules and call the main main :: IO () main = run
25167b8e87cbb1b7c02e9df075df833ce380918c2a4967e0cba484141f7915b1
dm3/manifold-cljs
test_util.cljs
(ns manifold-cljs.test-util (:require [manifold-cljs.deferred :as d]) (:require-macros [manifold-cljs.test-util])) (defn unrealized? [d] (not (d/realized? d))) (defn later* [f] (js/setTimeout f 0)) (defn capture-success [d] (let [a (atom nil)] (d/on-realized d #(do (reset! a %) true) #(prin...
null
https://raw.githubusercontent.com/dm3/manifold-cljs/85a2aee8a376f55b000739ee14acb073227422c8/test/manifold_cljs/test_util.cljs
clojure
(ns manifold-cljs.test-util (:require [manifold-cljs.deferred :as d]) (:require-macros [manifold-cljs.test-util])) (defn unrealized? [d] (not (d/realized? d))) (defn later* [f] (js/setTimeout f 0)) (defn capture-success [d] (let [a (atom nil)] (d/on-realized d #(do (reset! a %) true) #(prin...
73e1b275772ff0689098659ffcf3b5186c70b422ea6232c94e9633bcd7253602
samuelrivas/moka
moka_tests.erl
Copyright ( c ) 2012 , < > %%% 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 conditio...
null
https://raw.githubusercontent.com/samuelrivas/moka/92521e43d1d685794f462ed49403c99baeae0226/test/unit/moka_tests.erl
erlang
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. * Redistr...
Copyright ( c ) 2012 , < > THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF SUBSTI...
692159207927eb3929ffaf70d0174896b994dea89e40d468965043a7376a4368
tlaplus/tlapm
m_dep.ml
* module / m_dep.ml --- module dependencies * * * Copyright ( C ) 2008 - 2010 INRIA and Microsoft Corporation * module/m_dep.ml --- module dependencies * * * Copyright (C) 2008-2010 INRIA and Microsoft Corporation *) open Ext open Property open Util.Coll open Expr.T open M_t let debug = Pri...
null
https://raw.githubusercontent.com/tlaplus/tlapm/158386319f5b6cd299f95385a216ade2b85c9f72/src/module/m_dep.ml
ocaml
* @param mcx Sm (StringMap) of mule_ wrapped computes the dependency order between modules
* module / m_dep.ml --- module dependencies * * * Copyright ( C ) 2008 - 2010 INRIA and Microsoft Corporation * module/m_dep.ml --- module dependencies * * * Copyright (C) 2008-2010 INRIA and Microsoft Corporation *) open Ext open Property open Util.Coll open Expr.T open M_t let debug = Pri...
164c114a0668f45c6915480cb37fbb56c9d49ed697d5443a52d789e0d7af65b3
cjohansen/pharmacist
cljs_test_helper.clj
(ns pharmacist.cljs-test-helper (:require [pharmacist.test-helper :refer [test-name]])) (defmacro defscenario-async [scenario body] `(cljs.test/deftest ~(test-name scenario) (cljs.test/async ~'done (cljs.core.async/take! (binding [*print-namespace-maps* false] (pharmacist.test-helper/...
null
https://raw.githubusercontent.com/cjohansen/pharmacist/ecbba7d72aadeb16a42f427ac87afd7b9daa4c22/test/pharmacist/cljs_test_helper.clj
clojure
(ns pharmacist.cljs-test-helper (:require [pharmacist.test-helper :refer [test-name]])) (defmacro defscenario-async [scenario body] `(cljs.test/deftest ~(test-name scenario) (cljs.test/async ~'done (cljs.core.async/take! (binding [*print-namespace-maps* false] (pharmacist.test-helper/...
124f5206fd3bf34591eaca94121de5cc5856160e1df786801d49cfa15f3c03bd
cs136/seashell
dispatch.rkt
#lang racket/base Seashell 's backend server . Copyright ( C ) 2013 - 2015 The Seashell Maintainers . ;; ;; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , o...
null
https://raw.githubusercontent.com/cs136/seashell/17cc2b0a6d2cdac270d7168e03aa5fed88f9eb02/src/collects/seashell/backend/dispatch.rkt
racket
This program is free software: you can redistribute it and/or modify (at your option) any later version. See also 'ADDITIONAL TERMS' at the end of the included LICENSE file. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTAB...
#lang racket/base Seashell 's backend server . Copyright ( C ) 2013 - 2015 The Seashell Maintainers . it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License (requ...
361344075032b2eba8f8c4eaee0cc91151afddc76eef6c4bf2b2120ff3fa5b1d
aoh/led
syntax.scm
(define-library (led syntax) (import (owl toplevel) (only (owl terminal) font-normal font-reverse font-dim) ) (export syntax-highlight) (begin (define (push-keyword tree lst) (cond ((null? lst) (put tree 'end? #t)) (else ...
null
https://raw.githubusercontent.com/aoh/led/0cb3a14336ed481e5ac96166249e8b4b0fa18a43/led/syntax.scm
scheme
→ head tail already coloured. don't touch this. )
(define-library (led syntax) (import (owl toplevel) (only (owl terminal) font-normal font-reverse font-dim) ) (export syntax-highlight) (begin (define (push-keyword tree lst) (cond ((null? lst) (put tree 'end? #t)) (else ...
fee8d155cb4344766d58e94201295c3d098bcb7da2978391b7e2a701ca6d1ce6
Nick-Chapman/niz
text.ml
open Core open Numbers module F(X : sig val the_mem : Mem.t end) = struct open X let (++) = Loc.(+) let zversion = Header.zversion the_mem let getw = Mem.getw the_mem type alphabet = A0 | A1 | A2 module Alphabet = struct let alpha0 = "abcdefghijklmnopqrstuvwxyz" let alpha1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" l...
null
https://raw.githubusercontent.com/Nick-Chapman/niz/603a437ace7c6babcb08648a98c6ace099e99216/lib/text.ml
ocaml
0 - space 1,2,3 - abbreviation 1,2,3 - abbreviation; need more chars should never happen in encoded text continue using lock alphabet
open Core open Numbers module F(X : sig val the_mem : Mem.t end) = struct open X let (++) = Loc.(+) let zversion = Header.zversion the_mem let getw = Mem.getw the_mem type alphabet = A0 | A1 | A2 module Alphabet = struct let alpha0 = "abcdefghijklmnopqrstuvwxyz" let alpha1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" l...
cec4a271720b679d3af0d585ac5a2dc23a86b6f88245aa0c145782a36e1d7842
sschauss/wracket
compiler.rkt
#lang at-exp racket (provide compile-file) (define (compile-file filename) (let* ([i (open-input-file filename)] [f (string-replace filename "rkt" "wat")] [o (open-output-file f #:exists 'replace)]) (let-values ([(c env) (compile (read i) (list))]) (write-string c o)))) (define (compile ...
null
https://raw.githubusercontent.com/sschauss/wracket/3bf5105715a27a4eb1c8cebfa676ed520a1927a3/compiler.rkt
racket
#lang at-exp racket (provide compile-file) (define (compile-file filename) (let* ([i (open-input-file filename)] [f (string-replace filename "rkt" "wat")] [o (open-output-file f #:exists 'replace)]) (let-values ([(c env) (compile (read i) (list))]) (write-string c o)))) (define (compile ...
50a8011a7f0f916c9e384a8d2ba2bd46f6b8f1fcfd5ae7af47bfa723efb878b8
gojek/ziggurat
producer_test.clj
(ns ziggurat.producer-test (:require [clojure.string :refer [blank?]] [clojure.test :refer [deftest is testing use-fixtures]] [clojure.test.check.generators :as gen] [ziggurat.config :refer [ziggurat-config]] [ziggurat.fixtures :as fix :refer [*producer-properties* *con...
null
https://raw.githubusercontent.com/gojek/ziggurat/03f221893e09e1f34b5ef43954ef830e905b465b/test/ziggurat/producer_test.clj
clojure
Here ziggurat-config has been substituted with a custom map which does not have any valid producer configs. Here the config is read from config.test.edn which contains valid producer configs.
(ns ziggurat.producer-test (:require [clojure.string :refer [blank?]] [clojure.test :refer [deftest is testing use-fixtures]] [clojure.test.check.generators :as gen] [ziggurat.config :refer [ziggurat-config]] [ziggurat.fixtures :as fix :refer [*producer-properties* *con...
378680982a10b356405e8b79059e2d8fa4141812ecf60b26f156c6c39e28e914
janestreet/base
hex_lexer.mli
type result = | Neg of string | Pos of string val parse_hex : Lexing.lexbuf -> result
null
https://raw.githubusercontent.com/janestreet/base/221b085f3fcd77597f8245b4d73de3970b238e71/src/hex_lexer.mli
ocaml
type result = | Neg of string | Pos of string val parse_hex : Lexing.lexbuf -> result
cea77a63ccea1e96df0a2bb33b2ae9c4746911a52aa64731c576b4234826af4d
parapluu/Concuerror
group_leader3.erl
-module(group_leader3). -export([scenarios/0]). -export([test/0]). -concuerror_options_forced([{ignore_error, deadlock}]). scenarios() -> [{test, inf, dpor}]. test() -> P = spawn(fun() -> receive after infinity -> ok end end), spawn(fun() -> group_leader(self(), P) end), process_info(P, group_leader).
null
https://raw.githubusercontent.com/parapluu/Concuerror/152a5ccee0b6e97d8c3329c2167166435329d261/tests/suites/basic_tests/src/group_leader3.erl
erlang
-module(group_leader3). -export([scenarios/0]). -export([test/0]). -concuerror_options_forced([{ignore_error, deadlock}]). scenarios() -> [{test, inf, dpor}]. test() -> P = spawn(fun() -> receive after infinity -> ok end end), spawn(fun() -> group_leader(self(), P) end), process_info(P, group_leader).
218416bbf047f62af34df67fdcb3ed3f63082ba47c940cb366264a4f99de4f6c
hammerlab/prohlatype
round_trip.ml
Compare graph construction , from the alignment files , versus the sequence data represented in the IMGTHLA fasta files for the alleles . data represented in the IMGTHLA fasta files for the alleles. *) open Prohlatype open Common let (//) = Filename.concat let is_char = function 'A' | 'C' | 'G' | 'T' -> true...
null
https://raw.githubusercontent.com/hammerlab/prohlatype/3acaf7154f93675fc729971d4c76c2b133e90ce6/src/tests/round_trip.ml
ocaml
Compare graph construction , from the alignment files , versus the sequence data represented in the IMGTHLA fasta files for the alleles . data represented in the IMGTHLA fasta files for the alleles. *) open Prohlatype open Common let (//) = Filename.concat let is_char = function 'A' | 'C' | 'G' | 'T' -> true...
2bd6e733191a985450564f82555b9e50c686d1305fcd541441143ca28234f81b
monadfix/ormolu-live
Main.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # # LANGUAGE TypeApplications # # OPTIONS_GHC -Wno - simplifiable - class - constraints # module Main (main) where import System.IO.Unsafe import Control.Exception import Data.Functor import qualified Or...
null
https://raw.githubusercontent.com/monadfix/ormolu-live/d8ae72ef168b98a8d179d642f70352c88b3ac226/src/Main.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # given ID. If the element does not exist, attach it to the document body. -------------------------------------------------------------------------- Processing -------------------------------------------------------------------------- -----------------------------...
# LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # # LANGUAGE TypeApplications # # OPTIONS_GHC -Wno - simplifiable - class - constraints # module Main (main) where import System.IO.Unsafe import Control.Exception import Data.Functor import qualified Ormolu import GHC.SyntaxHighlighter import Reflex.Dom import GHCJ...
6365c46ac32645cc5ea0fc2ca3803f45ebeae8176827fc455e53b6cdd288ce1a
BumblebeeBat/FlyingFox
db_array.erl
-module(db_array). -export([size/0,get/2,append/1,doit/0]). size() -> 0. get(Key, N) -> 0. append(X) -> 0. doit() -> pwrite("temp", 0, <<"abc">>).
null
https://raw.githubusercontent.com/BumblebeeBat/FlyingFox/0fa039cd2394b08b1a85559f9392086c6be47fa6/docs/rough_drafts/elixir/lib/processes/blockchain/db_array.erl
erlang
-module(db_array). -export([size/0,get/2,append/1,doit/0]). size() -> 0. get(Key, N) -> 0. append(X) -> 0. doit() -> pwrite("temp", 0, <<"abc">>).
bb8bb7f66fec1269e3465a18c972060aaf7c1d17b1f92897a98f0fca971034a1
rmloveland/scheme48-0.53
small.scm
Copyright ( c ) 1993 - 1999 by and . See file COPYING . ; Minimal full-I/O test system (define (start arg in-channel out-channel error-channel) (set! *error-channel* error-channel) (set-exception-handlers! exception-handlers) (let* ((ch (open-channel "small-test.image" (enum open-channel-option inpu...
null
https://raw.githubusercontent.com/rmloveland/scheme48-0.53/1ae4531fac7150bd2af42d124da9b50dd1b89ec1/scheme/debug/small.scm
scheme
Minimal full-I/O test system for testing input stuff ouput stuff
Copyright ( c ) 1993 - 1999 by and . See file COPYING . (define (start arg in-channel out-channel error-channel) (set! *error-channel* error-channel) (set-exception-handlers! exception-handlers) (let* ((ch (open-channel "small-test.image" (enum open-channel-option input-file))) (out (output-channe...
0d76f9b40e850b4c4b55601c1abf74dfe078fc0c575d889b37e4b0990d0a5263
borkdude/advent-of-cljc
dfuenzalida.cljc
(ns aoc.y2018.d05.dfuenzalida (:refer-clojure :exclude [read-string format]) (:require [aoc.utils :as u :refer [deftest read-string format]] [aoc.y2018.d05.data :refer [input answer-1 answer-2]] [clojure.string :as s] [clojure.test :refer [is testing]])) (defn react? [a b] (and (not= a b) (= (...
null
https://raw.githubusercontent.com/borkdude/advent-of-cljc/17c8abb876b95ab01eee418f1da2e402e845c596/src/aoc/y2018/d05/dfuenzalida.cljc
clojure
(ns aoc.y2018.d05.dfuenzalida (:refer-clojure :exclude [read-string format]) (:require [aoc.utils :as u :refer [deftest read-string format]] [aoc.y2018.d05.data :refer [input answer-1 answer-2]] [clojure.string :as s] [clojure.test :refer [is testing]])) (defn react? [a b] (and (not= a b) (= (...
a6e573a8494a2aa500e329a6c91132bbeaa234ccbf07d3d2f715828398d96d1b
RefactoringTools/HaRe
LayoutLet1.hs
module LayoutLet1 where -- Simple let expression, rename xxx to something longer or shorter -- and the let/in layout should adjust accordingly foo xxx = let a = 1 b = 2 in xxx + a + b
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/test/testdata/TypeUtils/LayoutLet1.hs
haskell
Simple let expression, rename xxx to something longer or shorter and the let/in layout should adjust accordingly
module LayoutLet1 where foo xxx = let a = 1 b = 2 in xxx + a + b
b197a72bcfa62a2ebee509dc4ce7b2afc3bacf7dbfb9571e23f5a617c6905e5e
re-ops/re-share
user.clj
(ns user (:require [re-share.log :refer (debug-on debug-off setup)] [clojure.java.io :as io] [clojure.repl :refer :all] [clojure.tools.namespace.repl :refer (refresh refresh-all)])) (def system nil) (defn init "Constructs the current development system." [] (setup "re-share" ["oshi.*"] [])) (defn...
null
https://raw.githubusercontent.com/re-ops/re-share/703cfdf78c82bbde63bc1e33db877ac8540d20e7/dev/user.clj
clojure
(ns user (:require [re-share.log :refer (debug-on debug-off setup)] [clojure.java.io :as io] [clojure.repl :refer :all] [clojure.tools.namespace.repl :refer (refresh refresh-all)])) (def system nil) (defn init "Constructs the current development system." [] (setup "re-share" ["oshi.*"] [])) (defn...
4c6b4477062e261f330c3d34762080d1a110def67fd9b95a207710581031295c
travisbrady/flajolet
loglogbeta.ml
external uclzl: Uint64.uint64 -> int = "caml_clzl" let printf = Printf.printf type t = { registers: (int, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t; m: int; mf: float; precision: int; alpha: float } let alpha m = match m with | 16 -> 0.673 | 32 -> 0.697 | 64...
null
https://raw.githubusercontent.com/travisbrady/flajolet/a6c530bf1dd73b9fa8b7185d84a5e20458a3d8af/lib/loglogbeta.ml
ocaml
external uclzl: Uint64.uint64 -> int = "caml_clzl" let printf = Printf.printf type t = { registers: (int, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t; m: int; mf: float; precision: int; alpha: float } let alpha m = match m with | 16 -> 0.673 | 32 -> 0.697 | 64...
f804e805f2356c111fdf6576edafc08d1df55b0202a48b227465b52d54a8e11f
dyzsr/ocaml-selectml
t03.ml
(* TEST plugins="odoc_test.ml" * ocamldoc flags="-I ${ocamlsrcdir}/ocamldoc" *) module Foo = struct type t = int let x = 1 end;; module type MT = module type of Foo;; module Bar = struct type t = int let x = 2 end;; module type MT2 = sig type t val x : t end;; module type Gee = MT2 with type t = float ;; mo...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/testsuite/tests/tool-ocamldoc/t03.ml
ocaml
TEST plugins="odoc_test.ml" * ocamldoc flags="-I ${ocamlsrcdir}/ocamldoc"
module Foo = struct type t = int let x = 1 end;; module type MT = module type of Foo;; module Bar = struct type t = int let x = 2 end;; module type MT2 = sig type t val x : t end;; module type Gee = MT2 with type t = float ;; module T = (val (if true then (module Foo:MT2 with type t = int) else (module ...
f5e39a00a302a731986017b60bd1fbdc3da0ea0cb6bb2fe3a761654e3cca8216
2600hz/kazoo
frontier_app.erl
%%%----------------------------------------------------------------------------- ( C ) 2010 - 2020 , 2600Hz %%% @doc @author SIPLABS , LLC ( ) %%% 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 ...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/applications/frontier/src/frontier_app.erl
erlang
----------------------------------------------------------------------------- @doc @end ----------------------------------------------------------------------------- ------------------------------------------------------------------------------ @doc Implement the application start behaviour. @end ----------------...
( C ) 2010 - 2020 , 2600Hz @author SIPLABS , LLC ( ) 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 /. -module(frontier_app). -behaviour(application). -include_lib("kazoo_stdlib/include...
e7f17456b12a98393fd836b35074250fa3caecee74d731337267c881fc00b7c8
ulisses/Static-Code-Analyzer
FixpointTheme.hs
------------------------------------------------------------------------------ -- | Maintainer : , -- Stability : experimental -- Portability : portable -- This module is part of ' StrategyLib ' , a library of functional strategy -- combinators, including combinators for generic traversal. This module -- de...
null
https://raw.githubusercontent.com/ulisses/Static-Code-Analyzer/4c3f6423d43e1bccb9d1cf04e74ae60d9170186f/Analyzer/Strafunski/Data/Generics/Strafunski/StrategyLib/FixpointTheme.hs
haskell
---------------------------------------------------------------------------- | Stability : experimental Portability : portable combinators, including combinators for generic traversal. This module defines combinators that iterate until some kind of fixpoint is reached. -----------------------------------------...
Maintainer : , This module is part of ' StrategyLib ' , a library of functional strategy module Data.Generics.Strafunski.StrategyLib.FixpointTheme where import Data.Generics.Strafunski.StrategyLib.StrategyPrelude import Data.Generics.Strafunski.StrategyLib.FlowTheme import Data.Generics.Strafunski.StrategyL...
d31fe2a95c083625fde19e7a8ab6c42e5690d6bbe1aa2a05b38bfcac6cb5daf7
haskell-opengl/GLUT
Image.hs
Image.hs ( adapted from image.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 drawing pixels and shows the effect of dr...
null
https://raw.githubusercontent.com/haskell-opengl/GLUT/36207fa51e4c1ea1e5512aeaa373198a4a56cad0/examples/RedBook4/Image.hs
haskell
Create checkerboard image resolve overloading, not needed in "real" programs resolve overloading, not needed in "real" programs
Image.hs ( adapted from image.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 drawing pixels and shows the effect of dr...
9f6b950c3dfe54604e3d0aa52e5368b8e64874b65533726b25cd8ca6eb30bfa3
typedclojure/typedclojure
transducers.clj
(ns typed-test.clj.spec.transducers (:require [clojure.alpha.spec :as s] [clojure.alpha.spec.protocols :as protocols :refer [Spec conform* unform* explain* gen* with-gen* describe* Schema keyspecs* Select]] [clojure.alpha.spec.gen :as gen]...
null
https://raw.githubusercontent.com/typedclojure/typedclojure/45556897356f3c9cbc7b1b6b4df263086a9d5803/typed/clj.spec/test/typed_test/clj/spec/transducers.clj
clojure
step very slow
(ns typed-test.clj.spec.transducers (:require [clojure.alpha.spec :as s] [clojure.alpha.spec.protocols :as protocols :refer [Spec conform* unform* explain* gen* with-gen* describe* Schema keyspecs* Select]] [clojure.alpha.spec.gen :as gen]...
7a331b756ec9fced0e8a2e51c05b101a0826c7ec01b59c60a50f50f28afceb66
cndreisbach/clojure-web-dev-workshop
system.clj
(ns we-owe.system (:require [we-owe.handler :refer [create-handler]] [ring.adapter.jetty :refer [run-jetty]])) (defn system "Returns a new instance of the application." [] (let [db (atom {:debts []}) handler (create-handler db)] {:db db :handler handler :server-port 3006 ...
null
https://raw.githubusercontent.com/cndreisbach/clojure-web-dev-workshop/95d9fdf94b39f8a1e408b8bf75a81b92899ee7d9/code/06-cljs/src/we_owe/system.clj
clojure
(ns we-owe.system (:require [we-owe.handler :refer [create-handler]] [ring.adapter.jetty :refer [run-jetty]])) (defn system "Returns a new instance of the application." [] (let [db (atom {:debts []}) handler (create-handler db)] {:db db :handler handler :server-port 3006 ...
9afcac5220c443392d709bc428ec7d0da7881e4757431d46bac6f3a7965d4298
nasa/Common-Metadata-Repository
routes.clj
(ns cmr.metadata-db.api.routes "Defines the HTTP URL routes for the application." (:require [cmr.acl.core :as acl] [cmr.common-app.api.health :as common-health] [cmr.common-app.api.routes :as common-routes] [cmr.common.api.context :as context] [cmr.common.api.errors :as errors] [cmr.common.cache :...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/a8f7dea55393fbe18f07f718c880590554724bcd/metadata-db-app/src/cmr/metadata_db/api/routes.clj
clojure
These must be required here to make multimethod implementations available. XXX This is not a good pattern for large software systems; we need to find a different way to accomplish this goal ... possibly use protocols instead. delete the entire database Trigger the old revision concept cleanup
(ns cmr.metadata-db.api.routes "Defines the HTTP URL routes for the application." (:require [cmr.acl.core :as acl] [cmr.common-app.api.health :as common-health] [cmr.common-app.api.routes :as common-routes] [cmr.common.api.context :as context] [cmr.common.api.errors :as errors] [cmr.common.cache :...
1eac5ae1a180ddf9ef52c3f910ae8b2c0419930fb7f349f4e3b170b9d1faa45a
cyverse-archive/DiscoveryEnvironmentBackend
config.clj
(ns info-typer.config (:use [slingshot.slingshot :only [throw+]]) (:require [clojure-commons.config :as cc] [clojure-commons.error-codes :as ce])) (def ^:private config-valid "A ref for storing a configuration validity flag." (ref true)) (def ^:private configs "A ref for storing the symbols us...
null
https://raw.githubusercontent.com/cyverse-archive/DiscoveryEnvironmentBackend/7f6177078c1a1cb6d11e62f12cfe2e22d669635b/services/info-typer/src/info_typer/config.clj
clojure
(ns info-typer.config (:use [slingshot.slingshot :only [throw+]]) (:require [clojure-commons.config :as cc] [clojure-commons.error-codes :as ce])) (def ^:private config-valid "A ref for storing a configuration validity flag." (ref true)) (def ^:private configs "A ref for storing the symbols us...
c4fcadd66f0630b9c877e4ec3d94d0d1f3a0c0ed4269325f27234786c68b78d9
shirok/Gauche
test-eucjp.scm
;; -*- coding: euc-jp -*- Auxiliary test for string < - > uvector conversion ( EUC - JP ) (test "mb string->u8vector" '#u8(#xa4 #xa2 #xa4 #xa4 #xa4 #xa6) (lambda () (string->u8vector "あいう"))) (test "mb string->u8vector (start)" '#u8(#xa4 #xa4 #xa4 #xa6) (lambda () (string->u8vector "あいう...
null
https://raw.githubusercontent.com/shirok/Gauche/ecaf82f72e2e946f62d99ed8febe0df8960d20c4/ext/uvector/test-eucjp.scm
scheme
-*- coding: euc-jp -*-
Auxiliary test for string < - > uvector conversion ( EUC - JP ) (test "mb string->u8vector" '#u8(#xa4 #xa2 #xa4 #xa4 #xa4 #xa6) (lambda () (string->u8vector "あいう"))) (test "mb string->u8vector (start)" '#u8(#xa4 #xa4 #xa4 #xa6) (lambda () (string->u8vector "あいう" 1))) (test "mb string->u...
276ba261f659dfd73cc4f6a1948cbcfa79dc5a3596d97c43a9df2a6df5483809
ixy-languages/ixy.ml
unikernel.ml
open Lwt.Infix module Main (S: Mirage_net.S) = struct let start net0 = S.listen net0 ~header_size:14 (fun buf -> let size = Cstruct.len buf in S.write net0 ~size (fun outbuf -> Cstruct.blit buf 0 outbuf 0 size; size) >>= function | O...
null
https://raw.githubusercontent.com/ixy-languages/ixy.ml/e79dcc4a19afd8e531346c27624c54224f942dc9/unikernel/echo-mirage/unikernel.ml
ocaml
open Lwt.Infix module Main (S: Mirage_net.S) = struct let start net0 = S.listen net0 ~header_size:14 (fun buf -> let size = Cstruct.len buf in S.write net0 ~size (fun outbuf -> Cstruct.blit buf 0 outbuf 0 size; size) >>= function | O...
0cb5e0c53395c9da80e405f366a84e1aa9244ad77a67a596246de9401ab68177
racket/typed-racket
pr13233-4.rkt
#; (exn-pred #rx"expected: One") #lang typed/racket ;; test even? filter (: foo (Integer -> String)) (define (foo n) (if (even? n) (o n) "dummy")) (: o (One -> String)) (define (o x) "dummy")
null
https://raw.githubusercontent.com/racket/typed-racket/edfee5bbdd81d89119316176efd9db411ef5bc1b/typed-racket-test/fail/pr13233-4.rkt
racket
test even? filter
(exn-pred #rx"expected: One") #lang typed/racket (: foo (Integer -> String)) (define (foo n) (if (even? n) (o n) "dummy")) (: o (One -> String)) (define (o x) "dummy")
0b69d8a0eea8b8394be4c2e13de52dc27eeec9b664ffa0ca368025a7f119f3cf
mtolly/onyxite-customs
OneFoot.hs
| Algorithm to generate 1x Bass Pedal versions automatically from the 2x version . # LANGUAGE LambdaCase # module Onyx.Drums.OneFoot (phaseShiftKicks, rockBand1x, rockBand2x) where import qualified Data.EventList.Relative.TimeBody as RTB import Data.List.Extra (nubOrd) import qualified Dat...
null
https://raw.githubusercontent.com/mtolly/onyxite-customs/0c8acd6248fe92ea0d994b18b551973816adf85b/haskell/packages/onyx-lib/src/Onyx/Drums/OneFoot.hs
haskell
| Algorithm to generate 1x Bass Pedal versions automatically from the 2x version . # LANGUAGE LambdaCase # module Onyx.Drums.OneFoot (phaseShiftKicks, rockBand1x, rockBand2x) where import qualified Data.EventList.Relative.TimeBody as RTB import Data.List.Extra (nubOrd) import qualified Dat...
3bf38833eec5415729cf1c7acddb29864bb7079d863616db042a30bad4b0fae6
Javran/advent-of-code
Day5.hs
module Javran.AdventOfCode.Y2020.Day5 ( ) where import Control.Monad import Data.List import Data.Word import Javran.AdventOfCode.Prelude import Text.ParserCombinators.ReadP data Day5 deriving (Generic) seatIdP :: ReadP Word16 seatIdP = do xs <- replicateM 7 fbP ys <- replicateM 3 lrP pure $ foldl (\acc i ->...
null
https://raw.githubusercontent.com/Javran/advent-of-code/676ef13c2f9d341cf7de0f383335a1cf577bd73d/src/Javran/AdventOfCode/Y2020/Day5.hs
haskell
module Javran.AdventOfCode.Y2020.Day5 ( ) where import Control.Monad import Data.List import Data.Word import Javran.AdventOfCode.Prelude import Text.ParserCombinators.ReadP data Day5 deriving (Generic) seatIdP :: ReadP Word16 seatIdP = do xs <- replicateM 7 fbP ys <- replicateM 3 lrP pure $ foldl (\acc i ->...
8bb1bd8efdaf329c53c71bea375e10cf213e9707a3753d2969334ac6d302fae9
ocaml/opam
opamStubs.mli
(**************************************************************************) (* *) Copyright 2018 MetaStack Solutions Ltd. (* *) (* All rights ...
null
https://raw.githubusercontent.com/ocaml/opam/188ce75692c5a920af966fabe9d23990580c7a96/src/core/opamStubs.mli
ocaml
************************************************************************ All rights reserved. This file is distributed under the terms of the exception on linking descr...
Copyright 2018 MetaStack Solutions Ltd. GNU Lesser General Public License version 2.1 , with the special * OS - specific functions requiring C code on at least one platform . Most functions are Windows - specific and raise an exception on other platforms . ...
8405d6cd3f2054a8f5e176664e018b838e4ee988f28abdd28373e8559e6f3300
jgm/gitit
Server.hs
# LANGUAGE CPP # # OPTIONS_GHC -fno - warn - orphans # Copyright ( C ) 2008 < > This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) ...
null
https://raw.githubusercontent.com/jgm/gitit/e8c9d94be332e2f73de9b0eee222a2a09f191faf/src/Network/Gitit/Server.hs
haskell
IP lookup
# LANGUAGE CPP # # OPTIONS_GHC -fno - warn - orphans # Copyright ( C ) 2008 < > This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) ...
f01c5143a084f8d0c73db38935134a643336de29f5b8318766bc8a6c55089a19
stackbuilders/rollbar-haskell
CLI.hs
-- | Module : . CLI Copyright : ( c ) 2020 Stack Builders Inc. License : MIT Maintainer : < > module Rollbar.CLI ( Command(..) , DeployCommand(..) , parseCommand , runCommand ) where import Options.Applicative import Rollbar.Client data Command = CommandPing ^ Pings API server . -- @s...
null
https://raw.githubusercontent.com/stackbuilders/rollbar-haskell/9a804256eead03e28635cf300cf451d07706ffd3/rollbar-cli/src/Rollbar/CLI.hs
haskell
| | Parses a 'Command'.
Module : . CLI Copyright : ( c ) 2020 Stack Builders Inc. License : MIT Maintainer : < > module Rollbar.CLI ( Command(..) , DeployCommand(..) , parseCommand , runCommand ) where import Options.Applicative import Rollbar.Client data Command = CommandPing ^ Pings API server . @since 0.1.0 ...
bf8f93bed35445228b4936565b49accb630320291ed8dc02bcdf2c3ddea8c2db
kraison/vivace-graph-v3
buffer-pool.lisp
(in-package :graph-db) (defvar *buffer-pool* #+sbcl (make-hash-table :test 'eq :synchronized t) #+lispworks (make-hash-table :test 'eq :single-thread nil) #+ccl (make-hash-table :test 'eq :shared t)) (defvar *buffer-pool-stats* nil) (defvar *buffer-pool-thread* nil) (defvar *stop-buffer-pool* nil) (defvar *buffe...
null
https://raw.githubusercontent.com/kraison/vivace-graph-v3/cf2caaf26baccec9afd4d6a79375cd9ff5fe0613/buffer-pool.lisp
lisp
(log:debug "refreshing pcons buffer") (log:debug "refreshing vertex buffer") (log:debug "refreshing edge buffer") (log:debug "refreshing skip-node buffer") (log:debug "refreshing byte-vector-buffer-8") (log:debug "refreshing byte-vector-buffer-16") (log:debug "refreshing byte-vector-buffer-18") (log:debug "refreshing b...
(in-package :graph-db) (defvar *buffer-pool* #+sbcl (make-hash-table :test 'eq :synchronized t) #+lispworks (make-hash-table :test 'eq :single-thread nil) #+ccl (make-hash-table :test 'eq :shared t)) (defvar *buffer-pool-stats* nil) (defvar *buffer-pool-thread* nil) (defvar *stop-buffer-pool* nil) (defvar *buffe...
39fedd527689daf25d8f65ea8fdb1607e046cacf6c27fb12a6f1cf921c736735
glondu/belenios
web_auth_cas.ml
(**************************************************************************) (* BELENIOS *) (* *) Copyright © 2012 - 2022 (* ...
null
https://raw.githubusercontent.com/glondu/belenios/5306402c15c6a76438b13b8b9da0f45d02a0563d/src/web/server/common/web_auth_cas.ml
ocaml
************************************************************************ BELENIOS This program is free softw...
Copyright © 2012 - 2022 it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the exemption that compiling , linking , and/or using OpenSSL is allowed . You should have rece...
be3174e250df7a7db838780317eb3493e961433a62aaf8b5f7e7d99151391b44
janestreet/bonsai
visibility_tracker.mli
open! Core open! Bonsai_web (** [B]ounding Box. *) module Bbox : sig type 'a t = { min_x : 'a ; max_x : 'a ; min_y : 'a ; max_y : 'a } [@@deriving sexp, equal] expanded int and float boxes are provided so that they can be easily used as first - class modules for [ Bonsai.state ] ...
null
https://raw.githubusercontent.com/janestreet/bonsai/4baeedc75bf73a0915e04dc02d8a49b78779e9b0/web_ui/element_size_hooks/src/visibility_tracker.mli
ocaml
* [B]ounding Box.
open! Core open! Bonsai_web module Bbox : sig type 'a t = { min_x : 'a ; max_x : 'a ; min_y : 'a ; max_y : 'a } [@@deriving sexp, equal] expanded int and float boxes are provided so that they can be easily used as first - class modules for [ Bonsai.state ] first-class modules for...
26362bc2b6641ce0204d1cdb3a7b6025b95b19bf6fb55a4bbb240b6f6c427c1e
orionsbelt-battlegrounds/obb-rules
generators.cljc
(ns obb-rules.generators (:require [obb-rules.game :as game] [obb-rules.board :as board] [obb-rules.stash :as stash] [obb-rules.turn :as turn] [obb-rules.result :as result] [obb-rules.action :as action] [obb-rules.host-dependent :as host] ...
null
https://raw.githubusercontent.com/orionsbelt-battlegrounds/obb-rules/97fad6506eb81142f74f4722aca58b80d618bf45/test/obb_rules/generators.cljc
clojure
(ns obb-rules.generators (:require [obb-rules.game :as game] [obb-rules.board :as board] [obb-rules.stash :as stash] [obb-rules.turn :as turn] [obb-rules.result :as result] [obb-rules.action :as action] [obb-rules.host-dependent :as host] ...
aa235d7cc430765e8c5da291e2bb06d0d2da5539ff97f7b4a9cfa10da632b0c0
inconvergent/weir
test.lisp
(defpackage #:weir-tests (:use #:common-lisp #:weir-utils) (:export #:run-tests)) (in-package #:weir-tests) (defvar *tests*) (defvar *fails*) (defvar *passes*) (defvar *catastrophic*) (defun sort-a-list (a) (sort a #'string-lessp :key #'(lambda (x) (string (first x))))) ; TODO: should probably find a framew...
null
https://raw.githubusercontent.com/inconvergent/weir/3c364e3a0e15526f0d6985f08a57b312b5c35f7d/test/test.lisp
lisp
TODO: should probably find a framework for this ... TODO: approximately similar to test running for whole project Re-seed state before each test.
(defpackage #:weir-tests (:use #:common-lisp #:weir-utils) (:export #:run-tests)) (in-package #:weir-tests) (defvar *tests*) (defvar *fails*) (defvar *passes*) (defvar *catastrophic*) (defun sort-a-list (a) (sort a #'string-lessp :key #'(lambda (x) (string (first x))))) (defmacro test-title (&body body) ...
dc5b34d33f31fa4d70a384a1ff5cee2259eb8d63bd3146ce5069ce2cdfa9aa51
input-output-hk/cardano-sl
Binary.hs
{-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # module Node.Message.Binary ( BinaryP , binaryP , binaryPacking , binaryPackMsg , binaryUnpackMsg ) where import qualified Data.Binary as Bin import ...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/networking/src/Node/Message/Binary.hs
haskell
# LANGUAGE FlexibleContexts # | BinaryP packing works in any Applicative.
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # module Node.Message.Binary ( BinaryP , binaryP , binaryPacking , binaryPackMsg , binaryUnpackMsg ) where import qualified Data.Binary as Bin import qualified Data.Binary.Get as Bin import...
7a154f83012940a7c1f916332a8ffc9ec0f89f05e0922cb9b2a42e20edfef944
gilesc/factor-graph
bayes.clj
(ns es.corygil.factor-graph.bayes (:use es.corygil.factor-graph) (:import [es.corygil.factor_graph FNode VNode])) ;;TODO: exception if invalid probability distribution : (defn bayes-net [variables factors] "Create a factor graph from a compact Bayes Net representation." (loop [nodes {} factors (concat f...
null
https://raw.githubusercontent.com/gilesc/factor-graph/3129fd578f0e3cf4d84003ce7014dbc97530c80c/src/es/corygil/factor_graph/bayes.clj
clojure
TODO: exception if invalid probability distribution :
(ns es.corygil.factor-graph.bayes (:use es.corygil.factor-graph) (:import [es.corygil.factor_graph FNode VNode])) (defn bayes-net [variables factors] "Create a factor graph from a compact Bayes Net representation." (loop [nodes {} factors (concat factors (filter (comp coll? second) variables))] (if-n...
0a2471cf1102f357f276ed98b53a88f448f264ed294529d9899b2ef8fc76e4c5
gklijs/bkes-demo
bank_query_handlers.clj
(ns nl.openweb.projector.bank-query-handlers (:require [nl.openweb.projector.db :as db] [nl.openweb.projector.query-util :as query-util]) (:import (nl.openweb.data AllLastTransactionsQuery FindBankAccountQuery FindBankAccountsForUserQuery TransactionByIdQuery TransactionsByIbanQuery) (org.apa...
null
https://raw.githubusercontent.com/gklijs/bkes-demo/43d78683b41c2c8a1d06ab9fe4e6bea0c67cf16b/projector/src/nl/openweb/projector/bank_query_handlers.clj
clojure
(ns nl.openweb.projector.bank-query-handlers (:require [nl.openweb.projector.db :as db] [nl.openweb.projector.query-util :as query-util]) (:import (nl.openweb.data AllLastTransactionsQuery FindBankAccountQuery FindBankAccountsForUserQuery TransactionByIdQuery TransactionsByIbanQuery) (org.apa...
f86d2708b82881dc7712a13bef759fd22ed2946bb1d9bbd7711ca2dab2e19cab
dbushenko/sitecompiler
common.clj
(ns sitecompiler.common) (defprotocol Supported (supported? [this ext])) (defprotocol Parser (parse [this fl])) (defprotocol Renderer (render [this templ data])) (defn yes-no [val] (if val "yes" "no")) (defn make-correct-dir-path [path] (let [sep java.io.File/separator] (if (.endsWith path sep) ...
null
https://raw.githubusercontent.com/dbushenko/sitecompiler/ff916d4539a3c4694a1664f087a45cfdf847ecdc/src/sitecompiler/common.clj
clojure
(ns sitecompiler.common) (defprotocol Supported (supported? [this ext])) (defprotocol Parser (parse [this fl])) (defprotocol Renderer (render [this templ data])) (defn yes-no [val] (if val "yes" "no")) (defn make-correct-dir-path [path] (let [sep java.io.File/separator] (if (.endsWith path sep) ...
d34ca4ae1d696960d56901794c114d32c3410eb432fa330d2f8cf935b5e924d6
ekmett/profunctors
Functor.hs
# LANGUAGE Trustworthy # # LANGUAGE ExplicitNamespaces # -- | Copyright : ( C ) 2014 - 2021 -- License : BSD-style (see the file LICENSE) Maintainer : < > -- Stability : experimental -- Portability : portable module Data.Profunctor.Functor ( type (:->) , ProfunctorFunctor(..) ) where impo...
null
https://raw.githubusercontent.com/ekmett/profunctors/31cc18dc8da8980efd9e0cb3b31000351bb6ab5c/src/Data/Profunctor/Functor.hs
haskell
| License : BSD-style (see the file LICENSE) Stability : experimental Portability : portable
# LANGUAGE Trustworthy # # LANGUAGE ExplicitNamespaces # Copyright : ( C ) 2014 - 2021 Maintainer : < > module Data.Profunctor.Functor ( type (:->) , ProfunctorFunctor(..) ) where import Data.Bifunctor.Functor ((:->)) import Data.Profunctor.Internal
f0ec73309607f7b0ffa6313bec99b143df05793aadaa872c559432e2f5f69a8e
swarm-game/swarm
CESK.hs
# LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # -- | SPDX - License - Identifier : BSD-3 - Clause -- The Swarm interpreter uses a technique known as a < -machines/ CESK machine > ( if -- you want to read up on them, you may want to start by reading about < -machines/ ...
null
https://raw.githubusercontent.com/swarm-game/swarm/affc8668b77b7e85d3d23c182a5159df36d17306/src/Swarm/Game/CESK.hs
haskell
# LANGUAGE OverloadedStrings # | you want to read up on them, you may want to start by reading about first). Execution happens simply by iterating a step function, being relatively efficient, this means we can easily run a bunch of robots synchronously, in parallel, without resorting to any threads (by stepping...
# LANGUAGE DeriveGeneric # # LANGUAGE PatternSynonyms # SPDX - License - Identifier : BSD-3 - Clause The Swarm interpreter uses a technique known as a < -machines/ CESK machine > ( if < -machines/ CEK machines > sending one state of the CESK machine to the next . In addition to Essentially , a CESK machine...
121f1fa7d51b00a959ceca915878d6b3e55121bc90891c4b4c72886245a364c9
rabbitmq/rabbit-socks
rabbit_socks_xhrpolling.erl
-module(rabbit_socks_xhrpolling). -behaviour(gen_server). -export([init/1, terminate/2, code_change/3]). -export([handle_info/2, handle_cast/2, handle_call/3]). -export([start_link/2, send_frame/2, close_transport/1]). -record(state, {protocol, protocol_args, protocol_state, pending_frames, pending_r...
null
https://raw.githubusercontent.com/rabbitmq/rabbit-socks/c2f2c894c2537f028c1eb01bccc59b74736c1eee/src/rabbit_socks_xhrpolling.erl
erlang
Callbacks io:format("Sent: ~p~n", [Data]), If the socket is Req: is closed, this command will trigger exit(normal). We hate mochwieb. Sorry. io:format("Incoming: ~p~n", [Data]), hanging request. We don't support that. Instead let's just finish the previous one with an empty response. TODO: is it possible to catch...
-module(rabbit_socks_xhrpolling). -behaviour(gen_server). -export([init/1, terminate/2, code_change/3]). -export([handle_info/2, handle_cast/2, handle_call/3]). -export([start_link/2, send_frame/2, close_transport/1]). -record(state, {protocol, protocol_args, protocol_state, pending_frames, pending_r...
3b7a1e83bdf64759352e2b63318426a15a040e4a591f58196115a18b940de6cb
deech/fltkhs-themes-demo
Main.hs
# LANGUAGE ImplicitParams , OverloadedStrings , ScopedTypeVariables , FlexibleContexts # module Main where import qualified Graphics.UI.FLTK.LowLevel.FL as FL import Graphics.UI.FLTK.LowLevel.Fl_Types import Graphics.UI.FLTK.Theme.Light import Graphics.UI.FLTK.LowLevel.Fl_Enumerations import Control.Arrow import qualif...
null
https://raw.githubusercontent.com/deech/fltkhs-themes-demo/6f70384b26bcab34fa350bbd72248756eea3fa54/app/Main.hs
haskell
# LANGUAGE ImplicitParams , OverloadedStrings , ScopedTypeVariables , FlexibleContexts # module Main where import qualified Graphics.UI.FLTK.LowLevel.FL as FL import Graphics.UI.FLTK.LowLevel.Fl_Types import Graphics.UI.FLTK.Theme.Light import Graphics.UI.FLTK.LowLevel.Fl_Enumerations import Control.Arrow import qualif...
5b2e642f22553a46612660a64e33546d61e6570da928c61928cf9f8160aaee73
DSCRV/lisk
Parser.hs
module Parser ( parseLispValue , parseString , parseInt , parseFloat , parseId , parseQuote , parseComment ) where import Base (Expr (..), LispNumber(..)) import Control.Applic...
null
https://raw.githubusercontent.com/DSCRV/lisk/841e23f1f5036748e3d179e3f96eedd5bcfdb555/src/Parser.hs
haskell
backslash double quote escapes a quote inside strings atmosphere get internals of comment by getting it from here
module Parser ( parseLispValue , parseString , parseInt , parseFloat , parseId , parseQuote , parseComment ) where import Base (Expr (..), LispNumber(..)) import Control.Applic...
c9537b5cab2314ac5a7e0a9bc44c68386299137491681ee0e51dd197af325957
ivarref/double-trouble
sac_test.clj
(ns com.github.ivarref.sac-test (:require [clojure.test :refer [deftest is use-fixtures]] [clojure.tools.logging :as log] [com.github.ivarref.double-trouble :as dt] [com.github.ivarref.double-trouble.cas :as cas] [com.github.ivarref.double-trouble.sac :as sac] ...
null
https://raw.githubusercontent.com/ivarref/double-trouble/a3861424591c891dba48de72bbce4266f1716a9e/test/com/github/ivarref/sac_test.clj
clojure
(ns com.github.ivarref.sac-test (:require [clojure.test :refer [deftest is use-fixtures]] [clojure.tools.logging :as log] [com.github.ivarref.double-trouble :as dt] [com.github.ivarref.double-trouble.cas :as cas] [com.github.ivarref.double-trouble.sac :as sac] ...
4fc4fdbc7944d51aa6b5f30c82f5b4bf9a6ade42201e0b33eb2f7b697d0348bf
ghcjs/ghcjs-base
Text.hs
# LANGUAGE ForeignFunctionInterface , UnliftedFFITypes , JavaScriptFFI , UnboxedTuples , DeriveDataTypeable , GHCForeignImportPrim , MagicHash , FlexibleInstances , BangPatterns , Rank2Types , # UnboxedTuples, DeriveDataTypeable, GHCForeignImportPrim, MagicHash, FlexibleInstances, BangPatterns, Ran...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-base/18f31dec5d9eae1ef35ff8bbf163394942efd227/Data/JSString/Text.hs
haskell
| returns the empty Text if not a string # INLINE textFromJSVal # | returns the empty Text if not a string # INLINE lazyTextFromJSVal # ----------------------------------------------------------------------------
# LANGUAGE ForeignFunctionInterface , UnliftedFFITypes , JavaScriptFFI , UnboxedTuples , DeriveDataTypeable , GHCForeignImportPrim , MagicHash , FlexibleInstances , BangPatterns , Rank2Types , # UnboxedTuples, DeriveDataTypeable, GHCForeignImportPrim, MagicHash, FlexibleInstances, BangPatterns, Ran...
5c12b4d20a27d5e3e8d219e05892cc67cc2e9d44c1e34037011439ff309128f5
Convex-Dev/convex-web
repl.cljs
(ns convex-web.site.repl (:require [clojure.string :as str] [cljs.spec.alpha :as s] [codemirror-reagent.core :as codemirror] [reagent.core :as reagent] [reitit.frontend.easy :as rfe] [lambdaisland.glogi :as log] [cljfmt.core :as cljfmt] [convex-web.site.gui :as gui] [convex-web.site.gui.s...
null
https://raw.githubusercontent.com/Convex-Dev/convex-web/6c31e146823dd3167373e55814fc8601ff3ff714/src/main/clojure/convex_web/site/repl.cljs
clojure
--- -- Name -- Source Select library. because the component doesn't need Editor is stored in the global session, because other components need to interface with it. Reset history navigation index. Signer is optional in query mode. (It's a running command) Update the Command with the server response. Ignore ...
(ns convex-web.site.repl (:require [clojure.string :as str] [cljs.spec.alpha :as s] [codemirror-reagent.core :as codemirror] [reagent.core :as reagent] [reitit.frontend.easy :as rfe] [lambdaisland.glogi :as log] [cljfmt.core :as cljfmt] [convex-web.site.gui :as gui] [convex-web.site.gui.s...
02cbcac648286860a073d2e2958ed31b7dae124e9e6ba3d2e0a1994503c3d332
onedata/op-worker
mi_cdmi.erl
%%%------------------------------------------------------------------- @author ( C ) 2022 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc Interface for managing CDMI related ...
null
https://raw.githubusercontent.com/onedata/op-worker/41e0afe4d7fa536734c0e22187cd354b2d6c87f7/src/middleware/interface/mi_cdmi.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc to middleware_worker). @end ------------------------------------------------------------------- API =================================================================== ...
@author ( C ) 2022 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . Interface for managing CDMI related file operations ( requests are delegated -module(mi_cdmi). -author("Bartosz Walkowicz"). -include("middleware/middleware.hrl"). -export([ get_transfer_enc...
15434f5b5ae0768c96730e6660e2232562d94a5577219980dd705bf6c1401997
deadtrickster/prometheus.cl
synchronizable.lisp
(in-package #:prometheus) (defclass synchronizable () ((lock :initform (bt:make-lock) :reader synchronizable-lock))) (defmacro synchronize (synchronizable &body body) `(bt:with-lock-held ((synchronizable-lock ,synchronizable)) ,@body))
null
https://raw.githubusercontent.com/deadtrickster/prometheus.cl/60572b793135e8ab5a857d47cc1a5fe0af3a2d53/src/prometheus/base/synchronizable.lisp
lisp
(in-package #:prometheus) (defclass synchronizable () ((lock :initform (bt:make-lock) :reader synchronizable-lock))) (defmacro synchronize (synchronizable &body body) `(bt:with-lock-held ((synchronizable-lock ,synchronizable)) ,@body))
dc50782a25f3248d93dc8bb4b2fd54c09bb3beeb57847b4b6de47d647e10ab15
haskell-perf/graphs
Graphs.hs
module BenchGraph.RealLife.Graphs ( realLife ) where import BenchGraph.GenericGraph import BenchGraph.RealLife.Generated (generated) realLife :: GenericGraph realLife = ("RealLife", grF) grF :: Size -> (Edges,Int) grF i = if i >= 0 && i < length generated then (generated !! i,i) else ...
null
https://raw.githubusercontent.com/haskell-perf/graphs/d2e53fb424b01bb51d5733cc40fd62abb2740430/src/BenchGraph/RealLife/Graphs.hs
haskell
module BenchGraph.RealLife.Graphs ( realLife ) where import BenchGraph.GenericGraph import BenchGraph.RealLife.Generated (generated) realLife :: GenericGraph realLife = ("RealLife", grF) grF :: Size -> (Edges,Int) grF i = if i >= 0 && i < length generated then (generated !! i,i) else ...
e9f90f4e95f4131423de9f42ee3ed03fc15817eb804dac1540d05a1cd433acc9
rtoy/cmucl
crlf.lisp
;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Package: STREAM -*- ;;; ;;; ********************************************************************** This code was written by and has been placed in the public ;;; domain. ;;; (ext:file-comment "$Header: src/pcl/simple-streams/external-formats/crlf.lisp $") (in-package "...
null
https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/pcl/simple-streams/external-formats/crlf.lisp
lisp
-*- Mode: LISP; Syntax: ANSI-Common-Lisp; Package: STREAM -*- ********************************************************************** domain. @@ tmp3 may be NIL, if file ends in LF
This code was written by and has been placed in the public (ext:file-comment "$Header: src/pcl/simple-streams/external-formats/crlf.lisp $") (in-package "STREAM") (intl:textdomain "cmucl") Convert DOS cr / lf end - of - line sequence to / from # \newline (define-composing-external-format :crlf (:max 2 :document...
06caf54eea6f30fcf51a2cde809853c487f2cc66a21992b4561f8cf1d8286916
facebook/duckling
NL_NL.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory . -------------...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Ranking/Classifiers/NL_NL.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant --------------------------------------------------------------- Auto-generated by regenClassifiers DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW W...
Copyright ( c ) 2016 - present , Facebook , Inc. of patent rights can be found in the PATENTS file in the same directory . @generated module Duckling.Ranking.Classifiers.NL_NL (classifiers) where import Data.String import Prelude import qualified Data.HashMap.Strict as HashMap import Duckling.Ranking.Types cla...
2f14c35b8cf2f5a6ec7c27bdc7331129646a70b964aeb710f950e1df7b760cd3
lpsmith/postgresql-simple
Time.hs
| Module : Database . PostgreSQL.Simple . Time Copyright : ( c ) 2012 - 2015 : : < > Stability : experimental This module provides time types that supports positive and negative infinity , as well as some functions for converting to and from strings . Also , this module ...
null
https://raw.githubusercontent.com/lpsmith/postgresql-simple/ce9def5019c2a6f8b93d3e3478587f33993bba56/src/Database/PostgreSQL/Simple/Time.hs
haskell
---------------------------- ----------------------------
| Module : Database . PostgreSQL.Simple . Time Copyright : ( c ) 2012 - 2015 : : < > Stability : experimental This module provides time types that supports positive and negative infinity , as well as some functions for converting to and from strings . Also , this module ...
c9beef14fea694229f10dea7dbc70af4acc3410af70fcff9c8293464446b673b
Simspace/simformat
ConfigSpec.hs
# OPTIONS_GHC -fno - warn - orphans # module ConfigSpec where import Data.List (intercalate) import Data.Yaml (encode) import System.FilePath ((</>)) import Test.Hspec (Spec, describe, it, shouldBe) import Test.Hspec.QuickCheck (prop) import Test.QuickCheck (Arbitrary, Gen, arbitrary, elements, generate, listOf1) impo...
null
https://raw.githubusercontent.com/Simspace/simformat/1e9c9c790a11231004ab895ec9dd7050d7dddde4/test/ConfigSpec.hs
haskell
the module being tested
# OPTIONS_GHC -fno - warn - orphans # module ConfigSpec where import Data.List (intercalate) import Data.Yaml (encode) import System.FilePath ((</>)) import Test.Hspec (Spec, describe, it, shouldBe) import Test.Hspec.QuickCheck (prop) import Test.QuickCheck (Arbitrary, Gen, arbitrary, elements, generate, listOf1) impo...
ac649e4ca9a8c64602a5aed13d8d4db958117b69013f8a3bbdb92dfb5acaa9d9
bsansouci/bsb-native
typetexp.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/bsansouci/bsb-native/9a89457783d6e80deb0fba9ca7372c10a768a9ea/vendor/ocaml/typing/typetexp.ml
ocaml
********************************************************************* OCaml ...
, 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 . open Asttypes open Misc open Parsetre...
ed1a4a5462b05f2ae5157c7a5e6dcb47271227d87926e0a5874b652fd809f6cd
nd/sicp
4.21.scm
;;a ((lambda (n) ((lambda (fib) (fib fib n)) (lambda (f n) (if (or (= n 1) (= n 2)) 1 (+ (f f (- n 1)) (f f (- n 2))))))) 10) ;;b (define (f x) ((lambda (even? odd?) (even? even? odd? x)) (lambda (ev? od? n) (if (= n 0) true (od? ev? od? (- n 1)))) (lambda (ev?...
null
https://raw.githubusercontent.com/nd/sicp/d8587a0403d95af7c7bcf59b812f98c4f8550afd/ch04/4.21.scm
scheme
a b
((lambda (n) ((lambda (fib) (fib fib n)) (lambda (f n) (if (or (= n 1) (= n 2)) 1 (+ (f f (- n 1)) (f f (- n 2))))))) 10) (define (f x) ((lambda (even? odd?) (even? even? odd? x)) (lambda (ev? od? n) (if (= n 0) true (od? ev? od? (- n 1)))) (lambda (ev? od? n) ...
55471c9c4ec59a04409ae856d01d15e2a6faaff67d177c20bced506890721c9d
Zulu-Inuoe/clution
tests.lisp
;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*- (defpackage :split-sequence-tests (:use :common-lisp :split-sequence :fiveam)) (in-package :split-sequence-tests) (in-suite* :split-sequence) ;;;; SPLIT-SEQUENCE (test (split-sequence.1 :compile-at :definition-time) (is (equalp (split-sequence #\; "a;;b;c") ...
null
https://raw.githubusercontent.com/Zulu-Inuoe/clution/b72f7afe5f770ff68a066184a389c23551863f7f/cl-clution/qlfile-libs/split-sequence-1.2/tests.lisp
lisp
-*- Mode: Lisp; indent-tabs-mode: nil -*- SPLIT-SEQUENCE "a;;b;c") "a;;b;c" :from-end t) "a;;b;c" :remove-empty-subseqs t)
(defpackage :split-sequence-tests (:use :common-lisp :split-sequence :fiveam)) (in-package :split-sequence-tests) (in-suite* :split-sequence) (test (split-sequence.1 :compile-at :definition-time) (values '("a" "" "b" "c") 6)))) (test (split-sequence.2 :compile-at :definition-time) (v...
791e69eb2bb78961a0dab65c6ce9f09ba54583949dd94467d52ddbc616ac7c57
nuvla/ui
spec.cljs
(ns sixsq.nuvla.ui.job.spec (:require [clojure.spec.alpha :as s] [sixsq.nuvla.ui.plugins.pagination :as pagination-plugin])) (s/def ::target-resource string?) (s/def ::jobs any?) (s/def ::pagination any?) (def defaults {::target-resource nil ::jobs nil}) (def pagination-defaul...
null
https://raw.githubusercontent.com/nuvla/ui/c10704eabd339489722fa53bc99f11f21103c070/code/src/cljs/sixsq/nuvla/ui/job/spec.cljs
clojure
(ns sixsq.nuvla.ui.job.spec (:require [clojure.spec.alpha :as s] [sixsq.nuvla.ui.plugins.pagination :as pagination-plugin])) (s/def ::target-resource string?) (s/def ::jobs any?) (s/def ::pagination any?) (def defaults {::target-resource nil ::jobs nil}) (def pagination-defaul...
607cbb92a67631141f333abb8b2f68fd11270357da2c41e61704e471f4ee27fa
GaloisInc/haskell-tor
TorCell.hs
# LANGUAGE CPP # # LANGUAGE FlexibleInstances # # LANGUAGE RecordWildCards # module Test.TorCell(torCellTests) where #if !MIN_VERSION_base(4,8,0) import Control.Applicative #endif import Control.Monad import Crypto.Hash import Data.ASN1.OID import Data.Binary.Get import Data.Binary.Put import Data.By...
null
https://raw.githubusercontent.com/GaloisInc/haskell-tor/e5bfe82f63722292df5634686195f85e3a7857b2/test/Test/TorCell.hs
haskell
FIXME?
# LANGUAGE CPP # # LANGUAGE FlexibleInstances # # LANGUAGE RecordWildCards # module Test.TorCell(torCellTests) where #if !MIN_VERSION_base(4,8,0) import Control.Applicative #endif import Control.Monad import Crypto.Hash import Data.ASN1.OID import Data.Binary.Get import Data.Binary.Put import Data.By...
e56a4fe82e6a7e923c1ac474b9c4d6e4027b8b949c735ae7e69b7f51039b7800
TrustInSoft/tis-interpreter
why3_xml.mli
Modified by TrustInSoft (**************************************************************************) (* *) The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2013 -- INRIA - CNRS - Paris - Sud Un...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/wp/why3_xml.mli
ocaml
************************************************************************ This software is distributed under the terms of the GNU Lesser on linking described in fi...
Modified by TrustInSoft The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2013 -- INRIA - CNRS - Paris - Sud University General Public License version 2.1 , with the special exception File modified by CEA ( Commissariat à l'énergie atomique et...
c8d0a6b0962f27a8165ff6d8e69cab397acc71fe9973d532cf9080663a83c777
mmontone/cl-xul
button.lisp
(in-package :xul) (define-xul-element button (container-element) (accesskey autocheck checkState checked command crop dir disabled dlgtype group icon image label (open* :attribute-name "open" :initarg :open) orient tabindex (type* :attribute-name "type" :initarg :type) default) (:documentation "A button that...
null
https://raw.githubusercontent.com/mmontone/cl-xul/049c8664bb58d177c71d93ac5b5e1a2ba9b9469b/src/controls/button.lisp
lisp
(in-package :xul) (define-xul-element button (container-element) (accesskey autocheck checkState checked command crop dir disabled dlgtype group icon image label (open* :attribute-name "open" :initarg :open) orient tabindex (type* :attribute-name "type" :initarg :type) default) (:documentation "A button that...
e16486d0c88d59915b0d8718e26b57a5b6b39a2a2f505c0373d3b60d351eb205
Deducteam/Logipedia
makefile.ml
* Rules to export files to json . open Core open Extras open Console open Build.Classic open Build_template let pp_key = Key.pp let valid_stored = valid_stored let key_eq = Key.eq let mk_target f = let open Filename in (Option.get !Cli.outdir) </> !/f <.> "json" let want : string list -> Key.t list = List.map...
null
https://raw.githubusercontent.com/Deducteam/Logipedia/09797a35ae36ab671e40e615fcdc09a7bba69134/src/json/makefile.ml
ocaml
* [lift filter f k] lifts function [f] to operate on {!type:Key.t} with [f k] returns [None] or [Some(v)] if [filter k] is true.
* Rules to export files to json . open Core open Extras open Console open Build.Classic open Build_template let pp_key = Key.pp let valid_stored = valid_stored let key_eq = Key.eq let mk_target f = let open Filename in (Option.get !Cli.outdir) </> !/f <.> "json" let want : string list -> Key.t list = List.map...
2a4c6018ff20b5aecd8877083d5423b7c51d5870ac1bf10d9419b4bb4d50499c
mentat-collective/emmy
richardson_test.cljc
#_"SPDX-License-Identifier: GPL-3.0" (ns emmy.polynomial.richardson-test (:require [clojure.test :refer [is deftest testing]] [emmy.numbers] [emmy.polynomial.interpolate :as pi] [emmy.polynomial.richardson :as pr] [emmy.util.stream :as us] [emmy.value :as v...
null
https://raw.githubusercontent.com/mentat-collective/emmy/90a1de10e78187c70d546c3cfd63c8d32b783bed/test/emmy/polynomial/richardson_test.cljc
clojure
(1/t^{i + 1})^2
#_"SPDX-License-Identifier: GPL-3.0" (ns emmy.polynomial.richardson-test (:require [clojure.test :refer [is deftest testing]] [emmy.numbers] [emmy.polynomial.interpolate :as pi] [emmy.polynomial.richardson :as pr] [emmy.util.stream :as us] [emmy.value :as v...
964e49a06f21b40e2155c48494720561814bcd8b4ae47e5b2601b62b92c65ad3
MyDataFlow/ttalk-server
cache_tab.erl
%%%------------------------------------------------------------------- %%% File : cache_tab.erl Author : < > %%% Description : Caching key-value table %%% Created : 29 Aug 2010 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2013 ProcessOne %%% %%% This program is free software; you can redistribut...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/deps/p1_cache_tab/src/cache_tab.erl
erlang
------------------------------------------------------------------- File : cache_tab.erl Description : Caching key-value table This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but W...
Author : < > Created : 29 Aug 2010 by < > ejabberd , Copyright ( C ) 2002 - 2013 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public License Founda...
82f3d9df26db68b388f0a144aa0de57e721a21f2b95ff60791c02ef9f2c5424e
exercism/erlang
example.erl
-module(example). -export([encode/2, decode/2]). encode(Message, Rails) -> [C || {_, C} <- enrail(Message, Rails)]. decode(Message, Rails) -> Tmp=lists:zipwith( fun ({Pos, undefined}, C) -> {Pos, C} end, enrail([undefined || _ <- Message], Rails), Message), [C || {_, C} <- lists:sort(Tmp)]. enrail(D...
null
https://raw.githubusercontent.com/exercism/erlang/57ac2707dae643682950715e74eb271f732e2100/exercises/practice/rail-fence-cipher/.meta/example.erl
erlang
-module(example). -export([encode/2, decode/2]). encode(Message, Rails) -> [C || {_, C} <- enrail(Message, Rails)]. decode(Message, Rails) -> Tmp=lists:zipwith( fun ({Pos, undefined}, C) -> {Pos, C} end, enrail([undefined || _ <- Message], Rails), Message), [C || {_, C} <- lists:sort(Tmp)]. enrail(D...
99c48cbf232ee63e077eddde3390575b9194eb3893cd637cdf0b67d2b33c3314
tsloughter/kuberl
kuberl_extensions_v1beta1_rollback_config.erl
-module(kuberl_extensions_v1beta1_rollback_config). -export([encode/1]). -export_type([kuberl_extensions_v1beta1_rollback_config/0]). -type kuberl_extensions_v1beta1_rollback_config() :: #{ 'revision' => integer() }. encode(#{ 'revision' := Revision }) -> #{ 'revision' => Revision }.
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_extensions_v1beta1_rollback_config.erl
erlang
-module(kuberl_extensions_v1beta1_rollback_config). -export([encode/1]). -export_type([kuberl_extensions_v1beta1_rollback_config/0]). -type kuberl_extensions_v1beta1_rollback_config() :: #{ 'revision' => integer() }. encode(#{ 'revision' := Revision }) -> #{ 'revision' => Revision }.
b82c6d5979bdff714e22e23a062b727ce7ad0315a7964fbe1ac48786fc992df3
biokoda/distreg
distreg_util.erl
-module(distreg_util). -compile(export_all). record to proplist rec2prop(Rec, RecordFields) -> loop_rec(RecordFields, 1, Rec, []). loop_rec([H|T], N, Rec, L) -> loop_rec(T, N+1, Rec, [{H, element(N+1, Rec)}|L]); loop_rec([], _, _, L) -> L. % % convert prop list to record prop2rec(Prop, RecName, DefRec, RecordF...
null
https://raw.githubusercontent.com/biokoda/distreg/95f8710a794f9fe155ae0638783d03a907e12d78/src/distreg_util.erl
erlang
% convert prop list to record
-module(distreg_util). -compile(export_all). record to proplist rec2prop(Rec, RecordFields) -> loop_rec(RecordFields, 1, Rec, []). loop_rec([H|T], N, Rec, L) -> loop_rec(T, N+1, Rec, [{H, element(N+1, Rec)}|L]); loop_rec([], _, _, L) -> L. prop2rec(Prop, RecName, DefRec, RecordFields) -> loop_fields(erlang:ma...
1121d97f7bdb963fb2ea83ae4bf437946fafa310030f987baa15541794dc0e03
scheme/scsh
ndbm.scm
Very vanilla DBM processing code Copyright ( c ) 1995 by ( ) . ;;; See file COPYING This is just a straight translation of the UNIX freebie NDBM code . Usage : ( dbm - open name flags mode ) ;;; name := name of database file (no extension) ;;; flags := file access flags ...
null
https://raw.githubusercontent.com/scheme/scsh/114432435e4eadd54334df6b37fcae505079b49f/scheme/ndbm.scm
scheme
See file COPYING name := name of database file (no extension) flags := file access flags (open/create etc.) mode := file access modes (privileges) key := The key value of data to be retrieved Return: String containing data associated with key ...
Very vanilla DBM processing code Copyright ( c ) 1995 by ( ) . This is just a straight translation of the UNIX freebie NDBM code . Usage : ( dbm - open name flags mode ) Return : Alien value pointer to the open DBM structure Usage : ( dbm - close db ) db : = The pointer r...
5f74bd1304fecfcc24d0b48cef0f957fa96d2416fa51b47f621bb3cd1d646222
zippy/anansi
commands.clj
(ns #^{:author "Eric Harris-Braun" :doc "Commands that can be excecuted by a host interface"} anansi.receptor.host-interface.commands (:use [anansi.ceptr] [anansi.util :only [modify-keys]] [anansi.receptor.user] [anansi.receptor.scape] [anansi.receptor.host])) (defn- comman...
null
https://raw.githubusercontent.com/zippy/anansi/881aa279e5e7836f3002fc2ef7623f2ee1860c9a/src/anansi/receptor/host_interface/commands.clj
clojure
(ns #^{:author "Eric Harris-Braun" :doc "Commands that can be excecuted by a host interface"} anansi.receptor.host-interface.commands (:use [anansi.ceptr] [anansi.util :only [modify-keys]] [anansi.receptor.user] [anansi.receptor.scape] [anansi.receptor.host])) (defn- comman...
23ed5412f849f372f62068078f93f8cd5f79c20b3ae5b2105672b467ceaae311
danielecapo/sfont
info.rkt
#lang setup/infotab (define scribblings '(("scribblings/sfont.scrbl" (multi-page))))
null
https://raw.githubusercontent.com/danielecapo/sfont/c854f9734f15f4c7cd4b98e041b8c961faa3eef2/sfont/info.rkt
racket
#lang setup/infotab (define scribblings '(("scribblings/sfont.scrbl" (multi-page))))
6b383e9d6971b810b9a33e8633a023adf8b949961ac9976f37401fb4a4574b8d
D00mch/DartClojure
util.cljc
(ns dumch.util (:require [rewrite-clj.node :as n] #?(:clj [clojure.java.io :as io])) #?(:cljs (:require-macros [dumch.util]))) #?(:clj (set! *warn-on-reflection* true)) (def ws (n/spaces 1)) (defn spaces [sq] (interpose ws sq)) (defn lists* [& args] (spaces (apply list* args))) (defn maps [f sq] (spac...
null
https://raw.githubusercontent.com/D00mch/DartClojure/0b32f86dc0a4b75fae7d332dbeb959c7feef9aef/src/dumch/util.cljc
clojure
(ns dumch.util (:require [rewrite-clj.node :as n] #?(:clj [clojure.java.io :as io])) #?(:cljs (:require-macros [dumch.util]))) #?(:clj (set! *warn-on-reflection* true)) (def ws (n/spaces 1)) (defn spaces [sq] (interpose ws sq)) (defn lists* [& args] (spaces (apply list* args))) (defn maps [f sq] (spac...
15e41e881a370ab131d5db0e76e9d25c2739eb3d9b938258e673cdcfcebebcce
tommaisey/aeon
free-self-when-done.help.scm
;; (free-self-when-done src) ;; free the synth when the 'done' flag of the unit at `src' is set. (let* ((x (mouse-x kr -1 1 0 0.1)) (e (linen x 1 0.1 1 remove-synth))) (audition (out 0 (mul (sin-osc ar 440 0) e)))) (let* ((x (mouse-x kr -1 1 0 0.1)) (e (linen x 2 0.1 2 do-nothing))) (audition (mrg2...
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rsc3/help/ugen/envelopes/free-self-when-done.help.scm
scheme
(free-self-when-done src) free the synth when the 'done' flag of the unit at `src' is set.
(let* ((x (mouse-x kr -1 1 0 0.1)) (e (linen x 1 0.1 1 remove-synth))) (audition (out 0 (mul (sin-osc ar 440 0) e)))) (let* ((x (mouse-x kr -1 1 0 0.1)) (e (linen x 2 0.1 2 do-nothing))) (audition (mrg2 (free-self-when-done e) (out 0 (mul (sin-osc ar 440 0) e)))))
5d51737b0183d507906825891a6535aa9f4be8d0f3e6def6b058ecf7fbb119fd
aiya000/haskell-examples
Main.hs
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE TypeSynonymInstances #-} import Data.Types.Injective (Injective(..)) import Data.Types.Isomorphic (Iso(..), from) type Bool' = Maybe () instance Injective Bool' Bool where to (Just ()) = True to Nothing = False instance Injective Bo...
null
https://raw.githubusercontent.com/aiya000/haskell-examples/a337ba0e86be8bb1333e7eea852ba5fa1d177d8a/Data/Types/Main.hs
haskell
# LANGUAGE TypeSynonymInstances #
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # import Data.Types.Injective (Injective(..)) import Data.Types.Isomorphic (Iso(..), from) type Bool' = Maybe () instance Injective Bool' Bool where to (Just ()) = True to Nothing = False instance Injective Bool Bool' where to True = Just () ...
8664b411745449a62ddf977013b9ab2050687a801fa67649e713cfab86db76ed
valderman/haste-compiler
HastePrim.hs
# LANGUAGE ForeignFunctionInterface , UnliftedFFITypes , GHCForeignImportPrim , NoImplicitPrelude , MagicHash , CPP # UnliftedFFITypes, GHCForeignImportPrim, NoImplicitPrelude, MagicHash, ...
null
https://raw.githubusercontent.com/valderman/haste-compiler/47d942521570eb4b8b6828b0aa38e1f6b9c3e8a8/libraries/ghc-7.10/base/GHC/HastePrim.hs
haskell
| Haste primitives used in various places in the haxxored base.
# LANGUAGE ForeignFunctionInterface , UnliftedFFITypes , GHCForeignImportPrim , NoImplicitPrelude , MagicHash , CPP # UnliftedFFITypes, GHCForeignImportPrim, NoImplicitPrelude, MagicHash, ...
397dbce32eaa7bde1f25d4e52a43ef279aa0aefd1480a65924800bfdf37588ff
oakes/play-cljc-examples
chars.cljc
(ns ui-gallery.chars (:require [play-cljc.transforms :as t] [play-cljc.math :as m] [play-cljc.instances :as i])) (defn crop-char [{:keys [baked-font] :as font-entity} ch] (let [{:keys [baked-chars baseline first-char]} baked-font char-code (- #?(:clj (int ch) :cljs (.charCodeAt ch 0...
null
https://raw.githubusercontent.com/oakes/play-cljc-examples/76edebe22bf5d08f5eb78970dba1fd577c8be15a/ui-gallery/src/ui_gallery/chars.cljc
clojure
adjust the next char if its horizontal position changed
(ns ui-gallery.chars (:require [play-cljc.transforms :as t] [play-cljc.math :as m] [play-cljc.instances :as i])) (defn crop-char [{:keys [baked-font] :as font-entity} ch] (let [{:keys [baked-chars baseline first-char]} baked-font char-code (- #?(:clj (int ch) :cljs (.charCodeAt ch 0...
6e6f4a2023bac109a388f5a54c41a716097fcf0f83eb4bae85c3dd2aadd94951
eskimor/servant-purescript
Main.hs
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeO...
null
https://raw.githubusercontent.com/eskimor/servant-purescript/6454d5bcb9aa2a5d6e3a3dc935423b67b6f3993c/examples/central-counter/src/Main.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeOperators # | We use servant's `enter` mechanism for handling Authentication ... We throw an error if no secret was pr...
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # module Main where import Control.Applicative import Control.Concurrent.STM import Control.Lens import Control.Monad.IO.Class import Control.Monad.Logger ...
808fb0695682b3d7f783caabb06bdb27b2f8cd97aa67e90f7ff490e08244617f
dybber/fcl
FreeVars.hs
module FCL.IL.Analysis.FreeVars (freeVars, freeInExp) where import Data.Set hiding (map) import FCL.IL.Analysis.Liveness (liveInExp) import FCL.IL.Syntax freeInExp :: Set ILName -> ILExp -> Set ILName freeInExp bound e = liveInExp e `difference` bound freeVars :: [Stmt a] -> Set ILName freeVars stmts = let ...
null
https://raw.githubusercontent.com/dybber/fcl/e794a4b9d3ab6207fbe89fcddaafe97ae0d379dd/src/FCL/IL/Analysis/FreeVars.hs
haskell
binding forms loops other freeVarsStmt :: Set VarName -> Statement a -> (Maybe VarName, Set VarName) For n e ss _ -> (Nothing, (delete n (freeInExp bound e)) `union` freeVars' (insert n bound) ss) If e ss0 ss1 _ -> (Nothing, ...
module FCL.IL.Analysis.FreeVars (freeVars, freeInExp) where import Data.Set hiding (map) import FCL.IL.Analysis.Liveness (liveInExp) import FCL.IL.Syntax freeInExp :: Set ILName -> ILExp -> Set ILName freeInExp bound e = liveInExp e `difference` bound freeVars :: [Stmt a] -> Set ILName freeVars stmts = let ...
49fdcfbf4bc3b01a812e491025839ba1728b5465ea0ff28b810bc8e326797ce2
Sintrastes/Montague
Prop4.hs
module Montague.Experimental.Prop4 where 4 - valued logic from the paper " Quickstrom : Property - based Acceptance Testing with -- LTL Specifications" data Prop4 = -- Definitevely true DefTrue -- Definitively false | DefFalse -- Presumptively true | PreTrue -- Presumtively false | PreFalse
null
https://raw.githubusercontent.com/Sintrastes/Montague/18cf2a226d1ae1e3fd7e697c48b4f485467fed92/src/Montague/Experimental/Prop4.hs
haskell
LTL Specifications" Definitevely true Definitively false Presumptively true Presumtively false
module Montague.Experimental.Prop4 where 4 - valued logic from the paper " Quickstrom : Property - based Acceptance Testing with data Prop4 = DefTrue | DefFalse | PreTrue | PreFalse
4a0c11c9e5ef70ab9c626893cdf866ad4635e3628b193e55441822faa1a995ff
walmartlabs/lacinia
fragments_tests.clj
Copyright ( c ) 2017 - present Walmart , Inc. ; 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 dist...
null
https://raw.githubusercontent.com/walmartlabs/lacinia/190f18852a6f7e5e74396660db2dc92fa18c4359/test/com/walmartlabs/lacinia/fragments_tests.clj
clojure
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright ( c ) 2017 - present Walmart , Inc. Licensed under the Apache License , Version 2.0 ( the " License " ) distributed under the License is distributed on an " AS IS " BASIS , (ns com.walmartlabs.lacinia.fragments-tests (:require [clojure.test :refer [deftest is]] [com.walmartlabs.lacinia :refer...
38dc6a6c8e945615d6f6025802ece17267b856c98969acd6e0516a52fab86da1
erlangonrails/devdb
tsend.erl
Copyright 2007 - 2008 fuer Informationstechnik Berlin % 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 i...
null
https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/scalaris/src/transstore/tsend.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language go...
Copyright 2007 - 2008 fuer Informationstechnik Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , Author : < > - send to all Functions extract information on and TMs ...