_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 |
|---|---|---|---|---|---|---|---|---|
5e5b75d7af67c9290537441b2213be2859338277568170bc1f3a062b671e654c | lasp-lang/types | pure_pncounter.erl | %%
Copyright ( c ) 2015 - 2016 . 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 by applicable law ... | null | https://raw.githubusercontent.com/lasp-lang/types/e35b9b3a32b8f580daff1a7d1102813ad530835e/src/pure_pncounter.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.
----------------------------... | Copyright ( c ) 2015 - 2016 . 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
, , and
... |
ebe36c0b5019ad6f2c06c780b2bd8fddaf3d0bb4f9eebfb574dd38c9d38dc868 | AstRonin/sgi | servers.erl | -module(servers).
-include_lib("n2o/include/wf.hrl").
-export([start/0, server/1]).
-define(SERVER_PORTS, [10000,10001,10002,10003,10004,10005,10006,10007,10008,10009]).
-define(SOCKET_COUNT, 5).
start() ->
start(?SERVER_PORTS).
start([H|T]) ->
case gen_tcp:listen(H,[{active, true},binary]) of
{ok, L... | null | https://raw.githubusercontent.com/AstRonin/sgi/3854b62b6ce46ba71abd1e76e9cf5200dc0b1df3/samples/apps/review4/src/servers.erl | erlang | -module(servers).
-include_lib("n2o/include/wf.hrl").
-export([start/0, server/1]).
-define(SERVER_PORTS, [10000,10001,10002,10003,10004,10005,10006,10007,10008,10009]).
-define(SOCKET_COUNT, 5).
start() ->
start(?SERVER_PORTS).
start([H|T]) ->
case gen_tcp:listen(H,[{active, true},binary]) of
{ok, L... | |
fe882a58aac3fc951c39c8b111394cc1ed4c6fb4d8bf58a4e0925e76208cddd1 | reagent-project/reagent | news060rc.cljs | (ns reagentdemo.news.news060rc
(:require [reagent.core :as r]
[reagentdemo.syntax :as s]
[sitetools.core :as tools :refer [link]]
[reagentdemo.news.news060 :as news060]
[reagentdemo.common :as common :refer [demo-component]]))
(def url "/news/news060-rc.html")
(def tit... | null | https://raw.githubusercontent.com/reagent-project/reagent/c214466bbcf099eafdfe28ff7cb91f99670a8433/demo/reagentdemo/news/news060rc.cljs | clojure | (ns reagentdemo.news.news060rc
(:require [reagent.core :as r]
[reagentdemo.syntax :as s]
[sitetools.core :as tools :refer [link]]
[reagentdemo.news.news060 :as news060]
[reagentdemo.common :as common :refer [demo-component]]))
(def url "/news/news060-rc.html")
(def tit... | |
fce7f9188013c969875fe00d066f2741a217995b7ef39e9dc70b828f7b8d079b | ivankelly/gambit | _nonstd#.scm | ;;;============================================================================
File : " _ nonstd#.scm " , Time - stamp : < 2009 - 01 - 29 14:51:49 feeley >
Copyright ( c ) 1994 - 2009 by , All Rights Reserved .
;;;============================================================================
;;; Representation... | null | https://raw.githubusercontent.com/ivankelly/gambit/7377246988d0982ceeb10f4249e96badf3ff9a8f/lib/_nonstd%23.scm | scheme | ============================================================================
============================================================================
Representation of exceptions.
----------------------------------------------------------------------------
Define type checking macros.
----------------------------... |
File : " _ nonstd#.scm " , Time - stamp : < 2009 - 01 - 29 14:51:49 feeley >
Copyright ( c ) 1994 - 2009 by , All Rights Reserved .
(define-library-type-of-exception error-exception
id: efe252c3-9391-4acf-993b-1ad2a9035636
constructor: #f
opaque:
(message unprintable: read-only:)
(parameters un... |
d2444ac8342dedac2151f345b85890d4113fe53b2c2b76ea1e04d05660756088 | tweag/gazelle_cabal | C.hs | module PackageB.Other.C where
import Test.Tasty (TestTree)
import Test.Tasty.HUnit (testCase)
test_dummy :: TestTree
test_dummy = testCase "dummy test" $
return ()
| null | https://raw.githubusercontent.com/tweag/gazelle_cabal/a177aded0033a7f0109fcad7d4a3bf2c16736fd1/tests/alternative-deps/package-b/tests/PackageB/Other/C.hs | haskell | module PackageB.Other.C where
import Test.Tasty (TestTree)
import Test.Tasty.HUnit (testCase)
test_dummy :: TestTree
test_dummy = testCase "dummy test" $
return ()
| |
4ccc9d495a9c8318741fd62d15adc764ef67c36ec8f6ea93de0366f87f63a627 | Lysxia/generic-random | Generic.hs | # OPTIONS_HADDOCK not - home #
# LANGUAGE AllowAmbiguousTypes #
# LANGUAGE DataKinds #
# LANGUAGE DeriveFunctor #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
{-# LANGUAGE GADTs #-}
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE PolyKinds #
{-# LANGUAGE RankNTypes... | null | https://raw.githubusercontent.com/Lysxia/generic-random/426c1da4ed597c8d7c90487d4294e3a11623284d/src/Generic/Random/Internal/Generic.hs | haskell | # LANGUAGE GADTs #
# LANGUAGE RankNTypes #
# LANGUAGE TypeInType #
| Core implementation.
=== Warning
This is an internal module: it is not subject to any versioning policy,
breaking changes can happen at any time.
If something here seems useful, please report it or create a pull request to
export it from an e... | # OPTIONS_HADDOCK not - home #
# LANGUAGE AllowAmbiguousTypes #
# LANGUAGE DataKinds #
# LANGUAGE DeriveFunctor #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE PolyKinds #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE Ty... |
db2491cf53997f96cc0f3704bee798de0fa9fa369308f9cd7ce520b54e323719 | lispbuilder/lispbuilder | audio.lisp |
(in-package #:lispbuilder-sdl-cffi)
(cffi:defcstruct sdl-Audio-Spec
(freq :int)
(format :unsigned-short)
(channels :unsigned-char)
(silence :unsigned-char)
(samples :unsigned-short)
(padding :unsigned-short)
(size :unsigned-int)
(callback :pointer)
(userdata :pointer))
(cl:defconstant AUDIO-U8 #x0008)
(cl... | null | https://raw.githubusercontent.com/lispbuilder/lispbuilder/589b3c6d552bbec4b520f61388117d6c7b3de5ab/lispbuilder-sdl/cffi/audio.lisp | lisp | Must define the CPU byte order. |
(in-package #:lispbuilder-sdl-cffi)
(cffi:defcstruct sdl-Audio-Spec
(freq :int)
(format :unsigned-short)
(channels :unsigned-char)
(silence :unsigned-char)
(samples :unsigned-short)
(padding :unsigned-short)
(size :unsigned-int)
(callback :pointer)
(userdata :pointer))
(cl:defconstant AUDIO-U8 #x0008)
(cl... |
b989bbb9ab1b9879409a64fd363b9874dc98ff3b2b97842b4ca487441b7a3d86 | borkdude/advent-of-cljc | iamdrowsy.cljc | (ns aoc.y2018.d02.iamdrowsy
(:require
[aoc.utils :as u :refer [deftest]]
[aoc.y2018.d02.data :refer [input answer-1 answer-2]]
[clojure.test :refer [is testing]]
[clojure.string :as str]
[com.rpl.specter :as s]))
(defn letter-frequencies [s]
(into #{} (vals (frequencies s))))
(defn solve-1 []
... | null | https://raw.githubusercontent.com/borkdude/advent-of-cljc/17c8abb876b95ab01eee418f1da2e402e845c596/src/aoc/y2018/d02/iamdrowsy.cljc | clojure | (ns aoc.y2018.d02.iamdrowsy
(:require
[aoc.utils :as u :refer [deftest]]
[aoc.y2018.d02.data :refer [input answer-1 answer-2]]
[clojure.test :refer [is testing]]
[clojure.string :as str]
[com.rpl.specter :as s]))
(defn letter-frequencies [s]
(into #{} (vals (frequencies s))))
(defn solve-1 []
... | |
57e476171cff59c09aefc20597f845d21e790ab8527320f148741c3fa6d5fdf8 | arthur-adjedj/proof_assistant | eval.ml | open Proof_build.Formule
type trilleen = T | F | I
let et a b = match a,b with
|T,T -> T
|T,I | I,T -> I
|_ -> F
let ou a b = match a,b with
|T,_ | _,T -> T
|I,I -> I
|_ -> F
let non = function
|T -> F
|F -> T
|I -> I
let imp a b = match a,b with
|T,F -> F
|I,F | T,I -> I
|_ -> F
... | null | https://raw.githubusercontent.com/arthur-adjedj/proof_assistant/6502056fc514c97b89a5896a801c4cdf4cec9e00/pr_assistant/main/eval.ml | ocaml | open Proof_build.Formule
type trilleen = T | F | I
let et a b = match a,b with
|T,T -> T
|T,I | I,T -> I
|_ -> F
let ou a b = match a,b with
|T,_ | _,T -> T
|I,I -> I
|_ -> F
let non = function
|T -> F
|F -> T
|I -> I
let imp a b = match a,b with
|T,F -> F
|I,F | T,I -> I
|_ -> F
... | |
cf7a0a7c00cb307559fa3caa81d51a1c4b8e3db786a19d5a60a16950e45c2e99 | racket/typed-racket | no-check.rkt | #lang typed-racket/minimal
(require racket/require typed/private/no-check-helper
(subtract-in typed/scheme/base typed/private/no-check-helper))
(provide (all-from-out typed/scheme/base typed/private/no-check-helper))
| null | https://raw.githubusercontent.com/racket/typed-racket/9974c9d07d4faf09617607f9e46bc6ec32934a17/typed-racket-compatibility/typed/scheme/base/no-check.rkt | racket | #lang typed-racket/minimal
(require racket/require typed/private/no-check-helper
(subtract-in typed/scheme/base typed/private/no-check-helper))
(provide (all-from-out typed/scheme/base typed/private/no-check-helper))
| |
075c11175b7a0f41c84db57ea8bfc6bdcb115408f8747899eeefb96bdd0bab26 | bobbae/gosling-emacs | glob.ml | ; Provide Csh globbing functions to Emacs. Does this by actually
; starting a Csh as a subprocess, then feeding 'echo' commands to
; do the globbing. The Csh variable 'nonomatch' is initially set,
; so unsucessful globs will return the original string.
;
; (glob string) - feed the string to csh for globbing. Return... | null | https://raw.githubusercontent.com/bobbae/gosling-emacs/8fdda532abbffb0c952251a0b5a4857e0f27495a/lib/maclib/local/glob.ml | ocaml | ; Provide Csh globbing functions to Emacs. Does this by actually
; starting a Csh as a subprocess, then feeding 'echo' commands to
; do the globbing. The Csh variable 'nonomatch' is initially set,
; so unsucessful globs will return the original string.
;
; (glob string) - feed the string to csh for globbing. Return... | |
33efc3d0458a2c02e4f8a5e540af38b9bfff751960cc494f9cb05fe59edfd90a | Lisp-Stat/special-functions | erf-test.lisp | -*- Mode : LISP ; Base : 10 ; Syntax : ANSI - Common - Lisp ; Package : SPECIAL - FUNCTIONS - TESTS -*-
Copyright ( c ) 2020 - 2022 by Symbolics Pte . Ltd. All rights reserved .
(in-package #:special-functions-tests)
(def-suite erf
:description "Tests for the error and related functions"
:in all-tests)
(in-sui... | null | https://raw.githubusercontent.com/Lisp-Stat/special-functions/09b2cb8a28ff8639f2238e11d51675bb94510b19/tests/erf-test.lisp | lisp | Base : 10 ; Syntax : ANSI - Common - Lisp ; Package : SPECIAL - FUNCTIONS - TESTS -*-
ERFC
ERFC INVERSE
The values in this test are so small that, at double-float
only runs this test using C long-doubles, and has fixtures for
re-enable this test. | Copyright ( c ) 2020 - 2022 by Symbolics Pte . Ltd. All rights reserved .
(in-package #:special-functions-tests)
(def-suite erf
:description "Tests for the error and related functions"
:in all-tests)
(in-suite erf)
ERF
(test erf-small
:description "Test error function on values very near 0"
(let ((result... |
d72551e0b2f261a4e8fdad751d9b7e7b95ea047d2ed718227fe9b25d692f873c | input-output-hk/cardano-ledger | Coders.hs | {-# LANGUAGE BangPatterns #-}
# LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
{-# LANGUAGE GADTs #-}
# LANGUAGE LambdaCase #
# LANGUAGE MultiParamTypeClasses #
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TupleSections #
#... | null | https://raw.githubusercontent.com/input-output-hk/cardano-ledger/49a84725c4c2ecabc80f6dac215881bc23920962/libs/cardano-ledger-binary/src/Cardano/Ledger/Binary/Decoding/Coders.hs | haskell | # LANGUAGE BangPatterns #
# LANGUAGE GADTs #
# LANGUAGE OverloadedStrings #
# LANGUAGE RankNTypes #
* Creating decoders.
$Decoders
* Index types for well-formed Coders.
$Indexes
* Using Duals
* Containers, Combinators
$Combinators
* Low level (Encoding/Decoder) utility functions
============================... | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE LambdaCase #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TupleSections #
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilies #
module Cardano.Ledger.Binary.Decoding.Coders (
Decode (..... |
aeb39e097762e049100e72ecf76b3883e167514aff896bbbeb2aed218532bfb2 | bsaleil/lc | sum.scm.scm | ;;------------------------------------------------------------------------------
Macros
(##define-macro (def-macro form . body)
`(##define-macro ,form (let () ,@body)))
(def-macro (FLOATvector-const . lst) `',(list->f64vector lst))
(def-macro (FLOATvector? x) `(f64vector? ,x))
(def-macro (FLOATvector... | null | https://raw.githubusercontent.com/bsaleil/lc/ee7867fd2bdbbe88924300e10b14ea717ee6434b/tools/benchtimes/resultVMIL-lc-gsc-lc/LCf64naive/sum.scm.scm | scheme | ------------------------------------------------------------------------------
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Gabriel benchmarks
C benchmarks
Other benchmarks | Macros
(##define-macro (def-macro form . body)
`(##define-macro ,form (let () ,@body)))
(def-macro (FLOATvector-const . lst) `',(list->f64vector lst))
(def-macro (FLOATvector? x) `(f64vector? ,x))
(def-macro (FLOATvector . lst) `(f64vector ,@lst))
(def-macro (FLOATmake-vector n . init) `(make... |
db5bd3fbb9e1a098cde2224633b2486383de55010dd2116e889c1d20c52c00e3 | crategus/cl-cffi-gtk | gdk.drawing-context.lisp | ;;; ----------------------------------------------------------------------------
;;; gdk.drawing-context.lisp
;;;
The documentation of this file is taken from the 3 Reference Manual
Version 3.24 and modified to document the Lisp binding to the GDK library .
;;; See <>. The API documentation of the Lisp binding is
... | null | https://raw.githubusercontent.com/crategus/cl-cffi-gtk/22156e3e2356f71a67231d9868abcab3582356f3/gdk/gdk.drawing-context.lisp | lisp | ----------------------------------------------------------------------------
gdk.drawing-context.lisp
See <>. The API documentation of the Lisp binding is
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License for Lisp
License, or (at yo... | The documentation of this file is taken from the 3 Reference Manual
Version 3.24 and modified to document the Lisp binding to the GDK library .
available from < -cffi-gtk/ > .
Copyright ( C ) 2019 - 2020
as published by the Free Software Foundation , either version 3 of the
the GNU Lesser General Public ... |
ab03ea54599c54bcb827a855b1da9da055bf1a2ebcbe318be26a5b9270fc8335 | nirum-lang/nirum | Docs.hs | # LANGUAGE QuasiQuotes , TypeFamilies #
module Nirum.Targets.Docs ( Docs (..)
, blockToHtml
, makeFilePath
, makeUri
, moduleTitle
) where
import Data.Char
import qualified Data.List
import... | null | https://raw.githubusercontent.com/nirum-lang/nirum/4d4488b0524874abc6e693479a5cc70c961bad33/src/Nirum/Targets/Docs.hs | haskell | FIXME: remove trailing index.html on production | # LANGUAGE QuasiQuotes , TypeFamilies #
module Nirum.Targets.Docs ( Docs (..)
, blockToHtml
, makeFilePath
, makeUri
, moduleTitle
) where
import Data.Char
import qualified Data.List
import... |
38a5e954878491f37f37381d915f4dc71d5ff331a6a4da3d34227fd2f1e53e95 | hoelzl/Snark | sorts.lisp | ;;; -*- Mode: Lisp; Syntax: Common-Lisp; Package: snark -*-
;;; File: sorts.lisp
The contents of this file are subject to the Mozilla Public License
;;; Version 1.1 (the "License"); you may not use this file except in
;;; compliance with the License. You may obtain a copy of the License at
;;; /
;;;
Software distri... | null | https://raw.githubusercontent.com/hoelzl/Snark/06f86a31f476b2e4c28519765ab1e1519a4cc932/src/sorts.lisp | lisp | -*- Mode: Lisp; Syntax: Common-Lisp; Package: snark -*-
File: sorts.lisp
Version 1.1 (the "License"); you may not use this file except in
compliance with the License. You may obtain a copy of the License at
/
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
License for the specific langua... | The contents of this file are subject to the Mozilla Public License
Software distributed under the License is distributed on an " AS IS "
The Original Code is SNARK .
The Initial Developer of the Original Code is SRI International .
Portions created by the Initial Developer are Copyright ( C ) 1981 - 2012 .
... |
d99776f5d4086dc13ee750596696fde2a737b5779f55bd0ba8dc50b072b8f52e | kompendium-ano/factom-did-haskell | Types.hs | module Types where
| null | https://raw.githubusercontent.com/kompendium-ano/factom-did-haskell/4937289e26ce6617c09897f18f31ed8a4fca9199/factom-did-resolver/src/Types.hs | haskell | module Types where
| |
4523da0c0ed17f32cbc318dcd5a9044077251a0e9ecadf654bcd2a7b31d2c232 | letmaik/monadiccp | Grocery.hs | # LANGUAGE TypeFamilies #
# LANGUAGE FlexibleContexts #
A kid goes into a grocery store and buys four items . The cashier charges $ 7.11 .
-- The kid pays and is about to leave when the cashier calls the kid back, and says
" Hold on , I multiplied the four items instead of adding them ; I 'll try again ...
Gosh... | null | https://raw.githubusercontent.com/letmaik/monadiccp/fe4498e46a7b9d9e387fd5e4ed5d0749a89d0188/examples/Grocery.hs | haskell | The kid pays and is about to leave when the cashier calls the kid back, and says | # LANGUAGE TypeFamilies #
# LANGUAGE FlexibleContexts #
A kid goes into a grocery store and buys four items . The cashier charges $ 7.11 .
" Hold on , I multiplied the four items instead of adding them ; I 'll try again ...
Gosh , with adding them the price still comes to $ 7.11 " ! What were the prices of
the... |
1b27e1090169b4e2b88441996bffc19ece5276dbc1f4b09f0c7f28a7f448c955 | Eduap-com/WordMat | sheafb.lisp | ;;; -*- mode: lisp; package: cl-maxima; syntax: common-lisp; -*-
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; ;;;;;
Copyright ( c ) 1984 by , University of Texas ; ; ; ; ;
;;; All rights reserved ... | null | https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/share/affine/sheafb.lisp | lisp | -*- mode: lisp; package: cl-maxima; syntax: common-lisp; -*-
;;;;;
; ; ; ;
All rights reserved ;;;;;
)
(loop named sue for i from n while (pls-data current-pls)
with new-pls = current-pls
... |
(in-package :maxima)
returns the I'th open of the blowup of the FIRSTK coord of ZOPEN
(defun iblowup (zopen i firstk &aux ichart pss qss ineq answ)
(setq ichart (ichart i firstk (zopen-dim zopen)))
(setq pss (compose-rmap (zopen-coord ichart)
(zopen-coord zopen)))
(setq qss
(compose-rmap
(zopen-inv... |
5cbf7ba810b783a423166679b77f4c81963d19bb7ddbad3a3b2399f59192006e | lemmaandrew/CodingBatHaskell | getSandwich.hs | From
A sandwich is two pieces of bread with something in between . Return the string that
is between the first and last appearance of \"bread\ " in the given string , or return
the empty string \"\ " if there are not two pieces of bread .
A sandwich is two pieces of bread with something in between. Return th... | null | https://raw.githubusercontent.com/lemmaandrew/CodingBatHaskell/d839118be02e1867504206657a0664fd79d04736/CodingBat/String-2/getSandwich.hs | haskell | From
A sandwich is two pieces of bread with something in between . Return the string that
is between the first and last appearance of \"bread\ " in the given string , or return
the empty string \"\ " if there are not two pieces of bread .
A sandwich is two pieces of bread with something in between. Return th... | |
ee5a10eb14ffae30f5236efc5a62e7228238e149eb99cc0a4ab5e62bc2792322 | haskell-compat/base-compat | Compat.hs | # LANGUAGE CPP , NoImplicitPrelude #
{-# LANGUAGE RankNTypes #-}
#if __GLASGOW_HASKELL__ >= 702
# LANGUAGE Trustworthy #
#endif
module Control.Concurrent.Compat (
module Base
, forkFinally
, forkOSWithUnmask
) where
import Control.Concurrent as Base
#if !(MIN_VERSION_base(4,6,0))
import Control.Exception
#endif
#i... | null | https://raw.githubusercontent.com/haskell-compat/base-compat/847aa35c4142f529525ffc645cd035ddb23ce8ee/base-compat/src/Control/Concurrent/Compat.hs | haskell | # LANGUAGE RankNTypes #
| fork a thread and call the supplied function when the thread is about
to terminate, with an exception or a returned value. The function is
called with asynchronous exceptions masked.
> forkFinally action and_then =
> mask $ \restore ->
> forkIO $ try (restore action) >>= and_then... | # LANGUAGE CPP , NoImplicitPrelude #
#if __GLASGOW_HASKELL__ >= 702
# LANGUAGE Trustworthy #
#endif
module Control.Concurrent.Compat (
module Base
, forkFinally
, forkOSWithUnmask
) where
import Control.Concurrent as Base
#if !(MIN_VERSION_base(4,6,0))
import Control.Exception
#endif
#if !(MIN_VERSION_base(4,9,0))... |
cc7066254541b4a3f5b0391acaf8b6d2cdebcaf28bf86d3032e56508c5536ef4 | nuprl/gradual-typing-performance | scope1.rkt | The first three lines of this file were inserted by . They record metadata
;; about the language level of this file in a form that our tools can easily process.
#reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname scope1) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeat... | null | https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/pre-benchmark/htdp/base/Images/scope1.rkt | racket | about the language level of this file in a form that our tools can easily process.
| The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname scope1) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ())))
(define (f x)
(+ (* x x) 25))
|
92d204d86ef856d0fac2678b779e556cc95c981a074e649d413ceead3f0fb3be | benzap/eden | core_test.cljc | (ns eden.core-test
(:require
[clojure.test :refer [deftest is testing]]
[eden.core :as eden :include-macros true]
[eden-test.utils :refer [teval-expression teval are-eq* with-test-instance]
:include-macros true]))
| null | https://raw.githubusercontent.com/benzap/eden/dbfa63dc18dbc5ef18a9b2b16dbb7af0e633f6d0/test/eden/core_test.cljc | clojure | (ns eden.core-test
(:require
[clojure.test :refer [deftest is testing]]
[eden.core :as eden :include-macros true]
[eden-test.utils :refer [teval-expression teval are-eq* with-test-instance]
:include-macros true]))
| |
a74b9e644183b015d99c3bd5bef7b8edc304c8b28fbebd9dfbc09e869fdd1b50 | camlp5/camlp5 | prtools.mli | (* camlp5r *)
(* prtools.mli,v *)
Copyright ( c ) INRIA 2007 - 2017
type pr_context =
Pprintf.pr_context ==
{ ind : int; bef : string; aft : string; dang : string }
;
type pr_fun 'a = Pprintf.pr_fun 'a;
(* comments *)
value comm_bef : int -> MLast.loc -> string;
* [ comm_bef ind loc ] get the comment from t... | null | https://raw.githubusercontent.com/camlp5/camlp5/15e03f56f55b2856dafe7dd3ca232799069f5dda/main/prtools.mli | ocaml | camlp5r
prtools.mli,v
comments
meta functions to treat lists
* horizontal list with different function for the last element
* vertical list with different function for the last element
* [vlistf pc fl] acts like [vlist] except that the list is a
list of functions returning the pretty printed string.
*... | Copyright ( c ) INRIA 2007 - 2017
type pr_context =
Pprintf.pr_context ==
{ ind : int; bef : string; aft : string; dang : string }
;
type pr_fun 'a = Pprintf.pr_fun 'a;
value comm_bef : int -> MLast.loc -> string;
* [ comm_bef ind loc ] get the comment from the source just before the
given location... |
3e1858b649b478e0629c61b0a5328a3cbacc694a41878583b20ef2f028daf5ca | well-typed/plutonomy | Plutonomy.hs | # LANGUAGE CPP #
| Untyped plutus core using typed indices ( powered by " Subst " module ) .
module Plutonomy (
module Plutonomy.Raw,
module Plutonomy.Name,
module Plutonomy.Constant,
module Plutonomy.Conversion,
module Plutonomy.Pretty,
module Plutonomy.Optimize,
module Plutonomy.UPLC,
... | null | https://raw.githubusercontent.com/well-typed/plutonomy/978e3729660f3ca2544cca310d6e167f2f468b77/src/Plutonomy.hs | haskell | # LANGUAGE CPP #
| Untyped plutus core using typed indices ( powered by " Subst " module ) .
module Plutonomy (
module Plutonomy.Raw,
module Plutonomy.Name,
module Plutonomy.Constant,
module Plutonomy.Conversion,
module Plutonomy.Pretty,
module Plutonomy.Optimize,
module Plutonomy.UPLC,
... | |
0603fad46ef1eceef19691df0370b928643d766c09733020412d41609359b76e | colis-anr/morsmall | testParser.mli | (***************************************************************************)
(* A concise AST for POSIX shell *)
(* *)
Copyright ( C ) 2017,2018,2019 , , ... | null | https://raw.githubusercontent.com/colis-anr/morsmall/33cd42984f421e5da8414e18059dcef276f0593b/src/utilities/testParser.mli | ocaml | *************************************************************************
A concise AST for POSIX shell
This program is free s... |
Copyright ( C ) 2017,2018,2019 , ,
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 ... |
f78af3e76c87b808b3fa586847091be602fbb245095a7596f42dd48222fa1f13 | wedesoft/aiscm | test_core.scm | AIscm - Guile extension for numerical arrays and tensors .
Copyright ( C ) 2013 , 2014 , 2015 , 2016 , 2017 , 2018 , 2019 < >
;;
;; 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 v... | null | https://raw.githubusercontent.com/wedesoft/aiscm/2c3db8d00cad6e042150714ada85da19cf4338ad/tests/test_core.scm | scheme |
This program is free software: you can redistribute it and/or modify
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public... | AIscm - Guile extension for numerical arrays and tensors .
Copyright ( C ) 2013 , 2014 , 2015 , 2016 , 2017 , 2018 , 2019 < >
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 G... |
f4a787c49b9a45a4efaf114ed1e43d3bb725c73e300b8549e8ef157f7fb4691a | cryogen-project/cryogen-core | util_test.clj | (ns cryogen-core.util-test
(:require [cryogen-core.util :refer :all]
[net.cgrand.enlive-html :as enlive]
[clojure.test :refer [deftest testing is are]]))
(deftest filter-html-elems-test
(is (= (enlive/html [:div {:class "x"} [:div {:class "x"} "foo"]]
[:div {:class "x"... | null | https://raw.githubusercontent.com/cryogen-project/cryogen-core/8318bde771d39515b5f5a7f5af53ba5c55aeec35/test/cryogen_core/util_test.clj | clojure | (ns cryogen-core.util-test
(:require [cryogen-core.util :refer :all]
[net.cgrand.enlive-html :as enlive]
[clojure.test :refer [deftest testing is are]]))
(deftest filter-html-elems-test
(is (= (enlive/html [:div {:class "x"} [:div {:class "x"} "foo"]]
[:div {:class "x"... | |
008a6f2ef4152fd2675137430b11e469aa6f9932a6e8712d652e5c3178e0b9de | madvas/emojillionaire | emoji.cljs | (ns emojillionaire.components.emoji
(:require
[camel-snake-kebab.core :as cs :include-macros true]
[cljs-react-material-ui.icons :as icons]
[emojillionaire.emojis :refer [emojis]]
[emojillionaire.styles :as st]
[goog.string :as gstring]
[goog.string.format]
[reagent.core :as r]
))
(de... | null | https://raw.githubusercontent.com/madvas/emojillionaire/ee47e874db0c88b91985b6f9e72221f12d3010ff/src/cljs/emojillionaire/components/emoji.cljs | clojure | (ns emojillionaire.components.emoji
(:require
[camel-snake-kebab.core :as cs :include-macros true]
[cljs-react-material-ui.icons :as icons]
[emojillionaire.emojis :refer [emojis]]
[emojillionaire.styles :as st]
[goog.string :as gstring]
[goog.string.format]
[reagent.core :as r]
))
(de... | |
d97c568b0659f879e2a8158da916f9f395ac66ddab171dd765e9e6e532d59d48 | eponai/sulolive | header.cljc | (ns eponai.web.header
(:require [medley.core :as medley]
[taoensso.timbre :refer [debug error]]
[om.dom :as dom]
[eponai.common.database :as db]
[clojure.data :as data])
#?(:clj
(:import [om.dom Element])))
To create your own tags , overwrite these three multi... | null | https://raw.githubusercontent.com/eponai/sulolive/7a70701bbd3df6bbb92682679dcedb53f8822c18/src/eponai/web/header.cljc | clojure | They all dispatch on the :tag key.
<title>
<meta>
<link>
Implementation
If there's no matching node, distinct by the head-meta
to avoid creating duplicates.
Creates fake nodes to de-dupe the head-meta without any nodes yet.
Match again to remove the duplicates.
Remove the fake node from the matches.
CLJS
Av... | (ns eponai.web.header
(:require [medley.core :as medley]
[taoensso.timbre :refer [debug error]]
[om.dom :as dom]
[eponai.common.database :as db]
[clojure.data :as data])
#?(:clj
(:import [om.dom Element])))
To create your own tags , overwrite these three multi... |
5c22fd09d8afc6dcf56c6515d85a6d555ea8f8e0578253fe6bd2aeef8d4ed530 | LexiFi/menhir | unionFind.mli | (******************************************************************************)
(* *)
(* *)
... | null | https://raw.githubusercontent.com/LexiFi/menhir/794e64e7997d4d3f91d36dd49aaecc942ea858b7/src/unionFind.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... |
fef7f71959313b329496623d1c90166f213ddbf8e7522b8df56067103216cd3e | elastic/eui-cljs | super_select.cljs | (ns eui.super-select
(:require ["@elastic/eui/lib/components/form/super_select/super_select.js" :as eui]))
(def EuiSuperSelect eui/EuiSuperSelect)
| null | https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/super_select.cljs | clojure | (ns eui.super-select
(:require ["@elastic/eui/lib/components/form/super_select/super_select.js" :as eui]))
(def EuiSuperSelect eui/EuiSuperSelect)
| |
3c73fca73b30b621c88564b957b9264429df37435921e3d50e934579e769b3b0 | imrehg/ypsilon | srfi-41.scm | #!nobacktrace
(library (srfi srfi-41)
(export stream-null stream-cons stream? stream-null? stream-pair? stream-car
stream-cdr stream-lambda define-stream list->stream port->stream stream
stream->list stream-append stream-concat stream-constant stream-drop
stream-drop-while stream-filter ... | null | https://raw.githubusercontent.com/imrehg/ypsilon/e57a06ef5c66c1a88905b2be2fa791fa29848514/sitelib/srfi/srfi-41.scm | scheme | #!nobacktrace
(library (srfi srfi-41)
(export stream-null stream-cons stream? stream-null? stream-pair? stream-car
stream-cdr stream-lambda define-stream list->stream port->stream stream
stream->list stream-append stream-concat stream-constant stream-drop
stream-drop-while stream-filter ... | |
e364918b83bade48f6f1eebb90617e20cef3b595410a01f978019da76c42e0cd | manuel-serrano/bigloo | recette.scm | ;*=====================================================================*/
* serrano / prgm / project / bigloo / api / alsa / recette / recette.scm * /
;* ------------------------------------------------------------- */
* Author : * /
* Creation ... | null | https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/api/pulseaudio/recette/recette.scm | scheme | *=====================================================================*/
* ------------------------------------------------------------- */
* ------------------------------------------------------------- */
*=====================================================================*/
*---------------------------... | * serrano / prgm / project / bigloo / api / alsa / recette / recette.scm * /
* Author : * /
* Creation : Mon Feb 4 14:28:58 2002 * /
* Last change : Mon Mar 3 10:49:24 2014 ( serrano ) * /
* ... |
3cffaa3f34e1fa7171144b143f578b5432aa72bed8038927aa3f61b1763195db | bgamari/bayes-stack | Types.hs | # LANGUAGE TypeFamilies , KindSignatures , ConstraintKinds #
module BayesStack.Types ( Probability
, HasLikelihood(..)
, FullConditionable(..)
) where
import GHC.Prim (Constraint)
import Numeric.Log
type Probability = Log Double
class HasLikeli... | null | https://raw.githubusercontent.com/bgamari/bayes-stack/020df7bb7263104fdea254e57d6c7daf7806da3e/BayesStack/Types.hs | haskell | | A distribution for which a full conditional factor can be produced | # LANGUAGE TypeFamilies , KindSignatures , ConstraintKinds #
module BayesStack.Types ( Probability
, HasLikelihood(..)
, FullConditionable(..)
) where
import GHC.Prim (Constraint)
import Numeric.Log
type Probability = Log Double
class HasLikeli... |
4af9319cda659919c335329840c85840a422c0eb0d1cb358cf0d04ce4af73442 | aligusnet/mltool | Regularization.hs | |
Module : MachineLearning . Regularization
Description : Regularization
Copyright : ( c ) , 2017
License : BSD-3
Stability : experimental
Portability : POSIX
Regularization .
Module: MachineLearning.Regularization
Description: Regularization
Copyright: (c) Alexander Ignatyev, 2017
License: BSD-3
Sta... | null | https://raw.githubusercontent.com/aligusnet/mltool/92d74c4cc79221bfdcfb76aa058a2e8992ecfe2b/src/MachineLearning/Regularization.hs | haskell | | Regularization
^ No regularization
^ L2 Regularization
| Calculates regularization for Model.cost function.
It takes regularization parameter and theta.
| Calculates regularization for Model.gradient function.
It takes regularization parameter and theta. | |
Module : MachineLearning . Regularization
Description : Regularization
Copyright : ( c ) , 2017
License : BSD-3
Stability : experimental
Portability : POSIX
Regularization .
Module: MachineLearning.Regularization
Description: Regularization
Copyright: (c) Alexander Ignatyev, 2017
License: BSD-3
Sta... |
16b6a8878bcdc10300e92c2de8916d794716ab5469f777d8de31a085d8644cda | zoomhub/zoomhub | Debug.hs | module ZoomHub.Debug
( spy,
)
where
import qualified Debug.Trace as Trace
spy :: Show a => String -> a -> a
spy tag x = Trace.trace (tag <> ": " <> show x) x
| null | https://raw.githubusercontent.com/zoomhub/zoomhub/3779709478d17a4c46762de1d5d3ae451437c087/src/ZoomHub/Debug.hs | haskell | module ZoomHub.Debug
( spy,
)
where
import qualified Debug.Trace as Trace
spy :: Show a => String -> a -> a
spy tag x = Trace.trace (tag <> ": " <> show x) x
| |
622c7dec7a3b77ef473174a76205a35bb753b2a754f2ddcf7676b76faa816f12 | grin-compiler/ghc-wpc-sample-programs | Suffix.hs |
module Agda.Utils.Suffix where
import Data.Char
import Agda.Utils.Impossible
import Data.IORef
import qualified System.IO.Unsafe as UNSAFE
import Agda.Interaction.Options.IORefs
------------------------------------------------------------------------
-- Subscript digits
-- | Are we allowed to use unicode supscrip... | null | https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/Agda-2.6.1/src/full/Agda/Utils/Suffix.hs | haskell | ----------------------------------------------------------------------
Subscript digits
| Are we allowed to use unicode supscript characters?
| Is the character one of the subscripts @'₀'@-@'₉'@?
| Converts @'0'@-@'9'@ to @'₀'@-@'₉'@
Precondition: The digit needs to be in range.
Precondition: The digit needs to... |
module Agda.Utils.Suffix where
import Data.Char
import Agda.Utils.Impossible
import Data.IORef
import qualified System.IO.Unsafe as UNSAFE
import Agda.Interaction.Options.IORefs
subscriptAllowed :: UnicodeOrAscii
subscriptAllowed = UNSAFE.unsafePerformIO (readIORef unicodeOrAscii)
isSubscriptDigit :: Char -> Bo... |
394e036207932f4bf6a126f3e2efe01ae199d5d3e4d2d50b4a52f7d79a9ea791 | diagrams/geometry | Arc.hs | {-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE TypeFamilies #
# LANGUAGE ViewPatterns #
-----------------------------------------------------------------------------
-- |
-- Module : Geometry.TwoD.Arc
Copyright :... | null | https://raw.githubusercontent.com/diagrams/geometry/945c8c36b22e71d0c0e4427f23de6614f4e7594a/src/Geometry/TwoD/Arc.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
---------------------------------------------------------------------------
|
Module : Geometry.TwoD.Arc
License : BSD-style (see LICENSE)
Maintainer :
---------------------------------------------------------------------------
F... | # LANGUAGE MultiParamTypeClasses #
# LANGUAGE TypeFamilies #
# LANGUAGE ViewPatterns #
Copyright : ( c ) 2011 - 2017 diagrams team ( see LICENSE )
Two - dimensional arcs , approximated by cubic bezier curves .
module Geometry.TwoD.Arc
( arc
, arc'
, arcT
, arcCCW
, arcCW
, be... |
5d7f4482502ea68cbc8396b7857d71f0683caabafb9d5754d413dcd72e607e1d | nushio3/learn-haskell | kazu.hs | data Count = One | Two | Three | Huh
deriving (Eq, Ord, Show, Read, Enum)
instance Num Count where
One + One = Two
One + Two = Three
Two + One = Three
_ + _ = Huh
Three - One = Two
Three - Two = One
Two - One = One
_ - _ = Huh
One * x = x
x * One = x
_ * _ = Huh
... | null | https://raw.githubusercontent.com/nushio3/learn-haskell/eda0fd0b33e9c4b7552afd24c6a25a105cca5f94/kazu.hs | haskell | data Count = One | Two | Three | Huh
deriving (Eq, Ord, Show, Read, Enum)
instance Num Count where
One + One = Two
One + Two = Three
Two + One = Three
_ + _ = Huh
Three - One = Two
Three - Two = One
Two - One = One
_ - _ = Huh
One * x = x
x * One = x
_ * _ = Huh
... | |
e30d1cf04d41b1cfa306328ebaa0547ac9449c77af6219dc4c625905f46ea5a0 | braidchat/braid | core.cljc | (ns braid.version.core
(:require
[braid.base.api :as base]
#?@(:clj
[[braid.base.conf :refer [config]]])))
(defn init! []
#?(:clj
(do
(base/register-config-var! :version :optional [:string])
(base/register-additional-script!
{:body
;; can't just include a st... | null | https://raw.githubusercontent.com/braidchat/braid/64e5587ec9161ea130da3821e8d276aad389801b/src/braid/version/core.cljc | clojure | can't just include a string here
b/c config is not ready at "compile" time
needs to be at run time | (ns braid.version.core
(:require
[braid.base.api :as base]
#?@(:clj
[[braid.base.conf :refer [config]]])))
(defn init! []
#?(:clj
(do
(base/register-config-var! :version :optional [:string])
(base/register-additional-script!
{:body
(reify Object
... |
66a879efab098ca72c1f99b253f4f0b9f89aadf7eded4be48b026940397d7f83 | eerohele/sigel | xpath_spec.clj | (ns sigel.xpath-spec
(:require [clojure.spec.alpha :as s]
[clojure.spec.test.alpha :as spec-test]
[sigel.xpath.core :as xpath]
[sigel.protocols :refer :all])
(:import (net.sf.saxon.s9api XPathCompiler XdmValue)))
(s/def ::prefix string?)
(s/def ::uri string?)
(s/def ::namespace... | null | https://raw.githubusercontent.com/eerohele/sigel/9c2c8e9526cccf7c3f980ef062ab404175f80da1/test/sigel/xpath_spec.clj | clojure | (ns sigel.xpath-spec
(:require [clojure.spec.alpha :as s]
[clojure.spec.test.alpha :as spec-test]
[sigel.xpath.core :as xpath]
[sigel.protocols :refer :all])
(:import (net.sf.saxon.s9api XPathCompiler XdmValue)))
(s/def ::prefix string?)
(s/def ::uri string?)
(s/def ::namespace... | |
f734c33c6441b4398ee688d177d65dfeea3af4c5e6dc00de1acc02b03f87f44b | haskell-opengl/OpenGL | Quadrics.hs | --------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.GLU.Quadrics
Copyright : ( c ) 2002 - 2019
-- License : BSD3
--
Maintainer : < >
-- Stability : stable
-- Portability : portable
--
This module corresponds to c... | null | https://raw.githubusercontent.com/haskell-opengl/OpenGL/f7af8fe04b0f19c260a85c9ebcad612737cd7c8c/src/Graphics/Rendering/OpenGL/GLU/Quadrics.hs | haskell | ------------------------------------------------------------------------------
|
Module : Graphics.Rendering.OpenGL.GLU.Quadrics
License : BSD3
Stability : stable
Portability : portable
------------------------------------------------------------------------------
-------------------------------... | Copyright : ( c ) 2002 - 2019
Maintainer : < >
This module corresponds to chapter 6 ( Quadrics ) of the GLU specs .
module Graphics.Rendering.OpenGL.GLU.Quadrics (
QuadricNormal, QuadricTexture(..), QuadricOrientation(..),
QuadricDrawStyle(..), QuadricStyle(..),
Radius, Height, Angle, Slic... |
5f65466fcadd6f0c25c05530d94fef2094bb4b02546786cd9f5dadd978d60798 | returntocorp/semgrep | parsing_recovery_cpp.ml |
*
* Copyright ( C ) 2011 Facebook
* Copyright ( C ) 2006 , 2007 , 2008 Ecole des Mines de Nantes
*
* This library is free software ; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation .
... | null | https://raw.githubusercontent.com/returntocorp/semgrep/fec5eeb43168060f73a2134c9bc49e15f166f9c2/languages/cpp/menhir/parsing_recovery_cpp.ml | ocaml | ***************************************************************************
Wrappers
***************************************************************************
***************************************************************************
Helpers
***********************************************************************... |
*
* Copyright ( C ) 2011 Facebook
* Copyright ( C ) 2006 , 2007 , 2008 Ecole des Mines de Nantes
*
* This library is free software ; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation .
... |
78ba42d62323fbefc3ad0664a0529cd05ede549d45845f8b12af4f54a4a51158 | GNOME/gimp-tiny-fu | gimp-online.scm | ; GIMP - The GNU Image Manipulation Program
Copyright ( C ) 1995 and
;
; gimp-online.scm
Copyright ( C ) 2003 < >
;
; 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 ... | null | https://raw.githubusercontent.com/GNOME/gimp-tiny-fu/a64d85eec23b997e535488d67f55b44395ba3f2e/scripts/gimp-online.scm | scheme | GIMP - The GNU Image Manipulation Program
gimp-online.scm
This program is free software: you can redistribute it and/or modify
either version 3 of the License , or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the imp... | Copyright ( C ) 1995 and
Copyright ( C ) 2003 < >
it under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
(define (gimp-online-docs-web-site)
(plug-in-web-browser "/")
)
(define (gimp-help-concepts-usage)
(gimp-help "... |
63c096236add39a3cf7b1a35d5400178f18dc4789b77015b68988f04cca992ef | haskell-tools/haskell-tools | Coerce_res.hs | module Refactor.OrganizeImports.Coerce where
import Data.Coerce (coerce)
import Data.List
import Data.Maybe (Maybe(Just, Nothing))
import Prelude ()
newtype Mayb' a = Mayb' (Maybe a)
a :: Mayb' a -> Maybe a
a = coerce
| null | https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/builtin-refactorings/examples/Refactor/OrganizeImports/Coerce_res.hs | haskell | module Refactor.OrganizeImports.Coerce where
import Data.Coerce (coerce)
import Data.List
import Data.Maybe (Maybe(Just, Nothing))
import Prelude ()
newtype Mayb' a = Mayb' (Maybe a)
a :: Mayb' a -> Maybe a
a = coerce
| |
3dc619bb8df67db02759061ac2692e5e9968ea169505243af4054ef78007fa97 | rtoy/cmucl | boot-2014-05-1.lisp | Remove the UNIX package from the package use list of the VM
package . The UNIX package is only needed to provide the SIGCONTEXT
;; symbol, so we just prefix it everywhere.
(unuse-package "UNIX" "VM")
| null | https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/bootfiles/20e/boot-2014-05-1.lisp | lisp | symbol, so we just prefix it everywhere. | Remove the UNIX package from the package use list of the VM
package . The UNIX package is only needed to provide the SIGCONTEXT
(unuse-package "UNIX" "VM")
|
2a8f862d5d47f8703f3c2813b0bf118fe2d7d7497f819db30daef3ebcc271c7a | OCamlPro/ez_api | ezReq.mli | (**************************************************************************)
(* *)
Copyright 2018 - 2022 OCamlPro
(* *)
(* All right... | null | https://raw.githubusercontent.com/OCamlPro/ez_api/5253f7dd8936e923290aa969ee43ebd3dc6fce2d/src/request/virtual/cb/ezReq.mli | ocaml | ************************************************************************
All rights reserved. This file is distributed under the terms of the
exception on linking descr... | Copyright 2018 - 2022 OCamlPro
GNU Lesser General Public License version 2.1 , with the special
module Interface : EzReq_S.Interface
include EzReq_S.S
|
36e8777562533e02525dba6fa4b1eee84bee7c89d5b89d56a1d58ba8165da3ff | reanimate/reanimate | doc_eckert1P.hs | #!/usr/bin/env stack
-- stack runghc --package reanimate
module Main (main) where
import Reanimate
import Reanimate.GeoProjection
import Reanimate.Builtin.Images
main :: IO ()
main = reanimate $ animate $
const $ scaleToSize screenWidth screenHeight $
embedImage $ project smallEarth ... | null | https://raw.githubusercontent.com/reanimate/reanimate/5ea023980ff7f488934d40593cc5069f5fd038b0/examples/doc_eckert1P.hs | haskell | stack runghc --package reanimate | #!/usr/bin/env stack
module Main (main) where
import Reanimate
import Reanimate.GeoProjection
import Reanimate.Builtin.Images
main :: IO ()
main = reanimate $ animate $
const $ scaleToSize screenWidth screenHeight $
embedImage $ project smallEarth eckert1P
|
35bd6fdb80f848f182c602c2c18f9b4459da934f5edc591345209a2bc93c780a | nanit/kubernetes-custom-hpa | prometheus.clj | (ns custom-hpa.monitor.prometheus
(:require [iapetos.core :as prometheus]
[iapetos.export :as export]
[custom-hpa.helpers.env :refer [int-env double-env]]))
(def ^:private deployment (delay (System/getenv "DEPLOYMENT")))
(def ^:private max-replicas (delay (int-env "MAX_REPLICAS")))
(de... | null | https://raw.githubusercontent.com/nanit/kubernetes-custom-hpa/e6f07f271336c3ede1e8cdfcf426f639469c2f33/app/src/custom_hpa/monitor/prometheus.clj | clojure | (ns custom-hpa.monitor.prometheus
(:require [iapetos.core :as prometheus]
[iapetos.export :as export]
[custom-hpa.helpers.env :refer [int-env double-env]]))
(def ^:private deployment (delay (System/getenv "DEPLOYMENT")))
(def ^:private max-replicas (delay (int-env "MAX_REPLICAS")))
(de... | |
9da41942f4a049715607d9e7ad9081a19d95eb5cb16584342a68dba700cafb84 | jgrodziski/set-game | main.cljs | (ns ^:figwheel-no-load env.android.main
(:require [reagent.core :as r]
[re-frame.core :refer [clear-subscription-cache!]]
[set-game.android.core :as core]
[figwheel.client :as figwheel :include-macros true]))
(enable-console-print!)
(def cnt (r/atom 0))
(defn reloader [] @cnt [... | null | https://raw.githubusercontent.com/jgrodziski/set-game/4f918f53f26fe1b7744773cf1786ccf7272a121d/frontend/env/dev/env/android/main.cljs | clojure | (ns ^:figwheel-no-load env.android.main
(:require [reagent.core :as r]
[re-frame.core :refer [clear-subscription-cache!]]
[set-game.android.core :as core]
[figwheel.client :as figwheel :include-macros true]))
(enable-console-print!)
(def cnt (r/atom 0))
(defn reloader [] @cnt [... | |
c9686929947774e3b85e775da24140459105dbaf2995c0e2c3ac5399e8fddb01 | district0x/district-voting | feedback_page.cljs | (ns district-voting.pages.feedback-page
(:require
[district-voting.components.bottom-logo :refer [bottom-logo]]
[district-voting.components.contract-info :refer [contract-info]]
[district-voting.components.how-to-instructions :refer [how-to-instructions]]
[district-voting.components.voting-bar :refer ... | null | https://raw.githubusercontent.com/district0x/district-voting/ef253671b00bdccec4575bcfa1b72b25e28afc22/src/cljs/district_voting/pages/feedback_page.cljs | clojure | Only for styling purposes | (ns district-voting.pages.feedback-page
(:require
[district-voting.components.bottom-logo :refer [bottom-logo]]
[district-voting.components.contract-info :refer [contract-info]]
[district-voting.components.how-to-instructions :refer [how-to-instructions]]
[district-voting.components.voting-bar :refer ... |
3983265f6551ed33585030bf6b7174a3113350801f05b2b2f8ebb78034b433e6 | yuriy-chumak/ol | intern.scm | ;;;
;;; Value interning and conversions
;;;
; have mappings:
; - strings->symbol
; - bytes->bytecode (where returned bytecode may use spacial primops)
; (- intern-char -> x → x')
; this module makes unique symbols table, so same symbols must have same address.
; e.g. (eq? 'sym1 'sym1) => #true
(define-library (... | null | https://raw.githubusercontent.com/yuriy-chumak/ol/513fda61e1f606747f55439be45908e135a6353b/lang/intern.scm | scheme |
Value interning and conversions
have mappings:
- strings->symbol
- bytes->bytecode (where returned bytecode may use spacial primops)
(- intern-char -> x → x')
this module makes unique symbols table, so same symbols must have same address.
e.g. (eq? 'sym1 'sym1) => #true
hack warning, could use normal = ... |
(define-library (lang intern)
(export
string->uninterned-symbol
fork-symbol-interner)
(import
(scheme base)
(owl string)
(otus async)
(owl list)
(owl math)
(owl io)
(owl ff))
(begin
TODO : подумать о табличке символов как ff с хеш - ключами
(... |
c0f4d7c412a3867f2926e3f7688b58d1ebf7da459e835cda007269435ba88c53 | athensresearch/athens | view.cljs | (ns athens.types.tasks.view
"Views for Athens Tasks"
(:require
["/components/Block/Taskbox" :refer [Taskbox]]
["/components/Icons/Icons" :refer [PencilIcon]]
["/components/ModalInput/ModalInput" :refer [ModalInput]]
["/components/ModalInput/ModalInputPopover" :... | null | https://raw.githubusercontent.com/athensresearch/athens/ca72470811d2a3b08c699c6fbc411358ab5a456c/src/cljs/athens/types/tasks/view.cljs | clojure | View
description
tasking/assignment
provenance
Making assumption that for now we can add due date manually without date-picker.
TODO here we add styles
NOTE: temporary magic, stripping `:task/` 🤷♂️ | (ns athens.types.tasks.view
"Views for Athens Tasks"
(:require
["/components/Block/Taskbox" :refer [Taskbox]]
["/components/Icons/Icons" :refer [PencilIcon]]
["/components/ModalInput/ModalInput" :refer [ModalInput]]
["/components/ModalInput/ModalInputPopover" :... |
5c22a8fe1623c0773a44b30a943555ec397dac71c8497f2ec4b7af904a85ceae | greglook/solanum | core.clj | (ns solanum.output.core
"Core event sink protocol and methods."
(:require
[clojure.tools.logging :as log]))
(defprotocol Output
"Sink which can output batches of events."
(write-events
[output events]
"Write a sequence of metrics events to the output."))
(defmulti initialize
"Construct a new ... | null | https://raw.githubusercontent.com/greglook/solanum/dd90a38ebc1f8fb201f555430044268d4f60752d/src/solanum/output/core.clj | clojure | (ns solanum.output.core
"Core event sink protocol and methods."
(:require
[clojure.tools.logging :as log]))
(defprotocol Output
"Sink which can output batches of events."
(write-events
[output events]
"Write a sequence of metrics events to the output."))
(defmulti initialize
"Construct a new ... | |
274a631d5da177eb3c212034d6c831de8d6209baf8de6f4ad533c8f21e2079b0 | huangjs/cl | database.lisp | (in-package :cl-user)
(defpackage :hjs.util.database
(:use :cl :cl-fad :hjs.data.tree :hjs.meta.essential :hjs.data.sequence :hjs.meta.lisp)
(:nicknames :hjs.util.db)
(:export #:*default-table-size*
#:delete-all-rows
#:delete-rows
#:do-rows
#:member-of
... | null | https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/mylib/database.lisp | lisp | it's better to catch bad values before they go into the table rather than when you try to use them."
Select a sorted list of artists with songs in the genre \"Rock\"
finally
common idioms
for mp3 database | (in-package :cl-user)
(defpackage :hjs.util.database
(:use :cl :cl-fad :hjs.data.tree :hjs.meta.essential :hjs.data.sequence :hjs.meta.lisp)
(:nicknames :hjs.util.db)
(:export #:*default-table-size*
#:delete-all-rows
#:delete-rows
#:do-rows
#:member-of
... |
04d56879a687394a073f459a284e6a25fc0676d95b34a2caa61c9527b1cdeb62 | danielecapo/sfont | utilities.rkt | #lang racket
(require "glyphlist.rkt")
(provide
code+expr
(contract-out
[n-groups (-> (listof any/c) natural-number/c (listof (listof any/c)))]
[num->int (-> rational? integer?)]
[double (-> number? number?)]
[° (-> real? real?)]
[pi/2 real?]
[pi/3 real?]
[pi/4 real?]
[pi/6 real?]
[2pi real?]
[... | null | https://raw.githubusercontent.com/danielecapo/sfont/c854f9734f15f4c7cd4b98e041b8c961faa3eef2/sfont/utilities.rkt | racket | n-groups
List [Any], Natural -> List of List [Any]
Rational -> Integer
convert a rational number to integer
Number -> Number
Real -> Real
convert from degree to radians
common angles
String -> Line
produce a line from a string
String -> Text
produce a text from a string
produce the unicode code of the gly... | #lang racket
(require "glyphlist.rkt")
(provide
code+expr
(contract-out
[n-groups (-> (listof any/c) natural-number/c (listof (listof any/c)))]
[num->int (-> rational? integer?)]
[double (-> number? number?)]
[° (-> real? real?)]
[pi/2 real?]
[pi/3 real?]
[pi/4 real?]
[pi/6 real?]
[2pi real?]
[... |
a1315bb3459e1ffcb1b923e2a56d1d823f27ae2008b44ef75a102d1ad5c3b0db | jafingerhut/clojure-benchmarks | mandelbrot.conses-too-much1.clj | clj-run.sh does not send the program name as the first command line
;; argument -- only the command line arguments after the command name.
;; Needed for BufferedOutputStream
(import '(java.io BufferedOutputStream))
(def prog-name "mandelbrot")
(def args *command-line-args*)
(defn usage [exit-code]
(printf "usage... | null | https://raw.githubusercontent.com/jafingerhut/clojure-benchmarks/474a8a4823727dd371f1baa9809517f9e0b508d4/mandelbrot/mandelbrot.conses-too-much1.clj | clojure | argument -- only the command line arguments after the command name.
Needed for BufferedOutputStream
iterations-remaining (dec max-iterations)
(int (/ (+ n (dec mult)) mult)))
(def num-line-bytes (round-up-to-next-multiple-of size 8))
otherwise, pad the last partition with copies of i until
it is length n
It s... | clj-run.sh does not send the program name as the first command line
(import '(java.io BufferedOutputStream))
(def prog-name "mandelbrot")
(def args *command-line-args*)
(defn usage [exit-code]
(printf "usage: %s size [print-in-text-format]\n" prog-name)
(printf " size must be a positive integer\n")
(flush... |
5d33446d28c37f2b43e9c1ee39cb28d784eba4b1fca62454ef8b395c99e26009 | travelping/flower | flower_mac_learning.erl | -module(flower_mac_learning).
-behaviour(gen_server).
%% API
-export([start_link/0, insert/2, insert/3, lookup/1, lookup/2,
expire/0, may_learn/1, may_learn/2, eth_addr_is_reserved/1,
is_broadcast/1,
dump/0]).
%% gen_server callbacks
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
terminate/2, ... | null | https://raw.githubusercontent.com/travelping/flower/549015e8ef6e26d6b4bd10c5e527894e55218168/src/flower_mac_learning.erl | erlang | API
gen_server callbacks
===================================================================
API
===================================================================
--------------------------------------------------------------------
@doc
Starts the server
@end
---------------------------------------------------... | -module(flower_mac_learning).
-behaviour(gen_server).
-export([start_link/0, insert/2, insert/3, lookup/1, lookup/2,
expire/0, may_learn/1, may_learn/2, eth_addr_is_reserved/1,
is_broadcast/1,
dump/0]).
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
terminate/2, code_change/3]).
-define(SERVE... |
fec54779e614fe144a57d3c8ec983b3e6d6bba238b8655cc257ca4fe323c6eaf | cedlemo/OCaml-GI-ctypes-bindings-generator | Search_entry.mli | open Ctypes
type t
val t_typ : t typ
val create :
unit -> Widget.t ptr
(*Not implemented gtk_search_entry_handle_event type union not implemented*)
| null | https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Search_entry.mli | ocaml | Not implemented gtk_search_entry_handle_event type union not implemented | open Ctypes
type t
val t_typ : t typ
val create :
unit -> Widget.t ptr
|
1986133d6afb7fe5946522a4785419a59b0a107d860324cc49f5fe9aaef2aee5 | bos/rwh | return3.hs | {-- snippet all --}
ch08 / return3.hs
returnTest :: IO ()
returnTest =
do one <- return 1
let two = 2
putStrLn $ show (one + two)
{-- /snippet all --}
| null | https://raw.githubusercontent.com/bos/rwh/7fd1e467d54aef832f5476ebf5f4f6a898a895d1/examples/ch08/return3.hs | haskell | - snippet all -
- /snippet all - | ch08 / return3.hs
returnTest :: IO ()
returnTest =
do one <- return 1
let two = 2
putStrLn $ show (one + two)
|
1788fa7c0a1b5b338e4de3cf37913d0cb8fffb7d757f9b1bf4f39ac1b158b5d8 | haskell-lisp/yale-haskell | top-definitions.scm | File :
;;; Description: This creates definitions for all top level (exportable)
;;; object in a module.
(define (create-top-definitions)
(dolist (decl (module-decls *module*))
(if (eq? (module-type *module*) 'interface)
(when (signdecl? decl)
(create-var-definitions decl (signdecl-vars decl)))
(when (... | null | https://raw.githubusercontent.com/haskell-lisp/yale-haskell/4e987026148fe65c323afbc93cd560c07bf06b3f/import-export/top-definitions.scm | scheme | Description: This creates definitions for all top level (exportable)
object in a module.
------------------------------------------------------------------------
creation of definitions
------------------------------------------------------------------------
This also creates definitions for the constructors | File :
(define (create-top-definitions)
(dolist (decl (module-decls *module*))
(if (eq? (module-type *module*) 'interface)
(when (signdecl? decl)
(create-var-definitions decl (signdecl-vars decl)))
(when (valdef? decl)
(create-var-definitions
decl (collect-pattern-vars (valdef-lhs decl))))))
... |
418b55ff5e166daa2df97e51a8f84a1d66218d4277ee3fd23b20d9636f1f6d19 | zenhack/haskell-capnp | Convert.hs | # LANGUAGE DataKinds #
{-# LANGUAGE ExplicitForAll #-}
# LANGUAGE FlexibleContexts #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilies #
-- |
-- Module: Capnp.Convert
-- Description: Convert between messages, typed capnproto values, and (lazy)bytestring(builders).
--
-- This module... | null | https://raw.githubusercontent.com/zenhack/haskell-capnp/6cf9fae35189a3668f2740d64c634675ec5fbdec/lib/Capnp/Convert.hs | haskell | # LANGUAGE ExplicitForAll #
|
Module: Capnp.Convert
Description: Convert between messages, typed capnproto values, and (lazy)bytestring(builders).
This module provides various helper functions to convert between messages, types defined
in capnproto schema (called "values" in the rest of this module's documentatio... | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilies #
run inside of an instance of ' MonadLimit ' ; they choose an appropriate limit based on the
module Capnp.Convert
( msgToBuilder,
msgToLBS,
msgToBS,
bsToMsg,
... |
cea388390f8f6d629329112618ae61ac8bd69ca610cb54e31fcbca3678a1f4e3 | Beluga-lang/Beluga | nameGen.mli | * Contextual type - based name generator .
This name generator will use programmer - supplied naming hints
( falling back to good old X , Y , Z ) but adjust the numeric counter
on the name so it is the smallest allowed in a given context .
This name generation strategy notably does not use any ... | null | https://raw.githubusercontent.com/Beluga-lang/Beluga/a79833e99cf40befc56a5f09a64c82ee65c81ab0/src/core/nameGen.mli | ocaml | * Generates a raw parameter variable name for a given LF type.
Uses the programmer-supplied name hint, with a fallback.
* Generates a raw bound variable name for a given LF type.
Uses the programmer-supplied name hint, with a fallback.
* Generate a raw metavariable name for a given LF type.
Uses program... | * Contextual type - based name generator .
This name generator will use programmer - supplied naming hints
( falling back to good old X , Y , Z ) but adjust the numeric counter
on the name so it is the smallest allowed in a given context .
This name generation strategy notably does not use any ... |
719cadf7fa1d1fc51a6d4f0ad9f518e926d7741d52b51a93c652bd094d640b7e | jellelicht/guix | sawfish.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 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 3 of the Lice... | null | https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/gnu/packages/sawfish.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 © 2015 < >
under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
along with GNU . If not , see < / > .
(define-module (gnu packages sawfish)
#:use-module ((guix licenses) #:select (gpl2+))
#:use-module (guix packa... |
3a4d070f8fb94b386323d9686d4f1e88aaf7c8b40a75174d9e69cb0eb260972b | bia-technologies/statsbit | init.clj | Copyright 2020 BIA - Technologies Limited Liability Company
;;
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 t... | null | https://raw.githubusercontent.com/bia-technologies/statsbit/4102ca5e5d39b1c06541b49615c6de83e7f4ef36/backend/src/ru/bia_tech/statsbit/init.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 governi... | Copyright 2020 BIA - Technologies Limited Liability Company
distributed under the License is distributed on an " AS IS " BASIS ,
(ns ru.bia-tech.statsbit.init
(:require
[ru.bia-tech.statsbit.types]
[ru.bia-tech.statsbit.hooks]
[hugsql.core :as hugsql]
[hugsql.adapter.clojure-jdbc :as cj-adapter]
... |
5b38d7d917eaf6ed7f17cc51bb9d6e474ebedb767eba1e635621ae0f59c042f5 | lemmaandrew/CodingBatHaskell | groupSumClump.hs | From
Given an array of ints , is it possible to choose a group of some of the ints , such
that the group sums to the given target , with this additional constraint : if there are
numbers in the array that are adjacent and the identical value , they must either all be
chosen , or none of them chosen . For exa... | null | https://raw.githubusercontent.com/lemmaandrew/CodingBatHaskell/d839118be02e1867504206657a0664fd79d04736/CodingBat/Recursion-2/groupSumClump.hs | haskell | From
Given an array of ints , is it possible to choose a group of some of the ints , such
that the group sums to the given target , with this additional constraint : if there are
numbers in the array that are adjacent and the identical value , they must either all be
chosen , or none of them chosen . For exa... | |
7601c05d9bb53fd838add899a649a70b1b9576c8ca684b4c50eb1fecaab3332a | IndianRoboticsOrganization/ArimaTTS | INST_LANG_VOX_phrasing.scm | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # #
# # Language Technologies Institute # #
# # ... | null | https://raw.githubusercontent.com/IndianRoboticsOrganization/ArimaTTS/7377dca466306e2e6b90a063427273142cd50616/festvox/src/vox_files/indic/INST_LANG_VOX_phrasing.scm | scheme | ## distribute, sublicense, and/or sell copies of this work, and to ##
## the following conditions: ##
## Email: ##
Load any necessary files here
The name and filename off the ngram with the a priori ngram model
for pre... | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # #
# # Language Technologies Institute # #
# # ... |
4f6386c166082aeab67fdbf5272bd57f83b49930b9d92dfc41c4a5f1b9d8495c | askonomm/clarktown | indented_code_block_test.clj | (ns clarktown.renderers.indented-code-block-test
(:require
[clojure.test :refer [deftest testing is]]
[clarktown.renderers.indented-code-block :as indented-code-block]))
(deftest indented-code-block-renderer-test
(testing "Creating a single-line code block"
(is (= "<pre><code>code goes here</code></pr... | null | https://raw.githubusercontent.com/askonomm/clarktown/2ff0da12f58d17b6c1ab3736a41595073b3a534e/test/clarktown/renderers/indented_code_block_test.clj | clojure | (ns clarktown.renderers.indented-code-block-test
(:require
[clojure.test :refer [deftest testing is]]
[clarktown.renderers.indented-code-block :as indented-code-block]))
(deftest indented-code-block-renderer-test
(testing "Creating a single-line code block"
(is (= "<pre><code>code goes here</code></pr... | |
58cd0893bf0387ffa61c84b3e1c050089bc0591da6c2240b687e351f63acd0d1 | dmitryvk/sbcl-win32-threads | assem-rtns.lisp | (in-package "SB!VM")
Return - multiple with other than one value
#+sb-assembling ;; we don't want a vop for this one.
(define-assembly-routine
(return-multiple
(:return-style :none))
These four are really arguments .
((:temp nvals any-reg nargs-offset)
(:temp vals any-reg nl0-offset)
(:temp... | null | https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/assembly/hppa/assem-rtns.lisp | lisp | we don't want a vop for this one.
These are just needed to facilitate the transfer
These are needed so we can get at the register args.
FIX - lav : look at old , replace comb+addi with addib
Copy the remaining args to the top of the stack.
Clear the stack.
tail-call-variable.
no vop for this one either.
These... | (in-package "SB!VM")
Return - multiple with other than one value
(define-assembly-routine
(return-multiple
(:return-style :none))
These four are really arguments .
((:temp nvals any-reg nargs-offset)
(:temp vals any-reg nl0-offset)
(:temp ocfp any-reg nl1-offset)
(:temp lra descriptor-... |
87e7acb5aba0fc59b10a6c15412449d173146d2413962eb3414e56328d940f2c | openmusic-project/OMChroma | cr-model.lisp | ; OMChroma
High - level control of sound synthesis in OM
;
;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.
;
;Se... | null | https://raw.githubusercontent.com/openmusic-project/OMChroma/1accf54b21d7c6516c5a0494a7401165a027edc2/sources/omsharp/cr-model/cr-model.lisp | lisp | OMChroma
This program is free software; you can redistribute it and/or
either version 2
of the License, or (at your option) any later version.
See file LICENSE for further informations on licensing terms.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without ev... | High - level control of sound synthesis in OM
modify it under the terms of the GNU General Public License
You should have received a copy of the GNU General Public License
Foundation , Inc. , 59 Temple Place - Suite 330 , Boston , MA 02111 - 1307,10 USA .
( c ) Ircam 2000 - 2019
Authors : , , , ... |
05fadb3f571dc3062bcb5ab843ffff6d1adb6033a72b9e9a79f5c5a3d68c799f | awakesecurity/grpc-mqtt | Packet.hs | module Test.Network.GRPC.MQTT.Message.Packet
( -- * Test Tree
tests,
)
where
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
import Hedgehog (Property, forAll, property, tripping, (===))
import H... | null | https://raw.githubusercontent.com/awakesecurity/grpc-mqtt/4910dcdda13c5ded66273dca3fef09533ecb2ad8/test/Test/Network/GRPC/MQTT/Message/Packet.hs | haskell | * Test Tree
------------------------------------------------------------------------------
------------------------------------------------------------------------------
------------------------------------------------------------------------------
----------------------------------------------------------------------... | module Test.Network.GRPC.MQTT.Message.Packet
tests,
)
where
import Hedgehog (Property, forAll, property, tripping, (===))
import Hedgehog qualified
import Test.Tasty (TestTree, testGroup)
import Test.Tasty.Hedgehog (testProperty)
import Test.Network.GRPC.MQTT.Message.Gen qualified as Message.Gen
import Co... |
27b8c81fdd01953b80daecd73c94653397ce8a1084c424172690f974477cca40 | nvim-treesitter/nvim-treesitter | highlights.scm | (comment) @comment
(definition) @keyword
(identifier) @variable
(label_name) @label
(token) @string
[
"="
"|"
] @operator
[
"*"
"?"
] @repeat
[
":"
] @punctuation.delimiter
[
"("
")"
] @punctuation.bracket
(ERROR) @error
| null | https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/fe80f7c2bbd216f5a26fe28c91bb335ef9ad8ec2/queries/ungrammar/highlights.scm | scheme | (comment) @comment
(definition) @keyword
(identifier) @variable
(label_name) @label
(token) @string
[
"="
"|"
] @operator
[
"*"
"?"
] @repeat
[
":"
] @punctuation.delimiter
[
"("
")"
] @punctuation.bracket
(ERROR) @error
| |
e5f57eecdfecd4a12f52409eb2c79009e060d2caed168b754df9c64438395caa | tarleb/jira-wiki-markup | Parser.hs | |
Module : Text . Jira . Parser
Copyright : © 2019–2023 : MIT
Maintainer :
Stability : alpha
Portability : portable
Parse Jira wiki markup .
Module : Text.Jira.Parser
Copyright : © 2019–2023 Albert Krewinkel
License : MIT
Maintainer : Albert Krewinkel <>
Stabilit... | null | https://raw.githubusercontent.com/tarleb/jira-wiki-markup/553d525355f75314d0c439cc77e11118e8736a73/src/Text/Jira/Parser.hs | haskell | | Parses a list of jira blocks into a @'Doc'@ element. | |
Module : Text . Jira . Parser
Copyright : © 2019–2023 : MIT
Maintainer :
Stability : alpha
Portability : portable
Parse Jira wiki markup .
Module : Text.Jira.Parser
Copyright : © 2019–2023 Albert Krewinkel
License : MIT
Maintainer : Albert Krewinkel <>
Stabilit... |
871acdd47061975780d74ba120866de88c722c70f7a9f55d8d4aed8eac9d9b42 | theodormoroianu/SecondYearCourses | LambdaChurch_20210415170633.hs | module LambdaChurch where
import Data.Char (isLetter)
import Data.List ( nub )
class ShowNice a where
showNice :: a -> String
class ReadNice a where
readNice :: String -> (a, String)
data Variable
= Variable
{ name :: String
, count :: Int
}
deriving (Show, Eq, Ord)
var :: String -> Variable
var ... | null | https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/LambdaChurch_20210415170633.hs | haskell | alpha-equivalence
subst u x t defines [u/x]t, i.e., substituting u for x in t
This substitution avoids variable captures so it is safe to be used when
reducing terms with free variables (e.g., if evaluating inside lambda abstractions)
^ substitution term
^ variable to be substitutes
^ term in which the substit... | module LambdaChurch where
import Data.Char (isLetter)
import Data.List ( nub )
class ShowNice a where
showNice :: a -> String
class ReadNice a where
readNice :: String -> (a, String)
data Variable
= Variable
{ name :: String
, count :: Int
}
deriving (Show, Eq, Ord)
var :: String -> Variable
var ... |
67627c272e986af77ea601ff3a82244f99390508121feb91539a60eee6608b58 | chrisnc/hvx | Primitives.hs | # LANGUAGE DataKinds #
{-# LANGUAGE GADTs #-}
# LANGUAGE FlexibleContexts #
module HVX.Primitives
TODO(mh ): Currently primitives that should generate implicit constraints are
unsupported . The should be supported shortily . ( 2014 - 06 - 04 )
( apply
, hadd
, (+~)
, hmul
, (*~)
, habs
, neg
, hlog... | null | https://raw.githubusercontent.com/chrisnc/hvx/4256e83d265c7b6bf9336533c15eae9fecce9a6d/src/HVX/Primitives.hs | haskell | # LANGUAGE GADTs # | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
module HVX.Primitives
TODO(mh ): Currently primitives that should generate implicit constraints are
unsupported . The should be supported shortily . ( 2014 - 06 - 04 )
( apply
, hadd
, (+~)
, hmul
, (*~)
, habs
, neg
, hlog
, hexp
, logsumexp... |
53e12337b76379991634c7e7ff6b92eb1bca1cde39a39bf9f4a024c8fa65423b | odo/ramjet | ramjet_monitor.erl | -module(ramjet_monitor).
-behaviour(gen_server).
-export([start_link/0, init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]).
-define(CHECKINTERVAL, 1000).
%% Public API
start_link() ->
gen_server:start_link(?MODULE, [], []).
%% Callbacks
init([]) ->
schedule_check(5 * 1000),
... | null | https://raw.githubusercontent.com/odo/ramjet/e0453169abf574f81045c88bd1a43c143d977049/src/ramjet_monitor.erl | erlang | Public API
Callbacks | -module(ramjet_monitor).
-behaviour(gen_server).
-export([start_link/0, init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]).
-define(CHECKINTERVAL, 1000).
start_link() ->
gen_server:start_link(?MODULE, [], []).
init([]) ->
schedule_check(5 * 1000),
{ok, never_active}.
ha... |
e859825cc0220b04523367f9821015d44794c48d2c832b21da472689a4095667 | bldl/magnolisp | test-let-expr-3.rkt | #lang magnolisp/2014
(typedef int (#:annos foreign))
(function (one)
(#:annos foreign (type (fn int)))
1)
(function (add x y)
(#:annos foreign (type (fn int int int)))
(+ x y))
(function (f x)
(#:annos export (type (fn int int)))
(var y (let ((x x)) (add (one) x)))
y)
(f 1)
| null | https://raw.githubusercontent.com/bldl/magnolisp/191d529486e688e5dda2be677ad8fe3b654e0d4f/tests/test-let-expr-3.rkt | racket | #lang magnolisp/2014
(typedef int (#:annos foreign))
(function (one)
(#:annos foreign (type (fn int)))
1)
(function (add x y)
(#:annos foreign (type (fn int int int)))
(+ x y))
(function (f x)
(#:annos export (type (fn int int)))
(var y (let ((x x)) (add (one) x)))
y)
(f 1)
| |
9caa524b28240513f37c860f1812bfd8c25f996a256094a6e82196a0e99dc942 | alainfrisch/mtt | ta.mli | type atom = int
val atom_of_string: string -> atom
val string_of_atom: atom -> string
type t
val hash: t -> int
val equal: t -> t -> bool
val compare: t -> t -> int
(** Boolean combinations *)
val any: t
val empty: t
val inter: t -> t -> t
val union: t -> t -> t
val diff: t -> t -> t
val neg: t -> t
val is_triviall... | null | https://raw.githubusercontent.com/alainfrisch/mtt/b94f64aa216b1d16b6c02e434bf20c18e6869a78/ta.mli | ocaml | * Boolean combinations
* Delayed creation.
* Emptyness check. | type atom = int
val atom_of_string: string -> atom
val string_of_atom: atom -> string
type t
val hash: t -> int
val equal: t -> t -> bool
val compare: t -> t -> int
val any: t
val empty: t
val inter: t -> t -> t
val union: t -> t -> t
val diff: t -> t -> t
val neg: t -> t
val is_trivially_empty: t -> bool
val is_tr... |
95d57c351e82f5283809f85edc60801272515a6eccdad63eba0a3cbc9a1e88b4 | karlhof26/gimp-scheme | FU_watermark.scm | ; FU_watermark.scm
version 2.8 [ gimphelp.org ]
last modified / tested by
02/15/2014 on GIMP-2.8.10
;
10/01/2008 - by
; Modified to remove deprecated procedures
;
12/15/2008 - by
; modified to merge watermark layer rather than flatten image
;
; 02/15/2014 - accommodate indexed images, add option to lea... | null | https://raw.githubusercontent.com/karlhof26/gimp-scheme/95e0f37847c43b326f7f56d899f86e33c950d150/FU_watermark.scm | scheme | FU_watermark.scm
Modified to remove deprecated procedures
modified to merge watermark layer rather than flatten image
02/15/2014 - accommodate indexed images, add option to leave on separate layer
add copyright symbol and added information about "Copyright text" script.
========================================... | version 2.8 [ gimphelp.org ]
last modified / tested by
02/15/2014 on GIMP-2.8.10
10/01/2008 - by
12/15/2008 - by
C:\Program Files\GIMP 2\share\gimp\2.0\scripts
C:\Users\YOUR - NAME\.gimp-2.8\scripts
Windows XP
C:\Program Files\GIMP 2\share\gimp\2.0\scripts
/home / yourname/.gimp-2.8 / scripts ... |
89705f338e449d58dc929298f9c39ac6a047983fe35c0740edb984165a8c0b7c | janestreet/hardcaml_circuits | bench_mul.ml | open! Import
let create_sim n_bits =
let open Signal in
let circuit =
Circuit.create_exn ~name:"lfsr"
[ output "o" (Mul.create ~config:Wallace
(module Signal)
(input "a" n_bits)
(input "b" n_bits)) ]
in
let sim = Cyclesim.create circui... | null | https://raw.githubusercontent.com/janestreet/hardcaml_circuits/a2c2d1ea3e6957c3cda4767d519e94c20f1172b2/bench/bench_mul.ml | ocaml | open! Import
let create_sim n_bits =
let open Signal in
let circuit =
Circuit.create_exn ~name:"lfsr"
[ output "o" (Mul.create ~config:Wallace
(module Signal)
(input "a" n_bits)
(input "b" n_bits)) ]
in
let sim = Cyclesim.create circui... | |
0d4a3183af23948c97fdd6b412812bb821c084edb58362b37bbc5e7e13f1faa1 | blindglobe/common-lisp-stat | metabolism.lisp |
From LispStat 1 : need to document source appropriately .
(in-package :lisp-stat-data-examples)
FIXME : Shutup compiler warnings , need to clean up and
;;; appropriately initialize.
(DEF CPK (QUOTE (180 300 520 480 580 440 380 480 520 1040 1360 640 260 360 400 230 300 400)))
(DEF AGE (QUOTE (33 21 19 24 25 32 ... | null | https://raw.githubusercontent.com/blindglobe/common-lisp-stat/0c657e10a4ee7e8d4ef3737f8c2d4e62abace2d8/Data/metabolism.lisp | lisp | appropriately initialize. |
From LispStat 1 : need to document source appropriately .
(in-package :lisp-stat-data-examples)
FIXME : Shutup compiler warnings , need to clean up and
(DEF CPK (QUOTE (180 300 520 480 580 440 380 480 520 1040 1360 640 260 360 400 230 300 400)))
(DEF AGE (QUOTE (33 21 19 24 25 32 36 35 36 24 25 44 51 50 52 55 ... |
b76f08d004e395429ef000e23efd24284564616c60f15ef2d54d62a2c6b381ff | input-output-hk/io-sim | TChan.hs | # LANGUAGE ExplicitNamespaces #
-- | This module corresponds to `Control.Concurrent.STM.TChan` in "stm" package
--
module Control.Concurrent.Class.MonadSTM.TChan
( -- * MonadSTM
* * TChans
type TChan
-- * Construction
, newTChan
, newBroadcastTChan
, newTChanIO
, newBroadcastTChanIO
, dupTChan
... | null | https://raw.githubusercontent.com/input-output-hk/io-sim/b9824e8cab3429f0831e01dfc8f0fdecef1a2325/io-classes/src/Control/Concurrent/Class/MonadSTM/TChan.hs | haskell | | This module corresponds to `Control.Concurrent.STM.TChan` in "stm" package
* MonadSTM
* Construction
** Reading and writing | # LANGUAGE ExplicitNamespaces #
module Control.Concurrent.Class.MonadSTM.TChan
* * TChans
type TChan
, newTChan
, newBroadcastTChan
, newTChanIO
, newBroadcastTChanIO
, dupTChan
, cloneTChan
, readTChan
, tryReadTChan
, peekTChan
, tryPeekTChan
, writeTChan
, unGetTChan
, isEmptyTChan
... |
618affae330f3e9980ad8fb4db3a6e9da78cf6482e2f595586b009e1b0638bdf | kappelmann/engaging-large-scale-functional-programming | Exercise04.hs | module Exercise04 where
rudolph :: String -> (Int, Int)
rudolph [] = (0, 1)
rudolph s = rudiRec newS (0, 1)
where newS = dropWhile (=='L') s
-- Assumes that c /= 'L'
rudiRec :: String -> (Int, Int) -> (Int, Int)
rudiRec [] currMax = currMax
rud... | null | https://raw.githubusercontent.com/kappelmann/engaging-large-scale-functional-programming/8ed2c056fbd611f1531230648497cb5436d489e4/resources/contest/example_data/04/uploads/ninjaturtles/Exercise04.hs | haskell | Assumes that c /= 'L'
s starts with r
In this case there is still a string left
(True, k) --
res == True if there is a valid continuation of the current substring
fk is the further k
----------- Not needed
Did go too far left | module Exercise04 where
rudolph :: String -> (Int, Int)
rudolph [] = (0, 1)
rudolph s = rudiRec newS (0, 1)
where newS = dropWhile (=='L') s
rudiRec :: String -> (Int, Int) -> (Int, Int)
rudiRec [] currMax = currMax
rudiRec s@(c:cs) oldMax@(oldMaxLen, oldN... |
4696ff6f8d248e752cf41c85c770f3722ca221d7b3ba355e5db8297bb3eea89e | jordanthayer/ocaml-search | dfmin_vs_growth.ml | * Some code to track \Delta f_min versus the growth between f - layers
of an A * search .
@author eaburns
@since 2010 - 12 - 01
of an A* search.
@author eaburns
@since 2010-12-01
*)
open Printf
open Float_ref
type 'state node = {
state : 'state;
h : float;
mutable g : float;
... | null | https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/search/size_estimate/dfmin_vs_growth.ml | ocaml | * [update_pq_pos n i] updates the priority queue position of [n]
to [i].
* [is_better a b] tests if node [a] is better than node [b].
* [update_f_min cur prev f_min f_min_prev layer_count o dfs
growths] updates the minimum f-value in the state space. | * Some code to track \Delta f_min versus the growth between f - layers
of an A * search .
@author eaburns
@since 2010 - 12 - 01
of an A* search.
@author eaburns
@since 2010-12-01
*)
open Printf
open Float_ref
type 'state node = {
state : 'state;
h : float;
mutable g : float;
... |
ddb5982089bb0fdbb452005235ebc831a5a38098f772a215524098e5aa6013aa | zchn/ethereum-analyzer | Util.hs | module Blockchain.Data.Util
( byteString2Integer
, bytes2Integer
, integer2Bytes
) where
import Data.Bits
import qualified Data.ByteString as B
import Data.Word
I hate this , it is an ugly way to create an Integer from its component bytes .
--There should be an easier way....
--See -packing-bytes-into-integer... | null | https://raw.githubusercontent.com/zchn/ethereum-analyzer/f2a60d8b451358971f1e3b1a61658f5741c4c099/ethereum-analyzer-deps/src/Blockchain/Data/Util.hs | haskell | There should be an easier way....
See -packing-bytes-into-integers | module Blockchain.Data.Util
( byteString2Integer
, bytes2Integer
, integer2Bytes
) where
import Data.Bits
import qualified Data.ByteString as B
import Data.Word
I hate this , it is an ugly way to create an Integer from its component bytes .
byteString2Integer :: B.ByteString -> Integer
byteString2Integer x = ... |
a3cad237c9143110caddc73dd474542c84f8c116e39de6fe1973a399893c262e | hipsleek/hipsleek | cvc3.ml | #include "xdebug.cppo"
open Globals
open VarGen
open GlobProver
open Gen.Basic
module CP = Cpure
let log_cvc3_formula = ref false
let _valid = true
let _invalid = false
let _sat = true
let _unsat = false
let cvc3_log = ref stdout
let infilename = !tmp_files_path ^ "input.cvc3." ^ (string_of_int (Unix.getpid ()))
let r... | null | https://raw.githubusercontent.com/hipsleek/hipsleek/596f7fa7f67444c8309da2ca86ba4c47d376618c/src/cvc3.ml | ocaml | let set_log_file fn =
log_cvc3_formula := true;
if fn = "" then
cvc3_log := open_out "formula.cvc"
else*\)
begin
(\* output_string !cvc3_log cvc3_command *\)
end
An Hoa
| CP.BConst (c, _) -> if c then "(TRUE)" else "(FALSE)"
| CP.BVar (sv, _) -> cvc3_of_spec_var sv
An Hoa
let () = pri... | #include "xdebug.cppo"
open Globals
open VarGen
open GlobProver
open Gen.Basic
module CP = Cpure
let log_cvc3_formula = ref false
let _valid = true
let _invalid = false
let _sat = true
let _unsat = false
let cvc3_log = ref stdout
let infilename = !tmp_files_path ^ "input.cvc3." ^ (string_of_int (Unix.getpid ()))
let r... |
903edab36be89633fa8d20b9004179b2a722949a698731fdc71de12768df45ac | kmi/irs | changes_to_akt_onto_temp.lisp |
;;;;;;;;;;;;;;
(def-class THING ()
"This is the top-level concept in the AKT reference ontology"
((has-pretty-name :type string
:max-cardinality 1
:documentation "A human readable name")
(has-variant-name :type string
:documentation "Other variants o... | null | https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/ontologies/domains/aktive-portal-ontology2/changes_to_akt_onto_temp.lisp | lisp |
The slot has-telephone-number is now inherited from legal agent
if y is unbound we return a 'sample' number
make sure to instantiate x
|
(def-class THING ()
"This is the top-level concept in the AKT reference ontology"
((has-pretty-name :type string
:max-cardinality 1
:documentation "A human readable name")
(has-variant-name :type string
:documentation "Other variants of the human rea... |
700eb5a655076e69d09f935399eca4677601dde1b4db74c03c8e67beb977e346 | dyzsr/ocaml-selectml | unix.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/otherlibs/unix/unix.ml | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
let shell = "/bin/sh"
type error =
E2BIG
| EACCES
| EAGAIN
| EBADF
| EBUSY
| ECHILD
| ED... |
88c4e080f8361b4f07b027a01c6f3c1cdebdcf4f96257995829c56d819c41665 | mcorbin/meuse | crate_category.clj | (ns meuse.db.queries.crate-category
(:require [honeysql.core :as sql]
[honeysql.helpers :as h]))
(defn get-crate-category
[where-clause]
(-> (h/select :c.crate_id
:c.category_id)
(h/from [:crates_categories :c])
(h/where where-clause)
sql/format))
(defn by-crate-and... | null | https://raw.githubusercontent.com/mcorbin/meuse/d2b74543fce37c8cde770ae6f6097cabb509a804/src/meuse/db/queries/crate_category.clj | clojure | (ns meuse.db.queries.crate-category
(:require [honeysql.core :as sql]
[honeysql.helpers :as h]))
(defn get-crate-category
[where-clause]
(-> (h/select :c.crate_id
:c.category_id)
(h/from [:crates_categories :c])
(h/where where-clause)
sql/format))
(defn by-crate-and... | |
f306d49383a2aac89c5ce068f7a4bf4a3a090be0428bc3da480eb9b29752f7e2 | msakai/toysolver | SMTLIB2Solver.hs | # OPTIONS_GHC -Wall #
-----------------------------------------------------------------------------
-- |
Module : ToySolver . SMT.SMTLIB2Solver
Copyright : ( c ) 2015
-- License : BSD-style
--
-- Maintainer :
-- Stability : experimental
-- Portability : portable
--
-----------------------... | null | https://raw.githubusercontent.com/msakai/toysolver/6233d130d3dcea32fa34c26feebd151f546dea85/app/toysmt/ToySolver/SMT/SMTLIB2Solver.hs | haskell | ---------------------------------------------------------------------------
|
License : BSD-style
Maintainer :
Stability : experimental
Portability : portable
---------------------------------------------------------------------------
* The solver type
* High-level API
* Individual commands
** (R... | # OPTIONS_GHC -Wall #
Module : ToySolver . SMT.SMTLIB2Solver
Copyright : ( c ) 2015
module ToySolver.SMT.SMTLIB2Solver
( module Smtlib.Syntax.Syntax
, ShowSL (..)
, Solver
, newSolver
, execCommand
, execCommandString
, runCommand
, runCommandString
, printResponse
, reset
,... |
af18a9d521f0dd99b2780c9f2e0e1060754444bc3115d1d28979667ae811abe1 | naominitel/hmx | main.ml | open Hmx
let t0 = App (Abs ("x", Var "x"), Const (CInt 0))
let t1 = Let ("f", Const (CInt 0), Var "f")
let t3 = Let ("f", Abs ("x", Var "x"), Var "f")
let t2 = Let ("f", Abs ("x", Var "x"), App (Var "f", Const (CInt 0)))
let t4 = Let ("f", Abs ("x", Var "x"), (Let ("y", Var "f", App (Var "y", Const (CInt 0)))))
let t... | null | https://raw.githubusercontent.com/naominitel/hmx/ed9ca9863a6a7691b50cd1f12440c410bc1f0b8a/main.ml | ocaml | open Hmx
let t0 = App (Abs ("x", Var "x"), Const (CInt 0))
let t1 = Let ("f", Const (CInt 0), Var "f")
let t3 = Let ("f", Abs ("x", Var "x"), Var "f")
let t2 = Let ("f", Abs ("x", Var "x"), App (Var "f", Const (CInt 0)))
let t4 = Let ("f", Abs ("x", Var "x"), (Let ("y", Var "f", App (Var "y", Const (CInt 0)))))
let t... | |
29319ecece162c65416d8cfb268a91b98e59165b28a07a902aa35286bc8eb0b6 | degree9/uikit-hl | scrollspy.cljs | (ns uikit-hl.scrollspy
(:require [hoplon.core :as h]
[hoplon.jquery]
[uikit-hl.core :as uk]))
(defmulti uk-scrollspy! h/kw-dispatcher :default ::default)
(defmethod h/do! ::default
[elem key val]
(uk-scrollspy! elem key val))
(defmethod uk-scrollspy! ::default
[elem kw v]
(uk/scroll... | null | https://raw.githubusercontent.com/degree9/uikit-hl/b226b1429ea50f8e9a6c1d12c082a3be504dda33/src/uikit_hl/scrollspy.cljs | clojure | (ns uikit-hl.scrollspy
(:require [hoplon.core :as h]
[hoplon.jquery]
[uikit-hl.core :as uk]))
(defmulti uk-scrollspy! h/kw-dispatcher :default ::default)
(defmethod h/do! ::default
[elem key val]
(uk-scrollspy! elem key val))
(defmethod uk-scrollspy! ::default
[elem kw v]
(uk/scroll... | |
4a1ed7c31102331a3f3457bb790be82a27466ad7b732456bad47846e5f705981 | rbkmoney/fistful-server | w2w_adjustment_SUITE.erl | -module(w2w_adjustment_SUITE).
-include_lib("stdlib/include/assert.hrl").
-include_lib("shumpune_proto/include/shumpune_shumpune_thrift.hrl").
%% Common test API
-export([all/0]).
-export([groups/0]).
-export([init_per_suite/1]).
-export([end_per_suite/1]).
-export([init_per_group/2]).
-export([end_per_group/2]).
-e... | null | https://raw.githubusercontent.com/rbkmoney/fistful-server/f6155acb0475987e47a4fbc911758c595e129c80/apps/w2w/test/w2w_adjustment_SUITE.erl | erlang | Common test API
Tests
Internal types
API
Tests | -module(w2w_adjustment_SUITE).
-include_lib("stdlib/include/assert.hrl").
-include_lib("shumpune_proto/include/shumpune_shumpune_thrift.hrl").
-export([all/0]).
-export([groups/0]).
-export([init_per_suite/1]).
-export([end_per_suite/1]).
-export([init_per_group/2]).
-export([end_per_group/2]).
-export([init_per_tes... |
c117214c99427183afc02c2e78e00f75349d6ebe6ee589bcedcd8d214783f448 | daveconservatoire/dcsite-cljs | rollbar.cljs | (ns nodejs.rollbar
(:require [cljs.nodejs :as nodejs]
[cljs.spec.alpha :as s]))
(s/def ::access-token string?)
(defonce rollbar (nodejs/require "rollbar"))
(defn init [access-token]
(.init rollbar access-token))
(defn report-message [message]
(.reportMessage rollbar message))
(defn error-handler ... | null | https://raw.githubusercontent.com/daveconservatoire/dcsite-cljs/0b9c17569de092b5ea7fbf000ab528ac1b82851c/src/server/nodejs/rollbar.cljs | clojure | (ns nodejs.rollbar
(:require [cljs.nodejs :as nodejs]
[cljs.spec.alpha :as s]))
(s/def ::access-token string?)
(defonce rollbar (nodejs/require "rollbar"))
(defn init [access-token]
(.init rollbar access-token))
(defn report-message [message]
(.reportMessage rollbar message))
(defn error-handler ... | |
812038462eafffc1c103aea969a3dccd6b2033073b2537cf62e2e71c157b379c | rabbitmq/rabbitmq-test | rabbit_test_configs.erl | The contents of this file are subject to the Mozilla Public License
%% Version 1.1 (the "License"); you may not use this file except in
%% compliance with the License. You may obtain a copy of the License
%% at /
%%
Software distributed under the License is distributed on an " AS IS "
%% basis, WITHOUT WARRANTY OF ... | null | https://raw.githubusercontent.com/rabbitmq/rabbitmq-test/c77ef827396a32aa67b4cbfe9c237485a2650d2d/src/rabbit_test_configs.erl | erlang | Version 1.1 (the "License"); you may not use this file except in
compliance with the License. You may obtain a copy of the License
at /
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
the License for the specific language governing rights and
limitations under the License.
The cover syste... | The contents of this file are subject to the Mozilla Public License
Software distributed under the License is distributed on an " AS IS "
The Original Code is RabbitMQ .
The Initial Developer of the Original Code is GoPivotal , Inc.
Copyright ( c ) 2007 - 2017 Pivotal Software , Inc. All rights reserved .
-... |
79c2ee25989634863c2b8ec401448223d95f5b7f09269c8484c09a28499e9c5a | haskell-beam/beam | Migrate.hs | # LANGUAGE RecordWildCards #
module Main where
import Database.Beam
import Database.Beam.Migrate.Tool
import Database.Beam.Migrate.Types
import Control.Monad
import Data.Monoid
import Data.Proxy
import Data.Dynamic
import Options.Applicative
import Options.Applicative.Internal
import Options.Applicative.Types
impo... | null | https://raw.githubusercontent.com/haskell-beam/beam/596981a1ea6765b9f311d48a2ec4d8460ebc4b7e/beam-migrate/tools/Migrate.hs | haskell | # LANGUAGE RecordWildCards #
module Main where
import Database.Beam
import Database.Beam.Migrate.Tool
import Database.Beam.Migrate.Types
import Control.Monad
import Data.Monoid
import Data.Proxy
import Data.Dynamic
import Options.Applicative
import Options.Applicative.Internal
import Options.Applicative.Types
impo... | |
b34cbfa0515880cefc5ed701e8365e73fa61741a9e67fb2173021c772b6a200b | donut-party/dbxray | spec_test.cljc | (ns donut.dbxray.generate.spec-test
(:require
[clojure.test :refer [deftest is]]
[donut.dbxray.fixtures :as ddf]
[donut.dbxray.generate.spec :as ddgs]))
(deftest generates-spec-specs
(is (= '[(s/def :users/id pos-int?)
(s/def :users/username string?)
(s/def :record/user (s/keys :req ... | null | https://raw.githubusercontent.com/donut-party/dbxray/c4e2659d31cbcf36f8e391abc9e839d2312137ff/test/donut/dbxray/generate/spec_test.cljc | clojure | (ns donut.dbxray.generate.spec-test
(:require
[clojure.test :refer [deftest is]]
[donut.dbxray.fixtures :as ddf]
[donut.dbxray.generate.spec :as ddgs]))
(deftest generates-spec-specs
(is (= '[(s/def :users/id pos-int?)
(s/def :users/username string?)
(s/def :record/user (s/keys :req ... | |
9add9de709c45bf1eec112e53962313c7aa8dddcc07bfaa80b4b5dfba0239693 | mfikes/fifth-postulate | ns388.cljs | (ns fifth-postulate.ns388)
(defn solve-for01 [xs v]
(for [ndx0 (range 0 (- (count xs) 3))
ndx1 (range (inc ndx0) (- (count xs) 2))
ndx2 (range (inc ndx1) (- (count xs) 1))
ndx3 (range (inc ndx2) (count xs))
:when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))]
(list (x... | null | https://raw.githubusercontent.com/mfikes/fifth-postulate/22cfd5f8c2b4a2dead1c15a96295bfeb4dba235e/src/fifth_postulate/ns388.cljs | clojure | (ns fifth-postulate.ns388)
(defn solve-for01 [xs v]
(for [ndx0 (range 0 (- (count xs) 3))
ndx1 (range (inc ndx0) (- (count xs) 2))
ndx2 (range (inc ndx1) (- (count xs) 1))
ndx3 (range (inc ndx2) (count xs))
:when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))]
(list (x... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.