_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
ef93fc2776c530202184306a2dd05eac7f8023f0d624cccb1f475c3d0cf81610
metosin/pohjavirta
async.clj
(ns ^:no-doc pohjavirta.async (:refer-clojure :exclude [promise]) (:import (java.util.concurrent CompletableFuture Executor) (java.util.function Function))) (defn promise ([] (CompletableFuture.)) ([x] (let [cf (CompletableFuture.)] (.complete cf x) cf))) (defn complete [^Completabl...
null
https://raw.githubusercontent.com/metosin/pohjavirta/022a44eec9109a0baf93827843eeba15265adea7/src/pohjavirta/async.clj
clojure
(ns ^:no-doc pohjavirta.async (:refer-clojure :exclude [promise]) (:import (java.util.concurrent CompletableFuture Executor) (java.util.function Function))) (defn promise ([] (CompletableFuture.)) ([x] (let [cf (CompletableFuture.)] (.complete cf x) cf))) (defn complete [^Completabl...
e176880748b268a8ed6937685a7273bfda3db3136a2c346bccadd2c428c3c244
Octachron/codept
m.ml
open D.M open E.M
null
https://raw.githubusercontent.com/Octachron/codept/2d2a95fde3f67cdd0f5a1b68d8b8b47aefef9290/tests/complex/any_m/b/m.ml
ocaml
open D.M open E.M
c29e591007b7675606c5ab4ad382967bc8169fe4bec0952c47529fe4f30aa9e2
hipsleek/hipsleek
debug.ml
(* open Globals *) open Gen.Basic open VarGen let debug_on = ref false let devel_debug_on = ref false let devel_debug_print_orig_conseq = ref false let trace_on = ref true let z_debug_arg = ref (None:Str.regexp option) let () = if !compete_mode then begin trace_on := false; end let log_devel_debug = ref fals...
null
https://raw.githubusercontent.com/hipsleek/hipsleek/596f7fa7f67444c8309da2ca86ba4c47d376618c/bef_indent/debug.ml
ocaml
open Globals debugging facility for user system development debugging let () = print_endline ("\ndd_get:"^((pr_option string_of_int) d)) in !devel_debug_on if !log_devel_debug then Buffer.add_string debug_log msg else system development debugging let d = Gen.StackTrace.is_same_dd_get () in l...
open Gen.Basic open VarGen let debug_on = ref false let devel_debug_on = ref false let devel_debug_print_orig_conseq = ref false let trace_on = ref true let z_debug_arg = ref (None:Str.regexp option) let () = if !compete_mode then begin trace_on := false; end let log_devel_debug = ref false let debug_log = B...
9ea79b27b2e66bd68c16b2c6b5b3b83b580b77acec5507c43b25d16052d17a2f
tisnik/clojure-examples
core_test.clj
; ( C ) Copyright 2016 , 2020 ; ; All rights reserved. This program and the accompanying materials ; are made available under the terms of the Eclipse Public License v1.0 ; which accompanies this distribution, and is available at -v10.html ; ; Contributors: ; (ns async3.core-test (:require [cl...
null
https://raw.githubusercontent.com/tisnik/clojure-examples/984af4a3e20d994b4f4989678ee1330e409fdae3/async3/test/async3/core_test.clj
clojure
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors:
( C ) Copyright 2016 , 2020 -v10.html (ns async3.core-test (:require [clojure.test :refer :all] [async3.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
b13ba7b912ed7ef0214c03dca70617d9db6031e834526b2bd1678b5877d7278a
RickMoynihan/lein-tools-deps
env_test.clj
(ns lein-tools-deps.env-test (:require [clojure.test :refer :all] [lein-tools-deps.env :refer :all])) (deftest clojure-exe-test (testing "Default" (is (= "clojure" (clojure-exe {})))) (testing "Valid executable specified" (let [invalid "test/resources/missing" valid "test/resources...
null
https://raw.githubusercontent.com/RickMoynihan/lein-tools-deps/ee3acdfb9b03b1891618acb8eaee5956886f1743/test/lein_tools_deps/env_test.clj
clojure
(ns lein-tools-deps.env-test (:require [clojure.test :refer :all] [lein-tools-deps.env :refer :all])) (deftest clojure-exe-test (testing "Default" (is (= "clojure" (clojure-exe {})))) (testing "Valid executable specified" (let [invalid "test/resources/missing" valid "test/resources...
456c3d5e7f5ff3d2aa7cd9b71c5a331a614705dc127332892383f1fa8ce3d5f2
haskell/attoparsec
Links.hs
{-# LANGUAGE OverloadedStrings #-} module Links (links) where import Control.Applicative import Control.DeepSeq (NFData(..)) import Test.Tasty.Bench (Benchmark, bench, nf) import Data.Attoparsec.ByteString as A import Data.Attoparsec.ByteString.Char8 as A8 import Data.ByteString.Char8 as B8 data Link = Link { ...
null
https://raw.githubusercontent.com/haskell/attoparsec/3c35bc2ab23a2129cb20d41f6832167bcbf1b00b/benchmarks/Links.hs
haskell
# LANGUAGE OverloadedStrings #
module Links (links) where import Control.Applicative import Control.DeepSeq (NFData(..)) import Test.Tasty.Bench (Benchmark, bench, nf) import Data.Attoparsec.ByteString as A import Data.Attoparsec.ByteString.Char8 as A8 import Data.ByteString.Char8 as B8 data Link = Link { linkURL :: ByteString , linkPar...
21d30374fd556315c62b76dd44e232ea227bda3a8f8e4ad7d954188699e8eb6f
ubf/ubf
test_plugin.erl
%%% The MIT License %%% Copyright ( C ) 2011 - 2016 by < > Copyright ( C ) 2002 by %%% %%% 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 li...
null
https://raw.githubusercontent.com/ubf/ubf/c876f684fbd4959548ace1eb1cfc91941f93d377/test/unit/test_plugin.erl
erlang
The MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following conditions: The above...
Copyright ( C ) 2011 - 2016 by < > Copyright ( C ) 2002 by in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITH...
cd91b59a68f6985432a61138c9122155fb5fd68320e6c4fcaa3a068be6db4d6e
input-output-hk/ouroboros-network
Compat.hs
# LANGUAGE DataKinds # # LANGUAGE ExistentialQuantification # # LANGUAGE FlexibleContexts # # LANGUAGE GADTSyntax # {-# LANGUAGE KindSignatures #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ScopedTypeVariables...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/a3de4116840c7fa07bda02d3e6f678cd1f9c2be4/network-mux/src/Network/Mux/Compat.hs
haskell
# LANGUAGE KindSignatures # # LANGUAGE NamedFieldPuns # # LANGUAGE RankNTypes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # * Mux bearers * Errors * Tracing Initiator application; most simple application will be @'runPeer'@ or @ptcl@. But it a...
# LANGUAGE DataKinds # # LANGUAGE ExistentialQuantification # # LANGUAGE FlexibleContexts # # LANGUAGE GADTSyntax # module Network.Mux.Compat ( muxStart , MuxBearer , MakeBearer (..) * Defining ' MuxApplication 's , MuxMode (..) , HasInitiator , HasResponder ,...
6f1b21f0029df3b0cb25106c47ea88d3e235476da710c8c0aaa24fcdab4b8ae1
aragaer/dotfiles
xmonad.hs
import System.IO import XMonad import XMonad.Actions.Minimize import XMonad.Config.Desktop import XMonad.Hooks.DynamicLog import XMonad.Hooks.EwmhDesktops import XMonad.Hooks.ManageDocks import XMonad.Hooks.ManageHelpers import XMonad.Hooks.SetWMName import XMonad.Layout.BoringWindows import XMonad.Layout.Minimize impo...
null
https://raw.githubusercontent.com/aragaer/dotfiles/714f34ee0883352f4712a5f549f7009917b1e528/xmonad/xmonad.hs
haskell
Current window title Current workspace > doFloat, > doFullFloat,
import System.IO import XMonad import XMonad.Actions.Minimize import XMonad.Config.Desktop import XMonad.Hooks.DynamicLog import XMonad.Hooks.EwmhDesktops import XMonad.Hooks.ManageDocks import XMonad.Hooks.ManageHelpers import XMonad.Hooks.SetWMName import XMonad.Layout.BoringWindows import XMonad.Layout.Minimize impo...
730b62b5ba6f72a2ac071ebc57e8ee15beb970bf5c590e648adea5d268703781
FranklinChen/hugs98-plus-Sep2006
Lex.hs
| This is another hand - written lexer , this time for the Xtract command - language . The entry point is lexXtract . You do n't -- normally need to use this module directly - the lexer is called -- automatically by the parser. (We only expose this interface -- for debugging purposes.) -- The Xtrac...
null
https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/HaXml/src/Text/XML/HaXml/Xtract/Lex.hs
haskell
normally need to use this module directly - the lexer is called automatically by the parser. (We only expose this interface for debugging purposes.) char index only begins with letter begins with digit --
| This is another hand - written lexer , this time for the Xtract command - language . The entry point is lexXtract . You do n't The Xtract command language is very like the XPath specification . module Text.XML.HaXml.Xtract.Lex ( lexXtract , Posn(..) , TokenT(..) , Token ) where import Char i...
de1949f378ad369b542760bd8f4fdd6971ee9e5b306b7c0d12b5670bf4d29617
aryx/fork-efuns
xtypes.ml
type keySym = int type modifiers = int let shiftMask = 1 let controlMask = 4 let mod1Mask = 8 let mod2Mask = 16 let mod3Mask = 32 let mod4Mask = 64 let mod5Mask = 128 XT because used to be xterm events type event = XTKeyPress of modifiers * string * keySym | XTButtonPress of modifiers * int * int * int | XTMous...
null
https://raw.githubusercontent.com/aryx/fork-efuns/8f2f8f66879d45e26ecdca0033f9c92aec2b783d/graphics/xtypes.ml
ocaml
type keySym = int type modifiers = int let shiftMask = 1 let controlMask = 4 let mod1Mask = 8 let mod2Mask = 16 let mod3Mask = 32 let mod4Mask = 64 let mod5Mask = 128 XT because used to be xterm events type event = XTKeyPress of modifiers * string * keySym | XTButtonPress of modifiers * int * int * int | XTMous...
966ecd795b09fbe4f105ebb563aa5e854320a4160209accc2feccfaa064119aa
VisionsGlobalEmpowerment/webchange
activity_template.clj
(ns webchange.templates.library.flipbook.activity-template) (def template {:assets [{:url "/raw/img/flipbook/next-page.png" :size 1 :type "image"} {:url "/raw/img/flipbook/prev-page.png" :size 1 :type "image"} {:url "/raw/img/flipbook/pages_1.png" :...
null
https://raw.githubusercontent.com/VisionsGlobalEmpowerment/webchange/d16f88e2e1dc8aa6acea26f7c45629b4242a32b4/src/clj/webchange/templates/library/flipbook/activity_template.clj
clojure
(ns webchange.templates.library.flipbook.activity-template) (def template {:assets [{:url "/raw/img/flipbook/next-page.png" :size 1 :type "image"} {:url "/raw/img/flipbook/prev-page.png" :size 1 :type "image"} {:url "/raw/img/flipbook/pages_1.png" :...
ab20afd59d4070ad9de911f179956b9506692f20be7afd6d6a687524e8a82295
aws-beam/aws-erlang
aws_sagemaker_edge.erl
%% WARNING: DO NOT EDIT, AUTO-GENERATED CODE! See -beam/aws-codegen for more details . @doc SageMaker Edge Manager dataplane service for communicating with %% active agents. -module(aws_sagemaker_edge). -export([get_deployments/2, get_deployments/3, get_device_registration/2, get_device...
null
https://raw.githubusercontent.com/aws-beam/aws-erlang/699287cee7dfc9dc8c08ced5f090dcc192c9cba8/src/aws_sagemaker_edge.erl
erlang
WARNING: DO NOT EDIT, AUTO-GENERATED CODE! active agents. ==================================================================== API ==================================================================== @doc Use to get the active deployments from a device. Manager. ====================================================...
See -beam/aws-codegen for more details . @doc SageMaker Edge Manager dataplane service for communicating with -module(aws_sagemaker_edge). -export([get_deployments/2, get_deployments/3, get_device_registration/2, get_device_registration/3, send_heartbeat/2, send_heartb...
32fb76c75a84b1671c5fd9d52ff9eb5721b75860b58d31f163a661ef3ad674a9
mzp/coq-ruby
scheme.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/mzp/coq-ruby/99b9f87c4397f705d1210702416176b13f8769c1/contrib/extraction/scheme.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i $Id: scheme.mli 10232 2007-10-17 1...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * val scheme_descr : Miniml....
e2c0574c922d66fb7e25cb76580832c611563b2baaac0bb0c311cd50391bf133
tweag/linear-base
TopSort.hs
{-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # {-# LANGUAGE LinearTypes #-} # LANGUAGE MagicHash # {-# OPTIONS_GHC -Wno-name-shadowing #-} {-# OPTIONS_GHC -Wno-unused-matches #-} module Simple.TopSort where import Data.Bifunctor.Linear (second) import qualified Data.Functor.Linear as Data import Data.HashMap.Mutable....
null
https://raw.githubusercontent.com/tweag/linear-base/eedda420101f50be4e9e8c8fdee4d10711c6207a/examples/Simple/TopSort.hs
haskell
# LANGUAGE GADTs # # LANGUAGE LinearTypes # # OPTIONS_GHC -Wno-name-shadowing # # OPTIONS_GHC -Wno-unused-matches # ----------------------------------------------------------------------------- O(V + N) Increment in-degree of all neighbors decrement degree of children, save newly made sources Decrement the degree o...
# LANGUAGE LambdaCase # # LANGUAGE MagicHash # module Simple.TopSort where import Data.Bifunctor.Linear (second) import qualified Data.Functor.Linear as Data import Data.HashMap.Mutable.Linear (HashMap) import qualified Data.HashMap.Mutable.Linear as HMap import Data.Maybe.Linear (catMaybes) import Data.Unrestricted....
77d2cd23f322023287c95a0a1f5738ee747c5e873bbaa723c4373114f48ec413
fragnix/fragnix
HiFragnix.hs
module Main where putHello :: String -> IO () putHello x = putStrLn ("Hello " ++ x) main :: IO () main = putHello "Fragnix!"
null
https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/tests/quick/HiFragnix/HiFragnix.hs
haskell
module Main where putHello :: String -> IO () putHello x = putStrLn ("Hello " ++ x) main :: IO () main = putHello "Fragnix!"
a490090df173143cf73260275053f842294a90999c2dd9405d6f072fa77b9785
fyquah/hardcaml_zprize
kernel_for_vitis.mli
* Wraps the MSM pippenger top module with 512 bit AXI stream interfaces that can be driven by the AWS shell when compiled with Vitis . can be driven by the AWS shell when compiled with Vitis. *) open Hardcaml open Hardcaml_axi module Make (Config : Config.S) : sig module Top : module type of Top.Make (C...
null
https://raw.githubusercontent.com/fyquah/hardcaml_zprize/553b1be10ae9b977decbca850df6ee2d0595e7ff/zprize/msm_pippenger/hardcaml/src/kernel_for_vitis.mli
ocaml
* Wraps the MSM pippenger top module with 512 bit AXI stream interfaces that can be driven by the AWS shell when compiled with Vitis . can be driven by the AWS shell when compiled with Vitis. *) open Hardcaml open Hardcaml_axi module Make (Config : Config.S) : sig module Top : module type of Top.Make (C...
06b35b3e90ea3a3ba04d6f17c3cd97c428995ff112c8a7e0b6df5d4b5ac21053
janegca/htdp2e
Exercise-155-Phones.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-abbr-reader.ss" "lang")((modname Exercise-155-Phones) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp")...
null
https://raw.githubusercontent.com/janegca/htdp2e/2d50378135edc2b8b1816204021f8763f8b2707b/02-ArbitrarilyLargeData/Exercise-155-Phones.rkt
racket
about the language level of this file in a form that our tools can easily process. A Phone is a structure: Design the function replace. It consumes a list of Phones and produces one. List-of-Phones -> List-of-Phones Phone -> Phone
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname Exercise-155-Phones) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "universe.rkt" "teachpack" "2htdp") (lib "batch-io.rkt" "teachpack" "2htdp"))) (...
d6a8679ac5cc1547812574719a5fcbd8607df73076150f3ef0e0add0b7440296
brainbot-com/es-nozzle
dynaload.clj
(ns brainbot.nozzle.dynaload "dynamic code loading") (defprotocol Loadable "loadable thing") (defn- split-symbol-or-string [sym] (let [[nsname name] (clojure.string/split (str sym) #"/")] [(symbol nsname) (symbol (or name "default-loadable"))])) (defn- require-and-resolve [sym] (let [[ns-sym name-s...
null
https://raw.githubusercontent.com/brainbot-com/es-nozzle/0996b3989d4b05849644f0e4ef585af0b8f9be0c/src/brainbot/nozzle/dynaload.clj
clojure
(ns brainbot.nozzle.dynaload "dynamic code loading") (defprotocol Loadable "loadable thing") (defn- split-symbol-or-string [sym] (let [[nsname name] (clojure.string/split (str sym) #"/")] [(symbol nsname) (symbol (or name "default-loadable"))])) (defn- require-and-resolve [sym] (let [[ns-sym name-s...
f1f9b2dd38fd006acad862eefd61e7ee09d9aff4a27e251944ee46cdb3b231ed
CBMM/tagging
Database.hs
{-# LANGUAGE QuasiQuotes #-} # LANGUAGE TemplateHaskell # {-# LANGUAGE TypeFamilies #-} # LANGUAGE ExistentialQuantification # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE StandaloneDeriving # module Server.Database where import Control.Monad.IO.Class import qualified Data.Aeson as A...
null
https://raw.githubusercontent.com/CBMM/tagging/15f257394f3dda5baf6db0581a52d9c9f99e2abe/tagging-server/src/Server/Database.hs
haskell
# LANGUAGE QuasiQuotes # # LANGUAGE TypeFamilies # data Permissions = Perm } deriving instance Show Permissions deriving instance Eq Permissions
# LANGUAGE TemplateHaskell # # LANGUAGE ExistentialQuantification # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE StandaloneDeriving # module Server.Database where import Control.Monad.IO.Class import qualified Data.Aeson as A import Data.Maybe (fromMaybe, maybeToList) import Data.Proxy impo...
c15d2e4b38d64fc219f4a90dc542c79a81e1473f668c70a4c94d72d6b9821593
kingcons/advent-of-code
day04.lisp
(mgl-pax:define-package :aoc.2021.04 (:nicknames :2021.04) (:use :cl :aoc.util :mgl-pax) (:import-from :cl-ppcre #:split)) (in-package :2021.04) (defsummary (:title "Giant Squid") "**Part 1** - Bingo Subsystem" (play-bingo function) "**Part 2** - Let the Squid Win" (play-bingo-final function)) (defvar ...
null
https://raw.githubusercontent.com/kingcons/advent-of-code/ef8dfb86dda085f5f733c9909aedde476ea498e2/src/2021/day04.lisp
lisp
(mgl-pax:define-package :aoc.2021.04 (:nicknames :2021.04) (:use :cl :aoc.util :mgl-pax) (:import-from :cl-ppcre #:split)) (in-package :2021.04) (defsummary (:title "Giant Squid") "**Part 1** - Bingo Subsystem" (play-bingo function) "**Part 2** - Let the Squid Win" (play-bingo-final function)) (defvar ...
6ce01c1f93193583ef85474655602355ab21fb49baef19ee1a2c80ecc394b49e
vikram/lisplibraries
login.lisp
;; -*- lisp -*- (in-package :it.bese.ucw) ;;;; ** Login Component (defclass login () ((username :accessor login.username :initform nil) (password :accessor login.password :initform nil) (message :accessor login.message :initform nil :initarg :message ...
null
https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/ucw-boxset/ucw_dev/src/components/login.lisp
lisp
-*- lisp -*- ** Login Component All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the fo...
(in-package :it.bese.ucw) (defclass login () ((username :accessor login.username :initform nil) (password :accessor login.password :initform nil) (message :accessor login.message :initform nil :initarg :message :documentation "A message which will...
fb1be77ca492a787e326d64483f1d822ae554238a5e7c8f17fc023cb8a13e9a7
gogins/csound-extended-nudruz
rewrite.lisp
(in-package :cm) REWRITE.LISP -- using CM 's rewrite function ;; some general functions (defun codeword (codelen &optional (wgts 1)) (let ((weights (if (numberp wgts) (list wgts) wgts))) (loop for x from 0 to (- codelen 1) collect (if (member x weights) 1 0)))) WEIGHTED - CODEWORD -- random...
null
https://raw.githubusercontent.com/gogins/csound-extended-nudruz/4551d54890f4adbadc5db8f46cc24af8e92fb9e9/sources/rewrite.lisp
lisp
some general functions ALL-CODEWORDS of length 'len', sorted by ascending weight BITWSWITCH: 0->1 & 1->0 MERGE CODEWORDS -- texture sum returns cw of max length useful for fig accent vectors -> texture DURS->CODE -- converting duration list to codeword PAIRS->PIT5 -- converts list of pairs to pits mod5 MTRULES...
(in-package :cm) REWRITE.LISP -- using CM 's rewrite function (defun codeword (codelen &optional (wgts 1)) (let ((weights (if (numberp wgts) (list wgts) wgts))) (loop for x from 0 to (- codelen 1) collect (if (member x weights) 1 0)))) WEIGHTED - CODEWORD -- random codeword of specified len...
a2546a2e7eb798427b6bad992d1201716a9d5101c9b4f389cfbb9fd4dd227879
nitrogen/NitrogenProject.com
demos_jquerypaths.erl
-module (demos_jquerypaths). -include_lib ("nitrogen_core/include/wf.hrl"). -compile(export_all). -define (STYLE, "border: solid 1px #cde; margin: 7px; float: left; width: 100px; line-height: 40px; text-align: center; height: 40px;"). main() -> #template { file="./templates/demos46.html" }. title() -> "JQuery Paths"....
null
https://raw.githubusercontent.com/nitrogen/NitrogenProject.com/b4b3a0dbe17394608d2ee6eaa089e3ece1285075/src/demos/demos_jquerypaths.erl
erlang
-module (demos_jquerypaths). -include_lib ("nitrogen_core/include/wf.hrl"). -compile(export_all). -define (STYLE, "border: solid 1px #cde; margin: 7px; float: left; width: 100px; line-height: 40px; text-align: center; height: 40px;"). main() -> #template { file="./templates/demos46.html" }. title() -> "JQuery Paths"....
91559c1bb663d81abdfe268e80ec128aba25a03622eade2e564736ffb8a57df4
sheyll/pretty-types
Pretty.hs
# LANGUAGE UndecidableInstances # -- | -- = Type Pretty Printing -- -- == Printing Custom Types -- -- The main usecase of this library is rendering one's own complex types to -- pretty 'String' values, e.g. for debugging and tracing purposes. -- One way to create ' PrettyType ' /documents/ is to define ' ToPretty ' i...
null
https://raw.githubusercontent.com/sheyll/pretty-types/5c1e69da9b22722e1c0f94ac36b528f280f7b424/src/Data/Type/Pretty.hs
haskell
| = Type Pretty Printing == Printing Custom Types The main usecase of this library is rendering one's own complex types to pretty 'String' values, e.g. for debugging and tracing purposes. 'ToPretty' is an open type family, that converts a custom type to a 'showPretty' eventually crafts a 'String' value fro...
# LANGUAGE UndecidableInstances # One way to create ' PrettyType ' /documents/ is to define ' ToPretty ' instances for your types by combining the promoted constructors of ' PrettyType ' . If ` UndecidableInstances ` is n't holding you back , use the type aliases like ' PutStr ' , ' ' , ' PrettyInfix ' , etc i...
2fc5417fcb27b1c25374b94cea9b492a363e5058cad4eeb69a27b78ecd4bec2a
input-output-hk/cardano-sl
Common.hs
# LANGUAGE RecordWildCards # -- | Impure functions which are used by both local and global txp in -- explorer. module Pos.Explorer.Txp.Common ( buildExplorerExtraLookup ) where import Universum hiding (keys) import Control.Lens (at, non) import qualified Data.HashMap.Strict as HM ...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/explorer/src/Pos/Explorer/Txp/Common.hs
haskell
| Impure functions which are used by both local and global txp in explorer. used in a ReaderT environment to provide underlying functions (`modifyAddrHistory` and `modifyAddrBalance`) with data to updated, hence 'const Nothing' is used as 'eelGetTxExtra'.
# LANGUAGE RecordWildCards # module Pos.Explorer.Txp.Common ( buildExplorerExtraLookup ) where import Universum hiding (keys) import Control.Lens (at, non) import qualified Data.HashMap.Strict as HM import Pos.Chain.Txp (Tx (..), TxAux (..), Utxo, toaOut, txOutAddress) i...
9e8651670eab45ad0f66aad5d30492134334c465c33114df40e10dd3d650ebac
unnohideyuki/bunny
sample240.hs
main = print $ map (*2) ([1..5] :: [Int])
null
https://raw.githubusercontent.com/unnohideyuki/bunny/501856ff48f14b252b674585f25a2bf3801cb185/compiler/test/samples/sample240.hs
haskell
main = print $ map (*2) ([1..5] :: [Int])
e614b29599e7e813c56829005a192aa31e03c0f8c18564f60f095021ef161f8c
reasonml/reason
reason_recover_parser.mli
type 'a parser val initial : (Lexing.position -> 'a Reason_parser.MenhirInterpreter.checkpoint) -> Lexing.position -> 'a parser type 'a step = | Intermediate of 'a parser | Success of 'a * Reason_lexer.invalid_docstrings | Error val step : 'a parser -> Reason_parser.token Reason_lexer.positioned -> 'a step...
null
https://raw.githubusercontent.com/reasonml/reason/daa11255cb4716ce1c370925251021bd6e3bd974/src/reason-parser/reason_recover_parser.mli
ocaml
type 'a parser val initial : (Lexing.position -> 'a Reason_parser.MenhirInterpreter.checkpoint) -> Lexing.position -> 'a parser type 'a step = | Intermediate of 'a parser | Success of 'a * Reason_lexer.invalid_docstrings | Error val step : 'a parser -> Reason_parser.token Reason_lexer.positioned -> 'a step...
7d6a198d8a052f8bc312c66044bea6479935ea877918ab8d6455d303a478425b
mikera/orculje
test_mapmaker.clj
(ns mikera.orculje.test-mapmaker (:use mikera.orculje.core) (:use clojure.test) (:use mikera.orculje.mapmaker)) (deftest test-block (let [game (empty-game) game (fill-block game (loc 0 0 0) (loc 2 2 2) {:foo true})] (is (:foo (get-tile game 2 2 2))))) (deftest test-reduce-block (let [game (empty...
null
https://raw.githubusercontent.com/mikera/orculje/4c7f9af78f9a8744e1ab3aef3ded151306883083/src/test/clojure/mikera/orculje/test_mapmaker.clj
clojure
(ns mikera.orculje.test-mapmaker (:use mikera.orculje.core) (:use clojure.test) (:use mikera.orculje.mapmaker)) (deftest test-block (let [game (empty-game) game (fill-block game (loc 0 0 0) (loc 2 2 2) {:foo true})] (is (:foo (get-tile game 2 2 2))))) (deftest test-reduce-block (let [game (empty...
2d68235fdfa7e8a3a195140e1e4ae70f84daac5ddf942ec33eeba72f98fd039c
stolen/webdist
webdist_lib.erl
-module(webdist_lib). -export([load/0]). -export([conf/1]). load() -> application:load(webdist). conf(Key) -> case application:get_env(webdist, Key) of undefined -> error({no_key, Key}); {ok, Value} -> Value end.
null
https://raw.githubusercontent.com/stolen/webdist/07aca628131c965b2f046e7e4470df2caa44231b/src/webdist_lib.erl
erlang
-module(webdist_lib). -export([load/0]). -export([conf/1]). load() -> application:load(webdist). conf(Key) -> case application:get_env(webdist, Key) of undefined -> error({no_key, Key}); {ok, Value} -> Value end.
61b7fbee19204a0146ebb9874a77fed1e35ff06914fff7635c0f590b365e54da
vshaxe/hxparser
tokenProvider.ml
open Sedlex_menhir open Tokens open AstPre open Ops open Token open WorkList.LinkedNode open WorkList type t = { lexbuf : lexbuf; skipped_list : int WorkList.t; mutable inserted_tokens : work_token list; mutable token_cache : (placed_token * trivia_flag) WorkList.t; mutable branches : ((expr * bool) * bool * Lexi...
null
https://raw.githubusercontent.com/vshaxe/hxparser/8621d5e44805b6d664654d15737faf6a3a4a18fa/src/syntax/lexing/tokenProvider.ml
ocaml
TODO: this loses tokens if there is no message We have to push _something_ on the stack so the #end can consume it. Parsing the condition could arrive at the #end immediately.
open Sedlex_menhir open Tokens open AstPre open Ops open Token open WorkList.LinkedNode open WorkList type t = { lexbuf : lexbuf; skipped_list : int WorkList.t; mutable inserted_tokens : work_token list; mutable token_cache : (placed_token * trivia_flag) WorkList.t; mutable branches : ((expr * bool) * bool * Lexi...
e149bc4506e5747e2d87b108a44d3f388659e92cd776f4eaf3571ccc8b94d654
sbcl/sbcl
bivalent-stream.pure.lisp
;;;; This file is for testing bivalent stream functionality, using ;;;; test machinery which might have side effects (e.g. executing DEFUN , writing files ) . Note that the tests here might reach into ;;;; unexported functionality, and should not be used as a guide for ;;;; users. This software is part of the S...
null
https://raw.githubusercontent.com/sbcl/sbcl/ab82559ed51674d8b0cd956662f3b7c81f5edac9/tests/bivalent-stream.pure.lisp
lisp
This file is for testing bivalent stream functionality, using test machinery which might have side effects (e.g. executing unexported functionality, and should not be used as a guide for users. more information. files (like this one) were written from scratch after the fork This software is in the public doma...
DEFUN , writing files ) . Note that the tests here might reach into 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 . (defun bvector (&rest elements) (make-array (length elements) :element-type '(unsigned-byte ...
700ebe0e0efe86581b14e473502f3ae360d607ee3e0b724cc6c2ad40fc2e7c9e
facebook/flow
exception.mli
* Copyright ( c ) Meta Platforms , Inc. and 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) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/flow/1232fa6f444797403095fc1f69dae7bf7789a313/src/hack_forked/utils/core/exception.mli
ocaml
* Copyright ( c ) Meta Platforms , Inc. and 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) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
b5cfe88abd46ffb36daa8f7c89c1c1acd96ad31062e07661c7c56295aa482316
andrewthad/primitive-containers
Unboxed.hs
# LANGUAGE KindSignatures # {-# LANGUAGE BangPatterns #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE TypeFamilies # # OPTIONS_GHC -O2 -Wall # module Data.Map.Unboxed.Unboxed ( Map , empty , singleton , lookup , size -- * Transform , map , mapMaybe , mapMaybeWithKey , adjustMany , adjustManyInline ...
null
https://raw.githubusercontent.com/andrewthad/primitive-containers/55e2775df3399b447c7b44396d95956111ceb449/src/Data/Map/Unboxed/Unboxed.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE RankNTypes # * Transform * Folds * Monadic Folds * List Conversion * Array Conversion | A map from keys @k@ to values @v@. The key type and the value | The empty diet map. | /O(1)/ Create a map with a single element. | /O(n)/ A list of key-value pairs in ascending order. t...
# LANGUAGE KindSignatures # # LANGUAGE TypeFamilies # # OPTIONS_GHC -O2 -Wall # module Data.Map.Unboxed.Unboxed ( Map , empty , singleton , lookup , size , map , mapMaybe , mapMaybeWithKey , adjustMany , adjustManyInline , foldlWithKey' , foldrWithKey' , foldMapWithKey' , foldlWithKeyM' ,...
cc917052345ba03d72f09ae89ae28cd20acc8fee3998fa7b28442fe3241b854f
haroldcarr/learn-haskell-coq-ml-etc
Ch23_System_F_Universals.hs
# OPTIONS_GHC -fno - warn - type - defaults # {-# LANGUAGE GADTs #-} # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} module Ch23_System_F_Universals where import qualified Prelude import Protolude import Test.Hspec # ANN module ( "...
null
https://raw.githubusercontent.com/haroldcarr/learn-haskell-coq-ml-etc/f2ce69e9f80a32dc12de2b0d6bfbbcdc32534792/foundations/book/2002-TAPL-2005-ATAPL/tapl/src/Ch23_System_F_Universals.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes #
# OPTIONS_GHC -fno - warn - type - defaults # # LANGUAGE NoImplicitPrelude # module Ch23_System_F_Universals where import qualified Prelude import Protolude import Test.Hspec # ANN module ( " HLint : ignore Redundant id"::Prelude . String ) # id :: forall a. a -> a id a = a idT :: Spec idT = ...
100600043377584f8a1a2de0fd2e1d19fdbd928e8235f00eb739644ed2baf265
ninjudd/cake
project.clj
(defproject servlet "0.1.0-SNAPSHOT" :description "cake servlet example" :dependencies [[org.clojure/clojure "1.2.0"] [org.clojure/clojure-contrib "1.2.0"] [clojure-useful "0.2.6"] [jline "0.9.94"]] :dev-dependencies [[swank-clojure "1.2.1"]] :aot [servlet] :...
null
https://raw.githubusercontent.com/ninjudd/cake/3a1627120b74e425ab21aa4d1b263be09e945cfd/examples/servlet/project.clj
clojure
(defproject servlet "0.1.0-SNAPSHOT" :description "cake servlet example" :dependencies [[org.clojure/clojure "1.2.0"] [org.clojure/clojure-contrib "1.2.0"] [clojure-useful "0.2.6"] [jline "0.9.94"]] :dev-dependencies [[swank-clojure "1.2.1"]] :aot [servlet] :...
e6ac50d6e63d1ab4719b6e863183cfef4bbc160a274b7fe9cf709774ab819e4f
juxt/joplin
project.clj
(defproject joplin.cassandra "0.3.12-SNAPSHOT" :description "Cassandra support for Joplin" :url "" :scm {:name "git" :url ""} :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [joplin.core "0.3.12-SNAPSHOT"] ...
null
https://raw.githubusercontent.com/juxt/joplin/d190f883c47b11efafc5154237a80d36af0087d3/joplin.cassandra/project.clj
clojure
(defproject joplin.cassandra "0.3.12-SNAPSHOT" :description "Cassandra support for Joplin" :url "" :scm {:name "git" :url ""} :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [joplin.core "0.3.12-SNAPSHOT"] ...
3e5e2d64cb03ca2c9abd8902075edf3ab651500f44bd3166560af98d37f68056
fmi/fp2015
file-utils.rkt
#lang racket (provide lines unlines words unwords read-file) ; Splits str in list of new lines (define (lines str) (string-split str "\n" #:trim? #t)) Joins the list into one str (define (unlines strs) (string-join strs "\n")) (define (words str) (string-split str " " #:trim? #t)) (define (unword...
null
https://raw.githubusercontent.com/fmi/fp2015/ea2ea5448c6c054b00c280590e2e56ee782278e9/samples/file-utils.rkt
racket
Splits str in list of new lines You can also use (file->string path) function
#lang racket (provide lines unlines words unwords read-file) (define (lines str) (string-split str "\n" #:trim? #t)) Joins the list into one str (define (unlines strs) (string-join strs "\n")) (define (words str) (string-split str " " #:trim? #t)) (define (unwords strs) (string-join strs " ")) ...
d43fc67e0cea337a393f215f40d00185b5fa32ca72b986d83f3e8ca98e368456
jollheef/cl-logic
operators.lisp
;;;; This file is part of the cl-logic library, released under GNU General Public License , Version 3.0 ;;;; See file COPYING for details. ;;;; Author : < > (in-package #:cl-logic) Определение функций (defun ¬ (p) "Инверсия, uac" (not p)) (defun ∧ (p q) "Конъюнкция, u2227" (and p q)) (defun ∨ (p q) "Диз...
null
https://raw.githubusercontent.com/jollheef/cl-logic/0b3220e3be807ab77acc271456f8ee854dd968b0/operators.lisp
lisp
This file is part of the cl-logic library, released under See file COPYING for details.
GNU General Public License , Version 3.0 Author : < > (in-package #:cl-logic) Определение функций (defun ¬ (p) "Инверсия, uac" (not p)) (defun ∧ (p q) "Конъюнкция, u2227" (and p q)) (defun ∨ (p q) "Дизъюнкция, u2228" (or p q)) (defun → (p q) "Импликация, u2192" (or (not p) q)) (defun ⊕ (p q) "Сложени...
bad9f26ea159d83b54366906e7a5503d98d8b4a7a294593d5dd9452f2af92bbb
cubicle-model-checker/cubicle
options.mli
(**************************************************************************) (* *) Cubicle (* *) ...
null
https://raw.githubusercontent.com/cubicle-model-checker/cubicle/00f09bb2d4bb496549775e770d7ada08bc1e4866/options.mli
ocaml
************************************************************************ ...
Cubicle Copyright ( C ) 2011 - 2014 and Universite Paris - Sud 11 This file is distributed under the terms ...
90b83e8f942b79bb5e7f157e49b11cdbbeed067dfa2f6bdc4b6fe6af1f4e4a38
ruedigergad/bowerick
broker.clj
;;; Copyright 2016 , ;;; This software is released under the terms of the Eclipse Public License ( EPL ) 1.0 . You can find a copy of the EPL at : ;;; -1.0.php ;;; (ns ^{:author "Ruediger Gad", :doc "Tests for JMS broker interaction"} bowerick.test.broker (:require [bowerick.jms :as jm...
null
https://raw.githubusercontent.com/ruedigergad/bowerick/80b48ebec19f5f9a225d4cf43eb9b484c5f98afa/test/bowerick/test/broker.clj
clojure
-1.0.php
Copyright 2016 , This software is released under the terms of the Eclipse Public License ( EPL ) 1.0 . You can find a copy of the EPL at : (ns ^{:author "Ruediger Gad", :doc "Tests for JMS broker interaction"} bowerick.test.broker (:require [bowerick.jms :as jms] [bowerick.test.test-...
cb1fdba6c0eb6f7b00fc4c418301ca9c29c975ce388799b3e4fa3b7d64da6286
klutometis/clrs
select-test.scm
(require-extension syntax-case check) (require '../9.3/section) (import section-9.3) (let ((data (vector 3 2 9 0 7 5 4 8 6 1))) (check (select! data 0 (- (vector-length data) 1) 5) => 4))
null
https://raw.githubusercontent.com/klutometis/clrs/f85a8f0036f0946c9e64dde3259a19acc62b74a1/9.3/select-test.scm
scheme
(require-extension syntax-case check) (require '../9.3/section) (import section-9.3) (let ((data (vector 3 2 9 0 7 5 4 8 6 1))) (check (select! data 0 (- (vector-length data) 1) 5) => 4))
651f93ffb2141ae6929a2620c4e9e9bb4bc516481bb3c125c8da4302831a9667
input-output-hk/cardano-sl
Value.hs
module Lang.Value ( -- * Run-time values Value(..) , _ValueUnit , _ValueNumber , _ValueString , _ValueBool , _ValueList , _ValueAddress , _ValuePublicKey , _ValueTxOut , _ValueStakeholderId , _ValueHash , _ValueBlockVers...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/auxx/src/Lang/Value.hs
haskell
* Run-time values * Command-specific types the node that creates/signs the proposal ^ Number of blocks to generate. ^ Generating seed. | Parameters of `add-key` command. ^ Path to 'UserSecret'. ^ If 'True', then primary key will be added.
module Lang.Value ( Value(..) , _ValueUnit , _ValueNumber , _ValueString , _ValueBool , _ValueList , _ValueAddress , _ValuePublicKey , _ValueTxOut , _ValueStakeholderId , _ValueHash , _ValueBlockVersion , _ValueSoftwareV...
13b2721809aa3b71480728ec4feb056fc126d4f49777172e66498736b4cca326
input-output-hk/cardano-sl
Class.hs
# LANGUAGE TypeFamilies # -- | Type classes for Toss abstraction. module Pos.Chain.Ssc.Toss.Class ( MonadTossRead (..) , MonadTossEnv (..) , MonadToss (..) ) where import Universum hiding (id) import Control.Monad.Except (ExceptT) import Control.Monad.Trans ...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/chain/src/Pos/Chain/Ssc/Toss/Class.hs
haskell
| Type classes for Toss abstraction. -------------------------------------------------------------------------- Read-only -------------------------------------------------------------------------- | Type class which provides functions necessary for read-only | Get 'OpeningsMap' with all openings. | Default impleme...
# LANGUAGE TypeFamilies # module Pos.Chain.Ssc.Toss.Class ( MonadTossRead (..) , MonadTossEnv (..) , MonadToss (..) ) where import Universum hiding (id) import Control.Monad.Except (ExceptT) import Control.Monad.Trans (MonadTrans) import Pos.Chain...
b9e376690afd79869d443f656b481280aa876414e73f178b2dbfd928ffcc604d
deadcode/Learning-CL--David-Touretzky
6.16.lisp
(format t "~s = ~s~%" '(union '(LET US SEE) nil) (union '(LET US SEE) nil))
null
https://raw.githubusercontent.com/deadcode/Learning-CL--David-Touretzky/b4557c33f58e382f765369971e6a4747c27ca692/Chapter%206/6.16.lisp
lisp
(format t "~s = ~s~%" '(union '(LET US SEE) nil) (union '(LET US SEE) nil))
b0dfd1b55db6024fae51fca29ca816a9bf3a24e12a682889fcf920b8fcc9c4a9
metaocaml/ber-metaocaml
warnings.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/utils/warnings.mli
ocaml
************************************************************************ OCaml ...
Pierre Weis & & Damien Doligez , INRIA Rocquencourt Copyright 1998 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the type loc = { loc_start: Lexing.position; loc_end: Lexing.position; loc_ghost: bool; } ...
429827a39588320934527d28ba7531af4b6929db277a78b6e4b11f60f173ad43
winterland1989/mysql-haskell
Auth.hs
# LANGUAGE CPP # {-# OPTIONS_GHC -funbox-strict-fields #-} | Module : Database . MySQL.Protocol . Auth Description : MySQL Auth Packets Copyright : ( c ) Winterland , 2016 License : BSD Maintainer : Stability : experimental Portability : PORTABLE Auth related packet . Module ...
null
https://raw.githubusercontent.com/winterland1989/mysql-haskell/d93caffe0991e1090a3854acff355ff0ea6075c7/Database/MySQL/Protocol/Auth.hs
haskell
# OPTIONS_GHC -funbox-strict-fields # ------------------------------------------------------------------------------ 0x00 this will issue an unused warning, see the notes below This is different with the MySQL document here The doc said we should expect a MAX(13, length of auth-plugin-data - 8) length bytes, but d...
# LANGUAGE CPP # | Module : Database . MySQL.Protocol . Auth Description : MySQL Auth Packets Copyright : ( c ) Winterland , 2016 License : BSD Maintainer : Stability : experimental Portability : PORTABLE Auth related packet . Module : Database.MySQL.Protocol.Auth Descripti...
ee6dd4d13673c618179cfb69a580580028ba86d18ee2a2e8a602571223a3dd5a
racket/rackunit
text-ui-test.rkt
;;; Time - stamp : < 2010 - 03 - 29 13:56:54 > ;;; Copyright ( C ) 2005 by . ;;; ;;; This library is free software; you can redistribute it ;;; and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 2.1 of the License , or ( at...
null
https://raw.githubusercontent.com/racket/rackunit/2e6e1b8f2f3a79fdf8dff0caddb23f50aa873ff0/rackunit-test/tests/rackunit/text-ui-test.rkt
racket
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser either version 2.1 of the License , or ( at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of M...
Time - stamp : < 2010 - 03 - 29 13:56:54 > Copyright ( C ) 2005 by . General Public License as published by the Free Software write to the Free Software Foundation , Inc. , 59 Temple Place , Suite 330 , Boston , MA 02111 - 1307 USA Author : < > #lang racket/base (require racket/list rac...
2b015215e36f103bd2897775e1b416ec787014e13a855745177c958186f325bd
pedestal/pedestal
server.clj
(ns pedestallambda.server (:gen-class for -main method in the Uberjar :methods [^:static [handler [Object com.amazonaws.services.lambda.runtime.Context] Object]]) ; for the AWS Lambda/APIGW hook (:require [io.pedestal.http :as server] [io.pedestal.http.aws.lambda.utils :as lambda] [io....
null
https://raw.githubusercontent.com/pedestal/pedestal/d20065013abf5d3793ae5301e18a2398707fa2a9/samples/aws-codestar-lambda/src/pedestallambda/server.clj
clojure
for the AWS Lambda/APIGW hook This is an adapted service map, that can be started and stopped From the REPL you can call server/start and server/stop on this service start with production configuration do not block thread that starts web server Routes can be a function that resolve routes, we can use this to se...
(ns pedestallambda.server (:gen-class for -main method in the Uberjar (:require [io.pedestal.http :as server] [io.pedestal.http.aws.lambda.utils :as lambda] [io.pedestal.http.route :as route] [pedestallambda.service :as service]) (:import (com.amazonaws.services.lambda.runtim...
d04048e646089b708c8deb74be71f4cf83602f65e4d0e12b7bdb836ce9a6c97b
melange-re/melange
record_attributes_check.ml
Copyright ( C ) 2019- , Authors of ReScript * * 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 ) any later vers...
null
https://raw.githubusercontent.com/melange-re/melange/246e6df78fe3b6cc124cb48e5a37fdffd99379ed/jscomp/core/record_attributes_check.ml
ocaml
use coll to make check a bit looser allow cases like [ x : int [@as "x"]]
Copyright ( C ) 2019- , Authors of ReScript * * 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 ) any later vers...
2116b884a706ef68ae040225806cae98a5ccf6b4013a1a50ab8cd1d170bb45d9
OCamlPro/alt-ergo
numsNumbers.ml
(******************************************************************************) (* *) (* The Alt-Ergo theorem prover *) Copyright ( C ) 2006 - 2013 ...
null
https://raw.githubusercontent.com/OCamlPro/alt-ergo/291523151417f4cd112744d740b58ab1e8a630b4/src/lib/util/numsNumbers.ml
ocaml
**************************************************************************** The Alt-Ergo theorem prover ...
Copyright ( C ) 2006 - 2013 ...
34588ea4b66d18dca237bd445dae94485189a2ee38ba36ab2d0ec0d898ff4c7a
toddmohney/json-api
MetaSpec.hs
module Network.JSONApi.MetaSpec where import Data.Aeson (ToJSON) import qualified Data.Aeson as AE import qualified Data.ByteString.Lazy.Char8 as BS import Data.Maybe (isJust) import Data.Monoid ((<>)) import Data.Text (Text) import GHC.Generics (Generic) import ...
null
https://raw.githubusercontent.com/toddmohney/json-api/8df9ac0959ebca4bab3494780e30321ddc712b0f/test/Network/JSONApi/MetaSpec.hs
haskell
module Network.JSONApi.MetaSpec where import Data.Aeson (ToJSON) import qualified Data.Aeson as AE import qualified Data.ByteString.Lazy.Char8 as BS import Data.Maybe (isJust) import Data.Monoid ((<>)) import Data.Text (Text) import GHC.Generics (Generic) import ...
5c802594ca762d95c24c6c8fe54606e7a9f10fc6521d188cb94ae95c6b6482c9
magnusjonsson/opti
semantic_checker.mli
type result = | Ok | Failed_checks val run : out_channel -> Syntax_tree.specification -> result
null
https://raw.githubusercontent.com/magnusjonsson/opti/dffb7b86b81c8059276b038313ddd88d2e9ff67e/lib/semantic_checker.mli
ocaml
type result = | Ok | Failed_checks val run : out_channel -> Syntax_tree.specification -> result
298f09b5bed0ec90cec676f954773a784a9b17f587f86abe9b35d88a6d5f2721
souenzzo/souenzzo.github.io
server.clj
(ns sample.server (:require [io.pedestal.http :as http] [shadow.cljs.devtools.api :as shadow.api] [shadow.cljs.devtools.server :as shadow.server] [hiccup2.core :as h] [ring.util.mime-type :as mime] [cheshire.core :as json] [cognitect.transit :as ...
null
https://raw.githubusercontent.com/souenzzo/souenzzo.github.io/30a811c4e5633ad07bba1d58d19eb091dac222e9/use-eql/dev/sample/server.clj
clojure
(ns sample.server (:require [io.pedestal.http :as http] [shadow.cljs.devtools.api :as shadow.api] [shadow.cljs.devtools.server :as shadow.server] [hiccup2.core :as h] [ring.util.mime-type :as mime] [cheshire.core :as json] [cognitect.transit :as ...
cf59e20a7b681a82759d0dafbe18aa36fdf280eecf6741d79fa52d43d9aaee96
dvanhorn/oaam
0cfa-specialize-lazy-compile.rkt
#lang racket (provide aval^) (require "ast.rkt" "data.rkt") 0CFA in the AAM style on some hairy Church numeral churning ;; + compilation phase ;; + lazy non-determinism ;; + specialized step & iterator State = ( cons Conf Store ) ;; State^ = (cons (Set Conf) Store) Comp = Store Env Cont - > State^ ;;;;;;;...
null
https://raw.githubusercontent.com/dvanhorn/oaam/79bc68ecb79fef45474a948deec1de90d255f307/code/iswim/0cfa-specialize-lazy-compile.rkt
racket
+ compilation phase + lazy non-determinism + specialized step & iterator State^ = (cons (Set Conf) Store) "Compiled" Machine Compile away interpretive overhead of "ev" states Expr -> Comp State -> State^ Anything else is stuck Anything else is stuck Concrete semantics #;#; wide-step-specialized is mono...
#lang racket (provide aval^) (require "ast.rkt" "data.rkt") 0CFA in the AAM style on some hairy Church numeral churning State = ( cons Conf Store ) Comp = Store Env Cont - > State^ (define (compile e) (match e [(var l x) (λ (σ ρ k) (cons σ (set (co^ k (addr (lookup-env ρ x))))))] [...
3cedb21985e24746d4f2803af436c02940a5ebca3bbf107da579baa81a11377b
toyokumo/tarayo
core_test.clj
(ns tarayo.core-test (:require [clojure.java.io :as io] [clojure.test :as t] [shrubbery.core :as shrubbery] [tarayo.core :as sut] [tarayo.mail.transport :as transport] [tarayo.test-helper :as h] [testdoc.core]) (:import (com.sun.mail.smtp SMTPTransport) jakarta.mail.Session)) (t/deft...
null
https://raw.githubusercontent.com/toyokumo/tarayo/f9b10b85b7bc1a188d808c3955e258916cd0b38a/test/tarayo/core_test.clj
clojure
(ns tarayo.core-test (:require [clojure.java.io :as io] [clojure.test :as t] [shrubbery.core :as shrubbery] [tarayo.core :as sut] [tarayo.mail.transport :as transport] [tarayo.test-helper :as h] [testdoc.core]) (:import (com.sun.mail.smtp SMTPTransport) jakarta.mail.Session)) (t/deft...
b303beb5e5e895bac1c65ba209f88c7525eaa674387d407ecf7284a8ab759614
grin-compiler/ghc-wpc-sample-programs
Monad.hs
------------------------------------------------------------------------ -- | The parser monad used by the operator parser ------------------------------------------------------------------------ {-# LANGUAGE CPP #-} # LANGUAGE DeriveGeneric # module Agda.Syntax.Concrete.Operators.Parser.Monad ( MemoKey(....
null
https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/Agda-2.6.1/src/full/Agda/Syntax/Concrete/Operators/Parser/Monad.hs
haskell
---------------------------------------------------------------------- | The parser monad used by the operator parser ---------------------------------------------------------------------- # LANGUAGE CPP # | Memoisation keys. | The parser monad. | Runs the parser. | Parses a token satisfying the given pr...
# LANGUAGE DeriveGeneric # module Agda.Syntax.Concrete.Operators.Parser.Monad ( MemoKey(..), PrecedenceKey , Parser , parse , sat' , sat , doc , memoise , memoiseIfPrinting , grammar ) where import Data.Hashable import GHC.Generics (Generic) import Text.PrettyPrint.HughesPJ import Agda.Syntax.Co...
54f042fdfae56ffda45cf09cbafa68397836a2f1961845e337b3299b2a3d76ec
larcenists/larceny
dderiv.scm
;;; DDERIV -- Table-driven symbolic derivation. ;;; Returns the wrong answer for quotients. ;;; Fortunately these aren't used in the benchmark. (define (lookup key table) (let loop ((x table)) (if (null? x) #f (let ((pair (car x))) (if (eq? (car pair) key) pair (loop (cdr...
null
https://raw.githubusercontent.com/larcenists/larceny/fef550c7d3923deb7a5a1ccd5a628e54cf231c75/test/Stress/src/dderiv.scm
scheme
DDERIV -- Table-driven symbolic derivation. Returns the wrong answer for quotients. Fortunately these aren't used in the benchmark.
(define (lookup key table) (let loop ((x table)) (if (null? x) #f (let ((pair (car x))) (if (eq? (car pair) key) pair (loop (cdr x))))))) (define properties '()) (define (get key1 key2) (let ((x (lookup key1 properties))) (if x (let ((y (lookup key2 (cdr x))...
424ba3c4dda9b388ccd9fd117bd32553fee70be29c1005fa5e8bc41baa20860c
caribou/caribou-core
development.clj
{:logging {:loggers [{:type :stdout :level :debug} ;; {:type :remote :host "beast.local" :level :debug} ;; {:type :file :file "caribou-logging.out" :level :debug} ]} :app {:use-database true} :database {:classname "org.h2.Driver" :subprotoc...
null
https://raw.githubusercontent.com/caribou/caribou-core/6ebd9db4e14cddb1d6b4e152e771e016fa9c55f6/resources/config/development.clj
clojure
{:type :remote :host "beast.local" :level :debug} {:type :file :file "caribou-logging.out" :level :debug}
{:logging {:loggers [{:type :stdout :level :debug} ]} :app {:use-database true} :database {:classname "org.h2.Driver" :subprotocol "h2" :protocol "file" :path "./" :database "caribou_development" :host "localh...
97bea3093534f4cc7fbdc5f39b17e1135ca0639a2b3c05a3987d3ede12131e09
darrenldl/stramon
version_string.ml
let s = "0.3.1"
null
https://raw.githubusercontent.com/darrenldl/stramon/59c3ccab3d02c836ce6bef80d9c736527363bfd6/bin/version_string.ml
ocaml
let s = "0.3.1"
da573d3bc20ed0280a180c4b447bc1dd646db7d8fcbf7e0f4887d747357797d8
hdbc/convertible
Instances.hs
Copyright ( C ) 2009 - 2011 < > All rights reserved . For license and copyright information , see the file LICENSE Copyright (C) 2009-2011 John Goerzen <> All rights reserved. For license and copyright information, see the file LICENSE -} | Module : Data . Convertible . Instances Copy...
null
https://raw.githubusercontent.com/hdbc/convertible/c3829311b810f12f1fffe9d97085e405ab5598f1/Data/Convertible/Instances.hs
haskell
Copyright ( C ) 2009 - 2011 < > All rights reserved . For license and copyright information , see the file LICENSE Copyright (C) 2009-2011 John Goerzen <> All rights reserved. For license and copyright information, see the file LICENSE -} | Module : Data . Convertible . Instances Copy...
8673cd2d595755c6cbd3e087f6ec7977bd84449a7a80d675022e2560855276c7
haskell-works/hw-koans
Start.hs
module Koan.Start where enrolled :: Bool enrolled = True meaningOfLife :: Int meaningOfLife = 42
null
https://raw.githubusercontent.com/haskell-works/hw-koans/a807e72513d91ddf1c8aa445371b94bb169f22fd/solution/Koan/Start.hs
haskell
module Koan.Start where enrolled :: Bool enrolled = True meaningOfLife :: Int meaningOfLife = 42
d27c98b9f94dc31504ba5a943d4f3cbd7d221d1a5db565daf98af839473062ec
davidkellis/stocktrader_clojure
averagebands.clj
(ns averagebands (:use net.jeffhui.mongodb ga.ga strategyutils [pricehistory :only (price-close price-close-seq load-price-histories price-history-contains?)] [portfolio :only (buy-amap sell-all hold-shares?)] [schedule :only (soonest-scheduled-time reverse-scheduled-time-serie...
null
https://raw.githubusercontent.com/davidkellis/stocktrader_clojure/804cc2e94eb83c6fa9e6979eab37780722cf4b06/averagebands.clj
clojure
if the last-price isn't available, use the current price forward-price-seq (:forward-price-seq current-state) this SMA includes the most recent price NOTE: n-period-prices line holds a reference to the head of a lazy sequence! ma (mean n-period-prices) The following conditions are mutually exclusive; so we use (c...
(ns averagebands (:use net.jeffhui.mongodb ga.ga strategyutils [pricehistory :only (price-close price-close-seq load-price-histories price-history-contains?)] [portfolio :only (buy-amap sell-all hold-shares?)] [schedule :only (soonest-scheduled-time reverse-scheduled-time-serie...
24a192ff84a4346b1bff91eea574fc5ce9077a360b3bc93d0d363678fc2036b2
arianvp/crdt
Fold.hs
# LANGUAGE ExistentialQuantification # module CRDT.Fold where import Algebra.Lattice import Control.Applicative import Data.List (foldl') import Data.Monoid import Data.Strict.Tuple import Prelude hiding (sum, length) Allows us to effeciently fold over bounded join semilattices data Fold a b = forall w. (BoundedJoi...
null
https://raw.githubusercontent.com/arianvp/crdt/3cad584da0a89623d061bc9cf9f7bf8e23b6c1c5/src/CRDT/Fold.hs
haskell
# LANGUAGE ExistentialQuantification # module CRDT.Fold where import Algebra.Lattice import Control.Applicative import Data.List (foldl') import Data.Monoid import Data.Strict.Tuple import Prelude hiding (sum, length) Allows us to effeciently fold over bounded join semilattices data Fold a b = forall w. (BoundedJoi...
a3288c80128ede79016fa65b072de016bd594f7b9d4c891553a4f01cdc5f9a87
inaimathi/clj
syntax.lisp
(in-package :clj) ;;;;;;;;;; Maps (defun alist->map (alist &key equality) (let ((equality (or equality (if (map-type? *type*) (equality-function (equality-of (second *type*))) #'==)))) (loop with dict = (cl-hamt:empty-dict :test equality) for (k . v) in alist do (setf dict (cl-hamt:dict-...
null
https://raw.githubusercontent.com/inaimathi/clj/eb7058632d5592c4f56dc9f929939defd5391649/src/syntax.lisp
lisp
Maps Sets String Templates
(in-package :clj) (defun alist->map (alist &key equality) (let ((equality (or equality (if (map-type? *type*) (equality-function (equality-of (second *type*))) #'==)))) (loop with dict = (cl-hamt:empty-dict :test equality) for (k . v) in alist do (setf dict (cl-hamt:dict-insert dict k v)...
e5c3a30ad1bc7504c52ecd45e7d9d00d8814d66013242b5dc6b78a5430d64694
roman/lc-2018-rock-solid-haskell-services
Types.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE NamedFieldPuns # # LANGUAGE NoImplicitPrelude # module Types where import RIO import qualified RIO.HashMap as HashMap -------------------------------------------------------------------------------- data RemoteMessage = RemoteMessage { remoteMsgPayload :: !Text ...
null
https://raw.githubusercontent.com/roman/lc-2018-rock-solid-haskell-services/c964beba5ddc50bb586e02b14d8d89128f17a53f/5-web-crawl/src/Types.hs
haskell
# LANGUAGE OverloadedStrings # ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ----------------------------------------------------...
# LANGUAGE NamedFieldPuns # # LANGUAGE NoImplicitPrelude # module Types where import RIO import qualified RIO.HashMap as HashMap data RemoteMessage = RemoteMessage { remoteMsgPayload :: !Text , deleteRemoteMsg :: !(IO ()) } instance Display RemoteMessage where display (RemoteMessage {remoteMsgPayload}...
0e96eed1d4d5b90a8385ce7d6ff4e675238fe97db793aee679993bc5c97c31bd
solita/mnt-teet
user.clj
(ns user (:require [figwheel.main.api :as fig])) (fig/start "dev")
null
https://raw.githubusercontent.com/solita/mnt-teet/7a5124975ce1c7f3e7a7c55fe23257ca3f7b6411/app/frontend/dev/user.clj
clojure
(ns user (:require [figwheel.main.api :as fig])) (fig/start "dev")
82704f4df24e2809d694ce409fd5f6c4860fc49fcd1fcf66d3ecc93be9d82d97
racket/plot
snip3d.rkt
#lang racket/base (require racket/gui/base racket/class racket/match plot/private/common/math plot/private/common/parameters (submod plot/private/common/plotmetrics untyped) "worker-thread.rkt" "snip.rkt") (provide 3d-plot-snip% make-3d-plot-snip) (define show-rotate-mess...
null
https://raw.githubusercontent.com/racket/plot/f589ef63b3b0272b452dc16b9164ddc2f05a6a18/plot-gui-lib/plot/private/gui/snip3d.rkt
racket
#lang racket/base (require racket/gui/base racket/class racket/match plot/private/common/math plot/private/common/parameters (submod plot/private/common/plotmetrics untyped) "worker-thread.rkt" "snip.rkt") (provide 3d-plot-snip% make-3d-plot-snip) (define show-rotate-mess...
bac60a0ad8c6652517d1be79e6491559995e59bdbbcbce394260891178cbdf8c
wdebeaum/DeepSemLex
streak.lisp
;;;; ;;;; W::streak ;;;; (define-words :pos W::V :TEMPL AGENT-FORMAL-XP-TEMPL :words ( (W::streak (SENSES ((meta-data :origin "verbnet-1.5" :entry-date 20051219 :change-date nil :comments nil :vn ("run-51.3.2") :wn ("streak%2:38:00" "streak%2:38:01")) (LF-PARENT ONT::move-rapidly) (TEMPL agent-temp...
null
https://raw.githubusercontent.com/wdebeaum/DeepSemLex/ce0e7523dd2b1ebd42b9e88ffbcfdb0fd339aaee/trips/src/LexiconManager/Data/new/streak.lisp
lisp
W::streak like stroll,walk
(define-words :pos W::V :TEMPL AGENT-FORMAL-XP-TEMPL :words ( (W::streak (SENSES ((meta-data :origin "verbnet-1.5" :entry-date 20051219 :change-date nil :comments nil :vn ("run-51.3.2") :wn ("streak%2:38:00" "streak%2:38:01")) (LF-PARENT ONT::move-rapidly) ) ) ) ))
782efa252d517b30f5bcd3d7ac7d947c48a1eca6ff9c5adbd823fa1bc2223734
bytekid/mkbtt
control.mli
Copyright 2010 * GNU Lesser General Public License * * This file is part of MKBtt . * * 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 (...
null
https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/mascott/src/control.mli
ocaml
** VALUES ************************************************************
Copyright 2010 * GNU Lesser General Public License * * This file is part of MKBtt . * * 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 (...
9c072c6934025989b9460db53cc9462b81a209723d802967bc9fc6b0f8460771
fp-works/2019-winter-Haskell-school
SExpr.hs
# OPTIONS_GHC -Wall # CIS 194 HW 11 -} module SExpr where import AParser import Control.Applicative import Data.Char ------------------------------------------------------------ 1 . Parsing repetitions ------------------------------------------------------------ zeroOrMore :: Parser a -> Parser [a] zeroOrMor...
null
https://raw.githubusercontent.com/fp-works/2019-winter-Haskell-school/823b67f019b9e7bc0d3be36711c0cc7da4eba7d2/cis194/week11/tien/src/SExpr.hs
haskell
---------------------------------------------------------- ---------------------------------------------------------- ---------------------------------------------------------- ---------------------------------------------------------- ---------------------------------------------------------- -------------------------...
# OPTIONS_GHC -Wall # CIS 194 HW 11 -} module SExpr where import AParser import Control.Applicative import Data.Char 1 . Parsing repetitions zeroOrMore :: Parser a -> Parser [a] zeroOrMore p = oneOrMore p <|> pure [] oneOrMore :: Parser a -> Parser [a] oneOrMore p = (:) <$> p <*> zeroOrMore p 2 . Utilit...
8df2a210ac320c9cfcecb6f2cebce7e6a131986d99e72f875b0cf93924d856db
herd/herdtools7
memOrderOrAnnot.ml
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/b86aec8db64f8812e19468893deb1cdf5bbcfb83/lib/memOrderOrAnnot.ml
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2016 - present Institut National de Recherche en Informatique et This software is governed by the CeCILL - B license under French law and modify and/ or redistribu...
4759a8c415d214516ff1dd76eb81ac1ab601a530419b20d137d704f867d57a5d
racket/math
parameters.rkt
#lang typed/racket/base (require racket/future) (provide max-math-threads dft-convention dft-inverse-convention) (: max-math-threads (Parameterof Positive-Integer)) (define max-math-threads (make-parameter (max 1 (processor-count)))) (: dft-convention (Parameterof (List Real Real))) (define dft-co...
null
https://raw.githubusercontent.com/racket/math/dcd2ea1893dc5b45b26c8312997917a15fcd1c4a/math-lib/math/private/parameters.rkt
racket
#lang typed/racket/base (require racket/future) (provide max-math-threads dft-convention dft-inverse-convention) (: max-math-threads (Parameterof Positive-Integer)) (define max-math-threads (make-parameter (max 1 (processor-count)))) (: dft-convention (Parameterof (List Real Real))) (define dft-co...
dc256277090f380a0e671ae528a44173c71f310d5dfb38486d4954bdbac03cba
jaredly/belt
belt_internalBuckets.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/jaredly/belt/4d07f859403fdbd3fbfc5a9547c6066d657a2131/belt_src/belt_internalBuckets.ml
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with * Adapted by Authors of BuckleScript 2...
3338d930f8a8da9673406c580d874e8fe33412b1542b5c5b9db137c338aa4a30
lilyball/projecteuler-ocaml
prob11.ml
In the 2020 grid below , four numbers along a diagonal line have been underlined . 08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08 49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00 81 49 31 73 55 79 14 29 93 71 40 67 53 88 30 03 49 13 36 65 52 70 95 23 04 60 11 42 69 2...
null
https://raw.githubusercontent.com/lilyball/projecteuler-ocaml/a88ed8355b565ad0726cfcac4916d2b80512da7a/prob11.ml
ocaml
In the 2020 grid below , four numbers along a diagonal line have been underlined . 08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08 49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00 81 49 31 73 55 79 14 29 93 71 40 67 53 88 30 03 49 13 36 65 52 70 95 23 04 60 11 42 69 2...
a85729795a7ef1da56f1ea74aecc40eff7d7e9a7300bc3ff74e8ccaa9ede77ab
hellonico/origami-fun
matching.clj
(ns opencv4.matching (:require [opencv4.utils :as u] [opencv4.colors.rgb :as color] [opencv4.core :refer :all])) ; ; Template matching in opencv does a pixel for pixel comparison ; so usually it is not very strong to image deformation. ; Still it is a technique worth to know to find template in an image ; ;...
null
https://raw.githubusercontent.com/hellonico/origami-fun/80117788530d942eaa9a80e2995b37409fa24889/test/opencv4/matching.clj
clojure
Template matching in opencv does a pixel for pixel comparison so usually it is not very strong to image deformation. Still it is a technique worth to know to find template in an image load the image and the template find the match find the best match draw the match show the image
(ns opencv4.matching (:require [opencv4.utils :as u] [opencv4.colors.rgb :as color] [opencv4.core :refer :all])) (def image (imread "resources/images/matching/lena.png")) (def template (imread "resources/images/matching/lips.png")) (def result (new-mat)) (match-template image template result TM_CCOEFF) (no...
0e9e027afe7f9d8dc99951ed53ae9c854a3616d492984b6f9eb1d50104454bfe
alaricsp/chicken-scheme
module-tests-compiled.scm
;;;; module-tests-compiled.scm (include "test.scm") (test-begin "modules/compiled") ;; inlines where walked twice (once for extracting mutable constants) ;; and then when expanded, this caused inline function names to be ;; aliased/renamed twice - also, aliasing in syntax-defs could make ;; inline func unrecogniza...
null
https://raw.githubusercontent.com/alaricsp/chicken-scheme/1eb14684c26b7c2250ca9b944c6b671cb62cafbc/tests/module-tests-compiled.scm
scheme
module-tests-compiled.scm inlines where walked twice (once for extracting mutable constants) and then when expanded, this caused inline function names to be aliased/renamed twice - also, aliasing in syntax-defs could make inline func unrecognizable for canonicalizer. here, the identical names of alias/real id pai...
(include "test.scm") (test-begin "modules/compiled") (module m1 (f1) (import scheme chicken) (define-inline (bar x) (cons x '(foo))) (define-syntax s1 (syntax-rules () ((_ x) (list (bar x))))) (define (f1 x) (s1 x))) (import m1) (test-equal "inline in syntax" (f1 'ok) '((ok foo))) modules w...
791a7135aaa42b4fbeb331b7ee3f36553895989a53595baa8ecaa9eb6a1943fd
mikewin/cspbox-trading
market_direction_filter.clj
(ns cspbox.trading.ind.market-direction-filter (:require [cspbox.trading.ind.spec :refer [moving-linear-regression channel]] [cspbox.trading.ind.base :refer [make-sma-ind]] [cspbox.runtime.sys.utils.macro :refer [to-map]])) (defn market-direction-filter [{:keys [period]}] (let [direction ...
null
https://raw.githubusercontent.com/mikewin/cspbox-trading/76f9cfb780d5f36e5fbd6d8cec7c978a0e51cb94/src/cspbox/trading/ind/market_direction_filter.clj
clojure
(ns cspbox.trading.ind.market-direction-filter (:require [cspbox.trading.ind.spec :refer [moving-linear-regression channel]] [cspbox.trading.ind.base :refer [make-sma-ind]] [cspbox.runtime.sys.utils.macro :refer [to-map]])) (defn market-direction-filter [{:keys [period]}] (let [direction ...
2bcb35f4b26ec675f905a5c9f3362eb9ee22c36917132f3b29d9afdd047b8c93
janestreet/hardcaml_fixed_point
test_scale_pow2.ml
open! Base open Hardcaml open! Expect_test_helpers_base module Unsigned = Hardcaml_fixed_point.Unsigned (Bits) module Signed = Hardcaml_fixed_point.Signed (Bits) let sexp_of_unsigned x = [%sexp (x, Unsigned.to_float x : Unsigned.t * float)] let%expect_test "unsigned multiply/divide by 2" = let f = Unsigned.of_float...
null
https://raw.githubusercontent.com/janestreet/hardcaml_fixed_point/53c72d2c486876239e5739a893eca2213eef7736/test/test_scale_pow2.ml
ocaml
open! Base open Hardcaml open! Expect_test_helpers_base module Unsigned = Hardcaml_fixed_point.Unsigned (Bits) module Signed = Hardcaml_fixed_point.Signed (Bits) let sexp_of_unsigned x = [%sexp (x, Unsigned.to_float x : Unsigned.t * float)] let%expect_test "unsigned multiply/divide by 2" = let f = Unsigned.of_float...
697855c794a47ded6542896dacd155428dc4d043d3ba192a5dfaffba18099bf1
lambdabot/lambdabot
Haskell.hs
module Lambdabot.Plugin.Haskell ( checkPlugin , djinnPlugin , evalPlugin , freePlugin , haddockPlugin , hooglePlugin , instancesPlugin , plPlugin , pointfulPlugin , prettyPlugin , sourcePlugin , typePlugin , undoPlugin , unmtlPlugin , haskellPlugins ...
null
https://raw.githubusercontent.com/lambdabot/lambdabot/de01f362c7a8fc6f85c37e604168dcccb1283a0e/lambdabot-haskell-plugins/src/Lambdabot/Plugin/Haskell.hs
haskell
module Lambdabot.Plugin.Haskell ( checkPlugin , djinnPlugin , evalPlugin , freePlugin , haddockPlugin , hooglePlugin , instancesPlugin , plPlugin , pointfulPlugin , prettyPlugin , sourcePlugin , typePlugin , undoPlugin , unmtlPlugin , haskellPlugins ...
12dc39eb22292e8afd41e8a35433f1873e1d574f9ce7cba84050ece1fd0d2b36
MyDataFlow/ttalk-server
sha.erl
%%%---------------------------------------------------------------------- %%% File : sha.erl Author : < > %%% Purpose : Created : 20 Dec 2002 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2011 ProcessOne %%% %%% This program is free software; you can redistribute it and/or modify it under the t...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/apps/ejabberd/src/sha.erl
erlang
---------------------------------------------------------------------- File : sha.erl Purpose : This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without eve...
Author : < > Created : 20 Dec 2002 by < > ejabberd , Copyright ( C ) 2002 - 2011 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public License Founda...
7b7e8893725e4ab9b05583fc85136b434d06e882a325896dd1591c1485dfc9b2
liangjingyang/everrank
user_default.erl
%%---------------------------------------------------- %% Erlang模块热更新到所有线路(包括server的回调函数,如果对state有影响时慎用) %% 调试:ud(mod_xx | [mod_xx, ...]) %% 打开相应mod的?DEBUG调试宏 uud(mod_xx | [ mod_xx , ... ] ) % % 关闭相应mod的?DEBUG宏 %% %% 检查:uch() %% 列出前5分钟内编译过的文件 uch(N ) ...
null
https://raw.githubusercontent.com/liangjingyang/everrank/d4d2b86680117304f0ce98c1da5dd71728cc7d02/src/everlib/src/user_default.erl
erlang
---------------------------------------------------- Erlang模块热更新到所有线路(包括server的回调函数,如果对state有影响时慎用) 调试:ud(mod_xx | [mod_xx, ...]) %% 打开相应mod的?DEBUG调试宏 % 关闭相应mod的?DEBUG宏 检查:uch() %% 列出前5分钟内编译过的文件 % 列出前N分钟内编译过的文件 % 更新前5分钟内编译过的文件 % uu([mod_xx, ...]) ...
@author -module(user_default). -compile(export_all). -include_lib("kernel/include/file.hrl"). -define(UPRINT(Format), io:format(Format++"~n", [])). -define(UPRINT(Format, Args), io:format(Format++"~n", Args)). -define(NONE, none). -define(COMPILE_OPT, [ {i, "."}, {i, "../"}, {...
81fe20394f9a4c1bf63094ae803ea8493841511a537b71d87dee1045db8ebfa6
jiangpengnju/htdp2e
intervals_sample_UFO.v2.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 intervals_sample_UFO.v2) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor rep...
null
https://raw.githubusercontent.com/jiangpengnju/htdp2e/d41555519fbb378330f75c88141f72b00a9ab1d3/fixed-size-data/intervals-enumerations-itemizations/intervals_sample_UFO.v2.rkt
racket
about the language level of this file in a form that our tools can easily process. Sample Problem: Design a program that simulates the descent of a UFO. Add a status line that say "descending" when the UFO's height is above It swithes to "closing in" below that. And finally, when the UFO has reached the bottom of ...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname intervals_sample_UFO.v2) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) one third of the height of the canvas . (requ...
43912866615b19eaeb133d6f2ed0af67e742965c8a076040f555a231c4d46dfa
NorfairKing/smos
Gen.hs
# OPTIONS_GHC -fno - warn - orphans # module Smos.Sync.Client.DirForest.Gen where import Data.GenValidity import Smos.API.Gen () import Smos.Sync.Client.DirForest instance GenValid a => GenValid (DirForest a) where genValid = genValidStructurally shrinkValid = shrinkValidStructurally instance GenValid a => GenV...
null
https://raw.githubusercontent.com/NorfairKing/smos/f72b26c2e66ab4f3ec879a1bedc6c0e8eeb18a01/smos-sync-client-gen/src/Smos/Sync/Client/DirForest/Gen.hs
haskell
# OPTIONS_GHC -fno - warn - orphans # module Smos.Sync.Client.DirForest.Gen where import Data.GenValidity import Smos.API.Gen () import Smos.Sync.Client.DirForest instance GenValid a => GenValid (DirForest a) where genValid = genValidStructurally shrinkValid = shrinkValidStructurally instance GenValid a => GenV...
5bb45fd2cc6c69709588c685f4f59fa43623ad8bcf0951348b51e7398ca9f623
ofmooseandmen/jord
Main.hs
module Main where import Criterion.Main import qualified GeodesicBG import qualified GeodeticBG import qualified GreatCircleBG import qualified KinematicsBG import qualified PositionsBG main :: IO () main = defaultMain [ GeodesicBG.benchmark , GeodeticBG.benchmark , GreatCircleBG.benchmar...
null
https://raw.githubusercontent.com/ofmooseandmen/jord/9acd8d9aec817ce05de6ed1d78e025437e1193bf/benchmarks/Main.hs
haskell
module Main where import Criterion.Main import qualified GeodesicBG import qualified GeodeticBG import qualified GreatCircleBG import qualified KinematicsBG import qualified PositionsBG main :: IO () main = defaultMain [ GeodesicBG.benchmark , GeodeticBG.benchmark , GreatCircleBG.benchmar...
bc8acc022423e61e55d0c1a897f9f8cb359f794c69e721040a5cf24e84e386b4
HaskellZhangSong/Introduction_to_Haskell_2ed_source
LabelTree.hs
import Control.Monad.State data Tree a = Leaf a | Node (Tree a) a (Tree a) deriving (Show,Eq) increase :: State Int Int increase = state $ \i -> (i,i+1) ntAux :: Tree a -> State Int (Tree (a,Int)) ntAux (Leaf a) = do nl <- increase return (Leaf (a,nl)) ntAux (Node l n r) ...
null
https://raw.githubusercontent.com/HaskellZhangSong/Introduction_to_Haskell_2ed_source/140c50fdccfe608fe499ecf2d8a3732f531173f5/C12/LabelTree.hs
haskell
import Control.Monad.State data Tree a = Leaf a | Node (Tree a) a (Tree a) deriving (Show,Eq) increase :: State Int Int increase = state $ \i -> (i,i+1) ntAux :: Tree a -> State Int (Tree (a,Int)) ntAux (Leaf a) = do nl <- increase return (Leaf (a,nl)) ntAux (Node l n r) ...
bcce0383b9805a665e0c8731d60100b38ac27f8504f9b14c7c43c6044fe2a808
unison-code/unison
Liveness.hs
| Copyright : Copyright ( c ) 2016 , RISE SICS AB License : BSD3 ( see the LICENSE file ) Maintainer : Hoopl - based liveness pass . Copyright : Copyright (c) 2016, RISE SICS AB License : BSD3 (see the LICENSE file) Maintainer : Hoopl-based liveness pass. -} Main authors : ...
null
https://raw.githubusercontent.com/unison-code/unison/9f8caf78230f956a57b50a327f8d1dca5839bf64/src/unison/src/Unison/Graphs/Hoopl/Liveness.hs
haskell
# LANGUAGE GADTs # | Liveness analysis | Tells how to add new facts to old facts | Transfer function of an instruction | Gives a map from blocks to their (live-in, live-out) temporaries | Gives a map from in-delimiter nodes to their live-in temporaries
| Copyright : Copyright ( c ) 2016 , RISE SICS AB License : BSD3 ( see the LICENSE file ) Maintainer : Hoopl - based liveness pass . Copyright : Copyright (c) 2016, RISE SICS AB License : BSD3 (see the LICENSE file) Maintainer : Hoopl-based liveness pass. -} Main authors : ...
84bea0f0e5c4cb4625be21a07f7634f2544cea006f51d3d03844ee9fe1fe1c7f
rurban/clisp
petal.lisp
Petal . ;;; Adapted from -repository/ai/lang/lisp/gui/clx/clx_demo.cl by... Copyright ( C ) 2007 - 2008 < > This is free software , distributed under the GNU GPL v2 + (in-package :clx-demos) ;;; Fast sine constants: (defconstant d360 #o5500) (defconstant d270 #o4160) (defconstant d180 #o2640) (defconstant ...
null
https://raw.githubusercontent.com/rurban/clisp/75ed2995ff8f5364bcc18727cde9438cca4e7c2c/modules/clx/new-clx/demos/petal.lisp
lisp
Adapted from -repository/ai/lang/lisp/gui/clx/clx_demo.cl by... Fast sine constants: Miscellaneous petal hackery. the meat!
Petal . Copyright ( C ) 2007 - 2008 < > This is free software , distributed under the GNU GPL v2 + (in-package :clx-demos) (defconstant d360 #o5500) (defconstant d270 #o4160) (defconstant d180 #o2640) (defconstant d90 #o1320) (defconstant vecmax 2880) (defconstant sin-array '#(#o0 #o435 #o1073 #o1531 #o...
c6d45a9a143ed2e2cebdd9793d5d5fbc344327c0eb2dc045dbc7e332415c6269
justinethier/cyclone
find-direct-rec-calls.scm
(import (scheme base) (scheme cyclone ast) (scheme cyclone util) (scheme cyclone pretty-print) (scheme write) (srfi 2) ) (define (find-direct-recursive-calls exp) ;; Verify the continuation is simple and there is no closure allocation (define (check-cont k) (cond ((ref? k) #t) ...
null
https://raw.githubusercontent.com/justinethier/cyclone/a1c2a8f282f37ce180a5921ae26a5deb04768269/tests/debug/find-direct-rec-calls.scm
scheme
Verify the continuation is simple and there is no closure allocation Very conservative right now Reject if there are nested functions (scan (if->condition exp) def-sym) ;; Not a tail call TEST code:
(import (scheme base) (scheme cyclone ast) (scheme cyclone util) (scheme cyclone pretty-print) (scheme write) (srfi 2) ) (define (find-direct-recursive-calls exp) (define (check-cont k) (cond ((ref? k) #t) (else #f))) (define (check-args args) (define (check exp) ...
4b1d319f59c22dde276d24c2267d8241f936825dbf816f5d5fecaae31983a3ec
logicmoo/wam_common_lisp
requests.lsp
-*- Mode : LISP ; Syntax : Common - lisp ; Package : XLIB ; Base : 10 ; Lowercase : Yes -*- ;;; TEXAS INSTRUMENTS INCORPORATED ;;; P.O. BOX 2909 AUSTIN , TEXAS 78769 ;;; Copyright ( C ) 1987 Texas Instruments Incorporated . ;;; ;;; Permission is granted to any individual or institution to use,...
null
https://raw.githubusercontent.com/logicmoo/wam_common_lisp/4396d9e26b050f68182d65c9a2d5a939557616dd/prolog/wam_cl/src/clx/requests.lsp
lisp
Syntax : Common - lisp ; Package : XLIB ; Base : 10 ; Lowercase : Yes -*- P.O. BOX 2909 Permission is granted to any individual or institution to use, copy, modify, and distribute this software, provided that this complete copyright and permission notice is maintained, intact, in all copies and supporting ...
TEXAS INSTRUMENTS INCORPORATED AUSTIN , TEXAS 78769 Copyright ( C ) 1987 Texas Instruments Incorporated . Texas Instruments Incorporated provides this software " as is " without (in-package :xlib) (defun create-window (&key window (parent (required-arg parent)) (x (require...
e76cb3ef8589cd9f8e1637cc44043ed11ee61f81208e49b6809284f882a13781
williamleferrand/accretio
ys_random.ml
* Accretio is an API , a sandbox and a runtime for social playbooks * * Copyright ( C ) 2015 * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation , either version 3 o...
null
https://raw.githubusercontent.com/williamleferrand/accretio/394f855e9c2a6a18f0c2da35058d5a01aacf6586/library/server/ys_random.ml
ocaml
* Accretio is an API , a sandbox and a runtime for social playbooks * * Copyright ( C ) 2015 * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation , either version 3 o...
4584b43533d95c82b1c41fa418e6553db8666bae532bc4a7ff12647386757b6f
idontgetoutmuch/HasBayes
TestFu.hs
{-# LANGUAGE ScopedTypeVariables, NoMonomorphismRestriction #-} import Data.Random import Data.RVar import Control.Monad.Trans as MTL import System.Random import Control.Monad.State import System.Random.MWC (create) import Debug.Trace logNormal :: Double -> Double -> RVar Double logNormal mu sigmaSq = do x <- no...
null
https://raw.githubusercontent.com/idontgetoutmuch/HasBayes/43c7d09b8ee839dba5ed8f18e17110135d20b93d/TestFu.hs
haskell
# LANGUAGE ScopedTypeVariables, NoMonomorphismRestriction # n = 11112
import Data.Random import Data.RVar import Control.Monad.Trans as MTL import System.Random import Control.Monad.State import System.Random.MWC (create) import Debug.Trace logNormal :: Double -> Double -> RVar Double logNormal mu sigmaSq = do x <- normal mu sigmaSq return (exp x) main = do mwc <- create ...
e393e978903f9354b28aee4faf7042fae1bc8b2628bba55093e9d1c0aa211530
Clozure/ccl-tests
cl-test-package.lsp
;-*- Mode: Lisp -*- Author : Created : Sat Mar 14 10:13:21 1998 Contains : CL test case package definition (let* ((name :cl-test) (pkg (find-package name))) (unless pkg (setq pkg (make-package name :use '(:cl :regression-test)))) (let ((*package* pkg)) (shadow '(#:handler-case #:handler...
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/cl-test-package.lsp
lisp
-*- Mode: Lisp -*-
Author : Created : Sat Mar 14 10:13:21 1998 Contains : CL test case package definition (let* ((name :cl-test) (pkg (find-package name))) (unless pkg (setq pkg (make-package name :use '(:cl :regression-test)))) (let ((*package* pkg)) (shadow '(#:handler-case #:handler-bind)) (import '(co...
1a7a4695d385876399cc2aa1c8e61cca43b1a7347e555ea96b3edaf4b9aab83c
simplex-chat/simplex-chat
M20221004_idx_msg_deliveries_message_id.hs
# LANGUAGE QuasiQuotes # module Simplex.Chat.Migrations.M20221004_idx_msg_deliveries_message_id where import Database.SQLite.Simple (Query) import Database.SQLite.Simple.QQ (sql) m20221004_idx_msg_deliveries_message_id :: Query m20221004_idx_msg_deliveries_message_id = [sql| CREATE INDEX idx_msg_deliveries_message...
null
https://raw.githubusercontent.com/simplex-chat/simplex-chat/74421a5f5294ede9ea5390e1198c7f73fa592e18/src/Simplex/Chat/Migrations/M20221004_idx_msg_deliveries_message_id.hs
haskell
# LANGUAGE QuasiQuotes # module Simplex.Chat.Migrations.M20221004_idx_msg_deliveries_message_id where import Database.SQLite.Simple (Query) import Database.SQLite.Simple.QQ (sql) m20221004_idx_msg_deliveries_message_id :: Query m20221004_idx_msg_deliveries_message_id = [sql| CREATE INDEX idx_msg_deliveries_message...
2c073f73c1b5798c94590bfffe5d40d801607b92acc4656f6a14f27b16a5fc72
yandex/inet64_tcp
inet64_tcp.erl
Universal tcp driver for inet and address families %%% ( C ) YANDEX LLC , 2015 %%% The Source Code called " inet64_tcp " available at is subject to the terms of the MIT License ( MIT ) ( hereinafter referred to as the " License " ) . %%% The text of the License is the following: %%% The MIT License ( MIT ) ...
null
https://raw.githubusercontent.com/yandex/inet64_tcp/0a157650fd66a54d615c378e95eea69bcf7ecdc8/src/inet64_tcp.erl
erlang
The text of the License is the following: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the follo...
Universal tcp driver for inet and address families ( C ) YANDEX LLC , 2015 The Source Code called " inet64_tcp " available at is subject to the terms of the MIT License ( MIT ) ( hereinafter referred to as the " License " ) . The MIT License ( MIT ) in the Software without restriction , including without ...
d8879edd2ac3ad2ef771d027a291508fd5b917333a6b75fae518d6f2aec2edca
tfausak/monadoc-5
EtagSpec.hs
module Monadoc.Type.EtagSpec where import qualified Data.Text as Text import qualified Database.SQLite.Simple as Sql import qualified Database.SQLite.Simple.FromField as Sql import qualified Database.SQLite.Simple.Internal as Sql import qualified Database.SQLite.Simple.Ok as Sql import qualified Database.SQLite.Simple...
null
https://raw.githubusercontent.com/tfausak/monadoc-5/5361dd1870072cf2771857adbe92658118ddaa27/src/test/Monadoc/Type/EtagSpec.hs
haskell
module Monadoc.Type.EtagSpec where import qualified Data.Text as Text import qualified Database.SQLite.Simple as Sql import qualified Database.SQLite.Simple.FromField as Sql import qualified Database.SQLite.Simple.Internal as Sql import qualified Database.SQLite.Simple.Ok as Sql import qualified Database.SQLite.Simple...
036b18e8ecc221318eb9de7c977d92ec6378f22753ae4b81c9558e060f01b597
j-mie6/ParsleyHaskell
CommonTest.hs
module Main where import Test.Tasty import qualified CommonTest.Queue as QueueTest import qualified CommonTest.RewindQueue as RewindQueueTest main :: IO () main = defaultMain tests tests :: TestTree tests = testGroup "Common Tests" [ QueueTest.tests , RewindQueueTest.tests ...
null
https://raw.githubusercontent.com/j-mie6/ParsleyHaskell/405df43914d05d3cd376a3928801f7d25742cea3/parsley-core/test/CommonTest.hs
haskell
module Main where import Test.Tasty import qualified CommonTest.Queue as QueueTest import qualified CommonTest.RewindQueue as RewindQueueTest main :: IO () main = defaultMain tests tests :: TestTree tests = testGroup "Common Tests" [ QueueTest.tests , RewindQueueTest.tests ...
e69bed846c92d1a3ac9d7e85b08afc3fbd3e635ba74f8b82c77921df9b88daa5
emqx/emqx-lwm2m
emqx_lwm2m_coap_server.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 EMQ Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the L...
null
https://raw.githubusercontent.com/emqx/emqx-lwm2m/6b02495beebe3b3596c75f730f4e64f3e92dd3a2/src/emqx_lwm2m_coap_server.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2020 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_lwm2m_coap_server). -include("emqx_lwm2m.hrl"). -export([ start/1 , stop/1 ...
350bb1d2abbaf2a475d7c88072d71714f52e230895b578a1a4aa514f2c4b687f
colis-anr/colis-language
cp.mli
(** Symbolic execution of cp *) open SymbolicUtility.ConstraintsCompatibility val name : string val interprete : utility_context -> utility
null
https://raw.githubusercontent.com/colis-anr/colis-language/14b8087fa6323fb817d32c07236a2a084def01a1/src/symbolic/utilities/cp.mli
ocaml
* Symbolic execution of cp
open SymbolicUtility.ConstraintsCompatibility val name : string val interprete : utility_context -> utility
a386a5c0afb712d6e913a4913d9ccb23a3c92fe5b231d032ea2240d623c7e544
diku-kmc/kleenexlang
Functionalization.hs
# LANGUAGE FlexibleContexts # module KMC.SymbolicFST.Functionalization (functionalize) where import Data.Monoid import qualified Data.Set as S import KMC.SymbolicFST import KMC.Theories import Prelude type St q = (q, S.Set q) choice :: (Ord st, Monoid (Rng func)) => FST st p...
null
https://raw.githubusercontent.com/diku-kmc/kleenexlang/d474c6015339c261b2e7bf37061175fd69185baf/src/KMC/SymbolicFST/Functionalization.hs
haskell
# LANGUAGE FlexibleContexts # module KMC.SymbolicFST.Functionalization (functionalize) where import Data.Monoid import qualified Data.Set as S import KMC.SymbolicFST import KMC.Theories import Prelude type St q = (q, S.Set q) choice :: (Ord st, Monoid (Rng func)) => FST st p...