_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 |
|---|---|---|---|---|---|---|---|---|
1d31cd71bac2fde1fe570487a06fb817515e381f235326e095290cabbe2eb8d1 | thi-ng/demos | project.clj | (defproject ws-ldn-11-ex05b "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url ""
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.8.51"]
[thi.ng/geom "0.0.1178-SNAPSHOT"]
[reagent "0.5.1"]]
:plugins [[lein-figwheel "... | null | https://raw.githubusercontent.com/thi-ng/demos/048cd131099a7db29be56b965c053908acad4166/ws-ldn-11/day2/ex05b/project.clj | clojure | (defproject ws-ldn-11-ex05b "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url ""
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.8.51"]
[thi.ng/geom "0.0.1178-SNAPSHOT"]
[reagent "0.5.1"]]
:plugins [[lein-figwheel "... | |
ffbbcb33d000bbef447f7f604987b2ef25d712a9b1d7cda7b79f056897df20b4 | lockie/racket-sdl2 | simple.rkt | #lang racket/base
;; NOTE: this is mere translation of
(require sdl2)
(define (main)
(unless (zero? (SDL_Init 'SDL_INIT_EVERYTHING))
(eprintf "SDL_Init Error: ~a\n" (SDL_GetError))
(exit 1))
(define win
(SDL_CreateWindow "Hello World!" 100 100 620 387 'SDL_WINDOW_SHOWN))
(unless ... | null | https://raw.githubusercontent.com/lockie/racket-sdl2/a25bfa28e32c60f8219eb712255fa5b07e3a8ad5/examples/simple.rkt | racket | NOTE: this is mere translation of | #lang racket/base
(require sdl2)
(define (main)
(unless (zero? (SDL_Init 'SDL_INIT_EVERYTHING))
(eprintf "SDL_Init Error: ~a\n" (SDL_GetError))
(exit 1))
(define win
(SDL_CreateWindow "Hello World!" 100 100 620 387 'SDL_WINDOW_SHOWN))
(unless win
(eprintf "SDL_CreateWindow... |
b912bc0d766cca8b838a3a17b6745294b19dfaeb988830c60fc0463dbf9c3dab | openmusic-project/openmusic | osc.lisp | ;;; -*- mode: lisp -*-
;;;
;;; an implementation of the OSC (Open Sound Control) protocol
;;;
copyright ( C ) 2004 FoAM vzw .
;;;
;;; You are granted the rights to distribute and use this software
under the terms of the Lisp Lesser GNU Public License , known
;;; as the LLGPL. The LLGPL consists of a preamble and th... | null | https://raw.githubusercontent.com/openmusic-project/openmusic/9560c064512a1598cd57bcc9f0151c0815178e6f/OPENMUSIC/code/api/externals/OSC/cl-osc/osc.lisp | lisp | -*- mode: lisp -*-
an implementation of the OSC (Open Sound Control) protocol
You are granted the rights to distribute and use this software
as the LLGPL. The LLGPL consists of a preamble and the LGPL.
Where these conflict, the preamble takes precedence. The LLGPL
is available online at
and is distributed ... | copyright ( C ) 2004 FoAM vzw .
under the terms of the Lisp Lesser GNU Public License , known
nik < >
dependent on sbcl , cmucl or openmcl for float encoding , other suggestions
this is a partial implementation of the OSC protocol which is used
musicians . eg . sc3 , / pd , reaktor / traktorska etc+ ... |
a4a78b5482fe1c0f9587f477726a9f4983fa37196883b99798511967e55c3ac5 | Element84/clj-gdal | dataset_test.clj | (ns gdal.dataset-test
(:require [clojure.test :refer :all]
[gdal.dataset :as dataset]))
| null | https://raw.githubusercontent.com/Element84/clj-gdal/7e3ded6935d8b06c49e90be911ca9648b5a84205/test/gdal/dataset_test.clj | clojure | (ns gdal.dataset-test
(:require [clojure.test :refer :all]
[gdal.dataset :as dataset]))
| |
05fdb70f83dc9b77da5feb22d0a2b559a2490e85786cf8f1de0ee4920b0a5669 | well-typed/recover-rtti | Classifier.hs | {-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
# LANGUAGE GADTs #
# LANGUAGE KindSignatures #
{-# LANGUAGE LambdaCase #-}
# LANGUAGE QuantifiedConstraints #
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE Stand... | null | https://raw.githubusercontent.com/well-typed/recover-rtti/57c45f9352cda7e385ef9b4c525dbd7b9f979e32/src/Debug/RecoverRTTI/Classifier.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE LambdaCase #
# LANGUAGE RankNTypes #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE StandaloneDeriving #
* Generalizations
* Nested classification
* Mapping
-------------------------------------------------------... | # LANGUAGE GADTs #
# LANGUAGE KindSignatures #
# LANGUAGE QuantifiedConstraints #
# LANGUAGE UndecidableInstances #
module Debug.RecoverRTTI.Classifier (
Classifier
, PrimClassifier(..)
, IsUserDefined(..)
, Classifier_(..)
, Elem(..)
, Elems(..)
, mapClassifier
) where
im... |
8d9ff24e6c042192c2631aca76de37a0d2e9750035b924f5e37b11d0366c1c10 | glguy/advent2020 | Day10.hs | {-# Language QuasiQuotes #-}
|
Module : Main
Description : Day 10 solution
Copyright : ( c ) , 2020
License : ISC
Maintainer :
< >
Module : Main
Description : Day 10 solution
Copyright : (c) Eric Mertens, 2020
License : ISC
Maintainer :
<>
-}
module Main (main) where
... | null | https://raw.githubusercontent.com/glguy/advent2020/ed247131684efa699bd34b846b5d939e9db749fc/execs/Day10.hs | haskell | # Language QuasiQuotes #
|
>>> :main
unused in normal input | |
Module : Main
Description : Day 10 solution
Copyright : ( c ) , 2020
License : ISC
Maintainer :
< >
Module : Main
Description : Day 10 solution
Copyright : (c) Eric Mertens, 2020
License : ISC
Maintainer :
<>
-}
module Main (main) where
import Advent (count)
import ... |
814877300bc8b2423d70d407a8eb5d8ae8db4ff5b3a67ce72a96046a34aa6c57 | seantempesta/expo-cljs-template | dev.cljs | (ns env.dev)
(def hostname "sean-mac")
(def ip "localhost") | null | https://raw.githubusercontent.com/seantempesta/expo-cljs-template/fb85abad30b000c24bb25f430b4f84ccae243cd4/resources/leiningen/new/expo/env/dev/env/dev.cljs | clojure | (ns env.dev)
(def hostname "sean-mac")
(def ip "localhost") | |
c998cba2c837ab7a691093e5a2d1e2140bcb153b67e434135c4a1cdbfb1812e7 | haskell/time | CalendarProps.hs | module Test.Calendar.CalendarProps (
testCalendarProps,
) where
import Data.Time.Calendar.Month
import Data.Time.Calendar.Quarter
import Test.Arbitrary ()
import Test.Tasty
import Test.TestUtil
testYearMonth :: TestTree
testYearMonth = nameTest "YearMonth" $ \m -> case m of
YearMonth y my -> m == YearMonth y ... | null | https://raw.githubusercontent.com/haskell/time/dba6302b244a7b991ee7cac0d16461fddd222965/test/main/Test/Calendar/CalendarProps.hs | haskell | module Test.Calendar.CalendarProps (
testCalendarProps,
) where
import Data.Time.Calendar.Month
import Data.Time.Calendar.Quarter
import Test.Arbitrary ()
import Test.Tasty
import Test.TestUtil
testYearMonth :: TestTree
testYearMonth = nameTest "YearMonth" $ \m -> case m of
YearMonth y my -> m == YearMonth y ... | |
dd3ca9fe08f736a9639c238d4862710318492a460306d571f656cf0c685e21f8 | RefactoringTools/HaRe | SubFun1.expected.hs | module SubFun1 where
--Any unused parameter to a definition can be removed.
--In this example: remove x. The brackets enclosing 'foo' will also be removed.
main :: Int
main = foo + foo
where
foo = h + t where (h,t) = head $ zip [1..10] [3..10]
| null | https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/test/testdata/RmOneParameter/SubFun1.expected.hs | haskell | Any unused parameter to a definition can be removed.
In this example: remove x. The brackets enclosing 'foo' will also be removed. | module SubFun1 where
main :: Int
main = foo + foo
where
foo = h + t where (h,t) = head $ zip [1..10] [3..10]
|
1c9f98c2b2006cb75befa1dd054a9930600e47d71f75c52b8d5bcf5dd78a951f | robert-strandh/Cluster | disassembled-command.lisp | (cl:in-package #:cluster.disassembler)
(defclass disassembled-command (cluster:code-command)
((%instruction-descriptor :initarg :instruction-descriptor
:reader instruction-descriptor)
;; The position of the instruction in the sequence it was decoded
;; from if indeed it was present ... | null | https://raw.githubusercontent.com/robert-strandh/Cluster/370410b1c685f2afd77f959a46ba49923a31a33c/Disassembler/disassembled-command.lisp | lisp | The position of the instruction in the sequence it was decoded
from if indeed it was present in one. | (cl:in-package #:cluster.disassembler)
(defclass disassembled-command (cluster:code-command)
((%instruction-descriptor :initarg :instruction-descriptor
:reader instruction-descriptor)
(%start-position :initarg :start-position :accessor start-position
:initform nil))... |
4891574c7ee91103cf8967bddf6f57ab0e18b498c6a1fe4c8c1ebda80777d55e | adamdoupe/find_ear_rails | yamlNode.mli | -*- Mode : ; indent - tabs - mode : nil -*-
Copyright ( c ) 2007
(** A node in a YAML document. *)
type uri = string
* A fully - qualified URI that indicates the { i type } of the
node .
node. *)
type t =
| SCALAR of uri * string
* [ SCALAR ( type , value ) ] is a scalar node .
| SE... | null | https://raw.githubusercontent.com/adamdoupe/find_ear_rails/38f892f9962ad415a583973caf24fbab1a011be1/diamondback-ruby-0.20090726/ocaml-syck-0.1.1/yaml/yamlNode.mli | ocaml | * A node in a YAML document.
* [SEQUENCE (type, nodes)] is a sequence of nodes.
* [MAPPING (type, map)] is a mapping of keys to values. | -*- Mode : ; indent - tabs - mode : nil -*-
Copyright ( c ) 2007
type uri = string
* A fully - qualified URI that indicates the { i type } of the
node .
node. *)
type t =
| SCALAR of uri * string
* [ SCALAR ( type , value ) ] is a scalar node .
| SEQUENCE of uri * t list
| MAPPI... |
2b7ce45e72c49a8d33f2eddd8d90e0e43fdc5e70c6d650e3c6bcd70bcdc26af1 | acl2/acl2 | svtv-stobj-defsvtv@useless-runes.lsp | (SV::SVAR-P-WHEN-STRINGP)
(SV::SVARLIST-P-WHEN-STRING-LISTP
(37 10 (:REWRITE SV::SVAR-P-WHEN-MEMBER-EQUAL-OF-SVARLIST-P))
(26 20 (:REWRITE SV::SVARLIST-P-WHEN-SUBSETP-EQUAL))
(17 5 (:REWRITE SV::SVAR-P-OF-CAR-WHEN-SVARLIST-P))
(15 15 (:REWRITE DEFAULT-CAR))
(15 1 (:DEFINITION MEMBER-EQUAL))
(14 2 (:REWRITE SV::SV... | null | https://raw.githubusercontent.com/acl2/acl2/f64742cc6d41c35f9d3f94e154cd5fd409105d34/books/centaur/sv/svtv/.sys/svtv-stobj-defsvtv%40useless-runes.lsp | lisp | (SV::SVAR-P-WHEN-STRINGP)
(SV::SVARLIST-P-WHEN-STRING-LISTP
(37 10 (:REWRITE SV::SVAR-P-WHEN-MEMBER-EQUAL-OF-SVARLIST-P))
(26 20 (:REWRITE SV::SVARLIST-P-WHEN-SUBSETP-EQUAL))
(17 5 (:REWRITE SV::SVAR-P-OF-CAR-WHEN-SVARLIST-P))
(15 15 (:REWRITE DEFAULT-CAR))
(15 1 (:DEFINITION MEMBER-EQUAL))
(14 2 (:REWRITE SV::SV... | |
b44ab1d1256af9c4c3e562817c55c84e40f9fd81bd5156002ff6c9ec81abd15e | coq/coq | evd.mli | (************************************************************************)
(* * The Coq Proof Assistant / The Coq Development Team *)
v * Copyright INRIA , CNRS and contributors
< O _ _ _ , , * ( see version control and CREDITS file for authors & dates )
\VV/ * * *... | null | https://raw.githubusercontent.com/coq/coq/c1bf187bdd7a7b660692a97e0a36c6bf1acd0647/engine/evd.mli | ocaml | **********************************************************************
* The Coq Proof Assistant / The Coq Development Team
// * This file is distributed under the terms of the
* (see LICENSE file for the text of the license)
************************************... | v * Copyright INRIA , CNRS and contributors
< O _ _ _ , , * ( see version control and CREDITS file for authors & dates )
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* GNU Lesser Gener... |
89bce6347bb82971b627e30daf7cabd1397cc012379fb92362d804636ac93bd6 | haskell-compat/base-compat | Compat.hs | # LANGUAGE CPP , NoImplicitPrelude , PackageImports #
module Foreign.ForeignPtr.Compat (
module Base
) where
import "base-compat" Foreign.ForeignPtr.Compat as Base
| null | https://raw.githubusercontent.com/haskell-compat/base-compat/847aa35c4142f529525ffc645cd035ddb23ce8ee/base-compat-batteries/src/Foreign/ForeignPtr/Compat.hs | haskell | # LANGUAGE CPP , NoImplicitPrelude , PackageImports #
module Foreign.ForeignPtr.Compat (
module Base
) where
import "base-compat" Foreign.ForeignPtr.Compat as Base
| |
cfddb14f01134cc57e4bf15a629858eacd1fac90744b20c8f22b502ff150e2b8 | xapi-project/ocaml-xen-lowlevel-libs | xenguest.ml |
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc.
*
* This program 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 ; version 2.1 only . with the special
* exception on linking describe... | null | https://raw.githubusercontent.com/xapi-project/ocaml-xen-lowlevel-libs/ef9df16b5655180e7d8ebc2dca919c8bdacd963a/xenguest-4.2/xenguest.ml | ocaml | * Bindings to xenguest.
* open a xenguest handle
* close a xenguest handle
* build a linux domain
* build a hvm domain
* resume an uncooperative domain
* restore a domain
* save a domain |
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc.
*
* This program 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 ; version 2.1 only . with the special
* exception on linking describe... |
44f708bd69ba859969bc95079eae3583d4f65fee2a3a8050db06795c7e6bece9 | unbounce/encors | aleph.clj | (ns com.unbounce.encors.aleph
"CORS Middleware with aleph deferred support.
This namespace requires you to have aleph/manifold on the classpath."
(:require [manifold.deferred :as d]
[com.unbounce.encors.core :as core]))
(defn wrap-cors
[handler cors-policy]
(core/build-cors-wrapper handler cors-... | null | https://raw.githubusercontent.com/unbounce/encors/323d7e06816d0767197727ddb4720beeaca5822e/src/com/unbounce/encors/aleph.clj | clojure | (ns com.unbounce.encors.aleph
"CORS Middleware with aleph deferred support.
This namespace requires you to have aleph/manifold on the classpath."
(:require [manifold.deferred :as d]
[com.unbounce.encors.core :as core]))
(defn wrap-cors
[handler cors-policy]
(core/build-cors-wrapper handler cors-... | |
5d20c4a47bf1aa6132b886a741062776de8544d6284f3e35d653092d0172f5a9 | rlepigre/ocaml-earley | calc_prio_left5.ml | open Generate_calc
open Earley_core.Earley
type calc_prio = Sum | Prod | Pow | Atom
let prio_to_string = function
| Sum -> "Sum"
| Prod -> "Prod"
| Pow -> "Pow"
| Atom -> "Atom"
let float_re = ''[0-9]+\([.][0-9]+\)?\([eE][-+]?[0-9]+\)?''
let float_num = parser
f:RE(float_re) -> float_of_string f
let prod... | null | https://raw.githubusercontent.com/rlepigre/ocaml-earley/66d7acb2b22edae0c2f7d64ef2a50fa70d1ed112/tests/calc_prio/calc_prio_left5.ml | ocaml | The main loop | open Generate_calc
open Earley_core.Earley
type calc_prio = Sum | Prod | Pow | Atom
let prio_to_string = function
| Sum -> "Sum"
| Prod -> "Prod"
| Pow -> "Pow"
| Atom -> "Atom"
let float_re = ''[0-9]+\([.][0-9]+\)?\([eE][-+]?[0-9]+\)?''
let float_num = parser
f:RE(float_re) -> float_of_string f
let prod... |
0f3e69d0b113af9731825a8d4399790ed0f0e95bcf598d6428a50715fe9b16e9 | rajasegar/ccl-demo-raja | films.lisp | (in-package :ccl-demo-raja)
;; Films page
(defun films-page ()
(setq *film-results* (cl-json:decode-json-from-string
(drakma:http-request "/"
:method :get)))
(demo-page (:title "Films - Star Wars" :active "/films")
(:div :class "grid"
(:div
:class "left-panel"
(list-component (rest (... | null | https://raw.githubusercontent.com/rajasegar/ccl-demo-raja/d30e82ba85f8ee4ed25b471f3f8d3f29e483c039/views/films.lisp | lisp | Films page | (in-package :ccl-demo-raja)
(defun films-page ()
(setq *film-results* (cl-json:decode-json-from-string
(drakma:http-request "/"
:method :get)))
(demo-page (:title "Films - Star Wars" :active "/films")
(:div :class "grid"
(:div
:class "left-panel"
(list-component (rest (assoc :results... |
0e0b2de551970e6e505e334ddb8cd98d2528cb1d64a3d830b77df101971db20b | rtoy/cmucl | read-eof.lisp | "flug"
"glog"
;;; This is a test.
(defun test ()
foo
(bar (baz a b))
| null | https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/tests/read-eof.lisp | lisp | This is a test. | "flug"
"glog"
(defun test ()
foo
(bar (baz a b))
|
c80d330b4c1f55e4842ccada28f1585f03e08824387c22a7ffd5fde1f9641eb1 | sylane/erod | erod_registry.erl | %%% ==========================================================================
Copyright ( c ) 2014 < >
%%%
%%% This file is part of erod.
%%%
%%% Erod 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 , eit... | null | https://raw.githubusercontent.com/sylane/erod/b0c435f8546ea38b1501d3e22614fe7951c61c9a/apps/erod/src/erod_registry.erl | erlang | ==========================================================================
This file is part of erod.
Erod 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 impli... | Copyright ( c ) 2014 < >
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
You should have received a copy of the GNU General Public License
2014 < >
@author < >
-module(erod_registry).
-author('Sebastien Merl... |
12f4c1ae3a09aa59ca696e608559aef045cad712281e198da2549c4683fa48f0 | bollu/coremlir | Pretty.hs | {-# LANGUAGE OverloadedStrings #-}
# LANGUAGE FlexibleInstances #
# LANGUAGE RecordWildCards #
# OPTIONS_GHC -fno - warn - orphans #
module GhcDump.Pretty
( Pretty(..)
, module GhcDump.Pretty
) where
import GhcDump.Ast
import GhcDump.Util
import Data.Ratio
import qualified Data.Text as T
import qualified... | null | https://raw.githubusercontent.com/bollu/coremlir/7ab044051e62c54e8d3f94a38e3d1ecbf49fb2b0/reading/reference-ghc-dump/ghc-dump-util/src/GhcDump/Pretty.hs | haskell | # LANGUAGE OverloadedStrings #
orphan
No parens
Function args; no parens for tycon apps
Infix operator
let-bound type variables: who knew? | # LANGUAGE FlexibleInstances #
# LANGUAGE RecordWildCards #
# OPTIONS_GHC -fno - warn - orphans #
module GhcDump.Pretty
( Pretty(..)
, module GhcDump.Pretty
) where
import GhcDump.Ast
import GhcDump.Util
import Data.Ratio
import qualified Data.Text as T
import qualified Data.ByteString.Char8 as BS
import... |
31c07f2e5d3420366fc1dab473dd6651c02f01be4c33561cc7bf9b50e5ae16e3 | awslabs/s2n-bignum | bignum_normalize.ml |
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved .
* SPDX - License - Identifier : Apache-2.0 OR ISC
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0 OR ISC
*)
(* =================================================================... | null | https://raw.githubusercontent.com/awslabs/s2n-bignum/824c15f908d7a343af1b2f378cfedd36e880bdde/arm/proofs/bignum_normalize.ml | ocaml | =========================================================================
Normalization of a bignum in-place in constant time.
=========================================================================
*** print_literal_from_elf "arm/generic/bignum_normalize.o";;
***
------------------------... |
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved .
* SPDX - License - Identifier : Apache-2.0 OR ISC
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0 OR ISC
*)
let bignum_normalize_mc =
define_assert_from_elf "bignum_normali... |
2ae8bb6557155c7bd3bf8703b3909d5105876aefa400eb0ec34d14d29a3eb5ca | appleshan/cl-http | http-client-substrate-4-1.lisp | -*- Mode : LISP ; Syntax : Common - Lisp ; Package : USER ; Base : 10 ; Patch - File : t -*-
Patch file for HTTP - CLIENT - SUBSTRATE version 4.1
Reason : Function HTTP::HANDLE - CLIENT - CONNECTION - CONDITION : add network - stream - closed and connection - no - more - data to 408 conditions .
Written by JC... | null | https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/lispm/client/patch/http-client-substrate-4/http-client-substrate-4-1.lisp | lisp | Syntax : Common - Lisp ; Package : USER ; Base : 10 ; Patch - File : t -*-
DOMAIN - FIXES.LISP.33 ) ,
MAILBOX - FORMAT.LISP.24 ) ,
MAILER - FIXES.LISP.15 ) ,
Patch TCP hang on close when client drops connection. (from HTTP:LISPM;SERVER;TCP-PATCH-HANG-ON-CLOSE.LISP.10),
FORMAT.LISP.20 ) ,
STATICE - PATCH.LISP.3 ) ,
ST... | Patch file for HTTP - CLIENT - SUBSTRATE version 4.1
Reason : Function HTTP::HANDLE - CLIENT - CONNECTION - CONDITION : add network - stream - closed and connection - no - more - data to 408 conditions .
Written by JCMa , 12/03/00 14:30:38
while running on FUJI - VLM from FUJI:/usr / lib / symbolics / ComLink... |
a872f495d965d00819e2793c7206501e700bbe06199a9b5952d57ac0772a49bc | emqx/ehttpc | ehttpc_appup_tests.erl | %%--------------------------------------------------------------------
Copyright ( c ) 2021 - 2022 EMQ Technologies Co. , Ltd. All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy o... | null | https://raw.githubusercontent.com/emqx/ehttpc/3a32fff7b73e4c902683fd8c216bc1cd78bb2210/test/ehttpc_appup_tests.erl | erlang | --------------------------------------------------------------------
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ... | Copyright ( c ) 2021 - 2022 EMQ Technologies Co. , Ltd. All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(ehttpc_appup_tests).
-include_lib("eunit/include/eunit.hrl").
First version used in ... |
b3526337ab4d3c535292fa1d2bfa4fa9ca608d79bdf02b1c3e195493d46c0113 | tomjridge/imp_fs | v2_usedlist_impl.ml | (** A persistent list that keeps track of blocks that are allocated to
a particular object. *)
open Tjr_freelist
(** NOTE the in-memory state of the usedlist is opaque to us; after
operations, we check the origin to see if it has changed and then
possibly flush/barrier/sync *)
module Usedlist = struct
ty... | null | https://raw.githubusercontent.com/tomjridge/imp_fs/8eb2bce99008be34b17aa5f4eb031d1be2b49e69/src/common/v2_usedlist_impl.ml | ocaml | * A persistent list that keeps track of blocks that are allocated to
a particular object.
* NOTE the in-memory state of the usedlist is opaque to us; after
operations, we check the origin to see if it has changed and then
possibly flush/barrier/sync
$(PIPE2SH("""sed -n '/usedlist_ops:[ ]/,/}/p' >GEN.usedlis... |
open Tjr_freelist
module Usedlist = struct
type 'blk_id origin = 'blk_id Pl_origin.pl_origin[@@deriving bin_io]
* usedlist_ops : The operations provided by the usedlist ; in
addition we need to integrate the freelist with the usedlist :
alloc_via_usedlist
$ ( ASSUME("""all object ope... |
48283b343f911f1aadd6e15e11b1964e124a2d01bcd8dcb44c6d928bbfe95c44 | williamleferrand/accretio | children_schoolbus.ml | (*
* children_schoolbus
*
* this playbook organizes a preschool on wheels by proposing activities, booking a bus
* and organizing pickups/dropoffs
*
*
*
*)
open Lwt
open Printf
open CalendarLib
open Api
open Eliom_content.Html5
open Eliom_content.Html5.D
open Message_parsers
open Toolbox
open Ys_uid
op... | null | https://raw.githubusercontent.com/williamleferrand/accretio/394f855e9c2a6a18f0c2da35058d5a01aacf6586/playbooks/children_schoolbus.ml | ocaml |
* children_schoolbus
*
* this playbook organizes a preschool on wheels by proposing activities, booking a bus
* and organizing pickups/dropoffs
*
*
*
tags **********************************************************************
keys **********************************************************************
some... |
open Lwt
open Printf
open CalendarLib
open Api
open Eliom_content.Html5
open Eliom_content.Html5.D
open Message_parsers
open Toolbox
open Ys_uid
open Children_schoolbus_types
open Children_schoolbus_tools
let author = ""
let name = "Children schoolbus"
let description = "this playbook organizes a preschool on ... |
101f2500e7ff00918839264016e3cbce2d8461414b346386c931427e7835aec7 | cram2/cram | control-turtlesim.lisp | ;;;
Copyright ( c ) 2017 , < >
< >
< >
;;; 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
;;; ... | null | https://raw.githubusercontent.com/cram2/cram/dcb73031ee944d04215bbff9e98b9e8c210ef6c5/cram_tutorials/cram_beginner_tutorial/src/control-turtlesim.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.
* Redi... | Copyright ( c ) 2017 , < >
< >
< >
* Neither the name of the Institute for Artificial Intelligence/
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS "
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED . IN NO EVENT SHALL THE C... |
dac31f22c4082f8d71e7ccf21ecfad0cfd993d95f72c38eafbdcfb63b944cb71 | inaka/cowboy_swagger | cowboy_swagger_test_utils.erl | -module(cowboy_swagger_test_utils).
-export([ all/1
, init_per_suite/1
, end_per_suite/1
]).
-export([ api_call/2
, api_call/4
]).
-type response() :: #{ status_code => integer()
, headers => [tuple()]
, body => binary()
... | null | https://raw.githubusercontent.com/inaka/cowboy_swagger/500bf6a6ad73c2fb29c980f26c7deb07e610fbf4/test/cowboy_swagger_test_utils.erl | erlang | -module(cowboy_swagger_test_utils).
-export([ all/1
, init_per_suite/1
, end_per_suite/1
]).
-export([ api_call/2
, api_call/4
]).
-type response() :: #{ status_code => integer()
, headers => [tuple()]
, body => binary()
... | |
be729893197abf70e7e83a944fce848208ee301ab2931fe74f72410a527feea7 | flipstone/orville | SetClauseList.hs | # LANGUAGE GeneralizedNewtypeDeriving #
|
Module : Orville . PostgreSQL.Internal . Expr . Update . SetClauseList
Copyright : Flipstone Technology Partners 2021
License : MIT
Module : Orville.PostgreSQL.Internal.Expr.Update.SetClauseList
Copyright : Flipstone Technology Partners 2021
License : MIT... | null | https://raw.githubusercontent.com/flipstone/orville/269051048bbec5acc0f49bd66080929b5d17248d/orville-postgresql-libpq/src/Orville/PostgreSQL/Internal/Expr/Update/SetClauseList.hs | haskell | # LANGUAGE GeneralizedNewtypeDeriving #
|
Module : Orville . PostgreSQL.Internal . Expr . Update . SetClauseList
Copyright : Flipstone Technology Partners 2021
License : MIT
Module : Orville.PostgreSQL.Internal.Expr.Update.SetClauseList
Copyright : Flipstone Technology Partners 2021
License : MIT... | |
8a5427a306a88cf87f279b2b5aa64c2781b15f5e17885df72e6f9c9edcfc5d00 | ocaml-ppx/ocamlformat | unclosed_sig.ml | module K : sig
type t
| null | https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/9324ea439a77b4f3a31e9302b97ce1812cf8f17d/vendor/parser-recovery/test/expect/structure/unclosed_sig.ml | ocaml | module K : sig
type t
| |
bfacf05861a331dc502f0865aff7775a6cc36a33309f8a38646ea215f57a6296 | mikera/clisk | core.clj | (ns
^{:author "mikera"
:doc "Core clisk image generation functions"}
clisk.core
(:import clisk.Util)
(:import [java.awt.image BufferedImage])
(:import [mikera.gui Frames])
(:import [javax.swing JComponent])
(:use [mikera.cljutils core])
(:require [clojure test])
(:require [mikera.image.core :as i... | null | https://raw.githubusercontent.com/mikera/clisk/44dd35fabbae68ad44f0e8ac2dec4c580203f7b9/src/main/clojure/clisk/core.clj | clojure | scale factor | (ns
^{:author "mikera"
:doc "Core clisk image generation functions"}
clisk.core
(:import clisk.Util)
(:import [java.awt.image BufferedImage])
(:import [mikera.gui Frames])
(:import [javax.swing JComponent])
(:use [mikera.cljutils core])
(:require [clojure test])
(:require [mikera.image.core :as i... |
bf64ab198b8a4d30d349cb2388bd1e49ec695ef0b76b4c6a863e46e3732ebb9f | bhaskara/programmable-reinforcement-learning | rbe-2tbn.lisp | (defpackage resource-balance-env
(:documentation "Package for the resource balance environment
Creation
--------
make-rbe-2tbn
make-rbe-env
Actions
-------
N,S,E,W,P,D,R
Accessing the state
-------------------
pos
make-rbe-env-state
status
gold
wood
max-gold
max-wood
world-map
num-peas
base... | null | https://raw.githubusercontent.com/bhaskara/programmable-reinforcement-learning/8afc98116a8f78163b3f86076498d84b3f596217/lisp/envs/res-balance/rbe-2tbn.lisp | lisp |
state rep
TODO : should replace the env params with a single object
variable
descriptions
peasant pos
peasant status
for now, because it's a pain to specify the actual set
pickup
if gathering a resource
if just dropped off something
if doing a dropoff
in default case, status doesn't... | (defpackage resource-balance-env
(:documentation "Package for the resource balance environment
Creation
--------
make-rbe-2tbn
make-rbe-env
Actions
-------
N,S,E,W,P,D,R
Accessing the state
-------------------
pos
make-rbe-env-state
status
gold
wood
max-gold
max-wood
world-map
num-peas
base... |
abb3b5b7b137547306d675c80c30f290dd8866957a8b0ef8c613c1123253b2ef | MaskRay/OJHaskell | digits-square-board.hs | import Control.Monad
import Data.Bits
import Data.IORef
import Data.List
import Data.Functor
import qualified Data.Vector.Unboxed as V
import qualified Data.Vector.Unboxed.Mutable as MV
import Text.Printf
calc :: Int -> V.Vector Int -> IO Int
calc n a = do
s <- MV.new $ (n+1)^2
forM_ [0..n] $ \i ->
forM_ [0..n... | null | https://raw.githubusercontent.com/MaskRay/OJHaskell/ba24050b2480619f10daa7d37fca558182ba006c/HackerRank/contests/5-days-of-game-theory/digits-square-board.hs | haskell | V.freeze s >>= print
go 0 >>= printf "%d %d %d %d -- %d\n" i j ii jj | import Control.Monad
import Data.Bits
import Data.IORef
import Data.List
import Data.Functor
import qualified Data.Vector.Unboxed as V
import qualified Data.Vector.Unboxed.Mutable as MV
import Text.Printf
calc :: Int -> V.Vector Int -> IO Int
calc n a = do
s <- MV.new $ (n+1)^2
forM_ [0..n] $ \i ->
forM_ [0..n... |
6aaa973cd31b4b28d671c85b68acbc73b1002462065ed65830fd65176188793f | sheijk/ppx_string_interpolate | fail_dollar_at_end_of_string.ml | open Printf
let () =
print_string [%str "hello $"];
print_newline()
| null | https://raw.githubusercontent.com/sheijk/ppx_string_interpolate/d363d3f71696d2c985bbe70ae069cf0a232c1936/src_test/fail_dollar_at_end_of_string.ml | ocaml | open Printf
let () =
print_string [%str "hello $"];
print_newline()
| |
8532b62055300e5316f05e0d861d3f4be8dc6d99a998a319a7b869fc2c105b71 | gedge-platform/gedge-platform | ranch_crc32c.erl | Copyright ( c ) 2018 - 2021 , < >
%%
%% Permission to use, copy, modify, and/or distribute this software for any
%% purpose with or without fee is hereby granted, provided that the above
%% copyright notice and this permission notice appear in all copies.
%%
THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISC... | null | https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/ranch/src/ranch_crc32c.erl | erlang |
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVE... | Copyright ( c ) 2018 - 2021 , < >
THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES
ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN
-module(ranch_crc32c).
-export([crc32c/1]).
-export(... |
284230a41b01c8d4bd5b3550df7a8b3c658c9d079031aa6350dc57ea51990bac | kupl/VeriSmart-public | reEntrancy.ml | open Query
open Vlang
open Lang
open Semantics
open Global
let collect_queries ?(extern_ctx=false) : Global.t -> vformula -> Path.t -> cfg -> Node.t -> query list
= fun global vf path g node ->
let stmt = find_stmt node g in
let mid = Path.get_mid ( snd path ) in
let fkey = Path.get_fkey path in
let f = FuncMa... | null | https://raw.githubusercontent.com/kupl/VeriSmart-public/99be7ba88b61994f1ed4c0d3a8e6a6db0f790431/src/checker/reEntrancy.ml | ocaml | let b0 = (is_public_func f || is_external_func f) && BatList.last mid = node in
check at the end of basic paths only, for efficiency (vs. all assignments) | open Query
open Vlang
open Lang
open Semantics
open Global
let collect_queries ?(extern_ctx=false) : Global.t -> vformula -> Path.t -> cfg -> Node.t -> query list
= fun global vf path g node ->
let stmt = find_stmt node g in
let mid = Path.get_mid ( snd path ) in
let fkey = Path.get_fkey path in
let f = FuncMa... |
50d9ae311d72430cab3315da492eca32ab53847841ef11a30c373d285282df22 | pfdietz/ansi-test | name-char.lsp | ;-*- Mode: Lisp -*-
Author :
Created : Sun Aug 29 17:14:03 2004
;;;; Contains: Tests of NAME-CHAR
(deftest name-char.1
(name-char.1.body)
())
(deftest name-char.2
(loop for s in '("RubOut" "PAGe" "BacKspace" "RetUrn" "Tab" "LineFeed"
"SpaCE" "NewLine")
unless
... | null | https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/characters/name-char.lsp | lisp | -*- Mode: Lisp -*-
Contains: Tests of NAME-CHAR
Error tests | Author :
Created : Sun Aug 29 17:14:03 2004
(deftest name-char.1
(name-char.1.body)
())
(deftest name-char.2
(loop for s in '("RubOut" "PAGe" "BacKspace" "RetUrn" "Tab" "LineFeed"
"SpaCE" "NewLine")
unless
(let ((c1 (name-char (string-upcase s)))
(... |
a3e7e115952de0ac9f097ce2e632ffbd8fa5c6c38ef99397de47a1806dc74290 | clojure-interop/java-jdk | SynthSliderUI.clj | (ns javax.swing.plaf.synth.SynthSliderUI
"Provides the Synth L&F UI delegate for
JSlider."
(:refer-clojure :only [require comment defn ->])
(:import [javax.swing.plaf.synth SynthSliderUI]))
(defn *create-ui
"Creates a new UI object for the given component.
c - component to create UI object for - `javax.sw... | null | https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.swing/src/javax/swing/plaf/synth/SynthSliderUI.clj | clojure | (ns javax.swing.plaf.synth.SynthSliderUI
"Provides the Synth L&F UI delegate for
JSlider."
(:refer-clojure :only [require comment defn ->])
(:import [javax.swing.plaf.synth SynthSliderUI]))
(defn *create-ui
"Creates a new UI object for the given component.
c - component to create UI object for - `javax.sw... | |
c656dfcf5ab60b42c1e60f5267ceee8a15a4880d2944713a6df1e25b8a64718d | SimulaVR/godot-haskell | PacketPeerStream.hs | # LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving ,
TypeFamilies , TypeOperators , FlexibleContexts , DataKinds ,
MultiParamTypeClasses #
TypeFamilies, TypeOperators, FlexibleContexts, DataKinds,
MultiParamTypeClasses #-}
module Godot.Core.PacketPeerStream
(Godot.Core.PacketPeerStream.get_in... | null | https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/PacketPeerStream.hs | haskell | | The wrapped @StreamPeer@ object.
| The wrapped @StreamPeer@ object.
| The wrapped @StreamPeer@ object.
| The wrapped @StreamPeer@ object. | # LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving ,
TypeFamilies , TypeOperators , FlexibleContexts , DataKinds ,
MultiParamTypeClasses #
TypeFamilies, TypeOperators, FlexibleContexts, DataKinds,
MultiParamTypeClasses #-}
module Godot.Core.PacketPeerStream
(Godot.Core.PacketPeerStream.get_in... |
836906ff8091ff3dc345a5fee16e77c9fe45730770e92e40e396e17d2c28b13d | bmeurer/ocaml-experimental | frx_mem.ml | (***********************************************************************)
(* *)
MLTk , Tcl / Tk interface of Objective Caml
(* *)
, , and ... | null | https://raw.githubusercontent.com/bmeurer/ocaml-experimental/fe5c10cdb0499e43af4b08f35a3248e5c1a8b541/otherlibs/labltk/frx/frx_mem.ml | ocaml | *********************************************************************
described in file LICENSE found in the... | MLTk , Tcl / Tk interface of Objective Caml
, , and
projet Cristal , INRIA Rocquencourt
, Kyoto University RIMS
Copyright 2002 Institut National de Recherche en Informatique et
en Automatique and... |
362299cf68f21ccfd25e1676cd4c69b401e838f70be051baf4d7b3d948ccf885 | lpw25/ocaml-typed-effects | test7.ml | effect E : string
let _ =
try print_endline @@ "Hello" ^ perform E with
| effect E k ->
let k' = Obj.clone_continuation k in
continue k "";
continue k' ", again!"
| null | https://raw.githubusercontent.com/lpw25/ocaml-typed-effects/79ea08b285c1fd9caf3f5a4d2aa112877f882bea/testsuite/tests/effects/test7.ml | ocaml | effect E : string
let _ =
try print_endline @@ "Hello" ^ perform E with
| effect E k ->
let k' = Obj.clone_continuation k in
continue k "";
continue k' ", again!"
| |
c0a07dcfebcdd53e5eaa1d614c0f2aec092a8156e274b06330685d29729f26af | fission-codes/fission | Class.hs | module Fission.CLI.PubSub.Class
( MonadPubSub (..)
, module Fission.CLI.PubSub.Topic.Types
) where
import Data.Kind
import qualified RIO.ByteString.Lazy as Lazy
import Servant.Client.Core (BaseUrl (..))
import Fission.Prelude
import Fission.CLI.Pub... | null | https://raw.githubusercontent.com/fission-codes/fission/11d14b729ccebfd69499a534445fb072ac3433a3/fission-cli/library/Fission/CLI/PubSub/Class.hs | haskell | module Fission.CLI.PubSub.Class
( MonadPubSub (..)
, module Fission.CLI.PubSub.Topic.Types
) where
import Data.Kind
import qualified RIO.ByteString.Lazy as Lazy
import Servant.Client.Core (BaseUrl (..))
import Fission.Prelude
import Fission.CLI.Pub... | |
14feb36d91b8e6d977454070d77c9e5b78cc608b8471e9d59c51dc1512b2579a | mbj/stratosphere | ModelBiasBaselineConfigProperty.hs | module Stratosphere.SageMaker.ModelBiasJobDefinition.ModelBiasBaselineConfigProperty (
module Exports, ModelBiasBaselineConfigProperty(..),
mkModelBiasBaselineConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
impo... | null | https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/sagemaker/gen/Stratosphere/SageMaker/ModelBiasJobDefinition/ModelBiasBaselineConfigProperty.hs | haskell | # SOURCE # | module Stratosphere.SageMaker.ModelBiasJobDefinition.ModelBiasBaselineConfigProperty (
module Exports, ModelBiasBaselineConfigProperty(..),
mkModelBiasBaselineConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
impo... |
f890e1a1c3a3ba1f0542734b75857ef039dea36c05d4babb5bf01bea10c95531 | Carnap/Carnap | Database.hs | {-# LANGUAGE DeriveGeneric #-}
# LANGUAGE NamedFieldPuns #
module Util.Database where
import Carnap.GHCJS.SharedTypes (ProblemSource (..))
import Import.NoFoundation
import Util.API
import Util.Data (BookAssignmentTable)
newtype CachedMaybeUser = CachedMaybeUser... | null | https://raw.githubusercontent.com/Carnap/Carnap/7abdb1bb7800ebf957b1557f43413df7b19d8c1f/Carnap-Server/Util/Database.hs | haskell | # LANGUAGE DeriveGeneric #
retrieve user by ident, caching to avoid multiple DB lookups
| retrieve a UserId = Key User, from the user's ident.
| retrieve an ident from a UserId
| given a UserId, return Just the user data or Nothing
| class entities by instructor Ident - returns owned and co-instructed classes
| o... | # LANGUAGE NamedFieldPuns #
module Util.Database where
import Carnap.GHCJS.SharedTypes (ProblemSource (..))
import Import.NoFoundation
import Util.API
import Util.Data (BookAssignmentTable)
newtype CachedMaybeUser = CachedMaybeUser { unCacheMaybeUser :: Maybe (En... |
b5d3644bc51d8f581b63c42f718ec91cbc2ecceee6adb4e3f315f613c1145db4 | huangz1990/SICP-answers | test-41-remove-triples-not-equal-to.scm | (load "test-manager/load.scm")
(load "41-unique-triples.scm")
(load "41-remove-triples-not-equal-to.scm")
(define-each-check
(equal? (remove-triples-not-equal-to 5 (unique-triples 6))
'())
(equal? (remove-triples-not-equal-to 6 (unique-triples 6))
'((3 2 1)))
)
(run-registered-tests... | null | https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp2/code/test-41-remove-triples-not-equal-to.scm | scheme | (load "test-manager/load.scm")
(load "41-unique-triples.scm")
(load "41-remove-triples-not-equal-to.scm")
(define-each-check
(equal? (remove-triples-not-equal-to 5 (unique-triples 6))
'())
(equal? (remove-triples-not-equal-to 6 (unique-triples 6))
'((3 2 1)))
)
(run-registered-tests... | |
b297d303aa48e6e5e8e9bb8b0433c32c0d716be21efa00c5a0bee36ee91e2648 | spurious/sagittarius-scheme-mirror | scanner.scm | (import (rnrs)
(text yaml scanner)
(text yaml tokens)
(srfi :127)
(srfi :64))
(define (find-index name vec)
(do ((i 0 (+ i 1)))
((eq? name (vector-ref vec i)) i)))
(define-syntax test-record
(syntax-rules ()
((_ "collect" msg rt o ((n v acc) ...) ())
(let* ((rtd (record-type-descriptor rt))
... | null | https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/test/tests/text/yaml/scanner.scm | scheme | (begin (write (list 'n v (acc o))) (newline)) ...
(begin (display 'rt) (write o) (newline))
skip stream-start
\xa0;\x2028;\x2029;"))) | (import (rnrs)
(text yaml scanner)
(text yaml tokens)
(srfi :127)
(srfi :64))
(define (find-index name vec)
(do ((i 0 (+ i 1)))
((eq? name (vector-ref vec i)) i)))
(define-syntax test-record
(syntax-rules ()
((_ "collect" msg rt o ((n v acc) ...) ())
(let* ((rtd (record-type-descriptor rt))
... |
f672de31db4b9d61469182c80f5398a18d985c4456868fefc5eb0c73fd16b9fa | tomas-abrahamsson/gpb | gpb_scan.erl | Copyright ( C ) 2019
%%%
Author : < >
%%%
%%% 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 .
%... | null | https://raw.githubusercontent.com/tomas-abrahamsson/gpb/22910f4f8d8a78190098e5432188123936893e2f/src/gpb_scan.erl | erlang |
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
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 the GN... | Copyright ( C ) 2019
Author : < >
License as published by the Free Software Foundation ; either
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 ... |
bdef238947ce657891ad0b2c03d016bee987d6bb05955d9fbd3e183d93b8aac8 | hopv/MoCHi | pvaAtom.ml | open Util
open Combinator
(** Atoms related to predicate variable applications *)
| null | https://raw.githubusercontent.com/hopv/MoCHi/b0ac0d626d64b1e3c779d8e98cb232121cc3196a/fpat/pvaAtom.ml | ocaml | * Atoms related to predicate variable applications | open Util
open Combinator
|
e172a3ee04a48415cad26733b3441cc3420e3d5fb5b9352a877f21e243a27700 | simnalamburt/snucse.pl | xexp.mli |
* SNU 4190.310 Programming Languages
* Xexp Language Definition and Interpreter
* ( )
* SNU 4190.310 Programming Languages
* Xexp Language Definition and Interpreter
* Jaeseung Choi ()
*)
type xexp =
| Num of int
| Var of string
| Fn of string * xexp
| App of xexp * xexp
| If of xexp * xex... | null | https://raw.githubusercontent.com/simnalamburt/snucse.pl/a130f826c6f27224c88b0dd2e1588f35bccc9ebb/hw7/xexp.mli | ocaml | Value |
* SNU 4190.310 Programming Languages
* Xexp Language Definition and Interpreter
* ( )
* SNU 4190.310 Programming Languages
* Xexp Language Definition and Interpreter
* Jaeseung Choi ()
*)
type xexp =
| Num of int
| Var of string
| Fn of string * xexp
| App of xexp * xexp
| If of xexp * xex... |
2d9734189c53660d7c2e5a24a1b1fec790c5ca3e5334e962c032391a1c7840d3 | berke/aurochs | util.mli | (* Util *)
Copyright ( C)2004 - 2006
Released under the GNU Lesser General Public License version 2.1
val sf : ('a, unit, string) format -> 'a
val first_line : string -> string
val limit : int -> string -> string
val limit_left : int -> string -> string
val for_all_chars : (char ->... | null | https://raw.githubusercontent.com/berke/aurochs/637bdc0d4682772837f9e44112212e7f20ab96ff/util/util.mli | ocaml | Util | Copyright ( C)2004 - 2006
Released under the GNU Lesser General Public License version 2.1
val sf : ('a, unit, string) format -> 'a
val first_line : string -> string
val limit : int -> string -> string
val limit_left : int -> string -> string
val for_all_chars : (char -> bool) -> s... |
b5779439f6e2caeebe107fc8e75f1286e1ac4935e3c915bbfaa293f5d29bc843 | ticean/clara-rules-shopping-examples | handler.clj | (ns ticean.clara.handler
"Web handlers for session endpoints."
(:require
[ataraxy.response :as response]
[cheshire.core :as json]
[duct.logger :refer [log]]
[integrant.core :as ig]
[ticean.clara :as engine]
[ticean.clara.fact :as fact]))
(defmethod ig/init-key :ticean.clara.handler/index
... | null | https://raw.githubusercontent.com/ticean/clara-rules-shopping-examples/d6251b1ad5ae40d6f6b78755c89ca39ce381587c/src/ticean/clara/handler.clj | clojure | (ns ticean.clara.handler
"Web handlers for session endpoints."
(:require
[ataraxy.response :as response]
[cheshire.core :as json]
[duct.logger :refer [log]]
[integrant.core :as ig]
[ticean.clara :as engine]
[ticean.clara.fact :as fact]))
(defmethod ig/init-key :ticean.clara.handler/index
... | |
fb8fd0e0cb2f8890a47205a85d83a3fdc62d7e21b3f8c9e863c3fcfcbaf64351 | arttuka/reagent-material-ui | sos.cljs | (ns reagent-mui.icons.sos
"Imports @mui/icons-material/Sos as a Reagent component."
(:require-macros [reagent-mui.util :refer [create-svg-icon e]])
(:require [react :as react]
["@mui/material/SvgIcon" :as SvgIcon]
[reagent-mui.util]))
(def sos (create-svg-icon (e "path" #js {"d" "M13.5 7h... | null | https://raw.githubusercontent.com/arttuka/reagent-material-ui/c7cd0d7c661ab9df5b0aed0213a6653a9a3f28ea/src/icons/reagent_mui/icons/sos.cljs | clojure | (ns reagent-mui.icons.sos
"Imports @mui/icons-material/Sos as a Reagent component."
(:require-macros [reagent-mui.util :refer [create-svg-icon e]])
(:require [react :as react]
["@mui/material/SvgIcon" :as SvgIcon]
[reagent-mui.util]))
(def sos (create-svg-icon (e "path" #js {"d" "M13.5 7h... | |
4fb4a191a901c45aeb765b6732e1ae96f2f5cb674fbab6c28e1e5711e20dece6 | bloomberg/blpapi-hs | ServiceImpl.hs | # LANGUAGE ForeignFunctionInterface #
|
Module : Finance . Blpapi . Impl . ServiceImpl
Description : FFI for Service
Copyright : Bloomberg Finance L.P.
License : MIT
Maintainer :
Stability : experimental
Portability : * nix , windows
Module : Finance.Blpapi.Impl.ServiceImpl
Desc... | null | https://raw.githubusercontent.com/bloomberg/blpapi-hs/a4bdff86f3febcf8b06cbc70466c8abc177b973a/src/Finance/Blpapi/Impl/ServiceImpl.hs | haskell | # LANGUAGE ForeignFunctionInterface #
|
Module : Finance . Blpapi . Impl . ServiceImpl
Description : FFI for Service
Copyright : Bloomberg Finance L.P.
License : MIT
Maintainer :
Stability : experimental
Portability : * nix , windows
Module : Finance.Blpapi.Impl.ServiceImpl
Desc... | |
c186eeb114da997d61f949109d4cd6cadc05dffbc613c8777045edc8bf2434e5 | atolab/apero-time | timestamp.mli | open Apero
open Time
module Timestamp : sig
module type S = sig
module Time: Time
module T: sig
type t
val compare: t -> t -> int
val equal: t -> t -> bool
end
include (module type of Ordered.Make (T))
val create: Uuid.t -> Time.t -> t
val get_source: t -> Uuid.t
v... | null | https://raw.githubusercontent.com/atolab/apero-time/9b95410986d961237be61d6818c17cd90f9e3021/lib/timestamp.mli | ocaml | open Apero
open Time
module Timestamp : sig
module type S = sig
module Time: Time
module T: sig
type t
val compare: t -> t -> int
val equal: t -> t -> bool
end
include (module type of Ordered.Make (T))
val create: Uuid.t -> Time.t -> t
val get_source: t -> Uuid.t
v... | |
87749970010c1dffd932c70d80577b72afabe3faba8ffc9eefcf40616040c45c | alexandergunnarson/quantum | core.cljc | (ns quantum.test.core.convert.core
(:require [quantum.core.convert.core :as ns]))
(defn test:->name [x])
(defn test:->symbol [x])
(defn test:->str [x])
(defn test:->hex [x])
(defn test:->mdb [x])
(defn test:utf8-string
[bytes])
(defn test:base64-encode
[bytes])
(defn test:base64-decode
[^String s])
; ... | null | https://raw.githubusercontent.com/alexandergunnarson/quantum/0c655af439734709566110949f9f2f482e468509/test/quantum/test/core/convert/core.cljc | clojure | PARSING | (ns quantum.test.core.convert.core
(:require [quantum.core.convert.core :as ns]))
(defn test:->name [x])
(defn test:->symbol [x])
(defn test:->str [x])
(defn test:->hex [x])
(defn test:->mdb [x])
(defn test:utf8-string
[bytes])
(defn test:base64-encode
[bytes])
(defn test:base64-decode
[^String s])
(... |
f9ac00acd8493d674b537f3058663bba122df912e70e5d9a7bca913b750b5b4e | HaxeFoundation/ocamllibs | objsize.mli | (* Information gathered while walking through values. *)
type info =
{ data : int
; headers : int
; depth : int
; reached : bool
}
Returns information for first argument , excluding the second arg list and telling if we can reach the third arg list
val objsize : 'a -> Obj.t list -> Obj.t list -> info
(* C... | null | https://raw.githubusercontent.com/HaxeFoundation/ocamllibs/97e498e1b3bc2b3f08cfcae874b8529e4292bc3d/objsize/objsize.mli | ocaml | Information gathered while walking through values.
Calculates sizes in bytes: | type info =
{ data : int
; headers : int
; depth : int
; reached : bool
}
Returns information for first argument , excluding the second arg list and telling if we can reach the third arg list
val objsize : 'a -> Obj.t list -> Obj.t list -> info
val size_with_headers : info -> int
val size_without_headers ... |
0cb7863935558d619ecd8ff6a71f1fe4538eebce9c138b8874cc2e49137f9f02 | facebook/infer | costAutoreleaseModels.ml |
* Copyright ( c ) Facebook , Inc. and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
... | null | https://raw.githubusercontent.com/facebook/infer/be0473c7a54fa0f577b84243be5c58afe33a5fdd/infer/src/cost/costAutoreleaseModels.ml | ocaml |
* Copyright ( c ) Facebook , Inc. and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
... | |
1a3a8a94fb4676aad1d87e62df95ccd788dbf68d3c47d9ad794676713ece760b | xapi-project/xcp-rrdd | rrd_file_reader.ml |
* Copyright ( C ) Citrix Systems Inc.
*
* This program 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 ; version 2.1 only . with the special
* exception on linking described in file LI... | null | https://raw.githubusercontent.com/xapi-project/xcp-rrdd/f810004ae88d308043b73365a959562302b1d4b5/lib/transport/file/rrd_file_reader.ml | ocaml | * Filesystem path. |
* Copyright ( C ) Citrix Systems Inc.
*
* This program 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 ; version 2.1 only . with the special
* exception on linking described in file LI... |
f54c158607fd28dc21b9fd93db9b51d2a26c7e1720ac58e105c138ffe43f5d62 | rtoy/cmucl | pseudo-vops.lisp | ;;; -*- Package: C; Log: C.Log -*-
;;;
;;; **********************************************************************
This code was written as part of the CMU Common Lisp project at
Carnegie Mellon University , and has been placed in the public domain .
;;;
(ext:file-comment
"$Header: src/compiler/pseudo-vops.lisp $"... | null | https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/compiler/pseudo-vops.lisp | lisp | -*- Package: C; Log: C.Log -*-
**********************************************************************
**********************************************************************
This file contains definitions of VOPs used as internal markers by the
compiler. Since they don't emit any code, they should be portab... | This code was written as part of the CMU Common Lisp project at
Carnegie Mellon University , and has been placed in the public domain .
(ext:file-comment
"$Header: src/compiler/pseudo-vops.lisp $")
Written by
(in-package "C")
(intl:textdomain "cmucl")
Notes the place at which the environment is properly in... |
7dc870ecd9d0289c7756f12807ea765ce0788acb0919637826da29096cdd0bec | KestrelInstitute/Specware | Tests.lisp | (test-directories ".")
(test
("Bug 0003 : Some inconsistencies with using :sw command and with the # notation"
:sw "ABC"
:output '(";;; Elaborating spec at $TESTDIR/ABC#A"
";;; Elaborating spec at $TESTDIR/ABC#B"
";;; Elaborating spec at $TESTDIR/ABC#C"
""))
)
| null | https://raw.githubusercontent.com/KestrelInstitute/Specware/2be6411c55f26432bf5c9e2f7778128898220c24/TestSuite/Bugs/Bug_0003/Tests.lisp | lisp | (test-directories ".")
(test
("Bug 0003 : Some inconsistencies with using :sw command and with the # notation"
:sw "ABC"
:output '(";;; Elaborating spec at $TESTDIR/ABC#A"
";;; Elaborating spec at $TESTDIR/ABC#B"
";;; Elaborating spec at $TESTDIR/ABC#C"
""))
)
| |
269dcebaf163ae4a8f108a5150365b3cd6038c363514ce08d15b9d92153efb54 | jakemcc/sicp-study | ex4_24.clj | Exercise 4.24
(ns ex4-24
(:require [section4 :as s4]
[section4-optimized :as s4o]))
(def func
'(define (add-positive x y)
(if (or (< x 0) (< y 0)) (Error. "Must add positive numbers"))
(if (= x 0)
y
(add-positive (- x 1) (+ y 1)))))
(s4/interpret func)
(s4o/in... | null | https://raw.githubusercontent.com/jakemcc/sicp-study/3b9e3d6c8cc30ad92b0d9bbcbbbfe36a8413f89d/clojure/section4.1/src/ex4_24.clj | clojure | Time for unoptimized:
Time for optimized:
Looks like the original evaluated wastes a lot of time
analyzing the same expressions multiple times | Exercise 4.24
(ns ex4-24
(:require [section4 :as s4]
[section4-optimized :as s4o]))
(def func
'(define (add-positive x y)
(if (or (< x 0) (< y 0)) (Error. "Must add positive numbers"))
(if (= x 0)
y
(add-positive (- x 1) (+ y 1)))))
(s4/interpret func)
(s4o/in... |
d08b7f9a0ac30662000e1911628ccbfe3861e92da17e70e47b74e3e3e4765f59 | helium/erlang-libp2p | libp2p_yamux_session.erl | -module(libp2p_yamux_session).
-include("libp2p_yamux.hrl").
-behaviour(gen_server).
-define(TIMEOUT, 5000).
-define(LIVENESS_TIMEOUT, 30000).
-define(DEFAULT_IDLE_TIMEOUT, 60000).
-define(HEADER_SIZE, 12).
-define(MAX_STREAMID, 4294967295).
-define(VERSION, 0).
-define(DATA, 16#00).
-define(UPDATE, 16#01).
-de... | null | https://raw.githubusercontent.com/helium/erlang-libp2p/98b997faccd4bfefa092d2e42c7676231996f87a/src/libp2p_yamux_session.erl | erlang | gen_server
API
API
since it's fired of synchronously by a multistream. Since ranch
already assigned the controlling process, there is no need to
wait for a shoot message
In libp2p_swarm the client needs to spawn a new process. Since
this is a new process, start_client_session (in
libp2p_transport) will assig... | -module(libp2p_yamux_session).
-include("libp2p_yamux.hrl").
-behaviour(gen_server).
-define(TIMEOUT, 5000).
-define(LIVENESS_TIMEOUT, 30000).
-define(DEFAULT_IDLE_TIMEOUT, 60000).
-define(HEADER_SIZE, 12).
-define(MAX_STREAMID, 4294967295).
-define(VERSION, 0).
-define(DATA, 16#00).
-define(UPDATE, 16#01).
-de... |
3430991deb8830648d76e731a3f2e26eb75d241a97d2d75b925c63a6fb92e044 | russelldb/aws_ec2 | aws_sup.erl | %%%-------------------------------------------------------------------
%%% File : aws_sup.erl
Author : < >
%%% Description : supervisor for aws_ec2 gen server
%%%
Created : 19 Aug 2009 by < >
%%%-------------------------------------------------------------------
-module(aws_sup).
-behaviour(supervisor).
... | null | https://raw.githubusercontent.com/russelldb/aws_ec2/2eb0b30f1b62c286b728f19f74f6f90dd49ac8f6/src/aws_sup.erl | erlang | -------------------------------------------------------------------
File : aws_sup.erl
Description : supervisor for aws_ec2 gen server
-------------------------------------------------------------------
API
Supervisor callbacks
====================================================================
API functions
... | Author : < >
Created : 19 Aug 2009 by < >
-module(aws_sup).
-behaviour(supervisor).
-export([start_link/0]).
-export([init/1]).
-define(SERVER, ?MODULE).
Function : start_link ( ) - > { ok , Pid } | ignore | { error , Error }
start_link() ->
supervisor:start_link({local, ?SERVER}, ?MODULE, []).
... |
1405f93644f131bce70680bccf689bb2646dfa9a2e7c72478b4b44b40a37ea25 | esl/MongooseIM | mongoose_wpool_rdbms.erl | -module(mongoose_wpool_rdbms).
-behaviour(mongoose_wpool).
-export([init/0]).
-export([start/4]).
-export([stop/2]).
%% --------------------------------------------------------------
%% mongoose_wpool callbacks
-spec init() -> ok.
init() ->
case ets:info(prepared_statements) of
undefined ->
He... | null | https://raw.githubusercontent.com/esl/MongooseIM/bac71f0daa3687c9abcc103c3c4988948359826a/src/wpool/mongoose_wpool_rdbms.erl | erlang | --------------------------------------------------------------
mongoose_wpool callbacks
--------------------------------------------------------------
Helper functions | -module(mongoose_wpool_rdbms).
-behaviour(mongoose_wpool).
-export([init/0]).
-export([start/4]).
-export([stop/2]).
-spec init() -> ok.
init() ->
case ets:info(prepared_statements) of
undefined ->
Heir = case whereis(ejabberd_sup) of
undefined -> [];
... |
b94a1e2bc6439dc526f4a46ceb5e5af2c4241536b005a8c1aee99feb6733a729 | google/ormolu | implicit-params-out.hs | # LANGUAGE ImplicitParams #
sortBy :: (a -> a -> Bool) -> [a] -> [a]
sortBy = undefined
sort :: (?cmp :: a -> a -> Bool) => [a] -> [a]
sort = sortBy ?cmp
sort'
:: ( ?cmp
:: a -> a -> Bool
, ?foo :: Int
)
=> [a]
-> [a]
sort' = sort
| null | https://raw.githubusercontent.com/google/ormolu/ffdf145bbdf917d54a3ef4951fc2655e35847ff0/data/examples/declaration/value/function/implicit-params-out.hs | haskell | # LANGUAGE ImplicitParams #
sortBy :: (a -> a -> Bool) -> [a] -> [a]
sortBy = undefined
sort :: (?cmp :: a -> a -> Bool) => [a] -> [a]
sort = sortBy ?cmp
sort'
:: ( ?cmp
:: a -> a -> Bool
, ?foo :: Int
)
=> [a]
-> [a]
sort' = sort
| |
eeb0c31bd549e200c33ec3aea4baa2fac9a1a0923891b30ba5329d80561e6662 | JoelSanchez/ventas | edit.cljs | (ns ventas.themes.admin.users.edit
(:require
[re-frame.core :as rf]
[ventas.components.base :as base]
[ventas.components.form :as form]
[ventas.components.notificator :as notificator]
[ventas.events :as events]
[ventas.server.api.admin :as api.admin]
[ventas.i18n :refer [i18n]]
[ventas.themes.... | null | https://raw.githubusercontent.com/JoelSanchez/ventas/dc8fc8ff9f63dfc8558ecdaacfc4983903b8e9a1/src/cljs/ventas/themes/admin/users/edit.cljs | clojure | (ns ventas.themes.admin.users.edit
(:require
[re-frame.core :as rf]
[ventas.components.base :as base]
[ventas.components.form :as form]
[ventas.components.notificator :as notificator]
[ventas.events :as events]
[ventas.server.api.admin :as api.admin]
[ventas.i18n :refer [i18n]]
[ventas.themes.... | |
5f8fc60132f429f7ab185059a70f232e8d98322d2520c13855b948641353525a | janestreet/bonsai | test_bonsai_web_ui_file.ml | open Core
open Bonsai.Let_syntax
open Bonsai_web_ui_file
open Bonsai_test
module Test_data = For_testing.Test_data
Note that this currently only tests our simulator , not the actual use of the underlying
JavaScript APIs . That 's because :
1 . nodejs does not support the HTML APIs we need ( File and FileR... | null | https://raw.githubusercontent.com/janestreet/bonsai/33e9a58fc55ec12095959dc5ef4fd681021c1083/web_ui/file/test/test_bonsai_web_ui_file.ml | ocaml | Cause the activation stuff to fire
Closing does nothing for [create_static]
Note that we are able to write more than [total_bytes]: there is no validation on
that parameter.
Closing again does nothing
Closing again does nothing
Verify that if a key in the map gets replaced with a new file, we abort the ... | open Core
open Bonsai.Let_syntax
open Bonsai_web_ui_file
open Bonsai_test
module Test_data = For_testing.Test_data
Note that this currently only tests our simulator , not the actual use of the underlying
JavaScript APIs . That 's because :
1 . nodejs does not support the HTML APIs we need ( File and FileR... |
a5c0d4711cdf26f45f8a0bfde768099dadaf212d6a7c09205852cfad4e7ea9db | viercc/kitchen-sink-hs | question-primes.hs | #!/usr/bin/env cabal
cabal :
build - depends : base
ghc - options : -O0 -threaded -rtsopts
build-depends: base
ghc-options: -O0 -threaded -rtsopts
-}
-- If it is built with optimization by removing -O0 from the
-- above line, it won't work
import Control.Concurrent
import Data.IORef
main :: IO ()
main = m... | null | https://raw.githubusercontent.com/viercc/kitchen-sink-hs/5038b17a39e4e6f19e6fb4779a7c8aaddf64d922/scripts/question-primes.hs | haskell | If it is built with optimization by removing -O0 from the
above line, it won't work
Do work | #!/usr/bin/env cabal
cabal :
build - depends : base
ghc - options : -O0 -threaded -rtsopts
build-depends: base
ghc-options: -O0 -threaded -rtsopts
-}
import Control.Concurrent
import Data.IORef
main :: IO ()
main = main1
main1 :: IO ()
main1 =
do x <- newMVar False
putStrLn "A"
forkIO $ do
... |
e61f1020ed9413ba3f107d5760da86ef2e924243a04eb81a73fa592100d7d68e | anmonteiro/aemette | core.cljs | (ns {{name}}.core
(:require [{{name}}.components.app :as app]
[{{name}}.routes :as routes]
[{{name}}.controllers.navigation :as nav-con]
[cljs.core.async :as async :refer [chan]]
[om.core :as om]
[{{name}}.history :as history])
(:require-macros [cljs.core.... | null | https://raw.githubusercontent.com/anmonteiro/aemette/c49983e71154db4b4a9c4f751d4413682647f5a5/src/leiningen/new/aemette/om/core.cljs | clojure | Capture the current history for playback in the absence
of a server to store it | (ns {{name}}.core
(:require [{{name}}.components.app :as app]
[{{name}}.routes :as routes]
[{{name}}.controllers.navigation :as nav-con]
[cljs.core.async :as async :refer [chan]]
[om.core :as om]
[{{name}}.history :as history])
(:require-macros [cljs.core.... |
41bd4d9ce9796abcc12d3381787ff3d7b1cf3ee9364b81e68baddccb98dec613 | janestreet/vcaml | extract.ml | open Core
open Nvim_internal
let convert_msgpack_error result ~on_keyboard_interrupt =
match result with
| Ok _ as ok -> ok
| Error (Msgpack.Array [ Integer error_type; String msg ]) ->
let error_type = Error_type.of_int error_type in
(match error_type, msg with
| Exception, "Keyboard interrupt" -> ... | null | https://raw.githubusercontent.com/janestreet/vcaml/e5da6cf146688b904c4627201a43898a397d009b/src/extract.ml | ocaml | open Core
open Nvim_internal
let convert_msgpack_error result ~on_keyboard_interrupt =
match result with
| Ok _ as ok -> ok
| Error (Msgpack.Array [ Integer error_type; String msg ]) ->
let error_type = Error_type.of_int error_type in
(match error_type, msg with
| Exception, "Keyboard interrupt" -> ... | |
5a8b0461975ecb5bd6cc36d10855d1e5d1db4044caa56999da93157f5cd0c2a7 | spk121/potato-make | main.scm | (define-module (make main)
#:use-module (ice-9 getopt-long)
#:export (main)
)
(define EXIT_SUCCESS 0)
(define EXIT_NOT_UP_TO_DATE 1)
(define EXIT_FAILURE 2)
(define option-spec
'((environment-overrides (single-char #\e))
(makefile (single-char #\f) (value #t))
(ignore-errors (single-char #\i))
(ke... | null | https://raw.githubusercontent.com/spk121/potato-make/8aeef1d8eb2524de447d102c5e0b435d4c71a4d7/make/main.scm | scheme | (define-module (make main)
#:use-module (ice-9 getopt-long)
#:export (main)
)
(define EXIT_SUCCESS 0)
(define EXIT_NOT_UP_TO_DATE 1)
(define EXIT_FAILURE 2)
(define option-spec
'((environment-overrides (single-char #\e))
(makefile (single-char #\f) (value #t))
(ignore-errors (single-char #\i))
(ke... | |
2e5fc874c2b3d8b315f452f9b1632832ee774860c59caa7def924b03d36be52d | danidiaz/process-streaming | doctests.hs | module Main where
import Test.DocTest
main :: IO ()
main = doctest [
"src/System/Process/Streaming.hs",
"src/System/Process/Streaming/Text.hs"
]
| null | https://raw.githubusercontent.com/danidiaz/process-streaming/760f557bdd8c7bb40547e3cbbd429441a76bc1a8/tests/doctests.hs | haskell | module Main where
import Test.DocTest
main :: IO ()
main = doctest [
"src/System/Process/Streaming.hs",
"src/System/Process/Streaming/Text.hs"
]
| |
f848c3b1dae84d8709160280baf99f0ab6062b0c51ba37670580c7852155caee | ayato-p/mokuhan | misc.cljc | (ns org.panchromatic.mokuhan.util.misc)
(defn truthy? [o]
(and (not (false? o)) (some? o)))
(defn meta-without-qualifiers [x]
(some->> (meta x)
(reduce-kv #(assoc %1 (-> %2 name keyword) %3) {})))
| null | https://raw.githubusercontent.com/ayato-p/mokuhan/8f6de17b5c4a3712aa83ba4f37234de86f3c630b/src/org/panchromatic/mokuhan/util/misc.cljc | clojure | (ns org.panchromatic.mokuhan.util.misc)
(defn truthy? [o]
(and (not (false? o)) (some? o)))
(defn meta-without-qualifiers [x]
(some->> (meta x)
(reduce-kv #(assoc %1 (-> %2 name keyword) %3) {})))
| |
875ba824a4272d7397efebd5372df5eace4bda47529fc3f9d73736cbcd724b5c | generateme/fastmath | core.clj | ;; # Namespace scope
;;
;; Collection of math function:
;;
* Several constants from Java , C , Processing , etc .
;; * Functions based on FastMath exposed as macros or functions (trigonometry, powers/logarithms/roots, rounding)
;; * Primitive operators (as in primitive-math package)
;; * Additional math functions (si... | null | https://raw.githubusercontent.com/generateme/fastmath/b38b43682b9dd0d3557065ca511518382943ddb6/src/fastmath/core.clj | clojure | # Namespace scope
Collection of math function:
* Functions based on FastMath exposed as macros or functions (trigonometry, powers/logarithms/roots, rounding)
* Primitive operators (as in primitive-math package)
* Additional math functions (signum, constrain, interpolation)
* Statistics
Primitive math eq
macro... | * Several constants from Java , C , Processing , etc .
(ns fastmath.core
"Collection of fast math functions and plethora of constants known from other math libraries.
### Primitive math operators
Based on [Primitive Math by Zach Tellman](-math) several operators are introduced and replace `clojure.core` func... |
55b295d9dc364f87950192750e8011cec73493b4af4661f955af2c5b8f799e61 | iburzynski/EMURGO_71 | GroupStudents.hs | {-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
# HLINT ignore " Eta reduce " #
module GroupStudents where
import StudentData (students)
-- Introduce some type synonyms to make our type signature more readable:
type StudentRecord = (String, Char)
type GroupedStudents = ([String], [String], [String])
-- We want to impl... | null | https://raw.githubusercontent.com/iburzynski/EMURGO_71/0080f78f954ab64171097e860cd3435ec5d327c2/HW_07-23/GroupStudents/GroupStudents.hs | haskell | # OPTIONS_GHC -Wno-unrecognised-pragmas #
Introduce some type synonyms to make our type signature more readable:
We want to implement a function that groups a list of student record pairs:
In an imperative language we would use mutable variables and a loop to solve this
We would like our type signature to look like... | # HLINT ignore " Eta reduce " #
module GroupStudents where
import StudentData (students)
type StudentRecord = (String, Char)
type GroupedStudents = ([String], [String], [String])
Our output will be a three - tuple containing 3 lists : ( Group A , Group B , Group C ) .
( see group_students.py file for a Python e... |
207dfa2f14f7c627163416008fadc9e23cfd318fc7a8d1632418d24c0defea57 | dbuenzli/brr | min.ml | open Brr
let () =
El.set_children (Document.body G.document) El.[txt' "Hello World!"]
| null | https://raw.githubusercontent.com/dbuenzli/brr/3d1a0edd964a1ddfbf2be515fc3a3803d27ad707/test/min.ml | ocaml | open Brr
let () =
El.set_children (Document.body G.document) El.[txt' "Hello World!"]
| |
c42e1fc0983ac7b3511b1fb3b46e62c58319955b8414db649866f24df283d191 | alvatar/spheres | spheres-remote.scm | ! Initialize SchemeSpheres environment
(define (##spheres-init)
;; Load syntax-case
(println "*** INFO -- loading syntax expander for iOS")
(load "spheres/core/lib/syntax-case.o1"))
;;! Include-eval: makes modules available in a spawned REPL
(define (##spheres-include-eval modules)
(define eval-file
(lambd... | null | https://raw.githubusercontent.com/alvatar/spheres/568836f234a469ef70c69f4a2d9b56d41c3fc5bd/spheres/net/debug-repl/spheres-remote.scm | scheme | Load syntax-case
! Include-eval: makes modules available in a spawned REPL
! Load modules from a network address
(SDL_Log "passed creating directories")
(SDL_Log local-file-path)
(SDL_Log (string-append "Retrieving file: " filename))
(SDL_Log (string-append "Remote file loaded: " filename))
(SDL_Log message) | ! Initialize SchemeSpheres environment
(define (##spheres-init)
(println "*** INFO -- loading syntax expander for iOS")
(load "spheres/core/lib/syntax-case.o1"))
(define (##spheres-include-eval modules)
(define eval-file
(lambda (file)
(for-each eval (with-input-from-file file read-all))))
(for-each
... |
8899a64b33fb857c86a37bee4b387bc08734bd3cd872ddd664ef044d42848cac | pirapira/bamboo | evm.ml | type 'imm instruction =
| PUSH1 of 'imm
| PUSH4 of 'imm
| PUSH32 of 'imm
| NOT
| TIMESTAMP
| EQ
| ISZERO
| LT
| GT
| BALANCE
| STOP
| ADD
| MUL
| SUB
| DIV
| SDIV
| MOD
| SMOD
| ADDMOD
| MULMOD
| EXP
| SIGNEXTEND
| SHA3
| ADDRESS
| ORIGIN
| CALLER
| CALLVALUE
| CA... | null | https://raw.githubusercontent.com/pirapira/bamboo/1cca98e0b6d2579fe32885e66aafd0f5e25d9eb5/src/ast/evm.ml | ocaml | * The program is stored in the reverse order | type 'imm instruction =
| PUSH1 of 'imm
| PUSH4 of 'imm
| PUSH32 of 'imm
| NOT
| TIMESTAMP
| EQ
| ISZERO
| LT
| GT
| BALANCE
| STOP
| ADD
| MUL
| SUB
| DIV
| SDIV
| MOD
| SMOD
| ADDMOD
| MULMOD
| EXP
| SIGNEXTEND
| SHA3
| ADDRESS
| ORIGIN
| CALLER
| CALLVALUE
| CA... |
59e98e903a73524dc9b44eeed2c3c573c0543902f52041d590211450c639a129 | Mokosha/Lambency | GameSession.hs | module Lambency.GameSession (
TimeStep, GameSession,
physicsDeltaTime, physicsDeltaUTC, mkGameSession
) where
--------------------------------------------------------------------------------
import qualified Control.Wire as W
import GHC.Float
import Data.Time
import Lambency.Types
------------------------------... | null | https://raw.githubusercontent.com/Mokosha/Lambency/43c58b62b9dc2c63b5f8c42248a6f7844093dac7/lib/Lambency/GameSession.hs | haskell | ------------------------------------------------------------------------------
------------------------------------------------------------------------------ | module Lambency.GameSession (
TimeStep, GameSession,
physicsDeltaTime, physicsDeltaUTC, mkGameSession
) where
import qualified Control.Wire as W
import GHC.Float
import Data.Time
import Lambency.Types
The physics framerate in frames per second
physicsDeltaTime :: Double
physicsDeltaTime = 1.0 / 60.0
physics... |
fb7fbf3664cc6e14403708f1b0f4afa442bf08fe16f75f686000699b3fcc8008 | roman/lc-2018-rock-solid-haskell-services | AWS.hs | # LANGUAGE FlexibleContexts #
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE NoImplicitPrelude #
module App.Component.AWS
( AWS.Service
, buildAwsRemoteQueues
, buildAwsRemoteTopics
)
where
import RIO
import qualified RIO.HashMap as HashMap
import qualified RIO.Text as Tex... | null | https://raw.githubusercontent.com/roman/lc-2018-rock-solid-haskell-services/c964beba5ddc50bb586e02b14d8d89128f17a53f/5-web-crawl/app/App/Component/AWS.hs | haskell | # LANGUAGE NamedFieldPuns #
# LANGUAGE OverloadedStrings #
------------------------------------------------------------------------------ | # LANGUAGE FlexibleContexts #
# LANGUAGE NoImplicitPrelude #
module App.Component.AWS
( AWS.Service
, buildAwsRemoteQueues
, buildAwsRemoteTopics
)
where
import RIO
import qualified RIO.HashMap as HashMap
import qualified RIO.Text as Text
import Control.Exception (ErrorCall(..))
import qualified System.E... |
67a3b7825164a63b39052675e4c4be60c762884aca80b35e1791e4205c543bb5 | johnwickerson/memalloy | gen.ml |
MIT License
Copyright ( c ) 2017 by and .
Permission is hereby granted , free of charge , to any person obtaining
a copy of this software and associated documentation files ( the
" Software " ) , to deal in the Software without restriction , including
without limitation the rights to use , copy , modi... | null | https://raw.githubusercontent.com/johnwickerson/memalloy/aa15776873fe3440cb7f5dae8e174466689d4fba/src/gen.ml | ocaml | * Command-line tool for processing executions and generating litmus tests
TODO: share this with the Lit stage?
TODO: the double-execution case isn't quite right. |
MIT License
Copyright ( c ) 2017 by and .
Permission is hereby granted , free of charge , to any person obtaining
a copy of this software and associated documentation files ( the
" Software " ) , to deal in the Software without restriction , including
without limitation the rights to use , copy , modi... |
b37841f91782533902531d7da5cd07ccd77c3f988bf51255afa59c40e2225beb | ILIYANGERMANOV/sense-lang | SenseValidator.hs | module Validate.SenseValidator where
import Data.CompileError (CompileError)
import Data.SThing
validateSense :: [SThing] -> Either CompileError [SThing]
validateSense = Right | null | https://raw.githubusercontent.com/ILIYANGERMANOV/sense-lang/1e07b251b897d671577533dc0940e1a56936e813/sense-compiler/src/Validate/SenseValidator.hs | haskell | module Validate.SenseValidator where
import Data.CompileError (CompileError)
import Data.SThing
validateSense :: [SThing] -> Either CompileError [SThing]
validateSense = Right | |
e7fc74cb2f8d51e358a6f53368cf84b66e3b085b8a0499e1403ba8b32995df3d | vereis/jarlang | epp.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 1996 - 2017 . All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% -2.0
%%
%% Unless required by applicab... | null | https://raw.githubusercontent.com/vereis/jarlang/72105b79c1861aa6c4f51c3b50ba695338aafba4/src/erl/lib/stdlib/epp.erl | erlang |
%CopyrightBegin%
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific lan... | Copyright Ericsson AB 1996 - 2017 . All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(epp).
An Erlang code preprocessor .
-export([open/1, open/2,open/3,open/5,close/1,format_error/1]).
-exp... |
b1305067112dafefd4a493eb283f7d50bc05b3008314a8ba6310a77bcceafc67 | rtoy/ansi-cl-tests | synonym-stream-symbol.lsp | ;-*- Mode: Lisp -*-
Author :
Created : Thu Jan 29 21:21:06 2004
Contains : Tests of SYNONYM - STREAM - SYMBOL
(in-package :cl-test)
(deftest synonym-stream-symbol.1
(synonym-stream-symbol (make-synonym-stream '*standard-input*))
*standard-input*)
(deftest synonym-stream-symbol.error.1
(signals... | null | https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/synonym-stream-symbol.lsp | lisp | -*- Mode: Lisp -*- | Author :
Created : Thu Jan 29 21:21:06 2004
Contains : Tests of SYNONYM - STREAM - SYMBOL
(in-package :cl-test)
(deftest synonym-stream-symbol.1
(synonym-stream-symbol (make-synonym-stream '*standard-input*))
*standard-input*)
(deftest synonym-stream-symbol.error.1
(signals-error (synonym-stream-s... |
d80b9d26fe743b8c721ba74153c009806b414e51cc6fefd7f54bfc5ea42e0406 | WhatsApp/eqwalizer | guard_b_connections.erl | Copyright ( c ) Meta Platforms , Inc. and affiliates . All rights reserved .
%%%
This source code is licensed under the Apache 2.0 license found in
%%% the LICENSE file in the root directory of this source tree.
-module(guard_b_connections).
-compile([export_all, nowarn_export_all]).
-record(r1, {ab :: atom() | b... | null | https://raw.githubusercontent.com/WhatsApp/eqwalizer/2ad890b777b9d99b87ab179d6fabbd9b1d1d3b1a/eqwalizer/test_projects/check/src/guard_b_connections.erl | erlang |
the LICENSE file in the root directory of this source tree. | Copyright ( c ) Meta Platforms , Inc. and affiliates . All rights reserved .
This source code is licensed under the Apache 2.0 license found in
-module(guard_b_connections).
-compile([export_all, nowarn_export_all]).
-record(r1, {ab :: atom() | binary()}).
-record(r2, {a :: atom()}).
-record(r3, {}).
-type r1() ... |
f08d9c75694c3fd586e1f00feba0244ff3ddf8f6aacf5753e00e0515b59f393c | weldr/bdcs | KeyVal.hs | module Utils.KeyVal(formatKeyValList)
where
import Data.List(intercalate)
import qualified Data.Text as T
import Text.Printf(printf)
import BDCS.DB(KeyVal)
import BDCS.KeyValue(formatKeyValue)
formatKeyValList :: [KeyVal] -> String
formatKeyValList [] = ""
formatKeyValList lst = printf " [%s]" ... | null | https://raw.githubusercontent.com/weldr/bdcs/cf360c3240644b4847336b9d58b2067f3aa1ec50/src/tools/inspect/Utils/KeyVal.hs | haskell | module Utils.KeyVal(formatKeyValList)
where
import Data.List(intercalate)
import qualified Data.Text as T
import Text.Printf(printf)
import BDCS.DB(KeyVal)
import BDCS.KeyValue(formatKeyValue)
formatKeyValList :: [KeyVal] -> String
formatKeyValList [] = ""
formatKeyValList lst = printf " [%s]" ... | |
ccfd3741b91f85b2e38df8c208bac62c42f7b681858a769783bec2c200ffa53b | karen/haskell-book | ch10.hs | import Data.Time
fibs = 1 : scanl (+) 1 fibs
fibsN x = fibs !! x
firstKFibs = take 20 fibs
smallFibs = takeWhile (< 100) fibs
fact = 1 : scanl (*) 1 [1..]
data DatabaseItem = DbString String
| DbNumber Integer
| DbDate UTCTime
deriving (Eq, Ord, Show)
theDataba... | null | https://raw.githubusercontent.com/karen/haskell-book/90bb80ec3203fde68fc7fda1662d9fc8b509d179/src/ch10/ch10.hs | haskell | import Data.Time
fibs = 1 : scanl (+) 1 fibs
fibsN x = fibs !! x
firstKFibs = take 20 fibs
smallFibs = takeWhile (< 100) fibs
fact = 1 : scanl (*) 1 [1..]
data DatabaseItem = DbString String
| DbNumber Integer
| DbDate UTCTime
deriving (Eq, Ord, Show)
theDataba... | |
2fd85729c6310bec3c98588e00f6bf375cae0245cfe35b8fa291d67f316dd9a6 | Ekdohibs/camlboot | interp.ml | open Data
open Conf
open Eval
open Envir
let parse filename =
let inc = try open_in filename with e -> Format.eprintf "Error opening file: %s@." filename; raise e in
let lexbuf = Lexing.from_channel inc in
Location.init lexbuf filename;
let parsed = Parser.implementation Lexer.real_token lexbuf in
let parse... | null | https://raw.githubusercontent.com/Ekdohibs/camlboot/506280c6e0813e0e794988151a8e46be55373ebc/interpreter/interp.ml | ocaml | let _ = load_rec_units stdlib_env [stdlib_flag, "test.ml"] | open Data
open Conf
open Eval
open Envir
let parse filename =
let inc = try open_in filename with e -> Format.eprintf "Error opening file: %s@." filename; raise e in
let lexbuf = Lexing.from_channel inc in
Location.init lexbuf filename;
let parsed = Parser.implementation Lexer.real_token lexbuf in
let parse... |
24fbf0e441c11c7dd47ea55a9e5b732bc085a2c23e47c4499a7107615dbd3110 | ThoughtWorksInc/DeepDarkFantasy | DiffWrapper.hs | # LANGUAGE KindSignatures , DataKinds , TypeFamilies , TypeOperators , UndecidableInstances #
module DDF.Meta.DiffWrapper (module DDF.Meta.DiffWrapper, module DDF.Meta.Diff) where
import DDF.Meta.Diff
type family FDiffType (a :: [*]) x
type instance FDiffType '[] x = x
type instance FDiffType (a ': as) x = DiffType ... | null | https://raw.githubusercontent.com/ThoughtWorksInc/DeepDarkFantasy/4c569aefc03a2bcfb6113b65367201d30077f2b6/DDF/Meta/DiffWrapper.hs | haskell | # LANGUAGE KindSignatures , DataKinds , TypeFamilies , TypeOperators , UndecidableInstances #
module DDF.Meta.DiffWrapper (module DDF.Meta.DiffWrapper, module DDF.Meta.Diff) where
import DDF.Meta.Diff
type family FDiffType (a :: [*]) x
type instance FDiffType '[] x = x
type instance FDiffType (a ': as) x = DiffType ... | |
e9a6a61078d53914dcbe3c99c62a454f0ff4017f2275c8c7a07446cb04a3779b | monadfix/ormolu-live | TH.hs | | The public face of Template Haskell
For other documentation , refer to :
< >
For other documentation, refer to:
<>
-}
{-# LANGUAGE Safe #-}
module Language.Haskell.TH(
-- * The monad and its operations
Q,
runQ,
* * Administration : errors , locations and IO
reportError, ... | null | https://raw.githubusercontent.com/monadfix/ormolu-live/d8ae72ef168b98a8d179d642f70352c88b3ac226/ghc-lib-parser-8.10.1.20200412/libraries/template-haskell/Language/Haskell/TH.hs | haskell | # LANGUAGE Safe #
* The monad and its operations
:: String -> Q ()
:: String -> Q ()
:: Bool -> String -> Q ()
:: Q a -> Q a -> Q a
:: Q Loc
:: IO a -> Q a
** Querying the compiler
:: Name -> Q Info
*** Language extension lookup
*** Name lookup
:: String -> Q (Maybe Name)
:: String -> Q (Maybe Name)
*** F... | | The public face of Template Haskell
For other documentation , refer to :
< >
For other documentation, refer to:
<>
-}
module Language.Haskell.TH(
Q,
runQ,
* * Administration : errors , locations and IO
Loc(..),
* * *
reifyModule,
Info(..), ModuleInfo(..),
... |
cd79670d233e81b131622fc4f6fbaa6fabfd14db5aa143188d86f227c6bb98fa | Amanite/figarocaml | figaro.ml | let element_from_array t =
let n = Random.int max_int in
let longueur = Array.length t in
t.(n mod longueur)
let utilisateurs = [|"ouvrier";"paysan";"patron de ma PME";"chef d'entreprise";"expatrié en Suisse";"militaire"|]
let gentils_pluriel = [|"les bons français";"les vrais français"; "les français de souch... | null | https://raw.githubusercontent.com/Amanite/figarocaml/a5a91412f71ecc2021c4fe003d5bb0a88323971e/figaro.ml | ocaml | let element_from_array t =
let n = Random.int max_int in
let longueur = Array.length t in
t.(n mod longueur)
let utilisateurs = [|"ouvrier";"paysan";"patron de ma PME";"chef d'entreprise";"expatrié en Suisse";"militaire"|]
let gentils_pluriel = [|"les bons français";"les vrais français"; "les français de souch... | |
4017e12b5626e6bdd4f26f6e256262dbe64bb08ec73760c9f97582ab55469569 | AntidoteDB/gingko | antidote_test_utils.erl | %% -------------------------------------------------------------------
%%
Copyright < 2013 - 2018 > <
Technische Universität Kaiserslautern , Germany
, France
Universidade NOVA de Lisboa , Portugal
Université catholique de Louvain ( UCL ) , Belgique
, Portugal
%% >
%%
This file is provided... | null | https://raw.githubusercontent.com/AntidoteDB/gingko/a965979aefb2868abcd0b3bf5ed1b5e4f9fdd163/test/utils/antidote_test_utils.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 expressed or implied. See the License for the
specific language governing perm... | Copyright < 2013 - 2018 > <
Technische Universität Kaiserslautern , Germany
, France
Universidade NOVA de Lisboa , Portugal
Université catholique de Louvain ( UCL ) , Belgique
, Portugal
This file is provided to you under the Apache License ,
except in compliance with the License . You... |
3cdeb1cb2f8d51b5236ddefddd4b40850e88bc3ab35affe3f69a7a00c24f7b4b | OlivierSohn/hamazed | Impl.hs | # LANGUAGE NoImplicitPrelude #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE AllowAmbiguousTypes #
# LANGUAGE FlexibleInstances #
# LANGUAGE TypeFamilies #
# LANGUAGE TypeFamilyDependencies #
# LANGUAGE FlexibleContexts #
module Imj.Control.Concurrent.AsyncGroups.Impl
( AsyncGroupsImpl(..)
*
, AsyncGroups(.... | null | https://raw.githubusercontent.com/OlivierSohn/hamazed/c0df1bb60a8538ac75e413d2f5bf0bf050e5bc37/imj-base/src/Imj/Control/Concurrent/AsyncGroups/Impl.hs | haskell | not using strict version, because Async misses NFData. | # LANGUAGE NoImplicitPrelude #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE AllowAmbiguousTypes #
# LANGUAGE FlexibleInstances #
# LANGUAGE TypeFamilies #
# LANGUAGE TypeFamilyDependencies #
# LANGUAGE FlexibleContexts #
module Imj.Control.Concurrent.AsyncGroups.Impl
( AsyncGroupsImpl(..)
*
, AsyncGroups(.... |
63d62cc1be3c1259a16e3a72d01ef4688a44bc5d1d3fe6e71accd531ec57b260 | synduce/Synduce | Deduction.mli | open Lang
val as_unknown_app
: ?match_functions:(Term.term -> bool)
-> unknowns:Term.VarSet.t
-> Term.term
-> Term.term list option
val subexpressions_without_boxes
: Expression.t
-> (Expression.t, Expression.comparator_witness) Base.Set.t
module Solver : sig
val presolve_equations
: orig_ctx:Te... | null | https://raw.githubusercontent.com/synduce/Synduce/48a258db3fc677d97587d0fb34eaa11f9d239ed5/src/se2gis/Deduction.mli | ocaml | open Lang
val as_unknown_app
: ?match_functions:(Term.term -> bool)
-> unknowns:Term.VarSet.t
-> Term.term
-> Term.term list option
val subexpressions_without_boxes
: Expression.t
-> (Expression.t, Expression.comparator_witness) Base.Set.t
module Solver : sig
val presolve_equations
: orig_ctx:Te... | |
1b28ca05bec6e768fee71194bc692994b92a017745c96112a9f1825e411be030 | avsm/mirage-duniverse | lexer.mli | val main : ?buf:Buffer.t -> Lexing.lexbuf -> Parser.token
val main_with_layout : ?buf:Buffer.t -> Lexing.lexbuf -> Parser_with_layout.token
| null | https://raw.githubusercontent.com/avsm/mirage-duniverse/983e115ff5a9fb37e3176c373e227e9379f0d777/ocaml_modules/sexplib/src/lexer.mli | ocaml | val main : ?buf:Buffer.t -> Lexing.lexbuf -> Parser.token
val main_with_layout : ?buf:Buffer.t -> Lexing.lexbuf -> Parser_with_layout.token
| |
d1c6afb37a176e014d6b63532bc8b4cacf2d4f0dce0d74c0c2d5cddfa9b842a4 | naoto-ogawa/h-xproto-mysql | DateTime.hs | |
module : DataBase . MySQLX.DataTypes
description : DateTime
copyright : ( c ) , 2017
license : mit
maintainer :
stability : experimental
portability :
module : DataBase.MySQLX.DataTypes
description : DateTime
copyright : (c) naoto ogawa, 2017
license : mit
maintain... | null | https://raw.githubusercontent.com/naoto-ogawa/h-xproto-mysql/1eacd6486c99b849016bf088788cb8d8b166f964/src/DataBase/MySQLX/DateTime.hs | haskell | # LANGUAGE TypeSynonymInstances #
general, standard library
generated library
protocol buffer library
my library
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
------------------------------------------... | |
module : DataBase . MySQLX.DataTypes
description : DateTime
copyright : ( c ) , 2017
license : mit
maintainer :
stability : experimental
portability :
module : DataBase.MySQLX.DataTypes
description : DateTime
copyright : (c) naoto ogawa, 2017
license : mit
maintain... |
dfa1cc64c9465c0de38a4ce5ddd38a875ecdcdb6e76f1a85295b2d0f6ae7575d | osa1/sc-plugin | Tag.hs | {-# LANGUAGE RankNTypes #-}
# OPTIONS_GHC -fno - warn - missing - signatures #
module Supercompile.Core.Tag where
import Supercompile.Utilities
import Supercompile.Core.FreeVars
import Supercompile.Core.Size
import Supercompile.Core.Syntax
import Literal (hashLiteral)
import Unique (mkPrimOpIdUnique)
import qualifi... | null | https://raw.githubusercontent.com/osa1/sc-plugin/1969ad81f16ca8ed8110ca8dadfccf6f3d463635/src/Supercompile/Core/Tag.hs | haskell | # LANGUAGE RankNTypes #
be one tag for a particular value. If we give every occurrence of (:) in the input
are specialised on very long repititions of the same constructor.
The special treatment of PrimOp has a similar reason, and is necessary because I started
treating PrimOp specially and unfolding it without go... | # OPTIONS_GHC -fno - warn - missing - signatures #
module Supercompile.Core.Tag where
import Supercompile.Utilities
import Supercompile.Core.FreeVars
import Supercompile.Core.Size
import Supercompile.Core.Syntax
import Literal (hashLiteral)
import Unique (mkPrimOpIdUnique)
import qualified PrimOp as PrimOp (primOpT... |
741f59d4044ac6739a81e329a73a89ae5b0f2bd0c6e0a9e69198ce9bc3414084 | leksah/leksah | Mercurial.hs | {-# LANGUAGE OverloadedStrings #-}
-----------------------------------------------------------------------------
--
Module : IDE.Command . VCS.Mercurial
Copyright : 2007 - 2011 ,
-- License : GPL Nothing
--
-- Maintainer :
-- Stability : provisional
-- Portability :
--
-- |
--
--------... | null | https://raw.githubusercontent.com/leksah/leksah/ec95f33af27fea09cba140d7cddd010935a2cf52/src/IDE/Command/VCS/Mercurial.hs | haskell | # LANGUAGE OverloadedStrings #
---------------------------------------------------------------------------
License : GPL Nothing
Maintainer :
Stability : provisional
Portability :
|
--------------------------------------------------------------------------- | Module : IDE.Command . VCS.Mercurial
Copyright : 2007 - 2011 ,
module IDE.Command.VCS.Mercurial (
mkMercurialActions
) where
import Prelude ()
import Prelude.Compat ()
import qualified IDE.Command.VCS.Common.Helper as Helper
import qualified IDE.Command.VCS.Types as Types
import qualified... |
4f0004a104b45ae26e72e0ea874bdf6a8496dd3e7e63450748f697d333836034 | chrissound/XMonadLayouts | xmonad.hs | # LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE DeriveDataTypeable #-}
# LANGUAGE LambdaCase #
{-# OPTIONS -Wno-incomplete-patterns #-}
import qualified Data.Map as M
import XMonad
import XMonad.Actio... | null | https://raw.githubusercontent.com/chrissound/XMonadLayouts/e1327f0658418fd605660da1420ab661a3238498/lib/xmonad.hs | haskell | # LANGUAGE StandaloneDeriving #
# LANGUAGE DeriveDataTypeable #
# OPTIONS -Wno-incomplete-patterns #
import FocusWindow
> doFloat <+> doIgnore
> doF W.swapMaster
> doShift ( myWorkspaces !! 0)
Toggle left / right column width
Resize left / right column width individually
%! Increment the number of windows in t... | # LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE LambdaCase #
import qualified Data.Map as M
import XMonad
import XMonad.Actions.Navigation2D
import XMonad.Config.Desktop
import qualified XMonad.StackSet as W
import... |
0fba2811ed61e7631aefb93afb37c0d4f37f0971ca1621a45dcd228ca8e905c6 | jadeallenx/udon_ng | udon_op_fsm_sup.erl | @doc Supervise the udon_op FSM .
-module(udon_op_fsm_sup).
-behavior(supervisor).
-export([start_write_fsm/1,
start_link/0]).
-export([init/1]).
start_write_fsm(Args) ->
supervisor:start_child(?MODULE, Args).
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
init([]) ->
Wr... | null | https://raw.githubusercontent.com/jadeallenx/udon_ng/14519df8cc79d9c9793c3f80b8fba7875fe99e81/apps/udon/src/udon_op_fsm_sup.erl | erlang | @doc Supervise the udon_op FSM .
-module(udon_op_fsm_sup).
-behavior(supervisor).
-export([start_write_fsm/1,
start_link/0]).
-export([init/1]).
start_write_fsm(Args) ->
supervisor:start_child(?MODULE, Args).
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
init([]) ->
Wr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.