_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
5a78d8c7e2ea93cfc820e4171224e85ec54fdc2fa7bc0be3958566a5c1c14490
max-au/argparse
cli_SUITE.erl
%%%------------------------------------------------------------------- @author < > %%% @doc cli : test suite to provide CLI functionality for escript %%% @end -module(cli_SUITE). -author(""). -include_lib("common_test/include/ct.hrl"). -include_lib("stdlib/include/assert.hrl"). %% API exports %% Test server c...
null
https://raw.githubusercontent.com/max-au/argparse/69acf3cf5da92d89506edb060745e7cb75849180/test/cli_SUITE.erl
erlang
------------------------------------------------------------------- @doc @end API exports Test server callbacks Test cases Internal exports -------------------------------------------------------------------- Helpers I/O redirection ct:pal("~p", [Tokens]), ct:pal("~p", [Forms]), --------------------------------...
@author < > cli : test suite to provide CLI functionality for escript -module(cli_SUITE). -author(""). -include_lib("common_test/include/ct.hrl"). -include_lib("stdlib/include/assert.hrl"). -export([ suite/0, all/0 ]). -export([ test_cli/0, test_cli/1, auto_help/0, auto_help/1, subcmd_hel...
f3a49ebbfeeeba48391f877f1e432228d51f29fcab5a61b06aaa1013d0da33e0
ntrocado/cl-collider-examples
3-2.lisp
(defsynth sine () (out.ar 0 (sin-osc.ar (rand.ir 440 880) 0 0.1))) (synth 'sine) (defparameter *a* (synth 'sine)) (defparameter *b* (synth 'sine)) (defparameter *c* (synth 'sine)) (free *a*) (free *b*) (free *c*) ;;; Adding arguments (defsynth sine ((freq 440) (amp 0.1)) (out.ar 0 (sin-osc.ar freq 0 amp))) (s...
null
https://raw.githubusercontent.com/ntrocado/cl-collider-examples/67eec426ea45f5423eefd9391d9a7e8ba41f8b51/nick-collins-tutorial/3-2.lisp
lisp
Adding arguments Recovering synth definition metadata:
(defsynth sine () (out.ar 0 (sin-osc.ar (rand.ir 440 880) 0 0.1))) (synth 'sine) (defparameter *a* (synth 'sine)) (defparameter *b* (synth 'sine)) (defparameter *c* (synth 'sine)) (free *a*) (free *b*) (free *c*) (defsynth sine ((freq 440) (amp 0.1)) (out.ar 0 (sin-osc.ar freq 0 amp))) (synth 'sine) (synth 's...
464f8496af15639c89d81b8b076e127e99da69537c4139748b84c464d1fe5a5a
dbuenzli/react
react.mli
--------------------------------------------------------------------------- Copyright ( c ) 2009 The react programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c)...
null
https://raw.githubusercontent.com/dbuenzli/react/6de482d3f9ba7e301bc18822a12cdafef8f13a27/src/react.mli
ocaml
* The type for events of type ['a]. * The type for signals of type ['a]. * The type for update steps. * Event combinators. Consult their {{!evsem}semantics.} * The type for events with occurrences of type ['a]. * A never occuring event. For all t, \[[never]\]{_t} [= None]. * [retain e c] keeps a reference to...
--------------------------------------------------------------------------- Copyright ( c ) 2009 The react programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c)...
129f711a05d854da78b26fd3215a52e620beffc08507281580a01504ed640b83
uhc/uhc
TopSort.hs
----------------------------------------------------------------------- The Core Assembler . Modified and adapted by Original version by 7 december 2000 : changed module name ( originally Ldfs ) changed export list changed Vertex to Int included is some additional code for pri...
null
https://raw.githubusercontent.com/uhc/uhc/8eb6914df3ba2ba43916a1a4956c6f25aa0e07c5/EHC/src/lvm/Common/TopSort.hs
haskell
--------------------------------------------------------------------- --------------------------------------------------------------------- ----------------------------------------------------------------------} -------------------------------------------------------------- A version of the graph algorithms descri...
The Core Assembler . Modified and adapted by Original version by 7 december 2000 : changed module name ( originally Ldfs ) changed export list changed Vertex to Int included is some additional code for printing tree structures ... The Core Assembler. Modified and adapted ...
2b40188d3315e81984f3c623291b064318fa70e0374cc44dd1b5397aaf3f8bef
LaurentMazare/btc-ocaml
dns_lookup.ml
open Core.Std open Async.Std let consume_domain iobuf = let rec loop () = let len = Iobuf.Consume.uint8 iobuf in if len = 0 then () else if len land 192 > 0 then begin let _ptr = Iobuf.Consume.uint8 iobuf in () end else begin let _query = Iobuf.Consume.string ~len iobuf in loo...
null
https://raw.githubusercontent.com/LaurentMazare/btc-ocaml/0616d7853d807e50dc9ff83c6783b80f71640da2/dns_lookup.ml
ocaml
QDCOUNT ANCOUNT NSCOUNT ARCOUNT QCLASS
open Core.Std open Async.Std let consume_domain iobuf = let rec loop () = let len = Iobuf.Consume.uint8 iobuf in if len = 0 then () else if len land 192 > 0 then begin let _ptr = Iobuf.Consume.uint8 iobuf in () end else begin let _query = Iobuf.Consume.string ~len iobuf in loo...
cc0eb09564f26be1e6f298e6e229adda9ba7762b7215649a3a55b3ff85c00f87
cyverse-archive/DiscoveryEnvironmentBackend
ui_template.clj
(ns kifshare.ui-template (:use [hiccup.core] [hiccup.page :only [include-css include-js html5]] [kifshare.common :only [layout]]) (:require [kifshare.config :as cfg] [clostache.parser :as prs] [clojure.tools.logging :as log] [cheshire.core :as json]) (:import [o...
null
https://raw.githubusercontent.com/cyverse-archive/DiscoveryEnvironmentBackend/7f6177078c1a1cb6d11e62f12cfe2e22d669635b/services/kifshare/src/kifshare/ui_template.clj
clojure
(ns kifshare.ui-template (:use [hiccup.core] [hiccup.page :only [include-css include-js html5]] [kifshare.common :only [layout]]) (:require [kifshare.config :as cfg] [clostache.parser :as prs] [clojure.tools.logging :as log] [cheshire.core :as json]) (:import [o...
f43ca9ff667dc0ad29166ed6c3db133e6856d9627a61e5d1a46d6faed3d10121
sof/feed
Types.hs
-------------------------------------------------------------------- -- | -- Module : Text.Feed.Types Copyright : ( c ) Galois , Inc. 2008 , ( c ) Sigbjorn Finne 2009- -- License : BSD3 -- -- Maintainer: Sigbjorn Finne <> -- Stability : provisional -- Portability: portable -- ----------------------...
null
https://raw.githubusercontent.com/sof/feed/74891cf9d7c9a69e38a8f84dc34fefdb174a9da5/Text/Feed/Types.hs
haskell
------------------------------------------------------------------ | Module : Text.Feed.Types License : BSD3 Maintainer: Sigbjorn Finne <> Stability : provisional Portability: portable ------------------------------------------------------------------ | The abstract type of feed documents. The internal re...
Copyright : ( c ) Galois , Inc. 2008 , ( c ) Sigbjorn Finne 2009- module Text.Feed.Types where import Text.RSS.Syntax as RSS import Text.Atom.Feed as Atom import Text.RSS1.Syntax as RSS1 import Text.XML.Light as XML data Feed = AtomFeed Atom.Feed | RSSFeed RSS.RSS | RSS1Feed RSS1.Feed if we ...
bcf13e1371d03edcaa13f4783324c82cd53a868c9883ce8d688be9a4e9d2f65e
lemmaandrew/CodingBatHaskell
sleepIn.hs
From The parameter weekday is true if it is a weekday , and the parameter vacation is true if we are on vacation . We sleep in if it is not a weekday or we 're on vacation . Return true if we sleep in . The parameter weekday is true if it is a weekday, and the parameter vacation is true if we are on vacatio...
null
https://raw.githubusercontent.com/lemmaandrew/CodingBatHaskell/d839118be02e1867504206657a0664fd79d04736/CodingBat/Warmup-1/sleepIn.hs
haskell
From The parameter weekday is true if it is a weekday , and the parameter vacation is true if we are on vacation . We sleep in if it is not a weekday or we 're on vacation . Return true if we sleep in . The parameter weekday is true if it is a weekday, and the parameter vacation is true if we are on vacatio...
b11eba5fa9259ece22da372c8fcf7449a5881ee28bd318a37e83334cd834ba9d
static-analysis-engineering/codehawk
jCHPolyIntDomainNoArrays.mli
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Java Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) ...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/98ced4d5e6d7989575092df232759afc2cb851f6/CodeHawk/CHJ/jchpoly/jCHPolyIntDomainNoArrays.mli
ocaml
jchlib jchpre
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Java Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) ...
9c66d708e55fc069bcdaa2fc75c7f47e6d66cc6d57cbee2aa34eb4c02bb992ea
3b/3bgl-misc
test2.lisp
(defpackage #:3bgl-smoothlife-test2 (:use :cl :basecode)) (in-package #:3bgl-smoothlife-test2) (defclass smoothlife (basecode-glop perspective-projection basecode-clear fps-graph basecode-draw-ground-plane freelook-camera basecode-exit-on-esc ...
null
https://raw.githubusercontent.com/3b/3bgl-misc/e3bf2781d603feb6b44e5c4ec20f06225648ffd9/smoothlife/test2.lisp
lisp
textures need: -- probably need 32bits for 3d, could easily go beyond temp space = same s16 instead? possibly can reuse one of the fft buffers? fft of convolution kernels twiddle factors for FFTs (todo: move to constants in shader?) tmp buffer for initializing world counter to see if no pix...
(defpackage #:3bgl-smoothlife-test2 (:use :cl :basecode)) (in-package #:3bgl-smoothlife-test2) (defclass smoothlife (basecode-glop perspective-projection basecode-clear fps-graph basecode-draw-ground-plane freelook-camera basecode-exit-on-esc ...
686a6165891af03c2a6f5426ae9d43a8b23df0b92e62a11eeb3b8267a8453cac
sorted-falnyd/clj-airlock-client
datascript.clj
(ns datascript (:require [jsonista.core :as json] [sorted-falnyd.airlock.action :as action] [sorted-falnyd.airlock.graph :as graph] [sorted-falnyd.airlock.client.api :as api] [clojure.core.async :as a] [sorted-falnyd.airlock.schema.parser :as parser] [fipp.edn :refer [pprint] :rename {pprint fipp...
null
https://raw.githubusercontent.com/sorted-falnyd/clj-airlock-client/f5bcac9601ccf1a39de43c9f6d9d54b0274f8e19/examples/datascript.clj
clojure
either or Look at data All resources PULL Pull all resources in another way All entities referring to resource Pull posts in resource group by query
(ns datascript (:require [jsonista.core :as json] [sorted-falnyd.airlock.action :as action] [sorted-falnyd.airlock.graph :as graph] [sorted-falnyd.airlock.client.api :as api] [clojure.core.async :as a] [sorted-falnyd.airlock.schema.parser :as parser] [fipp.edn :refer [pprint] :rename {pprint fipp...
b27ad83af387bac88e2692a861b2ef9db248af81915e52f0fc97e2fcd3c27457
deadpendency/deadpendency
Error.hs
# OPTIONS_GHC -fno - warn - missing - export - lists # module CommonTest.Gen.Model.Error where import Common.Model.Error.ProcessingError import Common.Model.Error.UserError import CommonTest.Gen.General import CommonTest.Gen.Model.Dependency import CommonTest.Gen.Model.Git import CommonTest.Gen.Model.Report import He...
null
https://raw.githubusercontent.com/deadpendency/deadpendency/170d6689658f81842168b90aa3d9e235d416c8bd/apps/common-test/src/CommonTest/Gen/Model/Error.hs
haskell
# OPTIONS_GHC -fno - warn - missing - export - lists # module CommonTest.Gen.Model.Error where import Common.Model.Error.ProcessingError import Common.Model.Error.UserError import CommonTest.Gen.General import CommonTest.Gen.Model.Dependency import CommonTest.Gen.Model.Git import CommonTest.Gen.Model.Report import He...
db02ec189f9d3b423baeffaa59a11cd2365d3b82151e9aaf17cdac852f38790b
maximedenes/native-coq
tactic_debug.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/maximedenes/native-coq/3623a4d9fe95c165f02f7119c0e6564a83a9f4c9/proofs/tactic_debug.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** This module intends to be a beginni...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Names open Constrextern ...
b9a505b69bff948422a0571cd01fdd40b35862fa82db2fc43c1d689d944ef438
rtoy/cmucl
type-vops.lisp
-*- Mode : LISP ; Syntax : Common - Lisp ; Base : 10 ; Package : x86 -*- ;;; ;;; ********************************************************************** This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . If you want to use this ...
null
https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/compiler/x86/type-vops.lisp
lisp
Syntax : Common - Lisp ; Base : 10 ; Package : x86 -*- ********************************************************************** ********************************************************************** This file contains the VM definition of type testing and checking VOPs for the x86. Test generation utilities...
This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . If you want to use this code or any part of CMU Common Lisp , please contact or . (ext:file-comment "$Header: src/compiler/x86/type-vops.lisp $") Written by . by ...
ad23bd6ab94a527c011a08b86109ad85b18f876f42dc08e97e01cfe13e696a01
haroldcarr/learn-haskell-coq-ml-etc
Extend.hs
# LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # module Course.Extend where import Course.Core import Course.Functor import Course.Id import Course.List import Course.Optional class Functor f => Extend f where -- Pronounced, extend. (<<=) :: ...
null
https://raw.githubusercontent.com/haroldcarr/learn-haskell-coq-ml-etc/b4e83ec7c7af730de688b7376497b9f49dc24a0e/haskell/course/2013-11-nicta/src/Course/Extend.hs
haskell
Pronounced, extend. >>> id <<= Id 7 Id (Id 7) >>> length <<= ('a' :. 'b' :. 'c' :. Nil) [3,2,1] [[1,2,3,4],[2,3,4],[3,4],[4]] [[[4,5,6],[1,2,3]],[[4,5,6]]] >>> id <<= Empty Empty | Duplicate the functor using extension. Id (Id 7) [[1,2,3,4],[2,3,4],[3,4],[4]] >>> cojoin Empty Empty End of file.
# LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # module Course.Extend where import Course.Core import Course.Functor import Course.Id import Course.List import Course.Optional class Functor f => Extend f where (<<=) :: (f a -> b) -> f a ...
ea47e7a638f06bdbdefb22c5f79c3e84e479415fe3aa1121d28478c7e1a14150
ocaml/ocamlbuild
titi.ml
(***********************************************************************) (* *) (* ocamlbuild *) (* *) , , projet Galliu...
null
https://raw.githubusercontent.com/ocaml/ocamlbuild/792b7c8abdbc712c98ed7e69469ed354b87e125b/test/test2/titi.ml
ocaml
********************************************************************* ocamlbuild ...
, , projet Gallium , INRIA Rocquencourt Copyright 2007 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with let titi = []
80862fcf4be054fba685ebb407d812bc9de139906bdf5f564d9165cde62d1b07
dyzsr/ocaml-selectml
pr6394.ml
(* TEST * expect *) [@@@ ocaml.warning "+4"] module rec X : sig type t = int * bool end = struct type t = A | B let f = function A | B -> 0 end;; [%%expect{| Lines 4-7, characters 6-3: 4 | ......struct 5 | type t = A | B 6 | let f = function A | B -> 0 7 | end.. Error: Signature mismatch: Modules d...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/testsuite/tests/typing-modules/pr6394.ml
ocaml
TEST * expect
[@@@ ocaml.warning "+4"] module rec X : sig type t = int * bool end = struct type t = A | B let f = function A | B -> 0 end;; [%%expect{| Lines 4-7, characters 6-3: 4 | ......struct 5 | type t = A | B 6 | let f = function A | B -> 0 7 | end.. Error: Signature mismatch: Modules do not match: s...
6fea1bee2c7835b7c8c941c3065bbba147c1d17a96c5feba192366192986912d
bitnomial/prometheus
Registry.hs
{-# LANGUAGE DeriveDataTypeable #-} module System.Metrics.Prometheus.Registry ( Registry, RegistrySample (..), new, registerCounter, registerGauge, registerHistogram, listMetricIds, removeMetric, sample, ) where import Control.Applicative ((<$>)) import Control.Exception (Exception...
null
https://raw.githubusercontent.com/bitnomial/prometheus/b7d3160e2a4d971fe03bef6b43fe8bf15a9c9349/src/System/Metrics/Prometheus/Registry.hs
haskell
# LANGUAGE DeriveDataTypeable #
module System.Metrics.Prometheus.Registry ( Registry, RegistrySample (..), new, registerCounter, registerGauge, registerHistogram, listMetricIds, removeMetric, sample, ) where import Control.Applicative ((<$>)) import Control.Exception (Exception, throw) import Data.Map (Map) impor...
2d973fb07438430ed08115dfb32942bb9923dc1ff143ddefb789d4c5b02ad1cf
akiomik/dtx2midi
Parser.hs
{-# LANGUAGE OverloadedStrings #-} module DTX2MIDI.DTX.Parser ( readFile, parseText, -- for testing parseHeaderLine, parseObjectLine, parseCommentLine, parseBlankLine, parseLines, ) where import Control.Applicative import Control.Monad.Trans.Resource (MonadThrow, runResourceT) import D...
null
https://raw.githubusercontent.com/akiomik/dtx2midi/12eb9a38eea45850b1d03e6fbbcd99f953d8e6ed/src/DTX2MIDI/DTX/Parser.hs
haskell
# LANGUAGE OverloadedStrings # for testing TODO: parse inline comment TODO: parse inline comment TODO: parse inline comment TODO: parse inline comment
module DTX2MIDI.DTX.Parser ( readFile, parseText, parseHeaderLine, parseObjectLine, parseCommentLine, parseBlankLine, parseLines, ) where import Control.Applicative import Control.Monad.Trans.Resource (MonadThrow, runResourceT) import DTX2MIDI.DTX import Data.Attoparsec.Text import Data.By...
e6a4b78b6862370a85f06a1ffd8eb990024c5b2b63c7e2871eae79b136844e0b
Soostone/charade
Charade.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Main where ------------------------------------------------------------------------------- import Control.Lens hiding (elements) import Control.Monad import Control.Monad.Trans import qualified Data.Configurator as ...
null
https://raw.githubusercontent.com/Soostone/charade/71c3206151d742d211716153aba529d5914761c8/src/Charade.hs
haskell
# LANGUAGE OverloadedStrings # ----------------------------------------------------------------------------- ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- The web app --------------------------------------------...
# LANGUAGE TemplateHaskell # module Main where import Control.Lens hiding (elements) import Control.Monad import Control.Monad.Trans import qualified Data.Configurator as C import Data.Maybe import Data.Map.Syntax ((##)) import Heist import H...
7eb4804a2c6ef8866a09d1072b17815345ec255a99773d6e2b063f5216f28381
mark-gerarts/nature-of-code
sketch.lisp
(defpackage :nature-of-code.introduction.exercise-6 (:export :start-sketch) (:use :cl :trivial-gamekit :alexandria) (:shadowing-import-from :alexandria :lerp)) (in-package :nature-of-code.introduction.exercise-6) (defvar *width* 800) (defvar *height* 600) (defvar *black* (vec4 0 0 0 1)) (defun gaussian-random-w...
null
https://raw.githubusercontent.com/mark-gerarts/nature-of-code/4f8612e18a2a62012e44f08a8e0a4f8aec21a1ec/0.%20Introduction/Exercise%20I.6%20-%20Custom%20distribution%20walk/sketch.lisp
lisp
(defpackage :nature-of-code.introduction.exercise-6 (:export :start-sketch) (:use :cl :trivial-gamekit :alexandria) (:shadowing-import-from :alexandria :lerp)) (in-package :nature-of-code.introduction.exercise-6) (defvar *width* 800) (defvar *height* 600) (defvar *black* (vec4 0 0 0 1)) (defun gaussian-random-w...
476e0b40004cecda5874bea5e65baa8ffa181b0dd8151e7b4ef64a9a45b4d468
ciderpunx/57-exercises-for-programmers
Config.hs
module Config where type Filepath = String websiteGenBasePath :: Filepath websiteGenBasePath = "websitegen/" websiteGenSkeletonPath :: Filepath websiteGenSkeletonPath = websiteGenBasePath ++ ".skeleton/"
null
https://raw.githubusercontent.com/ciderpunx/57-exercises-for-programmers/25958ab80cc3edc29756d3bddd2d89815fd390bf/src/Config.hs
haskell
module Config where type Filepath = String websiteGenBasePath :: Filepath websiteGenBasePath = "websitegen/" websiteGenSkeletonPath :: Filepath websiteGenSkeletonPath = websiteGenBasePath ++ ".skeleton/"
2af2f71118eb8143c4c2e8b14110745bbc390570c2fb5ec8c2207bbb3445fd9d
hopv/horsat2
obdd.ml
* * * Copyright 2004 ( see README and COPYING for details in the top directory ) * * (********************************************************) (******** A Library for boolean decison diagram ********) * * * * * * * 14/07/2004 , Written by * * * * * * * (********************************************************) ...
null
https://raw.githubusercontent.com/hopv/horsat2/22c8b3e5d6a5751f28824182d4f27728e3acbf82/obdd.ml
ocaml
****************************************************** ******* A Library for boolean decison diagram ******* ****************************************************** ************************************** ******* Negation ******************** ************************************** **************************************...
* * * Copyright 2004 ( see README and COPYING for details in the top directory ) * * * * * * * * * 14/07/2004 , Written by * * * * * * * exception Impossible;; type var = int;; type bdd = Node of var * bdd * bdd * int | Leaf of bool;; let node_id t = match t with Leaf(true)-> 0 | Leaf(false) -> 1 ...
39f9dd4ef18adb9b894573c73a14100ef1a752751c21bb772c2e4f2b9c42353b
OlivierSohn/hamazed
HasLayeredColor.hs
{-# OPTIONS_HADDOCK hide #-} # LANGUAGE NoImplicitPrelude # module Imj.Graphics.Class.HasLayeredColor ( HasLayeredColor(..) * , LayeredColor ) where import Imj.Graphics.Color.Types | Access one graphical element 's ' LayeredColor ' . class HasLayeredColor a where ...
null
https://raw.githubusercontent.com/OlivierSohn/hamazed/6c2b20d839ede7b8651fb7b425cb27ea93808a4a/imj-base/src/Imj/Graphics/Class/HasLayeredColor.hs
haskell
# OPTIONS_HADDOCK hide #
# LANGUAGE NoImplicitPrelude # module Imj.Graphics.Class.HasLayeredColor ( HasLayeredColor(..) * , LayeredColor ) where import Imj.Graphics.Color.Types | Access one graphical element 's ' LayeredColor ' . class HasLayeredColor a where getColor :: a -> LayeredColo...
e8b6d8081babfd925ab17a77cd36fbb93e4ed3cab4746175c067e687bb603c75
icicle-lang/icicle-ambiata
ExpEnv.hs
# LANGUAGE NoImplicitPrelude # module Icicle.Avalanche.Statement.Simp.ExpEnv ( ExpEnv , emptyExpEnv , updateExpEnv , getFromEnv ) where import Icicle.Avalanche.Statement.Statement import Icicle.Common.Base import Icicle.Common.Exp import P import quali...
null
https://raw.githubusercontent.com/icicle-lang/icicle-ambiata/9b9cc45a75f66603007e4db7e5f3ba908cae2df2/icicle-compiler/src/Icicle/Avalanche/Statement/Simp/ExpEnv.hs
haskell
Normal let: remember the name and expression for later Anything else, nothing changes Lookup a name in the environment.
# LANGUAGE NoImplicitPrelude # module Icicle.Avalanche.Statement.Simp.ExpEnv ( ExpEnv , emptyExpEnv , updateExpEnv , getFromEnv ) where import Icicle.Avalanche.Statement.Statement import Icicle.Common.Base import Icicle.Common.Exp import P import quali...
04630eaf72a9048cb222818b4b0c8bfb45f20a2b40a2be193d6ff8fd0e1788af
bracevac/corrl
BindingGroups.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 ...
null
https://raw.githubusercontent.com/bracevac/corrl/416cd107087ac070a6bcabf8e7937211b6f415bb/koka/src/Core/BindingGroups.hs
haskell
--------------------------------------------------------------------------- This is free software; you can redistribute it and/or modify it under the --------------------------------------------------------------------------- Re-analyze a recursive binding group just after type checking. Due to overloadi...
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 Core.BindingGroups( regroup ) where import qualified Data.Set as S import qualified Data.Map as M import Common...
846267673e678bf585bd43c452d3199141122ce01adbe83fc34c76119cab340d
jrh13/hol-light
signs.ml
(* ------------------------------------------------------------------------- *) (* Find sign of polynomial, using modulo-constant lookup and computation. *) (* ------------------------------------------------------------------------- *) let xterm_lt t1 t2 = try let n1,_ = dest_var t1 in let n2,_ = dest_va...
null
https://raw.githubusercontent.com/jrh13/hol-light/ea44a4cacd238d7fa5a397f043f3e3321eb66543/Rqe/signs.ml
ocaml
------------------------------------------------------------------------- Find sign of polynomial, using modulo-constant lookup and computation. ------------------------------------------------------------------------- ASSERTSIGN [x,y] [] (|- &7 + x * (&11 + x * (&10 + y * -- &7)) < &0 --> [-- &1 + x * (-- ...
let xterm_lt t1 t2 = try let n1,_ = dest_var t1 in let n2,_ = dest_var t2 in let i1 = String.sub n1 2 (String.length n1 - 2) in let i2 = String.sub n2 2 (String.length n2 - 2) in let x1 = int_of_string i1 in let x2 = int_of_string i2 in x1 < x2 with _ -> failwith "xterm_lt: not an xva...
1bf8de81767754f35e0ec8d1e0918cd937ee4aaedba94e870089ec82728050ff
zk/nsfw
pubsub.cljs
(ns nsfw.pubsub (:require [nsfw.util :as util])) (defn mk-bus [] (atom {})) (defn pub [bus [msg & rest :as payload]] (doseq [f (concat (get @bus msg))] (f payload)) (doseq [f (concat (get @bus ::all))] (f payload))) (defn sub ([bus f] (sub bus nil f)) ([bus msg f] (swap! bus update-in [(...
null
https://raw.githubusercontent.com/zk/nsfw/ea07ba20cc5453b34a56b34c9d8738bf9bf8e92f/src/cljs/nsfw/pubsub.cljs
clojure
(ns nsfw.pubsub (:require [nsfw.util :as util])) (defn mk-bus [] (atom {})) (defn pub [bus [msg & rest :as payload]] (doseq [f (concat (get @bus msg))] (f payload)) (doseq [f (concat (get @bus ::all))] (f payload))) (defn sub ([bus f] (sub bus nil f)) ([bus msg f] (swap! bus update-in [(...
2797683f7193696bccb40a65b4be6734f834e8a55cb5a5533d527779f3a784ae
brownplt/cs173-python
python-desugar.rkt
#lang plai-typed (print-only-errors true) (require "python-syntax.rkt" "python-core-syntax.rkt" "python-helpers.rkt") (define (desugar [expr : PyExp]) : CExp (type-case PyExp expr [PySeq (es) (foldl (lambda (e1 e2) (CSeq e2 (desugar e1))) (desugar (first es)) (rest es))] [PyNum (n) (CNum ...
null
https://raw.githubusercontent.com/brownplt/cs173-python/d8ae026172f269282e54366f16ec42e037117cb4/design4/cs173-python/python-desugar.rkt
racket
ignoring default arguments for now. also, just setting this in the current scope. is that correct? not doing tuple unpacking for now ; chain-lets: takes a list of (identifier, expr) pairs and evaluates the exprs and assigns them the identifiers. Finally it takes an expr to put everything around. Note that it d...
#lang plai-typed (print-only-errors true) (require "python-syntax.rkt" "python-core-syntax.rkt" "python-helpers.rkt") (define (desugar [expr : PyExp]) : CExp (type-case PyExp expr [PySeq (es) (foldl (lambda (e1 e2) (CSeq e2 (desugar e1))) (desugar (first es)) (rest es))] [PyNum (n) (CNum ...
5b7a8aee89e23d1bf083569df3410ac4c0f510fde25da20ef2a59522b308bcd9
openmusic-project/openmusic
send-receive.lisp
;========================================================================= OpenMusic : Visual Programming Language for Music Composition ; Copyright ( c ) 1997- ... IRCAM - Centre , Paris , France . ; This file is part of the OpenMusic environment sources ; OpenMusic is free software : you can redist...
null
https://raw.githubusercontent.com/openmusic-project/openmusic/9560c064512a1598cd57bcc9f0151c0815178e6f/OPENMUSIC/code/kernel/reactive/send-receive.lisp
lisp
========================================================================= (at your option) any later version. but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. =================...
OpenMusic : Visual Programming Language for Music Composition Copyright ( c ) 1997- ... IRCAM - Centre , Paris , France . This file is part of the OpenMusic environment sources OpenMusic is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License ...
5f7b2052897ba0bf765aa3112a18ef6ebc7a2a8f83cd031897abe466a922bb13
scheme-live/live
output.scm
((a . "b") (a . "c"))
null
https://raw.githubusercontent.com/scheme-live/live/4c7c9d80f2fcf80692614e10935fa66be69e3708/live/json/data/y-object-duplicated-key/output.scm
scheme
((a . "b") (a . "c"))
679e95287864c5e22cc6150908d473166c15c79238fefe7ab67e1fc6bf3ce0dc
lexi-lambda/racket-commonmark
info.rkt
#lang info (define version "1.1") (define collection 'multi) (define deps '(["base" #:version "7.3.0.3"] "data-lib" "threading-lib")) (define build-deps '())
null
https://raw.githubusercontent.com/lexi-lambda/racket-commonmark/d40156bce42088aea1a742d6cce4c8697318db70/commonmark-lib/info.rkt
racket
#lang info (define version "1.1") (define collection 'multi) (define deps '(["base" #:version "7.3.0.3"] "data-lib" "threading-lib")) (define build-deps '())
2789123a753eb20aae726998db1603c5e8a9e9d9507d3e8e9425f8b69e22049c
kumarshantanu/keypin
store.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 LICENSE at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; the ...
null
https://raw.githubusercontent.com/kumarshantanu/keypin/d5151adebff2cb4970ff531c92c03593697d49c2/src/keypin/store.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 LICENSE at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this ...
Copyright ( c ) . All rights reserved . (ns keypin.store "Config store functionality and implementation. See: [[make-dynamic-store]], [[make-caching-store]]" (:require [clojure.stacktrace :as cs] [keypin.internal :as i] [keypin.type :as t]) (:import [java.util Date Map] [java.te...
252eb1b478a57d1f4c06919c6a1367731ba6f9e82bed5e09f737a96900f1226b
dyzsr/ocaml-selectml
t360-stacks-2.ml
TEST include tool - ocaml - lib flags = " -w -a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w -a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; let rec f n = if n <= 0 then 12 else 1 + f (n-1) in try ign...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/testsuite/tests/tool-ocaml/t360-stacks-2.ml
ocaml
TEST include tool - ocaml - lib flags = " -w -a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w -a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; let rec f n = if n <= 0 then 12 else 1 + f (n-1) in try ign...
302c247229cee2082e8e5be4d973da07f237ec521a03900229b9eb0b14460559
wasp-lang/strong-path
InstanceTest.hs
module StrongPath.InstanceTest where import Data.Hashable import Data.List (sort) import StrongPath import Test.Hspec import Test.Tasty (TestTree) import Test.Tasty.Hspec (testSpec) test_StrongPathInstance :: IO TestTree test_StrongPathInstance = testSpec "StrongPath.Instance" $ do it "Different paths have differen...
null
https://raw.githubusercontent.com/wasp-lang/strong-path/c8f38ff3df35cbbba83d6228dbda6608aa536251/test/StrongPath/InstanceTest.hs
haskell
module StrongPath.InstanceTest where import Data.Hashable import Data.List (sort) import StrongPath import Test.Hspec import Test.Tasty (TestTree) import Test.Tasty.Hspec (testSpec) test_StrongPathInstance :: IO TestTree test_StrongPathInstance = testSpec "StrongPath.Instance" $ do it "Different paths have differen...
79cf5a566fbc6e5d453d642ca5868d88aacbee7ec5341e2c3a0fb370946807b9
IBM/wcs-ocaml
cnl_t.mli
* This file is part of the Watson Conversation Service OCaml API project . * * Copyright 2016 - 2017 IBM Corporation * * 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...
null
https://raw.githubusercontent.com/IBM/wcs-ocaml/b237b7057f44caa09d36e466be015e2bc3173dd5/examples/rulebot/src/cnl_t.mli
ocaml
type 'a error_or = ('a, string) result XXX Hack? -- contextual information for fields within new XXX XXX TODO: review for current object
* This file is part of the Watson Conversation Service OCaml API project . * * Copyright 2016 - 2017 IBM Corporation * * 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...
e79fe674831ee8b4db6ac9a1153105a99a66a7c9d453831067e526b4af726431
dimitri/AdventOfCode
d16.lisp
(in-package :advent/2018) (defparameter *d16/input* (uiop:read-file-string (asdf:system-relative-pathname :advent "2018/d16.input"))) (defparameter *d16/test* " Before: [3, 2, 1, 1] 9 2 1 2 After: [3, 2, 2, 1] Before: [0, 3, 0, 2] 13 0 0 3 After: [0, 3, 0, 0] ") (defstruct vm (regs (make-array 4 :element-t...
null
https://raw.githubusercontent.com/dimitri/AdventOfCode/fcb9f5e9d7e75c82efffc4069c0c54c5cce2d180/2018/d16.lisp
lisp
(in-package :advent/2018) (defparameter *d16/input* (uiop:read-file-string (asdf:system-relative-pathname :advent "2018/d16.input"))) (defparameter *d16/test* " Before: [3, 2, 1, 1] 9 2 1 2 After: [3, 2, 2, 1] Before: [0, 3, 0, 2] 13 0 0 3 After: [0, 3, 0, 0] ") (defstruct vm (regs (make-array 4 :element-t...
4a4dff3dc46cf0eb433cb71d1e843c126627a9875d372121a6b05abebf0a54d3
kappelmann/engaging-large-scale-functional-programming
Exercise04.hs
module Exercise04 where import Data.Maybe rudolph :: String -> (Int, Int) rudolph s ~ | isNothing mb_ps = ( 0 , 1 ) | null ss = (0, 1) | otherwise = (maxi, count) where -- ~ mb_ps = preprocess s ps = preprocess s reduceds = reduce ps ss = map (\(S n) -> n) $ filter isS reduceds maxi = maximum ss coun...
null
https://raw.githubusercontent.com/kappelmann/engaging-large-scale-functional-programming/8ed2c056fbd611f1531230648497cb5436d489e4/resources/contest/example_data/04/uploads/ghzi/Exercise04.hs
haskell
~ mb_ps = preprocess s R=(, L=) ~ preprocess :: String -> Maybe [LR] ~ preprocess [] = Just [] ~ preprocess ('R':xs) = do ~ rs <- preprocess xs ~ Just (R : rs) ~ preprocess ('L':xs) = do ~ rs <- preprocess xs ~ Just (L : rs) ~ preprocess otherwise = Nothing
module Exercise04 where import Data.Maybe rudolph :: String -> (Int, Int) rudolph s ~ | isNothing mb_ps = ( 0 , 1 ) | null ss = (0, 1) | otherwise = (maxi, count) where ps = preprocess s reduceds = reduce ps ss = map (\(S n) -> n) $ filter isS reduceds maxi = maximum ss count = length [s | s <- ss, s =...
73a71ab84e1167d9e6ce2c189f5e71bf635ad3652b6db5090c64859d784c3419
witan-org/witan
scheduler.ml
(*************************************************************************) This file is part of Witan . (* *) Copyright ( C ) 2017 CEA ( Commi...
null
https://raw.githubusercontent.com/witan-org/witan/d26f9f810fc34bf44daccb91f71ad3258eb62037/src/solver/scheduler.ml
ocaml
*********************************************************************** alternatives) Automatique) ...
This file is part of Witan . Copyright ( C ) 2017 CEA ( Commissariat à l'énergie atomique et aux énergies ( Institut National de Recherche en Informatique et en CNRS ( Centre nation...
d82cc55298e4d6ac86966a6534cf3e3eccceba5b61d98bbe9888a9d4dbf4fb2a
joelagnel/stumpwm-goodies
modeline-utils.lisp
(in-package :stumpwm) (defun update-mode-line () (redraw-mode-line-for (screen-mode-line (current-screen)) (current-screen)) (resize-mode-line-for (screen-mode-line (current-screen)) (current-screen))) (defun show-battery-charge () (let ((raw-battery (run-shell-command "acpi | cut -d, -...
null
https://raw.githubusercontent.com/joelagnel/stumpwm-goodies/bf9dee6a2e92fea6f2160c37565a74072e367d36/mode-line/modeline-utils.lisp
lisp
" | "
(in-package :stumpwm) (defun update-mode-line () (redraw-mode-line-for (screen-mode-line (current-screen)) (current-screen)) (resize-mode-line-for (screen-mode-line (current-screen)) (current-screen))) (defun show-battery-charge () (let ((raw-battery (run-shell-command "acpi | cut -d, -...
b02aa158813e9a038dc695b7d7e2ac110904daba4b48dd5b42a3f7fb1b26fe54
morpheusgraphql/morpheus-graphql
Rep.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE FlexibleInstances # # LANGUAGE KindSignatures # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeOperators # # LANGUAGE NoImplicitPrelude # module D...
null
https://raw.githubusercontent.com/morpheusgraphql/morpheus-graphql/a91a28c7fa681bae50fef0cd4403d3adabf870f1/morpheus-graphql-server/src/Data/Morpheus/Server/Deriving/Internal/Decode/Rep.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE OverloadedStrings #
# LANGUAGE FlexibleInstances # # LANGUAGE KindSignatures # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeOperators # # LANGUAGE NoImplicitPrelude # module Data.Morpheus.Server.Deriving.Internal.Decode.Rep ( DecodeRep (..),...
47a5b88a3c9c7292d4743cb95f7ec047833d3bc260c978cee9d83cac73144b8a
fireflowerr/sudoku.hs
Gui.hs
# LANGUAGE BlockArguments # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedLabels #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE ViewPatterns # module Sudoku.Gui where import Control.Concurrent (forkIO, threadDelay) i...
null
https://raw.githubusercontent.com/fireflowerr/sudoku.hs/8c91a8214e009f2b81115d449cef62e6c459053c/src/Sudoku/Gui.hs
haskell
# LANGUAGE OverloadedLabels # # LANGUAGE OverloadedStrings # # LANGUAGE OverloadedStrings # DEFS ------------------------------------------------------------------------ colors must be supported in CSS css priority -------------------------------------------------------------- | Applies app.ui to app window ...
# LANGUAGE BlockArguments # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE ViewPatterns # module Sudoku.Gui where import Control.Concurrent (forkIO, threadDelay) import Control.Exception (catch) import Control.Monad (forM_, when) import Data.GI.Base import Data.GI.Base.GErr...
176617b5568f9e3e7b762a2ebdf889fced1498c4cc3579f29164d9902fdb21c5
quintype/ringo
Fact.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE CPP # # LANGUAGE NamedFieldPuns # # LANGUAGE QuasiQuotes # {-# LANGUAGE GADTs #-} # LANGUAGE PatternSynonyms # module Ringo.Generator.Populate.Fact (factTablePopulateSQL) where import qualified Data.Text as Tex...
null
https://raw.githubusercontent.com/quintype/ringo/3faf4ff82e1f3a53175ad813849c2e9047930d7f/src/Ringo/Generator/Populate/Fact.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE GADTs # existing dimension table
# LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE CPP # # LANGUAGE NamedFieldPuns # # LANGUAGE QuasiQuotes # # LANGUAGE PatternSynonyms # module Ringo.Generator.Populate.Fact (factTablePopulateSQL) where import qualified Data.Text as Text #if MIN_VERSION_base(4,8,0) #else import Control.Applic...
53ec0353a1a48c9635db144335ce658fee7d3397c4ce7aee2041421796ea1a67
eashanhatti/peridot
Search.hs
module Search where import Data.Maybe import Syntax.Semantic import Control.Effect.Lift import Control.Effect.NonDet(NonDet, Alternative, empty, (<|>), oneOf) import Control.Effect.State(State, get, put, modify) import Control.Carrier.NonDet.Church hiding(Empty) import Control.Carrier.State.Strict import Control.Carri...
null
https://raw.githubusercontent.com/eashanhatti/peridot/5e91c95101637a830d42e7cca20ddfce09a44522/src/Search.hs
haskell
substs <- traverse vG <- eval g case uv of pure () _ -> pure ()
module Search where import Data.Maybe import Syntax.Semantic import Control.Effect.Lift import Control.Effect.NonDet(NonDet, Alternative, empty, (<|>), oneOf) import Control.Effect.State(State, get, put, modify) import Control.Carrier.NonDet.Church hiding(Empty) import Control.Carrier.State.Strict import Control.Carri...
8f5ca15e32c25781b4f0f6f2647ecd60a4a817ba512807964e05dfa071b30ff1
runtimeverification/plutus-core-semantics
NFT.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE FlexibleContexts #-} # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # L...
null
https://raw.githubusercontent.com/runtimeverification/plutus-core-semantics/ab21c839069bfb2a0a3bb888b07c5ecd24ac76d3/IOG-contracts/native-tokens/src/Contracts/NFT.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DeriveAnyClass # # LANGUAGE FlexibleContexts # # LANGUAGE OverloadedStrings # # LANGUAGE TypeOperators # # INLINABLE mkPolicy # uplcNFTPolicy :: String uplcNFTPolicy = pirNFTPolicy :: String
# LANGUAGE DeriveGeneric # # LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # module Contracts.NFT where import Control.Monad hiding (fmap) import Data.Aeson ...
84878b09b7163c2f8bdc3b3b4c1a71fad4124a47458ab4437bdfdb674a206edf
yogthos/components-example
handler.clj
(ns components-example.test.handler (:require [clojure.test :refer :all] [ring.mock.request :refer :all] [components-example.handler :refer :all])) (deftest test-app (testing "main route" (let [response ((app) (request :get "/"))] (is (= 200 (:status response))))) (testing "not...
null
https://raw.githubusercontent.com/yogthos/components-example/c369bde7916b6d15cb6a8b4ab05c562e16755b2a/test/clj/components_example/test/handler.clj
clojure
(ns components-example.test.handler (:require [clojure.test :refer :all] [ring.mock.request :refer :all] [components-example.handler :refer :all])) (deftest test-app (testing "main route" (let [response ((app) (request :get "/"))] (is (= 200 (:status response))))) (testing "not...
8a75f7614d700958106eecda6c21cea1db129f3cb3505859afff81449627c6c2
dm3/clojure.java-time
properties.clj
(ns java-time.properties (:require [java-time.core :as jt.c] [java-time.util :as jt.u] [java-time.fields :as jt.f] [java-time.units :as jt.units]) (:import [java.time.temporal TemporalField TemporalUnit TemporalAccessor Temporal] (clojure.lang Keyword))) (defn- proper...
null
https://raw.githubusercontent.com/dm3/clojure.java-time/6a56f6c144c296efded2872ebb127d4b2e05ec9c/src/java_time/properties.clj
clojure
UNIT FIELD
(ns java-time.properties (:require [java-time.core :as jt.c] [java-time.util :as jt.u] [java-time.fields :as jt.f] [java-time.units :as jt.units]) (:import [java.time.temporal TemporalField TemporalUnit TemporalAccessor Temporal] (clojure.lang Keyword))) (defn- proper...
d67f2015af977744b6ca6cd02692a2736f10f4b50269c41ebd238449c9c3ff64
yzh44yzh/practical_erlang
client2.erl
-module(client2). -export([start/0, start/2, send/2, stop/1, client/2]). start() -> start("localhost", 1234). start(Host, Port) -> spawn(?MODULE, client, [Host, Port]). send(Pid, Msg) -> Pid ! {send, Msg}, ok. stop(Pid) -> Pid ! stop, ok. client(Host, Port) -> io:format("Client ~p conn...
null
https://raw.githubusercontent.com/yzh44yzh/practical_erlang/c9eec8cf44e152bf50d9bc6d5cb87fee4764f609/16_sockets/client2.erl
erlang
-module(client2). -export([start/0, start/2, send/2, stop/1, client/2]). start() -> start("localhost", 1234). start(Host, Port) -> spawn(?MODULE, client, [Host, Port]). send(Pid, Msg) -> Pid ! {send, Msg}, ok. stop(Pid) -> Pid ! stop, ok. client(Host, Port) -> io:format("Client ~p conn...
55c1317f9f9d518395e9d407b525372db893df039859a4938175bdb527ef1c6d
kadena-io/pact
Service.hs
# LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE RecordWildCards # {-# LANGUAGE OverloadedStrings #-} module Pact.Server.History.Service ( initHistoryEnv , runHistoryService , setupPersistence , addNewKeys , updateExistingKeys , queryForResults ) where import Control.Lens hiding...
null
https://raw.githubusercontent.com/kadena-io/pact/4971ab6078b75eb612d83d56f1e7cd139a5a2ba8/src-ghc/Pact/Server/History/Service.hs
haskell
# LANGUAGE OverloadedStrings # if there's no replays, we still need to unblock the cmd thread if there's no replays, we still need to unblock the cmd thread
# LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE RecordWildCards # module Pact.Server.History.Service ( initHistoryEnv , runHistoryService , setupPersistence , addNewKeys , updateExistingKeys , queryForResults ) where import Control.Lens hiding (Index) import Control.Monad impor...
c2eb4eaa5dcb04b95847981904ab21efc9f9309c3d8d37bfeccb4fb45d67b2a7
astrada/ocaml-extjs
ext_dd_DD.mli
* A DragDrop implementation where the linked element ... { % < p > A DragDrop implementation where the linked element follows the mouse cursor during a drag.</p > % } {% <p>A DragDrop implementation where the linked element follows the mouse cursor during a drag.</p> %} *) class type t = object('se...
null
https://raw.githubusercontent.com/astrada/ocaml-extjs/77df630a75fb84667ee953f218c9ce375b3e7484/lib/ext_dd_DD.mli
ocaml
* [of_configs c] casts a config object [c] to an instance of class [t] * [to_configs o] casts instance [o] of class [t] to a config object
* A DragDrop implementation where the linked element ... { % < p > A DragDrop implementation where the linked element follows the mouse cursor during a drag.</p > % } {% <p>A DragDrop implementation where the linked element follows the mouse cursor during a drag.</p> %} *) class type t = object('se...
bc43ec9aa0b68296176043d7d1cdbcf0d4b0083ae461dbcf9f7b1de4b33cf1f7
xclerc/ocamljava
jclosure_arrays.mli
* This file is part of compiler . * Copyright ( C ) 2007 - 2015 . * * compiler is free software ; you can redistribute it and/or modify * it under the terms of the Q Public License as published by * ( with a change to choice of law ) . * * compiler is distributed in the hope that it ...
null
https://raw.githubusercontent.com/xclerc/ocamljava/8330bfdfd01d0c348f2ba2f0f23d8f5a8f6015b1/compiler/javacomp/jclosure_arrays.mli
ocaml
* [optimize_intarray_call fundesc params] optimizes a call to [fundesc] made with parameters [params] by redirecting the call to another function specialized for [int] arrays. Returns [fundesc] if the call cannot be optimized. * [optimize_intarray_primitive prim params] optimizes a call to [prim] made...
* This file is part of compiler . * Copyright ( C ) 2007 - 2015 . * * compiler is free software ; you can redistribute it and/or modify * it under the terms of the Q Public License as published by * ( with a change to choice of law ) . * * compiler is distributed in the hope that it ...
718ba29f8da354b1ef66710e8c784dde5710ecfe33fee745f8edbb4e145e01e2
JustusAdam/language-haskell
T0069.hs
SYNTAX TEST " source.haskell " " Parentheses in import and export lists " module Main ( Foo((+-)), func1 -- ^^ meta.declaration.exports.haskell entity.name.function.infix.haskell ^^^^^ meta.declaration.exports.haskell entity.name.function.haskell ^^^^^ - invalid , Bar((:->), (:->>...
null
https://raw.githubusercontent.com/JustusAdam/language-haskell/c9ee1b3ee166c44db9ce350920ba502fcc868245/test/tickets/T0069.hs
haskell
^^ meta.declaration.exports.haskell entity.name.function.infix.haskell ^^^ ^^^^ meta.declaration.exports.haskell constant.other.operator.prefix.haskell <------------------ - invalid
SYNTAX TEST " source.haskell " " Parentheses in import and export lists " module Main ( Foo((+-)), func1 ^^^^^ meta.declaration.exports.haskell entity.name.function.haskell ^^^^^ - invalid , Bar((:->), (:->>)), Baz, func5 ^^^ meta.declaration.exports.haskell sto...
4ae44627571e2c5dd62a284953ecda0e3051e6391553f725f796afc51847e0fe
typedclojure/typedclojure
jvm.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/80063d6eb6f8da34d8dfa2d722b9a85eb539e057/typed/lib.clojure/src/typed/ann/clojure/jvm.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 ^:no-doc typed.ann.clojure.jvm "JVM-specific type annotations for the base Clojure distribution." (:require [typed.clojure :as t] [typed.clojure.jvm :refer [override-classes]] clojure.core.typed) (:import (clojure.lang Named IMapEntry AMapEn...
324330fbb25e5536a8ec2b3c786e1f06f203c1acdeeaaf4430d56938b0a0c500
Datomic/day-of-datomic
byte_array.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/byte_array.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 '[datomic.api :as d] '[datomic.samples.repl :as repl]) (def conn (repl/scratch-conn)) @(d/transact conn [{:db/id #db/id[:db.part/db] :db/ident :some-bytes :db/valueType ...
ffbc6ceecbcb7b3c30f012cb002faf4fc64d86c80a7511349801a90cb00fd75d
cnuernber/cljs-lambda-gateway-example
proxy_lambda.clj
(ns gateway-example.proxy-lambda "Implement the lambda runtime for gateway proxying applications. Converts gateway proxy messages <-> ring compatible http datastructures." (:require [org.httpkit.client :as client] [clojure.tools.logging :as log] [jsonista.core :as json] [came...
null
https://raw.githubusercontent.com/cnuernber/cljs-lambda-gateway-example/744c9291a70f91e7b49096e5cd2e898a71600ab3/src/gateway_example/proxy_lambda.clj
clojure
The only robust way to return headers is multi-value-headers The result may not transfer to json as it may have streams for the body.
(ns gateway-example.proxy-lambda "Implement the lambda runtime for gateway proxying applications. Converts gateway proxy messages <-> ring compatible http datastructures." (:require [org.httpkit.client :as client] [clojure.tools.logging :as log] [jsonista.core :as json] [came...
366d5d9b01c29f2859c403febf616f1282ac00b63e6d4b7966e7c3b4c3c9942f
penpot/penpot
shell.cljs
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. ;; ;; Copyright (c) KALEIDOS INC (ns app.util.shell "Shell & FS utilities." (:require ["child_process" :as proc] ["fs" :as fs] ["o...
null
https://raw.githubusercontent.com/penpot/penpot/cc18f84d620e37d8efafc5bed1bcdbe70ec23c1e/exporter/src/app/util/shell.cljs
clojure
Copyright (c) KALEIDOS INC (l/trace :fn :run-cmd :stdout stdout)
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (ns app.util.shell "Shell & FS utilities." (:require ["child_process" :as proc] ["fs" :as fs] ["os" :as os] ["path" :as path] ...
56b20a6ad039915dbd65ed7b85a4d1b5e6808e9a54f04fdcdd678bda84950174
metabase/metabase
common.clj
(ns i18n.common (:require [clojure.java.io :as io] [clojure.string :as str] [metabuild-common.core :as u]) (:import (org.fedorahosted.tennera.jgettext Catalog HeaderFields Message PoParser))) (defn locales "Set of all locales for which we have i18n bundles. - > # { \"nl\ " \"pt\ " " \"tr\ " \"it\...
null
https://raw.githubusercontent.com/metabase/metabase/5e9b52a32dfeab754d218c758d08fffbacb7c0e7/bin/build/src/i18n/common.clj
clojure
see remove any empty translations
(ns i18n.common (:require [clojure.java.io :as io] [clojure.string :as str] [metabuild-common.core :as u]) (:import (org.fedorahosted.tennera.jgettext Catalog HeaderFields Message PoParser))) (defn locales "Set of all locales for which we have i18n bundles. - > # { \"nl\ " \"pt\ " " \"tr\ " \"it\...
17ebfd41e9fdaa0647e117b2c8b96796df38fc2d76454cf857227ca3350fbfd1
avsm/platform
opamSolution.ml
(**************************************************************************) (* *) Copyright 2012 - 2015 OCamlPro Copyright 2012 INRIA (* ...
null
https://raw.githubusercontent.com/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/opam-client.2.0.5%2Bdune/src/client/opamSolution.ml
ocaml
************************************************************************ All rights reserved. This file is distributed under the terms of the exception on linking descr...
Copyright 2012 - 2015 OCamlPro Copyright 2012 INRIA GNU Lesser General Public License version 2.1 , with the special let log fmt = OpamConsole.log "SOLUTION" fmt open OpamTypes open OpamTypesBase open OpamState...
e0153cb6470017dc2e6c03544473b9972d2cb72cb45d6623cade2fa4e8b87146
harpocrates/inline-rust
PreludeTypes.hs
# LANGUAGE QuasiQuotes , TemplateHaskell # module PreludeTypes where import Language.Rust.Inline import Test.Hspec import Foreign.Storable import Data.Int ( Int32 ) import Data.Word ( Word32 ) import Data.Char ( toUpper ) import Data.Bifunctor ( bimap ) extendContext prelude extendContext basic setCrateModule ...
null
https://raw.githubusercontent.com/harpocrates/inline-rust/5ecff8c92526000e5fc358a2dfede9b60ef59a1a/tests/PreludeTypes.hs
haskell
# LANGUAGE QuasiQuotes , TemplateHaskell # module PreludeTypes where import Language.Rust.Inline import Test.Hspec import Foreign.Storable import Data.Int ( Int32 ) import Data.Word ( Word32 ) import Data.Char ( toUpper ) import Data.Bifunctor ( bimap ) extendContext prelude extendContext basic setCrateModule ...
dece81043be6289381de9582a7cc21345a7525ddebe67016c7920d31cde045af
neeraj9/hello-erlang-rump
uworldtime_suntime_handler.erl
%%%------------------------------------------------------------------- @author nsharma ( C ) 2016 , %%% @doc %%% %%% @end Copyright ( c ) 2016 , < > . %%% All rights reserved. %%% %%% Redistribution and use in source and binary forms, with or without %%% modification, are permitted provided that the followi...
null
https://raw.githubusercontent.com/neeraj9/hello-erlang-rump/304d2f0faaef64677de22d9a3495297e08d90a3f/apps/uworldtime/src/uworldtime_suntime_handler.erl
erlang
------------------------------------------------------------------- @doc @end 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 ...
@author nsharma ( C ) 2016 , Copyright ( c ) 2016 , < > . " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT OWNER OR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF SUBSTITUTE GOODS OR SERVI...
9ce8bece0e0c3c0e801a685c91a631b7472b2455ce0e0e2b1e1e6f2777842c75
albertov/esqueleto-textsearch
TextSearch.hs
module Database.Esqueleto.TextSearch ( module Database.Esqueleto.TextSearch.Language , module Database.Esqueleto.TextSearch.Types ) where import Database.Esqueleto.TextSearch.Language import Database.Esqueleto.TextSearch.Types
null
https://raw.githubusercontent.com/albertov/esqueleto-textsearch/3bc68591d337d371d89b79b96418ef2c81d3e555/src/Database/Esqueleto/TextSearch.hs
haskell
module Database.Esqueleto.TextSearch ( module Database.Esqueleto.TextSearch.Language , module Database.Esqueleto.TextSearch.Types ) where import Database.Esqueleto.TextSearch.Language import Database.Esqueleto.TextSearch.Types
09d78961f45b217c6cbcfc5bf7d6b941d9284ac8edfddaa331bf7071680cfb8a
logicblocks/salutem
registry_test.clj
(ns salutem.core.registry-test (:require [clojure.test :refer :all] [clojure.core.async :as async] [spy.core :as spy] [tick.alpha.api :as t] [salutem.test.support.data :as data] [salutem.core.time :as time] [salutem.core.checks :as checks] [salutem.core.results :as results] [salutem.core...
null
https://raw.githubusercontent.com/logicblocks/salutem/9a8651f3f60ac3a84307a28f9986d0661e0720fc/core/test/unit/salutem/core/registry_test.clj
clojure
(ns salutem.core.registry-test (:require [clojure.test :refer :all] [clojure.core.async :as async] [spy.core :as spy] [tick.alpha.api :as t] [salutem.test.support.data :as data] [salutem.core.time :as time] [salutem.core.checks :as checks] [salutem.core.results :as results] [salutem.core...
641ca48b6947272b4fdb28930aa54d92e263dceb1a2b7a6476423c99afdeff26
BitGameEN/bitgamex
lib_mining.erl
%%%-------------------------------------- %%% @Module : lib_mining %%% @Description: 挖矿相关处理 %%%-------------------------------------- -module(lib_mining). -export([distribute_game_delta_golds/2, distribute_login_delta_golds/4]). -export([get_rand_gold_type/2, get_gold_types/2]). -include("common.hrl"). -incl...
null
https://raw.githubusercontent.com/BitGameEN/bitgamex/151ba70a481615379f9648581a5d459b503abe19/src/lib/lib_mining.erl
erlang
-------------------------------------- @Module : lib_mining @Description: 挖矿相关处理 -------------------------------------- 挖矿逻辑 2018/4/30 0:0:0 UTC-0 有自己独立矿池的包 去重 因为power总值在持续增长,使用当前的power总值,不会超发 出于性能考虑,只计算人头数;同时出于降低实现复杂度,只考虑上次登录的是该游戏的玩家
-module(lib_mining). -export([distribute_game_delta_golds/2, distribute_login_delta_golds/4]). -export([get_rand_gold_type/2, get_gold_types/2]). -include("common.hrl"). -include("gameConfig.hrl"). -include("gameConfigGlobalKey.hrl"). -include("record.hrl"). -include("record_cfg_gold_type.hrl"). -include("rec...
7db340b9123139973260738ac4491c3bedacb75cc94cfa7cea820d81e9e6aadb
egison/egison
Parser.hs
| Module : Language . . Parser Licence : MIT This module provides the parser interface . Module : Language.Egison.Parser Licence : MIT This module provides the parser interface. -} module Language.Egison.Parser ( * readTopExprs , readTopExpr , readExprs...
null
https://raw.githubusercontent.com/egison/egison/df4e47f7c8adfe90d9bf408459772a6cb4e71b70/hs-src/Language/Egison/Parser.hs
haskell
* Parser utils (for translator) |Load a libary file |Load a file
| Module : Language . . Parser Licence : MIT This module provides the parser interface . Module : Language.Egison.Parser Licence : MIT This module provides the parser interface. -} module Language.Egison.Parser ( * readTopExprs , readTopExpr , readExprs...
3830bb68bfba8bc30afe3e9bb809feda65cf0531b5f92a98140299ee77327362
nklein/draw
package.lisp
(defpackage #:draw-pdf (:use :cl :draw-backend) (:export :pdf-renderer))
null
https://raw.githubusercontent.com/nklein/draw/2b7a51fa06c81a46dffc439a35b3b0ac18c94893/src/pdf/package.lisp
lisp
(defpackage #:draw-pdf (:use :cl :draw-backend) (:export :pdf-renderer))
16d8bd228608d882fdf861bfd82abcf37a87bfcf35e2f4004dc960a66dd590d5
abdulapopoola/SICPBook
Ex2.68.scm
#lang planet neil/sicp Needs code from 2.67 (define sample-message '(0 1 1 0 0 1 0 1 0 1 1 1 0)) (define (encode message tree) (if (null? message) '() (append (encode-symbol (car message) tree) (encode (cdr message) tree)))) (define (encode-symbol symbol tree) ...
null
https://raw.githubusercontent.com/abdulapopoola/SICPBook/c8a0228ebf66d9c1ddc5ef1fcc1d05d8684f090a/Chapter%202/2.3/Ex2.68.scm
scheme
#lang planet neil/sicp Needs code from 2.67 (define sample-message '(0 1 1 0 0 1 0 1 0 1 1 1 0)) (define (encode message tree) (if (null? message) '() (append (encode-symbol (car message) tree) (encode (cdr message) tree)))) (define (encode-symbol symbol tree) ...
2b8e0565798e588c66be32d2b4dacb4be2939adfd3ad913b4c06f441327bd3a1
HuwCampbell/grenade
Elu.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE TypeOperators #-} # LANGUAGE TypeFamilies # # LANGUAGE MultiParamTypeClasses # | Module : Grenade . Layers . Logit Description : Exponential linear unit layer Copyright : ( c ) , 2016 - 2017 License : BSD2 Stability : exp...
null
https://raw.githubusercontent.com/HuwCampbell/grenade/5206c95c423d9755e620f41576470a281ba59c89/src/Grenade/Layers/Elu.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE TypeOperators # | An exponential linear unit. A layer which can act between any shape of the same dimension, acting as a diode on every neuron individually.
# LANGUAGE TypeFamilies # # LANGUAGE MultiParamTypeClasses # | Module : Grenade . Layers . Logit Description : Exponential linear unit layer Copyright : ( c ) , 2016 - 2017 License : BSD2 Stability : experimental Module : Grenade.Layers.Logit Description : Exponential linea...
aacaf37b62187abfd0c8dd5d765a5ccd2cf273906463fd8add0be2cd520cbb4f
rd--/hsc3
rd-20060928.hs
f - lets ( rd . 2006 - 09 - 28 ) let f_let t g j n f = let pd = pulseDivider t j 0 in formlet pd (f * tiRand (mce2 2 1) n pd) (tRand 0.01 0.04 pd) (tRand 0.05 0.10 pd) * g mk_n t = sum [f_let t 0.15 2 9 (mce2 200 400) ,f_let t 0.25 2 9 (mce2 (200 + tRand 0 1 t) (400 + tRand 0 1 t)) ...
null
https://raw.githubusercontent.com/rd--/hsc3/fb2ae8fb1923515938b69481a8971cc6b6d7a258/Help/Graph/rd-20060928.hs
haskell
f - lets ( rd . 2006 - 09 - 28 ) let f_let t g j n f = let pd = pulseDivider t j 0 in formlet pd (f * tiRand (mce2 2 1) n pd) (tRand 0.01 0.04 pd) (tRand 0.05 0.10 pd) * g mk_n t = sum [f_let t 0.15 2 9 (mce2 200 400) ,f_let t 0.25 2 9 (mce2 (200 + tRand 0 1 t) (400 + tRand 0 1 t)) ...
183a13edf706642080bc0fb9da417a0c1c5c6679d74017ffd9a6fc6ff8185391
janestreet/core_kernel
weak_array.ml
open! Base module Weak = Stdlib.Weak type 'a t = 'a Heap_block.t Weak.t let create ~len = Weak.create len let length t = Weak.length t let set = Weak.set let set_exn t i x = set t i (Option.map x ~f:Heap_block.create_exn) let get = Weak.get let is_some t i = Weak.check t i let is_none t i = not (is_some t i) let t...
null
https://raw.githubusercontent.com/janestreet/core_kernel/597299d11c2ee99f219592d89a5890f8f0b6dfe7/weak_array/src/weak_array.ml
ocaml
open! Base module Weak = Stdlib.Weak type 'a t = 'a Heap_block.t Weak.t let create ~len = Weak.create len let length t = Weak.length t let set = Weak.set let set_exn t i x = set t i (Option.map x ~f:Heap_block.create_exn) let get = Weak.get let is_some t i = Weak.check t i let is_none t i = not (is_some t i) let t...
d357e5e8c681d239d4086b8e0d5ece6f045d56d165f1740d16a6c970f0369845
wlitwin/graphv
main.ml
open Tgles2 module Gv = Graphv_gles2 let _ = GLFW.init(); at_exit GLFW.terminate; GLFW.windowHint ~hint:GLFW.ClientApi ~value:GLFW.OpenGLESApi; GLFW.windowHint ~hint:GLFW.ContextVersionMajor ~value:2; GLFW.windowHint ~hint:GLFW.ContextVersionMinor ~value:0; let window = GLFW.createWi...
null
https://raw.githubusercontent.com/wlitwin/graphv/d0a09575c5ff5ee3727c222dd6130d22e4cf62d9/examples/native_doc/main.ml
ocaml
open Tgles2 module Gv = Graphv_gles2 let _ = GLFW.init(); at_exit GLFW.terminate; GLFW.windowHint ~hint:GLFW.ClientApi ~value:GLFW.OpenGLESApi; GLFW.windowHint ~hint:GLFW.ContextVersionMajor ~value:2; GLFW.windowHint ~hint:GLFW.ContextVersionMinor ~value:0; let window = GLFW.createWi...
4750374ed931ef2406d73b3af1a6aff4820d6100d4da075085527d20994436ca
robert-strandh/SICL
type-proclamations.lisp
(cl:in-package #:sicl-data-and-control-flow) (declaim (ftype (function (t) (member t nil)) not)) (declaim (ftype (function (t t) (member t nil)) eq eql equal)) (declaim (ftype (function (function sequence &rest sequence) t) every some notevery notany)) (declaim (ftype (function (&res...
null
https://raw.githubusercontent.com/robert-strandh/SICL/688cfdcf4dd2c6e0abd23204b5ef9a8f0714137c/Code/Data-and-control-flow/type-proclamations.lisp
lisp
(cl:in-package #:sicl-data-and-control-flow) (declaim (ftype (function (t) (member t nil)) not)) (declaim (ftype (function (t t) (member t nil)) eq eql equal)) (declaim (ftype (function (function sequence &rest sequence) t) every some notevery notany)) (declaim (ftype (function (&res...
058fcdf4c3fc5aadaafc2497b09381637ca8b7a401177a46ffa7e454ff2a805b
andy128k/cl-gobject-introspection
walking-through-maze.lisp
(in-package :maze-example) (defun event->key (ev) (let ((k (gir:field ev "keyval")) (state (gir:field ev "state")) (modifiers (list))) (dolist (mdef '((#b1 :shift) (#b100 :ctrl) (#b1000 :alt))) (destructuring-bind (int modifier) mdef ...
null
https://raw.githubusercontent.com/andy128k/cl-gobject-introspection/d0136c8d9ade2560123af1fc55bbf70d2e3db539/examples/maze/src/gui/walking-through-maze.lisp
lisp
'C-q' 'H' key
(in-package :maze-example) (defun event->key (ev) (let ((k (gir:field ev "keyval")) (state (gir:field ev "state")) (modifiers (list))) (dolist (mdef '((#b1 :shift) (#b100 :ctrl) (#b1000 :alt))) (destructuring-bind (int modifier) mdef ...
073a38f662e706df8d4cbd9f2ca6791d4fa5a241ba89315858d9be952b7c19e3
serokell/importify
Cache.hs
{-# LANGUAGE ExplicitForAll #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # # LANGUAGE ViewPatterns # | Contains implementation of . module Importify.Main.Cache ( importifyCacheList , importifyCacheProject ) where impo...
null
https://raw.githubusercontent.com/serokell/importify/09f31d851b2152ae6ce880b81abc3554ade29f37/src/Importify/Main/Cache.hs
haskell
# LANGUAGE ExplicitForAll # # LANGUAGE FlexibleContexts # | This function takes list of explicitly specified dependencies with versions and caches only them under @.importify@ folder inside current directory ignoring .cabal file for project. This function doesn't update mapping from module paths. | Caches ...
# LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # # LANGUAGE ViewPatterns # | Contains implementation of . module Importify.Main.Cache ( importifyCacheList , importifyCacheProject ) where import Universum import Data.Aeson.Encode.Pretty (...
29b53503bc096dab7b15b489402cee044dfb70a2d4280b161bde1e62c4d3329e
flavioc/cl-hurd
file-get-translator.lisp
(in-package :hurd) (defcfun ("file_get_translator" %file-get-translator) err (file port) (data :pointer) (data-len :pointer)) (defconstant +file-get-translator-initial-size+ 1024) (defun file-get-translator (file) "Returns the passive translator set in 'file'." (let* ((orig (foreign-alloc :char :count +...
null
https://raw.githubusercontent.com/flavioc/cl-hurd/982232f47d1a0ff4df5fde2edad03b9df871470a/hurd/fs/file-get-translator.lisp
lisp
(in-package :hurd) (defcfun ("file_get_translator" %file-get-translator) err (file port) (data :pointer) (data-len :pointer)) (defconstant +file-get-translator-initial-size+ 1024) (defun file-get-translator (file) "Returns the passive translator set in 'file'." (let* ((orig (foreign-alloc :char :count +...
1d10b7d7d1cf80b06d8f62aba6272c3adf342f3c561700aa9df7f7df76dce9c2
cpeikert/Lol
FiniteField.hs
| Module : Crypto . Lol . Types . FiniteField Description : Basic ( unoptimized ) finite field arithmetic . Copyright : ( c ) , 2011 - 2017 , 2011 - 2017 License : GPL-3 Maintainer : Stability : experimental Portability : POSIX \ ( \def\F{\mathbb{F } } \ ) ...
null
https://raw.githubusercontent.com/cpeikert/Lol/4416ac4f03b0bff08cb1115c72a45eed1fa48ec3/lol/Crypto/Lol/Types/FiniteField.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE RoleAnnotations # # LANGUAGE UndecidableInstances # export type but not constructor for specialization | A finite field of given degree over \(\F_p\). | Constraint syno...
| Module : Crypto . Lol . Types . FiniteField Description : Basic ( unoptimized ) finite field arithmetic . Copyright : ( c ) , 2011 - 2017 , 2011 - 2017 License : GPL-3 Maintainer : Stability : experimental Portability : POSIX \ ( \def\F{\mathbb{F } } \ ) ...
34e695d0e09be646fa0790dd15927b61bd7dfa4c8ab9e0f2ce1a644072d0db0a
mattmundell/nightshade
ts-buf.lisp
;;; Code for processing input to and output from slaves using typescript ;;; streams. It maintains the stuff that hacks on the typescript buffer ;;; and maintains its state. (in-package "ED") #[ Typescripts Both slave buffers and background buffers are typescripts. The typescript protocol allows other processes to...
null
https://raw.githubusercontent.com/mattmundell/nightshade/68e960eff95e007462f2613beabc6cac11e0dfa1/src/ed/ts-buf.lisp
lisp
Code for processing input to and output from slaves using typescript streams. It maintains the stuff that hacks on the typescript buffer and maintains its state. Structures. The buffer we are in Stream in the slave. Wire to slave Server info struct. Mark where output goes. This is actually the and we make...
(in-package "ED") #[ Typescripts Both slave buffers and background buffers are typescripts. The typescript protocol allows other processes to do stream-oriented interaction in a the editor buffer similar to that of a terminal. When there is a typescript in a buffer, the `Typescript' minor mode is present. Some of...
776ff348e74736d522502c5282c12d0ea002a26ecb4b3550891488dd83a1711a
jave/practicaldevops
handler.clj
(ns usermanager.test.handler (:require [clojure.test :refer :all] [ring.mock.request :refer :all] [usermanager.handler :refer :all])) (deftest test-app (testing "main route" (let [response (app (request :get "/"))] (is (= 200 (:status response))))) (testing "not-found route" ...
null
https://raw.githubusercontent.com/jave/practicaldevops/4c8f3bbee2d1ef37533107afc46863ceed385ef5/ch6/usermanager/test/usermanager/test/handler.clj
clojure
(ns usermanager.test.handler (:require [clojure.test :refer :all] [ring.mock.request :refer :all] [usermanager.handler :refer :all])) (deftest test-app (testing "main route" (let [response (app (request :get "/"))] (is (= 200 (:status response))))) (testing "not-found route" ...
4c1f835487ad78e0019e33c1e5f2f2fbb46a8b3ab404411159f4b70fd7a590bc
tnelson/Forge
main.rkt
#lang racket/base 2021 - 06 - 23 : DISABLED need to make a new cloud function to use this ! ;; Logging tools for check-ex-spec ;; - "register" logs a file snapshot - " flush " does two things : appends wheat / chaff results and posts logs (provide register-run ;; (-> exact-nonnegative-integer? (or/c string? ...
null
https://raw.githubusercontent.com/tnelson/Forge/1687cba0ebdb598c29c51845d43c98a459d0588f/forge/logging/check-ex-spec/main.rkt
racket
Logging tools for check-ex-spec - "register" logs a file snapshot (-> exact-nonnegative-integer? (or/c string? #f) (or/c string? #f) (or/c path-string? #f) void?) (-> exact-nonnegative-integer? any/c any/c void?) ----------------------------------------------------------------------------- maximum number of POST ...
#lang racket/base 2021 - 06 - 23 : DISABLED need to make a new cloud function to use this ! - " flush " does two things : appends wheat / chaff results and posts logs (provide register-run flush-logs ) (require basedir json net/uri-codec net/url racket/list (only-in racket/format ~s ~r) (only...
4c307dd76a25b82a88673056ff87d111b863af03e1f08ad452d88ae2e4f97d45
craigl64/clim-ccl
noting-progress.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Package : CLIM - INTERNALS ; Base : 10 ; Lowercase : Yes -*- ;; See the file LICENSE for the full license governing this code. ;; (in-package :clim-internals) " Copyright ( c ) 1991 , 1992 Symbolics , Inc. All rights reserved . " (defvar *progress-notes* ()) (de...
null
https://raw.githubusercontent.com/craigl64/clim-ccl/301efbd770745b429f2b00b4e8ca6624de9d9ea9/clim/noting-progress.lisp
lisp
Syntax : ANSI - Common - Lisp ; Package : CLIM - INTERNALS ; Base : 10 ; Lowercase : Yes -*- See the file LICENSE for the full license governing this code. Keep the flicker down as much as possible
(in-package :clim-internals) " Copyright ( c ) 1991 , 1992 Symbolics , Inc. All rights reserved . " (defvar *progress-notes* ()) (defvar *current-progress-note*) (defclass progress-note () ((name :accessor progress-note-name :initarg :name) (stream :initarg :stream) (frame :initarg :frame) ...
cf757edb6e84614cdeac6f6bf80b0d38f7c9911a69928cc435f0fc6ef74a0d5f
ElvishJerricco/fraxl
Free.hs
# LANGUAGE FlexibleInstances # # LANGUAGE GADTs # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE UndecidableInstances # module Control.Monad.Trans.Fraxl.Free ( -- * The base functor FreeF(..) -- * The free mo...
null
https://raw.githubusercontent.com/ElvishJerricco/fraxl/12b3be244686f9bf7c41c605cdd54c0f8559d03e/src/Control/Monad/Trans/Fraxl/Free.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE ScopedTypeVariables # * The base functor * The free monad transformer * The free monad * Operations * Operations of free monad * Free Monads With Class Commented here is the simplest definition of this version of the Free monad. It's a freer monad relying on Appli...
# LANGUAGE FlexibleInstances # # LANGUAGE GADTs # # LANGUAGE MultiParamTypeClasses # # LANGUAGE UndecidableInstances # module Control.Monad.Trans.Fraxl.Free ( FreeF(..) , FreeT(..) , Free , liftF , iterT , iterTM , hoistFreeT , transFreeT , joinFreeT , retractT , retra...
f32d3e7cafbc9921a5093b6d6d3f056870cbf2f78dc86cfd5dc0feb4476f1bb6
PrecursorApp/precursor
repl.clj
(ns pc.repl "Utility functions to make repl access more convenient. Also serves as a guide for how nses should be aliased" (:require [cemerick.url :as url] [cheshire.core :as json] [clj-http.client :as http] [clj-time.core :as time] [clojure.core.async :as async] ...
null
https://raw.githubusercontent.com/PrecursorApp/precursor/30202e40365f6883c4767e423d6299f0d13dc528/src/pc/repl.clj
clojure
(ns pc.repl "Utility functions to make repl access more convenient. Also serves as a guide for how nses should be aliased" (:require [cemerick.url :as url] [cheshire.core :as json] [clj-http.client :as http] [clj-time.core :as time] [clojure.core.async :as async] ...
f2cf3ae58dc03219f872a14d79a88c712f826b86677b4dddbfcab98de59d2107
2049foundation/clickhouse-haskell
Main.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE BangPatterns #-} module Main where import Database.ClickHouseDriver ( ConnParams(password'), createClient, query, closeClient) import Database.ClickHouseDriver.Column (printInformat) import Data.Default.Class (def) import Data.ByteString hiding (putStrLn, readFile, ...
null
https://raw.githubusercontent.com/2049foundation/clickhouse-haskell/065e2637af7d1588eec73a603265d1b09c2e769b/benchmark/Main.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE BangPatterns #
module Main where import Database.ClickHouseDriver ( ConnParams(password'), createClient, query, closeClient) import Database.ClickHouseDriver.Column (printInformat) import Data.Default.Class (def) import Data.ByteString hiding (putStrLn, readFile, map, filter) import Data.Time ( diffUTCTime, getCurrentTime ) da...
f92bcc3ea224251eaca38356d5c113a1a6fd1fcafac5eb4039316e1b101c12bf
jserot/lascar
filenameExt.mli
(**********************************************************************) (* *) LASCAr (* *) Copyright ( c ) 2017 - prese...
null
https://raw.githubusercontent.com/jserot/lascar/79bd11cd0d47545bccfc3a3571f37af065915c83/src/utils/filenameExt.mli
ocaml
******************************************************************** This source code is licensed under the lic...
LASCAr Copyright ( c ) 2017 - present , . All rights reserved . val split_suffix: string -> string * string val add_before_suffix: string -> string -> string * if [ split_suffix fname ] gives [ ( base , suff ) ] , [ add_before_suffix s ] return...
1101eba238b55bdb87e2320efc3192be9a553307deb66df3507c30560c5023a9
rtoy/cmucl
hppa-vm.lisp
;;; -*- Package: HPPA -*- ;;; ;;; ********************************************************************** This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . ;;; (ext:file-comment "$Header: src/code/hppa-vm.lisp $") ;;; ;;; *******...
null
https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/code/hppa-vm.lisp
lisp
-*- Package: HPPA -*- ********************************************************************** ********************************************************************** This file contains the HPPA specific runtime stuff. union here the rest of this structure left out (since save-state not complete?) Add machine ...
This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . (ext:file-comment "$Header: src/code/hppa-vm.lisp $") (in-package "HPPA") (use-package "SYSTEM") (use-package "ALIEN") (use-package "C-CALL") (intl:textdomain "cmucl") (export ...
465777983483951f0f436accba21c727ff7d8d514fac13d2b0d15fc4cf22feac
Stratus3D/eflambe
eflambe_brendan_gregg.erl
%%%------------------------------------------------------------------- %%% @doc Writes trace data to file formatted as collapsed stack %%% format. %%% %%% See %%% %%% This file was heavily inspired by %%% %%% @end %%%------------------------------------------------------------------- -module(eflambe_brendan_greg...
null
https://raw.githubusercontent.com/Stratus3D/eflambe/d276ab63986ceed418724a958e4688f77d8c3bb9/src/eflambe_brendan_gregg.erl
erlang
------------------------------------------------------------------- @doc format. See This file was heavily inspired by @end ------------------------------------------------------------------- -------------------------------------------------------------------- @doc This callback exists so the implementation...
Writes trace data to file formatted as collapsed stack -module(eflambe_brendan_gregg). -behaviour(eflambe_output_formatter). -export([extension/0, init/1, handle_trace_event/2, finalize/2]). -record(state, { options :: eflambe:options(), stack = [] :: list(), accumulator = [] :: li...
07be349709461d3298758f811989fe6774395fad2a47ef525bdb711fd0f5f168
S8A/htdp-exercises
ex399.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex399) (read-case-sensitive #t) (teachpacks ((lib "abstraction.rkt" "teachpack" "2htdp")))...
null
https://raw.githubusercontent.com/S8A/htdp-exercises/578e49834a9513f29ef81b7589b28081c5e0b69f/ex399.rkt
racket
about the language level of this file in a form that our tools can easily process. [List-of String] -> [List-of String] picks a random non-identity arrangement of names [List-of X] -> [List-of [List-of X]] creates a list of all rearrangements of the items in w returns a random item from the list [List-of Strin...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex399) (read-case-sensitive #t) (teachpacks ((lib "abstraction.rkt" "teachpack" "2htdp"))) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ((lib "abstraction.rk...
5aec750e4046db669a58283fc6a8ab458ed4bea974b484c0df28c74f68c93893
JohnnyJayJay/poker
util.clj
(ns poker.discord.util (:require [discljord.messaging :as dr] [poker.discord.state :refer [rest-conn]])) (defn respond-interaction [id token {:keys [type data]}] (dr/create-interaction-response! rest-conn id token type :data data))
null
https://raw.githubusercontent.com/JohnnyJayJay/poker/ec8dea05db30fcad9dafe22d642736fb6ee273ed/src/poker/discord/util.clj
clojure
(ns poker.discord.util (:require [discljord.messaging :as dr] [poker.discord.state :refer [rest-conn]])) (defn respond-interaction [id token {:keys [type data]}] (dr/create-interaction-response! rest-conn id token type :data data))
23acda57c751b0222d068bbcbcb66b701a80024478f59bb95dcbd73cfa9da0b2
ocaml-multicore/ocaml-effects-tutorial
input_line_exn.ml
let rec sum_up acc = let l = input_line stdin in acc := !acc + int_of_string l; sum_up acc let _ = let r = ref 0 in try sum_up r with | End_of_file -> Printf.printf "Sum is %d\n" !r
null
https://raw.githubusercontent.com/ocaml-multicore/ocaml-effects-tutorial/998376931b7fdaed5d54cb96b39b301b993ba995/sources/input_line_exn.ml
ocaml
let rec sum_up acc = let l = input_line stdin in acc := !acc + int_of_string l; sum_up acc let _ = let r = ref 0 in try sum_up r with | End_of_file -> Printf.printf "Sum is %d\n" !r
2a72c3b5aa575f72e3b14c7de7187876b63d634d4a4c808ad8869cb9b750d3cd
eggsyntax/reconstructorepl
core.clj
(ns reconstructorepl.core (:require [clojure.main :as main])) " Notes to self: * TODO refactor so that method of storing data (repl or metadata) is separate from decision where to store the defining forms. Move REPL code into separate namespace. * Is there a form keyword? If not, could write one. Like source, b...
null
https://raw.githubusercontent.com/eggsyntax/reconstructorepl/aadea5b0b24cb8fb5cf5210664932bbec22f05e0/src/reconstructorepl/core.clj
clojure
if it doesn't we return the symbol as entered. Maybe when you redefine a var in the repl, it's usually because you're Set a dynamic var to control whether forms are pulled from metadata or from a registry by 'hx' I mean 'history' for pasting into saving-repl require :reqr Locally defined: Not locally de...
(ns reconstructorepl.core (:require [clojure.main :as main])) " Notes to self: * TODO refactor so that method of storing data (repl or metadata) is separate from decision where to store the defining forms. Move REPL code into separate namespace. * Is there a form keyword? If not, could write one. Like source, b...
4365521c4772b9e5832bc5617eba29eadaf03df70bd6b5375279d7f79fc8f0cd
lisp/de.setf.utility
package.lisp
;;; -*- Package: common-lisp-user; -*- (in-package :common-lisp-user) ;;; This file extends the package definition for 'de.setf.utility' Common Lisp library to incorporate CLOS - MOP symbols from various runtimes and re - export them for basic MOP ;;; operations. ;;; Copyright 2003,2009,2010 [ ) All Rights ...
null
https://raw.githubusercontent.com/lisp/de.setf.utility/782cd79d99ebf40deeed60c492be9873bbe42a15/clos/package.lisp
lisp
-*- Package: common-lisp-user; -*- This file extends the package definition for 'de.setf.utility' Common Lisp library operations. 'de.setf.utility' is free software: you can redistribute it and/or modify 'de.setf.utility' is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without ...
(in-package :common-lisp-user) to incorporate CLOS - MOP symbols from various runtimes and re - export them for basic MOP Copyright 2003,2009,2010 [ ) All Rights Reserved it under the terms of version 3 of the GNU Lesser General Public License as published by the Free Software Foundation . A copy of ...
3d4cdea4feddc1502f261ec0a9f56fbf181ae3c5b5947dda770467081b104703
bondy-io/bondy
bondy_retained_message_manager.erl
%% ----------------------------------------------------------------------------- %% @doc Implements Eviction amogst other things %% @end %% ----------------------------------------------------------------------------- -module(bondy_retained_message_manager). -behaviour(gen_server). -include_lib("kernel/include/logger.h...
null
https://raw.githubusercontent.com/bondy-io/bondy/a1267e7e5526db24f278e12315020753f3168b44/apps/bondy/src/bondy_retained_message_manager.erl
erlang
----------------------------------------------------------------------------- @doc Implements Eviction amogst other things @end ----------------------------------------------------------------------------- ============================================================================= API =========================...
-module(bondy_retained_message_manager). -behaviour(gen_server). -include_lib("kernel/include/logger.hrl"). -include_lib("wamp/include/wamp.hrl"). -record(state, { }). -export([counters/1]). -export([incr_counters/3]). -export([decr_counters/3]). -export([default_ttl/0]). -export([get/2]). -export([match/1]). -expo...
81eaff0f1a144f6e81d8c5adf73debe65658e9e8062af91ab58d6d4e717e1773
zjhmale/Ntha
TypeScope.hs
module Ntha.Type.TypeScope where import Ntha.Core.Ast import Ntha.Type.Type import Prelude hiding (lookup) import qualified Data.Map as M type TypeEnv = M.Map EName Type type ParentScope = TypeScope data TypeScope = TypeScope (Maybe ParentScope) TypeEnv createEmptyScope :...
null
https://raw.githubusercontent.com/zjhmale/Ntha/dc47fafddf67cf821c90c5cd72566de67d996238/src/Ntha/Type/TypeScope.hs
haskell
create a child type scope of current parent type scope
module Ntha.Type.TypeScope where import Ntha.Core.Ast import Ntha.Type.Type import Prelude hiding (lookup) import qualified Data.Map as M type TypeEnv = M.Map EName Type type ParentScope = TypeScope data TypeScope = TypeScope (Maybe ParentScope) TypeEnv createEmptyScope :...
fa1f75c10717d305b22228d27fddeb6bd4d3f5694518fbb677a6de86e096db46
ghcjs/domconv-webkit
domconv-webkit-jsffi.hs
# LANGUAGE QuasiQuotes # {-# LANGUAGE MultiWayIf #-} # LANGUAGE LambdaCase # # LANGUAGE TupleSections # {-# LANGUAGE OverloadedStrings #-} DOM interface converter : a tool to convert Haskell files produced by H / Direct into properly structured DOM wrapper module Main where import Prelude import System.Directory ...
null
https://raw.githubusercontent.com/ghcjs/domconv-webkit/df2b83c6aa9ec4e99a018dfdbcad77fc0d95be06/domconv-webkit-jsffi.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # ("-DLANGUAGE_GOBJECT=1":args) this will be the default namespace unless a pragma namespace is used. Write a module surrounded by split begin/end comments maybeNull = () makeNewGObject = () mkEventTarget = castRef gaurdFromJSValUnchecked " fromJSValU...
# LANGUAGE QuasiQuotes # # LANGUAGE LambdaCase # # LANGUAGE TupleSections # DOM interface converter : a tool to convert Haskell files produced by H / Direct into properly structured DOM wrapper module Main where import Prelude import System.Directory import System.Environment import System.FilePath import System....
d3e9840357bd4fe8f46dfd46542520dfd99990639bd1a4e7618692dfafc88f9d
well-typed-lightbulbs/ocaml-esp32
syserror.ml
TEST flags = " -w a " * setup - ocamlc.byte - build - env * * ocamlc.byte * * * run exit_status = " 2 " * * * * libunix * * * * * check - program - output reference = " $ { test_source_directory}/syserror.unix.reference " * * * * * * * * * check - program - output reference = " $ { test_sourc...
null
https://raw.githubusercontent.com/well-typed-lightbulbs/ocaml-esp32/c24fcbfbee0e3aa6bb71c9b467c60c6bac326cc7/testsuite/tests/runtime-errors/syserror.ml
ocaml
TEST flags = " -w a " * setup - ocamlc.byte - build - env * * ocamlc.byte * * * run exit_status = " 2 " * * * * libunix * * * * * check - program - output reference = " $ { test_source_directory}/syserror.unix.reference " * * * * * * * * * check - program - output reference = " $ { test_sourc...
a6eec2f2af00cb85e0b3b1729588ed52a6527147ca7c1e3e7ad5ec65cb6deaed
samply/blaze
terminology_service_spec.clj
(ns blaze.terminology-service-spec (:require [blaze.async.comp :as ac] [blaze.terminology-service :as terminology-service :refer [terminology-service?]] [clojure.spec.alpha :as s])) (s/def ::url string?) (s/def ::valueSetVersion string?) (s/def ::filter string?) (def expand-value-set-params ...
null
https://raw.githubusercontent.com/samply/blaze/281ca0f35c845ed6e7b7f37fe2d4b9a060b065ca/modules/terminology-service/src/blaze/terminology_service_spec.clj
clojure
(ns blaze.terminology-service-spec (:require [blaze.async.comp :as ac] [blaze.terminology-service :as terminology-service :refer [terminology-service?]] [clojure.spec.alpha :as s])) (s/def ::url string?) (s/def ::valueSetVersion string?) (s/def ::filter string?) (def expand-value-set-params ...
dd0053d3e370f47d898773962c11905aa32809fd29264616683f9a8717b82247
jaspervdj/haskell-irc
User.hs
{-# LANGUAGE OverloadedStrings #-} module User ( User (..) ) where import Control.Applicative ((<$>), (<*>)) import Control.Monad (mzero) import Data.Aeson (FromJSON (..), ToJSON (..), (.:), (.=)) import Data.ByteString (ByteString) import qualified Data.Aeson as A data User = User { userServer :: Byte...
null
https://raw.githubusercontent.com/jaspervdj/haskell-irc/ae5ea92b9360de05983abe67da9784914008471c/src/User.hs
haskell
# LANGUAGE OverloadedStrings #
module User ( User (..) ) where import Control.Applicative ((<$>), (<*>)) import Control.Monad (mzero) import Data.Aeson (FromJSON (..), ToJSON (..), (.:), (.=)) import Data.ByteString (ByteString) import qualified Data.Aeson as A data User = User { userServer :: ByteString , userPort :: Int ...
b29601ebaa1c3cb32b2d372bb636973a9d58dd6e0eb9d19101632bca1522213e
unclebob/AdventOfCode2022
project.clj
(defproject day1 "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :main day1.core :dependencies [[org.clojure/clojure "1.8.0"]] :profiles {:dev {:dependencies [[speclj "3.3.2"]]}} :plugins [[speclj "3.3.2"]] :test-pat...
null
https://raw.githubusercontent.com/unclebob/AdventOfCode2022/ede84764972b1b11ed5668ebbff8b4a269945e66/day1/project.clj
clojure
(defproject day1 "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :main day1.core :dependencies [[org.clojure/clojure "1.8.0"]] :profiles {:dev {:dependencies [[speclj "3.3.2"]]}} :plugins [[speclj "3.3.2"]] :test-pat...
dc8eac68b148047516017d2b72d7c8a45080c8aee418de68b39e270e8a7b6ba9
ulyssesdotcodes/oscillare
Visuals.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE ViewPatterns # # LANGUAGE TupleSections # module Visuals where import Prelude hiding (floor, mod, lines) import LambdaDesigner.Op import LambdaDesigner.ParsedOps import LambdaDesigner.Lib import Data.Char import Data.IORef import Data.List.Split import Data.Maybe import ...
null
https://raw.githubusercontent.com/ulyssesdotcodes/oscillare/b764ae4352c85f00131b5c585fb8774b6d3cb0d8/src/Visuals.hs
haskell
# LANGUAGE OverloadedStrings # Utility Audio input $ switchT (float (-1) !+ (chan0f $ hold buttons buttons)) ] ------------------- sphereNoise = geo' id $ outS asphere metaballs mat = let wrapJust n x = Just $ chan0f x !* float n noiset m = noiseC' ((chopTimeSlice ?~ bool True)...
# LANGUAGE ViewPatterns # # LANGUAGE TupleSections # module Visuals where import Prelude hiding (floor, mod, lines) import LambdaDesigner.Op import LambdaDesigner.ParsedOps import LambdaDesigner.Lib import Data.Char import Data.IORef import Data.List.Split import Data.Maybe import Debug.Trace import Control.Lens im...
0ceb4d4d98c0e775e83e371e8c6d1858747769b594dc3a36f25e89056c3b52f5
svdm/ClojureGP
test_config.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 t...
null
https://raw.githubusercontent.com/svdm/ClojureGP/266e501411b37297bdeb082913df63ececa8515c/test/cljgp/test_config.clj
clojure
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 this notice, or any other, from this software. Trying to be exhaustive with these t...
Copyright ( c ) . All rights reserved . The use and distribution terms for this software are covered by the Eclipse (ns test.cljgp.test-config (:use clojure.test test.helpers cljgp.config cljgp.util cljgp.core)) (deftest test-prim (let [m {:foo 27723 :bar true...
f4a1777642303c2d271d2b9a75e62e90603c721d02da3d71532855d8eaf8d99d
uwiger/parse_trans
lc.erl
-module(lc). -export([f/1]). f(_X) -> [fun(_) -> erlang:timestamp() end || {_Y1,_Y2} <- [{1,a},{2,b}]].
null
https://raw.githubusercontent.com/uwiger/parse_trans/56f5c6cad48eaca8e0b2626e0df3587e6bf2da6e/examples/lc.erl
erlang
-module(lc). -export([f/1]). f(_X) -> [fun(_) -> erlang:timestamp() end || {_Y1,_Y2} <- [{1,a},{2,b}]].