_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 |
|---|---|---|---|---|---|---|---|---|
fdd49118ca6c968c68ec387bcfdcaafcffcd63ffeee120b13670636937bccd74 | basho/riak_ensemble | synctree_ets.erl | %% -------------------------------------------------------------------
%%
Copyright ( c ) 2014 Basho Technologies , Inc. All Rights Reserved .
%%
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 ob... | null | https://raw.githubusercontent.com/basho/riak_ensemble/66e6c41491cbf1a4b5d967a30c504111d87f8147/src/synctree_ets.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. All Rights Reserved .
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
-module(... |
b54ee3ac762e0b263d18bf48cadbd4a933cae74be265408076b85135f308d354 | dongcarl/guix | android-repo.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 2014 , 2016 , 2019 < >
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 Free Software F... | null | https://raw.githubusercontent.com/dongcarl/guix/82543e9649da2da9a5285ede4ec4f718fd740fcb/guix/build/android-repo.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 © 2014 , 2016 , 2019 < >
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 (guix build android-repo)
#:use-module (guix build utils)... |
90051726749d1afcecb947dcf5d6f99a50c9436989089056fa121141801de03f | let-def/lwd | lwd.mli | type +'a t
* A dynamic document of type [ ' a ] . Documents can be produced in several
different ways :
- operators , such as { ! map } , { ! bind } , { ! app } , { ! pair } , etc .
combine several documents into one . The result is ( lazily )
updated whenever the sub - documents are .
... | null | https://raw.githubusercontent.com/let-def/lwd/adebdfa2c31c7884d352efe821ff38b85e7aa8f9/lib/lwd/lwd.mli | ocaml | * The content document with the given value inside
* [map d ~f] is the document that has value [f x] whenever [d] has value [x]
* [map2 d1 d2 ~f] is the document that has value [f x1 x2] whenever
[d1] has value [x1] and [d2] has value [x2]
* Applicative: [app df dx] is the document that has value [f x]
whene... | type +'a t
* A dynamic document of type [ ' a ] . Documents can be produced in several
different ways :
- operators , such as { ! map } , { ! bind } , { ! app } , { ! pair } , etc .
combine several documents into one . The result is ( lazily )
updated whenever the sub - documents are .
... |
24b10d59cc06d32a34a1c4e12d51a5626baa03571c5c8f4af645e4567dc1d257 | psibi/fb | Action.hs | {-# LANGUAGE DeriveDataTypeable #-}
# LANGUAGE FlexibleContexts #
{-# LANGUAGE OverloadedStrings #-}
module Facebook.Object.Action
( createAction
, Action(..)
) where
import Control.Arrow (first)
import Control.Monad.IO.Class
import Data.Function (on)
import Data.String (IsString(..))
import Data.Text (Text)
i... | null | https://raw.githubusercontent.com/psibi/fb/773e125ab4c04045cb8db8f7d0e2ad94bdc266b2/src/Facebook/Object/Action.hs | haskell | # LANGUAGE DeriveDataTypeable #
# LANGUAGE OverloadedStrings #
| Creates an Open Graph action on the user's timeline. Returns
the 'Id' of the newly created action. For example:
> now <- liftIO getCurrentTime
> createAction "cook"
> , "when" #= now ]
> token
^ Action kind to be creat... | # LANGUAGE FlexibleContexts #
module Facebook.Object.Action
( createAction
, Action(..)
) where
import Control.Arrow (first)
import Control.Monad.IO.Class
import Data.Function (on)
import Data.String (IsString(..))
import Data.Text (Text)
import qualified Control.Monad.Trans.Resource as R
import Facebook.Type... |
46ca2d8e2137cc6c4d276838181f9312a1f13d8e481c7a2fc25194adc9945e5b | facebook/infer | DoliToTextual.ml |
* Copyright ( c ) Facebook , Inc. and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
... | null | https://raw.githubusercontent.com/facebook/infer/72a95e3a525e36b39a208ec5f7e4555d482f9612/infer/src/textual/DoliToTextual.ml | ocaml | warning: it will assign the global [global_doli_matcher]
tests whether [ir_procname] is matched by [match_] |
* 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
... |
943f05e0467728f6f33c8d2bc9ae67c89c5d3ca6ff4a5ee53594811c0ffc5f2e | grin-compiler/ghc-wpc-sample-programs | Parsing.hs | |
Module : Text . Pandoc . Readers . Org . Parsing
Copyright : Copyright ( C ) 2014 - 2020 License : GNU GPL , version 2 or above
Maintainer : - mode parsing utilities .
Most functions are simply re - exports from @Text . Pandoc . Parsing@ , some
functions are adapted to... | null | https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/pandoc-11df2a3c0f2b1b8e351ad8caaa7cdf583e1b3b2e/src/Text/Pandoc/Readers/Org/Parsing.hs | haskell | | The parser used to read org files.
Adaptions and specializations of parsing utilities
| Parse any line of text
allowed before emphasised text.
| Succeeds when we're in list context.
| Parse in different context
^ New parser context
| Get an export setting.
| Set the current position as the last position ... | |
Module : Text . Pandoc . Readers . Org . Parsing
Copyright : Copyright ( C ) 2014 - 2020 License : GNU GPL , version 2 or above
Maintainer : - mode parsing utilities .
Most functions are simply re - exports from @Text . Pandoc . Parsing@ , some
functions are adapted to... |
a13bfc2ed2e3f7d725c560f8cd4c982dc1a0564cbbfa974a7ba0c160ddbaba68 | hyperfiddle/electric | missionary_dag_supervision.clj | (ns dustin.y2022.missionary-dag-supervision
(:require [hyperfiddle.photon :as p]
[hyperfiddle.rcf :as rcf :refer [tests ! % with]]
[missionary.core :as m]))
(hyperfiddle.rcf/enable!)
(comment
(def i (m/sleep 1000 42))
'(- (inc i) (dec i))
(def x (m/sleep 1000 6))
(def y (m/sleep 100... | null | https://raw.githubusercontent.com/hyperfiddle/electric/1c6c3891cbf13123fef8d33e6555d300f0dac134/scratch/dustin/y2022/m/missionary_dag_supervision.clj | clojure | allocate buffer, don't eval
this version has supervised F but no sharing
Broken supervision tree
we broke the tree; the tree stops at >b
Problem:
the cancel signal stops at > b and oprhans
we cancel the future's await but not the future's process (task)
here task is orphaned from supervision tree
cancel must b... | (ns dustin.y2022.missionary-dag-supervision
(:require [hyperfiddle.photon :as p]
[hyperfiddle.rcf :as rcf :refer [tests ! % with]]
[missionary.core :as m]))
(hyperfiddle.rcf/enable!)
(comment
(def i (m/sleep 1000 42))
'(- (inc i) (dec i))
(def x (m/sleep 1000 6))
(def y (m/sleep 100... |
3532cd50c94107a82b900cbc447b5b350a4c64827719885965481a1201b0561b | cram2/cram | euclidean-norm.lisp | Regression test EUCLIDEAN - NORM for GSLL , automatically generated
;;
Copyright 2009 , 2010 , 2011
Distributed under the terms of the GNU General Public License
;;
;; 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
t... | null | https://raw.githubusercontent.com/cram2/cram/dcb73031ee944d04215bbff9e98b9e8c210ef6c5/cram_3rdparty/gsll/src/tests/euclidean-norm.lisp | lisp |
This program is free software: you can redistribute it and/or modify
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Publi... | Regression test EUCLIDEAN - NORM for GSLL , automatically generated
Copyright 2009 , 2010 , 2011
Distributed under the terms of the GNU General Public License
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
You shoul... |
2ec06fe65b69e72e2e4e73232dbc204b22c6dbe0244cb3ab41666b7f7716b620 | quicklisp/quicklisp-client | bundle.lisp | bundle.lisp
(in-package #:ql-bundle)
Bundling is taking a set of Quicklisp - provided systems and
;;; creating a directory structure and metadata in which those systems
can be loaded without involving Quicklisp .
;;;
This works for systems provided directly Quicklisp , or systems in
the Quicklisp local - pr... | null | https://raw.githubusercontent.com/quicklisp/quicklisp-client/9691f04d309960bf50fe64b96f94efcdbeb575cf/quicklisp/bundle.lisp | lisp | creating a directory structure and metadata in which those systems
:include-local-projects is specified).
Implementation
Conditions
Working with strings, here, intentionally not with pathnames
So, explicitly provide the type here to avoid that problem. (I'm not
sure what would happen if I were to change that be... | bundle.lisp
(in-package #:ql-bundle)
Bundling is taking a set of Quicklisp - provided systems and
can be loaded without involving Quicklisp .
This works for systems provided directly Quicklisp , or systems in
the Quicklisp local - projects directories ( if
(defgeneric find-system (system bundle))
(defgener... |
e6e4550f28620d283af5735adc5304a6dbc81a6ee97f7e15b21026354ad4ba34 | mflatt/shrubbery-rhombus-0 | manual.rkt | #lang racket/base
(require (except-in scribble/rhombus
if)
(prefix-in manual: scribble/manual)
"../private/doc.rhm"
"../private/docmodule.rhm"
"../private/example.rhm"
(only-in "../private/typeset-doc.rkt"
grammar)
"../private/r... | null | https://raw.githubusercontent.com/mflatt/shrubbery-rhombus-0/b6ee40b64b19623d5a8c1ee735378761fd25110a/scribble/rhombus/manual.rkt | racket | #lang racket/base
(require (except-in scribble/rhombus
if)
(prefix-in manual: scribble/manual)
"../private/doc.rhm"
"../private/docmodule.rhm"
"../private/example.rhm"
(only-in "../private/typeset-doc.rkt"
grammar)
"../private/r... | |
6b01150d51284e8367b8ab7d91383139c268e36df6dd20f76161a1746acc11f3 | simonmichael/hledger | AsciiWide.hs | | Text . Tabular . from tabular-0.2.2.7 , modified to treat
-- wide characters as double width.
{-# LANGUAGE OverloadedStrings #-}
module Text.Tabular.AsciiWide
( module Text.Tabular
, TableOpts(..)
, render
, renderTable
, renderTableB
, renderTableByRowsB
, renderRow
, renderRowB
, renderColumns
, Cell(..)
, A... | null | https://raw.githubusercontent.com/simonmichael/hledger/b46cb8a7f77df569373d0b2b12bba5e97eff76c7/hledger-lib/Text/Tabular/AsciiWide.hs | haskell | wide characters as double width.
# LANGUAGE OverloadedStrings #
| The options to use for rendering a table.
^ Pretty tables
^ Whether to display the outer borders
^ Whether to display spaces around bars
| Cell contents along an alignment
| How to align text in a cell
| Create a single-line cell from the given c... | | Text . Tabular . from tabular-0.2.2.7 , modified to treat
module Text.Tabular.AsciiWide
( module Text.Tabular
, TableOpts(..)
, render
, renderTable
, renderTableB
, renderTableByRowsB
, renderRow
, renderRowB
, renderColumns
, Cell(..)
, Align(..)
, emptyCell
, textCell
, textsCell
, cellWidth
, concatTables
... |
011ce7f1d5f2a9d68cb6e1f904690715cb26e22f958eb2bc4737d76c555ef178 | haskell-opengl/OpenGLRaw | HalfFloatVertex.hs | # LANGUAGE PatternSynonyms #
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.GL.ARB.HalfFloatVertex
Copyright : ( c ) 2019
-- License : BSD3
--
Maintainer : < >
-- Stability : stable
-- Portability : portable
--
----------------... | null | https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/ARB/HalfFloatVertex.hs | haskell | ------------------------------------------------------------------------------
|
Module : Graphics.GL.ARB.HalfFloatVertex
License : BSD3
Stability : stable
Portability : portable
------------------------------------------------------------------------------
* Extension Support
* Types
* Enums | # LANGUAGE PatternSynonyms #
Copyright : ( c ) 2019
Maintainer : < >
module Graphics.GL.ARB.HalfFloatVertex (
glGetARBHalfFloatVertex,
gl_ARB_half_float_vertex,
GLhalf,
pattern GL_HALF_FLOAT
) where
import Graphics.GL.ExtensionPredicates
import Graphics.GL.Types
import Graphics.GL.Tokens
|
76613bfed7977bcbc30097048d37975b97167e11fbf3859cbcd302070f49b6b1 | clojurecup2014/parade-route | example.clj | (ns clojure.test-clojure.repl.example)
;; sample namespace for repl tests, don't add anything here
(defn foo [])
(defn bar [])
| null | https://raw.githubusercontent.com/clojurecup2014/parade-route/adb2e1ea202228e3da07902849dee08f0bb8d81c/Assets/Clojure/Internal/Plugins/clojure/test_clojure/repl/example.clj | clojure | sample namespace for repl tests, don't add anything here | (ns clojure.test-clojure.repl.example)
(defn foo [])
(defn bar [])
|
68119c631188d6b3daa2d727f9aa034e4878d1c920908efcb5abc3f38eda0490 | ocaml-omake/omake | lm_set_sig.ml |
module type OrderedType =
sig
type t
val compare : t -> t -> int
end
(*
* Ordered type need for debugging.
*)
module type OrderedTypeDebug =
sig
type t
val print : t Lm_printf.t
val compare : t -> t -> int
end
(*
* Our version.
*)
module type LmSet =
sig
type elt
type t
val empty : t
val... | null | https://raw.githubusercontent.com/ocaml-omake/omake/08b2a83fb558f6eb6847566cbe1a562230da2b14/src/libmojave/lm_set_sig.ml | ocaml |
* Ordered type need for debugging.
* Our version.
* compared with standard set, missing [split] |
module type OrderedType =
sig
type t
val compare : t -> t -> int
end
module type OrderedTypeDebug =
sig
type t
val print : t Lm_printf.t
val compare : t -> t -> int
end
module type LmSet =
sig
type elt
type t
val empty : t
val is_empty : t -> bool
val mem : t -> elt -> bool
val add : t... |
d216e6a6c59bacdde7f3823187cb946dc44c1fe1dc13d1e3f8eb861e6e792c57 | nuvla/ui | intercom.cljs | (ns sixsq.nuvla.ui.utils.intercom
(:require ["react-intercom" :as react-intercom]
[reagent.core :as reagent]))
(def intercom-api react-intercom/IntercomAPI)
(def Intercom (reagent/adapt-react-class react-intercom/default))
| null | https://raw.githubusercontent.com/nuvla/ui/c10704eabd339489722fa53bc99f11f21103c070/code/src/cljs/sixsq/nuvla/ui/utils/intercom.cljs | clojure | (ns sixsq.nuvla.ui.utils.intercom
(:require ["react-intercom" :as react-intercom]
[reagent.core :as reagent]))
(def intercom-api react-intercom/IntercomAPI)
(def Intercom (reagent/adapt-react-class react-intercom/default))
| |
7759ebfa1544c31088f6cc08999a3d9725811f8dddae6d8ee748a5172c0678f2 | tsloughter/kuberl | kuberl_v1_event.erl | -module(kuberl_v1_event).
-export([encode/1]).
-export_type([kuberl_v1_event/0]).
-type kuberl_v1_event() ::
#{ 'action' => binary(),
'apiVersion' => binary(),
'count' => integer(),
'eventTime' => kuberl_date_time:kuberl_date_time(),
'firstTimestamp' => kuberl_date_time:kuberl_date_ti... | null | https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1_event.erl | erlang | -module(kuberl_v1_event).
-export([encode/1]).
-export_type([kuberl_v1_event/0]).
-type kuberl_v1_event() ::
#{ 'action' => binary(),
'apiVersion' => binary(),
'count' => integer(),
'eventTime' => kuberl_date_time:kuberl_date_time(),
'firstTimestamp' => kuberl_date_time:kuberl_date_ti... | |
a798076bef5b5f7f9ae5512cdfa12b155d516bffd8b8034b2d3a4098640c22e9 | reanimate/reanimate | demo_tangent.hs | #!/usr/bin/env stack
-- stack runghc --package reanimate
{-# LANGUAGE OverloadedStrings #-}
module Main(main) where
import Control.Lens ((^.))
import Control.Monad.State
import qualified Data.Vector.Unboxed as V
import Graphics.SvgTree
import Linea... | null | https://raw.githubusercontent.com/reanimate/reanimate/5ea023980ff7f488934d40593cc5069f5fd038b0/examples/demo_tangent.hs | haskell | stack runghc --package reanimate
# LANGUAGE OverloadedStrings # | #!/usr/bin/env stack
module Main(main) where
import Control.Lens ((^.))
import Control.Monad.State
import qualified Data.Vector.Unboxed as V
import Graphics.SvgTree
import Linear.Metric
import Linear.V2 (V2 (..))
imp... |
053105b6b0a38d4026a715f3d03f3db5e50fcb7ad795bd7d2e8491894fc97aca | xvw/planet | string_test.ml | open Bedrock
open Alcotest
open Test_tools
module Start_with = struct
let suite =
[ "with two empty strings", true, "", ""
; "with empty suffix", true, "foo", ""
; "with valid suffix 1", true, "foobar", "fo"
; "with valid suffix 2", true, "foobar", "foo"
; "with two equals strings", true, "foobar... | null | https://raw.githubusercontent.com/xvw/planet/c2a77ea66f61cc76df78b9c2ad06d114795f3053/test/bedrock_test/string_test.ml | ocaml | open Bedrock
open Alcotest
open Test_tools
module Start_with = struct
let suite =
[ "with two empty strings", true, "", ""
; "with empty suffix", true, "foo", ""
; "with valid suffix 1", true, "foobar", "fo"
; "with valid suffix 2", true, "foobar", "foo"
; "with two equals strings", true, "foobar... | |
d11152321e1f211045827a1436788b57790eac7345debadb853ef8be91c6c2f4 | Erlang-Openid/oidcc | conformance_sup.erl | -module(conformance_sup).
-behaviour(supervisor).
-export([start_link/0]).
-export([init/1]).
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
init([]) ->
Procs = [],
{ok, {{one_for_one, 1, 5}, Procs}}.
| null | https://raw.githubusercontent.com/Erlang-Openid/oidcc/afa7786033ca7161dd3c599e72c2df81ed1aad59/conformance/src/conformance_sup.erl | erlang | -module(conformance_sup).
-behaviour(supervisor).
-export([start_link/0]).
-export([init/1]).
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
init([]) ->
Procs = [],
{ok, {{one_for_one, 1, 5}, Procs}}.
| |
5804dbbee0db5b557e22deb4731ba6423d56cbd5c38eada3a335bae4367a50ce | craigfe/sink | bool.ml | open! Import
module B = Stdlib.Bool
type t = bool [@@deriving branded]
let minimum = false
let maximum = true
let all = [ false; true ]
external not : bool -> bool = "%boolnot"
external ( && ) : bool -> bool -> bool = "%sequand"
external ( || ) : bool -> bool -> bool = "%sequor"
external to_int : bool -> int = "%ide... | null | https://raw.githubusercontent.com/craigfe/sink/c5431edfa1b06f1a09845a481c4afcb3e92f0667/src/sink/bool.ml | ocaml | open! Import
module B = Stdlib.Bool
type t = bool [@@deriving branded]
let minimum = false
let maximum = true
let all = [ false; true ]
external not : bool -> bool = "%boolnot"
external ( && ) : bool -> bool -> bool = "%sequand"
external ( || ) : bool -> bool -> bool = "%sequor"
external to_int : bool -> int = "%ide... | |
ed08f97e3aad29c4ec78908c158c6c8a521ca5ddab02f0a349f1f7856ed1aff9 | jrh13/hol-light | main_thms.ml | let empty_mat = prove_by_refinement(
`interpmat [] [] [[]]`,
(* {{{ Proof *)
[
REWRITE_TAC[interpmat;ROL_EMPTY;interpsigns;ALL2;partition_line];
]);;
(* }}} *)
let empty_sgns = [ARITH_RULE `&1 > &0`];;
let monic_isign_lem = prove(
`(!s c mp p. (!x. c * p x = mp x) ==> c > &0 ==> interpsign s mp Pos ==> inter... | null | https://raw.githubusercontent.com/jrh13/hol-light/ea44a4cacd238d7fa5a397f043f3e3321eb66543/Rqe/main_thms.ml | ocaml | {{{ Proof
}}}
{{{ Proof
}}}
{{{ Proof
}}}
{{{ Proof
}}}
{{{ Proof
}}}
{{{ Proof
}}}
{{{ Proof
}}}
{{{ Proof
}}}
{{{ Proof
}}}
{{{ Proof
}}}
{{{ Proof
}}}
{{{ Proof
}}}
{{{ Proof
}}}
{{{ Proof
}}}
{{{ Proof
}}}
{{{ Proof
}}} | let empty_mat = prove_by_refinement(
`interpmat [] [] [[]]`,
[
REWRITE_TAC[interpmat;ROL_EMPTY;interpsigns;ALL2;partition_line];
]);;
let empty_sgns = [ARITH_RULE `&1 > &0`];;
let monic_isign_lem = prove(
`(!s c mp p. (!x. c * p x = mp x) ==> c > &0 ==> interpsign s mp Pos ==> interpsign s p Pos) /\
(!s c... |
d5b27d1a322e82179d53a826163d80fb5e1253071b05d880308dbebd04d55441 | NalaGinrut/artanis | server-context.scm | -*- indent - tabs - mode : nil ; coding : utf-8 -*-
;; Copyright (C) 2016,2017,2018
" Mu Lei " known as " NalaGinrut " < >
Artanis is free software : you can redistribute it and/or modify
it under the terms of the GNU General Public License and GNU
Lesser General Public License published by the F... | null | https://raw.githubusercontent.com/NalaGinrut/artanis/3412d6eb5b46fde71b0965598ba085bacc2a6c12/artanis/server/server-context.scm | scheme | coding : utf-8 -*-
Copyright (C) 2016,2017,2018
any later version.
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License and GNU Lesser General Public License
for more details.
and GNU Lesser General Public ... | " Mu Lei " known as " NalaGinrut " < >
Artanis is free software : you can redistribute it and/or modify
it under the terms of the GNU General Public License and GNU
Lesser General Public License published by the Free Software
Foundation , either version 3 of the License , or ( at your option )
A... |
78df9e9a8985afd9d85dc8794f1e4145b713ad1cd6dae772baf9ea4ed86b2245 | mmontone/gestalt | dom.lisp | (in-package :gst.view.dom)
(defclass dom-xml-node ()
((node-id :accessor node-id
:documentation "The node's id")
(appended-p :accessor appended-p
:initform nil
:documentation "t when the node is appended to the base tree")
(node-id-counter :accessor node-id-counter
:initform 1
... | null | https://raw.githubusercontent.com/mmontone/gestalt/fd019c0ca03b4efc73b9ddd3db1e3ed211233428/src/view/dom.lisp | lisp | ----------------------
Operations wrappers
----------------------
------------------------------
------------------------------ | (in-package :gst.view.dom)
(defclass dom-xml-node ()
((node-id :accessor node-id
:documentation "The node's id")
(appended-p :accessor appended-p
:initform nil
:documentation "t when the node is appended to the base tree")
(node-id-counter :accessor node-id-counter
:initform 1
... |
d6d9a74b7e868b28fa7aade931f20089b09dd5e9acca13942e6818f20d416732 | AdaCore/why3 | split_goal.mli | (********************************************************************)
(* *)
The Why3 Verification Platform / The Why3 Development Team
Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University
(* ... | null | https://raw.githubusercontent.com/AdaCore/why3/4441127004d53cf2cb0f722fed4a930ccf040ee4/src/transform/split_goal.mli | ocaml | ******************************************************************
This software is distributed under the terms of the GNU Lesser
on linking described in file LICENSE. ... | The Why3 Verification Platform / The Why3 Development Team
Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University
General Public License version 2.1 , with the special exception
val split_pos_full : ?known_map:Decl.known_map -> Term.term -> Term.term list
val split_neg_full : ?known_... |
57eb76c5a324ff7f77ebfdb87861e8e0b6b62716b0480580e9d30dc5a023f15d | awslabs/s2n-bignum | bignum_amontredc.ml |
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved .
* SPDX - License - Identifier : Apache-2.0 OR ISC
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0 OR ISC
*)
(* =================================================================... | null | https://raw.githubusercontent.com/awslabs/s2n-bignum/824c15f908d7a343af1b2f378cfedd36e880bdde/arm/proofs/bignum_amontredc.ml | ocaml | =========================================================================
Almost-Montgomery reduction of arbitrary bignum.
=========================================================================
*** print_literal_from_elf "arm/generic/bignum_amontredc.o";;
***
arm_MOV X14 XZR
arm_AD... |
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved .
* SPDX - License - Identifier : Apache-2.0 OR ISC
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0 OR ISC
*)
let bignum_amontredc_mc =
define_assert_from_elf "bignum_amontre... |
5c848d40da737345ed0ba2c3b49b62414de346aa18c05f4aff515ddb0578c3c8 | mauricioszabo/duck-repled | editor_resolvers.cljc | (ns duck-repled.editor-resolvers
(:require [clojure.string :as str]
[duck-repled.schemas :as schemas]
[duck-repled.connect :as connect]
[com.wsscode.pathom3.connect.operation :as pco]
[duck-repled.editor-helpers :as editor-helpers]))
(connect/defresolver seed-data [{:k... | null | https://raw.githubusercontent.com/mauricioszabo/duck-repled/1bc24511ba5abf42e4303f647eb91c8873449bd3/src/duck_repled/editor_resolvers.cljc | clojure | (when-let [editor-data (-> env :seed :editor/data)]
(pco/defresolver all-namespaces
[env {:keys [repl/clj]}]
{::pco/output [{:repl/namespaces [:repl/namespace]}]}
(p/let [f (-> (pco/params env) :filter)
{:keys [result]} (eval/eval clj "(clojure.core/mapv clojure.core/ns-name (clojure.core/all-ns)... | (ns duck-repled.editor-resolvers
(:require [clojure.string :as str]
[duck-repled.schemas :as schemas]
[duck-repled.connect :as connect]
[com.wsscode.pathom3.connect.operation :as pco]
[duck-repled.editor-helpers :as editor-helpers]))
(connect/defresolver seed-data [{:k... |
d6fd3304b614db62a95a36aef04e95f9823e7e33c9a15eebc27ef76d4fe9f761 | typelead/intellij-eta | JpsModuleType.hs | module FFI.Org.JetBrains.JPS.Model.Module.JpsModuleType where
import P
-- Start org.jetbrains.jps.model.module.JpsElementChildRoleBase
data JpsModuleType = JpsModuleType @org.jetbrains.jps.model.module.JpsModuleType
deriving Class
End org.jetbrains.jps.model.module . JpsModuleType
| null | https://raw.githubusercontent.com/typelead/intellij-eta/ee66d621aa0bfdf56d7d287279a9a54e89802cf9/plugin/src/main/eta/FFI/Org/JetBrains/JPS/Model/Module/JpsModuleType.hs | haskell | Start org.jetbrains.jps.model.module.JpsElementChildRoleBase | module FFI.Org.JetBrains.JPS.Model.Module.JpsModuleType where
import P
data JpsModuleType = JpsModuleType @org.jetbrains.jps.model.module.JpsModuleType
deriving Class
End org.jetbrains.jps.model.module . JpsModuleType
|
1c87c336a64bf9bace81efa59d83be6d3b0c6bb2d950baf604e4d7c0ccf32029 | eckyputrady/haskell-scotty-realworld-example-app | Article.hs | module Spec.Article (spec) where
import ClassyPrelude
import Test.Hspec
import Feature.Comment.Types
import Feature.User.Types
import Feature.Article.Types
import Feature.Auth.Types
import Feature.Common.Types
import qualified Misc.Client as RW
import Text.StringRandom
import Spec.Common
spec :: Spec
spec = do
art... | null | https://raw.githubusercontent.com/eckyputrady/haskell-scotty-realworld-example-app/366a1eec021fb1bfcbc2d8e0485b59cbedba10e5/test/Spec/Article.hs | haskell | arbitrarily big offset | module Spec.Article (spec) where
import ClassyPrelude
import Test.Hspec
import Feature.Comment.Types
import Feature.User.Types
import Feature.Article.Types
import Feature.Auth.Types
import Feature.Common.Types
import qualified Misc.Client as RW
import Text.StringRandom
import Spec.Common
spec :: Spec
spec = do
art... |
63b9d4697697d33272c5d71178db7bda0f73eac9c1afee45a1ebdff3f23b56d4 | bennn/dissertation | jfif.rkt | #lang typed/racket
;; racket-jpeg
Copyright ( C ) 2014 < wingo at pobox dot com >
;; This library is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 3 of the License , or ( at
;; your option)... | null | https://raw.githubusercontent.com/bennn/dissertation/779bfe6f8fee19092849b7e2cfc476df33e9357b/dissertation/QA/math-test/jpeg/s-d/jfif.rkt | racket | racket-jpeg
This library is free software; you can redistribute it and/or modify
either version 3 of the License , or ( at
your option) any later version.
This library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR... | #lang typed/racket
Copyright ( C ) 2014 < wingo at pobox dot com >
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
Readers and writers for the JPEG File Interchange Format ( JFIF )
(require
"typedefs.rkt"
require-typ... |
6d176655b97e024dfcbbb332c825db75105f4321d23cb263cdaecea90fa110cb | rubenbarroso/EOPL | 3_11.scm | (load "/Users/ruben/Dropbox/EOPL/src/interps/r5rs.scm")
(load "/Users/ruben/Dropbox/EOPL/src/interps/define-datatype.scm")
(load "/Users/ruben/Dropbox/EOPL/src/interps/2-3-2.scm") ;environments
;the data types
(define-datatype program program?
(a-program
(exp expression?)))
(define... | null | https://raw.githubusercontent.com/rubenbarroso/EOPL/f9b3c03c2fcbaddf64694ee3243d54be95bfe31d/src/chapter3/3_11.scm | scheme | environments
the data types
helper
parser
the interpreter
Tests | (load "/Users/ruben/Dropbox/EOPL/src/interps/r5rs.scm")
(load "/Users/ruben/Dropbox/EOPL/src/interps/define-datatype.scm")
(define-datatype program program?
(a-program
(exp expression?)))
(define-datatype expression expression?
(lit-exp
(datum nu... |
853fced18aebbcf2bb562dad26b879eb5a2003db08eb02a5b302f1ab84cc0c72 | srid/emanote.obelisk | Patch.hs | module Data.Conflict.Patch where
import Data.Conflict (Conflict (..), increaseConflict, lowerConflict, resolveConflicts)
import qualified Data.Map as Map
import Reflex (PatchMap (..), fmapMaybe)
import Relude
import Relude.Extra (groupBy)
applyPatch ::
(Ord k, Eq identifier) =>
(identifier -> k) ->
Map identifi... | null | https://raw.githubusercontent.com/srid/emanote.obelisk/de935cff82fc57085adef1904094c7129c02d995/lib/emanote-core/src/Data/Conflict/Patch.hs | haskell | TODO: Write tests spec, and then refactor.
Conflict resolved; return the previous data.
Modification/addition event | module Data.Conflict.Patch where
import Data.Conflict (Conflict (..), increaseConflict, lowerConflict, resolveConflicts)
import qualified Data.Map as Map
import Reflex (PatchMap (..), fmapMaybe)
import Relude
import Relude.Extra (groupBy)
applyPatch ::
(Ord k, Eq identifier) =>
(identifier -> k) ->
Map identifi... |
eb8ab8ba2f0dead97e5106f49b2b1abf807397032957fd925efae26a4aca2dac | keechma/example-todomvc | new_todo.cljs | (ns keechma-todomvc.components.new-todo
"# New Todo component"
(:require [keechma-todomvc.ui :refer [<cmd <comp]]
[keechma-todomvc.util :refer [is-enter?]]
[reagent.core :as reagent]))
(defn form-2-render
"## Renders an input field for a new todo
Stores the pending new `title` inside a... | null | https://raw.githubusercontent.com/keechma/example-todomvc/bbc8bcb1198b2df0edfc6c3e15b11fd4368ee206/src/keechma_todomvc/components/new_todo.cljs | clojure | (ns keechma-todomvc.components.new-todo
"# New Todo component"
(:require [keechma-todomvc.ui :refer [<cmd <comp]]
[keechma-todomvc.util :refer [is-enter?]]
[reagent.core :as reagent]))
(defn form-2-render
"## Renders an input field for a new todo
Stores the pending new `title` inside a... | |
3a697c9271df899bf285ab83c532d8bb829d6f409bab154de5a99ac9a2764094 | futurice/haskell-mega-repo | ContractType.hs | {-# LANGUAGE DataKinds #-}
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE TypeFamilies #
module Personio.Types.ContractType (
ContractType (..),
-- * Prisms
_ContractType,
-- * Conversion functions
contractTypeToText,
contractTypeFromText,
) where
import Futurice.Generics... | null | https://raw.githubusercontent.com/futurice/haskell-mega-repo/2647723f12f5435e2edc373f6738386a9668f603/personio-client/src/Personio/Types/ContractType.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE OverloadedStrings #
* Prisms
* Conversion functions | # LANGUAGE TypeFamilies #
module Personio.Types.ContractType (
ContractType (..),
_ContractType,
contractTypeToText,
contractTypeFromText,
) where
import Futurice.Generics
import Futurice.Prelude
import Prelude ()
import qualified Data.Csv as Csv
data ContractType
= PermanentAllIn
... |
d5d453dc3437c769880747303565bc760032d820f64bab3e612b0510bc4b7577 | rd--/hosc | Udp.hs | | Osc over Udp implementation .
module Sound.Osc.Transport.Fd.Udp where
import Control.Exception {- base -}
import Control.Monad {- base -}
import Data.Bifunctor {- base -}
import qualified Data.ByteString as B {- bytestring -}
import qualified Network.Socket as N {- network -}
import qualified Network.Socket.Byte... | null | https://raw.githubusercontent.com/rd--/hosc/5f544a0c7ae4a858a537f741963a1f1cb06b3a0d/Sound/Osc/Transport/Fd/Udp.hs | haskell | base
base
base
bytestring
network
network
hosc
hosc
hosc
hosc
| The Udp transport handle data type.
| Close Udp.
| 'Udp' is an instance of 'Fd.Transport'.
| Bracket Udp communication.
localhost=ipv4
| Set option, ie. 'N.Broadcast' or 'N.RecvTimeOut'.
| Get option.
| Make a 'Udp' connection.
... | | Osc over Udp implementation .
module Sound.Osc.Transport.Fd.Udp where
newtype Udp = Udp {udpSocket :: N.Socket}
| Return the port number associated with the Udp socket .
udpPort :: Integral n => Udp -> IO n
udpPort = fmap fromIntegral . N.socketPort . udpSocket
| Send data over Udp using ' C.send ' .
udp_... |
fc5e8a4079a34ea360953979c311c48b8db34f3e0342dad84f33836a986851fe | kind2-mc/kind2 | flags.mli | This file is part of the Kind 2 model checker .
Copyright ( c ) 2015 by the Board of Trustees of the University of Iowa
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 a... | null | https://raw.githubusercontent.com/kind2-mc/kind2/a5b88341098cfa77612d3bd74362ac8d5c9b3c44/src/flags.mli | ocaml | Default value of the flag.
Reference storing the value of the flag.
Add flag specification to module specs.
The actual flag.
What to do with the value given to the flag, see other flags.
Flag description.
Flag value accessor.
Identifier of the module. No space or special characters.
Short description o... | This file is part of the Kind 2 model checker .
Copyright ( c ) 2015 by the Board of Trustees of the University of Iowa
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 a... |
417c264417bad760e1d45e792fb5b32dbebfcbac8784d91378462a346fd4b212 | BillHallahan/G2 | LetFloating2.hs | module LetFloating2 where
f :: Int -> Int
f x =
let
# NOINLINE g #
g = \y -> y + 1
in
g x
output16 :: Int -> Int -> Bool
output16 _ = (16 ==)
| null | https://raw.githubusercontent.com/BillHallahan/G2/dfd377793dcccdc7126a9f4a65b58249673e8a70/tests/TestFiles/LetFloating/LetFloating2.hs | haskell | module LetFloating2 where
f :: Int -> Int
f x =
let
# NOINLINE g #
g = \y -> y + 1
in
g x
output16 :: Int -> Int -> Bool
output16 _ = (16 ==)
| |
46e8717abfe6172a08c56bba699aeab96f512bd56e49ed4b6f20ee79b47f327d | toddaaro/advanced-dan | callcc.scm | (load "prog.scm")
(print-gensym 'pretty/suffix)
(define call/cc-inc
'(progs goto return (x y z) x^ ()
(x^
(set! x (+ 5 (call/cc (lambda (k) (set! y k) 120)))))
(y^
(y x)
(return x))))
(define expanded
(lambda ()
(expand call/cc-inc)))... | null | https://raw.githubusercontent.com/toddaaro/advanced-dan/5d6c0762d998aa37774e0414a0f37404e804b536/prog/callcc.scm | scheme | (load "prog.scm")
(print-gensym 'pretty/suffix)
(define call/cc-inc
'(progs goto return (x y z) x^ ()
(x^
(set! x (+ 5 (call/cc (lambda (k) (set! y k) 120)))))
(y^
(y x)
(return x))))
(define expanded
(lambda ()
(expand call/cc-inc)))... | |
92ad1c1483eaaef25410c97bf9fe359258ce960fd5afc660c3bdd700c4fef980 | rufus-lang/rufus | rufus_parse_comment_test.erl | -module(rufus_parse_comment_test).
-include_lib("eunit/include/eunit.hrl").
parse_function_with_module_level_comment_test() ->
RufusText =
"// echo module contains a server that returns the messages it receives\n"
"module echo\n",
{ok, Tokens} = rufus_tokenize:string(RufusText),
{ok, Forms... | null | https://raw.githubusercontent.com/rufus-lang/rufus/9cf01e070a0dc4436c7072111a79b12b772e5aea/rf/test/rufus_parse_comment_test.erl | erlang | -module(rufus_parse_comment_test).
-include_lib("eunit/include/eunit.hrl").
parse_function_with_module_level_comment_test() ->
RufusText =
"// echo module contains a server that returns the messages it receives\n"
"module echo\n",
{ok, Tokens} = rufus_tokenize:string(RufusText),
{ok, Forms... | |
f78827ea7773a4c2993847bbbc8f403f5216f939a30a5325c34e315d5016f8a9 | manuel-serrano/bigloo | cgen.scm | ;*=====================================================================*/
* serrano / prgm / project / bigloo / / comptime / Cgen / cgen.scm * /
;* ------------------------------------------------------------- */
* Author : * /
* Creation : ... | null | https://raw.githubusercontent.com/manuel-serrano/bigloo/1ae5b060fcfd05ad33440765b45add3a26ced5b4/comptime/Cgen/cgen.scm | scheme | *=====================================================================*/
* ------------------------------------------------------------- */
* ------------------------------------------------------------- */
* The C production code. */
*===========================... | * serrano / prgm / project / bigloo / / comptime / Cgen / cgen.scm * /
* Author : * /
* Creation : Tue Jul 2 13:17:04 1996 * /
* Last change : Sat Jun 25 10:38:06 2022 ( serrano ) * /
* Copyrig... |
683b0864c0a20123e6d1e9f46894cb36fe35f5620efbf35e6f384f523ac7dd52 | hachreak/swagger_routerl | demo_pets_app.erl | %%%-------------------------------------------------------------------
%% @doc demo_pets public API
%% @end
%%%-------------------------------------------------------------------
-module(demo_pets_app).
-author('Leonardo Rossi <>').
-behaviour(application).
%% Application callbacks
-export([start/2, stop/1]).
-typ... | null | https://raw.githubusercontent.com/hachreak/swagger_routerl/3005b789f8c09b58894b15fe31ee699630553338/examples/demo_pets/src/demo_pets_app.erl | erlang | -------------------------------------------------------------------
@doc demo_pets public API
@end
-------------------------------------------------------------------
Application callbacks
====================================================================
API
======================================================... |
-module(demo_pets_app).
-author('Leonardo Rossi <>').
-behaviour(application).
-export([start/2, stop/1]).
-type appctx() :: any().
start(_StartType, _StartArgs) ->
Filename = swagger_filename(),
Yaml = swagger_routerl:load(Filename),
{ok, SwaggerFileRaw} = file:read_file(Filename),
http(Yaml, SwaggerFi... |
3360e82eeed0f2d4fc2e8931b4fb5e3f62de6098f94682b12eaa3329cf9a0746 | dmbarbour/awelon | Interpreter.hs |
| Simple imperative interpreter for ABC code
module ABC.Imperative.Interpreter
( interpret
) where
import Control.Monad ((>=>))
import qualified Data.Sequence as S
import ABC.Imperative.Runtime
import ABC.Imperative.Operations
import ABC.Imperative.Value
import ABC.Operators
| build a Haskell process f... | null | https://raw.githubusercontent.com/dmbarbour/awelon/af9124654dd9462cc4887dccf67b3e33302c7351/hsrc/ABC/Imperative/Interpreter.hs | haskell | for tail-call optimization |
| Simple imperative interpreter for ABC code
module ABC.Imperative.Interpreter
( interpret
) where
import Control.Monad ((>=>))
import qualified Data.Sequence as S
import ABC.Imperative.Runtime
import ABC.Imperative.Operations
import ABC.Imperative.Value
import ABC.Operators
| build a Haskell process f... |
3e8fce1a6cbc8a539fe09c54c5dba9e67ccb35caaf52d8f1c58a60ea81222416 | amperity/lein-monolith | color.clj | (ns lein-monolith.color
"Coloring functions which apply ANSI color codes to color terminal output."
(:require
[clojure.string :as str]))
(def ^:private sgr-code
"Map of symbols to numeric SGR (select graphic rendition) codes."
{:none 0
:bold 1
:underline 3
:blink 5
:rever... | null | https://raw.githubusercontent.com/amperity/lein-monolith/f7d476b3b746498d0d0539e090a1db33a6602280/src/lein_monolith/color.clj | clojure | codes)] | (ns lein-monolith.color
"Coloring functions which apply ANSI color codes to color terminal output."
(:require
[clojure.string :as str]))
(def ^:private sgr-code
"Map of symbols to numeric SGR (select graphic rendition) codes."
{:none 0
:bold 1
:underline 3
:blink 5
:rever... |
9c3b7f8871c2999f01fdfb7c2058e44a17cff8854b4f7a2cf063456a10dc38c2 | weavejester/comb | template.clj | (ns comb.test.template
(:use clojure.test)
(:require [comb.template :as t] :reload))
(deftest eval-test
(is (= (t/eval "foo") "foo"))
(is (= (t/eval "<%= 10 %>") "10"))
(is (= (t/eval "<%= x %>" {:x "foo"}) "foo"))
(is (= (t/eval "<%=x%>" {:x "foo"}) "foo"))
(is (= (t/eval "<% (doseq [x xs] %>foo<%= x %>... | null | https://raw.githubusercontent.com/weavejester/comb/625a63a9c040fa4a2b3153d8c84d08dc2fc8f660/test/comb/test/template.clj | clojure | (ns comb.test.template
(:use clojure.test)
(:require [comb.template :as t] :reload))
(deftest eval-test
(is (= (t/eval "foo") "foo"))
(is (= (t/eval "<%= 10 %>") "10"))
(is (= (t/eval "<%= x %>" {:x "foo"}) "foo"))
(is (= (t/eval "<%=x%>" {:x "foo"}) "foo"))
(is (= (t/eval "<% (doseq [x xs] %>foo<%= x %>... | |
bdcfada41c4cc28a014b65759ccdf7a24e783f5f796805d98b66b2f466983309 | dgiot/dgiot | emqx_dashboard_api.erl | %%--------------------------------------------------------------------
Copyright ( c ) 2020 - 2021 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/dgiot/dgiot/c9f2f78af71692ba532e4806621b611db2afe0c9/lib-ce/emqx_dashboard/src/emqx_dashboard_api.erl | erlang | --------------------------------------------------------------------
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ... | Copyright ( c ) 2020 - 2021 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_dashboard_api).
-include("emqx_dashboard.hrl").
-import(minirest, [return/1]).
-... |
4890c02cb37a9a8af0d7d52ad5c397871a3a383b373a17405facf294b96677b7 | cljfx/cljfx | h_box.clj | (ns cljfx.fx.h-box
"Part of a public API"
(:require [cljfx.composite :as composite]
[cljfx.lifecycle :as lifecycle]
[cljfx.coerce :as coerce]
[cljfx.fx.pane :as fx.pane]
[cljfx.mutator :as mutator]
[cljfx.prop :as prop])
(:import [javafx.scene.layout HBo... | null | https://raw.githubusercontent.com/cljfx/cljfx/543f7409290051e9444771d2cd86dadeb8cdce33/src/cljfx/fx/h_box.clj | clojure | (ns cljfx.fx.h-box
"Part of a public API"
(:require [cljfx.composite :as composite]
[cljfx.lifecycle :as lifecycle]
[cljfx.coerce :as coerce]
[cljfx.fx.pane :as fx.pane]
[cljfx.mutator :as mutator]
[cljfx.prop :as prop])
(:import [javafx.scene.layout HBo... | |
c322c78024b1dcc5c82be13b819fa547fa2b9f0e06869633a6a3625973d44be1 | e-wrks/edh | IOPD.hs | module Language.Edh.IOPD where
-- import Debug.Trace
import Control.Concurrent.STM
import Control.Monad.ST (runST)
import qualified Data.HashMap.Strict as Map
import Data.Hashable (Hashable (hashWithSalt))
import Data.Vector (Vector)
import qualified Data.Vector as V
import Data.Vector.Mutable (IOVector)
im... | null | https://raw.githubusercontent.com/e-wrks/edh/b1a4bb376f12d49b5105eca8cfdc50bfa50a48ca/elr/src/Language/Edh/IOPD.hs | haskell | import Debug.Trace
| A type with some value(s) triggering deletion semantics
| Whether a value triggers deletion semantics when at right-hand-side of
assignment
| All types contain no deletion triggering value by default,
but have an instance
# OVERLAPPABLE #
| Mutable dict with insertion order preserv... | module Language.Edh.IOPD where
import Control.Concurrent.STM
import Control.Monad.ST (runST)
import qualified Data.HashMap.Strict as Map
import Data.Hashable (Hashable (hashWithSalt))
import Data.Vector (Vector)
import qualified Data.Vector as V
import Data.Vector.Mutable (IOVector)
import qualified Data.Vector.Mutab... |
b7dee0fd504007411b8071674e552b32264b5073789bcbed8bf2065849bf9f1e | open-company/open-company-web | orgs_dropdown.cljs | (ns oc.web.components.ui.orgs-dropdown
(:require [rum.core :as rum]
[org.martinklepsch.derivatives :as drv]
[oc.web.urls :as oc-urls]
[oc.web.router :as router]
[oc.web.dispatcher :as dis]
[oc.web.lib.utils :as utils]
[oc.web.lib.responsive :as r... | null | https://raw.githubusercontent.com/open-company/open-company-web/dfce3dd9bc115df91003179bceb87cca1f84b6cf/src/main/oc/web/components/ui/orgs_dropdown.cljs | clojure | (ns oc.web.components.ui.orgs-dropdown
(:require [rum.core :as rum]
[org.martinklepsch.derivatives :as drv]
[oc.web.urls :as oc-urls]
[oc.web.router :as router]
[oc.web.dispatcher :as dis]
[oc.web.lib.utils :as utils]
[oc.web.lib.responsive :as r... | |
130ca7a38e6089b2dcd309e636a8148224b5b651cfb5e51835986787762687a3 | informatimago/lisp | logical-pathname.lisp | -*- mode : lisp;coding : utf-8 -*-
;;;;**************************************************************************
FILE : logical-pathname.lisp
;;;;LANGUAGE: Common-Lisp
;;;;SYSTEM: Common-Lisp
USER - INTERFACE :
;;;;DESCRIPTION
;;;;
and validates a logical pathname nam... | null | https://raw.githubusercontent.com/informatimago/lisp/571af24c06ba466e01b4c9483f8bb7690bc46d03/clext/logical-pathname.lisp | lisp | coding : utf-8 -*-
**************************************************************************
LANGUAGE: Common-Lisp
SYSTEM: Common-Lisp
DESCRIPTION
LEGAL
This program is free software: you can redistribute it and/or modify
(at your option) any later version.
This program is distri... | FILE : logical-pathname.lisp
USER - INTERFACE :
and validates a logical pathname namestring .
< PJB > < >
MODIFICATIONS
2015 - 11 - 01 < PJB > Extracted from COM.INFORMATIMAGO.COMMON - LISP.VIRTUAL - FILE - SYSTEM .
AGPL3
Copyright 2015 - 2016
it under the te... |
9b1318662134515bf0924a8838e5daf0d86ad7a97d9010fcd18952dc86bf7bc5 | MLstate/opalang | surfaceAstStaticInclude.mli |
Copyright © 2011 MLstate
This file is part of .
is free software : you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License , version 3 , as published by
the Free Software Foundation .
is distributed in the hope that it will be useful , ... | null | https://raw.githubusercontent.com/MLstate/opalang/424b369160ce693406cece6ac033d75d85f5df4f/compiler/passes/surfaceAstStaticInclude.mli | ocaml | *
This module gathers the passes that statically include some content
in the source code
*
This pass replaces \@static_binary_content and \@static_source_content with
the actual content of the file (in release mode, or with some code to load
the file at run time otherwise)
Assumptions: the files exi... |
Copyright © 2011 MLstate
This file is part of .
is free software : you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License , version 3 , as published by
the Free Software Foundation .
is distributed in the hope that it will be useful , ... |
a8ee0e2643a4660f453b3c7f6468087323e4ee427811f9fe30ed0258343fa233 | music-suite/music-suite | Articulation.hs |
{-
Semantics of this type.
Especially: what is the monoid and what is the action.
-}
-- 0.5 - > staccato / spicc , 1 - > detache / ord , 2 - > legato / bow
-- This may be a logarithm of the relative duration
type Separation = Double
-- -1 - > start of phrase , - > 0 middle of phrase , - > 1 end of ph... | null | https://raw.githubusercontent.com/music-suite/music-suite/7f01fd62334c66418043b7a2d662af127f98685d/sketch/Articulation.hs | haskell |
Semantics of this type.
Especially: what is the monoid and what is the action.
0.5 - > staccato / spicc , 1 - > detache / ord , 2 - > legato / bow
This may be a logarithm of the relative duration
-1 - > start of phrase , - > 0 middle of phrase , - > 1 end of phrase
This may be a logarithm of the relati... |
type Separation = Double
type Weight = Double
type IndAcc = Double
type Separation = Double
type Weight = Double
type IndAcc = Double
-}
|
c6b5e1ff5921b0bdbc85e14bb7d2e4d368e7fbab2e130da3efe4ebebf82f663a | alda-lang/alda-core | octaves_test.clj | (ns alda.parser.octaves-test
(:require [clojure.test :refer :all]
[alda.parser :refer (parse-input)]))
(deftest octave-tests
(testing "octave change"
(is (= [(alda.lisp/octave :up)]
(parse-input ">" :output :events)))
(is (= [(alda.lisp/octave :down)]
(parse-input "<" :ou... | null | https://raw.githubusercontent.com/alda-lang/alda-core/4c92eb4fe363485193c58b77b1ec8e36c8866fb5/test/alda/parser/octaves_test.clj | clojure | (ns alda.parser.octaves-test
(:require [clojure.test :refer :all]
[alda.parser :refer (parse-input)]))
(deftest octave-tests
(testing "octave change"
(is (= [(alda.lisp/octave :up)]
(parse-input ">" :output :events)))
(is (= [(alda.lisp/octave :down)]
(parse-input "<" :ou... | |
8d7625a2027f6604b9040785b39c0784d028273927033c87b6e94bb73e9c6469 | dyzsr/ocaml-selectml | dumpobj.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/tools/dumpobj.ml | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
Disassembler for executable and .cmo object files
open Asttypes
open Config
open Instruct
open Lambda
... |
8f9fb96dbcae2005bd56ac6375a7c8fc890808e257bd1348dac2da5afa68f65d | c-cube/ocaml-containers | ccsexp_parse_string_does_not_crash.ml | let () =
Crowbar.add_test ~name:"ccsexp_parse_string_does_not_crash" [ Crowbar.bytes ]
(fun s -> CCSexp.parse_string s |> ignore)
| null | https://raw.githubusercontent.com/c-cube/ocaml-containers/375ae27622bbec6d59a26ff58620da8fc74189d4/fuzz/ccsexp_parse_string_does_not_crash.ml | ocaml | let () =
Crowbar.add_test ~name:"ccsexp_parse_string_does_not_crash" [ Crowbar.bytes ]
(fun s -> CCSexp.parse_string s |> ignore)
| |
1a0ce707a545071cdec08804082da5e4cbe5201ff45cbd8fccc9e61f034145aa | hiroshi-unno/coar | DT_BFSynthesizer.ml | open Core
open PCSatCommon
module Config = struct
type t = { verbose: bool } [@@deriving yojson]
module type ConfigType = sig val config: t end
end
module Make (Cfg: Config.ConfigType) = struct
let synthesize (ttable: TruthTable.table) (qlist, alist) = let open Or_error in
DecisionTree.build_tree ttable (ql... | null | https://raw.githubusercontent.com/hiroshi-unno/coar/90a23a09332c68f380efd4115b3f6fdc825f413d/lib/PCSat/bf_synthesis/DT_BFSynthesizer.ml | ocaml | open Core
open PCSatCommon
module Config = struct
type t = { verbose: bool } [@@deriving yojson]
module type ConfigType = sig val config: t end
end
module Make (Cfg: Config.ConfigType) = struct
let synthesize (ttable: TruthTable.table) (qlist, alist) = let open Or_error in
DecisionTree.build_tree ttable (ql... | |
fe622a4c24e33e3f4a04cbd304c8041d872de48a398a43b506b1049591f30e4b | jonschoning/espial | Docs.hs | # OPTIONS_GHC -fno - warn - unused - matches #
module Handler.Docs where
import Import
getDocsSearchR :: Handler Html
getDocsSearchR = popupLayout
$(widgetFile "docs-search")
| null | https://raw.githubusercontent.com/jonschoning/espial/c7e5d5c3addff019b31794d4eaa7f8c7865b716a/src/Handler/Docs.hs | haskell | # OPTIONS_GHC -fno - warn - unused - matches #
module Handler.Docs where
import Import
getDocsSearchR :: Handler Html
getDocsSearchR = popupLayout
$(widgetFile "docs-search")
| |
c865e54a16d1477d597df312a988caa71734d2a122783c704961882213991371 | bgamari/ghc-dump | Pretty.hs | {-# LANGUAGE OverloadedStrings #-}
# LANGUAGE FlexibleInstances #
# LANGUAGE RecordWildCards #
# OPTIONS_GHC -fno - warn - orphans #
module GhcDump.Pretty
( Pretty(..)
, module GhcDump.Pretty
) where
import GhcDump.Ast
import GhcDump.Util
import Data.Ratio
import qualified Data.Text as T
import qualified... | null | https://raw.githubusercontent.com/bgamari/ghc-dump/0d69ff20c2d5dea7aa2422749bb1cfc8986787ea/ghc-dump-util/src/GhcDump/Pretty.hs | haskell | # LANGUAGE OverloadedStrings #
No parens
Function args; no parens for tycon apps
Infix operator
let-bound type variables: who knew? | # LANGUAGE FlexibleInstances #
# LANGUAGE RecordWildCards #
# OPTIONS_GHC -fno - warn - orphans #
module GhcDump.Pretty
( Pretty(..)
, module GhcDump.Pretty
) where
import GhcDump.Ast
import GhcDump.Util
import Data.Ratio
import qualified Data.Text as T
import qualified Data.ByteString.Char8 as BS
import... |
a9d98d977bdba7810d0d98b81a52756fd2acbc19a3b9c583e20c2b819df89290 | ocaml/dune | dune_rpc_e2e.mli | open Stdune
val with_dune_watch : ?env:string list -> (Pid.t -> 'a Fiber.t) -> 'a Fiber.t
val dune_build : Dune_rpc_client.Client.t -> string -> unit Fiber.t
val run_client :
?handler:Dune_rpc_client.Client.Handler.t
-> (Dune_rpc_client.Client.t -> 'a Fiber.t)
-> 'a Fiber.t
val run : (unit -> 'a Fiber.t) -... | null | https://raw.githubusercontent.com/ocaml/dune/20180d12149343d073cdea5860d01dc181702e6a/test/expect-tests/dune_rpc_e2e/dune_rpc_e2e.mli | ocaml | open Stdune
val with_dune_watch : ?env:string list -> (Pid.t -> 'a Fiber.t) -> 'a Fiber.t
val dune_build : Dune_rpc_client.Client.t -> string -> unit Fiber.t
val run_client :
?handler:Dune_rpc_client.Client.Handler.t
-> (Dune_rpc_client.Client.t -> 'a Fiber.t)
-> 'a Fiber.t
val run : (unit -> 'a Fiber.t) -... | |
536ab418e27d0963c36bd7a96513b613262fe923dcecf36b68c535abd375fed0 | naveen-negi/functional-domain-driven-design | placing_on_hold_workflow_test.clj | (ns library.workflow
(:require [library.workflow-with-applicative :as sut]
[library.specs :as specs]
[library.fixtures :as f]
[library.db :as db]
[clojure.spec.gen.alpha :as gen]
[clojure.test :refer [deftest is testing]]
[clojure.spec.alpha :as ... | null | https://raw.githubusercontent.com/naveen-negi/functional-domain-driven-design/d0bc66af8f52e7e2d265f2e5601c92689bbb12c6/test/library/placing_on_hold_workflow_test.clj | clojure | (ns library.workflow
(:require [library.workflow-with-applicative :as sut]
[library.specs :as specs]
[library.fixtures :as f]
[library.db :as db]
[clojure.spec.gen.alpha :as gen]
[clojure.test :refer [deftest is testing]]
[clojure.spec.alpha :as ... | |
deafbf82a4028aa4d0732c4bc1dd4997c199ff9f73ad356259b753b7c4fa6b0b | triffon/fp-2021-22 | code.rkt | #lang r5rs
(define (o f g)
(lambda (x) (f (g x))))
; non-iterative
;(define (repeated n f x)
; (if (= n 0)
; x
; (f (repeated (- n 1) f x))))
; iterative
;(define (repeated n f x)
; (define (apply n x start)
; (if (= start n)
; x
( apply n ( f x ) ( + start 1 ) ) ) )
; (apply n x 0)... | null | https://raw.githubusercontent.com/triffon/fp-2021-22/e8e71eb7f36b9e8f9ec59e336def384e063208a8/exercises/3/03-scheme-highorder/code.rkt | racket | non-iterative
(define (repeated n f x)
(if (= n 0)
x
(f (repeated (- n 1) f x))))
iterative
(define (repeated n f x)
(define (apply n x start)
(if (= start n)
x
(apply n x 0))
also iterative
these can be defined via each other
(define (repeated n f x)
((repeat n f) x))
(define (repea... | #lang r5rs
(define (o f g)
(lambda (x) (f (g x))))
( apply n ( f x ) ( + start 1 ) ) ) )
(define (repeated n f x)
(if (= n 0)
x
(repeated (- n 1) f (f x))))
(define (repeat n f)
(if (= n 0)
(lambda (x) x)
(o f (repeat (- n 1) f))))
(define (accumulate op init f begin end)... |
fb5843eadd0b731533dfaa063c1bb26516645178101842db2dc719cf15268239 | haskell/hackage-server | Users.hs | # LANGUAGE RankNTypes , NamedFieldPuns , RecordWildCards , RecursiveDo ,
BangPatterns , OverloadedStrings , TemplateHaskell , FlexibleContexts #
BangPatterns, OverloadedStrings, TemplateHaskell, FlexibleContexts #-}
# OPTIONS_GHC -fno - warn - orphans #
module Distribution.Server.Features.Us... | null | https://raw.githubusercontent.com/haskell/hackage-server/0ba623b610e3afc514a7a3dffa1bcc0994ea2ba1/src/Distribution/Server/Features/Users.hs | haskell | | A feature to allow manipulation of the database of users.
TODO: clean up mismatched and duplicate functionality (some noted below).
| The users `HackageFeature`.
| User resources.
| Notification that a user has been added. Currently unused.
TODO: delete, other status changes?
| The admin user group, including ... | # LANGUAGE RankNTypes , NamedFieldPuns , RecordWildCards , RecursiveDo ,
BangPatterns , OverloadedStrings , TemplateHaskell , FlexibleContexts #
BangPatterns, OverloadedStrings, TemplateHaskell, FlexibleContexts #-}
# OPTIONS_GHC -fno - warn - orphans #
module Distribution.Server.Features.Us... |
bda0fe9f944d765f65f35749d6726dd7afb219fb3946dd738cfba63d0dc57729 | simonmar/monad-par | TestParDist.hs | # LANGUAGE TemplateHaskell , DeriveDataTypeable #
{-# OPTIONS_GHC -O2 -ddump-splices #-}
-- Simple tests of distributed work stealing.
----------------------------------------------
import System.Environment (getArgs)
import qualified Control.Monad.Par.Meta.Dist as D
import Control.Monad.IO.Class (liftIO)
import Con... | null | https://raw.githubusercontent.com/simonmar/monad-par/1266b0ac1b4040963ab356cf032c6aae6b8a7add/monad-par/tests/TestParDist.hs | haskell | # OPTIONS_GHC -O2 -ddump-splices #
Simple tests of distributed work stealing.
--------------------------------------------
import qualified Data.IntMap as M
import qualified Data.Set as M
------------------------------------------------------------------------------
A description of a fake work topology which is ex... | # LANGUAGE TemplateHaskell , DeriveDataTypeable #
import System.Environment (getArgs)
import qualified Control.Monad.Par.Meta.Dist as D
import Control.Monad.IO.Class (liftIO)
import Control.Monad (mapM_)
Tweaked version of CloudHaskell 's closures :
import Remote2.Call (mkClosureRec, remotable)
import Control.Con... |
1397cf2526c53271d7cafa32abb33344cad376948981e5bc6a8ef53be783a0bd | morphismtech/squeal | Type.hs | |
Module : Squeal . PostgreSQL.Definition . Type
Description : create and drop types
Copyright : ( c ) , 2019
Maintainer :
Stability : experimental
create and drop types
Module: Squeal.PostgreSQL.Definition.Type
Description: create and drop types
Copyright: (c) Eitan Chatav, 2019
Maintainer:
Stabilit... | null | https://raw.githubusercontent.com/morphismtech/squeal/f25c3052bcecebe5e88ee95143c4ae446c24ca85/squeal-postgresql/src/Squeal/PostgreSQL/Definition/Type.hs | haskell | * Create
* Drop
* Alter
$setup
>>> import Squeal.PostgreSQL
CREATE TYPE "mood" AS ENUM ('sad', 'ok', 'happy');
^ name of the user defined enumerated type
^ labels of the enumerated type
>>> :{
let
in
:}
^ name of the user defined enumerated type
^ name of the user defined composite type
^ list of attri... | |
Module : Squeal . PostgreSQL.Definition . Type
Description : create and drop types
Copyright : ( c ) , 2019
Maintainer :
Stability : experimental
create and drop types
Module: Squeal.PostgreSQL.Definition.Type
Description: create and drop types
Copyright: (c) Eitan Chatav, 2019
Maintainer:
Stabilit... |
3bb2fa5c03601df333112483d0a6f3fc6e4ca3490a62a780c572da3a5e35c73a | janestreet/async_http_js | http.ml | open Core_kernel.Std
open Async_kernel.Std
open Js_of_ocaml
module Opt = Js.Opt
module Optdef = Js.Optdef
module Response_type = struct
type 'a t = 'a XmlHttpRequest.response =
| ArrayBuffer : Typed_array.arrayBuffer Js.t Opt.t t
| Blob : #File.blob Js.t Js.Opt.t t
| Document : Dom.element Dom... | null | https://raw.githubusercontent.com/janestreet/async_http_js/13c42b434af6c1c90f9fcd2ef85ffe91605bb4cd/src/http.ml | ocaml | open Core_kernel.Std
open Async_kernel.Std
open Js_of_ocaml
module Opt = Js.Opt
module Optdef = Js.Optdef
module Response_type = struct
type 'a t = 'a XmlHttpRequest.response =
| ArrayBuffer : Typed_array.arrayBuffer Js.t Opt.t t
| Blob : #File.blob Js.t Js.Opt.t t
| Document : Dom.element Dom... | |
4b9cf142d4d4a46b7f78bc51eda2c10852253ef73bd7aeeec6f1364739070301 | Elzair/nazghul | zane.scm | ;;----------------------------------------------------------------------------
;; Constants
;;----------------------------------------------------------------------------
(define zane-start-lvl 3)
;;----------------------------------------------------------------------------
;; Schedule
;;
The schedule below is for ... | null | https://raw.githubusercontent.com/Elzair/nazghul/8f3a45ed6289cd9f469c4ff618d39366f2fbc1d8/worlds/haxima-1.001/zane.scm | scheme | ----------------------------------------------------------------------------
Constants
----------------------------------------------------------------------------
----------------------------------------------------------------------------
Schedule
-------------------------------------------------------------------... | (define zane-start-lvl 3)
The schedule below is for the place " Enchanter 's Tower Ground Floor "
(kern-mk-sched 'sch_zane
(list 0 0 enchtwr-campsite "sleeping")
(list 6 0 enchtwr-campsite "idle")
(list 8 0 enchtwr-dining-room-1 "eating")
... |
23e313ca9eccd3d4ec9815e5bbaa7c0c28c1505053b9706092b0053000aa21e1 | racket/typed-racket | parameter-class.rkt | #;
(exn-pred exn:fail:contract? #rx"shape-check")
#lang typed/racket/shallow
(module p racket/base
(define world:paper-height (make-parameter 792.0+0.0i))
(provide world:paper-height))
(require/typed 'p (world:paper-height (Parameterof Float)))
(require (only-in typed/racket/draw pdf-dc%))
(define dc-output-port (... | null | https://raw.githubusercontent.com/racket/typed-racket/1dde78d165472d67ae682b68622d2b7ee3e15e1e/typed-racket-test/fail/shallow/parameter-class.rkt | racket | (exn-pred exn:fail:contract? #rx"shape-check")
#lang typed/racket/shallow
(module p racket/base
(define world:paper-height (make-parameter 792.0+0.0i))
(provide world:paper-height))
(require/typed 'p (world:paper-height (Parameterof Float)))
(require (only-in typed/racket/draw pdf-dc%))
(define dc-output-port (ope... | |
8ef7cd8b78ff7b0c08b0c5787683d4283fe02dd46cba40d648a705fc28e712d5 | wilbowma/cur | Tactics-destruct.rkt | #lang cur
(require cur/stdlib/sugar
cur/stdlib/equality
cur/ntac/base
cur/ntac/standard
cur/ntac/rewrite
rackunit/turnstile+
"../rackunit-ntac.rkt")
Software Foundations Tactics.v , part 5 of 5
;; Using destruct on Compound Expressions
;; copied from Poly-pairs.... | null | https://raw.githubusercontent.com/wilbowma/cur/e039c98941b3d272c6e462387df22846e10b0128/cur-test/cur/tests/ntac/software-foundations/Tactics-destruct.rkt | racket | Using destruct on Compound Expressions
copied from Poly-pairs.rkt
letter capital "O"
* = "full" version; as opposed to hidden-arg version
NOTE: totality can't handle cons* alias.
(unfold sillyfun) ; automatic
(by-rewriteL H1) | #lang cur
(require cur/stdlib/sugar
cur/stdlib/equality
cur/ntac/base
cur/ntac/standard
cur/ntac/rewrite
rackunit/turnstile+
"../rackunit-ntac.rkt")
Software Foundations Tactics.v , part 5 of 5
(define-datatype bool : Type
(true : bool)
(false : bool))
(def... |
80a6aa8af381236ef2f7b725e7fe11bd3973c6e6b6623fcea677053a61203da9 | owickstrom/komposition | LibraryMode.hs | {-# LANGUAGE ConstraintKinds #-}
# LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
{-# LANGUAGE GADTs #-}
{-# LANGUAGE LambdaCase #-}
# LANGUAGE OverloadedLabels #
{-# LANGUAGE RankNTypes #-}
# LANGUAGE RebindableSyntax #
{-# LANGUAGE TypeOperators #-}
module Komposition.Applicatio... | null | https://raw.githubusercontent.com/owickstrom/komposition/64893d50941b90f44d77fea0dc6d30c061464cf3/src/Komposition/Application/LibraryMode.hs | haskell | # LANGUAGE ConstraintKinds #
# LANGUAGE GADTs #
# LANGUAGE LambdaCase #
# LANGUAGE RankNTypes #
# LANGUAGE TypeOperators #
TODO: Can "LibraryMode" be parameterized on its media type to
avoid this? | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE OverloadedLabels #
# LANGUAGE RebindableSyntax #
module Komposition.Application.LibraryMode where
import Komposition.Application.Base
import Data.Row.Records
import Komposition.Library
import Komposition.M... |
387c784b4d2d30d43c33c54b9006c30acf34da247bd8b25da9300ad6010c92ed | bokesan/IntervalMap | Interval.hs | -- |
Module : Data . . Interval
Copyright : ( c ) 2011
-- License : BSD-style
-- Maintainer :
-- Stability : experimental
-- Portability : portable
--
-- A conservative implementation of Intervals, mostly for use as keys in
a ' Data . ' .
--
-- This should really be a typeclass, so yo... | null | https://raw.githubusercontent.com/bokesan/IntervalMap/573b4d1e47d7880656e6989704160ab164762ca0/Data/IntervalMap/Interval.hs | haskell | |
License : BSD-style
Maintainer :
Stability : experimental
Portability : portable
A conservative implementation of Intervals, mostly for use as keys in
This should really be a typeclass, so you could have a tuple be an instance
and I'm open to suggestions for better names.
* Interval type
* Q... | Module : Data . . Interval
Copyright : ( c ) 2011
a ' Data . ' .
of Interval , but that is currently not possible in standard Haskell .
The contructor names of the half - open intervals seem somewhat clumsy ,
module Data.IntervalMap.Interval (
Interval(..),
lowerBound, upperBound, lef... |
e1c64607363d877b14bc70a0c736122928603b5af3dbeae88ada706b7877949f | AshleyYakeley/Truth | KeyedOrder.hs | module Data.KeyedOrder
( OrderedList
, olEmpty
, olFromList
, olLength
, olGetByPos
, olLookupByPredicate
, olLookupByItem
, olInsert
, olDeleteByPos
) where
import Data.Sequence (Seq, ViewL(..), (<|), viewl)
import Shapes.Import
data OrderedList a =
MkOrderedList (a -> a -... | null | https://raw.githubusercontent.com/AshleyYakeley/Truth/d704b8baaa77dac002922eccecdd91018c4b7eef/Changes/shapes/src/Data/KeyedOrder.hs | haskell | TODO: improve inefficient linear search | module Data.KeyedOrder
( OrderedList
, olEmpty
, olFromList
, olLength
, olGetByPos
, olLookupByPredicate
, olLookupByItem
, olInsert
, olDeleteByPos
) where
import Data.Sequence (Seq, ViewL(..), (<|), viewl)
import Shapes.Import
data OrderedList a =
MkOrderedList (a -> a -... |
59c55ea0c1cb21ce0e6585f95d6941de029ce9b5884baff4c1d78de25522dac3 | alexandergunnarson/quantum | angle.cljc | (ns quantum.test.measure.angle) | null | https://raw.githubusercontent.com/alexandergunnarson/quantum/0c655af439734709566110949f9f2f482e468509/test/quantum/test/measure/angle.cljc | clojure | (ns quantum.test.measure.angle) | |
0fa2722947a39a9a9068e847bec6eac79f15f07c2b0f7ef08fb7b989b2fab42d | herd/herdtools7 | archRun.mli | (****************************************************************************)
(* the diy toolsuite *)
(* *)
, University College London , UK .
, INRIA Par... | null | https://raw.githubusercontent.com/herd/herdtools7/c3b5079aed4bf9d92a5c7de04ef3638d6af0f8c0/gen/archRun.mli | ocaml | **************************************************************************
the diy toolsuite
en Automatique and ... | , University College London , UK .
, INRIA Paris - Rocquencourt , France .
Copyright 2014 - present Institut National de Recherche en Informatique et
This software is governed by the CeCILL - B license under French law and
modify and/ or redistribu... |
123a604faf7b6d13994896de07c8bf097b0daaf9e7ccad2e38f4997e3709b0c3 | nikodemus/SBCL | tn.lisp | ;;;; This file contains utilities used for creating and manipulating
;;;; TNs, and some other more assorted IR2 utilities.
This software is part of the SBCL system . See the README file for
;;;; more information.
;;;;
This software is derived from the CMU CL system , which was
written at Carnegie Mellon Universi... | null | https://raw.githubusercontent.com/nikodemus/SBCL/3c11847d1e12db89b24a7887b18a137c45ed4661/src/compiler/tn.lisp | lisp | This file contains utilities used for creating and manipulating
TNs, and some other more assorted IR2 utilities.
more information.
public domain. The software is in the public domain and is
provided with absolutely no warranty. See the COPYING and CREDITS
files for more information.
in this component.
Iterate... |
This software is part of the SBCL system . See the README file for
This software is derived from the CMU CL system , which was
written at Carnegie Mellon University and released into the
(in-package "SB!C")
The component that is currently being compiled . TNs are allocated
(defvar *component-being-compiled*)... |
26fe81c30079ff6dda06b3aa95fcaf78ba18bfdadd22ebe8ad51e9d94b5135a9 | borodust/alien-works | entity.lisp | (cl:in-package :%alien-works.filament)
(defun create-entity ()
(let ((mem (iffi:intricate-alloc '%filament:utils+entity)))
(%filament:utils+create
'(claw-utils:claw-pointer %filament:utils+entity) mem
'(claw-utils:claw-pointer %filament:utils+entity-manager) (%filament:utils+entity-manager+get))))
(... | null | https://raw.githubusercontent.com/borodust/alien-works/8e15ca1d7000b1ae287b458185f53dc9ad019f56/src/graphics/filament/entity.lisp | lisp | (cl:in-package :%alien-works.filament)
(defun create-entity ()
(let ((mem (iffi:intricate-alloc '%filament:utils+entity)))
(%filament:utils+create
'(claw-utils:claw-pointer %filament:utils+entity) mem
'(claw-utils:claw-pointer %filament:utils+entity-manager) (%filament:utils+entity-manager+get))))
(... | |
0dd042f35f0d6d7a26339772d4f09b2f5fbe190f7a917fde95742578fa94a04f | aeolus-project/zephyrus | json_versions_v.ml | (* Auto-generated from "json_versions.atd" *)
type version = Json_versions_t.version
type versioned_object = Json_versions_t.versioned_object = {
version: version
}
let validate_version = (
fun x -> 0 <= x && x <= 1
)
let validate_versioned_object = (
fun path x ->
(
validate_version
) (`Field "... | null | https://raw.githubusercontent.com/aeolus-project/zephyrus/0b52de4038bbab724e6a9628430165a7f09f77ae/src/atd/json_versions_v.ml | ocaml | Auto-generated from "json_versions.atd" |
type version = Json_versions_t.version
type versioned_object = Json_versions_t.versioned_object = {
version: version
}
let validate_version = (
fun x -> 0 <= x && x <= 1
)
let validate_versioned_object = (
fun path x ->
(
validate_version
) (`Field "version" :: path) x.version
)
let create_versi... |
4cfb01c2d97c4879a2fc134f3a8c8c775ff5b7345fc5a4484acbf690e4db71c0 | elaforge/karya | Vl1Spec.hs | Copyright 2013
-- This program is distributed under the terms of the GNU General Public
-- License 3.0, see COPYING or -3.0.txt
# OPTIONS_GHC -fno - warn - unused - binds #
In ghc 8 change to :
{ - # OPTIONS_GHC -Wno - warn - unused - top - binds # - }
| Utilities to encode and generate vl1 sysex dumps .
--... | null | https://raw.githubusercontent.com/elaforge/karya/471a2131f5a68b3b10b1a138e6f9ed1282980a18/User/Elaforge/Instrument/Vl1Spec.hs | haskell | This program is distributed under the terms of the GNU General Public
License 3.0, see COPYING or -3.0.txt
Basic parsing and modification works, but some fields, like effects, are not
parsed.
spec sheet says there's a 'device number' after yamaha_code
size counts from 'L' char until the checksum
* config
* sp... | Copyright 2013
# OPTIONS_GHC -fno - warn - unused - binds #
In ghc 8 change to :
{ - # OPTIONS_GHC -Wno - warn - unused - top - binds # - }
| Utilities to encode and generate vl1 sysex dumps .
TODO
module User.Elaforge.Instrument.Vl1Spec (
encode, decode
, vl1_header
, patch_spec
, decode... |
d91e80d59ef69fe9dbb905c266c2326ef398a11284c9678d1c3305a50f7cc938 | smallmelon/sdzmmo | pp_meridian.erl | %%%--------------------------------------
%%% @Module : pp_meridian
@Author : hc
@Email :
@Created : 2010.08.09
%%% @Description: ����ϵͳ����
%%%--------------------------------------
-module(pp_meridian).
-export([handle/3]).
-include("common.hrl").
-include("record.hrl").
%经脉开脉
handle(... | null | https://raw.githubusercontent.com/smallmelon/sdzmmo/254ff430481de474527c0e96202c63fb0d2c29d2/src/pp/pp_meridian.erl | erlang | --------------------------------------
@Module : pp_meridian
@Description: ����ϵͳ����
--------------------------------------
经脉开脉
io:format("PlayerId=~p~n",[PlayerId]),
经脉属性
| @Author : hc
@Email :
@Created : 2010.08.09
-module(pp_meridian).
-export([handle/3]).
-include("common.hrl").
-include("record.hrl").
handle(25010, PlayerStatus, MeridianId) ->
Value = lib_meridian:id_to_type(MeridianId),
{_, _,MerdianValue,Err} = mod_meridian:meridian_active(Player... |
15650a8a47524a4154ea7fe86e2bf1d9d8300f0c6377c294d5d0195c58457a48 | callum-oakley/advent-of-code | 15.clj | (ns aoc.2020.15
(:require
[clojure.string :as str]
[clojure.test :refer [deftest is]]))
(defn parse [s]
(map read-string (str/split s #",")))
sequence -igrc
(defn turn [[prev i mem]]
(let [seen (get mem prev)
age (if seen (- i seen) 0)]
[age (inc i) (assoc! mem prev i)]))
(defn game [n s... | null | https://raw.githubusercontent.com/callum-oakley/advent-of-code/e24c126fdfa4852c1380f5d1b1fda96da1ebe553/src/aoc/2020/15.clj | clojure | (ns aoc.2020.15
(:require
[clojure.string :as str]
[clojure.test :refer [deftest is]]))
(defn parse [s]
(map read-string (str/split s #",")))
sequence -igrc
(defn turn [[prev i mem]]
(let [seen (get mem prev)
age (if seen (- i seen) 0)]
[age (inc i) (assoc! mem prev i)]))
(defn game [n s... | |
4562c379853a95874d6e7b9f604931cb8e4eee07de16dad503f15341d9d7b8ec | philnguyen/soft-contract | foldl.rkt | #lang racket
(require soft-contract/fake-contract)
(define (foldl f z xs)
(if (empty? xs) z
(foldl f (f (car xs) z) (cdr xs))))
(provide/contract
[foldl ((any/c any/c . -> . any/c) any/c (listof any/c) . -> . any/c)])
| null | https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/programs/safe/sym-exe/foldl.rkt | racket | #lang racket
(require soft-contract/fake-contract)
(define (foldl f z xs)
(if (empty? xs) z
(foldl f (f (car xs) z) (cdr xs))))
(provide/contract
[foldl ((any/c any/c . -> . any/c) any/c (listof any/c) . -> . any/c)])
| |
69ed5feb6ee23aab6d075dc2252cc14e1a04945cf744dbae69c8ba87c556a2f2 | jyh/metaprl | czf_itt_group_bvd.mli |
* Group Builder .
*
* ----------------------------------------------------------------
*
* This file is part of MetaPRL , a modular , higher order
* logical framework that provides a logical programming
* environment for OCaml and other languages .
*
* See the file doc / htmlman / default.htm... | null | https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/czf/czf_itt_group_bvd.mli | ocaml | ***********************************************************************
* TERMS *
***********************************************************************
***********************************************************************
* DEFINITIONS ... |
* Group Builder .
*
* ----------------------------------------------------------------
*
* This file is part of MetaPRL , a modular , higher order
* logical framework that provides a logical programming
* environment for OCaml and other languages .
*
* See the file doc / htmlman / default.htm... |
4e78cc1e9af76e88b94f9bd8507dca4009e7b2a01173220d0761a3d017794d52 | sharplispers/bknr.datastore | encoding.lisp | ;;;; Reading and writing Lisp objects in a binary format.
;;; Design:
;;;
;;; - compact storage requirements
;;; - no arbitary limits (e.g. integers may be arbitarily large)
;;; - high read and write performance, thus no checking for cyclic data
;;; For every supported data type, a character is defined as tag d... | null | https://raw.githubusercontent.com/sharplispers/bknr.datastore/1f0ff221f4307d2b88b9f3d81857df69687c0097/src/data/encoding.lisp | lisp | Reading and writing Lisp objects in a binary format.
Design:
- compact storage requirements
- no arbitary limits (e.g. integers may be arbitarily large)
- high read and write performance, thus no checking for cyclic data
For every supported data type, a character is defined as tag denoting
the type when r... |
The functions ENCODE and DECODE encode and decode an arbitary object .
Upon write , ENCODE determines the data type from the lisp data type .
called directly . ENCODE - INTEGER encodes an integer , for example .
At certain file positions , only one datatype makes sense ( i.e. when
% ENCODE - INTEGER , exi... |
9cae7417453e95581ec027f26f13e55c35c4f56e3f99e506d2e4b130cdfd48db | ygmpkk/house | Instruments.hs | module Instruments where
import GadgetsPrelude
import Components
import EditorG
import Display
meterWire :: ComponentClass s => (Wire a -> Gadget -> Process s) -> Process s
meterWire c =
wire $ \i ->
wire $ \o ->
wire $ \d ->
let monitor :: In a -> Out a -> Out (Change Int) -> Component
monitor i o d ... | null | https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/kernel/Gadgets/lib/Instruments.hs | haskell | module Instruments where
import GadgetsPrelude
import Components
import EditorG
import Display
meterWire :: ComponentClass s => (Wire a -> Gadget -> Process s) -> Process s
meterWire c =
wire $ \i ->
wire $ \o ->
wire $ \d ->
let monitor :: In a -> Out a -> Out (Change Int) -> Component
monitor i o d ... | |
c56a3404be380be396a947c1838d11a514d65db2b992fcacc671b6b170048677 | static-analysis-engineering/codehawk | jCHTaintLoopUtils.ml | = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
CodeHawk Java Analyzer
Author :
------------------------------------------------------------------------------
The MIT License ( MIT )
... | null | https://raw.githubusercontent.com/static-analysis-engineering/codehawk/98ced4d5e6d7989575092df232759afc2cb851f6/CodeHawk/CHJ/jchpoly/jCHTaintLoopUtils.ml | ocaml | jchlib
jchsys
for each variable, the list of loops where they are created in
Stores the loops that a variable is a bound for
Why not change the order here there is no need for List.rev later on ? | = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
CodeHawk Java Analyzer
Author :
------------------------------------------------------------------------------
The MIT License ( MIT )
... |
a8a8e4cac9a705d053d852a379e786c0d3841a8d36a7942f9c3f00a275fd7e56 | cnuernber/avclj | swscale.clj | (ns avclj.swscale
(:require [tech.v3.datatype.ffi :as dt-ffi]
[avclj.avcodec]))
(dt-ffi/define-library!
lib
'{:swscale_version {:rettype :int32
:doc "Get library version"}
:swscale_license {:rettype :string
:doc "Get library license"}
:swscale_conf... | null | https://raw.githubusercontent.com/cnuernber/avclj/d0ea7338110712f29d3f0b6f127d71d59fa4552b/src/avclj/swscale.clj | clojure | internal chrominance subsampling info
input subsampling info | (ns avclj.swscale
(:require [tech.v3.datatype.ffi :as dt-ffi]
[avclj.avcodec]))
(dt-ffi/define-library!
lib
'{:swscale_version {:rettype :int32
:doc "Get library version"}
:swscale_license {:rettype :string
:doc "Get library license"}
:swscale_conf... |
85c4893aee51477e6e883268d2368c8c36e5605a9f5129d719938446a9aa12a0 | RefactoringTools/HaRe | A3.expected.hs | module AddOneParameter.A3 where
import AddOneParameter.D3
main = (sumSquares sumSquares_y) [1..4]
| null | https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/test/testdata/AddOneParameter/A3.expected.hs | haskell | module AddOneParameter.A3 where
import AddOneParameter.D3
main = (sumSquares sumSquares_y) [1..4]
| |
9856b098ed28f998ce0b38c83dc5385d74a9ab52be7492bad17fc62eeb5a32ab | shirok/Gauche | plumbing.scm | ;;;
;;; control.plumbing - Ports as communication channel
;;;
Copyright ( c ) 2023 < >
;;;
;;; Redistribution and use in source and binary forms, with or without
;;; modification, are permitted provided that the following conditions
;;; are met:
;;;
;;; 1. Redistributions of source code must retain t... | null | https://raw.githubusercontent.com/shirok/Gauche/5df8f510bd3a9929508a5e92e04becd28e944a49/lib/control/plumbing.scm | scheme |
control.plumbing - Ports as communication channel
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and th... | Copyright ( c ) 2023 < >
" AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT
SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED
LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING
(define-module control.plumbing
(use data.queue... |
10a36beca4cd2d9c6872bd417098512f8338609badd6c624e009144a870b1992 | gregtatcam/imaplet-lwt | response.mli |
* Copyright ( c ) 2013 - 2014 < >
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
*
* THE SOFTWARE IS PROVIDED " AS IS " AND... | null | https://raw.githubusercontent.com/gregtatcam/imaplet-lwt/d7b51253e79cffa97e98ab899ed833cd7cb44bb6/lib/commands/response.mli | ocaml |
* Copyright ( c ) 2013 - 2014 < >
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
*
* THE SOFTWARE IS PROVIDED " AS IS " AND... | |
6e3f6082e1c0a38842a275523f8afb28538ba70b61602ae409abf637fcf153a8 | Frama-C/Frama-C-snapshot | value_util.mli | (**************************************************************************)
(* *)
This file is part of Frama - C.
(* *)
Copyright ... | null | https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/value/utils/value_util.mli | ocaml | ************************************************************************
alternatives)
... | This file is part of Frama - C.
Copyright ( C ) 2007 - 2019
CEA ( Commissariat à l'énergie atomique et aux énergies
Lesser General Public License as published by the Free Software
Foundation , v... |
3bbf5e3de77651efb6689f7e25dcf9b83ac4eea46514c0bce80d72fefe319d69 | raspasov/neversleep | persistent_durable_map_protocol.clj | (ns neversleep-db.persistent-durable-map-protocol)
(defprotocol DurableNode
"Write a book about this one"
(n-assoc [this shift hash key val added-leaf node-collector blob-id entity-id]
[this edit shift hash key val added-leaf node-collector blob-id entity-id])
(n-without [this shift hash key node-coll... | null | https://raw.githubusercontent.com/raspasov/neversleep/7fd968f4ab20fa6ef71e1049e3eec289ea6691e4/src/neversleep_db/persistent_durable_map_protocol.clj | clojure | (edit-and-remove-pair! [this edit bit i blob-id])
(bitmap-bit-xor! [this new-bit])
ArrayNode specific
Protobuf | (ns neversleep-db.persistent-durable-map-protocol)
(defprotocol DurableNode
"Write a book about this one"
(n-assoc [this shift hash key val added-leaf node-collector blob-id entity-id]
[this edit shift hash key val added-leaf node-collector blob-id entity-id])
(n-without [this shift hash key node-coll... |
2776045176c243706ca6d69e82102ec61acb8dc9c0b740356eeff206515259a2 | brendanhay/gogol | List.hs | # LANGUAGE DataKinds #
# LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
# LANGUAGE DuplicateRecordFields #
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE LambdaCase #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE PatternSynonyms #
# LANGUAGE RecordWildCards #
{-# LANGUAGE St... | null | https://raw.githubusercontent.com/brendanhay/gogol/fffd4d98a1996d0ffd4cf64545c5e8af9c976cda/lib/services/gogol-shopping-content/gen/Gogol/ShoppingContent/Content/Collectionstatuses/List.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE StrictData #
|
Stability : auto-generated
* Resource
** Constructing a Request
'ContentCollectionstatusesList' request conforms to.
/See:/ 'newContentCollectionstatusesList' smart constructor.
| V1 error format.
| OAuth access token.
| Required. The ID of the acco... | # LANGUAGE DataKinds #
# LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
# LANGUAGE DuplicateRecordFields #
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE LambdaCase #
# LANGUAGE PatternSynonyms #
# LANGUAGE RecordWildCards #
# LANGUAGE TypeFamilies #
# LANGUAGE TypeOperators... |
bf257520446ba3ef40eae05eb6a8e528d92a6b62e51a0d9a376a4f9d1d1a019a | gas2serra/cldk | package.lisp | (in-package :common-lisp-user)
(defpackage :clim-fb
(:use :clim :clim-lisp :clim-backend :cldk-backend :cldk-render-extensions)
(:import-from :climi
#:basic-medium
#:port-allocate-pixmap
#:port-deallocate-pixmap
#:port-lookup-mirror
#:... | null | https://raw.githubusercontent.com/gas2serra/cldk/c979a1f2d4422ae9fb765b3a177474bc5719b036/mcclim/Backends/StandardFB/package.lisp | lisp | (in-package :common-lisp-user)
(defpackage :clim-fb
(:use :clim :clim-lisp :clim-backend :cldk-backend :cldk-render-extensions)
(:import-from :climi
#:basic-medium
#:port-allocate-pixmap
#:port-deallocate-pixmap
#:port-lookup-mirror
#:... | |
1594a52847266aba2a22be92ba8abed0bc4cf91fdccc80c2aeb3517a67870c92 | mnieper/unsyntax | 37.scm | Copyright © ( 2020 ) .
;; This file is part of unsyntax.
;; Permission is hereby granted, free of charge, to any person
;; obtaining a copy of this software and associated documentation files
( the " Software " ) , to deal in the Software without restriction ,
;; including without limitation the rights to use... | null | https://raw.githubusercontent.com/mnieper/unsyntax/cd12891805a93229255ff0f2c46cf0e2b5316c7c/src/srfi/37.scm | scheme | This file is part of unsyntax.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
including without limitation the rights to use, copy, modify, merge,
subject to the following conditions:
The above copyright notice and this permission n... | Copyright © ( 2020 ) .
( the " Software " ) , to deal in the Software without restriction ,
publish , distribute , sublicense , and/or sell copies of the Software ,
and to permit persons to whom the Software is furnished to do so ,
portions of the Software .
THE SOFTWARE IS PROVIDED " AS IS " , WITH... |
92fbeee4649147dab6dcf8c87733a6502434b342ddd96f363d355fc19a59df5b | lingnand/VIMonad | Replace.hs | {-# LANGUAGE DeriveDataTypeable #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Util.Replace
Copyright : ( c ) Jan Vornberger 2009
-- License : BSD3-style (see LICENSE)
--
Maintainer : < >
-- Stability : unstable
-- Portability : u... | null | https://raw.githubusercontent.com/lingnand/VIMonad/048e419fc4ef57a5235dbaeef8890faf6956b574/XMonadContrib/XMonad/Util/Replace.hs | haskell | # LANGUAGE DeriveDataTypeable #
---------------------------------------------------------------------------
|
Module : XMonad.Util.Replace
License : BSD3-style (see LICENSE)
Stability : unstable
Portability : unportable
Implements a @--replace@ behavior outside of core.
-------------------------... | Copyright : ( c ) Jan Vornberger 2009
Maintainer : < >
module XMonad.Util.Replace
replace
) where
import XMonad
import Data.Function
import Control.Monad
results in xmonad replacing the currently running WM regardless of the
> import XMonad
> import XMonad . Util . Replace
from w... |
d56568690288fe1f77a59ba2507fe8c9a2ae1e39dd4d88a5d8937ee4b125b41d | zero-one-group/geni | basic_statistics.clj | (ns examples.basic-statistics
(:require
[clojure.pprint]
[zero-one.geni.core :as g]
[zero-one.geni.ml :as ml]
[zero-one.geni.test-resources :refer [melbourne-df]]))
(def dataframe
(-> (melbourne-df)
(g/limit 3)
(g/select
{:location (g/map (g/lit "suburb") :Suburb
... | null | https://raw.githubusercontent.com/zero-one-group/geni/4dbabf8315d85cc1526e04bca7e4cb7b75c21ac1/examples/basic_statistics.clj | clojure | =>
({:location
"region" "Northern Metropolitan",
{:location
"region" "Northern Metropolitan",
{:location
"region" "Northern Metropolitan",
:coord {"lat" -37.8093, "long" 144.9944}})
=>
root
|-- Suburb: string (nullable = true)
|-- Address: string (nullable = true)
|-- Rooms: long (nullable = tru... | (ns examples.basic-statistics
(:require
[clojure.pprint]
[zero-one.geni.core :as g]
[zero-one.geni.ml :as ml]
[zero-one.geni.test-resources :refer [melbourne-df]]))
(def dataframe
(-> (melbourne-df)
(g/limit 3)
(g/select
{:location (g/map (g/lit "suburb") :Suburb
... |
66b577ea168d7a3696018d5016035836445f6629098b1c2dd063eed44e71a2d7 | HealthSamurai/re-form | dev.cljs | (ns ^:figwheel-no-load re-form.dev
(:require [re-form.core :as core]
[figwheel.client :as figwheel :include-macros true]
[re-frisk.core :refer [enable-re-frisk!]]
[devtools.core :as devtools]))
(devtools/install!)
(enable-console-print!)
(figwheel/watch-and-reload
:websocket-u... | null | https://raw.githubusercontent.com/HealthSamurai/re-form/810321d67e3946876c834998e3472d0693846953/env/dev/cljs/re_form/dev.cljs | clojure | (ns ^:figwheel-no-load re-form.dev
(:require [re-form.core :as core]
[figwheel.client :as figwheel :include-macros true]
[re-frisk.core :refer [enable-re-frisk!]]
[devtools.core :as devtools]))
(devtools/install!)
(enable-console-print!)
(figwheel/watch-and-reload
:websocket-u... | |
8da7b82c2eb349f33d160ce2d95c09f3cbf98efddbc3457002b6e26678202dba | TakaiKinoko/Cornell_CS3110_OCaml | 01pipeline.ml | let (|>) x f = f x
(** |> can be used as infix op *)
let () = print_endline(string_of_int (5 |> (fun x -> 2*x))) | null | https://raw.githubusercontent.com/TakaiKinoko/Cornell_CS3110_OCaml/0a830bc50a5e39f010074dc289161426294cad1d/Chap4_Higher_order_programming/01pipeline.ml | ocaml | * |> can be used as infix op | let (|>) x f = f x
let () = print_endline(string_of_int (5 |> (fun x -> 2*x))) |
a0373cf0b75297219ee9235ea518bfc41c8f2a106acea0a48e280e04a5f33b3c | austral/austral | StatementParserTest.ml |
Part of the Austral project , under the Apache License v2.0 with LLVM Exceptions .
See LICENSE file for details .
SPDX - License - Identifier : Apache-2.0 WITH LLVM - exception
Part of the Austral project, under the Apache License v2.0 with LLVM Exceptions.
See LICENSE file for details.
SPDX... | null | https://raw.githubusercontent.com/austral/austral/69b6f7de36cc9576483acd1ac4a31bf52074dbd1/test/StatementParserTest.ml | ocaml | Discarding block |
Part of the Austral project , under the Apache License v2.0 with LLVM Exceptions .
See LICENSE file for details .
SPDX - License - Identifier : Apache-2.0 WITH LLVM - exception
Part of the Austral project, under the Apache License v2.0 with LLVM Exceptions.
See LICENSE file for details.
SPDX... |
9d44ce0591badb0904a2de5b4d9e685d91a8184650c18224da16da6a8823e118 | kaznum/programming_in_ocaml_exercise | tablemain.ml | let ( <<< ) table (key, content) = Table.add key content table
let table = Table.empty
<<< ("a", "the first letter of the English alphabet")
<<< ("b", "the second letter of the English alphabet")
<<< ("zzz", "sleeping noise")
let () =
match Table.retrieve "a" table with
Some x -> print_string x; print_n... | null | https://raw.githubusercontent.com/kaznum/programming_in_ocaml_exercise/6f6a5d62a7a87a1c93561db88f08ae4e445b7d4e/ch10/10.2.2/tablemain.ml | ocaml | let ( <<< ) table (key, content) = Table.add key content table
let table = Table.empty
<<< ("a", "the first letter of the English alphabet")
<<< ("b", "the second letter of the English alphabet")
<<< ("zzz", "sleeping noise")
let () =
match Table.retrieve "a" table with
Some x -> print_string x; print_n... | |
8cc2e47d59254db3fd0b824a0d862f325a5b2e2246df9907b5c3314e4bb08de5 | gethop-dev/hop-cli | logging.clj | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
;; file, You can obtain one at /
{{=<< >>=}}
(ns <<project.name>>.api.logging
(:require [<<project.name>>.service.timbre :as srv.timbre]
[<<project.name>>.api.util... | null | https://raw.githubusercontent.com/gethop-dev/hop-cli/de0fc57dd756806bc40316930752c3c6edc2da3e/resources/bootstrap/profiles/observability/runtime-configurable-logging/app/src/%7B%7Bproject.files-name%7D%7D/api/logging.clj | clojure | file, You can obtain one at /
TODO The API endpoints must only be available for privileged users.
This fake middleware will always deny the access to the API.
So you must implement your own authentication/authorization middleware. | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
{{=<< >>=}}
(ns <<project.name>>.api.logging
(:require [<<project.name>>.service.timbre :as srv.timbre]
[<<project.name>>.api.util.responses :as util.r]
... |
21d58f0bd9dc920b69c459b9adbb730ad59c06112f4b21a9c38c89ff18a9e8dd | cedlemo/OCaml-libmpdclient | Protocol.ml |
* Copyright 2017 - 2018 ,
* This file is part of .
*
* OCaml - libmpdclient 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
* any later versio... | null | https://raw.githubusercontent.com/cedlemo/OCaml-libmpdclient/49922f4fa0c1471324c613301675ffc06ff3147c/lib/Protocol.ml | ocaml | * Type and functions used to check if the current response is full based on
pattern defined by the mpd protocol.
Check if there is an empty response that follow an noidle command |
* Copyright 2017 - 2018 ,
* This file is part of .
*
* OCaml - libmpdclient 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
* any later versio... |
740cf3347deb752c2d08f85b36b7d9e9a4c02cec29573965c3abf28a56b4e623 | ygmpkk/house | CError.hs | module CError (module Foreign.C.Error) where
import Foreign.C.Error
| null | https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/haskell98/CError.hs | haskell | module CError (module Foreign.C.Error) where
import Foreign.C.Error
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.