_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 |
|---|---|---|---|---|---|---|---|---|
a36e118175c71b11a2a618893c13b8cd5b39e0e31d0de62f47898df7886142cf | tonyg/racket-operational-transformation | server.rkt | #lang racket
(require racket/async-channel)
(require racket/serialize)
(require operational-transformation)
(require operational-transformation/text/simple-document)
(struct state (server-state connections filename) #:prefab)
(struct connection (thread seen-up-to) #:prefab)
(define (run-server #:port port #:filename... | null | https://raw.githubusercontent.com/tonyg/racket-operational-transformation/1960b7f70138a9de6e3ceb2943b8ca46c83d94ae/operational-transformation-demo/server.rkt | racket | (log-info "~a: sending them ~v" id v) | #lang racket
(require racket/async-channel)
(require racket/serialize)
(require operational-transformation)
(require operational-transformation/text/simple-document)
(struct state (server-state connections filename) #:prefab)
(struct connection (thread seen-up-to) #:prefab)
(define (run-server #:port port #:filename... |
67af35d5932ef228651b519023aea4caef61deb16545f5264302317c7a166ac2 | billstclair/trubanc-lisp | foreign-vars.lisp | ;;;; -*- Mode: lisp; indent-tabs-mode: nil -*-
;;;
foreign-vars.lisp --- High - level interface to foreign globals .
;;;
Copyright ( C ) 2005 - 2008 , loliveira(@)common - lisp.net >
;;;
;;; Permission is hereby granted, free of charge, to any person
;;; obtaining a copy of this software and associated document... | null | https://raw.githubusercontent.com/billstclair/trubanc-lisp/5436d2eca5b1ed10bc47eec7080f6cb90f98ca65/systems/cffi_0.10.4/src/foreign-vars.lisp | lisp | -*- Mode: lisp; indent-tabs-mode: nil -*-
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies
furnished to... | foreign-vars.lisp --- High - level interface to foreign globals .
Copyright ( C ) 2005 - 2008 , loliveira(@)common - lisp.net >
files ( the " Software " ) , to deal in the Software without
of the Software , and to permit persons to whom the Software is
included in all copies or substantial portions of the... |
513df703bdcbd40d5ce4711e3b8c79c78ec63118d0b15fac6ecfa256a13b25f6 | jbrisbin/random-exchange | rabbit_exchange_type_random.erl | The contents of this file are subject to the Mozilla Public License
%% Version 1.1 (the "License"); you may not use this file except in
%% compliance with the License. You may obtain a copy of the License
%% at /
%%
Software distributed under the License is distributed on an " AS IS "
%% basis, WITHOUT WARRANTY OF ... | null | https://raw.githubusercontent.com/jbrisbin/random-exchange/e851b4e197bceb8569842c7e11c8c148e64e9645/src/rabbit_exchange_type_random.erl | erlang | Version 1.1 (the "License"); you may not use this file except in
compliance with the License. You may obtain a copy of the License
at /
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
the License for the specific language governing rights and
limitations under the License.
io:format("excha... | The contents of this file are subject to the Mozilla Public License
Software distributed under the License is distributed on an " AS IS "
The Original Code is RabbitMQ .
The Initial Developer of the Original Code is VMware , Inc.
Copyright ( c ) 2007 - 2011 VMware , Inc. All rights reserved .
-module(rabbi... |
80e91762d23f2833317a649e989b72bc8461ad75b0105582b54be47c03e12519 | herbelin/coq-hh | subtac_cases.mli | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/herbelin/coq-hh/296d03d5049fea661e8bdbaf305ed4bf6d2001d2/plugins/subtac/subtac_cases.mli | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
i
i
s Compilation of pattern-matchin... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
open Util
open Names
open Ter... |
cad4e116669d65c3b0eec861eb2b284ae38a28a420461ef471cf07ac3a0a2e0e | dbtoaster/dbtoaster-a5 | K3.ml | *
A simple collection language ( K3 ) admitting structural recursion
optimizations
Notes :
- K3 is a simple functional language with tuples , temporary and persistent
collections , collection operators ( iterate , map , flatten , aggregate ,
group - by aggregate ) , and persistence ... | null | https://raw.githubusercontent.com/dbtoaster/dbtoaster-a5/b59e2837950023f32807bb1f21f57058f4f0b3e2/src/functional/K3.ml | ocaml | * Collection identifiers
* The type of the collection is currently not known *
* The collection is persistent *
* The collection is intermediate *
* Unit type; No data content
* Primitive type, see Type
* Tuples of nested objects
* Collections (typically bags)
* Function type
* Schemas are... | *
A simple collection language ( K3 ) admitting structural recursion
optimizations
Notes :
- K3 is a simple functional language with tuples , temporary and persistent
collections , collection operators ( iterate , map , flatten , aggregate ,
group - by aggregate ) , and persistence ... |
1b87992a5fb702231913ae1b73b09421565baed32708bcc41a79769df7013e17 | alakahakai/hackerrank | kmp-fp.hs |
Substring Searching
-fp
Author : < >
Date : June 11th , 2015
Substring Searching
-fp
Author: Ray Qiu <>
Date: June 11th, 2015
-}
{-# LANGUAGE BangPatterns #-}
import Control.Applicative (liftA)
import Control.Monad (forM_)
import Data.Array
import ... | null | https://raw.githubusercontent.com/alakahakai/hackerrank/465d17107bbe402daf750651bb57cf092305acf9/fp/kmp-fp.hs | haskell | # LANGUAGE BangPatterns #
n <- readLn :: IO Int
s <- getLine
w <- getLine |
Substring Searching
-fp
Author : < >
Date : June 11th , 2015
Substring Searching
-fp
Author: Ray Qiu <>
Date: June 11th, 2015
-}
import Control.Applicative (liftA)
import Control.Monad (forM_)
import Data.Array
import Data.List (ini... |
440c3fd948e049d03d1b54bce5bb733b4c89840301ab6635ddadb4d5cd36d1b5 | slagyr/speclj | tags.cljc | (ns speclj.tags
(:require [clojure.set :refer [intersection union]]
[clojure.string :refer [join]]
[speclj.config :refer [*tag-filter*]]))
(defn pass-includes? [includes tags]
(if (empty? includes)
true
(= includes (intersection includes (set tags)))))
(defn pass-excludes? [exclude... | null | https://raw.githubusercontent.com/slagyr/speclj/6a2daa0fe0385c34bcfcf22c1d4417b5eef0a395/src/speclj/tags.cljc | clojure | (ns speclj.tags
(:require [clojure.set :refer [intersection union]]
[clojure.string :refer [join]]
[speclj.config :refer [*tag-filter*]]))
(defn pass-includes? [includes tags]
(if (empty? includes)
true
(= includes (intersection includes (set tags)))))
(defn pass-excludes? [exclude... | |
3c7afa1b8072299bb58db10484c5f09b85a695550cb3db3f706c8a80bbafbe38 | yangyang5214/asciicast2mp4 | helpers.cljs | (ns asciinema.gif.helpers)
(defn wrap-catch-err [f]
(fn [x]
(try
(f x)
(catch js/Error e
e))))
(defn throw-err [x]
(if (instance? js/Error x)
(throw x)
x))
(defn safe-map [f]
(map (wrap-catch-err f)))
| null | https://raw.githubusercontent.com/yangyang5214/asciicast2mp4/5404a53ae331d44abfada6002b9affac76073418/src/asciinema/gif/helpers.cljs | clojure | (ns asciinema.gif.helpers)
(defn wrap-catch-err [f]
(fn [x]
(try
(f x)
(catch js/Error e
e))))
(defn throw-err [x]
(if (instance? js/Error x)
(throw x)
x))
(defn safe-map [f]
(map (wrap-catch-err f)))
| |
5b737a5c41dd2118aa6fd6ec22f432f1c2cde9813779af47a07a2a9d800281ce | jubnzv/iec-checker | location.mli | (** Describes locations of symbols in concrete syntax tree. *)
type loc = Lexing.position * Lexing.position
| null | https://raw.githubusercontent.com/jubnzv/iec-checker/666cd8a28cb1211465a900862df84d70460c2742/src/parser/location.mli | ocaml | * Describes locations of symbols in concrete syntax tree. |
type loc = Lexing.position * Lexing.position
|
34807d353f11513d5b431b80a1b70e4e6e15392d3f999f8ccdac12711f71f617 | xapi-project/message-switch | rrd_interface_test.ml | open Idl_test_common
module GenPath = struct let test_data_path = "rrd_gen" end
module OldPath = struct let test_data_path = "test_data/rrd" end
module C = Rrd_interface.RPC_API (GenTestData (GenPath) (TXmlrpc))
module T = Rrd_interface.RPC_API (TestOldRpcs (OldPath) (TXmlrpc))
let tests = !C.implementation @ !T.im... | null | https://raw.githubusercontent.com/xapi-project/message-switch/1d0d1aa45c01eba144ac2826d0d88bb663e33101/xapi-idl/lib_test/rrd_interface_test.ml | ocaml | open Idl_test_common
module GenPath = struct let test_data_path = "rrd_gen" end
module OldPath = struct let test_data_path = "test_data/rrd" end
module C = Rrd_interface.RPC_API (GenTestData (GenPath) (TXmlrpc))
module T = Rrd_interface.RPC_API (TestOldRpcs (OldPath) (TXmlrpc))
let tests = !C.implementation @ !T.im... | |
2e638b16824e783e8196622b9b7e7490b2c40b7ebf274231318a85586dbca15a | lasp-lang/partisan | gen_server_SUITE.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 1996 - 2021 . All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% -2.0
%%
%% Unless required by applicab... | null | https://raw.githubusercontent.com/lasp-lang/partisan/e37ca042f82f4a9d91747dcd8ecd0d3da17667ec/otp_src/otp_24.3.4.8/gen_server_SUITE.erl | erlang |
%CopyrightBegin%
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific lan... | Copyright Ericsson AB 1996 - 2021 . 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(gen_server_SUITE).
-include_lib("common_test/include/ct.hrl").
-include_lib("kernel/include/inet.hrl").
-ex... |
411c961f2314873abb345433383e20d4314197bd05bfd258a69b7ded50c2a995 | yoriyuki/Camomile | configInt.ml | (** Configuration values *)
module type Type = sig
* Directory of compiled Unicode data
val datadir : string
(** Directory of compiled character mapping tables a la ISO *)
val charmapdir : string
(** Directory of camomile-style compiled character mapping table *)
val unimapdir : string
(** Directory of c... | null | https://raw.githubusercontent.com/yoriyuki/Camomile/d7d8843c88fae774f513610f8e09a613778e64b3/Camomile/configInt.ml | ocaml | * Configuration values
* Directory of compiled character mapping tables a la ISO
* Directory of camomile-style compiled character mapping table
* Directory of compiled locale data | module type Type = sig
* Directory of compiled Unicode data
val datadir : string
val charmapdir : string
val unimapdir : string
val localedir : string
end
|
1f220e7f7dd89d2702e88a3c6d987ec4c48f0cc1337b61b8d0efa640e1e00beb | tcsprojects/pgsolver | stratimprgenerators.mli | open Paritygame
open Mdp
module SymbolicParityGame : sig
type 'a symbolic_paritygame
val create_new: 'a -> 'a symbolic_paritygame
val to_paritygame: 'a symbolic_paritygame -> paritygame
val touch_node: 'a symbolic_paritygame -> 'a -> unit
val add_node: 'a symbolic_paritygame -> 'a -> priority -> player -... | null | https://raw.githubusercontent.com/tcsprojects/pgsolver/b0c31a8b367c405baed961385ad645d52f648325/src/generators/policyiter/stratimprgenerators.mli | ocaml | open Paritygame
open Mdp
module SymbolicParityGame : sig
type 'a symbolic_paritygame
val create_new: 'a -> 'a symbolic_paritygame
val to_paritygame: 'a symbolic_paritygame -> paritygame
val touch_node: 'a symbolic_paritygame -> 'a -> unit
val add_node: 'a symbolic_paritygame -> 'a -> priority -> player -... | |
a20833d3b98f5893b4f7d1ead2330fa9f3cf7ab8a39c28509d8c77c30c4d3890 | triffon/fp-2019-20 | 13--combinations.rkt | #lang racket
(require rackunit rackunit/text-ui)
# # # Задача 13
Напишете функция , комбинации на ` n ` елемента , .
(define (n-choose-k n k)
void)
(run-tests (test-suite "n-choose-k tests"
(check-eq? (n-choose-k 15 0)
1)
(check-eq? (n-choose-k 15 15)
... | null | https://raw.githubusercontent.com/triffon/fp-2019-20/7efb13ff4de3ea13baa2c5c59eb57341fac15641/exercises/computer-science-2/03--higher-order-functions--accumulate/13--combinations.rkt | racket | #lang racket
(require rackunit rackunit/text-ui)
# # # Задача 13
Напишете функция , комбинации на ` n ` елемента , .
(define (n-choose-k n k)
void)
(run-tests (test-suite "n-choose-k tests"
(check-eq? (n-choose-k 15 0)
1)
(check-eq? (n-choose-k 15 15)
... | |
4e59ac195e261725de96984b1e3a19c11f4e36ad382732923ea6491ce51b5ae6 | sdiehl/llvm-codegen | Builder.hs | # LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE DeriveFunctor #
# OPTIONS_GHC -fno - warn - unused - do - bind #
# OPTIONS_GHC -fno - warn - orphans #
module LLVM.Codegen.Builder (
instr,
terminator,
named,
addBlock,
setBlock,
entryBlock,
createBlocks,
createGlobals,
getBlock,
getTerm,
addGl... | null | https://raw.githubusercontent.com/sdiehl/llvm-codegen/6a88ecb4bc5af53491e5013d6a61181a2eeb41df/src/LLVM/Codegen/Builder.hs | haskell | ^ Name of the active block to append to
^ Blocks for function
^ Function scope symbol table
^ Count of basic blocks
^ Count of unnamed instructions
^ Name Supply
^ Globals to add to outer module
^ Block index
^ Stack of instructions
^ Block terminator
| Return the current basic block
| Append an instruction... | # LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE DeriveFunctor #
# OPTIONS_GHC -fno - warn - unused - do - bind #
# OPTIONS_GHC -fno - warn - orphans #
module LLVM.Codegen.Builder (
instr,
terminator,
named,
addBlock,
setBlock,
entryBlock,
createBlocks,
createGlobals,
getBlock,
getTerm,
addGl... |
64f3940efccf7f8ddab3e6a7621832277c05df91e3e4f0520694c0854141177f | Decentralized-Pictures/T4L3NT | main.ml | (*****************************************************************************)
(* *)
(* Open Source License *)
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < >
(* ... | null | https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/proto_alpha/lib_protocol/test/main.ml | ocaml | ***************************************************************************
Open Source License
Permission is h... | Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < >
to deal in the Software without restriction , including without limitation
and/or sell copies of the Software , and to permit persons to whom the
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR
LIABILITY , WHETH... |
31c91b77b6461886deb8a0a6e512583fe609e3ed745315a08b61c777e6131e0b | zotonic/zotonic | z_quoted_printable.erl | @author < >
Date : 2010 - 02 - 12
2010
%% @doc Encode data to quoted printable strings.
Copyright 2010
%%
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... | null | https://raw.githubusercontent.com/zotonic/zotonic/852f627c28adf6e5212e8ad5383d4af3a2f25e3f/apps/zotonic_core/src/support/z_quoted_printable.erl | erlang | @doc Encode data to quoted printable strings.
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 L... | @author < >
Date : 2010 - 02 - 12
2010
Copyright 2010
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(z_quoted_printable).
-author("Marc Worrell <>").
-export([
encode/1
]).
encode(L) when is... |
89b4fc142f32982938454534649ac5fcfd15afce011daa74e21af68348802323 | flipstone/orville | Helpers.hs | |
Module : Data . Map . Helpers
Copyright : Flipstone Technology Partners 2016 - 2018
License : MIT
Module : Data.Map.Helpers
Copyright : Flipstone Technology Partners 2016-2018
License : MIT
-}
module Data.Map.Helpers
( groupBy
, groupBy'
) where
import qualified Data.Map.Strict as Map
impor... | null | https://raw.githubusercontent.com/flipstone/orville/aee8d7a47ab3a7b442fdb274dbb5a95d687a23ce/orville-postgresql/src/Data/Map/Helpers.hs | haskell | |
Module : Data . Map . Helpers
Copyright : Flipstone Technology Partners 2016 - 2018
License : MIT
Module : Data.Map.Helpers
Copyright : Flipstone Technology Partners 2016-2018
License : MIT
-}
module Data.Map.Helpers
( groupBy
, groupBy'
) where
import qualified Data.Map.Strict as Map
impor... | |
1ab10c524e6e5864d4fe54d16cba82bd010a620fcf9cdd93ac90374c384e3c47 | granule-project/granule-compiler-llvm | LowerOperator.hs | module Language.Granule.Codegen.Emit.LowerOperator where
import Language.Granule.Codegen.Emit.MkId
import Language.Granule.Codegen.Emit.Types
import Language.Granule.Syntax.Type
import Language.Granule.Syntax.Expr (Operator(..))
import LLVM.AST (Operand)
import LLVM.IRBuilder.Instruction
import LLVM.IRBuilder.Monad
im... | null | https://raw.githubusercontent.com/granule-project/granule-compiler-llvm/e0ae7e742af5acf0b618a440a17b9772b0ae80f5/src/Language/Granule/Codegen/Emit/LowerOperator.hs | haskell | module Language.Granule.Codegen.Emit.LowerOperator where
import Language.Granule.Codegen.Emit.MkId
import Language.Granule.Codegen.Emit.Types
import Language.Granule.Syntax.Type
import Language.Granule.Syntax.Expr (Operator(..))
import LLVM.AST (Operand)
import LLVM.IRBuilder.Instruction
import LLVM.IRBuilder.Monad
im... | |
7ef3eef95eb4440e7bf6d7d546917d460fce3530687d945bc833f4b5c0bf93bb | travelping/capwap | ieee80211_station.erl | Copyright ( C ) 2013 - 2023 , Travelping GmbH < >
%% This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation , either version 3 of the License , or
%% (at your option) any later version.
%% Thi... | null | https://raw.githubusercontent.com/travelping/capwap/76dbd075a4bfd7a4b78af6a9d7fc757357bf85ae/src/ieee80211_station.erl | erlang | This program is free software: you can redistribute it and/or modify
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General P... | Copyright ( C ) 2013 - 2023 , Travelping GmbH < >
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation , either version 3 of the License , or
You should have received a copy of the GNU Affero General Public License
-module(ieee80211_station).
-compile({p... |
faf13102915ee3a53a42a248b2a59be35ebf9c2f83d62c9297e1113669f14c23 | Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library | GelatoReportDocumentOptions.hs | {-# LANGUAGE MultiWayIf #-}
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator .
{-# LANGUAGE OverloadedStrings #-}
| Contains the types generated from the schema GelatoReportDocumentOptions
module StripeAPI.Types.GelatoReportDocumentOptio... | null | https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Types/GelatoReportDocumentOptions.hs | haskell | # LANGUAGE MultiWayIf #
# LANGUAGE OverloadedStrings #
| Defines the object schema located at @components.schemas.gelato_report_document_options@ in the specification.
| allowed_types: Array of strings of allowed identity document types. If the provided identity document isn’t one of the allowed types, the verificati... | CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator .
| Contains the types generated from the schema GelatoReportDocumentOptions
module StripeAPI.Types.GelatoReportDocumentOptions where
import qualified Control.Monad.Fail
import qualified ... |
46113f51693319b1f6e453fc9ef4e54bd332a5db946a866a76c04c7c3b96a345 | earl-ducaine/cl-garnet | boxed-text-list-pix.lisp | (when (boundp 'win) (opal:destroy win))
(create-instance 'win inter:interactor-window
(:left 800) (:top 300)
(:height 210) (:width 180)
(:aggregate (create-instance 'agg opal:aggregate)))
(create-instance 'FRAMED-TEXT-LIST opal:aggrelist
(:left 20) (:top 20)
(:items '("An aggrelist" "using an" "aggregate"... | null | https://raw.githubusercontent.com/earl-ducaine/cl-garnet/f0095848513ba69c370ed1dc51ee01f0bb4dd108/doc/src/aggregadgets/garnet-code/boxed-text-list-pix.lisp | lisp | make the frame gray
make the frame wider
make the frame taller
move the text to allow for the border | (when (boundp 'win) (opal:destroy win))
(create-instance 'win inter:interactor-window
(:left 800) (:top 300)
(:height 210) (:width 180)
(:aggregate (create-instance 'agg opal:aggregate)))
(create-instance 'FRAMED-TEXT-LIST opal:aggrelist
(:left 20) (:top 20)
(:items '("An aggrelist" "using an" "aggregate"... |
8e21505d790996fc0574bcb60722d2fa0a3da852313b6228ef79a3b4e714cd4e | mlabs-haskell/plutus-pioneer-program | NFT.hs | {-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveAnyClass #-}
# LANGUAGE DeriveGeneric #
{-# LANGUAGE FlexibleContexts #-}
# LANGUAGE NoImplicitPrelude #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TemplateHaskell #
# LANGUAGE TypeApplications #
# L... | null | https://raw.githubusercontent.com/mlabs-haskell/plutus-pioneer-program/b50b196d57dc35559b7526fe17b49dd2ba4790bc/code/week05/src/Week05/NFT.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE DeriveAnyClass #
# LANGUAGE FlexibleContexts #
# LANGUAGE OverloadedStrings #
# LANGUAGE TypeOperators #
# INLINABLE mkPolicy # | # LANGUAGE DeriveGeneric #
# LANGUAGE NoImplicitPrelude #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TemplateHaskell #
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilies #
module Week05.NFT where
import Control.Monad hiding (fmap)
import qualified Data.Map ... |
78f6c7165ebbe95033ecf369ae89160fa5faa4fa248da2e900e295a2314c4c17 | clojure-interop/aws-api | AmazonKinesisVideoMediaAsync.clj | (ns com.amazonaws.services.kinesisvideo.AmazonKinesisVideoMediaAsync
"Interface for accessing Kinesis Video Media asynchronously. Each asynchronous method will return a Java Future object
overloads which accept an AsyncHandler can be used to receive
notification when an asynchronous operation completes.
Note: ... | null | https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.kinesisvideo/src/com/amazonaws/services/kinesisvideo/AmazonKinesisVideoMediaAsync.clj | clojure | (ns com.amazonaws.services.kinesisvideo.AmazonKinesisVideoMediaAsync
"Interface for accessing Kinesis Video Media asynchronously. Each asynchronous method will return a Java Future object
overloads which accept an AsyncHandler can be used to receive
notification when an asynchronous operation completes.
Note: ... | |
5e2bbeb04bd0678ccd5d37115b84613ae34b2b61ea69e64a2e4c8cd5fde31a6b | totakke/bosslint | tflint.clj | (ns bosslint.linter.tflint
(:require [bosslint.linter :as linter :refer [deflinter]]
[clojure.java.shell :as shell]
[clojure.string :as string]))
(deflinter :linter/tflint
(name [] "tflint")
(files [file-group]
(linter/select-files file-group [:terraform]))
(lint [files conf]
... | null | https://raw.githubusercontent.com/totakke/bosslint/372fc221d1d5a2fde30faef04cf36888ee1b0cd3/src/bosslint/linter/tflint.clj | clojure | (ns bosslint.linter.tflint
(:require [bosslint.linter :as linter :refer [deflinter]]
[clojure.java.shell :as shell]
[clojure.string :as string]))
(deflinter :linter/tflint
(name [] "tflint")
(files [file-group]
(linter/select-files file-group [:terraform]))
(lint [files conf]
... | |
ea074d991c398cebb91e36372263c9444b975e9f19a1de10730fc2bda79f4983 | uw-unsat/leanette-popl22-artifact | kernel.rkt | (define CLASSID 1)
(define (Kernel_inst_is_a? self kl)
(let ([kl_id (object-id kl)])
(cond [(integer? self) (return (= kl_id 3))]
[(real? self) (return (= kl_id 4))]
TODO : account for superclasses ?
(define (Kernel_inst_class self) (let ([self_id (object-classid self)][kl (object CLASSID (new-obj-... | null | https://raw.githubusercontent.com/uw-unsat/leanette-popl22-artifact/80fea2519e61b45a283fbf7903acdf6d5528dbe7/rosette-benchmarks-3/rtr/verif_libraries/kernel.rkt | racket | (define CLASSID 1)
(define (Kernel_inst_is_a? self kl)
(let ([kl_id (object-id kl)])
(cond [(integer? self) (return (= kl_id 3))]
[(real? self) (return (= kl_id 4))]
TODO : account for superclasses ?
(define (Kernel_inst_class self) (let ([self_id (object-classid self)][kl (object CLASSID (new-obj-... | |
cf5831c82c8e463601bc8d55d0f7cb6bbd3e6e4ba3578068cc3a299f5edeb420 | okuoku/nausicaa | proof-async.sps | -*- coding : utf-8 - unix -*-
;;;
Part of : / PostgreSQL
;;;Contents: test for asynchronous query execution
;;;Date: Wed Feb 24, 2010
;;;
;;;Abstract
;;;
;;;
;;;
Copyright ( c ) 2010 < >
;;;
;;;This program is free software: you can redistribute it and/or modify
;;;it under the terms of the GNU General Public L... | null | https://raw.githubusercontent.com/okuoku/nausicaa/50e7b4d4141ad4d81051588608677223fe9fb715/postgresql/proofs/proof-async.sps | scheme |
Contents: test for asynchronous query execution
Date: Wed Feb 24, 2010
Abstract
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
your option) any later version.
This program is distributed in the hope that it will be use... | -*- coding : utf-8 - unix -*-
Part of : / PostgreSQL
Copyright ( c ) 2010 < >
the Free Software Foundation , either version 3 of the License , or ( at
General Public License for more details .
You should have received a copy of the GNU General Public License
(import (nausicaa)
(formations)
(records... |
3cb028daa1615d9a7ab763c6e4b9dcdfd2c990a5302ed6ca5c117f6f788f982c | kupl/FixML | synthesize.ml | open Lang
open Util
open Printf
(*
******************************************************
Code for Synthesizing the "Hole"
******************************************************
*)
module Workset = struct
type work = int * prog * Type.HoleType.t * Type.VariableType.t
module OrderedType = struct
type t =... | null | https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/engine/synthesize.ml | ocaml |
******************************************************
Code for Synthesizing the "Hole"
******************************************************
type of workset : heap * (string set)
generate a fresh type variable
find type of branch condition
compute type env of each branch
bound each variable type info ... | open Lang
open Util
open Printf
module Workset = struct
type work = int * prog * Type.HoleType.t * Type.VariableType.t
module OrderedType = struct
type t = work
let compare (rank1,p1,_,_) (rank2,p2,_,_) =
let (c1,c2) = (rank1 + (cost p1), rank2 + (cost p2)) in
if c1=c2 then 0 else
if c1>c... |
2cdc20d99b4bd3633beef1a6584489deba80f847abd5090f2e7c426e8f82a0fd | acl2/acl2 | rules12@useless-runes.lsp | (BVCAT-BVXOR-NEIGHBORS-HACK3
(278 268 (:REWRITE DEFAULT-+-2))
(268 268 (:REWRITE DEFAULT-+-1))
(264 8 (:REWRITE <-OF-MINUS-X-AND-X))
(216 10 (:REWRITE BVXOR-OF-SLICE-TIGHTEN-1))
(193 10 (:DEFINITION POSP))
(169 79 (:REWRITE <-OF-+-ARG1-WHEN-NEGATIVE-CONSTANT))
(150 118 (:REWRITE NOT-<-WHEN-SBVLT-ALT))
(148 10 (... | null | https://raw.githubusercontent.com/acl2/acl2/f64742cc6d41c35f9d3f94e154cd5fd409105d34/books/kestrel/bv/.sys/rules12%40useless-runes.lsp | lisp | (BVCAT-BVXOR-NEIGHBORS-HACK3
(278 268 (:REWRITE DEFAULT-+-2))
(268 268 (:REWRITE DEFAULT-+-1))
(264 8 (:REWRITE <-OF-MINUS-X-AND-X))
(216 10 (:REWRITE BVXOR-OF-SLICE-TIGHTEN-1))
(193 10 (:DEFINITION POSP))
(169 79 (:REWRITE <-OF-+-ARG1-WHEN-NEGATIVE-CONSTANT))
(150 118 (:REWRITE NOT-<-WHEN-SBVLT-ALT))
(148 10 (... | |
b5afa988143a70a4ba6ac45a6f21f58a1da2361ce4534480f9fb57cd69c8f4bd | bob-cd/bob | engine.clj | ; Copyright 2018- Rahul De
;
Use of this source code is governed by an MIT - style
; license that can be found in the LICENSE file or at
; .
(ns runner.engine
(:require
[clojure.java.io :as io]
[clojure.string :as s]
[clojure.tools.logging :as log]
[contajners.core :as c]
[failjure.core :as f])
(:... | null | https://raw.githubusercontent.com/bob-cd/bob/ce340eafd179aee7f20bdaf29e291916c94a7337/runner/src/runner/engine.clj | clojure | Copyright 2018- Rahul De
license that can be found in the LICENSE file or at
.
do echo \\\"${RANDOM}\\\"; done'
do echo \"${RANDOM}\"; done]"
unprivileged | Use of this source code is governed by an MIT - style
(ns runner.engine
(:require
[clojure.java.io :as io]
[clojure.string :as s]
[clojure.tools.logging :as log]
[contajners.core :as c]
[failjure.core :as f])
(:import
[java.io BufferedReader]))
(def api-version "v4.4.1")
(def conn
{:uri (or... |
925203c7d628331146a814faa96eab383ed105ca66a0e463e4af3c9a636864d5 | erlang/otp | infinite_loop.erl | -module(infinite_loop).
-compile([export_all]).
?MODULE() ->
ok.
%% When a series of calls initiated by a fun went into an infinite loop,
%% the compiler went into an infinite loop too.
foo() ->
fun bar/0().
bar() ->
baz().
baz() ->
bar().
foobar() ->
fun barfoo/0().
barfoo() ->
barfoo().
... | null | https://raw.githubusercontent.com/erlang/otp/4977690d2c2c7d396a3c6916b266b4001e85d870/lib/compiler/test/compilation_SUITE_data/infinite_loop.erl | erlang | When a series of calls initiated by a fun went into an infinite loop,
the compiler went into an infinite loop too.
Analyzing them would cause an infinite loop. | -module(infinite_loop).
-compile([export_all]).
?MODULE() ->
ok.
foo() ->
fun bar/0().
bar() ->
baz().
baz() ->
bar().
foobar() ->
fun barfoo/0().
barfoo() ->
barfoo().
GH-6474 . The compiler would go into an infinite loop .
bc_infinite_loop() ->
mutually_recursive(<<0 || false>>).... |
688bf1635a275135a9270371c70853e8ef92aa2ff290cb0bbb75d9d6e8932269 | input-output-hk/cardano-sl | AllSecrets.hs | # LANGUAGE RecordWildCards #
{-# LANGUAGE TypeFamilies #-}
-- | Access to all secrets in the system. It's needed mostly for
-- testing. Not for production.
module Pos.AllSecrets
( InvSecretsMap
, unInvSecretsMap
, mkInvSecretsMap
, InvAddrSpendingData
, unInvAddrSpendingData
... | null | https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/lib/src/Pos/AllSecrets.hs | haskell | # LANGUAGE TypeFamilies #
| Access to all secrets in the system. It's needed mostly for
testing. Not for production.
| This map effectively provides inverse of 'hash' and
'toPublic' functions. It's quite useful in tests and block
generator. (/Inv/ means /inverse/).
| Make 'InvSecretsMap' from a list of secret ... | # LANGUAGE RecordWildCards #
module Pos.AllSecrets
( InvSecretsMap
, unInvSecretsMap
, mkInvSecretsMap
, InvAddrSpendingData
, unInvAddrSpendingData
, mkInvAddrSpendingData
, AllSecrets (..)
, HasAllSecrets (..)
, mkAllSecretsSimple
) where
import... |
f85b7e884c9710c85f3f02b0ba5ba8ddf31788bc7cbc4c41b36a50ab5bd9ef8b | static-analysis-engineering/codehawk | bCHSystemSettings.ml | = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
CodeHawk Binary Analyzer
Author : ------------------------------------------------------------------------------
The MIT License ( MIT )
Co... | null | https://raw.githubusercontent.com/static-analysis-engineering/codehawk/87db5929b4e589511d644f84defd1b0a722a05b9/CodeHawk/CHB/bchlib/bCHSystemSettings.ml | ocaml | chutil
bchlib
-------------------------------------------------------------------------
* Command-line switches:
* - set_vftables: for all jump tables, if one of the targets is a function entry
* then declare all targets to be function entry points, if enabled
* default setting: disabled
names o... | = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
CodeHawk Binary Analyzer
Author : ------------------------------------------------------------------------------
The MIT License ( MIT )
Co... |
b13f3a9eecd34455d63ab59ede8681c378e63b17ed5f2672fcb9aaf2003b7f2c | michaelballantyne/ee-lib | errors.rkt | #lang racket/base
(provide raise-argument-error/stx (struct-out exn:fail:contract:srcloc))
(define-struct (exn:fail:contract:srcloc
exn:fail:contract)
(srcloc)
#:property prop:exn:srclocs
(lambda (s)
(list (exn:fail:contract:srcloc-srcloc s))))
(define (syntax->srcloc blame-stx)
(srcloc
... | null | https://raw.githubusercontent.com/michaelballantyne/ee-lib/10f3dfe3b0a0ecd646de11cbbf706e8028a989b2/errors.rkt | racket | #lang racket/base
(provide raise-argument-error/stx (struct-out exn:fail:contract:srcloc))
(define-struct (exn:fail:contract:srcloc
exn:fail:contract)
(srcloc)
#:property prop:exn:srclocs
(lambda (s)
(list (exn:fail:contract:srcloc-srcloc s))))
(define (syntax->srcloc blame-stx)
(srcloc
... | |
7a8c186cdcbe6e927e9d58191e3bdad2ca4cc78b1ed7e34a239734f231f3150a | techascent/tech.datatype | typecast.clj | (ns tech.v2.tensor.typecast
(:require [tech.v2.datatype.casting :as casting]
[tech.v2.tensor.protocols :as tensor-proto])
(:import [tech.v2.tensor
ByteTensorReader ShortTensorReader IntTensorReader
LongTensorReader FloatTensorReader DoubleTensorReader
BooleanTensorRea... | null | https://raw.githubusercontent.com/techascent/tech.datatype/8cc83d771d9621d580fd5d4d0625005bd7ab0e0c/src/tech/v2/tensor/typecast.clj | clojure | (ns tech.v2.tensor.typecast
(:require [tech.v2.datatype.casting :as casting]
[tech.v2.tensor.protocols :as tensor-proto])
(:import [tech.v2.tensor
ByteTensorReader ShortTensorReader IntTensorReader
LongTensorReader FloatTensorReader DoubleTensorReader
BooleanTensorRea... | |
42be2163c59e6d934496f4019340b004bf8e4ec1864fbd55eb3611f0b13b9be2 | GaloisInc/macaw | ArchTypes.hs |
Copyright : ( c ) Galois , Inc 2015 - 2017
Maintainer : < > , < >
This defines the X86_64 architecture type and the supporting definitions .
Copyright : (c) Galois, Inc 2015-2017
Maintainer : Joe Hendrix <>, Simon Winwood <>
This defines the X86_64 architecture type and the s... | null | https://raw.githubusercontent.com/GaloisInc/macaw/9ce3d43188f42937593155a6c6fd26bdba0c6cc0/x86/src/Data/Macaw/X86/ArchTypes.hs | haskell | # LANGUAGE EmptyDataDecls #
# LANGUAGE GADTs #
# LANGUAGE OverloadedStrings #
# LANGUAGE RankNTypes #
* Architecture
----------------------------------------------------------------------
| Defines a width of a register associated with SIMD operations
| Number of bytes in @SIMDByteCount@.
| Defines a width of a reg... |
Copyright : ( c ) Galois , Inc 2015 - 2017
Maintainer : < > , < >
This defines the X86_64 architecture type and the supporting definitions .
Copyright : (c) Galois, Inc 2015-2017
Maintainer : Joe Hendrix <>, Simon Winwood <>
This defines the X86_64 architecture type and the s... |
c13377b963a15a85589aae2693b435aca8caf0a21dedeaf1ab1fbce7a0a76bac | juspay/atlas | Common.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/Common.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... | |
1d9c17732d96b3a1193b822b8dda83d7d029f03abdecf6daac939801b06a78ab | zenspider/schemers | exercise.5.27.scm | #!/usr/bin/env csi -s
(require rackunit)
Exercise 5.27
For comparison with * Note Exercise 5 - 26 : : ,
;; explore the behavior of the following procedure for computing
;; factorials recursively:
;;
;; (define (factorial n)
;; (if (= n 1)
1
;; (* (factorial (- n 1)) n)))
;;
;;... | null | https://raw.githubusercontent.com/zenspider/schemers/2939ca553ac79013a4c3aaaec812c1bad3933b16/sicp/ch_5/exercise.5.27.scm | scheme | explore the behavior of the following procedure for computing
factorials recursively:
(define (factorial n)
(if (= n 1)
(* (factorial (- n 1)) n)))
By running this procedure with the monitored stack, determine, as
a function of n, the maximum depth of the stack and the total
functions w... | #!/usr/bin/env csi -s
(require rackunit)
Exercise 5.27
For comparison with * Note Exercise 5 - 26 : : ,
1
number of pushes used in evaluating n ! for n > = 1 . ( Again , these
|
f6e636b63a13e2411bf6c13147ad452b1ae39698f6d04844f0a62e993aaec539 | reasonml-old/bs-containers | bstring.mli |
(* This file is free software, part of containers. See file "license" for more details. *)
* { 1 Basic String Utils }
Consider using { ! Containers_string . KMP } for pattern search , or Regex
libraries .
Consider using {!Containers_string.KMP} for pattern search, or Regex
libraries. *)
(*-- S... | null | https://raw.githubusercontent.com/reasonml-old/bs-containers/dfd1360dc74ede57c09e9f9d837ce59285af6fd2/src/bstring.mli | ocaml | This file is free software, part of containers. See file "license" for more details.
-- Start stdlib string, from --
* An alias for the type of strings.
*/*
The following is for system use only. Do not call directly.
-- End stdlib string --
* Similar to {!String.blit}.
Compatible with the [-safe-string] opt... |
* { 1 Basic String Utils }
Consider using { ! Containers_string . KMP } for pattern search , or Regex
libraries .
Consider using {!Containers_string.KMP} for pattern search, or Regex
libraries. *)
type t = string
type 'a gen = unit -> 'a option
type 'a sequence = ('a -> unit) -> unit
exter... |
7fd116618e355b52e8d61a524a51121d6ba2e4802268e71c5812c74b65f0da5b | jaspervdj/hakyll | Metadata.hs | --------------------------------------------------------------------------------
# LANGUAGE CPP #
module Hakyll.Core.Metadata
( Metadata
, lookupString
, lookupStringList
, MonadMetadata (..)
, getMetadataField
, getMetadataField'
, makePatternDependency
, BinaryMetadata (..)
) whe... | null | https://raw.githubusercontent.com/jaspervdj/hakyll/6b0ccabdfa32cfcee101c9395d3b49954fe43bca/lib/Hakyll/Core/Metadata.hs | haskell | ------------------------------------------------------------------------------
------------------------------------------------------------------------------
------------------------------------------------------------------------------
------------------------------------------------------------------------------
----... | # LANGUAGE CPP #
module Hakyll.Core.Metadata
( Metadata
, lookupString
, lookupStringList
, MonadMetadata (..)
, getMetadataField
, getMetadataField'
, makePatternDependency
, BinaryMetadata (..)
) where
import Control.Monad (forM)
#if !MIN_VERSION_base... |
928e0852c9f668a038c184dd20334f33fd46062ce79abd6dd99809bad6dd6008 | ijvcms/chuanqi_dev | lottery_db_cache.erl | %%%-------------------------------------------------------------------
@author apple
( C ) 2015 , < COMPANY >
%%% @doc
%%%
%%% @end
Created : 30 . 2015 19:19
%%%-------------------------------------------------------------------
-module(lottery_db_cache).
-include("common.hrl").
-include("cache.hrl").
-expor... | null | https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/business/lottery/lottery_db_cache.erl | erlang | -------------------------------------------------------------------
@doc
@end
-------------------------------------------------------------------
API | @author apple
( C ) 2015 , < COMPANY >
Created : 30 . 2015 19:19
-module(lottery_db_cache).
-include("common.hrl").
-include("cache.hrl").
-export([
select_row/1,
insert/1,
update/2
]).
select_row(LotteryId) ->
db_cache_lib:select_row(?DB_LOTTERY_DB, LotteryId).
update(LotteryId, LotteryInfo) ->
db_ca... |
85b16ff1d7d1220756bf3f4dbaa001cd89665da80ac3c2777284a61d59e9db7f | erlang/otp | crypto.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 1999 - 2023 . All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% -2.0
%%
%% Unless required by applicab... | null | https://raw.githubusercontent.com/erlang/otp/b0a752c6d0844d09a53e7cf3326787fec79c8806/lib/crypto/src/crypto.erl | erlang |
%CopyrightBegin%
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific lan... | Copyright Ericsson AB 1999 - 2023 . 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(crypto).
-export([start/0, stop/0, info/0, info_lib/0, info_fips/0, supports/0, enable_fips_mode/1,
... |
fff2246094b2fe52533cde86e007e6a0d821bf93c04b843c381fceecfb303cef | timbertson/vdoml | vdom_.ml | open Js_of_ocaml
open Attr_
open Event_
open Util_
open Event_chain_
module Vdom = struct
pure VDOM widgets , which have no knowledge of HTML / JS
* but do have the concept of internal + user - assigned identities
* but do have the concept of internal + user-assigned identities *)
type internal_tag = int
... | null | https://raw.githubusercontent.com/timbertson/vdoml/fcbf81e89df989206bdad4a92327e593078525b2/src/vdom_.ml | ocaml | proof: if mapa == mapb then the type paramater of `a` and `b` must also equal | open Js_of_ocaml
open Attr_
open Event_
open Util_
open Event_chain_
module Vdom = struct
pure VDOM widgets , which have no knowledge of HTML / JS
* but do have the concept of internal + user - assigned identities
* but do have the concept of internal + user-assigned identities *)
type internal_tag = int
... |
3427057d9e1e1dbb85c4076320e7a4956a5704803b6766977c1c8cc5e9e7c9de | rustyio/sync | sync_notify.erl | %% vim: ts=4 sw=4 et
-module(sync_notify).
%% API
-export([
startup/1,
growl_success/1,
growl_success/2,
growl_errors/1,
growl_warnings/1,
log_success/1,
log_success/2,
log_errors/1,
log_errors/2,
log_warnings/1,
log_warnings/2
]).
startup(Growl) ->
case {Growl, os:typ... | null | https://raw.githubusercontent.com/rustyio/sync/7c9367e73b7dbb01a788f8d0120d747330112f6f/src/sync_notify.erl | erlang | vim: ts=4 sw=4 et
API
PRIVATE FUNCTIONS %%%
Return a new string with chars replaced.
@spec replace_chars(iolist(), [{char(), char() | string()}] -> iolist().
Return a new string constructed of source lines double quoted and
delimited by space. |
-module(sync_notify).
-export([
startup/1,
growl_success/1,
growl_success/2,
growl_errors/1,
growl_warnings/1,
log_success/1,
log_success/2,
log_errors/1,
log_errors/2,
log_warnings/1,
log_warnings/2
]).
startup(Growl) ->
case {Growl, os:type()} of
{none, _} ->... |
b8d6a95c974e71b579066b1eeaedc3977163464b7a9e959366d0d8e2bb235de0 | triffon/fp-2019-20 | 01-fun-with-digits.rkt | #lang racket
Искаме да дефинираме следните имена : one , two , three , ... , nine , plus , minus , times , div ,
така че извиквания от типа на ( one ( plus ( three ) ) ) ( операция с ) да връщат легитимни числови стойности ( в този случай - 4 )
; Още малко примери:
( three ( times ( five ) ) ) - > 15
( nine... | null | https://raw.githubusercontent.com/triffon/fp-2019-20/7efb13ff4de3ea13baa2c5c59eb57341fac15641/homeworks/scheme/01-fun-with-digits.rkt | racket | Още малко примери:
| #lang racket
Искаме да дефинираме следните имена : one , two , three , ... , nine , plus , minus , times , div ,
така че извиквания от типа на ( one ( plus ( three ) ) ) ( операция с ) да връщат легитимни числови стойности ( в този случай - 4 )
( three ( times ( five ) ) ) - > 15
( nine ( div ( three ) ) ) ... |
40301dd95e77301dd1bfba9fc7747cd3a384bcde7f7071022499fe715cb65bff | guicho271828/recursive-macroexpansion | util.lisp |
(in-package :cl21-user)
(in-package :recursive-macroexpansion)
;; *macroexpand-hook* = 'funcall by default
(defun take-whole (lambda-list)
(if (eq (first lambda-list) '&whole)
(values (second lambda-list) (cddr lambda-list))
(values (gensym "WHOLE") lambda-list)))
(defun take-env (lambda-list)
(%tak... | null | https://raw.githubusercontent.com/guicho271828/recursive-macroexpansion/22ef75f3e36471b07459f1d00b43b4595b4e4063/src/util.lisp | lisp | *macroexpand-hook* = 'funcall by default
(take-env '(a b &environment env d)) |
(in-package :cl21-user)
(in-package :recursive-macroexpansion)
(defun take-whole (lambda-list)
(if (eq (first lambda-list) '&whole)
(values (second lambda-list) (cddr lambda-list))
(values (gensym "WHOLE") lambda-list)))
(defun take-env (lambda-list)
(%take nil lambda-list))
(defun %take (acc rest)... |
ec6d5cb9aef4109c12c120cec58e3f9dda6a9aff14494508b0c742225ed5f3f0 | justinethier/cyclone | vectors-impl.scm | SRFI 43 : Vector library -*- Scheme -*-
;;;
$ Id$
;;;
wrote this code ; he places it in the public domain .
[ wdc ] made some corrections , also in the public domain .
modified this code for SRFI 133 ; his changes are also in
;;; the public domain. However, in jurisdictions w... | null | https://raw.githubusercontent.com/justinethier/cyclone/a1c2a8f282f37ce180a5921ae26a5deb04768269/srfi/vectors-impl.scm | scheme |
he places it in the public domain .
his changes are also in
the public domain. However, in jurisdictions where it is not possible
to dedicate something to the public domain, the entire implementation
--------------------
Exported procedure index
* Constructors
vector-unfold vector-unfold-r... | SRFI 43 : Vector library -*- Scheme -*-
$ Id$
[ wdc ] made some corrections , also in the public domain .
is made available under the same license as SRFI 133 .
loops are lambda - lifted , and only if some routine has two possible
closure in their body ( VECTOR - PARSE - STAR... |
8bfe60f8d8c2c4bd1cd96313f56831c0ca5258cce29af9ec1539f4b76fb77cf4 | GaloisInc/saw-script | Token.hs | |
Module : . Token
Description : Token type for SAW - Script lexer .
Maintainer : atomb
Stability : provisional
Module : SAWScript.Token
Description : Token type for SAW-Script lexer.
Maintainer : atomb
Stability : provisional
-}
# LANGUAGE DeriveFunctor #
module SAWScript.Token where
... | null | https://raw.githubusercontent.com/GaloisInc/saw-script/46249dbc7bae5f48623a709b1df1cc1ea002d4c5/src/SAWScript/Token.hs | haskell | |
Module : . Token
Description : Token type for SAW - Script lexer .
Maintainer : atomb
Stability : provisional
Module : SAWScript.Token
Description : Token type for SAW-Script lexer.
Maintainer : atomb
Stability : provisional
-}
# LANGUAGE DeriveFunctor #
module SAWScript.Token where
... | |
fcce64f53f3cbda4882070c0806bfa660f9ff40124863888d25314ebe826daf5 | Khepu/cron-condenser | expander.clj | (ns cron-condenser.expander
(:require
[clojure.string :as string]
[clojure.spec.alpha :as s]
[cron-condenser.constants :refer :all]
[cron-condenser.utils :refer [->byte index-of]]
[cron-condenser.validator :refer :all]
[cron-condenser.cron-expression :refer [map->CronExpression]])
(:import
[clo... | null | https://raw.githubusercontent.com/Khepu/cron-condenser/2137714eca8efa619a513eea04c3ecdb3323ecf7/src/cron_condenser/expander.clj | clojure | Minute expansion
Hour expansion
Day expansion
Month expansion | (ns cron-condenser.expander
(:require
[clojure.string :as string]
[clojure.spec.alpha :as s]
[cron-condenser.constants :refer :all]
[cron-condenser.utils :refer [->byte index-of]]
[cron-condenser.validator :refer :all]
[cron-condenser.cron-expression :refer [map->CronExpression]])
(:import
[clo... |
c661cc5638e4154fa22d050d8c0d5f03eeb4541c2679f0caeacf9b846fbc0b5b | geophf/1HaskellADay | Exercise.hs | module Y2018.M08.D20.Exercise where
-
Today 's haskell problem , distill :
-94d3-11e8-81a7-7310897d834f.html
to its UUID :
f88063e4 - 94d3 - 11e8 - 81a7 - 7310897d834f
-
Today's haskell problem, distill:
-94d3-11e8-81a7-7310897d834f.html
to its UUID:
f88063e4-94d3-11e8-81a7-7310897d834f
--}
distill2UU... | null | https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2018/M08/D20/Exercise.hs | haskell | }
do it for the following urls:
question: how many URL did you distill? | module Y2018.M08.D20.Exercise where
-
Today 's haskell problem , distill :
-94d3-11e8-81a7-7310897d834f.html
to its UUID :
f88063e4 - 94d3 - 11e8 - 81a7 - 7310897d834f
-
Today's haskell problem, distill:
-94d3-11e8-81a7-7310897d834f.html
to its UUID:
f88063e4-94d3-11e8-81a7-7310897d834f
distill2UUID :... |
4d942e0af9f53375d5f2d7985b5b7764d60ddeabdf0cecdd8b9bc407ec0abd8e | david-vanderson/warp | physics.rkt | #lang racket/base
(require "defs.rkt"
"utils.rkt"
"quadtree.rkt"
"plasma.rkt"
"explosion.rkt"
"shield.rkt"
"effect.rkt"
"ships.rkt"
"warp.rkt"
"upgrade.rkt")
(provide (all-defined-out))
what is put into the quadtree and used for colli... | null | https://raw.githubusercontent.com/david-vanderson/warp/cdc1d0bd942780fb5360dc6a34a2a06cf9518408/physics.rkt | racket | - collisions determine obj-neb (how far inside nebula)
also used for fog of war (view? #t)
return a list of changes
return a list of changes
return a list of changes
return a list of changes
x,y are now the position of the plasma in the coord space of the shield
shield is along the y axis
ships aren't moving, ... | #lang racket/base
(require "defs.rkt"
"utils.rkt"
"quadtree.rkt"
"plasma.rkt"
"explosion.rkt"
"shield.rkt"
"effect.rkt"
"ships.rkt"
"warp.rkt"
"upgrade.rkt")
(provide (all-defined-out))
what is put into the quadtree and used for colli... |
1e7d8c812d11f27b31226eea8ace98ccc385adc8097f423f2a4338cf731d10c7 | clash-lang/clash-compiler | Extra.hs | # LANGUAGE LambdaCase #
module Test.Tasty.HUnit.Extra
( expectException
, expectXException
, expectExceptionNoX
) where
import Control.DeepSeq (NFData)
import Control.Exception (SomeException, try, evaluate)
import Test.Tasty.HUnit
import Clash.XException (XException)
-- | Succeed if evaluating leads to an ... | null | https://raw.githubusercontent.com/clash-lang/clash-compiler/234aee9d983a8f9f8438b15fcc30397ec73d37ab/clash-prelude/tests/Test/Tasty/HUnit/Extra.hs | haskell | | Succeed if evaluating leads to an XException
| Succeed if evaluating leads to a non-XException Exception | # LANGUAGE LambdaCase #
module Test.Tasty.HUnit.Extra
( expectException
, expectXException
, expectExceptionNoX
) where
import Control.DeepSeq (NFData)
import Control.Exception (SomeException, try, evaluate)
import Test.Tasty.HUnit
import Clash.XException (XException)
expectXException :: (Show a) => a -> As... |
a43a81bebc8975fe9999f19832b81ef264bc134ecd2c2adcba1c4e24f9f6bdc2 | mhuebert/maria | ext.cljc | (ns lark.tree.ext
(:require [clojure.string :as string]
[lark.tree.emit :as emit]
[lark.tree.reader :as rd]
[lark.tree.node :as n]))
(defn normalize-comment-line [s]
(string/replace s #"^;+\s?" ""))
(comment
;; IN PROGRESS
;; thinking about a better way to group comment and ... | null | https://raw.githubusercontent.com/mhuebert/maria/15586564796bc9273ace3101b21662d0c66b4d22/editor/vendor/lark/tree/ext.cljc | clojure | IN PROGRESS
thinking about a better way to group comment and code blocks
...contemplating a transducer, or similar thing? | (ns lark.tree.ext
(:require [clojure.string :as string]
[lark.tree.emit :as emit]
[lark.tree.reader :as rd]
[lark.tree.node :as n]))
(defn normalize-comment-line [s]
(string/replace s #"^;+\s?" ""))
(comment
(defn conj-while [[out in] xform]
(loop [out out
in in... |
8768b2e142d5ca921bc84e56e1a1fe7b4beb173b560cde81ba4d60725062bf76 | fjvallarino/monomer | ColorTable.hs | |
Module : . Graphics . ColorTable
Copyright : ( c ) 2018
License : BSD-3 - Clause ( see the LICENSE file )
Maintainer :
Stability : experimental
Portability : non - portable
Color table imported from .
Module : Monomer.Graphics.ColorTable
Copyright : (c) 2018 Francisco V... | null | https://raw.githubusercontent.com/fjvallarino/monomer/3b321ed0bd5c1458864c02696c43aa39b627640f/src/Monomer/Graphics/ColorTable.hs | haskell | |
Module : . Graphics . ColorTable
Copyright : ( c ) 2018
License : BSD-3 - Clause ( see the LICENSE file )
Maintainer :
Stability : experimental
Portability : non - portable
Color table imported from .
Module : Monomer.Graphics.ColorTable
Copyright : (c) 2018 Francisco V... | |
054de659f782f52a9ea9db8825b80c1b62b959e8867551f263b17dc833e16933 | hugoduncan/makejack | impl.clj | (ns makejack.verbose.impl)
(defn println-when-verbose
[{:keys [verbose]} args]
(when verbose
(apply println args)))
| null | https://raw.githubusercontent.com/hugoduncan/makejack/9676516be89b36295477bb59e26e09b8c9916597/components/verbose/src/makejack/verbose/impl.clj | clojure | (ns makejack.verbose.impl)
(defn println-when-verbose
[{:keys [verbose]} args]
(when verbose
(apply println args)))
| |
aedc0898fd48a63a9910a551cd2e101e433035d100a735df49f1813953fab2b5 | kuribas/haskell-opentype | test.hs | main = return ()
| null | https://raw.githubusercontent.com/kuribas/haskell-opentype/06d24f726370d68dc71509157a87e3a929475a4f/tests/test.hs | haskell | main = return ()
| |
9ec44bab39df05267713ce510e77856b864536736f8f0f9949624f3c99d7630d | clash-lang/clash-compiler | T1881.hs | module T1881 where
import qualified Prelude as P
import Data.List (isInfixOf)
import System.Environment (getArgs)
import System.FilePath ((</>), takeDirectory)
import Clash.Prelude
topEntity :: Bool -> Bool -> (Bool, Bool, Bool)
topEntity a b = (a && b, a || b, not a)
assertIn :: String -> String -> IO ()
assertIn ... | null | https://raw.githubusercontent.com/clash-lang/clash-compiler/1afe0084b16a0674fb58379d3d44585ff2b47720/tests/shouldwork/Issues/T1881.hs | haskell | Each of these operators should appear, instead of the options being
expanded out into multiplexers.
Each of these operators should appear, instead of the options being
expanded out into multiplexers. | module T1881 where
import qualified Prelude as P
import Data.List (isInfixOf)
import System.Environment (getArgs)
import System.FilePath ((</>), takeDirectory)
import Clash.Prelude
topEntity :: Bool -> Bool -> (Bool, Bool, Bool)
topEntity a b = (a && b, a || b, not a)
assertIn :: String -> String -> IO ()
assertIn ... |
883e34820e8da8962940eb4b34c1edd2b3324665b2fed563ac78a0d9450af158 | RefactoringTools/wrangler | wrangler_gen.erl | Copyright ( c ) 2010 , ,
%% All rights reserved.
%%
%% Redistribution and use in source and binary forms, with or without
%% modification, are permitted provided that the following conditions are met:
%% %% Redistributions of source code must retain the above copyright
%% notice, this list of condition... | null | https://raw.githubusercontent.com/RefactoringTools/wrangler/1c33ad0e923bb7bcebb6fd75347638def91e50a8/src/wrangler_gen.erl | erlang | All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
%% Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
%% Red... | Copyright ( c ) 2010 , ,
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR
-module(wrangler_gen).
-export([rename_fun/4, rename_fun/5,
rename_var/5, rename_var/6,
rename_mod/3, ... |
57334faf1a87f505d595583a11b414f453ce2ea699eebc1bdc4f1a2f66c029b5 | devaspot/eds | eds.erl | -module(eds).
-author('Maxim Sokhatsky <>').
-export([start/0]).
-compile(export_all).
-include("LDAP.hrl").
-include("roster.hrl").
-define(TCP_OPTIONS, [binary, {packet, 0}, {active, false}, {reuseaddr, true}]).
start() ->
listen(1389).
listen(Port) ->
... | null | https://raw.githubusercontent.com/devaspot/eds/fd3310008d256c65a9d85075399ac0701ea558bf/src/eds.erl | erlang | -module(eds).
-author('Maxim Sokhatsky <>').
-export([start/0]).
-compile(export_all).
-include("LDAP.hrl").
-include("roster.hrl").
-define(TCP_OPTIONS, [binary, {packet, 0}, {active, false}, {reuseaddr, true}]).
start() ->
listen(1389).
listen(Port) ->
... | |
58f1854e98197b41e29991368de66d60bf48e036c9e400bce5b38f62b7330a4d | INRIA/zelus | dependences.ml | (***********************************************************************)
(* *)
(* *)
(* Zelus, a synchronous language for hybrid systems *)
(* ... | null | https://raw.githubusercontent.com/INRIA/zelus/7e0a87716d4d570c41958e3b8c8ef9f45dfcc730/compiler/rewrite/dependences.ml | ocaml | *********************************************************************
Zelus, a synchronous language for hybrid systems
... | ( c ) 2020 Paris ( see the file )
Automatique . All rights reserved . This file is distributed under
the terms of the INRIA Non - Commercial License Agreement ( see the
open Zelus
open Graph
type 'a collection =
| Leaf of 'a
let read ({ eq_write; eq_desc } as eq) =
le... |
0be8b9c3942569be8c65ea9cab5ac97a1f225690617fe27a21ec807d4eae47c7 | zelark/AoC-2020 | day_16.clj | (ns zelark.aoc-2020.day-16
(:require [clojure.java.io :as io]
[clojure.string :as str]))
--- Day 16 : Ticket Translation ---
;;
(def input (slurp (io/resource "input_16.txt")))
(defn parse-longs [s]
(->> (re-seq #"\d+" s)
(mapv #(Long/parseLong %))))
(defn parse-input [input]
(let [[rules... | null | https://raw.githubusercontent.com/zelark/AoC-2020/5417c3514889eb02efc23f6be7d69e29fdfa0376/src/zelark/aoc_2020/day_16.clj | clojure | (ns zelark.aoc-2020.day-16
(:require [clojure.java.io :as io]
[clojure.string :as str]))
--- Day 16 : Ticket Translation ---
(def input (slurp (io/resource "input_16.txt")))
(defn parse-longs [s]
(->> (re-seq #"\d+" s)
(mapv #(Long/parseLong %))))
(defn parse-input [input]
(let [[rules my-... | |
41c2c8160babc63fdd95d27caaab8619501e41efd6388e4a5b9235cfd842fcc0 | dongcarl/guix | ssh.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 2016 , 2017 , 2018 , 2019 , 2020 < >
Copyright © 2017 , 2018 Clément < >
Copyright © 2017 < >
;;;
;;; 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 Genera... | null | https://raw.githubusercontent.com/dongcarl/guix/82543e9649da2da9a5285ede4ec4f718fd740fcb/gnu/tests/ssh.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 © 2016 , 2017 , 2018 , 2019 , 2020 < >
Copyright © 2017 , 2018 Clément < >
Copyright © 2017 < >
under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
along with GNU . If not , see < / > .
(define-module (gnu ... |
5b01abc97bf7ffe6a0c59983ddd5191724278b98393c0b3dbe69a42f6bdfa608 | ayato-p/mokuhan | platform.clj | (ns org.panchromatic.mokuhan.walker.platform
(:require [clojure.reflect :as reflect]
[org.panchromatic.mokuhan.walker.protocol :as proto]))
(defn- invokable-members [o]
(let [{:keys [bases members]} (reflect/reflect o)
xform (comp (filter #(empty? (:parameter-types %)))
(map... | null | https://raw.githubusercontent.com/ayato-p/mokuhan/8f6de17b5c4a3712aa83ba4f37234de86f3c630b/src/org/panchromatic/mokuhan/walker/platform.clj | clojure | (ns org.panchromatic.mokuhan.walker.platform
(:require [clojure.reflect :as reflect]
[org.panchromatic.mokuhan.walker.protocol :as proto]))
(defn- invokable-members [o]
(let [{:keys [bases members]} (reflect/reflect o)
xform (comp (filter #(empty? (:parameter-types %)))
(map... | |
b9bade15cb0d5ad2533fbe14d3439cf9809c5c3dcc56d19669b3a5e43a64fd08 | toddaaro/advanced-dan | notebook-amb.scm |
Code written by
;; (/~oleg/ftp/)
;;;
;;; Taken from leanTAP.scm
;;;
; A simple linear pattern matcher
; It is efficient (generates code at macro-expansion time) and simple:
it should work on any R5RS Scheme system .
( pmatch exp < clause > ... [ < else - clause > ] )
; <clause> ::= (<pattern> <guard> exp ..... | null | https://raw.githubusercontent.com/toddaaro/advanced-dan/5d6c0762d998aa37774e0414a0f37404e804b536/amb/notebook-amb.scm | scheme | (/~oleg/ftp/)
Taken from leanTAP.scm
A simple linear pattern matcher
It is efficient (generates code at macro-expansion time) and simple:
<clause> ::= (<pattern> <guard> exp ...)
<else-clause> ::= (else exp ...)
<guard> ::= boolean exp | ()
<pattern> :: =
,var -- matches always and binds the var
... |
Code written by
it should work on any R5RS Scheme system .
( pmatch exp < clause > ... [ < else - clause > ] )
Modified by for R6RS compatibility
(define-syntax pmatch
(syntax-rules (else guard)
((_ (rator rand ...) cs ...)
(let ((v (rator rand ...)))
(pmatch v cs ...)))
((_ v) (... |
933d64d97722c17947bc854556ae50f31d068ae099845d30096e8a34e5c0b9d7 | rill-event-sourcing/rill | message.clj | (ns rill.message
(:refer-clojure :exclude [type])
(:require [schema.macros :as sm]
[schema.core :as s]
[rill.uuid :refer [new-id]]
[rill.timestamp :refer [now]]
[nl.zeekat.identifiers :refer [lisp-name]]))
(def id
"The unique identifier of a message"
::id)
(def ... | null | https://raw.githubusercontent.com/rill-event-sourcing/rill/711d08e52bd331cdc2255199069b2d0aca69e8b0/src/rill/message.clj | clojure | (ns rill.message
(:refer-clojure :exclude [type])
(:require [schema.macros :as sm]
[schema.core :as s]
[rill.uuid :refer [new-id]]
[rill.timestamp :refer [now]]
[nl.zeekat.identifiers :refer [lisp-name]]))
(def id
"The unique identifier of a message"
::id)
(def ... | |
71569c0a212950f677ed924f90863fe10fd48384673d59a28d1e2a2a9ee8c206 | orbitz/oort | mdb_bhv_debian_file.erl | %%% File : mdb_bhv_debian_pkg.erl
Author : < >
%%% Purpose : search for files in debian package
Created : 12 Aug 2003 by < >
%%%----------------------------------------------------------------------
%%%
This file is part of Manderlbot .
%%%
Manderlbot is free software ; you can redistribute it and/or... | null | https://raw.githubusercontent.com/orbitz/oort/a61ec85508917ae9a3f6672a0b708d47c23bb260/manderlbot-0.9.2/src/mdb_bhv_debian_file.erl | erlang | File : mdb_bhv_debian_pkg.erl
Purpose : search for files in debian package
----------------------------------------------------------------------
(at your option) any later version.
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
G... | Author : < >
Created : 12 Aug 2003 by < >
This file is part of Manderlbot .
Manderlbot 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
Manderlbot is dis... |
b8d3b51fbde004372ce8ee9af8c4210d9f7015ddc50f9cb7f15aaace29aba8df | dmitryvk/sbcl-win32-threads | target-insts.lisp | (in-package "SB!VM")
;;; Let's see if an empty file works here. It does on the Alpha.
| null | https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/compiler/ppc/target-insts.lisp | lisp | Let's see if an empty file works here. It does on the Alpha. | (in-package "SB!VM")
|
6f52738d44651c27cc7a9805eeba2bd9ff2a3aa06cc01d30a254c7836661f2d4 | grin-compiler/grin | Result.hs | # LANGUAGE TemplateHaskell , GeneralizedNewtypeDeriving #
module AbstractInterpretation.ExtendedSyntax.CreatedBy.Result where
import Data.Set (Set)
import Data.Map (Map)
import qualified Data.Map as Map
import Lens.Micro.Platform
import Grin.ExtendedSyntax.Grin (Name, Tag)
import AbstractInterpretation.Extend... | null | https://raw.githubusercontent.com/grin-compiler/grin/44ac2958810ecee969c8028d2d2a082d47fba51b/grin/src/AbstractInterpretation/ExtendedSyntax/CreatedBy/Result.hs | haskell | possible producers grouped by tags
A graph representing the connections between producers.
In a ProducerMap, we map variables to producers,
in a ProducerGraph we map producers to other producers.
All producers are grouped | # LANGUAGE TemplateHaskell , GeneralizedNewtypeDeriving #
module AbstractInterpretation.ExtendedSyntax.CreatedBy.Result where
import Data.Set (Set)
import Data.Map (Map)
import qualified Data.Map as Map
import Lens.Micro.Platform
import Grin.ExtendedSyntax.Grin (Name, Tag)
import AbstractInterpretation.Extend... |
6503503714c46b801676a1e1b9eb68e5850a282dc78aaed6007509443b20bc52 | haskell-repa/repa | Prim.hs |
module Data.Array.Repa.Plugin.ToDDC.Detect.Prim
( detectPrimTyConName
, detectPrimArithName )
where
import DDC.Core.Flow
import DDC.Core.Flow.Prim
import DDC.Core.Flow.Compounds
import DDC.Type.Exp
import Data.List
-------------------------------------------------------------------------------
-- | Ge... | null | https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/icebox/abandoned/repa-plugin/Data/Array/Repa/Plugin/ToDDC/Detect/Prim.hs | haskell | -----------------------------------------------------------------------------
| Get the name, and kind for a primitive type constructor.
| Detect a primitive type constructor name.
| Detect a Flow type constructor name.
-----------------------------------------------------------------------------
primitive arit... |
module Data.Array.Repa.Plugin.ToDDC.Detect.Prim
( detectPrimTyConName
, detectPrimArithName )
where
import DDC.Core.Flow
import DDC.Core.Flow.Prim
import DDC.Core.Flow.Compounds
import DDC.Type.Exp
import Data.List
Done by dodgy string matching on the GHC symbol name .
detectPrimTyConName
... |
384b1035e48c782138dd3845820845772bafa87a85442c740a31413f68bbefe3 | cedlemo/OCaml-GI-ctypes-bindings-generator | Places_sidebar.mli | open Ctypes
type t
val t_typ : t typ
val create :
unit -> Widget.t ptr
(*Not implemented gtk_places_sidebar_add_shortcut type interface not implemented*)
val get_local_only :
t -> bool
(*Not implemented gtk_places_sidebar_get_location return type interface not handled*)
(*Not implemented gtk_places_sidebar_get_nt... | null | https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Places_sidebar.mli | ocaml | Not implemented gtk_places_sidebar_add_shortcut type interface not implemented
Not implemented gtk_places_sidebar_get_location return type interface not handled
Not implemented gtk_places_sidebar_get_nth_bookmark return type interface not handled
Not implemented : interface
Not implemented gtk_places_sidebar_set_loca... | open Ctypes
type t
val t_typ : t typ
val create :
unit -> Widget.t ptr
val get_local_only :
t -> bool
val get_open_flags :
t -> Places_open_flags.t_list
val get_show_connect_to_server :
t -> bool
val get_show_desktop :
t -> bool
val get_show_enter_location :
t -> bool
val get_show_other_locations :
t ->... |
54d76d36f9ba0618ef25fc00c6903e122e10628dbda254f49285bc07cab95b3f | gregtatcam/imaplet-lwt | stringable_.ml | module type S = sig
type t
val of_string : string -> t
val to_string : t -> string
end
| null | https://raw.githubusercontent.com/gregtatcam/imaplet-lwt/d7b51253e79cffa97e98ab899ed833cd7cb44bb6/lib/parsemail/stringable_.ml | ocaml | module type S = sig
type t
val of_string : string -> t
val to_string : t -> string
end
| |
1c5e36940ba4c33aa9f2a46f3432848ef52421e9a7d681e5bdab5f8db18b9ecc | noprompt/garden | core.cljc | (ns garden.core
"Convert Clojure data structures to CSS."
(:require [garden.compiler :as compiler]))
(defn ^String css
"Convert a variable number of Clojure data structure to a string of
CSS. The first argument may be a list of flags for the compiler."
{:arglists '([rules] [flags? rules])}
[& rules]
(app... | null | https://raw.githubusercontent.com/noprompt/garden/025c4d8c6a88fdb58def34122af0459e51e309a9/src/garden/core.cljc | clojure | (ns garden.core
"Convert Clojure data structures to CSS."
(:require [garden.compiler :as compiler]))
(defn ^String css
"Convert a variable number of Clojure data structure to a string of
CSS. The first argument may be a list of flags for the compiler."
{:arglists '([rules] [flags? rules])}
[& rules]
(app... | |
2134e63d515f13698fa754740e97813915ba596fa15b2fb01b068199dd1af9ff | eslick/cl-registry | quick-help.lisp | (in-package :registry)
(defwidget quick-help ()
((dialog-p :initarg :dialog-p)
(page :initarg :page)
(link :initarg :link)
(link-title :initarg :link-title))
(:documentation "Quick and dirty help widget that links to a dialog or page"))
(defmethod render-widget-body ((help quick-help) &rest args)
(decl... | null | https://raw.githubusercontent.com/eslick/cl-registry/d4015c400dc6abf0eeaf908ed9056aac956eee82/src/core/widgets/quick-help.lisp | lisp | (in-package :registry)
(defwidget quick-help ()
((dialog-p :initarg :dialog-p)
(page :initarg :page)
(link :initarg :link)
(link-title :initarg :link-title))
(:documentation "Quick and dirty help widget that links to a dialog or page"))
(defmethod render-widget-body ((help quick-help) &rest args)
(decl... | |
b307ba170d7ab1a2f99bf813d02a210a5d2fa01661685a5916cd6118db6d06a6 | shirok/Gauche | sort.orig.scm | ;;; File : sort.scm
Author : ( based on Prolog code by D.H.D.Warren )
Updated : 11 June 1991
;;; Defines: sorted?, merge, merge!, sort, sort!
;;; --------------------------------------------------------------------
; Many Scheme systems provide some kind of sorting functions. They do
; not, however, alwa... | null | https://raw.githubusercontent.com/shirok/Gauche/ecaf82f72e2e946f62d99ed8febe0df8960d20c4/lib/gauche/sort.orig.scm | scheme | File : sort.scm
Defines: sorted?, merge, merge!, sort, sort!
--------------------------------------------------------------------
Many Scheme systems provide some kind of sorting functions. They do
not, however, always provide the _same_ sorting functions, and those
that I have had the opportunity to tes... | Author : ( based on Prolog code by D.H.D.Warren )
Updated : 11 June 1991
says that Chez Scheme provides
( merge predicate )
( merge ! predicate )
while the MIT Scheme 7.1 manual , following Common Lisp , offers
and Elk offers
( 1 ) Both sort and sort ! may be provided .
( 2 ) sort ma... |
1fcff7013d21d3d8d7f154025f7d0145f46bbe0c1a48852eaf478c8ada786873 | dgtized/shimmers | uniform_distribution.cljs | (ns shimmers.sketches.uniform-distribution
(:require
[shimmers.algorithm.random-points :as rp]
[shimmers.common.svg :as csvg]
[shimmers.common.ui.controls :as ctrl]
[shimmers.math.geometry.triangle :as triangle]
[shimmers.sketch :as sketch :include-macros true]
[shimmers.view.sketch :as view-sketch]... | null | https://raw.githubusercontent.com/dgtized/shimmers/f096c20d7ebcb9796c7830efcd7e3f24767a46db/src/shimmers/sketches/uniform_distribution.cljs | clojure | ellipse is not implemented? | (ns shimmers.sketches.uniform-distribution
(:require
[shimmers.algorithm.random-points :as rp]
[shimmers.common.svg :as csvg]
[shimmers.common.ui.controls :as ctrl]
[shimmers.math.geometry.triangle :as triangle]
[shimmers.sketch :as sketch :include-macros true]
[shimmers.view.sketch :as view-sketch]... |
7c8bef3ea64fd1af6e927d927721ad49fbb4e003e185ab17c1cdce90d049d50d | lispgames/cl-sdl2 | video.lisp | (in-package #:sdl2)
(defun get-num-video-drivers ()
(sdl-get-num-video-drivers))
(defun get-video-driver (driver-index)
(sdl-get-video-driver driver-index))
(defun get-current-video-driver ()
(sdl-get-current-video-driver))
(defun get-num-video-displays ()
(sdl-get-num-video-displays))
(defun get-display-n... | null | https://raw.githubusercontent.com/lispgames/cl-sdl2/80410b514570ca06894675d4a2a5fc93287ea7b6/src/video.lisp | lisp | Do NOT free the returned surface. | (in-package #:sdl2)
(defun get-num-video-drivers ()
(sdl-get-num-video-drivers))
(defun get-video-driver (driver-index)
(sdl-get-video-driver driver-index))
(defun get-current-video-driver ()
(sdl-get-current-video-driver))
(defun get-num-video-displays ()
(sdl-get-num-video-displays))
(defun get-display-n... |
e0c7939357b25a293a00051613633e725c81f48a28a4b1106479212900b2edc6 | bobzhang/fan | init_path.ml | (* -*- mode:caml -*- *)
let paths = [
"utils";
"common";
"treeparser";
"cold";
"+compiler-libs"
]
let () =
List.iter Topdirs.dir_directory paths
;;
| null | https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/init_path.ml | ocaml | -*- mode:caml -*- | let paths = [
"utils";
"common";
"treeparser";
"cold";
"+compiler-libs"
]
let () =
List.iter Topdirs.dir_directory paths
;;
|
2b1c67dfdf5c67e28aa88d0b445fd6bb0184f8f6b97bdfb54bee1d897dd7d655 | schwering/golog | Simulation.hs | module TORCS.Golog.Simulation where
import TORCS.CarControl
import TORCS.CarState
import TORCS.Golog.Sensors
import TORCS.PhysicsUtil
trajectoryTo :: CarState -> Double -> Double -> Double
trajectoryTo cs yTo = sigf_ n . m2rel
where yFrom = trackPos cs
yDiff = yTo - yFrom
yAlready = sigf... | null | https://raw.githubusercontent.com/schwering/golog/e5a0dba9598d616762271b5bef9fd51a53c1f829/torcs-agent/src/TORCS/Golog/Simulation.hs | haskell | | Binary search on a function which must be monotonically nondecreasing on
the given interval for a wanted domain value within the interval.
Search aborts when the interval size falls below of the resolution parameter
@res@. Too small resolutions are dangerous due to floating point imprecision.
This could lead to ... | module TORCS.Golog.Simulation where
import TORCS.CarControl
import TORCS.CarState
import TORCS.Golog.Sensors
import TORCS.PhysicsUtil
trajectoryTo :: CarState -> Double -> Double -> Double
trajectoryTo cs yTo = sigf_ n . m2rel
where yFrom = trackPos cs
yDiff = yTo - yFrom
yAlready = sigf... |
fc94da3838f8d419566d3da5e3282e496d2726290464ab6c0f225825bb7f33c8 | ILIYANGERMANOV/sense-lang | SFunction.hs | module Data.SFunction where
import Data.Identifier (Identifier (Identifier))
import Data.SStatement
import Data.SType
helloWorld : : String
> " Hello , world ! "
greet : : String - > Unit
name > print " Hello , " + name
greet("Iliyan " )
authenticate : : User | Admin - > AccessToken | RejectReason
u ... | null | https://raw.githubusercontent.com/ILIYANGERMANOV/sense-lang/5c47d6c76f89ac02ffa8699b4279102f3267c883/sense-compiler/src/Data/SFunction.hs | haskell | module Data.SFunction where
import Data.Identifier (Identifier (Identifier))
import Data.SStatement
import Data.SType
helloWorld : : String
> " Hello , world ! "
greet : : String - > Unit
name > print " Hello , " + name
greet("Iliyan " )
authenticate : : User | Admin - > AccessToken | RejectReason
u ... | |
424a39837c50813769bff23ac3f9c49eea0a3887ad03601d760b084d7e7b0527 | ocramz/sparse-linear-algebra | IntM.hs | # language DeriveFunctor , DeriveFoldable , TypeFamilies #
module Data.Sparse.Internal.IntM where
import Data.Sparse.Utils
import Numeric.LinearAlgebra.Class
import GHC.Exts
import Data.Complex
import qualified Data.IntMap.Strict as IM
| A synonym for IntMap
newtype IntM a = IntM {unIM :: IM.IntMap a} derivin... | null | https://raw.githubusercontent.com/ocramz/sparse-linear-algebra/77f14ebc5c545cb665cdd840149a021f3df07183/src/Data/Sparse/Internal/IntM.hs | haskell | # INLINE (^+^) #
| list to IntMap | # language DeriveFunctor , DeriveFoldable , TypeFamilies #
module Data.Sparse.Internal.IntM where
import Data.Sparse.Utils
import Numeric.LinearAlgebra.Class
import GHC.Exts
import Data.Complex
import qualified Data.IntMap.Strict as IM
| A synonym for IntMap
newtype IntM a = IntM {unIM :: IM.IntMap a} derivin... |
ad7fd976cb5b24dfd56117b93628433b79c5eabb921ecab853d419300ec9ccdc | thoughtstem/morugamu | radial-graphs-taco-clement.rkt | #lang racket
(require
plot
"../../../util/util.rkt"
(prefix-in game: "../data/games/database.rkt")
(prefix-in util:"../data/stephens-database-util.rkt")
srfi/1
)
(plot-new-window? #t)
;Name: stacked-bar-graph
;Description: Takes a list of game vectors and plots them all on a graph
Type : ( listof ve... | null | https://raw.githubusercontent.com/thoughtstem/morugamu/a9095ddebe364adffb036c3faed95c873a4d9f3c/marketing/research/display/radial-graphs-taco-clement.rkt | racket | Name: stacked-bar-graph
Description: Takes a list of game vectors and plots them all on a graph
Example:
Name: vector-asked
Description: takes the table of games returns a listof the asked amount
example: its below. it's the same code in display.rkt
Name: vector-received
Description: takes the table of games returns a... | #lang racket
(require
plot
"../../../util/util.rkt"
(prefix-in game: "../data/games/database.rkt")
(prefix-in util:"../data/stephens-database-util.rkt")
srfi/1
)
(plot-new-window? #t)
Type : ( listof vector ? ) - > graph
( stacked - bar - graph ( list ( vector ' skyrim ( list 10 5 ) ) )
(defin... |
3fa6fb3648d749c1b2fe2d4975a505b5e6fe172b2445890c213d368e27759c73 | wdebeaum/step | dummy-resulting-state-val-word.lisp | ;;;;
;;;; W::dummy-resulting-state-val-word
;;;;
; not sure this ONT::resulting-state-val should exist but put something here so it can have some default templates
(define-words :pos W::adj
:words (
(W::dummy-resulting-state-val-word
(wordfeats (W::morph (:FORMS (-LY))))
(SENSES
(
(LF-PARENT ONT::re... | null | https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/LexiconManager/Data/new/dummy-resulting-state-val-word.lisp | lisp |
W::dummy-resulting-state-val-word
not sure this ONT::resulting-state-val should exist but put something here so it can have some default templates |
(define-words :pos W::adj
:words (
(W::dummy-resulting-state-val-word
(wordfeats (W::morph (:FORMS (-LY))))
(SENSES
(
(LF-PARENT ONT::resulting-state-val)
(TEMPL central-adj-templ)
(example "an xyz book")
)
)))
)
|
958113c2e1425acd028b68341516d51efe834767e50f1a770e3181a649652514 | Supersonido/rebar_mix | rebar_mix_compiler.erl | -module(rebar_mix_compiler).
-export([build/1,
format_error/1]).
%% ===================================================================
%% Public API
%% ===================================================================
build(AppInfo) ->
AppDir = rebar_app_info:dir(AppInfo),
BuildDir = filename:join(App... | null | https://raw.githubusercontent.com/Supersonido/rebar_mix/36617e30e371b0f0490afeacb0f68a3bf4f3425f/src/rebar_mix_compiler.erl | erlang | ===================================================================
Public API
=================================================================== | -module(rebar_mix_compiler).
-export([build/1,
format_error/1]).
build(AppInfo) ->
AppDir = rebar_app_info:dir(AppInfo),
BuildDir = filename:join(AppDir, "../"),
BuildElixirDir = filename:join(AppDir, "_build/prod/lib/"),
AppName = rebar_mix_utils:to_string(rebar_app_info:name(AppInfo)),
rebar_mix... |
b8c99df114f0617cb60c74d6bf88e2c0c7a96c58660eb76025cebcee46fb7f85 | erlang/otp | string_SUITE.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 2004 - 2022 . 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 applic... | null | https://raw.githubusercontent.com/erlang/otp/de5bb49320db22159de52e677c5f7499b763b0cd/lib/stdlib/test/string_SUITE.erl | erlang |
%CopyrightBegin%
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific l... | Copyright Ericsson AB 2004 - 2022 . 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(string_SUITE).
-include_lib("common_test/include/ct.hrl").
-export([all/0, suite/0,groups/0,init_per_suite/1... |
99f5fc174d6d8dca4b3f4cfb570d524f79f4dc050b9977ef89c615029509d054 | slyrus/clem | test-mult.lisp |
(in-package :clem-test)
(defparameter *mult-test-matrix-size* 32)
(eval-when (:compile-toplevel :load-toplevel :execute)
(defun symbolicate (&rest args)
(intern (string-upcase (apply #'concatenate 'string args)))))
(defmacro def-mult-test (type-1 val-1 type-2 val-2)
(let ((funcname (symbolicate "test/mat-mu... | null | https://raw.githubusercontent.com/slyrus/clem/5eb055bb3f45840b24fd44825b975aa36bd6d97c/test/test-mult.lisp | lisp |
(in-package :clem-test)
(defparameter *mult-test-matrix-size* 32)
(eval-when (:compile-toplevel :load-toplevel :execute)
(defun symbolicate (&rest args)
(intern (string-upcase (apply #'concatenate 'string args)))))
(defmacro def-mult-test (type-1 val-1 type-2 val-2)
(let ((funcname (symbolicate "test/mat-mu... | |
50963d3a4338663612f17c78b58f8d12e2e8770a0faba2b1911083d32ae9343d | hasktorch/hasktorch | TransformerSpec.hs | # LANGUAGE DataKinds #
# LANGUAGE TypeApplications #
module Torch.Typed.NN.TransformerSpec
( Torch.Typed.NN.TransformerSpec.spec,
)
where
import Test.Hspec
import qualified Torch.DType as D
import qualified Torch.Device as D
import Torch.HList
import qualified Torch.NN as A
import Torch.Typed.Factories
import Tor... | null | https://raw.githubusercontent.com/hasktorch/hasktorch/c34996b0a401a5b1b98b5774e892fde88adaa079/hasktorch/test/Torch/Typed/NN/TransformerSpec.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE TypeApplications #
module Torch.Typed.NN.TransformerSpec
( Torch.Typed.NN.TransformerSpec.spec,
)
where
import Test.Hspec
import qualified Torch.DType as D
import qualified Torch.Device as D
import Torch.HList
import qualified Torch.NN as A
import Torch.Typed.Factories
import Tor... | |
e611787f3b54348d2b0d99ee64b0a7c78b9b5a9698abf7e4b9de4762f0a86071 | sicmutils/sicmutils | rational_function_test.cljc | #_"SPDX-License-Identifier: GPL-3.0"
(ns sicmutils.rational-function-test
(:require [clojure.test :refer [is deftest testing]]
[clojure.test.check.generators :as gen]
[com.gfredericks.test.chuck.clojure-test :refer [checking]]
[sicmutils.abstract.number :as an]
[sicmut... | null | https://raw.githubusercontent.com/sicmutils/sicmutils/f181f153f1432e9648206f903282e7cb4cdd9644/test/sicmutils/rational_function_test.cljc | clojure | #_"SPDX-License-Identifier: GPL-3.0"
(ns sicmutils.rational-function-test
(:require [clojure.test :refer [is deftest testing]]
[clojure.test.check.generators :as gen]
[com.gfredericks.test.chuck.clojure-test :refer [checking]]
[sicmutils.abstract.number :as an]
[sicmut... | |
824067ffdfd2802dec95d7007cdbe6ebd7ca887d28167ef3042b515e4099edfd | McCLIM/McCLIM | town-example.lisp | ;;; ---------------------------------------------------------------------------
;;; License: LGPL-2.1+ (See file 'Copyright' for details).
;;; ---------------------------------------------------------------------------
;;;
( c ) copyright 2005 < > , /~mgr
( c ) copyright 2017 < >
;;;
;;; ---------------... | null | https://raw.githubusercontent.com/McCLIM/McCLIM/06e42ded2812de4a634db45c5bfa95504523b998/Examples/town-example.lisp | lisp | ---------------------------------------------------------------------------
License: LGPL-2.1+ (See file 'Copyright' for details).
---------------------------------------------------------------------------
---------------------------------------------------------------------------
Example CLIM Application: L... | ( c ) copyright 2005 < > , /~mgr
( c ) copyright 2017 < >
To run the example application , call ( clim - demo.town - example : run ) .
(defpackage #:clim-demo.town-example
(:use #:clim #:clim-lisp)
(:export #:run #:town-example))
(in-package #:clim-demo.town-example)
(defclass graphical-view (vi... |
fb260c29d223fc23cde4f25e29dcb9321309a0dc92af782e5f0cc6020c6d2c24 | lemmaandrew/CodingBatHaskell | array6.hs | From
Given an array of ints , compute recursively if the array contains a 6 . We 'll use
the convention of considering only the part of the array that begins at the given index .
In this way , a recursive call can pass index+1 to move down the array . The initial
call will pass in index as 0 .
Given an arr... | null | https://raw.githubusercontent.com/lemmaandrew/CodingBatHaskell/d839118be02e1867504206657a0664fd79d04736/CodingBat/Recursion-1/array6.hs | haskell | From
Given an array of ints , compute recursively if the array contains a 6 . We 'll use
the convention of considering only the part of the array that begins at the given index .
In this way , a recursive call can pass index+1 to move down the array . The initial
call will pass in index as 0 .
Given an arr... | |
5c4bc420dbbbbf64424eb191286bd42cc7570f4a316ddd7c1dac810bb0dd0cc6 | PascalLG/nubo-hs | Database.hs | -----------------------------------------------------------------------------
Nubo Client Application
Copyright ( c ) 2017 ,
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
in the Software without... | null | https://raw.githubusercontent.com/PascalLG/nubo-hs/390212b73c31746f4ff03a3e341f92d657db0223/Client/src/Database.hs | haskell | ---------------------------------------------------------------------------
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
furnished ... | Nubo Client Application
Copyright ( c ) 2017 ,
in the Software without restriction , including without limitation the rights
copies of the Software , and to permit persons to whom the Software is
all copies or substantial portions of the Software .
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ... |
d8d47e5bc808208470a7c73eca4c6f22c8bef39f7020823cc2e79711f298ffb8 | clojure-interop/google-cloud-clients | ImageAnnotatorStubSettings$Builder.clj | (ns com.google.cloud.vision.v1p4beta1.stub.ImageAnnotatorStubSettings$Builder
"Builder for ImageAnnotatorStubSettings."
(:refer-clojure :only [require comment defn ->])
(:import [com.google.cloud.vision.v1p4beta1.stub ImageAnnotatorStubSettings$Builder]))
(defn apply-to-all-unary-methods
"Applies the given set... | null | https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.vision/src/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings%24Builder.clj | clojure | (ns com.google.cloud.vision.v1p4beta1.stub.ImageAnnotatorStubSettings$Builder
"Builder for ImageAnnotatorStubSettings."
(:refer-clojure :only [require comment defn ->])
(:import [com.google.cloud.vision.v1p4beta1.stub ImageAnnotatorStubSettings$Builder]))
(defn apply-to-all-unary-methods
"Applies the given set... | |
41660460a55eb7b537accf512631e4ca46cc0f8a2462166972cb2413e57bd129 | ocaml-multicore/reagents | lock.mli | (** Scalable lock mechanism based on the CLH algorithm. *)
type 'a t
(** Represents a lock that protects an immutable value of type ['a]. *)
type 'a holder
(** Represents an exclusive hold of an immutable value of type ['a] protected by
an associated lock. *)
val make : 'a -> 'a t
(** [make value] creates a new ... | null | https://raw.githubusercontent.com/ocaml-multicore/reagents/6721db78b21028c807fb13d0af0aaf9407c662b5/tests/references/lock.mli | ocaml | * Scalable lock mechanism based on the CLH algorithm.
* Represents a lock that protects an immutable value of type ['a].
* Represents an exclusive hold of an immutable value of type ['a] protected by
an associated lock.
* [make value] creates a new lock protecting the given immutable [value].
* [acquire lock] a... |
type 'a t
type 'a holder
val make : 'a -> 'a t
val acquire : 'a t -> 'a holder * 'a
val release : 'a holder -> 'a -> unit
|
4ba06233fd6728b03435df526351c53e65f59c219e4e90ca073267f8c390d844 | jyh/metaprl | mfir_record.ml | doc <:doc<
@module[Mfir_record]
The @tt[Mfir_record] module defines a syntactic mechanism for
representing records and operations on records.
@docoff
------------------------------------------------------------------------
@begin[license]
This file is part of MetaPRL, a modular, higher order
... | null | https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/fir/mfir_record.ml | ocaml | *************************************************************************
* Declarations.
*************************************************************************
*************************************************************************
* Rewrites.
******************************************************************... | doc <:doc<
@module[Mfir_record]
The @tt[Mfir_record] module defines a syntactic mechanism for
representing records and operations on records.
@docoff
------------------------------------------------------------------------
@begin[license]
This file is part of MetaPRL, a modular, higher order
... |
580d10fc29998158206f2b72c77718fd119ad962a99d8d826a27c04e3e2a2b1c | esmolanka/sexp-grammar | Types.hs | # LANGUAGE CPP #
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveFunctor #-}
# LANGUAGE DeriveGeneric #
{-# LANGUAGE DeriveTraversable #-}
# LANGUAGE FlexibleInstances #
# LANGUAGE LambdaCase #
module Language.Sexp.Types
( Atom (..)
, Prefix (..)
, Fix (..)
... | null | https://raw.githubusercontent.com/esmolanka/sexp-grammar/ed14d27cdfa6b64bda7c8ce68afdd019f556cdd4/sexp-grammar/src/Language/Sexp/Types.hs | haskell | # LANGUAGE DeriveFoldable #
# LANGUAGE DeriveFunctor #
# LANGUAGE DeriveTraversable #
--------------------------------------------------------------------
Positions
| Position: file name, line number, column number
# UNPACK #
# UNPACK #
--------------------------------------------------------------------... | # LANGUAGE CPP #
# LANGUAGE DeriveGeneric #
# LANGUAGE FlexibleInstances #
# LANGUAGE LambdaCase #
module Language.Sexp.Types
( Atom (..)
, Prefix (..)
, Fix (..)
, SexpF (..)
, Compose (..)
, Position (..)
, dummyPos
, LocatedBy (..)
, location
, extract
, st... |
160e9b73f34b5b91da9b73492c876cefc5806553873c97c895bae2d57a0929e6 | ocaml-toml/To.ml | official_example4.ml | open Toml.Types
open Utils
This test file expects official_example4.toml from official toml repo read
let toml = Toml.Parser.(from_filename "./official_example4.toml" |> unsafe)
let expected =
Toml.Min.of_key_values
[ ( Toml.Min.key "table"
, TTable
(Toml.Min.of_key_values
[ (Toml... | null | https://raw.githubusercontent.com/ocaml-toml/To.ml/c0ae79c2589ab4c82f4528b53ad711287140c7dd/tests/official_example4.ml | ocaml | open Toml.Types
open Utils
This test file expects official_example4.toml from official toml repo read
let toml = Toml.Parser.(from_filename "./official_example4.toml" |> unsafe)
let expected =
Toml.Min.of_key_values
[ ( Toml.Min.key "table"
, TTable
(Toml.Min.of_key_values
[ (Toml... | |
8f23ceacc11a9114ea6a052cd15a3b91ce5b4da564836810964d48f5f3f5c933 | DanielG/ghc-mod | Baz.hs | module Bar.Baz (baz) where
import Foo (foo)
baz :: String
baz = unwords [foo, "baz"]
| null | https://raw.githubusercontent.com/DanielG/ghc-mod/391e187a5dfef4421aab2508fa6ff7875cc8259d/test/data/check-test-subdir/test/Bar/Baz.hs | haskell | module Bar.Baz (baz) where
import Foo (foo)
baz :: String
baz = unwords [foo, "baz"]
| |
11ddfa7e727ecc2e6453d32691090af576f26f3630e1e6401609c10062435fe6 | charlieg/Sparser | autodefining.lisp | ;;; -*- Mode:Lisp; Syntax:Common-Lisp; Package:SPARSER
copyright ( c ) 1994,1995 -- all rights reserved
;;;
;;; File: "autodefining"
module : " interface;workbench : "
Version : 0.7 December 1995
initiated 1/21/94 v2.3
During Feb , & March , continually tweeking to get state transitions ri... | null | https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/code/s/interface/workbench/autodefining.lisp | lisp | -*- Mode:Lisp; Syntax:Common-Lisp; Package:SPARSER
File: "autodefining"
control.
------------------------------
establishing what to define
------------------------------
called from Open-autodef-window to condition whether the window
should come up.
called from show-the-autodef-window, which will nor... | copyright ( c ) 1994,1995 -- all rights reserved
module : " interface;workbench : "
Version : 0.7 December 1995
initiated 1/21/94 v2.3
During Feb , & March , continually tweeking to get state transitions right
0.1 ( 4/29 ) added case of word being " ... "
0.2 ( 7/22 ) Added feedback after a... |
b4d8395bbb7d63bf29ebcae276382c4767dfa7e583c4aa7c572a7f8cf3f1d353 | skrat/accent | schedule.cljs | (ns accent.schedule
(:require-macros [cljs.core.async.macros :refer [go]])
(:require [cljs.core.async :refer [>! chan alts! sliding-buffer]]))
(defn request-animation!
"Run f on every animation frame forever."
[f]
(letfn [(g [] (js/requestAnimationFrame g) (f))]
(g)))
(defn asap
"Creates a (core.async... | null | https://raw.githubusercontent.com/skrat/accent/48ba849f94a98d87237089c9112855538276bc47/src/accent/schedule.cljs | clojure | (ns accent.schedule
(:require-macros [cljs.core.async.macros :refer [go]])
(:require [cljs.core.async :refer [>! chan alts! sliding-buffer]]))
(defn request-animation!
"Run f on every animation frame forever."
[f]
(letfn [(g [] (js/requestAnimationFrame g) (f))]
(g)))
(defn asap
"Creates a (core.async... | |
9ed57614925f9d4d675c59f47580f6d9ff73a69b69bbeba0f7ef7436d9942634 | appleshan/cl-http | examples.lisp | -*- Syntax : Ansi - Common - Lisp ; Base : 10 ; Mode : lisp ; Package : http - user -*-
Copyright 1995 - 1997 , 2005 - 2006 , .
;;; All rights reserved.
;;;-------------------------------------------------------------------
;;;
;;; EXAMPLES OF EXPORTING URLs
;;; Computed code is defined here and response funct... | null | https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/examples/examples.lisp | lisp | Base : 10 ; Mode : lisp ; Package : http - user -*-
All rights reserved.
-------------------------------------------------------------------
EXAMPLES OF EXPORTING URLs
Computed code is defined here and response functions are exported
in http:examples;example-exports.lisp
The documentation page /cl-http/respons... |
Copyright 1995 - 1997 , 2005 - 2006 , .
documentation page /cl - http / cl - http.html also points additional
(in-package :http-user)
(defparameter *sections* `(("Overview"
("Home Page" "-http.org:8001/")
("Top Features" "/cl-http/cl-http.html#featu... |
ca9acaefec81afe01c20a3cbe63124e7b146ee4d1fdebc689dc0f8353ac7310a | cusu/stv-tools | candidate.ml |
STV Tools , a reference implementation of STV , by ( C ) 2016 - 2017
This programme is free software ; you may redistribute and/or modify
it under the terms of the GNU Affero General Public Licence as published by
the Free Software Foundation , either version 3 of said Licence , or
( at you... | null | https://raw.githubusercontent.com/cusu/stv-tools/410431a31462589a02db42fd7f094c88d5b144af/reference/src/candidate.ml | ocaml |
STV Tools , a reference implementation of STV , by ( C ) 2016 - 2017
This programme is free software ; you may redistribute and/or modify
it under the terms of the GNU Affero General Public Licence as published by
the Free Software Foundation , either version 3 of said Licence , or
( at you... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.