_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
9443b6d457e0c40bf55a830a10cf88f3c2ce85918340358cff4c628d3c8b50b1
batterseapower/haskell-kata
DelayedApplicativeGADTModular2.hs
# LANGUAGE GADTs , ScopedTypeVariables # module Process2 where import Control.Applicative (Applicative(..), liftA2, (<$>)) import Control.Monad (liftM, liftM2, ap, join) import Data.Foldable (Foldable(..), toList) import Data.Traversable (Traversable(..), fmapDefault, foldMapDefault) import Debug.Trace data DelaySt...
null
https://raw.githubusercontent.com/batterseapower/haskell-kata/49c0c5cf48f8e5549131c78d026e4f2aa73d8a7a/DelayedApplicativeGADTModular2.hs
haskell
and make some of the consumers simpler. I actually want this generalisation, though. Debugging only ^ Chooses the evaluation strategy ^ How to answer questions in the monad (possibly generating new requests in the process) trace ("iteration: " ++ show qs) $ Simple example supercompiler-alike to show that it all w...
# LANGUAGE GADTs , ScopedTypeVariables # module Process2 where import Control.Applicative (Applicative(..), liftA2, (<$>)) import Control.Monad (liftM, liftM2, ap, join) import Data.Foldable (Foldable(..), toList) import Data.Traversable (Traversable(..), fmapDefault, foldMapDefault) import Debug.Trace data DelaySt...
674f765dbed169610571184c95c86c53614a1b2dede06e4fd7ddb1e95dcd7056
spurious/sagittarius-scheme-mirror
simplex.scm
;;; SIMPLEX -- Simplex algorithm. (define (matrix-rows a) (vector-length a)) (define (matrix-columns a) (FLOATvector-length (vector-ref a 0))) (define (matrix-ref a i j) (FLOATvector-ref (vector-ref a i) j)) (define (matrix-set! a i j x) (FLOATvector-set! (vector-ref a i) j x)) (define (fuck-up) (fatal-error "This ...
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/bench/gambit-benchmarks/simplex.scm
scheme
SIMPLEX -- Simplex algorithm.
(define (matrix-rows a) (vector-length a)) (define (matrix-columns a) (FLOATvector-length (vector-ref a 0))) (define (matrix-ref a i j) (FLOATvector-ref (vector-ref a i) j)) (define (matrix-set! a i j x) (FLOATvector-set! (vector-ref a i) j x)) (define (fuck-up) (fatal-error "This shouldn't happen")) (define (simp...
156f69626011e6707a7792e02b9279aed0bb55dc9fcf971dfd7f19952aecf1c3
IvanRublev/year_progress_bot
endpoint.erl
-module(endpoint). -export([init/2]). -compile([{parse_transform, lager_transform}]). read_body(Req0, Acc) -> case cowboy_req:read_body(Req0) of {ok, Data, Req} -> {ok, << Acc/binary, Data/binary >>, Req}; {more, Data, Req} -> read_body(Req, << Acc/binary, Data/binary >>) end. init(Req0, Opts)...
null
https://raw.githubusercontent.com/IvanRublev/year_progress_bot/c3e85a5598d768933d5fb676c74d92fa8033cf60/apps/year_progress_bot/src/endpoint.erl
erlang
-module(endpoint). -export([init/2]). -compile([{parse_transform, lager_transform}]). read_body(Req0, Acc) -> case cowboy_req:read_body(Req0) of {ok, Data, Req} -> {ok, << Acc/binary, Data/binary >>, Req}; {more, Data, Req} -> read_body(Req, << Acc/binary, Data/binary >>) end. init(Req0, Opts)...
bbda8f963e3cd0090b23a4171c548e9ccfa42d874c146f3d132a3263d1310c9a
adamwalker/clash-riscv
Pipeline.hs
# LANGUAGE DeriveGeneric , , ScopedTypeVariables # module Core.Pipeline where import GHC.Generics import Clash.Prelude import Data.Bool import Core.RegFile import Core.Decode import Core.ALU import Core.Compare import Core.Mem import qualified Core.Debug as D import Core.Debug (ForwardingSource(..)) # ANN module (...
null
https://raw.githubusercontent.com/adamwalker/clash-riscv/84a90731a07c3427695b4926d7159f9e9902c1a1/src/Core/Pipeline.hs
haskell
------------------------------------------- Stage 0 Instruction fetch ------------------------------------------- Jumping via register - results is ready in ALU output - load it Predict branches taken Jumps always taken Business as usual inject nops for all branches and jumps because they are assumed taken ------------...
# LANGUAGE DeriveGeneric , , ScopedTypeVariables # module Core.Pipeline where import GHC.Generics import Clash.Prelude import Data.Bool import Core.RegFile import Core.Decode import Core.ALU import Core.Compare import Core.Mem import qualified Core.Debug as D import Core.Debug (ForwardingSource(..)) # ANN module (...
072034d081ca6c764bed8a568b2b492ce4a69bbf8faa3b1e28f138ab221f3a0c
typelead/eta
Type.hs
( c ) The University of Glasgow 2006 ( c ) The GRASP / AQUA Project , Glasgow University , 1998 -- -- Type - public interface # LANGUAGE CPP , OverloadedStrings , MultiWayIf # # OPTIONS_GHC -fno - warn - orphans # -- | Main functions for manipulating types and type-related things module Eta.Types.Type ( -...
null
https://raw.githubusercontent.com/typelead/eta/97ee2251bbc52294efbf60fa4342ce6f52c0d25c/compiler/Eta/Types/Type.hs
haskell
Type - public interface | Main functions for manipulating types and type-related things Note some of this is just re-exports from TyCon.. * Main data types representing Types $type_classification $representation_types ** Constructing and deconstructing types (Newtypes) Pred types Deconstructing predicate typ...
( c ) The University of Glasgow 2006 ( c ) The GRASP / AQUA Project , Glasgow University , 1998 # LANGUAGE CPP , OverloadedStrings , MultiWayIf # # OPTIONS_GHC -fno - warn - orphans # module Eta.Types.Type ( TyThing(..), Type, KindOrType, PredType, ThetaType, Var, TyVar, isTyVar, mkTyVa...
7dea11f49a80b371da83b622cf23795fbe5e79804e1474bb3921ab902a7fcab5
mtravers/wuwei
error.lisp
(in-package :wu) ;;; +=========================================================================+ | Copyright ( c ) 2009 , 2010 and CollabRx , Inc | ;;; | | | Released under the MIT Open Source License ...
null
https://raw.githubusercontent.com/mtravers/wuwei/c0968cca10554fa12567d48be6f932bf4418dbe1/src/error.lisp
lisp
+=========================================================================+ | | | -license.php | | | | Permission is hereby granted, free of charge, t...
(in-package :wu) | Copyright ( c ) 2009 , 2010 and CollabRx , Inc | | Released under the MIT Open Source License | | " Software " ) , to deal in the Software without restriction , including | | distribute , sublicense , and/or sell copies of the Software ,...
3a211c5b2a1502083b2d1788eabeeebeae711ed1e7af3741d441b3e5e599b94d
FranklinChen/hugs98-plus-Sep2006
Format.hs
-- #hide -------------------------------------------------------------------------------- -- | -- Module : Sound.OpenAL.AL.Format Copyright : ( c ) 2003 - 2005 -- License : BSD-style (see the file libraries/OpenAL/LICENSE) -- -- Maintainer : -- Stability : provisional -- Portability : portab...
null
https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/OpenAL/Sound/OpenAL/AL/Format.hs
haskell
#hide ------------------------------------------------------------------------------ | Module : Sound.OpenAL.AL.Format License : BSD-style (see the file libraries/OpenAL/LICENSE) Maintainer : Stability : provisional Portability : portable ----------------------------------------------------...
Copyright : ( c ) 2003 - 2005 This is a purely internal module for ( un-)marshaling Format . module Sound.OpenAL.AL.Format ( Format(..), marshalFormat, unmarshalFormat ) where import Sound.OpenAL.AL.BasicTypes ( ALenum ) import Sound.OpenAL.Constants ( al_FORMAT_MONO8, al_FORMAT_MONO16, al_FORMAT_STE...
a8e2aa784d114a70b6a6bdf175ddd25959bf1651ffd8142e9f5f05348b59cdeb
rickeyski/slack-api
ChannelOpt.hs
# LANGUAGE OverloadedStrings , TemplateHaskell # module Web.Slack.Types.ChannelOpt where import Data.Aeson import Control.Lens.TH import Control.Applicative import Web.Slack.Types.Event import Web.Slack.Types.Time import Prelude data ChannelOpt = ChannelOpt { _channelOptLastRead :: SlackTimeStamp...
null
https://raw.githubusercontent.com/rickeyski/slack-api/5f6659e09bce19fe0ca9dfce8743bec7de518d77/src/Web/Slack/Types/ChannelOpt.hs
haskell
# LANGUAGE OverloadedStrings , TemplateHaskell # module Web.Slack.Types.ChannelOpt where import Data.Aeson import Control.Lens.TH import Control.Applicative import Web.Slack.Types.Event import Web.Slack.Types.Time import Prelude data ChannelOpt = ChannelOpt { _channelOptLastRead :: SlackTimeStamp...
51c12a65fd53a8812f4ade8f7614b62b897764b2948b2c9aebeb65f0bef679ba
krisajenkins/petrol
view.cljs
(ns petrol-examples.spotify.view (:require [petrol.core :refer [send! send-value!]] [petrol-examples.spotify.messages :as m])) (defn- get-track-image-url [track] (-> track :album :images first :url)) (defn- track-view [{:keys [name] :as track}] [:div.thumbnail (when-let [img-src (get-trac...
null
https://raw.githubusercontent.com/krisajenkins/petrol/607166ab48cf6193b6ad00bcd63bd3ff7f3958f7/examples/src/petrol-examples/spotify/view.cljs
clojure
(ns petrol-examples.spotify.view (:require [petrol.core :refer [send! send-value!]] [petrol-examples.spotify.messages :as m])) (defn- get-track-image-url [track] (-> track :album :images first :url)) (defn- track-view [{:keys [name] :as track}] [:div.thumbnail (when-let [img-src (get-trac...
225c88addb06b57ab43a93dce228551ab62ca1204a71f6dc9734f39ae787a397
danielsz/sketching-with-css-in-clojure
core.clj
(ns fioritto.core (:gen-class)) (defn -main "I don't do a whole lot ... yet." [& args] (println "Hello, World!"))
null
https://raw.githubusercontent.com/danielsz/sketching-with-css-in-clojure/1d71297b626e4841cb15c44f7f3b2cc6d5e25f56/src/fioritto/core.clj
clojure
(ns fioritto.core (:gen-class)) (defn -main "I don't do a whole lot ... yet." [& args] (println "Hello, World!"))
f3ef6bafd9fbcf7d36957a31ea495da94f33cbd1c55f41e5bb17299f04e760de
ygrek/mldonkey
gui_config.ml
Copyright 2001 , 2002 b8_bavard , b8_fee_carabine , This file is part of mldonkey . mldonkey 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 ...
null
https://raw.githubusercontent.com/ygrek/mldonkey/333868a12bb6cd25fed49391dd2c3a767741cb51/src/gtk/gui/gui_config.ml
ocaml
* Configuration panel. * Server options * Colors * Columns options
Copyright 2001 , 2002 b8_bavard , b8_fee_carabine , This file is part of mldonkey . mldonkey 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 ...
86d59ce9a1260b848265519b2cd907312b11e8d834ce853716b401567c04f768
IBM/probzelus
run.ml
* Copyright 2018 - 2020 IBM Corporation * * Licensed under the Apache License , Version 2.0 ( the " License " ) ; * you may not use this file except in compliance with the License . * You may obtain a copy of the License at * * -2.0 * * Unless required by applicable law or agreed to in writin...
null
https://raw.githubusercontent.com/IBM/probzelus/c56573201b43780b9c103e5616bb193ababa3399/benchmarks/gtree/particles/run.ml
ocaml
* Copyright 2018 - 2020 IBM Corporation * * Licensed under the Apache License , Version 2.0 ( the " License " ) ; * you may not use this file except in compliance with the License . * You may obtain a copy of the License at * * -2.0 * * Unless required by applicable law or agreed to in writin...
340b7557463e0588701a0576f797efadf62396fd515e71b192d0b1c561b57d15
3b/cl-opengl
clip.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- clip.lisp --- Lisp version of clip.c ( Red Book examples ) ;;; ;;; Original C version contains the following copyright notice: Copyright ( c ) 1993 - 1997 , Silicon Graphics , Inc. ;;; ALL RIGHTS RESERVED ;;; This program demonstrates arbitrary clipping planes. (...
null
https://raw.githubusercontent.com/3b/cl-opengl/e2d83e0977b7e7ac3f3d348d8ccc7ccd04e74d59/examples/redbook/clip.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- Original C version contains the following copyright notice: ALL RIGHTS RESERVED This program demonstrates arbitrary clipping planes. sphere
clip.lisp --- Lisp version of clip.c ( Red Book examples ) Copyright ( c ) 1993 - 1997 , Silicon Graphics , Inc. (in-package #:cl-glut-examples) (defclass clip-window (glut:window) () (:default-initargs :pos-x 100 :pos-y 100 :width 500 :height 500 :mode '(:single :rgb) :title "clip.lis...
028b596499816cc2fac59fdac7a4ad6f9d43221b08780487c77cce464dccf0e6
phantomics/april
loader.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Coding : utf-8 ; Package : AprilDemo . Ncurses -*- ;; loader.lisp (asdf:load-system 'april-demo.ncurses) (april-demo.ncurses::main) (cl-user::quit)
null
https://raw.githubusercontent.com/phantomics/april/395b37db943133272da30411af324e371a7fccce/demos/ncurses/loader.lisp
lisp
Syntax : ANSI - Common - Lisp ; Coding : utf-8 ; Package : AprilDemo . Ncurses -*- loader.lisp
(asdf:load-system 'april-demo.ncurses) (april-demo.ncurses::main) (cl-user::quit)
94a022e2b35f57b2e819d4bdd8e04ed84148c3868831c3a8d7b5d386a2c6b69d
josefs/Gradualizer
filename.specs.erl
-module(filename). -type deep_list() :: lists:deep_list(char() | atom()). -spec basename(binary()) -> binary(); (string() | atom() | deep_list()) -> string(). -spec dirname(binary()) -> binary(); (string() | atom() | deep_list()) -> string(). -spec rootname(binary()) -> binary(); ...
null
https://raw.githubusercontent.com/josefs/Gradualizer/ba4476fd4ef8e715e49ddf038d5f9f08901a25da/priv/prelude/filename.specs.erl
erlang
-module(filename). -type deep_list() :: lists:deep_list(char() | atom()). -spec basename(binary()) -> binary(); (string() | atom() | deep_list()) -> string(). -spec dirname(binary()) -> binary(); (string() | atom() | deep_list()) -> string(). -spec rootname(binary()) -> binary(); ...
6e90e1e5263e21c4b3fcfd41e9431f5d32e728f6416f439ba68b647711993cf6
rabbitmq/rabbitmq-erlang-client
amqp_channel_sup_sup.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . %% @private -module(amqp_channel_sup_sup). -inclu...
null
https://raw.githubusercontent.com/rabbitmq/rabbitmq-erlang-client/2022e01c515d93ed1883e9e9e987be2e58fe15c9/src/amqp_channel_sup_sup.erl
erlang
--------------------------------------------------------------------------- --------------------------------------------------------------------------- --------------------------------------------------------------------------- ---------------------------------------------------------------------------
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . @private -module(amqp_channel_sup_sup). -include("am...
ab89da2991b193634a8f70fdd4c749255d0c242a31f920d7ced34d053f2baa16
dannypsnl/k
info.rkt
#lang info (define collection 'multi) (define deps '("base" "k-core")) (define build-deps '("rackunit-lib")) (define pkg-desc "library of k") (define pkg-authors '(dannypsnl cybai))
null
https://raw.githubusercontent.com/dannypsnl/k/2b5f5066806a5bbd0733b781a2ed5fce6956a4f5/k-lib/info.rkt
racket
#lang info (define collection 'multi) (define deps '("base" "k-core")) (define build-deps '("rackunit-lib")) (define pkg-desc "library of k") (define pkg-authors '(dannypsnl cybai))
15a08cb12709c02b57538eb05690654f83576e58bfd904c0f091cb2085235637
haskell/cabal
Build.hs
# LANGUAGE CPP # {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # {-# LANGUAGE RankNTypes #-} ----------------------------------------------------------------------------- -- | -- Module : Distribution.Simple.Setup.Build Copyright : 2003 - 2004 ...
null
https://raw.githubusercontent.com/haskell/cabal/ab24689731e9fb45efa6277f290624622a6c214f/Cabal/src/Distribution/Simple/Setup/Build.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE RankNTypes # --------------------------------------------------------------------------- | Module : Distribution.Simple.Setup.Build License : BSD3 Maintainer : Portability : portable Definition of the build command-line options. See: @Distribution.Simpl...
# LANGUAGE CPP # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # Copyright : 2003 - 2004 2007 module Distribution.Simple.Setup.Build ( BuildFlags(..), emptyBuildFlags, defaultBuildFlags, buildCommand, DumpBuildInfo(..), buildOptions, ) where import Prelude () imp...
574205813008a3ef2327b7ae64caa30bdfbcda4395fec3f8db5b1e20f4e7b6d9
well-typed/large-records
R050.hs
#if PROFILE_CORESIZE {-# OPTIONS_GHC -ddump-to-file -ddump-ds-preopt -ddump-ds -ddump-simpl #-} #endif #if PROFILE_TIMING {-# OPTIONS_GHC -ddump-to-file -ddump-timings #-} #endif # LANGUAGE OverloadedLabels # {-# OPTIONS_GHC -fplugin=Data.Record.Anon.Plugin #-} module Experiment.UpdateOne.Sized.R050 where import Da...
null
https://raw.githubusercontent.com/well-typed/large-records/cbeb9e710f297a2afd579b8d475e3734b80a9ccc/large-records-benchmarks/bench/large-anon/Experiment/UpdateOne/Sized/R050.hs
haskell
# OPTIONS_GHC -ddump-to-file -ddump-ds-preopt -ddump-ds -ddump-simpl # # OPTIONS_GHC -ddump-to-file -ddump-timings # # OPTIONS_GHC -fplugin=Data.Record.Anon.Plugin #
#if PROFILE_CORESIZE #endif #if PROFILE_TIMING #endif # LANGUAGE OverloadedLabels # module Experiment.UpdateOne.Sized.R050 where import Data.Record.Anon.Simple (Record) import qualified Data.Record.Anon.Simple as Anon import Bench.Types import Common.RowOfSize.Row050 updateOne :: Record ExampleRow -> Record Examp...
83e572a40fb34da31eeebe6d33292895c9481bf440692abbbd6c2ef1c4b1fa17
onedata/op-worker
atm_list_store_content_browse_result.erl
%%%------------------------------------------------------------------- @author ( C ) 2022 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc %%% Record expressing store content br...
null
https://raw.githubusercontent.com/onedata/op-worker/2db1516da782d8acc6bdd2418a3791819ff19581/src/modules/automation/store/container/list/atm_list_store_content_browse_result.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc Record expressing store content browse result specialization for list store used in automation machinery. @end ----------------------------------------------------------...
@author ( C ) 2022 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . -module(atm_list_store_content_browse_result). -author("Bartosz Walkowicz"). -behaviour(atm_store_content_browse_result). -include("modules/automation/atm_execution.hrl"). -export([to_json/1]). ...
a6c0e660c7db1378ed37453b52ba26a78245e1cdc61bec38253c8dffc48e4615
berke/aurochs
html.ml
(* Html *) Copyright ( C)2000 - 2006 Released under the GNU Lesser General Public License version 2.1 open Entity;; let sf = Printf.sprintf;; type html_document = { head: html_head; body: html_element * html_properties } and html_head = { title: string; author: string...
null
https://raw.githubusercontent.com/berke/aurochs/637bdc0d4682772837f9e44112212e7f20ab96ff/examples/cgidemo/html.ml
ocaml
Html name, value ISO-8859-1 text ISO-8859-1 text ISO-8859-1 text ISO-8859-1 text pre-formatted text and start_tag_lineaire x = launch_tag x; flush_linear_tag () title css meta body
Copyright ( C)2000 - 2006 Released under the GNU Lesser General Public License version 2.1 open Entity;; let sf = Printf.sprintf;; type html_document = { head: html_head; body: html_element * html_properties } and html_head = { title: string; author: string; chars...
900b5057d47509b9757cac538667f7778d9b795fe9ae0838edfffb28f63253d5
tisnik/clojure-examples
core.clj
(ns enlive2.core (:gen-class)) (require '[net.cgrand.enlive-html :as html]) (html/deftemplate test-page "test.html" [data-for-page] [:title] (html/content (:title data-for-page)) [:h1] (html/content (:title data-for-page)) [:div#paragraph1] (html/content (:paragraph1 data-for-page)) [:div...
null
https://raw.githubusercontent.com/tisnik/clojure-examples/984af4a3e20d994b4f4989678ee1330e409fdae3/enlive2/src/enlive2/core.clj
clojure
(ns enlive2.core (:gen-class)) (require '[net.cgrand.enlive-html :as html]) (html/deftemplate test-page "test.html" [data-for-page] [:title] (html/content (:title data-for-page)) [:h1] (html/content (:title data-for-page)) [:div#paragraph1] (html/content (:paragraph1 data-for-page)) [:div...
d11d81623504903a1b02f4eb1bbf5f57dbfadf5d4d90af2ca1423a339a237b30
pixlsus/registry.gimp.org_static
batch-color-contrast.scm
(define (batch-color-contrast filepath file-extension keep-original apply-highlight highlight-cyan-red highlight-magenta-green highlight-yellow-blue apply-midtone midtone-cyan-red midtone-magenta-green midtone-yellow-blue apply-shadow shadow-cyan-red shadow-magenta-green shadow-yel...
null
https://raw.githubusercontent.com/pixlsus/registry.gimp.org_static/ffcde7400f402728373ff6579947c6ffe87d1a5e/registry.gimp.org/files/batch-color-contrast.scm
scheme
\ Enable indexed images to be edited. Thanks to bakalex92 () / Apply filters \ Enable indexed images to be edited. Thanks to bakalex92 () / Save to file if true if false Register with script-fu. Highlights Midtones Shadows
(define (batch-color-contrast filepath file-extension keep-original apply-highlight highlight-cyan-red highlight-magenta-green highlight-yellow-blue apply-midtone midtone-cyan-red midtone-magenta-green midtone-yellow-blue apply-shadow shadow-cyan-red shadow-magenta-green shadow-yel...
4d5bf3dbe24496dcd358f52a510f0c85d99ac63fb27fd0b159f0bf347e275969
rowangithub/DOrder
313_nest-len.ml
let rec loopb i n = if i < n then loopb (i+1) n else () let rec loopa k n = (assert (1 <= k); loopb 1 n; loopb 1 n; loopb 1 n; loopb 1 n; loopb 1 n; loopb 1 n; loopb 1 n;) let main n = loopa 1 n
null
https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/tests/mochi2/benchs/313_nest-len.ml
ocaml
let rec loopb i n = if i < n then loopb (i+1) n else () let rec loopa k n = (assert (1 <= k); loopb 1 n; loopb 1 n; loopb 1 n; loopb 1 n; loopb 1 n; loopb 1 n; loopb 1 n;) let main n = loopa 1 n
32e92ac10de9505ee922f58d894bffb853e0a650c7cf3cdace0c63dba78158cb
janestreet/sexplib
conv_error.ml
include Sexplib0.Sexp_conv_error
null
https://raw.githubusercontent.com/janestreet/sexplib/b4c3a03b671afadc5d4180224b97f034bec9764f/src/conv_error.ml
ocaml
include Sexplib0.Sexp_conv_error
f0e8020ca2774dfef16dfc7080a8da59933d52e7d8fcc0bef3a5cb14ff81584c
kuchenkruste/lambda-m
Tree.hs
module Tree(Tree(..), Tree.parse, pretty) where import Utility import Text.ParserCombinators.Parsec import Data.Bifunctor import Control.Monad import Data.List data Tree = Var String | Ign | App Tree Tree | Abs Tree Tree | Num Integer | Chr Char | Tuple [Tre...
null
https://raw.githubusercontent.com/kuchenkruste/lambda-m/dec69313d550cb2e7fa391ea9f08a5d238f9f582/src/Tree.hs
haskell
module Tree(Tree(..), Tree.parse, pretty) where import Utility import Text.ParserCombinators.Parsec import Data.Bifunctor import Control.Monad import Data.List data Tree = Var String | Ign | App Tree Tree | Abs Tree Tree | Num Integer | Chr Char | Tuple [Tre...
f8e5fa1d4ed5750d6591b8c82f771488a829550a32400fe6067a756f203a5ae7
glguy/advent2019
Day07.hs
| Module : Main Description : Day 5 solution Copyright : ( c ) , 2019 License : ISC Maintainer : < > To compute our thrust controller feedback loop I evaluate the given Intcode program as a function from input values to output values . Connecting the outputs of one instance of th...
null
https://raw.githubusercontent.com/glguy/advent2019/13f3be89535c12cbae761a6d4165432a2459ccd5/execs/Day07.hs
haskell
| A function from a list of input values to a list of output values. | Run the given amplitude controller in a feedback loop across maximum initial thruster output. >>> part1 (intcodeToList [3,23,3,24,1002,24,10,24,1002,23,-1,23,101,5,23,23,1,24,23,23,4,23,99,0,0]) >>> part1 (intcodeToList [3,31,3,32,1002,32,10,3...
| Module : Main Description : Day 5 solution Copyright : ( c ) , 2019 License : ISC Maintainer : < > To compute our thrust controller feedback loop I evaluate the given Intcode program as a function from input values to output values . Connecting the outputs of one instance of th...
6ccabf2b134532bde115058e15838cae5379b697b1226988119034908a8d5cc7
dpiponi/Moodler
moodlerrc.hs
do bind "⌫" "delete" bind "h" "hide" bind "⇧H" "unhide" bind "⇧P" "unparent" bind "⇧<" "setmin" bind "⇧>" "setmax" bind "\\" "nolimits" bind "k" "addknob" bind "s" "addslider" bind ' K ' " " bind "m" "relocate" bind "n" "rename" bind "z" "check" bind "⎋" "up" bin...
null
https://raw.githubusercontent.com/dpiponi/Moodler/a0c984c36abae52668d00f25eb3749e97e8936d3/Moodler/moodlerrc.hs
haskell
do bind "⌫" "delete" bind "h" "hide" bind "⇧H" "unhide" bind "⇧P" "unparent" bind "⇧<" "setmin" bind "⇧>" "setmax" bind "\\" "nolimits" bind "k" "addknob" bind "s" "addslider" bind ' K ' " " bind "m" "relocate" bind "n" "rename" bind "z" "check" bind "⎋" "up" bin...
94fec733cf4d8041a4af2c87fcfef725bb4061c867ea0fe7cf1ae421b62af83a
astrada/ocaml-extjs
ext_grid_Panel.mli
* Grids are an excellent way of showing large amount ... { % < p > Grids are an excellent way of showing large amounts of tabular data on the client side . Essentially a supercharged < code>&lt;table&gt;</code > , GridPanel makes it easy to fetch , sort and filter large amounts of data.</p > < p > Grids are...
null
https://raw.githubusercontent.com/astrada/ocaml-extjs/77df630a75fb84667ee953f218c9ce375b3e7484/lib/ext_grid_Panel.mli
ocaml
* {% <p>Reconfigures the grid with a new store/columns. Either the store or the columns can be omitted if you don't wish to change them.</p> %} {b Parameters}: {ul {- store: [Ext_data_Store.t Js.t] (optional) {% <p>The new store.</p> %} } {- columns: [_ Js.t Js.js_array Js.t] (optional) {% ...
* Grids are an excellent way of showing large amount ... { % < p > Grids are an excellent way of showing large amounts of tabular data on the client side . Essentially a supercharged < code>&lt;table&gt;</code > , GridPanel makes it easy to fetch , sort and filter large amounts of data.</p > < p > Grids are...
76685981de938e400de1e0d7125f4a296647904a28dfd3a45bfa60f887d28313
tschady/advent-of-code
d12.clj
(ns aoc.2017.d12 (:require [aoc.file-util :as file-util] [clojure.string :as str] [ubergraph.alg :as alg] [ubergraph.core :as uber])) (def input (file-util/read-lines "2017/d12.txt")) (defn parse-line [s] (read-string (str "{" (str/replace s #"<->" "[") "]}"))) (defn make-graph ...
null
https://raw.githubusercontent.com/tschady/advent-of-code/9cd0cbbbbeadd083b9030f21e49ca1ac26aee53a/src/aoc/2017/d12.clj
clojure
(ns aoc.2017.d12 (:require [aoc.file-util :as file-util] [clojure.string :as str] [ubergraph.alg :as alg] [ubergraph.core :as uber])) (def input (file-util/read-lines "2017/d12.txt")) (defn parse-line [s] (read-string (str "{" (str/replace s #"<->" "[") "]}"))) (defn make-graph ...
c2a89f29a938daa92f7017a82410f8a1f354357aeb348817f2883ad992fdd02b
azimut/shiny
render.lisp
(in-package :shiny) ;;-------------------------------------------------- ;; 3D - g-pnt with tangent info in tb-data AND textures (defun-g vert-with-tbdata ((vert g-pnt) (tb tb-data) &uniform (model-world :mat4) (world-view :mat4) (view-clip :mat4) (scale :float) Parallax vars (ligh...
null
https://raw.githubusercontent.com/azimut/shiny/774381a9bde21c4ec7e7092c7516dd13a5a50780/examples/room/render.lisp
lisp
-------------------------------------------------- 3D - g-pnt with tangent info in tb-data AND textures --------- -------------------- -------------------- frag-pos -------------------------------------------------- 3D - g-pnt mesh without tangents -index.php?page=-Point+Light+Attenuation -------------------- -----...
(in-package :shiny) (defun-g vert-with-tbdata ((vert g-pnt) (tb tb-data) &uniform (model-world :mat4) (world-view :mat4) (view-clip :mat4) (scale :float) Parallax vars (light-pos :vec3) (cam-pos :vec3)) (let* ((pos (* scale (pos vert))) (norm (norm vert))...
10b4ef4d7132d06c85b29ac3ae4a61b9053204f6e6616d552ab077b6ffaa94b6
devaspot/games
tavla_paired.erl
%%% ------------------------------------------------------------------- Author : < > %%% Description : The paired tavla logic %%% Created : Feb 01 , 2013 %%% ------------------------------------------------------------------- %%% Terms explanation: %%% GameId - uniq identifier of the tournament. Type: integ...
null
https://raw.githubusercontent.com/devaspot/games/a1f7c3169c53d31e56049e90e0094a3f309603ae/apps/server/src/tavla/tavla_paired.erl
erlang
------------------------------------------------------------------- Description : The paired tavla logic ------------------------------------------------------------------- Terms explanation: GameId - uniq identifier of the tournament. Type: integer(). UserId - cross system identifier of a physical user. Typ...
Author : < > Created : Feb 01 , 2013 PlayerId - registration number of a player in the tournament . Type : integer ( ) TableId - uniq identifier of a table in the tournament . Used by the -module(tavla_paired). -behaviour(gen_fsm). -include_lib("server/include/basic_types.hrl"). -include_lib("db/inclu...
9cbf31607f6ff27936c5472dc5ac558f601f3c8ada0c01688f8eac1d0bc7b2f3
lisp-mirror/clpm
build-release.lisp
Script to build CLPM releases ;;;; This software is part of CLPM . See README.org for more information . See ;;;; LICENSE for license information. (in-package #:cl-user) (load (merge-pathnames "common.lisp" *load-truename*)) (in-package #:clpm-scripts) (setup-asdf) (defparameter *option-static* (adopt:make-o...
null
https://raw.githubusercontent.com/lisp-mirror/clpm/ad9a704fcdd0df5ce30ead106706ab6cc5fb3e5b/scripts/build-release.lisp
lisp
LICENSE for license information. TODO: This is a bit hacky, but speeds up the build significantly when starting from scratch (like in CI). The root problem is that asdf-release-ops will occasionally cause the same code to be compiled twice: once in the child process and once in the parent. This is because we use ...
Script to build CLPM releases This software is part of CLPM . See README.org for more information . See (in-package #:cl-user) (load (merge-pathnames "common.lisp" *load-truename*)) (in-package #:clpm-scripts) (setup-asdf) (defparameter *option-static* (adopt:make-option :static :help "Build a static e...
28e47e94284ff298977e6ffbbe961b56584b4bdeaea5e3226496d3c6b2684767
takikawa/tr-pfds
implicitqueue-performance-tests.rkt
#lang racket (require pfds/queue/implicit) tests run with Racket 5.3.0.11 , in , on a Intel i7 - 920 processor machine with 12 GB memory ;;;;; test enqueue ; with bug cpu time : 22234 real time : 22320 gc time : 11126 ; bug fixed (let* moved inside delay) cpu time : 4703 real time : 4704 gc time : 1442 ...
null
https://raw.githubusercontent.com/takikawa/tr-pfds/a08810bdfc760bb9ed68d08ea222a59135d9a203/pfds/tests/implicitqueue-performance-tests.rkt
racket
test enqueue with bug bug fixed (let* moved inside delay)
#lang racket (require pfds/queue/implicit) tests run with Racket 5.3.0.11 , in , on a Intel i7 - 920 processor machine with 12 GB memory cpu time : 22234 real time : 22320 gc time : 11126 cpu time : 4703 real time : 4704 gc time : 1442 (time (build-queue 1000000 add1))
1de35685868d443041b7c09c91a8e8fe6e9b22873355701eb46bf67cc33a0375
ghc/ghc
Types.hs
# LANGUAGE DeriveGeneric # {-# LANGUAGE GADTs #-} # LANGUAGE StandaloneDeriving # module GHC.Driver.Errors.Types ( GhcMessage(..) , GhcMessageOpts(..) , DriverMessage(..) , DriverMessageOpts(..) , DriverMessages, PsMessage(PsHeaderMessage) , BuildingCabalPackage(..) , WarningMessages , ErrorMessages ...
null
https://raw.githubusercontent.com/ghc/ghc/1c050ed26f50f3a8788e650f23d6ff55badc1072/compiler/GHC/Driver/Errors/Types.hs
haskell
# LANGUAGE GADTs # * Constructors * Utility functions | A collection of warning messages. | A collection of error messages. | A single warning message. might output during the different compilation stages. See | A message from the parsing phase. | A message from the desugaring (HsToCore) phase. | A message fro...
# LANGUAGE DeriveGeneric # # LANGUAGE StandaloneDeriving # module GHC.Driver.Errors.Types ( GhcMessage(..) , GhcMessageOpts(..) , DriverMessage(..) , DriverMessageOpts(..) , DriverMessages, PsMessage(PsHeaderMessage) , BuildingCabalPackage(..) , WarningMessages , ErrorMessages , WarnMsg , ghcUnkn...
f453b8271deed54410e7d606ab966893adf171c5aac706affa8e3c843c73f7db
Helium4Haskell/helium
ExprDoPat1.hs
module ExprDoPat1 where main :: Int main = unsafePerformIO ( do (x:_) <- return [1, 2, 3] return x )
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/correct/ExprDoPat1.hs
haskell
module ExprDoPat1 where main :: Int main = unsafePerformIO ( do (x:_) <- return [1, 2, 3] return x )
2a71584e434ed076c27c05d8a672407cc11146825e781416d5dc178d22703e43
logseq/logseq
core.cljs
(ns frontend.modules.file.core (:require [clojure.string :as string] [frontend.config :as config] [frontend.date :as date] [frontend.db :as db] [frontend.db.utils :as db-utils] [frontend.modules.file.uprint :as up] [frontend.state :as state] ...
null
https://raw.githubusercontent.com/logseq/logseq/77e63f6461fde17dfb0a6b68b9cbe9242cad10e3/src/main/frontend/modules/file/core.cljs
clojure
Don't check properties. Collapsed is an internal state log as property in file, but not counted into properties In e2e tests, "card" page in db has no :file/path
(ns frontend.modules.file.core (:require [clojure.string :as string] [frontend.config :as config] [frontend.date :as date] [frontend.db :as db] [frontend.db.utils :as db-utils] [frontend.modules.file.uprint :as up] [frontend.state :as state] ...
5a772186501377cc571bb6dfc0d38fe208e536401ed6d3ce803ec3e0e2230f47
Kakadu/fp2022
ast.mli
* Copyright 2021 - 2022 , Kakadu and contributors * SPDX - License - Identifier : LGPL-3.0 - or - later type name = string * The main type for our AST ( дерева ) type 'name t = | Var of 'name (** Variable [x] *) | Abs of 'name * 'name t (** Abstraction [λx.t] *) | App of 'name t * 'name t (* Application [f ...
null
https://raw.githubusercontent.com/Kakadu/fp2022/0d134cc88e5db154e705c25b1d010b70df757505/Lambda/lib/ast.mli
ocaml
* Variable [x] * Abstraction [λx.t] Application [f g ]
* Copyright 2021 - 2022 , Kakadu and contributors * SPDX - License - Identifier : LGPL-3.0 - or - later type name = string * The main type for our AST ( дерева ) type 'name t = | App of 'name t * 'name t * In type definition above the 3rd constructor is intentionally without documentation to test linter to te...
90aad590e32465cecfd284ca2746a7d1cf22515f2374c6646d74a84d14cdd063
haskell-mafia/mafia
Install.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # module Mafia.Install ( Flavour(..) , installDependencies , installPackage , transitiveOfPackages , InstallError(..) , renderInstallError ) where import ...
null
https://raw.githubusercontent.com/haskell-mafia/mafia/529440246ee571bf1473615e6218f52cd1e990ae/src/Mafia/Install.hs
haskell
# LANGUAGE OverloadedStrings # ---------------------------------------------------------------------- ---------------------------------------------------------------------- create symlinks to the relevant package .conf files in the ---------------------------------------------------------------------- ----------------...
# LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # module Mafia.Install ( Flavour(..) , installDependencies , installPackage , transitiveOfPackages , InstallError(..) , renderInstallError ) where import Control.Exception (SomeEx...
c3866dae01d0bd8ae3e9622fcdd967179489187872097618b45598e9d42ee68c
neilprosser/mr-maestro
tyrant_test.clj
(ns maestro.tyrant-test (:require [cheshire.core :as json] [maestro [http :as http] [tyrant :refer :all]] [midje.sweet :refer :all]) (:import clojure.lang.ExceptionInfo)) (fact "that getting application properties does the right thing" (application-properties...
null
https://raw.githubusercontent.com/neilprosser/mr-maestro/469790fd712262016729c1d83d4b4e11869237a2/test/maestro/tyrant_test.clj
clojure
(ns maestro.tyrant-test (:require [cheshire.core :as json] [maestro [http :as http] [tyrant :refer :all]] [midje.sweet :refer :all]) (:import clojure.lang.ExceptionInfo)) (fact "that getting application properties does the right thing" (application-properties...
19f03f08f47b02f585d759e00b1e2f99e962da56b604d4b4ceaee264bfc12341
microsoft/SLAyer
HeapGraph.ml
Copyright ( c ) Microsoft Corporation . All rights reserved . (** Graph representation of pointer structure of symbolic heaps *) open Library open Variable open Expression module E = Exp module S = Substitution open SymbolicHeap module L = (val Log.std Config.vHG : Log.LOG) (* Timing =========================...
null
https://raw.githubusercontent.com/microsoft/SLAyer/6f46f6999c18f415bc368b43b5ba3eb54f0b1c04/src/HeapGraph.ml
ocaml
* Graph representation of pointer structure of symbolic heaps Timing =================================================================== ============================================================================ Heap Graphs ========================================================...
Copyright ( c ) Microsoft Corporation . All rights reserved . open Library open Variable open Expression module E = Exp module S = Substitution open SymbolicHeap module L = (val Log.std Config.vHG : Log.LOG) let add_with_closure_tmr = Timer.create "HeapGraph.add_with_closure" module LE = struct type ...
e1df70965a99dda4fb43e571512aa7825eaef90c986c31895f22150e1664908a
greghendershott/markdown
entity.rkt
Copyright ( c ) 2013 - 2022 by . SPDX - License - Identifier : BSD-2 - Clause #lang racket/base (require "parsack.rkt") (provide $entity) (define $char-entity/dec (try (pdo (x <- (many1 $digit)) (char #\;) (return (string->number (list->string x) 10))))) (define $char-entity/hex (...
null
https://raw.githubusercontent.com/greghendershott/markdown/34ada7458fad51d3a5e0516352f8bd399c517140/markdown/entity.rkt
racket
) ) )
Copyright ( c ) 2013 - 2022 by . SPDX - License - Identifier : BSD-2 - Clause #lang racket/base (require "parsack.rkt") (provide $entity) (define $char-entity/dec (try (pdo (x <- (many1 $digit)) (return (string->number (list->string x) 10))))) (define $char-entity/hex (try (pdo (<or> (char #\...
881d33bd7ce6d69f762d55bf5b6573816d471dbaf2fb015a5c3f0a17e38f4a73
ocaml/ocamlbuild
exit_codes.ml
(***********************************************************************) (* *) (* ocamlbuild *) (* *) , , projet Galliu...
null
https://raw.githubusercontent.com/ocaml/ocamlbuild/792b7c8abdbc712c98ed7e69469ed354b87e125b/src/exit_codes.ml
ocaml
********************************************************************* ocamlbuild ...
, , projet Gallium , INRIA Rocquencourt Copyright 2007 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with let rc_ok = 0 let rc_usag...
5ec4e8059ba76561069363780b2bb164f7c3fae7d7aa7be81cac67f989dab6f4
tokenrove/m68k-assembler
utils.lisp
(in-package :m68k-assembler) ;;;; STRINGS (defun munge-modifier (string) "Chops off the period-delimited extension of STRING, and returns the new string without the extension as well as the extension, or NIL if such an extension could not be found." (let ((modifier nil)) (awhen (position #\. string :from-end ...
null
https://raw.githubusercontent.com/tokenrove/m68k-assembler/6c3bc3e62da890bb34da856c8c72a6a7d1650eaa/utils.lisp
lisp
STRINGS LISTS BINARY DATA, STREAMS
(in-package :m68k-assembler) (defun munge-modifier (string) "Chops off the period-delimited extension of STRING, and returns the new string without the extension as well as the extension, or NIL if such an extension could not be found." (let ((modifier nil)) (awhen (position #\. string :from-end t) (set...
12c7ee4c36a415476618dc5d2dd6b063267d7563e6a9331e1724e8abb200106c
kwantam/lviv
lviv.scm
#!/usr/bin/env gsi-script ; Copyright ( c ) 2011 < > ; ;Permission is hereby granted, free of charge, to any person obtaining a copy ;of this software and associated documentation files (the "Software"), to deal ;in the Software without restriction, including without limitation the rights ;to use, copy, modify, mer...
null
https://raw.githubusercontent.com/kwantam/lviv/bbfda50a4801f92b79631f77e7fa997dc10f0516/src/lviv.scm
scheme
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to...
#!/usr/bin/env gsi-script Copyright ( c ) 2011 < > copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR IMPLIED , INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCH...
a096e76bddcd3b8e74c9fb2b6829a1f26f51548483a2378321096818ae1d869b
LPCIC/matita
renderingAttrs.ml
Copyright ( C ) 2005 , HELM Team . * * This file is part of HELM , an Hypertextual , Electronic * Library of Mathematics , developed at the Computer Science * Department , University of Bologna , Italy . * * is free software ; you can redistribute it and/or * modify it under the terms of the GNU...
null
https://raw.githubusercontent.com/LPCIC/matita/794ed25e6e608b2136ce7fa2963bca4115c7e175/matita/components/content_pres/renderingAttrs.ml
ocaml
let color2 = "red"
Copyright ( C ) 2005 , HELM Team . * * This file is part of HELM , an Hypertextual , Electronic * Library of Mathematics , developed at the Computer Science * Department , University of Bologna , Italy . * * is free software ; you can redistribute it and/or * modify it under the terms of the GNU...
4678b008342d8066ac63857adb7bbee86adb03283c69233b88d0065ebf0f8bf5
haskell-works/hw-dsv
Space.hs
module Main where import Data.ByteString (ByteString) import Data.Vector (Vector) import HaskellWorks.Data.Dsv.Internal.Char (comma) import Weigh import qualified Data.ByteString.Lazy as LBS import qualified Data.Csv as CSV im...
null
https://raw.githubusercontent.com/haskell-works/hw-dsv/4f1274af383281589165232186f99219479d7898/weigh/Space.hs
haskell
module Main where import Data.ByteString (ByteString) import Data.Vector (Vector) import HaskellWorks.Data.Dsv.Internal.Char (comma) import Weigh import qualified Data.ByteString.Lazy as LBS import qualified Data.Csv as CSV im...
554602944873b08eec04ffe76ab79b5d4609f75394490c124397426a9b0d3e44
nvim-treesitter/nvim-treesitter
folds.scm
[ (element) (style_element) (script_element) ] @fold
null
https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/ddc0f1b606472b6a1ab85ee9becfd4877507627d/queries/html/folds.scm
scheme
[ (element) (style_element) (script_element) ] @fold
456e62dbb5728efff26bba8f8a7add14a772ae84d50a5ae1ec76b9aba92ab45d
footprintanalytics/footprint-web
execute.clj
(ns metabase.driver.googleanalytics.execute (:require [clojure.string :as str] [clojure.tools.logging :as log] [clojure.tools.reader.edn :as edn] [java-time :as t] [metabase.driver.googleanalytics.metadata :as ga.metadata] [metabase.models :refer [Database]]...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/modules/drivers/googleanalytics/src/metabase/driver/googleanalytics/execute.clj
clojure
(ns metabase.driver.googleanalytics.execute (:require [clojure.string :as str] [clojure.tools.logging :as log] [clojure.tools.reader.edn :as edn] [java-time :as t] [metabase.driver.googleanalytics.metadata :as ga.metadata] [metabase.models :refer [Database]]...
1318a413c7575475c70097cbbd10d67cbc8fba479a24a6d928130b9d184d634c
gnarroway/mongo-driver-3
model_test.clj
(ns mongo-driver-3.model-test (:require [clojure.test :refer :all] [mongo-driver-3.model :as m]) (:import (com.mongodb ReadConcern ReadPreference WriteConcern) (java.util.concurrent TimeUnit) (com.mongodb.client.model InsertOneOptions InsertManyOptions DeleteOptions FindOneAndUpdat...
null
https://raw.githubusercontent.com/gnarroway/mongo-driver-3/c46e114f44038b9fb65e2a92b2d2062e76636e09/test/mongo_driver_3/model_test.clj
clojure
Unit
(ns mongo-driver-3.model-test (:require [clojure.test :refer :all] [mongo-driver-3.model :as m]) (:import (com.mongodb ReadConcern ReadPreference WriteConcern) (java.util.concurrent TimeUnit) (com.mongodb.client.model InsertOneOptions InsertManyOptions DeleteOptions FindOneAndUpdat...
6b511a7ca7b0e6dde937be5fa7a8a2cc8cadd3342d82d9c7486261b3cbde0412
brendanhay/amazonka
DeleteResourcePolicy.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # {-# LANGUAGE StrictData #-} # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused -...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-xray/gen/Amazonka/XRay/DeleteResourcePolicy.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated * Creating a Request * Request Lenses * Destructuring the Response * Response Lenses | /See:/ 'newDeleteResourcePolicy' smart constructor. | Specifies a specific policy revision to delete. Provide a @PolicyRevisionId@ to ens...
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # De...
f0965be5b495bae86876b4085fe00fc40bfa7cdc730f43becb6955ff460c7709
np/mbox-tools
mbox-list.hs
# LANGUAGE TemplateHaskell , TypeOperators , Rank2Types # -------------------------------------------------------------------- -- | -- Executable : mbox-list Copyright : ( c ) 2008 , 2009 , 2011 -- License : BSD3 -- Maintainer : < > -- Stability : provisional -- Portability: -- ------------------------------...
null
https://raw.githubusercontent.com/np/mbox-tools/494848aa730e445d3227b6c57d3351aa8401cf4c/mbox-list.hs
haskell
------------------------------------------------------------------ | Executable : mbox-list License : BSD3 Stability : provisional Portability: ------------------------------------------------------------------ Since ∀ k1 k2 Positives, take k1 . drop k2 == drop k2 . take (k2 + k1) one fix an ordering: dro...
# LANGUAGE TemplateHaskell , TypeOperators , Rank2Types # Copyright : ( c ) 2008 , 2009 , 2011 Maintainer : < > import Prelude import Control.Arrow import Control.Lens import Codec.Mbox (Mbox(..),Direction(..),parseMboxFiles,mboxMsgBody,opposite) import Email (readEmail) import EmailFmt (putEmails,ShowFormat(...
880e229c854ffbaf18d02dc7b0c9ee0cdc59d34f2f957be8d9c395955be4f09a
timgilbert/haunting-refrain-posh
runner.cljs
(ns haunting-refrain.runner (:require [doo.runner :refer-macros [doo-tests doo-all-tests]] haunting-refrain.core-test haunting-refrain.test.foursquare haunting-refrain.test.playlist)) (doo-tests 'haunting-refrain.core-test 'haunting-refrain.test.foursquare ...
null
https://raw.githubusercontent.com/timgilbert/haunting-refrain-posh/99a7daafe54c5905a3d1b0eff691b5c602ad6d8d/test/cljs/haunting_refrain/runner.cljs
clojure
(ns haunting-refrain.runner (:require [doo.runner :refer-macros [doo-tests doo-all-tests]] haunting-refrain.core-test haunting-refrain.test.foursquare haunting-refrain.test.playlist)) (doo-tests 'haunting-refrain.core-test 'haunting-refrain.test.foursquare ...
58f69638418a3b429de783d8cc9455be571cb6af6e35ae70a77828f9aa164811
awakesecurity/spectacle
Ref.hs
{-# OPTIONS_HADDOCK show-extensions #-} -- | Module : Control . . Ref Copyright : ( c ) Arista Networks , 2022 - 2023 License : Apache License 2.0 , see LICENSE -- -- Stability : stable Portability : non - portable ( GHC extensions ) -- State implemented over ' IORef ' . -- -- @sinc...
null
https://raw.githubusercontent.com/awakesecurity/spectacle/430680c28b26dabb50f466948180eb59ba72fc8e/src/Control/Monad/Ref.hs
haskell
# OPTIONS_HADDOCK show-extensions # | Stability : stable @since 1.0.0 * RefM Transformer ** Lowering --------------------------------------------------------------------------------------------------------------------- | 'RefM' is an impure state monad transformer built around IORef. In situations where ...
Module : Control . . Ref Copyright : ( c ) Arista Networks , 2022 - 2023 License : Apache License 2.0 , see LICENSE Portability : non - portable ( GHC extensions ) State implemented over ' IORef ' . module Control.Monad.Ref RefM (RefM), unRefM, runRefM, execRefM, ) w...
43b0cd2a527e30117382ab669f5c3f2b0e06ed21b3feef9a59a207cba1880e85
ucsd-progsys/nate
help.ml
let text = "\ \032 OCamlBrowser Help\n\ \n\ USE\n\ \n\ \032 OCamlBrowser is composed of three tools, the Editor, which allows\n\ \032 one to edit/typecheck/analyse .mli and .ml files, the Viewer, to\n\ \032 walk around compiled modules, and the Shell, to run an OCaml\n\ \032 subshell. You ma...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/otherlibs/labltk/browser/help.ml
ocaml
), and unlabeled arguments in the pattern\n\ \032 match any label.\n\ \n\ \032 (
let text = "\ \032 OCamlBrowser Help\n\ \n\ USE\n\ \n\ \032 OCamlBrowser is composed of three tools, the Editor, which allows\n\ \032 one to edit/typecheck/analyse .mli and .ml files, the Viewer, to\n\ \032 walk around compiled modules, and the Shell, to run an OCaml\n\ \032 subshell. You ma...
e5a00dbfac437733a5b4e4f1b40b664ece4edeaf8b39074700a38aa23405a896
runtimeverification/haskell-backend
DebugEvaluateCondition.hs
module Test.Kore.Log.DebugEvaluateCondition ( test_instance_Table_DebugEvaluateCondition, ) where import Data.List ( inits, ) import Kore.Internal.Predicate import Kore.Internal.TermLike import Kore.Log.DebugEvaluateCondition import Prelude.Kore import Test.Kore.Rewrite.MockSymbols qualified as Mock import Te...
null
https://raw.githubusercontent.com/runtimeverification/haskell-backend/b06757e252ee01fdd5ab8f07de2910711997d845/kore/test/Test/Kore/Log/DebugEvaluateCondition.hs
haskell
module Test.Kore.Log.DebugEvaluateCondition ( test_instance_Table_DebugEvaluateCondition, ) where import Data.List ( inits, ) import Kore.Internal.Predicate import Kore.Internal.TermLike import Kore.Log.DebugEvaluateCondition import Prelude.Kore import Test.Kore.Rewrite.MockSymbols qualified as Mock import Te...
1204c77d821319562814119dbd9079e85f8b187f972344564da718b170b192d6
alanz/ghc-exactprint
SlidingTypeSyn.hs
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE KindSignatures #-} # LANGUAGE LiberalTypeSynonyms # # LANGUAGE GADTs # # LANGUAGE TypeFamilies # type ( f :-> g) (r :: Type -> Type) ix = f r ix -> g r ix ) b...
null
https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc86/SlidingTypeSyn.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE RankNTypes # # LANGUAGE TypeOperators # # LANGUAGE KindSignatures # -> g)) b ix = f b ix -> g b ix
# LANGUAGE LiberalTypeSynonyms # # LANGUAGE GADTs # # LANGUAGE TypeFamilies # type ( f :-> g) (r :: Type -> Type) ix = f r ix -> g r ix ) b ix = f b ix - > g b ix
360e0937c222cc03cd4d7ffb38e33913697ea8a3d127d1d1d0ddbb45ac739b97
toyokumo/tarayo
benchmark.clj
(ns benchmark (:require [criterium.core :as criterium] [postal.core :as postal] [tarayo.core :as tarayo] [tarayo.test-helper :as h])) (def ^:private message {:from "" :to "" :subject "hello" :body "world"}) (defn -main [] (h/with-test-smtp-server [_ port] (println "POSTAL ----") (...
null
https://raw.githubusercontent.com/toyokumo/tarayo/f9b10b85b7bc1a188d808c3955e258916cd0b38a/dev/src/benchmark.clj
clojure
(ns benchmark (:require [criterium.core :as criterium] [postal.core :as postal] [tarayo.core :as tarayo] [tarayo.test-helper :as h])) (def ^:private message {:from "" :to "" :subject "hello" :body "world"}) (defn -main [] (h/with-test-smtp-server [_ port] (println "POSTAL ----") (...
67e4bfabb9d1511d1256a0461ef220ef26d9dcabffcc6213fb454936359f269e
chaoxu/fancy-walks
A.hs
get :: Integer -> Integer -> Integer get n a = (n - 1) `div` a + 1 main = do line <- getLine let [n,m,a] = map read . words $ line putStrLn $ show ((get n a) * (get m a))
null
https://raw.githubusercontent.com/chaoxu/fancy-walks/952fcc345883181144131f839aa61e36f488998d/codeforces.com/1/A.hs
haskell
get :: Integer -> Integer -> Integer get n a = (n - 1) `div` a + 1 main = do line <- getLine let [n,m,a] = map read . words $ line putStrLn $ show ((get n a) * (get m a))
204de60296be689792357499bcb82a1fd7ce03cb54b08c684f84d9748f75fd2c
incoherentsoftware/defect-process
Data.hs
module Player.Weapon.All.Sword.Data ( SwordChargeStatus(..) , swordChargeStatusChargeSecs , SwordAttackDescriptions(..) , SwordData(..) , mkSwordData ) where import Control.Monad.IO.Class (MonadIO) import Attack import Configs import Configs.All.PlayerWeapon import Configs.All.PlayerWeapon.Swo...
null
https://raw.githubusercontent.com/incoherentsoftware/defect-process/15f2569e7d0e481c2e28c0ca3a5e72d2c049b667/src/Player/Weapon/All/Sword/Data.hs
haskell
module Player.Weapon.All.Sword.Data ( SwordChargeStatus(..) , swordChargeStatusChargeSecs , SwordAttackDescriptions(..) , SwordData(..) , mkSwordData ) where import Control.Monad.IO.Class (MonadIO) import Attack import Configs import Configs.All.PlayerWeapon import Configs.All.PlayerWeapon.Swo...
6881e00316867d54d3f83a6abf65c252ea30829ddeb388b2b4306f2db437520e
pawurb/haskell-pg-extras
Mandelbrot.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE QuasiQuotes # module PGExtras.Queries.Mandelbrot (mandelbrotSQL, displayMandelbrot) where import PGExtras.Helpers (maybeText) import Database.PostgreSQL.Simple import Text.RawString.QQ import qualified Data.Text as Text import Control.Monad (forM_) import Data.List (inter...
null
https://raw.githubusercontent.com/pawurb/haskell-pg-extras/1cddde5f784c6fa2286dd0090389237925918bd8/src/PGExtras/Queries/Mandelbrot.hs
haskell
# LANGUAGE OverloadedStrings # -++++%%%%@@@@ # # # # ' , LEAST(GREATEST(I,1),27 ) , 1 ) ) , '' ) , ' t ' as t
# LANGUAGE QuasiQuotes # module PGExtras.Queries.Mandelbrot (mandelbrotSQL, displayMandelbrot) where import PGExtras.Helpers (maybeText) import Database.PostgreSQL.Simple import Text.RawString.QQ import qualified Data.Text as Text import Control.Monad (forM_) import Data.List (intercalate) mandelbrotSQL :: Query man...
3c223da82271535a5f3ef4e587e6e58bcd3b7a8693d2ee091bd50b7c81d38cb6
fmi/clojure-examples
04-dynamic-returns.clj
;;; This program illustrates how to use dynamic scoping to return arguments. ;;; The abs function can indicate whether it had to flip the sign of its ;;; argument or not. The caller can check *negative-arg* after calling abs. ;;; ;;; A caveat of this code is that it would result to an error if the caller has ;;; not bo...
null
https://raw.githubusercontent.com/fmi/clojure-examples/46ec0fe7bdfdfccde1ab74a94c64dbd73ea58269/2013/03-futures-atoms-vars/04-dynamic-returns.clj
clojure
This program illustrates how to use dynamic scoping to return arguments. The abs function can indicate whether it had to flip the sign of its argument or not. The caller can check *negative-arg* after calling abs. A caveat of this code is that it would result to an error if the caller has not bound *negative-arg*...
(def ^:dynamic *negative-arg*) (defn abs [n] (if (neg? n) (do (set! *negative-arg* true) (- n)) (do (set! *negative-arg* false) n))) (defn report-abs [n] (binding [*negative-arg* nil] (let [abs-n (abs n)] (printf "The abs of %s is %s and *negative-arg* is: %s\n" n a...
3c829bcdfb48b116f197c9b85c997adde01e4c80a41558f62f422cc6c0d5423a
bendyworks/api-server
UserSpec.hs
# LANGUAGE QuasiQuotes # module Api.Mappers.UserSpec (main, spec) where import Control.Applicative ((<$>)) import Data.Functor.Identity (Identity (..)) import Data.Maybe (fromJust, isJust) import Hasql (q, single) import qualified Api.Mappers.Resource as Resource import qualified Api.Mappers.User as User import Api...
null
https://raw.githubusercontent.com/bendyworks/api-server/9dd6d7c2599bd1c5a7e898a417a7aeb319415dd2/test/Api/Mappers/UserSpec.hs
haskell
# LANGUAGE QuasiQuotes # module Api.Mappers.UserSpec (main, spec) where import Control.Applicative ((<$>)) import Data.Functor.Identity (Identity (..)) import Data.Maybe (fromJust, isJust) import Hasql (q, single) import qualified Api.Mappers.Resource as Resource import qualified Api.Mappers.User as User import Api...
339211bfbf07bba6d1cac0d6ec8a6c5e7ef66eab9692ac360f6090f16c6c996e
Phantas0s/sokoban
start_dev.cljs
(ns sokoban.start-dev (:require [sokoban.start] [orchestra-cljs.spec.test :as st] [expound.alpha :as expound] [clojure.spec.alpha :as s])) (st/instrument) (set! s/*explain-out* expound/printer)
null
https://raw.githubusercontent.com/Phantas0s/sokoban/b481314b5544c30f43ecfadcb0edeb2db44669e6/src/sokoban/start_dev.cljs
clojure
(ns sokoban.start-dev (:require [sokoban.start] [orchestra-cljs.spec.test :as st] [expound.alpha :as expound] [clojure.spec.alpha :as s])) (st/instrument) (set! s/*explain-out* expound/printer)
327763e9ed5e1cbf7bb9e330be124c3e872a93d26ac84da270f177f5304764b2
oflatt/space-orbs
space-orbs-client.rkt
#lang racket (require pict3d "variables.rkt" "on-draw.rkt" "key-events.rkt" "on-mouse.rkt" "stop-state.rkt" "big-crunch.rkt" "on-frame.rkt" "frame-handling.rkt" racket/class racket/gui/base) (current-material (material #:ambient 0.01 #:diffuse 0.39 ...
null
https://raw.githubusercontent.com/oflatt/space-orbs/3d6301e576f304a9994d42b49939ad2432069aac/client/space-orbs-client.rkt
racket
void makes it not return the state
#lang racket (require pict3d "variables.rkt" "on-draw.rkt" "key-events.rkt" "on-mouse.rkt" "stop-state.rkt" "big-crunch.rkt" "on-frame.rkt" "frame-handling.rkt" racket/class racket/gui/base) (current-material (material #:ambient 0.01 #:diffuse 0.39 ...
627d34fd9b9f19580cd839d362d11650fc82981a685a01b191183720d29d7646
jonschoning/espial
Pretty.hs
module Pretty where import Text.Show.Pretty (ppShow) import Language.Haskell.HsColour import Language.Haskell.HsColour.Colourise import ClassyPrelude cpprint :: (MonadIO m, Show a) => a -> m () cpprint = putStrLn . pack . hscolour TTY defaultColourPrefs False False "" False . ppShow cprint :: (MonadIO m, Show a) =...
null
https://raw.githubusercontent.com/jonschoning/espial/a0b7c3c782d1089166e7a492b4d1f48018fee2b8/src/Pretty.hs
haskell
module Pretty where import Text.Show.Pretty (ppShow) import Language.Haskell.HsColour import Language.Haskell.HsColour.Colourise import ClassyPrelude cpprint :: (MonadIO m, Show a) => a -> m () cpprint = putStrLn . pack . hscolour TTY defaultColourPrefs False False "" False . ppShow cprint :: (MonadIO m, Show a) =...
358759049e5cf53a430196cbdd6ab948268e8c123d44fd4d6e2de6c78f60534e
DSiSc/why3
term.ml
(********************************************************************) (* *) The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University (* ...
null
https://raw.githubusercontent.com/DSiSc/why3/8ba9c2287224b53075adc51544bc377bc8ea5c75/src/core/term.ml
ocaml
****************************************************************** This software is distributed under the terms of the GNU Lesser on linking described in file LICENSE. ...
The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University General Public License version 2.1 , with the special exception open Wstdlib open Ident open Ty type vsymbol = { vs_name : ident; vs_ty : ty; } module Vsym = Mak...
da56080e764e3902fc08018373f11f319d7c049bf018be33698c2573e58ba13b
open-company/open-company-web
json.cljs
(ns oc.web.lib.json (:require [clojure.walk :refer (stringify-keys)])) (defn json->cljs [json-str] (let [parsed-json (.parse ^js js/JSON json-str :keywordize-keys true)] (js->clj parsed-json :keywordize-keys true))) (defn cljs->json [coll] (let [stringified-coll (stringify-keys coll)] (clj->js stringifi...
null
https://raw.githubusercontent.com/open-company/open-company-web/dfce3dd9bc115df91003179bceb87cca1f84b6cf/src/main/oc/web/lib/json.cljs
clojure
(ns oc.web.lib.json (:require [clojure.walk :refer (stringify-keys)])) (defn json->cljs [json-str] (let [parsed-json (.parse ^js js/JSON json-str :keywordize-keys true)] (js->clj parsed-json :keywordize-keys true))) (defn cljs->json [coll] (let [stringified-coll (stringify-keys coll)] (clj->js stringifi...
55970a4677261a2fe279b855325d42dc1a9c26deda66ea3aee5452a5dfba46f4
jeromesimeon/Galax
small_stream_context.mli
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/streaming/small_stream_context.mli
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ I d : small_stream_context.mli , v 1.6 2007/02/01 22:08:54 simeon Exp $ open Error type ss_context val build_ss_context : Small_stream_ast.sexpr list -> ss_context val get_current_sexpr_list : ss_context -> Small_stream_ast.sexpr ...
c42c3bd1c1b1f784661ed93c2f85125b13bdf8f82dbfb02d9dd642bba7700370
brendanhay/gogol
Modify.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/fffd4d98a1996d0ffd4cf64545c5e8af9c976cda/lib/services/gogol-people/gen/Gogol/People/ContactGroups/Members/Modify.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated * Resource ** Constructing a Request | A resource alias for @people.contactGroups.members.modify@ method which the 'PeopleContactGroupsMembersModify' request conforms to. /See:/ 'newPeopleContactGroupsMembersModify' smart co...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
ecea4e6faeeb046348247bdecd64c5283aa3e21c2920b2f33d9fc2366b36e395
lthms/spatial-sway
message.ml
type subscribe_reply = { success : bool } let subscribe_reply_decoder = let open Json_decoder in let open Syntax in let+ success = field "success" bool in { success } type run_command_reply = { success : bool; parse_error : bool option; error : string option; } let run_command_reply_decoder = let ope...
null
https://raw.githubusercontent.com/lthms/spatial-sway/5e5072c75e0a1a1d58de9409e2ef09ef033cc569/lib/sway_ipc_types/message.ml
ocaml
type subscribe_reply = { success : bool } let subscribe_reply_decoder = let open Json_decoder in let open Syntax in let+ success = field "success" bool in { success } type run_command_reply = { success : bool; parse_error : bool option; error : string option; } let run_command_reply_decoder = let ope...
b771983026c2a8ad3781d2909457cd9e72c4b26927dd3314e7500468b08cbe6c
fccm/glMLite
movelight.ml
Copyright ( c ) 1993 - 1997 , Silicon Graphics , Inc. * ALL RIGHTS RESERVED * Permission to use , copy , modify , and distribute this software for * any purpose and without fee is hereby granted , provided that the above * copyright notice appear in all copies and that both the copyright notice * and t...
null
https://raw.githubusercontent.com/fccm/glMLite/c52cd806909581e49d9b660195576c8a932f6d33/RedBook-Samples/movelight.ml
ocaml
Here is where the light position is reset after the modeling * transformation (glRotated) is called. This places the * light at a new position in world coordinates. The cube * represents the position of the light. escape
Copyright ( c ) 1993 - 1997 , Silicon Graphics , Inc. * ALL RIGHTS RESERVED * Permission to use , copy , modify , and distribute this software for * any purpose and without fee is hereby granted , provided that the above * copyright notice appear in all copies and that both the copyright notice * and t...
784ada773a5e4e5e527de23ea368dd8963d1b56744b1c2d000950dbc75f1a605
crystodev/cato
Address.hs
-- address helpers --------------------------------------------------------------------- module Address ( createKeyPair, Address (..), AddressType(Payment, Stake), getAddressFromFile, getAddressFile, getSKeyFile, getVKeyFile, ) where import System.Directory (createDirectoryIfMissing, doesFileExist) import ...
null
https://raw.githubusercontent.com/crystodev/cato/ae93afe078ffb6d942a5725db07d27d3d896b8a5/src/Address.hs
haskell
address helpers --------------------------------------------------------------------- data AdressOrKey = address | signing_key | verification_key deriving (Read, Show, Eq) create key pair based on address_name get address from file give file name for name type address or key give file name for name type address ...
module Address ( createKeyPair, Address (..), AddressType(Payment, Stake), getAddressFromFile, getAddressFile, getSKeyFile, getVKeyFile, ) where import System.Directory (createDirectoryIfMissing, doesFileExist) import System.FilePath (takeDirectory) import System.IO (hGetContents)...
83bc44733698e9f3a7e977fb51b3016f382d65409367d161d05c1276ecc6bfcc
diffusionkinetics/open
Logistic.hs
module Fuml.Base.Logistic where import Numeric.LinearAlgebra import qualified Data.Vector.Storable as VS import Fuml.Optimisation.BFGS import Data.List (foldl1') -- maybe follow this: -regression-and-automated-differentiation-3/ logit :: Floating a => a -> a logit x = 1 / (1 + exp (negate x)) logLikelihood1 :: Vec...
null
https://raw.githubusercontent.com/diffusionkinetics/open/673d9a4a099abd9035ccc21e37d8e614a45a1901/fuml/lib/Fuml/Base/Logistic.hs
haskell
maybe follow this: -regression-and-automated-differentiation-3/ negative log likelihood (1 - ind y) * log (1 - logit z) inisbox ( logLikelihood theData ) start
module Fuml.Base.Logistic where import Numeric.LinearAlgebra import qualified Data.Vector.Storable as VS import Fuml.Optimisation.BFGS import Data.List (foldl1') logit :: Floating a => a -> a logit x = 1 / (1 + exp (negate x)) logLikelihood1 :: Vector Double -> Vector Double -> Bool -> Double logLikelihood1 theta ...
309cd2c5d0772ddf1813d556bd6de00b6b1802086ce8768de4abec978367c32f
sergv/hkanren
IntegerLVar.hs
---------------------------------------------------------------------------- -- | Module : Language . . IntegerLVar Copyright : ( c ) 2015 -- License : BSD3-style (see LICENSE) -- -- Maintainer : -- Stability : -- Portability : -- Unsafe but fast Integer - based LVars . -----------------...
null
https://raw.githubusercontent.com/sergv/hkanren/94a9038f5885471c9f4d3b17a8e52af4e7747af3/src/Language/HKanren/IntegerLVar.hs
haskell
-------------------------------------------------------------------------- | License : BSD3-style (see LICENSE) Maintainer : Stability : Portability : -------------------------------------------------------------------------- # LANGUAGE KindSignatures # # LANGUAGE TypeFamilies # # INLINAB...
Module : Language . . IntegerLVar Copyright : ( c ) 2015 Unsafe but fast Integer - based LVars . # LANGUAGE FlexibleContexts # # LANGUAGE UndecidableInstances # module Language.HKanren.IntegerLVar (LVar) where import Control.DeepSeq import Data.HOrdering import Data.HUtils import Data.Ma...
dba51cdc501678dc914364120b3467c6c159d150d9a3e4f16ddefb78c8d5bb65
rtrusso/scp
stringset.scm
(define a (make-string 10 #\a)) (display "[") (display a) (display "]") (newline) (string-set! a 5 #\c) (display "[") (display a) (display "]") (newline)
null
https://raw.githubusercontent.com/rtrusso/scp/2051e76df14bd36aef81aba519ffafa62b260f5c/src/tests/stringset.scm
scheme
(define a (make-string 10 #\a)) (display "[") (display a) (display "]") (newline) (string-set! a 5 #\c) (display "[") (display a) (display "]") (newline)
64e672067c5f8619949969cb9dbdcf83b4edff8d3d6c0d60b50262f80d5f22b1
strymonas/strymonas-ocaml
pk_cde.ml
(* An implementation of the Cde signature with tracking partial knowledge *) module type cde_ex = module type of Cde_ex module Make(C: cde_ex) = struct Annotations : what is known about ' a C.cde type 'a annot = | Sta of 'a (* Statically known *) | Global (* It is a ...
null
https://raw.githubusercontent.com/strymonas/strymonas-ocaml/b45ab87c62e5bb845ff4a989064f30ed6b468f6d/lib/pk_cde.ml
ocaml
An implementation of the Cde signature with tracking partial knowledge Statically known It is a cde value that does not depend on the library code: it is some global array or the global let-bound immutable value No...
module type cde_ex = module type of Cde_ex module Make(C: cde_ex) = struct Annotations : what is known about ' a C.cde type 'a annot = type 'a cde = {sta : 'a annot; dyn : 'a C.cde} let tbool = C.tbool let tint = C.tint let tfloat = C.tfloat let tbase_zero : 'a tbase -> 'a cde = fun typ -> {sta=Global...
59de5423a30501cf5730efd94f647436de3f6cb4b804db411840ec3ed7d7cc32
alanz/ghc-exactprint
T365.hs
# OPTIONS_GHC -F -pgmF ./test_preprocessor.txt # module Main where main = print "Hello World"
null
https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc80/T365.hs
haskell
# OPTIONS_GHC -F -pgmF ./test_preprocessor.txt # module Main where main = print "Hello World"
4ac6d42831540c7f2cc897e343a27b0e32eb5a2f98da2d9fffcd201ca98f9a2f
benoitc/econfig
econfig_server.erl
%%% -*- erlang -*- %%% This file is part of econfig released under the Apache 2 license . %%% See the NOTICE for more information. %% @hidden -module(econfig_server). -behaviour(gen_server). -export([register_config/2, register_config/3, open_config/2, open_config/3, unregister_config/1, ...
null
https://raw.githubusercontent.com/benoitc/econfig/84d7cec15f321c4ac5f5c6e08e5a9a8adea01986/src/econfig_server.erl
erlang
-*- erlang -*- See the NOTICE for more information. @hidden @doc register inifiles @doc unregister a conf @doc open or create an ini file an register it maybe monitor the process @doc Remove subscribtion created using `subscribe(ConfigName)' @doc reload the configuration @doc reload the configuration @doc g...
This file is part of econfig released under the Apache 2 license . -module(econfig_server). -behaviour(gen_server). -export([register_config/2, register_config/3, open_config/2, open_config/3, unregister_config/1, subscribe/1, unsubscribe/1, reload/1, reload/2, start_au...
26da5a9fbac5fdb2e3ea419701e105b8cda695f42d95c91621554e7efecc6c9f
mathiasbourgoin/SPOC
gen_kir.ml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * , et ( 2013 ) * * * * This software is a computer program whose purpose is to allow * GPU programming with the OCaml language . * * T...
null
https://raw.githubusercontent.com/mathiasbourgoin/SPOC/9014d26b6d64261d1ace97db7f3fe2256a7c459c/SpocLibs/Sarek/extension/gen_kir.ml
ocaml
create_array use int instead of bools if var.is_global then else assert false sort fields use int instead of bools
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * , et ( 2013 ) * * * * This software is a computer program whose purpose is to allow * GPU programming with the OCaml language . * * T...
b03133f9641d211c3c41886e1a0b6ea4d9ed905be463efcf5d35b64cad33a8aa
wireapp/wire-server
CSV.hs
-- This file is part of the Wire Server implementation. -- Copyright ( C ) 2022 Wire Swiss GmbH < > -- -- This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License...
null
https://raw.githubusercontent.com/wireapp/wire-server/e36c3562f886525e30d6ac9f16feda1a054a247f/libs/wire-api/src/Wire/API/Routes/CSV.hs
haskell
This file is part of the Wire Server implementation. This program is free software: you can redistribute it and/or modify it under later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTI...
Copyright ( C ) 2022 Wire Swiss GmbH < > the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any You should have received a copy of the GNU Affero General Public License along module Wire.API.Routes.CSV where...
61203712e18cf2c1dbacc496a94281d5f4cbd9f92e23c8efb62394848a8138ea
pupeno/ninjatools
pages.cljs
Copyright © 2015 Carousel Apps , Ltd. All rights reserved . (ns ninjatools.pages (:require [re-frame.core :as re-frame] [ajax.core :as ajax] [ninjatools.layout :as layout] [ninjatools.util :as util])) (defmethod layout/pages :about [_] (fn [_] [:div "This is the About Pag...
null
https://raw.githubusercontent.com/pupeno/ninjatools/1b73ff22174b5ec196d514062162b252899c1735/src/cljs/ninjatools/pages.cljs
clojure
Copyright © 2015 Carousel Apps , Ltd. All rights reserved . (ns ninjatools.pages (:require [re-frame.core :as re-frame] [ajax.core :as ajax] [ninjatools.layout :as layout] [ninjatools.util :as util])) (defmethod layout/pages :about [_] (fn [_] [:div "This is the About Pag...
884f305072d605ecdfa39d1125fd4a1acb5994041f48b6a1e1a6a228ccca81b5
Bogdanp/nemea
batcher.rkt
#lang racket/base (require component db db/util/postgresql gregor gregor/period koyo/database racket/async-channel racket/contract/base racket/function racket/match racket/set retry threading (prefix-in...
null
https://raw.githubusercontent.com/Bogdanp/nemea/6e6149007fb0c43d8f0fb2271b36f0ccad830703/nemea/components/batcher.rkt
racket
#lang racket/base (require component db db/util/postgresql gregor gregor/period koyo/database racket/async-channel racket/contract/base racket/function racket/match racket/set retry threading (prefix-in...
1cd75077fe47a0b8815a5dc27b9c2e79adc0bc85c9328b1441771055b6ef3038
AdaCore/why3
bdd.ml
(**************************************************************************) (* *) Copyright ( C ) (* *) (* This software is free software;...
null
https://raw.githubusercontent.com/AdaCore/why3/be1023970d48869285e68f12d32858c3383958e0/src/bddinfer/bdd.ml
ocaml
************************************************************************ This software is free software; you can redistribute it and/or modify it under the terms ...
Copyright ( C ) License version 2.1 , with the special exception on linking module BddVarMap = Map.Make(struct type t = variable let compare (x:variable) (y:variable) = compare x y end) type formula = | Ffalse | Ftrue | Fvar of variable ...
e450eb25be48306a6bf7c4b485b3242dc2a70cd23d1ab31ec18b123f53dcac5b
pmundkur/flowcaml
principal.ml
(**************************************************************************) (* *) (* *) , Projet C...
null
https://raw.githubusercontent.com/pmundkur/flowcaml/ddfa8a37e1cb60f42650bed8030036ac313e048a/src-flowcaml/types/principal.ml
ocaml
************************************************************************ et en Automatique. All ri...
, Projet Cristal , INRIA Rocquencourt Copyright 2002 , 2003 Institut National de Recherche en Informatique under the terms of the Q Public License version 1.0 . $ I d : principal.ml , v 1.4 2003/10/01...
4fa6810c4d80a7e7bfb8f017491b106b4bfecc53b81cec50dd8945caea0448cd
deadpendency/deadpendency
Config.hs
module RP.Model.Config ( Config (..), ) where import Common.Model.GitHub.GHAppId data Config = Config { _redisDatabaseHost :: Text, _githubPrivateKeySecretName :: Text, _appId :: GHAppId } deriving stock (Generic)
null
https://raw.githubusercontent.com/deadpendency/deadpendency/170d6689658f81842168b90aa3d9e235d416c8bd/apps/run-preparer/src/RP/Model/Config.hs
haskell
module RP.Model.Config ( Config (..), ) where import Common.Model.GitHub.GHAppId data Config = Config { _redisDatabaseHost :: Text, _githubPrivateKeySecretName :: Text, _appId :: GHAppId } deriving stock (Generic)
80cf67499c5b6cf996841e6a2c36a419efa4c166b141fed151f4292fd4a75403
johnwhitington/ocamli
exercise03.ml
let rec parts x = if x < 0. then let a, b = parts (-. x) in (-. a, b) else (floor x, x -. floor x)
null
https://raw.githubusercontent.com/johnwhitington/ocamli/28da5d87478a51583a6cb792bf3a8ee44b990e9f/OCaml%20from%20the%20Very%20Beginning/Chapter%2014/exercise03.ml
ocaml
let rec parts x = if x < 0. then let a, b = parts (-. x) in (-. a, b) else (floor x, x -. floor x)
4acecee4d066b167cea53a5c8acbd8a31e1d6f82682bc5aaa2df5c964688333f
reborg/clojure-essential-reference
5.clj
< 1 > ;; => [0 2 4 6 8] (let [r (range 100)] < 2 > Execution time mean : 1.605351 µs
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/Vectors/mapv/5.clj
clojure
=> [0 2 4 6 8]
< 1 > (let [r (range 100)] < 2 > Execution time mean : 1.605351 µs
d355e92d80ac8d0b6b1fd160e54f3c77b477f408dd5658bae747ea2619319145
ocaml-multicore/effects-examples
MVar.ml
module type S = sig type 'a t val create : 'a -> 'a t val create_empty : unit -> 'a t val put : 'a -> 'a t -> unit val take : 'a t -> 'a end module type SCHED = sig type 'a cont type _ Effect.t += Suspend : ('a cont -> unit) -> 'a Effect.t type _ Effect.t += Resume : ('a cont * 'a) ->...
null
https://raw.githubusercontent.com/ocaml-multicore/effects-examples/4f07e1774b726eec0f6769da0a16b402582d37b5/mvar/MVar.ml
ocaml
* The state of mvar is either [Full v q] filled with value [v] and a queue [q] of threads waiting to fill the mvar, or [Empty q], with a queue [q] of threads waiting to empty the mvar.
module type S = sig type 'a t val create : 'a -> 'a t val create_empty : unit -> 'a t val put : 'a -> 'a t -> unit val take : 'a t -> 'a end module type SCHED = sig type 'a cont type _ Effect.t += Suspend : ('a cont -> unit) -> 'a Effect.t type _ Effect.t += Resume : ('a cont * 'a) ->...
942570d2fa4cde9f90cf7488cb0dad1d67967dd2418a62ea8654550d573c6c92
pedestal/pedestal
immutant_test.clj
(ns io.pedestal.http.immutant-test (:use clojure.test io.pedestal.http.immutant) (:require [clj-http.client :as http] [clojure.edn] [io.pedestal.interceptor.helpers :refer [defhandler handler]] [io.pedestal.http.servlet :as servlet] [io.pedestal.http.impl.serv...
null
https://raw.githubusercontent.com/pedestal/pedestal/53bfe70143a22cdfd2f0d183023334a199c9e9a2/tests/test/io/pedestal/http/immutant_test.clj
clojure
(is (= (:content-type request-map) "text/plain; charset=UTF-8"))
(ns io.pedestal.http.immutant-test (:use clojure.test io.pedestal.http.immutant) (:require [clj-http.client :as http] [clojure.edn] [io.pedestal.interceptor.helpers :refer [defhandler handler]] [io.pedestal.http.servlet :as servlet] [io.pedestal.http.impl.serv...
38289af9c795dfe945b4809f0dcd20cc05bf890d7cc64b7d422f24cc900cf726
rbkmoney/consuela
consuela_presence_server.erl
%%% %%% Presence server %%% A simple TCP server which only purpose is to service Consul . -module(consuela_presence_server). %% -type ref() :: _. -type transport_opts() :: ranch:opts(). -type opts() :: #{ transport_opts => transport_opts(), pulse => {module(), _PulseOpts} }. -export([child_spec/2]). -e...
null
https://raw.githubusercontent.com/rbkmoney/consuela/d11610295be5ed5c4b6c0b2ba259a35d5e00b29c/src/consuela_presence_server.erl
erlang
Presence server
A simple TCP server which only purpose is to service Consul . -module(consuela_presence_server). -type ref() :: _. -type transport_opts() :: ranch:opts(). -type opts() :: #{ transport_opts => transport_opts(), pulse => {module(), _PulseOpts} }. -export([child_spec/2]). -export([get_endpoint/1]). -expo...
285b8585ce38e33af086260cd87c95fe1bc10bf80753fbc2608c1d7485923f1e
lambdaisland/souk
setup.clj
(ns lambdaisland.souk.setup (:require [lambdaisland.webbing.config :as config] [clojure.java.io :as io])) (def project 'lambdaisland/souk) (def start-keys #{:http/server}) (def schemas {:settings [[:port int?] [:dev/reload-routes? boolean?]] :secrets []}) (defn proj-resource [path] ...
null
https://raw.githubusercontent.com/lambdaisland/souk/bf25b247d989358af9a1a00f294d4de2a9c2d59c/src/lambdaisland/souk/setup.clj
clojure
(ns lambdaisland.souk.setup (:require [lambdaisland.webbing.config :as config] [clojure.java.io :as io])) (def project 'lambdaisland/souk) (def start-keys #{:http/server}) (def schemas {:settings [[:port int?] [:dev/reload-routes? boolean?]] :secrets []}) (defn proj-resource [path] ...
5d852b95cfa770365e15b5d126e0237f73babbc2a7cc657e6af8afef9ddb38d8
dhleong/wish
overlay.cljs
(ns wish.views.overlay (:require [garden.color :as color] [spade.core :refer [defclass]] [wish.style.flex :as flex] [wish.style.media :as media] [wish.style.shared :as shared] [wish.util :refer [<sub click>evt]] [wish.views.widgets :refer-macros ...
null
https://raw.githubusercontent.com/dhleong/wish/2bfd9b0d5867f1e268733bc9eae02d24bec95020/src/cljs/wish/views/overlay.cljs
clojure
Override padding and dimensions on mobile: prevent click propagation by default to avoid the event leaking through and triggering the dismiss click on the bg finally, the overlay itself
(ns wish.views.overlay (:require [garden.color :as color] [spade.core :refer [defclass]] [wish.style.flex :as flex] [wish.style.media :as media] [wish.style.shared :as shared] [wish.util :refer [<sub click>evt]] [wish.views.widgets :refer-macros ...
e9c4bccf725b8e0b308601f416997d2cb5fafd8b832ba9780bafabdf50facd7e
mput/sicp-solutions
2_41.test.rkt
#lang racket (require rackunit/text-ui) (require rackunit "custom-checks.rkt") (require rackunit "../solutions/2_41.rkt") (define tests (test-suite "Test for exercise 2_41" (test-case "Case here" (define sol-list (list (list 3 2 5) (list 4 1 5))) (check-equal? (sum-pairs 4 5) sol-list))))...
null
https://raw.githubusercontent.com/mput/sicp-solutions/fe12ad2b6f17c99978c8fe04b2495005986b8496/tests/2_41.test.rkt
racket
#lang racket (require rackunit/text-ui) (require rackunit "custom-checks.rkt") (require rackunit "../solutions/2_41.rkt") (define tests (test-suite "Test for exercise 2_41" (test-case "Case here" (define sol-list (list (list 3 2 5) (list 4 1 5))) (check-equal? (sum-pairs 4 5) sol-list))))...
12af85ce6da57c8cb81c4a9950663f4f91332ff8fe8c09cdaa46f797258e24b2
zk/clojuredocs
data.clj
(ns clojuredocs.data (:require [somnium.congomongo :as mon])) ;; Examples (defn find-examples-for [{:keys [ns name library-url]}] (mon/fetch :examples :where {:var.name name :var.ns ns :var.library-url library-url :deleted-at nil} :sort {:created-at 1})) Notes (defn...
null
https://raw.githubusercontent.com/zk/clojuredocs/28f5ee500f4349039ee81c70d7ac40acbb19e5d8/src/clj/clojuredocs/data.clj
clojure
Examples See Alsos
(ns clojuredocs.data (:require [somnium.congomongo :as mon])) (defn find-examples-for [{:keys [ns name library-url]}] (mon/fetch :examples :where {:var.name name :var.ns ns :var.library-url library-url :deleted-at nil} :sort {:created-at 1})) Notes (defn find-notes-...
80c79eff8439418c087bace70c373e70df6179b6d96ad9af9bbfc692a7ae3ed3
juspay/atlas
Fcm.hs
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/mock-fcm/src/Types/API/Fcm.hs
haskell
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
088bf7d41da5ffaf7b00bfc416ee0a6516049890bf9df36e4b2a667440ff4b58
michaelballantyne/syntax-spec
state-machine.rkt
#lang racket (provide machine state on) (require syntax-spec "state-machine-compiler.rkt") (syntax-spec (binding-class state-name) (nonterminal/two-pass state-spec (state name:state-name ((~datum on-enter) action:expr ...) e:event-spec ...) #:binding (export name)) (nonterminal event-...
null
https://raw.githubusercontent.com/michaelballantyne/syntax-spec/0a9d7599afb2f90a6dcfd45e625d117191a85b3d/demos/strumienta-talk/csv-demo/state-machine.rkt
racket
#lang racket (provide machine state on) (require syntax-spec "state-machine-compiler.rkt") (syntax-spec (binding-class state-name) (nonterminal/two-pass state-spec (state name:state-name ((~datum on-enter) action:expr ...) e:event-spec ...) #:binding (export name)) (nonterminal event-...
dc370bd458da024fbb21a200b0c457a4d6e0e1c84a106c8f084f3fc25c9053ba
machine-intelligence/provability
Programs.hs
module Modal.Programs where import Modal.Formulas import Modal.GameTools import Modal.Programming import Modal.Utilities generalUDT :: Eq a => [Int] -> [u] -> [a] -> a -> ModalProgram a (U1 u a) generalUDT levels uorder aorder dflt = completeProgram dflt mainLoop where mainLoop = mFor (zip levels uaPairs) (uncurry c...
null
https://raw.githubusercontent.com/machine-intelligence/provability/12d981dfe7d0420b06f5548e96afc3f39f338d26/src/Modal/Programs.hs
haskell
module Modal.Programs where import Modal.Formulas import Modal.GameTools import Modal.Programming import Modal.Utilities generalUDT :: Eq a => [Int] -> [u] -> [a] -> a -> ModalProgram a (U1 u a) generalUDT levels uorder aorder dflt = completeProgram dflt mainLoop where mainLoop = mFor (zip levels uaPairs) (uncurry c...
1d2409253eeaab5f3924b50f18a9d85fad56068d76b74a750d5499c61e726757
tmattio/js-bindings
node_process.ml
[@@@js.dummy "!! This code has been generated by gen_js_api !!"] [@@@ocaml.warning "-7-32-39"] [@@@ocaml.warning "-7-11-32-33-39"] open Es2020 open Node_globals module AnonymousInterface0 = struct type t = Ojs.t let rec t_of_js : Ojs.t -> t = fun (x2 : Ojs.t) -> x2 and t_to_js : t -> Ojs.t = fun (x1 : Ojs...
null
https://raw.githubusercontent.com/tmattio/js-bindings/ca3bd6a12db519c8de7f41b303f14cf70cfd4c5f/lib/node/node_process.ml
ocaml
[@@@js.dummy "!! This code has been generated by gen_js_api !!"] [@@@ocaml.warning "-7-32-39"] [@@@ocaml.warning "-7-11-32-33-39"] open Es2020 open Node_globals module AnonymousInterface0 = struct type t = Ojs.t let rec t_of_js : Ojs.t -> t = fun (x2 : Ojs.t) -> x2 and t_to_js : t -> Ojs.t = fun (x1 : Ojs...
6e7f79eb04f349b55023f2f6601f8d9182d953cc7f3515cd78a3608ca94fd88f
haskell-opengl/OpenGLRaw
PixelBufferObject.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | Module : Graphics . Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- -----------------------------------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/ARB/PixelBufferObject.hs
haskell
------------------------------------------------------------------------------ | License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Enums
# LANGUAGE PatternSynonyms # Module : Graphics . Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.ARB.PixelBufferObject ( glGetARBPixelBufferObject, gl_ARB_pixel_buffer_object, pattern GL_PIXEL_PACK_BUFFER_ARB, pattern GL_PIXEL_PACK_BUFFER_BINDING_ARB, pattern GL_PIXEL_...