_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
6db6bf97e41cbcd94300379cc4a3581fd9d8715baa8fcf6982e8d46b2980eab2
PrincetonUniversity/lucid
uniqueIds.ml
(* make sure every variable's name is unique, except parameters *) open CoreSyntax open Printf open Batteries open InterpHelpers module CL = Caml.List (* map from names to ids *) module StringMap = Map.Make (String) module StringSet = Set.Make (String) (* Make the string part of variable ids globally unique This...
null
https://raw.githubusercontent.com/PrincetonUniversity/lucid/3a94505efa50e988b4c9ef28048be47cc65b4355/src/lib/midend/transformations/uniqueIds.ml
ocaml
make sure every variable's name is unique, except parameters map from names to ids Make the string part of variable ids globally unique This transformation may not be necessary anymore. Each time we reach a function-like thing, i.e., something with parameters (an event or memop), store the parame...
open CoreSyntax open Printf open Batteries open InterpHelpers module CL = Caml.List module StringMap = Map.Make (String) module StringSet = Set.Make (String) let make_var_names_unique ds = let owner_of_name = ref StringMap.empty in let v = object (self) inherit [_] s_map as super method! visit...
8e147be308bee46c640f97c111374466ebb8f31eaa1e64560f10db9f9bb0c5f0
shonfeder/alg_structs
nonEmptyList.ml
type 'a t = | Cons of 'a * 'a list [@@deriving eq, ord] module Functor_seed = struct type nonrec 'a t = 'a t let map ~f (Cons (x, xs)) = Cons (f x, List.map f xs) end include (Functor.Make (Functor_seed) : Functor.S with type 'a t := 'a t) let cons x (Cons (x', xs)) = Cons (x, x' :: xs) let uncons (Cons (x, xs)...
null
https://raw.githubusercontent.com/shonfeder/alg_structs/09a57285ffae77dce2d2dd0581a0d453d31fb332/lib/nonEmptyList.ml
ocaml
type 'a t = | Cons of 'a * 'a list [@@deriving eq, ord] module Functor_seed = struct type nonrec 'a t = 'a t let map ~f (Cons (x, xs)) = Cons (f x, List.map f xs) end include (Functor.Make (Functor_seed) : Functor.S with type 'a t := 'a t) let cons x (Cons (x', xs)) = Cons (x, x' :: xs) let uncons (Cons (x, xs)...
9c44b1eb836eaf4559458e3e2fbb480561834817a481bcce131be0682d4b9238
hidaris/thinking-dumps
a7-2.rkt
#lang racket (define lex (λ (e acc) (match e [`,n #:when (number? n) `(const ,n)] [`,y #:when (symbol? y) `(var ,(index-of acc y))] [`(lambda (,x) ,body) #:when (symbol? x) `(lambda ,(lex body (cons x acc)))] [`(zero? ,y) `(zero ,(lex y acc))] ...
null
https://raw.githubusercontent.com/hidaris/thinking-dumps/ce13154e2d9e3140197b2230e7cea2f8be2ae84c/c311/a7-2.rkt
racket
we don't need let/cc to grap cont, because we are cps! (trace value-of-cps)
#lang racket (define lex (λ (e acc) (match e [`,n #:when (number? n) `(const ,n)] [`,y #:when (symbol? y) `(var ,(index-of acc y))] [`(lambda (,x) ,body) #:when (symbol? x) `(lambda ,(lex body (cons x acc)))] [`(zero? ,y) `(zero ,(lex y acc))] ...
ed6e409c570006bfcc016970b9c8ba4de75a0abd4e36e701dca2415547f86dff
biocaml/phylogenetics
linear_algebra.ml
(** A vector of floats. *) module type Vector = sig type t val length : t -> int (** Initialises a vector from a int->float function. *) val init : int -> f:(int -> float) -> t val map : t -> f:(float -> float) -> t (** Scalar-vector product (in-place). *) val inplace_scal_mul: float -> t -> unit (...
null
https://raw.githubusercontent.com/biocaml/phylogenetics/6e0502e309ee7ab17e6dfc97bf006861ae59b379/lib/linear_algebra.ml
ocaml
* A vector of floats. * Initialises a vector from a int->float function. * Scalar-vector product (in-place). * Scalar-vector product * Scalar-vector addition. * Vector addition. * Sum of the elements of a vector. * Element-wise logarithm of vector * Element-wise exponential of matrix * Minimum element in a vect...
module type Vector = sig type t val length : t -> int val init : int -> f:(int -> float) -> t val map : t -> f:(float -> float) -> t val inplace_scal_mul: float -> t -> unit val scal_mul : float -> t -> t val scal_add: float -> t -> t val add : t -> t -> t * Element - wise product of two vectors...
8534c1650f5f8d009f63994ea4343e3bbce1d631f1c64fd158661d412f6a50a0
Datomic/day-of-datomic
partition_locality.clj
Copyright ( c ) Cognitect , Inc. All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this distribution. ; By using this software in any fashion, you are agreeing to be...
null
https://raw.githubusercontent.com/Datomic/day-of-datomic/20c02d26fd2a12481903dd5347589456c74f8eeb/tutorial/partition_locality.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) Cognitect , Inc. All rights reserved . (require '[clojure.pprint :as pp] '[datomic.api :as d] '[datomic.samples.repl :as repl]) (defn partition-heads "Returns up to the first n datoms of each partition in the system, sorted by ascending e" [db n] (->> (d/q '[:find [?part ...] ...
7da3fa32108dcf0aff6c9ca6f02bedf5d0437d1d857346c45c78e5294a5d3bbe
Bleuje/ocaml-mesh-plot
quick_main.ml
#use "plot3d.ml";; open Plot3D;; let mySettings = Plot3D.defaultSettings;; let myMesh = loadOffMesh "examples/centaur1.off";; Graphics.open_graph mySettings.windowsize; changeCameraViewGUI 0.05 myMesh mySettings; plotMesh mySettings myMesh;; (******* Just to keep the graphics window opened ****) let last = Scanf.sca...
null
https://raw.githubusercontent.com/Bleuje/ocaml-mesh-plot/86195b1b92b51df7fa26c6da54a2fe95c5c2414a/quick_main.ml
ocaml
****** Just to keep the graphics window opened *** **************************************************
#use "plot3d.ml";; open Plot3D;; let mySettings = Plot3D.defaultSettings;; let myMesh = loadOffMesh "examples/centaur1.off";; Graphics.open_graph mySettings.windowsize; changeCameraViewGUI 0.05 myMesh mySettings; plotMesh mySettings myMesh;; let last = Scanf.scanf "%d " (fun x->x);;
a2f2b1b8c0716dff56c9c4bf64929d84b073f14c114aab813b442fe9ea2d2b86
tweag/asterius
Main.hs
# LANGUAGE DuplicateRecordFields # {-# LANGUAGE OverloadedStrings #-} module Asterius.Builtins.Main ( mainBuiltins, ) where import Asterius.Types import qualified Asterius.Types.SymbolMap as SM mainBuiltins :: AsteriusModule mainBuiltins = mempty { ffiMarshalState = mempty { ffiExportDecl...
null
https://raw.githubusercontent.com/tweag/asterius/e7b823c87499656860f87b9b468eb0567add1de8/asterius/src/Asterius/Builtins/Main.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE DuplicateRecordFields # module Asterius.Builtins.Main ( mainBuiltins, ) where import Asterius.Types import qualified Asterius.Types.SymbolMap as SM mainBuiltins :: AsteriusModule mainBuiltins = mempty { ffiMarshalState = mempty { ffiExportDecls = SM.singleton ...
8108d0032bb55dbd37f8ce81c28dc0c54302536a349ef0c7654c0b43ebb74743
realworldocaml/examples
map_vs_hash.ml
open Core.Std open Core_bench.Std let map_iter ~num_keys ~iterations = let rec loop i map = if i <= 0 then () else loop (i - 1) (Map.change map (i mod num_keys) (fun current -> Some (1 + Option.value ~default:0 current))) in loop iterations Int.Map.empty let table_iter ~num_keys...
null
https://raw.githubusercontent.com/realworldocaml/examples/32ea926861a0b728813a29b0e4cf20dd15eb486e/code/maps-and-hash-tables/map_vs_hash.ml
ocaml
open Core.Std open Core_bench.Std let map_iter ~num_keys ~iterations = let rec loop i map = if i <= 0 then () else loop (i - 1) (Map.change map (i mod num_keys) (fun current -> Some (1 + Option.value ~default:0 current))) in loop iterations Int.Map.empty let table_iter ~num_keys...
d6ef87e8768e1c0ccc5b99cf1c7b46d78f4c33d08b73d532c45657c996a76db1
mdebski/zpf-outsidein
Subs.hs
module Subs where import Data.List import qualified Data.Map as Map import qualified Data.Set as Set import OIDefs data SubVar = SVar TypeVar | SMeta MetaVar deriving (Eq, Ord) type Sub = Map.Map SubVar OIType instance Show SubVar where show (SVar x) = show $ TVar x show (SMeta x) = show $ TMeta x makeSub :: [Su...
null
https://raw.githubusercontent.com/mdebski/zpf-outsidein/10b0ed6c4346b348c188c582a4b0381d34f28f2d/Subs.hs
haskell
(s', _) = Map.partitionWithKey (\subvar -> \_ -> Set.member subvar untouch) s
module Subs where import Data.List import qualified Data.Map as Map import qualified Data.Set as Set import OIDefs data SubVar = SVar TypeVar | SMeta MetaVar deriving (Eq, Ord) type Sub = Map.Map SubVar OIType instance Show SubVar where show (SVar x) = show $ TVar x show (SMeta x) = show $ TMeta x makeSub :: [Su...
1e7a4432ffc8b5a183116e76b302c7893d14ed257c25964e271a444c4d0a1bdc
kongeor/evolduo-app
build.clj
(ns build (:require [clojure.string :as str] [clojure.tools.build.api :as b])) (def lib 'evolduo) (def version (format "0.1.%s" (b/git-count-revs nil))) (def class-dir "target/classes") (def config-example (str class-dir "/config.edn.example")) (def basis (b/create-basis {:project "deps.edn"})) (def uber-file (...
null
https://raw.githubusercontent.com/kongeor/evolduo-app/31b33f0442855702b59684eccce1215d2492c29f/build.clj
clojure
(ns build (:require [clojure.string :as str] [clojure.tools.build.api :as b])) (def lib 'evolduo) (def version (format "0.1.%s" (b/git-count-revs nil))) (def class-dir "target/classes") (def config-example (str class-dir "/config.edn.example")) (def basis (b/create-basis {:project "deps.edn"})) (def uber-file (...
8a5f8eeb149047480ec95d638f7723ac3072e177ef27b7fda4681675c0c7f06f
dsorokin/aivika
Model.hs
# LANGUAGE FlexibleContexts # module Model (model, specs, experiment, generators) where import Control.Monad import Control.Monad.Trans import Data.List import Data.Monoid import Simulation.Aivika import Simulation.Aivika.Experiment import Simulation.Aivika.Experiment.Chart removeDuplicates :: Eq a => [a] -> [a] ...
null
https://raw.githubusercontent.com/dsorokin/aivika/7a14f460ab114b0f8cdfcd05d5cc889fdc2db0a4/tests/Random/Model.hs
haskell
# LANGUAGE FlexibleContexts # module Model (model, specs, experiment, generators) where import Control.Monad import Control.Monad.Trans import Data.List import Data.Monoid import Simulation.Aivika import Simulation.Aivika.Experiment import Simulation.Aivika.Experiment.Chart removeDuplicates :: Eq a => [a] -> [a] ...
ae4d50e7b6e5b4cf72c9f799366d99e481c9957619a7844250760b84925e4b30
csgordon/cayenne
CParser.hs
module CParser(pProgram, pInterface, errSyntax) where import Data.List(nub) import Libs.Parse import BinParse import FString import PreStrings(fsStar, fsComma, fsRArrow, fsBRArrow, fsDEF) import Position import Error import CSyntax import Id import Lex import Libs.Trace infix 6 >>>> , >>>>> type CParser a = Parser [...
null
https://raw.githubusercontent.com/csgordon/cayenne/7fdf59b5e21124b5caa9f776199a30cd0e5d88b2/CParser.hs
haskell
cm = l L_comma XXX bad position
module CParser(pProgram, pInterface, errSyntax) where import Data.List(nub) import Libs.Parse import BinParse import FString import PreStrings(fsStar, fsComma, fsRArrow, fsBRArrow, fsDEF) import Position import Error import CSyntax import Id import Lex import Libs.Trace infix 6 >>>> , >>>>> type CParser a = Parser [...
811ee8f1b9159931c1c040708126bb251b23da8c1e1596d73a382af45144be5f
fossas/fossa-cli
Archive.hs
module Discovery.Archive ( discover, withArchive, withArchive', extractRpm, extractTar, extractTarGz, extractTarXz, extractTarBz2, extractZip, selectUnarchiver, unpackFailurePath, ) where import Codec.Archive.Tar qualified as Tar import Codec.Archive.Zip qualified as Zip import Codec.Compression....
null
https://raw.githubusercontent.com/fossas/fossa-cli/4f9f5ee2297a3209a9ff70e0921890cdbf770a74/src/Discovery/Archive.hs
haskell
| Given a function to run over unarchived contents, recursively unpack archives To process an unpacked archive, run the provided function on the archive contents, and recursively call discover |Given a file extension, return an extraction function for that file type. | Extract an archive to a temporary directory, ...
module Discovery.Archive ( discover, withArchive, withArchive', extractRpm, extractTar, extractTarGz, extractTarXz, extractTarBz2, extractZip, selectUnarchiver, unpackFailurePath, ) where import Codec.Archive.Tar qualified as Tar import Codec.Archive.Zip qualified as Zip import Codec.Compression....
82a084bf1f1913fa71a5ebaf00b859cb9d7227764a0b970a12bac3cda0b8fcf3
satos---jp/mincaml_self_hosting
syntax.ml
type constr = string type symbol = string type tyexpr = string type prec = | PToken of constr | PTToken of tyexpr * constr | PStart of symbol | PType of tyexpr * symbol | PLeft of symbol list | PRight of symbol list | PNonassoc of symbol list type code = string type action = code * (int list) type nontermina...
null
https://raw.githubusercontent.com/satos---jp/mincaml_self_hosting/5fdf8b5083437d7607a924142eea52d9b1de0439/src/yacc/syntax.ml
ocaml
type constr = string type symbol = string type tyexpr = string type prec = | PToken of constr | PTToken of tyexpr * constr | PStart of symbol | PType of tyexpr * symbol | PLeft of symbol list | PRight of symbol list | PNonassoc of symbol list type code = string type action = code * (int list) type nontermina...
2fbfd84b9ad2f404fc6dd8096a39a9870085f38ef428d2710e77acf317c7818e
kingcons/cl-store
custom.lisp
-*- Mode : LISP ; Syntax : ANSI - Common - Lisp ; Base : 10 -*- ;; See the file LICENCE for licence information. (in-package :cl-store) (defstore-cl-store (obj structure-object stream) (output-type-code +structure-object-code+ stream) (store-type-object obj stream)) (defrestore-cl-store (structure-object stream) ...
null
https://raw.githubusercontent.com/kingcons/cl-store/e9328632cd6bf51cb79adeb5d40c6ee5c6f805b4/openmcl/custom.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 -*- See the file LICENCE for licence information.
(in-package :cl-store) (defstore-cl-store (obj structure-object stream) (output-type-code +structure-object-code+ stream) (store-type-object obj stream)) (defrestore-cl-store (structure-object stream) (restore-type-object stream)) EOF
4882635c6c821af6f2c07699a20d7198e75f3c1588ec662345c3c01883b65d05
kmi/irs
code.lisp
;;; Mode: Lisp; Package: cl-user (in-package cl-user) (defun select-change-of-circumstances-ontology () (ocml::select-ontology 'ocml::change-of-circumstances-ontology)) (defun find-items-matching-order-fun (order) ;;select-change-of-circumstances-ontology ) (defun get-client-weight-fun (client) (ocml::with-o...
null
https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/publisher/services/change-of-circumstances-services/code.lisp
lisp
Mode: Lisp; Package: cl-user select-change-of-circumstances-ontology
(in-package cl-user) (defun select-change-of-circumstances-ontology () (ocml::select-ontology 'ocml::change-of-circumstances-ontology)) (defun find-items-matching-order-fun (order) ) (defun get-client-weight-fun (client) (ocml::with-ocml-thread-safety () (setf client (make-ocml-symbol client)) (select-...
39d9580218ea4fa5c5efb5fe39b238416c70a1da7134cceafaabc3b673171566
UU-ComputerScience/js-asteroids
FirstClassClasses.hs
module FirstClassClasses where import Data.IORef import Control.Monad.Fix (mfix) import Prelude hiding (print) o # f = f o nilRecord = () emptyRecord = return $ const nilRecord new :: (IO (a -> ()) -> a -> IO a) -> IO a new oo = mfix $ oo emptyRecord inherit :: (cons -> super -> IO (self -> w)) -- w ...
null
https://raw.githubusercontent.com/UU-ComputerScience/js-asteroids/b7015d8ad4aa57ff30f2631e0945462f6e1ef47a/thesis-snippets/OO/FirstClassClasses.hs
haskell
w g override oplus cons self
module FirstClassClasses where import Data.IORef import Control.Monad.Fix (mfix) import Prelude hiding (print) o # f = f o nilRecord = () emptyRecord = return $ const nilRecord new :: (IO (a -> ()) -> a -> IO a) -> IO a new oo = mfix $ oo emptyRecord inherit :: -> IO b inherit w g override oplus = \cons self...
e6b6ea6156a4a33c13c955fc1fe55ce9c1241f04c5a02e5f3da6a26f1b14f322
mcorbin/meuse
semver_test.clj
(ns meuse.semver-test (:require [meuse.semver :refer :all] [clojure.test :refer :all])) (deftest valid?-test (is (valid? "1.0.1")) (is (valid? "1.0.10")) (is (valid? "3.4.10")) (is (valid? "7.0.0-alpha.4")) (is (valid? "7.0.0-alpha+110")) (is (valid? "7.0.0-alpha+11acea0")) (is (valid? "7.0...
null
https://raw.githubusercontent.com/mcorbin/meuse/d2b74543fce37c8cde770ae6f6097cabb509a804/test/meuse/semver_test.clj
clojure
(ns meuse.semver-test (:require [meuse.semver :refer :all] [clojure.test :refer :all])) (deftest valid?-test (is (valid? "1.0.1")) (is (valid? "1.0.10")) (is (valid? "3.4.10")) (is (valid? "7.0.0-alpha.4")) (is (valid? "7.0.0-alpha+110")) (is (valid? "7.0.0-alpha+11acea0")) (is (valid? "7.0...
3e36e0a6a8b0dcb8d758c2d668695f94fbbdf7a6030b9015043842e40cefd4d6
dalong0514/ITstudy
0204StealV1-8.lisp
;;-----------------------------------------=={ Steal }==-----------------------------------------;; ;; ;; ;; ;; ;; ...
null
https://raw.githubusercontent.com/dalong0514/ITstudy/8a7f1708d11856a78016795268da67b6a7521115/004%E7%BC%96%E7%A8%8B%E8%AF%AD%E8%A8%80/07AutoLisp/04LeeMac-Library/0204StealV1-8.lisp
lisp
-----------------------------------------=={ Steal }==-----------------------------------------;; ;; ;; ...
(setq stealversionnumber "1.8") (defun c:Steal nil (Steal nil nil)) (defun c:StealAll nil (Steal nil '( ("Blocks" ("*")) ("Layers" ("*")) ("Linetypes" ("*")) ("Text Styles" ("*")) ...
38caa4baeb44109da39ef16bc30c0bdc3276a65f13db83edaa9bf483e39941f3
mfoemmel/erlang-otp
ex_slider.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 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 Public Lic...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/wx/examples/demo/ex_slider.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 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(ex_slider). -behaviour(wx_object). -exp...
9ee36c4f7f876a0a1b8aff22ddc9e47f993f1120f5c534d337b05de535ce6d28
openmusic-project/openmusic
listener.lisp
;;=========================================================================== LW Lisp Tools Lisp programming tools for LispWorks delivered applications ;;=========================================================================== ;=========================================================================== ; Th...
null
https://raw.githubusercontent.com/openmusic-project/openmusic/ecd2a3e5247222116ae6bf55cc5646bd82e1e34c/OPENMUSIC/code/api/om-LW/lw-lisp-tools/listener.lisp
lisp
=========================================================================== =========================================================================== =========================================================================== This program is free software; you can redistribute it and/or either version 2 Se...
LW Lisp Tools Lisp programming tools for LispWorks delivered applications modify it under the terms of the GNU General Public License of the License , or ( at your option ) any later version . You should have received a copy of the GNU General Public License Foundation , Inc. , 59 Temple Place - Sui...
7bca638a8e2281d1ac64f4629fba55767c5f8fd2cdc032da48c6b3b4bc02d7e3
ucsd-progsys/liquidhaskell
TypeLitNat.hs
{-# LANGUAGE GADTs #-} {-# LANGUAGE KindSignatures #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # {-# LANGUAGE TypeOperators #-} module TypeLitNat where import GHC.TypeLits -- THIS SHOULD BE UNSAFE miunsa...
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/20cd67af038930cb592d68d272c8eb1cbe3cb6bf/tests/pos/TypeLitNat.hs
haskell
# LANGUAGE GADTs # # LANGUAGE KindSignatures # # LANGUAGE DataKinds # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # # LANGUAGE TypeOperators # THIS SHOULD BE UNSAFE
# LANGUAGE ScopedTypeVariables # module TypeLitNat where import GHC.TypeLits miunsafe2 :: MI 0 miunsafe2 = Small 0 data MI (s :: Nat) = Small { mi_input :: Int } @ Small : : forall ( s : : ) . { v : Int | s ~~ v } - > MI s @
93dab9a38fb380cc74c9941e4d8373252ab6dfadd541f01bdcd32301fb203527
nikita-volkov/hasql-transaction
Main.hs
module Main where import qualified Control.Concurrent.Async as F import qualified Hasql.Connection as A import qualified Hasql.Session as B import qualified Hasql.Transaction as C import qualified Hasql.Transaction.Sessions as G import qualified Main.Statements as D import qualified Main.Transactions as E import Prelu...
null
https://raw.githubusercontent.com/nikita-volkov/hasql-transaction/d4bcbb5bdb361b828717962bab085f95b5feb60d/conflicts-test/Main.hs
haskell
module Main where import qualified Control.Concurrent.Async as F import qualified Hasql.Connection as A import qualified Hasql.Session as B import qualified Hasql.Transaction as C import qualified Hasql.Transaction.Sessions as G import qualified Main.Statements as D import qualified Main.Transactions as E import Prelu...
505d2e8d61d4b7d5e99df680182d835ee5b78fa4695a9f9526286beed9eb39d0
hsyl20/haskus-system
Input.hs
{-# OPTIONS_GHC -freduction-depth=0 #-} # LANGUAGE RecordWildCards # # LANGUAGE DataKinds # # LANGUAGE TypeApplications # -- | Manage input devices module Haskus.System.Input ( InputDevice(..) , InputEvent (..) , InputEventType (..) , EventType (..) , loadInputDevices , InputEventBundle (..) , ne...
null
https://raw.githubusercontent.com/hsyl20/haskus-system/2f389c6ecae5b0180b464ddef51e36f6e567d690/haskus-system/src/lib/Haskus/System/Input.hs
haskell
# OPTIONS_GHC -freduction-depth=0 # | Manage input devices re-export | Input device ^ Device path ^ Device ID ^ Descriptor ^ Device Name ^ Device info ^ Event stream ^ Event bundle stream | Input event ^ Event date ^ Event type | Input event details ^ Synchronization event ^ Key event ^ Relative event ...
# LANGUAGE RecordWildCards # # LANGUAGE DataKinds # # LANGUAGE TypeApplications # module Haskus.System.Input ( InputDevice(..) , InputEvent (..) , InputEventType (..) , EventType (..) , loadInputDevices , InputEventBundle (..) , newInputEventHandler , makeInputEvent , inputSetAutoRepeatDela...
b3482422661e6cc6454dc755655a6a9834bbd26678dd2087f2371d2e1da8d557
clojure-interop/google-cloud-clients
CompanyServiceClient$ListCompaniesFixedSizeCollection.clj
(ns com.google.cloud.talent.v4beta1.CompanyServiceClient$ListCompaniesFixedSizeCollection (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.talent.v4beta1 CompanyServiceClient$ListCompaniesFixedSizeCollection]))
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.talent/src/com/google/cloud/talent/v4beta1/CompanyServiceClient%24ListCompaniesFixedSizeCollection.clj
clojure
(ns com.google.cloud.talent.v4beta1.CompanyServiceClient$ListCompaniesFixedSizeCollection (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.talent.v4beta1 CompanyServiceClient$ListCompaniesFixedSizeCollection]))
3f6959abfa5ceaf16cc3bdb87fcc801f4e7ae1618a3d5418340f2fcabd234865
eliassona/bchain
umbrel.clj
(ns bchain.umbrel (:use [clojure.pprint]) (:require [clojure.data.json :as json] [clojure.repl :refer [source doc]]) (:import [com.jcraft.jsch JSch] [java.io ByteArrayOutputStream])) (defmacro dbg [body] `(let [x# ~body] (println "dbg:" '~body "=" x#) x#)) (defn ssh [user host...
null
https://raw.githubusercontent.com/eliassona/bchain/596fcd02e36e23fe4e9043b7b168661fdafbbec9/src/bchain/umbrel.clj
clojure
== Blockchain == ["txid",...] ( "blockhash" ) == Control == == Generating == == Mining == == Network == == Rawtransactions == ( [,{desc:str,range:n or [n,n]},...] ) == Signer == == Util == == Wallet == == Zmq ==
(ns bchain.umbrel (:use [clojure.pprint]) (:require [clojure.data.json :as json] [clojure.repl :refer [source doc]]) (:import [com.jcraft.jsch JSch] [java.io ByteArrayOutputStream])) (defmacro dbg [body] `(let [x# ~body] (println "dbg:" '~body "=" x#) x#)) (defn ssh [user host...
bd025650dfe6c0894e3b0c532b146bec08d727afc89ddd40dd48d14d9fa62d94
maranget/hevea
foot.ml
(***********************************************************************) (* *) (* HEVEA *) (* *) , projet PARA , INR...
null
https://raw.githubusercontent.com/maranget/hevea/4e40f50a3a299f54e538c57f7f0fa80df55d094b/foot.ml
ocaml
********************************************************************* HEVEA ...
, projet PARA , INRIA Rocquencourt Copyright 1998 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . let some = ref false ;; let anchor = ref 0 ;; let mark_to_anchor = Hashtbl.create 17 and anchor_to_note = Has...
83bafb00dc06f8abc576810e94b336cec2bad7b94d72af54e00ea792b87b3995
haskell-opengl/OpenGLRaw
TextureFilterAnisotropic.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | Module : Graphics . GL.ARB.TextureFilterAnisotropic Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- ----...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/ARB/TextureFilterAnisotropic.hs
haskell
------------------------------------------------------------------------------ | License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Enums
# LANGUAGE PatternSynonyms # Module : Graphics . GL.ARB.TextureFilterAnisotropic Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.ARB.TextureFilterAnisotropic ( glGetARBTextureFilterAnisotropic, gl_ARB_texture_filter_anisotropic, pattern GL_MAX_TEXTURE_MAX_ANISOTROPY, patt...
04b632e48132db171deeff3c73a22c89177598a4cc54b7e30f6e7785ac1dc4ec
fission-codes/fission
Main.hs
module Main (main) where import Fission.Prelude import qualified Fission.Web.Server.Internal.Production as Production main :: IO () main = Production.runInProd Nothing Production.start
null
https://raw.githubusercontent.com/fission-codes/fission/11d14b729ccebfd69499a534445fb072ac3433a3/fission-web-server/server/Main.hs
haskell
module Main (main) where import Fission.Prelude import qualified Fission.Web.Server.Internal.Production as Production main :: IO () main = Production.runInProd Nothing Production.start
c2d0bff90416ed18acf021ee69ea607f06871d48f8531ada9637f4eb29932565
status-im/status-lib-archived
discovery.cljs
(ns status-im.protocol.discovery (:require [status-im.protocol.state.state :as state :refer [connection storage]] [status-im.protocol.state.discovery :refer [save-status get-name ...
null
https://raw.githubusercontent.com/status-im/status-lib-archived/0b07f54a6b8dc17490a74797fa04dae75e5668ca/src/cljs/status_im/protocol/discovery.cljs
clojure
(ns status-im.protocol.discovery (:require [status-im.protocol.state.state :as state :refer [connection storage]] [status-im.protocol.state.discovery :refer [save-status get-name ...
3c52f74a7c9143c8d3875ef31bb2a8c517807c2b59920650c3d9cd019e74c07c
bananu7/Hate
sample_spritesheet.hs
# LANGUAGE TemplateHaskell # # LANGUAGE MultiParamTypeClasses # import Hate import Hate.Graphics import Control.Applicative import Control.Lens import System.Random sample 4 data Koala = Koala { _pos :: Vec2, _num :: Int } makeLenses ''Koala data SampleState = SampleState { _koalaSp...
null
https://raw.githubusercontent.com/bananu7/Hate/4aa4ec0cf1e9bcb32d8cc807ab2ee092807c7ddb/samples/sample_spritesheet.hs
haskell
# LANGUAGE TemplateHaskell # # LANGUAGE MultiParamTypeClasses # import Hate import Hate.Graphics import Control.Applicative import Control.Lens import System.Random sample 4 data Koala = Koala { _pos :: Vec2, _num :: Int } makeLenses ''Koala data SampleState = SampleState { _koalaSp...
0b875f81be8b8f563dd4fa9772d2bcfab820217e29ded1dd81fc3d24e8d5b5c5
carl-eastlund/dracula
list-set.rkt
#lang racket/base (provide list-union list-union* list-inter list-inter* list-minus) (define (list-minus #:compare [compare equal?] one two) (remove* two one compare)) (define (list-union #:compare [compare equal?] . sets) (list-union* #:compare compare sets)) (define (list-u...
null
https://raw.githubusercontent.com/carl-eastlund/dracula/a937f4b40463779246e3544e4021c53744a33847/modular/list-set.rkt
racket
#lang racket/base (provide list-union list-union* list-inter list-inter* list-minus) (define (list-minus #:compare [compare equal?] one two) (remove* two one compare)) (define (list-union #:compare [compare equal?] . sets) (list-union* #:compare compare sets)) (define (list-u...
90dc38e60654b326a7828ebfcca89f704b2264ead7d140043681256c08cce4c9
haskell/haskell-language-server
IDE.hs
module Development.IDE ( TODO It would be much nicer to enumerate all the exports -- and organize them in sections module X ) where import Development.IDE.Core.Actions as X (getAtPoint, getDefinition, ...
null
https://raw.githubusercontent.com/haskell/haskell-language-server/6f5a73507f8d9266a486feaf8695c052362b9b95/ghcide/src/Development/IDE.hs
haskell
and organize them in sections
module Development.IDE ( TODO It would be much nicer to enumerate all the exports module X ) where import Development.IDE.Core.Actions as X (getAtPoint, getDefinition, get...
576251522e51c5d8dc5a23044236f075f1ab3827c9c9edcb5877256cad6a4d26
RDTK/generator
job-publisher.lisp
;;;; job-publisher.lisp --- Model classes for publisher implementations . ;;;; Copyright ( C ) 2012 - 2021 Jan Moringen ;;;; Author : < > (cl:in-package #:jenkins.api) Classic warnings (define-model-class warning-parser/file () ((pattern :type string :xpath "pattern/text()") (name :type...
null
https://raw.githubusercontent.com/RDTK/generator/8d9e6e47776f2ccb7b5ed934337d2db50ecbe2f5/lib/jenkins.api/src/api/model/job-publisher.lisp
lisp
job-publisher.lisp --- Model classes for publisher implementations . Warnings NG stuff Name Files Tags Name Files Name Files Name Files Name Files Name Files Name Files Name Files HTML report Publisher interface Assessment Blame
Copyright ( C ) 2012 - 2021 Jan Moringen Author : < > (cl:in-package #:jenkins.api) Classic warnings (define-model-class warning-parser/file () ((pattern :type string :xpath "pattern/text()") (name :type string :xpath "parserName/text()")) (:name-slot pattern)) (define-m...
1f5739a18972c5cbe929d9f681c6480ad9c1358b20762d559e22a5e3bc2d2580
RedPRL/cooltt
Load.mli
open Basis type error = | LexingError of {span : LexingUtil.span; last_token: string option} | ParseError of {span : LexingUtil.span; last_token: string option} Load and parse a file or stdin val load_file : [`Stdin | `File of string] -> (ConcreteSyntax.signature, error) result val prepare_repl : unit -> in_ch...
null
https://raw.githubusercontent.com/RedPRL/cooltt/4ad532545d639a2433515b7cf83ef868c017e1fc/src/frontend/Load.mli
ocaml
open Basis type error = | LexingError of {span : LexingUtil.span; last_token: string option} | ParseError of {span : LexingUtil.span; last_token: string option} Load and parse a file or stdin val load_file : [`Stdin | `File of string] -> (ConcreteSyntax.signature, error) result val prepare_repl : unit -> in_ch...
81a56cf0ae8c2a6ea213e9f6e4ccd323e210602908b8d0fac42c86f2c5d7e6de
unnohideyuki/bunny
sample179.hs
strlen "" = 0 strlen (c:cs) = 1 + strlen cs main = return (strlen "Haskell")
null
https://raw.githubusercontent.com/unnohideyuki/bunny/501856ff48f14b252b674585f25a2bf3801cb185/compiler/test/samples/sample179.hs
haskell
strlen "" = 0 strlen (c:cs) = 1 + strlen cs main = return (strlen "Haskell")
26ef1c519816d6c613fc54123a667a0925a4d0bc54d7a1206f56dc086cd3a75c
vasilisp/inez
sum_db.ml
open Db_script ;; open Core.Std ;; let n = if not !Sys.interactive && Array.length argv >= 2 then int_of_string argv.(1) else 20 ;; type sum = ( Int, Int, Int ) Schema ;; let (+!) x y = ~free ;; let db_sum = make_db_sum (List.join (List.init n ~f:(fun i -> List.i...
null
https://raw.githubusercontent.com/vasilisp/inez/3bbbbb82a12918c1557f5fb0b49a8c73ab8d6da1/frontend/examples/sum_db.ml
ocaml
open Db_script ;; open Core.Std ;; let n = if not !Sys.interactive && Array.length argv >= 2 then int_of_string argv.(1) else 20 ;; type sum = ( Int, Int, Int ) Schema ;; let (+!) x y = ~free ;; let db_sum = make_db_sum (List.join (List.init n ~f:(fun i -> List.i...
b51c8c2c1afe087e365f9cbc9e4e90ce41d389093c70117823b59e9e3910ada9
coalton-lang/coalton
vector.lisp
(coalton-library/utils:defstdlib-package #:coalton-library/vector (:use #:coalton #:coalton-library/builtin #:coalton-library/functions #:coalton-library/classes) (:local-nicknames (#:types #:coalton-library/types) (#:list #:coalton-library/list) (#:cell #:coalton-library/cell) (#:addr #:coa...
null
https://raw.githubusercontent.com/coalton-lang/coalton/95477127ed560d4173c1352e78e70b440715f6b0/library/vector.lisp
lisp
Vector Vector Instances
(coalton-library/utils:defstdlib-package #:coalton-library/vector (:use #:coalton #:coalton-library/builtin #:coalton-library/functions #:coalton-library/classes) (:local-nicknames (#:types #:coalton-library/types) (#:list #:coalton-library/list) (#:cell #:coalton-library/cell) (#:addr #:coa...
2a0a230c9eac6967edfb7216666d45159b605cfe81b8d4df32614e03ec8df489
clojure-interop/aws-api
NullResponseMetadataCache.clj
(ns com.amazonaws.util.NullResponseMetadataCache "No-op response metadata cache used when a client instance is configured without response metadata caching enabled." (:refer-clojure :only [require comment defn ->]) (:import [com.amazonaws.util NullResponseMetadataCache])) (defn ->null-response-metadata-cache ...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.util/src/com/amazonaws/util/NullResponseMetadataCache.clj
clojure
(ns com.amazonaws.util.NullResponseMetadataCache "No-op response metadata cache used when a client instance is configured without response metadata caching enabled." (:refer-clojure :only [require comment defn ->]) (:import [com.amazonaws.util NullResponseMetadataCache])) (defn ->null-response-metadata-cache ...
400a2ec52484243568fbac85df3b8e659f77ebea8e37121ef623e42e77e746a5
sgraf812/data-elevator
Main.hs
# LANGUAGE TypeApplications # {-# LANGUAGE MagicHash #-} module Main where import Data.Elevator.Internal import Test.Hspec import Control.Exception (evaluate, SomeException (SomeException)) import GHC.Exts main :: IO () main = hspec $ do describe "Strict" $ do it "strict" $ do evaluate (le...
null
https://raw.githubusercontent.com/sgraf812/data-elevator/b041176f99ef5a9d1c5fc7cdec3a995e4d36c46e/test/Main.hs
haskell
# LANGUAGE MagicHash #
# LANGUAGE TypeApplications # module Main where import Data.Elevator.Internal import Test.Hspec import Control.Exception (evaluate, SomeException (SomeException)) import GHC.Exts main :: IO () main = hspec $ do describe "Strict" $ do it "strict" $ do evaluate (let a = Strict (error "boom" :: Int)...
36950f0a962ebad4e3bcbba8d194e4f2f017184a86add9787e8ff79dd8e66337
c-cube/bare-ocaml
example2.ml
(* generated from "example2.bare" using bare-codegen *) [@@@ocaml.warning "-26-27"] module Bare = Bare_encoding module Person = struct type t = { first: string; last: string; } (** @raise Invalid_argument in case of error. *) let decode (dec: Bare.Decode.t) : t = let first = Bare.Decode.string de...
null
https://raw.githubusercontent.com/c-cube/bare-ocaml/997ca9ab1d9203a8f65959ceb480864d228d6372/tests/example2.ml
ocaml
generated from "example2.bare" using bare-codegen * @raise Invalid_argument in case of error. * @raise Invalid_argument in case of error. fill forward declarations * @raise Invalid_argument in case of error. fill forward declarations * @raise Invalid_argument in case of error. fill forward declarations * @r...
[@@@ocaml.warning "-26-27"] module Bare = Bare_encoding module Person = struct type t = { first: string; last: string; } let decode (dec: Bare.Decode.t) : t = let first = Bare.Decode.string dec in let last = Bare.Decode.string dec in {first; last; } let encode (enc: Bare.Encode.t) (sel...
13f544b103b694eb027a7c75ac2f55921537b29f1adefb48ef57c411d9dad3a9
clojurecup2014/parade-route
junit.clj
Copyright ( c ) . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; ...
null
https://raw.githubusercontent.com/clojurecup2014/parade-route/adb2e1ea202228e3da07902849dee08f0bb8d81c/Assets/Clojure/Internal/Plugins/clojure/test/junit.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) . All rights reserved . by June 2009 (ns ^{:doc "clojure.test extension for JUnit-compatible XML output. JUnit (/) is the most popular unit-testing library for Java. As such, tool support for JUnit output formats is common. By producing compatible output from tests, this tool ...
5341db8a95aedf7db5f614b9b90e94825a241770d64c8dd0218f7c17d3e61f5b
typedclojure/typedclojure
dvar_env.clj
Copyright ( c ) , contributors . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by ;...
null
https://raw.githubusercontent.com/typedclojure/typedclojure/1b3c9ef6786a792ae991c438ea8dca31175aa4a7/typed/clj.checker/src/typed/cljc/checker/dvar_env.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) , contributors . (ns typed.cljc.checker.dvar-env (:require [typed.cljc.checker.type-rep :as r] [clojure.core.typed.contract-utils :as con] [typed.clojure :as t]) (:import [clojure.lang Symbol] [typed.cljc.checker.type_rep F])) (t/ann *dotted-scope* (t...
bd72a89dc6c7c57a79564af073aa5ec939b9c72dd302db7afa7bbf61719e6036
onyx-platform/onyx
params_test.clj
(ns onyx.peer.params-test (:require [clojure.core.async :refer [chan >!! <!! close! sliding-buffer]] [clojure.test :refer [deftest is testing]] [onyx.plugin.core-async :refer [take-segments!]] [onyx.test-helper :refer [load-config with-test-env]] [onyx.static.uuid :refe...
null
https://raw.githubusercontent.com/onyx-platform/onyx/74f9ae58cdbcfcb1163464595f1e6ae6444c9782/test/onyx/peer/params_test.clj
clojure
(ns onyx.peer.params-test (:require [clojure.core.async :refer [chan >!! <!! close! sliding-buffer]] [clojure.test :refer [deftest is testing]] [onyx.plugin.core-async :refer [take-segments!]] [onyx.test-helper :refer [load-config with-test-env]] [onyx.static.uuid :refe...
64879664a3ed7a17b39f1b812d0c25c7bd9d04924ab1083e568041af3d9ffc7e
hjcapple/reading-sicp
exercise_1_2.scm
#lang racket P13 - [ 练习 1.2 ] (/ (+ 5 4 (- 2 (- 3 (+ 6 (/ 4 5))))) (* 3 (- 6 2) (- 2 7))) ;; 输出结果 -37/150
null
https://raw.githubusercontent.com/hjcapple/reading-sicp/7051d55dde841c06cf9326dc865d33d656702ecc/chapter_1/exercise_1_2.scm
scheme
输出结果 -37/150
#lang racket P13 - [ 练习 1.2 ] (/ (+ 5 4 (- 2 (- 3 (+ 6 (/ 4 5))))) (* 3 (- 6 2) (- 2 7)))
67b109fad0b506794589f931a5a69bf5021a3c009c93a36ea4d88b33a60a3de5
technomancy/leiningen
selectors.clj
(ns selectors (:use [clojure.test] [clojure.java.io])) (defn record-ran [t] (let [file-name (format "%s/lein-test-ran" (System/getProperty "java.io.tmpdir"))] (with-open [w (writer file-name :append true)] (.write w (str t "\n"))))) (use-fixtures :each (fn [t] (record-r...
null
https://raw.githubusercontent.com/technomancy/leiningen/24fb93936133bd7fc30c393c127e9e69bb5f2392/test_projects/sample-no-aot/test/selectors.clj
clojure
(ns selectors (:use [clojure.test] [clojure.java.io])) (defn record-ran [t] (let [file-name (format "%s/lein-test-ran" (System/getProperty "java.io.tmpdir"))] (with-open [w (writer file-name :append true)] (.write w (str t "\n"))))) (use-fixtures :each (fn [t] (record-r...
d948ca1b31485d87b04efe6ab7511d09fc15fe5ed84461c23aa98e962c91ab29
DrTom/clj-pg-types
sql_parameter.clj
(ns pg-types.sql-parameter (:require [clojure.java.jdbc :as jdbc] [pg-types.misc :as misc] [clojure.tools.logging :as logging] ) (:import [java.sql PreparedStatement ParameterMetaData] [org.postgresql.util PGobject] )) ;(ns-unmap *ns* 'convert-parameter) (defn- dispatch-convert-paramet...
null
https://raw.githubusercontent.com/DrTom/clj-pg-types/d847735c46b2da173fd50a6ebe492bead0d75dd5/src/pg_types/sql_parameter.clj
clojure
(ns-unmap *ns* 'convert-parameter)
(ns pg-types.sql-parameter (:require [clojure.java.jdbc :as jdbc] [pg-types.misc :as misc] [clojure.tools.logging :as logging] ) (:import [java.sql PreparedStatement ParameterMetaData] [org.postgresql.util PGobject] )) (defn- dispatch-convert-parameter [type-name-kw value _ _] [type-...
f46ed7eee9720015a43d9767c5875a12958c1f1564cfb11d4e2c9f19eee19083
Bodigrim/arithmoi
RootsOfUnity.hs
-- | Module : Math . . RootsOfUnity Copyright : ( c ) 2018 Licence : MIT Maintainer : < > -- -- Implementation of roots of unity -- module Math.NumberTheory.RootsOfUnity ( -- * Roots of unity RootOfUnity (..) -- ** Conversions , toRootOfUnity , toComplex ) where import Data....
null
https://raw.githubusercontent.com/Bodigrim/arithmoi/0f73644e06906b37affa409790b7338688a8061e/Math/NumberTheory/RootsOfUnity.hs
haskell
| Implementation of roots of unity * Roots of unity ** Conversions | A representation of < roots of unity>: complex numbers \(z\) for which there is \(n\) such that \(z^n=1\). | Every root of unity can be expressed as \(e^{2 \pi i q}\) for some | Given a rational \(q\), produce the root of unity \(e^{2 \pi i ...
Module : Math . . RootsOfUnity Copyright : ( c ) 2018 Licence : MIT Maintainer : < > module Math.NumberTheory.RootsOfUnity ( RootOfUnity (..) , toRootOfUnity , toComplex ) where import Data.Complex (Complex(..), cis) import Data.Semigro...
d3d4f37d07ffe4d9e3269323bf2f7c5003380c2b9d34d6d8b9144aa1812cf487
RichiH/git-annex
AutoStart.hs
Assistant autostart file installation - - Copyright 2012 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2012 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} # LANGUAGE CPP # # OPTIONS_GHC -fno - warn - tabs # module Assistant.Install.AutoStart where...
null
https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Assistant/Install/AutoStart.hs
haskell
Assistant autostart file installation - - Copyright 2012 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2012 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} # LANGUAGE CPP # # OPTIONS_GHC -fno - warn - tabs # module Assistant.Install.AutoStart where...
8be47afc4b173d29d5da268085399581d9ad5c6bb742a51f60278a35afda62c6
Frama-C/Frama-C-snapshot
slice_no_body.ml
(* ledit bin/toplevel.top -deps tests/slicing/slice_no_body.c #use "tests/slicing/select.ml";; *) include LibSelect;; let callers kf = !Db.Value.callers kf * simple implementation to select every calls to [ kf ] source function . * The problem of this implementation is that it can generate several slice * for ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/tests/slicing/slice_no_body.ml
ocaml
ledit bin/toplevel.top -deps tests/slicing/slice_no_body.c #use "tests/slicing/select.ml";;
include LibSelect;; let callers kf = !Db.Value.callers kf * simple implementation to select every calls to [ kf ] source function . * The problem of this implementation is that it can generate several slice * for one function during propagation to the callers . * See [ Slicing . Api . Request.select_fun_calls ...
6ceae929f8049626c1a6ee83609807bde586b9fd9384a1338eabf4ef9433784e
avatar29A/hs-aitubots-api
Video.hs
{-# LANGUAGE OverloadedStrings #-} module Aitu.Bot.Types.Video (Video (..)) where import Data.Aeson import Data.Text import Data.UUID.Types -- Video represents metadata on a video file. doc : data Video = Video { videoType :: Text , videoFileId :: UUID , videoMimeType :: Text , videoName :: Text ...
null
https://raw.githubusercontent.com/avatar29A/hs-aitubots-api/9cc3fd1e4e9e81491628741a6bbb68afbb85704e/src/Aitu/Bot/Types/Video.hs
haskell
# LANGUAGE OverloadedStrings # Video represents metadata on a video file.
module Aitu.Bot.Types.Video (Video (..)) where import Data.Aeson import Data.Text import Data.UUID.Types doc : data Video = Video { videoType :: Text , videoFileId :: UUID , videoMimeType :: Text , videoName :: Text , videoSize :: Int , videoWidth :: Int , videoHeight :: Int , vide...
540d89deda3c15e16755f8facde3fb195c5c4451ea442e5d509ef05e8454c8ab
phantomics/seed
form.mode-block-space.lisp
seed.ui-spec.form.mode-block-space.lisp (in-package #:seed.ui-model.react) (defpsmacro cl (&rest items) `(chain console (log ,@items))) (specify-components block-space-view-mode (block-space-view (:get-initial-state (lambda () (chain j-query (extend (create point #(0 0) point-attrs (create va...
null
https://raw.githubusercontent.com/phantomics/seed/f128969c671c078543574395d6b23a1a5f2723f8/seed.ui-spec.form.mode-block-space/form.mode-block-space.lisp
lisp
(if (@ self props context trace-category) (chain self props context methods (register-branch-path (@ self props context trace-category) (@ self props data id) (@ state context path)))) (move (delete-point (if (not (= true (@ next-props data meta locked))) (chain self state contex...
seed.ui-spec.form.mode-block-space.lisp (in-package #:seed.ui-model.react) (defpsmacro cl (&rest items) `(chain console (log ,@items))) (specify-components block-space-view-mode (block-space-view (:get-initial-state (lambda () (chain j-query (extend (create point #(0 0) point-attrs (create va...
c9abce0de14430f6e5bd7374425db9c9a2dc9bc857b4e5fed1b8753af5f25eb5
cwmaguire/zombunity-mud
no_match.clj
(ns zombunity.daemon.no-match (:require [zombunity.data :as data])) ; will respond to anything unrecognized as long as the user isn't logging in (def msg-filters [{:type nil :filter (fn [msg] (not (data/is-logging-in? (:conn-id msg))))}]) (defn process-msg [msg] (data/msg-client {:conn-id (:c...
null
https://raw.githubusercontent.com/cwmaguire/zombunity-mud/ec14406f4addac9b9a0742d3043a6e7bccef1fa6/zombunity_server/src/zombunity/daemon/no_match.clj
clojure
will respond to anything unrecognized as long as the user isn't logging in
(ns zombunity.daemon.no-match (:require [zombunity.data :as data])) (def msg-filters [{:type nil :filter (fn [msg] (not (data/is-logging-in? (:conn-id msg))))}]) (defn process-msg [msg] (data/msg-client {:conn-id (:conn-id msg) :message (str "Command " (:type msg) " not recognized.")}) nil)...
6f37148ff35e652ab5f647fff5ceebea01b0059f62fb80d65c770abf65c0c501
nikita-volkov/hasql-cursor-query
CursorTransactions.hs
module Hasql.CursorQuery.Private.CursorTransactions where import Hasql.CursorQuery.Private.Prelude import qualified Hasql.CursorQuery.Private.CursorQuery as B import qualified Hasql.CursorQuery.Private.Decoders as I import qualified Hasql.Decoders as E import qualified Hasql.Encoders as F import qualified Hasql.Cursor...
null
https://raw.githubusercontent.com/nikita-volkov/hasql-cursor-query/d249b02abac2ee8b77d4e0bd90f7a5d8c5161f83/library/Hasql/CursorQuery/Private/CursorTransactions.hs
haskell
| Fetch and fold the data from cursor until it dries out. | Executes CursorQuery in CursorTransaction provided the parameters.
module Hasql.CursorQuery.Private.CursorTransactions where import Hasql.CursorQuery.Private.Prelude import qualified Hasql.CursorQuery.Private.CursorQuery as B import qualified Hasql.CursorQuery.Private.Decoders as I import qualified Hasql.Decoders as E import qualified Hasql.Encoders as F import qualified Hasql.Cursor...
a62bed04bc72aeb955bf4b43cf09c3dfcbe188a08af347d1e592d81752c7ba3d
alexandroid000/improv
Wrench.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # # LANGUAGE TemplateHaskell # module Ros.Geometry_msgs.Wrench where import qualified Prelude as P import Prelude ((.), (+), (*)) import qualified Data.Typeable as T import Control.Applicative import Ros.Internal.RosBinary i...
null
https://raw.githubusercontent.com/alexandroid000/improv/ef0f4a6a5f99a9c7ff3d25f50529417aba9f757c/roshask/msgs/Geometry_msgs/Ros/Geometry_msgs/Wrench.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE DeriveDataTypeable #
# LANGUAGE DeriveGeneric # # LANGUAGE TemplateHaskell # module Ros.Geometry_msgs.Wrench where import qualified Prelude as P import Prelude ((.), (+), (*)) import qualified Data.Typeable as T import Control.Applicative import Ros.Internal.RosBinary import Ros.Internal.Msg.MsgInfo import qualified GHC.Generics as G impor...
7f9727632e3f71b4f0654d6d22d7dab20af57cb786c286ec63a134ebd56dcc4c
monadfix/ormolu-live
SizedSeq.hs
{-# LANGUAGE StandaloneDeriving, DeriveGeneric #-} module SizedSeq ( SizedSeq(..) , emptySS , addToSS , addListToSS , ssElts , sizeSS ) where import Prelude -- See note [Why do we import Prelude here?] import Control.DeepSeq import Data.Binary import Data.List import GHC.Generics data SizedSeq a = Sized...
null
https://raw.githubusercontent.com/monadfix/ormolu-live/d8ae72ef168b98a8d179d642f70352c88b3ac226/ghc-lib-parser-8.10.1.20200412/libraries/ghci/SizedSeq.hs
haskell
# LANGUAGE StandaloneDeriving, DeriveGeneric # See note [Why do we import Prelude here?] # UNPACK #
module SizedSeq ( SizedSeq(..) , emptySS , addToSS , addListToSS , ssElts , sizeSS ) where import Control.DeepSeq import Data.Binary import Data.List import GHC.Generics deriving (Generic, Show) instance Functor SizedSeq where fmap f (SizedSeq sz l) = SizedSeq sz (fmap f l) instance Foldable Sized...
df7c87e9ca4cf288e595f5b98522830430e1282f134ef4069a57fe2cf056d8ef
jimcrayne/jhc
DoInfix.hs
x <|> y = y main :: IO () main = do{ putStrLn "foo"; putStrLn "bar" } <|> putStrLn "baz"
null
https://raw.githubusercontent.com/jimcrayne/jhc/1ff035af3d697f9175f8761c8d08edbffde03b4e/regress/tests/0_parse/2_pass/DoInfix.hs
haskell
x <|> y = y main :: IO () main = do{ putStrLn "foo"; putStrLn "bar" } <|> putStrLn "baz"
dbe5f77366072a264ee1a12b81769781fa09d6b52b10703cd83fd7b50a685252
ghc/packages-Cabal
Lib.hs
module Lib where lib = 1
null
https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/cabal-testsuite/PackageTests/NewBuild/CmdBuild/OnlyConfigure/Lib.hs
haskell
module Lib where lib = 1
fdd5eacbb33a4ae1f2631070b73d651a8261fee4f80de7264f18c55f6470050a
ha-mo-we/Racer
progress.lisp
-*- Mode : Lisp ; Syntax : Ansi - Common - Lisp ; Package : RACER ; Base : 10 -*- Copyright ( c ) 1998 - 2014 , , , . ;;; All rights reserved. Racer is distributed under the following BSD 3 - clause license ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are p...
null
https://raw.githubusercontent.com/ha-mo-we/Racer/d690841d10015c7a75b1ded393fcf0a33092c4de/source/progress.lisp
lisp
Syntax : Ansi - Common - Lisp ; Package : RACER ; Base : 10 -*- 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 c...
Copyright ( c ) 1998 - 2014 , , , . Racer is distributed under the following BSD 3 - clause license Neither the name Racer nor the names of its contributors may be used CONTRIBUTORS " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , VOLKER HAARSLEV , RALF MOELLER , NOR FOR ANY ...
925f53f6317618f48c1fcd74c87b73a798f4861a0a3ffd569f327d68f6a61334
Ekdohibs/camlboot
clflags.mli
val fast : bool ref val applicative_functors : bool ref val transparent_modules : bool ref
null
https://raw.githubusercontent.com/Ekdohibs/camlboot/506280c6e0813e0e794988151a8e46be55373ebc/miniml/interp/clflags.mli
ocaml
val fast : bool ref val applicative_functors : bool ref val transparent_modules : bool ref
350d9831d6f8e7d23937819fba049c3ba15a5ea6495a41234f1327cb6ae81d87
faylang/fay
ExportsIdentifier.hs
module ModuleReExport.ExportsIdentifier where import Prelude div :: () -> String div _ = "I am the identifier!" div' = "bob"
null
https://raw.githubusercontent.com/faylang/fay/8455d975f9f0db2ecc922410e43e484fbd134699/tests/ModuleReExport/ExportsIdentifier.hs
haskell
module ModuleReExport.ExportsIdentifier where import Prelude div :: () -> String div _ = "I am the identifier!" div' = "bob"
ae107fdb69ddb9c3244ab4cfd9a6fe5f4af2d25f31d95e793a3e52e30d06e479
project-fifo/cowboy_oauth
cowboy_oauth_token.erl
-module(cowboy_oauth_token). -export([init/3]). -export([handle/2]). -export([terminate/3]). -ignore_xref([init/3]). -ignore_xref([handle/2]). -ignore_xref([terminate/3]). -record(token_req, { grant_type, code, client_id, client_secret, redirect_uri, userna...
null
https://raw.githubusercontent.com/project-fifo/cowboy_oauth/6f1166255e483a65671a0d5bf72715ebc21546e1/src/cowboy_oauth_token.erl
erlang
Those are only used for the 4.3.2 Password grand
-module(cowboy_oauth_token). -export([init/3]). -export([handle/2]). -export([terminate/3]). -ignore_xref([init/3]). -ignore_xref([handle/2]). -ignore_xref([terminate/3]). -record(token_req, { grant_type, code, client_id, client_secret, redirect_uri, userna...
fb2dcb3c73eef3aa37a118b546af85f479af665a5f6c6c06fd29778c0d907fc1
fulcro-legacy/semantic-ui-wrapper
ui_accordion_accordion.cljs
(ns fulcrologic.semantic-ui.modules.accordion.ui-accordion-accordion (:require [fulcrologic.semantic-ui.factory-helpers :as h] ["semantic-ui-react/dist/commonjs/modules/Accordion/AccordionAccordion" :default AccordionAccordion])) (def ui-accordion-accordion "An Accordion can contain sub-accordions. Pr...
null
https://raw.githubusercontent.com/fulcro-legacy/semantic-ui-wrapper/b0473480ddfff18496df086bf506099ac897f18f/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/accordion/ui_accordion_accordion.cljs
clojure
(ns fulcrologic.semantic-ui.modules.accordion.ui-accordion-accordion (:require [fulcrologic.semantic-ui.factory-helpers :as h] ["semantic-ui-react/dist/commonjs/modules/Accordion/AccordionAccordion" :default AccordionAccordion])) (def ui-accordion-accordion "An Accordion can contain sub-accordions. Pr...
183c6633f7ed403120f19531cc1afa8b0f5285ab38d3003e87f1f099ff69ec1c
input-output-hk/plutus
Unit.hs
| @unit@ and related functions . {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeApplications # {-# LANGUAGE TypeOperators #-} module PlutusCore.StdLib.Data.Unit ( unit , unitval , sequ ) where import PlutusCore.Core import PlutusCore.MkPlc import PlutusCore.Name import PlutusCore.Quote im...
null
https://raw.githubusercontent.com/input-output-hk/plutus/1f31e640e8a258185db01fa899da63f9018c0e85/plutus-core/plutus-core/stdlib/PlutusCore/StdLib/Data/Unit.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE TypeOperators #
| @unit@ and related functions . # LANGUAGE TypeApplications # module PlutusCore.StdLib.Data.Unit ( unit , unitval , sequ ) where import PlutusCore.Core import PlutusCore.MkPlc import PlutusCore.Name import PlutusCore.Quote import Universe | ' ( ) ' as a PLC type . unit :: uni `Includes` () =...
6a14d806f54c8dc00f1ea7611cd943fe1059823d04a29242293401814775e5e2
mtgred/netrunner
log.cljs
(ns nr.angel-arena.log (:require [nr.appstate :refer [app-state current-gameid]] [nr.gameboard.state :refer [game-state not-spectator?]] [nr.translations :refer [tr]] [nr.utils :refer [time-span-string]] [nr.ws :as ws] [reagent.core :as r])) (defn more-time [] (ws/ws-send! [:angel-arena/more-time...
null
https://raw.githubusercontent.com/mtgred/netrunner/42c5ecc6a7c69c173822c0e9ef1a8d09b02b5bdc/src/cljs/nr/angel_arena/log.cljs
clojure
else
(ns nr.angel-arena.log (:require [nr.appstate :refer [app-state current-gameid]] [nr.gameboard.state :refer [game-state not-spectator?]] [nr.translations :refer [tr]] [nr.utils :refer [time-span-string]] [nr.ws :as ws] [reagent.core :as r])) (defn more-time [] (ws/ws-send! [:angel-arena/more-time...
4b591843121ad7ff1876e12396d7a3545423657506e3c5e8b581c4f722cd5862
Javran/advent-of-code
Day7.hs
module Javran.AdventOfCode.Y2022.Day7 ( ) where import Control.Applicative import Control.Monad import Control.Monad.State.Strict import Control.Monad.Writer.CPS import Data.Char import qualified Data.DList as DL import qualified Data.IntSet as IS import Data.List import qualified Data.Map.Strict as M import Javran....
null
https://raw.githubusercontent.com/Javran/advent-of-code/b57b8d9f4b412390e3ca9d12a894c15081955960/src/Javran/AdventOfCode/Y2022/Day7.hs
haskell
For a directory: > (<entity name>, Nothing) For a file: > (<entity name>, Just <size>) It should be fine just returning `Just xs` here. We intentionally raise an exception here to see if any of the directory content appears more than once...
module Javran.AdventOfCode.Y2022.Day7 ( ) where import Control.Applicative import Control.Monad import Control.Monad.State.Strict import Control.Monad.Writer.CPS import Data.Char import qualified Data.DList as DL import qualified Data.IntSet as IS import Data.List import qualified Data.Map.Strict as M import Javran....
dec41269e2a4c39a6937ce943b529c1ce28b467c7589b15aaae4d68e9f607cc5
owlbarn/owl_opt
pair.ml
open Owl module Prms = Owl_opt.Prms.Pair module O = Owl_opt.D.Adam.Make (Prms) let () = let x = Algodiff.D.Mat.gaussian 3 1 in let a = Algodiff.D.Mat.gaussian 5 3 in let b = Algodiff.D.Mat.gaussian 5 1 in let y = Algodiff.D.Maths.((a *@ x) + b) in let prms0 = Prms.pack (Algodiff.D.Mat.gaussian 5 3, Algodiff....
null
https://raw.githubusercontent.com/owlbarn/owl_opt/c3b34072dddbce2d70e1698c5f1fd84d783f9cef/examples/opt/pair.ml
ocaml
open Owl module Prms = Owl_opt.Prms.Pair module O = Owl_opt.D.Adam.Make (Prms) let () = let x = Algodiff.D.Mat.gaussian 3 1 in let a = Algodiff.D.Mat.gaussian 5 3 in let b = Algodiff.D.Mat.gaussian 5 1 in let y = Algodiff.D.Maths.((a *@ x) + b) in let prms0 = Prms.pack (Algodiff.D.Mat.gaussian 5 3, Algodiff....
4f81b738c19ba0a469f1ebc69be3b04953d1eefee2536c33de2a749e869a572b
mmontone/cl-forms
fields.lisp
(in-package :forms.test) (forms:defform fields-form (:action "/fields-post" :enctype "multipart/form-data") ((name :string :value "") (ready :boolean :value t) (sex :choice :choices (list "Male" "Female") :value "Male") (avatar :file :upload-handler 'handle-file-upload) ...
null
https://raw.githubusercontent.com/mmontone/cl-forms/b2701defe2867a529d2d3a237f7ba0c4d08ffb23/test/demo/fields.lisp
lisp
Choices widget test File handling Store the file Save for handler
(in-package :forms.test) (forms:defform fields-form (:action "/fields-post" :enctype "multipart/form-data") ((name :string :value "") (ready :boolean :value t) (sex :choice :choices (list "Male" "Female") :value "Male") (avatar :file :upload-handler 'handle-file-upload) ...
7a937999013f4ef254cc3fa68d43fd40b6372b33d411cd1cba96db937be1f171
inhabitedtype/angstrom
test_json.ml
let read f = try let ic = open_in_bin f in let n = in_channel_length ic in let s = Bytes.create n in really_input ic s 0 n; close_in ic; let b = Bigstringaf.create n in Bigstringaf.blit_from_bytes s ~src_off:0 b ~dst_off:0 ~len:n; b with e -> failwith (Printf.sprintf "Cannot read...
null
https://raw.githubusercontent.com/inhabitedtype/angstrom/5536d1da71469b49f37076beb5f75d34f448da5e/lib_test/test_json.ml
ocaml
let read f = try let ic = open_in_bin f in let n = in_channel_length ic in let s = Bytes.create n in really_input ic s 0 n; close_in ic; let b = Bigstringaf.create n in Bigstringaf.blit_from_bytes s ~src_off:0 b ~dst_off:0 ~len:n; b with e -> failwith (Printf.sprintf "Cannot read...
d86d566c5ad8dcdeaf1655c9e18c38c1c7a61a7443862226c737533f0c77f15c
PLTools/GT
test008.mli
@type ident = [`Var of string] @type 'a arith = [ `Add of 'a * 'a | `Sub of 'a * 'a] @type 'a expr = [ ident | 'a arith ]
null
https://raw.githubusercontent.com/PLTools/GT/62d1a424a3336f2317ba67e447a9ff09d179b583/regression/test008.mli
ocaml
@type ident = [`Var of string] @type 'a arith = [ `Add of 'a * 'a | `Sub of 'a * 'a] @type 'a expr = [ ident | 'a arith ]
f85314f883a6be5158b064628071160fd961950b3f5abd4577463f15983774a3
Haskell-Things/ImplicitCAD
Expr.hs
{- ORMOLU_DISABLE -} Implicit CAD . Copyright ( C ) 2011 , ( ) Copyright ( C ) 2014 - 2019 , ( ) Copyright ( C ) 2016 , ( ) -- Released under the GNU AGPLV3+, see LICENSE Allow us to use shorter forms of Var and Name . # LANGUAGE PatternSynonyms # -- Allow us to use string literals for Text {-# LANGU...
null
https://raw.githubusercontent.com/Haskell-Things/ImplicitCAD/0853138d2cb61c48a29bc29443a3daf7f03101cf/Graphics/Implicit/ExtOpenScad/Parser/Expr.hs
haskell
ORMOLU_DISABLE Released under the GNU AGPLV3+, see LICENSE Allow us to use string literals for Text # LANGUAGE OverloadedStrings # A parser for a numeric expressions. The lexer. The parsec parsing library. Borrowed the pattern from -ternary-operator-with-parsec/1052460 "higher" represents the higher precedence...
Implicit CAD . Copyright ( C ) 2011 , ( ) Copyright ( C ) 2014 - 2019 , ( ) Copyright ( C ) 2016 , ( ) Allow us to use shorter forms of Var and Name . # LANGUAGE PatternSynonyms # module Graphics.Implicit.ExtOpenScad.Parser.Expr(expr0) where import Prelude (Char, Maybe(Nothing, Just), ($), (<>), id...
3986f61c158b2232d9b550e54a41a485c71dcc75e14f176f728a338c9af0dfbe
g-andrade/tls_certificate_check
tls_certificate_check.erl
Copyright ( c ) 2020 - 2023 %% %% Permission is hereby granted, free of charge, to any person obtaining a %% copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction , including without limitation %% the rights to use, copy, modify, merge, publish, di...
null
https://raw.githubusercontent.com/g-andrade/tls_certificate_check/539550f810008368ae9d00cf970858a4e0373ede/src/tls_certificate_check.erl
erlang
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, publish, distribute, sublicense, Software is furnished to do so, subject to the following conditions: The above copyright not...
Copyright ( c ) 2020 - 2023 to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR ...
41c7ae34a3d5815c62807625de01ed343efe7daac31896df7b2994bfc8b6c668
clojure-interop/java-jdk
SchemaOutputResolver.clj
(ns javax.xml.bind.SchemaOutputResolver "Controls where a JAXB implementation puts the generates schema files. An implementation of this abstract class has to be provided by the calling application to generate schemas. This is a class, not an interface so as to allow future versions to evolve without br...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.xml/src/javax/xml/bind/SchemaOutputResolver.clj
clojure
(ns javax.xml.bind.SchemaOutputResolver "Controls where a JAXB implementation puts the generates schema files. An implementation of this abstract class has to be provided by the calling application to generate schemas. This is a class, not an interface so as to allow future versions to evolve without br...
83ff0106d5a76372e20119a901b006328481d2c188ef4e3061daeba82cdde8a8
Ericson2314/lighthouse
getEnvironment01.hs
test for trac # 781 ( GHCi on x86_64 , can not link to static data in shared libs ) import System.Posix.Env main = getEnvironment >>= (print . (0 <=) . length)
null
https://raw.githubusercontent.com/Ericson2314/lighthouse/210078b846ebd6c43b89b5f0f735362a01a9af02/ghc-6.8.2/libraries/unix/tests/getEnvironment01.hs
haskell
test for trac # 781 ( GHCi on x86_64 , can not link to static data in shared libs ) import System.Posix.Env main = getEnvironment >>= (print . (0 <=) . length)
4ea064f53111bd8a6a4a72d716be5028f545139d18d28e85ab342adc1256335c
mhayashi1120/Gauche-net-twitter
media+.scm
(define-module net.twitter.media+ (extend net.twitter.media) (use rfc.http) (use file.util) (use gauche.uvector) (export upload-media ;; TODO Obsoleted upload)) (select-module net.twitter.media+) ;; Sample implementation Upload media. See: ;; -media/uploading-media/media-best-practices (define-in-m...
null
https://raw.githubusercontent.com/mhayashi1120/Gauche-net-twitter/2c6ae5ff15461cb34a86c71e8f9f4eb5b7a7bf87/src/net/twitter/media%2B.scm
scheme
TODO Obsoleted Sample implementation Upload media. See: -media/uploading-media/media-best-practices maybe stuck with port buffer size Return multiple values media-id and unix seconds as <integer> (epoch, `sys-time`). SEQUENCE:<integer> -> SIZE:<integer> -> PROGRESS/JSON {<json> | #f} -> <void> - SEQUENCE : ...
(define-module net.twitter.media+ (extend net.twitter.media) (use rfc.http) (use file.util) (use gauche.uvector) (export upload-media upload)) (select-module net.twitter.media+) (define-in-module rfc.http (media-multipart-sender params) (^[hdrs encoding header-sink] (receive (body boundary) (htt...
b772c6add58901fcd66f6988f3866fe2cd656059d5d8051a419059a5504964b1
mfoemmel/erlang-otp
corba.erl
%%-------------------------------------------------------------------- %% %% %CopyrightBegin% %% Copyright Ericsson AB 1997 - 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...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/orber/src/corba.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. S...
Copyright Ericsson AB 1997 - 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 " This file contains the CORBA::ORB inte...
d5647a06aa9e3a98a439aa9c2c53141db320031b51288c740776e670f11a87ed
ftomassetti/civs
core_test.clj
(ns civs.model.core-test (:require [clojure.test :refer :all] [civs.core :refer :all] [civs.model.core :refer :all] [civs.model.language :refer :all] [civs.model.society :refer :all] [civs.logic.core :refer :all] [civs.logic.basic :refer :all] ...
null
https://raw.githubusercontent.com/ftomassetti/civs/dc76bfff4241f67d4bc1081de3947a725ea75c39/test/civs/model/core_test.clj
clojure
Population Culture Group Political entity We are in a corner, surrounded just by see This tile is land
(ns civs.model.core-test (:require [clojure.test :refer :all] [civs.core :refer :all] [civs.model.core :refer :all] [civs.model.language :refer :all] [civs.model.society :refer :all] [civs.logic.core :refer :all] [civs.logic.basic :refer :all] ...
0e5d855a6b39ddb690833755739a00fad567ad302e7b46b8bfdf3107ba672af5
karlhof26/gimp-scheme
kward1979uk_fire.scm
Created by ; License : ; ; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ; (at your option) any later version. ; ; This p...
null
https://raw.githubusercontent.com/karlhof26/gimp-scheme/87446c4df9dd6716b79b131bcbea92fa93d4ea36/kward1979uk_fire.scm
scheme
This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See t...
Created by License : it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or To view a copy of the GNU General Public License (define (duplicate-layer image layer ) (let* ((dup-layer (car (gimp-laye...
d326b4be01f8010ef27932e6ee8ef36f7c74d36f7ee068ac1d048ef923452ee4
iskandr/parakeet-retired
TypeCheck.ml
(* pp: -parser o pa_macro.cmo *) open Base open Printf open PhiNode open TypedSSA type errors = (SrcInfo.t option * string) Queue.t type tenv = Type.t ID.Map.t let check_value (errorLog:errors)(tenv:tenv) (defined : ID.Set.t) vNode : unit = let err msg = Queue.add (vNode.value_src, msg) errorLog in match vNode.va...
null
https://raw.githubusercontent.com/iskandr/parakeet-retired/3d7e6e5b699f83ce8a1c01290beed0b78c0d0945/SSA/TypeCheck.ml
ocaml
pp: -parser o pa_macro.cmo
open Base open Printf open PhiNode open TypedSSA type errors = (SrcInfo.t option * string) Queue.t type tenv = Type.t ID.Map.t let check_value (errorLog:errors)(tenv:tenv) (defined : ID.Set.t) vNode : unit = let err msg = Queue.add (vNode.value_src, msg) errorLog in match vNode.value with | Var id -> if not...
a22a6113e7977f645a0c482ec150eda59b7abac93a090523cb3ce32df5afcf1d
xmonad/xmonad-contrib
SinkAll.hs
----------------------------------------------------------------------------- -- | Module : XMonad . Actions . -- Description : (DEPRECATED) Push floating windows back into tiling. -- License : BSD3-style (see LICENSE) -- Stability : unstable -- Portability : unportable -- -- Provides a simple bindi...
null
https://raw.githubusercontent.com/xmonad/xmonad-contrib/571d017b8259340971db1736eedc992a54e9022c/XMonad/Actions/SinkAll.hs
haskell
--------------------------------------------------------------------------- | Description : (DEPRECATED) Push floating windows back into tiling. License : BSD3-style (see LICENSE) Stability : unstable Portability : unportable Provides a simple binding that pushes all floating windows on the current wo...
Module : XMonad . Actions . " XMonad . Actions . WithAll " ; this module simply re - exports the # DEPRECATED " Use XMonad . Actions . WithAll instead " # sinkAll) where import XMonad.Actions.WithAll (sinkAll) > import XMonad . Actions .
792f8e7b915656eca127b6cc58ae96d5fa5248fdf49de8eae227ea4497f6aa7e
Ericson2314/lighthouse
UserProc.hs
module Kernel.UserProc(UProc,buildUProc,execUProc) where P : import Prelude hiding ( putStr ) import Prelude hiding (putStr) -} import . Debug(putStr , putStrLn ) import Numeric(showHex) import Data.Bits((.&.)) import Data.Char(chr) import H.Monad(H) import H.UserMode(Context(..),Interrupt(..),execContext) impo...
null
https://raw.githubusercontent.com/Ericson2314/lighthouse/210078b846ebd6c43b89b5f0f735362a01a9af02/kernel/Kernel/UserProc.hs
haskell
die here if out of space putStrLn("Back to kernel: " ++ (show interrupt)) putStrLn(show uproc') system call Argh, another route for interrupts to appear aside from interruptHandler... any other code means we're done, like it or not exit putChar sbrk round down to nearest whole number multiple of page size ...
module Kernel.UserProc(UProc,buildUProc,execUProc) where P : import Prelude hiding ( putStr ) import Prelude hiding (putStr) -} import . Debug(putStr , putStrLn ) import Numeric(showHex) import Data.Bits((.&.)) import Data.Char(chr) import H.Monad(H) import H.UserMode(Context(..),Interrupt(..),execContext) impo...
37ccb51783ed5626daf81170235915aa27434c287dd1fdd017acb9f52a808ae3
yuriy-chumak/ol
50.scm
(define-library (config 50) (export something) (import (scheme core)) (begin (define something 21)))
null
https://raw.githubusercontent.com/yuriy-chumak/ol/83dd03d311339763682eab02cbe0c1321daa25bc/tests/config/50.scm
scheme
(define-library (config 50) (export something) (import (scheme core)) (begin (define something 21)))
1c4ff7f93eec545194e3dfb230afcb78ac6573abd5f5428b5f3db540bcc7d1f6
facebook/infer
CSharpClassName.ml
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/facebook/infer/571123137033ea828a63052eb14b37bac38842ba/infer/src/IR/CSharpClassName.ml
ocaml
* invariant: if [namespace = Some str] then [not (String.equal str "")]. [classname] appears first so that the comparator fails earlier
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
98383fc5345e035e59ef00772af26c0cbed56f7004e6a73de2cf80762cdd1b3c
taezos/real-world-yesod
Application.hs
# LANGUAGE MultiParamTypeClasses # # LANGUAGE NoImplicitPrelude # # LANGUAGE OverloadedStrings # # LANGUAGE RecordWildCards # {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TemplateHaskell #-} # LANGUAGE TypeFamilies # # LANGUAGE ViewPatterns # # OPTIONS_GHC -fno - warn -...
null
https://raw.githubusercontent.com/taezos/real-world-yesod/760899af005381c3c2f3767328907a9d0fcbfdae/src/Application.hs
haskell
# LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # * for DevelMain * for GHCI monad-logger persistent real-world-yesod tempalte-haskell wai fast-logger comments there for more details. | This function allocates resources (such as a database connection pool), performs initialization and ret...
# LANGUAGE MultiParamTypeClasses # # LANGUAGE NoImplicitPrelude # # LANGUAGE OverloadedStrings # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE ViewPatterns # # OPTIONS_GHC -fno - warn - orphans # module Application ( getApplicationDev , appMain , deve...
f211743af6062e8384572738b5c8d70172ce0e7884988f12588a036dc4c343b8
erdos/stencil
log_test.clj
(ns stencil.log-test (:require [stencil.log :as log] [clojure.test :refer [deftest testing]])) (deftest test-logs (testing "Test log macros of various arities" (doseq [x '[stencil.log/info stencil.log/warn stencil.log/debug stencil.log/trace ...
null
https://raw.githubusercontent.com/erdos/stencil/3f183d58aba90a20194e4567233f46f10aaff117/test/stencil/log_test.clj
clojure
(ns stencil.log-test (:require [stencil.log :as log] [clojure.test :refer [deftest testing]])) (deftest test-logs (testing "Test log macros of various arities" (doseq [x '[stencil.log/info stencil.log/warn stencil.log/debug stencil.log/trace ...
5ba7078d6fb183858da525323e04f10b42bf5dbcbe8a28558935474f2fd06069
nanit/kubernetes-custom-hpa
reconciler_test.clj
(ns custom-hpa.control-loop.reconciler-test (:require [clojure.test :refer :all] [custom-hpa.test-helper.control-loop.status :refer [status-fixture]] [custom-hpa.helpers.env :refer [double-env]] [custom-hpa.control-loop.common :refer [scale-up scale-down]] [custom-...
null
https://raw.githubusercontent.com/nanit/kubernetes-custom-hpa/e6f07f271336c3ede1e8cdfcf426f639469c2f33/app/test/custom_hpa/control_loop/reconciler_test.clj
clojure
(ns custom-hpa.control-loop.reconciler-test (:require [clojure.test :refer :all] [custom-hpa.test-helper.control-loop.status :refer [status-fixture]] [custom-hpa.helpers.env :refer [double-env]] [custom-hpa.control-loop.common :refer [scale-up scale-down]] [custom-...
2a748fec89d99e17c1ebd9676387d5f92a6090322adec0bfb99ce0095d3428ce
talex5/cuekeeper
static.ml
let read path = Some ("contents of " ^ path)
null
https://raw.githubusercontent.com/talex5/cuekeeper/ef8c97637627cf90902a0be50c8d39eadacc88b3/tests/static.ml
ocaml
let read path = Some ("contents of " ^ path)
de1dbb1ac5b0e44efc7da6396511f0162c963d057810ded97d3f8248e58b1f19
FranklinChen/hugs98-plus-Sep2006
OpenGL.hs
-------------------------------------------------------------------------------- -- | -- Module : Graphics.Rendering.OpenGL Copyright : ( c ) 2002 - 2005 -- License : BSD-style (see the file libraries/OpenGL/LICENSE) -- -- Maintainer : -- Stability : provisional -- Portability : portable -- ...
null
https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/OpenGL/Graphics/Rendering/OpenGL.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.Rendering.OpenGL License : BSD-style (see the file libraries/OpenGL/LICENSE) Maintainer : Stability : provisional Portability : portable --------------------------------------------------------...
Copyright : ( c ) 2002 - 2005 A convenience module , combining the Haskell bindings for GL and GLU . module Graphics.Rendering.OpenGL ( $ SupportedExtensions $ LegalStuff module Graphics.Rendering.OpenGL.GL , module Graphics.Rendering.OpenGL.GLU ) where import Graphics.Rendering.OpenGL.GL i...
b829222c870947ee69ab66f3a2f71dd874b311628aab978a16fee3edfeffdfad
emilypi/lens-process
StdStream.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE UndecidableInstances # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE TypeFamilies # {-# LANGUAGE Rank2Types #-} -- | -- Module : System.Process.Lens.StdStream Copyright : ( c ) 2019 - 2021 -- License : BSD -- Maintainer : < > -- Stabilit...
null
https://raw.githubusercontent.com/emilypi/lens-process/75f9d1c0fd7e451e5983f16ada6db2791560a968/src/System/Process/Lens/StdStream.hs
haskell
# LANGUAGE Rank2Types # | Module : System.Process.Lens.StdStream License : BSD Stability : Experimental This module provides the associated optics and combinators cases, for which we provide prisms and classy variants. * Prisms * Classy Prisms * Combinators $setup >>> :set -XTypeApplications >>> :s...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE UndecidableInstances # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE TypeFamilies # Copyright : ( c ) 2019 - 2021 Maintainer : < > Portability : TypeFamilies , Rank2Types for working with ' StdStream ' objects . ' StdStream ' consists of...
f98a6de4517724c92692feb9eac773b3ac648b223504ab53c913412320e2d5a9
hjcapple/reading-sicp
exercise_3_29.scm
#lang sicp P192 - [ 练习 3.29 ] (#%require "digital_circuit.scm") (define (or-gate a1 a2 output) (let ((b (make-wire)) (c (make-wire)) (d (make-wire)) ) (inverter a1 b) (inverter a2 c) (and-gate b c d) (inverter d output) 'ok)) ;;;;;;;;;;;;;;;;;;;; (#%require (only rac...
null
https://raw.githubusercontent.com/hjcapple/reading-sicp/7051d55dde841c06cf9326dc865d33d656702ecc/chapter_3/exercise_3_29.scm
scheme
digital_circuit.scm 中的定义
#lang sicp P192 - [ 练习 3.29 ] (#%require "digital_circuit.scm") (define (or-gate a1 a2 output) (let ((b (make-wire)) (c (make-wire)) (d (make-wire)) ) (inverter a1 b) (inverter a2 c) (and-gate b c d) (inverter d output) 'ok)) (#%require (only racket module*)) (module...
69afa5eea69b08721a8f5d80666e8a3bc4df8c6af05306a9e1eaee92d469c6e5
msempere/markhor
markhor_message_handler.erl
-module(markhor_message_handler). -compile([{parse_transform, lager_transform}]). -export([init/3 , allowed_methods/2 , content_types_accepted/2 , content_types_provided/2 , handle_incomming_post_message/2 , handle_incomming_get_message/2 , terminate/3 , rest_ini...
null
https://raw.githubusercontent.com/msempere/markhor/37fd4d8fdc316dfb36b91068e30641c507478e24/src/markhor_message_handler.erl
erlang
Callbacks API
-module(markhor_message_handler). -compile([{parse_transform, lager_transform}]). -export([init/3 , allowed_methods/2 , content_types_accepted/2 , content_types_provided/2 , handle_incomming_post_message/2 , handle_incomming_get_message/2 , terminate/3 , rest_ini...
22d8a86a71831f790d19a44032a627ebbf48818715c7da4b50cfc619028b00af
turquoise-hexagon/euler
solution.scm
(define (solve n) (do ((a 1 (+ a 1)) (s 0 (do ((b 1 (+ b 1)) (s s (+ s (* 2 (min (quotient (* (- b 0) (gcd a b)) a) (quotient (* (- n a) (gcd a b)) b)))))) ((> b n) s)))) ((> a n) (+ (* 3 n n) s)))) (let ((_ (solve 50))) (print _) (asse...
null
https://raw.githubusercontent.com/turquoise-hexagon/euler/6108e3a84d754274a5e7ff90c2a985781e6c3d82/src/091/solution.scm
scheme
(define (solve n) (do ((a 1 (+ a 1)) (s 0 (do ((b 1 (+ b 1)) (s s (+ s (* 2 (min (quotient (* (- b 0) (gcd a b)) a) (quotient (* (- n a) (gcd a b)) b)))))) ((> b n) s)))) ((> a n) (+ (* 3 n n) s)))) (let ((_ (solve 50))) (print _) (asse...
95fc6747d2dde4ad34434f9c2a66c21547a9196f3ba7827b2bdffd6810a98c71
ucsd-progsys/liquid-sf
TotalMaps.hs
{-@ LIQUID "--reflection" @-} {-@ LIQUID "--ple" @-} module TotalMaps where import ProofCombinators -- | A total map is a function from `k` to `v` type TotalMap k v = k -> v -- | A map that returns a `def`ault value {-@ reflect def @-} def :: v -> TotalMap k v def v _ = v -- | Return the value of a give...
null
https://raw.githubusercontent.com/ucsd-progsys/liquid-sf/10f864e0521ef5920bb35af40a14c086f94370dd/vfa/TotalMaps.hs
haskell
@ LIQUID "--reflection" @ @ LIQUID "--ple" @ | A total map is a function from `k` to `v` | A map that returns a `def`ault value @ reflect def @ | Return the value of a given key `k` @ reflect get @ | Update the value of `k` with a value `v` @ reflect set @ | An example map @ test :: () -> TT @ | A default...
module TotalMaps where import ProofCombinators type TotalMap k v = k -> v def :: v -> TotalMap k v def v _ = v get :: TotalMap k v -> k -> v get m k = m k set :: (Eq k) => TotalMap k v -> k -> v -> TotalMap k v set m k v key | key == k = v | otherwise = get m key @ reflect @ exMap :: TotalMap Int St...
0f3530ef3964690ef85b4fbd20cae4420ac823214f0ca6285aee9f6507d659ea
ml4tp/tcoq
cClosure.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/kernel/cClosure.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Profiling [r_const=(true,cl)] mea...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Created by with accoun...
1cec087d946312bc74e9ee95a497fb4c5b3d37a7127e0def31fe6831010441cb
jepsen-io/jepsen
runner.clj
(ns jepsen.ignite.runner "Runs Apache Ignite tests." (:gen-class) (:require [clojure.pprint :refer [pprint]] [clojure.tools.logging :refer :all] [jepsen.cli :as jc] [jepsen.core :as jepsen] [jepsen.ignite [register :as register] [bank ...
null
https://raw.githubusercontent.com/jepsen-io/jepsen/a75d5a50dd5fa8d639a622c124bf61253460b754/ignite/src/jepsen/ignite/runner.clj
clojure
(ns jepsen.ignite.runner "Runs Apache Ignite tests." (:gen-class) (:require [clojure.pprint :refer [pprint]] [clojure.tools.logging :refer :all] [jepsen.cli :as jc] [jepsen.core :as jepsen] [jepsen.ignite [register :as register] [bank ...
7cc6fa1dc84a243a6b968402a5edfa7a0058dae995d8f5aa3900f0d34e4ae7d7
camfort/reprinter
ReprinterSpec.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE FlexibleInstances # {-# LANGUAGE OverloadedStrings #-} module ReprinterSpec where import Text.Reprinter import Text.Reprinter.Example import Test.Hspec These tests use definitions from the example module ' Text . . Example ' . -- Note that 'unlines' appends a newli...
null
https://raw.githubusercontent.com/camfort/reprinter/463d07b57ae4ee8ea8bf37b4761cc8230e03b2e5/tests/hspec/ReprinterSpec.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE OverloadedStrings # Note that 'unlines' appends a newline on to _every_ string, including the last one. Apply the refactoring in a loop until a pass makes no changes.
# LANGUAGE FlexibleInstances # module ReprinterSpec where import Text.Reprinter import Text.Reprinter.Example import Test.Hspec These tests use definitions from the example module ' Text . . Example ' . spec :: Spec spec = do describe "refactor" $ do it "removes additions of zeroes" $ do refactor ex...
26b0b97fd4fbabf9b30bae1e20b7e0ad17c8a3cf5991b384eafb912532d372a1
ferdinand-beyer/refx
core.cljs
(ns todomvc.helix.core (:require ["react" :as react] ["react-dom" :as react-dom] [helix.core :refer [$]] [todomvc.core] [todomvc.helix.views :as views] [refx.alpha :as refx])) ;; -- Entry Point ------------------------------------------------------------- ...
null
https://raw.githubusercontent.com/ferdinand-beyer/refx/27651b5d650a9651d191326ecdb4bcb0e42e3230/examples/helix/src/todomvc/helix/core.cljs
clojure
-- Entry Point ------------------------------------------------------------- Render the UI into the HTML's <div id="app" /> element The view function `todomvc.views/todo-app` is the root view for the entire UI. The `:dev/after-load` metadata causes this function to be called after shadow-cljs hot-reloads code. We...
(ns todomvc.helix.core (:require ["react" :as react] ["react-dom" :as react-dom] [helix.core :refer [$]] [todomvc.core] [todomvc.helix.views :as views] [refx.alpha :as refx])) (defn render [] (react-dom/render ($ react/StrictMode ($ views/todo-app)) ...
87583aefbef8f643748aaa49023c404a67273aa292b47b445e29f8e9dd7d1409
karimarttila/clojure
dev.cljs
(ns ^:figwheel-no-load simplefrontend.dev (:require [simplefrontend.core :as core] [devtools.core :as devtools])) (enable-console-print!) (devtools/install!) (core/init!)
null
https://raw.githubusercontent.com/karimarttila/clojure/ee1261b9a8e6be92cb47aeb325f82a278f2c1ed3/clj-ring-cljs-reagent-demo/simple-frontend/env/dev/cljs/simplefrontend/dev.cljs
clojure
(ns ^:figwheel-no-load simplefrontend.dev (:require [simplefrontend.core :as core] [devtools.core :as devtools])) (enable-console-print!) (devtools/install!) (core/init!)
62e33d61bfc9dfc012d20fe708e99fe2699fc3d8fd25d89c73383d3523a065d8
robert-strandh/SICL
instruction-layout.lisp
(cl:in-package #:cleavir-ir-visualizer) ;;; This table is created for each function. It maps an instruction ;;; to T if and only if it has already been considered for layout. (defvar *instruction-table*) ;;; Take a layer of instructions that may contain instructions that ;;; have already been considered for layout, ...
null
https://raw.githubusercontent.com/robert-strandh/SICL/bd3ec8f991d9455541d1629a3c672ae3d46dc16d/Code/Cleavir/Intermediate-representation/Visualizer/instruction-layout.lisp
lisp
This table is created for each function. It maps an instruction to T if and only if it has already been considered for layout. Take a layer of instructions that may contain instructions that have already been considered for layout, and that may contain duplicates and return a filtered version of it. The filtered...
(cl:in-package #:cleavir-ir-visualizer) (defvar *instruction-table*) (defun filter-instructions (layer remaining-path) (remove-duplicates (loop for instruction in layer unless (or (gethash instruction *instruction-table*) (member instruction (cdr remaining-path))) collect ...
29e43bdb8568c064d6681b73c8e5f0b19515fe900e82784314a79fc1b9993056
ivanjovanovic/sicp
5.5-factorial-compiled.scm
(assign val (op make-compiled-procedure) (label entry1) (reg env)) (goto (label after-lambda2)) entry1 (assign env (op compiled-procedure-env) (reg proc)) (assign env (op extend-environment) (const (n)) (reg argl) (reg env)) (save continue) (save env) (assign proc (op lookup-variable-value) (const =) (reg...
null
https://raw.githubusercontent.com/ivanjovanovic/sicp/a3bfbae0a0bda414b042e16bbb39bf39cd3c38f8/5.5/5.5-factorial-compiled.scm
scheme
(assign val (op make-compiled-procedure) (label entry1) (reg env)) (goto (label after-lambda2)) entry1 (assign env (op compiled-procedure-env) (reg proc)) (assign env (op extend-environment) (const (n)) (reg argl) (reg env)) (save continue) (save env) (assign proc (op lookup-variable-value) (const =) (reg...