_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
2fe970bae6b8016b41a3c30d78d0cda7a9b8ed5a4bfe0621571ec226e4cb16b3
zotonic/zotonic
z_trans_server.erl
@author < > 2010 - 2017 %% @doc Simple server to manage the translations, owns the ets table containing all translations. %% When new translations are read then the previous table is kept and the one before the previous is deleted. Copyright 2010 - 2017 %% Licensed under the Apache License , Version 2....
null
https://raw.githubusercontent.com/zotonic/zotonic/aa38d5bd01f20696a7c5230b97ea23d2d1678e79/apps/zotonic_core/src/i18n/z_trans_server.erl
erlang
@doc Simple server to manage the translations, owns the ets table containing all translations. When new translations are read then the previous table is kept and the one before the previous is deleted. you may not use this file except in compliance with the License. You may obtain a copy of the License at -2...
@author < > 2010 - 2017 Copyright 2010 - 2017 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(z_trans_server). -behaviour(gen_server). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, ter...
f65b829457cd1e74856589653a72145160573ff3fbc549524c26f8168ed21daf
vikram/lisplibraries
packages.lisp
;;; -*- lisp -*- ;;;; * The Packages (defpackage :it.bese.ucw (:nicknames :ucw) (:shadowing-import-from :trivial-garbage #:make-hash-table) (:use :common-lisp :it.bese.ucw.system :it.bese.arnesi :it.bese.yaclml :bordeaux-threads :local-time :trivial-garbage ...
null
https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/ucw-boxset/ucw_ajax/src/packages.lisp
lisp
-*- lisp -*- * The Packages backend classes random configuration options rerl protocol client-state application mixins accessing the request/response objects backtracking components dojo widgets windows error message component login component collapsible-pane component info-message component option dia...
(defpackage :it.bese.ucw (:nicknames :ucw) (:shadowing-import-from :trivial-garbage #:make-hash-table) (:use :common-lisp :it.bese.ucw.system :it.bese.arnesi :it.bese.yaclml :bordeaux-threads :local-time :trivial-garbage :cl-l10n :iterate ...
18053021e625cf4b02e30fc290c55395c6daba253b132f6e136ce7614e64f5ba
OCamlPro/techelson
clap.ml
(* CLAP stuff. *) open Base open Base.Common (** Type of arguments and modes descriptions. *) type description = formatter -> unit -> unit (** Exception thrown when `help` is asked. *) exception PrintHelp of Conf.mode (** Types and helper functions for the type of values accepted by arguments. *) module Value = str...
null
https://raw.githubusercontent.com/OCamlPro/techelson/932fbf08675cd13d34a07e3b3d77234bdafcf5bc/src/clap.ml
ocaml
CLAP stuff. * Type of arguments and modes descriptions. * Exception thrown when `help` is asked. * Types and helper functions for the type of values accepted by arguments. * Aggregates descriptors for values. * Description of the value expected for a string. * Description of the values expected for a boolean val...
open Base open Base.Common type description = formatter -> unit -> unit exception PrintHelp of Conf.mode module Value = struct module Desc = struct let string_val_desc : string = "<string>" let bool_val_desc : string = "(on|true|True|no|off|false|False)" let int_val_desc : string = "<...
935efd18f3641dc3b553b77d9954df7281dbf9d06ed514ae6601162e84c5a3eb
mistupv/cauder-core
tcp-fixed2.erl
-module('tcp-fixed2'). -export([main/0, server_fun/3, client_fun/4, ack/5]). main() -> Server_PID = spawn(?MODULE, server_fun, [self(), 50, 500]), spawn(?MODULE, client_fun, [Server_PID, 57, 100, client1]), spawn(?MODULE, client_fun, [Server_PID, 50, 200, client2]), receive {data,D} -> D end. server_fun(Ma...
null
https://raw.githubusercontent.com/mistupv/cauder-core/b676fccd1bbd629eb63f3cb5259f7a9a8c6da899/case-studies/tcp/tcp-fixed2.erl
erlang
-module('tcp-fixed2'). -export([main/0, server_fun/3, client_fun/4, ack/5]). main() -> Server_PID = spawn(?MODULE, server_fun, [self(), 50, 500]), spawn(?MODULE, client_fun, [Server_PID, 57, 100, client1]), spawn(?MODULE, client_fun, [Server_PID, 50, 200, client2]), receive {data,D} -> D end. server_fun(Ma...
552a274cb46c1bb12bc7e8b90d47a227255c131e87ed17b58599d6c3bd0bb80c
racket/redex
rvm-15.rkt
#lang racket/base (require redex/benchmark "util.rkt" redex/reduction-semantics) (provide (all-defined-out)) (define the-error "neglected to restrict case-lam to accept only 'val' arguments") (define-rewrite bug15v ((verify (case-lam (name l (lam (val ellipsis1) (n ellipsis2) e)) ellipsis3) s n_l...
null
https://raw.githubusercontent.com/racket/redex/4c2dc96d90cedeb08ec1850575079b952c5ad396/redex-benchmark/redex/benchmark/models/rvm/rvm-15.rkt
racket
#lang racket/base (require redex/benchmark "util.rkt" redex/reduction-semantics) (provide (all-defined-out)) (define the-error "neglected to restrict case-lam to accept only 'val' arguments") (define-rewrite bug15v ((verify (case-lam (name l (lam (val ellipsis1) (n ellipsis2) e)) ellipsis3) s n_l...
a01de44f166a6ac276850ad8711a874362444e0c3d97606d9014f1a4e2ff42e5
wdebeaum/step
utter.lisp
;;;; ;;;; w::utter ;;;; (define-words :pos W::v :TEMPL AGENT-FORMAL-XP-TEMPL :words ( (W::utter (SENSES ((meta-data :origin "verbnet-2.0" :entry-date 20060315 :change-date 20090505 :comments nil :vn ("say-37.7")) (LF-PARENT ONT::say) (TEMPL AGENT-FORMAL-XP-TEMPL (xp (% w::cp (w::ctype w::s-that))...
null
https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/LexiconManager/Data/new/utter.lisp
lisp
w::utter like disclose like total
(define-words :pos W::v :TEMPL AGENT-FORMAL-XP-TEMPL :words ( (W::utter (SENSES ((meta-data :origin "verbnet-2.0" :entry-date 20060315 :change-date 20090505 :comments nil :vn ("say-37.7")) (LF-PARENT ONT::say) (PREFERENCE 0.98) ) ) ) )) (define-words :pos W::adj :templ CENTRAL-ADJ-TEM...
5ece310c0851f48c3348272a4f63e41a9e592f5264b7393b74b625bc6ec2a059
clojure-interop/aws-api
core.clj
(ns com.amazonaws.services.iotdata.core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[com.amazonaws.services.iotdata.AWSIotData]) (require '[com.amazonaws.services.iotdata.AWSIotDataAsync]) (require '[com.amazonaws.services.iotdata.AWSIotDataAsyncClient]) (require '[com.amazonaws.services...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.iotdata/src/com/amazonaws/services/iotdata/core.clj
clojure
(ns com.amazonaws.services.iotdata.core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[com.amazonaws.services.iotdata.AWSIotData]) (require '[com.amazonaws.services.iotdata.AWSIotDataAsync]) (require '[com.amazonaws.services.iotdata.AWSIotDataAsyncClient]) (require '[com.amazonaws.services...
5f9b78b385def8f7b0c9245010f099b4286d353ce224e04ab3bc0aa5322e5275
drone-rites/clj-oauth
client_xauth_test.clj
(ns oauth.client-xauth-test (:require [oauth.client :as oc] [oauth.signature :as sig]) (:use clojure.test)) (def consumer (oc/make-consumer "JvyS7DO2qd6NNTsXJ4E7zA" "9z6157pUbOBqtbm0A0q4r29Y2EYzIHlUwbF4Cl9c" "" ...
null
https://raw.githubusercontent.com/drone-rites/clj-oauth/dd8a05a78aa4eeb56d00dd5a0e17c2f02c5bec4d/test/oauth/client_xauth_test.clj
clojure
(ns oauth.client-xauth-test (:require [oauth.client :as oc] [oauth.signature :as sig]) (:use clojure.test)) (def consumer (oc/make-consumer "JvyS7DO2qd6NNTsXJ4E7zA" "9z6157pUbOBqtbm0A0q4r29Y2EYzIHlUwbF4Cl9c" "" ...
a1136b6510473911004d08922cc6fe80cf3b0cab37f14a8b78f2df63418564e8
jellelicht/guix
libcanberra.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2013 < > Copyright © 2014 , 2015 < > Copyright © 2016 < > ;;; ;;; 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 ...
null
https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/gnu/packages/libcanberra.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 © 2013 < > Copyright © 2014 , 2015 < > Copyright © 2016 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu packages libcanberra) #:use-modul...
25fb82f29d4aed997b9b43f49be9cdd2fdd6e8b380d2bc7da38ed7647a2474b4
input-output-hk/rscoin-haskell
Launcher.hs
-- | Launch Notary stuff. module RSCoin.Notary.Launcher ( ContextArgument (..) , launchNotaryReal ) where import Control.Monad (unless, when) import Control.Monad.Catch (bracket) import Control.Monad.Trans (Mon...
null
https://raw.githubusercontent.com/input-output-hk/rscoin-haskell/109d8f6f226e9d0b360fcaac14c5a90da112a810/src/RSCoin/Notary/Launcher.hs
haskell
| Launch Notary stuff.
module RSCoin.Notary.Launcher ( ContextArgument (..) , launchNotaryReal ) where import Control.Monad (unless, when) import Control.Monad.Catch (bracket) import Control.Monad.Trans (MonadIO, liftIO) import ...
5de910fff95be547bbf0abdbf4580de7e385d63b7aab90c6cf0db13f2ed48e00
purerl/purerl
JSON.hs
# LANGUAGE TemplateHaskell # # LANGUAGE CPP # module Language.PureScript.Erl.Errors.JSON where import Prelude.Compat import qualified Data.Aeson.TH as A import qualified Data.List.NonEmpty as NEL import Data.Text (Text) import qualified Language.PureScript as P import Language.PureScript.Erl.Errors.Types import Lan...
null
https://raw.githubusercontent.com/purerl/purerl/8fd0386f8470b987f2ec0a9acbfafd546f513fda/src/Language/PureScript/Erl/Errors/JSON.hs
haskell
# LANGUAGE TemplateHaskell # # LANGUAGE CPP # module Language.PureScript.Erl.Errors.JSON where import Prelude.Compat import qualified Data.Aeson.TH as A import qualified Data.List.NonEmpty as NEL import Data.Text (Text) import qualified Language.PureScript as P import Language.PureScript.Erl.Errors.Types import Lan...
1f88d23417a5d6bcc4472fbe3d9eac22bb026c5866bbd0c8353aa1440a69bb30
kupl/FixML
sub36.ml
type metro = STATION of name | AREA of name * metro | CONNECT of metro * metro and name = string let rec checkMetro: metro -> bool = fun m -> match m with | STATION _ -> false | CONNECT _ -> false | AREA(n', m') -> List.mem n' (listMetro(m')) and listMetro: metro -> 'a list = fun m -> match m with | S...
null
https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/benchmarks/wellformedness/wellformedness1/submissions/sub36.ml
ocaml
type metro = STATION of name | AREA of name * metro | CONNECT of metro * metro and name = string let rec checkMetro: metro -> bool = fun m -> match m with | STATION _ -> false | CONNECT _ -> false | AREA(n', m') -> List.mem n' (listMetro(m')) and listMetro: metro -> 'a list = fun m -> match m with | S...
22e68e614ceaedc07cd61ee8656856d36f0e56fc4b12abf19027a993c6c73f29
mirage/mirage-vnetif
config.ml
open Mirage let main = foreign "Iperf_self.Main" (console @-> job) let platform = match get_mode () with | `Xen -> "xen" | _ -> "unix" let () = add_to_opam_packages [ "mirage-vnetif" ; "mirage-net-" ^ platform; "mirage-clock-" ^ platform; "mirage-" ^ platform; ...
null
https://raw.githubusercontent.com/mirage/mirage-vnetif/e33e44c987289b31571dbb5f836d43a3a6485120/examples/iperf_self/config.ml
ocaml
open Mirage let main = foreign "Iperf_self.Main" (console @-> job) let platform = match get_mode () with | `Xen -> "xen" | _ -> "unix" let () = add_to_opam_packages [ "mirage-vnetif" ; "mirage-net-" ^ platform; "mirage-clock-" ^ platform; "mirage-" ^ platform; ...
5f89b42b15611724c1b9682c5ebe7d119ee4b37e7cbcf82241c4897d0c5969fb
pykello/racket-visualization
common.rkt
#lang racket (require metapict racket/math slideshow/latex) (provide (all-defined-out)) (latex-debug? #f) ;; Added to every tex file, before the document proper: (add-preamble #<<latex \usepackage{amsmath, amssymb} \newcommand{\targetlang}{\lambda_{\mathrm{ZFC}}} \newcommand{\meaningof}[1]{[\![{#1...
null
https://raw.githubusercontent.com/pykello/racket-visualization/7c4dccfd59123fcb7c144ad8ed89dffdc57290df/metapict-examples/common.rkt
racket
Added to every tex file, before the document proper:
#lang racket (require metapict racket/math slideshow/latex) (provide (all-defined-out)) (latex-debug? #f) (add-preamble #<<latex \usepackage{amsmath, amssymb} \newcommand{\targetlang}{\lambda_{\mathrm{ZFC}}} \newcommand{\meaningof}[1]{[\![{#1}]\!]} % use in semantic functions \newcommand{\A}{\mat...
818691852deb079d93ee989a104a1aeb6592f0591486811c1cbcde3e2cef1ff7
threatgrid/ctia
identity_assertion_test.clj
(ns ctia.entity.identity-assertion-test (:require [clojure.test :refer [deftest is join-fixtures testing use-fixtures]] [ctia.entity.identity-assertion :as sut] [ctia.test-helpers.aggregate :refer [test-metric-routes]] [ctia.test-helpers.auth :refer [all-capabilities]] ...
null
https://raw.githubusercontent.com/threatgrid/ctia/43ff86881b099bfd5a86f6a24a7ec0e05e980c04/test/ctia/entity/identity_assertion_test.clj
clojure
(ns ctia.entity.identity-assertion-test (:require [clojure.test :refer [deftest is join-fixtures testing use-fixtures]] [ctia.entity.identity-assertion :as sut] [ctia.test-helpers.aggregate :refer [test-metric-routes]] [ctia.test-helpers.auth :refer [all-capabilities]] ...
93b4f1f52dae5d843362220338ec29392c2fe3b6e032b932272d4b3c852e74e0
scicloj/tablecloth
common_test.clj
(ns tablecloth.common-test (:require [tablecloth.api :as api])) (def DS (api/dataset {:V1 (take 9 (cycle [1 2])) :V2 (range 1 10) :V3 (take 9 (cycle [0.5 1.0 1.5])) :V4 (take 9 (cycle ["A" "B" "C"]))} {:dataset-name "DS"})) (defn...
null
https://raw.githubusercontent.com/scicloj/tablecloth/e5f53bcfb5aab20a1807cecc3782cfba2b58476b/test/tablecloth/common_test.clj
clojure
(ns tablecloth.common-test (:require [tablecloth.api :as api])) (def DS (api/dataset {:V1 (take 9 (cycle [1 2])) :V2 (range 1 10) :V3 (take 9 (cycle [0.5 1.0 1.5])) :V4 (take 9 (cycle ["A" "B" "C"]))} {:dataset-name "DS"})) (defn...
1be0b50662c04868c827ddfad286c4955cb98546f9337ea843b0a982fd97abec
msimon/chip8js
admin_mod.ml
{client{ exception Wrong_dom_value (* empty value is to handle correclty option for list and array When a value is missing from a list or an array, we don't want it to be set at None. We delete the value that generate a error, and keep the rest of the list/array *) exception Empty_value open Elio...
null
https://raw.githubusercontent.com/msimon/chip8js/67f6ea0e25a2cc2287b6915c4ca2639a9d64c632/utils/lib/admin_mod.ml
ocaml
empty value is to handle correclty option for list and array When a value is missing from a list or an array, we don't want it to be set at None. We delete the value that generate a error, and keep the rest of the list/array
{client{ exception Wrong_dom_value exception Empty_value open Eliom_content open Html5 open D type 'a dom_value = [ | `Input of Html5_types.input Eliom_content.Html5.D.elt | `Textarea of Html5_types.textarea Eliom_content.Html5.D.elt | `Select of Html5_types.select Eliom_content.Html5.D.elt ...
632e112d59977e672cf37a0db80e5d864c6cc5007176480adc06fc7e10aec367
racket/racket7
module-binding.rkt
#lang racket/base (require "../common/set.rkt" "../compile/serialize-property.rkt" "../compile/serialize-state.rkt" "full-binding.rkt") (provide make-module-binding module-binding-update module-binding? module-binding-module module-binding-phase ...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/expander/syntax/module-binding.rkt
racket
---------------------------------------- must not overlap with `local-binding?` See `identifier-binding` docs for information about these fields: preserves access to protected definitions Dropping the frame id may simplify the representation: ----------------------------------------
#lang racket/base (require "../common/set.rkt" "../compile/serialize-property.rkt" "../compile/serialize-state.rkt" "full-binding.rkt") (provide make-module-binding module-binding-update module-binding? module-binding-module module-binding-phase ...
e5cad58394bd761b752218b2bdb33be70451f61d5621b5e874f565d52c156e96
kangj116/metabase-kylin-driver
project.clj
(defproject metabase/kylin-driver "1.0.0-SNAPSHOT-3.25.2" :min-lein-version "2.5.0" :dependencies [[org.apache.kylin/kylin-jdbc "2.6.4"]] :profiles {:provided {:dependencies [[org.clojure/clojure "1.10.1"] [metabase-core "1.0.0-SNAPSHOT"]]} :uberjar {:auto-clean true :aot ...
null
https://raw.githubusercontent.com/kangj116/metabase-kylin-driver/165f6d0971be9fc746aae4933ab826287d08dee8/project.clj
clojure
(defproject metabase/kylin-driver "1.0.0-SNAPSHOT-3.25.2" :min-lein-version "2.5.0" :dependencies [[org.apache.kylin/kylin-jdbc "2.6.4"]] :profiles {:provided {:dependencies [[org.clojure/clojure "1.10.1"] [metabase-core "1.0.0-SNAPSHOT"]]} :uberjar {:auto-clean true :aot ...
2aa3a8798d91dc82c694db598a6a15680a15814e399f601a0cdff53d87c02461
JPMoresmau/scion-class-browser
Main.hs
{-# LANGUAGE OverloadedStrings #-} module Main where import qualified Codec.Compression.Zlib as Zlib import Control.Monad.State.Strict import Data.Aeson import qualified Data.Aeson.Types as T import qualified Data.Attoparsec.ByteString as Atto import qualified Data.ByteString.Lazy.Char8 as LBS import qualif...
null
https://raw.githubusercontent.com/JPMoresmau/scion-class-browser/572cc2c1177bdaa9558653cc1d941508cd4c7e5b/src/Main.hs
haskell
# LANGUAGE OverloadedStrings # redirect stdout to stderr redirect stdout to original stdout
module Main where import qualified Codec.Compression.Zlib as Zlib import Control.Monad.State.Strict import Data.Aeson import qualified Data.Aeson.Types as T import qualified Data.Attoparsec.ByteString as Atto import qualified Data.ByteString.Lazy.Char8 as LBS import qualified Data.ByteString.UTF8 as BSU(fro...
ca3d9ae2f0868c1a239463b579c53679f2560cdf87254d10a69400bc782c450a
MaartenFaddegon/Hoed
Console.hs
{-# LANGUAGE CPP #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE PatternSynonyms #-} {-# LANGUAGE LambdaCase #-} # LANGUAGE NamedFieldPuns # # LANGUAGE OverloadedLists # # LANGUAGE OverloadedStrings # # LANGUAGE RecordWildCards # # LANGUAGE ViewPatte...
null
https://raw.githubusercontent.com/MaartenFaddegon/Hoed/8769d69e309928aab439b22bc3f3dbf5452acc77/Debug/Hoed/Console.hs
haskell
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE PatternSynonyms # # LANGUAGE LambdaCase # ------------------------------------------------------------------------------ events | A representation of an event as a span | A representation of a trace as a span diagram: ...
# LANGUAGE NamedFieldPuns # # LANGUAGE OverloadedLists # # LANGUAGE OverloadedStrings # # LANGUAGE RecordWildCards # # LANGUAGE ViewPatterns # This file is part of the Haskell debugger Hoed . Copyright ( c ) Maarten Faddegon , 2014 - 2017 module Debug.Hoed.Console(debugSession, ...
273b82f9329a124235d7a7da986d3b550ae8d435a6dd32c45a9b4fdcd3d5603d
xtendo-org/chips
Config.hs
module Config ( decode , encode , Config(..) , templateConfig , gitURLs ) where import Data.Maybe import Data.Text (Text) import Data.Monoid import System.Exit import Data.Aeson.TH import qualified Data.Yaml as Y templateConfig :: Text templateConfig = "\ \git:\n\ \# Add Git clone URLs for f...
null
https://raw.githubusercontent.com/xtendo-org/chips/54846413660536a24d4a9c884b6a33c2d86ad256/src/Config.hs
haskell
DEBUG
module Config ( decode , encode , Config(..) , templateConfig , gitURLs ) where import Data.Maybe import Data.Text (Text) import Data.Monoid import System.Exit import Data.Aeson.TH import qualified Data.Yaml as Y templateConfig :: Text templateConfig = "\ \git:\n\ \# Add Git clone URLs for f...
1258e348a6040fbdabc600cd7633ec5c58893b51f8caaa60e7ec833b02f66869
hakaru-dev/hakaru
Parser.hs
# LANGUAGE CPP , OverloadedStrings , {-# OPTIONS_GHC -Wall -fwarn-tabs -fno-warn-orphans #-} module Tests.Parser where import Prelude hiding (unlines) import Language.Hakaru.Parser.Parser (parseHakaru) import Language.Hakaru.Parser.AST import Data.String (IsString) import Data.Text import Test.HUnit import Test.Q...
null
https://raw.githubusercontent.com/hakaru-dev/hakaru/94157c89ea136c3b654a85cce51f19351245a490/haskell/Tests/Parser.hs
haskell
# OPTIONS_GHC -Wall -fwarn-tabs -fno-warn-orphans # The space between _ and : is important works in lax mode
# LANGUAGE CPP , OverloadedStrings , module Tests.Parser where import Prelude hiding (unlines) import Language.Hakaru.Parser.Parser (parseHakaru) import Language.Hakaru.Parser.AST import Data.String (IsString) import Data.Text import Test.HUnit import Test.QuickCheck.Arbitrary import Test.QuickCheck import Data.F...
ccae7743af2dea50d55b87fbec58c5df88cc647954d2ea82896d90029ce4df16
keera-studios/haskell-titan
Builder.hs
-- | -- Copyright : ( C ) Keera Studios Ltd , 2018 -- License : GPL-3 Maintainer : module Hails.Graphics.UI.Gtk.Builder where import Graphics.UI.Gtk -- | Returns a builder from which the objects in this part of the interface -- can be accessed. loadDefaultInterface :: (String -> IO String) -> IO Builder...
null
https://raw.githubusercontent.com/keera-studios/haskell-titan/958ddd2b468af00db46004a683c1c7aebe81526c/titan/src/Hails/Graphics/UI/Gtk/Builder.hs
haskell
| License : GPL-3 | Returns a builder from which the objects in this part of the interface can be accessed. | Returns a builder from which the objects in this part of the interface can be accessed. | Returns an element from a builder
Copyright : ( C ) Keera Studios Ltd , 2018 Maintainer : module Hails.Graphics.UI.Gtk.Builder where import Graphics.UI.Gtk loadDefaultInterface :: (String -> IO String) -> IO Builder loadDefaultInterface getDataFileName = loadInterface =<< getDataFileName "Interface.glade" loadInterface :: String -> IO Bu...
5425e85b44561f9d3715841cc5b0df052645425944fb83d6f7bbbe72114d3c2f
anishathalye/knox
main.rkt
#lang racket/base (require syntax/parse/define) (define-simple-macro (require+provide module-path:str ...) (begin (require module-path ...) (provide (all-from-out module-path) ...))) (require+provide "concretize.rkt" "convenience.rkt" "dependence.rkt" "addressable-struct.rkt" "lens.rkt" "subsumption....
null
https://raw.githubusercontent.com/anishathalye/knox/161cda3e5274cc69012830f477749954ddcf736d/rosutil/main.rkt
racket
#lang racket/base (require syntax/parse/define) (define-simple-macro (require+provide module-path:str ...) (begin (require module-path ...) (provide (all-from-out module-path) ...))) (require+provide "concretize.rkt" "convenience.rkt" "dependence.rkt" "addressable-struct.rkt" "lens.rkt" "subsumption....
3e5d36af8a8036666045e6d8c85203f20bb135a0e9fc0ebdc45b317e9a837865
qnikst/HaskellNet
pop3.hs
import System.IO import Network.HaskellNet.POP3 import qualified Data.ByteString.Char8 as BSC import qualified Data.ByteString.Char8 as BS import Data.Char import Data.ByteString (ByteString) popServer = "pop3.mail.org" username = "" password = "" main = do con <- connectPop3 popServer print "connected" userP...
null
https://raw.githubusercontent.com/qnikst/HaskellNet/34e3ec8fb2e5071ecff574fc951dbfe356f87bed/example/pop3.hs
haskell
import System.IO import Network.HaskellNet.POP3 import qualified Data.ByteString.Char8 as BSC import qualified Data.ByteString.Char8 as BS import Data.Char import Data.ByteString (ByteString) popServer = "pop3.mail.org" username = "" password = "" main = do con <- connectPop3 popServer print "connected" userP...
00f131281e61bb11ad3db32d11d6d774a844e389cb716c1c0a00f486a750c422
hiredman/clojurebot
pqueue.clj
(ns hiredman.pqueue (:refer-clojure :exclude [first conj seq pop peek empty]) (:require [clojure.core :as cc])) (def empty clojure.lang.PersistentQueue/EMPTY) (defn seq "returns a lazy sequence of the items in the priority queue" [pq] (cc/seq (map second pq))) (defn peek [pq] (cc/first (cc/peek pq)))...
null
https://raw.githubusercontent.com/hiredman/clojurebot/1e8bde92f2dd45bb7928d4db17de8ec48557ead1/src/hiredman/pqueue.clj
clojure
(ns hiredman.pqueue (:refer-clojure :exclude [first conj seq pop peek empty]) (:require [clojure.core :as cc])) (def empty clojure.lang.PersistentQueue/EMPTY) (defn seq "returns a lazy sequence of the items in the priority queue" [pq] (cc/seq (map second pq))) (defn peek [pq] (cc/first (cc/peek pq)))...
e9ad7cd2d283fc7641dd2d62e1369500f8085b8ed02f3bc4d693022401f89b89
serokell/qtah
SceneEventListener.hs
This file is part of Qtah . -- Copyright 2015 - 2018 The Qtah Authors . -- -- This program 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) ...
null
https://raw.githubusercontent.com/serokell/qtah/abb4932248c82dc5c662a20d8f177acbc7cfa722/qtah-generator/src/Graphics/UI/Qtah/Generator/Interface/Internal/SceneEventListener.hs
haskell
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by (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 MER...
This file is part of Qtah . Copyright 2015 - 2018 The Qtah Authors . the Free Software Foundation , either version 3 of the License , or GNU Lesser General Public License for more details . You should have received a copy of the GNU Lesser General Public License module Graphics.UI.Qtah.Generator.Interface.In...
f7e52b2e8fa3e51ea6df5736141683db210fff4ce4f3473a1ee5cbd0cf1faa1f
xcoo/proton
string_test.cljc
(ns proton.string-test (:require #?(:clj [clojure.test :refer [are deftest is testing]] :cljs [cljs.test :refer-macros [are deftest is testing]]) [proton.string :as string])) (deftest prune-test (testing "prune" (are [args e] (= (apply string/prune args) e) ["Simple made easy"]...
null
https://raw.githubusercontent.com/xcoo/proton/9214ae5115b4f7fc6e2a902877751396152c0ff9/test/proton/string_test.cljc
clojure
(ns proton.string-test (:require #?(:clj [clojure.test :refer [are deftest is testing]] :cljs [cljs.test :refer-macros [are deftest is testing]]) [proton.string :as string])) (deftest prune-test (testing "prune" (are [args e] (= (apply string/prune args) e) ["Simple made easy"]...
537cba6966ac673faa611a52ab18a7472e0d3c96816c47858623c9699994bfe3
svobot/janus
Judgment.hs
-- | Defines a 'Judgment' monad transformer that holds the context of -- the judgment. module Janus.Judgment ( Binding(..) , Context , TypingConfig(TypingConfig) , Judgment , evalInEnv , context , with , newLocalVar ) where import Control.Monad.Reader ( ReaderT ...
null
https://raw.githubusercontent.com/svobot/janus/68391b160903e967aa9c88d6b2f16b446fc7abee/src/Janus/Judgment.hs
haskell
| Defines a 'Judgment' monad transformer that holds the context of the judgment. | A context element grouping a variable name, its type, and quantity. | Judgment context. | Record of variables that are in scope. | Variables which have been defined in some previous term. Their values | Variables which have a bind...
module Janus.Judgment ( Binding(..) , Context , TypingConfig(TypingConfig) , Judgment , evalInEnv , context , with , newLocalVar ) where import Control.Monad.Reader ( ReaderT , asks ) i...
a6902adb0f8d304b7833b067dcbf57e9b6f520ee60a955d69ecc1d220f9d865a
roburio/builder-web
builder_web_app.ml
open Lwt.Infix let safe_close fd = Lwt.catch (fun () -> Lwt_unix.close fd) (fun _ -> Lwt.return_unit) let connect addrtype sockaddr = let c = Lwt_unix.(socket addrtype SOCK_STREAM 0) in Lwt_unix.set_close_on_exec c ; Lwt.catch (fun () -> Lwt_unix.(connect c sockaddr) >|= fun () -> Some c) ...
null
https://raw.githubusercontent.com/roburio/builder-web/f666c9d0d1065e94cd401a493bbbd658d0b5b838/bin/builder_web_app.ml
ocaml
> Note: The reason for appending, is that else a new startup could overwrite an existing running batch's log
open Lwt.Infix let safe_close fd = Lwt.catch (fun () -> Lwt_unix.close fd) (fun _ -> Lwt.return_unit) let connect addrtype sockaddr = let c = Lwt_unix.(socket addrtype SOCK_STREAM 0) in Lwt_unix.set_close_on_exec c ; Lwt.catch (fun () -> Lwt_unix.(connect c sockaddr) >|= fun () -> Some c) ...
080d73a6f5ee845d52af107e3fcdc0896406d0bbe916a729bded61a7d2443346
armedbear/abcl
url-pathname.lisp
(in-package #:abcl.test.lisp) ;; URL Pathname tests (deftest url-pathname.1 (let* ((p #p"") (host (pathname-host p))) (values (check-physical-pathname p '(:absolute "a" "b") "foo" "lisp") (and (consp host) (equal (getf host :scheme) "http") ...
null
https://raw.githubusercontent.com/armedbear/abcl/36a4b5994227d768882ff6458b3df9f79caac664/test/lisp/abcl/url-pathname.lisp
lisp
URL Pathname tests
(in-package #:abcl.test.lisp) (deftest url-pathname.1 (let* ((p #p"") (host (pathname-host p))) (values (check-physical-pathname p '(:absolute "a" "b") "foo" "lisp") (and (consp host) (equal (getf host :scheme) "http") (equal (getf host :a...
0cb0c28895ead1c383fb25048cf30d5f8ff624a0bbdb3cdb983d04ad70152563
johnwhitington/ocamli
array.ml
let x = [|1; 2; 3|] let y = x.(0) let p = match x with [|x; y; z|] -> x + y + z
null
https://raw.githubusercontent.com/johnwhitington/ocamli/28da5d87478a51583a6cb792bf3a8ee44b990e9f/examples/array.ml
ocaml
let x = [|1; 2; 3|] let y = x.(0) let p = match x with [|x; y; z|] -> x + y + z
9bf3b3fba7440cf35ecc34775142ce2df91bbd2d85b53d794f04e7b972b8c6a5
essiene/smpp34
file_logger.erl
-module(file_logger). -behaviour(gen_event). -export([init/1,handle_event/2,handle_call/2, handle_info/2,terminate/2,code_change/3]). -record(st_flogger, {filename, io_device}). init([FileName]) -> {ok, IoDevice} = file:open(FileName, [append]), {ok, #st_flogger{filename=FileName, io_device=IoDevic...
null
https://raw.githubusercontent.com/essiene/smpp34/9206b1d270dc77d65a64a539cbca41b8b003956a/examples/file_logger.erl
erlang
-module(file_logger). -behaviour(gen_event). -export([init/1,handle_event/2,handle_call/2, handle_info/2,terminate/2,code_change/3]). -record(st_flogger, {filename, io_device}). init([FileName]) -> {ok, IoDevice} = file:open(FileName, [append]), {ok, #st_flogger{filename=FileName, io_device=IoDevic...
25005642672b83259177cbdaaade0a81f381e9d4813360f106987764c41b890d
jrm-code-project/LISP-Machine
auks.lisp
-*- Mode : LISP ; Package : STEVE ; : CL ; -*- Copyright ( c ) May 1983 by and Massachusetts Institute of Technology . ;Permission to copy all or part of this material is granted, provided that the copies are not made or distributed for resale , the MIT ; copyright notice and reference to the source file and t...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/gjcx/steve/auks.lisp
lisp
Package : STEVE ; : CL ; -*- Permission to copy all or part of this material is granted, provided copyright notice and reference to the source file and the software distribution version appear, and that notice is given that copying This file contains random functions used by the editor, which do not depend heavil...
Copyright ( c ) May 1983 by and Massachusetts Institute of Technology . that the copies are not made or distributed for resale , the MIT is by permission of Massachusetts Institute of Technology . (defvar *query-line*) (defvar *notify-line*) (defvar *more-line*) (defvar *feedback-line*) (defvar *double-line*...
2dd296046e6be11077c0591248f43a203adde06ade641505ffe60907d75a3f8b
srstrong/erlawys
aws_util.erl
%%% Copyright ( c ) 2007 %%% All rights reserved. %%% Developed by : at gmail dot com %%% / %%% %%% Permission is hereby granted, free of charge, to any person obtaining a %%% copy of this software and associated documentation files (the " Software " ) , to dea...
null
https://raw.githubusercontent.com/srstrong/erlawys/18bb4ffdc44710b08433bcab304a266a0ef81e5b/src/aws_util.erl
erlang
All rights reserved. / Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the without limitation the rights to use, copy, modify, merge, publish, the following conditions: Redistributions of source code must ...
Copyright ( c ) 2007 Developed by : at gmail dot com " Software " ) , to deal with the Software without restriction , including distribute , sublicense , and/or sell copies of the Software , and to permit persons to whom the Software is furnished to do so , subject to Neither...
7208c1ca22e0d35ef4da22a23868b497a2488e577a7775017d4a4b0e25859df2
lambdaisland/uri
poke.clj
(ns poke (:require [lambdaisland.uri :as uri] [lambdaisland.uri.normalize :as norm])) (:fragment (norm/normalize (uri/map->URI {:fragment "'#'schön"}))) "'%23'sch%C3%B6n" (norm/normalize-fragment "schön") = > " " (uri/map->query-string {:foo "bar"});; => "foo=bar" (uri/map->query-string {:foo/baz "...
null
https://raw.githubusercontent.com/lambdaisland/uri/672bf7864eebd3656048ab35472cd9ea0d9fe0e1/repl_sessions/poke.clj
clojure
=> "foo=bar" => "foo/baz=bar" => {:foo "bar"} => {":foo" "bar"} => #::foo{:baz "bar"} => #:foo{:baz "bar"}
(ns poke (:require [lambdaisland.uri :as uri] [lambdaisland.uri.normalize :as norm])) (:fragment (norm/normalize (uri/map->URI {:fragment "'#'schön"}))) "'%23'sch%C3%B6n" (norm/normalize-fragment "schön") = > " "
83321f9541accb5fba5a9848c9108b04732f0779d0f1d6b0326c7c1872eac757
AdRoll/rebar3_format
binary_fields.erl
-module(binary_fields). -export([p/0]). -define(FOUR, 4). -define(SIX, 6). -define(seven, 7). -define(eight(X), X). -define(NINE(X), X - 1). -define(TEN, 5*2). p() -> Four = 4, <<1, 2:2, 3:3/integer, 4:Four, 5:begin 5 end, 6:?SIX, 7:?seven, 8:(?eight(8))/binary, 9:(?NINE(10))/binary, 10:(?TEN)>>.
null
https://raw.githubusercontent.com/AdRoll/rebar3_format/42a9d933176360f5c526a10d1f2408624b7033f5/test_app/src/binary_fields.erl
erlang
-module(binary_fields). -export([p/0]). -define(FOUR, 4). -define(SIX, 6). -define(seven, 7). -define(eight(X), X). -define(NINE(X), X - 1). -define(TEN, 5*2). p() -> Four = 4, <<1, 2:2, 3:3/integer, 4:Four, 5:begin 5 end, 6:?SIX, 7:?seven, 8:(?eight(8))/binary, 9:(?NINE(10))/binary, 10:(?TEN)>>.
ed5512e14f7d9480b97faf7528caaff5e76a1778ab93850a0980394971d543ab
chenyukang/eopl
eopl-without-exp.scm
(module eopl-without-exp (lib "eopl.ss" "eopl") ;; remove "exp" from the eopl language level, because we use it as ;; a mutable variable. (provide (all-from-except (lib "eopl.ss" "eopl") exp)) )
null
https://raw.githubusercontent.com/chenyukang/eopl/0406ff23b993bfe020294fa70d2597b1ce4f9b78/base/chapter5/letrec-lang/eopl-without-exp.scm
scheme
remove "exp" from the eopl language level, because we use it as a mutable variable.
(module eopl-without-exp (lib "eopl.ss" "eopl") (provide (all-from-except (lib "eopl.ss" "eopl") exp)) )
3e9462d1ace90427040228f4c8e44714693b9c35629737b02389d84a83f82a37
OCamlPro/SecurOCaml
bytecheck.ml
open Types open Rules open OByteLib open Normalised_instr let parse_type t = match t with |"Empty" -> Empty |"Unit" -> Unit |"Bool" -> Bool |"Int" -> Int |"String" -> String |"Char" -> Char |"Float" -> Float | _ -> let parse_fun env ret = let open Scanf in let envt = ref [] in let ic = Scannin...
null
https://raw.githubusercontent.com/OCamlPro/SecurOCaml/1d89e065884a935cd8e38b9670522dda6383f77c/Livrables/WorkPackage5/bytecheck/bytecheck.ml
ocaml
open Types open Rules open OByteLib open Normalised_instr let parse_type t = match t with |"Empty" -> Empty |"Unit" -> Unit |"Bool" -> Bool |"Int" -> Int |"String" -> String |"Char" -> Char |"Float" -> Float | _ -> let parse_fun env ret = let open Scanf in let envt = ref [] in let ic = Scannin...
1cb29af93f40fd99d17789588978810187547596e6f22a81e36f20329ba08071
coord-e/mlml
format_string.ml
type kind = | Const of string | Int | Char | String let string_of_kind = function | Const s -> s | Int -> "(d)" | Char -> "(c)" | String -> "(s)" ;; let string_of_format_string l = List.map string_of_kind l |> String.concat ""
null
https://raw.githubusercontent.com/coord-e/mlml/ec34b1fe8766901fab6842b790267f32b77a2861/mlml/tree/format_string.ml
ocaml
type kind = | Const of string | Int | Char | String let string_of_kind = function | Const s -> s | Int -> "(d)" | Char -> "(c)" | String -> "(s)" ;; let string_of_format_string l = List.map string_of_kind l |> String.concat ""
d22176bcf72a6451736ab09a4074275430a96efa09398ab7d8b24fb1e43c65aa
mariari/Misc-ML-Scripts
interpreter-i.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE FlexibleContexts # import Control.Monad.Trans (lift) import Control.Monad.Trans.State.Strict (StateT, evalStateT) import Control.Monad.State.Class (MonadState, get, modify) import Data.Functor.Identity (Identity) import Data.Map.Strict hiding (foldr) import Data.Monoid type ...
null
https://raw.githubusercontent.com/mariari/Misc-ML-Scripts/d18aecf539c2d2ccf7ba9eb796f90e3ca809f5bf/Haskell/Moder-compilers/chapter-2/interpreter-i.hs
haskell
# LANGUAGE ConstraintKinds # ------------------------------------------------------- Gives the maximum number of arguments to a Print statement -------------------------------------------------------
# LANGUAGE FlexibleContexts # import Control.Monad.Trans (lift) import Control.Monad.Trans.State.Strict (StateT, evalStateT) import Control.Monad.State.Class (MonadState, get, modify) import Data.Functor.Identity (Identity) import Data.Map.Strict hiding (foldr) import Data.Monoid type Id = String data Binop = Plus | ...
f748be4656ef90e288ee9bddef907d9702718820bc1b39164326c6f21fa3eb9b
google/clang-lens
Token.hs
Copyright 2014 Google Inc. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software ...
null
https://raw.githubusercontent.com/google/clang-lens/09caa8fb234024af18706060085ef0fc1e8b6f5f/src/Clang/Token.hs
haskell
Copyright 2014 Google Inc. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software ...
7117c699f65700887fbc4026e8362596302cc47c24d9e6071f27ecaa730070da
simnalamburt/snucse.pl
main.ml
(* * SNU 4190.310 Programming Languages * * SM5 *) open Translate open Pp open Sm5 open K let main () = let pp = ref false in let k = ref false in let src = ref "" in let _ = Arg.parse [("-pp", Arg.Set pp, "display parse tree"); ("-k", Arg.Set k, "run using K interpreter"); ("-...
null
https://raw.githubusercontent.com/simnalamburt/snucse.pl/a130f826c6f27224c88b0dd2e1588f35bccc9ebb/hw5/main.ml
ocaml
* SNU 4190.310 Programming Languages * * SM5
open Translate open Pp open Sm5 open K let main () = let pp = ref false in let k = ref false in let src = ref "" in let _ = Arg.parse [("-pp", Arg.Set pp, "display parse tree"); ("-k", Arg.Set k, "run using K interpreter"); ("-gc", Arg.Set Sm5.gc_mode, "run with garbage collection")...
4f64e8e83295afa72fcfa27a5359869eb8fd54fd221b0abba5a1b88f18aedeb3
pat227/ocaml-pgsql-model
utilities.mli
module Bignum_extended = Bignum_extended.Bignum_extended module Date_extended = Date_extended.Date_extended module Date_time_extended = Date_time_extended.Date_time_extended module Postgresql = Postgresql module Utilities : sig val print_n_flush : string -> unit val print_n_flush_alist : sep:string -> string list -...
null
https://raw.githubusercontent.com/pat227/ocaml-pgsql-model/e0b33b19095e92029ac10842ebdf44a5435271ae/src/lib/utilities.mli
ocaml
val parse_optional_boolean_field_exn : field:string option -> bool option ---bool--- ---float/double--- ---date/time---
module Bignum_extended = Bignum_extended.Bignum_extended module Date_extended = Date_extended.Date_extended module Date_time_extended = Date_time_extended.Date_time_extended module Postgresql = Postgresql module Utilities : sig val print_n_flush : string -> unit val print_n_flush_alist : sep:string -> string list -...
82da19baef41f53e01c9d518856eca54b0bf4c6fdbbc958135ef0374bb64415d
ctbarbour/swim
swim_pushpull_sup.erl
-module(swim_pushpull_sup). -behavior(supervisor). -export([start_link/2]). -export([init/1]). start_link(IpAddr, Port) -> supervisor:start_link({local, ?MODULE}, ?MODULE, [IpAddr, Port]). init([IpAddr, Port]) -> ListenerSpec = #{ id => pushpull, start => {swim_pushpull, start_link, [IpAddr, Port...
null
https://raw.githubusercontent.com/ctbarbour/swim/fca6047ad313069667485369c452c31d0679dda0/src/swim_pushpull_sup.erl
erlang
-module(swim_pushpull_sup). -behavior(supervisor). -export([start_link/2]). -export([init/1]). start_link(IpAddr, Port) -> supervisor:start_link({local, ?MODULE}, ?MODULE, [IpAddr, Port]). init([IpAddr, Port]) -> ListenerSpec = #{ id => pushpull, start => {swim_pushpull, start_link, [IpAddr, Port...
beb569740ca8fdcbf471a92c2271d3685c215637f8825278ffa6a5f10d7e8a20
roosta/tincture
slide.cljs
(ns tincture.slide (:require [tincture.transitions :refer [Transition TransitionGroup CSSTransition]] [clojure.spec.alpha :as s] [tincture.core :refer [easing-presets create-transition]] [tincture.spec :refer [check-spec]] [herb.core :refer [defgroup <class]] ...
null
https://raw.githubusercontent.com/roosta/tincture/587e68248dae09616942dc23bbd97cb9a1a4caa2/src/tincture/slide.cljs
clojure
Since the direction should change for exiting children as well, we need to reactivly update them to access the passed props of transition group we need to create a react component from the carousel-child transition.
(ns tincture.slide (:require [tincture.transitions :refer [Transition TransitionGroup CSSTransition]] [clojure.spec.alpha :as s] [tincture.core :refer [easing-presets create-transition]] [tincture.spec :refer [check-spec]] [herb.core :refer [defgroup <class]] ...
d8da511dc8600f8108ec6e14c1a82831dd0842bf8736b661bfd5df416e16b7c0
savonet/ocaml-posix
posix_types_constants.ml
let number_types = [ "blkcnt_t"; "blksize_t"; "clock_t"; "clockid_t"; "dev_t"; "fsblkcnt_t"; "fsfilcnt_t"; "gid_t"; "id_t"; "ino_t"; "key_t"; "mode_t"; "nlink_t"; "off_t"; "pid_t"; "size_t"; "ssize_t"; "suseconds_t"; "time_t"; "uid_t"; ...
null
https://raw.githubusercontent.com/savonet/ocaml-posix/d46d011de16154b34324eae6ee6e7010138cf4af/posix-types/src/constants/posix_types_constants.ml
ocaml
let number_types = [ "blkcnt_t"; "blksize_t"; "clock_t"; "clockid_t"; "dev_t"; "fsblkcnt_t"; "fsfilcnt_t"; "gid_t"; "id_t"; "ino_t"; "key_t"; "mode_t"; "nlink_t"; "off_t"; "pid_t"; "size_t"; "ssize_t"; "suseconds_t"; "time_t"; "uid_t"; ...
93cd0b0d1951f41122810054a7edfbb73042f3d72b3b6aec1245474ad267b647
dmitryvk/sbcl-win32-threads
ir1tran.lisp
;;;; This file contains code which does the translation from Lisp code to the first intermediate representation ( IR1 ) . This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon Univers...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/compiler/ir1tran.lisp
lisp
This file contains code which does the translation from Lisp code more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. *CURRENT-FORM-NUMBER* is used in FIND-SOURCE-PATHS to compute the form numb...
to the first intermediate representation ( IR1 ) . This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!C") (declaim (special *compiler-error-bailout*)) (decl...
ce661e2d3228498c14ff26938c3c5eaeb868088d6696a4bc54d089d8b7a0e6b8
clojurecup2014/parade-route
celsius.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/samples/celsius.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 . A WinForms equivalent to the Swing app shown here : If you are running on .Net 4 , you will have to change this . (System.Reflection.Assembly/Load "System.Windows.Forms,Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089") (import '(System.Draw...
2b3d9063592823a8aa92dfac017e33282e3af863e4df14a330fdd12edde7fdf7
kappelmann/eidi2_repetitorium_tum
batteries.mli
val todo : 'a -> 'b val ( % ) : ('a -> 'b) -> ('c -> 'a) -> 'c -> 'b val comp2 : ('a -> 'a -> 'b) -> ('c -> 'a) -> 'c -> 'c -> 'b val compareBy : ('a -> 'b) -> 'a -> 'a -> int val id : 'a -> 'a val flip : ('a -> 'b -> 'c) -> 'b -> 'a -> 'c val neg : ('a -> bool) -> 'a -> bool val curry : ('a * 'b -> 'c) -> 'a -> 'b -> ...
null
https://raw.githubusercontent.com/kappelmann/eidi2_repetitorium_tum/1d16bbc498487a85960e0d83152249eb13944611/2016/trees/batteries.mli
ocaml
val todo : 'a -> 'b val ( % ) : ('a -> 'b) -> ('c -> 'a) -> 'c -> 'b val comp2 : ('a -> 'a -> 'b) -> ('c -> 'a) -> 'c -> 'c -> 'b val compareBy : ('a -> 'b) -> 'a -> 'a -> int val id : 'a -> 'a val flip : ('a -> 'b -> 'c) -> 'b -> 'a -> 'c val neg : ('a -> bool) -> 'a -> bool val curry : ('a * 'b -> 'c) -> 'a -> 'b -> ...
77d457bacc3cb4deaab1049739afc5f664532bdd49e622272c72a6f5294c728a
eerohele/enne
edn.cljc
(ns enne.edn #?(:clj (:require [clojure.edn :as edn] [clojure.java.io :as io])) #?(:clj (:import (java.io PushbackReader)))) #?(:clj (do (defmacro load-resource-m [source] (with-open [r (-> source io/resource io/reader)] (edn/read (PushbackRe...
null
https://raw.githubusercontent.com/eerohele/enne/3de679e01b617182d5694a78e8d8cd9afc78ec26/src/enne/edn.cljc
clojure
(ns enne.edn #?(:clj (:require [clojure.edn :as edn] [clojure.java.io :as io])) #?(:clj (:import (java.io PushbackReader)))) #?(:clj (do (defmacro load-resource-m [source] (with-open [r (-> source io/resource io/reader)] (edn/read (PushbackRe...
5b74c765092caacb3db69d4ddb39f0806b5a84cec51211fb7883b05fbd36e979
NorfairKing/hastory
GenChangeWrapper.hs
module Hastory.Cli.Commands.GenChangeWrapper where genChangeWrapperScript :: IO () genChangeWrapperScript = putStrLn $ unlines [ "hastory_change_directory_ () {", " local args=\"$@\"", " if [[ \"$args\" == \"\" ]]", " then", " hastory list-recent-directories", ...
null
https://raw.githubusercontent.com/NorfairKing/hastory/35abbc79155bc7c5a0f6e0f3618c8b8bcd3889a1/hastory-cli/src/Hastory/Cli/Commands/GenChangeWrapper.hs
haskell
module Hastory.Cli.Commands.GenChangeWrapper where genChangeWrapperScript :: IO () genChangeWrapperScript = putStrLn $ unlines [ "hastory_change_directory_ () {", " local args=\"$@\"", " if [[ \"$args\" == \"\" ]]", " then", " hastory list-recent-directories", ...
a6e91b3e2c44120a0c580d9bce247afd007f72d53a3e416920e62d2426fa9f1d
monadbobo/ocaml-core
selector.mli
open Core.Std Implements types to be used in selection languages using Blang . The many nested types serve partially as documentation , but mostly to ease the creation of custom sexp parsers to reduce the amount of noise in config files . While any amount of magic may be embedded in the sexp pa...
null
https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/extended/lib/selector.mli
ocaml
regular expressions must be bounded with a '/' on both ends and this is used to automagically produce the correct type when parsing sexps, so that you can write any of the following: /.*foo/ foo (foo bar) (foo /bar[0-9]/)
open Core.Std Implements types to be used in selection languages using Blang . The many nested types serve partially as documentation , but mostly to ease the creation of custom sexp parsers to reduce the amount of noise in config files . While any amount of magic may be embedded in the sexp pa...
6219b822fc1d8a23f4370e8fec0edaeb754f0f920f9bf9c06f480c55b858e0c7
facebook/infer
RacerDDomain.ml
* 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/facebook/infer/28e867254f6dc8c2a26d749575b472ca0ae27a0f/infer/src/concurrency/RacerDDomain.ml
ocaml
if we know the callee runs on the main thread, assume the caller does too. otherwise, keep the caller's thread context non-param base variable, leave unchanged no useful argument can be substituted, throw away update precondition with caller ownership info do not assign ownership to access expressions r...
* 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 ...
b5f8097b33f1fd2061bed04f58a5a7c6726bc8b2dd4d5a05f2cf108b57720d96
ConsumerDataStandardsAustralia/validation-prototype
Transaction.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE LambdaCase #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # {-# LANGUAGE RankNTypes #-} {-# LANGUAGE TypeOperators #-} module Web.ConsumerData.Au.Api.Types.Banking.Common.Tr...
null
https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/validation-prototype/ff63338b77339ee49fa3e0be5bb9d7f74e50c28b/consumer-data-au-api-types/src/Web/ConsumerData/Au/Api/Types/Banking/Common/Transaction.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # # LANGUAGE RankNTypes # # LANGUAGE TypeOperators # ^"FEE" ^"INTEREST_CHARGED" ^"INTEREST_PAID" ^"TRANSFER_OUTGOING" ^"TRANSFER_INCOMING" ^"PAYMENT" ^"OTHER" ^ "PENDING" ^ "POSTED"
# LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # module Web.ConsumerData.Au.Api.Types.Banking.Common.Transaction ( module Web.ConsumerData.Au.Api.Types.Banking.Common.Transaction ) where import Control.Lens (Prism', prism, ( # )) import Control.Monad.Except ...
438bb97ed5710d6491f083d17d032c038d2b29c3eb39329a59c784c4e29d56d8
coq/coq
dune_file.mli
(************************************************************************) This file is licensed under The MIT License (* See LICENSE for more information *) (************************************************************************) type 'a pp = Format.fo...
null
https://raw.githubusercontent.com/coq/coq/0973e012d615c0722d483cd5d814bde90c76d7d3/tools/dune_rule_gen/dune_file.mli
ocaml
********************************************************************** See LICENSE for more information ********************************************************************** (source as target)
This file is licensed under The MIT License type 'a pp = Format.formatter -> 'a -> unit module Rule : sig type t = { targets : string list ; deps : string list ; action : string ; alias : string option } val pp : t pp end module Install : sig type t = { sect...
7e3bdc2cb9f28d1c836e1ebadfc63ecc748bf6cf4294519da9a2cc8abfe7f915
sjl/newseasons
keys.clj
(ns newseasons.models.keys) (defn key-show [id] (str "shows:" id)) (defn key-user [email] (str "users:" email)) (defn key-user-shows [email] (str "users:" email ":shows")) (defn key-show-watchers [id] (str "shows:" id ":watchers"))
null
https://raw.githubusercontent.com/sjl/newseasons/9f3bce450b413ee065abcf1b6b5b7dbdd8728481/src/newseasons/models/keys.clj
clojure
(ns newseasons.models.keys) (defn key-show [id] (str "shows:" id)) (defn key-user [email] (str "users:" email)) (defn key-user-shows [email] (str "users:" email ":shows")) (defn key-show-watchers [id] (str "shows:" id ":watchers"))
ef3dc10ac029520378ea4d0c70e4a21157bfaca49c078156cb46d2410400581f
danr/hipspec
Tricky.hs
Lists and functions , many properties come from QuickSpec module Tricky where import Hip.Prelude import Prelude (Eq,Ord,Show,iterate,(!!),fmap,Bool(..),Int) data Nat = Z | S Nat -- PAPs Z + y = y (S x) + y = S (x + y) map :: (a -> b) -> [a] -> [b] map f [] = [] map f (x:xs) = (f x) : (map f xs) one = S Z ...
null
https://raw.githubusercontent.com/danr/hipspec/a114db84abd5fee8ce0b026abc5380da11147aa9/examples/old-examples/hip/Tricky.hs
haskell
PAPs induction finds the finite theorem, but the simple induction fails to find this as it is not a theorem with : if the natural number is not total. double speed fpi ----------------------------------------------------------- Is it possible to prove this with take lemma? Maybe it's time to upvote take lemma. --...
Lists and functions , many properties come from QuickSpec module Tricky where import Hip.Prelude import Prelude (Eq,Ord,Show,iterate,(!!),fmap,Bool(..),Int) data Nat = Z | S Nat Z + y = y (S x) + y = S (x + y) map :: (a -> b) -> [a] -> [b] map f [] = [] map f (x:xs) = (f x) : (map f xs) one = S Z ( + one...
e2da1382a6290307748e0ef712fd39f495407932c3defa0589783988f0763be5
CodyReichert/qi
test-datagram.lisp
(in-package :usocket-test) (defvar *echo-server*) (defvar *echo-server-port*) (defun start-server () (multiple-value-bind (thread socket) (usocket:socket-server "127.0.0.1" 0 #'identity nil :in-new-thread t :protocol :datagram) (setq *echo-server* thread *echo-server-port* (usocket:get-...
null
https://raw.githubusercontent.com/CodyReichert/qi/9cf6d31f40e19f4a7f60891ef7c8c0381ccac66f/dependencies/usocket-latest/test/test-datagram.lisp
lisp
(in-package :usocket-test) (defvar *echo-server*) (defvar *echo-server-port*) (defun start-server () (multiple-value-bind (thread socket) (usocket:socket-server "127.0.0.1" 0 #'identity nil :in-new-thread t :protocol :datagram) (setq *echo-server* thread *echo-server-port* (usocket:get-...
4d01b0d3c617f05d17bc8d81de82ce70c6a5c358d61787b9f80b6b5f1ca8c7c3
jlouis/eministat
eministat_analysis.erl
-module(eministat_analysis). -include("eministat.hrl"). -export([outlier_variance/3]). -export([relative/3]). %% -- OUTLIER VARIANCE ------ %% @doc outlier_variance/3 computes the severity of the outlier variance %% %% %% %% @end outlier_variance(_, Sigma, _) when Sigma < 0.000000000000001 -> {0.0, unaffected}; o...
null
https://raw.githubusercontent.com/jlouis/eministat/022764f2b8fa45909c38cdc9a28d199656e78526/src/eministat_analysis.erl
erlang
-- OUTLIER VARIANCE ------ @end -- RELATIVE #dataset{} COMPARISONS ----- -- STUDENT's T TABLES ----- Constant tables, represented as tuples for O(1) lookup speeds inf Number of elements in the students distribution lookup table
-module(eministat_analysis). -include("eministat.hrl"). -export([outlier_variance/3]). -export([relative/3]). @doc outlier_variance/3 computes the severity of the outlier variance outlier_variance(_, Sigma, _) when Sigma < 0.000000000000001 -> {0.0, unaffected}; outlier_variance(Mu, Sigma, A) -> MinBy = fun(F,...
473429ccc4598ae11ceccc0d1b816fd262c209af028e383a7f6a02ab557bbc82
massung/parse
parse.lisp
Monadic parsing package for Common Lisp ;;;; Copyright ( c ) ;;;; This file is provided to you under the Apache License , ;;;; Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain ;;;; a copy of the License at ;;;; ;;;; -2.0 ;;;; ;;;; Unless requir...
null
https://raw.githubusercontent.com/massung/parse/2351ee78acac065fcf10b8713d3f404e2e910786/parse.lisp
lisp
Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. declare a parse combinator ...
Monadic parsing package for Common Lisp Copyright ( c ) This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY (defpackage :parse...
69064909c442762c4ba9c8aabfd3c580772b1d9196ee11959ee2c40d66cc7763
Bogdanp/racket-sentry
event.rkt
#lang racket/base (require gregor rackunit sentry/private/event threading) (provide event-tests) (define event-tests (test-suite "event" (test-suite "event->jsexpr" (test-case "converts events to json expressions" (parameterize ([current-clock (lambda () 0)] ...
null
https://raw.githubusercontent.com/Bogdanp/racket-sentry/9794b2da9c4f3ca8c8094d6bc78d5ca8bf9b133b/sentry-test/tests/sentry/event.rkt
racket
#lang racket/base (require gregor rackunit sentry/private/event threading) (provide event-tests) (define event-tests (test-suite "event" (test-suite "event->jsexpr" (test-case "converts events to json expressions" (parameterize ([current-clock (lambda () 0)] ...
ca30e67d9b47a31397687899f97782ad71a7567a26ea197db9b0db0d021ff4ab
owlbarn/owl_symbolic
owl_symbolic_specs.ml
* OWL - OCaml Scientific and Engineering Computing * Copyright ( c ) 2016 - 2020 < > * OWL - OCaml Scientific and Engineering Computing * Copyright (c) 2016-2020 Liang Wang <> *) (* Module aliases *) module PB = Onnx_pb module PP = Onnx_pp module PT = Onnx_types
null
https://raw.githubusercontent.com/owlbarn/owl_symbolic/dc853a016757d3f143c5e07e50075e7ae605d969/src/onnx_specs/owl_symbolic_specs.ml
ocaml
Module aliases
* OWL - OCaml Scientific and Engineering Computing * Copyright ( c ) 2016 - 2020 < > * OWL - OCaml Scientific and Engineering Computing * Copyright (c) 2016-2020 Liang Wang <> *) module PB = Onnx_pb module PP = Onnx_pp module PT = Onnx_types
fb56ec1bb47c87ad549e6e56fefe703ac90c792d74e9c1dc32e622deb44a7a4c
yummly/logentries-timbre-appender
logentries_timbre_appender_test.clj
(ns yummly.logentries-timbre-appender-test (:require [yummly.logentries-timbre-appender :as sut] [clojure.test :refer :all] [clojure.string] [cheshire.core :as cheshire])) (deftest error-to-stacktrace-test (let [test-error ((fn [] (java.lang.ArithmeticException. "Divide by fak...
null
https://raw.githubusercontent.com/yummly/logentries-timbre-appender/016dbc2d3ce483b325595d149d66cde3cc28fe2b/test/yummly/logentries_timbre_appender_test.clj
clojure
(ns yummly.logentries-timbre-appender-test (:require [yummly.logentries-timbre-appender :as sut] [clojure.test :refer :all] [clojure.string] [cheshire.core :as cheshire])) (deftest error-to-stacktrace-test (let [test-error ((fn [] (java.lang.ArithmeticException. "Divide by fak...
22db86d6bee2f58df2a28159139d043fc9dc31f2d5f3559dda374e0cf165a6ee
fumieval/discord-vc-notification
dvn-identify.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # module Main where import RIO import UnliftIO.Concurrent import Data.Aeson import Data.Aeson.Types import qualified Network.WebSockets as WS import qualified Wuss as WS import System.Environment data Env = Env { wsConn :: W...
null
https://raw.githubusercontent.com/fumieval/discord-vc-notification/5d08d62a5cd935702fd231731c689087f14e0488/tutorial/dvn-identify.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE NoImplicitPrelude # # LANGUAGE RecordWildCards # module Main where import RIO import UnliftIO.Concurrent import Data.Aeson import Data.Aeson.Types import qualified Network.WebSockets as WS import qualified Wuss as WS import System.Environment data Env = Env { wsConn :: WS.Connection , botToken :: Text ...
6d6379bf29cff67157352bbb7c5ddb5414e35a91705a46f048c4fd153f18d8af
dmitryvk/sbcl-win32-threads
custom-userinit.lisp
;;;; loaded by init.test.sh This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; While most of SBCL is derived from the CMU CL system , the test ;;;; files (like this one) were written from scratch after the fork from CMU CL . ;;;; ;;;; This software is in the public dom...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/tests/custom-userinit.lisp
lisp
loaded by init.test.sh more information. files (like this one) were written from scratch after the fork This software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information.
This software is part of the SBCL system . See the README file for While most of SBCL is derived from the CMU CL system , the test from CMU CL . (write-line "/loading custom userinit") (defun userinit-quit (x) (sb-ext:quit :unix-status x))
7c210f354040721a26aeef05e2a5acad371dfd61e0eebbfd5e16b4b761d37539
rd--/hsc3
peak.help.hs
-- peak let t = dustId 'α' ar 20 r = impulse ar 0.4 0 f = peak t r * 500 + 200 in sinOsc ar f 0 * 0.2
null
https://raw.githubusercontent.com/rd--/hsc3/60cb422f0e2049f00b7e15076b2667b85ad8f638/Help/Ugen/peak.help.hs
haskell
peak
let t = dustId 'α' ar 20 r = impulse ar 0.4 0 f = peak t r * 500 + 200 in sinOsc ar f 0 * 0.2
6c5c9210b8314caa6721b9fcc99ef2c060655440d26f65a76b00de82a5b21386
3b/ps-webgl
lesson09.lisp
;;; -*- Mode: LISP; slime-proxy-proxy-connection: t -*- translated from -lessons/blob/master/lesson09/index.html ;;; (eval-when (:compile-toplevel :load-toplevel) (defpackage #:learningwebgl.com-09 (:use :ps :cl :example-utils) (:local-nicknames (:m :mjs-bindings) (:%gl :webgl-binding...
null
https://raw.githubusercontent.com/3b/ps-webgl/cf2832d2e814ac0b733d1914985aeadefdcc2a1c/examples/learningwebgl.com/lesson09/lesson09.lisp
lisp
-*- Mode: LISP; slime-proxy-proxy-connection: t -*- slime-proxy, so adding them here is more convenient this name must match webgl-bindings::*webgl-context*, or else (init-gl "canvas") page up page down up down (init-buffers) move to star's position rotate back so star faces viewer draw a no...
translated from -lessons/blob/master/lesson09/index.html (eval-when (:compile-toplevel :load-toplevel) (defpackage #:learningwebgl.com-09 (:use :ps :cl :example-utils) (:local-nicknames (:m :mjs-bindings) (:%gl :webgl-bindings) (:gl :webgl-ps))) (setf (ps:ps-pac...
3cbc9fed7d8ed58fb94419722ea063cdc235a140ddec8a8dc650bc10de75cdb3
jiangpengnju/htdp2e
ex67.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex67) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #...
null
https://raw.githubusercontent.com/jiangpengnju/htdp2e/d41555519fbb378330f75c88141f72b00a9ab1d3/fixed-size-data/adding-structure/ex67.rkt
racket
about the language level of this file in a form that our tools can easily process. Write down the names of the functions(constructors, selectors, and predicates) that the following structure type definitions introduce: constructor: make-movie selectors: movie-title movie-producer movie-year predicate: movie? c...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex67) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (define-struct movie [title producer year]) (define-struct person...
3295aed72288a6a7af76c666c18b677342bea5961be22d3f1f20aacaae537035
WormBase/wormbase_rest
location.clj
(ns rest-api.classes.variation.widgets.location (:require [rest-api.classes.sequence.core :as sequence-fns] [rest-api.classes.generic-fields :as generic])) (defn tracks [variation] {:data (cond (= "Caenorhabditis elegans" (:species/id (:variation/species variation))) ["G...
null
https://raw.githubusercontent.com/WormBase/wormbase_rest/e51026f35b87d96260b62ddb5458a81ee911bf3a/src/rest_api/classes/variation/widgets/location.clj
clojure
(ns rest-api.classes.variation.widgets.location (:require [rest-api.classes.sequence.core :as sequence-fns] [rest-api.classes.generic-fields :as generic])) (defn tracks [variation] {:data (cond (= "Caenorhabditis elegans" (:species/id (:variation/species variation))) ["G...
4eebceb6b31f650f1c54a2852ee1f704eab7e10f3b7ca3bbc9fb811a96dadf26
IronScheme/IronScheme
ironscheme-buildscript.sps
Copyright ( c ) 2006 , 2007 and Copyright ( c ) 2007 - 2016 Llewellyn Pritchard ;;; ;;; 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 limita...
null
https://raw.githubusercontent.com/IronScheme/IronScheme/4836f7eb5f8fe6ff18aa0ec2e9c314e63bc0b42b/IronScheme/IronScheme.Console/ironscheme-buildscript.sps
scheme
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, publish, distribute, sublicense, Software is furnished to do so, subject to the following conditions: The above copyright no...
Copyright ( c ) 2006 , 2007 and Copyright ( c ) 2007 - 2016 Llewellyn Pritchard to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED ...
4e5752fca4cb5e303729cfc0ebc3e97dd1898a5dd5c0d4143f97199234f591bd
silky/myth
list_rev_fold.ml
type nat = | O | S of nat type list = | Nil | Cons of nat * list let rec fold (l:list) (f:list -> nat -> list) (acc:list) : list = match l with | Nil -> acc | Cons (x, l) -> fold l f (f acc x) ;; let snoc : list -> nat -> list = let rec f (l:list) : nat -> list = fun (n:nat) -> match l wit...
null
https://raw.githubusercontent.com/silky/myth/b631edefb2a27a1d731daa6654517d91ca660b95/tests/pldi-2015-benchmarks/list_rev_fold.ml
ocaml
type nat = | O | S of nat type list = | Nil | Cons of nat * list let rec fold (l:list) (f:list -> nat -> list) (acc:list) : list = match l with | Nil -> acc | Cons (x, l) -> fold l f (f acc x) ;; let snoc : list -> nat -> list = let rec f (l:list) : nat -> list = fun (n:nat) -> match l wit...
7f304cb05121ba77c867a6b80754bc586b018c4b8a1f3ca1d12e2fa11c1a4492
kalai-transpiler/kalai
util.clj
(ns kalai.util (:require [meander.epsilon :as m] [meander.syntax.epsilon :as syntax] [meander.match.syntax.epsilon :as match] [puget.printer :as puget] [kalai.types :as types] [camel-snake-kebab.core :as csk] [camel-snake-kebab.internals.string-s...
null
https://raw.githubusercontent.com/kalai-transpiler/kalai/347cc1213bdd1eab12a093bb6abab9153cd23035/src/kalai/util.clj
clojure
Return whether `t` matches the value of :t of the metadata map Matches a var Return this instead of an empty seq: This expression is not pretty, We changed the following line from the original to support not putting underscores inside something like "u64" or "tmp1".
(ns kalai.util (:require [meander.epsilon :as m] [meander.syntax.epsilon :as syntax] [meander.match.syntax.epsilon :as match] [puget.printer :as puget] [kalai.types :as types] [camel-snake-kebab.core :as csk] [camel-snake-kebab.internals.string-s...
d17d4db18e20af281636dc407dc74ff7dc6457c8af078060ad42aa6ab7a6efaa
haroldcarr/learn-haskell-coq-ml-etc
Main.hs
module Main where main :: IO () main = putStrLn "hello"
null
https://raw.githubusercontent.com/haroldcarr/learn-haskell-coq-ml-etc/b4e83ec7c7af730de688b7376497b9f49dc24a0e/haskell/playpen/iceland-jack/app/Main.hs
haskell
module Main where main :: IO () main = putStrLn "hello"
217fa0adb26cad7e9829b8b24dffabc857a96e62647f4f387717a5d6f74ef51a
ghcjs/ghcjs
num009.hs
trac # 2059 # LANGUAGE ForeignFunctionInterface # module Main(main) where import Control.Monad import Foreign.C disable inaccurate single precision for GHCJS main = do let d = [0, pi, pi/2, pi/3, 1e10, 1e20] :: [Double] f = [0, pi, pi/2, pi/3, 1e10, 1e20] :: [Float] mapM_ (test "sind" si...
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/pkg/base/Numeric/num009.hs
haskell
mapM_ (test "sinf" sinf sin) f mapM_ (test "cosf" cosf cos) f mapM_ (test "tanf" tanf tan) f
trac # 2059 # LANGUAGE ForeignFunctionInterface # module Main(main) where import Control.Monad import Foreign.C disable inaccurate single precision for GHCJS main = do let d = [0, pi, pi/2, pi/3, 1e10, 1e20] :: [Double] f = [0, pi, pi/2, pi/3, 1e10, 1e20] :: [Float] mapM_ (test "sind" si...
b849fe821af91920698e3e31561d9d0e83bb816bc5ee62af2e05d36669f0f4fb
ruricolist/cloture
fset-hacks.lisp
(in-package #:cloture) (defconst int-length 32) (defconst long-length 64) (deftype int () '(signed-byte #.int-length)) (deftype long () '(signed-byte #.long-length)) (defsubst mask-signed-field (size int) #+sbcl (sb-c::mask-signed-field size int) #-sbcl (cond ((zerop size) 0) ((logbitp (...
null
https://raw.githubusercontent.com/ruricolist/cloture/623c15c8d2e5e91eb87f46e3ecb3975880109948/fset-hacks.lisp
lisp
that maps have the correct behavior). The following hack lets that work by detecting and breaking recursion.
(in-package #:cloture) (defconst int-length 32) (defconst long-length 64) (deftype int () '(signed-byte #.int-length)) (deftype long () '(signed-byte #.long-length)) (defsubst mask-signed-field (size int) #+sbcl (sb-c::mask-signed-field size int) #-sbcl (cond ((zerop size) 0) ((logbitp (...
fddd36811654004a45ee32707d7f44719fc4ca2944346f368141c28dc460f8be
shriphani/clj-lmdb
simple_test.clj
(ns clj-lmdb.simple-test (:require [clojure.test :refer :all] [clj-lmdb.simple :refer :all])) (deftest non-txn-test (testing "Put + get without using a txn" (let [db (make-db "/tmp")] (put! db "foo" "bar") (is (= (get! db "foo") "...
null
https://raw.githubusercontent.com/shriphani/clj-lmdb/dd842440088aa7fbe677c31c07ae56621d98a04d/test/clj_lmdb/simple_test.clj
clojure
items are sorted in alphabetical order - not numerical
(ns clj-lmdb.simple-test (:require [clojure.test :refer :all] [clj-lmdb.simple :refer :all])) (deftest non-txn-test (testing "Put + get without using a txn" (let [db (make-db "/tmp")] (put! db "foo" "bar") (is (= (get! db "foo") "...
f14cf5795e5eecea3cca5968c95d35c6f7c2697f9c3ed5fe138fc1b56b85e4b1
chovencorp/erlangzmq
erlangzmq_acceptance_error_handler.erl
@copyright 2016 Choven Corp. %% This file is part of erlangzmq . %% erlangzmq 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 v...
null
https://raw.githubusercontent.com/chovencorp/erlangzmq/2be5c3b36dd78b010d1790a8f74ae2e823f5a424/test/erlangzmq_acceptance_error_handler.erl
erlang
(at your option) any later version. erlangzmq 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 Public License for more details. to wait modifications
@copyright 2016 Choven Corp. This file is part of erlangzmq . erlangzmq 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 You should have received a copy of ...
e30da1e842636f3f2df929688542c4de6ea648447977b055bcef005d0f68acd4
SamB/coq
extend.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/SamB/coq/8f84aba9ae83a4dc43ea6e804227ae8cae8086b1/parsing/extend.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i $Id$ i ***************************...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Util type side = Le...
d042bd01dcff8d1d92cfa7f4cbca0026a82b10d3f7b33c922d33deb2e7998544
uw-unsat/leanette-popl22-artifact
synthesize.rkt
#lang rosette/safe (provide potential-program-exists? synthesize-program synthesize-program/no-generalization synthesize-program/inductive superoptimize-program sketch-covers?) (require (only-in racket local-require) rosette/solver/smt/z3 "cegis.rkt" "../core/core.rkt" "../nonograms/nonograms.rk...
null
https://raw.githubusercontent.com/uw-unsat/leanette-popl22-artifact/80fea2519e61b45a283fbf7903acdf6d5528dbe7/rosette-benchmarks-3/nonograms/puzzle/src/learn/synthesize.rkt
racket
true iff the given binding determines the given output, and thus a program could exist create a symbolic context constrained to have the same concrete binding values as this transition. rule exists if any context with these bindings can have this action applied to it. so try to find one that breaks it! Implementat...
#lang rosette/safe (provide potential-program-exists? synthesize-program synthesize-program/no-generalization synthesize-program/inductive superoptimize-program sketch-covers?) (require (only-in racket local-require) rosette/solver/smt/z3 "cegis.rkt" "../core/core.rkt" "../nonograms/nonograms.rk...
5a01f6637cbdde9b1107ff02aa5536073eb37db1fcd9697bca21e3e0d9cd77c0
day8/shadow-git-inject
core.clj
(ns shadow-git-inject.core (:require [clojure.walk :as walk] [clojure.string :as string] [clojure.java.shell :refer [sh]] [clojure.java.io :as io]) (:import (java.io BufferedReader StringReader IOException) (java.time LocalDateTime) (java.time.format DateTimeFormatter)) (:refer-clojure...
null
https://raw.githubusercontent.com/day8/shadow-git-inject/3991b82d65fb3316306847d226f4bf488444735e/src/shadow_git_inject/core.clj
clojure
If git status is nil (e.g. IntelliJ evaluating project.clj): If this is a release version: If git binary is not available (e.g. not in path):
(ns shadow-git-inject.core (:require [clojure.walk :as walk] [clojure.string :as string] [clojure.java.shell :refer [sh]] [clojure.java.io :as io]) (:import (java.io BufferedReader StringReader IOException) (java.time LocalDateTime) (java.time.format DateTimeFormatter)) (:refer-clojure...
1d8eef6f902f52e8a924242337ef6c15748aaeed11789e300af6327419453041
rmloveland/scheme48-0.53
mini-command.scm
Copyright ( c ) 1993 - 1999 by and . See file COPYING . ; Miniature command processor. (define (command-processor ignore args) (let ((in (current-input-port)) (out (current-output-port)) (err (current-error-port)) (batch? (member "batch" args))) (let loop () ((call-with-current-continuation (l...
null
https://raw.githubusercontent.com/rmloveland/scheme48-0.53/1ae4531fac7150bd2af42d124da9b50dd1b89ec1/scheme/debug/mini-command.scm
scheme
Miniature command processor.
Copyright ( c ) 1993 - 1999 by and . See file COPYING . (define (command-processor ignore args) (let ((in (current-input-port)) (out (current-output-port)) (err (current-error-port)) (batch? (member "batch" args))) (let loop () ((call-with-current-continuation (lambda (go) (with-handler ...
5965ced8b1645582fc0863a00146b1a1e30fd3d4eb51672186851a6c1bfb15c4
rwmjones/guestfs-tools
utils.ml
virt - builder * Copyright ( C ) 2013 - 2023 Red Hat Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option ) any la...
null
https://raw.githubusercontent.com/rwmjones/guestfs-tools/57423d907270526ea664ff15601cce956353820e/builder/utils.ml
ocaml
virt - builder * Copyright ( C ) 2013 - 2023 Red Hat Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option ) any la...
275bc00e94a79db58f2f77d75d33803e21a923396b1f87e64da467246899f437
haskell-mafia/projector
Haskell.hs
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TupleSections # module Projector.Html.Backend.Haskell ( haskellBackend --- , renderModule , renderExpr , predicates , HaskellError (..) , renderHaskellError -- *...
null
https://raw.githubusercontent.com/haskell-mafia/projector/6af7c7f1e8a428b14c2c5a508f7d4a3ac2decd52/projector-html-haskell/src/Projector/Html/Backend/Haskell.hs
haskell
# LANGUAGE OverloadedStrings # - * guts ----------------------------------------------------------------------------- | The set of constructors used for the Html library type. ----------------------------------------------------------------------------- FIX This is because of each introducing a lambda with a const...
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # # LANGUAGE TupleSections # module Projector.Html.Backend.Haskell ( haskellBackend , renderModule , renderExpr , predicates , HaskellError (..) , renderHaskellError , genModule , genTypeDecs , genTypeDec ...
a51f118bf98c1a3a849bbfe4c655b8c422085da369d067ee5181e279d1a30118
3b/cl-opengl
tess.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;; tess.lisp --- Lisp version of tess.c (Red Book examples) ;;; ;;; Original C version contains the following copyright notice: Copyright ( c ) 1993 - 1997 , Silicon Graphics , Inc. ;;; ALL RIGHTS RESERVED ;;; ;;; This program demonstrates polygon tessellation. ...
null
https://raw.githubusercontent.com/3b/cl-opengl/e2d83e0977b7e7ac3f3d348d8ccc7ccd04e74d59/examples/redbook/tess.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- tess.lisp --- Lisp version of tess.c (Red Book examples) Original C version contains the following copyright notice: ALL RIGHTS RESERVED This program demonstrates polygon tessellation. smooth shaded, self-intersecting star. Note the exterior rectangle is drawn with...
Copyright ( c ) 1993 - 1997 , Silicon Graphics , Inc. Two tesselated objects are drawn . The first is a rectangle with a triangular hole . The second is a star . Also note that removing the TessProperty for the (in-package #:cl-glut-examples) (defclass tess-window (glut:window) ((start-list :access...
3ac269e06a7c996e728f80755695d247959cab4271e0ac0a46968f6a1f336832
xoken/xoken-core
Message.hs
| Module : Network . . Test . Message Copyright : Xoken Labs License : Open BSV License Stability : experimental Portability : POSIX Module : Network.Xoken.Test.Message Copyright : Xoken Labs License : Open BSV License Stability : experimental Portability : POSIX -} module N...
null
https://raw.githubusercontent.com/xoken/xoken-core/34399655febdc8c0940da7983489f0c9d58c35d2/core/src/Network/Xoken/Test/Message.hs
haskell
| Arbitrary 'Message'. , MBlock <$> arbitraryBlock net
| Module : Network . . Test . Message Copyright : Xoken Labs License : Open BSV License Stability : experimental Portability : POSIX Module : Network.Xoken.Test.Message Copyright : Xoken Labs License : Open BSV License Stability : experimental Portability : POSIX -} module N...
9784892aacc9643a2a4bafd2b9d97595f16550dc54e861dbd895cad1d4e2383f
aloiscochard/codex
Project.hs
module Codex.Project where import Control.Applicative ((<|>)) import Control.Exception (try, SomeException) import Control.Monad (filterM) import Data.Bool (bool) import Data.Function import Data.List (delete, isPrefixOf, union) import Data.Maybe import Distribution.InstalledPackageInfo import Distribution.Hackage.DB ...
null
https://raw.githubusercontent.com/aloiscochard/codex/6edbdc34357d13e52b434c19665725684cdd2dba/src/Codex/Project.hs
haskell
| Find a regular file ending with ".cabal" within a directory. | Resolve the dependencies of each local project package. TODO Optimize | Recursively find local packages in @root@, up to @depth@ layers deep. The
module Codex.Project where import Control.Applicative ((<|>)) import Control.Exception (try, SomeException) import Control.Monad (filterM) import Data.Bool (bool) import Data.Function import Data.List (delete, isPrefixOf, union) import Data.Maybe import Distribution.InstalledPackageInfo import Distribution.Hackage.DB ...
58a5858b9ad59bb5f04f95aa743ded2e01d30f2039d695c2a6d890d8e231cc9d
cpichard/filesequence
IntervalTree.hs
| Module FileSequence . FrameList , | implement the DIET : discrete integer encoding tree -- See reference xxxxxxx module System.FileSequence.FrameList.IntervalTree where type FrameNumber = Int type FrameRange = (FrameNumber, FrameNumber) -- | We use a binary tree to store the frame intervals -- TODO : look for...
null
https://raw.githubusercontent.com/cpichard/filesequence/39cd8eb7dd0bc494c181c5b04fc9ff2fae5202d0/src/System/FileSequence/FrameList/IntervalTree.hs
haskell
See reference xxxxxxx | We use a binary tree to store the frame intervals TODO : look for the function to fold this datastructure | Returns a new empty frame list | Insert a new frame We should test for this condition | otherwise = error "trying to insert an already inserted value" | Insert a list of frames |...
| Module FileSequence . FrameList , | implement the DIET : discrete integer encoding tree module System.FileSequence.FrameList.IntervalTree where type FrameNumber = Int type FrameRange = (FrameNumber, FrameNumber) data IntervalTree = Empty | Node FrameRange IntervalTree IntervalTree ...
d117f83c026deb2bfb5d7365052cefc92b65ea1c4e979b5b9b232d0bb48eefac
ollef/sixty
Representation.hs
# LANGUAGE BlockArguments # {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} module Representation where import Data.Persist import Prettyprinter import Protolude data Signature = ConstantSignature !Representation | FunctionSignature [Representation] !Representation ...
null
https://raw.githubusercontent.com/ollef/sixty/5d630ca6fde91da5a691dc7cd195f5cbf6491eb0/src/Representation.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings #
# LANGUAGE BlockArguments # # LANGUAGE DeriveGeneric # module Representation where import Data.Persist import Prettyprinter import Protolude data Signature = ConstantSignature !Representation | FunctionSignature [Representation] !Representation deriving (Eq, Show, Generic, Persist, Hashable) data Representati...
f30369507fa91b230c873c77ee3454b505f38a000572cf790a53f550417bf45d
jgoerzen/ftphs
Parser.hs
arch - tag : FTP protocol parser Copyright ( C ) 2004 < > This program 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 2.1 of the License , or ( at your option ) any later v...
null
https://raw.githubusercontent.com/jgoerzen/ftphs/f4a4838e92ddd97c24f045b7901aa070165bfe3b/src/Network/FTP/Client/Parser.hs
haskell
* Utilities -------------------------------------------------------------------- -------------------------------------------------------------------- -------------------------------------------------------------------- The parsers -------------------------------------------------------------------- ------------------...
arch - tag : FTP protocol parser Copyright ( C ) 2004 < > This program 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 2.1 of the License , or ( at your option ) any later v...
604ce529236975e496b3f57580a62f74b2271d8b23de2302ee68ad37e4f6c780
pdincau/badalisk
badalisk_loglevel.erl
%%%------------------------------------------------------------------- %%% File : badalisk_loglevel.erl Author : < > %%% Description : %%% Created : 12 Aug 2011 by < > %%%------------------------------------------------------------------- -module(badalisk_loglevel). -author(""). -export([get/0, set/1])....
null
https://raw.githubusercontent.com/pdincau/badalisk/ba08c63f0e09294a1719c2af1610bc4e91f99436/src/badalisk_loglevel.erl
erlang
------------------------------------------------------------------- File : badalisk_loglevel.erl Description : ------------------------------------------------------------------- ============================================================================================== Function: Description: ==============...
Author : < > Created : 12 Aug 2011 by < > -module(badalisk_loglevel). -author(""). -export([get/0, set/1]). -record(loglevel, {ordinal, name, description}). -include("../include/badalisk.hrl"). -define(LOG_MODULE, "error_logger"). -define(LOG_LEVELS, [ #loglevel{ordinal = 0, name = no_log, descrip...
7cae637d6a698a5d0be2ccaa90de3e31936e56c7c91939fda0611d903baf84a3
gedge-platform/gedge-platform
rabbit_federation_exchange_link_sup_sup.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved . %% -module(rabbit_federation_exchange_link_sup_sup)....
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/rabbitmq_federation/src/rabbit_federation_exchange_link_sup_sup.erl
erlang
Supervises the upstream links for all exchanges (but not queues). We need different handling here since exchanges want a mirrored sup. ---------------------------------------------------------------------------- This scope is used by concurrently starting exchange and queue links, and other places, so we have to ...
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved . -module(rabbit_federation_exchange_link_sup_sup). -beh...
b5224e6c9d09645236ff5313fa417c2b6c03dbf3273089be15188da6b32f3bd7
4y8/esoo
flurry.ml
type token = Nil_paren | Nil_curly | Nil_brack | Nil_angle | Mon_paren of token list | Mon_curly of token list | Mon_brack of token list | Mon_angle of token list type combinator = I | K | S | T of combinator * combinator let rec church = function 0 -> T...
null
https://raw.githubusercontent.com/4y8/esoo/49f9b8bd70c1f41bf2d4db044d0cfede4e1ff470/flurry/flurry.ml
ocaml
This part is -stolen- inspired by :
type token = Nil_paren | Nil_curly | Nil_brack | Nil_angle | Mon_paren of token list | Mon_curly of token list | Mon_brack of token list | Mon_angle of token list type combinator = I | K | S | T of combinator * combinator let rec church = function 0 -> T...
f769a9876fa37db09bf174efe0d8ca97e079eead4fa71630c1f13da1caffda05
haskell-servant/servant
Auth.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeSynonymInstances #-} -- | Authentication for clients module Servant.Client.Core.Auth ( AuthClientData, AuthenticatedRequest (..), mkAuthenticatedRequest, ) where import Servant.Client.Core.Request ...
null
https://raw.githubusercontent.com/haskell-servant/servant/d06b65c4e6116f992debbac2eeeb83eafb960321/servant-client-core/src/Servant/Client/Core/Auth.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE TypeFamilies # # LANGUAGE TypeSynonymInstances # | Authentication for clients to provide the client with some data used to add authentication data to a request NOTE: THIS API IS EXPERIMENTAL AND SUBJECT TO CHANGE | For better type inference and to avoid usage o...
module Servant.Client.Core.Auth ( AuthClientData, AuthenticatedRequest (..), mkAuthenticatedRequest, ) where import Servant.Client.Core.Request (Request) | For a resource protected by authentication ( e.g. AuthProtect ) , we need type family AuthClientData a :: * newtyp...
c5afbf1d6f630e625f5d17dec02be7432426d01bb9fe697ddd3464f765a81864
TrustInSoft/tis-interpreter
rgmap.mli
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/libraries/utils/rgmap.mli
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
66223d7bef82ae16fb9476e04f26b7212b83b532635acb54fbd23ca0b14dc236
ndmitchell/safe
Foldable.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE ConstraintKinds #-} {- | 'Foldable' functions, with wrappers like the "Safe" module. -} module Safe.Foldable( -- * New functions findJust, -- * Safe wrappers foldl1May, foldl1Def, foldl1Note, foldr1May, foldr1Def, foldr1Note, findJustDef, findJustNote,...
null
https://raw.githubusercontent.com/ndmitchell/safe/c490d6b36b461159ab29b3da9133948e4ec1db45/Safe/Foldable.hs
haskell
# LANGUAGE ConstraintKinds # | 'Foldable' functions, with wrappers like the "Safe" module. * New functions * Safe wrappers * Discouraged * Deprecated ------------------------------------------------------------------- ------------------------------------------------------------------- | The largest element of a...
# LANGUAGE FlexibleContexts # module Safe.Foldable( findJust, foldl1May, foldl1Def, foldl1Note, foldr1May, foldr1Def, foldr1Note, findJustDef, findJustNote, minimumMay, minimumNote, maximumMay, maximumNote, minimumByMay, minimumByNote, maximumByMay, maximumByNote, maximumBoundBy, min...
8c9b5e3faa0a78711dcd0220902c495c4aba0ff6b0f945e12b4f15240f7f2957
tommaisey/aeon
free-self.help.scm
;; (free-self src) ;; free enclosing synth when the input signal `src' crosses from ;; non-positive to positive. (audition (mrg2 (free-self (mouse-x kr -1 1 0 0.1)) (out 0 (mul (sin-osc ar 440 0) 0.1))))
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rsc3/help/ugen/envelopes/free-self.help.scm
scheme
(free-self src) free enclosing synth when the input signal `src' crosses from non-positive to positive.
(audition (mrg2 (free-self (mouse-x kr -1 1 0 0.1)) (out 0 (mul (sin-osc ar 440 0) 0.1))))
473819f031b737177c472be042fde3c5bcba5890326054b234ceeb88243c1848
nobrakal/asak
partition.mli
This file is part of asak . * * Copyright ( C ) 2019 IRIF / OCaml Software Foundation . * * asak is distributed under the terms of the MIT license . See the * included LICENSE file for details . * * Copyright (C) 2019 IRIF / OCaml Software Foundation. * * asak is distributed under the terms of the ...
null
https://raw.githubusercontent.com/nobrakal/asak/c1aaf985815563edd2463f8fe18e2d790f955f05/src/partition.mli
ocaml
* Type used to represent a partition. * Keys identifying codes that either don't implement the searched function, or implement it with a bad type. * Main result. Each class is composed of a tree representing a hierarchical clustering of "similar codes". Each leaf is a list of keys identifying ...
This file is part of asak . * * Copyright ( C ) 2019 IRIF / OCaml Software Foundation . * * asak is distributed under the terms of the MIT license . See the * included LICENSE file for details . * * Copyright (C) 2019 IRIF / OCaml Software Foundation. * * asak is distributed under the terms of the ...
6724e2c780de115576ff495f3dec7763d262e5e783a0d97599245c6d44cc4352
codinuum/cca
LCS.ml
Copyright 2012 - 2020 Codinuum Software Lab < > 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 wri...
null
https://raw.githubusercontent.com/codinuum/cca/88ea07f3fe3671b78518769d804fdebabcd28e90/src/util/LCS.ml
ocaml
An Algorithm for Longest Common Subsequence Problem
Copyright 2012 - 2020 Codinuum Software Lab < > 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 wri...