_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 |
|---|---|---|---|---|---|---|---|---|
d4316c5be6c79a209c9ffe94f8b938cd28dbdbf83b14a40d37a30fd999b3a7dc | polyfy/polylith | ws_table.clj | (ns polylith.clj.core.workspace.text-table.ws-table
(:require [polylith.clj.core.text-table.interface :as text-table]
[polylith.clj.core.workspace.text-table.profile :as profile]
[polylith.clj.core.workspace.text-table.ws-table-column.ifc-column :as ifc-column]
[polylith.clj.core.w... | null | https://raw.githubusercontent.com/polyfy/polylith/febea3d8a9b30a60397594dda3cb0f25154b8d8d/components/workspace/src/polylith/clj/core/workspace/text_table/ws_table.clj | clojure | (ns polylith.clj.core.workspace.text-table.ws-table
(:require [polylith.clj.core.text-table.interface :as text-table]
[polylith.clj.core.workspace.text-table.profile :as profile]
[polylith.clj.core.workspace.text-table.ws-table-column.ifc-column :as ifc-column]
[polylith.clj.core.w... | |
ad46ffadb214b1e3c2ea6422ecf30d39f5820e34a69720a2cd1e99cc0022f57f | wireapp/wire-server | Options.hs | # LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE RecordWildCards #
-- This file is part of the Wire Server implementation.
--
Copyright ( C ) 2022 Wire Swiss GmbH < >
--
-- This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as publish... | null | https://raw.githubusercontent.com/wireapp/wire-server/b83b5840f65c28475559646e1331b8e4e1e4591a/services/spar/src/Spar/Options.hs | haskell | This file is part of the Wire Server implementation.
This program is free software: you can redistribute it and/or modify it under
later version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTI... | # LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE RecordWildCards #
Copyright ( C ) 2022 Wire Swiss GmbH < >
the terms of the GNU Affero General Public License as published by the Free
Software Foundation , either version 3 of the License , or ( at your option ) any
You should have received a copy of the GNU... |
2b1d730e56ee123e0582ef612a48a9e4f4fded60a04e99d6fa003bdf615d8c23 | emqx/emqx | emqx_bridge_schema.erl | %%--------------------------------------------------------------------
Copyright ( c ) 2022 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy o... | null | https://raw.githubusercontent.com/emqx/emqx/d0f43bead3ed7fd26c125080bee2f51aecea1e25/apps/emqx_bridge/src/schema/emqx_bridge_schema.erl | erlang | --------------------------------------------------------------------
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ... | Copyright ( c ) 2022 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(emqx_bridge_schema).
-include_lib("typerefl/include/types.hrl").
-include_lib("hocon/inc... |
581e6329272a217690ead0cad68258cd0225e556937eb7a68b65705989872e3f | danieljharvey/mimsa | Parser.hs | module Language.Mimsa.Core.Parser
( module Language.Mimsa.Core.Parser.Language,
module Language.Mimsa.Core.Parser.MonoType,
module Language.Mimsa.Core.Parser.TypeDecl,
module Language.Mimsa.Core.Parser.Module,
module Language.Mimsa.Core.Parser.Lexeme,
module Language.Mimsa.Core.Parser.Pattern,
... | null | https://raw.githubusercontent.com/danieljharvey/mimsa/e6b177dd2c38e8a67d6e27063ca600406b3e6b56/core/src/Language/Mimsa/Core/Parser.hs | haskell | module Language.Mimsa.Core.Parser
( module Language.Mimsa.Core.Parser.Language,
module Language.Mimsa.Core.Parser.MonoType,
module Language.Mimsa.Core.Parser.TypeDecl,
module Language.Mimsa.Core.Parser.Module,
module Language.Mimsa.Core.Parser.Lexeme,
module Language.Mimsa.Core.Parser.Pattern,
... | |
0ba833147759355e57397871f8e4c62aff396f5dda15ad16e378871b37096748 | johnwhitington/ocamli | mapp.ml | module IntPairs =
struct
type t = int * int
let compare (x0, y0) (x1, y1) =
match Pervasives.compare x0 x1 with
0 -> Pervasives.compare x0 x1
| x -> x
end
module PairsMap = Map.Make(IntPairs)
let m = PairsMap.empty
| null | https://raw.githubusercontent.com/johnwhitington/ocamli/28da5d87478a51583a6cb792bf3a8ee44b990e9f/examples/mapp.ml | ocaml | module IntPairs =
struct
type t = int * int
let compare (x0, y0) (x1, y1) =
match Pervasives.compare x0 x1 with
0 -> Pervasives.compare x0 x1
| x -> x
end
module PairsMap = Map.Make(IntPairs)
let m = PairsMap.empty
| |
27b323123e3d7f6c66b2201062e2426c7da7e5a1cf7471c175ae1391d78b1375 | essandess/adblock2privoxy | Main.hs | module Main where
import InputParser
import ElementBlocker
import UrlBlocker
import Text.ParserCombinators.Parsec hiding (Line, many, optional)
import Task
import SourceInfo as Source
import ProgramOptions as Options
import System.Environment
import Templates
import Data.Time.Clock
import Network.HTTP.Conduit
import Ne... | null | https://raw.githubusercontent.com/essandess/adblock2privoxy/10bab4648887b31926516d61127411bab6af810b/adblock2privoxy/src/Main.hs | haskell | module Main where
import InputParser
import ElementBlocker
import UrlBlocker
import Text.ParserCombinators.Parsec hiding (Line, many, optional)
import Task
import SourceInfo as Source
import ProgramOptions as Options
import System.Environment
import Templates
import Data.Time.Clock
import Network.HTTP.Conduit
import Ne... | |
acc7a6b8d8e39ce65d3b7b04774ba2af24dff2bb6d9a5211bff6d17b20c1a962 | glguy/advent | 04.hs | {-# Language QuasiQuotes #-}
|
Module : Main
Description : Day 4 solution
Copyright : ( c ) , 2021
License : ISC
Maintainer :
< >
Today we played Bingo and picked the first and last winning cards
Module : Main
Description : Day 4 solution
Copyright : (c) Eric Mertens, 2021
... | null | https://raw.githubusercontent.com/glguy/advent/7ab9f9e47208fd5720e36bac33fee2b78d4ec50b/solutions/src/2021/04.hs | haskell | # Language QuasiQuotes #
| >>> :main
| Given the called numbers and initial boards return a list of
winning scores in order of winning.
| Compute the final score for a board given the last call and unmarked numbers.
| Predicate for boards with a completed row or column | |
Module : Main
Description : Day 4 solution
Copyright : ( c ) , 2021
License : ISC
Maintainer :
< >
Today we played Bingo and picked the first and last winning cards
Module : Main
Description : Day 4 solution
Copyright : (c) Eric Mertens, 2021
License : ISC
Maintainer ... |
5e9b27f508a08a5d1c1add6e6ae35d03249bc57e69f8f5d79d6d68d962989537 | Elzair/nazghul | prison.scm |
;;----------------------------------------------------------------------------
;; Map
;;----------------------------------------------------------------------------
(kern-mk-map
'm_prison 32 9 pal_expanded
(list
"xx xx xx xx xx xx xx xx xx xx xx xx xx rn xx xx xx xx xx xx xx xx xx xx xx xx xx rn rn rn rn rn "
"x... | null | https://raw.githubusercontent.com/Elzair/nazghul/8f3a45ed6289cd9f469c4ff618d39366f2fbc1d8/worlds/haxima-1.002/prison.scm | scheme | ----------------------------------------------------------------------------
Map
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
-------... |
(kern-mk-map
'm_prison 32 9 pal_expanded
(list
"xx xx xx xx xx xx xx xx xx xx xx xx xx rn xx xx xx xx xx xx xx xx xx xx xx xx xx rn rn rn rn rn "
"xx ,, ,, ,, xx xx xx xx xx ,, xx ,, xx rn xx ,, ,, ,, xx ,, ,, ,, xx ,, ,, ,, xx rn rn rn rn rn "
"xx ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, xx xx xx ,, ,, ,, xx ,, ,, ,,... |
09bd1fba069f2ce9b3a45ac983d146c3a04f6eec9c961efbd2ef385914a43f03 | pink-gorilla/pinkie | pinkie_registry_test.cljs | (ns pinkie.pinkie-registry-test
(:require
[cljs.test :refer-macros [async deftest is testing]]
[pinkie.macros :refer-macros [fn-meta]]
[pinkie.pinkie :refer [component-list get-component get-renderer] :refer-macros [register-component]]
this registers jsrender
[pinkie.html :refer [html]]
[pinkie.text... | null | https://raw.githubusercontent.com/pink-gorilla/pinkie/f129cf6eb21d3822ef677bbbc0ef67bf785b197e/test/pinkie/pinkie_registry_test.cljs | clojure | "just testing"
render fubctions in registry are identical
some components have to have valid category
checks if register/lookup works and meta storage
render js has to be validly defined | (ns pinkie.pinkie-registry-test
(:require
[cljs.test :refer-macros [async deftest is testing]]
[pinkie.macros :refer-macros [fn-meta]]
[pinkie.pinkie :refer [component-list get-component get-renderer] :refer-macros [register-component]]
this registers jsrender
[pinkie.html :refer [html]]
[pinkie.text... |
3c133df179d8fdf93699ea6ec7a89aaf659216bcb28c398c568ae2a962144dc1 | nyu-acsys/drift | toChurch01.ml |
let rec bot _ = bot ()
let fail _ = assert false
let rec c10_COEFFICIENT_1129 = 0
let rec c9_COEFFICIENT_1128 = 0
let rec c8_COEFFICIENT_1127 = 0
let rec c7_COEFFICIENT_1125 = 0
let rec c6_COEFFICIENT_1124 = 0
let rec c5_COEFFICIENT_1123 = 0
let rec c4_COEFFICIENT_1122 = 0
let rec c3_COEFFICIE... | null | https://raw.githubusercontent.com/nyu-acsys/drift/51a3160d74b761626180da4f7dd0bb950cfe40c0/tests/benchmarks/r_type/termination/toChurch01.ml | ocaml | -:{v:Int | true} |
let rec bot _ = bot ()
let fail _ = assert false
let rec c10_COEFFICIENT_1129 = 0
let rec c9_COEFFICIENT_1128 = 0
let rec c8_COEFFICIENT_1127 = 0
let rec c7_COEFFICIENT_1125 = 0
let rec c6_COEFFICIENT_1124 = 0
let rec c5_COEFFICIENT_1123 = 0
let rec c4_COEFFICIENT_1122 = 0
let rec c3_COEFFICIE... |
b2eae060c3edfab4f5ba23565717b2e7c9d0a706a103e1e751382c3e34c61e36 | kaznum/programming_in_ocaml_exercise | uncurry.ml | let curry f x y = f (x, y);;
let average (x, y) = (x +. y) /. 2.0;;
let curried_avg = curry average;;
curried_avg 1.0 2.0;;
let uncurry f (x, y) = f x y;;
let avg = uncurry curried_avg in
avg (4.0, 5.3);;
let add = uncurry (+.) in
add (3.1, 2.2);;
| null | https://raw.githubusercontent.com/kaznum/programming_in_ocaml_exercise/6f6a5d62a7a87a1c93561db88f08ae4e445b7d4e/ex4.1/uncurry.ml | ocaml | let curry f x y = f (x, y);;
let average (x, y) = (x +. y) /. 2.0;;
let curried_avg = curry average;;
curried_avg 1.0 2.0;;
let uncurry f (x, y) = f x y;;
let avg = uncurry curried_avg in
avg (4.0, 5.3);;
let add = uncurry (+.) in
add (3.1, 2.2);;
| |
43166d4f0bb896669c4ff87663c2cb57fa4b4ad85b2a90e7f51049402e8aeb82 | Dasudian/DSDIN | utils_time.erl | -module(utils_time).
%% API
-export([now_in_msecs/0,
msecs_to_secs/1]).
now_in_msecs() ->
{Megasecs, Secs, Microsecs} = os:timestamp(),
Megasecs * 1000000000 + Secs * 1000 + Microsecs div 1000.
msecs_to_secs(Msecs) ->
Msecs div 1000.
| null | https://raw.githubusercontent.com/Dasudian/DSDIN/b27a437d8deecae68613604fffcbb9804a6f1729/apps/utils/src/utils_time.erl | erlang | API | -module(utils_time).
-export([now_in_msecs/0,
msecs_to_secs/1]).
now_in_msecs() ->
{Megasecs, Secs, Microsecs} = os:timestamp(),
Megasecs * 1000000000 + Secs * 1000 + Microsecs div 1000.
msecs_to_secs(Msecs) ->
Msecs div 1000.
|
15d4de6aa89940d25e89c7483ab7b70d262312edb716425ca6b90e80139ebccc | kongo2002/statser | statser_parser.erl | -module(statser_parser).
-export([parse/1,file/1]).
-define(p_anything,true).
-define(p_charclass,true).
-define(p_choose,true).
-define(p_label,true).
-define(p_not,true).
-define(p_one_or_more,true).
-define(p_optional,true).
-define(p_scan,true).
-define(p_seq,true).
-define(p_string,true).
-define(p_zero_or_more,tr... | null | https://raw.githubusercontent.com/kongo2002/statser/1cb0498f56c97d8a010b979c5163dd2750064e98/src/statser_parser.erl | erlang | See if the current reduction is memoized
Memo; % If it is, return the stored result
If not, attempt to parse
If it fails, memoize the failure
If it passes, transform and memoize the result.
strings
single characters | -module(statser_parser).
-export([parse/1,file/1]).
-define(p_anything,true).
-define(p_charclass,true).
-define(p_choose,true).
-define(p_label,true).
-define(p_not,true).
-define(p_one_or_more,true).
-define(p_optional,true).
-define(p_scan,true).
-define(p_seq,true).
-define(p_string,true).
-define(p_zero_or_more,tr... |
c92d94fc108c9e330723ea4c85a892a6444a6f049b4e8fbc1a453929a8ac41e6 | karlhof26/gimp-scheme | line-nova-gt.scm | ;;; line-nova-gt.scm for gimp-2.x -*-scheme-*-
Time - stamp : < 1998/11/25 13:26:44 >
Author < >
;;; Version 0.8 - Updated By GnuTux - 10-2014 -
Version 0.9 - Updated By Graechan 10 - 2014 - Path Select
Version 0.91 - Updated By Graechan 10 - 2014 - Gradient Nova
Version 0.92 - Updated By Graechan 10 ... | null | https://raw.githubusercontent.com/karlhof26/gimp-scheme/d9c23328ae9e965d1a0d59e20166d22a3ccf5872/line-nova-gt.scm | scheme | line-nova-gt.scm for gimp-2.x -*-scheme-*-
Version 0.8 - Updated By GnuTux - 10-2014 -
line-nova-gt.scm
01/03/2020 on GIMP-2.10.18
==============================================================
Installation:
This script should be placed in the user or system-wide script folder.
Windows Vista/7/8)
or
... | Time - stamp : < 1998/11/25 13:26:44 >
Author < >
Version 0.9 - Updated By Graechan 10 - 2014 - Path Select
Version 0.91 - Updated By Graechan 10 - 2014 - Gradient Nova
Version 0.92 - Updated By Graechan 10 - 2014 - Bug Fix
Version 0.93 - Updated by karlhof26 01 - 03 - 2020 - Fixed for Gimp 2.10.18
... |
9fb370008157eee775aeead34ff7e12b1875c16f84ab08b9d8ff90745ced7ed4 | ygmpkk/house | ReceiverEvent.hs | module ReceiverEvent where
-- ********************************************************************************
Clean to Haskell Standard Object I / O library , version 1.2
--
-- ReceiverEvent defines the DeviceEventFunction for the receiver device.
-- This function is placed in a separate module because it is plat... | null | https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/hslibs/object-io/OSWindows/ReceiverEvent.hs | haskell | ********************************************************************************
ReceiverEvent defines the DeviceEventFunction for the receiver device.
This function is placed in a separate module because it is platform dependent.
********************************************************************************
r... | module ReceiverEvent where
Clean to Haskell Standard Object I / O library , version 1.2
import DeviceEvents
import IOState
import OSEvent
receiverEvent :: IOSt ps -> SchedulerEvent -> IO (Bool,Maybe DeviceEvent,SchedulerEvent)
receiverEvent ioState schedulerEvent@(ScheduleMsgEvent recLoc)
| ioStGetIOId i... |
00f5dd52eadba1c744675ff681873825b2c7366083886fad56a7c1757a08820c | ahrefs/devkit | files.mli | (** File system *)
val enum_dir : Unix.dir_handle -> string Enum.t
val with_readdir : string -> (Unix.dir_handle -> 'a) -> 'a
* [ f fd path rel ] gets invoked for each file under [ ] where
[ fd ] is a read - only [ Unix.file_descr ] , [ path ] is full path and [ rel ] - path relative to [ dirname ]
[fd] is a read-... | null | https://raw.githubusercontent.com/ahrefs/devkit/559c2df8f6eacb091e0eac38f508c45b6567bdd8/files.mli | ocaml | * File system
* [iter_files dirname (fun [path] [ic] -> ...)]
* [save_as filename ?mode f] is similar to
[Control.with_open_file_bin] except that writing is done to a
temporary file that will be renamed to [filename] after [f] has
succesfully terminated. Therefore this guarantee that either
[filename]... |
val enum_dir : Unix.dir_handle -> string Enum.t
val with_readdir : string -> (Unix.dir_handle -> 'a) -> 'a
* [ f fd path rel ] gets invoked for each file under [ ] where
[ fd ] is a read - only [ Unix.file_descr ] , [ path ] is full path and [ rel ] - path relative to [ dirname ]
[fd] is a read-only [Unix.file_des... |
5826fb1845120150c46b1c02222e672b636515a6559345608546ecf381fce314 | sky-big/RabbitMQ | rabbit_federation_exchange.erl | The contents of this file are subject to the Mozilla Public License
%% Version 1.1 (the "License"); you may not use this file except in
%% compliance with the License. You may obtain a copy of the License
%% at /
%%
Software distributed under the License is distributed on an " AS IS "
%% basis, WITHOUT WARRANTY OF ... | null | https://raw.githubusercontent.com/sky-big/RabbitMQ/d7a773e11f93fcde4497c764c9fa185aad049ce2/plugins-src/rabbitmq-federation/src/rabbit_federation_exchange.erl | erlang | Version 1.1 (the "License"); you may not use this file except in
compliance with the License. You may obtain a copy of the License
at /
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
the License for the specific language governing rights and
limitations under the License.
----------------... | The contents of this file are subject to the Mozilla Public License
Software distributed under the License is distributed on an " AS IS "
The Original Code is RabbitMQ Federation .
The Initial Developer of the Original Code is GoPivotal , Inc.
Copyright ( c ) 2007 - 2014 GoPivotal , Inc. All rights reserved... |
2d9f65c7dfb6cc89072dee64eeedb6822b2bd2436c81f833572963f83129c8ef | serokell/foundry | KeyCode.hs | # LANGUAGE PatternSynonyms #
{-# OPTIONS -Wno-missing-pattern-synonym-signatures #-}
module Source.Input.KeyCode where
pattern Backspace = 65288
pattern Delete = 65535
pattern Enter = 65293
pattern ArrowLeft = 65361
pattern ArrowRight = 65363
pattern ArrowUp = 65362
pattern ArrowDown = 65364
pattern Escape = ... | null | https://raw.githubusercontent.com/serokell/foundry/dd5b9744a88f441559d254f868792956dc552037/src/driver/Source/Input/KeyCode.hs | haskell | # OPTIONS -Wno-missing-pattern-synonym-signatures # | # LANGUAGE PatternSynonyms #
module Source.Input.KeyCode where
pattern Backspace = 65288
pattern Delete = 65535
pattern Enter = 65293
pattern ArrowLeft = 65361
pattern ArrowRight = 65363
pattern ArrowUp = 65362
pattern ArrowDown = 65364
pattern Escape = 65307
pattern Space = 32
|
c9f500415e91d68abe4a994a714cce3678d173564e8299fd44166079bb431051 | whamtet/ctmx | click_to_load.clj | (ns demo.routes.click-to-load
(:require
[ctmx.core :as ctmx :refer [defcomponent make-routes defn-parse]]
[demo.middleware.formats :refer [page]]))
(def src "0123456789ABCDEF")
(defn rand-str []
(clojure.string/join (repeatedly 15 #(rand-nth src))))
(defn tr [i]
[:tr [:td "Agent Smith"] [:td (str "void"... | null | https://raw.githubusercontent.com/whamtet/ctmx/2a73b75d92f189bf4f685afb31beb4e84702f698/demo/src/clj/demo/routes/click_to_load.clj | clojure | (ns demo.routes.click-to-load
(:require
[ctmx.core :as ctmx :refer [defcomponent make-routes defn-parse]]
[demo.middleware.formats :refer [page]]))
(def src "0123456789ABCDEF")
(defn rand-str []
(clojure.string/join (repeatedly 15 #(rand-nth src))))
(defn tr [i]
[:tr [:td "Agent Smith"] [:td (str "void"... | |
91b8fae929f93daddff6923a3ab24c0ab9b7661dcc44d65edb7e96e9da5ccda7 | janestreet/base | blit.mli | * @inline
| null | https://raw.githubusercontent.com/janestreet/base/221b085f3fcd77597f8245b4d73de3970b238e71/src/blit.mli | ocaml | * @inline
| |
105bd675ea6a7c09b209c4940126b38db8518c483266af261ad0073e113b4f07 | reborg/parallel | xf.clj | (ns parallel.xf
(:refer-clojure :exclude [interleave pmap identity]))
(defn interleave
"Transducer version of core/interleave."
[coll]
(fn [rf]
(let [fillers (volatile! (seq coll))]
(fn
([] (rf))
([result] (rf result))
([result input]
(if-let [[filler] @fillers]
... | null | https://raw.githubusercontent.com/reborg/parallel/7fde6e48e49455f213c435239c35d31c60e08948/src/parallel/xf.clj | clojure | (ns parallel.xf
(:refer-clojure :exclude [interleave pmap identity]))
(defn interleave
"Transducer version of core/interleave."
[coll]
(fn [rf]
(let [fillers (volatile! (seq coll))]
(fn
([] (rf))
([result] (rf result))
([result input]
(if-let [[filler] @fillers]
... | |
3e7e27ac4bbb51b1be09102d930dd7f669aeef5fd9c0267bd59ddb7776e82205 | TrustInSoft/tis-kernel | GuiNavigator.ml | (**************************************************************************)
(* *)
This file is part of .
(* *)
is a fork of Frama - C. Al... | null | https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/plugins/wp/GuiNavigator.ml | ocaml | ************************************************************************
... | This file is part of .
is a fork of Frama - C. All the differences are :
Copyright ( C ) 2016 - 2017
is released under GPLv2
This file is part of WP plug - in of Frama - C.
Copyright ( C ) 2007 - 2015 ... |
aeffdbfede8dce8222c2a6f9fa2ddda42722ee3acfd23df16c16faca16ab138e | ufasoft/lisp | loop.lisp | ;; ANSI CL Loop
( LOOP { loop - clause } * ) , CLtL2 p. 163,709 - 747
;; <-1.html>
;; <>
1991 - 2004
1999 - 2005
(in-package "COMMON-LISP")
(export '(loop loop-finish))
(pushnew ':loop *features*)
(in-package "SYSTEM")
Parser auxiliary functions
;; (loop-keywordp obj) determines whether OBJ is a loop ke... | null | https://raw.githubusercontent.com/ufasoft/lisp/bd5213fbd5e162ca7e8a4a9b5aeb6252f38a30fc/clisp/loop.lisp | lisp | ANSI CL Loop
<-1.html>
<>
(loop-keywordp obj) determines whether OBJ is a loop keyword,
the entire form (LOOP ...)
(loop-syntax-error loop-keyword) reports a syntax error.
FIXME: should be something more useful
destructuring:
(destructure-vars pattern) returns the list of variables occuring
in the pattern.
(... | ( LOOP { loop - clause } * ) , CLtL2 p. 163,709 - 747
1991 - 2004
1999 - 2005
(in-package "COMMON-LISP")
(export '(loop loop-finish))
(pushnew ':loop *features*)
(in-package "SYSTEM")
Parser auxiliary functions
and then returns the appropriate unique symbol , otherwise NIL .
(defun loop-keywordp (obj)... |
8f2458a7c3cf66c7667b4845294ea13ea78aa2d0dd1d3b1c691bddf9e00cdd51 | vikram/lisplibraries | window.lisp | ;; -*- lisp -*-
(in-package :it.bese.ucw)
;;;; ** Simple Window
(defclass window-component ()
((content-type :accessor window-component.content-type
:initarg :content-type
:initform nil ; default is text/html with charset from current application
:documentation "T... | null | https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/ucw-boxset/ucw_dev/src/components/window.lisp | lisp | -*- lisp -*-
** Simple Window
default is text/html with charset from current application
really, really don't like empty script tags. The "" forces
yaclml to generate a seperate closing tag.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted pr... |
(in-package :it.bese.ucw)
(defclass window-component ()
((content-type :accessor window-component.content-type
:initarg :content-type
:documentation "The Content-Type header for the
http response (also used in the meta tag)")))
(defmethod window-component.content... |
60c05da26d535528dfa0b1687463fdb21bd3fb80c0295dc95f602c45bee4ad91 | ekmett/data-lens | Lazy.hs | module Data.Lens.Lazy
( module Data.Lens.Common
-- * State API
getter -- : : = > Lens a b - > StateT a m b
setter -- : : = > Lens a b - > b - > StateT a m b
modify -- : : = > Lens a b - > ( b - > b ) - > StateT a m b
modify -- : : = > Lens a b - > ( b - > ( c , b ) ) - > StateT a m c
modify -- : :... | null | https://raw.githubusercontent.com/ekmett/data-lens/7df83abbf3b55f08791733d41d676eac42d0adb9/Data/Lens/Lazy.hs | haskell | * State API
: : = > Lens a b - > StateT a m b
: : = > Lens a b - > b - > StateT a m b
: : = > Lens a b - > ( b - > b ) - > StateT a m b
: : = > Lens a b - > ( b - > ( c , b ) ) - > StateT a m c
: : ( , ) = > Lens a b - > b - > StateT a m b
: : ( , ) = > Lens a b - > b - > StateT a m b
: : ( , ... | module Data.Lens.Lazy
( module Data.Lens.Common
) where
import Control.Comonad.Trans.Store
import Control.Monad.Trans.State
import Control.Monad (liftM)
import Data.Functor.Identity
import Data.Lens.Common
access :: Monad m => Lens a b -> StateT a m b
access (Lens f) = gets (pos . f)
# INLINE access #
focus :: ... |
8f40d78788ad775c86f69052cf3b918c7428da9d24de8bedb7cf40571fa075d3 | stonebuddha/eopl | main.ml | open Support
open Syntax
open Core
let main () =
try Stream.of_channel (open_in Sys.argv.(1)) |> parse |> value_of_program
with Invalid_argument msg -> print_endline "Usage: THIS filename"; exit 1
| Sys_error msg -> print_endline msg; exit 1
| Ploc.Exc (loc, Stream.Error msg) -> print_endline (string_of_... | null | https://raw.githubusercontent.com/stonebuddha/eopl/88ea636110421706f900e753c30240ff1ea26f67/PROC-EXT/main.ml | ocaml | open Support
open Syntax
open Core
let main () =
try Stream.of_channel (open_in Sys.argv.(1)) |> parse |> value_of_program
with Invalid_argument msg -> print_endline "Usage: THIS filename"; exit 1
| Sys_error msg -> print_endline msg; exit 1
| Ploc.Exc (loc, Stream.Error msg) -> print_endline (string_of_... | |
949c98a380ffab6a7240f78b79b4583ffc488149edacd6730ee5e4b75e4eaa15 | fractalide/fractalide | choice.rkt | #lang racket/base
(require fractalide/modules/rkt/rkt-fbp/agent
fractalide/modules/rkt/rkt-fbp/agents/gui/helper)
(require racket/gui/base
racket/match)
(require (prefix-in class: racket/class))
(define base-default
(hash 'label #f
'choices '()
'selection 0
'style '()
... | null | https://raw.githubusercontent.com/fractalide/fractalide/9c54ec2615fcc2a1f3363292d4eed2a0fcb9c3a5/modules/rkt/rkt-fbp/agents/gui/choice.rkt | racket | in port
out port | #lang racket/base
(require fractalide/modules/rkt/rkt-fbp/agent
fractalide/modules/rkt/rkt-fbp/agents/gui/helper)
(require racket/gui/base
racket/match)
(require (prefix-in class: racket/class))
(define base-default
(hash 'label #f
'choices '()
'selection 0
'style '()
... |
b393171cd000706014c275ebad5b7d44779a88aec3ff218366b6435b4127ef61 | facebook/flow | check_cache.ml |
* Copyright ( c ) Meta Platforms , Inc. and affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in t... | null | https://raw.githubusercontent.com/facebook/flow/34a9747fe44e88dfeac5c257349f4476220ac43a/src/services/inference/check_cache.ml | ocaml | Each cached file holds a reference to its associated cached component
* context so that we can decrement its reference count.
When a file is dropped from the cache, we decrement the refcount on its
* cached component context. Once no more files reference a given component
* context, we remove it from the cache.
... |
* Copyright ( c ) Meta Platforms , Inc. and affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in t... |
ecee143806810f0064048a3292674da77cee9ddfafbf830ca4ad8d9e65a42b79 | nomeata/haskell-candid | Types.hs | {-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DeriveTraversable #-}
module Codec.Candid.Types where
import qualified Data.ByteString.Lazy as BS
import qualified Data.Text as T
import qualified Data.Vector as V
import Data.Word
import Data.Int
import Numeric.Natural
import Control.Monad
import Data.Bifunctor
import D... | null | https://raw.githubusercontent.com/nomeata/haskell-candid/87a4f01eb9cb93c827a0a7f5f29af0ee19135308/src/Codec/Candid/Types.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE DeriveTraversable #
prim types
constructors
reference
short-hands
^ a short-hand for 'VecT' 'Nat8T'
future types
for recursive types
^ A reference to a named type
TODO: encode field names
used when parsing at an unknown numeric type
^ An opaque value of a future type... | module Codec.Candid.Types where
import qualified Data.ByteString.Lazy as BS
import qualified Data.Text as T
import qualified Data.Vector as V
import Data.Word
import Data.Int
import Numeric.Natural
import Control.Monad
import Data.Bifunctor
import Data.Void
import Data.Scientific
import Data.Char
import Numeric
impor... |
134e8ed50fd75a91b7aa16fbc86345d2520c739535e4b174a4b41ae7e3106f9b | enaeher/local-time-duration | timestamp.lisp | (in-package :ltd-tests)
(eval-when (:compile-toplevel :load-toplevel :execute)
(local-time:enable-read-macros))
(5am:test timestamp-difference
(5am:is (duration= (timestamp-difference @2014-01-01T09:00:00
@2014-01-01T04:30:00)
(duration :hour 4 :minu... | null | https://raw.githubusercontent.com/enaeher/local-time-duration/fa20a4a03a1ee076eada649796e2f2345c930c21/tests/timestamp.lisp | lisp | (in-package :ltd-tests)
(eval-when (:compile-toplevel :load-toplevel :execute)
(local-time:enable-read-macros))
(5am:test timestamp-difference
(5am:is (duration= (timestamp-difference @2014-01-01T09:00:00
@2014-01-01T04:30:00)
(duration :hour 4 :minu... | |
baba850fcba129075b497f1a17f119dfa290fdcd1c77d4660403b4b13daf9413 | caribou/caribou-core | util.clj | (ns caribou.util
(:require [clojure.string :as string]
[clojure.java.jdbc.deprecated :as old-sql]
[clojure.java.io :as io]
[clojure.data.codec.base64 :as b64]))
(import java.util.regex.Matcher)
(import java.sql.SQLException)
(import java.io.File)
(import java.util.UUID)
(defn ran... | null | https://raw.githubusercontent.com/caribou/caribou-core/6ebd9db4e14cddb1d6b4e152e771e016fa9c55f6/src/caribou/util.clj | clojure | this is not actually an error
only apply to maps (not records)
db support ------------------------------- | (ns caribou.util
(:require [clojure.string :as string]
[clojure.java.jdbc.deprecated :as old-sql]
[clojure.java.io :as io]
[clojure.data.codec.base64 :as b64]))
(import java.util.regex.Matcher)
(import java.sql.SQLException)
(import java.io.File)
(import java.util.UUID)
(defn ran... |
29dac0f8c7e72e36a9b521cedf9042e43844f0112ec6cd233b266926e8f7867c | unnohideyuki/bunny | sample218.hs | f '0' = "'0'"
f _ = "non-zero"
main = do putStrLn $ f '1'
putStrLn $ f '0'
| null | https://raw.githubusercontent.com/unnohideyuki/bunny/501856ff48f14b252b674585f25a2bf3801cb185/compiler/test/samples/sample218.hs | haskell | f '0' = "'0'"
f _ = "non-zero"
main = do putStrLn $ f '1'
putStrLn $ f '0'
| |
2a0765d1eb935e6aa9ef914453aa5ee0cea46ac5119753f75008e9c813a7df41 | contivero/hasmin | Color.hs | {-# LANGUAGE OverloadedStrings #-}
-----------------------------------------------------------------------------
-- |
-- Module : Hasmin.Types.Color
Copyright : ( c ) 2017
-- License : BSD3
-- Stability : experimental
-- Portability : unknown
--
-------------------------------------------------------... | null | https://raw.githubusercontent.com/contivero/hasmin/2a7604159b51e69c5e9c564dce53cb3ab09ae22b/src/Hasmin/Types/Color.hs | haskell | # LANGUAGE OverloadedStrings #
---------------------------------------------------------------------------
|
Module : Hasmin.Types.Color
License : BSD3
Stability : experimental
Portability : unknown
---------------------------------------------------------------------------
| CSS <-color/#colorunits \... | Copyright : ( c ) 2017
module Hasmin.Types.Color
( Color(Named)
, mkHex3
, mkHex4
, mkHex6
, mkHex8
, mkNamed
, mkHSL
, mkHSLA
, mkRGBInt
, mkRGBPer
, mkRGBAInt
, mkRGBAPer
, keywordColors
, minifyColor
) where
import Control.Arrow (first)
import Control.Monad.Reader (asks)
import... |
b9da323f6d8efd0096d36a7bb0234efea890b71606c77a7df7c2102c7f7da125 | albertoruiz/easyVision | param1.hs | import EasyVision
smooth cam = do
o <- createParameters [("sigma",realParam 3 0 20)]
return $ do
x <- cam
sigma <- getParam o "sigma"
return (gaussS sigma x)
main = run $ camera ~> float . grayscale >>= smooth >>= observe "gauss" id
| null | https://raw.githubusercontent.com/albertoruiz/easyVision/26bb2efaa676c902cecb12047560a09377a969f2/projects/old/tutorial/param1.hs | haskell | import EasyVision
smooth cam = do
o <- createParameters [("sigma",realParam 3 0 20)]
return $ do
x <- cam
sigma <- getParam o "sigma"
return (gaussS sigma x)
main = run $ camera ~> float . grayscale >>= smooth >>= observe "gauss" id
| |
ada12ee038b36ab969e01779bdb39d8ebd25703c00daf8142f4ecc1a84005280 | realworldocaml/book | test_recursive_groups.ml | open Base
[@@@warning "-37"]
module _ = struct
type t = T of int [@@deriving_inline sexp_grammar]
let _ = fun (_ : t) -> ()
let (t_sexp_grammar : t Sexplib0.Sexp_grammar.t) =
{ untyped =
Lazy
(lazy
(Variant
{ case_sensitivity = Case_sensitive_except_first_chara... | null | https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/ppx_sexp_conv/test/sexp_grammar/test_recursive_groups.ml | ocaml | open Base
[@@@warning "-37"]
module _ = struct
type t = T of int [@@deriving_inline sexp_grammar]
let _ = fun (_ : t) -> ()
let (t_sexp_grammar : t Sexplib0.Sexp_grammar.t) =
{ untyped =
Lazy
(lazy
(Variant
{ case_sensitivity = Case_sensitive_except_first_chara... | |
7c10e06a9c4b19a60a7978a9adb3693a6f2f2cb7d9ef3a3f95abb4db19c5c682 | mclumd/Meta-AQUA | understander.lisp | -*- Mode : LISP ; Syntax : Common - lisp ; Package : Meta - aqua ; Base : 10 -*-
(in-package :metaaqua)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;
;;;; The Meta-AQUA Introspective Multistrategy Learning System
;;;; Version 6
;;;;
Copyright ( C ) 1... | null | https://raw.githubusercontent.com/mclumd/Meta-AQUA/e4d4f83330fd07d1354aec245a49bde9e246c618/understander.lisp | lisp | Syntax : Common - lisp ; Package : Meta - aqua ; Base : 10 -*-
The Meta-AQUA Introspective Multistrategy Learning System
Version 6
File: understander.lisp
*******************************************************
This program is free software; you can redistribute it a... |
(in-package :metaaqua)
Copyright ( C ) 1996 ( )
under the terms of the GNU General Public License as published by the Free
You should have received a copy of the GNU General Public License along
Mass Ave , Cambridge , , USA . In emacs type C - h C - w to view license .
... |
63292cf4ee30ee638988796b1c418015c9086ca216687636fa9d80f0008113cf | synduce/Synduce | largest_even_pos.ml | * @synduce -s 2 -NB --no - lifting
type 'a clist =
| Elt of 'a
| Cons of 'a * 'a clist
let rec is_sorted = function
| Elt x -> true
| Cons (hd, tl) -> aux hd tl
and aux prev = function
| Elt x -> prev >= x
| Cons (hd, tl) -> prev >= hd && aux hd tl
;;
let rec lpen = function
| Elt x -> if x mod 2 = 0 ... | null | https://raw.githubusercontent.com/synduce/Synduce/42d970faa863365f10531b19945cbb5cfb70f134/benchmarks/incomplete/sortedlist/largest_even_pos.ml | ocaml | * @synduce -s 2 -NB --no - lifting
type 'a clist =
| Elt of 'a
| Cons of 'a * 'a clist
let rec is_sorted = function
| Elt x -> true
| Cons (hd, tl) -> aux hd tl
and aux prev = function
| Elt x -> prev >= x
| Cons (hd, tl) -> prev >= hd && aux hd tl
;;
let rec lpen = function
| Elt x -> if x mod 2 = 0 ... | |
d78aec27bc72edd7c519374f6f0f8e31e22814fac50176e0ecea8fc861a437f9 | life0fun/clojure-idiom | defspout.clj | (defn normalize-fns [body]
(for [[name args & impl] body
:let [args (-> "this"
gensym
(cons args)
vec)]] ... | null | https://raw.githubusercontent.com/life0fun/clojure-idiom/481b297eeabea917a68b492b1fb78b8151408507/defspout.clj | clojure | (println definer ) | (defn normalize-fns [body]
(for [[name args & impl] body
:let [args (-> "this"
gensym
(cons args)
vec)]] ... |
6437094f460f629fd2062f664ff48f35b02c8fdee2db4711c971f17e67314413 | OpenC2-org/ocas | act_start.erl | @author
( C ) 2017 , sFractal Consulting LLC
-module(act_start).
%%%-------------------------------------------------------------------
%%%
%%% All rights reserved.
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%%%
%%% Redistribution and use in source and binary forms, with or without
%... | null | https://raw.githubusercontent.com/OpenC2-org/ocas/c15132d9f37b1e0e29884456a520557c25b22f38/apps/ocas/src/action_servers/act_start.erl | erlang | -------------------------------------------------------------------
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this... | @author
( C ) 2017 , sFractal Consulting LLC
-module(act_start).
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
" AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT
OWNER OR ANY DIRECT , INDIRECT , INCIDENTAL ,
SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( I... |
ad5bc4fbc141d485c66f134238cabd6768d368c0bd8294c2de0b17238803d54b | tov/dssl2 | negative-huh.rkt | #lang dssl2
assert neg?(-5)
assert neg?(-5.5)
assert not neg?(0)
assert not neg?(1)
| null | https://raw.githubusercontent.com/tov/dssl2/105d18069465781bd9b87466f8336d5ce9e9a0f3/test/dssl2/negative-huh.rkt | racket | #lang dssl2
assert neg?(-5)
assert neg?(-5.5)
assert not neg?(0)
assert not neg?(1)
| |
d9e183818f4aa8c6aad04ec079f3713251213c94c14c21665605a341885e2e0b | project-oak/hafnium-verification | uninit.ml |
* Copyright ( c ) Facebook , Inc. and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
... | null | https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/checkers/uninit.ml | ocaml | * Forward analysis to compute uninitialized variables at each program point
checks that the set of initialized formal parameters defined in the precondition of
the function (init_formal_params) contains the (base of) nth formal parameter of the function
true if a function initializes at least a param or a fiel... |
* Copyright ( c ) Facebook , Inc. and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
... |
d67f4d8377cd3fee02ccf705646a52a384ec54da2f67a6318efb4b1b3f45eb20 | hiredman/raft | raft.clj | (ns com.manigfeald.raft
"runs the raft algorithm one step at a time."
(:require [com.manigfeald.raft.core :refer :all]
[com.manigfeald.raft.rules :refer [rules-of-raft]])
(:import (clojure.lang PersistentQueue)))
;; TODO: why do the tests still need with-pings with leaders sending noops?
;; TODO: doc... | null | https://raw.githubusercontent.com/hiredman/raft/6e0575dd8a25b131281c6ebb212b86b0d984c416/src/com/manigfeald/raft.clj | clojure | TODO: why do the tests still need with-pings with leaders sending noops?
TODO: document message formats
defrecords mainly just to document the expected fields
(:votes (:raft-state raft-state)))
(log-trace "votes"
(:votes (:raft-state new-state))
(:run-count new-state)) | (ns com.manigfeald.raft
"runs the raft algorithm one step at a time."
(:require [com.manigfeald.raft.core :refer :all]
[com.manigfeald.raft.rules :refer [rules-of-raft]])
(:import (clojure.lang PersistentQueue)))
(defrecord RaftLeaderState [next-index match-index])
(defrecord RaftState [current-term ... |
6af4ed0dfaeed2faf09d98de148d61174f882f5b197f954bdbb3a5d4b5b450f6 | RunOrg/RunOrg | form.ml | (* © 2014 RunOrg *)
module I = FormLib.I
module FilledI = FormLib.FilledI
module Owner = FormLib.Owner
module Access = FormLib.FormAccess
module Stats = FormLib.Stats
include FormLib.Commands
include FormLib.Queries
| null | https://raw.githubusercontent.com/RunOrg/RunOrg/b53ee2357f4bcb919ac48577426d632dffc25062/server/form.ml | ocaml | © 2014 RunOrg |
module I = FormLib.I
module FilledI = FormLib.FilledI
module Owner = FormLib.Owner
module Access = FormLib.FormAccess
module Stats = FormLib.Stats
include FormLib.Commands
include FormLib.Queries
|
969dca0c0bea202983c5277c4dabcf43031ec9eb64373237ae94e1bd473b3a28 | nasa/Common-Metadata-Repository | root.clj | (ns ^:integration cmr.opendap.tests.integration.app.root
"Note: this namespace is exclusively for integration tests; all tests defined
here will use one or more integration test fixtures.
Warning: To run the integration tests, you will need to create CMR/ECHO
tokens and export these as shell environment variab... | null | https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/63001cf021d32d61030b1dcadd8b253e4a221662/other/cmr-exchange/service-bridge/test/cmr/opendap/tests/integration/app/root.clj | clojure | all tests defined | (ns ^:integration cmr.opendap.tests.integration.app.root
here will use one or more integration test fixtures.
Warning: To run the integration tests, you will need to create CMR/ECHO
tokens and export these as shell environment variables. In particular, each
token gets its own ENV var:
* CMR_SIT_TOKEN
* CMR... |
fd1be468282d42589abfccdfd22832f056e7d4a7562cfaeb2b2058e6a2306863 | zachallaun/datomic-cljs | friends.cljs | (ns datomic-cljs.examples.friends
(:require [datomic-cljs.api :as d]
[cljs.core.async :as async :refer [<! >!]]
[cljs.nodejs :as nodejs])
(:require-macros [cljs.core.async.macros :refer [go]]
[datomic-cljs.macros :refer [<?]]))
(def js-fs (nodejs/require "fs"))
(def frie... | null | https://raw.githubusercontent.com/zachallaun/datomic-cljs/a2accf1d999b7d6a554a9322f52b230eae1b58b3/examples/friends.cljs | clojure | Transact our schema and seed data.
Using her entity id, get her entity map, and use that to
see all her friends. | (ns datomic-cljs.examples.friends
(:require [datomic-cljs.api :as d]
[cljs.core.async :as async :refer [<! >!]]
[cljs.nodejs :as nodejs])
(:require-macros [cljs.core.async.macros :refer [go]]
[datomic-cljs.macros :refer [<?]]))
(def js-fs (nodejs/require "fs"))
(def frie... |
3315c4d794102ea4c6ca20ccdcf7b772438f3882cdbf9657040cdd7fae07c23f | RichiH/git-annex | QuickCheck.hs | QuickCheck with additional instances
-
- Copyright 2012 - 2014 < >
-
- License : BSD-2 - clause
-
- Copyright 2012-2014 Joey Hess <>
-
- License: BSD-2-clause
-}
# OPTIONS_GHC -fno - warn - orphans #
# LANGUAGE TypeSynonymInstances , CPP #
module Utility.QuickCheck
( module X
, module Utili... | null | https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Utility/QuickCheck.hs | haskell | Pids are never negative, or 0.
File sizes are never negative. | QuickCheck with additional instances
-
- Copyright 2012 - 2014 < >
-
- License : BSD-2 - clause
-
- Copyright 2012-2014 Joey Hess <>
-
- License: BSD-2-clause
-}
# OPTIONS_GHC -fno - warn - orphans #
# LANGUAGE TypeSynonymInstances , CPP #
module Utility.QuickCheck
( module X
, module Utili... |
b2787f3422b56581c561191d6f060d1f85c65b166cace9d53bf444b4ebf48548 | re-ops/re-core | provider.clj | (ns re-core.test.provider
(:require
[re-core.provider :refer (mappings)])
(:use clojure.test))
(deftest mappings-sanity
(is (= (mappings {:os :ubuntu :domain "local"} {:os #{:template :flavor} :domain :search})
{:template :ubuntu :flavor :ubuntu :search "local"})))
| null | https://raw.githubusercontent.com/re-ops/re-core/93596efd4f3068d57e8140106da60011a6569310/test/re_core/test/provider.clj | clojure | (ns re-core.test.provider
(:require
[re-core.provider :refer (mappings)])
(:use clojure.test))
(deftest mappings-sanity
(is (= (mappings {:os :ubuntu :domain "local"} {:os #{:template :flavor} :domain :search})
{:template :ubuntu :flavor :ubuntu :search "local"})))
| |
4232c7c28ead4290cc24a42c0c169ade9da4552bfc59036e34c01d4ae3f42a4f | sgbj/MaximaSharp | zungqr.lisp | ;;; Compiled by f2cl version:
( " f2cl1.l , v 2edcbd958861 2012/05/30 03:34:52 toy $ "
" f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl5.l , v 3fe93de3be82 2012/05/06 02:17:14 toy ... | null | https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/share/lapack/lapack/zungqr.lisp | lisp | Compiled by f2cl version:
Using Lisp CMU Common Lisp 20d (20D Unicode)
Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t)
(:coerce-assigns :as-needed) (:array-type ':array)
(:array-slicing t) (:declare-common nil)
(:float-format double-float)) | ( " f2cl1.l , v 2edcbd958861 2012/05/30 03:34:52 toy $ "
" f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl5.l , v 3fe93de3be82 2012/05/06 02:17:14 toy $ "
" f2cl6.l , v 1d5cbacbb... |
3a0cc0237761c891440a3cd49280b058294429a408747d846cccddf2a5134112 | qfpl/reflex-workshop | Collections.hs | |
Copyright : ( c ) 2018 , Commonwealth Scientific and Industrial Research Organisation
License : :
Stability : experimental
Portability : non - portable
Copyright : (c) 2018, Commonwealth Scientific and Industrial Research Organisation
License : BSD3
Maintainer :
Stability : experi... | null | https://raw.githubusercontent.com/qfpl/reflex-workshop/244ef13fb4b2e884f455eccc50072e98d1668c9e/src/Workshop/Collections.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE GADTs # | |
Copyright : ( c ) 2018 , Commonwealth Scientific and Industrial Research Organisation
License : :
Stability : experimental
Portability : non - portable
Copyright : (c) 2018, Commonwealth Scientific and Industrial Research Organisation
License : BSD3
Maintainer :
Stability : experi... |
07c7ab72b9701c82b9db4c42b18b37b3a5aa0c91e3995d99e889eb4e1b9ba0b3 | zcaudate/hara | dependency_test.clj | (ns hara.lib.aether.dependency-test
(:use hara.test)
(:require [hara.lib.aether.dependency :refer :all])
(:import (org.eclipse.aether.graph Exclusion)))
^{:refer hara.lib.aether.dependency/rep-exclusion :added "3.0"}
(fact "creates a rep from an exclusion"
(str (rep-exclusion (artifact-exclusion "hara:hara... | null | https://raw.githubusercontent.com/zcaudate/hara/481316c1f5c2aeba5be6e01ae673dffc46a63ec9/test/hara/lib/aether/dependency_test.clj | clojure | (ns hara.lib.aether.dependency-test
(:use hara.test)
(:require [hara.lib.aether.dependency :refer :all])
(:import (org.eclipse.aether.graph Exclusion)))
^{:refer hara.lib.aether.dependency/rep-exclusion :added "3.0"}
(fact "creates a rep from an exclusion"
(str (rep-exclusion (artifact-exclusion "hara:hara... | |
ec09beffaccfa63f47c20a71d88438fdeb0bf1b732e0606925964f026e3eca9a | YoshikuniJujo/test_haskell | Taocp.hs | # LANGUAGE BlockArguments #
# OPTIONS_GHC -Wall -fno - warn - tabs #
module HeapSort.Taocp where
import Control.Monad.ST
import Data.Array.ST
import Data.Bool
heapsort :: Ord a => [a] -> [a]
heapsort xs = runST
$ (>>) <$> hsort <*> getElems =<< newListArray (1, length xs) xs
hsort :: Ord a => STArray s Int a -> ST... | null | https://raw.githubusercontent.com/YoshikuniJujo/test_haskell/00cf4f7e198ac3f6026a3ffd2558efe95466b6bf/tribial/mastodon/heapsort/src/HeapSort/Taocp.hs | haskell | # LANGUAGE BlockArguments #
# OPTIONS_GHC -Wall -fno - warn - tabs #
module HeapSort.Taocp where
import Control.Monad.ST
import Data.Array.ST
import Data.Bool
heapsort :: Ord a => [a] -> [a]
heapsort xs = runST
$ (>>) <$> hsort <*> getElems =<< newListArray (1, length xs) xs
hsort :: Ord a => STArray s Int a -> ST... | |
9163a78ad33c73bd218a315d4eba6c81898dd1c06249b756c302a83229f51555 | babashka/neil | changelog.clj | #!/usr/bin/env bb
(ns changelog
(:require [clojure.string :as str]))
(let [changelog (slurp "CHANGELOG.md")
replaced (str/replace changelog
#" #(\d+)"
(fn [[_ issue after]]
(format " [#%s]()%s"
... | null | https://raw.githubusercontent.com/babashka/neil/832f3a9eee64f2ce72d787662bb3ea29b3d388c2/script/changelog.clj | clojure | #!/usr/bin/env bb
(ns changelog
(:require [clojure.string :as str]))
(let [changelog (slurp "CHANGELOG.md")
replaced (str/replace changelog
#" #(\d+)"
(fn [[_ issue after]]
(format " [#%s]()%s"
... | |
1e4a9c4a3dc146813937a0c9427a4ca36203411465dd64af8aee0566bcd07cb4 | paurkedal/viz | graphalgo.mli | Copyright ( C ) 2011 - -2016 Petter A. Urkedal < >
*
* This file is part of the Viz Compiler < / > .
*
* The Viz Compiler 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... | null | https://raw.githubusercontent.com/paurkedal/viz/ab1f1071fafdc51eae69185ec55d7a6e7bb94ea9/camlviz/graphalgo.mli | ocaml | * Algorithms on Graph-Like Data
* The signature of a "simply traversable" graph, without edges but with an
associated map structure for the vertices. | Copyright ( C ) 2011 - -2016 Petter A. Urkedal < >
*
* This file is part of the Viz Compiler < / > .
*
* The Viz Compiler 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... |
29339b5b92eaf8a300c5a8c9ef67fd541b14f8b6f7cd8683ac61b5a76ce4e911 | manuel-serrano/bigloo | evmeaning.scm | ;*=====================================================================*/
* serrano / prgm / project / bigloo / runtime / Eval / evmeaning.scm * /
;* ------------------------------------------------------------- */
* Author : * /
* Creation ... | null | https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/runtime/Eval/evmeaning.scm | scheme | *=====================================================================*/
* ------------------------------------------------------------- */
* ------------------------------------------------------------- */
*=====================================================================*/
*---------------------------... | * serrano / prgm / project / bigloo / runtime / Eval / evmeaning.scm * /
* Author : * /
* Creation : We d Aug 4 10:48:41 1993 * /
* Last change : Sat Jul 20 10:44:40 2013 ( serrano ) * /
* Th... |
72fd87b292b131a6d677a41ab9e942cd903fb1d50c9edf1db7714e8b398aeace | racket/plot | plot3d-untyped.rkt | #lang racket/base
(require "plot3d.rkt" ; must visit
racket/contract
racket/class
racket/draw
(only-in pict pict?)
(for-syntax racket/base "plot3d-evil-box.rkt")
"../../utils.rkt"
"../common/contract.rkt"
"../common/nonrenderer.rkt"
"../... | null | https://raw.githubusercontent.com/racket/plot/c4126001f2c609e36c3aa12f300e9c673ab1a806/plot-lib/plot/private/no-gui/plot3d-untyped.rkt | racket | must visit | #lang racket/base
racket/contract
racket/class
racket/draw
(only-in pict pict?)
(for-syntax racket/base "plot3d-evil-box.rkt")
"../../utils.rkt"
"../common/contract.rkt"
"../common/nonrenderer.rkt"
"../plot3d/renderer.rkt")
(provide
(co... |
63cbc4375654e9935aaa0bf7babda13a5e810317eb1e9364c4d54f6c70df8d03 | grzm/awyeah-api | http_client.clj | Copyright ( c )
Heavily inspired by congitect.http - client , Copyright ( c ) Cognitect , Inc.
;; All rights reserved.
(ns com.grzm.awyeah.http-client
(:require
[clojure.core.async :refer [put!] :as a]
[clojure.spec.alpha :as s]
[com.grzm.awyeah.http-client.client :as client]
[com.grzm.awyeah.http-... | null | https://raw.githubusercontent.com/grzm/awyeah-api/1810bf624da2be58c77813106a1d51e32db11690/src/com/grzm/awyeah/http_client.clj | clojure | All rights reserved.
"host" is a restricted header.
The host header is part of the AWS signed headers signature,
so it's included in the list of headers for request processing, | Copyright ( c )
Heavily inspired by congitect.http - client , Copyright ( c ) Cognitect , Inc.
(ns com.grzm.awyeah.http-client
(:require
[clojure.core.async :refer [put!] :as a]
[clojure.spec.alpha :as s]
[com.grzm.awyeah.http-client.client :as client]
[com.grzm.awyeah.http-client.specs])
(:impor... |
015c9aa70591987691213d569b5981fc6f18eb6fc96f2eb76d8395ba3e799907 | weavery/sworn | WebAssembly.mli | (* This is free and unencumbered software released into the public domain. *)
val compile_program : SWIR.program -> Wasm.Ast.module_
| null | https://raw.githubusercontent.com/weavery/sworn/2a2f86223fafa6075122292a09c11dc15a75ff91/lib/WebAssembly/WebAssembly.mli | ocaml | This is free and unencumbered software released into the public domain. |
val compile_program : SWIR.program -> Wasm.Ast.module_
|
e2cced79f280bfe1f30c5cee3ca0fa15ce3f048d22e212e1365137bee3ac02a7 | silviucpp/erlkaf | erlkaf_utils.erl | -module(erlkaf_utils).
-export([
get_priv_path/1,
get_env/1,
get_env/2,
lookup/2,
lookup/3,
append_props/2,
to_binary/1,
safe_call/2,
safe_call/3,
call_stats_callback/3,
parralel_exec/2
]).
get_priv_path(File) ->
case code:priv_dir(erlkaf) of
{error, bad_name} -... | null | https://raw.githubusercontent.com/silviucpp/erlkaf/375fec8b3c9d0f96b1c5bd31a15b7e37ff2bff25/src/erlkaf_utils.erl | erlang | -module(erlkaf_utils).
-export([
get_priv_path/1,
get_env/1,
get_env/2,
lookup/2,
lookup/3,
append_props/2,
to_binary/1,
safe_call/2,
safe_call/3,
call_stats_callback/3,
parralel_exec/2
]).
get_priv_path(File) ->
case code:priv_dir(erlkaf) of
{error, bad_name} -... | |
cb6fef7780112f18e38294685baf1531e2f0981585d3a31be3ef2fd9c2b8ffa5 | mattjbray/ocaml-decoders | main.ml | open OUnit2
module M = Msgpck
let m_to_str m = M.StringBuf.to_string m |> Buffer.contents
let decoders_suite =
let open Decoders_msgpck.Decode in
let decoder_test ~decoder ~input ~expected _test_ctxt =
match decode_string decoder input with
| Ok value ->
assert_equal value expected
| Error err... | null | https://raw.githubusercontent.com/mattjbray/ocaml-decoders/32aa29da3102f78f96f3202fbe035b520dec6e8e/test-msgpck/main.ml | ocaml | open OUnit2
module M = Msgpck
let m_to_str m = M.StringBuf.to_string m |> Buffer.contents
let decoders_suite =
let open Decoders_msgpck.Decode in
let decoder_test ~decoder ~input ~expected _test_ctxt =
match decode_string decoder input with
| Ok value ->
assert_equal value expected
| Error err... | |
5085f05300b2e1fae3e12a1504d3ba740ae25e1a0d37a567f728b8f381649a58 | alexbs01/OCaml | e.ml | let e = exp(1.)
let _ = print_float e;
print_endline "";
| null | https://raw.githubusercontent.com/alexbs01/OCaml/92a28522a8467d8ed87ef380b6175f1c21616f85/p02/e.ml | ocaml | let e = exp(1.)
let _ = print_float e;
print_endline "";
| |
18c87fc2020663e8173fc238d418eb73d04497ace3b9314e239e2ea6cbadf809 | tolysz/ghcjs-stack | LabeledGraph.hs | -- | Wrapper around Data.Graph with support for edge labels
# LANGUAGE ScopedTypeVariables #
module Distribution.Client.Utils.LabeledGraph (
-- * Graphs
Graph
, Vertex
-- ** Building graphs
, graphFromEdges
, graphFromEdges'
, buildG
, transposeG
-- ** Graph properties
, vertices
, edges
... | null | https://raw.githubusercontent.com/tolysz/ghcjs-stack/83d5be83e87286d984e89635d5926702c55b9f29/special/cabal-next/cabal-install/Distribution/Client/Utils/LabeledGraph.hs | haskell | | Wrapper around Data.Graph with support for edge labels
* Graphs
** Building graphs
** Graph properties
** Operations on the underlying unlabeled graph
------------------------------------------------------------------------------
Types
---------------------------------------------------------------------------... | # LANGUAGE ScopedTypeVariables #
module Distribution.Client.Utils.LabeledGraph (
Graph
, Vertex
, graphFromEdges
, graphFromEdges'
, buildG
, transposeG
, vertices
, edges
, forgetLabels
, topSort
) where
import Data.Array
import Data.Graph (Vertex, Bounds)
import Data.List (sortBy)
import Data... |
d0e74e9e7fe7d259f736905788173e1a80f4e5cdae766dde1e18cb10b1a64879 | kelamg/HtDP2e-workthrough | ex236.rkt | The first three lines of this file were inserted by . They record metadata
;; about the language level of this file in a form that our tools can easily process.
#reader(lib "htdp-intermediate-reader.ss" "lang")((modname ex236) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal... | null | https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Abstraction/ex236.rkt | racket | about the language level of this file in a form that our tools can easily process.
N Lon -> Lon
adds n to each item in l
Lon -> Lon
Lon -> Lon
Lon -> Lon | The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-intermediate-reader.ss" "lang")((modname ex236) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f)))
(define (addn n l)
(cond
[(empty? l) '()]
[else
... |
b221871f9cf42b4c04305c6ea9d531ea8a58ebcb67b87b3f305c8e2767f5b5c6 | alphagov/govuk-guix | utils.scm | (define-module (gds systems govuk utils)
#:use-module (srfi srfi-1)
#:use-module (ice-9 match)
#:use-module (guix gexp)
#:use-module (gnu services)
#:use-module (gnu system shadow)
#:use-module (gds services utils databases)
#:use-module (gds services utils databases elasticsearch)
#:use-module (gds ser... | null | https://raw.githubusercontent.com/alphagov/govuk-guix/dea8c26d2ae882d0278be5c745e23abb25d4a4e2/gds/systems/govuk/utils.scm | scheme | (define-module (gds systems govuk utils)
#:use-module (srfi srfi-1)
#:use-module (ice-9 match)
#:use-module (guix gexp)
#:use-module (gnu services)
#:use-module (gnu system shadow)
#:use-module (gds services utils databases)
#:use-module (gds services utils databases elasticsearch)
#:use-module (gds ser... | |
b192522413d9fc85632d9a1b8d3a90dd391ddb8d73021ff2ba703f639034a09f | kizzx2/haskell-qrcode | Placement.hs | {-# OPTIONS_HADDOCK hide #-}
# LANGUAGE FlexibleContexts , GeneralizedNewtypeDeriving , NoMonomorphismRestriction #
module Codec.Binary.QRCode.Placement where
import Codec.Binary.QRCode.Matrix
import Codec.Binary.QRCode.Spec
import Codec.Binary.QRCode.Utils
import Data.Tuple
import Data.List
import qualified Data.Se... | null | https://raw.githubusercontent.com/kizzx2/haskell-qrcode/be06628d4cb77381c55a788c11c1695ebe432c28/Codec/Binary/QRCode/Placement.hs | haskell | # OPTIONS_HADDOCK hide #
mkCleanBoardMatrix :: Int -> Matrix
where
These will be applied to the symbol after masking
where
Create the coordinates, in order, where modules should
be placed in a matrix. The path excludes function
coordinates into a matrix. The path flows from the most
significant bit t... | # LANGUAGE FlexibleContexts , GeneralizedNewtypeDeriving , NoMonomorphismRestriction #
module Codec.Binary.QRCode.Placement where
import Codec.Binary.QRCode.Matrix
import Codec.Binary.QRCode.Spec
import Codec.Binary.QRCode.Utils
import Data.Tuple
import Data.List
import qualified Data.Set as S
import Control.Monad
... |
9782c47a2926f440de116bf23731c8e048e3dd3ed8eaece90eba0c2122502284 | objectionary/try-phi | Common.hs |
module Common(ppPhiToEO, ppWHNF, ppWHNFSteps, ppNF, ppTapSteps, ppStates, ppGraphs, getTermFromPhi, getTermFromEO, ppEOSource, ppPhi, Common.ppPhiSource, ppPhiToLatex) where
import Phi.Minimal as Phi
( nf,
whnf,
Term,
ppGraphStepsFor,
ppStepsFor,
ppTerm,
ppWhnfSteps,
pp... | null | https://raw.githubusercontent.com/objectionary/try-phi/84b063427cb255dd2834df35840355b28e3f7098/back/language-utils/src/Common.hs | haskell | | list of graph steps |
module Common(ppPhiToEO, ppWHNF, ppWHNFSteps, ppNF, ppTapSteps, ppStates, ppGraphs, getTermFromPhi, getTermFromEO, ppEOSource, ppPhi, Common.ppPhiSource, ppPhiToLatex) where
import Phi.Minimal as Phi
( nf,
whnf,
Term,
ppGraphStepsFor,
ppStepsFor,
ppTerm,
ppWhnfSteps,
pp... |
c84ae8e1c46b5d4364de25f2358f424efd8aeb14705ec4a3eeb624714203e0af | mitchellwrosen/hspolls | API.hs | module Hp.API
( API(..)
) where
import Hp.Entity.Poll (PollId)
import Hp.Entity.User (UserId)
import Hp.GitHub.Code (GitHubCode)
import Hp.RequestBody.AnswerPoll (AnswerPollRequestBody)
import Hp.RequestBody.CreatePoll (CreatePollRequestBody)
import Hp.RequestBody.Subscribe (Subsc... | null | https://raw.githubusercontent.com/mitchellwrosen/hspolls/22efea743194ade091f7daa112a2d9ce985a4500/src/Hp/API.hs | haskell | | Answer a poll.
| Create a poll.
| Get Prometheus metrics.
| Adjust subscription settings. | module Hp.API
( API(..)
) where
import Hp.Entity.Poll (PollId)
import Hp.Entity.User (UserId)
import Hp.GitHub.Code (GitHubCode)
import Hp.RequestBody.AnswerPoll (AnswerPollRequestBody)
import Hp.RequestBody.CreatePoll (CreatePollRequestBody)
import Hp.RequestBody.Subscribe (Subsc... |
1abe0d122d1f70e1a3d15441c161b8a4d7ee91c2b9fff6b4409a5c16afed2d95 | nada-attia/dama | move.mli | (** [Move] contains functions for moving pieces on the board*)
* the type representing the 4 possible directions a piece can move .
type direction =
| Up
| Down
| Left
| Right
(** Raised when a specified square is not found on the current board.*)
exception SquareNotFound
(** [get_square label board] is the ... | null | https://raw.githubusercontent.com/nada-attia/dama/df4a792dee2468b65192ff0d0852b579f48c583f/src/move.mli | ocaml | * [Move] contains functions for moving pieces on the board
* Raised when a specified square is not found on the current board.
* [get_square label board] is the square at position [label] on board
[board]. Raises an exception when a square is not found.
* [get_square_dir square board color direction] is the square ... |
* the type representing the 4 possible directions a piece can move .
type direction =
| Up
| Down
| Left
| Right
exception SquareNotFound
val get_square : char * int -> Board.t -> Board.square
val get_square_dir :
Board.square ->
Board.t ->
Board.color ->
direction ->
Board.square list
val where_... |
9301feac794ec6d7c56ae537db4acf45a7328ab267420ce5a7087af062864e80 | idris-lang/Idris-dev | System.hs | |
Module : IRTS.System
Description : Utilities for interacting with the System .
License : : The Idris Community .
Module : IRTS.System
Description : Utilities for interacting with the System.
License : BSD3
Maintainer : The Idris Community.
-}
# LANGUAGE CPP #
module IRTS.System( ge... | null | https://raw.githubusercontent.com/idris-lang/Idris-dev/0d094e7619d9fed12b3deffd0b68f52c7ddeff21/src/IRTS/System.hs | haskell | ^ Sub directory in `getDataDir` location.
^ Environment variable to get new location from. | |
Module : IRTS.System
Description : Utilities for interacting with the System .
License : : The Idris Community .
Module : IRTS.System
Description : Utilities for interacting with the System.
License : BSD3
Maintainer : The Idris Community.
-}
# LANGUAGE CPP #
module IRTS.System( ge... |
5c012a2dae9e6ed799364a4e27a593ffef586a978f5cd1b9eff1c79b01452942 | mfoemmel/erlang-otp | orber_ifr_repository.erl | %%--------------------------------------------------------------------
%%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 1997 - 2009 . All Rights Reserved .
%%
The contents of this file are subject to the Erlang Public License ,
Version 1.1 , ( the " License " ) ; you may not use this file except in
%% compliance... | null | https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/orber/src/orber_ifr_repository.erl | erlang | --------------------------------------------------------------------
%CopyrightBegin%
compliance with the License. You should have received a copy of the
Erlang Public License along with this software. If not, it can be
retrieved online at /.
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. S... | Copyright Ericsson AB 1997 - 2009 . All Rights Reserved .
The contents of this file are subject to the Erlang Public License ,
Version 1.1 , ( the " License " ) ; you may not use this file except in
Software distributed under the License is distributed on an " AS IS "
-module(orber_ifr_repository).
-export(['... |
d55a23afc4403628a929f36071bf1dcedc301ffcaa17cc6b45fc3c905216ebab | cpsc411/cpsc411-pub | info.rkt | #lang info
(define collection 'multi)
(define deps '(("base" #:version "7.3")))
(define build-deps
'("at-exp-lib"
"scribble-bettergrammar-lib"
("base" #:version "7.3")
"scribble-lib"
"racket-doc"
"rackunit-doc"
"rackunit-lib"
"sandbox-lib"
"cpsc411-lib"))
(define pkg-desc "Documentatio... | null | https://raw.githubusercontent.com/cpsc411/cpsc411-pub/757ececf84d54d86cfa0c2c6c84f1456c8765db9/cpsc411-doc/info.rkt | racket | #lang info
(define collection 'multi)
(define deps '(("base" #:version "7.3")))
(define build-deps
'("at-exp-lib"
"scribble-bettergrammar-lib"
("base" #:version "7.3")
"scribble-lib"
"racket-doc"
"rackunit-doc"
"rackunit-lib"
"sandbox-lib"
"cpsc411-lib"))
(define pkg-desc "Documentatio... | |
237a0e528409a9a90f2f556974d6c7c35f5d2ea0a1de0b73bac93fff87bd9493 | jwiegley/hours | Main.hs | # LANGUAGE FlexibleInstances #
# LANGUAGE TupleSections #
module Main where
import qualified Data.ByteString.Lazy.Char8 as BL
import Data.Semigroup (Semigroup((<>)))
import Data.Time (UTCTime, getCurrentTime, getCurrentTimeZone)
import Hours.Budget (mapValues)
import Hours.Inpu... | null | https://raw.githubusercontent.com/jwiegley/hours/3331fe105ed0820085e4bc26e348340568922b8b/timelog/Main.hs | haskell | # LANGUAGE FlexibleInstances #
# LANGUAGE TupleSections #
module Main where
import qualified Data.ByteString.Lazy.Char8 as BL
import Data.Semigroup (Semigroup((<>)))
import Data.Time (UTCTime, getCurrentTime, getCurrentTimeZone)
import Hours.Budget (mapValues)
import Hours.Inpu... | |
008fec718ec8df82b7a68076695bbbf752cf4b7f055d950b26d851fc69de512d | dschrempf/elynx | Sequence.hs | {-# LANGUAGE OverloadedStrings #-}
-- |
-- Module : ELynx.Sequence
-- Description : Hereditary sequences
Copyright : 2021
License : GPL-3.0 - or - later
--
-- Maintainer :
-- Stability : unstable
-- Portability : portable
--
Creation date : Thu Oct 4 18:54:51 2018 .
--
-- This modul... | null | https://raw.githubusercontent.com/dschrempf/elynx/69df2fcf5fd6351f062586352da3ce59a8786a36/elynx-seq/src/ELynx/Sequence/Sequence.hs | haskell | # LANGUAGE OverloadedStrings #
|
Module : ELynx.Sequence
Description : Hereditary sequences
Maintainer :
Stability : unstable
Portability : portable
This module is to be imported qualified.
* Types
* Input
* Output
* Analysis
* Manipulation
* Filtering
| 'Name's are just 'BL.ByteString's.... |
Copyright : 2021
License : GPL-3.0 - or - later
Creation date : Thu Oct 4 18:54:51 2018 .
module ELynx.Sequence.Sequence
Name,
Description,
Characters,
Sequence (..),
fromByteString,
toByteString,
header,
summarize,
summarizeSequences,
body,
length,
... |
17e48f1b6fc2a0cd368e835800818ba517d0d3876adb93107743614d7b6fc0d2 | racket/algol60 | test.rkt | #lang at-exp racket/base
(require algol60/algol60
rackunit
racket/runtime-path
(for-syntax racket/base))
(define-syntax (capture-output stx)
(syntax-case stx ()
[(_ exp)
(parameterize ([error-print-source-location #f])
(with-handlers ((exn:fail?
(λ (... | null | https://raw.githubusercontent.com/racket/algol60/e4aebcaff66f121cf52a1f58f4f7bd285eded728/tests/test.rkt | racket |
array a; integer n, m, i, k; real y;
k := q | #lang at-exp racket/base
(require algol60/algol60
rackunit
racket/runtime-path
(for-syntax racket/base))
(define-syntax (capture-output stx)
(syntax-case stx ()
[(_ exp)
(parameterize ([error-print-source-location #f])
(with-handlers ((exn:fail?
(λ (... |
ad58f68ab7d5a2fc2842941081537a681883efb111829b06fcca1dc00ced216f | Eduap-com/WordMat | lb1.lisp | ;;; Compiled by f2cl version:
( " f2cl1.l , v 1.215 2009/04/07 22:05:21 rtoy Exp $ "
" f2cl2.l , v 1.37 2008/02/22 22:19:33 rtoy Exp $ "
" f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Exp $ "
" f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Exp $ "
" f2cl5.l , v 1.200 2009/01/19 02:38:17 rtoy Exp $ "
" f2cl6.l ,... | null | https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/share/lbfgs/lb1.lisp | lisp | Compiled by f2cl version:
Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t)
(:coerce-assigns :as-needed) (:array-type ':array)
(:array-slicing t) (:declare-common nil)
(:float-format double-float)) | ( " f2cl1.l , v 1.215 2009/04/07 22:05:21 rtoy Exp $ "
" f2cl2.l , v 1.37 2008/02/22 22:19:33 rtoy Exp $ "
" f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Exp $ "
" f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Exp $ "
" f2cl5.l , v 1.200 2009/01/19 02:38:17 rtoy Exp $ "
" f2cl6.l , v 1.48 2008/08/24 00:56:27 rt... |
acd0fbbf5304b9ca5242e780fdb84467ddfc4bcf843d19185650ef37806f1e0b | radian628/lispsmos | main.lisp | (include "../lispsmos-src/binary-decode.lisp")
(importOBJ "../assets/untitled.obj" cube)
(= y (* 2 (^ x 2)))
(= obj (getOBJData cube))
(= halfListLength ( floor ( / ( length l ) 2 ) ) )
;; (fn flatmap1 l
;; (piecewise
( ( > ( length l ) 1 ) ( execIf ( > ( length l ) 1 ) indexer
( join ( flatmap2 ( [... | null | https://raw.githubusercontent.com/radian628/lispsmos/8e0531d2f0aacc15a523e9d0780b4c70e10c5ca4/lispsmos-experiments/ptgi/lispsmos-src/main.lisp | lisp | (fn flatmap1 l
(piecewise
))
((list ([] l 1) ([] l 1)))
)
)
(fn flatmap2 l
(piecewise
))
((list ([] l 1) ([] l 1)))
)
)
(fn flatmap3 l
(piecewise
))
((list ([] l 1) ([] l 1)))
)
) | (include "../lispsmos-src/binary-decode.lisp")
(importOBJ "../assets/untitled.obj" cube)
(= y (* 2 (^ x 2)))
(= obj (getOBJData cube))
(= halfListLength ( floor ( / ( length l ) 2 ) ) )
( ( > ( length l ) 1 ) ( execIf ( > ( length l ) 1 ) indexer
( join ( flatmap2 ( [ ] l 1 ... halfListLength ) ) ( fla... |
c037d81d355db6775a804bb61a94d94bac132c4b3a3e55ed841ec8d2169c7618 | racket/eopl | store.rkt | #lang eopl
(provide initialize-store! reference? newref deref setref!
instrument-newref get-store-as-list)
(define instrument-newref (make-parameter #f))
;;;;;;;;;;;;;;;; references and the store ;;;;;;;;;;;;;;;;
;;; world's dumbest model of the store: the store is a list and a
;;; reference is number whi... | null | https://raw.githubusercontent.com/racket/eopl/43575d6e95dc34ca6e49b305180f696565e16e0f/tests/chapter5/thread-lang/store.rkt | racket | references and the store ;;;;;;;;;;;;;;;;
world's dumbest model of the store: the store is a list and a
reference is number which denotes a position in the list.
the-store: a Scheme variable containing the current state of the
store. Initially set to a dummy variable.
empty-store : () -> Sto
initialize-store! ... | #lang eopl
(provide initialize-store! reference? newref deref setref!
instrument-newref get-store-as-list)
(define instrument-newref (make-parameter #f))
(define the-store 'uninitialized)
Page : 111
(define empty-store
(lambda () '()))
Page 111
(define initialize-store!
(lambda ()
(set! the-... |
218070d3f172bf3787a9aa8b599f8b6a6a3eb532bba1270ba72ff0fe181ccacd | gedge-platform/gedge-platform | rabbit_mgmt_wm_health_check_node_is_mirror_sync_critical.erl | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
%%
Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved .
%%
%% An HTTP API counterpart of 'rabbitmq-diagnosti... | null | https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/rabbitmq_management/src/rabbit_mgmt_wm_health_check_node_is_mirror_sync_critical.erl | erlang |
An HTTP API counterpart of 'rabbitmq-diagnostics check_if_node_is_quorum_critical'
-------------------------------------------------------------------- | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved .
-module(rabbit_mgmt_wm_health_check_node_is_mirror_sync... |
5d3101afc6b72d20dd54e819dae128769a38ca357a65498b845066dd4d60a6bb | master/ejabberd | mod_proxy65_stream.erl | %%%----------------------------------------------------------------------
File : mod_proxy65_stream.erl
Author : < >
%%% Purpose : Bytestream process.
Created : 12 Oct 2006 by < >
%%%
ejabberd , Copyright ( C ) 2002 - 2012 ProcessOne
%%%
%%% This program is free software; you can redistribute it ... | null | https://raw.githubusercontent.com/master/ejabberd/9c31874d5a9d1852ece1b8ae70dd4b7e5eef7cf7/src/mod_proxy65/mod_proxy65_stream.erl | erlang | ----------------------------------------------------------------------
Purpose : Bytestream process.
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 eve... | File : mod_proxy65_stream.erl
Author : < >
Created : 12 Oct 2006 by < >
ejabberd , Copyright ( C ) 2002 - 2012 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 copy of the... |
7acbca2613e5e22528c4bce568e701f790bb43de52d25560b558983627926952 | active-group/sqlosure | sql_put_test.clj | (ns sqlosure.sql-put-test
(:require [active.clojure.lens :as lens]
[active.clojure.monad :as monad]
[clojure.test :as t :refer [deftest is testing]]
[clojure.string :as string]
[sqlosure.core :as c]
[sqlosure.optimization :as o]
[sqlosure.query-... | null | https://raw.githubusercontent.com/active-group/sqlosure/0201b0ddb054a9216b94808b2026460084411216/test/sqlosure/sql_put_test.clj | clojure | (ns sqlosure.sql-put-test
(:require [active.clojure.lens :as lens]
[active.clojure.monad :as monad]
[clojure.test :as t :refer [deftest is testing]]
[clojure.string :as string]
[sqlosure.core :as c]
[sqlosure.optimization :as o]
[sqlosure.query-... | |
1c4df13695a631b7fd3295cc0564741f070edbca335ac4285948010fdb288108 | mput/sicp-solutions | 1_32.rkt | #lang racket
Solution for exercise 1_32 .
(require rackunit "../solutions/utils.rkt")
(provide accumulation accumulation-iter)
(define (accumulation null-value combiner term a next b)
(if (> a b)
null-value
(combiner (term a) (accumulation null-value combiner term (next a) next b))))
(define (accumulation... | null | https://raw.githubusercontent.com/mput/sicp-solutions/fe12ad2b6f17c99978c8fe04b2495005986b8496/solutions/1_32.rkt | racket | #lang racket
Solution for exercise 1_32 .
(require rackunit "../solutions/utils.rkt")
(provide accumulation accumulation-iter)
(define (accumulation null-value combiner term a next b)
(if (> a b)
null-value
(combiner (term a) (accumulation null-value combiner term (next a) next b))))
(define (accumulation... | |
d73f59c683546e5b87fd9f8d4b4fa9e664a1443f11c509d86308c4f27386e0a1 | avsm/mirage-duniverse | routing.ml | RFC 1112 : 01 - 00 - 5E-00 - 00 - 00 ORed with lower 23 bits of the ip address
let mac_of_multicast ip =
let ipb = Ipaddr.V4.to_bytes ip in
let macb = Bytes.create 6 in
Bytes.set macb 0 (Char.chr 0x01);
Bytes.set macb 1 (Char.chr 0x00);
Bytes.set macb 2 (Char.chr 0x5E);
Bytes.set macb 3 (Char.chr ((Char.c... | null | https://raw.githubusercontent.com/avsm/mirage-duniverse/983e115ff5a9fb37e3176c373e227e9379f0d777/ocaml_modules/tcpip/src/ipv4/routing.ml | ocaml | Local | RFC 1112 : 01 - 00 - 5E-00 - 00 - 00 ORed with lower 23 bits of the ip address
let mac_of_multicast ip =
let ipb = Ipaddr.V4.to_bytes ip in
let macb = Bytes.create 6 in
Bytes.set macb 0 (Char.chr 0x01);
Bytes.set macb 1 (Char.chr 0x00);
Bytes.set macb 2 (Char.chr 0x5E);
Bytes.set macb 3 (Char.chr ((Char.c... |
639452f7af314f4af6a85fe4c363144833143eda3dbd04bed152cb3838ae891d | 6502/JSLisp | cplot.lisp | (import * from gui)
(defvar *data*
'((53.9751 51.5681 50.7119 51.1049 51.5339 51.4977 51.2387 50.761 50.1732 49.8218 49.5442 48.936 47.4498 46.6484 45.8542 45.136 44.5268 44.071 43.7665 43.5928 43.5269 43.5385 43.6053 45.565 47.0071 46.8664 47.372 47.8324 48.295 48.731 49.0522 49.4001 49.7111 49.9919 50.252... | null | https://raw.githubusercontent.com/6502/JSLisp/9a4aa1a9116f0cfc598ec9f3f30b59d99810a728/examples/cplot.lisp | lisp | black->blue->cyan->green->yellow->red scale | (import * from gui)
(defvar *data*
'((53.9751 51.5681 50.7119 51.1049 51.5339 51.4977 51.2387 50.761 50.1732 49.8218 49.5442 48.936 47.4498 46.6484 45.8542 45.136 44.5268 44.071 43.7665 43.5928 43.5269 43.5385 43.6053 45.565 47.0071 46.8664 47.372 47.8324 48.295 48.731 49.0522 49.4001 49.7111 49.9919 50.252... |
e91819dfa450e2f99efd6754cac05d962fb5dec93d2ba5a03344f54c97b70ed4 | input-output-hk/marlowe-cardano | SkippingBlocks.hs | module SkippingBlocks
where
import Control.Concurrent (threadDelay)
import Data.Functor (($>))
import Data.Void (absurd)
import Language.Marlowe.Runtime.ChainSync.Api
import Network.Protocol.ChainSeek.Client
This client advances 1000 blocks at a time until it reaches the tip .
client :: RuntimeChainSeekClient IO ... | null | https://raw.githubusercontent.com/input-output-hk/marlowe-cardano/3d7d6381baca1b827ffaa519f130c5ad17a5f318/marlowe-chain-sync/example-client/SkippingBlocks.hs | haskell | module SkippingBlocks
where
import Control.Concurrent (threadDelay)
import Data.Functor (($>))
import Data.Void (absurd)
import Language.Marlowe.Runtime.ChainSync.Api
import Network.Protocol.ChainSeek.Client
This client advances 1000 blocks at a time until it reaches the tip .
client :: RuntimeChainSeekClient IO ... | |
5a4636e27299b94319d20fa7d2a375dc4e916005ebce116a166bd1b502e5a611 | caadxyz/caad4lisp | bubble.lisp | (in-package :caad4lisp)
;***************************************************************
BUBBLE.LSP
;***************************************************************
; Draws a bubble at the end of axes
;***************************************************************
; Let's define the variables.
; store ... | null | https://raw.githubusercontent.com/caadxyz/caad4lisp/393eaa7893bdbf307a3615573fe22a8c1e2b9412/src/bubble.lisp | lisp | ***************************************************************
***************************************************************
Draws a bubble at the end of axes
***************************************************************
Let's define the variables.
store the old env, after this command we can restore the e... | (in-package :caad4lisp)
BUBBLE.LSP
(setq
get cmdecho state
)
(defun c:bubble()
(setq cap (getdist "\nEnter bubble diameter:"))
(setvar "cmdecho" 1)
(command "_.layer" "_new" "TAL_BUBBLE" "_set" "TAL_BUBBLE" "")
(draw_bubble)
(setvar "cmdecho" oldCmdecho)
(setvar "c... |
d043690ce81a95ca35af8be0a441fe3c65e6a0a85435e2f606a66a987b3e2a48 | bos/llvm | Target.hs | module LLVM.Wrapper.Target
( module LLVM.FFI.Target
, TargetData
, ByteOrdering(..)
, byteOrder
, copyStringRepOfTargetData
, createTargetData
, withTargetData
) where
import LLVM.FFI.Target
( addTargetData
, disposeTargetData
, intPtrType
, callFrameAlignmentOfType
... | null | https://raw.githubusercontent.com/bos/llvm/819b94d048c9d7787ce41cd7c71b84424e894f64/base/LLVM/Wrapper/Target.hs | haskell | module LLVM.Wrapper.Target
( module LLVM.FFI.Target
, TargetData
, ByteOrdering(..)
, byteOrder
, copyStringRepOfTargetData
, createTargetData
, withTargetData
) where
import LLVM.FFI.Target
( addTargetData
, disposeTargetData
, intPtrType
, callFrameAlignmentOfType
... | |
cc2b4cd938f37ad057aeb7a95bf3e1c89fef464dd61867d8457495c9ced1c38e | dsheets/ocaml-unix-dirent | myocamlbuild.ml | open Ocamlbuild_plugin;;
open Ocamlbuild_pack;;
let ctypes_libdir = Sys.getenv "CTYPES_LIB_DIR" in
let ocaml_libdir = Sys.getenv "OCAML_LIB_DIR" in
let lwt_libdir = try Sys.getenv "LWT_LIB_DIR" with Not_found -> "" in
dispatch begin
function
| After_rules ->
rule "cstubs: lib_gen/x_types_detect.c -> x_types_... | null | https://raw.githubusercontent.com/dsheets/ocaml-unix-dirent/b3749486aa44642b911b7740193cd8133c6e144a/myocamlbuild.ml | ocaml | Linking cstubs
Linking generated stubs
Linking tests | open Ocamlbuild_plugin;;
open Ocamlbuild_pack;;
let ctypes_libdir = Sys.getenv "CTYPES_LIB_DIR" in
let ocaml_libdir = Sys.getenv "OCAML_LIB_DIR" in
let lwt_libdir = try Sys.getenv "LWT_LIB_DIR" with Not_found -> "" in
dispatch begin
function
| After_rules ->
rule "cstubs: lib_gen/x_types_detect.c -> x_types_... |
294e92fd191af36de58d4b542395988419901730d577c27e2d57967134a6023c | tcsprojects/pgsolver | recursiveladder.ml | open Paritygame;;
let generator_game_func arguments =
let show_help _ =
print_string (Info.get_title "Recursive Ladder Game Generator");
print_string ("Usage: recursiveladder n\n\n" ^
" where n = n-th recursive ladder game\n\n")
in
if (Array.length arguments != 1) then (show_help ();... | null | https://raw.githubusercontent.com/tcsprojects/pgsolver/b0c31a8b367c405baed961385ad645d52f648325/src/generators/recursiveladder.ml | ocaml | open Paritygame;;
let generator_game_func arguments =
let show_help _ =
print_string (Info.get_title "Recursive Ladder Game Generator");
print_string ("Usage: recursiveladder n\n\n" ^
" where n = n-th recursive ladder game\n\n")
in
if (Array.length arguments != 1) then (show_help ();... | |
663566f68f2fcbb79de060f8802d2267f97b0bc2bbb6226b8e355d1cc13cab5b | atgreen/lisp-openshift | util.lisp | -*- Mode : LISP ; Syntax : COMMON - LISP ; Package : DOCUMENTATION - TEMPLATE ; Base : 10 -*-
$ Header : /usr / local / cvsrep / documentation - template / util.lisp , v 1.14 2010/08/05 19:24:27 edi Exp $
Copyright ( c ) 2006 - 2010 , Dr. . All rights reserved .
;;; Redistribution and use in source and bina... | null | https://raw.githubusercontent.com/atgreen/lisp-openshift/40235286bd3c6a61cab9f5af883d9ed9befba849/quicklisp/dists/quicklisp/software/documentation-template-0.4.2/util.lisp | lisp | Syntax : COMMON - LISP ; Package : DOCUMENTATION - TEMPLATE ; Base : 10 -*-
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of con... | $ Header : /usr / local / cvsrep / documentation - template / util.lisp , v 1.14 2010/08/05 19:24:27 edi Exp $
Copyright ( c ) 2006 - 2010 , Dr. . All rights reserved .
DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL
INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY ,... |
3c02420c0ee8aa6c9db754ce1dc8327472953dd3f87d7273ae815953194d9706 | snapframework/cufp2011 | Util.hs | module Snap.Chat.Internal.Util
( seconds
) where
------------------------------------------------------------------------------
seconds :: Int -> Int
seconds n = n * ((10::Int)^(6::Int))
| null | https://raw.githubusercontent.com/snapframework/cufp2011/6519513ef80d561efc9846847860b50a19c7b9f6/src/Snap/Chat/Internal/Util.hs | haskell | ---------------------------------------------------------------------------- | module Snap.Chat.Internal.Util
( seconds
) where
seconds :: Int -> Int
seconds n = n * ((10::Int)^(6::Int))
|
d8d0a70edfcc22cf42cbaa338c3af95dcac72c0211c7266b5f2ea733ac8d93a3 | c4-project/c4f | function_rewriter.ml | This file is part of c4f .
Copyright ( c ) 2018 - 2022 C4 Project
c4 t itself is licensed under the MIT License . See the LICENSE file in the
project root for more information .
Parts of c4 t are based on code from the Herdtools7 project
( ) : see the LICENSE.herd file in the
project... | null | https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/delitmus/src/function_rewriter.ml | ocaml | When rewriting global lvalues (as part of a var-as-global run), we do
it _after_ address rewriting, as the address rewriting will
temporarily _increase_ the amount of indirection.
When rewriting local lvalues (as part of a var-as-parameter run), we
do it _before_ address rewriting, as the ... | This file is part of c4f .
Copyright ( c ) 2018 - 2022 C4 Project
c4 t itself is licensed under the MIT License . See the LICENSE file in the
project root for more information .
Parts of c4 t are based on code from the Herdtools7 project
( ) : see the LICENSE.herd file in the
project... |
f35559cacbbc37bba5097b91fbdf6f5e8dc2be47d6d5ddd5d26f548c3a16e9d3 | janestreet/memtrace_viewer_with_deps | cst.mli | (** Concrete syntax tree of expectations and actual outputs *)
(** These types represent the contents of an [%expect] node or of the actual output. We
keep information about the original layout so that we can give an corrected
expectation that follows the original formatting.
In the following names, blank... | null | https://raw.githubusercontent.com/janestreet/memtrace_viewer_with_deps/5a9e1f927f5f8333e2d71c8d3ca03a45587422c4/vendor/ppx_expect/matcher/cst.mli | ocaml | * Concrete syntax tree of expectations and actual outputs
* These types represent the contents of an [%expect] node or of the actual output. We
keep information about the original layout so that we can give an corrected
expectation that follows the original formatting.
In the following names, blank means ... |
open! Base
open Import
module Line : sig
type 'a not_blank =
; orig : string
; data : 'a
}
[@@deriving_inline sexp_of, compare, equal]
include
sig
[@@@ocaml.warning "-32"]
val sexp_of_not_blank :
('a -> Ppx_sexp_conv_lib.Sexp.t) ->
'a not_blank -> Ppx_sexp_conv_lib.S... |
8cfd2d6fa169de2f2ce41b9686f8c8bf1a5dd99b6e4085e007ed236b680f491d | dvcrn/proton | core.cljs | (ns proton.layers.lang.sass.core
(:require [proton.lib.mode :as mode]
[proton.lib.helpers :refer [console!]]
[proton.layers.core.actions :as actions])
(:use [proton.layers.base :only [init-layer! get-packages init-package register-layer-dependencies]]))
(def sass-modes
{:sass-major-mode {... | null | https://raw.githubusercontent.com/dvcrn/proton/427d83ffdb61d84a04e3d30032b792a9cfbfc53f/src/cljs/proton/layers/lang/sass/core.cljs | clojure | (ns proton.layers.lang.sass.core
(:require [proton.lib.mode :as mode]
[proton.lib.helpers :refer [console!]]
[proton.layers.core.actions :as actions])
(:use [proton.layers.base :only [init-layer! get-packages init-package register-layer-dependencies]]))
(def sass-modes
{:sass-major-mode {... | |
726f92e90645bbdb1632c707d854fdd2bea0def946bd2d14723bac169cf39ab0 | headwinds/reagent-reframe-material-ui | loggers.cljc | (ns re-frame.loggers
(:require
[clojure.set :refer [difference]]
#?@(:clj [[clojure.string :as str]
[clojure.tools.logging :as log]])))
#?(:clj (defn log [level & args]
(log/log level (if (= 1 (count args))
(first args)
(str/join " " ... | null | https://raw.githubusercontent.com/headwinds/reagent-reframe-material-ui/8a6fba82a026cfedca38491becac85751be9a9d4/resources/public/js/out/re_frame/loggers.cljc | clojure | XXX should loggers be put in the registrar ??
clojure versions | (ns re-frame.loggers
(:require
[clojure.set :refer [difference]]
#?@(:clj [[clojure.string :as str]
[clojure.tools.logging :as log]])))
#?(:clj (defn log [level & args]
(log/log level (if (= 1 (count args))
(first args)
(str/join " " ... |
0f9d029faa0f6c799593619b9de4e44c6249a5c7f4aff6f6f5ba7fce0185dad7 | cedlemo/OCaml-GI-ctypes-bindings-generator | Event_box.ml | open Ctypes
open Foreign
type t = unit ptr
let t_typ : t typ = ptr void
let create =
foreign "gtk_event_box_new" (void @-> returning (ptr Widget.t_typ))
let get_above_child =
foreign "gtk_event_box_get_above_child" (t_typ @-> returning (bool))
let get_visible_window =
foreign "gtk_event_box_get_visible_window" ... | null | https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Event_box.ml | ocaml | open Ctypes
open Foreign
type t = unit ptr
let t_typ : t typ = ptr void
let create =
foreign "gtk_event_box_new" (void @-> returning (ptr Widget.t_typ))
let get_above_child =
foreign "gtk_event_box_get_above_child" (t_typ @-> returning (bool))
let get_visible_window =
foreign "gtk_event_box_get_visible_window" ... | |
b44c4018895349361de4aa8fd766403dde5f6b850f7ae88f9588b0aaa2685cfa | goncalotomas/FMKe | gen_fmke_kv_driver.erl | This module documents the callbacks that an FMKE driver for a Key - Value Store must implement .
%%
%% A brief explanation about FMKe adapters and drivers:
%%
An adapter is an Erlang module that implements the complete FMKe callback set , but that is able to make assumptions
%% about the data model, connection pool... | null | https://raw.githubusercontent.com/goncalotomas/FMKe/654d3211ef57d841540e58033a397ce0f3dee0f7/src/gen_fmke_kv_driver.erl | erlang |
A brief explanation about FMKe adapters and drivers:
about the data model, connection pool or any other configurable parameter. Adapters don't communicate directly with
client libraries for databases, but instead do it through drivers.
A driver is a simple wrapper over a database's client library that exposes a ... | This module documents the callbacks that an FMKE driver for a Key - Value Store must implement .
An adapter is an Erlang module that implements the complete FMKe callback set , but that is able to make assumptions
callbacks related to transactions ( e.g. start_transaction/1 , commit_transaction/1 ) . These functi... |
c035c9c9fce5a6951099f565276b8f048d8dfa03daa42ab2e05d2f64b42d4b20 | charlieg/Sparser | doc-streams.lisp | ;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*-
;;;
;;; copyright and other intellectual interests in this file and
;;; the information it contains are governed by the contract signed
March 28 , 1994 between of 14 Brantwood Road ,
Arlington Massachusetts , and Apple Computer , Inc.
;;;
;;; File... | null | https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/code/s/interface/Apple/doc-streams.lisp | lisp | -*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*-
copyright and other intellectual interests in this file and
the information it contains are governed by the contract signed
File: "doc streams"
Module: "interface;Apple:"
Changelog
1.1 Set up the filelists as concatenations with parameterized compo... | March 28 , 1994 between of 14 Brantwood Road ,
Arlington Massachusetts , and Apple Computer , Inc.
Version : 1.1 September 5 , 1994
(in-package :sparser)
(unless (boundp '*Apple-documents-directory*)
(defparameter *Apple-documents-directory*
" HitchHiker 120 : Apple documents : "
"... |
346ff0041b4af07a9093043e778cf64bdc69bc8e03cbdfd6cd4f90c10f2829f9 | panterarocks49/datascript-firebase | reactive.cljs | (ns datascript-firebase.reactive
(:require
[reagent.core :as r]
[reagent.ratom :as r-ratom]
[datascript.core :as d]))
(defn listen!
"registers a listener for the connection transactions. Returns
the conn object itself with the added listener and state holder
Subsequent usages of conn in q! and pull! ... | null | https://raw.githubusercontent.com/panterarocks49/datascript-firebase/fcfb3d61532923457e9e5e971ceb673a5503099e/src/cljs/datascript_firebase/reactive.cljs | clojure | initial state
could add this as meta data
return the conn again to allow standard datascript usage | (ns datascript-firebase.reactive
(:require
[reagent.core :as r]
[reagent.ratom :as r-ratom]
[datascript.core :as d]))
(defn listen!
"registers a listener for the connection transactions. Returns
the conn object itself with the added listener and state holder
Subsequent usages of conn in q! and pull! ... |
66265547350aef6a6415c10d9b9fe5cc97b1e1b36642cc3113a5de17981b16cd | dschrempf/elynx | AminoAcid.hs | # LANGUAGE MultiParamTypeClasses #
# LANGUAGE TemplateHaskell #
# LANGUAGE TypeFamilies #
-- |
-- Module : ELynx.AminoAcid
-- Description : Amino acid related types and functions
Copyright : 2021
License : GPL-3.0 - or - later
--
-- Maintainer :
-- Stability : unstable
-- Portability : ... | null | https://raw.githubusercontent.com/dschrempf/elynx/f73f4474c61c22c6a9e54c56bdc34b37eff09687/elynx-seq/src/ELynx/Character/AminoAcid.hs | haskell | |
Module : ELynx.AminoAcid
Description : Amino acid related types and functions
Maintainer :
Stability : unstable
Portability : portable
@
---------------- ------------------ -----------
A Ala Alanine
D Asp Aspartic Acid
F ... | # LANGUAGE MultiParamTypeClasses #
# LANGUAGE TemplateHaskell #
# LANGUAGE TypeFamilies #
Copyright : 2021
License : GPL-3.0 - or - later
Creation date : Thu Oct 4 18:26:35 2018 .
See header of ' ELynx . Alphabet . Alphabet ' .
Amino acids in alphabetical order .
Amino Acid Code : Three l... |
b6c20ef8b39ec9bfe587cf6116c86692de829d3b915b7cf961aaf03c390888f6 | jeapostrophe/exp | bf-1.rkt | #lang racket
(define pipe-tag (make-continuation-prompt-tag 'pipe))
(define (pipe* f)
(let/ec esc
(call-with-continuation-prompt f pipe-tag esc)
(error 'pipe "did not pipe-out")))
(define-syntax-rule (pipe e ...)
(pipe* (λ () e ...)))
(define (pipe-out v)
(call-with-composable-continuation
(λ (come-ba... | null | https://raw.githubusercontent.com/jeapostrophe/exp/43615110fd0439d2ef940c42629fcdc054c370f9/bf-1.rkt | racket | In response to:
Plus, a puzzle...
Can you predict what this expression evaluates to? | #lang racket
(define pipe-tag (make-continuation-prompt-tag 'pipe))
(define (pipe* f)
(let/ec esc
(call-with-continuation-prompt f pipe-tag esc)
(error 'pipe "did not pipe-out")))
(define-syntax-rule (pipe e ...)
(pipe* (λ () e ...)))
(define (pipe-out v)
(call-with-composable-continuation
(λ (come-ba... |
299791918040d811ad0dfe282cc61e4db192787b0d52f74cad1eaf466e6a68bc | johnwhitington/ocamli | tinyocamlutil.ml | open Tinyocaml
open
let calc = function
Add -> (+) | Sub -> (-) | Mul -> ( * ) | Div -> (/)
let comp = function
LT -> (<) | EQ -> (=) | GT -> (>) | EQLT -> (<=) | EQGT -> (>=) | NEQ -> (<>)
(* Predicate on value-ness of expressions. *)
let rec is_value e =
(*Printf.printf "isvalue on %s\n" (to_string e);*)
... | null | https://raw.githubusercontent.com/johnwhitington/ocamli/28da5d87478a51583a6cb792bf3a8ee44b990e9f/tinyocamlutil.ml | ocaml | Predicate on value-ness of expressions.
Printf.printf "isvalue on %s\n" (to_string e);
If not a value, underline it as the next redex | open Tinyocaml
open
let calc = function
Add -> (+) | Sub -> (-) | Mul -> ( * ) | Div -> (/)
let comp = function
LT -> (<) | EQ -> (=) | GT -> (>) | EQLT -> (<=) | EQGT -> (>=) | NEQ -> (<>)
let rec is_value e =
match e with
Unit | Int _ | Bool _ | Fun _ | Function _
| Int32 _ | Int64 _ | NativeInt _
| OutC... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.