_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
36c4a4b05bf9d1c37760193d31b4f83b7d49616ad2c5f896d07fa83d082040e8
nikita-volkov/rebase
DList.hs
module Rebase.Data.DList ( module Data.DList ) where import Data.DList
null
https://raw.githubusercontent.com/nikita-volkov/rebase/7c77a0443e80bdffd4488a4239628177cac0761b/library/Rebase/Data/DList.hs
haskell
module Rebase.Data.DList ( module Data.DList ) where import Data.DList
9e2f5a3749c6ac34bb5eeb61940a4855157dcccd683404785b9516552b67aaa0
justinmeiners/exercises
circuit_sample.scm
(load "3_28.scm") (define the-agenda (make-agenda)) (define inverter-delay 1) (define and-gate-delay 3) (define or-gate-delay 5) (define input-1 (make-wire)) (define input-2 (make-wire)) (define sum (make-wire)) (define carry (make-wire)) (probe 'sum sum) (probe 'carry carry) (half-adder input-1 input-2 sum carry) ...
null
https://raw.githubusercontent.com/justinmeiners/exercises/9491bc16925eae12e048ccd3f424b870ebdc73aa/sicp/3/circuit_sample.scm
scheme
(load "3_28.scm") (define the-agenda (make-agenda)) (define inverter-delay 1) (define and-gate-delay 3) (define or-gate-delay 5) (define input-1 (make-wire)) (define input-2 (make-wire)) (define sum (make-wire)) (define carry (make-wire)) (probe 'sum sum) (probe 'carry carry) (half-adder input-1 input-2 sum carry) ...
2e7e6d6301828937f1088098d5a822a28201b24b4b71b94557513f93e5f10f46
conscell/hugs-android
Paths_haskell98.hs
module Paths_haskell98 ( version, getBinDir, getLibDir, getDataDir, getLibexecDir, getDataFileName ) where import Data.Version version = Version {versionBranch = [1,0], versionTags = []} bindir = "/data/data/jackpal.androidterm/app_HOME/hugs/bin" libdir = "/data/data/jackpal.androidterm/app_HOME/hugs/lib...
null
https://raw.githubusercontent.com/conscell/hugs-android/31e5861bc1a1dd9931e6b2471a9f45c14e3c6c7e/hugs/lib/hugs/packages/haskell98/Paths_haskell98.hs
haskell
module Paths_haskell98 ( version, getBinDir, getLibDir, getDataDir, getLibexecDir, getDataFileName ) where import Data.Version version = Version {versionBranch = [1,0], versionTags = []} bindir = "/data/data/jackpal.androidterm/app_HOME/hugs/bin" libdir = "/data/data/jackpal.androidterm/app_HOME/hugs/lib...
86535b87fa0785d52210646665ce1a5053394b0827f6c70f9a2521d843c95af8
antoniogarrote/egearmand-server
proplists_extensions.erl
-module(proplists_extensions) . %% @doc %% Additional functions for manipulation fo proplists. -author("Antonio Garrote Hernandez") . -include_lib("eunit/include/eunit.hrl") . -export([get_value/3]) . %% @doc %% Gets a value from a proplists using the values from Defaults %% proplist as possible default values -s...
null
https://raw.githubusercontent.com/antoniogarrote/egearmand-server/45296fb40e3ddb77f71225121188545a371d2237/src/proplists_extensions.erl
erlang
@doc Additional functions for manipulation fo proplists. @doc Gets a value from a proplists using the values from Defaults proplist as possible default values tests
-module(proplists_extensions) . -author("Antonio Garrote Hernandez") . -include_lib("eunit/include/eunit.hrl") . -export([get_value/3]) . -spec(get_value(any(), [{any(), any()}], [{any(), any()}]) -> {any(), any()}) . get_value(Key, List, Defaults) -> Value = proplists:get_value(Key, List), case Value of...
2ec8488cb2711fcbe9202fae3331c0df92bf333fb1720c791badfc949b24761b
bazqux/bazqux-urweb
Debug.hs
# LANGUAGE CPP , ScopedTypeVariables # -- | -- Module: Network.Riak.Debug Copyright : ( c ) 2011 MailRank , Inc. License : Apache Maintainer : < > , < > -- Stability: experimental -- Portability: portable -- -- Support for debug logging. The code in this package only works if the packag...
null
https://raw.githubusercontent.com/bazqux/bazqux-urweb/bf2d5a65b5b286348c131e91b6e57df9e8045c3f/crawler/Lib/riak-0.7.2.0/src/Network/Riak/Debug.hs
haskell
| Module: Network.Riak.Debug Stability: experimental Portability: portable Support for debug logging. The code in this package only works if all no-ops. | The current debugging level. This is established once by reading the @RIAK_DEBUG@ environment variable. | Set the 'Handle' to log to ('stderr' is ...
# LANGUAGE CPP , ScopedTypeVariables # Copyright : ( c ) 2011 MailRank , Inc. License : Apache Maintainer : < > , < > the package was built with the @-fdebug@ flag . Otherwise , they are module Network.Riak.Debug ( level , debug , debugValues , setHandle , showM ...
7aa256fafac0fcb8b76b881cb932818ea9835462ec2ac2842b16d5c3168d84ac
sondresl/AdventOfCode
Day07.hs
module Day07 where import Lib (commaNums) import Data.List (sort) main :: IO () main = do input <- sort . commaNums <$> readFile "../data/day07.in" let run f val = sum . map (f . abs . subtract val) $ input digitSum x = x * (x + 1) `div` 2 median = input !! (length input `div` 2) mean = map ((+...
null
https://raw.githubusercontent.com/sondresl/AdventOfCode/84d1bcf235b10eb84c968f368945de029ffa19c2/2021/Haskell/src/Day07.hs
haskell
98231647
module Day07 where import Lib (commaNums) import Data.List (sort) main :: IO () main = do input <- sort . commaNums <$> readFile "../data/day07.in" let run f val = sum . map (f . abs . subtract val) $ input digitSum x = x * (x + 1) `div` 2 median = input !! (length input `div` 2) mean = map ((+...
e32e2c2199ed18032c003017c32f511de6f89007ad52aa7862786b80523bb4c4
sbcl/sbcl
early-full-eval.lisp
An interpreting EVAL This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software is in the public domain and is ;;;; provid...
null
https://raw.githubusercontent.com/sbcl/sbcl/c085b7b08d530a4db498d8f8b71b5b7a4b0beca5/src/code/early-full-eval.lisp
lisp
more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. !defstruct-with-alternate-metaclass is unslammable and the this stuff is split out into its own file. Also, it lets the compiler/main and co...
An interpreting EVAL This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB-EVAL") RECOMPILE restart does n't work on it . This is the main reason why INTE...
2ab65d9946851b327c86dc0bbaf8c181efbc7bf81693d79db50872499eaee73b
ocaml-batteries-team/batteries-included
test_file.ml
open OUnit open BatFile open BatIO open BatPervasives (**Initialize data sample*) let state = BatRandom.State.make [|0|];; let buffer = BatArray.of_enum (BatEnum.take 60 (BatRandom.State.enum_int state 255));; (**Write sample to temporary file*) let write buf = let (out, name) = open_temporary_out ~mode:[`delete_o...
null
https://raw.githubusercontent.com/ocaml-batteries-team/batteries-included/d471e24712dd1c0adb90db6894c1c721078b3934/testsuite/test_file.ml
ocaml
*Initialize data sample *Write sample to temporary file *Read from temporary file *Actual tests pass pass pass
open OUnit open BatFile open BatIO open BatPervasives let state = BatRandom.State.make [|0|];; let buffer = BatArray.of_enum (BatEnum.take 60 (BatRandom.State.enum_int state 255));; let write buf = let (out, name) = open_temporary_out ~mode:[`delete_on_exit] () in BatEnum.iter (write_byte out) (BatArray.enum b...
7bd97878c0ba36d0a6d87a4b937b68ab2a786ddfd96c92d262516d321c91d4b4
borodust/mortar-combat
ui.lisp
(in-package :mortar-combat) (defun fill-score-table (layout arena) (abandon-all layout) (loop for (name . score) in (score arena) do (adopt layout (make-text-label name :align :left)) (adopt layout (make-text-label (format nil "~A" score) :align :right)))) (defmacro subscribe-to-click ((root ...
null
https://raw.githubusercontent.com/borodust/mortar-combat/548bdda21594185f36c365f25015c5edcc37b828/client/src/ui.lisp
lisp
(in-package :mortar-combat) (defun fill-score-table (layout arena) (abandon-all layout) (loop for (name . score) in (score arena) do (adopt layout (make-text-label name :align :left)) (adopt layout (make-text-label (format nil "~A" score) :align :right)))) (defmacro subscribe-to-click ((root ...
2023d7038cac85df8c220ab858c55fa0a3107e62055c612cfe0c8fc3c19e2847
nixeagle/cl-irc
utility.lisp
$ Id$ ;;;; $Source$ ;;;; See the LICENSE file for licensing information. (in-package :irc) (defun get-day-name (day-number) "Given a number, such as 1, return the appropriate day name, abbrevated, such as \"Tue\". Index 0 is Monday." (case day-number (0 "Mon") (1 "Tue") (2 "Wed") (3 "Thu") ...
null
https://raw.githubusercontent.com/nixeagle/cl-irc/efaea15f2962107ea9b1a2fad5cd9db492b4247b/tags/cl-irc_upstream_version_0_5_1/utility.lisp
lisp
$Source$ See the LICENSE file for licensing information.
$ Id$ (in-package :irc) (defun get-day-name (day-number) "Given a number, such as 1, return the appropriate day name, abbrevated, such as \"Tue\". Index 0 is Monday." (case day-number (0 "Mon") (1 "Tue") (2 "Wed") (3 "Thu") (4 "Fri") (5 "Sat") (6 "Sun") (otherwise (error "...
865d506ec8c2a7a4075d91eb450eb4b6dcc5b3536372cbf868936383f991aa4b
open-telemetry/opentelemetry-erlang
otel_propagator_b3single.erl
%%%------------------------------------------------------------------------ Copyright 2019 , OpenTelemetry Authors 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 %% %% Unl...
null
https://raw.githubusercontent.com/open-telemetry/opentelemetry-erlang/d59fcba9ab325b5fb262f4c1e6be66314300a093/apps/opentelemetry_api/src/otel_propagator_b3single.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 o...
Copyright 2019 , OpenTelemetry Authors Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , . -module(otel_propagator_b3single). -behaviour(otel_propagator_text_map). -export([fields/1, inject/4, extract/5...
61c6cbe1020e2e76d1ff2f95569c6f5c6cbd47b1c8f48629282a11e8bad1cd09
jaredly/reason-language-server
stypes.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/jaredly/reason-language-server/ce1b3f8ddb554b6498c2a83ea9c53a6bdf0b6081/ocaml_typing/407/stypes.ml
ocaml
************************************************************************ OCaml ...
, projet , INRIA Rocquencourt Copyright 2003 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Annot;; open Lexing;; open Location;; open Typedtree;; let output_int oc i = output_string oc (string_of_i...
ba04316671755045851bd0c7b9c230dce1d3c5ba70787310fe9de9671901a16f
vtan/spanout
Common.hs
# LANGUAGE TemplateHaskell # # LANGUAGE TypeOperators # module Spanout.Common ( M , type (->>) , GameState(..) , gsBall , gsBatX , gsBricks , Ball(..) , ballPos , ballVel , Brick(..) , brPos , brGeom , BrickGeom(..) , Env(..) , envMouse , envKeys , screenWidth , screenHeight , ...
null
https://raw.githubusercontent.com/vtan/spanout/d0b2c1b428b4143ec12637dd09b044d627e53767/src/Spanout/Common.hs
haskell
The monad stack under reactive values A reactive value of type `b`, which depends on a value of type `a`
# LANGUAGE TemplateHaskell # # LANGUAGE TypeOperators # module Spanout.Common ( M , type (->>) , GameState(..) , gsBall , gsBatX , gsBricks , Ball(..) , ballPos , ballVel , Brick(..) , brPos , brGeom , BrickGeom(..) , Env(..) , envMouse , envKeys , screenWidth , screenHeight , ...
125b4c586b13aead01a948f6ea2ec10ad376940e446be603eafcb271bd4a2938
onedata/op-worker
clproto_utils.erl
%%%------------------------------------------------------------------- @author ( C ) 2019 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc %%% Utility functions for clproto mess...
null
https://raw.githubusercontent.com/onedata/op-worker/b09f05b6928121cec4d6b41ce8037fe056e6b4b3/src/modules/communication/protocol/clproto_utils.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc Utility functions for clproto messages. @end ------------------------------------------------------------------- API ====================================================...
@author ( C ) 2019 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . -module(clproto_utils). -author("Bartosz Walkowicz"). -include("global_definitions.hrl"). -include("proto/oneclient/client_messages.hrl"). -include("proto/oneclient/server_messages.hrl"). -export(...
d37d766bc512ae6d3ac676f14595333cf12a68bd2154b40015481e744d811cb8
BekaValentine/SimpleFP-v2
Unification.hs
{-# OPTIONS -Wall #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE TypeSynonymInstances #-} # LANGUAGE UndecidableInstances # -- | This module defines unification of dependent types. module Poly.Unification.Unification where import Utils.ABT impor...
null
https://raw.githubusercontent.com/BekaValentine/SimpleFP-v2/ae00ec809caefcd13664395b0ae2fc66145f6a74/src/Poly/Unification/Unification.hs
haskell
# OPTIONS -Wall # # LANGUAGE TypeSynonymInstances # | This module defines unification of dependent types. | Equating terms by trivial structural equations.
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE UndecidableInstances # module Poly.Unification.Unification where import Utils.ABT import Utils.Elaborator import Utils.Pretty import Utils.Unifier import Poly.Core.Type import Poly.Unification.Elaborator ...
8b6f85fdb3d8770cd997d9e12b9140b63ea9113e74f44f38336980f5a86dac2f
ujamjar/ctypes_of_clang
structs.ml
[%ccode {| #include "test/structs.h" |}]
null
https://raw.githubusercontent.com/ujamjar/ctypes_of_clang/08d5179be6f3f5ef07ceae6565301f12192ab4b7/test/structs.ml
ocaml
[%ccode {| #include "test/structs.h" |}]
5c70ee286db75e4cf50c9b632cca00bdc513d1a87e6d0ebf0aa9e28323d73c74
gedge-platform/gedge-platform
rabbit_mgmt_hsts.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved . %% %% Sets HSTS header(s) on the response if configu...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/rabbitmq_management/src/rabbit_mgmt_hsts.erl
erlang
Sets HSTS header(s) on the response if configured, see -US/docs/Web/HTTP/Headers/Strict-Transport-Security. API
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved . -module(rabbit_mgmt_hsts). -export([set_headers/1]). ...
a79e4698f54fcd527f269dfd5c9a7bae618c739cafbf775088c9b5bdef7ed18b
swift-nav/labsat
Labsat.hs
# LANGUAGE FlexibleContexts # # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} module Labsat where import Control.Concurrent.Async.Lifted (race_) import Control.Concurrent.Lifted (threadDelay) import Data.Attoparsec.ByteString import qualified Data.ByteString ...
null
https://raw.githubusercontent.com/swift-nav/labsat/58ec344fffa6e06c27d30bc3f753103e312040ee/src/Labsat.hs
haskell
# LANGUAGE OverloadedStrings # ------------------------------------------------------------------------------ | Bracketed opening, closing of a binary file. | Strip ANSI color codes | Receive command response and strip color codes | Receive command response, strip color codes, and log to file | Parse connecti...
# LANGUAGE FlexibleContexts # # LANGUAGE NoImplicitPrelude # module Labsat where import Control.Concurrent.Async.Lifted (race_) import Control.Concurrent.Lifted (threadDelay) import Data.Attoparsec.ByteString import qualified Data.ByteString as BS import qualified...
63e9bddf72fa20be851d4565f35afb3f875863f36baf07e490274468515f332a
dlowe-net/orcabot
strings.lisp
(in-package #:orcabot) ;;; utilities that only deal with strings (defun join-to-string (delimiter seq) "Returns a string with the printed elements of SEQ seperated by the printed elements of DELIMITER." quick check for zero - length list , avoiding the call to LENGTH (when (endp seq) (return-from join-to-st...
null
https://raw.githubusercontent.com/dlowe-net/orcabot/bf3c799337531e6b16086e8105906cc9f8808313/src/strings.lisp
lisp
utilities that only deal with strings
(in-package #:orcabot) (defun join-to-string (delimiter seq) "Returns a string with the printed elements of SEQ seperated by the printed elements of DELIMITER." quick check for zero - length list , avoiding the call to LENGTH (when (endp seq) (return-from join-to-string "")) (let ((seq-len (length seq)...
46062b31304e80a986c6a775c5d78c568f27c9353309651e7a827cfee8dd889c
yakovzaytsev/screamer-plus
einstein.lisp
Example : " The Einstein 's Riddle " . ;;;; There are five houses in a row , each of different color . ;;;; ;;;; Each has an owner of a different nationality. ;;;; ;;;; Each owner has a unique favorite drink, type of cigarette, and a pet. ;;;; 1 . The lives in the red house 2 . The Swede keeps dogs as pe...
null
https://raw.githubusercontent.com/yakovzaytsev/screamer-plus/08b4fccb4f4b68f7acc2a2f609d368711748d94e/examples/einstein.lisp
lisp
Each has an owner of a different nationality. Each owner has a unique favorite drink, type of cigarette, and a pet. Question: Who owns the fish? Asserting things, failing when they don't hold. A house. Generators for house properties. Each element is unique, so if it has been generated before we immediately...
Example : " The Einstein 's Riddle " . There are five houses in a row , each of different color . 1 . The lives in the red house 2 . The Swede keeps dogs as pets 3 . The Dane drinks tea 4 . The green house is on the left of the white house 5 . The green house 's owner drinks coffee 6 ...
9e5c3a3f80ab54f3dae0aaf989c02fa363b1b119d68730601a99b681da39b3f8
lamdu/lamdu
VersionControl.hs
{-# LANGUAGE RankNTypes, DerivingVia #-} module Lamdu.GUI.VersionControl ( makeBranchSelector, eventMap ) where import qualified Control.Lens as Lens import qualified Data.List.Extended as List import qualified Data.Property as Property import GUI.Momentu (TextWidget, EventMap, ModKey, noMods, Update...
null
https://raw.githubusercontent.com/lamdu/lamdu/5b15688e53ccbf7448ff11134b3e51ed082c6b6c/src/Lamdu/GUI/VersionControl.hs
haskell
# LANGUAGE RankNTypes, DerivingVia #
module Lamdu.GUI.VersionControl ( makeBranchSelector, eventMap ) where import qualified Control.Lens as Lens import qualified Data.List.Extended as List import qualified Data.Property as Property import GUI.Momentu (TextWidget, EventMap, ModKey, noMods, Update) import qualified GUI.Momentu.Align as A...
fcb947a30d98d22dc9bde55f3b68c03660b8be65e2bf9bb3b380bfe1c2f65bf5
SimulaVR/godot-haskell
InputEventWithModifiers.hs
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.InputEventWithModifiers (Godot.Core.InputEventWithMo...
null
https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/InputEventWithModifiers.hs
haskell
# NOINLINE bindInputEventWithModifiers_get_alt # | State of the @Alt@ modifier. | State of the @Alt@ modifier. | State of the @Meta@ modifier. | State of the @Meta@ modifier. | State of the @Alt@ modifier. | State of the @Alt@ modifier. | State of the @Meta@ modifier. | State of the @Meta@ modifier.
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.InputEventWithModifiers (Godot.Core.InputEventWithMo...
ce740acceeb6e5b439e7c4f5279a542e1158d27448a0759547eb61fdc6a0f565
FreeAndFair/STAR-Vote
All.hs
module Main where import Test.QuickCheck import StarVote.Crypto.Math expModCorrect m b e = expMod m b e == 1 + b^e `mod` m main :: IO () main = quickCheck expModCorrect
null
https://raw.githubusercontent.com/FreeAndFair/STAR-Vote/2555cbae8794ec6f34889fdabac314ff9f22b437/star-crypto/test/All.hs
haskell
module Main where import Test.QuickCheck import StarVote.Crypto.Math expModCorrect m b e = expMod m b e == 1 + b^e `mod` m main :: IO () main = quickCheck expModCorrect
ccf2d409f62742883e65bde625f6e9df4b4e3acb8e54371b396584a7bc49f42c
mtgred/netrunner
identities.clj
(ns game.cards.identities (:require [clojure.string :as str] [game.core.access :refer [access-bonus access-cost-bonus access-non-agenda]] [game.core.bad-publicity :refer [gain-bad-publicity]] [game.core.board :refer [all-active-installed all-installed card->server get-remote-na...
null
https://raw.githubusercontent.com/mtgred/netrunner/c689b882a22b95c25fe584a14d092f300fe3816e/src/clj/game/cards/identities.clj
clojure
Helper functions for Draft cards Has plurality update best-faction Lost plurality Count is not more, do not change the accumulator map Card definitions Add directives to :play-area - assumed to be empty Effect marks Az's ability as "used" if it has already met it's trigger condition this turn these cards get tr...
(ns game.cards.identities (:require [clojure.string :as str] [game.core.access :refer [access-bonus access-cost-bonus access-non-agenda]] [game.core.bad-publicity :refer [gain-bad-publicity]] [game.core.board :refer [all-active-installed all-installed card->server get-remote-na...
901a6372b0b22f02165e837b79e97f782eaec5921ef1e4c50ac96c7ed8bac504
joaotavora/sly
slynk-fancy-inspector.lisp
slynk-fancy-inspector.lisp --- Fancy inspector for CLOS objects ;; Author : < > and others ;; License: Public Domain ;; (in-package :slynk) (defmethod emacs-inspect ((symbol symbol)) (let ((package (symbol-package symbol))) (multiple-value-bind (_symbol status) (and package (find-symbol (string s...
null
https://raw.githubusercontent.com/joaotavora/sly/5966d68727898fa6130fb6bb02208f70aa8d5ce3/contrib/slynk-fancy-inspector.lisp
lisp
License: Public Domain Value unbinding constants might be not a good idea, but implementations usually provide a restart. Function Package Class More package FIXME: argument-precedence-order and qualifiers are ignored. Along this counter the buttons are created, so we have to initialize it to 0 every...
slynk-fancy-inspector.lisp --- Fancy inspector for CLOS objects Author : < > and others (in-package :slynk) (defmethod emacs-inspect ((symbol symbol)) (let ((package (symbol-package symbol))) (multiple-value-bind (_symbol status) (and package (find-symbol (string symbol) package)) (declare ...
85a6b18cbf88b8f77071fc44daf6c5a2ca0873f9f744d5ecb0f916228df71267
atgreen/lisp-openshift
document.lisp
(in-package :cl-mongo) #| Document is a collection of key/value pairs |# (defun make-elements (size) (make-hash-table :test #'equal :size size)) (defclass document() ((elements :initarg :elements :accessor elements) (_local_id :initarg :local :reader _local) (_id :initarg :oid :reader _id)...
null
https://raw.githubusercontent.com/atgreen/lisp-openshift/40235286bd3c6a61cab9f5af883d9ed9befba849/quicklisp/dists/quicklisp/software/cl-mongo-20120208-git/src/document.lisp
lisp
Document is a collection of key/value pairs To get the document id use the keyword :_id When the to-hash-able finalizer is used, embedded docs/tables in the response aren't converted to hash tables but to documents. When print-hash is used we want to see hash table like output so that's what this tries t...
(in-package :cl-mongo) (defun make-elements (size) (make-hash-table :test #'equal :size size)) (defclass document() ((elements :initarg :elements :accessor elements) (_local_id :initarg :local :reader _local) (_id :initarg :oid :reader _id)) (:default-initargs :local t :oid (make-bso...
42badac75095d6f71cfb61a91290f3abd531f280f05af749c56acf916a33cf42
mbj/stratosphere
ForwardedIPConfigurationProperty.hs
module Stratosphere.WAFv2.RuleGroup.ForwardedIPConfigurationProperty ( ForwardedIPConfigurationProperty(..), mkForwardedIPConfigurationProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProper...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/wafv2/gen/Stratosphere/WAFv2/RuleGroup/ForwardedIPConfigurationProperty.hs
haskell
module Stratosphere.WAFv2.RuleGroup.ForwardedIPConfigurationProperty ( ForwardedIPConfigurationProperty(..), mkForwardedIPConfigurationProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProper...
77d54e381a12bdc81a98156eece293ee6e2e26f56781bc3d406b555cad3110a8
bevuta/pepa
resources.clj
(ns pepa.resources (:require [clojure.java.io :as io] [clojure.string :as s])) ;;; Provides a macro which lists all files under ;;; resources/public/img/. This is used by ClojureScript to fire up an image - preloader (def +public-path+ "resources/public/") (def +image-path+ (str +public-path+ "img/"))...
null
https://raw.githubusercontent.com/bevuta/pepa/0a9991de0fd1714515ca3def645aec30e21cd671/src-cljs/pepa/resources.clj
clojure
Provides a macro which lists all files under resources/public/img/. This is used by ClojureScript to fire up an
(ns pepa.resources (:require [clojure.java.io :as io] [clojure.string :as s])) image - preloader (def +public-path+ "resources/public/") (def +image-path+ (str +public-path+ "img/")) (defmacro image-resources [] (into [] (comp (remove #(.isDirectory %)) (map str) (...
2cc8a74fc72d8a549a6e66dbebe8a9b58b08fd68ab4cc03f10d705358b055efd
morloc-project/morloc
Error.hs
{-# LANGUAGE OverloadedStrings #-} | Module : Morloc . Error Description : Prepare error messages from MorlocError types Copyright : ( c ) , 2021 License : GPL-3 Maintainer : Stability : experimental MorlocError is the type used within morloc to store data related to any errors t...
null
https://raw.githubusercontent.com/morloc-project/morloc/c4e76083afaaaeae2bb53a65fe23604200fdf2e0/library/Morloc/Error.hs
haskell
# LANGUAGE OverloadedStrings # TODO: this will be a common class of errors and needs an informative message container errors module errors serialization errors type extension errors
| Module : Morloc . Error Description : Prepare error messages from MorlocError types Copyright : ( c ) , 2021 License : GPL-3 Maintainer : Stability : experimental MorlocError is the type used within morloc to store data related to any errors that are encountered . Data construc...
3d6b3a9301d4e90a182b6c9489d3223166d32f2793c7dabc910a2b100ae91387
ruricolist/cloture
interpol.lisp
Copyright ( c ) 2003 - 2008 , Dr. . All rights reserved . ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; * Redistributions of source code must retain the above copyright ;;; notice, this list of c...
null
https://raw.githubusercontent.com/ruricolist/cloture/a4fa26ded0a02aa7558fdded448b0aa773c09277/interpol.lisp
lisp
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form mus...
Copyright ( c ) 2003 - 2008 , Dr. . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (defpackage :cloture.interpol (:use :cl :cl-ppcre) (:import-from :serapeum :defvar-unbound :string-join) (:...
054c3c47e6e80a37127b7461b5b6c26a6792f8edc00f3fc1da78cab68113c918
LPCIC/matita
nCicTypeChecker.mli
||M|| This file is part of HELM , an Hypertextual , Electronic ||A|| Library of Mathematics , developed at the Computer Science ||T|| Department , University of Bologna , Italy . ||I|| ||T||...
null
https://raw.githubusercontent.com/LPCIC/matita/794ed25e6e608b2136ce7fa2963bca4115c7e175/matita/components/ng_kernel/nCicTypeChecker.mli
ocaml
These are the only exceptions that will be raised ind = indtype @ lefts * arity1 = constructor type @ lefts * arity2 = outtype Functions to be used by the refiner
||M|| This file is part of HELM , an Hypertextual , Electronic ||A|| Library of Mathematics , developed at the Computer Science ||T|| Department , University of Bologna , Italy . ||I|| ||T||...
62f881bab607f7f6f83e2a14a718d35d9ee6a65d10b58044b6a6049ce28e3879
databrary/databrary
API.hs
{-# LANGUAGE OverloadedStrings, RecordWildCards #-} module EZID.API ( EZIDM , runEZIDM , ezidStatus , EZIDMeta(..) , ezidCreate , ezidModify ) where import Control.Arrow (left) import Control.Exception.Lifted (try) import Control.Monad ((<=<), join) import Control.Monad.IO.Class (liftIO) import Control.M...
null
https://raw.githubusercontent.com/databrary/databrary/c5a03129c6c113a12fc649b2852a972325bfcdb9/src/EZID/API.hs
haskell
# LANGUAGE OverloadedStrings, RecordWildCards #
module EZID.API ( EZIDM , runEZIDM , ezidStatus , EZIDMeta(..) , ezidCreate , ezidModify ) where import Control.Arrow (left) import Control.Exception.Lifted (try) import Control.Monad ((<=<), join) import Control.Monad.IO.Class (liftIO) import Control.Monad.Trans.Reader (ReaderT(..)) import qualified Dat...
4d729737e544beaa27ebd76138c0319296b389109921653a883431f7a261b68a
janestreet/memtrace_viewer_with_deps
data.ml
open! Core_kernel module Location = struct module T = struct type t = { filename : string ; line : int ; start_char : int ; end_char : int ; defname : string } [@@deriving sexp, bin_io, compare, hash, fields] end include T include Comparable.Make_binable (T) inclu...
null
https://raw.githubusercontent.com/janestreet/memtrace_viewer_with_deps/5a9e1f927f5f8333e2d71c8d3ca03a45587422c4/common/data.ml
ocaml
open! Core_kernel module Location = struct module T = struct type t = { filename : string ; line : int ; start_char : int ; end_char : int ; defname : string } [@@deriving sexp, bin_io, compare, hash, fields] end include T include Comparable.Make_binable (T) inclu...
1ce80685c438a238930d973af63a84f5e6553a9dab70ae02aaaf35c923ce0bc0
ijvcms/chuanqi_dev
map_10006.erl
-module(map_10006). -export([ range/0, data/0 ]). range() -> {20, 12}. data() -> { {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/map_data/map_10006.erl
erlang
-module(map_10006). -export([ range/0, data/0 ]). range() -> {20, 12}. data() -> { {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0...
b607f120fdb5173d34e08d1e994cbf78a7061488018058c77bdc8ab6765a39d0
noinia/hgeometry
RationalSpec.hs
# LANGUAGE DataKinds # module Data.RealNumber.RationalSpec where import Data.RealNumber.Rational import Test.Hspec -- import Test.QuickCheck -------------------------------------------------------------------------------- type R = RealNumber 5 spec :: Spec spec = do describe "Read/Sh...
null
https://raw.githubusercontent.com/noinia/hgeometry/46084245edc2b335c809f6ebc04ff5e52731a436/hgeometry-combinatorial/test/Data/RealNumber/RationalSpec.hs
haskell
import Test.QuickCheck ------------------------------------------------------------------------------
# LANGUAGE DataKinds # module Data.RealNumber.RationalSpec where import Data.RealNumber.Rational import Test.Hspec type R = RealNumber 5 spec :: Spec spec = do describe "Read/Show" $ do it "read basic" $ do read (show (1::R)) `shouldBe` (1::R) read (show (negate 1::R)) `shouldB...
9d5ebc1c1c8567ab7fddbb778e7b54072a337e2fff02caf223662d00e07a011b
borkdude/advent-of-babashka
new_day.clj
(ns new-day (:require [babashka.curl :as curl] [babashka.fs :as fs] [clojure.string :as str])) (defn strip-leading-zero [day] (str/replace day #"^0" "")) (defn ensure-leading-zero [day] (if (= 1 (count day)) (str "0" day) day)) (defn new-day {:org.babashka/cli {:coerce {:day :string ...
null
https://raw.githubusercontent.com/borkdude/advent-of-babashka/afc183d4eb59e790c281b926df35789ae813ba16/bb/new_day.clj
clojure
(ns new-day (:require [babashka.curl :as curl] [babashka.fs :as fs] [clojure.string :as str])) (defn strip-leading-zero [day] (str/replace day #"^0" "")) (defn ensure-leading-zero [day] (if (= 1 (count day)) (str "0" day) day)) (defn new-day {:org.babashka/cli {:coerce {:day :string ...
4218d4d4bf537e2be486face633a7fb8166d938987689db567408b883204e0be
narkisr-deprecated/core
migrations.clj
(ns re-core.persistency.migrations "re-core global migrations" (:import java.security.SecureRandom ) (:require [cemerick.friend.credentials :as creds] [re-core.security :refer (set-user)] [puny.migrations :refer (migrate)] [re-core.persistency.systems :as s] [re-core.persistency.actions :as a...
null
https://raw.githubusercontent.com/narkisr-deprecated/core/85b4a768ef4b3a4eae86695bce36d270dd51dbae/src/re_core/persistency/migrations.clj
clojure
(ns re-core.persistency.migrations "re-core global migrations" (:import java.security.SecureRandom ) (:require [cemerick.friend.credentials :as creds] [re-core.security :refer (set-user)] [puny.migrations :refer (migrate)] [re-core.persistency.systems :as s] [re-core.persistency.actions :as a...
be807786c5340d6ab054e86dff26e58a7a3d374fe8438d2606c642d33a188f5d
IBM/probzelus
run.ml
* Copyright 2018 - 2020 IBM Corporation * * 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 writin...
null
https://raw.githubusercontent.com/IBM/probzelus/3bdd60e3c4010452239bfe7bc79165802e5d941b/benchmarks/mtt/ds_nogc/run.ml
ocaml
* Copyright 2018 - 2020 IBM Corporation * * 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 writin...
2cb98be495b5b086742ffae6226fb9f11769aa2f4561f91f23614113d94de932
GAumala/epub2md
FileManagerTests.hs
{-# LANGUAGE OverloadedStrings #-} module FileManagerTests ( getOutputDirTest, getOutputMarkdownFilePathTest, getRelativePathTest ) where import Test.HUnit import qualified Data.Text as T import FileManager getOutputDirTest = TestCase ( assertEqual "should return the path to the output dir, next to root dir...
null
https://raw.githubusercontent.com/GAumala/epub2md/a2743a2766a50aa7feaa0eb3e5ad00cc9bd7308a/test/FileManagerTests.hs
haskell
# LANGUAGE OverloadedStrings #
module FileManagerTests ( getOutputDirTest, getOutputMarkdownFilePathTest, getRelativePathTest ) where import Test.HUnit import qualified Data.Text as T import FileManager getOutputDirTest = TestCase ( assertEqual "should return the path to the output dir, next to root dir" [ "epub-files-md", ...
974c8cc7ef046231e12d8e19a756e22534d5f050a216104bb5dd3d1716cf9ac3
zwizwa/staapl
scasm.rkt
#lang racket/base ;; A simple Scheme-based assembly language. The basic idea is to experiment a bit with dsPIC and ARM . The assembler used for the PIC18 is not powerful enough to host ;; RISC-style addressing modes. ;; dsPIC33EP32MC202 16 - bit MCU and DSC Programmer 's Reference Manual ;; ;; So... dsP...
null
https://raw.githubusercontent.com/zwizwa/staapl/e30e6ae6ac45de7141b97ad3cebf9b5a51bcda52/scasm/scasm.rkt
racket
A simple Scheme-based assembly language. RISC-style addressing modes. dsPIC33EP32MC202 So... dsPIC is rather quirky. This is not a small project.
#lang racket/base The basic idea is to experiment a bit with dsPIC and ARM . The assembler used for the PIC18 is not powerful enough to host 16 - bit MCU and DSC Programmer 's Reference Manual
f9c96dfee04d412dc181973487d90ec3a111c3d1eb786de354c491bc9d1c0756
GianlucaGuarini/fortytwo
TheAnswerToEverything.hs
module FortyTwo.TheAnswerToEverything ( theAnswerToEverything ) where -- | The answer to everything in the universe theAnswerToEverything :: Int theAnswerToEverything = 42
null
https://raw.githubusercontent.com/GianlucaGuarini/fortytwo/6d8d801f85e1dd993ee4cae6490a638872a14b47/src/FortyTwo/TheAnswerToEverything.hs
haskell
| The answer to everything in the universe
module FortyTwo.TheAnswerToEverything ( theAnswerToEverything ) where theAnswerToEverything :: Int theAnswerToEverything = 42
033f3da327ca712b31ff8f39bcaedd62b4d5309fd89ec137b796a3e48a04b0b7
lipas-liikuntapaikat/lipas
interceptors.cljs
(ns lipas.ui.interceptors (:require [lipas.ui.local-storage :as local-storage] [lipas.ui.utils :as utils] [re-frame.core :as re-frame])) (def logout-event [:lipas.ui.login.events/logout]) (def check-token (re-frame/->interceptor :id ::check-token :before (fn [context] (let [expi...
null
https://raw.githubusercontent.com/lipas-liikuntapaikat/lipas/f60185b597d2a7fca5480b392cd33187bccfb34a/webapp/src/cljs/lipas/ui/interceptors.cljs
clojure
Delete any further actions in chain
(ns lipas.ui.interceptors (:require [lipas.ui.local-storage :as local-storage] [lipas.ui.utils :as utils] [re-frame.core :as re-frame])) (def logout-event [:lipas.ui.login.events/logout]) (def check-token (re-frame/->interceptor :id ::check-token :before (fn [context] (let [expi...
a32a8f85309f6b515e018dbede0d42f51b82edebc67b1f5627105ee2ba8e2c70
webnf/webnf
katie.clj
(ns webnf.cats.katie "Top-Level Categories: - Applicative (pure, fmap)" (:require [webnf.cats.connie :refer [Continuation cont* defcontinuation defcontinuation* continue*]])) (defcontinuation* Pure1 [k v1] (k v1)) (defcontinuation* Pure2 [k v1 v2] (k v1 v2)) (defcontinuation* Pure3 [k v1 v2 v3] (k...
null
https://raw.githubusercontent.com/webnf/webnf/6a2ccaa755e6e40528eb13a5c36bae16ba4947e7/cats/src/webnf/cats/katie.clj
clojure
(ns webnf.cats.katie "Top-Level Categories: - Applicative (pure, fmap)" (:require [webnf.cats.connie :refer [Continuation cont* defcontinuation defcontinuation* continue*]])) (defcontinuation* Pure1 [k v1] (k v1)) (defcontinuation* Pure2 [k v1 v2] (k v1 v2)) (defcontinuation* Pure3 [k v1 v2 v3] (k...
78da742fc8210886e20d8d8c5cfcdee17e5eac479b2c2e931ac419688ad62ca5
erlang/erlide_kernel
erlide_builder.erl
%%% ****************************************************************************** Copyright ( c ) 2004 and others . %%% All rights reserved. This program and the accompanying materials %%% are made available under the terms of the Eclipse Public License v1.0 %%% which accompanies this distribution, and is avai...
null
https://raw.githubusercontent.com/erlang/erlide_kernel/763a7fe47213f374b59862fd5a17d5dcc2811c7b/common/apps/erlide_builder/src/erlide_builder.erl
erlang
****************************************************************************** All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors: ************************...
Copyright ( c ) 2004 and others . -v10.html Author : Created : 08 Aug 2005 by -module(erlide_builder). -export([ compile/1, compile/3, compile/4, compile_yrl/2, code_clash/0, source_clash/1, build_resources/5, comp...
0c8bdbc6659da6bfda23e8754f3916219c6c2e4687ea06c958363aa44504226f
returntocorp/semgrep
Parse_terraform_tree_sitter.ml
* * Copyright ( c ) 2021 , 2023 r2c * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file LICE...
null
https://raw.githubusercontent.com/returntocorp/semgrep/dcea978347df81cbc8f2c2b49b80c1980f6194cf/languages/terraform/tree-sitter/Parse_terraform_tree_sitter.ml
ocaml
*************************************************************************** Prelude *************************************************************************** *************************************************************************** Helpers ************************************************************************...
* * Copyright ( c ) 2021 , 2023 r2c * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file LICE...
f2ee3ea2a1749eceb5b9328242a1667e5769227141f3b1b1607e1272400c30f7
coq/coq
unification.ml
(************************************************************************) (* * 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/61ed5bf56871768ca020f119baa963b69ffe56f3/pretyping/unification.ml
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...
b4bc2a8f85cabe8f8e4f80d7fbb16a638df17686e109c86bf47ac36948f8b6fa
uw-unsat/leanette-popl22-artifact
engine.rkt
#lang s-exp rosette (require racket/require (matching-identifiers-in #rx"^node/.+$" "../lang/ast.rkt") (only-in "../lang/ast.rkt" relation-name relation-arity) "../lang/bounds.rkt" "../lang/universe.rkt" "matrix.rkt" "matrix-ops.rkt" "symmetry.rkt" "interpretation.rkt" rosette/lib/m...
null
https://raw.githubusercontent.com/uw-unsat/leanette-popl22-artifact/80fea2519e61b45a283fbf7903acdf6d5528dbe7/rosette-benchmarks-3/memsynth/ocelot/engine/engine.rkt
racket
quantifier: 'all or 'some f: the predicate
#lang s-exp rosette (require racket/require (matching-identifiers-in #rx"^node/.+$" "../lang/ast.rkt") (only-in "../lang/ast.rkt" relation-name relation-arity) "../lang/bounds.rkt" "../lang/universe.rkt" "matrix.rkt" "matrix-ops.rkt" "symmetry.rkt" "interpretation.rkt" rosette/lib/m...
28b2e9193d7b645ce872f685846762f78749543333dd974e995939aa44b8ea27
tonymorris/geo-gpx
KeywordsL.hs
module Data.Geo.GPX.Lens.KeywordsL where import Data.Lens.Common class KeywordsL a where keywordsL :: Lens a (Maybe String)
null
https://raw.githubusercontent.com/tonymorris/geo-gpx/526b59ec403293c810c2ba08d2c006dc526e8bf9/src/Data/Geo/GPX/Lens/KeywordsL.hs
haskell
module Data.Geo.GPX.Lens.KeywordsL where import Data.Lens.Common class KeywordsL a where keywordsL :: Lens a (Maybe String)
04fc27509d5b1d57d4aa286c6955315ef1fa2a1bf8bf70593aa1d527aefad84f
gpetiot/Frama-C-StaDy
symbolic_label.ml
type label = | BegStmt of int | EndStmt of int | BegFunc of string | EndFunc of string | BegIter of int | EndIter of int type t = label let beg_stmt x = BegStmt x let end_stmt x = EndStmt x let beg_func x = BegFunc x let end_func x = EndFunc x let beg_iter x = BegIter x let end_iter x = EndIter x le...
null
https://raw.githubusercontent.com/gpetiot/Frama-C-StaDy/48d8677c0c145d730d7f94e37b7b3e3a80fd1a27/symbolic_label.ml
ocaml
type label = | BegStmt of int | EndStmt of int | BegFunc of string | EndFunc of string | BegIter of int | EndIter of int type t = label let beg_stmt x = BegStmt x let end_stmt x = EndStmt x let beg_func x = BegFunc x let end_func x = EndFunc x let beg_iter x = BegIter x let end_iter x = EndIter x le...
96358cbc34169ce3782dbe115d2107b6efbfc808e339fde0590180b6ae05e62f
sarabander/p2pu-sicp
2.43.scm
(define (queens board-size) (define empty-board '()) (define (adjoin-position new-row k rest-of-queens) (cons (list new-row k) rest-of-queens)) (define (safe? k positions) (disjoint? (rays (car positions) board-size) (cdr positions))) (define (queen-cols k) (if (= k 0) (list empty-board) ...
null
https://raw.githubusercontent.com/sarabander/p2pu-sicp/fbc49b67dac717da1487629fb2d7a7d86dfdbe32/2.2/2.43.scm
scheme
queen-cols is redundantly called 'board-size' times. That is big efficiency T of the original.
(define (queens board-size) (define empty-board '()) (define (adjoin-position new-row k rest-of-queens) (cons (list new-row k) rest-of-queens)) (define (safe? k positions) (disjoint? (rays (car positions) board-size) (cdr positions))) (define (queen-cols k) (if (= k 0) (list empty-board) ...
6fb3a0ec1c8f0946d55d9a309478f0ba212614b084db8747b2c3d3a49033722f
lojic/LearningRacket
ex2c.rkt
#lang racket/base Challenge : If the user enters nothing , state that they must enter something into the program . ; Use if instead of cond (display "What is the input string?") (let loop ([str (read-line)]) (define len (string-length str)) (if (> len 0) (printf "~s has ~a characters." str len) (b...
null
https://raw.githubusercontent.com/lojic/LearningRacket/eb0e75b0e16d3e0a91b8fa6612e2678a9e12e8c7/exercises-for-programmers/02-counting-chars/ex2c.rkt
racket
Use if instead of cond
#lang racket/base Challenge : If the user enters nothing , state that they must enter something into the program . (display "What is the input string?") (let loop ([str (read-line)]) (define len (string-length str)) (if (> len 0) (printf "~s has ~a characters." str len) (begin (display "Pl...
a4fe7bfc889b5de15a89c6637c9c7ee18eb6c5d04eaef83b88be11f82edc27a8
imrehg/ypsilon
alignment.scm
#!nobacktrace Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (library (ypsilon pango alignment) (export pango_alignment_get_type) (import (rnrs) (ypsilon ffi)) (define lib-name (cond (on-linux "libpango-1....
null
https://raw.githubusercontent.com/imrehg/ypsilon/e57a06ef5c66c1a88905b2be2fa791fa29848514/sitelib/ypsilon/pango/alignment.scm
scheme
[end]
#!nobacktrace Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (library (ypsilon pango alignment) (export pango_alignment_get_type) (import (rnrs) (ypsilon ffi)) (define lib-name (cond (on-linux "libpango-1....
595007ec24078980ed326124a8b50fe398a06bae4fafe7cddadc1cb711aca36a
haskell-opengl/OpenGL
ControlPoint.hs
{-# OPTIONS_HADDOCK hide #-} -------------------------------------------------------------------------------- -- | Module : Graphics . Rendering . Copyright : ( c ) 2002 - 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- -- This is a pu...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGL/f7af8fe04b0f19c260a85c9ebcad612737cd7c8c/src/Graphics/Rendering/OpenGL/GL/ControlPoint.hs
haskell
# OPTIONS_HADDOCK hide # ------------------------------------------------------------------------------ | License : BSD3 Stability : stable Portability : portable This is a purely internal module for handling control points. -----------------------------------------------------------------------------...
Module : Graphics . Rendering . Copyright : ( c ) 2002 - 2019 Maintainer : < > module Graphics.Rendering.OpenGL.GL.ControlPoint ( ControlPoint(..) ) where import Foreign.Ptr import Foreign.Storable import Graphics.Rendering.OpenGL.GL.Tensor import Graphics.Rendering.OpenGL.GL.Capabilit...
f321ce7ca0a344380fc18adc52fd79d97467568f007a9150086830eda4c927a3
dalaing/little-languages
Test.hs
| Copyright : ( c ) , 2016 License : : Stability : experimental Portability : non - portable Copyright : (c) Dave Laing, 2016 License : BSD3 Maintainer : Stability : experimental Portability : non-portable -} module Main ( main ) where import Data.Monoid ((<>)) import Data....
null
https://raw.githubusercontent.com/dalaing/little-languages/9f089f646a5344b8f7178700455a36a755d29b1f/code/old/modular/test-i-lang/tests/Test.hs
haskell
| Copyright : ( c ) , 2016 License : : Stability : experimental Portability : non - portable Copyright : (c) Dave Laing, 2016 License : BSD3 Maintainer : Stability : experimental Portability : non-portable -} module Main ( main ) where import Data.Monoid ((<>)) import Data....
de2bbdb49a584126568daaed0c153a020d6c7987938c0e4ba498c4a98dd634f3
TheAlgorithms/Haskell
Dispersion.hs
module Statistics.Dispersion where import Statistics.Center variance :: (Foldable t, Functor t, Fractional a) => t a -> a variance vals = (sum $ fmap (\x -> x * x) deviations) / n where n = (fromIntegral $ length vals) mu = arithmeticMean vals deviations = fmap (\x -> x-mu) vals stdev :: (Fol...
null
https://raw.githubusercontent.com/TheAlgorithms/Haskell/9dcabef99fb8995a760ff25a9e0d659114c0b9d3/src/Statistics/Dispersion.hs
haskell
module Statistics.Dispersion where import Statistics.Center variance :: (Foldable t, Functor t, Fractional a) => t a -> a variance vals = (sum $ fmap (\x -> x * x) deviations) / n where n = (fromIntegral $ length vals) mu = arithmeticMean vals deviations = fmap (\x -> x-mu) vals stdev :: (Fol...
f41368afcebcf67b5d17bd332de50695db358939c3bc834e27de6ed91eea2be2
hoplon/demos
api.clj
(ns app.api (:require [castra.core :refer [defrpc]])) (defrpc get-state [] {:random (rand-int 100)})
null
https://raw.githubusercontent.com/hoplon/demos/50d613892db0624a4f0326c1427d82f5b8e2390f/castra-simple/src/app/api.clj
clojure
(ns app.api (:require [castra.core :refer [defrpc]])) (defrpc get-state [] {:random (rand-int 100)})
329aab0ddd4928684af42f137019abd556d1b6b514e5518eaf8adf9d626a5232
derekmcloughlin/pearls
chap15b.hs
import Data.Array import Queue allcp xs = extract (until done step (as, empty, 0, 1)) where extract (as, qs, h, k) = elemsQueue as done (as, qs, h, k) = (k == n) n = length xs as = insert empty n xa = listArray (0, n - 1) xs step (as, qs, h, k) | k >= h = (insert as a, ...
null
https://raw.githubusercontent.com/derekmcloughlin/pearls/42bc6ea0fecc105386a8b75789f563d44e05b772/chap15/chap15b.hs
haskell
import Data.Array import Queue allcp xs = extract (until done step (as, empty, 0, 1)) where extract (as, qs, h, k) = elemsQueue as done (as, qs, h, k) = (k == n) n = length xs as = insert empty n xa = listArray (0, n - 1) xs step (as, qs, h, k) | k >= h = (insert as a, ...
ddb5edde93f8ca3b170ecfb77bf1326d0b18264dfd6885bc5b19244beff2e2f7
semperos/clj-webdriver
util_test.clj
(ns webdriver.util-test (:require [clojure.test :refer :all] [webdriver.util :refer :all])) ;; Functions to test: ;; ;; * build-css-attrs ;; * build-xpath-attrs ;; * build-css-with-hierarchy ;; * build-xpath-with-hierarchy ;; * build-query (deftest test-contains-regex? (is (contains-regex? {:foo #"bar...
null
https://raw.githubusercontent.com/semperos/clj-webdriver/508eb95cb6ad8a5838ff0772b2a5852dc802dde1/test/webdriver/util_test.clj
clojure
Functions to test: * build-css-attrs * build-xpath-attrs * build-css-with-hierarchy * build-xpath-with-hierarchy * build-query TODO: Research Pattern equality issue requiring only looking at keys here Browser selection Read-only capabilities Read-write capabilities RemoteWebDriver specific Grid-specific B...
(ns webdriver.util-test (:require [clojure.test :refer :all] [webdriver.util :refer :all])) (deftest test-contains-regex? (is (contains-regex? {:foo #"bar" :bar :boom})) (is (not (contains-regex? {:lang "clojure"}))) (is (not (contains-regex? {})))) (deftest test-all-regex? (is (all-regex? {:fo...
01405a782a590652f79b5544c0ad7ccd93bc16303b44c0344a6bcef5be75bdce
bijoutrouvaille/fireward
ExprParser.hs
module ExprParser ( expr, -- the main combinator Expr(..), BinOp(..), UnOp(..), PathPart(..), FuncCall(..) ) where {- - Reference Shortcuts - -language#firestore - -} import Debug.Trace (trace) import Parser import Control.Applicative (optional, empty) import Data.Char (isSpace) import Data.List (interca...
null
https://raw.githubusercontent.com/bijoutrouvaille/fireward/61b8284845ea243e67ec0d852123c33f64ea2317/src/ExprParser.hs
haskell
the main combinator - Reference Shortcuts - -language#firestore - group Do not enforce parens; let firebase complain about possible issues instead. pathlit = do symbol "(" p <- rawpathlit require "raw path is missing a closing paren `)`" $ symbol ")" return p
module ExprParser ( Expr(..), BinOp(..), UnOp(..), PathPart(..), FuncCall(..) ) where import Debug.Trace (trace) import Parser import Control.Applicative (optional, empty) import Data.Char (isSpace) import Data.List (intercalate) import Parser import Combinators data UnOp = OpNeg | OpPos | OpBang derivin...
bce64a0db122a5810f5c675fbc9c186cf7be7fb0993af82868f015661151273f
mejgun/haskell-tdlib
UserSupportInfo.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Data.UserSupportInfo where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.FormattedText as FormattedText import qualified Utils as U -- | | Contains custom information about the user @message Information message @au...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/c9fe0a631abbb042d630817cf648ceae2fe2dad8/src/TD/Data/UserSupportInfo.hs
haskell
# LANGUAGE OverloadedStrings # | | | | |
module TD.Data.UserSupportInfo where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.FormattedText as FormattedText import qualified Utils as U | Contains custom information about the user @message Information message @author Information author @date Information cha...
fd15c16468684185957f2d8a6e91a725b758ce74dae1148545610b4a0d94705a
susanemcg/pandoc-tufteLaTeX2GitBook
Native.hs
{-# LANGUAGE OverloadedStrings #-} Copyright ( C ) 2006 - 2014 < > 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 ver...
null
https://raw.githubusercontent.com/susanemcg/pandoc-tufteLaTeX2GitBook/00c34b4299dd89c4e339e1cde006061918b559ab/pandoc-1.12.4.2/src/Text/Pandoc/Writers/Native.hs
haskell
# LANGUAGE OverloadedStrings # | Prettyprint Pandoc document.
Copyright ( C ) 2006 - 2014 < > 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 . This program is distribut...
57aaf508934c96a5e68118d9a33d1b459c0198f603f157a1dc36d658613d8fa2
RedlineResearch/floorplan
Floorplan.hs
module Language.Floorplan ( module Language.Floorplan.Syntax , module Language.Floorplan.Parser , module Language.Floorplan.Token ) where import Language.Floorplan.Syntax import Language.Floorplan.Parser import Language.Floorplan.Token
null
https://raw.githubusercontent.com/RedlineResearch/floorplan/dbaa7e6649eed18707ff8a27ee3c33fa83b47fcf/src/Language/Floorplan.hs
haskell
module Language.Floorplan ( module Language.Floorplan.Syntax , module Language.Floorplan.Parser , module Language.Floorplan.Token ) where import Language.Floorplan.Syntax import Language.Floorplan.Parser import Language.Floorplan.Token
c94f02dbad2a31d9339ff4535a9b6e616f0fdbc2d8d1b756d0dd404469ac7629
thheller/shadow-cljsjs
sk.cljs
(ns cljsjs.moment.locale.sk (:require ["moment/locale/sk"]))
null
https://raw.githubusercontent.com/thheller/shadow-cljsjs/eaf350d29d45adb85c0753dff77e276e7925a744/src/main/cljsjs/moment/locale/sk.cljs
clojure
(ns cljsjs.moment.locale.sk (:require ["moment/locale/sk"]))
eab3b8a9ce1268adf27d994c9e86ae42e6d4b87aa95e87acdf60a5a67d57ca43
incoherentsoftware/defect-process
SpiritFormProjectile.hs
module Player.Weapon.All.SpiritBlade.SpiritFormProjectile ( mkSpiritFormProjectile , setSpiritFormProjectileTriggered ) where import Control.Monad.IO.Class (MonadIO) import Attack import Attack.Projectile import Collision import Id import Msg import Player.Weapon.All.SpiritBlade.Data import Projectile as ...
null
https://raw.githubusercontent.com/incoherentsoftware/defect-process/8797aad1d93bff5aadd7226c39a48f45cf76746e/src/Player/Weapon/All/SpiritBlade/SpiritFormProjectile.hs
haskell
module Player.Weapon.All.SpiritBlade.SpiritFormProjectile ( mkSpiritFormProjectile , setSpiritFormProjectileTriggered ) where import Control.Monad.IO.Class (MonadIO) import Attack import Attack.Projectile import Collision import Id import Msg import Player.Weapon.All.SpiritBlade.Data import Projectile as ...
11a5ba6ec465b647821a1889d57b12e22e9cc7f5f1b346ad9e2ea5be4c5f51d1
herd/herdtools7
AllBarrier.ml
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/c3b5079aed4bf9d92a5c7de04ef3638d6af0f8c0/herd/AllBarrier.ml
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2010 - present Institut National de Recherche en Informatique et This software is governed by the CeCILL - B license under French law and modify and/ or redistribu...
908816033eaa55f9c1ff1cc0cbf4d6b45bfefe1cbf0e809e72d0028ab782df1f
pa-ba/Rattus
SingleTick.hs
-- | This module implements the translation from the multi-tick -- calculus to the single tick calculus. # LANGUAGE CPP # module Rattus.Plugin.SingleTick (toSingleTick) where #if __GLASGOW_HASKELL__ >= 900 import GHC.Plugins #else import GhcPlugins #endif import Rattus.Plugin.Utils import Prelude hiding ((<>))...
null
https://raw.githubusercontent.com/pa-ba/Rattus/df89c371010a543ead9733026bad6ab3d44d6af0/src/Rattus/Plugin/SingleTick.hs
haskell
| This module implements the translation from the multi-tick calculus to the single tick calculus. | Transform the given expression from the multi-tick calculus into the single tick calculus form. This is used to pull adv out of delayed terms. The writer monad returns mappings from fresh variables to terms that o...
# LANGUAGE CPP # module Rattus.Plugin.SingleTick (toSingleTick) where #if __GLASGOW_HASKELL__ >= 900 import GHC.Plugins #else import GhcPlugins #endif import Rattus.Plugin.Utils import Prelude hiding ((<>)) import Control.Monad.Trans.Writer.Strict import Control.Monad.Trans.Class import Data.List toSingleTick...
f3314068fbdf31b308b49a952be8069ed3a07c814b6565a672c973c1a118336a
collaborativetrust/WikiTrust
load_reputations.ml
Copyright ( c ) 2009 All rights reserved . Authors : Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : 1 . Redistributions of source code must retain the above copyright notice , this list of conditio...
null
https://raw.githubusercontent.com/collaborativetrust/WikiTrust/9dd056e65c37a22f67d600dd1e87753aa0ec9e2c/analysis/load_reputations.ml
ocaml
Figure out what to do and how we are going to do it. Histogram of reputations returns the next line of the input file Writes the reputation increment. Updates the histogram, somehow. Writes the histogram. Note that this essentially is a fake, assuming the wiki is large. Prepares the database connect...
Copyright ( c ) 2009 All rights reserved . Authors : Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : 1 . Redistributions of source code must retain the above copyright notice , this list of conditio...
6f8a0cb7cf43ff731afbdeb1e9cad51da7bf5ac72d40625eba9094b2dd72084c
samrat/ecstatic
snippets.clj
--- Title: Snippets template: page --- (let [col-spec "col-12 col-lg-6"] [:div (code/row (code/col "col-12" [:h1 "Snippets"] (snippet "snippet-intro") [:p "This feature is useful espacially if you need to keep data in different places on your site. Lets sa...
null
https://raw.githubusercontent.com/samrat/ecstatic/ee7e33eef6baec1a4f0b80453c1c477058e0a707/doc/src/pages/snippets.clj
clojure
--- Title: Snippets template: page --- (let [col-spec "col-12 col-lg-6"] [:div (code/row (code/col "col-12" [:h1 "Snippets"] (snippet "snippet-intro") [:p "This feature is useful espacially if you need to keep data in different places on your site. Lets sa...
a86d24e849cf7f3e64df2992cef55921a24ef880f0600d66b71f4bd663ab83b3
lisp-korea/sicp2014
ex-3-22.scm
ex 3.22 (define (make-queue) (let ((front-ptr '()) (rear-ptr '())) (define (set-front-ptr! item) (set! front-ptr item)) (define (set-rear-ptr! item) (set! rear-ptr item)) (define (empty-queue?) (null? front-ptr)) (define (front-queue) (if (empty-queue?) (error "FRONT called w...
null
https://raw.githubusercontent.com/lisp-korea/sicp2014/9e60f70cb84ad2ad5987a71aebe1069db288b680/vvalkyrie/3.3/ex-3-22.scm
scheme
ex 3.22 (define (make-queue) (let ((front-ptr '()) (rear-ptr '())) (define (set-front-ptr! item) (set! front-ptr item)) (define (set-rear-ptr! item) (set! rear-ptr item)) (define (empty-queue?) (null? front-ptr)) (define (front-queue) (if (empty-queue?) (error "FRONT called w...
73503e6fff1d498c76d07f745432a225cdc0c4386e4b00cd259af98419e14d27
fare/xcvb
specials.lisp
#+xcvb (module (:depends-on ("pkgdcl"))) (in-package :xcvb) ;; User-visible special variables. We share a few variables from xcvb - master , that we inherit from its package : #| *lisp-implementation-type* *lisp-executable-pathname* *lisp-image-pathname* *lisp-implementation-directory* *lisp-flags* *xcvb-ver...
null
https://raw.githubusercontent.com/fare/xcvb/460e27bd4cbd4db5e7ddf5b22c2ee455df445258/specials.lisp
lisp
User-visible special variables. *lisp-implementation-type* *lisp-executable-pathname* *lisp-image-pathname* *lisp-implementation-directory* *lisp-flags* *xcvb-verbosity* *lisp-allow-debugger* *cache* *object-cache* *workspace* *temporary-directory* *use-base-image* *use-cfasls* is set by main.lisp after ...
#+xcvb (module (:depends-on ("pkgdcl"))) (in-package :xcvb) We share a few variables from xcvb - master , that we inherit from its package : (defvar *target-system-features* nil "value of *features* in the target system Autodetected from the target Lisp system.") (defvar *target-added-features* nil "extra us...
b2c537e86069b5cb4fa66ba6a75510a48a31229177527aa03f541e25e66b8186
nd/sicp
3.25.scm
(define (make-table . same-key?) (let ((local-table (list '*table*)) (equal-p (if (null? same-key?) eq? same-key?))) (define (assoc key records) (cond ((null? records) false) ((equal-p key (caar records)) (car records)) (else (assoc key (cdr records))))) (define (lookup...
null
https://raw.githubusercontent.com/nd/sicp/d8587a0403d95af7c7bcf59b812f98c4f8550afd/ch03/3.25.scm
scheme
(define (make-table . same-key?) (let ((local-table (list '*table*)) (equal-p (if (null? same-key?) eq? same-key?))) (define (assoc key records) (cond ((null? records) false) ((equal-p key (caar records)) (car records)) (else (assoc key (cdr records))))) (define (lookup...
73e80a5c00872061221115b7347c588ee6bd54c67ef48868effe1a4880d8e3e6
GaloisInc/cryptol
Symbolic.hs
-- | Module : Cryptol . Symbolic Copyright : ( c ) 2013 - 2016 Galois , Inc. -- License : BSD3 -- Maintainer : -- Stability : provisional -- Portability : portable # LANGUAGE FlexibleContexts # # LANGUAGE ImplicitParams # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAG...
null
https://raw.githubusercontent.com/GaloisInc/cryptol/8cca24568ad499f06032c2e4eaa7dfd4c542efb6/src/Cryptol/Symbolic.hs
haskell
| License : BSD3 Maintainer : Stability : provisional Portability : portable # LANGUAGE OverloadedStrings # ^ The type of query to run ^ Verbosity flag passed to SBV ^ Model validation flag passed to SBV ^ Record timing information here ^ Extra declarations to bring into scope for symbolic simula...
Module : Cryptol . Symbolic Copyright : ( c ) 2013 - 2016 Galois , Inc. # LANGUAGE FlexibleContexts # # LANGUAGE ImplicitParams # # LANGUAGE LambdaCase # # LANGUAGE PatternGuards # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # # LANGUAGE FlexibleContexts # # ...
ff03dc836302e5eb3ba44eb59719fdbabfe7f998b633e925c2e101a1be10f661
mlcfp/zenacy-html
Tests.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE LambdaCase # # LANGUAGE QuasiQuotes # module Zenacy.HTML.Internal.Parser.Tests ( testParser ) where import Zenacy.HTML.Internal.BS import Zenacy.HTML.Internal.Char import Zenacy.HTML.Internal.DOM import Zenacy.HTML.Internal.Lexer import Zenacy.HTML.Internal.Parser imp...
null
https://raw.githubusercontent.com/mlcfp/zenacy-html/b4af86fecc6fbbe1c7501e2fa75e6aa28206ebcb/test/Zenacy/HTML/Internal/Parser/Tests.hs
haskell
# LANGUAGE OverloadedStrings # | This test case is used to make other test cases by rendering the results of the dom. ><!-- abcxyz -->| ]
# LANGUAGE LambdaCase # # LANGUAGE QuasiQuotes # module Zenacy.HTML.Internal.Parser.Tests ( testParser ) where import Zenacy.HTML.Internal.BS import Zenacy.HTML.Internal.Char import Zenacy.HTML.Internal.DOM import Zenacy.HTML.Internal.Lexer import Zenacy.HTML.Internal.Parser import Zenacy.HTML.Internal.Token impo...
7ff19d7f5552cee6bf971505f028bce5b4669146bff1365f7753eb5e84ef9ce6
haskell/cabal
ComponentId.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # # LANGUAGE GeneralizedNewtypeDeriving # module Distribution.Types.ComponentId ( ComponentId, unComponentId, mkComponentId ) where import Prelude () import Distribution.Compat.Prelude import Distribution.Utils.ShortText import Distribution.Pretty impo...
null
https://raw.githubusercontent.com/haskell/cabal/0abbe37187f708e0a5daac8d388167f72ca0db7e/Cabal-syntax/src/Distribution/Types/ComponentId.hs
haskell
# LANGUAGE DeriveDataTypeable # code closure of a component (i.e. libraries, executables). the 'UnitId', which serves as the basis for install paths, linker symbols, etc. Use 'mkComponentId' and 'unComponentId' to convert from/to a 'String'. This type is opaque since @Cabal-2.0@ 'mkComponentId' is the inver...
# LANGUAGE DeriveGeneric # # LANGUAGE GeneralizedNewtypeDeriving # module Distribution.Types.ComponentId ( ComponentId, unComponentId, mkComponentId ) where import Prelude () import Distribution.Compat.Prelude import Distribution.Utils.ShortText import Distribution.Pretty import Distribution.Parsec import quali...
6d2586eab91176e3f7809d6047bfc416b6c79f6c1d41253e827f2a7d37746039
d-cent/mooncake
config.clj
(ns mooncake.test.config (:require [midje.sweet :refer :all] [mooncake.config :as c])) (fact "get-env throws an exception when the requested key isn't in the env-vars set" (c/get-env {:env-key "env-var"} :some-key-that-isnt-in-env-vars) => (throws Exception)) (tabular (fact "secure? is true by ...
null
https://raw.githubusercontent.com/d-cent/mooncake/eb16b7239e7580a73b98f7cdacb324ab4e301f9c/test/mooncake/test/config.clj
clojure
(ns mooncake.test.config (:require [midje.sweet :refer :all] [mooncake.config :as c])) (fact "get-env throws an exception when the requested key isn't in the env-vars set" (c/get-env {:env-key "env-var"} :some-key-that-isnt-in-env-vars) => (throws Exception)) (tabular (fact "secure? is true by ...
e775be9e88c185159a765b8a19bf6507554af35613c8bae63df8c9621c8c807d
Cyrik/omni-trace
decompile.clj
(ns playground.decompile (:require [clj-java-decompiler.core :as decomp] [clojure.repl :as repl] [cyrik.omni-trace.testing-ns :as testing-ns] [cyrik.omni-trace.instrument.clj :as instrument] [clojure.string :as str]) (:import (com.strobel.decompiler DecompilationOptio...
null
https://raw.githubusercontent.com/Cyrik/omni-trace/3050c31c367cde3d5e27d63a3f11a6689e13e554/dev/playground/decompile.clj
clojure
(println "\n// Decompiling class:" (.getInternalName type))
(ns playground.decompile (:require [clj-java-decompiler.core :as decomp] [clojure.repl :as repl] [cyrik.omni-trace.testing-ns :as testing-ns] [cyrik.omni-trace.instrument.clj :as instrument] [clojure.string :as str]) (:import (com.strobel.decompiler DecompilationOptio...
49e2d44d24c67bd61d760e9afa024737e65fea34819c05babf9b01e25c96a40d
dfaligertwood/pandoc-filters
pandoc-divs.hs
-------------------------------------------------------------------------------- {-# LANGUAGE OverloadedStrings #-} -------------------------------------------------------------------------------- import Text.Pandoc.JSON import Text.Pandoc.Generic import Data.List ( isInfixOf ) import ...
null
https://raw.githubusercontent.com/dfaligertwood/pandoc-filters/e45f1055876c2193a0ff45bf02f605c4f49d1829/pandoc-divs.hs
haskell
------------------------------------------------------------------------------ # LANGUAGE OverloadedStrings # ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ 'afterpage' commands. It also adds '\usepackage{aft...
import Text.Pandoc.JSON import Text.Pandoc.Generic import Data.List ( isInfixOf ) import Utils This filter takes with the class " afterpage " and inserts the LaTeX main :: IO () main = toJSONFilter afterpage afterpage :: Maybe Format -> Pandoc -> Pandoc afterpage (Just "...
6e43aa03976b3a4a545f41ac3b6e90f678263f8d44a834484cf16cc059d4e697
scicloj/clojisr-examples
density.clj
(ns clojisr-examples.graph-gallery.density (:require [notespace.v2.note :as note :refer [note note-void note-md note-as-md note-hiccup note-as-hiccup]] [clojisr.v1.r :as r])) (def target-path (notespace.v2.note/ns->out-dir *ns*)) (note-md "# [R Graph Gallery](-graph-gallery.com/) - [Density...
null
https://raw.githubusercontent.com/scicloj/clojisr-examples/691c878b5916b8060d37a85af33fd338d353dfbf/src/clojisr_examples/graph_gallery/density.clj
clojure
(ns clojisr-examples.graph-gallery.density (:require [notespace.v2.note :as note :refer [note note-void note-md note-as-md note-hiccup note-as-hiccup]] [clojisr.v1.r :as r])) (def target-path (notespace.v2.note/ns->out-dir *ns*)) (note-md "# [R Graph Gallery](-graph-gallery.com/) - [Density...
138e1db02815d31e4843bb839bc415b2594f58f35a1eb55e4fe916d39e43c7e3
facebookarchive/JSCaml
js_function.ml
* * Copyright ( c ) 2013 - present , Facebook , Inc. * All rights reserved . * * This source code is licensed under the BSD - style license found in the * LICENSE file in the root directory of this source tree . An additional grant * of patent rights can be found in the PATENTS file in the same direct...
null
https://raw.githubusercontent.com/facebookarchive/JSCaml/adf48cc4aa87e02b6a70765dc1e0904c4739804f/runtime/js_function.ml
ocaml
Attributes of the bound function. Bound function object - it is both a Function and a BoundFunction. Bound this argument. Bound arguments.
* * Copyright ( c ) 2013 - present , Facebook , Inc. * All rights reserved . * * This source code is licensed under the BSD - style license found in the * LICENSE file in the root directory of this source tree . An additional grant * of patent rights can be found in the PATENTS file in the same direct...
9a0e8ab13a4ef6638b15c5735c5be1fd4020786991da5314298cac0f58003e5f
ku-fpg/hermit
Fib.hs
module Main where -- So that we can use the worker/wrapper transformation. import Data.Function (fix) import Prelude hiding ((+)) import Nat -------------------------------------------- fib :: Nat -> Nat fib Zero = Zero fib (Succ Zero) = Succ Zero fib (Succ (Succ n)) = fib (Succ n) + fib n ------...
null
https://raw.githubusercontent.com/ku-fpg/hermit/3e7be430fae74a9e3860b8b574f36efbf9648dec/examples/Talks/hermit-swansea/Fib.hs
haskell
So that we can use the worker/wrapper transformation. ------------------------------------------ ------------------------------------------ ------------------------------------------ ------------------------------------------
module Main where import Data.Function (fix) import Prelude hiding ((+)) import Nat fib :: Nat -> Nat fib Zero = Zero fib (Succ Zero) = Succ Zero fib (Succ (Succ n)) = fib (Succ n) + fib n main :: IO () main = print (fromNat $ fib $ toNat 30) wrap :: (Nat -> (Nat, Nat)) -> Nat -> Nat wrap h n ...
aef57ba05071a62c20eba8913d2db3f03e8d383d4abe1ac94a9868628f47f5a2
batsh-dev-team/Batsh
formatutil.ml
open Core_kernel let print_indent (buf : Buffer.t) (indent : int) = Buffer.add_string buf (String.make indent ' ') let print_statements (buf : Buffer.t) (stmts : 'a list) ~(f : Buffer.t -> 'a -> indent:int -> unit) ~(indent : int) = let print_statement_indented buf stmt = f buf stmt ~indent in l...
null
https://raw.githubusercontent.com/batsh-dev-team/Batsh/5c8ae421e0eea5dcb3da01643152ad96af941f07/lib/formatutil.ml
ocaml
open Core_kernel let print_indent (buf : Buffer.t) (indent : int) = Buffer.add_string buf (String.make indent ' ') let print_statements (buf : Buffer.t) (stmts : 'a list) ~(f : Buffer.t -> 'a -> indent:int -> unit) ~(indent : int) = let print_statement_indented buf stmt = f buf stmt ~indent in l...
03910258bcd74ff992e678f6476577bc97b8ea708100b4995fd3f9e25b843134
melange-re/melange
lam_primitive.mli
Copyright ( C ) 2018 Authors of ReScript * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later version ....
null
https://raw.githubusercontent.com/melange-re/melange/b595c2647a285e8bb8b16f109d0ab0fbfa22afa3/jscomp/common/lam_primitive.mli
ocaml
Location.t * [loc] is passed down [f; [...]] Array operations Test if the argument is a block or an immediate integer Test if the (integer) argument is outside an interval Compile time constants Mostly used in object compilation
Copyright ( C ) 2018 Authors of ReScript * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later version ....
e948fe9e4b7bf894c6c160bd3c8b4437c1d39f2e0ea5242f6ca74663cbafaf1e
MichaelDrogalis/voluble
extract.clj
(ns io.mdrogalis.voluble.extract (:require [io.mdrogalis.voluble.parse :as p])) (defn update-dependencies [topics topic parsed-v] (if (= (:strategy parsed-v) :dependent) (let [dep (:topic parsed-v)] (update-in topics [:generators topic :dependencies] (fnil conj #{}) dep)) topics)) (defn store-genera...
null
https://raw.githubusercontent.com/MichaelDrogalis/voluble/e3e46f739271de955b50b1e7d9972e5fd593b870/src/clj/io/mdrogalis/voluble/extract.clj
clojure
(ns io.mdrogalis.voluble.extract (:require [io.mdrogalis.voluble.parse :as p])) (defn update-dependencies [topics topic parsed-v] (if (= (:strategy parsed-v) :dependent) (let [dep (:topic parsed-v)] (update-in topics [:generators topic :dependencies] (fnil conj #{}) dep)) topics)) (defn store-genera...
a9504ac911dcb60dea77cf093a6a319caf1b09e891b04a096a6210b04974eaec
xapi-project/xen-api
xen_api_test.ml
* Copyright ( C ) Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in file LI...
null
https://raw.githubusercontent.com/xapi-project/xen-api/111fb421f326eabe299c7d4a6095a482be4eb037/ocaml/xen-api-client/lib_test/xen_api_test.ml
ocaml
Printf.fprintf stderr "read_line = %s\n%!" chunk; Printf.fprintf stderr "read %d\n%!" n;
* Copyright ( C ) Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in file LI...
b4c61d450fb5fb77329560070b524a36d8eef399837a4784794a5680d08704c5
robert-strandh/SICL
equal-defmethod.lisp
(cl:in-package #:sicl-string) (defmethod equal ((x string) (y string)) (and (= (length x) (length y)) (every #'eql x y)))
null
https://raw.githubusercontent.com/robert-strandh/SICL/656b6baeea29cd8c3b1b20cdaf14275f8335de06/Code/String/equal-defmethod.lisp
lisp
(cl:in-package #:sicl-string) (defmethod equal ((x string) (y string)) (and (= (length x) (length y)) (every #'eql x y)))
a08f1b3a8a1c93d2e4954e7f23350b4b99f258adfc754fd781f4edf19ed17004
jonase/eastwood
consumer5.clj
(ns testcases.unusednsimport.consumer5 ;; This require is needed to properly import the record below (:require [testcases.unusednsimport.defrecord]) (:import (testcases.unusednsimport.defrecord A))) ;; Exercises simple defs: (def thing (A. 1))
null
https://raw.githubusercontent.com/jonase/eastwood/c5b7d9f8ad8f8b38dc7138d853cc65f6987d6058/cases/testcases/unusednsimport/consumer5.clj
clojure
This require is needed to properly import the record below Exercises simple defs:
(ns testcases.unusednsimport.consumer5 (:require [testcases.unusednsimport.defrecord]) (:import (testcases.unusednsimport.defrecord A))) (def thing (A. 1))
44708dd44a4bf1bc159c78f9a66bb9dee34b3757c657e0a957d0f1b26abc11d1
palletops/api-builder
api_logged.clj
(ns com.palletops.api-builder.api-logged "An API defn form that uses all stages" (:require [com.palletops.api-builder :refer [def-defn def-def def-defmulti]] [com.palletops.api-builder.stage :refer :all] [com.palletops.api-builder.stage.log :refer :all])) ;;; # API defn (def-defn defn-api [(validate-er...
null
https://raw.githubusercontent.com/palletops/api-builder/c8cf98d0ba7152d96d3047507aab9947c7bf367b/src/com/palletops/api_builder/api_logged.clj
clojure
# API defn
(ns com.palletops.api-builder.api-logged "An API defn form that uses all stages" (:require [com.palletops.api-builder :refer [def-defn def-def def-defmulti]] [com.palletops.api-builder.stage :refer :all] [com.palletops.api-builder.stage.log :refer :all])) (def-defn defn-api [(validate-errors (constantl...
3264e2d2ba43c8ff57ece365913ce7a9a2b653c5591e2636b8497ffa723d76b1
afiniate/aws_async
ec2_inst_meta_tests.ml
open Core.Std open Async.Std exception TestFailed of String.t let test_machine_role = "devbox" let dummy_role_desc = let open Ec2im_iam_role_t in { code = "Success" ; last_updated = "2014-09-20T16:33:35Z" ; signature_type = "AWS-HMAC" ; access_key_id = "XXX" ; secret_access_key = "XXX" ; token = "XXX" ...
null
https://raw.githubusercontent.com/afiniate/aws_async/44c27bf9f18f76e9e6405c2252098c4aa3d9a8bc/lib/ec2_inst_meta/ec2_inst_meta_tests.ml
ocaml
Simulate the credentials body that can be returned by AWS Tests For some tests we just want to check that they return something that is not an error Just check we get a successful result, actual JSON parsing is already tested by the unit tests
open Core.Std open Async.Std exception TestFailed of String.t let test_machine_role = "devbox" let dummy_role_desc = let open Ec2im_iam_role_t in { code = "Success" ; last_updated = "2014-09-20T16:33:35Z" ; signature_type = "AWS-HMAC" ; access_key_id = "XXX" ; secret_access_key = "XXX" ; token = "XXX" ...
c5a8e2333d4a41f1abefb8419fa8b6ef10c17ed1b17e7032d6fec43f2a44a246
LightTable/LightTable
cljs.cljs
(ns lt.util.cljs "Set up cljs and provide a few misc util fns" (:refer-clojure :exclude [js->clj clj->js]) (:require [clojure.string :as string])) (set! *print-fn* (fn [x] (when (and x (not= x "") (not= x "\n")) (.log js/console (string/trim x))))) ;;NEEDED for latest CL...
null
https://raw.githubusercontent.com/LightTable/LightTable/3760844132a17fb0c9cf3f3b099905865aed7e3b/src/lt/util/cljs.cljs
clojure
NEEDED for latest CLJS (extend-type cljs.core/ChunkedCons (-next [this] (-seq (-rest this)))) (extend-type cljs.core/RSeq (-next [this] (-seq (-rest this))))
(ns lt.util.cljs "Set up cljs and provide a few misc util fns" (:refer-clojure :exclude [js->clj clj->js]) (:require [clojure.string :as string])) (set! *print-fn* (fn [x] (when (and x (not= x "") (not= x "\n")) (.log js/console (string/trim x))))) INext (extend-type...
da0ab555f2e18f035e80cb568e1a770272a0846ffdb9a7a9dd48474348ab6988
chaoxu/fancy-walks
26.hs
import Data.List import Data.Maybe clear25 n | n `mod` 2 == 0 = clear25 (n `div` 2) clear25 n | n `mod` 5 == 0 = clear25 (n `div` 5) clear25 n = n try9 1 _ _ = 0 try9 n m9 cnt | m9 `mod` n == 0 = cnt try9 n m9 cnt = try9 n (m9 * 10 + 9) (cnt + 1) cycleLen n = try9 (clear25 n) 9 1 arr = map cycleLen [1..999] probl...
null
https://raw.githubusercontent.com/chaoxu/fancy-walks/952fcc345883181144131f839aa61e36f488998d/projecteuler.net/26.hs
haskell
import Data.List import Data.Maybe clear25 n | n `mod` 2 == 0 = clear25 (n `div` 2) clear25 n | n `mod` 5 == 0 = clear25 (n `div` 5) clear25 n = n try9 1 _ _ = 0 try9 n m9 cnt | m9 `mod` n == 0 = cnt try9 n m9 cnt = try9 n (m9 * 10 + 9) (cnt + 1) cycleLen n = try9 (clear25 n) 9 1 arr = map cycleLen [1..999] probl...
ed171d6c331f7391dc9f470d4eac72537d020298077d1884fe1677c78142361e
swarmpit/swarmpit
dashboard.cljs
(ns swarmpit.component.dashboard (:require [material.components :as comp] [swarmpit.component.mixin :as mixin] [swarmpit.component.state :as state] [swarmpit.component.progress :as progress] [swarmpit.component.common :as common] [swarmpit.component.plot :as...
null
https://raw.githubusercontent.com/swarmpit/swarmpit/38ffbe08e717d8620bf433c99f2e85a9e5984c32/src/cljs/swarmpit/component/dashboard.cljs
clojure
(ns swarmpit.component.dashboard (:require [material.components :as comp] [swarmpit.component.mixin :as mixin] [swarmpit.component.state :as state] [swarmpit.component.progress :as progress] [swarmpit.component.common :as common] [swarmpit.component.plot :as...
5d6a4fef5bf3b1ed0c33aff7fc755dc17cebeeeed49081545dd7f32f64e83c6a
AndrewMagerman/wizard-book-study
read-file.rkt
#lang racket (require threading) (require (file "~/projects/sicp/wizard-book-study/reference/cs61as_library/mapreduce-racket/mapreduce.rkt")) (provide read-file-as-key-value) (define (file-name path) (~> path file-name-from-path path->string string->symbol)) (define (read-file-by-lines path) (...
null
https://raw.githubusercontent.com/AndrewMagerman/wizard-book-study/de65b119634ff00aeaf3cc956c90a6b8a653d237/missing_files/week_13/read-file.rkt
racket
#lang racket (require threading) (require (file "~/projects/sicp/wizard-book-study/reference/cs61as_library/mapreduce-racket/mapreduce.rkt")) (provide read-file-as-key-value) (define (file-name path) (~> path file-name-from-path path->string string->symbol)) (define (read-file-by-lines path) (...
1f2fd984589b1d7506ba09c212d5826d8b475ca544196069131ed041265106a6
krisajenkins/yesql
queryfile_parser.clj
(ns yesql.queryfile-parser (:require [clojure.java.io :as io] [clojure.string :as str :refer [join trim]] [instaparse.core :as instaparse] [yesql.types :refer [map->Query]] [yesql.util :refer [str-non-nil]] [yesql.instaparse-util :refer [process-instaparse-r...
null
https://raw.githubusercontent.com/krisajenkins/yesql/f85d14493ec98aba765fb5b2f49d8846a6f6eaa8/src/yesql/queryfile_parser.clj
clojure
(ns yesql.queryfile-parser (:require [clojure.java.io :as io] [clojure.string :as str :refer [join trim]] [instaparse.core :as instaparse] [yesql.types :refer [map->Query]] [yesql.util :refer [str-non-nil]] [yesql.instaparse-util :refer [process-instaparse-r...
0729ff66aece7c49513410aa9c267d8ad4bdb6b553bbf7d31a12decdce03aa45
mzp/coq-for-ipad
ocamlmklib.ml
THIS FILE IS GENERATED FROM ocamlmklib.mlp (***********************************************************************) (* *) (* Objective Caml *) (* ...
null
https://raw.githubusercontent.com/mzp/coq-for-ipad/4fb3711723e2581a170ffd734e936f210086396e/src/ocaml-3.12.0/tools/ocamlmklib.ml
ocaml
********************************************************************* Objective Caml ...
THIS FILE IS GENERATED FROM ocamlmklib.mlp , projet Cristal , INRIA Rocquencourt Copyright 2001 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . ...
48c460ec9e5c4c3d1368147a447255910e4d0856312cdb1c0575965c8fb0cf79
racket/frtime
struct.rkt
#lang racket/base (provide build-struct-names build-struct-generation build-struct-expand-info generate-delayed-struct-declaration generate-struct-declaration extract-struct-info struct-declaration-info?) (require racket/struct-info (for-syntax racket/bas...
null
https://raw.githubusercontent.com/racket/frtime/9b9db67581107f4d7b995541c70f2d08f03ae89e/struct.rkt
racket
---------------------------------------- Looks up super info, if needed, and builds compile-time info for the called by all three forms , but does only half the work If `expr?' is #t, then generate an expression to build the info, otherwise build the info directly. Did we get valid super-info ? Generate the resu...
#lang racket/base (provide build-struct-names build-struct-generation build-struct-expand-info generate-delayed-struct-declaration generate-struct-declaration extract-struct-info struct-declaration-info?) (require racket/struct-info (for-syntax racket/bas...
3afb4642bc7de95fa4c202b3f6e8e19e5f8325dc8d41c9b9e64d0642d031a95c
progman1/genprintlib
pos.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/progman1/genprintlib/acc1e5cc46b9ce6191d0306f51337581c93ffe94/debugger/4.10.0/pos.mli
ocaml
************************************************************************ OCaml ...
, projet , INRIA Rocquencourt Copyright 2003 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the val get_desc : Events.code_event -> string;;
9d86f3bbaf8a33bae5904e0458a044cbc74ff39605fe9db4650dee27986c956b
thiagoesteves/erlgame
erlgame_util.erl
%%%------------------------------------------------------------------- Created : 18 Dec 2020 by < > %%% %%% @doc This file generic APIs to use in the project %%% %%% @end %%%------------------------------------------------------------------- -module(erlgame_util). -author('Thiago Esteves'). %%%=================...
null
https://raw.githubusercontent.com/thiagoesteves/erlgame/c9416bc7b527d16f1987b89bb1551adb064279fd/src/erlgame_util.erl
erlang
------------------------------------------------------------------- @doc This file generic APIs to use in the project @end ------------------------------------------------------------------- =================================================================== Includes ===============================================...
Created : 18 Dec 2020 by < > -module(erlgame_util). -author('Thiago Esteves'). -include("erlgame.hrl"). -export([maybe_string_to_atom/1]). @param to be converted -spec maybe_string_to_atom(Str :: list()) -> atom(). maybe_string_to_atom(Str) when is_list(Str) -> try erlang:list_to_existing_atom(...
90153479504efa96666c90ff0f56c1d98a99281c5b681d96beab17e84e2ada21
MinaProtocol/mina
tock_field_sponge.mli
include module type of Make_sponge.Make (Backend.Tock.Field) val params : Backend.Tock.Field.t Sponge.Params.t
null
https://raw.githubusercontent.com/MinaProtocol/mina/b19a220d87caa129ed5dcffc94f89204ae874661/src/lib/pickles/tock_field_sponge.mli
ocaml
include module type of Make_sponge.Make (Backend.Tock.Field) val params : Backend.Tock.Field.t Sponge.Params.t
d2abee07f3b4625c6175261b4389d2b08522765783ae250c6e2487edc307de81
plum-umd/c-strider
frontc.ml
* * Copyright ( c ) 2001 - 2002 , * < > * < > * < > * All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are * met : * * 1 . Redistributions...
null
https://raw.githubusercontent.com/plum-umd/c-strider/3d3a3743bc28456eb6d50e01805ce484ab3c04e6/tools/cil-1.3.7/src/frontc/frontc.ml
ocaml
Output management filename for patching by default do no patching patching file contents whether to print a file of prototypes after parsing this seems like something that should be built-in.. ** Argument definition parse, and apply patching parse the patch file if it isn't parsed already parse the p...
* * Copyright ( c ) 2001 - 2002 , * < > * < > * < > * All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are * met : * * 1 . Redistributions...
d5b269d98550699fe8845f9f4a7f6c0758ba0c177262fb3c9c292f1557bde069
kowainik/relude
Base.hs
{-# LANGUAGE CPP #-} # LANGUAGE ExplicitNamespaces # # LANGUAGE Trustworthy # | Module : Relude . Base Copyright : ( c ) 2016 ( c ) 2016 - 2018 ( c ) 2018 - 2023 Kowainik SPDX - License - Identifier : MIT Maintainer ...
null
https://raw.githubusercontent.com/kowainik/relude/e633cb33308d259d6e4ea058ef506eb496b12323/src/Relude/Base.hs
haskell
# LANGUAGE CPP # * Base types * Base type classes * System IO * Types for type-level computation * Basic type classes Base types IO Base typeclasses Types for type-level computation
# LANGUAGE ExplicitNamespaces # # LANGUAGE Trustworthy # | Module : Relude . Base Copyright : ( c ) 2016 ( c ) 2016 - 2018 ( c ) 2018 - 2023 Kowainik SPDX - License - Identifier : MIT Maintainer : < > Stability ...