_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 |
|---|---|---|---|---|---|---|---|---|
0bb0998ef53643d396c35795242d6b4bffd045de3673a38a0e4e50c1d46f0dcd | sebnow/haskell-network-address | IP.hs | # LANGUAGE FlexibleInstances #
module Test.Data.Network.Address.IP (tests) where
import Data.Bits (shift)
import Data.Char (isDigit, isHexDigit)
import Data.List (intercalate, isPrefixOf)
import Data.Network.Address.IP
import Data.Word
import Numeric (showHex)
import Test.Framework
import Test.Framework.Providers.Quick... | null | https://raw.githubusercontent.com/sebnow/haskell-network-address/9c5cffec6f43cc0d2fef8d12b3b123a27e879ed9/Test/Data/Network/Address/IP.hs | haskell | |Returns the indices of all sublists. | # LANGUAGE FlexibleInstances #
module Test.Data.Network.Address.IP (tests) where
import Data.Bits (shift)
import Data.Char (isDigit, isHexDigit)
import Data.List (intercalate, isPrefixOf)
import Data.Network.Address.IP
import Data.Word
import Numeric (showHex)
import Test.Framework
import Test.Framework.Providers.Quick... |
e68d4d743d5c67b373202aed84c2a040be63f84987f81d0adc26904599783276 | tek/ribosome | WithCursor.hs | module Ribosome.Menu.Data.WithCursor where
import Ribosome.Menu.Data.CursorIndex (CursorIndex)
data WithCursor s =
WithCursor {
state :: s,
cursor :: CursorIndex
}
deriving stock (Eq, Show, Generic)
| null | https://raw.githubusercontent.com/tek/ribosome/8ab6fed463a10cddb8531dc333552707a60c7c96/packages/menu/lib/Ribosome/Menu/Data/WithCursor.hs | haskell | module Ribosome.Menu.Data.WithCursor where
import Ribosome.Menu.Data.CursorIndex (CursorIndex)
data WithCursor s =
WithCursor {
state :: s,
cursor :: CursorIndex
}
deriving stock (Eq, Show, Generic)
| |
cb06d55562e58b27955b3e99f344631e8107c5c16ec4a7b554a07deb17b608e5 | 8c6794b6/haskell-sc-scratch | Nodes.hs | |
Module : $ Header$
CopyRight : ( c ) 8c6794b6
License : :
Stability : unstable
Portability : portable
Module : $Header$
CopyRight : (c) 8c6794b6
License : BSD3
Maintainer :
Stability : unstable
Portability : portable
-}
module Ce22e9e.Nodes where
import Sound.SC3
imp... | null | https://raw.githubusercontent.com/8c6794b6/haskell-sc-scratch/22de2199359fa56f256b544609cd6513b5e40f43/Scratch/Misc/Ce22e9e/Nodes.hs | haskell | Tree treated as base.
Should return 'n_free 1411' from diff(t3,t5)
XXX: Reordering not working properly when updating t3 <-> t4.
Make 'n_set' message from diff(t3,t5)
| Base node
| Insert node#2002 after node#2001 from t00
| Delete node#2001 from t0
| Modified node#, insert node#2002 after node#2001 from t00
... | |
Module : $ Header$
CopyRight : ( c ) 8c6794b6
License : :
Stability : unstable
Portability : portable
Module : $Header$
CopyRight : (c) 8c6794b6
License : BSD3
Maintainer :
Stability : unstable
Portability : portable
-}
module Ce22e9e.Nodes where
import Sound.SC3
imp... |
3a1a134aa440c8ba164da3b5c3a6b79b3775899ad5b707f15721a05c0df7f700 | EveryTian/Haskell-Codewars | Garden.hs | module Garden
( Plant (..)
, defaultGarden
, garden
, lookupPlants
) where
import Data.Map (Map)
import Data.Map as M
import Data.List (sort)
import Data.Maybe (fromMaybe)
data Plant = Clover
| Grass
| Radishes
| Violets
deriving (Eq, Show)
studentsName... | null | https://raw.githubusercontent.com/EveryTian/Haskell-Codewars/dc48d95c676ce1a59f697d07672acb6d4722893b/exercism/kindergarten-garden/src/Garden.hs | haskell | module Garden
( Plant (..)
, defaultGarden
, garden
, lookupPlants
) where
import Data.Map (Map)
import Data.Map as M
import Data.List (sort)
import Data.Maybe (fromMaybe)
data Plant = Clover
| Grass
| Radishes
| Violets
deriving (Eq, Show)
studentsName... | |
29a4b1262bcdb6e2333e27179a06e8700fc64a1a75d15d8ca6e01625fe708edd | ekmett/coda | Options.hs | # language TemplateHaskell #
--------------------------------------------------------------------
-- |
Copyright : ( c ) 2017
License : BSD2
Maintainer : < >
-- Stability : experimental
-- Portability: non-portable
--
--------------------------------------------------------------------
module Cod... | null | https://raw.githubusercontent.com/ekmett/coda/bca7e36ab00036f92d94eb86298712ab1dbf9b8d/lib/coda-console/Coda/Console/Options.hs | haskell | ------------------------------------------------------------------
|
Stability : experimental
Portability: non-portable
------------------------------------------------------------------
| Options for @coda repl@ | # language TemplateHaskell #
Copyright : ( c ) 2017
License : BSD2
Maintainer : < >
module Coda.Console.Options
( ConsoleOptions(..)
, HasConsoleOptions(..)
, parseConsoleOptions
) where
import Control.Lens
import Data.Default
import Data.Monoid ((<>))
import Options.Applicative as Option... |
75120ada38e554b092c8c9574211ead49fb640b888a6e2d18636ae8fe430efde | monadbobo/ocaml-core | hashtbl_separate_chaining.ml | open Core.Std
open Core_extended . Std
module X = Table_new_intf
module Bucket = struct
(* This saves a word and an indirection vs a list of triples *)
type ('k, 'v) t =
| Empty
| Cons of 'k * 'v * int * ('k, 'v) t
let empty = Empty
let remove =
let rec loop removed compare acc t key =
match... | null | https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/lib_test/hashtbl/hashtbl_separate_chaining.ml | ocaml | This saves a word and an indirection vs a list of triples | open Core.Std
open Core_extended . Std
module X = Table_new_intf
module Bucket = struct
type ('k, 'v) t =
| Empty
| Cons of 'k * 'v * int * ('k, 'v) t
let empty = Empty
let remove =
let rec loop removed compare acc t key =
match t with
| Empty -> acc
| Cons (key', data', hashv', ne... |
3adb4f06284d04c3909467e3efdb69b6a049af697059e57d5e57f4ad5c3c0c36 | tschady/advent-of-code | d08.clj | (ns aoc.2022.d08
(:require
[aoc.file-util :as f]
[aoc.matrix :as mat]
[aoc.string-util :as s]
[clojure.core.matrix :as m]
[medley.core :refer [take-upto]]))
(def input (map s/explode-digits (f/read-lines "2022/d08.txt")))
(defn radial-vals
"Return a tuple of all matrix `m` values radiating out from... | null | https://raw.githubusercontent.com/tschady/advent-of-code/ef1c70d70dd251d4ffaaac1a018b6dcbfefed544/src/aoc/2022/d08.clj | clojure | (ns aoc.2022.d08
(:require
[aoc.file-util :as f]
[aoc.matrix :as mat]
[aoc.string-util :as s]
[clojure.core.matrix :as m]
[medley.core :refer [take-upto]]))
(def input (map s/explode-digits (f/read-lines "2022/d08.txt")))
(defn radial-vals
"Return a tuple of all matrix `m` values radiating out from... | |
0dacd230b8deb0ffa19c3839e0ba45699936ec1719b3754b2424ccc8c2003801 | tomahawkins/verilog | AST.hs | module Language.Verilog.AST
( Identifier
, Module (..)
, ModuleItem (..)
, Stmt (..)
, LHS (..)
, Expr (..)
, UniOp (..)
, BinOp (..)
, Sense (..)
, Call (..)
, PortBinding
, Case
, Range
) where
import Data.Bits
import Data.List
import Data.Maybe... | null | https://raw.githubusercontent.com/tomahawkins/verilog/5c48d9e88f70b445b53644baaafda9f75f60a5b5/Language/Verilog/AST.hs | haskell | module Language.Verilog.AST
( Identifier
, Module (..)
, ModuleItem (..)
, Stmt (..)
, LHS (..)
, Expr (..)
, UniOp (..)
, BinOp (..)
, Sense (..)
, Call (..)
, PortBinding
, Case
, Range
) where
import Data.Bits
import Data.List
import Data.Maybe... | |
78919d3a8c78f2d5b24f08b806758709e658eece6c4b8159a1116768ec659f83 | jcmincke/Blast | Interface.hs |
Copyright : ( c ) , 2016 - 2017
This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
Copyright : (c) Jean-Christophe Mincke, 2016-2017
This Source Code Form is subject to the terms o... | null | https://raw.githubusercontent.com/jcmincke/Blast/30a15c039856f78ebc15a4d3de8c9a5e1cb7efd7/src/Control/Distributed/Blast/Distributed/Interface.hs | haskell | # LANGUAGE RankNTypes #
* Types
* Class
* Functions
import Debug.Trace
| Executes a computation on the master node using the given instance of the "CommandClass" to delegate work to the slaves.
^ Configuration.
^ Job description.
^ Result : new value of the seed and the computation output. |
Copyright : ( c ) , 2016 - 2017
This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
Copyright : (c) Jean-Christophe Mincke, 2016-2017
This Source Code Form is subject to the terms o... |
3d05a7ab6d616e5dfbd603646e4ee5c86b020869611c2bb4125a687b0687db4e | craigfe/scaffold | ppx_foo.ml | open Ppxlib
let () =
Driver.register_transformation
~extensions:
[
Extension.declare "foo" Extension.Context.expression
Ast_pattern.(pstr nil)
(fun ~loc ~path:_ -> Ast_builder.Default.estring ~loc "bar");
]
"foo"
| null | https://raw.githubusercontent.com/craigfe/scaffold/000d9297958ead08cc4640c8355e341cb50c5f2a/test/blackbox-tests/ppx.t/vendor/ppx_foo.ml | ocaml | open Ppxlib
let () =
Driver.register_transformation
~extensions:
[
Extension.declare "foo" Extension.Context.expression
Ast_pattern.(pstr nil)
(fun ~loc ~path:_ -> Ast_builder.Default.estring ~loc "bar");
]
"foo"
| |
fee0db5af68d35e9a673e311e47f49bd2593e7f1d19bffd76abfe6bd7d6285d9 | binsec/binsec | mcount_main.mli | (**************************************************************************)
This file is part of BINSEC .
(* *)
Copyright ( C ) 2016 - 2022
CEA ( Co... | null | https://raw.githubusercontent.com/binsec/binsec/8ed9991d36451a3ae7487b966c4b38acca21a5b3/src/examples/mcount/mcount_main.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... |
45cecef93cfcdaff5fb143b439af59f7a2dff01a21f679260179476df3d2243c | gjz010/slowql | BTreeTableTest.hs | {-# LANGUAGE OverloadedStrings #-}
module SlowQL.Test.BTreeTableTest where
import qualified SlowQL.PageFS as FS
import qualified SlowQL.Data.LinearTable as T
import qualified SlowQL.Data.BTreeTable as BT
import qualified Data.ByteString as BS
import qualified Data.ByteString.Char8 as BC
import C... | null | https://raw.githubusercontent.com/gjz010/slowql/5e8c698eeb10222082f5fb5bf5dabd4105819c77/test/SlowQL/Test/BTreeTableTest.hs | haskell | # LANGUAGE OverloadedStrings # | module SlowQL.Test.BTreeTableTest where
import qualified SlowQL.PageFS as FS
import qualified SlowQL.Data.LinearTable as T
import qualified SlowQL.Data.BTreeTable as BT
import qualified Data.ByteString as BS
import qualified Data.ByteString.Char8 as BC
import Conduit
import qualified SlowQL.... |
4d30ab10c4ee41530ee9a949a2be9df954a0f12d18044be065f92cd224875cc7 | ocsigen/obrowser | main.ml | open Graphics;;
let _ =
Js.Node.append (Js.get_element_by_id "body") (open_graph 1000 1000) ;
fill_circle 12 12 10
let i = get_image 0 0 24 24
let (>>=) = Lwt.bind
let rec f ( ) =
Js.alert " salut " ;
Lwt_obrowser.sleep 2 . > > = f
let _ = ignore ( f ( ) )
let rec f () =
Js.alert "salut";... | null | https://raw.githubusercontent.com/ocsigen/obrowser/977c09029ea1e4fde4fb0bf92b4d893835bd9504/examples/lwt/main.ml | ocaml | open Graphics;;
let _ =
Js.Node.append (Js.get_element_by_id "body") (open_graph 1000 1000) ;
fill_circle 12 12 10
let i = get_image 0 0 24 24
let (>>=) = Lwt.bind
let rec f ( ) =
Js.alert " salut " ;
Lwt_obrowser.sleep 2 . > > = f
let _ = ignore ( f ( ) )
let rec f () =
Js.alert "salut";... | |
3936f8d9175789bce0a94a0b79ce7c4cbaca850c79708688750f63d2244ae8e7 | tolitius/obiwan | create.clj | (ns obiwan.search.command.create
(:require [obiwan.core :as oc]
[obiwan.search.command.core :as cmd]
[obiwan.tools :as t])
(:import [redis.clients.jedis JedisPool]))
;; ------------------------
;; FT.CREATE
;; ------------------------
;; FT.CREATE {index}
;; [ON {structure}]
;; ... | null | https://raw.githubusercontent.com/tolitius/obiwan/a91a40bcd310ac3c8e8c0a12e4c9ffb84ac79d41/src/obiwan/search/command/create.clj | clojure | ------------------------
FT.CREATE
------------------------
FT.CREATE {index}
[ON {structure}]
[PREFIX {count} {prefix} [{prefix} ..]
[FILTER {filter}]
[LANGUAGE {default_lang}]
[LANGUAGE_FIELD {lang_field}]
[SCORE {default_score}]
[SCORE_... | (ns obiwan.search.command.create
(:require [obiwan.core :as oc]
[obiwan.search.command.core :as cmd]
[obiwan.tools :as t])
(:import [redis.clients.jedis JedisPool]))
[ ]
[ NOFIELDS ]
[ ]
[ SKIPINITIALSCAN ]
[ STOPWORDS { num } {... |
2de38642e7194ce9544e4d6d1058355724401e0a4a50a90e68f41e06cf26bab4 | ocurrent/ocurrent | test_cache.ml | open Current.Syntax
open Lwt.Infix
let () = Driver.init_logging ()
module Builds = Map.Make(String)
module Build = struct
module Key = Current.String
module Value = Current.String
type waker = string Current.or_error Lwt.u
type t = waker Builds.t ref
let create () = ref Builds.empty
let id = "test-bu... | null | https://raw.githubusercontent.com/ocurrent/ocurrent/344af83279e9ba17f5f32d0a0351c228a6f42863/test/test_cache.ml | ocaml | This will turn off the switch. However, our test code ignores that.
Re-enable it before the old build has finished cancelling.
The original build completes, but we ignore it as cancelled and start a replacement
build.
The replacement build completes.
At this point, we've noticed that the baz operation i... | open Current.Syntax
open Lwt.Infix
let () = Driver.init_logging ()
module Builds = Map.Make(String)
module Build = struct
module Key = Current.String
module Value = Current.String
type waker = string Current.or_error Lwt.u
type t = waker Builds.t ref
let create () = ref Builds.empty
let id = "test-bu... |
12340c1bd633a5d37c745dd5f6097f0aa58411537cf7618a511c3a216f3072b0 | baskeboler/cljs-karaoke-client | user.cljs | (ns cljs-karaoke.events.user
(:require [re-frame.core :as rf]
[cljs-karaoke.events.common :as common-events]
[day8.re-frame.tracing :refer-macros [fn-traced]]))
(rf/reg-event-fx
::create-user
(fn-traced
[{:keys [db]} [_ user-name]]
(let [timestamp (.getTime (js/Date.))
user-id ... | null | https://raw.githubusercontent.com/baskeboler/cljs-karaoke-client/bb6512435eaa436d35034886be99213625847ee0/src/main/cljs_karaoke/events/user.cljs | clojure | (ns cljs-karaoke.events.user
(:require [re-frame.core :as rf]
[cljs-karaoke.events.common :as common-events]
[day8.re-frame.tracing :refer-macros [fn-traced]]))
(rf/reg-event-fx
::create-user
(fn-traced
[{:keys [db]} [_ user-name]]
(let [timestamp (.getTime (js/Date.))
user-id ... | |
1f4f27a5627eb05f7e4a5ad29680855b363027fdf40a5c4d68701db97662de74 | zcaudate-me/cronj | task.clj | (ns cronj.data.task
(:require [hara.ova :as ova]
[hara.common.error :refer [error suppress]]
[hara.common.checks :refer [hash-map?]]
[clojure.tools.logging :as log]))
(def REQUIRED-TASK-KEYS [:id :handler])
(def ALL-TASK-KEYS [:id :desc :handler :running :last-exec :last-successfu... | null | https://raw.githubusercontent.com/zcaudate-me/cronj/13f4fc394b0e96781227271094a6f077f9d051c0/src/cronj/data/task.clj | clojure | (ns cronj.data.task
(:require [hara.ova :as ova]
[hara.common.error :refer [error suppress]]
[hara.common.checks :refer [hash-map?]]
[clojure.tools.logging :as log]))
(def REQUIRED-TASK-KEYS [:id :handler])
(def ALL-TASK-KEYS [:id :desc :handler :running :last-exec :last-successfu... | |
99a5e55a5a03dc2099a4a2ae8612eb29bfd05434d31b9f09e46d498b7d8e1c9c | databrary/databrary | PaginateTest.hs | # LANGUAGE OverloadedStrings , ScopedTypeVariables #
module Model.PaginateTest where
import Hedgehog
import Hedgehog.Gen as Gen
import Hedgehog . Range as Range
import Test.Tasty.HUnit
import Model.Paginate
import Model.TypeOrphans ()
unit_paginate_succ :: Assertion
unit_paginate_succ = do
-- example
succ ... | null | https://raw.githubusercontent.com/databrary/databrary/685f3c625b960268f5d9b04e3d7c6146bea5afda/test/Model/PaginateTest.hs | haskell | example
example
example
example | # LANGUAGE OverloadedStrings , ScopedTypeVariables #
module Model.PaginateTest where
import Hedgehog
import Hedgehog.Gen as Gen
import Hedgehog . Range as Range
import Test.Tasty.HUnit
import Model.Paginate
import Model.TypeOrphans ()
unit_paginate_succ :: Assertion
unit_paginate_succ = do
succ (Paginate 1 20)... |
797d3b64fc2c8380fb4b7b9924d706604b217a1bfde7d37bef61924375773669 | portkey-cloud/aws-clj-sdk | _2014-05-15.clj | (ns portkey.aws.route53domains.-2014-05-15 (:require [portkey.aws]))
(def
endpoints
'{"us-east-1"
{:credential-scope {:service "route53domains", :region "us-east-1"},
:ssl-common-name "route53domains.us-east-1.amazonaws.com",
:endpoint "-east-1.amazonaws.com",
:signature-version :v4}})
(comment TODO ... | null | https://raw.githubusercontent.com/portkey-cloud/aws-clj-sdk/10623a5c86bd56c8b312f56b76ae5ff52c26a945/src/portkey/aws/route53domains/_2014-05-15.clj | clojure | (ns portkey.aws.route53domains.-2014-05-15 (:require [portkey.aws]))
(def
endpoints
'{"us-east-1"
{:credential-scope {:service "route53domains", :region "us-east-1"},
:ssl-common-name "route53domains.us-east-1.amazonaws.com",
:endpoint "-east-1.amazonaws.com",
:signature-version :v4}})
(comment TODO ... | |
ccd942c8197819c23fc84b9f860a79c7660e496a45350789f30b981b408caa4e | tuscland/lw-project-generator | template-variables.lisp | -*- encoding : utf-8 ; mode : LISP ; syntax : COMMON - LISP ; indent - tabs - mode : nil -*-
LispWorks Project Generator .
Copyright ( c ) 2013 , . 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.... | null | https://raw.githubusercontent.com/tuscland/lw-project-generator/21bafd22cd3fc6bb0762155df764dc5538369a9a/src/template-variables.lisp | lisp | mode : LISP ; syntax : COMMON - LISP ; indent - tabs - mode : nil -*-
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,
IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
exp... |
LispWorks Project Generator .
Copyright ( c ) 2013 , . All rights reserved .
software distributed under the License is distributed on an " AS
(in-package "COM.WILDORA.PROJECT-GENERATOR")
(clear-template-variables)
(define-template-variable product-name
"[string] User defined name for the executable pro... |
7db26b656b68fec7ffa9285ff390e51ba17ac00fa39c27baeeccd93dfac7f01a | FPBench/FPBench | test-core2c.rkt | #lang racket
(require generic-flonum)
(require "test-common.rkt" "../src/core2c.rkt" "../src/evaluator.rkt")
(define (compile->c prog ctx type test-file)
(call-with-output-file test-file #:exists 'replace
(λ (p)
(define N (if (list? (second prog)) (length (second prog)) (length (third prog))))
(fpri... | null | https://raw.githubusercontent.com/FPBench/FPBench/43a8f4854baebce88614059e4b48bcfc08d97f61/infra/test-core2c.rkt | racket | Command line | #lang racket
(require generic-flonum)
(require "test-common.rkt" "../src/core2c.rkt" "../src/evaluator.rkt")
(define (compile->c prog ctx type test-file)
(call-with-output-file test-file #:exists 'replace
(λ (p)
(define N (if (list? (second prog)) (length (second prog)) (length (third prog))))
(fpri... |
6f26279cc2ea0e2c6d0eb7f3459aaa2316ab88a3fc4f1e6ffff4d146c4b4d2fe | Helium4Haskell/helium | InstanceDictionary.hs | module Helium.CodeGeneration.InstanceDictionary where
import Lvm.Core.Expr
import Lvm.Core.Module
import Lvm.Common.Id
import Lvm.Common.Byte
import Helium.CodeGeneration.CoreUtils
import Helium.ModuleSystem.ImportEnvironment
import Helium.Syntax.UHA_Syntax
import Helium.Syntax.UHA_Utils
import Helium.Utils.Utils
... | null | https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/src/Helium/CodeGeneration/InstanceDictionary.hs | haskell | returns for every function in a class the function that retrieves that class from a dictionary
What was this doinhg here: custom' = CustomLink (idFromString "dict") (DeclKindCustom (idFromString "data"))
returns a dictionary with specific implementations for every instance
idP = idFromString "index"
check if the req... | module Helium.CodeGeneration.InstanceDictionary where
import Lvm.Core.Expr
import Lvm.Core.Module
import Lvm.Common.Id
import Lvm.Common.Byte
import Helium.CodeGeneration.CoreUtils
import Helium.ModuleSystem.ImportEnvironment
import Helium.Syntax.UHA_Syntax
import Helium.Syntax.UHA_Utils
import Helium.Utils.Utils
... |
9282c499260a8f0460f4f7072718a5e61ea8dbd5d55f3c0f0b8a6d6a23d32433 | srid/neuron | Main.hs | {-# LANGUAGE OverloadedStrings #-}
# LANGUAGE ScopedTypeVariables #
# LANGUAGE NoImplicitPrelude #
module Main where
import GHC.IO.Handle (BufferMode (LineBuffering))
import Main.Utf8 (withUtf8)
import Neuron.CLI.App (run)
import qualified Neuron.Reactor as Reactor
import Relude
import System.IO (hSetBuffering)
main... | null | https://raw.githubusercontent.com/srid/neuron/1f127b8343dbe05e057688988b289066df1cdedb/exe/Main.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE ScopedTypeVariables #
# LANGUAGE NoImplicitPrelude #
module Main where
import GHC.IO.Handle (BufferMode (LineBuffering))
import Main.Utf8 (withUtf8)
import Neuron.CLI.App (run)
import qualified Neuron.Reactor as Reactor
import Relude
import System.IO (hSetBuffering)
main :: IO ()
main = do
hSetBuffering... |
a8bcf85cd517c433293565b4193be13322e6deb7efc1ce09bafd8d4091578f8f | mfoemmel/erlang-otp | wxDataObject.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 2008 - 2009 . 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 Pub... | null | https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/wx/src/gen/wxDataObject.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 limita... | Copyright Ericsson AB 2008 - 2009 . 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(wxDataObject).
-include("wxe.hrl"... |
48146496a3d36195119a5b562580dacf471299d18ce2be6824a6852f50df3b99 | haroldcarr/learn-haskell-coq-ml-etc | X_3.hs | # OPTIONS_GHC -fno - warn - type - defaults #
# LANGUAGE PatternSynonyms #
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TypeFamilies #-}
module X_3 where
import Data.List
import Data.Map.Strict as Map
import Debug.Trace
import Test.HUnit (Counts, Test (TestList),... | null | https://raw.githubusercontent.com/haroldcarr/learn-haskell-coq-ml-etc/b4e83ec7c7af730de688b7376497b9f49dc24a0e/haskell/topic/trees-that-grow-and-shrink/2018-06-vaibhav-sagar-trees-that-shrink/X_3.hs | haskell | # LANGUAGE RankNTypes #
# LANGUAGE TypeFamilies #
----------------------------------------------------------------------------
Works with either import (one at a time, of course)
| preserves names
rewrites let bindings
| removes names
| operates on undecorated expressions
--------------------------------... | # OPTIONS_GHC -fno - warn - type - defaults #
# LANGUAGE PatternSynonyms #
module X_3 where
import Data.List
import Data.Map.Strict as Map
import Debug.Trace
import Test.HUnit (Counts, Test (TestList), runTestTT)
import qualified Test.HUnit.Util as U (tt)
imp... |
ebe5b8f7ae1bfd4622b41e251f5d7faedd27248ad625822c17decb1d3010da60 | threatgrid/clj-momo | schema_test.clj | (ns clj-momo.lib.schema-test
(:require [clj-momo.lib.schema :as sut]
[clojure.test :refer [deftest is]]
[schema.core :as s]))
(s/defschema example-schema
{:foo s/Any
(s/required-key "bar") s/Any
(s/optional-key :spam) s/Any
(s/optional-key "eggs") s/Any})
(deftest test-keys
(is ... | null | https://raw.githubusercontent.com/threatgrid/clj-momo/7bc0a411593eee4a939b6a3d0f628413518e09e2/test/clj_momo/lib/schema_test.clj | clojure | (ns clj-momo.lib.schema-test
(:require [clj-momo.lib.schema :as sut]
[clojure.test :refer [deftest is]]
[schema.core :as s]))
(s/defschema example-schema
{:foo s/Any
(s/required-key "bar") s/Any
(s/optional-key :spam) s/Any
(s/optional-key "eggs") s/Any})
(deftest test-keys
(is ... | |
df21b16aee8aebd601ec7fbf36d82fa310e4226b9b6adfec5b15d600c582a38c | mlabs-haskell/plutus-simple-model | Contract.hs | # LANGUAGE UndecidableInstances #
| Functions to create TXs and query blockchain model .
module Plutus.Model.Contract (
-- * Modify blockchain
newUser,
sendTx,
sendBlock,
sendValue,
withSpend,
submitTx,
waitNSlots,
wait,
waitUntil,
-- * Query blockchain
withMay,
withMayBy,
UserSpend (..)... | null | https://raw.githubusercontent.com/mlabs-haskell/plutus-simple-model/10000d64ede979bb1d7838b3ed20b785615910b9/psm/src/Plutus/Model/Contract.hs | haskell | * Modify blockchain
* Query blockchain
* Build TX
** Staking validators primitives
* time helpers (converts to POSIXTime milliseconds)
* testing helpers
* balance checks
----------------------------------------------------------------------
modify blockchain
| Create new user with given amount of funds.
It s... | # LANGUAGE UndecidableInstances #
| Functions to create TXs and query blockchain model .
module Plutus.Model.Contract (
newUser,
sendTx,
sendBlock,
sendValue,
withSpend,
submitTx,
waitNSlots,
wait,
waitUntil,
withMay,
withMayBy,
UserSpend (..),
getHeadRef,
spend,
spend',
noErrors,
... |
cd489a324c47323a2b8639bc40551e226d8572ef1cdd6fbc1788da0eb8bd6d25 | Frama-C/Frama-C-snapshot | wpRTE.mli | (**************************************************************************)
(* *)
This file is part of WP plug - in of Frama - C.
(* *)
Copyrigh... | null | https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/wp/wpRTE.mli | ocaml | ************************************************************************
alternatives)
... | This file is part of WP plug - in of Frama - C.
Copyright ( C ) 2007 - 2019
CEA ( Commissariat a l'energie atomique et aux energies
Lesser General Public License as published by the Free Software
Foundation ,... |
f3dd3df3a62d84e055401cbe765dc5bba006e861e12f2b1ea4da9f7b4f53fa63 | chaitanyagupta/zorm | zorm.lisp | (defpackage #:zorm
(:use #:cl-postgres #:closer-common-lisp #:s-sql)
(:import-from #:postmodern #:*database*)
(:export #:dao-class
#:dao
#:primary-key
#:dao-exists-p
#:query-dao
#:do-query-dao
#:select-dao
#:get-dao
#:do-selec... | null | https://raw.githubusercontent.com/chaitanyagupta/zorm/a9a1367e2fafd7f2d2eccb84271b587b70ce669d/zorm.lisp | lisp | why it does not exist
set the primary key
previously-finalized-p helps us distinguish between the case where we are
trying to re-finalize the class v/s race conditions
unbound. This variable propagates that state so we can protect ourselves
against it
Column slots
Mark slot as dirty
Handle NIL
If this slot is... | (defpackage #:zorm
(:use #:cl-postgres #:closer-common-lisp #:s-sql)
(:import-from #:postmodern #:*database*)
(:export #:dao-class
#:dao
#:primary-key
#:dao-exists-p
#:query-dao
#:do-query-dao
#:select-dao
#:get-dao
#:do-selec... |
9c00331940962e7eeceab074ba87aafa58fbab63ad676b09f77c5c7b87c89212 | mbutterick/typesetting | color.rkt | #lang racket/base
(require
"core.rkt"
"reference.rkt"
"page.rkt"
racket/match
racket/string)
(provide (all-defined-out))
(define (do-opacity doc [fill-arg #f] [stroke-arg #f])
(define fill-opacity (and fill-arg (bounded 0 fill-arg 1)))
(define stroke-opacity (and stroke-arg (bounded 0 stroke-arg 1)))
(... | null | https://raw.githubusercontent.com/mbutterick/typesetting/6f7a8bbc422a64d3a54cbbbd78801a01410f5c92/pitfall/pitfall/color.rkt | racket | save this for text wrapper, which needs to reset
the fill color on new pages
todo
parses color string into list of values
todo
CMYK | #lang racket/base
(require
"core.rkt"
"reference.rkt"
"page.rkt"
racket/match
racket/string)
(provide (all-defined-out))
(define (do-opacity doc [fill-arg #f] [stroke-arg #f])
(define fill-opacity (and fill-arg (bounded 0 fill-arg 1)))
(define stroke-opacity (and stroke-arg (bounded 0 stroke-arg 1)))
(... |
ae5bdf31171c62485e2fe908ef559c9c4cbfb0c9e274dd21df958027a76a0514 | den1k/subgraph | bench_runner.cljs | (ns vimsical.bench-runner
(:require [vimsical.subgraph.compare :as compare]))
(compare/bench)
| null | https://raw.githubusercontent.com/den1k/subgraph/c09097f7e105b0fd3f68f0cebcd35d7c8db99148/bench/vimsical/bench_runner.cljs | clojure | (ns vimsical.bench-runner
(:require [vimsical.subgraph.compare :as compare]))
(compare/bench)
| |
2811acb303ea72e80642231096437c5ea1859a18eaf667968dfdbd34c02f0ed1 | LexiFi/menhir | enabled_reductions.ml | (******************************************************************************)
(* *)
(* *)
... | null | https://raw.githubusercontent.com/LexiFi/menhir/794e64e7997d4d3f91d36dd49aaecc942ea858b7/attic/src/enabled_reductions.ml | ocaml | ****************************************************************************
file LICEN... |
, Paris
, PPS , Université Paris Diderot
. All rights reserved . This file is distributed under the
terms of the GNU General Public License version 2 , as... |
373040b3a79e79ff2f40f178f78dd498359a4a60bf25236c0e7ce81b9277b8a2 | Workiva/eva | var.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/v2/datastructures/var.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.v2.datastructures.var
(:require [eva.v2.datastructures.atom :refer [->PersistedAtom]]
[eva.v2.storage.value-store :as vs]
[eva.datastructures.protocols :refer [EditableBackedStr... |
e9375196f6bc3ea8f052cb52f46e69fe296204f4d6952c70dfadc38b95bb0b26 | goldfirere/video-resources | NatUnsafe.hs | # LANGUAGE StandaloneKindSignatures #
# LANGUAGE DataKinds #
{-# LANGUAGE GADTs #-}
# LANGUAGE TypeApplications #
# LANGUAGE ScopedTypeVariables #
{-# LANGUAGE RankNTypes #-}
# LANGUAGE AllowAmbiguousTypes #
# LANGUAGE TypeOperators #
# LANGUAGE PolyKinds #
module NatUnsafe (
Nat(..)
, unsafeAssumeSucc
, unsaf... | null | https://raw.githubusercontent.com/goldfirere/video-resources/9263c69a49c49b96fa3e555d5576b47470df08d9/2021-10-06-patsyns4/NatUnsafe.hs | haskell | # LANGUAGE GADTs #
# LANGUAGE RankNTypes # | # LANGUAGE StandaloneKindSignatures #
# LANGUAGE DataKinds #
# LANGUAGE TypeApplications #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE AllowAmbiguousTypes #
# LANGUAGE TypeOperators #
# LANGUAGE PolyKinds #
module NatUnsafe (
Nat(..)
, unsafeAssumeSucc
, unsafeAssumeEqual
) where
import NatSafe
import Data... |
bc495adaf85f140c76278fb5473be8e185ff33162ddd67450bd6869dcef3e6c1 | yesodweb/wai | SelectSpec.hs | # LANGUAGE CPP #
{-# LANGUAGE OverloadedStrings #-}
module Network.Wai.Middleware.SelectSpec
( main,
spec,
)
where
import Data.ByteString (ByteString)
#if __GLASGOW_HASKELL__ < 804
import Data.Monoid ((<>))
#endif
import Network.HTTP.Types (Status, status200, status401, status500)
import Network.Wai
import Ne... | null | https://raw.githubusercontent.com/yesodweb/wai/2188619168ce23468749b519a8b51debf34df02b/wai-extra/test/Network/Wai/Middleware/SelectSpec.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE CPP #
module Network.Wai.Middleware.SelectSpec
( main,
spec,
)
where
import Data.ByteString (ByteString)
#if __GLASGOW_HASKELL__ < 804
import Data.Monoid ((<>))
#endif
import Network.HTTP.Types (Status, status200, status401, status500)
import Network.Wai
import Network.Wai.Middleware.Select
import ... |
3beb0f5f762cc6e5d62265cbe0b2959b334886811e8d2136153cebe7eba09418 | nuprl/gradual-typing-performance | label.rkt | #lang typed/racket/base
;; Label implementation. Labels are like strings, but also allow for
;; efficient shared slicing.
;;
;; TODO later: see if we can generalize labels to be more than just
;; text strings. It might be useful to have them as arbitrary
;; elements, perhaps as vectors?
(define-type Elem (Vectorof... | null | https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/experimental/postmortem/experiments/adaptor/many-adaptor/suffixtree/typed/label.rkt | racket | Label implementation. Labels are like strings, but also allow for
efficient shared slicing.
TODO later: see if we can generalize labels to be more than just
text strings. It might be useful to have them as arbitrary
elements, perhaps as vectors?
label-element? object -> true
Every value is considered to be a ... | #lang typed/racket/base
(define-type Elem (Vectorof (U Char Symbol)))
(struct label ([datum : Elem] [i : Natural] [j : Natural]) #:mutable)
(define-type Label label)
(: label-element? (-> Any Boolean))
(define (label-element? obj) #t)
(: label-element-equal? (-> Any Any Boolean))
(define label-element-equal? equa... |
04f3b9f448f931243d6e5cb474506c7ef6a9c9cbf053c4b33611ae152af6e440 | Islam0mar/cl-cxx | utilities.lisp | ;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Package: CXX -*-
;;;; Basic utility functions and macros, used throughout the code.
(in-package :cxx)
(defun split-string-by (string char)
"Returns a list of substrings of string
divided by ONE + each.
Note : Two consecutive pluses will be seen as
;; if there were a... | null | https://raw.githubusercontent.com/Islam0mar/cl-cxx/e0643520eaa9313da8c79ed1f882061fa16a0bd9/src/utilities.lisp | lisp | -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Package: CXX -*-
Basic utility functions and macros, used throughout the code.
if there were an empty string between them." |
(in-package :cxx)
(defun split-string-by (string char)
"Returns a list of substrings of string
divided by ONE + each.
Note : Two consecutive pluses will be seen as
(declare (type string string))
(declare (type character char))
(remove ""
(loop for i = 0 then (1+ j)
as j = (position c... |
77c78a1eb2447ace854c6508c7ac6e512d7acb3949aca8f516dff61f007ddc8d | patrikja/AFPcourse | Parser0.hs | -- | The naive shallow embedding following the semantics, using
-- lists to implement the multisets (also called bags).
module Parser0
( P -- :: * -> * -> *
: : P s s
, pfail -- :: P s a
, (+++) -- :: P s a -> P s a -> P s a
, PSem -- :: * -> * -> *
: : P s a - > PSem s a
)... | null | https://raw.githubusercontent.com/patrikja/AFPcourse/1a079ae80ba2dbb36f3f79f0fc96a502c0f670b6/L4/src/Parser0.hs | haskell | | The naive shallow embedding following the semantics, using
lists to implement the multisets (also called bags).
:: * -> * -> *
:: P s a
:: P s a -> P s a -> P s a
:: * -> * -> *
bag = > order irrelevant
bag => order irrelevant
| We can implement parsers by their semantics (shallow embedding).
| The 'par... | module Parser0
: : P s s
: : P s a - > PSem s a
) where
import Control.Applicative (Applicative(..))
import Control.Monad (liftM, ap)
The semantics of a parser of type ' P s a ' is a function from a
string of 's ' to a multiset of results paired with the remaining
parts of the input string . We use... |
5d2d95e32345938bc30c0eaccbc1cf005657ebfb4df0be879286e4c247e1d89a | acieroid/pcesk | parallel_garbage_collection.ml | open Types
open Cesk_types
open Pcesk_types
open Garbage_collection
Parallel version of the garbage collector . Reclaim addresses that are not
* reachable from any of the state , and return the narrowed store
* reachable from any of the state, and return the narrowed store *)
let gc pstate =
let contexts = Lis... | null | https://raw.githubusercontent.com/acieroid/pcesk/f5bd9b6ad00b5d3753c79621f53825cb0e6cc3f5/pcesk/parallel_garbage_collection.ml | ocaml | open Types
open Cesk_types
open Pcesk_types
open Garbage_collection
Parallel version of the garbage collector . Reclaim addresses that are not
* reachable from any of the state , and return the narrowed store
* reachable from any of the state, and return the narrowed store *)
let gc pstate =
let contexts = Lis... | |
73beaebf42ff9731c9faebe9003706c455a29f16a54793d46d3e7d20bbe7f4df | uw-unsat/serval | logical-arithmetic-immediate.rkt | #lang racket/base
(require
"lib.rkt")
(define tests
(test-suite+ "Logical Arithmetic (two register and immediate)"
(arm32-case* [choose-reg choose-reg choose-imm12]
orr-immediate)
(arm32-case* [choose-reg choose-reg/no-r15 choose-imm12]
orrs-immediate)
(arm32-case* [choose-reg choose-imm12... | null | https://raw.githubusercontent.com/uw-unsat/serval/be11ecccf03f81b8bd0557acf8385a6a5d4f51ed/test/arm32/logical-arithmetic-immediate.rkt | racket | #lang racket/base
(require
"lib.rkt")
(define tests
(test-suite+ "Logical Arithmetic (two register and immediate)"
(arm32-case* [choose-reg choose-reg choose-imm12]
orr-immediate)
(arm32-case* [choose-reg choose-reg/no-r15 choose-imm12]
orrs-immediate)
(arm32-case* [choose-reg choose-imm12... | |
c5aed72181c2654497805aadbe146b6e299cca6532f187edb94a01a201314fe6 | joearms/paradis | router.erl | -module(router).
-compile(export_all).
start(Name) ->
register(Name, spawn(fun() ->
put(name, Name),
router()
end)).
router() ->
receive
{do,{add_route,Tag,Pid},Epid} ->
case get(Tag) of
undefined -> put(Tag, Pid);
_ -> Epid ! {eBadTag, get(name), Tag}
end;
{do, {route,... | null | https://raw.githubusercontent.com/joearms/paradis/62055b8db643926fd86c8b79f038beb9ac50916f/router.erl | erlang | -module(router).
-compile(export_all).
start(Name) ->
register(Name, spawn(fun() ->
put(name, Name),
router()
end)).
router() ->
receive
{do,{add_route,Tag,Pid},Epid} ->
case get(Tag) of
undefined -> put(Tag, Pid);
_ -> Epid ! {eBadTag, get(name), Tag}
end;
{do, {route,... | |
c3d2d7e26ffcc2c1e504ba6c733ef5d56b5b19d4540a90edae188ce857d21f52 | janestreet/ecaml | buffer0.ml | open! Core
open! Import0
include Value.Make_subtype (struct
let name = "buffer"
let here = [%here]
let is_in_subtype = Value.is_buffer
end)
let equal = eq
let generate_new_buffer = Funcall.Wrap.("generate-new-buffer" <: string @-> return t)
let create ~name = generate_new_buffer name
module Blocking = ... | null | https://raw.githubusercontent.com/janestreet/ecaml/7c16e5720ee1da04e0757cf185a074debf9088df/src/buffer0.ml | ocaml | open! Core
open! Import0
include Value.Make_subtype (struct
let name = "buffer"
let here = [%here]
let is_in_subtype = Value.is_buffer
end)
let equal = eq
let generate_new_buffer = Funcall.Wrap.("generate-new-buffer" <: string @-> return t)
let create ~name = generate_new_buffer name
module Blocking = ... | |
5b7cb334526fad7d425725c2258182c39403df398ef03a4fa5bf78e40cd4266b | kototama/picobit | test-mul.scm | ;; very simple sanity test for bignums
(define (foo x y)
(* x y))
( foo 1 3 )
TODO test with bignum - range numbers
"OK\n"
"NAH\n"))
| null | https://raw.githubusercontent.com/kototama/picobit/8bdfc092266803bc6b1151177a7e668c9b050bea/tests/test-mul.scm | scheme | very simple sanity test for bignums | (define (foo x y)
(* x y))
( foo 1 3 )
TODO test with bignum - range numbers
"OK\n"
"NAH\n"))
|
075cc34754c44baa46451f9b44931ed7d145646e5f3f41239412098c30e209fb | shayan-najd/NativeMetaprogramming | T1633.hs | # LANGUAGE FlexibleInstances #
-- This just tests what the kind error message looks like
Trac # 1633
module T1633 where
instance Functor Bool
| null | https://raw.githubusercontent.com/shayan-najd/NativeMetaprogramming/24e5f85990642d3f0b0044be4327b8f52fce2ba3/testsuite/tests/typecheck/should_fail/T1633.hs | haskell | This just tests what the kind error message looks like | # LANGUAGE FlexibleInstances #
Trac # 1633
module T1633 where
instance Functor Bool
|
0c0190a7fa462578fbfaca1d1c9855f754590e7d9b92cec857a22868cbe9be7b | ott-lang/ott | clflags.ml | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
, projet ... | null | https://raw.githubusercontent.com/ott-lang/ott/29ac9ef84967686da35b9b42608b3aec3539a689/examples/ocaml_light/hol/ocamlpp/utils/clflags.ml | ocaml | *********************************************************************
Objective Caml
... | , 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 .
$ I d : clflags.ml , v 1.1 2007/09/24... |
571810361332dcc195256747236a254a1e4af8fea8dd509c4c3c2a1309c5cb36 | donaldsonjw/bigloo | cache.scm | ;*=====================================================================*/
* serrano / prgm / project / bigloo / comptime / Type / cache.scm * /
;* ------------------------------------------------------------- */
* Author : * /
* Creation ... | null | https://raw.githubusercontent.com/donaldsonjw/bigloo/a4d06e409d0004e159ce92b9908719510a18aed5/comptime/Type/cache.scm | scheme | *=====================================================================*/
* ------------------------------------------------------------- */
* ------------------------------------------------------------- */
*=====================================================================*/
*---------------------------... | * serrano / prgm / project / bigloo / comptime / Type / cache.scm * /
* Author : * /
* Creation : We d Jan 18 11:28:43 1995 * /
* Last change : Tue Jun 17 13:53:10 2014 ( serrano ) * /
* Cop... |
5ae61df3e8aae0127dc641fa2b6643da524dca45c673629280f80a2c2e532077 | ulricha/dsh | Redundant.hs | # LANGUAGE TemplateHaskell #
# LANGUAGE OverloadedLists #
module Database.DSH.VSL.Opt.Rewrite.Redundant (removeRedundancy) where
import Control.Monad
import Database.Algebra.Dag.Common
import Database.DSH.Common.Lang
import Database.DSH.Common.Nat
import Database.DS... | null | https://raw.githubusercontent.com/ulricha/dsh/e6cd5c6bea575e62a381e89bfc4cc7cb97485106/src/Database/DSH/VSL/Opt/Rewrite/Redundant.hs | haskell | import Database.DSH.VSL.Opt.Rewrite.Window
# ANN module "HLint: ignore Reduce duplication" #
, scalarConditional
, sameInputZipProject
, sameInputZipProjectRight
, distLiftSelect
, zipConstLeft
, alignConstLeft
, zipWinRight2
, runningAggWinBounded
, runningAggWinUnbounded
, runningAggWinUnboundedG... | # LANGUAGE TemplateHaskell #
# LANGUAGE OverloadedLists #
module Database.DSH.VSL.Opt.Rewrite.Redundant (removeRedundancy) where
import Control.Monad
import Database.Algebra.Dag.Common
import Database.DSH.Common.Lang
import Database.DSH.Common.Nat
import Database.DS... |
0cf3ee1c68b82a56b1fd64f07b25547a1f251dbd27acad1d0c821132557a2c99 | janestreet/merlin-jst | mod_constr.ml | type t = String
let x = String.concat
| null | https://raw.githubusercontent.com/janestreet/merlin-jst/0152b4e8ef1b7cd0ddee2873aa1860a971585391/tests/test-dirs/locate/context-detection/cd-mod_constr.t/mod_constr.ml | ocaml | type t = String
let x = String.concat
| |
f4fecf1bd67afcd151475b6116b3a7e23396cea9a546cb1c09472d131da23984 | hjcapple/reading-sicp | exercise_3_8.scm | #lang racket
P162 - [ 练习 3.8 ]
(define f
(let ((store-value 0))
(lambda (x)
(let ((old store-value))
(set! store-value x)
old))))
;;;;;;;;;;;;;;;;;;;
模拟 ( + ( f 0 ) ( f 1 ) ) a b 两行
(define a (f 0))
(define b (f 1))
(+ a b)
| null | https://raw.githubusercontent.com/hjcapple/reading-sicp/7051d55dde841c06cf9326dc865d33d656702ecc/chapter_3/exercise_3_8.scm | scheme | #lang racket
P162 - [ 练习 3.8 ]
(define f
(let ((store-value 0))
(lambda (x)
(let ((old store-value))
(set! store-value x)
old))))
模拟 ( + ( f 0 ) ( f 1 ) ) a b 两行
(define a (f 0))
(define b (f 1))
(+ a b)
| |
5acb7061d22613958bdcdb7c34db9d3df8df7178128aa2726b644409b12d9478 | mbenelli/klio | xpath-parser.scm |
( include " .. /sxml - tools / sxml - tools.sch " )
;; (include "../libs/gambit/myenv.sch")
;; (include "../libs/gambit/common.sch")
;(include "xpath-parser#.scm")
;
;(namespace
; ("srfi-1#" filter)
; ("and-let#" and-let*)
; ("utils#" cerr))
#;(using
xpath-parser
(list : filter)
(andlet : and-let*)
(pre... | null | https://raw.githubusercontent.com/mbenelli/klio/33c11700d6080de44a22a27a5147f97899583f6e/klio/sxml/xpath-parser.scm | scheme | (include "../libs/gambit/myenv.sch")
(include "../libs/gambit/common.sch")
(include "xpath-parser#.scm")
(namespace
("srfi-1#" filter)
("and-let#" and-let*)
("utils#" cerr))
(using
This software is in Public Domain.
Please send bug reports and comments to:
Dmitry Lizorkin
===========================... |
( include " .. /sxml - tools / sxml - tools.sch " )
xpath-parser
(list : filter)
(andlet : and-let*)
(prelude : cerr))
/ XPointer grammar parser .
IT IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND .
Parser parameterization
For building a specific / XPointer implementation , ... |
7e55176100770f7adff8a8929f6e0da1e298978aed7dcc3cb85b8a319b8c05d6 | robrix/starlight | Database.hs | # LANGUAGE FlexibleContexts #
{-# LANGUAGE GADTs #-}
# LANGUAGE TypeApplications #
module Control.Effect.Database
( -- * Database effect
execute
, step
, Database(..)
-- * Re-exports
, Algebra
, HasLabelled
, run
) where
import Control.Algebra
import Control.Effect.Labelled
import Data.Text (Text)
import Database.... | null | https://raw.githubusercontent.com/robrix/starlight/ad80ab74dc2eedbb52a75ac8ce507661d32f488e/src/Control/Effect/Database.hs | haskell | # LANGUAGE GADTs #
* Database effect
* Re-exports | # LANGUAGE FlexibleContexts #
# LANGUAGE TypeApplications #
module Control.Effect.Database
execute
, step
, Database(..)
, Algebra
, HasLabelled
, run
) where
import Control.Algebra
import Control.Effect.Labelled
import Data.Text (Text)
import Database.SQLite3 (SQLData)
execute :: HasLabelled Database (Database stm... |
71674c3f78f8747aaf43ed95161ec30cd49841a94351c4e8cc633276738e7f63 | 40ants/openrpc | class.lisp | (uiop:define-package #:openrpc-server/class
(:use #:cl)
(:import-from #:openrpc-server/interface
#:transform-result
#:type-to-schema)
(:import-from #:serapeum
#:dict)
(:import-from #:closer-mop
#:standard-slot-definition
#:slot-defi... | null | https://raw.githubusercontent.com/40ants/openrpc/eebde79e343cd33b16bcd7b6b90e0b853221b5fd/server/class.lisp | lisp | (uiop:define-package #:openrpc-server/class
(:use #:cl)
(:import-from #:openrpc-server/interface
#:transform-result
#:type-to-schema)
(:import-from #:serapeum
#:dict)
(:import-from #:closer-mop
#:standard-slot-definition
#:slot-defi... | |
34862229a426340da2e9366fb777eba317b95fd586104d940fc52c11560880b0 | postgres-haskell/postgres-wire | Protocol.hs | module Protocol where
import Data.Monoid ((<>))
import Data.Foldable
import Control.Monad
import Test.Tasty
import Test.Tasty.HUnit
import Database.PostgreSQL.Driver.Connection
import Database.PostgreSQL.Driver.StatementStorage
import Database.PostgreSQL.Driver.Query
import Database.PostgreSQL.Driver.Error
import Da... | null | https://raw.githubusercontent.com/postgres-haskell/postgres-wire/fda5e3b70c3cc0bab8365b4b872991d50da0348c/tests/Protocol.hs | haskell | | Tests multi-command simple query.
Tests all messages that are permitted in extended query protocol.
string is empty.
has no data in the result. | module Protocol where
import Data.Monoid ((<>))
import Data.Foldable
import Control.Monad
import Test.Tasty
import Test.Tasty.HUnit
import Database.PostgreSQL.Driver.Connection
import Database.PostgreSQL.Driver.StatementStorage
import Database.PostgreSQL.Driver.Query
import Database.PostgreSQL.Driver.Error
import Da... |
9dbcf9e9ec3b9462bcd6c8a3754cabc24ae458a387a79c8085a57f135acb93e2 | ddmcdonald/sparser | ns-unknown-rd-items-phase3-14801-15200.lisp |
(IN-PACKAGE :SP)
(DEFPARAMETER SPARSER::*NS-RD-PHASE3-14801-15200*
'(".225+2T" ".2545+591C" ".2625+367A" "210Bcr-Abl" "70S6K" "A-C" "A-D" "A-E"
"A-K" "A-T" "A-negative" "A-positive" "A-type" "A1" "A11" "A1846G" "A20"
"A20-m" "A227T" "A251T" "A34D" "A34V" "A375m2" "A39C" "A39V" "A3V"
"A549BSG" "A85V" "A86... | null | https://raw.githubusercontent.com/ddmcdonald/sparser/304bd02d0cf7337ca25c8f1d44b1d7912759460f/Sparser/code/s/tools/ns-stuff/old-unknown/ns-unknown-rd-items-phase3-14801-15200.lisp | lisp |
(IN-PACKAGE :SP)
(DEFPARAMETER SPARSER::*NS-RD-PHASE3-14801-15200*
'(".225+2T" ".2545+591C" ".2625+367A" "210Bcr-Abl" "70S6K" "A-C" "A-D" "A-E"
"A-K" "A-T" "A-negative" "A-positive" "A-type" "A1" "A11" "A1846G" "A20"
"A20-m" "A227T" "A251T" "A34D" "A34V" "A375m2" "A39C" "A39V" "A3V"
"A549BSG" "A85V" "A86... | |
299c2dd05aca6b3d13a6cfa7423fae860ab9360c0a91740cac96f6d65048be15 | camlp5/camlp5 | q_sexp.ml | (* camlp5r *)
pa_sexp.ml , v
Copyright ( c ) INRIA 2007 - 2017
#load "pa_extend.cmo";
#load "q_MLast.cmo";
#load "pa_macro.cmo";
#load "pa_macro_gram.cmo";
#load "pa_extfun.cmo";
open Asttools;
open MLast;
open Q_MLast;
value sexp_eoi = Grammar.Entry.create gram "sexp_eoi";
value expr_atom a = Qast.Node "Sexp.At... | null | https://raw.githubusercontent.com/camlp5/camlp5/15e03f56f55b2856dafe7dd3ca232799069f5dda/tutorials/sexp_example/q_sexp.ml | ocaml | camlp5r | pa_sexp.ml , v
Copyright ( c ) INRIA 2007 - 2017
#load "pa_extend.cmo";
#load "q_MLast.cmo";
#load "pa_macro.cmo";
#load "pa_macro_gram.cmo";
#load "pa_extfun.cmo";
open Asttools;
open MLast;
open Q_MLast;
value sexp_eoi = Grammar.Entry.create gram "sexp_eoi";
value expr_atom a = Qast.Node "Sexp.Atom" [a] ;
valu... |
f36c1c0154361a21bcdc58d84dc160e54913b77bdf6a71351950f9016f309b5e | FFPiHaskell/Vorlesung2016 | Blatt2.hs | # Übungsblatt 2
--
# # Throat - Clearing
--
a.k.a . Imports , funktioniert .
import Data.Functor
import Data.Monoid
# # Functor
--
Sie haben in der Vorlesung die Typklasse ` Functor ` kennengelernt . :
--
-- class Functor f where
-- fmap :: (a -> b) -> f a -> f b
--
Nehmen sie an , sie hätt... | null | https://raw.githubusercontent.com/FFPiHaskell/Vorlesung2016/22e9095cf9fc27b0c04b8f4ca636a72004452376/%C3%9Cbungen/Blatt2.hs | haskell |
class Functor f where
fmap :: (a -> b) -> f a -> f b
Kann die Funktion nachher mehr als vorher?
## Bonus
| # Übungsblatt 2
# # Throat - Clearing
a.k.a . Imports , funktioniert .
import Data.Functor
import Data.Monoid
# # Functor
Sie haben in der Vorlesung die Typklasse ` Functor ` kennengelernt . :
Nehmen sie an , sie hätten folgende Datentypen gegeben , für die alle eine ` Functor`-Instanz und eindeutig... |
84bf70d52817b9d00619e1a5ee36acb1cab5b5c2ef8bf7198a279bf9086c8653 | Opetushallitus/ataru | selection_limit_spec.clj | (ns ataru.selection-limit.selection-limit-spec
(:require
[speclj.core :refer [describe it tags should should= should-throw should-not-throw]]
[ataru.forms.form-store :as forms]
[ataru.selection-limit.selection-limit-service :as selection-limit])
(:import [java.util UUID]))
(def question-id "question-id")
... | null | https://raw.githubusercontent.com/Opetushallitus/ataru/2d8ef1d3f972621e301a3818567d4e11219d2e82/spec/ataru/selection_limit/selection_limit_spec.clj | clojure | asserts that previously booked is still booked
asserts that booked is still booked | (ns ataru.selection-limit.selection-limit-spec
(:require
[speclj.core :refer [describe it tags should should= should-throw should-not-throw]]
[ataru.forms.form-store :as forms]
[ataru.selection-limit.selection-limit-service :as selection-limit])
(:import [java.util UUID]))
(def question-id "question-id")
... |
79e49cbe95e0735c14fbaf24c2e06fe27a8201e825d617573a883f7f12beb527 | lspitzner/butcher | Command.hs | -- this module only re-exports the appropriate user-facing stuff from some
-- other modules.
| Building - blocks of a CmdParser .
--
The simplest sensible CmdParser is just
--
-- > addCmdImpl $ putStrLn "hello, world!"
--
-- (assuming out is IO ()).
--
The empty CmdParser is also valid :
--
-- > return ()
--
-- B... | null | https://raw.githubusercontent.com/lspitzner/butcher/ad17fe776359a25e4d1bebc7890d1bf3da0880f0/src/UI/Butcher/Monadic/Command.hs | haskell | this module only re-exports the appropriate user-facing stuff from some
other modules.
> addCmdImpl $ putStrLn "hello, world!"
(assuming out is IO ()).
> return ()
But not very interesting - you won't get an 'out' value from this (e.g. an
> do
> addCmd "sub" $ do
> addCmdImpl $ putStrLn "sub succe... | | Building - blocks of a CmdParser .
The simplest sensible CmdParser is just
The empty CmdParser is also valid :
IO - action to execute ) when this matches ( on the empty input ) .
on the empty input the resulting CommandDesc has no out - value , but on " sub "
More than one subcommand ? easy :
> addCm... |
d4d8fe94d44c844603c88d2904a4478549d3842b335f7ae035b5baacaff214df | talex5/async_eio | epoll_file_descr_watcher_eio.mli | * This is almost identical to Async_unix 's epoll_file_descr_watcher.ml , except that it uses Eio_unix to wait for
the epollfd to become ready , allowing other Eio jobs to run .
the epollfd to become ready, allowing other Eio jobs to run. *)
open! Core
type 'a additional_create_args = timerfd:Linux_ext.Time... | null | https://raw.githubusercontent.com/talex5/async_eio/35f648ff590e9abed72049f4aae6e632b84c4b5a/lib/epoll_file_descr_watcher_eio.mli | ocaml | * This is almost identical to Async_unix 's epoll_file_descr_watcher.ml , except that it uses Eio_unix to wait for
the epollfd to become ready , allowing other Eio jobs to run .
the epollfd to become ready, allowing other Eio jobs to run. *)
open! Core
type 'a additional_create_args = timerfd:Linux_ext.Time... | |
8ce7f1e7d6f1dc096b7a293c33086a49bafc504632a13689d9d344889aac4622 | ryukinix/leraxandria | kmp-substring-search.lisp | kmp - fp : Substring Search @ HackerRank
Date : Thu 13 Jul 2017 08:48:40 AM -03
;; NOTE: I'm programming in Common Lisp or in LOOP-MACRO?
(in-package :leraxandria/string)
(defun make-prefix-table (pattern length)
"Get the shift prefix array table to use on KMP
algorithm. This value is used to shift stri... | null | https://raw.githubusercontent.com/ryukinix/leraxandria/e8c4d1f6d1e88072fbd58dd6c48b5d80577f3b62/src/string/kmp-substring-search.lisp | lisp | NOTE: I'm programming in Common Lisp or in LOOP-MACRO? | kmp - fp : Substring Search @ HackerRank
Date : Thu 13 Jul 2017 08:48:40 AM -03
(in-package :leraxandria/string)
(defun make-prefix-table (pattern length)
"Get the shift prefix array table to use on KMP
algorithm. This value is used to shift string comparison
on the next evaluation after a mismatch"
... |
d434d805b2ae3add41bc98dd5d1285e87cf267426e9d20cfaae4adfddf02248d | mejgun/haskell-tdlib | AddedReaction.hs | {-# LANGUAGE OverloadedStrings #-}
-- |
module TD.Data.AddedReaction where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as T
import qualified TD.Data.MessageSender as MessageSender
import qualified TD.Data.ReactionType as ReactionType
import qualified Utils as U
-- |
data AddedReaction = -- | R... | null | https://raw.githubusercontent.com/mejgun/haskell-tdlib/e5c8059a74f88073b27dbfafb6908de0729af110/src/TD/Data/AddedReaction.hs | haskell | # LANGUAGE OverloadedStrings #
|
|
| Represents a reaction applied to a message @type Type of the reaction @sender_id Identifier of the chat member, applied the reaction
|
| |
module TD.Data.AddedReaction where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as T
import qualified TD.Data.MessageSender as MessageSender
import qualified TD.Data.ReactionType as ReactionType
import qualified Utils as U
AddedReaction
sender_id :: Maybe MessageSender.MessageSender,
... |
ccdce3aaa9b014f0d3f1222bd2269be1e4f33f7aa596962236341c67b7ba6e35 | reborg/clojure-essential-reference | 8.clj | (ns user)
< 1 >
;; {}
< 2 >
(import '[java.util ArrayList HashMap])) ; <3>
< 4 >
{ .
ArrayList java.util . ArrayList } | null | https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/VarsandNamespaces/refer%2Crefer-clojure%2Crequire%2Cloaded-libs%2Cuse%2Cimport/8.clj | clojure | {}
<3> | (ns user)
< 1 >
< 2 >
< 4 >
{ .
ArrayList java.util . ArrayList } |
04bf085f6b6b418b64dd8a7dd0e2ee3af13b493c179ffadf785d5cdf033a73dd | maxlapshin/fix | fix_connection.erl | -module(fix_connection).
-author('Max Lapshin <>').
-include("log.hrl").
-export([open_next_log/1, open_next_log/2, write_log/4]).
-export([decode_messages/3, entry_types/1]).
entry_types(_) ->
EntryTypes = [{md_entry_type,bid},{md_entry_type,offer},{md_entry_type,trade}],
[{no_md_entry_types,length(EntryTypes)}... | null | https://raw.githubusercontent.com/maxlapshin/fix/f603ff807112df92741f64955aacd5e3deb50495/src/fix_connection.erl | erlang | Append new string to log
Print debug if requested
Continue decoding
If log is defined, append to buffer (iolist) or plain file write
no-op for undefined log
We don't log heartbeats
Avoid constructing log string when it will not be written
Find next unused log filename
no-op for undefined profile
Open log and ... | -module(fix_connection).
-author('Max Lapshin <>').
-include("log.hrl").
-export([open_next_log/1, open_next_log/2, write_log/4]).
-export([decode_messages/3, entry_types/1]).
entry_types(_) ->
EntryTypes = [{md_entry_type,bid},{md_entry_type,offer},{md_entry_type,trade}],
[{no_md_entry_types,length(EntryTypes)}... |
ac7a5854aebd0e37aec9be5e4e628956b698fa3a1d30526ac9506064c7bb2b50 | PacktPublishing/Mastering-Clojure | fibers.clj | (ns m-clj.c9.fibers
(:require [co.paralleluniverse.pulsar.core :as pc]
[co.paralleluniverse.pulsar.dataflow :as pd]))
;;; Example 9.1
(defn add-with-fiber [a b]
(let [f (pc/spawn-fiber
(fn []
(pc/sleep 100)
(+ a b)))]
(pc/join f)))
;;; Example 9.2
... | null | https://raw.githubusercontent.com/PacktPublishing/Mastering-Clojure/5364ad907056c1c84c759491b17d45d06f4d7cdc/src/m_clj/c9/fibers.clj | clojure | Example 9.1
Example 9.2
Example 9.3 | (ns m-clj.c9.fibers
(:require [co.paralleluniverse.pulsar.core :as pc]
[co.paralleluniverse.pulsar.dataflow :as pd]))
(defn add-with-fiber [a b]
(let [f (pc/spawn-fiber
(fn []
(pc/sleep 100)
(+ a b)))]
(pc/join f)))
(defn df-add [a b]
(let [x (p... |
739ff6a8b762cef08d1140147c45312675bd42c7a6401e73b0b3b37b6a8e0f9e | tari3x/csec-modex | parser.mli | type token =
| COMMA
| LPAREN
| RPAREN
| LBRACKET
| RBRACKET
| SEMI
| COLON
| IDENT of (Ptree.ident)
| INT of (int)
| RED
| EQUIV
| EQUIVEQ
| EQUAL
| FUN
| EQUATION
| QUERY
| NOUNIF
| SLASH
| STAR
| DOT
| WEDGE
| EOF
| NOT
| ELIMTRUE
| DIFF
| PREDICATE
| REDUCTION
... | null | https://raw.githubusercontent.com/tari3x/csec-modex/5ab2aa18ef308b4d18ac479e5ab14476328a6a50/deps/proverif1.84/src/parser.mli | ocaml | type token =
| COMMA
| LPAREN
| RPAREN
| LBRACKET
| RBRACKET
| SEMI
| COLON
| IDENT of (Ptree.ident)
| INT of (int)
| RED
| EQUIV
| EQUIVEQ
| EQUAL
| FUN
| EQUATION
| QUERY
| NOUNIF
| SLASH
| STAR
| DOT
| WEDGE
| EOF
| NOT
| ELIMTRUE
| DIFF
| PREDICATE
| REDUCTION
... | |
3fb637381f5df0d77784bd1e2237cde0c4479c606dde3ae97d966823212b4882 | coq-community/coqffi | poly.ml | let f1 _ = assert false
let f2 _ = assert false
let p1 _ = assert false
let p2 _ = assert false
| null | https://raw.githubusercontent.com/coq-community/coqffi/0e31ff7bcced176afd6233c7825f4bd41ab894ce/examples/src/poly.ml | ocaml | let f1 _ = assert false
let f2 _ = assert false
let p1 _ = assert false
let p2 _ = assert false
| |
6d7554e83d19904816f01e303fc337a00aea21e12ddbb1f2aa0840442d37be5c | Mbodin/murder-generator | driver.mli | * Module Driver .
This module treats the abstract syntax tree produced by the Parser module
into something that can be used later on .
This module treats the abstract syntax tree produced by the Parser module
into something that can be used later on. *)
open Libutils
(** From the file name and the lex... | null | https://raw.githubusercontent.com/Mbodin/murder-generator/2024a924ffb4ee12d1b7119b699346b21e098892/src/driver.mli | ocaml | * From the file name and the lexing buffer, calls the parser.
* Parses a relation obtained through [Relation.to_string].
* A type to store intermediate informations about parsing.
* An error indicating that a player has been associated a relation to
itself in the given element.
* The given element can’t be appli... | * Module Driver .
This module treats the abstract syntax tree produced by the Parser module
into something that can be used later on .
This module treats the abstract syntax tree produced by the Parser module
into something that can be used later on. *)
open Libutils
val parse_lexbuf : string -> Lexin... |
5edf1299d1e679a2182ce4db4ec69ffba216a613edfd7d34f35e2bc243672dff | mrphlip/aoc | 17.hs | # OPTIONS_GHC -Wno - tabs #
import Data.Array
import Data.Ix
import Data.List
import Data.List.Split (splitOn)
import Control.Exception
import Utils
type Point3 = (Integer, Integer, Integer)
type Point4 = (Integer, Integer, Integer, Integer)
type Grid i = Array i Bool
class (ExpandIx i) => LifeGrid i where
readGrid ... | null | https://raw.githubusercontent.com/mrphlip/aoc/06395681eb6b50b838cd4561b2e0aa772aca570a/2020/17.hs | haskell | # OPTIONS_GHC -Wno - tabs #
import Data.Array
import Data.Ix
import Data.List
import Data.List.Split (splitOn)
import Control.Exception
import Utils
type Point3 = (Integer, Integer, Integer)
type Point4 = (Integer, Integer, Integer, Integer)
type Grid i = Array i Bool
class (ExpandIx i) => LifeGrid i where
readGrid ... | |
930d3599402d9181743f7568b747af3b6f29113d3d118f44389fec35920d00d3 | labra/Haws | namespaces.hs | module Namespaces where
import RDF
xsd = "#"
rdf = "-rdf-syntax-ns#"
owl = "#"
foaf = "/"
rdf_type = URI (rdf ++ "type")
xsd_string = URI (xsd ++ "string")
xsd_integer = URI (xsd ++ "integer")
| null | https://raw.githubusercontent.com/labra/Haws/2417adc37522994e2bbb8e9e397481a1f6f4f038/papers/namespaces.hs | haskell | module Namespaces where
import RDF
xsd = "#"
rdf = "-rdf-syntax-ns#"
owl = "#"
foaf = "/"
rdf_type = URI (rdf ++ "type")
xsd_string = URI (xsd ++ "string")
xsd_integer = URI (xsd ++ "integer")
| |
5262b11471e4af5d2cf025c167278f96d08606da5f432cbb4eaab1102bffdc33 | crategus/cl-cffi-gtk | rtest-gio-action.lisp | (def-suite g-action :in gio-suite)
(in-suite g-action)
(defvar *verbose-g-action* nil)
;;; --- Types and Values -------------------------------------------------------
;;; GAction
(test g-action-interface
;; Type check
(is-true (g-type-is-interface "GAction"))
;; Check the registered name
(is (eq 'g-act... | null | https://raw.githubusercontent.com/crategus/cl-cffi-gtk/7f5a09f78d8004a71efa82794265f2587fff98ab/test/rtest-gio-action.lisp | lisp | --- Types and Values -------------------------------------------------------
GAction
Type check
Check the registered name
Get the names of the interface properties.
Get the interface definition
--- Properties and Accessors -----------------------------------------------
g-action-enabled
Default value i... | (def-suite g-action :in gio-suite)
(in-suite g-action)
(defvar *verbose-g-action* nil)
(test g-action-interface
(is-true (g-type-is-interface "GAction"))
(is (eq 'g-action
(registered-object-type-by-name "GAction")))
(is (equal '("enabled" "name" "parameter-type" "state" "state-type")
(... |
a7ca270e1b467bc5716e74bd01db316dd465d5db7eaa46635ba7bade5b37a06c | ghc/packages-base | Error.hs | # LANGUAGE Trustworthy #
# LANGUAGE CPP , NoImplicitPrelude #
-----------------------------------------------------------------------------
-- |
-- Module : Foreign.C.Error
Copyright : ( c ) The FFI task force 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
--
Maintainer :
-... | null | https://raw.githubusercontent.com/ghc/packages-base/52c0b09036c36f1ed928663abb2f295fd36a88bb/Foreign/C/Error.hs | haskell | ---------------------------------------------------------------------------
|
Module : Foreign.C.Error
License : BSD-style (see the file libraries/base/LICENSE)
Stability : provisional
Portability : portable
C-specific Marshalling support: Handling of C \"errno\" error codes.
------------------... | # LANGUAGE Trustworthy #
# LANGUAGE CPP , NoImplicitPrelude #
Copyright : ( c ) The FFI task force 2001
Maintainer :
module Foreign.C.Error (
Errno(..),
eOK, e2BIG, eACCES, eADDRINUSE, eADDRNOTAVAIL, eADV, eAFNOSUPPORT, eAGAIN,
eALREADY, eBADF, eBADMSG, eBADRPC, eBUSY, eCHILD, eCOMM, eCONNABOR... |
79fe242bb067e729e216167cdf5340c36ef5dd32b982b1c6f385c382a652665d | colis-anr/colis-language | mv.mli | (** Symbolic execution of mv *)
open SymbolicUtility.ConstraintsCompatibility
val name : string
val interprete : utility_context -> utility
| null | https://raw.githubusercontent.com/colis-anr/colis-language/14b8087fa6323fb817d32c07236a2a084def01a1/src/symbolic/utilities/mv.mli | ocaml | * Symbolic execution of mv | open SymbolicUtility.ConstraintsCompatibility
val name : string
val interprete : utility_context -> utility
|
112604abbe47ae75fcedd341a35bdb85f8409e31c4912ff2546f6f3d51e67087 | elastic/eui-cljs | icon_continuity_above.cljs | (ns eui.icon-continuity-above
(:require ["@elastic/eui/lib/components/icon/assets/continuityAbove.js" :as eui]))
(def continuityAbove eui/icon)
| null | https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/icon_continuity_above.cljs | clojure | (ns eui.icon-continuity-above
(:require ["@elastic/eui/lib/components/icon/assets/continuityAbove.js" :as eui]))
(def continuityAbove eui/icon)
| |
9bdce9a7d1e09f05d025bd61c3e813e64ef24bc9a2d1ade907cac8d7ff49ac36 | CardanoSolutions/ogmios | MonadLog.hs | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
module Ogmios.Control.MonadLog
( -- * Class
MonadLog (..)
, Logger
-- * Severity
, Severity (..)
, HasSeverityA... | null | https://raw.githubusercontent.com/CardanoSolutions/ogmios/317c826d9d0388cb7efaf61a34085fc7c1b12b06/server/src/Ogmios/Control/MonadLog.hs | haskell | * Class
* Severity
* Tracer
* Tracers
TODO: This instance is bonkers, but this is because of the over-specialized
Logger = Tracer IO. Ideally, MonadLog should work with _any_
| Acquire and configure multiple tracers which outputs structured JSON on the
standard output. The tracer is concurrent-safe but none buf... | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
module Ogmios.Control.MonadLog
MonadLog (..)
, Logger
, Severity (..)
, HasSeverityAnnotation (..)
, getSeverityAnnot... |
28b7d711e4301fb7ade872ffdc2f78bed304ddb9755536991672fcfe0337555b | MastodonC/witan.ui | create_datapack_test.cljs | (ns witan.ui.test.components.create-datapack-test
(:require [cljs.test :refer-macros [deftest is testing]]
[witan.ui.test.base :as b]
[witan.ui.components.create-datapack :as cdp]))
| null | https://raw.githubusercontent.com/MastodonC/witan.ui/5ea6baaff52824ac61737911dd2c11b451157bad/test/cljs/witan/ui/test/components/create_datapack_test.cljs | clojure | (ns witan.ui.test.components.create-datapack-test
(:require [cljs.test :refer-macros [deftest is testing]]
[witan.ui.test.base :as b]
[witan.ui.components.create-datapack :as cdp]))
| |
50d3055eafc62b22e039553431b75f82e0912447a65988c29f835a7d9124db00 | eslick/cl-stdutils | graphviz.lisp | -*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Base : 10 ; Package : utils -*-
;;;; *************************************************************************
;;;; FILE IDENTIFICATION
;;;;
;;;; Name: graphviz.lisp
Purpose : A framework for generating dot files and calling graphviz
Programmer : ... | null | https://raw.githubusercontent.com/eslick/cl-stdutils/4a4e5a4036b815318282da5dee2a22825369137b/src/graphviz.lisp | lisp | Syntax : ANSI - Common - Lisp ; Base : 10 ; Package : utils -*-
*************************************************************************
FILE IDENTIFICATION
Name: graphviz.lisp
-------------------
Attributes
-------------------
----------------
ID's
----------------
------------------
Nodes and e... | Purpose : A framework for generating dot files and calling graphviz
Programmer :
Date Started : January 2006
(in-package :utils.gds)
(defclass attributed-mixin ()
((attribute-table :accessor attribute-table :initarg :attributes :initform nil)
(attribute-key-test :accessor attribute-key-tes... |
c9577a1aba90c322b2b49356b2e4befe1627c501fa65076ac1f17ced721f20bf | philnguyen/soft-contract | issue-8.rkt | #lang racket
(require soft-contract/fake-contract)
(define (sqr n)
(* n n))
(provide
(contract-out
[sqr (integer? . -> . (and/c integer? (lambda (x) (> x 0))))]))
| null | https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/programs/fail-ce/issue-8.rkt | racket | #lang racket
(require soft-contract/fake-contract)
(define (sqr n)
(* n n))
(provide
(contract-out
[sqr (integer? . -> . (and/c integer? (lambda (x) (> x 0))))]))
| |
aa62c0118ae728b627dd4c68e4565a42c158d54f280735efad23634b95729304 | marigold-dev/mankavar | tendermint_test.ml | let () =
Printexc.record_backtrace true ;
Alcotest.run "DAS Tendermint ORU Dummy" [
] | null | https://raw.githubusercontent.com/marigold-dev/mankavar/110d1659feec9ebd99cf2f76d7699f48483010ca/src/consensus/test/oru/tendermint_test.ml | ocaml | let () =
Printexc.record_backtrace true ;
Alcotest.run "DAS Tendermint ORU Dummy" [
] | |
8b8673b30f09873399d6b09eb7ae1072f6c92652fba1bbb5f0e1194431ceacdf | ntoronto/drbayes | proc-arrow.rkt | #lang typed/racket/base
(require racket/promise
racket/flonum
racket/match
"../set.rkt"
"../flonum.rkt"
"types.rkt"
"pure-arrows.rkt"
"pure-lifts.rkt")
(provide (all-defined-out))
(define-type Proc-Arrow (Value -> Value))
(: lower/proc (Bot-Arrow -> Pro... | null | https://raw.githubusercontent.com/ntoronto/drbayes/e59eb7c7867118bf4c77ca903e133c7530e612a3/drbayes/private/arrow/proc-arrow.rkt | racket | ===================================================================================================
Basic lifts
===================================================================================================
Combinators
===========================================================================================... | #lang typed/racket/base
(require racket/promise
racket/flonum
racket/match
"../set.rkt"
"../flonum.rkt"
"types.rkt"
"pure-arrows.rkt"
"pure-lifts.rkt")
(provide (all-defined-out))
(define-type Proc-Arrow (Value -> Value))
(: lower/proc (Bot-Arrow -> Pro... |
42f3677ae841d2e358b8144d0ea456c54780ac9a2e620470b54e53e3f4b0b1ca | slyrus/mcclim-old | fix-openmcl.lisp | ;;; -*- Mode: Lisp; Package: User -*-
( c ) copyright 2002 by ( )
;;; This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library 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/slyrus/mcclim-old/354cdf73c1a4c70e619ccd7d390cb2f416b21c1a/Lisp-Dep/fix-openmcl.lisp | lisp | -*- Mode: Lisp; Package: User -*-
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
License along w... | ( c ) copyright 2002 by ( )
modify it under the terms of the GNU Library General Public
version 2 of the License , or ( at your option ) any later version .
Library General Public License for more details .
You should have received a copy of the GNU Library General Public
Free Software Foundation , Inc.... |
3ae26f0b5231db5a6e30fb3117ea41867fcdfa11d19645ac2598fa9948be123f | tsloughter/kuberl | kuberl_policy_api.erl | -module(kuberl_policy_api).
-export([get_api_group/1, get_api_group/2]).
-define(BASE_URL, "").
%% @doc
%% get information of a group
-spec get_api_group(ctx:ctx()) -> {ok, kuberl_v1_api_group:kuberl_v1_api_group(), kuberl_utils:response_info()} | {ok, hackney:client_ref()} | {error, term(), kuberl_utils:response_i... | null | https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_policy_api.erl | erlang | @doc
get information of a group | -module(kuberl_policy_api).
-export([get_api_group/1, get_api_group/2]).
-define(BASE_URL, "").
-spec get_api_group(ctx:ctx()) -> {ok, kuberl_v1_api_group:kuberl_v1_api_group(), kuberl_utils:response_info()} | {ok, hackney:client_ref()} | {error, term(), kuberl_utils:response_info()}.
get_api_group(Ctx) ->
get_a... |
99aae98cb1940a6011d6a5865b5277cc5da6f96ab19cefb612f0fd542ea8d654 | miner/strgen | project.clj | (defproject com.velisco/strgen "0.2.4"
:description "String generator from regular expressions, for use with Clojure test.check and spec"
:url ""
:deploy-repositories {"releases" :clojars}
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.10.3"]
... | null | https://raw.githubusercontent.com/miner/strgen/0bef1735c7631d16ea8c6414b0df309be0bd3599/project.clj | clojure | (defproject com.velisco/strgen "0.2.4"
:description "String generator from regular expressions, for use with Clojure test.check and spec"
:url ""
:deploy-repositories {"releases" :clojars}
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.10.3"]
... | |
5f95474da042375ad51a7ccfae65da629c4931cd1cd4058c8915fa820425708d | opqdonut/ifp2018-exercises | W6.hs | module W6 where
import Control.Monad
import Control.Monad.Trans.State
import Data.Char
import Data.List
Week 6 : Monads
------------------------------------------------------------------------------
-- Ex 1: Here's the ?> chaining operator from the lecture:
(?>) :: Maybe a -> (a -> Maybe b) -> Maybe b
Nothing ?> ... | null | https://raw.githubusercontent.com/opqdonut/ifp2018-exercises/8988936ab068e6d62d5b441e4d82d1308dad9bad/W6.hs | haskell | ----------------------------------------------------------------------------
Ex 1: Here's the ?> chaining operator from the lecture:
In case of failure, propagate failure
In case of sucess, run the next computation
Your task is to help implement the function readName that given a
"Surname"). readName should fail (... | module W6 where
import Control.Monad
import Control.Monad.Trans.State
import Data.Char
import Data.List
Week 6 : Monads
(?>) :: Maybe a -> (a -> Maybe b) -> Maybe b
string like " Forename Surname " produces the pair ( " Forename " ,
3 . one of the names does n't start with a capital letter
need to define... |
215315b6942eca7f80d8e23cf39d2b8901d8d8cdaa92f78e30a6a19dbd915932 | atgeller/Wasm-prechk | IndexTypes.rkt | #lang racket
(require redex/reduction-semantics "WASM-Redex/Syntax.rkt")
(provide WASMIndexTypes)
(define-extended-language WASMIndexTypes WASM
(ibinop ::= .... div-u/unsafe div-s/unsafe rem-u/unsafe rem-s/unsafe)
(e ::= .... (call-indirect/unsafe tfi)
(t load/unsafe a o) (t load/unsafe (tp sx) a o)
... | null | https://raw.githubusercontent.com/atgeller/Wasm-prechk/16fa7ff4cc9e316211887d8f957aa833833ae04f/IndexTypes.rkt | racket | Index language
Instruction index types
Index-type pre/post-condition: types on stack, locals, and constraint context
Indexed module contexts
Module-level indexed declarations | #lang racket
(require redex/reduction-semantics "WASM-Redex/Syntax.rkt")
(provide WASMIndexTypes)
(define-extended-language WASMIndexTypes WASM
(ibinop ::= .... div-u/unsafe div-s/unsafe rem-u/unsafe rem-s/unsafe)
(e ::= .... (call-indirect/unsafe tfi)
(t load/unsafe a o) (t load/unsafe (tp sx) a o)
... |
fc4ac4a2f81e8f6264f8b84df5bfcebd389edf1e039e203f3750182e2bfca34b | yrashk/erlang | sys.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 1996 - 2009 . 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 Pub... | null | https://raw.githubusercontent.com/yrashk/erlang/e1282325ed75e52a98d58f5bd9fb0fa27896173f/lib/stdlib/src/sys.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 limita... | Copyright Ericsson AB 1996 - 2009 . 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(sys).
-export([suspend/1, suspend/... |
553d32becbcffc2b28894f97908278d0f609896c93394c7e960ec657353f0cd2 | diku-dk/futhark | Unstream.hs | # LANGUAGE TypeFamilies #
| Sequentialise any remaining SOACs . It is very important that
-- this is run *after* any access-pattern-related optimisation,
-- because this pass will destroy information.
--
This pass conceptually contains three subpasses :
--
1 . Sequentialise ' Stream ' operations , leaving othe... | null | https://raw.githubusercontent.com/diku-dk/futhark/98e4a75e4de7042afe030837084764bbf3c6c66e/src/Futhark/Optimise/Unstream.hs | haskell | this is run *after* any access-pattern-related optimisation,
because this pass will destroy information.
operating on single-element arrays, which can be efficiently
simplified away, but only *before* they are turned into loops. In
principle this pass could be split into multiple, but for now it is
kept tog... | # LANGUAGE TypeFamilies #
| Sequentialise any remaining SOACs . It is very important that
This pass conceptually contains three subpasses :
1 . Sequentialise ' Stream ' operations , leaving other SOACs intact .
2 . Apply whole - program simplification .
3 . Sequentialise remaining SOACs .
This is because... |
6b3a0a937cc1b1b5cb496dcf4e9e56c91cf28dc84f13873b1cc7e0f149ccd40f | odis-labs/helix | Mouse.ml | module Event = Stdweb.Dom.Event
module Window = Stdweb.Dom.Window
let position_of_mouse_event m_ev = Event.Mouse.(page_x m_ev, page_y m_ev)
let position =
Signal.emitter ~init:(0.0, 0.0) (fun emit ->
Window.add_event_listener Window.this "mousemove" (fun m_ev ->
emit (position_of_mouse_event m_ev)))... | null | https://raw.githubusercontent.com/odis-labs/helix/7019765fdd6336f93d9243cf8310b8e805afabfb/src/helix/Mouse.ml | ocaml | module Event = Stdweb.Dom.Event
module Window = Stdweb.Dom.Window
let position_of_mouse_event m_ev = Event.Mouse.(page_x m_ev, page_y m_ev)
let position =
Signal.emitter ~init:(0.0, 0.0) (fun emit ->
Window.add_event_listener Window.this "mousemove" (fun m_ev ->
emit (position_of_mouse_event m_ev)))... | |
68a5ace05645c9f45f0b3512851b9fb07a83333448c067d1a128ffb9c0fc716e | arcfide/chez-srfi | macros.scm | ;;;; Definitions of macros
From SRFI 8
(define-syntax receive
(syntax-rules ()
((receive formals expression body ...)
(call-with-values (lambda () expression)
(lambda formals body ...)))))
;;; Shivers-compatible let-optionals*
This version from Scheme-48 1.9.2 ,
;;; using error i... | null | https://raw.githubusercontent.com/arcfide/chez-srfi/96fb553b6ba0834747d5ccfc08c181aa8fd5f612/%253a152/macros.scm | scheme | Definitions of macros
Shivers-compatible let-optionals*
using error instead of assertion-violation |
From SRFI 8
(define-syntax receive
(syntax-rules ()
((receive formals expression body ...)
(call-with-values (lambda () expression)
(lambda formals body ...)))))
This version from Scheme-48 1.9.2 ,
(define-syntax let-optionals*
(syntax-rules ()
((let-optionals* arg (opt-cla... |
d3c18942c58417852f12c99346719031bf34daa77bf718fab5e0184bc2401a3b | bruz/hotframeworks | github.clj | (ns hotframeworks.statistic-types.github
(:require [environ.core :refer [env]]
tentacles.repos))
(defn stat
[framework]
(let [owner (framework :github_owner )
repo-name (framework :github_repo )
auth {:oauth-token (env :github-access-token)}]
((tentacles.repos/specific-repo owner ... | null | https://raw.githubusercontent.com/bruz/hotframeworks/629aa8f3cd7556479ea5cd7720d8b06ee4926ae4/src/hotframeworks/statistic_types/github.clj | clojure | (ns hotframeworks.statistic-types.github
(:require [environ.core :refer [env]]
tentacles.repos))
(defn stat
[framework]
(let [owner (framework :github_owner )
repo-name (framework :github_repo )
auth {:oauth-token (env :github-access-token)}]
((tentacles.repos/specific-repo owner ... | |
632a985c4c67a6975c3a7ab653731161bbfc2139935e1c069097c008cd1076f0 | antono/guix-debian | hash.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 2012 , 2013 , 2014 < >
Copyright © 2013 < >
;;;
;;; This file is part of GNU Guix.
;;;
GNU is free software ; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software F... | null | https://raw.githubusercontent.com/antono/guix-debian/85ef443788f0788a62010a942973d4f7714d10b4/guix/scripts/hash.scm | scheme | GNU Guix --- Functional package management for GNU
This file is part of GNU Guix.
you can redistribute it and/or modify it
either version 3 of the License , or ( at
your option) any later version.
GNU Guix is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied wa... | Copyright © 2012 , 2013 , 2014 < >
Copyright © 2013 < >
under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
along with GNU . If not , see < / > .
(define-module (guix scripts hash)
#:use-module (guix base32)
#:use-mo... |
a840302f4702efb0e55d4d5140741af639eead31572823936a0f5db4dd291e18 | ayamada/cac2020 | core.cljs | (ns cac2020.core
(:require [clojure.string :as string]
["pixi.js" :as pixi]
[cac2020.game :as game]
[cac2020.property :as p :include-macros true]
[cac2020.util :as util]
[cac2020.pointer :as pointer]
[cac2020.dom :as dom]
[cac2020.pix... | null | https://raw.githubusercontent.com/ayamada/cac2020/99d249ce9b9b0e2cf856ddeaea22796ce60d4fa7/src/main/cac2020/core.cljs | clojure | TODO: singleton実装なのはよくない、なおしたい
(prn :create)
(prn :preload)
TODO: もしまだ:preload中なら、キャンセルする必要がある、本当は
(prn :destroy) | (ns cac2020.core
(:require [clojure.string :as string]
["pixi.js" :as pixi]
[cac2020.game :as game]
[cac2020.property :as p :include-macros true]
[cac2020.util :as util]
[cac2020.pointer :as pointer]
[cac2020.dom :as dom]
[cac2020.pix... |
3dd0b9ee60a5a200173472c84114ef885fa73b97d89e9c2a52fbe669580a8db9 | ksrky/Plato | Utils.hs | # LANGUAGE PatternSynonyms #
module Plato.Test.Typing.Utils where
import Plato.Types.Location
import Plato.Types.Name
import Plato.Types.Name.Global
import Plato.Syntax.Typing
import qualified Data.Text as T
pattern NL :: a -> Located a
pattern NL x <- L _ x
pattern VA :: T.Text -> Located Name
pattern VA x <- L ... | null | https://raw.githubusercontent.com/ksrky/Plato/02b1a043efa92cf2093ff7d721a607d8abe9d876/test/Plato/Test/Typing/Utils.hs | haskell | # LANGUAGE PatternSynonyms #
module Plato.Test.Typing.Utils where
import Plato.Types.Location
import Plato.Types.Name
import Plato.Types.Name.Global
import Plato.Syntax.Typing
import qualified Data.Text as T
pattern NL :: a -> Located a
pattern NL x <- L _ x
pattern VA :: T.Text -> Located Name
pattern VA x <- L ... | |
884d9b73ce7be4f7cc665f4a42dbea3b8f4171f5d01add70270a0e7de6556fab | timbertson/opam2nix | vars.mli | val nixos_vars : unit -> OpamVariable.variable_contents OpamVariable.Full.Map.t
val path_var : ocaml_version: OpamPackage.Version.t option
-> prefix: OpamFilename.Dir.t
-> scope: OpamPackage.Name.t option
-> string
-> OpamVariable.variable_contents option
val simple_lookup : vars:OpamVariable.variable_contents Op... | null | https://raw.githubusercontent.com/timbertson/opam2nix/dee96eb1c706edc61e38df35240e0f707cfb800e/src/vars.mli | ocaml | * Information about a pacakge. Post-solve, only name and version are known.
Path is only known at build time (i.e. during Invoke)
* Pre-solve, only `ocaml` package is present, everything else comes from `vars
* false simply suppressed unresolved warnings | val nixos_vars : unit -> OpamVariable.variable_contents OpamVariable.Full.Map.t
val path_var : ocaml_version: OpamPackage.Version.t option
-> prefix: OpamFilename.Dir.t
-> scope: OpamPackage.Name.t option
-> string
-> OpamVariable.variable_contents option
val simple_lookup : vars:OpamVariable.variable_contents Op... |
40a660e802829225a810076913798ab6fcbbae3f639bb299ff99bd38a06a9f5f | fluree/db | transact.cljc | (ns fluree.db.json-ld.transact
(:require [fluree.json-ld :as json-ld]
[fluree.db.constants :as const]
[fluree.db.flake :as flake]
[fluree.db.json-ld.vocab :as vocab]
[fluree.db.json-ld.ledger :as jld-ledger]
[fluree.db.json-ld.reify :as jld-reify]
... | null | https://raw.githubusercontent.com/fluree/db/f68e7fdf726356f9b7b511cd773ffdd6501c4dc5/src/fluree/db/json_ld/transact.cljc | clojure | don't need to check if generated pid during this transaction
a literal value
create a blank node id
save SHACL, class data into atom for later validation - checks that same @id not being updated in multiple spots
only used if generating new Class and Property flakes
either a ref or a value
check-retracts? - a ne... | (ns fluree.db.json-ld.transact
(:require [fluree.json-ld :as json-ld]
[fluree.db.constants :as const]
[fluree.db.flake :as flake]
[fluree.db.json-ld.vocab :as vocab]
[fluree.db.json-ld.ledger :as jld-ledger]
[fluree.db.json-ld.reify :as jld-reify]
... |
932f56163afde1c92464326c27a28abb44b264b18dbcba7d7c6070ac79976b5e | heraldry/heraldicon | ornaments.cljs | (ns heraldicon.frontend.component.ornaments
(:require
[heraldicon.context :as c]
[heraldicon.frontend.component.core :as component]
[heraldicon.frontend.component.element :as component.element]
[heraldicon.heraldry.default :as default]
[heraldicon.heraldry.shield-separator :as shield-separator]
[her... | null | https://raw.githubusercontent.com/heraldry/heraldicon/344b0a9efad48a4bee1f140385f552e19095d6d9/src/heraldicon/frontend/component/ornaments.cljs | clojure | (ns heraldicon.frontend.component.ornaments
(:require
[heraldicon.context :as c]
[heraldicon.frontend.component.core :as component]
[heraldicon.frontend.component.element :as component.element]
[heraldicon.heraldry.default :as default]
[heraldicon.heraldry.shield-separator :as shield-separator]
[her... | |
7d57e37d2e4c315676c573da40b25b3179c9d7e732815e3e1fb1938d5eb0aeb1 | mveety/lispmake | core.lisp | (in-package :lispmake)
lispmake , written by , et al .
( c ) 2012 - 2021 . Under BSD License .
(defun loadfile (outstream fname)
(format outstream "(load #P\"~A\")~%" fname))
(defun quickloads (outstream library)
(format outstream "(ql:quickload '~A)~%" library))
(defun pl-package (args)
(setf *lm-pac... | null | https://raw.githubusercontent.com/mveety/lispmake/3eb4e8ac280de3c31b4826424093b11c7dbbf289/core.lisp | lisp | (in-package :lispmake)
lispmake , written by , et al .
( c ) 2012 - 2021 . Under BSD License .
(defun loadfile (outstream fname)
(format outstream "(load #P\"~A\")~%" fname))
(defun quickloads (outstream library)
(format outstream "(ql:quickload '~A)~%" library))
(defun pl-package (args)
(setf *lm-pac... | |
cdfa9426359757ebb295e6ff5cc569008b50b85020c7ec149d0d56aeba4252ff | glguy/ssh-hans | Rekey.hs | # LANGUAGE CPP #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE RecordWildCards #
module Network.SSH.Rekey where
import Network.SSH.Named
import Network.SSH.Mac
import Network.SSH.Ciphers
import Network.SSH.Compression
import Network.SSH.Messages
import Network.SSH.Keys
import Network.SSH.PubKey
import Network.SSH.Stat... | null | https://raw.githubusercontent.com/glguy/ssh-hans/25d05366d4655eb249bfb13f9a6d473b49885bd9/src/Network/SSH/Rekey.hs | haskell | # LANGUAGE OverloadedStrings #
--------------------------------------------------------------
| Initial entry point into the rekeying logic. This version
sends a proposal and waits for the response.
| Subsequent entry point into the rekeying logic. This version
is called when a proposal has already been received an... | # LANGUAGE CPP #
# LANGUAGE RecordWildCards #
module Network.SSH.Rekey where
import Network.SSH.Named
import Network.SSH.Mac
import Network.SSH.Ciphers
import Network.SSH.Compression
import Network.SSH.Messages
import Network.SSH.Keys
import Network.SSH.PubKey
import Network.SSH.State
import Network.SSH.Packet
import... |
e6965366e3db5eeb75f8976f03a8064a75db16ea556e5d3e1036bd873b3c654a | static-analysis-engineering/codehawk | jCHRawBasicTypes.ml | = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
CodeHawk Java Analyzer
Author : ------------------------------------------------------------------------------
The MIT License ( MIT )
Copy... | null | https://raw.githubusercontent.com/static-analysis-engineering/codehawk/98ced4d5e6d7989575092df232759afc2cb851f6/CodeHawk/CHJ/jchlib/jCHRawBasicTypes.ml | ocaml | jchlib
* Output functions
* Constant pool manipulation | = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
CodeHawk Java Analyzer
Author : ------------------------------------------------------------------------------
The MIT License ( MIT )
Copy... |
ce2efc0fc6e17ddcc0a9ec67477d6fc3bbd7b4e66b83971d1b578b49006e025e | orbitz/opass | db.mli | type t
module Row : sig
type name = string
type password = { location : string
; username : string
; password : string
}
type note = string
type elt =
| Password of password
| Note of note
type t = (name * elt)
end
val make : ... | null | https://raw.githubusercontent.com/orbitz/opass/5b7e3009a67662d98ea0cb69fbdac0c736c69c1d/src/db/db.mli | ocaml | type t
module Row : sig
type name = string
type password = { location : string
; username : string
; password : string
}
type note = string
type elt =
| Password of password
| Note of note
type t = (name * elt)
end
val make : ... | |
df21383b54427ed8d1ce94b90d0b4856f8abff432a06689910cd5169ad517d76 | audreyt/openafp | OBE.hs | module OpenAFP.Records.T.OBE where
import OpenAFP.Types
import OpenAFP.Internals
data T_OBE = T_OBE {
t_obe_Type :: !N1
,t_obe :: !NStr
} deriving (Show, Typeable)
| null | https://raw.githubusercontent.com/audreyt/openafp/178e0dd427479ac7b8b461e05c263e52dd614b73/src/OpenAFP/Records/T/OBE.hs | haskell | module OpenAFP.Records.T.OBE where
import OpenAFP.Types
import OpenAFP.Internals
data T_OBE = T_OBE {
t_obe_Type :: !N1
,t_obe :: !NStr
} deriving (Show, Typeable)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.