_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
f7fae31f9ea3b35bcd9774ebd74e6bf2ed5e399c8fffbee14094fbfe0a47e79c
haskell-webgear/webgear
JWT.hs
# OPTIONS_GHC -Wno - orphans # | OpenApi implementation of ' JWTAuth '' trait . module WebGear.OpenApi.Trait.Auth.JWT where import Data.OpenApi import Data.String (fromString) import Data.Typeable (Proxy (..)) import GHC.TypeLits (KnownSymbol, symbolVal) import WebGear.Core.Request (Request) import WebGear.Core.Tra...
null
https://raw.githubusercontent.com/haskell-webgear/webgear/52e90e28d81e4ce6d7c8e63b3f9769f6629b031f/webgear-openapi/src/WebGear/OpenApi/Trait/Auth/JWT.hs
haskell
# OPTIONS_GHC -Wno - orphans # | OpenApi implementation of ' JWTAuth '' trait . module WebGear.OpenApi.Trait.Auth.JWT where import Data.OpenApi import Data.String (fromString) import Data.Typeable (Proxy (..)) import GHC.TypeLits (KnownSymbol, symbolVal) import WebGear.Core.Request (Request) import WebGear.Core.Tra...
706cb48608d1b4e17e8d034890ac812e732d07d1b0ef7095ebb9eccd2a529d32
codeflows/rebass
ListUtil.hs
module Rebass.ListUtil where import Data.List split :: Eq a => a -> [a] -> [[a]] split s xs = foldr collect [[]] xs where collect x (current : splitted) | x == s = [] : (current : splitted) | otherwise = (x : current) : splitted endsWith :: Eq a => [a] -> [a] -> Bool...
null
https://raw.githubusercontent.com/codeflows/rebass/8c8411ee51c5d9588ddd263d311ef7b5939e3e9a/src/Rebass/ListUtil.hs
haskell
module Rebass.ListUtil where import Data.List split :: Eq a => a -> [a] -> [[a]] split s xs = foldr collect [[]] xs where collect x (current : splitted) | x == s = [] : (current : splitted) | otherwise = (x : current) : splitted endsWith :: Eq a => [a] -> [a] -> Bool...
dbf2a5f0aedf0312e27ca0c0998c3bcecea6a9899e8d96fa017ba7726f5c9f8c
inaka/elvis_core
fail_no_block_expressions.erl
-module(fail_no_block_expressions). -export([no_block_expression/0, block_expression/0]). no_block_expression() -> ok. block_expression() -> begin ok end.
null
https://raw.githubusercontent.com/inaka/elvis_core/9ff0c1115fcb3cf3737e701f1307ee02e6272c1b/test/examples/fail_no_block_expressions.erl
erlang
-module(fail_no_block_expressions). -export([no_block_expression/0, block_expression/0]). no_block_expression() -> ok. block_expression() -> begin ok end.
59c63ebc167e4abc7aaa28ff5e6a84fa65a11d0d63c60594d22a7d9b522cb0ab
pierric/neural-network
LSTM.hs
------------------------------------------------------------ -- | Module : Data . NeuralNetwork . Backend . BLASHS.LSTM Description : A backend for neuralnetwork with . Copyright : ( c ) 2016 -- License : BSD-style (see the file LICENSE) Maintainer : < > -- Stability : experim...
null
https://raw.githubusercontent.com/pierric/neural-network/406ecaf334cde9b10c9324e1f6c4b8663eae58d7/Backend-blashs/Data/NeuralNetwork/Backend/BLASHS/LSTM.hs
haskell
---------------------------------------------------------- | License : BSD-style (see the file LICENSE) Stability : experimental Portability : portable ---------------------------------------------------------- import GHC.Float (double2Float) ^ input size ^ output size ^ the new layer state passed f...
Module : Data . NeuralNetwork . Backend . BLASHS.LSTM Description : A backend for neuralnetwork with . Copyright : ( c ) 2016 Maintainer : < > This module supplies a LSTM component . # LANGUAGE UndecidableInstances # module Data.NeuralNetwork.Backend.BLASHS.LSTM( LSTM(..), LSTM_En...
ce2dda45d44c03516ec1c783a63df0aa00efe967058737b7d712223458ab5a22
huangjs/cl
zhemm.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 1.215 2009/04/07 22:05:21 rtoy Exp $ " " f2cl2.l , v 1.37 2008/02/22 22:19:33 rtoy Exp $ " " f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Exp $ " " f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Exp $ " " f2cl5.l , v 1.200 2009/01/19 02:38:17 rtoy Exp $ " " f2cl6.l ,...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/maxima/share/lapack/blas/zhemm.lisp
lisp
Compiled by f2cl version: Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':array) (:array-slicing t) (:declare-common nil) (:float-format double-float))
( " f2cl1.l , v 1.215 2009/04/07 22:05:21 rtoy Exp $ " " f2cl2.l , v 1.37 2008/02/22 22:19:33 rtoy Exp $ " " f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Exp $ " " f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Exp $ " " f2cl5.l , v 1.200 2009/01/19 02:38:17 rtoy Exp $ " " f2cl6.l , v 1.48 2008/08/24 00:56:27 rt...
a8314748ccbd01d5cbac6dcd3fe273df9bb02844599ba7dde5a05a304b84d64a
na4zagin3/satyrographos
command_satysfi__with_project_env.ml
module StdList = List open Satyrographos_testlib open Core open Shexp_process let satyristes = {| (version "0.0.2") (library (name "grcnum") (version "0.2") (sources ((package "grcnum.satyh" "./grcnum.satyh") (font "grcnum-font.ttf" "./font.ttf") (hash "fonts.satysfi-hash" "./fonts.satysfi-hash")...
null
https://raw.githubusercontent.com/na4zagin3/satyrographos/9dbccf05138510c977a67c859bbbb48755470c7f/test/testcases/command_satysfi__with_project_env.ml
ocaml
module StdList = List open Satyrographos_testlib open Core open Shexp_process let satyristes = {| (version "0.0.2") (library (name "grcnum") (version "0.2") (sources ((package "grcnum.satyh" "./grcnum.satyh") (font "grcnum-font.ttf" "./font.ttf") (hash "fonts.satysfi-hash" "./fonts.satysfi-hash")...
a4434dc5f9134c533eafd5868bffa28e57491cefb3c816828bbf0be8bce859aa
ParaPhrase/skel
sk_map_combiner.erl
%%%---------------------------------------------------------------------------- @author < > 2012 University of St Andrews ( See LICENCE ) @headerfile " skel.hrl " %%% %%% @doc This module contains the Map skeleton combiner logic. %%% %%% The Map skeleton is a parallel map. The skeleton applies a given funct...
null
https://raw.githubusercontent.com/ParaPhrase/skel/bf55de94e64354592ea335f4375f4b40607baf43/src/sk_map_combiner.erl
erlang
---------------------------------------------------------------------------- @doc This module contains the Map skeleton combiner logic. The Map skeleton is a parallel map. The skeleton applies a given function to the elements within one or more lists. The combiner receives each partite element of each input ...
@author < > 2012 University of St Andrews ( See LICENCE ) @headerfile " skel.hrl " Similar to { @link } , this module supports both the -module(sk_map_combiner). -export([start/1, start/2]). -include("skel.hrl"). -spec start(pid()) -> 'eos'. { @link data_message ( ) } is produced and sent to the proc...
124671ca036bcc712fe5ea60a6179fceee7469119227f87d3b19b3404f5e97b3
coingaming/lnd-client
ChannelBackup.hs
module LndClient.Data.ChannelBackup ( ChannelBackup (..), SingleChanBackupBlob (..), ) where import Data.ProtoLens import qualified LndClient.Data.ChannelPoint as Ch import LndClient.Import import qualified Proto.Lnrpc.Ln1 as Ln1 import qualified Proto.Lnrpc.Ln1_Fields as Ln1 data ChannelBackup = ChannelBacku...
null
https://raw.githubusercontent.com/coingaming/lnd-client/caf08bab7d0ce57e344841646692fd193313a437/src/LndClient/Data/ChannelBackup.hs
haskell
module LndClient.Data.ChannelBackup ( ChannelBackup (..), SingleChanBackupBlob (..), ) where import Data.ProtoLens import qualified LndClient.Data.ChannelPoint as Ch import LndClient.Import import qualified Proto.Lnrpc.Ln1 as Ln1 import qualified Proto.Lnrpc.Ln1_Fields as Ln1 data ChannelBackup = ChannelBacku...
f1a82d5b6d3622d17248925dead7cc5460c05b98786f19b82c4bb367c8cbee2d
janestreet/ecaml
function_id.mli
* A unique i d for each OCaml function that can be called from Emacs . open! Core open! Import include Unique_id.Id
null
https://raw.githubusercontent.com/janestreet/ecaml/7c16e5720ee1da04e0757cf185a074debf9088df/src/function_id.mli
ocaml
* A unique i d for each OCaml function that can be called from Emacs . open! Core open! Import include Unique_id.Id
b76199bd6bab9f9bb6ac0c028a47d5b1da8c68605e0a174e52ab4c50a0e0a4d3
coco33920/boulangerie
initializer.ml
let exists () = try open_in "_boulangerie.json" |> ignore; true with _ -> false (* Creates a new croissant project *) let init git = Filemanager.init_list_file (); if exists () then print_endline "there already is a croissant project here" else ( print_endline "Downloading file from github..."; ...
null
https://raw.githubusercontent.com/coco33920/boulangerie/24213bbefee1f8b9a2891f5b0ebee346cfa5104c/lib/initializer.ml
ocaml
Creates a new croissant project
let exists () = try open_in "_boulangerie.json" |> ignore; true with _ -> false let init git = Filemanager.init_list_file (); if exists () then print_endline "there already is a croissant project here" else ( print_endline "Downloading file from github..."; Sys.command "wget -q \ ...
398625b9c901fbabb4d6d87810db5eedcb1ab888a71f254c43237059adabf29e
may-liu/qtalk
http_add_muc_user.erl
%% Feel free to use, reuse and abuse the code in this file. -module(http_add_muc_user). -export([init/3]). -export([handle/2]). -export([terminate/3]). -export([add_muc_users/1]). -include("ejabberd.hrl"). -include("logger.hrl"). -include("http_req.hrl"). -include("jlib.hrl"). init(_Transport, Req, []) -> {ok, Req,...
null
https://raw.githubusercontent.com/may-liu/qtalk/f5431e5a7123975e9656e7ab239e674ce33713cd/qtalk_opensource/src/http_add_muc_user.erl
erlang
Feel free to use, reuse and abuse the code in this file. lists:foreach(fun(U) -> Jid = jlib:make_jid(U,Server,<<"">>), case ejabberd_sm:get_user_resources(U, Server) of [] -> http_muc_session:handle_add_muc_users(Server,Muc_id,Domain,Jid); Rs -> case jlib:make_jid(U,Server,<<"">>) of error -> ok; Muc_us...
-module(http_add_muc_user). -export([init/3]). -export([handle/2]). -export([terminate/3]). -export([add_muc_users/1]). -include("ejabberd.hrl"). -include("logger.hrl"). -include("http_req.hrl"). -include("jlib.hrl"). init(_Transport, Req, []) -> {ok, Req, undefined}. handle(Req, State) -> {Method, _ } = cowboy_r...
3b409b8c9ce8d5d72460b3ead3de8492b2bdcdc8f95416745f3d113cf18a0c04
BenjaminVanRyseghem/great-things-done
name_editor.cljs
Copyright ( c ) 2015 , . 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 ; t...
null
https://raw.githubusercontent.com/BenjaminVanRyseghem/great-things-done/1db9adc871556a347426df842a4f5ea6b3a1b7e0/src/front/ui/widgets/name_editor.cljs
clojure
The use and distribution terms for this software are covered by the which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.
Copyright ( c ) 2015 , . All rights reserved . Eclipse Public License 1.0 ( -1.0.php ) (ns ui.widgets.name-editor (:use [jayq.core :only [$]]) (:require [reagent.core :as reagent :refer [atom]] [utils.core :as utils])) (defn- plain-name-editor [entity auto-focus] [:div.entity-name {:id ...
1cbf51194f3a789827321d1899499bd783cb836942b48e5275d0f7245c0c6a49
leksah/leksah-server
PackageCollector.hs
# LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE LambdaCase # ----------------------------------------------------------------------------- -- -- Module : IDE.Metainfo.PackageCollector Copyright : 2007 - 2009 , -- License : GPL Nothing -...
null
https://raw.githubusercontent.com/leksah/leksah-server/d4b735c17a36123dc97f79fabf1e9310d74984a6/src/IDE/Metainfo/PackageCollector.hs
haskell
# LANGUAGE OverloadedStrings # --------------------------------------------------------------------------- Module : IDE.Metainfo.PackageCollector License : GPL Nothing Maintainer : Stability : provisional Portability : | ------------------------------------------------------------------------...
# LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE LambdaCase # Copyright : 2007 - 2009 , module IDE.Metainfo.PackageCollector ( collectPackage , collectPackageOnly ) where import Prelude () import Prelude.Compat import IDE.StrippedPrefs (getUnpackDirectory, RetrieveS...
59a3164c1a88bded3b60f77c6d300152f097f4c701b84042e7b3cdb5b2def3b7
tweag/asterius
ThreadDelay.hs
import Asterius.Types import Control.Concurrent import Data.Coerce foreign import javascript "console.log($1)" js_print :: JSVal -> IO () printString :: String -> IO () printString s = js_print (coerce (toJSString s)) main :: IO () main = do printString "Hello" threadDelay 2000000 printString "world" threadD...
null
https://raw.githubusercontent.com/tweag/asterius/e7b823c87499656860f87b9b468eb0567add1de8/asterius/test/rts/ThreadDelay.hs
haskell
import Asterius.Types import Control.Concurrent import Data.Coerce foreign import javascript "console.log($1)" js_print :: JSVal -> IO () printString :: String -> IO () printString s = js_print (coerce (toJSString s)) main :: IO () main = do printString "Hello" threadDelay 2000000 printString "world" threadD...
76067849b1cfcfcab6d939cafeee8eddaa12e32b7d5192434d6d78329edf3094
dimitri/ql-to-deb
build-cl-unicode.lisp
;;; ;;; Load the cl-unicode system so that files generated by its ;;; build-dependency :build[cl-unicode system are available when packaging. ;;; (require :asdf) ;(asdf:load-system :asdf) ; upgrade (setf asdf:*central-registry* (list* '*default-pathname-defaults* asdf:*central-registry*)) (asdf:lo...
null
https://raw.githubusercontent.com/dimitri/ql-to-deb/f89e91804ebbb1912001c1b1d45c157cf162608f/packages/cl-unicode/debian/build-cl-unicode.lisp
lisp
Load the cl-unicode system so that files generated by its build-dependency :build[cl-unicode system are available when packaging. (asdf:load-system :asdf) ; upgrade
(require :asdf) (setf asdf:*central-registry* (list* '*default-pathname-defaults* asdf:*central-registry*)) (asdf:load-system :cl-unicode) (quit)
1656ef409443fd7bdcbe001fa9c9e3e50c3c5fca23c25f973b37f4c07eea4fcc
tatut/clj-chrome-devtools
browser.clj
(ns clj-chrome-devtools.commands.browser "The Browser domain defines methods and events for browser managing." (:require [clojure.spec.alpha :as s] [clj-chrome-devtools.impl.command :as cmd] [clj-chrome-devtools.impl.connection :as c])) (s/def ::browser-context-id string?) (s/def ::wind...
null
https://raw.githubusercontent.com/tatut/clj-chrome-devtools/48a77f8cd64dae88acc271b46c48a647e41a7580/src/clj_chrome_devtools/commands/browser.clj
clojure
(ns clj-chrome-devtools.commands.browser "The Browser domain defines methods and events for browser managing." (:require [clojure.spec.alpha :as s] [clj-chrome-devtools.impl.command :as cmd] [clj-chrome-devtools.impl.connection :as c])) (s/def ::browser-context-id string?) (s/def ::wind...
f201d3b1f47d1a6c7e645fc1c62815feb67acc3efd5ce8d839403c369b47a4c5
donaldsonjw/bigloo
license.scm
;; Automatically generated file (don't edit) (module tools_license (export (bigloo-license))) (define (bigloo-license) " --------------------------------------------------------------------- A practical implementation for the Scheme programming language ...
null
https://raw.githubusercontent.com/donaldsonjw/bigloo/a4d06e409d0004e159ce92b9908719510a18aed5/comptime/Tools/license.scm
scheme
Automatically generated file (don't edit) '( )__, ) ' // L__. you can redistribute it and/or modify without even the implied warranty of if not, write to the Free
(module tools_license (export (bigloo-license))) (define (bigloo-license) " --------------------------------------------------------------------- A practical implementation for the Scheme programming language ...
b78d5d90cca243bd16c1f820b635a926d1453a24448db1bb0e06ecefb920fe9d
Beyamor/ruin
array2d.cljs
(ns ruin.array2d (:refer-clojure :exclude [get set!])) (defn width [arr] (alength arr)) (defn height [arr] (alength (aget width 0))) (defn set! [arr x y value] (aset (aget arr x) y value) arr) (defn get [arr x y] (aget (aget arr x) y)) (defn create [width height] (let [arr (array)] (dot...
null
https://raw.githubusercontent.com/Beyamor/ruin/50a6977430dcbbceecccadbf732298462165b049/src/ruin/array2d.cljs
clojure
(ns ruin.array2d (:refer-clojure :exclude [get set!])) (defn width [arr] (alength arr)) (defn height [arr] (alength (aget width 0))) (defn set! [arr x y value] (aset (aget arr x) y value) arr) (defn get [arr x y] (aget (aget arr x) y)) (defn create [width height] (let [arr (array)] (dot...
9c61c0acc43f8051a7d68c4e376996d95aa903d12d06d14b1bfcd3c9a050d00f
roman/Haskell-capataz
Core.hs
# LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE NoImplicitPrelude # # LANGUAGE OverloadedStrings # {-# LANGUAGE RankNTypes #-} {-| This module contains: * Functions exported on the public API * High level message handlers of the supervisor thread loop -} module ...
null
https://raw.githubusercontent.com/roman/Haskell-capataz/0952178a8afdc41e86f3d3ff22fbb731bd21519e/src/Control/Concurrent/Capataz/Internal/Core.hs
haskell
# LANGUAGE RankNTypes # | This module contains: * Functions exported on the public API * High level message handlers of the supervisor thread loop ------------------------------------------------------------------------------ | Utility typeclass to call public supervision API with types | Fetches a supe...
# LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE NoImplicitPrelude # # LANGUAGE OverloadedStrings # module Control.Concurrent.Capataz.Internal.Core ( HasSupervisor(..) , forkWorker , forkSupervisor , forkCapataz , terminateProcess , terminateCapataz , terminateCapataz_ , jo...
fc095efe2223dbb2070c864b341d57dbf87ba82ba1883b1ee2beb7a90fd16ab6
vnarek/jude
matcher.ml
type message = string * bytes type match_result = Matched | Next type t = message -> match_result let case (type a) (m : a Binable.m) fn (digest, msg) = match Binable.from_bytes m ~digest msg with | Error str -> Log.debug (fun m -> m "case error: %s" str); Next | Ok a -> fn a; Matched ...
null
https://raw.githubusercontent.com/vnarek/jude/b1e9387d0242cd83b3b72695bce267c970de1857/lib/matcher.ml
ocaml
type message = string * bytes type match_result = Matched | Next type t = message -> match_result let case (type a) (m : a Binable.m) fn (digest, msg) = match Binable.from_bytes m ~digest msg with | Error str -> Log.debug (fun m -> m "case error: %s" str); Next | Ok a -> fn a; Matched ...
717b02cdb563478472e8d0567482b37e98c647146f10c150ec414cd2c3d31a8d
vehicle-lang/vehicle
Core.hs
module Vehicle.Verify.Core where import Vehicle.Prelude data VerifierIdentifier = Marabou deriving (Eq, Ord, Show, Read, Bounded, Enum) instance Pretty VerifierIdentifier where pretty = pretty . show -- | Location of a verifier query file. type QueryFile = FilePath -- | Location of the verifier executable fi...
null
https://raw.githubusercontent.com/vehicle-lang/vehicle/b8a5bb89a84def465d8ac74f73719f54ae02f562/vehicle/src/Vehicle/Verify/Core.hs
haskell
| Location of a verifier query file. | Location of the verifier executable file
module Vehicle.Verify.Core where import Vehicle.Prelude data VerifierIdentifier = Marabou deriving (Eq, Ord, Show, Read, Bounded, Enum) instance Pretty VerifierIdentifier where pretty = pretty . show type QueryFile = FilePath type VerifierExecutable = FilePath
88f3a09cf1630a01aa0851663588fe6640b9175e9af7b92a267047e8b885ecf5
nixeagle/cl-irc
protocol.lisp
$ Id$ ;;;; $Source$ ;;;; See LICENSE for licensing information. (in-package :irc) ;; ;; Condition ;; (define-condition no-such-reply () ((reply-number :reader reply-number :initarg :reply-number)) (:report (lambda (condition stream) (format stream "No such reply ~A." (reply-number conditi...
null
https://raw.githubusercontent.com/nixeagle/cl-irc/efaea15f2962107ea9b1a2fad5cd9db492b4247b/tags/debian_version_0_6_3/protocol.lisp
lisp
$Source$ See LICENSE for licensing information. Condition needed because of the "loop while" in read-message-loop argh. I want to name this quit but that gives me issues with generic functions. need to resolve. Channel User what if the user is not on any channels? IRC Message should perhaps wra...
$ Id$ (in-package :irc) (define-condition no-such-reply () ((reply-number :reader reply-number :initarg :reply-number)) (:report (lambda (condition stream) (format stream "No such reply ~A." (reply-number condition))))) Connection (defclass connection () ((user :initarg :user ...
2d05cc2a14cd6248766ec338ac285b89510b784aac64d3912353d6f9fecbfcda
borgeby/jarl
api.clj
(ns jarl.api (:require [jarl.parser :as parser] [jarl.eval :as eval]) (:import (java.util Map List Set))) (gen-class :name "by.borge.jarl.internal.InternalPlanImpl" :implements [by.borge.jarl.internal.InternalPlan] :main false :prefix "-plan-" :constructors {[Object Object String] []} :stat...
null
https://raw.githubusercontent.com/borgeby/jarl/3783e3a383aadb74a123a6accc72d290451c9be5/core/src/main/clj/jarl/api.clj
clojure
(ns jarl.api (:require [jarl.parser :as parser] [jarl.eval :as eval]) (:import (java.util Map List Set))) (gen-class :name "by.borge.jarl.internal.InternalPlanImpl" :implements [by.borge.jarl.internal.InternalPlan] :main false :prefix "-plan-" :constructors {[Object Object String] []} :stat...
9785423210849f8005f21660ac481f2983d73835d452f6bc1198077db6bfc3ab
ocaml/ocamlfind
fl_package_base.ml
(* $Id$ * ---------------------------------------------------------------------- * *) open Fl_metascanner exception No_such_package of string * string (* (name, reason) *) type package = { package_name : string; package_dir : string; package_meta : string; package_defs : Fl_metascanner.pkg...
null
https://raw.githubusercontent.com/ocaml/ocamlfind/00b1b75b4f0c75387d38530cbc6eeb3148a08b3b/src/findlib/fl_package_base.ml
ocaml
$Id$ * ---------------------------------------------------------------------- * (name, reason) Determine the final package directory: The value of "directory", or "" if not applicable Check for exists_if: Note: It is allowed to have relative "directory" directives. * The base directory is [dir] in...
open Fl_metascanner exception No_such_package of string * string type package = { package_name : string; package_dir : string; package_meta : string; package_defs : Fl_metascanner.pkg_definition list; package_priv : package_priv } and package_priv = { mutable missing_reqs : (strin...
c147de00ce9305b5510a8690e81b6e8058f6f92d8d105e96d980180684d98887
LexiFi/menhir
patricia.mli
(******************************************************************************) (* *) (* *) ...
null
https://raw.githubusercontent.com/LexiFi/menhir/794e64e7997d4d3f91d36dd49aaecc942ea858b7/src/patricia.mli
ocaml
**************************************************************************** file LICEN...
, Paris , PPS , Université Paris Diderot . All rights reserved . This file is distributed under the terms of the GNU General Public License version 2 , as...
a603b397ae5d8f9961538eebf582dc00a44964649d4f0baddcdca4b00325b990
cardmagic/lucash
posixstr.scm
Regexp - ADT - > Posix - string translator . January 1997 , May 1998 . - If the regexp value contains nul character constants , or character sets that contain the nul character , they will show up in the string we produce . 's C regexp engine can handle regexp strings that contain nul bytes , but...
null
https://raw.githubusercontent.com/cardmagic/lucash/0452d410430d12140c14948f7f583624f819cdad/reference/scsh-0.6.6/scsh/rx/posixstr.scm
scheme
regexp engine. can remove *all* occurences of this "empty regexp" except for the (rx (in)) We can handle this one special case specially, so we shouldn't *ever* have to produce this ASCII-specific pattern. Exports: regexp->posix-string Todo: A dumb, simple char-set renderer. - string (regexp)...
Regexp - ADT - > Posix - string translator . January 1997 , May 1998 . - If the regexp value contains nul character constants , or character sets that contain the nul character , they will show up in the string we produce . 's C regexp engine can handle regexp strings that contain nul bytes , but...
a2c81d280755e8c270c2d508b4f8ee9426f9891858c7957d29ef7f2c1659f1dd
AmpersandTarski/Ampersand
Runners.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # -- | Utilities for running stack commands. -- -- Instead of using Has-style classes below, the type signatures use -- concrete environments to try and avoid accidentally rerunning -- configuration parsing. For example, we want @withConfig $ -- withConfig $ ...@ to f...
null
https://raw.githubusercontent.com/AmpersandTarski/Ampersand/cb2306a09ce79d5609ccf8d3e28c0a1eb45feafe/src/Ampersand/Runners.hs
haskell
| Utilities for running stack commands. Instead of using Has-style classes below, the type signatures use concrete environments to try and avoid accidentally rerunning configuration parsing. For example, we want @withConfig $ withConfig $ ...@ to fail. withBuildConfig , withEnvConfig , withDefaultEnv...
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # module Ampersand.Runners withConfig, , withGlobalProject withRunnerGlobal, logLevel, , ShouldReexec ( .. ) ) where import Ampersand.Basics import Stack . Build . Target(NeedTargets ( .. ) ) import Ampersand.Types.Config import RIO...
f6f7e24555c804cab40e1e47cbe6f2f24bce9b18a83d343099a8a62fa74a38f3
ericthorsen/enclojure-repl
repl_history.clj
(comment ;* * Copyright ( c ) ThorTech , L.L.C .. All rights reserved . ;* The use and distribution terms for this software are covered by the ;* Eclipse Public License 1.0 (-1.0.php) ;* which can be found in the file epl-v10.html at the root of this distribution. ;* By using this software in any fashio...
null
https://raw.githubusercontent.com/ericthorsen/enclojure-repl/eeae31ba5ddccde5a1aa11a122db6e8d8a49cd8f/org-enclojure-repl-client/src/main/clojure/org/enclojure/ide/repl/repl_history.clj
clojure
* * The use and distribution terms for this software are covered by the * Eclipse Public License 1.0 (-1.0.php) * which can be found in the file epl-v10.html at the root of this distribution. * By using this software in any fashion, you are agreeing to be bound by * the terms of this license. * You mu...
(comment * Copyright ( c ) ThorTech , L.L.C .. All rights reserved . * Author : ) (ns #^{ :author "Eric Thorsen", :doc "Support code for managing history for a REPL instance. There is a log which stores only unique commands (uses a hash of the expression) and there is a list used for h...
b1181c1cb90b27ef8a0c8745b702e97601a1f90d94cc6dc5a2323626d2127b7c
vbmithr/ocaml-libbitcoin
error.mli
open Ctypes type t = private Error of unit ptr val of_ptr : unit ptr -> t val message : t -> string option
null
https://raw.githubusercontent.com/vbmithr/ocaml-libbitcoin/b93a5cca1d430c38dd822b45e47fc5132fb28ab9/src/error.mli
ocaml
open Ctypes type t = private Error of unit ptr val of_ptr : unit ptr -> t val message : t -> string option
a9ff9b336906ba64943de80038fa1a1ddad9aecedb518c16525c5838473ec90f
nasser/magic
pprint.clj
pprint.clj -- Pretty printer and Common Lisp compatible format function ( cl - format ) for Clojure Copyright ( c ) . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the ro...
null
https://raw.githubusercontent.com/nasser/magic/7a46f773bc7785c82d9527d52c1a8c28ac16e195/src/stdlib/clojure/pprint.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
pprint.clj -- Pretty printer and Common Lisp compatible format function ( cl - format ) for Clojure Copyright ( c ) . All rights reserved . Author : April 3 , 2009 (ns ^{:author "Tom Faulhaber", :doc "A Pretty Printer for Clojure clojure.pprint implements a flexible system for printing stru...
845c83a8fa2b17badcb2041c75b682c8a851fe2030fa9f61f83c48acfc4909f6
0zat/gen-bs
js_args.ml
open Js open Js_type open Bs_external let to_js_arg_type necessity type_ = match necessity with | `Fixed -> type_ | `Optional -> (`Undef type_) | `Variadic -> (`Array type_) let to_bs_arg (js_arg : js_arg) = let js_arg_type = to_js_arg_type js_arg.necessity js_arg.type_ in let type_ = to_arg_type js_arg_...
null
https://raw.githubusercontent.com/0zat/gen-bs/20348991775d9ef3974c3b824968a0ab219502a8/src/intermediate/js_to_bs/js_obj_to_module/from_js/js_args.ml
ocaml
open Js open Js_type open Bs_external let to_js_arg_type necessity type_ = match necessity with | `Fixed -> type_ | `Optional -> (`Undef type_) | `Variadic -> (`Array type_) let to_bs_arg (js_arg : js_arg) = let js_arg_type = to_js_arg_type js_arg.necessity js_arg.type_ in let type_ = to_arg_type js_arg_...
22c9c8855ddfd7a531dc0c9cebc1c8921c6e4db481945e225d66d8f9027c3bbb
marcoheisig/adventofcode
day-04.lisp
(defpackage :adventofcode-2018-day-4 (:use :cl)) (in-package :adventofcode-2018-day-4) (defclass record () ((%who :initarg :who :accessor record-who) (%what :initarg :what :reader record-what) (%when :initarg :when :reader record-when))) (defclass guard () ((%id :initarg :id :reader guard-id) (%sleep-...
null
https://raw.githubusercontent.com/marcoheisig/adventofcode/e96a0da17cd79f424af984ed2648b49ffdacb893/2018/day-04/day-04.lisp
lisp
(defpackage :adventofcode-2018-day-4 (:use :cl)) (in-package :adventofcode-2018-day-4) (defclass record () ((%who :initarg :who :accessor record-who) (%what :initarg :what :reader record-what) (%when :initarg :when :reader record-when))) (defclass guard () ((%id :initarg :id :reader guard-id) (%sleep-...
855d4ed63d1d071458d62fb5b6cdd97fff2144276e11d778e26887893ee5557f
lexi-lambda/racket-curly-fn
info.rkt
#lang info (define collection 'multi) (define deps '()) (define build-deps '("base" "curly-fn-lib" "rackunit-lib"))
null
https://raw.githubusercontent.com/lexi-lambda/racket-curly-fn/d64cd71d5b386be85f5979edae6f6b6469a4df86/curly-fn-test/info.rkt
racket
#lang info (define collection 'multi) (define deps '()) (define build-deps '("base" "curly-fn-lib" "rackunit-lib"))
ab18eb8d2632f8a43b5d5a72bca231f30cb0858b2ba25aab5b856c0cd1fee38a
drlivingston/kabob
taxon.clj
iao / ncbi_taxon / NCBI_TAXON_215158_ICE iao / ncbi_taxon / NCBI_TAXON_215158_ICE ` { : name " ncbitaxon - ice - gen " ;; :head ((?/ice obo/IAO_0000219 ?/subclass)) ;; :body ((?/subclass [rdfs/subClassOf *] obo/NCBITaxon_1)) ;; :reify ([?/ice {:ln (:localname ?/subclass) : ns " iaoncbitax...
null
https://raw.githubusercontent.com/drlivingston/kabob/7038076849744c959da9c8507e8a8ab7215410aa/kabob-build/src/main/resources/edu/ucdenver/ccp/kabob/build/rules/temp/bio_to_ice/taxon.clj
clojure
:head ((?/ice obo/IAO_0000219 ?/subclass)) :body ((?/subclass [rdfs/subClassOf *] obo/NCBITaxon_1)) :reify ([?/ice {:ln (:localname ?/subclass)
iao / ncbi_taxon / NCBI_TAXON_215158_ICE iao / ncbi_taxon / NCBI_TAXON_215158_ICE ` { : name " ncbitaxon - ice - gen " : ns " iaoncbitaxon " : prefix " " : suffix " _ ICE " } ] ) } `{:name "ncbitaxon-ice-gen" :head ((?/ice obo/IAO_0000219 ?/subclass)) :body ((?/subclass [rdfs/subClassOf *...
f1a047f6ae70fe017fcdf1852aa665be51a1c62183d2badc4bfb7f018ed9dbc3
johnlawrenceaspden/hobby-code
memoize.clj
;;I noticed the other day that clojure has built in support for memoization, ;;which is a technique for remembering the return values of functions which ;;take a while to calculate ;;The classic example of when this can be useful is ;;the naive fibonnacci calculation. ;;When expressed as the obvious recursion, this ...
null
https://raw.githubusercontent.com/johnlawrenceaspden/hobby-code/48e2a89d28557994c72299962cd8e3ace6a75b2d/memoize.clj
clojure
I noticed the other day that clojure has built in support for memoization, which is a technique for remembering the return values of functions which take a while to calculate The classic example of when this can be useful is the naive fibonnacci calculation. When expressed as the obvious recursion, this is a very bad ...
(defmacro time-it [expr] `(let [start# (. System (nanoTime)) result# ~expr finish# (. System (nanoTime))] (/ (double (- finish# start#)) 1000000.0))) (defn fib [n] (if (< n 2) n ( + (fib (- n 1)) (fib (- n 2))))) (doall (map #(time-it (fib %)) (range 1 30))) (def fib (memoiz...
5fdb5f15954295ca43c1721760bd0df210980255224b35aaa9e087f76ea61a63
janestreet/hardcaml
circuit.mli
(** Creation and manipulation of hardware circuits *) open Base (** circuit data structure *) type t [@@deriving sexp_of] (** Check if the ports specified in the interface match those defined in the circuit. *) module Port_checks : sig type t = | Relaxed (** No checks *) | Port_sets (** Input and output po...
null
https://raw.githubusercontent.com/janestreet/hardcaml/1cdb35da263479bb4149c0f5550462163b7439d1/src/circuit.mli
ocaml
* Creation and manipulation of hardware circuits * circuit data structure * Check if the ports specified in the interface match those defined in the circuit. * No checks * Input and output port sets agree * Input and output port sets agree, and their widths are the same. * Check circuit for combinational loops (c...
open Base type t [@@deriving sexp_of] module Port_checks : sig type t = | Port_sets_and_widths end module Config : sig type t = { detect_combinational_loops : bool ; normalize_uids : bool * Renumber the [ Uid]s of all signals in the circuit starting at one . Uid normalization ensures that...
a7275db760f77d9684def0a6ba740ddf75657dc7ddaebca69f5165681bef046f
zyrolasting/racket-koans
vectors.rkt
#lang racket/base (require rackunit) ; Vectors resemble lists, but work differently. You can express them ; using the #(value value ...) notation, or by calling `vector`. (define letters/literal #("a" "b" "c")) (define letters/runtime (vector "a" "b" "c")) (check-equal? letters/literal letters/runtime) (check-equal...
null
https://raw.githubusercontent.com/zyrolasting/racket-koans/4a1057728b848493be8874a364b657b2398d0f7f/koans/vectors.rkt
racket
Vectors resemble lists, but work differently. You can express them using the #(value value ...) notation, or by calling `vector`. The way you make a vector affects whether you can mutate (change) the vector later. Vectors have constant time access and update, meaning the size of the vector does not slow down how ...
#lang racket/base (require rackunit) (define letters/literal #("a" "b" "c")) (define letters/runtime (vector "a" "b" "c")) (check-equal? letters/literal letters/runtime) (check-equal? '? (vector? letters/literal)) (check-equal? '? (vector? letters/runtime)) (check-equal? '? (immutable? letters/literal)) (check-equ...
b9a2d45e615f9477e209ddb916b96d6bcae471ca8a58c3962398869c4d957ca1
javazquez/arnoldclj_interpreter
method_test.clj
(ns arnoldclj_s.method-test (:use midje.sweet) (:use arnoldclj_s.lexr)) (fact "evalute method other than main" (lights-camera-action "LISTEN TO ME VERY CAREFULLY mymethod\n" "HASTA LA VISTA, BABY\n" "IT'S SHOWTIME\n" "TALK TO THE HAND \"...
null
https://raw.githubusercontent.com/javazquez/arnoldclj_interpreter/d6860d7063a121103293b10dca65b113ad843d26/test/arnoldclj_s/method_test.clj
clojure
getOutput(code) should equal("Hello\n") getOutput(code) should equal("Hello\n") getOutput(code) should equal("Hello\n") getOutput(code) should equal("Hello\n") getOutput(code) should equal("Hello\n") getOutput(code) should equal("123\n") getOutput(code) should equal("Hello\nCheers\n") getOutput(code) should equal("Hell...
(ns arnoldclj_s.method-test (:use midje.sweet) (:use arnoldclj_s.lexr)) (fact "evalute method other than main" (lights-camera-action "LISTEN TO ME VERY CAREFULLY mymethod\n" "HASTA LA VISTA, BABY\n" "IT'S SHOWTIME\n" "TALK TO THE HAND \"...
976a6656cd73c0d25e71a0f64e615380d88302badc0bbedaaf657bb5daeddb6c
reanimate/reanimate
TernaryPlot.hs
| Module : Reanimate . Builtin . TernaryPlot Copyright : Written by License : Unlicense Maintainer : Stability : experimental Portability : POSIX Implementation of ternary plots : < > Module : Reanimate.Builtin.TernaryPlot Copyright : Written by David Himmelstrup License ...
null
https://raw.githubusercontent.com/reanimate/reanimate/5ea023980ff7f488934d40593cc5069f5fd038b0/src/Reanimate/Builtin/TernaryPlot.hs
haskell
, atCenter , radius a+b+c=1 | Left-most coordinate. | Top-most coordinate. | Right-most coordinate. Example: @ let red = round $ aCoord*255 green = round $ bCoord*255 blue = round $ cCoord*255 in PixelRGB8 red green blue @ <<docs/gifs/doc_ternaryPlot.gif>> ^ a+b+c=1. A=1 is the ...
| Module : Reanimate . Builtin . TernaryPlot Copyright : Written by License : Unlicense Maintainer : Stability : experimental Portability : POSIX Implementation of ternary plots : < > Module : Reanimate.Builtin.TernaryPlot Copyright : Written by David Himmelstrup License ...
2b0e60468e11f300184b53e50782d6a557ac664bf31df3775b77ecef86e1d737
i-am-tom/holmes
Ord.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE BlockArguments # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE ViewPatterns # module Test.Data.JoinSemilattice.Class.Ord where import Data.Holmes (BooleanR (..), OrdR (..)) import Hedgehog ordR_lteR :: ( OrdR f , OrdC f x , Eq (f x) ...
null
https://raw.githubusercontent.com/i-am-tom/holmes/ecbb6da0c7a73f839ea2c4d00cdb902fe7080981/test/Test/Data/JoinSemilattice/Class/Ord.hs
haskell
# LANGUAGE RankNTypes #
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE BlockArguments # # LANGUAGE ScopedTypeVariables # # LANGUAGE ViewPatterns # module Test.Data.JoinSemilattice.Class.Ord where import Data.Holmes (BooleanR (..), OrdR (..)) import Hedgehog ordR_lteR :: ( OrdR f , OrdC f x , Eq (f x) , Eq (f Bool) , Show ...
a0ad588f700b5bfbe77759c37c6672410c92a17c35eab99f61eec2c6aadc442d
agda/agda
Instances.hs
# OPTIONS_GHC -fno - warn - orphans # -- Only instances exported module Agda.TypeChecking.Serialise.Instances () where import Agda.Syntax.Position import Agda.Syntax.TopLevelModuleName import Agda.TypeChecking.Monad.Base import Agda.TypeChecking.Serialise.Base import Agda.TypeChecking.Serialise.Instances.Common (Seri...
null
https://raw.githubusercontent.com/agda/agda/c859b5e8737a006b559723a1048bba10806bda2d/src/full/Agda/TypeChecking/Serialise/Instances.hs
haskell
Only instances exported
# OPTIONS_GHC -fno - warn - orphans # module Agda.TypeChecking.Serialise.Instances () where import Agda.Syntax.Position import Agda.Syntax.TopLevelModuleName import Agda.TypeChecking.Monad.Base import Agda.TypeChecking.Serialise.Base import Agda.TypeChecking.Serialise.Instances.Common (SerialisedRange(..)) import Agd...
1c0d73c0ed57016180b62fda9d282419104045266b3e1a9c43359e6585d841f0
fulcrologic/fulcro-rad-demo
blob_store.clj
(ns com.example.components.blob-store (:require [com.fulcrologic.rad.blob-storage :as storage] [mount.core :refer [defstate]])) (defstate temporary-blob-store :start (storage/transient-blob-store "" 1)) (defstate image-blob-store :start (storage/transient-blob-store "/images" 10000)) (defstate file...
null
https://raw.githubusercontent.com/fulcrologic/fulcro-rad-demo/28b8c2dd3cd9f9be66a621627d079bb19bd5e53b/src/shared/com/example/components/blob_store.clj
clojure
(ns com.example.components.blob-store (:require [com.fulcrologic.rad.blob-storage :as storage] [mount.core :refer [defstate]])) (defstate temporary-blob-store :start (storage/transient-blob-store "" 1)) (defstate image-blob-store :start (storage/transient-blob-store "/images" 10000)) (defstate file...
4d9ca339e7040c6dcc5ff539d778277085f9791dfc403ab925617fa7b6ca6a88
facebook/infer
SourceFileGraph.mli
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/facebook/infer/7499c0354a412a5ceec8476a58c5953fcfeae2b9/infer/src/backend/SourceFileGraph.mli
ocaml
* construct the file-call-graph and store it in [<results-dir>/<filename>]
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
b7658ba6a5828342b3655bf9d0be7914101e9491171666321ae8eef62fb6fa55
BardurArantsson/cqrs
EventStream.hs
{-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # module Data.CQRS.Types.EventStream ( EventStream(..) , mkEmpty , transform , transformI , transformE ) where import Control.Arrow (second) import Control.Monad ((>=>)) import Control.Mon...
null
https://raw.githubusercontent.com/BardurArantsson/cqrs/2491d83e2bcd68c883aaea33cdce6c5ea8c0cd1a/cqrs-core/src/Data/CQRS/Types/EventStream.hs
haskell
# LANGUAGE RankNTypes # | EventStream for events of type 'e' identified by aggregate IDs of type 'i'. | Read the event stream, starting __immediately after__ the given position. The order is arbitrary-but-consistent such that all events for any given aggregate are always read in order of increasing sequence number...
# LANGUAGE ScopedTypeVariables # module Data.CQRS.Types.EventStream ( EventStream(..) , mkEmpty , transform , transformI , transformE ) where import Control.Arrow (second) import Control.Monad ((>=>)) import Control.Monad.IO.Unlift (MonadUnliftIO(...
5e6b3a01fe0995c99e7c48831b913d58b0c3c5b0a2377276b12a9522eb35c979
rd--/hsc3
trigControl.help.hs
trigControl ; graph with the three types of non - audio controls ; trigger controls are drawn cyan let freq = control kr "freq" 440 phase = control ir "phase" 0 gate' = trigControl "gate" 1 amp = control kr "amp" 0.1 e = envGen kr gate' amp 0 1 DoNothing (envAsr 0.01 1 1 EnvLin) in sinOsc ar freq phas...
null
https://raw.githubusercontent.com/rd--/hsc3/bb12d02f09481e7cb59ae2e9e5119d1f7c4c98c9/Help/Ugen/trigControl.help.hs
haskell
trigControl ; graph with the three types of non - audio controls ; trigger controls are drawn cyan let freq = control kr "freq" 440 phase = control ir "phase" 0 gate' = trigControl "gate" 1 amp = control kr "amp" 0.1 e = envGen kr gate' amp 0 1 DoNothing (envAsr 0.01 1 1 EnvLin) in sinOsc ar freq phas...
4df16d0959e2d08a68b395ac8a885a2cce8b6e2a0959da5087082cb62601bc46
willowtreeapps/wombats-api
scheduler.clj
(ns wombats.components.scheduler (:require [com.stuartsierra.component :as component] [wombats.constants :refer [game-start-time-min game-start-time-hour add-game-request]] [wombats.scheduler.core :as scheduler] ...
null
https://raw.githubusercontent.com/willowtreeapps/wombats-api/738e4cc8d7011998695ec85e663f650be71f60ae/src/wombats/components/scheduler.clj
clojure
Go through all the pending games, and schedule them Public component methods
(ns wombats.components.scheduler (:require [com.stuartsierra.component :as component] [wombats.constants :refer [game-start-time-min game-start-time-hour add-game-request]] [wombats.scheduler.core :as scheduler] ...
271770c731adba7bb822002500d6fc9f6f50d06276ed5358663f33d570fba505
karimarttila/clojure
signin.cljs
(ns simplefrontend.signin (:require [reagent.core :as r] [ajax.core :as a-core] [simplefrontend.reagent-wrapper :as sf-rw] [simplefrontend.components :as sf-components] [simplefrontend.config :as sf-config])) * * * * * vars . * * * * * (def my-error-msg-atom (r/atom nil)) (def my-success-msg-...
null
https://raw.githubusercontent.com/karimarttila/clojure/ee1261b9a8e6be92cb47aeb325f82a278f2c1ed3/clj-ring-cljs-reagent-demo/simple-frontend/src/simplefrontend/signin.cljs
clojure
For debugging
(ns simplefrontend.signin (:require [reagent.core :as r] [ajax.core :as a-core] [simplefrontend.reagent-wrapper :as sf-rw] [simplefrontend.components :as sf-components] [simplefrontend.config :as sf-config])) * * * * * vars . * * * * * (def my-error-msg-atom (r/atom nil)) (def my-success-msg-...
9cdd7cb88b4dc9804c92a94d7fc75a6eeb5a9b4e55d0a6518489f5a83868efc4
clj-commons/seesaw
options.clj
Copyright ( c ) , 2011 . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this ; distribution. ; By using this software in any fashion, you are agreeing to be ...
null
https://raw.githubusercontent.com/clj-commons/seesaw/4ca89d0dcdf0557d99d5fa84202b7cc6e2e92263/src/seesaw/options.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not rem...
Copyright ( c ) , 2011 . All rights reserved . (ns ^{:doc "Functions for dealing with options." :author "Dave Ray"} seesaw.options (:use [seesaw.util :only [camelize illegal-argument check-args resource resource-key?]])) (defprotocol OptionProvider (get-option-maps* [this...
a264c8464189c43bcc6b37813aa5d78c8a9dd7365b3069b195295c47a989143b
jaspervdj/blaze-html
Pretty.hs
module Text.Blaze.Html.Renderer.Pretty ( renderHtml ) where import Text.Blaze.Html (Html) import Text.Blaze.Renderer.Pretty (renderMarkup) renderHtml :: Html -> String renderHtml = renderMarkup
null
https://raw.githubusercontent.com/jaspervdj/blaze-html/1c76db3cf02712569fd22b021fb0a367df028eb4/src/Text/Blaze/Html/Renderer/Pretty.hs
haskell
module Text.Blaze.Html.Renderer.Pretty ( renderHtml ) where import Text.Blaze.Html (Html) import Text.Blaze.Renderer.Pretty (renderMarkup) renderHtml :: Html -> String renderHtml = renderMarkup
fab68cd853f4e62798d054d0f765eeef4f6b2149060c2252eaa2e37890318661
robashton/cravendb
remote.clj
(ns cravendb.remote (:require [http.async.client :as http]) (:require [cemerick.url :refer (url-encode)] [clojure.edn :as edn] [cravendb.core :refer [zero-synctag]] [cravendb.database :refer [DocumentDatabase]] [clojure.tools.logging :refer [debug info error]])) (de...
null
https://raw.githubusercontent.com/robashton/cravendb/461e80c7c028478adb4287922db6ee4d2593a880/src/cravendb/remote.clj
clojure
(ns cravendb.remote (:require [http.async.client :as http]) (:require [cemerick.url :refer (url-encode)] [clojure.edn :as edn] [cravendb.core :refer [zero-synctag]] [cravendb.database :refer [DocumentDatabase]] [clojure.tools.logging :refer [debug info error]])) (de...
2c4c30d6762ecba857fe82bd6e90b916548061fbdccdd8cefb349e8a42a45e80
taylorwood/advent-of-code
7.clj
(ns advent-of-code.2017.7 (:require [clojure.java.io :as io] [clojure.string :as cs] [clojure.walk :as walk])) (def raw-input (slurp (io/resource "data_2017/7.txt"))) (defn parse-line [l] (let [[name weight] (rest (re-find #"(\w+)\s\((\d+)\)" l)) kids (when-let [adj-text (re-find #...
null
https://raw.githubusercontent.com/taylorwood/advent-of-code/c6b08f4b618875a45c8083a04ae2c669626c43bf/src/advent_of_code/2017/7.clj
clojure
solve part one: find the node that has no parents find the *deepest* off-balance map then I just eyeballed the weights and did the simple math manually
(ns advent-of-code.2017.7 (:require [clojure.java.io :as io] [clojure.string :as cs] [clojure.walk :as walk])) (def raw-input (slurp (io/resource "data_2017/7.txt"))) (defn parse-line [l] (let [[name weight] (rest (re-find #"(\w+)\s\((\d+)\)" l)) kids (when-let [adj-text (re-find #...
7733efcfd9504035e707a19869d3b688def3bc79df0c1d41da64b99f22d82f2b
manavpatnaik/haskell
3_fold.hs
import Prelude -- foldr => fold right -- foldl => fold left main = do -- foldr: performs the operation on the list and adds it to the init value Here its 0 . Its like the reduce function in JS print(foldr (+) 0 [1,2,3,4,5]) print(foldl (+) 0 [1,2,3,4,5]) print(foldr (*) 1 [1,2,3,4,5]) print(fold...
null
https://raw.githubusercontent.com/manavpatnaik/haskell/9e7c805afb2607468c2e2977247266ccc19d24b6/higher_order_functions/3_fold.hs
haskell
foldr => fold right foldl => fold left foldr: performs the operation on the list and adds it to the init value
import Prelude main = do Here its 0 . Its like the reduce function in JS print(foldr (+) 0 [1,2,3,4,5]) print(foldl (+) 0 [1,2,3,4,5]) print(foldr (*) 1 [1,2,3,4,5]) print(foldl (*) 1 [1,2,3,4,5])
b43bad23f204f85ed71a3ac5f7b935ef350d79112d95c2270ef00abbd3cee21a
yrashk/erlang
snmp_SUITE.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1997 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pu...
null
https://raw.githubusercontent.com/yrashk/erlang/e1282325ed75e52a98d58f5bd9fb0fa27896173f/lib/snmp/test/snmp_SUITE.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limit...
Copyright Ericsson AB 1997 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(snmp_SUITE). -export([all/1, i...
375a0f67f3ba463878bd5b68f2ecf0c98e17e00879209770c75496e811a93aa7
ruHaskell/ruhaskell
About.hs
{-# LANGUAGE OverloadedStrings #-} module About ( createAboutPage ) where import Control.Monad.Trans (lift) import Hakyll (applyTemplate, compile, constField, create, defaultContext, idRoute, makeItem, relativizeUrls, route) import M...
null
https://raw.githubusercontent.com/ruHaskell/ruhaskell/1e38eae50011307d11a2026af925a23a6fd8a346/src/About.hs
haskell
# LANGUAGE OverloadedStrings #
module About ( createAboutPage ) where import Control.Monad.Trans (lift) import Hakyll (applyTemplate, compile, constField, create, defaultContext, idRoute, makeItem, relativizeUrls, route) import Markup.About (aboutTemplate) import ...
fc10c8824f14a3461225d20fcdc050912ca2f504cf59128f071821cb408ccb90
Kakadu/fp2022
parser.ml
* Copyright 2021 - 2022 , Danila Pechenev & * SPDX - License - Identifier : LGPL-3.0 - or - later open Angstrom open Ast open List open String open Typing type error_message = string type input = string type dispatch = { parse_list_constructing : dispatch -> expression Angstrom.t ; parse_tuple : dispatch -> e...
null
https://raw.githubusercontent.com/Kakadu/fp2022/7f9035ae2d6fb779e2cb075ab1a0c76883f30b00/OCamlWithEffects/lib/parser.ml
ocaml
Smart constructors for expressions ---------------------------------- Smart constructors for binary operators --------------------------------------- Smart constructors for unary operators -------------------------------------- Helpers ------- Parsing of type annotations --------------------------- ...
* Copyright 2021 - 2022 , Danila Pechenev & * SPDX - License - Identifier : LGPL-3.0 - or - later open Angstrom open Ast open List open String open Typing type error_message = string type input = string type dispatch = { parse_list_constructing : dispatch -> expression Angstrom.t ; parse_tuple : dispatch -> e...
a6c1088e6380bfaa2e3ebe81d7a55606613b2da5f68afb351854167b33f38d24
adamschoenemann/clofrp
Contexts.hs
# LANGUAGE LambdaCase # {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DataKinds # # LANGUAGE TypeFamilies # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGU...
null
https://raw.githubusercontent.com/adamschoenemann/clofrp/c26f86aec2cdb8fa7fd317acd13f7d77af984bd3/library/CloFRP/Check/Contexts.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE OverloadedStrings # | Universal | Existential | x :_? A | a = t | |>a Local contexts contains local variables and stuff Free contexts contains "global" mappings from names to types Kind context contains "global" mappings from type-names to kinds context of d...
# LANGUAGE LambdaCase # # LANGUAGE DataKinds # # LANGUAGE TypeFamilies # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NamedFieldPuns # # LANGUAGE FunctionalDependencies # module CloFRP...
78307c82ffe4c3e95aa0ab0ed8c715656857a7f5854fdc70e5e012f69454dcda
google/codeworld
General.hs
Copyright 2020 The CodeWorld Authors . All rights reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to ...
null
https://raw.githubusercontent.com/google/codeworld/77b0863075be12e3bc5f182a53fcc38b038c3e16/funblocks-client/src/Blockly/General.hs
haskell
Copyright 2020 The CodeWorld Authors . All rights reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to ...
77b87e9c721d5a5945a39dedf40278360aea07e87b67c5790ef520911dfb6a80
abdulapopoola/SICPBook
Ex3.64.scm
#lang racket (define (stream-limit s tolerance) (let ((s0 (stream-ref s 0)) (s1 (stream-ref s 1))) (if (< (abs (- s0 s1)) tolerance) s1 (stream-limit (stream-rest s) tolerance))))
null
https://raw.githubusercontent.com/abdulapopoola/SICPBook/c8a0228ebf66d9c1ddc5ef1fcc1d05d8684f090a/Chapter%203/3.5/Ex3.64.scm
scheme
#lang racket (define (stream-limit s tolerance) (let ((s0 (stream-ref s 0)) (s1 (stream-ref s 1))) (if (< (abs (- s0 s1)) tolerance) s1 (stream-limit (stream-rest s) tolerance))))
198249e220d31b802d966ce4496afc0197fe35db9fe9d9f468338a29650c14a0
Idorobots/spartan
generator.rkt
#lang racket (require "../env.rkt") (require "../pass.rkt") (require "../ast/utils.rkt") (provide generate-target-code) (define generate-target-code (pass (schema "generate-target-code" 'data (list-of? (a-pair? a-symbol? (ast-subset? '(const symbol if do let...
null
https://raw.githubusercontent.com/Idorobots/spartan/68ac4e02ab8aa84021ec4ed3906e6b766687e5ae/src/compiler/passes/generator.rkt
racket
FIXME Actually implement a proper code-gen.
#lang racket (require "../env.rkt") (require "../pass.rkt") (require "../ast/utils.rkt") (provide generate-target-code) (define generate-target-code (pass (schema "generate-target-code" 'data (list-of? (a-pair? a-symbol? (ast-subset? '(const symbol if do let...
6c51240d8141d3a77b0bdaa320a6058e107365c207ac64bdf41e805d49e04dec
iamFIREcracker/adventofcode
day24.lisp
(defpackage :aoc/2015/24 #.cl-user::*aoc-use*) (in-package :aoc/2015/24) (defun target-weight (weights groups) (/ (reduce #'+ weights) groups)) (defun quantum-entanglement (group) (reduce #'* group)) (defun find-perfect-balance (weights groups &aux (target (target-weight weights g...
null
https://raw.githubusercontent.com/iamFIREcracker/adventofcode/c395df5e15657f0b9be6ec555e68dc777b0eb7ab/src/2015/day24.lisp
lisp
(defpackage :aoc/2015/24 #.cl-user::*aoc-use*) (in-package :aoc/2015/24) (defun target-weight (weights groups) (/ (reduce #'+ weights) groups)) (defun quantum-entanglement (group) (reduce #'* group)) (defun find-perfect-balance (weights groups &aux (target (target-weight weights g...
39eb8a5f04f657feb191594c50d14223ec5bf15a788db9120c1dde713a722478
BranchTaken/Hemlock
test_to_string_escape.ml
open! Basis.Rudiments open! Basis open Codepoint let pp_uns_x u formatter = formatter |> Uns.fmt ~alt:true ~zpad:true ~width:16L ~radix:Radix.Hex u let utf8_pp t formatter = formatter |> Fmt.fmt (Utf8.escape t) let test () = let rec fn i = begin match i with | 0x80L -> () | _ -> begin let c...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/a21b462fe7f70475591d2ffae185c91552bf6372/bootstrap/test/basis/codepoint/test_to_string_escape.ml
ocaml
open! Basis.Rudiments open! Basis open Codepoint let pp_uns_x u formatter = formatter |> Uns.fmt ~alt:true ~zpad:true ~width:16L ~radix:Radix.Hex u let utf8_pp t formatter = formatter |> Fmt.fmt (Utf8.escape t) let test () = let rec fn i = begin match i with | 0x80L -> () | _ -> begin let c...
b2aa1c561e24b9a2db817e16cf908c656e2a518ad1b5bf01c2b86b50677537c4
incoherentsoftware/defect-process
Data.hs
module Enemy.All.Blob.Data ( BlobEnemyData(..) , mkBlobEnemyData ) where import Control.Monad.IO.Class (MonadIO) import Configs import Configs.All.Enemy import Enemy.All.Blob.AttackDescriptions import Enemy.All.Blob.Behavior import Enemy.All.Blob.Sprites import FileCache import Window.Graphics data BlobE...
null
https://raw.githubusercontent.com/incoherentsoftware/defect-process/8797aad1d93bff5aadd7226c39a48f45cf76746e/src/Enemy/All/Blob/Data.hs
haskell
module Enemy.All.Blob.Data ( BlobEnemyData(..) , mkBlobEnemyData ) where import Control.Monad.IO.Class (MonadIO) import Configs import Configs.All.Enemy import Enemy.All.Blob.AttackDescriptions import Enemy.All.Blob.Behavior import Enemy.All.Blob.Sprites import FileCache import Window.Graphics data BlobE...
3dd05646bcb0435eca5d3636657312a2b30e6186d55df4f13abb010ed7a4f137
mfoemmel/erlang-otp
wxBoxSizer.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/wx/src/gen/wxBoxSizer.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 2008 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(wxBoxSizer). -include("wxe.hrl")....
c90a9b67438f042db8cc14506a194fb0f3c67b1a2bfaadbb1c9084072b4ac72c
fjvallarino/monomer
Util.hs
| Module : . Core . Util Copyright : ( c ) 2018 License : BSD-3 - Clause ( see the LICENSE file ) Maintainer : Stability : experimental Portability : non - portable Helper functions for Core types . Module : Monomer.Core.Util Copyright : (c) 2018 Francisco Vallarino Licens...
null
https://raw.githubusercontent.com/fjvallarino/monomer/d4270caafea4ff4fdd80bb1c9b78443ae480cfc5/src/Monomer/Core/Util.hs
haskell
# DEPRECATED findWidgetIdFromPath "Use 'widgetIdFromPath' instead." # # DEPRECATED findWidgetByPath "Use 'findChildNodeInfoByPath' instead." # # DEPRECATED findWidgetBranchByPath "Use 'findChildBranchByPath' instead." # | Ignore events generated by the parent. Could be used to consume the tab key and avoid having the f...
| Module : . Core . Util Copyright : ( c ) 2018 License : BSD-3 - Clause ( see the LICENSE file ) Maintainer : Stability : experimental Portability : non - portable Helper functions for Core types . Module : Monomer.Core.Util Copyright : (c) 2018 Francisco Vallarino Licens...
f5c3df4c420afd3bb0fd71d52b6a68066fa9f2733b2ec825fcb843cfb95f3290
basho/riak_test
kv679_tombstone.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2014 Basho Technologies , Inc. %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% a copy of the Li...
null
https://raw.githubusercontent.com/basho/riak_test/8170137b283061ba94bc85bf42575021e26c929d/tests/kv679_tombstone.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2014 Basho Technologies , Inc. This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY ( C ) 2014 , Basho Technologi...
98639a5801191ff751a55f3cedbe2f8121c9e48e8d1297ccf6122c342d4105a5
Dimercel/listopia
searching-lists.lisp
(defpackage listopia-bench.searching-lists (:use :cl :prove :listopia-bench.utils) (:import-from :listopia :elem :not-elem :filter :partition) (:shadowing-import-from :listopia :find)) (in-package :listopia-bench.searching-lists) (...
null
https://raw.githubusercontent.com/Dimercel/listopia/2d2a1a3c35580252ca0085e15ebf625f73230d60/bench/searching-lists.lisp
lisp
(defpackage listopia-bench.searching-lists (:use :cl :prove :listopia-bench.utils) (:import-from :listopia :elem :not-elem :filter :partition) (:shadowing-import-from :listopia :find)) (in-package :listopia-bench.searching-lists) (...
b1c858ea73e7bb9f95687e1f132cf967dd63f8547a16df1601bc42daf11cd468
CindyLinz/Haskell.js
ForgetL.hs
module ForgetL where import Data.Functor forgetL :: Functor f => f a -> f () forgetL = fmap (const ())
null
https://raw.githubusercontent.com/CindyLinz/Haskell.js/78429a49181a15f6bdae426f17bdae722ad17141/trans/src/ForgetL.hs
haskell
module ForgetL where import Data.Functor forgetL :: Functor f => f a -> f () forgetL = fmap (const ())
6e687b555f92e4d0b00455454c1604136fe55dc8d0f3810c865a04b771c5ba53
apache/couchdb-ddoc-cache
ddoc_cache_app.erl
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 distributed under the License is distributed on an " A...
null
https://raw.githubusercontent.com/apache/couchdb-ddoc-cache/c762e90a33ce3cda19ef142dd1120f1087ecd876/src/ddoc_cache_app.erl
erlang
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 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations...
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not distributed under the License is distributed on an " AS IS " BASIS , WITHOUT -module(ddoc_cache_app). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs) -> ddoc_cache_sup:start_link(). stop(_...
1054a15e86dfe4a4e163dd9332951ba4f243b7d21651a5e175462980b48fa848
jqueiroz/lojban.io
Home.hs
{-# LANGUAGE OverloadedStrings #-} module Server.Website.Views.Home ( displayHome ) where import Core import Server.Core import Server.Website.Views.Core import qualified Data.Text as T import qualified Text.Blaze as B import qualified Text.Blaze.Html5 as H import qualified Text.Blaze.Html5.Attributes as A import qua...
null
https://raw.githubusercontent.com/jqueiroz/lojban.io/68c3e919f92ea1294f32ee7772662ab5667ecef6/haskell/src/Server/Website/Views/Home.hs
haskell
# LANGUAGE OverloadedStrings # TODO: take more info from this brochure: displayDeck ("/decks/contextualized-brivla", Study.Decks.English.ContextualizedBrivla.deck) displayDeck ("/decks/contextualized-brivla", Study.Decks.English.ContextualizedBrivla.deck) displayDeck ("/decks/contextualized-brivla", Study.Decks.Engli...
module Server.Website.Views.Home ( displayHome ) where import Core import Server.Core import Server.Website.Views.Core import qualified Data.Text as T import qualified Text.Blaze as B import qualified Text.Blaze.Html5 as H import qualified Text.Blaze.Html5.Attributes as A import qualified Study.Courses.English.Gramma...
c41a6862ccd532c71bf7a4249676fd5fc20661d867d7e0b50733b75ae01a0a54
xsc/claro
transform.clj
(ns claro.data.transform (:require [claro.data.protocols :as p])) (defmacro ^{:added "0.2.7"} extend-list-transform "Implement the [[Transform]] protocol for the given `resolvable-class`, assuming it returns a seq of elements to-be-processed with `element-constructor`. ```clojure (extend-list-transfor...
null
https://raw.githubusercontent.com/xsc/claro/16db75b7a775a14f3b656362e8ee4f65dd8b0d49/src/claro/data/transform.clj
clojure
(ns claro.data.transform (:require [claro.data.protocols :as p])) (defmacro ^{:added "0.2.7"} extend-list-transform "Implement the [[Transform]] protocol for the given `resolvable-class`, assuming it returns a seq of elements to-be-processed with `element-constructor`. ```clojure (extend-list-transfor...
1d13f04d67919cb87198e90447e619699cb5df79f56c421f13dd353376c074f9
ros/roslisp_common
package.lisp
(in-package :cl-user) (defpackage :actionlib-test (:use :cl :lisp-unit :roslisp :actionlib-lisp))
null
https://raw.githubusercontent.com/ros/roslisp_common/4db311da26497d84a147f190200e50c7a5b4106e/actionlib_lisp/test/package.lisp
lisp
(in-package :cl-user) (defpackage :actionlib-test (:use :cl :lisp-unit :roslisp :actionlib-lisp))
7eb0f85ff08dce1af731fe56504b37d548cb84b848c29499b65e280fe67f9a3b
ulricha/dsh
DSH.hs
-- | This module is intended to be imported @qualified@, to avoid name clashes with " Prelude " functions . For example : -- > import qualified Database . DSH as Q > import Database . DSH ( Q ) -- Alternatively you can hide " Prelude " and import this module like this : -- > import Prelude ( ) > import Data...
null
https://raw.githubusercontent.com/ulricha/dsh/e6cd5c6bea575e62a381e89bfc4cc7cb97485106/src/Database/DSH.hs
haskell
| This module is intended to be imported @qualified@, to avoid name clashes In this case you still get Prelude definitions that are not provided
with " Prelude " functions . For example : > import qualified Database . DSH as Q > import Database . DSH ( Q ) Alternatively you can hide " Prelude " and import this module like this : > import Prelude ( ) > import Database . DSH by Database . DSH . module Database.DSH ( module Database.DSH.Frontend...
158df266faa188f8a9ebb0a632f9b2c2fea94a99719ea6f1a055f107843a5a70
blindglobe/clocc
streams.lisp
;;; based on v1.6 -*- mode: lisp -*- (in-package :cl-user) #+xcl (check-for-bug :streams-legacy-5 (progn (in-package :sys) t) t) #-(or akcl allegro) (check-for-bug :streams-legacy-10 (prin1-to-string (make-broadcast-stream)) #+xcl "#<%TYPE-STRUCTURE-STREAM NIL>" #+clisp "#<OUTPUT BROADCAST-STREAM>" #+(or ...
null
https://raw.githubusercontent.com/blindglobe/clocc/a50bb75edb01039b282cf320e4505122a59c59a7/src/tools/ansi-test/streams.lisp
lisp
based on v1.6 -*- mode: lisp -*- CLOSE should not delete information about element type, direction, and external format
(in-package :cl-user) #+xcl (check-for-bug :streams-legacy-5 (progn (in-package :sys) t) t) #-(or akcl allegro) (check-for-bug :streams-legacy-10 (prin1-to-string (make-broadcast-stream)) #+xcl "#<%TYPE-STRUCTURE-STREAM NIL>" #+clisp "#<OUTPUT BROADCAST-STREAM>" #+(or cmu sbcl) "#<Broadcast Stream>" #+e...
c87d74aa037f264d61dbcaf2e33899ece3fca1d8c2d0376b0b56b69ad53d1732
kadena-io/chainweaver
ApiClient.hs
# LANGUAGE CPP # # LANGUAGE TupleSections # # LANGUAGE DataKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # # LANGUAGE QuasiQuotes # Limit API to the parts that are common to chainweb and ` pact -s ` . module Pact.Server.ApiClient ( -- * Named V1 from Pact A...
null
https://raw.githubusercontent.com/kadena-io/chainweaver/4e9af3848b86ecda244c1e111899b4a2ac16bf28/frontend/src/Pact/Server/ApiClient.hs
haskell
* Named V1 from Pact * Parent structure for log entries * Command log structures, versioned in submodules * Transaction specific logging impl apiV1API :: Proxy ApiV1API apiV1API = Proxy | Commands are logged with the time they were sent and the node URL they were sent version. Use system-filepath to avoid be...
# LANGUAGE CPP # # LANGUAGE TupleSections # # LANGUAGE DataKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # # LANGUAGE QuasiQuotes # Limit API to the parts that are common to chainweb and ` pact -s ` . module Pact.Server.ApiClient ApiV1API , ApiClient(..) ...
593830550afc65c64987497c7ee6ddc982fa8522363bba67f717b5188d3f215b
MarkCurtiss/sicp
3_77_to_3_82_spec.scm
(load "3_77_to_3_82.scm") (describe "Delayed integral" (it "can be used in solvers with delayed functions" (lambda () (define (solve f y0 dt) (define y (integral (delay dy) y0 dt)) (define dy (stream-map f y)) y) (assert (equal? (stream-ref (solve (lambda (y) y) 1 0.001) 1000) 2.7...
null
https://raw.githubusercontent.com/MarkCurtiss/sicp/8b55a3371458014c815ba8792218b6440127ab40/chapter_3_exercises/spec/3_77_to_3_82_spec.scm
scheme
(load "3_77_to_3_82.scm") (describe "Delayed integral" (it "can be used in solvers with delayed functions" (lambda () (define (solve f y0 dt) (define y (integral (delay dy) y0 dt)) (define dy (stream-map f y)) y) (assert (equal? (stream-ref (solve (lambda (y) y) 1 0.001) 1000) 2.7...
56277e1f06878233d2f6d24867aee9a931e1b7bf8237a03f8b87212ad5a03a50
threatgrid/ctim
openc2vocabularies.cljc
(ns ctim.schemas.openc2vocabularies (:require #?(:clj [flanders.core :refer [def-enum-type]] :cljs [flanders.core :refer-macros [def-enum-type]]))) (def COA-type #{"alert" "allow" "augment" "contain" "delete" "deny" "detonate" "distill" "get" "investigate" "l...
null
https://raw.githubusercontent.com/threatgrid/ctim/2ecae70682e69495cc3a12fd58a474d4ea57ae9c/src/ctim/schemas/openc2vocabularies.cljc
clojure
(ns ctim.schemas.openc2vocabularies (:require #?(:clj [flanders.core :refer [def-enum-type]] :cljs [flanders.core :refer-macros [def-enum-type]]))) (def COA-type #{"alert" "allow" "augment" "contain" "delete" "deny" "detonate" "distill" "get" "investigate" "l...
25c43fb130859559f520b81d7051b1dbdb00d7709fddf1165438895c578513df
dongcarl/guix
lean.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2019 < > Copyright © 2020 < > Copyright © 2020 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the F...
null
https://raw.githubusercontent.com/dongcarl/guix/82543e9649da2da9a5285ede4ec4f718fd740fcb/gnu/packages/lean.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 © 2019 < > Copyright © 2020 < > Copyright © 2020 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu packages lean) #:use-module (gnu packa...
783a18c9ad853e268bb67f15666b0f8c87d6e7d81eab5ea5a5458467cc4d4796
serokell/ariadne
Orphans.hs
# OPTIONS_GHC -fno - warn - orphans # module Ariadne.Cardano.Orphans () where import Pos.Client.CLI.NodeOptions (CommonNodeArgs(..)) import Pos.Client.CLI.Options (CommonArgs(..)) import Pos.Client.Txp.Util (InputSelectionPolicy(..)) import Pos.Infra.Network.CLI (NetworkConfigOpts(..)) import Pos.Infra.Statistics (Ekg...
null
https://raw.githubusercontent.com/serokell/ariadne/5f49ee53b6bbaf332cb6f110c75f7b971acdd452/ariadne/cardano/src/Ariadne/Cardano/Orphans.hs
haskell
# OPTIONS_GHC -fno - warn - orphans # module Ariadne.Cardano.Orphans () where import Pos.Client.CLI.NodeOptions (CommonNodeArgs(..)) import Pos.Client.CLI.Options (CommonArgs(..)) import Pos.Client.Txp.Util (InputSelectionPolicy(..)) import Pos.Infra.Network.CLI (NetworkConfigOpts(..)) import Pos.Infra.Statistics (Ekg...
caaf1141cb0053c6db6b81f7e0795646a340ea34673d1a91945a067d70b52ae5
karlhof26/gimp-scheme
AutoColorize_FlavorA_1_02.scm
; Auto colorize image into random number of colors of random hues author : date : 2015 ; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the License , or ; (at...
null
https://raw.githubusercontent.com/karlhof26/gimp-scheme/b79c32f34e365d7579f1ca17144fb144b79a86e4/AutoColorize_FlavorA_1_02.scm
scheme
Auto colorize image into random number of colors of random hues This program is free software; you can redistribute it and/or modify either version 3 of the License , or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without e...
author : date : 2015 it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License (define (script-fu-auto-colorize-a image layer hatches ) (let* ( ...
8e6442794791bdb419c9f9f1ff2a9ea4b2a9861badc3f763a097c617e83dbfd4
KirinDave/fuzed
fuzed_frontend_app.erl
-module(fuzed_frontend_app). -behaviour(application). -export([start/2, stop/1]). start(_Type, StartArgs) -> net_kernel:set_net_ticktime(30), fuzed_frontend_supervisor:start_link(StartArgs). stop(_State) -> ok.
null
https://raw.githubusercontent.com/KirinDave/fuzed/56098d9e4c139613845289bdd5acebdfe608981a/elibs/fuzed_frontend_app.erl
erlang
-module(fuzed_frontend_app). -behaviour(application). -export([start/2, stop/1]). start(_Type, StartArgs) -> net_kernel:set_net_ticktime(30), fuzed_frontend_supervisor:start_link(StartArgs). stop(_State) -> ok.
281c90c8f5a154d41225bb7b50822b02b8d7e9b868e599d94c034737b7867984
abyala/advent-2022-clojure
day09.clj
(ns advent-2022-clojure.day09 (:require [clojure.string :as str] [advent-2022-clojure.point :as p])) (defn create-rope [n] (vec (repeat n p/origin))) (defn parse-line [line] (let [[dir amt] (str/split line #" ")] (repeat (parse-long amt) ({"L" p/left "R" p/right "U" p/up "D" p/down} di...
null
https://raw.githubusercontent.com/abyala/advent-2022-clojure/d3a6401279de63f6e2af34098e32ffbb3307e77d/src/advent_2022_clojure/day09.clj
clojure
(ns advent-2022-clojure.day09 (:require [clojure.string :as str] [advent-2022-clojure.point :as p])) (defn create-rope [n] (vec (repeat n p/origin))) (defn parse-line [line] (let [[dir amt] (str/split line #" ")] (repeat (parse-long amt) ({"L" p/left "R" p/right "U" p/up "D" p/down} di...
313c752f8208cd6fefbb4a12f82727360261fec2e5ab1f9e65fd3200dc7aa3cd
ConsumerDataStandardsAustralia/validation-prototype
Payees.hs
{-# LANGUAGE OverloadedStrings #-} module Web.ConsumerData.Au.LambdaBank.Server.Banking.Payees where import Control.Lens import Web.ConsumerData.Au.Api.Types import Servant.API.Generic (ToServant) import Servant.Server.Generic (AsServerT, genericServerT) import Web.ConsumerData.Au.LambdaBank.FakeData ...
null
https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/validation-prototype/ff63338b77339ee49fa3e0be5bb9d7f74e50c28b/consumer-data-au-lambdabank/src/Web/ConsumerData/Au/LambdaBank/Server/Banking/Payees.hs
haskell
# LANGUAGE OverloadedStrings #
module Web.ConsumerData.Au.LambdaBank.Server.Banking.Payees where import Control.Lens import Web.ConsumerData.Au.Api.Types import Servant.API.Generic (ToServant) import Servant.Server.Generic (AsServerT, genericServerT) import Web.ConsumerData.Au.LambdaBank.FakeData (fakePaginator) import Web.Consu...
c74fa78d822deea4663f44d1edc71fd787e598cf9af58abc81f2e84f91256ae9
collaborativetrust/WikiTrust
combinestatsfiles.ml
Copyright ( c ) 2007 - 2008 The Regents of the University of California Copyright ( c ) 2010 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 o...
null
https://raw.githubusercontent.com/collaborativetrust/WikiTrust/9dd056e65c37a22f67d600dd1e87753aa0ec9e2c/analysis/combinestatsfiles.ml
ocaml
There is Arg.Set but no Arg.Reset, hence this kludge Hash table where lines are stored Create a temporary working directory tree Gets the list of files to bucketize Waits a bit before reading from the pipe Now writes the hashtable This function is iterated on the hash table The key of the hashtable is th...
Copyright ( c ) 2007 - 2008 The Regents of the University of California Copyright ( c ) 2010 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 o...
9e22a16c2fd4125c37ce344aea3c3b055027008a3fc254e90fdf7a48bf066f3b
imteekay/functional-programming-learning-path
hello-world-test.clj
(ns hello-world-test (:require [clojure.test :refer [deftest is]] hello-world)) (deftest hello-world-test (is (= "Hello, World!" (hello-world/hello))))
null
https://raw.githubusercontent.com/imteekay/functional-programming-learning-path/07dac09c9fabfa54f8b4d80b62f43b092cb87b0d/programming_challenges/exercism/clojure/hello-world/test/hello-world-test.clj
clojure
(ns hello-world-test (:require [clojure.test :refer [deftest is]] hello-world)) (deftest hello-world-test (is (= "Hello, World!" (hello-world/hello))))
a024673c2bc8d92ac6cdad2c66e53fe1cc7739af04b0ec374f94ef39668183cc
ygmpkk/house
Console.hs
module Kernel.Types.Console where import H.Concurrency(Chan,MVar) import Data.Word ( Word8 ) type VideoAttributes = Word8 type Row = Int type Col = Int data ConsoleCommand = NewLine | CarriageReturn | ClearEOL | PutChar VideoAttributes Char | MoveCursorBackward Int | ClearScreen data Consol...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/kernel/Kernel/Types/Console.hs
haskell
module Kernel.Types.Console where import H.Concurrency(Chan,MVar) import Data.Word ( Word8 ) type VideoAttributes = Word8 type Row = Int type Col = Int data ConsoleCommand = NewLine | CarriageReturn | ClearEOL | PutChar VideoAttributes Char | MoveCursorBackward Int | ClearScreen data Consol...
87805b2aaba432bc3187508ad028ff9bd5e755b4cfa401bd324f610547872d94
nablaa/hchesslib
HLint.hs
module Main (main) where import Language.Haskell.HLint (hlint) import System.Exit (exitFailure, exitSuccess) arguments :: [String] arguments = [ "src" , "test" ] main :: IO () main = do hints <- hlint arguments if null hints then exitSuccess else exitFailure
null
https://raw.githubusercontent.com/nablaa/hchesslib/f69dab2f1ea12c24f30bbfc5155ac4c08549a91b/test/HLint.hs
haskell
module Main (main) where import Language.Haskell.HLint (hlint) import System.Exit (exitFailure, exitSuccess) arguments :: [String] arguments = [ "src" , "test" ] main :: IO () main = do hints <- hlint arguments if null hints then exitSuccess else exitFailure
8f525cf286fc6b6172feef8deb2d456acc85f0d7472139448fa070fe00ba4301
NetASM/NetASM-haskell
Code.hs
--------------------------------------------------------------------------------- -- -- -- -- File: -- Hub/Code.hs -- -- Project: : A Network Assembly for Orchestrating Programmable Network Devices -- -- Author: -- -- Copyright notice: Copyright ( C ) 2014 Georgia Institute of...
null
https://raw.githubusercontent.com/NetASM/NetASM-haskell/08e102691e4f343148b6cc270d89bbf0b97cac96/Apps/Hub/Code.hs
haskell
------------------------------------------------------------------------------- File: Hub/Code.hs Project: Author: Copyright notice: Licence: This file is free code: you can redistribute it and/or modify it under This package is distributed in the hope that it will be useful...
: A Network Assembly for Orchestrating Programmable Network Devices Copyright ( C ) 2014 Georgia Institute of Technology Network Operations and Internet Security Lab This file is a part of the development base package . the terms of the GNU Lesser General Pub...
7fa7ab1e4bb08afc8da32a2f27355c8c453ed3c8fda7dd72229bc38075dc2ebe
mbutterick/brag
test-01-equal.rkt
#lang racket/base (require brag/examples/01-equal rackunit) (check-equal? (syntax->datum (parse "")) '(equal)) (check-equal? (syntax->datum (parse "01")) '(equal (zero (equal) "0") (one (equal) "1"))) (check-equal? (syntax->datum (parse "10")) '...
null
https://raw.githubusercontent.com/mbutterick/brag/6c161ae31df9b4ae7f55a14f754c0b216b60c9a6/brag-lib/brag/test/test-01-equal.rkt
racket
#lang racket/base (require brag/examples/01-equal rackunit) (check-equal? (syntax->datum (parse "")) '(equal)) (check-equal? (syntax->datum (parse "01")) '(equal (zero (equal) "0") (one (equal) "1"))) (check-equal? (syntax->datum (parse "10")) '...
4e9b2010e35fc3bc7006ad1db49269f4be493ad140068d783e2df1de18a85a3d
bn-d/ppx_make
test_make_variant.ml
open Variant_types let tuple_basic _ = OUnit2.assert_equal (T_baisc 32) (make_t_baisc_of_tuple_v ~v0:32 ()) let tuple_option _ = OUnit2.assert_equal (T_option None) (make_t_option_of_tuple_v ()); OUnit2.assert_equal (T_option (Some 2718)) (make_t_option_of_tuple_v ~v0:2718 ()) let tuple_complex_1 _ = OUn...
null
https://raw.githubusercontent.com/bn-d/ppx_make/19057d86b603230fd5e211564f3911ccf2305ab5/test/test_make_variant.ml
ocaml
open Variant_types let tuple_basic _ = OUnit2.assert_equal (T_baisc 32) (make_t_baisc_of_tuple_v ~v0:32 ()) let tuple_option _ = OUnit2.assert_equal (T_option None) (make_t_option_of_tuple_v ()); OUnit2.assert_equal (T_option (Some 2718)) (make_t_option_of_tuple_v ~v0:2718 ()) let tuple_complex_1 _ = OUn...
8df5a22afaf1727ca2f0c8508867cb2c3959eb26a42db7703b30748d490948c1
ijvcms/chuanqi_dev
scene_mgr_lib.erl
%%%------------------------------------------------------------------- @author zhengsiying ( C ) 2015 , < COMPANY > %%% @doc %%% 场景管理模块 %%% @end Created : 27 . 七月 2015 上午10:57 %%%------------------------------------------------------------------- -module(scene_mgr_lib). -include("common.hrl"). -include("record...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/business/scene/scene_mgr_lib.erl
erlang
------------------------------------------------------------------- @doc 场景管理模块 @end ------------------------------------------------------------------- API callbacks ==================================================================== API functions =============================================================...
@author zhengsiying ( C ) 2015 , < COMPANY > Created : 27 . 七月 2015 上午10:57 -module(scene_mgr_lib). -include("common.hrl"). -include("record.hrl"). -include("config.hrl"). -include("cache.hrl"). -include("proto.hrl"). -include("language_config.hrl"). -include("log_type_config.hrl"). -define(SERVER, scene_mgr_m...
ac81e16d14415c5b93bd434f2142dfa713d18cbd88f0bd9b35e9fb8e2a71dadf
dorchard/effect-monad
WriteOnceWriter.hs
# LANGUAGE RebindableSyntax , NoMonomorphismRestriction # import Prelude hiding (Monad(..)) import Control.Effect import Control.Effect.WriteOnceWriter foo = do put 42 put "hello" return ()
null
https://raw.githubusercontent.com/dorchard/effect-monad/5750ef8438f750e528002a0a4e255514cbf3150a/examples/WriteOnceWriter.hs
haskell
# LANGUAGE RebindableSyntax , NoMonomorphismRestriction # import Prelude hiding (Monad(..)) import Control.Effect import Control.Effect.WriteOnceWriter foo = do put 42 put "hello" return ()
b5bb55a13a026acbb05b62c28cc4bcc0a1c6f21089ea79c17534100678fd96ca
helium/blockchain-core
blockchain_poc_path.erl
%%%------------------------------------------------------------------- %% @doc %% == Blockchain PoC Path == %% @end %%%------------------------------------------------------------------- -module(blockchain_poc_path). -include("blockchain_vars.hrl"). -include("blockchain_caps.hrl"). -export([ build/5, ...
null
https://raw.githubusercontent.com/helium/blockchain-core/0caf2295d0576c0ef803258e834bf6ec3b3e74bc/src/poc/blockchain_poc_path.erl
erlang
------------------------------------------------------------------- @doc == Blockchain PoC Path == @end ------------------------------------------------------------------- exported for debug purposes Scale 3.57 Scale: unknown -------------------------------------------------------------------- @doc @end ...
-module(blockchain_poc_path). -include("blockchain_vars.hrl"). -include("blockchain_caps.hrl"). -export([ build/5, shortest/3, shortest/4, length/3, length/4, build_graph/4, target/3, neighbors/3, entropy/1, check_sync/2, ]). -ifdef(TEST...
0727474014f8f92a85b463b94d932116973d2ee4cedc64a4c8437dfe5e7ea3e9
seantempesta/cljs-react-navigation
externs.clj
(ns externs (:require [cljs.compiler.api :as compiler] [cljs.analyzer.api :as analyzer] [cljs.analyzer :as ana] [clojure.walk :refer [prewalk]] [clojure.pprint :refer [pprint]] [clojure.java.io :as io] [clojure.string :as str] [cljs.e...
null
https://raw.githubusercontent.com/seantempesta/cljs-react-navigation/d8f6f998543608e930de8d565e7b48221ecfbe8a/examples/re-frame/uiexplorer/env/dev/externs.clj
clojure
For example, (ui/Facebook.logInWithReadPermissionsAsync ...args) or ui/Permissions.REMOTE_NOTIFICATIONS, we already know logInWithReadPermissionsAsync is `invoke' op and REMOTE_NOTIFICATIONS is a property, need to dig deeper to the ast TODO ana/analyze is slow pprint indents output nicely rewrite each node of th...
(ns externs (:require [cljs.compiler.api :as compiler] [cljs.analyzer.api :as analyzer] [cljs.analyzer :as ana] [clojure.walk :refer [prewalk]] [clojure.pprint :refer [pprint]] [clojure.java.io :as io] [clojure.string :as str] [cljs.e...
e91cb6ef1ff94fdc25053b140dac0e900f4c881149637d2d40f4b7881d21e042
input-output-hk/plutus
Scoped.hs
module Scoped where import PlutusCore data ScKind = ScKiStar | ScKiFun ScKind ScKind deriving Show data ScType = ScTyVar Integer | ScTyFun ScType ScType | ScTyPi ScKind ScType | ScTyLambda ScKind ScType | ScTyApp ScType ScType | ScTyCon (...
null
https://raw.githubusercontent.com/input-output-hk/plutus/1f31e640e8a258185db01fa899da63f9018c0e85/plutus-metatheory/src/Scoped.hs
haskell
module Scoped where import PlutusCore data ScKind = ScKiStar | ScKiFun ScKind ScKind deriving Show data ScType = ScTyVar Integer | ScTyFun ScType ScType | ScTyPi ScKind ScType | ScTyLambda ScKind ScType | ScTyApp ScType ScType | ScTyCon (...
71ef83918f8f3fab89b27b8feb791c76d184272e34975474fa33d17923124382
emqx/emqx
emqx_gateway_http.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2021 - 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/dbc10c2eed3df314586c7b9ac6292083204f1f68/apps/emqx_gateway/src/emqx_gateway_http.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 ) 2021 - 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_gateway_http). -include("include/emqx_gateway.hrl"). -include_lib("emqx/include/lo...
b0e81bf3340bfe34005ca89fe7e478750d6d9e8bbd7e911829b87358ab1a9ea3
iburzynski/EMURGO_71
Reader.hs
# LANGUAGE InstanceSigs # {-# OPTIONS_GHC -Wno-unrecognised-pragmas #-} {-# HLINT ignore "Use const" #-} {-# HLINT ignore "Avoid lambda" #-} # HLINT ignore " Use i d " # import Data.Char ( toUpper ) * * * Part 2 - the Reader Monad : simulating a read - only global variable ( constant ) * * * -- Reference: -07-19-der...
null
https://raw.githubusercontent.com/iburzynski/EMURGO_71/b273f43967efd8d81d6f02695e7ccf37686b15c0/Monads/Reader.hs
haskell
# OPTIONS_GHC -Wno-unrecognised-pragmas # # HLINT ignore "Use const" # # HLINT ignore "Avoid lambda" # Reference: -07-19-deriving-reader-monad.html We want our program to have some kind of global runtime config: * i.e. using different database connection strings depending on deployment environment Example: for som...
# LANGUAGE InstanceSigs # # HLINT ignore " Use i d " # import Data.Char ( toUpper ) * * * Part 2 - the Reader Monad : simulating a read - only global variable ( constant ) * * * We could use the State monad , but would prefer the config be read - only ( set once at runtime ) We define ABConfig as a product typ...
e344b5a689fc5c405275da072c32afc5347920d297fe508efc99e72a938e1e44
cognesence/matcher
project.clj
(defproject org.clojars.cognesence/matcher "1.0.1" :description "A fully-featured symbolic pattern matcher for Clojure." :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]])
null
https://raw.githubusercontent.com/cognesence/matcher/a2e303d7b8803ef8bbe5b4296d6c8269194486b5/project.clj
clojure
(defproject org.clojars.cognesence/matcher "1.0.1" :description "A fully-featured symbolic pattern matcher for Clojure." :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]])
14da6c860ab851ed39fcf1a93bf239809b90c663ee9151781ab95cc4358c785e
craigl64/clim-ccl
db-list.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Package : SILICA ; Base : 10 ; Lowercase : Yes -*- "Copyright (c) 1992 by Symbolics, Inc. All rights reserved." (in-package :silica) ;yes, this file is in the Silica package ;;; List panes and option panes ;; We use "simple" toggle buttons inside of list and op...
null
https://raw.githubusercontent.com/craigl64/clim-ccl/301efbd770745b429f2b00b4e8ca6624de9d9ea9/homegrown/db-list.lisp
lisp
Syntax : ANSI - Common - Lisp ; Package : SILICA ; Base : 10 ; Lowercase : Yes -*- yes, this file is in the Silica package List panes and option panes We use "simple" toggle buttons inside of list and option panes Draw the text, invert the whole button when it's armed. Add a check mark when the button is toggled ...
"Copyright (c) 1992 by Symbolics, Inc. All rights reserved." (defclass simple-toggle-button-pane (toggle-button button-pane-mixin) () (:default-initargs :label nil :text-style *default-button-label-text-style* :show-as-default nil)) (defparameter *check-mark-pattern* (make-pattern #2...
09a327c1f7c91da5784ec7a0803ed3baa03f9f756914c2af6f335b192f570321
ocaml-multicore/kcas
barrier.mli
type t val make : int -> t val await : t -> unit
null
https://raw.githubusercontent.com/ocaml-multicore/kcas/4d8179858c5449e0f4c0309bad547b344d69d3e4/test/barrier.mli
ocaml
type t val make : int -> t val await : t -> unit
df4b96cfee48eb70d8ff3b4ab692f466e009f30fcc24f6217b9da193ad8e9697
tali713/mit-scheme
comcon.scm
;;; This alternative version of `combination/constant!' attempts to ;;; keep the data structures more consistent. It doesn't seem to be ;;; needed yet. (define (combination/constant! combination rvalue) (let ((continuation (combination/continuation combination))) (for-each (lambda (continuation) (set-continua...
null
https://raw.githubusercontent.com/tali713/mit-scheme/6c703a838081fe2418bc0dbfe003bdb429d8c479/src/compiler/improvements/comcon.scm
scheme
This alternative version of `combination/constant!' attempts to keep the data structures more consistent. It doesn't seem to be needed yet. This should probably be accomplished by a codewalk, but for current purposes it's adequate.
(define (combination/constant! combination rvalue) (let ((continuation (combination/continuation combination))) (for-each (lambda (continuation) (set-continuation/combinations! continuation (delq! combination (continuation/combinations continuation))) (set-continuation/returns! continuation (cons...