_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
810765f02c4e1db7af4b93bd80d564ea20d02230e46f0181a4a46f36ea619b83
johnwhitington/ocamli
exercise01.ml
type rect = Square of int | Rectangle of int * int
null
https://raw.githubusercontent.com/johnwhitington/ocamli/28da5d87478a51583a6cb792bf3a8ee44b990e9f/OCaml%20from%20the%20Very%20Beginning/Chapter%2010/exercise01.ml
ocaml
type rect = Square of int | Rectangle of int * int
89db7ea68f9d475058b299a04680ae92abbd8c726535268db09560e3c4019233
ocaml/ocaml
option.mli
(**************************************************************************) (* *) (* OCaml *) (* *) (* ...
null
https://raw.githubusercontent.com/ocaml/ocaml/8e632389b2b7d3d717a59894065d8d4a73baf92e/stdlib/option.mli
ocaml
************************************************************************ OCaml The...
Copyright 2018 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the * Option values . Option values explicitly indicate the presence or absence of a value . @since 4.08 Option values explicitly indicate the presence or ...
70996977b4714d33945ec2506eae3f8a0a6f5ac7a9f8fab08eddb1dce81157b5
unclebob/more-speech
migrator.clj
(ns more-speech.migrator (:require [clojure.java.io :as io] [clojure.set :as set] [more-speech.config :refer [migration-filename]] [more-speech.config :as config] [more-speech.nostr [util :as util] [elliptic-signature :as ecc] [eve...
null
https://raw.githubusercontent.com/unclebob/more-speech/6a629f6837f056f33bf928d3826a0b96e53934ac/src/more_speech/migrator.clj
clojure
---The Migrations --- Migration 2 --- --- Migration 3 --- --- Migration 4 --- --- Migration 5 --- --- Migration 6 --- --- Migration 9 contact lists file --- ---------- The Migrations List ------- --------------------------------------
(ns more-speech.migrator (:require [clojure.java.io :as io] [clojure.set :as set] [more-speech.config :refer [migration-filename]] [more-speech.config :as config] [more-speech.nostr [util :as util] [elliptic-signature :as ecc] [eve...
4942671acaf99958fbf93ddd15108ed8405cb218dfb1eefc63e9c7b9887f9458
semerdzhiev/fp-2020-21
solutions.rkt
#lang racket ; take и drop не се държат така попринцип в racket, n биха . примерно се държат точно както са написани тук . 1 . Връща списъка lst само с първите n елемента . (define (take* xs n) (cond [(zero? n) '()] [(> n (length xs)) xs] [else (cons (car xs) ...
null
https://raw.githubusercontent.com/semerdzhiev/fp-2020-21/64fa00c4f940f75a28cc5980275b124ca21244bc/group-d/05/solutions.rkt
racket
take и drop не се държат така попринцип в racket, Hint: Спомнете си как cons-овете могат да се изпълнят в обратен. Разписваме transpose: (define m '((1 2 3) <=> <=> (transpose m)
#lang racket n биха . примерно се държат точно както са написани тук . 1 . Връща списъка lst само с първите n елемента . (define (take* xs n) (cond [(zero? n) '()] [(> n (length xs)) xs] [else (cons (car xs) (take* (cdr xs) (- n 1)...
f278a797144ecd3f27570c8cbf254d3565adf7e229e0aaa436e9e8ac7b5354dc
maxhbr/LDBcollector
Google.hs
# LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} {- - this contains informations from the google oss policy: - - / -} module Collectors.Google ( loadGoogleFacts , googleLFC ) where import qualified Prelude as P import MyPrelude import Collectors.C...
null
https://raw.githubusercontent.com/maxhbr/LDBcollector/51d940f0af00b2acdd7de246b2be16fa30fc8a6b/src/Collectors/Google.hs
haskell
# LANGUAGE OverloadedStrings # - this contains informations from the google oss policy: - - / GNU Classpath’s GPL + exception GNU GPL v1, v2, v3 GNU LGPL v2.1, v3 (though marked as restricted, LGPL-licensed components can be used without observing all of the restricted-type requirements if the component is dyna...
# LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # module Collectors.Google ( loadGoogleFacts , googleLFC ) where import qualified Prelude as P import MyPrelude import Collectors.Common import qualified Data.Vector as V import Model.License data GoogleClassification = RES...
32c683d35ed1dcec3091462e233dadb7ba5734324857ef31a875c9afad6e761b
CarlWright/NGerlguten
eg_font_9.erl
-module(eg_font_9). -export([width/1, kern/2, fontName/0, firstChar/0,lastChar/0]). -export([index/0,ascender/0,capHeight/0,descender/0,italicAngle/0]). -export([xHeight/0, flags/0, type/0, stemV/0,fontBBox/0,widths/0]). -export([encoding/0]). fontName() -> "Symbol". index() -> 9. type() -> internal. encoding() -> "Fon...
null
https://raw.githubusercontent.com/CarlWright/NGerlguten/3c87f2e3a44ae9069f9379933b99c0feb8262d66/lib/ngerlguten/src/eg_font_9.erl
erlang
-module(eg_font_9). -export([width/1, kern/2, fontName/0, firstChar/0,lastChar/0]). -export([index/0,ascender/0,capHeight/0,descender/0,italicAngle/0]). -export([xHeight/0, flags/0, type/0, stemV/0,fontBBox/0,widths/0]). -export([encoding/0]). fontName() -> "Symbol". index() -> 9. type() -> internal. encoding() -> "Fon...
11de9e6501adda41da11fb5b4b14ea956c0f3f534ec64fa3d986fb9f9a6eb008
ocaml/dune
dune_env.ml
open Import type stanza = Stanza.t = .. module Stanza = struct open Dune_lang.Decoder let foreign_flags ~since = let check = Option.map since ~f:(fun since -> Dune_lang.Syntax.since Stanza.syntax since) in let+ c = Ordered_set_lang.Unexpanded.field "c_flags" ?check and+ cxx = Orde...
null
https://raw.githubusercontent.com/ocaml/dune/96b42793c42530b82417d25769db2553620c82a2/src/dune_rules/dune_env.ml
ocaml
open Import type stanza = Stanza.t = .. module Stanza = struct open Dune_lang.Decoder let foreign_flags ~since = let check = Option.map since ~f:(fun since -> Dune_lang.Syntax.since Stanza.syntax since) in let+ c = Ordered_set_lang.Unexpanded.field "c_flags" ?check and+ cxx = Orde...
8ee995b479dadcfd95e43856b7c2ca0fbdcb4cec4b27597b27f8b57dadca2144
artyom-poptsov/guile-dsv
org.scm
;; Example: $ echo -e " a , b , c\na1,b1,c1\na2,b2,c2\n " | dsv -b " org " ;; | a | b | c | ;; | a1 | b1 | c1 | ;; | a2 | b2 | c2 | ;; ;; With a header: $ echo -e " a , b , c\na1,b1,c1\na2,b2,c2\n " | dsv -b " org " -H ;; | a | b | c | |-------...
null
https://raw.githubusercontent.com/artyom-poptsov/guile-dsv/f740f631af87cd719a8e194f951a1c9c4a6dc6df/presets/org.scm
scheme
Example: | a | b | c | | a1 | b1 | c1 | | a2 | b2 | c2 | With a header: | a | b | c | | a1 | b1 | c1 | | a2 | b2 | c2 | Table border style. Table header style. Inner table lines style.
$ echo -e " a , b , c\na1,b1,c1\na2,b2,c2\n " | dsv -b " org " $ echo -e " a , b , c\na1,b1,c1\na2,b2,c2\n " | dsv -b " org " -H |---------+---------+---------| ((name . "org") (description . "Org-mode tables.") (border-left . "|") (border-right . "|")...
25cbe6e87a921b85d34fb14831d40aac1adfefdb0e7bc21cdd59c22b25ee198b
cedlemo/OCaml-GI-ctypes-bindings-generator
Cell_view.mli
open Ctypes type t val t_typ : t typ val create : unit -> Widget.t ptr val create_with_context : Cell_area.t ptr -> Cell_area_context.t ptr -> Widget.t ptr val create_with_markup : string -> Widget.t ptr val create_with_pixbuf : Pixbuf.t ptr -> Widget.t ptr val create_with_text : string -> Widget.t ptr val ...
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Cell_view.mli
ocaml
Not implemented gtk_cell_view_get_model return type interface not handled Not implemented gtk_cell_view_set_model type interface not implemented
open Ctypes type t val t_typ : t typ val create : unit -> Widget.t ptr val create_with_context : Cell_area.t ptr -> Cell_area_context.t ptr -> Widget.t ptr val create_with_markup : string -> Widget.t ptr val create_with_pixbuf : Pixbuf.t ptr -> Widget.t ptr val create_with_text : string -> Widget.t ptr val ...
511ca7907dbe60f7fa6affe22924177c243b159f69dcbe4e04ac7b60df345fe2
ublubu/shapes
Main.hs
{-# LANGUAGE RankNTypes #-} {-# LANGUAGE RecordWildCards #-} # LANGUAGE ScopedTypeVariables # {- | This is an example of how to use this library to create and simulate a world. It's more documentation than an API I actually expect people to use. -} module Physics.Engine.Main ( module Physics.Engine.Main ...
null
https://raw.githubusercontent.com/ublubu/shapes/fa5d959c17224a851d517826deeae097f1583392/shapes/src/Physics/Engine/Main.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE RecordWildCards # | This is an example of how to use this library to create and simulate a world. It's more documentation than an API I actually expect people to use.
# LANGUAGE ScopedTypeVariables # module Physics.Engine.Main ( module Physics.Engine.Main , module Physics.Engine ) where import Control.Lens import Control.Monad.Reader import Control.Monad.ST import Control.Monad.State.Stri...
36b3989c861b12e5cc848463a36e2dd2da6a4f291ef0fdff903e6769cbe0070c
Martoon-00/toy-compiler
FileReader.hs
# LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE Rank2Types #-} {-# LANGUAGE TemplateHaskell #-} module Test.Walker.FileReader ( GatherFile (..) , TestFilesPresence (..) , testFilesPresence , collectFiles , LoadedFileGatherer (..) , applyFileGatherer ) where...
null
https://raw.githubusercontent.com/Martoon-00/toy-compiler/a325d56c367bbb673608d283197fcd51cf5960fa/test/Test/Walker/FileReader.hs
haskell
# LANGUAGE Rank2Types # # LANGUAGE TemplateHaskell # * Files presence * Files collection * Semi-applied
# LANGUAGE GeneralizedNewtypeDeriving # module Test.Walker.FileReader ( GatherFile (..) , TestFilesPresence (..) , testFilesPresence , collectFiles , LoadedFileGatherer (..) , applyFileGatherer ) where import Control.Applicative (Const (..)) import Control.Mona...
6249d4ef6a85ea0a2b72b4f908596781161af67578558d804a881133eda544a2
sdiehl/elliptic-curve
BrainpoolP160T1.hs
module Data.Curve.Weierstrass.BrainpoolP160T1 ( module Data.Curve.Weierstrass , Point(..) -- * BrainpoolP160T1 curve , module Data.Curve.Weierstrass.BrainpoolP160T1 ) where import Protolude import Data.Field.Galois import GHC.Natural (Natural) import Data.Curve.Weierstrass --------------------------------...
null
https://raw.githubusercontent.com/sdiehl/elliptic-curve/445e196a550e36e0f25bd4d9d6a38676b4cf2be8/src/Data/Curve/Weierstrass/BrainpoolP160T1.hs
haskell
* BrainpoolP160T1 curve ----------------------------------------------------------------------------- Types ----------------------------------------------------------------------------- | BrainpoolP160T1 curve. | Field of points of BrainpoolP160T1 curve. | Field of coefficients of BrainpoolP160T1 curve. # INLINABL...
module Data.Curve.Weierstrass.BrainpoolP160T1 ( module Data.Curve.Weierstrass , Point(..) , module Data.Curve.Weierstrass.BrainpoolP160T1 ) where import Protolude import Data.Field.Galois import GHC.Natural (Natural) import Data.Curve.Weierstrass data BrainpoolP160T1 type Fq = Prime Q type Q = 0xe95e4a5f7...
34019321b9c982a1e2865bb0695ba5f7d867b03dc35bec3a9d70fcae4681b7f0
bvaugon/obytelib
astack.ml
(*************************************************************************) (* *) (* OByteLib *) (* *) ...
null
https://raw.githubusercontent.com/bvaugon/obytelib/1b5de4e010ff2be6ab4e38c394ca5b669d6d33ef/src/astack.ml
ocaml
*********************************************************************** OByteLib ...
This file is distributed under the terms of the CeCILL license . type 'a stack = { max_size : int; min_size : int; default : 'a; mutable size : int; mutable tbl : 'a array; } let create max_size init_size default = { max_s...
f0a3c3658dd9e1f7c8ceedef902f2c9f32b0a77e6d2810e599e0c8dc47000d31
lunarcoffee/advent-of-code
Day06.hs
import Control.Monad import Data.List (nub, tails) prefixLength :: Int -> String -> Int prefixLength n = (+ n) . length . takeWhile ((/=) <*> nub) . map (take n) . tails main :: IO () main = do signal <- getContents print $ prefixLength 4 signal print $ prefixLength 14 signal
null
https://raw.githubusercontent.com/lunarcoffee/advent-of-code/97501bb4ca3cc065f7ceae620d0b4249c118021b/2022/Day06.hs
haskell
import Control.Monad import Data.List (nub, tails) prefixLength :: Int -> String -> Int prefixLength n = (+ n) . length . takeWhile ((/=) <*> nub) . map (take n) . tails main :: IO () main = do signal <- getContents print $ prefixLength 4 signal print $ prefixLength 14 signal
1c2d78b30ebde90032a4245aaf4adc98ac3db8f98ab80d7360ca2c60bee6cbde
fragnix/fragnix
Data.ByteString.hs
# LANGUAGE Haskell98 # {-# LINE 1 "Data/ByteString.hs" #-} # LANGUAGE CPP # # LANGUAGE MagicHash , UnboxedTuples , NamedFieldPuns , BangPatterns # NamedFieldPuns, BangPatterns #-} {-# OPTIONS_HADDOCK prune #-} # LANGUAGE Trustworthy # -- ...
null
https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/tests/packages/scotty/Data.ByteString.hs
haskell
# LINE 1 "Data/ByteString.hs" # # OPTIONS_HADDOCK prune # | Module : Data.ByteString License : BSD-style Maintainer : , Stability : stable Portability : portable A time and space-efficient implementation of byte vectors using packed Word8 arrays, suitable for high performance use, both in terms ...
# LANGUAGE Haskell98 # # LANGUAGE CPP # # LANGUAGE MagicHash , UnboxedTuples , NamedFieldPuns , BangPatterns # NamedFieldPuns, BangPatterns #-} # LANGUAGE Trustworthy # Copyright : ( c ) The University of Glasgow 2001 , ...
98187f83a18b3c8e31eecc10425e130906cacdfd7a79dd91c896476de712d1c4
janestreet/vcaml
import.ml
open Core open Async open Vcaml let with_process_cleanup ~name pid ~f = let reap = ref (`Need_to_reap `Impatient) in let print_and_return exit_or_signal = print_s [%message (sprintf "%s exited" name) (exit_or_signal : Unix.Exit_or_signal.t)]; return () in Monitor.protect (fun () -> Deferred.map (f ...
null
https://raw.githubusercontent.com/janestreet/vcaml/64d205c2d6eee4a7e57abd2d452f5979dc6cd797/test/semantics/import.ml
ocaml
open Core open Async open Vcaml let with_process_cleanup ~name pid ~f = let reap = ref (`Need_to_reap `Impatient) in let print_and_return exit_or_signal = print_s [%message (sprintf "%s exited" name) (exit_or_signal : Unix.Exit_or_signal.t)]; return () in Monitor.protect (fun () -> Deferred.map (f ...
3f014fb786bb7e6528e74394355e356b1dee2d638c1d4a47c2dfa20a8fa29802
mbonaci/clojure
repl.clj
(defn xors [max-x max-y] (for [x (range max-x) y (range max-y)] [x y (bit-xor x y)]) (xors 2 2)
null
https://raw.githubusercontent.com/mbonaci/clojure/6bd38e54e9f714183aa039b965d7c03ffdfce220/src/repl.clj
clojure
(defn xors [max-x max-y] (for [x (range max-x) y (range max-y)] [x y (bit-xor x y)]) (xors 2 2)
9aa723613efdb48d103bd3c4f6c5208e44ae4fb8b9a617423ddd72c82d44011a
kumarshantanu/calfpath
project.clj
(defproject calfpath "0.8.1" :description "A la carte ring request matching" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :global-vars {*warn-on-reflection* true *assert* true *unchecked-math* :warn-on-boxed} :pedantic? :warn :java-source-pat...
null
https://raw.githubusercontent.com/kumarshantanu/calfpath/e923ad59106661cd66389cf94954b47558799d00/project.clj
clojure
test with latest CLJS
(defproject calfpath "0.8.1" :description "A la carte ring request matching" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :global-vars {*warn-on-reflection* true *assert* true *unchecked-math* :warn-on-boxed} :pedantic? :warn :java-source-pat...
a29afee4c08df9d5c3b7cbad7d1e515326856aef299fe5502f9a1e4cb75d9dec
def-/ghc-vis
Common.hs
# LANGUAGE CPP , ScopedTypeVariables , RecordWildCards # | Module : GHC.Vis . View . Common Copyright : ( c ) License : 3 - Clause BSD - style Maintainer : Module : GHC.Vis.View.Common Copyright : (c) Dennis Felsing License : 3-Clause BSD-style Maintai...
null
https://raw.githubusercontent.com/def-/ghc-vis/7b93f3aa80c8e5dad356f62babec861a67e20948/src/GHC/Vis/View/Common.hs
haskell
| Communication channel to the visualization | Whether a visualization is currently running # NOINLINE visRunning # | Internal state of the visualization | All the visualized boxes # NOINLINE visBoxes # | Hidden boxes | All heap graphs since the last clear command | Get the currently selected heap graph | Evalu...
# LANGUAGE CPP , ScopedTypeVariables , RecordWildCards # | Module : GHC.Vis . View . Common Copyright : ( c ) License : 3 - Clause BSD - style Maintainer : Module : GHC.Vis.View.Common Copyright : (c) Dennis Felsing License : 3-Clause BSD-style Maintai...
b1145a3fea4d383cffe08f1424467262a84c2be8f913dea1e4a67d91fede4cdf
TrustInSoft/tis-interpreter
eval_terms.ml
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/value/legacy/eval_terms.ml
ocaml
************************************************************************ alternatives) ...
Modified by TrustInSoft This file is part of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Softwa...
aa1da7aca961e2862b7ebe9942cc3f45f29264cf26e1e9ec21b462285fda72cf
paurkedal/batyr
search.mli
Copyright ( C ) 2013 - -2022 Petter A. Urkedal < > * * 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 ver...
null
https://raw.githubusercontent.com/paurkedal/batyr/814791b6ce6476b79ecddc12b7d28fa4d23dc591/batyr-core/lib/search.mli
ocaml
* Compile a pattern. @raise Syntax_error if the pattern is ill-formed. * Turn a pattern into an SQL query.
Copyright ( C ) 2013 - -2022 Petter A. Urkedal < > * * 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 ver...
f726f7fe9b5472e7f4cc05d19503f5a0c09defaca23d4c7f365ed8408c85e242
technomancy/leiningen
project.clj
(defproject bug "bug" :dependencies [[org.clojure/clojure "1.8.0"] [org.flatland/ordered "1.5.6"]])
null
https://raw.githubusercontent.com/technomancy/leiningen/24fb93936133bd7fc30c393c127e9e69bb5f2392/test_projects/data-readers-backwards-compatibility/project.clj
clojure
(defproject bug "bug" :dependencies [[org.clojure/clojure "1.8.0"] [org.flatland/ordered "1.5.6"]])
f77c5cfd6c1bd8c57c5b1f422bef252d58cf2bc659b38b97c8be5c08e2d0636b
LeventErkok/sbv
SBVTest.hs
----------------------------------------------------------------------------- -- | -- Module : SBVTest Copyright : ( c ) -- License : BSD3 -- Maintainer: -- Stability : experimental -- -- Main entry point to the test suite ----------------------------------------------------------------------------- # LANGUA...
null
https://raw.githubusercontent.com/LeventErkok/sbv/45c6f3acaafb42715eb24995813150e5e23d0971/SBVTestSuite/SBVTest.hs
haskell
--------------------------------------------------------------------------- | Module : SBVTest License : BSD3 Maintainer: Stability : experimental Main entry point to the test suite --------------------------------------------------------------------------- # OPTIONS_GHC -Wall -Werror #
Copyright : ( c ) # LANGUAGE ScopedTypeVariables # module Main(main) where import Test.Tasty import qualified TestSuite.Arrays.InitVals import qualified TestSuite.Arrays.Memory import qualified TestSuite.Arrays.Query import qualified TestSuite.Arrays.Caching import qualified TestSuite.Basics.AllSat import qual...
339f803853f55830e65f4639527619574a3f460471ea039acb5e81e7d4a35868
kmi/irs
classificationv2.lisp
-*- Mode : LISP ; Syntax : Common - lisp ; Base : 10 ; Package : OCML ; -*- (in-package "OCML") (in-ontology classificationv2) ;;;TASK CLASSIFICATION-TASK (def-class classification-task (goal-specification-task) ?task "Classification is defined here as finding one or more admissible solutions out of a predef...
null
https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/ontologies/tasks/classificationv2/classificationv2.lisp
lisp
Syntax : Common - lisp ; Base : 10 ; Package : OCML ; -*- TASK CLASSIFICATION-TASK CLASS OBSERVABLES RELATION LEGAL-FEATURE-VALUE FUNCTION ALL-FEATURES-IN-OBSERVABLES FUNCTION OBSERVABLES-FEATURE-VALUE CLASS FEATURE CLASS CONTEXTUAL-FEATURE CLASS SOLUTION-SPACE CLASS SOLUTION CLASS FEATURE-DEFINITION FUNCTION ALL-FEAT...
(in-package "OCML") (in-ontology classificationv2) (def-class classification-task (goal-specification-task) ?task "Classification is defined here as finding one or more admissible solutions out of a predefined solution space, which explain the features of a given set of observables, in accordance with a gi...
f655e0606d28b7993dbe074f07ea800fd237c079798f5f698dc919eeddb642e4
fp-works/2019-winter-Haskell-school
StackVM.hs
module CIS194.Homework05.StackVM ( StackVal(..), StackExp(..), Stack, Program, stackVM ) where -- Values that may appear in the stack. Such a value will also be -- returned by the stackVM program execution function. data StackVal = IVal Integer | BVal Bool | Void deriving Show -- The various expressions our...
null
https://raw.githubusercontent.com/fp-works/2019-winter-Haskell-school/823b67f019b9e7bc0d3be36711c0cc7da4eba7d2/cis194/week5/daniel-deng/src/StackVM.hs
haskell
Values that may appear in the stack. Such a value will also be returned by the stackVM program execution function. The various expressions our VM understands. Execute the given program. Returns either an error message or the value on top of the stack after execution. Execute a program against a given stack.
module CIS194.Homework05.StackVM ( StackVal(..), StackExp(..), Stack, Program, stackVM ) where data StackVal = IVal Integer | BVal Bool | Void deriving Show data StackExp = PushI Integer | PushB Bool | Add | Mul | And | Or ...
b849e3cec310633fe7d051b5ab4c4f1cdb14f4368b60bb17641a658c0bd65aa1
lambdacube3d/lambdacube-edsl
LC_GADT_PrimFun.hs
module LC_GADT_PrimFun where import Data.Int import Data.Word import LCType import LC_GADT_Sampler data PrimFun stage sig where Vec / Mat ( de)construction PrimTupToV2 :: IsComponent a => PrimFun stage ((a,a) -> V2 a) PrimTupToV3 :: IsComponent a ...
null
https://raw.githubusercontent.com/lambdacube3d/lambdacube-edsl/4347bb0ed344e71c0333136cf2e162aec5941df7/lambdacube-core/tmp/sandbox/LC_GADT_PrimFun.hs
haskell
Arithmetic Functions (componentwise) Bit-wise Functions Logic Functions Angle and Trigonometry Functions Exponential Functions Common Functions Geometric Functions Vector and Scalar Relational Functions Fragment Processing Functions Noise Functions Texture Lookup Functions
module LC_GADT_PrimFun where import Data.Int import Data.Word import LCType import LC_GADT_Sampler data PrimFun stage sig where Vec / Mat ( de)construction PrimTupToV2 :: IsComponent a => PrimFun stage ((a,a) -> V2 a) PrimTupToV3 :: IsComponent a ...
32b750ac010eacef0b3a7ddede3f138c36346ed5f1f037dbbc720ec8fffcbf39
cloojure/tupelo
forest.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 th...
null
https://raw.githubusercontent.com/cloojure/tupelo/dbb4b12fd6f379803a74a6bdcf54726597ec0fdf/test/clj/tst/tupelo/forest.clj
clojure
(-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 this notice, or any other, from this software. should throw since no forest should work fine #to...
Copyright ( c ) . All rights reserved . The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (ns tst.tupelo.forest (:use tupelo.core tupelo.forest tupelo.test ) (:require [tupelo.forest :as tf] [tupelo.string :as ts] )) (verify (is= "0013" (format "%0...
0261d09976b3e6e9252929b7856895d387b06bb2e99d2083c6d61f8563640f3e
kronkltd/jiksnu
request_token_routes.clj
(ns jiksnu.modules.web.routes.request-token-routes (:require [jiksnu.modules.http.resources :refer [defresource defgroup]] [jiksnu.modules.web.core :refer [jiksnu]] [jiksnu.modules.web.helpers :refer [angular-resource defparameter item-resource p...
null
https://raw.githubusercontent.com/kronkltd/jiksnu/8c91e9b1fddcc0224b028e573f7c3ca2f227e516/src/jiksnu/modules/web/routes/request_token_routes.clj
clojure
(ns jiksnu.modules.web.routes.request-token-routes (:require [jiksnu.modules.http.resources :refer [defresource defgroup]] [jiksnu.modules.web.core :refer [jiksnu]] [jiksnu.modules.web.helpers :refer [angular-resource defparameter item-resource p...
2c1e1c426242d8aaed4451ed66e1e984eb642ced2fa8ad275a9ca0896d9e9376
racket/racklog
mapcol.rkt
#lang racket (require (except-in racklog %member)) map coloring , example from Sterling & Shapiro , p. 212 ;(%member x y) holds if x is in y ;; is this different from the %member provided by racklog? fencing that one out. (define %member (%rel (X Xs Y Ys) ((X (cons X Xs))) ((X (cons Y Ys)) (%member X Ys)...
null
https://raw.githubusercontent.com/racket/racklog/89e983ec7d2df0ed919e6630403b0f4d0393728e/tests/mapcol.rkt
racket
(%member x y) holds if x is in y is this different from the %member provided by racklog? fencing that one out. (%members x y) holds if x is a subset of y region is a structure-builder
#lang racket (require (except-in racklog %member)) map coloring , example from Sterling & Shapiro , p. 212 (define %member (%rel (X Xs Y Ys) ((X (cons X Xs))) ((X (cons Y Ys)) (%member X Ys)))) (define %members (%rel (X Xs Ys) (((cons X Xs) Ys) (%member X Ys) (%members Xs Ys)) (('() Ys)))) (...
92862d525cc7b23b6d855ceb69b00cb4104e847972602129a377f0b903a46203
jepsen-io/maelstrom
viz.clj
(ns maelstrom.net.viz "Renders lamport diagrams from the network journal" (:require [clojure.string :as str] [clojure.pprint :refer [pprint]] [clojure.java.io :as io] [clojure.tools.logging :refer [info warn]] [analemma [xml :as xml] [svg :as svg...
null
https://raw.githubusercontent.com/jepsen-io/maelstrom/50608759036ebd5da6b3d113a8df93734763f6a2/src/maelstrom/net/viz.clj
clojure
we stop rendering after this many froms is a map of message IDs to the dot node of their origin. step is the timestep we're at now--index in the journal, plus one. We're sending a message; remember this in our froms map We're receiving a message; emit an edge. SVG Rendering + 1 for extra node line height at end ...
(ns maelstrom.net.viz "Renders lamport diagrams from the network journal" (:require [clojure.string :as str] [clojure.pprint :refer [pprint]] [clojure.java.io :as io] [clojure.tools.logging :refer [info warn]] [analemma [xml :as xml] [svg :as svg...
ad31a23dc857a1b83e4e80df6f879f2e307273677ee9f3cc28232cca615db372
denisidoro/rosebud
routes.clj
(ns quark.beta.server.components.routes (:require [com.stuartsierra.component :as component])) (defrecord Routes [routes] component/Lifecycle (start [this] (assoc this :routes routes)) (stop [this] (dissoc this :routes))) (defn new-routes [routes] (map->Routes {:routes routes}))
null
https://raw.githubusercontent.com/denisidoro/rosebud/90385528d9a75a0e17803df487a4f6cfb87e981c/server/src/quark/beta/server/components/routes.clj
clojure
(ns quark.beta.server.components.routes (:require [com.stuartsierra.component :as component])) (defrecord Routes [routes] component/Lifecycle (start [this] (assoc this :routes routes)) (stop [this] (dissoc this :routes))) (defn new-routes [routes] (map->Routes {:routes routes}))
4618b32aae675a5fa5d3314befbb0d3386f9d421a010099a58c1faee362d7849
vraid/earthgen
map-modes.rkt
#lang typed/racket (require vraid/color "map-colors/planet-color.rkt" "planet/planet.rkt") (provide (all-defined-out)) (struct map-mode ([name : Symbol] [function : (Integer -> flcolor)]) #:transparent) (: terrain-map-modes (planet-terrain -> (Listof map-mode))) (define (terrain-map-modes p...
null
https://raw.githubusercontent.com/vraid/earthgen/208ac834c02208ddc16a31aa9e7ff7f91c18e046/map-modes.rkt
racket
#lang typed/racket (require vraid/color "map-colors/planet-color.rkt" "planet/planet.rkt") (provide (all-defined-out)) (struct map-mode ([name : Symbol] [function : (Integer -> flcolor)]) #:transparent) (: terrain-map-modes (planet-terrain -> (Listof map-mode))) (define (terrain-map-modes p...
ff4228fcd691cce7ab1d37d9e694b46821633140bfd6c1922f0bdbdf6445abe1
GaloisInc/saw-script
Trie.hs
| Module : . : License : : huffman Stability : provisional Module : SAWScript.REPL.Trie Description : License : BSD3 Maintainer : huffman Stability : provisional -} module SAWScript.REPL.Trie where import Cryptol.Utils.Panic (panic) import qualified Data.Map as M...
null
https://raw.githubusercontent.com/GaloisInc/saw-script/46249dbc7bae5f48623a709b1df1cc1ea002d4c5/saw/SAWScript/REPL/Trie.hs
haskell
| Maps string names to values, allowing for partial key matches and querying. with that key. | Return all matches with the given prefix.
| Module : . : License : : huffman Stability : provisional Module : SAWScript.REPL.Trie Description : License : BSD3 Maintainer : huffman Stability : provisional -} module SAWScript.REPL.Trie where import Cryptol.Utils.Panic (panic) import qualified Data.Map as M...
1faae588857b069dee0e8b6d32f2058736bb18f9bfd263798094ff000f32bf06
jgrodziski/set-game
main.cljs
(ns env.android.main (:require [set-game.android.core :as core])) (core/init)
null
https://raw.githubusercontent.com/jgrodziski/set-game/4f918f53f26fe1b7744773cf1786ccf7272a121d/frontend/env/prod/env/android/main.cljs
clojure
(ns env.android.main (:require [set-game.android.core :as core])) (core/init)
642b9dcdb236054edfb9f5e55e4af11168d19ffa6c8c7672870f7ecebaa15203
dorchard/effect-monad
ArrayReader.hs
# LANGUAGE TypeFamilies , GADTs , MultiParamTypeClasses , FlexibleInstances , FlexibleContexts , DataKinds , UndecidableInstances , ScopedTypeVariables # FlexibleContexts, DataKinds, UndecidableInstances, ScopedTypeVariables #-} module ArrayReader where import GHC.TypeLits import Data.Arra...
null
https://raw.githubusercontent.com/dorchard/effect-monad/5750ef8438f750e528002a0a4e255514cbf3150a/examples/ArrayReader.hs
haskell
Array with a cursor Computations from 'a' to 'b' with an array parameter Get the nth index from the array, relative to the 'cursor' append specs empty spec
# LANGUAGE TypeFamilies , GADTs , MultiParamTypeClasses , FlexibleInstances , FlexibleContexts , DataKinds , UndecidableInstances , ScopedTypeVariables # FlexibleContexts, DataKinds, UndecidableInstances, ScopedTypeVariables #-} module ArrayReader where import GHC.TypeLits import Data.Arra...
1404ddf8f13dfcb7ff1c02123739940a0af0c65a3af2c248e9189853b7a6f054
Zulu-Inuoe/clution
client.lisp
;;;; client.lisp (in-package #:quicklisp-client) (defvar *quickload-verbose* nil "When NIL, show terse output when quickloading a system. Otherwise, show normal compile and load output.") (defvar *quickload-prompt* nil "When NIL, quickload systems without prompting for enter to continue, otherwise proceed di...
null
https://raw.githubusercontent.com/Zulu-Inuoe/clution/b72f7afe5f770ff68a066184a389c23551863f7f/cl-clution/systems/cl-clution/quicklisp/quicklisp/client.lisp
lisp
client.lisp FIXME: find-asdf-system-file does another find-system behind the scenes. Bogus. Should be a better way to go from system object to system file.
(in-package #:quicklisp-client) (defvar *quickload-verbose* nil "When NIL, show terse output when quickloading a system. Otherwise, show normal compile and load output.") (defvar *quickload-prompt* nil "When NIL, quickload systems without prompting for enter to continue, otherwise proceed directly without us...
091018549891ee1c4eb4b66fddb25f7fcabc14d89158e493348dd2bae0e1960d
CorticalComputer/Book_NeuroevolutionThroughErlang
substrate.erl
This source code and work is provided and developed by DXNN Research Group WWW.DXNNResearch . COM %% Copyright ( C ) 2012 by , DXNN Research Group , %All rights reserved. % This code is licensed under the version 3 of the GNU General Public License . Please see the LICENSE file that accompanies this project for th...
null
https://raw.githubusercontent.com/CorticalComputer/Book_NeuroevolutionThroughErlang/81b96e3d7985624a6183cb313a7f9bff0a7e14c5/Ch_19/substrate.erl
erlang
All rights reserved. io:format("InitState:~p~n",[InitState]), io:format("~p~n",[S]), io:format("reseting:~n"), io:format("reverting:~n"), io:format("********ERROR: Substrate Crashed:~p~n",[S]) All sensory signals received io:format("reset~n"), io:format("Iterative~n"), io:format("hold~n"), ==================...
This source code and work is provided and developed by DXNN Research Group WWW.DXNNResearch . COM Copyright ( C ) 2012 by , DXNN Research Group , This code is licensed under the version 3 of the GNU General Public License . Please see the LICENSE file that accompanies this project for the terms of use . -module(s...
1dda32a3c6ce37cdd6c5280a57b71b24253d70222eb08061e8e95db665c1bb61
shayan-najd/NativeMetaprogramming
T5691.hs
# LANGUAGE ScopedTypeVariables # module GHCBug where import Control.Applicative as Ap import Control.Monad (MonadPlus, mplus, mzero) import Data.Functor.Identity (Identity, runIdentity) newtype PrintRuleInterp v = MkPRI { printRule_ :: Int -> String } class Test p where test :: p a -> p a instance Test PrintRuleI...
null
https://raw.githubusercontent.com/shayan-najd/NativeMetaprogramming/24e5f85990642d3f0b0044be4327b8f52fce2ba3/testsuite/tests/typecheck/should_fail/T5691.hs
haskell
# LANGUAGE ScopedTypeVariables # module GHCBug where import Control.Applicative as Ap import Control.Monad (MonadPlus, mplus, mzero) import Data.Functor.Identity (Identity, runIdentity) newtype PrintRuleInterp v = MkPRI { printRule_ :: Int -> String } class Test p where test :: p a -> p a instance Test PrintRuleI...
f0eb37fad1b63efcc3cff25dd8ddef76145a018429af1214a83c34e6cbc5bc73
6502/JSLisp
animation.lisp
(defstruct transition begin end old new) (defun smooth-interp (a b t) "Returns a smoothly interpolated value between a and b when t varies from 0 to 1" (cond ((<= t 0) a) ((>= t 1) b) (true (let ((w (- (* 3 t t) (* 2 t t t)))) (+ (* a (- 1 w)) (* b w)))))) (defun var (valu...
null
https://raw.githubusercontent.com/6502/JSLisp/9a4aa1a9116f0cfc598ec9f3f30b59d99810a728/animation.lisp
lisp
(defstruct transition begin end old new) (defun smooth-interp (a b t) "Returns a smoothly interpolated value between a and b when t varies from 0 to 1" (cond ((<= t 0) a) ((>= t 1) b) (true (let ((w (- (* 3 t t) (* 2 t t t)))) (+ (* a (- 1 w)) (* b w)))))) (defun var (valu...
4f640ded8991c304ddee06de2ac075efb165a24fd0b386117f887bf700c9fa1b
racket/gui
list-box.rkt
#lang racket/base (require ffi/unsafe/objc ffi/unsafe racket/class (only-in racket/list take drop) "../../syntax.rkt" "../../lock.rkt" "item.rkt" "utils.rkt" "types.rkt" "const.rkt" "window.rkt" "font.rkt" "../...
null
https://raw.githubusercontent.com/racket/gui/f23bd102340e751b52f71870be8f1bb66b136773/gui-lib/mred/private/wx/cocoa/list-box.rkt
racket
---------------------------------------- (tellv content-cocoa sizeToFit) Can be called by event-handling thread Can be called by event-handling thread can happen as column is deleted When columns are rearranged, we have to be able to map from current column numbers to original column numbers
#lang racket/base (require ffi/unsafe/objc ffi/unsafe racket/class (only-in racket/list take drop) "../../syntax.rkt" "../../lock.rkt" "item.rkt" "utils.rkt" "types.rkt" "const.rkt" "window.rkt" "font.rkt" "../...
ec9032149ce77ac75c3b278ce3e2205efb0711b922aa88b8935b888ca808ca5b
barrucadu/yukibot
Utils.hs
{-# LANGUAGE OverloadedStrings #-} -- | Module : . Utils Copyright : ( c ) 2016 License : MIT -- Stability : experimental -- Portability : OverloadedStrings -- -- Extra utilities for writing yukibot plugins. module Yukibot.Utils where import Control.Monad.Catch (SomeException, catch) import D...
null
https://raw.githubusercontent.com/barrucadu/yukibot/7b12153e2cc71b62f86ab3a851a250dce83343b8/yukibot-core/Yukibot/Utils.hs
haskell
# LANGUAGE OverloadedStrings # | Stability : experimental Portability : OverloadedStrings Extra utilities for writing yukibot plugins. ----------------------------------------------------------------------------- * Commands | Make a command only available for deities. ------------------------------------------...
Module : . Utils Copyright : ( c ) 2016 License : MIT module Yukibot.Utils where import Control.Monad.Catch (SomeException, catch) import Data.Aeson (Object, decode') import qualified Data.ByteString as BS import Data.ByteString.Lazy (ByteString, toStrict) import Data.Text (Text) import qualifi...
3c99ceec7218e1aeeb63418aef9674f54717cce92dcc3965c605728a032b2ac0
mrphlip/aoc
01.hs
# OPTIONS_GHC -Wno - tabs # import Data.List import Data.List.Split (splitOn) import Control.Exception getInput :: IO [[Integer]] getInput = do dat <- readFile "01.txt" return $ parseInput dat parseInput :: String -> [[Integer]] parseInput dat = map (map read . lines) $ splitOn "\n\n" dat sortElves :: [[Integer]] ...
null
https://raw.githubusercontent.com/mrphlip/aoc/9602b86e1420b9226b53d82a644a14db863367ca/2022/01.hs
haskell
# OPTIONS_GHC -Wno - tabs # import Data.List import Data.List.Split (splitOn) import Control.Exception getInput :: IO [[Integer]] getInput = do dat <- readFile "01.txt" return $ parseInput dat parseInput :: String -> [[Integer]] parseInput dat = map (map read . lines) $ splitOn "\n\n" dat sortElves :: [[Integer]] ...
6773e17122f43dd00ca04e1159f5fc0010f59eaef6bfef81df9ffbec68dee8a8
bugczw/Introduction-to-Functional-Programming-in-OCaml
listUnique.ml
let rec uniq = function | [] -> [] | [x] -> [x] | x :: x' :: xs -> if x = x' then uniq (x' :: xs) else x :: uniq (x' :: xs);; let l1 = uniq [1;2;2;3;4;3];;
null
https://raw.githubusercontent.com/bugczw/Introduction-to-Functional-Programming-in-OCaml/13c4d1f92e7479f8eb10ea5d4c43a598b6676d0f/OCaml_MOOC_W3_ALL/listUnique.ml
ocaml
let rec uniq = function | [] -> [] | [x] -> [x] | x :: x' :: xs -> if x = x' then uniq (x' :: xs) else x :: uniq (x' :: xs);; let l1 = uniq [1;2;2;3;4;3];;
f254498ad525a9115d119a96592c7b9ac13d2a99d955805dca217c31f7e4de2c
jvranish/MiniKanrenT
Term.hs
{-#Language GeneralizedNewtypeDeriving , DeriveDataTypeable , FlexibleInstances , TypeSynonymInstances #-} module Control.Monad.MiniKanren.Term where import Control.Monad.MiniKanren.Core import Data.Data -- A datatype for playing around with lists data Term = Symbol String ...
null
https://raw.githubusercontent.com/jvranish/MiniKanrenT/60772630ea31a64a1d7d15cf24524fd1b5031010/src/Control/Monad/MiniKanren/Term.hs
haskell
#Language GeneralizedNewtypeDeriving , DeriveDataTypeable , FlexibleInstances , TypeSynonymInstances # A datatype for playing around with lists Define unification for our new datatype This class is just for convenience. It makes it much easier to construct terms and makes ...
module Control.Monad.MiniKanren.Term where import Control.Monad.MiniKanren.Core import Data.Data data Term = Symbol String | Cons (LVar Term) (LVar Term) | Nil deriving (Show, Eq, Ord, Data, Typeable) instance Unifiable Term where unifyValue (Symbol a) (Symbol b) | a == b = successful uni...
18dea724af16f19170b00afdb8ccddef72e7078eae1a357d5097a759579b7262
simon-brooke/dog-and-duck
process.clj
(ns dog-and-duck.utils.process (:require [clojure.string :refer [split]])) Copyright ( C ) , 2022 ;;; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 ;;; ...
null
https://raw.githubusercontent.com/simon-brooke/dog-and-duck/3f35c5e2935e3e0517c22c113a34db32047aced1/src/dog_and_duck/utils/process.clj
clojure
This program is free software; you can redistribute it and/or either version 2 of the License, or (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 ...
(ns dog-and-duck.utils.process (:require [clojure.string :refer [split]])) Copyright ( C ) , 2022 modify it under the terms of the GNU General Public License You should have received a copy of the GNU General Public License Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , ...
491ac149ecf57bc5da8cd199ed6a00ebbfc784bd56459d2ceb99a5ab55d019e1
FundingCircle/jackdaw
edn2.clj
(ns jackdaw.serdes.edn2 "Implements an EDN SerDes (Serializer/Deserializer)." (:require [clojure.edn] [jackdaw.serdes.fn :as jsfn]) (:import java.nio.charset.StandardCharsets) (:gen-class :implements [org.apache.kafka.common.serialization.Serde] :prefix "EdnSerde-" :name jackdaw.serdes.EdnS...
null
https://raw.githubusercontent.com/FundingCircle/jackdaw/e0c66d386277282219e070cfbd0fe2ffa3c9dca5/src/jackdaw/serdes/edn2.clj
clojure
(ns jackdaw.serdes.edn2 "Implements an EDN SerDes (Serializer/Deserializer)." (:require [clojure.edn] [jackdaw.serdes.fn :as jsfn]) (:import java.nio.charset.StandardCharsets) (:gen-class :implements [org.apache.kafka.common.serialization.Serde] :prefix "EdnSerde-" :name jackdaw.serdes.EdnS...
eb428cec92b07d9a482e083faa9a515f3df17951b39df30ff59ce8c692e4013c
sgimenez/laby
opt.mli
Copyright ( C ) 2007 - 2010 You have permission to copy , modify , and redistribute under the terms of the GPL-3.0 . For full license terms , see gpl-3.0.txt . Copyright (C) 2007-2010 Stéphane Gimenez You have permission to copy, modify, and redistribute under the terms of the GPL-3.0. For f...
null
https://raw.githubusercontent.com/sgimenez/laby/47f9560eb827790d26900bb553719afb4b0554ea/src/dtools/opt.mli
ocaml
* Generate an option to configure a given configuration key. * Generate an general option to configure sub configuration keys. * Generate an option to describe/dump a Conf.ut configuration key.
Copyright ( C ) 2007 - 2010 You have permission to copy , modify , and redistribute under the terms of the GPL-3.0 . For full license terms , see gpl-3.0.txt . Copyright (C) 2007-2010 Stéphane Gimenez You have permission to copy, modify, and redistribute under the terms of the GPL-3.0. For f...
06fcc52490a3bbda09140052fac19e19d00133ff30062da2b4287a0a5514a7ab
arcadia-unity/ArcadiaGodot
core_deftype.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/arcadia-unity/ArcadiaGodot/d9881c8132c46f21efde4eb4eb9a534d808cdb20/Clojure/clojure/core_deftype.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 . (in-ns 'clojure.core) (defn namespace-munge "Convert a Clojure namespace name to a legal Java package name." {:added "1.2"} [ns] (defmacro definterface "Creates a new Java interface with the given name and method sigs. The method return types and parameter t...
2e328aceed23d3c06ee708efea782162be9103353143741b242566c67d46ec14
ygrek/mldonkey
donkeyImport.ml
Copyright 2001 , 2002 b8_bavard , b8_fee_carabine , This file is part of mldonkey . mldonkey is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ...
null
https://raw.githubusercontent.com/ygrek/mldonkey/333868a12bb6cd25fed49391dd2c3a767741cb51/src/networks/donkey/donkeyImport.ml
ocaml
eMule sourcefile opcodes.h //server.met 0x01 string 0x0C uint32 0x88 uint32 0x89 uint32 0x93 string 0x95 uint32 0x96 uint32 0x97 uint16 0x98 uint16 assert (get_int s 1 = 0);
Copyright 2001 , 2002 b8_bavard , b8_fee_carabine , This file is part of mldonkey . mldonkey is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ...
e08acf841d84e451d95ecba5c099bf7636e6d90d38350ecbea85609c03c1fb95
8c6794b6/guile-tjit
test-lr-script-expression.scm
;;; test-lr-script-expression.scm -- ;; Parse scripts , each line an expression . ;; (load "common-test.scm") (define (doit . tokens) (let ((parser (lalr-parser (expect: 0) (N O C T (left: A) (left: M) (nonassoc: U)) (script (lines) : (reverse $1)) (lines (lines line) : (cons $2 $1) ...
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/test-suite/lalr/test-lr-script-expression.scm
scheme
test-lr-script-expression.scm -- -------------------------------------------------------------------- Correct input -------------------------------------------------------------------- Successful error recovery. Unexpected end of input. Unexpected end of input. end of file
Parse scripts , each line an expression . (load "common-test.scm") (define (doit . tokens) (let ((parser (lalr-parser (expect: 0) (N O C T (left: A) (left: M) (nonassoc: U)) (script (lines) : (reverse $1)) (lines (lines line) : (cons $2 $1) (line) : (list $1)) (line (T) : ...
37094d80e5f21e5f868921ba728cadf21b0c0f1808ba5c91c694b7c7a3bef19c
samrushing/irken-compiler
t_utf8.scm
;; -*- Mode: Irken -*- (include "lib/core.scm") (define s1 "\xe2\x88\x83\n") (define s2 "∃\n") (print-string s1) (print-string s2)
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/tests/t_utf8.scm
scheme
-*- Mode: Irken -*-
(include "lib/core.scm") (define s1 "\xe2\x88\x83\n") (define s2 "∃\n") (print-string s1) (print-string s2)
067f665c49ca213d59d34fa9aef587e295d8b2e7a4c3aa1d229a3015dbf7750f
matthewdowney/excel-clj
poi_test.clj
(ns excel-clj.poi-test (:require [excel-clj.poi :as poi] [excel-clj.file :as file] [clojure.test :refer :all] [clojure.java.io :as io])) (deftest poi-writer-test (is (= (try (poi/example (file/temp ".xlsx")) :success (catch Exception e e)) :success) "Example fun...
null
https://raw.githubusercontent.com/matthewdowney/excel-clj/0ca12883bbd3a253f1c15f776227f38bf782a85f/test/excel_clj/poi_test.clj
clojure
(ns excel-clj.poi-test (:require [excel-clj.poi :as poi] [excel-clj.file :as file] [clojure.test :refer :all] [clojure.java.io :as io])) (deftest poi-writer-test (is (= (try (poi/example (file/temp ".xlsx")) :success (catch Exception e e)) :success) "Example fun...
db4b08c5dfd6985a3e9543a4c76d8d7227e7ae182f8db6f603e6cb38726a86cc
clojure/clojurescript
repl_tests.clj
Copyright ( c ) . All rights reserved . ;; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( -1.0.php ) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by ;; the t...
null
https://raw.githubusercontent.com/clojure/clojurescript/a4673b880756531ac5690f7b4721ad76c0810327/src/test/clojure/cljs/repl_tests.clj
clojure
The use and distribution terms for this software are covered by the which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.
Copyright ( c ) . All rights reserved . Eclipse Public License 1.0 ( -1.0.php ) (ns cljs.repl-tests (:require [clojure.java.io :as io] [cljs.analyzer :as ana] [cljs.analyzer.api :as ana-api] [cljs.env :as env] [cljs.repl :as repl] [cljs.compiler :as c...
889d4391d01b422cb94523a38a9f10dcea67bb8529048c76fca22f8898c50a65
haskell/hackage-server
Render.hs
-- TODO: Review and possibly move elsewhere. This code was part of the -- RecentPackages (formerly "Check") feature, but that caused some cyclic -- dependencies. module Distribution.Server.Packages.Render ( -- * Package render PackageRender(..) , DependencyTree , IsBuildable (..) , doPackageRender , Mod...
null
https://raw.githubusercontent.com/haskell/hackage-server/12481221fc2a16ad353a769d27514d3f7e9ddaab/src/Distribution/Server/Packages/Render.hs
haskell
TODO: Review and possibly move elsewhere. This code was part of the RecentPackages (formerly "Check") feature, but that caused some cyclic dependencies. * Package render * Utils Note that this "Legacy" module is both new and deprecated in Cabal-3.6. However, the non-deprecated module "Distribution.Types.VersionI...
module Distribution.Server.Packages.Render ( PackageRender(..) , DependencyTree , IsBuildable (..) , doPackageRender , ModSigIndex(..) , categorySplit, ) where import Prelude () import Distribution.Server.Prelude hiding (All) import Control.Arrow ((&&&), (***)) import Data.Char (toLower, isSpace) imp...
8c8f6faf8404f2b1cf64f7a721c070308d08ae37a535438169249290d7166872
webyrd/n-grams-for-synthesis
154.scm
Copyright ( C ) ( 2017 ) . All Rights Reserved . ;; 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, ...
null
https://raw.githubusercontent.com/webyrd/n-grams-for-synthesis/b53b071e53445337d3fe20db0249363aeb9f3e51/datasets/srfi/srfi-154/srfi/154.scm
scheme
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies furnished to do so, subject to the following conditions: ...
Copyright ( C ) ( 2017 ) . All Rights Reserved . files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY K...
bfffe8ae69bc9185e621e176950a90395fb237912d3030cbf1708928de7ce580
GaloisInc/HaNS
Icmp4.hs
module Tests.IP4.Icmp4 where import Tests.IP4.Packet (arbitraryIP4) import Tests.Utils import Hans.IP4.Icmp4 import qualified Data.ByteString as S import Test.Tasty (TestTree,testGroup) import Test.Tasty.QuickCheck (testProperty) import Test.QuickCheck (Gen,oneof,ar...
null
https://raw.githubusercontent.com/GaloisInc/HaNS/2af19397dbb4f828192f896b223ed2b77dd9a055/tests/Tests/IP4/Icmp4.hs
haskell
Packet Generation ----------------------------------------------------------- Packet Tests ----------------------------------------------------------------
module Tests.IP4.Icmp4 where import Tests.IP4.Packet (arbitraryIP4) import Tests.Utils import Hans.IP4.Icmp4 import qualified Data.ByteString as S import Test.Tasty (TestTree,testGroup) import Test.Tasty.QuickCheck (testProperty) import Test.QuickCheck (Gen,oneof,ar...
6f3cb75da34daf5bac5f6b887c8c05b0e49c50e1f7ef308ba8c53193d9c08eab
GaloisInc/tower
Backend.hs
# LANGUAGE DataKinds # # LANGUAGE ExistentialQuantification # {-# LANGUAGE RankNTypes #-} # LANGUAGE TypeFamilies # module Ivory.Tower.Backend where import Ivory.Language import qualified Ivory.Tower.AST as AST import Ivory.Tower.Types.Emitter import Ivory.Tower.Types.Unique data SomeHandler backend = forall a. Some...
null
https://raw.githubusercontent.com/GaloisInc/tower/a43f5e36c6443472ea2dc15bbd49faf8643a6f87/tower/src/Ivory/Tower/Backend.hs
haskell
# LANGUAGE RankNTypes # XXX should probably be type families, not data families, and maybe at the top-level (without relying on the class). Type correponds to the channel type Type correponds to the channel type Callback identifier, used to construct full callback name Implementation Contains the state variable ...
# LANGUAGE DataKinds # # LANGUAGE ExistentialQuantification # # LANGUAGE TypeFamilies # module Ivory.Tower.Backend where import Ivory.Language import qualified Ivory.Tower.AST as AST import Ivory.Tower.Types.Emitter import Ivory.Tower.Types.Unique data SomeHandler backend = forall a. SomeHandler (TowerBackendHandler...
d35d35ae202e18fc87ec29ce0773683842e64dca7cc41fba3d5cdf84aab9111d
steffan-westcott/clj-otel
context.clj
(ns steffan-westcott.clj-otel.context "Functions for working with `io.opentelemetry.context.Context` objects." (:require [clojure.string :as str] [steffan-westcott.clj-otel.api.otel :as otel] [steffan-westcott.clj-otel.util :as util]) (:import (io.opentelemetry.context Context ContextKey I...
null
https://raw.githubusercontent.com/steffan-westcott/clj-otel/0c6711ddcdaef46c01628dba737bf9920d40b3a5/clj-otel-api/src/steffan_westcott/clj_otel/context.clj
clojure
(ns steffan-westcott.clj-otel.context "Functions for working with `io.opentelemetry.context.Context` objects." (:require [clojure.string :as str] [steffan-westcott.clj-otel.api.otel :as otel] [steffan-westcott.clj-otel.util :as util]) (:import (io.opentelemetry.context Context ContextKey I...
471b5c1b011e6aef1c2db0b385966c9d850074d4ceda69b0a1e4ab9cd2b98228
mentat-collective/functional-numerics
adaptive_test.cljc
;; Copyright © 2020 . This work is based on the Scmutils system of MIT / GNU Scheme : Copyright © 2002 Massachusetts Institute of Technology ;; ;; This 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 ;...
null
https://raw.githubusercontent.com/mentat-collective/functional-numerics/44856b0e3cd1f0dd9f8ebb2f67f4e85a68aa8380/test/numerical/quadrature/adaptive_test.cljc
clojure
This is free software; you can redistribute it and/or modify either version 3 of the License , or ( at your option) any later version. This software 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 PUR...
Copyright © 2020 . This work is based on the Scmutils system of MIT / GNU Scheme : Copyright © 2002 Massachusetts Institute of Technology it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License (ns sicmutils.numerical.quadrature...
a84ccea84a29259e03ae7366fbff2a47183701b67023b1fbc223e23e3ed032ac
evincarofautumn/kitten
Vocabulary.hs
| Module : Kitten . Vocabulary Description : Namespaces Copyright : ( c ) , 2016 License : MIT Maintainer : Stability : experimental Portability : GHC Module : Kitten.Vocabulary Description : Namespaces Copyright : (c) Jon Purdy, 2016 License : MIT Maintainer : Stabili...
null
https://raw.githubusercontent.com/evincarofautumn/kitten/a5301fe24dbb9ea91974abee73ad544156ee4722/lib/Kitten/Vocabulary.hs
haskell
# LANGUAGE OverloadedStrings #
| Module : Kitten . Vocabulary Description : Namespaces Copyright : ( c ) , 2016 License : MIT Maintainer : Stability : experimental Portability : GHC Module : Kitten.Vocabulary Description : Namespaces Copyright : (c) Jon Purdy, 2016 License : MIT Maintainer : Stabili...
8b6904ad7143dc5e4e1fbbc7411e2bc44f4b772c2120690bd0aacd1927ba6793
RichiH/git-annex
Version.hs
git versions - - Copyright 2011 , 2013 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2011, 2013 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} # OPTIONS_GHC -fno - warn - tabs # module Git.Version ( installed, older, normalize, GitVersion, ) w...
null
https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Git/Version.hs
haskell
git versions - - Copyright 2011 , 2013 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2011, 2013 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} # OPTIONS_GHC -fno - warn - tabs # module Git.Version ( installed, older, normalize, GitVersion, ) w...
debd2b9c8211133c677fccc78e481bf7fcacbdd51e465d3ed3d3849500406fe7
dereknheiley/ibnuda.dactyl-keyboard
handler.clj
(ns dactyl-keyboard.handler (:require [clojure.data.json :as json] [compojure.core :refer :all] [compojure.route :as route] [ring.middleware.defaults :refer [wrap-defaults api-defaults]] [ring.middleware.json :as middleware] [scad-clj.model :refer [pi]] ...
null
https://raw.githubusercontent.com/dereknheiley/ibnuda.dactyl-keyboard/9e564d4affae53c76d49458a64040e8cfdfb29c3/src/dactyl_keyboard/handler.clj
clojure
(ns dactyl-keyboard.handler (:require [clojure.data.json :as json] [compojure.core :refer :all] [compojure.route :as route] [ring.middleware.defaults :refer [wrap-defaults api-defaults]] [ring.middleware.json :as middleware] [scad-clj.model :refer [pi]] ...
cfce77ba56eed610b4caeaff9e44859ac56b430b41bc38d156bd0f34eed0ba79
simonmar/monad-par
AListTest.hs
module AListTest ( tests ) where import Test.Framework (defaultMain, testGroup) import Test.Framework.Providers.HUnit import Test.Framework.Providers.QuickCheck2 (testProperty) import Test.HUnit import Test.QuickCheck import Control.Monad.Par.AList as A import Prelude hiding (tail, length, map, filter) import qualif...
null
https://raw.githubusercontent.com/simonmar/monad-par/1266b0ac1b4040963ab356cf032c6aae6b8a7add/monad-par/tests/AListTest.hs
haskell
------------------------------------------------------------------------------ QuickCheck properties | All QuickCheck tests together: ------------------------------------------------------------------------------ Testing Utils: ------------------------------------------------------------------------------ main = de...
module AListTest ( tests ) where import Test.Framework (defaultMain, testGroup) import Test.Framework.Providers.HUnit import Test.Framework.Providers.QuickCheck2 (testProperty) import Test.HUnit import Test.QuickCheck import Control.Monad.Par.AList as A import Prelude hiding (tail, length, map, filter) import qualif...
7a751c529a88242b170c598179e824e358ab7090e34c0cc3b27008dea165834f
jellelicht/guix
bison.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2012 , 2013 , 2015 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version...
null
https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/gnu/packages/bison.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2012 , 2013 , 2015 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu packages bison) #:use-module (guix licenses) #:use-module (guix packages) ...
b7715036c07e65387a769ef737f72285563b4f3983acf0ae1fb340006e0dbfa2
project-oak/hafnium-verification
ClangTests.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/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/unit/clang/ClangTests.ml
ocaml
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
ed69f072f127e7b6862e60369c45fb082c5653e177979c56101ca7789ce912ae
district0x/cljs-orbitdb
access_controllers.cljs
(ns orbitdb.access-controllers (:require ["orbit-db-access-controllers" :as AccessControllers :refer [AccessController]])) (defn add-access-controller "Add a custom AccessController to the AccessControllers (a mutable singleton). Returns the updated AccessContr...
null
https://raw.githubusercontent.com/district0x/cljs-orbitdb/9928bf877c66c926a7f0bec086e8c7755240d15c/src/orbitdb/access_controllers.cljs
clojure
NOTE : args orbitdb options NOTE : args access identity
(ns orbitdb.access-controllers (:require ["orbit-db-access-controllers" :as AccessControllers :refer [AccessController]])) (defn add-access-controller "Add a custom AccessController to the AccessControllers (a mutable singleton). Returns the updated AccessContr...
4f5d0692e64766aeae3517b567df9dc6546988a76ac07ea6f45a77cd12573543
typelead/eta
T4284.hs
{-# LANGUAGE RankNTypes #-} module Test where foo :: () -> forall b. b foo = undefined works = id foo fails = (id) foo -- works type checks, but fails fails with the following error -- message: -- -- Cannot match a monotype with `() -> forall b. b' -- Probable cause: `foo' is applied to too few arguments In...
null
https://raw.githubusercontent.com/typelead/eta/97ee2251bbc52294efbf60fa4342ce6f52c0d25c/tests/suite/typecheck/compile/T4284.hs
haskell
# LANGUAGE RankNTypes # works type checks, but fails fails with the following error message: Cannot match a monotype with `() -> forall b. b' Probable cause: `foo' is applied to too few arguments In the expression: (id) foo
module Test where foo :: () -> forall b. b foo = undefined works = id foo fails = (id) foo In the first argument of ` ( i d ) ' , namely ` foo '
a60eb327217d50ede159caf596c65d4c20dacd2e1fc36f2e6e556bbda76ed226
moclojer/moclojer
openapi_test.clj
(ns moclojer.openapi-test (:require [cheshire.core :as json] [clojure.java.io :as io] [clojure.test :refer [deftest is testing]] [io.pedestal.http :as http] [io.pedestal.test :refer [response-for]] [moclojer.io-utils :as iou] [moclojer.openapi :a...
null
https://raw.githubusercontent.com/moclojer/moclojer/76b485cc3fcd9f24d478966a7d4a40e55ea3f945/test/moclojer/openapi_test.clj
clojure
(ns moclojer.openapi-test (:require [cheshire.core :as json] [clojure.java.io :as io] [clojure.test :refer [deftest is testing]] [io.pedestal.http :as http] [io.pedestal.test :refer [response-for]] [moclojer.io-utils :as iou] [moclojer.openapi :a...
29018f6c1409aa6a2163275b8b0d116258b3f2f05b2007e44b463ddcfb07e05c
FestCat/festival-ca
upclex_valencia.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Lexicon , LTS and Postlexical rules for upc_catalan ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Adapted for Catalan by the UPC team ;;; ( c ) Universitat Politècnica de Catalunya , Barcelona , Spain...
null
https://raw.githubusercontent.com/FestCat/festival-ca/f6b2d9bf4fc4f77b80890ebb95770075ad36ccaf/src/data/festival/lib/dicts/upc/upclex_valencia.scm
scheme
Words to be added in future versions: Currently prediction is bad for these words: <Empty (for now)> Common words on the internet gmail, hotmail, facebook ;;; Symbols ... Basic punctuation must be in with nil pronunciation Only considered things are: - "ax" rules are removed - dZ is not splitted ; F...
Lexicon , LTS and Postlexical rules for upc_catalan Adapted for Catalan by the UPC team ( c ) Universitat Politècnica de Catalunya , Barcelona , Spain (define (upc_catalan_addenda_valencia) "(upc_catalan_addenda_valencia) Addenda for valencian lexicon." (lex.add.entry '("hotmail" n ( ((o1 t) 1 ) ( (...
3f3dac2bb7099395b2bc0b26c351998a1b7675779639beda812c143f78eea385
xvw/preface
identity_test.ml
open Preface.Identity let identity a = Alcotest.testable (pp (Alcotest.pp a)) (equal ( = )) let should_select_left () = let open Either in let open Selective in let expected = pure 42 and computed = select (pure @@ left 40) (pure @@ ( + ) 2) in Alcotest.(check (identity int)) "should_select_left" expected c...
null
https://raw.githubusercontent.com/xvw/preface/ece0829c9ede3e5a4975df3864edb657b96fe82c/test/preface_stdlib_test/identity_test.ml
ocaml
open Preface.Identity let identity a = Alcotest.testable (pp (Alcotest.pp a)) (equal ( = )) let should_select_left () = let open Either in let open Selective in let expected = pure 42 and computed = select (pure @@ left 40) (pure @@ ( + ) 2) in Alcotest.(check (identity int)) "should_select_left" expected c...
4ff1792bf7f404ddaf209339c4ca3969d58939a3cd0b4a2712f83fdd2d3fcb67
mflatt/not-a-box
known.rkt
#lang racket/base ;; Ths module uses `#:omit-define-syntaxes` and doesn't use ;; `struct-out` so that none of the exports are syntax bindings. (provide known-constant known-constant? known-unknown known-unknown? known-procedure known-procedure? known-struct-type known-struct-type? known-str...
null
https://raw.githubusercontent.com/mflatt/not-a-box/b6c1af4fb0eb877610a3a20b5265a8c8d2dd28e9/schemify/known.rkt
racket
Ths module uses `#:omit-define-syntaxes` and doesn't use `struct-out` so that none of the exports are syntax bindings. field count can be 'any
#lang racket/base (provide known-constant known-constant? known-unknown known-unknown? known-procedure known-procedure? known-struct-type known-struct-type? known-struct-type-type known-struct-type-field-count known-constructor known-constructor? known-constructor-type known-constr...
e70b9fcbe22ebffe50152fe02600f2841791dae652755c001bef1c303ea46800
emqx/emqx-web-hook
emqx_web_hook_actions.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 EMQ Technologies Co. , Ltd. All Rights Reserved . %% 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 L...
null
https://raw.githubusercontent.com/emqx/emqx-web-hook/28436cca2735cb4f4c39c64bfcf51e7689e16986/src/emqx_web_hook_actions.erl
erlang
-------------------------------------------------------------------- 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 ...
Copyright ( c ) 2020 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_web_hook_actions). -include_lib("emqx/include/emqx.hrl"). -include_lib("emqx/include/logg...
f7f16b6db17401bc2349aff306f36bab82d744fe981abda3d4feeda22f27869b
bracevac/corrl
NamePrim.hs
----------------------------------------------------------------------------- Copyright 2012 Microsoft Corporation . -- -- This is free software; you can redistribute it and/or modify it under the terms of the Apache License , Version 2.0 . A copy of the License can be found in the file " license.txt " at the roo...
null
https://raw.githubusercontent.com/bracevac/corrl/416cd107087ac070a6bcabf8e7937211b6f415bb/koka/src/Common/NamePrim.hs
haskell
--------------------------------------------------------------------------- This is free software; you can redistribute it and/or modify it under the --------------------------------------------------------------------------- Primitive names. ---------------------------------------------------------------------...
Copyright 2012 Microsoft Corporation . terms of the Apache License , Version 2.0 . A copy of the License can be found in the file " license.txt " at the root of this distribution . module Common.NamePrim ( nameExpr, nameMain, nameType , nameInteractive, nameInteractiveModule ...
595dcbce381e85aa7ffadaa335a45cad190398b7aef3fbfc86656db22e11b243
jaspervdj/fugacious
Spool.hs
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # module Fugacious.MailQueue.Spool ( Config (..) , Handle (..) , withHandle , send ) where import Control.Monad (forM_) import qualified Data.Aeson as A i...
null
https://raw.githubusercontent.com/jaspervdj/fugacious/4e9c2d48174c852616fbfbf28bd9cc90812a1c95/lib/Fugacious/MailQueue/Spool.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE OverloadedStrings # Make the file is fully read.
# LANGUAGE RecordWildCards # module Fugacious.MailQueue.Spool ( Config (..) , Handle (..) , withHandle , send ) where import Control.Monad (forM_) import qualified Data.Aeson as A import qualified Data.MBox as MBox import ...
919af7a5837783c51900c092e397b20c71af165ab0d7a8a596dfc2ab9c203f35
appleby/Lisp-In-Small-Pieces
chap10ex.scm
$ I d : chap10ex.scm , v 4.0 1995/07/10 06:50:39 queinnec Exp $ ;;;(((((((((((((((((((((((((((((((( L i S P )))))))))))))))))))))))))))))))) ;;; This file is derived from the files that accompany the book: LISP Implantation Semantique Programmation ( InterEditions , France ) or Lisp In Small Pieces ( C...
null
https://raw.githubusercontent.com/appleby/Lisp-In-Small-Pieces/af4139232bb7170f32470774a92d647e83254721/src/chap10ex.scm
scheme
(((((((((((((((((((((((((((((((( L i S P )))))))))))))))))))))))))))))))) This file is derived from the files that accompany the book: The original sources can be downloaded from the author's website at -systeme.lip6.fr/Christian.Queinnec/WWW/LiSP.html This file may have been altered from the original in order to...
$ I d : chap10ex.scm , v 4.0 1995/07/10 06:50:39 queinnec Exp $ LISP Implantation Semantique Programmation ( InterEditions , France ) or Lisp In Small Pieces ( Cambridge University Press ) . By Christian Queinnec < > This is the running example of chapter 10 . This expression will be one exampl...
672f10b213dc6db9175c1f52f261af7bf997b6f61b91737b33990d1919cdb0cb
ku-fpg/haskino
Utils.hs
------------------------------------------------------------------------------- -- | -- Module : System.Hardware.Haskino.ShallowDeepPlugin.Utils Copyright : ( c ) University of Kansas -- License : BSD3 -- Stability : experimental -- Shallow Deep Plugin Utility Functions --------------------------...
null
https://raw.githubusercontent.com/ku-fpg/haskino/9a0709c92c2da9b9371e292b00fd076e5539eb18/System/Hardware/Haskino/ShallowDeepPlugin/Utils.hs
haskell
----------------------------------------------------------------------------- | Module : System.Hardware.Haskino.ShallowDeepPlugin.Utils License : BSD3 Stability : experimental ----------------------------------------------------------------------------- # LANGUAGE ExplicitForAll # DSL specific name...
Copyright : ( c ) University of Kansas Shallow Deep Plugin Utility Functions # LANGUAGE CPP # # LANGUAGE TemplateHaskell # # LANGUAGE PatternSynonyms # module System.Hardware.Haskino.ShallowDeepPlugin.Utils (absExpr, absVar, ...
3e0aef53058cd232f3f28f2e1b7be114131a1a4fc58f57fb5138f41670db3c5a
clojupyter/clojupyter
history_test.clj
(ns clojupyter.kernel.handle-event.history-test (:require [clojupyter.kernel.handle-event :as he] [clojupyter.kernel.handle-event.shared-ops :as sh] [clojupyter.kernel.init :as init] [clojupyter.log :as log] [clojupyter.messages :as msgs] [clojupyter.message...
null
https://raw.githubusercontent.com/clojupyter/clojupyter/b54b30b5efa115937b7a85e708a7402bd9efa0ab/test/clojupyter/kernel/handle_event/history_test.clj
clojure
(ns clojupyter.kernel.handle-event.history-test (:require [clojupyter.kernel.handle-event :as he] [clojupyter.kernel.handle-event.shared-ops :as sh] [clojupyter.kernel.init :as init] [clojupyter.log :as log] [clojupyter.messages :as msgs] [clojupyter.message...
377815f62377b178fe8a8823a7b34ccbccc04d89c998976ca817f210f3196c6f
mvdcamme/meta-tracing-JIT
simple guard-trace merging.scm
(begin (define (loop i) (display "before if: i = ") (display i) (newline) (if (< i 5) (begin (display "i < 5") (newline)) (begin (display "i >= 5") (newline))) (display "after if") (newline) (if (> i ...
null
https://raw.githubusercontent.com/mvdcamme/meta-tracing-JIT/640af917e473f3793ab12791dcb2c80f617b8a0d/benchmarks/simple%20guard-trace%20merging.scm
scheme
(begin (define (loop i) (display "before if: i = ") (display i) (newline) (if (< i 5) (begin (display "i < 5") (newline)) (begin (display "i >= 5") (newline))) (display "after if") (newline) (if (> i ...
89861405eb6502474ff7c0b527d36c103216e844f5e4bdd3a6b4a2a7a0786c45
MassD/99
p1.ml
Find the last element of a list . ( Note that the Lisp transcription of this problem is incorrect . ) Example in Haskell : Prelude > myLast [ 1,2,3,4 ] 4 Prelude > myLast [ ' x','y','z ' ] ' z ' Find the last element of a list. (Note that the Lisp transcription of this problem is incorrect.) Exa...
null
https://raw.githubusercontent.com/MassD/99/1d3019eb55b0d621ed1df4132315673dd812b1e1/1-28-lists/p1.ml
ocaml
Find the last element of a list . ( Note that the Lisp transcription of this problem is incorrect . ) Example in Haskell : Prelude > myLast [ 1,2,3,4 ] 4 Prelude > myLast [ ' x','y','z ' ] ' z ' Find the last element of a list. (Note that the Lisp transcription of this problem is incorrect.) Exa...
e865bc952210694b2ac24640df92bf48e38a7d7413b0b928bf898fcdba9f470a
8c6794b6/guile-tjit
t-ulogand-01.scm
;;; Simple loop containing `ulogand'. (define (loop n acc) (if (zero? n) acc (loop (- n 1) (+ acc (logand (modulo n 17) acc))))) (loop 1000 255)
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/test-suite/tjit/t-ulogand-01.scm
scheme
Simple loop containing `ulogand'.
(define (loop n acc) (if (zero? n) acc (loop (- n 1) (+ acc (logand (modulo n 17) acc))))) (loop 1000 255)
7a17542230065d152516dd8d467c4f25cc0fe321343e92da22b14903dcf4aa87
lamdu/lamdu
Internal.hs
# LANGUAGE TemplateHaskell , MultiParamTypeClasses , FlexibleInstances # module Lamdu.Sugar.Internal ( ConvertPayload(..), pActions, pLambdas, pUnsugared, pEntityId, pStored , EvalPrep(..), eType, eEvalId , InternalName(..), inTag, inContext, inIsAutoName , internalNameMatch , nameWithoutContext, n...
null
https://raw.githubusercontent.com/lamdu/lamdu/6456aae47f8c8a90f62de8cb7e6e3650d503e267/src/Lamdu/Sugar/Internal.hs
haskell
Identifiers for lambdas that were swallowed by the sugar Stored of top-level subtree for sugar expression subtree Not necessarily the entity-id of the top-level sugar expression | Tags have internal names. Some entities (e.g: record fields) directly contain tags, so their InternalName has a Nothing as the inCont...
# LANGUAGE TemplateHaskell , MultiParamTypeClasses , FlexibleInstances # module Lamdu.Sugar.Internal ( ConvertPayload(..), pActions, pLambdas, pUnsugared, pEntityId, pStored , EvalPrep(..), eType, eEvalId , InternalName(..), inTag, inContext, inIsAutoName , internalNameMatch , nameWithoutContext, n...
36ccc2fefb2eebba77e9d5413e36cef328619eff676b789082c15df68180fda8
facebook/pyre-check
exclusiveLock.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/pyre-check/98b8362ffa5c715c708676c1a37a52647ce79fe0/source/server/exclusiveLock.ml
ocaml
TODO(T132410158) Add a module-level doc comment.
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
6c462ff18726e733fbba30ac433175a075489dea983459659fc155c784ec0d19
thephoeron/quipper-language
ShowAll.hs
This file is part of Quipper . Copyright ( C ) 2011 - 2014 . Please see the -- file COPYRIGHT for a list of authors, copyright holders, licensing, -- and other details. All rights reserved. -- -- ====================================================================== # LANGUAGE FlexibleInstances # # LANGUAGE Overlap...
null
https://raw.githubusercontent.com/thephoeron/quipper-language/15e555343a15c07b9aa97aced1ada22414f04af6/Libraries/ShowAll.hs
haskell
file COPYRIGHT for a list of authors, copyright holders, licensing, and other details. All rights reserved. ====================================================================== | This module extends the 'show' function to be able to convert any term to a string, even if its type is not an instance of the 'Show...
This file is part of Quipper . Copyright ( C ) 2011 - 2014 . Please see the # LANGUAGE FlexibleInstances # # LANGUAGE OverlappingInstances # module Libraries.ShowAll where $ We provide a catch - all ' Show ' instance using the GHC language option " . Since instance declarations do n't instance Show (a -> b...
e1305af0c9a19431ad8e84da2f05b4303aee5202bd7342787bdf292876a67727
Vetd-Inc/vetd-app
url.cljs
(ns vetd-app.url (:require [re-frame.core :as rf])) (defn replace-end [url old-str new-str] (if (.endsWith url (str "/" (js/encodeURI old-str))) (str (subs url 0 (- (count url) (count (str "/" (js/encodeURI old-str))))) (when (not-empty new-str) (str "/" (js/encode...
null
https://raw.githubusercontent.com/Vetd-Inc/vetd-app/9b33b1443b9d84d39305a63fc58119f8e014cf11/src/cljs/app/vetd_app/url.cljs
clojure
(ns vetd-app.url (:require [re-frame.core :as rf])) (defn replace-end [url old-str new-str] (if (.endsWith url (str "/" (js/encodeURI old-str))) (str (subs url 0 (- (count url) (count (str "/" (js/encodeURI old-str))))) (when (not-empty new-str) (str "/" (js/encode...
48e1b2fc8c2584f88824e61630d38a8c7e2e30170ef96ed2ac05a15baaa418c1
esl/MongooseIM
stats_api.erl
-module(stats_api). -export([incoming_s2s_number/0, outgoing_s2s_number/0, stats/1, stats/2]). -export([stats_mongooseimctl/1, stats_mongooseimctl/2]). -ignore_xref([stats_mongooseimctl/1, stats_mongooseimctl/2]). -include("mongoose.hrl"). -spec incoming_s2s_number() -> {ok, non_neg_integer()}. incoming_s2s_number(...
null
https://raw.githubusercontent.com/esl/MongooseIM/5bdda437a5b2129c2a456206731e7c5d2daff4c9/src/stats_api.erl
erlang
-module(stats_api). -export([incoming_s2s_number/0, outgoing_s2s_number/0, stats/1, stats/2]). -export([stats_mongooseimctl/1, stats_mongooseimctl/2]). -ignore_xref([stats_mongooseimctl/1, stats_mongooseimctl/2]). -include("mongoose.hrl"). -spec incoming_s2s_number() -> {ok, non_neg_integer()}. incoming_s2s_number(...
75fba749fcbeefa5a4ea9425ecf4e37debedba7410c4c97cefda2bfeebd2fb3f
geophf/1HaskellADay
Exercise.hs
module Y2020.M07.D22.Exercise where - So , day before yesterday , we parsed a JSON file ... So , yesterday , we contacted a REST endpoint with a GET request and got a response - as - string - but - it's - really - JSON . So , where two stream join , you fish . I learned that from . Today 's problem ...
null
https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2020/M07/D22/Exercise.hs
haskell
} How many public APIs are HTTP? How many public APIs are HTTPS? }
module Y2020.M07.D22.Exercise where - So , day before yesterday , we parsed a JSON file ... So , yesterday , we contacted a REST endpoint with a GET request and got a response - as - string - but - it's - really - JSON . So , where two stream join , you fish . I learned that from . Today 's problem ...
edd6be3f6c56069adcda0f081aa04c22f920d64c6720808cb2795e49716f8560
ocaml/ocaml
Plugin_1_2_1.ml
let () = Store.add "[1_2_1]->[]" let add x = Store.add x
null
https://raw.githubusercontent.com/ocaml/ocaml/67e6406511e6895fca71041b938ade60c8c14f03/testsuite/tests/lib-dynlink-domains/Plugin_1_2_1.ml
ocaml
let () = Store.add "[1_2_1]->[]" let add x = Store.add x
d3db9ed7ee1f5337e4d8d5509b75f53bee4604bbb83226e5bec3db20931ea36e
lehins/massiv
PushSpec.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # module Test.Massiv.Array.Delayed.PushSpec (spec) where import Data . Massiv . Array . Delayed import Data . Massiv . Array . Unsafe import Data . Massiv . Array as A import Test.Massiv.Core -- prop_upsampleDifferentDefault :: -...
null
https://raw.githubusercontent.com/lehins/massiv/67a920d4403f210d0bfdad1acc4bec208d80a588/massiv-test/tests/Test/Massiv/Array/Delayed/PushSpec.hs
haskell
prop_upsampleDifferentDefault :: Proxy ix -> Comp -> SzIx ix -> Int -> Maybe Int -> Property computeAs P (unsafeMakeLoadArray comp sz mDef $ \ put -> put ix v) it "Ix1" $ property $ prop_upsampleDifferentDefault (Proxy :: Proxy Ix1) it "Ix2" $ property $ prop_upsampleDifferentDefault (Proxy :: Proxy Ix2...
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # module Test.Massiv.Array.Delayed.PushSpec (spec) where import Data . Massiv . Array . Delayed import Data . Massiv . Array . Unsafe import Data . Massiv . Array as A import Test.Massiv.Core prop_upsampleDifferentDefault _ com...
142c6a66fd932e271acafba7d07f256ff2e8cb081b8e96f11bc64da0ac783082
tsoding/multik
cairo.mli
type t val with_context : int * int -> (t -> 'a) -> 'a val with_texture : SdlTexture.t -> (t -> 'a) -> 'a external save_to_png : t -> string -> unit = "multik_cairo_save_to_png" val render : t -> Picture.t -> unit
null
https://raw.githubusercontent.com/tsoding/multik/15384bd44c607f1b76c625ef97c01ad50a155cdc/src/cairo.mli
ocaml
type t val with_context : int * int -> (t -> 'a) -> 'a val with_texture : SdlTexture.t -> (t -> 'a) -> 'a external save_to_png : t -> string -> unit = "multik_cairo_save_to_png" val render : t -> Picture.t -> unit
2d84ea1201bd59f2b23c1ca04eb695fc5d70eaaaa2697ac0591dc1b5efdd1de0
rudymatela/speculate
arith-negate-abs.hs
import Test.Speculate main :: IO () main = speculate args { constants = [ showConstant (0::Int) , showConstant (1::Int) , constant "id" (id :: Int -> Int) , constant "abs" (abs :: Int -> Int) , constant "negate" (negate :: Int -> Int) , constant "+" ((+) :: I...
null
https://raw.githubusercontent.com/rudymatela/speculate/8ec39747d03033db4349d554467d4b78bb72935d/eg/arith-negate-abs.hs
haskell
[ constant "<=" ((<=) :: Int -> Int -> Bool) , constant "<" ((<) :: Int -> Int -> Bool) ]
import Test.Speculate main :: IO () main = speculate args { constants = [ showConstant (0::Int) , showConstant (1::Int) , constant "id" (id :: Int -> Int) , constant "abs" (abs :: Int -> Int) , constant "negate" (negate :: Int -> Int) , constant "+" ((+) :: I...
c5edf2fa7935adcabae9be4e8b4523888f324a0be65774d3dac3c7afe87ed6fe
ahrefs/atd
import.ml
module List = struct include List let rec filter_map f = function [] -> [] | x :: l -> match f x with None -> filter_map f l | Some y -> y :: filter_map f l let concat_map f l = List.map f l |> List.flatten let map_first f = function | [] -> [] | x :: l -> ...
null
https://raw.githubusercontent.com/ahrefs/atd/3185859471358c3956937659f34d645bac4a0b56/atd/src/import.ml
ocaml
module List = struct include List let rec filter_map f = function [] -> [] | x :: l -> match f x with None -> filter_map f l | Some y -> y :: filter_map f l let concat_map f l = List.map f l |> List.flatten let map_first f = function | [] -> [] | x :: l -> ...
fa1ad40805fbda93be798de73c58df69b23db0a918dedc9eceae0e31afd7ad8c
garrigue/lablgtk
notebook.ml
(**************************************************************************) Lablgtk - Examples (* *) (* This code is in the public domain. *) (* You may f...
null
https://raw.githubusercontent.com/garrigue/lablgtk/504fac1257e900e6044c638025a4d6c5a321284c/examples/notebook.ml
ocaml
************************************************************************ This code is in the public domain. You may freely copy parts of it in your application. ...
Lablgtk - Examples $ Id$ let main () = GMain.init (); let window = GWindow.window ~title:"Notebook" ~border_width:10 () in window#connect#destroy ~callback:GMain.quit; let notebook = GPack.notebook ~packing:window#add () in let button = GButton.button...
dc3625a4eb85ed3b64c4e15433ba45d691d71314271b7d4f422f90641f6796cd
BinaryAnalysisPlatform/bap
regular_bytes.ml
module Std_bytes = Bytes open Core_kernel[@@warning "-D"] module Binable = Bin_prot.Utils.Make_binable(struct module Binable = String type t = Std_bytes.t let to_binable = Std_bytes.unsafe_to_string let of_binable = Std_bytes.of_string end) [@@warning "-D"] module Stringable = struct type t = Std...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/253afc171bbfd0fe1b34f6442795dbf4b1798348/lib/regular/regular_bytes.ml
ocaml
* The following is for system use only. Do not call directly.
module Std_bytes = Bytes open Core_kernel[@@warning "-D"] module Binable = Bin_prot.Utils.Make_binable(struct module Binable = String type t = Std_bytes.t let to_binable = Std_bytes.unsafe_to_string let of_binable = Std_bytes.of_string end) [@@warning "-D"] module Stringable = struct type t = Std...
231599bcc5a373e4b0adba07c1c2ab0e4444971688c9f4944e285633e231de4e
bmeurer/ocamljit2
vivi3.ml
let rec p i = [< '1; '2; p (i + 1) >] let vivi = [|2.1; 1.1|]
null
https://raw.githubusercontent.com/bmeurer/ocamljit2/ef06db5c688c1160acc1de1f63c29473bcd0055c/ocamlbuild/test/test2/vivi3.ml
ocaml
let rec p i = [< '1; '2; p (i + 1) >] let vivi = [|2.1; 1.1|]
962fe4d7fd1bbd0ff9568904901d036926d075e82a9f6645aa4f3002a2a0c09a
avsm/platform
opamAdminCommand.mli
(**************************************************************************) (* *) Copyright 2012 - 2017 OCamlPro Copyright 2012 INRIA (* ...
null
https://raw.githubusercontent.com/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/opam-client.2.0.5%2Bdune/src/client/opamAdminCommand.mli
ocaml
************************************************************************ All rights reserved. This file is distributed under the terms of the exception on linking descr...
Copyright 2012 - 2017 OCamlPro Copyright 2012 INRIA GNU Lesser General Public License version 2.1 , with the special val admin_command_doc: string val admin_subcommands: (unit Cmdliner.Term.t * Cmdliner.Term.in...
41f579cdeed88a5703729d48e2bd12edb738fa11e60f2891af33024f462f5f3f
facebook/pyre-check
recognized.mli
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/pyre-check/e746f93050c052ef04a6146dd9d0204afe2fb96e/source/external/recognized.mli
ocaml
Names of functions that implement an 'assert'.
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
9475b5ab3c9ad18ce856ecd2482a5e0d3278164bd13f5536e10ff2e780e78883
clojure-emacs/cider-nrepl
slurp.clj
(ns cider.nrepl.middleware.slurp "Rich reading & handling for CIDER. Goes with middleware.content-types, providing the capability to convert URLs to values which can be handled nicely." {:authors ["Reid 'arrdem' McKenzie <>"]} (:require [clojure.edn :as edn] [clojure.java.io :as io] [clojure.string ...
null
https://raw.githubusercontent.com/clojure-emacs/cider-nrepl/3c72deb84b597a4dc51680315bce3275ba0592e3/src/cider/nrepl/middleware/slurp.clj
clojure
expected common case It's not a file, so just try to open it on up There's gotta be a better way here
(ns cider.nrepl.middleware.slurp "Rich reading & handling for CIDER. Goes with middleware.content-types, providing the capability to convert URLs to values which can be handled nicely." {:authors ["Reid 'arrdem' McKenzie <>"]} (:require [clojure.edn :as edn] [clojure.java.io :as io] [clojure.string ...
c71c4c2419cea686423373d5d5a711848d0fa6928466b9e6f7546840016f207f
runtimeverification/haskell-backend
Constructor.hs
module Test.Kore.Attribute.Constructor ( test_constructor, test_Attributes, test_duplicate, test_arguments, test_parameters, ) where import Kore.Attribute.Constructor import Kore.Syntax.Pattern import Prelude.Kore import Test.Kore.Attribute.Parser import Test.Tasty import Test.Tasty.HUnit parseCon...
null
https://raw.githubusercontent.com/runtimeverification/haskell-backend/b06757e252ee01fdd5ab8f07de2910711997d845/kore/test/Test/Kore/Attribute/Constructor.hs
haskell
module Test.Kore.Attribute.Constructor ( test_constructor, test_Attributes, test_duplicate, test_arguments, test_parameters, ) where import Kore.Attribute.Constructor import Kore.Syntax.Pattern import Prelude.Kore import Test.Kore.Attribute.Parser import Test.Tasty import Test.Tasty.HUnit parseCon...
1cf38f8de22ba2cfa810ea1743b222a721adff0b49aef0bd32fcdb69c13f41f3
erlang/otp
application_controller.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2023 . All Rights Reserved . %% 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 applicab...
null
https://raw.githubusercontent.com/erlang/otp/2b397d7e5580480dc32fa9751db95f4b89ff029e/lib/kernel/src/application_controller.erl
erlang
%CopyrightBegin% 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 lan...
Copyright Ericsson AB 1996 - 2023 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(application_controller). -export([start/1, load_application/1, unload_application/1, start_application...
485e85ca2f256e9e3d061f2cdfb58c88dbada0ad5d4579b6c9c37f21556416e6
plai-group/daphne
substitute.clj
(ns daphne.substitute) (defn dispatch-substitute [exp _ _] (cond (and (list? exp) (= (first exp) 'let)) :let (and (list? exp) (= (first exp) 'foreach)) :foreach (list? exp) :list (seq? exp) :seq (vector? exp) :ve...
null
https://raw.githubusercontent.com/plai-group/daphne/b0f43fbb9c856116ec44419fea91c4011072dd74/src/daphne/substitute.clj
clojure
symbol shadowed now
(ns daphne.substitute) (defn dispatch-substitute [exp _ _] (cond (and (list? exp) (= (first exp) 'let)) :let (and (list? exp) (= (first exp) 'foreach)) :foreach (list? exp) :list (seq? exp) :seq (vector? exp) :ve...