_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
332a46c7fd23d9edf5c999a8d17603a942171f04e3c877349afaa4995c72a048
drathier/elm-offline
Kernel.hs
# OPTIONS_GHC -Wall -fno - warn - unused - do - bind # # LANGUAGE BangPatterns , UnboxedTuples , OverloadedStrings # module Parse.Primitives.Kernel ( Special(..) , chunk ) where import Prelude hiding (length) import qualified Data.ByteString.Internal as B import Data.Word (Word8) import Foreign.ForeignPtr (Fo...
null
https://raw.githubusercontent.com/drathier/elm-offline/f562198cac29f4cda15b69fde7e66edde89b34fa/compiler/src/Parse/Primitives/Kernel.hs
haskell
SPECIAL _ _ \n relies on external checks in chompChunk $ a z
# OPTIONS_GHC -Wall -fno - warn - unused - do - bind # # LANGUAGE BangPatterns , UnboxedTuples , OverloadedStrings # module Parse.Primitives.Kernel ( Special(..) , chunk ) where import Prelude hiding (length) import qualified Data.ByteString.Internal as B import Data.Word (Word8) import Foreign.ForeignPtr (Fo...
c5405c49bf1331a7d3632df02fec72bb8e3b2d70e6b7290aa5b87d817fa4b50f
oakes/edna
project.clj
(defproject edna/lein-template "1.6.0.11" :description "A template for making edna projects" :url "" :license {:name "Public Domain" :url ""} :repositories [["clojars" {:url "" :sign-releases false}]])
null
https://raw.githubusercontent.com/oakes/edna/8aa4f7d1751991e889315c62937a81eacebe1da0/template/project.clj
clojure
(defproject edna/lein-template "1.6.0.11" :description "A template for making edna projects" :url "" :license {:name "Public Domain" :url ""} :repositories [["clojars" {:url "" :sign-releases false}]])
ade7348e4aec4cd9081ceda816fbcf397c207c86f6c97014f6929eef136075e6
PLTools/GT
HTML.ml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright ( C ) 2005 - 2021 * ( ) , St. Petersburg State University * Universitetskii pr . , 28 , St. Petersburg , 198504 , RUSSIA * * This librar...
null
https://raw.githubusercontent.com/PLTools/GT/62d1a424a3336f2317ba67e447a9ff09d179b583/src/HTML.ml
ocaml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright ( C ) 2005 - 2021 * ( ) , St. Petersburg State University * Universitetskii pr . , 28 , St. Petersburg , 198504 , RUSSIA * * This librar...
2da716e30fa34028d8a035ce2c537206dab12949d9114d5e5437f118fff07289
ephemient/aoc2018
Day14.hs
{-| Module: Day14 Description: < Day 14: Chocolate Charts> -} # LANGUAGE FlexibleContexts , ScopedTypeVariables , TypeApplications , ViewPatterns # module Day14 (day14a, day14b) where import Control.Monad (zipWithM_) import qualified Control.Monad.ST as Strict (ST) import Control.Monad.ST.Lazy (ST, runST, s...
null
https://raw.githubusercontent.com/ephemient/aoc2018/eb0d04193ccb6ad98ed8ad2253faeb3d503a5938/src/Day14.hs
haskell
| Module: Day14 Description: < Day 14: Chocolate Charts>
# LANGUAGE FlexibleContexts , ScopedTypeVariables , TypeApplications , ViewPatterns # module Day14 (day14a, day14b) where import Control.Monad (zipWithM_) import qualified Control.Monad.ST as Strict (ST) import Control.Monad.ST.Lazy (ST, runST, strictToLazyST) import Data.Array.Base (getNumElements, unsafeRead, unsafe...
a71897fe76c44a47d79869faf063547759b21f9e904f5c83afc16c655b424957
GaloisInc/pate
Equivalence.hs
| Module : . Equivalence Copyright : ( c ) Galois , Inc 2020 Maintainer : < > Definitions for equality over crucible input and output states . Module : Pate.Equivalence Copyright : (c) Galois, Inc 2020 Maintainer : Daniel Matichuk <> Definitions for equal...
null
https://raw.githubusercontent.com/GaloisInc/pate/a48c447156d95686c308a6d5ec696464120e0970/src/Pate/Equivalence.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # # LANGUAGE ConstraintKinds # # LANGUAGE TypeSynonymInstances # # LANGUAGE NoMonoLocalBinds # ------------------------------------- | A flag for whether or not a given memory equality test should be inclusive or exclusive to a specific region of memory. Currently this region ...
| Module : . Equivalence Copyright : ( c ) Galois , Inc 2020 Maintainer : < > Definitions for equality over crucible input and output states . Module : Pate.Equivalence Copyright : (c) Galois, Inc 2020 Maintainer : Daniel Matichuk <> Definitions for equal...
85418ac6d46c158a8c11f7d9d9cf878830239dee23860ed6eb09ecf71348fcf9
crategus/cl-cffi-gtk
gdk.selection.lisp
;;; ---------------------------------------------------------------------------- ;;; gdk.selections.lisp ;;; The documentation of this file is taken from the 3 Reference Manual Version 3.24 and modified to document the Lisp binding to the GDK library . ;;; See <>. The API documentation of the Lisp binding is ava...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/7f5a09f78d8004a71efa82794265f2587fff98ab/gdk/gdk.selection.lisp
lisp
---------------------------------------------------------------------------- gdk.selections.lisp See <>. The API documentation of the Lisp binding is This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License for Lisp License, or (at your op...
The documentation of this file is taken from the 3 Reference Manual Version 3.24 and modified to document the Lisp binding to the GDK library . available from < -cffi-gtk/ > . Copyright ( C ) 2009 - 2011 Copyright ( C ) 2011 - 2021 as published by the Free Software Foundation , either version 3 of the ...
82c0b59ccb5a009aba8085d8b73c83c48eb8b08aa3092bc4c6f84079606b8dd9
dterei/SafeHaskellExamples
BadSafeClassInstance.hs
# LANGUAGE Unsafe # module BadSafeClassInstance where import System.IO.Unsafe import TypeClassSafe instance SafeClass Bool where same n = unsafePerformIO $ print "EVIL!" >> return n
null
https://raw.githubusercontent.com/dterei/SafeHaskellExamples/0f7bbb53cf1cbb8419ce3a4aa4258b84be30ffcc/typeclasses/BadSafeClassInstance.hs
haskell
# LANGUAGE Unsafe # module BadSafeClassInstance where import System.IO.Unsafe import TypeClassSafe instance SafeClass Bool where same n = unsafePerformIO $ print "EVIL!" >> return n
d12edf2b12105410b85f4b0a5963cdd5ebbf3877859490bcde0824fd6c8eabfe
prestancedesign/todo-backend-reitit
user.clj
(ns user (:require [ragtime.jdbc :as jdbc] [ragtime.repl :as repl])) (def config {:datastore (jdbc/sql-database "jdbc:postgresql:todos?user=postgres&password=mypass") :migrations (jdbc/load-resources "migrations")}) (comment (repl/migrate config) (repl/rollback config))
null
https://raw.githubusercontent.com/prestancedesign/todo-backend-reitit/9a54fa283f1d1b329f6d5f6983cac2d55b77b3c5/dev/user.clj
clojure
(ns user (:require [ragtime.jdbc :as jdbc] [ragtime.repl :as repl])) (def config {:datastore (jdbc/sql-database "jdbc:postgresql:todos?user=postgres&password=mypass") :migrations (jdbc/load-resources "migrations")}) (comment (repl/migrate config) (repl/rollback config))
41d479686fae83edd8fd7dde0a2b53e1582ec5ac04094aeacfba0b46833e7f0d
racket/gui
clipboard.rkt
#lang racket/base (require racket/class (only-in racket/draw bitmap%) "../../syntax.rkt" "../platform.rkt" "local.rkt" "queue.rkt") (provide (protect-out clipboard<%> clipboard-client% get-the-clipboard get-the-x-selection)) (def...
null
https://raw.githubusercontent.com/racket/gui/d1fef7a43a482c0fdd5672be9a6e713f16d8be5c/gui-lib/mred/private/wx/common/clipboard.rkt
racket
#lang racket/base (require racket/class (only-in racket/draw bitmap%) "../../syntax.rkt" "../platform.rkt" "local.rkt" "queue.rkt") (provide (protect-out clipboard<%> clipboard-client% get-the-clipboard get-the-x-selection)) (def...
94f1c573e5984866e2a5260362959780456b285525b4e75fcfdb3edbc7d43077
karamellpelle/grid
ShadeGeneral.hs
grid is a game written in Haskell Copyright ( C ) 2018 -- -- This file is part of grid. -- -- grid 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 License , or -- (at your optio...
null
https://raw.githubusercontent.com/karamellpelle/grid/56729e63ed6404fd6cfd6d11e73fa358f03c386f/source/Game/Grid/GridData/Fancy/ShadeGeneral.hs
haskell
This file is part of grid. grid is free software: you can redistribute it and/or modify (at your option) any later version. grid 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 GN...
grid is a game written in Haskell Copyright ( C ) 2018 it 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 module Game.Grid.GridData.Fancy.ShadeGeneral ( ...
9e238d75a5ea0e483a562afc5c15b74534464f78aa56c4722a61e191523336cb
albertoruiz/easyVision
test4.hs
import Contours.Clipping import ImagProc.Base import Contours p = Closed [ Point {px = 0.15270079428773498, py = 0.43295977213554554} , Point{px = -0.18595359038634324, py = 0.43571411250556147} , Point {px = -0.18911816070477735, py = 0.2711387097388278} , Point {px = 0.15581365744346...
null
https://raw.githubusercontent.com/albertoruiz/easyVision/26bb2efaa676c902cecb12047560a09377a969f2/packages/contours/clipping/test/test4.hs
haskell
import Contours.Clipping import ImagProc.Base import Contours p = Closed [ Point {px = 0.15270079428773498, py = 0.43295977213554554} , Point{px = -0.18595359038634324, py = 0.43571411250556147} , Point {px = -0.18911816070477735, py = 0.2711387097388278} , Point {px = 0.15581365744346...
213ac93595da3308a511a409a2202e406b8d500b3b5a6d1baa8a359fd98be664
day8/re-frame-async-flow-fx
deps.cljs
{:npm-dev-deps {"shadow-cljs" "2.12.4" "karma" "6.3.2" "karma-chrome-launcher" "3.1.0" "karma-cljs-test" "0.1.0" "karma-junit-reporter" "2.0.1"}}
null
https://raw.githubusercontent.com/day8/re-frame-async-flow-fx/ddd0b17b9ef8bfb00b3034eefe074b135a2ab64d/src/deps.cljs
clojure
{:npm-dev-deps {"shadow-cljs" "2.12.4" "karma" "6.3.2" "karma-chrome-launcher" "3.1.0" "karma-cljs-test" "0.1.0" "karma-junit-reporter" "2.0.1"}}
ca938185d1e56052a0819dd24649d22a73c9ff01ad74a967841e237d15e24b6d
altenwald/eimap
eimap_command_starttls_tests.erl
Copyright 2014 Kolab Systems AG ( ) %% ( Kolab Systems ) < seigo a kolabsys.com > %% %% This program is free software: you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation , either version 3 of the License , or %% (at ...
null
https://raw.githubusercontent.com/altenwald/eimap/cfa94c2e1303b240d8582b30546fd666a7ad128b/test/eimap_command_starttls_tests.erl
erlang
This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library Gener...
Copyright 2014 Kolab Systems AG ( ) ( Kolab Systems ) < seigo a kolabsys.com > it under the terms of the GNU Library 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 Library General Public License -module(...
ca55c7608964ac3f8615ec4805c542d471766aa1a3c341f7046ce71f5f900be6
acl2/acl2
guard-theorem-no-simplify@useless-runes.lsp
(GUARD-THEOREM-NO-SIMPLIFY)
null
https://raw.githubusercontent.com/acl2/acl2/f64742cc6d41c35f9d3f94e154cd5fd409105d34/books/kestrel/std/system/.sys/guard-theorem-no-simplify%40useless-runes.lsp
lisp
(GUARD-THEOREM-NO-SIMPLIFY)
18829d080be4eebbc52df93fce6d062092c167437213086c3ef15847b037b668
nuvla/api-server
subscription_config_test.clj
(ns sixsq.nuvla.server.resources.subscription-config-test (:require [clojure.data.json :as json] [clojure.test :refer [deftest is use-fixtures]] [peridot.core :refer [content-type header request session]] [sixsq.nuvla.server.app.params :as p] [sixsq.nuvla.server.middleware.authn-info :refer [authn...
null
https://raw.githubusercontent.com/nuvla/api-server/17c8a5aa3e11899913db2f06a71de58c6051c10c/code/test/sixsq/nuvla/server/resources/subscription_config_test.clj
clojure
anon query fails anon create must fail check creation verify that an edit works disable subscription enable subscription set method-ids using operation delete enabling works edit with inconsistent criteria is rejected by the server edit with consistent criteria is accepted delete
(ns sixsq.nuvla.server.resources.subscription-config-test (:require [clojure.data.json :as json] [clojure.test :refer [deftest is use-fixtures]] [peridot.core :refer [content-type header request session]] [sixsq.nuvla.server.app.params :as p] [sixsq.nuvla.server.middleware.authn-info :refer [authn...
0b4661fbb1d15cebb7d890896222353f8be814771d071a483c5dc221151bf70d
Clozure/ccl
xx8632-fasload.lisp
-*- Mode : Lisp ; Package : CCL -*- ;;; ;;; Copyright 2009 Clozure Associates ;;; 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 applicabl...
null
https://raw.githubusercontent.com/Clozure/ccl/6c1a9458f7a5437b73ec227e989aa5b825f32fd3/xdump/xx8632-fasload.lisp
lisp
Package : CCL -*- Copyright 2009 Clozure Associates you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ...
distributed under the License is distributed on an " AS IS " BASIS , (in-package "CCL") (eval-when (:compile-toplevel :execute) (require "FASLENV" "ccl:xdump;faslenv") (require "X86-LAP")) (eval-when (:compile-toplevel :load-toplevel :execute) (require "XFASLOAD" "ccl:xdump;xfasload")) (defparameter *x8632-...
526c8b43a2665f357374472cd79da92c55a77748031035cae4e069d027770261
mzp/coq-ruby
g_zsyntax.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/mzp/coq-ruby/99b9f87c4397f705d1210702416176b13f8769c1/parsing/g_zsyntax.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** ************************************...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * $ I d : g_zsyntax.ml 1130...
a49569b79b0365dc5d86c8a9040cb45191710b42c4dbc10554c82fb02b1f8c6c
danr/hipspec
ZEncode.hs
-- | Z-encoding module HipSpec.Utils.ZEncode (zencode) where import Data.Char import qualified Data.Map as M import Data.Maybe -- | Escaping via z-encoding -- GHC 's encoder in Encoding could be used , but it escapes underscores which -- is a bit annoying zencode :: String -> String zencode = leading . concatMa...
null
https://raw.githubusercontent.com/danr/hipspec/a114db84abd5fee8ce0b026abc5380da11147aa9/src/HipSpec/Utils/ZEncode.hs
haskell
| Z-encoding | Escaping via z-encoding is a bit annoying
module HipSpec.Utils.ZEncode (zencode) where import Data.Char import qualified Data.Map as M import Data.Maybe GHC 's encoder in Encoding could be used , but it escapes underscores which zencode :: String -> String zencode = leading . concatMap (\ c -> fromMaybe [c] (M.lookup c escapes)) where escapes = M.f...
bb21e2d4f7caf7b2db6aa44cc90ed2e9afab9265db6eb436922840ff62c5e2f4
slagyr/gaeshi
prepare.clj
(ns gaeshi.kuzushi.commands.prepare "Build a deployable directory structure of the app" (:require [leiningen.jar :refer [jar get-jar-filename write-jar]] [clojure.java.io :refer [file]] [clojure.string :as str :refer [join]] [joodo.kuzushi.common :refer [symbolize with-lein-proje...
null
https://raw.githubusercontent.com/slagyr/gaeshi/a5677ed1c8d9269d412f07a7ab33bbc40aa7011a/lein-gaeshi/src/gaeshi/kuzushi/commands/prepare.clj
clojure
[core-namespace]) (defn- prepare-libs [project] (let [lib-dir (:library-path project) dev-lib-dir (.getPath (file lib-dir "dev"))]
(ns gaeshi.kuzushi.commands.prepare "Build a deployable directory structure of the app" (:require [leiningen.jar :refer [jar get-jar-filename write-jar]] [clojure.java.io :refer [file]] [clojure.string :as str :refer [join]] [joodo.kuzushi.common :refer [symbolize with-lein-proje...
30e7081288a610d0fe54d23811f06b2128f335e4dce7c042001f314386ca351e
SquidDev/illuaminate
lint_pcall_eta.ml
open IlluaminateCore.Syntax open IlluaminateCore open IlluaminateSemantics open! Linter module R = Resolve module G = Global module Safe = Pure.Safe let string_len = G.parse "pcall" let tag = Error.Tag.make ~attr:[ Default ] ~level:Warning "stdlib:pcall-eta" let safe_args = function | CallArgs { args; _ } -> SepLis...
null
https://raw.githubusercontent.com/SquidDev/illuaminate/7a6e4bf56f01e81a47c743cb452791c2168ccbda/src/lint/lint_pcall_eta.ml
ocaml
TODO: Ideally we wouldn't need to do this, and the formatter would handle this. Look for `function return f(...) end' and `function() f(...) end'.
open IlluaminateCore.Syntax open IlluaminateCore open IlluaminateSemantics open! Linter module R = Resolve module G = Global module Safe = Pure.Safe let string_len = G.parse "pcall" let tag = Error.Tag.make ~attr:[ Default ] ~level:Warning "stdlib:pcall-eta" let safe_args = function | CallArgs { args; _ } -> SepLis...
d5701972643e0adb89bc503b92530e01ad94aeed09248a0cddf7a52ff3ee5c06
cdepillabout/servant-static-th
Api.hs
# LANGUAGE DataKinds # # LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # # LANGUAGE TypeOperators # module Servant.Static.TH.Internal.Api where import Data.Foldable (foldl1) import Data.List.NonEmpty (NonEmpty) import Language.Haskell.TH (Dec, Q, Type, appT, litT, mkName, runIO, strTyLit, tySynD) i...
null
https://raw.githubusercontent.com/cdepillabout/servant-static-th/5ec0027ed2faa6f8c42a2259a963f52e6b30edad/src/Servant/Static/TH/Internal/Api.hs
haskell
We special-case files called "index.html" and generate a type that serves on both the root, and under the path "index.html". function and return the resulting @'Q' 'Type'@. | Take a template directory argument as a 'FilePath' and create a Servant type representing the files in the directory. Empty directories wil...
# LANGUAGE DataKinds # # LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # # LANGUAGE TypeOperators # module Servant.Static.TH.Internal.Api where import Data.Foldable (foldl1) import Data.List.NonEmpty (NonEmpty) import Language.Haskell.TH (Dec, Q, Type, appT, litT, mkName, runIO, strTyLit, tySynD) i...
8dc5982d144ba3f1356a704aba24f5a5cad7f58dc60902178eea5d3d80f247f5
marick/structural-typing
f_ALL.clj
(ns structural-typing.use.condensed-type-descriptions.f-ALL (:require [structural-typing.preds :as pred]) (:use midje.sweet structural-typing.type structural-typing.global-type structural-typing.clojure.core structural-typing.assist.testutil) (:refer-clojure :except [any?])) (sta...
null
https://raw.githubusercontent.com/marick/structural-typing/9b44c303dcfd4a72c5b75ec7a1114687c809fba1/test/structural_typing/use/condensed_type_descriptions/f_ALL.clj
clojure
(ns structural-typing.use.condensed-type-descriptions.f-ALL (:require [structural-typing.preds :as pred]) (:use midje.sweet structural-typing.type structural-typing.global-type structural-typing.clojure.core structural-typing.assist.testutil) (:refer-clojure :except [any?])) (sta...
8828266851bde5862b90c18d1d214bf9e57a4286cec6f3df0c82b7f4107c86a8
owickstrom/gi-gtk-declarative
CustomWidgetTest.hs
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE OverloadedLabels #-} # LANGUAGE OverloadedLists # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # OPTIONS_GHC -fno - warn - missing - signatures # module GI.Gtk.Decla...
null
https://raw.githubusercontent.com/owickstrom/gi-gtk-declarative/205351a54698be7b583dd34d189a89470ee2b11b/gi-gtk-declarative/test/GI/Gtk/Declarative/CustomWidgetTest.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE OverloadedLabels # # LANGUAGE OverloadedStrings # # LANGUAGE RecordWildCards # * Test widget and helpers putMVar clicks new * Test collection
# LANGUAGE OverloadedLists # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # OPTIONS_GHC -fno - warn - missing - signatures # module GI.Gtk.Declarative.CustomWidgetTest where import Control.Concurrent import Control.Concurrent.STM import Control.Exception.Safe i...
1fa5b4f1e51fe85d320fa0d3ea58c8533f13ae108af653685cfe00f5f4fa1e7e
mwand/eopl3
static-data-structures.scm
(module static-data-structures (lib "eopl.ss" "eopl") (require "lang.scm") ; for expression?, type?, etc. (provide (all-defined-out)) ; too many things to list (define-datatype type-environment type-environment? (empty-tenv) (extend-tenv (bvar symbol?) (bval ...
null
https://raw.githubusercontent.com/mwand/eopl3/b50e015be7f021d94c1af5f0e3a05d40dd2b0cbf/chapter8/abstract-types-lang/static-data-structures.scm
scheme
for expression?, type?, etc. too many things to list invariant: this must always be expanded procedures for looking things up tenvs ;;;;;;;;;;;;;;;; lookup or die this is not right, because it doesn't distinguish between type and variable declarations. Exercise: fix this so that it raises an error if t-name i...
(module static-data-structures (lib "eopl.ss" "eopl") (define-datatype type-environment type-environment? (empty-tenv) (extend-tenv (bvar symbol?) (bval type?) (saved-tenv type-environment?)) (extend-tenv-with-module (name symbol?) (interface interface?) (saved-tenv...
a4a98146c6060776f391024bc56a19e53ecb5459155fbca2e62019dca7155da7
ivanperez-keera/Yampa
Hybrid.hs
-- | Module : . Hybrid Copyright : ( c ) , 2014 - 2022 ( c ) , 2007 - 2012 ( c ) , 2005 - 2006 ( c ) and , Yale University , 2003 - 2004 -- License : BSD-style (see the LICENSE file in the distribution) -- -- Maintainer : -- Stabilit...
null
https://raw.githubusercontent.com/ivanperez-keera/Yampa/e00c94f39ceaa017d0c5f48c5f504da3ee0c15fa/yampa/src/FRP/Yampa/Hybrid.hs
haskell
| License : BSD-style (see the LICENSE file in the distribution) Maintainer : Stability : provisional Discrete to continuous-time signal functions. * Wave-form generation * Accumulators * Wave-form generation | Zero-order hold. Converts a discrete-time signal into a continuous-time signal, by ho...
Module : . Hybrid Copyright : ( c ) , 2014 - 2022 ( c ) , 2007 - 2012 ( c ) , 2005 - 2006 ( c ) and , Yale University , 2003 - 2004 Portability : non - portable ( GHC extensions ) module FRP.Yampa.Hybrid ( hold , dHold ...
fb6ce52ca37250e2a59245c4c23f3aa0a4717b17d773bef50289683e8e73933e
PacktWorkshops/The-Clojure-Workshop
utils.clj
(ns coffee-app.utils (:require [clojure.java.io :as io]) (:import [java.io PushbackReader])) ;;; files saving and loading functions (defn save-to [location data] (spit location data :append true)) (defn file-exists? [location] (.exists (io/as-file location))) (defn read-one-order [r] ...
null
https://raw.githubusercontent.com/PacktWorkshops/The-Clojure-Workshop/3d309bb0e46a41ce2c93737870433b47ce0ba6a2/Chapter09/tests/Exercise9.05/coffee-app/src/coffee_app/utils.clj
clojure
files saving and loading functions orders calculating and formatting function
(ns coffee-app.utils (:require [clojure.java.io :as io]) (:import [java.io PushbackReader])) (defn save-to [location data] (spit location data :append true)) (defn file-exists? [location] (.exists (io/as-file location))) (defn read-one-order [r] (try (read r) (catch ...
95edbe4b07b1d6d7b056b9064f5da94b89f81ba31957237f1d923f268b3270b5
ocaml-doc/doc-ock-html
to_html_tree.mli
* Copyright ( c ) 2016 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
null
https://raw.githubusercontent.com/ocaml-doc/doc-ock-html/84c2e11889111858b732be1b530cf50eb176dc75/src/to_html_tree.mli
ocaml
* Copyright ( c ) 2016 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
af5d005916bb3276c05af770717ecee2aea797ce9b15b0fdcdc1f835e14fc38d
dialohq/ocaml-grpc
greeter_server_lwt.ml
open Grpc_lwt let say_hello buffer = let decoder = Pbrt.Decoder.of_string buffer in let req = Greeter.Greeter_pb.decode_hello_request decoder in let message = if req.name = "" then "You forgot your name!" else Format.sprintf "Hello, %s!" req.name in let reply = Greeter.Greeter_types.default_hello_rep...
null
https://raw.githubusercontent.com/dialohq/ocaml-grpc/79fa9373db069f7c8840b2f52b5df89499f75ba2/examples/greeter-server-lwt/greeter_server_lwt.ml
ocaml
open Grpc_lwt let say_hello buffer = let decoder = Pbrt.Decoder.of_string buffer in let req = Greeter.Greeter_pb.decode_hello_request decoder in let message = if req.name = "" then "You forgot your name!" else Format.sprintf "Hello, %s!" req.name in let reply = Greeter.Greeter_types.default_hello_rep...
34daf9fbbd751a1e9b3d61d1967a3fcb442b059ef9a9e212ea29ee26eb4b20d3
btmura/b1
Dirty.hs
module B1.Program.Chart.Dirty ( Dirty(..) ) where type Dirty = Bool
null
https://raw.githubusercontent.com/btmura/b1/9cf0514ba1e03e9f4da05be9231acde07b199864/src/B1/Program/Chart/Dirty.hs
haskell
module B1.Program.Chart.Dirty ( Dirty(..) ) where type Dirty = Bool
18b23e25dcf56a7f5ba0c2be62310d646bc6a90c0c77906668592c1930ad0146
Ivana-/fhir-face
window_location.cljs
(ns zframes.window-location (:refer-clojure :exclude [get set!]) (:require [re-frame.core :as rf] [clojure.string :as str])) (defn url-decode [x] (js/decodeURIComponent x)) (defn url-encode [x] (js/encodeURIComponent x)) (defn parse-querystring [s] (-> (str/replace s #"^\?" "") (str/split #"&...
null
https://raw.githubusercontent.com/Ivana-/fhir-face/0910012395de3d877a23a17a5b8d2d5e578ab256/src/zframes/window_location.cljs
clojure
(ns zframes.window-location (:refer-clojure :exclude [get set!]) (:require [re-frame.core :as rf] [clojure.string :as str])) (defn url-decode [x] (js/decodeURIComponent x)) (defn url-encode [x] (js/encodeURIComponent x)) (defn parse-querystring [s] (-> (str/replace s #"^\?" "") (str/split #"&...
29f4271d8907784a1cf28380056570e436bd9367efed85345e95ee609c77eba9
kaoskorobase/hsndfile
StorableVector.hs
# LANGUAGE MultiParamTypeClasses , , FlexibleInstances , ScopedTypeVariables , TypeSynonymInstances # , GeneralizedNewtypeDeriving , FlexibleInstances , ScopedTypeVariables , TypeSynonymInstances #-} module Sound.File.Sndfile.Wrapped....
null
https://raw.githubusercontent.com/kaoskorobase/hsndfile/f532a1fdf119a543d7db20fe21f11ced5cffbb21/packages/hsndfile-iteratee/Sound/File/Sndfile/Wrapped/StorableVector.hs
haskell
|Wrap a Data.StorableVector
# LANGUAGE MultiParamTypeClasses , , FlexibleInstances , ScopedTypeVariables , TypeSynonymInstances # , GeneralizedNewtypeDeriving , FlexibleInstances , ScopedTypeVariables , TypeSynonymInstances #-} module Sound.File.Sndfile.Wrapped....
cf5d13ae9d6b16ab8be00c14430069787d52fb68df9bdb972814168688e3b7bf
blindglobe/clocc
package.lisp
-*- Mode : Common - Lisp ; Package : user ; -*- ;;; ;;; ;;; TEXAS INSTRUMENTS INCORPORATED P.O. BOX 149149 AUSTIN , TEXAS 78714 - 9149 ;;; Copyright ( C)1987,1988,1989,1990 Texas Instruments Incorporated . ;;; ;;; Permission is granted to any individual or institution to use, copy, modify, ;;;...
null
https://raw.githubusercontent.com/blindglobe/clocc/a50bb75edb01039b282cf320e4505122a59c59a7/src/gui/clue/pictures/package.lisp
lisp
Package : user ; -*- Permission is granted to any individual or institution to use, copy, modify, and distribute this software, provided that this complete copyright and permission notice is maintained, intact, in all copies and supporting documentation. express or implied warranty. Crock! XLIB and COMMO...
TEXAS INSTRUMENTS INCORPORATED P.O. BOX 149149 AUSTIN , TEXAS 78714 - 9149 Copyright ( C)1987,1988,1989,1990 Texas Instruments Incorporated . Texas Instruments Incorporated provides this software " as is " without Authors : , , Contributors : , , (in-package "USER") (assert ...
b09f6102dfa12ec8d20437ab8fff0b340f00928b219bbb19ed5c8616dd33b0f7
myShoggoth/deckbuilder
Types.hs
# OPTIONS_GHC -fno - warn - orphans # # LANGUAGE AllowAmbiguousTypes # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # # LANGUAGE DerivingVia # # LANGUAGE UndecidableInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE StandaloneDeriving # # LANGUAGE DeriveGeneric # module DeckBui...
null
https://raw.githubusercontent.com/myShoggoth/deckbuilder/95c74fe58cf1b964e74ddc2f3381a9c2e380e0fd/src/DeckBuilding/Types.hs
haskell
| The result of a game. Includes the optional text representation of the move by move description of what happened (usually the output of the printer printer), the winner(s), and their score. | Create the initial state of the 'Game' turn. | Returns whether or not the 'Game' is over. | Returns a list of the 'Playe...
# OPTIONS_GHC -fno - warn - orphans # # LANGUAGE AllowAmbiguousTypes # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # # LANGUAGE DerivingVia # # LANGUAGE UndecidableInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE StandaloneDeriving # # LANGUAGE DeriveGeneric # module DeckBui...
c98a838c27bb13eb46915d8338cf9a859341cb56b480eb26be6032dafa5a4d02
OtpChatBot/Ybot
ybot_actor.erl
%%%----------------------------------------------------------------------------- %%% @author 0xAX <> %%% @doc Ybot main plugin executor . %%% @end %%%----------------------------------------------------------------------------- -module(ybot_actor). -behaviour(gen_server). -export([start_link/4, stop/0, handle_comma...
null
https://raw.githubusercontent.com/OtpChatBot/Ybot/5ce05fea0eb9001d1c0ff89702729f4c80743872/src/ybot_actor.erl
erlang
----------------------------------------------------------------------------- @author 0xAX <> @doc @end ----------------------------------------------------------------------------- gen_server callbacks ============================================================================= API functions ====================...
Ybot main plugin executor . -module(ybot_actor). -behaviour(gen_server). -export([start_link/4, stop/0, handle_command/4]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3 ]). -type cmd() :: string(). -type cmd_args() ::...
4636aa8020b368a4e1852b4ccf57220683c495886f340cda559a4d9f421e0d9e
facebook/pyre-check
log.mli
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/pyre-check/c03d27aceea9f2ed911a18a81615721614c32b31/source/log.mli
ocaml
Setup the logging environment where `sections` is a list of sections that are enabled. Logs directly to the standard output.
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
d498b4f2944b20cf7da9beb086cc57e27492417ce8ccf6c039a85620a8caacbc
UlfNorell/agda-bench
Main.hs
# LANGUAGE FlexibleContexts , DeriveGeneric , DeriveAnyClass # module Main where import GHC.Generics (Generic) import Control.DeepSeq import Control.Monad import Control.Monad.Except import Control.Monad.IO.Class import Criterion.Main import Data.List import qualified Data.HashMap.Strict as HMap import System.Conso...
null
https://raw.githubusercontent.com/UlfNorell/agda-bench/af5bfc0689eab385f0ba25a92800aa30335c3795/Main.hs
haskell
Importing module as O is a hack to cover both | Set 'envCurrentPath' to 'optInputFile'. N.B.: Just getInputFile clashes with
# LANGUAGE FlexibleContexts , DeriveGeneric , DeriveAnyClass # module Main where import GHC.Generics (Generic) import Control.DeepSeq import Control.Monad import Control.Monad.Except import Control.Monad.IO.Class import Criterion.Main import Data.List import qualified Data.HashMap.Strict as HMap import System.Conso...
acae936ea7ce34c8954f0c8e0429fd337b212181eeb1754df2e2c4302dd4ed75
TheLortex/mirage-monorepo
prelude.ml
#require "eio_main";; module Eio_main = struct open Eio.Std let now = ref 1623940778.27033591 let fake_clock real_clock = object (_ : #Eio.Time.clock) method now = !now method sleep_until time = The fake times are all in the past , so we just ask to wait until the fake time is due and it w...
null
https://raw.githubusercontent.com/TheLortex/mirage-monorepo/0c29acffaf08dc0008097d36225a14960769f132/duniverse/eio/doc/prelude.ml
ocaml
To avoid non-deterministic output, we run the examples a single domain.
#require "eio_main";; module Eio_main = struct open Eio.Std let now = ref 1623940778.27033591 let fake_clock real_clock = object (_ : #Eio.Time.clock) method now = !now method sleep_until time = The fake times are all in the past , so we just ask to wait until the fake time is due and it w...
0b203cb5df8b4ba036507ec33807aa77ec85db3bed7136c3f531e73b2b8f84ea
joearms/elib1
elib1_gamma.erl
Copyright ( c ) 2006 - 2009 See MIT - LICENSE for licensing information . -module(elib1_gamma). %% -compile(export_all). -import(lists, [reverse/1]). -export([unit_test/0, dlist/1, decode_f/1, alist_to_gamma/1, gamma_to_alist/1, encode/1, decode/1, encode_seq/1, decode_seq/1]). %% to encode X Take unary...
null
https://raw.githubusercontent.com/joearms/elib1/d617d0ec70a058ef102749eadf51c024444c28d9/lib/src/elib1_gamma.erl
erlang
-compile(export_all). to encode X ---------------------------------------------------------------------- encode(Int) -> bits() f(X) = floor(log2(X)). example f(9) encode - end ---------------------------------------------------------------------- ----------------------------------------------------------------...
Copyright ( c ) 2006 - 2009 See MIT - LICENSE for licensing information . -module(elib1_gamma). -import(lists, [reverse/1]). -export([unit_test/0, dlist/1, decode_f/1, alist_to_gamma/1, gamma_to_alist/1, encode/1, decode/1, encode_seq/1, decode_seq/1]). Take unary code for 1 + floor(log2(X ) ) + + bin...
ba066a5c63133615512a8e30e559dd5ec0970ed107c3f6b2bc1cf584049055a9
libre-man/cl-transmission
constants.lisp
(in-package :cl-user) (uiop:define-package cl-transmission.constants (:use #:cl #:cl-transmission.util) (:import-from :alexandria #:define-constant)) (in-package :cl-transmission.constants) (named-readtables:in-readtable rutils.readtable:rutils-readtable) (define-constant-export +default-optimi...
null
https://raw.githubusercontent.com/libre-man/cl-transmission/4bbf1d2761bfa5dfa79b7bc12c3238089b994d95/src/constants.lisp
lisp
(in-package :cl-user) (uiop:define-package cl-transmission.constants (:use #:cl #:cl-transmission.util) (:import-from :alexandria #:define-constant)) (in-package :cl-transmission.constants) (named-readtables:in-readtable rutils.readtable:rutils-readtable) (define-constant-export +default-optimi...
5426241c4d854dd96f98a103a0a1fde2953e5b023e1c2c465f2bdd5ec06c5c79
alphaHeavy/protobuf
Orphans.hs
-- | -- Messages containing 'Optional' 'Enumeration' fields fail to encode. -- This module contains orphan instances required to make these functional. -- -- For more information reference the associated ticket: -- <> module Data.ProtocolBuffers.Orphans () where import Data.Orphans ()
null
https://raw.githubusercontent.com/alphaHeavy/protobuf/46cda829cf1e7b6bba2ff450e267fb1a9ace4fb3/src/Data/ProtocolBuffers/Orphans.hs
haskell
| Messages containing 'Optional' 'Enumeration' fields fail to encode. This module contains orphan instances required to make these functional. For more information reference the associated ticket: <>
module Data.ProtocolBuffers.Orphans () where import Data.Orphans ()
5110254acd8a1e0e24055588494d05489ae5fa13b3d70a7db6630cebcf0282a6
racket/drracket
hangman.rkt
#lang racket/base (require "private/drracket-test-util.rkt" racket/class racket/gui/base) (fire-up-drracket-and-run-tests (λ () (define drs (wait-for-drracket-frame)) (define defs (send drs get-definitions-text)) (define rep (send drs get-interactions-text)) (set-language-level! (list #...
null
https://raw.githubusercontent.com/racket/drracket/2d7c2cded99e630a69f05fb135d1bf7543096a23/drracket-test/tests/drracket/hangman.rkt
racket
#lang racket/base (require "private/drracket-test-util.rkt" racket/class racket/gui/base) (fire-up-drracket-and-run-tests (λ () (define drs (wait-for-drracket-frame)) (define defs (send drs get-definitions-text)) (define rep (send drs get-interactions-text)) (set-language-level! (list #...
b2132fc6afbd9aaf88d5f7ff01c582052e18c433897881af14e2d889073ac9dc
korya/efuns
wmaker.mli
(***********************************************************************) (* *) (* GwML *) (* *) Fabrice Le Fessa...
null
https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/gwml/wmaker.mli
ocaml
********************************************************************* GwML ...
Fabrice Le Fessant , projet Para / SOR , INRIA Rocquencourt Copyright 1999 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . val wmaker_file : string Options.option_record val wmaker_path : string list Options.option_record ...
28b5d5ef2784f296f756964e382355ea46c6d4e878ef03c423c17afab85bc218
Eduap-com/WordMat
generr.lisp
(in-package :maxima) (defvar errset nil) ;; Here is the desired behavior of errset: ;; ;; (let ((errset t)) (errset (+ 2 'a))) ;==> signals error ;; (let ((errset nil)) (errset (+ 2 'a))) ;==> nil ;; (let ((errset nil)) (errset (values))) ;==> (nil) ( let ( ( errset nil ) ) ( errset ( + 2 3 ) ) ) ; ...
null
https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/src/generr.lisp
lisp
Here is the desired behavior of errset: (let ((errset t)) (errset (+ 2 'a))) ;==> signals error (let ((errset nil)) (errset (+ 2 'a))) ;==> nil (let ((errset nil)) (errset (values))) ;==> (nil) = = > ( 5 ) = = > ( 1 1/3 ) Notice that there is one ambiguous case: a singleton list containing only nil...
(in-package :maxima) (defvar errset nil) (defmacro errset (&rest l) `(handler-case (or (multiple-value-list ,(car l)) (list nil)) (error (e) (when errset (error e)))))
cf2754d44c2ba9cad4224f213ec466018c870b4387ef7976a2db00f4755346ca
mirage/conan
integer.ml
type 'a t = Byte : char t | Short : int t | Int32 : int32 t | Int64 : int64 t let serialize : type a. Format.formatter -> a t -> unit = fun ppf -> function | Byte -> Format.pp_print_string ppf "Conan.Integer.byte" | Short -> Format.pp_print_string ppf "Conan.Integer.short" | Int32 -> Format.pp_print_string ppf ...
null
https://raw.githubusercontent.com/mirage/conan/fb144c7785ff0aa4ec6d8c87e58ca2a0c2d328db/src/integer.ml
ocaml
type 'a t = Byte : char t | Short : int t | Int32 : int32 t | Int64 : int64 t let serialize : type a. Format.formatter -> a t -> unit = fun ppf -> function | Byte -> Format.pp_print_string ppf "Conan.Integer.byte" | Short -> Format.pp_print_string ppf "Conan.Integer.short" | Int32 -> Format.pp_print_string ppf ...
472eb13a12e7d14b0817579eb89703f29b045d1e8e5caad6ec5fd67947711be3
scicloj/notespace
frontend.clj
(ns scicloj.notespace.v4.systems.frontend (:require [integrant.core :as integrant] [scicloj.notespace.v4.frontend.engine :as v4.frontend.engine])) (def default-config {:server/frontend {:port 1903}}) (defmethod integrant/init-key :server/frontend [_ options] (v4.frontend.engine/start! options)) (de...
null
https://raw.githubusercontent.com/scicloj/notespace/14ea417331710a72520ad9046d32a8cc21648538/src/scicloj/notespace/v4/systems/frontend.clj
clojure
(ns scicloj.notespace.v4.systems.frontend (:require [integrant.core :as integrant] [scicloj.notespace.v4.frontend.engine :as v4.frontend.engine])) (def default-config {:server/frontend {:port 1903}}) (defmethod integrant/init-key :server/frontend [_ options] (v4.frontend.engine/start! options)) (de...
dca664d2566952e531e38ed4d98b4d368c91c15c567a0b18640f8937756f9a79
zalora/aws-ec2
StopInstances.hs
# LANGUAGE TypeFamilies , MultiParamTypeClasses , FlexibleInstances , OverloadedStrings , RecordWildCards , TemplateHaskell , LambdaCase # , MultiParamTypeClasses , FlexibleInstances , OverloadedS...
null
https://raw.githubusercontent.com/zalora/aws-ec2/60b7ad4464edf3c69da8c2f023db4ba2fa7ffc48/src/Aws/Ec2/Commands/StopInstances.hs
haskell
-query-StopInstances.html
# LANGUAGE TypeFamilies , MultiParamTypeClasses , FlexibleInstances , OverloadedStrings , RecordWildCards , TemplateHaskell , LambdaCase # , MultiParamTypeClasses , FlexibleInstances , OverloadedS...
e097dde8ff08f437702bd894b957ea0750d9d1a240ac06eac4a520281a7c975c
openweb-nl/open-bank-mark
project.clj
(defproject nl.openweb/command-handler "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :plugins [[lein-modules "0.3.11"]] :dependencies [[nl.openweb/topology :version] [org.clojure/clojure :version] ...
null
https://raw.githubusercontent.com/openweb-nl/open-bank-mark/786c940dafb39c36fdbcae736fe893af9c00ef17/command-handler/project.clj
clojure
(defproject nl.openweb/command-handler "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :plugins [[lein-modules "0.3.11"]] :dependencies [[nl.openweb/topology :version] [org.clojure/clojure :version] ...
e814438ede7682268282e4ba567997fcaa92e36be3434053f34eb5c9e432dd5c
cobaweel/piffle
C.hs
Piffle , Copyright ( C ) 2007 , . This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . This program i...
null
https://raw.githubusercontent.com/cobaweel/piffle/7c4cfb5301c5c55c229098d3938d3b023d69cde4/src/C.hs
haskell
C ABSTRACT SYNTAX ------------------------------------------------- NAMES OF THINGS --------------------------------------------------- AST --------------------------------------------------------------- TYPES AND DECLARATIONS -------------------------------------------- unsigned char (signed) char unsigned shor...
Piffle , Copyright ( C ) 2007 , . This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . This program i...
3ec86aaa852f8999f96fff7a154b7a1d34dcc789ca1cd52e3c98d71074f5f6c8
ahrefs/atd
oj_emit.mli
(** OCaml-Json code generator. *) val make_ocaml_files :opens:string list -> with_typedefs:bool -> with_create:bool -> with_fundefs:bool -> all_rec:bool -> std:bool -> unknown_field_handler:string option -> pos_fname:string option -> pos_lnum:int option -> type_aliases:string option -> force_defa...
null
https://raw.githubusercontent.com/ahrefs/atd/9a3cb984a695563c04b41cdd7a1ce9454eb40e1c/atdgen/src/oj_emit.mli
ocaml
* OCaml-Json code generator.
val make_ocaml_files :opens:string list -> with_typedefs:bool -> with_create:bool -> with_fundefs:bool -> all_rec:bool -> std:bool -> unknown_field_handler:string option -> pos_fname:string option -> pos_lnum:int option -> type_aliases:string option -> force_defaults:bool -> preprocess_input:st...
e12c1b321e0abb0e91e75fc2ffffcdc7e41f6626e01ad856a33fe716da4686e6
qmuli/qmuli
ApiGw.hs
# LANGUAGE DeriveGeneric # {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} module Qi.Util.ApiGw where import Control . Lens hiding ( view , ( .= ) ) import Data . Aeson import Data . Aeson . Types ( typeMismatch ) import qua...
null
https://raw.githubusercontent.com/qmuli/qmuli/6ca147f94642b81ab3978d502397efb60a50215b/library/Qi/Util/ApiGw.hs
haskell
# LANGUAGE NamedFieldPuns # # LANGUAGE OverloadedStrings #
# LANGUAGE DeriveGeneric # module Qi.Util.ApiGw where import Control . Lens hiding ( view , ( .= ) ) import Data . Aeson import Data . Aeson . Types ( typeMismatch ) import qualified Data . ByteString . as BS import qualified Data . ByteStrin...
77473a068838dd87cd8668b56b8b93394530cff9c3cac25a7d7df3553cb6fd90
ghcjs/ghcjs
trace001.hs
import System.IO import Debug.Trace main = do hPutStr stderr (trace (trace (trace (trace (trace (trace (trace "one" "fish") "two") "fish") "red") "fish") "blue") "fish") hPutStr stdout (trace (trace (trace (trace (trace (trace (trace "ONE" "FISH") "TWO") "FISH") "RED") "FISH") "BLUE") "FISH") return (...
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/pkg/base/trace001.hs
haskell
import System.IO import Debug.Trace main = do hPutStr stderr (trace (trace (trace (trace (trace (trace (trace "one" "fish") "two") "fish") "red") "fish") "blue") "fish") hPutStr stdout (trace (trace (trace (trace (trace (trace (trace "ONE" "FISH") "TWO") "FISH") "RED") "FISH") "BLUE") "FISH") return (...
8203bd33f7bbbb84017b9313afa9cacba55e8f1578bde3c57a7adfb871271f9b
rlepigre/ocaml-earley
gamma3.ml
open Earley_core.Earley (*open Common*) let parser gamma3 = _:'a' | gamma3 gamma3 -> () | gamma3 gamma3 gamma3 -> () let n = int_of_string Sys.argv.(1) let input = String.make n 'a' let _ = Earley_core.Earley.debug_lvl :=0; Earley_core.Earley.warn_merge := false let _ = parse_string gamma3 no_blank input
null
https://raw.githubusercontent.com/rlepigre/ocaml-earley/66d7acb2b22edae0c2f7d64ef2a50fa70d1ed112/tests/calc_prio/gamma3.ml
ocaml
open Common
open Earley_core.Earley let parser gamma3 = _:'a' | gamma3 gamma3 -> () | gamma3 gamma3 gamma3 -> () let n = int_of_string Sys.argv.(1) let input = String.make n 'a' let _ = Earley_core.Earley.debug_lvl :=0; Earley_core.Earley.warn_merge := false let _ = parse_string gamma3 no_blank input
f85a22e708cf916af889db151fcffb8049d94bb9a7b23f732fc1336ad3806ac3
enragedginger/tensorflow-clj
project.clj
(defproject tensorflow-clj "0.1" :description "Gateway from Clojure to Tensorflow" :url "-clj" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [net.mikera/core.matrix "0.58.0"] [org.tensorflow/tensorflow "1.1.0...
null
https://raw.githubusercontent.com/enragedginger/tensorflow-clj/11d7478bd43a9cbe838fb79fde2f2cb1f1004da3/project.clj
clojure
(defproject tensorflow-clj "0.1" :description "Gateway from Clojure to Tensorflow" :url "-clj" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [net.mikera/core.matrix "0.58.0"] [org.tensorflow/tensorflow "1.1.0...
f4c778d00d0cecbb56614c4678bc51892e505d97c024e3772d06aa09e7e7b481
pedestal/pedestal
project.clj
Copyright 2013 Relevance , Inc. Copyright 2014 - 19 Cognitect , Inc. ; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( ) ; which can be found in the file epl-v10.html at the root of this distribution. ; ; By using this software in any fashion, you are agreeing ...
null
https://raw.githubusercontent.com/pedestal/pedestal/6bb647ee1f94151f55c5794c7ed7c9429f5008a2/service-template/project.clj
clojure
The use and distribution terms for this software are covered by the which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.
Copyright 2013 Relevance , Inc. Copyright 2014 - 19 Cognitect , Inc. Eclipse Public License 1.0 ( ) (defproject pedestal-service/lein-template "0.5.11-beta-1" :description "A Pedestal Service template." :url "" :scm "" :license {:name "Eclipse Public License" :url "-v10.html"} :min-lein...
fb3181376953aeda3c21172a99cb6ca2f982d613c2950ecd5f0e51ebd836642e
haskell-perf/sets
Space.hs
{-# LANGUAGE BangPatterns #-} -- | Example uses of comparing set-like data structures. module Main where import Control.DeepSeq import qualified Data.BloomFilter.Easy import qualified Data.DAWG.Packed import qualified Data.HashSet import qualified Data.IntSet import qualified Data.Set import Syst...
null
https://raw.githubusercontent.com/haskell-perf/sets/272b521402fde7c5daa0d01b5058e73f6e52fbaf/Space.hs
haskell
# LANGUAGE BangPatterns # | Example uses of comparing set-like data structures. | Weigh sets.
module Main where import Control.DeepSeq import qualified Data.BloomFilter.Easy import qualified Data.DAWG.Packed import qualified Data.HashSet import qualified Data.IntSet import qualified Data.Set import System.Random import Weigh main :: IO () main = mainWith (do inserts ...
1d0ff805eec5d5e0bb44bdf67fa151897e38726a0716020e5074ae12e55e1f0c
helium/erlang-tc
erlang_tc.erl
%% NOTE: This module is NOT to be used directly! -module(erlang_tc). -export([load/0]). -on_load(load/0). -export([ Ciphertext API ciphertext_verify/1, ciphertext_cmp/2, ciphertext_serialize/1, ciphertext_deserialize/1, PublicKey API pk_reveal/1, pk_verify/3, pk_encrypt/2, pk_se...
null
https://raw.githubusercontent.com/helium/erlang-tc/b3ef1d5541586f5c85b6d231345a921d57be32a3/src/erlang_tc.erl
erlang
NOTE: This module is NOT to be used directly! Signature API PublicKeySet API SecretKeySet API SecretKeyShare API PublicKeyShare API G1Affine API Polynomial API Commitment API Bivariate Polynomial API ================================================================== =========================================...
-module(erlang_tc). -export([load/0]). -on_load(load/0). -export([ Ciphertext API ciphertext_verify/1, ciphertext_cmp/2, ciphertext_serialize/1, ciphertext_deserialize/1, PublicKey API pk_reveal/1, pk_verify/3, pk_encrypt/2, pk_serialize/1, pk_deserialize/1, pk_cmp/2, ...
1917348131a87d59af267c374c49b79a43dbf52240994c6df4f5a790fb032f08
inaka/sumo_db_pgsql
conditional_logic_SUITE.erl
-module(conditional_logic_SUITE). %% CT -export([ all/0, init_per_suite/1, end_per_suite/1 ]). %% Test Cases -include_lib("mixer/include/mixer.hrl"). -mixin([ {sumo_conditionals_test_helper, [ dates/1, backward_compatibility/1, or_conditional/1, and_conditional/1, not_null_conditional/1, ...
null
https://raw.githubusercontent.com/inaka/sumo_db_pgsql/1c4bfea4c61946992518408ce075bdfc2642c541/test/conditional_logic_SUITE.erl
erlang
CT Test Cases ============================================================================= Common Test =============================================================================
-module(conditional_logic_SUITE). -export([ all/0, init_per_suite/1, end_per_suite/1 ]). -include_lib("mixer/include/mixer.hrl"). -mixin([ {sumo_conditionals_test_helper, [ dates/1, backward_compatibility/1, or_conditional/1, and_conditional/1, not_null_conditional/1, null_conditional/...
10919680b83c14d73acbe2362dd37f510f13760b371ce7dec30d63c05fd7a569
dhess/hpio
IO.hs
| Module : System . GPIO.Linux . . IO Description : Linux @sysfs@ GPIO operations in IO Copyright : ( c ) 2019 , License : : < > Stability : experimental Portability : non - portable The actual Linux @sysfs@ implementation . This implementation will only function properly on...
null
https://raw.githubusercontent.com/dhess/hpio/27004ef379db5d35e240222d6ba4cf91da9ec14d/src/System/GPIO/Linux/Sysfs/IO.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE PackageImports # * SysfsIOT transformer filesystem and will fail in any other environment. == Interactions with threads block on C I/O operations. (Specifically, 'pollFile' will block in @-threaded@ option, so that threads performing these blocking Note that the C FFI ...
| Module : System . GPIO.Linux . . IO Description : Linux @sysfs@ GPIO operations in IO Copyright : ( c ) 2019 , License : : < > Stability : experimental Portability : non - portable The actual Linux @sysfs@ implementation . This implementation will only function properly on...
b6ef52309219142f2f02a3bc0e782d8a1060961ce88a22888a96e4f10303bdf6
ulrikstrid/ocaml-jose
Jwe.ml
open Utils (** {{: } Link to RFC } *) type t = { header : Header.t; cek : string; iv : string; payload : string; aad : string option; } module RSA_OAEP = Mirage_crypto_pk.Rsa.OAEP (Mirage_crypto.Hash.SHA1) Steps to create a JWE * Generate a random Content Encryption Key ( CEK ) * Encrypt the CEK wi...
null
https://raw.githubusercontent.com/ulrikstrid/ocaml-jose/d35c03903274b90fc28020693e36d4ce5f1200c3/jose/Jwe.ml
ocaml
* {{: } Link to RFC } Move to Jwa?
open Utils type t = { header : Header.t; cek : string; iv : string; payload : string; aad : string option; } module RSA_OAEP = Mirage_crypto_pk.Rsa.OAEP (Mirage_crypto.Hash.SHA1) Steps to create a JWE * Generate a random Content Encryption Key ( CEK ) * Encrypt the CEK with the recipient 's public k...
69ecce32921620db8018a1ab7c51c3673371cd17d96fe348ab88454e834ef5f6
pomanu/waxeye
json.rkt
(Object "" fail "{}" (Object) "{ 1 }" fail "{ \"s\" }" fail "{ \"m\" : 1 }" (Object (Member (String #\m) (Value (Number #\1)))) "{ \"\":{}, \"\":[]}" (Object (Member (String) (Value (Object))) (Member (String) (Value (Array)))) ) (Array "" fail "[]" (Array) "[1,2]" (Array (Value (Number #\...
null
https://raw.githubusercontent.com/pomanu/waxeye/8c2fdc7d85d7c4f87adfc8f482a311b55bfda1e2/test/grammars/json.rkt
racket
(Object "" fail "{}" (Object) "{ 1 }" fail "{ \"s\" }" fail "{ \"m\" : 1 }" (Object (Member (String #\m) (Value (Number #\1)))) "{ \"\":{}, \"\":[]}" (Object (Member (String) (Value (Object))) (Member (String) (Value (Array)))) ) (Array "" fail "[]" (Array) "[1,2]" (Array (Value (Number #\...
52b61fa6101a188148113f15ba0805986849bfbb8e54399d90f1667d38b3d26e
ghc/testsuite
T4418.hs
# LANGUAGE MultiParamTypeClasses , FunctionalDependencies # module Ambiguity where class C1 a b | b -> a class (C1 a b) => C2 a b where foo :: b -> b data A = A data B = B instance C1 A B instance C2 A B where foo = error "urk" this is accepted by both 6.12.3 and 7 runFoo1 :: C2 a b => b -> b runFoo1 = foo...
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/typecheck/should_compile/T4418.hs
haskell
# LANGUAGE MultiParamTypeClasses , FunctionalDependencies # module Ambiguity where class C1 a b | b -> a class (C1 a b) => C2 a b where foo :: b -> b data A = A data B = B instance C1 A B instance C2 A B where foo = error "urk" this is accepted by both 6.12.3 and 7 runFoo1 :: C2 a b => b -> b runFoo1 = foo...
1c93aff283ddc170d8514af0d5ccd64d4a025c42c0dc1ac52fdd014a4534459b
facebook/infer
CStructUtils.ml
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/facebook/infer/a216a42386ab2b5ae3df971a1bc143d7f6c14738/infer/src/clang/CStructUtils.ml
ocaml
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
2b551c37625fd4626e3f8419850577dc1695ca24456be83f1bac0bb36c7aae6e
robert-strandh/SICL
packagep-defgeneric.lisp
(cl:in-package #:sicl-package) (defgeneric packagep (object) (:method (object) (declare (ignore object)) nil) (:method ((object package)) (declare (ignorable object)) t))
null
https://raw.githubusercontent.com/robert-strandh/SICL/65d7009247b856b2c0f3d9bb41ca7febd3cd641b/Code/Package/packagep-defgeneric.lisp
lisp
(cl:in-package #:sicl-package) (defgeneric packagep (object) (:method (object) (declare (ignore object)) nil) (:method ((object package)) (declare (ignorable object)) t))
3b7a2cab8b3508a51944b815f5e226f5bea24d15d3a3354212b8798cf76b9c4e
clojerl/clojerl
clj_edn.erl
@doc ( Extensible Data Notation ) parser . -module(clj_edn). -include("clojerl.hrl"). -include("clojerl_int.hrl"). -export([read/2, read_string/2]). -type location() :: #{ line => non_neg_integer() , column => non_neg_integer() , file => binary() | ?NIL ...
null
https://raw.githubusercontent.com/clojerl/clojerl/aa35847ca64e1c66224867ca4c31ca6de95bc898/src/erl/clj_edn.erl
erlang
When 'eofthrow' then throw, otherwise return value. Source file being read. IReader that should be used when there are no more characters to be read from the binary. The options map supplied to the reader. List of forms read (in reverse order). Current line and column location. Current bindings. Used when read...
@doc ( Extensible Data Notation ) parser . -module(clj_edn). -include("clojerl.hrl"). -include("clojerl_int.hrl"). -export([read/2, read_string/2]). -type location() :: #{ line => non_neg_integer() , column => non_neg_integer() , file => binary() | ?NIL ...
c568ad3ca4ebb1231def608e02aa91fdf9de9a92478ee7cdf2c00e4b1af5863d
quil-lang/quilc
patch-labels.lisp
;;;; patch-labels.lisp ;;;; Author : (in-package #:cl-quil.frontend) (define-transform patch-labels (patch-labels) "This transform resolves labels. Label positions are calculated, and corresponding JUMP instruction labels are patched with their absolute position in a program. This changes the AST! JUMP-LA...
null
https://raw.githubusercontent.com/quil-lang/quilc/a53b292f9d4c55f071484a921e93b038db62fe12/src/analysis/patch-labels.lisp
lisp
patch-labels.lisp Delete jump targets. Patch label references.
Author : (in-package #:cl-quil.frontend) (define-transform patch-labels (patch-labels) "This transform resolves labels. Label positions are calculated, and corresponding JUMP instruction labels are patched with their absolute position in a program. This changes the AST! JUMP-LABEL : JUMP -> LABEL becomes...
16d5a6540e15646474b0cf327f19b42c53216e499287842072ed28199bfff29c
geostarling/guix-packages
mozilla.scm
SPDX - License - Identifier : GPL-3.0 - or - later Copyright © 2013 , 2015 < > Copyright © 2013 , 2014 , 2015 , 2016 , 2017 , 2018 , 2019 < > Copyright © 2014 , 2015 , 2016 , 2017 , 2018 , 2019 , 2020 , 2021 < > Copyright © 2015 < > Copyright © 2016 , 2017 , 2018 , 2019 < > Copyright © 201...
null
https://raw.githubusercontent.com/geostarling/guix-packages/a6ff97f2ad1332d6e6e580303bffa3f8e8bb583f/nongnu/packages/mozilla.scm
scheme
Define the versions of rust needed to build firefox, trying to match upstream. See the file taskcluster/ci/toolchain/rust.yml at under the particular firefox release, like mozilla-esr102. rust-cbindgen-0.23/0.24 dependencies Bug with firefox build (v101-102) with cbindgen-0.24, see #c5 for possible patch (unt...
SPDX - License - Identifier : GPL-3.0 - or - later Copyright © 2013 , 2015 < > Copyright © 2013 , 2014 , 2015 , 2016 , 2017 , 2018 , 2019 < > Copyright © 2014 , 2015 , 2016 , 2017 , 2018 , 2019 , 2020 , 2021 < > Copyright © 2015 < > Copyright © 2016 , 2017 , 2018 , 2019 < > Copyright © 201...
b764f7728e66cf29d193b0ffdf1b59f83b9ad4de586bc31bf6cd9f50844d82ef
anwarmamat/cmsc330spring18-public
public.ml
open OUnit2 open Disc let test_add_x ctxt = assert_equal [] (add_x 2 []); assert_equal [3; 4; 5] (add_x 2 [1; 2; 3]) ;; let test_concat_strings ctxt = assert_equal "" (concat_strings []); assert_equal "bulbasaursquirtlecharmander" (concat_strings ["bulbasaur"; "squirtle"; "charmander"]) ;; let test_firsts ct...
null
https://raw.githubusercontent.com/anwarmamat/cmsc330spring18-public/b401e5157c05c7f47ee2d0ec1b21c7b142316031/discussions/disc4/public.ml
ocaml
open OUnit2 open Disc let test_add_x ctxt = assert_equal [] (add_x 2 []); assert_equal [3; 4; 5] (add_x 2 [1; 2; 3]) ;; let test_concat_strings ctxt = assert_equal "" (concat_strings []); assert_equal "bulbasaursquirtlecharmander" (concat_strings ["bulbasaur"; "squirtle"; "charmander"]) ;; let test_firsts ct...
4801549363d6d3690e1c9fd8f96a09587e5e80cd6976753026ff0295ce93646e
cblp/hmm
Animation.hs
# LANGUAGE RecordWildCards # module Game.Animation ( Animation(..) , picture ) where import Graphics.Gloss (Picture) -- | Contains animation-related info. data Animation = Animation { pics :: [Picture] , start :: Float , delay :: Float } picture :: Animation -> Float -> Maybe Picture picture Animation...
null
https://raw.githubusercontent.com/cblp/hmm/4bf2ea541fa640188eb11a6fa9d623da1a4742f6/src/Game/Animation.hs
haskell
| Contains animation-related info.
# LANGUAGE RecordWildCards # module Game.Animation ( Animation(..) , picture ) where import Graphics.Gloss (Picture) data Animation = Animation { pics :: [Picture] , start :: Float , delay :: Float } picture :: Animation -> Float -> Maybe Picture picture Animation{..} time | start > time = Noth...
d39061ae813278cc907ef3f233b548daeb1d9c6b9ce724683f62060586f250d2
iAmDorra/GameOfLife
cell-test.scm
(include "assert.scm") (include "../game-of-life/cell.scm") (test-case "(cell?)" (assert-false (cell? 1)) (assert-false (cell? (cons 1 2))) (assert-true (cell? (make-cell #t)))) (test-case "(cell-is-alive)" (assert-true (cell-is-alive (make-cell #t))) (assert-false (cell-is-alive (make-cell #f))))...
null
https://raw.githubusercontent.com/iAmDorra/GameOfLife/f9d43b880ea98a6d8c35adbcc6156d93f85d04cf/scheme/test/cell-test.scm
scheme
(include "assert.scm") (include "../game-of-life/cell.scm") (test-case "(cell?)" (assert-false (cell? 1)) (assert-false (cell? (cons 1 2))) (assert-true (cell? (make-cell #t)))) (test-case "(cell-is-alive)" (assert-true (cell-is-alive (make-cell #t))) (assert-false (cell-is-alive (make-cell #f))))...
3edf7d9d55a5ae4506bb8687de49625ba68f036a9f895cbc1cdb620eec6b4c1e
mariorz/folio-deceso
core_test.clj
(ns folio-deceso.core-test (:require [clojure.test :refer :all] [folio-deceso.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
null
https://raw.githubusercontent.com/mariorz/folio-deceso/4fb59e0bdecfb0a39f63beed11d71dbb6adf403e/test/folio_deceso/core_test.clj
clojure
(ns folio-deceso.core-test (:require [clojure.test :refer :all] [folio-deceso.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
df2bb2c8615074c005f5a778ca69e23be55f226211e1251296bb644c7fc2b164
BranchTaken/Hemlock
ordmapTest.ml
open! Basis.Rudiments open! Basis open Ordmap let of_klist ks = List.fold ks ~init:(empty (module Uns)) ~f:(fun ordmap k -> insert_hlt ~k ~v:(k * 100L) ordmap ) let of_karray ks = Array.fold ks ~init:(empty (module Uns)) ~f:(fun ordmap k -> insert_hlt ~k ~v:(k * 100L) ordmap ) let veq v0 v1 = Cmp.i...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/f3604ceda4f75cf18b6ee2b1c2f3c5759ad495a5/bootstrap/test/basis/ordmap/ordmapTest.ml
ocaml
open! Basis.Rudiments open! Basis open Ordmap let of_klist ks = List.fold ks ~init:(empty (module Uns)) ~f:(fun ordmap k -> insert_hlt ~k ~v:(k * 100L) ordmap ) let of_karray ks = Array.fold ks ~init:(empty (module Uns)) ~f:(fun ordmap k -> insert_hlt ~k ~v:(k * 100L) ordmap ) let veq v0 v1 = Cmp.i...
43438f2bd9dc80458bc1efb3b47ac42fdcf29c4f717887118c2d0c8e8369d179
fpco/ide-backend
Map.hs
# LANGUAGE TemplateHaskell , ScopedTypeVariables # -- | Wrapper around Data.Map that guarantees elements are evaluated when the Map is . containers-0.5 provides this out of the box , but alas ghc 7.4 -- is built against containers-0.4. module IdeSession.Strict.Map ( toList , fromList , map , mapWithKey , ...
null
https://raw.githubusercontent.com/fpco/ide-backend/860636f2d0e872e9481569236bce690637e0016e/ide-backend-common/IdeSession/Strict/Map.hs
haskell
| Wrapper around Data.Map that guarantees elements are evaluated when is built against containers-0.4. Maps are already strict in keys | Left biased union We use alter because it gives us something to anchor a seq to
# LANGUAGE TemplateHaskell , ScopedTypeVariables # the Map is . containers-0.5 provides this out of the box , but alas ghc 7.4 module IdeSession.Strict.Map ( toList , fromList , map , mapWithKey , mapKeys , empty , insert , union , unions , filterWithKey , lookup , findWithDefault , keysSe...
896ba694f560a79f2c8f3ca0918374454b080d19371fdfeba35227679901aeae
simplegeo/erlang
archive_script_main2.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/simplegeo/erlang/15eda8de27ba73d176c7eeb3a70a64167f50e2c4/lib/stdlib/test/escript_SUITE_data/archive_script/archive_script_main2.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 2008 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(archive_script_main2). -behaviour(e...
0aece9ae8dfb4c29e37c915989bbe018c6c167ffc37e9fdd168cc92b0617c448
bytekid/mkbtt
waldmeisterGoal.ml
Copyright 2010 * GNU Lesser General Public License * * This file is part of MKBtt . * * is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either version 3 of the License , or (...
null
https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/mkbtt/waldmeisterGoal.ml
ocaml
** SUBMODULES ********************************************************* ** OPENS ************************************************************** ** FUNCTIONS ********************************************************** ------------------------------------------------------------------ CREATE goal ...
Copyright 2010 * GNU Lesser General Public License * * This file is part of MKBtt . * * is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either version 3 of the License , or (...
695add65821a08572e538069cbda51cb5ff3148d191e91f00ee30050d050beca
gusbicalho/haskell-todo
Hasher.hs
| Description : Defines the Hasher class This module defines an abstraction for taking and validating hashes of values . I guess this is n't really general enough to support many encryption libraries besides BCrypt , but it works as an exercise in abstraction . This is a Multi - Param Type Class . Basically...
null
https://raw.githubusercontent.com/gusbicalho/haskell-todo/f28b0d05ddb72764cf01d29fa978457ac455ac81/src/Common/Crypto/Hasher.hs
haskell
| Description : Defines the Hasher class This module defines an abstraction for taking and validating hashes of values . I guess this is n't really general enough to support many encryption libraries besides BCrypt , but it works as an exercise in abstraction . This is a Multi - Param Type Class . Basically...
238276a58d493f8a3facd416bd59bc01881e9c11db147b92cbece5c33886726d
tnelson/Forge
after-tests.rkt
#lang forge option run_sterling off -- Note: Forge changed its next-state temporal keyword -- from "after" to "next_state" in 2022. option problem_type temporal option verbose 0 sig Node { var edges : set Node } //State 0 : some edges, but it's not Node->Node //State 1 : no edges //State 2+ : edges is Node->...
null
https://raw.githubusercontent.com/tnelson/Forge/a7187ef110f46493c1d45011035b05646b9ccd22/forge/tests/forge/electrum/after-tests.rkt
racket
#lang forge option run_sterling off -- Note: Forge changed its next-state temporal keyword -- from "after" to "next_state" in 2022. option problem_type temporal option verbose 0 sig Node { var edges : set Node } //State 0 : some edges, but it's not Node->Node //State 1 : no edges //State 2+ : edges is Node->...
ea9918d9392223e2f4690c7ed448e38a9509df580f7856fd21442c129474d0e0
larandaA/hgraphs
Spec.hs
import Test.Hspec import qualified Data.PriorityQueue.MutableSpec as PQ import qualified Data.Queue.MutableSpec as Q import qualified Data.Graph.AbstractSpec as GA import qualified Data.Graph.Abstract.AccessorSpec as GAA import qualified Data.Graph.Abstract.Accessor.Algorithm.BfsSpec as AccessorBfs import qualified Dat...
null
https://raw.githubusercontent.com/larandaA/hgraphs/322b5cdfafbae851b4251c907e2c81b82cf02d4a/test/Spec.hs
haskell
import Test.Hspec import qualified Data.PriorityQueue.MutableSpec as PQ import qualified Data.Queue.MutableSpec as Q import qualified Data.Graph.AbstractSpec as GA import qualified Data.Graph.Abstract.AccessorSpec as GAA import qualified Data.Graph.Abstract.Accessor.Algorithm.BfsSpec as AccessorBfs import qualified Dat...
10bd13c92449671c3061ca8212a45e199ba097f0dbc536fe65dc045b80790c5e
penpot/penpot
main.clj
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. ;; ;; Copyright (c) KALEIDOS INC (ns app.main (:require [app.auth.ldap :as-alias ldap] [app.auth.oidc :as-alias oidc] [app.auth.oidc...
null
https://raw.githubusercontent.com/penpot/penpot/9b5a321a62f108e970c340e4e9882cc1d3926b22/backend/src/app/main.clj
clojure
Copyright (c) KALEIDOS INC NOTE: this dependency is only necessary for proper initialization ordering, props module requires the migrations to run before initialize. daily daily daily daily daily daily every 5m every 5m
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (ns app.main (:require [app.auth.ldap :as-alias ldap] [app.auth.oidc :as-alias oidc] [app.auth.oidc.providers :as-alias oidc.provide...
2f83f29275e9c7ea00895e4062e4bfacdb65fab227db1984eea4337376105428
cmoid/erlbutt
shs.erl
SPDX - License - Identifier : GPL-2.0 - only %% Copyright ( C ) 2018 Dionne Associates , LLC . -module(shs). -include("ssb.hrl"). -ifdef(TEST). -include_lib("eunit/include/eunit.hrl"). -endif. -import(utils, [concat/1, combine/2]). -export([open_box/3, create_long_pair/0, client...
null
https://raw.githubusercontent.com/cmoid/erlbutt/b6c97b95c30ec961b8d8fb4f0acda13cadc3ab83/apps/ssb/src/shs.erl
erlang
need to handle this above somewhere, for now let it crash! say hello to server receive response from server client authenticates check hellow from client server says hello receive client autheticate server accepts
SPDX - License - Identifier : GPL-2.0 - only Copyright ( C ) 2018 Dionne Associates , LLC . -module(shs). -include("ssb.hrl"). -ifdef(TEST). -include_lib("eunit/include/eunit.hrl"). -endif. -import(utils, [concat/1, combine/2]). -export([open_box/3, create_long_pair/0, client_sh...
83299e0896c4da0fd5a7f3d5f5e41c8526d483bbc8224222f087138bb0377fb6
monadfix/ormolu-live
Lib.hs
{-# LANGUAGE Safe #-} -- | -- Language.Haskell.TH.Lib contains lots of useful helper functions for generating and manipulating Template Haskell terms -- Note: this module mostly re-exports functions from -- Language.Haskell.TH.Lib.Internal, but if a change occurs to Template -- Haskell which requires breaking the A...
null
https://raw.githubusercontent.com/monadfix/ormolu-live/d8ae72ef168b98a8d179d642f70352c88b3ac226/ghc-lib-parser-8.10.1.20200412/libraries/template-haskell/Language/Haskell/TH/Lib.hs
haskell
# LANGUAGE Safe # | Language.Haskell.TH.Lib contains lots of useful helper functions for Note: this module mostly re-exports functions from Language.Haskell.TH.Lib.Internal, but if a change occurs to Template Haskell which requires breaking the API offered in this module, we opt to copy the old definition here, a...
generating and manipulating Template Haskell terms compatibility while still allowing GHC to make changes as it needs . module Language.Haskell.TH.Lib ( be " public " functions . The main module TH InfoQ, ExpQ, TExpQ, DecQ, DecsQ, ConQ, TypeQ, KindQ, TyVarBndrQ, TyLitQ, CxtQ, PredQ, DerivCla...
a3f5a519b947a5161755b4ec660cb8b5b998ef90a795e9abda99ea40b40217c4
wireless-net/erlang-nommu
sys_SUITE.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2013 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/stdlib/test/sys_SUITE.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 1996 - 2013 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(sys_SUITE). -export([all/0, suite/0...
c8acd3ed002eb58f76a38b8febd5a53bb0759017b4753e57c4a2baa2a240c1a6
danilkolikov/dfl
Error.hs
| Module : Compiler . Error Description : Compilation errors Copyright : ( c ) , 2019 License : MIT Definitions of errors , which can be encountered during compilation Module : Compiler.Error Description : Compilation errors Copyright : (c) Danil Kolikov, 2019 License ...
null
https://raw.githubusercontent.com/danilkolikov/dfl/698a8f32e23b381afe803fc0e353293a3bf644ba/src/Compiler/Error.hs
haskell
| Class for types which represent a compilation error
| Module : Compiler . Error Description : Compilation errors Copyright : ( c ) , 2019 License : MIT Definitions of errors , which can be encountered during compilation Module : Compiler.Error Description : Compilation errors Copyright : (c) Danil Kolikov, 2019 License ...
e70eaa72f5da5fe705ab5a90415968113c4a5e1a72f4bc4963a4c09a69a4b4a7
yokolet/clementine
browser.clj
Copyright ( c ) . All rights reserved . ;; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( -1.0.php ) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by ;; the t...
null
https://raw.githubusercontent.com/yokolet/clementine/b26c2318625e49606b5cc3b95cc9e1f5085ac309/ext/clojure-clojurescript-bef56a7/src/clj/cljs/repl/browser.clj
clojure
The use and distribution terms for this software are covered by the which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software. si...
Copyright ( c ) . All rights reserved . Eclipse Public License 1.0 ( -1.0.php ) (ns cljs.repl.browser (:refer-clojure :exclude [loaded-libs]) (:require [clojure.java.io :as io] [cljs.compiler :as comp] [cljs.closure :as cljsc] [cljs.repl :as repl] [cljs.repl.se...
0b88bb81a35b7bc501aed1cb5b5f2d339de14f98ee0097999205fd2669df2fb2
logicblocks/salutem
project.clj
(defproject io.logicblocks/salutem.check-fns.http-endpoint "0.1.8-RC4" :description "An HTTP endpoint check function for salutem." :parent-project {:path "../../parent/project.clj" :inherit [:scm :url :license ...
null
https://raw.githubusercontent.com/logicblocks/salutem/c648d9aeafc2cf38578b5e7e693994d2655fb5b8/check-fns/http-endpoint/project.clj
clojure
(defproject io.logicblocks/salutem.check-fns.http-endpoint "0.1.8-RC4" :description "An HTTP endpoint check function for salutem." :parent-project {:path "../../parent/project.clj" :inherit [:scm :url :license ...
afb25cb93b0f0480acb9e61aa0fbaddb07000ed8dc8b9bcdcc9382616665f31e
aeternity/aeternity
aeprimop_state.erl
%%% -*- erlang-indent-level:4; indent-tabs-mode: nil -*- %%%------------------------------------------------------------------- ( C ) 2019 , Aeternity Anstalt %%% @doc %%% %%% @end %%%------------------------------------------------------------------- -module(aeprimop_state). -export([ delete_x/3 , delete_a...
null
https://raw.githubusercontent.com/aeternity/aeternity/f92daa4bf386f84cbfde7d1b91ea8082b7af0b16/apps/aeprimop/src/aeprimop_state.erl
erlang
-*- erlang-indent-level:4; indent-tabs-mode: nil -*- ------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- =================================================================== API ============================================...
( C ) 2019 , Aeternity Anstalt -module(aeprimop_state). -export([ delete_x/3 , delete_account/2 , delete_contract/2 , final_trees/1 , find_account/2 , find_auth_call/3 , find_channel/2 , find_commitment/2 , find_name_auction/2 , find_contract_w...
6cf723ee70486405115be3bc0b4524182601f0c8291815ea1d191296359139c8
brendanhay/terrafomo
Random.hs
-- This module is auto-generated. # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - dodgy - exports # -- | Module : . Random Copyright : ( c ) 2017 - 2018 License : Mozilla Public License , v. 2.0 . Maintainer : < brendan.g.hay+ > -- Stability : auto-generated...
null
https://raw.githubusercontent.com/brendanhay/terrafomo/387a0e9341fb9cd5543ef8332dea126f50f1070e/provider/terrafomo-builtins/gen/Terrafomo/Random.hs
haskell
This module is auto-generated. | Stability : auto-generated * Provider * Types * Resources
# OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - dodgy - exports # Module : . Random Copyright : ( c ) 2017 - 2018 License : Mozilla Public License , v. 2.0 . Maintainer : < brendan.g.hay+ > Portability : non - portable ( GHC extensions ) module Terrafomo.Ran...
b830b9698ca9c8e148d1e81cdb7a43d465ff9522477c52b5a987cbb8858ce468
3b/cl-opengl
robot.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- robot.lisp --- Lisp version of robot.c ( Red Book examples ) ;;; ;;; Original C version contains the following copyright notice: Copyright ( c ) 1993 - 1997 , Silicon Graphics , Inc. ;;; ALL RIGHTS RESERVED ;;; This program shows how to composite modeling transfor...
null
https://raw.githubusercontent.com/3b/cl-opengl/e2d83e0977b7e7ac3f3d348d8ccc7ccd04e74d59/examples/redbook/robot.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- Original C version contains the following copyright notice: ALL RIGHTS RESERVED This program shows how to composite modeling transformations to draw translated and rotated hierarchical models. Interaction: pressing the s and e keys (shoulder and elbow) alters the rot...
robot.lisp --- Lisp version of robot.c ( Red Book examples ) Copyright ( c ) 1993 - 1997 , Silicon Graphics , Inc. (in-package #:cl-glut-examples) (defclass robot-window (glut:window) ((shoulder :accessor shoulder :initform 0) (elbow :accessor elbow :initform 0)) (:default-initargs :pos-x 100 :pos-y ...
b75d4926c7bd4392b4b45770d7cd23da51d4a98c4e9aaacc20b7b2283ad31820
kana/sicp
ex-4.29.scm
;;; Exercise 4.29. Exhibit a program that you would expect to run much more ;;; slowly without memoization than with memoization. (define (average numbers) (/ (sum numbers) (length numbers))) (define (sum numbers) (let go ((acc 0) (numbers numbers)) (if (null? numbers) acc (go (+ acc (...
null
https://raw.githubusercontent.com/kana/sicp/912bda4276995492ffc2ec971618316701e196f6/ex-4.29.scm
scheme
Exercise 4.29. Exhibit a program that you would expect to run much more slowly without memoization than with memoization. ... Delayed (list-numbers-slowly) is passed to AVERAGE, and AVERAGE uses the given numbers twice. So that LIST-NUMBERS-SLOWLY is called twice. Likewise, if a procedure uses a given argument...
(define (average numbers) (/ (sum numbers) (length numbers))) (define (sum numbers) (let go ((acc 0) (numbers numbers)) (if (null? numbers) acc (go (+ acc (car numbers)) (cdr numbers))))) (define (sleep seconds) ) (define (list-numbers-slowly) (sleep 5) '(869 12 72 112...
42ca8ce14581b22d9c4ca0c858b34fe69e59dc519ee76e99a7076f02d1145903
fulcro-legacy/fulcro-tutorial
I_Exercise_on_Putting_It_Together.cljs
(ns fulcro-tutorial.I-Exercise-on-Putting-It-Together (:require-macros [cljs.test :refer [is]]) (:require [fulcro.client.primitives :as prim :refer-macros [defsc]] [fulcro.client.dom :as dom] [solutions.putting-together.soln-ex-1 :as soln1] [solutions.putting-together.soln-ex-2 :...
null
https://raw.githubusercontent.com/fulcro-legacy/fulcro-tutorial/fe9bcd19908d4e24e723954e3804ceccfd07e989/src/tutorial/fulcro_tutorial/I_Exercise_on_Putting_It_Together.cljs
clojure
EX1-3: Code a todo list :fulcro {:started-callback (fn [app] )}
(ns fulcro-tutorial.I-Exercise-on-Putting-It-Together (:require-macros [cljs.test :refer [is]]) (:require [fulcro.client.primitives :as prim :refer-macros [defsc]] [fulcro.client.dom :as dom] [solutions.putting-together.soln-ex-1 :as soln1] [solutions.putting-together.soln-ex-2 :...
9b5f73ffa055dcd569f296f6d58819979e4feaf14818a43fba247122d041af69
nuprl/gradual-typing-performance
character-boy.rkt
#lang racket/base (provide character-boy) (require racket/draw racket/runtime-path) (define-runtime-path character-boy-img "character-boy.png") (define character-boy (read-bitmap character-boy-img))
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/pre-benchmark/ecoop/htdp-lib/2htdp/planetcute/character-boy.rkt
racket
#lang racket/base (provide character-boy) (require racket/draw racket/runtime-path) (define-runtime-path character-boy-img "character-boy.png") (define character-boy (read-bitmap character-boy-img))
bcf3d0e0ada156a1327d5d3dc6273beda727e9b0e0ae4b08eb3ccf3bac515d39
osstotalsoft/functional-guy
sequence.hs
main :: IO () main = do a <- getLine b <- getLine c <- getLine print [a,b,c] -- Or we could do this: list :: [Char] list = ['H','e','l','l','o'] iolist :: [IO ()] iolist = map putChar list main'' = sequence iolist main' :: IO () main' = do rs <- sequence [getLine, get...
null
https://raw.githubusercontent.com/osstotalsoft/functional-guy/c02a8b22026c261a9722551f3641228dc02619ba/Chapter4.%20IO%20in%20Haskell/Exercises/02.%20Programming%20with%20actions/sequence.hs
haskell
Or we could do this:
main :: IO () main = do a <- getLine b <- getLine c <- getLine print [a,b,c] list :: [Char] list = ['H','e','l','l','o'] iolist :: [IO ()] iolist = map putChar list main'' = sequence iolist main' :: IO () main' = do rs <- sequence [getLine, getLine, return "5"] pr...
070623a9178681e8e03aca8c339c74af537a92cb448904c4a42b270a3f30bd04
CUTE-Lang/miniCUTE
PrettyTest.hs
HLINT ignore " Redundant do " # LANGUAGE QuasiQuotes # -- | Copyright : ( c ) 2018 - present -- License: BSD 3-Clause module Minicute.PrettyTest ( spec_prettyPrint ) where import Test.Hspec.Megaparsec import Test.Tasty.Hspec import Control.Monad import Data.Either import Minicute.Utils.Common.TH import Tex...
null
https://raw.githubusercontent.com/CUTE-Lang/miniCUTE/b6c8a48b10e2af0786a50175d57b5339be7be2de/main-packages/minicute-syntax/test/Minicute/PrettyTest.hs
haskell
| License: BSD 3-Clause
HLINT ignore " Redundant do " # LANGUAGE QuasiQuotes # Copyright : ( c ) 2018 - present module Minicute.PrettyTest ( spec_prettyPrint ) where import Test.Hspec.Megaparsec import Test.Tasty.Hspec import Control.Monad import Data.Either import Minicute.Utils.Common.TH import Text.Megaparsec import qualified...
c66d90e6ceb1ff52dc639d5c95d8a1a9e315a3f8607d9e584498d085feb15501
dylex/haskell-nfs
Request.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # module Network.WebDAV.NFS.Request ( requestHeader , requestDepth , requestXML ) where import Control.Exception (catches, Handler(..)) import qualified Data.ByteString as BS import qualified Data.ByteString.Char8 as BSC import qualifi...
null
https://raw.githubusercontent.com/dylex/haskell-nfs/07d213e09f7bf9e6fe3200aca3de494c3dcd54f7/webdav/Network/WebDAV/NFS/Request.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE ScopedTypeVariables # module Network.WebDAV.NFS.Request ( requestHeader , requestDepth , requestXML ) where import Control.Exception (catches, Handler(..)) import qualified Data.ByteString as BS import qualified Data.ByteString.Char8 as BSC import qualified Data.Conduit as C import ...
0fccdd170ee14d826e41cb84014433a4401373b340d22e30f86b2cf97c0943bb
manuel-serrano/bigloo
type.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / comptime / Type / type.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/comptime/Type/type.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * The type class definition */ *===========================...
* serrano / prgm / project / bigloo / comptime / Type / type.scm * / * Author : * / * Creation : Thu May 30 16:38:54 1996 * / * Last change : We d Nov 16 08:17:05 2011 ( serrano ) * / * Cop...
d9bff7f4350747734a3b7d378d301c1571574a374980a9db99db64bb3494882f
haskell-opengl/OpenGLRaw
VertexType2101010RevCompatibility.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.ARB.VertexType2101010RevCompatibility Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/ARB/VertexType2101010RevCompatibility.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.GL.ARB.VertexType2101010RevCompatibility License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support ...
# LANGUAGE PatternSynonyms # Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.ARB.VertexType2101010RevCompatibility ( glGetARBVertexType2101010Rev, gl_ARB_vertex_type_2_10_10_10_rev, pattern GL_INT_2_10_10_10_REV, pattern GL_UNSIGNED_INT_2_10_10_10_REV, glColorP3ui, glColorP3uiv...
913a1cd05a4ccdf35636dd02d27cdd94f810e48d0dcdad40d1604cc3d7e9a484
tonsky/compact-uuids
bench.clj
(ns compact-uuids.core.bench (:require [compact-uuids.core :as uuid] [criterium.core :as criterium]) (:import [java.util UUID])) (defn bench-str [] (let [buffer (repeatedly 1000 #(UUID/randomUUID)) *uuids (atom (cycle buffer))] (println "\n\n>>> compact-uuids.core/-str <<<") (criteri...
null
https://raw.githubusercontent.com/tonsky/compact-uuids/de6f44c393a008dfcefc30bc42d8519312a66175/test/compact_uuids/core/bench.clj
clojure
(ns compact-uuids.core.bench (:require [compact-uuids.core :as uuid] [criterium.core :as criterium]) (:import [java.util UUID])) (defn bench-str [] (let [buffer (repeatedly 1000 #(UUID/randomUUID)) *uuids (atom (cycle buffer))] (println "\n\n>>> compact-uuids.core/-str <<<") (criteri...
4af2bae7650627abfbc74bc8728439b1ea60afdd6dba0028526700ef2d3f1779
qnikst/imagemagick
reflect.hs
{-# LANGUAGE OverloadedStrings #-} -- | Example taken from: convert logo : ' ( ' logo : -resize 100%x50 % ! -flip -size 640x240 \ gradient : white - black + matte -compose copyopacity -composite ' ) ' \ -append logo_reflect.png gradient:white-black +matte -compose copyopacity -composite ')' \ -appen...
null
https://raw.githubusercontent.com/qnikst/imagemagick/bc9e7ac85749f42a87901b722c5d36a8bed07d5c/examples/reflect.hs
haskell
# LANGUAGE OverloadedStrings # | Example taken from: we need to get the dimensions of the image +matte is the same as -alpha off clone the input image cloneMagickWand mw Resize it Flip the image over to form the reflection Create the gradient image which will be used as the alpha channel in the reflection imag...
convert logo : ' ( ' logo : -resize 100%x50 % ! -flip -size 640x240 \ gradient : white - black + matte -compose copyopacity -composite ' ) ' \ -append logo_reflect.png gradient:white-black +matte -compose copyopacity -composite ')' \ -append logo_reflect.png -} import Graphics.ImageMagick.M...
a587650117c8db4a754cd0f19244b925508a4d1b6a7223b0178a47d9b2e553c7
takikawa/racket-ppa
scribble.rkt
#lang racket/base (require setup/getinfo setup/dirs setup/path-to-relative "private/doc-path.rkt" setup/collects setup/collection-name setup/main-doc setup/parallel-do setup/doc-db racket/class racket/list racket/file ...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/26d6ae74a1b19258c9789b7c14c074d867a4b56b/share/pkgs/racket-index/setup/scribble.rkt
racket
really shouldn't be here... see make-isolated-namespace doc structure above unresolved requires Specifically disabled user stuff, filter If we've built user-specific before, keep building Otherwise, see if we need it: Don't need them, so drop them We use a lock to control writing to the database. It's not stri...
#lang racket/base (require setup/getinfo setup/dirs setup/path-to-relative "private/doc-path.rkt" setup/collects setup/collection-name setup/main-doc setup/parallel-do setup/doc-db racket/class racket/list racket/file ...
28de8522c1928005200a14e2421380fd1a989adc765906daca3fef59e5d07c14
mnieper/unsyntax
core-forms.scm
Copyright © ( 2020 ) . ;; This file is part of unsyntax. ;; Permission is hereby granted, free of charge, to any person ;; obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , ;; including without limitation the rights to use...
null
https://raw.githubusercontent.com/mnieper/unsyntax/cd12891805a93229255ff0f2c46cf0e2b5316c7c/src/unsyntax/expander/core-forms.scm
scheme
This file is part of unsyntax. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files including without limitation the rights to use, copy, modify, merge, subject to the following conditions: The above copyright notice and this permission n...
Copyright © ( 2020 ) . ( the " Software " ) , to deal in the Software without restriction , publish , distribute , sublicense , and/or sell copies of the Software , and to permit persons to whom the Software is furnished to do so , portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITH...
222b8eb3e15efd7dc155fdca9ef29ff1f5fe8e7f48420ebedd5258a3b378d880
aumouvantsillage/Hydromel-lang
scope.rkt
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. #lang racket (require racket/syntax syntax/parse/define syntax/id-table "errors.rkt") (provide with-scope set-scope bind! loo...
null
https://raw.githubusercontent.com/aumouvantsillage/Hydromel-lang/11f91d632c5cf28c61783c6292d065df434905b5/hydromel/lib/scope.rkt
racket
A scope contains a reference to a parent scope and a dictionary that maps names to metadata. an interface or a component. The global scope is managed by Racket. If `parent` is false, then the parent scope is the global scope. A parameter that contains a reference to the current local scope during the binding phas...
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. #lang racket (require racket/syntax syntax/parse/define syntax/id-table "errors.rkt") (provide with-scope set-scope bind! loo...