_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
594eba5c34a22fb7a50bba29b437126af52d8c524e3961a5aaadb3c15dbfb6c1
pedropramos/PyonR
name-mangling.rkt
#lang racket (require (for-syntax racket/string (only-in srfi/13 string-contains))) (provide colon-symbol->string string->colon-symbol mangle-name collect-exported collect-exported/no-macros provide-mangled) (define (colon-symbol->string sym) (let...
null
https://raw.githubusercontent.com/pedropramos/PyonR/16edd14f3950fd5a01f8b0237e023536ef48d17b/name-mangling.rkt
racket
#lang racket (require (for-syntax racket/string (only-in srfi/13 string-contains))) (provide colon-symbol->string string->colon-symbol mangle-name collect-exported collect-exported/no-macros provide-mangled) (define (colon-symbol->string sym) (let...
a3d7b4fdbe3bb4b461559b9124f5c4c9e435fa9a821a66d5452b18949ff9ca24
bsless/impedance
bench.clj
(ns impedance.bench (:require [impedance.transform :refer [transform]] [criterium.core :as cc] [meander.epsilon :as m])) (def f (transform {:a {:b ?x :c ?y} "x" ?z} {:x ?x :y ?y :z ?z})) (def f' (transform :checked {:a {:b ?x :c ?y} "x" ?z} {:x ?x :y ?y :z ?z})) (def f'' (transform :unchecked {:a {:b ?x :c ...
null
https://raw.githubusercontent.com/bsless/impedance/a3011ec380fe80497d0d37249ff9d2c34f9d6ff7/bench/impedance/bench.clj
clojure
Bench meander
(ns impedance.bench (:require [impedance.transform :refer [transform]] [criterium.core :as cc] [meander.epsilon :as m])) (def f (transform {:a {:b ?x :c ?y} "x" ?z} {:x ?x :y ?y :z ?z})) (def f' (transform :checked {:a {:b ?x :c ?y} "x" ?z} {:x ?x :y ?y :z ?z})) (def f'' (transform :unchecked {:a {:b ?x :c ...
07c1ae096a7c88dbc942b2a69b41a41feccb3399cdb79bf33dbfd04714e675c4
gedge-platform/gedge-platform
jose_jwa_pkcs7.erl
-*- mode : erlang ; tab - width : 4 ; indent - tabs - mode : 1 ; st - rulers : [ 70 ] -*- %% vim: ts=4 sw=4 ft=erlang noet %%%------------------------------------------------------------------- @author < > 2014 - 2015 , %%% @doc PKCS-7 See RFC 2315 : %%% @end Created : 22 Jul 2015 by < > %%%------...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/jose/src/jwa/jose_jwa_pkcs7.erl
erlang
vim: ts=4 sw=4 ft=erlang noet ------------------------------------------------------------------- @doc PKCS-7 @end ------------------------------------------------------------------- API ==================================================================== API functions =============================================...
-*- mode : erlang ; tab - width : 4 ; indent - tabs - mode : 1 ; st - rulers : [ 70 ] -*- @author < > 2014 - 2015 , See RFC 2315 : Created : 22 Jul 2015 by < > -module(jose_jwa_pkcs7). -export([pad/1]). -export([unpad/1]). -spec pad(binary()) -> binary(). pad(Bin) -> Size = 16 - (byte_size(Bin...
6cd2434f8245c93ae032ae1b24a8282e2cd0c66f849e6e40eb788ac581f9f951
reborg/clojure-essential-reference
2.clj
< 1 > (r/fold < 2 > ["th" "is " "str" "ing"]) " this string "
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/ReducersandTransducers/Reducers/monoid/2.clj
clojure
< 1 > (r/fold < 2 > ["th" "is " "str" "ing"]) " this string "
19242ec960144ee48fff2d3efa61702cd3e1e6f05b12d1e4cabb3267b9f97f54
tschady/advent-of-code
d07_test.clj
(ns aoc.2015.d07-test (:require [aoc.2015.d07 :as sut] [clojure.test :refer :all])) (deftest challenge (is (= 16076 (sut/part-1 sut/input))) (is (= 2797 (sut/part-2 sut/input))))
null
https://raw.githubusercontent.com/tschady/advent-of-code/1e4a95ef580c3bf635837eff52aa998b0acfc666/test/aoc/2015/d07_test.clj
clojure
(ns aoc.2015.d07-test (:require [aoc.2015.d07 :as sut] [clojure.test :refer :all])) (deftest challenge (is (= 16076 (sut/part-1 sut/input))) (is (= 2797 (sut/part-2 sut/input))))
103a8f8434de035eca5dd1438eced3bff681d89b3ccebd7c6115d7679c378a7d
lambe-lang/nethra
nethra_toy.mli
module Cst = Nethra_toy_cst module Parser = Nethra_toy_parser module Desugar = Nethra_toy_abstract module Compiler = Nethra_toy_compiler
null
https://raw.githubusercontent.com/lambe-lang/nethra/58b1424a84ed8f66ba20e65e70bb22b5dbc532b7/lib/nethra/toy/nethra_toy.mli
ocaml
module Cst = Nethra_toy_cst module Parser = Nethra_toy_parser module Desugar = Nethra_toy_abstract module Compiler = Nethra_toy_compiler
354fcf021341b374567111630230d3dae32fff1521bff754cfcf54ab0b001373
gotthardp/lorawan-server
lorawan_admin_graph_node.erl
% Copyright ( c ) 2016 - 2019 < > % All rights reserved. Distributed under the terms of the MIT License . See the LICENSE file . % -module(lorawan_admin_graph_node). -export([init/2]). -export([is_authorized/2]). -export([allowed_methods/2]). -export([forbidden/2]). -export([content_types_provided/2]). -export(...
null
https://raw.githubusercontent.com/gotthardp/lorawan-server/1a5c0f2f4d8238a54a326c57a5eb0e6015821b1d/src/lorawan_admin_graph_node.erl
erlang
All rights reserved. what the standard calls "margin" is simply the SNR backwards compatibility end of file
Copyright ( c ) 2016 - 2019 < > Distributed under the terms of the MIT License . See the LICENSE file . -module(lorawan_admin_graph_node). -export([init/2]). -export([is_authorized/2]). -export([allowed_methods/2]). -export([forbidden/2]). -export([content_types_provided/2]). -export([resource_exists/2, generat...
27fec7c7f0cda5ca236c5d9925e48e1de827ce111bcd3bc8b704a0cf9485bd43
uw-unsat/leanette-popl22-artifact
viewer-tests.rkt
#lang s-exp rosette unit tests for viewer% (require rackunit rackunit/text-ui rosette/lib/roseunit) (require racket/string) (require racket/draw) (require "../core/wallingford.rkt") (require "../applications/geothings.rkt") (require "../reactive/reactive.rkt") (require "../reactive/viewer.rkt") (require "../reactive...
null
https://raw.githubusercontent.com/uw-unsat/leanette-popl22-artifact/80fea2519e61b45a283fbf7903acdf6d5528dbe7/rosette-benchmarks-3/wallingford/tests/viewer-tests.rkt
racket
make a test stub for a drawing context (printf "action names ~a \n" (map car (send dc get-actions))) (printf "count ~a \n" (count (lambda (a) (eq? (car a) 'draw-ellipse)) (send dc get-actions))) Since this should be using 'pull' we should have several different times displayed. (printf "displays ~a\n" (send time...
#lang s-exp rosette unit tests for viewer% (require rackunit rackunit/text-ui rosette/lib/roseunit) (require racket/string) (require racket/draw) (require "../core/wallingford.rkt") (require "../applications/geothings.rkt") (require "../reactive/reactive.rkt") (require "../reactive/viewer.rkt") (require "../reactive...
24b3d7f6e7c96090a77970ec42b27c8678a0a3e7e41a2bed21b8a1a6ee1f9b73
MariaGrozdeva/Functional_programming
insert.rkt
#lang racket/base (define (insert binary-search-tree element) (if (null? binary-search-tree) (list element null null) (if (< element (car binary-search-tree)) (list (car binary-search-tree) (insert (cadr binary-search-tree) element) (caddr binary-search-tree)) (list (car binary-search...
null
https://raw.githubusercontent.com/MariaGrozdeva/Functional_programming/002e3dbbbc64558094eecd147cb1fd064ee84a03/Tasks%20on%20binary%20trees/insert.rkt
racket
#lang racket/base (define (insert binary-search-tree element) (if (null? binary-search-tree) (list element null null) (if (< element (car binary-search-tree)) (list (car binary-search-tree) (insert (cadr binary-search-tree) element) (caddr binary-search-tree)) (list (car binary-search...
7bdc7fac2cbcaded621c4e18ca792bcbe0c7c6df850a8141d080a73ef12c9e5d
haskell/lsp
Diagnostics.hs
# LANGUAGE DuplicateRecordFields # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # Manage the " textDocument / publishDiagnostics " notifications to keep a local copy of the diagnostics for a particular file and version , partitioned by source . Manage the "textDocument/publishDiagnostics" notific...
null
https://raw.githubusercontent.com/haskell/lsp/bf95cd94f3301fe391093912e6156de7cb5c1289/lsp/src/Language/LSP/Diagnostics.hs
haskell
# LANGUAGE RankNTypes # * for tests --------------------------------------------------------------------- # ANN module ("hlint: ignore Redundant do" :: String) # --------------------------------------------------------------------- --------------------------------------------------------------------- -------------...
# LANGUAGE DuplicateRecordFields # # LANGUAGE ScopedTypeVariables # Manage the " textDocument / publishDiagnostics " notifications to keep a local copy of the diagnostics for a particular file and version , partitioned by source . Manage the "textDocument/publishDiagnostics" notifications to keep a local copy ...
d2b84c43ed9a6de97f9480222eab29953c3ec04a88f1780b3d2a7687560489ab
ocaml/merlin
new_commands.mli
open Std type command = Command : string * Marg.docstring * ([`Mandatory|`Optional|`Many] * 'args Marg.spec) list * 'args * (Mpipeline.t -> 'args -> json) -> command val all_commands : command list val find_command : string -> command list -> command
null
https://raw.githubusercontent.com/ocaml/merlin/e576bc75f11323ec8489d2e58a701264f5a7fe0e/src/frontend/ocamlmerlin/new/new_commands.mli
ocaml
open Std type command = Command : string * Marg.docstring * ([`Mandatory|`Optional|`Many] * 'args Marg.spec) list * 'args * (Mpipeline.t -> 'args -> json) -> command val all_commands : command list val find_command : string -> command list -> command
d522b47ec840a9d975c0a0ce020a02874de92c93ee0158b1ef2906c3ce8b9d41
pallix/lacij
graphview.clj
Copyright © 2010 - 2013 Fraunhofer Gesellschaft Licensed under the EPL V.1.0 (ns ^{:doc "Implementation of the GraphView protocol for SVG"} lacij.view.graphview (:use clojure.pprint lacij.view.core (tikkba dom core)) (:require [analemma.svg :as s] [tikkba.utils.dom :as dom])) (de...
null
https://raw.githubusercontent.com/pallix/lacij/ee9b7dcda13f25f7460acb5995b7970a7564c11e/src/lacij/view/graphview.clj
clojure
Copyright © 2010 - 2013 Fraunhofer Gesellschaft Licensed under the EPL V.1.0 (ns ^{:doc "Implementation of the GraphView protocol for SVG"} lacij.view.graphview (:use clojure.pprint lacij.view.core (tikkba dom core)) (:require [analemma.svg :as s] [tikkba.utils.dom :as dom])) (de...
5b60927792914713a4205427081476238ee92d2763e2c44b8931a14389df07b5
outergod/cl-heredoc
ring-buffer.lisp
;;;; cl-heredoc - ring-buffer.lisp Copyright ( C ) 2010 < > ;;;; This file is part of cl-heredoc. ;;;; cl-heredoc is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the License , or ;;...
null
https://raw.githubusercontent.com/outergod/cl-heredoc/a8c8a3557bb6b4854adff86f10182c22e6676ac8/test/ring-buffer.lisp
lisp
cl-heredoc - ring-buffer.lisp This file is part of cl-heredoc. cl-heredoc is free software; you can redistribute it and/or modify either version 3 of the License , or (at your option) any later version. cl-heredoc is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the impl...
Copyright ( C ) 2010 < > it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License (in-package :cl-heredoc) (shadowing-import '(new-ring-buffer ring-buffer ring-buffer-clear ring-buffer-end ring-buffer-flush ring-buffer-insert...
1c83c33c6b356a73773058785bc04abe61a5b6e131cdecdd11cfb3a56e4befe6
lambdaisland/ornament
user.clj
(ns user) (defmacro jit [sym] `(requiring-resolve '~sym)) (defn browse [] ((jit clojure.java.browse/browse-url) ":7777")) (def portal-instance (atom nil)) (defn portal "Open a Portal window and register a tap handler for it. The result can be treated like an atom." [] Portal is both an IPersistentMap an...
null
https://raw.githubusercontent.com/lambdaisland/ornament/45c3b733226e1b1342df7a9c3f7149ab49e30459/dev/user.clj
clojure
(ns user) (defmacro jit [sym] `(requiring-resolve '~sym)) (defn browse [] ((jit clojure.java.browse/browse-url) ":7777")) (def portal-instance (atom nil)) (defn portal "Open a Portal window and register a tap handler for it. The result can be treated like an atom." [] Portal is both an IPersistentMap an...
2e6428859572b85dc4ec9075c7dc8b6814d2ac56c613f93d16c75b7e79795e91
ghc/nofib
Surface.hs
Copyright ( c ) 2000 Galois Connections , Inc. -- All rights reserved. This software is distributed as -- free software under the license in the file "LICENSE", -- which is included in the distribution. module Surface ( SurfaceFn (..) , Properties , sfun, sconst , prop , matte, shiny , chgCo...
null
https://raw.githubusercontent.com/ghc/nofib/f34b90b5a6ce46284693119a06d1133908b11856/parallel/gray/Surface.hs
haskell
All rights reserved. This software is distributed as free software under the license in the file "LICENSE", which is included in the distribution. the surface gets passed face then u then v. calculate surface properties, given the type of surface, and intersection point in object coordinates correct so that the...
Copyright ( c ) 2000 Galois Connections , Inc. module Surface ( SurfaceFn (..) , Properties , sfun, sconst , prop , matte, shiny , chgColor , surface ) where import Geometry import CSG import Misc data SurfaceFn c v = SFun (Int -> Double -> Double -> Properties c v) ...
61d5f390061472a33046ca1c9205796c6ddd5d45d7a1257b418d307e37005cd5
jwiegley/notes
balance.hs
module Balance () where import qualified Data.Set as Set import qualified Data.Map as Map -- accountName retrieves the account name from a posting accountName :: a -> String accountName post = "One:Two:Three" -- visitAccounts walk through a list of postings and returns a set of account names " visited " by th...
null
https://raw.githubusercontent.com/jwiegley/notes/24574b02bfd869845faa1521854f90e4e8bf5e9a/gists/f719a3d41696d48f6005/misc/balance.hs
haskell
accountName retrieves the account name from a posting visitAccounts walk through a list of postings and returns a set of account fileAccountString' acc (x:xs) jww ( 2009 - 03 - 12 ): What is the equivalent of short - circuit || ?
module Balance () where import qualified Data.Set as Set import qualified Data.Map as Map accountName :: a -> String accountName post = "One:Two:Three" names " visited " by those postings . This is the first step . visitAccounts :: (a -> Bool) -> [a] -> Set.Set String visitAccounts fn [] = Set.empty visitAc...
026d328181db58a978fd853c977529109ddc194a0a8377fe74516a4939b9ab3f
IvanIvanov/fp2013
solution.scm
(define (inc n) (+ n 1)) (define (dec n) (- n 1)) (define (divisor? k n) (and (not (zero? k)) (zero? (remainder n k)))) (define (sum-of-digits n) (if (< n 10) n (+ (remainder n 10) (sum-of-digits (quotient n 10))))) (define (count-digits n) (if (< n 10) 1 (inc (count-digits ...
null
https://raw.githubusercontent.com/IvanIvanov/fp2013/2ac1bb1102cb65e0ecbfa8d2fb3ca69953ae4ecf/lab4/homeworks/02/solution.scm
scheme
(define (inc n) (+ n 1)) (define (dec n) (- n 1)) (define (divisor? k n) (and (not (zero? k)) (zero? (remainder n k)))) (define (sum-of-digits n) (if (< n 10) n (+ (remainder n 10) (sum-of-digits (quotient n 10))))) (define (count-digits n) (if (< n 10) 1 (inc (count-digits ...
fa4960f400ea0e1d15aaaf57210c6544f74647c81a40e14bafaab8a4867439a8
iijlab/direct-hs
Upload.hs
# LANGUAGE RecordWildCards # module Web.Direct.Upload ( UploadFile(..) , UploadAuth(..) , readToUpload , runUploadFile ) where import qualified Data.ByteString.Lazy as BL import qualified Data.Text as T import qualified Data.Text.Encoding as TE import Data.Wor...
null
https://raw.githubusercontent.com/iijlab/direct-hs/2422fd6fe008109e8dfb74f31d65b0d5a0330788/direct-hs/src/Web/Direct/Upload.hs
haskell
| Arguments for 'uploadFile'.
# LANGUAGE RecordWildCards # module Web.Direct.Upload ( UploadFile(..) , UploadAuth(..) , readToUpload , runUploadFile ) where import qualified Data.ByteString.Lazy as BL import qualified Data.Text as T import qualified Data.Text.Encoding as TE import Data.Wor...
9dbcd4b18d31347bf7b1f428846ce1788459c319b53e2b4e23ddbb940a8de092
circuithub/rel8
Enum.hs
# language AllowAmbiguousTypes # # language DataKinds # {-# language FlexibleContexts #-} # language FlexibleInstances # # language LambdaCase # # language RankNTypes # {-# language ScopedTypeVariables #-} # language StandaloneKindSignatures # # language TypeApplications # {-# language TypeFamilies #-} # language TypeO...
null
https://raw.githubusercontent.com/circuithub/rel8/2a25126e214c1171c3d0c2d12d5a14ca831a266c/src/Rel8/Type/Enum.hs
haskell
# language FlexibleContexts # # language ScopedTypeVariables # # language TypeFamilies # # language UndecidableInstances # base hasql opaleye rel8 text | A deriving-via helper type for column types that store an \"enum\" type Postgres @enum@ type. Note that this should map to a specific type in your database's...
# language AllowAmbiguousTypes # # language DataKinds # # language FlexibleInstances # # language LambdaCase # # language RankNTypes # # language StandaloneKindSignatures # # language TypeApplications # # language TypeOperators # module Rel8.Type.Enum ( Enum( Enum ) , DBEnum( enumValue, enumTypeName ) , Enumable...
22d08568f4b5638173e5771f12070385b4014e2705efc94ab743504683a141ef
simplegeo/erlang
wx_object.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/simplegeo/erlang/15eda8de27ba73d176c7eeb3a70a64167f50e2c4/lib/wx/src/wx_object.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 2008 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " File : wx_object.erl Author : <...
e3b14aaac2ea82bb5dc8baf88f1117af110082ec17e8ee6d1c36ad85061d6296
CSCfi/rems
util.cljs
(ns rems.util (:require [accountant.core :as accountant] [ajax.core :refer [GET PUT POST]] [clojure.string :as str] [goog.string :refer [format]] [re-frame.core :as rf] [clojure.test :refer [deftest are testing]])) TODO move to cljc (defn getx "Like `ge...
null
https://raw.githubusercontent.com/CSCfi/rems/449d90fc33937437ac7336ff0eedaf63acbfa68e/src/cljs/rems/util.cljs
clojure
when manipulating history, secretary won't catch the changes automatically String manipulation < a href="#id " > links do n't work
(ns rems.util (:require [accountant.core :as accountant] [ajax.core :refer [GET PUT POST]] [clojure.string :as str] [goog.string :refer [format]] [re-frame.core :as rf] [clojure.test :refer [deftest are testing]])) TODO move to cljc (defn getx "Like `ge...
076ff8049011a8c608a5c30207cdcfb51b597dd3b60d7097c5c746b86b9f8711
footprintanalytics/footprint-web
setup.clj
(ns metabase.db.setup "Code for setting up the application DB -- verifying that we can connect and for running migrations. Unlike code in `metabase.db`, code here takes a `clojure.java.jdbc` spec as a parameter; the higher-level code in `metabase.db` presents a similar set of functions but passes in the default (...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/src/metabase/db/setup.clj
clojure
the higher-level code in `metabase.db` Set up liquibase and let it do its thing Migrations were successful; commit everything and re-enable auto-commit In the Throwable block, we're releasing the lock assuming we have the lock and we failed while in the middle of a migration. It's possible that we failed because w...
(ns metabase.db.setup "Code for setting up the application DB -- verifying that we can connect and for running migrations. Unlike code in presents a similar set of functions but passes in the default (i.e., env var) application DB connection details automatically. Because functions here don't know where the JD...
2c0d59e3c3f064ecee83f5a9529f190d5208df7c670cf3c0f2faff66b012541b
wilkerlucio/clojure-days-clojure-graph-presentation
secrets.clj
(ns clojure-graphs-presentation-demo.secrets) (def youtube-token (System/getenv "YOUTUBE_TOKEN")) (def github-token (System/getenv "GITHUB_TOKEN"))
null
https://raw.githubusercontent.com/wilkerlucio/clojure-days-clojure-graph-presentation/7bf4355204ba160f94e947d09b9dd38e89c0c2fe/src/clojure_graphs_presentation_demo/secrets.clj
clojure
(ns clojure-graphs-presentation-demo.secrets) (def youtube-token (System/getenv "YOUTUBE_TOKEN")) (def github-token (System/getenv "GITHUB_TOKEN"))
55f4335a3899e414e76079a52eb8ce39c7763984ba37cd608ab3976a383e1697
melange-re/melange
bs_list_test.ml
let suites : Mt.pair_suites ref = ref [] let test_id = ref 0 let eq loc x y = Mt.eq_suites loc x y ~test_id ~suites let b loc x = Mt.bool_suites ~test_id ~suites loc x let throw loc x = Mt.throw_suites ~test_id ~suites loc x module N = Belt . LinkList module N = Belt.List module A = Belt.Array module J...
null
https://raw.githubusercontent.com/melange-re/melange/246e6df78fe3b6cc124cb48e5a37fdffd99379ed/jscomp/test/bs_list_test.ml
ocaml
eq __LOC__ (N.mapRev2 length_10_id length_8_id add )
let suites : Mt.pair_suites ref = ref [] let test_id = ref 0 let eq loc x y = Mt.eq_suites loc x y ~test_id ~suites let b loc x = Mt.bool_suites ~test_id ~suites loc x let throw loc x = Mt.throw_suites ~test_id ~suites loc x module N = Belt . LinkList module N = Belt.List module A = Belt.Array module J...
3d3510c63d9ec4d31b67bd0a9d12f0bd7f15072a7a5ac0ed83ed12fe70d8e38c
rd--/hsc3
sendReply.help.hs
-- sendReply let s0 = lfNoise0Id 'α' kr 5 s1 = lfNoise0Id 'β' kr 5 o = sinOsc ar (s0 * 200 + 500) 0 * s1 * 0.1 in mrg [o,sendReply s0 0 "/send-reply" [s0,s1]] ---- ; receive reply withSc3 (withNotifications (Sound.OSC.waitReply "/send-reply"))
null
https://raw.githubusercontent.com/rd--/hsc3/024d45b6b5166e5cd3f0142fbf65aeb6ef642d46/Help/Ugen/sendReply.help.hs
haskell
sendReply -- ; receive reply
let s0 = lfNoise0Id 'α' kr 5 s1 = lfNoise0Id 'β' kr 5 o = sinOsc ar (s0 * 200 + 500) 0 * s1 * 0.1 in mrg [o,sendReply s0 0 "/send-reply" [s0,s1]] withSc3 (withNotifications (Sound.OSC.waitReply "/send-reply"))
a396d046ee939744d197bcd30fb72547635c90e0f4f883cfd0d942f9eaf0ee65
kyleburton/sandbox
validation.cljc
(ns text-adventure-engine.validation (:require [struct.core :as st]))
null
https://raw.githubusercontent.com/kyleburton/sandbox/cccbcc9a97026336691063a0a7eb59293a35c31a/examples/common-lisp/land-of-lisp/text-adventure-engine/src/cljc/text_adventure_engine/validation.cljc
clojure
(ns text-adventure-engine.validation (:require [struct.core :as st]))
241aac94b923378cbb30bb2493f45993a4d609c5c9e078f39e4ee3dbb47f9e6d
goldfirere/cs380
Maybe.hs
{ - # LANGUAGE NoMonomorphismRestriction # - } {-# OPTIONS_GHC -Wmonomorphism-restriction #-} module Maybe where import Prelude hiding ( lookup ) lookup :: Eq a => a -> [(a, b)] -> Maybe b lookup _ [] = Nothing lookup x ((a,b):xs) | x == a = Just b | otherwise = lookup x xs maybeAdd :: Int -> Maybe Int -> ...
null
https://raw.githubusercontent.com/goldfirere/cs380/a9e2d2e610eb4e9e082cef0559b6e29a6d82a253/06_trees/Maybe.hs
haskell
# OPTIONS_GHC -Wmonomorphism-restriction # y :: Double
{ - # LANGUAGE NoMonomorphismRestriction # - } module Maybe where import Prelude hiding ( lookup ) lookup :: Eq a => a -> [(a, b)] -> Maybe b lookup _ [] = Nothing lookup x ((a,b):xs) | x == a = Just b | otherwise = lookup x xs maybeAdd :: Int -> Maybe Int -> Int maybeAdd x Nothing = x maybeAdd x (Just y)...
d6d2f19d70c77c283579c248e71bf872f79a7ed64a8b9cc394b6b3253bdb6ac4
genenetwork/guix-bioinformatics
traefik.scm
(define-module (gn packages traefik) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system trivial) #:use-module (gnu packages base) #:use-module (gnu packages compression)) (define-public traefik (package (name "tra...
null
https://raw.githubusercontent.com/genenetwork/guix-bioinformatics/9e1e668e4f9f9e2b595620fda831da0525db4095/gn/packages/traefik.scm
scheme
(define-module (gn packages traefik) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system trivial) #:use-module (gnu packages base) #:use-module (gnu packages compression)) (define-public traefik (package (name "tra...
835d000c678226ea333073981352044f303b1ad428d46cacc2ca81cea5f32231
ygrek/mldonkey
configWindow.ml
Copyright 2004 b8_bavard , This file is part of mldonkey . mldonkey 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 l...
null
https://raw.githubusercontent.com/ygrek/mldonkey/333868a12bb6cd25fed49391dd2c3a767741cb51/src/gtk2/gui/configWindow.ml
ocaml
Used for combo_box Internally used by ConfigWindow Becarefull overwritten by ConfigWindow Becarefull overwritten by ConfigWindow *********************************************************************** Global functio...
Copyright 2004 b8_bavard , This file is part of mldonkey . mldonkey 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 l...
0527a1abd0e3a1153618ba09aeed25d23cf8661939138fa2dbf6b57af8a07237
other-otter/stone-store
package.lisp
(in-package :cl-user) (defpackage #:stone-store (:use :cl) (:nicknames :sto) (:export *store-path* *store-lock* start-store main get-the-time set-the-path store-add store-set s...
null
https://raw.githubusercontent.com/other-otter/stone-store/ab3194119ec52e36bfe3246e6e4c37871444553e/package.lisp
lisp
(in-package :cl-user) (defpackage #:stone-store (:use :cl) (:nicknames :sto) (:export *store-path* *store-lock* start-store main get-the-time set-the-path store-add store-set s...
aead73900be5917e37f2d3a637f82c5e0985b18b77dec0631c97ba05499b8fc2
reflectionalist/S9fES
find-help-path.scm
Scheme 9 from Empty Space , Function Library By , 2010 ; Placed in the Public Domain ; ; (find-help-path) ==> string | #f ; ; Returns the directory in which the online help pages are stored ; of #F when the pages cannot be located. ; ; (Example): (find-help-path) ==> "/usr/local/share/s9fes/help" (require-e...
null
https://raw.githubusercontent.com/reflectionalist/S9fES/0ade11593cf35f112e197026886fc819042058dd/ext/find-help-path.scm
scheme
Placed in the Public Domain (find-help-path) ==> string | #f Returns the directory in which the online help pages are stored of #F when the pages cannot be located. (Example): (find-help-path) ==> "/usr/local/share/s9fes/help"
Scheme 9 from Empty Space , Function Library By , 2010 (require-extension sys-unix) (load-from-library "string-split.scm") (define (find-help-path) (let loop ((dirs (string-split #\: *library-path*))) (if (null? dirs) #f (let ((path (string-append (car dirs) "/help"))) (if (and...
63ad70cc27711ec4403b13f7a423c4789c07b342bb92dea0d5e1edf200720c9b
bijoutrouvaille/fireward
ParserSpec.hs
module ParserSpec (main, spec) where import Data.Char (isDigit) import Control.Applicative import Control.Monad import Test.Hspec import Test.QuickCheck import Data.Char (isSpace) import Parser with x f = f x _apply p s = res (apply p s) where res (Right (ParserSuccess { parserResult = x , unpar...
null
https://raw.githubusercontent.com/bijoutrouvaille/fireward/0ec702027f4d9aca0e1158a671f20eee8e1d1547/test/ParserSpec.hs
haskell
describe "space" $ do it "eats line comments" $ do let s = many $ sat (/=';')
module ParserSpec (main, spec) where import Data.Char (isDigit) import Control.Applicative import Control.Monad import Test.Hspec import Test.QuickCheck import Data.Char (isSpace) import Parser with x f = f x _apply p s = res (apply p s) where res (Right (ParserSuccess { parserResult = x , unpar...
40874c7f754fca91c23345757619695209bc582f5a5cf45936dcff006e23b181
clojure-interop/java-jdk
XPathExpression.clj
(ns javax.xml.xpath.XPathExpression "XPathExpression provides access to compiled XPath expressions. Evaluation of XPath Expressions. context If a request is made to evaluate the expression in the absence of a context item, an empty document node will be used for the context. Fo...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.xml/src/javax/xml/xpath/XPathExpression.clj
clojure
(ns javax.xml.xpath.XPathExpression "XPathExpression provides access to compiled XPath expressions. Evaluation of XPath Expressions. context If a request is made to evaluate the expression in the absence of a context item, an empty document node will be used for the context. Fo...
47eb10ea3b15873054fa3bb5f441cb7d56cf0390dc85bd5aceeb37ecbc16b74e
Lysxia/test-monad-laws
Mutants.hs
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE UndecidableInstances # module Test.Monad.Except.Mutants where import Control.Monad.Except import Control.Monad.State import Data.Functor.Identity import Test.QuickCheck.HigherOrd...
null
https://raw.githubusercontent.com/Lysxia/test-monad-laws/1cb9e116769771cb49fbd1614f50b05e120a2709/src/Test/Monad/Except/Mutants.hs
haskell
Notice the different type Broken by @StateT s (Except e)@. - | Fails: > 'throw_catch' Passes (wrongly): > 'bad_throw_catch' > 'bad_catch_catch_1' > 'bad_catch_catch_2' > 'bad_catch_bind' # OVERLAPPING # "oops" | Fails: > 'throw_catch' > 'catch_catch' # OVERLAPPING # "oops" # OVERLAPPING #
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE UndecidableInstances # module Test.Monad.Except.Mutants where import Control.Monad.Except import Control.Monad.State import Data.Functor.Identity import Test.QuickCheck.HigherOrd...
9473b51d86a47083935e9d048256646a2ac4c6321a838d6087fdc25556a46b38
ocaml/oasis-db
ODBFSDisk.ml
* Filesystem that is based on a physical fs @author @author Sylvain Le Gall *) open Lwt exception Not_subdir of (ODBVFS.filename * ODBVFS.filename) let () = Printexc.register_printer (function | Not_subdir (root, fn) -> Some (Printf.sprintf ...
null
https://raw.githubusercontent.com/ocaml/oasis-db/f8b19d431102b5c5b7dced00a5242a5366ad263f/src/lib/ODBFSDisk.ml
ocaml
* Make the file absolute to root * Make the file relative to root * Test file existence * Test if it is a directory * Open a file for reading * Return Unix stat of a file * Read a directory content * Return the name of the filename on disk (absolute). * Read-write filesystem * Open a file for writing * Create...
* Filesystem that is based on a physical fs @author @author Sylvain Le Gall *) open Lwt exception Not_subdir of (ODBVFS.filename * ODBVFS.filename) let () = Printexc.register_printer (function | Not_subdir (root, fn) -> Some (Printf.sprintf ...
4615f3a7abb73e9ec7451c6d9556e277b44d3f5313c030ad9abc423d9b7391a8
letmaik/monadiccp
OrRepeat.hs
# LANGUAGE FlexibleContexts # module Control.Search.Combinator.OrRepeat (orRepeat) where import Control.Search.Language import Control.Search.GeneratorInfo import Control.Search.Generator import Control.Search.MemoReader import Control.Search.Memo import Control.Search.Stat import Control.Monatron.Monatron hiding (A...
null
https://raw.githubusercontent.com/letmaik/monadiccp/fe4498e46a7b9d9e387fd5e4ed5d0749a89d0188/src/Control/Search/Combinator/OrRepeat.hs
haskell
("cont",Bool,const $ return true) : , complete = const $ return false cc <- cachedClone (cloneBase ii) i' cc2 <- cachedClone (i' ) i' >>> cc >>> cc2 >>> (cont i' <== true)
# LANGUAGE FlexibleContexts # module Control.Search.Combinator.OrRepeat (orRepeat) where import Control.Search.Language import Control.Search.GeneratorInfo import Control.Search.Generator import Control.Search.MemoReader import Control.Search.Memo import Control.Search.Stat import Control.Monatron.Monatron hiding (A...
bc5b612432eae6e715ff108a7d9475294e5430f86fb77ef692d7f691d9e6b1f5
tonymorris/geo-gpx
Trk.hs
| Complex Type : @trkType@ < /#type_trkType > module Data.Geo.GPX.Type.Trk( Trk , trk ) where import Data.Geo.GPX.Type.Trkseg import Data.Geo.GPX.Type.Extensions import Data.Geo.GPX.Type.Link import Data.Geo.GPX.Lens.NameL import Data.Geo.GPX.Lens.CmtL import Data.Geo.GPX.Lens.DescL import Data.Geo.GPX.Lens.SrcL i...
null
https://raw.githubusercontent.com/tonymorris/geo-gpx/526b59ec403293c810c2ba08d2c006dc526e8bf9/src/Data/Geo/GPX/Type/Trk.hs
haskell
^ The name. ^ The desc. ^ The src. ^ The links (link). ^ The number. ^ The type. ^ The extensions.
| Complex Type : @trkType@ < /#type_trkType > module Data.Geo.GPX.Type.Trk( Trk , trk ) where import Data.Geo.GPX.Type.Trkseg import Data.Geo.GPX.Type.Extensions import Data.Geo.GPX.Type.Link import Data.Geo.GPX.Lens.NameL import Data.Geo.GPX.Lens.CmtL import Data.Geo.GPX.Lens.DescL import Data.Geo.GPX.Lens.SrcL i...
47a58937d323d565cfaf08690d744649461297bef16fac3a3da44f5628015eed
threatgrid/ctia
tool_test.clj
(ns ctia.entity.tool-test (:require [clj-momo.test-helpers.core :as mth] [clojure.test :refer [deftest join-fixtures use-fixtures]] [ctia.entity.tool :as sut] [ctia.test-helpers.access-control :refer [access-control-test]] [ctia.test-helpers.auth :refer [all-capabilitie...
null
https://raw.githubusercontent.com/threatgrid/ctia/ae7d940e323a99dde747e37e2be2898d7705dcaa/test/ctia/entity/tool_test.clj
clojure
(ns ctia.entity.tool-test (:require [clj-momo.test-helpers.core :as mth] [clojure.test :refer [deftest join-fixtures use-fixtures]] [ctia.entity.tool :as sut] [ctia.test-helpers.access-control :refer [access-control-test]] [ctia.test-helpers.auth :refer [all-capabilitie...
030010603b16361f64fbe49130346d41728b93f4660e6ccffd1d38f77a408c02
gonzojive/sbcl
vector.lisp
;;;; permutation vectors This software is part of the SBCL system . See the README file for ;;;; more information. This software is derived from software originally released by Xerox ;;;; Corporation. Copyright and release statements follow. Later modifications ;;;; to the software are in the public domain and ar...
null
https://raw.githubusercontent.com/gonzojive/sbcl/3210d8ed721541d5bba85cbf51831238990e33f1/src/pcl/vector.lisp
lisp
permutation vectors more information. Corporation. Copyright and release statements follow. Later modifications to the software are in the public domain and are provided with absolutely no warranty. See the COPYING and CREDITS files for more information. All rights reserved. Use and copying of this software a...
This software is part of the SBCL system . See the README file for This software is derived from software originally released by Xerox copyright information from original PCL sources : Copyright ( c ) 1985 , 1986 , 1987 , 1988 , 1989 , 1990 Xerox Corporation . derivative works must comply with all applicab...
357bce0bf10c1f4ae141d0e3042f213d91928314eb6d4ef1b6a82c89ad505c21
paurkedal/ocaml-prime
prime_enummap.mli
Copyright ( C ) 2013 - -2022 Petter A. Urkedal < > * * This library is free software ; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or ( at your * option ) any la...
null
https://raw.githubusercontent.com/paurkedal/ocaml-prime/14d27f45bed83a323a07de32cfd9d3327fe33643/lib/prime_enummap.mli
ocaml
* Enumerated map ({e prime.unstable}). This is similar to [Map] from the standard library, but provides a {!locate} method which return the position of a binding within a map. * The type of the keys of the map. * The type of the map. * The empty map. * Holds for the empty map only. * [cardinal m] is the c...
Copyright ( C ) 2013 - -2022 Petter A. Urkedal < > * * This library is free software ; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or ( at your * option ) any la...
b845e5a641ef0f43e48cfa88eade09e45ab5e5e8301c7379ca43bb3562cae61e
phillord/tawny-owl
polyglot.clj
The contents of this file are subject to the LGPL License , Version 3.0 . Copyright ( C ) 2013 , 2017 , , Newcastle University ;; 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 , e...
null
https://raw.githubusercontent.com/phillord/tawny-owl/331e14b838a42adebbd325f80f60830fa0915d76/src/tawny/polyglot.clj
clojure
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 (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHA...
The contents of this file are subject to the LGPL License , Version 3.0 . Copyright ( C ) 2013 , 2017 , , Newcastle University the Free Software Foundation , either version 3 of the License , or GNU Lesser General Public License for more details . You should have received a copy of the GNU Lesser Genera...
aa3314f9c98158c75ceca6c5850d00afed554a0e6d1bf1bae76d7d5e32eb48c1
fukamachi/clozure-cl
pathnames.lisp
-*-Mode : LISP ; Package : CCL -*- ;;; Copyright ( C ) 1994 - 2001 Digitool , Inc Portions copyright ( C ) 2001 - 2009 Clozure Associates This file is part of Clozure CL . ;;; Clozure CL is licensed under the terms of the Lisp Lesser GNU Public License , known as the LLGPL and distributed with Clo...
null
https://raw.githubusercontent.com/fukamachi/clozure-cl/4b0c69452386ae57b08984ed815d9b50b4bcc8a2/lib/pathnames.lisp
lisp
Package : CCL -*- file "LICENSE". The LLGPL consists of a preamble and the LGPL, conflict, the preamble takes precedence. Clozure CL is referenced in the preamble as the "LIBRARY." The LLGPL is also available online at pathnames.lisp Pathnames for Coral Common LISP (defconstant $accessDenied -50...
Copyright ( C ) 1994 - 2001 Digitool , Inc Portions copyright ( C ) 2001 - 2009 Clozure Associates This file is part of Clozure CL . Clozure CL is licensed under the terms of the Lisp Lesser GNU Public License , known as the LLGPL and distributed with Clozure CL as the which is distributed wit...
db5216ba2f6ba78e0c917c16cd670d81d98f4837728125e216ea2d7affce42b7
monadbobo/ocaml-core
core_int63.mli
* The size of Int63 is always at least 63 bits . On a 64 - bit platform it is just an int ( 63 - bits ) , and on a 32 - bit platform it is an int64 . Because Int63 has different sizes on 32 - bit and 64 - bit platforms , there are several pitfalls to be aware of : - Int63 will behave differe...
null
https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/lib/core_int63.mli
ocaml
* The size of Int63 is always at least 63 bits . On a 64 - bit platform it is just an int ( 63 - bits ) , and on a 32 - bit platform it is an int64 . Because Int63 has different sizes on 32 - bit and 64 - bit platforms , there are several pitfalls to be aware of : - Int63 will behave differe...
67d76ffef99bf1821a8e2e1367ee0890fb6f654c83504375e816dcc3a8dc74b6
ajnsit/wai-routes
Main.hs
# LANGUAGE TypeFamilies , QuasiQuotes , TemplateHaskell , MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} module Main where Example using shakespearean templates ( hamlet , cassius , , ) Example using shakespearean templates (hamlet, cassius, lucius, julius) -} import Wai.Routes import Data.Text (...
null
https://raw.githubusercontent.com/ajnsit/wai-routes/4d6b240af57a95353373ddba81c4905db0234459/examples/shakespeare/src/Main.hs
haskell
# LANGUAGE OverloadedStrings # Data for a person Our master datatype We alias it to 'MyAppRoute' for convenience Initial DB Generate routes External hamlet example Inline hamlet example Define Application using RouteM Monad Run the application
# LANGUAGE TypeFamilies , QuasiQuotes , TemplateHaskell , MultiParamTypeClasses # module Main where Example using shakespearean templates ( hamlet , cassius , , ) Example using shakespearean templates (hamlet, cassius, lucius, julius) -} import Wai.Routes import Data.Text (Text) import qualified Data.Text.La...
bf34da82a03f762ee1ca233ecab3626d7f725c8f9b7739e042a936944a82cac8
DrearyLisper/leetcode
re.rkt
#lang racket ;; Finite automaton struct Contains two states describing first and last state of NDA or NDFA . ;; Last state will be terminal in most of the cases. (struct re/fa (first-state last-state) #:mutable #:transparent) State of finite automaton ;; Contains hash-map of edges and bool indicator whether it'...
null
https://raw.githubusercontent.com/DrearyLisper/leetcode/aaff1da0814aa49e4c2ec6ff55807951bc1abf8e/re.rkt
racket
Finite automaton struct Last state will be terminal in most of the cases. Contains hash-map of edges and bool indicator whether it's a terminal state. Gets direction to other states that could be reached by symbol Gets all possible symbols that could be used to go to other states from current state Takes finite a...
#lang racket Contains two states describing first and last state of NDA or NDFA . (struct re/fa (first-state last-state) #:mutable #:transparent) State of finite automaton (struct re/fa-state (edges is-final?) #:mutable #:transparent) (define (new-fa-state) (re/fa-state (make-hash) #f)) Adds edge from o...
8519aad5faa9e8509ae23b09ab6f517b11684b89b9103c9ecae36ae69eeae926
S8A/htdp-exercises
ex232.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-beginner-abbr-reader.ss" "lang")((modname ex232) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "univers...
null
https://raw.githubusercontent.com/S8A/htdp-exercises/578e49834a9513f29ef81b7589b28081c5e0b69f/ex232.rkt
racket
about the language level of this file in a form that our tools can easily process.
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname ex232) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "universe.rkt" "teachpack" "2htdp") (lib "batch-io.rkt" "teachpack" "2htdp") (lib "itunes.rkt"...
3887829fd8fecb5ca3fe42399f8d9996a21b7ed02f282712b6d99e21d5d58c46
binsec/binsec
disasm.ml
(**************************************************************************) This file is part of BINSEC . (* *) Copyright ( C ) 2016 - 2022 CEA ( Co...
null
https://raw.githubusercontent.com/binsec/binsec/22ee39aad58219e8837b6ba15f150ba04a498b63/src/disasm/disasm.ml
ocaml
************************************************************************ alternatives) you can redistribute it an...
This file is part of BINSEC . Copyright ( C ) 2016 - 2022 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , ve...
288b0a3cea8a866aaddb7c03a01bb8d4858a180a52bcd13bfca943ed3539313a
unisonweb/unison
FoldHistory.hs
# LANGUAGE DeriveGeneric # {-# LANGUAGE RankNTypes #-} module Unison.Codebase.Causal.FoldHistory (FoldHistoryResult (..), foldHistoryUntil) where import qualified Data.Map as Map import qualified Data.Sequence as Seq import qualified Data.Set as Set import U.Codebase.HashTags (CausalHash) import Unison.Codebase.Causa...
null
https://raw.githubusercontent.com/unisonweb/unison/2dbb867a3cec3d93d01a4eaa8bce57c734225ab5/parser-typechecker/src/Unison/Codebase/Causal/FoldHistory.hs
haskell
# LANGUAGE RankNTypes # foldHistoryUntil some condition on the accumulator is met, attempting to work backwards fairly through merge nodes (rather than following one back all the way to its root before working through others). Returns Unsatisfied if the condition was never satisfied, otherwise Satisfied. entry ...
# LANGUAGE DeriveGeneric # module Unison.Codebase.Causal.FoldHistory (FoldHistoryResult (..), foldHistoryUntil) where import qualified Data.Map as Map import qualified Data.Sequence as Seq import qualified Data.Set as Set import U.Codebase.HashTags (CausalHash) import Unison.Codebase.Causal (Causal (..), pattern Cons...
9292a4ebf3354a79a7575686b57e6537d51373cb68127f1c023b03564f69c16f
tsloughter/rebar3_tests
app_version_from_file.erl
-module(app_version_from_file). -export([]).
null
https://raw.githubusercontent.com/tsloughter/rebar3_tests/090bfef7d3a4790bb6b16e4c38df6e4c0460b4b2/app_version_from_file/src/app_version_from_file.erl
erlang
-module(app_version_from_file). -export([]).
6cb3da97c7c4a7fc0c558de3db8c3dab6f178b692ebafc3e0a3ed9b1e7d4f8e7
VisionsGlobalEmpowerment/webchange
statistics.clj
(ns webchange.school.statistics (:require [webchange.db.core :as db] [webchange.events :as e])) (def overall-statistics (atom nil)) (defn- reset-statistics! [] (reset! overall-statistics nil)) (defn get-overall-statistics [] (when-not @overall-statistics (reset! overall-statistics (first (db/ca...
null
https://raw.githubusercontent.com/VisionsGlobalEmpowerment/webchange/ab9c40d461dd76b19938d8846660c1ee50d793af/src/clj/webchange/school/statistics.clj
clojure
(ns webchange.school.statistics (:require [webchange.db.core :as db] [webchange.events :as e])) (def overall-statistics (atom nil)) (defn- reset-statistics! [] (reset! overall-statistics nil)) (defn get-overall-statistics [] (when-not @overall-statistics (reset! overall-statistics (first (db/ca...
1fe25c11ed633bf1d000993e8a9bd9faccadc2fc7569b452e662fd253465e14d
ariesteam/aries
line_of_sight.clj
Copyright 2010 ;;; This file is part of clj - span . ;;; ;;; clj-span is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , ;;; or (at your option) any later version. ;;; ;;;...
null
https://raw.githubusercontent.com/ariesteam/aries/b3fafd4640f4e7950fff3791bc4ea4c06ee4dcdf/plugins/org.integratedmodelling.aries.core/bindings/clojure/clj_span/models/line_of_sight.clj
clojure
clj-span is free software: you can redistribute it and/or modify or (at your option) any later version. clj-span is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public Lic...
Copyright 2010 This file is part of clj - span . it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , You should have received a copy of the GNU General Public License along with clj - span . If not , see < / > . (ns clj-s...
345d719524ce6305217f57f2d04a15cad4e1b9e385ea2f359d21bdd088e824ab
dreyk/etsdb
etsdb_dump_fsm.erl
%% ------------------------------------------------------------------- %% %% Copyright ( c ) Dreyk . All Rights Reserved . %% This file is provided to you 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 th...
null
https://raw.githubusercontent.com/dreyk/etsdb/f0bca0cb09ff4b692b8370749a995922545e6f4e/src/etsdb_dump_fsm.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 express or implied. See the License for the specific language governing permissi...
Copyright ( c ) Dreyk . All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(etsdb_dump_fsm). -auth...
bb525e5cc553665bf6cc5ac0128319363b37a015aa7d4c3e69dec2557b4ead82
gar1t/erlang-redis
lf_http.erl
-module(lf_http). -include_lib("modlib/include/webapp.hrl"). -export([request/3, page_title/1]). request(Method, "/signup" ++ Path, Info) -> lf_signup_http:request(Method, Path, Info); request(_, _, _) -> not_handled. page_title(Page) -> Page ++ " - Listfever".
null
https://raw.githubusercontent.com/gar1t/erlang-redis/fac07e2b6d75d3866221f953c12c3fd066bc1ad1/examples/listfever/src/lf_http.erl
erlang
-module(lf_http). -include_lib("modlib/include/webapp.hrl"). -export([request/3, page_title/1]). request(Method, "/signup" ++ Path, Info) -> lf_signup_http:request(Method, Path, Info); request(_, _, _) -> not_handled. page_title(Page) -> Page ++ " - Listfever".
d1528da0449ee13fc5d5a6e72a4605861b5f07135e7aa513b72f795f04055ce4
mbj/mhs
Prelude.hs
module Data.Bounded.Prelude ( module Exports , showc ) where import Control.Applicative as Exports (empty) import Control.Exception as Exports (Exception, try) import Control.Monad as Exports ((<=<), unless) import Control.Monad.Error.Class as Exports (MonadError, throwError) import Dat...
null
https://raw.githubusercontent.com/mbj/mhs/3c0fe9e28c24ba633ed51ccbeeb154d6f2f82292/bounded/src/Data/Bounded/Prelude.hs
haskell
module Data.Bounded.Prelude ( module Exports , showc ) where import Control.Applicative as Exports (empty) import Control.Exception as Exports (Exception, try) import Control.Monad as Exports ((<=<), unless) import Control.Monad.Error.Class as Exports (MonadError, throwError) import Dat...
8a4e64b533a91820d0bf632c62f1061b7e95a2cc7dae49d58cb8381d9911bf77
discus-lang/ddc
Concretize.hs
module DDC.Core.Flow.Transform.Concretize (concretizeModule) where import DDC.Core.Module import DDC.Core.Flow.Compounds import DDC.Core.Flow.Prim import DDC.Core.Flow.Exp import DDC.Core.Flow.Transform.TransformUpX import DDC.Core.Env.EnvX (EnvX) import qualified DDC.Core.Env.EnvX as EnvX ...
null
https://raw.githubusercontent.com/discus-lang/ddc/2baa1b4e2d43b6b02135257677671a83cb7384ac/src/s1/ddc-core-flow/DDC/Core/Flow/Transform/Concretize.hs
haskell
| Rewrite operators that use type level rates to ones that use value level ones. | Rewrite an expression to use concrete operators. loop# -> loopn# loop# -> loopn# using the length of a series to get the rate. type level rate loop body newVectorR# -> newVector# ----------------------------------------------...
module DDC.Core.Flow.Transform.Concretize (concretizeModule) where import DDC.Core.Module import DDC.Core.Flow.Compounds import DDC.Core.Flow.Prim import DDC.Core.Flow.Exp import DDC.Core.Flow.Transform.TransformUpX import DDC.Core.Env.EnvX (EnvX) import qualified DDC.Core.Env.EnvX as EnvX ...
dc37b8d1f1548246946cd066bfde54a35e7dbdda21ea0a5ecad86119a3aefdb1
learnuidev/grok
users_test.clj
(ns grok.db.users-test (:require [clojure.test :refer [is deftest testing use-fixtures]] [datomic.api :as d] [clojure.spec.alpha :as s] [clojure.test.check.generators :as gen] [grok.db.users :as SUT] [grok.db.with-db :refer [with-db *conn*]])) (use-fixtures...
null
https://raw.githubusercontent.com/learnuidev/grok/533bcdf2a27fe85e48a5cd477f71cbb5d1799034/test/grok/db/users_test.clj
clojure
(ns grok.db.users-test (:require [clojure.test :refer [is deftest testing use-fixtures]] [datomic.api :as d] [clojure.spec.alpha :as s] [clojure.test.check.generators :as gen] [grok.db.users :as SUT] [grok.db.with-db :refer [with-db *conn*]])) (use-fixtures...
eadbfaba4274b11eef438a6b5a33c3d3f45ed39063a354d4b436bbeda2ee7c3e
REMath/mit_16.399
abexp-trace.ml
(* abexp.ml *) open Abstract_Syntax (* abstract interpretation of boolean operations *) let rec a_bexp' b r = let r' = match b with | TRUE -> r | FALSE -> (Aenv.bot ()) | EQ (a1, a2) -> let (p1,p2) = (Avalues.a_EQ (Aaexp.a_aexp a1 r) (Aaexp.a_aexp a2 r)) in (Aenv.meet (Baexp.b_aexp a1 r...
null
https://raw.githubusercontent.com/REMath/mit_16.399/3f395d6a9dfa1ed232d307c3c542df3dbd5b614a/project/Initialization-Simple-Sign-FB/abexp-trace.ml
ocaml
abexp.ml abstract interpretation of boolean operations
open Abstract_Syntax let rec a_bexp' b r = let r' = match b with | TRUE -> r | FALSE -> (Aenv.bot ()) | EQ (a1, a2) -> let (p1,p2) = (Avalues.a_EQ (Aaexp.a_aexp a1 r) (Aaexp.a_aexp a2 r)) in (Aenv.meet (Baexp.b_aexp a1 r p1) (Baexp.b_aexp a2 r p2)) | LT (a1, a2) -> let (p1,p2) = ...
f8afdacef0212b3a5662fbc57ef6fe33b79cf643e2edc4998a1c53ca741d635a
Liutos/Project-Euler
pro48.lisp
(defun expmod (base exp m) (cond ((= exp 0) 1) ((evenp exp) (rem (expt (expmod base (/ exp 2) m) 2) m)) (t (rem (* base (expmod base (- exp 1) m)) m)))) (defun pro48 (n) (let ((sum 0) (m (expt 10 10))) (loop :for i from 1 upto n :do (incf sum (expmod i i m))) sum))
null
https://raw.githubusercontent.com/Liutos/Project-Euler/dd59940099ae37f971df1d74c4b7c78131fd5470/pro48.lisp
lisp
(defun expmod (base exp m) (cond ((= exp 0) 1) ((evenp exp) (rem (expt (expmod base (/ exp 2) m) 2) m)) (t (rem (* base (expmod base (- exp 1) m)) m)))) (defun pro48 (n) (let ((sum 0) (m (expt 10 10))) (loop :for i from 1 upto n :do (incf sum (expmod i i m))) sum))
32d0e806600919d9b73aef68b72cb7cf59a6d8ac6d0368d77ed88d7f4135decb
marcoheisig/adventofcode
day-23.lisp
(defpackage :adventofcode-2018-day-23 (:use :cl)) (in-package :adventofcode-2018-day-23)
null
https://raw.githubusercontent.com/marcoheisig/adventofcode/e96a0da17cd79f424af984ed2648b49ffdacb893/2018/day-23/day-23.lisp
lisp
(defpackage :adventofcode-2018-day-23 (:use :cl)) (in-package :adventofcode-2018-day-23)
16fdd104079b4d6486eed14df767273aed701951e1cf6d9fb289819c2b35993c
kyleburton/sandbox
repl.clj
(ns hitchhiker-tree.repl (:require [clojure.tools.nrepl.server :refer [start-server stop-server]] [cider.nrepl :refer [cider-nrepl-handler]] [clojure.tools.logging :as log])) (defonce nrepl-server (atom nil)) (defonce config (atom {:nrepl ...
null
https://raw.githubusercontent.com/kyleburton/sandbox/cccbcc9a97026336691063a0a7eb59293a35c31a/examples/clojure/hitchhiker-tree/src/hitchhiker_tree/repl.clj
clojure
(ns hitchhiker-tree.repl (:require [clojure.tools.nrepl.server :refer [start-server stop-server]] [cider.nrepl :refer [cider-nrepl-handler]] [clojure.tools.logging :as log])) (defonce nrepl-server (atom nil)) (defonce config (atom {:nrepl ...
ac6f114c65a96d85ed351e2fecfc0863bdc401f1671bd1e0832c16cd8e632b39
Rober-t/apxr_run
population_stats_test.erl
-module(population_stats_test). -include_lib("eunit/include/eunit.hrl"). %% macros -define(POPULATION_ID, {population, testps}). -define(SPECIE_ID, {specie, 0.6767}). -define(AGENT_ID, {agent, 0.939392343}). -define(AGENT_ID1, {agent, 0.61634161}). %% runners population_stats_test_() -> {setup, fun setup/0, ...
null
https://raw.githubusercontent.com/Rober-t/apxr_run/9c62ab028af7ff3768ffe3f27b8eef1799540f05/test/population_stats_test.erl
erlang
macros runners tests helpers
-module(population_stats_test). -include_lib("eunit/include/eunit.hrl"). -define(POPULATION_ID, {population, testps}). -define(SPECIE_ID, {specie, 0.6767}). -define(AGENT_ID, {agent, 0.939392343}). -define(AGENT_ID1, {agent, 0.61634161}). population_stats_test_() -> {setup, fun setup/0, fun cleanup/1, ...
c26d95b7891be161c9a3974a49f5e322b112dd162f5986829300a30b17dbbf1e
typeable/xml-isogen
Internal.hs
# LANGUAGE CPP # # LANGUAGE UndecidableInstances # # LANGUAGE FunctionalDependencies # module Data.THGen.XML.Internal where import Control.DeepSeq import Control.Lens hiding (repeated, enum, (&), Strict) import Control.Lens.Internal.FieldTH (makeFieldOpticsForDec) import qualified Data.C...
null
https://raw.githubusercontent.com/typeable/xml-isogen/7ce787924841d1443a231442e5d8b94cdb289820/src/Data/THGen/XML/Internal.hs
haskell
Occurs 0 or more times (List) generate a newtype instead to do less allocations later | Get a local part of (possibly) fully qualified 'X.Name': >>> xmlLocalName "{-namespace}my-name" "my-name"
# LANGUAGE CPP # # LANGUAGE UndecidableInstances # # LANGUAGE FunctionalDependencies # module Data.THGen.XML.Internal where import Control.DeepSeq import Control.Lens hiding (repeated, enum, (&), Strict) import Control.Lens.Internal.FieldTH (makeFieldOpticsForDec) import qualified Data.C...
5ccb10ba95c01071e274ea7c5ed0a928d339cc9b82191c205527cc4bc0cb70e8
bazurbat/chicken-scheme
reexport-m4.scm
;;; export syntax that refers to reexported syntax (reexport-test-2.scm) (module reexport-m4 (baz) (import chicken scheme) (use reexport-m3) (reexport reexport-m3) (define-syntax baz (ir-macro-transformer (lambda (e i c) `(foo)))))
null
https://raw.githubusercontent.com/bazurbat/chicken-scheme/f0c9d1fd8b68eb322e320e65ec40b0bf7d1b41dc/tests/reexport-m4.scm
scheme
export syntax that refers to reexported syntax (reexport-test-2.scm)
(module reexport-m4 (baz) (import chicken scheme) (use reexport-m3) (reexport reexport-m3) (define-syntax baz (ir-macro-transformer (lambda (e i c) `(foo)))))
0850ad768277c844e2b3ecd385e780eed0731dd3968e5e5950806de032e8160a
artmsh/ajure
protocols.clj
(ns ajure.protocols) (defprotocol IArangodbApi (create-database [this db] [this db users]) (get-current-database [this]) (get-accessible-databases [this]) (get-all-databases [this]) (remove-database [this db]) (create-collection [this db create-coll-options]) (get-collection [this db coll-name]) (get-c...
null
https://raw.githubusercontent.com/artmsh/ajure/cf6da463cd628d060715edaeb06d90596cfa2364/src/ajure/protocols.clj
clojure
(replace-documents [this db collection documents options]) (remove-documents [this db collection array options]) (import-document-values [this db documents options]) (get-replication-inventory [this db options])
(ns ajure.protocols) (defprotocol IArangodbApi (create-database [this db] [this db users]) (get-current-database [this]) (get-accessible-databases [this]) (get-all-databases [this]) (remove-database [this db]) (create-collection [this db create-coll-options]) (get-collection [this db coll-name]) (get-c...
87a5e0b8503ad91c4bc65c974c31ef8ffc296264be4086b1ecffff0184474712
arichiardi/replumb
load.cljs
(ns replumb.load (:require goog.Promise [cljs.js :as cljs] [clojure.string :as string] [replumb.common :as common] [replumb.cache :as cache] [cljs.reader :as edn])) (def loaded-js-set "A set containing namespaces already loaded." '#{cljs.analyzer c...
null
https://raw.githubusercontent.com/arichiardi/replumb/dde2228f2e364c3bafdf6585bb1bc1c27a3e336c/src/cljs/replumb/load.cljs
clojure
AR - Can't make this function tail recursive as it is now try both json and edn files try both eg. clojure/set and clojure_SLASH_set AR - if there was an Error, we re-start from {}
(ns replumb.load (:require goog.Promise [cljs.js :as cljs] [clojure.string :as string] [replumb.common :as common] [replumb.cache :as cache] [cljs.reader :as edn])) (def loaded-js-set "A set containing namespaces already loaded." '#{cljs.analyzer c...
1aa65aef9288eda89d8a45d509687b231cf131f88a2780279fc5bc4b23662e3e
clj-commons/seesaw
value.clj
Copyright ( c ) , 2011 . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this ; distribution. ; By using this software in any fashion, you are agreeing to be b...
null
https://raw.githubusercontent.com/clj-commons/seesaw/4ca89d0dcdf0557d99d5fa84202b7cc6e2e92263/test/seesaw/test/value.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remo...
Copyright ( c ) , 2011 . All rights reserved . (ns seesaw.test.value (:use [seesaw.value] [seesaw.core]) (:use [lazytest.describe :only (describe it testing)] [lazytest.expect :only (expect)])) (describe value* (it "returns a map keyed by id for containers" (let [a (label :id :a :text ...
1958b4b15386ff8b5ec1b262cbc45d15be0fa8396088e73ef8bd8cfcb577f389
nick8325/equinox
ParseProblem.hs
module ParseProblem where Paradox / Equinox -- Copyright ( c ) 2003 - 2007 , , 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 righ...
null
https://raw.githubusercontent.com/nick8325/equinox/67351fbc4358fdea931b4c1dfb659f5527b40917/Haskell/ParseProblem.hs
haskell
Copyright ( c ) 2003 - 2007 , , is hereby granted , free of charge , to any person obtaining a Copyright (c) 2003-2007, Koen Claessen, Niklas Sorensson ----------------------------------------------------------------------- reading putStrLn ("(trying '" ++ name ++ "'...)") -----------------------------------...
module ParseProblem where 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 , publish , distribute , sublicense , and/or sell copies of the Software , and to perm...
c4271f3f27c5bcb9e8474f34d853456aac19553dc5fffd6c3c79d1a1c9c7d05f
joshuamiller/cljs-react-navigation-example
project.clj
(defproject nav-example "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.9.0"] [org.clojure/clojurescript "1...
null
https://raw.githubusercontent.com/joshuamiller/cljs-react-navigation-example/45568ed191e782c3f8c0580d2d8774c6b2add52f/project.clj
clojure
(defproject nav-example "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.9.0"] [org.clojure/clojurescript "1...
9305d4585b1a005138e85087c82d2b5f317a9da9b3f30e8af0e2e85f778027a1
fluree/json-ld
api.cljs
(ns fluree.json-ld.processor.api (:refer-clojure :exclude [flatten]) (:require ["jsonld" :as jldjs] [fluree.json-ld.impl.external :as external])) (defn static-loader [url options] (js/Promise. (fn [resolve reject] (if-let [context (get external/inlined-contexts url)] (resolve #js{...
null
https://raw.githubusercontent.com/fluree/json-ld/a909330e33196504ef8a5411aaa0409ab72aaa35/src/fluree/json_ld/processor/api.cljs
clojure
(ns fluree.json-ld.processor.api (:refer-clojure :exclude [flatten]) (:require ["jsonld" :as jldjs] [fluree.json-ld.impl.external :as external])) (defn static-loader [url options] (js/Promise. (fn [resolve reject] (if-let [context (get external/inlined-contexts url)] (resolve #js{...
62388347e195c9955de6d8c55d69791ea36f0235bb76d6b4508ec6d039fc0cbd
bhaskara/programmable-reinforcement-learning
td-taxi-env.lisp
(defpackage td-taxi-env (:documentation " td-taxi-env.lisp The taxi environment in Tom Dietterrich's MAXQ paper, in which there's a single passenger and taxi, and the episode terminates once the passenger has been dropped off, at which point a reward of 1 is given. There's no discount. This file supersedes td-t...
null
https://raw.githubusercontent.com/bhaskara/programmable-reinforcement-learning/8afc98116a8f78163b3f86076498d84b3f596217/lisp/envs/taxi/td-taxi-env.lisp
lisp
Type definitions Constants constructor operations from <env> TODO : many of these are reimplementing stuff that's in gridworld other methods on states
(defpackage td-taxi-env (:documentation " td-taxi-env.lisp The taxi environment in Tom Dietterrich's MAXQ paper, in which there's a single passenger and taxi, and the episode terminates once the passenger has been dropped off, at which point a reward of 1 is given. There's no discount. This file supersedes td-t...
92e37b8992b7ed9b5ce49a65f16bc7ff38f5cda48bb5809b54bf673ce2986883
kowainik/life-sync
Main.hs
module Main (main) where import Life.Main (lifeMain) main :: IO () main = lifeMain
null
https://raw.githubusercontent.com/kowainik/life-sync/ea80581a6735d2f3e2df0fda1d1bc0b0b41ad6d0/app/Main.hs
haskell
module Main (main) where import Life.Main (lifeMain) main :: IO () main = lifeMain
96691c71ccb151aef3d941eb2a3910de39c3b763fe8b5e3fc2c1edebf58570b0
SamB/coq
rawterm.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/SamB/coq/8f84aba9ae83a4dc43ea6e804227ae8cae8086b1/pretyping/rawterm.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i $Id$ i i i ***********************...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Util open Names open ...
994fb2e95d9cf7841f7a189209c9a44af6860dd74556bf653055141f3b28bdb5
videolang/interactive-syntax
log.rkt
#lang racket/base (provide (all-defined-out)) (define-logger editor)
null
https://raw.githubusercontent.com/videolang/interactive-syntax/8c13d83ac0f5dbd624d59083b32f765952d1d440/editor/private/log.rkt
racket
#lang racket/base (provide (all-defined-out)) (define-logger editor)
181dfd04bd1e58ad486ded21c4b629cae63ac3fcc3c4f228ffd81627f1793874
typedbyte/effet
Cont.hs
# LANGUAGE TemplateHaskell # ----------------------------------------------------------------------------- -- | -- Module : Control.Effect.Cont Copyright : ( c ) , 2020 -- License : BSD3 (see the file LICENSE) -- Maintainer : -- Stability : stable -- Portability : portable -- The continuati...
null
https://raw.githubusercontent.com/typedbyte/effet/b1e0e2188ae59f0c079b83be6d59f016c5e4baf5/src/Control/Effect/Cont.hs
haskell
--------------------------------------------------------------------------- | Module : Control.Effect.Cont License : BSD3 (see the file LICENSE) Maintainer : Stability : stable Portability : portable @mtl@ library. --------------------------------------------------------------------------- * ...
# LANGUAGE TemplateHaskell # Copyright : ( c ) , 2020 The continuation effect , similar to the @MonadCont@ type class from the module Control.Effect.Cont Cont'(..) ( i.e. , you only have one continuation effect in your monadic context ) , , Cont , callCC , evalCont' , evalCont , runCont' , ...
6a1ac4dcf20a243c5113af626f29f4dba95cd8708593e60cb7775b1694fb9a79
RedHatQE/katello.auto
content_search.clj
(ns katello.content-search (:require [clojure.data.json :as json] [clojure.xml :as xml] [clojure.zip :as zip] [clojure.data.zip :as zf] [webdriver :as browser] [clojure.data.zip.xml :as zfx] [clojure.string :refer [split triml trim]] ...
null
https://raw.githubusercontent.com/RedHatQE/katello.auto/79fec96581044bce5db5350d0da325e517024962/src/katello/content_search.clj
clojure
Locators Nav Tasks typeKeys is necessary to trigger drop-down list filter out non-numbers Select environments (columns) Add content filters using auto-complete Add package Add errata
(ns katello.content-search (:require [clojure.data.json :as json] [clojure.xml :as xml] [clojure.zip :as zip] [clojure.data.zip :as zf] [webdriver :as browser] [clojure.data.zip.xml :as zfx] [clojure.string :refer [split triml trim]] ...
401c9d80ae21fcf79b23035b8d63fcfa7abc10a03a7a9dc6c4b03d99b5619b45
filippo/sgte
eunit_render.erl
-module(eunit_render). -include_lib("eunit/include/eunit.hrl"). %%-------------------- %% %% Tests %% %%-------------------- %% %% Render Test %% string_test_() -> Str = "This is a test:\n" ++ "$testFun()$ followed by $testData$ and unicode characters àèìòù", {ok, Compiled} = sgte:compile(Str), R...
null
https://raw.githubusercontent.com/filippo/sgte/1d6c90cd6043d41fccd2905c8c1dd6fc19155607/test/eunit_render.erl
erlang
-------------------- Tests -------------------- Render Test error test test callable attribute test on a non existent file -------------------- -------------------- Template String
-module(eunit_render). -include_lib("eunit/include/eunit.hrl"). string_test_() -> Str = "This is a test:\n" ++ "$testFun()$ followed by $testData$ and unicode characters àèìòù", {ok, Compiled} = sgte:compile(Str), Res = sgte:render(Compiled, data()), ResultStr = [<<"This is a test:\n">>, ...
664affdb1b09b915570af4907f331fd9b7623abf9f50039c40e8bd03f52facb3
let-def/wall
minimal.ml
open Tsdl open Wall let load_font name = let ic = open_in_bin name in let dim = in_channel_length ic in let fd = Unix.descr_of_in_channel ic in let buffer = Unix.map_file fd Bigarray.int8_unsigned Bigarray.c_layout false [|dim|] |> Bigarray.array1_of_genarray in let offset = List.hd (Stb_truetype....
null
https://raw.githubusercontent.com/let-def/wall/43b7a1601d5d3ef624e4b641446aaaaa76db7b89/example/minimal.ml
ocaml
text_arrow ~x:400.0 ~y:300.0 ~size:200.0 (); text_arrow ~x:50.0 ~y:50.0 (); text_arrow' ~x:50.0 ~y:60.0 (); ~cap:`ROUND Sdl.gl_set_attribute Sdl.Gl.context_major_version 2;
open Tsdl open Wall let load_font name = let ic = open_in_bin name in let dim = in_channel_length ic in let fd = Unix.descr_of_in_channel ic in let buffer = Unix.map_file fd Bigarray.int8_unsigned Bigarray.c_layout false [|dim|] |> Bigarray.array1_of_genarray in let offset = List.hd (Stb_truetype....
e7818451cd18ba2eeb339144866a4071d8bba21603ccde7123e7fc531c6b7875
huangjs/cl
macsys.lisp
-*- Mode : Lisp ; Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; The data in this file contains enhancments. ;;;;; ;;; ;;;;; ...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/maxima/src/macsys.lisp
lisp
Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; The data in this file contains enhancments. ;;;;; ;;;;; ; ; ; ; All rights reserved ;;;;; SYSTEM: The ``New...
* * ( c ) Copyright 1981 Massachusetts Institute of Technology * * (in-package :maxima) (macsyma-module system) Standard Kinds of Input Prompts (defvar *prompt-prefix* "") (defvar *prompt-suffix* "") (defvar *general-display-prefix* "") (defun main-prompt () instead off using this STRIPDOLLAR hackery , the ...
7396aecaf9d8d3d2d30c4ed316164e99ab27ca91b85af71b791cc58da3da63bf
iskandr/parakeet-retired
Block.mli
type 'a t val create : unit -> 'a t val singleton : 'a -> 'a t val of_list : 'a list -> 'a t val of_array : 'a array -> 'a t val append : 'a t -> 'a t -> 'a t val add : 'a t -> 'a -> unit val length : 'a t -> int val idx : 'a t -> int -> 'a val iter_forward : ('a -> unit) -> 'a t -> unit val iter_backward : ('a -> ...
null
https://raw.githubusercontent.com/iskandr/parakeet-retired/3d7e6e5b699f83ce8a1c01290beed0b78c0d0945/SSA/Block.mli
ocaml
type 'a t val create : unit -> 'a t val singleton : 'a -> 'a t val of_list : 'a list -> 'a t val of_array : 'a array -> 'a t val append : 'a t -> 'a t -> 'a t val add : 'a t -> 'a -> unit val length : 'a t -> int val idx : 'a t -> int -> 'a val iter_forward : ('a -> unit) -> 'a t -> unit val iter_backward : ('a -> ...
ac8fa8ee8d6082d6c7682726a14326d59da53fa929e5dcbf0980b888810d9d0d
google/lisp-koans
multiple-values.lisp
Copyright 2013 Google Inc. ;;; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ;;; you may not use this file except in compliance with the License. ;;; You may obtain a copy of the License at ;;; ;;; -2.0 ;;; ;;; Unless required by applicable law or agreed to in writing, software distrib...
null
https://raw.githubusercontent.com/google/lisp-koans/df5e58dc88429ef0ff202d0b45c21ce572144ba8/koans/multiple-values.lisp
lisp
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing per...
Copyright 2013 Google Inc. distributed under the License is distributed on an " AS IS " BASIS , In Lisp , it is possible for a function to return more than one value . (define-test multiple-values (let ((x (floor 3/2)) (y (multiple-value-list (floor 3/2)))) (assert-equal x 1) (assert-equal y '...
38e1b1aaa6c77080478c466457aa97c6228eb3d1305be610979d90e84af20e8a
bcc32/advent-of-code
main.ml
open! Core open! Async open! Import let input = Lazy_deferred.create (fun () -> Reader.file_contents "input.txt" >>| (String.split_lines >> List.map ~f:Int.of_string >> List.rev)) ;; let iter_balanced list ~f ~factor = let group_weight = List.sum (module Int) list ~f:Fn.id / factor in let rec loop_incl_...
null
https://raw.githubusercontent.com/bcc32/advent-of-code/86a9387c3d6be2afe07d2657a0607749217b1b77/2015/day_24/main.ml
ocaml
open! Core open! Async open! Import let input = Lazy_deferred.create (fun () -> Reader.file_contents "input.txt" >>| (String.split_lines >> List.map ~f:Int.of_string >> List.rev)) ;; let iter_balanced list ~f ~factor = let group_weight = List.sum (module Int) list ~f:Fn.id / factor in let rec loop_incl_...
87861d58ec36da73f1ab427036ecb9d3be6cdf8d64f54c1f203820c60e42ba0e
AccelerateHS/accelerate
Data.hs
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE CPP #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE MagicHash #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeFamilies #-} # LANGUAGE Unbox...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate/7c769b761d0b2a91f318096b9dd3fced94616961/src/Data/Array/Accelerate/Array/Data.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE CPP # # LANGUAGE GADTs # # LANGUAGE MagicHash # # LANGUAGE OverloadedStrings # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # OPTIONS_HADDOCK hide # | Module : Data....
# LANGUAGE UnboxedTuples # # LANGUAGE UndecidableInstances # Copyright : [ 2008 .. 2020 ] The Accelerate Team Maintainer : < > Portability : non - portable ( GHC extensions ) This module fixes the concrete representation of Accelerate arrays . We non - Haskell code in multi - threaded code ...
89779bfb601636bcf22d7476be213803accd267ed94187fba6fd6a11149791d5
YoshikuniJujo/test_haskell
Internal.hs
# OPTIONS_GHC -Wall -fno - warn - tabs # module Gpu.Vulkan.PushConstant.Middle.Internal where import Data.Word import Gpu.Vulkan.Enum import qualified Gpu.Vulkan.PushConstant.Core as C data Range = Range { rangeStageFlags :: ShaderStageFlags, rangeOffset :: Word32, rangeSize :: Word32 } deriving Show rangeToC...
null
https://raw.githubusercontent.com/YoshikuniJujo/test_haskell/27ccc38bc7eff9fe68d0aff14fa853826ffc73f6/themes/gui/vulkan/try-vulkan-middle/src/Gpu/Vulkan/PushConstant/Middle/Internal.hs
haskell
# OPTIONS_GHC -Wall -fno - warn - tabs # module Gpu.Vulkan.PushConstant.Middle.Internal where import Data.Word import Gpu.Vulkan.Enum import qualified Gpu.Vulkan.PushConstant.Core as C data Range = Range { rangeStageFlags :: ShaderStageFlags, rangeOffset :: Word32, rangeSize :: Word32 } deriving Show rangeToC...
4f85ab6294d869a6998d7006a9c91b30785552ab95ecd497d9624ac1cfb7301e
racket/games
check.rkt
#lang racket ;; Checks that all paths in a tree of games leads to the expected ;; winner. It also generates information for known plays to be used to ;; speed up future games (i.e., converts learned strategy to a compact ;; form). (require racket/unit "sig.rkt" (only-in "model.rkt" model-unit@) ...
null
https://raw.githubusercontent.com/racket/games/e57376f067be51257ed12cdf3e4509a00ffd533d/gobblet/check.rkt
racket
Checks that all paths in a tree of games leads to the expected winner. It also generates information for known plays to be used to speed up future games (i.e., converts learned strategy to a compact form). depth
#lang racket (require racket/unit "sig.rkt" (only-in "model.rkt" model-unit@) (only-in "explore.rkt" explore-unit@) (only-in "heuristics.rkt" heuristics-unit@)) (define board-size 3) (define cannon-size +inf.0) (define-unit board-config@ (import) (export config^) (define BOA...
630dacaf274f0f3db712a9d212fe95ab716b8484f3f3b113fc5ab9fa668f89ae
AndrasKovacs/normalization-bench
Interp.hs
# language BlockArguments , Strict , LambdaCase , MagicHash , UnboxedTuples , OverloadedStrings , UnicodeSyntax # BlockArguments, Strict, LambdaCase, MagicHash, UnboxedTuples, OverloadedStrings, UnicodeSyntax #-} module Interp where import Common import qualified Data.Primitive.Array as A import GHC.Ext...
null
https://raw.githubusercontent.com/AndrasKovacs/normalization-bench/bef02243cc70415ab2ec7a5db823a448b07bf4db/haskell/Interp.hs
haskell
----------------------------------------------------------
# language BlockArguments , Strict , LambdaCase , MagicHash , UnboxedTuples , OverloadedStrings , UnicodeSyntax # BlockArguments, Strict, LambdaCase, MagicHash, UnboxedTuples, OverloadedStrings, UnicodeSyntax #-} module Interp where import Common import qualified Data.Primitive.Array as A import GHC.Ext...
09e92d90d443189fcf74cc572f7e5c23f35a0161d96d2fa91e3cc4fa200ef66e
mtesseract/nakadi-client
Test.hs
# LANGUAGE GADTs # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # module Network.Nakadi.Internal.Http.Test ( testHttp ) where import ClassyPrelude import Control.Arrow import Control.Lens import qualified Data.By...
null
https://raw.githubusercontent.com/mtesseract/nakadi-client/f8eef3ac215459081b01b0b48f0b430ae7701f52/tests/Network/Nakadi/Internal/Http/Test.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE GADTs # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # module Network.Nakadi.Internal.Http.Test ( testHttp ) where import ClassyPrelude import Control.Arrow import Control.Lens import qualified Data.ByteString.Lazy as LB import ...
a33e8ee4367e8f2a2ca4f87554347d14d19be2c73f83b4cd12f05ce93fbc291d
kolmodin/binary
Internal.hs
# LANGUAGE CPP # module Data.Binary.Internal ( accursedUnutterablePerformIO ) where #if MIN_VERSION_bytestring(0,10,6) import Data.ByteString.Internal( accursedUnutterablePerformIO ) #else import Data.ByteString.Internal( inlinePerformIO ) # INLINE accursedUnutterablePerformIO # -- | You must be truly desperate to...
null
https://raw.githubusercontent.com/kolmodin/binary/bccbece2e254813f86e0a04f71d9ca3cea68b3bf/src/Data/Binary/Internal.hs
haskell
| You must be truly desperate to come to me for help.
# LANGUAGE CPP # module Data.Binary.Internal ( accursedUnutterablePerformIO ) where #if MIN_VERSION_bytestring(0,10,6) import Data.ByteString.Internal( accursedUnutterablePerformIO ) #else import Data.ByteString.Internal( inlinePerformIO ) # INLINE accursedUnutterablePerformIO # accursedUnutterablePerformIO :: IO ...
344e2af417e26418059f19e66add56d616d0fb1e158f261940616be1c484f11c
fission-codes/fission
Error.hs
module Fission.Web.Server.Email.Error (CouldNotSend(..)) where import Servant.Client import Servant.Server import Fission.Prelude import Fission.Web.Server.Error.Class newtype CouldNotSend = CouldNotSend ClientError deriving ( Show , Eq ) instance Dis...
null
https://raw.githubusercontent.com/fission-codes/fission/a5e8776175d2d45c4f380d69fc350f512974697a/fission-web-server/library/Fission/Web/Server/Email/Error.hs
haskell
module Fission.Web.Server.Email.Error (CouldNotSend(..)) where import Servant.Client import Servant.Server import Fission.Prelude import Fission.Web.Server.Error.Class newtype CouldNotSend = CouldNotSend ClientError deriving ( Show , Eq ) instance Dis...
949d9b9b616dacdb4f91bb1fd0324eca69e899c9de2e3f9b27995875d6f31737
mdunnio/coinbase-pro
Fills.hs
# LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} module CoinbasePro.Authenticated.Fills ( Fill (..) , TradeId , Liquidity (..) ) where import Data.Aeson (FromJSON (..), withObject, withText, (.:)) import CoinbasePro.Types (CreatedAt (..), OrderId, Price, P...
null
https://raw.githubusercontent.com/mdunnio/coinbase-pro/5d5fa95e66481a974786ef362a4ea55ba94c63a9/src/lib/CoinbasePro/Authenticated/Fills.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE LambdaCase # module CoinbasePro.Authenticated.Fills ( Fill (..) , TradeId , Liquidity (..) ) where import Data.Aeson (FromJSON (..), withObject, withText, (.:)) import CoinbasePro.Types (CreatedAt (..), OrderId, Price, ProductId, ...
346d5bc5e506eb05895f0a457a7a238f8024801c190a9c62486b19c6d8147613
brownplt/LambdaS5
ljs_delta.ml
open Prelude open Ljs_syntax open Ljs_values open Ljs_pretty_value let undef = Undefined let null = Null let str s = String s let num f = Num f let bool b = match b with | true -> True | false -> False let to_int v = match v with | Num x -> int_of_float x | _ -> raise (PrimErr ([], str ("expected number, got...
null
https://raw.githubusercontent.com/brownplt/LambdaS5/f0bf5c7baf1daa4ead4e398ba7d430bedb7de9cf/src/ljs/ljs_delta.ml
ocaml
Section 9.3, excluding objects Implement this here because there's no need to expose the class property outside of the delta function otherwise, pointer equality works correctly on floating point values TODO: are these all the cases? TODO(joe): shifted is unused TODO: implement
open Prelude open Ljs_syntax open Ljs_values open Ljs_pretty_value let undef = Undefined let null = Null let str s = String s let num f = Num f let bool b = match b with | true -> True | false -> False let to_int v = match v with | Num x -> int_of_float x | _ -> raise (PrimErr ([], str ("expected number, got...
ee0c75c80eeb2b03bd692ced355f7ebfcd2c4f6e8a32aa7b81b56ad9988f3474
bos/rwh
LocalFunction.hs
{-- snippet pluralise --} pluralise :: String -> [Int] -> [String] pluralise word counts = map plural counts where plural 0 = "no " ++ word ++ "s" plural 1 = "one " ++ word plural n = show n ++ " " ++ word ++ "s" {-- /snippet pluralise --}
null
https://raw.githubusercontent.com/bos/rwh/7fd1e467d54aef832f5476ebf5f4f6a898a895d1/examples/ch04/LocalFunction.hs
haskell
- snippet pluralise - - /snippet pluralise -
pluralise :: String -> [Int] -> [String] pluralise word counts = map plural counts where plural 0 = "no " ++ word ++ "s" plural 1 = "one " ++ word plural n = show n ++ " " ++ word ++ "s"
5882384211c3b139d380b31d7fba54877260c5d4f58e9a87c0933cf271b82ea6
nuvla/api-server
resource_metadata_capability.cljc
(ns sixsq.nuvla.server.resources.spec.resource-metadata-capability "schema definitions for the 'capability' field of a ResourceMetadata resource" (:require [clojure.spec.alpha :as s] [sixsq.nuvla.server.resources.spec.core :as core] [sixsq.nuvla.server.util.spec :as su] [spec-tools.core :as st])) (...
null
https://raw.githubusercontent.com/nuvla/api-server/a64a61b227733f1a0a945003edf5abaf5150a15c/code/src/sixsq/nuvla/server/resources/spec/resource_metadata_capability.cljc
clojure
(ns sixsq.nuvla.server.resources.spec.resource-metadata-capability "schema definitions for the 'capability' field of a ResourceMetadata resource" (:require [clojure.spec.alpha :as s] [sixsq.nuvla.server.resources.spec.core :as core] [sixsq.nuvla.server.util.spec :as su] [spec-tools.core :as st])) (...
2669fde4c870e7769dbb9928b9ee9cedc611b2b7e7a3f26b93a93d661ac52f57
tek/polysemy-http
Json.hs
{-# options_haddock prune #-} |Description : Json Request Combinator , Internal module Polysemy.Http.Json where import Polysemy.Http.Data.Header (HeaderName, HeaderValue) import Polysemy.Http.Data.HttpError (HttpError) import Polysemy.Http.Data.Request (Request) import Polysemy.Http.Data.Response (Response) import ...
null
https://raw.githubusercontent.com/tek/polysemy-http/1e639e3e0f26074ec3aba366bd9a9ce8832f86ec/packages/polysemy-http/lib/Polysemy/Http/Json.hs
haskell
# options_haddock prune # |Make a request, setting the @content-type@ header to @application/json@
|Description : Json Request Combinator , Internal module Polysemy.Http.Json where import Polysemy.Http.Data.Header (HeaderName, HeaderValue) import Polysemy.Http.Data.HttpError (HttpError) import Polysemy.Http.Data.Request (Request) import Polysemy.Http.Data.Response (Response) import qualified Polysemy.Http.Effect...
a94c7477b8f6c6dc981ef9ac3496c56745484927f4eea1ca59fdd4babf56212a
triffon/fp-2022-23
16.any.rkt
#lang racket (require rackunit rackunit/text-ui) # # # Зад 16 Дали поне един елемент на списък изпълняват предиката ` p ? ` ? (define (any? p? l) (if (null? l) #f (or (p? (car l)) (any? p? (cdr l))))) (run-tests (test-suite "any? tests" (check-false (any? even? '())) (check-true (...
null
https://raw.githubusercontent.com/triffon/fp-2022-23/b6991b5be25fb65d1e44b49ff612eb4e63f7caae/exercises/cs2/04.scheme.lists/solutions/16.any.rkt
racket
#lang racket (require rackunit rackunit/text-ui) # # # Зад 16 Дали поне един елемент на списък изпълняват предиката ` p ? ` ? (define (any? p? l) (if (null? l) #f (or (p? (car l)) (any? p? (cdr l))))) (run-tests (test-suite "any? tests" (check-false (any? even? '())) (check-true (...
29b5088da0a4c8700f15a7e16a6045f4d4c6193ad253cc20e0bb0fc0462bbc5d
davebryson/erlang_websocket
mochiweb_request.erl
@author < > 2007 Mochi Media , Inc. %% @doc MochiWeb HTTP Request abstraction. -module(mochiweb_request, [Socket, Method, RawPath, Version, Headers]). -author(''). -include_lib("kernel/include/file.hrl"). -define(QUIP, "Any of you quaids got a smint?"). -define(READ_SIZE, 8192). -export([get_header_value/1...
null
https://raw.githubusercontent.com/davebryson/erlang_websocket/435e2dd8d2a558b539e7bc1a9c4e3eddbdda3a82/deps/mochiweb/src/mochiweb_request.erl
erlang
@doc MochiWeb HTTP Request abstraction. @type iolist() = [iolist() | binary() | char()]. @type iodata() = binary() | iolist(). @type key() = atom() | string() | binary() @type value() = atom() | string() | binary() | integer() @type headers(). A mochiweb_headers structure. @type response(). A mochiweb_response p...
@author < > 2007 Mochi Media , Inc. -module(mochiweb_request, [Socket, Method, RawPath, Version, Headers]). -author(''). -include_lib("kernel/include/file.hrl"). -define(QUIP, "Any of you quaids got a smint?"). -define(READ_SIZE, 8192). -export([get_header_value/1, get_primary_header_value/1, get/1, dump/0...
e8e07efa5dee659389ad733b5d793e97b91db854ab9a348d3d517ef09fdeead8
onyx-platform/onyx
group_encoder.clj
(ns onyx.state.serializers.group-encoder (:import [org.agrona.concurrent UnsafeBuffer])) (defprotocol PEncoder (set-state-idx [this idx]) (set-group [this group]) (get-group-len [this]) (get-bytes [this]) (wrap-impl [this bs]) (length [this])) (defn group-id->bytes [id] (let [bs (byte-array 8) ...
null
https://raw.githubusercontent.com/onyx-platform/onyx/74f9ae58cdbcfcb1163464595f1e6ae6444c9782/src/onyx/state/serializers/group_encoder.clj
clojure
(ns onyx.state.serializers.group-encoder (:import [org.agrona.concurrent UnsafeBuffer])) (defprotocol PEncoder (set-state-idx [this idx]) (set-group [this group]) (get-group-len [this]) (get-bytes [this]) (wrap-impl [this bs]) (length [this])) (defn group-id->bytes [id] (let [bs (byte-array 8) ...
410ce623e8551cb911426db0abb26384b5410d6ba0333b4762450124d5e14258
namin/biohacker
cps.lisp
;; -*- Mode: Lisp; -*- File specifications for CPS , the " Classical Problem Solver " Last edited : 2/6/93 , Copyright ( c ) 1993 , , Northwestern University , and , the Xerox Corporation . ;;; All rights reserved. ;;; See the file legal.txt for a paragraph stating scope of permission ;;; and disclaim...
null
https://raw.githubusercontent.com/namin/biohacker/6b5da4c51c9caa6b5e1a68b046af171708d1af64/BPS/cps/cps.lisp
lisp
-*- Mode: Lisp; -*- All rights reserved. See the file legal.txt for a paragraph stating scope of permission and disclaimer of warranty. The above copyright notice and that paragraph must be included in any separate copy of this file.
File specifications for CPS , the " Classical Problem Solver " Last edited : 2/6/93 , Copyright ( c ) 1993 , , Northwestern University , and , the Xerox Corporation . (in-package :COMMON-LISP-USER) (setq *cps-path* (make-bps-path "cps")) (defvar *cps-files* '("search" "variants")) (defvar *al...
ce1cef46da03f9c43cf136a471917e19500153f5ced904df0b3fced7bcaf4b72
jrh13/hol-light
impconv.ml
(* ========================================================================= *) (* Implicational conversions, implicational rewriting and target rewriting. *) (* *) ( c ) Copyright , , 2012 - 2013 (* ...
null
https://raw.githubusercontent.com/jrh13/hol-light/d125b0ae73e546a63ed458a7891f4e14ae0409e2/impconv.ml
ocaml
========================================================================= Implicational conversions, implicational rewriting and target rewriting. Analysis and Design of Dependable Systems ...
( c ) Copyright , , 2012 - 2013 fortiss GmbH , Munich , Germany Formerly : Hardware Verification Group , Concordia University Distri...
5982941c1383bfccd84a2ea2b90560c99affaa0d585814ca3b8b9f3a86250175
screenshotbot/screenshotbot-oss
core.lisp
;;;; Copyright 2018-Present Modern Interpreters Inc. ;;;; 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 /. (defpackage :screenshotbot/replay/core (:use #:cl) (:import-from #:json-mop ...
null
https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/e7e77f2e33c2cb25db4a61ad57bd5f91d29023a6/src/screenshotbot/replay/core.lisp
lisp
Copyright 2018-Present Modern Interpreters Inc. dex:get should handle redirects, but just in case: needed, so we'll let them be respond with an empty file Compatibility with old cache we're not cached yet we never wan't to rewrite data urls required for windows (replace-srcset "srcset") webpack? Maybe? (repla...
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 /. (defpackage :screenshotbot/replay/core (:use #:cl) (:import-from #:json-mop #:json-serializable #:json-seri...
0a0b4774c6757b33204aea2e7bf325f57d2639ce9ace18c9876c37c9c592fe83
GaloisInc/pate
InlineCallee.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} # LANGUAGE ImplicitParams # # LANGUAGE PolyKinds # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeOperators # # LANGUAGE ViewPatterns # module Pate.Verification.InlineCallee ( inlineCal...
null
https://raw.githubusercontent.com/GaloisInc/pate/e096e9bd5d302267e19b27d940aacf6d50e1347b/src/Pate/Verification/InlineCallee.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # | Allocate an initial simulator value for a given machine register Takes an initial stack register value FIXME: This currently allocates all symbolic state. We want to take any concrete values we can from the callers context. | Record the details of a region of memory t...
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE ImplicitParams # # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeOperators # # LANGUAGE ViewPatterns # module Pate.Verification.InlineCallee ( inlineCallee ) where import Control.Lens ( (^.) )...