_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 |
|---|---|---|---|---|---|---|---|---|
0a0d874edbc66ea1483f6faa23b4fa2be876c343e0a90d3ce9380be529f25a9e | heyarne/airsonic-ui | views.cljs | (ns airsonic-ui.components.library.views
(:require [re-frame.core :refer [subscribe]]
[bulma.tabs :refer [tabs]]
[airsonic-ui.routes :as routes :refer [url-for]]
[airsonic-ui.components.collection.views :as collection]))
this variable determines how many pages before the first k... | null | https://raw.githubusercontent.com/heyarne/airsonic-ui/7adb03d6e2ba0ff764796a57b7e87f62b242c9b7/src/cljs/airsonic_ui/components/library/views.cljs | clojure | NOTE: This is currently slightly flawed. We don't have any good way to
know whether we're on the last possible page so we take the last loaded
page instead
and here we modify the links around our current page
some indication that there are previous pages
all pagination links around our current page
some indicati... | (ns airsonic-ui.components.library.views
(:require [re-frame.core :refer [subscribe]]
[bulma.tabs :refer [tabs]]
[airsonic-ui.routes :as routes :refer [url-for]]
[airsonic-ui.components.collection.views :as collection]))
this variable determines how many pages before the first k... |
13c1bfb4cb665dc17f55699df4c217ad4aad2c7f33934b12f8c75f66c4872ba5 | clojure/core.logic | logic.clj | Copyright ( c ) , , contributors . All rights reserved .
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (-1.0.php)
; which can be found in the file epl-v10.html at the root of this distribution.
; By using this software in any fashion, you are agreeing... | null | https://raw.githubusercontent.com/clojure/core.logic/01c0310b0dc4fd3e402bd4dabf5579322a935416/src/main/clojure/cljs/core/logic.clj | clojure | The use and distribution terms for this software are covered by the
Eclipse Public License 1.0 (-1.0.php)
which can be found in the file epl-v10.html at the root of this distribution.
By using this software in any fashion, you are agreeing to be bound by
the terms of this license.
You must not remove ... | Copyright ( c ) , , contributors . All rights reserved .
(ns cljs.core.logic
(:refer-clojure :exclude [==])
(:require [clojure.set :as set]))
(def ^{:dynamic true} *locals*)
(defmacro llist
"Constructs a sequence from 2 or more arguments, with the last argument as the tail.
The tail is improper if th... |
9607b4ee2551f5cb908c7014b0e92288639728fb8502c3b6a2527dd7d4e6c394 | samcoy3/advent-of-code-template | Day17.hs | module Days.Day17 (runDay) where
{- ORMOLU_DISABLE -}
import Data.List
import Data.Map.Strict (Map)
import qualified Data.Map.Strict as Map
import Data.Maybe
import Data.Set (Set)
import qualified Data.Set as Set
import Data.Vector (Vector)
import qualified Data.Vector as Vec
import qualified Util.Util as U
import qu... | null | https://raw.githubusercontent.com/samcoy3/advent-of-code-template/ddc27cfd7ca36d6ebf0df2a2297347d02ee0f1a6/src/Days/Day17.hs | haskell | ORMOLU_DISABLE
---------- PARSER ------------
-------- TYPES ------------
---------- PART A ------------
---------- PART B ------------ | module Days.Day17 (runDay) where
import Data.List
import Data.Map.Strict (Map)
import qualified Data.Map.Strict as Map
import Data.Maybe
import Data.Set (Set)
import qualified Data.Set as Set
import Data.Vector (Vector)
import qualified Data.Vector as Vec
import qualified Util.Util as U
import qualified Program.RunDa... |
4d94ef3833b6523abcce3f86bf6c7ecf4dabb4eaf0e507650f3ce2f4caf1d64c | fakedata-haskell/fakedata | Verbs.hs | {-# LANGUAGE OverloadedStrings #-}
# LANGUAGE TemplateHaskell #
module Faker.Provider.Verbs where
import Config
import Control.Monad.Catch
import Control.Monad.IO.Class
import Data.Map.Strict (Map)
import Data.Monoid ((<>))
import Data.Text (Text)
import Data.Vector (Vector)
import Data.Yaml
import Faker
import Faker... | null | https://raw.githubusercontent.com/fakedata-haskell/fakedata/7b0875067386e9bb844c8b985c901c91a58842ff/src/Faker/Provider/Verbs.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE TemplateHaskell #
module Faker.Provider.Verbs where
import Config
import Control.Monad.Catch
import Control.Monad.IO.Class
import Data.Map.Strict (Map)
import Data.Monoid ((<>))
import Data.Text (Text)
import Data.Vector (Vector)
import Data.Yaml
import Faker
import Faker.Internal
import Faker.Provider.TH
... |
3d476d4f845e99633fcb0c5edc2015e508338af8c3d6681530e3f68d5aeaaf58 | igorhvr/bedlam | determ.scm | " determ.scm " Matrix Algebra
Copyright 2002 , 2004
;
;Permission to copy this software, to modify it, to redistribute it,
;to distribute modified versions, and to use it for any purpose is
;granted, subject to the following restrictions and understandings.
;
1 . Any copy made of this software must include this c... | null | https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/iasylum/slib/3b2/determ.scm | scheme |
Permission to copy this software, to modify it, to redistribute it,
to distribute modified versions, and to use it for any purpose is
granted, subject to the following restrictions and understandings.
in full.
this software will be error-free, and I am under no obligation to
provide any services, by way of maintenan... | " determ.scm " Matrix Algebra
Copyright 2002 , 2004
1 . Any copy made of this software must include this copyright notice
2 . I have made no warranty or representation that the operation of
3 . In conjunction with products arising from the use of this
(require 'array)
(require 'multiarg-apply)
A Matrix can... |
9100a891269399333157379da68c2b9ea76eb2db90e6814ec5d9e10326e5131c | haskell-repa/repa | Main.hs | import Config
import Data.Repa.Flow.Auto.IO as F
import Data.Repa.Array as A
import qualified Data.Repa.Flow.Generic as G
import qualified Data.Repa.Flow.Generic.IO as G
import Control.Concurrent
import Control.Monad
import System.Environment
import System.IO
imp... | null | https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/repa-tools/tools/fields/Main.hs | haskell | fields there are.
TODO: Avoid sketchy replacement of commas by tabs.
Check how CSV standard escapes tab characters.
Drop the requested number of lines from the front,
to find out the starting position.
Reopen the file using the same number of buckets
Do a ragged transpose the chunks, to produce a columnar
... | import Config
import Data.Repa.Flow.Auto.IO as F
import Data.Repa.Array as A
import qualified Data.Repa.Flow.Generic as G
import qualified Data.Repa.Flow.Generic.IO as G
import Control.Concurrent
import Control.Monad
import System.Environment
import System.IO
imp... |
321a276fca174e177941fe6d2898ac7f6e8f6afa67a17d81c1ad206d7d039b93 | boris-ci/boris | Build.hs | # LANGUAGE NoImplicitPrelude #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE TemplateHaskell #
module Test.IO.Boris.Build where
import Boris.Build
import Boris.Core.Data.Build
import Boris.Core.Data.Configuration
import Boris.Core.Data.Workspace
import Boris.Prelude
i... | null | https://raw.githubusercontent.com/boris-ci/boris/c321187490afc889bf281442ac4ef9398b77b200/boris-build/test/Test/IO/Boris/Build.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE NoImplicitPrelude #
# LANGUAGE TemplateHaskell #
module Test.IO.Boris.Build where
import Boris.Build
import Boris.Core.Data.Build
import Boris.Core.Data.Configuration
import Boris.Core.Data.Workspace
import Boris.Prelude
import Control.Monad.IO.Cl... |
093ef3d43e453989ed36ad7c1b4f1b3e3357c6f601b4bcd34dcead85d5010c7a | philnguyen/soft-contract | prims-math.rkt | #lang typed/racket/base
(provide prims-math@)
(require racket/contract
typed/racket/unit
"def.rkt"
"../signatures.rkt"
"signatures.rkt")
(define-unit prims-math@
(import prim-runtime^)
(export)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
FROM THE MATH ... | null | https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/primitives/prims-math.rkt | racket |
1.2 Functions
| #lang typed/racket/base
(provide prims-math@)
(require racket/contract
typed/racket/unit
"def.rkt"
"../signatures.rkt"
"signatures.rkt")
(define-unit prims-math@
(import prim-runtime^)
(export)
FROM THE MATH LIBRARY
(def-pred float-complex?)
)
|
36190ab35edf33c205db6bf26c5bf1a5f063f934460dcc750e79aa6e4431c436 | sol/http-kit | Error.hs | {-# LANGUAGE DeriveDataTypeable #-}
module Network.HTTP.Toolkit.Error where
import Data.Typeable
import Control.Monad (guard)
import Control.Exception
import Data.ByteString (ByteString)
data ToolkitError =
-- | The input ended unpexpectedly while reading a message.
Une... | null | https://raw.githubusercontent.com/sol/http-kit/cc7eb6f1cb3ad6044c822286ad1352e26c112c69/src/Network/HTTP/Toolkit/Error.hs | haskell | # LANGUAGE DeriveDataTypeable #
| The input ended unpexpectedly while reading a message.
| The request-line of the message is malformed.
| The status-line of the message is malformed.
| A header field is malformed.
| The start-line of the message and all header fields together exceed
the specified size `Network.H... | module Network.HTTP.Toolkit.Error where
import Data.Typeable
import Control.Monad (guard)
import Control.Exception
import Data.ByteString (ByteString)
data ToolkitError =
UnexpectedEndOfInput
| InvalidRequestLine ByteString
| InvalidStatusLine ByteString
| InvalidHead... |
2fe5f4a58620fa04d7a3bf6f605b378f66bab6538bc7123de928ddc2c2d9f95b | glguy/advent2021 | Day09.hs | |
Module : Main
Description : Day 9 solution
Copyright : ( c ) , 2021
License : ISC
Maintainer :
< >
Find the basins on the height map .
Module : Main
Description : Day 9 solution
Copyright : (c) Eric Mertens, 2021
License : ISC
Maintainer :
<>
Find the basins on th... | null | https://raw.githubusercontent.com/glguy/advent2021/0e007d07babce240047a9dabaf612cd3ebd42974/execs/Day09.hs | haskell | >>> :main
| Convert that ASCII grid into a grid of heights
this is the lowest point in the basin
all flows go to a unique basin
no unique basin | |
Module : Main
Description : Day 9 solution
Copyright : ( c ) , 2021
License : ISC
Maintainer :
< >
Find the basins on the height map .
Module : Main
Description : Day 9 solution
Copyright : (c) Eric Mertens, 2021
License : ISC
Maintainer :
<>
Find the basins on th... |
8916f913d15456f5ef4c4a28cbfadedd1e658a9c7b2a1388ce8116414a5c009e | phoe-trash/gateway | package.lisp | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; GATEWAY
" phoe " Herda 2017
;;;; utils/package.lisp
(uiop:define-package #:gateway/utils
(:use #:common-lisp
#:alexandria
#:trivial-arguments
#:trivia
#:usocket
#:cl-ppcre)
(:export
... | null | https://raw.githubusercontent.com/phoe-trash/gateway/a8d579ccbafcaee8678caf59d365ec2eab0b1a7e/utils/package.lisp | lisp |
GATEWAY
utils/package.lisp | " phoe " Herda 2017
(uiop:define-package #:gateway/utils
(:use #:common-lisp
#:alexandria
#:trivial-arguments
#:trivia
#:usocket
#:cl-ppcre)
(:export
#:data-getf
#:data-equal
#:pprint-plist
#:prinr-to-string
#:derive-key
#:verify-arguments
#:socket-l... |
28d7638bd3d1cecbaead0302b0dc5432e377e823b66256b37a81a6abb882214b | wardle/pc4 | dates.cljs | (ns com.eldrix.pc4.commons.dates
(:require [cognitect.transit :as transit])
(:import [goog.date Date DateTime]))
(def months-en
{0 "Jan"
1 "Feb"
2 "Mar"
3 "Apr"
4 "May"
5 "Jun"
6 "Jul"
7 "Aug"
8 "Sep"
9 "Oct"
10 "Nov"
11 "Dec"})
(defn format-date [^Date date]
(when d... | null | https://raw.githubusercontent.com/wardle/pc4/ae6a682fb8301932c4192b53584e489f45578a56/pc4-client/src/com/eldrix/pc4/commons/dates.cljs | clojure | (ns com.eldrix.pc4.commons.dates
(:require [cognitect.transit :as transit])
(:import [goog.date Date DateTime]))
(def months-en
{0 "Jan"
1 "Feb"
2 "Mar"
3 "Apr"
4 "May"
5 "Jun"
6 "Jul"
7 "Aug"
8 "Sep"
9 "Oct"
10 "Nov"
11 "Dec"})
(defn format-date [^Date date]
(when d... | |
629aac1cd8c80839ac4a6546dd56c1a828f2ad47e990096bcb693aac758a7efc | borkdude/advent-of-cljc | bgrabow.cljc | (ns aoc.y2018.d09.bgrabow
(:refer-clojure :exclude [read-string format])
(:require
[aoc.utils :as u :refer [deftest read-string format]]
[aoc.y2018.d09.data :refer [input answer-1 answer-2]]
[clojure.test :refer [is testing]])
#?(:clj (:import [java.util ArrayDeque])))
(defn parse [input]
(let [[n-... | null | https://raw.githubusercontent.com/borkdude/advent-of-cljc/17c8abb876b95ab01eee418f1da2e402e845c596/src/aoc/y2018/d09/bgrabow.cljc | clojure | (->> circle
(head-right-v 1)
(#(reduce (fn [circle marble]
(->> circle
(conj marble)))
% | (ns aoc.y2018.d09.bgrabow
(:refer-clojure :exclude [read-string format])
(:require
[aoc.utils :as u :refer [deftest read-string format]]
[aoc.y2018.d09.data :refer [input answer-1 answer-2]]
[clojure.test :refer [is testing]])
#?(:clj (:import [java.util ArrayDeque])))
(defn parse [input]
(let [[n-... |
17bbf8a5bdf15040f425b120ca052b8d0157075896f325f9c91ee81e806b2654 | haskell-opengl/OpenGL | Exception.hs | # LANGUAGE CPP #
{-# OPTIONS_HADDOCK hide #-}
--------------------------------------------------------------------------------
-- |
Module : Graphics . Rendering . OpenGL.GL.Exception
Copyright : ( c ) 2002 - 2019
-- License : BSD3
--
Maintainer : < >
-- Stability : stable
-- Portabi... | null | https://raw.githubusercontent.com/haskell-opengl/OpenGL/f7af8fe04b0f19c260a85c9ebcad612737cd7c8c/src/Graphics/Rendering/OpenGL/GL/Exception.hs | haskell | # OPTIONS_HADDOCK hide #
------------------------------------------------------------------------------
|
License : BSD3
Stability : stable
Portability : portable
This is a purely internal module to compensate for differences between
---------------------------------------------------------------------... | # LANGUAGE CPP #
Module : Graphics . Rendering . OpenGL.GL.Exception
Copyright : ( c ) 2002 - 2019
Maintainer : < >
Haskell implementations .
module Graphics.Rendering.OpenGL.GL.Exception (
bracket, bracket_, unsafeBracket_, finallyRet
) where
import Data.IORef ( newIORef, readIORef, ... |
e13c434602ab29a68cfa39aab519c545a874302d784367eb2674439ac25d9afa | shentufoundation/deepsea | Semantics.ml | open AST
open Ctypes
open Datatypes
open Globalenvs
open Maps0
open StmtClinear
type bblock = statement list
type code = bblock PTree.t
type coq_function = { fn_return : coq_type;
fn_params : (ident, coq_type) prod list;
fn_temps : (ident, coq_type) prod list;
... | null | https://raw.githubusercontent.com/shentufoundation/deepsea/970576a97c8992655ed2f173f576502d73b827e1/src/backend/extraction/Semantics.ml | ocaml | * val fn_return : coq_function -> coq_type *
* val fn_params : coq_function -> (ident, coq_type) prod list *
* val fn_locals : coq_function -> (ident, coq_type) prod list *
* val fn_code : coq_function -> code *
* val fn_entrypoint : coq_function -> label * | open AST
open Ctypes
open Datatypes
open Globalenvs
open Maps0
open StmtClinear
type bblock = statement list
type code = bblock PTree.t
type coq_function = { fn_return : coq_type;
fn_params : (ident, coq_type) prod list;
fn_temps : (ident, coq_type) prod list;
... |
8125599ad16b4ba91380de647b85a3408c82bbe9d8604384435d6c2a9978ecb4 | fission-codes/fission | Types.hs | module Fission.CLI.Parser.Command.User.Login.Types (Options (..)) where
import Fission.Prelude
import Fission.User.Username.Types
data Options = Options
{ optUsername :: Maybe Username
} deriving (Show, Eq)
| null | https://raw.githubusercontent.com/fission-codes/fission/11d14b729ccebfd69499a534445fb072ac3433a3/fission-cli/library/Fission/CLI/Parser/Command/User/Login/Types.hs | haskell | module Fission.CLI.Parser.Command.User.Login.Types (Options (..)) where
import Fission.Prelude
import Fission.User.Username.Types
data Options = Options
{ optUsername :: Maybe Username
} deriving (Show, Eq)
| |
1c0716be66cb7c51747231bfe95553b0b82e02c62056165be7d9f4f7550e037d | ygrek/mldonkey | guiConfig.ml | Copyright 2004 b8_bavard ,
This file is part of mldonkey .
mldonkey is free software ; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2 of the License , or
( at your option ) any l... | null | https://raw.githubusercontent.com/ygrek/mldonkey/333868a12bb6cd25fed49391dd2c3a767741cb51/src/gtk2/gui/guiConfig.ml | ocaml | ***********************************************************************
Global variables
********************************... | Copyright 2004 b8_bavard ,
This file is part of mldonkey .
mldonkey is free software ; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2 of the License , or
( at your option ) any l... |
7413e94efbda5c49696c403c70e577c04e0120b573da18c1c58755f8b6eed2bf | agentm/project-m36 | Base.hs | # LANGUAGE StandaloneDeriving , DerivingVia , TypeApplications , TypeSynonymInstances , ScopedTypeVariables #
# OPTIONS_GHC -fno - warn - orphans #
Serialise instances for ProjectM36.Base data types- orphan instance city
module ProjectM36.Serialise.Base where
import Codec.Winery hiding (Schema)
import Codec.Winery.Inte... | null | https://raw.githubusercontent.com/agentm/project-m36/d35de3f5ae72deedc483bd35a2e19523608e821b/src/lib/ProjectM36/Serialise/Base.hs | haskell | use nonempty instead to replace error with winery error
| restore slimmed tuple set to include single shared attributes list | # LANGUAGE StandaloneDeriving , DerivingVia , TypeApplications , TypeSynonymInstances , ScopedTypeVariables #
# OPTIONS_GHC -fno - warn - orphans #
Serialise instances for ProjectM36.Base data types- orphan instance city
module ProjectM36.Serialise.Base where
import Codec.Winery hiding (Schema)
import Codec.Winery.Inte... |
972f107e4a60efe330487077925075da8845923fd17d97e57d49c9373a6bd7cc | wireless-net/erlang-nommu | epp.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 1996 - 2014 . All Rights Reserved .
%%
The contents of this file are subject to the Erlang Public License ,
Version 1.1 , ( the " License " ) ; you may not use this file except in
%% compliance with the License. You should have received a copy of the
%% Erlang Publi... | null | https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/stdlib/src/epp.erl | erlang |
%CopyrightBegin%
compliance with the License. You should have received a copy of the
Erlang Public License along with this software. If not, it can be
retrieved online at /.
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
the License for the specific language governing rights and limitatio... | Copyright Ericsson AB 1996 - 2014 . All Rights Reserved .
The contents of this file are subject to the Erlang Public License ,
Version 1.1 , ( the " License " ) ; you may not use this file except in
Software distributed under the License is distributed on an " AS IS "
-module(epp).
An Erlang code preprocess... |
757cd75f1a190f24b6774f9be8db551fe6774f2f4705f211e00105a7f8fc8f8b | alanz/ghc-exactprint | CSETest.hs | {-# LANGUAGE LinearTypes #-}
# LANGUAGE NoImplicitPrelude #
# LANGUAGE UnicodeSyntax #
This test makes sure that if two expressions with conflicting types are
CSEd then appropiate things happen .
CSEd then appropiate things happen. -}
module CSETest where
minimal :: a ⊸ a
minimal x = x
maximal :: a -> a
max... | null | https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc90/CSETest.hs | haskell | # LANGUAGE LinearTypes # | # LANGUAGE NoImplicitPrelude #
# LANGUAGE UnicodeSyntax #
This test makes sure that if two expressions with conflicting types are
CSEd then appropiate things happen .
CSEd then appropiate things happen. -}
module CSETest where
minimal :: a ⊸ a
minimal x = x
maximal :: a -> a
maximal x = x
|
22e35d108a8d873ffb1a9c37f3be1c97865b86c0f4bffecdbf9ac8f717148477 | yrashk/socket.io-erlang | socketio_listener_tests.erl | -module(socketio_listener_tests).
-include_lib("../include/socketio.hrl").
-include_lib("eunit/include/eunit.hrl").
empty_origins_test() ->
?assertEqual(false, socketio_listener:verify_origin("",[])).
all_allowed_origins_test() ->
?assertEqual(true, socketio_listener:verify_origin("",[{"a",80},{"*","*"}])).
... | null | https://raw.githubusercontent.com/yrashk/socket.io-erlang/7a6c768a28cf18d58efd7abe0eb276a22dbc7974/test/socketio_listener_tests.erl | erlang | -module(socketio_listener_tests).
-include_lib("../include/socketio.hrl").
-include_lib("eunit/include/eunit.hrl").
empty_origins_test() ->
?assertEqual(false, socketio_listener:verify_origin("",[])).
all_allowed_origins_test() ->
?assertEqual(true, socketio_listener:verify_origin("",[{"a",80},{"*","*"}])).
... | |
0ea53151d8686a25ddef8170d7f0a1146d314b059119ae9bf5f2608ecf48ef95 | darnuria/kitty-lang | kittylang.ml | *
* ccmain.ml
* Part of Micro - JavaScript Compiler
*
* 3I018 Compilation
* Université *
* ccmain.ml
* Part of Micro-JavaScript Compiler
*
* 3I018 Compilation
* Université Pierre et Marie Curie
*
*)
open Cmdliner
(*
type verbosity =
| Verbose
| Quiet
let string_of_verbosity... | null | https://raw.githubusercontent.com/darnuria/kitty-lang/10068801735bd3f3d9086a7b2525442d5911e96d/kittylang.ml | ocaml |
type verbosity =
| Verbose
| Quiet
let string_of_verbosity = function
| Verbose -> "verbose"
| Quiet -> "quiet"
Should not appear?
`Ok ({ prog with Ast.filename = filename })
let compile_prog prog =
Expander.expand_prog prog
|> Compiler.compile_prog (Prim.init_prim_env ())
(fun prog ->
... | *
* ccmain.ml
* Part of Micro - JavaScript Compiler
*
* 3I018 Compilation
* Université *
* ccmain.ml
* Part of Micro-JavaScript Compiler
*
* 3I018 Compilation
* Université Pierre et Marie Curie
*
*)
open Cmdliner
let string_of_position lexbuf =
let open Lexing in
let pos = ... |
02a4e2a7d9461fa60f1b49e32aee41d880a415c3f09be5e4d7c5d4148d310483 | the-dr-lazy/cascade | Database.hs | |
Module : Cascade . Api . Effect . Database
Description : ! ! ! INSERT MODULE SHORT DESCRIPTION ! ! !
Copyright : ( c ) 2020 - 2021 Cascade
License : MPL 2.0
Maintainer : < > ( the-dr-lazy.github.io )
Stability : Stable
Portability : POSIX
! ! ! INSERT MODULE LONG DESCRIPTION ! !... | null | https://raw.githubusercontent.com/the-dr-lazy/cascade/014a5589a2763ce373e8c84a211cddc479872b44/cascade-api/src/Cascade/Api/Effect/Database.hs | haskell | |
Module : Cascade . Api . Effect . Database
Description : ! ! ! INSERT MODULE SHORT DESCRIPTION ! ! !
Copyright : ( c ) 2020 - 2021 Cascade
License : MPL 2.0
Maintainer : < > ( the-dr-lazy.github.io )
Stability : Stable
Portability : POSIX
! ! ! INSERT MODULE LONG DESCRIPTION ! !... | |
e5e4de7760bd1e92bbb85d78a24c979361b46536c11622d2803f56a4dcb5b090 | RedPRL/stagedtt | PreludeBench.ml | open Bechamel
open Toolkit
module BenchTbl = OrderedHashTblBench
let tbl_size = 1024
let test = Test.make_grouped ~name:"Tables:" ~fmt:"%s %s" [
BenchTbl.test_create_ordered_tbl tbl_size;
BenchTbl.test_create_stdlib_tbl tbl_size;
BenchTbl.test_lookup_ordered_tbl tbl_size;
BenchTbl.test_lookup_stdlib... | null | https://raw.githubusercontent.com/RedPRL/stagedtt/f88538036b51cebb83ebb0b418ec9b089550275d/bench/prelude/PreludeBench.ml | ocaml | open Bechamel
open Toolkit
module BenchTbl = OrderedHashTblBench
let tbl_size = 1024
let test = Test.make_grouped ~name:"Tables:" ~fmt:"%s %s" [
BenchTbl.test_create_ordered_tbl tbl_size;
BenchTbl.test_create_stdlib_tbl tbl_size;
BenchTbl.test_lookup_ordered_tbl tbl_size;
BenchTbl.test_lookup_stdlib... | |
6fff734bdddbda3ae19ef7fa92a562352fc7c81a40f6470ee7e8cc216810620e | Workiva/eva | functions.clj | Copyright 2015 - 2019 Workiva Inc.
;;
;; Licensed under the Eclipse Public License 1.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; -1.0.php
;;
;; Unless required by applicable law or agreed to in writing, software
dist... | null | https://raw.githubusercontent.com/Workiva/eva/b7b8a6a5215cccb507a92aa67e0168dc777ffeac/core/src/eva/query/dialect/functions.clj | clojure |
Licensed under the Eclipse Public License 1.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-1.0.php
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expre... | Copyright 2015 - 2019 Workiva Inc.
distributed under the License is distributed on an " AS IS " BASIS ,
(ns eva.query.dialect.functions
(:require [eva.attribute :refer [cardinality]]
[eva.core :refer [select-datoms multi-select-datoms-ordered]]
[eva.query.error :refer [raise-builtin]]
... |
8a3ba2723e459293276d210a6a90a5fe28b48b24cfa3b82e63be5f149fec472e | samply/blaze | nil.clj | (ns blaze.elm.nil
"Implementation of protocols for nil.
By dispatching on nil, returning nil is very effective and implementations
on other types don't have to check for nil."
(:require
[blaze.elm.protocols :as p]))
(extend-protocol p/StructuredType
nil
(get [_ _]))
(extend-protocol p/Equal
nil
... | null | https://raw.githubusercontent.com/samply/blaze/693d07d8fbf9ac4e11af6684978e108bbd193780/modules/cql/src/blaze/elm/nil.clj | clojure | (ns blaze.elm.nil
"Implementation of protocols for nil.
By dispatching on nil, returning nil is very effective and implementations
on other types don't have to check for nil."
(:require
[blaze.elm.protocols :as p]))
(extend-protocol p/StructuredType
nil
(get [_ _]))
(extend-protocol p/Equal
nil
... | |
037b5bba1bb85f1125474faefbb852d5704d17a4001b03b16db9030cc8dbe5e7 | ygmpkk/house | Posix.hs | -----------------------------------------------------------------------------
-- |
Module : System .
Copyright : ( c ) The University of Glasgow 2002
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer :
-- Stability : provisional
-- Portability : non-portable (r... | null | https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/unix/System/Posix.hs | haskell | ---------------------------------------------------------------------------
|
License : BSD-style (see the file libraries/base/LICENSE)
Maintainer :
Stability : provisional
Portability : non-portable (requires POSIX)
POSIX support
-------------------------------------------------------------------... | Module : System .
Copyright : ( c ) The University of Glasgow 2002
module System.Posix (
module System.Posix.Types,
module System.Posix.Signals,
module System.Posix.Directory,
module System.Posix.Files,
module System.Posix.Unistd,
module System.Posix.IO,
module System.Posix.Env,
modul... |
f1ff4cb2b5f5313f711e85a11295b46e08755a623a8c77f5742d6e5c1f8479dc | haskell/haskell-ide-engine | GhcMod.hs | # LANGUAGE CPP #
# LANGUAGE DeriveGeneric #
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TupleSections #
# LANGUAGE TypeFamilies #
module Haskell.Ide.Engine.Plugin.GhcMod
(
ghcmodDescriptor
-- * For ... | null | https://raw.githubusercontent.com/haskell/haskell-ide-engine/d84b84322ccac81bf4963983d55cc4e6e98ad418/src/Haskell/Ide/Engine/Plugin/GhcMod.hs | haskell | # LANGUAGE FlexibleContexts #
# LANGUAGE OverloadedStrings #
* For tests
only to keep the GHC 8.4 and below unused field warning happy
, extractHoleSubstitutions
, extractMissingSignature
, extractRenamableTerms
, extractUnusedTerm
---------------------------------------------------------------------
This ... | # LANGUAGE CPP #
# LANGUAGE DeriveGeneric #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TupleSections #
# LANGUAGE TypeFamilies #
module Haskell.Ide.Engine.Plugin.GhcMod
(
ghcmodDescriptor
, ( .. )
, ( .. )
, TypeDef ( .. )
, TypeParams ( .. )
, ( .. )
, newT... |
1d9f4b15f858c89a4cb21933c81af7960fc3ccd6384c5e1c151efcc90d6518da | TerrorJack/ghc-alter | ioref001.hs |
module Main where
import Data.IORef
loop r 0 = return ()
loop r c = loop r (c-1) >> writeIORef r 42
main = newIORef 0 >>= \r -> loop r 1000000 >> putStrLn "done"
| null | https://raw.githubusercontent.com/TerrorJack/ghc-alter/db736f34095eef416b7e077f9b26fc03aa78c311/ghc-alter/boot-lib/base/tests/ioref001.hs | haskell |
module Main where
import Data.IORef
loop r 0 = return ()
loop r c = loop r (c-1) >> writeIORef r 42
main = newIORef 0 >>= \r -> loop r 1000000 >> putStrLn "done"
| |
c411872663b782906a618954e336e547713b71ab97876724e972b1d2971dee52 | danilkolikov/dfl | ToSimpleTypeTest.hs | |
Module : Frontend . Desugaring . Initial . ToSimpleTypeTest
Description : Tests for desugaring of object to SimpleType - s
Copyright : ( c ) , 2019
License : MIT
Test suite for desugaring of objects to SimpleType - s
Module : Frontend.Desugaring.Initial.ToSimpleTypeTest
De... | null | https://raw.githubusercontent.com/danilkolikov/dfl/698a8f32e23b381afe803fc0e353293a3bf644ba/test/Frontend/Desugaring/Initial/ToSimpleTypeTest.hs | haskell | |
Module : Frontend . Desugaring . Initial . ToSimpleTypeTest
Description : Tests for desugaring of object to SimpleType - s
Copyright : ( c ) , 2019
License : MIT
Test suite for desugaring of objects to SimpleType - s
Module : Frontend.Desugaring.Initial.ToSimpleTypeTest
De... | |
d079e8579c2733cb856e30dc0ef7c78a22f26422c261b90e5a58cc625a9ebfbc | bobzhang/fan | bug_escaping_quot.ml | open Camlp4.PreCast;;
Camlp4_config.antiquotations := true;;
let expand_my_quot_expr _loc _loc_name_opt quotation_contents =
Printf.eprintf "%S\n%!" quotation_contents;
<:expr< dummy >>
;;
Syntax.Quotation.add "my" Syntax.Quotation.DynAst.expr_tag expand_my_quot_expr;;
| null | https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/todoml/test/fixtures/bug_escaping_quot.ml | ocaml | open Camlp4.PreCast;;
Camlp4_config.antiquotations := true;;
let expand_my_quot_expr _loc _loc_name_opt quotation_contents =
Printf.eprintf "%S\n%!" quotation_contents;
<:expr< dummy >>
;;
Syntax.Quotation.add "my" Syntax.Quotation.DynAst.expr_tag expand_my_quot_expr;;
| |
11ee0a057cc607fdfc1a7c3d8eaa8999b3b7ccea10f52f9fb3e6d757924dfd89 | oofp/Beseder | ThreeTimersApp.hs | {-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
# LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
{-# LANGUAGE PartialTypeSignatures #-}
# LANGUAGE PolyKinds #
{-# LANGUAGE RankNTypes #-}
# LANGUAGE RebindableSyntax #
{-# LANGUAGE... | null | https://raw.githubusercontent.com/oofp/Beseder/a0f5c5e3138938b6fa18811d646535ee6df1a4f4/Examples/Timer/ThreeTimersApp.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE PartialTypeSignatures #
# LANGUAGE RankNTypes #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeFamilies #
# LANGUAGE TypeOperators #
# LANGUAGE ConstraintKinds #
# OPTIONS_GHC -fomit-interface-pragmas ... | # LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE PolyKinds #
# LANGUAGE RebindableSyntax #
# LANGUAGE TypeApplications #
# LANGUAGE UndecidableInstances #
# LANGUAGE NoMonomorphismRestriction #
# LANGUAGE OverloadedLabels #
# LANGUAGE FunctionalDependen... |
d172c53f92b2e0d42d7e39d46114f9b6e913a4be83c604355c4a9335616ba38b | Perry961002/SICP | exe2.46-vector.scm | ;实现向量的数据抽象
构造函数
(define (make-vect x y)
(cons x y))
(define (xcor-vect v)
(car v))
(define (ycor-vect v)
(cdr v))
;向量加法过程
(define (add-vect u v)
(make-vect (+ (xcor-vect u) (xcor-vect v))
(+ (ycor-vect u) (ycor-vect v))))
;向量的减法过程
(define (sub-vect u v)
(make-vect (- (xcor-vect ... | null | https://raw.githubusercontent.com/Perry961002/SICP/89d539e600a73bec42d350592f0ac626e041bf16/Chap2/exercise/exe2.46-vector.scm | scheme | 实现向量的数据抽象
向量加法过程
向量的减法过程 |
构造函数
(define (make-vect x y)
(cons x y))
(define (xcor-vect v)
(car v))
(define (ycor-vect v)
(cdr v))
(define (add-vect u v)
(make-vect (+ (xcor-vect u) (xcor-vect v))
(+ (ycor-vect u) (ycor-vect v))))
(define (sub-vect u v)
(make-vect (- (xcor-vect u) (xcor-vect v))
... |
54fb6a922c08ff873b2827054bb2c0860135b3a3e4b8efe964287208990a53e7 | mirleft/ocaml-tls | x509_eio.ml | open Eio.Std
module Path = Eio.Path
let (</>) = Path.( / )
let read_file path =
Path.load path |> Cstruct.of_string
let extension str =
let n = String.length str in
let rec scan = function
| i when i = 0 -> None
| i when str.[i - 1] = '.' ->
Some (String.sub str i (n - i))
| i -> scan (pre... | null | https://raw.githubusercontent.com/mirleft/ocaml-tls/d265a9666d1e40bb6546b4512aabd39481711406/eio/x509_eio.ml | ocaml | Would be better to take an Eio.Time.clock here, but that API is likely to change soon. | open Eio.Std
module Path = Eio.Path
let (</>) = Path.( / )
let read_file path =
Path.load path |> Cstruct.of_string
let extension str =
let n = String.length str in
let rec scan = function
| i when i = 0 -> None
| i when str.[i - 1] = '.' ->
Some (String.sub str i (n - i))
| i -> scan (pre... |
500af1784e256a3ffbbc19b832329bb91779fe177c72c1bf2cd15e2dcf9d25ce | scicloj/scicloj.ml | ml_test.clj | (ns scicloj.ml.ml-test
(:require [clojure.test :refer [deftest is]]
[tech.v3.dataset.modelling :as ds-mod]
[tablecloth.api :as tc]
[scicloj.metamorph.ml.gridsearch :as gs]
[scicloj.metamorph.core :as morph]
[tech.v3.dataset.metamorph :as ds-mm]
... | null | https://raw.githubusercontent.com/scicloj/scicloj.ml/cb828d4673cfd67e0b76c9573167435db5b59905/test/scicloj/ml/ml_test.clj | clojure |
(tc/dataset "test/data/iris.csv") | (ns scicloj.ml.ml-test
(:require [clojure.test :refer [deftest is]]
[tech.v3.dataset.modelling :as ds-mod]
[tablecloth.api :as tc]
[scicloj.metamorph.ml.gridsearch :as gs]
[scicloj.metamorph.core :as morph]
[tech.v3.dataset.metamorph :as ds-mm]
... |
4a06205072a821aa1d67553303f8cffb6e03fce0adbe5ab7d60a5265bd7fc6ed | vernemq/vernemq | vmq_ranch.erl | Copyright 2018 Erlio GmbH Basel Switzerland ( )
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% -2.0
%%
%% Unless required by applicable law or agreed to in writing, sof... | null | https://raw.githubusercontent.com/vernemq/vernemq/234d253250cb5371b97ebb588622076fdabc6a5f/apps/vmq_server/src/vmq_ranch.erl | erlang |
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing perm... | Copyright 2018 Erlio GmbH Basel Switzerland ( )
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(vmq_ranch).
-include("vmq_server.hrl").
-behaviour(ranch_protocol).
-export([start_link/4, start_link/3]).
-export(... |
db984b5ed579e66db5510e25b9218fcc0452a1b7b00ade0f8fe23c427b872539 | aeternity/aeternity | aevm_gas.erl | %%%-------------------------------------------------------------------
( C ) 2017 , Aeternity Anstalt
%%% @doc
%%% Calculate gas of operations
%%% @end
Created : 2 Oct 2017
%%%-------------------------------------------------------------------
-module(aevm_gas).
-export([ op_gas/2
, mem_gas/2
... | null | https://raw.githubusercontent.com/aeternity/aeternity/b7ce6ae15dab7fa22287c2da3d4405c29bb4edd7/apps/aevm/src/aevm_gas.erl | erlang | -------------------------------------------------------------------
@doc
Calculate gas of operations
@end
-------------------------------------------------------------------
====================================================================
API
=================================================================... | ( C ) 2017 , Aeternity Anstalt
Created : 2 Oct 2017
-module(aevm_gas).
-export([ op_gas/2
, mem_gas/2
, mem_limit_for_gas/2
, mem_expansion_gas/2
]).
-export([ call_cap/2
]).
-include_lib("aebytecode/include/aeb_opcodes.hrl").
-include("aevm_eeevm.hrl").
-import(aevm_ee... |
ed01443a7cc8ea5038aafb51589ac79733cfaa172f74981894a46e0c2c32eb7e | stoeffel/elmi-to-json | Error.hs | {-# LANGUAGE DeriveAnyClass #-}
module Error
( Error (..),
)
where
import qualified Control.Exception as Exception
import qualified Data.Text as T
data Error
= DecodingElmJsonFailed FilePath
| ElmStuffEmpty
| ElmStuffNotFound T.Text
| DecodingElmiFailed String FilePath
| DirectoryDoesntExist FilePath
... | null | https://raw.githubusercontent.com/stoeffel/elmi-to-json/ae40d1aa1e3d6878f2af514e611d44890e7abc1e/src/Error.hs | haskell | # LANGUAGE DeriveAnyClass # |
module Error
( Error (..),
)
where
import qualified Control.Exception as Exception
import qualified Data.Text as T
data Error
= DecodingElmJsonFailed FilePath
| ElmStuffEmpty
| ElmStuffNotFound T.Text
| DecodingElmiFailed String FilePath
| DirectoryDoesntExist FilePath
| NoElmJson
deriving (Excepti... |
ca4e907bc9b5308cf3b18bd34ce9ae7615a727c2727ae4cfa20ecb5c78c3864f | kupl/AlphaRegexPublic | main.ml | open Vocab
open Options
open Lang
open Synthesizer
let usageMsg = "Usage: main.native -input filename"
(* take a onestep for x *)
let onestep_xto01 : string -> string list
= fun str ->
if not (String.contains str 'X')
then [str]
else
let idx = String.index str 'X' in
let str1 = str in
let str2 = By... | null | https://raw.githubusercontent.com/kupl/AlphaRegexPublic/8230a0677bca6f02d83eb3e718a61e71bfec18a2/main.ml | ocaml | take a onestep for x
onestep for all strings
find the position of positive examples
find the position of negative examples | open Vocab
open Options
open Lang
open Synthesizer
let usageMsg = "Usage: main.native -input filename"
let onestep_xto01 : string -> string list
= fun str ->
if not (String.contains str 'X')
then [str]
else
let idx = String.index str 'X' in
let str1 = str in
let str2 = Bytes.copy str in
let _ =... |
e9af964d97adcaa022ee2093dcd6edb198664bafe179579951c2345452d628a4 | mtolly/onyxite-customs | Import.hs | # LANGUAGE DuplicateRecordFields #
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE OverloadedRecordDot #-}
# LANGUAGE OverloadedStrings #
# LANGUAGE TupleSections #
# OPTIONS_GHC -fno - warn - ambiguous - fields #
module Onyx.Import where
import Cont... | null | https://raw.githubusercontent.com/mtolly/onyxite-customs/63a0b278bbe973480d12a12518efe939dd882028/haskell/packages/onyx-lib/src/Onyx/Import.hs | haskell | # LANGUAGE LambdaCase #
# LANGUAGE MultiWayIf #
# LANGUAGE OverloadedRecordDot #
delete the temp import dir early if you want
string you can append "_whatever" to for generated files
True if only 2x bass pedal
shouldn't happen
donkey konga 1 , japan / us / europe
first, run "imp" before ma... | # LANGUAGE DuplicateRecordFields #
# LANGUAGE OverloadedStrings #
# LANGUAGE TupleSections #
# OPTIONS_GHC -fno - warn - ambiguous - fields #
module Onyx.Import where
import Control.Applicative ((<|>))
import qualified Control.Monad.Catch as MC
import Control.Monad.E... |
bb55e2a9c90d42adf73d91185d921b4476546b551833fb398325a340382f39bf | google/btls | HKDFTests.hs | Copyright 2018 Google LLC
--
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not
-- use this file except in compliance with the License. You may obtain a copy of
-- the License at
--
-- -2.0
--
-- Unless required by applicable law or agreed to in writing, software
distributed und... | null | https://raw.githubusercontent.com/google/btls/6de13194f15468b186fe62d089b3a7189795c704/tests/Codec/Crypto/HKDFTests.hs | haskell |
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
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitati... | Copyright 2018 Google LLC
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not
distributed under the License is distributed on an " AS IS " BASIS , WITHOUT
# OPTIONS_GHC -Wno - missing - fields #
module Codec.Crypto.HKDFTests (tests) where
import qualified Data.ByteString as ByteSt... |
7b395f42440b62d1c33024631b229c0c321be770a3f102186b2da530c14fb466 | zotonic/zotonic | action_wires_insert_top.erl | @author < >
2009
Date : 2009 - 11 - 06
%% @doc Insert the result of a render action at the top of an HTML element.
Copyright 2009
%%
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 th... | null | https://raw.githubusercontent.com/zotonic/zotonic/852f627c28adf6e5212e8ad5383d4af3a2f25e3f/apps/zotonic_mod_wires/src/actions/action_wires_insert_top.erl | erlang | @doc Insert the result of a render action at the top of an HTML element.
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 exp... | @author < >
2009
Date : 2009 - 11 - 06
Copyright 2009
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(action_wires_insert_top).
-include_lib("zotonic_core/include/zotonic.hrl").
-export([
render_... |
27c88e45471c24fe27e28fe78dc9f1780b47b51bb6dddd6cc87248e429dbff7c | vvvvalvalval/datofu | uid.clj | (ns datofu.test.uid
(:require [clojure.test :as test :refer :all]
[datomic.api :as d]
[datomock.core :as dm]
[datofu.uid :refer :all]
[datofu.schema.dsl :as sch]))
(def fresh-conn
(let [base (dm/mock-conn)]
@(d/transact base (schema-tx))
#(dm/fork-conn base)... | null | https://raw.githubusercontent.com/vvvvalvalval/datofu/c596c3beca92309135d88e338f233163c0e9cf5f/test/datofu/test/uid.clj | clojure | (ns datofu.test.uid
(:require [clojure.test :as test :refer :all]
[datomic.api :as d]
[datomock.core :as dm]
[datofu.uid :refer :all]
[datofu.schema.dsl :as sch]))
(def fresh-conn
(let [base (dm/mock-conn)]
@(d/transact base (schema-tx))
#(dm/fork-conn base)... | |
c514b629a8269f3b7f84e12ca4d037076747601046f2e35ebc54ce8bfc80bfbb | ghcjs/ghcjs-dom | HTMLTemplateElement.hs | # LANGUAGE PatternSynonyms #
# LANGUAGE ForeignFunctionInterface #
# LANGUAGE JavaScriptFFI #
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
module GHCJS.DOM.JSFFI.Generated.HTMLTemplateElement
(js_getContent, getContent, HTMLTemplateElement(..),
gTypeH... | null | https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/HTMLTemplateElement.hs | haskell | For HasCallStack compatibility
# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
| <-US/docs/Web/API/HTMLTemplateElement.content Mozilla HTMLTemplateElement.content documentation> | # LANGUAGE PatternSynonyms #
# LANGUAGE ForeignFunctionInterface #
# LANGUAGE JavaScriptFFI #
module GHCJS.DOM.JSFFI.Generated.HTMLTemplateElement
(js_getContent, getContent, HTMLTemplateElement(..),
gTypeHTMLTemplateElement)
where
import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, ... |
3599cebdc09920aee4e1aa0f4f1cea0fb851b559155daab020c8345727ca6773 | haskell-tools/haskell-tools | WithScopedTyVarsMagic.hs | # LANGUAGE FlexibleContexts , ScopedTypeVariables #
module WithScopedTyVarsMagic where
import Definitions
f :: Eq a => a -> ()
* ( FlexibleContexts ) , FlexibleContexts *
| null | https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/builtin-refactorings/test/ExtensionOrganizerTest/FlexibleContextsTest/WithScopedTyVarsMagic.hs | haskell | # LANGUAGE FlexibleContexts , ScopedTypeVariables #
module WithScopedTyVarsMagic where
import Definitions
f :: Eq a => a -> ()
* ( FlexibleContexts ) , FlexibleContexts *
| |
a554d991ea83c8ea8b455c18324999c9526f0fe4dd8c59a44e4b63299e0bee1b | windock/erlyvideo | apps_streaming.erl | %%%---------------------------------------------------------------------------------------
@author < > [ ]
@author < > [ ]
@author < > [ ]
2007 , ,
%%% @doc Generalized RTMP application behavior module
%%% @reference See <a href="" target="_top"></a> for mor... | null | https://raw.githubusercontent.com/windock/erlyvideo/80fdc4175de86f0ab5fb6db20a5b3c2fd4d5a075/src/apps/apps_streaming.erl | erlang | ---------------------------------------------------------------------------------------
@doc Generalized RTMP application behavior module
@reference See <a href="" target="_top"></a> for more information
@end
Permission is hereby granted, free of charge, to any person obtaining a copy
of this ... | @author < > [ ]
@author < > [ ]
@author < > [ ]
2007 , ,
The MIT License
Copyright ( c ) 2007 , ,
in the Software without restriction , including without limitation the rights
copies of the Software , and to permit persons to whom the Software is
... |
622b9179c7c43a0dfc2d21a8b888c49bd29457a39355700f24a5a863bdd029b7 | tweag/lagoon | BasicAuth.hs | Copyright 2020 Pfizer Inc.
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
-- -2.0
-- Unless required by applicable law or agreed to in writing, software
distributed under th... | null | https://raw.githubusercontent.com/tweag/lagoon/2ef0440db810f4f45dbed160b369daf41d92bfa4/server/src/Lagoon/Server/Auth/BasicAuth.hs | haskell | you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permiss... | Copyright 2020 Pfizer Inc.
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
module Lagoon.Server.Auth.BasicAuth (authProviderBasicAuth) where
import Control.Monad.Except
import Network.Connection
import Network.HTTP.Type... |
9822b62698e8a4626ad293d228ffbd0c3d34fd15dea89e9541895bbefcd869c1 | Clojure2D/clojure2d-examples | perlin.clj | (ns rt4.the-rest-of-your-life.ch06b.perlin
(:require [fastmath.core :as m]
[fastmath.vector :as v]
[fastmath.random :as r])
(:import [fastmath.vector Vec3]))
(set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
(m/use-primitive-operators)
(defrecord Perlin [ranvec perm-x... | null | https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/f47e1655902cc6bf1590aaecc144ac274ed3af66/src/rt4/the_rest_of_your_life/ch06b/perlin.clj | clojure | (ns rt4.the-rest-of-your-life.ch06b.perlin
(:require [fastmath.core :as m]
[fastmath.vector :as v]
[fastmath.random :as r])
(:import [fastmath.vector Vec3]))
(set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
(m/use-primitive-operators)
(defrecord Perlin [ranvec perm-x... | |
a72b24f8a98d058dac61588d2379f5684d3b095739224e1a050a120bfb21e309 | tweag/asterius | RebindableFailA.hs | Test that RebindableSyntax and the new MonadFail interact correctly .
--
-- This should fail with the message "Failed with error".
# LANGUAGE RebindableSyntax #
import Prelude hiding (fail)
fail :: String -> a
fail _ = error "Failed with error"
f :: Maybe Int -> Maybe ()
f x = do
42 <- x
return ()
# NOINLINE ... | null | https://raw.githubusercontent.com/tweag/asterius/e7b823c87499656860f87b9b468eb0567add1de8/asterius/test/ghc-testsuite/rebindable/RebindableFailA.hs | haskell |
This should fail with the message "Failed with error". | Test that RebindableSyntax and the new MonadFail interact correctly .
# LANGUAGE RebindableSyntax #
import Prelude hiding (fail)
fail :: String -> a
fail _ = error "Failed with error"
f :: Maybe Int -> Maybe ()
f x = do
42 <- x
return ()
# NOINLINE f #
main = print (f (Just 55))
|
7b2f9d15c29bdb6a48a93016c23cd44646036bc1600858b23f7860b63d087675 | sealchain-project/sealchain | Mode.hs | {-# LANGUAGE RankNTypes #-}
# LANGUAGE RecordWildCards #
# LANGUAGE TemplateHaskell #
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
-- | Execution modes for block logic tests.
module Test.Pos.Block.Logic.Mode
( TestParams (..)
, HasTestParams (..)
, TestInitModeContext (.... | null | https://raw.githubusercontent.com/sealchain-project/sealchain/e97b4bac865fb147979cb14723a12c716a62e51e/generator/src/Test/Pos/Block/Logic/Mode.hs | haskell | # LANGUAGE RankNTypes #
# LANGUAGE TypeFamilies #
# LANGUAGE TypeOperators #
| Execution modes for block logic tests.
MonadSlots
--------------------------------------------------------------------------
Parameters
--------------------------------------------------------------------------
| This data type... | # LANGUAGE RecordWildCards #
# LANGUAGE TemplateHaskell #
module Test.Pos.Block.Logic.Mode
( TestParams (..)
, HasTestParams (..)
, TestInitModeContext (..)
, BlockTestContextTag
, PureDBSnapshotsVar(..)
, BlockTestContext(..)
, BlockTestMode
, runBlockTestMode
... |
8ce0677b66a1754f08f3b3b37a9d78ef20733c465f7052223e16350331213f5b | c-cube/trustee | hashcons.ml |
open Sigs
module type ARG = sig
type t
val equal : t -> t -> bool
val hash : t -> int
val set_id : t -> int -> unit
val on_new : t -> unit
end
module Make(A : ARG): sig
type t
val create : ?size:int -> unit -> t
val hashcons : t -> A.t -> A.t
val to_iter : t -> A.t iter
val size : t -> int
end = ... | null | https://raw.githubusercontent.com/c-cube/trustee/5cccd30bb7d88879a10bc3e31e13efbf0a6afb48/src/core/hashcons.ml | ocaml | hashcons terms
invalid |
open Sigs
module type ARG = sig
type t
val equal : t -> t -> bool
val hash : t -> int
val set_id : t -> int -> unit
val on_new : t -> unit
end
module Make(A : ARG): sig
type t
val create : ?size:int -> unit -> t
val hashcons : t -> A.t -> A.t
val to_iter : t -> A.t iter
val size : t -> int
end = ... |
15cc0b304a97a332bf096e6f0c509598c427c4d5b3e3565d56675467f3aaf9dd | maranget/hevea | saveUtils.ml | (***********************************************************************)
(* *)
(* HEVEA *)
(* *)
, projet PARA , INR... | null | https://raw.githubusercontent.com/maranget/hevea/226eac8c506f82a600d453492fbc1b9784dd865f/saveUtils.ml | ocaml | *********************************************************************
HEVEA
... | , projet PARA , INRIA Rocquencourt
Copyright 2012 Institut National de Recherche en Informatique et
Automatique . Distributed only by permission .
let verbose = ref 0 and silent = ref false
;;
let set_verbose s v =
silent := s ; verbose := v
;;
exception... |
5e3d564fd6906054821fc918448e0a2a4d11ed1f6056ed9110acee33af74dca2 | 8c6794b6/haskell-sc-scratch | Parser.hs | ------------------------------------------------------------------------------
-- |
-- Module : $Header$
Description : Module for parsing PGM file
CopyRight : ( c ) 8c6794b6
-- License : BSD3
--
Maintainer :
-- Stability : unstable
-- Portability : portable
--
Module for PGM parser .
--
-- Exam... | null | https://raw.githubusercontent.com/8c6794b6/haskell-sc-scratch/22de2199359fa56f256b544609cd6513b5e40f43/netpbm-parser/src/Codec/PBM/Parser.hs | haskell | ----------------------------------------------------------------------------
|
Module : $Header$
License : BSD3
Stability : unstable
Portability : portable
Examples:
> > raw <- L.readFile "images/raw.pgm"
> > parse parsePGM raw
> > plain <- L.readFile "images/plain.pgm"
> > parse parseP... | Description : Module for parsing PGM file
CopyRight : ( c ) 8c6794b6
Maintainer :
Module for PGM parser .
> > import qualified Data . ByteString . Lazy as L
Parse raw PGM file .
> Right Greymap 200x200 255
Parse plain PGM file .
> Right Greymap 200x200 255
Parse raw PPM file .
module Codec.PBM... |
6760a12de82ae7c4c138dba82cbcde50c3e6d07911ff6f92417acd2e1ebbb377 | ocaml/oasis | OASISTest.ml | (******************************************************************************)
OASIS : architecture for building OCaml libraries and applications
(* *)
Copyright ( C ) 2011 - 2016 ,
Copyrig... | null | https://raw.githubusercontent.com/ocaml/oasis/3d1a9421db92a0882ebc58c5df219b18c1e5681d/src/oasis/OASISTest.ml | ocaml | ****************************************************************************
This library is free software; you can redistribute it and/or modify it
under the t... | OASIS : architecture for building OCaml libraries and applications
Copyright ( C ) 2011 - 2016 ,
Copyright ( C ) 2008 - 2011 , OCamlCore SARL
the Free Software Foundation ; either version 2.1 of the License , or ( at
You s... |
68a8641658460cece87829b919019d1ee59164028d23ef62e39975467eef28d8 | abella-prover/abella | test_term.ml | open OUnit
open Term
open Term.Notations
open Extensions
open Test_helper
let norm_tests =
"Norm" >:::
[
"[(x\\ x) c]" >::
(fun () ->
let c = uconst "c" in
let t = (1 /// db 1) ^^ [c] in
let t = hnorm t in
assert_term_equal c t) ;
"[(x\\ y\\ x) a... | null | https://raw.githubusercontent.com/abella-prover/abella/d3a2d56b750cab84c3bee46ab041d37ad5f8addd/test/test_term.ml | ocaml | This is a normalization pb which appeared to be causing
* a failure in an unification test below.
Test that Term.App is flattened
`1 (g (y\ h `1 X))
x\ `2 (g (y\ h y x))
X `1 (w\ Y w) Z | open OUnit
open Term
open Term.Notations
open Extensions
open Test_helper
let norm_tests =
"Norm" >:::
[
"[(x\\ x) c]" >::
(fun () ->
let c = uconst "c" in
let t = (1 /// db 1) ^^ [c] in
let t = hnorm t in
assert_term_equal c t) ;
"[(x\\ y\\ x) a... |
cdaa8fc5c6c46e0056382b8a52b7bb309cb026c94d9bee7cec7caa31e6521b0c | Quid2/top | PatternSpec.hs | {-# LANGUAGE BangPatterns #-}
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE NoMonomorphismRestriction #
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
# LANGUAGE TemplateHaskell #
# LANGUAGE TupleSections ... | null | https://raw.githubusercontent.com/Quid2/top/0f8dfa54d977053d02396e914c00b84cc1c1c498/test/PatternSpec.hs | haskell | # LANGUAGE BangPatterns #
# LANGUAGE OverloadedStrings #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE UndecidableInstances #
RUN AS: stack test --file-watch :pattern-test
pstr2 = patternQ
print (B.unpack $ ser (Cons False (Cons True Nil)))
let
ByPattern pat = byPattern h... | # LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE NoMonomorphismRestriction #
# LANGUAGE TemplateHaskell #
# LANGUAGE TupleSections #
module Main where
import Control.Applicative
import Data.Bifunctor
import qualified Data.ByteString ... |
46236db4931ce9bdb67737173f3afd459b3dc81ef9981699f18fb5e2699bc9fa | uw-unsat/serval-sosp19 | shims.rkt | #lang rosette
(require "base.rkt"
(prefix-in core: "../lib/core.rkt"))
(provide (all-defined-out))
; void *memset(void *p, int c, size_t len)
(define (memset-shim cpu)
(define ptr (gpr-ref cpu 'a0))
(define c (extract 7 0 (gpr-ref cpu 'a1)))
(define len (gpr-ref cpu 'a2))
(define mregion (core:gues... | null | https://raw.githubusercontent.com/uw-unsat/serval-sosp19/175c42660fad84b44e4c9f6f723fd3c9450d65d4/serval/serval/riscv/shims.rkt | racket | void *memset(void *p, int c, size_t len) | #lang rosette
(require "base.rkt"
(prefix-in core: "../lib/core.rkt"))
(provide (all-defined-out))
(define (memset-shim cpu)
(define ptr (gpr-ref cpu 'a0))
(define c (extract 7 0 (gpr-ref cpu 'a1)))
(define len (gpr-ref cpu 'a2))
(define mregion (core:guess-mregion-from-addr (cpu-mregions cpu) ptr ... |
9691acabf2a6b7a77c54fdafbde7f5e2089d31c44781421a1ecd7c6d8ee86793 | alt-romes/slfl | final-4-1.hs | # runState
data State b a = State (!b -o (a * !b));
synth runState :: State b a -o (!b -o (a * !b));
| null | https://raw.githubusercontent.com/alt-romes/slfl/4956fcce8ff2ca7622799fe0715c118b568b74eb/STLLC/bench/final-4-1.hs | haskell | # runState
data State b a = State (!b -o (a * !b));
synth runState :: State b a -o (!b -o (a * !b));
| |
d4fa11166da68836156cff6136e963cca3288d21095e13e6f29b61755c7c2b37 | spechub/Hets | PremiseSelectionSInE.hs | # LANGUAGE ExistentialQuantification #
{-# LANGUAGE GADTs #-}
# LANGUAGE RecordWildCards #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE FlexibleContexts #
module Persistence.Reasoning.PremiseSelectionSInE ( G_SInEResult (..)
, SInEParameters (..)
... | null | https://raw.githubusercontent.com/spechub/Hets/f582640a174df08d4c965d7c0a1ab24d1a31000d/Persistence/Reasoning/PremiseSelectionSInE.hs | haskell | # LANGUAGE GADTs #
this list is ordered by the Double | # LANGUAGE ExistentialQuantification #
# LANGUAGE RecordWildCards #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE FlexibleContexts #
module Persistence.Reasoning.PremiseSelectionSInE ( G_SInEResult (..)
, SInEParameters (..)
... |
d862891d0833f642064e18d1733b49213d221df60a3196883986ebb32b202b15 | andrejbauer/clerical | dyadic.ml | * Dyadic numbers with MPFR , wrapped up in a purely functional interface .
We always specify output precision [ prec ] , which measures bits of mantissa , and
rounding mode . In other words , all operations are approximate . We never need to add or
multiply two dyadics exactly ( it is too expensive to d... | null | https://raw.githubusercontent.com/andrejbauer/clerical/6916f1de50f812921fe187bdaec830e06f4dcde8/src/dyadic.ml | ocaml | * Rounding modes
* Invert the rounding mode.
* Constructors
* [int] to dyadic.
* GMP large integer to dyadic.
* Constants
* Order
* strictly less
* strictly greater
* equal
* less or equal
* greater or equal
* Special values
* Depending on the rounding mode, return negative or positive infinity
* Arithmeti... | * Dyadic numbers with MPFR , wrapped up in a purely functional interface .
We always specify output precision [ prec ] , which measures bits of mantissa , and
rounding mode . In other words , all operations are approximate . We never need to add or
multiply two dyadics exactly ( it is too expensive to d... |
8ad862528bcb1a5ead49f1af2be10d9c56e3c9df3ac16f91f05b474d3c4e69cf | jlongster/schemeray | schemeray-tests.scm |
(include "schemeray.scm")
(define tests '())
(define (register-test f expected)
(set! tests (cons (cons f expected) tests)))
(define (line)
(write-log "-----------------"))
(define (run-tests)
(for-each (lambda (test)
(line)
(write-log "TESTING " (car test))
(let ((r... | null | https://raw.githubusercontent.com/jlongster/schemeray/0ea0f1596cbafa05e541131fd64d482c79dd4173/schemeray-tests.scm | scheme |
(include "schemeray.scm")
(define tests '())
(define (register-test f expected)
(set! tests (cons (cons f expected) tests)))
(define (line)
(write-log "-----------------"))
(define (run-tests)
(for-each (lambda (test)
(line)
(write-log "TESTING " (car test))
(let ((r... | |
9f7ac36018a0a9f7f5612da6f57ef45ace5da125b2d5351dfaca4ed86c9a271a | polyfy/polylith | interface_test.clj | (ns polylith.clj.core.ws-explorer.interface-test
(:require [clojure.test :refer :all]
[polylith.clj.core.ws-explorer.interface :as ws]))
(def workspace {:projects [{:name "development"
:alias "dev"
:type "project"}
{:name... | null | https://raw.githubusercontent.com/polyfy/polylith/36b75565032dea88ee20cdc0bc5af18f6f4d4cf4/components/ws-explorer/test/polylith/clj/core/ws_explorer/interface_test.clj | clojure | (ns polylith.clj.core.ws-explorer.interface-test
(:require [clojure.test :refer :all]
[polylith.clj.core.ws-explorer.interface :as ws]))
(def workspace {:projects [{:name "development"
:alias "dev"
:type "project"}
{:name... | |
e1404331a71e74de6324810435e6362d2cc3bf53a6117ec2a6ef5b1d313243d3 | haskell-hvr/HsYAML-aeson | Main.hs | -- |
Copyright : © 2018
SPDX - License - Identifier : GPL-2.0 - or - later
--
module Main where
import qualified Data.Aeson as J
import qualified Data.ByteString.Char8 as BS
import qualified Data.ByteString.Lazy.Char8 as BS.L
import System.Environment
import System.Exit
... | null | https://raw.githubusercontent.com/haskell-hvr/HsYAML-aeson/fcae1e3d6bb718c47051668baaece39ad2faf64a/src-test/Main.hs | haskell | |
| Copyright : © 2018
SPDX - License - Identifier : GPL-2.0 - or - later
module Main where
import qualified Data.Aeson as J
import qualified Data.ByteString.Char8 as BS
import qualified Data.ByteString.Lazy.Char8 as BS.L
import System.Environment
import System.Exit
import ... |
d3eb59b6002551a1c14db14caec3c3dd1619bdc1c02d7001ad3bf648ab6ccec1 | bdeket/rktsicm | sparse-interpolate.rkt | #lang s-exp "../../generic.rkt"
(require rackunit
"../../rkt/glue.rkt"
(only-in "../../rkt/todo.rkt" pp)
"../../general/assert.rkt"
"../../simplify/sparse-interpolate.rkt"
"../../simplify/sparse.rkt"
"../../numerics/linear/lu.rkt"
"../helper.rkt")
(define... | null | https://raw.githubusercontent.com/bdeket/rktsicm/9a6177d98040f058214add392bd791f5259b83b5/rktsicm/sicm/tests/simplify/sparse-interpolate.rkt | racket | Check that the new algorithm is equivalent to the old one, and faster | #lang s-exp "../../generic.rkt"
(require rackunit
"../../rkt/glue.rkt"
(only-in "../../rkt/todo.rkt" pp)
"../../general/assert.rkt"
"../../simplify/sparse-interpolate.rkt"
"../../simplify/sparse.rkt"
"../../numerics/linear/lu.rkt"
"../helper.rkt")
(define... |
c64b49bfb82dc094ffbea6106a0205f4ed5f5ca8d2621fc9416e8b03e3ee8398 | mirage/index | import.ml | module Int63 = Optint.Int63
type int63 = Int63.t
| null | https://raw.githubusercontent.com/mirage/index/fe5e962534d192389484ecc63a25e4ab4668a2f0/src/unix/import.ml | ocaml | module Int63 = Optint.Int63
type int63 = Int63.t
| |
a2ec05e14cd44c47f26067093c782bf02564230b619c05f81876067e0966b681 | mbj/stratosphere | SecurityPolicy.hs | module Stratosphere.OpenSearchServerless.SecurityPolicy (
SecurityPolicy(..), mkSecurityPolicy
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SecurityPolicy
= Se... | null | https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/opensearchserverless/gen/Stratosphere/OpenSearchServerless/SecurityPolicy.hs | haskell | module Stratosphere.OpenSearchServerless.SecurityPolicy (
SecurityPolicy(..), mkSecurityPolicy
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SecurityPolicy
= Se... | |
97aba27ba26488490241aa40658eb2c992ae402544b1f98478c0357afa5a9f8c | keigoi/ocaml-mpst | actionInp.ml | module Context = State.Context
open Rows
type tag = int
type 'var branch_ = (tag DynChan.endpoint * 'var InpChoice.t list) Lazy.t
type 'var branch = 'var branch_ Lin.lin
let make_branch0 constr name s =
Lazy.from_val (name, [ InpChoice.make constr s ])
let branch_op0 (type vars) : vars branch_ State.op =
let mod... | null | https://raw.githubusercontent.com/keigoi/ocaml-mpst/cfd1bda8f0cb426054d2c5b2f10f67907175edfc/lib/unicast/actionInp.ml | ocaml | module Context = State.Context
open Rows
type tag = int
type 'var branch_ = (tag DynChan.endpoint * 'var InpChoice.t list) Lazy.t
type 'var branch = 'var branch_ Lin.lin
let make_branch0 constr name s =
Lazy.from_val (name, [ InpChoice.make constr s ])
let branch_op0 (type vars) : vars branch_ State.op =
let mod... | |
9dc2e75723f1e9e8618f1670731faecf4d240b57d5a85831ee4660e44d7fdf52 | borkdude/quickdoc | api.cljc | (ns quickdoc.api
"API namespace for quickdoc."
(:require
#?(:bb [babashka.pods :as pods]
:clj [clj-kondo.core :as clj-kondo])
[clojure.java.io :as io]
[quickdoc.impl :as impl]))
#?(:bb
(or (try (requiring-resolve 'pod.borkdude.clj-kondo/run!)
pod is loaded via bb.edn
(pods/load-pod 'clj-... | null | https://raw.githubusercontent.com/borkdude/quickdoc/db8eaf845dd32388c63374f57f27f493f3dfee31/src/quickdoc/api.cljc | clojure | (ns quickdoc.api
"API namespace for quickdoc."
(:require
#?(:bb [babashka.pods :as pods]
:clj [clj-kondo.core :as clj-kondo])
[clojure.java.io :as io]
[quickdoc.impl :as impl]))
#?(:bb
(or (try (requiring-resolve 'pod.borkdude.clj-kondo/run!)
pod is loaded via bb.edn
(pods/load-pod 'clj-... | |
97d2abb880d46d4679d0f66b670b68cb3ebf4264e79bf4e26a8d8277b4fbb48f | emqx/emqx | emqx_placeholder.erl | %%--------------------------------------------------------------------
Copyright ( c ) 2021 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy o... | null | https://raw.githubusercontent.com/emqx/emqx/a7fc5e8fe19a881e64309baea9cf58422ecd3a68/apps/emqx_plugin_libs/src/emqx_placeholder.erl | erlang | --------------------------------------------------------------------
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ... | Copyright ( c ) 2021 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(emqx_placeholder).
-export([
preproc_tmpl/1,
preproc_tmpl/2,
proc_tmpl/2,
... |
714e375755638bd004b5975da9178280c2bb69f5a43e0dabd1fb8a9085f165c0 | bmeurer/ocaml-arm | sieve.ml | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
, projet ... | null | https://raw.githubusercontent.com/bmeurer/ocaml-arm/43f7689c76a349febe3d06ae7a4fc1d52984fd8b/testsuite/tests/misc/sieve.ml | ocaml | *********************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the Q Public License version 1.0 .
$ Id$
Eratosthene 's sieve
inte... |
d36ad89c07378a7707c9773431bd0064ffff2c3b5e84acfc38680d62d0318a8d | samrushing/irken-tdfa | hopcroft.scm | ;; -*- Mode: Irken -*-
;; #Hopcroft.27s_algorithm
;;
;; map from a key to a [mutable] cell value.
(define (cellmap/make cmp default)
{map=(tree/empty) cmp=cmp default=default}
)
(define (cellmap/get m key)
(match (tree/member m.map m.cmp key) with
(maybe:yes cell) -> cell
(maybe:no)
-> (let ((cell... | null | https://raw.githubusercontent.com/samrushing/irken-tdfa/ff56945e371ba7afec884f98a17f291cab083637/hopcroft.scm | scheme | -*- Mode: Irken -*-
#Hopcroft.27s_algorithm
map from a key to a [mutable] cell value.
"let X be the set of states ..."
where <sym> is a member of <alphabet> computed by
partition-symbols.
map := key -> (set int))
partition all symbols into distinct subsets.
[think of this as an optimized version of the... |
(define (cellmap/make cmp default)
{map=(tree/empty) cmp=cmp default=default}
)
(define (cellmap/get m key)
(match (tree/member m.map m.cmp key) with
(maybe:yes cell) -> cell
(maybe:no)
-> (let ((cell {val=m.default}))
(tree/insert! m.map m.cmp key cell)
cell)))
The Xmap is used to answer t... |
f461cb3a1c98f4035c5e0b62282d510dd41c4a3f6be83985d022d073586293f5 | returntocorp/semgrep | token_helpers_ruby.mli | val is_eof : Parser_ruby.token -> bool
val is_comment : Parser_ruby.token -> bool
val info_of_tok : Parser_ruby.token -> Parse_info.t
val visitor_info_of_tok :
(Parse_info.t -> Parse_info.t) -> Parser_ruby.token -> Parser_ruby.token
| null | https://raw.githubusercontent.com/returntocorp/semgrep/00f1e67bbb80f00e29db3381288fc00398b6868a/languages/ruby/dyp/token_helpers_ruby.mli | ocaml | val is_eof : Parser_ruby.token -> bool
val is_comment : Parser_ruby.token -> bool
val info_of_tok : Parser_ruby.token -> Parse_info.t
val visitor_info_of_tok :
(Parse_info.t -> Parse_info.t) -> Parser_ruby.token -> Parser_ruby.token
| |
85fd4341475e1ca8ae855710b5f7fcadf0728893e3c8bcf62a8efd9d176c3c0b | LCBH/UKano | pitransl.ml | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* Cryptographic protocol verifier *
* *
... | null | https://raw.githubusercontent.com/LCBH/UKano/13c046ddaca48b45d3652c3ea08e21599e051527/proverif2.01/src/pitransl.ml | ocaml | Information computed by [transl], to add to the [pi_state]
Variables local to this module, used to store elements of the t_horn_state we are going to return
* Indicates the number of rules created
* List of the rules created
List of precise action events used
For key compromise
For non-interference
Check t... | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* Cryptographic protocol verifier *
* *
... |
dbaa62dfdaeac431a25230fdc3a0dd66ca25e0453f25cc9cbaa69bc7edf36ebc | clojure/clojurescript | transit.clj | Copyright 2014 . All Rights Reserved .
;;
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; -2.0
;;
;; Unless required by applicable law or agreed to in writing, software
... | null | https://raw.githubusercontent.com/clojure/clojurescript/e30e26dbd221b5d7c4bbc567d10d0c3c01cf5f98/src/main/clojure/cljs/vendor/cognitect/transit.clj | clojure |
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing pe... | Copyright 2014 . All Rights Reserved .
distributed under the License is distributed on an " AS - IS " BASIS ,
(ns cljs.vendor.cognitect.transit
"An implementation of the transit-format for Clojure built
on top of the transit-java library."
(:refer-clojure :exclude [read])
(:require [clojure.string :as s... |
141226200e77119d85aeb98962e0dbe927a06b0dc69e01284bc8d586f5a9a101 | unnohideyuki/bunny | sample214.hs | main = do print $ subtract 3 5
print $ subtract 3 (5 :: Int)
print $ subtract (3 :: Double) 5
print $ even 5
print $ odd 3
| null | https://raw.githubusercontent.com/unnohideyuki/bunny/501856ff48f14b252b674585f25a2bf3801cb185/compiler/test/samples/sample214.hs | haskell | main = do print $ subtract 3 5
print $ subtract 3 (5 :: Int)
print $ subtract (3 :: Double) 5
print $ even 5
print $ odd 3
| |
139fb502ed72a4ebe5f5c5e0eba37087a7c28f6a9dc5a98404aa22e586de7d9b | tweag/ormolu | unnamed-field-comment-3.hs | data A = A {- | a number -} Int Bool
| null | https://raw.githubusercontent.com/tweag/ormolu/13f11d0eb39f6902af5221898a8cd1e9c222e836/data/examples/declaration/data/unnamed-field-comment-3.hs | haskell | | a number | |
b42bc94d985d52fe646e01966e7ac2e0097dcde646920f79a45fe3e8b7537edb | korya/efuns | gradients.mli | val gradient_levels : int Options.option_record
val hexs : char array
val hex1 : int -> char
val hex0 : int -> char
val gen_file : char -> int -> int -> int -> int -> int -> int -> string
val rgb : string -> int * int * int
val make_vgradient : string -> string -> string
val make_hgradient : string -> string -> string
... | null | https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/gwml/gradients.mli | ocaml | val gradient_levels : int Options.option_record
val hexs : char array
val hex1 : int -> char
val hex0 : int -> char
val gen_file : char -> int -> int -> int -> int -> int -> int -> string
val rgb : string -> int * int * int
val make_vgradient : string -> string -> string
val make_hgradient : string -> string -> string
... | |
c1f20a6b83425b7c66f0cb15109875a21561ade62343d4f3d92868c6a1b25cae | Gbury/dolmen | flow.ml |
(* Types *)
(* ************************************************************************ *)
type header_mode =
| Lang_Version
| Problem_Logic
| Problem_Source
| Problem_License
| Problem_Category
| Problem_Status
type solve_mode =
| Assert
| Sat_or_unsat
type mode =
| Start of { expect : header_mod... | null | https://raw.githubusercontent.com/Gbury/dolmen/55566c8db8a9c7636743b49a8c0bfaa061bbeb0c/src/loop/flow.ml | ocaml | Types
************************************************************************ |
type header_mode =
| Lang_Version
| Problem_Logic
| Problem_Source
| Problem_License
| Problem_Category
| Problem_Status
type solve_mode =
| Assert
| Sat_or_unsat
type mode =
| Start of { expect : header_mode; }
| Solve of { current : solve_mode; stack_depth : int; }
| Exited
|
aed18e8ba5960f8313719d522771a6fa086062163079e3238d3a52399677fd3c | eudoxia0/lucerne | app.lisp | (in-package :cl-user)
(defpackage lucerne.app
(:use :cl :trivial-types :cl-annot)
(:export :prefix-mount
:prefix
:base-app
:<app>
:routes
:middlewares
:sub-apps
:handler
:register
:use
:build-app
... | null | https://raw.githubusercontent.com/eudoxia0/lucerne/7037f2c20d5bbf7a789bd9fe2e85eb1ed3ef247c/src/app.lisp | lisp | Internals
Application definition
Use the middlewares
The middleware is a list, so we splice in a make-instance
The middleware is just a class name with no arguments
Register the sub-applications | (in-package :cl-user)
(defpackage lucerne.app
(:use :cl :trivial-types :cl-annot)
(:export :prefix-mount
:prefix
:base-app
:<app>
:routes
:middlewares
:sub-apps
:handler
:register
:use
:build-app
... |
36863e330aa0945e68749ce4dd5b182844d261ba1fbcc5a468456205bcd2c16a | juspay/atlas | Search.hs | |
Copyright 2022 Juspay Technologies Pvt Ltd
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
you may not use this file except in compliance with the License .
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing , software
dis... | null | https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/public-transport-bap/src/Core/Spec/API/Search.hs | haskell | |
Copyright 2022 Juspay Technologies Pvt Ltd
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
you may not use this file except in compliance with the License .
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing , software
dis... | |
3ab72430f36b60ad66a25161f8b7d54e7b2026b1f6f79094c9986c1f5bd78f98 | vaibhavsagar/experiments | Battleship.hs | # LANGUAGE ScopedTypeVariables #
module Battleship where
import Control.Applicative ((<|>))
import Control.Monad (replicateM)
import Control.Monad.Trans.State.Strict
import Data.Bool (bool)
import System.Random (randomRIO)
import qualified Data... | null | https://raw.githubusercontent.com/vaibhavsagar/experiments/378d7ba97eabfc7bbeaa4116380369ea6612bfeb/battleship/Battleship.hs | haskell | # LANGUAGE ScopedTypeVariables #
module Battleship where
import Control.Applicative ((<|>))
import Control.Monad (replicateM)
import Control.Monad.Trans.State.Strict
import Data.Bool (bool)
import System.Random (randomRIO)
import qualified Data... | |
2d5be24d1f725661fde3cdf8820b4a69958114d1aa40ee68676882f71405717a | sebastian-philipp/r-tree | RTreeProperties.hs | # LANGUAGE FlexibleInstances #
module Main
(
main
)
where
import Data.RTree.Base
import Data.RTree.MBB hiding (mbb)
-- import qualified Data.Set as S
import Prelude hiding (lookup, map, null, length)
import Data.Binary (encode, decode)
import ... | null | https://raw.githubusercontent.com/sebastian-philipp/r-tree/547c6fbda8827d8f17b3daaae3b7c9437664052a/test/RTreeProperties.hs | haskell | import qualified Data.Set as S
todo: write tests
, testProperty "map a StringMap" prop_map
------------------------
------------------------
------------------------
todo order irrelevant
todo order irrelevant
tu_2
shrink to subterms
recursively shrink subterms
------------------------- | # LANGUAGE FlexibleInstances #
module Main
(
main
)
where
import Data.RTree.Base
import Data.RTree.MBB hiding (mbb)
import Prelude hiding (lookup, map, null, length)
import Data.Binary (encode, decode)
import Data.Function (on)
impor... |
f9a09ec9719e2bd3c26c6616d94d4b128e2a64892c1788cece48e811bacd0a82 | thizanne/cormoran | operation.ml | open Batteries
type t =
| Identity
| MFence
| Filter of TypedAst.program_condition
| Assign :
't TypedAst.program_var *
't TypedAst.program_expression ->
t
let compare = Pervasives.compare
let print output = function
| Identity -> String.print output "Identity"
| MFence -> String.prin... | null | https://raw.githubusercontent.com/thizanne/cormoran/46d13330ebd1c8224a0603fd473d8e6bed48bf53/src/operation.ml | ocaml | open Batteries
type t =
| Identity
| MFence
| Filter of TypedAst.program_condition
| Assign :
't TypedAst.program_var *
't TypedAst.program_expression ->
t
let compare = Pervasives.compare
let print output = function
| Identity -> String.print output "Identity"
| MFence -> String.prin... | |
dbec70aabc602600c8159574227cd2bbfbbf9bb97bc9f921509de2faf0d17e66 | tschady/advent-of-code | d25_test.clj | (ns aoc.2021.d25-test
(:require [aoc.2021.d25 :as sut]
[clojure.test :refer :all]))
(deftest challenges
(is (= 429 (sut/part-1 sut/input))))
| null | https://raw.githubusercontent.com/tschady/advent-of-code/b341890ee6ad6a205df127f8cd6699c0e73c3b6c/test/aoc/2021/d25_test.clj | clojure | (ns aoc.2021.d25-test
(:require [aoc.2021.d25 :as sut]
[clojure.test :refer :all]))
(deftest challenges
(is (= 429 (sut/part-1 sut/input))))
| |
05e2ded82aa34ba4265f3a9b92f52f8355a55684d44267d6603bb2ff887b0411 | Clojure2D/clojure2d-examples | randomwalklevy.clj | (ns examples.NOC.introduction.randomwalklevy
(:require [clojure2d.core :refer :all]
[fastmath.core :as m]
[fastmath.random :as r]))
(set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
(defn montecarlo-fn
""
^double []
(let [r1 (r/drand)
probability (m/pow (-... | null | https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/9de82f5ac0737b7e78e07a17cf03ac577d973817/src/NOC/introduction/randomwalklevy.clj | clojure | (ns examples.NOC.introduction.randomwalklevy
(:require [clojure2d.core :refer :all]
[fastmath.core :as m]
[fastmath.random :as r]))
(set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
(defn montecarlo-fn
""
^double []
(let [r1 (r/drand)
probability (m/pow (-... | |
8f575f047f7ef336040163eba4e391fa6ee7eec529e1cc356c954027fb6c1f52 | mrossini-ethz/physical-quantities | operations-test.lisp | (in-package :pq)
(define-test operations-test ()
(check
;; Addition, no args
(qtest (q+) :value 0 :error 0 :unit nil)
;; Addition, unitless
(qtest (q+ 2 -3) :value -1 :error 0 :unit nil)
;; Addition, a: quantity, b: real
(qtest (q+ #q(2) -3) :value -1)
(condition= (q+ #q(2 m) -3) invalid-... | null | https://raw.githubusercontent.com/mrossini-ethz/physical-quantities/348827f0632eb5bd14b378dab4e47bb6e3102f70/test/operations-test.lisp | lisp | Addition, no args
Addition, unitless
Addition, a: quantity, b: real
Addition, a: real, b: quantity
Addition, exactly same units
Addition, same units, different prefixes
Addition, different units
Subtraction, real numbers
Subtraction, a: quantity, b: real
Subtraction, a: quantity, b: real
Subtraction, exactly... | (in-package :pq)
(define-test operations-test ()
(check
(qtest (q+) :value 0 :error 0 :unit nil)
(qtest (q+ 2 -3) :value -1 :error 0 :unit nil)
(qtest (q+ #q(2) -3) :value -1)
(condition= (q+ #q(2 m) -3) invalid-unit-conversion-error)
(qtest (q+ 2 #q(-3)) :value -1)
(condition= (q+ 2 #q(-3 m)... |
36d50ba83fbdb31b6135622e2792a0c9ccb3556c78e110729999c53ef4d04273 | atlas-engineer/closure | fonts.lisp | ;;; -*- Mode: Lisp; Syntax: Common-Lisp; Package: RENDERER; -*-
;;; ---------------------------------------------------------------------------
;;; Title: Abstract Font Database Interface
Created : 1998 - 09 - 11
Author : < >
License : MIT style ( see below )
;;; -----------------------------------... | null | https://raw.githubusercontent.com/atlas-engineer/closure/539ce81dbcb5fb46e19818a9bb35eeaf86042219/src/renderer/fonts.lisp | lisp | -*- Mode: Lisp; Syntax: Common-Lisp; Package: RENDERER; -*-
---------------------------------------------------------------------------
Title: Abstract Font Database Interface
---------------------------------------------------------------------------
Permission is hereby granted, free of charge, to any pers... | Created : 1998 - 09 - 11
Author : < >
License : MIT style ( see below )
( c ) copyright 1998 - 2003 by
" Software " ) , to deal in the Software without restriction , including
distribute , sublicense , and/or sell copies of the Software , and to
permit persons to whom the Software is furn... |
da09a1b147a2ce4cf683904053d96bf5dd0cc9acc40bf1576a9101dc8026a724 | clojurecademy/clojurecademy | multipart_params.clj | (ns clojurecademy.middleware.multipart-params
"Middleware that parses multipart request bodies into parameters.
This middleware is necessary to handle file uploads from web browsers.
Ring comes with two different multipart storage engines included:
ring.middleware.multipart-params.byte-array/byte-array-sto... | null | https://raw.githubusercontent.com/clojurecademy/clojurecademy/97dc7f9b91a90a3f30ca5a3de88542c90a50ce01/src/clj/clojurecademy/middleware/multipart_params.clj | clojure | (ns clojurecademy.middleware.multipart-params
"Middleware that parses multipart request bodies into parameters.
This middleware is necessary to handle file uploads from web browsers.
Ring comes with two different multipart storage engines included:
ring.middleware.multipart-params.byte-array/byte-array-sto... | |
5ad18fcd3e6cd8e22984b0749bce3be09b93352f89ee9547ea796430d63bfeae | informatimago/lisp | float-binio.lisp | -*- mode : lisp ; coding : utf-8 -*-
;;;;****************************************************************************
;;;;FILE: float-binio.lisp
;;;;LANGUAGE: Common-Lisp
;;;;SYSTEM: Common-Lisp
USER - INTERFACE :
;;;;DESCRIPTION
;;;;
;;;; This package encodes and decodes ... | null | https://raw.githubusercontent.com/informatimago/lisp/571af24c06ba466e01b4c9483f8bb7690bc46d03/common-lisp/cesarum/float-binio.lisp | lisp | coding : utf-8 -*-
****************************************************************************
FILE: float-binio.lisp
LANGUAGE: Common-Lisp
SYSTEM: Common-Lisp
DESCRIPTION
This package encodes and decodes arrays of float into arrays
Handling of SHORT-FLOAT and LONG-FLOAT ... | USER - INTERFACE :
of signed - byte 32 in order to do binary I / O.
< PJB > < >
MODIFICATIONS
2003 - 06 - 05 < PJB > Created .
AGPL3
Copyright 2003 - 2016
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation , either v... |
7e90cee45dec7e0bde4693102fb93f0d30e2c0977b3e5162d9bb149e22f70a5a | midas-framework/midas | process_native.erl | -module(process_native).
-export([spawn_link/1, do_receive/1, identity/1, receive_reply/2, process_flag/1]).
spawn_link(Run) ->
erlang:spawn_link(fun () ->
Run(fun (Wait) ->
do_receive(Wait)
end)
end).
do_receive({milliseconds, Milliseconds}) ->
do_receive(Milliseconds);
do_receive(Wait)... | null | https://raw.githubusercontent.com/midas-framework/midas/1097a06eef0461c385edd4711bfff104fc396817/src/process/process_native.erl | erlang | -module(process_native).
-export([spawn_link/1, do_receive/1, identity/1, receive_reply/2, process_flag/1]).
spawn_link(Run) ->
erlang:spawn_link(fun () ->
Run(fun (Wait) ->
do_receive(Wait)
end)
end).
do_receive({milliseconds, Milliseconds}) ->
do_receive(Milliseconds);
do_receive(Wait)... | |
57f8ffb4d240013063b8487d93b35c50bc1f2c8500943119a53cc1e50942709b | CryptoKami/cryptokami-core | Accounts.hs | module Cryptokami.Wallet.API.V1.Handlers.Accounts (
handlers
) where
import Universum
import Cryptokami.Wallet.API.Request
import Cryptokami.Wallet.API.Response
import qualified Cryptokami.Wallet.API.V1.Accounts as Accounts
import Cryptokami.Wallet.API.V1.Migration
im... | null | https://raw.githubusercontent.com/CryptoKami/cryptokami-core/12ca60a9ad167b6327397b3b2f928c19436ae114/wallet-new/server/Cryptokami/Wallet/API/V1/Handlers/Accounts.hs | haskell | module Cryptokami.Wallet.API.V1.Handlers.Accounts (
handlers
) where
import Universum
import Cryptokami.Wallet.API.Request
import Cryptokami.Wallet.API.Response
import qualified Cryptokami.Wallet.API.V1.Accounts as Accounts
import Cryptokami.Wallet.API.V1.Migration
im... | |
a9e1b9d902571f471059ed6bc7801597b1f37d4fc7846fe81caf5f56f26bc171 | Ericson2314/lighthouse | SrcDist.hs | {-# OPTIONS -cpp #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Simple.SrcDist
Copyright : 2004
--
Maintainer : < >
-- Stability : alpha
-- Portability : portable
--
-- Implements the \"@.\/setup sdist@\" command, which create... | null | https://raw.githubusercontent.com/Ericson2314/lighthouse/210078b846ebd6c43b89b5f0f735362a01a9af02/ghc-6.8.2/libraries/Cabal/Distribution/Simple/SrcDist.hs | haskell | # OPTIONS -cpp #
---------------------------------------------------------------------------
|
Module : Distribution.Simple.SrcDist
Stability : alpha
Portability : portable
Implements the \"@.\/setup sdist@\" command, which creates a source
distribution for this package. That is, packs up the source... | Copyright : 2004
Maintainer : < >
Copyright ( c ) 2003 - 2004 ,
All rights reserved .
Redistribution and use in source and binary forms , with or without
modification , are permitted provided that the following conditions are
met :
* Redistributions of source code must retain the ... |
4a3ad0c50c4aa67bad84ae485d034f70bbd5b848d2d17cef9862aa819e076152 | binsec/binsec | bbsse_options.mli | (**************************************************************************)
This file is part of BINSEC .
(* *)
Copyright ( C ) 2016 - 2022
CEA ( Co... | null | https://raw.githubusercontent.com/binsec/binsec/8ed9991d36451a3ae7487b966c4b38acca21a5b3/src/bbsse/bbsse_options.mli | ocaml | ************************************************************************
alternatives)
you can redistribute it an... | This file is part of BINSEC .
Copyright ( C ) 2016 - 2022
CEA ( Commissariat à l'énergie atomique et aux énergies
Lesser General Public License as published by the Free Software
Foundation , ve... |
ba728e34c238d875f6a996cd1329d7084d6f68e5797557ed951c0d8010c50974 | pjagielski/disclojure-ui | model.clj | (ns disclojure-ui.model
(:require [schema.core :as s]))
(s/defschema PlayNote
{:instr String
:duration Double
:note Integer})
(s/defschema PlayBeat
{:drum String})
(def MutationType (s/enum :add :remove))
(s/defschema TrackMutation
{:part String
:time Number
:pitch Long
:dur... | null | https://raw.githubusercontent.com/pjagielski/disclojure-ui/327d2af8f5a904e4ad66f79dc1682d5d79bea0d2/src/clj/disclojure_ui/model.clj | clojure | (ns disclojure-ui.model
(:require [schema.core :as s]))
(s/defschema PlayNote
{:instr String
:duration Double
:note Integer})
(s/defschema PlayBeat
{:drum String})
(def MutationType (s/enum :add :remove))
(s/defschema TrackMutation
{:part String
:time Number
:pitch Long
:dur... | |
59dee82bdab54a3828b1ad021f999799e5af275debdbcd13339d12a71d959b1a | michalkonecny/aern2 | Limit.hs | # OPTIONS_GHC -Wno - orphans #
# LANGUAGE DataKinds #
# LANGUAGE PolyKinds #
{-# LANGUAGE RankNTypes #-}
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE StandaloneDeriving #
|
Module : AERN2.MP.WithCurrentPrec . Limit
Description : WithCurrentPrec limits
Copyright : ( c ) : ... | null | https://raw.githubusercontent.com/michalkonecny/aern2/fddfdee61014a60a48899d779906768bc032fe35/aern2-mp/src/AERN2/MP/WithCurrentPrec/Limit.hs | haskell | # LANGUAGE RankNTypes #
import Text.Printf
import qualified Numeric.CollectErrors as CN | # OPTIONS_GHC -Wno - orphans #
# LANGUAGE DataKinds #
# LANGUAGE PolyKinds #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE StandaloneDeriving #
|
Module : AERN2.MP.WithCurrentPrec . Limit
Description : WithCurrentPrec limits
Copyright : ( c ) : :
Stability ... |
38770482b587bb34dd629817051958f0c6ef1da1f33bc6adb5fe5b1c93d426ea | discus-lang/ddc | OpPrim.hs |
module DDC.Core.Flow.Prim.OpPrim
( typePrimCast
, typePrimArith
, typePrimVec
-- * Compounds
, xvRep
, xvProj
, xvGather
, xvScatter)
where
import DDC.Core.Flow.Prim.TyConPrim
import DDC.Core.Flow.Prim.TyConFlow
import DDC.Core.Flow.Prim.KiConFlow
impo... | null | https://raw.githubusercontent.com/discus-lang/ddc/2baa1b4e2d43b6b02135257677671a83cb7384ac/src/s1/ddc-core-flow/DDC/Core/Flow/Prim/OpPrim.hs | haskell | * Compounds
| Take the type of a primitive cast.
| Take the type of a primitive arithmetic operator.
Numeric
| Take the type of a primitive vector operator.
Compounds ------------------------------------------------------------------
Utils ----------------------------------------------------------------------- |
module DDC.Core.Flow.Prim.OpPrim
( typePrimCast
, typePrimArith
, typePrimVec
, xvRep
, xvProj
, xvGather
, xvScatter)
where
import DDC.Core.Flow.Prim.TyConPrim
import DDC.Core.Flow.Prim.TyConFlow
import DDC.Core.Flow.Prim.KiConFlow
import DDC.Core.Flow.Prim.Bas... |
def1c43cf0da424fe363fd0a58058fd6085292656c0c57d3f274bf3ebd003525 | craigl64/clim-ccl | ol-callbacks.lisp | ;; -*- mode: common-lisp; package: tk -*-
;; See the file LICENSE for the full license governing this code.
;;
(in-package :tk)
;; We have to dispatch on the callback reason
from OlReasons.h
(defvar *ol-callback-reasons* '(
(:none 0)
(:expose 1)
(:graphics_expose ... | null | https://raw.githubusercontent.com/craigl64/clim-ccl/301efbd770745b429f2b00b4e8ca6624de9d9ea9/tk/ol-callbacks.lisp | lisp | -*- mode: common-lisp; package: tk -*-
See the file LICENSE for the full license governing this code.
We have to dispatch on the callback reason
I dunno why this works but it does
80000004 |
(in-package :tk)
from OlReasons.h
(defvar *ol-callback-reasons* '(
(:none 0)
(:expose 1)
(:graphics_expose 2)
(:resize 3)
(:dnd_preview 4)
(:dnd_trigger 5)
(:dnd_ownselection 6)
(:dnd_animate 7)... |
5528c984c58f69285730a057d5dbd071ed270cd1cb77c016ef2b49914e89075a | racket/typed-racket | toplevel-redefinition.rkt | #lang racket/load
;; Test that variable redefinition works at the top-level
(require typed/racket)
(: x Integer)
(define x 3)
(define x 5)
| null | https://raw.githubusercontent.com/racket/typed-racket/0236151e3b95d6d39276353cb5005197843e16e4/typed-racket-test/succeed/toplevel-redefinition.rkt | racket | Test that variable redefinition works at the top-level | #lang racket/load
(require typed/racket)
(: x Integer)
(define x 3)
(define x 5)
|
341c6f4f4dfb29d3a5ecde9d1cbb60e0a86735100c079a0aaa6fa2c94296c734 | slyrus/mcclim-old | editing.lisp | ;;; -*- Mode: Lisp; Package: DREI-EDITING; -*-
( c ) copyright 2004 - 2005 by
( )
( c ) copyright 2004 - 2005 by
( )
( c ) copyright 2005 by
( )
( c ) copyright 2005 by
( )
( c ) copyright 2006 by
( )
;;; This library is free so... | null | https://raw.githubusercontent.com/slyrus/mcclim-old/354cdf73c1a4c70e619ccd7d390cb2f416b21c1a/Drei/editing.lisp | lisp | -*- Mode: Lisp; Package: DREI-EDITING; -*-
This library is free software; you can redistribute it and/or
either
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Licens... |
( c ) copyright 2004 - 2005 by
( )
( c ) copyright 2004 - 2005 by
( )
( c ) copyright 2005 by
( )
( c ) copyright 2005 by
( )
( c ) copyright 2006 by
( )
modify it under the terms of the GNU Library General Public
version 2 ... |
071d71b5fb099208948c6af348caf13f8d0d34fbc8db793a88c2434311e93b64 | input-output-hk/project-icarus-importer | BinarySpec.hs | | This module tests Binary instances for ' Pos . BlockchainImporter ' types .
module Test.Pos.BlockchainImporter.Identity.BinarySpec
( spec
) where
import Universum
import Test.Hspec (Spec, describe)
import Pos.Arbitrary.BlockchainImporter ()
import Pos.Blockc... | null | https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/blockchain-importer/test/Test/Pos/BlockchainImporter/Identity/BinarySpec.hs | haskell | | This module tests Binary instances for ' Pos . BlockchainImporter ' types .
module Test.Pos.BlockchainImporter.Identity.BinarySpec
( spec
) where
import Universum
import Test.Hspec (Spec, describe)
import Pos.Arbitrary.BlockchainImporter ()
import Pos.Blockc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.