_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
40b623872bc9f54d2eb0627e7c2718cb791781987b6506bb740626d658aa658f
fossas/fossa-cli
Fingerprint.hs
# LANGUAGE RecordWildCards # # LANGUAGE RoleAnnotations # module App.Fossa.VSI.Fingerprint ( fingerprintRaw, fingerprintContentsRaw, fingerprintCommentStripped, fingerprint, Fingerprint, Raw, CommentStripped, Combined (..), ) where import Conduit (ConduitT, await, filterC, linesUnboundedAsciiC, mapC, ...
null
https://raw.githubusercontent.com/fossas/fossa-cli/219bdc6f38d401df2bdb7991114c54083a75f56b/src/App/Fossa/VSI/Fingerprint.hs
haskell
The type variable is: | Represents a 'Fingerprint' derived from the unmodified content of a file. | Represents a 'Fingerprint' derived from the content of a file with all C-style comments removed. | Represents the result of running all fingerprinting implementations on a file. | Hashes the whole contents of the...
# LANGUAGE RecordWildCards # # LANGUAGE RoleAnnotations # module App.Fossa.VSI.Fingerprint ( fingerprintRaw, fingerprintContentsRaw, fingerprintCommentStripped, fingerprint, Fingerprint, Raw, CommentStripped, Combined (..), ) where import Conduit (ConduitT, await, filterC, linesUnboundedAsciiC, mapC, ...
16e05a50a2c943c23022e66fa91e74817dcb304a354d6c7af12d1838da897655
tonsky/datascript
query.cljc
(ns datascript.test.query (:require #?(:cljs [cljs.test :as t :refer-macros [is are deftest testing]] :clj [clojure.test :as t :refer [is are deftest testing]]) [datascript.core :as d] [datascript.db :as db] [datascript.test.core :as tdc]) #?(:clj (:import [clojure.lang Exc...
null
https://raw.githubusercontent.com/tonsky/datascript/147a5a98f81fe811438b4e79341e058aa48db8f7/test/datascript/test/query.cljc
clojure
(ns datascript.test.query (:require #?(:cljs [cljs.test :as t :refer-macros [is are deftest testing]] :clj [clojure.test :as t :refer [is are deftest testing]]) [datascript.core :as d] [datascript.db :as db] [datascript.test.core :as tdc]) #?(:clj (:import [clojure.lang Exc...
d504d471187a067c8c39ff8f4345207146da55e6dec955b931391f5ff22e3e71
jordanthayer/ocaml-search
line_errbar_dataset.ml
* Lines with error bars . @author eaburns @since 2010 - 04 - 30 @author eaburns @since 2010-04-30 *) open Verbosity open Num_by_num_dataset open Geometry type line_errbar_style = { dashes : Length.t array; (* The dash pattern for the line. *) number : int; (* The number of the current ...
null
https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/spt/src/num_by_num/line_errbar_dataset.ml
ocaml
The dash pattern for the line. The number of the current line_errbar_dataset. A reference that counts the total number of associated line_errbar_datasets. * [line_errbar_factory next_dashes ()] gets a line and errorbar factory. This helps choosing where the error bars reside. * [line_domain l] gets the...
* Lines with error bars . @author eaburns @since 2010 - 04 - 30 @author eaburns @since 2010-04-30 *) open Verbosity open Num_by_num_dataset open Geometry type line_errbar_style = { dashes : Length.t array; number : int; count : int ref; } let line_errbar_factory next_dashes () = let ...
1324757b879a343f4e1a0c3974210e10c00c55dfb7db4c3a13c7064c4817d255
mvoidex/hsdev
Types.hs
# LANGUAGE CPP , TemplateHaskell , TypeSynonymInstances , FlexibleInstances , OverloadedStrings , GeneralizedNewtypeDeriving , MultiParamTypeClasses , TypeFamilies , UndecidableInstances # # OPTIONS_GHC -fno - warn - orphans # module HsDev.Symbols.Types ( Import(..), importPosition, importName, importQualified, impor...
null
https://raw.githubusercontent.com/mvoidex/hsdev/016646080a6859e4d9b4a1935fc1d732e388db1a/src/HsDev/Symbols/Types.hs
haskell
| Import source line of import imported module name is import qualified alias of import | Module list of module names imported exported module symbols fixities of operators symbols in scope, only for source modules source of module | Make each symbol appear only once | Scoped entity with qualifier | Symbo...
# LANGUAGE CPP , TemplateHaskell , TypeSynonymInstances , FlexibleInstances , OverloadedStrings , GeneralizedNewtypeDeriving , MultiParamTypeClasses , TypeFamilies , UndecidableInstances # # OPTIONS_GHC -fno - warn - orphans # module HsDev.Symbols.Types ( Import(..), importPosition, importName, importQualified, impor...
d29842aa6433311cfbc00011f960167156d4add06487450bbfc275e1819041fe
kanaka/html5-css3-ebnf
html_mangle.clj
(ns html5-css3-ebnf.html-mangle (:require [clojure.java.io :as io] [clojure.string :as S] [clojure.set :as set] [clojure.pprint :refer [pprint]] [linked.core :as linked] [instaparse.core :as instaparse] [instacheck.core :as icore])) (def PRUNE-T...
null
https://raw.githubusercontent.com/kanaka/html5-css3-ebnf/b7057b137893dba77d1ecfd410eedef3d2134c41/src/html5_css3_ebnf/html_mangle.clj
clojure
[tag attribute] [tag attribute value] tag -> [attribute ...] TODO: these are HTML 5+ and shouldn't be removed when parsing that. {[tag attribute value] new-value} Tags and Attrs Method --- " avals) "\"") ordered map Empty string is different than no value and should be retained Prune by :prune-attrs Prun...
(ns html5-css3-ebnf.html-mangle (:require [clojure.java.io :as io] [clojure.string :as S] [clojure.set :as set] [clojure.pprint :refer [pprint]] [linked.core :as linked] [instaparse.core :as instaparse] [instacheck.core :as icore])) (def PRUNE-T...
c0c0f37096c5f47723e0fd3e822d5450a5033da9125e2d993bdbe88b8e08d34f
cpeikert/Lol
Language.hs
| Module : Crypto . Lol . Cyclotomic . Language Description : Abstract interfaces for operations on cyclotomic rings . Copyright : ( c ) , 2018- License : GPL-3 Maintainer : Stability : experimental Portability : POSIX \ ( \def\Z{\mathbb{Z } } \ ) \ ( \def\F{\mathbb{F } } \ ...
null
https://raw.githubusercontent.com/cpeikert/Lol/4416ac4f03b0bff08cb1115c72a45eed1fa48ec3/lol/Crypto/Lol/Cyclotomic/Language.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE FlexibleContexts # # LANGUAGE RankNTypes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeOperators # | Used to specify a basis for cyclotomic operations | Multiply by the special element \( g \). | Divide by the special element \( g \), return...
| Module : Crypto . Lol . Cyclotomic . Language Description : Abstract interfaces for operations on cyclotomic rings . Copyright : ( c ) , 2018- License : GPL-3 Maintainer : Stability : experimental Portability : POSIX \ ( \def\Z{\mathbb{Z } } \ ) \ ( \def\F{\mathbb{F } } \ ...
6faa04d228a96fca3bd56bb593122342f309850db4193ab17d665b816f48b9ef
adomokos/haskell-katas
Ex34_FaFunctorTypeClassSpec.hs
module Ex34_FaFunctorTypeClassSpec ( spec ) where import Test.Hspec main :: IO () main = hspec spec Functor typeclass is for things that can be mapped over . This is how it 's implemented : class Functor f where fmap : : ( a - > b ) - > f a - > f b f here is a type constructor ...
null
https://raw.githubusercontent.com/adomokos/haskell-katas/be06d23192e6aca4297814455247fc74814ccbf1/test/Ex34_FaFunctorTypeClassSpec.hs
haskell
Create an Functor implementation of the Tree fmap (++ " HEY GUYS") ___ let numsTree = foldr treeInsert EmptyTree nums fmap ___ (foldr treeInsert EmptyTree [5,7,3])
module Ex34_FaFunctorTypeClassSpec ( spec ) where import Test.Hspec main :: IO () main = hspec spec Functor typeclass is for things that can be mapped over . This is how it 's implemented : class Functor f where fmap : : ( a - > b ) - > f a - > f b f here is a type constructor ...
bdc624d62011f8a51d74e894f8cb1915536e0cbee575e41dadc23f293fdadf6f
composewell/streaming-benchmarks
ByteString.hs
-- | -- Module : Benchmarks.ByteString Copyright : ( c ) 2018 -- License : MIT -- Maintainer : # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # module Benchmarks.ByteString where import Benchmarks.DefaultMain (defaultMain) import Benchmarks . Common ( value , maxValue , ) import ...
null
https://raw.githubusercontent.com/composewell/streaming-benchmarks/c31fa9d2d20c9b4e8e85be19ac1e7a41a88b4945/Benchmarks/ByteString.hs
haskell
| Module : Benchmarks.ByteString Maintainer : ----------------------------------------------------------------------------- Stream generation and elimination ----------------------------------------------------------------------------- ------------------------------------------------------------------------...
Copyright : ( c ) 2018 License : MIT # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # module Benchmarks.ByteString where import Benchmarks.DefaultMain (defaultMain) import Benchmarks . Common ( value , maxValue , ) import Prelude (Int, (+), ($), (.), even, (>), (<=), subtract, undefined...
1d7a705ae75bd17a7599c8fd5be66259359f0b8d77d72c4d8ca1ed066f460b08
glguy/advent
08.hs
# Language ImportQualifiedPost , QuasiQuotes , TemplateHaskell # | Module : Main Description : Day 8 solution Copyright : ( c ) , 2020 License : ISC Maintainer : < > Module : Main Description : Day 8 solution Copyright : (c) Eric Mertens, 2020 License : ISC Maintainer : ...
null
https://raw.githubusercontent.com/glguy/advent/d72f6fec89c1a57d90345ffa185fc8dbd3e2d595/solutions/src/2020/08.hs
haskell
| Programs are expressed as control-flow graphs. Nodes are instructions in the program. Nodes are labeled with the accumulator-effect of executing that instruction. Edges capture control flow between instructions. Edges are labeled with the /cost/ of taking that edge. It costs @1@ to take a control path gener...
# Language ImportQualifiedPost , QuasiQuotes , TemplateHaskell # | Module : Main Description : Day 8 solution Copyright : ( c ) , 2020 License : ISC Maintainer : < > Module : Main Description : Day 8 solution Copyright : (c) Eric Mertens, 2020 License : ISC Maintainer : ...
b92177afaad53a9ace88977fd369810a5c0af955fd9897588601e38849263e57
higepon/mcbench
mcbench_util_SUITE.erl
%%%------------------------------------------------------------------- File : Author : > %%% Description : Tests for mcbench utilities %%% Created : 7 Dec 2009 by > %%%------------------------------------------------------------------- -module(mcbench_util_SUITE). -compile(export_all). -include("...
null
https://raw.githubusercontent.com/higepon/mcbench/72a58cfeaef846d1d26dd8f311ff5ed5ed23382b/test/mcbench_util_SUITE.erl
erlang
------------------------------------------------------------------- Description : Tests for mcbench utilities ------------------------------------------------------------------- Tests start. Tests end. helper
File : Author : > Created : 7 Dec 2009 by > -module(mcbench_util_SUITE). -compile(export_all). -include("ct.hrl"). suite() -> [{timetrap,{seconds,30}}]. test_gen_random_keys(_Config) -> N = 10000, MaxKey = 100000, Keys = mcbench_util:gen_random_keys(N, MaxKey), true = is_li...
e5ed933500f715319a483319c84f6c8d8adf7e02510d701a53a2a74a8dc2ec58
Elzair/nazghul
place-to-place-1.scm
(load "naz.scm") (kern-load "game.scm") (load "tests/basic-time.scm") (load "tests/test-map-1.scm") (kern-mk-map 'm_grass_map 5 5 pal_expanded (list "xx xx .. .. .." "xx .. .. .. .." ".. .. .. .. .." ".. .. .. .. .." ".. .. .. .. .." )) (kern-mk-char 'ch_thorald_greybeard "Thorald Greybeard...
null
https://raw.githubusercontent.com/Elzair/nazghul/8f3a45ed6289cd9f469c4ff618d39366f2fbc1d8/worlds/haxima-1.001/tests/place-to-place-1.scm
scheme
tag name species occ sprite starting alignment hp mod/mult mp mod/mult hp/xp/mp/lvl conv sched special ai readied sprite wraps underground wilderness tmp combat place subplaces neighbors objects hooks sprite wraps underground wilderness tmp combat place subplaces neighbors objects: tag n...
(load "naz.scm") (kern-load "game.scm") (load "tests/basic-time.scm") (load "tests/test-map-1.scm") (kern-mk-map 'm_grass_map 5 5 pal_expanded (list "xx xx .. .. .." "xx .. .. .. .." ".. .. .. .. .." ".. .. .. .. .." ".. .. .. .. .." )) (kern-mk-char 'ch_thorald_greybeard "Thorald Greybeard...
196ba0dd4cc15dfce1f133e8dedac2f32489121c27950ac206aff3d1047b0aac
bendoerr/real-world-haskell
Arrays.hs
-- | Various Array specific Helpers for this chapter. module Arrays where import Data.Array (Array, elems, listArray) import Data.List (foldl') import Data.Ix (Ix(..)) -- | Helper to create an Array out of a List listToArray :: [a] -> Array Int a listToArray xs = listArray (0, bound) xs where bound = length xs - ...
null
https://raw.githubusercontent.com/bendoerr/real-world-haskell/fa43aa59e42a162f5d2d5655b274b964ebeb8f0a/ch12/Arrays.hs
haskell
| Various Array specific Helpers for this chapter. | Helper to create an Array out of a List | Strict left fold, similar to foldl' on lists.
module Arrays where import Data.Array (Array, elems, listArray) import Data.List (foldl') import Data.Ix (Ix(..)) listToArray :: [a] -> Array Int a listToArray xs = listArray (0, bound) xs where bound = length xs - 1 foldA :: Ix k => (a -> b -> a) -> a -> Array k b -> a foldA f s = foldl' f s . elems | Stric...
3ea85356fec62218946e4bb1a2a3769ef1820486bfc04b54aef2b8339f82f53e
NicklasBoto/funQ
Abs.hs
Haskell data types for the abstract syntax . Generated by the BNF converter . # LANGUAGE GeneralizedNewtypeDeriving # module Parser.Abs where import Prelude (Char, Double, Integer, String) import qualified Prelude as C (Eq, Ord, Show, Read) import qualified Data.String newtype FunVar = FunVar String deriving ...
null
https://raw.githubusercontent.com/NicklasBoto/funQ/7692abfbb914c07ccb1050b952af1d539604f152/src/Parser/Abs.hs
haskell
Haskell data types for the abstract syntax . Generated by the BNF converter . # LANGUAGE GeneralizedNewtypeDeriving # module Parser.Abs where import Prelude (Char, Double, Integer, String) import qualified Prelude as C (Eq, Ord, Show, Read) import qualified Data.String newtype FunVar = FunVar String deriving ...
30618f3402fb8b7bdb0b670bd0d07076e1fef9e29aaec1b2faa67c23673ea117
pveber/bistro
deeptools.ml
open Core open Bistro open Bistro.Shell_dsl let img = [ docker_image ~account:"pveber" ~name:"deeptools" ~tag:"3.1.3" () ] type 'a signal_format = [ `bigWig | `bedGraph ] type 'a img_format = [ `png | `pdf | ` svg ] class type compressed_numpy_array = object inherit binary_file method format : [`compressed_numpy...
null
https://raw.githubusercontent.com/pveber/bistro/d363bd2d8257babbcb6db15bd83fd6465df7c268/lib/bio/deeptools.ml
ocaml
open Core open Bistro open Bistro.Shell_dsl let img = [ docker_image ~account:"pveber" ~name:"deeptools" ~tag:"3.1.3" () ] type 'a signal_format = [ `bigWig | `bedGraph ] type 'a img_format = [ `png | `pdf | ` svg ] class type compressed_numpy_array = object inherit binary_file method format : [`compressed_numpy...
a4b28607899a79c5d18c2e94ed95a3a19c7b841692c58eb2479fcbfefcb46550
jeffshrager/biobike
aux7level.lisp
;;;; -*- mode: Lisp; Syntax: Common-Lisp; Package: bbi; -*- (IN-PACKAGE :bbi) (DEFUN bidirectional-best-hit (gene org2 &OPTIONAL (threshold 1e-10)) (LET* ((org1 (ORGANISM-OF gene)) (protein1 (PROTEIN-OF gene)) (pre-prot-gene2 (IF protein1 (SEQUENCE-SIMILAR-TO protein1 ...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/bike/aux7level.lisp
lisp
-*- mode: Lisp; Syntax: Common-Lisp; Package: bbi; -*-
(IN-PACKAGE :bbi) (DEFUN bidirectional-best-hit (gene org2 &OPTIONAL (threshold 1e-10)) (LET* ((org1 (ORGANISM-OF gene)) (protein1 (PROTEIN-OF gene)) (pre-prot-gene2 (IF protein1 (SEQUENCE-SIMILAR-TO protein1 IN org2 PROTEIN-VS-PROTEIN RETURN 1 NO-D...
a32d202fabb4b12f11990be31cc4164f68675f53dab3f753ebca44ce656edad3
tolysz/ghcjs-stack
Dependency.hs
----------------------------------------------------------------------------- -- | -- Module : Distribution.Client.Dependency Copyright : ( c ) 2005 , 2007 2008 -- License : BSD-like -- -- Maintainer : -- Stability : provisional -- Portability : p...
null
https://raw.githubusercontent.com/tolysz/ghcjs-stack/83d5be83e87286d984e89635d5926702c55b9f29/special/cabal-next/cabal-install/Distribution/Client/Dependency.hs
haskell
--------------------------------------------------------------------------- | Module : Distribution.Client.Dependency License : BSD-like Maintainer : Stability : provisional Portability : portable Top level interface to dependency resolution. --------------------------------------------------...
Copyright : ( c ) 2005 , 2007 2008 module Distribution.Client.Dependency ( chooseSolver, resolveDependencies, Progress(..), foldProgress, resolveWithoutDependencies, DepResolverParams(..), PackageConstraint(..), PackagesPreferenceD...
95a227042110a9211db3b34747577994b8de861aeb76976aa729d3fcc6cf9dfb
portkey-cloud/portkey
project.clj
(defproject ring-app "0.1.0-SNAPSHOT" :description "Sample app using ring and portkey" :dependencies [[org.clojure/clojure "1.9.0-beta1"] [compojure "1.6.0"] [http-kit "2.2.0"] [hiccup "1.0.5"] [ring/ring-codec "1.0.1"]] :main ^:skip-aot ring-app...
null
https://raw.githubusercontent.com/portkey-cloud/portkey/30c1e9170c5f6df85fc58d9c644a60cd1464a6d9/examples/ring-app/project.clj
clojure
(defproject ring-app "0.1.0-SNAPSHOT" :description "Sample app using ring and portkey" :dependencies [[org.clojure/clojure "1.9.0-beta1"] [compojure "1.6.0"] [http-kit "2.2.0"] [hiccup "1.0.5"] [ring/ring-codec "1.0.1"]] :main ^:skip-aot ring-app...
fb3aa91ba6c27e4d276a563da97f181aa9ae74e9b6065338f1086619a9eed3d9
Shirakumo/kandria
camera.lisp
(in-package #:org.shirakumo.fraf.kandria) (defclass camera (trial:2d-camera unpausable) ((name :initform :camera) (scale :initform 1.0 :accessor view-scale) (intended-scale :initform 1.0 :accessor intended-view-scale) (target-size :initarg :target-size :accessor target-size) (target :initarg :target :ini...
null
https://raw.githubusercontent.com/Shirakumo/kandria/94fd727bd93e302c6a28fae33815043d486d794b/camera.lisp
lisp
Camera movement View scale transitioning Clamp based on move direction only Camera zoom Camera shake Deterministic shake so that we can slow it down properly. Adjust max width based on aspect ratio to ensure ultrawides still get to see something. Ensure we scale to fit width as much as possible without showing ...
(in-package #:org.shirakumo.fraf.kandria) (defclass camera (trial:2d-camera unpausable) ((name :initform :camera) (scale :initform 1.0 :accessor view-scale) (intended-scale :initform 1.0 :accessor intended-view-scale) (target-size :initarg :target-size :accessor target-size) (target :initarg :target :ini...
56cf75ca9e59c8393677e7c83a0256315557d973e11b88ba80d76fa8eaf66587
workframers/stillsuit
queries.clj
(ns stillsuit.lacinia.queries "Implementation functions for creating top-level stillsuit queries." (:require [com.walmartlabs.lacinia.resolve :as resolve] [stillsuit.datomic.core :as datomic] [clojure.tools.logging :as log] [datomic.api :as d] [stillsuit.lacinia.types...
null
https://raw.githubusercontent.com/workframers/stillsuit/f73d87d97971b458a4f717fccfa2445dc82f9b72/src/stillsuit/lacinia/queries.clj
clojure
Else no db Else no db
(ns stillsuit.lacinia.queries "Implementation functions for creating top-level stillsuit queries." (:require [com.walmartlabs.lacinia.resolve :as resolve] [stillsuit.datomic.core :as datomic] [clojure.tools.logging :as log] [datomic.api :as d] [stillsuit.lacinia.types...
4ff420eda81ca49d05a676725ac3f0b56c04b5059ca30f89c72cf9fa8d579816
janestreet/ocaml-probes
test_prog2.ml
let () = while true do [%probe "prog2" (print_endline "from prog2 probe")]; print_endline "from prog2" done ;;
null
https://raw.githubusercontent.com/janestreet/ocaml-probes/1ddd237eb647c94918ce77b13922bd51710e94d5/test/many_tracees/test_prog2.ml
ocaml
let () = while true do [%probe "prog2" (print_endline "from prog2 probe")]; print_endline "from prog2" done ;;
6603a6199f0b43290bfd5b8a7100dea5fd253da5e783cb47e067bfca90cfd68d
slyrus/cl-bio
gbseq.lisp
(in-package :entrez) (progn (defparameter *feature-annotation-type-list* '(("exon" . bio:exon) ("cds" . bio:cds) ("STS" . bio:sts) ("repeat_region" . bio:repeat-region) ("source" . bio:source) ("Region" . bio:region) ("Site" . bio::site))) (defparameter *feature-annotatio...
null
https://raw.githubusercontent.com/slyrus/cl-bio/e6de2bc7f4accaa11466902407e43fae3184973f/entrez/gbseq.lisp
lisp
(in-package :entrez) (progn (defparameter *feature-annotation-type-list* '(("exon" . bio:exon) ("cds" . bio:cds) ("STS" . bio:sts) ("repeat_region" . bio:repeat-region) ("source" . bio:source) ("Region" . bio:region) ("Site" . bio::site))) (defparameter *feature-annotatio...
79832f76731fa12f23fcc09da436513989a54d596f5c6729b36c00f6a90f7e2b
dbuenzli/brr
fut.ml
--------------------------------------------------------------------------- Copyright ( c ) 2020 The brr programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 2...
null
https://raw.githubusercontent.com/dbuenzli/brr/3d1a0edd964a1ddfbf2be515fc3a3803d27ad707/src/fut.ml
ocaml
Future syntaxes
--------------------------------------------------------------------------- Copyright ( c ) 2020 The brr programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 2...
ef46985953e24c05adb40516a95e46ede0d6579b1afcf43a75003d8cbd2ed23c
bufferswap/ViralityEngine
line3d.lisp
(in-package #:cl-user) ;;; NOTE: Line3d represents a 3D line segment, not an infinite line in the mathematical sense. Since ;;; line segments are so common in physics, we have chosen to use this convention (as many other ;;; game physics libraries do). (defpackage #:vorigin.geometry.line3d (:local-nicknames (#:p...
null
https://raw.githubusercontent.com/bufferswap/ViralityEngine/df7bb4dffaecdcb6fdcbfa618031a5e1f85f4002/support/vorigin/src/geometry/shapes/line3d.lisp
lisp
NOTE: Line3d represents a 3D line segment, not an infinite line in the mathematical sense. Since line segments are so common in physics, we have chosen to use this convention (as many other game physics libraries do).
(in-package #:cl-user) (defpackage #:vorigin.geometry.line3d (:local-nicknames (#:point3d #:vorigin.geometry.point3d) (#:u #:vutils) (#:v3 #:vorigin.vec3)) (:use #:cl) (:shadow #:length) (:export #:direction #:end #:length #:length-squared #:line #:midpoint #:start)) (in-pack...
a5c3a583fe88e124e1ab53c68e11bc0e274da21f29d1dc40f92e73995829d2e8
yrashk/erlang
erl_internal.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1998 - 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/yrashk/erlang/e1282325ed75e52a98d58f5bd9fb0fa27896173f/lib/stdlib/src/erl_internal.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 1998 - 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(erl_internal). NOTE : All guard_...
27289f74385e8b60af579a9592bedbbeb34bfabe7eb08dfb91e846c434475300
haskell-hvr/missingh
Daemon.hs
# LANGUAGE CPP # # LANGUAGE Trustworthy # Copyright ( c ) 2005 - 2011 < > All rights reserved . For license and copyright information , see the file LICENSE Copyright (c) 2005-2011 John Goerzen <> All rights reserved. For license and copyright information, see the file LICENSE -} | Module :...
null
https://raw.githubusercontent.com/haskell-hvr/missingh/20ecfe24e2d96f4f6553dda2b9433a0a9f692eca/src/System/Daemon.hs
haskell
# LANGUAGE CPP # # LANGUAGE Trustworthy # Copyright ( c ) 2005 - 2011 < > All rights reserved . For license and copyright information , see the file LICENSE Copyright (c) 2005-2011 John Goerzen <> All rights reserved. For license and copyright information, see the file LICENSE -} | Module :...
432682c3e975d32a1b71461405de2874029d5320d7609a06e64e71d623a1fa74
ekarayel/sync-mht
Server.hs
module Sync.MerkleTree.Server where import Codec.Compression.GZip import Control.Monad.State import qualified Data.ByteString as BS import qualified Data.ByteString.Lazy as BL import Data.Map (Map) import qualified Data.Map as M import Data.String.Interpolate.IsString import qualified Data.Text.IO as T import Data.Tim...
null
https://raw.githubusercontent.com/ekarayel/sync-mht/57d724781fad9eed4e57b4e4f8416633605bdb4b/src/Sync/MerkleTree/Server.hs
haskell
| Map of open file handles with their ids | Next available id | Merkle Hash Tree of server file hierarchy | path of the root of the file hierarchy
module Sync.MerkleTree.Server where import Codec.Compression.GZip import Control.Monad.State import qualified Data.ByteString as BS import qualified Data.ByteString.Lazy as BL import Data.Map (Map) import qualified Data.Map as M import Data.String.Interpolate.IsString import qualified Data.Text.IO as T import Data.Tim...
a4497fd67fe970ea1b82c213c18fdbdd8d110b4663e06a21ddbaa0da6fb58582
soren-n/bidi-higher-rank-poly
AVL.ml
open Infix open Order open Extra type 'a tree = | Null | Node of int * int * 'a * 'a tree * 'a tree let make_null () = Null let make_node count height data left right = Node (count, height, data, left, right) let fold null_case node_case tree = let rec _visit tree return = match tree with | Null -> ...
null
https://raw.githubusercontent.com/soren-n/bidi-higher-rank-poly/c0957759657b30a52235560d1d5f40e9bd2569b3/util/lib/AVL.ml
ocaml
open Infix open Order open Extra type 'a tree = | Null | Node of int * int * 'a * 'a tree * 'a tree let make_null () = Null let make_node count height data left right = Node (count, height, data, left, right) let fold null_case node_case tree = let rec _visit tree return = match tree with | Null -> ...
82381d74b3a90b63ffd92c673d7ff77e0d582d42b7df76af8efebc9bba6a6a78
hexlet-codebattle/battle_asserts
stickers_count.clj
(ns battle-asserts.issues.stickers-count (:require [clojure.test.check.generators :as gen])) (def level :elementary) (def tags ["games"]) (def description {:en "Given an `n * n * n` Rubik's cube, find the number of stickers that are needed to cover the whole cube." :ru "Дан `n * n * n` кубик Рубика, найдите н...
null
https://raw.githubusercontent.com/hexlet-codebattle/battle_asserts/dc5ed5ebae4b38d6251abda3da23590cbfa5af5f/src/battle_asserts/issues/stickers_count.clj
clojure
(ns battle-asserts.issues.stickers-count (:require [clojure.test.check.generators :as gen])) (def level :elementary) (def tags ["games"]) (def description {:en "Given an `n * n * n` Rubik's cube, find the number of stickers that are needed to cover the whole cube." :ru "Дан `n * n * n` кубик Рубика, найдите н...
c08b1a5c4c2837c8ca8b6c92d7a52dbadd9374915ac2d3d3a35ea78e9d820996
Bodigrim/chimera
Test.hs
# LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -fno - warn - orphans # module Main where import Test.QuickCheck.Function import Test.Tasty import Test.Tasty.HUnit as H import Test.Tasty.QuickCheck as QC import Data.Bits import Data.Foldable import Data.Function (fix) import qualified Data.List as L import qualified...
null
https://raw.githubusercontent.com/Bodigrim/chimera/d63642b996e2b8cceb1bfa9607dd707423ff44c9/test/Test.hs
haskell
-----------------------------------------------------------------------------
# LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -fno - warn - orphans # module Main where import Test.QuickCheck.Function import Test.Tasty import Test.Tasty.HUnit as H import Test.Tasty.QuickCheck as QC import Data.Bits import Data.Foldable import Data.Function (fix) import qualified Data.List as L import qualified...
bda5e706ccc2a6cc4456ebeedf4fd9a5ba4661d74b49b988c9d18fd399c857a9
benoitc/cbt
cbt_btree.erl
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not % use this file except in compliance with the License. You may obtain a copy of % the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an " A...
null
https://raw.githubusercontent.com/benoitc/cbt/49b99e56f406f918739adde152e8a4908e755521/src/cbt_btree.erl
erlang
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 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations...
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not distributed under the License is distributed on an " AS IS " BASIS , WITHOUT -module(cbt_btree). -export([open/2, open/3]). -export([query_modify/4, add/2, add_remove/3]). -export([lookup/2]). -export([fold/3, fold/4]). -export([fol...
c201f3f2a13d89c1a70b5ce075ca48eb5cbb280da54f37e5b5301072b53ec80a
plumatic/grab-bag
project.clj
(defproject plumbing "0.1.5-SNAPSHOT" :internal-dependencies [] :external-dependencies [com.googlecode.concurrentlinkedhashmap/concurrentlinkedhashmap-lru com.stuartsierra/lazytest commons-codec commons-io joda-t...
null
https://raw.githubusercontent.com/plumatic/grab-bag/a15e943322fbbf6f00790ce5614ba6f90de1a9b5/lib/plumbing/project.clj
clojure
(defproject plumbing "0.1.5-SNAPSHOT" :internal-dependencies [] :external-dependencies [com.googlecode.concurrentlinkedhashmap/concurrentlinkedhashmap-lru com.stuartsierra/lazytest commons-codec commons-io joda-t...
1774e815d38929d1757bf4383c7d3da83ded9001b2a3790f98c19a61b3d9c84a
haskell-game/tiny-games-hs
call-by-push-block.hs
n="晘㋲㛻嚵ѫ盝㞝ቂ㝑߳ⳛ㎋拓㾋ⱘ孭ひ・励㓛⭭マᙲ㛾⃝㱛㚙㛨宪㕵㝘㋐⛎㫛ϛ㙉ኛ㙈ኛ涀ʶ氉Ⴖぉ㚛㛛ᇛⴙ䘈㭾⛛䉀媴㛛㫯ⶭッ㑍坝㚤㛛坓䥫㛚≫〃㾵㛝㛛囚㛛ڛ㛫⛛孭嫭" e('λ':c)|(a,b)<-span(>'n')c=u(u a#m 1 b)%e(y b);e(c:d)=c:e d;e l=l;e&0=u.v;f&_=f v=foldr(zipWith(:))a;main=print=<<(mapM o.zip[1..].r(h.words).lines$m 5.w.c=<<x) e%f=e<>f;p=putStr;l=length;w n="λo .+#_\n"!!mod n 8:w(n`div`8);d=getLine;z=m ...
null
https://raw.githubusercontent.com/haskell-game/tiny-games-hs/946d136392fa2986c86ee3e9d87cd9f31a03d9a6/prelude/call-by-push-block/call-by-push-block.hs
haskell
^10 ------------------------------------------------------------------ 80> --
n="晘㋲㛻嚵ѫ盝㞝ቂ㝑߳ⳛ㎋拓㾋ⱘ孭ひ・励㓛⭭マᙲ㛾⃝㱛㚙㛨宪㕵㝘㋐⛎㫛ϛ㙉ኛ㙈ኛ涀ʶ氉Ⴖぉ㚛㛛ᇛⴙ䘈㭾⛛䉀媴㛛㫯ⶭッ㑍坝㚤㛛坓䥫㛚≫〃㾵㛝㛛囚㛛ڛ㛫⛛孭嫭" e('λ':c)|(a,b)<-span(>'n')c=u(u a#m 1 b)%e(y b);e(c:d)=c:e d;e l=l;e&0=u.v;f&_=f v=foldr(zipWith(:))a;main=print=<<(mapM o.zip[1..].r(h.words).lines$m 5.w.c=<<x) e%f=e<>f;p=putStr;l=length;w n="λo .+#_\n"!!mod n 8:w(n`div`8);d=getLine;z=m ...
876a396b4297e66f7f0a26861772be1202b224b4a1a6390b00d4c361b2a53481
haskell-opengl/OpenGLRaw
GeometryShader4.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | Module : Graphics . GL.ARB.GeometryShader4 Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- -------------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/ARB/GeometryShader4.hs
haskell
------------------------------------------------------------------------------ | License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Enums * Functions
# LANGUAGE PatternSynonyms # Module : Graphics . GL.ARB.GeometryShader4 Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.ARB.GeometryShader4 ( glGetARBGeometryShader4, gl_ARB_geometry_shader4, pattern GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB, pattern GL_FRAMEBUFFER_ATTACHMENT...
a1772b4f747d28473de0f659d1269726a3aa5eb31a60a67dd106f85ae0a9664a
binsec/haunted
dba_to_formula.ml
(**************************************************************************) This file is part of BINSEC . (* *) Copyright ( C ) 2016 - 2019 CEA ( Co...
null
https://raw.githubusercontent.com/binsec/haunted/7ffc5f4072950fe138f53fe953ace98fff181c73/src/dba/dba_to_formula.ml
ocaml
************************************************************************ alternatives) you can redistribute it an...
This file is part of BINSEC . Copyright ( C ) 2016 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , ve...
5cec5857c21d4db47af424c08a80bece2eb266165b62c8b241c0207080a016b5
prikhi/quickbooks-for-communes
WebConnector.hs
# LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # module QuickBooks.WebConnector ( -- * QWC File Generation QWCConfig(..) , AuthFlag(..) , PersonalDataPreference(..) , QBType(..) , Schedule(..) , SOAPStyle(..) , Unatt...
null
https://raw.githubusercontent.com/prikhi/quickbooks-for-communes/f4aefb9de90db04e9c657674627bcc777196d92f/server/src/QuickBooks/WebConnector.hs
haskell
# LANGUAGE OverloadedStrings # * QWC File Generation Config File | Generate the QWC XML configuration file for a QuickBooks User's Web Connector. | Nest the generated XML string under a @config@ key. TODO: if list contains All, just return sum, else nub list and fold Callbacks & Preference data. TODO: Split o...
# LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # module QuickBooks.WebConnector QWCConfig(..) , AuthFlag(..) , PersonalDataPreference(..) , QBType(..) , Schedule(..) , SOAPStyle(..) , UnattendedModePreference(..) * WebConnector Callbacks & Responses ...
493acd5eed633f2f96d656ca75006ee1e2191e48a45c935061b4cd57d1b31196
clojure-interop/aws-api
AWSXRayAsync.clj
(ns com.amazonaws.services.xray.AWSXRayAsync "Interface for accessing AWS X-Ray asynchronously. Each asynchronous method will return a Java Future object overloads which accept an AsyncHandler can be used to receive notification when an asynchronous operation completes. Note: Do not directly implement this int...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.xray/src/com/amazonaws/services/xray/AWSXRayAsync.clj
clojure
(ns com.amazonaws.services.xray.AWSXRayAsync "Interface for accessing AWS X-Ray asynchronously. Each asynchronous method will return a Java Future object overloads which accept an AsyncHandler can be used to receive notification when an asynchronous operation completes. Note: Do not directly implement this int...
5ec72eaab848d529c74b49008e0dae488bb637ae9705a6bc8d6b68ffef729ae0
meamy/feynman
Parallel.hs
module Feynman.Synthesis.Reversible.Parallel where import Feynman.Core import Feynman.Algebra.Base import Feynman.Algebra.Linear import Feynman.Algebra.Matroid import Feynman.Synthesis.Phase import Feynman.Synthesis.Reversible import Data.List (partition, intersect) import Data.Map.Strict (Map, (!)) import qualified...
null
https://raw.githubusercontent.com/meamy/feynman/6487c3e90b3c3a56e3b309436663d8bf4cbf4422/src/Feynman/Synthesis/Reversible/Parallel.hs
haskell
need to carry all the context information necessary for defining independence with each element T is independent if and only if m - rank(T) <= n - |T| Strictly lazy Partitions eagerly, but applies partitions lazily
module Feynman.Synthesis.Reversible.Parallel where import Feynman.Core import Feynman.Algebra.Base import Feynman.Algebra.Linear import Feynman.Algebra.Matroid import Feynman.Synthesis.Phase import Feynman.Synthesis.Reversible import Data.List (partition, intersect) import Data.Map.Strict (Map, (!)) import qualified...
4a0d4ad5f06a67d5a8673e91c2114663af1e677571cff195ae775fe423da572a
fpco/schoolofhaskell
Annotation.hs
| This module provides utilities for rendering the ' ' type of the API . ' ' gives extra structure to textual information provided by -- the backend, by adding nested annotations atop the text. -- In the current School of Haskell code , ' ' is used for source -- errors and type info. This allows things like li...
null
https://raw.githubusercontent.com/fpco/schoolofhaskell/171454d255f57bb9ab82974625501e964c8c9b96/soh-client/src/View/Annotation.hs
haskell
the backend, by adding nested annotations atop the text. errors and type info. This allows things like links to docs for identifiers, and better styling for source errors. This module also provides utilities for getting highlight spans from 'renderAnn'. * Annotations * Rendering IdInfo links * Highlighting Co...
| This module provides utilities for rendering the ' ' type of the API . ' ' gives extra structure to textual information provided by In the current School of Haskell code , ' ' is used for source code , via Ace . This allows the display of annotated info to highlight the involved expressions / types , and...
dc65d2474933a0e9921b05a9fcfa448943ecdfee1a2bad26ce3b48d0e4e0dd8a
bsansouci/bsb-native
reg.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/bsansouci/bsb-native/9a89457783d6e80deb0fba9ca7372c10a768a9ea/vendor/ocaml/asmcomp/reg.ml
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . open Cmm module Raw_name = struct ty...
c6d6fdd837a63666f678903cedd7dda8254036a1560400c9d1c6a8951626238c
transient-haskell/transient
teststreamsocket.hs
test.hs{-# LANGUAGE RecordWildCards, ScopedTypeVariables #-} module Main where import Network import qualified Network.Socket as NS hiding (send, sendTo, recv, recvFrom) import Network.Socket.ByteString import qualified Network.BSD as BSD import System.IO hiding (hPutBufNonBlocking) import Control.Concurrent impor...
null
https://raw.githubusercontent.com/transient-haskell/transient/301831888887fb199e9f9bfaba2502389e73bc93/tests/teststreamsocket.hs
haskell
# LANGUAGE RecordWildCards, ScopedTypeVariables # only done if there's an error
module Main where import Network import qualified Network.Socket as NS hiding (send, sendTo, recv, recvFrom) import Network.Socket.ByteString import qualified Network.BSD as BSD import System.IO hiding (hPutBufNonBlocking) import Control.Concurrent import Control.Monad import Control.Exception import Control.Monad...
f20c83c154203dfd0ad3fbff1927653a9a2027e3ea9655b2be8fc06833a7668a
tomhanika/conexp-clj
many_valued_contexts.clj
;; Copyright ⓒ the conexp-clj developers; 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 LICENSE at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bou...
null
https://raw.githubusercontent.com/tomhanika/conexp-clj/5e4c15697f06446f925f53d1d143528155d7dd3a/src/main/clojure/conexp/fca/many_valued_contexts.clj
clojure
Copyright ⓒ the conexp-clj developers; all rights reserved. The use and distribution terms for this software are covered by the which can be found in the file LICENSE 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 re...
Eclipse Public License 1.0 ( -1.0.php ) (ns conexp.fca.many-valued-contexts "Many-Valued-Contexts and some functions for scaling." (:require [conexp.base :refer :all] [conexp.fca.contexts :refer :all])) (deftype Many-Valued-Context [objects attributes incidence] Object (equals [this other] ...
3d4e665192aefafd687eb9a5dcab6cce96febb01b5eca213c27b603abd56f813
Gandalf-/coreutils
TrSpec.hs
{-# LANGUAGE OverloadedStrings #-} module TrSpec where import Control.Exception import Coreutils.Tr import Data.Array import Data.ByteString.Char8 (ByteString) import Data.Either import Data.Word8 import qualified Streaming.ByteString as Q import ...
null
https://raw.githubusercontent.com/Gandalf-/coreutils/0566feef66b7cbab35a8095a207fd8d87a09193d/test/TrSpec.hs
haskell
# LANGUAGE OverloadedStrings # GNU tr refuses entirely to do this Hmm, not really testing much here
module TrSpec where import Control.Exception import Coreutils.Tr import Data.Array import Data.ByteString.Char8 (ByteString) import Data.Either import Data.Word8 import qualified Streaming.ByteString as Q import Test.Hspec spec :: Spec spec = do...
4b01baafacf9268f7dd46a6552535c029733de7b60e9494ea563adbe69ad7b4b
ghc/testsuite
tcrun022.hs
-- This test checks in which way the type checker handles phantom types in -- RULES. We would like these type variables to be generalised, but some versions of GHC instantiated them to ` ( ) ' , which seriously limited the -- applicability of such RULES. module Main (main) where data T a = C foo :: T a -> String ...
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/typecheck/should_run/tcrun022.hs
haskell
This test checks in which way the type checker handles phantom types in RULES. We would like these type variables to be generalised, but some applicability of such RULES. # RULES -- this rule will not fire if the type argument of `T' is constrained to `()' -- "foo/C" foo C = "rewrite rule did fire" #
versions of GHC instantiated them to ` ( ) ' , which seriously limited the module Main (main) where data T a = C foo :: T a -> String # NOINLINE foo # foo C = "rewrite rule did NOT fire" main = putStrLn $ foo (C :: T Int)
c654922d3975ba0e4faf4f17c9cd661c3b4678603234ee065be50cb329a7eb5d
Smoltbob/Caml-Est-Belle
fknormal.ml
(** This module encapslates the K-normalization step.*) open Fsyntax;; open Printf;; type t = | Unit | Bool of bool | Int of int | Float of float | Not of t | Neg of t | Add of t * t | Land of t * t | Sub of t * t | FNeg of t | FAdd of t * t | FSub of t * t | FMul of t * t | FDiv of t * t...
null
https://raw.githubusercontent.com/Smoltbob/Caml-Est-Belle/3d6f53d4e8e01bbae57a0a402b7c0f02f4ed767c/compiler/fknormal.ml
ocaml
* This module encapslates the K-normalization step. | IfBool of t * t * t * Produces a string out of a K-normalized ast @param exp t @return string
open Fsyntax;; open Printf;; type t = | Unit | Bool of bool | Int of int | Float of float | Not of t | Neg of t | Add of t * t | Land of t * t | Sub of t * t | FNeg of t | FAdd of t * t | FSub of t * t | FMul of t * t | FDiv of t * t | Eq of t * t | LE of t * t | IfEq of Id.t * Id.t...
50097613dac3cb1055a47dc1637a3898209166be853516c659b570b8aae3ac3e
wireapp/wire-server
ListItems.hs
# LANGUAGE TemplateHaskell # -- This file is part of the Wire Server implementation. -- Copyright ( C ) 2022 Wire Swiss GmbH < > -- -- This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , e...
null
https://raw.githubusercontent.com/wireapp/wire-server/ee767dc62b3e2ddaf7eeb5a1e3f996606d3b9d7d/services/galley/src/Galley/Effects/ListItems.hs
haskell
This file is part of the Wire Server implementation. This program is free software: you can redistribute it and/or modify it under later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTI...
# LANGUAGE TemplateHaskell # Copyright ( C ) 2022 Wire Swiss GmbH < > the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any You should have received a copy of the GNU Affero General Public License along mo...
3e4d07a1ad6159ec74ebeaa49510fe5340cdedef95922dc506130c1c1d493d01
ohua-dev/ohua-core
If.hs
| Module : $ Header$ Description : Implementation of ALang transformation for If . Copyright : ( c ) , 2018 . All Rights Reserved . License : EPL-1.0 Maintainer : , Stability : experimental Portability : portable This source code is licensed under the terms described in the asso...
null
https://raw.githubusercontent.com/ohua-dev/ohua-core/8fe0ee90f4a1aea0c5bfabe922b290fed668a7da/core/src/Ohua/ALang/Passes/If.hs
haskell
This is a proposal for `ifRewrite` that uses plated to make sure the recursion is handled correctly. As far as I can tell the other version does not recurse properly onto the branches. This test needs to improve traceM $ "false branch: " <> (show falseBranch) post traversal transformation: now these can become n...
| Module : $ Header$ Description : Implementation of ALang transformation for If . Copyright : ( c ) , 2018 . All Rights Reserved . License : EPL-1.0 Maintainer : , Stability : experimental Portability : portable This source code is licensed under the terms described in the asso...
3728e81be797317607cef592e9ed2af1998647d4e04a251cb856c581b9c294f8
sdiehl/arithmetic-circuits
Affine.hs
module Test.Circuit.Affine where import Circuit.Affine import qualified Data.Map as Map import Protolude import Test.Tasty.QuickCheck ------------------------------------------------------------------------------- -- Generators -----------------------------------------------...
null
https://raw.githubusercontent.com/sdiehl/arithmetic-circuits/18e15deb2438287820664406c0840067c6ffa301/test/Test/Circuit/Affine.hs
haskell
----------------------------------------------------------------------------- Generators ----------------------------------------------------------------------------- | The input vector has to have the correct length, so we want to generate the program and the test input simultaneously. -----------------------------...
module Test.Circuit.Affine where import Circuit.Affine import qualified Data.Map as Map import Protolude import Test.Tasty.QuickCheck arbAffineCircuit :: Arbitrary f => Int -> Int -> Gen (AffineCircuit Int f) arbAffineCircuit numVars size | size <= 0 = oneof $...
4c0cedb7c406ac5c2eaf067419345a1178c2e7732d8a0730f9b561b58577de5b
pjstadig/humane-test-output
reporting_test.cljc
(ns pjstadig.humane-test-output.reporting-test (:require [cljs.test #?(:clj :refer :cljs :refer-macros) [deftest]] #?@(:cljs [[pjstadig.util] [pjstadig.print :as p]]))) #?(:cljs (def report #'pjstadig.util/report-)) #?(:cljs (deftest cljs-smoke-test (report (p/convert-e...
null
https://raw.githubusercontent.com/pjstadig/humane-test-output/7c4c868aa9d7424248761941cd736ac0a5f4a75b/test/pjstadig/humane_test_output/reporting_test.cljc
clojure
(ns pjstadig.humane-test-output.reporting-test (:require [cljs.test #?(:clj :refer :cljs :refer-macros) [deftest]] #?@(:cljs [[pjstadig.util] [pjstadig.print :as p]]))) #?(:cljs (def report #'pjstadig.util/report-)) #?(:cljs (deftest cljs-smoke-test (report (p/convert-e...
9319b31f8ea394118c054337ad9ffc7314517de9607c572f03f1c552d1056f5d
immutant/immutant
undertow.clj
Copyright 2014 - 2017 Red Hat , Inc , and individual contributors . ;; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; -2.0 ;; ;; Unless required by applicable law or agreed to ...
null
https://raw.githubusercontent.com/immutant/immutant/6ff8fa03acf73929f61f2ca75446cb559ddfc1ef/web/src/immutant/web/undertow.clj
clojure
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permiss...
Copyright 2014 - 2017 Red Hat , Inc , and individual contributors . distributed under the License is distributed on an " AS IS " BASIS , (ns immutant.web.undertow "Advanced options specific to the Undertow web server used by Immutant" (:require [immutant.util :refer (at-exit)] [immutant.internal.ut...
461c6318f652515dd7e7c191aa334e21f5b9f075d0d8a13144ab4c77a9107dd3
crategus/cl-cffi-gtk
glib.key-file.lisp
;;; ---------------------------------------------------------------------------- ;;; glib.key-value.lisp ;;; The documentation of this file is taken from the GLib 2.64 Reference Manual and modified to document the Lisp binding to the GLib library . ;;; See <>. The API documentation of the Lisp binding is availabl...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/74a78a6912a96f982644f3ee5ab7b8396cc2235f/glib/glib.key-file.lisp
lisp
---------------------------------------------------------------------------- glib.key-value.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 GLib 2.64 Reference Manual and modified to document the Lisp binding to the GLib library . available from < -cffi-gtk/ > . Copyright ( C ) 2020 - 2021 as published by the Free Software Foundation , either version 3 of the the GNU Lesser General Public Licen...
13bbf3a001d103c159f633486673df08aceb18acbf46aea507cb145672f00cdc
graninas/Andromeda
Interpreter.hs
module Andromeda.Language.LogicControl.Interpreter where import Andromeda.Language.LogicControl.AST import Andromeda.Types.Language.Scripting toAst :: ControlProgram () -> ProgramAst toAst p = undefined
null
https://raw.githubusercontent.com/graninas/Andromeda/6b56052bca64fc6f55a28f8001dd775a744b95bf/src/Andromeda/Language/LogicControl/Interpreter.hs
haskell
module Andromeda.Language.LogicControl.Interpreter where import Andromeda.Language.LogicControl.AST import Andromeda.Types.Language.Scripting toAst :: ControlProgram () -> ProgramAst toAst p = undefined
3d81fa38c0f4bb56ad2e223fcf34429fd10b0fbcb6cc6377f465296730c7825f
jimweirich/sicp-study
ex1_28.scm
SICP 1.28 Exercise 1.28 . One variant of the Fermat test that can not be fooled is called the - Rabin test ( Miller 1976 ; 1980 ) . This starts from an alternate form of Fermat 's Little ;; Theorem, which states that if n is a prime number and a is any ;; positive integer less than n, then a raised to the ...
null
https://raw.githubusercontent.com/jimweirich/sicp-study/bc5190e04ed6ae321107ed6149241f26efc1b8c8/scheme/chapter1/ex1_28.scm
scheme
Theorem, which states that if n is a prime number and a is any positive integer less than n, then a raised to the (n - 1)st power whenever we perform the squaring step in expmod, we check to see if modulo n. It is possible to prove that if such a nontrivial square that if n is an odd number that is not prime, th...
SICP 1.28 Exercise 1.28 . One variant of the Fermat test that can not be 1980 ) . This starts from an alternate form of Fermat 's Little is congruent to 1 modulo n. To test the primality of a number n by the - Rabin test , we pick a random number a < n and raise a to the ( n - 1)st power modulo n using ...
4bd7b1d5a1eedcf5db6f173242b039c84e38fa2c17a05c712312d88bceac3318
dmillett/clash
spec_test.clj
(ns clash.spec-test (:require [clojure.test :refer :all]))
null
https://raw.githubusercontent.com/dmillett/clash/ea36a916ccfd9e1c61cb88ac6147b6a952f33dcf/test/clash/spec_test.clj
clojure
(ns clash.spec-test (:require [clojure.test :refer :all]))
d1df80d96056edd99588f5d286f824419416af7541d28d87daee8c1f72bbcf3f
ghc/packages-dph
Locked.hs
# LANGUAGE CPP , NoMonomorphismRestriction # #include "fusion-phases.h" -- | Locked streamers and zippers. -- -- The streams are 'locked together', meaning they have the same length and -- cannot yield 'Skip' states. -- -- These functions are used for processing data read directly from vectors -- where we know...
null
https://raw.githubusercontent.com/ghc/packages-dph/64eca669f13f4d216af9024474a3fc73ce101793/dph-prim-seq/Data/Array/Parallel/Unlifted/Stream/Locked.hs
haskell
| Locked streamers and zippers. The streams are 'locked together', meaning they have the same length and cannot yield 'Skip' states. These functions are used for processing data read directly from vectors where we know the vectors all have the same length. ----------------------------------------- ...
# LANGUAGE CPP , NoMonomorphismRestriction # #include "fusion-phases.h" module Data.Array.Parallel.Unlifted.Stream.Locked ( stream2, lockedZip2S , stream3, lockedZip3S , stream4, lockedZip4S , stream5, lockedZip5S , stream6, lockedZip6S , stream7,...
78c08cc7154c0e3658f3022ded0e0ab784b3271170b630c0439c77b192cfb2e1
mransan/ocaml-protoc
parse_extension_range.ml
let parse s = Pb_parsing_parser.extension_range_list_ Pb_parsing_lexer.lexer (Lexing.from_string s) let parse_extension s = Pb_parsing_parser.extension_ Pb_parsing_lexer.lexer (Lexing.from_string s) let parse_reserved s = Pb_parsing_parser.reserved_ Pb_parsing_lexer.lexer (Lexing.from_string s) module Pt =...
null
https://raw.githubusercontent.com/mransan/ocaml-protoc/e43b509b9c4a06e419edba92a0d3f8e26b0a89ba/src/tests/unit-tests/parse_extension_range.ml
ocaml
let parse s = Pb_parsing_parser.extension_range_list_ Pb_parsing_lexer.lexer (Lexing.from_string s) let parse_extension s = Pb_parsing_parser.extension_ Pb_parsing_lexer.lexer (Lexing.from_string s) let parse_reserved s = Pb_parsing_parser.reserved_ Pb_parsing_lexer.lexer (Lexing.from_string s) module Pt =...
0f69820e7b5af0d172372aa2fa8bdbe45ae674c1ef7ceba9a4e1ef77eb60f7df
oakes/Paravim
text.clj
(ns paravim.text (:require [play-cljc.text :as text])) (def bitmap-size 1024) (def bitmaps {:firacode (text/->bitmap bitmap-size bitmap-size) :roboto (text/->bitmap bitmap-size bitmap-size)}) (def font-height 128) (def baked-fonts {:firacode (text/->baked-font "ttf/FiraCode-Regular.ttf" font-height (:f...
null
https://raw.githubusercontent.com/oakes/Paravim/871b9adf4e9819a7b9f2c63466c55640f0f8c280/src/paravim/text.clj
clojure
(ns paravim.text (:require [play-cljc.text :as text])) (def bitmap-size 1024) (def bitmaps {:firacode (text/->bitmap bitmap-size bitmap-size) :roboto (text/->bitmap bitmap-size bitmap-size)}) (def font-height 128) (def baked-fonts {:firacode (text/->baked-font "ttf/FiraCode-Regular.ttf" font-height (:f...
1222b9f0a1f885a69a2e8fa9100cfe766651490685a3bd517d4c3c627e76ee19
screenshotbot/screenshotbot-oss
compare.lisp
;;;; Copyright 2018-Present Modern Interpreters Inc. ;;;; 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 /. (uiop:define-package :screenshotbot/dashboard/compare For bknr (:use #:cl #...
null
https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/284acd5998e6c81107bc5315b22bdcaf55f8db5a/src/screenshotbot/dashboard/compare.lisp
lisp
Copyright 2018-Present Modern Interpreters Inc. datastore to see if there are any previous images Avoid computation for large reverts designed to handle that yet. for debugging: e.g. if we need to delete the comparison warmup in the order that the report would be typically viewed. don't show the tabulation
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 /. (uiop:define-package :screenshotbot/dashboard/compare For bknr (:use #:cl #:alexandria #:nibble #:screenshotbot/templ...
120413ca9660a6c5785b8a28ecb4ee7035ca2309bcc5ff099d68fa643a418242
kudu-dynamics/blaze
TestBitOp.hs
module Blaze.Types.Pil.Op.TestBitOp where -- This module is generated. Please use app/gen_pil_ops/Main.hs to modify. import Blaze.Prelude data TestBitOp expr = TestBitOp { left :: expr , right :: expr } deriving (Eq, Ord, Show, Functor, Foldable, Traversable, Generic, FromJSON, ToJSON) instance Hashable a => ...
null
https://raw.githubusercontent.com/kudu-dynamics/blaze/a385bb3b37a0a0e061217ebdd70dd0eecbb20332/src/Blaze/Types/Pil/Op/TestBitOp.hs
haskell
This module is generated. Please use app/gen_pil_ops/Main.hs to modify.
module Blaze.Types.Pil.Op.TestBitOp where import Blaze.Prelude data TestBitOp expr = TestBitOp { left :: expr , right :: expr } deriving (Eq, Ord, Show, Functor, Foldable, Traversable, Generic, FromJSON, ToJSON) instance Hashable a => Hashable (TestBitOp a)
4993c70664f95e621f935d6bb3d43f5aee57f0182e2a7eb2cd6ae59bbe3ab669
synduce/Synduce
parallel_max.ml
* @synduce -s 2 --no - lifting -NB -n 30 type 'a list = | Elt of 'a | Cons of 'a * 'a list type 'a clist = | Single of 'a | Concat of 'a clist * 'a clist let rec clist_to_list = function | Single a -> Elt a | Concat (x, y) -> dec y x and dec l1 = function | Single a -> Cons (a, clist_to_list l1) | C...
null
https://raw.githubusercontent.com/synduce/Synduce/42d970faa863365f10531b19945cbb5cfb70f134/benchmarks/incomplete/sortedlist/parallel_max.ml
ocaml
* Predicate asserting that a concat-list is partitioned.
* @synduce -s 2 --no - lifting -NB -n 30 type 'a list = | Elt of 'a | Cons of 'a * 'a list type 'a clist = | Single of 'a | Concat of 'a clist * 'a clist let rec clist_to_list = function | Single a -> Elt a | Concat (x, y) -> dec y x and dec l1 = function | Single a -> Cons (a, clist_to_list l1) | C...
95b0bf6b42aab21897a7b44e6e3d8edfdf088011a6879236818c58bfeb59f106
mirage/mirage
help.ml
* Copyright ( c ) 2015 * Copyright ( c ) 2021 < > * * 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 P...
null
https://raw.githubusercontent.com/mirage/mirage/bbab59bb522e4a5acd4342ea9e835024838a7644/test/functoria/e2e/help.ml
ocaml
cut a man page into sections
* Copyright ( c ) 2015 * Copyright ( c ) 2021 < > * * 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 P...
942f1de8691016c47409a9d81c1d29664cf0e447d1e0d8e075b4eaf339375030
commercialhaskell/stack
Docker.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} | Run commands in containers module Stack.Docker ( dockerCmdName , dockerHelpOptName , dockerPullCmdName , entrypoint , preventInContainer , pull , reset , reExecArgName , DockerException (....
null
https://raw.githubusercontent.com/commercialhaskell/stack/80429690da92c634cb129f99f1507dbc47a70d45/src/Stack/Docker.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RecordWildCards # Only way to get old umask seems to be to change it, so set it back afterward In any event, I'm not even sure _why_ we need to drop a file extension here | Error if running in a container. in place for now, for users who haven't upgraded yet. Since $...
# LANGUAGE NoImplicitPrelude # | Run commands in containers module Stack.Docker ( dockerCmdName , dockerHelpOptName , dockerPullCmdName , entrypoint , preventInContainer , pull , reset , reExecArgName , DockerException (..) , getProjectRoot , runContainerAndExit ) where import qualified ...
de6e89eec2ba88aa1ca48b35c22fac26e608224ed7edd1314cde58b702a63e4f
kappelmann/engaging-large-scale-functional-programming
Internal.hs
# LANGUAGE Unsafe # # LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ExistentialQuantification # # LANGUAGE RecordWildCards # {-# LANGUAGE PackageImports #-} # LANGUAGE NoImplicitPrelude # {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE TupleSections # # LANGUAGE StandaloneDeriving #...
null
https://raw.githubusercontent.com/kappelmann/engaging-large-scale-functional-programming/99d8b76902320fd8f2d0999bbc9b2a82da09bc72/resources/turtle_graphics/mock/Mock/System/IO/Internal.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE PackageImports # # LANGUAGE DeriveDataTypeable # # LANGUAGE DoAndIfThenElse # the handle used by the action flagging the error. what it was. location. error type specific information. filename the error is related to. IO definition World manipulation Give control back...
# LANGUAGE Unsafe # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE ExistentialQuantification # # LANGUAGE RecordWildCards # # LANGUAGE NoImplicitPrelude # # LANGUAGE TupleSections # # LANGUAGE StandaloneDeriving # module Mock.System.IO.Internal ( IO, MVar, IORef, Handle, IOMode (..), SeekMode (..), FilePath, H...
b6a9778add1da495bd8fcf16c9c4bc8dcaaa6b4b5fc8955f14a6ef24c8b42109
CompSciCabal/SMRTYPRTY
exercises.rkt
#lang racket (require scheme/mpair) (displayln "exercise 3.10") (displayln "--- TODO ---") (displayln "exercise 3.11") (displayln "--- TODO ---") (displayln "exercise 3.12") (define (append x y) (if (empty? x) y (mcons (mcar x) (append (mcdr x) y)))) (define (append! x y) (set-mcdr! (last-pair x) y)...
null
https://raw.githubusercontent.com/CompSciCabal/SMRTYPRTY/4a5550789c997c20fb7256b81469de1f1fce3514/sicp/v2/3.2/csaunders/exercises.rkt
racket
> '(a b c d) > '(b) > '(a b c d) > '(b c d) x [a|-]->[b|/] y [c|-]->[d|/] (append! x y) | | |->[c|-]->[d|/] [a|-]->[b|-]->[c|-]-| ^ | |------------------| Mystery "in place" reverses the list [a|-]->[b|-]->[c|-]->[d|/] [d|-]->[c|-]->[b|-]->[a|/] x1 [wow|-]->[b|/] ^----...
#lang racket (require scheme/mpair) (displayln "exercise 3.10") (displayln "--- TODO ---") (displayln "exercise 3.11") (displayln "--- TODO ---") (displayln "exercise 3.12") (define (append x y) (if (empty? x) y (mcons (mcar x) (append (mcdr x) y)))) (define (append! x y) (set-mcdr! (last-pair x) y)...
04eb74202232a296e370f7b1f4a8188651aed3c8fcbd9c7df433974b09de0463
CloudI/CloudI
hackney_util.erl
%%% -*- erlang -*- %%% This file is part of hackney released under the Apache 2 license . %%% See the NOTICE for more information. %%% -module(hackney_util). -export([filter_options/3]). -export([set_option_default/3]). -export([require/1]). -export([maybe_apply_defaults/2]). -export([is_ipv6/1]). -export([privdir/0...
null
https://raw.githubusercontent.com/CloudI/CloudI/3e45031c7ee3e974ead2612ea7dd06c9edf973c9/src/external/cloudi_x_hackney/src/hackney_util.erl
erlang
-*- erlang -*- See the NOTICE for more information. @doc filter a proplists and only keep allowed keys @doc set the default options in a proplists if not defined @doc Start the given applications if they were not already started. try to get relative priv dir. useful for tests.
This file is part of hackney released under the Apache 2 license . -module(hackney_util). -export([filter_options/3]). -export([set_option_default/3]). -export([require/1]). -export([maybe_apply_defaults/2]). -export([is_ipv6/1]). -export([privdir/0]). -export([mod_metrics/0]). -export([to_atom/1]). -export([merge_...
81d0bcaef206935d997fd28981408ff4fa65028cfcf032888b0c820f91abb03c
sbcl/sbcl
float-inf-nan.lisp
;;;; This file contains the definitions of float-specific number support ( other than irrational stuff , which is in irrat . ) There is code in here that assumes there are only two float formats : IEEE ;;;; single and double. (LONG-FLOAT support has been added, but bugs ;;;; may still remain due to old code which a...
null
https://raw.githubusercontent.com/sbcl/sbcl/63b95f9e7d9c7fbb02da834dc16edfe8eae24e6a/src/code/float-inf-nan.lisp
lisp
This file contains the definitions of float-specific number single and double. (LONG-FLOAT support has been added, but bugs may still remain due to old code which assumes this dichotomy.) more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the CO...
support ( other than irrational stuff , which is in irrat . ) There is code in here that assumes there are only two float formats : IEEE This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and rel...
65cde48b11a82b56bf3865bdaccb7af4221f1ae07d0f20be1a952d2af83f2125
ashinn/chibi-scheme
vector.scm
(define (vector-unfold! f vec start end . o) (let lp ((i start) (seeds o)) (if (< i end) (call-with-values (lambda () (apply f i seeds)) (lambda (x . seeds) (vector-set! vec i x) (lp (+ i 1) seeds)))))) (define (vector-unfold-right! f vec start end . o) (let lp ((i (-...
null
https://raw.githubusercontent.com/ashinn/chibi-scheme/8b27ce97265e5028c61b2386a86a2c43c1cfba0d/lib/srfi/133/vector.scm
scheme
(define (vector-unfold! f vec start end . o) (let lp ((i start) (seeds o)) (if (< i end) (call-with-values (lambda () (apply f i seeds)) (lambda (x . seeds) (vector-set! vec i x) (lp (+ i 1) seeds)))))) (define (vector-unfold-right! f vec start end . o) (let lp ((i (-...
ae0b39cd82f99d17f584df37fd5375c308397112a86615bbca5346cc0bcfdc74
tmattio/inquire
prompt_input.ml
module Input_buffer = struct let create () = ref "" let is_empty t = !t = "" let add_char t chr = t := !t ^ Char.escaped chr let rm_last_char t = if is_empty t then () else t := String.sub !t 0 (String.length !t - 1) let get t = !t let print t = let input = !t in print_strin...
null
https://raw.githubusercontent.com/tmattio/inquire/f5bb64ab8d9ed8987c8e529007cf380ab67fd9fd/lib/prompts/prompt_input.ml
ocaml
Enter Enter, no input Enter, with input Handle ^L
module Input_buffer = struct let create () = ref "" let is_empty t = !t = "" let add_char t chr = t := !t ^ Char.escaped chr let rm_last_char t = if is_empty t then () else t := String.sub !t 0 (String.length !t - 1) let get t = !t let print t = let input = !t in print_strin...
2ab2beca49a0fd38d3e8a4f49fb4bcb4137970f3f3a8a4a34d631048d704633f
chicken-mobile/chicken-sdl2-android-builder
audio.scm
;; chicken - sdl2 : CHICKEN Scheme bindings to Simple DirectMedia Layer 2 ;; Copyright © 2013 , 2015 - 2016 . ;; All rights reserved. ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions ;; are met: ;; ;; - Redistributions...
null
https://raw.githubusercontent.com/chicken-mobile/chicken-sdl2-android-builder/90ef1f0ff667737736f1932e204d29ae615a00c4/eggs/sdl2/lib/sdl2-internals/functions/audio.scm
scheme
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributio...
chicken - sdl2 : CHICKEN Scheme bindings to Simple DirectMedia Layer 2 Copyright © 2013 , 2015 - 2016 . " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT COPYRIGHT HOLDER OR FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT N...
be427abc336a22f99ae24aa597504a87ee9cf495c13db1699d7d061ce1f31ca1
roswell/roswell
install-clisp-head.lisp
(roswell:include "util-install-quicklisp") (defpackage :roswell.install.clisp-head (:use :cl :roswell.install :roswell.util :roswell.locations)) (in-package :roswell.install.clisp-head) (defun clisp-head-variant () (let ((uname (uname)) (variant (opt "variant"))) (cond (variant variant) ((and...
null
https://raw.githubusercontent.com/roswell/roswell/fda4e6563c65f64d5a5b08f12691e2aca17c13fb/lisp/install-clisp-head.lisp
lisp
TBD
(roswell:include "util-install-quicklisp") (defpackage :roswell.install.clisp-head (:use :cl :roswell.install :roswell.util :roswell.locations)) (in-package :roswell.install.clisp-head) (defun clisp-head-variant () (let ((uname (uname)) (variant (opt "variant"))) (cond (variant variant) ((and...
3ee672ef30a876c7093a62f8777d35e5fd2971d16284e76ee40698bc85076e9b
facebook/duckling
Tests.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. module Duckling.AmountOfMoney.VI.Tests ( tests ) where import Prelude import Data.String import Test.Tast...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/tests/Duckling/AmountOfMoney/VI/Tests.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree.
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.AmountOfMoney.VI.Tests ( tests ) where import Prelude import Data.String import Test.Tasty import Duckling.Dimensions.Types import Duckling.AmountOfMoney.VI.Corpus import Duckling.Testing.Asserts tests :: TestTree tests = testGroup "VI Tests" [...
e51665699aff42a78ce12d45a874f3d3499b23a9bea6c7093c2d8c9a66e4c34c
Clozure/ccl-tests
documentation.lsp
;-*- Mode: Lisp -*- Author : Created : Tue Dec 14 07:30:01 2004 ;;;; Contains: Tests of DOCUMENTATION (in-package :cl-test) ;;; documentation (x function) (doc-type (eql 't)) (deftest documentation.function.t.1 (let* ((sym (gensym))) (eval `(defun ,sym () nil)) (documentation (symbol-functio...
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/documentation.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of DOCUMENTATION documentation (x function) (doc-type (eql 't)) documentation (x function) (doc-type (eql 'function)) documentation (x list) (doc-type (eql 'function)) documentation (x list) (doc-type (eql 'compiler-macro)) documentation (x symbol) (doc-type (eql 'function))...
Author : Created : Tue Dec 14 07:30:01 2004 (in-package :cl-test) (deftest documentation.function.t.1 (let* ((sym (gensym))) (eval `(defun ,sym () nil)) (documentation (symbol-function sym) t)) nil) (deftest documentation.function.t.2 (let* ((sym (gensym))) (eval `(defun ,sym () nil)) ...
f3a6a98f6b5c79b8e3ba97692e9c5809b91bc7b1daed15cc8046521e3dd77d7d
ocaml/ocaml
functors.ml
(* TEST * expect *) module type a module type b module type c module type x = sig type x end module type y = sig type y end module type z = sig type z end module type empty = sig end module Empty = struct end module X: x = struct type x end module Y: y = struct type y end module Z: z = struct type z end module...
null
https://raw.githubusercontent.com/ocaml/ocaml/3490eaa060cd1e2b4143bf5df42fdbeb121f0c4d/testsuite/tests/typing-modules/functors.ml
ocaml
TEST * expect * Too many arguments * Dependent types * Application side struct type z = K.y end struct type z = K.y end * Inclusion side * Module type equalities * Name collision test * Deeply nested errors * Ugly cases * Abstract module type woes * Divergent arities * Hide your arity from the world ...
module type a module type b module type c module type x = sig type x end module type y = sig type y end module type z = sig type z end module type empty = sig end module Empty = struct end module X: x = struct type x end module Y: y = struct type y end module Z: z = struct type z end module F(X:x)(Y:y)(Z:z) = st...
a805d4a91d706c16af5cfd7431685dbf0ce2bde3994bd24dda16afecef3efd9e
monadfix/ormolu-live
PrimOp.hs
( c ) The GRASP / AQUA Project , Glasgow University , 1992 - 1998 \section[PrimOp]{Primitive operations ( machine - level ) } (c) The GRASP/AQUA Project, Glasgow University, 1992-1998 \section[PrimOp]{Primitive operations (machine-level)} -} # LANGUAGE CPP # module PrimOp ( PrimOp(..), PrimOpVecCat(.....
null
https://raw.githubusercontent.com/monadfix/ormolu-live/d8ae72ef168b98a8d179d642f70352c88b3ac226/ghc-lib-parser-8.10.1.20200412/compiler/prelude/PrimOp.hs
haskell
supplies: data PrimOp = ... supplies primOpTag :: PrimOp -> Int An @Enum@-derived list would be better; meanwhile... (ToDo) string :: T -> T -> T string :: T -> T string :: T -> T -> Int# string :: \/a1..an . T1 -> .. -> Tk -> T ************************************************************************ * ...
( c ) The GRASP / AQUA Project , Glasgow University , 1992 - 1998 \section[PrimOp]{Primitive operations ( machine - level ) } (c) The GRASP/AQUA Project, Glasgow University, 1992-1998 \section[PrimOp]{Primitive operations (machine-level)} -} # LANGUAGE CPP # module PrimOp ( PrimOp(..), PrimOpVecCat(.....
b8efb020d342757bfda0f575cda2e58ca061241b738359d1c7bc041d38a19066
fendor/hsimport
ModuleTest12.hs
{-# Language PatternGuards #-} module Blub where import Control.Monad
null
https://raw.githubusercontent.com/fendor/hsimport/9be9918b06545cfd7282e4db08c2b88f1d8162cd/tests/goldenFiles/ModuleTest12.hs
haskell
# Language PatternGuards #
module Blub where import Control.Monad
1ce335d2c10d28461e2862f8c10c384150d827aa4982b6c34cd915599c2199be
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
OrdersPaymentMethodOptionsAfterpayClearpay.hs
{-# LANGUAGE MultiWayIf #-} CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} -- | Contains the types generated from the schema OrdersPaymentMethodOptionsAfterpayClearpay module StripeAPI.Types.OrdersPay...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Types/OrdersPaymentMethodOptionsAfterpayClearpay.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | Contains the types generated from the schema OrdersPaymentMethodOptionsAfterpayClearpay | Defines the object schema located at @components.schemas.orders_payment_method_options_afterpay_clearpay@ in the specification. | capture_method: Controls when the funds ...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . module StripeAPI.Types.OrdersPaymentMethodOptionsAfterpayClearpay where import qualified Control.Monad.Fail import qualified Data.Aeson import qualified Data.Aeson as Data.Aeson.Encoding....
2ad55013783b4cc6a68c8e1f8de23b2dbe6b9d0730f6da2ad79e248143cfa082
ubf/ubf
ubf.erl
%%% The MIT License %%% Copyright ( C ) 2011 - 2016 by < > Copyright ( C ) 2002 by %%% %%% 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 li...
null
https://raw.githubusercontent.com/ubf/ubf/c876f684fbd4959548ace1eb1cfc91941f93d377/src/ubf.erl
erlang
The MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following conditions: The above...
Copyright ( C ) 2011 - 2016 by < > Copyright ( C ) 2002 by in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITH...
0f946dfa3e41384dbd5a5d990bdd0de412c4da75083a684909b66795a8248911
sadiqj/ocaml-esp32
env.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/sadiqj/ocaml-esp32/33aad4ca2becb9701eb90d779c1b1183aefeb578/typing/env.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Types module PathMap : Map.S with type key = Path.t and type 'a t = 'a Map...
68a21d40fc303e7d8377b9013eaee94b86498671c7bc1a2b8766a398bb4b9f61
scrintal/heroicons-reagent
bars_2.cljs
(ns com.scrintal.heroicons.mini.bars-2) (defn render [] [:svg {:xmlns "" :viewBox "0 0 20 20" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M2 6.75A.75.75 0 012.75 6h14.5a.75.75 0 010 1.5H2.75A.75.75 0 012 6.75zm0 6.5a.75.75...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/mini/bars_2.cljs
clojure
(ns com.scrintal.heroicons.mini.bars-2) (defn render [] [:svg {:xmlns "" :viewBox "0 0 20 20" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M2 6.75A.75.75 0 012.75 6h14.5a.75.75 0 010 1.5H2.75A.75.75 0 012 6.75zm0 6.5a.75.75...
9eb410f944325c11117d32a3fa823302f2065428cf360a8366e04e1f0df5ac7e
scrive/hpqtypes
Catalog.hs
# LANGUAGE FlexibleContexts , OverloadedStrings , RecordWildCards , ScopedTypeVariables , TypeFamilies # , ScopedTypeVariables, TypeFamilies #-} # OPTIONS_GHC -Wall # import Control.Arrow (second) import Control.Monad import Control.Monad.Base import Control.Monad.Catch import Data.Function import Data.Int impor...
null
https://raw.githubusercontent.com/scrive/hpqtypes/5b652645d5fdebbec8dbd1a68583fbcb8dfe5d93/examples/Catalog.hs
haskell
| Generic 'putStrLn'. | Get connection string from command line argument. -------------------------------------- | Representation of a book. | Intermediate representation of 'Book'. | Create needed tables and types. | Drop previously created database structures. -------------------------------------- | Display a...
# LANGUAGE FlexibleContexts , OverloadedStrings , RecordWildCards , ScopedTypeVariables , TypeFamilies # , ScopedTypeVariables, TypeFamilies #-} # OPTIONS_GHC -Wall # import Control.Arrow (second) import Control.Monad import Control.Monad.Base import Control.Monad.Catch import Data.Function import Data.Int impor...
8ba4bb87bb02bc7b152249445d739a2249809ef2511661fc52c840fbbbe3158a
threatgrid/ctia
core.clj
(ns ctia.schemas.core) (defmacro def-acl-schema [name-sym ddl spec-kw-ns] `(do ~ddl ~spec-kw-ns (def ~name-sym))) (defmacro def-stored-schema [name-sym _sch] `(def ~name-sym)) (defmacro def-advanced-acl-schema [{:keys [name-sym ddl ...
null
https://raw.githubusercontent.com/threatgrid/ctia/4d42a63f472490f36814c1855faf50beb45c75ba/.clj-kondo/ctia/schemas/core.clj
clojure
(ns ctia.schemas.core) (defmacro def-acl-schema [name-sym ddl spec-kw-ns] `(do ~ddl ~spec-kw-ns (def ~name-sym))) (defmacro def-stored-schema [name-sym _sch] `(def ~name-sym)) (defmacro def-advanced-acl-schema [{:keys [name-sym ddl ...
3fabba57f46fcca2a8dba1dccde48cf650a61187d6da455fd1c487003a8d47ea
tibbe/event
Thread.hs
# LANGUAGE BangPatterns , ForeignFunctionInterface , NoImplicitPrelude # module System.Event.Thread ( ensureIOManagerIsRunning , threadWaitRead , threadWaitWrite , threadDelay , registerDelay ) where import Control.Concurrent.MVar (modifyMVar_) import Data.IORef (IORef, newIORef, readIOR...
null
https://raw.githubusercontent.com/tibbe/event/2ca43e49327aa7854396b800ff4184d8b00a69f0/src/System/Event/Thread.hs
haskell
| Suspends the current thread for a given number of microseconds There is no guarantee that the thread will be rescheduled promptly when the delay has expired, but the thread will never continue to run /earlier/ than specified. microseconds. The caveats associated with threadDelay also apply. | Block the curren...
# LANGUAGE BangPatterns , ForeignFunctionInterface , NoImplicitPrelude # module System.Event.Thread ( ensureIOManagerIsRunning , threadWaitRead , threadWaitWrite , threadDelay , registerDelay ) where import Control.Concurrent.MVar (modifyMVar_) import Data.IORef (IORef, newIORef, readIOR...
0a666d2eed7e703484bb3277d6d06208c9ef00981b7e2a611e8fbdfb9063419d
eugeneia/erlangen
algorithms.lisp
Generic algorithms (in-package :erlangen.algorithms) (defun repeat-pace (function &key (delta 0.01) (maxsleep 0.1)) "Repeatedly call FUNCTION, but pace interval " (loop with sleep = 0 for progress = (funcall function) if progress do (setf sleep 0) else do (setf sleep (max (+ sleep delta)...
null
https://raw.githubusercontent.com/eugeneia/erlangen/204166b33833c49841617bbc6ecfaf4dd77cf6d8/algorithms.lisp
lisp
Generic algorithms (in-package :erlangen.algorithms) (defun repeat-pace (function &key (delta 0.01) (maxsleep 0.1)) "Repeatedly call FUNCTION, but pace interval " (loop with sleep = 0 for progress = (funcall function) if progress do (setf sleep 0) else do (setf sleep (max (+ sleep delta)...
7fe5a94b3c9a0ce78e8deed9457c748a016efc781f878fdf9b90b4899e3242a4
plum-umd/fundamentals
maze-data.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname maze-data) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-de...
null
https://raw.githubusercontent.com/plum-umd/fundamentals/eb01ac528d42855be53649991a17d19c025a97ad/1/www/code/maze-data.rkt
racket
about the language level of this file in a form that our tools can easily process.
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname maze-data) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (define MAZE0 (list (make-posn 0 0) (make-posn 1 ...
874d174d113a9e80f8fe24feed693770fb7e15bac70c1486d4734c5ed389e908
gbwey/persistent-odbc
TestODBC.hs
-- stack build --test --flag persistent-odbc:tester --stack-yaml=stack865.yaml stack --stack - yaml = stack865.yaml exec -- testodbc s -- stack build --test --flag persistent-odbc:tester --stack-yaml=stack8103.yaml stack --stack - yaml = stack8103.yaml exec -- testodbc s -- cabal configure -f tester -- cabal build ...
null
https://raw.githubusercontent.com/gbwey/persistent-odbc/cfe90437486a9e738c02cf22a0de43d4ac99619b/examples/TestODBC.hs
haskell
stack build --test --flag persistent-odbc:tester --stack-yaml=stack865.yaml stack - yaml = stack865.yaml exec -- testodbc s stack build --test --flag persistent-odbc:tester --stack-yaml=stack8103.yaml stack - yaml = stack8103.yaml exec -- testodbc s cabal configure -f tester cabal build TestODBC s # OPTIONS -Wall ...
# LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE FlexibleContexts # # LANGUAGE UndecidableInstances # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE ...
baafb4ee62a6016e763a57b683aad1f082ec331e89c24d05257fd72c51bab6b9
babashka/babashka
instant.clj
(ns babashka.impl.clojure.instant (:require [clojure.instant :as i] [sci.core :as sci])) (def ins (sci/create-ns 'clojure.instant nil)) (def instant-namespace {'read-instant-date (sci/copy-var i/read-instant-date ins) 'parse-timestamp (sci/copy-var i/parse-timestamp ins)})
null
https://raw.githubusercontent.com/babashka/babashka/76accde8dabe2acc24bb1b025345d4c4093bcbec/src/babashka/impl/clojure/instant.clj
clojure
(ns babashka.impl.clojure.instant (:require [clojure.instant :as i] [sci.core :as sci])) (def ins (sci/create-ns 'clojure.instant nil)) (def instant-namespace {'read-instant-date (sci/copy-var i/read-instant-date ins) 'parse-timestamp (sci/copy-var i/parse-timestamp ins)})
699f00770049978d500499857f3b7992c0a1fd42e20191cf2249d500b728f253
jsarracino/spyder
Imp.hs
module Language.Spyder.AST.Imp ( Statement(..) , Expr(..) , Bop(..) , Uop(..) , Type(..) , Block(..) , VDecl , stripTy ) where data Bop = Plus | Minus | Mul | Div | Lt | Gt | Le | Ge | And | Or | Eq | Neq | Mod deriving (Eq, Show, Ord) -- Numeric negation and boolean negation data Uop = ...
null
https://raw.githubusercontent.com/jsarracino/spyder/a2f6d08eb2a3907d31a89ae3d942b50aaba96a88/Language/Spyder/AST/Imp.hs
haskell
Numeric negation and boolean negation Variables Integers Arrays Binary operations Array indexing e.g. foo[bar] function calls (not procedure calls) simple statements variable decls assignment e.g. x = y forin loops with optional index capture while loops complex statements
module Language.Spyder.AST.Imp ( Statement(..) , Expr(..) , Bop(..) , Uop(..) , Type(..) , Block(..) , VDecl , stripTy ) where data Bop = Plus | Minus | Mul | Div | Lt | Gt | Le | Ge | And | Or | Eq | Neq | Mod deriving (Eq, Show, Ord) data Uop = Neg | Not deriving (Eq, Show, Ord) d...
e184cc34e0a3997094f2eb477bbfb47a4c83fa4617bb0c039c34c9bf71965425
agajews/soup-lang
Bootstrap.hs
# LANGUAGE FlexibleContexts # module Soup.Bootstrap ( initType, ) where import Soup.Builtins import Soup.Env import Soup.Eval import Soup.Parser import Soup.Value import Control.Monad.Except import Data.Char import qualified Data.Map as Map initType :: Eval Value initType = do pexpType <- genIdent "pexp" ...
null
https://raw.githubusercontent.com/agajews/soup-lang/1c926f5853fe18244e33f0f90830db49f7fb827e/Soup/Bootstrap.hs
haskell
# LANGUAGE FlexibleContexts # module Soup.Bootstrap ( initType, ) where import Soup.Builtins import Soup.Env import Soup.Eval import Soup.Parser import Soup.Value import Control.Monad.Except import Data.Char import qualified Data.Map as Map initType :: Eval Value initType = do pexpType <- genIdent "pexp" ...
2627934721da1c2cce5c35a63265225cab9d391530b6ae519f5e3be881784e6d
brendanhay/amazonka
DocumentSourceType.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # {-# LANGUAGE StrictData #-} # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # Derived from AWS service...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-workdocs/gen/Amazonka/WorkDocs/Types/DocumentSourceType.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # Derived from AWS service descriptions , licensed under Apache 2.0 . Module : A...
3f3e1c8995155a31940063efffd6ec43664fb0f4a1ea6e8b757581e6cdb264c9
dnaeon/cl-migratum
test-suite.lisp
Copyright ( c ) 2020 - 2022 Nikolov < > ;; All rights reserved. ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions ;; are met: ;; 1 . Redistributions of source code must retain the above copyright ;; notice, this lis...
null
https://raw.githubusercontent.com/dnaeon/cl-migratum/b28031405ca5a43bee85af5da6ef761ceb951d0d/t/test-suite.lisp
lisp
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: notice, this list of conditions and the following disclaimer in this position and unchanged. notice, this list of conditions and the fo...
Copyright ( c ) 2020 - 2022 Nikolov < > 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above copyright THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S ) ` ` AS IS '' AND ANY EXPRESS OR INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL ...
5882c99656d9e1115228e18498296b38d0f18b73d18bb9150c008dd190b698fe
valderman/haste-compiler
Linker.hs
# LANGUAGE GeneralizedNewtypeDeriving , MultiParamTypeClasses , FlexibleContexts , OverloadedStrings , CPP # FlexibleContexts, OverloadedStrings, CPP #-} module Haste.Linker (link) where import Haste.Config import Haste.Module import qualified Data.Map as M import qualified Data.Set as S imp...
null
https://raw.githubusercontent.com/valderman/haste-compiler/47d942521570eb4b8b6828b0aa38e1f6b9c3e8a8/src/Haste/Linker.hs
haskell
| The program entry point. This will need to change when we start supporting building "binaries" using cabal, since we'll have all sorts of funny package names then. | Link a program using the given config and input file name. | Produce an info message if verbose reporting is enabled. | Log a message to stdou...
# LANGUAGE GeneralizedNewtypeDeriving , MultiParamTypeClasses , FlexibleContexts , OverloadedStrings , CPP # FlexibleContexts, OverloadedStrings, CPP #-} module Haste.Linker (link) where import Haste.Config import Haste.Module import qualified Data.Map as M import qualified Data.Set as S imp...
2e34d5f8ef162f2245e0409db0c68c03761705abdb20e71618f548a7a990b653
yallop/ocaml-ctypes
test_pointers.ml
* Copyright ( c ) 2013 . * * This file is distributed under the terms of the MIT License . * See the file LICENSE for details . * Copyright (c) 2013 Jeremy Yallop. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *) [@@@ocaml.warning "-6"] open...
null
https://raw.githubusercontent.com/yallop/ocaml-ctypes/52ff621f47dbc1ee5a90c30af0ae0474549946b4/tests/test-pointers/test_pointers.ml
ocaml
Test passing various types of pointers to a function. Test passing pointers to pointers. Passing a callback that accepts pointers as arguments. Passing a callback that returns a pointer. Test passing a pointer-to-a-function-pointer as an argument. Test returning a pointer to...
* Copyright ( c ) 2013 . * * This file is distributed under the terms of the MIT License . * See the file LICENSE for details . * Copyright (c) 2013 Jeremy Yallop. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *) [@@@ocaml.warning "-6"] open...
06c97eb7c218f4ffb0ef4a2428af2b5d0d0e3c0103c1602c002972b7657fbeab
mirage/irmin
dict.mli
* Copyright ( c ) 2018 - 2022 Tarides < > * * 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...
null
https://raw.githubusercontent.com/mirage/irmin/abeee121a6db7b085b3c68af50ef24a8d8f9ed05/src/irmin-pack/unix/dict.mli
ocaml
* Copyright ( c ) 2018 - 2022 Tarides < > * * 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...
c9a9a3a2e1c726cd107503dedf3e7c17efbd8c9318617e60ec24311270d3409b
tisnik/clojure-examples
project.clj
; ( C ) Copyright 2018 , 2020 , 2021 ; ; All rights reserved. This program and the accompanying materials ; are made available under the terms of the Eclipse Public License v1.0 ; which accompanies this distribution, and is available at -v10.html ; ; Contributors: ; (defproject cucumber+expectB ...
null
https://raw.githubusercontent.com/tisnik/clojure-examples/78061b533c0755d0165002961334bbe98d994087/cucumber%2BexpectB/project.clj
clojure
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors:
( C ) Copyright 2018 , 2020 , 2021 -v10.html (defproject cucumber+expectB "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.10.1"] [org.clojure/data.j...
0e5e2efa09c02785f042d84f0bf0650de55ee448240a214a00824cb7052d1ce7
MichaelBurge/pyramid-scheme
simplifier.rkt
#lang typed/racket (require "types.rkt") (require "ast.rkt") (require "io.rkt") (require "expander.rkt") (require "utils.rkt") (require "globals.rkt") (require racket/pretty) (require typed/racket/unsafe) (unsafe-require/typed racket/set [ set-add! (All (A) (-> (Setof A) A Void))] [ mutable-set (All (A) (-> (S...
null
https://raw.githubusercontent.com/MichaelBurge/pyramid-scheme/d38ba194dca8eced474fb26956864ea30f9e23ce/simplifier.rkt
racket
(pretty-print prog) (pretty-print prog) (pretty-print prog) Mutated variables can't be inlined. Remove simple definitions assume-macros-complete? means "Are all possible macros defined?". After macro expansion, every unknown application can default to a function application. But during macro expansion, a macro cou...
#lang typed/racket (require "types.rkt") (require "ast.rkt") (require "io.rkt") (require "expander.rkt") (require "utils.rkt") (require "globals.rkt") (require racket/pretty) (require typed/racket/unsafe) (unsafe-require/typed racket/set [ set-add! (All (A) (-> (Setof A) A Void))] [ mutable-set (All (A) (-> (S...
36e63073fc9cbd4cd32df889a4e05ea0d6946c573d971fae738775da79615bba
mnieper/unsyntax
runtime.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/stdlibs/runtime.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...
6cdb9a68607fabc0a5062e690df77cd0c3451b40e80eda97cc2d9eb681322a38
saner/fun-os
CompileUtils.hs
module CompileUtils where import Prelude import Control.Monad import Control.Monad.State import System.Environment import System.IO import System.IO.Unsafe import System.FilePath import qualified Data.Map as Map import Parser import PreCompiler import Compiler import ArmInstructions -- printing nicely generated cod...
null
https://raw.githubusercontent.com/saner/fun-os/4f0bf0d536401613717b312c67cb43c298dbdf9d/compiler/CompileUtils.hs
haskell
printing nicely generated code
module CompileUtils where import Prelude import Control.Monad import Control.Monad.State import System.Environment import System.IO import System.IO.Unsafe import System.FilePath import qualified Data.Map as Map import Parser import PreCompiler import Compiler import ArmInstructions formatCompCode ([]) = "" formatC...
c388ca098be842a60869c6c8ca7d3e49be044d8dd0dc3229342fc7bed7e0fc37
thheller/shadow-cljs
cli_actual.clj
(ns shadow.cljs.devtools.cli-actual (:require [clojure.string :as str] [clojure.main :as main] [shadow.cljs.silence-default-loggers] [shadow.cljs.devtools.config :as config] [shadow.cljs.devtools.cli-opts :as opts] [shadow.cljs.devtools.api :as api] [shadow.cljs.devtools.errors :as errors]...
null
https://raw.githubusercontent.com/thheller/shadow-cljs/ba0a02aec050c6bc8db1932916009400f99d3cce/src/main/shadow/cljs/devtools/cli_actual.clj
clojure
delayed require to we can improve startup time a bit sequentially run the commands running in server always install since its a noop if everything is in package.json and a server restart is not required for them to be picked up don't like that some actions implicitely start a server while others don't I think s...
(ns shadow.cljs.devtools.cli-actual (:require [clojure.string :as str] [clojure.main :as main] [shadow.cljs.silence-default-loggers] [shadow.cljs.devtools.config :as config] [shadow.cljs.devtools.cli-opts :as opts] [shadow.cljs.devtools.api :as api] [shadow.cljs.devtools.errors :as errors]...
5fe15ba1548c38bd9a742abd860bfccc03d84c13e92e0d47c689011d070e8694
RestitutorOrbis/adventura
Labyrinth.hs
module Labyrinth ( Path(..) ,Labyrinth ,generateLabyrinth ) where import System.Random import Enemies import Weapons data Path = Path {enemies:: [Enemy],rewardWeapon :: Weapon} deriving (Show) type Labyrinth = [[Path]] generateListOfRandomInts :: RandomGen g => g -> Int -> (Int, Int) -> [Int] generateListOfRan...
null
https://raw.githubusercontent.com/RestitutorOrbis/adventura/2bea02254e1c9583f8557b8a825bb9388bbb2c14/Labyrinth.hs
haskell
module Labyrinth ( Path(..) ,Labyrinth ,generateLabyrinth ) where import System.Random import Enemies import Weapons data Path = Path {enemies:: [Enemy],rewardWeapon :: Weapon} deriving (Show) type Labyrinth = [[Path]] generateListOfRandomInts :: RandomGen g => g -> Int -> (Int, Int) -> [Int] generateListOfRan...
bc4b81d0307d53f32b8363d15324f033e98e7dab0f780f32d868e69802cca27e
ofmooseandmen/Aeromess
F19.hs
-- | ICAO Field Type 19 parser . module Data.Icao.F19 ( parser ) where import Data.Aeromess.Parser import Data.Char () import Data.Either () import Data.Icao.Lang import Data.Icao.SupplementaryInformation import qualified Data.Icao.Switches as S import Data.Icao.Time import Data.List hiding (words) import Da...
null
https://raw.githubusercontent.com/ofmooseandmen/Aeromess/765f3ea10073993e43c71b6b6955b9f0d234a4ef/src/Data/Icao/F19.hs
haskell
| C if dinghies are covered. The colour of the dinghies (e.g. RED). | 'SupplementaryInformation' parser.
ICAO Field Type 19 parser . module Data.Icao.F19 ( parser ) where import Data.Aeromess.Parser import Data.Char () import Data.Either () import Data.Icao.Lang import Data.Icao.SupplementaryInformation import qualified Data.Icao.Switches as S import Data.Icao.Time import Data.List hiding (words) import Data.Ma...
a0a3b474d16d50c08f152cc561bf3dd7242a46a95d96e5843ceffd11f2e81125
sbcl/sbcl
defbangstruct.lisp
DEF!STRUCT = bootstrap DEFSTRUCT , a wrapper around DEFSTRUCT which ;;;; provides special features to help at bootstrap time: 1 . Layout information , inheritance information , and so forth is ;;;; retained in such a way that we can get to it even on vanilla ;;;; ANSI Common Lisp at cross-compiler build ti...
null
https://raw.githubusercontent.com/sbcl/sbcl/0e824004154286dc3c7805969f177afae69d2286/src/code/defbangstruct.lisp
lisp
provides special features to help at bootstrap time: retained in such a way that we can get to it even on vanilla ANSI Common Lisp at cross-compiler build time. more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS ...
DEF!STRUCT = bootstrap DEFSTRUCT , a wrapper around DEFSTRUCT which 1 . Layout information , inheritance information , and so forth is This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and rele...