_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
4f2ab1543c60e7cdcff392d186d91e71db748d8a3c331f56b975c98cef509c4f
grin-compiler/grin
BindNormalisation.hs
# LANGUAGE LambdaCase # module Transformations.BindNormalisation where import Data.Functor.Foldable as Foldable import Grin.Grin bindNormalisation :: Exp -> Exp bindNormalisation = hylo alg coalg where alg :: ExpF Exp -> Exp alg (SBlockF e) = e alg e = embed e coalg :: Exp -> ExpF Exp coalg (EBind lhs1 pa...
null
https://raw.githubusercontent.com/grin-compiler/grin/44ac2958810ecee969c8028d2d2a082d47fba51b/grin/src/Transformations/BindNormalisation.hs
haskell
# LANGUAGE LambdaCase # module Transformations.BindNormalisation where import Data.Functor.Foldable as Foldable import Grin.Grin bindNormalisation :: Exp -> Exp bindNormalisation = hylo alg coalg where alg :: ExpF Exp -> Exp alg (SBlockF e) = e alg e = embed e coalg :: Exp -> ExpF Exp coalg (EBind lhs1 pa...
164d99d317eb99bd1ce53c73a55168be70b57c15c2309fdcc3e8f0c4b04b777c
twosigma/waiter
composite.clj
;; Copyright ( c ) Two Sigma Open Source , LLC ;; 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/twosigma/waiter/21c3715780a1a795d05f581f1f7335e71ac74a6b/waiter/src/waiter/scheduler/composite.clj
clojure
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permi...
Copyright ( c ) Two Sigma Open Source , LLC distributed under the License is distributed on an " AS IS " BASIS , (ns waiter.scheduler.composite (:require [clj-time.core :as t] [clojure.core.async :as async] [clojure.set :as set] [clojure.tools.logging :as log] [plum...
d0c127b4080bd743015cbc9b04d63ead91f67673ba013c0be60ee464a956c5b5
pmh/funkyweb
project.clj
(defproject funkyweb "0.1.0" :description "A ring based web framework for clojure" :dependencies [[ org.clojure/clojure "1.2.0" ] [ org.clojure/clojure-contrib "1.2.0" ] [ ring/ring-core "0.2.5" ] [ ri...
null
https://raw.githubusercontent.com/pmh/funkyweb/b3731c5664c3b6a40db32a1fef18a59777d9156d/project.clj
clojure
(defproject funkyweb "0.1.0" :description "A ring based web framework for clojure" :dependencies [[ org.clojure/clojure "1.2.0" ] [ org.clojure/clojure-contrib "1.2.0" ] [ ring/ring-core "0.2.5" ] [ ri...
689f66a2b08fb2828f7290c2aebb5b702497bb5bfe85dc582c70dc068496eeb8
ConsenSysMesh/Fae
Contract.hs
| Module : Blockchain . Fae . Internal . Contract Description : The core ' Contract ' type that underlies Fae Copyright : ( c ) , 2017 - 2018 License : MIT Maintainer : Stability : experimental Everything in Fae is a contract , and this module defines contracts and their construction . Module: B...
null
https://raw.githubusercontent.com/ConsenSysMesh/Fae/3ff023f70fa403e9cef80045907e415ccd88d7e8/src/Blockchain/Fae/Internal/Contract.hs
haskell
* Types ** Transaction data | The relevant transaction info | Useful shorthand. | A single declaration of a material (or signer) for a nested call. | The (private) constructors allow one of the following options: remap a signer's role name; remap a material's role name; introduce a new material. a contract arg...
| Module : Blockchain . Fae . Internal . Contract Description : The core ' Contract ' type that underlies Fae Copyright : ( c ) , 2017 - 2018 License : MIT Maintainer : Stability : experimental Everything in Fae is a contract , and this module defines contracts and their construction . Module: B...
c7a50e7ba3dd80fc61fd27e0572359f1456f37de8c543416dca8fe9c7ab0c5da
BranchTaken/Hemlock
test_cmp.ml
open! Basis.Rudiments open! Basis open List let test () = let test_cmp lst0 lst1 = begin File.Fmt.stdout |> Fmt.fmt " -> " |> Cmp.pp (cmp Uns.cmp lst0 lst1) |> Fmt.fmt "\n" |> ignore end in let rec test_with_lists lists lists0 lists1 = begin match lists0, lists1 with | [], _ -> () ...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/f3604ceda4f75cf18b6ee2b1c2f3c5759ad495a5/bootstrap/test/basis/list/test_cmp.ml
ocaml
open! Basis.Rudiments open! Basis open List let test () = let test_cmp lst0 lst1 = begin File.Fmt.stdout |> Fmt.fmt " -> " |> Cmp.pp (cmp Uns.cmp lst0 lst1) |> Fmt.fmt "\n" |> ignore end in let rec test_with_lists lists lists0 lists1 = begin match lists0, lists1 with | [], _ -> () ...
fe674265a3d01420b0df9fe2e42cbd38f176dd00d41b3be17ce13e7a48a58bc7
RyanGlScott/text-show
Dynamic.hs
# OPTIONS_GHC -fno - warn - orphans # | Module : Instances . Data . Dynamic Copyright : ( C ) 2014 - 2017 License : BSD - style ( see the file LICENSE ) Maintainer : Stability : Provisional Portability : GHC ' Arbitrary ' instance for ' Dynamic ' . Module: Instances.Data.Dy...
null
https://raw.githubusercontent.com/RyanGlScott/text-show/5ea297d0c7ae2d043f000c791cc12ac53f469944/tests/Instances/Data/Dynamic.hs
haskell
# OPTIONS_GHC -fno - warn - orphans # | Module : Instances . Data . Dynamic Copyright : ( C ) 2014 - 2017 License : BSD - style ( see the file LICENSE ) Maintainer : Stability : Provisional Portability : GHC ' Arbitrary ' instance for ' Dynamic ' . Module: Instances.Data.Dy...
19ccc6c10a7243edf715cd9946e4dabd3d5db43c6899613853fb24dda94fd6b4
racket/gui
procs.rkt
#lang racket/base (require "../../syntax.rkt") (provide label->plain-label) (define/top (label->plain-label [string? s]) (regexp-replace* #rx"&(.)" (regexp-replace #rx" *[(]&.[)] *" (regexp-replace #rx"\t.*$" s "") "") ...
null
https://raw.githubusercontent.com/racket/gui/d1fef7a43a482c0fdd5672be9a6e713f16d8be5c/gui-lib/mred/private/wx/common/procs.rkt
racket
#lang racket/base (require "../../syntax.rkt") (provide label->plain-label) (define/top (label->plain-label [string? s]) (regexp-replace* #rx"&(.)" (regexp-replace #rx" *[(]&.[)] *" (regexp-replace #rx"\t.*$" s "") "") ...
f5df5491c7f47cbce76a1511b90a250390f2454bd5ae396c65521f6dee3c35d1
cbiffle/ruckus
enumerate.rkt
#lang racket ; Enumeration (assigning IDs). (provide enumerate-nodes) (require "../model.rkt") (define (enumerate-nodes next-id n) (define (enumerate-children next-id n) (for/fold ([id next-id] [cc '()]) ([c (node-children n)]) (let-values ([(id2 c2) (enumerate-nodes id c)])...
null
https://raw.githubusercontent.com/cbiffle/ruckus/62cd4a00837783a88a007c2d5979909a4e86ca0f/core/compiler/enumerate.rkt
racket
Enumeration (assigning IDs).
#lang racket (provide enumerate-nodes) (require "../model.rkt") (define (enumerate-nodes next-id n) (define (enumerate-children next-id n) (for/fold ([id next-id] [cc '()]) ([c (node-children n)]) (let-values ([(id2 c2) (enumerate-nodes id c)]) (values id2 (append cc...
2381ad255dd8ed369853e42c41a6b0d37b7ea691d9aed49e06ae6196c2edaaf1
jacekschae/learn-datomic-course-files
validation.clj
(ns cheffy.validation) (defn account-id? [s] (<= 3 (count s) 120)) (def attr-pred [{:db/ident :account/account-id :db.attr/preds `account-id?}])
null
https://raw.githubusercontent.com/jacekschae/learn-datomic-course-files/ccbf03b2227a9114b4082d0096e6b9bce6367cb2/increments/46-entity-attributes/src/main/cheffy/validation.clj
clojure
(ns cheffy.validation) (defn account-id? [s] (<= 3 (count s) 120)) (def attr-pred [{:db/ident :account/account-id :db.attr/preds `account-id?}])
cd826953617eb9ac197a23376936ce338c9673abd19db80907ec49f35d445069
thephoeron/quipper-language
QEC.hs
This file is part of Quipper . Copyright ( C ) 2011 - 2014 . Please see the -- file COPYRIGHT for a list of authors, copyright holders, licensing, -- and other details. All rights reserved. -- -- ====================================================================== import Quipper -- import other stuff import Con...
null
https://raw.githubusercontent.com/thephoeron/quipper-language/15e555343a15c07b9aa97aced1ada22414f04af6/tests/QEC.hs
haskell
file COPYRIGHT for a list of authors, copyright holders, licensing, and other details. All rights reserved. ====================================================================== import other stuff ====================================================================== ALGORITHM SPECIFIC CODE Meas===x==o==| --...
This file is part of Quipper . Copyright ( C ) 2011 - 2014 . Please see the import Quipper import Control.Monad (zipWithM_) the test circuit from and 's email . It looks like this : In 's notation : H(a ) c = meas(a ) if c then X(b ) else Y(b ) In circuit notation : ...
5a49e13dfc8a8cd93016dc79bed5cba52c58a3bbf0285f6fea6708931d16b131
yi-editor/yi
Internal.hs
{-# OPTIONS_HADDOCK show-extensions #-} -- | -- Module : Yi.Search.Internal -- License : GPL-2 -- Maintainer : -- Stability : experimental -- Portability : portable -- Internal use for . Search . module Yi.Search.Internal where import Lens.Micro.Platform ((.=), use) import ...
null
https://raw.githubusercontent.com/yi-editor/yi/58c239e3a77cef8f4f77e94677bd6a295f585f5f/yi-core/src/Yi/Search/Internal.hs
haskell
# OPTIONS_HADDOCK show-extensions # | Module : Yi.Search.Internal License : GPL-2 Maintainer : Stability : experimental Portability : portable --------------------------------------------------------------------- Searching and substitutions with regular expressions The most recent regex is ...
Internal use for . Search . module Yi.Search.Internal where import Lens.Micro.Platform ((.=), use) import Yi.Editor (EditorM, currentRegexA) import Yi.Regex (SearchExp) setRegexE :: SearchExp -> EditorM () setRegexE re = currentRegexA .= (Just re) resetRegexE :: EditorM (...
d81113b6e2aa3016f873f253a91dba3cb34e67cc9c690fb1eb8cb4b004dd34df
mwand/eopl3
tests.scm
(module tests mzscheme (provide tests-for-run tests-for-check) ;;;;;;;;;;;;;;;; tests ;;;;;;;;;;;;;;;; (define tests-for-run '( ;; simple arithmetic (positive-const "11" 11) (negative-const "-33" -33) (simple-arith-1 "-(44,33)" 11) ;; nested arithmetic (nested-a...
null
https://raw.githubusercontent.com/mwand/eopl3/b50e015be7f021d94c1af5f0e3a05d40dd2b0cbf/chapter7/inferred/tests.scm
scheme
tests ;;;;;;;;;;;;;;;; simple arithmetic nested arithmetic simple variables simple unbound variables simple conditionals test dynamic typechecking make sure that the test and both arms get evaluated properly. and make sure the other arm doesn't get evaluated. simple let check nested let and shadowing simp...
(module tests mzscheme (provide tests-for-run tests-for-check) (define tests-for-run '( (positive-const "11" 11) (negative-const "-33" -33) (simple-arith-1 "-(44,33)" 11) (nested-arith-left "-(-(44,33),22)" -11) (nested-arith-right "-(55, -(22,11))" 44) (test-v...
926aae4ecba66fed2c8b5db087028ffaa85c94133395bd573f2f7908f89f9f2b
metaocaml/ber-metaocaml
test8_plugin_a.ml
let () = print_int (42 : Test8_plugin_b.t) let f x = x + 3
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/lib-dynlink-initializers/test8_plugin_a.ml
ocaml
let () = print_int (42 : Test8_plugin_b.t) let f x = x + 3
fbdba6e3f8aad39a17e35e32e8426dde33cf25e6d2e73324fe5e0fa2b88df728
gar1t/lambdapad
lpad_opt.erl
Copyright 2014 < > %%% 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 distribute...
null
https://raw.githubusercontent.com/gar1t/lambdapad/483b67694723923a82fc699aa37d580d035bd420/src/lpad_opt.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing pe...
Copyright 2014 < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(lpad_opt). -export([validate/2, validate/3, value/2, value/3]). -define(NO_DEFAULT, '$lpad_opt_nodefault'). -record(schema, {implicit, constr...
66373899be58b584e5b17d63c02ef54aa6096dfdf15d228ce8ed6c19f3f92254
startalkIM/ejabberd
mod_mix.erl
%%%------------------------------------------------------------------- @author < > ( C ) 2016 , %%% @doc %%% %%% @end Created : 2 Mar 2016 by < > %%%------------------------------------------------------------------- -module(mod_mix). -behaviour(gen_server). -behaviour(gen_mod). %% API -export([start...
null
https://raw.githubusercontent.com/startalkIM/ejabberd/718d86cd2f5681099fad14dab5f2541ddc612c8b/src/mod_mix.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- API gen_server callbacks =================================================================== API =================================================================== ===...
@author < > ( C ) 2016 , Created : 2 Mar 2016 by < > -module(mod_mix). -behaviour(gen_server). -behaviour(gen_mod). -export([start_link/2, start/2, stop/1, process_iq/3, disco_items/5, disco_identity/5, disco_info/5, disco_features/5, mod_opt_type/1, depends/2]). -export([init/1, handle_call/3, ...
fdcb2917a9c591217be2ab33154286bbc01035bcca582922d187559ecd4fde02
conjure-cp/conjure
ParsePrint.hs
# LANGUAGE RecordWildCards # module Conjure.ParsePrint (tests) where -- conjure import Conjure.Language.Definition (Model) import Conjure.Language.NameGen (runNameGen) import Conjure.Language.Pretty (pretty, renderNormal, (<++>)) import Conjure.Language.Type (TypeCheckerMode (..)) import Conjure.Prelude import Conju...
null
https://raw.githubusercontent.com/conjure-cp/conjure/dd5a27df138af2ccbbb970274c2b8f22ac6b26a0/src/test/Conjure/ParsePrint.hs
haskell
conjure base tasty a name for the test case dir dir + filename returns True if the argument points to a directory that is not hidden which contains + an Essence file D/D.essence
# LANGUAGE RecordWildCards # module Conjure.ParsePrint (tests) where import Conjure.Language.Definition (Model) import Conjure.Language.NameGen (runNameGen) import Conjure.Language.Pretty (pretty, renderNormal, (<++>)) import Conjure.Language.Type (TypeCheckerMode (..)) import Conjure.Prelude import Conjure.UI (Outp...
3b2ea0df2417208a695ccc0569e0b84610581e16ced8baf4b698ef47765617cb
xavierleroy/camlidl
com.mli
(***********************************************************************) (* *) (* CamlIDL *) (* *) , projet ...
null
https://raw.githubusercontent.com/xavierleroy/camlidl/b192760875fe6e97b13004bd289720618e12ee22/lib/com.mli
ocaml
********************************************************************* CamlIDL ...
, projet Cristal , INRIA Rocquencourt Copyright 1999 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License . $ I d : com.mli , v 1.10 2000 - 08 - ...
7aa328bb727caead4ae80b46a6427418bc950636c962a2502b7612d4bde0ab8d
rtrusso/scp
rename.scm
(display (rename-file "from.file" "to.file")) (newline)
null
https://raw.githubusercontent.com/rtrusso/scp/2051e76df14bd36aef81aba519ffafa62b260f5c/src/tests/rename.scm
scheme
(display (rename-file "from.file" "to.file")) (newline)
beeea8bb30cb5ef93a81c69f88a5e88597d32c18eea6960cd107cf1e2676110a
dsheets/codoc
codocIndexHtml.ml
* Copyright ( c ) 2015 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
null
https://raw.githubusercontent.com/dsheets/codoc/382077cf3e7e20e478bd97cc0b348e0b2ec926db/lib/codocIndexHtml.ml
ocaml
TODO: link
* Copyright ( c ) 2015 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
9eddc25e64c1870a3b4c7004badca5d2babbba5d61fb7613c3f40366a76e2993
VisionsGlobalEmpowerment/webchange
audios.cljs
(ns webchange.editor-v2.translator.translator-form.state.audios (:require [ajax.core :refer [json-response-format]] [re-frame.core :as re-frame] [webchange.editor-v2.components.audio-wave-form.state :as audio-wave-state] [webchange.editor-v2.translator.translator-form.state.db :refer [path-to-db]] ...
null
https://raw.githubusercontent.com/VisionsGlobalEmpowerment/webchange/a4f224d345f652dafb03c3a4200ee28d29d87c16/src/cljs/webchange/editor_v2/translator/translator_form/state/audios.cljs
clojure
Subs Current language Events
(ns webchange.editor-v2.translator.translator-form.state.audios (:require [ajax.core :refer [json-response-format]] [re-frame.core :as re-frame] [webchange.editor-v2.components.audio-wave-form.state :as audio-wave-state] [webchange.editor-v2.translator.translator-form.state.db :refer [path-to-db]] ...
dddb3ff4dc4c647b665869fc9715b2390f629469e29f48f273ddfc304a52cb8f
devaspot/brace
jxat_let_support.erl
-module(jxat_let_support). -export([given/3, 'when'/3, then/3]). -include_lib("eunit/include/eunit.hrl"). given([a,module,that,has,a,function,that,contains,'\'let\''], _State, _) -> Source = <<"(ns jxat-let-support-test (require erlang) (use (io :only (format/2) :rename ((f...
null
https://raw.githubusercontent.com/devaspot/brace/8494573efef63f4b2f39dd36e8c651a487223f20/test/jxat_let_support.erl
erlang
-module(jxat_let_support). -export([given/3, 'when'/3, then/3]). -include_lib("eunit/include/eunit.hrl"). given([a,module,that,has,a,function,that,contains,'\'let\''], _State, _) -> Source = <<"(ns jxat-let-support-test (require erlang) (use (io :only (format/2) :rename ((f...
2fb0eb152c51bd546563319b1cab7448b60232035a7038489124dcbdeeecd1ec
geocaml/ISO3166
main.ml
type country = { name : string; alpha_2 : string; alpha_3 : string; numeric : int; region : string; sub_region : string; } let parse_csv_line ~expected s = let columns = String.split_on_char ',' s in if List.length columns = expected then columns else let rec aux acc = function | x :: y :: ...
null
https://raw.githubusercontent.com/geocaml/ISO3166/d14fda3468a12e6247c9823dcae482e78f7bcabb/src/gen/main.ml
ocaml
* A country as defined by ISO3166. * The numeric country code. * Convert from an integer, this will only check that the number falls between [0-999] and raise [Invalid_argument] if it doesn't. There is no check that the integer is in fact a valid, assigned numeric country code.
type country = { name : string; alpha_2 : string; alpha_3 : string; numeric : int; region : string; sub_region : string; } let parse_csv_line ~expected s = let columns = String.split_on_char ',' s in if List.length columns = expected then columns else let rec aux acc = function | x :: y :: ...
5ec48515b80516e0899089bfecd4a6473fee6d5dd2d9e7811da17cb359c39a64
rnons/ted2srt
Server.hs
# OPTIONS_GHC -fno - warn - orphans # # LANGUAGE TypeOperators # module Server ( tedApiView , tedServer , allApi , getBundleH ) where import Api.Search (getSearchApiH) import Api.Subtitles (downloadSubtitleH, getSubtitleH) import Api.Talks (getRandomTalkApi...
null
https://raw.githubusercontent.com/rnons/ted2srt/7456f109bce2b9f07d0c929bef2fd42e6bc4f75d/backend/src/Server.hs
haskell
^ getTalkH ^ getSubtitleH ^ downloadTalkSubtitleH
# OPTIONS_GHC -fno - warn - orphans # # LANGUAGE TypeOperators # module Server ( tedApiView , tedServer , allApi , getBundleH ) where import Api.Search (getSearchApiH) import Api.Subtitles (downloadSubtitleH, getSubtitleH) import Api.Talks (getRandomTalkApi...
66fe16de126ba0abae21d757b78a7a6cb5e4ea57b92a027f4ed4b7e2617426d6
tweag/pirouette
Runner.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} module Pirouette.Symbolic.Prover.Runner where import Control.Monad.Identity import Control.Monad.Reader import Data.Default import qualified Data.Map as M import Pirouette.Monad import Pirouette.Symbolic.Eval import Pirouette.Symbolic.Prover import Piro...
null
https://raw.githubusercontent.com/tweag/pirouette/264611af9737c9e189f8812534e77ce231ddeb2b/src/Pirouette/Symbolic/Prover/Runner.hs
haskell
# LANGUAGE OverloadedStrings # | Parameters for an incorrectness logic run If you would like finer grained control, look at 'execIncorrectnessLogic'. | Runs an incorrectness logic check for a single term, i.e., receives no environment of definitions. | Prepares a 'IncorrectnessParams' into a 'Problem', to be pass...
# LANGUAGE FlexibleContexts # module Pirouette.Symbolic.Prover.Runner where import Control.Monad.Identity import Control.Monad.Reader import Data.Default import qualified Data.Map as M import Pirouette.Monad import Pirouette.Symbolic.Eval import Pirouette.Symbolic.Prover import Pirouette.Term.Syntax (pretty) import P...
f80c62e3fe6b90ad10c889d3a2bdfae5dddea24e01943efb0fa105fb84aaa9da
WormBase/wormbase_rest
genes.clj
(ns rest-api.classes.wbprocess.widgets.genes (:require [pseudoace.utils :as pace-utils] [rest-api.classes.generic-fields :as generic] [rest-api.formatters.object :as obj :refer [pack-obj]])) (defn genes [p] {:data (some->> (:wbprocess/gene p) (map :wbprocess.gene/gene) ...
null
https://raw.githubusercontent.com/WormBase/wormbase_rest/e51026f35b87d96260b62ddb5458a81ee911bf3a/src/rest_api/classes/wbprocess/widgets/genes.clj
clojure
(ns rest-api.classes.wbprocess.widgets.genes (:require [pseudoace.utils :as pace-utils] [rest-api.classes.generic-fields :as generic] [rest-api.formatters.object :as obj :refer [pack-obj]])) (defn genes [p] {:data (some->> (:wbprocess/gene p) (map :wbprocess.gene/gene) ...
21ecc4bf85d3ce633f87c8fd42506d48c6fb98e16637998d0c610dd19c5bb5c5
nyu-acsys/drift
gib.ml
let rec gib a b n = if n=0 then a else if n=1 then b else gib a b ( n-1 ) + gib a b ( n-2 ) let main n = assert ( gib 0 1 n > = 0 ) let rec gib a b n = if n=0 then a else if n=1 then b else gib a b (n-1) + gib a b (n-2) let main n = assert (gib 0 1 n >= 0) *) let rec gib ga gb gn = if...
null
https://raw.githubusercontent.com/nyu-acsys/drift/51a3160d74b761626180da4f7dd0bb950cfe40c0/tests/benchmarks_call/r_type/first/gib.ml
ocaml
let rec gib a b n = if n=0 then a else if n=1 then b else gib a b ( n-1 ) + gib a b ( n-2 ) let main n = assert ( gib 0 1 n > = 0 ) let rec gib a b n = if n=0 then a else if n=1 then b else gib a b (n-1) + gib a b (n-2) let main n = assert (gib 0 1 n >= 0) *) let rec gib ga gb gn = if...
b54916c34e09a65b4c5b0ec10bc15fe06903ac629969bf4d248f4d65941063b8
aantron/luv
errors.ml
let errors = [ "UV_E2BIG"; "UV_EACCES"; "UV_EADDRINUSE"; "UV_EADDRNOTAVAIL"; "UV_EAFNOSUPPORT"; "UV_EAGAIN"; "UV_EAI_ADDRFAMILY"; "UV_EAI_AGAIN"; "UV_EAI_BADFLAGS"; "UV_EAI_BADHINTS"; "UV_EAI_CANCELED"; "UV_EAI_FAIL"; "UV_EAI_FAMILY"; "UV_EAI_MEMORY"; "UV_EAI_NODATA"; "UV_EAI_NONAME"; ...
null
https://raw.githubusercontent.com/aantron/luv/ee3b63189d9b7dc1cca0d2a68592daf759be3838/src/gen/errors.ml
ocaml
let errors = [ "UV_E2BIG"; "UV_EACCES"; "UV_EADDRINUSE"; "UV_EADDRNOTAVAIL"; "UV_EAFNOSUPPORT"; "UV_EAGAIN"; "UV_EAI_ADDRFAMILY"; "UV_EAI_AGAIN"; "UV_EAI_BADFLAGS"; "UV_EAI_BADHINTS"; "UV_EAI_CANCELED"; "UV_EAI_FAIL"; "UV_EAI_FAMILY"; "UV_EAI_MEMORY"; "UV_EAI_NODATA"; "UV_EAI_NONAME"; ...
8ccfb62cdc93d1e3e2c8dcd56587989efad989631ea18953f0736f70a09f1012
clojurewerkz/ogre
or_test.clj
(ns clojurewerkz.ogre.suite.or-test (:refer-clojure :exclude [and count drop filter group-by key key identity iterate loop map max min next not or range repeat reverse sort shuffle]) (:require [clojurewerkz.ogre.core :refer :all]) (:import (org.apache.tinkerpop.gremlin.structure T) (org.apache.tinkerpo...
null
https://raw.githubusercontent.com/clojurewerkz/ogre/cfc5648881d509a55f8a951e01d7b2a166e71d17/test/clojure/clojurewerkz/ogre/suite/or_test.clj
clojure
(ns clojurewerkz.ogre.suite.or-test (:refer-clojure :exclude [and count drop filter group-by key key identity iterate loop map max min next not or range repeat reverse sort shuffle]) (:require [clojurewerkz.ogre.core :refer :all]) (:import (org.apache.tinkerpop.gremlin.structure T) (org.apache.tinkerpo...
d5e68b45865d286669982d85bc0cc9be1ddb2e0c9ac57123ef2f65535c2aa210
binaryage/chromex
tts_engine.cljs
(ns chromex.ext.tts-engine (:require-macros [chromex.ext.tts-engine :refer [gen-wrap]]) (:require [chromex.core])) -- functions -------------------------------------------------------------------------------------------------------------- (defn update-voices* [config voices] (gen-wrap :function ::update-voice...
null
https://raw.githubusercontent.com/binaryage/chromex/33834ba5dd4f4238a3c51f99caa0416f30c308c5/src/exts/chromex/ext/tts_engine.cljs
clojure
-- events -----------------------------------------------------------------------------------------------------------------
(ns chromex.ext.tts-engine (:require-macros [chromex.ext.tts-engine :refer [gen-wrap]]) (:require [chromex.core])) -- functions -------------------------------------------------------------------------------------------------------------- (defn update-voices* [config voices] (gen-wrap :function ::update-voice...
86b37aa6e5a1e769075985dd8ccc9ed964059bccc256011dbf06700d73fb16dc
ndmitchell/shake
Errors.hs
# LANGUAGE DeriveDataTypeable , PatternGuards , RecordWildCards , ConstraintKinds # -- | Errors seen by the user module Development.Shake.Internal.Errors( ShakeException(..), throwM, throwImpure, errorInternal, errorStructured, errorNoRuleToBuildType, errorRuleDefinedMultipleTimes, errorMultipl...
null
https://raw.githubusercontent.com/ndmitchell/shake/99c5a7a4dc1d5a069b13ed5c1bc8e4bc7f13f4a6/src/Development/Shake/Internal/Errors.hs
haskell
| Errors seen by the user may involve both rules and oracle, so report as only rules Should be in Special, but then we get an import cycle | Error representing all expected exceptions thrown by Shake. Problems when executing rules will be raising using this exception type. ^ The target that was being built when...
# LANGUAGE DeriveDataTypeable , PatternGuards , RecordWildCards , ConstraintKinds # module Development.Shake.Internal.Errors( ShakeException(..), throwM, throwImpure, errorInternal, errorStructured, errorNoRuleToBuildType, errorRuleDefinedMultipleTimes, errorMultipleRulesMatch, errorRuleRecursi...
35dafedfe6bfed92e5b6498c251b788923dafe14719db83d7ef022cd4d88db94
kudu-dynamics/blaze
IntToFloatOp.hs
HLINT ignore " Use newtype instead of data " module Blaze.Types.Pil.Op.IntToFloatOp where -- This module is generated. Please use app/gen_pil_ops/Main.hs to modify. import Blaze.Prelude data IntToFloatOp expr = IntToFloatOp { src :: expr } deriving (Eq, Ord, Show, Functor, Foldable, Traversable, Generic, FromJ...
null
https://raw.githubusercontent.com/kudu-dynamics/blaze/a385bb3b37a0a0e061217ebdd70dd0eecbb20332/src/Blaze/Types/Pil/Op/IntToFloatOp.hs
haskell
This module is generated. Please use app/gen_pil_ops/Main.hs to modify.
HLINT ignore " Use newtype instead of data " module Blaze.Types.Pil.Op.IntToFloatOp where import Blaze.Prelude data IntToFloatOp expr = IntToFloatOp { src :: expr } deriving (Eq, Ord, Show, Functor, Foldable, Traversable, Generic, FromJSON, ToJSON) instance Hashable a => Hashable (IntToFloatOp a)
f135eb9311038bb11155df0edb7f87924de9aa73bc22ef479238889a11e770fd
eeng/mercurius
calculate_monetary_base.clj
(ns mercurius.wallets.domain.use-cases.calculate-monetary-base) (defn new-calculate-monetary-base-use-case "Returns a use case that can calculate the total monetary base of the system." [{:keys [calculate-monetary-base]}] (fn [_] (calculate-monetary-base)))
null
https://raw.githubusercontent.com/eeng/mercurius/f83778ddde99aa13692e4fe2e70b2e9dc2fd70e9/src/mercurius/wallets/domain/use_cases/calculate_monetary_base.clj
clojure
(ns mercurius.wallets.domain.use-cases.calculate-monetary-base) (defn new-calculate-monetary-base-use-case "Returns a use case that can calculate the total monetary base of the system." [{:keys [calculate-monetary-base]}] (fn [_] (calculate-monetary-base)))
b4855a2308312a4f064a85d5dc60bbcb4bdc814a9bbcf11ec8920df8669b4ce4
psilord/bitio
bitio.lisp
(in-package :bitio) (defclass bitio () ((%octet-stream :initarg :octet-stream :initform NIL :reader octet-stream) ;; This is used to hold buffered data read using fast sequence operators from the underlying octet . Octets are always written to aref 0 until we reach the end...
null
https://raw.githubusercontent.com/psilord/bitio/c295a666f03055cdce734d4cf948fcdd335cb634/bitio.lisp
lisp
This is used to hold buffered data read using fast sequence operators forward until we're done processing them all. The constructor function is responsible for making this. read-bit-stable is an unsigned integer that holds unprocessed bits always in canonical ordering. However, depending on what side. The read-bi...
(in-package :bitio) (defclass bitio () ((%octet-stream :initarg :octet-stream :initform NIL :reader octet-stream) from the underlying octet . Octets are always written to aref 0 until we reach the end of the required read . Then we read them from aref 0 (%octet-read-buffer...
8a161a05839ed4de96a51eee32d51df58f5f81d10f505c7c0d8397753b0338f4
kafka4beam/brod
brod_cli_pipe_tests.erl
%%% Copyright ( c ) 2017 - 2021 , Klarna Bank AB ( publ ) %%% 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 ...
null
https://raw.githubusercontent.com/kafka4beam/brod/735c1edc622c10d2d776a36ec4febab1a05ee46b/test/brod_cli_pipe_tests.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language g...
Copyright ( c ) 2017 - 2021 , Klarna Bank AB ( publ ) Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(brod_cli_pipe_tests). -ifdef(build_brod_cli). -include_lib("eunit/include/eunit.hrl"). -include("brod_in...
113567348b92650a7af7170a2ffb438c38eb281899cd05fd82e6f37682695ece
llvm-hs/llvm-hs-typed
Tagged.hs
| This module provides a type - safe variant of " LLVM.AST " . The tagged variant of the type - safe API of " LLVM.AST " mirrors the untyped API using the following principle : For every constructor @Con@ in the untyped API in module @LLVM.AST.Foo@ there is a type - safe smart constructor @con@ in the co...
null
https://raw.githubusercontent.com/llvm-hs/llvm-hs-typed/efe052cf2a7ac8e6fb8dba1879d75d036f6fcc80/src/LLVM/AST/Tagged.hs
haskell
| This module provides a type - safe variant of " LLVM.AST " . The tagged variant of the type - safe API of " LLVM.AST " mirrors the untyped API using the following principle : For every constructor @Con@ in the untyped API in module @LLVM.AST.Foo@ there is a type - safe smart constructor @con@ in the co...
0ed6b088d59425e708f8da760db06acf22267c376c140464c5b38a70368fa208
nuprl/gradual-typing-performance
servlet.rkt
Author : #cs(module servlet mzscheme (require web-server/servlet-env web-server/servlet htdp/error xml scheme/contract mzlib/etc) (provide (all-from web-server/servlet-env) (all-from web-server/servlet)) (provide/cont...
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/pre-benchmark/ecoop/htdp-lib/htdp/servlet.rkt
racket
don't cache in netscape
Author : #cs(module servlet mzscheme (require web-server/servlet-env web-server/servlet htdp/error xml scheme/contract mzlib/etc) (provide (all-from web-server/servlet-env) (all-from web-server/servlet)) (provide/cont...
a994013aa4ec5fc478ab3cdfcd5058f0bcfbf45832364a98a7c2ffe92dcd8ee4
rururu/r4f-pro
project.clj
(defproject r4f-pro "0.1.0-SNAPSHOT" :description "Clojure RETE implementation for frames" :url "-pro" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.9.521"] [protege "3.5.0"] ...
null
https://raw.githubusercontent.com/rururu/r4f-pro/c472b902049f620e25b36a197a42f07f5796620d/project.clj
clojure
(defproject r4f-pro "0.1.0-SNAPSHOT" :description "Clojure RETE implementation for frames" :url "-pro" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.9.521"] [protege "3.5.0"] ...
14fe5401da2a1677ad9767dbfb9d7eb95a925c74a53591f9984c019c078240f2
mariari/Interaction
Interaction.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} {-# LANGUAGE NamedFieldPuns #-} # LANGUAGE StandaloneDeriving # module Interaction where import Data.Graph.Inductive import Data.Graph.Inductive.NodeMap import Data.Graph.Inductive.PatriciaTree import Data.May...
null
https://raw.githubusercontent.com/mariari/Interaction/3f75a151fa3d570c54700783063dd4278aeeb75d/src/Interaction.hs
haskell
# LANGUAGE GADTs # # LANGUAGE NamedFieldPuns # eventually turn this into a nice Class representation to easily extend! Rewrite REL into tagless final, so we aren't memory wasting on this silly tag, just pass in the function! | REL: a type that displays whether we are linking from an old node or jus...
# LANGUAGE FlexibleContexts # # LANGUAGE StandaloneDeriving # module Interaction where import Data.Graph.Inductive import Data.Graph.Inductive.NodeMap import Data.Graph.Inductive.PatriciaTree import Data.Maybe (fromJust) import Data.Foldable ...
cc0c567bfef71dfc3682c936e36e5d8201742995a2e24e193924af7bf7b2943a
informatimago/lisp
genrst.lisp
-*- mode : lisp;coding : utf-8 -*- ;;;;************************************************************************** FILE : genrst.lisp ;;;;LANGUAGE: Common-Lisp ;;;;SYSTEM: Common-Lisp USER - INTERFACE : ;;;;DESCRIPTION ;;;; Generate reStructuredText documentation . ;;;; ...
null
https://raw.githubusercontent.com/informatimago/lisp/571af24c06ba466e01b4c9483f8bb7690bc46d03/lispdoc/genrst.lisp
lisp
coding : utf-8 -*- ************************************************************************** LANGUAGE: Common-Lisp SYSTEM: Common-Lisp DESCRIPTION LEGAL LLGPL License. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser Ge...
FILE : genrst.lisp USER - INTERFACE : Generate reStructuredText documentation . < PJB > < > MODIFICATIONS 2015 - 08 - 04 < PJB > Created . Copyright 2015 - 2016 This library is licenced under the Lisp Lesser General Public version 2 of the License , or ( at yo...
f0ca791b9576d8ec1eea3bad912dc66ac9f84c6e2f00745f0a74dab73a829e5f
Bost/corona_cases
messages.clj
( printf " Current - ns [ % s ] loading % s ... \n " * ns * ' ) (ns corona.msg.text.messages (:require [clojure.data.json :as json] [clojure.edn :as edn] [clojure.string :as cstr] [corona.api.cache :as cache] [corona.cases :as cases] [corona.common :as com] [corona.estimate :as est] [coron...
null
https://raw.githubusercontent.com/Bost/corona_cases/b7f62d49b11d9c944e08b3e2e61b978b277e60d1/src/corona/msg/text/messages.clj
clojure
(set! *warn-on-reflection* true) see also #sendphoto alternatively send file to a dump channel, get file id, edit message media, delete message from channel the plot is fetched from the cache, stats and report need not to be specified mapvals /#narrow/stream/180378-slack-archive/topic/beginners/near/191238200 ...
( printf " Current - ns [ % s ] loading % s ... \n " * ns * ' ) (ns corona.msg.text.messages (:require [clojure.data.json :as json] [clojure.edn :as edn] [clojure.string :as cstr] [corona.api.cache :as cache] [corona.cases :as cases] [corona.common :as com] [corona.estimate :as est] [coron...
8ec21f83ab13d46f0e09e04ebb010444d0992be76153447803d21979c6f422fa
boomerang-lang/boomerang
string_utilities.ml
open Core open Util let paren (s:string) : string = "(" ^ s ^ ")" let bracket (s:string) : string = "[" ^ s ^ "]" let undelimit_string : string -> string = (Str.global_replace (Str.regexp "\\\\\\\\") "\\\\") % (Str.global_replace (Str.regexp "\\\\n") "\n") % (Str.global_replace (Str.regexp "\\\\t") "\t") %...
null
https://raw.githubusercontent.com/boomerang-lang/boomerang/b42c2bfc72030bbe5c32752c236c0aad3b17d149/stdlib/string_utilities.ml
ocaml
open Core open Util let paren (s:string) : string = "(" ^ s ^ ")" let bracket (s:string) : string = "[" ^ s ^ "]" let undelimit_string : string -> string = (Str.global_replace (Str.regexp "\\\\\\\\") "\\\\") % (Str.global_replace (Str.regexp "\\\\n") "\n") % (Str.global_replace (Str.regexp "\\\\t") "\t") %...
881c15bbb0940281cb5480dc72194bc7a676897af6190349e763fdd149c4ee5a
danx0r/festival
ogi_span_mx_duration.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<--CSLU-->;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; Center for Spoken Language Understanding ; ; Oregon Graduate Institute of Science & Technology ; ; ...
null
https://raw.githubusercontent.com/danx0r/festival/6701715566aee6519a8b7949b567f2fdad1e2772/lib/ogi/ogi_spanish/ogi_span_mx_duration.scm
scheme
<--CSLU-->;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ; ; ; ; ;; ; release of the Festival TTS system. ;; ...
Duration module for Mexican Spanish Avg durations from current 22 languages database (set! span_mx_phone_data '( (pau 0.100) (a 0.090) (e 0.079) (i 0.080) (o 0.083) (u 0.064) (b 0.076) (tS 0.120) (dZ 0.076) (d 0.069) (f 0.105) (g 0.061) (k 0.099) (...
80e49d9d7e958e41ac6cd7b02683eeab9273e54402fc671c252977968439197b
ivanjovanovic/sicp
e-2.24.scm
Exercise 2.24 . ; Suppose we evaluate the expression ( list 1 ( list 2 ( list 3 4 ) ) ) . ; Give the result printed by the interpreter, ; the corresponding box-and-pointer structure, and the interpretation of this as a tree ( as in figure 2.6 ) . ; -----------------------------------------------------------------...
null
https://raw.githubusercontent.com/ivanjovanovic/sicp/a3bfbae0a0bda414b042e16bbb39bf39cd3c38f8/2.2/e-2.24.scm
scheme
Give the result printed by the interpreter, the corresponding box-and-pointer structure, ------------------------------------------------------------------ box-and-pointer representation |·| | -> |·| | -> | · | · | Tree representation /\ | \ | \
Exercise 2.24 . Suppose we evaluate the expression ( list 1 ( list 2 ( list 3 4 ) ) ) . and the interpretation of this as a tree ( as in figure 2.6 ) . (load "../helpers.scm") > ( 1 ( 2 ( 3 4 ) ) ) 1 2 3 4 cdr of first is pointer to next list in which cdr is pointer to last pair ( ...
ffb780ffe81b4c2d436fddf0a79407565d9a2f762562c0bbb7147d8a441a2f70
phoe/in-nomine
common.lisp
;;;; This file is a part of IN-NOMINE. Copyright ( c ) 2015 ( ) , ;;;; 2022 Michał "phoe" Herda () (in-package #:in-nomine) (defun check-name-not-in-cl-package (name) (when (eq (symbol-package name) (find-package :common-lisp)) (error "~S is a standard Common Lisp symbol and it cannot be used...
null
https://raw.githubusercontent.com/phoe/in-nomine/3460cbde9d3ae4326d94d268ce4616faa498cfc2/src/define-namespace/common.lisp
lisp
This file is a part of IN-NOMINE. 2022 Michał "phoe" Herda ()
Copyright ( c ) 2015 ( ) , (in-package #:in-nomine) (defun check-name-not-in-cl-package (name) (when (eq (symbol-package name) (find-package :common-lisp)) (error "~S is a standard Common Lisp symbol and it cannot be used ~ as a namespace name." name))) (defun check-redefine-meta-namespace (na...
6dbd6b01f87e850d50cff4fbed6eed586e875a3daa06ccb3bf8650d7337ff519
ArulselvanMadhavan/haskell-first-principles
sayHello.hs
sayHello::String -> IO() sayHello x = putStrLn ("Hello, " ++ x ++ "!")
null
https://raw.githubusercontent.com/ArulselvanMadhavan/haskell-first-principles/06e0c71c502848c8e75c8109dd49c0954d815bba/chapter2/sayHello.hs
haskell
sayHello::String -> IO() sayHello x = putStrLn ("Hello, " ++ x ++ "!")
de542ecd64af8ea4764aa23d93d4bef49865749c0e7bbf3fba948a6273eed435
charlesrosenbauer/Bzo-Compiler
ModelRules.hs
This is the bootstrapping compiler for the Bzo programming language . Copyright ( C ) 2020 This program is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at yo...
null
https://raw.githubusercontent.com/charlesrosenbauer/Bzo-Compiler/08aed007aaabaa676996b7c7be05baed42a12e64/src/ModelRules.hs
haskell
This doesn't replace Enums in the AST with anything new This does replace Enums in the AST | fn is applied to each subexpression | swx is applied to each subexpression to determine if the current pass should be continued on said | subexpression. If not, the function it provides is applied instead. | All errors...
This is the bootstrapping compiler for the Bzo programming language . Copyright ( C ) 2020 This program is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at yo...
e486e09a352658bb3f4b4174d14f895afeb9ffd78e62aa748e70904aa8ff09de
Innf107/polaris
parserprelude.ml
open Syntax type specific_parse_error = | MismatchedLetName of loc * string * string exception SpecificParseError of specific_parse_error
null
https://raw.githubusercontent.com/Innf107/polaris/d273b97fa607dd4c70a17a07abd230a921e3817c/src/parserprelude.ml
ocaml
open Syntax type specific_parse_error = | MismatchedLetName of loc * string * string exception SpecificParseError of specific_parse_error
9d8118ee60c6e33935419474d9fb04e9a813ae93ab07ff147c13ebb55f1177f5
fukamachi/id3v2
util.lisp
(in-package :cl-user) (defpackage id3v2.util (:use #:cl) (:import-from #:babel #:string-to-octets #:octets-to-string) (:export #:read-id #:read-frame-size #:read-string #:read-comment-string #:skip-bytes)) (in-package :id3v2.util) (defun...
null
https://raw.githubusercontent.com/fukamachi/id3v2/26303fc70efd290aec55fb7f74bdabf2ee0b4b89/src/util.lisp
lisp
ISO-8859-1 UTF-16 with BOM UTF-16BE without BOM Unknown encoding. Assuming ISO-8859-1 text.
(in-package :cl-user) (defpackage id3v2.util (:use #:cl) (:import-from #:babel #:string-to-octets #:octets-to-string) (:export #:read-id #:read-frame-size #:read-string #:read-comment-string #:skip-bytes)) (in-package :id3v2.util) (defun...
f4f64b89097dffe4c6dd99ab903e47325ee0530ce4e74de048ad57780fe99fb9
kuberlog/holon
process.lisp
; imperative knowledge "how to" (in-package :holon) ;; spell (defun procedure () ;; execute the rules (format t "procedure ~%") ) ;; spirit ; Talk precisely about how-to knowledge (defun process (name) ;; create a magical spirit like entity `((name . ,name) (start . ,(lambda () (procedure)))) ) ;; =...
null
https://raw.githubusercontent.com/kuberlog/holon/6c2ba24e7440c770be7c6e97e21e9d631562b6a7/lisp/process.lisp
lisp
imperative knowledge "how to" spell execute the rules spirit Talk precisely about how-to knowledge create a magical spirit like entity ======================================================================================== ========================================================================================...
(in-package :holon) (defun procedure () (format t "procedure ~%") ) (defun process (name) `((name . ,name) (start . ,(lambda () (procedure)))) ) Black Box Abstraction , supress detail to go off and build bigger boxes (defun add (x a1 a2) (* x (+ a1 a2))) Conventional Interfaces (defun improve (x...
6bdd820a706fd799d36e52ff663d375fa6edecbd3fad96a71bf225e705e42596
expipiplus1/vulkan
ImageTiling.hs
{-# language CPP #-} No documentation found for Chapter " ImageTiling " module Vulkan.Core10.Enums.ImageTiling (ImageTiling( IMAGE_TILING_OPTIMAL , IMAGE_TILING_LINEAR , IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT ...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/ebc0dde0bcd9cf251f18538de6524eb4f2ab3e9d/src/Vulkan/Core10/Enums/ImageTiling.hs
haskell
# language CPP # | VkImageTiling - Specifies the tiling arrangement of data in an image = See Also <-extensions/html/vkspec.html#VK_VERSION_1_0 VK_VERSION_1_0>, <-extensions/html/vkspec.html#VkVideoFormatPropertiesKHR VkVideoFormatPropertiesKHR>, | 'IMAGE_TILING_OPTIMAL' specifies optimal tiling (texels are laid...
No documentation found for Chapter " ImageTiling " module Vulkan.Core10.Enums.ImageTiling (ImageTiling( IMAGE_TILING_OPTIMAL , IMAGE_TILING_LINEAR , IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT ...
f8fdd85ce07c11a9ded7e0cb08b2c927f1fba1935ecb904c50e65a06939cfa21
billstclair/trubanc-lisp
test.lisp
;;; -*- Mode: Lisp -*- ;;; $ Header : /home / gene / library / website / docsrc / pdl / RCS / test.lisp , v 395.1 2008/04/20 17:25:47 gene Exp $ ;;; Copyright ( c ) 2004 . All rights reserved . ;;; ;;; This program is free software; you can redistribute it and/or modify ;;; it under the terms of the GNU Lesser...
null
https://raw.githubusercontent.com/billstclair/trubanc-lisp/5436d2eca5b1ed10bc47eec7080f6cb90f98ca65/systems/cybertiggyr-time/test.lisp
lisp
-*- Mode: Lisp -*- This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as either version 2.1 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WAR...
$ Header : /home / gene / library / website / docsrc / pdl / RCS / test.lisp , v 395.1 2008/04/20 17:25:47 gene Exp $ Copyright ( c ) 2004 . All rights reserved . You should have received a copy of the GNU Lesser General Public Foundation , Inc. , 59 Temple Place , Suite 330 , Boston , MA 02111 - 1307 US...
bdaa604e8f603d8ce6106467061caa9088e346f538b4b99f5a61ddb1dbf8f103
aredington/schism
protocols.cljc
(ns schism.impl.protocols) (defprotocol Convergent (synchronize [convergent other] "Synchronizes `convergent` with `other` such that all changes incorporated into `other` will be represented in a new persistent structure derived from `convergent`.")) (defprotocol Vclocked "A protocol for obtaining the...
null
https://raw.githubusercontent.com/aredington/schism/32cff2f40034b7962f663d290b9021290bdf3aa4/src/schism/impl/protocols.cljc
clojure
(ns schism.impl.protocols) (defprotocol Convergent (synchronize [convergent other] "Synchronizes `convergent` with `other` such that all changes incorporated into `other` will be represented in a new persistent structure derived from `convergent`.")) (defprotocol Vclocked "A protocol for obtaining the...
35015203fa32d84182b3ea3f2628df33f0199849dec4785a0cc6f79310182921
mfikes/fifth-postulate
project.clj
(defproject fifth-postulate "0.1.0-SNAPSHOT" :description "Test ClojureScript parallel compilation speedup" :url "-postulate" :license {:name "Eclipse Public License" :url "-postulate/blob/master/LICENSE"} :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.9....
null
https://raw.githubusercontent.com/mfikes/fifth-postulate/22cfd5f8c2b4a2dead1c15a96295bfeb4dba235e/project.clj
clojure
(defproject fifth-postulate "0.1.0-SNAPSHOT" :description "Test ClojureScript parallel compilation speedup" :url "-postulate" :license {:name "Eclipse Public License" :url "-postulate/blob/master/LICENSE"} :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.9....
20da35823b7ef7812ba59700e15d2a8561ffd8ae740dcd8867054f0a5e5b4671
huangz1990/real-world-haskell-cn
BookStore.hs
file : ch03 / BookStore.hs data BookInfo = Book Int String [String] deriving (Show) file : ch03 / BookStore.hs data MagzineInfo = Magzine Int String [String] deriving (Show) file : ch03 / BookStore.hs myInfo = Book 9780135072455 "Algebra of Programming" ["Richard...
null
https://raw.githubusercontent.com/huangz1990/real-world-haskell-cn/f67b07dd846b1950d17ff941d650089fcbbe9586/code/ch03/BookStore.hs
haskell
稍后就会介绍 CustomerID 的定义
file : ch03 / BookStore.hs data BookInfo = Book Int String [String] deriving (Show) file : ch03 / BookStore.hs data MagzineInfo = Magzine Int String [String] deriving (Show) file : ch03 / BookStore.hs myInfo = Book 9780135072455 "Algebra of Programming" ["Richard...
b3eaf9c7cd8981060f215f548a291c44b2b8be9a8ca62574a41dbe5578ad6197
iskandr/parakeet-retired
ArityInference.ml
type arity_elt = ArityVar of string | ArityFixed of int type arity_fn = arity_elt * arity_elt arity can be either tuples e.g. " 1.3 : : 1 " , " ( 1.2 , 3.4 ) : : 2 " , simple functions like " + : : 2->1 " , or higher order functions like " map : : forall m , ( m->n ) = > m->n " simple functions like ...
null
https://raw.githubusercontent.com/iskandr/parakeet-retired/3d7e6e5b699f83ce8a1c01290beed0b78c0d0945/SSA/Analyses/ArityInference.ml
ocaml
type arity_elt = ArityVar of string | ArityFixed of int type arity_fn = arity_elt * arity_elt arity can be either tuples e.g. " 1.3 : : 1 " , " ( 1.2 , 3.4 ) : : 2 " , simple functions like " + : : 2->1 " , or higher order functions like " map : : forall m , ( m->n ) = > m->n " simple functions like ...
06934de0a5df21b696c4b4f609e2ac9d5802d7a77f4274448ba735beca6b036d
chetmurthy/typpx
compile.ml
(* This is a modified version of driver/compile.ml of OCaml. *) [@@@ocaml.warning "-27"] (***********************************************************************) (* *) (* OCaml *) (* ...
null
https://raw.githubusercontent.com/chetmurthy/typpx/a740750b75739e686da49b46ded7db7d6874e108/src/compile.ml
ocaml
This is a modified version of driver/compile.ml of OCaml. ********************************************************************* OCaml ...
[@@@ocaml.warning "-27"] , projet Cristal , INRIA Rocquencourt Copyright 2002 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . open Format o...
8d2ab552322dfc44fee2d56e6df02c6ba9f4d102b93269100b81f5e88ae0c3e8
manu291/dypgen
parse_tree.mli
type token_desc = string * string 2nd string is for type , if no type is mentioned then the string No_type is chosen type nt_priority_desc = Pr_eq | Pr_less | Pr_lesseq | Pr_greater | Pr_greatereq type code_desc = string * Lexing.position type pat_type = Pat_syn of string | Pat_inh of string type literal_desc = | S...
null
https://raw.githubusercontent.com/manu291/dypgen/59d11b4c70b8d0971348ca6913839ff1fb4f9b5f/dypgen/parse_tree.mli
ocaml
(line,col1,col2,file_name) | Prio_fun of (string * int) the bool tells whether the code is preceded by '@', i.e. if it returns a list of type dyp_action. type lexer_def = | Regexp_decl of (string * Dyp.regexp) | Lexer_rule of (Dyp.regexp * string * code_desc) type obj = code_desc * code_desc * parser_param_info...
type token_desc = string * string 2nd string is for type , if no type is mentioned then the string No_type is chosen type nt_priority_desc = Pr_eq | Pr_less | Pr_lesseq | Pr_greater | Pr_greatereq type code_desc = string * Lexing.position type pat_type = Pat_syn of string | Pat_inh of string type literal_desc = | S...
bdeebe41e80c178423ca29b8039ee45f6c4082fbc2e5bdff51b50a8784d42fc8
ivanperez-keera/dunai
DunaiExamplesMonads.hs
module DunaiExamplesMonads where import Control.Monad (when, MonadPlus) import Data.MonadicStreamFunction import Data.MonadicStreamFunction.Instances.ArrowPlus import Control.Monad.Trans.Class import Control.Monad.Trans.MSF.Except import Control.Monad.Trans.MSF.Reader import Control.Monad.Trans.MSF.Writer import Contr...
null
https://raw.githubusercontent.com/ivanperez-keera/dunai/99091c3391c0ba15e9075579e0b73c5660e994c2/dunai-examples/paper/src/DunaiExamplesMonads.hs
haskell
module DunaiExamplesMonads where import Control.Monad (when, MonadPlus) import Data.MonadicStreamFunction import Data.MonadicStreamFunction.Instances.ArrowPlus import Control.Monad.Trans.Class import Control.Monad.Trans.MSF.Except import Control.Monad.Trans.MSF.Reader import Control.Monad.Trans.MSF.Writer import Contr...
ee448262b87bed91603c11b284a7a5904e475fcb8aed310be52f62660fa9b712
cjohansen/dumdom
string.cljc
(ns dumdom.string (:require [clojure.string :as str] [dumdom.element :as e])) (defn- tag-name [node] (:sel node)) (defn- children [node] (:children node)) (defn- attributes [node] (merge (some-> node :data :attrs) (some-> node :data :props) (some->> node :data :dataset ...
null
https://raw.githubusercontent.com/cjohansen/dumdom/aa832eee3a696ef45098ca28ee6610212de7a902/src/dumdom/string.cljc
clojure
")))
(ns dumdom.string (:require [clojure.string :as str] [dumdom.element :as e])) (defn- tag-name [node] (:sel node)) (defn- children [node] (:children node)) (defn- attributes [node] (merge (some-> node :data :attrs) (some-> node :data :props) (some->> node :data :dataset ...
71c5cca372ca8e6e65a4938ead639d481c851ff2a5faf9dcee4fc867fe335035
moby/vpnkit
forwarding.ml
open Lwt.Infix let src = let src = Logs.Src.create "test" ~doc:"Test the forwarding code" in Logs.Src.set_level src (Some Logs.Debug); src module Log = (val Logs.src_log src : Logs.LOG) let (>>*=) m f = m >>= function | Ok x -> f x | Error (`Msg m) -> failwith m let run ?(timeout=Duration.of_sec 60) t = ...
null
https://raw.githubusercontent.com/moby/vpnkit/6039eac025e0740e530f2ff11f57d6d990d1c4a1/src/hostnet_test/forwarding.ml
ocaml
* Accept connections, read the forwarding header and run a proxy. This is a minimal "vpnkit-forwarder" Test the --tcpv4-forwards gateway forwarding option
open Lwt.Infix let src = let src = Logs.Src.create "test" ~doc:"Test the forwarding code" in Logs.Src.set_level src (Some Logs.Debug); src module Log = (val Logs.src_log src : Logs.LOG) let (>>*=) m f = m >>= function | Ok x -> f x | Error (`Msg m) -> failwith m let run ?(timeout=Duration.of_sec 60) t = ...
f9ed2a42f14286104e96894c44b43ec36b7042a4b183acc66b175124f06c2abd
SKS-Keyserver/sks-keyserver
pMap.ml
(***********************************************************************) pMap.ml - Association tables over ordered types . (* *) Copyright ( C ) 2002 , 2003 , 2004 , 2005 , 2006 , 2007 , 2008 , 2009 , 2010 , 201...
null
https://raw.githubusercontent.com/SKS-Keyserver/sks-keyserver/a4e5267d817cddbdfee13d07a7fb38a9b94b3eee/pMap.ml
ocaml
********************************************************************* redistribute it and/or modify it under the terms of the GNU General ...
pMap.ml - Association tables over ordered types . Copyright ( C ) 2002 , 2003 , 2004 , 2005 , 2006 , 2007 , 2008 , 2009 , 2010 , 2011 , 2012 , 2013 and Contributors This file is part of SKS . SKS is free software ; you can Public License as published ...
4d732d5dbc3b08fa4b8cd81d2a9f0402891fcc0ad665bd449ebad5230c162322
tailrecursion/cljs-priority-map
test.cljs
(ns tailrecursion.priority-map.test (:require [tailrecursion.priority-map :as pm] [cljs.reader :refer [read-string]])) (set! cljs.core/*print-fn* (if (undefined? (aget js/window "dump")) ;; phantomjs #(.apply (.-log js/console) (.-console js/window) ...
null
https://raw.githubusercontent.com/tailrecursion/cljs-priority-map/7d6534329cd9b73f32926213911c20fed78c45bc/test/tailrecursion/priority_map/test.cljs
clojure
phantomjs firefox printing, reader perf (def basis (atom 0)) (reduce merge (repeatedly #(reduce (fn [xs k] {k xs}) (reset! basis 0) (time (println (= bm1 bm2))))
(ns tailrecursion.priority-map.test (:require [tailrecursion.priority-map :as pm] [cljs.reader :refer [read-string]])) (set! cljs.core/*print-fn* (if (undefined? (aget js/window "dump")) #(.apply (.-log js/console) (.-console js/window) (apply array %&)) ...
30e47743e7fb7df0810e23538b3a9a52d4a362b5f2df31efbde74c26380778b2
ghcjs/ghcjs
conc034.hs
# LANGUAGE CPP # import Control.Concurrent import Control.Exception import Foreign import System.IO (hFlush,stdout) #if __GLASGOW_HASKELL__ < 705 import Prelude hiding (catch) #endif ! ! ! Try to get two threads into a knot depending on each other . This should result in the main thread being sent a NonTerminat...
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/ghc/concurrent/conc034.hs
haskell
to run" instead). there's nothing keeping stdout alive so it will get finalized. we have to be careful to ensure that the strictness analyser can't see that a and b are both bottom, otherwise the simplifier will go to town here, resulting in something like a = a and b = a. we need to catch in the child thread to...
# LANGUAGE CPP # import Control.Concurrent import Control.Exception import Foreign import System.IO (hFlush,stdout) #if __GLASGOW_HASKELL__ < 705 import Prelude hiding (catch) #endif ! ! ! Try to get two threads into a knot depending on each other . This should result in the main thread being sent a NonTerminat...
f62a348e8b98927fca778aa557febcf4e61b37f059250daa42f42c342fdb4e2e
samsergey/formica
formal-tests.rkt
#lang racket/base (require rackunit "../formal.rkt" "../private/tools/curry.rkt" racket/list racket/match) (define-formal f (g 2) (h '(1 3)) (F (arity-at-least 2))) (test-case "formal-function? testing" (check-true (andmap formal-function? (list f g h F))) (check-true (formal-f...
null
https://raw.githubusercontent.com/samsergey/formica/b4410b4b6da63ecb15b4c25080951a7ba4d90d2c/tests/formal-tests.rkt
racket
#lang racket/base (require rackunit "../formal.rkt" "../private/tools/curry.rkt" racket/list racket/match) (define-formal f (g 2) (h '(1 3)) (F (arity-at-least 2))) (test-case "formal-function? testing" (check-true (andmap formal-function? (list f g h F))) (check-true (formal-f...
3e4efc58b46bfb371b6a41e5426e8bc794569664095a21a02b60593ff54c5eaa
onyx-platform/onyx
monitoring_test.clj
(ns onyx.peer.monitoring-test (:require [clojure.core.async :refer [chan >!! <!! close! sliding-buffer]] [clojure.test :refer [deftest is testing]] [onyx.plugin.core-async :refer [take-segments!]] [onyx.test-helper :refer [load-config with-test-env]] [onyx.static.uuid :...
null
https://raw.githubusercontent.com/onyx-platform/onyx/74f9ae58cdbcfcb1163464595f1e6ae6444c9782/test/onyx/peer/monitoring_test.clj
clojure
wait for job to fully start up before counting our metrics Safe to swallow close after we've counted
(ns onyx.peer.monitoring-test (:require [clojure.core.async :refer [chan >!! <!! close! sliding-buffer]] [clojure.test :refer [deftest is testing]] [onyx.plugin.core-async :refer [take-segments!]] [onyx.test-helper :refer [load-config with-test-env]] [onyx.static.uuid :...
68197def4c5bdfcdbe15bba9a19ed7dd7c6a5e1e2e04f4d136d3a44041a11b9d
lfkdsk/SICP-Magical-Book
simula.rkt
simula (load "gate.rkt") (load "adder.rkt") (load "wire.rkt") (load "agenda.rkt") (load "prob.rkt") (define the-agenda (make-agenda)) (define inverter-delay 2) (define and-gate-delay 3) (define or-gate-delay 5) (define input-1 (make-wire)) (define input-2 (make-wire)) (define sum (make-wire)) (define carry (ma...
null
https://raw.githubusercontent.com/lfkdsk/SICP-Magical-Book/4f4d4822ed27834ded7c782d9874c73a6d3378d0/code/simula/simula.rkt
racket
simula (load "gate.rkt") (load "adder.rkt") (load "wire.rkt") (load "agenda.rkt") (load "prob.rkt") (define the-agenda (make-agenda)) (define inverter-delay 2) (define and-gate-delay 3) (define or-gate-delay 5) (define input-1 (make-wire)) (define input-2 (make-wire)) (define sum (make-wire)) (define carry (ma...
6437e62960f2ce535b4bb29e3fbc7921f9888d197c7b9a3a1e84d6d160c559e1
iustin/corydalis
Widgets.hs
Copyright ( C ) 2013 This program is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later version . This program is distributed i...
null
https://raw.githubusercontent.com/iustin/corydalis/bdafe3fff29455472433741c345d1405c389a579/src/Handler/Widgets.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE QuasiQuotes # # LANGUAGE ViewPatterns # | Generates srcset for an image based on all auto-built versions. FIXME: this should filter out all sizes greater than actual image size; this needs knowing the image size in Image. [performance] TODO: serial field, links t...
Copyright ( C ) 2013 This program is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later version . This program is distributed i...
1550aca38f675cd2cf93afb9c6c65bf515fbde060458dc921e66de319497c582
interstar/Patterning-Core
l_systems.cljc
(ns patterning.library.l_systems (:require [patterning.maths :as maths] )) L - System for organic shapes (defn applicable [[from to] c] (= from (str c))) (defn apply-rule-to-char [rule c] (if (applicable rule c) (get rule 1) c )) (defn apply-rules-to-char [rules c] (let [rule (first (filter #(applicable % c) r...
null
https://raw.githubusercontent.com/interstar/Patterning-Core/4ff050026ed9d7ddf013e83444701599dfdbac73/src/cljc/patterning/library/l_systems.cljc
clojure
(ns patterning.library.l_systems (:require [patterning.maths :as maths] )) L - System for organic shapes (defn applicable [[from to] c] (= from (str c))) (defn apply-rule-to-char [rule c] (if (applicable rule c) (get rule 1) c )) (defn apply-rules-to-char [rules c] (let [rule (first (filter #(applicable % c) r...
d1ebac1fbb78178026cc632b41320c15bc911d9079930e3fabd1a8535d378091
PacktPublishing/Haskell-High-Performance-Programming
ffi-c-var.hs
-- file: ffi-c-var.hs import Foreign.C (CInt) import Foreign.Ptr (Ptr) import Foreign.Storable (peek) foreign import ccall unsafe "&" c_var :: Ptr CInt foreign import ccall unsafe update :: IO () main = do peek c_var >>= print update peek c_var >>= print
null
https://raw.githubusercontent.com/PacktPublishing/Haskell-High-Performance-Programming/2b1bfdb8102129be41e8d79c7e9caf12100c5556/Chapter10/ffi-c-var.hs
haskell
file: ffi-c-var.hs
import Foreign.C (CInt) import Foreign.Ptr (Ptr) import Foreign.Storable (peek) foreign import ccall unsafe "&" c_var :: Ptr CInt foreign import ccall unsafe update :: IO () main = do peek c_var >>= print update peek c_var >>= print
5c3a6a9cced3ec6a3b3ca863666e796c65457faa17bb44414887a0657a9611ee
geophf/1HaskellADay
Exercise.hs
module Y2018.M04.D25.Exercise where - Today is a fun little number theory diversion brought to you by @fermatslibrary The last digit of any integer n^5 is n itself Proof : Neat . Proof this for the first 100 Integers : - Today is a fun little number theory diversion brought to you by @fermatslibra...
null
https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2018/M04/D25/Exercise.hs
haskell
} }
module Y2018.M04.D25.Exercise where - Today is a fun little number theory diversion brought to you by @fermatslibrary The last digit of any integer n^5 is n itself Proof : Neat . Proof this for the first 100 Integers : - Today is a fun little number theory diversion brought to you by @fermatslibra...
1a20674313e4f252a5f94337f693aadc6c4d4eb99b7174e8630c4cbf09c99408
erlang/otp
asn1_db.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1997 - 2023 . 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 applicab...
null
https://raw.githubusercontent.com/erlang/otp/2b397d7e5580480dc32fa9751db95f4b89ff029e/lib/asn1/src/asn1_db.erl
erlang
%CopyrightBegin% 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 lan...
Copyright Ericsson AB 1997 - 2023 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(asn1_db). -export([dbstart/1,dbnew/3,dbload/1,dbload/4,dbsave/2,dbput/2, dbput/3,dbget/2]). -export([dbsto...
4118a818947af846ad70ced59fb60806e624cc0766cbe583c3c9a06d8dc2abf4
ntoronto/pict3d
randomized-tests.rkt
#lang racket (require racket/gui/base redex/reduction-semantics) (define num-tessellate-vs-orig-tests 100) (define num-ray-trace-vs-opengl-tests 100) (define-language simple-pict3d [posnum #i1 #i1/2 #i1/4 #i1/8 #i1/16] [nz posnum (- posnum)] [nn 0 posnum] [n 0 nz] [angle 0 15 30 45 60 75 90 1...
null
https://raw.githubusercontent.com/ntoronto/pict3d/09283c9d930c63b6a6a3f2caa43e029222091bdb/pict3d/tests/randomized/randomized-tests.rkt
racket
#lang racket (require racket/gui/base redex/reduction-semantics) (define num-tessellate-vs-orig-tests 100) (define num-ray-trace-vs-opengl-tests 100) (define-language simple-pict3d [posnum #i1 #i1/2 #i1/4 #i1/8 #i1/16] [nz posnum (- posnum)] [nn 0 posnum] [n 0 nz] [angle 0 15 30 45 60 75 90 1...
57b2bfc5891cd968e42fef6bf569a51d798d598fde99c791c234df62e45c5045
RedlineResearch/floorplan
Rust.hs
module Language.Floorplan.Rust ( module Language.Floorplan.Rust.Compiler ) where import Language.Floorplan.Rust.Compiler
null
https://raw.githubusercontent.com/RedlineResearch/floorplan/dbaa7e6649eed18707ff8a27ee3c33fa83b47fcf/src/Language/Floorplan/Rust.hs
haskell
module Language.Floorplan.Rust ( module Language.Floorplan.Rust.Compiler ) where import Language.Floorplan.Rust.Compiler
a9d25c206103bdc388bd39cffd8514fc7bfd136d5ba8d1414cb95fe108e20481
jrm-code-project/LISP-Machine
wow.lisp
-*- Mode : LISP ; Package : USER ; : CL ; -*- (defun wow () (dotimes (i 350) (send tv:initial-lisp-listener :draw-circle 400 400 (* 2 i))) (loop)) (defvar *window* tv:initial-lisp-listener) (defconstant *square-root-of-two* (sqrt 2)) (defconstant *square-root-of-two-over-two* (/ 1 (sqrt 2))) (defconsta...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/rauen/wow.lisp
lisp
Package : USER ; : CL ; -*- (setq *y* y0)
(defun wow () (dotimes (i 350) (send tv:initial-lisp-listener :draw-circle 400 400 (* 2 i))) (loop)) (defvar *window* tv:initial-lisp-listener) (defconstant *square-root-of-two* (sqrt 2)) (defconstant *square-root-of-two-over-two* (/ 1 (sqrt 2))) (defconstant *pi-over-four* (/ pi 4)) (defconstant *45-degr...
b9b333230f3a82740684dc1dbccc2e285a98fbc417881cfbb90f6652e690fd13
smart-chain-fr/tokenomia
CLI.hs
{-# LANGUAGE RankNTypes #-} # LANGUAGE TemplateHaskell # # LANGUAGE ExtendedDefaultRules # # LANGUAGE TypeApplications # # LANGUAGE ScopedTypeVariables # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE LambdaCase # # LANGUAGE FlexibleContexts # # OPTIONS_GHC -fno - warn - missing - signatures...
null
https://raw.githubusercontent.com/smart-chain-fr/tokenomia/8f3ec5df0713b866dfab5e52a76e34111d6052f5/src/Tokenomia/CLI.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE OverloadedStrings #
# LANGUAGE TemplateHaskell # # LANGUAGE ExtendedDefaultRules # # LANGUAGE TypeApplications # # LANGUAGE ScopedTypeVariables # # LANGUAGE RecordWildCards # # LANGUAGE LambdaCase # # LANGUAGE FlexibleContexts # # OPTIONS_GHC -fno - warn - missing - signatures # # OPTIONS_GHC -fno - warn - type - defaults # # OPTIONS_GHC ...
728d4e68731241fc92f1705b9edcc5a53798590fe7745b2df1408f7f26255d6f
pauleve/pint
frontend.ml
$ I d : promela.mli 2996 2012 - 03 - 14 09:58:12Z weissmam $ Copyright ( c ) 2011 - 2012 Technische Universitaet Muenchen Copyright ( c ) 2011 < Copyright ( c ) 2011 - 2012 < > All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted p...
null
https://raw.githubusercontent.com/pauleve/pint/7cf943ec60afcf285c368950925fd45f59f66f4a/3rdparty/bes/src/frontend.ml
ocaml
$ I d : promela.mli 2996 2012 - 03 - 14 09:58:12Z weissmam $ Copyright ( c ) 2011 - 2012 Technische Universitaet Muenchen Copyright ( c ) 2011 < Copyright ( c ) 2011 - 2012 < > All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted p...
a35ced024db5fd4fcb6de10731b4554d595f62078992381e5ff8753a5fd358ad
abailly/hs-word2vec
Step.hs
module Steps where instance Progress IO where progress = BS8.putStrLn . encode
null
https://raw.githubusercontent.com/abailly/hs-word2vec/894e401325dbb7c35c45e9ed546b0914f93c900f/src/Step.hs
haskell
module Steps where instance Progress IO where progress = BS8.putStrLn . encode
14e6d364f285093684eb13e41c1bc8fbc7401d61dcbdb7b79c284a215db05c07
okuoku/nausicaa
test-r6rs-parser.sps
-*- coding : utf-8 - unix -*- ;;; Part of : / Scheme ;;;Contents: tests for R6RS parser Date : Fri Jan 7 , 2011 ;;; ;;;Abstract ;;; ;;; ;;; Copyright ( C ) 2011 < > ;;; ;;;This program is free software: you can redistribute it and/or modify ;;;it under the terms of the GNU General Public License as published ...
null
https://raw.githubusercontent.com/okuoku/nausicaa/50e7b4d4141ad4d81051588608677223fe9fb715/scheme/tests/test-r6rs-parser.sps
scheme
Contents: tests for R6RS parser Abstract 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 your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; with...
-*- coding : utf-8 - unix -*- Part of : / Scheme Date : Fri Jan 7 , 2011 Copyright ( C ) 2011 < > the Free Software Foundation , either version 3 of the License , or ( at General Public License for more details . You should have received a copy of the GNU General Public License #!r6rs (import (nausic...
356c11ee3cda939fcced16940a827f412feb7eec606ff0267c22227f3858aa78
graninas/Andromeda
ArrEff.hs
{-# LANGUAGE Arrows #-} module Control.Arrow.ArrEff where import Prelude hiding ((.), id) import Control.Category import Control.Arrow import Control.Monad.Free type Prod eff b c = (c, ArrEff eff b c) newtype ArrEff eff b c = ArrEff (b -> eff (Prod eff b c)) instance Monad eff => Category (ArrEff eff) where id =...
null
https://raw.githubusercontent.com/graninas/Andromeda/6b56052bca64fc6f55a28f8001dd775a744b95bf/lib/Control/Arrow/ArrEff.hs
haskell
# LANGUAGE Arrows # -- Arrow for Free language -------------------------------------------------- :t says: -> ArrEff m b c -> b -> m1 b1 TODO: what to do with next?
module Control.Arrow.ArrEff where import Prelude hiding ((.), id) import Control.Category import Control.Arrow import Control.Monad.Free type Prod eff b c = (c, ArrEff eff b c) newtype ArrEff eff b c = ArrEff (b -> eff (Prod eff b c)) instance Monad eff => Category (ArrEff eff) where id = ArrEff (\b -> return (b...
64606362ce535ad52d16b2a1f336ed69c84cc410daf95f9b878286d64ce22133
sjl/cl-blt
bearlibterminal.lisp
(in-package :bearlibterminal/high-level) ; (sb-int:set-floating-point-modes :traps nil) ;;;; Utils -------------------------------------------------------------------- (defun pr (val) (format t "~S~%" val) (finish-output) (values)) (defmacro -<> (expr &rest forms) "Thread the given forms, with `<>` as a plac...
null
https://raw.githubusercontent.com/sjl/cl-blt/ee69ac7bfb473e9cdd8c2d50d45ef288ef315ff3/src/high-level/bearlibterminal.lisp
lisp
(sb-int:set-floating-point-modes :traps nil) Utils -------------------------------------------------------------------- I am going to lose my fucking mind if I have to program lisp without a threading macro, but I don't want to add another dep to this library, so here we are. Colors ------------------------------...
(in-package :bearlibterminal/high-level) (defun pr (val) (format t "~S~%" val) (finish-output) (values)) (defmacro -<> (expr &rest forms) "Thread the given forms, with `<>` as a placeholder." `(let* ((<> ,expr) ,@(mapcar (lambda (form) (if (symbolp form) ...
54ee62bc281872b58b730f41ebb6c4e2fd7c626ae1834b557b6f0135bd5f1196
google/codeworld
Util.hs
{-# LANGUAGE OverloadedStrings #-} # OPTIONS_GHC -fno - warn - name - shadowing # Copyright 2020 The CodeWorld Authors . 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 o...
null
https://raw.githubusercontent.com/google/codeworld/77b0863075be12e3bc5f182a53fcc38b038c3e16/codeworld-server/src/Util.hs
haskell
# LANGUAGE OverloadedStrings #
# OPTIONS_GHC -fno - warn - name - shadowing # Copyright 2020 The CodeWorld Authors . 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 ...
6e295a9ff91b8f28e54e32075d9ea03a1616e672f62487bf163cb0d3416eee7a
luke-clifton/shh
Setup.hs
import Distribution.Extra.Doctest main = defaultMainWithDoctests "shh-tests"
null
https://raw.githubusercontent.com/luke-clifton/shh/2b1189032ac4394a4d98d694bec129793052ccb1/shh/Setup.hs
haskell
import Distribution.Extra.Doctest main = defaultMainWithDoctests "shh-tests"
00c471c0ab46a6d28549b94fd9f0becee3513aa8549cb3e40252b5bf162277b2
maravillas/spectator
core.clj
(ns spectator.core (:require [spectator.multimap :as multimap]) (:use [spectator map-util collection-util] [clojure.contrib logging])) (declare memo with-memo veto) (defn- updaters [map] (:updaters (meta map))) (defn- global-updaters [map] (:global-updaters (meta map))) (defn- observers [map] (:observers...
null
https://raw.githubusercontent.com/maravillas/spectator/17af6c70a874e8d08c63dd306a66307405df5340/src/spectator/core.clj
clojure
Public API ;;;;;;
(ns spectator.core (:require [spectator.multimap :as multimap]) (:use [spectator map-util collection-util] [clojure.contrib logging])) (declare memo with-memo veto) (defn- updaters [map] (:updaters (meta map))) (defn- global-updaters [map] (:global-updaters (meta map))) (defn- observers [map] (:observers...
de0993baa5d626e8b5472c470bd036c9d3ee5e4bcea93607e96c72c62599a395
Funky-Punky/FPV_SS22_Repetitorium
libFileServer.ml
open LibCommon open LibFileSystem open Event open Thread module type FileServer = sig type t exception FileNotFound val create_file_server : unit -> t val read : t -> read_request -> (file_content, exn) result val write : t -> write_request -> exn option val delete : t -> file_reference -> exn option v...
null
https://raw.githubusercontent.com/Funky-Punky/FPV_SS22_Repetitorium/99e0d0f63513d3b809d7b26bb1a511f28d1d71c3/solutions/file_server/src/file_server/libFileServer.ml
ocaml
open LibCommon open LibFileSystem open Event open Thread module type FileServer = sig type t exception FileNotFound val create_file_server : unit -> t val read : t -> read_request -> (file_content, exn) result val write : t -> write_request -> exn option val delete : t -> file_reference -> exn option v...
611069b6432a613f3a0e45b9cb269cd2e0b09584ce81057d52a3ce587b4180b5
fsbier/fp-testsuite
TestSuite5.hs
module TestSuite5 where import Test.Tasty import Test.Tasty.HUnit import Angabe5 gueltiger Wahlvorschlag gwv = [WW "John" "Smith" ABC, WW "Judy" "Hall" DEF, WW "John" "Doug" MNO] gwv2 = [WW "John" "Smith" ABC, WW "Judy" "Hall" DEF, WW "John" "Doug" MNO, WW "George" "Bush" MNO, ...
null
https://raw.githubusercontent.com/fsbier/fp-testsuite/b26f1168d95f6ab4a25515f1f561d7d3013eb5f3/TestSuite5.hs
haskell
A1 A3 A4 A7
module TestSuite5 where import Test.Tasty import Test.Tasty.HUnit import Angabe5 gueltiger Wahlvorschlag gwv = [WW "John" "Smith" ABC, WW "Judy" "Hall" DEF, WW "John" "Doug" MNO] gwv2 = [WW "John" "Smith" ABC, WW "Judy" "Hall" DEF, WW "John" "Doug" MNO, WW "George" "Bush" MNO, ...
924f779539c5925e598dc88af65964e92513f1ea738fc8c2af9a0a7487d0b273
expipiplus1/vulkan
VK_NVX_image_view_handle.hs
{-# language CPP #-} -- | = Name -- -- VK_NVX_image_view_handle - device extension -- -- == VK_NVX_image_view_handle -- -- [__Name String__] -- @VK_NVX_image_view_handle@ -- -- [__Extension Type__] -- Device extension -- -- [__Registered Extension Number__] -- 31 -- -- [__Revision__] 2 -- -- [__Extens...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/ebc0dde0bcd9cf251f18538de6524eb4f2ab3e9d/src/Vulkan/Extensions/VK_NVX_image_view_handle.hs
haskell
# language CPP # | = Name VK_NVX_image_view_handle - device extension == VK_NVX_image_view_handle [__Name String__] @VK_NVX_image_view_handle@ [__Extension Type__] Device extension [__Registered Extension Number__] 31 [__Revision__] [__Extension and Version Dependencies__] [__Contact__]...
2 - Requires support for Vulkan 1.0 - 2020 - 04 - 03 - , NVIDIA - , NVIDIA - , NVIDIA - Extending ' Vulkan . Core10.Enums . StructureType . StructureType ' : - ' Vulkan . Core10.Enums . StructureType . STRUCTURE_TYPE_IMAGE_VIEW_ADDRESS_PROPE...
7cfe00867e279449e6ff05bb01c1ab98842260851a9d856f2c50f948a2c8404f
GaloisInc/ivory-rtverification
GenSettersGetters.hs
{-# Language QuasiQuotes #-} # LANGUAGE TypeOperators # # LANGUAGE DataKinds # # LANGUAGE TemplateHaskell # Generates C instrumentation code for the list ' variables ' of ( name , type ) tuples . The files ' out / instrumented.{c , h } ' are generated . tuples. The files 'out/instrumented.{c,h}' are generate...
null
https://raw.githubusercontent.com/GaloisInc/ivory-rtverification/b4c50f85aea48be2fe26fb3310e01b68b3d163af/rtv-lib/src/Ivory/RTVerification/GenSettersGetters.hs
haskell
# Language QuasiQuotes # ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Template Haskell to generate setters and getters for variables. Make the type signatures Make the definitions ------------------------...
# LANGUAGE TypeOperators # # LANGUAGE DataKinds # # LANGUAGE TemplateHaskell # Generates C instrumentation code for the list ' variables ' of ( name , type ) tuples . The files ' out / instrumented.{c , h } ' are generated . tuples. The files 'out/instrumented.{c,h}' are generated. -} module Ivory.RTVerific...
589bc3be43a96a3fa9a9ef2adc8e4c530894183730eb1989aae5057a8d9966e6
philschonholzer/co2db
Static.hs
module Web.Controller.Static where import Web.Controller.Prelude import Web.View.Static.About import Web.View.Static.HowToContribute instance Controller StaticController where action HowToContributeAction = render HowToContributeView action AboutAction = render AboutView
null
https://raw.githubusercontent.com/philschonholzer/co2db/0aee096cb212c910db6f15b4551c35027949f2b1/Web/Controller/Static.hs
haskell
module Web.Controller.Static where import Web.Controller.Prelude import Web.View.Static.About import Web.View.Static.HowToContribute instance Controller StaticController where action HowToContributeAction = render HowToContributeView action AboutAction = render AboutView
f56dd491abae3a14294e759f7f7ae67bb58a1f7025bc130a2c444d0207d1cf34
AccelerateHS/accelerate-io
Test.hs
-- | -- Module : Test Copyright : [ 2017 .. 2020 ] -- License : BSD3 -- Maintainer : < > -- Stability : experimental Portability : non - portable ( GHC extensions ) -- module Test where import Test.Tasty import Test.Vector.Storable import Test.Vector.Unboxed main :: IO () main = defau...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate-io/d62e543a1156b63b242387ca8348836efca744f4/accelerate-io-vector/test/Test.hs
haskell
| Module : Test License : BSD3 Stability : experimental
Copyright : [ 2017 .. 2020 ] Maintainer : < > Portability : non - portable ( GHC extensions ) module Test where import Test.Tasty import Test.Vector.Storable import Test.Vector.Unboxed main :: IO () main = defaultMain $ testGroup "IO" [ test_vector_unboxed , test_vector_storable ] ...
d5c207d4008d8e1eec34fb47313b1868b2363ce5442557ecfe37816863aa5433
ocaml-multicore/tezos
managed_contract.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2019 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/src/proto_011_PtHangz2/lib_client/managed_contract.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2019 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN AN...
a2c70e7fd9a14374c58a1f651acff9b9c25c26c8a979d297d7871b9f6b160682
jacekschae/learn-re-frame-course-files
events.cljs
(ns app.inbox.events (:require [re-frame.core :refer [reg-event-db reg-event-fx]])) (reg-event-db :clear-notifications (fn [db [_ uid-inbox]] (let [uid (get-in db [:auth :uid])] (assoc-in db [:users uid :inboxes uid-inbox :notifications] 0)))) (reg-event-db :send-notification (fn [db [_ {:keys [notify i...
null
https://raw.githubusercontent.com/jacekschae/learn-re-frame-course-files/a86e6f14b89c595b4389b03459539a9544af4e1d/increments/48-message-card/src/app/inbox/events.cljs
clojure
(ns app.inbox.events (:require [re-frame.core :refer [reg-event-db reg-event-fx]])) (reg-event-db :clear-notifications (fn [db [_ uid-inbox]] (let [uid (get-in db [:auth :uid])] (assoc-in db [:users uid :inboxes uid-inbox :notifications] 0)))) (reg-event-db :send-notification (fn [db [_ {:keys [notify i...
c0931dd0270a468c77e49f509d20446c61e5d038e1edb58b927728df932b9411
racket/plot
pen-brush-hsv.rkt
#lang racket (require plot plot/utils racket/runtime-path rackunit "helpers.rkt") (define (rgb->hsv rgb) (match-define (list r g b) (map (λ (x) (/ x 255)) rgb)) (define mx (max r g b)) (define mn (min r g b)) (define c (- mx mn)) (define h (* 60 (cond [(zero? c) 0] ...
null
https://raw.githubusercontent.com/racket/plot/c4126001f2c609e36c3aa12f300e9c673ab1a806/plot-test/plot/tests/pen-brush-hsv.rkt
racket
#lang racket (require plot plot/utils racket/runtime-path rackunit "helpers.rkt") (define (rgb->hsv rgb) (match-define (list r g b) (map (λ (x) (/ x 255)) rgb)) (define mx (max r g b)) (define mn (min r g b)) (define c (- mx mn)) (define h (* 60 (cond [(zero? c) 0] ...
01e622d002940619621bfe119ac16d93ea2925065043b5c22c4a39f3b74fedf5
workframers/catchpocket
queries.clj
(ns catchpocket.test.queries (:require [clojure.test :refer :all] [catchpocket.test-util :as tu] [clojure.tools.logging :as log])) (use-fixtures :once tu/once) (deftest test-query-generation (testing "Fallback to type name" (let [schema (tu/generate-schema :capitalize)] (is (= #{...
null
https://raw.githubusercontent.com/workframers/catchpocket/cf7c4244e7e2547a2408fe08f5d26e7f0d589dba/test/catchpocket/test/queries.clj
clojure
(ns catchpocket.test.queries (:require [clojure.test :refer :all] [catchpocket.test-util :as tu] [clojure.tools.logging :as log])) (use-fixtures :once tu/once) (deftest test-query-generation (testing "Fallback to type name" (let [schema (tu/generate-schema :capitalize)] (is (= #{...
c42a885901bb208b4f65a10f405d3a647f32346e2fa9e6845b7b6fdbfb51f45c
drewolson/aoc-hs
Day09Spec.hs
module Aoc.Year2022.Day09Spec ( spec, ) where import Aoc.Year2022.Day09 qualified as Day09 import Test.Hspec (Spec, it, shouldBe) import Text.RawString.QQ (r) input :: String input = [r|R 4 U 4 L 3 D 1 R 4 D 1 L 5 R 2 |] input2 :: String input2 = [r|R 5 U 8 L 8 D 3 R 17 D 10 L 25 U 20 |] spec :: Spec spec =...
null
https://raw.githubusercontent.com/drewolson/aoc-hs/2f1f486cb450ad6b044127bbcb983c73eb931c8c/aoc-year2022/test/Aoc/Year2022/Day09Spec.hs
haskell
module Aoc.Year2022.Day09Spec ( spec, ) where import Aoc.Year2022.Day09 qualified as Day09 import Test.Hspec (Spec, it, shouldBe) import Text.RawString.QQ (r) input :: String input = [r|R 4 U 4 L 3 D 1 R 4 D 1 L 5 R 2 |] input2 :: String input2 = [r|R 5 U 8 L 8 D 3 R 17 D 10 L 25 U 20 |] spec :: Spec spec =...
89e476186e13235aac306ab13a5045c2926138b72831899c0b9edeb9db0ea1b7
patrickt/possession
SimpleResponder.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE DataKinds # {-# LANGUAGE GADTs #-} # LANGUAGE ImportQualifiedPost # # LANGUAGE StandaloneKindSignatures # # LANGUAGE TemplateHaskell # # LANGUAGE UndecidableInstances # module UI.SimpleResponder ( Responder (..), -- try, -- recurse, runResponder , -- whenMatc...
null
https://raw.githubusercontent.com/patrickt/possession/deca284c15dfec2624e792ad76b500c3a1583aa9/src/UI/SimpleResponder.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE GADTs # try, recurse, whenMatches, Alternative (..), guard, emitting, overState, respond, upon, (>>>), ensuring, arr, runResponder :: Responder a => Vty.Event -> a -> Maybe ([GameAction], a) respond :: Responder b => Vty.Event -> b -> Maybe b
# LANGUAGE DataKinds # # LANGUAGE ImportQualifiedPost # # LANGUAGE StandaloneKindSignatures # # LANGUAGE TemplateHaskell # # LANGUAGE UndecidableInstances # module UI.SimpleResponder ( Responder (..), runResponder , within, ) where import Control.Applicative import Control.Carrier.Reader import Control.Cate...
ba6c101991f6abf7f7b99592c106b4b0571e1b62293aad0656223040fbec216b
garrigue/lablgtk
text-demo.ml
(**************************************************************************) Lablgtk - Examples (* *) (* This code is in the public domain. *) (* You may f...
null
https://raw.githubusercontent.com/garrigue/lablgtk/504fac1257e900e6044c638025a4d6c5a321284c/examples/text/text-demo.ml
ocaml
************************************************************************ This code is in the public domain. You may freely copy parts of it in your application. ...
Lablgtk - Examples let create_tags (buffer:GText.buffer) = buffer#create_tag ~name:"heading" [`WEIGHT `BOLD; `SIZE (15*Pango.scale)]; buffer#create_tag ~name:"italic" [`STYLE `ITALIC]; buffer#create_tag ~name:"bold" [`WEIGHT `BOLD]; buffer#create_ta...
c89f5ba8f1d7902b6b4143c244247db2aed7f2f0775cc529effaa2aaa6eeb293
xmonad/xmonad-contrib
Warp.hs
----------------------------------------------------------------------------- -- | Module : XMonad . Actions . Warp -- Description : Warp the pointer to a given window or screen. -- Copyright : (c) -- License : BSD3-style (see LICENSE) -- -- Maintainer : -- Stability : unstable -- Portability ...
null
https://raw.githubusercontent.com/xmonad/xmonad-contrib/571d017b8259340971db1736eedc992a54e9022c/XMonad/Actions/Warp.hs
haskell
--------------------------------------------------------------------------- | Description : Warp the pointer to a given window or screen. Copyright : (c) License : BSD3-style (see LICENSE) Maintainer : Stability : unstable Portability : unportable Warp the pointer to a given window or screen....
Module : XMonad . Actions . Warp module XMonad.Actions.Warp ( banish, banishScreen, Corner(..), warpToScreen, warpToWindow ) where import XMonad.Pr...
a1cf6582dba5c070fdec4e76c8a4e35af906fc282683650ba92e52df53152b8e
CommonDoc/common-doc
operations.lisp
(in-package :cl-user) (defpackage common-doc-test.ops (:use :cl :fiveam :common-doc) (:import-from :common-doc.ops :with-document-traversal :collect-figures :collect-images :collect-tables :collect-external-links :node-e...
null
https://raw.githubusercontent.com/CommonDoc/common-doc/66cabe67241449a1c0e2cbdc955a60c9439869e6/t/operations.lisp
lisp
(in-package :cl-user) (defpackage common-doc-test.ops (:use :cl :fiveam :common-doc) (:import-from :common-doc.ops :with-document-traversal :collect-figures :collect-images :collect-tables :collect-external-links :node-e...
7c28cc928f46607a5deaa10b55fe30e2280f7824b79e6da40fc96318a47a63e9
informatimago/lisp
run.lisp
(eval-when (:compile-toplevel :load-toplevel :execute) (setf *readtable* (copy-readtable nil))) (in-package "COMMON-LISP-USER") (defparameter *compile-linc-c-files* t) (load (make-pathname :name "generate" :type "lisp" :version nil :defaults (or *load-truename* ...
null
https://raw.githubusercontent.com/informatimago/lisp/571af24c06ba466e01b4c9483f8bb7690bc46d03/languages/linc/run.lisp
lisp
(cc (translate-linc-file "test-expressions.sexpc" :print t :verbose t) :output "test-expressions.o" :to :object :options '("-Werror" "-Wall"))
(eval-when (:compile-toplevel :load-toplevel :execute) (setf *readtable* (copy-readtable nil))) (in-package "COMMON-LISP-USER") (defparameter *compile-linc-c-files* t) (load (make-pathname :name "generate" :type "lisp" :version nil :defaults (or *load-truename* ...
9d19e7978b40afb271c3a5d9075bf850afdb3b2566d7ca5560bdedd50441597d
fission-codes/fission
Class.hs
module Fission.Web.Server.User.Modifier.Class ( Modifier (..) , Errors' ) where import qualified Crypto.PubKey.RSA as RSA import Servant.Server import qualified Network.IPFS.Add.Error as IPFS.Pin import Network.IPFS.CID.Types impo...
null
https://raw.githubusercontent.com/fission-codes/fission/11d14b729ccebfd69499a534445fb072ac3433a3/fission-web-server/library/Fission/Web/Server/User/Modifier/Class.hs
haskell
module Fission.Web.Server.User.Modifier.Class ( Modifier (..) , Errors' ) where import qualified Crypto.PubKey.RSA as RSA import Servant.Server import qualified Network.IPFS.Add.Error as IPFS.Pin import Network.IPFS.CID.Types impo...