_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
fa9a8038939425260a288085917f1fe7c98fe48768b96f933b7a523f87b552fa
paurkedal/ocaml-mediawiki-api
mwapi_query_prop_revisions.ml
Copyright ( C ) 2015 - -2017 Petter A. Urkedal < > * * This library is free software ; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or ( at your * option ) any la...
null
https://raw.githubusercontent.com/paurkedal/ocaml-mediawiki-api/7538ff1d170cb8784e4fb45f26c1acac5591782b/lib/mwapi_query_prop_revisions.ml
ocaml
Copyright ( C ) 2015 - -2017 Petter A. Urkedal < > * * This library is free software ; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or ( at your * option ) any la...
f074515fdac62458ec6288774010b6e10090095f60a3ac2092d9ba170b89cbfb
orthecreedence/drakma-async
util.lisp
(in-package :drakma-async) (defun wildcard-equal (form wildcard-item &key (wildcard-marker :*) (rest-marker :...)) "A recursive equality function that allows some pieces of data to be missing or unspecified while performing comparisons: (wildcard-equal '(1 2 3) '(1 :* 3)) => t (wildcard-eq...
null
https://raw.githubusercontent.com/orthecreedence/drakma-async/3353e5cd8c14e40ac1f21e4065b07c75065b1500/util.lisp
lisp
loop over the forms for each item and do a comparison do nothing, since a wildcard will match anything (continue the loop) the rest of the search forms will match since we got a :... make sure all the forms were processed we're dealing with non-lists, do an #'equal on them gracefully handle dotted pairs
(in-package :drakma-async) (defun wildcard-equal (form wildcard-item &key (wildcard-marker :*) (rest-marker :...)) "A recursive equality function that allows some pieces of data to be missing or unspecified while performing comparisons: (wildcard-equal '(1 2 3) '(1 :* 3)) => t (wildcard-eq...
7818ddc0a9822653b852b613600d873e4a6f4a6320bba44dad6366ddac8a9180
tsloughter/kuberl
kuberl_extensions_v1beta1_ingress_rule.erl
-module(kuberl_extensions_v1beta1_ingress_rule). -export([encode/1]). -export_type([kuberl_extensions_v1beta1_ingress_rule/0]). -type kuberl_extensions_v1beta1_ingress_rule() :: #{ 'host' => binary(), 'http' => kuberl_extensions_v1beta1_http_ingress_rule_value:kuberl_extensions_v1beta1_http_ingress_rule_v...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_extensions_v1beta1_ingress_rule.erl
erlang
-module(kuberl_extensions_v1beta1_ingress_rule). -export([encode/1]). -export_type([kuberl_extensions_v1beta1_ingress_rule/0]). -type kuberl_extensions_v1beta1_ingress_rule() :: #{ 'host' => binary(), 'http' => kuberl_extensions_v1beta1_http_ingress_rule_value:kuberl_extensions_v1beta1_http_ingress_rule_v...
14c4078f97968a094d145760083f9fcef25623da9a66c5f91b90f3dc80b71116
camlp5/pa_ppx_ag
pa_ppx_ag_runtime.ml
(* camlp5r *) (* pa_ppx_ag_runtime.ml,v *) module Attributes = struct type attributed 'a 'b = { id : int ; node : 'a ; attributes : 'b } ; value ctr = ref 0 ; value attributed ~{attributes} node = let id = ctr.val in do { ctr.val := 1 + ctr.val ; { id = id ; node = node ; attributes = attributes ...
null
https://raw.githubusercontent.com/camlp5/pa_ppx_ag/befb76d71f2ea432dc7b53ac80552fdd62985605/pa_ag/pa_ppx_ag_runtime.ml
ocaml
camlp5r pa_ppx_ag_runtime.ml,v
module Attributes = struct type attributed 'a 'b = { id : int ; node : 'a ; attributes : 'b } ; value ctr = ref 0 ; value attributed ~{attributes} node = let id = ctr.val in do { ctr.val := 1 + ctr.val ; { id = id ; node = node ; attributes = attributes } } ; end ;
c63cc1ac8e2b3ea186a984d66cb0a647a53446ff2ee9011482323f9e6f770d78
simmsb/calamity
Text.hs
# LANGUAGE TemplateHaskell # module Calamity.Types.Model.Channel.Guild.Text (TextChannel (..)) where import Calamity.Internal.SnowflakeMap (SnowflakeMap) import {-# SOURCE #-} Calamity.Types.Model.Channel import Calamity.Types.Model.Channel.Guild.Category import Calamity.Types.Model.Channel.Message import {-# SOURCE ...
null
https://raw.githubusercontent.com/simmsb/calamity/be310255b446e87e7432673de1fbc67ef46de3ae/calamity/Calamity/Types/Model/Channel/Guild/Text.hs
haskell
# SOURCE # # SOURCE #
# LANGUAGE TemplateHaskell # module Calamity.Types.Model.Channel.Guild.Text (TextChannel (..)) where import Calamity.Internal.SnowflakeMap (SnowflakeMap) import Calamity.Types.Model.Channel.Guild.Category import Calamity.Types.Model.Channel.Message import Calamity.Types.Model.Guild.Overwrite import Calamity.Types.Sno...
acdb254fd5bf7e635b18f5434451c55a910178de72ad73cacfcab55497b7a7e7
grin-compiler/ghc-wpc-sample-programs
Parsing.hs
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # {-# LANGUAGE ScopedTypeVariables #-} | Module : Text . Pandoc . Readers . LaTeX.Parsing Copyright : Copyright ( C ) 2006 - 2020 License : GNU GPL , version 2 or above Maint...
null
https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/pandoc-11df2a3c0f2b1b8e351ad8caaa7cdf583e1b3b2e/src/Text/Pandoc/Readers/LaTeX/Parsing.hs
haskell
# LANGUAGE ScopedTypeVariables # import Debug.Trace shouldn't happen retokenize, applying macros ideally we should make tokenization sensitive to \makeatletter and \makeatother, but this is probably best for now apply macros on remaining input stream detect macro expansion loops first boolean param is true i...
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # | Module : Text . Pandoc . Readers . LaTeX.Parsing Copyright : Copyright ( C ) 2006 - 2020 License : GNU GPL , version 2 or above Maintainer : < > Stability : al...
926b2e4857b923ed205f303d591266e107ab97b54e556f37fbf8c3b4bf256e51
AeneasVerif/aeneas
Translate.ml
open InterpreterStatements open Interpreter module L = Logging module T = Types module A = LlbcAst module SA = SymbolicAst module Micro = PureMicroPasses open PureUtils open TranslateCore (** The local logger *) let log = TranslateCore.log (** The result of running the symbolic interpreter on a function: - the li...
null
https://raw.githubusercontent.com/AeneasVerif/aeneas/1535b37ae84ddb1d2679c19b8fcc734351e5ce5d/compiler/Translate.ml
ocaml
* The local logger * The result of running the symbolic interpreter on a function: - the list of symbolic values used for the input values - the generated symbolic AST * Execute the symbolic interpreter on a function to generate a list of symbolic ASTs, for the forward function and the backward functions....
open InterpreterStatements open Interpreter module L = Logging module T = Types module A = LlbcAst module SA = SymbolicAst module Micro = PureMicroPasses open PureUtils open TranslateCore let log = TranslateCore.log type symbolic_fun_translation = V.symbolic_value list * SA.expression let translate_function_to_symbo...
d6446d17ead3763cac6c512ba2ced575cbcfc882c167351bd2567de55671907b
pouriya/director
director.erl
%%% ------------------------------------------------------------------------------------------------ Director is available for use under the following license , commonly known as the 3 - clause ( or %%% "modified") BSD license: %%% Copyright ( c ) 2018 - 2019 , %%% () %%% All rights reserved. %%% %%% Redistributi...
null
https://raw.githubusercontent.com/pouriya/director/919c30db18c83330290fba9e68de330000978674/src/director.erl
erlang
------------------------------------------------------------------------------------------------ "modified") BSD license: () All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: conditions and the...
Director is available for use under the following license , commonly known as the 3 - clause ( or Copyright ( c ) 2018 - 2019 , 1 . Redistributions of source code must retain the above copyright notice , this list of 2 . Redistributions in binary form must reproduce the above copyright notice , this list of ...
3b2a73b9cf57773585215718c166a49ab79ac1be1d0e78c5aef4d30f441a8a31
ros/roslisp_common
math-utils.lisp
(in-package :cl-utils) (defvar *tol* 1e-6 "Default tolerance for floating point ops") (defun close-to (x y &optional (tol *tol*)) "Are X and Y within absolute distance TOL of each other?" (declare (real x y)) (< (abs (- x y)) tol)) (defun std (v) "Return standard deviation (and mean) of numbers in V" (let ...
null
https://raw.githubusercontent.com/ros/roslisp_common/4db311da26497d84a147f190200e50c7a5b4106e/cl_utils/src/utils/math-utils.lisp
lisp
Basic linear algebra ops on matrices and vectors
(in-package :cl-utils) (defvar *tol* 1e-6 "Default tolerance for floating point ops") (defun close-to (x y &optional (tol *tol*)) "Are X and Y within absolute distance TOL of each other?" (declare (real x y)) (< (abs (- x y)) tol)) (defun std (v) "Return standard deviation (and mean) of numbers in V" (let ...
dfd7f83d34e62322f0aa3da26c439dc15a1a93a53bf6bd765f4fccddc58be92a
CatalaLang/catala
compile_with_exceptions.mli
This file is part of the Catala compiler , a specification language for tax and social benefits computation rules . Copyright ( C ) 2020 , contributor : < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . ...
null
https://raw.githubusercontent.com/CatalaLang/catala/d2662021594b35e585f6b7f56fca89be7f98e34e/compiler/lcalc/compile_with_exceptions.mli
ocaml
* Translation from the default calculus to the lambda calculus. This translation uses exceptions to handle empty default terms.
This file is part of the Catala compiler , a specification language for tax and social benefits computation rules . Copyright ( C ) 2020 , contributor : < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . ...
e7b19bddd5e684f537af2b397d1f6d4a70f37b206044c57dd68940d1758ccbd5
apinf/proxy42
proxy42_authenticate_middleware.erl
-module(proxy42_authenticate_middleware). -behaviour(cowboyku_middleware). -export([execute/2]). -type env() :: cowboyku_middleware:env(). -spec execute(p42_req:req(), env()) -> {ok, p42_req:req(), env()} | {error, 403 | 429, p42_req:req()} . execute(Req, Env) -> {Log, Req1} =...
null
https://raw.githubusercontent.com/apinf/proxy42/01b483b711881391e8306bf64b83b4df9d0bc832/apps/proxy42_core/src/proxy42_authenticate_middleware.erl
erlang
-module(proxy42_authenticate_middleware). -behaviour(cowboyku_middleware). -export([execute/2]). -type env() :: cowboyku_middleware:env(). -spec execute(p42_req:req(), env()) -> {ok, p42_req:req(), env()} | {error, 403 | 429, p42_req:req()} . execute(Req, Env) -> {Log, Req1} =...
633dc640c5029cba872d30bdda4b5e81d9f7f90322dd5c2acf2d6b4b307d9aac
scymtym/clim.flamegraph
macros.lisp
;;;; macros.lisp --- Macros provided by the recording module. ;;;; Copyright ( C ) 2019 , 2020 Jan Moringen ;;;; Author : < > (cl:in-package #:clim.flamegraph.recording) ;;; (defun call-with-recording-into (thunk run recorder) (setup recorder run) (start recorder run) (unwind-protect (funcall thu...
null
https://raw.githubusercontent.com/scymtym/clim.flamegraph/03b5e4f08b53af86a98afa975a8e7a29d0ddd3a7/src/recording/macros.lisp
lisp
macros.lisp --- Macros provided by the recording module.
Copyright ( C ) 2019 , 2020 Jan Moringen Author : < > (cl:in-package #:clim.flamegraph.recording) (defun call-with-recording-into (thunk run recorder) (setup recorder run) (start recorder run) (unwind-protect (funcall thunk) (stop recorder run) (teardown recorder run))) (defun call-with-...
429e1991a0496e89e9d48be719f473f980a56b620a55c2b818dc4e95f7d25b11
zadean/xqerl
op_anyURI_greater_than_SUITE.erl
-module('op_anyURI_greater_than_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['K2-AnyURILeGe-1'/1]). -export(['K2-AnyURILeGe-2'/1]). -export(['K2-AnyU...
null
https://raw.githubusercontent.com/zadean/xqerl/1a94833e996435495922346010ce918b4b0717f2/test/op/op_anyURI_greater_than_SUITE.erl
erlang
-module('op_anyURI_greater_than_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['K2-AnyURILeGe-1'/1]). -export(['K2-AnyURILeGe-2'/1]). -export(['K2-AnyU...
0d0d02b4b78b3899665fdebfdd45317c62f018c8a74c2cb7abf0721ffe736ab4
coccinelle/coccinelle
array.mli
type 'a t = 'a array external length : 'a array -> int = "%array_length" external get : 'a array -> int -> 'a = "%array_safe_get" external set : 'a array -> int -> 'a -> unit = "%array_safe_set" external make : int -> 'a -> 'a array = "caml_make_vect" external create : int -> 'a -> 'a array = "caml_make_vect" external ...
null
https://raw.githubusercontent.com/coccinelle/coccinelle/5448bb2bd03491ffec356bf7bd6ddcdbf4d36bc9/bundles/stdcompat/stdcompat-current/interfaces/4.14/array.mli
ocaml
type 'a t = 'a array external length : 'a array -> int = "%array_length" external get : 'a array -> int -> 'a = "%array_safe_get" external set : 'a array -> int -> 'a -> unit = "%array_safe_set" external make : int -> 'a -> 'a array = "caml_make_vect" external create : int -> 'a -> 'a array = "caml_make_vect" external ...
64c7eaa2da621330dcc3a54a887f2e17a44e7433274217d50741b70fe25cf0e2
NorfairKing/the-notes
Convergence.hs
module Probability.Convergence where import Notes import Logic.FirstOrderLogic.Macro import Logic.PropositionalLogic.Macro import Probability.ProbabilityMeasure.Macro import Probability.RandomVariable.Macro import Probability.RandomVariable.Terms import ...
null
https://raw.githubusercontent.com/NorfairKing/the-notes/ff9551b05ec3432d21dd56d43536251bf337be04/src/Probability/Convergence.hs
haskell
module Probability.Convergence where import Notes import Logic.FirstOrderLogic.Macro import Logic.PropositionalLogic.Macro import Probability.ProbabilityMeasure.Macro import Probability.RandomVariable.Macro import Probability.RandomVariable.Terms import ...
a16cf9ed492155a26e5c31147fb2b440972cc4f1c786a749b0e2ef3993120852
imrehg/ypsilon
language.scm
#!nobacktrace Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (library (ypsilon pango language) (export pango_language_from_string pango_language_get_default pango_language_get_sample_string ...
null
https://raw.githubusercontent.com/imrehg/ypsilon/e57a06ef5c66c1a88905b2be2fa791fa29848514/sitelib/ypsilon/pango/language.scm
scheme
PangoLanguage* pango_language_from_string (const char* language) PangoLanguage* pango_language_get_default (void) const char* pango_language_get_sample_string (PangoLanguage* language) gboolean pango_language_includes_script (PangoLanguage* language, PangoScript script) gboolean pango_language_matches (PangoLangua...
#!nobacktrace Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (library (ypsilon pango language) (export pango_language_from_string pango_language_get_default pango_language_get_sample_string ...
e596268b22c94d027aa67b3659396d2f467e32bca7b782c89d91e928bfd93bdd
aionescu/oplang
Optimize.hs
module Language.OpLang.Optimize(optimize) where import Language.OpLang.IR syncTally :: Bool -> Val -> Offset -> [Instr] -> [Instr] syncTally False 0 _ acc = acc syncTally False n offset acc = Add n offset : acc syncTally True n offset acc = Set n offset : acc syncOffset :: Offset -> [Instr] -> [Instr] syncOffset 0 a...
null
https://raw.githubusercontent.com/aionescu/oplang/fd69bc01486d43a78f62cf43e0a5ba3f05679748/src/Language/OpLang/Optimize.hs
haskell
module Language.OpLang.Optimize(optimize) where import Language.OpLang.IR syncTally :: Bool -> Val -> Offset -> [Instr] -> [Instr] syncTally False 0 _ acc = acc syncTally False n offset acc = Add n offset : acc syncTally True n offset acc = Set n offset : acc syncOffset :: Offset -> [Instr] -> [Instr] syncOffset 0 a...
0007eab2a9b951e89fd34b9cf923c6ed25e8dab42ae2a8c8fcd86f7e1bd5050a
dixonary/hove-letter
UI.hs
module UI where import Brick import Brick.Widgets.List import Brick.Widgets.Center import Brick.Widgets.Border import Brick.Widgets.Border.Style import Data.Vector (fromList) import Data.Bool (bool) import Cards import Shared drawUI :: Game -> [Widget Name] drawUI Game{..} = return $ joinBorders $ border $...
null
https://raw.githubusercontent.com/dixonary/hove-letter/ac733b5049735a7ab1e295e7a672b84a930e6db0/src/UI.hs
haskell
module UI where import Brick import Brick.Widgets.List import Brick.Widgets.Center import Brick.Widgets.Border import Brick.Widgets.Border.Style import Data.Vector (fromList) import Data.Bool (bool) import Cards import Shared drawUI :: Game -> [Widget Name] drawUI Game{..} = return $ joinBorders $ border $...
7af6ec2daa3e63bdf7815d54ba50dc3ddbb528994c1e478c37be45f54b666eff
ygmpkk/house
DHCP.hs
module Net.DHCP where -- Dynamic Host Configuration Protocol, RFC 2131 -- See -- -- (DHCP/BOOTP options) import Kernel.Bits(Word8,Word16,Word32,testBit) import qualified Net.IPv4 as IP import qualified Net.Ethernet as Eth import Net.PacketParsing import Net.PortNumber serverPort = bootps clientPort = boo...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/kernel/Net/DHCP.hs
haskell
Dynamic Host Configuration Protocol, RFC 2131 See (DHCP/BOOTP options) always 0x01 ( Ethernet ) always 6 hOps::Word8, -- 0 except when booting via relay agents Transaction ID, randomly chosen by the client unimplemented/unsupported option --------------------------------------------------------------...
module Net.DHCP where import Kernel.Bits(Word8,Word16,Word32,testBit) import qualified Net.IPv4 as IP import qualified Net.Ethernet as Eth import Net.PacketParsing import Net.PortNumber serverPort = bootps clientPort = bootpc data Packet = Packet 1 byte secs::Word16, 2 bytes ciaddr,yiaddr,siaddr,...
c3b4ec7fbc0b7730759a527da39a6a22a4078a10948005348cf5d7853588b4f2
jkvor/log_roller
lr_web_server.erl
Copyright ( c ) 2009 < > %% %% Permission is hereby granted, free of charge, to any person %% obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without %% restriction, including without limitation the rights to use, %% copy, modify, merge, publis...
null
https://raw.githubusercontent.com/jkvor/log_roller/1f072ab74532314f94bdc94dd5a8572d5ceb8d4e/src/lr_web_server.erl
erlang
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell Software is furnished to do so, subject to the following condi...
Copyright ( c ) 2009 < > files ( the " Software " ) , to deal in the Software without copies of the Software , and to permit persons to whom the included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , -module(lr_web_server). -expo...
443d12b42e02628a90f9b67b97bbbd829abbe732e4a91de9062ff6b93b1ae3d9
mput/sicp-solutions
complex-number-package.rkt
#lang racket (require (only-in "dispatch-table.rkt" put get attach-tag type-tag contents apply-generic)) (require (only-in "utils.rkt" square)) #| (provide real-part imag-part magnitude angle) |# (provide install-rectangular-package install-polar-package) (define (install-rectangular-package) ;; internal procedure...
null
https://raw.githubusercontent.com/mput/sicp-solutions/fe12ad2b6f17c99978c8fe04b2495005986b8496/solutions/complex-number-package.rkt
racket
(provide real-part imag-part magnitude angle) internal procedures interface to the rest of the system internal procedures interface to the rest of the system
#lang racket (require (only-in "dispatch-table.rkt" put get attach-tag type-tag contents apply-generic)) (require (only-in "utils.rkt" square)) (provide install-rectangular-package install-polar-package) (define (install-rectangular-package) (define (real-part z) (car z)) (define (imag-part z) (cdr z)) (define...
d28d41c9df8915fb4bc0af513d6cdb538499c63661c95ae4f48f1e778a67556d
omariosouto/learnin-public-clojure
server.clj
(ns pokebank-ui.server (:require [pokebank-ui.handler :refer [app]] [config.core :refer [env]] [ring.adapter.jetty :refer [run-jetty]]) (:gen-class)) (defn -main [& args] (let [port (or (env :port) 3000)] (run-jetty #'app {:port port :join? false})))
null
https://raw.githubusercontent.com/omariosouto/learnin-public-clojure/bb66040ef397d4d6e8275330acdd553bbf850a39/projects/pokebank-ui/src/clj/pokebank_ui/server.clj
clojure
(ns pokebank-ui.server (:require [pokebank-ui.handler :refer [app]] [config.core :refer [env]] [ring.adapter.jetty :refer [run-jetty]]) (:gen-class)) (defn -main [& args] (let [port (or (env :port) 3000)] (run-jetty #'app {:port port :join? false})))
1d875a3d16793b89f19d6997ba498e236780b7086364e1f2ec5c41f0feebc210
binaryage/cljs-devtools
issue35.cljs
(ns devtools-sample.tests.issue35 (:import [goog.date Date DateTime UtcDateTime]) (:require-macros [devtools-sample.logging :refer [log info]]) (:require [devtools-sample.boot :refer [boot!]])) (boot! "/src/tests/devtools_sample/tests/issue35.cljs") (enable-console-print!) ; --- MEAT STARTS HERE --> (def x []...
null
https://raw.githubusercontent.com/binaryage/cljs-devtools/d07fc6d404479b1ddd32cecc105009de77e3cba7/examples/lein/src/tests/devtools_sample/tests/issue35.cljs
clojure
--- MEAT STARTS HERE --> <-- MEAT STOPS HERE ---
(ns devtools-sample.tests.issue35 (:import [goog.date Date DateTime UtcDateTime]) (:require-macros [devtools-sample.logging :refer [log info]]) (:require [devtools-sample.boot :refer [boot!]])) (boot! "/src/tests/devtools_sample/tests/issue35.cljs") (enable-console-print!) (def x []) (alter-meta! x #(assoc % ...
989cf8959ef41bccfd8f97f20a94bd35ee324b445cad9db507be61157c6ae867
mput/sicp-solutions
2_03.test.rkt
#lang racket (require rackunit/text-ui) (require rackunit "custom-checks.rkt") (require rackunit "../solutions/2_02.rkt") (require rackunit "../solutions/2_03.rkt") (define tests (test-suite "Test for exercise 2_03" (test-case "Two dots rectangle representation" (define rectangle (make-rectangl...
null
https://raw.githubusercontent.com/mput/sicp-solutions/fe12ad2b6f17c99978c8fe04b2495005986b8496/tests/2_03.test.rkt
racket
#lang racket (require rackunit/text-ui) (require rackunit "custom-checks.rkt") (require rackunit "../solutions/2_02.rkt") (require rackunit "../solutions/2_03.rkt") (define tests (test-suite "Test for exercise 2_03" (test-case "Two dots rectangle representation" (define rectangle (make-rectangl...
f79a39722188e4842928583f9d255c3636034b31e7da6e529efd6fc5fa0a8f93
GaloisInc/saw-script
ParserUtils.hs
# LANGUAGE CPP # {-# LANGUAGE RankNTypes #-} # LANGUAGE TemplateHaskell # | Module : Verifier . SAW.ParserUtils Copyright : Galois , Inc. 2012 - 2015 License : : Stability : experimental Portability : non - portable ( language extensions ) Module : Verifier.SAW.ParserUtils Cop...
null
https://raw.githubusercontent.com/GaloisInc/saw-script/22dae5b00b5fb2c847be4786f96dbe1990c41f2e/saw-core/src/Verifier/SAW/ParserUtils.hs
haskell
# LANGUAGE RankNTypes # * Template haskell utilities. | Parse an untyped module declaration from a byte-string | Parse an untyped module from file | Record @path@ as a dependency for this compilation | @defineModuleFromFile str file@ reads an untyped module from @file@, adds a TH declaration of the name @str@ tha...
# LANGUAGE CPP # # LANGUAGE TemplateHaskell # | Module : Verifier . SAW.ParserUtils Copyright : Galois , Inc. 2012 - 2015 License : : Stability : experimental Portability : non - portable ( language extensions ) Module : Verifier.SAW.ParserUtils Copyright : Galois, Inc. 2012...
922d1b5c5f1571d71315a0ca66a68cfd982d4f8d4356f70b0b5841fcb8ed4ab3
tek/polysemy-http
Http.hs
-- |Description: Polysemy Effects for HTTP clients module Polysemy.Http ( -- $intro module Polysemy.Http.Effect.Http, -- * Interpreters module Polysemy.Http.Interpreter.Native, module Polysemy.Http.Interpreter.Pure, -- * Request and Response module Polysemy.Http.Data.Request, module Polysemy.Http.Data...
null
https://raw.githubusercontent.com/tek/polysemy-http/1e639e3e0f26074ec3aba366bd9a9ce8832f86ec/packages/polysemy-http/lib/Polysemy/Http.hs
haskell
|Description: Polysemy Effects for HTTP clients $intro * Interpreters * Request and Response * Streaming * Entity * Utilities ** Connection Pool $intro @ main :: IO () main = do result <- runM $ resourceToIO $ interpretLogStdout $ interpretHttpNative $ print result @
module Polysemy.Http ( module Polysemy.Http.Effect.Http, module Polysemy.Http.Interpreter.Native, module Polysemy.Http.Interpreter.Pure, module Polysemy.Http.Data.Request, module Polysemy.Http.Data.Response, module Polysemy.Http.Data.Header, withPort, withTls, simple, get, post, put, delete,...
b58b2d4e57b398732505f8a2d71c5821456ac3bccb9c088f7b16f3fa5f2d6ed1
tek/ribosome
TemplateTree.hs
module Ribosome.App.TemplateTree where import qualified Data.Text.IO as Text import Path (Abs, Dir, File, Path, Rel, parent, reldir, toFilePath, (</>)) import Path.IO (createDirIfMissing, doesFileExist) import Ribosome.App.Data (Global (..)) import Ribosome.App.Data.TemplateTree (TemplateTree (TDir, TFile)) import Ri...
null
https://raw.githubusercontent.com/tek/ribosome/a676b4f0085916777bfdacdcc761f82d933edb80/packages/app/lib/Ribosome/App/TemplateTree.hs
haskell
module Ribosome.App.TemplateTree where import qualified Data.Text.IO as Text import Path (Abs, Dir, File, Path, Rel, parent, reldir, toFilePath, (</>)) import Path.IO (createDirIfMissing, doesFileExist) import Ribosome.App.Data (Global (..)) import Ribosome.App.Data.TemplateTree (TemplateTree (TDir, TFile)) import Ri...
3efa0b7438f566faa4400faf5c978636a3ea16df67d250b2f7758ccd9b789246
sneerteam/sneer
middleware.clj
(ns reagent-spike.middleware (:require [ring.middleware.defaults :refer [site-defaults wrap-defaults]])) (defn wrap-middleware [handler] (wrap-defaults handler site-defaults))
null
https://raw.githubusercontent.com/sneerteam/sneer/b093c46321a5a42ae9418df427dbb237489b7bcb/spikes/reagent-spike/env/prod/clj/reagent_spike/middleware.clj
clojure
(ns reagent-spike.middleware (:require [ring.middleware.defaults :refer [site-defaults wrap-defaults]])) (defn wrap-middleware [handler] (wrap-defaults handler site-defaults))
30ce3b32e53de27eb7e75d99f8e1c969ade5598fc3cad3d43663fbcbdc980203
mariari/Misc-ML-Scripts
Usage.hs
{-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # | Each binder and local context element in is annotated with -- a /usage/, which tracks how many times it is needed in a -- runtime-relevant way. module Mari.Library.Usage ( -- Usage type Usage (..), T, Utils ...
null
https://raw.githubusercontent.com/mariari/Misc-ML-Scripts/376a7d55b565bf9205e697c5c3b78e1d6b6aedcd/Haskell/StandardLibrary/src/Mari/Library/Usage.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE DeriveDataTypeable # a /usage/, which tracks how many times it is needed in a runtime-relevant way. Usage type ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- A usage is e...
# LANGUAGE DeriveGeneric # | Each binder and local context element in is annotated with module Mari.Library.Usage Usage (..), T, Utils allows, isNotZero, isZero, minus, pred, predPosUsage, toUsage, ) where import qualified Data.Aeson as A import Data.Maybe (fromJust) import...
1442d30ff38a3176accb105af6645ac0f2f2f4aee6dd4a42d1378e43bb950547
babashka/nbb
core.cljs
(ns print-cli-args.core) (defn -main [& args] (println "Your command line arguments:" (or args "None")))
null
https://raw.githubusercontent.com/babashka/nbb/be27f0008fed6ffe113ef15683cd3002a456dac0/doc/caxa/print-cli-args/src/print_cli_args/core.cljs
clojure
(ns print-cli-args.core) (defn -main [& args] (println "Your command line arguments:" (or args "None")))
d9caa6b56a3b0a900f58c8bbe750279f5c3722cdc14a01cbb17a27a50eecd943
vito/atomo
Comparable.hs
# LANGUAGE QuasiQuotes # module Atomo.Kernel.Comparable (load) where import qualified Data.Vector as V import Atomo load :: VM () load = do mapM_ eval [ [e|operator 4 == /= < <= >= >|] , [e|operator right 3 &&|] , [e|operator right 2 |||] ] [p|a equals?: b|] =: do a ...
null
https://raw.githubusercontent.com/vito/atomo/df22fcb3fbe80abb30b9ab3c6f5d50d3b8477f90/src/Atomo/Kernel/Comparable.hs
haskell
TODO: @== equality for options
# LANGUAGE QuasiQuotes # module Atomo.Kernel.Comparable (load) where import qualified Data.Vector as V import Atomo load :: VM () load = do mapM_ eval [ [e|operator 4 == /= < <= >= >|] , [e|operator right 3 &&|] , [e|operator right 2 |||] ] [p|a equals?: b|] =: do a ...
789edcf8b4f2589d4589d3bc98a33a86c7e6fb22a8c3e8d219dcb2e83238b14d
bitonic/tog
Term.hs
-- | Terms and a lot of facilities. Output of typechecking. module Tog.Term ( module Tog.Term.Types -- * Useful synonyms , module Tog.Term.Synonyms -- * Free variables , module Tog.Term.FreeVars -- * 'IsTerm' implementations , module Tog.Term.Impl ) where -- We want to use the smart constructors...
null
https://raw.githubusercontent.com/bitonic/tog/0da3b6ec82ac1fa3ce91d7f9b683a8ddedfd732f/src/Tog/Term.hs
haskell
| Terms and a lot of facilities. Output of typechecking. * Useful synonyms * Free variables * 'IsTerm' implementations We want to use the smart constructors only, and we should only use whnfView.
module Tog.Term ( module Tog.Term.Types , module Tog.Term.Synonyms , module Tog.Term.FreeVars , module Tog.Term.Impl ) where import Tog.Term.Types hiding (unview, view) import Tog.Term.Synonyms import Tog.Term.Pretty () import Tog.Term.MetaVars () import Tog.Term.FreeVars import Tog.Term.Impl
5747cf182f6362655efe931eaa954ec1a9fe5c35cd64faf1c3774389f787781c
haskell-lisp/yale-haskell
pattern.scm
pattern.scm -- cfn processing of pattern - related AST structures ;;; author : date : 27 Feb 1992 ;;; This file contains specialized CFN walkers for lambda , case , and valdef ;;; structures. ;;;===================================================================== ;;; Top-level walkers ;;;==========...
null
https://raw.githubusercontent.com/haskell-lisp/yale-haskell/4e987026148fe65c323afbc93cd560c07bf06b3f/cfn/pattern.scm
scheme
structures. ===================================================================== Top-level walkers ===================================================================== The calls to remember-context are so an appropriate error message can be produced for pattern-matching failures. Valdefs are always processed a...
pattern.scm -- cfn processing of pattern - related AST structures author : date : 27 Feb 1992 This file contains specialized CFN walkers for lambda , case , and valdef (define-walker-method cfn lambda (object) (remember-context object (do-cfn-lambda (lambda-pats object) (lambda-body object)...
1daa1fbc2fef29eda56aa4ff288326c0672cec3f65e517065a614317c671ea1b
reborg/clojure-essential-reference
4.clj
< 1 > (let [accountM (bigdec account) priceM (bigdec price)] (if (zero? priceM) 0 < 2 > (defn increment [current price qty] (let [currentM (bigdec current) priceM (bigdec price)] (double (with-precision 5 (+ currentM (* priceM qty)))))) ; <3> (share-qty 800 1.03) 776 (...
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/OperationsonNumbers/with-precision/4.clj
clojure
<3>
< 1 > (let [accountM (bigdec account) priceM (bigdec price)] (if (zero? priceM) 0 < 2 > (defn increment [current price qty] (let [currentM (bigdec current) priceM (bigdec price)] (share-qty 800 1.03) 776 (increment 210 0.38 20) 217.6
212b30bd5f09c57c5cc1b9d10ca49665abeacb68824d618430313e24e5cf5c8d
mbenke/zpf2012
App2.hs
# LANGUAGE ExplicitForAll , RankNTypes # {-# LANGUAGE GADTs #-} -- for syntax only module App2 where import Applicative import Monoid import Data.Char(isDigit,digitToInt) data Steps a where Step :: Steps a -> Steps a Fail :: Steps a Done :: a -> Steps a deriving Show best :: Steps a -> Steps a -> Steps a bes...
null
https://raw.githubusercontent.com/mbenke/zpf2012/faad6468f9400059de1c0735e12a84a2fdf24bb4/Code/Parse2/App2.hs
haskell
# LANGUAGE GADTs # for syntax only prefer longer parse ambiguity Functor instance trivial since we have no result (a->b) -> R a -> R b S -> ( S ) S | epsilon C1 -> T C C -> op T C | empty applyAll x [f] = f x
# LANGUAGE ExplicitForAll , RankNTypes # module App2 where import Applicative import Monoid import Data.Char(isDigit,digitToInt) data Steps a where Step :: Steps a -> Steps a Fail :: Steps a Done :: a -> Steps a deriving Show best :: Steps a -> Steps a -> Steps a best Fail r = r best l Fail = l OBS lazines...
4a91d7e5487800db9e8d5d5dd8d44a801c88eb543807592b48e7dd1a6ddde038
imandra-ai/fix-engine
test_engine_data.ml
let fix_data = Fix_data.data
null
https://raw.githubusercontent.com/imandra-ai/fix-engine/cdb25301495cdc5b227fe72eba6477ec826ebc9b/tests/unit/engine/data/test_engine_data.ml
ocaml
let fix_data = Fix_data.data
9d59bcb4b7b04bbc9e560821fc50cab817e8931219f5778da259f9836ef74517
GaloisInc/semmc
FP.hs
# LANGUAGE DataKinds # # LANGUAGE ImplicitParams # {-# LANGUAGE RankNTypes #-} module SemMC.Architecture.PPC.Base.FP ( floatingPoint , floatingPointLoads , floatingPointStores , floatingPointCompare -- * Primitives , fpBinaryDoubleToSingle , fpBinarySingleToDouble ) where import Prelude hiding ( conc...
null
https://raw.githubusercontent.com/GaloisInc/semmc/4dc4439720b3b0de8812a68f8156dc89da76da57/semmc-ppc/src/SemMC/Architecture/PPC/Base/FP.hs
haskell
# LANGUAGE RankNTypes # * Primitives NOTE!!! Dismantle argument order for binary operations is: frT, frB, frA NOTE!!! Dismantle argument order for ternary operations is: frT, frC, frB, frA | Extract the double-precision part of a vector register | Floating point comparison definitions ^ @<@ check function ^ @=...
# LANGUAGE DataKinds # # LANGUAGE ImplicitParams # module SemMC.Architecture.PPC.Base.FP ( floatingPoint , floatingPointLoads , floatingPointStores , floatingPointCompare , fpBinaryDoubleToSingle , fpBinarySingleToDouble ) where import Prelude hiding ( concat ) import Data.Parameterized.Some ( Some(..)...
f9ad106ddd12c2dc7fc232e5860a00d7f48366b5cee989b5b7dcc9b2053ccaa1
ChaosEternal/guile-termite
match-action.scm
-*- mode : scheme ; coding : utf-8 ; -*- ;;; Copyright ( C ) 2010 , 2011 , 2012 Free Software Foundation , Inc. ;;; ;;; This library is free software; you can redistribute it and/or ;;; modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either versi...
null
https://raw.githubusercontent.com/ChaosEternal/guile-termite/f571fd37bc2031e59e50496cdf0d53a8d2c7033a/termite/match-action.scm
scheme
coding : utf-8 ; -*- This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public either This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A P...
Copyright ( C ) 2010 , 2011 , 2012 Free Software Foundation , Inc. version 3 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , USA (define-module (termite match-action) ...
8c62819e4991ed5957a763e32f495e4b3dc8696056ad42236f1d560e3ba24eee
sdutlinux/gotit
handler_test.clj
(ns gotit.handler-test (:require [clojure.test :refer :all] [ring.mock.request :as mock] [gotit.handler :refer :all])) (deftest test-app (testing "main route" (let [response (app (mock/request :get "/"))] (is (= (:status response) 200)) (is (= (:body response) "Hello World")...
null
https://raw.githubusercontent.com/sdutlinux/gotit/4e63bb52d026d36da6568d76bd68beaca2a1abaf/web/test/gotit/handler_test.clj
clojure
(ns gotit.handler-test (:require [clojure.test :refer :all] [ring.mock.request :as mock] [gotit.handler :refer :all])) (deftest test-app (testing "main route" (let [response (app (mock/request :get "/"))] (is (= (:status response) 200)) (is (= (:body response) "Hello World")...
8b9cc054ec1ad688974bd62ccb32c49ded709493d2fd36918d4954dfd4713eef
qkrgud55/ocamlmulti
moreLabels.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , Kyot...
null
https://raw.githubusercontent.com/qkrgud55/ocamlmulti/74fe84df0ce7be5ee03fb4ac0520fb3e9f4b6d1f/stdlib/moreLabels.mli
ocaml
********************************************************************* OCaml ...
, Kyoto University RIMS Copyright 2001 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with $ I d : moreLabels.mli 12453 2012 - 05 - 1...
2336def0f4e4473852e21ee2fcb48d6db814cc415d8b0de9134834ae755eee0e
ujihisa/cloft
helper.clj
(ns helper (:refer-clojure :exclude [replace]) (:use [clojure.string :only [split-lines lower-case replace]])) (defn main [fname] (doseq [line (split-lines (slurp fname)) :let [x (replace (lower-case line) #"_" "-")]] (println (format "(def %s Sound/%s)" x line)))) (if-let [[arg & _] *command-line...
null
https://raw.githubusercontent.com/ujihisa/cloft/98284fa763d16280d4685478b2be2ab0efbb00b0/helper.clj
clojure
(ns helper (:refer-clojure :exclude [replace]) (:use [clojure.string :only [split-lines lower-case replace]])) (defn main [fname] (doseq [line (split-lines (slurp fname)) :let [x (replace (lower-case line) #"_" "-")]] (println (format "(def %s Sound/%s)" x line)))) (if-let [[arg & _] *command-line...
b4d84620752ae3901054d2e48aa39bcd8f67196d85105db5c01f11f9ea49f19a
astrada/rxocaml
testSubscription.ml
open OUnit2 let test_unsubscribe_only_once _ = let counter = ref 0 in let unsubscribe = Rx.Subscription.create (fun () -> incr counter) in unsubscribe (); unsubscribe (); assert_equal 1 !counter let test_boolean_subscription _ = let counter = ref 0 in let boolean_subscription, state = Rx.Subscriptio...
null
https://raw.githubusercontent.com/astrada/rxocaml/6a4ea758108a07a8da129ba1555a260604f79091/tests/testSubscription.ml
ocaml
Wait for all the threads to start We should have only unsubscribed once Wait for all the threads to start We should have only unsubscribed once
open OUnit2 let test_unsubscribe_only_once _ = let counter = ref 0 in let unsubscribe = Rx.Subscription.create (fun () -> incr counter) in unsubscribe (); unsubscribe (); assert_equal 1 !counter let test_boolean_subscription _ = let counter = ref 0 in let boolean_subscription, state = Rx.Subscriptio...
37656d891618843a940190cf8fabf4b189a4c7a3ca49937a320b8f44d8e5eced
cognitect-labs/pedestal.views
selmer.clj
(ns com.cognitect.pedestal.views.selmer (:require [com.cognitect.pedestal.views :as views] [selmer.parser :as selmer])) (defn- selmer-wrapper [t data] (selmer/render-file (str t ".html") data)) (def renderer (views/make-template-renderer selmer-wrapper))
null
https://raw.githubusercontent.com/cognitect-labs/pedestal.views/2e581d69ad7344f3859bebc7cab0ea5bcdfa0099/src/com/cognitect/pedestal/views/selmer.clj
clojure
(ns com.cognitect.pedestal.views.selmer (:require [com.cognitect.pedestal.views :as views] [selmer.parser :as selmer])) (defn- selmer-wrapper [t data] (selmer/render-file (str t ".html") data)) (def renderer (views/make-template-renderer selmer-wrapper))
f1cf54c00f3341ae20c96ebb5d848cf633fa5f6891cd64b636da5cc3908d72f4
mpelleau/AbSolute
tree.ml
open Libabsolute open Consistency module D = Domains.Utree.Make (Domains.BoxF) let init (p : Csp.t) = let space = List.fold_left D.add_var D.empty p.Csp.variables in let constraints = List.map (D.internalize ~elem:space) p.Csp.constraints in (space, constraints) let print_intern fmt c = Format.fprintf fmt "%a...
null
https://raw.githubusercontent.com/mpelleau/AbSolute/c45a485fba17ab281d8fe099e915e398fa300280/examples/tree.ml
ocaml
open Libabsolute open Consistency module D = Domains.Utree.Make (Domains.BoxF) let init (p : Csp.t) = let space = List.fold_left D.add_var D.empty p.Csp.variables in let constraints = List.map (D.internalize ~elem:space) p.Csp.constraints in (space, constraints) let print_intern fmt c = Format.fprintf fmt "%a...
3a1d7f9595031a6e42d9afbf0d5be7490262a1f90e882066337e833d401e40d2
grpc/grpc-haskell
main.hs
Copyright 2017 authors . -- Licensed under the Apache License , Version 2.0 ( the " License " ) ; -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- -2.0 -- -- Unless required by applicable law or agreed to in writing, software distributed und...
null
https://raw.githubusercontent.com/grpc/grpc-haskell/bbebbb04704079fe2dba6fca57fbfa1532ca248f/tests/interop_client/main.hs
haskell
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright 2017 authors . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , module Main where import Control.Exception import Control.Monad import Control.Monad.IO.Class (liftIO) ...
0fb92adad9d93c898d2156dd491e550107ae7dd52a62c2fd90accc1eb355bd84
HealthSamurai/stresty
dropdown_select_model.cljc
(ns anti.dropdown-select-model (:require [re-frame.core :as rf] [zf.core :as zf] [clojure.string :as str])) (rf/reg-sub :anti/dropdown-select-options (fn [[_ opts]] [(rf/subscribe [:zf.core/schema opts]) (rf/subscribe [:zf.core/state opts])]) (fn [[schema state] _] (->> (o...
null
https://raw.githubusercontent.com/HealthSamurai/stresty/130cedde6bf53e07fe25a6b0b13b8bf70846f15a/src-ui/anti/dropdown_select_model.cljc
clojure
todo write helper for on-chnage form engine should fire on-change from model
(ns anti.dropdown-select-model (:require [re-frame.core :as rf] [zf.core :as zf] [clojure.string :as str])) (rf/reg-sub :anti/dropdown-select-options (fn [[_ opts]] [(rf/subscribe [:zf.core/schema opts]) (rf/subscribe [:zf.core/state opts])]) (fn [[schema state] _] (->> (o...
0af1d805e4cccea9b370104ba006deff3b7ba6e5325154ff9cd3a4cf670c3a80
deepfire/holotype
HSstress.hs
-- Usage: -- ghc -threaded -eventlog -rtsopts -isrc --make HSstress.hs && ./HSstress +RTS -T -ls -N2 -- {-# LANGUAGE BangPatterns #-} # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE ...
null
https://raw.githubusercontent.com/deepfire/holotype/d33052f588b74616560b81616ffc4a0142f8a617/tests/HSstress.hs
haskell
Usage: ghc -threaded -eventlog -rtsopts -isrc --make HSstress.hs && ./HSstress +RTS -T -ls -N2 # LANGUAGE BangPatterns # # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE PackageImports # # LANGUAGE RankNTypes # # LANGUAGE Strict # - Mostly boring parts below -
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # # LANGUAGE TypeFamili...
3efb69d15fd14fd31978bd60b6ac5edfdf08ad533261922ad20162742972f416
adamsmasher/hs-cdb
Packable.hs
# LANGUAGE FlexibleInstances , TypeSynonymInstances # module Database.CDB.Packable ( Packable, Unpackable, pack, unpack ) where import Data.Array.Unboxed import Data.Bits import qualified Data.ByteString as ByteString import Data.ByteString (ByteString) import qualified Data.ByteString.Char8 as ByteString.Cha...
null
https://raw.githubusercontent.com/adamsmasher/hs-cdb/004b51ab6f5784a28a119af3c5202821678bcccc/Database/CDB/Packable.hs
haskell
|An instance of 'Packable' can be losslessly transformed into a 'ByteString'.
# LANGUAGE FlexibleInstances , TypeSynonymInstances # module Database.CDB.Packable ( Packable, Unpackable, pack, unpack ) where import Data.Array.Unboxed import Data.Bits import qualified Data.ByteString as ByteString import Data.ByteString (ByteString) import qualified Data.ByteString.Char8 as ByteString.Cha...
6841be761c7528dc80e73505b133abdb282ca9e467e1fe69cc535459d3fd2d9a
tarantool/jepsen.tarantool
nemesis.clj
(ns tarantool.nemesis "Nemeses for Tarantool" (:require [clojure.tools.logging :refer [info warn]] [jepsen.nemesis [combined :as nc]])) (defn nemesis-package "Constructs a nemesis and generators for Tarantool" [opts] (let [opts (update opts :faults set)] (nc/nemesis-package opts)))
null
https://raw.githubusercontent.com/tarantool/jepsen.tarantool/3eded035968143889a28015a1d95e46ecbf0006c/src/tarantool/nemesis.clj
clojure
(ns tarantool.nemesis "Nemeses for Tarantool" (:require [clojure.tools.logging :refer [info warn]] [jepsen.nemesis [combined :as nc]])) (defn nemesis-package "Constructs a nemesis and generators for Tarantool" [opts] (let [opts (update opts :faults set)] (nc/nemesis-package opts)))
8d2fedea2c6764dfb2cc7c186b01929d068b21cf941f1f4e7bb04712477c25a8
LeventErkok/hArduino
JingleBells.hs
------------------------------------------------------------------------------- -- | Module : System . Hardware . Arduino . SamplePrograms . JingleBells Copyright : ( c ) -- License : BSD3 -- Maintainer : -- Stability : experimental -- A ( pretty bad ! ) rendering of Jingle Bells on a pi...
null
https://raw.githubusercontent.com/LeventErkok/hArduino/ee04988ad9ef3d4384d7ce7a8670518ce8b0a34c/System/Hardware/Arduino/SamplePrograms/JingleBells.hs
haskell
----------------------------------------------------------------------------- | License : BSD3 Maintainer : Stability : experimental ----------------------------------------------------------------------------- | Notes for jingle-bells. Expecting a nice rendering from this encoding on a piezo speaker ...
Module : System . Hardware . Arduino . SamplePrograms . JingleBells Copyright : ( c ) A ( pretty bad ! ) rendering of Jingle Bells on a piezo speaker module System.Hardware.Arduino.SamplePrograms.JingleBells where import System.Hardware.Arduino import System.Hardware.Arduino.Parts.Piezo jingleBe...
31ce97824fb73e737bd1de890d4018108cce6cb1b17be2a3a67819c1ccd247ff
brendanhay/amazonka
FaultRootCause.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # {-# LANGUAGE StrictData #-} # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # Derived fr...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-xray/gen/Amazonka/XRay/Types/FaultRootCause.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated | The root cause information for a trace summary fault. | A flag that denotes that the root cause impacts the trace client. | A list of corresponding services. A service identifies a segment and it contains a name, account ID, ...
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # Derived from AWS service descriptions , licensed under Apache 2.0 . Mo...
ca511fa2ba07e8954844a50e109c3a2fa5535c0dc3bdb3392d9b12076babc769
herbelin/coq-hh
metasyntax.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/herbelin/coq-hh/296d03d5049fea661e8bdbaf305ed4bf6d2001d2/toplevel/metasyntax.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** ************************************...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Flags open Compa...
414c0c114de62a171e4d33c71ea15f0039b21fbcdead3cca313a84e9b3a6d28e
shirok/Gauche
messagebox.scm
;; Public domain (use os.windows) (define (main args) (guard (e [else (sys-message-box #f (format "ERROR: ~a" (condition-message e)) (sys-basename *program-name*) (logior MB_OK MB_ICONERROR))]) (messagebox-sample (sys-basename (car ar...
null
https://raw.githubusercontent.com/shirok/Gauche/ecaf82f72e2e946f62d99ed8febe0df8960d20c4/examples/windows/messagebox.scm
scheme
Public domain
(use os.windows) (define (main args) (guard (e [else (sys-message-box #f (format "ERROR: ~a" (condition-message e)) (sys-basename *program-name*) (logior MB_OK MB_ICONERROR))]) (messagebox-sample (sys-basename (car args)))) 0) (d...
9500b7d440c3df7122b5ceb17dd80e784d4834acce324b100594038b80ede36e
stumpwm/stumpwm-contrib
disk.lisp
;;;; disk.lisp (in-package :disk) ;;; "disk" goes here. Hacks and glory await! Disk usage monitoring for stumpwm 's modeline ;;; Copyright 2007 . ;;; Maintainer : ;;; ;;; This module is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published ...
null
https://raw.githubusercontent.com/stumpwm/stumpwm-contrib/a7dc1c663d04e6c73a4772c8a6ad56a34381096a/modeline/disk/disk.lisp
lisp
disk.lisp "disk" goes here. Hacks and glory await! This module is free software; you can redistribute it and/or modify either version 2 , or ( at your option ) any later version. This module is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER...
(in-package :disk) Disk usage monitoring for stumpwm 's modeline Copyright 2007 . Maintainer : it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License (add-screen-mode-line-formatter #\D 'disk-modeline) (defparameter *dis...
af346e35489ddc859f147c4323969c354b7cca05ab2db37c603c217cf55783b6
fakedata-haskell/fakedata
DateTime.hs
-- | @since 0.2.0 module Faker.DateTime where import Control.Monad.IO.Class (liftIO) import Data.Text import Data.Time import Faker import Faker.Combinators -- | Fake 'UTCTime' between 17-11-1858 and the current time. Note that -- this function is not deterministic as the current time is not constant . If you want ...
null
https://raw.githubusercontent.com/fakedata-haskell/fakedata/e6fbc16cfa27b2d17aa449ea8140788196ca135b/src/Faker/DateTime.hs
haskell
| @since 0.2.0 | Fake 'UTCTime' between 17-11-1858 and the current time. Note that this function is not deterministic as the current time is not this function is not deterministic as the current time is not constant. If you want deterministic output, use 'dayBetween'. | Generates a random UTCTime in the range [fr...
module Faker.DateTime where import Control.Monad.IO.Class (liftIO) import Data.Text import Data.Time import Faker import Faker.Combinators constant . If you want deterministic output , use ' utcBetween ' . utc :: Fake UTCTime utc = do now <- liftIO getCurrentTime utcBetween (UTCTime { utctDay = (Modi...
90bb28c46b1195dc06de8e8e47918414889f1432b5878139b3a9c21cea3ec536
HeinrichApfelmus/reactive-banana
reactive-banana-tests.hs
{----------------------------------------------------------------------------- reactive-banana ------------------------------------------------------------------------------} module Main where import Test.Tasty ( defaultMain, testGroup ) import qualified Reactive.Banana.Test.Low.Graph import qualified Reactiv...
null
https://raw.githubusercontent.com/HeinrichApfelmus/reactive-banana/bc276650ebd9617c0f723120a3ac6bd7cef586d4/reactive-banana/test/reactive-banana-tests.hs
haskell
---------------------------------------------------------------------------- reactive-banana -----------------------------------------------------------------------------
module Main where import Test.Tasty ( defaultMain, testGroup ) import qualified Reactive.Banana.Test.Low.Graph import qualified Reactive.Banana.Test.Low.GraphGC import qualified Reactive.Banana.Test.Mid.Space import qualified Reactive.Banana.Test.High.Combinators import qualified Reactive.Banana.Test.High.Space ...
4b50b2bc3f487afb7ad9697440415880410648e2f1f4d7bae58fb6b762b18f95
japerk/elib
ots_SUITE.erl
-module(ots_SUITE). -compile(export_all). -include("ct.hrl"). %%%%%%%%%%%%%%%%% %% common_test %% %%%%%%%%%%%%%%%%% all() -> [float_table, uint_table, max_uint_table, foldl_sum, foreach_ets]. init_per_suite(Config) -> etest:start_apps([elib, osmos]), Dir = filename:join(?config(priv_dir, Config), "ots_test/"), ...
null
https://raw.githubusercontent.com/japerk/elib/40fc61f5503db3e823f61aada53d4f38d2405e7f/test/ots_SUITE.erl
erlang
common_test %% test cases %% NOTE: disabled due to noisy logging, but does pass
-module(ots_SUITE). -compile(export_all). -include("ct.hrl"). all() -> [float_table, uint_table, max_uint_table, foldl_sum, foreach_ets]. init_per_suite(Config) -> etest:start_apps([elib, osmos]), Dir = filename:join(?config(priv_dir, Config), "ots_test/"), [{block_size, 256}, {dir, Dir}, {table, ots_test} | Co...
400cc0a7bd182a9d7ef0ca36f21b0da8597195568ac0bed2e6c714ba104212f0
melange-re/melange
lam_dce.mli
Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P. * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later...
null
https://raw.githubusercontent.com/melange-re/melange/246e6df78fe3b6cc124cb48e5a37fdffd99379ed/jscomp/core/lam_dce.mli
ocaml
* Dead code eliminatiion on the lambda layer
Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P. * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later...
14e7d62f378db010c3355093c3a3b092f0a4928a1e58a5d360cb5b92e2eba5b0
bobzhang/fan
Famlc.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/todoml/Famlc.ml
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : main.ml 12511 2012 - 05 - 30 ...
ec0f88dc12d9e001aafa112ba636419528752a34bc8e4bcaafde74761316c1ae
ucsd-progsys/dsolve
insertsort.ml
DSOLVE -dontminemlq let swap a i j = let tmpj = Array.get a j in let tmpi = Array.get a i in Array.set a i tmpj; Array.set a j tmpi let insertSort arr start n = let limit = start + n in let start_plus = start + 1 in let rec outer i = let i_plus = i + 1 in if limit < i_plus then () else ...
null
https://raw.githubusercontent.com/ucsd-progsys/dsolve/bfbbb8ed9bbf352d74561e9f9127ab07b7882c0c/postests/insertsort.ml
ocaml
DSOLVE -dontminemlq let swap a i j = let tmpj = Array.get a j in let tmpi = Array.get a i in Array.set a i tmpj; Array.set a j tmpi let insertSort arr start n = let limit = start + n in let start_plus = start + 1 in let rec outer i = let i_plus = i + 1 in if limit < i_plus then () else ...
7e66901b104b33f6219855cd7c9632c72d759aeecae095ef7aa7a0bd764b9dd3
s-expressionists/Concrete-Syntax-Tree
reconstruct.lisp
(cl:in-package #:concrete-syntax-tree-test) (defun test-reconstruct () (let ((circular (cst:cons (make-instance 'cst:atom-cst :raw nil) (make-instance 'cst:atom-cst :raw nil)))) (setf (slot-value circular 'cst::%first) circular) (cst:reconstruct nil '#1=(#1#) circular))) (defun t...
null
https://raw.githubusercontent.com/s-expressionists/Concrete-Syntax-Tree/bd70148a8a075ea2b5305b67810cad5fa02a0976/Test/reconstruct.lisp
lisp
(cl:in-package #:concrete-syntax-tree-test) (defun test-reconstruct () (let ((circular (cst:cons (make-instance 'cst:atom-cst :raw nil) (make-instance 'cst:atom-cst :raw nil)))) (setf (slot-value circular 'cst::%first) circular) (cst:reconstruct nil '#1=(#1#) circular))) (defun t...
e67271a2a129940a1e1745f44126b48d12eb419a1422c0b45973e30948382dc9
robertmeta/cowboy-examples
hello_world_ssl_handler.erl
-module(hello_world_ssl_handler). -export([init/3, handle/2, terminate/2]). init({ssl, http}, Req, _Opts) -> {ok, Req, undefined_state}. handle(Req, State) -> {ok, Reply} = cowboy_http_req:reply(200, [], <<"Hello World, SSL!">>, Req), {ok, Reply, State}. terminate(_Req, _State) -> ok.
null
https://raw.githubusercontent.com/robertmeta/cowboy-examples/d03c289c9fb0d750eca11e3f1671e74d1841bd09/apps/hello_world_ssl/src/hello_world_ssl_handler.erl
erlang
-module(hello_world_ssl_handler). -export([init/3, handle/2, terminate/2]). init({ssl, http}, Req, _Opts) -> {ok, Req, undefined_state}. handle(Req, State) -> {ok, Reply} = cowboy_http_req:reply(200, [], <<"Hello World, SSL!">>, Req), {ok, Reply, State}. terminate(_Req, _State) -> ok.
4e7909934f2ade3e4ed905b5c367303f4022afa2ee3db0c897b2e6683ee39c59
Flexiana/notion-to-md
core.clj
(ns notion-to-md.core (:gen-class) (:require [clojure.data.xml :as xml] [clojure.java.io :as io] [clojure.string :as str] [environ.core :refer [env]] [notion-to-md.http-client :as http-client]) (:import (java.io File) (javax.imageio ImageIO))) (defn- svg? [file-name] (...
null
https://raw.githubusercontent.com/Flexiana/notion-to-md/045cf65f7b90857eab10d7a86aafb1929e2f8ff7/src/notion_to_md/core.clj
clojure
must end with / optional prefix for recursiveness; current file-name
(ns notion-to-md.core (:gen-class) (:require [clojure.data.xml :as xml] [clojure.java.io :as io] [clojure.string :as str] [environ.core :refer [env]] [notion-to-md.http-client :as http-client]) (:import (java.io File) (javax.imageio ImageIO))) (defn- svg? [file-name] (...
facd7cd535680c1e5398b58f6afd653502e4eee47ea60a9283effa4a7478b086
mfoemmel/erlang-otp
wxPostScriptDC.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/wx/src/gen/wxPostScriptDC.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 2008 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(wxPostScriptDC). -include("wxe.hr...
5c2188e01ed3266c1b17177933a579b1cdbf957af479f748593dba4aac0eada0
stedolan/mlsub
intmap_test.ml
module M = Intmap.Make (struct type t = int let get_id n = n end) open M let verify (x : M.t) = Intmap.verify (Obj.magic x) (* an evil random number generator, biased towards edge cases *) let randint () = match Random.int 50 with | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 as n -> 1 lsl (n * 4) | 9 -> 1 lsl 63 | 10...
null
https://raw.githubusercontent.com/stedolan/mlsub/b425c8da91f45ea59780756950871b80a18ddfc2/intmap_test.ml
ocaml
an evil random number generator, biased towards edge cases construct a set by repeated insertion commutative associative idempotent let _ = benchmark_cmp ()
module M = Intmap.Make (struct type t = int let get_id n = n end) open M let verify (x : M.t) = Intmap.verify (Obj.magic x) let randint () = match Random.int 50 with | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 as n -> 1 lsl (n * 4) | 9 -> 1 lsl 63 | 10 -> 0 | 11 -> -1 | 12 -> 1 | 13 -> max_int | 14 -> min_in...
47f4810bd05d957fd47fb3ee3249e0d14673670622b463407674b6a3da7a88f5
hyperfiddle/electric
source_fn.clj
(ns dustin.y2020.source-fn (:require [hyperfiddle.rcf :refer [tests]]) (:import (clojure.lang RT) (java.io InputStreamReader LineNumberReader PushbackReader))) (defn source-fn "Returns a string of the source code for the given symbol, if it can find it. This requires that the symbol resolve to a Va...
null
https://raw.githubusercontent.com/hyperfiddle/electric/1c6c3891cbf13123fef8d33e6555d300f0dac134/scratch/dustin/y2020/source_fn.clj
clojure
(ns dustin.y2020.source-fn (:require [hyperfiddle.rcf :refer [tests]]) (:import (clojure.lang RT) (java.io InputStreamReader LineNumberReader PushbackReader))) (defn source-fn "Returns a string of the source code for the given symbol, if it can find it. This requires that the symbol resolve to a Va...
3d6c0b3d7c169e2e4caed46abcca172b2e6b2c4b5f8a3b2ee8ad8b75433cb426
coq/coq
eqschemes.mli
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/34bdbcc55cffac5f8c58575cebed1a1121996ff1/tactics/eqschemes.mli
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
00d7d7489ca69d71377ad88936f0936c9b4c6792f92fc62f6c3409d77231c682
OCamlPro/socaml-analyzer
arrays.ml
open Common_types open Data let singleton l size akind = let open Lambda in { bottom with arrays = { a_elems = List.fold_left (fun e i -> Ids.add i e) Ids.empty l; a_size = size; a_gen = akind = Pgenarray; a_float = akind = Pfloatarray; a_addr = akind = Paddrar...
null
https://raw.githubusercontent.com/OCamlPro/socaml-analyzer/f39121e1d05a9e5bb6f005497eaaa5a67f256d4c/src/data/arrays.ml
ocaml
open Common_types open Data let singleton l size akind = let open Lambda in { bottom with arrays = { a_elems = List.fold_left (fun e i -> Ids.add i e) Ids.empty l; a_size = size; a_gen = akind = Pgenarray; a_float = akind = Pfloatarray; a_addr = akind = Paddrar...
9692b9fe7b26a97d636de00e22ce8211dadd5e6df416b232d0dbad24e25d43f1
imrehg/ypsilon
types.scm
#!nobacktrace Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (library (ypsilon pango types) (export PangoColor PangoMatrix PangoRectangle define-c-struct-methods make-bytevector...
null
https://raw.githubusercontent.com/imrehg/ypsilon/e57a06ef5c66c1a88905b2be2fa791fa29848514/sitelib/ypsilon/pango/types.scm
scheme
typedef struct { guint16 red; guint16 green; guint16 blue; typedef struct { double xx; double xy; double yx; double yy; } PangoMatrix; typedef struct { int x; int y; int width; int height; [end]
#!nobacktrace Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (library (ypsilon pango types) (export PangoColor PangoMatrix PangoRectangle define-c-struct-methods make-bytevector...
2e8cb2e387ae396f723ad9083b4a263b9a6c9ec88b6eb07555a473df4fdf558e
ont-app/igraph-vocabulary
build.clj
(ns build (:refer-clojure :exclude [test]) (:require [clojure.tools.build.api :as b] ; for b/git-count-revs [org.corfield.build :as bb])) (def lib 'ont-app/igraph-vocabulary) (def version "0.2.0") (defn test "Run the tests." [opts] (bb/run-tests opts)) (defn ci "Run the CI pipeline of tests (and ...
null
https://raw.githubusercontent.com/ont-app/igraph-vocabulary/19089cfe0d850323d684cae31cd119417bdf7d67/build.clj
clojure
for b/git-count-revs TODO: check opts
(ns build (:refer-clojure :exclude [test]) [org.corfield.build :as bb])) (def lib 'ont-app/igraph-vocabulary) (def version "0.2.0") (defn test "Run the tests." [opts] (bb/run-tests opts)) (defn ci "Run the CI pipeline of tests (and build the JAR)." [opts] (-> opts (assoc :lib lib :version v...
b3d7075bd312eca3356b16241819e1edbeeb2d4cf0925e20351575997d3cacb4
boxer-project/boxer-sunrise
click-handlers.lisp
;;;; Boxer Copyright 1985 - 2022 Andrea A. diSessa and the Estate of Edward H. Lay ;;;; Portions of this code may be copyright 1982 - 1985 Massachusetts Institute of Technology . Those portions may be used for any purpose , including commercial ones , providing that notice of MIT copyright is ...
null
https://raw.githubusercontent.com/boxer-project/boxer-sunrise/1161b2330de4c7a4c33c7f8b6119693b5cc6b529/src/boxwin/lw-capi/click-handlers.lisp
lisp
Boxer Licensed under the 3-Clause BSD license. You may not use this file except in compliance with this license. -3-Clause +-Data--+ This file is part of the | BOXER | system +-------+ This ...
Copyright 1985 - 2022 Andrea A. diSessa and the Estate of Edward H. Lay Portions of this code may be copyright 1982 - 1985 Massachusetts Institute of Technology . Those portions may be used for any purpose , including commercial ones , providing that notice of MIT copyright is retained . Boxer W...
b5cbcc88813af0887613731ab16bc7f8f419c8e3740d2245f0bfd7e911202503
altsun/My-Lisps
(MATT) [MatchAttribs] Sao chep tinh chat cua thuoc tinh cua Block thuoc tinh.lsp
-------------------== { Match Attribs } = = -------------------- ; ; ;; ;; ;; Prompts for selection of source attribute, then proceeds ;; ;; to match the listed properties for subsequently picked ;; ;; attributes. ...
null
https://raw.githubusercontent.com/altsun/My-Lisps/85476bb09b79ef5e966402cc5158978d1cebd7eb/Block/Match%20Properties/(MATT)%20%5BMatchAttribs%5D%20Sao%20chep%20tinh%20chat%20cua%20thuoc%20tinh%20cua%20Block%20thuoc%20tinh.lsp
lisp
; ;; Prompts for selection of source attribute, then proceeds ;; to match the listed properties for subsequently picked ;; attributes. ;; ------------------------------------------------------------;; ;...
(defun c:MATT () (MatchAttribs) ) (defun MatchAttribs ( / properties source ) (vl-load-com) � Lee Mac 2010 (setq properties '( Backward Height Layer Linetype LinetypeScale Lineweight ObliqueAngle Rotation ScaleFactor StyleName Thickness Upside...
e33bdc446266b39df6d48ad0e62e8682215c1eeeae3d6ababda57665ef1147a5
GaloisInc/halfs
Inode.hs
# LANGUAGE GeneralizedNewtypeDeriving , ScopedTypeVariables , BangPatterns # module Halfs.Inode ( InodeRef(..) , blockAddrToInodeRef , buildEmptyInodeEnc , decLinkCount , fileStat , incLinkCount , inodeKey , inodeRefToBlockAddr , isNilIR , nilIR , readStream , writeStream -- * for internal...
null
https://raw.githubusercontent.com/GaloisInc/halfs/2eb16fb3744e6221ee706b6bd290681a08c18048/Halfs/Inode.hs
haskell
* for internal use only! for use by fsck * for testing: ought not be used by actual clients of this module! ------------------------------------------------------------------------------ be using this function rather than inodeRefToBlockAddr in case the underlying inode representation changes. | Convert an inode ...
# LANGUAGE GeneralizedNewtypeDeriving , ScopedTypeVariables , BangPatterns # module Halfs.Inode ( InodeRef(..) , blockAddrToInodeRef , buildEmptyInodeEnc , decLinkCount , fileStat , incLinkCount , inodeKey , inodeRefToBlockAddr , isNilIR , nilIR , readStream , writeStream , atomicModifyIno...
d8fd0534d4e73331d44b13803b326293ec0b8b4c2e2f5bb0bdf602cdb3a1e761
craigl64/clim-ccl
cloe-streams.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Package : CLOE - CLIM ; Base : 10 ; Lowercase : Yes -*- (in-package :cloe-clim) "Copyright (c) 1990, 1991, 1992 Symbolics, Inc. All rights reserved." These should really be defined in CL - STREAM , but doing it causes CLOE to ;;; go south during the build, my ...
null
https://raw.githubusercontent.com/craigl64/clim-ccl/301efbd770745b429f2b00b4e8ca6624de9d9ea9/cloe/cloe-streams.lisp
lisp
Syntax : ANSI - Common - Lisp ; Package : CLOE - CLIM ; Base : 10 ; Lowercase : Yes -*- go south during the build, my guess is the regular streams get trashed. So anyway we now do it here.
(in-package :cloe-clim) "Copyright (c) 1990, 1991, 1992 Symbolics, Inc. All rights reserved." These should really be defined in CL - STREAM , but doing it causes CLOE to (defmethod stream-read-byte ((stream t)) (read-byte stream nil :eof)) (defmethod stream-read-char ((stream t)) (read-char stream nil :...
e7579617075da5dde5d557cd5731fed939db7a4cc0fc1bede6a734e959f885a0
bradparker/servant-beam-realworld-example-app
View.hs
module RealWorld.Conduit.Users.Web.Profiles.View ( View , handler , loadProfile ) where import Database.Beam (primaryKey) import RealWorld.Conduit.Environment (Environment(..)) import qualified RealWorld.Conduit.Users.Database as Database import RealWorld.Conduit.Users.Database.User (UserId) import RealWorld.C...
null
https://raw.githubusercontent.com/bradparker/servant-beam-realworld-example-app/d4a0d79d9dbc7e5b8987b367ac32f99ac3cc20e7/src/RealWorld/Conduit/Users/Web/Profiles/View.hs
haskell
module RealWorld.Conduit.Users.Web.Profiles.View ( View , handler , loadProfile ) where import Database.Beam (primaryKey) import RealWorld.Conduit.Environment (Environment(..)) import qualified RealWorld.Conduit.Users.Database as Database import RealWorld.Conduit.Users.Database.User (UserId) import RealWorld.C...
f4a3d1374b2e620d9cd8a9e0ad813d693d21096049c024c29b2a6dca834150ff
pierric/fei-nn
Vec.hs
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # module MXNet.NN.DataIter.Vec where import RIO import RIO.List (headMaybe) import qualified RIO.Vector.Boxed as V import qualified RIO.Vector.Boxed.Partial as V (head) import MXNet.Base ...
null
https://raw.githubusercontent.com/pierric/fei-nn/22caa18b4347f7431b1fab1d1addc45acf9e0181/src/MXNet/NN/DataIter/Vec.hs
haskell
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # module MXNet.NN.DataIter.Vec where import RIO import RIO.List (headMaybe) import qualified RIO.Vector.Boxed as V import qualified RIO.Vector.Boxed.Partial as V (head) import MXNet.Base ...
c475272b511928deaea4606c60ca9d637bf3db998946692e03c69b4d7183c5b1
mangpo/greenthumb
simulator-racket.rkt
#lang racket (require "../simulator-racket.rkt" "../ops-racket.rkt" "../inst.rkt" "$-machine.rkt") (provide $-simulator-racket%) (define $-simulator-racket% (class simulator-racket% (super-new) (init-field machine) (override interpret performance-cost get-constructor) (define (get-constructor) $-si...
null
https://raw.githubusercontent.com/mangpo/greenthumb/7a8626205879af8c788f9927eeff643f4ddc5cde/template/simulator-racket.rkt
racket
Helper functions ;;;;;;;;;;;;;;;;;;;;;;;;;;; Always use this macro when interpreting an operator. Binary operation. signed shift right unsigned shift right Required methods ;;;;;;;;;;;;;;;;;;;;;;;;;;; Interpret a given program from a given state. 'program' is a vector of 'inst' struct. 'ref' is optional. When ...
#lang racket (require "../simulator-racket.rkt" "../ops-racket.rkt" "../inst.rkt" "$-machine.rkt") (provide $-simulator-racket%) (define $-simulator-racket% (class simulator-racket% (super-new) (init-field machine) (override interpret performance-cost get-constructor) (define (get-constructor) $-si...
f0c9120090ca5b5701b6bb8b6381f04eb936c9a1537b9b9e03f0aae0a40410d6
jimcrayne/jhc
Dynamic.hs
# OPTIONS_JHC -fffi # module Data.Dynamic(Dynamic,toDyn,fromDyn,fromDynamic,dynApply,dynApp) where import Data.Typeable data Obj data Dynamic = Dynamic TypeRep Obj instance Show Dynamic where showsPrec _ x s = "<Dynamic>" ++ s -- | Converts an arbitrary value into an object of type 'Dynamic'. -- The type of ...
null
https://raw.githubusercontent.com/jimcrayne/jhc/1ff035af3d697f9175f8761c8d08edbffde03b4e/lib/haskell-extras/Data/Dynamic.hs
haskell
| Converts an arbitrary value into an object of type 'Dynamic'. ensures that only monomorphically-typed objects may be converted to 'Dynamic'. To convert a polymorphic object into 'Dynamic', give it a monomorphic type signature. For example: > toDyn (id :: Int -> Int) the correct type. See also 'fromDyna...
# OPTIONS_JHC -fffi # module Data.Dynamic(Dynamic,toDyn,fromDyn,fromDynamic,dynApply,dynApp) where import Data.Typeable data Obj data Dynamic = Dynamic TypeRep Obj instance Show Dynamic where showsPrec _ x s = "<Dynamic>" ++ s The type of the object must be an instance of ' ' , which toDyn :: Typeable a => ...
03c570843f39ef61a3e0757315af1a48563a6b79006b45d6fc5cd5461a6b8b9d
modular-macros/ocaml-macros
pr6651_ok.ml
module type S = sig module type T module X : T end module F (X : S) = X.X module M = struct module type T = sig type t end module X = struct type t = int end end type t = F(M).t
null
https://raw.githubusercontent.com/modular-macros/ocaml-macros/05372c7248b5a7b1aa507b3c581f710380f17fcd/testsuite/tests/typing-modules-bugs/pr6651_ok.ml
ocaml
module type S = sig module type T module X : T end module F (X : S) = X.X module M = struct module type T = sig type t end module X = struct type t = int end end type t = F(M).t
3036cbe409566cb11855b9167de6d186b3eed6384f7a5733481785806f2466eb
haskell-repa/repa
Append.hs
module Data.Array.Repa.Flow.Seq.Operator.Append (appends_bb) where import Data.Array.Repa.Flow.Seq.Base import Data.Array.Repa.Flow.Seq.Source import qualified Data.Array.Repa.Flow.Seq.Report as Report import GHC.Exts -- | Segmented append. appends_bb :: (Int# -> Int#) -- ^ Get segment lengths for ...
null
https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/icebox/abandoned/repa-flow/Data/Array/Repa/Flow/Seq/Operator/Append.hs
haskell
| Segmented append. ^ Get segment lengths for 'xs' array. ^ Get segment indices for 'xs' array. ^ Get segment lengths for 'ys' array. ^ Get segment indices for 'ys' array. ^ Get data from the 'ys' array. ^ How many result elements to produce in total. ^ Starting segment id. ^ Starting element index within the ...
module Data.Array.Repa.Flow.Seq.Operator.Append (appends_bb) where import Data.Array.Repa.Flow.Seq.Base import Data.Array.Repa.Flow.Seq.Source import qualified Data.Array.Repa.Flow.Seq.Report as Report import GHC.Exts appends_bb ^ Get data from the ' xs ' array . -> Source FD a appends_bb ...
093a55befdd3e4ee2164cdc8bb96fe2ea4197d0c82536d2652738e050521acfe
anton-k/reader-pattern-servant-app
ListTag.hs
-- | Get by tag handler module Server.ListTag ( Env(..) , Db(..) , handle ) where import DI.Log import Types data Env = Env { db :: Db , log :: Log } data Db = Db { listTag :: Tag -> IO [Message] } ----------------------------------------- -- Handler handle :: Tag -> App Env [Message] handle tag...
null
https://raw.githubusercontent.com/anton-k/reader-pattern-servant-app/7d15c18aae31a5834ced73afaf62ba8080882c99/src/Server/ListTag.hs
haskell
| Get by tag handler --------------------------------------- Handler
module Server.ListTag ( Env(..) , Db(..) , handle ) where import DI.Log import Types data Env = Env { db :: Db , log :: Log } data Db = Db { listTag :: Tag -> IO [Message] } handle :: Tag -> App Env [Message] handle tag = do Db{..} <- asks (.db) Log{..} <- askLog liftIO $ do logInfo ...
56f52a5199cf69b6320f7ae46bb09c03872292c328fd7408ae3a75dc35fd7a14
cmsc430/www
parse.rkt
#lang racket (provide parse) (require "ast.rkt") ;; S-Expr -> Expr (define (parse s) (match s [(? exact-integer? s) (Int s)] [(? boolean? s) (Bool s)] [(? char? s) (Char s)] ['eof (Eof)] [(list (? op0? o)) (Prim0 o)] [(list (? op1? o) e) (Prim1 o (parse e))] [(list 'b...
null
https://raw.githubusercontent.com/cmsc430/www/99cece16a9b2cd1c011eab07d76d30d8b963c458/langs/extort/parse.rkt
racket
S-Expr -> Expr Any -> Boolean Any -> Boolean
#lang racket (provide parse) (require "ast.rkt") (define (parse s) (match s [(? exact-integer? s) (Int s)] [(? boolean? s) (Bool s)] [(? char? s) (Char s)] ['eof (Eof)] [(list (? op0? o)) (Prim0 o)] [(list (? op1? o) e) (Prim1 o (parse e))] [(list 'begin e1 e2) (Begi...
3c54dcc47551efd466c7bc51aa50dea769f6590c397718239ce60ff37e578acb
processone/ejabberd
ejabberd_update.erl
%%%------------------------------------------------------------------- File : Author : < > %%% Purpose : ejabberd code updater Created : 27 Jan 2006 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2023 ProcessOne %%% %%% This program is free software; you can redistribute it and/or modify it ...
null
https://raw.githubusercontent.com/processone/ejabberd/c103182bc7e5b8a8ab123ce02d1959a54e939480/src/ejabberd_update.erl
erlang
------------------------------------------------------------------- Purpose : ejabberd code updater 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 : Author : < > Created : 27 Jan 2006 by < > ejabberd , Copyright ( C ) 2002 - 2023 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 GNU General Public Li...
e17dcfbeaee2db24f6da1a9367e3cebf6ee6e3d3e0fdafccbb968c21c48d3749
gergoerdi/clash-compucolor2
screen.hs
# LANGUAGE OverloadedStrings , NumericUnderscores # # LANGUAGE PartialTypeSignatures # import Clash.Prelude hiding ((!), lift) import RetroClash.Sim.SDL import Hardware.Compucolor2.Sim import Data.Array.IO import Data.Array ((!)) import qualified Data.ByteString as BS import Control.Monad import Control.Monad.Trans i...
null
https://raw.githubusercontent.com/gergoerdi/clash-compucolor2/e5d6835918d25d7fcf9f0a9d7d381a1220331452/sim/screen.hs
haskell
# LANGUAGE OverloadedStrings , NumericUnderscores # # LANGUAGE PartialTypeSignatures # import Clash.Prelude hiding ((!), lift) import RetroClash.Sim.SDL import Hardware.Compucolor2.Sim import Data.Array.IO import Data.Array ((!)) import qualified Data.ByteString as BS import Control.Monad import Control.Monad.Trans i...
1c2ef6ad707e19d71c9955dfafd2d1a7a593ab1b21fff951fc639fa319c9f577
relet/scad.hs
Scad.hs
module Scad where import qualified Csg import Text.Printf (printf, PrintfType, PrintfArg) data Node = Union [Node] | Difference [Node] | Intersection [Node] | Scale (Double, Double, Double) Node | Rotate (Double, Double, Double) Node | Translate (Double, Double, Double) Node | Mirror (Double, Doubl...
null
https://raw.githubusercontent.com/relet/scad.hs/d4a07ac7c4bd870a2c8a4ac93eb8ce5aef23d451/Scad.hs
haskell
primitives 2D a cube generator: cube [w,h,d] a cylinder generator a cylinder generator with different radii a sphere generator a parametric polyhedron defined by its outline generator function over [0..1.0]^2 in dt,du steps a polygon defined by a bezier curve of arbitrary order and dimension (array size = #poi...
module Scad where import qualified Csg import Text.Printf (printf, PrintfType, PrintfArg) data Node = Union [Node] | Difference [Node] | Intersection [Node] | Scale (Double, Double, Double) Node | Rotate (Double, Double, Double) Node | Translate (Double, Double, Double) Node | Mirror (Double, Doubl...
46c5acfc4768dd8d9c1abef607d7853585f7a51213e43202dfe63c8064b91d4e
jwvg0425/HaskellStudy
solution.hs
# 1 : pairString pairString :: [(Char, Char)] -> (String, String) pairString = foldr (\(x,y) (accX,accY) -> (x:accX,y:accY)) ("","")
null
https://raw.githubusercontent.com/jwvg0425/HaskellStudy/8e8b90d0e703e54ca06c296b6989940e13dc26ac/practice/5/solution.hs
haskell
# 1 : pairString pairString :: [(Char, Char)] -> (String, String) pairString = foldr (\(x,y) (accX,accY) -> (x:accX,y:accY)) ("","")
48178dd169d121447ba5d06123b7e0e0b0b9ec71dd9b8cb97e7d581223c778a4
jrm-code-project/LISP-Machine
dispatch-table-lengths.lisp
-*- Mode : LISP ; Package : LAMBDA ; Base:8 ; : ZL -*- (defprop D-QMRCL-QLENTR t dispatch-field-width) (defprop ALL-ONES-IN-D-MEM t dispatch-field-width) (defprop LAST-DMEM-LOCATION t dispatch-field-width) (defprop D-QMRCL 5 dispatch-field-width) (defprop CAR-NUM-DISPATCH 2 dispatch-field-width) (defprop D-QLENTR...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/pace/hacks/dispatch-table-lengths.lisp
lisp
Package : LAMBDA ; Base:8 ; : ZL -*-
(defprop D-QMRCL-QLENTR t dispatch-field-width) (defprop ALL-ONES-IN-D-MEM t dispatch-field-width) (defprop LAST-DMEM-LOCATION t dispatch-field-width) (defprop D-QMRCL 5 dispatch-field-width) (defprop CAR-NUM-DISPATCH 2 dispatch-field-width) (defprop D-QLENTR-DISPATCH 5 dispatch-field-width) (defprop D-BIGNUM-FIXNUM...
c57bf35c09d66ee18e4b70dd343491d63184c7771e47846bdddcb2a9e8fa4cc1
ocamllabs/vscode-ocaml-platform
path.mli
(** Representation of path *) type t val equal : t -> t -> bool (** [iequal p0 p1] is [true] if and only if [p1] and [p2] are equal but case insensitive to any ASCII-uppercase/-lowercase differences. *) val iequal : t -> t -> bool val of_string : string -> t val to_string : t -> string val delimiter : char v...
null
https://raw.githubusercontent.com/ocamllabs/vscode-ocaml-platform/4d01b56e513dd5489c2291a59e25e814d1dec1c3/src/path.mli
ocaml
* Representation of path * [iequal p0 p1] is [true] if and only if [p1] and [p2] are equal but case insensitive to any ASCII-uppercase/-lowercase differences.
type t val equal : t -> t -> bool val iequal : t -> t -> bool val of_string : string -> t val to_string : t -> string val delimiter : char val sep : char val is_absolute : t -> bool val compare : t -> t -> int val dirname : t -> string val extname : t -> string val basename : t -> string val join : t -> t ...
2d3ffc3cf1969793bedd8b89ef0a2d6aee17b758331472e0ffe7642f0c7d739c
fp-works/2019-winter-Haskell-school
Exercises.hs
# LANGUAGE FlexibleInstances # {-# LANGUAGE TypeSynonymInstances #-} module Exercises where import Control.Applicative (liftA2) import qualified Data.Map as M import qualified ExprT as E import Parser (parseExp) import qualified StackVM as S --...
null
https://raw.githubusercontent.com/fp-works/2019-winter-Haskell-school/823b67f019b9e7bc0d3be36711c0cc7da4eba7d2/cis194/week5/zehua/src/Exercises.hs
haskell
# LANGUAGE TypeSynonymInstances # ex1 ex2 ex3 ex4 Bool ex5 ex6 map (+) over Maybe map (liftA2 (+)) over reader applicative add f1 f2 = liftA2 (+) <$> f1 <*> f2 add f1 f2 = liftA2 (liftA2 (+)) f1 f2
# LANGUAGE FlexibleInstances # module Exercises where import Control.Applicative (liftA2) import qualified Data.Map as M import qualified ExprT as E import Parser (parseExp) import qualified StackVM as S eval :: E.ExprT -> Integer eval (E.Lit x...
74641527c2b958e1e75cbe6242341316a8cad1a238dad62b00e73c3f2ac7a591
herd/herdtools7
hardwareExtra.mli
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/de608e9a67a4c91e442bb0f807c6641a4283b4be/litmus/hardwareExtra.mli
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2022 - present Institut National de Recherche en Informatique et This software is governed by the CeCILL - B license under French law and modify and/ or redistribu...
3439fbc73804f51da9bd4127fd31a429951bb54de66732c8166ece31d1ffeeaf
wireapp/wire-server
Error.hs
-- 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 published by the Free Software Foundation , either version 3 of the License...
null
https://raw.githubusercontent.com/wireapp/wire-server/72a03a776d4a8607b0a9c3e622003467be914894/libs/wire-api/src/Wire/API/Error.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...
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 Affero General Public License along module Wire.API.Error DynErro...
866fb5f2d0256ae255c8e068c7e58f10291fdef2ffdacf73e3ec544894538b6e
dawidovsky/IIUWr
paluszak-dawid.rkt
#lang racket (define (const? t) (number? t)) (define (binop? t) (and (list? t) (= (length t) 3) (member (car t) '(+ - * /)))) (define (binop-op e) (car e)) (define (binop-left e) (cadr e)) (define (binop-right e) (caddr e)) (define (binop-cons op l r) (list op l r)) (define (op->proc op...
null
https://raw.githubusercontent.com/dawidovsky/IIUWr/73f0f65fb141f82a05dac2573f39f6fa48a81409/MP/Pracownia6/paluszak-dawid.rkt
racket
#lang racket (define (const? t) (number? t)) (define (binop? t) (and (list? t) (= (length t) 3) (member (car t) '(+ - * /)))) (define (binop-op e) (car e)) (define (binop-left e) (cadr e)) (define (binop-right e) (caddr e)) (define (binop-cons op l r) (list op l r)) (define (op->proc op...
2166ea53d3edb26aa25a629e4b3180c9497ec311fdd0f100eff2a99fc5721ca8
borodust/alien-works-delivery
bundler.lisp
(cl:in-package :cl-user) ;; ;; INPUT: ;; *bundler-output-filename* ;; (flet ((%system-path (relative) (merge-pathnames (uiop:relativize-pathname-directory relative) *target-bundle-directory*))) (cp *delivery-bundle-directory* (merge-pathnames "AppDir/" *bundle-directory*)) (let...
null
https://raw.githubusercontent.com/borodust/alien-works-delivery/604bae3c93be96413aec150101981142ae0bd884/appimage/scripts/bundler.lisp
lisp
INPUT: *bundler-output-filename*
(cl:in-package :cl-user) (flet ((%system-path (relative) (merge-pathnames (uiop:relativize-pathname-directory relative) *target-bundle-directory*))) (cp *delivery-bundle-directory* (merge-pathnames "AppDir/" *bundle-directory*)) (let ((app-dir (merge-pathnames "AppDir/" *delivery...
9e9da99bad35d282864cf5f23fb514a8028ed2d2b5581948c4c49e5bd91a5cbc
ocamllabs/ocaml-modular-implicits
t320-gc-1.ml
open Lib;; let rec f n = if n <= 0 then [] else n :: f (n-1) in let l = f 300 in Gc.minor (); if List.fold_left (+) 0 l <> 301 * 150 then raise Not_found ;; * 0 CONSTINT 42 2 PUSHACC0 3 MAKEBLOCK1 0 5 POP 1 7 9 BRANCH 746 11 RESTART 12 GRAB 1 ...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/testsuite/tests/tool-ocaml/t320-gc-1.ml
ocaml
open Lib;; let rec f n = if n <= 0 then [] else n :: f (n-1) in let l = f 300 in Gc.minor (); if List.fold_left (+) 0 l <> 301 * 150 then raise Not_found ;; * 0 CONSTINT 42 2 PUSHACC0 3 MAKEBLOCK1 0 5 POP 1 7 9 BRANCH 746 11 RESTART 12 GRAB 1 ...
e82ea56981f5600f6f243a6a861de10428d9ab4a87b4fb2039d50f44aaacf4d9
dinosaure/carton
binary_search.ml
let identity x = x let () = Crowbar.add_test ~name:"binary search" Crowbar.[ list (bytes_fixed 20); list (bytes_fixed 20) ] @@ fun entries exists -> let entries = List.sort_uniq String.compare entries in let entries = Array.of_list entries in let length = 8 + (4 * 256) + (Array.length entries * 20) in le...
null
https://raw.githubusercontent.com/dinosaure/carton/8cb8b3685fab477594b2d83c70b2fc965d1d59b9/fuzz/binary_search.ml
ocaml
let identity x = x let () = Crowbar.add_test ~name:"binary search" Crowbar.[ list (bytes_fixed 20); list (bytes_fixed 20) ] @@ fun entries exists -> let entries = List.sort_uniq String.compare entries in let entries = Array.of_list entries in let length = 8 + (4 * 256) + (Array.length entries * 20) in le...
4206dbcc0596922ded699d0816c4407f1d4fd922af47797eb128979bd77942c2
lsevero/clj-xlsxio
basic_read_low_level.clj
(ns basic-read-low-level (:require [clj-xlsxio.low-level-read :as read] [clj-xlsxio.read :refer [skip-empty-rows]])) (defn basic-read-low-level [] (let [xlsx (read/open "examples/test.xlsx") sheet (read/sheet-open xlsx nil skip-empty-rows)] (println "Low level reading:") (read/sheet-n...
null
https://raw.githubusercontent.com/lsevero/clj-xlsxio/5609b04258db74ea5ef673fb9fdca64400fc3495/examples/basic_read_low_level.clj
clojure
(ns basic-read-low-level (:require [clj-xlsxio.low-level-read :as read] [clj-xlsxio.read :refer [skip-empty-rows]])) (defn basic-read-low-level [] (let [xlsx (read/open "examples/test.xlsx") sheet (read/sheet-open xlsx nil skip-empty-rows)] (println "Low level reading:") (read/sheet-n...
b3763aa5202a57c8bda16d01eb11de23f69182f235fbacaac5cf352de0273fa5
JacquesCarette/Drasil
Requirements.hs
# LANGUAGE PostfixOperators # module Drasil.PDController.Requirements where import Data.Drasil.Concepts.Documentation (funcReqDom, nonFuncReqDom, datumConstraint) import Drasil.DocLang.SRS (datCon) import Drasil.PDController.Concepts import Drasil.PDController.IModel import Language.Drasil funcReqs :: [ConceptInst...
null
https://raw.githubusercontent.com/JacquesCarette/Drasil/f33feefc2325db9776895b3f27f787239f1e9393/code/drasil-example/pdcontroller/lib/Drasil/PDController/Requirements.hs
haskell
---------------------------------------------------------------------------
# LANGUAGE PostfixOperators # module Drasil.PDController.Requirements where import Data.Drasil.Concepts.Documentation (funcReqDom, nonFuncReqDom, datumConstraint) import Drasil.DocLang.SRS (datCon) import Drasil.PDController.Concepts import Drasil.PDController.IModel import Language.Drasil funcReqs :: [ConceptInst...
fe645994406bd331cec51795d32340ce5fc50460c32ab729c5f9185645a0a035
gedge-platform/gedge-platform
jose_jwa_pkcs5.erl
-*- mode : erlang ; tab - width : 4 ; indent - tabs - mode : 1 ; st - rulers : [ 70 ] -*- %% vim: ts=4 sw=4 ft=erlang noet %%%------------------------------------------------------------------- @author < > 2014 - 2015 , @doc PKCS # 5 : Password - Based Cryptography Specification Version 2.0 See RFC 2898...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/jose/src/jwa/jose_jwa_pkcs5.erl
erlang
vim: ts=4 sw=4 ft=erlang noet ------------------------------------------------------------------- @end ------------------------------------------------------------------- API ==================================================================== API functions ==========================================================...
-*- mode : erlang ; tab - width : 4 ; indent - tabs - mode : 1 ; st - rulers : [ 70 ] -*- @author < > 2014 - 2015 , @doc PKCS # 5 : Password - Based Cryptography Specification Version 2.0 See RFC 2898 : Created : 27 Jul 2015 by < > -module(jose_jwa_pkcs5). -export([pbkdf1/3]). -export([pbkdf1/4...
63af41c73dc6f666bb5db51688945ddf26c1ba90821b55da1fd01dbd5c4df93d
nervous-systems/kvlt
util.cljc
(ns ^:no-doc kvlt.util (:require [clojure.string :as str] #? (:clj [clojure.core.async.impl.protocols :as p] :cljs [cljs.core.async.impl.protocols :as p]) #? (:clj [clojure.pprint :as pprint] :cljs [cljs.pprint :as pprint])) #? (:cljs (:require-macros [kvlt.util]))) (defn map-keys [f m] ...
null
https://raw.githubusercontent.com/nervous-systems/kvlt/26fe43eb9de6d7cc7ad8a466953fa0ffe09889ca/src/kvlt/util.cljc
clojure
Taken from Plumbing
(ns ^:no-doc kvlt.util (:require [clojure.string :as str] #? (:clj [clojure.core.async.impl.protocols :as p] :cljs [cljs.core.async.impl.protocols :as p]) #? (:clj [clojure.pprint :as pprint] :cljs [cljs.pprint :as pprint])) #? (:cljs (:require-macros [kvlt.util]))) (defn map-keys [f m] ...
4f954008f4b2b32e8e45dfcc2c1f0a816053c5055ac29127a88ef6863a2349b0
mpickering/gitlab-triage
Config.hs
# LANGUAGE DeriveGeneric # {-# LANGUAGE DeriveAnyClass #-} module Config where import System.Directory import GHC.Generics import Control.Monad import qualified Data.Text as T import GitLab.Common import Data.Yaml import Data.Aeson (ToJSON, FromJSON) data UserConfig = UserConfig { token :: AccessToken ,...
null
https://raw.githubusercontent.com/mpickering/gitlab-triage/3586b1d62b7775282bd95775f1114084cd29ae4f/main/Config.hs
haskell
# LANGUAGE DeriveAnyClass # putStrLn $ "Removing config: " ++ configFile
# LANGUAGE DeriveGeneric # module Config where import System.Directory import GHC.Generics import Control.Monad import qualified Data.Text as T import GitLab.Common import Data.Yaml import Data.Aeson (ToJSON, FromJSON) data UserConfig = UserConfig { token :: AccessToken , url :: T.Text , project :...