_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
540a4d27ab2c42008febebe18652f7247717f75453bff8837d1d28272d6fd8b4
vadimbakaev/flatmap.io
ContactsSpec.hs
module Handler.ContactsSpec ( spec ) where import TestImport spec :: Spec spec = withApp $ do describe "contacts" $ do it "gives a 200" $ do get ContactsR statusIs 200
null
https://raw.githubusercontent.com/vadimbakaev/flatmap.io/766069a8b1317a1e5a4546f3358d04c3c901f693/test/Handler/ContactsSpec.hs
haskell
module Handler.ContactsSpec ( spec ) where import TestImport spec :: Spec spec = withApp $ do describe "contacts" $ do it "gives a 200" $ do get ContactsR statusIs 200
d2dafd47d81cafc507349a82ebd199ecbb142a0c97c7e96f4c5b54f9f6336d2d
racket/libs
info.rkt
#lang setup/infotab SPDX - License - Identifier : ( Apache-2.0 OR MIT ) ;; THIS FILE IS AUTO-GENERATED FROM racket/src/native-libs/install.rkt (define install-platform "x86_64-linux-natipkg") (define copy-foreign-libs '("libz.so.1" "libuuid.so.1" "libjpeg.so.9" "libpng16.so.16" "libpixman-1.so.0" ...
null
https://raw.githubusercontent.com/racket/libs/ebcea119197dc0cb86be1ccbbfbe5806f7280976/draw-x86_64-linux-natipkg-3/racket/draw/info.rkt
racket
THIS FILE IS AUTO-GENERATED FROM racket/src/native-libs/install.rkt
#lang setup/infotab SPDX - License - Identifier : ( Apache-2.0 OR MIT ) (define install-platform "x86_64-linux-natipkg") (define copy-foreign-libs '("libz.so.1" "libuuid.so.1" "libjpeg.so.9" "libpng16.so.16" "libpixman-1.so.0" "libcairo.so.2" "libfreetype.so.6" "libfontconfig.so.1" ...
9736f3116069a1cdd65353048e3023c7d137d14c8038a0825b20665672620b13
scrintal/heroicons-reagent
arrows_pointing_in.cljs
(ns com.scrintal.heroicons.solid.arrows-pointing-in) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M3.22 3.22a.75.75 0 011.06 0l3.97 3.97V4.5a.75.75 0 011.5 0V9a.75.75 0 ...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/solid/arrows_pointing_in.cljs
clojure
(ns com.scrintal.heroicons.solid.arrows-pointing-in) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M3.22 3.22a.75.75 0 011.06 0l3.97 3.97V4.5a.75.75 0 011.5 0V9a.75.75 0 ...
39bb854bf5ab85b6f1ea07ed071db144e770bfdb10cfa2ca195dfcfebe311cb3
sarabander/p2pu-sicp
3.07.scm
Unmodified from 3.03 (define (make-account balance password) (define (withdraw amount) (if (>= balance amount) (begin (set! balance (- balance amount)) balance) "Insufficient funds")) (define (deposit amount) (set! balance (+ balance amount)) balance) (define (block-access amount) "In...
null
https://raw.githubusercontent.com/sarabander/p2pu-sicp/fbc49b67dac717da1487629fb2d7a7d86dfdbe32/3.1/3.07.scm
scheme
For creating another access point to existing account "Incorrect password" [failure] => Wrong password for existing account "Account doesn't exist" Another attempt [success] #<procedure:dispatch> "Incorrect password" [failure] => Wrong password for existing account "Account doesn't exist" Try again [succe...
Unmodified from 3.03 (define (make-account balance password) (define (withdraw amount) (if (>= balance amount) (begin (set! balance (- balance amount)) balance) "Insufficient funds")) (define (deposit amount) (set! balance (+ balance amount)) balance) (define (block-access amount) "In...
baa49cb6596f05bce2fcd351dd4500de460109fbd701e6b16e2e6387f396a1c9
jabber-at/ejabberd
mod_metrics.erl
%%%------------------------------------------------------------------- %%% File : mod_metrics.erl Author : %%% Purpose : Simple metrics handler for runtime statistics Created : 22 Oct 2015 by %%% %%% ejabberd , Copyright ( C ) 2002 - 2018 ProcessOne %%% %%% This program is free software; you can...
null
https://raw.githubusercontent.com/jabber-at/ejabberd/7bfec36856eaa4df21b26e879d3ba90285bad1aa/src/mod_metrics.erl
erlang
------------------------------------------------------------------- File : mod_metrics.erl Purpose : Simple metrics handler for runtime statistics 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 wil...
Author : Created : 22 Oct 2015 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...
013522b64b02de136abdfca4767c07646c2bd8c3681c6a0b5b930441f6924d18
DestyNova/advent_of_code_2021
Part2.hs
module Main where import Text.Parsec import Data.List ((\\), transpose) type Board = [[Int]] main = do txt <- readFile "input.txt" let (Right (nums,boards)) = parse parser "" txt print $ getScore boards nums getScore boards nums = sum unmarked * lastNum where (unmarked,lastNum) = runGame boards nums [] (len...
null
https://raw.githubusercontent.com/DestyNova/advent_of_code_2021/d1eb1c178d2ad959c58732033655b1259bfeb7de/day4/Part2.hs
haskell
module Main where import Text.Parsec import Data.List ((\\), transpose) type Board = [[Int]] main = do txt <- readFile "input.txt" let (Right (nums,boards)) = parse parser "" txt print $ getScore boards nums getScore boards nums = sum unmarked * lastNum where (unmarked,lastNum) = runGame boards nums [] (len...
97ff4b7dd8480bb52006f22a172af4c841a207a476bbd17c940ca71edd9b24d7
whatacold/babashka-tools
illustrate.clj
#!/usr/bin/env bb (require '[clojure.tools.cli :refer [parse-opts]] '[rewrite-clj.zip :as z] '[rewrite-clj.node :as n]) (def cli-options ;; An option with a required argument [["-i" "--in-place SUFFIX" "Suffix for new illustrated files" :default "" :validate [#(<= 1 (count %) 5) "Must be...
null
https://raw.githubusercontent.com/whatacold/babashka-tools/8f6086f489e612a9f63de4cf21cd6d33aa3f7442/illustrate.clj
clojure
An option with a required argument append to the source block not in a src block previously main
#!/usr/bin/env bb (require '[clojure.tools.cli :refer [parse-opts]] '[rewrite-clj.zip :as z] '[rewrite-clj.node :as n]) (def cli-options [["-i" "--in-place SUFFIX" "Suffix for new illustrated files" :default "" :validate [#(<= 1 (count %) 5) "Must be a string with length of between 1 and 5...
52e183b346739f37800551e8c191b89b5a58536ad30e10434834cc1835fe6988
IBM-Watson/kale
common.clj
;; ( C ) Copyright IBM Corp. 2016 All Rights Reserved . ;; (ns kale.common (:require [clojure.set :as set] [clojure.string :as str] [clojure.java.io :as io] [slingshot.slingshot :refer [try+ throw+]] [kale.messages.en :as en] [kale.messages.es :as es] ...
null
https://raw.githubusercontent.com/IBM-Watson/kale/f1c5e312e5db0e3fc01c47dfb965f175b5b0a5b6/src/kale/common.clj
clojure
Assume that the user's environment is setup for their preferred language. I suspect this branch won't happen with http-kit The value for cli-options should be in the following format: lein doesn't know to handle (System/console) for some reason, so we'll default to prompt-user if getting the console fails
( C ) Copyright IBM Corp. 2016 All Rights Reserved . (ns kale.common (:require [clojure.set :as set] [clojure.string :as str] [clojure.java.io :as io] [slingshot.slingshot :refer [try+ throw+]] [kale.messages.en :as en] [kale.messages.es :as es] ...
3769ca9b09a33649ba046c9244460cc89a382002ee6a0717a9f6f8b00f0a161b
logseq/logseq
routes.cljs
(ns frontend.routes "Defines routes for use with reitit router" (:require [frontend.components.file :as file] [frontend.components.home :as home] [frontend.components.journal :as journal] [frontend.components.onboarding.setups :as setups] [frontend.components.page :as...
null
https://raw.githubusercontent.com/logseq/logseq/7fd2a9a3b607886c643c91a1b99b2241e0aced95/src/main/frontend/routes.cljs
clojure
:3000/#?anchor=fn.1
(ns frontend.routes "Defines routes for use with reitit router" (:require [frontend.components.file :as file] [frontend.components.home :as home] [frontend.components.journal :as journal] [frontend.components.onboarding.setups :as setups] [frontend.components.page :as...
c91e9aba46fbb1000404799d092c433719e7c356fdcff2b70b2e6ab733dfc032
webyrd/n-grams-for-synthesis
srfi-44_tiny-clos.scm
Copyright ( C ) 2003 and . See the ;; LICENCE file for details. This reference implementation uses Tiny - CLOS . This file requires utilities.scm , utilities_tiny-clos.scm , SRFI 2 ( and - let * ) , SRFI 23 ( error ) , and Tiny - CLOS . It hacks up the class hierarchy in Tiny - CLOS . ;; The abs...
null
https://raw.githubusercontent.com/webyrd/n-grams-for-synthesis/b53b071e53445337d3fe20db0249363aeb9f3e51/datasets/srfi/srfi-44/srfi-44/srfi-44_tiny-clos.scm
scheme
LICENCE file for details. The abstract collection type hierarchy Attributes The concrete collection types NOTE: Requires access to the low-level %INSTANCE? & %INSTANCE-CLASS Tiny-CLOS needs full numeric tower support. Should this be <NULL>? - Folding - - General Collections - Oh well. - Attributes - - Sets ...
Copyright ( C ) 2003 and . See the This reference implementation uses Tiny - CLOS . This file requires utilities.scm , utilities_tiny-clos.scm , SRFI 2 ( and - let * ) , SRFI 23 ( error ) , and Tiny - CLOS . It hacks up the class hierarchy in Tiny - CLOS . (define <collection> (make-class (list ...
a1221db0a6b1b234da3421f956823f8ccd2cd7dfe69217ed64323a5d091cfa53
NorfairKing/dekking
Spec.hs
import Foobar import Foobar.Gen () import Test.Syd import Test.Syd.Validity main :: IO () main = sydTest $ do it "can print this example" $ printExample Example { exampleString = "hi", exampleInt = 42 } -- TODO: type applications { - # LANGUAGE TypeApplications # - } genValid...
null
https://raw.githubusercontent.com/NorfairKing/dekking/0dda8a5aca5913ac966b357db797f6363c8d5028/e2e-test/foobar-gen/test/Spec.hs
haskell
TODO: type applications
import Foobar import Foobar.Gen () import Test.Syd import Test.Syd.Validity main :: IO () main = sydTest $ do it "can print this example" $ printExample Example { exampleString = "hi", exampleInt = 42 } { - # LANGUAGE TypeApplications # - } genValidSpec @Example
7c550f4d53d4cc7db0cd179c173ab13e8be96d275ea4784b84e67ffedf84736c
umd-cmsc330/cmsc330spring22
student.ml
open OUnit2 open P2b.Data open P2b.Funs open P2b.Higher let test_sanity _ = assert_equal 1 1 let suite = "student" >::: [ "sanity" >:: test_sanity ] let _ = run_test_tt_main suite
null
https://raw.githubusercontent.com/umd-cmsc330/cmsc330spring22/e499004813cebd2e6aeffc79088ff7279560cbf0/project2b/test/student/student.ml
ocaml
open OUnit2 open P2b.Data open P2b.Funs open P2b.Higher let test_sanity _ = assert_equal 1 1 let suite = "student" >::: [ "sanity" >:: test_sanity ] let _ = run_test_tt_main suite
3431421d2590e7059f4d8e0f6aed2710e3b45794ec674788d7f20c912d427db1
kowainik/summoner
stackScript.hs
#!/usr/bin/env stack {- stack --resolver nightly-2022-01-10 script --package base -} main :: IO () main = putStrLn "Hello, World!"
null
https://raw.githubusercontent.com/kowainik/summoner/0c03dd0d6ee71c79227974b697f171396d3d09a7/summoner-cli/examples/stackScript.hs
haskell
stack --resolver nightly-2022-01-10 script --package base
#!/usr/bin/env stack main :: IO () main = putStrLn "Hello, World!"
6807ea7ffca29cebca9922657044060db2421e0977183a4e9022d49012080727
RichiH/git-annex
LockHandle.hs
Handles for lock pools . - - Copyright 2015 < > - - License : BSD-2 - clause - - Copyright 2015 Joey Hess <> - - License: BSD-2-clause -} # LANGUAGE CPP # module Utility.LockPool.LockHandle ( LockHandle, FileLockOps(..), dropLock, #ifndef mingw32_HOST_OS checkSaneLock, #endif makeLockHan...
null
https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Utility/LockPool/LockHandle.hs
haskell
lock. If taking the file lock fails for any reason, take care to release the lock in the lock pool.
Handles for lock pools . - - Copyright 2015 < > - - License : BSD-2 - clause - - Copyright 2015 Joey Hess <> - - License: BSD-2-clause -} # LANGUAGE CPP # module Utility.LockPool.LockHandle ( LockHandle, FileLockOps(..), dropLock, #ifndef mingw32_HOST_OS checkSaneLock, #endif makeLockHan...
812f177f415f49df3115b9480f9aa6e1d9512de858f279eb20285e633d11983d
fgaz/shine
MountainCar.hs
module MountainCar where minPosition :: Double minPosition = -1.2 maxPosition :: Double maxPosition = 0.6 minInitPos :: Double minInitPos = -0.6 maxInitPos :: Double maxInitPos = -0.4 maxSpeed :: Double maxSpeed = 0.07 goalPosition :: Double goalPosition = 0.5 force :: Double force = 0.001 gravity :: Double gra...
null
https://raw.githubusercontent.com/fgaz/shine/4e445592494a834269e9f7d2ca8b72ec10fbf073/shine-examples/mountaincar/MountainCar.hs
haskell
module MountainCar where minPosition :: Double minPosition = -1.2 maxPosition :: Double maxPosition = 0.6 minInitPos :: Double minInitPos = -0.6 maxInitPos :: Double maxInitPos = -0.4 maxSpeed :: Double maxSpeed = 0.07 goalPosition :: Double goalPosition = 0.5 force :: Double force = 0.001 gravity :: Double gra...
f59e73c9184b3081334ec81a0aeb11c5a2114dfbb5fd96221d69f539a2394d1d
atzedijkstra/chr
MicroLens.hs
{-| Minimal redefine + re-export of a lens package, fclabels -} {-# LANGUAGE TypeOperators, RankNTypes #-} module CHR.Data.Lens.MicroLens ( (:->) , Lens -- , lens -- * Access , (^*) , (^.) , getL , (^=) , (^$=) {- , (=.) -} , (=:) , (=$:) , modifyAndGet , (=$^:) , mod...
null
https://raw.githubusercontent.com/atzedijkstra/chr/ad465828b1560831e90c4056e12338231872e8db/chr-data/src/CHR/Data/Lens/MicroLens.hs
haskell
| Minimal redefine + re-export of a lens package, fclabels # LANGUAGE TypeOperators, RankNTypes # , lens * Access , (=.) * Misc , focus * Tuple accessors * Wrappers * Type aliases * Operator interface for composition | composition alias # INLINE (^*) # * Operator interface for functional part (...
module CHR.Data.Lens.MicroLens ( (:->) , Lens , (^*) , (^.) , getL , (^=) , (^$=) , (=:) , (=$:) , modifyAndGet , (=$^:) , modL , getl , mkLabel , fstl , sndl , fst3l , snd3l , trd3l , isoMb , isoMbWithDefault ) where import qualified Cont...
768ece231c71a5c61633ed59c9cea8cf7c29dbccc596c1ad7f934a2261e60bee
edgecase/dieter
javascript.clj
(ns dieter.asset.javascript (:require [dieter.asset :as asset] [dieter.settings :as settings]) (:use [dieter.util :only [slurp-into string-builder]]) (:import [com.google.javascript.jscomp JSSourceFile CompilerOptions CompilationLevel WarningLevel] [java.util.logging Logger Level])) ;; TOD...
null
https://raw.githubusercontent.com/edgecase/dieter/f3c7cdd7703c6d1556e68bbe8fc94406b717f6f1/dieter-core/src/dieter/asset/javascript.clj
clojure
TODO: use pools here too to avoid constructor overhead
(ns dieter.asset.javascript (:require [dieter.asset :as asset] [dieter.settings :as settings]) (:use [dieter.util :only [slurp-into string-builder]]) (:import [com.google.javascript.jscomp JSSourceFile CompilerOptions CompilationLevel WarningLevel] [java.util.logging Logger Level])) (defn ...
6540ee0d236087e3b76fd4fbcdfb0913bb8064c599a294199e1a07061e3edbca
hz7k-nzw/rabbit
hello.scm
(print "hello")
null
https://raw.githubusercontent.com/hz7k-nzw/rabbit/e99e37d2da6295bf9f9084a37119d27277ee8b0f/hello.scm
scheme
(print "hello")
9f8f535b58a02a11726a89e2f74b5e106e1c43e3d1c1a72c327ca7fc41bdaf83
EFanZh/EOPL-Exercises
exercise-6.4.rkt
#lang eopl ;; Exercise 6.4 [★★] Rewrite each of the following procedures in continuation-passing style. For each procedure, do this first using a data - structure representation of continuations , then with a procedural representation , and then with the inlined procedural representation . Last , write the registe...
null
https://raw.githubusercontent.com/EFanZh/EOPL-Exercises/11667f1e84a1a3e300c2182630b56db3e3d9246a/solutions/exercise-6.4.rkt
racket
Exercise 6.4 [★★] Rewrite each of the following procedures in continuation-passing style. For each procedure, do test to see that your implementation is tail-recursive by defining end-cont by = (begin val) remove-first: original. remove-first: data-structure representation. remove-first: procedura...
#lang eopl this first using a data - structure representation of continuations , then with a procedural representation , and then with the inlined procedural representation . Last , write the registerized version . For each of these four versions , ( apply - cont ( end - cont ) ) ( eopl : printf "...
ff679ed469c6c53f9d4bf24ede4104ae83bd3fd5df45b72c4766b4bda7f3d1b8
maximedenes/native-coq
obligations.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/toplevel/obligations.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * Forward declaration. env, id, ev...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Environ open Tacmach ope...
d42bb02b8b69bb15bacf64edd6951174388797c0c753533411cbabef7ddc80f5
GlideAngle/flare-timing
Round.hs
module Points.Round ((<&>), dpRoundTaskPoints, dpRoundPointsReduced) where import qualified Data.Ratio.Rounding as Round (dpRound) import "flight-gap-math" Flight.Score (TaskPoints, PointsReduced, onTaskPoints, onPointsReduced) -- TODO : When base > = 4.11 use Data . Functor ( ( < & > ) ) (<&>) :: Either c a -> ...
null
https://raw.githubusercontent.com/GlideAngle/flare-timing/27bd34c1943496987382091441a1c2516c169263/lang-haskell/gap-math/test-suite-math/Points/Round.hs
haskell
module Points.Round ((<&>), dpRoundTaskPoints, dpRoundPointsReduced) where import qualified Data.Ratio.Rounding as Round (dpRound) import "flight-gap-math" Flight.Score (TaskPoints, PointsReduced, onTaskPoints, onPointsReduced) TODO : When base > = 4.11 use Data . Functor ( ( < & > ) ) (<&>) :: Either c a -> (a ...
c99217970beb012dd7a0c4c1e2cc41fa682e9b7e672d3cf30bbc590625df49d8
nd/sicp
4.59.scm
;;a (совещание ?somewhere (пятница ?time)) ;;b (rule (время-совещания ?person ?day-and-time) (and (должность ?person (?department . ?any)) (or (совещание ?department ?day-and-time) (совещание компания ?day-and-time)))) ;;c (время-совещания (Хакер Лиза П) (среда ?any-time))
null
https://raw.githubusercontent.com/nd/sicp/d8587a0403d95af7c7bcf59b812f98c4f8550afd/ch04/4.59.scm
scheme
a b c
(совещание ?somewhere (пятница ?time)) (rule (время-совещания ?person ?day-and-time) (and (должность ?person (?department . ?any)) (or (совещание ?department ?day-and-time) (совещание компания ?day-and-time)))) (время-совещания (Хакер Лиза П) (среда ?any-time))
d8ec697648299c39dc19eaa57a70df80b29ad123c89fae62442e1a19292100e5
2garryn/esli
esli_sup.erl
%%% --------------------------------------------------------------- %%% File : esli_sup.erl Author : %%% Description : %%% --------------------------------------------------------------- -module(esli_sup). -export([start_link/0, init/1]). -include("esli.hrl"). start_link() -> supervisor:start_link({l...
null
https://raw.githubusercontent.com/2garryn/esli/6e48337b066bb230813317dcda613993c2929684/apps/esli/src/esli_sup.erl
erlang
--------------------------------------------------------------- File : esli_sup.erl Description : ---------------------------------------------------------------
Author : -module(esli_sup). -export([start_link/0, init/1]). -include("esli.hrl"). start_link() -> supervisor:start_link({local, ?SUP_NAME}, ?MODULE, []). init([]) -> {ok, {{one_for_one, 10, 60}, [{esli_riakc_sup, {esli_riakc_sup, start_link, []}, permanent, 5000, supervisor, []}, {esli_r...
6ca1d6483e2acd3151d64f17c2b652883b12bd4e767c400a572f389c376a4a38
jackfirth/lens
struct-list.rkt
#lang sweet-exp racket/base provide struct->list-lens list->struct-lens require racket/local lens/private/isomorphism/base for-syntax racket/base racket/list racket/struct-info syntax/parse module+ test require lens/private/base/base ...
null
https://raw.githubusercontent.com/jackfirth/lens/733db7744921409b69ddc78ae5b23ffaa6b91e37/lens-data/lens/private/struct/struct-list.rkt
racket
foo is opaque, so struct->vector doesn't work
#lang sweet-exp racket/base provide struct->list-lens list->struct-lens require racket/local lens/private/isomorphism/base for-syntax racket/base racket/list racket/struct-info syntax/parse module+ test require lens/private/base/base ...
df998acab30dafd2ca6af5bce167ad84b9b7936f93331e0eafacedb64c4b42e3
lispbuilder/lispbuilder
openglsimple.lisp
;;;; Simple OpenGL example ;;;; Shows usage of cl-opengl from lispbuilder ; You need to asdf install cl-opengl and load up these systems ; for this example ;(asdf:oos 'asdf:load-op 'cl-opengl) ;(asdf:oos 'asdf:load-op 'cl-glu) ;(asdf:oos 'asdf:load-op 'cl-glut) ; not needed ;; Application specific parameters (defpar...
null
https://raw.githubusercontent.com/lispbuilder/lispbuilder/589b3c6d552bbec4b520f61388117d6c7b3de5ab/lispbuilder-sdl/examples/openglsimple.lisp
lisp
Simple OpenGL example Shows usage of cl-opengl from lispbuilder You need to asdf install cl-opengl and load up these systems for this example (asdf:oos 'asdf:load-op 'cl-opengl) (asdf:oos 'asdf:load-op 'cl-glu) (asdf:oos 'asdf:load-op 'cl-glut) ; not needed Application specific parameters Justinhj NOTE these are ...
(defparameter *screen-width* 400) (defparameter *screen-height* 400) Many thanks , for macros (defmacro with-glBegin (type &body body) `(progn (gl::begin ,type) (unwind-protect (progn ,@body) (gl::end)))) (defmacro with-glPushMatrix (&body body) `(progn (gl::push-matrix) (unwind-pro...
00828d1048271906a3f503aa46bda25c123c2ebc1e9e904eb5f78b024905f2a0
jfeser/castor
zorder.ml
open Core let less_msb x y = x < y && x < x lxor y let compare lhs rhs = let msd = ref 0 in for i = 1 to Array.length lhs - 1 do if less_msb (lhs.(!msd) lxor rhs.(!msd)) (lhs.(i) lxor rhs.(i)) then msd := i done; Int.compare lhs.(!msd) rhs.(!msd) let sort tups = List.sort tups ~compare let%expect_...
null
https://raw.githubusercontent.com/jfeser/castor/39005df41a094fee816e85c4c673bfdb223139f7/lib/zorder.ml
ocaml
open Core let less_msb x y = x < y && x < x lxor y let compare lhs rhs = let msd = ref 0 in for i = 1 to Array.length lhs - 1 do if less_msb (lhs.(!msd) lxor rhs.(!msd)) (lhs.(i) lxor rhs.(i)) then msd := i done; Int.compare lhs.(!msd) rhs.(!msd) let sort tups = List.sort tups ~compare let%expect_...
f0139306fe363c7260c0ab8ca1e7f9c69b13555dc5cee708e0afebf206d4cbd1
bcc32/advent-of-code
main.ml
open! Core open! Async open! Import let input = Lazy_deferred.create (fun () -> Reader.file_contents "input.txt" >>| String.split_lines >>| List.map ~f:Int.of_string) ;; let rec iter_combinations list ~f = match list with | [] -> f [] | hd :: tl -> iter_combinations tl ~f:(fun combo -> f combo; ...
null
https://raw.githubusercontent.com/bcc32/advent-of-code/86a9387c3d6be2afe07d2657a0607749217b1b77/2015/day_17/main.ml
ocaml
open! Core open! Async open! Import let input = Lazy_deferred.create (fun () -> Reader.file_contents "input.txt" >>| String.split_lines >>| List.map ~f:Int.of_string) ;; let rec iter_combinations list ~f = match list with | [] -> f [] | hd :: tl -> iter_combinations tl ~f:(fun combo -> f combo; ...
a395b8c529cd9b9313f1314895f67aa2c0edc6e4b4171e62983f347a758f1029
jmingtan/clonings
core.clj
(ns clonings.core (:require [clojure.edn :as edn] [clojure.test :refer [test-ns]] [juxt.dirwatch :refer [watch-dir close-watcher]])) (def info-file "info.edn") (defn load-edn [file-name] (edn/read-string (slurp file-name))) (defn clear-screen [] (doseq [_ (range 80)] (println))) (d...
null
https://raw.githubusercontent.com/jmingtan/clonings/ca64b031ab26a1924bed91f5c9c98b6dd69fc129/src/clonings/core.clj
clojure
cleanup the namespace for future runs
(ns clonings.core (:require [clojure.edn :as edn] [clojure.test :refer [test-ns]] [juxt.dirwatch :refer [watch-dir close-watcher]])) (def info-file "info.edn") (defn load-edn [file-name] (edn/read-string (slurp file-name))) (defn clear-screen [] (doseq [_ (range 80)] (println))) (d...
6e2dc06ceca3a88810b42a5789d681e0d59ca8324816ea8875db7d4a8c5be9e0
ghollisjr/cl-ana
test.lisp
cl - ana is a Common Lisp data analysis library . Copyright 2013 , 2014 ;;;; This file is part of cl - ana . ;;;; ;;;; cl-ana is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the ...
null
https://raw.githubusercontent.com/ghollisjr/cl-ana/5cb4c0b0c9c4957452ad2a769d6ff9e8d5df0b10/csv-table/test.lisp
lisp
cl-ana is free software: you can redistribute it and/or modify it (at your option) any later version. cl-ana 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 Public Lice...
cl - ana is a Common Lisp data analysis library . Copyright 2013 , 2014 This file is part of cl - ana . under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License ...
4b04249cef44a4c9c1aa9063e2174381a87419b733f615a92cda71286a0d9f0d
naveensundarg/prover
sort-system.lisp
(in-package :snark-user) (defun declare-ec-sort-system () (declare-sort 'Fluent) (declare-sort 'Event) (declare-subsort 'Action 'Event) (declare-sort 'ActionType) (declare-relation 'Initiates 3 :sort '(Event Fluent Number)) (declare-relation 'Terminates 3 :sort '(Event Fluent Number)) (declare-relat...
null
https://raw.githubusercontent.com/naveensundarg/prover/812baf098d8bf77e4d634cef4d12de94dcd1e113/snark-20120808r02/sort-system.lisp
lisp
(in-package :snark-user) (defun declare-ec-sort-system () (declare-sort 'Fluent) (declare-sort 'Event) (declare-subsort 'Action 'Event) (declare-sort 'ActionType) (declare-relation 'Initiates 3 :sort '(Event Fluent Number)) (declare-relation 'Terminates 3 :sort '(Event Fluent Number)) (declare-relat...
a82677e906187d0bfcf583d46b46d842ba6442e543ac8c6887e77cc0deb5131d
orionsbelt-battlegrounds/obb-rules
privatize_test.cljc
(ns obb-rules.privatize-test (:require [obb-rules.game :as game] [obb-rules.game-progress :as game-progress] [obb-rules.board :as board] [obb-rules.privatize :as privatize] [obb-rules.unit :as unit] [obb-rules.turn :as turn] [obb-rules.element :as element] [obb-rules.stash :as stash] ...
null
https://raw.githubusercontent.com/orionsbelt-battlegrounds/obb-rules/97fad6506eb81142f74f4722aca58b80d618bf45/test/obb_rules/privatize_test.cljc
clojure
(ns obb-rules.privatize-test (:require [obb-rules.game :as game] [obb-rules.game-progress :as game-progress] [obb-rules.board :as board] [obb-rules.privatize :as privatize] [obb-rules.unit :as unit] [obb-rules.turn :as turn] [obb-rules.element :as element] [obb-rules.stash :as stash] ...
84f43e7884be77f8d2a1f74a0889e5d0af1b8c675d3baf037815157a73f46461
silviucpp/erlcass
erlcass_nif.erl
-module(erlcass_nif). -include("erlcass_internals.hrl"). -define(NOT_LOADED, not_loaded(?LINE)). -on_load(load_nif/0). -export([ cass_log_set_level/1, cass_log_set_callback/1, cass_cluster_create/0, cass_cluster_release/0, cass_cluster_set_options/1, cass_session_new/0, cass_session_conn...
null
https://raw.githubusercontent.com/silviucpp/erlcass/d6dbc283ff549bd471767177c34fabf584408269/src/erlcass_nif.erl
erlang
nif functions
-module(erlcass_nif). -include("erlcass_internals.hrl"). -define(NOT_LOADED, not_loaded(?LINE)). -on_load(load_nif/0). -export([ cass_log_set_level/1, cass_log_set_callback/1, cass_cluster_create/0, cass_cluster_release/0, cass_cluster_set_options/1, cass_session_new/0, cass_session_conn...
4ed4528e13e04a06c08680a4c01ad552cbb73663ad7e04617e0ec3dc4256f641
shirok/Gauche
charset.scm
;;; ;;; scheme.charset ;;; Copyright ( c ) 2000 - 2022 < > ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; ;;; 1. Redistributions of source code must retain the above copyright ;;; ...
null
https://raw.githubusercontent.com/shirok/Gauche/e606bfe5a94b100d5807bca9c2bb95df94f60aa6/libsrc/scheme/charset.scm
scheme
scheme.charset Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redi...
Copyright ( c ) 2000 - 2022 < > " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING Basic operators are built in the Gauche ke...
8a23573c8b822436d038d287394273624d12b259eebbc03645cdb4b650ffb7c7
herbelin/coq-hh
termops.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/herbelin/coq-hh/296d03d5049fea661e8bdbaf305ed4bf6d2001d2/pretyping/termops.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * Universes * printers * debug pri...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Util open Pp open Names ...
29253110fea340d1506106100f15c5e7127d31ec71153f187ba07e40a631f0bc
technomancy/leiningen
jar.clj
(ns leiningen.test.jar (:require [clojure.test :refer :all] [leiningen.jar :refer :all] [clojure.java.io :as io] [leiningen.core.main :as main] [leiningen.core.project :as project] [leiningen.core.utils :refer [platform-nullsink]] [leiningen.test...
null
https://raw.githubusercontent.com/technomancy/leiningen/24fb93936133bd7fc30c393c127e9e69bb5f2392/test/leiningen/test/jar.clj
clojure
(ns leiningen.test.jar (:require [clojure.test :refer :all] [leiningen.jar :refer :all] [clojure.java.io :as io] [leiningen.core.main :as main] [leiningen.core.project :as project] [leiningen.core.utils :refer [platform-nullsink]] [leiningen.test...
dab99c6acafae7313a5c5a37a70296ab37ccb97a6231e48564440ae658dd67f5
donut/OCamURL-server
database_t.mli
(* Auto-generated from "database.atd" *) type t = { host: string; port: int; user: string; pass: string; database: string }
null
https://raw.githubusercontent.com/donut/OCamURL-server/87738c1a0bbfc2c848f9f4e2052cacc81a176489/lib/config/database_t.mli
ocaml
Auto-generated from "database.atd"
type t = { host: string; port: int; user: string; pass: string; database: string }
484730b6efbb7b14b5efcb3da36ab09a7c089cfa2a1298ae70f149dcc857f648
racket/typed-racket
shallow-contract.rkt
#lang racket/base ;; Extra contracts and tools for the Shallow runtime, which is based on Transient semantics (provide procedure-arity-includes-keywords? shallow-and/c shallow-or/c shallow-shape-check raise-shallow-check-error) ;; -----------------------------------------------------------------------...
null
https://raw.githubusercontent.com/racket/typed-racket/1dde78d165472d67ae682b68622d2b7ee3e15e1e/typed-racket-lib/typed-racket/utils/shallow-contract.rkt
racket
Extra contracts and tools for the Shallow runtime, --------------------------------------------------------------------------------------------------- procedure-arity-includes-keywords? : (-> procedure? (listof keyword?) (listof keyword?) boolean?) Returns true if the procedure accepts calls that supply all mandato...
#lang racket/base which is based on Transient semantics (provide procedure-arity-includes-keywords? shallow-and/c shallow-or/c shallow-shape-check raise-shallow-check-error) (define (procedure-arity-includes-keywords? f mand-kw* opt-kw*) (define-values [f-mand-kw* f-opt-kw*] (procedure-keywords f))...
fef00ccf5f2a79149b9aa14ba372217592f448dfc346eceadff6fd5e2aed8fbd
swlkr/majestic-web
http.clj
(ns {{name}}.sessions.http (:require [{{name}}.sessions.html :as sessions.html] [{{name}}.sessions.logic :as sessions.logic] [{{name}}.responses :as res])) (defn form [req] (res/ok (sessions.html/form req))) (defn create [req] (let [session (:session req) params (:params req) ...
null
https://raw.githubusercontent.com/swlkr/majestic-web/3d247f6b5ccc4ff3662a64544a4ca27beada971b/resources/leiningen/new/majestic_web/src/sessions/http.clj
clojure
(ns {{name}}.sessions.http (:require [{{name}}.sessions.html :as sessions.html] [{{name}}.sessions.logic :as sessions.logic] [{{name}}.responses :as res])) (defn form [req] (res/ok (sessions.html/form req))) (defn create [req] (let [session (:session req) params (:params req) ...
2a2e2a93a1448639ecc1cd02fe7138ba78ec443eff93f043db4987cb25b45032
mindreframer/clojure-stuff
api.cljs
(ns omchaya.controllers.api (:require [cljs.core.async :as async :refer [>! <! alts! chan sliding-buffer put! close!]])) (defn append-activity-to-channel [state channel-id activity] (update-in state [:channels channel-id :activities] (comp (partial sort-by :created_at) conj) activity)) (defn drop-old-activity-fro...
null
https://raw.githubusercontent.com/mindreframer/clojure-stuff/1e761b2dacbbfbeec6f20530f136767e788e0fe3/github.com/sgrove/omchaya/src/omchaya/controllers/api.cljs
clojure
(ns omchaya.controllers.api (:require [cljs.core.async :as async :refer [>! <! alts! chan sliding-buffer put! close!]])) (defn append-activity-to-channel [state channel-id activity] (update-in state [:channels channel-id :activities] (comp (partial sort-by :created_at) conj) activity)) (defn drop-old-activity-fro...
23bc2ab5ce5fb616aaa7acdc3437324672d0eb5dc19cdb0c785d4b670e73b387
comby-tools/comby
regexp.ml
open Vangstrom let debug = match Sys.getenv "DEBUG_COMBY" with | exception Not_found -> false | _ -> true module type Regexp_engine_intf = sig type t type substrings val make : string -> t val get_substring : substrings -> int -> string option val get_all_substrings : substrings -> string array val...
null
https://raw.githubusercontent.com/comby-tools/comby/a36c63fb1e686adaff3e90aed00e88404f8cda78/lib/kernel/matchers/regexp.ml
ocaml
I think I should just implement the analog of string_ for regex with some bounded buffer size. -tools/mparser/-/blob/src/mParser_Char_Stream.ml#L231:8 TODO: tests and blit thing below FIXME: size. about advance => want to use internal unsafe_apply_opt actually. cf. string_ in angstrom.ml. instead, trying "d...
open Vangstrom let debug = match Sys.getenv "DEBUG_COMBY" with | exception Not_found -> false | _ -> true module type Regexp_engine_intf = sig type t type substrings val make : string -> t val get_substring : substrings -> int -> string option val get_all_substrings : substrings -> string array val...
7f954217ebb9b4dca72e685e4d0618c034ab74d185a8170cdc9a7b85ed24bac9
CryptoKami/cryptokami-core
Tracking.hs
-- | Utilities which allow to keep wallet info up to date # OPTIONS_GHC -F -pgmF autoexporter #
null
https://raw.githubusercontent.com/CryptoKami/cryptokami-core/12ca60a9ad167b6327397b3b2f928c19436ae114/wallet/src/Pos/Wallet/Web/Tracking.hs
haskell
| Utilities which allow to keep wallet info up to date
# OPTIONS_GHC -F -pgmF autoexporter #
faaf084c188cf33d4732ae3ea1f476d0fb37290a99376fe93696fda9ee427977
manuel-serrano/hop
dollar_scheme2js_module.scm
(module __dollar_scheme2js_module (library scheme2js) (export (dollar-modules-adder::procedure))) this module is tightly linked to Scheme2Js . Similarly to _ _ hop_exports the module is small , and the changes inside Scheme2Js not intrusive . This module should " follow " changes inside Scheme2Js . This...
null
https://raw.githubusercontent.com/manuel-serrano/hop/90aa565d4af3d9c00ead7b6aea9fabaefeafb1ef/hopscheme/dollar_scheme2js_module.scm
scheme
remove the clauses from the header. evaluate the server side module
(module __dollar_scheme2js_module (library scheme2js) (export (dollar-modules-adder::procedure))) this module is tightly linked to Scheme2Js . Similarly to _ _ hop_exports the module is small , and the changes inside Scheme2Js not intrusive . This module should " follow " changes inside Scheme2Js . This...
6def560103c568615dd9e0756566a1409da814fee374d255ed395b9623220731
scymtym/architecture.builder-protocol
package.lisp
;;;; package.lisp --- Package definition for the architecture.builder-protocol system. ;;;; Copyright ( C ) 2014 , 2015 , 2016 , 2018 Jan Moringen ;;;; Author : < > (cl:defpackage #:architecture.builder-protocol (:use #:cl #:alexandria) ;; Types (:export #:? ; cardin...
null
https://raw.githubusercontent.com/scymtym/architecture.builder-protocol/a48abddff7f6e0779b89666f46ab87ef918488f0/src/package.lisp
lisp
package.lisp --- Package definition for the architecture.builder-protocol system. Types cardinality specifier Variables Build protocol "Un-build" protocol Node walking protocol Delegation protocol and `delegating-mixin' `forwarding-mixin' `delaying-mixin' `order-forcing-mixin' `top-down-forcing-builder'
Copyright ( C ) 2014 , 2015 , 2016 , 2018 Jan Moringen Author : < > (cl:defpackage #:architecture.builder-protocol (:use #:cl #:alexandria) (:export #:relation-cardinality) (:export #:*builder*) (:export #:prepare #:prepare* #:finish #:finish* ...
707d713b318dee6e33a04fd1ddf48916cc0a2e9a61a7b7a33c5fda51993d51da
songyahui/AlgebraicEffect
fixpoint_finite5.ml
effect Foo : (int -> unit) effect A : (int -> unit) effect B : (int -> unit) effect O : (int -> unit) let f () (*@ requires emp @*) @ ensures . Q(Foo 1 ) @ = perform Foo 1 let o () (*@ requires emp @*) (*@ ensures O.Q(O 1) @*) = perform O 1 let a () (*@ requires emp @*) @ ensures 1).B.Q(B 1 ) @ =...
null
https://raw.githubusercontent.com/songyahui/AlgebraicEffect/27688952b598a101a27523be796e8011d70b02de/src/programs.t/fixpoint_finite5.ml
ocaml
@ requires emp @ @ requires emp @ @ ensures O.Q(O 1) @ @ requires emp @ @ requires emp @ @ requires emp @ This will stack overflow. | effect A k -> continue k (fun _ -> a()) @ requires emp @
effect Foo : (int -> unit) effect A : (int -> unit) effect B : (int -> unit) effect O : (int -> unit) let f () @ ensures . Q(Foo 1 ) @ = perform Foo 1 let o () = perform O 1 let a () @ ensures 1).B.Q(B 1 ) @ = let _ = perform A 1 in perform B 1 let b () @ ensures 1).B.Q(B 1 ) @ = let _ = pe...
2e03817ce8e99c0930b7562c262d91d3122c009dda2aebd1d24aa6253bae7aee
Deducteam/Logipedia
midSttfa.ml
module B = Kernel.Basic module D = Api.Dep module E = Parsing.Entry module T = Kernel.Term module U = Core.Uri type tx = | TxAxm (** Axiom *) | TxDef (** Definition *) | TxCst (** Constant *) | TxThm (** Theorem *) type item = Sttfa__Ast.item exception IllTaxon (** Exception raised when reading an ill formed...
null
https://raw.githubusercontent.com/Deducteam/Logipedia/09797a35ae36ab671e40e615fcdc09a7bba69134/src/middleware/midSttfa.ml
ocaml
* Axiom * Definition * Constant * Theorem * Exception raised when reading an ill formed taxon. Don't export the proof which is in [te] A theorem always have a statement and a proof.
module B = Kernel.Basic module D = Api.Dep module E = Parsing.Entry module T = Kernel.Term module U = Core.Uri type tx = type item = Sttfa__Ast.item exception IllTaxon let theory = "sttfa" let encoding = [B.mk_mident "sttfa"] let tx_of_entry = function | E.Def(_,_,_,_,ty,_) -> begin match ty with ...
8aa7ae38213f7a8bcc0e273f4a4dc0d3b17e2876dbbe2f89d3d6148670ab4008
gwright83/Wheeler
TensorUtilities.hs
-- -- TensorUtilities.hs -- -- Functions to make defining tensor expressions easier. -- , 30 August 2011 -- module Math.Symbolic.Wheeler.TensorUtilities where import System.IO.Unsafe import Math.Symbolic.Wheeler.Common import {-# SOURCE #-} Math.Symbolic.Wheeler.Expr import Math.Symbolic.Wheeler.Symbol import M...
null
https://raw.githubusercontent.com/gwright83/Wheeler/cfc8c66f019de92f087cc8157f2a9be22ae26cf7/src/Math/Symbolic/Wheeler/TensorUtilities.hs
haskell
TensorUtilities.hs Functions to make defining tensor expressions easier. # SOURCE # uniqueDummy produces a contravariant index with a unique name and marked as an explicit dummy. Take a tensor and replace its indices by dummies
, 30 August 2011 module Math.Symbolic.Wheeler.TensorUtilities where import System.IO.Unsafe import Math.Symbolic.Wheeler.Common import Math.Symbolic.Wheeler.Symbol import Math.Symbolic.Wheeler.Tensor import Math.Symbolic.Wheeler.UniqueID mkIndex :: Manifold -> String -> VarIndex mkIndex m n = Contravariant $ ...
637a3583633c0d896094b705970e85f00140ae27e158de7822f6d51d3bca2320
runeksvendsen/orderbook
PrintBook.hs
module Main ( main ) where import Prelude import qualified OrderBook.Types as OB import qualified Data.Vector as Vec asks :: OB.OrderBook "Bitfinex" "BTC" "USD" asks = OB.sellSide $ Vec.fromList [ OB.Order ] main = undefined
null
https://raw.githubusercontent.com/runeksvendsen/orderbook/6521d80ffbf17a524de70bda040da170643e5e78/app/PrintBook.hs
haskell
module Main ( main ) where import Prelude import qualified OrderBook.Types as OB import qualified Data.Vector as Vec asks :: OB.OrderBook "Bitfinex" "BTC" "USD" asks = OB.sellSide $ Vec.fromList [ OB.Order ] main = undefined
0f78e602baf1ee6757a2e7a017ff5b305c94b2158fcb7d0c3f02505f66584d96
monadfix/ormolu-live
BaseDir.hs
# LANGUAGE CPP # -- | Note [Base Dir] -- ~~~~~~~~~~~~~~~~~ -- GHC 's base directory or top directory containers miscellaneous settings and -- the package database. The main compiler of course needs this directory to read those settings and read and write packages . ghc - pkg uses it to find the -- global package ...
null
https://raw.githubusercontent.com/monadfix/ormolu-live/d8ae72ef168b98a8d179d642f70352c88b3ac226/ghc-lib-parser-8.10.1.20200412/libraries/ghc-boot/GHC/BaseDir.hs
haskell
| Note [Base Dir] ~~~~~~~~~~~~~~~~~ the package database. The main compiler of course needs this directory to global package database too. and so needs the top dir location to do that too. See Note [Why do we import Prelude here?] POSIX | Expand occurrences of the @$topdir@ interpolation in a string. | @exp...
# LANGUAGE CPP # GHC 's base directory or top directory containers miscellaneous settings and read those settings and read and write packages . ghc - pkg uses it to find the In the interest of making GHC builds more relocatable , many settings also will expand ` $ { top_dir } ` inside strings so GHC does n't n...
747198e509851235c7e9e7d0799c858f42bfe6ce8d2b6755fc30d74f202addc4
ygmpkk/house
Create.hs
-- #hide ----------------------------------------------------------------------------- -- | -- Module : Menu.Create Copyright : ( c ) 2002 -- License : BSD-style -- -- Maintainer : -- Stability : provisional -- Portability : portable -- -------------------------------------------------------...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/ObjectIO/Graphics/UI/ObjectIO/Menu/Create.hs
haskell
#hide --------------------------------------------------------------------------- | Module : Menu.Create License : BSD-style Maintainer : Stability : provisional Portability : portable --------------------------------------------------------------------------- This condition should never ho...
Copyright : ( c ) 2002 module Graphics.UI.ObjectIO.Menu.Create ( openMenu', createPopUpMenu, extendMenu , disposeMenuItemHandle, disposeMenuIds , disposeSubMenuHandles , disposeMenuItemHandle, disposeMenuHandles , closePopUpMenu , systemAble, systemUnable ) where import Graphics.UI.ObjectIO.I...
ecbeb83b55860641aa6edbe97424ccead426c9c1975029874cd60c678fa17e15
fresnel/fresnel
Fold.hs
# LANGUAGE GeneralisedNewtypeDeriving # {-# LANGUAGE RankNTypes #-} module Fresnel.Fold ( -- * Folds Fold , IsFold -- * Construction , folded , unfolded , folding , foldring , ignored , backwards -- * Elimination , has , hasn't , foldMapOf , foldMapByOf , foldrOf , foldlOf' , foldOf , sequenceOf_ , traverseOf_ , ...
null
https://raw.githubusercontent.com/fresnel/fresnel/1e67954d750f0a71806419194b3e377b7f60f0d8/fresnel/src/Fresnel/Fold.hs
haskell
# LANGUAGE RankNTypes # * Folds * Construction * Elimination Folds Construction Elimination
# LANGUAGE GeneralisedNewtypeDeriving # module Fresnel.Fold Fold , IsFold , folded , unfolded , folding , foldring , ignored , backwards , has , hasn't , foldMapOf , foldMapByOf , foldrOf , foldlOf' , foldOf , sequenceOf_ , traverseOf_ , forOf_ , toListOf , anyOf , allOf , nullOf , previews , preview , (^?) , Failove...
15e3edd13cc458a2d6940750ce0f4c0a89a89da36c1c6760f269849f5f947fb9
ndmitchell/catch
Main.hs
module Main where import Yhc.Core import System.Environment import System.IO import Control.Monad import Prepare -- import Backward main = do xs <- getArgs when (null xs) $ error "Please give list of files to use" mapM_ exec xs exec file = do ov <- loadCore "../examples/Library/ycr/Primitive....
null
https://raw.githubusercontent.com/ndmitchell/catch/5d834416a27b4df3f7ce7830c4757d4505aaf96e/comb/Main.hs
haskell
import Backward
module Main where import Yhc.Core import System.Environment import System.IO import Control.Monad import Prepare main = do xs <- getArgs when (null xs) $ error "Please give list of files to use" mapM_ exec xs exec file = do ov <- loadCore "../examples/Library/ycr/Primitive.ycr" cr <- load...
38629bf19ea4757c8f523ae50633acda23e0a1c2ae8365b60bf307b679972669
day8/re-com
tabs.cljs
(ns re-com.tabs (:require-macros [re-com.core :refer [handler-fn at]] [re-com.validate :refer [validate-args-macro]]) (:require [re-com.config :refer [include-args-desc?]] [re-com.debug :refer [->attr]] [re-com.util :refer [deref-or-value]] [re-com.box :refer [flex-child-st...
null
https://raw.githubusercontent.com/day8/re-com/07451b1d19c59eb185548efe93e2d00b5d3eab89/src/re_com/tabs.cljs
clojure
-------------------------------------------------------------------------------------------------- Component: horizontal-tabs -------------------------------------------------------------------------------------------------- must use current instead of @model to avoid reagent warnings --------------------------------...
(ns re-com.tabs (:require-macros [re-com.core :refer [handler-fn at]] [re-com.validate :refer [validate-args-macro]]) (:require [re-com.config :refer [include-args-desc?]] [re-com.debug :refer [->attr]] [re-com.util :refer [deref-or-value]] [re-com.box :refer [flex-child-st...
85b90e8b9fca727d3578535db4e5fb096f4c407a9221eb3f757648f504b8e2ce
inria-parkas/sundialsml
ark_brusselator1D_omp.ml
--------------------------------------------------------------- * Programmer(s ): @ SMU * --------------------------------------------------------------- * OCaml port : , , Jan 2016 . * --------------------------------------------------------------- * Copyright ( c ) 2015 , Southern Methodist Unive...
null
https://raw.githubusercontent.com/inria-parkas/sundialsml/a1848318cac2e340c32ddfd42671bef07b1390db/examples/arkode/C_openmp/ark_brusselator1D_omp.ml
ocaml
user data structure number of intervals mesh spacing constant forcing on u steady-state value of w diffusion coeff for u diffusion coeff for v diffusion coeff for w stiffness parameter f routine to compute the ODE RHS function f(t,y). iterate over domain, computing all eq...
--------------------------------------------------------------- * Programmer(s ): @ SMU * --------------------------------------------------------------- * OCaml port : , , Jan 2016 . * --------------------------------------------------------------- * Copyright ( c ) 2015 , Southern Methodist Unive...
e829738f165cbf906a4543854c7670059b38c3d8be5390669a6baaff95b8cfdb
jwiegley/trade-journal
Parser.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE NoMonomorphismRestriction # module Broker.ThinkOrSwim.Parser where import qualified Data . ByteString as B import qualified Data ....
null
https://raw.githubusercontent.com/jwiegley/trade-journal/c7d9ab98b709dbb43d6bf9cce0c7c97dfac9f0a4/src/Broker/ThinkOrSwim/Parser.hs
haskell
# LANGUAGE OverloadedStrings # traceM $ "parseSection: " ++ text
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE RecordWildCards # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE NoMonomorphismRestriction # module Broker.ThinkOrSwim.Parser where import qualified Data . ByteString as B import qualified Data . ByteString . Lazy as BL import Am...
b55ba384b551226ff5cf49f11b100858430b5153cc1e0c35858f47d5e21a7757
jbrisbin/rabbit_common
rabbit_runtime_parameter.erl
The contents of this file are subject to the Mozilla Public License %% Version 1.1 (the "License"); you may not use this file except in %% compliance with the License. You may obtain a copy of the License %% at / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/jbrisbin/rabbit_common/80814606ae23cc820c74e443383e192cd69ec030/src/rabbit_runtime_parameter.erl
erlang
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is GoPivotal , Inc. Copyright ( c ) 2007 - 2016 Pivotal Software , Inc. All rights reserved . ...
9dd571c5a5725f6066e948e7be62c6471c2d1f7f0b39388ee0ebb8285be5d72d
8c6794b6/guile-tjit
t-static-ref-01.scm
;;;; Simple loop adding -1. (define (inner n acc) (let lp ((n n) (acc acc)) (if (zero? n) acc (lp (- n 1) (+ acc -1))))) (define (outer n) (let lp ((n n) (acc 0)) (if (zero? n) acc (lp (- n 1) (inner n acc))))) (outer 1000)
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/test-suite/tjit/t-static-ref-01.scm
scheme
Simple loop adding -1.
(define (inner n acc) (let lp ((n n) (acc acc)) (if (zero? n) acc (lp (- n 1) (+ acc -1))))) (define (outer n) (let lp ((n n) (acc 0)) (if (zero? n) acc (lp (- n 1) (inner n acc))))) (outer 1000)
20466b24faab91ec6aa88293e6d438416a2c2284a212782e6e9aa275d5c3dcb4
Jhuni0123/pl-checker
gc_test.ml
open Testlib open Sm5.Sm5 (* Set the Sm5.gc_mode flag *) let _ = gc_mode := true let stdout_redirect_f = "stdout_redirect.txt" let read_all filename = let chan = open_in filename in let res = really_input_string chan (in_channel_length chan) in let _ = close_in chan in res let check_exception cmd = try ...
null
https://raw.githubusercontent.com/Jhuni0123/pl-checker/40ea239ea456274a769586d815bf4e1b199e8800/hw5/gc_test.ml
ocaml
Set the Sm5.gc_mode flag concat command n times Access all the allocated memory locations, ensuring they must not have been collected To be collected Trigger GC Output Trigger GC Access all the allocated memory locations, ensuring they must not have been collected To be collected Trigger GC Access ...
open Testlib open Sm5.Sm5 let _ = gc_mode := true let stdout_redirect_f = "stdout_redirect.txt" let read_all filename = let chan = open_in filename in let res = really_input_string chan (in_channel_length chan) in let _ = close_in chan in res let check_exception cmd = try let _ = run cmd in false with G...
bebaa937d6e981297e25d05db74b6b8bc1aac4a029360bfda4164ead850254c4
reborg/clojure-essential-reference
5.clj
< 1 > (peek (into [] cat (pmap #(map inc %) < 2 > 1000000
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/SequentialGeneration/pmap%2Cpcallsandpvalues/5.clj
clojure
< 1 > (peek (into [] cat (pmap #(map inc %) < 2 > 1000000
ed883a2bcb088cc40783b22d8691da3d54cb1179e5b5fe092c037282fc6356aa
postspectacular/devart-codefactory
viewfinder.clj
(ns codefactory.geom.viewfinder (:require [thi.ng.geom.core :as g] [thi.ng.geom.types.utils :as tu] [thi.ng.geom.core.matrix :as mat :refer [M44]] [thi.ng.geom.rect :as r] [thi.ng.common.math.core :as m] [clojure.java.io :as io]) (:import [java.io ByteArrayOutputStream])) (defn scene-bounds ...
null
https://raw.githubusercontent.com/postspectacular/devart-codefactory/9bccdc10e58fa4861a69767e9ae4be0bb8d7f650/src-gae/codefactory/geom/viewfinder.clj
clojure
(prn :y err derr d1 d2) (prn :zoom diff)
(ns codefactory.geom.viewfinder (:require [thi.ng.geom.core :as g] [thi.ng.geom.types.utils :as tu] [thi.ng.geom.core.matrix :as mat :refer [M44]] [thi.ng.geom.rect :as r] [thi.ng.common.math.core :as m] [clojure.java.io :as io]) (:import [java.io ByteArrayOutputStream])) (defn scene-bounds ...
a32ba4e90c3d4dc28dee46265179a6e89c3680cd5d37ceeecab95b172ad6e288
metosin/malli
fn_schemas2.cljs
(ns malli.instrument.fn-schemas2) (def VecOfStrings [:vector :string]) (def string :string) (def small-int [:int {:max 6}]) (def int-arg :int)
null
https://raw.githubusercontent.com/metosin/malli/a3db330eae029863e9be443cda3a2cafd8f61a33/test/malli/instrument/fn_schemas2.cljs
clojure
(ns malli.instrument.fn-schemas2) (def VecOfStrings [:vector :string]) (def string :string) (def small-int [:int {:max 6}]) (def int-arg :int)
75e8bd5cc677004988b9431f5b83f7635303ed4a22750abd878a30bd58450ac4
lilactown/punk
core.cljc
(ns punk.core (:require [frame.core :as f] [clojure.core.protocols :as p] [clojure.datafy :as d] #?(:cljs [cljs.repl :as repl]))) (def dbg> (partial #?(:clj println :cljs js/console.log) "punk>")) ;; ;; Implement general protocols ;; (def datafy d/data...
null
https://raw.githubusercontent.com/lilactown/punk/0c6e529429837c00958d41e09fd672f49778dedf/core/src/punk/core.cljc
clojure
Implement general protocols XXX: might need some work :) (object? x) (do (specify! x p/Datafiable (datafy [o] (dissoc (js->clj o) ;; lol gross "clojure$core$protocols$Datafiable$" "clojure$core$protocols$Datafiable$data...
(ns punk.core (:require [frame.core :as f] [clojure.core.protocols :as p] [clojure.datafy :as d] #?(:cljs [cljs.repl :as repl]))) (def dbg> (partial #?(:clj println :cljs js/console.log) "punk>")) (def datafy d/datafy) (def nav d/nav) #?(:cljs (exten...
3c1d31e23f0431a277cd3d23e5cbeccebd239aa1578c951f92fcee31dacdc547
ekmett/lens
At.hs
# LANGUAGE CPP # {-# LANGUAGE GADTs #-} {-# LANGUAGE Rank2Types #-} # LANGUAGE TypeFamilies # # LANGUAGE FlexibleContexts # # LANGUAGE DefaultSignatures # # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # LANGUAGE MultiParamTypeClasses # # LANGUAGE UndecidableInstances # # LANGUAGE TypeOperators # #ifd...
null
https://raw.githubusercontent.com/ekmett/lens/479966809048787402adb0ff4d03525b8a65ada6/src/Control/Lens/At.hs
haskell
# LANGUAGE GADTs # # LANGUAGE Rank2Types # --------------------------------------------------------------------------- | Module : Control.Lens.At License : BSD-style (see the file LICENSE) Stability : experimental Portability : non-portable ----------------------------------------------------------...
# LANGUAGE CPP # # LANGUAGE TypeFamilies # # LANGUAGE FlexibleContexts # # LANGUAGE DefaultSignatures # # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # LANGUAGE MultiParamTypeClasses # # LANGUAGE UndecidableInstances # # LANGUAGE TypeOperators # #ifdef TRUSTWORTHY # LANGUAGE Trustworthy # #endif #in...
fee76c55e285287129c175a855d8a232d348bcce8d446013d3350a7a80085166
marick/structural-typing
lifting.clj
(ns structural-typing.assist.lifting "*Lifting* is a core concept, though one only writers of fairly unusual custom predicates need worry about. A predicate begins as something that takes a value and returns a truthy/falsey value. It is lifted into something that takes an [[exval]] (extended value) and r...
null
https://raw.githubusercontent.com/marick/structural-typing/9b44c303dcfd4a72c5b75ec7a1114687c809fba1/src/structural_typing/assist/lifting.clj
clojure
(ns structural-typing.assist.lifting "*Lifting* is a core concept, though one only writers of fairly unusual custom predicates need worry about. A predicate begins as something that takes a value and returns a truthy/falsey value. It is lifted into something that takes an [[exval]] (extended value) and r...
2cb4b066afe0362d861e45514b990ea3931a02574933c325e15301ad58fb54e4
jeapostrophe/exp
rackunit-table.rkt
#lang racket (require rackunit) (define (test-table* table-t) (parameterize ([current-test-case-around (λ (row-t) (printf "~a\t" (current-test-name)) (parameterize ([current-test-case-around (λ (col-t) (with-handlers ([exn:test:check? ...
null
https://raw.githubusercontent.com/jeapostrophe/exp/43615110fd0439d2ef940c42629fcdc054c370f9/rackunit-table.rkt
racket
save y to a file save z to a file
#lang racket (require rackunit) (define (test-table* table-t) (parameterize ([current-test-case-around (λ (row-t) (printf "~a\t" (current-test-name)) (parameterize ([current-test-case-around (λ (col-t) (with-handlers ([exn:test:check? ...
b336c675504463279d5996b555eafbb687159bfcae8e916300176838446c02f1
bradparker/servant-beam-realworld-example-app
Account.hs
module RealWorld.Conduit.Users.Web.Account ( Account(..) , fromUser , account ) where import Control.Monad.Trans.Except (withExceptT) import Crypto.JOSE (Error) import Data.Aeson (FromJSON, ToJSON(..)) import Data.Swagger (ToSchema) import RealWorld.Conduit.Environment (Environment(..)) import RealWorld.Condui...
null
https://raw.githubusercontent.com/bradparker/servant-beam-realworld-example-app/d4a0d79d9dbc7e5b8987b367ac32f99ac3cc20e7/src/RealWorld/Conduit/Users/Web/Account.hs
haskell
module RealWorld.Conduit.Users.Web.Account ( Account(..) , fromUser , account ) where import Control.Monad.Trans.Except (withExceptT) import Crypto.JOSE (Error) import Data.Aeson (FromJSON, ToJSON(..)) import Data.Swagger (ToSchema) import RealWorld.Conduit.Environment (Environment(..)) import RealWorld.Condui...
5f11426ba94709b98a72ec66cd23d59af5e79f426fa2813bb2f5763b19f70d20
mikeizbicki/subhask
Algebra.hs
# LANGUAGE CPP , MagicHash , UnboxedTuples # # OPTIONS_GHC -fno - warn - missing - methods # # OPTIONS_GHC -fno - warn - incomplete - patterns # # OPTIONS_GHC -fno - warn - orphans # | This module defines the algebraic type - classes used in subhask . -- The class hierarchies are significantly more general than thos...
null
https://raw.githubusercontent.com/mikeizbicki/subhask/f53fd8f465747681c88276c7dabe3646fbdf7d50/src/SubHask/Algebra.hs
haskell
The class hierarchies are significantly more general than those in the standard Prelude. * Comparisons ** Boolean helpers * Set-like *** indexed containers * Types * Number-like , roundUpToNearestBase2 ** Sizes ** Linear algebra * Spatial programming * Helper functions ----------------------------------...
# LANGUAGE CPP , MagicHash , UnboxedTuples # # OPTIONS_GHC -fno - warn - missing - methods # # OPTIONS_GHC -fno - warn - incomplete - patterns # # OPTIONS_GHC -fno - warn - orphans # | This module defines the algebraic type - classes used in subhask . module SubHask.Algebra ( Logic , ValidLogic , Cla...
f5a5de6ece4954aa8cb45c881323714be579e7451c1c10c07ac628fe7fcef857
sKabYY/palestra
p16.scm
(define (fast-expt b n) (define (fast-expt-iter a b n) (cond ((= n 0) a) ((even? n) (fast-expt-iter a (* b b) (/ n 2))) (else (fast-expt-iter (* a b) b (- n 1))))) (fast-expt-iter 1 b n)) (define (print n) (begin (display n) (newline))) (print (fast-expt 2 10)) (print (fast-expt ...
null
https://raw.githubusercontent.com/sKabYY/palestra/0906cc3a1fb786093a388d5ae7d59120f5aae16c/old1/sicp/1/p16.scm
scheme
(define (fast-expt b n) (define (fast-expt-iter a b n) (cond ((= n 0) a) ((even? n) (fast-expt-iter a (* b b) (/ n 2))) (else (fast-expt-iter (* a b) b (- n 1))))) (fast-expt-iter 1 b n)) (define (print n) (begin (display n) (newline))) (print (fast-expt 2 10)) (print (fast-expt ...
8b4bb48e4d603eeda21aade2cdb096482d99bfe1217c40e8f8e41cba971a0ed0
mario-goulart/awful
web-repl.scm
(cond-expand (chicken-4 (use awful)) (chicken-5 (import awful)) (else (error "Unsupported CHICKEN version."))) (enable-session #t) (enable-web-repl "/repl") (web-repl-access-control (lambda () #t)) (define-login-trampoline "/login-trampoline") (valid-password? (lambda (user password) (equal? use...
null
https://raw.githubusercontent.com/mario-goulart/awful/990f8c6d727f6242ae1857a12164fe6ffa2e5b7f/tests/web-repl.scm
scheme
(cond-expand (chicken-4 (use awful)) (chicken-5 (import awful)) (else (error "Unsupported CHICKEN version."))) (enable-session #t) (enable-web-repl "/repl") (web-repl-access-control (lambda () #t)) (define-login-trampoline "/login-trampoline") (valid-password? (lambda (user password) (equal? use...
b14f160d20f8c26b57d64e729d55700e086da544ad09250e0db8ae9aef238cf0
antono/guix-debian
uucp.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2014 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the Lice...
null
https://raw.githubusercontent.com/antono/guix-debian/85ef443788f0788a62010a942973d4f7714d10b4/gnu/packages/uucp.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2014 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu packages uucp) #:use-module (guix licenses) #:use-module (guix packages) #:use-module (g...
30e951251af1db62ee792df50d12b39d46c4702ac201743828aab53695bd57b9
davisp/couchdb
ibrowse.erl
%%%------------------------------------------------------------------- %%% File : ibrowse.erl Author : > %%% Description : Load balancer process for HTTP client connections. %%% Created : 11 Oct 2003 by > %%%------------------------------------------------------------------- @author at gmail do...
null
https://raw.githubusercontent.com/davisp/couchdb/b0420f9006915149e81607615720f32f21c76725/src/ibrowse/ibrowse.erl
erlang
------------------------------------------------------------------- File : ibrowse.erl Description : Load balancer process for HTTP client connections. ------------------------------------------------------------------- module implements the API of the HTTP client. There is one named (implemented in the module ...
Author : > Created : 11 Oct 2003 by > @author at gmail dot com > 2005 - 2012 @doc The ibrowse application implements an HTTP 1.1 client in erlang . This process called ' ibrowse ' which assists in load balancing and maintaining configuration . There is one load balancing process per uniqu...
d36aec2f15f1c6870b70a3d174a994f7b5ca55952221d566d2cd6a9f29997262
ocaml-multicore/parallel-programming-in-multicore-ocaml
task_distribution.ml
module C = Domainslib.Chan let num_domains = try int_of_string Sys.argv.(1) with _ -> 4 let n = try int_of_string Sys.argv.(2) with _ -> 10 type 'a message = Task of 'a | Quit let c = C.make_unbounded () let create_work tasks = Array.iter (fun t -> C.send c (Task t)) tasks; for _ = 1 to num_domains do C.send...
null
https://raw.githubusercontent.com/ocaml-multicore/parallel-programming-in-multicore-ocaml/2f95616234907bc0fb95f32bcc49c9b1f9c83d5a/code/chan/task_distribution.ml
ocaml
module C = Domainslib.Chan let num_domains = try int_of_string Sys.argv.(1) with _ -> 4 let n = try int_of_string Sys.argv.(2) with _ -> 10 type 'a message = Task of 'a | Quit let c = C.make_unbounded () let create_work tasks = Array.iter (fun t -> C.send c (Task t)) tasks; for _ = 1 to num_domains do C.send...
985eaa19ac346a5c8dd91d007bb4a59096a4cca18b9e408522885854e660dd8e
typelead/eta
tc109.hs
{ - # OPTIONS_GHC -fno - warn - redundant - constraints # - } # LANGUAGE MultiParamTypeClasses , FunctionalDependencies , UndecidableInstances # UndecidableInstances #-} UndecidableInstances because ' b ' appears in the context but not the head module ShouldCompile where This accepte...
null
https://raw.githubusercontent.com/typelead/eta/97ee2251bbc52294efbf60fa4342ce6f52c0d25c/tests/suite/typecheck/compile/tc109.hs
haskell
{ - # OPTIONS_GHC -fno - warn - redundant - constraints # - } # LANGUAGE MultiParamTypeClasses , FunctionalDependencies , UndecidableInstances # UndecidableInstances #-} UndecidableInstances because ' b ' appears in the context but not the head module ShouldCompile where This accepte...
deabbad76f595cb2e5e8339dfe98b14c44ba76e6eca870b2d8c421735b56201d
xtdb/xtdb
http_server.clj
(ns xtdb.http-server "HTTP API for XTDB. The optional SPARQL handler requires com.xtdb.labs/xtdb-rdf." (:require [juxt.clojars-mirrors.camel-snake-kebab.v0v4v2.camel-snake-kebab.core :as csk] [clojure.edn :as edn] [clojure.instant :as instant] [clojure.java.io :as io] ...
null
https://raw.githubusercontent.com/xtdb/xtdb/eaa49ac3cef0cfb270ac0a8666fd8cf13a71808a/modules/http-server/src/xtdb/http_server.clj
clojure
you can change it back to require when clojure.core fixes it to be thread-safe entry point for users including our handler in their own server
(ns xtdb.http-server "HTTP API for XTDB. The optional SPARQL handler requires com.xtdb.labs/xtdb-rdf." (:require [juxt.clojars-mirrors.camel-snake-kebab.v0v4v2.camel-snake-kebab.core :as csk] [clojure.edn :as edn] [clojure.instant :as instant] [clojure.java.io :as io] ...
963850fe97e9f11fc0769d87279b6bc89c91f9518745fd1afb65bfcd47495cb4
Helium4Haskell/Top
Primitive.hs
----------------------------------------------------------------------------- -- | License : GPL -- -- Maintainer : -- Stability : provisional -- Portability : portable -- -- This module contains a data type to represent (plain) types, some basic -- functionality for types, and an instance for S...
null
https://raw.githubusercontent.com/Helium4Haskell/Top/5e900184d6b2ab6d7ce69945287d782252e5ea68/src/Top/Types/Primitive.hs
haskell
--------------------------------------------------------------------------- | License : GPL Maintainer : Stability : provisional Portability : portable This module contains a data type to represent (plain) types, some basic functionality for types, and an instance for Show. ------------...
module Top.Types.Primitive where import Data.List (union, isPrefixOf) import Data.Char (isDigit, isSpace) type Tps = [Tp] in the Unified Haskell Architecture ( UHA ) which is used in the Helium compiler ^The application of two Top . Types . Not all types that can be deriving (Eq, Ord) intType, charType...
d34b157f9672ea5f823d246114d9e2e770a39c926ced5b034ee84b11d0fa75f2
msakai/nonlinear-optimization-ad
LinearRegression.hs
# LANGUAGE TypeFamilies # # OPTIONS_GHC -Wall # module Main where import qualified Numeric.Optimization.Algorithms.HagerZhang05.AD as CG import Text.Printf import qualified Data.ByteString.Lazy as BS import qualified Data.Csv as Csv import qualified Data.Vector as V main :: IO () main = do s <- BS.readFile "samples...
null
https://raw.githubusercontent.com/msakai/nonlinear-optimization-ad/06ddf7f100a37afba13cf8ac53e3c5526caf8f60/nonlinear-optimization-ad/samples/LinearRegression.hs
haskell
hypothesis cost function mean squared error
# LANGUAGE TypeFamilies # # OPTIONS_GHC -Wall # module Main where import qualified Numeric.Optimization.Algorithms.HagerZhang05.AD as CG import Text.Printf import qualified Data.ByteString.Lazy as BS import qualified Data.Csv as Csv import qualified Data.Vector as V main :: IO () main = do s <- BS.readFile "samples...
eb2e25297a41877490e252e84c4ac4740b01440714552a11352f2c65d08afcf8
BillHallahan/G2
Stack.hs
# LANGUAGE DeriveGeneric # {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleContexts # module G2.Language.Stack ( Stack , empty , null , push , pop , popN , toList , filter) where import Prelude hiding (null, filter) import GHC.Generics (Generic...
null
https://raw.githubusercontent.com/BillHallahan/G2/90c1f07c167d8b20dd4c591b138b8a427be559e3/src/G2/Language/Stack.hs
haskell
# LANGUAGE DeriveDataTypeable #
# LANGUAGE DeriveGeneric # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleContexts # module G2.Language.Stack ( Stack , empty , null , push , pop , popN , toList , filter) where import Prelude hiding (null, filter) import GHC.Generics (Generic) import Data.Data (Data, Typeable) ...
dcd67f2f3638974f46610587e2baa081c2e08679564eafdcf05c6926eaa67f5d
jlouis/etorrent_core
etorrent_io.erl
@author < > %% @doc File I/O subsystem. %% <p>A directory server (this module) is responsible for maintaining %% the opened/closed state for each file in a torrent.</p> %% %% == Pieces == %% The directory server is responsible for mapping each piece to a set %% of file-blocks. A piece is only mapped to multiple bl...
null
https://raw.githubusercontent.com/jlouis/etorrent_core/7db7f4ef36c1d055812504f00df92c6a67c2e4af/src/etorrent_io.erl
erlang
@doc File I/O subsystem. <p>A directory server (this module) is responsible for maintaining the opened/closed state for each file in a torrent.</p> == Pieces == The directory server is responsible for mapping each piece to a set of file-blocks. A piece is only mapped to multiple blocks if it spans multiple file...
@author < > Chunks are mapped to a set of file blocks based on the file blocks that directory servers and file servers . A file server registers under a second -module(etorrent_io). -behaviour(gen_server). -ifdef(TEST). -include_lib("eunit/include/eunit.hrl"). -endif. -define(AWAIT_TIMEOUT, 60*1000). -expor...
46efd12063399d32d4984899e56bac59983daf85ea9cba1ae9c377fad459d2b3
triffon/fp-2019-20
02-sum-squares-bigger-two.rkt
#lang racket (require "helpers.rkt") (require rackunit) (require rackunit/text-ui) 1.3 - Съчинете процедура , дадени три числа , намира сумата от квадратите на по - големите две от тях . За по - удобно , може да на по - малки такива . (define (square n) (* n n)) (define (squares-sum-bigger-two a b c) (if (o...
null
https://raw.githubusercontent.com/triffon/fp-2019-20/7efb13ff4de3ea13baa2c5c59eb57341fac15641/exercises/computer-science-3/exercises/01.introduction/solutions/02-sum-squares-bigger-two.rkt
racket
#lang racket (require "helpers.rkt") (require rackunit) (require rackunit/text-ui) 1.3 - Съчинете процедура , дадени три числа , намира сумата от квадратите на по - големите две от тях . За по - удобно , може да на по - малки такива . (define (square n) (* n n)) (define (squares-sum-bigger-two a b c) (if (o...
aabaea945da69e1b8ec7ea7165e3445f0008f9f33330777ec627865a2c7438da
returntocorp/semgrep
test_parsing_go.ml
open Common module PI = Parse_info module PS = Parsing_stat module Flag = Flag_parsing (*****************************************************************************) (* Subsystem testing *) (*****************************************************************************) let test_tokens_go file = if not (file =~ ".*...
null
https://raw.githubusercontent.com/returntocorp/semgrep/ecfb452fde8fab7afffa5d2cdfc5ef7c1da91ad9/languages/go/menhir/test_parsing_go.ml
ocaml
*************************************************************************** Subsystem testing *************************************************************************** *************************************************************************** Main entry for Arg ***************************************************...
open Common module PI = Parse_info module PS = Parsing_stat module Flag = Flag_parsing let test_tokens_go file = if not (file =~ ".*\\.go") then pr2 "warning: seems not a Go file"; Flag.verbose_lexing := true; Flag.verbose_parsing := true; Flag.exn_when_lexical_error := true; let toks = Parse_go.tokens (P...
da0ece2956dc9b2d430f89187aa10b4a5c796f60c956274a9cbb4ae14ae59d68
ghcjs/ghcjs
t14925.hs
import Data.Typeable data Ω = Ω main :: IO () main = print $ typeOf Ω
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/ghc/typecheck/t14925.hs
haskell
import Data.Typeable data Ω = Ω main :: IO () main = print $ typeOf Ω
d3ce917fe171fde164214271fb9f7d3664771864027bdf8125811e4d599cfa15
jwiegley/notes
Fault.hs
module Fault where import Control.Category import Control.Monad import Data.List (sortOn) import Data.Monoid import Prelude hiding ((.), id) -- newtype Set a = Set { getSet :: a -> Bool } instance where fmap f ( Set p ) = Set exists a. f a = = b & & p a type Faulty = Kleisli [ ] newtype Valued a b =...
null
https://raw.githubusercontent.com/jwiegley/notes/24574b02bfd869845faa1521854f90e4e8bf5e9a/haskell/Fault.hs
haskell
newtype Set a = Set { getSet :: a -> Bool }
module Fault where import Control.Category import Control.Monad import Data.List (sortOn) import Data.Monoid import Prelude hiding ((.), id) instance where fmap f ( Set p ) = Set exists a. f a = = b & & p a type Faulty = Kleisli [ ] newtype Valued a b = Valued { runValued :: a -> [(b, Sum Int)] } i...
52cf1df8a2c2dc6f35f0967842c8988fa3a07b00af7bbf8dc20e6db02b507054
chaoxu/fancy-walks
B.hs
main = interact (solve 0) solve d ('>':xs) = ">\n"++solve d xs solve d ('<':'/':xs) = replicate ((d-1)*2) ' ' ++ "</" ++ solve (d - 1) xs solve d ('<':xs) = replicate (d*2) ' ' ++ "<" ++ solve (d + 1) xs solve d (x:xs) = x : solve d xs solve _ [] = ""
null
https://raw.githubusercontent.com/chaoxu/fancy-walks/952fcc345883181144131f839aa61e36f488998d/codeforces.com/125/B.hs
haskell
main = interact (solve 0) solve d ('>':xs) = ">\n"++solve d xs solve d ('<':'/':xs) = replicate ((d-1)*2) ' ' ++ "</" ++ solve (d - 1) xs solve d ('<':xs) = replicate (d*2) ' ' ++ "<" ++ solve (d + 1) xs solve d (x:xs) = x : solve d xs solve _ [] = ""
de8a0fdee405c55f67f951862eb369df992e077f27ad0422be89ebaa37696036
v-kolesnikov/sicp
2_39_test.clj
(ns sicp.chapter02.2-39-test (:require [clojure.test :refer [deftest]] [clojure.test.check.clojure-test :as ct] [clojure.test.check.generators :as gen] [clojure.test.check.properties :as prop] [sicp.chapter02.2-39 :as sicp-2-39] [sicp.test-helper :refer [ass...
null
https://raw.githubusercontent.com/v-kolesnikov/sicp/4298de6083440a75898e97aad658025a8cecb631/test/sicp/chapter02/2_39_test.clj
clojure
(ns sicp.chapter02.2-39-test (:require [clojure.test :refer [deftest]] [clojure.test.check.clojure-test :as ct] [clojure.test.check.generators :as gen] [clojure.test.check.properties :as prop] [sicp.chapter02.2-39 :as sicp-2-39] [sicp.test-helper :refer [ass...
2b23729ca55f66cd8ee5ebd9dd1105ed5610bceda25880e763e1db5f8126aeda
SamB/coq
ppextend.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/SamB/coq/8f84aba9ae83a4dc43ea6e804227ae8cae8086b1/interp/ppextend.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i $Id$ i i s Pretty-print. Dealin...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Util open Nam...
44b35a3c42babda9ae1350ff963c53c5b0df80512329a1fc6bdf0f2ef303518c
veikman/dmote-keycap
project.clj
(defproject dmote-keycap "0.9.0-SNAPSHOT" :description "Printable keycap models for mechanical keyboards" :url "-keycap" :license {:name "EPL-2.0 OR GPL-3.0-or-later" :url "-2.0/"} :dependencies [[org.clojure/clojure "1.10.0"] [org.clojure/tools.cli "1.0.194"] [envi...
null
https://raw.githubusercontent.com/veikman/dmote-keycap/37737ba5d177a5dd6d514343a3aadc299c6c093d/project.clj
clojure
(defproject dmote-keycap "0.9.0-SNAPSHOT" :description "Printable keycap models for mechanical keyboards" :url "-keycap" :license {:name "EPL-2.0 OR GPL-3.0-or-later" :url "-2.0/"} :dependencies [[org.clojure/clojure "1.10.0"] [org.clojure/tools.cli "1.0.194"] [envi...
61f56b09857c659e07bee98cebecb1d1b6cad1effdec0ae5bad39993e6e74072
JacquesCarette/Drasil
Unitals.hs
module Drasil.Projectile.Unitals where import Language.Drasil import Language.Drasil.Display (Symbol(..)) import Language.Drasil.ShortHands (lD, lTheta, lV, lP, lT, lS, vEpsilon) import Data.Drasil.Quantities.Math (pi_) import Data.Drasil.Constraints (gtZeroConstr) import Data.Drasil.SI_Units (radian, metre, second)...
null
https://raw.githubusercontent.com/JacquesCarette/Drasil/2178e68e4f62b3210eb2e3a19c2727a4ddf3912a/code/drasil-example/projectile/lib/Drasil/Projectile/Unitals.hs
haskell
- - The output contains a message, as a string, so it needs to be a quantity -
module Drasil.Projectile.Unitals where import Language.Drasil import Language.Drasil.Display (Symbol(..)) import Language.Drasil.ShortHands (lD, lTheta, lV, lP, lT, lS, vEpsilon) import Data.Drasil.Quantities.Math (pi_) import Data.Drasil.Constraints (gtZeroConstr) import Data.Drasil.SI_Units (radian, metre, second)...
6bf6dd92cc7cb0d33817b748dad61b1fb1f7ba6e9af444f70241eb9e4d287756
clojure/core.typed
poly_record.clj
(ns clojure.core.typed.test.poly-record (:require [clojure.core.typed :as t])) (t/ann-record [[foo :variance :invariant]] Foo [b :- (t/U nil Number)]) (t/tc-ignore (defrecord Foo [b]) ) (comment (defmacro defrecord> "Define a typed record. eg. ;monomorphic (defrecord> FooM [a :- (U nil Number), ...
null
https://raw.githubusercontent.com/clojure/core.typed/f5b7d00bbb29d09000d7fef7cca5b40416c9fa91/typed/checker.jvm/test/clojure/core/typed/test/poly_record.clj
clojure
monomorphic polymorphic
(ns clojure.core.typed.test.poly-record (:require [clojure.core.typed :as t])) (t/ann-record [[foo :variance :invariant]] Foo [b :- (t/U nil Number)]) (t/tc-ignore (defrecord Foo [b]) ) (comment (defmacro defrecord> "Define a typed record. (defrecord> FooM [a :- (U nil Number), b...
ae160dca74ca58c732aa7fc0bc75c289ebd38dbd7763422743a25f8f229abf7d
racket/deinprogramm
signature.rkt
#lang scheme/base (provide all-signature-tests) (require rackunit deinprogramm/sdp/record deinprogramm/signature/signature deinprogramm/signature/signature-german deinprogramm/signature/signature-syntax) (require scheme/promise) (define integer (make-predicate-signature 'integer integer? 'integer-marker)) (...
null
https://raw.githubusercontent.com/racket/deinprogramm/b606a89102c32d88cfdf66fd55779c9d7f47cc94/deinprogramm/deinprogramm/sdp/tests/signature.rkt
racket
after checking, the system should remember that it did so after checking, the system should remember that it did so
#lang scheme/base (provide all-signature-tests) (require rackunit deinprogramm/sdp/record deinprogramm/signature/signature deinprogramm/signature/signature-german deinprogramm/signature/signature-syntax) (require scheme/promise) (define integer (make-predicate-signature 'integer integer? 'integer-marker)) (...
3ae7dc1dbe93c77164fa0798b1cdd3a94f6502d9dc68f44e646dde2323fa49a2
bitemyapp/esqueleto
Record.hs
# LANGUAGE DataKinds # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NamedFieldPuns # # LANGUAGE OverloadedLabels # {-# LANGUAGE Overlo...
null
https://raw.githubusercontent.com/bitemyapp/esqueleto/84feb9b46ec13617da7df9a3faa3d7141e88b380/test/Common/Record.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings # Tests for `Database.Esqueleto.Record`. The keys should match. The keys should match. The keys should match. The keys should match.
# LANGUAGE DataKinds # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NamedFieldPuns # # LANGUAGE OverloadedLabels # # LANGUAGE QuasiQuotes # # LANGUAGE Standa...
e2dc3d925bfbed90b3ca13bb0e4b1769fad7ce1d53b04c80450f003b36cbe165
zenspider/schemers
exercise.4.50.scm
#!/usr/bin/env csi -s (require rackunit) Exercise 4.50 ;; Implement a new special form `ramb' that is like `amb' except that ;; it searches alternatives in a random order, rather than from left to right . Show how this can help with 's problem in * Note ;; Exercise 4-49::. ;; (ramb implemented in amb-eval.scm)...
null
https://raw.githubusercontent.com/zenspider/schemers/2939ca553ac79013a4c3aaaec812c1bad3933b16/sicp/ch_4/exercise.4.50.scm
scheme
Implement a new special form `ramb' that is like `amb' except that it searches alternatives in a random order, rather than from left Exercise 4-49::. (ramb implemented in amb-eval.scm) ramb's output is random and that dwelling still passes using: (define (not p) (if p false true)) (define (amb-assert p) (...
#!/usr/bin/env csi -s (require rackunit) Exercise 4.50 to right . Show how this can help with 's problem in * Note I did n't do 4.49 , so I ca n't show that . I can demonstrate that ( let ( ( baker ( ramb 1 2 3 4 5 ) ) ( cooper ( ramb 1 2 3 4 5 ) ) ( fletcher ( ramb 1 2 3 4 5...
bd636e126a54e4bff800293e7e796f923fd619f11b8a994810f43d6320693811
wilbowma/cur
rewrite.rkt
#lang cur (require cur/stdlib/equality cur/stdlib/sugar cur/stdlib/nat cur/ntac/base cur/ntac/standard cur/ntac/rewrite "rackunit-ntac.rkt") these proofs require PM equality instead of ML equality ;; mult-S-1, with == (:: (λ [n : Nat] [m : Nat] (λ [H : (==...
null
https://raw.githubusercontent.com/wilbowma/cur/e039c98941b3d272c6e462387df22846e10b0128/cur-test/cur/tests/ntac/rewrite.rkt
racket
mult-S-1, with == ; mult - S-1 ( flipped H ) leave plus-1 - n as - is ;; - requires == mult-S-1 (not flipped H) leave plus-1-n as-is (define-theorem mult-S-1
#lang cur (require cur/stdlib/equality cur/stdlib/sugar cur/stdlib/nat cur/ntac/base cur/ntac/standard cur/ntac/rewrite "rackunit-ntac.rkt") these proofs require PM equality instead of ML equality (:: (λ [n : Nat] [m : Nat] (λ [H : (== Nat m (s n))] ...
3917870741a7e0a0d1c2903a8d5b125a3b68d36faab12d6ae2fe634bd8a2c567
mejgun/haskell-tdlib
GetPaymentForm.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Query.GetPaymentForm where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.InputInvoice as InputInvoice import qualified TD.Data.ThemeParameters as ThemeParameters import qualified Utils as U -- | -- Returns an invoice...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/eba1ae3f364d43aabc4f5d2a56ffb1ffb88fe482/src/TD/Query/GetPaymentForm.hs
haskell
# LANGUAGE OverloadedStrings # | | Returns an invoice payment form. This method must be called when the user presses inlineKeyboardButtonBuy | Preferred payment form theme; pass null to use the default theme | The invoice
module TD.Query.GetPaymentForm where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.InputInvoice as InputInvoice import qualified TD.Data.ThemeParameters as ThemeParameters import qualified Utils as U data GetPaymentForm = GetPaymentForm theme :: Maybe ThemeParam...
783517d8454b71facf32ffa7865ae52f5d46a3e8d9faa81b453e640aed6a667f
dmvianna/haskellbook
Ch26-Scotty-2.hs
{-# LANGUAGE OverloadedStrings #-} module Main where import Control.Monad.IO.Class import Data.Maybe (fromMaybe) import Data.Text.Lazy (Text) import Web.Scotty param' :: Parsable a => Text -> ActionM (Maybe a) param' k = rescue (Just <$> param k) (const (return Nothing)) main = scotty 3000 $ do get "/:...
null
https://raw.githubusercontent.com/dmvianna/haskellbook/b1fdce66283ccf3e740db0bb1ad9730a7669d1fc/src/Ch26-Scotty-2.hs
haskell
# LANGUAGE OverloadedStrings #
module Main where import Control.Monad.IO.Class import Data.Maybe (fromMaybe) import Data.Text.Lazy (Text) import Web.Scotty param' :: Parsable a => Text -> ActionM (Maybe a) param' k = rescue (Just <$> param k) (const (return Nothing)) main = scotty 3000 $ do get "/:word" $ do beam' <- param' "wor...
61c17b8274db7f04e259b3a3d0210d8df3dd3c2b19fa8b0766d416d07e133752
danilkolikov/dfl
Instance.hs
| Module : Frontend . Inference . Instance Description : Definition of an instance of a type class Copyright : ( c ) , 2019 License : MIT Module with the definition of an instance of a type class Module : Frontend.Inference.Instance Description : Definition of an instance o...
null
https://raw.githubusercontent.com/danilkolikov/dfl/698a8f32e23b381afe803fc0e353293a3bf644ba/src/Frontend/Inference/Instance.hs
haskell
| An instance of a type class ^ Context of an instance ^ Name of a type class ^ Name of a type ^ Arguments of a type ^ An expression, generated for the instance
| Module : Frontend . Inference . Instance Description : Definition of an instance of a type class Copyright : ( c ) , 2019 License : MIT Module with the definition of an instance of a type class Module : Frontend.Inference.Instance Description : Definition of an instance o...
05b678969b5202418dda159027e6f0abe54ff1172b2e8937f738b9418e7be127
kind2-mc/kind2
certifChecker.mli
This file is part of the Kind 2 model checker . Copyright ( c ) 2014 by the Board of Trustees of the University of Iowa 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 a...
null
https://raw.githubusercontent.com/kind2-mc/kind2/6ff77efa814b4e693941b37364dfe84bb914574b/src/certif/certifChecker.mli
ocaml
* Error the certification can raise. * Generate a certificate from a (possibly) proved system. It is written in the file <input_file>.certificate.smt2 placed in the current directory by default. It is bundled with an SMT2 script to check its validity. val generate_frontend_obs : 'a InputSystem.t -> TransSys....
This file is part of the Kind 2 model checker . Copyright ( c ) 2014 by the Board of Trustees of the University of Iowa 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 a...
5869056cc648b20f4597d7d4ffd3cb1ad50776f90d879e37a72581790d0a3adf
screenshotbot/screenshotbot-oss
client.lisp
;;;; client.lisp (in-package #:quicklisp-client) (defvar *quickload-verbose* nil "When NIL, show terse output when quickloading a system. Otherwise, show normal compile and load output.") (defvar *quickload-prompt* nil "When NIL, quickload systems without prompting for enter to continue, otherwise proceed di...
null
https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/9c420accecde01d15a2ca5773dec110a57eef92b/quicklisp/quicklisp/client.lisp
lisp
client.lisp FIXME: find-asdf-system-file does another find-system behind the scenes. Bogus. Should be a better way to go from system object to system file.
(in-package #:quicklisp-client) (defvar *quickload-verbose* nil "When NIL, show terse output when quickloading a system. Otherwise, show normal compile and load output.") (defvar *quickload-prompt* nil "When NIL, quickload systems without prompting for enter to continue, otherwise proceed directly without us...
ca81e1511f7c3f89b711e7c72b2de72e17be55cac65de7c49e1f93b93ed6ace8
ZHaskell/z-data
Array.hs
| Module : Z.Data . Array . Checked Description : Bounded checked boxed and unboxed arrays Copyright : ( c ) , 2017 - 2019 License : BSD Maintainer : Stability : experimental Portability : non - portable Unified unboxed and boxed array operations using type family . This module re...
null
https://raw.githubusercontent.com/ZHaskell/z-data/33b51176a628893cbf996e0e965db5d8e9eb3f59/Z/Data/Array.hs
haskell
* Boxed array type * Primitive array type * Bound checked array operations * No bound checked operations * Bound checked primitive array operations * No bound checked primitive array operations * Unlifted array type * The 'ArrayException' type * Cast between primitive arrays * Re-export # INLINE check # | Ma...
| Module : Z.Data . Array . Checked Description : Bounded checked boxed and unboxed arrays Copyright : ( c ) , 2017 - 2019 License : BSD Maintainer : Stability : experimental Portability : non - portable Unified unboxed and boxed array operations using type family . This module re...
6c06d43bbdac46349ec8d1ecd8e3aa10ea0cdd0968180bd3d8fdb3b718fc6506
pirapira/coq2rust
coqworkmgrApi.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/stm/coqworkmgrApi.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** High level api for clients of the s...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * val init : Flags.priority ->...
e79b72e3b24f86b9a7fbb12b049000747002fcdefefd46e5fab215e4e211e0af
codinuum/cca
Lrange.ml
Copyright 2012 - 2020 Codinuum Software Lab < > 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 wri...
null
https://raw.githubusercontent.com/codinuum/cca/88ea07f3fe3671b78518769d804fdebabcd28e90/src/ast/analyzing/common/Lrange.ml
ocaml
of module Line
Copyright 2012 - 2020 Codinuum Software Lab < > 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 wri...
422e5c013a9d4eaeb45692613ec9e7f67972471333ea7d46b15d51d40babb5b8
gogins/csound-extended-nudruz
tiling.lisp
(in-package :cm) TILING.LISP -- creating tiling canons see ( PNM 41:2 ) etc . , 2004 ;; ;; www.wordecho.org ;(load "tiles.lisp") ;; PLACE-TILES -- to fill in a tiling ;; can use 'r in pattern-list ;; [based in part on 'scf'] (defun place-tiles (pattern-list tiling-vector) (let ((oldies nil)) ;; fir...
null
https://raw.githubusercontent.com/gogins/csound-extended-nudruz/4551d54890f4adbadc5db8f46cc24af8e92fb9e9/sources/tiling.lisp
lisp
www.wordecho.org (load "tiles.lisp") PLACE-TILES -- to fill in a tiling can use 'r in pattern-list [based in part on 'scf'] first extract the unique ordered elements from orig. list if wrong number of new elements, signal an error PLACE-CANTILES -- to fill in a tiling canon ...can use 'r for transp-level bas...
(in-package :cm) TILING.LISP -- creating tiling canons see ( PNM 41:2 ) etc . , 2004 (defun place-tiles (pattern-list tiling-vector) (let ((oldies nil)) (loop for i in tiling-vector do (pushnew i oldies)) (setq oldies (reverse oldies)) (when (not (= (length oldies) (length pattern-list)))...