_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
194600700d617cbd1d4b6157a699c479748ae0fdfb00b4528eb729971eb2db43
input-output-hk/cardano-ledger
Language.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE KindSignatures # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANG...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/49a84725c4c2ecabc80f6dac215881bc23920962/libs/cardano-ledger-core/src/Cardano/Ledger/Language.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # | This module provides data structures and operations for talking about Non-native Script languages. It is expected that new languages (or new versions of old languages) will be added here. | Non-Native Script language. This is an Enu...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE KindSignatures # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeApplications # module Cardano.Ledger.Language where import Cardano.Ledger.B...
5fdcc87004f1c351812d21ef76836b49d57aa674954479aaf9d05779e31762b1
helium/blockchain-core
blockchain_block_v1.erl
%%%------------------------------------------------------------------- %% @doc %% == Blockchain Block == %% @end %%%------------------------------------------------------------------- -module(blockchain_block_v1). -behavior(blockchain_block). -behavior(blockchain_json). -include("blockchain_json.hrl"). -export([ ...
null
https://raw.githubusercontent.com/helium/blockchain-core/7acb41a15793cb0c1be76fad78c13adeb61a5e1f/src/blockchain_block_v1.erl
erlang
------------------------------------------------------------------- @doc == Blockchain Block == @end ------------------------------------------------------------------- -------------------------------------------------------------------- @doc @end -------------------------------------------------------------------...
-module(blockchain_block_v1). -behavior(blockchain_block). -behavior(blockchain_json). -include("blockchain_json.hrl"). -export([ new/1, rescue/1, prev_hash/1, height/1, election_epoch/1, epoch_start/1, transactions/1, signatures/1, time/1, election_info/1, hbbft_round/1, ...
5d1fa731051fc5e5308ac3b1d4b4c3f554390afb37dd3a874b07340df6333d62
alephcloud/hs-configuration-tools
BoolOption.hs
# LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE UnicodeSyntax # -- | -- Module: Tests.BoolOption -- Description: Tests for 'boolOption' and 'boolOption_' Copyright : Copyright © 2015 PivotCloud , Inc. ...
null
https://raw.githubusercontent.com/alephcloud/hs-configuration-tools/987cc513206b76ad9e7426c33713a659d28229ae/test/Tests/BoolOption.hs
haskell
# LANGUAGE OverloadedStrings # | Module: Tests.BoolOption Description: Tests for 'boolOption' and 'boolOption_' Stability: experimental load in ghci with: -------------------------------------------------------------------------- -- Setup 'c' is taken by --config-file ---------------------------------------...
# LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE UnicodeSyntax # Copyright : Copyright © 2015 PivotCloud , Inc. License : MIT Maintainer : < > > ghci -isrc -idist / build / autogen -itest -iexamples -DREMOTE_CONFIGS test / TestEx...
d3853ee9c966285f0d1728aa9cf5fe9c009d7057a314e64c28de4577861e2566
amnh/PCG
Distance.hs
------------------------------------------------------------------------------- -- | -- Module : Analysis.Distance Copyright : ( c ) 2015 - 2021 Ward Wheeler -- License : BSD-style -- -- Maintainer : -- Stability : provisional -- Portability : portable -- ---------------------------------------...
null
https://raw.githubusercontent.com/amnh/PCG/9341efe0ec2053302c22b4466157d0a24ed18154/lib/core/analysis/src/Analysis/Distance.hs
haskell
----------------------------------------------------------------------------- | Module : Analysis.Distance License : BSD-style Maintainer : Stability : provisional Portability : portable --------------------------------------------------------------------------- # LANGUAGE FlexibleContexts ...
Copyright : ( c ) 2015 - 2021 Ward Wheeler # LANGUAGE AllowAmbiguousTypes # # LANGUAGE GADTs # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Analysis.Distance ( characterSequenceDistance , characterDistanceMatrix ) where import Analysis.Parsimony.Dyn...
f4b8c821062e0b93cbad90e03f0726602a02f6b1f7f3505a9ad8505c083197b4
arachne-framework/arachne-buildtools
buildtools.clj
(ns arachne.buildtools "Tools for building the Arachne project itself." {:boot/export-tasks true} (:refer-clojure :exclude [test]) (:require [clojure.set :as set] [clojure.java.io :as io] [clojure.edn :as edn] [clojure.string :as str] [boot.core :as b] ...
null
https://raw.githubusercontent.com/arachne-framework/arachne-buildtools/000cac1e8d7b51370b300106662951121a8e463c/src/arachne/buildtools.clj
clojure
(ns arachne.buildtools "Tools for building the Arachne project itself." {:boot/export-tasks true} (:refer-clojure :exclude [test]) (:require [clojure.set :as set] [clojure.java.io :as io] [clojure.edn :as edn] [clojure.string :as str] [boot.core :as b] ...
ac758de46d45b7ca6e21c3fa10475f35f2d8778b6247f32982d723aeeac9277f
district0x/district-registry
registry_entry.cljs
(ns district-registry.server.contract.registry-entry (:require [cljs-web3-next.eth :as web3-eth] [cljs-web3-next.utils :as web3-utils] [district-registry.server.contract.dnt :as dank-token] [district-registry.shared.utils :refer [vote-option->num]] [district.server.smar...
null
https://raw.githubusercontent.com/district0x/district-registry/c2dcf7978d2243a773165b18e7a76632d8ad724e/src/district_registry/server/contract/registry_entry.cljs
clojure
(ns district-registry.server.contract.registry-entry (:require [cljs-web3-next.eth :as web3-eth] [cljs-web3-next.utils :as web3-utils] [district-registry.server.contract.dnt :as dank-token] [district-registry.shared.utils :refer [vote-option->num]] [district.server.smar...
c3037fd56bf51a24ddb8b7a9b1807b62f284dade45a1b7fab2641617a92e420c
rroohhh/guix_packages
solvespace.scm
(define-module (vup solvespace) #:use-module (guix packages) #:use-module (guix git-download) #:use-module (guix build-system cmake) #:use-module (gnu packages pkg-config) #:use-module (gnu packages compression) #:use-module (gnu packages image) #:use-module (gnu packages fontutils) #:use-module (gnu pa...
null
https://raw.githubusercontent.com/rroohhh/guix_packages/9699a3b6e1aacc55c26914531849a2ffcb033c97/vup/solvespace.scm
scheme
For GtkFileChooserDialog.
(define-module (vup solvespace) #:use-module (guix packages) #:use-module (guix git-download) #:use-module (guix build-system cmake) #:use-module (gnu packages pkg-config) #:use-module (gnu packages compression) #:use-module (gnu packages image) #:use-module (gnu packages fontutils) #:use-module (gnu pa...
ad7747c79a88fee95e64c6bfc7f849f7e1c767bd803db327dbab6efa006426d2
hipsleek/hipsleek
dtest.ml
open VarGen #include "xdebug.cppo" let foo x = x+1 let foo x = let pr = string_of_int in Debug.ho_1 "foo" pr pr foo x let () = x_binfo_hp Gen.pr_id "hello" no_pos;; let () = x_binfo_hp Gen.pr_id "hello2" no_pos;; let () = x_binfo_hp Gen.pr_id "hello" no_pos;; let x = x_add foo 2 ;; let x = foo 3 ;; l...
null
https://raw.githubusercontent.com/hipsleek/hipsleek/596f7fa7f67444c8309da2ca86ba4c47d376618c/src/dtest.ml
ocaml
open VarGen #include "xdebug.cppo" let foo x = x+1 let foo x = let pr = string_of_int in Debug.ho_1 "foo" pr pr foo x let () = x_binfo_hp Gen.pr_id "hello" no_pos;; let () = x_binfo_hp Gen.pr_id "hello2" no_pos;; let () = x_binfo_hp Gen.pr_id "hello" no_pos;; let x = x_add foo 2 ;; let x = foo 3 ;; l...
f5233ff7ffc1c6c89711fc31c170c89b8270e32f0da5d74342b37bf65931a2a5
brendanhay/gogol
Patch.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/77394c4e0f5bd729e6fe27119701c45f9d5e1e9a/lib/services/gogol-classroom/gen/Gogol/Classroom/Courses/Topics/Patch.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated * Resource ** Constructing a Request | A resource alias for @classroom.courses.topics.patch@ method which the 'ClassroomCoursesTopicsPatch' request conforms to. /See:/ 'newClassroomCoursesTopicsPatch' smart constructor. | V...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
8f3fb4422f170834b75c177173137690b771899bda73fc04bd14567f7c2bebe1
lehitoskin/blight
msg-history.rkt
#lang racket/gui ; msg-history.rkt contains common message history functions and keymaps (require "../utils.rkt") (provide (all-defined-out)) (define (init-messages-keymap cw) (let ([km (new keymap%)]) (send km add-function "copy" (lambda (editor kev) (send editor copy)))...
null
https://raw.githubusercontent.com/lehitoskin/blight/807b0437c92ee41c68ca5a767d973817ae416b65/gui/msg-history.rkt
racket
msg-history.rkt replace with (send an-editor-canvas get-scroll-pos) ... scroll-to local-x local-y w h (define/public (get-pos) (values x y w h)) (define-values (x y w h) (send ecanvas get-pos)) replace with (send an-editor-canvas get-scroll-pos) ... open the right-click menu normal black a darker green than...
#lang racket/gui contains common message history functions and keymaps (require "../utils.rkt") (provide (all-defined-out)) (define (init-messages-keymap cw) (let ([km (new keymap%)]) (send km add-function "copy" (lambda (editor kev) (send editor copy))) ...
978de7240548a2f7ddd66809a4e1d9a4aa16bb75d8db06ef866176f7eea6165a
phoe-trash/gateway
package.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;; GATEWAY " phoe " Herda 2016 operations / package.lisp (defpackage #:gateway/operations (:use #:common-lisp #:alexandria #:phoe-toolbox #:gateway/utils #:gateway/protocol #:gateway/impl ...
null
https://raw.githubusercontent.com/phoe-trash/gateway/a8d579ccbafcaee8678caf59d365ec2eab0b1a7e/operations/package.lisp
lisp
GATEWAY
" phoe " Herda 2016 operations / package.lisp (defpackage #:gateway/operations (:use #:common-lisp #:alexandria #:phoe-toolbox #:gateway/utils #:gateway/protocol #:gateway/impl #:gateway/sql) (:export #:install #:uninstall #:reinstall ...
345eae6e6433197e3c6768db563888878b2b04829a1c58dcc89ea89770f404ae
slyrus/abcl
multiple-value-bind.lisp
multiple-value-bind.lisp ;;; Copyright ( C ) 2004 $ Id$ ;;; ;;; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version...
null
https://raw.githubusercontent.com/slyrus/abcl/881f733fdbf4b722865318a7d2abe2ff8fdad96e/src/org/armedbear/lisp/multiple-value-bind.lisp
lisp
This program is free software; you can redistribute it and/or either version 2 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details...
multiple-value-bind.lisp Copyright ( C ) 2004 $ Id$ modify it under the terms of the GNU General Public License of the License , or ( at your option ) any later version . You should have received a copy of the GNU General Public License Foundation , Inc. , 59 Temple Place - Suite 330 , Boston , MA 021...
8dc79f55d0f05a6f61e8e79b92ab6ef2dc97fb25dc8f84ba78f1ae7e88e68aca
juspay/medea
Medea.hs
{-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE MultiWayIf #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE Trustworthy # # LANGUAGE ...
null
https://raw.githubusercontent.com/juspay/medea/b493dd96f7f8d465ec95d3dafa0da430625c9c87/src/Data/Medea.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE DeriveDataTypeable # # LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | Description: A JSON schema language validator. Maintainer: Stability: Experimental validator, providing both schema graph file loading and validation, with some convenience functions. schema gr...
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE Trustworthy # # LANGUAGE TupleSections # Module : Data . Copyright : ( C ) Juspay Technologies Pvt Ltd , 2020 License : MIT Portability : GHC only...
9389cb8424ebb8d3b5fa06e1a2c55ea23789cd3d8092f85c5e13e8dec500721c
haskell/text
Search.hs
# LANGUAGE BangPatterns , ScopedTypeVariables # # LANGUAGE MagicHash # {-# LANGUAGE UnliftedFFITypes #-} -- | -- Module : Data.Text.Lazy.Search Copyright : ( c ) 2009 , 2010 -- -- License : BSD-style -- Maintainer : -- Stability : experimental Portability : GHC -- -- /Warning/: this is an interna...
null
https://raw.githubusercontent.com/haskell/text/13ac9711bc2cc0afa5f014e94afe2782bb75e8dc/src/Data/Text/Internal/Lazy/Search.hs
haskell
# LANGUAGE UnliftedFFITypes # | Module : Data.Text.Lazy.Search License : BSD-style Maintainer : Stability : experimental /Warning/: this is an internal module, and does not have a stable API or name. Functions in this module may not check or enforce preconditions expected by public modules. Use a...
# LANGUAGE BangPatterns , ScopedTypeVariables # # LANGUAGE MagicHash # Copyright : ( c ) 2009 , 2010 Portability : GHC Fast substring search for lazy ' Text ' , based on work by , Moore , Horspool , Sunday , and Lundh . Adapted from the strict module Data.Text.Internal.Lazy.Search ( indices ...
e5e053195c4540a7e219a7bd48554de1f11494dba819414f6844a9729bdd61b3
gmr/privatepaste
privatepaste.erl
%% ------------------------------------------------------------------ PrivatePaste Core Application %% ------------------------------------------------------------------ -module(privatepaste). -export([start/0, start/2, stop/0, stop/1]). -include("privpaste.hrl"). start() -> startApplication(), {ok, _Start...
null
https://raw.githubusercontent.com/gmr/privatepaste/4cc53473eb7e3d4d237df4b18fce573e3588ec24/src/privatepaste.erl
erlang
------------------------------------------------------------------ ------------------------------------------------------------------
PrivatePaste Core Application -module(privatepaste). -export([start/0, start/2, stop/0, stop/1]). -include("privpaste.hrl"). start() -> startApplication(), {ok, _Started} = application:ensure_all_started(privatepaste). start(_StartType, _StartArgs) -> startApplication(), privpaste_sup:start_link()...
2a83faa3550273702231345c945e60711ce02ac485a7114a452a1d1fd06d0aa5
binaryage/cljs-zones
core.cljs
(ns zones.tests.core (:refer-clojure :exclude [binding get]) (:require [cljs.test :refer-macros [async deftest testing is are]] [zones.core :as zones :refer-macros [binding get set! bound-fn* bound-fn]] [zones.tests.helpers :refer [print-default-zone]])) ; -- T0 ----------------------------...
null
https://raw.githubusercontent.com/binaryage/cljs-zones/17402d8b51ca6a56ce6ffdedf20b563a966cfe47/test/src/tests/zones/tests/core.cljs
clojure
-- T0 --------------------------------------------------------------------------------------------------------------------- -- T1 --------------------------------------------------------------------------------------------------------------------- -- T2 ---------------------------------------------------------------...
(ns zones.tests.core (:refer-clojure :exclude [binding get]) (:require [cljs.test :refer-macros [async deftest testing is are]] [zones.core :as zones :refer-macros [binding get set! bound-fn* bound-fn]] [zones.tests.helpers :refer [print-default-zone]])) (defn test0 [] (let [v-val "I'm a...
92ebdfba7c8ced48adda51b0affcffb3cfb9c9627d14b3a1b27bdde1817fb2b4
tweag/ormolu
pragma-out.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE IncoherentInstances # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ViewPatterns # # OPTIONS_GHC -O2 -H 300 # {-# OPTIONS_GHC -Wall -Werror #-} # OPTIONS_HADDOCK prune , show - extensions # -- | Header comment. module Foo () whe...
null
https://raw.githubusercontent.com/tweag/ormolu/34bdf62429768f24b70d0f8ba7730fc4d8ae73ba/data/examples/other/pragma-out.hs
haskell
# LANGUAGE OverloadedStrings # # OPTIONS_GHC -Wall -Werror # | Header comment.
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE IncoherentInstances # # LANGUAGE LambdaCase # # LANGUAGE ViewPatterns # # OPTIONS_GHC -O2 -H 300 # # OPTIONS_HADDOCK prune , show - extensions # module Foo () where
1b47810a18a71af1a33b35e6b6fcb76afc5e5a334f92aad590a19b7d948645ce
dgiot/dgiot
dgiot_mock_mqtt.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/e172aeae8b22375495c762ef5f3bc22e6ab09d9b/apps/dgiot_dlink/src/mock/dgiot_mock_mqtt.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_mock_mqtt). -author("johnliu"). -include_lib("dgiot/include/logger.hrl"). -includ...
dbf7238a51a5a9c9f99c84b3b311e1375d03aa8b04fcf8c5efa6bb628f75a6b8
patricoferris/ocaml-multicore-monorepo
myocamlbuild.ml
open Ocamlbuild_plugin open Command let os = Ocamlbuild_pack.My_unix.run_and_read "uname -s" let system_support_lib = match os with | "Linux\n" -> [A "-cclib"; A "-lrt"] | _ -> [] let lib s = match !Ocamlbuild_plugin.Options.ext_lib with | "" -> s ^ ".a" | x -> s ^ "." ^ x let js_rule () = let dep = "%.byte...
null
https://raw.githubusercontent.com/patricoferris/ocaml-multicore-monorepo/22b441e6727bc303950b3b37c8fbc024c748fe55/duniverse/ptime/myocamlbuild.ml
ocaml
ptime ptime_clock_os ptime_clock_jsoo
open Ocamlbuild_plugin open Command let os = Ocamlbuild_pack.My_unix.run_and_read "uname -s" let system_support_lib = match os with | "Linux\n" -> [A "-cclib"; A "-lrt"] | _ -> [] let lib s = match !Ocamlbuild_plugin.Options.ext_lib with | "" -> s ^ ".a" | x -> s ^ "." ^ x let js_rule () = let dep = "%.byte...
9e394f00d2e27c5d645841a3b3554b8cfe5dcab0b12808a46f97a5da2542f5d3
andrewMacmurray/haskell-book-solutions
Exercises.hs
module Ch23.Exercises where newtype State s a = State { runState :: s -> (a, s) } get :: State s s get = State (\s -> (s, s)) put :: s -> State s () put s = State (\_ -> ((), s)) exec :: State s a -> s -> s exec (State sa) s = snd (sa s) eval :: State s a -> s -> a eval (State sa) s = fst (sa s) modify ::...
null
https://raw.githubusercontent.com/andrewMacmurray/haskell-book-solutions/f4fd386187c03828d1736d9a43642ab4f0ec6462/src/ch23/Exercises.hs
haskell
module Ch23.Exercises where newtype State s a = State { runState :: s -> (a, s) } get :: State s s get = State (\s -> (s, s)) put :: s -> State s () put s = State (\_ -> ((), s)) exec :: State s a -> s -> s exec (State sa) s = snd (sa s) eval :: State s a -> s -> a eval (State sa) s = fst (sa s) modify ::...
56ec91b81c1f26e2b69d81290ad37635e36618af649b666c50f60c3d37f7e814
seckcoder/course-compiler
s2_15.rkt
;; A very simple test to trigger allocation and deletion of vectors use the test suite option --heap - size 1028 and this test should ;; easily cause an collection. ;; Conservative estimate: 50 words per vector * 8 bytes per word * 3 vectors = 1200 bytes (let ([v0 (vector 0 1 2 3 4 5 6 7 8 9 10 11...
null
https://raw.githubusercontent.com/seckcoder/course-compiler/4363e5b3e15eaa7553902c3850b6452de80b2ef6/tests/s2_15.rkt
racket
A very simple test to trigger allocation and deletion of vectors easily cause an collection. Conservative estimate:
use the test suite option --heap - size 1028 and this test should 50 words per vector * 8 bytes per word * 3 vectors = 1200 bytes (let ([v0 (vector 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 ...
3084ae52995a079dceecbcb7a9d8de03bccfe4582d45c3d0b7c2d715c3366b73
asakeron/cljs-webgl
lesson_02.cljs
(ns learningwebgl.lesson-02 (:require [mat4] [learningwebgl.common :refer [init-gl init-shaders get-perspective-matrix get-position-matrix]] [cljs-webgl.buffers :refer [create-buffer clear-color-buffer draw!]] [cljs-webgl.shaders :refer [get-attrib-location]] [cljs-webgl.constants.buffer-object :a...
null
https://raw.githubusercontent.com/asakeron/cljs-webgl/f4554fbee6fbc6133a4eb0416548dabd284e735c/examples/src/learningwebgl/lesson_02.cljs
clojure
(ns learningwebgl.lesson-02 (:require [mat4] [learningwebgl.common :refer [init-gl init-shaders get-perspective-matrix get-position-matrix]] [cljs-webgl.buffers :refer [create-buffer clear-color-buffer draw!]] [cljs-webgl.shaders :refer [get-attrib-location]] [cljs-webgl.constants.buffer-object :a...
f7ca162aaac31c63dbc7259d7b277caf84fdc34b5ed05db0f9ffbb3fa9f1c130
jakemcc/sicp-study
1.22.clj
Exercise 1.22 Code taken from exercise 1.21 (defn divides? [a b] (= (mod b a) 0)) (defn square [x] (* x x)) (defn find-divisor [n test-divisor] (cond (> (square test-divisor) n) n (divides? test-divisor n) test-divisor :else (recur n (+ test-divisor 1)))) (defn smallest-divisor [n] (find-diviso...
null
https://raw.githubusercontent.com/jakemcc/sicp-study/3b9e3d6c8cc30ad92b0d9bbcbbbfe36a8413f89d/clojure/section1.2/1.22.clj
clojure
Helper functions for estimating runtime of numbers an order of magnitude higher prime *** time to find -> 506057.18577163905 -> 1537832.4916207371 -> 2957797.408014018 The time when testing different size numbers tends to match the estimated increase in cost.
Exercise 1.22 Code taken from exercise 1.21 (defn divides? [a b] (= (mod b a) 0)) (defn square [x] (* x x)) (defn find-divisor [n test-divisor] (cond (> (square test-divisor) n) n (divides? test-divisor n) test-divisor :else (recur n (+ test-divisor 1)))) (defn smallest-divisor [n] (find-diviso...
131bfa249cd2d343c3dbbf1bd81ce8f49570c31592bab480edea3b3846adfba8
GaloisInc/daedalus
Strategy.hs
# LANGUAGE TypeApplications # # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # -- {-# Language OverloadedStrings #-} module Talos.Strategy (allStrategies, parseStrategies, ModelCache, newModelCache, findModel) where import Control.DeepSeq (force) import Control.Exception (evaluate) im...
null
https://raw.githubusercontent.com/GaloisInc/daedalus/3f180d29441960e35386654ec79a2b205bddc157/talos/src/Talos/Strategy.hs
haskell
{-# Language OverloadedStrings #-} Returns the result and wall-clock time (in ns) FIXME: There is probably a nicer way of doing this -- go s [] = pure (Nothing, s) -- go s (strat : strats) = do ( m_r , s ' ) < - runStrategy s strat ptag sl case m_r of Just { } - > pure ( m_r , s ' ) -- ...
# LANGUAGE TypeApplications # # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # module Talos.Strategy (allStrategies, parseStrategies, ModelCache, newModelCache, findModel) where import Control.DeepSeq (force) import Control.Exception (evaluate) import Control.Lens ...
754f4030af96882a5061e0d4fc3cf4042841ec3dbc1671c66365d9206beb4403
tclem/twirp-haskell
Haberdasher.hs
-- Code generated by protoc-gen-twirp_haskell 0.1.1, DO NOT EDIT. # LANGUAGE TypeOperators # {-# OPTIONS_GHC -Wno-unused-imports#-} module Twirp.Example.Haberdasher.Haberdasher where import Servant import Twirp import Proto.Haberdasher import Proto.Haberdasher_JSON() -- This is an example set of twirp services. ty...
null
https://raw.githubusercontent.com/tclem/twirp-haskell/4e23de13a60f317a1d1becc56f9ac3d44299c1c5/example/app/Twirp/Example/Haberdasher/Haberdasher.hs
haskell
Code generated by protoc-gen-twirp_haskell 0.1.1, DO NOT EDIT. # OPTIONS_GHC -Wno-unused-imports# This is an example set of twirp services. Get paid Health check service
# LANGUAGE TypeOperators # module Twirp.Example.Haberdasher.Haberdasher where import Servant import Twirp import Proto.Haberdasher import Proto.Haberdasher_JSON() type HaberdasherAPI = "twirp" :> "twirp.example.haberdasher.Haberdasher" :> HaberdasherService :<|> "twirp" :> "twirp.example.haberdasher.Health" ...
a1a04586ca1fc5bb873dfa60620ea4ff3e093564a2021fc9545fc91315639d87
bkc39/ocaml-prelude
function.ml
let id x = x let const x _ = x let flip f x y = f y x let rec until p f a = if p a then a else until p f (f a) let rec undefined () = failwith "Base.undefined" let curry f x y = f (x,y) let uncurry f (x, y) = f x y
null
https://raw.githubusercontent.com/bkc39/ocaml-prelude/59e17e868420a3abb05dcbfd5c82892a29cdd1aa/data/function.ml
ocaml
let id x = x let const x _ = x let flip f x y = f y x let rec until p f a = if p a then a else until p f (f a) let rec undefined () = failwith "Base.undefined" let curry f x y = f (x,y) let uncurry f (x, y) = f x y
7c7d2e568e163b7e91818b9445d2db17d63c45a9bf0ac9cd0644b6ee8462ae0f
AccelerateHS/accelerate-llvm
Atomic.hs
{-# LANGUAGE CPP #-} # LANGUAGE MultiParamTypeClasses # {-# OPTIONS_HADDOCK hide #-} -- | Module : . Instruction . Atomic Copyright : [ 2016 .. 2020 ] The Accelerate Team -- License : BSD3 -- Maintainer : < > -- Stability : experimental Portability : non - portable ( GHC ...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate-llvm/cf081587fecec23a19f68bfbd31334166868405e/accelerate-llvm/src/LLVM/AST/Type/Instruction/Atomic.hs
haskell
# LANGUAGE CPP # # OPTIONS_HADDOCK hide # | License : BSD3 Stability : experimental | Atomic instructions take ordering parameters that determine which other atomic instructions on the same address they synchronise with. <> <#atomic-memory-ordering-constraints> operations running in...
# LANGUAGE MultiParamTypeClasses # Module : . Instruction . Atomic Copyright : [ 2016 .. 2020 ] The Accelerate Team Maintainer : < > Portability : non - portable ( GHC extensions ) module LLVM.AST.Type.Instruction.Atomic where import LLVM.AST.Type.Downcast import qualified LLVM.AST.Instructi...
fcb9f413a484d6e1e4632cf57392d659c2b0e26f74d8e038d99e407904aefad7
tonyg/racket-something
very-complex-macro.rkt
#lang something // -*- sth -*- require for-syntax something/base something/infix rename-in (only-in racket/match match) (match base_match) def-operator my-match #f prefix-macro my-match def-syntax my-match stx (parse #f) syntax-case stx (block) _ subject ... (block (match-pat ... (block body ...)) ...) ...
null
https://raw.githubusercontent.com/tonyg/racket-something/4a00a9a6d37777f5aab4f28b03c53555b87e21d7/examples/very-complex-macro.rkt
racket
w ] } . ( my - match car . list 597 598 599 { : [ " foo " ; ] ; baz : [ " " ; baz ] } ) . list 3 4 v] x]
#lang something // -*- sth -*- require for-syntax something/base something/infix rename-in (only-in racket/match match) (match base_match) def-operator my-match #f prefix-macro my-match def-syntax my-match stx (parse #f) syntax-case stx (block) _ subject ... (block (match-pat ... (block body ...)) ...) ...
271f41a86136499c71327b988f626024a452425b97d157db5db54f4bef00c0f0
clojure/test.check
test.cljc
Copyright ( c ) , , and contributors . ; 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 a...
null
https://raw.githubusercontent.com/clojure/test.check/c05034f911fa140913958b79aa51017d3f2f4426/src/test/clojure/clojure/test/check/test.cljc
clojure
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 terms of this license....
Copyright ( c ) , , and contributors . (ns clojure.test.check.test #?(:cljs (:refer-clojure :exclude [infinite?])) (:require #?(:cljs [cljs.test :as test :refer-macros [deftest testing is]]) #?(:clj [clojure.test :refer :all]) [clojure.test.check :...
fc86104f5f70df00be643a763b4d4eec5a041dff54567552ddfa05a1e8d5a0ee
jellelicht/guix
utils.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2012 , 2013 , 2014 , 2015 , 2016 < > Copyright © 2013 , 2014 , 2015 < > Copyright © 2014 < > Copyright © 2014 < > Copyright © 2016 < > Copyright © 2015 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software...
null
https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/guix/utils.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 , 2014 , 2015 , 2016 < > Copyright © 2013 , 2014 , 2015 < > Copyright © 2014 < > Copyright © 2014 < > Copyright © 2016 < > Copyright © 2015 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General ...
ea01106f2497f3b0c43aaf5b54981de4d108a564efc214f558a401ce8c69840b
futurice/haskell-mega-repo
GenKeys.hs
{-# LANGUAGE OverloadedStrings #-} module Futurice.App.MegaRepoTool.GenKeys where import Futurice.Prelude import Prelude () import qualified Crypto.Sign.Ed25519 as Ed import qualified Data.ByteString.Base16 as Base16 import qualified Data.Text.IO as T cmdGenKeys :: IO () cmdGenKeys = do (Ed.PublicKe...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/2647723f12f5435e2edc373f6738386a9668f603/mega-repo-tool/src/Futurice/App/MegaRepoTool/GenKeys.hs
haskell
# LANGUAGE OverloadedStrings #
module Futurice.App.MegaRepoTool.GenKeys where import Futurice.Prelude import Prelude () import qualified Crypto.Sign.Ed25519 as Ed import qualified Data.ByteString.Base16 as Base16 import qualified Data.Text.IO as T cmdGenKeys :: IO () cmdGenKeys = do (Ed.PublicKey pk', Ed.SecretKey sk') <- Ed.crea...
5ebf4ff0ffbca164889acbb73c3236e2928667e37c665c7c8555e2ac4bd8441f
exoscale/clojure-kubernetes-client
v1_quobyte_volume_source.clj
(ns clojure-kubernetes-client.specs.v1-quobyte-volume-source (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] ) (:import (java.io File))) (declare v1-quobyte-volume-source-data v1-quobyte-volume-source) (def v1-quobyte-volume-source-data { (ds/opt :group) string? ...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1_quobyte_volume_source.clj
clojure
(ns clojure-kubernetes-client.specs.v1-quobyte-volume-source (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] ) (:import (java.io File))) (declare v1-quobyte-volume-source-data v1-quobyte-volume-source) (def v1-quobyte-volume-source-data { (ds/opt :group) string? ...
330ac129095a58e0a432d9f14711b687f48d9fa14089b33137e4e1e7c90c8b4c
joneshf/open-source
Build.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # {-# LANGUAGE PackageImports #-} # LANGUAGE TypeApplications # module Shake.Haskell.Build (rules) where import "base" Control.Monad.IO.Class (liftIO) import "mtl" Control.Monad.Reader (ReaderT, asks, lift) import "shake" Development.Shake ( CmdOption...
null
https://raw.githubusercontent.com/joneshf/open-source/e3412fc68c654d89a8d3af4e12ac19c70e3055ec/Shake/Haskell/Build.hs
haskell
# LANGUAGE PackageImports #
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE TypeApplications # module Shake.Haskell.Build (rules) where import "base" Control.Monad.IO.Class (liftIO) import "mtl" Control.Monad.Reader (ReaderT, asks, lift) import "shake" Development.Shake ( CmdOption(Cwd, FileStdout, Traced) , ...
e5321edd3b3203d2f804a67a54c6a896e19bd1a66e748fb974e6d4ec13f1d0e8
MassD/pearls
max_sum_non_seg.ml
let max x y = if x > y then x else y let max_in = List.fold_left max min_int let sum = List.fold_left (+) 0 let rec markings = function | [] -> [[]] | hd::tl -> let m = markings tl in let f x b y = (x,b)::y in List.map (f hd true) m @ List.map (f hd false) m type state = E | S | M | N let step s x ...
null
https://raw.githubusercontent.com/MassD/pearls/da73f49ffe61125c1def4f2b3ed339963318dbec/11_not_max_segment_sum/max_sum_non_seg.ml
ocaml
* Best way *
let max x y = if x > y then x else y let max_in = List.fold_left max min_int let sum = List.fold_left (+) 0 let rec markings = function | [] -> [[]] | hd::tl -> let m = markings tl in let f x b y = (x,b)::y in List.map (f hd true) m @ List.map (f hd false) m type state = E | S | M | N let step s x ...
f8c870ea27a9fececfc48ca42111351bd22015559562a4a48d83f241b9693dee
hmac/kite
Parse.hs
module Integration.Parse ( test ) where import System.Directory ( listDirectory ) import System.FilePath.Posix ( (</>) ) import Test.Hspec import Syn ( Module ) import Syn.Parse ( parseKiteFile...
null
https://raw.githubusercontent.com/hmac/kite/f58758f20310e23cb50eb41537ec04bfa820cc90/test/Integration/Parse.hs
haskell
module Integration.Parse ( test ) where import System.Directory ( listDirectory ) import System.FilePath.Posix ( (</>) ) import Test.Hspec import Syn ( Module ) import Syn.Parse ( parseKiteFile...
a26410ca24f22a01e734cb4ece648d19ab6b2e73633012702704f58d14d99ae9
lingnand/VIMonad
Shell.hs
| Module : XMonad . Prompt . Shell Copyright : ( C ) 2007 License : BSD3 Maintainer : Stability : unstable Portability : unportable A shell prompt for XMonad Module : XMonad.Prompt.Shell Copyright : (C) 2007 Andrea Rossato License : BSD3 Maintainer :...
null
https://raw.githubusercontent.com/lingnand/VIMonad/048e419fc4ef57a5235dbaeef8890faf6956b574/XMonadContrib/XMonad/Prompt/Shell.hs
haskell
* Usage $usage ** Variations on shellPrompt $spawns * Utility functions In order to /set/ an environment variable (eg. combine with a prompt so you can modify @$HTTP_PROXY@ dynamically), you need to use 'System.Posix.putEnv'.
| Module : XMonad . Prompt . Shell Copyright : ( C ) 2007 License : BSD3 Maintainer : Stability : unstable Portability : unportable A shell prompt for XMonad Module : XMonad.Prompt.Shell Copyright : (C) 2007 Andrea Rossato License : BSD3 Maintainer :...
583a5d8d0fcf153d103cc7aa939af067eaf838b6865056d864b5ac7b7099ca98
htmfilho/minimily
messenger.clj
(ns minimily.utils.messenger (:require [postal.core :as postal] [config.core :refer [env]])) (defn post [message] (postal/send-message {:host (or (:EMAIL_HOST env) (System/getenv "EMAIL_HOST")) :user (or (:EMAIL_USER env) (System/getenv "EMAIL_USER")) :pa...
null
https://raw.githubusercontent.com/htmfilho/minimily/b317b6b67bc79773163f1a6f7c3b46db795ef979/src/minimily/utils/messenger.clj
clojure
(ns minimily.utils.messenger (:require [postal.core :as postal] [config.core :refer [env]])) (defn post [message] (postal/send-message {:host (or (:EMAIL_HOST env) (System/getenv "EMAIL_HOST")) :user (or (:EMAIL_USER env) (System/getenv "EMAIL_USER")) :pa...
b64313ab15644277d598a2bc7e581e97e8c6a639bf1d9d4ea582f8cf22e83b31
mankyKitty/fantastic-waddle
Internal.hs
# LANGUAGE CPP # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} module WebGL.Internal where import Control.Lens (Getter, to, Lens', (^.), (^?)) import Control.Monad (unless, void) import Control.Monad.Excep...
null
https://raw.githubusercontent.com/mankyKitty/fantastic-waddle/680ca473bf7141c63528195ae23cb799b2fb0eac/frontend/src/WebGL/Internal.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # just an alias for distribute This texture is our working space, so initialise to "null"
# LANGUAGE CPP # module WebGL.Internal where import Control.Lens (Getter, to, Lens', (^.), (^?)) import Control.Monad (unless, void) import Control.Monad.Except (throwError) import Data.Bool ...
c1da8fec166c1817d37cf9749a5ab1ede8b831d47f7f585a27d69eea6b3df035
janestreet/merlin-jst
warnings.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/janestreet/merlin-jst/980b574405617fa0dfb0b79a84a66536b46cd71b/src/ocaml/utils/warnings.ml
ocaml
************************************************************************ OCaml ...
Pierre Weis & & Damien Doligez , INRIA Rocquencourt Copyright 1998 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the When you change this , you need to update : - the list ' description ' at the bottom of...
7735d9851679242528f6aa0e65a614aa419818ae25f3dfc1253ace5462aa50a9
hexlet-basics/exercises-haskell
Solution.hs
module Solution where greet :: String -> String greet who = "Hello, " <> who <> "!"
null
https://raw.githubusercontent.com/hexlet-basics/exercises-haskell/0489a19f119aed5491510cf913bb83db91bc23c4/modules/10-basics/20-haskell-as-a-second-language/Solution.hs
haskell
module Solution where greet :: String -> String greet who = "Hello, " <> who <> "!"
952f0b3b9bd576c572e359db9072968e21e4d89286fec6355fac9e6fd1e87979
semilin/layoup
NRST-ex.lisp
(MAKE-LAYOUT :NAME "NRST-ex" :MATRIX (APPLY #'KEY-MATRIX 'NIL) :SHIFT-MATRIX NIL :KEYBOARD NIL)
null
https://raw.githubusercontent.com/semilin/layoup/27ec9ba9a9388cd944ac46206d10424e3ab45499/data/layouts/NRST-ex.lisp
lisp
(MAKE-LAYOUT :NAME "NRST-ex" :MATRIX (APPLY #'KEY-MATRIX 'NIL) :SHIFT-MATRIX NIL :KEYBOARD NIL)
bbef27208c17a5d26f894c2c6ae14a03806725b22f38f27ce3828cc759fc3daa
vollmerm/lalla-chess
score.lisp
score.lisp (in-package #:lalla) (declaim (optimize speed)) (defparameter* (piece-scores (simple-array (signed-byte 16) (8))) (make-array 8 :element-type '(signed-byte 16) :initial-contents '(0 100 100 320 325 500 975 1500))) (defparameter* (pawn-table (simple-array (signed-byte 16) (136))) (make-...
null
https://raw.githubusercontent.com/vollmerm/lalla-chess/62e4068eba7f3288c6e99a7977bd0cc4f4f4190b/score.lisp
lisp
score.lisp (in-package #:lalla) (declaim (optimize speed)) (defparameter* (piece-scores (simple-array (signed-byte 16) (8))) (make-array 8 :element-type '(signed-byte 16) :initial-contents '(0 100 100 320 325 500 975 1500))) (defparameter* (pawn-table (simple-array (signed-byte 16) (136))) (make-...
0675797cf3d2a98e126e5a438aaead99f7beb33e6e98cad84a7d696fe39e3e47
ygmpkk/house
StdPictureDef.hs
----------------------------------------------------------------------------- -- | Module : StdPictureDef Copyright : ( c ) 2002 -- License : BSD-style -- -- Maintainer : -- Stability : provisional -- Portability : portable -- StdPictureDef contains the predefined figures that can be d...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/ObjectIO/Graphics/UI/ObjectIO/StdPictureDef.hs
haskell
--------------------------------------------------------------------------- | License : BSD-style Maintainer : Stability : provisional Portability : portable --------------------------------------------------------------------------- A box is a rectangle The width of the box The height of the b...
Module : StdPictureDef Copyright : ( c ) 2002 StdPictureDef contains the predefined figures that can be drawn . module Graphics.UI.ObjectIO.StdPictureDef(module Graphics.UI.ObjectIO.StdPictureDef, Font(..)) where import Graphics.UI.ObjectIO.StdIOBasic import Graphics.UI.ObjectIO.OS.Font (Font(.....
00a32a59fbd0b602a0b5f08000a165c2644c36479df432db55e2a48d5050585e
victorvianna/mini-gcc
rtltree.ml
* { 2 Register Transfer Language } open Ops type register = Register.t type label = Label.t * Les différents instructions RTL . Chaque instruction contient la ou les étiquettes suivantes dans le graphe de flot de contrôle . Chaque instruction contient la ou les étiquettes suivantes dans le grap...
null
https://raw.githubusercontent.com/victorvianna/mini-gcc/04659816d0a1097ae12b57243572fff9e91c0b13/rtltree.ml
ocaml
* attention au sens : [op r1 r2] représente [r2 <- r2 op r1] * attention au sens : [br r1 r2] représente [r2 br r1]
* { 2 Register Transfer Language } open Ops type register = Register.t type label = Label.t * Les différents instructions RTL . Chaque instruction contient la ou les étiquettes suivantes dans le graphe de flot de contrôle . Chaque instruction contient la ou les étiquettes suivantes dans le grap...
9772a43880da0820007b9b769aadd80421532f3e3b1bde134683b9f905551c8d
learningclojurescript/code-examples
core.cljs
(ns raw-goog.core (:require [goog.dom :as dom] [goog.events :as events])) (def cnt-holder (dom/getElement "clicks")) (def reset-btn (dom/getElement "reset-btn")) (def cnt (atom 0)) (defn inc-clicks! [] (dom/setTextContent cnt-holder (swap! cnt inc))) (defn reset-clicks! [] (dom/setTextConten...
null
https://raw.githubusercontent.com/learningclojurescript/code-examples/fdbd0e35ae5a16d53f1f784a52c25bcd4e5a8097/chapter-4/raw_goog/src/raw_goog/core.cljs
clojure
(ns raw-goog.core (:require [goog.dom :as dom] [goog.events :as events])) (def cnt-holder (dom/getElement "clicks")) (def reset-btn (dom/getElement "reset-btn")) (def cnt (atom 0)) (defn inc-clicks! [] (dom/setTextContent cnt-holder (swap! cnt inc))) (defn reset-clicks! [] (dom/setTextConten...
de2d90c3f7a0fe311f78a0f4c32422f629e00794bfd004df68d69f67d4c43505
zcaudate/hara
abstract.clj
(ns hara.module.base.abstract (:require [clojure.walk :as walk] [hara.core.base.check :as check])) (defn protocol-basis "Helper function that transforms the functions in the protocol to the neccessary format in preparation for extend-abstract and extend-implementations (defprotocol IData (-data...
null
https://raw.githubusercontent.com/zcaudate/hara/481316c1f5c2aeba5be6e01ae673dffc46a63ec9/src/hara/module/base/abstract.clj
clojure
(ns hara.module.base.abstract (:require [clojure.walk :as walk] [hara.core.base.check :as check])) (defn protocol-basis "Helper function that transforms the functions in the protocol to the neccessary format in preparation for extend-abstract and extend-implementations (defprotocol IData (-data...
84f8cdabf1454cf670e7c7390b86410996b7c43facd7d9bf947907d9db8d5ba9
haguenau/wyrd
make_oasis.ml
#!/usr/bin/env ocaml #use "topfind";; #thread;; (* Batteries apparently needs this... *) #require "batteries";; open Batteries;; let input_filename = "_oasis.in" in let output_filename = "_oasis" in Extract the VERSION = x.y.z line from Makefile.in let makefile_version_number = let version_regex = Str.regexp...
null
https://raw.githubusercontent.com/haguenau/wyrd/490ce39ad9ecf36969eb74b9f882f85a1ef14ba3/make_oasis.ml
ocaml
Batteries apparently needs this... Plug this version into the appropriate place in _oasis.in
#!/usr/bin/env ocaml #use "topfind";; #require "batteries";; open Batteries;; let input_filename = "_oasis.in" in let output_filename = "_oasis" in Extract the VERSION = x.y.z line from Makefile.in let makefile_version_number = let version_regex = Str.regexp "^VERSION[ \\t]*=\\([^ \\t]+\\)[ \\t]*$" in let li...
369e6fd23becfb44fca71bf0ac98e34e9fa49834ac9f253e6f59273199524bbd
kelamg/HtDP2e-workthrough
ex198.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname ex198) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decima...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Arbitrarily-Large-Data/ex198.rkt
racket
about the language level of this file in a form that our tools can easily process. A Dictionary is a List-of-strings. – "a" – ... – "z" or, equivalently, a member? of this list: (make-lcount Letter N) interp. (make-lcount s n) means s appears as the - '() - '() - (cons Letter LoL) - '() - (cons Diction...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname ex198) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (require 2htdp/batch-io) (define LOCATION "/usr/share/dict/...
8b38395f9fc273577bbb3e6944b5e5beecfb137e9fb2f94d8b34b9a2ee89d87a
ekmett/unboxed
Maybe.hs
{-# Language MagicHash #-} # Language NoImplicitPrelude # module Unboxed.Maybe ( Maybe , MaybeD , MaybeRep(..) , Maybe#(..) , MaybeRep#(..) ) where import Unboxed.Class () import Unboxed.Internal.Maybe
null
https://raw.githubusercontent.com/ekmett/unboxed/e4c6ca80fb8946b1abfe595ba1c36587a33931db/src/Unboxed/Maybe.hs
haskell
# Language MagicHash #
# Language NoImplicitPrelude # module Unboxed.Maybe ( Maybe , MaybeD , MaybeRep(..) , Maybe#(..) , MaybeRep#(..) ) where import Unboxed.Class () import Unboxed.Internal.Maybe
b8bbbb2e92926ac19a4aa0d1e2cab846af68b656760d751b10fad96b59e9413e
haskell-compat/base-compat
Batteries.hs
{-# LANGUAGE PackageImports #-} # OPTIONS_GHC -fno - warn - dodgy - exports -fno - warn - unused - imports # -- | Reexports "Foreign.ForeignPtr.Compat" -- from a globally unique namespace. module Foreign.ForeignPtr.Compat.Repl.Batteries ( module Foreign.ForeignPtr.Compat ) where import "this" Foreign.ForeignPtr.Compa...
null
https://raw.githubusercontent.com/haskell-compat/base-compat/847aa35c4142f529525ffc645cd035ddb23ce8ee/base-compat-batteries/src/Foreign/ForeignPtr/Compat/Repl/Batteries.hs
haskell
# LANGUAGE PackageImports # | Reexports "Foreign.ForeignPtr.Compat" from a globally unique namespace.
# OPTIONS_GHC -fno - warn - dodgy - exports -fno - warn - unused - imports # module Foreign.ForeignPtr.Compat.Repl.Batteries ( module Foreign.ForeignPtr.Compat ) where import "this" Foreign.ForeignPtr.Compat
9df55ceb1d6c8d786489c43db9cfdb0b9a1a64f91135bf41632fcf28f099cd6a
ghcjs/jsaddle-dom
Attr.hs
# LANGUAGE PatternSynonyms # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.Attr (getNamespaceURI, getNamespaceURIUnsafe, getNamespaceURIUnchecked, getPrefix, getPrefixUnsafe, getPref...
null
https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/Attr.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | <-US/docs/Web/API/Attr.specified Mozilla Attr.specified documentation>
# LANGUAGE PatternSynonyms # # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.Attr (getNamespaceURI, getNamespaceURIUnsafe, getNamespaceURIUnchecked, getPrefix, getPrefixUnsafe, getPrefixUnchecked, getLocalName, getName, setValue, getValue, getOwnerElement, getOwnerEl...
1f32082e8b621e618ccb5326bf5c045969ae878aff8dbdbc446d37b22c084e09
manuel-serrano/bigloo
rtl.scm
(module saw_rtl (import type_type ;; needed for ast_var !! ast_var ;; local/global ast_node ;; node saw_lib saw_defs ) (export ;; Exported functions (name::symbol ins::rtl_ins) (neighbours::pair ins::rtl_ins) (unlink! b::block) (rtl_dfs ins::block visit visit?)) ; (dupl...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/comptime/SawMill/rtl.scm
scheme
needed for ast_var !! local/global node Exported functions (duplicate!::pair-nil ins::rtl_ins) The symbolic name of an instruction () A little around an instruction () Copy an instruction without consideration of edges () Duplicate an instruction (define (duplicate!::pair-nil ins::rtl_ins) ;() ...
(module saw_rtl saw_lib saw_defs ) (export (name::symbol ins::rtl_ins) (neighbours::pair ins::rtl_ins) (unlink! b::block) (rtl_dfs ins::block visit visit?)) ) (class-name (object-class (rtl_ins-fun ins))) ) (with-access::rtl_ins ins (dest fun args) (list '(froms) '-...
4480352dad883ae278537ec1cd96af73b6b2d09087e2373c1eeb9dba1b7fce39
kaoskorobase/hsc3-server
Monad.hs
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # module Sound.SC3.Server.State.Monad ( -- * Server Monad Server , runServer -- * Server options , MonadServer(..) , server...
null
https://raw.githubusercontent.com/kaoskorobase/hsc3-server/7e87e59619a23d44367c98cfdb21ca263a3aa8f9/Sound/SC3/Server/State/Monad.hs
haskell
* Server Monad * Server options * Allocation * Communication and synchronization * Concurrency | Run a 'Server' computation given a connection and return the result. Register with server to receive notifications. NOTE: This is only guaranteed to work with a transport that preserves | Fork a computation in a ne...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # module Sound.SC3.Server.State.Monad ( Server , runServer , MonadServer(..) , serverOption , BufferId , BufferIdAllocator ...
ab69dc72abe497c22cbdec38faa249e4fe299434f46b16995414909f2857d3a5
aartaka/nyxt-config
bookmarks.lisp
( (:url "/" :title "ActivityPub Rocks!" :date "2022-04-12T16:29:20.722346Z" :tags ("activitypub" "social" "web")) (:url "/#outline" :title "Algorithms for Decision Making" :date "2023-03-01T10:06:20.058214Z") (:url "-lisp.dev/asdf.html" :title "ASDF Manual" :date "2023-02-27T13:37:01.834298Z" :tags ("asdf" "lisp")) (:u...
null
https://raw.githubusercontent.com/aartaka/nyxt-config/9397fba1fda12b9734c9886348f2110e0096d836/bookmarks.lisp
lisp
( (:url "/" :title "ActivityPub Rocks!" :date "2022-04-12T16:29:20.722346Z" :tags ("activitypub" "social" "web")) (:url "/#outline" :title "Algorithms for Decision Making" :date "2023-03-01T10:06:20.058214Z") (:url "-lisp.dev/asdf.html" :title "ASDF Manual" :date "2023-02-27T13:37:01.834298Z" :tags ("asdf" "lisp")) (:u...
722ae4687da0bdf716c7e1b063f27899c0ea54a8b010ae5dba99bfb740673b69
boxer-project/boxer-sunrise
icosahedron.lisp
-*- Mode : Lisp ; rcs - header : " $ Header : /hope / lwhope1 - cam / hope.0 / / LISPopengl - examples / RCS / icosahedron.lisp , v 1.22.1.1 2017/01/19 11:51:04 " -*- Copyright ( c ) 1987 - -2017 LispWorks Ltd. All rights reserved . (in-package "USER") This file contains a demonstration of the LispWorks F...
null
https://raw.githubusercontent.com/boxer-project/boxer-sunrise/1ef5d5a65d00298b0d7a01890b3cd15d78adc1af/src/opengl/examples/icosahedron.lisp
lisp
rcs - header : " $ Header : /hope / lwhope1 - cam / hope.0 / / LISPopengl - examples / RCS / icosahedron.lisp , v 1.22.1.1 2017/01/19 11:51:04 " -*- OpenGL. To see the demonstration, compile and load the system (load "<opengl-directory>/host") then evaluate An icosahedron is drawn with faces colored ra...
Copyright ( c ) 1987 - -2017 LispWorks Ltd. All rights reserved . (in-package "USER") This file contains a demonstration of the LispWorks FLI for OPENGL - EXAMPLES by ( load " OPENGL : EXAMPLES;load " ) ( setf v ( capi : display ( make - instance ' icosahedron - viewer ) ) ) Middle mouse button ...
e16a90981110f9ea5c3592318ccb9476fd2741d8d93a74a7ca92e63a40a18614
yangchenyun/learning-sicp
environment.scm
;; environment.scm - 6.001 Spring 2005 ;; implementation of meval environment model ;; ; double bubbles (define (make-procedure parameters body env) (list 'procedure parameters body env)) (define (compound-procedure? exp) (tagged-list? exp 'procedure)) (define (procedure-parameters p) (second p)) (define (proced...
null
https://raw.githubusercontent.com/yangchenyun/learning-sicp/99a19a06eddc282e0eb364536e297f27c32a9145/practices/projects/project5/environment.scm
scheme
implementation of meval environment model double bubbles environments bindings frames drop a frame name rule ... more primitives used to initialize the environment
environment.scm - 6.001 Spring 2005 (define (make-procedure parameters body env) (list 'procedure parameters body env)) (define (compound-procedure? exp) (tagged-list? exp 'procedure)) (define (procedure-parameters p) (second p)) (define (procedure-body p) (third p)) (define (procedure-environment p) (fourth p))...
6ab2aaf3fd9b88c12e35d451d5b051792e0037bb5b833387d337fdd517f188ad
MondayMorningHaskell/haskellings
Recursion1Bad1.hs
-- I AM NOT DONE sumList :: [Int] -> Int sumList = ??? main :: IO () main = do let firstSum = sumList [1, 2, 3, 4] let secondSum = sumList [2, 3, 5, 6] if firstSum /= 10 || secondSum /= 16 then error ("Sums were incorrect! Expected 10 and 16 but got: " ++ show firstSum ++ " and " ++ show secondSum) else...
null
https://raw.githubusercontent.com/MondayMorningHaskell/haskellings/fafadd5bbb722b54c1b7b114e34dc9b96bb7ca4d/tests/exercises/recursion/Recursion1Bad1.hs
haskell
I AM NOT DONE
sumList :: [Int] -> Int sumList = ??? main :: IO () main = do let firstSum = sumList [1, 2, 3, 4] let secondSum = sumList [2, 3, 5, 6] if firstSum /= 10 || secondSum /= 16 then error ("Sums were incorrect! Expected 10 and 16 but got: " ++ show firstSum ++ " and " ++ show secondSum) else return ()
a353fad3a1a7e96e70acc9f20b665a5c57fe27323f4162a303feb65005d69512
diagrams/geometry
Folds.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE TypeFamilies # # LANGUAGE FlexibleContexts # -- | Benchmarks for folds over paths. This includes things like -- envelopes and traces. import Criterion.Main import Control.DeepSeq import Geometry import Samples main :: IO () main = do let path10 = toPath . take 10 let ...
null
https://raw.githubusercontent.com/diagrams/geometry/945c8c36b22e71d0c0e4427f23de6614f4e7594a/benchmarks/Folds.hs
haskell
# LANGUAGE BangPatterns # | Benchmarks for folds over paths. This includes things like envelopes and traces.
# LANGUAGE TypeFamilies # # LANGUAGE FlexibleContexts # import Criterion.Main import Control.DeepSeq import Geometry import Samples main :: IO () main = do let path10 = toPath . take 10 let !dragon8 = fromOffsets (dragonOffsets 8) :: Path V2 Double !squares10 = path10 (randomSquares 0) !rects10 ...
888f078d7333681ad65c21f1b4bd1c6c0a6bb0fd82b924a550a7337a73c9d7a3
racket/typed-racket
name.rkt
#lang racket/base Static contracts for Name types ;; ;; This module keeps track of Name types global to ;; a single type->contract use, which allows the instantiation ;; process to lift out the contracts for the potentially ;; mutually recursive Name types. This reduces the amount of ;; duplication that would result...
null
https://raw.githubusercontent.com/racket/typed-racket/1dde78d165472d67ae682b68622d2b7ee3e15e1e/typed-racket-lib/typed-racket/static-contracts/combinators/name.rkt
racket
This module keeps track of Name types global to a single type->contract use, which allows the instantiation process to lift out the contracts for the potentially mutually recursive Name types. This reduces the amount of duplication that would result if we used ordinary recursive static contracts. only for contr...
#lang racket/base Static contracts for Name types (require "../../utils/utils.rkt" "../structures.rkt" "../constraints.rkt" (contract-req) racket/match racket/syntax syntax/private/id-table (for-syntax racket/base syntax/parse)) (p...
2e2fd0aaa24837613cfdc4f07c2b015e2895a150368d434100248eb7862d3cf7
brendanhay/gogol
Custombatch.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/fffd4d98a1996d0ffd4cf64545c5e8af9c976cda/lib/services/gogol-shopping-content/gen/Gogol/ShoppingContent/Content/Pos/Custombatch.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated Batches multiple POS-related calls in a single request. * Resource ** Constructing a Request 'ContentPosCustombatch' request conforms to. | Batches multiple POS-related calls in a single request. /See:/ 'newContentPosCustom...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
69ed9c95998ab249003bb43e0d7054373897197c94b825b7364c38ad0b647bf3
DavidAlphaFox/ailib
ai_pool_worker_sup.erl
-module(ai_pool_worker_sup). -behaviour(supervisor). -export([start_link/2, init/1]). start_link(Mod, Args) -> supervisor:start_link(?MODULE, {Mod, Args}). init({Mod, Args}) -> SupFlags = #{strategy => simple_one_for_one, intensity => 5, period => 5}, ChildSpec = #{ id ...
null
https://raw.githubusercontent.com/DavidAlphaFox/ailib/1f5bd561d9ecd977d4c169c8edde99cbc727873d/src/pool/ai_pool_worker_sup.erl
erlang
-module(ai_pool_worker_sup). -behaviour(supervisor). -export([start_link/2, init/1]). start_link(Mod, Args) -> supervisor:start_link(?MODULE, {Mod, Args}). init({Mod, Args}) -> SupFlags = #{strategy => simple_one_for_one, intensity => 5, period => 5}, ChildSpec = #{ id ...
96babc7f14f04eb3a6f9ca451907ee9f8ad2ea160ac0374ebe9ec3a98a496989
Beluga-lang/Beluga
option.mli
include module type of Stdlib.Option (** [eliminate none_handler some_handler o] is [some_handler v] if [o] is [Some v], and [none_handler ()] otherwise. *) val eliminate : (unit -> 'b) -> ('a -> 'b) -> 'a t -> 'b (** [get' exn o] is [v] if [o] is [Some v], and otherwise [exn] is raised. *) val get' : exn -> 'a t...
null
https://raw.githubusercontent.com/Beluga-lang/Beluga/23b6dea4d2f2ba81e2a82a3a57a7ca016757a2e7/src/support/option.mli
ocaml
* [eliminate none_handler some_handler o] is [some_handler v] if [o] is [Some v], and [none_handler ()] otherwise. * [get' exn o] is [v] if [o] is [Some v], and otherwise [exn] is raised. * [get_or_else f o] is [f ()] if [o] is [None] and [v] if [o] is [Some v]. * [from_predicate p a] is [Some a] if [p a], and [...
include module type of Stdlib.Option val eliminate : (unit -> 'b) -> ('a -> 'b) -> 'a t -> 'b val get' : exn -> 'a t -> 'a val get_or_else : (unit -> 'a) -> 'a t -> 'a * [ of_bool b ] is [ Some ( ) ] if [ b ] is [ true ] , and [ None ] otherwise . When used with other monadic operations , this is ( a special...
614fbb54a5b0cc8419139b0349b5ba9aabb5336578c97df4d4452a3392338b01
informatica-unica/lip
types.ml
open Ast type loc = int type memval = int type mem = loc -> memval The second component of the IFun constructor holds the environment at the time of declaration of a function time of declaration of a function *) type env = ide -> envval and envval = IVar of loc | IFun of ide * env * cmd * expr The t...
null
https://raw.githubusercontent.com/informatica-unica/lip/ecee06394665fb763c9c0d45a1e52bebe781d73f/imp/static/lib/types.ml
ocaml
open Ast type loc = int type memval = int type mem = loc -> memval The second component of the IFun constructor holds the environment at the time of declaration of a function time of declaration of a function *) type env = ide -> envval and envval = IVar of loc | IFun of ide * env * cmd * expr The t...
79c029adf2fd11a91371890e8bef0ad62270493fb960dee2fdf4825a63b2e322
janestreet/bonsai
bonsai_examples_mouse_position_lib.ml
open! Core module App = App
null
https://raw.githubusercontent.com/janestreet/bonsai/782fecd000a1f97b143a3f24b76efec96e36a398/examples/mouse_position/client/src/bonsai_examples_mouse_position_lib.ml
ocaml
open! Core module App = App
b49adcfd3455e9f371459a5de99c0bad78861aab00b677e43bf8f6a03bd2b785
arttuka/reagent-material-ui
eighteen_up_rating_sharp.cljs
(ns reagent-mui.icons.eighteen-up-rating-sharp "Imports @mui/icons-material/EighteenUpRatingSharp as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def eighteen-u...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/14103a696c41c0eb67fc07fc67cd8799efd88cb9/src/icons/reagent_mui/icons/eighteen_up_rating_sharp.cljs
clojure
(ns reagent-mui.icons.eighteen-up-rating-sharp "Imports @mui/icons-material/EighteenUpRatingSharp as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def eighteen-u...
3b9bdee1ebc17c4ba312823b81834d25cc28178cdcf3735bc856318d0f227657
yetanalytics/dl4clj
multi_layer_conf.clj
(ns ^{:doc "see "} dl4clj.nn.api.multi-layer-conf (:import [org.deeplearning4j.nn.conf MultiLayerConfiguration]) (:require [clojure.core.match :refer [match]] [dl4clj.utils :refer [obj-or-code? eval-if-code]])) (defn to-json [multi-layer-conf & {:keys [as-code?] :or {as-cod...
null
https://raw.githubusercontent.com/yetanalytics/dl4clj/9ef055b2a460f1a6246733713136b981fd322510/src/dl4clj/nn/api/multi_layer_conf.clj
clojure
(ns ^{:doc "see "} dl4clj.nn.api.multi-layer-conf (:import [org.deeplearning4j.nn.conf MultiLayerConfiguration]) (:require [clojure.core.match :refer [match]] [dl4clj.utils :refer [obj-or-code? eval-if-code]])) (defn to-json [multi-layer-conf & {:keys [as-code?] :or {as-cod...
f6ad4a13a4b063957d7e43fd7881f39354025354b93283aa5b91ec504c19815b
NorfairKing/easyspec
TypeReachabilitySpec.hs
# LANGUAGE TemplateHaskell # module EasySpec.Discover.SignatureInference.TypeReachabilitySpec ( spec ) where import TestImport import Language.Haskell.Exts.Gen () import EasySpec.Discover.SignatureInference.TypeReachability import EasySpec.Discover.TH spec :: Spec spec = describe "typeReachable" $ do ...
null
https://raw.githubusercontent.com/NorfairKing/easyspec/b038b45a375cc0bed2b00c255b508bc06419c986/easyspec/test/EasySpec/Discover/SignatureInference/TypeReachabilitySpec.hs
haskell
# LANGUAGE TemplateHaskell # module EasySpec.Discover.SignatureInference.TypeReachabilitySpec ( spec ) where import TestImport import Language.Haskell.Exts.Gen () import EasySpec.Discover.SignatureInference.TypeReachability import EasySpec.Discover.TH spec :: Spec spec = describe "typeReachable" $ do ...
d9c2106839bba1885f61e750a692606973cd2bf60c4493374eae24c123d3962b
mput/sicp-solutions
1_32.test.rkt
#lang racket (require rackunit/text-ui) (require rackunit "../solutions/utils.rkt") (require rackunit "../solutions/1_32.rkt") (define (pi-calculated fun) (define (term a) (/ (* a (+ a 2)) (square (+ a 1)))) (define (next a) (+ a 2)) (* 4 (fun term 2.0 next 1000))) (define (product term a...
null
https://raw.githubusercontent.com/mput/sicp-solutions/fe12ad2b6f17c99978c8fe04b2495005986b8496/tests/1_32.test.rkt
racket
#lang racket (require rackunit/text-ui) (require rackunit "../solutions/utils.rkt") (require rackunit "../solutions/1_32.rkt") (define (pi-calculated fun) (define (term a) (/ (* a (+ a 2)) (square (+ a 1)))) (define (next a) (+ a 2)) (* 4 (fun term 2.0 next 1000))) (define (product term a...
fc1d5e31b775b017dc76e6f3b2b68ac4bf683b9ea92f1bbfcd26fa5ddc3d12ce
samrushing/irken-compiler
t_pv0.scm
;; -*- Mode: Irken -*- (define (printn x) (%%cexp ('a -> undefined) "dump_object (%0, 0); fprintf (stdout, \"\\n\")" x)) (define (thing a) (vcase a ((:one x y) x) ((:two z) z) ((:urk) 0) )) (printn (thing (:one 12 3))) (printn (thing (:urk))) (printn (thing (:two 9)))
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/tests/t_pv0.scm
scheme
-*- Mode: Irken -*-
(define (printn x) (%%cexp ('a -> undefined) "dump_object (%0, 0); fprintf (stdout, \"\\n\")" x)) (define (thing a) (vcase a ((:one x y) x) ((:two z) z) ((:urk) 0) )) (printn (thing (:one 12 3))) (printn (thing (:urk))) (printn (thing (:two 9)))
4aaaf3ce9a66b0689d10562efa4d73485e7584c8728801761caa0512ae38c64b
bobzhang/fan
compile_lex.ml
open Astf open Ast_gen (** FIXME *) let _loc = Locf.ghost (** spliced in the inital lexer with [lexbuf] captured*) let output_memory_actions (mvs:Lexgen.memory_action list) : exp list = List.map (fun (x:Lexgen.memory_action) -> match x with | Copy(tgt,src) -> %exp{ lexbuf.lex_mem.(...
null
https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/main/compile_lex.ml
ocaml
* FIXME * spliced in the inital lexer with [lexbuf] captured Generate transition code, i.e state transition break the invariant .... "Lexing.sub_lexeme_char_opt" can not be an lident... it can only be an ident local variables: end:
open Astf open Ast_gen let _loc = Locf.ghost let output_memory_actions (mvs:Lexgen.memory_action list) : exp list = List.map (fun (x:Lexgen.memory_action) -> match x with | Copy(tgt,src) -> %exp{ lexbuf.lex_mem.($int':tgt) <- lexbuf.lex_mem.($int':src) } | Set tgt -> %e...
d3a275f12289b88d1f9537c8d8d30c60585c64269f6e97ef1369a2c59bc6726c
bartavelle/language-puppet
Cron.hs
module Puppet.Language.NativeTypes.Cron (nativeCron) where import qualified Data.Text as Text import Puppet.Language.NativeTypes.Helpers nativeCron :: (NativeTypeName, NativeTypeMethods) nativeCron = ("cron", nativetypemethods parameterfunctions return ) -- Autorequires: If Puppet is manag...
null
https://raw.githubusercontent.com/bartavelle/language-puppet/6af7458e094440816c8b9b7b387050612e87a70f/src/Puppet/Language/NativeTypes/Cron.hs
haskell
Autorequires: If Puppet is managing the user or group that owns a file, the file resource will autorequire them. If Puppet is managing any parent directories of a file, the file resource will autorequire them.
module Puppet.Language.NativeTypes.Cron (nativeCron) where import qualified Data.Text as Text import Puppet.Language.NativeTypes.Helpers nativeCron :: (NativeTypeName, NativeTypeMethods) nativeCron = ("cron", nativetypemethods parameterfunctions return ) parameterfunctions :: [(Text, [Text...
a89f3c67f865b27b53e0a5c551560c8ecf99ba6abf4e85ca82d10ab90df11c2b
lambdamikel/OntoLisp
owlapi-synonyms.lisp
-*- Mode : Lisp ; Syntax : Ansi - Common - Lisp ; Package : OWLAPI ; Base : 10 -*- (in-package :owlapi) ;;; ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; The Original Software is OntoLisp ( NOSA ): A Semantic Web Framework for OWL 2 and OWLlink in...
null
https://raw.githubusercontent.com/lambdamikel/OntoLisp/d8646f986ec59aa0dd643bf685be318f44b5ff52/ontolisp-0.9/owlapi-synonyms.lisp
lisp
Syntax : Ansi - Common - Lisp ; Package : OWLAPI ; Base : 10 -*- -------------------------------------------------------------------------------------- All Rights Reserved. This program is licensed under the terms of the GNU Lesser General Public License however that a preamble attached below also app...
(in-package :owlapi) The Original Software is OntoLisp ( NOSA ): A Semantic Web Framework for OWL 2 and OWLlink in Common Lisp Copyright ( c ) 2007 - 2010 and Racer Systems GmbH & Co. KG Contributor(s ): ( mailto: mailto: ) as published by the Free So...
289a64366a771339199e34c1263a012fbd84d6a6d9012734a69a91cf6fe364f4
samrushing/irken-compiler
t26.scm
;; -*- Mode: Irken -*- (include "lib/core.scm") (define thing1 {a=0 x=1 y=2}) (define thing2 {x=3 y=4 z=7}) (define (fun1 p) (+ p.x 10) ) (print (fun1 thing1)) (print (fun1 thing2))
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/vm/tests/t26.scm
scheme
-*- Mode: Irken -*-
(include "lib/core.scm") (define thing1 {a=0 x=1 y=2}) (define thing2 {x=3 y=4 z=7}) (define (fun1 p) (+ p.x 10) ) (print (fun1 thing1)) (print (fun1 thing2))
db2f544d9239b70b69abb3c5fe02d45cc5c3f7812aa8f007c335196ef59e02d1
scicloj/clj-djl
engine.clj
(ns clj-djl.engine (:import [ai.djl.engine Engine])) (defn get-all-engines [] (Engine/getAllEngines)) (defn get-engine-name [engine] (.getEngineName engine)) (defn get-engine [engine-name] (Engine/getEngine engine-name)) (defn get-instance [] (Engine/getInstance)) (defn get-version [engine] (.getVersio...
null
https://raw.githubusercontent.com/scicloj/clj-djl/f089b10a22c869c0e643d456dc9bbad8233bd6ac/src/clj_djl/engine.clj
clojure
(ns clj-djl.engine (:import [ai.djl.engine Engine])) (defn get-all-engines [] (Engine/getAllEngines)) (defn get-engine-name [engine] (.getEngineName engine)) (defn get-engine [engine-name] (Engine/getEngine engine-name)) (defn get-instance [] (Engine/getInstance)) (defn get-version [engine] (.getVersio...
92ea632a796bcb584d358dbacf7a8a993c24692dba0952d14147a353baaa9633
semilin/layoup
QGMLWY.lisp
(MAKE-LAYOUT :NAME "QGMLWY" :MATRIX (APPLY #'KEY-MATRIX '("qgmlwyfub;" "dstnriaeoh" "zxcvjkp,./")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
null
https://raw.githubusercontent.com/semilin/layoup/27ec9ba9a9388cd944ac46206d10424e3ab45499/data/layouts/QGMLWY.lisp
lisp
(MAKE-LAYOUT :NAME "QGMLWY" :MATRIX (APPLY #'KEY-MATRIX '("qgmlwyfub;" "dstnriaeoh" "zxcvjkp,./")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
f0857ba16e5106611bbdca049893b3edc003aab499d3aa646862276dc41c0d1e
ghc/ghc
Instr.hs
# LANGUAGE TypeFamilies # ----------------------------------------------------------------------------- -- Machine - dependent assembly language -- ( c ) The University of Glasgow 1993 - 2004 -- ----------------------------------------------------------------------------- module GHC.CmmToAsm.X86.Instr ( Instr(...
null
https://raw.githubusercontent.com/ghc/ghc/37cfe3c0f4fb16189bbe3bb735f758cd6e3d9157/compiler/GHC/CmmToAsm/X86/Instr.hs
haskell
--------------------------------------------------------------------------- --------------------------------------------------------------------------- Format of an x86/x86_64 memory address, in bytes. ----------------------------------------------------------------------------- to do so would have meant to...
# LANGUAGE TypeFamilies # Machine - dependent assembly language ( c ) The University of Glasgow 1993 - 2004 module GHC.CmmToAsm.X86.Instr ( Instr(..) , Operand(..) , PrefetchVariant(..) , JumpDest(..) , getJumpDestBlockId , canShortcut , shortcutStatics , shortcutJump , allocMoreStack ...
7ea32010562d34d00f79b497d3a70340dd19c870fae3ed2c087c37859e700921
imdea-software/leap
Config.mli
(***********************************************************************) (* *) LEAP (* *) , IMDEA ...
null
https://raw.githubusercontent.com/imdea-software/leap/5f946163c0f80ff9162db605a75b7ce2e27926ef/src/solvers/backend/Config.mli
ocaml
********************************************************************* ...
LEAP , IMDEA Software Institute Copyright 2011 IMDEA Software Institute Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compl...
d19917043bcc3318936f139d6ccd3661e7857df603e0d02f7fcfcb2567513f70
unnohideyuki/bunny
sample303.hs
main = do print $ properFraction (3.14 :: Double) print $ truncate (1.7 :: Double) print $ truncate (-1.7 :: Double) print $ round (3.4 :: Double) print $ round (3.6 :: Double) print $ round (-3.6 :: Double) print $ ceiling (3.7 :: Double) print $ ce...
null
https://raw.githubusercontent.com/unnohideyuki/bunny/501856ff48f14b252b674585f25a2bf3801cb185/compiler/test/samples/sample303.hs
haskell
main = do print $ properFraction (3.14 :: Double) print $ truncate (1.7 :: Double) print $ truncate (-1.7 :: Double) print $ round (3.4 :: Double) print $ round (3.6 :: Double) print $ round (-3.6 :: Double) print $ ceiling (3.7 :: Double) print $ ce...
fc8ace02ed3d29e59cd3f88a81061b4e6d95ef781bd997a29b839f98cf0412c4
coq/coq
cMap.mli
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/f227d8ed33a5ba2343de962f404b0b094dcc86a3/clib/cMap.mli
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
7bc808d30b97dbd430a798fd72a68860554390dea3a915d711f3c71b23c39fe6
soegaard/bracket
runtime-config.rkt
#lang racket (provide configure) ;;; This file configures the repl in / racket , ;;; when the bracket language is used. ;;; (require bracket/lang/reader bracket/unparse) (define (configure data) (current-read-interaction read0) #;(define old-eval (current-eval)) ( current - eval ( λ ( form ) ( (...
null
https://raw.githubusercontent.com/soegaard/bracket/3d0ace16cf0dbcee4952fd729796e4362e27faa0/bracket/runtime-config.rkt
racket
when the bracket language is used. (define old-eval (current-eval)) pict hack
#lang racket (provide configure) This file configures the repl in / racket , (require bracket/lang/reader bracket/unparse) (define (configure data) (current-read-interaction read0) ( current - eval ( λ ( form ) ( ( list ' eval : form ) ) (define val (old-eval form)) ...
e8c51323dd5e5a39f52c8b9742b901c9bbc5f1e809b52228cc69e7d05fae0c0a
google/ormolu
splice-decl.hs
# LANGUAGE TemplateHaskell # $( foo bar) $foo $$( foo bar) $$foo foo bar [|booya|] TemplateHaskell allows Q ( ) at the top level do pure []
null
https://raw.githubusercontent.com/google/ormolu/ffdf145bbdf917d54a3ef4951fc2655e35847ff0/data/examples/declaration/splice/splice-decl.hs
haskell
# LANGUAGE TemplateHaskell # $( foo bar) $foo $$( foo bar) $$foo foo bar [|booya|] TemplateHaskell allows Q ( ) at the top level do pure []
2b7a15477e63588f9f098d25463d5141a594bd7d735309e2375d4c5d11f46c77
droopp/drop-core
node_scheduler.erl
-module(node_scheduler). -behaviour(gen_server). %% API. -export([start_link/0, call/4, cmd/2, cmd2/3, api/1, node_info_internal_stream/1, try_start/1, restart/0 ]). %% gen_server. -export([init/1]). -export([handle_call/3]). -export([ha...
null
https://raw.githubusercontent.com/droopp/drop-core/9bb5ee05815ff73b2081967e5d804c0c432547d7/apps/node_scheduler/src/node_scheduler.erl
erlang
API. gen_server. API. gen_server. Systems pools link ppools System info stream worker collect node info from cluster api flower scheduler multicast zeroconf INFO stream worker tick every X secs ppools error & timeout API worker
-module(node_scheduler). -behaviour(gen_server). -export([start_link/0, call/4, cmd/2, cmd2/3, api/1, node_info_internal_stream/1, try_start/1, restart/0 ]). -export([init/1]). -export([handle_call/3]). -export([handle_cast/2]). -export(...
be116541abe171ab236d7f0bfd8e4ced164a9623deff015bdbbd1fa72d7db4e4
CSCfi/rems
roles.cljc
(ns rems.common.roles (:refer-clojure :exclude [when]) #?(:clj (:require [rems.context :as context]) :cljs (:require [re-frame.core :as rf]))) (def +admin-write-roles+ #{:organization-owner :owner}) (def +admin-read-roles+ #{:owner :organization-owner :handler :reporter}) (defn is-logged-in? [roles] (some ...
null
https://raw.githubusercontent.com/CSCfi/rems/644ef6df4518b8e382cdfeadd7719e29508a26f0/src/cljc/rems/common/roles.cljc
clojure
(ns rems.common.roles (:refer-clojure :exclude [when]) #?(:clj (:require [rems.context :as context]) :cljs (:require [re-frame.core :as rf]))) (def +admin-write-roles+ #{:organization-owner :owner}) (def +admin-read-roles+ #{:owner :organization-owner :handler :reporter}) (defn is-logged-in? [roles] (some ...
7253736b5571d578de218d9ffd8ffee1731ccf5c734c0217ba767d706bfe719f
franks42/cljs-info
special_fns_hack.clj
(ns cljs-info.special-fns-hack "TEMPORARY HACK - Module to generate the special-fns maps for use with repl/repl." (:require [cljs-info.ns] [clojure.pprint] [cljs-info.doc])) (declare cljs-info-special-fns) (defn symbify "Hack to provide some robustness on the repl-input (the repl crash...
null
https://raw.githubusercontent.com/franks42/cljs-info/70a2e46905cb558e21ae02077eb7707467e8112e/src/cljs_info/special_fns_hack.clj
clojure
"Function mapping table for use with run-repl-listen." {'sdoc (fn [_ & quoted-var] (if (seq quoted-var) (clj-ns-browser.sdoc/sdoc*)))}) (merge cljs-doc-special-fns cljs-ns-special-fns cljs-ns-browser-special-fns))
(ns cljs-info.special-fns-hack "TEMPORARY HACK - Module to generate the special-fns maps for use with repl/repl." (:require [cljs-info.ns] [clojure.pprint] [cljs-info.doc])) (declare cljs-info-special-fns) (defn symbify "Hack to provide some robustness on the repl-input (the repl crash...
15e5ca62496d8708e51212c9460320db1ae46b500a7ac9548cfca9ef37b00f15
ucsd-progsys/liquid-fixpoint
test.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE FlexibleContexts # # OPTIONS_GHC -Wno - orphans # module Main where import qualified Control.Concurrent.STM as STM import qualified Data.Functor.Compose as Functor import qualified Data.IntMap as IntMap import Control.Monad (when) import qualified Con...
null
https://raw.githubusercontent.com/ucsd-progsys/liquid-fixpoint/0d08484369589bc92b9f3817c1a7e415ebe66431/tests/test.hs
haskell
# LANGUAGE OverloadedStrings # that will produce incremental output, e.g. 'consoleTestReporter'. ------------------------------------------------------------------------- ------------------------------------------------------------------------- ----------------------------------------------------------------------...
# LANGUAGE FlexibleContexts # # OPTIONS_GHC -Wno - orphans # module Main where import qualified Control.Concurrent.STM as STM import qualified Data.Functor.Compose as Functor import qualified Data.IntMap as IntMap import Control.Monad (when) import qualified Control.Monad.State as State import Co...
42f1be0390070b33e82cef14436e9aeebb2d78dbcc5687472edd9f71294efc7e
yannham/mechaml
option.mli
{ { { Copyright ( C ) 2016 , < > Permission to use , copy , modify , and/or 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 AUTHOR...
null
https://raw.githubusercontent.com/yannham/mechaml/1efeb59e21ed72bc36e2421a96a52e807065b3d6/src/option.mli
ocaml
Compatibility with versions prior to OCaml 4.08 Implementation of binding operators
{ { { Copyright ( C ) 2016 , < > Permission to use , copy , modify , and/or 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 AUTHOR...
57d7b33421af37aea2e2b155337dd13f17a30b79dbe07b3bf0e73b1f89962910
fizruk/rzk
doctests.hs
module Main where import Build_doctests (flags, module_sources, pkgs) import Data.Foldable (traverse_) import Test.DocTest main :: IO () main = do traverse_ putStrLn args doctest args where args = flags ++ pkgs ++ module_sources
null
https://raw.githubusercontent.com/fizruk/rzk/502eb7655655d8fe1be8f4fa2561464141b01e2e/rzk/test/doctests.hs
haskell
module Main where import Build_doctests (flags, module_sources, pkgs) import Data.Foldable (traverse_) import Test.DocTest main :: IO () main = do traverse_ putStrLn args doctest args where args = flags ++ pkgs ++ module_sources
c6db6930afe087ca37ec256a1daaad6496fee4b86ceb5225ac5358d756d8ae6f
lijunsong/fl-compiler
register_allocation.ml
type allocation = Arch.register Temp.TempMap.t open Liveness * set node 's status to Color if node 's temp is already mapped to a machine register machine register *) let rec precolor igraph : unit = match igraph with | [] -> () | node :: rest -> begin match Arch.register_of_temp node.Node.temp with ...
null
https://raw.githubusercontent.com/lijunsong/fl-compiler/6d2938855012a7a0a8767dc342f6abb454c43eec/backend/register_allocation.ml
ocaml
precolored. set the status
type allocation = Arch.register Temp.TempMap.t open Liveness * set node 's status to Color if node 's temp is already mapped to a machine register machine register *) let rec precolor igraph : unit = match igraph with | [] -> () | node :: rest -> begin match Arch.register_of_temp node.Node.temp with ...
9e526c7abca6a4d39f1f14a7cae5d219f4e0084eea360b0a096238c5359bde65
lojic/LearningRacket
meetup-test.rkt
#lang racket (require "meetup.rkt" gregor) (module+ test (require rackunit rackunit/text-ui) (define suite (test-suite "Tests for the meetup exercise" (test-case "monteenth of may 2013" (check-equal? (meetup 2013 5 'monday 'teenth) (date 2013 5 13))) (test-case "monte...
null
https://raw.githubusercontent.com/lojic/LearningRacket/eb0e75b0e16d3e0a91b8fa6612e2678a9e12e8c7/exercism.io/meetup/meetup-test.rkt
racket
#lang racket (require "meetup.rkt" gregor) (module+ test (require rackunit rackunit/text-ui) (define suite (test-suite "Tests for the meetup exercise" (test-case "monteenth of may 2013" (check-equal? (meetup 2013 5 'monday 'teenth) (date 2013 5 13))) (test-case "monte...
42a2a852c8afbd65fb35cf387ec118d569b2dc839e8d03af7a102c971ebd9ef6
ddmcdonald/sparser
ns-unknown-rd-items-phase3-3601-4000.lisp
(IN-PACKAGE :SP) (DEFPARAMETER SPARSER::*NS-RD-PHASE3-3601-4000* '(".219-SLK" ".383C→A" "4E-BP2" "A-443543" "A-443654-treated10A" "A-4436654" "A-870" "A-C" "A-D" "A-F-A" "A-Fos" "A-MuLV" "A-allele" "A-alleles" "A-associated" "A-beta" "A-beta)" "A-box" "A-complemented" "A-expressingMHF1" "A-fos" "A-relate...
null
https://raw.githubusercontent.com/ddmcdonald/sparser/304bd02d0cf7337ca25c8f1d44b1d7912759460f/Sparser/code/s/tools/ns-stuff/old-unknown/ns-unknown-rd-items-phase3-3601-4000.lisp
lisp
(IN-PACKAGE :SP) (DEFPARAMETER SPARSER::*NS-RD-PHASE3-3601-4000* '(".219-SLK" ".383C→A" "4E-BP2" "A-443543" "A-443654-treated10A" "A-4436654" "A-870" "A-C" "A-D" "A-F-A" "A-Fos" "A-MuLV" "A-allele" "A-alleles" "A-associated" "A-beta" "A-beta)" "A-box" "A-complemented" "A-expressingMHF1" "A-fos" "A-relate...
f1acd65d16322d01c986e2dbf20eafe4e127cb4d175e0e5502835e0efbf5ca37
juspay/atlas
Search.hs
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/app-backend/src/Types/API/Search.hs
haskell
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
21ab6880fe9b7f4c1902e7dc740eb6d8417ec021e71d353ab3c33700bbd4b280
rksm/clj-org-analyzer
parsing_test.clj
(ns org-analyzer.parsing-test (:require [clojure.pprint :refer [cl-format]] [clojure.test :as t :refer [deftest is]] [clojure.zip :as zip] [org-analyzer.printing :as print] [org-analyzer.processing :as process] [org-analyzer.time :as org-time] [c...
null
https://raw.githubusercontent.com/rksm/clj-org-analyzer/19da62aa4dcf1090be8f574f6f2d4c7e116163a8/test/org_analyzer/parsing_test.clj
clojure
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
(ns org-analyzer.parsing-test (:require [clojure.pprint :refer [cl-format]] [clojure.test :as t :refer [deftest is]] [clojure.zip :as zip] [org-analyzer.printing :as print] [org-analyzer.processing :as process] [org-analyzer.time :as org-time] [c...
0e8a115fc3a9c12a549f2cd141fee6ab6ff01163ee07b02f9a06ec2fa84a2f49
sgbj/MaximaSharp
dgamlm.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 46c1f6a93b0d 2012/05/03 04:40:28 toy $ " " f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " ;;; "f2cl5.l,v 46c1f6a93b0d 2012/05/03 04:40:28 toy $...
null
https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/src/numerical/slatec/dgamlm.lisp
lisp
Compiled by f2cl version: "f2cl5.l,v 46c1f6a93b0d 2012/05/03 04:40:28 toy $" Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':simple-array) (:array-slicing nil) (:declare-common nil) (:float-format double-float))
( " f2cl1.l , v 46c1f6a93b0d 2012/05/03 04:40:28 toy $ " " f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl6.l , v 1d5cbacbb977 2008/08/24 00:56:27 rtoy $ " " macros.l , v fceac53...
68c6a25f183ef092321379421eb948ca811e5b05186de5155bcc337642c62da2
aws-beam/aws-erlang
aws_waf.erl
%% WARNING: DO NOT EDIT, AUTO-GENERATED CODE! See -beam/aws-codegen for more details . %% @doc This is AWS WAF Classic documentation. %% %% For more information, see AWS WAF Classic in the developer guide. %% %% For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS %% WAF Developer Guide. With the...
null
https://raw.githubusercontent.com/aws-beam/aws-erlang/699287cee7dfc9dc8c08ced5f090dcc192c9cba8/src/aws_waf.erl
erlang
WARNING: DO NOT EDIT, AUTO-GENERATED CODE! @doc This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide. For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints fo...
See -beam/aws-codegen for more details . This is the AWS WAF Classic API Reference for using AWS WAF Classic with Amazon CloudFront . The AWS WAF Classic actions and data types listed in the reference are available for protecting Amazon CloudFront For detailed information about AWS WAF Classic features and a...
50742a6faad537250ce287c490bd345f4a5fd616e694d763d0011e534bd9e61c
haskell-hvr/cabal-plan
ProcessLazyByteString.hs
module ProcessLazyByteString (readProcessWithExitCode) where import Control.Concurrent.Async (wait, withAsync) import qualified Control.Exception as E import Control.Monad (unless) import qualified Data.ByteString as BS import qualified Data.ByteString...
null
https://raw.githubusercontent.com/haskell-hvr/cabal-plan/d553c0e3521c2ea8c9e8eea1055457cc298b58ca/src-exe/ProcessLazyByteString.hs
haskell
^ Command ^ Arguments spawn workers to read stdout and stderr write the input wait for the output wait for the process No unsafeInterleaveIO only blocks if there is no data available
module ProcessLazyByteString (readProcessWithExitCode) where import Control.Concurrent.Async (wait, withAsync) import qualified Control.Exception as E import Control.Monad (unless) import qualified Data.ByteString as BS import qualified Data.ByteString...
7cb9db07399045fd5e5ddad136eabbc2675c6bdc34affc6bfff7b67b7631523f
iokasimov/pandora
Monad.hs
module Pandora.Pattern.Functor.Monad where import Pandora.Pattern.Morphism.Straight (Straight) import Pandora.Pattern.Functor.Covariant (Covariant) import Pandora.Pattern.Functor.Bindable (Bindable) import Pandora.Pattern.Functor.Monoidal (Monoidal) import Pandora.Pattern.Operation.Product ((:*:)) | > Let f : : (...
null
https://raw.githubusercontent.com/iokasimov/pandora/68662a508749f1cf02d0178679435a24f07dcaf2/Pandora/Pattern/Functor/Monad.hs
haskell
(>>=-) :: t a -> t b -> t a (>>=-) x y = x >>= \r -> y >>= \_ -> point r (->>=) :: t a -> t b -> t b (->>=) x y = x >>= \_ -> y >>= \r -> point r (-=<<) :: t a -> t b -> t b (-=<<) x y = x >>= \_ -> y >>= \r -> point r (=<-/-) :: t a -> t b -> t a (=<-/-) x y = x >>= \r -> y >>= \_ -> point r
module Pandora.Pattern.Functor.Monad where import Pandora.Pattern.Morphism.Straight (Straight) import Pandora.Pattern.Functor.Covariant (Covariant) import Pandora.Pattern.Functor.Bindable (Bindable) import Pandora.Pattern.Functor.Monoidal (Monoidal) import Pandora.Pattern.Operation.Product ((:*:)) | > Let f : : (...
b92392230d8ac429308c8bb9c4f1f4434254b63f9956f65fea05a2e3c8ab3bc1
emqx/emqx
emqx_authn_mnesia_SUITE.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 2023 EMQ 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 o...
null
https://raw.githubusercontent.com/emqx/emqx/73d5592b5af0cbbf347e5dc2b9b865b41228249f/apps/emqx_authn/test/emqx_authn_mnesia_SUITE.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 - 2023 EMQ 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(emqx_authn_mnesia_SUITE). -compile(export_all). -compile(nowarn_export_all). -include_...
9f5a3d86fb1dc885bbe5460e3af56e4811ab14b2113f69057034a0f7f10af36a
cedlemo/OCaml-GObject-Introspection
Constant_info.ml
* Copyright 2017 - 2019 , * This file is part of OCaml - GObject - Introspection . * * OCaml - GObject - Introspection 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 o...
null
https://raw.githubusercontent.com/cedlemo/OCaml-GObject-Introspection/261c76d9e5d90f706edff1121a63bf5eb611399b/lib/Constant_info.ml
ocaml
TODO : check that the info can be casted to a constantinfo ?
* Copyright 2017 - 2019 , * This file is part of OCaml - GObject - Introspection . * * OCaml - GObject - Introspection 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 o...
4f7002913cae2c95f2d876794b8f9cc723d173828c6e2b6bc3c8322348c613af
softwarelanguageslab/maf
R5RS_WeiChenRompf2019_rsa-2.scm
; Changes: * removed : 1 * added : 0 * swaps : 0 * negated predicates : 2 ; * swapped branches: 0 ; * calls to id fun: 0 (letrec ((extended-gcd (lambda (a b) (if (= (modulo a b) 0) (cons 0 1) (let* ((x:y (extended-gcd b (modulo a b...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_WeiChenRompf2019_rsa-2.scm
scheme
Changes: * swapped branches: 0 * calls to id fun: 0
* removed : 1 * added : 0 * swaps : 0 * negated predicates : 2 (letrec ((extended-gcd (lambda (a b) (if (= (modulo a b) 0) (cons 0 1) (let* ((x:y (extended-gcd b (modulo a b))) (x (car x:y)) ...
88b1fdc442ccee32488f2d8b532468893815834e84f2b8b9f47b4c138a40333a
AdaCore/why3
gnat_ast_pretty.mli
val pp_why_node : Format.formatter -> 'a Gnat_ast.why_node -> unit val pp_file : Format.formatter -> Gnat_ast.file -> unit
null
https://raw.githubusercontent.com/AdaCore/why3/94e78881505da20b74ed407bedb83617df9af7b2/plugins/gnat_json/gnat_ast_pretty.mli
ocaml
val pp_why_node : Format.formatter -> 'a Gnat_ast.why_node -> unit val pp_file : Format.formatter -> Gnat_ast.file -> unit