_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
e9f62aef57f61436efd96d88ac70de343316b99942a6d6db8a1515c190ba3a50
NorfairKing/intray
Server.hs
# LANGUAGE RecordWildCards # module Intray.Web.Server ( intrayWebServer, ) where import Control.Monad.Logger import qualified Data.Text as T import Database.Persist.Sqlite import Import import Intray.Web.Server.Application () import Intray.Web.Server.Foundation import Intray.Web.Server.OptParse import qualified N...
null
https://raw.githubusercontent.com/NorfairKing/intray/0f272c63ff44fc7869964ca22f6195b855810543/intray-web-server/src/Intray/Web/Server.hs
haskell
# LANGUAGE RecordWildCards # module Intray.Web.Server ( intrayWebServer, ) where import Control.Monad.Logger import qualified Data.Text as T import Database.Persist.Sqlite import Import import Intray.Web.Server.Application () import Intray.Web.Server.Foundation import Intray.Web.Server.OptParse import qualified N...
4cf258f43a7ecb2d3d52ca684aa02f6261758e037bd030839c2c6d4b1309e700
litxio/ptghci
Config.hs
# LANGUAGE TemplateHaskell # module Language.Haskell.PtGhci.Config where import Language.Haskell.PtGhci.Prelude import Lens.Micro.TH import Text.Printf import Data.Aeson import System.Directory import System.FilePath import Data.Yaml (decodeFileEither, prettyPrintParseException) import qualified Data.Aeson.Types ...
null
https://raw.githubusercontent.com/litxio/ptghci/bbb3c5fdf2e73a557864b6b1e26833fffb34fc84/src/Language/Haskell/PtGhci/Config.hs
haskell
# LANGUAGE TemplateHaskell # module Language.Haskell.PtGhci.Config where import Language.Haskell.PtGhci.Prelude import Lens.Micro.TH import Text.Printf import Data.Aeson import System.Directory import System.FilePath import Data.Yaml (decodeFileEither, prettyPrintParseException) import qualified Data.Aeson.Types ...
efeec21e41cde02c8ee28f6bf55db358d46aca2acc27b3181f05e6f7ec73a65f
dvdt/xvsy
core.clj
(ns xvsy.core (:require [clojure.tools.logging :as log] [clojure.data.json] [ring.util.codec] [clojure.algo.generic.functor :refer [fmap]]) (:require (xvsy [geom :as geom] [ggsql :as ggsql] [macros :as macros] [scale :as s...
null
https://raw.githubusercontent.com/dvdt/xvsy/ff29b96affc6723bb9c66da1011f31900af679dd/src/clj/xvsy/core.clj
clojure
Public TODO: this only works for big query. Fix to be able to use postgres?
(ns xvsy.core (:require [clojure.tools.logging :as log] [clojure.data.json] [ring.util.codec] [clojure.algo.generic.functor :refer [fmap]]) (:require (xvsy [geom :as geom] [ggsql :as ggsql] [macros :as macros] [scale :as s...
f433f8793881ff7f0d36bbd67fb39b9643b6f34868d2f0d228158dd05daa15a1
expipiplus1/vulkan
PipelineDepthStencilStateCreateFlagBits.hs
{-# language CPP #-} No documentation found for Chapter " PipelineDepthStencilStateCreateFlagBits " module Vulkan.Core10.Enums.PipelineDepthStencilStateCreateFlagBits ( PipelineDepthStencilStateCreateFlags , PipelineDepthStencilStateCreateFlagBits( ...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/70d8cca16893f8de76c0eb89e79e73f5a455db76/src/Vulkan/Core10/Enums/PipelineDepthStencilStateCreateFlagBits.hs
haskell
# language CPP # = See Also <-extensions/html/vkspec.html#VK_EXT_rasterization_order_attachment_access VK_EXT_rasterization_order_attachment_access>, 'PipelineDepthStencilStateCreateFlags' | 'PIPELINE_DEPTH_STENCIL_STATE_CREATE_RASTERIZATION_ORDER_ATTACHMENT_STENCIL_ACCESS_BIT_EXT' indicates that access to the s...
No documentation found for Chapter " PipelineDepthStencilStateCreateFlagBits " module Vulkan.Core10.Enums.PipelineDepthStencilStateCreateFlagBits ( PipelineDepthStencilStateCreateFlags , PipelineDepthStencilStateCreateFlagBits( PIPELINE_DEPTH_STENCI...
bddff57e4c748cc5e75227cba32f10c934dc3251fa37758fba58fc6dc379503f
planetfederal/signal
input.clj
Copyright 2016 - 2018 Boundless , ;; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; -2.0 ;; ;; Unless required by applicable law or agreed to in writing, software distribute...
null
https://raw.githubusercontent.com/planetfederal/signal/e3eae56c753f0a56614ba8522278057ab2358c96/src/signal/components/http/input.clj
clojure
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permiss...
Copyright 2016 - 2018 Boundless , distributed under the License is distributed on an " AS IS " BASIS , (ns signal.components.http.input (:require [signal.components.http.intercept :as intercept] [signal.components.http.response :as response] [signal.components.input-manager :as input-man...
3de9189e7d7a12c794e421a6af4de5720e5dfffa400389ae1eb7191df9591081
richardharrington/robotwar
register_test.clj
(ns robotwar.register-test (:use [clojure.test] [midje.sweet] [robotwar.register]) (:require [robotwar.world :as world])) (def world (world/init-world [""])) (def robot-path [:robots 0]) (def reg-path [:robots 0 :brain :registers]) (def registers (get-in world reg-path)) (def get-registers #(get-in...
null
https://raw.githubusercontent.com/richardharrington/robotwar/7f826649dd1a141fdacebb30d843773ceb5fee1f/test/robotwar/register_test.clj
clojure
(ns robotwar.register-test (:use [clojure.test] [midje.sweet] [robotwar.register]) (:require [robotwar.world :as world])) (def world (world/init-world [""])) (def robot-path [:robots 0]) (def reg-path [:robots 0 :brain :registers]) (def registers (get-in world reg-path)) (def get-registers #(get-in...
4ecc6927d98e2a3713a5d32b2be8ba636900f8b5c974c6a3e148a479d48e8ed3
billstclair/trubanc-lisp
tests.lisp
(in-package :cl-user) (defpackage :alexandria-tests (:use :cl :alexandria #+sbcl :sb-rt #-sbcl :rtest) (:import-from #+sbcl :sb-rt #-sbcl :rtest #:*compile-tests* #:*expected-failures*)) (in-package :alexandria-tests) (defun run-tests (&key ((:compiled *compile-tests))) (do-tests)) ;;;; Arrays...
null
https://raw.githubusercontent.com/billstclair/trubanc-lisp/5436d2eca5b1ed10bc47eec7080f6cb90f98ca65/systems/alexandria/tests.lisp
lisp
Arrays Conditions Control flow Definitions Errors in this case. Hash tables See <>. outer list was copied. inner vector wasn't copied. Functions Lists Numbers uh Arrays Sequences test the compiler macro Symbols Type-system Bindings
(in-package :cl-user) (defpackage :alexandria-tests (:use :cl :alexandria #+sbcl :sb-rt #-sbcl :rtest) (:import-from #+sbcl :sb-rt #-sbcl :rtest #:*compile-tests* #:*expected-failures*)) (in-package :alexandria-tests) (defun run-tests (&key ((:compiled *compile-tests))) (do-tests)) (deftest c...
ef331fa996129590cdeb9d4d2f0d247122ef81f6e9f80643514040861cf8a10c
ocaml-multicore/multicoretests
lin_tests.ml
open QCheck open Lin.Internal [@@alert "-internal"] module Spec = struct type t = int Queue.t let m = Mutex.create () type cmd = | Add of int' | Take | Take_opt | Peek | Peek_opt | Clear | Is_empty | Fold of fct * int' | Length [@@deriving qcheck, sh...
null
https://raw.githubusercontent.com/ocaml-multicore/multicoretests/3e0f2ceb72eaf334e97252140ae5d40bf6461b96/src/queue/lin_tests.ml
ocaml
open QCheck open Lin.Internal [@@alert "-internal"] module Spec = struct type t = int Queue.t let m = Mutex.create () type cmd = | Add of int' | Take | Take_opt | Peek | Peek_opt | Clear | Is_empty | Fold of fct * int' | Length [@@deriving qcheck, sh...
cac23b4f4f64a649a38def82234995831082e4bf1ed141ccc700da8b0eccde30
minikN/dots
packages.scm
(define-module (config packages) #:use-module ((guix licenses) #:prefix license:) #:use-module (gnu build chromium-extension) #:use-module (gnu packages autotools) #:use-module (gnu packages base) #:use-module (gnu packages curl) #:use-module (gnu packages gl) #:use-module (gnu packages gnome) #:use-mo...
null
https://raw.githubusercontent.com/minikN/dots/c303bbd6fd5a355dc013904f588d5646ca56cf1a/config/packages.scm
scheme
#:use-module (gnu packages gcc) #:use-module (gnu packages llvm) #:use-module (guix build-system linux-module) #:use-module (nonguix build-system binary) No need to export scripts to PATH. (define-public evdi (package (name "evdi") (version "1.12.0") (source (origin (method git-fet...
(define-module (config packages) #:use-module ((guix licenses) #:prefix license:) #:use-module (gnu build chromium-extension) #:use-module (gnu packages autotools) #:use-module (gnu packages base) #:use-module (gnu packages curl) #:use-module (gnu packages gl) #:use-module (gnu packages gnome) #:use-mo...
6dc0f3d84ca771d0872108e674f477eae8299c14d339ff163f89801babd43938
kumarshantanu/lein-sub
core_test.clj
(ns child.core-test (:use clojure.test child.core)) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
null
https://raw.githubusercontent.com/kumarshantanu/lein-sub/4ddbb83359b2f9b6435ffd5b9c012b81e28de1ac/subtest/child/test/child/core_test.clj
clojure
(ns child.core-test (:use clojure.test child.core)) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
aeaaf817999eda4fc082241bb213d0c99a2acca6a2bef1f989a39ab18a9784b5
music-suite/music-suite
Score.hs
# LANGUAGE NoMonomorphismRestriction # module Main where import Music.Prelude hiding (snareDrum) import Util {- Encoding of standard popular-music rhythms Sources: -lessons/live-lessons-archive/7-essential-drum-beats/ etc. -} music = fmap toNote basic1 -- TODO proper percussion support openHiHat = d' closeHiHat...
null
https://raw.githubusercontent.com/music-suite/music-suite/7f01fd62334c66418043b7a2d662af127f98685d/examples/pieces/PopRhythms/Score.hs
haskell
Encoding of standard popular-music rhythms Sources: -lessons/live-lessons-archive/7-essential-drum-beats/ etc. TODO proper percussion support
# LANGUAGE NoMonomorphismRestriction # module Main where import Music.Prelude hiding (snareDrum) import Util music = fmap toNote basic1 openHiHat = d' closeHiHat = d hiHat = g' bassDrum = f snareDrum = c' basic1 = toPattern [ "xxxxxxxx" , "b s b s " ] basic1WithOpenClose = toPattern [ "+o+o+o+o" , "xxxxxxxx...
e36b46ca3bf3d3b49609d96d2ca194d95922e26ed74ae112cef94f39c3100eb7
xmonad/xmonad-contrib
IM.hs
# LANGUAGE FlexibleInstances , MultiParamTypeClasses , FlexibleContexts # ----------------------------------------------------------------------------- -- | -- Module : XMonad.Layout.IM Description : Layout modfier for multi - windowed instant messengers like Psi or Tkabber . Copyright : ( c ) , ...
null
https://raw.githubusercontent.com/xmonad/xmonad-contrib/e406e27139a14b3f06dc6d3e5ba2886376ee7a41/XMonad/Layout/IM.hs
haskell
--------------------------------------------------------------------------- | Module : XMonad.Layout.IM License : BSD-style (see LICENSE) Maintainer : Roman Cheplyaka <> Stability : unstable Portability : unportable (like Psi or Tkabber). ------------------------------------------------------...
# LANGUAGE FlexibleInstances , MultiParamTypeClasses , FlexibleContexts # Description : Layout modfier for multi - windowed instant messengers like Psi or Tkabber . Copyright : ( c ) , < > Layout modfier suitable for workspace with multi - windowed instant messenger module XMonad.Layout.IM ( $ ...
210d3bd4de063022b7fb356484f1eb54f0da736c1d6e8de578b4c91eac293ab4
clj-kafka/franzy
schema.clj
(ns franzy.common.schema "Basic schemas for validating Kafka configs, types, functions, etc." (:require [schema.core :as s])) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Basic validations - many of these can probably be replaced by thi...
null
https://raw.githubusercontent.com/clj-kafka/franzy/6c2e2e65ad137d2bcbc04ff6e671f97ea8c0e380/common/src/franzy/common/schema.clj
clojure
Basic validations - many of these can probably be replaced by things inside Schema...ongoing struggle Moreover, we also would like a friendly message why, rather than from the compiler or further down in a stack trace. Likewise, we want to ensure when a schema is checked that we know a value is out of range, espec...
(ns franzy.common.schema "Basic schemas for validating Kafka configs, types, functions, etc." (:require [schema.core :as s])) (def Function "Schema for a target that must be a function." (s/pred fn? 'fn?)) (def AnyButNil "Schema for a value that can be anything but nil." (s/pred some? 'not-nil?)) (def No...
043283d816d37a44499fbab7748bd0b44aaaded9f66a0ef75a9d4ac57e416508
DSiSc/why3
printer.mli
(********************************************************************) (* *) The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University (* ...
null
https://raw.githubusercontent.com/DSiSc/why3/8ba9c2287224b53075adc51544bc377bc8ea5c75/src/core/printer.mli
ocaml
****************************************************************** This software is distributed under the terms of the GNU Lesser on linking described in file LICENSE. ...
The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University General Public License version 2.1 , with the special exception open Wstdlib open Ident open Ty open Term open Decl open Theory open Task type prelude = string list typ...
1832bb0e27bc7877eb0124bcbd679c5ec54d24c5a94e9ec3a868bef94d6f33ec
Nutr1t07/wl-bot
Unity.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} module Core.Web.Unity where import Control.Exception import Control.Lens import Core.Data.Mirai as Q import Core.Data.Telegram as T import Core.Type.Unity.Request as U ...
null
https://raw.githubusercontent.com/Nutr1t07/wl-bot/985e27caf2d492c32e5e73b64f0bc5f718e72c76/src/Core/Web/Unity.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes #
module Core.Web.Unity where import Control.Exception import Control.Lens import Core.Data.Mirai as Q import Core.Data.Telegram as T import Core.Type.Unity.Request as U import Core.Web.Mirai as Q import C...
8d1dd9ec487cfe6fa9f61bce3efb85d0dab8410d6392718918356b70aa9a717e
2600hz/kazoo
kzd_auth_module_config.erl
%%%----------------------------------------------------------------------------- ( C ) 2010 - 2020 , 2600Hz %%% @doc 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 /. %%% %%% @end %%%--------...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_documents/src/kzd_auth_module_config.erl
erlang
----------------------------------------------------------------------------- @doc @end -----------------------------------------------------------------------------
( C ) 2010 - 2020 , 2600Hz 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 /. -module(kzd_auth_module_config). -export([new/0]). -export([enabled/1, enabled/2, set_enabled/2]). -export([log_f...
4350075e95d026731c00143cc564e998e764e50f68d463c55d5db8c5f9022ebc
vimus/libmpd-haskell
Status.hs
# LANGUAGE OverloadedStrings , TupleSections # | Module : Network . MPD.Applicative . Status Copyright : ( c ) Joachim Fasting 2012 License : MIT Maintainer : Stability : stable Portability : unportable Querying MPD 's status . Module : Network.MPD.Applicative.Status Copyri...
null
https://raw.githubusercontent.com/vimus/libmpd-haskell/1ec02deba33ce2a16012d8f0954e648eb4b5c485/src/Network/MPD/Applicative/Status.hs
haskell
| Clear current error message in status. | Song metadata for currently playing song, if any. subsystems. When active, only 'noidle' commands are allowed. | Cancel an 'idle' request. | Get database statistics. | Get the current status of the player. Builds a 'Status' instance from an assoc. list. errors. A vol...
# LANGUAGE OverloadedStrings , TupleSections # | Module : Network . MPD.Applicative . Status Copyright : ( c ) Joachim Fasting 2012 License : MIT Maintainer : Stability : stable Portability : unportable Querying MPD 's status . Module : Network.MPD.Applicative.Status Copyri...
2c00275a80dba50cc710990e534aeeaed04c341039389dfb968136f46b78f7c2
ChicagoBoss/ChicagoBoss
boss_compiler_adapter_lfe.erl
%%------------------------------------------------------------------- @author ChicagoBoss Team and contributors , see file in root directory %% @end This file is part of ChicagoBoss project . See file in root directory %% for license information, see LICENSE file in root directory %% @end %...
null
https://raw.githubusercontent.com/ChicagoBoss/ChicagoBoss/113bac70c2f835c1e99c757170fd38abf09f5da2/src/boss/compiler_adapters/boss_compiler_adapter_lfe.erl
erlang
------------------------------------------------------------------- @end for license information, see LICENSE file in root directory @end @doc -------------------------------------------------------------------
@author ChicagoBoss Team and contributors , see file in root directory This file is part of ChicagoBoss project . See file in root directory -module(boss_compiler_adapter_lfe). -compile(export_all). file_extensions() -> ["lfe"]. controller_module(AppName, Controller) -> lists:concat([AppName...
8279f29e4753df5fedcf644a088d4cbc0ace273b1fb325f286d577e686adf24f
ocaml-community/obus
oBus_property.ml
* oBus_property.ml * ---------------- * Copyright : ( c ) 2010 , < > * Licence : BSD3 * * This file is a part of obus , an ocaml implementation of D - Bus . * oBus_property.ml * ---------------- * Copyright : (c) 2010, Jeremie Dimino <> * Licence : BSD3 * * This file is a part of obus...
null
https://raw.githubusercontent.com/ocaml-community/obus/03129dac072e7a7370c2c92b9d447e47f784b7c7/src/protocol/oBus_property.ml
ocaml
+-----------------------------------------------------------------+ | Types | +-----------------------------------------------------------------+ The interface of the property. The name of the property. The object owning the property. Monitor for ...
* oBus_property.ml * ---------------- * Copyright : ( c ) 2010 , < > * Licence : BSD3 * * This file is a part of obus , an ocaml implementation of D - Bus . * oBus_property.ml * ---------------- * Copyright : (c) 2010, Jeremie Dimino <> * Licence : BSD3 * * This file is a part of obus...
04665f350fc486cbf6478c742fa5130a0520fcb05095e5ef5821b8f280a51bdf
vseloved/prj-algo3
lab01_improve.lisp
;;;; lab 01 for Advanced Algo course second iteration -- more efficient algo made by ;;;; (defconstant +dfile+ "lab01_dict") (defconstant +maxwordlen+ 24) ;;; key -> word, value -> freq (defparameter *ngram* (make-hash-table :size 1000000 :test 'equal)) ;;; key -> word word, value -> freq (defparameter *ngra...
null
https://raw.githubusercontent.com/vseloved/prj-algo3/ed485ca730e42cd1bba757fd3f409b51ddb43c03/tasks/a.kishchenko/lab01/lab01_improve.lisp
lisp
key -> word, value -> freq key -> word word, value -> freq tree path Debug snippets add parsed ngram to hashtable parse ngram, format: word[tab]frequency Hashtable helpers assume than in input "ourtextwithoutspaces" and double quotes surrounding print fixed text array - (cons index . cost) TODO: refactor...
lab 01 for Advanced Algo course second iteration -- more efficient algo made by (defconstant +dfile+ "lab01_dict") (defconstant +maxwordlen+ 24) (defparameter *ngram* (make-hash-table :size 1000000 :test 'equal)) (defparameter *ngram2* (make-hash-table :size 1000000 :test 'equal)) our broken text without w...
1120190dc64fba8b0e292ef815afaa4fd1ff2c6c03e203d5bd457532a81d4bc9
NorfairKing/the-notes
Main.hs
module NumberTheory.Main where import Notes import qualified Data.Text as T import qualified Prelude as P (Int, map, mod, (+), (<), (^)) import Functions.Basics.Macro import Functions.Bi...
null
https://raw.githubusercontent.com/NorfairKing/the-notes/ff9551b05ec3432d21dd56d43536251bf337be04/src/NumberTheory/Main.hs
haskell
b - a = d - c
module NumberTheory.Main where import Notes import qualified Data.Text as T import qualified Prelude as P (Int, map, mod, (+), (<), (^)) import Functions.Basics.Macro import Functions.Bi...
e9c6537c97bb2de7c8116afcf4f0a1335f58fea933e0fed95de64c626fb3e6bb
racket/libs
info.rkt
#lang setup/infotab SPDX - License - Identifier : ( Apache-2.0 OR MIT ) ;; THIS FILE IS AUTO-GENERATED FROM racket/src/native-libs/install.rkt (define collection 'multi) (define deps '("base")) (define pkg-desc "native libraries for \"base\" package") (define pkg-authors '(mflatt)) (define version "1.2") (define...
null
https://raw.githubusercontent.com/racket/libs/ebcea119197dc0cb86be1ccbbfbe5806f7280976/racket-win32-i386-3/info.rkt
racket
THIS FILE IS AUTO-GENERATED FROM racket/src/native-libs/install.rkt
#lang setup/infotab SPDX - License - Identifier : ( Apache-2.0 OR MIT ) (define collection 'multi) (define deps '("base")) (define pkg-desc "native libraries for \"base\" package") (define pkg-authors '(mflatt)) (define version "1.2") (define license '((Apache-2.0 OR MIT) AND (LGPL-3.0-or-later AND OpenSSL)))
1cd58d6839a2490b09ad654ad3a8744b5e7c96edf8f18e212ac959e5930498a2
jgm/texmath
Commands.hs
{-# LANGUAGE OverloadedStrings #-} Copyright ( C ) 2009 - 2022 < > This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later ver...
null
https://raw.githubusercontent.com/jgm/texmath/df209eb0e390518dae407d9b2a4984782be2fb1f/src/Text/TeXMath/Readers/TeX/Commands.hs
haskell
# LANGUAGE OverloadedStrings # These are the cases where texmath historically diverged from symbolMap. We may want to remove some of these overrides, but for now we keep them so behavior doesn't change.
Copyright ( C ) 2009 - 2022 < > This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . This program is distribut...
5fc8a5031201b3b575f21f84ed5feb1ed5b67f94347df3ae68a5600ca85c770d
stritzinger/opcua
codec_binary_tests.erl
-module(codec_binary_tests). -include_lib("eunit/include/eunit.hrl"). -include("opcua.hrl"). -include("opcua_internal.hrl"). t_test_() -> {setup, fun setup/0, fun cleanup/1, [ fun open_secure_channel_request/0, fun open_secure_channel_response/0, fun create_session_request/0, ...
null
https://raw.githubusercontent.com/stritzinger/opcua/a9802f829f80e6961871653f4d3c932f9496ba99/test/codec_binary_tests.erl
erlang
This little helper does the major testing: matches the original data implementation which encoded the same data and check if the data matches again (hex dumps are from wireshark) Why not compare the encoded binaries in different ways and hence you can get binaries holding the same data even though...
-module(codec_binary_tests). -include_lib("eunit/include/eunit.hrl"). -include("opcua.hrl"). -include("opcua_internal.hrl"). t_test_() -> {setup, fun setup/0, fun cleanup/1, [ fun open_secure_channel_request/0, fun open_secure_channel_response/0, fun create_session_request/0, ...
103a180b980b5b314fd3469070a3e2b739516e38ab0201276b622181013d80d3
ninjudd/cake
task.clj
(ns cake.task (:use cake [bake.core :only [print-stacktrace log verbose?]] [cake.file :only [file newer? touch]] [cake.utils.version :only [version-mismatch?]] [cake.project :only [add-group]] [useful.utils :only [verify adjoin]] [useful.map :only [update filter-vals]] ...
null
https://raw.githubusercontent.com/ninjudd/cake/3a1627120b74e425ab21aa4d1b263be09e945cfd/src/cake/task.clj
clojure
create the tasks and run? bindings if it hasn't been done yet. run dependencies
(ns cake.task (:use cake [bake.core :only [print-stacktrace log verbose?]] [cake.file :only [file newer? touch]] [cake.utils.version :only [version-mismatch?]] [cake.project :only [add-group]] [useful.utils :only [verify adjoin]] [useful.map :only [update filter-vals]] ...
d66bdcd3b054a6cb6a575cb364d455685e589db4336ca703048b9199c1d139ef
esl/MongooseIM
mod_muc_light_api.erl
@doc Provide an interface for frontends ( like graphql or ctl ) to manage MUC Light rooms . -module(mod_muc_light_api). -export([create_room/3, create_room/4, invite_to_room/3, change_room_config/3, change_affiliation/4, send_message/3, send_message/4, d...
null
https://raw.githubusercontent.com/esl/MongooseIM/557e26591f6589653eec551641d98f96c9760838/src/muc_light/mod_muc_light_api.erl
erlang
Exported for mod_muc_api Internal: helpers
@doc Provide an interface for frontends ( like graphql or ctl ) to manage MUC Light rooms . -module(mod_muc_light_api). -export([create_room/3, create_room/4, invite_to_room/3, change_room_config/3, change_affiliation/4, send_message/3, send_message/4, d...
6c2e0673d4c51945120f64f59efb5ffb5756685b57943c192f08429eed5dccc1
ucsd-progsys/liquidhaskell
EmptySig.hs
-- This can't catch parse errors @ LIQUID " --expect - error - containing = parse specification " @ module EmptySig where {-@ :: foo -> x:Int -> {v:Int | v > x} @-} foo :: Int -> Int foo x = x - 1
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/f46dbafd6ce1f61af5b56f31924c21639c982a8a/tests/parsing-errors/EmptySig.hs
haskell
This can't catch parse errors @ :: foo -> x:Int -> {v:Int | v > x} @
@ LIQUID " --expect - error - containing = parse specification " @ module EmptySig where foo :: Int -> Int foo x = x - 1
42b2db469dd311ed108d7032ac69b6d38b1a577ffd2dadfc84271f08cf81c6a0
Zetawar/zetawar
util.cljc
(ns zetawar.util #?(:cljs (:require-macros [zetawar.util :refer [inspect]]))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Accessors (defn solo "Like first, but throws if more than one item." [coll] (assert (not (next coll))) (first coll)) (defn only "Like first,...
null
https://raw.githubusercontent.com/Zetawar/zetawar/dc1ee8d27afcac1cd98904859289012c2806e58c/src/cljc/zetawar/util.cljc
clojure
Math Debugging (prevent "return debugger;" in compiled javascript)
(ns zetawar.util #?(:cljs (:require-macros [zetawar.util :refer [inspect]]))) Accessors (defn solo "Like first, but throws if more than one item." [coll] (assert (not (next coll))) (first coll)) (defn only "Like first, but throws unless exactly one item." [coll] (assert (not (next coll))) (i...
6186da5f1fba319a00ad173fcc57949cb132582b3f078f8481d642c2025e5130
BrunoBonacci/1config
hierarchical.clj
(ns ^{:author "Bruno Bonacci (@BrunoBonacci)" :no-doc true} com.brunobonacci.oneconfig.backends.hierarchical (:refer-clojure :exclude [find load list]) (:require [com.brunobonacci.oneconfig.backend :refer :all] [com.brunobonacci.oneconfig.util :refer [list-entries]])) (deftype HierarchicalBackend [re...
null
https://raw.githubusercontent.com/BrunoBonacci/1config/4cf8284b1b490253ac617bec9d2348c3234931e6/1config-core/src/com/brunobonacci/oneconfig/backends/hierarchical.clj
clojure
(ns ^{:author "Bruno Bonacci (@BrunoBonacci)" :no-doc true} com.brunobonacci.oneconfig.backends.hierarchical (:refer-clojure :exclude [find load list]) (:require [com.brunobonacci.oneconfig.backend :refer :all] [com.brunobonacci.oneconfig.util :refer [list-entries]])) (deftype HierarchicalBackend [re...
c84388fcbfe4e37b58b572e024dc7e00328aa495ba6d4d39498fbabf51934fe5
robeverest/cufft
FFT.hs
-- | Module : Foreign . Copyright : [ 2013 .. 2018 ] , -- License : BSD -- Maintainer : < > -- Stability : experimental Portability : non - portable ( GHC extensions ) -- The cuFFT library is an implementation of Fast Fourier Transform ( FFT ) operations for NVIDIA GPUs . -- T...
null
https://raw.githubusercontent.com/robeverest/cufft/4ca4d3b834369ce2f1ae5c37f4ab93d41f901512/Foreign/CUDA/FFT.hs
haskell
| License : BSD Stability : experimental most important and widely used numerical algorithms in computational physics and general signals processing. The cuFFT library provides a simple interface To use operations from the cuFFT library, the user must allocate the required arrays in the GPU memory spac...
Module : Foreign . Copyright : [ 2013 .. 2018 ] , Maintainer : < > Portability : non - portable ( GHC extensions ) The cuFFT library is an implementation of Fast Fourier Transform ( FFT ) operations for NVIDIA GPUs . The FFT is a divide - and - conquer algorithm for efficiently comp...
e9b8f65f2a890d43d57be5e0755ff836491857c663dcc569c00d1659336e7e26
sky-big/RabbitMQ
webmachine_deps.erl
@author < > @author < > 2007 - 2008 Basho Technologies %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicable ...
null
https://raw.githubusercontent.com/sky-big/RabbitMQ/d7a773e11f93fcde4497c764c9fa185aad049ce2/plugins-src/webmachine-wrapper/webmachine-git/src/webmachine_deps.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. limitations under the License. @doc E...
@author < > @author < > 2007 - 2008 Basho Technologies Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , See the License for the specific language governing permissions and -module(webmachine_deps). -a...
623de5dcc01333006f5e47cc14e5313f1d3403ac1f96ccce3fc732eac60357be
The-closed-eye-of-love/pixiv
Spec.hs
# LANGUAGE AllowAmbiguousTypes # module Main (main) where import Data.Aeson import qualified Data.ByteString.Lazy as LBS import Network.HTTP.Client.TLS (newTlsManager) import Web.Pixiv.Download import Web.Pixiv.Types main :: IO () main = do testDecode @Comments "test/illust_comments.json" testDecode @Illusts "te...
null
https://raw.githubusercontent.com/The-closed-eye-of-love/pixiv/5a9cbe28dd52d2bc80db3320a5311750b837a17b/test/Spec.hs
haskell
# LANGUAGE AllowAmbiguousTypes # module Main (main) where import Data.Aeson import qualified Data.ByteString.Lazy as LBS import Network.HTTP.Client.TLS (newTlsManager) import Web.Pixiv.Download import Web.Pixiv.Types main :: IO () main = do testDecode @Comments "test/illust_comments.json" testDecode @Illusts "te...
1a81b4e2db5caa45dc3708a9153137cbd917f99d188c47da640f3781a4dc4c71
erlang-lager/lager
lager_transform.erl
Copyright ( c ) 2011 - 2012 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% a copy of the License at %% %% -2.0 %% %% Unless required...
null
https://raw.githubusercontent.com/erlang-lager/lager/d25595530b34605621c1fcb8c56666ed3bfa1c3d/src/lager_transform.erl
erlang
Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. @doc The parse transform used ...
Copyright ( c ) 2011 - 2012 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY ...
c4e725f874b290a702dcc8074f9cb6621a05d7a103bcf32fe0378e2335b3da85
Functional-AutoDiff/STALINGRAD
saddle-FF-ikarus.scm
(define (run) (let* ((start (list 1.0 1.0)) (f (lambda (x1 y1 x2 y2) (d- (d+ (sqr x1) (sqr y1)) (d+ (sqr x2) (sqr y2))))) (x1*-y1* (multivariate-argmin-F (lambda (x1-y1) (multivariate-max-F (lambda (x2-y2) (f (car x1-y1) (car (cdr x1-y1)) (car x2-y2) (car (cdr x2-y2)))) start)) start...
null
https://raw.githubusercontent.com/Functional-AutoDiff/STALINGRAD/8a782171872d5caf414ef9f8b9b0efebaace3b51/examples/examples2009/saddle-FF-ikarus.scm
scheme
(define (run) (let* ((start (list 1.0 1.0)) (f (lambda (x1 y1 x2 y2) (d- (d+ (sqr x1) (sqr y1)) (d+ (sqr x2) (sqr y2))))) (x1*-y1* (multivariate-argmin-F (lambda (x1-y1) (multivariate-max-F (lambda (x2-y2) (f (car x1-y1) (car (cdr x1-y1)) (car x2-y2) (car (cdr x2-y2)))) start)) start...
607ef60346559c24c41b57ea29f8d92effc15ffc93f30401503070d3df2dd499
ProjectMAC/propagators
test-utils.scm
;;; ---------------------------------------------------------------------- Copyright 2009 Massachusetts Institute of Technology . ;;; ---------------------------------------------------------------------- This file is part of Propagator Network Prototype . ;;; Propagator Network Prototype is free software ; you ...
null
https://raw.githubusercontent.com/ProjectMAC/propagators/add671f009e62441e77735a88980b6b21fad7a79/support/test-utils.scm
scheme
---------------------------------------------------------------------- ---------------------------------------------------------------------- you can redistribute it and/or modify it under the terms of the GNU any later version. will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of M...
Copyright 2009 Massachusetts Institute of Technology . This file is part of Propagator Network Prototype . General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) Propagator Network Prototype is distributed in the hope that it You should ...
0cd2143f8807709d6cf1b0fd337d71c481ab50342cf993097610b03587f07f46
haskell-opengl/OpenGL
DataType.hs
{-# OPTIONS_HADDOCK hide #-} -------------------------------------------------------------------------------- -- | -- Module : Graphics.Rendering.OpenGL.GL.DataType Copyright : ( c ) 2002 - 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- T...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGL/f7af8fe04b0f19c260a85c9ebcad612737cd7c8c/src/Graphics/Rendering/OpenGL/GL/DataType.hs
haskell
# OPTIONS_HADDOCK hide # ------------------------------------------------------------------------------ | Module : Graphics.Rendering.OpenGL.GL.DataType License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ --------...
Copyright : ( c ) 2002 - 2019 Maintainer : < > This is a purely internal module for ( un-)marshaling DataType . module Graphics.Rendering.OpenGL.GL.DataType ( DataType(..), marshalDataType, unmarshalDataType, DataRepresentation(..), unmarshalDataRepresentation ) where import Graphics.GL ...
09c6f1d9ad135ec90beeff8bf8c0994bc83746fe6194c75795698dcee5376da0
davexunit/guile-2d
ftgl.scm
;;; guile-2d Copyright ( C ) 2013 > ;;; ;;; Guile-2d is free software: you can redistribute it and/or modify it ;;; under the terms of the GNU Lesser General Public License as published by the Free Software Foundation , either version 3 of the ;;; License, or (at your option) any later version. ;;; ;;; Guile-2d...
null
https://raw.githubusercontent.com/davexunit/guile-2d/83d9dfab5b04a337565cb2798847b15e4fbd7786/2d/wrappers/ftgl.scm
scheme
guile-2d Guile-2d is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as License, or (at your option) any later version. Guile-2d is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER...
Copyright ( C ) 2013 > published by the Free Software Foundation , either version 3 of the You should have received a copy of the GNU Lesser General Public Quick and dirty wrapper for the library . (define-module (2d wrappers ftgl) #:use-module (system foreign) #:use-module (2d wrappers util) #:use...
65d5a5f00321d5f9a2c027ac961184784125286774efc2c6a570dac47259f3e8
tebello-thejane/bitx.hs
Order.hs
{-# LANGUAGE OverloadedStrings #-} ----------------------------------------------------------------------------- -- | -- Module : Network.Bitcoin.BitX.Private.Order Copyright : 2016 Tebello Thejane -- License : BSD3 -- -- Maintainer : Tebello Thejane <zyxoas+> -- Stability : Experimental Porta...
null
https://raw.githubusercontent.com/tebello-thejane/bitx.hs/d5b1211656192b90381732ee31ca631e5031041b/src/Network/Bitcoin/BitX/Private/Order.hs
haskell
# LANGUAGE OverloadedStrings # --------------------------------------------------------------------------- | Module : Network.Bitcoin.BitX.Private.Order License : BSD3 Maintainer : Tebello Thejane <zyxoas+> Stability : Experimental Creating and working with orders Trading on the market is done...
Copyright : 2016 Tebello Thejane Portability : non - portable ( GHC Extensions ) module Network.Bitcoin.BitX.Private.Order ( getAllOrders, postOrder, stopOrder, getOrder, postMarketOrder, getAllTrades ) where import Network.Bitcoin.BitX.Internal import Network.Bitcoin.BitX.Types import qua...
d1fb900ce466618450f36ab1141bde8aca6e46be82c997345769f894db5b32d3
ichko/fmi-fp-2020-21
XMLParserTemplate.hs
# LANGUAGE NamedFieldPuns # module XMLParser where import Control.Applicative import Data.Char import ParserUtils import Prelude hiding (span) type Attribute = (String, String) data TagElement = TagElement { name :: String, attributes :: [Attribute], children :: [XMLObject] } deriving (Show, Read, Eq)...
null
https://raw.githubusercontent.com/ichko/fmi-fp-2020-21/83dea8db7666e7a8a372d82301d71c79d5b798ff/hw/2/task-2/XMLParserTemplate.hs
haskell
Implement This
# LANGUAGE NamedFieldPuns # module XMLParser where import Control.Applicative import Data.Char import ParserUtils import Prelude hiding (span) type Attribute = (String, String) data TagElement = TagElement { name :: String, attributes :: [Attribute], children :: [XMLObject] } deriving (Show, Read, Eq)...
8bd21737ab592a90228d96fb9c00e5d073da1324d050d57ecd474c5d9b66db16
aggieben/weblocks
scaffold.lisp
(in-package :weblocks) (export '(form-scaffold typespec->form-view-field-parser)) (defclass form-scaffold (scaffold) () (:documentation "Form scaffold.")) (defmethod generate-scaffold-view ((scaffold form-scaffold) object-class) (make-instance (scaffold-view-type scaffold) :inherit-from nil :fields (map...
null
https://raw.githubusercontent.com/aggieben/weblocks/8d86be6a4fff8dde0b94181ba60d0dca2cbd9e25/src/views/formview/scaffold.lisp
lisp
Type introspection protocol
(in-package :weblocks) (export '(form-scaffold typespec->form-view-field-parser)) (defclass form-scaffold (scaffold) () (:documentation "Form scaffold.")) (defmethod generate-scaffold-view ((scaffold form-scaffold) object-class) (make-instance (scaffold-view-type scaffold) :inherit-from nil :fields (map...
933a869057689f46f5cc875a72e96acd4453513c941fbee1fddd48e4c70915ff
otakup0pe/magicbeam
thunder_gen_server.erl
-module(thunder_gen_server). -export([start_link/3, start_link/4, call/2, call/3, cast/2]). -include("magicbeam.hrl"). start_link(CB, Opaque, Args) -> wait(), gen_server:start_link(CB, Opaque, Args). start_link(Name, CB, Opaque, Args) -> wait(), gen_server:start_link(Name, CB, Opaque, Args). call(N,...
null
https://raw.githubusercontent.com/otakup0pe/magicbeam/e8907b0c3ed1afa96c4e635e4f6b345aacdb88ee/src/thunder_gen_server.erl
erlang
-module(thunder_gen_server). -export([start_link/3, start_link/4, call/2, call/3, cast/2]). -include("magicbeam.hrl"). start_link(CB, Opaque, Args) -> wait(), gen_server:start_link(CB, Opaque, Args). start_link(Name, CB, Opaque, Args) -> wait(), gen_server:start_link(Name, CB, Opaque, Args). call(N,...
095e2604456991f50fc116ea4c0a3745d9bb576eb9b0d2424690b6442f7ea762
svenpanne/EOPL3
exercise-B-02.rkt
#lang eopl ; ------------------------------------------------------------------------------ ; Exercise B.2 ; ; separated-list is a bit restricted and expects a string as a separator, but we ; need a nonterminal or a token.
null
https://raw.githubusercontent.com/svenpanne/EOPL3/3fc14c4dbb1c53a37bd67399eba34cea8f8234cc/appendixB/exercise-B-02.rkt
racket
------------------------------------------------------------------------------ Exercise B.2 separated-list is a bit restricted and expects a string as a separator, but we need a nonterminal or a token.
#lang eopl
d60f1b1385dc303e1eccdebe99fc6899a2bd29320624a4cfce9f0c52bde7dfbf
andreas/mirage-swim
stack_ext.ml
open V1 open Core_kernel.Std (* Make Ipaddr.V4.t compatible with bin_io and sexp *) module Make(S : STACKV4) = struct include S module Ipv4Binable = Bin_prot.Utils.Make_binable(struct module Binable = String type t = Ipaddr.V4.t let to_binable = Ipaddr.V4.to_bytes let of_binable = Ipaddr.V4.o...
null
https://raw.githubusercontent.com/andreas/mirage-swim/23d893db0894ea1fe7012de8e1da03f36faf893a/stack_ext.ml
ocaml
Make Ipaddr.V4.t compatible with bin_io and sexp
open V1 open Core_kernel.Std module Make(S : STACKV4) = struct include S module Ipv4Binable = Bin_prot.Utils.Make_binable(struct module Binable = String type t = Ipaddr.V4.t let to_binable = Ipaddr.V4.to_bytes let of_binable = Ipaddr.V4.of_bytes_exn end) let bin_size_ipv4addr = Ipv4Bina...
34193419fc49a135eb4aa35db07cd247b945f6f57f3b7492e7ab45c7b70160f5
digital-asset/ghc
tc079.hs
# OPTIONS_GHC -fno - warn - redundant - constraints # -- !!! small class decl with local polymorphism; -- !!! "easy" to check default methods and such... ! ! ! ( this is the example given in TcClassDcl ) -- module ShouldSucceed where class Foo a where op1 :: a -> Bool op2 :: Ord b => a -> b -> b -> b o...
null
https://raw.githubusercontent.com/digital-asset/ghc/323dc6fcb127f77c08423873efc0a088c071440a/testsuite/tests/typecheck/should_compile/tc079.hs
haskell
!!! small class decl with local polymorphism; !!! "easy" to check default methods and such...
# OPTIONS_GHC -fno - warn - redundant - constraints # ! ! ! ( this is the example given in TcClassDcl ) module ShouldSucceed where class Foo a where op1 :: a -> Bool op2 :: Ord b => a -> b -> b -> b op1 x = True op2 x y z = if (op1 x) && (y < z) then y else z instance Foo Int where {} instance Fo...
3f6ca63beaddc53290bf4bfd8aa9f823ac39008181ef48184d3342b0e5a4d2d8
alanz/ghc-exactprint
Test10396.hs
# LANGUAGE ScopedTypeVariables # module Test10396 where errors :: IO () errors= do let ls :: Int = undefined return ()
null
https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc80/Test10396.hs
haskell
# LANGUAGE ScopedTypeVariables # module Test10396 where errors :: IO () errors= do let ls :: Int = undefined return ()
2c8093e05003d9c5ba74ebbee7dcda41faad85411db53c319e8c66f6b6f62b83
ruricolist/lisp-magick-wand
types.lisp
ImageMagick binding for Common Lisp Copyright ( c ) 2006 , 2007 , 2008 , 2009 < > ;;;; 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 cod...
null
https://raw.githubusercontent.com/ruricolist/lisp-magick-wand/82ee7b8a9c3bbbd871602f5aad9b29d109f2fb8d/types.lisp
lisp
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redis...
ImageMagick binding for Common Lisp Copyright ( c ) 2006 , 2007 , 2008 , 2009 < > THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO , (in-package :lisp-magick-wand) (defmagickfun "MagickRelinquishMemory" :po...
71db626867d6f2eab9f2ad16ceeade05b1e597c4972695fc06cdc6dd2ce064cf
esl/escalus
escalus_history_h.erl
-module(escalus_history_h). -behaviour(gen_event). -export([get_history/1]). -export([init/1, terminate/2, handle_info/2, handle_call/2, handle_event/2, code_change/3]). -record(state, { events :: list() }). -spec get_history(escalus_event:manager()) -> list(). g...
null
https://raw.githubusercontent.com/esl/escalus/ac5e813ac96c0cdb5d5ac738d63d992f5f948585/src/escalus_history_h.erl
erlang
=================================================================== Helpers ===================================================================
-module(escalus_history_h). -behaviour(gen_event). -export([get_history/1]). -export([init/1, terminate/2, handle_info/2, handle_call/2, handle_event/2, code_change/3]). -record(state, { events :: list() }). -spec get_history(escalus_event:manager()) -> list(). g...
6f25ed1169ab3abf093e095425a78a80e39c0e00c45bdf53d7a3c16b9d78a071
tokenrove/imago
file.lisp
;;; IMAGO library ;;; File handling facility ;;; Copyright ( C ) 2004 - 2005 ( ) ;;; ;;; The authors grant you the rights to distribute ;;; and use this software as governed by the terms of the Lisp Lesser GNU Public License ;;; (), ;;; known as the LLGPL. (in-package :imago) (defparameter *image-file-read...
null
https://raw.githubusercontent.com/tokenrove/imago/b4befb2bc9b6843be153e6efd2ab52fb21103302/src/file.lisp
lisp
IMAGO library File handling facility The authors grant you the rights to distribute and use this software as governed by the terms (), known as the LLGPL.
Copyright ( C ) 2004 - 2005 ( ) of the Lisp Lesser GNU Public License (in-package :imago) (defparameter *image-file-readers* (make-hash-table :test #'equal)) (defparameter *image-file-writers* (make-hash-table :test #'equal)) (defun read-image (filename &key (errorp t)) "Reads an image from a file. If t...
6318c45610716839e4490ca8c75756d997e6cf117739f852853566f9b4763378
racket/gui
base.rkt
#lang scheme/base (require (except-in mred make-gui-namespace make-gui-empty-namespace)) (provide (all-from-out mred) make-gui-namespace make-gui-empty-namespace) (define-namespace-anchor anchor) (define (make-gui-empty-namespace) (let ([ns (make-base-empty...
null
https://raw.githubusercontent.com/racket/gui/d1fef7a43a482c0fdd5672be9a6e713f16d8be5c/gui-lib/scheme/gui/base.rkt
racket
#lang scheme/base (require (except-in mred make-gui-namespace make-gui-empty-namespace)) (provide (all-from-out mred) make-gui-namespace make-gui-empty-namespace) (define-namespace-anchor anchor) (define (make-gui-empty-namespace) (let ([ns (make-base-empty...
ba87ed288cee4941058ee1b79e0fac44887857912bb5457cae171d19417e125e
bravit/hid-examples
dynvalues-gadt.hs
{-# LANGUAGE GADTs #-} data DynValue a where S :: String -> DynValue String C :: Char -> DynValue Char B :: Bool -> DynValue Bool getValue :: DynValue a -> a getValue (B b) = b getValue (C c) = c getValue (S s) = s printValue :: DynValue a -> IO () printValue (B b) = print b printValue (C c) = print c printVal...
null
https://raw.githubusercontent.com/bravit/hid-examples/913e116b7ee9c7971bba10fe70ae0b61bfb9391b/ch11/dynvalues-gadt.hs
haskell
# LANGUAGE GADTs #
data DynValue a where S :: String -> DynValue String C :: Char -> DynValue Char B :: Bool -> DynValue Bool getValue :: DynValue a -> a getValue (B b) = b getValue (C c) = c getValue (S s) = s printValue :: DynValue a -> IO () printValue (B b) = print b printValue (C c) = print c printValue (S s) = print s dat...
8ad72ec46f8f6d0e8a3259cb2ec99bb670227e7453d207dfd3a405f0499b9d93
ggreif/dynamic-loader
PathLoader.hs
---------------------------------------------------------------------------- -- | -- Module : PathLoader Copyright : ( c ) Hampus Ram 2004 , 2012 -- License : BSD-style (see LICENSE) -- -- Maintainer : ggreif+ -- Stability : experimental Portability : non - portable ( ghc > = 7.6 only ) --...
null
https://raw.githubusercontent.com/ggreif/dynamic-loader/9f3c8b6136d1902ab68ac37ff0182bb2bf1e9eae/System/Plugins/PathLoader.hs
haskell
-------------------------------------------------------------------------- | Module : PathLoader License : BSD-style (see LICENSE) Maintainer : ggreif+ Stability : experimental A module that implements dynamic loading. Has smart handling of dependencies and is thread safe. -----------------...
Copyright : ( c ) Hampus Ram 2004 , 2012 Portability : non - portable ( ghc > = 7.6 only ) module System.Plugins.PathLoader (LoadedModule, ModuleType (..), setBasePath, addDependency, ...
e729c348b63d5acfd24daddf16930daf120946c5b20d7958097aad354d168340
processone/xmpp
flex_offline.erl
Created automatically by xdata generator ( xdata_codec.erl ) %% Source: flex_offline.xdata %% Form type: Document : -module(flex_offline). -compile({nowarn_unused_function, [{dec_int, 3}, {dec_int, 1}, {dec_enum, 2}, {dec_enum_int, 2}, {dec_enum_int, 4}, ...
null
https://raw.githubusercontent.com/processone/xmpp/6705a6e5dbe8c8dc9cc70cba9c442c6da61de716/src/flex_offline.erl
erlang
Source: flex_offline.xdata Form type:
Created automatically by xdata generator ( xdata_codec.erl ) Document : -module(flex_offline). -compile({nowarn_unused_function, [{dec_int, 3}, {dec_int, 1}, {dec_enum, 2}, {dec_enum_int, 2}, {dec_enum_int, 4}, {enc_int, 1}, {enc_enum, 1...
74083c82c519cefe907a4efbca2c8f5d7fd31c6c2e9e0de83e83770be59b3b66
LexiFi/menhir
MyMap.mli
(******************************************************************************) (* *) (* *) ...
null
https://raw.githubusercontent.com/LexiFi/menhir/794e64e7997d4d3f91d36dd49aaecc942ea858b7/attic/src/MyMap.mli
ocaml
**************************************************************************** file LICEN...
, Paris , PPS , Université Paris Diderot . All rights reserved . This file is distributed under the terms of the GNU General Public License version 2 , as...
87b55b3aa6f03f43d49ae985533a49658e6899d7cf35f3f92848760713b09c66
Verites/verigraph
Semantics.hs
module Logic.Ctl.Semantics ( satisfyExpr , satisfyExpr' ) where import Data.List import Logic.Ctl.Base import Logic.Model | Obtain all states that satisfy the given CTL expression . satisfyExpr :: KripkeStructure String -> Expr -> [State String] satisfyExpr model expr = state...
null
https://raw.githubusercontent.com/Verites/verigraph/754ec08bf4a55ea7402d8cd0705e58b1d2c9cd67/src/library/Logic/Ctl/Semantics.hs
haskell
| Obtain the states that are predecessors _only_ to states in the given set. | Obtain the states that are predecessors to _some_ state in the given set.
module Logic.Ctl.Semantics ( satisfyExpr , satisfyExpr' ) where import Data.List import Logic.Ctl.Base import Logic.Model | Obtain all states that satisfy the given CTL expression . satisfyExpr :: KripkeStructure String -> Expr -> [State String] satisfyExpr model expr = state...
0a95a85742a24b6be56486f738851ee09f35dd6135c8ab991362e70bfba9003c
atlas-engineer/nyxt
inspector.lisp
SPDX - FileCopyrightText : Atlas Engineer LLC SPDX - License - Identifier : BSD-3 - Clause (in-package :nyxt) (defvar *inspected-values* (tg:make-weak-hash-table :test 'equal :weakness :value)) (export-always 'sequence-p) (defun sequence-p (object) "Return true if OBJECT is a sequence that's not a string." (...
null
https://raw.githubusercontent.com/atlas-engineer/nyxt/4dfdcfaf54a1da0ccc7ce4dcda74e2c2d54a48c2/source/inspector.lisp
lisp
REVIEW: List direct T subclasses instead? Stricter understanding of property lists: -- Even length. -- Keys are strictly keywords. REVIEW: This should use `nyxt/file-manager-mode:directory-elements' (not accessible at the time this is loaded) or an NFiles equivalent (should
SPDX - FileCopyrightText : Atlas Engineer LLC SPDX - License - Identifier : BSD-3 - Clause (in-package :nyxt) (defvar *inspected-values* (tg:make-weak-hash-table :test 'equal :weakness :value)) (export-always 'sequence-p) (defun sequence-p (object) "Return true if OBJECT is a sequence that's not a string." (...
7d373b7ae08c58c95c62be0d0d8c9e7543cf528bc222618ea04afe8cd37fa50c
sigscale/snmp-collector
snmp_collector_trap_rfc3877.erl
%%% snmp_collector_trap_rfc3877.erl %%% vim: ts=3 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2016 - 2020 SigScale Global Inc. %%% @end Licensed under the Apache License , Version 2.0 ( the " License " ) ; %%% you may not use this file except in compliance with the License. %%% Yo...
null
https://raw.githubusercontent.com/sigscale/snmp-collector/cb6b95ed331abd6f258d8ea55bf34c57f2992444/src/snmp_collector_trap_rfc3877.erl
erlang
snmp_collector_trap_rfc3877.erl vim: ts=3 @end you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See th...
2016 - 2020 SigScale Global Inc. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @doc This module normalizes RFC3877 traps received on NBI . The following table shows the mapping between RFC3877 MIB attributes < t...
9735598530b1bb06fa7e8fdd4f86e4995c6f5a9957683670ccc3ca77f81f75ff
aws-beam/aws-erlang
aws_appsync.erl
%% WARNING: DO NOT EDIT, AUTO-GENERATED CODE! See -beam/aws-codegen for more details . %% @doc AppSync provides API actions for creating and interacting with data sources using GraphQL from your application . -module(aws_appsync). -export([associate_api/3, associate_api/4, create_api_cache/3, ...
null
https://raw.githubusercontent.com/aws-beam/aws-erlang/699287cee7dfc9dc8c08ced5f090dcc192c9cba8/src/aws_appsync.erl
erlang
WARNING: DO NOT EDIT, AUTO-GENERATED CODE! @doc AppSync provides API actions for creating and interacting with data ==================================================================== API ==================================================================== @doc Maps an endpoint to your custom domain. @doc Creates...
See -beam/aws-codegen for more details . sources using GraphQL from your application . -module(aws_appsync). -export([associate_api/3, associate_api/4, create_api_cache/3, create_api_cache/4, create_api_key/3, create_api_key/4, create_data_source/3, c...
131374383cc823aad672a6f5f1f9db6fa8c1858e45e644ce1d043a068ab0e4b5
braidchat/braid
styles.cljs
(ns braid.page-subscriptions.styles (:require [braid.core.client.ui.styles.mixins :as mixins] [braid.core.client.ui.styles.vars :as vars] [garden.units :refer [px rem em]])) (def tags-page [:>.page.tags [:>.title {:font-size "large"}] [:>.content (mixins/settings-container-style) [:>.new...
null
https://raw.githubusercontent.com/braidchat/braid/d94d94cd82b573809e0a6a93527ac3d66ef35202/src/braid/page_subscriptions/styles.cljs
clojure
(ns braid.page-subscriptions.styles (:require [braid.core.client.ui.styles.mixins :as mixins] [braid.core.client.ui.styles.vars :as vars] [garden.units :refer [px rem em]])) (def tags-page [:>.page.tags [:>.title {:font-size "large"}] [:>.content (mixins/settings-container-style) [:>.new...
092bd1151d1122d4dee84684af17d0538fa0ad3ea9c294c8eb082010c9e58de6
e-bigmoon/haskell-blog
JSON_conveniences3.hs
#!/usr/bin/env stack {- stack repl --resolver lts-15.4 --package text --package yesod -} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} # LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # {-# LANGUAGE TypeFamilies #-} import Data.Text (Text) import Yes...
null
https://raw.githubusercontent.com/e-bigmoon/haskell-blog/5c9e7c25f31ea6856c5d333e8e991dbceab21c56/sample-code/yesod/ch12/JSON_conveniences3.hs
haskell
stack repl --resolver lts-15.4 --package text --package yesod # LANGUAGE OverloadedStrings # # LANGUAGE QuasiQuotes # # LANGUAGE TypeFamilies #
#!/usr/bin/env stack # LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # import Data.Text (Text) import Yesod data Person = Person { name :: Text , age :: Int } instance ToJSON Person where toJSON Person {..} = object [ "name" .= name , "age" .= age ...
a89230a15803507d639191b0e525524f96ac7c91b6056ac3b3e6a040cc507ad7
roglo/mlrogue
rogbotio.mli
$ I d : rogbotio.mli , v 1.3 2010/05/04 07:55:17 deraugla Exp $ value socket : string -> Unix.file_descr; value getchar : int -> int -> Unix.file_descr -> char;
null
https://raw.githubusercontent.com/roglo/mlrogue/b73238bbbc8cd88c83579c3b72772a8c418020e5/rogbotio.mli
ocaml
$ I d : rogbotio.mli , v 1.3 2010/05/04 07:55:17 deraugla Exp $ value socket : string -> Unix.file_descr; value getchar : int -> int -> Unix.file_descr -> char;
80bfcfa1b45a9e1ccd441f406768e84c0eeaa949270dde01d8bd410b03743d7a
jeroanan/rkt-coreutils
realpath.rkt
#lang s-exp "util/frontend-program.rkt" (simple-file-handler-program2 "repl/realpath.rkt" realpath)
null
https://raw.githubusercontent.com/jeroanan/rkt-coreutils/571629d1e2562c557ba258b31ce454add2e93dd9/src/realpath.rkt
racket
#lang s-exp "util/frontend-program.rkt" (simple-file-handler-program2 "repl/realpath.rkt" realpath)
a568400ff89dcc17d6ae78ab147f03e19dd0d549017e0d14eb93b44b17f72607
RedPRL/redtt
ResEnv.mli
open RedTT_Core * This module has two responsibilities : 1 . maintain the mapping from strings to names . 2 . keep track of items to be serialized . 1. maintain the mapping from strings to names. 2. keep track of items to be serialized. *) type resolution = [ `Ix of int | `Name of Name.t ]...
null
https://raw.githubusercontent.com/RedPRL/redtt/50689559ff970e33013b8cf8a3bbc8be18ec4e09/src/frontend/ResEnv.mli
ocaml
open RedTT_Core * This module has two responsibilities : 1 . maintain the mapping from strings to names . 2 . keep track of items to be serialized . 1. maintain the mapping from strings to names. 2. keep track of items to be serialized. *) type resolution = [ `Ix of int | `Name of Name.t ]...
6f009161e9d4a3ec1da843a3663de7b78fbaae6bf7ed7cc811297f4ec250f7dc
Eventuria/demonstration-gsd
Wrapper.hs
{-# LANGUAGE OverloadedStrings #-} module Eventuria.Adapters.ByLine.Wrapper where import qualified System.Console.Byline as ByLine (askWithMenuRepeatedly) import System.Console.Byline hiding (askWithMenuRepeatedly) import Control.Monad.IO.Class import qualified Data.Text as Text import Text.Printf (printf) type Error...
null
https://raw.githubusercontent.com/Eventuria/demonstration-gsd/5c7692b310086bc172d3fd4e1eaf09ae51ea468f/src/Eventuria/Adapters/ByLine/Wrapper.hs
haskell
# LANGUAGE OverloadedStrings # ^ The 'Menu' to display. ^ The prompt. ^ Error message.
module Eventuria.Adapters.ByLine.Wrapper where import qualified System.Console.Byline as ByLine (askWithMenuRepeatedly) import System.Console.Byline hiding (askWithMenuRepeatedly) import Control.Monad.IO.Class import qualified Data.Text as Text import Text.Printf (printf) type ErrorDescription = String askWithMenuRe...
91a1cc54c0fb68f3598bddff58bf9814aa49c73a27a370ad8dc68042f64c9a95
tategakibunko/jingoo
jg_types.mli
jg_types.mli Copyright ( c ) 2011- by License : see LICENSE jg_types.mli Copyright (c) 2011- by Masaki WATANABE License: see LICENSE *) exception SyntaxError of string type environment = { autoescape : bool; (** If true, template variables are auto escaped when output. *) strict_mode ...
null
https://raw.githubusercontent.com/tategakibunko/jingoo/1ed8f036c8f37294f282fe147f767bbd11a5386d/src/jg_types.mli
ocaml
* If true, template variables are auto escaped when output. * Template search path list used by [{% include %}] statements. Jingoo will always search in current directory in last resort. * User-defined filters. * Path list of shared library modules ([.cms] or [.cmxs] files) which are dynamically loaded...
jg_types.mli Copyright ( c ) 2011- by License : see LICENSE jg_types.mli Copyright (c) 2011- by Masaki WATANABE License: see LICENSE *) exception SyntaxError of string type environment = { autoescape : bool; strict_mode : bool; * If true , strict type cheking is enabled . If fal...
9b0ada2b467c920f65028ddf298d7cc18e1a45c6ddbc1860ef5fecd9a5948ec7
synduce/Synduce
nested_min_sum_max_mts.ml
* @synduce --no - lifting -NB -n 30 type list = | Elt of int | Cons of int * list type nested_list = | Line of list | NCons of list * nested_list type cnlist = | Sglt of list | Cat of cnlist * cnlist let rec clist_to_list = function | Sglt a -> Line a | Cat (x, y) -> dec y x and dec l1 = function ...
null
https://raw.githubusercontent.com/synduce/Synduce/d453b04cfb507395908a270b1906f5ac34298d29/benchmarks/unrealizable/nested_min_sum_max_mts.ml
ocaml
* @synduce --no - lifting -NB -n 30 type list = | Elt of int | Cons of int * list type nested_list = | Line of list | NCons of list * nested_list type cnlist = | Sglt of list | Cat of cnlist * cnlist let rec clist_to_list = function | Sglt a -> Line a | Cat (x, y) -> dec y x and dec l1 = function ...
138afc4376d26f8136e12d3f36ca63c365aa3da3c5c335646dfa0195efc5cd0b
samee/netlist
Queue.hs
module Circuit.Queue ( Queue , Circuit.Queue.empty , fromList , capLength , front , Circuit.Queue.null , condPush, condPop) where import Control.Monad import Util import Circuit.NetList We can simply use gblIsNothing bits and avoid headPtr and tailPtr ops TODO data Queue a = Queue { buffer :: [NetMaybe a] ...
null
https://raw.githubusercontent.com/samee/netlist/9fc20829f29724dc1148e54bd64fefd7e70af5ba/Circuit/Queue.hs
haskell
pop-side push-side Internal configs Apparently I do not need to check parent If this changes significantly, fromList may also have to change Internal use by condPush well, list actually Check where the outgoing elements should go : head or parent Check where the incoming elements are coming from : tail or par...
module Circuit.Queue ( Queue , Circuit.Queue.empty , fromList , capLength , front , Circuit.Queue.null , condPush, condPop) where import Control.Monad import Util import Circuit.NetList We can simply use gblIsNothing bits and avoid headPtr and tailPtr ops TODO data Queue a = Queue { buffer :: [NetMaybe a] ...
6ba27fbfecd0849d7485790e5e94f80544b06f1cbbbf3cfe84a5f4dade965c93
NobbZ/rebar3_autotest
rebar3_autotest_prv.erl
-module(rebar3_autotest_prv). -behaviour(provider). -export([init/1, do/1, format_error/1]). -define(DESCRIPTION, "A rebar3 plugin to run tests automatically when there are changes."). -define(PROVIDER, autotest). -define(DEPS, [app_discovery]). -define(OPTS, []). -define(INCLUDE_FILE_PATTERNS, [ "\\A.+\\.erl\\z",...
null
https://raw.githubusercontent.com/NobbZ/rebar3_autotest/fe1ee4444437e974c40d7be9ae1a99b7e2944a4c/src/rebar3_autotest_prv.erl
erlang
=================================================================== Public API =================================================================== The 'user friendly' name of the task The module implementation of the task The task can be run by the user, always true The list of dependencies How to use the plugi...
-module(rebar3_autotest_prv). -behaviour(provider). -export([init/1, do/1, format_error/1]). -define(DESCRIPTION, "A rebar3 plugin to run tests automatically when there are changes."). -define(PROVIDER, autotest). -define(DEPS, [app_discovery]). -define(OPTS, []). -define(INCLUDE_FILE_PATTERNS, [ "\\A.+\\.erl\\z",...
2e0f36247a78c2c0fa9a5105ce89d5376f4db9644c828baef2746aef17fefde9
PeterDWhite/Osker
SystemHalfMessage.hs
Copyright ( C ) , 2001 , 2002 , 2003 Copyright ( c ) OHSU , 2001 , 2002 , 2003 module SystemHalfMessage Types of Osker messages in system half ) where ---------------------------------------------------------------------- The definitions that localize the message to the system -- half instantiation of ...
null
https://raw.githubusercontent.com/PeterDWhite/Osker/301e1185f7c08c62c2929171cc0469a159ea802f/Kernel/SystemHalf/SystemHalfMessage.hs
haskell
-------------------------------------------------------------------- half instantiation of the executive. -------------------------------------------------------------------- Convert the incoming payload to the system half to a message type. Message type Message index
Copyright ( C ) , 2001 , 2002 , 2003 Copyright ( c ) OHSU , 2001 , 2002 , 2003 module SystemHalfMessage Types of Osker messages in system half ) where The definitions that localize the message to the system imports import qualified SystemCall as SC Osker imports import qualified OskerMessage as O...
bd221cee2f9eeb123f06dcdf97bc0195218a09a4dada972e9006bb47b59d8b95
yutopp/rill
codegen_llvm.ml
* Copyright yutopp 2015 - . * * Distributed under the Boost Software License , Version 1.0 . * ( See accompanying file LICENSE_1_0.txt or copy at * ) * Copyright yutopp 2015 - . * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * )...
null
https://raw.githubusercontent.com/yutopp/rill/375b67c03ab2087d0a2a833bd9e80f3e51e2694f/rillc/_migrating/codegen_llvm.ml
ocaml
is_address or not null terminated && false implicit & trivial implicit & non-trivial DO NOTHING define member variables not packed body normal function trivial function non-trivial function external function generics TODO: check undef type return the internal typeid as a type regards ...
* Copyright yutopp 2015 - . * * Distributed under the Boost Software License , Version 1.0 . * ( See accompanying file LICENSE_1_0.txt or copy at * ) * Copyright yutopp 2015 - . * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * )...
6ab39621c0b08fadabe5c1afecb214b4b91164c55598dd3ec5dc545dc5eea537
hiroshi-unno/coar
treeAutomaton.ml
open Core open Common.Ext (** Tree automata *) type ('sym, 'lab) t = | Leaf | Label of 'sym * 'lab * 'lab | Alter of ('sym, 'lab) t * ('sym, 'lab) t | Emp let rec pr ppf = function | Leaf -> Format.fprintf ppf "()" | Label (id1, id2, id3) -> Format.fprintf ppf "%a(%a, %a)" String.pr id1 String.pr...
null
https://raw.githubusercontent.com/hiroshi-unno/coar/90a23a09332c68f380efd4115b3f6fdc825f413d/lib/automata/treeAutomaton.ml
ocaml
* Tree automata List.unique without changing order Format.printf "= %a@," pr u; let _ = assert (x = x') in without changing order List.iter (fun (id, t) -> Format.printf "type %s = %a@," id RegTreeExp.pr t) env; Format.printf "@,"; List.iter (fun (id, u) -> Format.printf "%s -> %a@," id TreeAutomaton.pr ...
open Core open Common.Ext type ('sym, 'lab) t = | Leaf | Label of 'sym * 'lab * 'lab | Alter of ('sym, 'lab) t * ('sym, 'lab) t | Emp let rec pr ppf = function | Leaf -> Format.fprintf ppf "()" | Label (id1, id2, id3) -> Format.fprintf ppf "%a(%a, %a)" String.pr id1 String.pr id2 String.pr id3 ...
6e98ec049def29cc45cd6cd2ea59620f07be7910e4639aa53502b7aba5dd6a57
soegaard/racket-cas
diff.rkt
#lang racket/base (provide diff ; (diff u x) differentiate the expression u with respect to the variable x Diff) ;;; ;;; Differentiation ;;; (require racket/format racket/match (for-syntax racket/base racket/syntax syntax/parse) "core.rkt" "math-match.rkt" "relational-operators.rkt" "tr...
null
https://raw.githubusercontent.com/soegaard/racket-cas/c61c7a11697bb2cfbb710594daa276f1071fb48f/racket-cas/diff.rkt
racket
(diff u x) differentiate the expression u with respect to the variable x Differentiation example: (products '(a b c)) = '((* a b c) (* b c) c) invariant: (append us ws) = vs assumes u positive [(Exp u) (⊗ (Exp u) (d u))] xxx xxx
#lang racket/base Diff) (require racket/format racket/match (for-syntax racket/base racket/syntax syntax/parse) "core.rkt" "math-match.rkt" "relational-operators.rkt" "trig.rkt") (module+ test (require rackunit math/bigfloat) (define x 'x) (define y 'y) (define z 'z)) (define (1/sqr...
43ad1e3df268c84e826ed7600cf57983e921a3f4f5219eecaeb1c45b860137dc
markhibberd/postmark
Postmark.hs
-- | Module : Network . Api . Postmark Copyright : ( c ) 2012 License : BSD3 Maintainer : < > -- Portability: portable -- -- Library for postmarkapp.com HTTP Api. -- To get start see some examples in the " Network . Api . Postmark . Tutorial " module . -- -- Source and more information ca...
null
https://raw.githubusercontent.com/markhibberd/postmark/2eb6087bbb19421f1dd765b973702f37c1d386e9/src/Network/Api/Postmark.hs
haskell
| Portability: portable Library for postmarkapp.com HTTP Api. Source and more information can be found at <>. To experiment with a live demo try: > $ git clone > $ cd postmark only - dependencies & & cabal configure -f demo & & cabal build Issues can be reported at <>. * Settings ** Using the test...
Module : Network . Api . Postmark Copyright : ( c ) 2012 License : BSD3 Maintainer : < > To get start see some examples in the " Network . Api . Postmark . Tutorial " module . > $ ./dist / build / postmark - demo / postmark - demo module Network.Api.Postmark ( PostmarkSettings (..), ...
7cc6f812a78c98228762000f9ea5a9101a0e76033ab5d0722963752d0a8d4e43
RyanGlScott/text-show
OldTypeableSpec.hs
# LANGUAGE CPP # #if !(MIN_VERSION_base(4,8,0)) # OPTIONS_GHC -fno - warn - warnings - deprecations # #endif | Module : Spec . Data . OldTypeableSpec Copyright : ( C ) 2014 - 2017 License : BSD - style ( see the file LICENSE ) Maintainer : Stability : Provisional Portability : GHC ...
null
https://raw.githubusercontent.com/RyanGlScott/text-show/cede44e2bc357db54a7e2ad17de200708b9331cc/tests/Spec/Data/OldTypeableSpec.hs
haskell
# LANGUAGE CPP # #if !(MIN_VERSION_base(4,8,0)) # OPTIONS_GHC -fno - warn - warnings - deprecations # #endif | Module : Spec . Data . OldTypeableSpec Copyright : ( C ) 2014 - 2017 License : BSD - style ( see the file LICENSE ) Maintainer : Stability : Provisional Portability : GHC ...
1f3d812fd19ea8a28d92ed59a0ac6f2b5eb91bb72f2c5ed85aff49bc2b94597c
asdr/easyweb
_initialize.lisp
(defpackage :(% TMPL_VAR APPLICATION_NAME %) (:use #:cl #:easyweb)) (in-package :(% TMPL_VAR APPLICATION_NAME %)) ;;load template files ;;once you load a template file it's created and ;;changes wont affect by other loads ;;
null
https://raw.githubusercontent.com/asdr/easyweb/b259358a5f5e146b233b38d5e5df5b85a5a479cd/template-app/_initialize.lisp
lisp
load template files once you load a template file it's created and changes wont affect by other loads
(defpackage :(% TMPL_VAR APPLICATION_NAME %) (:use #:cl #:easyweb)) (in-package :(% TMPL_VAR APPLICATION_NAME %))
61e783e472ac14bc766bf9825211f87fa1508df2fabb5643682ee3ae146f64a7
wdebeaum/DeepSemLex
mathematician.lisp
;;;; ;;;; W::mathematician ;;;; (define-words :pos W::n :templ COUNT-PRED-TEMPL :words ( (W::mathematician (SENSES ((meta-data :origin calo :entry-date 20060503 :change-date nil :wn ("mathematician%1:18:00") :comments nil) (LF-PARENT ONT::scholar) ;professional) ) ) ) ))
null
https://raw.githubusercontent.com/wdebeaum/DeepSemLex/ce0e7523dd2b1ebd42b9e88ffbcfdb0fd339aaee/trips/src/LexiconManager/Data/new/mathematician.lisp
lisp
W::mathematician professional)
(define-words :pos W::n :templ COUNT-PRED-TEMPL :words ( (W::mathematician (SENSES ((meta-data :origin calo :entry-date 20060503 :change-date nil :wn ("mathematician%1:18:00") :comments nil) ) ) ) ))
c111af39b60e61be3d6755f5733af0ff30655b4ae2d60d9da4b3e8fbc2377ddf
tweag/asterius
genconstants.hs
import Asterius.JSGen.Constants import Data.ByteString.Builder import System.IO main :: IO () main = hPutBuilder stdout rtsConstants
null
https://raw.githubusercontent.com/tweag/asterius/e7b823c87499656860f87b9b468eb0567add1de8/asterius/app/genconstants.hs
haskell
import Asterius.JSGen.Constants import Data.ByteString.Builder import System.IO main :: IO () main = hPutBuilder stdout rtsConstants
967747356157abcfd3bb6a357f2647c0a945b3f019e4ba015d59fc0f031ebfa5
mentat-collective/Mafs.cljs
user.clj
(ns user (:require [mentat.clerk-utils.build :as b] [mentat.clerk-utils.css :as css])) (css/set-css! "-modern@0.1.2/cmu-serif.css" "@0.15.2/core.css" "@0.15.2/font.css") (def index "dev/mafs/notebook.clj") (def defaults {:index index :browse? true :watch-paths ["dev"] :cljs-namespaces '...
null
https://raw.githubusercontent.com/mentat-collective/Mafs.cljs/a429c31ae2585fa89a62d16823893dd97b07c267/dev/user.clj
clojure
(ns user (:require [mentat.clerk-utils.build :as b] [mentat.clerk-utils.css :as css])) (css/set-css! "-modern@0.1.2/cmu-serif.css" "@0.15.2/core.css" "@0.15.2/font.css") (def index "dev/mafs/notebook.clj") (def defaults {:index index :browse? true :watch-paths ["dev"] :cljs-namespaces '...
4257a0727b8a553705a5e703ac9168216debb26f908f210a8bb1a1ea40703358
mhuebert/maria
edit.cljs
(ns lark.structure.edit (:refer-clojure :exclude [char]) (:require [lark.tree.core :as tree] [lark.tree.range :as range] [lark.tree.util :as util] [lark.tree.cursor :as cursor] [lark.editors.codemirror :as cm] [fast-zip.core :as z] [goog.dom :a...
null
https://raw.githubusercontent.com/mhuebert/maria/15586564796bc9273ace3101b21662d0c66b4d22/editor/vendor/lark/structure/edit.cljs
clojure
only mutate editor if value has changed cursor path from pre-format zipper, ignoring whitespace returns position in post-format zipper for path ignore kill when cursor is inside an edge structure, eg. #|"" slurp/unslurp strings - pad with space - unslurp last spaced element
(ns lark.structure.edit (:refer-clojure :exclude [char]) (:require [lark.tree.core :as tree] [lark.tree.range :as range] [lark.tree.util :as util] [lark.tree.cursor :as cursor] [lark.editors.codemirror :as cm] [fast-zip.core :as z] [goog.dom :a...
2421f2d8142c64153630b60b490d440c9746dae4c8c42fcd3ae2ff44b1c13f69
Commonfare-net/macao-social-wallet
transaction_form.clj
Freecoin - digital social currency toolkit part of Decentralized Citizen Engagement Technologies ( D - CENT ) R&D funded by the European Commission ( FP7 / CAPS 610349 ) Copyright ( C ) 2015 Dyne.org foundation Copyright ( C ) 2015 Thoughtworks , Inc. designed , written and maintained by < > ;; Wi...
null
https://raw.githubusercontent.com/Commonfare-net/macao-social-wallet/d3724d6c706cdaa669c59da439fe48b0373e17b7/src/freecoin/handlers/transaction_form.clj
clojure
With contributions by This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See th...
Freecoin - digital social currency toolkit part of Decentralized Citizen Engagement Technologies ( D - CENT ) R&D funded by the European Commission ( FP7 / CAPS 610349 ) Copyright ( C ) 2015 Dyne.org foundation Copyright ( C ) 2015 Thoughtworks , Inc. designed , written and maintained by < > <...
f9b6f2fb6f6f86be94f985739f1e1617967721fb57cf9f3f714d9398cf883514
monadbobo/ocaml-core
bitarray.ml
open Core.Std a single 63 bit chunk of the array , bounds checking is left to the main module . We can only use 62 bits , because of the sign bit only use 62 bits, because of the sign bit *) module Int63_chunk : sig type t val empty : t val get : t -> int -> bool val set : t -> int -> bool -> t end ...
null
https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/extended/lib/bitarray.ml
ocaml
open Core.Std a single 63 bit chunk of the array , bounds checking is left to the main module . We can only use 62 bits , because of the sign bit only use 62 bits, because of the sign bit *) module Int63_chunk : sig type t val empty : t val get : t -> int -> bool val set : t -> int -> bool -> t end ...
2f7356336e51d090f24c23402e57acb99a4b6800654e055aeed51c6a33fc30f1
softwarelanguageslab/maf
R5RS_various_regex-2.scm
; Changes: * removed : 0 * added : 1 * swaps : 0 * negated predicates : 5 * swapped branches : 3 * calls to i d fun : 4 (letrec ((debug-trace (lambda () (<change> 'do-nothing ((lambda (x) x) 'do-nothing)))) (regex-NULL #f...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_various_regex-2.scm
scheme
Changes:
* removed : 0 * added : 1 * swaps : 0 * negated predicates : 5 * swapped branches : 3 * calls to i d fun : 4 (letrec ((debug-trace (lambda () (<change> 'do-nothing ((lambda (x) x) 'do-nothing)))) (regex-NULL #f) ...
fb656e4083382314dbd086617847fd20503faa358a2a9df4329866a62f246492
MinaProtocol/mina
events_blocks_request.ml
* This file has been generated by the OCamlClientCodegen generator for openapi - generator . * * Generated by : -generator.tech * * Schema Events_blocks_request.t : EventsBlocksRequest is utilized to fetch a sequence of BlockEvents indicating which blocks were added and removed from storage to reach the ...
null
https://raw.githubusercontent.com/MinaProtocol/mina/a80b00221953c26ff158e7375a948b5fa9e7bd8b/src/lib/rosetta_models/events_blocks_request.ml
ocaml
offset is the offset into the event stream to sync events from. If this field is not populated, we return the limit events backwards from tip. If this is set to 0, we start from the beginning. limit is the maximum number of events to fetch in one call. The implementation may return <= limit events.
* This file has been generated by the OCamlClientCodegen generator for openapi - generator . * * Generated by : -generator.tech * * Schema Events_blocks_request.t : EventsBlocksRequest is utilized to fetch a sequence of BlockEvents indicating which blocks were added and removed from storage to reach the ...
66d5cf2ba4d88f58c8b366bfaf7955be5ad77edadc301edd453defeac3a362a3
CloudI/CloudI
command_props.erl
-*- coding : utf-8 -*- -*- erlang - indent - level : 2 -*- %%% ------------------------------------------------------------------- Copyright 2010 - 2016 < > , < > and < > %%% This file is part of PropEr . %%% %%% PropEr is free software: you can redistribute it a...
null
https://raw.githubusercontent.com/CloudI/CloudI/3e45031c7ee3e974ead2612ea7dd06c9edf973c9/src/external/proper/test/command_props.erl
erlang
------------------------------------------------------------------- PropEr is free software: you can redistribute it and/or modify (at your option) any later version. PropEr is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITN...
-*- coding : utf-8 -*- -*- erlang - indent - level : 2 -*- Copyright 2010 - 2016 < > , < > and < > This file is part of PropEr . it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the Licens...
ac88fee4c32e3ed8fc7833eda5c79ede8d05417737dd4e672304653c92d408aa
janestreet/virtual_dom
vdom_keyboard.ml
module Grouped_help_text = Grouped_help_text module Help_text = Help_text module Keyboard_event_handler = Keyboard_event_handler module Keystroke = Keystroke module Variable_keyboard_event_handler = Variable_keyboard_event_handler module Keyboard_event = Keyboard_event let with_keyboard_handler node keyboard_handler =...
null
https://raw.githubusercontent.com/janestreet/virtual_dom/53466b0f06875cafd30ee2d22536e494e7237b3a/keyboard/src/vdom_keyboard.ml
ocaml
module Grouped_help_text = Grouped_help_text module Help_text = Help_text module Keyboard_event_handler = Keyboard_event_handler module Keystroke = Keystroke module Variable_keyboard_event_handler = Variable_keyboard_event_handler module Keyboard_event = Keyboard_event let with_keyboard_handler node keyboard_handler =...
485014d4e4e3bdb967512177f0adb75b8596bd14e1da648a7f9f09012a31b039
titola/incudine
error.lisp
Copyright ( c ) 2013 - 2019 ;;; ;;; This library is free software; you can redistribute it and/or ;;; modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 2.1 of the License , or ( at your option ) any later version . ;;; ;;; This libra...
null
https://raw.githubusercontent.com/titola/incudine/325174a54a540f4daa67bcbb29780073c35b7b80/contrib/cl-portmidi/error.lisp
lisp
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public either This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See...
Copyright ( c ) 2013 - 2019 version 2.1 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , MA 02110 - 1301 USA (in-package :portmidi) (define-condition portmidi-error ...
a1f7ae269247ffb22f77f69875d8a3f4057e6f255edbbefb7db7643feeae0aff
EFanZh/EOPL-Exercises
exercise-1.22.rkt
#lang eopl Exercise 1.22 [ ★ ★ ] ( filter - in pred lst ) returns the list of those elements in lst that satisfy the predicate pred . ;; > ( filter - in number ? ' ( a 2 ( 1 3 ) b 7 ) ) ( 2 7 ) > ( filter - in symbol ? ' ( a ( b c ) 17 foo ) ) ;; (a foo) (define filter-in (lambda (pred lst) ...
null
https://raw.githubusercontent.com/EFanZh/EOPL-Exercises/11667f1e84a1a3e300c2182630b56db3e3d9246a/solutions/exercise-1.22.rkt
racket
(a foo)
#lang eopl Exercise 1.22 [ ★ ★ ] ( filter - in pred lst ) returns the list of those elements in lst that satisfy the predicate pred . > ( filter - in number ? ' ( a 2 ( 1 3 ) b 7 ) ) ( 2 7 ) > ( filter - in symbol ? ' ( a ( b c ) 17 foo ) ) (define filter-in (lambda (pred lst) (if (null? lst...
821281fcc7832d2b7514dbf5727d33ac42c1797aa27ccb05d0d1bed4f0d6374b
hdgarrood/qq-literals
Example.hs
# LANGUAGE TemplateHaskell # module Spec.Example where import Network.URI (URI, parseURI) import Language.Haskell.TH.Quote (QuasiQuoter) import QQLiterals (qqLiteral) eitherParseURI :: String -> Either String URI eitherParseURI str = maybe (Left ("Failed to parse URI: " ++ str)) Right (parseURI str) uri :: QuasiQu...
null
https://raw.githubusercontent.com/hdgarrood/qq-literals/19f3dfae03623b6ea6898096c1e6fa4cf1e749bb/test/Spec/Example.hs
haskell
# LANGUAGE TemplateHaskell # module Spec.Example where import Network.URI (URI, parseURI) import Language.Haskell.TH.Quote (QuasiQuoter) import QQLiterals (qqLiteral) eitherParseURI :: String -> Either String URI eitherParseURI str = maybe (Left ("Failed to parse URI: " ++ str)) Right (parseURI str) uri :: QuasiQu...
8f9510c88ad41f5c022c2fab15834f03f0d9fb256f28ba74332e624c633a08df
namin/logically
tp.clj
(ns logically.abs.tp (:refer-clojure :exclude [==]) (:use [clojure.core.logic :exclude [is] :as l] [clojure.core.logic.nominal :exclude [fresh hash] :as nom]) (:use [logically.abs.db] [logically.abs.lub])) (defn prove [db flag goals] (conde [(fresh [b bs] (conso b bs goals) ...
null
https://raw.githubusercontent.com/namin/logically/49e814e04ff0f5f20efa75122c0b869e400487ac/src/logically/abs/tp.clj
clojure
(ns logically.abs.tp (:refer-clojure :exclude [==]) (:use [clojure.core.logic :exclude [is] :as l] [clojure.core.logic.nominal :exclude [fresh hash] :as nom]) (:use [logically.abs.db] [logically.abs.lub])) (defn prove [db flag goals] (conde [(fresh [b bs] (conso b bs goals) ...
ed6bc6cbdfd71f9c02bbeb9973a78a089bac21326c941772b12c3a7edd42381f
alanz/ghc-exactprint
TH2.hs
Bloc comment -} # LANGUAGE PolyKinds # module Language.Grammars.AspectAG.TH where import Data.GenRec
null
https://raw.githubusercontent.com/alanz/ghc-exactprint/309efa8689e1ce2407523ba2ebe058b97757ba8b/tests/examples/ghc92/TH2.hs
haskell
Bloc comment -} # LANGUAGE PolyKinds # module Language.Grammars.AspectAG.TH where import Data.GenRec
5971c7e3cc5bd3437d0642d03d7956a162fa94b0e52ee0e96659341f27e6e57c
leonoel/clope
impl.clj
(ns ^:no-doc clope.impl (:import (clope.impl Rope) (java.io Writer))) (defmethod print-method Rope [^Rope r ^Writer w] (.write w "#rope") (print-method {:hash (.hashCode r) :size (.size r)} w)) (defn wrap [^bytes bytes] (when (pos? (alength bytes)) (Rope/wrap bytes))) (defn join [^Rope l ^Rope r] (Rope/joi...
null
https://raw.githubusercontent.com/leonoel/clope/1980656d4be72040a9b2007a64f93c9ff2c6ee43/src/clope/impl.clj
clojure
(ns ^:no-doc clope.impl (:import (clope.impl Rope) (java.io Writer))) (defmethod print-method Rope [^Rope r ^Writer w] (.write w "#rope") (print-method {:hash (.hashCode r) :size (.size r)} w)) (defn wrap [^bytes bytes] (when (pos? (alength bytes)) (Rope/wrap bytes))) (defn join [^Rope l ^Rope r] (Rope/joi...
b8decad146adbdd23cb816759d68ae328fc39e584c11247969d89ae60389ebed
racket/redex
enum.rkt
#lang racket/base (require racket/bool racket/contract racket/function racket/list racket/math racket/match racket/promise racket/set data/enumerate/lib/unsafe "env.rkt" "error.rkt" "lang-struct.rkt" ...
null
https://raw.githubusercontent.com/racket/redex/4c2dc96d90cedeb08ec1850575079b952c5ad396/redex-lib/redex/private/enum.rkt
racket
any/c is compiled-pattern this works around a circularity at the module level pattern pattern term nt-enums : hash[sym -o> (or/c #f enum)] cc-enums : promise/c (hash[sym -o> (or/c #f enum)]) unused-var/e : enum Top level exports when the language itself has a `(cross ...) pattern, then we cannot assume that ...
#lang racket/base (require racket/bool racket/contract racket/function racket/list racket/math racket/match racket/promise racket/set data/enumerate/lib/unsafe "env.rkt" "error.rkt" "lang-struct.rkt" ...
0510970f780ffc99d80ff34b441be65de37aeba8d428994eeafc019443146fa8
tomprimozic/type-systems
infer.ml
open Expr type settings = { mutable dynamic_parameters : bool; mutable freeze_dynamic : bool } let settings = { dynamic_parameters = true; freeze_dynamic = true; } let current_id = ref 0 let next_id () = let id = !current_id in current_id := id + 1 ; id let reset_id () = current_id := 0 let new_var l...
null
https://raw.githubusercontent.com/tomprimozic/type-systems/4403586a897ee94cb8f0de039aeee8ef1ecef968/gradual_typing/infer.ml
ocaml
There is only a single instance of a particular type variable. equivalent to `(fun (x : ty_ann) -> x)(expr)`
open Expr type settings = { mutable dynamic_parameters : bool; mutable freeze_dynamic : bool } let settings = { dynamic_parameters = true; freeze_dynamic = true; } let current_id = ref 0 let next_id () = let id = !current_id in current_id := id + 1 ; id let reset_id () = current_id := 0 let new_var l...
e4558fe1a73029aac50a3da3242f603ad3f5006b5ff19cc50960d6e48a55735e
momohatt/hscaml
Syntax.hs
module Syntax ( Command(..) , Decl(..) , Expr(..) , Pattern(..) , Binop(..) , Value(..) , Env , nameOfDecl ) where data Command = CExpr Expr | CDecl Decl deriving (Show) data Decl = DLet String Expr | DLetRec String Expr deriving (Show) data Expr = EConstInt Integer | EConstBool Boo...
null
https://raw.githubusercontent.com/momohatt/hscaml/00a2251d6f247dfd63bdd9252d6bc248dafac2af/src/Syntax.hs
haskell
module Syntax ( Command(..) , Decl(..) , Expr(..) , Pattern(..) , Binop(..) , Value(..) , Env , nameOfDecl ) where data Command = CExpr Expr | CDecl Decl deriving (Show) data Decl = DLet String Expr | DLetRec String Expr deriving (Show) data Expr = EConstInt Integer | EConstBool Boo...
56007d6c81542e41cc48842f69040cd3f74a230623ce44ca5a901abc42d8c2bb
goldfirere/units
Simulator.hs
Copyright ( c ) 2013 - 4 This file demonstrates some of ` units ` 's capabilities by building up a simple physics simulator . This file demonstrates some of `units`'s capabilities by building up a simple physics simulator. -} # LANGUAGE TypeOperators , TypeFamilies , QuasiQuotes # module Tests.Compile.Sim...
null
https://raw.githubusercontent.com/goldfirere/units/0ffc07627bb6c1eacd60469fd9366346cbfde334/units-test/Tests/Compile/Simulator.hs
haskell
We never want to add positions! QPoint protects us from this. +x = right +y = up An object in our little simulation and gravity (ignoring pulls between objects), and then look for collisions and update collided objects' positions and velocities accordingly. This might update without taking collisions into accoun...
Copyright ( c ) 2013 - 4 This file demonstrates some of ` units ` 's capabilities by building up a simple physics simulator . This file demonstrates some of `units`'s capabilities by building up a simple physics simulator. -} # LANGUAGE TypeOperators , TypeFamilies , QuasiQuotes # module Tests.Compile.Sim...
b8e136b0b25772155246dd9b90832158a7b76dbece208a5aeb30246efbef4e75
janestreet/universe
constants.mli
(* nil format *) val nil : char (* bool format family *) val true_ : char val false_ : char (* int format family *) val positive_fixint_unmask : int val negative_fixint_mask : int val uint8_header : char val uint16_header : char val uint32_header : char val uint64_header : char val int8_header : char val int16_header...
null
https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/vcaml/msgpack/src/constants.mli
ocaml
nil format bool format family int format family float format family string format family binary format family array format family map format family ext format family
val nil : char val true_ : char val false_ : char val positive_fixint_unmask : int val negative_fixint_mask : int val uint8_header : char val uint16_header : char val uint32_header : char val uint64_header : char val int8_header : char val int16_header : char val int32_header : char val int64_header : char val float...
e0380b61ffbad7f8cd59b36c3bc56f809da64148af29e7aaadd7e132f0bdb27f
jellelicht/guix
pk-crypto.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2013 , 2014 , 2015 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version...
null
https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/guix/pk-crypto.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2013 , 2014 , 2015 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (guix pk-crypto) #:use-module ((guix utils) #:select (bytevector->b...
780b1d1fea94bf2afb415ea64368f7204549587cb121cb4ed81d6e0b2ac9355c
thheller/shadow-cljs
client.cljs
(ns shadow.cljs.npm.client (:require [cljs.reader :as reader] ["readline" :as rl] ["net" :as node-net] ["fs" :as fs] [shadow.cljs.npm.util :as util] [clojure.string :as str])) (defn socket-data [data exit-token error-token] (let [txt (.toString data)] ...
null
https://raw.githubusercontent.com/thheller/shadow-cljs/ba0a02aec050c6bc8db1932916009400f99d3cce/src/main/shadow/cljs/npm/client.cljs
clojure
without a prompt we can't autocomplete assume that everything we send is (read) which reads something we can never autocomplete and only a new prompt enables it FIXME: this is an ugly hack that will be removed soon its just a quick way to interact with the server without a proper API protocol
(ns shadow.cljs.npm.client (:require [cljs.reader :as reader] ["readline" :as rl] ["net" :as node-net] ["fs" :as fs] [shadow.cljs.npm.util :as util] [clojure.string :as str])) (defn socket-data [data exit-token error-token] (let [txt (.toString data)] ...
e7b7146b53678e67f1375cc8c4c3b6aeb3c71f7589ad791cdb96dd14fe83e7c3
janestreet/base_quickcheck
observer.mli
* Observers create random functions . { ! } creates a random function using an observer for the input type and a generator for the output type . using an observer for the input type and a generator for the output type. *) open! Base type -'a t = 'a Observer0.t * { 2 Basic Observers } (** Produces an obse...
null
https://raw.githubusercontent.com/janestreet/base_quickcheck/b3dc5bda5084253f62362293977e451a6c4257de/src/observer.mli
ocaml
* Produces an observer that treats all values as equivalent. Random functions generated using this observer will be constant with respect to the value(s) it observes. * Produces an observer that generates random inputs for a given function, calls the function on them, then observes the corresponding outputs. ...
* Observers create random functions . { ! } creates a random function using an observer for the input type and a generator for the output type . using an observer for the input type and a generator for the output type. *) open! Base type -'a t = 'a Observer0.t * { 2 Basic Observers } val opaque : _ t * ...
b232ffe46f6694cc74c8510cf64deee421d4ada8d36038c873225fb52cd638f1
dktr0/Punctual
Test.hs
module Sound.Punctual.Test where import Data.Time import Data.Tempo import Data.Map as Map import Data.IntMap as IntMap import Data.Text import Data.Text.IO as T import Sound.Punctual.Program import Sound.Punctual.Parser import Sound.Punctual.FragmentShader testFragmentShader :: Text -> IO () testFragmentShader x = ...
null
https://raw.githubusercontent.com/dktr0/Punctual/3ded56b274e59ba99b620cd534e029fad6328218/library-src/Sound/Punctual/Test.hs
haskell
module Sound.Punctual.Test where import Data.Time import Data.Tempo import Data.Map as Map import Data.IntMap as IntMap import Data.Text import Data.Text.IO as T import Sound.Punctual.Program import Sound.Punctual.Parser import Sound.Punctual.FragmentShader testFragmentShader :: Text -> IO () testFragmentShader x = ...
b8203117391f52ac037229003f6baf5f0be80883c22c67c9534da228ee8bc656
patrickt/bracer
Internal.hs
{-# LANGUAGE RankNTypes #-} module Language.Bracer.Backends.C.Parser.Internal where import Prelude () import Overture hiding (try) import Language.Bracer.Syntax.Names import Control.Monad.State import Data.Default import Data.HashMap.Lazy (HashMap) import Text.Trifecta import Text.Parser.Token...
null
https://raw.githubusercontent.com/patrickt/bracer/ebad062d421f7678ddafc442245e361c0423cb1b/Language/Bracer/Backends/C/Parser/Internal.hs
haskell
# LANGUAGE RankNTypes #
module Language.Bracer.Backends.C.Parser.Internal where import Prelude () import Overture hiding (try) import Language.Bracer.Syntax.Names import Control.Monad.State import Data.Default import Data.HashMap.Lazy (HashMap) import Text.Trifecta import Text.Parser.Token.Style newtype CParser ...