_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
4758b35c1dc2d63f53f1ec5fa7f0483d83e187dcb8d750dc98bca8ec25b65343
evolutics/haskell-formatter
Output.hs
root = start -- comment where start = "commented"
null
https://raw.githubusercontent.com/evolutics/haskell-formatter/3919428e312db62b305de4dd1c84887e6cfa9478/testsuite/resources/source/comments/indentation/inherits_indentation_of_merged_line/indented_start/Output.hs
haskell
comment
root = start where start = "commented"
7c1993f77544e1de0e0670dc882c49bd086a7ddb596a649b5837bad3e23708ca
shirok/Gauche-makiki
dev.scm
;;; Copyright ( c ) 2023 < > ;;; ;;; 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...
null
https://raw.githubusercontent.com/shirok/Gauche-makiki/1df0fe980e7a527027f1fd5e4ea1463ca5e2f694/makiki/dev.scm
scheme
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: notice, this list of conditions and the following disclaimer. notice, this list of conditions and the following disclaimer in the documentation...
Copyright ( c ) 2023 < > 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above copyright 3 . Neither the name of the authors nor the names of its contributors " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING ...
62bd171dc638def5b2e0d5f98f6acf4bce7d3bdca5f16f375dadb5a6329e83f0
alvatar/spheres
io-filesystem.scm
(%load-library '(spheres/util test)) (%load-library '(spheres/io filesystem)) (test-begin "(spheres/io filesystem)") (test-end)
null
https://raw.githubusercontent.com/alvatar/spheres/568836f234a469ef70c69f4a2d9b56d41c3fc5bd/test/io-filesystem.scm
scheme
(%load-library '(spheres/util test)) (%load-library '(spheres/io filesystem)) (test-begin "(spheres/io filesystem)") (test-end)
efb2824b469a87cdbd36182eec8871f749e5024846020d3729f45d7587940381
google/clang-lens
Clang.hs
Copyright 2014 Google Inc. All Rights Reserved . 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 ...
null
https://raw.githubusercontent.com/google/clang-lens/09caa8fb234024af18706060085ef0fc1e8b6f5f/src/Clang.hs
haskell
* Index * Utilities i.e. whether they represent the same object in the translation unit.
Copyright 2014 Google Inc. All Rights Reserved . 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 ...
765c7cd703fd81c8622c05f2f4b78a1269a77701cffa682b0772b264309c23db
cl-rabbit/cl-bunny
spec.lisp
(in-package :cl-bunny) (defconstant +channel-max+ 2000) (defconstant +frame-max+ 131072) (defconstant +heartbeat-interval+ 60) (defstruct (connection-spec (:constructor make-connection-spec%)) (host "localhost" :type string) (port 5672 :type fixnum) (vhost "/" :type string) (login "guest" :type string) (p...
null
https://raw.githubusercontent.com/cl-rabbit/cl-bunny/6da7fe161efc8d6bb0b8b09ac8efad03553d765c/src/connection/spec.lisp
lisp
TODO: specialize error)) TODO: specialize error TODO: specialize error TODO: specialize error TODO: specialize error see -spec.html
(in-package :cl-bunny) (defconstant +channel-max+ 2000) (defconstant +frame-max+ 131072) (defconstant +heartbeat-interval+ 60) (defstruct (connection-spec (:constructor make-connection-spec%)) (host "localhost" :type string) (port 5672 :type fixnum) (vhost "/" :type string) (login "guest" :type string) (p...
cca520901d2a2d02529714ed777272ec6332c03f597c4cfad5dc02358c284320
potatosalad/erlang-jose
jose_jwk_SUITE.erl
-*- mode : erlang ; tab - width : 4 ; indent - tabs - mode : 1 ; st - rulers : [ 70 ] -*- %% vim: ts=4 sw=4 ft=erlang noet -module(jose_jwk_SUITE). -include_lib("common_test/include/ct.hrl"). -include("jose.hrl"). %% ct. -export([all/0]). -export([groups/0]). -export([init_per_suite/1]). -export([end_per_suite/1])...
null
https://raw.githubusercontent.com/potatosalad/erlang-jose/43d3db467f909bbc932bd663ddcb1af93180dfd3/test/jose_jwk_SUITE.erl
erlang
vim: ts=4 sw=4 ft=erlang noet ct. Tests. ==================================================================== Tests ====================================================================
-*- mode : erlang ; tab - width : 4 ; indent - tabs - mode : 1 ; st - rulers : [ 70 ] -*- -module(jose_jwk_SUITE). -include_lib("common_test/include/ct.hrl"). -include("jose.hrl"). -export([all/0]). -export([groups/0]). -export([init_per_suite/1]). -export([end_per_suite/1]). -export([init_per_group/2]). -export([...
659e91e8503f49b246ac808978a130c7f0bc6ab3db75a8780d7528efeb8c983a
Opetushallitus/ataru
attachment_finalizer_job.clj
(ns ataru.hakija.background-jobs.attachment-finalizer-job (:require [ataru.applications.application-store :as application-store] [ataru.cas.client :as cas] [ataru.config.url-helper :refer [resolve-url]] [taoensso.timbre :as log])) (def origin-system "ataru") (defn finalize-attach...
null
https://raw.githubusercontent.com/Opetushallitus/ataru/3e60a49dc2980903c5702fa91e74bb059a4366bd/src/clj/ataru/hakija/background_jobs/attachment_finalizer_job.clj
clojure
(ns ataru.hakija.background-jobs.attachment-finalizer-job (:require [ataru.applications.application-store :as application-store] [ataru.cas.client :as cas] [ataru.config.url-helper :refer [resolve-url]] [taoensso.timbre :as log])) (def origin-system "ataru") (defn finalize-attach...
e7bfac686e8fc9acb43c4b2b14f928a73b465576813082a287987e4667c451cb
Ivana-/fhir-face
select_xhr.cljs
(ns fhir-face.select-xhr (:require [reagent.core :as r] [re-frame.core :as rf] [garden.units :as u] [garden.core :as garden] [clojure.string :as str] [zframes.fetch :as fetch])) (def style [:.select-xhr {:display :inline-flex :align-items...
null
https://raw.githubusercontent.com/Ivana-/fhir-face/0910012395de3d877a23a17a5b8d2d5e578ab256/src/fhir_face/select_xhr.cljs
clojure
none :display :inline-block in our case inner search would be faster than outer FIXME show all types if incoming list is empty (and (not (str/blank? value-type)) ) (prn @common-fetch-params) :_sort "name"} :_sort "name"}
(ns fhir-face.select-xhr (:require [reagent.core :as r] [re-frame.core :as rf] [garden.units :as u] [garden.core :as garden] [clojure.string :as str] [zframes.fetch :as fetch])) (def style [:.select-xhr {:display :inline-flex :align-items...
361681ee77c1c9db6949d823b41ec734ea5251d5ae88c98b9dd740a5f68614ab
lexi-lambda/racket-commonmark
struct.rkt
#lang racket/base (require racket/contract "private/struct.rkt") (provide block? inline? thematic-break thematic-break? line-break line-break? (contract-out (struct document ([blocks (listof block?)] [footnotes (listof footnote-definition?)])) ...
null
https://raw.githubusercontent.com/lexi-lambda/racket-commonmark/d40156bce42088aea1a742d6cce4c8697318db70/commonmark-lib/commonmark/struct.rkt
racket
#lang racket/base (require racket/contract "private/struct.rkt") (provide block? inline? thematic-break thematic-break? line-break line-break? (contract-out (struct document ([blocks (listof block?)] [footnotes (listof footnote-definition?)])) ...
bcbdc3b3d0bfd026d779f030507d9403a6bf9c375531d9d2625b93795dd7ebd3
discoproject/disco
work_queue.erl
-module(work_queue). -export([start_link/1, add_work/2]). -type work() :: fun(() -> ok). -type workid() :: non_neg_integer(). -record(q, {max_active :: workid(), next_id = 0 :: workid(), active = [] :: [T], waiting = [] :: [{T, work()}]}). -opaque q() :: #q{}. -export_type([q/0]...
null
https://raw.githubusercontent.com/discoproject/disco/be65272d3eecca184a3c8f2fa911b86ac87a4e8a/master/src/work_queue.erl
erlang
The below assumes that the work Fun() eventually terminate, otherwise we have a problem with the unboundedly growing work queue.
-module(work_queue). -export([start_link/1, add_work/2]). -type work() :: fun(() -> ok). -type workid() :: non_neg_integer(). -record(q, {max_active :: workid(), next_id = 0 :: workid(), active = [] :: [T], waiting = [] :: [{T, work()}]}). -opaque q() :: #q{}. -export_type([q/0]...
4840773386d9400514c1f106e9c4d0221159fbb1ae8e899f3e4cdee7f8fba99e
AntidoteDB/antidote_aql
index.erl
%%%------------------------------------------------------------------- @author , %%% @doc A module to manage index data structures. %%% @end %%%------------------------------------------------------------------- -module(index). -include("aql.hrl"). -include("types.hrl"). -include("parser.hrl"). -define(PINDEX_...
null
https://raw.githubusercontent.com/AntidoteDB/antidote_aql/e7ef4913d233c2fee8ebff582d91fe3e2e95786c/src/index.erl
erlang
------------------------------------------------------------------- @doc A module to manage index data structures. @end ------------------------------------------------------------------- todo check if the index already exists? Reads a primary index Reads a secondary index Builds the name of a primary index Buil...
@author , -module(index). -include("aql.hrl"). -include("types.hrl"). -include("parser.hrl"). -define(PINDEX_CRDT, antidote_crdt_index_p). -define(SINDEX_CRDT, antidote_crdt_index_s). -define(INDEX_ENTRY_DT, antidote_crdt_register_lww). -define(ITAG_CRDT, antidote_crdt_map_go). -define(ITAG_KEY_CRDT, antidote_...
86eb6822f826b8632a7dd83099a50c75a98b658db9769d9230d02f71f0e6a001
benedekfazekas/mranderson
inline_deps.clj
(ns leiningen.inline-deps (:require [clojure.edn :as edn] [me.raynes.fs :as fs] [mranderson.core :as c] [mranderson.util :as u] [mranderson.log :as log]) (:import [java.util UUID])) (defn- lookup-opt ([opt-key cli-opts project-opts] (lookup-opt opt-key cli-opts ...
null
https://raw.githubusercontent.com/benedekfazekas/mranderson/9f758edaf3e6dd236cac8970a20c8506c16dc590/src/leiningen/inline_deps.clj
clojure
(ns leiningen.inline-deps (:require [clojure.edn :as edn] [me.raynes.fs :as fs] [mranderson.core :as c] [mranderson.util :as u] [mranderson.log :as log]) (:import [java.util UUID])) (defn- lookup-opt ([opt-key cli-opts project-opts] (lookup-opt opt-key cli-opts ...
8a1c71418aad5ae55b007420eedc1b90a4353b501fe583386dbfbd8f60edca14
ephemient/aoc2018
Main.hs
module Main (main) where import Criterion.Main (bench, bgroup, defaultMain, env, nf) import Day1 (day1a, day1b) import Day2 (day2a, day2b) import Day3 (day3a, day3b) import Day4 (day4a, day4b) import Day5 (day5a, day5b) import Day6 (day6a, day6b) import Day7 (day7a, day7b) import Day8 (day8a, day8b) import Day9 (day9a...
null
https://raw.githubusercontent.com/ephemient/aoc2018/eb0d04193ccb6ad98ed8ad2253faeb3d503a5938/bench/Main.hs
haskell
module Main (main) where import Criterion.Main (bench, bgroup, defaultMain, env, nf) import Day1 (day1a, day1b) import Day2 (day2a, day2b) import Day3 (day3a, day3b) import Day4 (day4a, day4b) import Day5 (day5a, day5b) import Day6 (day6a, day6b) import Day7 (day7a, day7b) import Day8 (day8a, day8b) import Day9 (day9a...
0ebd4b1173d1e58e3e53ae0a489da3cdfe066a4a81a41640442facbdcd6fe7a5
gstew5/snarkl
SimplMonad.hs
module SimplMonad ( SEnv(..) , unite_vars , bind_var , root_of_var , bind_of_var , assgn_of_vars , SolveMode(..) , solve_mode_flag ) where import qualified Data.IntMap.Lazy as Map import Control.Monad.State import Field import Common import UnionFind ------------------------------...
null
https://raw.githubusercontent.com/gstew5/snarkl/d6ce72b13e370d2965bb226f28a1135269e7c198/src/SimplMonad.hs
haskell
-------------------------------------------------------------- -------------------------------------------------------------- ^ Equalities among variables, together with a partial map from variables data structure). ^ Use Magic only in 'solve_mode'. In simplify mode, only forced equalities should be pr...
module SimplMonad ( SEnv(..) , unite_vars , bind_var , root_of_var , bind_of_var , assgn_of_vars , SolveMode(..) , solve_mode_flag ) where import qualified Data.IntMap.Lazy as Map import Control.Monad.State import Field import Common import UnionFind data SolveMode = UseMagic | ...
23be63e109bc4cf077459374691e9fe1d24a1f8f4f41e2fa7243485feef2b4e1
den1k/vimsical
queries_test.clj
(ns vimsical.integration.remotes.backend.vcs.queries-test (:require [clojure.test :refer [deftest is use-fixtures]] [day8.re-frame.test :as re-frame.test] [orchestra.spec.test :as st] [re-frame.core :as re-frame] [vimsical.backend.data :as data] [vimsical.backend.system.fixture :as system.fixture] ...
null
https://raw.githubusercontent.com/den1k/vimsical/1e4a1f1297849b1121baf24bdb7a0c6ba3558954/test/integration/vimsical/integration/remotes/backend/vcs/queries_test.clj
clojure
* Re-frame * Fixtures * Helpers
(ns vimsical.integration.remotes.backend.vcs.queries-test (:require [clojure.test :refer [deftest is use-fixtures]] [day8.re-frame.test :as re-frame.test] [orchestra.spec.test :as st] [re-frame.core :as re-frame] [vimsical.backend.data :as data] [vimsical.backend.system.fixture :as system.fixture] ...
7aa774f37f08a8ef8b9fe9818971502377569c28d73c39150d55639cb3168090
kazu-yamamoto/dns
IO.hs
{-# LANGUAGE OverloadedStrings #-} module Network.DNS.IO ( -- * Receiving DNS messages receive , receiveFrom , receiveVC -- * Sending pre-encoded messages , send , sendTo , sendVC , sendAll -- ** Encoding queries for transmission , encodeQuestion , encodeVC -- ** Creating query resp...
null
https://raw.githubusercontent.com/kazu-yamamoto/dns/c5495db5a93f8690fdef1a6d65953f3accbf3fd5/Network/DNS/IO.hs
haskell
# LANGUAGE OverloadedStrings # * Receiving DNS messages * Sending pre-encoded messages ** Encoding queries for transmission ** Creating query response messages -------------------------------------------------------------- the client address. Messages longer than 'maxUdpSize' are silently truncated, but this sho...
module Network.DNS.IO ( receive , receiveFrom , receiveVC , send , sendTo , sendVC , sendAll , encodeQuestion , encodeVC , responseA , responseAAAA ) where import qualified Control.Exception as E import qualified Data.ByteString as B import qualified Data.ByteString.Builder as BB import qual...
c13d5a24a04c194723fc0b88f5f38bd7a53a03cb09099e7e712164cefd683925
michaelballantyne/multiscope
basic.rkt
#lang multiscope (scopes [rkt racket/base rackunit] [a racket/base] [b]) (module a racket/base (define x 'a) (provide x)) (a (require 'a)) (module b racket/base (define x 'b) (provide x)) (b (require 'b)) (define-namespace-anchor anchor) (define ns (namespace-anchor->namespace anchor)) (test-case ...
null
https://raw.githubusercontent.com/michaelballantyne/multiscope/58af714ee263b3a34006b0aa810d0c6e34ba93f7/test/basic.rkt
racket
#lang multiscope (scopes [rkt racket/base rackunit] [a racket/base] [b]) (module a racket/base (define x 'a) (provide x)) (a (require 'a)) (module b racket/base (define x 'b) (provide x)) (b (require 'b)) (define-namespace-anchor anchor) (define ns (namespace-anchor->namespace anchor)) (test-case ...
fa084cb508bd35e313cb908e4376cd232f4f4acfe40c50531c49fe211e009d0c
xray-tech/xorc-xray
test_utils.clj
(ns re.test-utils (:require [duct.core :as duct] [integrant.core :as ig])) ;; qbits.hayt contains defmethod declarations (require 'qbits.hayt) (duct/load-hierarchy) (defmacro with-system [[binding config] & body] `(let [~binding (-> ~config (doto (ig/load-namespaces)) ...
null
https://raw.githubusercontent.com/xray-tech/xorc-xray/ee1c841067207c5952473dc8fb1f0b7d237976cb/test/re/test_utils.clj
clojure
qbits.hayt contains defmethod declarations
(ns re.test-utils (:require [duct.core :as duct] [integrant.core :as ig])) (require 'qbits.hayt) (duct/load-hierarchy) (defmacro with-system [[binding config] & body] `(let [~binding (-> ~config (doto (ig/load-namespaces)) (ig/init))] (try ~@bod...
d46e7cd3a4bbd177dc50cb8d61ec688e56abe223c33d5de32b51fbc034aca0c7
xapi-project/xen-api
radix_tree.ml
type 'a t = Node of string * 'a option * 'a t list (* Invariant: the only node with an empty string is the root *) let empty = Node ("", None, []) let is_prefix a b = true && String.length b >= String.length a && String.sub b 0 (String.length a) = a let common_prefix a b = let j = ref 0 in (* length of com...
null
https://raw.githubusercontent.com/xapi-project/xen-api/5c9c44c6d40a9930f454722c9cd09c7079ec814e/ocaml/libs/http-svr/radix_tree.ml
ocaml
Invariant: the only node with an empty string is the root length of common prefix k could be equal to s k could be a prefix of s s could be a prefix of k s and k could share a non-empty common prefix
type 'a t = Node of string * 'a option * 'a t list let empty = Node ("", None, []) let is_prefix a b = true && String.length b >= String.length a && String.sub b 0 (String.length a) = a let common_prefix a b = let j = ref 0 in let skip = ref false in for i = 0 to min (String.length a) (String.length b) -...
37fe40edaee975cee51d257bcc7e95522b23f899b845d5e2ee8c5fcd788e9925
clojure-interop/google-cloud-clients
core.clj
(ns com.google.cloud.spanner.admin.database.v1.core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[com.google.cloud.spanner.admin.database.v1.DatabaseAdminClient$ListDatabasesFixedSizeCollection]) (require '[com.google.cloud.spanner.admin.database.v1.DatabaseAdminClient$ListDatabasesPage])...
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.spanner/src/com/google/cloud/spanner/admin/database/v1/core.clj
clojure
(ns com.google.cloud.spanner.admin.database.v1.core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[com.google.cloud.spanner.admin.database.v1.DatabaseAdminClient$ListDatabasesFixedSizeCollection]) (require '[com.google.cloud.spanner.admin.database.v1.DatabaseAdminClient$ListDatabasesPage])...
ed6c496f37bc1c6fe78b26c95d6eb288ce02d53e68cb86d841431421fa0e8973
RichiH/git-annex
BitTorrent.hs
BitTorrent remote . - - Copyright 2014 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2014 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} # LANGUAGE CPP # module Remote.BitTorrent (remote) where import Annex.Common import Types.Remote import quali...
null
https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Remote/BitTorrent.hs
haskell
make way for download progress bar We punt and don't try to check if a torrent has enough seeders - with all the pieces etc. That would be quite hard.. and even if - implemented, it tells us nothing about the later state of the torrent. To specify which file inside a multi-url torrent, the file number is - appe...
BitTorrent remote . - - Copyright 2014 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2014 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} # LANGUAGE CPP # module Remote.BitTorrent (remote) where import Annex.Common import Types.Remote import quali...
68d886b0602662eebb7921c61ffb9eff5a142fe9ff44e77394d0c331ff9b7c6b
Leberwurscht/Diaspora-User-Directory
ptest.ml
(************************************************************************) This file is part of SKS . SKS 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 (...
null
https://raw.githubusercontent.com/Leberwurscht/Diaspora-User-Directory/1ca4a06a67d591760516edffddb0308b86b6314c/trie_manager/ptest.ml
ocaml
********************************************************************** *********************************************************************
This file is part of SKS . SKS 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 version . This program is distributed in ...
01958b445b27c3d085d6d71239cb495557ab9535458ba2ac804ab8d5ce78cfaf
andrewMacmurray/haskell-book-solutions
ShawtyReader.hs
{-# LANGUAGE OverloadedStrings #-} module Main where import Control.Monad (replicateM) import Control.Monad.IO.Class (liftIO) import qualified Data.ByteString.Char8 as BC import Data.Text.Encoding (decodeUtf8, encodeUtf8) import qualified Data.Text.Lazy as TL import qualified Database.Redis as R import Network.URI (U...
null
https://raw.githubusercontent.com/andrewMacmurray/haskell-book-solutions/f4fd386187c03828d1736d9a43642ab4f0ec6462/src/ch22/ShawtyReader.hs
haskell
# LANGUAGE OverloadedStrings #
module Main where import Control.Monad (replicateM) import Control.Monad.IO.Class (liftIO) import qualified Data.ByteString.Char8 as BC import Data.Text.Encoding (decodeUtf8, encodeUtf8) import qualified Data.Text.Lazy as TL import qualified Database.Redis as R import Network.URI (URI, parseURI) import qualified Syst...
12d899f9423b352c7219bcbfb12d17b98ffe1f432f4ba1c3c4c795f4d25d5de0
WeiDUorg/weidu
parsetables.ml
(* parsetables.ml *) (* representation of parsing tables *) based on elkhound / parsetables.h open BatteriesInit The C++ implementation is designed so the sizes of the various * table entries can be adjusted . I 'm reflecting that design here , * but I am just using ' int ' as the size choice everywhere ,...
null
https://raw.githubusercontent.com/WeiDUorg/weidu/a4048b11e6904f39ea1f956a36018e5d9a6e8e5c/elkhound/parsetables.ml
ocaml
parsetables.ml representation of parsing tables for action entries; some places may still be called int identifier for a state in the finite automaton entry in the goto table index for a terminal index for a nonterminal index for a production ErrorBitsEntry goes here encode a symbol in the 'stateSymb...
based on elkhound / parsetables.h open BatteriesInit The C++ implementation is designed so the sizes of the various * table entries can be adjusted . I 'm reflecting that design here , * but I am just using ' int ' as the size choice everywhere , since * ( I think ) OCaml arrays do n't get smaller if y...
30e0502885e0ccb216b17ec6fd2168bd07d62420ffeaa432c41be68e0297a5cb
biocaml/phylogenetics
amino_acid.ml
open Core include Alphabet.Make(struct let card = 20 end) let chars_of_aa_string = "ACDEFGHIKLMNPQRSTVWY" let%test "chars_of_aa_string" = String.length chars_of_aa_string = card let to_char i = chars_of_aa_string.[i] let yojson_of_vector vec : Yojson.Safe.t = `Assoc ( Vector.to_array vec |> Array.mapi ...
null
https://raw.githubusercontent.com/biocaml/phylogenetics/a443c9a3c6f9ce75b8186588fd657787225b6c8d/lib/amino_acid.ml
ocaml
open Core include Alphabet.Make(struct let card = 20 end) let chars_of_aa_string = "ACDEFGHIKLMNPQRSTVWY" let%test "chars_of_aa_string" = String.length chars_of_aa_string = card let to_char i = chars_of_aa_string.[i] let yojson_of_vector vec : Yojson.Safe.t = `Assoc ( Vector.to_array vec |> Array.mapi ...
d054b38d03da7f4c1e4ac467b3dc45a059eb3d6568f9354d070f19a94e5a4032
ucsd-progsys/liquidhaskell
Search.hs
{-@ LIQUID "--pruneunsorted" @-} # LANGUAGE BangPatterns , ScopedTypeVariables # -- | -- Module : Data.Text.Search Copyright : ( c ) 2009 -- -- License : BSD-style -- Maintainer : , , -- -- Stability : experimental Portability : GHC -- Fast substring search for ' Text ' , based o...
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/20cd67af038930cb592d68d272c8eb1cbe3cb6bf/tests/benchmarks/text-0.11.2.3/Data/Text/Search.hs
haskell
@ LIQUID "--pruneunsorted" @ | Module : Data.Text.Search License : BSD-style Maintainer : , , Stability : experimental References: * F. Lundh: The Fast Search Algorithm. LIQUID LIQUID LIQUID FIXME: we don't currently parse the `:*` syntax used originally # UNPACK # # UNPACK # @...
# LANGUAGE BangPatterns , ScopedTypeVariables # Copyright : ( c ) 2009 Portability : GHC Fast substring search for ' Text ' , based on work by Boyer , Moore , Horspool , Sunday , and Lundh . * , : A Fast String Searching Algorithm . Communications of the ACM , 20 , 10 , 762 - 772 ( 1977 ) *...
e1fc7d29a8ea8bb008b36f710786eb884b6ddfe309275bf10609c16eca70c738
appleshan/cl-http
sysdcl.lisp
-*- Syntax : Ansi - Common - Lisp ; Base : 10 ; Mode : lisp ; Package : cl - user -*- ( C ) Copyright 1997 , ( ) . ;;; All Rights Reserved. ;;; ;;; ;;;------------------------------------------------------------------- ;;; Basic information retrieval system for CL - HTTP ;;; (in-package :cl-user) #+Gene...
null
https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/lispm/lambda-ir/sysdcl.lisp
lisp
Base : 10 ; Mode : lisp ; Package : cl - user -*- All Rights Reserved. -------------------------------------------------------------------
( C ) Copyright 1997 , ( ) . Basic information retrieval system for CL - HTTP (in-package :cl-user) #+Genera (unless (fs:get-logical-pathname-host "HTTP" t) (fs:make-logical-pathname-host "HTTP")) #+Genera (sct:defsystem lambda-ir (:pretty-name "Lambda Information Retrieval System" :default-pathn...
fe9a402f445291d240ef6d98f289d3ca7c6f404937b29337befbcdaf535b5740
damn/cdq
instance.clj
TODO refactor dependencies wg . instance - impl abkapselung (:use utils.core (engine core render) (game [settings :only (tile-width)]) game.maps.data game.item.cells (game.components core position body misc render glittering pressable) game.utils.msg-to-player)) (def- defitem-prefix "it...
null
https://raw.githubusercontent.com/damn/cdq/5093dbdba91c445e403f53ce96ead05d5ed8262b/src/game/item/instance.clj
clojure
put here so player sees that item is put on ground (confusing trying to put heal pot on player) blocked location checks if other solid bodies ... if put under player would block from player
TODO refactor dependencies wg . instance - impl abkapselung (:use utils.core (engine core render) (game [settings :only (tile-width)]) game.maps.data game.item.cells (game.components core position body misc render glittering pressable) game.utils.msg-to-player)) (def- defitem-prefix "it...
4b6927a4630fef8a7127fbff6413921a096edd746fc024d545d53565a6cbce05
it-is-wednesday/pitzulit
pitzulit_web.ml
open Opium let () = let port = 3420 in Printf.printf "API serving on port %d\n" port; flush stdout; App.empty |> App.port port |> App.run_command
null
https://raw.githubusercontent.com/it-is-wednesday/pitzulit/53b19505dda882e272c5671b26e4228146df97e1/web/pitzulit_web.ml
ocaml
open Opium let () = let port = 3420 in Printf.printf "API serving on port %d\n" port; flush stdout; App.empty |> App.port port |> App.run_command
b1db5d089c10e9dd4e6aa53e29a0411dcdd2b5210d382bdabf8de8f4bbad9779
xh4/web-toolkit
render.lisp
(in-package :component-test) (in-suite :component-test) (test render (it "should return a element" (ensure-cleanup (foo) (compile-and-load-toplevel-forms (define-component com () () (:render (lambda () (html:h1)))) (let ((com (com))) (let ((root (render com))) ...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/test/component/render.lisp
lisp
(it "should copy children" (ensure-cleanup (foo) (compile-and-load-toplevel-forms (define-component foo () () (:tag :div)) (let ((com (foo (html:h1) (html:h2))) (render (component::make-render '(lambda (com) )))) (let ((children-0 (children com)) (chi...
(in-package :component-test) (in-suite :component-test) (test render (it "should return a element" (ensure-cleanup (foo) (compile-and-load-toplevel-forms (define-component com () () (:render (lambda () (html:h1)))) (let ((com (com))) (let ((root (render com))) ...
8abcb0e216768aa73faad47e910d089c02b7e12a93f3984d895b7d6c45ed09b1
ocaml/oasis-db
OASISExprExt.ml
* Extensions for OASISExpr @author @author Sylvain Le Gall *) open OASISTypes open OASISUtils open ODBGettext open OASISExpr exception Unsolved_variable of string type t = package (** Knowing the given data, try to solve the choice. *) let trivial_choose_choice ?printer ?name data lst = ...
null
https://raw.githubusercontent.com/ocaml/oasis-db/f8b19d431102b5c5b7dced00a5242a5366ad263f/src/lib/OASISExprExt.ml
ocaml
* Knowing the given data, try to solve the choice. * When possible solve a flag and add its value to known data. * Search for an expression inside another expression.
* Extensions for OASISExpr @author @author Sylvain Le Gall *) open OASISTypes open OASISUtils open ODBGettext open OASISExpr exception Unsolved_variable of string type t = package let trivial_choose_choice ?printer ?name data lst = try Some (choose ?printer ?name...
d596aeb2d5c0351d9b4ad58fc103078878bfd645164a49912eb65adafb9f3c11
ocaml-flambda/flambda-backend
is_unboxing_beneficial.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-flambda/flambda-backend/61abb3f595c93a7d411726aff04c1d1ce2d54e40/middle_end/flambda2/simplify/unboxing/is_unboxing_beneficial.ml
ocaml
************************************************************************ OCaml ...
, OCamlPro and , Copyright 2014 - -2020 Jane Street Group LLC the GNU Lesser General Public License version 2.1 , with the open! Simplify_import module U = Unboxing_types module Extra_param_a...
9a3ace5d3812b7acba4d638d165048791150d374c9705bf32750a807221513e3
amosr/folderol
Pipes.hs
{-# LANGUAGE RankNTypes #-} {-# LANGUAGE BangPatterns #-} module Bench.Correlation.Pipes where import Bench.Correlation.Base import Bench.Plumbing.Foldl import Bench.Plumbing.Pipes import qualified Pipes as P import qualified Pipes.Prelude as P import qualified Control.Foldl as Fold import Control . Monad...
null
https://raw.githubusercontent.com/amosr/folderol/9b8c0cd30cfb798dadaa404cc66404765b1fc4fe/bench/Bench/Correlation/Pipes.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE BangPatterns #
module Bench.Correlation.Pipes where import Bench.Correlation.Base import Bench.Plumbing.Foldl import Bench.Plumbing.Pipes import qualified Pipes as P import qualified Pipes.Prelude as P import qualified Control.Foldl as Fold import Control . Monad . Trans . Class ( lift ) priceOverTime :: FilePath -> I...
166d877a8c4c360e4c666aa29494eb4c9cba97e58a1ede6c504e159e546657e5
evilbinary/scheme-lib
genwrite.scm
;;"genwrite.scm" generic write used by pretty-print and truncated-print. Copyright ( c ) 1991 , Author : ( ) ;; Distribution restrictions: none (define genwrite:newline-str (make-string 1 #\newline)) ;@ (define (generic-write obj display? width output) (define (read-macro? l) (define (length1? l) (and ...
null
https://raw.githubusercontent.com/evilbinary/scheme-lib/6df491c1f616929caa4e6569fa44e04df7a356a7/packages/slib/genwrite.scm
scheme
"genwrite.scm" generic write used by pretty-print and truncated-print. Distribution restrictions: none @ may have to split on multiple lines define formatting style (change these to suit your style) (reverse-string-append l) = (apply string-append (reverse l)) @
Copyright ( c ) 1991 , Author : ( ) (define genwrite:newline-str (make-string 1 #\newline)) (define (generic-write obj display? width output) (define (read-macro? l) (define (length1? l) (and (pair? l) (null? (cdr l)))) (let ((head (car l)) (tail (cdr l))) (case head ((quote quasiquot...
79c08fae5e2b711ae3c81b5e00d9d314a8858bb3f85a545aa172396da2d04ad7
appleby/99-lisp-problems
p15.lisp
;;;; (**) Replicate the elements of a list a given number of times. ;;;; Example: * ( repli ' ( a b c ) 3 ) ;;;; (A A A B B B C C C) (in-package :99-problems) (defun repli (lst n) (mapcan (lambda (x) (loop repeat n collect x)) lst)) (define-test repli-test (assert-equal '() (repli '() 0)) (assert-equal '(a a ...
null
https://raw.githubusercontent.com/appleby/99-lisp-problems/a12b2a585ac5af06f456f844d308bbada78e647c/p15.lisp
lisp
(**) Replicate the elements of a list a given number of times. Example: (A A A B B B C C C)
* ( repli ' ( a b c ) 3 ) (in-package :99-problems) (defun repli (lst n) (mapcan (lambda (x) (loop repeat n collect x)) lst)) (define-test repli-test (assert-equal '() (repli '() 0)) (assert-equal '(a a a b b b c c c) (repli '(a b c) 3)))
3ae654ad29f59261667e17e9f870c419c16250705641da61b83254ec9ddb280d
oreillymedia/etudes-for-erlang
geom.erl
%% @author J D Eisenberg <> %% @doc Functions for calculating areas of geometric shapes. 2013 J D Eisenberg %% @version 0.1 -module(geom). -export([area/3]). %% @doc Calculates the area of a shape, given the shape and two of the dimensions . Returns the product of its arguments for a rectangle , one half the %...
null
https://raw.githubusercontent.com/oreillymedia/etudes-for-erlang/07200372503a8819f9fcc2856f8cb82451be7b48/code/ch03-02/geom.erl
erlang
@author J D Eisenberg <> @doc Functions for calculating areas of geometric shapes. @version 0.1 @doc Calculates the area of a shape, given the product of the arguments for a triangle, and math:pi times the product of the arguments for an ellipse. Ensure that both arguments are greater than
2013 J D Eisenberg -module(geom). -export([area/3]). shape and two of the dimensions . Returns the product of its arguments for a rectangle , one half the or equal to zero . -spec(area(atom(), number(),number()) -> number()). area(rectangle, L,W) when L >=0, W >= 0 -> L * W; area(triangle, B, H) when B>= ...
07ef28a428461f67fafaeb0d3711bd5d8ca7429ffba483fe5356d8de632d6b25
foxford/mqtt-gateway
mqttgw_state.erl
-module(mqttgw_state). %% API -export([ new/0, get/1, find/1, put/2 ]). %% Types -record(state, { key, value }). %% Definitions -define(STATE_TABLE, ?MODULE). %% ============================================================================= %% API %% ==========================================...
null
https://raw.githubusercontent.com/foxford/mqtt-gateway/21428a63ef6d3676934b51b8a96481c9274ad7ff/src/mqttgw_state.erl
erlang
API Types Definitions ============================================================================= API =============================================================================
-module(mqttgw_state). -export([ new/0, get/1, find/1, put/2 ]). -record(state, { key, value }). -define(STATE_TABLE, ?MODULE). -spec new() -> ok. new() -> catch _ = ets:new( ?STATE_TABLE, [ set, public, named_table, {keypos, #state.key}, {read_concur...
7383e33d1ef924dd9effbef0edea5bc338ff991ccf50a2f1c91e46dd6e8b0ddc
jsarracino/spyder
Lexer.hs
module Language.Spyder.Parser.Lexer ( spyderLexer , Parser ) where import Text.Parsec import Text.Parsec.Expr import qualified Text.Parsec.Token as Tok type Parser a = Parsec String () a identStart :: Parser Char identStart = letter <|> char '_' <|> char '$' <|> char '?' identLetter :: Parser Char identLetter...
null
https://raw.githubusercontent.com/jsarracino/spyder/a2f6d08eb2a3907d31a89ae3d942b50aaba96a88/Language/Spyder/Parser/Lexer.hs
haskell
module Language.Spyder.Parser.Lexer ( spyderLexer , Parser ) where import Text.Parsec import Text.Parsec.Expr import qualified Text.Parsec.Token as Tok type Parser a = Parsec String () a identStart :: Parser Char identStart = letter <|> char '_' <|> char '$' <|> char '?' identLetter :: Parser Char identLetter...
0a93da0ff04588081b6c1a82a62ad9eb607b8a17777a153d5d407981068ff078
matijapretnar/eff
multicore.ml
type term = | Num of int | Add of term * term | Mul of term * term | Sub of term * term | Div of term * term effect DivByZero : (unit -> int) let rec interp = function | Num b -> b | Add (l, r) -> let x = interp l in let y = interp r in x + y | Mul (l, r) -> let x = interp l ...
null
https://raw.githubusercontent.com/matijapretnar/eff/0b0ec7a83e7db4d040ed8fdfc1ac6e3c0f344be1/misc/old-benchmarks-for-other-systems/interp/multicore.ml
ocaml
****************************************************************************
type term = | Num of int | Add of term * term | Mul of term * term | Sub of term * term | Div of term * term effect DivByZero : (unit -> int) let rec interp = function | Num b -> b | Add (l, r) -> let x = interp l in let y = interp r in x + y | Mul (l, r) -> let x = interp l ...
af6e94456c6e04803e85c04ea40478e175ce6fd43feb402fa6a4ad18d1158a11
nikomatsakis/a-mir-formality
relate.rkt
#lang racket (require redex/reduction-semantics "grammar.rkt" "relate/outlives.rkt" "relate/subtype.rkt" "relate/equate.rkt" "../logic/substitution.rkt" ) (provide ty:relate-parameters ) (define-metafunction formality-ty ty:relate-parameters : Env Relat...
null
https://raw.githubusercontent.com/nikomatsakis/a-mir-formality/71be4d5c4bd5e91d326277eaedd19a7abe3ac76a/racket-src/ty/relate.rkt
racket
#lang racket (require redex/reduction-semantics "grammar.rkt" "relate/outlives.rkt" "relate/subtype.rkt" "relate/equate.rkt" "../logic/substitution.rkt" ) (provide ty:relate-parameters ) (define-metafunction formality-ty ty:relate-parameters : Env Relat...
35163f3156a71a98a0bdd360d9bbe2bf7ae2bcedbd286418b8fb565ff756745d
andorp/bead
Submission.hs
# LANGUAGE CPP # module Bead.Persistence.SQL.Submission where import Control.Applicative import Data.Function (on) import Data.Maybe import Data.List (maximumBy) import Data.Set (Set) import qualified Data.Set as Set import qualified Data.Text as Text import ...
null
https://raw.githubusercontent.com/andorp/bead/280dc9c3d5cfe1b9aac0f2f802c705ae65f02ac2/src/Bead/Persistence/SQL/Submission.hs
haskell
* Submission Saves the submission for a given assignment, submitted by the given user Loads the given submission from the database Returns the assignment for the submission Returns the username for the submission Lists all the submissions stored in the database Returns the evaluation for the submission if the ev...
# LANGUAGE CPP # module Bead.Persistence.SQL.Submission where import Control.Applicative import Data.Function (on) import Data.Maybe import Data.List (maximumBy) import Data.Set (Set) import qualified Data.Set as Set import qualified Data.Text as Text import ...
e4288a2614c131226f570682a7e1292ca060c19b298b0abe1115283972e0222a
tnelson/Forge
partial-instance.rkt
#lang forge/core (set-verbosity 10) (sig A) (relation R (A A)) (inst my-inst ;(ni A (+ B0 (+ B1 B2))) (ni A (+ B0 (+ B1 B2))) (in A (+ (+ B0 (+ B1 B11)) (+ B2 B3))) (= R (-> B0 B3))) ( < = 1 ( card A ) 4 ) ) (run my-run #:scope ([Int 5] [A 2 8]) #:bounds [my-inst]) (displa...
null
https://raw.githubusercontent.com/tnelson/Forge/1687cba0ebdb598c29c51845d43c98a459d0588f/forge/example/forge-core/partial-instance.rkt
racket
(ni A (+ B0 (+ B1 B2))) #(struct:Run-spec (Int A) (succ) #<set:> #<set:> #<set:> #<set:> #(struct:Options SAT4J 5 5 0 0)) () #(struct:Scope #f #f #hash((A . #(struct:Range 0 8)))) #(struct:Bound #hash(((relation 1 "A"...
#lang forge/core (set-verbosity 10) (sig A) (relation R (A A)) (inst my-inst (ni A (+ B0 (+ B1 B2))) (in A (+ (+ B0 (+ B1 B11)) (+ B2 B3))) (= R (-> B0 B3))) ( < = 1 ( card A ) 4 ) ) (run my-run #:scope ([Int 5] [A 2 8]) #:bounds [my-inst]) (display my-run) # ( struct...
463435a5f3a69f3a4d64624745080680854ac5f8c70ced90bac260a4a9ffe8e5
raehik/binrep
Util.hs
# LANGUAGE AllowAmbiguousTypes # module Binrep.Util where -- tshow import Data.Text qualified as Text import Data.Text ( Text ) -- posIntToNat import GHC.Exts ( Int(..), int2Word# ) import GHC.Num.Natural ( Natural(..) ) -- natVal'' import GHC.TypeNats ( KnownNat, natVal' ) import GHC.Exts ( proxy#, Proxy# ) tshow...
null
https://raw.githubusercontent.com/raehik/binrep/b191971d0c6092d3df9f17bfab97c5748176541d/src/Binrep/Util.hs
haskell
tshow posIntToNat natVal'' This is intended for wrapping the output of 'length' functions. underflows if you call it with a negative 'Int' :)
# LANGUAGE AllowAmbiguousTypes # module Binrep.Util where import Data.Text qualified as Text import Data.Text ( Text ) import GHC.Exts ( Int(..), int2Word# ) import GHC.Num.Natural ( Natural(..) ) import GHC.TypeNats ( KnownNat, natVal' ) import GHC.Exts ( proxy#, Proxy# ) tshow :: Show a => a -> Text tshow = Text...
df8d894a55b56243a63eaf295ec9c1b80e72aeec6795a2e6f4452669823e7709
xapi-project/xen-api
lib.ml
* Copyright ( C ) Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in file LI...
null
https://raw.githubusercontent.com/xapi-project/xen-api/20b0574fa0f60c72b5a8eeafbc84bb485ebb6c22/ocaml/gencert/lib.ml
ocaml
* Copyright ( C ) Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in file LI...
409357aef404c485e5cfe733ae5fc2ed8ecc68b95a784d6485522dd4d1854f7d
glv2/cl-monero-tools
rpc.lisp
;;;; This file is part of monero-tools Copyright 2016 - 2020 Distributed under the GNU GPL v3 or later . ;;;; See the file LICENSE for terms of use and distribution. (in-package :monero-rpc) (defparameter *rpc-host* "127.0.0.1" "Location of the RPC server.") (defparameter *rpc-port* 18081 "Port on which ...
null
https://raw.githubusercontent.com/glv2/cl-monero-tools/ab972ac3a7c5489cf23e3bdaa5d390d5cff1732b/monero-rpc/rpc.lisp
lisp
This file is part of monero-tools See the file LICENSE for terms of use and distribution. def*rpc macros usage: (def*rpc my-rpc ("my_method" arg1 arg2 arg3 &key optarg1 optarg2) "my docstring" ; optional optional unless postprocess (lambda (result) (process result))) ; optional postprocess
Copyright 2016 - 2020 Distributed under the GNU GPL v3 or later . (in-package :monero-rpc) (defparameter *rpc-host* "127.0.0.1" "Location of the RPC server.") (defparameter *rpc-port* 18081 "Port on which the RPC server expects connections.") (defparameter *rpc-user* nil "Username to use to connect to ...
51b128dc17c46d3072369be7ffe375bdd2f658541e14947cddadbb7da137e227
robrix/sequoia
Internal.hs
module Sequoia.Functor.Sink.Internal ( Snk(..) ) where import Data.Functor.Contravariant import Sequoia.Functor.Applicative import Sequoia.Profunctor.Continuation import Sequoia.Profunctor.Exp newtype Snk e r a = Snk { runSnkFn :: (e -> a) -> (e -> r) } instance Contravariant (Snk e r) where contramap f = Snk . (....
null
https://raw.githubusercontent.com/robrix/sequoia/2851088bc763e6c8bad99152ab94b2cf7bf7c580/src/Sequoia/Functor/Sink/Internal.hs
haskell
module Sequoia.Functor.Sink.Internal ( Snk(..) ) where import Data.Functor.Contravariant import Sequoia.Functor.Applicative import Sequoia.Profunctor.Continuation import Sequoia.Profunctor.Exp newtype Snk e r a = Snk { runSnkFn :: (e -> a) -> (e -> r) } instance Contravariant (Snk e r) where contramap f = Snk . (....
b0cf2dcd3b4365a5af1b6aa47ffa79afbbc62f616dd181a1029a58a745d6dd79
bsless/stress-server
stress_server.clj
(ns com.github.bsless.stress-server (:require [io.pedestal.http :as server] [reitit.pedestal :as pedestal] [org.httpkit.server :as httpkit] [aleph.http :as aleph] [ring.adapter.jetty :as jetty] [pohjavirta.server :as pohjavirta] [ring.adapter.undertow :as ut] [com.github.bsless.httpkit :as ...
null
https://raw.githubusercontent.com/bsless/stress-server/ec764a9deba7ab9712d6816db82abe103482848a/src/com/github/bsless/stress_server.clj
clojure
no pedestal routes allow serving the swagger-ui styles & scripts from self use the reitit router
(ns com.github.bsless.stress-server (:require [io.pedestal.http :as server] [reitit.pedestal :as pedestal] [org.httpkit.server :as httpkit] [aleph.http :as aleph] [ring.adapter.jetty :as jetty] [pohjavirta.server :as pohjavirta] [ring.adapter.undertow :as ut] [com.github.bsless.httpkit :as ...
cada596905d29c0b795a54de43d32193c0472211dbae07c201bc8c49e9c0d805
Eduap-com/WordMat
clisp-command2.lisp
(load "../lisp-utils/defsystem.lisp") (mk:add-registry-location "../src/") (load "../lisp-utils/make-depends.lisp") (funcall (intern "CREATE-DEPENDENCY-FILE" :mk) "binary-clisp/maxima.mem" "clisp-depends.mk.tmp")
null
https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/src/clisp-command2.lisp
lisp
(load "../lisp-utils/defsystem.lisp") (mk:add-registry-location "../src/") (load "../lisp-utils/make-depends.lisp") (funcall (intern "CREATE-DEPENDENCY-FILE" :mk) "binary-clisp/maxima.mem" "clisp-depends.mk.tmp")
e4da87827eca07dd41cb01c521be1206c433f58a4e87a915ad8922a6c2dc85f6
jkvor/log_roller
lr_hooks.erl
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, publis...
null
https://raw.githubusercontent.com/jkvor/log_roller/1f072ab74532314f94bdc94dd5a8572d5ceb8d4e/src/lr_hooks.erl
erlang
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell Software is furnished to do so, subject to the following condi...
Copyright ( c ) 2009 < > files ( the " Software " ) , to deal in the Software without copies of the Software , and to permit persons to whom the included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , -module(lr_hooks). -author(''...
3382d77d81981db2ac58f598ae6c39b89cb4b009060d45a95a74fdbeb12db972
ocaml-ppx/ocaml-migrate-parsetree
ast_413.ml
(**************************************************************************) (* *) (* OCaml Migrate Parsetree *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-ppx/ocaml-migrate-parsetree/b621868d361c95e7c3c413b484d435629ea85464/src/ast_413.ml
ocaml
************************************************************************ OCaml Migrate Parsetree ...
, Facebook and , Europe , projet Cristal , INRIA Rocquencourt , LexiFi , projet Cristal , INRIA Rocquencourt Copyright 2018 Institu...
adcaa8bf2d9ed7cd01ea03b874c9293c21dcdb2f3777ea66fe23e71e3bdb2e05
xvw/ocamlectron
Tools.mli
open Js_of_ocaml * Same of [ require ] from JavaScript val require : string -> 'a (** Relativize URL *) val relativize: string -> string (** Log data *) val log : 'a -> 'a * Coerce JSArray to List val js_array_to_list : ('a -> 'b) -> 'a Js.js_array Js.t -> 'b list
null
https://raw.githubusercontent.com/xvw/ocamlectron/3e0cb9575975e69ab34cb7e0e3549d31c07141c2/lib/electron_api/Tools.mli
ocaml
* Relativize URL * Log data
open Js_of_ocaml * Same of [ require ] from JavaScript val require : string -> 'a val relativize: string -> string val log : 'a -> 'a * Coerce JSArray to List val js_array_to_list : ('a -> 'b) -> 'a Js.js_array Js.t -> 'b list
e733bf183aa3a8325aa72ab2be4c284311eb151294e7d22c346b85f095f59dcb
AdRoll/rebar3_depup
dep_hex.erl
%% @doc Interface with hex.pm -module(dep_hex). -behaviour(hex_http). -export([request/5]). -export([get_latest_vsn/1]). @doc Returns the latest version of a package in hex.pm -spec get_latest_vsn(atom()) -> binary() | undefined. get_latest_vsn(Name) -> case hex_repo:get_package(config(), atom_to_binary(Name, ...
null
https://raw.githubusercontent.com/AdRoll/rebar3_depup/03c1e23f18de3bff4dc0981b266bbe62fdae7171/src/dep_hex.erl
erlang
@doc Interface with hex.pm ==================================================================== ====================================================================
-module(dep_hex). -behaviour(hex_http). -export([request/5]). -export([get_latest_vsn/1]). @doc Returns the latest version of a package in hex.pm -spec get_latest_vsn(atom()) -> binary() | undefined. get_latest_vsn(Name) -> case hex_repo:get_package(config(), atom_to_binary(Name, utf8)) of {ok, {200, _...
8b91d751515efaf79423c9d0822abc4e66f22e9b95c6823bfc8a7ed8d4e042da
ujamjar/reedsolomon
iter.mli
* reedsolomon - error correction CODEC * * ( c ) 2014 MicroJamJar Ltd * * Author(s ): * Description : * * reedsolomon - error correction CODEC * * (c) 2014 MicroJamJar Ltd * * Author(s): * Description: * *) type rsparams = { m : int; (* bits per symbol *) k : int; (* messag...
null
https://raw.githubusercontent.com/ujamjar/reedsolomon/6612f71e8cc30b6d3bfccccfdb8409bd6a0ec58f/src/iter.mli
ocaml
bits per symbol message symbols codeword symbols starting root of generator primitive polynomial primitive element
* reedsolomon - error correction CODEC * * ( c ) 2014 MicroJamJar Ltd * * Author(s ): * Description : * * reedsolomon - error correction CODEC * * (c) 2014 MicroJamJar Ltd * * Author(s): * Description: * *) type rsparams = { correction capability , 2t = parity symbols } type...
2d099aa3349807ac88109bf1523e4baeefe8df8f6b4b96bb9019959cc2e3b35b
databrary/databrary
Measure.hs
# LANGUAGE OverloadedStrings , module Model.Measure ( getRecordMeasures , getMeasure , changeRecordMeasure , removeRecordMeasure , decodeMeasure , measuresJSON ) where import Control.Monad (guard) import Data.Foldable (fold) import Data.List (find) import Data.Maybe (fromMaybe) import Data.Ord (compari...
null
https://raw.githubusercontent.com/databrary/databrary/685f3c625b960268f5d9b04e3d7c6146bea5afda/src/Model/Measure.hs
haskell
.(updateMeasure 'ident 'm) .(insertMeasure 'ident 'm) .(deleteMeasure 'ident 'm) | Enforce release on record somehow??? reads better with case than maybe use monoid, defaulting to PRIVATE
# LANGUAGE OverloadedStrings , module Model.Measure ( getRecordMeasures , getMeasure , changeRecordMeasure , removeRecordMeasure , decodeMeasure , measuresJSON ) where import Control.Monad (guard) import Data.Foldable (fold) import Data.List (find) import Data.Maybe (fromMaybe) import Data.Ord (compari...
280e810c64b8998bce3a113450b50bfcd8c92f36226f862672889aa422865847
electric-sql/vaxine
materializer.erl
%% ------------------------------------------------------------------- %% Copyright < 2013 - 2018 > < Technische Universität Kaiserslautern , Germany , France Universidade NOVA de Lisboa , Portugal Université catholique de Louvain ( UCL ) , Belgique , Portugal %% > %% This file is provided...
null
https://raw.githubusercontent.com/electric-sql/vaxine/872a83ea8d4935a52c7b850bb17ab099ee9c346b/apps/antidote/src/materializer.erl
erlang
------------------------------------------------------------------- > Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either expressed or implied. See the License for the specific language governing perm...
Copyright < 2013 - 2018 > < Technische Universität Kaiserslautern , Germany , France Universidade NOVA de Lisboa , Portugal Université catholique de Louvain ( UCL ) , Belgique , Portugal This file is provided to you under the Apache License , except in compliance with the License . You...
ef4a8dc4ad73380c1454a5434626808a3eb35f0cac434b30bde1a40aba7a151a
camlp5/camlp5
longident.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/camlp5/camlp5/15e03f56f55b2856dafe7dd3ca232799069f5dda/ocaml_stuff/4.11.0/parsing/longident.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the * Long identifiers , used in parsetree . { b Warning :} this module is unstable and part of { { ...
fcc4227dca71c7f6ba61ba132dd8fad19c709b01adf0eaa0b735ee4b649f2f55
eyedouble/couchdb
couchdb_sup.erl
%% @hidden -module(couchdb_sup). -author('Benoît Chesneau <>'). -behaviour(supervisor). -export([start_link/0, init/1]). -define(SERVER, ?MODULE). start_link() -> supervisor:start_link({local, ?SERVER}, ?MODULE, []). init([]) -> gen_server to cache UUIDs generated by the couchdb node . Uuids = {couchdb_u...
null
https://raw.githubusercontent.com/eyedouble/couchdb/39830e536e803dfb492bfdb8b3644839cdd7e356/src/couchdb_sup.erl
erlang
@hidden %% view stream supervisor %% changes stream supervisor
-module(couchdb_sup). -author('Benoît Chesneau <>'). -behaviour(supervisor). -export([start_link/0, init/1]). -define(SERVER, ?MODULE). start_link() -> supervisor:start_link({local, ?SERVER}, ?MODULE, []). init([]) -> gen_server to cache UUIDs generated by the couchdb node . Uuids = {couchdb_uuids, ...
2175e45e754eb7bc5ce488f2f02988b9764f8fbf5d78a97fe423ec09af18fede
soegaard/web-tutorial
structs.rkt
#lang racket/base (provide (struct-out authentication-error)) (struct authentication-error (message) #:transparent)
null
https://raw.githubusercontent.com/soegaard/web-tutorial/511a03410a440ed32475484ae93483f4ddd6656c/listit2/structs.rkt
racket
#lang racket/base (provide (struct-out authentication-error)) (struct authentication-error (message) #:transparent)
2991f3df8949229063a647dddf7e8224737dece99b5eacefd2c80d476c98d260
roblaing/erlang-webapp-howto
unit6_sup.erl
%%%------------------------------------------------------------------- %% @doc unit6 top level supervisor. %% @end %%%------------------------------------------------------------------- -module(unit6_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(SERVER, ?MODULE). start_link() -...
null
https://raw.githubusercontent.com/roblaing/erlang-webapp-howto/e1731dfc4e2cfdfee88e982d67155b83acd5cc04/unit6/apps/unit6/src/unit6_sup.erl
erlang
------------------------------------------------------------------- @doc unit6 top level supervisor. @end ------------------------------------------------------------------- sup_flags() = #{strategy => strategy(), % optional intensity => non_neg_integer(), % optional optional child_spec() ...
-module(unit6_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(SERVER, ?MODULE). start_link() -> supervisor:start_link({local, ?SERVER}, ?MODULE, []). init([]) -> SupFlags = #{strategy => one_for_all, intensity => 0, period => 1}, Chi...
b0636a51b70ca38529f8fd081e0f9245d309ec9121fe65e20d20d3478f629ed8
kumarshantanu/lein-servlet
jetty.clj
(ns leiningen.servlet.engine.jetty "Jetty adapter plugin for lein-servlet" (:import (java.net InetSocketAddress) (javax.servlet.http HttpServlet) (org.eclipse.jetty.server Connector Handler Server) (org.eclipse.jetty.server.handler Conte...
null
https://raw.githubusercontent.com/kumarshantanu/lein-servlet/2be06155a677eba1c5a812d28499cd5b23535414/adapter-jetty7/src/leiningen/servlet/engine/jetty.clj
clojure
set servlet init params if specified Refer the URL below for the subsequent options: set HTTP (and if specified, SSL) connectors SSL connector HTTP connector start server
(ns leiningen.servlet.engine.jetty "Jetty adapter plugin for lein-servlet" (:import (java.net InetSocketAddress) (javax.servlet.http HttpServlet) (org.eclipse.jetty.server Connector Handler Server) (org.eclipse.jetty.server.handler Conte...
58a60081a370a1517a09f1f345fb8db6d00d3f57c8a0a738b75cc06931552a55
xsc/pandect
hmac.clj
(ns ^:no-doc pandect.impl.message-digest.hmac (:require [pandect.gen [core :as gen] [hmac-generator :as hmac]] [pandect.utils.convert :as convert]) (:import [javax.crypto Mac] [javax.crypto.spec SecretKeySpec])) # # Code Generator (deftype MessageDigestHMACGen [a...
null
https://raw.githubusercontent.com/xsc/pandect/ffc95e81484045ddbe235a2f4208bd5677f1195b/src/pandect/impl/message_digest/hmac.clj
clojure
(ns ^:no-doc pandect.impl.message-digest.hmac (:require [pandect.gen [core :as gen] [hmac-generator :as hmac]] [pandect.utils.convert :as convert]) (:import [javax.crypto Mac] [javax.crypto.spec SecretKeySpec])) # # Code Generator (deftype MessageDigestHMACGen [a...
5b754e6aa111778032c7d459905badc23f07817cfc6b75945187129790bb8830
kar7hik/mfcc
wav.lisp
(in-package #:mfcc) (defun load-wav-file (filename &key (verbose t)) "Read a wav audio file. See . Or: /" (when verbose (format t "Reading WAV file: ~A~%" filename)) (let ((bytes nil)) (with-open-file (f filename :direction :input :element-type '(unsigned-byte 8)) (setf bytes (make-array (file-length ...
null
https://raw.githubusercontent.com/kar7hik/mfcc/26852ec7e7ffb6cfd78fb11fbe64ddb0c390a406/src/audio-io/wav.lisp
lisp
number of channels Sample rate in Hz X ExtraParams space for extra parameters o/w it's compressed.... ) #+test #+test (save-to-file "audio.txt" (audio-data *wav-file*)) Sample multiplier value taken from /~dthain/courses/cse20211/fall2013/wavfile/example.c Finally write the samples to the f...
(in-package #:mfcc) (defun load-wav-file (filename &key (verbose t)) "Read a wav audio file. See . Or: /" (when verbose (format t "Reading WAV file: ~A~%" filename)) (let ((bytes nil)) (with-open-file (f filename :direction :input :element-type '(unsigned-byte 8)) (setf bytes (make-array (file-length ...
2a65ddff989f3f3b0340ca122dc2d407bb4fae41d08695e27386858100b492e6
jwiegley/notes
shroedinger.hs
import System.Random flipCoin :: StdGen -> Bool flipCoin gen = fst $ random gen data Cat = Cat String deriving Show data Schroedinger a = Live a | Dead a deriving Show putInBox :: StdGen -> Cat -> Schroedinger Cat putInBox gen x = if flipCoin gen then Live x else Dead x main = do gen <- getStdGen print (putInBo...
null
https://raw.githubusercontent.com/jwiegley/notes/24574b02bfd869845faa1521854f90e4e8bf5e9a/gists/f719a3d41696d48f6005/misc/shroedinger.hs
haskell
import System.Random flipCoin :: StdGen -> Bool flipCoin gen = fst $ random gen data Cat = Cat String deriving Show data Schroedinger a = Live a | Dead a deriving Show putInBox :: StdGen -> Cat -> Schroedinger Cat putInBox gen x = if flipCoin gen then Live x else Dead x main = do gen <- getStdGen print (putInBo...
da590e017f89b47bc31990c2f8a64c4e1c5640198a1c360e0017469caf0da0de
lafka/linedancer
echo_fsm.erl
-module(echo_fsm). -behaviour(gen_fsm). -export([start_link/0]). %% gen_fsm callbacks -export([init/1, handle_event/3, handle_sync_event/4, handle_info/3, terminate/3, code_change/4]). -export(['INIT'/3, 'RECV'/3]). -record(state, {socket :: gen_tcp:socket()}). start_link() -> gen_fsm:start_link(?MODULE, [], [...
null
https://raw.githubusercontent.com/lafka/linedancer/a05eb949b0fec72df7e4663f50871020d35056c0/examples/echo/src/echo_fsm.erl
erlang
gen_fsm callbacks
-module(echo_fsm). -behaviour(gen_fsm). -export([start_link/0]). -export([init/1, handle_event/3, handle_sync_event/4, handle_info/3, terminate/3, code_change/4]). -export(['INIT'/3, 'RECV'/3]). -record(state, {socket :: gen_tcp:socket()}). start_link() -> gen_fsm:start_link(?MODULE, [], []). init(Args) -> {o...
bbe465c4c7bd6a495d6f2205449363e51b8546ef520d775fb1e2c0b1d2a8404a
mbutterick/aoc-racket
test.rkt
#lang reader "lang.rkt" cpy 2 a
null
https://raw.githubusercontent.com/mbutterick/aoc-racket/2c6cb2f3ad876a91a82f33ce12844f7758b969d6/2016/day23/test.rkt
racket
#lang reader "lang.rkt" cpy 2 a
32f3d6a711395215ef47c1028df2a525099804fae7d8762a5ad2eef25a6b2a8b
sondresl/AdventOfCode
24-lib.hs
# LANGUAGE DeriveFunctor # import Data.Maybe (fromJust) import Control.Lens import Data.List.Extra (delete, splitOn) import Data.Functor.Foldable import qualified Data.IntMap.Strict as Map type Piece = (Int, Int) type Chain = [Piece] type Pool = Map.IntMap [Int] parse :: String...
null
https://raw.githubusercontent.com/sondresl/AdventOfCode/51525441795417f31b3eb67a690aa5534d1e699b/2017/rec-scheme/24-lib.hs
haskell
# LANGUAGE DeriveFunctor # import Data.Maybe (fromJust) import Control.Lens import Data.List.Extra (delete, splitOn) import Data.Functor.Foldable import qualified Data.IntMap.Strict as Map type Piece = (Int, Int) type Chain = [Piece] type Pool = Map.IntMap [Int] parse :: String...
51cb066088a15a0a367aff4cfddf18da7e2bbadc876ce8b3e68afc4b45dcf6ca
ghc/nofib
Auto.hs
module Auto where import Core_datatype import Edlib import Lookup import Tree import X_interface import Vtslib import Tactics import Parse import Type_defs import Goals import Globals -- partain import Tags -- partain import Kernel auto_tac = Tactic "Auto" null_arg_fn auto split_tac = OrdTactic ( " Split",...
null
https://raw.githubusercontent.com/ghc/nofib/f34b90b5a6ce46284693119a06d1133908b11856/real/veritas/Auto.hs
haskell
partain partain
module Auto where import Core_datatype import Edlib import Lookup import Tree import X_interface import Vtslib import Tactics import Parse import Type_defs import Goals import Kernel auto_tac = Tactic "Auto" null_arg_fn auto split_tac = OrdTactic ( " Split",null_arg_fn , split ) auto _ sg lt _ (TrmSpec t...
be1896a04d571884aa4a7a6d8c167db7b58d2e7cf8c1fd3fd00bb8e8a1d3bfa0
mu-chaco/ReWire
HigherOrderBug.hs
import ReWire -- This used to fail because the type checker would try to take the type on the -- left-hand side of f's arrow while it was still tagged with an evar. f :: (() -> ()) -> () -> () f = \ f -> \ x -> f x start :: ReT () () I () start = do signal () start main = undefined
null
https://raw.githubusercontent.com/mu-chaco/ReWire/a8dcea6ab0989474988a758179a1d876e2c32370/tests/regression/HigherOrderBug.hs
haskell
This used to fail because the type checker would try to take the type on the left-hand side of f's arrow while it was still tagged with an evar.
import ReWire f :: (() -> ()) -> () -> () f = \ f -> \ x -> f x start :: ReT () () I () start = do signal () start main = undefined
886953b1440db95d9d71ea5a32a425a73e4d81a0553ad884003ec9e5c6fc5394
apache/couchdb-mochiweb
mochihex.erl
@author < > @copyright 2006 Mochi Media , Inc. %% %% 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, modif...
null
https://raw.githubusercontent.com/apache/couchdb-mochiweb/d3c47a9e8833cd878c9227093e30a2341ee32900/src/mochihex.erl
erlang
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, publish, distribute, sublicense, Software is furnished to do so, subject to the following conditions: The above copyright noti...
@author < > @copyright 2006 Mochi Media , Inc. to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF AN...
80bd2b8d7ff4c9618d3080da906a0d47ba1ec43ea2a3c7fa4483ac072784585d
hunt-framework/hunt
SegmentIndex.hs
# LANGUAGE RecordWildCards # module Hunt.SegmentIndex ( SegIxRef , openOrNewSegmentIndex , AccessMode(..) , AtRevision(..) , IndexOpenError(..) , insertContext , deleteContext , newWriter , insertDocuments , closeWriter ) where import Hunt.Common.ApiDocument (ApiDocument...
null
https://raw.githubusercontent.com/hunt-framework/hunt/d692aae756b7bdfb4c99f5a3951aec12893649a8/hunt-searchengine/src/Hunt/SegmentIndex.hs
haskell
| Inserts a 'Context' into the index. /Note/: Does nothing if the context already exists. | Removes context (including the index and the schema). and never fails. | Insert multiple 'ApiDocument's to the index. | Closes the 'IndexWriter' and commits all changes. After a call to 'closeWriter' any change made is ...
# LANGUAGE RecordWildCards # module Hunt.SegmentIndex ( SegIxRef , openOrNewSegmentIndex , AccessMode(..) , AtRevision(..) , IndexOpenError(..) , insertContext , deleteContext , newWriter , insertDocuments , closeWriter ) where import Hunt.Common.ApiDocument (ApiDocument...
0c043659187e01c71dc5201610eccb7b34610351c2b8cd459f4e988a6a681a53
stackbuilders/atomic-write
ByteString.hs
-- | -- Module : System.AtomicWrite.Writer.ByteString Copyright : © 2015 - 2019 Stack Builders Inc. License : MIT -- Maintainer : Stack Builders < > -- Stability : experimental -- Portability : portable -- Provides functionality to dump the contents of a ByteString -- to a file in tex...
null
https://raw.githubusercontent.com/stackbuilders/atomic-write/50976b9d249134d05191c4e430343594fdb034fb/src/System/AtomicWrite/Writer/ByteString.hs
haskell
| Module : System.AtomicWrite.Writer.ByteString Stability : experimental Portability : portable to a file in text mode. | Creates or modifies a file atomically on POSIX-compliant systems while preserving permissions. ^ The path where the file will be updated or created ^ The content to write to the...
Copyright : © 2015 - 2019 Stack Builders Inc. License : MIT Maintainer : Stack Builders < > Provides functionality to dump the contents of a ByteString module System.AtomicWrite.Writer.ByteString (atomicWriteFile, atomicWriteFileWithMode) where import System.AtomicWrite.Internal (at...
0700c4024aa38d3e7e60b32fdb26f3f6066a325ca1d752e5e7afea46c15212a4
clojure-interop/aws-api
AWSTransfer.clj
(ns com.amazonaws.services.transfer.AWSTransfer "Interface for accessing AWS Transfer. Note: Do not directly implement this interface, new methods are added to it regularly. Extend from AbstractAWSTransfer instead. AWS Transfer for SFTP is a fully managed service that enables the transfer of files directly ...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.transfer/src/com/amazonaws/services/transfer/AWSTransfer.clj
clojure
there is no
(ns com.amazonaws.services.transfer.AWSTransfer "Interface for accessing AWS Transfer. Note: Do not directly implement this interface, new methods are added to it regularly. Extend from AbstractAWSTransfer instead. AWS Transfer for SFTP is a fully managed service that enables the transfer of files directly ...
64e6e1c4d0a9ae12dd85965917a22146dcfecb673d7b2fde2fdd1659e917d30d
glondu/belenios
site_common.ml
(**************************************************************************) (* BELENIOS *) (* *) Copyright © 2012 - 2022 (* ...
null
https://raw.githubusercontent.com/glondu/belenios/4f3a214d0876d9b78c0055d97af4638a953c9d70/src/web/server/common/site_common.ml
ocaml
************************************************************************ BELENIOS This program is free softw...
Copyright © 2012 - 2022 it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the exemption that compiling , linking , and/or using OpenSSL is allowed . You should have rece...
272cee186592b35d8379065f01401a6710a23b81ed772c0be66ed6a074b47312
aadafinance/aada-finance
show-dat-rdm.hs
# LANGUAGE ImportQualifiedPost # # LANGUAGE NumericUnderscores # {-# LANGUAGE OverloadedStrings #-} import qualified Data.Aeson.Encode.Pretty as Json import Data.ByteString.Lazy qualified as LB import Prelude import Cardano.Api ( scriptDataToJson, ScriptDataJsonSchema(ScriptDataJsonDetailedSchema) ) import ...
null
https://raw.githubusercontent.com/aadafinance/aada-finance/83b68d9bd65788b2cb6d14d7da429a30ced3f706/app/show-dat-rdm.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE ImportQualifiedPost # # LANGUAGE NumericUnderscores # import qualified Data.Aeson.Encode.Pretty as Json import Data.ByteString.Lazy qualified as LB import Prelude import Cardano.Api ( scriptDataToJson, ScriptDataJsonSchema(ScriptDataJsonDetailedSchema) ) import Cardano.Api.Shelley ( fromPlutusDat...
c3ff2aa3ec5c744b3a7c57da552bd695a7417af94afb197fe167fa8a3e7abe3e
cljs-audio/cljs-audio
dsl_spec.cljc
(ns cljs-audio.dsl-spec (:require [clojure.spec.alpha :as s] [clojure.spec.gen.alpha :as gen] [clojure.test.check :as tt] [camel-snake-kebab.core :as csk] [clojure.string :as cs] [clojure.set :refer [subset?]])) ;; DESIGN ;; input: ;; patch (dsl sentence) ;...
null
https://raw.githubusercontent.com/cljs-audio/cljs-audio/b8661eb6f4852b37236438d7e31b4bde4a3cfe5f/src/main/cljs_audio/dsl_spec.cljc
clojure
DESIGN input: patch (dsl sentence) state: old-patch-ast - dsl unfolded into a parsable description new-patch-ast context (web audio context) web-audio-env (map of ids to nodes/failure-messages) process: user-input -> patch -> patch-ast -> commands -> interpreter Ideas! backtrack failures to the parts of the...
(ns cljs-audio.dsl-spec (:require [clojure.spec.alpha :as s] [clojure.spec.gen.alpha :as gen] [clojure.test.check :as tt] [camel-snake-kebab.core :as csk] [clojure.string :as cs] [clojure.set :refer [subset?]])) (defn is-io-node-id [id] (= id :>)) (s/def...
2c228240efa903d0427c4292f581aedf87e59729cb05eb34cc59620f22bb7afe
voxoz/emqttd
emqttd_cli.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2013 - 2017 EMQ Enterprise , Inc. ( ) %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% ...
null
https://raw.githubusercontent.com/voxoz/emqttd/2be612e0e7a00a866cd9af350a030966d73fbc09/src/emqttd_cli.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2013 - 2017 EMQ Enterprise , Inc. ( ) Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqttd_cli). -compile({parse_transform, lager_transform}). -author("Feng Lee <>"). -include("emqttd.hrl"). -...
3def038151656e960c12b65a5708806382f3edc31dbe970ced0c6cf0d9a6ea1a
awakesecurity/proto3-suite
Timestamp.hs
# LANGUAGE CPP # # LANGUAGE DataKinds # {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE GADTs #-} {-# LANGUAGE OverloadedStrings #-} # OPTIONS_GHC -fno - warn - missing - export - lists # # OPTIONS_GHC -fno - warn - name - shadowing # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC ...
null
https://raw.githubusercontent.com/awakesecurity/proto3-suite/d4a288068587f8738c84465a9ca113a3fe845ffc/src/Google/Protobuf/Timestamp.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # | This module has been initialized using The ToJSONPB and FromJSONPB instances have been modified to
# LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # OPTIONS_GHC -fno - warn - missing - export - lists # # OPTIONS_GHC -fno - warn - name - shadowing # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # be compatible with the json rfc3339 encoding module Go...
5fb5b6126047f2bc9a076e55dd1bd926a9128c909d1dbbf945b4954a1df87de5
racket/racket7
boundmap.rkt
(module boundmap racket/base (require (for-syntax racket/base)) (define-syntax (make-mapping-code stx) (syntax-case stx () [(_ identifier->symbol make-identifier-mapping identifier-mapping-ht identifier-mapping? identifier-mapping-get identifier-mappin...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/collects/syntax/private/boundmap.rkt
racket
the entries in the hash-table narrow the mapping to the identifiers that match that key. the entries in the hash-table narrow the mapping to the identifiers that match that key.
(module boundmap racket/base (require (for-syntax racket/base)) (define-syntax (make-mapping-code stx) (syntax-case stx () [(_ identifier->symbol make-identifier-mapping identifier-mapping-ht identifier-mapping? identifier-mapping-get identifier-mappin...
243a74808542355edf194f32bce9179f8889502a468adbb5487ca8c787bf4ca4
takeoutweight/clojure-scheme
letfn_test.cljs
(ns cljs.letfn-test) (defn test-letfn [] (letfn [(ev? [x] (if (zero? x) true (od? (dec x)))) (od? [x] (if (zero? x) false (ev? (dec x))))] (assert (ev? 0)) (assert (ev? 10)) (assert (not (ev? 1))) (assert (not (...
null
https://raw.githubusercontent.com/takeoutweight/clojure-scheme/6121de1690a6a52c7dbbe7fa722aaf3ddd4920dd/test/cljs/cljs/letfn_test.cljs
clojure
(ns cljs.letfn-test) (defn test-letfn [] (letfn [(ev? [x] (if (zero? x) true (od? (dec x)))) (od? [x] (if (zero? x) false (ev? (dec x))))] (assert (ev? 0)) (assert (ev? 10)) (assert (not (ev? 1))) (assert (not (...
9df9ecaada20d3a2a2ccb5abf16964cb00f9d3c7d97850a565bc3f58b7b6f4ac
nikodemus/SBCL
codegen.lisp
;;;; the implementation-independent parts of the code generator. We use ;;;; functions and information provided by the VM definition to convert ;;;; IR2 into assembly code. After emitting code, we finish the ;;;; assembly and then do the post-assembly phase. This software is part of the SBCL system . See the README ...
null
https://raw.githubusercontent.com/nikodemus/SBCL/3c11847d1e12db89b24a7887b18a137c45ed4661/src/compiler/codegen.lisp
lisp
the implementation-independent parts of the code generator. We use functions and information provided by the VM definition to convert IR2 into assembly code. After emitting code, we finish the assembly and then do the post-assembly phase. more information. public domain. The software is in the public domain and ...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!C") (defun component-header-length (&optional (component *component-being-...
c6ab6375687f5003a17c754a25bffa50c3e1f52f8e6d0056bb68a0416b62c57b
vagarenko/static-tensor
TH.hs
{-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE ViewPatterns # # OPTIONS_GHC -fno - warn - orphans # ----------------------------------------------------------------------------- -- | Module : Data . Tensor . Static . TH Copyright : ( C ) 2017 ...
null
https://raw.githubusercontent.com/vagarenko/static-tensor/39afd42ad6a9986eae9cac865607464aa36b3936/src/Data/Tensor/Static/TH.hs
haskell
# LANGUAGE TemplateHaskell # # LANGUAGE ScopedTypeVariables # --------------------------------------------------------------------------- | License : BSD-style (see LICENSE) Stability : experimental Portability : non-portable --------------------------------------------------------------------...
# LANGUAGE ViewPatterns # # OPTIONS_GHC -fno - warn - orphans # Module : Data . Tensor . Static . TH Copyright : ( C ) 2017 Maintainer : ( ) module Data.Tensor.Static.TH ( genTensorInstance ) where import Data.List (foldl') import Data.Tensor.S...
b97eae84ee4d5b265f4d4f1d54de4f02e408678110e26c6b5627bcbb9290a811
patricoferris/jsoo-mithril
index.ml
open Mithril [@@@part "0"] type counter = { mutable counter : int } [@@@part "1"] let count = let state = { counter = 0 } in let increment () = state.counter <- state.counter + 1 in let on_click = Attr.attr "onclick" (Jv.repr increment) in let attr = Attr.v [| on_click |] in let view _ = M.( v "...
null
https://raw.githubusercontent.com/patricoferris/jsoo-mithril/5f2ccebd647f737bac7dbd1981b78a4d5bd0f5ea/examples/1-section/counter-closure-component/example/index.ml
ocaml
open Mithril [@@@part "0"] type counter = { mutable counter : int } [@@@part "1"] let count = let state = { counter = 0 } in let increment () = state.counter <- state.counter + 1 in let on_click = Attr.attr "onclick" (Jv.repr increment) in let attr = Attr.v [| on_click |] in let view _ = M.( v "...
e62b07b3272b7d491593c84194e8eb3e44be4d0f26c1f0ebf2d479322b71047c
HunterYIboHu/htdp2-solution
ex242-occurs.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-reader.ss" "lang")((modname ex242-occurs) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-...
null
https://raw.githubusercontent.com/HunterYIboHu/htdp2-solution/6182b4c2ef650ac7059f3c143f639d09cd708516/Chapter3-Abstraction/Section14-Similarities-Everywhere/ex242-occurs.rkt
racket
about the language level of this file in a form that our tools can easily process. data difinitions – '() – (cons ITEM [List-of ITEM]) – #false – X - #false - String interpretation a value is a String or #false. - #false - [List-of String] interpretation a value is a [List-of String] or #false. - '() - ...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-reader.ss" "lang")((modname ex242-occurs) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) A [ List - of ITEM ] is one of : A [ Maybe X ] is...
c79663778d02cdd4e2a63c767167d69e72ceb236af362fbe61b5574a07a938a9
javalib-team/sawja
jType.mli
* This file is part of SAWJA * Copyright ( c)2013 ( INRIA ) * Copyright ( c)2016 ( ENS Rennes ) * Copyright ( c)2016 ( CNRS ) * * 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...
null
https://raw.githubusercontent.com/javalib-team/sawja/da39f9c1c4fc52a1a1a6350be0e39789812b6c00/src/jType.mli
ocaml
* This module allows to build maps of elements indexed by [object_type] values. * This module allows to build sets of [object_type] values. [supertype t1 t2] Return true if t1 is a supertype of t2 [subtype t1 t2] Return true if t1 is a subtype of t2 * Return true of t1 is a direct supertype of t2 * Return true of t1 ...
* This file is part of SAWJA * Copyright ( c)2013 ( INRIA ) * Copyright ( c)2016 ( ENS Rennes ) * Copyright ( c)2016 ( CNRS ) * * 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...
cf5eb077854fe6f953e3e10497aec5dfdbd825b4fd5808fb6c8e595881eaa6a0
broadinstitute/firecloud-ui
ajax.cljs
(ns broadfcui.utils.ajax (:require [clojure.string :as string] [broadfcui.config :as config] [broadfcui.utils :as utils] )) (defonce get-bearer-token-header (atom nil)) ;; TODO - make this unnecessary (def content-type=json {"Content-Type" "application/json"}) (def app-id {"X-App-ID" "FireCloud"}) (...
null
https://raw.githubusercontent.com/broadinstitute/firecloud-ui/8eb077bc137ead105db5665a8fa47a7523145633/src/cljs/main/broadfcui/utils/ajax.cljs
clojure
TODO - make this unnecessary Fails gracefully if file is missing or malformed status code 0 means maintenance mode--unless it's this net::ERR_CONNECTION_REFUSED thing which has a completely empty response, so exclude that.
(ns broadfcui.utils.ajax (:require [clojure.string :as string] [broadfcui.config :as config] [broadfcui.utils :as utils] )) (defonce get-bearer-token-header (atom nil)) (def content-type=json {"Content-Type" "application/json"}) (def app-id {"X-App-ID" "FireCloud"}) (defonce ^:private recent-ajax-ca...
eae861bf78c124933d141c3aab94b54894cbfcdb8c333d8e538eb7903cc6c0ff
haskell-repa/repa
SolverSeparated.hs
# LANGUAGE PackageImports , BangPatterns , QuasiQuotes , PatternGuards # {-# OPTIONS -Wall -fno-warn-missing-signatures -fno-warn-incomplete-patterns #-} module SolverSeparated ( Image , gradientX_sep , gradientY_sep ) where import Data.Array.Repa as Repa import Data.Array.Repa...
null
https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/repa-examples/examples/Sobel/src-repa/SolverSeparated.hs
haskell
# OPTIONS -Wall -fno-warn-missing-signatures -fno-warn-incomplete-patterns #
# LANGUAGE PackageImports , BangPatterns , QuasiQuotes , PatternGuards # module SolverSeparated ( Image , gradientX_sep , gradientY_sep ) where import Data.Array.Repa as Repa import Data.Array.Repa.Stencil type Image = Array DIM2 Float gradientX_sep :: Image -> Image gra...
395017bdb894274f57a0a132912cc75681abc39fc0464d297f0356077aed96a4
cac-t-u-s/om-sharp
libsamplerate.lisp
;============================================================================ ; om#: visual programming language for computer-assisted music composition ;============================================================================ ; ; This program is free software. For information on usage ; and redistribution, see...
null
https://raw.githubusercontent.com/cac-t-u-s/om-sharp/74aa97891177de1d167aa5963be00f0d453a3bcd/src/packages/sound/audio-api/libsamplerate/libsamplerate.lisp
lisp
============================================================================ om#: visual programming language for computer-assisted music composition ============================================================================ This program is free software. For information on usage and redistribution, see the "...
File author : (in-package :cl-user) (defpackage "LibSampleRate" (:nicknames "LSR") (:use common-lisp cffi)) (in-package :lsr) (pushnew :libsamplerate *features*) (defparameter SRC_SINC_BEST_QUALITY 0) (defparameter SRC_SINC_MEDIUM_QUALITY 1) (defparameter SRC_SINC_FASTEST 2) (defparameter SRC_ZERO_ORDER_HO...
f76bea4671f9fa47ff4490017745ab287d506cfe58c2c3954c90e8cd02e6718f
SquidDev/illuaminate
main.ml
open Js_of_ocaml open IlluaminateCore open IlluaminateLint let input = Dom_html.(getElementById_coerce "code-input" CoerceTo.textarea) |> Option.get let output = Dom_html.(getElementById_coerce "error-messages" CoerceTo.element) |> Option.get (** Default config values for linters. *) let store = let open Illuaminat...
null
https://raw.githubusercontent.com/SquidDev/illuaminate/7a6e4bf56f01e81a47c743cb452791c2168ccbda/src/web/main.ml
ocaml
* Default config values for linters. * Append virtual HTML node to a concrete element. * Render a virtual HTML node, building a <div>. * Fix all errors within the program. * Construct a formatter which emits HTML nodes. When the input changes, relint.
open Js_of_ocaml open IlluaminateCore open IlluaminateLint let input = Dom_html.(getElementById_coerce "code-input" CoerceTo.textarea) |> Option.get let output = Dom_html.(getElementById_coerce "error-messages" CoerceTo.element) |> Option.get let store = let open IlluaminateConfig in List.fold_left (fun s (Li...
f3b05af84c639f51bd7834caba59672667afa6c8d6a33b8d38a2436100a1f79f
emina/rosette
kernel.rkt
#lang s-exp "../../../lang/main.rkt" ; Matrix multiplication C = A * B, where A is an n x p matrix and B is a p x m matrix. (kernel void (mmulScalarKernel [int* A] [int* B] [int* C] [int p] [int m]) (: int i j sum) (= i (get_global_id 0)) (= j (get_global_id 1)) (= sum 0) (for [(: int k in (range p))] (...
null
https://raw.githubusercontent.com/emina/rosette/a64e2bccfe5876c5daaf4a17c5a28a49e2fbd501/sdsl/synthcl/examples/matrixMultiply/synth/kernel.rkt
racket
Matrix multiplication C = A * B, where A is an n x p matrix and B is a p x m matrix. Matrix multiplication C = A * B, where A is an n x p matrix and B is a p x m matrix. Function for indexing into the matrix A. Function for indexing into the matrix B. (+ (* (+ k off) (/ m 4)) j)) Function for indexing into the ...
#lang s-exp "../../../lang/main.rkt" (kernel void (mmulScalarKernel [int* A] [int* B] [int* C] [int p] [int m]) (: int i j sum) (= i (get_global_id 0)) (= j (get_global_id 1)) (= sum 0) (for [(: int k in (range p))] (+= sum (* [A (+ (* i p) k)] [B (+ (* k m) j)]))) (= [C (+ (* i m) j)] sum)) (kernel ...
bda83b23a10e91835184dd2a9fa19309331d997958b1180ea1345285691434ad
mokus0/junkbox
ListClass.hs
{-# OPTIONS -fglasgow-exts #-} - " ListClass.hs " - ( c ) 2008 - - This would be nifty if original : and [ ] could be redefined . - "ListClass.hs" - (c) 2008 James Cook - - This would be nifty if original : and [] could be redefined. -} module TypeExper...
null
https://raw.githubusercontent.com/mokus0/junkbox/151014bbef9db2b9205209df66c418d6d58b0d9e/Haskell/TypeExperiments/ListClass.hs
haskell
# OPTIONS -fglasgow-exts # class List h t l | h t -> l, l -> h t where cons :: h -> t -> l nil :: l match :: (h -> t -> x) -> x -> l -> x match f z l = case decons l of Nothing -> z Just (h,t) -> f h t decons :: l -> Maybe (h,t) instance List ...
- " ListClass.hs " - ( c ) 2008 - - This would be nifty if original : and [ ] could be redefined . - "ListClass.hs" - (c) 2008 James Cook - - This would be nifty if original : and [] could be redefined. -} module TypeExperiments.ListClass where import ...
2b987a58270ecac5e52ab21f4c2499e08f46ce1d6f95d0b16084af27348d4ccb
janestreet/sexp
string_pad.mli
(* an asymtotically good incremental string concatenater *) type t val empty : t val add : t -> string -> t val singleton : string -> t val add_char : t -> char -> t val dump : t -> string
null
https://raw.githubusercontent.com/janestreet/sexp/56e485b3cbf8a43e1a8d7647b0df31b27053febf/sexp_app/src/string_pad.mli
ocaml
an asymtotically good incremental string concatenater
type t val empty : t val add : t -> string -> t val singleton : string -> t val add_char : t -> char -> t val dump : t -> string
02da4bb91e84ca5b38a48f23e895cd4cbfb8e21bae4c54f5b622d3303eca3f28
samply/blaze
normalizer_spec.clj
(ns blaze.elm.normalizer-spec (:require [blaze.elm.normalizer :as normalizer] [clojure.spec.alpha :as s])) (s/fdef normalizer/normalize-library :args (s/cat :library :elm/library))
null
https://raw.githubusercontent.com/samply/blaze/cbf6431a254f347a704f1abe1de4f4fe8a249ac9/modules/cql/test/blaze/elm/normalizer_spec.clj
clojure
(ns blaze.elm.normalizer-spec (:require [blaze.elm.normalizer :as normalizer] [clojure.spec.alpha :as s])) (s/fdef normalizer/normalize-library :args (s/cat :library :elm/library))
3b582422f1ec8c82b9daad1ca7044f4dba8721bb80476661c01694697253a08c
m2ym/cl-syntax
operators.lisp
(in-package :cl-syntax) (eval-when (:compile-toplevel :load-toplevel :execute) (defun package-syntax-name (package) (intern *standard-package-syntax-name* package))) (defun get-options (name) "Get the options list for name, if it is available." (get (cond ((typep name 'syntax) nil) ((and (typep name 'packa...
null
https://raw.githubusercontent.com/m2ym/cl-syntax/03f0c329bbd55b8622c37161e6278366525e2ccc/src/operators.lisp
lisp
(in-package :cl-syntax) (eval-when (:compile-toplevel :load-toplevel :execute) (defun package-syntax-name (package) (intern *standard-package-syntax-name* package))) (defun get-options (name) "Get the options list for name, if it is available." (get (cond ((typep name 'syntax) nil) ((and (typep name 'packa...
a9d74136086bf2dc4cc98cbdc63860f0271cc0fd060b755a3a9d1fc30151d159
CardanoSolutions/ogmios
TxMonitor.hs
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. # LANGUAGE RecordWildCards # # OPTIONS_GHC -fno - warn - unticked - promoted - constructors # -- This is used by local clients (like walle...
null
https://raw.githubusercontent.com/CardanoSolutions/ogmios/317c826d9d0388cb7efaf61a34085fc7c1b12b06/server/src/Ogmios/App/Protocol/TxMonitor.hs
haskell
This is used by local clients (like wallets, explorers and CLI tools) to monitor the transactions passing through the mempool of a local node. The protocol is stateful such that the server keeps track of the transactions already sent to the client. @ START ⇓ ...
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. # LANGUAGE RecordWildCards # # OPTIONS_GHC -fno - warn - unticked - promoted - constructors # ┌ ─ ─ ─ ─ ─ ─ ▶ │ ⇒ DON...
d130fdcb249a40e29fe0648e6b892c9d3806816bcf101005ac4896611e2d589f
fredfeng/CS162
fib.mli
val fib : int -> int
null
https://raw.githubusercontent.com/fredfeng/CS162/957e7f55a6afa55081c532652b5169faec2e3a42/homework/hw1/fib.mli
ocaml
val fib : int -> int
552f470159f441e504a9ec28ef996957670640e277f5a398f631585e63eea4db
purcell/rosettacode-clojure
top_rank_per_group.clj
;; #Clojure (use '[clojure.contrib.seq-utils :only (group-by)]) (defstruct employee :Name :ID :Salary :Department) (def data (->> '(("Tyler Bennett" E10297 32000 D101) ("John Rappl" E21437 47000 D050) ("George Woltman" E00127 53500 D101) ("Adam Smith" E63535 18000 D202) ...
null
https://raw.githubusercontent.com/purcell/rosettacode-clojure/8cb3fd98840095bf7caf9086cae44620179f222b/top_rank_per_group.clj
clojure
#Clojure
(use '[clojure.contrib.seq-utils :only (group-by)]) (defstruct employee :Name :ID :Salary :Department) (def data (->> '(("Tyler Bennett" E10297 32000 D101) ("John Rappl" E21437 47000 D050) ("George Woltman" E00127 53500 D101) ("Adam Smith" E63535 18000 D202) ("Cla...
852c4ab78a5cf596915fb640c6844f2dec25ae1fcc8314d110b20d7751679283
bytekid/mkbtt
processors.ml
Copyright 2008 , Christian Sternagel , * GNU Lesser General Public License * * This file is part of TTT2 . * * TTT2 is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either ve...
null
https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/processors/src/processors.ml
ocaml
** MODULES ***************************************************************** transformations for confluence
Copyright 2008 , Christian Sternagel , * GNU Lesser General Public License * * This file is part of TTT2 . * * TTT2 is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either ve...
65987206a0e539a345fa3d1992ab78b8ebcc1c4326901940e41e4171d01dcc18
jlollis/sicp-solutions
1A.scm
Lecture : 1A Lecturer : # SLIDE 0:04:10 Declarative Knowledge "WHAT IS TRUE" √X is the Y such that Y² = X and Y ≥ 0 ;# END SLIDE ;# SLIDE 0:04:35 Imperative Knowledge "HOW TO" ⚫ Make a guess G ⚫ Improve the guess by averaging G and X/G ⚫ Keep improving the guess until it is good enough ;# END SLIDE # SL...
null
https://raw.githubusercontent.com/jlollis/sicp-solutions/7b03befcfe82e26a7fb28d94bc99292bc484f9dd/Supplemental%20Materials/mit-lectures/1A.scm
scheme
# END SLIDE # SLIDE 0:04:35 # END SLIDE # END SLIDE # END SLIDE # SLIDE 0:23:50 # END SLIDE # END TERMINAL # END TERMINAL # BOARD 0:39:00 # END BOARD # TERMINA 0:40:19 # END TERMINA # END BOARD # END TERMINAL # SLIDE 0:48:50 # END SLIDE # END BOARD # SLIDE 0:54:20 # END SLIDE # SLIDE 0:57:15 # END SLIDE # BOARD 0:5...
Lecture : 1A Lecturer : # SLIDE 0:04:10 Declarative Knowledge "WHAT IS TRUE" √X is the Y such that Y² = X and Y ≥ 0 Imperative Knowledge "HOW TO" ⚫ Make a guess G ⚫ Improve the guess by averaging G and X/G ⚫ Keep improving the guess until it is good enough # SLIDE 0:14:35 Method for finding a fixed poin...
96ff1743178809045ccda0e35ba2e115784df5377fb926bb7dc1552db81338a1
jarohen/advent-of-code
day2.clj
(ns aoc2020.day2 (:require [aoc2020.util :as util])) (defn part1 [lines] (->> lines (filter (fn [line] (let [[_ mn mx [letter] pw] (re-matches #"(\d+)-(\d+) (.): (.*)" line)] (<= (Long/parseLong mn) (get (frequencies pw) letter 0) ...
null
https://raw.githubusercontent.com/jarohen/advent-of-code/3fa1d87a539fb9163b05b732973bbd415dd21312/2020/src/aoc2020/day2.clj
clojure
(ns aoc2020.day2 (:require [aoc2020.util :as util])) (defn part1 [lines] (->> lines (filter (fn [line] (let [[_ mn mx [letter] pw] (re-matches #"(\d+)-(\d+) (.): (.*)" line)] (<= (Long/parseLong mn) (get (frequencies pw) letter 0) ...
f11d5f52890727f54eb75693c45cf7dcafc1ed318a3b02b1d08834f334b8dac8
awslabs/s2n-bignum
bignum_sqr_6_12_alt.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/arm/proofs/bignum_sqr_6_12_alt.ml
ocaml
========================================================================= ========================================================================= arm_ADC X19 X19 XZR arm_ADC X19 X19 XZR arm_ADDS X9 X9 X9 arm_ADCS X11 X11 X11 arm_ADCS X19 X19 X19 arm_ADCS X19 X19 X8 arm_ADC X20 X20 X8 --------------...
* 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 *) 6x6 - > 12 squaring , for uarchs with higher multiplier throughput...