_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
3797dbbf4605609edd786e33399d70fe7fdb749a66e252d2461c7eec1693e78d
metosin/spec-tools
spec.cljc
(ns spec-tools.spec (:refer-clojure :exclude [any? some? number? pos? neg? integer? int? pos-int? neg-int? nat-int? float? double? boolean? string? ident? simple-ident? qualified-ident? keyword? simple-keyword? qualified-keyword? symbol? simple-symbol? ...
null
https://raw.githubusercontent.com/metosin/spec-tools/d05e6e3c76c3c6ff847aa3f8e66344df2705aeae/src/spec_tools/spec.cljc
clojure
(ns spec-tools.spec (:refer-clojure :exclude [any? some? number? pos? neg? integer? int? pos-int? neg-int? nat-int? float? double? boolean? string? ident? simple-ident? qualified-ident? keyword? simple-keyword? qualified-keyword? symbol? simple-symbol? ...
ba066e8e8d8cf8aea3bb17644ae8d573aa491e1382f7e055a63beaf381726d22
gsakkas/rite
3401.ml
let rec sepConcat sep sl = match sl with | [] -> "" | h::t -> let f a x = a ^ (sep ^ x) in let base = h in let l = t in List.fold_left f base l;; let stringOfList f l = "[" ^ (sepConcat ^ (";" ^ ((List.map f l) ^ "]")));; fix let rec sepConcat sep sl = match sl with | [ ] - > " " ...
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/data/sp14/3401.ml
ocaml
let rec sepConcat sep sl = match sl with | [] -> "" | h::t -> let f a x = a ^ (sep ^ x) in let base = h in let l = t in List.fold_left f base l;; let stringOfList f l = "[" ^ (sepConcat ^ (";" ^ ((List.map f l) ^ "]")));; fix let rec sepConcat sep sl = match sl with | [ ] - > " " ...
6f05bd81057f68145057562bcdf2f97c847c21e5179c77d97f61a121e698b3f6
gedge-platform/gedge-platform
vhost.erl
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 /. %% Copyright ( c ) 2018 - 2021 VMware , Inc. or its affiliates . All rights reserved . %% -module(vhost). -include_lib("rabbit_common/incl...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/rabbit/src/vhost.erl
erlang
name as a binary proplist of limits configured, if any note: this reports description and tags separately even though the field is not available, so this is a no-op
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 /. Copyright ( c ) 2018 - 2021 VMware , Inc. or its affiliates . All rights reserved . -module(vhost). -include_lib("rabbit_common/include/ra...
cbe53e08e64717e0a5939ba2445f70f5388caeb342ca5454b210e12c651a962c
nasa/pvslib
patch-20210301.lisp
;; There was a off-by-one error in the nondestructive update macro. (defmacro nd-rec-tup-update (rec fieldnum newval) `(let ((val ,newval) (newrec (copy-seq ,rec))) no need to and rec newrec)) ;;since fieldnum is a fixed number (defmethod pvs2cl-update-nd-type* ((type recordtype...
null
https://raw.githubusercontent.com/nasa/pvslib/2be465b36f4d884c33cbd49a37939c4664db74eb/pvs-patches/patch-20210301.lisp
lisp
There was a off-by-one error in the nondestructive update macro. since fieldnum is a fixed number dependent sort
(defmacro nd-rec-tup-update (rec fieldnum newval) `(let ((val ,newval) (newrec (copy-seq ,rec))) no need to and rec (defmethod pvs2cl-update-nd-type* ((type recordtype) expr arg1 restargs assign-expr bindings livevars) (let* ((id (id (car arg1))) (fields (sort-fields (fields type))...
8309b87b7249ee466629554fa17ed7c80eef36d42abbe5f02c75b6d6ab58dbdc
foretspaisibles/lemonade-sqlite
lemonade_Sqlite.mli
Lemonade_sqlite -- Monadic interface for sqlite ( -sqlite ) This file is part of Lemonade Sqlite Copyright © 2016 This file must be used under the terms of the CeCILL - B. This source file is licensed as described in the file COPYING , which you should have received as part of this distribution . T...
null
https://raw.githubusercontent.com/foretspaisibles/lemonade-sqlite/a1fcdf49afc3d902ddd7f0d58ef1fdc894f92965/src/lemonade_Sqlite.mli
ocaml
* The type of sqlite errors. * The outcome of computations throwing errors. * Reveal the outcome of a computation with errors. * Fail with the given error. * [recover m handler] is a monad containing the same value as [m] and thrown errors are interepreted by the [handler]. * The type of database handle. * Cl...
Lemonade_sqlite -- Monadic interface for sqlite ( -sqlite ) This file is part of Lemonade Sqlite Copyright © 2016 This file must be used under the terms of the CeCILL - B. This source file is licensed as described in the file COPYING , which you should have received as part of this distribution . T...
e328f5d9e1c567ee7a6653018ee2e1dae378557758b5e7a2e105b66c1e3881bc
weiliang1503/XZZ-racket
help.rkt
#lang racket (require "../lib.rkt") (define (help type ids msg) (send-msg type (car ids) (string-append "妾身可以为您提供以下服务:\n" "1. help 查看此列表\n" "2. hello 跟女仆酱打声招乎\n" "3. echo [内容] 让女仆重复你的话\n" "4. five...
null
https://raw.githubusercontent.com/weiliang1503/XZZ-racket/eee9dc45a4a39aefbec2dfb542fdfdb12ed2bac1/plugins/help.rkt
racket
#lang racket (require "../lib.rkt") (define (help type ids msg) (send-msg type (car ids) (string-append "妾身可以为您提供以下服务:\n" "1. help 查看此列表\n" "2. hello 跟女仆酱打声招乎\n" "3. echo [内容] 让女仆重复你的话\n" "4. five...
3fd0ae460d0620984bf84aa0231daf49e81f6a4a567c2a7bb974820e35c7c7b0
Kakadu/fp2022
parser.ml
* Copyright 2021 - 2022 , Kakadu and contributors * SPDX - License - Identifier : LGPL-3.0 - or - later (* TODO: implement parser here *) open Angstrom open Caml.Format open Ast let is_whitespace = function | '\x20' | '\x0a' | '\x0d' | '\x09' -> true | _ -> false ;; let is_digit = function | '0' .. '9' -> tru...
null
https://raw.githubusercontent.com/Kakadu/fp2022/58d6ba7a63f656e7f753219102108aac7a147a25/OCaml-with-variants/lib/parser.ml
ocaml
TODO: implement parser here CHANGED!!!!!! let () = parse_exp "let c s = concat s \"asdf\";;" |> print_result ;;
* Copyright 2021 - 2022 , Kakadu and contributors * SPDX - License - Identifier : LGPL-3.0 - or - later open Angstrom open Caml.Format open Ast let is_whitespace = function | '\x20' | '\x0a' | '\x0d' | '\x09' -> true | _ -> false ;; let is_digit = function | '0' .. '9' -> true | _ -> false ;; let integer =...
35987b9a99461c4de138f261fa8f87bed2c80636a8c61fc0717adf8cbe109276
mfikes/fifth-postulate
ns314.cljs
(ns fifth-postulate.ns314) (defn solve-for01 [xs v] (for [ndx0 (range 0 (- (count xs) 3)) ndx1 (range (inc ndx0) (- (count xs) 2)) ndx2 (range (inc ndx1) (- (count xs) 1)) ndx3 (range (inc ndx2) (count xs)) :when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))] (list (x...
null
https://raw.githubusercontent.com/mfikes/fifth-postulate/22cfd5f8c2b4a2dead1c15a96295bfeb4dba235e/src/fifth_postulate/ns314.cljs
clojure
(ns fifth-postulate.ns314) (defn solve-for01 [xs v] (for [ndx0 (range 0 (- (count xs) 3)) ndx1 (range (inc ndx0) (- (count xs) 2)) ndx2 (range (inc ndx1) (- (count xs) 1)) ndx3 (range (inc ndx2) (count xs)) :when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))] (list (x...
6ecda3137a9d462a8990b00ba6ecb1f6ae04a649a4ccb1d08bbf8acdadb4c689
kupl/FixML
sub6.ml
type formula= |True |False |Not of formula |AndAlso of formula*formula |OrElse of formula*formula |Imply of formula*formula |Equal of exp*exp and exp= |Num of int |Plus of exp*exp |Minus of exp*exp let rec trans:exp->exp =fun e1-> match e1 with |Plus(Num(a),Num(b))->Num(a+b) |Plus(Num(a),e3)->Plus(Num(a),trans(e3)) |Pl...
null
https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/benchmarks/formula/formula1/submissions/sub6.ml
ocaml
type formula= |True |False |Not of formula |AndAlso of formula*formula |OrElse of formula*formula |Imply of formula*formula |Equal of exp*exp and exp= |Num of int |Plus of exp*exp |Minus of exp*exp let rec trans:exp->exp =fun e1-> match e1 with |Plus(Num(a),Num(b))->Num(a+b) |Plus(Num(a),e3)->Plus(Num(a),trans(e3)) |Pl...
6e9a3e797ab3b0ee38e306a3b085204b91198c88d97fa1b860898071e18f20a0
Relph1119/sicp-solutions-manual
p1-32-iter-accumulate.scm
(define (accumulate combiner null-value term a next b) (define (iter a result) (if (> a b) result (iter (next a) (combiner result (term a))))) (iter a null-value))
null
https://raw.githubusercontent.com/Relph1119/sicp-solutions-manual/f2ff309a6c898376209c198030c70d6adfac1fc1/src/practices/ch01/p1-32-iter-accumulate.scm
scheme
(define (accumulate combiner null-value term a next b) (define (iter a result) (if (> a b) result (iter (next a) (combiner result (term a))))) (iter a null-value))
596a4ef3104cadb4270206bf7af3b8ff2837c83dd898daefa04584666803f0e1
carld/compiler-tutorial
tests-1.1-req.scm
(add-tests-with-string-output "integers" [0 => "0\n"] [1 => "1\n"] [-1 => "-1\n"] [10 => "10\n"] [-10 => "-10\n"] [2736 => "2736\n"] [-2736 => "-2736\n"] [536870911 => "536870911\n"] [-536870912 => "-536870912\n"] )
null
https://raw.githubusercontent.com/carld/compiler-tutorial/4b5d275336cadcccd8e4d4752c0646d655402b1f/tests-1.1-req.scm
scheme
(add-tests-with-string-output "integers" [0 => "0\n"] [1 => "1\n"] [-1 => "-1\n"] [10 => "10\n"] [-10 => "-10\n"] [2736 => "2736\n"] [-2736 => "-2736\n"] [536870911 => "536870911\n"] [-536870912 => "-536870912\n"] )
de2bef0d8697db431530df5d76fb47ef97418af16111c3993e6c4e2b36683116
malcolmreynolds/GSLL
ode.lisp
Regression test ODE for GSLL , automatically generated (in-package :gsl) (LISP-UNIT:DEFINE-TEST ODE (LISP-UNIT::ASSERT-NUMERICAL-EQUAL (LIST 495 1.0d0 -1.4568657425802234d0 -11.547345633897558d0) (MULTIPLE-VALUE-LIST (INTEGRATE-VANDERPOL 1.0d0 1.d-4 +STEP-RK2+ NIL))) (LISP-UNIT::ASSERT-NUMERICAL-EQUAL ...
null
https://raw.githubusercontent.com/malcolmreynolds/GSLL/2f722f12f1d08e1b9550a46e2a22adba8e1e52c4/tests/ode.lisp
lisp
Regression test ODE for GSLL , automatically generated (in-package :gsl) (LISP-UNIT:DEFINE-TEST ODE (LISP-UNIT::ASSERT-NUMERICAL-EQUAL (LIST 495 1.0d0 -1.4568657425802234d0 -11.547345633897558d0) (MULTIPLE-VALUE-LIST (INTEGRATE-VANDERPOL 1.0d0 1.d-4 +STEP-RK2+ NIL))) (LISP-UNIT::ASSERT-NUMERICAL-EQUAL ...
e324806ada1b97fdd1a5d4320caeeb0c78635f22f62bb06b104671a059c07e52
threatgrid/naga-store
store_structs.cljc
(ns naga.schema.store-structs #?(:cljs (:refer-clojure :exclude [Var])) (:require #?(:clj [schema.core :as s] :cljs [schema.core :as s :include-macros true]))) ;; single element in a rule (def EntityPropertyElt (s/cond-pre s/Keyword s/Symbol #?(:clj Long :cljs s/Num))) ;; simple pattern containi...
null
https://raw.githubusercontent.com/threatgrid/naga-store/73ceae3692bff1124d0dddaa3bbf6da7b2ab62e4/src/naga/schema/store_structs.cljc
clojure
single element in a rule simple pattern containing a single element. e.g. [?v] e.g. [?s :property] [:my/id ?property ?value] filters are a vector with an executable list destined for eval
(ns naga.schema.store-structs #?(:cljs (:refer-clojure :exclude [Var])) (:require #?(:clj [schema.core :as s] :cljs [schema.core :as s :include-macros true]))) (def EntityPropertyElt (s/cond-pre s/Keyword s/Symbol #?(:clj Long :cljs s/Num))) (def EntityPattern [(s/one s/Symbol "entity")]) two...
538eec61179b17b341279313df3b2fb72e1d5ddb248aeb9124f585b2380d71ae
pmundkur/flowcaml
avl_graphviz.mli
(**************************************************************************) (* *) (* Averell *) (* *) ...
null
https://raw.githubusercontent.com/pmundkur/flowcaml/ddfa8a37e1cb60f42650bed8030036ac313e048a/src-averell/avl_graphviz.mli
ocaml
************************************************************************ Averell ...
, Projet Cristal , INRIA Rocquencourt Copyright 2002 , 2003 Institut National de Recherche en Informatique under the terms of the GNU Library General Public License , with the $ I d : avl_graphviz.mli , v 1.4 2003/06/26 13:32:45 simonet Exp $ * Interface with { i GraphViz } ...
23db1578dfc73d588aa85acc1b958ec1f4a2b2d67a4b7393d06005248771b552
threatgrid/ctia
migrate_es_stores_test.clj
(ns ctia.task.migration.migrate-es-stores-test (:require [clj-momo.lib.clj-time.coerce :as time-coerce] [clj-momo.test-helpers.core :as mth] [clojure.data :refer [diff]] [clojure.java.io :as io] [clojure.set :as set] [clojure.string :as str] [clo...
null
https://raw.githubusercontent.com/threatgrid/ctia/8e306e63428d620d101ff9ce6e2eaf6ebf97b41b/test/ctia/task/migration/migrate_es_stores_test.clj
clojure
Note: goes _after_ fixture-ctia insert malformed documents insert proper documents insert malformed documents insert proper documents prepare new malwares insert new entities in source store small batch to check proper delete paging (deftest ^:integration minimal-load-test (with-each-fixtures identity app (t...
(ns ctia.task.migration.migrate-es-stores-test (:require [clj-momo.lib.clj-time.coerce :as time-coerce] [clj-momo.test-helpers.core :as mth] [clojure.data :refer [diff]] [clojure.java.io :as io] [clojure.set :as set] [clojure.string :as str] [clo...
0b5466c6912a78b623249d87002e37afe3f14937fa3292a55448d8d0eaeff212
Jell/euroclojure-2016
localization.cljs
(ns euroclojure.localization) (defn slide [{:keys [speaker]}] [:div.slide.left [:h1.centered "Localization"]])
null
https://raw.githubusercontent.com/Jell/euroclojure-2016/a8ca883e8480a4616ede19995aaacd4a495608af/src/euroclojure/localization.cljs
clojure
(ns euroclojure.localization) (defn slide [{:keys [speaker]}] [:div.slide.left [:h1.centered "Localization"]])
14dd6f869e9250e706a1bb1bb15966e91c115092c2a129db20b9fd3e0f05e50c
racketscript/racketscript
require-provide.rkt
#lang racket/base (provide add sub) (require racket/string) (require racket/list racket/base) (define (add a b) (+ a b)) (define (sub a b) (- a b)) require protected i d , see (require "protect-out.rkt") (displayln (f 10))
null
https://raw.githubusercontent.com/racketscript/racketscript/8505512292f268e03c6e33e82978e3333d7c5b22/tests/basic/require-provide.rkt
racket
#lang racket/base (provide add sub) (require racket/string) (require racket/list racket/base) (define (add a b) (+ a b)) (define (sub a b) (- a b)) require protected i d , see (require "protect-out.rkt") (displayln (f 10))
39fe95c2596aabd6080f7fc093566d064fb41c01fce27d064b506a18eaba8d74
rescript-association/genType
GenTypeCommon.ml
module StringMap = Map.Make (String) module StringSet = Set.Make (String) module Config = Config_ include Config let logNotImplemented x = if !Debug.notImplemented then Log_.item "Not Implemented: %s\n" x type optional = Mandatory | Optional type mutable_ = Immutable | Mutable type labelJS = | BoolLabel of bool...
null
https://raw.githubusercontent.com/rescript-association/genType/c19a86c13f0f05c983cce5794540a7c30a0c02a1/src/GenTypeCommon.ml
ocaml
Taken from ext_namespace.ml in bukclescript * @demo/some-library -> DemoSomelibrary * Common-DemoSomelibrary -> Common Force "/" separator.
module StringMap = Map.Make (String) module StringSet = Set.Make (String) module Config = Config_ include Config let logNotImplemented x = if !Debug.notImplemented then Log_.item "Not Implemented: %s\n" x type optional = Mandatory | Optional type mutable_ = Immutable | Mutable type labelJS = | BoolLabel of bool...
e51cff04efdbbe2da33f361532a17e9c7094dbe24d618fa3f95373db3aeac688
binsec/haunted
nonrelational.ml
(**************************************************************************) This file is part of BINSEC . (* *) Copyright ( C ) 2016 - 2019 CEA ( Co...
null
https://raw.githubusercontent.com/binsec/haunted/7ffc5f4072950fe138f53fe953ace98fff181c73/src/static/ai/nonrelational.ml
ocaml
************************************************************************ alternatives) you can redistribute it an...
This file is part of BINSEC . Copyright ( C ) 2016 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , ve...
011d5066445cd1d2485af7041e4b59897cc8c3467993a7d5c2fd9db8992b1812
janestreet/base
test_exn_reraise.ml
open! Import (* These methods miss part of the backtrace. *) let clobber_most_recent_backtrace () = try failwith "clobbering" with | _ -> () ;; let _Base_Exn_reraise exn = Exn.reraise exn "reraised" let _Base_Exn_reraise_after_clobbering_most_recent_backtrace exn = clobber_most_recent_backtrace (); Exn.rera...
null
https://raw.githubusercontent.com/janestreet/base/8ea6adb415ebc27fec97e1ae34b9a3d5483eb3f0/test/test_exn_reraise.ml
ocaml
These methods miss part of the backtrace. These methods produce the full, desired backtrace. This ref causes [check_value] to appear in the backtrace, because the [raise_s] call is no longer in tail position. If you want to see what the underlying backtraces look like, set this to true. Otherwise, these te...
open! Import let clobber_most_recent_backtrace () = try failwith "clobbering" with | _ -> () ;; let _Base_Exn_reraise exn = Exn.reraise exn "reraised" let _Base_Exn_reraise_after_clobbering_most_recent_backtrace exn = clobber_most_recent_backtrace (); Exn.reraise exn "reraised" ;; external reraiser_raw : e...
1d9c9f61d34a0def6825a6bb75ae7aaf3c21aefafcdacba92e82caee203b4794
xh4/web-toolkit
fsbv.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;; ;;; fsbv.lisp --- Tests of foreign structure by value calls. ;;; Copyright ( C ) 2011 , ;;; ;;; Permission is hereby granted, free of charge, to any person ;;; obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/vendor/cffi_0.20.1/tests/fsbv.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- fsbv.lisp --- Tests of foreign structure by value calls. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish...
Copyright ( C ) 2011 , files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , (in-package #:cffi-tests)...
be3d88be172022871c12b0ab4780a68bb5b4b378dc7d9156a7e9dfeff1016741
haskell/haskell-language-server
DestructAllGADTEvidence.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE GADTs # # LANGUAGE KindSignatures # {-# LANGUAGE TypeOperators #-} import Data.Kind data Nat = Z | S Nat data HList (ls :: [Type]) where HNil :: HList '[] HCons :: t -> HList ts -> HList (t ': ts) data ElemAt (n :: Nat) t (ts :: [Type]) where AtZ :: ElemAt...
null
https://raw.githubusercontent.com/haskell/haskell-language-server/f3ad27ba1634871b2240b8cd7de9f31b91a2e502/plugins/hls-tactics-plugin/new/test/golden/DestructAllGADTEvidence.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE TypeOperators #
# LANGUAGE GADTs # # LANGUAGE KindSignatures # import Data.Kind data Nat = Z | S Nat data HList (ls :: [Type]) where HNil :: HList '[] HCons :: t -> HList ts -> HList (t ': ts) data ElemAt (n :: Nat) t (ts :: [Type]) where AtZ :: ElemAt 'Z t (t ': ts) AtS :: ElemAt k t ts -> ElemAt ('S k) t (u ': ...
32776c522050a825b818b48e37425fe0b98ff523dd6e0bc1271eba2f5f2c6fd7
inaka/sumo_db
sumo_basic_test_helper.erl
-module(sumo_basic_test_helper). %% Common Test Cases -export([ create_schema/1, find/1, find_all/1, find_by/1, delete_all/1, delete/1, check_proper_dates/1, count/1, count_by/1, persist_using_changeset/1 ]). %% Shared Helpers -export([init_store/1]). -type config() :: [{atom(), term()}]. %%%===...
null
https://raw.githubusercontent.com/inaka/sumo_db/331ea718c13a01748a7739ad4078b0032f4d32e5/src/adapter_test_helpers/sumo_basic_test_helper.erl
erlang
Common Test Cases Shared Helpers ============================================================================= Test Cases - Helpers ============================================================================= Check that it returns what we have inserted Check find_by ID Check pagination delete sumo:delete/2 use...
-module(sumo_basic_test_helper). -export([ create_schema/1, find/1, find_all/1, find_by/1, delete_all/1, delete/1, check_proper_dates/1, count/1, count_by/1, persist_using_changeset/1 ]). -export([init_store/1]). -type config() :: [{atom(), term()}]. -spec create_schema(config()) -> ok. create_...
c8183c571b30ff567f768c0b273236f4bb6a421b734bacf67bfbc0f1a3192ef6
tweag/pirouette
FromTerm.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE NamedFieldPuns # # LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # {-# OPTIONS_GHC -Wno-unrecognised-pragmas #-} {-# HLINT ignore "Replace case with maybe" #-} | Transla...
null
https://raw.githubusercontent.com/tweag/pirouette/ae4562c83dbfa2b2426166d11a218f9742ac9874/src/Pirouette/SMT/FromTerm.hs
haskell
# LANGUAGE ConstraintKinds # # OPTIONS_GHC -Wno-unrecognised-pragmas # # HLINT ignore "Replace case with maybe" # smtlib through our copy of the PureSMT library. import Debug.Trace (trace) useful during debugging traceMe = trace | Synonym which takes into account whether the translation used any uninterpreted fun...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE NamedFieldPuns # # LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # | Translation of Pirouette syntactical categories into module Pirouette.SMT.FromTerm where import Control.Monad.Except import Control....
c8416e90a7e8b0f94d9f3368bd3b0a25e92008d6b0bf27a94f03af0020ddd2e8
RyanGlScott/eliminators
TH.hs
# LANGUAGE CPP # # LANGUAGE DataKinds # {-# LANGUAGE TemplateHaskellQuotes #-} # LANGUAGE Unsafe # | Module : Data . Eliminator . TH Copyright : ( C ) 2017 License : BSD - style ( see the file LICENSE ) Maintainer : Stability : Experimental Portability : GHC Generate dependently ty...
null
https://raw.githubusercontent.com/RyanGlScott/eliminators/79e7a83d5565d6a4a807ad521a71cf88755f64da/src/Data/Eliminator/TH.hs
haskell
# LANGUAGE TemplateHaskellQuotes # * Eliminator generation ** Term-level eliminators $term-conventions ** Type-level eliminators $type-conventions | @'deriveElim' dataName@ generates a top-level elimination function for the datatype @dataName@. The eliminator will follow these naming conventions: * If the data...
# LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE Unsafe # | Module : Data . Eliminator . TH Copyright : ( C ) 2017 License : BSD - style ( see the file LICENSE ) Maintainer : Stability : Experimental Portability : GHC Generate dependently typed elimination functions using Templat...
1fb633a401dce4698484c576cdfc02dbdeda6407d319dcccb9c5a7dbc9b2ad82
imitator-model-checker/imitator
AlgoEFopt.mli
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * IMITATOR * * Université Paris 13 , LIPN , CNRS , France * Université de Lorraine , CNRS , , LORIA , Nancy , France * * Module description : " EF optimize...
null
https://raw.githubusercontent.com/imitator-model-checker/imitator/105408ae2bd8c3e3291f286e4d127defd492a58b/src/AlgoEFopt.mli
ocaml
********************************************************** Modules ********************************************************** ********************************************************** Class definition ********************************************************** *******************************************************...
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * IMITATOR * * Université Paris 13 , LIPN , CNRS , France * Université de Lorraine , CNRS , , LORIA , Nancy , France * * Module description : " EF optimize...
9dce36924119a760c38289054be812bc5d2610f37c8d6bfc06e018aa2144b16f
xsc/pandect
core.clj
(ns ^:no-doc pandect.gen.core (:import [java.io File FileInputStream])) # # Concept ;; ;; Instead of having types that implement protocols that perform ;; the actual digest/checksum calculations (pandect <= 0.2.1), we ;; will have a protocol for code generators to be used to create ;; the digest/checksum functions...
null
https://raw.githubusercontent.com/xsc/pandect/ffc95e81484045ddbe235a2f4208bd5677f1195b/src/pandect/gen/core.clj
clojure
Instead of having types that implement protocols that perform the actual digest/checksum calculations (pandect <= 0.2.1), we will have a protocol for code generators to be used to create the digest/checksum functions in pandect.core at compile time. `buffer-size` is the form used to ## Helpers
(ns ^:no-doc pandect.gen.core (:import [java.io File FileInputStream])) # # Concept # # Code Generator Protocols (defprotocol CodeGen "Protocol for Algorithm Code Generators." (algorithm-string [this] "Get String representing the Algorithm this Code Generator is built for.")) (defprotocol Generat...
6c99bf11786af64f50515bb5078ff1f1258a97ed3015b62f5bc4d5ef297d24c7
jimcrayne/jhc
Typeable.hs
# OPTIONS_JHC -fffi -funboxed - values # module Data.Typeable(TypeRep(),Typeable(..),Typeable1(..),Typeable2(..)) where import Jhc.Prim import Jhc.String import Jhc.Prim.Basics type String_ = BitsPtr_ data TypeRep = TypeRep String_ [TypeRep] showsAddr__ :: String_ -> [Char] -> [Char] showsAddr__ a xs = unpackStri...
null
https://raw.githubusercontent.com/jimcrayne/jhc/1ff035af3d697f9175f8761c8d08edbffde03b4e/lib/haskell-extras/Data/Typeable.hs
haskell
argType :: a b -> b argType = undefined ----------------------------------------------------------- Type-safe cast ----------------------------------------------------------- | The type-safe cast operation | A flexible variation parameterised in a type constructor | Cast for * - > * | Cast for...
# OPTIONS_JHC -fffi -funboxed - values # module Data.Typeable(TypeRep(),Typeable(..),Typeable1(..),Typeable2(..)) where import Jhc.Prim import Jhc.String import Jhc.Prim.Basics type String_ = BitsPtr_ data TypeRep = TypeRep String_ [TypeRep] showsAddr__ :: String_ -> [Char] -> [Char] showsAddr__ a xs = unpackStri...
7d72006c030c00d19e33c25cc9a2de53af1b6e19594c328a01f7f75278a2edac
wesen/ruinwesen
html.lisp
(in-package :md) (enable-prototype-syntax) (enable-interpol-syntax) (defparameter *host-prefix* ":4242") (defparameter *elektron-prefix* "/md/") (defparameter *elektron-dir* "/home/manuel/elektron-dir/") (defparameter *image-cache-dir* (merge-pathnames (make-pathname :directory '(:relative "image-cache")) ...
null
https://raw.githubusercontent.com/wesen/ruinwesen/9f3ccea85425cf46b57e76144b3114ca342bad0f/md-uw/src/web/html.lisp
lisp
check rights XXX check rights XXX XXX ajax error handling dock style XXX
(in-package :md) (enable-prototype-syntax) (enable-interpol-syntax) (defparameter *host-prefix* ":4242") (defparameter *elektron-prefix* "/md/") (defparameter *elektron-dir* "/home/manuel/elektron-dir/") (defparameter *image-cache-dir* (merge-pathnames (make-pathname :directory '(:relative "image-cache")) ...
3cddf9acf59d1f12f723c0dc0a124251eff2ed8ac06fd61e7eb8929511cfec78
cark/cark.behavior-tree
tick_eater.cljc
(ns cark.behavior-tree.node-defs.tick-eater "The :tick-eater node stays :running for a number of ticks, and then succeeds. parameters: - :count : An integer, or integer returning function. The number of ticks before succeeding." (:require [cark.behavior-tree.context :as ctx] [cark.behavior-tree.db ...
null
https://raw.githubusercontent.com/cark/cark.behavior-tree/4e229fcc2ed3af3c66e74d2c51dda6684927d254/src/main/cark/behavior_tree/node_defs/tick_eater.cljc
clojure
(ns cark.behavior-tree.node-defs.tick-eater "The :tick-eater node stays :running for a number of ticks, and then succeeds. parameters: - :count : An integer, or integer returning function. The number of ticks before succeeding." (:require [cark.behavior-tree.context :as ctx] [cark.behavior-tree.db ...
f3f5958007a5b710fc1cc93cd7ba7fc27c974cba420073b69f40356f53f2c0fa
maacl/websocket-test
gen.clj
Copyright ( c ) . All rights reserved . The use and distribution terms for this software are covered by the Eclipse ;; Public License 1.0 (-1.0.php) which ;; can be found in the file epl-v10.html at the root of this distribution. By ;; using this software in any fashion, you are agreeing to be bound by the ;; ter...
null
https://raw.githubusercontent.com/maacl/websocket-test/d79dfdf82762d566cd89b535c3dbede2788bb034/src/compojure/html/gen.clj
clojure
Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software. ")))
Copyright ( c ) . All rights reserved . The use and distribution terms for this software are covered by the Eclipse (ns compojure.html.gen "A library for generating HTML output from a tree of vectors. The first item of the vector is the tag name, the optional second item is a hash of attributes, and the ...
9093d88b371261c8bc32cbbbd5474cd3b54a0271b04faf690d6431b777820d68
haskell-streaming/streaming-attoparsec
Streaming.hs
| Here is a simple use of ' parsed ' and standard @Streaming@ segmentation devices to parse a file in which groups of numbers are separated by blank lines . Such a problem of \'nesting streams\ ' is described in the @conduit@ context in < -to-model-nested-streams-with-conduits/32961296 this StackOverflow que...
null
https://raw.githubusercontent.com/haskell-streaming/streaming-attoparsec/06c33f898e899c7d81ab64f126236312c47e61d5/Data/Attoparsec/ByteString/Streaming.hs
haskell
$ cat nums.txt 1 2 3 4 5 6 7 8 raw bytes stream of parsed ` Maybe Int`s ; blank lines are ` Nothing ` drop any unparsed nonsense at the end split on blank lines keep ` Just x ` values in the sub - streams ( cp . ) sum each substream stream results to stdout $ cat nums.txt | ./atto ...
| Here is a simple use of ' parsed ' and standard @Streaming@ segmentation devices to parse a file in which groups of numbers are separated by blank lines . Such a problem of \'nesting streams\ ' is described in the @conduit@ context in < -to-model-nested-streams-with-conduits/32961296 this StackOverflow que...
cf393c2202271df3e6149c45e02c59ed4191bef8fd96bbe5c7207db4a251bde1
ygmpkk/house
Main.hs
module Main where -- ************************************************************************************************** -- -- This program creates a windows that allows a user to create a RGB colour. -- The program has been written in Clean 2.0 and uses the Clean Standard Object I / O library 1.2.2 -- -- *********...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/ObjectIO/Examples/RGBSelector/Main.hs
haskell
************************************************************************************************** This program creates a windows that allows a user to create a RGB colour. ************************************************************************************************** The definition of the text-slider compon...
module Main where The program has been written in Clean 2.0 and uses the Clean Standard Object I / O library 1.2.2 import Graphics.UI.ObjectIO import Prelude hiding (Left) blackRGB = RGB 0 0 0 whiteRGB = RGB 255 255 255 main :: IO () main = do rgbid <- openR2Id ids <- openIds 7 startColourPicker rgbid...
08656ef301961ce00eabc827659915a5f314ec98579f9daba9b88ad5b5715895
lamdu/momentu
Events.hs
module GUI.Momentu.Main.Events ( Event(..), KeyEvent(..), MouseButtonEvent(..) ) where import Data.Vector.Vector2 (Vector2(..)) import GUI.Momentu.ModKey (Key, KeyState, ModifierKeys) import qualified Graphics.UI.GLFW as GLFW import Prelude data KeyEvent = KeyEvent { keKey :...
null
https://raw.githubusercontent.com/lamdu/momentu/7ba3c75469cfbad521d446e2bbefee1ed69d4406/src/GUI/Momentu/Main/Events.hs
haskell
^ Position in frame buffer coordinates, which may not be the same as "window coordinates" ^ Position in "window coordinates". Since "retina" displays were introduced, window coordindates no longer relate to graphical pixels.
module GUI.Momentu.Main.Events ( Event(..), KeyEvent(..), MouseButtonEvent(..) ) where import Data.Vector.Vector2 (Vector2(..)) import GUI.Momentu.ModKey (Key, KeyState, ModifierKeys) import qualified Graphics.UI.GLFW as GLFW import Prelude data KeyEvent = KeyEvent { keKey :...
2515bf42e9b45053768f1e908e3548d93f3b8d794328db8be5ccca030b1e1392
propan/geheimtur-demo
service.clj
(ns geheimtur-demo.service (:require [io.pedestal.http :as http] [io.pedestal.http.route :as route] [io.pedestal.http.body-params :as body-params] [io.pedestal.interceptor :as interceptor] [io.pedestal.log :as log] [geheimtur.interceptor :refer [interactive ...
null
https://raw.githubusercontent.com/propan/geheimtur-demo/55bf863880739b7b262e0a19666a58be768a1b3a/src/geheimtur_demo/service.clj
clojure
it is not really needed but serves as an example of how to use a custom parser
(ns geheimtur-demo.service (:require [io.pedestal.http :as http] [io.pedestal.http.route :as route] [io.pedestal.http.body-params :as body-params] [io.pedestal.interceptor :as interceptor] [io.pedestal.log :as log] [geheimtur.interceptor :refer [interactive ...
e163bb4f695816f06b58ae81e33822aa9851e57e1aa2b0276eb3f2e62382a911
antoniogarrote/clojure-grizzly-trial
xsd.clj
(comment "XML Schema vocabulary" ) (ns com.agh.webserver.framework.persistence.rdf.vocabularies.xsd) (use 'com.agh.webserver.framework.persistence.rdf) (defmethod rdf-ns :xsd [x] "XMLSchema namespace: #" (struct uri "#" :xsd)) (defn xsd-string [] (build-uri (rdf-ns :xsd) "string")) (defn xsd-float [] (bu...
null
https://raw.githubusercontent.com/antoniogarrote/clojure-grizzly-trial/9282179818cc5247b796dd6eb9ab6ccb721100a3/com/agh/webserver/framework/persistence/rdf/vocabularies/xsd.clj
clojure
to-rdf conversions
(comment "XML Schema vocabulary" ) (ns com.agh.webserver.framework.persistence.rdf.vocabularies.xsd) (use 'com.agh.webserver.framework.persistence.rdf) (defmethod rdf-ns :xsd [x] "XMLSchema namespace: #" (struct uri "#" :xsd)) (defn xsd-string [] (build-uri (rdf-ns :xsd) "string")) (defn xsd-float [] (bu...
f37033c8d5c64ab5a5a1aa07b328c43489b53c77efe5b4bef13e3fa076a7c89c
broadinstitute/wfl
aou.clj
(ns wfl.module.aou "Process Arrays for the All Of Us project." (:require [clojure.spec.alpha :as s] [clojure.string :as str] [wfl.api.workloads :as workloads :refer [defoverload]] [wfl.jdbc :as jdbc] [wfl.log :as log] [w...
null
https://raw.githubusercontent.com/broadinstitute/wfl/ca30908a6b62aa3ea8e5e15c3b410263d0173ee9/api/src/wfl/module/aou.clj
clojure
specs genotype concordance inputs Update the workload table row with the name of the AllOfUsArrays table. -numeric.html#DATATYPE-SERIAL coerce java.util.UUID -> string
(ns wfl.module.aou "Process Arrays for the All Of Us project." (:require [clojure.spec.alpha :as s] [clojure.string :as str] [wfl.api.workloads :as workloads :refer [defoverload]] [wfl.jdbc :as jdbc] [wfl.log :as log] [w...
8b97456d903e69079de9b3b012adf62c4fe2a6b5d5cb76739b3b2a6c1105de62
CodyReichert/qi
tests.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;; ;;; tests.lisp --- trivial-garbage tests. ;;; This software is placed in the public domain by ;;; <> and is provided with absolutely no ;;; warranty. (defpackage #:trivial-garbage-tests (:use #:cl #:trivial-garbage #:regression-test) (:nicknames #:tg-tests) ...
null
https://raw.githubusercontent.com/CodyReichert/qi/9cf6d31f40e19f4a7f60891ef7c8c0381ccac66f/dependencies/trivial-garbage-latest/tests.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- tests.lisp --- trivial-garbage tests. <> and is provided with absolutely no warranty. Weak Pointers Weak Hashtables Finalizers These tests are, of course, not very reliable. I don't really understand this, but it seems to work, and stems from the observation that t...
This software is placed in the public domain by (defpackage #:trivial-garbage-tests (:use #:cl #:trivial-garbage #:regression-test) (:nicknames #:tg-tests) (:export #:run)) (in-package #:trivial-garbage-tests) (defun run () (let ((*package* (find-package :trivial-garbage-tests))) (do-tests) (null...
347cd887569f468877938a9ced44bb4a9d2f889047d99eb4e30e9f937fdb5fc0
ocamllabs/ocaml-modular-implicits
t19ok.ml
PR 4758 , PR 4266 module PR_4758 = struct module type S = sig end module type Mod = sig module Other : S end module rec A : S = struct end and C : sig include Mod with module Other = A end = struct module Other = A end module C' = C (* check that we can take an alias *) module F(X:sig end) =...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/testsuite/tests/typing-recmod/t19ok.ml
ocaml
check that we can take an alias
PR 4758 , PR 4266 module PR_4758 = struct module type S = sig end module type Mod = sig module Other : S end module rec A : S = struct end and C : sig include Mod with module Other = A end = struct module Other = A end module F(X:sig end) = struct type t end let f (x : F(C).t) = (x : F(C').t)...
ee23d396dc5e06ca1fc68bc070de7df0413b25ec4956f08474bccf937d3f9bb7
qfpl/reflex-workshop
Fmap.hs
| Copyright : ( c ) 2018 , Commonwealth Scientific and Industrial Research Organisation License : : Stability : experimental Portability : non - portable Copyright : (c) 2018, Commonwealth Scientific and Industrial Research Organisation License : BSD3 Maintainer : Stability : experi...
null
https://raw.githubusercontent.com/qfpl/reflex-workshop/244ef13fb4b2e884f455eccc50072e98d1668c9e/src/Solutions/Behaviors/Instances/Fmap.hs
haskell
| Copyright : ( c ) 2018 , Commonwealth Scientific and Industrial Research Organisation License : : Stability : experimental Portability : non - portable Copyright : (c) 2018, Commonwealth Scientific and Industrial Research Organisation License : BSD3 Maintainer : Stability : experi...
95529ae660de8eaa1ead2d08e58f5de49e7434aef2dd8540e2ed8e0ca8fd5a3a
acieroid/scala-am
pcounter4.scm
(letrec ((counter 0) (thread (lambda (n) (letrec ((old counter) (new (+ old 1))) (if (cas counter old new) #t (thread n))))) (t1 (fork (thread 1))) (t2 (fork (thread 2))) (t3 (fork (thread 3)))...
null
https://raw.githubusercontent.com/acieroid/scala-am/13ef3befbfc664b77f31f56847c30d60f4ee7dfe/test/concurrentScheme/threads/variations/pcounter4.scm
scheme
(letrec ((counter 0) (thread (lambda (n) (letrec ((old counter) (new (+ old 1))) (if (cas counter old new) #t (thread n))))) (t1 (fork (thread 1))) (t2 (fork (thread 2))) (t3 (fork (thread 3)))...
6150f9ac4af661d8618dc48da35ad55d2f48b5cdd49b8d6c4e15f1d20bf5c307
sigscale/radierl
radius_example_accounting_SUITE.erl
%%%--------------------------------------------------------------------- 2016 - 2017 SigScale Global Inc @author < > [ ] %%% @end %%% Copyright ( c ) 2016 - 2017 , SigScale Global Inc %%% %%% All rights reserved. %%% %%% Redistribution and use in source and binary forms, with or without %%% modification, a...
null
https://raw.githubusercontent.com/sigscale/radierl/2d0b70e7c7d001cc07d31859385904d72e8a5a20/examples/test/radius_example_accounting_SUITE.erl
erlang
--------------------------------------------------------------------- @end All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright ...
2016 - 2017 SigScale Global Inc @author < > [ ] Copyright ( c ) 2016 - 2017 , SigScale Global Inc - Neither the name of SigScale Global Inc nor the names of its " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT OWNER OR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLA...
b4e22f4e5479f17a30dfe217cb6b26dd6254bb65df2835352481983015f1a404
clj-commons/seesaw
keystroke.clj
Copyright ( c ) , 2011 . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this ; distribution. ; By using this software in any fashion, you are agreeing to be ...
null
https://raw.githubusercontent.com/clj-commons/seesaw/4ca89d0dcdf0557d99d5fa84202b7cc6e2e92263/test/seesaw/test/keystroke.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not rem...
Copyright ( c ) , 2011 . All rights reserved . (ns seesaw.test.keystroke (:use seesaw.keystroke) (:use [lazytest.describe :only (describe it testing)] [lazytest.expect :only (expect)]) (:import [javax.swing KeyStroke] [java.awt Toolkit])) (describe keystroke (it "creates a keystroke f...
f00a36ec3e19abfb56ad9a8a3ef640c0f35d2b6d0104b7298df82249f34ec12d
robdockins/edison
Defaults.hs
-- | -- Module : Data.Edison.Seq.Defaults Copyright : Copyright ( c ) 1998 , 2008 License : MIT ; see COPYRIGHT file for terms and conditions -- Maintainer : robdockins AT fastmail DOT fm -- Stability : internal (unstable) Portability : GHC , Hugs ( MPTC and FD ) -- -- ...
null
https://raw.githubusercontent.com/robdockins/edison/e9024cc5b9c4cf6b59d33baf7564e509366c79da/edison-core/src/Data/Edison/Seq/Defaults.hs
haskell
| Module : Data.Edison.Seq.Defaults Stability : internal (unstable) This module provides default implementations of many of the sequence operations. It is used to fill in implementations and is not intended for end users. XXX better error message! insertAtUsingLists :: Sequence s => Int ->...
Copyright : Copyright ( c ) 1998 , 2008 License : MIT ; see COPYRIGHT file for terms and conditions Maintainer : robdockins AT fastmail DOT fm Portability : GHC , Hugs ( MPTC and FD ) module Data.Edison.Seq.Defaults where import Prelude hiding (concat,reverse,map,concatMap,foldr,fo...
4c2898c5b7766ccbc8b309743c1f6917757695773188ff372f67bd9873e088ce
jrm-code-project/LISP-Machine
dvi-macros.lisp
-*- Mode : LISP ; Syntax : ; Package : DVI ; Base : 10 -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Buffer I/O routines ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (eval-when (eval compile load) (defmacro bpeek-byte (buff) `(aref ,buff (fill-pointer ,buff))) return the next 8 bits from the...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/gjc/dvi/dvi-macros.lisp
lisp
Syntax : ; Package : DVI ; Base : 10 -*- Buffer I/O routines stream Binary file I/O routines stream handler for eof? go to the end of the file. go forward n bytes, n can be negative move back the dvi file by n pages get rid of c0 to c9 params subroutines for unit conversions. compute the number of pixe...
(eval-when (eval compile load) (defmacro bpeek-byte (buff) `(aref ,buff (fill-pointer ,buff))) return the next 8 bits from the input `(progn (incf (fill-pointer ,buff)) (aref ,buff (1- (fill-pointer ,buff))))) (defmacro bget-signed-byte (buff) `(let ((b (bget-byte ,buff))) (if (< b 128) b (- ...
4d3e51680ba8254d4f9920ad69173127e117ad1b6af3639beda046e903affdd6
tiensonqin/lymchat
channel.clj
(ns api.db.channel (:refer-clojure :exclude [get update]) (:require [clojure.java.jdbc :as j] [api.db.util :refer [with-now in-placeholders] :as util] [api.util :refer [flake-id]] [api.db.user :as user] [taoensso.carmine :as car] [api.util :refer [wcar*]] ...
null
https://raw.githubusercontent.com/tiensonqin/lymchat/824026607d30c12bc50afb06f677d1fa95ff1f2f/api/src/api/db/channel.clj
clojure
(ns api.db.channel (:refer-clojure :exclude [get update]) (:require [clojure.java.jdbc :as j] [api.db.util :refer [with-now in-placeholders] :as util] [api.util :refer [flake-id]] [api.db.user :as user] [taoensso.carmine :as car] [api.util :refer [wcar*]] ...
4b638233786d6605c9aef4b7aa95d3d39a84aa54cb920bfb0ab06787a05ec72a
jepsen-io/maelstrom
unique_ids.clj
(ns maelstrom.workload.unique-ids "A simple workload for ID generation systems. Clients ask servers to generate an ID, and the server should respond with an ID. The test verifies that those IDs are globally unique. Your node will receive a request body like: ```json {\"type\": \"generate\", \"msg_id\":...
null
https://raw.githubusercontent.com/jepsen-io/maelstrom/857ce8df26d88cfe9182c5603a77f288023dcca1/src/maelstrom/workload/unique_ids.clj
clojure
(ns maelstrom.workload.unique-ids "A simple workload for ID generation systems. Clients ask servers to generate an ID, and the server should respond with an ID. The test verifies that those IDs are globally unique. Your node will receive a request body like: ```json {\"type\": \"generate\", \"msg_id\":...
c116c79555aa9535ceb346b4c676507656b38e2c05a4cd5306425a3ba1aa1d51
dundalek/closh
cmd2.cljc
(defcmd my-hello [x] (println (str "Hello " x))) my-hello World
null
https://raw.githubusercontent.com/dundalek/closh/b1a7fd310b6511048fbacb8e496f574c8ccfa291/fixtures/script-mode-tests/cmd2.cljc
clojure
(defcmd my-hello [x] (println (str "Hello " x))) my-hello World
7e660cb5c5035f745aa4e9d7951124750e4c3d4c22de68a5fb101ed52a6d766f
ryanpbrewster/haskell
shortest_anagram_subsequence.hs
-- shortest_anagram_subsequence.hs Given a little string , L , and a big string , B , find the smallest substring of B , s , such that s contains an anagram of L. Put another way , find the smallest substring of B , s , such that for every character c in L , L.count(c ) = = s.count(c ) Given a little string, L,...
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/hello-world/shortest_anagram_subsequence.hs
haskell
shortest_anagram_subsequence.hs
Given a little string , L , and a big string , B , find the smallest substring of B , s , such that s contains an anagram of L. Put another way , find the smallest substring of B , s , such that for every character c in L , L.count(c ) = = s.count(c ) Given a little string, L, and a big string, B, find the smal...
4dee9291b28842a9cdb9c3aa98517f13ff37e87be42fedf80ba48b3dbed44f9f
softlab-ntua/bencherl
scheduling_multiple_coupled_erratic_actors_test.erl
Copyright ( C ) 2008 - 2014 EDF R&D This file is part of Sim - Diasca . Sim - Diasca is free software : you can redistribute it and/or modify % it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) a...
null
https://raw.githubusercontent.com/softlab-ntua/bencherl/317bdbf348def0b2f9ed32cb6621e21083b7e0ca/app/sim-diasca/sim-diasca/src/core/src/scheduling/tests/scheduling_multiple_coupled_erratic_actors_test.erl
erlang
it under the terms of the GNU Lesser General Public License as but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the If not, see </>. Overall unit test of the Sim-Diasca deployment and scheduling framework. For all facilities common to all tes...
Copyright ( C ) 2008 - 2014 EDF R&D This file is part of Sim - Diasca . Sim - Diasca is free software : you can redistribute it and/or modify published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later version . Sim - Diasca is distributed in the hope tha...
03ef9f6f4c003b74ee67e41caca8bd0367c032e975b8119e0814b4ae9b0ffb1d
jrh13/hol-light
make.ml
(* ========================================================================= *) Elliptic curves of various forms and specific ones for cryptography . (* ========================================================================= *) needs "Library/pocklington.ml";; needs "Library/primitive.ml";; needs "Library/gr...
null
https://raw.githubusercontent.com/jrh13/hol-light/1bf0ddf9113e491793774d71116fd498d80dc866/EC/make.ml
ocaml
========================================================================= ========================================================================= ------------------------------------------------------------------------- A few extras to support all the curve proofs. ---------------...
Elliptic curves of various forms and specific ones for cryptography . needs "Library/pocklington.ml";; needs "Library/primitive.ml";; needs "Library/grouptheory.ml";; needs "Library/ringtheory.ml";; loadt "EC/misc.ml";; Short Weierstrass , Montgomery and curves ( independently ) . loadt "EC/wei...
0a4a47a3d46e1f0edf17d94bf1d5c708db3e118dd22eba4491c68494ce0e4a49
ghc/ghc
T21843e.hs
module UnicodeSmartQuotes where badString = "\”"
null
https://raw.githubusercontent.com/ghc/ghc/b0ac38133767a8ca7de63112f39436241ff435a0/testsuite/tests/parser/should_fail/T21843e.hs
haskell
module UnicodeSmartQuotes where badString = "\”"
f35d242e2fc05d821ed2317fe88983c85fb367fc2ed3e4b22162f47d6a3ecf42
rurban/clisp
should-symbol.lisp
Copyright ( C ) 2002 - 2004 , < > ;; ALL RIGHTS RESERVED. ;; $ I d : should - symbol.lisp , v 1.7 2004/02/20 07:23:42 yuji Exp $ ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions ;; are met: ;; ;; * Redistributions of s...
null
https://raw.githubusercontent.com/rurban/clisp/75ed2995ff8f5364bcc18727cde9438cca4e7c2c/sacla-tests/should-symbol.lisp
lisp
ALL RIGHTS RESERVED. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributi...
Copyright ( C ) 2002 - 2004 , < > $ I d : should - symbol.lisp , v 1.7 2004/02/20 07:23:42 yuji Exp $ " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT OWNER OR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT THEORY OF LIAB...
872b4991e35f5e27cbc724b5165deddf392290abcf08bbc55bd5745ac45f1fee
haslab/HAAP
CollisionSimulator.hs
# LANGUAGE ScopedTypeVariables # module Main where import JSImages import LI11718 import qualified Tarefa3_2017li1g183 as T3 import System.Environment import Data.Maybe import Data.List as List import qualified Data.Text as Text import Text.Read import Control.Monad import Control.Exception import GHC.Float impo...
null
https://raw.githubusercontent.com/haslab/HAAP/5acf9efaf0e5f6cba1c2482e51bda703f405a86f/examples/plab/svn/2017li1g183/src/CollisionSimulator.hs
haskell
going right going left geometry copiado do Gloss para Double copiado do Gloss para Double copiado do Gloss para Double Color ( ) $ Polygon [ ( 0,-tamBloco e),(0,0),(tamBloco e,0),(tamBloco e,-tamBloco e ) ] Color ( ) $ Polygon [ ( 0,0),(tamBloco e,0),(tamBloco e,-tamBloco e ) ] Color ( ) $ Polygon [ ( 0,-t...
# LANGUAGE ScopedTypeVariables # module Main where import JSImages import LI11718 import qualified Tarefa3_2017li1g183 as T3 import System.Environment import Data.Maybe import Data.List as List import qualified Data.Text as Text import Text.Read import Control.Monad import Control.Exception import GHC.Float impo...
be11958a7ec1382c0b7f088a607dd15d330512e3e8567c29810293f70cb4a806
PapenfussLab/bioshake
Platypus.hs
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE TemplateHaskell # {-# LANGUAGE ViewPatterns #-} module Bioshake.Internal.Platypus where import Bioshake import Bioshake.TH import Control.Monad import Control.Monad.Trans (lift) import ...
null
https://raw.githubusercontent.com/PapenfussLab/bioshake/afeb7219b171e242b6e9bb9e99e2f80c0a099aff/Bioshake/Internal/Platypus.hs
haskell
# LANGUAGE ViewPatterns #
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE TemplateHaskell # module Bioshake.Internal.Platypus where import Bioshake import Bioshake.TH import Control.Monad import Control.Monad.Trans (lift) import Data.List import Dev...
053ccf26f67996cb741177c4edbb8065ee126f584941b4d1c3f469292695f4db
heyarne/airsonic-ui
subs.cljs
(ns airsonic-ui.subs (:require [re-frame.core :refer [reg-sub subscribe]] [airsonic-ui.api.helpers :as api] [airsonic-ui.helpers :refer [kebabify]] [clojure.string :as str])) ;; ;; app initialization ;; ;; TODO: Computation and extaction is mixed; this could be simpler (defn- er...
null
https://raw.githubusercontent.com/heyarne/airsonic-ui/7adb03d6e2ba0ff764796a57b7e87f62b242c9b7/src/cljs/airsonic_ui/subs.cljs
clojure
app initialization TODO: Computation and extaction is mixed; this could be simpler so either we don't have any credentials or they are not verified --- user info and roles --- this isn't cached like the --- misc --- user notifications
(ns airsonic-ui.subs (:require [re-frame.core :refer [reg-sub subscribe]] [airsonic-ui.api.helpers :as api] [airsonic-ui.helpers :refer [kebabify]] [clojure.string :as str])) (defn- error-notifications [notifications] (filter (fn [[_ n]] (= :error (:level n))) noti...
8541953f5967bbd5d7e7d8fe3f570c58ca665683e1c343ff54e016ac2bc35e17
dparis/gen-phzr
sprite_batch.cljs
(ns phzr.impl.accessors.sprite-batch) (def sprite-batch-get-properties {:alive "alive" :alpha "alpha" :angle "angle" :cache-as-bitmap "cacheAsBitmap" :camera-offset "cameraOffset" :children "children" :class-type "classType" :cursor "cursor" :cursor-index "cursorIndex" :enable-body "enable...
null
https://raw.githubusercontent.com/dparis/gen-phzr/e4c7b272e225ac343718dc15fc84f5f0dce68023/out/impl/accessors/sprite_batch.cljs
clojure
(ns phzr.impl.accessors.sprite-batch) (def sprite-batch-get-properties {:alive "alive" :alpha "alpha" :angle "angle" :cache-as-bitmap "cacheAsBitmap" :camera-offset "cameraOffset" :children "children" :class-type "classType" :cursor "cursor" :cursor-index "cursorIndex" :enable-body "enable...
7f0e1a6476072bf12e4ad59f6b90c40ee8ea76220480d670f98f24334a91f85b
RichiH/git-annex
TransferrerPool.hs
A pool of " git - annex transferkeys " processes - - Copyright 2013 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2013 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Assistant.TransferrerPool where import Assistant.Common import Assistant.T...
null
https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Assistant/TransferrerPool.hs
haskell
It runs as a batch job. It's put into its own group so that the whole group can be - killed to stop a transfer. Closing the fds will stop the transferrer.
A pool of " git - annex transferkeys " processes - - Copyright 2013 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2013 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Assistant.TransferrerPool where import Assistant.Common import Assistant.T...
92054b3cec692f682b3caf99af117fb88cf79b81b1d1eee7094262e260e6982a
icicle-lang/icicle-ambiata
Fact.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # # LANGUAGE DeriveGeneric # {-# LANGUAGE DeriveTraversable #-} # LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} module Icicle.Data.Fact ( Entity(..) , Fact(..) , Fact'(..) , AsAt(..) ...
null
https://raw.githubusercontent.com/icicle-lang/icicle-ambiata/9b9cc45a75f66603007e4db7e5f3ba908cae2df2/icicle-data/src/Icicle/Data/Fact.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE DeriveTraversable # # LANGUAGE OverloadedStrings # ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------...
# LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # # LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # module Icicle.Data.Fact ( Entity(..) , Fact(..) , Fact'(..) , AsAt(..) , Value(..) , Struct(..) , List(..) , Encoding(..) , StructField(..) , StructFieldType(..)...
52afa6e3c8b5a42b649b5cef7fca6c81f667432a52ead325f92dc07eda456d4b
cedlemo/OCaml-GI-ctypes-bindings-generator
Gesture_rotate.mli
open Ctypes type t val t_typ : t typ val create : Widget.t ptr -> Gesture.t ptr val get_angle_delta : t -> float
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Gesture_rotate.mli
ocaml
open Ctypes type t val t_typ : t typ val create : Widget.t ptr -> Gesture.t ptr val get_angle_delta : t -> float
e5c262ff9cc2750d1b651b8751500a665ab4997ed0e78d07f18b4a9b1a644d68
bootstrapworld/curr
backmatterlist-sols.rkt
; This file specifies the pages that make up the unnumbered backmatter ; for the workbook for the course containing this resources/workbook directory. ; This list should contain names of .pdf files that are in the pages directory. ; Each list element must include a .pdf extension. ; The backmatter will be generated ...
null
https://raw.githubusercontent.com/bootstrapworld/curr/443015255eacc1c902a29978df0e3e8e8f3b9430/courses/algebra/resources/workbook/langs/es-mx/backmatterlist-sols.rkt
racket
This file specifies the pages that make up the unnumbered backmatter for the workbook for the course containing this resources/workbook directory. This list should contain names of .pdf files that are in the pages directory. Each list element must include a .pdf extension. The backmatter will be generated from th...
("Contracts-Sols.pdf" )
da3ef102f0db337184dbfffa148591ec56c774dd2bd9cb212256a06bee22d609
samrushing/irken-compiler
f_match5.scm
(define (eq? a b) (%%cexp ('a 'a -> bool) "%0==%1" a b)) (define (error x) (%%cexp (-> 'a) "goto Lreturn") (%%cexp (-> 'a) "IRK_UNDEFINED") ) ;; without a default case this should raise a match error (define flip 0 -> 1 1 -> 0 ;; x -> (error "flipped out!") ) (flip 0)
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/tests/f_match5.scm
scheme
without a default case this should raise a match error x -> (error "flipped out!")
(define (eq? a b) (%%cexp ('a 'a -> bool) "%0==%1" a b)) (define (error x) (%%cexp (-> 'a) "goto Lreturn") (%%cexp (-> 'a) "IRK_UNDEFINED") ) (define flip 0 -> 1 1 -> 0 ) (flip 0)
2d55a25e6d58b357bb110cf8f9a825a116ffd892355ca3962f77fc788401fe6d
PLTools/GT
test014.ml
@type a = A of b | C of GT.int GT.list with show and b = B of c | D of GT.string with show and c = E of a with show class show_a_new ((_,fb,_) as prereq) = object inherit [_] @a[show] prereq as super method! c_C () x y = "new " ^ super#c_C () x y method! c_A () _ x = "new A " ^ (fb () x) end let s...
null
https://raw.githubusercontent.com/PLTools/GT/62d1a424a3336f2317ba67e447a9ff09d179b583/regression/test014.ml
ocaml
@type a = A of b | C of GT.int GT.list with show and b = B of c | D of GT.string with show and c = E of a with show class show_a_new ((_,fb,_) as prereq) = object inherit [_] @a[show] prereq as super method! c_C () x y = "new " ^ super#c_C () x y method! c_A () _ x = "new A " ^ (fb () x) end let s...
1918d8b1fd932d31d1429f2024c5c32e6ce6c47fa036956a4eba1cb4e8bc2065
CorticalComputer/Flatland
actuator.erl
This source code and work is provided and developed by DXNN Research Group WWW.DXNNResearch . COM %% Copyright ( C ) 2012 by , DXNN Research Group , %All rights reserved. % This code is licensed under the version 3 of the GNU General Public License . Please see the LICENSE file that accompanies this project for th...
null
https://raw.githubusercontent.com/CorticalComputer/Flatland/e96378ee0c71d4269e21baaa26c9c4e17d87bf6c/actuator.erl
erlang
All rights reserved. io:format("Actuator:~p is terminating.~n",[self()]) ACTUATORS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
This source code and work is provided and developed by DXNN Research Group WWW.DXNNResearch . COM Copyright ( C ) 2012 by , DXNN Research Group , This code is licensed under the version 3 of the GNU General Public License . Please see the LICENSE file that accompanies this project for the terms of use . -module(a...
f03fc5a4f9e9f8ce5dea59208c84eee9060a740b75b8844d9c8a0a87bdf457db
kappelmann/engaging-large-scale-functional-programming
Exercise02.hs
module Exercise02 where import Data.List(sort) startupRevenue :: [Int] -> Int startupRevenue ns= revenueRec l (sort ns) where l = length ns revenueRec _ [] = 0 revenueRec l (x:xs) = let next = revenueRec (l-1) xs in if x*l > next then x*l else next
null
https://raw.githubusercontent.com/kappelmann/engaging-large-scale-functional-programming/8ed2c056fbd611f1531230648497cb5436d489e4/resources/contest/example_data/02/uploads/szczebrzeszynskadruzyna/Exercise02.hs
haskell
module Exercise02 where import Data.List(sort) startupRevenue :: [Int] -> Int startupRevenue ns= revenueRec l (sort ns) where l = length ns revenueRec _ [] = 0 revenueRec l (x:xs) = let next = revenueRec (l-1) xs in if x*l > next then x*l else next
7995935ce805c4bd1f08be7298cb9bce5d16088c270c381e80acc339d7538548
softlab-ntua/bencherl
trigger_beh.erl
2009 - 2011 Zuse Institute 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 in writing, software di...
null
https://raw.githubusercontent.com/softlab-ntua/bencherl/317bdbf348def0b2f9ed32cb6621e21083b7e0ca/app/scalaris/src/trigger_beh.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 gov...
2009 - 2011 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > @version $ I d : trigger_beh.erl 2639 2012 - 01 - 03 15:00:45Z $ -module(trigger_beh). -author(''). -vsn('$Id: tri...
2b4fdde4d0e8184648bcefa7c121e58c76634739e77e02e724c47e1d41561aa7
dhess/hpio
Types.hs
| Module : System . GPIO.Linux . . Types Description : Types for Linux @sysfs@ GPIO Copyright : ( c ) 2019 , License : : < > Stability : experimental Portability : non - portable Types used by the various Linux @sysfs@ GPIO implementations . Module : System.GPIO.Linux....
null
https://raw.githubusercontent.com/dhess/hpio/27004ef379db5d35e240222d6ba4cf91da9ec14d/src/System/GPIO/Linux/Sysfs/Types.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE Safe # * @sysfs@-specific types * Exceptions represents the values that the @edge@ attribute can take. This type is isomorphic to the 'PinInterruptMode' type. See 'toPinInterruptMode' and 'toSysfsEdge'. ^ Interrupts disabled ^ Interrupt on the (logical) signal's risin...
| Module : System . GPIO.Linux . . Types Description : Types for Linux @sysfs@ GPIO Copyright : ( c ) 2019 , License : : < > Stability : experimental Portability : non - portable Types used by the various Linux @sysfs@ GPIO implementations . Module : System.GPIO.Linux....
63e1cfb73b8323a329b568a020d8441b17862bc30d4bc207f4f4c2e3b8832e97
haskell/zlib
Utils.hs
# OPTIONS_GHC -fno - warn - orphans # module Utils where import qualified Data.ByteString.Lazy as BL import qualified Data.ByteString as BS import Test.QuickCheck ------------------- -- QuickCheck Utils maxStrSize :: Double maxStrSize = 500 -- convert a QC size parameter into one for generating long lists, --...
null
https://raw.githubusercontent.com/haskell/zlib/7fe9bd49c28be0b5b523e7e78a91638ecea4d28d/test/Utils.hs
haskell
----------------- QuickCheck Utils convert a QC size parameter into one for generating long lists, growing inverse exponentially up to maxStrSize
# OPTIONS_GHC -fno - warn - orphans # module Utils where import qualified Data.ByteString.Lazy as BL import qualified Data.ByteString as BS import Test.QuickCheck maxStrSize :: Double maxStrSize = 500 strSize :: Int -> Int strSize n = floor (maxStrSize * (1 - 2 ** (-fromIntegral n/100))) instance Arbitrary B...
f1c103898b0ec00d49877e383663823132bd5a36e98942c64d5a28821092ee4e
pink-gorilla/notebook
completion.cljs
(ns demo.views.completion (:require [taoensso.timbre :refer-macros [info]] [re-frame.core :as rf] [pinkgorilla.notebook-ui.completion.component :refer [completion-component]])) (rf/reg-event-db :nrepl/completion-demo (fn [db [_]] (assoc-in db [:completion] {:docstring "clojure.core/doseq\...
null
https://raw.githubusercontent.com/pink-gorilla/notebook/26c33706987cdc8ef2a5447c0ae892eb359731a0/profiles/webly/src/demo/views/completion.cljs
clojure
(ns demo.views.completion (:require [taoensso.timbre :refer-macros [info]] [re-frame.core :as rf] [pinkgorilla.notebook-ui.completion.component :refer [completion-component]])) (rf/reg-event-db :nrepl/completion-demo (fn [db [_]] (assoc-in db [:completion] {:docstring "clojure.core/doseq\...
b2470cb0140cfbcd2d6260a223b0d840815303928042628ef455ba229c2466e6
ds-wizard/engine-backend
DocumentCreateDTO.hs
module Wizard.Api.Resource.Document.DocumentCreateDTO where import qualified Data.UUID as U import GHC.Generics data DocumentCreateDTO = DocumentCreateDTO { name :: String , questionnaireUuid :: U.UUID , questionnaireEventUuid :: Maybe U.UUID , documentTemplateId :: String , formatUuid :: U.UUID } deriv...
null
https://raw.githubusercontent.com/ds-wizard/engine-backend/d392b751192a646064305d3534c57becaa229f28/engine-wizard/src/Wizard/Api/Resource/Document/DocumentCreateDTO.hs
haskell
module Wizard.Api.Resource.Document.DocumentCreateDTO where import qualified Data.UUID as U import GHC.Generics data DocumentCreateDTO = DocumentCreateDTO { name :: String , questionnaireUuid :: U.UUID , questionnaireEventUuid :: Maybe U.UUID , documentTemplateId :: String , formatUuid :: U.UUID } deriv...
757f222a8372438aeb741e72b586da00184b5ab702c2342abc2be5d76c239b8a
facebook/pyre-check
functionDefinition.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/pyre-check/98b8362ffa5c715c708676c1a37a52647ce79fe0/source/analysis/functionDefinition.ml
ocaml
TODO(T132410158) Add a module-level doc comment. Last definition wins -- collector returns functions in reverse order Take into account module toplevel
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
c9d5f18fdfa596494336fe0d6b0822861db93a073b8ee680d35978bb825d216b
elm/package.elm-lang.org
Migrate.hs
# OPTIONS_GHC -Wall # {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE OverloadedStrings #-} module Main where import Control.Monad (forM_) import Control.Monad.Trans (liftIO) import qualified Data.Set as Set import System.Console.CmdArgs import qualified System.Directory as Dir import qualified Crawl import qualifie...
null
https://raw.githubusercontent.com/elm/package.elm-lang.org/d4d5a997a5d9d6622694c488e6a3ae9f537da761/migration/Migrate.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE OverloadedStrings # MAIN PROBLEM PACKAGES crazy module name in docs deleted deleted deleted deleted deleted too weird deleted missing tags / why fork? deleted deleted deleted deleted missing tags / why fork? deleted deleted deleted deleted deprecated / -la...
# OPTIONS_GHC -Wall # module Main where import Control.Monad (forM_) import Control.Monad.Trans (liftIO) import qualified Data.Set as Set import System.Console.CmdArgs import qualified System.Directory as Dir import qualified Crawl import qualified Elm.Package as Pkg import qualified GetDates as Dates import qualifie...
564257d281558b7598ceaf410ec953bd9cf1fb0c3080e83b4fb2d8a1a261cc5c
haskell-repa/repa
Object.hs
# LANGUAGE UndecidableInstances # module Data.Repa.Convert.Format.Object ( Object (..) , ObjectFormat , ObjectFields , Field (..) , mkObject) where import Data.Repa.Convert.Internal.Format import Data.Repa.Convert.Internal.Packable import Data.Repa.Convert.Internal...
null
https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/repa-convert/Data/Repa/Convert/Format/Object.hs
haskell
| Format of a simple object format with labeled fields. | Resents the fields of a JSON object. Name of head field Format of head field. Predicate to determine whether to emit value. | Length of this format, in fields. | Minimum length of this format, in bytes. | Fixed size of this format. ----------------------...
# LANGUAGE UndecidableInstances # module Data.Repa.Convert.Format.Object ( Object (..) , ObjectFormat , ObjectFields , Field (..) , mkObject) where import Data.Repa.Convert.Internal.Format import Data.Repa.Convert.Internal.Packable import Data.Repa.Convert.Internal...
3a3b3fc542f09dafbaba54fe06a45ad03d6fbbffaa00586a362f10d4f256b784
egonSchiele/dominion
Internal.hs
module Dominion.Internal ( -- | Note: You shouldn't need to import this module...the interesting functions are re - exported by the Dominion module . -- -- Use any other functions in here at your own risk. module Dominion.Internal ) where import Control.Applicative import Control.Arrow im...
null
https://raw.githubusercontent.com/egonSchiele/dominion/a4b7300f2e445da5e7cfcc1cf9029243a3561ed6/src/Dominion/Internal.hs
haskell
| Note: You shouldn't need to import this module...the Use any other functions in here at your own risk. | see all of the cards in a player's hand. > cards <- currentHand playerId | see if a player has a card in his hand. > hasCard <- playerId `has` chapel | see how many of this card a player has. > numMark...
module Dominion.Internal ( interesting functions are re - exported by the Dominion module . module Dominion.Internal ) where import Control.Applicative import Control.Arrow import Control.Lens hiding (has, indices) import Control.Monad (liftM) import C...
7bb375f7d5360d54f00d86fc52b431e045285ceb8c408b2e774dca5e06891e02
adrieng/pulsar
parse.ml
This file is part of Pulsar , a temporal functional language . * Copyright ( C ) 2017 * * 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 , or ...
null
https://raw.githubusercontent.com/adrieng/pulsar/c3901388659d9c7978b04dce0815e3ff9aea1a0c/pulsar-lib/parse.ml
ocaml
This file is part of Pulsar , a temporal functional language . * Copyright ( C ) 2017 * * 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 , or ...
6b0e994ffd7f6dc171b06bd250dee3f7b77002b9b639c1c425c8dca28d54796d
grin-compiler/ghc-wpc-sample-programs
SemiRing.hs
module Agda.Utils.SemiRing where -- | Semirings (<>). class SemiRing a where ozero :: a oone :: a oplus :: a -> a -> a otimes :: a -> a -> a instance SemiRing () where ozero = () oone = () oplus _ _ = () otimes _ _ = () instance SemiRing a => SemiRing (Maybe a) where ozero = Nothin...
null
https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/Agda-2.6.1/src/full/Agda/Utils/SemiRing.hs
haskell
| Semirings (<>). | Star semirings (<#Star_semirings>).
module Agda.Utils.SemiRing where class SemiRing a where ozero :: a oone :: a oplus :: a -> a -> a otimes :: a -> a -> a instance SemiRing () where ozero = () oone = () oplus _ _ = () otimes _ _ = () instance SemiRing a => SemiRing (Maybe a) where ozero = Nothing oone = Just oone...
8a1d231a0d8c845d084438d853b29ea6bcf8a231e1c456f735f80db4efbcf5df
irastypain/sicp-on-language-racket
test_exercise_2_09.rkt
#lang racket (require rackunit "../../src/chapter02/exercise_2_09.rkt" "../../src/lib/interval-arithmetic.rkt") (define ab (make-interval 1 3)) (define cd (make-interval 2 5)) (define radius-ab (radius-interval ab)) (define radius-cd (radius-interval cd)) (check-equal? (radius-interval (add-interv...
null
https://raw.githubusercontent.com/irastypain/sicp-on-language-racket/0052f91d3c2432a00e7e15310f416cb77eeb4c9c/test/chapter02/test_exercise_2_09.rkt
racket
#lang racket (require rackunit "../../src/chapter02/exercise_2_09.rkt" "../../src/lib/interval-arithmetic.rkt") (define ab (make-interval 1 3)) (define cd (make-interval 2 5)) (define radius-ab (radius-interval ab)) (define radius-cd (radius-interval cd)) (check-equal? (radius-interval (add-interv...
674d5094f0a8d461f7878ab0cb40133a4b324025853c59d97a6fb3606db78084
keechma/forms
re_frame.cljs
(ns forms.re-frame (:require [clojure.string :as str] [forms.util :refer [key-to-path]] [forms.dirty :refer [calculate-dirty-fields]] [re-frame.core :as rf])) (defn ^:private init-state [data validator opts] {:errors {} :init-data data :data (or data {}) :cached-dirty...
null
https://raw.githubusercontent.com/keechma/forms/5a9e02b76a4b5efd441f9a71e9831b2161139fdd/src/forms/re_frame.cljs
clojure
(ns forms.re-frame (:require [clojure.string :as str] [forms.util :refer [key-to-path]] [forms.dirty :refer [calculate-dirty-fields]] [re-frame.core :as rf])) (defn ^:private init-state [data validator opts] {:errors {} :init-data data :data (or data {}) :cached-dirty...
0d60f242690969b351724a0ca0229c7fc5c562f57f8022958019332d10b7e362
mainland/nikola
Mutable.hs
# LANGUAGE CPP # {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # -- | -- Module : Data.Vector.Storable.Mutable Copyright : ( c ) Roman Leshchinskiy 2009 - 2010 Copyright : ( c ) 2012 -- License : BSD-style -- ...
null
https://raw.githubusercontent.com/mainland/nikola/d86398888c0a76f8ad1556a269a708de9dd92644/src/Data/Vector/CUDA/Storable/Mutable.hs
haskell
# LANGUAGE DeriveDataTypeable # | Module : Data.Vector.Storable.Mutable License : BSD-style Stability : experimental Portability : non-portable * Accessors ** Length information ** Extracting subvectors ** Overlapping * Construction ** Initialisation ** Growing ** Restricting memory usage * ...
# LANGUAGE CPP # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # Copyright : ( c ) Roman Leshchinskiy 2009 - 2010 Copyright : ( c ) 2012 Maintainer : < > Mutable vectors based on . module Data.Vector.CUDA.Storable.Mutable ( * Mutable vectors o...
f3b3c3587997c49fa4624d8a61e8fa0f4ae2dfebe2a2a86558401b4b5c4b7868
xapi-project/xen-api
test_rrdd_monitor.ml
let ds_a = Ds.ds_make ~name:"ds_a" ~units:"(fraction)" ~description:"datasource a" ~value:(Rrd.VT_Float 1.0) ~ty:Rrd.Gauge ~default:true () let ds_b = Ds.ds_make ~name:"ds_b" ~units:"(fraction)" ~description:"datasource b" ~value:(Rrd.VT_Float 2.0) ~ty:Rrd.Gauge ~default:true () let reset_rrdd_shared_stat...
null
https://raw.githubusercontent.com/xapi-project/xen-api/751163d0033765a7c27e84cedaefcdef3b61a53d/ocaml/xcp-rrdd/test/rrdd/test_rrdd_monitor.ml
ocaml
let ds_a = Ds.ds_make ~name:"ds_a" ~units:"(fraction)" ~description:"datasource a" ~value:(Rrd.VT_Float 1.0) ~ty:Rrd.Gauge ~default:true () let ds_b = Ds.ds_make ~name:"ds_b" ~units:"(fraction)" ~description:"datasource b" ~value:(Rrd.VT_Float 2.0) ~ty:Rrd.Gauge ~default:true () let reset_rrdd_shared_stat...
95024fa19506be9d49f1203a9bf63606f3a5ed83ad579bd853f3b204443d878f
Vortecsmaster/EmurgoAcademyPlutusExamples
JustRedeemer.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # {-# LANGUAGE TypeOperators #-} {-# LANGUAGE OverloadedStrings #-} mo...
null
https://raw.githubusercontent.com/Vortecsmaster/EmurgoAcademyPlutusExamples/4532f1809d32c1b736d5b56e4a3564c631bb6d2b/V1/JustValidators/src/JustRedeemer.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE TypeOperators # # LANGUAGE OverloadedStrings # Contract Monad Ledger "Normal " Haskell "Normal" Haskell -} THE ON-CHAIN CODE just the hash of the validator replaces: scrAddress = scriptAddress validator THE OFFCHAIN CODE This line w...
# LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # module JustRedeemer where PlutusTx import PlutusTx (Data (..)) import qualified PlutusTx import qualified PlutusTx.Bu...
240034c5b51f98a6b1e1180fbd92b20f37ed872e91246dca3a917f567d2195c1
ghc/packages-dph
Bool.hs
{-# OPTIONS_GHC -fvectorise #-} module Data.Array.Parallel.Prelude.Bool ( Bool(..) , otherwise, (&&), (||), not, andP, orP , fromBool, toBool ) where import Data.Array.Parallel.Prim () -- dependency required by the vectoriser import Data.Array.Parallel.Prelude.Base import Data.Array.Parallel.Lifted.C...
null
https://raw.githubusercontent.com/ghc/packages-dph/64eca669f13f4d216af9024474a3fc73ce101793/dph-lifted-copy/Data/Array/Parallel/Prelude/Bool.hs
haskell
# OPTIONS_GHC -fvectorise # dependency required by the vectoriser # VECTORISE (&&) = (&&*) # # VECTORISE (||) = (||*) # # INLINE (||*) # # NOVECTORISE (||*) # # VECTORISE not = not_v # # VECTORISE andP = andP_v #
module Data.Array.Parallel.Prelude.Bool ( Bool(..) , otherwise, (&&), (||), not, andP, orP , fromBool, toBool ) where import Data.Array.Parallel.Prelude.Base import Data.Array.Parallel.Lifted.Closure import Data.Array.Parallel.PArray.PReprInstances import Data.Array.Parallel.Lifted.Scalar import qualified ...
1b36b8bdc2302a296855af2d602f036ba6d94623db15fb7b3b4de1f47f68e9e2
marigold-dev/deku
imports.mli
open Wasm exception Type_error val imports : 'inst. unit -> (Utf8.t * Instance.extern) list val alloc : Value.t * Value.t -> int64 val read : int64 -> Value.t
null
https://raw.githubusercontent.com/marigold-dev/deku/a26f31e0560ad12fd86cf7fa4667bb147247c7ef/deku-c/wasm-vm-ocaml/imports.mli
ocaml
open Wasm exception Type_error val imports : 'inst. unit -> (Utf8.t * Instance.extern) list val alloc : Value.t * Value.t -> int64 val read : int64 -> Value.t
d1dd72bc4a22478b0de527a38cf0d6db47ce1624c65dbfb7b0c6a8aa90bcc615
nkpart/kit
Builder.hs
{-# LANGUAGE PackageImports #-} # LANGUAGE DeriveFunctor # {-# LANGUAGE DeriveTraversable #-} # LANGUAGE DeriveFoldable # module Kit.Xcode.Builder (renderXcodeProject, SourceGroup(..)) where import Prelude hiding (mapM) import Data.Traversable as T (mapM, Traversable) import Data.Foldable (Foldable) import Kit...
null
https://raw.githubusercontent.com/nkpart/kit/ed217ddbc90688350e52156503cca092c9bf8300/Kit/Xcode/Builder.hs
haskell
# LANGUAGE PackageImports # # LANGUAGE DeriveTraversable # ^ Output lib name Build And FileRef sections classes = classesGroup $ sortBy (compare `on` (takeFileName . fileReferencePath)) $ map buildFileReference (sourceBuildFiles ++ headerBuildFiles) fg = frameworksGroup $ map buildFileReference (libBuildFiles ++ fr...
# LANGUAGE DeriveFunctor # # LANGUAGE DeriveFoldable # module Kit.Xcode.Builder (renderXcodeProject, SourceGroup(..)) where import Prelude hiding (mapM) import Data.Traversable as T (mapM, Traversable) import Data.Foldable (Foldable) import Kit.Xcode.Common import Kit.Xcode.ProjectFileTemplate import Kit.F...
a762421ad6e5e322a81d783df522f142163b9cd85923a654f41e62a4869cb2d2
vikram/lisplibraries
test-index-1b.lisp
$ I d : test - index-1b.lisp , v 1.2 2006/09/01 13:57:07 alemmens Exp $ (in-package :rs-test) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; Class redefinition example ;;; ;;; To run this example: ;;; - First run the indexing example in test-index-1a.lisp. ;;; - Compile and load...
null
https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/rucksack/test-index-1b.lisp
lisp
Class redefinition example To run this example: - First run the indexing example in test-index-1a.lisp. - Compile and load this file create (and fill) other slot indexes. - (SHOW-HACKERS) Notice that "Hackers indexed by hacker-id." now doesn't list any hackers, because the ID index was removed. - (SHOW...
$ I d : test - index-1b.lisp , v 1.2 2006/09/01 13:57:07 alemmens Exp $ (in-package :rs-test) This will change the class definition of HACKER . Because of this change , Rucksack will remove some slot indexes and ( 1 ) the existing hackers all got a new age slot , initialized by number according ...
89e0e501b046bb0ab208776ff4ea19bd084a7ec084e3803aec1a561a235e57f3
burgerdev/ocaml-rfc7748
curve.ml
module type Field = sig type t val zero: t val ( + ): t -> t -> t val ( - ): t -> t -> t val double: t -> t val one: t val ( * ): t -> t -> t val ( / ): t -> t -> t val square: t -> t end module type Integral = sig type t val zero: t val one: t val ( + ): t -> t -> t val ( mod ): t ->...
null
https://raw.githubusercontent.com/burgerdev/ocaml-rfc7748/ed034213ff02cd55870ae1387e91deebc9838eb4/src/curve.ml
ocaml
module type Field = sig type t val zero: t val ( + ): t -> t -> t val ( - ): t -> t -> t val double: t -> t val one: t val ( * ): t -> t -> t val ( / ): t -> t -> t val square: t -> t end module type Integral = sig type t val zero: t val one: t val ( + ): t -> t -> t val ( mod ): t ->...
ceab3366700b2fd78b39a95a0cfc923c29890ccb9185d68d9d0ffdd72b8a51f1
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
GetApplePayDomainsDomain.hs
{-# LANGUAGE ExplicitForAll #-} {-# LANGUAGE MultiWayIf #-} CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} -- | Contains the different functions to run the operation getApplePayDomainsDomain module St...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Operations/GetApplePayDomainsDomain.hs
haskell
# LANGUAGE ExplicitForAll # # LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | Contains the different functions to run the operation getApplePayDomainsDomain | > GET /v1/apple_pay/domains/{domain} | Contains all available parameters of this operation (query and path parameters) | Monadic computation which re...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . module StripeAPI.Operations.GetApplePayDomainsDomain where import qualified Control.Monad.Fail import qualified Control.Monad.Trans.Reader import qualified Data.Aeson import qualified Dat...
c786134b2c84b5ad35505a2b49a109438ca8e7fbca4e3dad46d200a38748b80c
thomaseding/hearthshroud
Cards.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE DataKinds # # LANGUAGE NoMonomorphismRestriction # # LANGUAGE RebindableSyntax # module Hearth.Authored.CardSet.Basic.Cards ( cards, healingTotem, searingTotem, silverHandRecruit, stoneclawTotem, theCoin, wickedKnife, wrathOfAirTotem, ) where...
null
https://raw.githubusercontent.com/thomaseding/hearthshroud/b21e2f69f394c94a106a3b57b95aa1a76b8d4003/src/Hearth/Authored/CardSet/Basic/Cards.hs
haskell
# LANGUAGE ConstraintKinds # ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------...
# LANGUAGE DataKinds # # LANGUAGE NoMonomorphismRestriction # # LANGUAGE RebindableSyntax # module Hearth.Authored.CardSet.Basic.Cards ( cards, healingTotem, searingTotem, silverHandRecruit, stoneclawTotem, theCoin, wickedKnife, wrathOfAirTotem, ) where import Hearth.Authored.CardS...
9ff21e8ef69232c91b62a5638e6ac89046790c0de1f1b3949579a4e7d4ba76c8
lemenkov/rtplib
sas.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 sou...
null
https://raw.githubusercontent.com/lemenkov/rtplib/b74a43b41fdb3dcdac6e33c5f2b9196780f7cbc8/src/sas.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 ...
Copyright ( c ) 2012 < > DISCLAIMED . IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES ; ANY THEORY OF LIABILITY , WHETHER IN CONTRAC...
5dd656785428eb00cef258b6b89d7a5f603af9ad634203807df4455ba9c7ea3f
input-output-hk/cardano-ledger
Main.hs
module Main where import Test.Tasty import Test.VMap -- ==================================================================================== tests :: TestTree tests = testGroup "vector-map" [ vMapTests ] main :: IO () main = defaultMain tests
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/16e4498ab762b77eca4a6191a3d7845a869c13af/libs/vector-map/test/Main.hs
haskell
====================================================================================
module Main where import Test.Tasty import Test.VMap tests :: TestTree tests = testGroup "vector-map" [ vMapTests ] main :: IO () main = defaultMain tests
423d1d7ba778a9b265f2129a130458a06b099de48c89c8e83654aebb7faf6428
palletops/carapace
shell.clj
(ns carapace.shell "Execute processes from clojure" (:require [carapace.proc :as proc] [carapace.stream :as stream] [com.palletops.api-builder.api :refer [defn-api]] [schema.core :as schema :refer [either optional-key]])) (defonce default-streamer (delay (let [s (stream/streamer {})] (stream/...
null
https://raw.githubusercontent.com/palletops/carapace/6d196bc7a0cda68256a6fb726d5a8a8386146a4d/src/carapace/shell.clj
clojure
(ns carapace.shell "Execute processes from clojure" (:require [carapace.proc :as proc] [carapace.stream :as stream] [com.palletops.api-builder.api :refer [defn-api]] [schema.core :as schema :refer [either optional-key]])) (defonce default-streamer (delay (let [s (stream/streamer {})] (stream/...
3ecb83ad6b99a8137045a746f375fedc9cb69299a2ed6d55240cd58a3c5651ea
k16shikano/hpdft
DocumentStructure.hs
{-# LANGUAGE OverloadedStrings #-} | Module : PDF.DocumentStructure Description : Function to walk around Document Structure of a PDF file Copyright : ( c ) , 2020 License : MIT Maintainer : Module : PDF.DocumentStructure Description : Function to walk around Document Structure of a...
null
https://raw.githubusercontent.com/k16shikano/hpdft/5a5956b28cc9a4bc85efdfe816d3f064b5225e22/src/PDF/DocumentStructure.hs
haskell
# LANGUAGE OverloadedStrings # find objects need fix find Info Should be an array (or ref to an array) containing refs
| Module : PDF.DocumentStructure Description : Function to walk around Document Structure of a PDF file Copyright : ( c ) , 2020 License : MIT Maintainer : Module : PDF.DocumentStructure Description : Function to walk around Document Structure of a PDF file Copyright : (c) Keiichi...
ed34396b8d1a7ed639cdeb20997ce652bd37ffcc68d1074207e517221d419ebd
juspay/atlas
Types.hs
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/parking-bap/src/API/Beckn/Types.hs
haskell
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
aad2d87982e4093321583d552f3bfb7079664a2bca3b1112e271cbc56de4f612
may-liu/qtalk
node_private.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 ...
null
https://raw.githubusercontent.com/may-liu/qtalk/f5431e5a7123975e9656e7ab239e674ce33713cd/qtalk_opensource/src/node_private.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 t...
` ` 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 ProcessOne . Portions created by ProcessOne are C...
a06e97895901c08c55eff0056e2bccfacfcb2431658ec99b3ee91bc022db366b
CRogers/obc
lr0.mli
* lr0.mli * * This file is part of the Oxford Oberon-2 compiler * Copyright ( c ) 2006 * All rights reserved * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are met : * * 1 . Redistributions of...
null
https://raw.githubusercontent.com/CRogers/obc/49064db244e0c9d2ec2a83420c8d0ee917b54196/yacc/lr0.mli
ocaml
This module computes the LR(0) automaton for the grammar item -- type of LR(0) items The basic item: Production rule Index in RHS Lookahead set state -- state of LR(0) automaton transition -- state transition in LR(0) action -- potential parser action fAction -- format a parser action for printing ...
* lr0.mli * * This file is part of the Oxford Oberon-2 compiler * Copyright ( c ) 2006 * All rights reserved * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are met : * * 1 . Redistributions of...
89ff9ed4868ce52545babedc2794176d54def7c6db37b42591089f431a39da3c
djblue/portal
fetch.cljs
(ns examples.fetch) (defn- node-fetch [url] (let [http (js/require "https")] (js/Promise. (fn [resolve reject] (.end (.request http url (fn [res] (let [body (atom "")] (.on res "data" #(swap! body str %)) (.on res "error" reject)...
null
https://raw.githubusercontent.com/djblue/portal/9110dabd9fb0f05c1fbb54f4b5981e82fc9ed644/src/examples/fetch.cljs
clojure
(ns examples.fetch) (defn- node-fetch [url] (let [http (js/require "https")] (js/Promise. (fn [resolve reject] (.end (.request http url (fn [res] (let [body (atom "")] (.on res "data" #(swap! body str %)) (.on res "error" reject)...
0a99b0d5468701830522181b3ffa93c4766c0293ea31416d7950ef4651c8979b
yawaramin/bs-hyperapp
hyperapp.ml
type 'msg vnode type ('model, 'msg) view = 'model -> ('msg -> unit) -> 'msg vnode type 'model state = < model : 'model > Js.t type ('model, 'msg) _view = 'model state -> < update : 'msg -> unit > Js.t -> 'msg vnode [@bs] type ('model, 'msg) actions = < update : 'model state -> ('model, 'msg) actions -> ...
null
https://raw.githubusercontent.com/yawaramin/bs-hyperapp/83cdba88fcd262dc31ad171c843b53f1be0dc758/src/hyperapp.ml
ocaml
type 'msg vnode type ('model, 'msg) view = 'model -> ('msg -> unit) -> 'msg vnode type 'model state = < model : 'model > Js.t type ('model, 'msg) _view = 'model state -> < update : 'msg -> unit > Js.t -> 'msg vnode [@bs] type ('model, 'msg) actions = < update : 'model state -> ('model, 'msg) actions -> ...
74ad9a994ea4f231c940f1c448c8ca87de300588c77071f680d02499113a9fff
facebook/duckling
Tests.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. module Duckling.Volume.TR.Tests ( tests ) where import Prelude import Data.String import Test.Tasty im...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/tests/Duckling/Volume/TR/Tests.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.
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Volume.TR.Tests ( tests ) where import Prelude import Data.String import Test.Tasty import Duckling.Dimensions.Types import Duckling.Testing.Asserts import Duckling.Volume.TR.Corpus tests :: TestTree tests = testGroup "TR Tests" [ makeCorpusT...
817035f4d049768320c2102a8d049797e765aab72c76a11c439fb4aff855a2e6
GaloisInc/pure-zlib
HuffmanTree.hs
module Codec.Compression.Zlib.HuffmanTree ( HuffmanTree, AdvanceResult (..), createHuffmanTree, advanceTree, ) where import Data.Bits (testBit) import Data.Word (Word8) data HuffmanTree a = HuffmanNode (HuffmanTree a) (HuffmanTree a) | HuffmanValue a | HuffmanEmpty deriving (Show) data AdvanceResult ...
null
https://raw.githubusercontent.com/GaloisInc/pure-zlib/05392ea8ab8f6426b2491e5495bcb00cdcefbc11/src/Codec/Compression/Zlib/HuffmanTree.hs
haskell
module Codec.Compression.Zlib.HuffmanTree ( HuffmanTree, AdvanceResult (..), createHuffmanTree, advanceTree, ) where import Data.Bits (testBit) import Data.Word (Word8) data HuffmanTree a = HuffmanNode (HuffmanTree a) (HuffmanTree a) | HuffmanValue a | HuffmanEmpty deriving (Show) data AdvanceResult ...
d4c1dc5f182bba3d4f905200e9f5e908ecb37661ec006346491cc2db56ba9abb
RyanGlScott/text-show
VersionSpec.hs
module Spec.Data.VersionSpec (main, spec) where import Data.Proxy.Compat (Proxy(..)) import Data.Version (Version, showVersion) import Spec.Utils (matchesTextShowSpec) import Test.Hspec (Expectation, Spec, describe, hspec, parallel, shouldBe) import Test.Hspec.QuickCheck (prop) import TextShow (fromString) import T...
null
https://raw.githubusercontent.com/RyanGlScott/text-show/5ea297d0c7ae2d043f000c791cc12ac53f469944/tests/Spec/Data/VersionSpec.hs
haskell
| Verifies 'showVersion' and 'showbVersion' generate the same output.
module Spec.Data.VersionSpec (main, spec) where import Data.Proxy.Compat (Proxy(..)) import Data.Version (Version, showVersion) import Spec.Utils (matchesTextShowSpec) import Test.Hspec (Expectation, Spec, describe, hspec, parallel, shouldBe) import Test.Hspec.QuickCheck (prop) import TextShow (fromString) import T...