_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
b3219feb977df6c6fa2d54e9e338891410e9d81229c34a54639c8b27ddf8f547
craigl64/clim-ccl
instclimxm.lisp
;; -*- mode: common-lisp; package: system -*- ;; ;; ;; See the file LICENSE for the full license governing this code. ;; ;; Load the Motif version of CLIM ;; (in-package :system) (load-application (require :climxm) :devel system::*devel*) #+ics (load-application (require :climwnn) :devel system::*devel*) (forma...
null
https://raw.githubusercontent.com/craigl64/clim-ccl/301efbd770745b429f2b00b4e8ca6624de9d9ea9/instclimxm.lisp
lisp
-*- mode: common-lisp; package: system -*- See the file LICENSE for the full license governing this code.
Load the Motif version of CLIM (in-package :system) (load-application (require :climxm) :devel system::*devel*) #+ics (load-application (require :climwnn) :devel system::*devel*) (format t "~&; Finished loading CLIM XM~%") (force-output)
682e9327f5185889a5c59c1133f1c4e21a75d1c236ddbc00029467c06d82f71f
adnelson/simple-nix
SpecHelper.hs
# LANGUAGE NoImplicitPrelude # module SpecHelper ( module Test.Hspec , module Nix.Common , module Nix.Expr , module Nix.Parser , shouldBeM, shouldBeR, shouldHaveErr, shouldBeMR, shouldBeJ , shouldBeN ) where import Test.Hspec import Test.Hspec.Expectations.Contrib import Nix.Common hiding (...
null
https://raw.githubusercontent.com/adnelson/simple-nix/ea70f94a602637de90d3750314ff767b4540171a/test/SpecHelper.hs
haskell
argument. | Asserts that the argument is `Nothing`. argument. | Asserts that the argument is a `Left` value, containing something which when `Show`n contains the provided substring. ^ Should be a `Left` value. ^ Error should contain this. | Runs `shouldBeR` on the result of an IO action.
# LANGUAGE NoImplicitPrelude # module SpecHelper ( module Test.Hspec , module Nix.Common , module Nix.Expr , module Nix.Parser , shouldBeM, shouldBeR, shouldHaveErr, shouldBeMR, shouldBeJ , shouldBeN ) where import Test.Hspec import Test.Hspec.Expectations.Contrib import Nix.Common hiding (...
552661b971b646045857161d841b84982231cb5447750cfa1a8b265509c50561
freizl/dive-into-haskell
Main.hs
module Main where import Control.Monad.IO.Class import GHC.Paths import GHC.IO.Handle.FD import GHC import HscTypes import SimplStg import SimplCore import CorePrep import CoreToStg import DynFlags import TyCon import Pretty import Outputable import System.IO import StgSyn import Name import qualified Data.ByteString....
null
https://raw.githubusercontent.com/freizl/dive-into-haskell/b18a6bfe212db6c3a5d707b4a640170b8bcf9330/codes/stg-to-js/src/Main.hs
haskell
, ghcLink = LinkInMemory ModuleSummary DesugaredModule see note in source code: but we don't generate any code for newtypes run core2core passes
module Main where import Control.Monad.IO.Class import GHC.Paths import GHC.IO.Handle.FD import GHC import HscTypes import SimplStg import SimplCore import CorePrep import CoreToStg import DynFlags import TyCon import Pretty import Outputable import System.IO import StgSyn import Name import qualified Data.ByteString....
edc50eca673c59d5d774eb4eedb4ea8817fc2a37105882110cce7fb6d78979ee
shriphani/pegasus
dsl.clj
(ns pegasus.dsl "DSL for easy extractors and stuff" (:require [net.cgrand.enlive-html :as html] [org.bovinegenius.exploding-fish :as uri] [pegasus.process :as process]) (:import [java.io StringReader])) (def default-extractor-options {:when identity :at-selector [:a] :follow :href...
null
https://raw.githubusercontent.com/shriphani/pegasus/0ffbce77e596ae0af8d5ae9ffb85a8f1fa66914b/src/pegasus/dsl.clj
clojure
(ns pegasus.dsl "DSL for easy extractors and stuff" (:require [net.cgrand.enlive-html :as html] [org.bovinegenius.exploding-fish :as uri] [pegasus.process :as process]) (:import [java.io StringReader])) (def default-extractor-options {:when identity :at-selector [:a] :follow :href...
a038ce896b5b2e10cf49999d251c38ae30423fd00b006596be838477af121cb4
konn/type-natural
Natural.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE DataKinds # # LANGUAGE EmptyCase # # LANGUAGE ExplicitNamespaces # # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} # LANGUAGE InstanceSigs # # LANGUAGE PolyKinds # {-# LANGUAGE RankNTypes #-} # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApp...
null
https://raw.githubusercontent.com/konn/type-natural/bcdd9ff0bf8d74a7fbecc49ef063c4e440ea417b/src/Data/Type/Natural.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE GADTs # # LANGUAGE RankNTypes # # OPTIONS_GHC -fplugin GHC.TypeLits.Normalise # # OPTIONS_GHC -fplugin GHC.TypeLits.Presburger # * Type-level naturals *** Pattens and Views ** Promtoed and singletonised operations *** Arithmetic *** Ordering * QuasiQuotes * Singletons for ...
# LANGUAGE DataKinds # # LANGUAGE EmptyCase # # LANGUAGE ExplicitNamespaces # # LANGUAGE FlexibleContexts # # LANGUAGE InstanceSigs # # LANGUAGE PolyKinds # # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE Undecida...
2c29f331d39747e3d234a10734356b71c137d902f3dcd387eb86b9d94de499fe
fission-codes/fission
Class.hs
module Fission.Web.Server.IPFS.Cluster.Class (MonadIPFSCluster (..)) where -- 🧱 import RIO.NonEmpty -- 🌐 import Servant.API import Servant.Client import qualified Servant.Client.Streaming as Stream ⚛ ️ import Fission.Prelude class MonadIO m => MonadIPFSCluster m a whe...
null
https://raw.githubusercontent.com/fission-codes/fission/11d14b729ccebfd69499a534445fb072ac3433a3/fission-web-server/library/Fission/Web/Server/IPFS/Cluster/Class.hs
haskell
🧱 🌐
module Fission.Web.Server.IPFS.Cluster.Class (MonadIPFSCluster (..)) where import RIO.NonEmpty import Servant.API import Servant.Client import qualified Servant.Client.Streaming as Stream ⚛ ️ import Fission.Prelude class MonadIO m => MonadIPFSCluster m a where runClus...
799e6b4b1f0d2721772b6dce18fd76713dada8d0c2c8b29baf1402834432c5c1
antono/guix-debian
bison.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2012 , 2013 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU 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 t...
null
https://raw.githubusercontent.com/antono/guix-debian/85ef443788f0788a62010a942973d4f7714d10b4/gnu/packages/bison.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2012 , 2013 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu packages bison) #:use-module (guix licenses) #:use-module (guix packages) #:use-m...
1d459f2f13fa2b947c44bdc45088386e5c2db1a5f9f04c90883e1d3877d4b004
semperos/webdriver-logic
templates.clj
(ns webdriver-logic.test.example-app.templates (:use net.cgrand.enlive-html)) (deftemplate page "page.html" [styles scripts cnt] [:div#content] (content cnt)) (defsnippet welcome-page "welcome.html" [:body :> any-node] []) (defsnippet clojure-page "clojure.html" [:body :> any-node] []) (defsnippet example-form ...
null
https://raw.githubusercontent.com/semperos/webdriver-logic/d6fa8795ebf9e023d3f6baffbdba27cdf784368f/test/webdriver_logic/test/example_app/templates.clj
clojure
(ns webdriver-logic.test.example-app.templates (:use net.cgrand.enlive-html)) (deftemplate page "page.html" [styles scripts cnt] [:div#content] (content cnt)) (defsnippet welcome-page "welcome.html" [:body :> any-node] []) (defsnippet clojure-page "clojure.html" [:body :> any-node] []) (defsnippet example-form ...
8e80ae01dcbad6e43f22271a3f2e38b6463026715bdc7614f035de51d6cfda2b
haskell-tools/haskell-tools
Definitions.hs
{-# LANGUAGE TypeFamilies , ConstraintKinds , RankNTypes #-} module Definitions where type EqRel a b = a ~ b type TrfAB a b = a ~ b => a -> b type family F a :: * where F Int = Integer F Char = String F a = a type HiddenEqRel a b = EqRel a b type ComplexEqRelType a = ...
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/builtin-refactorings/test/ExtensionOrganizerTest/TypeFamiliesTest/Definitions.hs
haskell
# LANGUAGE TypeFamilies , ConstraintKinds , RankNTypes #
module Definitions where type EqRel a b = a ~ b type TrfAB a b = a ~ b => a -> b type family F a :: * where F Int = Integer F Char = String F a = a type HiddenEqRel a b = EqRel a b type ComplexEqRelType a = Eq a => a -> a -> (forall c . HiddenEqRel a c => c -> c -> Bool) -> Bool eqRelName :: EqRel a...
956aca34e68fa3e34e246d716cb0e61b81bf592bda3772864a77a938d2da32af
electric-sql/vaxine
commit_hooks_SUITE.erl
%% ------------------------------------------------------------------- %% Copyright < 2013 - 2018 > < Technische Universität Kaiserslautern , Germany , France Universidade NOVA de Lisboa , Portugal Université catholique de Louvain ( UCL ) , Belgique , Portugal %% > %% This file is provided...
null
https://raw.githubusercontent.com/electric-sql/vaxine/872a83ea8d4935a52c7b850bb17ab099ee9c346b/apps/antidote/test/singledc/commit_hooks_SUITE.erl
erlang
------------------------------------------------------------------- > Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either expressed or implied. See the License for the specific language governing perm...
Copyright < 2013 - 2018 > < Technische Universität Kaiserslautern , Germany , France Universidade NOVA de Lisboa , Portugal Université catholique de Louvain ( UCL ) , Belgique , Portugal This file is provided to you under the Apache License , except in compliance with the License . You...
622ce321f567bce80837e9e7e785cc82a8ae9da29028b14bd0bbbce827c75d2b
piranha/ecomspark
cart.clj
(ns ecomspark.views.cart (:require [hiccup.core :as hi])) (defn HeaderCart [opts] (hi/html (if opts [:a#cart.btn.btn-link {:href "/cart" :ts-swap-push "#cart"} (when (pos? (:count opts)) [:span.chip (:count opts)]) "Cart"] [:a#cart.btn.b...
null
https://raw.githubusercontent.com/piranha/ecomspark/17de72141d9620b25aa9fe2286b503a104a476a3/src/ecomspark/views/cart.clj
clojure
(ns ecomspark.views.cart (:require [hiccup.core :as hi])) (defn HeaderCart [opts] (hi/html (if opts [:a#cart.btn.btn-link {:href "/cart" :ts-swap-push "#cart"} (when (pos? (:count opts)) [:span.chip (:count opts)]) "Cart"] [:a#cart.btn.b...
ea0a04e15d79aaf30d1fee3d82a4015bb6cfd5fddd5cb43fd39723cdfe74c08d
whalliburton/academy
phonetic-alphabet.lisp
(in-package :academy) ;; (defparameter *nato-phonetic-alphabet* '((#\a alfa) (#\b bravo) (#\c charlie) (#\d delta) (#\e echo) (#\f foxtrot) (#\g golf) (#\h hotel) (#\i india) (#\j juliet) (#\k kilo) (#\l lima) (#\m mike) (#\n november) (#\o oscar) (#\p pa...
null
https://raw.githubusercontent.com/whalliburton/academy/87a1a13ffbcd60d8553e42e647c59486c761e8cf/phonetic-alphabet.lisp
lisp
(in-package :academy) (defparameter *nato-phonetic-alphabet* '((#\a alfa) (#\b bravo) (#\c charlie) (#\d delta) (#\e echo) (#\f foxtrot) (#\g golf) (#\h hotel) (#\i india) (#\j juliet) (#\k kilo) (#\l lima) (#\m mike) (#\n november) (#\o oscar) (#\p papa) ...
59c49d1b1186f3ccc7a7c70d5d0fb1f52e725735b744c35d6400f92c9fa913d8
brendanhay/gogol
Auth.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE KindSignatures # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # -- | Module ...
null
https://raw.githubusercontent.com/brendanhay/gogol/8cbceeaaba36a3c08712b2e272606161500fbe91/lib/gogol/src/Gogol/Internal/Auth.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE OverloadedStrings # | Stability : provisional | The supported credential mechanisms. at @http:\/\/169.254.169.254@. | Obtain and refresh access tokens using the specified client secret and authorization code obtained from. See the < OAuth2 Installed Application> document...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE KindSignatures # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # Module : . Internal . Auth Copyright : ( c ) 2015 - 2022 License ...
5b1ad281117fb168bb90de4de67efe4a0c38be30da1b54a1595aec93d729c8d4
sneerteam/sneer
invite_test.clj
(ns sneer.invite-test [:require [midje.sweet :refer [facts fact]] [sneer.midje-util :refer :all] [sneer.network-sim :as net] [sneer.sneer-test-util :refer :all] [sneer.core2 :refer :all] [sneer.streem :refer :all]]) (facts "Invite" (let [network (net/network-sim) neide-ui (atom nil)...
null
https://raw.githubusercontent.com/sneerteam/sneer/b093c46321a5a42ae9418df427dbb237489b7bcb/core2/test/sneer/invite_test.clj
clojure
(ns sneer.invite-test [:require [midje.sweet :refer [facts fact]] [sneer.midje-util :refer :all] [sneer.network-sim :as net] [sneer.sneer-test-util :refer :all] [sneer.core2 :refer :all] [sneer.streem :refer :all]]) (facts "Invite" (let [network (net/network-sim) neide-ui (atom nil)...
bab929159ed644dc4e839f5c60b742744a5c8dfa1e26b986d7bc1e8f63d288fe
fgalassi/cs61a-sp11
assert.scm
(define (assert comparison actual expected msg) (if (not (comparison actual expected)) (display (format #f "ERROR! ~S: actual ~A expected ~A\n" msg actual expected))))
null
https://raw.githubusercontent.com/fgalassi/cs61a-sp11/66df3b54b03ee27f368c716ae314fd7ed85c4dba/projects/blackjack/normal/assert.scm
scheme
(define (assert comparison actual expected msg) (if (not (comparison actual expected)) (display (format #f "ERROR! ~S: actual ~A expected ~A\n" msg actual expected))))
76197838c5746270e681d052e44ecbf283ff2230fbc02de4c0b626be0cb8bdc1
bobzhang/ocaml-book
test_pa_abstract.ml
type t = semi opaque int (** camlp4o -I _build pa_abstract.cmo test_pa_abstract.ml -abstract -printer o type t ocamlbuild -pp 'camlp4o -I _build pa_abstract.cmo -abstract ' test_pa_abstract.cmo *)
null
https://raw.githubusercontent.com/bobzhang/ocaml-book/09a575b0d1fedfce565ecb9a0ae9cf0df37fdc75/camlp4/examples/test_pa_abstract.ml
ocaml
* camlp4o -I _build pa_abstract.cmo test_pa_abstract.ml -abstract -printer o type t ocamlbuild -pp 'camlp4o -I _build pa_abstract.cmo -abstract ' test_pa_abstract.cmo
type t = semi opaque int
82e29e2c5be2ccc7c65aa3d9790c0d1bc948791f667d02554fd8f930e8d900fb
unclebob/AdventOfCode2021
core_spec.clj
(ns day8.core-spec (:require [speclj.core :refer :all] [day8.core :refer :all])) (describe "parse input" (it "parses a line" (should= [["acedgfb" "cdfbe" "gcdfa" "fbcad" "dab" "cefabd" "cdfgeb" "eafb" "cagedb" "ab"] ["cdfeb" "fcadb" "cdfeb" "cdbaf"]] (parse-line "acedgfb ...
null
https://raw.githubusercontent.com/unclebob/AdventOfCode2021/df4b2c1bc7a2c724a95740ea2cba34fdc81476a4/day8/spec/day8/core_spec.clj
clojure
(ns day8.core-spec (:require [speclj.core :refer :all] [day8.core :refer :all])) (describe "parse input" (it "parses a line" (should= [["acedgfb" "cdfbe" "gcdfa" "fbcad" "dab" "cefabd" "cdfgeb" "eafb" "cagedb" "ab"] ["cdfeb" "fcadb" "cdfeb" "cdbaf"]] (parse-line "acedgfb ...
1d1db979fef154ed20970052226260a369c0170e66348a06860c46995c2a300a
static-analysis-engineering/codehawk
cHCilSumTypeSerializer.ml
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk C Analyzer Parser using CIL Author : ------------------------------------------------------------------------------ The MIT License ( MIT...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/d2e83cef7430defdc4cf30fc1495fe4ff64d9f9d/CodeHawk/CHC/cchcil/cHCilSumTypeSerializer.ml
ocaml
cil chutil
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk C Analyzer Parser using CIL Author : ------------------------------------------------------------------------------ The MIT License ( MIT...
0633e517a7bc4885446b7b487a31c0d5e4b35bf614c1ec3175b8cc8163cbc6a4
zack-bitcoin/verkle
fr_test.erl
-module(fr_test). -export([test/1]). test(1) -> io:fwrite("test pow\n"), Q = fr:prime(), <<A0:256>> = crypto:strong_rand_bytes(32), A0 = 10 , A = A0 rem Q, <<B0:256>> = crypto:strong_rand_bytes(32), = 10 , B = B0 rem Q, AE = fr:encode(A), New = fr:decode(fr:pow(AE, <<B:256/little>>)), ...
null
https://raw.githubusercontent.com/zack-bitcoin/verkle/46bf69f17170a71829f9243faea06ee42f224687/src/crypto/fr_test.erl
erlang
New = decode(fr:pow(AE, B)), reverse_bytes(<<B:256>>))), reverse_bytes(<<B:256>>))),
-module(fr_test). -export([test/1]). test(1) -> io:fwrite("test pow\n"), Q = fr:prime(), <<A0:256>> = crypto:strong_rand_bytes(32), A0 = 10 , A = A0 rem Q, <<B0:256>> = crypto:strong_rand_bytes(32), = 10 , B = B0 rem Q, AE = fr:encode(A), New = fr:decode(fr:pow(AE, <<B:256/little>>)), ...
b1cea63324f13a092cf7411f98f5006d2af8a787bdb0010ade8041fee9d7ed7a
mtesseract/nakadi-client
Subscriptions.hs
| Module : Network . . Types . Subscriptions Description : Nakadi Service Subscription Types Copyright : ( c ) 2018 , 2019 License : : Stability : experimental Portability : POSIX This module exposes types , which are related to consumption of subscriptions , which are not mod...
null
https://raw.githubusercontent.com/mtesseract/nakadi-client/f8eef3ac215459081b01b0b48f0b430ae7701f52/src/Network/Nakadi/Types/Subscriptions.hs
haskell
| Module : Network . . Types . Subscriptions Description : Nakadi Service Subscription Types Copyright : ( c ) 2018 , 2019 License : : Stability : experimental Portability : POSIX This module exposes types , which are related to consumption of subscriptions , which are not mod...
70bb7d796ddf2b5ef2d9b934541ff80d9dcc6e4ebca85b1813f63861844641a9
spurious/sagittarius-scheme-mirror
sboyer.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; File: sboyer.sch Description : The benchmark Author : Created : 5 - Apr-85 Modified : 10 - Apr-85 14:52:20 ( ) 22 - Jul-87 ( ) 2 - Jul-88 ( -- distinguished # f a...
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/bench/gambit-benchmarks/sboyer.scm
scheme
File: sboyer.sch rewrote to eliminate property lists, and added Language: Scheme Status: Public Domain "sharing cons". contained several bugs that are corrected here. These bugs are discussed The benchmark now returns a boolean result. benchmark, but is ...
Description : The benchmark Author : Created : 5 - Apr-85 Modified : 10 - Apr-85 14:52:20 ( ) 22 - Jul-87 ( ) 2 - Jul-88 ( -- distinguished # f and the empty list ) 13 - Feb-97 ( -- fixed bugs in unifier and rules , ...
1423e43073c3bbf0069e59a10b56fafd921a06464146b6f90b3ed4a41127303f
GaloisInc/halfs
Inode.hs
{-# LANGUAGE Rank2Types, FlexibleContexts #-} module Tests.Inode ( qcProps ) where import Control.Concurrent import Data.ByteString (ByteString) import Prelude hiding (read) import Test.QuickCheck hiding (numTests) import Test.QuickCheck.Monadic import qualified Data.ByteString as BS import qualified Control....
null
https://raw.githubusercontent.com/GaloisInc/halfs/2eb16fb3744e6221ee706b6bd290681a08c18048/test/src/Tests/Inode.hs
haskell
# LANGUAGE Rank2Types, FlexibleContexts # import Debug.Trace ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Property Implementations Note that in many of these properties we compare timestamps using < and ...
module Tests.Inode ( qcProps ) where import Control.Concurrent import Data.ByteString (ByteString) import Prelude hiding (read) import Test.QuickCheck hiding (numTests) import Test.QuickCheck.Monadic import qualified Data.ByteString as BS import qualified Control.Exception as CE import Halfs.BlockMap import ...
7941c91b7e108098ce0b72a7e628fa1a3b33c8b545c4ce09750ea8334283c676
silviucpp/elocaltime
elocaltime_nif.erl
-module(elocaltime_nif). -define(NOT_LOADED, not_loaded(?LINE)). -on_load(load_nif/0). -export([ new_timezone/1, absolute_lookup/2, civil_lookup/2, format/2, format/3 ]). %% nif functions load_nif() -> SoName = get_priv_path(?MODULE), io:format(<<"Loading library: ~p ~n">>, [SoName]), ...
null
https://raw.githubusercontent.com/silviucpp/elocaltime/274a2f78fdc394cd3450c9c247ffbf6d486a48b3/src/elocaltime_nif.erl
erlang
nif functions
-module(elocaltime_nif). -define(NOT_LOADED, not_loaded(?LINE)). -on_load(load_nif/0). -export([ new_timezone/1, absolute_lookup/2, civil_lookup/2, format/2, format/3 ]). load_nif() -> SoName = get_priv_path(?MODULE), io:format(<<"Loading library: ~p ~n">>, [SoName]), ok = erlang:lo...
c76771145cbca3364ec5274e0d031d882c26c64c69af22c72e4300b641225f77
borodust/cl-flow
utils.lisp
(cl:in-package :cl-flow) #+flow-optimized (alexandria:define-constant +optimize-form+ '(optimize (speed 3) (safety 1) (debug 0)) :test #'equal) #-flow-optimized (alexandria:define-constant +optimize-form+ '(optimize) :test #'equal)
null
https://raw.githubusercontent.com/borodust/cl-flow/bb95fda8bdeb35723f71edcdb88cef754dbcf0cc/src/utils.lisp
lisp
(cl:in-package :cl-flow) #+flow-optimized (alexandria:define-constant +optimize-form+ '(optimize (speed 3) (safety 1) (debug 0)) :test #'equal) #-flow-optimized (alexandria:define-constant +optimize-form+ '(optimize) :test #'equal)
add792c878ce543cf4edf520e99b4ccb9210bb202e4338bb770f34f7dc3fefe3
guilespi/clj-zipkin
tracer.clj
(ns clj-zipkin.tracer (:require [thrift-clj.core :as thrift] [clojure.data.codec.base64 :as b64] [clj-scribe :as scribe] [thrift-clj.gen.core :as c] [thrift-clj.thrift.types :as thrift-types] [clj-time.core :as time] [clj-time.coerce :as time-coe...
null
https://raw.githubusercontent.com/guilespi/clj-zipkin/e76766d29f44e0c1297ff189371b8726fbff4616/src/clj_zipkin/tracer.clj
clojure
the following *hack* is to avoid binary annotations being stringified by the type wrapper, problem is caused because public ByteBuffer value; // required by a caritative soul. Now we just avoid string wrapping hijacking the mm side effectish step According to tryfer sources, zipkin has trouble recording traces wit...
(ns clj-zipkin.tracer (:require [thrift-clj.core :as thrift] [clojure.data.codec.base64 :as b64] [clj-scribe :as scribe] [thrift-clj.gen.core :as c] [thrift-clj.thrift.types :as thrift-types] [clj-time.core :as time] [clj-time.coerce :as time-coe...
27d9f3bf4fde46bbbd6f9c33b61f4a2e2a8800c1ccb9a08956238b2a962b8298
OCamlPro/ocp-indent
multiline.ml
let _ = (* multiline-comments can be troublesome: let x = let y = f z in y indented code should be kept as is *) () let _ = (* what about multi-line comments that don't start a line ? *) w let s1 = "a b c d e f g h i j k" let s2 = "a b c ...
null
https://raw.githubusercontent.com/OCamlPro/ocp-indent/9e26c0a2699b7076cebc04ece59fb354eb84c11c/tests/passing/multiline.ml
ocaml
multiline-comments can be troublesome: let x = let y = f z in y indented code should be kept as is what about multi-line comments that don't start a line ?
let _ = () w let s1 = "a b c d e f g h i j k" let s2 = "a b c d \ e f g h \ i j k\ \ l" let s3 = "a b c d \ e f g h i j k \ l m"
9f714061acb8d4a20dfc0848937a886887fb1ae866bf4365784868557ab36f28
input-output-hk/cardano-ledger-byron
Limits.hs
{-# LANGUAGE TemplateHaskell #-} # LANGUAGE TypeApplications # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE GeneralizedNewtypeDeriving # module Test.Cardano.Crypto.Limits ( tests ) where import Cardano.Prelude import Test.Cardano.Prelude im...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger-byron/d309449e6c303a9f0dcc8dcf172df6f0b3195ed5/crypto/test/Test/Cardano/Crypto/Limits.hs
haskell
# LANGUAGE TemplateHaskell # # LANGUAGE OverloadedStrings # ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------- Limit -...
# LANGUAGE TypeApplications # # LANGUAGE ScopedTypeVariables # # LANGUAGE GeneralizedNewtypeDeriving # module Test.Cardano.Crypto.Limits ( tests ) where import Cardano.Prelude import Test.Cardano.Prelude import Crypto.Hash (Blake2b_224, Blake2b_256) import qualified Data.ByteString as BS impo...
15be2d4faaed80849270b4744b3fbfd0506adeff51c52a1a3281787728aa5173
rems-project/cerberus
lemmata.ml
module IT=IndexTerms module BT = BaseTypes module LS = LogicalSorts module LRT = LogicalReturnTypes module RT = ReturnTypes module AT = ArgumentTypes module LAT = LogicalArgumentTypes module TE = TypeErrors module Loc = Locations module LP = LogicalPredicates module LC = LogicalConstraints module StringSet = Set.Make(...
null
https://raw.githubusercontent.com/rems-project/cerberus/a4893196bd7bde4f5cd5d9da16d85f38a5d4c6d0/backend/cn/lemmata.ml
ocaml
Some things are defined on-demand, so this state monad stores the set of such things defined and the contents of the various setup sections they may be defined into. attempt to coerce out the resources in this function type. we can do this for some lemmas where resources are passed and returned unchanged...
module IT=IndexTerms module BT = BaseTypes module LS = LogicalSorts module LRT = LogicalReturnTypes module RT = ReturnTypes module AT = ArgumentTypes module LAT = LogicalArgumentTypes module TE = TypeErrors module Loc = Locations module LP = LogicalPredicates module LC = LogicalConstraints module StringSet = Set.Make(...
0c334f99acb9a18494e3280f4e7fd91a6ef88c4c0972a7b722329153b1b930d1
crategus/cl-cffi-gtk
rtest-gdk-visual.lisp
(def-suite gdk-visual :in gdk-suite) (in-suite gdk-visual) ;;; --- Types and Values ------------------------------------------------------- ;;; GdkVisualType (test gdk-visual-type ;; Check the type (is (g-type-is-enum "GdkVisualType")) ;; Check the type initializer (is (eq (gtype "GdkVisualType") ...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/7f5a09f78d8004a71efa82794265f2587fff98ab/test/rtest-gdk-visual.lisp
lisp
--- Types and Values ------------------------------------------------------- GdkVisualType Check the type Check the type initializer Check the registered name Check the names Check the values Check the enum definition GdkByteOrder Check the type Check the type initializer Check the registered name ...
(def-suite gdk-visual :in gdk-suite) (in-suite gdk-visual) (test gdk-visual-type (is (g-type-is-enum "GdkVisualType")) (is (eq (gtype "GdkVisualType") (gtype (foreign-funcall "gdk_visual_type_get_type" g-size)))) (is (eq 'gdk-visual-type (registered-enum-type "GdkVisualType"))) (is (equal...
f8b718eb26756c5ae1a375867ecbe56b85609f36c36a9227a57e8f168b0b7f3f
uhc/uhc
CoreToImportEnv.hs
{-| Module : CoreToImportEnv License : GPL Maintainer : Stability : experimental Portability : portable -} module Helium.ModuleSystem.CoreToImportEnv(getImportEnvironment) where import Lvm.Core.Core as Core import Helium.Utils.Utils import Helium.StaticAnalysis.Miscellan...
null
https://raw.githubusercontent.com/uhc/uhc/8eb6914df3ba2ba43916a1a4956c6f25aa0e07c5/EHC/src/helium/ModuleSystem/CoreToImportEnv.hs
haskell
| Module : CoreToImportEnv License : GPL Maintainer : Stability : experimental Portability : portable in Helium the have a number indicating the arity the number of stars minus 1 is the arity special rule: unary minus has the assoc and the priority of the infix operator ...
module Helium.ModuleSystem.CoreToImportEnv(getImportEnvironment) where import Lvm.Core.Core as Core import Helium.Utils.Utils import Helium.StaticAnalysis.Miscellaneous.TypeConversion import Helium.Parser.ParseLibrary import Helium.Parser.Lexer(lexer) import Helium.Parser.Parser(type_, contextAndType) import...
8d1540b8480e868f406f1b00e7efaebe9652329b61cad75ec7c72cbbfdf0d340
soegaard/sketching
sketch-midpoint-displacement-1d.rkt
#lang sketching (require racket/match racket/list) (define (displaced-midpoint p q max-displacement) (match-define (list x1 y1) p) (match-define (list x2 y2) q) (define r (random (- max-displacement) max-displacement)) (list (/ (+ x1 x2) 2.) (+ r (/ (+ y1 y2) 2.)))) (define (add-midpoints ps max-...
null
https://raw.githubusercontent.com/soegaard/sketching/3773cb790ac69201c967201a2fa1727d90a4ad62/sketching-examples/examples/sketch-midpoint-displacement-1d.rkt
racket
(no-loop)) (stroke "red")
#lang sketching (require racket/match racket/list) (define (displaced-midpoint p q max-displacement) (match-define (list x1 y1) p) (match-define (list x2 y2) q) (define r (random (- max-displacement) max-displacement)) (list (/ (+ x1 x2) 2.) (+ r (/ (+ y1 y2) 2.)))) (define (add-midpoints ps max-...
a7b9541db60f04b4f6ed641ab0c631dd38fe49aa908dc513eceddd4028b9d1d1
eait-itig/rdp_proto
mppc_nif.erl
%% %% rdpproxy %% remote desktop proxy %% Copyright 2022 < > The University of Queensland %% All rights reserved. %% %% Redistribution and use in source and binary forms, with or without %% modification, are permitted provided that the following conditions %% are met: 1 . Redistributions of source code must re...
null
https://raw.githubusercontent.com/eait-itig/rdp_proto/f39dffdc3e9cab24da778834298dc4a72040cc23/src/mppc_nif.erl
erlang
rdpproxy remote desktop proxy All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: notice, this list of conditions and the following disclaimer. notice, this list of conditions and the followi...
Copyright 2022 < > The University of Queensland 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above copyright THIS SOFTWARE IS PROVIDED BY THE AUTHOR ` ` AS IS '' AND ANY EXPRESS OR INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENT...
a9fcd2af07d0a21528796748b9992757441481f953e12fbeaab45a89fc9501ce
zanderso/cil-template
tut0.ml
open Cil module E = Errormsg let tut0 (f : file) : unit = E.log "I'n in tut0 and I could change %s if I wanted to!\n" f.fileName; ()
null
https://raw.githubusercontent.com/zanderso/cil-template/fc2a0548b2644c53c4840df2a09c1c90b2af2aee/src/tut0.ml
ocaml
open Cil module E = Errormsg let tut0 (f : file) : unit = E.log "I'n in tut0 and I could change %s if I wanted to!\n" f.fileName; ()
ec3ed2c3190eaaf66dd8e4d75aebd45eac8f0583c0a0c342a7bb5bc30bac76cd
SamB/coq
vernacinterp.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/toplevel/vernacinterp.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 Tacexpr Interpreta...
c52247058cb95cdfb13eb93c5b0d07a6aacb9a2ab47d78dd4fcdc2abcd4b7e5b
umd-cmsc330/cmsc330spring22
data.mli
type int_tree = | IntLeaf | IntNode of int * int option * int_tree * int_tree * int_tree val empty_int_tree: int_tree val int_insert: int -> int_tree -> int_tree val int_mem: int -> int_tree -> bool val int_size: int_tree -> int val int_max: int_tree -> int type 'a tree_map = | MapLeaf | MapNode of (int * 'a)...
null
https://raw.githubusercontent.com/umd-cmsc330/cmsc330spring22/e499004813cebd2e6aeffc79088ff7279560cbf0/project2b/src/data.mli
ocaml
type int_tree = | IntLeaf | IntNode of int * int option * int_tree * int_tree * int_tree val empty_int_tree: int_tree val int_insert: int -> int_tree -> int_tree val int_mem: int -> int_tree -> bool val int_size: int_tree -> int val int_max: int_tree -> int type 'a tree_map = | MapLeaf | MapNode of (int * 'a)...
efee4d1f8a9f36a776f125ff5d7c675d5f94583b0b996b86004c9356807c06c6
vlstill/hsExprTest
foldr.3.nok.hs
myfoldr :: (a -> b -> b) -> b -> [a] -> b myfoldr _ z [] = z myfoldr f z (x:xs) = x `f` z
null
https://raw.githubusercontent.com/vlstill/hsExprTest/391fc823c1684ec248ac8f76412fefeffb791865/examples/foldr.3.nok.hs
haskell
myfoldr :: (a -> b -> b) -> b -> [a] -> b myfoldr _ z [] = z myfoldr f z (x:xs) = x `f` z
de5dbde9aadfe8e99b350d1851d0cc05d47f8d5a6ec22ba104618f478274acf0
RadNi/uniswap-plutus
uniswap-client.hs
{-# LANGUAGE NumericUnderscores #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # module Main ( main ) where import Control.Concurrent import Control.Exception import Control.Monad (forM_, when) import Control.Monad.IO....
null
https://raw.githubusercontent.com/RadNi/uniswap-plutus/38b0a2ce9c47e131360803990011c3a9f38269f1/app/uniswap-client.hs
haskell
# LANGUAGE NumericUnderscores # # LANGUAGE OverloadedStrings #
# LANGUAGE ScopedTypeVariables # module Main ( main ) where import Control.Concurrent import Control.Exception import Control.Monad (forM_, when) import Control.Monad.IO.Class (MonadIO (..)) import Data.Aeson ...
fd2111ade0dbe1ac44dc668a5823c57e009899550923f067aad48928e10c2b38
stanfordhaskell/cs43
Main.hs
{-# LANGUAGE GADTs #-} module Main where main :: IO () main = do putStrLn "hello world" data Expr a where I :: Int -> Expr Int B :: Bool -> Expr Bool Add :: Expr Int -> Expr Int -> Expr Int Mul :: Expr Int -> Expr Int -> Expr Int Eq :: Eq a => Expr a -> Expr a -> Expr Bool eval :: Expr a...
null
https://raw.githubusercontent.com/stanfordhaskell/cs43/8353da9e27336a7fe23488c3536e0dab4aaabfff/starter-code/assignment6/src/Main.hs
haskell
# LANGUAGE GADTs #
module Main where main :: IO () main = do putStrLn "hello world" data Expr a where I :: Int -> Expr Int B :: Bool -> Expr Bool Add :: Expr Int -> Expr Int -> Expr Int Mul :: Expr Int -> Expr Int -> Expr Int Eq :: Eq a => Expr a -> Expr a -> Expr Bool eval :: Expr a -> a eval (I n) = n ev...
57fee7be608c7d02b510e0b48d176e7baa5fe2d75cf56f1f7be55ca5b6050c32
jimweirich/sicp-study
ex2_31_test.scm
SICP Tests 2.31 (test-case "Ex 2.31 - without map" (assert-equal '(1 (4 (9 16) 25) (36 49)) (square-tree-3 '(1 (2 (3 4) 5) (6 7)))))
null
https://raw.githubusercontent.com/jimweirich/sicp-study/bc5190e04ed6ae321107ed6149241f26efc1b8c8/scheme/chapter2/ex2_31_test.scm
scheme
SICP Tests 2.31 (test-case "Ex 2.31 - without map" (assert-equal '(1 (4 (9 16) 25) (36 49)) (square-tree-3 '(1 (2 (3 4) 5) (6 7)))))
456762db0a6fafed521dcf5a5d0fb7c3a6cd07fc5e7b330fe66f76cbe0988fe2
kitten/bs-flow-parser
expression_parser.ml
* * Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the...
null
https://raw.githubusercontent.com/kitten/bs-flow-parser/00630c06016b51a7040ef4160ed2999cd208babd/src/expression_parser.ml
ocaml
Don't rollback on these errors. Everything else causes a rollback Well shoot. It doesn't parse cleanly as a normal * expression or as an arrow_function. Let's treat it as a * normal assignment expression gone wrong no_in is ignored for the consequent Lowest pri Highest prior...
* * Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the...
395d09acce986421a1db54ceba493be064cd4950afc0474b51a7007d07ef23ca
martijnbastiaan/doctest-parallel
Example.hs
module Test.DocTest.Internal.Runner.Example ( Result (..) , mkResult ) where import Data.Char import Data.List import Test.DocTest.Internal.Util import Test.DocTest.Internal.Parse maxBy :: (Ord a) => (b -> a) -> b -> b -> b maxBy f x y = case compare (f x) (f y) of LT -> y...
null
https://raw.githubusercontent.com/martijnbastiaan/doctest-parallel/f70d6a1c946cc0ada88571b90a39a7cd4d065452/src/Test/DocTest/Internal/Runner/Example.hs
haskell
use show to escape special characters in output lines if any output line contains any unsafe character Prefer longer matches. Prefer longer matches, and later ones of equal length. Note: order of constructors matters, so that full matches sort as greater than partial. show expanded pattern if match is long, to h...
module Test.DocTest.Internal.Runner.Example ( Result (..) , mkResult ) where import Data.Char import Data.List import Test.DocTest.Internal.Util import Test.DocTest.Internal.Parse maxBy :: (Ord a) => (b -> a) -> b -> b -> b maxBy f x y = case compare (f x) (f y) of LT -> y...
111c04b51eef0b0e95061f2ab33b846e17241e9cf0cc98fa3d25e6feca13822e
aws-beam/aws-erlang
aws_codeguru_reviewer.erl
%% WARNING: DO NOT EDIT, AUTO-GENERATED CODE! See -beam/aws-codegen for more details . @doc This section provides documentation for the Amazon CodeGuru Reviewer %% API operations. %% CodeGuru Reviewer is a service that uses program analysis and machine %% learning to detect potential defects that are difficult f...
null
https://raw.githubusercontent.com/aws-beam/aws-erlang/699287cee7dfc9dc8c08ced5f090dcc192c9cba8/src/aws_codeguru_reviewer.erl
erlang
WARNING: DO NOT EDIT, AUTO-GENERATED CODE! API operations. learning to detect potential defects that are difficult for developers to By proactively detecting and providing recommendations for addressing code overall quality and maintainability of your code base during the code ==================================...
See -beam/aws-codegen for more details . @doc This section provides documentation for the Amazon CodeGuru Reviewer CodeGuru Reviewer is a service that uses program analysis and machine find and recommends fixes in your Java and Python code . defects and implementing best practices , CodeGuru Reviewer improve...
8872df965ddaf45024974be1e3a7d26b09da913616410ea2ab336239e293ae99
ddmcdonald/sparser
academic-degrees.lisp
;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER COMMON-LISP) -*- copyright ( c ) 2021 -- all rights reserved ;;; ;;; File: "academic-degrees" ;;; Module: grammar/model/dossiers/ version : December 2021 ;; initiated 12/27/21 to organize degrees and such evacuated from ;; Middle-east fi...
null
https://raw.githubusercontent.com/ddmcdonald/sparser/33715946ffe3c45bc88b8b6e69fa4755fa4058e7/Sparser/code/s/grammar/model/dossiers/academic-degrees.lisp
lisp
-*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER COMMON-LISP) -*- File: "academic-degrees" Module: grammar/model/dossiers/ initiated 12/27/21 to organize degrees and such evacuated from Middle-east files
copyright ( c ) 2021 -- all rights reserved version : December 2021 (in-package :sparser) (make-academic-degree "B.A.") only one in javan - online (make-academic-degree "M.B.A.") (make-academic-degree "M.S.") (make-academic-degree "M.A.") (make-academic-degree "Ph.D.")
f8fd776712928736fce20bd732ec5ab3a021935e878343bb5e1c41087d5c11bc
yutopp/rill
phase1_collect_toplevels.ml
* Copyright 2020 - . * * Distributed under the Boost Software License , Version 1.0 . * ( See accompanying file LICENSE_1_0.txt or copy at * ) * Copyright yutopp 2020 - . * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * ) *) ...
null
https://raw.githubusercontent.com/yutopp/rill/375b67c03ab2087d0a2a833bd9e80f3e51e2694f/rillc/lib/sema/phase1_collect_toplevels.ml
ocaml
TODO: fix TODO: fix TODO: fix TODO: fix TODO: fix TODO: fix T a Add 'Self' TODO: support generic params
* Copyright 2020 - . * * Distributed under the Boost Software License , Version 1.0 . * ( See accompanying file LICENSE_1_0.txt or copy at * ) * Copyright yutopp 2020 - . * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * ) *) ...
e7bcd995a07f64b02e99999c4306a21d8220c5a545553996e5edb8695dae15dd
argp/bap
batNumber.ml
* Number - Generic interface for numbers * Copyright ( C ) 2007 Bluestorm < bluestorm dot dylc on - the - server gmail dot com > * 2008 * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as publi...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/batteries/src/batNumber.ml
ocaml
* The infix operators * The full set of operations of a type of numbers Removed compare operators from base module, as they shadow polymorphic ones from stdlib include Compare with type bat__compare_t = t * The smallest set of operations supported by every set of numbers * A type of numbers * Co...
* Number - Generic interface for numbers * Copyright ( C ) 2007 Bluestorm < bluestorm dot dylc on - the - server gmail dot com > * 2008 * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as publi...
ac4758835ed93d32e86c0b8401bd7a53dec0d6a48052d1e893085c6b6a59a484
gsakkas/rite
0098.ml
AppG [LitG,UopG EmptyG] clone 0 (- diff) clone 0 (- lendiff)
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/data/sp14/clusters/0098.ml
ocaml
AppG [LitG,UopG EmptyG] clone 0 (- diff) clone 0 (- lendiff)
47786a0c055b50e73ddf4141c34811fee815c992bac6ff84b7b62216fdd9b033
jessex/CLRS-implementations
0034_merge_sort.scm
MERGE - SORT(A , p , r ) Sorts the given array from indices p to r using a Divide - and - Conquer approach O(n log n ) Chapter 2.3 , Page 34 (define merge (lambda (left right) (cond ((null? left) right) ((null? right) left) ((< (car left) (car right)) (cons (car left) (merge (cdr left) ...
null
https://raw.githubusercontent.com/jessex/CLRS-implementations/ed5d3d89cf489646b15941c2529533e98389a58b/scheme/0034_merge_sort.scm
scheme
MERGE - SORT(A , p , r ) Sorts the given array from indices p to r using a Divide - and - Conquer approach O(n log n ) Chapter 2.3 , Page 34 (define merge (lambda (left right) (cond ((null? left) right) ((null? right) left) ((< (car left) (car right)) (cons (car left) (merge (cdr left) ...
5bf76f9f5baec8f6eef6c78a69131220654cf570cb8454d255c0f9ea5793fcbf
ocaml-multicore/ocaml-tsan
odoc_html.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-multicore/ocaml-tsan/f54002470cc6ab780963cc81b11a85a820a40819/ocamldoc/odoc_html.mli
ocaml
************************************************************************ OCaml ...
, projet Cambium , INRIA Paris Copyright 2022 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the module String = Misc.Stdlib.String val with_parameter_list : bool ref val css_style : string option ref val...
d36bc5228832fe48560292fe3b4682a9060c0595ad28713d68bf82aeb02e9002
shayne-fletcher/zen
slice.ml
module type STREAM = sig type 'a t val empty : 'a t val exhausted : 'a t -> bool val hd : 'a t -> 'a val tl : 'a t -> 'a t val iter : ('a -> unit) -> 'a t -> unit val cons : 'a * (unit -> 'a t) -> 'a t val uncons : 'a t -> ('a * 'a t) val of_list : 'a list -> 'a t val to_list : 'a t -> 'a list va...
null
https://raw.githubusercontent.com/shayne-fletcher/zen/10a1d0b9bf261bb133918dd62fb1593c3d4d21cb/ocaml/slice/slice.ml
ocaml
Scratch
module type STREAM = sig type 'a t val empty : 'a t val exhausted : 'a t -> bool val hd : 'a t -> 'a val tl : 'a t -> 'a t val iter : ('a -> unit) -> 'a t -> unit val cons : 'a * (unit -> 'a t) -> 'a t val uncons : 'a t -> ('a * 'a t) val of_list : 'a list -> 'a t val to_list : 'a t -> 'a list va...
8682f2b9ff08186c2bd00d14cf89d6f19adb6c349790aebd24131c7911814fbe
Perry961002/SICP
exa3.5.4-stream-and-delay.scm
将被积流看作一个延时参数 integral将在需要生成输出流第一个元素之后的元素时force积分对象的求值 (define (integral delayed-integrand initial-value dt) (define int (stream-cons initial-value (let ((integrand (force delayed-integrand))) (add-streams (scale-stream integrand dt) ...
null
https://raw.githubusercontent.com/Perry961002/SICP/89d539e600a73bec42d350592f0ac626e041bf16/Chap3/example/exa3.5.4-stream-and-delay.scm
scheme
定义solve时在y的定义里延时求值dy 测试
将被积流看作一个延时参数 integral将在需要生成输出流第一个元素之后的元素时force积分对象的求值 (define (integral delayed-integrand initial-value dt) (define int (stream-cons initial-value (let ((integrand (force delayed-integrand))) (add-streams (scale-stream integrand dt) ...
8a845e03cfc09650d90f7e132bf759cf1e8a26cbe9e7dc1dfd2a6f4e7778c300
garrigue/labltk
maincompile.ml
(***********************************************************************) (* *) MLTk , Tcl / Tk interface of OCaml (* *) , , and ...
null
https://raw.githubusercontent.com/garrigue/labltk/2cbb92a8c0feacdd8ee69976f3f45a7cf81f805c/compiler/maincompile.ml
ocaml
********************************************************************* described in file LICENSE found in the...
MLTk , Tcl / Tk interface of OCaml , , and projet Cristal , INRIA Rocquencourt , Kyoto University RIMS Copyright 2002 Institut National de Recherche en Informatique et en Automatique and...
843f3ef8da162c72f201bd8e6c57fbbc43235732cbc12c81adb51a0c3d4b79b2
Perry961002/SICP
exe4.55.scm
; a) (superisor ?person (Bitdiddle Ben))) ; b) (job ?name (accounting . ?type)) ; c) (address ?name (Slumerville . ?address))
null
https://raw.githubusercontent.com/Perry961002/SICP/89d539e600a73bec42d350592f0ac626e041bf16/Chap4/exercise/exe4.55.scm
scheme
a) b) c)
(superisor ?person (Bitdiddle Ben))) (job ?name (accounting . ?type)) (address ?name (Slumerville . ?address))
8ed2f1bb104e7808874eaa2ade3a61af37969113a2d386315ab9fb034de0edb5
moon-chilled/loop
count-clause.scm
(defclass count-clause (count/sum-accumulation-clause) ()) (defclass count-it-clause (count-clause it-mixin) () (body-form (clause end-tag) `(when ,*it-var* (set! ,*accumulation-variable* (+ 1 ,*accumulation-variable*))))) (defclass count-form-clause (count-clause form-mixin) () (body-form...
null
https://raw.githubusercontent.com/moon-chilled/loop/09b08a5f0c442710f129d2de10d78128e21863a3/src/count-clause.scm
scheme
Compute the BODY-FORM.
(defclass count-clause (count/sum-accumulation-clause) ()) (defclass count-it-clause (count-clause it-mixin) () (body-form (clause end-tag) `(when ,*it-var* (set! ,*accumulation-variable* (+ 1 ,*accumulation-variable*))))) (defclass count-form-clause (count-clause form-mixin) () (body-form...
d61e0e352517fc372bc93c74ad2d4f382a32ecbd58ffec89683bc15ccf7fb9b4
serokell/haskell-crypto
Nonce.hs
SPDX - FileCopyrightText : 2020 -- SPDX - License - Identifier : MPL-2.0 module Test.Crypto.Sodium.Nonce where import Test.HUnit ((@?), (@?=), Assertion) import Control.DeepSeq (deepseq) import Data.ByteArray.Sized (unSizedByteArray) import Data.ByteString (ByteString) import Data.Ratio ((%)) import System.CPUT...
null
https://raw.githubusercontent.com/serokell/haskell-crypto/e57b04d103b428b03c83565060a36da442663a5a/crypto-sodium/test/Test/Crypto/Sodium/Nonce.hs
haskell
but this is just to check that the lengths are correctly propagated through types. So, good enough. Benchmark to make sure this all makes sense and insecure nonse generation is actually faster than cryptographically-secure generation. XXX: The benchmark is disabled, because we don’t yet have an implementation th...
SPDX - FileCopyrightText : 2020 SPDX - License - Identifier : MPL-2.0 module Test.Crypto.Sodium.Nonce where import Test.HUnit ((@?), (@?=), Assertion) import Control.DeepSeq (deepseq) import Data.ByteArray.Sized (unSizedByteArray) import Data.ByteString (ByteString) import Data.Ratio ((%)) import System.CPUTime...
52e143248701ecdce6825f5196974ea80d73fe2acd3871ba5c125881aae2c778
eponai/sulolive
product_list.cljc
(ns eponai.common.ui.store.product-list (:require [eponai.client.routes :as routes] [eponai.common.ui.dom :as dom] [eponai.common.ui.elements.css :as css] #?(:cljs [cljsjs.react-grid-layout]) #?(:cljs [goog.crypt.base64 :as crypt]) #?(:cljs [eponai.web.utils :as web-utils]...
null
https://raw.githubusercontent.com/eponai/sulolive/7a70701bbd3df6bbb92682679dcedb53f8822c18/src/eponai/common/ui/store/product_list.cljc
clojure
(ns eponai.common.ui.store.product-list (:require [eponai.client.routes :as routes] [eponai.common.ui.dom :as dom] [eponai.common.ui.elements.css :as css] #?(:cljs [cljsjs.react-grid-layout]) #?(:cljs [goog.crypt.base64 :as crypt]) #?(:cljs [eponai.web.utils :as web-utils]...
ce3a44584a1a6ac214e89bcd021a27b3a807b0bb3f19905125039d8902860b6d
serokell/qtah
QItemSelectionRange.hs
This file is part of Qtah . -- Copyright 2015 - 2018 The Qtah Authors . -- -- 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 , either version 3 of the License , or -- (at your option) ...
null
https://raw.githubusercontent.com/serokell/qtah/abb4932248c82dc5c662a20d8f177acbc7cfa722/qtah-generator/src/Graphics/UI/Qtah/Generator/Interface/Core/QItemSelectionRange.hs
haskell
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 MER...
This file is part of Qtah . Copyright 2015 - 2018 The Qtah Authors . 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 General Public License module Graphics.UI.Qtah.Generator.Interface.Co...
b32a2fac3aae1fbd738b58431e6b7744800834fe7409b737c578ce7af3e13214
lisp/de.setf.xml
xcl.lisp
-*- package : common - lisp - user ; Syntax : Common - lisp ; Base : 10 -*- (in-package :common-lisp-user) (defPackage :de.setf.xcl (:use :common-lisp :xqdm :xml-parser :xml-utils) (:export :xcl-parser :xcl-construction-context :asexp-construction-context :parse )) (let ((*default-pathna...
null
https://raw.githubusercontent.com/lisp/de.setf.xml/827681c969342096c3b95735d84b447befa69fa6/demos/xcl/xcl.lisp
lisp
Syntax : Common - lisp ; Base : 10 -*-
(in-package :common-lisp-user) (defPackage :de.setf.xcl (:use :common-lisp :xqdm :xml-parser :xml-utils) (:export :xcl-parser :xcl-construction-context :asexp-construction-context :parse )) (let ((*default-pathname-defaults* *load-pathname*)) (map #'load '("xcl-construction-contex...
db87a94cce27d630bce84cb034e8f5bc2a798aa0bba8d62b37d5956da62a96be
MLanguage/mlang
bir_to_dgfip_c.mli
Copyright ( C ) 2019 - 2021 Inria , contributor : < > 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 your option ) any later ...
null
https://raw.githubusercontent.com/MLanguage/mlang/e84aa40757d1ce5bf2d45060c6d201402afab8d5/src/mlang/backend_compilers/bir_to_dgfip_c.mli
ocaml
filename
Copyright ( C ) 2019 - 2021 Inria , contributor : < > 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 your option ) any later ...
3506edb0090a0be1aa7248778bd1460b25e54a2659a00e9ae96827da8df3212a
privet-kitty/cl-competitive
xor.lisp
(defpackage :cp/test/xor (:use :cl :fiveam :cp/xor) (:import-from :cp/test/base #:base-suite)) (in-package :cp/test/xor) (in-suite base-suite) (test xor (is (null (xor))) (is (null (xor nil))) (is (= 3 (xor 3))) (is (= 1 (xor 1 nil))) (is (= 2 (xor nil 2))) (is (null (xor nil nil))) (is (null (xor 1 ...
null
https://raw.githubusercontent.com/privet-kitty/cl-competitive/d09802269e63ccea479fe140a9a39cb07852e630/module/test/xor.lisp
lisp
(defpackage :cp/test/xor (:use :cl :fiveam :cp/xor) (:import-from :cp/test/base #:base-suite)) (in-package :cp/test/xor) (in-suite base-suite) (test xor (is (null (xor))) (is (null (xor nil))) (is (= 3 (xor 3))) (is (= 1 (xor 1 nil))) (is (= 2 (xor nil 2))) (is (null (xor nil nil))) (is (null (xor 1 ...
2af433243aa105f6b3edd8757c530edf570785be2076387a8bcf593da72e9f9f
MagnusS/okra
conf.mli
* Copyright ( c ) 2021 < > * * 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/MagnusS/okra/bc64448939c70d93ff20f4dbc0fd3b3db483338f/bin/conf.mli
ocaml
* The type for okra configurations * A default configuration * A list of locations to use when aggregating reports * An optional footer to append to the end of your engineer reports * [load file] attempts to load a configuration from [file] * Cmdliner term for configuration file location
* Copyright ( c ) 2021 < > * * 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...
d0379e57d072af53f940160a555a981392fe1e393fca416011c7bd9073347143
CodyReichert/qi
util.lisp
(in-package :cl-user) (defpackage libyaml.util (:use :cl :cffi) (:export :size-t) (:documentation "FFI utilities.")) (in-package :libyaml.util) (defmacro define-size-t () "Define size_t according to the architecture." (if (eql (foreign-type-size '(:pointer :int)) 8) 64 bits `(defctype size-t :unsigne...
null
https://raw.githubusercontent.com/CodyReichert/qi/9cf6d31f40e19f4a7f60891ef7c8c0381ccac66f/dependencies/cl-libyaml-latest/src/util.lisp
lisp
(in-package :cl-user) (defpackage libyaml.util (:use :cl :cffi) (:export :size-t) (:documentation "FFI utilities.")) (in-package :libyaml.util) (defmacro define-size-t () "Define size_t according to the architecture." (if (eql (foreign-type-size '(:pointer :int)) 8) 64 bits `(defctype size-t :unsigne...
ac32a2d2689a740d8dd23b58ca16583378e1c05833e32bec940a0c589a88c3dd
eeng/mercurius
user_repository.clj
(ns mercurius.accounts.domain.repositories.user-repository) (defprotocol UserRepository (add-user [this user] "Adds the user to the repository and returns it.") (find-by-username [this username] "Returns the user with the `username` or nil if it doesn't exists"))
null
https://raw.githubusercontent.com/eeng/mercurius/f83778ddde99aa13692e4fe2e70b2e9dc2fd70e9/src/mercurius/accounts/domain/repositories/user_repository.clj
clojure
(ns mercurius.accounts.domain.repositories.user-repository) (defprotocol UserRepository (add-user [this user] "Adds the user to the repository and returns it.") (find-by-username [this username] "Returns the user with the `username` or nil if it doesn't exists"))
892f4539c2e4ae6e37020cf3900d1cb1213621d81a873780cead2eb2abf7d2cd
oofp/Beseder
TypeExp.hs
# LANGUAGE TypeFamilies # # LANGUAGE KindSignatures # # LANGUAGE PolyKinds # # LANGUAGE DataKinds # {-# LANGUAGE TypeInType #-} # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # # LANGUAGE MultiParamTypeClasses # module Beseder.Base.Internal.TypeExp where import Data.Kind import Protolude type Exp a = a -...
null
https://raw.githubusercontent.com/oofp/Beseder/a0f5c5e3138938b6fa18811d646535ee6df1a4f4/src/Beseder/Base/Internal/TypeExp.hs
haskell
# LANGUAGE TypeInType #
# LANGUAGE TypeFamilies # # LANGUAGE KindSignatures # # LANGUAGE PolyKinds # # LANGUAGE DataKinds # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # # LANGUAGE MultiParamTypeClasses # module Beseder.Base.Internal.TypeExp where import Data.Kind import Protolude type Exp a = a -> Type type family Eval (e ...
70103a2ebc8541f465c9ca6ee18680f62b4a792c73fe9478e125aad3e03cbff3
janestreet/universe
explicit_dependencies.ml
(*_ Generated by ${ROOT}/bin/gen-explicit-dependencies.sh *) module Explicitly_depend_on_Zstd_c = Zstd_c
null
https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/zstandard/src/explicit_dependencies.ml
ocaml
_ Generated by ${ROOT}/bin/gen-explicit-dependencies.sh
module Explicitly_depend_on_Zstd_c = Zstd_c
84a36cc9256e519fa883783a0cb43f3ea461f0976361f738977dcee55b661a74
takeoutweight/clojure-scheme
repl.clj
Copyright ( c ) . All rights reserved . ;; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( -1.0.php ) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by ;; the t...
null
https://raw.githubusercontent.com/takeoutweight/clojure-scheme/6121de1690a6a52c7dbbe7fa722aaf3ddd4920dd/src/clj/cljscm/repl.clj
clojure
The use and distribution terms for this software are covered by the which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software. we e...
Copyright ( c ) . All rights reserved . Eclipse Public License 1.0 ( -1.0.php ) (ns cljscm.repl (:refer-clojure :exclude [load-file]) (:import java.io.File) (:require [clojure.string :as string] [clojure.java.io :as io] [cljscm.compiler :as comp] [cljscm.analyzer :as ana...
cb986b0e4ee88405af470fc42c50330008037421c63af9479f7e47f3aa1a1264
NinjaTrappeur/ex-hack
ProcessingSteps.hs
| Module : ExHack . ProcessingSteps Description : Processing operations used to both generate the ExHack database and the HTML documentation . Copyright : ( c ) , 2018 License : GPL-3 Stability : experimental Portability : POSIX Module : ExHack.ProcessingSteps Description : Proce...
null
https://raw.githubusercontent.com/NinjaTrappeur/ex-hack/dace36926065d5a0dd0076beec1a6eeacd848732/src/ExHack/ProcessingSteps.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # to ex-hack's internal SQL scheme. This function parses the stackage file that will be used to generate the packages dependancy graph. This ...
| Module : ExHack . ProcessingSteps Description : Processing operations used to both generate the ExHack database and the HTML documentation . Copyright : ( c ) , 2018 License : GPL-3 Stability : experimental Portability : POSIX Module : ExHack.ProcessingSteps Description : Proce...
e0490ff619d9d86a7c9b8d299e3952fd784feb41857a54263961c7dd479f8840
montyly/gueb
gueb.ml
open Absenvgenerique open Stubfunc open Ir open Uafgenerique open Graph open Program_piqi open Program open Heap_functions (* global vars *) let verbose = ref false let show_call = ref false let show_free = ref false let show_values = ref false /let details_values = ref false let program = ref "reil" let func = ref "m...
null
https://raw.githubusercontent.com/montyly/gueb/45f496a5a1e8e908e562928762ece304c2408c3a/src/gueb.ml
ocaml
global vars let merge_output = ref false Main analysis default depth ("-unroll-irreducible", Arg.Set analyze_irreducible_loop, "Unroll irreducible loops"); not used in SGanalysis
open Absenvgenerique open Stubfunc open Ir open Uafgenerique open Graph open Program_piqi open Program open Heap_functions let verbose = ref false let show_call = ref false let show_free = ref false let show_values = ref false /let details_values = ref false let program = ref "reil" let func = ref "main" let funcs_fil...
fd64463dc9406b604b2142977bfb70581b6fb8845ccbc7c20723fd682ed23d17
webyrd/quines
mk.scm
miniKanren with = /= , symbolo , , and noo ( A new goal ) ( noo ;;; 'clasure x). not-in is gone; there are fewer uses of 'sym; and no uses of ' num ( except when creating numbero . ) (define remp (lambda (p ls) (cond ((null? ls) '()) ((p (car ls)) (remp p (cdr ls))) (else (cons (car ls) (rem...
null
https://raw.githubusercontent.com/webyrd/quines/35436bd5b6edc63827058e0b1bf7b85d30cbde7d/mk.scm
scheme
'clasure x). not-in is gone; there are fewer uses of 'sym; and We can extend t with a deep tag provided It is not in a singleton c of c* with the same tag. That would mean lifting an innocent constraint to an overarching constraint, in that case. End reading here.
miniKanren with = /= , symbolo , , and noo ( A new goal ) ( noo no uses of ' num ( except when creating numbero . ) (define remp (lambda (p ls) (cond ((null? ls) '()) ((p (car ls)) (remp p (cdr ls))) (else (cons (car ls) (remp p (cdr ls))))))) (define (exists p ls) (cond ((null? ls) #f) ...
13e6a07f117896e52547c0918fb2b732df592689a151897338b64f140e08f825
dalaing/little-languages
Gen.hs
| Copyright : ( c ) , 2016 License : : Stability : experimental Portability : non - portable Copyright : (c) Dave Laing, 2016 License : BSD3 Maintainer : Stability : experimental Portability : non-portable -} module Component.Type.Note.Gen ( genTypeInput ) where import Comp...
null
https://raw.githubusercontent.com/dalaing/little-languages/9f089f646a5344b8f7178700455a36a755d29b1f/code/old/modular/common-lang/src/Component/Type/Note/Gen.hs
haskell
| Copyright : ( c ) , 2016 License : : Stability : experimental Portability : non - portable Copyright : (c) Dave Laing, 2016 License : BSD3 Maintainer : Stability : experimental Portability : non-portable -} module Component.Type.Note.Gen ( genTypeInput ) where import Comp...
ee11f7a330a910dd09c4ddb61bbe29817f0478b46c690c4138c562c0e576c667
repl-acement/repl-acement
editor.cljs
(ns replacement.ui.views.editor (:require [re-frame.core :refer [subscribe dispatch]] [re-com.core :refer [h-box v-box box button gap line scroller border label input-text md-circle-icon-button md-icon-button input-textarea h-split v-split popover-anchor-wrapper ...
null
https://raw.githubusercontent.com/repl-acement/repl-acement/43b17c24a5295464d2777628c211dd07313516c7/repl-ui/replacement/ui/views/editor.cljs
clojure
Toggle: zmdi-accounts / zmdi-accounts-outline BUG - when other users login or logout all evals and current input is lost
(ns replacement.ui.views.editor (:require [re-frame.core :refer [subscribe dispatch]] [re-com.core :refer [h-box v-box box button gap line scroller border label input-text md-circle-icon-button md-icon-button input-textarea h-split v-split popover-anchor-wrapper ...
01667d06714b239d816cdc02c13466457062bf7897cdc83d4e1ee89e3e500fbd
commercialhaskell/stack
ConstructPlan.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE LambdaCase #-} # LANGUAGE OverloadedStrings # # LANGUAGE ViewPatterns # | Construct a @Plan@ for how to build module Stack.Build.ConstructPlan ( constructPlan ) where import Control.Monad.RWS.Strict hiding ( (<>) ) import quali...
null
https://raw.githubusercontent.com/commercialhaskell/stack/7e35041ed27ebc9f3076d201a1c3f42dd04111db/src/Stack/Build/ConstructPlan.hs
haskell
# LANGUAGE LambdaCase # ^ This indicates that the package is already installed, and that we shouldn't build it from source. This is only the case for global packages. ^ This indicates that the package isn't installed, and we know where to find its source. ^ This indicates that the package is installed ...
# LANGUAGE NoImplicitPrelude # # LANGUAGE OverloadedStrings # # LANGUAGE ViewPatterns # | Construct a @Plan@ for how to build module Stack.Build.ConstructPlan ( constructPlan ) where import Control.Monad.RWS.Strict hiding ( (<>) ) import qualified Data.List as L import qualified Da...
547bee41c74af46c9a38de2477c13ab7a2c7610293d39f24591edd3e4a6c5173
mpickering/gitlab-triage
SetupMode.hs
{-# LANGUAGE OverloadedStrings #-} module SetupMode where import Brick hiding (continue, halt) import Brick.Forms import qualified Graphics.Vty as V import qualified Brick.Main as M import qualified Brick.Types as T import qualified Brick.Widgets.Border as B import qualified Brick.Widgets.Center as C import Brick.Ty...
null
https://raw.githubusercontent.com/mpickering/gitlab-triage/3586b1d62b7775282bd95775f1114084cd29ae4f/main/SetupMode.hs
haskell
# LANGUAGE OverloadedStrings #
module SetupMode where import Brick hiding (continue, halt) import Brick.Forms import qualified Graphics.Vty as V import qualified Brick.Main as M import qualified Brick.Types as T import qualified Brick.Widgets.Border as B import qualified Brick.Widgets.Center as C import Brick.Types ( Widget ) import Control.Mona...
eb7be5c4c19cb034706a7042ee43fcb3bff000c7f407aae021ba33d06c9f5454
c4-project/c4f
import.ml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
null
https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/fir_gen/test/import.ml
ocaml
* Common imports
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
4883e1fb4c7a52176d500ac6a56010b6436e44d6494e65950172ed48e613dd45
tsoding/aoc-2019
Main.hs
module Main where import Data.List import Text.Printf isValid1 :: Int -> Bool isValid1 x = isIncreasing && containsDouble where s = show x isIncreasing = s == sort s containsDouble = length (nub s) < length s isValid2 :: Int -> Bool isValid2 x = isIncreasing && containsDoubleGroup where s = show ...
null
https://raw.githubusercontent.com/tsoding/aoc-2019/bd186aa96558676a4380a465351b877dbaae261d/04/Main.hs
haskell
module Main where import Data.List import Text.Printf isValid1 :: Int -> Bool isValid1 x = isIncreasing && containsDouble where s = show x isIncreasing = s == sort s containsDouble = length (nub s) < length s isValid2 :: Int -> Bool isValid2 x = isIncreasing && containsDoubleGroup where s = show ...
3cf04054e62f97dd19307ebf34e1b0923a20275b0b4e6c802a04b119537c3d2d
racket/htdp
test-abbrev.rkt
#lang racket (require (for-syntax scheme/mpair)) (provide t) t : eli 's convenient short - cut syntactic form for defining tests . ;; here's an example of how you might use it: ( let * ( [ defs1 ` ( ( define ( a x ) ( + x 5 ) ) ( define b a ) ) ] [defs2 (append defs1 `((define c a)))]) (t 'top-ref4 m:int...
null
https://raw.githubusercontent.com/racket/htdp/aa78794fa1788358d6abd11dad54b3c9f4f5a80b/htdp-test/tests/stepper/test-abbrev.rkt
racket
here's an example of how you might use it: printf "exprs = ~s\n args = ~s\n"
#lang racket (require (for-syntax scheme/mpair)) (provide t) t : eli 's convenient short - cut syntactic form for defining tests . ( let * ( [ defs1 ` ( ( define ( a x ) ( + x 5 ) ) ( define b a ) ) ] [defs2 (append defs1 `((define c a)))]) (t 'top-ref4 m:intermediate ,@defs1 (define c b) (c 3) ...
8fcd6d595a0cfdd34370f1cb1476c0c99d0a5fba056314f9c78f49018a95a71d
bendlas/davstore
app.clj
(ns davstore.app (:require [clojure.java.io :as io] [clojure.pprint :refer [pprint]] [clojure.tools.logging :as log] [datomic.api :refer [delete-database]] [davstore.blob :as blob] [davstore.dav :as dav] [davstore.store :as store] [ne...
null
https://raw.githubusercontent.com/bendlas/davstore/f8af4849c04c0404ebd0d6b000ef3b2bcd641d0b/src/davstore/app.clj
clojure
Middlewares Handlers
(ns davstore.app (:require [clojure.java.io :as io] [clojure.pprint :refer [pprint]] [clojure.tools.logging :as log] [datomic.api :refer [delete-database]] [davstore.blob :as blob] [davstore.dav :as dav] [davstore.store :as store] [ne...
1f7de930c5fead456961e41c160b08ef6748d6c4c77e6f59882ae4846ed0bf33
kaoskorobase/mescaline
ProbabilisticSuffixTree.hs
module Data.ProbabilisticSuffixTree ( Tree(..) , NodeMap , Node(..) , empty , construct , toTree , printTree ) where import qualified Data.Map as M import qualified Data.ProbabilisticSuffixTree.Context as C import qualified Data.Tree as T data Tree a = Tree { nodes :: NodeMap a } deriving (Eq, Sh...
null
https://raw.githubusercontent.com/kaoskorobase/mescaline/13554fc4826d0c977d0010c0b4fb74ba12ced6b9/lib/mescaline/Data/ProbabilisticSuffixTree.hs
haskell
This function could also do some tree pruning and pmf smoothing.
module Data.ProbabilisticSuffixTree ( Tree(..) , NodeMap , Node(..) , empty , construct , toTree , printTree ) where import qualified Data.Map as M import qualified Data.ProbabilisticSuffixTree.Context as C import qualified Data.Tree as T data Tree a = Tree { nodes :: NodeMap a } deriving (Eq, Sh...
86943d83e053be0e715dde52eb8d9124981b13c0e6e3c8c6b07e6e5f833b8fc9
UnixJunkie/fragger
amino_acid.ml
Copyright ( C ) 2013 , Zhang Initiative Research Unit , * Advance Science Institute , Riken * 2 - 1 Hirosawa , Wako , Saitama 351 - 0198 , Japan * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License , with * the specia...
null
https://raw.githubusercontent.com/UnixJunkie/fragger/7cbee359cfb6ddb3acfdf72501921b0728dd3e9f/src/amino_acid.ml
ocaml
Copyright ( C ) 2013 , Zhang Initiative Research Unit , * Advance Science Institute , Riken * 2 - 1 Hirosawa , Wako , Saitama 351 - 0198 , Japan * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License , with * the specia...
78ad8d6284a58d19874bc8051f7eb31d715120ff4abe506cfe740adda529ac96
iijlab/postgresql-pure
Data.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE CPP # {-# LANGUAGE DataKinds #-} {-# LANGUAGE DefaultSignatures #-} {-# LANGUAGE DerivingStrategies #-} # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNe...
null
https://raw.githubusercontent.com/iijlab/postgresql-pure/2a640f102f3e3540aedbcf4cfb5d1ed10310f773/src/Database/PostgreSQL/Pure/Internal/Data.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DefaultSignatures # # LANGUAGE DerivingStrategies # # LANGUAGE OverloadedStrings # # LANGUAGE PatternSynonyms # # LANGUAGE UndecidableInstances # | A configuration of a connection. Default configuration is 'def', which is f...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE CPP # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE KindSignatures # # LANGUAGE NamedFieldPuns # # LANGUAGE TypeFamilies ...
d8f7e16f0219e34fce32041254bf14d6762af6884352c444ac8c6bdece895c7e
dgiot/dgiot
dgiot_json.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 2021 DGIOT Technologies Co. , Ltd. 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...
null
https://raw.githubusercontent.com/dgiot/dgiot/8a74ec56d478910204dea5459f13d05e86214354/apps/dgiot/src/utils/dgiot_json.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2020 - 2021 DGIOT Technologies Co. , Ltd. 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(dgiot_json). -compile(inline). -export([ encode/1 , encode/2 , safe_...
4c86cacda755e303dfff8db899c800859cf592a9fdbcb86606e059937b41ce96
inhabitedtype/ocaml-aws
describeGlobalClusters.ml
open Types open Aws type input = DescribeGlobalClustersMessage.t type output = GlobalClustersMessage.t type error = Errors_internal.t let service = "rds" let signature_version = Request.V4 let to_http service region req = let uri = Uri.add_query_params (Uri.of_string (Aws.Util.of_option_exn (Endpoints...
null
https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/b6d5554c5d201202b5de8d0b0253871f7b66dab6/libraries/rds/lib/describeGlobalClusters.ml
ocaml
open Types open Aws type input = DescribeGlobalClustersMessage.t type output = GlobalClustersMessage.t type error = Errors_internal.t let service = "rds" let signature_version = Request.V4 let to_http service region req = let uri = Uri.add_query_params (Uri.of_string (Aws.Util.of_option_exn (Endpoints...
53a553ef2c8be042e60ea9fb601f2a446963b75c4eaed0279f4b63d50b68c5b9
quil-lang/quilc
options.lisp
;;;; options.lisp ;;;; Author : (in-package #:cl-quil) ;;; The variables below allow for general configuration of the ;;; compiler. For frontend specific configuration, see ;;; frontend-options.lisp. More configuration of the compressor ;;; specifically can be found in compressor-configuration.lisp. (defvar *rec...
null
https://raw.githubusercontent.com/quil-lang/quilc/9bc75f650fe06c78c22ed52c4e749401d3129c8c/src/options.lisp
lisp
options.lisp The variables below allow for general configuration of the compiler. For frontend specific configuration, see frontend-options.lisp. More configuration of the compressor specifically can be found in compressor-configuration.lisp.
Author : (in-package #:cl-quil) (defvar *recognize-swap-specially* t "Make SWAP-APPLICATION nodes specially for SWAP instructions.") (defvar *compress-carefully* nil "Flag that turns on/off a bunch of intermediate correctness checks during compression. WARNING: this can be *very* costly, since it involves ...
85af051b8e577ba5d7f1fddebdd21f608515e8d38ac8a886a4d7226616461d90
sneeuwballen/zipperposition
Bool_clause.ml
This file is free software , part of Zipperposition . See file " license " for more details . * { 1 Boolean Clause } open Logtk type bool_lit = BBox.Lit.t type t = bool_lit list let compare = CCOrd.list BBox.Lit.compare let pp = BBox.pp_bclause let pp_zf = Util.pp_list ~sep:" || " BBox.pp_zf let pp_tstp = Ut...
null
https://raw.githubusercontent.com/sneeuwballen/zipperposition/7f1455fbe2e7509907f927649c288141b1a3a247/src/prover/Bool_clause.ml
ocaml
This file is free software , part of Zipperposition . See file " license " for more details . * { 1 Boolean Clause } open Logtk type bool_lit = BBox.Lit.t type t = bool_lit list let compare = CCOrd.list BBox.Lit.compare let pp = BBox.pp_bclause let pp_zf = Util.pp_list ~sep:" || " BBox.pp_zf let pp_tstp = Ut...
2461fa1dee2621d3076986eb589fd9bdd4bfb847e5749833a83cc9d1b3ccbe1c
duelinmarkers/clj-record
boot.clj
(ns clj-record.boot "Requiring this one namespace will require everything needed to use clj-record." (:require (clj-record core callbacks associations validation serialization)))
null
https://raw.githubusercontent.com/duelinmarkers/clj-record/2dd5b9a1fcb8828565acfdf9919330bf4b5dbfaa/src/clj_record/boot.clj
clojure
(ns clj-record.boot "Requiring this one namespace will require everything needed to use clj-record." (:require (clj-record core callbacks associations validation serialization)))
295b638f0d0e2b54607c577221f888f1584da1a45b59a9b4b2ac36f2ae00a457
spawnfest/eep49ers
specs_and_funs.erl
-module(specs_and_funs). -export([my_apply/3, two/1]). OTP-15519 , -spec my_apply(Fun, Arg, fun((A) -> A)) -> Result when Fun :: fun((Arg) -> Result), Arg :: any(), Result :: any(). my_apply(Fun, Arg, _) -> Fun(Arg). -spec two(fun((A) -> A)) -> fun((B) -> B). two(F) -> F(fun(X) -> X e...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/syntax_tools/test/syntax_tools_SUITE_data/specs_and_funs.erl
erlang
-module(specs_and_funs). -export([my_apply/3, two/1]). OTP-15519 , -spec my_apply(Fun, Arg, fun((A) -> A)) -> Result when Fun :: fun((Arg) -> Result), Arg :: any(), Result :: any(). my_apply(Fun, Arg, _) -> Fun(Arg). -spec two(fun((A) -> A)) -> fun((B) -> B). two(F) -> F(fun(X) -> X e...
cff210ca6ec8d2c6d3629839ad6bb9824261e07d0db892c20b5f42b5b6371c4f
joinr/spork
xml.clj
;;minor wrapper/extensions around clojure.xml. ;;convenience functions. (ns spork.util.xml (:require [clojure [xml :as xml]])) (defn getbytes [instring] (clojure.java.io/input-stream (.getBytes instring))) (defn xparse "Parse an xml source. Just a shadow for parse." [s] (xml/parse s)) (defn str->xml "Pa...
null
https://raw.githubusercontent.com/joinr/spork/bb80eddadf90bf92745bf5315217e25a99fbf9d6/src/spork/util/xml.clj
clojure
minor wrapper/extensions around clojure.xml. convenience functions.
(ns spork.util.xml (:require [clojure [xml :as xml]])) (defn getbytes [instring] (clojure.java.io/input-stream (.getBytes instring))) (defn xparse "Parse an xml source. Just a shadow for parse." [s] (xml/parse s)) (defn str->xml "Parse a string as if it were an xml source." [s] (xparse (getbytes s))...
3e31e906cffa67126a450d96f142f9277646f853dd35c5ac851fd3ca4179a08e
hbr/albatross
deque.mli
type _ t val is_empty: _ t -> bool val has_some: _ t -> bool val empty: _ t val push_front: 'a -> 'a t -> 'a t val push_rear: 'a -> 'a t -> 'a t val pop_front: 'a t -> ('a * 'a t) option val update_first: ('a -> 'a) -> 'a t -> 'a t val update_last: ('a -> 'a) -> 'a t -> 'a t val to_list: 'a t -> 'a list
null
https://raw.githubusercontent.com/hbr/albatross/8f28ef97951f92f30dc69cf94c0bbe20d64fba21/ocaml/fmlib/basic/deque.mli
ocaml
type _ t val is_empty: _ t -> bool val has_some: _ t -> bool val empty: _ t val push_front: 'a -> 'a t -> 'a t val push_rear: 'a -> 'a t -> 'a t val pop_front: 'a t -> ('a * 'a t) option val update_first: ('a -> 'a) -> 'a t -> 'a t val update_last: ('a -> 'a) -> 'a t -> 'a t val to_list: 'a t -> 'a list
ff9bff8c6fc49717b993b97447ee579f140cef97c6a7b68355bd7e8e0d75c6aa
paulcadman/the-little-typer
int-Nat.rkt
#lang pie Exercises on and ind - Nat from Chapters 6 and 7 of The Little Typer (claim + (-> Nat Nat Nat)) (define + (λ (a b) (rec-Nat a b (λ (a-k b+a-k) (add1 b+a-k))))) Exercise 7.0 ;; Define a function called zip that takes an argument of t...
null
https://raw.githubusercontent.com/paulcadman/the-little-typer/0a5c6877a902f26fc7f100de593f44f6a986624c/exercises/int-Nat.rkt
racket
Define a function called append that takes an argument of type (Vec E n) and an
#lang pie Exercises on and ind - Nat from Chapters 6 and 7 of The Little Typer (claim + (-> Nat Nat Nat)) (define + (λ (a b) (rec-Nat a b (λ (a-k b+a-k) (add1 b+a-k))))) Exercise 7.0 Define a function called zip that takes an argument of type...
2a135344bd59a28c93985de348dc21b4eb130ebb5b74d6b1789b0faf8cb7bafe
ygrek/mldonkey
configwin_messages.ml
(**************************************************************************) Copyright 2003 , 2002 b8_bavard , , , b52_simon INRIA (* *) (* This file is part of mldonkey. *) (* ...
null
https://raw.githubusercontent.com/ygrek/mldonkey/333868a12bb6cd25fed49391dd2c3a767741cb51/src/gtk/configwin/configwin_messages.ml
ocaml
************************************************************************ This file is part of mldonkey. or (at your option) any ...
Copyright 2003 , 2002 b8_bavard , , , b52_simon INRIA 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 , is distributed in the hope ...
4db8c853938e9d417bb870e0531768ec69d2f044eecca6e37065db03d29d1a0a
vii/teepeedee2
frame.lisp
(in-package #:tpd2.webapp) (defmyclass (frame (:include simple-channel)) current-page (site (current-site)) variables (username (random-name)) timeout trace-info destroy-hooks) (defvar *frames* (make-hash-table :test #'equalp)) (my-defun frame exit () (loop for hook in (my destroy-hooks) do...
null
https://raw.githubusercontent.com/vii/teepeedee2/a2ed78c51d782993591c3284562daeed3aba3d40/src/webapp/frame.lisp
lisp
(in-package #:tpd2.webapp) (defmyclass (frame (:include simple-channel)) current-page (site (current-site)) variables (username (random-name)) timeout trace-info destroy-hooks) (defvar *frames* (make-hash-table :test #'equalp)) (my-defun frame exit () (loop for hook in (my destroy-hooks) do...
f7cb72024b34d9e366b2639fc1abadb8b9f011139a3fe1d4d9146c8853c07fa8
sjl/newseasons
settings-vagrant.clj
(ns newseasons.settings) (def redis-pass "devpass") (def postmark-api-key "POSTMARK_API_TEST")
null
https://raw.githubusercontent.com/sjl/newseasons/9f3bce450b413ee065abcf1b6b5b7dbdd8728481/src/newseasons/settings-vagrant.clj
clojure
(ns newseasons.settings) (def redis-pass "devpass") (def postmark-api-key "POSTMARK_API_TEST")
ba417fcee20d738320e900f160be85a2688017e76ed862aeb23329de85257885
danr/hipspec
Int.hs
module Int where fac :: Int -> Int fac 0 = 0 fac n = n * fac (n - 1)
null
https://raw.githubusercontent.com/danr/hipspec/a114db84abd5fee8ce0b026abc5380da11147aa9/tfp1/tests/should_fail/Int.hs
haskell
module Int where fac :: Int -> Int fac 0 = 0 fac n = n * fac (n - 1)
d89bc6878735ea080a5d057b2f08e2108e01f0ccc5964136877ad6e1aae91c93
poscat0x04/telegram-types
PollOption.hs
module Web.Telegram.Types.Internal.PollOption where import Common | Information about one answer option in a poll . data PollOption = PollOption | Option text , 1 - 100 characters text :: Text, -- | Number of users that voted for this option voterCount :: Int } deriving stock (Show, Eq) mkLabel '...
null
https://raw.githubusercontent.com/poscat0x04/telegram-types/c09ccc81cff10399538894cf2d1273022c797e18/src/Web/Telegram/Types/Internal/PollOption.hs
haskell
| Number of users that voted for this option
module Web.Telegram.Types.Internal.PollOption where import Common | Information about one answer option in a poll . data PollOption = PollOption | Option text , 1 - 100 characters text :: Text, voterCount :: Int } deriving stock (Show, Eq) mkLabel ''PollOption deriveJSON snake ''PollOption
0898af6777a81b4339356d74c45cd58d0c5dc7c6534f3dd5bc77a638cf928acc
squirrel-prover/squirrel-prover
bullets.mli
(** Management of bullets and braces in proof scripts. *) (** Bullet symbols. *) type bullet = string (** Path through a proof tree under construction. *) type path val pp : Format.formatter -> path -> unit val initial_path : path val empty_path : path val is_empty : path -> bool val tactic_allowed : path -> boo...
null
https://raw.githubusercontent.com/squirrel-prover/squirrel-prover/d25b6dab570ea0e99915059a67599fd3a38caa8b/src/bullets.mli
ocaml
* Management of bullets and braces in proof scripts. * Bullet symbols. * Path through a proof tree under construction. * Multiple bullets or braces, bullet after brace, closing brace on unclosed goal or on goal without an open brace, or attempt to decorate empty path. * Raised if some operation is attem...
type bullet = string type path val pp : Format.formatter -> path -> unit val initial_path : path val empty_path : path val is_empty : path -> bool val tactic_allowed : path -> bool exception Decoration_not_allowed exception Closing_brace_needed exception Bullet_expected * Close current subgoal . val close_go...
adfda2d4f11801cd89d364a793154c86456a181406c14acb12fb5d4bcad944c8
yetanalytics/dl4clj
default_gradient.clj
(ns ^{:doc "Default gradient implementation. Basically lookup table for ndarrays see: "} dl4clj.nn.gradient.default-gradient (:import [org.deeplearning4j.nn.gradient DefaultGradient]) (:require [nd4clj.linalg.factory.nd4j :refer [vec-or-matrix->indarray]] [dl4clj.utils :refer [obj-or-code?]])) (def...
null
https://raw.githubusercontent.com/yetanalytics/dl4clj/9ef055b2a460f1a6246733713136b981fd322510/src/dl4clj/nn/gradient/default_gradient.clj
clojure
(ns ^{:doc "Default gradient implementation. Basically lookup table for ndarrays see: "} dl4clj.nn.gradient.default-gradient (:import [org.deeplearning4j.nn.gradient DefaultGradient]) (:require [nd4clj.linalg.factory.nd4j :refer [vec-or-matrix->indarray]] [dl4clj.utils :refer [obj-or-code?]])) (def...
a2c867113e158239c85a79ba389b13df2b51681f9fe56b4b1bab3c50f4ac8abe
weyrick/roadsend-php
output-buffering.scm
;; ***** BEGIN LICENSE BLOCK ***** Roadsend PHP Compiler Runtime Libraries Copyright ( C ) 2007 Roadsend , Inc. ;; ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 2....
null
https://raw.githubusercontent.com/weyrick/roadsend-php/d6301a897b1a02d7a85bdb915bea91d0991eb158/runtime/output-buffering.scm
scheme
***** BEGIN LICENSE BLOCK ***** This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License either version 2.1 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER...
Roadsend PHP Compiler Runtime Libraries Copyright ( C ) 2007 Roadsend , Inc. of the License , or ( at your option ) any later version . GNU Lesser General Public License for more details . You should have received a copy of the GNU Lesser General Public License Foundation , Inc. , 51 Franklin Street , Fifth...
7511b258a59fa1202d65ce5fce2fd6d77ac1ab422bf20199eb0dc15bcc2ca0e2
helins/wasm.cljc
read.cljc
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 /. (ns helins.wasm.read "Reading data from a WASM module represented as a BinF view. In other words, decompilation. Unless one wants to de...
null
https://raw.githubusercontent.com/helins/wasm.cljc/bef1393899089763e0114aefbaec6303838ec7a0/src/main/helins/wasm/read.cljc
clojure
Private helpers Conventions Values / Integers Values / Floating-Point Values / Names Types / Reference Types Types / Value Types Types / Result Types Types / Function Types Types / Limits Types / Memory Types Types / Table types Types / Global types Instructions / Reference Instructions Instructions / Va...
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 /. (ns helins.wasm.read "Reading data from a WASM module represented as a BinF view. In other words, decompilation. Unless one wants to de...
1ec7bf3193ac3b56d17c992a758b8405b8f85b66bc61531468557f000492dc6c
swaywm/cl-wlroots
output-damage-grovel.lisp
(in-package #:wlr/types/output-damage) (pkg-config-cflags "wlroots") (cc-flags "-DWLR_USE_UNSTABLE") (include "wlr/types/wlr_output_damage.h") (cstruct output-damage "struct wlr_output_damage" (:output "output" :type (:struct output)) (:event-damage-frame "events.frame" :type (:struct wl_signal)) (:event-destroy...
null
https://raw.githubusercontent.com/swaywm/cl-wlroots/f8a33979e45086ecd5c7deefd5ee067b941e0998/wlr/types/output-damage-grovel.lisp
lisp
(in-package #:wlr/types/output-damage) (pkg-config-cflags "wlroots") (cc-flags "-DWLR_USE_UNSTABLE") (include "wlr/types/wlr_output_damage.h") (cstruct output-damage "struct wlr_output_damage" (:output "output" :type (:struct output)) (:event-damage-frame "events.frame" :type (:struct wl_signal)) (:event-destroy...
2ed0351b1f27c823d8935a848f748b41708a7fc45c2a42b26c8dc2baa720369c
effectfully-ou/sketches
HFT.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE QuantifiedConstraints # {-# LANGUAGE RankNTypes #-} # LANGUAGE UndecidableInstances # module HFT where import FT import Control.Applicative import System.Random newtype Subsystem constr a = Subsystem { unSubsystem :: fo...
null
https://raw.githubusercontent.com/effectfully-ou/sketches/7b512a529292e8c4bce80526b3f2b938f8cc8e60/hierarchical-free-monads-mostly-pointless/src/HFT.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE RankNTypes #
# LANGUAGE QuantifiedConstraints # # LANGUAGE UndecidableInstances # module HFT where import FT import Control.Applicative import System.Random newtype Subsystem constr a = Subsystem { unSubsystem :: forall m. constr m => m a } instance (forall f. constr f => Functor f) => F...
ea5fedc9766b8b7fe4f88776716b03876ab7aabbbc9aed626a32026439192d29
bnoordhuis/chicken-core
srfi-4-tests.scm
;;;; srfi-4-tests.scm (use srfi-1 srfi-4) (define-syntax test1 (er-macro-transformer (lambda (x r c) (let* ((t (strip-syntax (cadr x))) (name (symbol->string (strip-syntax t)))) (define (conc op) (string->symbol (string-append name op))) `(let ((x (,(conc "vector") 100 101))) (prin...
null
https://raw.githubusercontent.com/bnoordhuis/chicken-core/56d30e3be095b6abe1bddcfe10505fa726a43bb5/tests/srfi-4-tests.scm
scheme
srfi-4-tests.scm
(use srfi-1 srfi-4) (define-syntax test1 (er-macro-transformer (lambda (x r c) (let* ((t (strip-syntax (cadr x))) (name (symbol->string (strip-syntax t)))) (define (conc op) (string->symbol (string-append name op))) `(let ((x (,(conc "vector") 100 101))) (print x) (assert (= 100...