_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
bd21c6f0c5496d36f3434bbc9948d2a9495fb1274c746f47e498fb4536b0fc71
privet-kitty/cl-competitive
dotimes-unroll.lisp
(defpackage :cp/test/dotimes-unroll (:use :cl :fiveam :cp/dotimes-unroll) (:import-from :cp/test/base #:base-suite)) (in-package :cp/test/dotimes-unroll) (in-suite base-suite) (defun iter3 (sup) (let (stack) (dotimes-unroll (x sup 3) (push x stack)) (nreverse stack))) (test dotimes-unroll (let (...
null
https://raw.githubusercontent.com/privet-kitty/cl-competitive/4d1c601ff42b10773a5d0c5989b1234da5bb98b6/module/test/dotimes-unroll.lisp
lisp
result
(defpackage :cp/test/dotimes-unroll (:use :cl :fiveam :cp/dotimes-unroll) (:import-from :cp/test/base #:base-suite)) (in-package :cp/test/dotimes-unroll) (in-suite base-suite) (defun iter3 (sup) (let (stack) (dotimes-unroll (x sup 3) (push x stack)) (nreverse stack))) (test dotimes-unroll (let (...
d9720fc937c45611b2f770ef8dd17ee7a4677f57784f123809841efeaae88e6d
janestreet/base
popcount.mli
(** This module exposes popcount functions (which count the number of ones in a bitstring) for the various integer types. Functions are exposed in their respective modules. *) open! Import val int_popcount : int -> int val int32_popcount : int32 -> int val int64_popcount : int64 -> int val nativeint_popcoun...
null
https://raw.githubusercontent.com/janestreet/base/221b085f3fcd77597f8245b4d73de3970b238e71/src/popcount.mli
ocaml
* This module exposes popcount functions (which count the number of ones in a bitstring) for the various integer types. Functions are exposed in their respective modules.
open! Import val int_popcount : int -> int val int32_popcount : int32 -> int val int64_popcount : int64 -> int val nativeint_popcount : nativeint -> int
a26604c57b4a8613f9647cbe767c52414acc39587041abbc8abcf50b325686e7
clojure-garden/clojure-garden
view.cljs
(ns platform.ui.pages.landing.view (:require [antd.core :as antd] [platform.ui.components :as components])) (defn content [] [:div {:class "video"} [antd/typography-title {:class "text" :strong true :type "success"} "The navigator in the Cloju...
null
https://raw.githubusercontent.com/clojure-garden/clojure-garden/9c58ce33f91aeab5f7bd0d16647ecc450ba8967f/modules/frontend/src/platform/ui/pages/landing/view.cljs
clojure
(ns platform.ui.pages.landing.view (:require [antd.core :as antd] [platform.ui.components :as components])) (defn content [] [:div {:class "video"} [antd/typography-title {:class "text" :strong true :type "success"} "The navigator in the Cloju...
6cca2e0142ea14162b0984dbe61a843312ae2f7ac1b7056621f9cb941dc36d6b
hongseok-yang/probprog20
project.clj
(defproject anglican-user "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [nstools "0.2.4"] [anglican "1.0.0"] [clojure-csv/cloj...
null
https://raw.githubusercontent.com/hongseok-yang/probprog20/31ba965ef103b93dd7c492dac7b0246bb6633361/Lectures/Lecture4/project.clj
clojure
(defproject anglican-user "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [nstools "0.2.4"] [anglican "1.0.0"] [clojure-csv/cloj...
a49aea427bdac60daed5582eab95134aa961882072f1f1198d89d198e809d012
digitallyinduced/ihp
Form.hs
{-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE AllowAmbiguousTypes # # LANGUAGE InstanceSigs , UndecidableInstances , AllowAmbiguousTypes , ScopedTypeVariables , IncoherentInstances # | Module : IHP.View . ...
null
https://raw.githubusercontent.com/digitallyinduced/ihp/8a2359bb795019dc1f517c546e157915057e96fa/IHP/View/Form.hs
haskell
# LANGUAGE FlexibleContexts # | Forms usually begin with a 'formFor' expression. This is how a simple form can look like: > renderForm :: Post -> Html > renderForm post = formFor post [hsx| > |] > <form method="POST" action="/CreatePost" id="" class="new-form"> > <label for="post_title">Title</l...
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE AllowAmbiguousTypes # # LANGUAGE InstanceSigs , UndecidableInstances , AllowAmbiguousTypes , ScopedTypeVariables , IncoherentInstances # | Module : IHP.View . Form Description : ' IHP.View . Form....
2a521b9a73d6041b8d8b71aff8601fd0daf2590240c7e708e2868f3f39333150
nasa/pvslib
patch-20210225-cl2pvs.lisp
;; from groundeval/cl2pvs.lisp (defmethod cl2pvs* (sexpr (type recordtype) context) (cond ((string-type? type) (cl2pvs*-string sexpr)) ((finseq-type? type) (let ((len (elt sexpr 0)) (fn (elt sexpr 1))) ;; (format t "~%cl2pvs*(recordtype)") (mk-application (mk-name-expr '|list2finseq|) (...
null
https://raw.githubusercontent.com/nasa/pvslib/2be465b36f4d884c33cbd49a37939c4664db74eb/pvs-patches/patch-20210225-cl2pvs.lisp
lisp
from groundeval/cl2pvs.lisp (format t "~%cl2pvs*(recordtype)") (format t "~%wrong branch")
(defmethod cl2pvs* (sexpr (type recordtype) context) (cond ((string-type? type) (cl2pvs*-string sexpr)) ((finseq-type? type) (let ((len (elt sexpr 0)) (mk-application (mk-name-expr '|list2finseq|) (cl2pvs*-list (loop for x from 0 to (- len 1) collect (pvs-funcall fn x)) (...
6e54c4a56d1f667c077d25e6ceea6f3e0d543fb2ab503905f287a36e37f054d5
antono/guix-debian
gc.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2012 , 2013 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of t...
null
https://raw.githubusercontent.com/antono/guix-debian/85ef443788f0788a62010a942973d4f7714d10b4/guix/scripts/gc.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2012 , 2013 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (guix scripts gc) #:use-module (guix ui) #:use-module (guix store) #:use-module (ice-9...
a1460bdfbd14ee4d224a18fa62e9c042f4e001abb68a75fd2db09469abddf9b1
pixlsus/registry.gimp.org_static
roys-max-local-contrast.scm
; roys - max - local - contrast , a script by ; ; Create New From Visible Desaturate using Luminance Create two new copies , one called and one For each gray value , 0 to 255 : ; color-select from the desaturated image grow selection by Radius parameter and feather it heavily paste ...
null
https://raw.githubusercontent.com/pixlsus/registry.gimp.org_static/ffcde7400f402728373ff6579947c6ffe87d1a5e/registry.gimp.org/files/roys-max-local-contrast.scm
scheme
Create New From Visible color-select from the desaturated image Compute (Base-Min)/(Max-Min) Copy the visible image to new layer and desaturate it Weird: feathering > theRadius mutes haloes. This is necessary for new-from-visible to work right Put the base-copy (unscaled) on top of base-layer Again...
roys - max - local - contrast , a script by Desaturate using Luminance Create two new copies , one called and one For each gray value , 0 to 255 : grow selection by Radius parameter and feather it heavily paste selection in Darken - Only mode on paste selection in Lighten - Only mo...
56bbbfafce493612ade0b8c5efbda17f61235faea7bfc162e5107df57846eb56
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
AccountServiceResourceStatusDetails.hs
{-# LANGUAGE MultiWayIf #-} CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} -- | Contains the types generated from the schema AccountServiceResourceStatusDetails module StripeAPI.Types.AccountServiceRe...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Types/AccountServiceResourceStatusDetails.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | Contains the types generated from the schema AccountServiceResourceStatusDetails Additional details on the FinancialAccount Features information. | resolution: Represents what the user should do, if anything, to activate the Feature. | Create a new 'AccountS...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . module StripeAPI.Types.AccountServiceResourceStatusDetails where import qualified Control.Monad.Fail import qualified Data.Aeson import qualified Data.Aeson as Data.Aeson.Encoding.Interna...
02ef64c7da9e2cbfe91fe7767de2e62637600ae6a80be2d8b873a110062adfec
gfour/gic
queens.hs
safe :: Int -> Int -> Int -> Int -> Int -> Bool safe q x n s d = if n == 0 then True else ((x /= (s `mod` q)) && (x /= ((s `mod` q) + d)) && (x /= ((s `mod` q) - d)) && safe q x (n-1) (s `div` q) (d+1)); count :: Int -> Int -> Int -> Int -> Int count q x n s = if n < q then ...
null
https://raw.githubusercontent.com/gfour/gic/d5f2e506b31a1a28e02ca54af9610b3d8d618e9a/Examples/Num/queens.hs
haskell
safe :: Int -> Int -> Int -> Int -> Int -> Bool safe q x n s d = if n == 0 then True else ((x /= (s `mod` q)) && (x /= ((s `mod` q) + d)) && (x /= ((s `mod` q) - d)) && safe q x (n-1) (s `div` q) (d+1)); count :: Int -> Int -> Int -> Int -> Int count q x n s = if n < q then ...
26c3a2feb26229825d92f924e7be9cbe762f30c48c8740bb4f19555e90d86659
cpeikert/ALCHEMY
RescaleTree.hs
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PartialTypeSignatures # # LANGUAGE RebindableSyntax # {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE TypeApplica...
null
https://raw.githubusercontent.com/cpeikert/ALCHEMY/adbef64576c6f6885600da66f59c5a4ad91810b7/src/Crypto/Alchemy/Language/RescaleTree.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # | \( \def\Z{\mathbb{Z}} \) | For \( k \geq 1 \), the "rescaling tree" that rounds a mod-@2^{k+1}@ value to a mod-@2@ value, over the same ring. This also works in a SIMD fas...
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PartialTypeSignatures # # LANGUAGE RebindableSyntax # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # LANGUAGE TemplateHaskell # # OPTIONS_GHC -fno - warn - partial - ...
15936902a0d9bf8a9c0a8d023d038f63a61606e6823da3d61b9d6a1c29768638
locusmath/locus
morphism.clj
(ns locus.set.copresheaf.quiver.dependency.morphism (:require [locus.set.logic.core.set :refer :all] [locus.set.logic.limit.product :refer :all] [locus.set.logic.sequence.object :refer :all] [locus.con.core.setpart :refer :all] [locus.set.mapping.general.core.object :re...
null
https://raw.githubusercontent.com/locusmath/locus/fb6068bd78977b51fd3c5783545a5f9986e4235c/src/clojure/locus/set/copresheaf/quiver/dependency/morphism.clj
clojure
vertex identity, and edge identity morphisms with their obvious compositions. Then morphisms in A structured morphism of dependency quivers is a morphism in a category equipped with a functor to the topos of dependency quivers. An example is a morphism in the category of groupoids. The underlying-morphism-of-depend...
(ns locus.set.copresheaf.quiver.dependency.morphism (:require [locus.set.logic.core.set :refer :all] [locus.set.logic.limit.product :refer :all] [locus.set.logic.sequence.object :refer :all] [locus.con.core.setpart :refer :all] [locus.set.mapping.general.core.object :re...
6a67e206fb497c6bd5b5f2f12c504afbc607e057fa06367fd69abb50e7009e91
wardle/hermes
ser_test.clj
(ns com.eldrix.hermes.ser-test (:require [clojure.spec.alpha :as s] [clojure.spec.gen.alpha :as gen] [clojure.spec.test.alpha :as stest] [clojure.test :refer [deftest is run-tests]] [com.eldrix.hermes.impl.ser :as ser] [com.eldrix.hermes.rf2 :as rf2] ...
null
https://raw.githubusercontent.com/wardle/hermes/8eb4b33ac6db6f1eed6245ab6dfead7073faf29f/test/com/eldrix/hermes/ser_test.clj
clojure
(ns com.eldrix.hermes.ser-test (:require [clojure.spec.alpha :as s] [clojure.spec.gen.alpha :as gen] [clojure.spec.test.alpha :as stest] [clojure.test :refer [deftest is run-tests]] [com.eldrix.hermes.impl.ser :as ser] [com.eldrix.hermes.rf2 :as rf2] ...
9d831aadb50517f2ece7c5c6b8d94a70ed0d7b7759ebc358a088bfc1674ce8ea
wilkerlucio/pathom-connect-youtube
activities.cljs
(ns com.wsscode.pathom.connect.youtube.activities (:require [com.wsscode.common.async-cljs :refer [<? go-catch]] [com.wsscode.pathom.connect :as pc] [com.wsscode.pathom.connect.youtube.helpers :as yth] [goog.string :as gstr])) (def activity-output-base [:youtube.activity/kind ...
null
https://raw.githubusercontent.com/wilkerlucio/pathom-connect-youtube/9415ff9ed15ab6cf098fe88f315cba19adfe9de8/src/core/com/wsscode/pathom/connect/youtube/activities.cljs
clojure
(ns com.wsscode.pathom.connect.youtube.activities (:require [com.wsscode.common.async-cljs :refer [<? go-catch]] [com.wsscode.pathom.connect :as pc] [com.wsscode.pathom.connect.youtube.helpers :as yth] [goog.string :as gstr])) (def activity-output-base [:youtube.activity/kind ...
49a4d1b8026dc8020b3d2f9a9a027d137e4cf38ff676879541ef5e38a958564f
slipstream/SlipStreamServer
pagination.clj
(ns com.sixsq.slipstream.db.es-rest.pagination (:require [com.sixsq.slipstream.db.es.common.pagination :as paging])) (defn paging "Creates a map with the from and size parameters to limit the responses from an Elasticsearch query." [{:keys [first last] :as cimi-params}] (let [[from size] (paging/es-pagi...
null
https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/db-binding/src/com/sixsq/slipstream/db/es_rest/pagination.clj
clojure
(ns com.sixsq.slipstream.db.es-rest.pagination (:require [com.sixsq.slipstream.db.es.common.pagination :as paging])) (defn paging "Creates a map with the from and size parameters to limit the responses from an Elasticsearch query." [{:keys [first last] :as cimi-params}] (let [[from size] (paging/es-pagi...
b269b4fb6a183670d56b7c88af2194fd6c76afc239cd6d8c316cbb95878cc372
ahrefs/ocaml-ahrocksdb
m.ml
include Rocksdb_bindings.M(G)
null
https://raw.githubusercontent.com/ahrefs/ocaml-ahrocksdb/bc0475cbfa9daa3a97c2e948f5a8cbe30c5b4828/ffi/lib/m.ml
ocaml
include Rocksdb_bindings.M(G)
d9867f195d7c9329d7af95492bac45ac5aeda38a89b4b3a3fba8a00c950cc395
haskell-perf/numbers
Time.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE ScopedTypeVariables # module Main (main) where import Control.Monad import Criterion.Main import Criterion.Types import Data.Char import Data.Scientific import System.Directory main :: IO () main = do let fp = "out.csv" exists <- doesFileExist fp when exists (removeFile ...
null
https://raw.githubusercontent.com/haskell-perf/numbers/5c85b00f4dc441455934609d6432cb67510164a4/Time.hs
haskell
# LANGUAGE BangPatterns # | Show without any % 1 or .0 extensions.
# LANGUAGE ScopedTypeVariables # module Main (main) where import Control.Monad import Criterion.Main import Criterion.Types import Data.Char import Data.Scientific import System.Directory main :: IO () main = do let fp = "out.csv" exists <- doesFileExist fp when exists (removeFile fp) defaultMainWith defa...
7cd24a30aca0b66b447831a26ededb08c760c120445e90125e47a7ef9768fc38
angavrilov/cl-linux-debug
symbols.lisp
;;; -*- mode: Lisp; indent-tabs-mode: nil; -*- (in-package :cl-linux-debug.code-info) (defun register-region (image address &key size (type 'executable-region) allow-subrange? allow-splice?) (when (eql size 0) (setf size nil)) (flet ((make-new-region () (let ((section (find-...
null
https://raw.githubusercontent.com/angavrilov/cl-linux-debug/879da2dcd14918bb8ffab003e934f4b01fba12ff/code-info/symbols.lisp
lisp
-*- mode: Lisp; indent-tabs-mode: nil; -*-
(in-package :cl-linux-debug.code-info) (defun register-region (image address &key size (type 'executable-region) allow-subrange? allow-splice?) (when (eql size 0) (setf size nil)) (flet ((make-new-region () (let ((section (find-section-by-address image address))) ...
7833372d2cfa8ea92aa83bf456366e2653a26d05d22bb1f73e83f6774e19a667
cxxxr/jsonrpc
connection.lisp
(in-package #:cl-user) (defpackage #:jsonrpc/connection (:use #:cl) (:import-from #:jsonrpc/request-response #:request #:response #:response-id) (:import-from #:bordeaux-threads #:make-condition-variable #:make-recursive-lock ...
null
https://raw.githubusercontent.com/cxxxr/jsonrpc/9f7708a9bc8d6f1a9e3a946188c4772adf752058/connection.lisp
lisp
batch batch request
(in-package #:cl-user) (defpackage #:jsonrpc/connection (:use #:cl) (:import-from #:jsonrpc/request-response #:request #:response #:response-id) (:import-from #:bordeaux-threads #:make-condition-variable #:make-recursive-lock ...
1cebf87de18da7055a64b9262b9499655fd456c35ead513b86f478c5c9778ae1
K2InformaticsGmbH/dderl
dderl_diff.erl
-module(dderl_diff). -include("dderl.hrl"). -include("gres.hrl"). -include_lib("imem/include/imem_sql.hrl"). -export([ term_diff/6 ]). -spec term_diff(term(), pid(), atom(), binary(), atom(), binary()) -> binary(). term_diff(Sess, SessPid, LeftType, LeftValue, RightType, RightValue) -> case Sess:run_cmd(term...
null
https://raw.githubusercontent.com/K2InformaticsGmbH/dderl/84697547fe8009db7964baa4eceb876fd78512a0/src/dderl_diff.erl
erlang
This seems hackish but we don't want to keep a process here. TODO: Revisit after tuple calls have been removed.
-module(dderl_diff). -include("dderl.hrl"). -include("gres.hrl"). -include_lib("imem/include/imem_sql.hrl"). -export([ term_diff/6 ]). -spec term_diff(term(), pid(), atom(), binary(), atom(), binary()) -> binary(). term_diff(Sess, SessPid, LeftType, LeftValue, RightType, RightValue) -> case Sess:run_cmd(term...
5df9ed13bb77aba395af94e7164b1082b3bc6a4298acaa7c430f7ee60374460a
emqx/emqx
emqx_auto_subscribe_api.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy o...
null
https://raw.githubusercontent.com/emqx/emqx/ce2b4d48ad5efe76e50b2e51cc5a3b3359f4a85c/apps/emqx_auto_subscribe/src/emqx_auto_subscribe_api.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_auto_subscribe_api). -behaviour(minirest_api). -export([ api_spec/0, path...
eea6ee068b3617816c08db9f4189d0907b9a420856a96b6781512458b832d4db
lambdaisland/uri
round_trip_query_map.clj
(ns round-trip-query-map (:require [lambdaisland.uri :as uri] [lambdaisland.uri.normalize :as norm] [lambdaisland.uri.platform :as platform] [clojure.test.check.generators :as gen] [clojure.test.check.properties :as prop] [clojure.test.check :as check] ...
null
https://raw.githubusercontent.com/lambdaisland/uri/fec3a00a64a595bb56c6ba38d60bfd765adbc258/repl_sessions/round_trip_query_map.clj
clojure
(= nil {}) (= nil {})
(ns round-trip-query-map (:require [lambdaisland.uri :as uri] [lambdaisland.uri.normalize :as norm] [lambdaisland.uri.platform :as platform] [clojure.test.check.generators :as gen] [clojure.test.check.properties :as prop] [clojure.test.check :as check] ...
46fee9fc2e5335873fec8b4a1a13b32ffbffbf422f398b135e1ed9ed969249df
benoitc-attic/barrel_tcp
barrel.erl
%%% -*- erlang -*- %%% This file is part of barrel released under the MIT license . %%% See the NOTICE for more information. -module(barrel). -export([start/0, stop/0]). -export([start_listener/6, start_listener/7, stop_listener/1, child_spec/2, get_port/1, info/1, info/2, ...
null
https://raw.githubusercontent.com/benoitc-attic/barrel_tcp/e689d0f4286b97462e0fda455f87501dc0ef4487/src/barrel.erl
erlang
-*- erlang -*- See the NOTICE for more information. --- Application --- @doc Start the barrel application. Useful when testing using the shell. @doc Start the coffer application. Useful when testing using the shell. --- barrel API --- @doc start a listener ``` Ref = term() NbAcceptors = integer() ''' ...
This file is part of barrel released under the MIT license . -module(barrel). -export([start/0, stop/0]). -export([start_listener/6, start_listener/7, stop_listener/1, child_spec/2, get_port/1, info/1, info/2, set_max_clients/2, get_max_clients/1, set_nb_accepto...
b339f03cf95c4b028ec8a05fb4794ff8f25518181b46ac29b566b0f54f3c08f3
sweirich/trellys
Parser.hs
# LANGUAGE PatternGuards , FlexibleInstances , FlexibleContexts , TupleSections , RankNTypes # # OPTIONS_GHC -Wall -fno - warn - unused - matches # | A parsec - based parser for the Trellys concrete syntax . module Language.Trellys.Parser ( parseModuleFile, parseModuleImports, parseExpr ) where impo...
null
https://raw.githubusercontent.com/sweirich/trellys/63ea89d8fa09929c23504665c55a3d909fe047c5/zombie-trellys/src/Language/Trellys/Parser.hs
haskell
programmatic logical also logical programmatic logical also logical | Parse a module declaration from the given filepath. | Parse only the imports part of a module from the given filepath. | Test an 'LParser' on a String. E.g., do to parse an axiom declaration of a logical fixpoint combinator. | Parse...
# LANGUAGE PatternGuards , FlexibleInstances , FlexibleContexts , TupleSections , RankNTypes # # OPTIONS_GHC -Wall -fno - warn - unused - matches # | A parsec - based parser for the Trellys concrete syntax . module Language.Trellys.Parser ( parseModuleFile, parseModuleImports, parseExpr ) where impo...
b89e997a9eeae386d7f3257207ce1c37c73a61be251119eb00b77fc6793120d7
archaelus/erms
erms_stats.erl
%%%------------------------------------------------------------------- @copyright Catalyst IT Ltd ( ) %%% @author nt < > %% @version {@vsn}, {@date} {@time} %% @doc Statistics collection server %% @end %%%------------------------------------------------------------------- -module(erms_stats). -behaviour(gen_se...
null
https://raw.githubusercontent.com/archaelus/erms/5dbe5e79516a16e461e7a2a345dd80fbf92ef6fa/src/erms_stats.erl
erlang
------------------------------------------------------------------- @version {@vsn}, {@date} {@time} @doc Statistics collection server @end ------------------------------------------------------------------- API gen_server callbacks ==================================================================== API =======...
@copyright Catalyst IT Ltd ( ) @author nt < > -module(erms_stats). -behaviour(gen_server). -include_lib("logging.hrl"). -include_lib("eunit/include/eunit.hrl"). -export([start_link/0, update_rate/2, update_counter/1, update_counter/2, update_counters/1, poll_self/...
5399bc0c3b7941ba922984990d4d8a04a9c23f4d48b8dfdb5c913a7be2f2b5d0
nebularis/systest
systest_sup.erl
-*- tab - width : 4;erlang - indent - level : 4;indent - tabs - mode : nil -*- %% ex: ts=4 sw=4 et %% ---------------------------------------------------------------------------- %% Copyright ( c ) 2005 - 2012 Nebularis . %% %% Permission is hereby granted, free of charge, to any person obtaining a copy %% of this ...
null
https://raw.githubusercontent.com/nebularis/systest/fbef181fd0203137f9f6ca6a471c75ca180ec375/src/systest_sup.erl
erlang
ex: ts=4 sw=4 et ---------------------------------------------------------------------------- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), deal to use, copy, modify, merge, publish, distribute, sublicense, and/o...
-*- tab - width : 4;erlang - indent - level : 4;indent - tabs - mode : nil -*- Copyright ( c ) 2005 - 2012 Nebularis . in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the ...
ac1027b83410a52104f521afa693aeef2f3006661c1b3ef0f1ae0faa6753de36
savonet/ocaml-mm
midiplayer.ml
open Mm_audio let () = let fname = Sys.argv.(1) in let f = new Audio.IO.Reader.of_wav_file fname in let oss = new Mm_oss.writer f#channels f#sample_rate in let blen = 1024 in let buf = Audio.create f#channels blen in Printf.printf "Opened WAV file with %d channels at %dHz.\n%!" f#channels f#sample_rate...
null
https://raw.githubusercontent.com/savonet/ocaml-mm/3f9e7d0d8da358383fd62e02b476e8fca59fe137/examples/midiplayer.ml
ocaml
bqf#process buf 0 r;
open Mm_audio let () = let fname = Sys.argv.(1) in let f = new Audio.IO.Reader.of_wav_file fname in let oss = new Mm_oss.writer f#channels f#sample_rate in let blen = 1024 in let buf = Audio.create f#channels blen in Printf.printf "Opened WAV file with %d channels at %dHz.\n%!" f#channels f#sample_rate...
165623289901e213bad9882676ea65cd33e1cd3272efb62d99c0274963c97763
hammerlab/prohlatype
mSA.ml
Multiple Sequences Alignment . them and other operations . Parse them and other operations. *) open Util open Biology (* This refers to the alignment position. *) type position = int [@@deriving eq, ord, show, yojson] type 'sr sequence = { start : position; s : 'sr } and gap = { gstart : position; leng...
null
https://raw.githubusercontent.com/hammerlab/prohlatype/3acaf7154f93675fc729971d4c76c2b133e90ce6/src/lib/mSA.ml
ocaml
This refers to the alignment position. Label these arguments to differentiate that we want a "length/index" into contained element, not a position. For now, it makes it easier to have some kind of sane delimiter to align and spot check these alignments. The "|" are the 'boundaries'. This keeps tr...
Multiple Sequences Alignment . them and other operations . Parse them and other operations. *) open Util open Biology type position = int [@@deriving eq, ord, show, yojson] type 'sr sequence = { start : position; s : 'sr } and gap = { gstart : position; length : int } and boundary = { label : Gene_reg...
2915728076054d37c273c21eff655ee4e71949fbebca62670bfd08430c0fb4c7
static-analysis-engineering/codehawk
bCHTypeDefinitions.ml
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Co...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/418c95f77e6ece464df2ade519f27d95aa0119d6/CodeHawk/CHB/bchlib/bCHTypeDefinitions.ml
ocaml
bchlib ~~~ builtin types are loaded by default; they are not saved as part of the ~~~ analysis data string -> btype_t string -> btype_t string -> btype_t ~~~ types that are added from user data or from library function summaries; ~~~ they are saved as part of the analysis data. These type names ov...
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Co...
ff8424b875b2e8e0535823847794084a96ab2cbaef240b536800faf070c02595
realworldocaml/book
lib_rules.mli
open Import open Dune_file val foreign_rules : Foreign.Library.t -> sctx:Super_context.t -> expander:Expander.t -> dir:Path.Build.t -> dir_contents:Dir_contents.t -> unit Memo.t val rules : Library.t -> sctx:Super_context.t -> dir_contents:Dir_contents.t -> dir:Path.Build.t -> expander:Exp...
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/dune_/src/dune_rules/lib_rules.mli
ocaml
open Import open Dune_file val foreign_rules : Foreign.Library.t -> sctx:Super_context.t -> expander:Expander.t -> dir:Path.Build.t -> dir_contents:Dir_contents.t -> unit Memo.t val rules : Library.t -> sctx:Super_context.t -> dir_contents:Dir_contents.t -> dir:Path.Build.t -> expander:Exp...
8ac87f80f2c88971c9878c9d17d9b345c8d212cb01d73f8e131a3ac80ac19206
RyanHope/ACT-R
WNLexical_3-0-2.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Filename : WNLexical_3-0-2.lisp Version : 3.0.2 ;;; ;;; Description : ACT-R/WNLexical ;;; WNL...
null
https://raw.githubusercontent.com/RyanHope/ACT-R/c65f3fe7057da0476281ad869c7963c84c0ad735/extras/WNLexicalModule/WNLexical_3-0-2.lisp
lisp
Filename : WNLexical_3-0-2.lisp Description : ACT-R/WNLexical was developped from the prolog files distributed with WordNet Release 3.0. License : **** WNLexical license **** This library is free software; you can redistribute it and/or either ...
Version : 3.0.2 WNLexical is an implementation of WordNet for the Act - r cognitive architecture . WNLexical is an Act - r module and The first digits of the version number match the WordNet version number . The last digit distinguishes WNLexical ...
5d0a0c99a032634a0d6faecae54496921edfed4265a13fabb64fc43954451ffd
OCamlPro/typerex-lint
checkIdentifier.ml
let unsafe_functions = [ Path.Pdot ( Path.Pdot ( Path.Pident ( Ident.create "Bigarray" ), "Array1", 1 ), "unsafe_get", 2 ); Path.Pdot ( Path.Pdot ( Path.Pident ( Ident.create "Bigarray" ), "Array1", 1 ), "unsafe_...
null
https://raw.githubusercontent.com/OCamlPro/typerex-lint/6d9e994c8278fb65e1f7de91d74876531691120c/plugins/ocp-lint-plugin-typedtree/checkIdentifier.ml
ocaml
(deprecated * actual) list
let unsafe_functions = [ Path.Pdot ( Path.Pdot ( Path.Pident ( Ident.create "Bigarray" ), "Array1", 1 ), "unsafe_get", 2 ); Path.Pdot ( Path.Pdot ( Path.Pident ( Ident.create "Bigarray" ), "Array1", 1 ), "unsafe_...
e17436c0a1770a85dcb92bd169164059cfeb809e99bf5cd230035213554f2be9
tsloughter/kuberl
kuberl_v1_status_cause.erl
-module(kuberl_v1_status_cause). -export([encode/1]). -export_type([kuberl_v1_status_cause/0]). -type kuberl_v1_status_cause() :: #{ 'field' => binary(), 'message' => binary(), 'reason' => binary() }. encode(#{ 'field' := Field, 'message' := Message, 'reason' := Reason ...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1_status_cause.erl
erlang
-module(kuberl_v1_status_cause). -export([encode/1]). -export_type([kuberl_v1_status_cause/0]). -type kuberl_v1_status_cause() :: #{ 'field' => binary(), 'message' => binary(), 'reason' => binary() }. encode(#{ 'field' := Field, 'message' := Message, 'reason' := Reason ...
aa639e5f2ad4cc248637438a698aa7ade81fcb05c1aadc9be0014c674ea17c48
dyzsr/ocaml-selectml
t110-negint.ml
TEST include tool - ocaml - lib flags = " -w -a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w -a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; let x = 1 in if -x <> -1 then raise Not_found ;; * 0 CO...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/testsuite/tests/tool-ocaml/t110-negint.ml
ocaml
TEST include tool - ocaml - lib flags = " -w -a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w -a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; let x = 1 in if -x <> -1 then raise Not_found ;; * 0 CO...
98c6942f4a86a0dddd51b3790f151ba42ac1152afd7bb4d25ebdd379dd70bbb1
nextjournal/viewers
demo.cljs
(ns nextjournal.devdocs.demo (:require [nextjournal.devdocs :as devdocs] [nextjournal.commands.core :as commands] [reitit.frontend :as rf]) (:require-macros [nextjournal.devdocs :as devdocs])) (reset! devdocs/registry (assoc (devdocs/build-registry {:paths ["README.md" ...
null
https://raw.githubusercontent.com/nextjournal/viewers/aed9d5934c0411b4bee436c3105fc332ee774099/examples/nextjournal/devdocs/demo.cljs
clojure
(ns nextjournal.devdocs.demo (:require [nextjournal.devdocs :as devdocs] [nextjournal.commands.core :as commands] [reitit.frontend :as rf]) (:require-macros [nextjournal.devdocs :as devdocs])) (reset! devdocs/registry (assoc (devdocs/build-registry {:paths ["README.md" ...
3af5a0331f03ffb5c8969a2b055e46b377729b0eb85b601e76b6a558f0455ede
replomancer/Swordfight
board_test.clj
(ns swordfight.board-test (:require [midje.sweet :refer [facts fact has-prefix]] [swordfight.board :refer [black-king black-queen black-bishop black-knight black-rook black-pawn white-king white-queen white-bishop ...
null
https://raw.githubusercontent.com/replomancer/Swordfight/4ac956d0c9076792774dd05db3f258a8c713c49c/test/swordfight/board_test.clj
clojure
(ns swordfight.board-test (:require [midje.sweet :refer [facts fact has-prefix]] [swordfight.board :refer [black-king black-queen black-bishop black-knight black-rook black-pawn white-king white-queen white-bishop ...
15ba1133e65a9e0c5fb890053f54e1db9da2a46d17c5525802d355e5e288459b
achirkin/qua-kit
ReviewRequest.hs
module Handler.Mooc.Admin.ReviewRequest ( getAdminReviewRequestR , postAdminReviewRequestR ) where import Data.Time.Calendar (addDays, showGregorian) import qualified Database.Persist.Sql as P import Text.Shakespeare.Text (st) import Database.Esqueleto import Handler.Mooc.Admin import Import hiding ((/=.)...
null
https://raw.githubusercontent.com/achirkin/qua-kit/9f859e2078d5f059fb87b2f6baabcde7170d4e95/apps/hs/qua-server/src/Handler/Mooc/Admin/ReviewRequest.hs
haskell
to address subject
module Handler.Mooc.Admin.ReviewRequest ( getAdminReviewRequestR , postAdminReviewRequestR ) where import Data.Time.Calendar (addDays, showGregorian) import qualified Database.Persist.Sql as P import Text.Shakespeare.Text (st) import Database.Esqueleto import Handler.Mooc.Admin import Import hiding ((/=.)...
cd6fbc4fef53d8947351007bf4ec1e6dfb34d8af18bb4ffd0e12f709e880e668
footprintanalytics/footprint-web
query_to_native_test.clj
(ns metabase.query-processor-test.query-to-native-test "Tests around the `compile` function." (:require [clojure.test :refer :all] [metabase.api.common :as api] [metabase.models.permissions :as perms] [metabase.query-processor :as qp] [metabase.test :as mt] ...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/test/metabase/query_processor_test/query_to_native_test.clj
clojure
If user permissions are bound, we should do permissions checking when you call `compile`; you should need native query execution permissions for the DB in question plus the perms needed for the original query in order to use `compile`
(ns metabase.query-processor-test.query-to-native-test "Tests around the `compile` function." (:require [clojure.test :refer :all] [metabase.api.common :as api] [metabase.models.permissions :as perms] [metabase.query-processor :as qp] [metabase.test :as mt] ...
9febf2dad6061b64a335f63b805c4a8cf9e4bfd82e7d22c447b3639f44f42516
adlai/scalpl
kraken.lisp
(defpackage #:scalpl.kraken (:nicknames #:kraken) (:export #:*kraken* #:kraken-gate) (:use #:cl #:base64 #:chanl #:anaphora #:local-time #:scalpl.util #:scalpl.actor #:scalpl.exchange)) (in-package #:scalpl.kraken) ;;; General Parameters (defparameter +base-path+ "/") (defun hmac-sha512 (message secret) ...
null
https://raw.githubusercontent.com/adlai/scalpl/17ab2e1acd07c627a4914b8969886b8bf64e6d83/kraken.lisp
lisp
General Parameters API-Key = API key anger leads to hate FIXME: this prevents add/cancel requests from going through while other requests wait for tokens. possible solution - queue closures with their associated cost, execute most expensive affordable request (format t "~&~A ~A~&" (now) command) Public Data AP...
(defpackage #:scalpl.kraken (:nicknames #:kraken) (:export #:*kraken* #:kraken-gate) (:use #:cl #:base64 #:chanl #:anaphora #:local-time #:scalpl.util #:scalpl.actor #:scalpl.exchange)) (in-package #:scalpl.kraken) (defparameter +base-path+ "/") (defun hmac-sha512 (message secret) (let ((hmac (ironclad...
8dcc760e31d678ec0538dc70b10fff1ee11a40f6752bff7b60d4de178c879c23
jyh/metaprl
nuprl_rfunction_1.mli
extends Ma_fun_1 define unfold_fincr : "fincr"[]{} <--> "rfun"[]{"nat"[]{};"f", "i"."ifthenelse"[]{"beq_int"[]{'"i";"number"[0:n]{}};"int"[]{};"int_upper"[]{('"f" "sub"[]{'"i";"number"[1:n]{}})}}}
null
https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/mesa/nuprl_rfunction_1.mli
ocaml
extends Ma_fun_1 define unfold_fincr : "fincr"[]{} <--> "rfun"[]{"nat"[]{};"f", "i"."ifthenelse"[]{"beq_int"[]{'"i";"number"[0:n]{}};"int"[]{};"int_upper"[]{('"f" "sub"[]{'"i";"number"[1:n]{}})}}}
23ae9454a586ad57c372bcd266a279c7efbabf147efdb12f27a284c05dc03cfc
spl/ivy
nullSolverInterface.ml
(* * nullSolverInterface.ml * * This is the interface of a null solver provided to the Deputy optimizer * *) (* This is the interface exposed to doptim.ml *) check if ( e1 op e2 ) is valid in state s let valid s op e1 e2 = false
null
https://raw.githubusercontent.com/spl/ivy/b1b516484fba637eb24e83d27555d273495e622b/src/deputy/optimizer/nullSolver/nullSolverInterface.ml
ocaml
* nullSolverInterface.ml * * This is the interface of a null solver provided to the Deputy optimizer * This is the interface exposed to doptim.ml
check if ( e1 op e2 ) is valid in state s let valid s op e1 e2 = false
ae7b1902a5fb022757cdfadf5959ac6c428c5820bd3aa180d81a11e19221f98d
gigasquid/vsa-clj
vsa_data_test.clj
(ns gigasquid.vsa-data-test (:require [clojure.test :refer :all] [gigasquid.vsa-base :as vb] [gigasquid.vsa-data :as sut])) (deftest test-vsa-assoc (testing "testing (assoc nil :x 1)" (vb/reset-hdv-mem!) (let [m (sut/vsa-assoc nil :x 1) [v _] (sut/vsa-get m :x) [k _] (sut/v...
null
https://raw.githubusercontent.com/gigasquid/vsa-clj/394e92bbe4b015af66abed0a580e28c0b9131cb4/test/gigasquid/vsa_data_test.clj
clojure
(ns gigasquid.vsa-data-test (:require [clojure.test :refer :all] [gigasquid.vsa-base :as vb] [gigasquid.vsa-data :as sut])) (deftest test-vsa-assoc (testing "testing (assoc nil :x 1)" (vb/reset-hdv-mem!) (let [m (sut/vsa-assoc nil :x 1) [v _] (sut/vsa-get m :x) [k _] (sut/v...
5851b306b04b4a48ee6080b022ec137735f14f470105ca9a2938beec693813d4
OCamlPro/ocp-reveal
slides.mli
(*****************************************************************************) (* *) (* Copyright 2015 OCamlPro *) (* *) ...
null
https://raw.githubusercontent.com/OCamlPro/ocp-reveal/338de73186803e6f14c780ff9dfb72a81f061f77/src/slides.mli
ocaml
*************************************************************************** Copyright 2015 OCamlPro All rights res...
the Lesser GNU Public License version 3.0 . type transition = None | Fade | Slide | Convex | Concave | Zoom type speed = Default | Fast | Slow type color = Black | White | Blue | Red | Green | Yellow | Color of string type theme = Black_theme | White_theme | Night_theme | Blood_t...
96ad2321ca5e8976ddbdb50a23400faa52211223b0f753191b48b9f61e310966
mmirman/caledon
Test.hs
module Src.Test where import Src.Substitution import Control.Monad.State import Control.Monad.Error import Data.Monoid import Src.HOU import Src.AST t = tipemake "uni" tt = t ~> t ttt = t ~> tt tt_t = tt ~> t tt_tt = tt ~> tt tttt = t ~> ttt test3 :: Form 2 1 0 $ Pat (evvar 0 "a" tttt :+: var 1 :+: var ...
null
https://raw.githubusercontent.com/mmirman/caledon/7e97110270362d46d8784a5197a84b6a4b7e2982/sources/Src/Test.hs
haskell
2 1 0 should pass with "x" = \tt.1 2 1 0 should pass with "x" = \tt.0
module Src.Test where import Src.Substitution import Control.Monad.State import Control.Monad.Error import Data.Monoid import Src.HOU import Src.AST t = tipemake "uni" tt = t ~> t ttt = t ~> tt tt_t = tt ~> t tt_tt = tt ~> tt tttt = t ~> ttt test3 :: Form 2 1 0 $ Pat (evvar 0 "a" tttt :+: var 1 :+: var ...
f73ef669b062135cdb8fc06227d145ff0b0c39ad0b4f7aeda5611c57acddce56
aarkerio/ZentaurLMS
users.cljs
(ns zentaur.users (:require [goog.dom :as gdom] [goog.events :as events]) (:import [goog.events EventType])) (defn add-listener [{:keys [elem event function] :or {event "click" function "send"}}] (.log js/console (str elem ">>>>> ADD LISTENER ")) (.addEventListener (.getElementById js/document elem...
null
https://raw.githubusercontent.com/aarkerio/ZentaurLMS/adb43fb879b88d6a35f7f556cb225f7930d524f9/src/cljs/zentaur/users.cljs
clojure
Users
(ns zentaur.users (:require [goog.dom :as gdom] [goog.events :as events]) (:import [goog.events EventType])) (defn add-listener [{:keys [elem event function] :or {event "click" function "send"}}] (.log js/console (str elem ">>>>> ADD LISTENER ")) (.addEventListener (.getElementById js/document elem...
c0d3fc707cddc97282c750d4eb661b3905e9bd9e4312a2508577250f470ff83d
openbadgefactory/salava
reset_password_test.clj
(ns salava.user.reset-password-test (:require [midje.sweet :refer :all] [salava.core.migrator :as migrator] [salava.test-utils :refer [test-api-request login! logout! test-user-credentials]])) (def expired-activation-data {:password "newpassword" :password_verify "newpassword" :code "...
null
https://raw.githubusercontent.com/openbadgefactory/salava/97f05992406e4dcbe3c4bff75c04378d19606b61/test_old/clj/salava/user/reset_password_test.clj
clojure
(ns salava.user.reset-password-test (:require [midje.sweet :refer :all] [salava.core.migrator :as migrator] [salava.test-utils :refer [test-api-request login! logout! test-user-credentials]])) (def expired-activation-data {:password "newpassword" :password_verify "newpassword" :code "...
22b88509d39ef908b99e7f325d8ae665a17c6c845a8960ee1aa76a9b3a28588c
jellelicht/guix
attr.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2012 < > Copyright © 2012 , 2013 , 2016 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software F...
null
https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/gnu/packages/attr.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2012 < > Copyright © 2012 , 2013 , 2016 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu packages attr) #:use-module (guix licenses) #:use-...
928d69cb56995b2fb9c81dea7d42e8d87aa856d80ed073182b1e507cba7377f0
helium/gateway-config
gateway_config_sup.erl
%%%------------------------------------------------------------------- %% @doc gateway-config top level supervisor. %% @end %%%------------------------------------------------------------------- -module(gateway_config_sup). -behaviour(supervisor). %% API -export([start_link/0]). %% Supervisor callbacks -export([ini...
null
https://raw.githubusercontent.com/helium/gateway-config/ac7f90f5ac6f698c17a793e75a6e43796eb2f1da/src/gateway_config_sup.erl
erlang
------------------------------------------------------------------- @doc gateway-config top level supervisor. @end ------------------------------------------------------------------- API Supervisor callbacks ==================================================================== API functions ========================...
-module(gateway_config_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(SERVER, ?MODULE). start_link() -> supervisor:start_link({local, ?SERVER}, ?MODULE, []). Before OTP 18 tuples must be used to specify a child . e.g. Child : : { Id , StartFunc , Restart , Shutdown , ...
c5d4aa40fbae536c63d8df82586cfc6ad52290b0694153ca82179a6e1e937f6b
logseq/logseq
file_sync.clj
(ns logseq.tasks.file-sync "Run integration tests on file-sync service. Instructions: * Login to electron app and toggle file-sync on * Set up file-sync-auth.json file per #'read-config * Run `bb file-sync:integration-tests` * Wait for test results. Each action takes 10-20s and prints results as it goes" (:require...
null
https://raw.githubusercontent.com/logseq/logseq/b78c689458953dbbcf8fd93f09523508aa9040a1/scripts/src/logseq/tasks/file_sync.clj
clojure
Root directory for graph that is being tested Graph id for given graph Only want to read this once Approximate polling time before file changes are picked up by client
(ns logseq.tasks.file-sync "Run integration tests on file-sync service. Instructions: * Login to electron app and toggle file-sync on * Set up file-sync-auth.json file per #'read-config * Run `bb file-sync:integration-tests` * Wait for test results. Each action takes 10-20s and prints results as it goes" (:require...
5c200f97daa99b7d2ae8157cfd7af5e4c9764d0f7fb379f79e156fee53e9d21d
haskell/cabal
OverwritePolicy.hs
# LANGUAGE DeriveGeneric # module Distribution.Client.Types.OverwritePolicy where import Distribution.Client.Compat.Prelude import Prelude () import qualified Distribution.Compat.CharParsing as P import qualified Text.PrettyPrint as PP data OverwritePolicy = NeverOverwrite | AlwaysOverwrite ...
null
https://raw.githubusercontent.com/haskell/cabal/5ef4d234b776109e951f1aab9b81737cb7646237/cabal-install/src/Distribution/Client/Types/OverwritePolicy.hs
haskell
# LANGUAGE DeriveGeneric # module Distribution.Client.Types.OverwritePolicy where import Distribution.Client.Compat.Prelude import Prelude () import qualified Distribution.Compat.CharParsing as P import qualified Text.PrettyPrint as PP data OverwritePolicy = NeverOverwrite | AlwaysOverwrite ...
843f978ec04fa280124f48e0b5d0ccafa7073ff13a636ba38d667c64008b8d4a
flipstone/orville
SchemaState.hs
module Database.Orville.PostgreSQL.Internal.SchemaState ( SchemaState , schemaStateTableColumns , schemaStateTableExists , schemaStateIndexExists , schemaStateConstraintExists , schemaStateSequenceExists , loadSchemaState ) where import Control.Monad (forM, void) import Data.Convertible (convert) impor...
null
https://raw.githubusercontent.com/flipstone/orville/5e5db50337ca1e68966024658c0e0668860fe4c8/orville-postgresql/src/Database/Orville/PostgreSQL/Internal/SchemaState.hs
haskell
module Database.Orville.PostgreSQL.Internal.SchemaState ( SchemaState , schemaStateTableColumns , schemaStateTableExists , schemaStateIndexExists , schemaStateConstraintExists , schemaStateSequenceExists , loadSchemaState ) where import Control.Monad (forM, void) import Data.Convertible (convert) impor...
7acf1ecfc00904d9e0e72b85d34ed0366f4574325503eed8b2459cbadafc1b48
nodfur/os
08-browser.lisp
;; Copyright ( C ) 2021 Restless Hypermedia , Inc. ;; ;; 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 , or ( at your option ) any later version . ;...
null
https://raw.githubusercontent.com/nodfur/os/015da47ad19ec6a8dbdefb7adf7a98f1aa7bc67a/epap/epap-lisp/08-browser.lisp
lisp
This program is free software: you can redistribute it and/or This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. License...
Copyright ( C ) 2021 Restless Hypermedia , Inc. 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 , or ( at your option ) any later version . You should have received a copy of the GNU Affero General Public (uio...
2591f25a7b2d584308347c307f17e4c070c50fcfc07b24058465e13c94c3ae76
owlbarn/owl_symbolic
owl_symbolic_ops_tensor.ml
* OWL - OCaml Scientific and Engineering Computing * Copyright ( c ) 2016 - 2020 < > * OWL - OCaml Scientific and Engineering Computing * Copyright (c) 2016-2020 Liang Wang <> *) * Reshape , Concat , Split , Identity , Pad , Cast , Squeeze , Tile * Shape , Size , Transpose , Slice , SpaceToDepth , I...
null
https://raw.githubusercontent.com/owlbarn/owl_symbolic/dc853a016757d3f143c5e07e50075e7ae605d969/src/ops/owl_symbolic_ops_tensor.ml
ocaml
the index of its parent's corresonding output
* OWL - OCaml Scientific and Engineering Computing * Copyright ( c ) 2016 - 2020 < > * OWL - OCaml Scientific and Engineering Computing * Copyright (c) 2016-2020 Liang Wang <> *) * Reshape , Concat , Split , Identity , Pad , Cast , Squeeze , Tile * Shape , Size , Transpose , Slice , SpaceToDepth , I...
38be1ef741b1b1720a24cf786fb4d91eb99dd1960b511d8734238b0d35dcd3e1
saevarb/haskord
GatewayOpcode.hs
{-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE TemplateHaskell #-} # LANGUAGE UndecidableInstances # module Haskord.Types.GatewayOpcode where import Data.Aeson import Data.Scientific (floatingOrInteger) import Data.Singletons.TH $(singletons [d| data GatewayOpcode = D...
null
https://raw.githubusercontent.com/saevarb/haskord/d1bb07bcc4f3dbc29f2dfd3351ff9f16fc100c07/haskord-lib/src/Haskord/Types/GatewayOpcode.hs
haskell
# LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # toJSON $ fromJust (lookup opcode reverseOpcodeMap)
# LANGUAGE UndecidableInstances # module Haskord.Types.GatewayOpcode where import Data.Aeson import Data.Scientific (floatingOrInteger) import Data.Singletons.TH $(singletons [d| data GatewayOpcode = Dispatch | Heartbeat | Identify | StatusUpdate | Voic...
7e0cf4c9436f023e4249929db0cd2dfe8647cf488103cfc6ddee6823eab5a6a8
kitnil/dotfiles
kubernetes.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2022 , 2023 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of t...
null
https://raw.githubusercontent.com/kitnil/dotfiles/b9bc999928562e722dfbfe4689164d907ba178f7/dotfiles/guixsd/modules/services/kubernetes.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2022 , 2023 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (services kubernetes) #:use-module (gnu packages docker) #:use-module (gnu packages linu...
fd95d0d7443b0f962d1f3087b4e92c068e89a868275adacbdd7ab68e00ed8540
jship/opentelemetry-haskell
SpanProcessor.hs
module OTel.SDK.Trace.SpanProcessor ( Internal.SpanProcessor , Internal.SpanProcessorSpec , Internal.defaultSpanProcessorSpec , Internal.spanProcessorSpecName , Internal.spanProcessorSpecExporter , Internal.spanProcessorSpecOnSpanStart , Internal.spanProcessorSpecOnSpanEnd , Internal.spanProcessorSpecS...
null
https://raw.githubusercontent.com/jship/opentelemetry-haskell/468b7df49226bb6a478180300dab8d1a214c213f/otel-sdk-trace/library/OTel/SDK/Trace/SpanProcessor.hs
haskell
module OTel.SDK.Trace.SpanProcessor ( Internal.SpanProcessor , Internal.SpanProcessorSpec , Internal.defaultSpanProcessorSpec , Internal.spanProcessorSpecName , Internal.spanProcessorSpecExporter , Internal.spanProcessorSpecOnSpanStart , Internal.spanProcessorSpecOnSpanEnd , Internal.spanProcessorSpecS...
0f63c5797b3ba73015d73994ac577677301f21dc44eb118f04962b1a9fe7a882
luizalbertocviana/haskell-experiments
Maybe.hs
module Maybe where import Prelude (Bool(True, False), Functor(fmap), Applicative(pure, (<*>)), Monad((>>=)), Show) import Control.Applicative (Alternative(empty, (<|>))) import Bool import Functions -- Aula 4 data Maybe a = Nothing | Just a deriving Show maybe :: b ...
null
https://raw.githubusercontent.com/luizalbertocviana/haskell-experiments/eee61245316e3d78819f88b0e60e0c3a3374483e/Maybe.hs
haskell
Aula 4
module Maybe where import Prelude (Bool(True, False), Functor(fmap), Applicative(pure, (<*>)), Monad((>>=)), Show) import Control.Applicative (Alternative(empty, (<|>))) import Bool import Functions data Maybe a = Nothing | Just a deriving Show maybe :: b -> (a -> b...
38217515cb39eab8c01e279c43da29bf4b359f7b17f61a91671146db8c63b665
khotyn/4clojure-answer
51-advanced-destructuring.clj
[1 2 3 4 5]
null
https://raw.githubusercontent.com/khotyn/4clojure-answer/3de82d732faedceafac4f1585a72d0712fe5d3c6/51-advanced-destructuring.clj
clojure
[1 2 3 4 5]
c8ce46c5b83e18895e6f46dd4191d4865b8ac4d45892161f88b13a931633685a
AllureOfTheStars/Allure
ModeKind.hs
Copyright ( c ) 2008 - -2011 Copyright ( c ) 2010 - -2021 and others ( see git history ) This file is a part of the computer game Allure of the Stars and is released under the terms of the GNU Affero General Public License . -- For license and copyright information, see the file LICENSE. -- -- | Definitions...
null
https://raw.githubusercontent.com/AllureOfTheStars/Allure/ac1d5a330ee26b1fda29ee69cac178bf71502a8d/GameDefinition/Content/ModeKind.hs
haskell
For license and copyright information, see the file LICENSE. | Definitions of game mode kinds. * Group name patterns * Content * Group name patterns * Group name patterns * Content scenarios make sense (e.g., are good for a tutorial or for standalone extreme fun or are impossible as part of a crawl)? dense m...
Copyright ( c ) 2008 - -2011 Copyright ( c ) 2010 - -2021 and others ( see git history ) This file is a part of the computer game Allure of the Stars and is released under the terms of the GNU Affero General Public License . module Content.ModeKind groupNamesSingleton, groupNames content #ifdef EXPO...
c9338ffaf69c94405cd20749840f9247b47824471a3e29db872a30de65d65709
huangz1990/real-world-haskell-cn
funcrecs.hs
-- file: ch13/funcrecs.hs Our usual CustomColor type to play with data CustomColor = CustomColor {red :: Int, green :: Int, blue :: Int} deriving (Eq, Show, Read) -- A new type that stores a name and a function. -- The function takes an Int, applies some computation to it, ...
null
https://raw.githubusercontent.com/huangz1990/real-world-haskell-cn/f67b07dd846b1950d17ff941d650089fcbbe9586/code/ch13/funcrecs.hs
haskell
file: ch13/funcrecs.hs A new type that stores a name and a function. The function takes an Int, applies some computation to it,
Our usual CustomColor type to play with data CustomColor = CustomColor {red :: Int, green :: Int, blue :: Int} deriving (Eq, Show, Read) and returns an Int along with a CustomColor data FuncRec = FuncRec {name :: String, colorCalc :: Int -> (CustomColor, ...
098b49b507d6929f0b4e66e351d5679900463722a84fa9e970cdc3c20bba6ad9
ku-fpg/hermit
Local.hs
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} # LANGUAGE KindSignatures # module HERMIT.Dictionary.Local ( -- * Local Structural Manipulations HERMIT.Dictionary.Local.externals -- ** Binding Groups , module HERMIT.Dictionary.Local.Bind -- ** Case Expressions , modu...
null
https://raw.githubusercontent.com/ku-fpg/hermit/3e7be430fae74a9e3860b8b574f36efbf9648dec/src/HERMIT/Dictionary/Local.hs
haskell
# LANGUAGE GADTs # * Local Structural Manipulations ** Binding Groups ** Case Expressions ** Cast Expressions ** Let Expressions ** Miscellaneous ---------------------------------------------------------------------------- | Externals for local structural manipulations. ------------------------------------------...
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE KindSignatures # module HERMIT.Dictionary.Local HERMIT.Dictionary.Local.externals , module HERMIT.Dictionary.Local.Bind , module HERMIT.Dictionary.Local.Case , module HERMIT.Dictionary.Local.Cast , module HERMIT.Dictionary.Local.Let , ...
761d51dc99693856f3707f39ae5a52d3c3cb63aa979032a6d2c4012a8f2f1b69
input-output-hk/plutus-apps
Escrow3.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE StandaloneDeriving # {-# LANGUAGE TemplateHaskell #-} # LANGUAGE TupleSections # # LANGUAGE TypeApplications # {-# LANGUAGE TypeFamilies #-} # OPTIONS_GH...
null
https://raw.githubusercontent.com/input-output-hk/plutus-apps/362e824c83b77df23805f1e718ea0893f5fcae56/plutus-use-cases/test/Spec/Tutorial/Escrow3.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE GADTs # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # This module contains a contract model for positive testing of the Dynamic Contract Instances" section of the tutorial. bad -- approach to recovering locked funds . This unilateral strate...
# LANGUAGE DeriveGeneric # # LANGUAGE FlexibleInstances # # LANGUAGE StandaloneDeriving # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # # OPTIONS_GHC -fno - warn - name - shadowing # simplified escrow contract in . Contracts . Tutorial . Escrow , with generated escrow targets . See t...
7e818b4e8c2275c5c21f05033bd1d73761e3cd83c7ad0a7527b100c1189ee0d2
bennn/forth
arithmetic.rkt
#lang forth 21 21 + 1 43 - 6 7 * 2 84 /
null
https://raw.githubusercontent.com/bennn/forth/2e9247b1b8c28402d0eecfc3fb97e805e3074255/examples/arithmetic.rkt
racket
#lang forth 21 21 + 1 43 - 6 7 * 2 84 /
39c01d65467ad52a7563b51b7b110e90aced3df41357013c0359586843750b84
danielmiladinov/joy-of-clojure
lists.clj
;; Lists: Clojure's code-form data structure ;; --------------------------------------------------------------------------------------------------------------------- Clojure 's PersistentLists are by far the simplest of Clojure 's persistent collection types . A PersistentList is a ;; singly linked list where each no...
null
https://raw.githubusercontent.com/danielmiladinov/joy-of-clojure/cad7d1851e153beb12a2cd536eb467be12cb7a73/src/joy-of-clojure/chapter5/lists.clj
clojure
Lists: Clojure's code-form data structure --------------------------------------------------------------------------------------------------------------------- singly linked list where each node knows its distance from the end. List elements can only be found by starting with Lists are almost exclusively used to re...
Clojure 's PersistentLists are by far the simplest of Clojure 's persistent collection types . A PersistentList is a the first element and walking each prior node in order , and can only be added or removed from the left end . return value for a macro . If the final usage of a collection is n't as Clojure code , ...
c8cda4de24858f513304ef2a7114d4466b0bf56ebfa5d87ebead35d5c29e713e
earl-ducaine/cl-garnet
dialog-box.lisp
(defvar db-init (progn (garnet-load "gadgets:error-gadget-loader") (garnet-load "gadgets:motif-error-gadget-loader") (garnet-load "gadgets:motif-prop-sheet-win-loader") (garnet-load "gadgets:motif-save-gadget-loader"))) (when (boundp 'WIN) (opal:destroy WIN)) (create-instance 'WIN inter:interactor-...
null
https://raw.githubusercontent.com/earl-ducaine/cl-garnet/f0095848513ba69c370ed1dc51ee01f0bb4dd108/doc/src/gadgets/garnet-code/dialog-box.lisp
lisp
(defvar db-init (progn (garnet-load "gadgets:error-gadget-loader") (garnet-load "gadgets:motif-error-gadget-loader") (garnet-load "gadgets:motif-prop-sheet-win-loader") (garnet-load "gadgets:motif-save-gadget-loader"))) (when (boundp 'WIN) (opal:destroy WIN)) (create-instance 'WIN inter:interactor-...
730a8a4c30af276a2e6e811bd3e486ba363a28079ec5df922bfe94415c80d207
namin/clpsmt-miniKanren
clpsmt-basic-tests.scm
(test "counters" (let ((c1 z3-counter-check-sat) (c2 z3-counter-get-model)) (run* (q) (z/assert `(= ,q 0))) (list (- z3-counter-check-sat c1) (- z3-counter-get-model c2))) '(4 1)) (test "declare-idempotent" (run* (q) (fresh (v1 v2) (z/ `(declare-const ,v1 Bool)) (z...
null
https://raw.githubusercontent.com/namin/clpsmt-miniKanren/4fa74fb973c95b7913f0e0239852f18a23073ccc/clpsmt-basic-tests.scm
scheme
TODO: what do we really want here? syntax lambda or actual lambda?
(test "counters" (let ((c1 z3-counter-check-sat) (c2 z3-counter-get-model)) (run* (q) (z/assert `(= ,q 0))) (list (- z3-counter-check-sat c1) (- z3-counter-get-model c2))) '(4 1)) (test "declare-idempotent" (run* (q) (fresh (v1 v2) (z/ `(declare-const ,v1 Bool)) (z...
21c4ef2fbe6fa2a3b3aa4c86a0461e8df3148c4f2dc38fd3db7430271dad9b54
grin-compiler/ghc-grin
boyer2.hs
module Main(main) where import Lisplikefns import import Rulebasetext import Checker module Lisplikefns ( ( .. ) , Lisplist ( .. ) , LUT , mkLisplist , strToToken , tv , atom , car , cdr , cadr , caddr , cadddr , assoc , newLUT , addtoLUT , getLUT --) --where type Token = String -- "(" or ")" ...
null
https://raw.githubusercontent.com/grin-compiler/ghc-grin/ebc4dca2e1f5b3581d4b84726730564ce909d786/ghc-grin-benchmark/boquist-grin-bench/spectral/boyer2/boyer2.hs
haskell
) where "(" or ")" or "Lisp Symbol" stringGT :: String -> String -> Bool stringGT x y = y `stringLT` x These functions provide more complex operations based on a Lisp-like functionality, they do not exactly match the equivalent Lisp functions set-up functions for creating rulebase from text strings M...
module Main(main) where import Lisplikefns import import Rulebasetext import Checker module Lisplikefns ( ( .. ) , Lisplist ( .. ) , LUT , mkLisplist , strToToken , tv , atom , car , cdr , cadr , caddr , cadddr , assoc , newLUT , addtoLUT , getLUT deriving ( Eq , : Text- } ) eq :: Lisplist ...
1467f194c8d9edb4307c53882b9b8f9beabf724844c68f6e24685374c91042a4
libguestfs/virt-v2v
input_vcenter_https.mli
virt - v2v * Copyright ( C ) 2009 - 2021 Red Hat Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option ) any later ...
null
https://raw.githubusercontent.com/libguestfs/virt-v2v/7691f8e853d21980aac3008237a55f6bc291581c/input/input_vcenter_https.mli
ocaml
* Input from vCenter over HTTPS
virt - v2v * Copyright ( C ) 2009 - 2021 Red Hat Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option ) any later ...
747ea826e28c1baefb01da582f8bf3dd0d4db02f2609e18825e66c8228808b06
zenhack/mule
to_js.ml
open Common_ast module Js = Js_pre module D = Desugared_ast let intrinsics_env = ["int"; "text"; "char"] |> List.map ~f:(fun v -> let v = Var.of_string v in (v, `Var v) ) |> Map.of_alist_exn (module Var) let force e = Js.Call1(Js.Var (Var.of_string "$force"), e) let translate_var env v = match U...
null
https://raw.githubusercontent.com/zenhack/mule/f3e23342906d834abb9659c72a67c1405c936a00/src/mule/lib/to_js.ml
ocaml
open Common_ast module Js = Js_pre module D = Desugared_ast let intrinsics_env = ["int"; "text"; "char"] |> List.map ~f:(fun v -> let v = Var.of_string v in (v, `Var v) ) |> Map.of_alist_exn (module Var) let force e = Js.Call1(Js.Var (Var.of_string "$force"), e) let translate_var env v = match U...
20283f2d14d1f90551b0f725858a4e4af5cfdd7fc43125d1b299748d05989fb0
8c6794b6/guile-tjit
t-catch.scm
;; Test that nonlocal exits of the VM work. (begin (define (foo thunk) (catch #t thunk (lambda args args))) (foo (lambda () (let ((a 'one)) (1+ a)))))
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/test-suite/vm/t-catch.scm
scheme
Test that nonlocal exits of the VM work.
(begin (define (foo thunk) (catch #t thunk (lambda args args))) (foo (lambda () (let ((a 'one)) (1+ a)))))
a29ede6e3438eee61ce94f0a8953e64257ce9a40f60d3fc88b4e735059a25a59
degree9/uikit-hl
width.cljs
(ns uikit-hl.width (:require [clojure.string :as s] [hoplon.core :as h] [hoplon.jquery])) (defn- format-width [width] (-> (str "uk-" width) (s/replace #"-s$" "@s") (s/replace #"-m$" "@m") (s/replace #"-l$" "@l"))) (defmethod h/do! ::default [elem kw v] (h/do! elem :class {(...
null
https://raw.githubusercontent.com/degree9/uikit-hl/b226b1429ea50f8e9a6c1d12c082a3be504dda33/src/uikit_hl/width.cljs
clojure
(ns uikit-hl.width (:require [clojure.string :as s] [hoplon.core :as h] [hoplon.jquery])) (defn- format-width [width] (-> (str "uk-" width) (s/replace #"-s$" "@s") (s/replace #"-m$" "@m") (s/replace #"-l$" "@l"))) (defmethod h/do! ::default [elem kw v] (h/do! elem :class {(...
7f653eca30032faf6b2ba05725b05d7a4b413d83967f142de2da3e91ec374858
phadej/cabal-refact
Structure.hs
{-# LANGUAGE DeriveTraversable #-} # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # module Distribution.Refact.Types.Structure where import Prelude () import Distribution.Refact.Internal.Prelude import Distribution.Refact.Types.Version import qualified Data.Text as T -------------------------------------...
null
https://raw.githubusercontent.com/phadej/cabal-refact/9442736429e498f95dc24866c97be587113206ab/src/Distribution/Refact/Types/Structure.hs
haskell
# LANGUAGE DeriveTraversable # ----------------------------------------------------------------------------- Field ----------------------------------------------------------------------------- and sections (@library ...@). ----------------------------------------------------------------------------- Field Values ---...
# LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # module Distribution.Refact.Types.Structure where import Prelude () import Distribution.Refact.Internal.Prelude import Distribution.Refact.Types.Version import qualified Data.Text as T | Field list . type Fields ann = [Sum Comment Field ann] | A Cabal...
fd215b9a15e32cfa78c897c1596a79d4424abef3b42298e8c97ebe23249a35a5
graninas/Hydra
FTLI.hs
module Hydra.Core.Lang.FTLI where import Hydra.Prelude import qualified Hydra.Core.FTL as L import Hydra.Core.Logger.FTLI () import Hydra.Core.Random.FTLI () import qualified Hydra.Core.RLens as RLens import qualified Hydra.Runtime as ...
null
https://raw.githubusercontent.com/graninas/Hydra/60d591b1300528f5ffd93efa205012eebdd0286c/lib/hydra-free/src/Hydra/Core/Lang/FTLI.hs
haskell
instance MonadIO m => L.LangL (ReaderT R.CoreRuntime m) where Compiles but wrong. Doesn't work atomically stmlAction = do coreRt <- ask let stmAction = runReaderT stmlAction coreRt res <- liftIO $ atomically stmAction pure res Doesn't work instance L.StateLLangL (ReaderT R.CoreRuntime IO) wh...
module Hydra.Core.Lang.FTLI where import Hydra.Prelude import qualified Hydra.Core.FTL as L import Hydra.Core.Logger.FTLI () import Hydra.Core.Random.FTLI () import qualified Hydra.Core.RLens as RLens import qualified Hydra.Runtime as ...
cc6c0d1e5207f30a3af23d848f227d003e982399027806b2e2f06402b70acf05
mzp/coq-ruby
preferences.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ruby/99b9f87c4397f705d1210702416176b13f8769c1/ide/preferences.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** mutable use_utf8_notation : b...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * i $ I d : preferences.mli 1...
d0b5674d2e57dc7696a5274db4d8fce3ac8dfaee72b727f546af32c79a028f4e
mooreryan/pasv
pasv.ml
open! Core open Cmdliner open Little_logger open Pasv_lib let parse_cli () = match Term.eval_choice Cli.Command.Root.program Cli.subcommands with | `Ok opts -> Either.first opts | `Help | `Version -> Either.second 0 | `Error _ -> Either.second 1 let main () = Logger.set_log_level Logger.Level.Debug; matc...
null
https://raw.githubusercontent.com/mooreryan/pasv/218d3bbd66069b124e255db8ff0d7fedc34a7428/bin/pasv.ml
ocaml
open! Core open Cmdliner open Little_logger open Pasv_lib let parse_cli () = match Term.eval_choice Cli.Command.Root.program Cli.subcommands with | `Ok opts -> Either.first opts | `Help | `Version -> Either.second 0 | `Error _ -> Either.second 1 let main () = Logger.set_log_level Logger.Level.Debug; matc...
8a5511c627ec5832f5b1af52b5a8f86ef014df6522f398d4dfa7c73075210b44
magnars/emacsrocks.com
episodes.clj
(ns emacs-rocks.page.episodes (:require [clojure.java.io :as io] [emacs-rocks.page.index :refer [episode-link]] [hiccup.core :refer [html]])) (defn render-episode-page [content episode next] (html [:div {:id "episode"} [:h1 "Emacs Rocks! " [:span.nowrap "Episode " (:number episo...
null
https://raw.githubusercontent.com/magnars/emacsrocks.com/21f899f133f4ec9bc23cbe5cc884978cc6f21087/src/emacs_rocks/page/episodes.clj
clojure
(ns emacs-rocks.page.episodes (:require [clojure.java.io :as io] [emacs-rocks.page.index :refer [episode-link]] [hiccup.core :refer [html]])) (defn render-episode-page [content episode next] (html [:div {:id "episode"} [:h1 "Emacs Rocks! " [:span.nowrap "Episode " (:number episo...
c51a9af0a3d12781757218786ea1eb17fe58de0f3f54c89556358b173cf133ed
archimag/cl-pdf
png.lisp
cl - pdf copyright 2002 - 2005 see license.txt for the details ;;; You can reach me at or ;;; The homepage of cl-pdf is here: -pdf.html (in-package #:pdf) PNG Images code proposal by Notes : ;;; The /ProcSet entry of page resource dictionary should be expanded to [ /PDF /Text ] ;;; for compatibilit...
null
https://raw.githubusercontent.com/archimag/cl-pdf/b4925b5df9cb07b37ce4246c91914853e565a5bb/png.lisp
lisp
You can reach me at or The homepage of cl-pdf is here: -pdf.html The /ProcSet entry of page resource dictionary should be expanded to for compatibility with existing viewer applications. Acrobat error "There was an error processing a page. A drawing error occurred" Reason: Acrobat 5 has a bug and is unabl...
cl - pdf copyright 2002 - 2005 see license.txt for the details (in-package #:pdf) PNG Images code proposal by Notes : [ /PDF /Text ] It is considered obsolete in PDF 1.4 ( section 9.1 ) Workaround : Remove transparency or save your image in 16 colors ( 4 bits per pixel ) (declaim (ftype (functi...
1c46ba706be858453cf3284151dfa73400fb04df5b5ae8f6a213c1e645dca9ce
rowangithub/DOrder
oprint.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) Proje...
null
https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/typing/oprint.mli
ocaml
********************************************************************* Objective Caml ...
Projet Cristal , INRIA Rocquencourt Copyright 2002 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 : oprint.mli 10486 20...
a3285ace09f7db81fe5fecb7df15b72c8b3c404f45c43ab921777a2b04809b5f
cse-bristol/110-thermos-ui
help.clj
This file is part of THERMOS , copyright © Centre for Sustainable Energy , 2017 - 2021 Licensed under the Reciprocal Public License v1.5 . See LICENSE for licensing details . (ns thermos-backend.routes.help (:require [thermos-backend.routes.responses :refer :all] [ring.util.response :as response] ...
null
https://raw.githubusercontent.com/cse-bristol/110-thermos-ui/e13b96329f3c95e5a10bae431e8ae9bccdb475f4/src/thermos_backend/routes/help.clj
clojure
This file is part of THERMOS , copyright © Centre for Sustainable Energy , 2017 - 2021 Licensed under the Reciprocal Public License v1.5 . See LICENSE for licensing details . (ns thermos-backend.routes.help (:require [thermos-backend.routes.responses :refer :all] [ring.util.response :as response] ...
6c35158fc17a8d877ceaac02571ef78c8b4ccf8f81af1db28588f273db840f51
lexi-lambda/racket-collections
collection.rkt
#lang racket/base (require (except-in data/collection/collection map) data/collection/sequence data/collection/indexable data/collection/countable data/collection/contract data/collection/match (only-in data/functor map)) (provide (all-from-out data/collection/collection data/collection/sequence ...
null
https://raw.githubusercontent.com/lexi-lambda/racket-collections/c4822fc200b0488922cd6e86b4f2ea7cf8c565da/collections-lib/data/collection.rkt
racket
#lang racket/base (require (except-in data/collection/collection map) data/collection/sequence data/collection/indexable data/collection/countable data/collection/contract data/collection/match (only-in data/functor map)) (provide (all-from-out data/collection/collection data/collection/sequence ...
bf39bcf4f19f783ae4378bb7edd2586a29911bf0c69ba68f5702b1df385bd718
NorfairKing/declops
Check.hs
# LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # module Declops.Command.Check (declopsCheck, declopsCheckResults) where import Control.Monad import Control.Monad.IO.Class import Control.Monad.Logger import Control.Monad.Trans import Data.Aeson as JSON import Data.Map (Map) impor...
null
https://raw.githubusercontent.com/NorfairKing/declops/796aa923d43c75268b2b96a04e1d5d9d35486d5d/declops/src/Declops/Command/Check.hs
haskell
# LANGUAGE OverloadedStrings # Make the check result available for dependents to be checked as well Log the result
# LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # module Declops.Command.Check (declopsCheck, declopsCheckResults) where import Control.Monad import Control.Monad.IO.Class import Control.Monad.Logger import Control.Monad.Trans import Data.Aeson as JSON import Data.Map (Map) import qualified Data.Map as M import qu...
941815d4972a88eda634e3d160eda1d182c9ec1240812295d2bf7b7ecae25bb0
maximedenes/native-coq
printer.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/maximedenes/native-coq/3623a4d9fe95c165f02f7119c0e6564a83a9f4c9/parsing/printer.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * These are the entry points for pri...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Names open Libna...
4145eed53679c7abdea239103f58e6bde7946c8d08541cac3558174e6f0897d5
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
GetRadarValueListsValueList.hs
{-# LANGUAGE ExplicitForAll #-} {-# LANGUAGE MultiWayIf #-} CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} | Contains the different functions to run the operation getRadarValueListsValueList module ...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Operations/GetRadarValueListsValueList.hs
haskell
# LANGUAGE ExplicitForAll # # LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | > GET /v1/radar/value_lists/{value_list} | Contains all available parameters of this operation (query and path parameters) | Monadic computation which returns the result of the operation | Defines the object schema located at @pat...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . | Contains the different functions to run the operation getRadarValueListsValueList module StripeAPI.Operations.GetRadarValueListsValueList where import qualified Control.Monad.Fail imp...
c7d3be8504a7083c9ead3afd600a7b088fd2dce1556007f9c720dc2e83304027
GaloisInc/HaNS
Network.hs
# LANGUAGE RecordWildCards # # LANGUAGE PatternSynonyms # module Hans.Network ( module Hans.Network, module Hans.Network.Types ) where import Hans.Addr (NetworkAddr) import Hans.Addr.Types (Addr(..)) import Hans.Checksum (PartialChecksum) import Hans.Device.Types (Dev...
null
https://raw.githubusercontent.com/GaloisInc/HaNS/2af19397dbb4f828192f896b223ed2b77dd9a055/src/Hans/Network.hs
haskell
| Interaction with routing and message delivery for a network layer. the network. | Lookup a route to reach this destination address. | Send a single datagram to a destination. ^ Source ^ Destination ^ Next-hop ^ Don't fragment # INLINE sendDatagram # | Send a datagram and lookup routing information at the sam...
# LANGUAGE RecordWildCards # # LANGUAGE PatternSynonyms # module Hans.Network ( module Hans.Network, module Hans.Network.Types ) where import Hans.Addr (NetworkAddr) import Hans.Addr.Types (Addr(..)) import Hans.Checksum (PartialChecksum) import Hans.Device.Types (Dev...
9a454d3d15da0a777ed617b09523d72ce4b571b387e9f7f85dba079889e30c24
jabber-at/ejabberd
ejabberd_s2s_out.erl
%%%------------------------------------------------------------------- Created : 16 Dec 2016 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2018 ProcessOne %%% %%% This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by th...
null
https://raw.githubusercontent.com/jabber-at/ejabberd/7bfec36856eaa4df21b26e879d3ba90285bad1aa/src/ejabberd_s2s_out.erl
erlang
------------------------------------------------------------------- This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHA...
Created : 16 Dec 2016 by < > ejabberd , Copyright ( C ) 2002 - 2018 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 License along with this program ; ...
f614865085e9c8625a23b11d86d1e1ef3f5f38b149899da075f8bd5401bea482
alphagov/govuk-guix
govuk-puppet.scm
(define-module (gds data govuk sources govuk-puppet) #:use-module (srfi srfi-1) #:use-module (srfi srfi-9) #:use-module (srfi srfi-19) #:use-module (srfi srfi-26) #:use-module (ice-9 match) #:use-module (ice-9 ftw) #:use-module (web uri) #:use-module (json) #:use-module (guix gexp) #:use-module (gcr...
null
https://raw.githubusercontent.com/alphagov/govuk-guix/dea8c26d2ae882d0278be5c745e23abb25d4a4e2/gds/data/govuk/sources/govuk-puppet.scm
scheme
Source file handling ("manuals_publisher_production" . (,manuals-publisher-service-type)) Extract handling govuk-puppet source data directory with index G-expressions handle lists, so construct a list from the record fields Drop the hash and dash prefix If the uri is using the file scheme, check if the re...
(define-module (gds data govuk sources govuk-puppet) #:use-module (srfi srfi-1) #:use-module (srfi srfi-9) #:use-module (srfi srfi-19) #:use-module (srfi srfi-26) #:use-module (ice-9 match) #:use-module (ice-9 ftw) #:use-module (web uri) #:use-module (json) #:use-module (guix gexp) #:use-module (gcr...
baa222e52642356f6531449593d1e434066e89674a830c32bbccdc311c64cc10
input-output-hk/cardano-ledger-byron
Tag.hs
# LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} module Cardano.Crypto.Signing.Tag ( SignTag(..) , signTag , signTagDecoded ) where import Cardano.Prelude import qualified Cardano.Crypto.Wallet as CC import Formatting (bprint, shown) import Formatting.Buildab...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger-byron/d309449e6c303a9f0dcc8dcf172df6f0b3195ed5/crypto/src/Cardano/Crypto/Signing/Tag.hs
haskell
# LANGUAGE OverloadedStrings # | To protect against replay attacks (i.e. when an attacker intercepts a signed piece of data and later sends it again), we add a tag to all data that we sign. This ensures that even if some bytestring can be deserialized We also automatically add the network tag ('protocolMagic...
# LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # module Cardano.Crypto.Signing.Tag ( SignTag(..) , signTag , signTagDecoded ) where import Cardano.Prelude import qualified Cardano.Crypto.Wallet as CC import Formatting (bprint, shown) import Formatting.Buildable (Buildable(..)) import Cardano....
4e610db147a85601c682d63350b9fe401e4737a5d491e13dc4a527d2e80578e9
jordwalke/rehp
takc.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/jordwalke/rehp/f122b94f0a3f06410ddba59e3c9c603b33aadabf/benchmarks/sources/ml/takc.ml
ocaml
********************************************************************* Objective Caml ...
, 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 : takc.ml 7017 2005 - 08 - 12 0...
a48d462250c20b6fb8ab196f12cff5e4db962f28a075e6513e7583c0a7c36fcc
haskell-repa/repa
Map.hs
module Data.Array.Repa.Vector.Operators.Map (Map(..)) where import Data.Array.Repa.Vector.Base import Data.Array.Repa.Vector.Repr.Delayed import Data.Array.Repa.Vector.Repr.Unboxed import Data.Array.Repa.Vector.Repr.Flow import qualified Data.Array.Repa.Flow.Par as F import qualified Data.Vector.Unboxed ...
null
https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/icebox/abandoned/repa-vector/Data/Array/Repa/Vector/Operators/Map.hs
haskell
| Vector map where the representation of the result depends on the representation of the source. Delayed Flows
module Data.Array.Repa.Vector.Operators.Map (Map(..)) where import Data.Array.Repa.Vector.Base import Data.Array.Repa.Vector.Repr.Delayed import Data.Array.Repa.Vector.Repr.Unboxed import Data.Array.Repa.Vector.Repr.Flow import qualified Data.Array.Repa.Flow.Par as F import qualified Data.Vector.Unboxed ...
d5d4ce33123e779d8463cdaa755efc4b5be98a789a6197bef727f16a20805897
qnikst/imagemagick
round_mask.hs
{-# LANGUAGE OverloadedStrings #-} Last updated 2008/11/04 11:11 -- -server/viewtopic.php?f=10&t=10993 convert -size 640x480 xc : none -fill white -draw ' roundRectangle 15,15 624,464 15,15 ' logo : -compose SrcIn -composite mask_result.png -- import Graphics.ImageMagick.MagickWand main :: IO () main =...
null
https://raw.githubusercontent.com/qnikst/imagemagick/bc9e7ac85749f42a87901b722c5d36a8bed07d5c/examples/round_mask.hs
haskell
# LANGUAGE OverloadedStrings # -server/viewtopic.php?f=10&t=10993 Create the initial 640x480 transparent canvas function and isn't used or needed by MagickCompositeImage Write the new image
Last updated 2008/11/04 11:11 convert -size 640x480 xc : none -fill white -draw ' roundRectangle 15,15 624,464 15,15 ' logo : -compose SrcIn -composite mask_result.png import Graphics.ImageMagick.MagickWand main :: IO () main = withMagickWandGenesis $ do (_,mWand) <- magickWand (_,lWand)...
c3abc7532cb44601c02b824f1dda089090533b582ebd8a7431361f01efa260d1
utdemir/distributed-dataset
Aggr.hs
# LANGUAGE ExistentialQuantification # # LANGUAGE ScopedTypeVariables # # LANGUAGE StaticPointers # module Control.Distributed.Dataset.Internal.Aggr ( Aggr (..), aggrFromMonoid, aggrFromReduce, aggrFromFold, aggrConst, ) where import Control.Applicative.Static import Control.Distributed.Closure im...
null
https://raw.githubusercontent.com/utdemir/distributed-dataset/a582a96e541884580e66bc5d87b4d498c8d58182/distributed-dataset/src/Control/Distributed/Dataset/Internal/Aggr.hs
haskell
| Represent an aggregation which takes many 'a's and returns a single 'b'. You can use the 'StaticApply' and 'StaticProfunctor' instances to compose @ aggrConst (static (/)) @ | Create an aggregation given a 'Monoid' instance. | Create an aggregation given a reduce function. | This is the most primitive w...
# LANGUAGE ExistentialQuantification # # LANGUAGE ScopedTypeVariables # # LANGUAGE StaticPointers # module Control.Distributed.Dataset.Internal.Aggr ( Aggr (..), aggrFromMonoid, aggrFromReduce, aggrFromFold, aggrConst, ) where import Control.Applicative.Static import Control.Distributed.Closure im...
4f8e50245cd3a1baf6717d72aa87eea1f651543d790d1f71bbc449053b3a2014
adityaathalye/sicp
ex1-41-double-procedure.scm
Ex . 1.41 Double procedure (define (double f) (lambda (x) (f (f x)))) (define (inc x) (+ x 1))
null
https://raw.githubusercontent.com/adityaathalye/sicp/c8b62c366dade1d5101238a32267dab177808105/ex1-41-double-procedure.scm
scheme
Ex . 1.41 Double procedure (define (double f) (lambda (x) (f (f x)))) (define (inc x) (+ x 1))
ba61908b6a926eb22fedb34d25547542c9d6d91f892a10f3f9e264257b9ad481
haskell-opengl/OpenGLRaw
StencilTwoSide.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.EXT.StencilTwoSide Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- -----------------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/EXT/StencilTwoSide.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.GL.EXT.StencilTwoSide License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Enums * Function...
# LANGUAGE PatternSynonyms # Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.EXT.StencilTwoSide ( glGetEXTStencilTwoSide, gl_EXT_stencil_two_side, pattern GL_ACTIVE_STENCIL_FACE_EXT, pattern GL_STENCIL_TEST_TWO_SIDE_EXT, glActiveStencilFaceEXT ) where import Graphics.GL.Extensio...
c9def8733fb722ff35d430c5ef512b6edba09cf3e29c15c5d1bc5623eb079701
S8A/htdp-exercises
ex030.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex030) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "universe.rkt...
null
https://raw.githubusercontent.com/S8A/htdp-exercises/578e49834a9513f29ef81b7589b28081c5e0b69f/ex030.rkt
racket
about the language level of this file in a form that our tools can easily process. Compact, write-only formula both formulas down to the nearest dime.
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex030) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "universe.rkt" "teachpack" "2htdp") (lib "batch-io.rkt" "teachpack" "2htdp"))) (htdp-settings #(#t ...
4495bc237fb5b0afc9c306fd01d18b96946c8bbc6e930775aab940ed00c862aa
CloudI/CloudI
cloudi_service_api.erl
-*-Mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*- ex : set utf-8 sts=4 ts=4 sw=4 et nomod : %%% %%%------------------------------------------------------------------------ %%% @doc = = CloudI Service API Module== A module that exposes dynamic configuration of Cloud...
null
https://raw.githubusercontent.com/CloudI/CloudI/89554dac45a99879609366eb884cdeec06adc26d/src/lib/cloudi_core/src/cloudi_service_api.erl
erlang
------------------------------------------------------------------------ @doc @end Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, publish, distribute, sublicense, Softwar...
-*-Mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*- ex : set utf-8 sts=4 ts=4 sw=4 et nomod : = = CloudI Service API Module== A module that exposes dynamic configuration of CloudI. MIT License Copyright ( c ) 2011 - 2023 Michael Truog < mjtruog at protonmail dot ...
e131b0073e353218ec1cbe8a2053033f6d5e71779817f6d083593a7900ff5b29
cram2/cram
vector-standard-deviation-with-fixed-mean.lisp
Regression test VECTOR - STANDARD - DEVIATION - WITH - FIXED - MEAN for GSLL , automatically generated ;; Copyright 2009 , 2011 Distributed under the terms of the GNU General Public License ;; ;; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public...
null
https://raw.githubusercontent.com/cram2/cram/dcb73031ee944d04215bbff9e98b9e8c210ef6c5/cram_3rdparty/gsll/src/tests/vector-standard-deviation-with-fixed-mean.lisp
lisp
This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Publi...
Regression test VECTOR - STANDARD - DEVIATION - WITH - FIXED - MEAN for GSLL , automatically generated Copyright 2009 , 2011 Distributed under the terms of the GNU General Public License it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of ...
45b83f95e17db6fcd2c6761c8b9018b0b1e7ad9c1533af9ac2bc88baa2e7690a
goblint/analyzer
witness.ml
open MyCFG open Graphml open Svcomp open GobConfig module type WitnessTaskResult = TaskResult with module Arg.Edge = MyARG.InlineEdge let write_file filename (module Task:Task) (module TaskResult:WitnessTaskResult): unit = let module Invariant = WitnessUtil.Invariant (Task) in let module TaskResult = (val if...
null
https://raw.githubusercontent.com/goblint/analyzer/35d5ac7c41f178776424330ddba5472976754239/src/witness/witness.ml
ocaml
TODO: don't duplicate this logic with write_node, write_edge startlines aren't currently interesting because broken, see below GML.write_key g "node" "goblintNode" "string" None; GML.write_key g "node" "sourcecode" "string" None; TODO: remove GML.write_key g "edge" "enterFunction2" "string" None; GML.write...
open MyCFG open Graphml open Svcomp open GobConfig module type WitnessTaskResult = TaskResult with module Arg.Edge = MyARG.InlineEdge let write_file filename (module Task:Task) (module TaskResult:WitnessTaskResult): unit = let module Invariant = WitnessUtil.Invariant (Task) in let module TaskResult = (val if...
bc7c4aa2187950695d4881d89a10e24b499b0ede13865699b98e029703bb2071
metaocaml/ber-metaocaml
pr5892.ml
(* TEST flags = " -w A -strict-sequence " * expect *) open CamlinternalOO;; type _ choice = Left : label choice | Right : tag choice;; [%%expect {| type _ choice = Left : CamlinternalOO.label choice | Right : CamlinternalOO.tag choice |}] let f : label choice -> bool = function Left -> true;; (* warn *) ...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/typing-warnings/pr5892.ml
ocaml
TEST flags = " -w A -strict-sequence " * expect warn warn
open CamlinternalOO;; type _ choice = Left : label choice | Right : tag choice;; [%%expect {| type _ choice = Left : CamlinternalOO.label choice | Right : CamlinternalOO.tag choice |}] [%%expect {| Line 1, characters 31-52: ^^^^^^^^^^^^^^^^^^^^^ Warning 8: this pattern-matchi...
56962f3398a324de3e7c2681892e7a6feb0017ba20388359827969e3bde51c0b
rowangithub/DOrder
icse2014.ml
let rec loop x y = if x < 11 then if (x >= 5) then loop (x+1) (y+1) else loop (x+1) y else y let main x = let y = 5 in let x = if (x > y) then y else x in let res = loop x y in assert (res = 11) let _ = main 12 let _ = main (-2)
null
https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/tests/folprograms/misc/icse2014.ml
ocaml
let rec loop x y = if x < 11 then if (x >= 5) then loop (x+1) (y+1) else loop (x+1) y else y let main x = let y = 5 in let x = if (x > y) then y else x in let res = loop x y in assert (res = 11) let _ = main 12 let _ = main (-2)
cbc646404a740360a1d049085b3169f5854eb4b9ed9e0f46abd0b5393ea8860a
binsec/haunted
ast_builder.mli
(**************************************************************************) This file is part of BINSEC . (* *) Copyright ( C ) 2016 - 2019 CEA ( Co...
null
https://raw.githubusercontent.com/binsec/haunted/7ffc5f4072950fe138f53fe953ace98fff181c73/src/ast/ast_builder.mli
ocaml
************************************************************************ alternatives) you can redistribute it an...
This file is part of BINSEC . Copyright ( C ) 2016 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , ve...