_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
6150cc842629ae98efe21bd6ba1179bbc399b840aca0548c8667aa4469abc72b
ghilesZ/apronext
simplex.ml
open Apronext let env = Environmentext.make_s [||] [|"x"; "y"|] let gens = [ Generatorext.of_float_point env [0.; 0.] ; Generatorext.of_float_point env [0.; 100.] ; Generatorext.of_float_point env [50.; 200.] ; Generatorext.of_float_point env [100.; 0.] ] let pol = Apol.of_generator_list gens let () = let...
null
https://raw.githubusercontent.com/ghilesZ/apronext/d93e3f72562e1b47c0bf6a0b2d6e27818fa8c49e/examples/simplex.ml
ocaml
open Apronext let env = Environmentext.make_s [||] [|"x"; "y"|] let gens = [ Generatorext.of_float_point env [0.; 0.] ; Generatorext.of_float_point env [0.; 100.] ; Generatorext.of_float_point env [50.; 200.] ; Generatorext.of_float_point env [100.; 0.] ] let pol = Apol.of_generator_list gens let () = let...
95d2cd47e1efdcebaaf3f629c9cf90f4f0024e4507ea3c58be9180155dc17aa4
mars0i/free
example_1.clj
This software is copyright 2016 by , and is distributed under the Gnu General Public License version 3.0 as specified in the ;; the file LICENSE. ;; simple scalar example (ns free.example-1 (:require [free.level :as lvl] will be clj or cljs depending on dialect #?(:clj (require '[clojure.math.numeric-tower...
null
https://raw.githubusercontent.com/mars0i/free/fe0fdc1c0bf1866cb07b4558a009a829f8d6ba23/src/clj/general/free/example_1.clj
clojure
the file LICENSE. simple scalar example Generative function phi^2: or: (lvl/m-square phi) simple next-bottom function experimental next-bottom function (def ticks-between 2000) (def tick$ (atom 0)) Note that since the generative function is exponential, it's potentially problematic to make the mean negative. T...
This software is copyright 2016 by , and is distributed under the Gnu General Public License version 3.0 as specified in the (ns free.example-1 (:require [free.level :as lvl] will be clj or cljs depending on dialect #?(:clj (require '[clojure.math.numeric-tower :as nt])) or : ( ar / m * phi 2 ) ) Alt...
8c4c7a4018bc4540098ab79cdd1c5f8fc04ef11d2d8e963b42e5012757bf3a39
TrustInSoft/tis-interpreter
wpStrategy.mli
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of WP plug - in of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/wp/wpStrategy.mli
ocaml
************************************************************************ alternatives) ...
Modified by TrustInSoft This file is part of WP plug - in of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat a l'energie atomique et aux energies Lesser General Public License as published by the Free Soft...
943f1f7b031bf2aeff8aae927ff0958ae1d86125591a1adcc4937942780e00c3
erlyaws/yaws
headers_SUITE.erl
-module(headers_SUITE). -include("testsuite.hrl"). -compile(export_all). all() -> [ set_headers, get_headers, delete_headers, merge_headers, reformat_headers ]. groups() -> [ ]. %%==================================================================== init_per_suite(Config) ->...
null
https://raw.githubusercontent.com/erlyaws/yaws/da198c828e9d95ca2137da7884cddadd73941d13/testsuite/headers_SUITE.erl
erlang
==================================================================== ==================================================================== return a list of strings return a binary returned for the {multi, ValueList} tuple. Verify reformat_header options these headers are the fields in the #headers{} record
-module(headers_SUITE). -include("testsuite.hrl"). -compile(export_all). all() -> [ set_headers, get_headers, delete_headers, merge_headers, reformat_headers ]. groups() -> [ ]. init_per_suite(Config) -> Config. end_per_suite(_Config) -> ok. init_per_group(_Group,...
335de84c82068353c0587c3231856fca495b6523a1a20ebbb4a10823cbd97e56
melange-re/melange-compiler-libs
typetexp.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/melange-re/melange-compiler-libs/2fac95b0ea97fb676240662aeeec8c6f6495dd9c/typing/typetexp.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Asttypes open Misc open Parsetree open Typedtree open Types open Ctype exception Already_bound t...
729c9975e79cbd2b9bb9aa3b8fa5cb553ef99422df51d13051becc9fb99d68dc
input-output-hk/cardano-sl
Active.hs
# LANGUAGE LambdaCase # module Cardano.Wallet.WalletLayer.Kernel.Active ( pay , estimateFees , redeemAda ) where import Universum import Data.Time.Units (Second) import Pos.Chain.Txp (Tx (..)) import Pos.Core (AddrAttributes (..), Address (..), Coin, TxFeePolicy) im...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/wallet/src/Cardano/Wallet/WalletLayer/Kernel/Active.hs
haskell
| Generates a new transaction @and submit it as pending@. Pay the payees | Verifies that the `NetworkMagic` of each payee address matches the | Estimates the fees for a payment. | Redeem an Ada voucher Implementation note: No need for a time limit here, redemption does not run coin selection. ----------------...
# LANGUAGE LambdaCase # module Cardano.Wallet.WalletLayer.Kernel.Active ( pay , estimateFees , redeemAda ) where import Universum import Data.Time.Units (Second) import Pos.Chain.Txp (Tx (..)) import Pos.Core (AddrAttributes (..), Address (..), Coin, TxFeePolicy) im...
7d0865638c322df18f26eb57dce5a59fc7b690e903f2abcc6c1b9416b8abdd6a
nedap/formatting-stack
should_not_be_cleaned_3.clj
(ns functional.formatting-stack.formatters.clean-ns.should-not-be-cleaned-3 "Should not cleaned because of `#'formatting-stack.formatters.clean-ns`." (:require [functional.formatting-stack.formatters.clean-ns.specs]))
null
https://raw.githubusercontent.com/nedap/formatting-stack/c43e74d5409e9338f208457bb8928ce437381a3f/test/functional/formatting_stack/formatters/clean_ns/should_not_be_cleaned_3.clj
clojure
(ns functional.formatting-stack.formatters.clean-ns.should-not-be-cleaned-3 "Should not cleaned because of `#'formatting-stack.formatters.clean-ns`." (:require [functional.formatting-stack.formatters.clean-ns.specs]))
0c26db7c4476b3b4d7ce9f6041c6c89ae98756b69d28cda599733e85e4bea5d8
lulf/hcoap
Types.hs
| Module : Network . CoAP.Types Description : CoAP types Maintainer : License : Module: Network.CoAP.Types Description: CoAP types Maintainer: License: BSD3 -} module Network.CoAP.Types where import Data.ByteString.Lazy import qualified Data.ByteString as BS import Data.Word import Data.Maybe import Net...
null
https://raw.githubusercontent.com/lulf/hcoap/8127520b767430b5513be6cfe646894ae7a2e616/src/Network/CoAP/Types.hs
haskell
| A CoAP transport instance capable of sending and receiving data | CoAP Option ByteString | CoAP Option types. | Request Method | A message with additional context on source and destination | CoAP response. | CoAP request. | CoAP response codes. | Valid CoAP message codes. | Valid CoAP message types. | CoAP...
| Module : Network . CoAP.Types Description : CoAP types Maintainer : License : Module: Network.CoAP.Types Description: CoAP types Maintainer: License: BSD3 -} module Network.CoAP.Types where import Data.ByteString.Lazy import qualified Data.ByteString as BS import Data.Word import Data.Maybe import Net...
dcb0eb81a2389e4693a8280a2b6bfdb685d3e97214a176b0297f5a53a6c217bb
SNePS/SNePS2
instance.lisp
-*- Mode : Lisp ; Syntax : Common - Lisp ; Package : SNIP ; Base : 10 -*- Copyright ( C ) 1984 - -2013 Research Foundation of ;; State University of New York Version : $ I d : instance.lisp , v 1.2 2013/08/28 19:07:27 shapiro Exp $ ;; This file is part of SNePS. $ BEGIN LICENSE$ ...
null
https://raw.githubusercontent.com/SNePS/SNePS2/d3862108609b1879f2c546112072ad4caefc050d/snip/ds/instance.lisp
lisp
Syntax : Common - Lisp ; Package : SNIP ; Base : 10 -*- State University of New York This file is part of SNePS. you may not use this file except in compliance with the License. You may obtain a copy of the License at . edu/sneps/Downloads/ubpl.pdf. or implied. See the License for th...
Copyright ( C ) 1984 - -2013 Research Foundation of Version : $ I d : instance.lisp , v 1.2 2013/08/28 19:07:27 shapiro Exp $ $ BEGIN LICENSE$ The contents of this file are subject to the University at Software distributed under the License is distributed on an " AS IS " basis , WITHOUT WARRANTY OF ANY...
6058ba21a65ff72df5f89b1076e4239a3f6f0ee1dec289c3cb320187582d4cab
Opetushallitus/aipal
rest_util.clj
(ns aipal.rest-api.rest-util (:require [peridot.core :as peridot] [clj-time.core :as time] [cheshire.core :as cheshire] [oph.common.infra.i18n :as i18n] [oph.common.infra.common-audit-log-test :as common-audit-log-test] [aipal.palvelin :as palvelin] ...
null
https://raw.githubusercontent.com/Opetushallitus/aipal/767bd14ec7153dc97fdf688443b9687cdb70082f/aipal/test/clj/aipal/rest_api/rest_util.clj
clojure
(ns aipal.rest-api.rest-util (:require [peridot.core :as peridot] [clj-time.core :as time] [cheshire.core :as cheshire] [oph.common.infra.i18n :as i18n] [oph.common.infra.common-audit-log-test :as common-audit-log-test] [aipal.palvelin :as palvelin] ...
9bc184e4239b4181629f5dbf5efdd908911673f7b2c130c38e94bae2622e8861
janestreet/incr_map
test_cutoff.ml
open! Core open! Import let cutoff = Incremental.Cutoff.of_equal (fun a b -> Float.(abs (a - b) < 1.0)) let run_operations ~test_impl ~reference_impl ~f operations = let var = Incr.Var.create Int.Map.empty in let reference_observer = Incremental.observe (reference_impl (Incr.Var.watch var)) in let test_observer...
null
https://raw.githubusercontent.com/janestreet/incr_map/b56e7d8b1299d77790e3bc72e2aeeca74afd04fe/test/test_cutoff.ml
ocaml
open! Core open! Import let cutoff = Incremental.Cutoff.of_equal (fun a b -> Float.(abs (a - b) < 1.0)) let run_operations ~test_impl ~reference_impl ~f operations = let var = Incr.Var.create Int.Map.empty in let reference_observer = Incremental.observe (reference_impl (Incr.Var.watch var)) in let test_observer...
88b3af752c4f59db461914f15fe8582773bf8cd3f9766fb98eb6c4f67d771d6e
kazu-yamamoto/piki
Main.hs
module Main where import Control.Applicative import qualified Data.Text.Lazy.IO as L import qualified Data.Version as V import Html import Markdown import qualified Paths_piki as V import Piki import System.Console.GetOpt import System.Environment ---------------------------------------------------------------- vers...
null
https://raw.githubusercontent.com/kazu-yamamoto/piki/7173a4a224d91a8afc25a3bb66249592abc0f050/src/Main.hs
haskell
-------------------------------------------------------------- -------------------------------------------------------------- -------------------------------------------------------------- -------------------------------------------------------------- --------------------------------------------------------------
module Main where import Control.Applicative import qualified Data.Text.Lazy.IO as L import qualified Data.Version as V import Html import Markdown import qualified Paths_piki as V import Piki import System.Console.GetOpt import System.Environment version :: String version = V.showVersion V.version printVersion :: ...
5013fe8c075f4922affe5e0e2c538cfa7e79979094adba0d1d34e02ad050b020
huangz1990/SICP-answers
3-area.scm
3-area.scm (define (area-rectangle r) (* (length-of-rectangle r) (width-of-rectangle r)))
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp2/code/3-area.scm
scheme
3-area.scm (define (area-rectangle r) (* (length-of-rectangle r) (width-of-rectangle r)))
eb89b3bcadc0c583b4e1801152c2bf0c384ad206b0386227720375bce6634e0e
erlyvideo/publisher
rtmp_app.erl
@author < > [ ] 2010 %%% @doc RTMP application module. %%% @reference See <a href="" target="_top"></a> for more information. %%% @end %%% This file is part of erlang - rtmp . %%% %%% erlang-rtmp is free software: you can redistribute it and/or modify it under the terms of the GNU Genera...
null
https://raw.githubusercontent.com/erlyvideo/publisher/5bb2dfa6477c46160dc5fafcc030fc3f5340ec80/apps/rtmp/src/rtmp_app.erl
erlang
@doc RTMP application module. @reference See <a href="" target="_top"></a> for more information. @end erlang-rtmp is free software: you can redistribute it and/or modify (at your option) any later version. erlang-rtmp is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; witho...
@author < > [ ] 2010 This file is part of erlang - rtmp . it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License along with erlang - rtmp . If...
6cfdd2ed5dd658056ab45cf2805ea27a2fb7f85dc6f8c8498b2aef7ac99a4f0d
paurkedal/ocaml-radixmap
ip_radixset.mli
Copyright ( C ) 2017 - -2022 Petter A. Urkedal < > * * This library is free software ; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or ( at your * option ) any la...
null
https://raw.githubusercontent.com/paurkedal/ocaml-radixmap/93d0df62ac1da91c42dfdbac579e0e55a2dbdd5e/lib/ip_radixset.mli
ocaml
* Radix set over IP networks.
Copyright ( C ) 2017 - -2022 Petter A. Urkedal < > * * This library is free software ; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or ( at your * option ) any la...
13986988efb0894e6b8c53fd9da3f6884a8a04d6483d352f889328c378c3c599
google/haskell-trainings
Main.hs
Copyright 2021 Google LLC -- Licensed under the Apache License , Version 2.0 ( the " License " ) ; -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- -2.0 -- -- Unless required by applicable law or agreed to in writing, software distributed und...
null
https://raw.githubusercontent.com/google/haskell-trainings/214013fc324fd6c8f63b874a58ead0c1d3e6788c/haskell_101/codelab/04_abstractions/src/Main.hs
haskell
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright 2021 Google LLC Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , # LANGUAGE CPP # module Main where #ifdef SOLUTION import qualified Solution as C #else import qualified Codelab as C #endif import Internal (ch...
4e5bbbfb49c0c4027dc42d00eb318483f774cf1f74dc76012aac1180bfe772f3
eugenkiss/7guis-Clojure-Seesaw
temperature.clj
(ns seveguis.temperature (:use [seesaw core] sevenguis.core) (:require [seesaw.bind :as b])) (defn numeric? [s] (try (Double/parseDouble (.trim s)) true (catch NumberFormatException e false))) (defn f-to-c [f] (* (- f 32) 5/9)) (defn c-to-f [c] (+ (* c 9/5) 32)) (defn parse-temp [s] (Doub...
null
https://raw.githubusercontent.com/eugenkiss/7guis-Clojure-Seesaw/4ab08883ee0fbc6daa7e573d11b130b546189b67/src/sevenguis/temperature.clj
clojure
(ns seveguis.temperature (:use [seesaw core] sevenguis.core) (:require [seesaw.bind :as b])) (defn numeric? [s] (try (Double/parseDouble (.trim s)) true (catch NumberFormatException e false))) (defn f-to-c [f] (* (- f 32) 5/9)) (defn c-to-f [c] (+ (* c 9/5) 32)) (defn parse-temp [s] (Doub...
18c4cecdaae14d257c0c83de02f5ea94becd07dfe590ba0e815a30762dfb883d
higherkindness/mu-haskell
Record.hs
# language AllowAmbiguousTypes # # language DataKinds # # language FlexibleContexts # # language FlexibleInstances # # language MultiParamTypeClasses # # language PolyKinds # {-# language ScopedTypeVariables #-} # language TemplateHaskell # # language TypeApplications ...
null
https://raw.githubusercontent.com/higherkindness/mu-haskell/e41ba786f556cfac962e0f183b36bf9ae81d69e4/grpc/client/src/Mu/GRpc/Client/Record.hs
haskell
# language ScopedTypeVariables # TEMPLATE HASKELL ================ a Mu 'Service' definition, and a concrete implementation of 'buildService' for that record. Parsing =======
# language AllowAmbiguousTypes # # language DataKinds # # language FlexibleContexts # # language FlexibleInstances # # language MultiParamTypeClasses # # language PolyKinds # # language TemplateHaskell # # language TypeApplications # # language TypeFamilies ...
4dc2e903e089a4da44748104a2c93c3969258ff3c3626d8d6dc413a819602d78
heroku/logplex
logplex_logs_rest.erl
Geoff Ca nt @author nt < > %% @version {@vsn}, {@date} {@time} @doc Syslog / HTTP handler for Logplex . %% @end -module(logplex_logs_rest). -include("logplex_logging.hrl"). -export([child_spec/0, dispatch/0]). -export([init/3 ,rest_init/2 ,service_available/2 ,allowed_methods/2 ...
null
https://raw.githubusercontent.com/heroku/logplex/fc520c44cf4687726d5d51464d3264ddc6abb0ba/src/logplex_logs_rest.erl
erlang
@version {@vsn}, {@date} {@time} @end Healthcheck exports. Healthcheck implementation Logs cowboy_rest implementation XXX - Add stat counter here? XXX - Add stat counter here? but if present, check our count matches sent count.
Geoff Ca nt @author nt < > @doc Syslog / HTTP handler for Logplex . -module(logplex_logs_rest). -include("logplex_logging.hrl"). -export([child_spec/0, dispatch/0]). -export([init/3 ,rest_init/2 ,service_available/2 ,allowed_methods/2 ,is_authorized/2 ,known_con...
2805da0dc7a0d7c7266205e17e8c5ed8fd570e98e9a6b66e6514b4eb89f6a6e1
clojure-dus/chess
core.clj
(ns chess.core (:require [chess.movelogic.bitboard.api :as bitboard :only [initial-board read-fen]]) (:require [chess.movelogic.vector2d.moves-api :as vector :only [initial-board read-fen]]) (:require [chess.movelogic.protocol :as move-logic]) (:require [chess.ai.move-selection.min-max :as min-max])) (def...
null
https://raw.githubusercontent.com/clojure-dus/chess/7eb0e5bf15290f520f31e7eb3f2b7742c7f27729/src/chess/core.clj
clojure
(ns chess.core (:require [chess.movelogic.bitboard.api :as bitboard :only [initial-board read-fen]]) (:require [chess.movelogic.vector2d.moves-api :as vector :only [initial-board read-fen]]) (:require [chess.movelogic.protocol :as move-logic]) (:require [chess.ai.move-selection.min-max :as min-max])) (def...
a437706a5ff69278cc76f764e03129389af880212e1b96fff1566436004929a4
MLanguage/mlang
test_interpreter.mli
, contributors : < > ( 2019 ) This program is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later version . This progr...
null
https://raw.githubusercontent.com/MLanguage/mlang/1d92fc8772de0250f30370eeec16f67e39819daa/src/mlang/test_framework/test_interpreter.mli
ocaml
test file name optimize code coverage test_error margin * Similar to [check_test] but tests a whole folder full of test files
, contributors : < > ( 2019 ) This program is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later version . This progr...
bba9eb963b61200f69b5c9f1af3f4d1680e70ca0cfc761dc01f94a88b85c05d6
hopv/homusat
preproc.ml
Preprocesses module LHS = Id.IdMap module RHS = Id.IdMap module IdSet = Id.IdSet module States = LTS.States module Delta = LTS.Delta (* Get all variables occurring in a formula *) let get_xs = fun fml -> let rec f = fun xs fml -> match fml with | HFS.Or (ys) | HFS.And (ys) -> ...
null
https://raw.githubusercontent.com/hopv/homusat/cc05711a3f9d45b253b83ad09a2d0288115cc4f4/preproc.ml
ocaml
Get all variables occurring in a formula F \mapsto { G | G occurs in the body of F } Ordinary DFS Remove the functions unreachable from the initial symbol DFS + sort DFS on the reversed graph + SCC Reversed adjacency list/set Topologically sorted list of the non-recursive functions Self-loop Count ho...
Preprocesses module LHS = Id.IdMap module RHS = Id.IdMap module IdSet = Id.IdSet module States = LTS.States module Delta = LTS.Delta let get_xs = fun fml -> let rec f = fun xs fml -> match fml with | HFS.Or (ys) | HFS.And (ys) -> List.fold_left f xs ys | HFS.Box (_, x...
258b1f69bf99100537a63daf4d040e80ff622a645db768b5f6854df3120d164f
bluemont/kria
error.clj
(ns kria.pb.error (:require [kria.conversions :refer [byte-string<-utf8-string utf8-string<-byte-string]]) (:import [com.basho.riak.protobuf RiakPB$RpbErrorResp])) (defrecord ErrorResp [message ; required bytes required uint32 ]) (defn pb->ErrorResp [^RiakPB$RpbErr...
null
https://raw.githubusercontent.com/bluemont/kria/8ed7fb1ebda8bfa1a2a6d7a3acf05e2255fcf0f0/src/clojure/kria/pb/error.clj
clojure
required bytes
(ns kria.pb.error (:require [kria.conversions :refer [byte-string<-utf8-string utf8-string<-byte-string]]) (:import [com.basho.riak.protobuf RiakPB$RpbErrorResp])) (defrecord ErrorResp required uint32 ]) (defn pb->ErrorResp [^RiakPB$RpbErrorResp pb] (->ErrorResp (some-> ...
c51519c25cbe3ee005ebba8a8704714f4a6dcc997cd767de8abd2e6309c89ea4
quchen/generative-art
Main.hs
module Main (main) where import Data.Foldable import Graphics.Rendering.Cairo as Cairo hiding (transform) import Draw import Geometry import Geometry.Shapes picWidth, picHeight :: Num a => a picWidth = 1000 picHeight = 720 main :: IO () main = render "out/haskell_logo_billard.svg" picWidth picHeight $ do Ca...
null
https://raw.githubusercontent.com/quchen/generative-art/61ec93e309f21c210f8f265918be2df562687b1c/showcases/haskell_logo_billard/Main.hs
haskell
| Mean and standard deviation, calculated in a single pass. 😎
module Main (main) where import Data.Foldable import Graphics.Rendering.Cairo as Cairo hiding (transform) import Draw import Geometry import Geometry.Shapes picWidth, picHeight :: Num a => a picWidth = 1000 picHeight = 720 main :: IO () main = render "out/haskell_logo_billard.svg" picWidth picHeight $ do Ca...
fdae56161733a8d145064949c884abb2708b34fdfa86fccd3a862a29d0a20970
project-oak/hafnium-verification
IOption.mli
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/istd/IOption.mli
ocaml
* Like [Option.value ~default:(f ())] but [f] is called only if [None].
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
bb5af4f94b085ba514cf81ca3c20fdc7e369e59eebab1773b00a74a074c1e2f9
aitorres/firelink
SizeSpec.hs
module SizeSpec where import Test.Hspec import qualified TestUtils as U baseProgram :: String -> String baseProgram t = "hello ashen one\n\ \traveling somewhere \n\ \with\n\ \ var x of type " ++ t ++ ",\n\ \ var n of type humanity\n\ \in your inventory\n\ \ n <<= size x\n\ \you died\n\ \farewell as...
null
https://raw.githubusercontent.com/aitorres/firelink/075d7aad1c053a54e39a27d8db7c3c719d243225/test/TypeChecking/SizeSpec.hs
haskell
module SizeSpec where import Test.Hspec import qualified TestUtils as U baseProgram :: String -> String baseProgram t = "hello ashen one\n\ \traveling somewhere \n\ \with\n\ \ var x of type " ++ t ++ ",\n\ \ var n of type humanity\n\ \in your inventory\n\ \ n <<= size x\n\ \you died\n\ \farewell as...
7251cddcd57e1c603ea6e5e29be1b055ffe5c10a55a9ec87c09b502678103f9c
ulrikstrid/ocaml-oidc
Jwks.mli
(** JSON Web Keys *) val find_jwk : jwt:Jose.Jwt.t -> Jose.Jwks.t -> Jose.Jwk.public Jose.Jwk.t option * find_jwk wraps { ! . Jwks.find_key } but if there is no [ kid ] supplied it will try with the first signing key with matching algorithm This helps us with the certification test [ rp - id_toke...
null
https://raw.githubusercontent.com/ulrikstrid/ocaml-oidc/3b77b88a115e36abf8daf17b7ee58fb1c11e9132/oidc/Jwks.mli
ocaml
* JSON Web Keys
val find_jwk : jwt:Jose.Jwt.t -> Jose.Jwks.t -> Jose.Jwk.public Jose.Jwk.t option * find_jwk wraps { ! . Jwks.find_key } but if there is no [ kid ] supplied it will try with the first signing key with matching algorithm This helps us with the certification test [ rp - id_token - kid - absent - si...
72e3fa24c87320afade9171ef047518d37e08560d5c334005cfcd2cd82742dfe
cartazio/tlaps
e_temporal_props.mli
* functions for checking temporal properties * Copyright ( C ) 2013 INRIA and Microsoft Corporation * functions for checking temporal properties * Copyright (C) 2013 INRIA and Microsoft Corporation *) val box_closure : E_t.hyp Deque.dq -> E_t.expr -> bool val diamond_closure : E_t.hyp Deque.dq -> E_t.ex...
null
https://raw.githubusercontent.com/cartazio/tlaps/562a34c066b636da7b921ae30fc5eacf83608280/src/expr/e_temporal_props.mli
ocaml
* functions for checking temporal properties * Copyright ( C ) 2013 INRIA and Microsoft Corporation * functions for checking temporal properties * Copyright (C) 2013 INRIA and Microsoft Corporation *) val box_closure : E_t.hyp Deque.dq -> E_t.expr -> bool val diamond_closure : E_t.hyp Deque.dq -> E_t.ex...
88ede1310ec753fe1c391ae7ef6c127a3faaea41f437526f890df8945bb30fe2
IndianRoboticsOrganization/ArimaTTS
INST_es_VOX_tokenizer.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Carnegie Mellon University ; ; ; and and ; ; ; and Font ...
null
https://raw.githubusercontent.com/IndianRoboticsOrganization/ArimaTTS/7377dca466306e2e6b90a063427273142cd50616/festvox/src/vox_files/es/INST_es_VOX_tokenizer.scm
scheme
;;; ; ; ; ; ; ; ; ; ; ; ;;; Permission is hereby granted, free of charge, to use and distribute ;;; this software and its documentation without restriction, including ;;; w...
Tokenizer for Spanish (set! spanish_guess_pos '((fn el la lo los las un una unos unas mi tu su mis tus sus nuestra vuestra nuestras vuestras nuestro vuestro nuestros vuestros me te le nos os les se al del a ante bajo cabe con contra de desde en entre hacia hasta para por sin sobre...
ba5a62b547812c123653b14f5afa79e20513276b8294413c1c847932f25a6ef9
NaOHman/XMonadPlus
NamedScratchpad.hs
# LANGUAGE PatternGuards # ----------------------------------------------------------------------------- -- | -- Module : XMonad.Util.NamedScratchpad Copyright : ( c ) < > -- License : BSD-style (see LICENSE) -- Maintainer : < > -- Stability : unstable -- Portability : unportable -- --...
null
https://raw.githubusercontent.com/NaOHman/XMonadPlus/1495e102ae3304817d1897a393e1f31fef71d41f/xmonad-contrib-darcs/XMonad/Util/NamedScratchpad.hs
haskell
--------------------------------------------------------------------------- | Module : XMonad.Util.NamedScratchpad License : BSD-style (see LICENSE) Stability : unstable Portability : unportable Named scratchpads that support several arbitrary applications at the same time. ---------------------...
# LANGUAGE PatternGuards # Copyright : ( c ) < > Maintainer : < > module XMonad.Util.NamedScratchpad ( NamedScratchpad(..), nonFloating, defaultFloating, customFloating, NamedScratchpads, namedScratchpadAction, allNamedScratchpadAction, namedScratchpadManageHook, namedScratchpadFil...
6eab46f7127861a64185be31cc260e3e28927e702b430b901b3d5d22c7fc2637
whamtet/Excel-REPL
json.clj
Copyright ( c ) , 2012 . All rights reserved . The use and distribution terms for this software are covered by the Eclipse ;; Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this ;; distribution. By using this software in any fashion, you are ;; agreeing to be...
null
https://raw.githubusercontent.com/whamtet/Excel-REPL/cae2ef8e423e2f2723c60e4758785973f06c6ba4/Excel-REPL/nrepl/clojure/data/json.clj
clojure
Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software. Changes are Public License 1.0 ...
Copyright ( c ) , 2012 . All rights reserved . The use and distribution terms for this software are covered by the Eclipse Modified to run under by Copyright ( c ) , 2013 . All rights reserved . The use and distribution terms for this software are covered by the Eclipse Changes to ...
6d84c2220948feb07eefb66777f67e63860541f6094e5a27f690094f4d8c2596
BekaValentine/SimpleFP
Evaluation.hs
{-# OPTIONS -Wall #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE TypeSynonymInstances #-} module Record.Core.Evaluation where import Control.Monad.Except import Env import Eval import Plicity import Scope import Record.Core.Term -- -- NOTE -- Plicity mismatches should never ...
null
https://raw.githubusercontent.com/BekaValentine/SimpleFP/3cff456be9f0b99509e5cbe809be1055009b32df/src/Record/Core/Evaluation.hs
haskell
# OPTIONS -Wall # # LANGUAGE TypeSynonymInstances # NOTE Pattern Matching
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # module Record.Core.Evaluation where import Control.Monad.Except import Env import Eval import Plicity import Scope import Record.Core.Term Plicity mismatches should never occur in evaluable code , so they throw actual Haskell errors , not inte...
8085afbbab010317ffe33c30de6af41caf80824387127cba21b4ca81b06b4308
jeromesimeon/Galax
shredded-jungle-load.ml
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/tools/Jungle/shredded-jungle-load.ml
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ I d : shredded - jungle - load.ml , v 1.2 2007/02/01 22:08:54 simeon Exp $ open Format open Error module Shredded_Store = Shredded_jungle_store.Jungle_Store_Module exception Shredded_Load_Error of string let shredded_version = "0.1" ...
53890cb184fbde3b37bb7d8f03fe59d1ae7d9287fef417ecf076543f5a316421
jwiegley/notes
Foldl.hs
module Foldl where main :: IO () main = print $ foldl (\(a, b) x -> a `seq` b `seq` (a + x, b + 2)) (0 :: Int, 0 :: Int) ([1..10000000] :: [Int])
null
https://raw.githubusercontent.com/jwiegley/notes/24574b02bfd869845faa1521854f90e4e8bf5e9a/haskell/Foldl.hs
haskell
module Foldl where main :: IO () main = print $ foldl (\(a, b) x -> a `seq` b `seq` (a + x, b + 2)) (0 :: Int, 0 :: Int) ([1..10000000] :: [Int])
17dd8d54cb3cfd363b67751fc5f8cf82eb872a3d97df9ee10d47cd5d35824b2b
kahua/Kahua
httpd.scm
-*- coding : utf-8 ; mode : scheme -*- ;; test supervisor scripts in http mode. ;; this test isn't for modules, but for actual scripts. (use gauche.test) (use gauche.process) (use rfc.http) (use file.util) (use kahua.test.xml) (use kahua.test.util) (use kahua.config) (test-start "kahua-httpd script") (define *spvr...
null
https://raw.githubusercontent.com/kahua/Kahua/41fa415511c54beab4922820989faf7ea71d2818/test/httpd.scm
scheme
mode : scheme -*- test supervisor scripts in http mode. this test isn't for modules, but for actual scripts. ----------------------------------------------------------- ----------------------------------------------------------- Shutdown
(use gauche.test) (use gauche.process) (use rfc.http) (use file.util) (use kahua.test.xml) (use kahua.test.util) (use kahua.config) (test-start "kahua-httpd script") (define *spvr* #f) (define *port* 27490) (define (http-get/retry host path count) (let/cc ret (dotimes (i 10) (guard (e (else #f)) ...
80bd77fab1afa03dc43045381de02c8b16b044bad4136cb382d10c07fc14f7a2
modular-macros/ocaml-macros
typedecl.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/modular-macros/ocaml-macros/05372c7248b5a7b1aa507b3c581f710380f17fcd/typing/typedecl.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Types open Format val transl_type_decl: Env.t -> Asttypes.rec_flag -> Parsetree.type_declarati...
b2a2eefd793888c94058f1b8fe13a68e1bd49c492b7d0fb49c3687ae791f9960
icicle-lang/x-ambiata
Toml.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # # OPTIONS_GHC -fno - warn - orphans # module Test.X.Text.Toml where import Control.Applicative import Control.Monad import Data.Function import Data.Bool import Data.Ord im...
null
https://raw.githubusercontent.com/icicle-lang/x-ambiata/532f8473084b24fb9d8c90fda7fee9858b9fbe30/x-htoml/test/Test/X/Text/Toml.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE NoImplicitPrelude # # LANGUAGE TemplateHaskell # # OPTIONS_GHC -fno - warn - orphans # module Test.X.Text.Toml where import Control.Applicative import Control.Monad import Data.Function import Data.Bool import Data.Ord import Disorder.Lens impor...
e41268bc6e1ab16cdb740fe355180437af82cf33b771f002e57d99fe62d30629
polymeris/cljs-aws
athena.cljs
(ns cljs-aws.athena (:require [cljs-aws.base.requests]) (:require-macros [cljs-aws.base.service :refer [defservice]])) (defservice "Athena" "athena-2017-05-18.min.json")
null
https://raw.githubusercontent.com/polymeris/cljs-aws/3326e7c4db4dfc36dcb80770610c14c8a7fd0d66/src/cljs_aws/athena.cljs
clojure
(ns cljs-aws.athena (:require [cljs-aws.base.requests]) (:require-macros [cljs-aws.base.service :refer [defservice]])) (defservice "Athena" "athena-2017-05-18.min.json")
7c2c031588c15b0b95bce9b6a6cd0f4ba613ae85e487fbc7425d72484a85a853
ThomasCrevoisier/chrome-remote-interface-haskell
DebuggingURL.hs
module Chrome.Target.DebuggingURL where import Data.Aeson import Data.Text (unpack) import Network.URL newtype DebuggingURL = DebuggingURL URL deriving Show instance FromJSON DebuggingURL where -- TODO : use `maybe` parseJSON = withText "url" $ \t -> case importURL (unpack t) ...
null
https://raw.githubusercontent.com/ThomasCrevoisier/chrome-remote-interface-haskell/b7cb4a2367fda40a1e90bc3378a6c4e52578b2d7/src/Chrome/Target/DebuggingURL.hs
haskell
TODO : use `maybe`
module Chrome.Target.DebuggingURL where import Data.Aeson import Data.Text (unpack) import Network.URL newtype DebuggingURL = DebuggingURL URL deriving Show instance FromJSON DebuggingURL where parseJSON = withText "url" $ \t -> case importURL (unpack t) of ...
7812da5f2a7aa3781b4c2a1f4dc704e4e38361780e2ab5827f950faa06b74738
mediocregopher/chdl
render.clj
(ns chdl.gamma.render (:require [chdl.alpha.proto :as proto] [chdl.gamma.protocols :as gproto])) (defn to-vhdl "Renders a set of chdl items" [& stuff] (apply str (interpose "\n" (map #(if (satisfies? gproto/symbol-value %) (gproto/construct %) (proto/to-str %)) (flat...
null
https://raw.githubusercontent.com/mediocregopher/chdl/b48b33e9215a84fbcdfa3f15446efc092c86d079/src/chdl/gamma/render.clj
clojure
(ns chdl.gamma.render (:require [chdl.alpha.proto :as proto] [chdl.gamma.protocols :as gproto])) (defn to-vhdl "Renders a set of chdl items" [& stuff] (apply str (interpose "\n" (map #(if (satisfies? gproto/symbol-value %) (gproto/construct %) (proto/to-str %)) (flat...
af0e045414fd3ddb5576dc44115eaf32272c5b40cc16b40594318f679c462a77
Glue42/gateway-modules
channel_buffers.clj
(ns gateway.common.channel-buffers (:require [clojure.core.async.impl.protocols :as impl]) (:import [java.util LinkedList Queue])) (defprotocol DroppedCount (dropped-count [this])) (deftype DroppingBufferWithSignal [^LinkedList buf ^long n ^:unsynchronized-mutable ^long total-dropped on-drop] impl/UnblockingB...
null
https://raw.githubusercontent.com/Glue42/gateway-modules/be48a132134b5f9f41fd6a6067800da6be5e6eca/common/src/gateway/common/channel_buffers.clj
clojure
(ns gateway.common.channel-buffers (:require [clojure.core.async.impl.protocols :as impl]) (:import [java.util LinkedList Queue])) (defprotocol DroppedCount (dropped-count [this])) (deftype DroppingBufferWithSignal [^LinkedList buf ^long n ^:unsynchronized-mutable ^long total-dropped on-drop] impl/UnblockingB...
3710a6065f15ea8d68f142b6a84911c53da8c2982a3ec00a6d228ca27afd4ca6
ivarref/double-trouble
jii.clj
(ns com.github.ivarref.double-trouble.jii (:require [datomic.api :as d])) (defn get-val [db e a] (d/q '[:find ?v . :in $ ?e ?a :where [?e ?a ?v]] db e a)) (defn jii [db e-or-lookup-ref attr] (cond (or (not (keyword? attr)) (nil? (:db/id (d/pull db [:db...
null
https://raw.githubusercontent.com/ivarref/double-trouble/53f3a8a7176e0125323883b350328430331379b0/src/com/github/ivarref/double_trouble/jii.clj
clojure
(ns com.github.ivarref.double-trouble.jii (:require [datomic.api :as d])) (defn get-val [db e a] (d/q '[:find ?v . :in $ ?e ?a :where [?e ?a ?v]] db e a)) (defn jii [db e-or-lookup-ref attr] (cond (or (not (keyword? attr)) (nil? (:db/id (d/pull db [:db...
bff1e74aa312185b5512b19faf79e3b6cd6b23c608c5c153828e2abe80a01b6e
hubbards/stlc-haskell
Syntax.hs
-- | Abstract syntax for typed lambda calculus. -- module Syntax ( Ctx , Type(..) , Var , Expr(..) ) where -- | Typing context (or typing environment). -- -- TODO: change association list to function type. -- type Ctx = [(Var, Type)] -- | Type. -- data Type = Atom String -- atomic | Fun Type ...
null
https://raw.githubusercontent.com/hubbards/stlc-haskell/3f153d5630c3513bcb8a8eb769ae93ffd54398cf/Syntax.hs
haskell
| Abstract syntax for typed lambda calculus. | Typing context (or typing environment). TODO: change association list to function type. | Type. atomic function product sum | Variable. | Expression. application abstraction reference pair injection left injection right case
module Syntax ( Ctx , Type(..) , Var , Expr(..) ) where type Ctx = [(Var, Type)] deriving (Eq, Show) type Var = String projection first projection second deriving (Eq, Show)
ea4a9f9cd8cb65fca25ed2b59025e1fcc9ec8fc979570664ad0fded79e58afcd
dbuenzli/cmdliner
test_nest.ml
open Cmdliner let kind = let doc = "Kind of entity" in Arg.(value & opt (some string) None & info ["k";"kind"] ~doc) let speed = let doc = "Movement $(docv) in m/s" in Arg.(value & opt int 2 & info ["speed"] ~doc ~docv:"SPEED") let birds = let bird = let doc = "Use $(docv) specie." in Arg.(value &...
null
https://raw.githubusercontent.com/dbuenzli/cmdliner/a9074b68328c18b007a0c84b410412cf46f87603/test/test_nest.ml
ocaml
open Cmdliner let kind = let doc = "Kind of entity" in Arg.(value & opt (some string) None & info ["k";"kind"] ~doc) let speed = let doc = "Movement $(docv) in m/s" in Arg.(value & opt int 2 & info ["speed"] ~doc ~docv:"SPEED") let birds = let bird = let doc = "Use $(docv) specie." in Arg.(value &...
c324d1afdb53f32c768c31e61643f854fbc17b2e86ea6d1719f739c0525ed712
ChrisPenner/proton
Coalgebraic.hs
# LANGUAGE InstanceSigs # module Proton.Coalgebraic where import Proton.Types import Data.Profunctor import Proton.Prisms import Proton.Review type Coalgebraic s t a b = forall p. MChoice p => Optic p s t a b type Coalgebraic' s a = Coalgebraic s s a a swapEither :: Either a b -> Either b a swapEither (Left a) = Rig...
null
https://raw.githubusercontent.com/ChrisPenner/proton/4ce22d473ce5bece8322c841bd2cf7f18673d57d/src/Proton/Coalgebraic.hs
haskell
# LANGUAGE InstanceSigs # module Proton.Coalgebraic where import Proton.Types import Data.Profunctor import Proton.Prisms import Proton.Review type Coalgebraic s t a b = forall p. MChoice p => Optic p s t a b type Coalgebraic' s a = Coalgebraic s s a a swapEither :: Either a b -> Either b a swapEither (Left a) = Rig...
c902d302bf7d71636ea808659a150e54e0939b73c5d9bc5ffefb59de2b084c8a
RefactoringTools/HaRe
NumberNames.hs
module NumberNames(module NumberNames,module UniqueNames) where import NameMaps import UniqueNames import SourceNames --numberNames = id -- numberNames m = mapNames conv m where conv (SN i p) = PN i (S p) --}
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/old/tools/base/parse2/NumberNames.hs
haskell
numberNames = id }
module NumberNames(module NumberNames,module UniqueNames) where import NameMaps import UniqueNames import SourceNames numberNames m = mapNames conv m where conv (SN i p) = PN i (S p)
e18a0b8ab128ca55c77bb17c31672e115b6347194f229114809e32f3dee80c39
kiselgra/c-mera
cxx.namespace.01.lisp
(include <iostream>) (using-namespace std) (namespace 'foo (namespace 'fuu (namespace 'foh (typedef int bar)))) (decl (((from-namespace 'foo 'fuu 'foh 'bar) x = 9)) (function main () -> int (<< cout x endl) (return 0))) # # 9
null
https://raw.githubusercontent.com/kiselgra/c-mera/d06ed96d50a40a3fefe188202c8c535d6784f392/tests/cxx.namespace.01.lisp
lisp
(include <iostream>) (using-namespace std) (namespace 'foo (namespace 'fuu (namespace 'foh (typedef int bar)))) (decl (((from-namespace 'foo 'fuu 'foh 'bar) x = 9)) (function main () -> int (<< cout x endl) (return 0))) # # 9
654ac003bfeb9a975bf5fd4947060fd227bc5303ec5f86d8682857a3153e0793
ocaml-ppx/ppxlib
test.ml
(* Test for the ppx_import old syntax compat support *) open Ppxlib let id = Extension.__declare_ppx_import "id" (fun ~ctxt:_ td -> match td.ptype_manifest with | Some {ptyp_desc = Ptyp_extension (_, PTyp wrapped_manifest); _} -> {td with ptype_manifest = Some wrapped_manifest} ...
null
https://raw.githubusercontent.com/ocaml-ppx/ppxlib/1baaa0b78f55dd89d47bbbcc9fbe03d11ab05cc9/test/ppx_import_support/test.ml
ocaml
Test for the ppx_import old syntax compat support The expander receives the type decl with the extension point removed, it should preserve attibutes It also should work in signatures by default It should properly compose with [@@deriving] It should be properly interpreted if it's the result of the expansion...
open Ppxlib let id = Extension.__declare_ppx_import "id" (fun ~ctxt:_ td -> match td.ptype_manifest with | Some {ptyp_desc = Ptyp_extension (_, PTyp wrapped_manifest); _} -> {td with ptype_manifest = Some wrapped_manifest} | _ -> assert false) [%%expect{| val id : Extension.t =...
6dd2950abc8e110de94de115e81b67021ff1defec16ce2738014519e1207f58f
kadena-io/chainweaver
Routes.hs
# LANGUAGE DataKinds # # LANGUAGE ExtendedDefaultRules # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # | Handling of route updates for chainweaver . ...
null
https://raw.githubusercontent.com/kadena-io/chainweaver/5d40e91411995e0a9a7e782d6bb2d89ac1c65d52/frontend/src/Frontend/Routes.hs
haskell
# LANGUAGE OverloadedStrings # This module takes care of triggering actions on route updates and keeping routes and internal state in sync. License : BSD-style (see the file LICENSE) ---------------------------------------------------------------------------- ---------------------------------------------...
# LANGUAGE DataKinds # # LANGUAGE ExtendedDefaultRules # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # | Handling of route updates for chainweaver . Copyright : ( C ) 2020 - 202...
f4fe90f1c590a76fe003ebe080ca16c38b20c0bfebe22cb9d4810755125c2f0f
OCamlPro/OCamlPro-OCaml-Branch
tformat.ml
(*************************************************************************) (* *) (* Objective Caml *) (* *) ,...
null
https://raw.githubusercontent.com/OCamlPro/OCamlPro-OCaml-Branch/3a522985649389f89dac73e655d562c54f0456a5/inline-more/testsuite/tests/basic-more/tformat.ml
ocaml
*********************************************************************** Objective Caml ...
, projet Estime , INRIA Rocquencourt Copyright 2009 Institut National de Recherche en Informatique et under the terms of the Q Public License version 1.0 . $ I d : tformat.ml 9270 2009 - 05 - 20 11:52:42Z doligez $ A testbed file for the module Format . ...
96a704ca8c8defea51a0320405dfe41635ef954e707ae7d44722b8b511537d0d
DSTOQ/haskell-stellar-sdk
Types.hs
{-# LANGUAGE StrictData #-} module Stellar.Core.Types ( module Stellar.Core.Types.Asset , module Stellar.Core.Types.Key , module Stellar.Core.Types.Lumen , AllowTrustOp (..) , ChangeTrustOp (..) , CreateAccountOp (..) , CreatePassiveOfferOp (..) , DataValue (..) , DecoratedSignature (..) , Env...
null
https://raw.githubusercontent.com/DSTOQ/haskell-stellar-sdk/82a76c2f951a2aaabdc38092fdc89044b278c53d/core/src/Stellar/Core/Types.hs
haskell
# LANGUAGE StrictData # sendAsset sendMax destination destAsset destAmount path inflation destination which flags to clear which flags to set weight of the master account inflationDest clearFlags masterWeight highThreshold homeDomain signer sourceAccount body ext sourceAccount fee seqNum tim...
module Stellar.Core.Types ( module Stellar.Core.Types.Asset , module Stellar.Core.Types.Key , module Stellar.Core.Types.Lumen , AllowTrustOp (..) , ChangeTrustOp (..) , CreateAccountOp (..) , CreatePassiveOfferOp (..) , DataValue (..) , DecoratedSignature (..) , EnvelopeType (..) , Fee (..) , M...
1988363d4ed198c0d2ad20f84f3135e70d0b700dd28829e1fa47b7cf9fef8fd1
uw-unsat/serval
encoding.rkt
#lang rosette (require "../base.rkt" "../register.rkt" (prefix-in core: serval/lib/core)) (provide (all-defined-out)) ; helper (define-syntax (define-match-rule stx) (syntax-case stx () [(_ (id args ...) body ...) #'(define-match-expander id (syntax-rules () [(_ args ...) body ...]) ...
null
https://raw.githubusercontent.com/uw-unsat/serval/be11ecccf03f81b8bd0557acf8385a6a5d4f51ed/serval/x86/interp/encoding.rkt
racket
helper byte /digit: the reg field contains the digit opcode+reg
#lang rosette (require "../base.rkt" "../register.rkt" (prefix-in core: serval/lib/core)) (provide (all-defined-out)) (define-syntax (define-match-rule stx) (syntax-case stx () [(_ (id args ...) body ...) #'(define-match-expander id (syntax-rules () [(_ args ...) body ...]) (sy...
5da73e111233122b125e5fd4bbde8b8ddd2a29c5aadda3d47bc2cd7a41e3a2ec
locusmath/locus
mf.clj
(ns locus.set.mapping.function.operations.mf (:require [locus.set.logic.core.set :refer :all] [locus.set.logic.limit.product :refer :all] [locus.set.logic.limit.power :refer :all] [locus.set.logic.structure.protocols :refer :all] [locus.set.mapping.general.core.object :...
null
https://raw.githubusercontent.com/locusmath/locus/fb6068bd78977b51fd3c5783545a5f9986e4235c/src/clojure/locus/set/mapping/function/operations/mf.clj
clojure
A data type for describing magma functions
(ns locus.set.mapping.function.operations.mf (:require [locus.set.logic.core.set :refer :all] [locus.set.logic.limit.product :refer :all] [locus.set.logic.limit.power :refer :all] [locus.set.logic.structure.protocols :refer :all] [locus.set.mapping.general.core.object :...
7fb33f200f789d9abc3637309f50e058f5410eccd428808ba5268458cc7289e9
diku-dk/futhark
MulticoreWASM.hs
| module Futhark.CLI.MulticoreWASM (main) where import Futhark.Actions (compileMulticoreToWASMAction) import Futhark.Compiler.CLI import Futhark.Passes (multicorePipeline) -- | Run @futhark c@ main :: String -> [String] -> IO () main = compilerMain () [] "Compile to multicore WASM" "Generate multicore W...
null
https://raw.githubusercontent.com/diku-dk/futhark/98e4a75e4de7042afe030837084764bbf3c6c66e/src/Futhark/CLI/MulticoreWASM.hs
haskell
| Run @futhark c@
| module Futhark.CLI.MulticoreWASM (main) where import Futhark.Actions (compileMulticoreToWASMAction) import Futhark.Compiler.CLI import Futhark.Passes (multicorePipeline) main :: String -> [String] -> IO () main = compilerMain () [] "Compile to multicore WASM" "Generate multicore WASM with the multicor...
987cfcaa56de8b6a7eb1940aec29ebb4ad793a2f03b22d68b4bc6a9ef76a6a76
ssor/erlangDemos
reg_app.erl
-module(reg_app). -behaviour(application). -export([start/0,stop/1, start/2]). start() -> reg_store:init(), ut_event_sensor : add_handler ( ) , case reg_sup:start_link() of {ok,Pid} -> io:format("RFID Event Generator Running...~n"), {ok,Pid}; Other -> {error, Other} end. %%%%====================...
null
https://raw.githubusercontent.com/ssor/erlangDemos/632cd905be2c4f275f1c1ae15238e711d7bb9147/rfid_event_generator/src/reg_app.erl
erlang
======================================================================= Callbacks
-module(reg_app). -behaviour(application). -export([start/0,stop/1, start/2]). start() -> reg_store:init(), ut_event_sensor : add_handler ( ) , case reg_sup:start_link() of {ok,Pid} -> io:format("RFID Event Generator Running...~n"), {ok,Pid}; Other -> {error, Other} end. start(_Type,_StartArgs)...
58bf21d53be4ce15547d4e6698af931148895c9d5c1b2536de01689f446f1380
discus-lang/ddc
Apply.hs
| Application of simplifiers to modules and expressions . module DDC.Core.Simplifier.Apply ( applySimplifier , applyTransform , applySimplifierX , applyTransformX) where import DDC.Data.Pretty import DDC.Core.Module import DDC.Core.Exp import DDC.Core.Fragment import DDC.Core.Simplifi...
null
https://raw.githubusercontent.com/discus-lang/ddc/2baa1b4e2d43b6b02135257677671a83cb7384ac/src/s1/ddc-core/DDC/Core/Simplifier/Apply.hs
haskell
Modules -------------------------------------------------------------------- | Apply a simplifier to a module. ^ Profile of language we're working in ^ Kind environment ^ Type environment ^ Simplifier to apply ^ Module to simplify | Apply a transform until it stops progressing, or a maximum number of times ^...
| Application of simplifiers to modules and expressions . module DDC.Core.Simplifier.Apply ( applySimplifier , applyTransform , applySimplifierX , applyTransformX) where import DDC.Data.Pretty import DDC.Core.Module import DDC.Core.Exp import DDC.Core.Fragment import DDC.Core.Simplifi...
8a877b55767dd77dfdf7ebae9657d564d380042f1808d9afebcc783d5edc7868
MyPost/cassius
common.clj
(ns cassius.common) (defn hash-map? [x] (instance? clojure.lang.APersistentMap x)) (defn atom? [x] (instance? clojure.lang.Atom x)) (defn assoc-nil ([m k v] (if (get m k) m (assoc m k v))) ([m k v & more] (apply assoc-nil (assoc-nil m k v) more))) (defn assoc-full ([m k v] (if-not (empty? ...
null
https://raw.githubusercontent.com/MyPost/cassius/7b5f550fa8e8f825d4ecd7ba6a0d34c5ff606a7c/src/cassius/common.clj
clojure
(ns cassius.common) (defn hash-map? [x] (instance? clojure.lang.APersistentMap x)) (defn atom? [x] (instance? clojure.lang.Atom x)) (defn assoc-nil ([m k v] (if (get m k) m (assoc m k v))) ([m k v & more] (apply assoc-nil (assoc-nil m k v) more))) (defn assoc-full ([m k v] (if-not (empty? ...
3984219c544072136aa282cc7b47b08624b6bc7178212b7555ab516d86e1d124
nick8325/jukebox
Toolbox.hs
-- Components ("boxes") which can be put together to make tools. # LANGUAGE RecordWildCards , CPP , ScopedTypeVariables # module Jukebox.Toolbox where import Jukebox.Options import Jukebox.Form import Jukebox.Name import Jukebox.TPTP.Print import Control.Monad import Jukebox.TPTP.Parse import Jukebox.Tools.Clausify hi...
null
https://raw.githubusercontent.com/nick8325/jukebox/52c3206d7def50c8ebcc0128c442fa6c2bd4e074/src/Jukebox/Toolbox.hs
haskell
Components ("boxes") which can be put together to make tools. -------------------------------------------------------------------- Some standard flags. Use flag rather than bool to avoid getting a --no-quiet option in the help message -------------------------------------------------------------------- Printing ou...
# LANGUAGE RecordWildCards , CPP , ScopedTypeVariables # module Jukebox.Toolbox where import Jukebox.Options import Jukebox.Form import Jukebox.Name import Jukebox.TPTP.Print import Control.Monad import Jukebox.TPTP.Parse import Jukebox.Tools.Clausify hiding (run) import Jukebox.Tools.AnalyseMonotonicity hiding (guard...
dd2fa6e9731165cafbfb8ea8f418b81b15aee8ba97eeb0595864c923194b8da6
spell-music/csound-expression
Parse.hs
{-# Language ScopedTypeVariables #-} module Csound.Gen.Parse( parse, parseBy, DocTab, Unparsed, downloadDesc ) where import Control.Applicative import Control.Monad.Trans.Writer import Control.Arrow(first, second) import Data.Char import Data.Ord import Data.Function import Data.Maybe import Data.Either import Da...
null
https://raw.githubusercontent.com/spell-music/csound-expression/29c1611172153347b16d0b6b133e4db61a7218d5/gen-csound-opcodes/src/Csound/Gen/Parse.hs
haskell
# Language ScopedTypeVariables # ----------------------------------------------------------------------- do not render opcodes from this list ----------------------------------------------------------------------- groups ----------------------------------------------------------------------- opc --------------------...
module Csound.Gen.Parse( parse, parseBy, DocTab, Unparsed, downloadDesc ) where import Control.Applicative import Control.Monad.Trans.Writer import Control.Arrow(first, second) import Data.Char import Data.Ord import Data.Function import Data.Maybe import Data.Either import Data.List import Data.Function import ...
d00fe367b128d697d2a793c0f88d7e94bb4f9f9e0aaf5f4f25b22f615c8de210
ekmett/lens
properties.hs
# OPTIONS_GHC -Wno - missing - signatures # # LANGUAGE CPP # {-# LANGUAGE Rank2Types #-} # LANGUAGE FlexibleContexts # # LANGUAGE ExtendedDefaultRules # # LANGUAGE LiberalTypeSynonyms # # LANGUAGE ScopedTypeVariables # # LANGUAGE KindSignatures # {-# LANGUAGE GADTs #-} # LANGUAGE PolyKinds # # LANGUAGE TypeOperators # ...
null
https://raw.githubusercontent.com/ekmett/lens/91ced560a37200f7ca04c3179adc76e363b0d77e/tests/properties.hs
haskell
# LANGUAGE Rank2Types # # LANGUAGE GADTs # # LANGUAGE ConstraintKinds # --------------------------------------------------------------------------- | Module : Main (properties) License : BSD-style (see the file LICENSE) Stability : experimental Portability : non-portable test-framework to validate...
# OPTIONS_GHC -Wno - missing - signatures # # LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE ExtendedDefaultRules # # LANGUAGE LiberalTypeSynonyms # # LANGUAGE ScopedTypeVariables # # LANGUAGE KindSignatures # # LANGUAGE PolyKinds # # LANGUAGE TypeOperators # Copyright : ( C ) 2012 - 14 Maintainer ...
602a98ce1627c761b10b2e566c096e7e3bb68d6f1d5267e126a0bc490655ac3d
SKA-ScienceDataProcessor/RC
Types.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE DeriveGeneric # module Types where import Control.Distributed.Process import Control.Distributed.Process.Serializable (Serializable) import Data.Binary import Data.Typeable import GHC.Generics (Generic) --------------------------...
null
https://raw.githubusercontent.com/SKA-ScienceDataProcessor/RC/1b5e25baf9204a9f7ef40ed8ee94a86cc6c674af/MS1/distributed-dot-product/Types.hs
haskell
# LANGUAGE DeriveDataTypeable # -------------------------------------------------------------- Types -------------------------------------------------------------- | Final result of computation | Finite stream of values | Number of values | Message from worker process saying that it's idle and request more work...
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE DeriveGeneric # module Types where import Control.Distributed.Process import Control.Distributed.Process.Serializable (Serializable) import Data.Binary import Data.Typeable import GHC.Generics (Generic) newtype Result a = Result a deriving (Show,Typeable,Binar...
225fe37c9c54c59a7bff38b2093b659da5b8cd3656ea098d7b59f12f79c56729
zcaudate/hara
diff.clj
(ns hara.data.base.diff (:require [hara.core.base.check :as check] [hara.data.base.map :as map] [hara.data.base.nested :as nested])) (defn diff-changes "Finds changes in nested maps, does not consider new elements (diff-changes {:a 2} {:a 1}) => {[:a] 2} (diff-changes {:a {:b 1...
null
https://raw.githubusercontent.com/zcaudate/hara/481316c1f5c2aeba5be6e01ae673dffc46a63ec9/src/hara/data/base/diff.clj
clojure
(ns hara.data.base.diff (:require [hara.core.base.check :as check] [hara.data.base.map :as map] [hara.data.base.nested :as nested])) (defn diff-changes "Finds changes in nested maps, does not consider new elements (diff-changes {:a 2} {:a 1}) => {[:a] 2} (diff-changes {:a {:b 1...
d3169fef9c1a31d078bd82ce2f22dd6c0923a047b2b95751e77d132689e2b566
clojure-dus/chess
web.clj
(ns chess.web (:require [clojure.data.json :as json]) (:use [ring.adapter.jetty :only [run-jetty]] [ring.util.response :only [response content-type redirect]] [ring.middleware.resource :only [wrap-resource]] [ring.middleware.file-info :only [wrap-file-info]] [ring.middleware.re...
null
https://raw.githubusercontent.com/clojure-dus/chess/7eb0e5bf15290f520f31e7eb3f2b7742c7f27729/src/chess/web.clj
clojure
(ns chess.web (:require [clojure.data.json :as json]) (:use [ring.adapter.jetty :only [run-jetty]] [ring.util.response :only [response content-type redirect]] [ring.middleware.resource :only [wrap-resource]] [ring.middleware.file-info :only [wrap-file-info]] [ring.middleware.re...
3c6895e0b634df4ef22746be16514a5931d5a2c01a54d4fce93b3cd77a9e4f58
onedata/op-worker
qos_middleware_plugin.erl
%%%------------------------------------------------------------------- @author ( C ) 2019 - 2021 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc %%% This module handles middlew...
null
https://raw.githubusercontent.com/onedata/op-worker/34607258e1b3fca71a1b0da2a0bc5f0134fe878e/src/middleware/plugins/qos_middleware_plugin.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc This module handles middleware operations (create, get, delete) @end ------------------------------------------------------------------- middleware_router callbacks mid...
@author ( C ) 2019 - 2021 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . corresponding to QoS management . -module(qos_middleware_plugin). -author("Michal Cwiertnia"). -behaviour(middleware_router). -behaviour(middleware_handler). -include("middleware/middlewa...
df905afae2327373e56fc3e056617358b3ebcdaba907dac785b907d33bbb8095
CryptoKami/cryptokami-core
Txp.hs
| Binary serialization of Txp types . # OPTIONS_GHC -F -pgmF autoexporter # {-# OPTIONS_GHC -Wno-unused-imports #-} # OPTIONS_GHC -Wno - dodgy - exports #
null
https://raw.githubusercontent.com/CryptoKami/cryptokami-core/12ca60a9ad167b6327397b3b2f928c19436ae114/txp/Pos/Binary/Txp.hs
haskell
# OPTIONS_GHC -Wno-unused-imports #
| Binary serialization of Txp types . # OPTIONS_GHC -F -pgmF autoexporter # # OPTIONS_GHC -Wno - dodgy - exports #
3ea7c3b3c07df5bd6f1d916c8aaf018aeaef951c25e3012ae46e4c61290711da
ndmitchell/catch
MattBits.hs
module MattBits where num :: [Bool] -> Int num [] = 0 num (a:as) = fromEnum a + 2 * num as main sel xs = xs !! num sel num : : [ Bool ] - > Int num [ ] = 0 num ( a : as ) = bit2int a + num as main sel xs...
null
https://raw.githubusercontent.com/ndmitchell/catch/5d834416a27b4df3f7ce7830c4757d4505aaf96e/examples/Example/MattBits.hs
haskell
module MattBits where num :: [Bool] -> Int num [] = 0 num (a:as) = fromEnum a + 2 * num as main sel xs = xs !! num sel num : : [ Bool ] - > Int num [ ] = 0 num ( a : as ) = bit2int a + num as main sel xs...
27540f1cc5c557f68cb9078a4bcc6457cd3254e099f5af13c6395e52561a010d
hipsleek/hipsleek
sh_proc.ml
open VarGen open Gen (* let reg = Str.regexp "^[\#]+x-add \\([^\.]+\\)\.\([^ ]+\) \\([^.]+\\)\.ml \\([a-z].*\\\)+";; *) let mapt = Hashtbl.create 10 let rec add_2_lst e lst = match lst with | [ ] - > [ ( e,1 ) ] | ( a , n)::lst - > (* if a=e then (a,n+1)::lst *) else ( a ,...
null
https://raw.githubusercontent.com/hipsleek/hipsleek/596f7fa7f67444c8309da2ca86ba4c47d376618c/src/sh_proc.ml
ocaml
let reg = Str.regexp "^[\#]+x-add \\([^\.]+\\)\.\([^ ]+\) \\([^.]+\\)\.ml \\([a-z].*\\\)+";; if a=e then (a,n+1)::lst let mapt_add_elem id e = try let lst = Hashtbl.find mapt id in with _ -> let mapt_string_of () = Hashtbl.fold (fun id lst acc -> (id^":"^((pr_list (pr_pair pr_id stri...
open VarGen open Gen let mapt = Hashtbl.create 10 let rec add_2_lst e lst = match lst with | [ ] - > [ ( e,1 ) ] | ( a , n)::lst - > else ( a , n)::(add_2_lst e lst ) let lst = add_2_lst e lst in Hashtbl.replace mapt i d ( lst ) Hashtbl.add mapt i d [ ( e,1 ) ]...
6d1e3036152317bcb4f18e182869a2c2723f52f11ee8ced7e0cd6d2fc3fd53bc
dsorokin/aivika
Base.hs
-- | -- Module : Simulation.Aivika.Queue.Infinite.Base Copyright : Copyright ( c ) 2009 - 2017 , < > -- License : BSD3 Maintainer : < > -- Stability : experimental Tested with : GHC 8.0.1 -- -- This module defines an infinite optimised queue, which has no counters nor signals. -- module Simulatio...
null
https://raw.githubusercontent.com/dsorokin/aivika/7a14f460ab114b0f8cdfcd05d5cc889fdc2db0a4/Simulation/Aivika/Queue/Infinite/Base.hs
haskell
| Module : Simulation.Aivika.Queue.Infinite.Base License : BSD3 Stability : experimental This module defines an infinite optimised queue, which has no counters nor signals. * Queue Types * Creating Queue * Queue Properties and Activities (First Come - First Serviced) queue. | A type synonym for the ...
Copyright : Copyright ( c ) 2009 - 2017 , < > Maintainer : < > Tested with : GHC 8.0.1 module Simulation.Aivika.Queue.Infinite.Base FCFSQueue, LCFSQueue, SIROQueue, PriorityQueue, Queue, newFCFSQueue, newLCFSQueue, newSIROQueue, newP...
c744e7cd4ae0c004302e914ab345bd59b5cc299d9a14ca6cac56772fe186bb7b
ijvcms/chuanqi_dev
map_10201.erl
-module(map_10201). -export([ range/0, data/0 ]). range() -> {20, 12}. data() -> { {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/map_data/map_10201.erl
erlang
-module(map_10201). -export([ range/0, data/0 ]). range() -> {20, 12}. data() -> { {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0...
2e4dfc7e13c450b14049f24088cbf5448db6d2d8a5f0ab958dc3079d80ee970f
xh4/web-toolkit
shorthand.lisp
(in-package :css)
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/css/shorthand.lisp
lisp
(in-package :css)
588cf8f87f3e0ab59d980133cc3c3af2eada0081bc54fb3af2dd8d6cc9352aa5
samee/netlist
StableMarriage.hs
module Circuit.StableMarriage where import Control.Monad import Data.List import Debug.Trace import Circuit.Array import Util TODO Complete specs Write code test interpreted write stack circuit test interpreted stack circuit write circuit test Refactor internals ( with new types like stackSpecs and...
null
https://raw.githubusercontent.com/samee/netlist/9fc20829f29724dc1148e54bd64fefd7e70af5ba/Circuit/StableMarriage.hs
haskell
int should be big enough for [0,n] *inclusive* Assumes that orderM and orderF are n by n matrices
module Circuit.StableMarriage where import Control.Monad import Data.List import Debug.Trace import Circuit.Array import Util TODO Complete specs Write code test interpreted write stack circuit test interpreted stack circuit write circuit test Refactor internals ( with new types like stackSpecs and...
c22008ae8848cc6f6d18194b2414d48bf82ef67805f5aa6ff6ea412f46dbb4db
bloomberg/blpapi-hs
IdentityImpl.hs
| Module : Finance . Blpapi . Impl . IdentityImpl Description : FFI for Identity Copyright : Bloomberg Finance L.P. License : MIT Maintainer : Stability : experimental Portability : * nix , windows Module : Finance.Blpapi.Impl.IdentityImpl Description : FFI for Identity Copyrigh...
null
https://raw.githubusercontent.com/bloomberg/blpapi-hs/a4bdff86f3febcf8b06cbc70466c8abc177b973a/src/Finance/Blpapi/Impl/IdentityImpl.hs
haskell
| Module : Finance . Blpapi . Impl . IdentityImpl Description : FFI for Identity Copyright : Bloomberg Finance L.P. License : MIT Maintainer : Stability : experimental Portability : * nix , windows Module : Finance.Blpapi.Impl.IdentityImpl Description : FFI for Identity Copyrigh...
48ce45ba61b5b0135e273842ad221bf4120e017a23677697942e2321185385a8
ocaml/ocaml-lsp
semantic_hl_helpers.mli
open Test.Import val annotate_src_with_tokens : legend:SemanticTokensLegend.t -> encoded_tokens:int array -> annot_mods:bool -> string -> string
null
https://raw.githubusercontent.com/ocaml/ocaml-lsp/4787b0518c612b21b88e077228a91d69f8e4525b/ocaml-lsp-server/test/e2e-new/semantic_hl_helpers.mli
ocaml
open Test.Import val annotate_src_with_tokens : legend:SemanticTokensLegend.t -> encoded_tokens:int array -> annot_mods:bool -> string -> string
a201a04214fb3df724c5dfa926b97c03f2782ec958d33f7e5b0c8f24b12cebce
noahlz/cosla
user.clj
(ns user "Tools for interactive development with the REPL. This file should not be included in a production build of the application." (:require [clojure.java.io :as io] [clojure.java.javadoc :refer (javadoc)] [clojure.pprint :refer (pprint)] [clojure.reflect :refer (reflect)] [clojure.repl :r...
null
https://raw.githubusercontent.com/noahlz/cosla/bec25ab51b1482066d8ced379df3ac65abb00595/dev/user.clj
clojure
My ad-hoc testing functions Test the below functions using the form (test-<fn>), i.e. (test-fetch-issue "SUPPORT-1821") no-op
(ns user "Tools for interactive development with the REPL. This file should not be included in a production build of the application." (:require [clojure.java.io :as io] [clojure.java.javadoc :refer (javadoc)] [clojure.pprint :refer (pprint)] [clojure.reflect :refer (reflect)] [clojure.repl :r...
9cbfc1ce2542ce62010e8e88c1b3dcb307bc0801e6702b1b91f5b343f187111d
kwantam/lviv
lviv-misc.scm
; Copyright ( c ) 2011 < > ; ;Permission is hereby granted, free of charge, to any person obtaining a copy ;of this software and associated documentation files (the "Software"), to deal ;in the Software without restriction, including without limitation the rights ;to use, copy, modify, merge, publish, distribute, s...
null
https://raw.githubusercontent.com/kwantam/lviv/bbfda50a4801f92b79631f77e7fa997dc10f0516/src/lviv-misc.scm
scheme
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to...
Copyright ( c ) 2011 < > 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 ANY KIND , EXPRESS OR IMPLIED , INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY , OR COPYRIGHT...
7941cce19dbdc0ac368bd0afb2293f0a33d800b162242395823186cdcce76773
GaloisInc/saw-script
Clobber.hs
{-# LANGUAGE GADTs #-} # LANGUAGE PatternSynonyms # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # module Mir.Compositional.Clobber where import Control.Lens ((^.), (^?), ix) import Control.Monad.Except import qualified Data.Map as Map import qualified Data.Parameterized.Context as Ctx import Data.Param...
null
https://raw.githubusercontent.com/GaloisInc/saw-script/6e315718da259bd63186793bfef095591ea3da9a/crux-mir-comp/src/Mir/Compositional/Clobber.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # | Replace each primitive value within `rv` with a fresh symbolic variable. | Like `clobberSymbolic`, but for values in "immutable" memory. Values immutable (`&`) access. So this function modifies only the portions of `rv` there's nothing to change. Since this ref is in ...
# LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # module Mir.Compositional.Clobber where import Control.Lens ((^.), (^?), ix) import Control.Monad.Except import qualified Data.Map as Map import qualified Data.Parameterized.Context as Ctx import Data.Parameterized.TraversableFC import qualified Data.Vector...
538cb624e3708505bbf6058babec7c0f216743d4e2a00faec0c7af5222c61074
fujita-y/ypsilon
%3a8.scm
#!nobacktrace (library (srfi :8) (export receive) (import (srfi srfi-8)))
null
https://raw.githubusercontent.com/fujita-y/ypsilon/820aa1b0258eb1854172c7909aef7462bb0e2adb/sitelib/srfi/%253a8.scm
scheme
#!nobacktrace (library (srfi :8) (export receive) (import (srfi srfi-8)))
2e00637729cdfb698304083b76d61de4594d3c7043f19a36794d38a5f0f287b0
athensresearch/athens
drop_area_indicator.cljs
(ns athens.views.blocks.drop-area-indicator (:require ["@chakra-ui/react" :refer [Box]])) (defn drop-area-indicator ([{:keys [placement child?]}] [:> Box {:display "block" :height "1px" :pointerEvents "none" :background "link" :gridArea (if (= placement "abov...
null
https://raw.githubusercontent.com/athensresearch/athens/27596405c2a6880d7c977901366bbf5aa5450b27/src/cljs/athens/views/blocks/drop_area_indicator.cljs
clojure
(ns athens.views.blocks.drop-area-indicator (:require ["@chakra-ui/react" :refer [Box]])) (defn drop-area-indicator ([{:keys [placement child?]}] [:> Box {:display "block" :height "1px" :pointerEvents "none" :background "link" :gridArea (if (= placement "abov...
40c703931e69a6b809b4fa076cc178006895c803654c9d0a068e8e173072e941
Guest0x0/trebor
Implicit.ml
open Syntax open Value let rec gen_implicit_args g level env typ = match Eval.force g typ with | TyFun(_, Implicit, a, b) -> let meta = g#fresh_meta (Unification.env_to_tyfun g env a) in let arg = Stuck(Meta meta, Unification.env_to_elim level env) in let typ', args = gen_implicit_arg...
null
https://raw.githubusercontent.com/Guest0x0/trebor/c6b6c099e3e848979bd8f501d28c4c2f35f1235e/Kernel/Implicit.ml
ocaml
open Syntax open Value let rec gen_implicit_args g level env typ = match Eval.force g typ with | TyFun(_, Implicit, a, b) -> let meta = g#fresh_meta (Unification.env_to_tyfun g env a) in let arg = Stuck(Meta meta, Unification.env_to_elim level env) in let typ', args = gen_implicit_arg...
2dceb6654880c4b4de4afa93ce437872142b3b4cf7bdb9158efdb13ac28f7172
wdebeaum/step
wholesale.lisp
;;;; ;;;; W::wholesale ;;;; (define-words :pos W::adj :templ CENTRAL-ADJ-TEMPL :words ( (W::wholesale (SENSES ((meta-data :origin calo :entry-date 20050324 :change-date nil :wn ("wholesale%3:00:00") :comments caloy2) (example "the manufacturer's retail price") (LF-PARENT ONT::COMMERCE-VAL) ) ...
null
https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/LexiconManager/Data/new/wholesale.lisp
lisp
W::wholesale
(define-words :pos W::adj :templ CENTRAL-ADJ-TEMPL :words ( (W::wholesale (SENSES ((meta-data :origin calo :entry-date 20050324 :change-date nil :wn ("wholesale%3:00:00") :comments caloy2) (example "the manufacturer's retail price") (LF-PARENT ONT::COMMERCE-VAL) ) ) ) ))
8f28d5f4f36728739d7d45be6f6230786c401ab56d5a9bed93d5bf6527cb0181
ska80/thinlisp
echo.lisp
(in-package "LECHO") ;;;; Module ECHO Copyright ( c ) 1999 The ThinLisp Group Copyright ( c ) 1999 ;;; All rights reserved. This file is part of ThinLisp . ThinLisp is open source ; you can redistribute it and/or modify it under the terms of the ThinLisp License as published by the ThinLisp Group ; ei...
null
https://raw.githubusercontent.com/ska80/thinlisp/173573a723256d901887f1cbc26d5403025879ca/lecho/lisp/echo.lisp
lisp
Module ECHO All rights reserved. you can redistribute it and/or modify it either version 1 or ( at your option ) any later version . WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Echoing Arguments The `lecho' system is a simple, Lisp-based echo p...
(in-package "LECHO") Copyright ( c ) 1999 The ThinLisp Group Copyright ( c ) 1999 This file is part of ThinLisp . under the terms of the ThinLisp License as published by the ThinLisp ThinLisp is distributed in the hope that it will be useful , but For additional information see < / > Author : ...
94d4bc7dee96a95039c299f85f437abc463d6c1f449c171b5c112d0051337610
artagnon/rhine-ml
location.ml
open Lexing open Core.Std let absname = ref false This reference should be in Clflags , but it would create an additional dependency and make bootstrapping more difficult . dependency and make bootstrapping Camlp4 more difficult. *) type t = { loc_start: position; loc_end: position; loc_ghost: bool...
null
https://raw.githubusercontent.com/artagnon/rhine-ml/07b31e7f0bccebef71135db4d6c16a792ce33c7e/location.ml
ocaml
number of lines already printed after input Do nothing if the buffer does not contain the whole phrase. Determine line numbers for the start and end points Highlight the location by printing it again. Do nothing if the buffer does not contain the whole phrase. Determine line numbers for the start and end poi...
open Lexing open Core.Std let absname = ref false This reference should be in Clflags , but it would create an additional dependency and make bootstrapping more difficult . dependency and make bootstrapping Camlp4 more difficult. *) type t = { loc_start: position; loc_end: position; loc_ghost: bool...
8d47d49b8902586df26e0af2c090a39c3cf4124cba9de7ae6eaaa29367143366
Kakadu/lablqml
Controller.ml
open Lablqml class virtual controller = object (self) method virtual descr : string [@@qtprop] end [@@qtclass] module IntModel = struct class virtual c = object (self) end [@@qtclass] [@@itemmodel] end module DataItem = struct class virtual dataItem = object (self) method virtual text : string ...
null
https://raw.githubusercontent.com/Kakadu/lablqml/438103d6ab22b09be53e3c8218d3b21c00eafdb6/dune_test/Controller.ml
ocaml
open Lablqml class virtual controller = object (self) method virtual descr : string [@@qtprop] end [@@qtclass] module IntModel = struct class virtual c = object (self) end [@@qtclass] [@@itemmodel] end module DataItem = struct class virtual dataItem = object (self) method virtual text : string ...
d254605a8e328311d3b6f3d390394fa95f98528eb05c183e0f7268eeb8737313
mangpo/greenthumb
186.rkt
#lang racket (require "../arm-validator.rkt" "../arm-machine.rkt" "../arm-printer.rkt" "../arm-parser.rkt" "../arm-forwardbackward.rkt" "../arm-simulator-racket.rkt") (define parser (new arm-parser%)) (define machine (new arm-machine%)) (send machine set-config (list 4 0 0)) (define print...
null
https://raw.githubusercontent.com/mangpo/greenthumb/7a8626205879af8c788f9927eeff643f4ddc5cde/arm/alive/186.rkt
racket
%r = sub 0, %a spec sketch = spec in this case
#lang racket (require "../arm-validator.rkt" "../arm-machine.rkt" "../arm-printer.rkt" "../arm-parser.rkt" "../arm-forwardbackward.rkt" "../arm-simulator-racket.rkt") (define parser (new arm-parser%)) (define machine (new arm-machine%)) (send machine set-config (list 4 0 0)) (define print...
49b59a08cac91cd4384611be3fe41dbf84e1f4d15929eec70c2afb23163f5003
brendanhay/terrafomo
Settings.hs
-- This module is auto-generated. # LANGUAGE NoImplicitPrelude # # LANGUAGE RecordWildCards # # LANGUAGE StrictData # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - unused - imports # -- | Module : . . Settings Copyright : ( c ) 2017 - 2018 License : Mozill...
null
https://raw.githubusercontent.com/brendanhay/terrafomo/387a0e9341fb9cd5543ef8332dea126f50f1070e/provider/terrafomo-grafana/gen/Terrafomo/Grafana/Settings.hs
haskell
This module is auto-generated. | Stability : auto-generated * DataSourceJsonData * DataSourceSecureJsonData | The @json_data@ nested settings definition. ^ @assume_role_arn@ - (Optional) - (Required) - (Optional) ^ @default_region@ - (Required) | Construct a new @json_data@ settings value. | The requir...
# LANGUAGE NoImplicitPrelude # # LANGUAGE RecordWildCards # # LANGUAGE StrictData # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - unused - imports # Module : . . Settings Copyright : ( c ) 2017 - 2018 License : Mozilla Public License , v. 2.0 . Maintaine...
6be0246f1ac8b1403b6a4acc64ea8abfc0cc989b9f6a18014a1419fdab09122c
clojurecup2014/parade-route
numbers.clj
Copyright ( c ) . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; ...
null
https://raw.githubusercontent.com/clojurecup2014/parade-route/adb2e1ea202228e3da07902849dee08f0bb8d81c/Assets/Clojure/Internal/Plugins/clojure/test_clojure/numbers.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) . All rights reserved . Author : scgilardi ( gmail ) Created 30 October 2008 (ns clojure.test-clojure.numbers (:use clojure.test [clojure.test.generative :exclude (is)] clojure.template) (:require [clojure.data.generators :as gen])) (deftest Coerced-BigDecima...
21e1da2dc86c41d8b7820dfdb4e0d10116f138343a2f1e76767788751ff1e3b3
joelagnel/stumpwm-goodies
effects.lisp
(in-package :stumpwm) (setf *message-window-gravity* :top-right) (setf *input-window-gravity* :top-right) (set-font "-b&h-lucidatypewriter-medium-r-normal-sans-11-80-100-100-m-70-iso10646-1") (set-bg-color "black") (set-fg-color "antiquewhite") (set-border-color "lightgreen") (set-unfocus-color "darkgray") (setf *win...
null
https://raw.githubusercontent.com/joelagnel/stumpwm-goodies/bf9dee6a2e92fea6f2160c37565a74072e367d36/effects.lisp
lisp
(in-package :stumpwm) (setf *message-window-gravity* :top-right) (setf *input-window-gravity* :top-right) (set-font "-b&h-lucidatypewriter-medium-r-normal-sans-11-80-100-100-m-70-iso10646-1") (set-bg-color "black") (set-fg-color "antiquewhite") (set-border-color "lightgreen") (set-unfocus-color "darkgray") (setf *win...
5aad27e49795fed3188f505bd6fff990743f3ae7deeb4724cd34ed3bc868fd4e
circleci/bond
project.clj
(defproject circleci/bond "0.6.0" :description "Spying library for testing" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [] :plugins [[lein-cloverage "1.2.2"] [jonase/eastwood "0.3.14" :exclusions [org.clojure/clojure]]] :eastwood {:exclude-linters ...
null
https://raw.githubusercontent.com/circleci/bond/5873537765d6751abf1778d75c79691e1ca5f7b3/project.clj
clojure
clj-kondo will catch the wrong-arity cases
(defproject circleci/bond "0.6.0" :description "Spying library for testing" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [] :plugins [[lein-cloverage "1.2.2"] [jonase/eastwood "0.3.14" :exclusions [org.clojure/clojure]]] :eastwood {:exclude-linters ( ea...
f5ee50e65690b125443416546a4266f59e363dcd47ea9319ba91c79bf8ef05e7
8c6794b6/guile-tjit
ir-numeric.scm
ANF IR for numeric operations Copyright ( C ) 2015 , 2016 Free Software Foundation , Inc. ;;;; ;;;; This library is free software; you can redistribute it and/or ;;;; modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 3 of the Licens...
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/module/language/trace/ir-numeric.scm
scheme
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public either This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See...
ANF IR for numeric operations Copyright ( C ) 2015 , 2016 Free Software Foundation , Inc. version 3 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , MA 02110 - 1301 USA...
7492c78c19c23b74910d8eaa61094a8fb928bd5788cfa411edbb03e2298c7e22
ninenines/cowboy
rate_limited_h.erl
%% This module does rate limiting based on the query string value. -module(rate_limited_h). -export([init/2]). -export([rate_limited/2]). -export([content_types_provided/2]). -export([get_text_plain/2]). init(Req, State) -> {cowboy_rest, Req, State}. rate_limited(Req=#{qs := <<"false">>}, State) -> {false, Req, S...
null
https://raw.githubusercontent.com/ninenines/cowboy/8795233c57f1f472781a22ffbf186ce38cc5b049/test/handlers/rate_limited_h.erl
erlang
This module does rate limiting based on the query string value.
-module(rate_limited_h). -export([init/2]). -export([rate_limited/2]). -export([content_types_provided/2]). -export([get_text_plain/2]). init(Req, State) -> {cowboy_rest, Req, State}. rate_limited(Req=#{qs := <<"false">>}, State) -> {false, Req, State}; rate_limited(Req=#{qs := <<"true-date">>}, State) -> {{true...
51938773a102edc5d4923abbafa21614f2d66554a6e4a1de2fa3fb78bb48d06e
lemmih/lhc
LLVM.hs
# LANGUAGE NoMonadFailDesugaring # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # module Data.Bedrock.LLVM ( compile ) where import Control.Monad.Reader import qualified Data.Map as Map import qualified Data.Set as Set import Data.Bedrock...
null
https://raw.githubusercontent.com/lemmih/lhc/53bfa57b9b7275b7737dcf9dd620533d0261be66/bedrock/src/Data/Bedrock/LLVM.hs
haskell
# LANGUAGE OverloadedStrings # [ ConstructorName name blanks | NodeDefinition name args <- nodes bedrock , blanks <- [0..length args] ] ++ [ FunctionName fnName blanks | Bedrock.Function{..} <- functions bedrock , blanks <- [0..length fnArguments] ] | NodeDefinition name args <- nodes bedrock , blanks <- [0..le...
# LANGUAGE NoMonadFailDesugaring # # LANGUAGE RecordWildCards # module Data.Bedrock.LLVM ( compile ) where import Control.Monad.Reader import qualified Data.Map as Map import qualified Data.Set as Set import Data.Bedrock as Bedrock import ...
8e6c90ac5cf766ac7f00e20c98118cb5827e89ec8804d90b618f9e07a68dff96
turnbullpress/aom-code
graphite.clj
(ns examplecom.etc.graphite (:require [riemann.config :refer :all] [riemann.graphite :refer :all])) (defn add-environment-to-graphite [event] (str "productiona.hosts.", (riemann.graphite/graphite-path-percentiles event))) (def graph (async-queue! :graphite {:queue-size 1000} (graphite {:host...
null
https://raw.githubusercontent.com/turnbullpress/aom-code/2c016cab87d81bcd1f04ab41b6824798eb09e780/4/riemann/examplecom/etc/graphite.clj
clojure
(ns examplecom.etc.graphite (:require [riemann.config :refer :all] [riemann.graphite :refer :all])) (defn add-environment-to-graphite [event] (str "productiona.hosts.", (riemann.graphite/graphite-path-percentiles event))) (def graph (async-queue! :graphite {:queue-size 1000} (graphite {:host...
fe1c12efefb1540d91edf6f1a396e16fa3610b9372825d25f1c29aac78add498
jixiuf/helloerlang
ppool_serv.erl
-module(ppool_serv). -export([code_change/3,handle_call/3,handle_cast/2,handle_info/2,init/1,terminate/2]). -export([run/2,sync_queue/2,async_queue/2]). -export([start_link/4,stop/1,start/4]). %% -compile([export_all]). ppool_worker_sup 与此module ppool_serv 不同之处在于此module ppool_serv , %% 而ppool_worker_sup在此mod...
null
https://raw.githubusercontent.com/jixiuf/helloerlang/3960eb4237b026f98edf35d6064539259a816d58/erlcount_release/ppool-1.1/src/ppool_serv.erl
erlang
-compile([export_all]). 而ppool_worker_sup在此module 中, 动态启动,启动过程中,将super 设为ppool_super 一个ppool_super是一个pool, 而ppool_super的父节点是ppool_supersuper 即此程序中可以存在多个pool ,一个 pool 的死活与另一个pool 不相干 , 故在ppool_supersuper中使用one_for_one 启动ppool_super. 而ppool_super的两个子节点,ppool_worker_sup与ppool_serv却是同生共死才能完成一个 id ppool_serv 由 ppool_su...
-module(ppool_serv). -export([code_change/3,handle_call/3,handle_cast/2,handle_info/2,init/1,terminate/2]). -export([run/2,sync_queue/2,async_queue/2]). -export([start_link/4,stop/1,start/4]). ppool_worker_sup 与此module ppool_serv 不同之处在于此module ppool_serv , { ok , Pid}= supervisor : start_child(Super , ) ,...
44898e728ad4923a028bd6ca340f3166126f50017287e2edbecd279ed87b0cd1
turtlesoupy/haskakafka
Convert.hs
module Haskakafka.Consumer.Internal.Convert where import Control.Monad import Foreign import Foreign.C.String import Haskakafka.Consumer.Internal.Types import Haskakafka.InternalRdKafka import Haskakafka.InternalShared | Converts offsets sync policy to in...
null
https://raw.githubusercontent.com/turtlesoupy/haskakafka/cae3348be1a3934629cf58d433c224d87ff59608/src/Haskakafka/Consumer/Internal/Convert.hs
haskell
* @OffsetSyncDisable == -1@ * @OffsetSyncImmediate == 0@ * @OffsetSyncInterval ms == ms@
module Haskakafka.Consumer.Internal.Convert where import Control.Monad import Foreign import Foreign.C.String import Haskakafka.Consumer.Internal.Types import Haskakafka.InternalRdKafka import Haskakafka.InternalShared | Converts offsets sync policy to in...
85fd5c237c244ae1a913ce6729f3079f57bbc2fa29d511091c5231d3c6ee09be
dongcarl/guix
lisp-utils.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2016 , 2017 < > Copyright © 2020 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundat...
null
https://raw.githubusercontent.com/dongcarl/guix/82543e9649da2da9a5285ede4ec4f718fd740fcb/guix/build/lisp-utils.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 < > Copyright © 2020 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (guix build lisp-utils) #:use-module (ice-9 format) #:use-mod...
0dc829d882e307f7aba35f413a4141ba32204f1c8331df778b9df6aa6db7b6c2
lispnik/cl-http
cl-http-compatibility.lisp
;;; -*- Package: "CL-USER"; -*- " <DOCUMENTATION> <DESCRIPTION> the parser/modeler can be loaded in either of two forms: with network and http support by virtue of the presence of a cl-http substrate, or limited to access to local files. the distinction is made based on the presence of the :CL-HTTP feature at...
null
https://raw.githubusercontent.com/lispnik/cl-http/84391892d88c505aed705762a153eb65befb6409/contrib/janderson/xml-1999-05-03/cl-http-compatibility.lisp
lisp
-*- Package: "CL-USER"; -*-
" <DOCUMENTATION> <DESCRIPTION> the parser/modeler can be loaded in either of two forms: with network and http support by virtue of the presence of a cl-http substrate, or limited to access to local files. the distinction is made based on the presence of the :CL-HTTP feature at load-time and becomes apparent ...
cab28cf772e1a10126c49ab17c955d1b0a17c6d16328fafe6859c25cc0cbcd5e
pangloss/pattern
simplify_test.clj
(ns simplify-test (:require [clojure.test :refer [deftest is testing]] [clojure.walk :as walk] [pattern.r3.rule :refer [*debug-rules*]] [pattern.r3.combinators :refer [rule-list rule-simplifier iterated]] [pattern.r3.core :ref...
null
https://raw.githubusercontent.com/pangloss/pattern/08040c67dada94fe0dc97af206638a301b7f3d7d/test/simplify_test.clj
clojure
Helper functions for an algebraic simplifier "distribute the radical sign across products and quotients. but doing this may allow equal subexpressions within the radicals to cancel in various ways. The companion rule sqrt-contract reassembles what remains." Scmutils, in each of these expansions, will `assume!` t...
(ns simplify-test (:require [clojure.test :refer [deftest is testing]] [clojure.walk :as walk] [pattern.r3.rule :refer [*debug-rules*]] [pattern.r3.combinators :refer [rule-list rule-simplifier iterated]] [pattern.r3.core :ref...
3d48efab8c788ec04e3df2488f18dd41d419df2297c4fe986b5eb829d236dd60
ocaml-multicore/reagents
scheduler_intf.ml
module type S = sig type 'a cont (** The type of continuation. *) val suspend : ('a cont -> 'a option) -> 'a (** [suspend f] applies [f] to the current continuation. If [f] returns [Some v], then the function returns [v] immediately. Otherwise, if [f] returns [None], then the current fiber is susp...
null
https://raw.githubusercontent.com/ocaml-multicore/reagents/6721db78b21028c807fb13d0af0aaf9407c662b5/lib/scheduler_intf.ml
ocaml
* The type of continuation. * [suspend f] applies [f] to the current continuation. If [f] returns [Some v], then the function returns [v] immediately. Otherwise, if [f] returns [None], then the current fiber is suspended and the control switches to the next fiber from the scheduler. * [resume k v] ...
module type S = sig type 'a cont val suspend : ('a cont -> 'a option) -> 'a val resume : 'a cont -> 'a -> unit val get_tid : unit -> int end
8bbaba348878b883cc325ccf1151eb2341c99052a751d4cca739064cdb3fd5b4
erikd/language-javascript
Printer.hs
# LANGUAGE CPP , FlexibleInstances , NoOverloadedStrings , TypeSynonymInstances # module Language.JavaScript.Pretty.Printer ( -- * Printing renderJS , renderToString , renderToText ) where import Blaze.ByteString.Builder (Builder, toLazyByteString) import Data.List #if ! MIN_VERSION_base(4,13,0...
null
https://raw.githubusercontent.com/erikd/language-javascript/376b83afdba022da1462f9814e63f2c5a2b15120/src/Language/JavaScript/Pretty/Printer.hs
haskell
* Printing --------------------------------------------------------------------- --------------------------------------------------------------------- Pretty printer stuff via blaze-builder --------------------------------------------------------------------- need to be careful to not lose the unicode encoding on...
# LANGUAGE CPP , FlexibleInstances , NoOverloadedStrings , TypeSynonymInstances # module Language.JavaScript.Pretty.Printer renderJS , renderToString , renderToText ) where import Blaze.ByteString.Builder (Builder, toLazyByteString) import Data.List #if ! MIN_VERSION_base(4,13,0) import Data.Monoid...
c0e36b462372eec8638f8a42da9b5fe0210c2c77d105a3646475b04e2e742762
cedlemo/OCaml-GI-ctypes-bindings-generator
Tree_path.mli
open Ctypes type t val t_typ : t structure typ val create : unit -> t structure ptr val create_first : unit -> t structure ptr (*Not implemented gtk_tree_path_new_from_indicesv type C Array type for Types.Array tag not implemented*) val create_from_string : string -> t structure ptr val append_index : t struc...
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Tree_path.mli
ocaml
Not implemented gtk_tree_path_new_from_indicesv type C Array type for Types.Array tag not implemented Not implemented gtk_tree_path_get_indices_with_depth return type C Array type for Types.Array tag not handled
open Ctypes type t val t_typ : t structure typ val create : unit -> t structure ptr val create_first : unit -> t structure ptr val create_from_string : string -> t structure ptr val append_index : t structure ptr -> int32 -> unit val compare : t structure ptr -> t structure ptr -> int32 val copy : t struc...