_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
e691a913462ddae7fb53f5c0aa190692da51b893f8343609d939b1d4f0923ee5
jgm/yst
Sqlite3.hs
module Yst.Sqlite3 (readSqlite3) where import Database.HDBC import Database.HDBC.Sqlite3 import Data.Maybe import Yst.Types readSqlite3 :: FilePath -> String -> IO Node readSqlite3 filename query = do conn <- connectSqlite3 filename stmt <- prepare conn query execute stmt [] records <- sFetchAllRows' stmt f...
null
https://raw.githubusercontent.com/jgm/yst/572f5fda4bc2e52631c2613efb697e28b9418afc/Yst/Sqlite3.hs
haskell
module Yst.Sqlite3 (readSqlite3) where import Database.HDBC import Database.HDBC.Sqlite3 import Data.Maybe import Yst.Types readSqlite3 :: FilePath -> String -> IO Node readSqlite3 filename query = do conn <- connectSqlite3 filename stmt <- prepare conn query execute stmt [] records <- sFetchAllRows' stmt f...
3dba745f4a69308a9fe1dec03c75bc606bfb2bfd50b99be9a8f3ca116be2437b
REPROSEC/dolev-yao-star
Vale_X64_Bytes_Code_s.ml
open Prims type instr_annotation_t = unit type 'a instruction_t = | Instr of Vale_X64_Instruction_s.instr_t_record * Obj.t * 'a | Push of Vale_X64_Machine_s.operand64 * Vale_Arch_HeapTypes_s.taint | Pop of Vale_X64_Machine_s.operand64 * Vale_Arch_HeapTypes_s.taint | Alloc of Vale_Def_Words_s.nat64 | Deall...
null
https://raw.githubusercontent.com/REPROSEC/dolev-yao-star/d97a8dd4d07f2322437f186e4db6a1f4d5ee9230/concrete/hacl-star-snapshot/ml/Vale_X64_Bytes_Code_s.ml
ocaml
open Prims type instr_annotation_t = unit type 'a instruction_t = | Instr of Vale_X64_Instruction_s.instr_t_record * Obj.t * 'a | Push of Vale_X64_Machine_s.operand64 * Vale_Arch_HeapTypes_s.taint | Pop of Vale_X64_Machine_s.operand64 * Vale_Arch_HeapTypes_s.taint | Alloc of Vale_Def_Words_s.nat64 | Deall...
6b4c179feac3e2b27e8cb5f90a7e33ac1509595048aa80e49df64abb5caf0991
siilisolutions/hedge
core.clj
(ns boot-hedge.aws.core {:boot/export-tasks true} (:require [boot.core :as c] [boot.util :as u] [boot.task.built-in :refer [sift target zip]] [adzerk.boot-cljs :refer [cljs]] [clojure.java.io :refer [file]] [boot-hedge.common.core :refer [print-and-return now date->unixts ...
null
https://raw.githubusercontent.com/siilisolutions/hedge/c856b232f3057530921a1e186371647317819f16/boot/src/boot_hedge/aws/core.clj
clojure
main tasks
(ns boot-hedge.aws.core {:boot/export-tasks true} (:require [boot.core :as c] [boot.util :as u] [boot.task.built-in :refer [sift target zip]] [adzerk.boot-cljs :refer [cljs]] [clojure.java.io :refer [file]] [boot-hedge.common.core :refer [print-and-return now date->unixts ...
19dcbfa5ea1a7a95afe532fb8e9bf6339ead3fdbfebce3e1d9badff3758830c2
kitlang/kit
VarDefinition.hs
# LANGUAGE DeriveGeneric # module Kit.Ast.Definitions.VarDefinition where import Control.Monad import Data.Hashable import GHC.Generics import Kit.Ast.Definitions.Base import Kit.Ast.Metadata import Kit.Ast.Modifier import Kit.Ast.TypePath import Kit.Ast.Span import Kit.Str data VarDefinition a b = VarDefinition { ...
null
https://raw.githubusercontent.com/kitlang/kit/2769a7a8e51fe4466c50439d1a1ebdad0fb79710/src/Kit/Ast/Definitions/VarDefinition.hs
haskell
# LANGUAGE DeriveGeneric # module Kit.Ast.Definitions.VarDefinition where import Control.Monad import Data.Hashable import GHC.Generics import Kit.Ast.Definitions.Base import Kit.Ast.Metadata import Kit.Ast.Modifier import Kit.Ast.TypePath import Kit.Ast.Span import Kit.Str data VarDefinition a b = VarDefinition { ...
37ff70d52f44dde925755e5d44c13f50d763c212244e70bf600e32a3742e84ae
morgenthum/lambda-heights
Pause.hs
module LambdaHeights.Pause where import ComposeEngine.RenderContext import qualified ComposeEngine.Types.Loop as Loop import qualified Control.Monad.Reader as M import qualified LambdaHeights.Menu as Menu import LambdaHeights.Render import qualified LambdaHeights.Table as Table import LambdaHeights.Types.Config import...
null
https://raw.githubusercontent.com/morgenthum/lambda-heights/0a86ead23e8c223ba2672fa314666a06eb669fe2/lambda-heights/src/LambdaHeights/Pause.hs
haskell
module LambdaHeights.Pause where import ComposeEngine.RenderContext import qualified ComposeEngine.Types.Loop as Loop import qualified Control.Monad.Reader as M import qualified LambdaHeights.Menu as Menu import LambdaHeights.Render import qualified LambdaHeights.Table as Table import LambdaHeights.Types.Config import...
858576c872b08c291f7966fa5b9ba47987ed734f8d82ff47184000bc60f4306a
jperson/cl-reddit
package.lisp
Copyright ( c ) 2013 , ;; 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 source code must retain the above copyright notice , this ;; list of conditions and t...
null
https://raw.githubusercontent.com/jperson/cl-reddit/c78d2a5854cddfd9b72ffebb51c9253c242b4f5e/package.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: list of conditions and the following disclaimer. this list of conditions and the following disclaimer in the documentation and/or other mat...
Copyright ( c ) 2013 , 1 . Redistributions of source code must retain the above copyright notice , this 2 . Redistributions in binary form must reproduce the above copyright notice , THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " AND DISCLAIMED . IN NO EVENT SHALL THE COPYRIG...
82be1fce977fdcae2b55d180e676459b7a450e2897e86abec2e27b7c784bac03
LaurentMazare/ocaml-torch
device.ml
type t = Torch_core.Device.t = | Cpu | Cuda of int let cuda_if_available () = if Cuda.is_available () then Cuda 0 else Cpu let is_cuda = function | Cpu -> false | Cuda _ -> true let get_num_threads = Torch_core.Wrapper.get_num_threads let set_num_threads = Torch_core.Wrapper.set_num_threads
null
https://raw.githubusercontent.com/LaurentMazare/ocaml-torch/a82b906a22c7c23138af16fab497a08e5167d249/src/torch/device.ml
ocaml
type t = Torch_core.Device.t = | Cpu | Cuda of int let cuda_if_available () = if Cuda.is_available () then Cuda 0 else Cpu let is_cuda = function | Cpu -> false | Cuda _ -> true let get_num_threads = Torch_core.Wrapper.get_num_threads let set_num_threads = Torch_core.Wrapper.set_num_threads
4c425cf22d5aec5da228d8003546cbd0d21474bd9bc5116eb9990091c421a2bc
brendanhay/amazonka
UpdateImpersonationRole.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # {-# LANGUAGE StrictData #-} # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused -...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-workmail/gen/Amazonka/WorkMail/UpdateImpersonationRole.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Module : Amazonka.WorkMail.UpdateImpersonationRole Stability : auto-generated Updates an impersonation role for the given WorkMail organization. * Creating a Request * Request Lenses * Destructuring the Response * Response Lenses | /See:/ 'newUpd...
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # De...
fbc1ee16685d15e20b0f9b025c039a205097777ebaa7bad9566f68951038052e
ubf/ubf-abnf
abnf_rfc3986.erl
%%% Description: rfc3986 module %%%------------------------------------------------------------------- -module(abnf_rfc3986). NOTE the following two lines -compile({parse_transform,abnf_contract_parser}). -add_contract("./test/eunit/rfc3986"). -add_types({abnf_rfc5234_core, ['ALPHA','DIGIT','HEXDIG']}).
null
https://raw.githubusercontent.com/ubf/ubf-abnf/2b203b46d272476cba7780f4961e7ce3c718796f/test/eunit/abnf_rfc3986.erl
erlang
Description: rfc3986 module -------------------------------------------------------------------
-module(abnf_rfc3986). NOTE the following two lines -compile({parse_transform,abnf_contract_parser}). -add_contract("./test/eunit/rfc3986"). -add_types({abnf_rfc5234_core, ['ALPHA','DIGIT','HEXDIG']}).
fe2521bfd2a3c1da8ccb273856aa64417f054d47d375e615f3ce4ae61eef4948
webyrd/mediKanren
helpers.rkt
#lang racket/base (provide membero not-membero ) (require "mk.rkt" ) ;; list membership (define membero (lambda (x ls) (fresh (y rest) (== `(,y . ,rest) ls) (conde [(== x y)] [(=/= x y) (membero x rest)])))) ;; list non-membership (define not-membero (lambda (x ls) ...
null
https://raw.githubusercontent.com/webyrd/mediKanren/a2b80ea94f66bcdd4305b9369ad4184c2afe9829/attic/code/helpers.rkt
racket
list membership list non-membership
#lang racket/base (provide membero not-membero ) (require "mk.rkt" ) (define membero (lambda (x ls) (fresh (y rest) (== `(,y . ,rest) ls) (conde [(== x y)] [(=/= x y) (membero x rest)])))) (define not-membero (lambda (x ls) (conde [(== '() ls)] [(fresh ...
a11fd257c1bf1cc6280a9ac5ac9b34756af05381f3970dd32a9a22583bd75423
tud-fop/vanda-haskell
Queue.hs
------------------------------------------------------------------------------ -- | Copyright : ( c ) 2012 ( c ) 2011 -- License : BSD-style Maintainer : < > -- This module is based on Section 3.1.1 of -- * . -- /Purely functional data structures./ 1998 . -- </~rw...
null
https://raw.githubusercontent.com/tud-fop/vanda-haskell/3214966361b6dbf178155950c94423eee7f9453e/library/Data/Queue.hs
haskell
---------------------------------------------------------------------------- | License : BSD-style /Purely functional data structures./ </~rwh/theses/okasaki.pdf> ---------------------------------------------------------------------------- | Queue data type. copied from Data.Set | The empty 'Queue'. ...
Copyright : ( c ) 2012 ( c ) 2011 Maintainer : < > This module is based on Section 3.1.1 of * . 1998 . module Data.Queue ( Queue(..) , null , empty , singleton , enq , deq , deqMaybe , enqList , enqListWith , fromList , toList ) where import Prelude hiding (null) imp...
2d96dd65dc0ee3c49aeab3193a531b4c36713170e548bde55ff8bde9e67d4e18
purcell/adventofcode2017
Day03.hs
# LANGUAGE TupleSections # module Day03 ( day03 ) where import qualified Data.Map as M import Data.Maybe (catMaybes) import qualified Data.Set as S data Direction = N | E | S | W type Pos = (Int, Int) turnLeft :: Direction -> Direction turnLeft N = W turnLeft W = S turnLeft S = E turnLeft E = N move :...
null
https://raw.githubusercontent.com/purcell/adventofcode2017/745ddefbeb4fcb35a460606c5dad89118adef12a/src/Day03.hs
haskell
# LANGUAGE TupleSections # module Day03 ( day03 ) where import qualified Data.Map as M import Data.Maybe (catMaybes) import qualified Data.Set as S data Direction = N | E | S | W type Pos = (Int, Int) turnLeft :: Direction -> Direction turnLeft N = W turnLeft W = S turnLeft S = E turnLeft E = N move :...
5aa9306adfce08130eba24399c393bb8fe1606c7d35a0f3a635bd398e29b2926
ocaml-multicore/eio
ctf_unix.ml
open Bigarray module Ctf = Eio.Private.Ctf let timestamper log_buffer ofs = let ns = Mtime.to_uint64_ns @@ Mtime_clock.now () in Ctf.BS.set_int64_le log_buffer ofs ns let mmap_buffer ~size path = let fd = Unix.(openfile path [O_RDWR; O_CREAT; O_TRUNC] 0o644) in Unix.set_close_on_exec fd; Unix.ftruncate fd ...
null
https://raw.githubusercontent.com/ocaml-multicore/eio/bb64576fa2ad6df87b8f58e2c494805aa1944fef/lib_eio/unix/ctf_unix.ml
ocaml
open Bigarray module Ctf = Eio.Private.Ctf let timestamper log_buffer ofs = let ns = Mtime.to_uint64_ns @@ Mtime_clock.now () in Ctf.BS.set_int64_le log_buffer ofs ns let mmap_buffer ~size path = let fd = Unix.(openfile path [O_RDWR; O_CREAT; O_TRUNC] 0o644) in Unix.set_close_on_exec fd; Unix.ftruncate fd ...
12ea83c32c20451a7095e4d5577442d239237c6de84023391963285d009f8fa9
sol/doctest
Foo.hs
module Foo where -- | A failing example -- -- >>> putStrLn "foo " -- foo test :: a test = undefined
null
https://raw.githubusercontent.com/sol/doctest/ec6498542986b659f50e961b02144923f6f41eba/test/integration/trailing-whitespace/Foo.hs
haskell
| A failing example >>> putStrLn "foo " foo
module Foo where test :: a test = undefined
787438d937f240bcba7afdaaf18dbabe191fcb99429fea3a4fde17a907f3b02c
janestreet/universe
join.ml
open Core_kernel open! Import open Types.Kind module Node = Types.Node type 'a t = 'a Types.Join.t = { main : 'a Node.t ; lhs : 'a Node.t Node.t ; lhs_change : unit Node.t ; mutable rhs : 'a Node.t Uopt.t } [@@deriving fields, sexp_of] let same (t1 : _ t) (t2 : _ t) = phys_same t1 t2 let invariant _invaria...
null
https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/incremental/src/join.ml
ocaml
open Core_kernel open! Import open Types.Kind module Node = Types.Node type 'a t = 'a Types.Join.t = { main : 'a Node.t ; lhs : 'a Node.t Node.t ; lhs_change : unit Node.t ; mutable rhs : 'a Node.t Uopt.t } [@@deriving fields, sexp_of] let same (t1 : _ t) (t2 : _ t) = phys_same t1 t2 let invariant _invaria...
2889672bd6981543933daa7e70003427ba421f729014bd094af71a0debc275e8
Clozure/ccl-tests
fceiling-aux.lsp
;-*- Mode: Lisp -*- Author : Created : We d Aug 20 06:24:45 2003 ;;;; Contains: Tests of FCEILING (in-package :cl-test) (defun fceiling.1-fn () (loop for n = (- (random 200000) 100000) for d = (1+ (random 10000)) for vals = (multiple-value-list (fceiling n d)) for (q r) = vals for n2 = (+ (*...
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/fceiling-aux.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of FCEILING
Author : Created : We d Aug 20 06:24:45 2003 (in-package :cl-test) (defun fceiling.1-fn () (loop for n = (- (random 200000) 100000) for d = (1+ (random 10000)) for vals = (multiple-value-list (fceiling n d)) for (q r) = vals for n2 = (+ (* q d) r) repeat 100 unless (and (eql (length vals) 2) ...
3052c0279ca2a0f27ca36fc002cb300df225af9ee4ec507f25fa54f60e6f18b4
ocaml/dune
dune_stats.mli
type t module Json : sig val to_string : Chrome_trace.Json.t -> string end type dst = | Out of out_channel | Custom of { write : string -> unit ; close : unit -> unit ; flush : unit -> unit } val create : dst -> t val emit : t -> Chrome_trace.Event.t -> unit val record_gc_and_fd : t -...
null
https://raw.githubusercontent.com/ocaml/dune/073778234aeccfa125b6df14af0f88a2e431166a/src/dune_stats/dune_stats.mli
ocaml
type t module Json : sig val to_string : Chrome_trace.Json.t -> string end type dst = | Out of out_channel | Custom of { write : string -> unit ; close : unit -> unit ; flush : unit -> unit } val create : dst -> t val emit : t -> Chrome_trace.Event.t -> unit val record_gc_and_fd : t -...
3e7071ffbf6dc0daa587ebde8da4daae7a47118564871dafc5a8c2d8023afc15
awslabs/s2n-bignum
bignum_mod_p256.ml
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) (* =================================================================...
null
https://raw.githubusercontent.com/awslabs/s2n-bignum/824c15f908d7a343af1b2f378cfedd36e880bdde/x86/proofs/bignum_mod_p256.ml
ocaml
========================================================================= ========================================================================= *** print_literal_from_elf "x86/p256/bignum_mod_p256.o";; *** PUSH (% rbx) PUSH (% r12) AND (% rbx) (% rax) AND (% rdx) (% rax) ADD (% r8) (% rax) ADC (% r9...
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) Reduction modulo p_256 , the field characteristic for NIST curve P...
e42bb6c66a71abdb1e2579b7d32b6a37521f69500dc1ca1c17844458ea326887
alvatar/spheres
prelude.scm
! ! ! prelude for Gambit .author , 2014 - 2015 . See LICENSE file . ;;------------------------------------------------------------------------------ ;; Overriding INCLUDE and LOAD (define ##show-loaded/included-files #f) ;; Provide any of this options: ;; - a file path ;; - a library definition ;; - a proced...
null
https://raw.githubusercontent.com/alvatar/spheres/568836f234a469ef70c69f4a2d9b56d41c3fc5bd/spheres/gambit/prelude.scm
scheme
------------------------------------------------------------------------------ Overriding INCLUDE and LOAD Provide any of this options: - a file path - a library definition - a procedure that when run yields a file path Allow building paths as a result of a procedure Provide any of this options: - a file path ...
! ! ! prelude for Gambit .author , 2014 - 2015 . See LICENSE file . (define ##show-loaded/included-files #f) (define-macro (include file-or-library) (if (procedure? file-or-library) (set! file-or-library (file-or-library))) (let ((file (cond ((string? file-or-library) (if ##sho...
1052aee3c9439d65c569ca4e47031e2d653fcad1050cbb51fa58bf0a43d29521
gebi/jungerl
pgsql_proto.erl
%%% File : pgsql_proto.erl Author : < > %%% Description : PostgreSQL protocol driver Created : 9 May 2005 %%% This is the protocol handling part of the PostgreSQL driver, it turns packages into %%% erlang term messages and back. -module(pgsql_proto). %% TODO: %% When factorizing make clear distinction ...
null
https://raw.githubusercontent.com/gebi/jungerl/8f5c102295dbe903f47d79fd64714b7de17026ec/lib/pgsql/src/pgsql_proto.erl
erlang
File : pgsql_proto.erl Description : PostgreSQL protocol driver This is the protocol handling part of the PostgreSQL driver, it turns packages into erlang term messages and back. TODO: When factorizing make clear distinction between message and packet. Packet == binary on-wire representation PostgreSQL proto...
Author : < > Created : 9 May 2005 -module(pgsql_proto). Message = parsed Packet as terms . Version 3.0 of the protocol . Supported in postgres from version 7.4 -define(PROTOCOL_MAJOR, 3). -define(PROTOCOL_MINOR, 0). -define(PG_BACKEND_KEY_DATA, $K). -define(PG_PARAMETER_STATUS, $S). -define(PG_ER...
e635498c095de49e3e83a22de4d95c1e20e39fa76222e60e15ef839a107f38aa
clojure-interop/java-jdk
OptionPaneUI.clj
(ns javax.swing.plaf.OptionPaneUI "Pluggable look and feel interface for JOptionPane." (:refer-clojure :only [require comment defn ->]) (:import [javax.swing.plaf OptionPaneUI])) (defn ->option-pane-ui "Constructor." (^OptionPaneUI [] (new OptionPaneUI ))) (defn select-initial-value "Requests the comp...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.swing/src/javax/swing/plaf/OptionPaneUI.clj
clojure
(ns javax.swing.plaf.OptionPaneUI "Pluggable look and feel interface for JOptionPane." (:refer-clojure :only [require comment defn ->]) (:import [javax.swing.plaf OptionPaneUI])) (defn ->option-pane-ui "Constructor." (^OptionPaneUI [] (new OptionPaneUI ))) (defn select-initial-value "Requests the comp...
595728cf3288cf71f13e0ab961064f1f0733ecbad78be8e930183d47cd56a1b1
rtoy/cmucl
clx-demos.lisp
;;; -*- Mode: Lisp; Package: Demos -*- ;;; ;;; This file contains various graphics hacks written and ported over the ;;; years by various and numerous persons. ;;; This file should be portable to any valid Common Lisp with CLX -- DEC 88 . ;;; CMUCL MP support by 1998 . Enhancements including the CLX menu , rewr...
null
https://raw.githubusercontent.com/rtoy/cmucl/263e93982390688b10caead45e494825d10d5966/src/clx/demo/clx-demos.lisp
lisp
-*- Mode: Lisp; Package: Demos -*- This file contains various graphics hacks written and ported over the years by various and numerous persons. Graphic demos wrapper macro. This wrapper macro should be reconsidered with respect to its property list usage. Possibly a demo structure should be used with *demos*...
This file should be portable to any valid Common Lisp with CLX -- DEC 88 . CMUCL MP support by 1998 . Enhancements including the CLX menu , rewrite of the greynetic demo , and other fixes by 1998 . Backported some changes found in CMUCL repository -- jd 2018 - 12 - 29 . (defpackage #:xlib-demo/demos (:...
ed13c0c969d3f9eb7ddcf52b44e978d8840995c84f355ad99b29c40dc30be5dd
unclebob/clojureOrbit
physics.clj
(ns physics (:require [physics.vector :as vector] [physics.position :as position] [physics.object :as object]))
null
https://raw.githubusercontent.com/unclebob/clojureOrbit/82d59297dc8c54fccb37b92725f0547def0d6157/src/physics/physics.clj
clojure
(ns physics (:require [physics.vector :as vector] [physics.position :as position] [physics.object :as object]))
741888edd238855d3279eb9ff1227b8f87f11f1c9991d5019b191926fae82141
Twinside/Eq
opListGenerator.hs
import Data.List operatorList = [("+", "OpAdd") ,("-", "OpSub") ,("*", "OpMul") ,("/", "OpDiv") ,("%", "OpMod") ] opAtribList = [("+=","OpAdd") ,("-=","OpSub") ,("*=","OpMul") ,("/=","OpDiv") ,("%=","OpMod") ] compOperator ...
null
https://raw.githubusercontent.com/Twinside/Eq/60105372d55420735b722245db7021c239c812f4/FormulaTracingCpp/opListGenerator.hs
haskell
, ("ldiv", "OpLDiv")
import Data.List operatorList = [("+", "OpAdd") ,("-", "OpSub") ,("*", "OpMul") ,("/", "OpDiv") ,("%", "OpMod") ] opAtribList = [("+=","OpAdd") ,("-=","OpSub") ,("*=","OpMul") ,("/=","OpDiv") ,("%=","OpMod") ] compOperator ...
dc87090bb34020adf7cb737ef6f58ce952aca14995471c01066718d2cf56b33e
processone/tsung
ts_amqp.erl
This code was developed by ) . %%% Copyright ( C ) 2013 %%% %%% This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or %%% (at your option) any later v...
null
https://raw.githubusercontent.com/processone/tsung/b0ed22981b534ee3becefb2124a6e168c664d434/src/tsung/ts_amqp.erl
erlang
This program is free software; you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General...
This code was developed by ) . Copyright ( C ) 2013 it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or You should have received a copy of the GNU General Public License Foundation , Inc. , 59 Temple Place , Suite...
c825456fec130360e7fa57a884eebd336857760e827b30fba112522f1ad23626
Chris00/ocaml-bwrap
bwrap.ml
module SMap = Map.Make(String) module String = struct include String To be compatible with OCaml < 4.04.0 let split_on_char sep s = let r = ref [] in let j = ref (length s) in for i = length s - 1 downto 0 do if unsafe_get s i = sep then begin r := sub s (i + 1) (!j - i - 1) :: !r; ...
null
https://raw.githubusercontent.com/Chris00/ocaml-bwrap/63865229dff482f5f0b07fe0aaf3ef667e21a536/src/bwrap.ml
ocaml
Equivalent to [String.concat sep (List.rev l)]. [n] = number of elements in [l]. [sum_len] = sum of lengths of the elements in [l]. arguments, in reverse order number of elements in [args]. sum of lengths in [args]. < 0 if unset < 0 if unset = "" if unset variable → content = "" if not set ...
module SMap = Map.Make(String) module String = struct include String To be compatible with OCaml < 4.04.0 let split_on_char sep s = let r = ref [] in let j = ref (length s) in for i = length s - 1 downto 0 do if unsafe_get s i = sep then begin r := sub s (i + 1) (!j - i - 1) :: !r; ...
1e7f6e091262ea4c6cf69c52195876f3eb4e3aab9a9d2f90349bbf84252722ff
clojure/clojurescript
string.cljs
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 ; ...
null
https://raw.githubusercontent.com/clojure/clojurescript/6dac3165d4bc8f785741ea86aef946b11c9d7d0f/src/main/cljs/clojure/string.cljs
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) . All rights reserved . (ns clojure.string (:refer-clojure :exclude [replace reverse]) (:require [goog.string :as gstring]) (:import [goog.string StringBuffer])) (defn- seq-reverse [coll] (reduce conj () coll)) (def ^:private re-surrogate-pair (js/RegExp. "([\\uD800-\\uDBFF])([\\uDC...
0760435ebbe9f747222276e0f5afeba480669f44e633a687ab0daf07046f9a05
pascalh/Astview
Language.hs
| This module offers the main data type ' Language ' . A value of ' Language ' states how their files shall be processed by astview . This module offers the main data type 'Language'. A value of 'Language' states how their files shall be processed by astview. -} module Language.Astview.Language ( Language(..) ...
null
https://raw.githubusercontent.com/pascalh/Astview/3c0677b033a1d0366202048be273861e98a04e2a/src/core/Language/Astview/Language.hs
haskell
* (leaf) nodes representing an identificator (and thus a 'String'). Note: usually strings are lists of characters and therefore subtrees node, which will then be annotated with 'Identificator'. * all constructors in a term not representing an identificator are just an 'Operation' |A positi...
| This module offers the main data type ' Language ' . A value of ' Language ' states how their files shall be processed by astview . This module offers the main data type 'Language'. A value of 'Language' states how their files shall be processed by astview. -} module Language.Astview.Language ( Language(..) ...
427ca35b500235285c65a7686acd9b5cd28c3ed390f020d0283f967ff677d354
CryptoKami/cryptokami-core
Leaders.hs
| Leaders part of LRC DB . module Pos.Lrc.DB.Leaders ( -- * Getters getLeadersForEpoch , getLeader -- * Operations , putLeadersForEpoch -- * Initialization , prepareLrcLeaders -- * Helpers , hasLeaders ) where import Unive...
null
https://raw.githubusercontent.com/CryptoKami/cryptokami-core/12ca60a9ad167b6327397b3b2f928c19436ae114/block/src/Pos/Lrc/DB/Leaders.hs
haskell
* Getters * Operations * Initialization * Helpers -------------------------------------------------------------------------- Getters -------------------------------------------------------------------------- -------------------------------------------------------------------------- --------------------------------...
| Leaders part of LRC DB . module Pos.Lrc.DB.Leaders ( getLeadersForEpoch , getLeader , putLeadersForEpoch , prepareLrcLeaders , hasLeaders ) where import Universum import Pos.Binary.Class (serialize') import Pos.Binary.Core () imp...
add696f01e7ed3caa881fa2212580b95953589267d1581081c240c3edcdd3803
thi-ng/geom
bezier.cljc
(ns thi.ng.geom.test.types.bezier #?(:cljs (:require-macros [cemerick.cljs.test :refer (is deftest)])) (:require [thi.ng.math.core :as m] [thi.ng.geom.core :as g] [thi.ng.geom.types] [thi.ng.geom.bezier :as b] [thi.ng.geom.vector :as v] #?(:clj [clojure.test :refer :all] :cl...
null
https://raw.githubusercontent.com/thi-ng/geom/85783a1f87670c5821473298fa0b491bd40c3028/test/thi/ng/geom/test/types/bezier.cljc
clojure
(ns thi.ng.geom.test.types.bezier #?(:cljs (:require-macros [cemerick.cljs.test :refer (is deftest)])) (:require [thi.ng.math.core :as m] [thi.ng.geom.core :as g] [thi.ng.geom.types] [thi.ng.geom.bezier :as b] [thi.ng.geom.vector :as v] #?(:clj [clojure.test :refer :all] :cl...
ca56e0edabd90b50567fd3d2a9862fee1238a41825a41394cb0efe0a2db26326
ktakashi/sagittarius-scheme
aes_cmac_test.scm
(test-cmac "aes_cmac_test" :algorithm "AES-CMAC" :key-size 128 :tag-size 128 :tests '(#(1 "empty message" #vu8(227 79 21 199 189 129 153 48 254 157 102 224 193 102 230 28) #vu8() #vu8(212 122 252 161 216 87 165 147 52 5 177 235 122 92 183 175) #t ()) #(2 "...
null
https://raw.githubusercontent.com/ktakashi/sagittarius-scheme/e4187eaa8221fad00d7e340019c30429e8824694/ext/crypto/tests/testvectors/cmac/aes_cmac_test.scm
scheme
(test-cmac "aes_cmac_test" :algorithm "AES-CMAC" :key-size 128 :tag-size 128 :tests '(#(1 "empty message" #vu8(227 79 21 199 189 129 153 48 254 157 102 224 193 102 230 28) #vu8() #vu8(212 122 252 161 216 87 165 147 52 5 177 235 122 92 183 175) #t ()) #(2 "...
ca5382f13a302b12df03f95a3fc5fe5114a22bbe00865bc8247febbf5de4a6dc
juspay/atlas
NotificationStatus.hs
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/atlas-transport/test/src/Flow/Allocation/NotificationStatus.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...
f05773f922082a0763d3a7ea7acef7895207eb267aa984408a51ccb0c3a387e7
fpco/badgers
NoFoundation.hs
# LANGUAGE CPP # module Import.NoFoundation ( module Import ) where import ClassyPrelude.Yesod as Import hiding (selectFirst) import Control.Error.Safe as Import (justZ) import Database.Persist.Sql as Import hiding (selectFirst) import Model as Import import Settings as Impor...
null
https://raw.githubusercontent.com/fpco/badgers/170fa0df4bd52241db0884a09b905a919b37ab1b/src/Import/NoFoundation.hs
haskell
# LANGUAGE CPP # module Import.NoFoundation ( module Import ) where import ClassyPrelude.Yesod as Import hiding (selectFirst) import Control.Error.Safe as Import (justZ) import Database.Persist.Sql as Import hiding (selectFirst) import Model as Import import Settings as Impor...
9c853006ef422a044c3dc78f3c0577ce49007f565dfa53282ab13abada168b08
ndmitchell/ghc-make
Arguments.hs
# LANGUAGE PatternGuards , RecordWildCards # module Arguments(Arguments(..), getArguments) where import Control.Monad import Data.Char import Data.Either import Data.List import Data.Maybe import System.Environment import System.Exit import Development.Shake.FilePath import Makefile data Arguments = Arguments ^ A...
null
https://raw.githubusercontent.com/ndmitchell/ghc-make/5164c721efa38a02be33d340cc91f5c737c29156/src/Arguments.hs
haskell
make ^ Arguments to pass to shake ^ Number of threads to use Interpretation of the flags make/-M mode ^ Where make should put its files, e.g. .ghc-make Where should things live ^ Root source file, .exe file ^ -hidir ^ -odir ^ .hi files ^ .o files | -odir is implicit since -odirfoo works, but -o is explicit ...
# LANGUAGE PatternGuards , RecordWildCards # module Arguments(Arguments(..), getArguments) where import Control.Monad import Data.Char import Data.Either import Data.List import Data.Maybe import System.Environment import System.Exit import Development.Shake.FilePath import Makefile data Arguments = Arguments ,...
32cf2691eb583fd12b289da06fbec8d1dc8df080c9903171061a215692fc7fc6
zenspider/schemers
exercise.5.03.scm
#!/usr/bin/env csi -s (require rackunit) (load "../lib/ch5-regsim.scm") Exercise 5.3 Design a machine to compute square roots using Newton 's method , as described in section * Note 1 - 1 - 7 : : : ;; ;; (define (sqrt x) ;; (define (good-enough? guess) ( < ( abs ( - ( square guess ) x ) ...
null
https://raw.githubusercontent.com/zenspider/schemers/2939ca553ac79013a4c3aaaec812c1bad3933b16/sicp/ch_5/exercise.5.03.scm
scheme
(define (sqrt x) (define (good-enough? guess) (define (improve guess) (average guess (/ x guess))) (define (sqrt-iter guess) (if (good-enough? guess) guess (sqrt-iter (improve guess)))) (sqrt-iter 1.0)) Begin by assuming that `good...
#!/usr/bin/env csi -s (require rackunit) (load "../lib/ch5-regsim.scm") Exercise 5.3 Design a machine to compute square roots using Newton 's method , as described in section * Note 1 - 1 - 7 : : : ( < ( abs ( - ( square guess ) x ) ) 0.001 ) ) (define (square n) (* n n)) (define (average a b) (/ ...
cf9c682d3c4e17e22fe71da658bc998cced6e990a0a53f1e09dc4129b929f12b
discljord/discljord
specs.clj
(ns discljord.connections.specs "Contains all the specs required for the `discljord.connections` namespace." (:require [clojure.spec.alpha :as s] [discljord.specs :as ds])) (s/def ::buffer-size number?) ;; --------------------------------------------------- ;; Specific command specs (s/def ::query string?)...
null
https://raw.githubusercontent.com/discljord/discljord/2e321cee59d8a627dedc0c460c3266698e018b34/src/discljord/connections/specs.clj
clojure
--------------------------------------------------- Specific command specs
(ns discljord.connections.specs "Contains all the specs required for the `discljord.connections` namespace." (:require [clojure.spec.alpha :as s] [discljord.specs :as ds])) (s/def ::buffer-size number?) (s/def ::query string?) (s/def ::limit number?) (s/def ::name string?) (s/def ::type (s/or :keyword #{:...
24eeb0094ea2f56bb5417d9d1a8b255c7355de79ba9c613d3d914c3fa53a2165
ocaml-flambda/flambda-backend
effects.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-flambda/flambda-backend/28dd98c2ec4b40a885d4e29260e5fb9e1157f407/middle_end/flambda2/terms/effects.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt and , Jane Street Europe Copyright 1996 Institut National de Recherche en Informatique et Copyright 2017 - -2019 Jane Street Group LLC the GNU Lesser General Public License version 2.1...
9c4a02790b221c4f990fb526dbcf60cb8b4b1f589bca79be8dd592d64396c0ea
uhc/uhc
AsmOptimize.hs
----------------------------------------------------------------------- The Core Assembler . Copyright 2001 , . All rights reserved . This file is distributed under the terms of the GHC license . For more information , see the file " license.txt " , which is included in the distribution . ...
null
https://raw.githubusercontent.com/uhc/uhc/8eb6914df3ba2ba43916a1a4956c6f25aa0e07c5/EHC/src/lvm/Asm/AsmOptimize.hs
haskell
--------------------------------------------------------------------- --------------------------------------------------------------------- ----------------------------------------------------------------------} -------------------------------------------------------------- asmOptimize --------------------------...
The Core Assembler . Copyright 2001 , . All rights reserved . This file is distributed under the terms of the GHC license . For more information , see the file " license.txt " , which is included in the distribution . The Core Assembler. Copyright 2001, Daan Leijen. All rights reserv...
96eb27e965e8bf01067dc4feaf760ada44aa713da36d2d3a89df936369786d3b
sol/tinc
Types.hs
# LANGUAGE GeneralizedNewtypeDeriving # module Tinc.Types where import Data.String data CacheDir newtype Path a = Path {path :: FilePath} deriving (Eq, Ord, Show, IsString)
null
https://raw.githubusercontent.com/sol/tinc/427df659df20d548bbe4c7bd0ea76cc13de40238/src/Tinc/Types.hs
haskell
# LANGUAGE GeneralizedNewtypeDeriving # module Tinc.Types where import Data.String data CacheDir newtype Path a = Path {path :: FilePath} deriving (Eq, Ord, Show, IsString)
28bad9d3ec33f1598393c3ec89a575fec04ba1d872e233f243ac6ad621d7b615
onyx-platform/onyx
leaf_function_test.clj
(ns onyx.peer.leaf-function-test (:require [clojure.core.async :refer [chan >!! <!! close! sliding-buffer]] [clojure.test :refer [deftest is testing]] [taoensso.timbre :refer [info error warn trace fatal] :as timbre] [onyx.plugin.core-async :refer [take-segments!]] [ony...
null
https://raw.githubusercontent.com/onyx-platform/onyx/74f9ae58cdbcfcb1163464595f1e6ae6444c9782/test/onyx/peer/leaf_function_test.clj
clojure
(ns onyx.peer.leaf-function-test (:require [clojure.core.async :refer [chan >!! <!! close! sliding-buffer]] [clojure.test :refer [deftest is testing]] [taoensso.timbre :refer [info error warn trace fatal] :as timbre] [onyx.plugin.core-async :refer [take-segments!]] [ony...
a60173c5e7df6cf39ec087c9349e26da7758bf75e58954209dc1277c07b25488
rmculpepper/binaryio
info.rkt
Copyright 2017 - 2019 SPDX - License - Identifier : Apache-2.0 OR MIT #lang info ;; ======================================== ;; pkg info (define version "1.3") (define collection "binaryio") (define deps '("base" "data-lib")) (define pkg-authors '(ryanc)) (define license '(Apache-2.0 OR MIT)) ;...
null
https://raw.githubusercontent.com/rmculpepper/binaryio/34ad07e9e33cf835670c4697572e93e8a0af5f02/binaryio-lib/info.rkt
racket
======================================== pkg info ======================================== collect info
Copyright 2017 - 2019 SPDX - License - Identifier : Apache-2.0 OR MIT #lang info (define version "1.3") (define collection "binaryio") (define deps '("base" "data-lib")) (define pkg-authors '(ryanc)) (define license '(Apache-2.0 OR MIT)) (define name "binaryio")
a72a507ec4ea589a9d57d455d82b29f0e484bd6f4e380e97f58f77af54395094
openmusic-project/openmusic
midi-sequence.lisp
;========================================================================= OpenMusic : Visual Programming Language for Music Composition ; Copyright ( c ) 1997- ... IRCAM - Centre , Paris , France . ; This file is part of the OpenMusic environment sources ; OpenMusic is free software : you can redist...
null
https://raw.githubusercontent.com/openmusic-project/openmusic/9560c064512a1598cd57bcc9f0151c0815178e6f/OPENMUSIC/code/projects/midi/classes/midi-sequence.lisp
lisp
========================================================================= (at your option) any later version. but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. =================...
OpenMusic : Visual Programming Language for Music Composition Copyright ( c ) 1997- ... IRCAM - Centre , Paris , France . This file is part of the OpenMusic environment sources OpenMusic is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License ...
a6945b29f2e4193fc203a3409e84ffedf7ac8749e5ba3c16b56713210b0200aa
pavlobaron/ErlangOTPBookSamples
paramm.erl
-module(paramm, [Id, Name]). -export([get_name/0, get_id/0, ping/0]). get_id() -> Id. get_name() -> Name. ping() -> pong.
null
https://raw.githubusercontent.com/pavlobaron/ErlangOTPBookSamples/50094964ad814932760174914490e49618b2b8c2/sprache/paramm.erl
erlang
-module(paramm, [Id, Name]). -export([get_name/0, get_id/0, ping/0]). get_id() -> Id. get_name() -> Name. ping() -> pong.
87a1839454f20dee7b63aa175528fae92fc20858bdbe16bb3c8dc1d5dd0c6a70
weblocks-framework/weblocks
data-editor.lisp
(in-package :weblocks) (export '(data-editor dataform-data dataform-class-store dataform-on-cancel dataform-on-success dataform-allow-close-p dataform-on-close data-editor-form-buttons render-dataform-data-buttons)) (defwidget data-editor () ((data :accessor dataform-data :in...
null
https://raw.githubusercontent.com/weblocks-framework/weblocks/fe96152458c8eb54d74751b3201db42dafe1708b/src/widgets/data-editor.lisp
lisp
(in-package :weblocks) (export '(data-editor dataform-data dataform-class-store dataform-on-cancel dataform-on-success dataform-allow-close-p dataform-on-close data-editor-form-buttons render-dataform-data-buttons)) (defwidget data-editor () ((data :accessor dataform-data :in...
fae25a43f099b61eeb99480ed2a81667234d2ee6f66cbd5931a27742e6073aa7
martinbaillie/slack-export-indexer
Types.hs
# LANGUAGE TemplateHaskell # {-# LANGUAGE OverloadedStrings #-} module Slack.Export.Types ( SlackEvent(..) , SlackUsers , SlackMapping(..) , mkSlackEvent , parseSlackMsgFile , parseSlackUserFile , parseSlackChanMsgFile , enrichSlackEventWithUserNames , isSlackMsgFile ) where ...
null
https://raw.githubusercontent.com/martinbaillie/slack-export-indexer/4ab01b527e7c0f55473dba9e64e129e42fa2871b/src/Slack/Export/Types.hs
haskell
# LANGUAGE OverloadedStrings # ------------------------------------------------------------------------------ Types ------------------------------------------------------------------------------ | File paths matching Slack message filename format | Tuple of SlackChannel:[SlackMessage] parsed and extracted from the ...
# LANGUAGE TemplateHaskell # module Slack.Export.Types ( SlackEvent(..) , SlackUsers , SlackMapping(..) , mkSlackEvent , parseSlackMsgFile , parseSlackUserFile , parseSlackChanMsgFile , enrichSlackEventWithUserNames , isSlackMsgFile ) where import Control.Monad ...
a2438f4c747238f89a47282127ea7edb56b196cd45f370e652708dfb96d24ae0
Kappa-Dev/KappaTools
export_to_KaDE.mli
* * export.mli * openkappa * , projet Abstraction / Antique , INRIA Paris - Rocquencourt * * Creation : Aug 23 2016 * Last modification : Time - stamp : < Aug 07 2017 > * * * * Copyright 2010,2011 Institut National de Recherche en Informatique et * en Automatique . All rights...
null
https://raw.githubusercontent.com/Kappa-Dev/KappaTools/eef2337e8688018eda47ccc838aea809cae68de7/core/KaSa_rep/export/export_to_KaDE.mli
ocaml
* * export.mli * openkappa * , projet Abstraction / Antique , INRIA Paris - Rocquencourt * * Creation : Aug 23 2016 * Last modification : Time - stamp : < Aug 07 2017 > * * * * Copyright 2010,2011 Institut National de Recherche en Informatique et * en Automatique . All rights...
7e5aa2b734e7d48f1f3e39a8d8656e9e8746b943cbb946cdd0bc50ff2a45eba4
luminus-framework/examples
config.clj
;--- Excerpted from " Web Development with Clojure , Second Edition " , published by The Pragmatic Bookshelf . Copyrights apply to this code . It may not be used to create training material , ; courses, books, articles, and the like. Contact us if you are in doubt. ; We make no guarantees that this code is fit fo...
null
https://raw.githubusercontent.com/luminus-framework/examples/cbeee2fef8f457a6a6bac2cae0b640370ae2499b/swagger-service/env/dev/clj/swagger_service/config.clj
clojure
--- courses, books, articles, and the like. Contact us if you are in doubt. We make no guarantees that this code is fit for any purpose. Visit for more book information. ---
Excerpted from " Web Development with Clojure , Second Edition " , published by The Pragmatic Bookshelf . Copyrights apply to this code . It may not be used to create training material , (ns swagger-service.config (:require [selmer.parser :as parser] [clojure.tools.logging :as log] [swag...
0bec63edfe0a49c5b0ec3f473805c10a26bff815a4b079492a7533c31e8c7e7e
locusmath/locus
function.clj
(ns locus.hyper.mapping.function (:require [locus.set.logic.core.set :refer :all] [locus.set.logic.limit.product :refer :all] [locus.set.mapping.function.image.image-function :refer :all] [locus.set.mapping.general.core.object :refer :all] [locus.set.mapping.invertible....
null
https://raw.githubusercontent.com/locusmath/locus/fb6068bd78977b51fd3c5783545a5f9986e4235c/src/clojure/locus/hyper/mapping/function.clj
clojure
The category Rel of sets and relations does not form an elementary topos. As a consequence, it lacks many of the desirable features of a topos. In order to get around this, we represent Rel as a concrete subcategory of Sets consisting of image functions, where an image function is a complete union homomorphism of p...
(ns locus.hyper.mapping.function (:require [locus.set.logic.core.set :refer :all] [locus.set.logic.limit.product :refer :all] [locus.set.mapping.function.image.image-function :refer :all] [locus.set.mapping.general.core.object :refer :all] [locus.set.mapping.invertible....
878a680da3c53e43c6956e3585a863e97138437ac71cbe7a780d6140d7be1cd6
semilin/layoup
heartae.lisp
(MAKE-LAYOUT :NAME "heartae" :MATRIX (APPLY #'KEY-MATRIX '("qcdvkjyou;" "rsthlpneia" "wgbmxzf,./")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
null
https://raw.githubusercontent.com/semilin/layoup/27ec9ba9a9388cd944ac46206d10424e3ab45499/data/layouts/heartae.lisp
lisp
(MAKE-LAYOUT :NAME "heartae" :MATRIX (APPLY #'KEY-MATRIX '("qcdvkjyou;" "rsthlpneia" "wgbmxzf,./")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
2132f1482156406f73c34f777922fc707fe720209fef881e61efdf56e07ada35
huangz1990/real-world-haskell-cn
exercise2-3.hs
concat' :: [[a]] -> [a] concat' = foldr (++) []
null
https://raw.githubusercontent.com/huangz1990/real-world-haskell-cn/f67b07dd846b1950d17ff941d650089fcbbe9586/exercise/ch4/exercise2-3.hs
haskell
concat' :: [[a]] -> [a] concat' = foldr (++) []
cadddf8f90333b8548f7345e8b8e80676680bf699c80dd6ac77247eb4e9a89a2
lorenzo/wrecker
Options.hs
# LANGUAGE RecordWildCards # module Wrecker.Options where import Control.Exception import Data.Monoid import Data.Semigroup (Semigroup(..)) import Options.Applicative import Wrecker.Logger | There are two typical ways to invoke ' wrecker ' . ' RunCount ' will execute each a script ' n ' times on each thread...
null
https://raw.githubusercontent.com/lorenzo/wrecker/595ce8df42a706f3e49ec6782c9a87a86162c519/src/Wrecker/Options.hs
haskell
^ The number of bins for the histogram time period or for a specified number of runs. to finish ^ This controls the command line display. It can be either Interactive ^ The log severity to shown in stderr ^ Set this to filter the benchmarks using a pattern ^ Limit the request name column to the given size ^...
# LANGUAGE RecordWildCards # module Wrecker.Options where import Control.Exception import Data.Monoid import Data.Semigroup (Semigroup(..)) import Options.Applicative import Wrecker.Logger | There are two typical ways to invoke ' wrecker ' . ' RunCount ' will execute each a script ' n ' times on each thread...
39ac3e00afe69cb5b928d164fe600677129a6945b9ab50852ba500e5102b8bc9
pveber/bistro
ChIPQC.mli
open Bistro open Formats type 'a sample = { id : string ; tissue : string ; factor : string ; replicate : string ; bam : [`indexed_bam] directory ; peaks : (#bed3 as 'a) file ; } val run : 'a sample list -> [`ChIPQC] directory * Beware : does n't work with only one sample ( see / ) /) *)
null
https://raw.githubusercontent.com/pveber/bistro/da0ebc969c8c5ca091905366875cbf8366622280/lib/bio/ChIPQC.mli
ocaml
open Bistro open Formats type 'a sample = { id : string ; tissue : string ; factor : string ; replicate : string ; bam : [`indexed_bam] directory ; peaks : (#bed3 as 'a) file ; } val run : 'a sample list -> [`ChIPQC] directory * Beware : does n't work with only one sample ( see / ) /) *)
4b2ca14343472b7abac2401c1bd731f075d70e8b1d2d634552f4977af524c3d9
dryewo/cyrus
db.clj
(ns {{namespace}}.lib.db (:require [cheshire.core :as json] [clojure.java.jdbc :as jdbc] [camel-snake-kebab.core :as csk] [hugsql.adapter] [hugsql.core] [conman.core :as conman] [clojure.string :as str]) (:import org.postgresql.util.PGobject ...
null
https://raw.githubusercontent.com/dryewo/cyrus/880c842e0baa11887854ec3d912c044a2a500449/resources/leiningen/new/cyrus/src/_namespace_/lib/db.clj
clojure
Uncomment for clj-time Timestamp (result-set-read-column [val _ _] (tc/from-sql-time val)) Uncomment for clj-time DateTime (sql-value [v] (tc/to-sql-time v)) ## This enables automatic case conversion to kebab-case so that no snake_case needs to be used in application code Before using any of the with-* function...
(ns {{namespace}}.lib.db (:require [cheshire.core :as json] [clojure.java.jdbc :as jdbc] [camel-snake-kebab.core :as csk] [hugsql.adapter] [hugsql.core] [conman.core :as conman] [clojure.string :as str]) (:import org.postgresql.util.PGobject ...
93629180a7490ddc5f202c50f6c57908313f6d881c969516271e00e6d9959a7c
merlin-lang/merlin
Merlin_Gurobi.ml
open Merlin_Types open Merlin_Dictionaries open Merlin_Util open Merlin_Pretty open Merlin_LPPretty open Merlin_LPTypes open Merlin_Globals open Merlin_BigGraph open Frenetic_Network open Merlin_NFA open Merlin_Error open Unix open Str Static information let lp_file = "merlin.lp" let sol_file = "merlin.sol" (*****...
null
https://raw.githubusercontent.com/merlin-lang/merlin/35a88bce024a8b8be858c796f1cd718e4a660529/lib/Merlin_Gurobi.ml
ocaml
**** Gurobi interaction functions **** Read in solution from the filename, keeping only unassigned variables Get the functions that the target node should implement TODO(rjs) look up src and dst, merge on the set that is already there fn_tbl should be storing a string set appropriate measurements Write an...
open Merlin_Types open Merlin_Dictionaries open Merlin_Util open Merlin_Pretty open Merlin_LPPretty open Merlin_LPTypes open Merlin_Globals open Merlin_BigGraph open Frenetic_Network open Merlin_NFA open Merlin_Error open Unix open Str Static information let lp_file = "merlin.lp" let sol_file = "merlin.sol" let r...
0c03f22bec186ca76f3279945fe02b79b6d8a5f672ea268e045eaf122bcb1d00
d-podkorytov/Paillier_Crypto
lin.erl
-module(lin). -doc([{author,'Joe Armstrong'}, {title,"Linear algebra utilities."}, {keywords, [linear,algebra]}, {date,981103}]). -export([pow/3, inv/2, solve/2, str2int/1, int2str/1, gcd/2]). %% pow(A, B, M) => (A^B) mod M examples pow(9726,3533,11413 ) = 5761 pow(5971,6597,11413 ) = ...
null
https://raw.githubusercontent.com/d-podkorytov/Paillier_Crypto/5e08300d4e57fd903289851600004dcc59160a5b/lin.erl
erlang
pow(A, B, M) => (A^B) mod M B2 = B1 or B1+1 inv(A, B) = C | no_inverse computes C such that solve(A, B) => {X, Y} | insoluble solve the linear congruence S tag1 E tag1 S tag2 E tag2 greatest common denominator
-module(lin). -doc([{author,'Joe Armstrong'}, {title,"Linear algebra utilities."}, {keywords, [linear,algebra]}, {date,981103}]). -export([pow/3, inv/2, solve/2, str2int/1, int2str/1, gcd/2]). examples pow(9726,3533,11413 ) = 5761 pow(5971,6597,11413 ) = 9726 pow(A, 1, M) -> A rem...
b6e577ad9327473653a90f3cce0fbbdde829f800af920754f3a350a4e36db34e
runtimeverification/haskell-backend
MockAllPath.hs
module Test.Kore.Reachability.MockAllPath ( test_unprovenNodes, test_transitionRule_Begin, test_transitionRule_CheckImplication, test_transitionRule_ApplyClaims, test_transitionRule_ApplyAxioms, test_runStrategy, ) where import Data.Graph.Inductive qualified as Gr import Data.Limit ( Limit ...
null
https://raw.githubusercontent.com/runtimeverification/haskell-backend/c3a2614e132efe1abe85b806791c2dd27f65329c/kore/test/Test/Kore/Reachability/MockAllPath.hs
haskell
-- * Tests start state rules to apply in parallel transitions Proof goal Unproven goals Proof goal * Definitions | Simple program configurations for unit testing. | The final nodes of an execution graph which were not proven. See also: 'Strategy.pickFinal', 'extractUnproven'
module Test.Kore.Reachability.MockAllPath ( test_unprovenNodes, test_transitionRule_Begin, test_transitionRule_CheckImplication, test_transitionRule_ApplyClaims, test_transitionRule_ApplyAxioms, test_runStrategy, ) where import Data.Graph.Inductive qualified as Gr import Data.Limit ( Limit ...
d7d98a6ff4319fc7e67da93bfcd879c6e25161d93209aa8e6b077d5a1b58764d
wildbit/archaeologist
memory_test.clj
(ns archaeologist.memory-test (:require [clojure.test :refer :all] [archaeologist.core :refer :all] [archaeologist.memory :refer :all] [archaeologist.test-helper :refer :all])) (def structure {"a" "a" "b" "b" "c/d" "d" "c/e" "e" ...
null
https://raw.githubusercontent.com/wildbit/archaeologist/61dbaf9bb4f221e5769cda75b846c939b84d7e56/test/archaeologist/memory_test.clj
clojure
(ns archaeologist.memory-test (:require [clojure.test :refer :all] [archaeologist.core :refer :all] [archaeologist.memory :refer :all] [archaeologist.test-helper :refer :all])) (def structure {"a" "a" "b" "b" "c/d" "d" "c/e" "e" ...
f328c5c6e9a538c62926ea84d123b589f4d92844b3267ed81b4ba34f08d8dbc4
teamwalnut/graphql-ppx
nonrecursive_input.ml
open Test_shared module MyQuery = [%graphql {| query ($arg: NonrecursiveInput!) { nonrecursiveInput(arg: $arg) } |}] type qt = MyQuery.t let construct_recursive_input_type () = test_json_ (MyQuery.makeVariables ~arg: { field = Some "test"; embeddedInput = Some [| S...
null
https://raw.githubusercontent.com/teamwalnut/graphql-ppx/8276452ebe8d89a748b6b267afc94161650ab620/tests_native/nonrecursive_input.ml
ocaml
open Test_shared module MyQuery = [%graphql {| query ($arg: NonrecursiveInput!) { nonrecursiveInput(arg: $arg) } |}] type qt = MyQuery.t let construct_recursive_input_type () = test_json_ (MyQuery.makeVariables ~arg: { field = Some "test"; embeddedInput = Some [| S...
9b89f2f9e4e120d8fbe71419eb05e4786ae5c4b1be94a26dfe8475c963f6f5fd
fossas/fossa-cli
Gradle.hs
# LANGUAGE TemplateHaskell # -- Strategy.Gradle provides dependency analysis for Gradle projects. It works by -- looking for `build.gradle` files and shelling out to `gradle` using a bundled -- Gradle init script (`jsondeps.gradle`). The init script does most of the -- thinking, and the analyzer just invokes it and pa...
null
https://raw.githubusercontent.com/fossas/fossa-cli/041724831d565de8ee1b72376a78961110a9f0dc/src/Strategy/Gradle.hs
haskell
Strategy.Gradle provides dependency analysis for Gradle projects. It works by looking for `build.gradle` files and shelling out to `gradle` using a bundled Gradle init script (`jsondeps.gradle`). The init script does most of the thinking, and the analyzer just invokes it and parses the JSON output. If you're debu...
# LANGUAGE TemplateHaskell # - Gradle tasks : module Strategy.Gradle ( discover, GradleProject, ) where import App.Fossa.Analyze.Types (AnalyzeProject (analyzeProject'), analyzeProject) import App.Fossa.Config.Analyze (ExperimentalAnalyzeConfig (allowedGradleConfigs)) import Control.Algebra (Has) import Contro...
8c502fb6166e275fdd2a1408f77516d4d1245fa520720a4374289a8c92f2b23d
candera/vmt
coordinates.cljc
(ns weathergen.coordinates "Functions for converting between various ways of locating things in the Falcon world." (:require [weathergen.math :as math] [weathergen.database :as db])) Weatherspace is a 59x59 grid covering the whole world . Origin is at ;; the upper left. TODO: Is it still 59x59 in a...
null
https://raw.githubusercontent.com/candera/vmt/8cf450e6c34af87d748152afd7f547b92ae9b38e/src/weathergen/coordinates.cljc
clojure
the upper left. TODO: Is it still 59x59 in a bigger theater? left. All of this is a total mess. I need to go through and fix the way that coordinates are done so that it's consistent. TODO: Another place where we're assuming 59x59. We're going to assume 59x59 for now.
(ns weathergen.coordinates "Functions for converting between various ways of locating things in the Falcon world." (:require [weathergen.math :as math] [weathergen.database :as db])) Weatherspace is a 59x59 grid covering the whole world . Origin is at Falcon has two coordinate systems . One is i...
78f5f825503eb8fcaf93d394cab8ce5f03bcfda0bdfa1bd40c7eca6cec17ee90
aigarashi/copl-tools
pp.ml
open Format open Core let g = "MLiv" let pr = fprintf let is_negative i = (i < 0) (* generic functions to generate parens depending on precedence *) let with_paren lt ppf_e e_up ppf e = let (<) = lt in if e < e_up then pr ppf "(%a)" ppf_e e else pr ppf "%a" ppf_e e (* precedence for expressions *) let rec is_l...
null
https://raw.githubusercontent.com/aigarashi/copl-tools/3c4da117083a0870334c8eef270206b11060514e/checker/EvalRefML3/pp.ml
ocaml
generic functions to generate parens depending on precedence precedence for expressions if e is the left operand of e_up, do you need parentheses for e? mult associates stronger than plus or minus if e is the right operand of e_up, do you need parentheses for e? mult associates stronger than plus or minus, ...
open Format open Core let g = "MLiv" let pr = fprintf let is_negative i = (i < 0) let with_paren lt ppf_e e_up ppf e = let (<) = lt in if e < e_up then pr ppf "(%a)" ppf_e e else pr ppf "%a" ppf_e e let rec is_last_longexp = function BinOp(_,_,e) -> is_last_longexp e | If(_,_,_) | Let(_,_,_) | Abs(_,_) |...
c745ea6e18d412d2eb9c6b9b75775b5c08b085a7a40dcadd668531ee1ec50e86
pcostanza/mop-features
metaobject-readers.lisp
(defclass test-super () (a b) (:default-initargs :a 'foo :b 'bar)) (defclass test-sub (test-super) (c) (:default-initargs :b 'baz)) (unless (class-finalized-p (find-class 'test-sub)) (finalize-inheritance (find-class 'test-sub))) (ignore-errors (loop for default-initarg in (class-default-initargs (find-c...
null
https://raw.githubusercontent.com/pcostanza/mop-features/a967752c885285b74473b940103f8cb2872aced8/tests/metaobject-readers.lisp
lisp
(defclass test-super () (a b) (:default-initargs :a 'foo :b 'bar)) (defclass test-sub (test-super) (c) (:default-initargs :b 'baz)) (unless (class-finalized-p (find-class 'test-sub)) (finalize-inheritance (find-class 'test-sub))) (ignore-errors (loop for default-initarg in (class-default-initargs (find-c...
f7997846f82f6033457443f30e1d75ef5bb2c8196e6fc6c82bcb334403fde301
tsloughter/kuberl
kuberl_v1_container.erl
-module(kuberl_v1_container). -export([encode/1]). -export_type([kuberl_v1_container/0]). -type kuberl_v1_container() :: #{ 'args' => list(), 'command' => list(), 'env' => list(), 'envFrom' => list(), 'image' => binary(), 'imagePullPolicy' => binary(), 'lifecycle' => kub...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1_container.erl
erlang
-module(kuberl_v1_container). -export([encode/1]). -export_type([kuberl_v1_container/0]). -type kuberl_v1_container() :: #{ 'args' => list(), 'command' => list(), 'env' => list(), 'envFrom' => list(), 'image' => binary(), 'imagePullPolicy' => binary(), 'lifecycle' => kub...
7fb1b8c89c5aa5caaebcf0affbf27f0d87cf4a859a8e737bd390c6591bcf2eef
wireless-net/erlang-nommu
wxTaskBarIconEvent.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2013 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Publi...
null
https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/wx/src/gen/wxTaskBarIconEvent.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitatio...
Copyright Ericsson AB 2008 - 2013 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(wxTaskBarIconEvent). -include("wx...
b2ff4b5adc0d889b93e358266407f9c1acbf1255a99232daa6437eb75e248487
mzp/coq-ide-for-ios
proof_trees.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/coqlib/proofs/proof_trees.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i i This module declares readable c...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * i $ I d : proof_trees.mli 133...
256e7fde1782cb7780f3da28e05a2f353f0b9dcf923154aa6ee0da4e4e99f219
theodormoroianu/SecondYearCourses
HaskellChurch_20210415163333.hs
{-# LANGUAGE RankNTypes #-} module HaskellChurch where A boolean is any way to choose between two alternatives newtype CBool = CBool {cIf :: forall t. t -> t -> t} An instance to show as regular Booleans instance Show CBool where show b = "cBool " <> show (cIf b True False) The boolean constant true always ...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/HaskellChurch_20210415163333.hs
haskell
# LANGUAGE RankNTypes # The boolean negation switches the alternatives The boolean conjunction can be built as a conditional The boolean disjunction can be built as a conditional a pair is a way to compute something based on the values contained within the pair. a function to be applied on the values, it will apply i...
module HaskellChurch where A boolean is any way to choose between two alternatives newtype CBool = CBool {cIf :: forall t. t -> t -> t} An instance to show as regular Booleans instance Show CBool where show b = "cBool " <> show (cIf b True False) The boolean constant true always chooses the first alternativ...
4aa2ed6f771b12d7bf09e41dd722e9bbb63802fb53d2605fc360593e6671ff1b
dradtke/Lisp-Text-Editor
editor.lisp
(asdf:oos 'asdf:load-op :gtk-cffi) (asdf:oos 'asdf:load-op :babel) (asdf:oos 'asdf:load-op :flexi-streams) (defpackage #:editor (:use #:common-lisp #:gtk-cffi #:g-object-cffi)) (in-package #:editor) (gtk-init) (defvar *window*) (defun open-file (&rest rest) (declare (ignore rest)) (let ((d (make-instance 'f...
null
https://raw.githubusercontent.com/dradtke/Lisp-Text-Editor/b0947828eda82d7edd0df8ec2595e7491a633580/quicklisp/dists/quicklisp/software/gtk-cffi-20120208-cvs/examples/editor.lisp
lisp
filename fetched ('h-paned ( text ( buffer ( object - by - id : ) ) ) " 1 "
(asdf:oos 'asdf:load-op :gtk-cffi) (asdf:oos 'asdf:load-op :babel) (asdf:oos 'asdf:load-op :flexi-streams) (defpackage #:editor (:use #:common-lisp #:gtk-cffi #:g-object-cffi)) (in-package #:editor) (gtk-init) (defvar *window*) (defun open-file (&rest rest) (declare (ignore rest)) (let ((d (make-instance 'f...
694c24980bcbb3c0b68a9830fc4b18e38272b1c57ff1009df875b9201669daff
ormf/cm
cm.lisp
(in-package :cl-user) (require :cm) ;;; add other use-systems here to autoload them at startup. see ;;; cm/doc/install.html for more information. (use-system :t-utility) (use-system :ltk) (use-system :cl-ambisonics) (use-system :osc) (use-system :cl-meap) (use-system :snd-editor) (use-system :cm-plus) (use-system :c...
null
https://raw.githubusercontent.com/ormf/cm/26843eec009bd6c214992a8e67c49fffa16d9530/src/cm.lisp
lisp
add other use-systems here to autoload them at startup. see cm/doc/install.html for more information.
(in-package :cl-user) (require :cm) (use-system :t-utility) (use-system :ltk) (use-system :cl-ambisonics) (use-system :osc) (use-system :cl-meap) (use-system :snd-editor) (use-system :cm-plus) (use-system :cl-keykit) (use-system :cl-scala) (use-system :cs-instr) (use-system :sc-instr)
6278c99bc66ff794c5e3cb2ff8966d614be924fe1208bc3668b0faa1c186ad2c
rixed/ramen
function_name.ml
Manually written impostor to function_name_wire , converting to N.func . open DessserOCamlBackEndHelpers module N = RamenName module Wire = Function_name_wire.DessserGen module DessserGen = struct type t = N.func let to_row_binary_with_mask m t p = Wire.to_row_binary_with_mask m (t : N.func :> string) p ...
null
https://raw.githubusercontent.com/rixed/ramen/675d0f5ec2baecaad6be1cfbcfb1673048d934a5/src/function_name.ml
ocaml
Manually written impostor to function_name_wire , converting to N.func . open DessserOCamlBackEndHelpers module N = RamenName module Wire = Function_name_wire.DessserGen module DessserGen = struct type t = N.func let to_row_binary_with_mask m t p = Wire.to_row_binary_with_mask m (t : N.func :> string) p ...
b16b70719b6b96db5358a271dcebfb5ef629a05823327cad1bde88c704d3f8f4
anton-k/processing-for-haskell
Bezier.hs
-- original code: -- . -- The first two parameters for the bezier ( ) function specify the first point in the curve and the last two parameters specify -- the last point. The middle parameters set the control points that -- define the shape of the curve. import Graphics.Proc main = runProc $ def { procSetup =...
null
https://raw.githubusercontent.com/anton-k/processing-for-haskell/7f99414f3c266135b6a2848978fcb572fd7b67b1/examples/Form/Bezier.hs
haskell
original code: the last point. The middle parameters set the control points that define the shape of the curve.
. The first two parameters for the bezier ( ) function specify the first point in the curve and the last two parameters specify import Graphics.Proc main = runProc $ def { procSetup = setup, procDraw = draw } width = 640 height = 360 setup = do size (P2 width height) stroke (grey 255) noFill draw () ...
7ea000f7f9a31826dec95a2a1dd4be4f77b2f684af01e774c875e8357e0203b7
akira08280/programming-in-haskell
transmit.hs
Binary string transmitter example from chapter 7 of Programming in Haskell , , Cambridge University Press , 2016 . import Data.Char -- Base conversion type Bit = Int bin2int :: [Bit] -> Int bin2int = foldr (\x y -> x + 2*y) 0 int2bin :: Int -> [Bit] int2bin 0 = [] int2bin n = n `mod` 2 : int2bin (n `div` 2) ...
null
https://raw.githubusercontent.com/akira08280/programming-in-haskell/4067f729145429604aa7f3c8eee59b409addc685/Code/transmit.hs
haskell
Base conversion
Binary string transmitter example from chapter 7 of Programming in Haskell , , Cambridge University Press , 2016 . import Data.Char type Bit = Int bin2int :: [Bit] -> Int bin2int = foldr (\x y -> x + 2*y) 0 int2bin :: Int -> [Bit] int2bin 0 = [] int2bin n = n `mod` 2 : int2bin (n `div` 2) make8 :: [Bit] -> ...
2a5debd800942fd951d458953bad09d2e0b64f9a4d261e115fd4846d1d0bbafc
appleby/Lisp-In-Small-Pieces
chap7d.scm
$ I d : chap7d.scm , v 4.2 2006/11/24 18:16:32 ;;;(((((((((((((((((((((((((((((((( L i S P )))))))))))))))))))))))))))))))) ;;; This file is derived from the files that accompany the book: LISP Implantation Semantique Programmation ( InterEditions , France ) or Lisp In Small Pieces ( Cambridge Unive...
null
https://raw.githubusercontent.com/appleby/Lisp-In-Small-Pieces/af4139232bb7170f32470774a92d647e83254721/src/chap7d.scm
scheme
(((((((((((((((((((((((((((((((( L i S P )))))))))))))))))))))))))))))))) This file is derived from the files that accompany the book: The original sources can be downloaded from the author's website at -systeme.lip6.fr/Christian.Queinnec/WWW/LiSP.html This file may have been altered from the original in order to...
$ I d : chap7d.scm , v 4.2 2006/11/24 18:16:32 LISP Implantation Semantique Programmation ( InterEditions , France ) or Lisp In Small Pieces ( Cambridge University Press ) . By Christian Queinnec < > (define *val* #f) (define *fun* #f) (define *arg1* #f) (define *arg2* #f) (define *pc* 0) (...
8e0e8aa99be74db1a9189b195863ddb7d00b01d155ff9aa1ac2d281770d99831
mirage/ocaml-fat
fat_path.mli
* Copyright ( C ) 2011 - 2013 Citrix Systems Inc * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED "...
null
https://raw.githubusercontent.com/mirage/ocaml-fat/8683dc941cf2c4cb5af4d3bb5c358c3a95181439/src/fat_path.mli
ocaml
* Copyright ( C ) 2011 - 2013 Citrix Systems Inc * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED "...
050841cd79c8e34f16104eb7bbbf15be62ceab86f5b536b811437960ddc6c0a0
hyperfiddle/electric
free2.clj
(ns dustin.via.free2 (:require [clojure.walk :refer [postwalk]] [dustin.via.free :refer [interpret-1 Interpreter]] [meander.epsilon :refer [match]] [meander.strategy.epsilon :as r] [minitest :refer [tests]] [missionary.core :as m])) ;(defprotocol Interpreter ; (apply-id [M as]) ; (fapply [M...
null
https://raw.githubusercontent.com/hyperfiddle/electric/1c6c3891cbf13123fef8d33e6555d300f0dac134/scratch/dustin/y2021/via/free2.clj
clojure
(defprotocol Interpreter (apply-id [M as]) (fapply [M ms]) (join [M mma]) (pure [M c]) #_(interpret-1 [M form]) #_(interpret [M ast])) (def h1 (partial fix :h1)) Each component has a reactor signal for its past value Since they are not called from rfor – they are static calls – the react keys are not nee...
(ns dustin.via.free2 (:require [clojure.walk :refer [postwalk]] [dustin.via.free :refer [interpret-1 Interpreter]] [meander.epsilon :refer [match]] [meander.strategy.epsilon :as r] [minitest :refer [tests]] [missionary.core :as m])) (defn interpret [interpreter effects ast] (clojure.walk/p...
faba8b4a12cb2a9ca44ff94f5ac83fa1e5964bf82e6b784dcc29c68baaaa116b
futurice/haskell-mega-repo
Request.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE StandaloneDeriving #-} # LANGUAGE UndecidableInstances # module Personio.Request ( PersonioReq(..), requestDi...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/2647723f12f5435e2edc373f6738386a9668f603/personio-client/src/Personio/Request.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # * All data * Some ----------------------------------------------------------------------------- Some ----------------------------------------------...
# LANGUAGE FlexibleContexts # # LANGUAGE UndecidableInstances # module Personio.Request ( PersonioReq(..), requestDict, PersonioAllData (..), SomePersonioReq (..), SomePersonioRes (..), ) where import Data.Aeson.Compat (object, pairs, withObject, withText, (.:), (.=)) import Data.Const...
cb8b9f01568522c1550f62522a394b2030628d426db0dcd9a5dcf184434f1e80
crategus/cl-cffi-gtk
rtest-cairo-context.lisp
(def-suite cairo-context :in cairo-suite) (in-suite cairo-context) ;;; --- Types and Values ------------------------------------------------------- ;;; cairo_antialias_t ;;; cairo_fill_rule_t ;;; cairo_line_cap_t ;;; cairo_line_join_t ;;; ;;; cairo_rectangle_t ;;; cairo_rectangle_list_t...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/22156e3e2356f71a67231d9868abcab3582356f3/test/rtest-cairo-context.lisp
lisp
--- Types and Values ------------------------------------------------------- cairo_antialias_t cairo_fill_rule_t cairo_line_cap_t cairo_line_join_t cairo_rectangle_t cairo_rectangle_list_t --- Functions -------------------------------------------------------------- cairo_create ...
(def-suite cairo-context :in cairo-suite) (in-suite cairo-context) (test cairo-create (let* ((surface (cairo-image-surface-create :rgb24 100 150)) (context (cairo-create surface))) (is (pointerp context)) (is (eq :success (cairo-status context))) (is-false (cairo-destroy conte...
64cf540ff49c87e5cacfec5f7aecd18b9e7d8990c90546acdf92ec1faf825288
halgari/mjolnir
simple_tests.clj
(ns mjolnir.simple-tests (:require [mjolnir.inference :refer [infer-all]] [mjolnir.validation :refer [validate]] [clojure.test :refer :all] [datomic.api :refer [q db] :as d] [mjolnir.config :refer [*int-type* *target* default-target *float-type*]] [mjolnir.ssa :refer :all] [mjolnir.llvm-builder :...
null
https://raw.githubusercontent.com/halgari/mjolnir/cfb82a55bc316a6a0e235b46f6ee04c6b55c8cc5/test/mjolnir/simple_tests.clj
clojure
Float math test - mandelbrot
(ns mjolnir.simple-tests (:require [mjolnir.inference :refer [infer-all]] [mjolnir.validation :refer [validate]] [clojure.test :refer :all] [datomic.api :refer [q db] :as d] [mjolnir.config :refer [*int-type* *target* default-target *float-type*]] [mjolnir.ssa :refer :all] [mjolnir.llvm-builder :...
61f3fe51aa9461f4c4795f2621e3358a98546893b7af040946feefdf9308a75c
art-w/mcavl
core.ml
module Make (E : S.Ordered_poly) = struct include Pure.Make (E) type result = Ok | Overflow | Looking_for_life | Retry let empty () = Atomic.make (Pure.empty ~s:Alive) let singleton elt = Atomic.make (Pure.singleton ~s:Alive elt) let rec height t = s_height (Atomic.get t) and s_height = function | ...
null
https://raw.githubusercontent.com/art-w/mcavl/bf7d3414dbb805a61ebbe809cbb3f2a7ec599c42/src/core.ml
ocaml
module Make (E : S.Ordered_poly) = struct include Pure.Make (E) type result = Ok | Overflow | Looking_for_life | Retry let empty () = Atomic.make (Pure.empty ~s:Alive) let singleton elt = Atomic.make (Pure.singleton ~s:Alive elt) let rec height t = s_height (Atomic.get t) and s_height = function | ...
611c6f29340535a9665765f7288ac89414d35ab1781b11432baa554a26259c1f
onyx-platform/lib-onyx
project.clj
(defproject org.onyxplatform/lib-onyx "0.14.1.0" :description "A library to support additional functionality in Onyx" :url "-platform/lib-onyx" :license {:name "Eclipse Public License" :url "-v10.html"} :repositories {"snapshots" {:url "" :username :env ...
null
https://raw.githubusercontent.com/onyx-platform/lib-onyx/36aaf4b9ec458d6b135c4f27b00fa4334fb1ec33/project.clj
clojure
(defproject org.onyxplatform/lib-onyx "0.14.1.0" :description "A library to support additional functionality in Onyx" :url "-platform/lib-onyx" :license {:name "Eclipse Public License" :url "-v10.html"} :repositories {"snapshots" {:url "" :username :env ...
3636fa11d4cf412f8e7a16130f0d4d3fcd6a91eed9a0f2ba5183ce4b65f2ddbd
faber-lang/faber
Utils.hs
module Utils where import qualified Data.Map as Map flip3 :: (a -> b -> c -> d) -> b -> c -> a -> d flip3 f b c a = f a b c mapMapM :: (Ord k, Monad m) => (a -> m b) -> Map.Map k a -> m (Map.Map k b) mapMapM f = Map.foldrWithKey folder (return Map.empty) where folder k v acc = Map.insert k <$> f v <*> acc map...
null
https://raw.githubusercontent.com/faber-lang/faber/d022f52b22f209f1f10609949495b689e886c75f/src/Utils.hs
haskell
module Utils where import qualified Data.Map as Map flip3 :: (a -> b -> c -> d) -> b -> c -> a -> d flip3 f b c a = f a b c mapMapM :: (Ord k, Monad m) => (a -> m b) -> Map.Map k a -> m (Map.Map k b) mapMapM f = Map.foldrWithKey folder (return Map.empty) where folder k v acc = Map.insert k <$> f v <*> acc map...
eabbf0c966f60bbeea1e1064975d3284a78793e6f91fdeeb0b9e6342144f532f
fpco/ide-backend
Find.hs
----------------------------------------------------------------------------- -- | -- Module : Distribution.Simple.Program.Types Copyright : 2013 -- -- Maintainer : -- Portability : portable -- -- A somewhat extended notion of the normal program search path concept. -- -- Usually when finding executa...
null
https://raw.githubusercontent.com/fpco/ide-backend/860636f2d0e872e9481569236bce690637e0016e/ide-backend/TestSuite/inputs/Cabal-1.22.0.0/Distribution/Simple/Program/Find.hs
haskell
--------------------------------------------------------------------------- | Module : Distribution.Simple.Program.Types Maintainer : Portability : portable A somewhat extended notion of the normal program search path concept. Usually when finding executables we just want to look in the usual places ...
Copyright : 2013 using the OS 's usual method for doing so . In the normal OS - specific method is captured by ' findExecutable ' . On all common that makes use of a @PATH@ environment variable , ( though on Windows it is not just the @PATH@ ) . module Distribution.Simple.Program.Find ( ProgramSear...
a1d4451136d7adb44c7094da5c52c5f3f9371d7aef1d80e4ef5302744313ef65
fccm/glMLite
SExprLite.mli
(** This module is a very simple parsing library for S-expressions. *) Copyright ( C ) 2009 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 the Software without restriction , includi...
null
https://raw.githubusercontent.com/fccm/glMLite/c52cd806909581e49d9b660195576c8a932f6d33/examples/SExprLite.mli
ocaml
* This module is a very simple parsing library for S-expressions. * the type of S-expressions * parse from a string * parse from an input channel * parse from a file * parse from a custom function, [None] indicates the end of the flux * a dump function for the type [sexpr]
Copyright ( C ) 2009 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 the Software without restriction , including without limitation the rights to use , copy , modify , merge , p...
791bd65cb7b6b1a69a5cb2554da4d64e75afdcdea9ef57f492aa349aaad12fdd
Clojure2D/clojure2d-examples
hittable_list.clj
(ns rt4.the-rest-of-your-life.ch06a.hittable-list (:require [rt4.the-rest-of-your-life.ch06a.interval :as interval] [rt4.the-rest-of-your-life.ch06a.hittable :as hittable] [rt4.the-rest-of-your-life.ch06a.aabb :as aabb]) (:import [rt4.the_rest_of_your_life.ch06a.interval Interval] ...
null
https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/f47e1655902cc6bf1590aaecc144ac274ed3af66/src/rt4/the_rest_of_your_life/ch06a/hittable_list.clj
clojure
(ns rt4.the-rest-of-your-life.ch06a.hittable-list (:require [rt4.the-rest-of-your-life.ch06a.interval :as interval] [rt4.the-rest-of-your-life.ch06a.hittable :as hittable] [rt4.the-rest-of-your-life.ch06a.aabb :as aabb]) (:import [rt4.the_rest_of_your_life.ch06a.interval Interval] ...
df9793cf809bf0069f49c290151c3479c8cca736cf38157ea3581bd5f007a27b
Mzk-Levi/texts
Ordering.hs
{-# LANGUAGE TemplateHaskell, FlexibleInstances, IncoherentInstances, ScopedTypeVariables #-} -------------------------------------------------------------------------------- -- | Module : Data . Comp . . Derive . Ordering Copyright : ( c ) 2011 , -- License : BSD3 Maintainer : < >...
null
https://raw.githubusercontent.com/Mzk-Levi/texts/34916d6531af9bc39e50b596247ac2017d8cfdc3/compdata-param-master/src/Data/Comp/Param/Derive/Ordering.hs
haskell
# LANGUAGE TemplateHaskell, FlexibleInstances, IncoherentInstances, ScopedTypeVariables # ------------------------------------------------------------------------------ | License : BSD3 Stability : experimental ------------------------------------------------------------------------------ Comments below...
Module : Data . Comp . . Derive . Ordering Copyright : ( c ) 2011 , Maintainer : < > Portability : non - portable ( GHC Extensions ) Automatically derive instances of @OrdD@. module Data.Comp.Param.Derive.Ordering ( OrdD(..), makeOrdD ) where import Data.Comp.Para...
e91a21ea49c8457246aca2655206f453b7e89dac4dd488f9ce71494f803ed137
iokasimov/pandora
Combinative.hs
module Pandora.Paradigm.Structure.Modification.Combinative where type family Combinative (s :: * -> *) = (r :: * -> *) | r -> s
null
https://raw.githubusercontent.com/iokasimov/pandora/2eed2051846295bd1122efdbcade565c653fd559/Pandora/Paradigm/Structure/Modification/Combinative.hs
haskell
module Pandora.Paradigm.Structure.Modification.Combinative where type family Combinative (s :: * -> *) = (r :: * -> *) | r -> s
544f7fa4714ffd3c78b27b604d8f864d97e468dd91dab086fad735eb3ac2156b
synrc/cr
cr.erl
-module(cr). -description('Distributed Transaction Coordinator'). -copyright('Maxim Sokhatsky'). -include("cr.hrl"). -include_lib("db/include/transaction.hrl"). -include("rafter.hrl"). -compile(export_all). -compile({no_auto_import,[node/0]}). main(A) -> mad_repl:main(A,[]). encode(Msg) -> term_to_binary(Msg). decode...
null
https://raw.githubusercontent.com/synrc/cr/b4a30dc55d30500a1c239d6234444e1ecff5aab5/src/cr.erl
erlang
Integrity Functions consensus_log checks that the length of RAFT log is the same on all nodes. node_log checks that the sum of chains of all vnodes equals the the overal operations counts.
-module(cr). -description('Distributed Transaction Coordinator'). -copyright('Maxim Sokhatsky'). -include("cr.hrl"). -include_lib("db/include/transaction.hrl"). -include("rafter.hrl"). -compile(export_all). -compile({no_auto_import,[node/0]}). main(A) -> mad_repl:main(A,[]). encode(Msg) -> term_to_binary(Msg). decode...
0b2792022f353838b85c05b33e7af14f09cfb3b53d43db3b287d9439588de516
BU-CS320/Fall-2018
TypeProblems.hs
module TypeProblems where data Answer a = Impossible | Example a Give Example definitions that have the following types if it is possible , If not return " Impossible " . It does not matter what the definitions actually do as long AS they are correctly typed , they do not " loop forever " , and they do not use ...
null
https://raw.githubusercontent.com/BU-CS320/Fall-2018/beec3ca88be5c5a62271a45c8053fb1b092e0af1/assignments/week3/hw/src/TypeProblems.hs
haskell
but different then above but different then above
module TypeProblems where data Answer a = Impossible | Example a Give Example definitions that have the following types if it is possible , If not return " Impossible " . It does not matter what the definitions actually do as long AS they are correctly typed , they do not " loop forever " , and they do not use ...
0282dfb47ef31d3aa7484ccf825c9fd086b09668af00f896674b8ffa0657b302
meiersi/blaze-binary
GenericBenchmarks.hs
# LANGUAGE DeriveGeneric , ScopedTypeVariables # -- | Copyright : ( c ) 2012 , -- License : BSD3-style (see LICENSE) -- Maintainer : < > -- Stability : experimental Portability : tested on GHC only -- -- Benchmark generic encoding and decoding speed. module Main (main) where import ...
null
https://raw.githubusercontent.com/meiersi/blaze-binary/9cc1ce1342896e7635681dca745b14b05d96d1bf/bench/GenericBenchmarks.hs
haskell
| License : BSD3-style (see LICENSE) Stability : experimental Benchmark generic encoding and decoding speed. ---------------------------------------------------------------------------- Benchmark ---------------------------------------------------------------------------- ----------------------------------...
# LANGUAGE DeriveGeneric , ScopedTypeVariables # Copyright : ( c ) 2012 , Maintainer : < > Portability : tested on GHC only module Main (main) where import Prelude hiding (words) import Data.Monoid ((<>)) import Criterion.Main import Control.DeepSeq import ...
7dd2993d855564a296f8edbd976ceea7b62708e8035ab04d56d531be8cdda53f
edn-query-language/eql
project.clj
(defproject edn-query-language/eql "2021.07.18" :description "EDN Query Language support library" :url "-query-language/eql" :license {:name "MIT" :url ""} :plugins [[lein-tools-deps "0.4.1"]] :middleware [lein-tools-deps.plugin/resolve-dependencies-with-deps-edn] :lein-tools-deps/config {:config-files [:i...
null
https://raw.githubusercontent.com/edn-query-language/eql/08162a3aeb3868cec2a923b96e6ab45a60e92c3d/project.clj
clojure
(defproject edn-query-language/eql "2021.07.18" :description "EDN Query Language support library" :url "-query-language/eql" :license {:name "MIT" :url ""} :plugins [[lein-tools-deps "0.4.1"]] :middleware [lein-tools-deps.plugin/resolve-dependencies-with-deps-edn] :lein-tools-deps/config {:config-files [:i...
ffffd200b5c5d2644b77b30107dc00e60de0a4df245338912f1f4a14a47244cd
janestreet/universe
quickcheck_tests.ml
open! Core open! Msgpack let%test_unit "parse . serialize == id" = Quickcheck.test (Util.generate ()) ~sexp_of:[%sexp_of: Message.t] ~f:(fun msg -> [%test_result: bool] (Msgpack.equal (t_of_string_exn (string_of_t_exn msg)) msg) ~expect:true) ;;
null
https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/vcaml/msgpack/tests/quickcheck_tests.ml
ocaml
open! Core open! Msgpack let%test_unit "parse . serialize == id" = Quickcheck.test (Util.generate ()) ~sexp_of:[%sexp_of: Message.t] ~f:(fun msg -> [%test_result: bool] (Msgpack.equal (t_of_string_exn (string_of_t_exn msg)) msg) ~expect:true) ;;
2328ef70f9f13302b71affef85a2f05916869753c8997460fc4f6d451f1fffee
ghcjs/jsaddle
WebSockets.hs
# LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE RecursiveDo # ----------------------------------------------------------------------------- -- -- Module : Language.Javascript.JSaddle.WebSockets Copyright : ( c ) License : MIT -- Maintainer...
null
https://raw.githubusercontent.com/ghcjs/jsaddle/97273656e28790ab6e35c827f8086cf47bfbedca/jsaddle-warp/src/Language/Javascript/JSaddle/WebSockets.hs
haskell
# LANGUAGE OverloadedStrings # --------------------------------------------------------------------------- Module : Language.Javascript.JSaddle.WebSockets | --------------------------------------------------------------------------- Based on Network.WebSocket.forkPingThread Use this to generate this strin...
# LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE RecursiveDo # Copyright : ( c ) License : MIT Maintainer : < > module Language.Javascript.JSaddle.WebSockets ( * Running JSM over WebSockets jsaddleOr , jsaddleApp , jsaddleWithAppOr , jsaddleAppWithJs , jsaddl...
9f4f0de3d7ef2216d845ce56b58db798d31e567e202db7a2ef10c06782877490
johnwickerson/memalloy
mk_hash.ml
MIT License Copyright ( c ) 2018 by . 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 the Software without restriction , including without limitation the rights to use , copy , modify , m...
null
https://raw.githubusercontent.com/johnwickerson/memalloy/aa15776873fe3440cb7f5dae8e174466689d4fba/src/mk_hash.ml
ocaml
MIT License Copyright ( c ) 2018 by . 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 the Software without restriction , including without limitation the rights to use , copy , modify , m...
f73d9ccf84b3587d5272bee10f565f3f49b0662b745fd2fd7e2c41fd807ba32e
lesguillemets/sicp-haskell
1.2.1.hs
-- | linear recursive process. fact :: Integer -> Integer fact 0 = 1 fact n = n * fact (n-1) -- | linear iterative process. -- | Nice optimizations take place with -O, -- | but with -O0, this should also be linear recursive. | Use bangpatterns to avoid this . fact' :: Integer -> Integer fact' = factIter 1 factIter ...
null
https://raw.githubusercontent.com/lesguillemets/sicp-haskell/df524a1e28c45fb16a56f539cad8babc881d0431/text/chap01/sect2/1.2.1.hs
haskell
| linear recursive process. | linear iterative process. | Nice optimizations take place with -O, | but with -O0, this should also be linear recursive.
fact :: Integer -> Integer fact 0 = 1 fact n = n * fact (n-1) | Use bangpatterns to avoid this . fact' :: Integer -> Integer fact' = factIter 1 factIter :: Integer -> Integer -> Integer factIter acc 1 = acc factIter acc n = factIter (acc*n) (n-1) main = do putStrLn . take 6 . show $ fact 90000 putStrLn . t...
6a87c44fcc7ad721e6b836640bf4a84054f59086cd8f863a14ef53bc6866697f
target/theta-idl
Haskell.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} # LANGUAGE DuplicateRecordFields # {-# LANGUAGE LambdaCase #-} # LANGUAGE NamedFieldPuns # # LANGUAGE OverloadedLists # # LANGUAGE OverloadedStrings # {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE Template...
null
https://raw.githubusercontent.com/target/theta-idl/0fed73dc7f3963fd2c63cb408edcda0547a6d453/theta/test/Test/Theta/Target/Haskell.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # * Loading Modules * Tests ** Helpers
# LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE OverloadedLists # # LANGUAGE OverloadedStrings # # LANGUAGE TypeApplications # # LANGUAGE ViewPatterns # | Test for the code that generates types from Theta schemas , including tests for the / FromTheta ...
81f01db62b377f3bbca0280e7bf31c42584922a827bdd923741982c5223bb90f
charlieg/Sparser
traverse.lisp
;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER LISP) -*- copyright ( c ) 1998 - 2005 -- all rights reserved ;;; ;;; File: "traverse" ;;; Module: "objects;model:lattice-points:" version : February 2005 initiated 2/26/98 . Extended through 7/7 . Work resumed 3/30/00 , and again 2/05 (in...
null
https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/code/s/objects/model/lattice-points/traverse.lisp
lisp
-*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER LISP) -*- File: "traverse" Module: "objects;model:lattice-points:" ------ walk ------ All the paths upwards are equal in length, so we just walk up the left branch. Called from Find-self-node.
copyright ( c ) 1998 - 2005 -- all rights reserved version : February 2005 initiated 2/26/98 . Extended through 7/7 . Work resumed 3/30/00 , and again 2/05 (in-package :sparser) (defun climb-lattice-to-top (node) (if (typep node 'top-lattice-point) node (let* ((parent/s (lp-upward-pointers...
554f86cb129ab9626d55b60248fc45d9d261db2e202d6e0507984c2335ccf94e
WormBase/wormbase_rest
blast_hit.clj
(ns rest-api.classes.blast-hit (:require [compojure.api.sweet :as sweet] [datomic.api :as d] [rest-api.db.main :refer [datomic-conn]] [rest-api.formatters.object :as obj :refer [pack-obj]] [ring.util.http-response :as response] [schema.core :as schema])) (def id-types [:transcript/id :cds/id :seque...
null
https://raw.githubusercontent.com/WormBase/wormbase_rest/e51026f35b87d96260b62ddb5458a81ee911bf3a/src/rest_api/classes/blast_hit.clj
clojure
wormpep wormpep
(ns rest-api.classes.blast-hit (:require [compojure.api.sweet :as sweet] [datomic.api :as d] [rest-api.db.main :refer [datomic-conn]] [rest-api.formatters.object :as obj :refer [pack-obj]] [ring.util.http-response :as response] [schema.core :as schema])) (def id-types [:transcript/id :cds/id :seque...
dd394d400e708d5eb55c26daf011e090b945d4116a4c8f004a5cbfc3107132ff
skypher/montezuma
token-stream.lisp
(in-package #:montezuma) (defclass token-stream () ()) (defgeneric next-token (token-stream))
null
https://raw.githubusercontent.com/skypher/montezuma/32f8867fb9ee9cde753da1056e8122736fc5bf01/src/analysis/token-stream.lisp
lisp
(in-package #:montezuma) (defclass token-stream () ()) (defgeneric next-token (token-stream))
cae378c2ba6b67db753d8ea0e9ec1c67e4a306250b3e845ce945a4a83f0f72af
hypernumbers/hypernumbers
curie_arity.erl
@author @author ( C ) 2011 - 2014 , Hypernumbers Ltd %%% @doc Implements famous paper " A User - Centred Approach to Functions in Excel " by , and %%% @end Created : 15 Jun 2011 %%%------------------------------------------------------------------- %%% %%% LICENSE %%% %%% This prog...
null
https://raw.githubusercontent.com/hypernumbers/hypernumbers/281319f60c0ac60fb009ee6d1e4826f4f2d51c4e/lib/hypernumbers-1.0/src/curie_arity.erl
erlang
@doc @end ------------------------------------------------------------------- LICENSE This program is free software: you can redistribute it and/or modify This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS F...
@author @author ( C ) 2011 - 2014 , Hypernumbers Ltd Implements famous paper " A User - Centred Approach to Functions in Excel " by , and Created : 15 Jun 2011 it under the terms of the GNU Affero General Public License as published by the Free Software Foundation version 3 Y...
f50312e88bf643dd300ea2b0af3f8d34c8bb23d9a63f9c5f209c21f2641c6313
nikita-volkov/rebase
Strict.hs
module Rebase.Control.Monad.Trans.State.Strict ( module Control.Monad.Trans.State.Strict ) where import Control.Monad.Trans.State.Strict
null
https://raw.githubusercontent.com/nikita-volkov/rebase/7c77a0443e80bdffd4488a4239628177cac0761b/library/Rebase/Control/Monad/Trans/State/Strict.hs
haskell
module Rebase.Control.Monad.Trans.State.Strict ( module Control.Monad.Trans.State.Strict ) where import Control.Monad.Trans.State.Strict
7c78cf1c9e4c56c5d2801c0cfeb20476861a9a1f0c0f2249cb01d2d573259017
michilu/shirasu
shirasu.erl
-module(shirasu). -author('ENDOH takanao <>'). -export([start/0, stop/0, boot/0, cfg/1, cfgManager/1, handle_websocket/2, wsManager/0]). -include_lib("eunit/include/eunit.hrl"). %?debugVal(), start() -> application:start(shirasu). stop() -> wsManager ! stop, cfgManager ! stop, misultin:stop(). boot() -> {...
null
https://raw.githubusercontent.com/michilu/shirasu/2c8e3c43b93e5a3662bdb177c3c32c4846cb736d/src/shirasu.erl
erlang
?debugVal(), error_logger:error_msg("HTTP server has not started: ~p~n", [Any]), %TODO(endoh) undefined -> TODO(ENDOH) ?debugVal({"ws:browser", Data}), ?debugVal("ws:close"), ?debugVal({"ws:send", Data}), Ws:send(["pushing!"]), ?debugVal({"handle_websocket:new:", Ws:get(path)}), ?debugVal(NewChannelList), ?debugVal(New...
-module(shirasu). -author('ENDOH takanao <>'). -export([start/0, stop/0, boot/0, cfg/1, cfgManager/1, handle_websocket/2, wsManager/0]). -include_lib("eunit/include/eunit.hrl"). start() -> application:start(shirasu). stop() -> wsManager ! stop, cfgManager ! stop, misultin:stop(). boot() -> {ok, Path} = ap...