_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
8c7a58fdf4f684795496e776da4d6e5d515c5213b16d710275859093e0bc52c6
aaronc/ClojureClrEx
impl.clj
Copyright ( c ) . All rights reserved . The use and distribution terms for this software are covered by the Eclipse ;; Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this ;; distribution. By using this software in any fashion, you are ;; agreeing to be bound ...
null
https://raw.githubusercontent.com/aaronc/ClojureClrEx/465e05b5872816056544c89b47c1997f6067ae89/src/clojure/tools/logging/impl.clj
clojure
Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.
Copyright ( c ) . All rights reserved . The use and distribution terms for this software are covered by the Eclipse (ns ^{:author "Alex Taggart" :doc "Protocols used to allow access to logging implementations. This namespace only need be used by those providing logging imp...
70e79b0beda9645a51d7449ea14151702263c68c87fffc114e5b263555da620f
sebastiaanvisser/clay
Clay.hs
module Clay ( -- * Rendering stylesheets to CSS. render , renderWith , putCss , pretty , compact , renderSelector * The @Css@ monad for collecting style rules . , Css , (?) , (<?) , (&) , root , pop , (-:) -- ** Comments -- $comments , commenting -- * The selector language. , Selector , Refinement -- ** E...
null
https://raw.githubusercontent.com/sebastiaanvisser/clay/16f55a5c6ab7fd98e39cedf852bd3400a02ac45f/src/Clay.hs
haskell
* Rendering stylesheets to CSS. ** Comments $comments * The selector language. ** Elements selectors. ** Refining selectors. ** Attribute based refining. * Apply media queries. $media * Apply key-frame animation. * Define font-faces. * !important * Import other CSS files * Pseudo elements and classes. * ...
module Clay ( render , renderWith , putCss , pretty , compact , renderSelector * The @Css@ monad for collecting style rules . , Css , (?) , (<?) , (&) , root , pop , (-:) , commenting , Selector , Refinement , star , element , (**) , (|>) , (#) , (|+) , (|~) , byId , byClass , pseudo , func , attr , ...
e54439d2d044754db72384da15827e3c9ece62835d8a8d170b53089215cf1bec
rabbitmq/rabbitmq-federation
Elixir.RabbitMQ.CLI.Ctl.Commands.FederationStatusCommand.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . %% -module('Elixir.RabbitMQ.CLI.Ctl.Commands.Federa...
null
https://raw.githubusercontent.com/rabbitmq/rabbitmq-federation/960b8214487ae2495cd39afbbd3a2c4d9ea37985/src/Elixir.RabbitMQ.CLI.Ctl.Commands.FederationStatusCommand.erl
erlang
---------------------------------------------------------------------------- Callbacks ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- Formatting ----------------------------------------------------------------...
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . -module('Elixir.RabbitMQ.CLI.Ctl.Commands.FederationSt...
effb03839c24f43eff5d91200490dfb90c57381dc29afd5558475aa44ba717dd
audreyt/openafp
DXD.hs
module OpenAFP.Records.AFP.DXD where import OpenAFP.Types import OpenAFP.Internals data DXD = DXD { dxd_Type :: !N3 ,dxd_ :: !N3 ,dxd :: !NStr } deriving (Show, Typeable)
null
https://raw.githubusercontent.com/audreyt/openafp/178e0dd427479ac7b8b461e05c263e52dd614b73/src/OpenAFP/Records/AFP/DXD.hs
haskell
module OpenAFP.Records.AFP.DXD where import OpenAFP.Types import OpenAFP.Internals data DXD = DXD { dxd_Type :: !N3 ,dxd_ :: !N3 ,dxd :: !NStr } deriving (Show, Typeable)
fccfe9ebb97d233a2b01dcd0d68a06b5baa86574dec3466ec35b73c539abc8c6
input-output-hk/marlowe-cardano
Sign.hs
module Language.Marlowe.Runtime.App.Sign ( sign ) where import Language.Marlowe.Runtime.Cardano.Api (fromCardanoTxId) import Language.Marlowe.Runtime.ChainSync.Api (TxId) import qualified Cardano.Api as C ( IsShelleyBasedEra , PaymentExtendedKey , PaymentKey , ShelleyWitnessSigningKey(WitnessPaymentExt...
null
https://raw.githubusercontent.com/input-output-hk/marlowe-cardano/3c65414ea55ac58d12ea974fa40c4f0deb4cc0a6/marlowe-apps/src/Language/Marlowe/Runtime/App/Sign.hs
haskell
module Language.Marlowe.Runtime.App.Sign ( sign ) where import Language.Marlowe.Runtime.Cardano.Api (fromCardanoTxId) import Language.Marlowe.Runtime.ChainSync.Api (TxId) import qualified Cardano.Api as C ( IsShelleyBasedEra , PaymentExtendedKey , PaymentKey , ShelleyWitnessSigningKey(WitnessPaymentExt...
b7e8a99b4bc07bf68da2ca050958b244a328a6acda7dc6fbca8c5f380cd48bb0
ocamllabs/ocaml-modular-implicits
arrayLabels.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/stdlib/arrayLabels.mli
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with external length : 'a array -> int = "%...
4d75caa17b63b4ef6ff0395fc6606542fdbb77eb990b861f09e0b4f15c0b2a69
petro-rudenko/cdr-analysis
topology.clj
(ns com.cybervisiontech.cdr.realtime.topology (:require [backtype.storm [clojure :refer [topology spout-spec bolt-spec]]]) (:require [com.cybervisiontech.cdr.realtime [spouts :refer :all] [bolts :refer :all]] :verbose) (:gen-class)) (defn mk-topology [] (topology {"1" (spout-...
null
https://raw.githubusercontent.com/petro-rudenko/cdr-analysis/5e583b0cca30c4faf474507998bd7a9a0380f569/src/com/cybervisiontech/cdr/realtime/topology.clj
clojure
This bolt would make aggregation on calling party
(ns com.cybervisiontech.cdr.realtime.topology (:require [backtype.storm [clojure :refer [topology spout-spec bolt-spec]]]) (:require [com.cybervisiontech.cdr.realtime [spouts :refer :all] [bolts :refer :all]] :verbose) (:gen-class)) (defn mk-topology [] (topology {"1" (spout-...
99c265a94e2e13877afb194e708f3fc798a7f6bc73742e332d40662e1fc502a8
mindreframer/clojure-stuff
project.clj
(defproject korma "0.4.1-SNAPSHOT" :description "Tasty SQL for Clojure" :url "" :mailing-list {:name "Korma Google Group" :subscribe ""} :codox {:exclude [korma.sql.engine korma.sql.fns korma.sql.utils] :src-dir-uri "" :src-linenum-anc...
null
https://raw.githubusercontent.com/mindreframer/clojure-stuff/1e761b2dacbbfbeec6f20530f136767e788e0fe3/github.com/korma/Korma/project.clj
clojure
(defproject korma "0.4.1-SNAPSHOT" :description "Tasty SQL for Clojure" :url "" :mailing-list {:name "Korma Google Group" :subscribe ""} :codox {:exclude [korma.sql.engine korma.sql.fns korma.sql.utils] :src-dir-uri "" :src-linenum-anc...
1052ff271ee7810011d645fd43a9b95b9e923223bb4ab52ffb713473adb93414
google/lisp-koans
asserts.lisp
Copyright 2013 Google Inc. ;;; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ;;; you may not use this file except in compliance with the License. ;;; You may obtain a copy of the License at ;;; ;;; -2.0 ;;; ;;; Unless required by applicable law or agreed to in writing, software distrib...
null
https://raw.githubusercontent.com/google/lisp-koans/df5e58dc88429ef0ff202d0b45c21ce572144ba8/koans/asserts.lisp
lisp
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 or implied. See the License for the specific language governing per...
Copyright 2013 Google Inc. distributed under the License is distributed on an " AS IS " BASIS , ╭ ╮ ╭ ╮ /////// ╭ ┳ ┳ ╮ ╭ ┳ ┳ ┳ ╮ ╭ ╮ ╭ ╮ ╰ ╯ ┫ ╭ ╮ ╭ ╮ ╭ ╮ ┫ ━ ━ ┫ ...
f8cb18c9f82febccbacc4a8588807217385337c60bedd46ee7dd2a838e2a40a6
mirage/ocaml-openflow
ofcontroller.ml
* Copyright ( c ) 2005 - 2011 < > * * 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 " AN...
null
https://raw.githubusercontent.com/mirage/ocaml-openflow/dcda113745e8edc61b5508eb8ac2d1e864e1a2df/lib/ofcontroller.ml
ocaml
Reply to HELLO with a HELLO and a feature request Reply to ECHO requests At the moment ignore echo responses Generate a datapath join event Generate a packet_in event
* Copyright ( c ) 2005 - 2011 < > * * 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 " AN...
ab9f1e108c07e1d5ae8532e9dcb95e00b4e9909a9cb0a6fa2fb5be2af53f4851
comby-tools/comby
ripgrep.ml
open Core open Lwt let debug = Sys.getenv "DEBUG_COMBY" |> Option.is_some let run ~pattern ~args = let options = [ "--files-with-matches"; "--multiline" ] in let pattern = Format.sprintf {|'%s'|} pattern in let command = ("rg" :: options) @ args @ [ pattern ] |> String.concat ~sep:" " in if debug then Format....
null
https://raw.githubusercontent.com/comby-tools/comby/a36c63fb1e686adaff3e90aed00e88404f8cda78/lib/app/configuration/ripgrep.ml
ocaml
no matches
open Core open Lwt let debug = Sys.getenv "DEBUG_COMBY" |> Option.is_some let run ~pattern ~args = let options = [ "--files-with-matches"; "--multiline" ] in let pattern = Format.sprintf {|'%s'|} pattern in let command = ("rg" :: options) @ args @ [ pattern ] |> String.concat ~sep:" " in if debug then Format....
5cde4993be719117e817917a7050f7b86e2666255cf6fb90b0d246f721af8081
yogthos/reagent-example
services.clj
(ns reagent-example.routes.services (:use compojure.core) (:require [reagent-example.layout :as layout] [noir.response :refer [edn]] [clojure.pprint :refer [pprint]])) (defn save-document [doc] (pprint doc) {:status "ok"}) (defroutes service-routes (POST "/save" {:keys [body-params]}...
null
https://raw.githubusercontent.com/yogthos/reagent-example/2512a61dfd8c00169af05fce253920567182095e/src/reagent_example/routes/services.clj
clojure
(ns reagent-example.routes.services (:use compojure.core) (:require [reagent-example.layout :as layout] [noir.response :refer [edn]] [clojure.pprint :refer [pprint]])) (defn save-document [doc] (pprint doc) {:status "ok"}) (defroutes service-routes (POST "/save" {:keys [body-params]}...
7cdc4d540742818601465abc1613081ff01c8f69f461c05041b4a91121f36c1a
xray-tech/xorc-xray
run.clj
(ns re.handler.run (:require [ataraxy.response :as response] [cheshire.generate :as cheshire] [integrant.core :as ig] [qbits.alia.uuid :as uuid] [re.boundary.programs :as programs] [re.oam :as oam] [re.pipeline :as pipeline] [slingsho...
null
https://raw.githubusercontent.com/xray-tech/xorc-xray/ee1c841067207c5952473dc8fb1f0b7d237976cb/src/re/handler/run.clj
clojure
(ns re.handler.run (:require [ataraxy.response :as response] [cheshire.generate :as cheshire] [integrant.core :as ig] [qbits.alia.uuid :as uuid] [re.boundary.programs :as programs] [re.oam :as oam] [re.pipeline :as pipeline] [slingsho...
1687a466b3e0ceb63ac7e8725938c4186d0bcf538576c5e5253f9a88814273dd
divs1210/streamer
core.clj
(ns streamer.core "Use transducers like normal collection functions!") (defmacro => "Thread coll through xforms, returning value from terminal. `coll` is a collection. `xforms` are functions like (map first) and (filter even) that return transducers. `terminal` is the last form in the `=>` body. It takes %...
null
https://raw.githubusercontent.com/divs1210/streamer/5e6976c5025007c7f6afa55251bc6081b43a78f4/src/streamer/core.clj
clojure
Terminal Forms ==============
(ns streamer.core "Use transducers like normal collection functions!") (defmacro => "Thread coll through xforms, returning value from terminal. `coll` is a collection. `xforms` are functions like (map first) and (filter even) that return transducers. `terminal` is the last form in the `=>` body. It takes %...
a376055a3510b4a487c903bc149c71f408cd81b816576a790ff944d3c03c2f12
jumarko/clojure-experiments
146_trees_into_tables.clj
(ns four-clojure.146-trees-into-tables ". for is great to traversing in a nested fashion") (defn my-flatten [map-of-maps] (into {} (for [[parent-key m] map-of-maps [child-key v] m] [[parent-key child-key] v]))) ;; this is the version submitted #_#(into {} (for [[parent-...
null
https://raw.githubusercontent.com/jumarko/clojure-experiments/f0f9c091959e7f54c3fb13d0585a793ebb09e4f9/src/clojure_experiments/four_clojure/146_trees_into_tables.clj
clojure
this is the version submitted
(ns four-clojure.146-trees-into-tables ". for is great to traversing in a nested fashion") (defn my-flatten [map-of-maps] (into {} (for [[parent-key m] map-of-maps [child-key v] m] [[parent-key child-key] v]))) #_#(into {} (for [[parent-key m] % [child-ke...
bb38c1f2094eb21ea090664c15a6e3f5699fbcbe8cad9edf84e136007fcd2527
faylang/fay
B.hs
module ImportList1.B where import Prelude import FFI x :: Double x = 2 y :: Double y = 2 data R = S { s1 :: Double, s2 :: Double } r :: R r = S 3 4 data X = Y Int (<<>>) :: Double -> Double -> Double (<<>>) = (+)
null
https://raw.githubusercontent.com/faylang/fay/8455d975f9f0db2ecc922410e43e484fbd134699/tests/ImportList1/B.hs
haskell
module ImportList1.B where import Prelude import FFI x :: Double x = 2 y :: Double y = 2 data R = S { s1 :: Double, s2 :: Double } r :: R r = S 3 4 data X = Y Int (<<>>) :: Double -> Double -> Double (<<>>) = (+)
880d8088a263d05cc77e76a7c6169a6308a8ebc5a05cc8ae75a4f5c09e8a4367
fulcrologic/semantic-ui-wrapper
ui_segment_inline.cljc
(ns com.fulcrologic.semantic-ui.elements.segment.ui-segment-inline (:require [com.fulcrologic.semantic-ui.factory-helpers :as h] #?(:cljs ["semantic-ui-react$SegmentInline" :as SegmentInline]))) (def ui-segment-inline "A placeholder segment can be inline. Props: - as (elementType): An element type...
null
https://raw.githubusercontent.com/fulcrologic/semantic-ui-wrapper/7bd53f445bc4ca7e052c69596dc089282671df6c/src/main/com/fulcrologic/semantic_ui/elements/segment/ui_segment_inline.cljc
clojure
(ns com.fulcrologic.semantic-ui.elements.segment.ui-segment-inline (:require [com.fulcrologic.semantic-ui.factory-helpers :as h] #?(:cljs ["semantic-ui-react$SegmentInline" :as SegmentInline]))) (def ui-segment-inline "A placeholder segment can be inline. Props: - as (elementType): An element type...
b56bc2103d92bc2eec127c668059e757f129e016d2fa969e0df0945e1c16503d
ZeusWPI/contests
pipes.hs
import Control.Applicative ((<$>)) import Control.Monad (replicateM, replicateM_) import Data.Bits (setBit, testBit) import Data.Char (chr, ord) import Data.List (delete, nub) import Data.Map (Map) import qualified Data.Map as M data Tile = Tile {tileU :: Bool, tileR :: Bool, tileD :: Bool, tileL :: Bool} | Un...
null
https://raw.githubusercontent.com/ZeusWPI/contests/d78aec91be3ce32a436d160cd7a13825d36bbf3a/2011-vpw/pipes.hs
haskell
Outside of grid
import Control.Applicative ((<$>)) import Control.Monad (replicateM, replicateM_) import Data.Bits (setBit, testBit) import Data.Char (chr, ord) import Data.List (delete, nub) import Data.Map (Map) import qualified Data.Map as M data Tile = Tile {tileU :: Bool, tileR :: Bool, tileD :: Bool, tileL :: Bool} | Un...
65f2855fd4424c09dc92d8bfdd662f25a0e782ed5316ed9664711b325ec67301
exercism/babashka
check_exercises.clj
(ns check-exercises (:require [clojure.string :as str] [clojure.test :refer [deftest is successful? run-tests]] [cheshire.core :as json])) (defn- ->snake_case [s] (str/replace s \- \_)) (deftest check-exercises (doseq [exercise (((json/parse-string (slurp "config.json")) "exercises") "practice") :...
null
https://raw.githubusercontent.com/exercism/babashka/12844558d5671b9bef8f6d83c97b75a7973b22e7/_test/check_exercises.clj
clojure
(ns check-exercises (:require [clojure.string :as str] [clojure.test :refer [deftest is successful? run-tests]] [cheshire.core :as json])) (defn- ->snake_case [s] (str/replace s \- \_)) (deftest check-exercises (doseq [exercise (((json/parse-string (slurp "config.json")) "exercises") "practice") :...
025acd47df01f0826bfad12b48f509993cc59192285ada3716a14e8220ff0187
mbutterick/aoc-racket
test2.rkt
#lang reader "main.rkt" ★★ b inc 5 if a > 1 a inc 1 if b < 5 c dec -10 if a >= 1 c inc -20 if c == 10
null
https://raw.githubusercontent.com/mbutterick/aoc-racket/2c6cb2f3ad876a91a82f33ce12844f7758b969d6/2017/d08/test2.rkt
racket
#lang reader "main.rkt" ★★ b inc 5 if a > 1 a inc 1 if b < 5 c dec -10 if a >= 1 c inc -20 if c == 10
04d7fbc488fd1059b68fd9087285d9eb54b799acb6f1395c21bf027a0772267b
metosin/fnhouse-swagger
makkara.clj
(ns fnhouse.makkara (:require [plumbing.core :refer [defnk]] [schema.core :as s])) (s/defschema Makkara {:id Long, :name s/Str, :size (s/enum :S :M :L)}) (s/defschema NewMakkara (dissoc Makkara :id)) (defnk $:makkara-id$GET "Gets a Makkara" {:responses {200 Makkara}} [[:request [:uri-args makkara...
null
https://raw.githubusercontent.com/metosin/fnhouse-swagger/69cdd92a5bb6466dce0c35e369147d7a2b598533/test/fnhouse/makkara.clj
clojure
(ns fnhouse.makkara (:require [plumbing.core :refer [defnk]] [schema.core :as s])) (s/defschema Makkara {:id Long, :name s/Str, :size (s/enum :S :M :L)}) (s/defschema NewMakkara (dissoc Makkara :id)) (defnk $:makkara-id$GET "Gets a Makkara" {:responses {200 Makkara}} [[:request [:uri-args makkara...
a5abe4c468e9fc4b4a6d262aca09a6b9938517660f492035ba851bff22a7abc7
janestreet/core_profiler
disabled.ml
open! Core module Profiler = struct let is_enabled = false let safe_to_delay () = () let dump_stats () = () let configure ?don't_require_core_profiler_env:_ ?offline_profiler_data_file:_ ?online_print_time_interval_secs:_ ?online_print_by_default:_ () = () end module Timer = s...
null
https://raw.githubusercontent.com/janestreet/core_profiler/3d1c0e61df848f5f25f78d64beea92b619b6d5d9/disabled_lib/disabled.ml
ocaml
let wrap_async _t f x = f x
open! Core module Profiler = struct let is_enabled = false let safe_to_delay () = () let dump_stats () = () let configure ?don't_require_core_profiler_env:_ ?offline_profiler_data_file:_ ?online_print_time_interval_secs:_ ?online_print_by_default:_ () = () end module Timer = s...
2639312762b534a996d55ef3062f93b609c11d49ed9eb31498fca6ae8b495e17
crategus/cl-cffi-gtk
rtest-gtk-settings.lisp
(def-suite gtk-settings :in gtk-suite) (in-suite gtk-settings) ;;; --- Types and Values ------------------------------------------------------ GtkSettingsValue deprecated ;;; GtkIMPreeditStyle (test gtk-im-preedit-style ;; Check the type (is (g-type-is-enum "GtkIMPre...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/7f5a09f78d8004a71efa82794265f2587fff98ab/test/rtest-gtk-settings.lisp
lisp
--- Types and Values ------------------------------------------------------ GtkIMPreeditStyle Check the type Check the type initializer Check the registered name Check the names Check the values Check the enum definition GtkIMStatusStyle Check the type Check the type initializer Check the registered...
(def-suite gtk-settings :in gtk-suite) (in-suite gtk-settings) GtkSettingsValue deprecated (test gtk-im-preedit-style (is (g-type-is-enum "GtkIMPreeditStyle")) (is (eq (gtype "GtkIMPreeditStyle") (gtype (foreign-funcall "gtk_im_preedit_style_get_type" g-size)))...
6039b96207eac77f08c5cf6ddfebbb14f65c96c26fb10e75bc06737d93947b19
mdsebald/link_blox_app
lblx_timer_min_on.erl
%%% @doc BLOCKTYPE %%% Minimum On Time %%% DESCRIPTION %%% Block output will follow block binary input value but %%% will remain true (on) for the minimum specified amount of time %%% LINKS %%% @end -module(lblx_timer_min_on). -author("Mark Sebald"). -include("../block_state.hrl"). %% =====...
null
https://raw.githubusercontent.com/mdsebald/link_blox_app/64034fa5854759ad16625b93e3dde65a9c65f615/src/block_types/lblx_timer_min_on.erl
erlang
@doc Minimum On Time DESCRIPTION Block output will follow block binary input value but will remain true (on) for the minimum specified amount of time LINKS @end ==================================================================== API functions =================================================...
BLOCKTYPE -module(lblx_timer_min_on). -author("Mark Sebald"). -include("../block_state.hrl"). -export([groups/0, version/0]). -export([create/2, create/4, create/5, upgrade/1, initialize/1, execute/2, delete/1]). -export([handle_info/2]). groups() -> [timing]. version() -> "0.1.0". -spec default_conf...
138270952e4d2bc79e8d2e56d72ebb37a015833a4e0993250368ac860f11f2c1
oakes/odoyle-rum-todo
start.clj
(ns odoyle-rum-todo.start (:require [ring.adapter.jetty :refer [run-jetty]] [ring.middleware.resource :refer [wrap-resource]] [ring.middleware.session :refer [wrap-session]] [ring.middleware.content-type :refer [wrap-content-type]] [ring.middleware.gzip :refer [wrap-gzi...
null
https://raw.githubusercontent.com/oakes/odoyle-rum-todo/15d6dca44ec5ffdb06952937a4a5f8e1de74ca1b/src/odoyle_rum_todo/start.clj
clojure
this binding causes the new matches triggered by `insert-all-todos` to be stored locally, so they don't affect other users that happen to be requesting this route at the same time if there are any todos in the user's ring session, insert them into the o'doyle session. we are only doing this for side-effects. ren...
(ns odoyle-rum-todo.start (:require [ring.adapter.jetty :refer [run-jetty]] [ring.middleware.resource :refer [wrap-resource]] [ring.middleware.session :refer [wrap-session]] [ring.middleware.content-type :refer [wrap-content-type]] [ring.middleware.gzip :refer [wrap-gzi...
dddfe838e67d6e6d297f37971bacfa03fb8fc31d514fcd41b034e3e57fa92b0f
mishadoff/project-euler
problem028.clj
(ns project-euler) Elapsed time : 3.276816 msecs (defn euler-028 [] (inc (reduce + (loop [incr 2 times 0 number 1 lst [] depth 0] (if (= (/ (dec 1001) 2) depth) lst (if (= times 4) (recur (+ 2 incr) 0 number lst (inc depth)) ...
null
https://raw.githubusercontent.com/mishadoff/project-euler/45642adf29626d3752227c5a342886b33c70b337/src/project_euler/problem028.clj
clojure
(ns project-euler) Elapsed time : 3.276816 msecs (defn euler-028 [] (inc (reduce + (loop [incr 2 times 0 number 1 lst [] depth 0] (if (= (/ (dec 1001) 2) depth) lst (if (= times 4) (recur (+ 2 incr) 0 number lst (inc depth)) ...
f90c245f08cf55340684b63a7ce530c6661c84b61dc07afc69bc4a777d08d01b
ejgallego/coq-serapi
sertop_bin.ml
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * INRIA , CNRS and contributors - Copyright 1999 - 2018 (* <O___,, * (see CREDITS file for the list of authors) *) \VV/ * * * *...
null
https://raw.githubusercontent.com/ejgallego/coq-serapi/dd9e3fbf7faaf3bf365fa3eff134641055151a9b/sertop/sertop_bin.ml
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team <O___,, * (see CREDITS file for the list of authors) // * This file is distributed under the terms of the * (see LICENSE file for...
v * INRIA , CNRS and contributors - Copyright 1999 - 2018 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser General Public License Version 2.1 Copyright 2016 - 2018 MINES ParisT...
f6ba89a5f816cbceacf00eacde66ad2ab4cebaadbab6cf6d151f59eee720c4ba
Gbury/archsat
rewrite.mli
This file is free software , part of Archsat . See file " LICENSE " for more details . * rules This module sdefines types and manipulation functions on rerite rules . This module sdefines types and manipulation functions on rerite rules. *) * { 2 Rewrite rule guards } module Guard : sig type t = ...
null
https://raw.githubusercontent.com/Gbury/archsat/322fbefa4a58023ddafb3fa1a51f8199c25cde3d/src/algos/rewrite.mli
ocaml
* Printer function for guards. * Map a function on the terms in a guard. * Returns the list of all top-level terms appearing in a guard. * Check wether a guard is verified. * A rewrite rule * Usual functions * A modular printer. * Print only the rule id (shorter). * [mk ?guards is_manual trigger result] creates...
This file is free software , part of Archsat . See file " LICENSE " for more details . * rules This module sdefines types and manipulation functions on rerite rules . This module sdefines types and manipulation functions on rerite rules. *) * { 2 Rewrite rule guards } module Guard : sig type t = ...
35d8d9e2c6b731b4bdb2e84e4d1f6f288a3e5ab0f3d8e077463e3be41cafe7ea
TrustInSoft/tis-interpreter
export_altergo.mli
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of WP plug - in of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/wp/qed/src/export_altergo.mli
ocaml
************************************************************************ alternatives) ...
Modified by TrustInSoft This file is part of WP plug - in of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat a l'energie atomique et aux energies Lesser General Public License as published by the Free Soft...
d8dcc417cac7ce25dccb36e8f92253bd8fc0426ad7d1df68a584e4185bfbef25
Chimrod/i3_workspaces
actions.ml
type node = I3ipc.Reply.node type actions = | W: (unit -> (string * (unit -> unit Lwt.t)) Lwt.t) -> actions | C: string -> actions type t = actions list type answer = I3ipc.Reply.command_outcome list let create = [] (** Create a container which swallow the given class *) let swallow class_name t = begin let...
null
https://raw.githubusercontent.com/Chimrod/i3_workspaces/904209b58719f09cdf9f0238a6036d19c0129d4f/src/common/actions.ml
ocaml
* Create a container which swallow the given class * Launch an application
type node = I3ipc.Reply.node type actions = | W: (unit -> (string * (unit -> unit Lwt.t)) Lwt.t) -> actions | C: string -> actions type t = actions list type answer = I3ipc.Reply.command_outcome list let create = [] let swallow class_name t = begin let f () = begin let%lwt (file, channel) = Lwt_io.open...
3d00cedd18397dc24f0cb0cc69cdd2ea488bc84ff9b3d84f24ea69703609580f
clojure-interop/google-cloud-clients
core.clj
(ns com.google.cloud.vision.v1p1beta1.core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[com.google.cloud.vision.v1p1beta1.ImageAnnotatorClient]) (require '[com.google.cloud.vision.v1p1beta1.ImageAnnotatorSettings$Builder]) (require '[com.google.cloud.vision.v1p1beta1.ImageAnnotatorSettin...
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.vision/src/com/google/cloud/vision/v1p1beta1/core.clj
clojure
(ns com.google.cloud.vision.v1p1beta1.core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[com.google.cloud.vision.v1p1beta1.ImageAnnotatorClient]) (require '[com.google.cloud.vision.v1p1beta1.ImageAnnotatorSettings$Builder]) (require '[com.google.cloud.vision.v1p1beta1.ImageAnnotatorSettin...
9bf25eefd4f9824c6bce274fc87d03d1eec473b244632d9777e37d5f8c2a394b
skanev/playground
tests.scm
(require rackunit rackunit/text-ui) (load-relative "evaluator.scm") (define ec-machine (make-explicit-control-machine)) (define (run exp) (set-register-contents! ec-machine 'env (setup-environment)) (set-register-contents! ec-machine 'exp exp) (start ec-machine) (get-register-contents ec-machine 'val)) (d...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/05/showcase/explicit/tests.scm
scheme
(require rackunit rackunit/text-ui) (load-relative "evaluator.scm") (define ec-machine (make-explicit-control-machine)) (define (run exp) (set-register-contents! ec-machine 'env (setup-environment)) (set-register-contents! ec-machine 'exp exp) (start ec-machine) (get-register-contents ec-machine 'val)) (d...
702dff63417b1abef6b491529c98169d764d1b0b008052ae2f2923a65a4564af
slindley/effect-handlers
AOPExtra.hs
Aspect - oriented programming using handlers . Inspired by Oliveira , Shrijvers , and 's paper : Modular reasoning about interference in incremental programming Inspired by Oliveira, Shrijvers, and Cook's JFP paper: Modular reasoning about interference in incremental programming -} {- This version supports o...
null
https://raw.githubusercontent.com/slindley/effect-handlers/39d0d09582d198dd6210177a0896db55d92529f4/Examples/AOPExtra.hs
haskell
This version supports overriding the behaviour of a function on a particular expression constructor by reflecting each expression constructor as an effectful operation and defining functions on expressions as handlers. = Lit Int | Var String | Sequence [Expr] deriving Show type Env = [(String, Int)] the...
Aspect - oriented programming using handlers . Inspired by Oliveira , Shrijvers , and 's paper : Modular reasoning about interference in incremental programming Inspired by Oliveira, Shrijvers, and Cook's JFP paper: Modular reasoning about interference in incremental programming -} # LANGUAGE TypeFamilies ,...
a56caa9445df0e556539072e8f914d649da239eb3ab8ceb3911a8dabf46a4f16
issuu/sure-deploy
composefile.ml
open Core module Service = Swarm_types.Service module Image = Swarm_types.Image type service_spec = { name : Service.t; image : Image.t; } let load_file : string -> Yaml.value Or_error.t = fun filename -> Or_error.try_with_join @@ fun () -> In_channel.read_all filename |> Yaml.of_string |> Result.map_err...
null
https://raw.githubusercontent.com/issuu/sure-deploy/3df4298fd698dbdf221a8929e0c2b309728481f9/src/lib/composefile.ml
ocaml
open Core module Service = Swarm_types.Service module Image = Swarm_types.Image type service_spec = { name : Service.t; image : Image.t; } let load_file : string -> Yaml.value Or_error.t = fun filename -> Or_error.try_with_join @@ fun () -> In_channel.read_all filename |> Yaml.of_string |> Result.map_err...
08d8db6e4ed0e6941d943edd5874bf8c0ccfd0d948287e49cc4c9189e5b44b9c
spechub/Hets
Print.hs
| Module : ./CSMOF / Print.hs Description : pretty printing for CSMOF Copyright : ( c ) Universidad de la Republica , Uruguay 2013 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable Module : ./CSMOF/Print.hs...
null
https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/CSMOF/Print.hs
haskell
Do not show properties at top level but inside classes
| Module : ./CSMOF / Print.hs Description : pretty printing for CSMOF Copyright : ( c ) Universidad de la Republica , Uruguay 2013 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable Module : ./CSMOF/Print.hs...
26fe55c258958d8a2561eda2a861c2493b3a94221d06d43b7a1b9d70e5e6f8da
panda-planner-dev/ipc2020-domains
d-07.lisp
(defdomain domain ( (:operator (!obtain_permit ?op_h) ;; preconditions ( (type_Hazardous ?op_h) (not (Have_Permit ?op_h)) ) ;; delete effects () ;; add effects ((Have_Permit ?op_h)) ) (:operator (!collect_fees ?cf_p) ;; preconditions ( (type_Package ?cf_p) ...
null
https://raw.githubusercontent.com/panda-planner-dev/ipc2020-domains/9adb54325d3df35907adc7115fcc65f0ce5953cc/partial-order/UM-Translog/other/SHOP2/d-07.lisp
lisp
preconditions delete effects add effects preconditions delete effects add effects preconditions delete effects add effects preconditions delete effects add effects preconditions delete effects add effects preconditions delete effects add effects preconditions delete effects add effects preconditio...
(defdomain domain ( (:operator (!obtain_permit ?op_h) ( (type_Hazardous ?op_h) (not (Have_Permit ?op_h)) ) () ((Have_Permit ?op_h)) ) (:operator (!collect_fees ?cf_p) ( (type_Package ?cf_p) (not (Fees_Collected ?cf_p)) ) () ((Fees_Collected ?cf_p)) ) (:o...
b5889e04924c06e32cf41819b481f3c6baaf0e49ab69f3af2c952f73180779d1
Paczesiowa/virthualenv
Types.hs
# LANGUAGE GeneralizedNewtypeDeriving # module Types ( GhcSource(..) , Options(..) , MyState(..) , DirStructure(..) , MyException(..) , Verbosity(..) ) where import Control.Monad.Error (Error) Use System 's copy of GHC Use GHC from tarb...
null
https://raw.githubusercontent.com/Paczesiowa/virthualenv/aab89dad9de7dac5268472eaa50c11eb40b02380/src/Types.hs
haskell
used for indentation of logging messages Only absolute paths! dir containing .virthualenv dir (usually dir with cabal project) directory with private cabal dir cabal's bin/ dir (used in $PATH) dir with haskell tools wrappers and activate script
# LANGUAGE GeneralizedNewtypeDeriving # module Types ( GhcSource(..) , Options(..) , MyState(..) , DirStructure(..) , MyException(..) , Verbosity(..) ) where import Control.Monad.Error (Error) Use System 's copy of GHC Use GHC from tarb...
9e292eeae7b8f0dd5e99f4ea68fb15004f9bdf6aac4e8c9a1eae89c7f73c3895
lem-project/lem
syntax-parse.lisp
(defpackage :lem-scheme-syntax.parse (:use :cl :lem-base) (:export :parse-for-swank-autodoc)) (in-package :lem-scheme-syntax.parse) (defvar *cursor-marker* 'swank::%cursor-marker%) (defun parsing-safe-p (point) (not (in-string-or-comment-p point))) (defun parse-for-swank-autodoc (point) (and (parsing-safe-p ...
null
https://raw.githubusercontent.com/lem-project/lem/4f620f94a1fd3bdfb8b2364185e7db16efab57a1/modes/scheme-mode/syntax-parse.lisp
lisp
for r7rs-swank for r7rs-swank (push "" suffix)
(defpackage :lem-scheme-syntax.parse (:use :cl :lem-base) (:export :parse-for-swank-autodoc)) (in-package :lem-scheme-syntax.parse) (defvar *cursor-marker* 'swank::%cursor-marker%) (defun parsing-safe-p (point) (not (in-string-or-comment-p point))) (defun parse-for-swank-autodoc (point) (and (parsing-safe-p ...
373984436c47288fcd9209770280e0bd3a47aa05aad6fe3eb6878b67960ed4ac
UU-ComputerScience/uu-cco
Tree.hs
------------------------------------------------------------------------------- -- | -- Module : CCO.Tree Copyright : ( c ) 2008 Utrecht University -- License : All rights reserved -- -- Maintainer : -- Stability : provisional -- Portability : portable -- -- A straightforward implementation of ...
null
https://raw.githubusercontent.com/UU-ComputerScience/uu-cco/cca433c8a6f4d27407800404dea80c08fd567093/uu-cco/src/CCO/Tree.hs
haskell
----------------------------------------------------------------------------- | Module : CCO.Tree License : All rights reserved Maintainer : Stability : provisional Portability : portable A straightforward implementation of the ATerm format for exchanging tree-structured data; see Effici...
Copyright : ( c ) 2008 Utrecht University * , Hayco de Jong , , and . /Software - Practice and Experience ( SPE)/ , 30(3):259 - 291 , 2000 . module CCO.Tree ( * The @ATerm@ type * The @Tree@ class , Tree (..) * ) where import CCO.Tree.ATerm (Con, ATerm (..)) import CCO.Tree.AT...
c91581e2056b3b7cca1501a74909140c9899490cb11404d6d11029065f8e1b46
ocaml-omake/omake
lm_thread_core_null.ml
let debug_mutex = Lm_debug.create_debug (**) { debug_name = "mutex"; debug_description = "Show Mutex locking operations"; debug_value = false } (* * Locks are not required when not using threads. * We only track the "locked" state to produce the correct results in the try_lock function...
null
https://raw.githubusercontent.com/ocaml-omake/omake/08b2a83fb558f6eb6847566cbe1a562230da2b14/src/libmojave/lm_thread_core_null.ml
ocaml
* Locks are not required when not using threads. * We only track the "locked" state to produce the correct results in the try_lock function. true = free; false = locked * Conditions are not required when not using threads. module MutexCoreDebug = MutexCore * Threads are null. The create function doesn'...
let debug_mutex = { debug_name = "mutex"; debug_description = "Show Mutex locking operations"; debug_value = false } module MutexCore = struct type t = bool ref let create _ = ref true let lock l = l := false let try_lock l = let res = !l in l := f...
c772bdeac04a32403b1e5b8f7d479a0592af93c31be7ca67fab406f1aa4315d8
thizanne/cormoran
test_cfg.ml
open Batteries open Printf let use_litmus = ref false let speclist = [ "--litmus", Arg.Set use_litmus, "Use litmus syntax"; ] ( * Useless with only one arg in the speclist (* Useless with only one arg in the speclist *) let speclist = speclist |> List.map (fun (a, b, c) -> (a, b, " " ^ c)) |> Arg.align *) ...
null
https://raw.githubusercontent.com/thizanne/cormoran/46d13330ebd1c8224a0603fd473d8e6bed48bf53/src/test_cfg.ml
ocaml
Useless with only one arg in the speclist
open Batteries open Printf let use_litmus = ref false let speclist = [ "--litmus", Arg.Set use_litmus, "Use litmus syntax"; ] ( * Useless with only one arg in the speclist let speclist = speclist |> List.map (fun (a, b, c) -> (a, b, " " ^ c)) |> Arg.align *) module Dot = ExportCfg.Dot (Top) let data _ = T...
74c819f14be5001d29f0121368dbec816c2a2cb7a304ea3a942281821b977e34
soupi/strema-mirror
Strema.hs
| Exporting the important stuff from the strema frontend -} module Language.Strema * frontend module Language.Strema * language definition , module Language.Strema.Syntax.Ast * parser extra , module Text.Megaparsec -- * Strema Type Inference , module Language.Strema.Types.Infer * builtin ...
null
https://raw.githubusercontent.com/soupi/strema-mirror/35f2b7b7ccb9f35127d048a3e693f78f8702def1/src/strema/src/Language/Strema.hs
haskell
* Strema Type Inference * Strema Type Inference
| Exporting the important stuff from the strema frontend -} module Language.Strema * frontend module Language.Strema * language definition , module Language.Strema.Syntax.Ast * parser extra , module Text.Megaparsec , module Language.Strema.Types.Infer * builtin functions and types , module ...
844ffa3ae84c63cc9eb79654f61868944aea3f15e3f2c9897f513f3d143a7976
ghollisjr/cl-ana
h5ex-t-vlstringatt.lisp
Copyright by The HDF Group . ;;;; All rights reserved. ;;;; This file is part of hdf5 - cffi . The full hdf5 - cffi copyright notice , including terms governing ;;;; use, modification, and redistribution, is contained in the file COPYING, ;;;; which can be found at th...
null
https://raw.githubusercontent.com/ghollisjr/cl-ana/5cb4c0b0c9c4957452ad2a769d6ff9e8d5df0b10/hdf-cffi/examples/datatypes/h5ex-t-vlstringatt.lisp
lisp
All rights reserved. use, modification, and redistribution, is contained in the file COPYING, which can be found at the root of the source code distribution tree. If you do not have access to this file, you may request a copy from This example shows how to read and write variable-length variable-length strings t...
Copyright by The HDF Group . This file is part of hdf5 - cffi . The full hdf5 - cffi copyright notice , including terms governing help @hdfgroup.org . string datatypes to a dataset . The program first writes DIM0 , then closes the file . Next , it reopens t...
544d10ba01ddc873e84de6a77514a5f897a245ac8d3958635ed2fcc8ade91159
deobald/jok
mp4_track.clj
(ns jukebox-player.mp4-track (:use [jukebox-player.playable]) (:import [javax.sound.sampled AudioFormat] [net.sourceforge.jaad.aac Decoder SampleBuffer] [net.sourceforge.jaad.mp4 MP4Container] [net.sourceforge.jaad.mp4.api AudioTrack$AudioCodec Frame Movie Track] [java.io...
null
https://raw.githubusercontent.com/deobald/jok/e1b9373603ad7fcc3dbc7304cb8b88b8163e73bc/src/jukebox_player/mp4_track.clj
clojure
(ns jukebox-player.mp4-track (:use [jukebox-player.playable]) (:import [javax.sound.sampled AudioFormat] [net.sourceforge.jaad.aac Decoder SampleBuffer] [net.sourceforge.jaad.mp4 MP4Container] [net.sourceforge.jaad.mp4.api AudioTrack$AudioCodec Frame Movie Track] [java.io...
8e6150d7fe8eb7e2a2b0060902d0828b97aee2c3301cdf60406a93cc93539bb7
ml4tp/tcoq
logic_monad.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/engine/logic_monad.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * This exception is used to signal a...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This file implements the lo...
6f535f87ba1a2f81d605fb46914944d434f006d54d792e3717fbfcdbbaab4572
haskell-tools/haskell-tools
Daemon.hs
# LANGUAGE MonoLocalBinds # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # | The central module for the background process of Haskell - tools . Starts the daemon process and -- updates it for each client request in a loop. After this releases the resources and terminates....
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/daemon/Language/Haskell/Tools/Daemon.hs
haskell
updates it for each client request in a loop. After this releases the resources and terminates. | Starts the daemon process. This will not return until the daemon stops. You can use this entry point when the other endpoint of the client connection is not needed, for example, when you use socket connection to connec...
# LANGUAGE MonoLocalBinds # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # | The central module for the background process of Haskell - tools . Starts the daemon process and module Language.Haskell.Tools.Daemon where import Control.Concurrent.MVar import Control.Exceptio...
4d0117967855db19db6c2eb8cf6f67d27dd2800fdcdab36f84aea9ccd4bf568a
Naproche-SAD/Naproche-SAD
Evaluation.hs
module SAD.Data.Evaluation where import SAD.Data.Formula (Formula) data Evaluation = EV { term :: Formula, -- the term to be reduced positives :: Formula, -- reduction for positive positions negatives :: Formula, -- reduction for negative positions conditions :: [Formula] -- conditions } derivin...
null
https://raw.githubusercontent.com/Naproche-SAD/Naproche-SAD/da131a6eaf65d4e02e82082a50a4febb6d42db3d/src/SAD/Data/Evaluation.hs
haskell
the term to be reduced reduction for positive positions reduction for negative positions conditions
module SAD.Data.Evaluation where import SAD.Data.Formula (Formula) data Evaluation = EV { } deriving Show
d25d7162fbbaf887fcacf4efd8254d85181d5d9636893957f5442a320408cb20
singleheart/programming-in-haskell
ex6.hs
data Tree = Leaf Int | Node Tree Tree deriving (Show) countLeaves :: Tree -> Int countLeaves (Leaf _) = 1 countLeaves (Node l r) = countLeaves l + countLeaves r countNodes :: Tree -> Int countNodes (Leaf _) = 0 countNodes (Node l r) = countNodes l + 1 + countNodes r
null
https://raw.githubusercontent.com/singleheart/programming-in-haskell/9c2a8010479714aa51b99b7be91ad9b5903f2ea4/ch16/ex6.hs
haskell
data Tree = Leaf Int | Node Tree Tree deriving (Show) countLeaves :: Tree -> Int countLeaves (Leaf _) = 1 countLeaves (Node l r) = countLeaves l + countLeaves r countNodes :: Tree -> Int countNodes (Leaf _) = 0 countNodes (Node l r) = countNodes l + 1 + countNodes r
b34ede4cebc061ee6368f2c8d3b32b1094d9692137dea99e70f44de7bf89a115
HugoPeters1024/hs-sleuth
Search.hs
-- | Search for a pattern in a file, find the number of occurences -- -- Tested in this benchmark: -- -- * Searching all occurences of a pattern using library routines -- module Benchmarks.Search ( initEnv , benchmark ) where import Test.Tasty.Bench (Benchmark, bench, bgroup, whnf) import qualified Data.Te...
null
https://raw.githubusercontent.com/HugoPeters1024/hs-sleuth/91aa2806ea71b7a26add3801383b3133200971a5/test-project/text-nofusion/benchmarks/haskell/Benchmarks/Search.hs
haskell
| Search for a pattern in a file, find the number of occurences Tested in this benchmark: * Searching all occurences of a pattern using library routines
module Benchmarks.Search ( initEnv , benchmark ) where import Test.Tasty.Bench (Benchmark, bench, bgroup, whnf) import qualified Data.Text as T import qualified Data.Text.IO as T import qualified Data.Text.Lazy as TL import qualified Data.Text.Lazy.IO as TL type Env = (T.Text, TL.Text) initEnv :: FilePat...
8bf6b25812172edad32034557b091609c054eb293210d6f59f8acbe0686f2cbe
ghollisjr/cl-ana
h5ex-d-extern.lisp
Copyright by The HDF Group . ;;;; All rights reserved. ;;;; This file is part of hdf5 - cffi . The full hdf5 - cffi copyright notice , including terms governing ;;;; use, modification, and redistribution, is contained in the file COPYING, ;;;; which can be found at th...
null
https://raw.githubusercontent.com/ghollisjr/cl-ana/5cb4c0b0c9c4957452ad2a769d6ff9e8d5df0b10/hdf-cffi/examples/datasets/h5ex-d-extern.lisp
lisp
All rights reserved. use, modification, and redistribution, is contained in the file COPYING, which can be found at the root of the source code distribution tree. If you do not have access to this file, you may request a copy from . This example shows how to read and write data to an external dataset with datas...
Copyright by The HDF Group . This file is part of hdf5 - cffi . The full hdf5 - cffi copyright notice , including terms governing external dataset . The program first writes integers to an then closes the file . Next , it reopens the file , reads (in-p...
cdda989ece08a94390276170f1248580440843bace4c0786225ce1fb8b3184e9
bennn/dissertation
core.rkt
#lang racket/base (provide (all-defined-out)) ;; ----------------------------------------------------------------------------- (require "untyped.rkt") ;; ============================================================================= (define QuadName? symbol?) (define QuadAttrKey? symbol?) (define (QuadAttrValu...
null
https://raw.githubusercontent.com/bennn/dissertation/779bfe6f8fee19092849b7e2cfc476df33e9357b/dissertation/scrbl/jfp-2019/benchmarks/quadT/base/core.rkt
racket
----------------------------------------------------------------------------- ============================================================================= QuadAttr could be a list, but that would take twice as many cons cells. try the economical approach. funky implementation quad wants to be generic if it's a ...
#lang racket/base (provide (all-defined-out)) (require "untyped.rkt") (define QuadName? symbol?) (define QuadAttrKey? symbol?) (define (QuadAttrValue? x) (or (flonum? x) (index? x) (string? x) (symbol? x) (boolean? x) (quad? x) (QuadAttrs? x) (QuadList? x) (exact-integer? x))) (define (QuadAttr? x) (and ...
c1143b816c5f3e079431c71aa1f726dcda2e0a5f681398d32d24316b63c5a394
cartazio/tlaps
toolbox_msg.mli
* Copyright ( C ) 2011 INRIA and Microsoft Corporation * Copyright (C) 2011 INRIA and Microsoft Corporation *) val print_warning : string -> unit;; (* Send a "type:warning" message to the toolbox. Displays the message in a dialog box. *) val print_error : string -> string -> unit;; (* [print_error msg u...
null
https://raw.githubusercontent.com/cartazio/tlaps/562a34c066b636da7b921ae30fc5eacf83608280/src/toolbox_msg.mli
ocaml
Send a "type:warning" message to the toolbox. Displays the message in a dialog box. [print_error msg url] Send a "type:error" message to the toolbox. Displays the message in a dialog box along with the (clickable) URL. Send a "type:obligationsnumber" message to the toolbox. Send a "type:obligation" mess...
* Copyright ( C ) 2011 INRIA and Microsoft Corporation * Copyright (C) 2011 INRIA and Microsoft Corporation *) val print_warning : string -> unit;; val print_error : string -> string -> unit;; val print_obligationsnumber : int -> unit;; val print_obligation : id : int -> loc : Loc.locus -> status :...
78eea31cce913c3dde571dd2446ea13701b71957a439bf360427aeabc8d8f6b0
AdaCore/why3
diffmap.ml
(********************************************************************) (* *) 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/util/diffmap.ml
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 exception Duplicate module type S = sig module M : Extmap.S type key = M.key type 'a t val empty: ...
ee8ce83bb1dae7732df21fb89ecf530239eab5edfecc692aa86b395368a10af0
NorfairKing/easyspec
CodeUtils.hs
# LANGUAGE FlexibleContexts # module EasySpec.Discover.CodeUtils where import Import hiding (Alt) import Language.Haskell.Exts.Pretty import Language.Haskell.Exts.Syntax import EasySpec.Discover.Types {-# ANN module "HLint: ignore Use const" #-} {-# ANN module "HLint: ignore Use record patterns" #-} {-# ANN modu...
null
https://raw.githubusercontent.com/NorfairKing/easyspec/b038b45a375cc0bed2b00c255b508bc06419c986/easyspec/src/EasySpec/Discover/CodeUtils.hs
haskell
# ANN module "HLint: ignore Use const" # # ANN module "HLint: ignore Use record patterns" # # ANN module "HLint: ignore Avoid lambda" # # ANN module "HLint: ignore Collapse lambdas" # Don't count variables TODO maybe we should count variables? Don't count n + k patterns Don't count renamings (@) Don't go into type...
# LANGUAGE FlexibleContexts # module EasySpec.Discover.CodeUtils where import Import hiding (Alt) import Language.Haskell.Exts.Pretty import Language.Haskell.Exts.Syntax import EasySpec.Discover.Types getTyVars :: Type t -> [Name t] getTyVars = foldType (\_ _ _ -> id) (\_ -> (++)) (...
5a66bb585c91b4569fe75f6a4a0d0a8cb736a618611bcb4c393f73bcb18549b3
rtoy/ansi-cl-tests
lognot.lsp
;-*- Mode: Lisp -*- Author : Created : Tue Sep 9 06:16:20 2003 ;;;; Contains: Tests of LOGNOT (in-package :cl-test) (compile-and-load "numbers-aux.lsp") ;;; Error tests (deftest lognot.error.1 (check-type-error #'lognot #'integerp) nil) (deftest lognot.error.2 (signals-error (lognot) program...
null
https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/lognot.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of LOGNOT Error tests Non-error tests
Author : Created : Tue Sep 9 06:16:20 2003 (in-package :cl-test) (compile-and-load "numbers-aux.lsp") (deftest lognot.error.1 (check-type-error #'lognot #'integerp) nil) (deftest lognot.error.2 (signals-error (lognot) program-error) t) (deftest lognot.error.3 (signals-error (lognot 0 0) pro...
406f4822629356e98aed2840249c8fafd7f56b06adebae2b3769315cead7c86c
Shinmera/beamer
test.lisp
(in-package "test") (use-package :cl+trial) (define-shader-subject slide-subject (located-entity rotated-entity selectable) () (:default-initargs :location (vec 400 300 0))) (defmethod initialize-instance :after ((subject slide-subject) &key &allow-other-keys)) (define-slide welcome (h "Welcome to Beamer") ...
null
https://raw.githubusercontent.com/Shinmera/beamer/46be98df952f10cece64d1b73d4a3cd930c9bc15/test/test.lisp
lisp
textured-entity colored-entity
(in-package "test") (use-package :cl+trial) (define-shader-subject slide-subject (located-entity rotated-entity selectable) () (:default-initargs :location (vec 400 300 0))) (defmethod initialize-instance :after ((subject slide-subject) &key &allow-other-keys)) (define-slide welcome (h "Welcome to Beamer") ...
e829a9dfd2bdc3c9a46a1da7f9eecf18e23eea1bd4ffae43b5aa30cce1f277ae
brandur/redis-haskell
Core.hs
{-# LANGUAGE DeriveDataTypeable, FlexibleContexts #-} module Database.Redis.Core where import Control.Exception ( Exception(..), finally ) import Data.Convertible.Base ( ConvertSuccess, convertSuccess ) import Data.Convertible.Instances ( ) import Data.Typeable ( Typeable ) import Network ...
null
https://raw.githubusercontent.com/brandur/redis-haskell/a346b4b7989a7b2d33b4c70962a23dfc5773f446/src/Database/Redis/Core.hs
haskell
# LANGUAGE DeriveDataTypeable, FlexibleContexts # --------------------------------------------------------------------------- Types | Provides a wrapper for a handle to a Redis server. | Provides a type for a key parameter for Redis commands. | Provides a type for a value parameter for Redis commands, where a va...
module Database.Redis.Core where import Control.Exception ( Exception(..), finally ) import Data.Convertible.Base ( ConvertSuccess, convertSuccess ) import Data.Convertible.Instances ( ) import Data.Typeable ( Typeable ) import Network ( HostName, PortID(..), PortNumber, ...
bda8e684a74c7b521f6550b268c39c7f6d0b1b435d96a81ca114198a88b7dc7a
tmfg/mmtis-national-access-point
ytj.clj
(ns ote.integration.import.ytj "YTJ (Finnish company register) API client." (:require [clj-http.client :as http-client] [taoensso.timbre :as log] [clojure.walk :as walk] [clj-time.format :as format] [clj-time.core :as t] [ote.components.http :as http] ...
null
https://raw.githubusercontent.com/tmfg/mmtis-national-access-point/a86cc890ffa1fe4f773083be5d2556e87a93d975/ote/src/clj/ote/integration/import/ytj.clj
clojure
redef'd to mock in test sadly clj-http wants to communicate status as exceptions (log/debug "ytj fetch: got response" (pr-str response))
(ns ote.integration.import.ytj "YTJ (Finnish company register) API client." (:require [clj-http.client :as http-client] [taoensso.timbre :as log] [clojure.walk :as walk] [clj-time.format :as format] [clj-time.core :as t] [ote.components.http :as http] ...
cc42d20b4b206ce54820a1d44943fe2b957e17761cf765ac2ba872db34bcb0e1
narkisr-deprecated/core
schedule.clj
(ns re-core.schedule "Scheduled tasks" (:require [re-core.common :refer (get* resolve- import-logging)] [chime :refer [chime-ch]] [components.core :refer (Lifecyle)] [clj-time.core :as t] [clj-time.periodic :refer [periodic-seq]] [clojure.core.async :as a :refer [<! close! go-loop]])) (import-...
null
https://raw.githubusercontent.com/narkisr-deprecated/core/85b4a768ef4b3a4eae86695bce36d270dd51dbae/src/re_core/schedule.clj
clojure
(ns re-core.schedule "Scheduled tasks" (:require [re-core.common :refer (get* resolve- import-logging)] [chime :refer [chime-ch]] [components.core :refer (Lifecyle)] [clj-time.core :as t] [clj-time.periodic :refer [periodic-seq]] [clojure.core.async :as a :refer [<! close! go-loop]])) (import-...
9ea00a1ae52ee85705e387e5ec434d37fd63a892d8f1e316af916186c4b24780
appleshan/cl-http
distribution.lisp
-*- Mode : LISP ; Package : HTTP ; BASE : 10 ; Syntax : ANSI - Common - Lisp ; Default - Character - Style : ( : FIX : ROMAN : NORMAL);-*- ;;; ( c ) Copyright 1995 , 2003 , ;;; All Rights Reserved. ;;; (in-package :http) ;;;------------------------------------------------------------------- ;;; ;;;...
null
https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/lw/utilities/distribution.lisp
lisp
Package : HTTP ; BASE : 10 ; Syntax : ANSI - Common - Lisp ; Default - Character - Style : ( : FIX : ROMAN : NORMAL);-*- All Rights Reserved. ------------------------------------------------------------------- DISTRIBUTION FACILITY FOR CL-HTTP close eval when Modules Protocol Documumentation -----------...
( c ) Copyright 1995 , 2003 , (in-package :http) #+Genera (load #p"http:ai-lab;copyf") (eval-when (:execute :load-toplevel :compile-toplevel) (setf (logical-pathname-translations "http-dis") `(("**;*.*" #+Genera"wilson:>http>**>*.*" #+MCL"wilson:http:**:*.*" #+Lisp...
e19074bb430b2a7a913d1f5d1891c64b06b17e6d31135d24d9a2d69ccf57780e
semilin/layoup
zugyug.lisp
(MAKE-LAYOUT :NAME "zugyug" :MATRIX (APPLY #'KEY-MATRIX '("k,pbj;'chv" "yugsxoetrn" "q.wfziadlm")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
null
https://raw.githubusercontent.com/semilin/layoup/27ec9ba9a9388cd944ac46206d10424e3ab45499/data/layouts/zugyug.lisp
lisp
(MAKE-LAYOUT :NAME "zugyug" :MATRIX (APPLY #'KEY-MATRIX '("k,pbj;'chv" "yugsxoetrn" "q.wfziadlm")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
0a3bb07ad2996c8ac79511d40e7bad99f939da4b8c2d9640717a43c2f0d78fd4
avsm/ocaml-orm-sqlite
list_tuple.ml
TYPE_CONV_PATH "List_tuple" type x = { foo: (int * char list) list; bar: string } with orm open OUnit open Test_utils let x1 = {foo=[(1,['x';'y'])] ; bar="hello world" } let x2 = {foo=[(2,[]); (3,['a';'b';'c']); (4,['a'])] ; bar="world hello" } let x3 = {foo=[] ; bar="world hello" } let name = "list_tuple.db" ...
null
https://raw.githubusercontent.com/avsm/ocaml-orm-sqlite/0c41dee6e254abd75706edcb785f657bfe55d08b/lib_test/list_tuple.ml
ocaml
TYPE_CONV_PATH "List_tuple" type x = { foo: (int * char list) list; bar: string } with orm open OUnit open Test_utils let x1 = {foo=[(1,['x';'y'])] ; bar="hello world" } let x2 = {foo=[(2,[]); (3,['a';'b';'c']); (4,['a'])] ; bar="world hello" } let x3 = {foo=[] ; bar="world hello" } let name = "list_tuple.db" ...
c57a08ceb0cca0abaf494ea1b2bd442512a455046eb77565dea712c28c7194b8
jumarko/clojure-experiments
mastering_clojure_macros.clj
(ns clojure-experiments.macros.mastering-clojure-macros "Examples from the book Mastering Clojure Macros.") Chapter 1 - Build a Solid Foundation ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (read-string "(+ 1 2 3 4 5)") (class (read-string "(+ 1 2 3 4 5)")) (eval (read-string "(+ 1 2 3 4 5)")) (class (eval (read-str...
null
https://raw.githubusercontent.com/jumarko/clojure-experiments/f0f9c091959e7f54c3fb13d0585a793ebb09e4f9/src/clojure_experiments/macros/mastering_clojure_macros.clj
clojure
we can now programatically replace addition with multiplication let's now use real data structures instead of string (and `read-string`) finally simplifying using ' when macro substituted it looks like this: my cond macro expanded form cond macro from the book => (when (not (= 1 2)) (do (println "hi!"))) => (i...
(ns clojure-experiments.macros.mastering-clojure-macros "Examples from the book Mastering Clojure Macros.") Chapter 1 - Build a Solid Foundation (read-string "(+ 1 2 3 4 5)") (class (read-string "(+ 1 2 3 4 5)")) (eval (read-string "(+ 1 2 3 4 5)")) (class (eval (read-string "(+ 1 2 3 4 5)"))) (let [expression (...
96720516f3656fc944de4ea3ec745e6eaea20fcf24967108161723a0d601ee2c
stamourv/racket-benchmark
plot.rkt
#lang racket (require "types.rkt" "bootstrap-ci.rkt") (require plot/no-gui plot/utils math/statistics) (provide render-benchmark-alts current-benchmark-color-scheme bright-color-scheme pastel-color-scheme black-white-color-scheme-short black-white-color-scheme-medium-1 ...
null
https://raw.githubusercontent.com/stamourv/racket-benchmark/de7e84539de23834508dba42e07859cf13bde20c/benchmark/plot.rkt
racket
-> renderer2d? (define br/norm-br (map / (benchmark-result-trial-times br) (benchmark-result-trial-times norm-br))) TODO bootstrapping + confidence intervals doesn't work for baseline: we end up computing confidence interval of the ratio X/X, which has a clear depende...
#lang racket (require "types.rkt" "bootstrap-ci.rkt") (require plot/no-gui plot/utils math/statistics) (provide render-benchmark-alts current-benchmark-color-scheme bright-color-scheme pastel-color-scheme black-white-color-scheme-short black-white-color-scheme-medium-1 ...
f1f7967a2d5983b8b17fd6268f8b7e54a0f71cdeb6f7a39c5c374659be5208c2
shirok/Gauche
gdbm.scm
;;; gdbm - gdbm interface ;;; Copyright ( c ) 2000 - 2022 < > ;;; ;;; 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 ;;; ...
null
https://raw.githubusercontent.com/shirok/Gauche/b773899dbe0b2955e1c4f1daa066da874070c1e4/ext/dbm/gdbm.scm
scheme
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 the following disclaimer. 2. Redistributions in b...
gdbm - gdbm interface Copyright ( c ) 2000 - 2022 < > " 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 dbm.g...
614992ad59a24eb6b88f54525ec6206032f5c099fcb3b638c90deab2f5779fe4
input-output-hk/cardano-wallet
Delta.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # module Database.Persist.Delta ( -- * Synopsis -- | Manipulating SQL database tables using delta encodings -- via t...
null
https://raw.githubusercontent.com/input-output-hk/cardano-wallet/30b98430be2c827df616b58b92e9665579e5e668/lib/delta-table/src/Database/Persist/Delta.hs
haskell
* Synopsis | Manipulating SQL database tables using delta encodings via the "persistent" package. * Store ------------------------------------------------------------------------------ Database operations ------------------------------------------------------------------------------ | Database table for 'Entit...
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # module Database.Persist.Delta ( newEntityStore, newSqlStore ) where import Prelude hiding ( all ) import Contro...
b74d7fea39bea74b57bdc884ecc2036adfe463b388d45d1e8c18a9b987cd1293
vvvvalvalval/reagent-phonecat-tutorial
dev.cljs
(ns ^:figwheel-no-load reagent-phonecat.dev (:require [reagent-phonecat.core :as core] [figwheel.client :as figwheel :include-macros true] [weasel.repl :as weasel] [reagent.core :as r])) (enable-console-print!) (figwheel/watch-and-reload :websocket-url "ws:3449/figwheel-ws" :...
null
https://raw.githubusercontent.com/vvvvalvalval/reagent-phonecat-tutorial/3207c9cfcb81e423f3074502cba2e570cd2ef274/env/dev/cljs/reagent_phonecat/dev.cljs
clojure
(ns ^:figwheel-no-load reagent-phonecat.dev (:require [reagent-phonecat.core :as core] [figwheel.client :as figwheel :include-macros true] [weasel.repl :as weasel] [reagent.core :as r])) (enable-console-print!) (figwheel/watch-and-reload :websocket-url "ws:3449/figwheel-ws" :...
899a64e83705a3c3ecde2128099625371cf1673642c0cc6829e672e7afd1a453
korya/efuns
multi_frames.ml
(***********************************************************************) (* *) xlib for (* *) Fabrice Le Fessant , projet Para / SOR , INRIA Rocq...
null
https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/efuns/multi_frames.ml
ocaml
********************************************************************* ...
xlib for Fabrice Le Fessant , projet Para / SOR , INRIA Rocquencourt Copyright 1998 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . open Efuns open Text open Frame open Top_window let cut...
4ca0dbe8c3ff3190a201b1f05171e4ec18d9d9a1a99798fce2155f58675939f1
ocaml/oasis
OASISFindlib.ml
(******************************************************************************) OASIS : architecture for building OCaml libraries and applications (* *) Copyright ( C ) 2011 - 2016 , Copyrig...
null
https://raw.githubusercontent.com/ocaml/oasis/3d1a9421db92a0882ebc58c5df219b18c1e5681d/src/oasis/OASISFindlib.ml
ocaml
**************************************************************************** This library is free software; you can redistribute it and/or modify it under the t...
OASIS : architecture for building OCaml libraries and applications Copyright ( C ) 2011 - 2016 , Copyright ( C ) 2008 - 2011 , OCamlCore SARL the Free Software Foundation ; either version 2.1 of the License , or ( at You s...
6b89fa84933d399af8a012921c36461df577b3ec5492a593e445bde85aa13d31
jgoerzen/listlike
String.hs
Copyright ( C ) 2007 < > All rights reserved . For license and copyright information , see the file COPYRIGHT Copyright (C) 2007 John Goerzen <> All rights reserved. For license and copyright information, see the file COPYRIGHT -} | Module : Data . ListLike . String Copyright : Copy...
null
https://raw.githubusercontent.com/jgoerzen/listlike/03d5804191d1fe738e9fad3af409623c014a98f5/src/Data/ListLike/String.hs
haskell
| Converts the structure to a 'String' | Converts a 'String' to a list | Breaks a string into a list of strings lines = map fromString . L.lines . toString | Breaks a string into a list of words | Joins lines | Joins words separate functions.
Copyright ( C ) 2007 < > All rights reserved . For license and copyright information , see the file COPYRIGHT Copyright (C) 2007 John Goerzen <> All rights reserved. For license and copyright information, see the file COPYRIGHT -} | Module : Data . ListLike . String Copyright : Copy...
d1e5968595e64df5618922a08b1dae35b47df12507f66d5f12a70b34ed99e033
Relph1119/sicp-solutions-manual
p1-43-rec-compose-repeated.scm
(load "src/practices/ch01/p1-42-compose.scm") (define (repeated f n) (if (= n 1) f (compose f (repeated f (- n 1)))))
null
https://raw.githubusercontent.com/Relph1119/sicp-solutions-manual/f2ff309a6c898376209c198030c70d6adfac1fc1/src/practices/ch01/p1-43-rec-compose-repeated.scm
scheme
(load "src/practices/ch01/p1-42-compose.scm") (define (repeated f n) (if (= n 1) f (compose f (repeated f (- n 1)))))
2689305c524403137d5e78fb93f1bb9bf922fbd3826992bc795b15c2cf25f992
antono/guix-debian
gxmessage.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2014 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the Lice...
null
https://raw.githubusercontent.com/antono/guix-debian/85ef443788f0788a62010a942973d4f7714d10b4/gnu/packages/gxmessage.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 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu packages gxmessage) #:use-module (guix licenses) #:use-module (guix packages) #:use-modu...
44bcf6a45343d8dd2883cc8919716ac3e8efdd5cabb3e9ae8093fcf92f70a79b
con-kitty/categorifier-c
Main.hs
{-# LANGUAGE OverloadedStrings #-} module Main (main) where import Categorifier.C.Generate (writeCFiles) import F (fCategorified) -- This generates /tmp/separate_categorification.c main :: IO () main = writeCFiles "/tmp" "separate_categorification" fCategorified
null
https://raw.githubusercontent.com/con-kitty/categorifier-c/ec3a095ed927cac8a6fc99438cd9ac3ed678f263/examples/separate-categorification/Main.hs
haskell
# LANGUAGE OverloadedStrings # This generates /tmp/separate_categorification.c
module Main (main) where import Categorifier.C.Generate (writeCFiles) import F (fCategorified) main :: IO () main = writeCFiles "/tmp" "separate_categorification" fCategorified
dfb92a7957bd618524012242a17e685bcecf66ff8269455abfabbcf992ee8ee2
elaforge/karya
CmdTest.hs
Copyright 2013 -- This program is distributed under the terms of the GNU General Public -- License 3.0, see COPYING or -3.0.txt -- | Utilities for cmd tests. module Cmd.CmdTest where import qualified Control.Concurrent.Async as Async import qualified Control.Concurrent.Chan as Chan import qualified Data.Map as Map...
null
https://raw.githubusercontent.com/elaforge/karya/8ea15e6a5fb57e2f15f8c19836751e315f9c09f2/Cmd/CmdTest.hs
haskell
This program is distributed under the terms of the GNU General Public License 3.0, see COPYING or -3.0.txt | Utilities for cmd tests. * running cmds | A Nothing val means it aborted. | Run cmd with the given tracks. event. | Derive the tracks and then run the cmd with the performance available. | Run a cmd and...
Copyright 2013 module Cmd.CmdTest where import qualified Control.Concurrent.Async as Async import qualified Control.Concurrent.Chan as Chan import qualified Data.Map as Map import qualified Data.Text as Text import qualified Data.Vector as Vector import qualified System.IO.Unsafe as Unsafe import qualified Util....
1e269c41fba46b31ab795e0e2ca5b8b4024d5ed0d6f0f41437bef3fc5719d0b5
sebastiaanvisser/fclabels
Point.hs
| The Point data type which generalizes the different lenses and forms the basis for vertical composition using the ` Applicative ` type class . basis for vertical composition using the `Applicative` type class. -} # LANGUAGE TypeOperators , Arrows , FlexibleInstances , MultiParamTypeClasses ...
null
https://raw.githubusercontent.com/sebastiaanvisser/fclabels/5592f40af5a3a8af4afa45abf1035ce6495d7442/src/Data/Label/Point.hs
haskell
* The point data type that generalizes lens. * Working with isomorphisms. * Specialized lens contexts. * Arrow type class for failing with some error. # INLINE get # # INLINE modify # # INLINE set # # INLINE compose # # INLINE const # # INLINE curry # ---------------------------------------------...
| The Point data type which generalizes the different lenses and forms the basis for vertical composition using the ` Applicative ` type class . basis for vertical composition using the `Applicative` type class. -} # LANGUAGE TypeOperators , Arrows , FlexibleInstances , MultiParamTypeClasses ...
63471fbabe2484db7709baa4caf6aa2fd0792667505807931c184e548af7625b
ardumont/haskell-lab
WriterMonadTryout.hs
-- | Trying to understand by practicing on a small ReaderMonad sample module Monad.WriterMonadTryout where -- tell :: w -> Writer w () -- execWriter :: Writer w a -> w : : Writer w a - > ( a , w ) import Data.Monoid -- Definition newtype MWriter w a = MWriter { runMWriter :: (a, w) } instance Monoid ...
null
https://raw.githubusercontent.com/ardumont/haskell-lab/6d1f130300f33dc982c9a6b5d0b6a63af2c2666d/src/Monad/WriterMonadTryout.hs
haskell
| Trying to understand by practicing on a small ReaderMonad sample tell :: w -> Writer w () execWriter :: Writer w a -> w Definition Sample
module Monad.WriterMonadTryout where : : Writer w a - > ( a , w ) import Data.Monoid newtype MWriter w a = MWriter { runMWriter :: (a, w) } instance Monoid w => Monad (MWriter w) where return a = MWriter (a, mempty) m >>= k = MWriter $ let (a, w) = runMWriter m (b, w') = runMWriter ...
f24881f899b480f054e4628d0672e8d4f69b7eb1a4f9846e67119ced31fe124a
LdBeth/CLFSWM
clfswm-corner.lisp
;;; -------------------------------------------------------------------------- ;;; CLFSWM - FullScreen Window Manager ;;; ;;; -------------------------------------------------------------------------- ;;; Documentation: Corner functions ;;; -------------------------------------------------------------------------- ;;; ...
null
https://raw.githubusercontent.com/LdBeth/CLFSWM/4e936552d1388718d2947a5f6ca3eada19643e75/src/clfswm-corner.lisp
lisp
-------------------------------------------------------------------------- CLFSWM - FullScreen Window Manager -------------------------------------------------------------------------- Documentation: Corner functions -------------------------------------------------------------------------- This program is fre...
( C ) 2005 - 2015 < > it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License Foundation , Inc. , 59 Temple Place - Suite 330 , Boston , MA 02111 - 1307 , USA . (in-package :clfswm) (symbol-macrolet ((sw (screen-width)) (s...
a688471771c99fa9a6a65eef1ba35bc11eac907725e3d6f22e5d5df0fcdb853b
facebook/duckling
EL.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. module Duckling.Dimensions.EL ( allDimensions ) where import Duckling.Dimensions.Types allDimensions :...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Dimensions/EL.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree.
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Dimensions.EL ( allDimensions ) where import Duckling.Dimensions.Types allDimensions :: [Seal Dimension] allDimensions = [ Seal Duration , Seal Numeral , Seal Ordinal , Seal Time ]
d9bfd3c6924656198758fd7e4fb15bb022a91d7974ea0d704bae93c89fd100e5
haskell-servant/servant-elm
generate.hs
# LANGUAGE DataKinds # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # {-# LANGUAGE TypeOperators #-} import Servant.API ((:<|>), (:>), Capture, Get, JSON, Post, ReqBody) import Servant.Elm (DefineElm (DefineElm), ElmOptions(urlPrefix), ...
null
https://raw.githubusercontent.com/haskell-servant/servant-elm/95c49abe536d8e468efb5a8a0cd750cf817295f4/examples/books/generate.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE TypeOperators #
# LANGUAGE DataKinds # # LANGUAGE TemplateHaskell # import Servant.API ((:<|>), (:>), Capture, Get, JSON, Post, ReqBody) import Servant.Elm (DefineElm (DefineElm), ElmOptions(urlPrefix), Proxy (Proxy), UrlPrefix(Static), defaultOptions, ...
092594658b40131085b9d5c85ae1067942583bbdce8cd5d5dad12d09ed829843
lexi-lambda/racket-r7rs
r5rs.rkt
#lang racket/base (require racket/require (only-in r5rs null-environment scheme-report-environment) (multi-in r7rs (base char complex cxr eval file inexact lazy load read repl write))) (provide (all-from-out r7rs/cxr) * + - / < <= = > >= abs acos and angle append apply asin assoc assq assv ...
null
https://raw.githubusercontent.com/lexi-lambda/racket-r7rs/5834ec6e66f63c61589130aaebd0f25ab3eefc2b/r7rs-lib/r5rs.rkt
racket
#lang racket/base (require racket/require (only-in r5rs null-environment scheme-report-environment) (multi-in r7rs (base char complex cxr eval file inexact lazy load read repl write))) (provide (all-from-out r7rs/cxr) * + - / < <= = > >= abs acos and angle append apply asin assoc assq assv ...
464814ab7848dbbeacf31c8487bb7431323803af7b3810bac823549afd0f636e
ds-wizard/engine-backend
ClearReplySpec.hs
module Wizard.Specs.Websocket.Questionnaire.Detail.ClearReplySpec where import Data.Aeson import Network.WebSockets import Test.Hspec hiding (shouldBe) import Test.Hspec.Expectations.Pretty import Shared.Database.DAO.Package.PackageDAO import Shared.Database.Migration.Development.Package.Data.Packages import Wizard.A...
null
https://raw.githubusercontent.com/ds-wizard/engine-backend/d392b751192a646064305d3534c57becaa229f28/engine-wizard/test/Wizard/Specs/Websocket/Questionnaire/Detail/ClearReplySpec.hs
haskell
---------------------------------------------------- ---------------------------------------------------- ---------------------------------------------------- GIVEN: Prepare database AND: Connect to websocket WHEN: THEN: AND: Close sockets ---------------------------------------------------- -----------------...
module Wizard.Specs.Websocket.Questionnaire.Detail.ClearReplySpec where import Data.Aeson import Network.WebSockets import Test.Hspec hiding (shouldBe) import Test.Hspec.Expectations.Pretty import Shared.Database.DAO.Package.PackageDAO import Shared.Database.Migration.Development.Package.Data.Packages import Wizard.A...
2445f0f4da55ebfb99406ede416bca0312169df02d48bbd6dcc9d2d75b01fe70
roburio/albatross
vmm_asn.mli
( c ) 2017 , 2018 , all rights reserved open Vmm_core (** ASN.1 encoding of resources and configuration *) (** {1 Object Identifier} *) * OID in the Mirage namespace ( enterprise arc 1.3.6.1.4.1.49836.42 ) val oid : Asn.OID.t val wire_to_cstruct : Vmm_commands.wire -> Cstruct.t val wire_of_cstruct : Cstruct.t...
null
https://raw.githubusercontent.com/roburio/albatross/e5a442c84eccb69a84116fec9c919d613a7cb575/src/vmm_asn.mli
ocaml
* ASN.1 encoding of resources and configuration * {1 Object Identifier}
( c ) 2017 , 2018 , all rights reserved open Vmm_core * OID in the Mirage namespace ( enterprise arc 1.3.6.1.4.1.49836.42 ) val oid : Asn.OID.t val wire_to_cstruct : Vmm_commands.wire -> Cstruct.t val wire_of_cstruct : Cstruct.t -> (Vmm_commands.wire, [> `Msg of string ]) result val of_cert_extension : Cst...
48271658f998e8eaccefe45695c8783cda4b813fededeeb5b08adf2fcac5d13e
EFanZh/EOPL-Exercises
exercise-4.x-call-by-reference-lang-test.rkt
#lang racket/base (require rackunit) (require "../solutions/exercise-4.x-call-by-reference-lang.rkt") (check-equal? (run "2") (num-val 2)) (check-equal? (run "-(3, 3)") (num-val 0)) (check-equal? (run "-(3, 4)") (num-val -1)) (check-equal? (run "-(4, 3)") (num-val 1)) (check-equal? (run "zero?(0)") (bool-val #t)) (ch...
null
https://raw.githubusercontent.com/EFanZh/EOPL-Exercises/11667f1e84a1a3e300c2182630b56db3e3d9246a/tests/exercise-4.x-call-by-reference-lang-test.rkt
racket
#lang racket/base (require rackunit) (require "../solutions/exercise-4.x-call-by-reference-lang.rkt") (check-equal? (run "2") (num-val 2)) (check-equal? (run "-(3, 3)") (num-val 0)) (check-equal? (run "-(3, 4)") (num-val -1)) (check-equal? (run "-(4, 3)") (num-val 1)) (check-equal? (run "zero?(0)") (bool-val #t)) (ch...
44105b2180f5163aff251113327a2f6509cdb42be9df87a6de19c9d1641cb41a
runtimeverification/haskell-backend
Overloading.hs
module Test.Kore.Simplify.Overloading ( test_matchOverloading, test_unifyOverloading, ) where import Control.Monad.Trans.Except ( runExceptT, ) import Kore.Builtin.Bool.Bool qualified as Bool import Kore.Builtin.Int.Int qualified as Int import Kore.Builtin.String.String qualified as String import Kore.Int...
null
https://raw.githubusercontent.com/runtimeverification/haskell-backend/3c37aabb2ef9f7645e12ae8819e287577969216a/kore/test/Test/Kore/Simplify/Overloading.hs
haskell
module Test.Kore.Simplify.Overloading ( test_matchOverloading, test_unifyOverloading, ) where import Control.Monad.Trans.Except ( runExceptT, ) import Kore.Builtin.Bool.Bool qualified as Bool import Kore.Builtin.Int.Int qualified as Int import Kore.Builtin.String.String qualified as String import Kore.Int...
b4084eb87cf2719dab01c9275983521dfa915c080ee75e6a7cf79d49cb18745f
facebookarchive/pfff
gButton.mli
(**************************************************************************) (* Lablgtk *) (* *) (* This program is free software; you can redistribute it *) and/or ...
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/external/ocamlgtk/src/gButton.mli
ocaml
************************************************************************ Lablgtk This program is free software; you can redistribute it comes with the library. ...
and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation version 2 , with the exception described in file COPYING which GNU Library General Public License for more details . You should have r...
0d663eec6288d6272e0e221708a2d6c733edd10c910b4abb954f5fc7347eb3a0
eashanhatti/peridot
Declaration.hs
module Elaboration.Declaration where import Syntax.Surface import Syntax.Core qualified as C import Syntax.Semantic qualified as N import Syntax.Common hiding(Declaration(..), Universe(..), NameType) import Elaboration.Effect import Control.Effect.Reader import Control.Carrier.Error.Either import Control.Effect.State ...
null
https://raw.githubusercontent.com/eashanhatti/peridot/0f63a32f4ee0ed0049d80a5daefa748cf27c2b17/src/Elaboration/Declaration.hs
haskell
# SOURCE #
module Elaboration.Declaration where import Syntax.Surface import Syntax.Core qualified as C import Syntax.Semantic qualified as N import Syntax.Common hiding(Declaration(..), Universe(..), NameType) import Elaboration.Effect import Control.Effect.Reader import Control.Carrier.Error.Either import Control.Effect.State ...
2a28691dd8fe15fc69e146da4bc680bcd24078d1ade422be6f1eb86b247e6bee
Appliscale/xprof
xprof_core_records_tests.erl
-module(xprof_core_records_tests). -export([test_fun/1]). -include_lib("eunit/include/eunit.hrl"). -define(M, xprof_core_records). -record(r1, {f1}). -record(r2, {f2 = default}). smoke_test_() -> {setup, fun() -> {ok, Pid} = ?M:start_link(), Pid end, fun(Pid) -> ...
null
https://raw.githubusercontent.com/Appliscale/xprof/198e5451db429cdb7bf6b4640ec932c425b635ae/apps/xprof_core/test/xprof_core_records_tests.erl
erlang
only to silence compilation warning about unused records
-module(xprof_core_records_tests). -export([test_fun/1]). -include_lib("eunit/include/eunit.hrl"). -define(M, xprof_core_records). -record(r1, {f1}). -record(r2, {f2 = default}). smoke_test_() -> {setup, fun() -> {ok, Pid} = ?M:start_link(), Pid end, fun(Pid) -> ...
0cf630f6ad37e8c936053b30de080983b081f31e0c2823fa2e2e226d7214c446
fission-codes/fission
Associator.hs
module Fission.Web.Server.App.Domain.Associator ( module Fission.Web.Server.App.Domain.Associator.Class , associateWithFallback ) where import Database.Persist.Types import Fission.Prelude import Fission.URL.Types import qualified Fission.Web.Server.App.Domain.Initializer as...
null
https://raw.githubusercontent.com/fission-codes/fission/11d14b729ccebfd69499a534445fb072ac3433a3/fission-web-server/library/Fission/Web/Server/App/Domain/Associator.hs
haskell
Re-export ^ Optional subdomain, falls back to autogenerated
module Fission.Web.Server.App.Domain.Associator ( module Fission.Web.Server.App.Domain.Associator.Class , associateWithFallback ) where import Database.Persist.Types import Fission.Prelude import Fission.URL.Types import qualified Fission.Web.Server.App.Domain.Initializer as...
4db6e38d5572a4f064afb27bda42c2dd8e71b5ab67ec9dd821f31ce07a3383e5
jaspervdj/advent-of-code
09.hs
{-# LANGUAGE BangPatterns #-} module Main where import qualified Data.List as L import qualified Data.Map as Map import Data.Maybe (fromMaybe) import qualified Data.Set as Set import qualified System.IO as IO import Text.Read (readMaybe) type Distances = Map.Map (String, String) Int readDi...
null
https://raw.githubusercontent.com/jaspervdj/advent-of-code/bdc9628d1495d4e7fdbd9cea2739b929f733e751/2015/09.hs
haskell
# LANGUAGE BangPatterns #
module Main where import qualified Data.List as L import qualified Data.Map as Map import Data.Maybe (fromMaybe) import qualified Data.Set as Set import qualified System.IO as IO import Text.Read (readMaybe) type Distances = Map.Map (String, String) Int readDistances :: IO.Handle -> IO Dis...
a5f1d608db744c8aed252ccb05f20c07b0c86f735fce31048135decd22c16e0d
ocaml-ppx/ppx
filename.mli
include module type of struct include Ppx_caml.Filename end val split_extension : string -> string * string val split_extension_after_dot : string -> string * string val extension : string -> string type program_name_kind = | In_path | Relative_to_current_dir | Absolute val analyze_program_name : string -> pr...
null
https://raw.githubusercontent.com/ocaml-ppx/ppx/40e5a35a4386d969effaf428078c900bd03b78ec/stdppx/filename.mli
ocaml
include module type of struct include Ppx_caml.Filename end val split_extension : string -> string * string val split_extension_after_dot : string -> string * string val extension : string -> string type program_name_kind = | In_path | Relative_to_current_dir | Absolute val analyze_program_name : string -> pr...
e98d773921f32f5fd1dbe3a39f173a0944c63c3206a93da1db7da13995f6e051
utz82/pstk
hello-84.scm
;; example to show use of a different tclsh (cond-expand (chicken-4 (use pstk)) (chicken-5 (import pstk))) (tk-start "tclsh8.4") (tk/pack (tk 'create-widget 'button 'text: "Hello" 'command: (lambda () (display "Hello world") (newline))) 'padx: 20 'pady: 20) (tk-event-loop)
null
https://raw.githubusercontent.com/utz82/pstk/27e907097529a3d61bb63e87e4e1cd1ca9abc3af/doc/examples/hello-84.scm
scheme
example to show use of a different tclsh
(cond-expand (chicken-4 (use pstk)) (chicken-5 (import pstk))) (tk-start "tclsh8.4") (tk/pack (tk 'create-widget 'button 'text: "Hello" 'command: (lambda () (display "Hello world") (newline))) 'padx: 20 'pady: 20) (tk-event-loop)
c0d0d63de888c20bafea6f0128e973e688311c908f68b53b86a5837c1f265603
racket/honu
api.rkt
#lang racket/base Public API for interfacing with the honu macro system (require honu-parse (for-syntax honu-parse)) (provide define-honu-syntax define-literal (for-syntax racket-syntax honu-expression honu-syntax honu-body ...
null
https://raw.githubusercontent.com/racket/honu/b36b9aeda8be22bf7fda177e831f42ac1a1de79b/honu/core/api.rkt
racket
#lang racket/base Public API for interfacing with the honu macro system (require honu-parse (for-syntax honu-parse)) (provide define-honu-syntax define-literal (for-syntax racket-syntax honu-expression honu-syntax honu-body ...
1974897f1d66a485af4c048e10e46b0cd296ab9d9030a3e28d11c0c9e02632a0
antono/guix-debian
pciutils.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2014 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the Lice...
null
https://raw.githubusercontent.com/antono/guix-debian/85ef443788f0788a62010a942973d4f7714d10b4/gnu/packages/pciutils.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 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu packages pciutils) #:use-module (guix packages) #:use-module (guix download) #:use-modul...
1cf8c996036fff39054c201da75e5f71296b59b665696a0e83fdab6d8c35c30a
chris-taylor/aima-haskell
Grass.hs
module AI.Probability.Example.Grass ( grass , AI.Probability.Bayes.enumerationAsk , AI.Probability.Bayes.eliminationAsk , AI.Probability.Bayes.rejectionSample , AI.Probability.Bayes.likelihoodWeighting ) where import AI.Probability.Bayes |The " grass " example from AIMA . You can q...
null
https://raw.githubusercontent.com/chris-taylor/aima-haskell/538dcfe82a57a623e45174e911ce68974d8aa839/src/AI/Probability/Example/Grass.hs
haskell
that /GrassWet/ is true, you would do >>> enumerationAsk alarm [("GrassWet",True)] "Rain" The same bug as in the alarm example also occurs here.
module AI.Probability.Example.Grass ( grass , AI.Probability.Bayes.enumerationAsk , AI.Probability.Bayes.eliminationAsk , AI.Probability.Bayes.rejectionSample , AI.Probability.Bayes.likelihoodWeighting ) where import AI.Probability.Bayes |The " grass " example from AIMA . You can q...
c7e7da96789da4abfaad2b230f93582978fb141c7a0adbb00f20e15db21ff638
erlangonrails/devdb
win32_dns.erl
%%%---------------------------------------------------------------------- %%% File : win32_dns.erl Author : nt Purpose : Get name servers in a Windows machine Created : 5 Mar 2009 by nt %%% %%% ejabberd , Copyright ( C ) 2002 - 2010 ProcessOne %%% %%% This program is free software; you can redistrib...
null
https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/ejabberd-2.1.4/src/win32_dns.erl
erlang
---------------------------------------------------------------------- File : win32_dns.erl This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the...
Author : nt Purpose : Get name servers in a Windows machine Created : 5 Mar 2009 by nt ejabberd , Copyright ( C ) 2002 - 2010 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a co...
913f0b0211e32b0da65921f955a762ca99df163dc267bf053d038a05daf880ad
TrustInSoft/tis-interpreter
metrics_base.ml
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/metrics/metrics_base.ml
ocaml
************************************************************************ alternatives) ...
Modified by TrustInSoft This file is part of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Softwa...
abb991e5316b65b6ab255c62ed9ecd1a921709ec5f797380c214d0debe9fb229
scalaris-team/scalaris
yaws_revproxy.erl
%%%------------------------------------------------------------------- %%% File : yaws_revproxy.erl %%% Author : <> %%% Description : reverse proxy %%% Created : 3 Dec 2003 by < > %%%------------------------------------------------------------------- -module(yaws_revproxy). -include("../include/yaws.hrl")....
null
https://raw.githubusercontent.com/scalaris-team/scalaris/feb894d54e642bb3530e709e730156b0ecc1635f/contrib/yaws/src/yaws_revproxy.erl
erlang
------------------------------------------------------------------- File : yaws_revproxy.erl Author : <> Description : reverse proxy ------------------------------------------------------------------- reverse proxy implementation. the socket opened on the backend server "Connection:" header value: "keep-...
Created : 3 Dec 2003 by < > -module(yaws_revproxy). -include("../include/yaws.hrl"). -include("../include/yaws_api.hrl"). -include("yaws_debug.hrl"). -export([out/1]). the revproxy internal state the socket type : ssl | nossl }). -define(proxy_keepalive, false). Initialize the ...
27fa15047b04abd7b642234149573b0927ab2c0bab5ceaf47792cbf0aa30ecff
danielecapo/sfont
properties.rkt
#lang racket (require racket/generic "private/gui/draw-property.rkt") (provide (all-defined-out) (all-from-out "private/gui/draw-property.rkt")) ;;; property prop:has-matrix ;;; Used for objects that have transformation matrix (like components) (define-values (prop:has-matrix has-matrix? has-matr...
null
https://raw.githubusercontent.com/danielecapo/sfont/c854f9734f15f4c7cd4b98e041b8c961faa3eef2/sfont/properties.rkt
racket
property prop:has-matrix Used for objects that have transformation matrix (like components) produce an object of type id with the new transformation matrix property prop:has-position Used for objects that have a position produce an object of type id with the new position
#lang racket (require racket/generic "private/gui/draw-property.rkt") (provide (all-defined-out) (all-from-out "private/gui/draw-property.rkt")) (define-values (prop:has-matrix has-matrix? has-matrix-ref) (make-struct-type-property 'has-matrix)) Any - > produce the TransformationMatrix of t...
be39e0681c48f5d6399b55cb581969c6f94458be7327cc5d9a2b73b060a0ee95
sjl/newseasons
users.clj
(ns newseasons.models.users (:use newseasons.settings) (:use newseasons.models.keys) (:use newseasons.utils) (:use [newseasons.models.shows :only (show-get)]) (:require [noir.util.crypt :as crypt]) (:use [aleph.redis :only (redis-client)])) (def r (redis-client {:host "localhost" :password redis-pass})) ...
null
https://raw.githubusercontent.com/sjl/newseasons/9f3bce450b413ee065abcf1b6b5b7dbdd8728481/src/newseasons/models/users.clj
clojure
"Schema" -------------------------------------------------------------------- Users are stored as Redis hashes, with their watched shows as a separate set. user:<email address> = { email: the email address for ease of use pass: the user's hashed password } user:<email address>:shows = #{show-id, ...} ...
(ns newseasons.models.users (:use newseasons.settings) (:use newseasons.models.keys) (:use newseasons.utils) (:use [newseasons.models.shows :only (show-get)]) (:require [noir.util.crypt :as crypt]) (:use [aleph.redis :only (redis-client)])) (def r (redis-client {:host "localhost" :password redis-pass})) ...
9ae705119caab05a29ac6a9518b233b482c48a5f6c8024f7cd4766580bd76412
input-output-hk/quickcheck-dynamic
CanGenerate.hs
module Test.QuickCheck.DynamicLogic.CanGenerate (canGenerate) where import System.IO.Unsafe import Test.QuickCheck | prob g p@ -- returns @False@ if we are sure @Prob(g generates x satisfying p) >= prob@ otherwise @True@ ( and we know such an x can be generated ) . canGenerate :: Double -> Gen a -> (a -> Boo...
null
https://raw.githubusercontent.com/input-output-hk/quickcheck-dynamic/aef136ede729a25762aecf95979951c07add817a/quickcheck-dynamic/src/Test/QuickCheck/DynamicLogic/CanGenerate.hs
haskell
returns @False@ if we are sure @Prob(g generates x satisfying p) >= prob@
module Test.QuickCheck.DynamicLogic.CanGenerate (canGenerate) where import System.IO.Unsafe import Test.QuickCheck | prob g p@ otherwise @True@ ( and we know such an x can be generated ) . canGenerate :: Double -> Gen a -> (a -> Bool) -> Bool canGenerate prob g p = unsafePerformIO $ tryToGenerate 1 where ...