_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
3fba46d7b76af21e0660a428817e813c957a8558dee8f7de572f7d3b99e9e19f
scrintal/heroicons-reagent
currency_euro.cljs
(ns com.scrintal.heroicons.outline.currency-euro) (defn render [] [:svg {:xmlns "" :fill "none" :viewBox "0 0 24 24" :strokeWidth "1.5" :stroke "currentColor" :aria-hidden "true"} [:path {:strokeLinecap "round" :strokeLinejoin "round" ...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/outline/currency_euro.cljs
clojure
(ns com.scrintal.heroicons.outline.currency-euro) (defn render [] [:svg {:xmlns "" :fill "none" :viewBox "0 0 24 24" :strokeWidth "1.5" :stroke "currentColor" :aria-hidden "true"} [:path {:strokeLinecap "round" :strokeLinejoin "round" ...
06597d788929a622c2d39c50502a16c387cef38fe3f1ffb24aa5edb0870b708c
EdAyers/Robotone
Move.hs
module Move where import Control.Applicative import Control.Arrow import Control . Monad . RWS hiding ( msum ) import Control . Monad . Logic hiding ( msum ) import Control.Monad.Trans.List import Control.Monad.Trans.State.Lazy import Control.Monad.Identity hiding (msum) import Control . Monad import Data.Either imp...
null
https://raw.githubusercontent.com/EdAyers/Robotone/1cdcde674a54a47c382fef2b060d50b35361f120/src/Move.hs
haskell
-------------------------------------------------------------------------------------------------- renameFormula :: NextFreeIDState -> Formula -> (Formula, NextFreeIDState) -------------------------------------------------------------------------------------------------- using knowledge of a) inherited hypotheses an...
module Move where import Control.Applicative import Control.Arrow import Control . Monad . RWS hiding ( msum ) import Control . Monad . Logic hiding ( msum ) import Control.Monad.Trans.List import Control.Monad.Trans.State.Lazy import Control.Monad.Identity hiding (msum) import Control . Monad import Data.Either imp...
43170f905aba45e70c255a8bf7f254ce88c2d0cfb6a78cff4b14743a0555a2b9
johnlawrenceaspden/hobby-code
heron2.clj
(defn sum ([] 0) ([x] x) ([x & more ] (+ x (apply sum more)))) (defn average ([] 0) ([x] x) ([x & more] (/ (+ x (apply sum more)) (+ 1 (count more))))) (defn abs [x] (if (< x 0) (- x) x)) (defn close-enough? [u v] (let [tolerance 0.000001] (< (abs (- u v)) tolerance))) (defn fixed-point [f start] (...
null
https://raw.githubusercontent.com/johnlawrenceaspden/hobby-code/48e2a89d28557994c72299962cd8e3ace6a75b2d/hertfordstreet/clojure/heron2.clj
clojure
(defn sum ([] 0) ([x] x) ([x & more ] (+ x (apply sum more)))) (defn average ([] 0) ([x] x) ([x & more] (/ (+ x (apply sum more)) (+ 1 (count more))))) (defn abs [x] (if (< x 0) (- x) x)) (defn close-enough? [u v] (let [tolerance 0.000001] (< (abs (- u v)) tolerance))) (defn fixed-point [f start] (...
e93bbf0de1d0810abca696473f01111aaad5cfdfbb34e9b35b042f72a9fd2d29
TempusMUD/cl-tempus
fido.lisp
(in-package #:tempus) (define-special fido (trigger self ch command vars) (+spec-mob+) (declare (ignore command vars ch)) (when (and (eql trigger 'tick) (awakep self) (not (fighting-of self))) (let ((victim (get-char-random-vis self (in-room-of self)))) (when victim (cas...
null
https://raw.githubusercontent.com/TempusMUD/cl-tempus/c5008c8d782ba44373d89b77c23abaefec3aa6ff/src/specials/fido.lisp
lisp
(in-package #:tempus) (define-special fido (trigger self ch command vars) (+spec-mob+) (declare (ignore command vars ch)) (when (and (eql trigger 'tick) (awakep self) (not (fighting-of self))) (let ((victim (get-char-random-vis self (in-room-of self)))) (when victim (cas...
17091b0d10fea6dab89c930739f5d90671afe38067f9fee3c12d997f40339023
HunterYIboHu/htdp2-solution
ex152-multiply.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 ex153-multiply) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeati...
null
https://raw.githubusercontent.com/HunterYIboHu/htdp2-solution/6182b4c2ef650ac7059f3c143f639d09cd708516/Chapter2/Section10-list-design-recipe/ex152-multiply.rkt
racket
about the language level of this file in a form that our tools can easily process. - 0 - (add1 N) interpretation represents the natural numbers or counting numbers N Number -> Number computes (* n x) without using *
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname ex153-multiply) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) A N is one of : (check-expect (multiply 3 4) (*...
edf9ab00e12b8c3e58a4bbce7337e089452d4524df9a1323c6775444badead9f
samplecount/shake-language-c
PkgConfig.hs
Copyright 2012 - 2013 Samplecount S.L. -- 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 di...
null
https://raw.githubusercontent.com/samplecount/shake-language-c/7eba37910bf711cc4c3fe6e7f065c8108858eea4/src/Development/Shake/Language/C/PkgConfig.hs
haskell
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright 2012 - 2013 Samplecount S.L. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , module Development.Shake.Language.C.PkgConfig ( Options(..) , defaultOptions , pkgConfig , fromConfig ) where import Data.Ch...
f952a9ac86a088238f71b2134c9494ee130e442bbd7dfb7358417c5e135bce8b
TrustInSoft/tis-kernel
cilE.mli
(**************************************************************************) (* *) This file is part of . (* *) is a fork of Frama - C. Al...
null
https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/plugins/value_types/cilE.mli
ocaml
************************************************************************ ...
This file is part of . is a fork of Frama - C. All the differences are : Copyright ( C ) 2016 - 2017 is released under GPLv2 This file is part of Frama - C. Copyright ( C ) 2007 - 2015 ...
f1d30c3561bc2ef6093669b501dbf140bab3553b6736054d5b8b4a4e8d5263d8
ferzcam/tropical-geometry
TPolyhedral.hs
module TGeometry.TPolyhedral (testsPolyhedral) where import Test.Tasty import Test.Tasty.HUnit as HU import Geometry.ConvexHull3 import Geometry.Polyhedral import Data.List import Data.Maybe -- | Should be equal to [(0,0,0),(0,4,0),(4,0,0),(0,0,4),(4,4,0),(0,4,4),(4,0,4),(4,4,4)] cube = fromJust $ convexHull3 [(1,1,...
null
https://raw.githubusercontent.com/ferzcam/tropical-geometry/de366949f28530ac1008c7423122d37488b3b049/test-suite/TGeometry/TPolyhedral.hs
haskell
| Should be equal to [(0,0,0),(0,4,0),(4,0,0),(0,0,4),(4,4,0),(0,4,4),(4,0,4),(4,4,4)] WORKS BUT THE RESULT IS WRONG BECAUSE ORDER NOT ALWAYS MATCHES testAdjacentFacets :: TestTree testAdjacentFacets = HU.testCase "Tests for adjacent facets" $ do adjacentFacets (4,4,4) cube @?= facetsPoint444
module TGeometry.TPolyhedral (testsPolyhedral) where import Test.Tasty import Test.Tasty.HUnit as HU import Geometry.ConvexHull3 import Geometry.Polyhedral import Data.List import Data.Maybe cube = fromJust $ convexHull3 [(1,1,1),(0,0,0),(3,3,3),(0,4,0),(4,0,0),(2,0,2),(2,2,2),(0,0,4),(4,4,0),(0,4,4),(4,0,4),(4,4,4)...
0c442816d9856345faf92e1c66d99c18cdcaf4ff2d202556c58e5cdb67942c9c
alsonkemp/turbinado
Index.hs
module App.Views.HelloWorld.Index where import Turbinado.View markup :: VHtml markup= <div> <% someTextXHtml %> <% someHtml %> <% someHAML %> </div> | These are the raw Turbinado . View . Html style tags someTextXHtml :: VHtml someTextXHtml = do s <- getViewDataValue_u "sample_value" :: View String ...
null
https://raw.githubusercontent.com/alsonkemp/turbinado/da2ba7c3443ddf6a51d1ec5b05cb45a85efc0809/App/Views/HelloWorld/Index.hs
haskell
module App.Views.HelloWorld.Index where import Turbinado.View markup :: VHtml markup= <div> <% someTextXHtml %> <% someHtml %> <% someHAML %> </div> | These are the raw Turbinado . View . Html style tags someTextXHtml :: VHtml someTextXHtml = do s <- getViewDataValue_u "sample_value" :: View String ...
47a5d551412a441a9248619b483d2d24eaf34dc2686dabf7bdf18a559a0c4fc4
tsloughter/kuberl
kuberl_policy_v1beta1_run_as_user_strategy_options.erl
-module(kuberl_policy_v1beta1_run_as_user_strategy_options). -export([encode/1]). -export_type([kuberl_policy_v1beta1_run_as_user_strategy_options/0]). -type kuberl_policy_v1beta1_run_as_user_strategy_options() :: #{ 'ranges' => list(), 'rule' := binary() }. encode(#{ 'ranges' := Ranges, '...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_policy_v1beta1_run_as_user_strategy_options.erl
erlang
-module(kuberl_policy_v1beta1_run_as_user_strategy_options). -export([encode/1]). -export_type([kuberl_policy_v1beta1_run_as_user_strategy_options/0]). -type kuberl_policy_v1beta1_run_as_user_strategy_options() :: #{ 'ranges' => list(), 'rule' := binary() }. encode(#{ 'ranges' := Ranges, '...
008ef0c4e99c5ed488adcedb05cbe2636a0fe3e33c493b26c210e3628d404bd0
MaartenFaddegon/Hoed
Syntax.hs
# LANGUAGE DeriveGeneric # module Syntax(Name, Expr(..), Command(..)) where import Value import Debug.Hoed.Pure type Name = String data Expr = Var Name | Val Value | Uno Op1 Expr | Duo Op2 Expr Expr deriving (Eq, Show, Generic) instance Observable Expr data Command = Skip | Name := Expr | Command :...
null
https://raw.githubusercontent.com/MaartenFaddegon/Hoed/8769d69e309928aab439b22bc3f3dbf5452acc77/examples/afp02Exercises/Compiler/Syntax.hs
haskell
# LANGUAGE DeriveGeneric # module Syntax(Name, Expr(..), Command(..)) where import Value import Debug.Hoed.Pure type Name = String data Expr = Var Name | Val Value | Uno Op1 Expr | Duo Op2 Expr Expr deriving (Eq, Show, Generic) instance Observable Expr data Command = Skip | Name := Expr | Command :...
c0b3d71e3f95848474a44c95de26e8ea56bb0fbf7574208419cc5cc3e6cc7730
roburio/udns
dns_tsig.mli
( c ) 2017 , 2018 , all rights reserved open Dns * DNS signatures val sign : Tsig_op.sign (** [sign ~mac ~max_size name tsig ~key packet buffer] signs the given [buffer] with the provided [key], its [name], the [tsig]. If signing fails, an error may be produced. The result is a buffer and a mac. *) val...
null
https://raw.githubusercontent.com/roburio/udns/585c40933ac3d5eceb351f7edd3f45cf2615a9f8/tsig/dns_tsig.mli
ocaml
* [sign ~mac ~max_size name tsig ~key packet buffer] signs the given [buffer] with the provided [key], its [name], the [tsig]. If signing fails, an error may be produced. The result is a buffer and a mac. * [verify ~mac now packet name ~key tsig buffer] verifies the [buffer] using the provided [tsig], [key...
( c ) 2017 , 2018 , all rights reserved open Dns * DNS signatures val sign : Tsig_op.sign val verify : Tsig_op.verify type s = [ `Key_algorithm of Dnskey.t | `Tsig_creation | `Sign ] val pp_s : s Fmt.t * [ pp_s s ] pretty - prints [ s ] on [ ppf ] . val encode_and_sign : ?proto:proto -> Packet.t -> Ptime.t...
493877ed7ce946f351ee99fc70f2c8d9c2245d13f14917cd5bc6d67ad12d73a9
pixlsus/registry.gimp.org_static
split_studio_legacy_pub_eng_0.scm
Split Studio ver . 3.0r3 Extract masks of light and dark areas of the image and tone them into two different colors . ;Version history: ;================================================================== ver . 0.1а ( September 2009 ) ; - broken script; ;==================================================================...
null
https://raw.githubusercontent.com/pixlsus/registry.gimp.org_static/ffcde7400f402728373ff6579947c6ffe87d1a5e/registry.gimp.org/files/split_studio_legacy_pub_eng_0.scm
scheme
Version history: ================================================================== - broken script; ================================================================== - working script, only with mask extracting; ================================================================== - script's release; =================...
Split Studio ver . 3.0r3 Extract masks of light and dark areas of the image and tone them into two different colors . ver . 0.1а ( September 2009 ) ver . 0.3 ( September 2009 ) ver . 0.5 ( September 2009 ) ver . 0.7 ( September 2009 ) ver . 1.0 ( September 2009 ) ver . 2.0 ( 23th October 2009 ) ver . 2.2 ( 7th December...
edfb86daf06b7f5e69ef6e34ecf06e708f49508f18e6181f4244c87cd4773b02
clj-easy/graalvm-clojure
main.clj
(ns spec-graal.main (:gen-class) (:require [clojure.spec.alpha :as s])) (s/def ::title string?) (defn -main [] (let [title "Spec Graal"] (printf "Hello GraalVM with Spec! Btw, '%s' %s a valid ::title.\n" title (if (s/valid? ::title title) "is" "is NOT"))) (flush))
null
https://raw.githubusercontent.com/clj-easy/graalvm-clojure/5de155ad4f95d5dac97aac1ab3d118400e7d186f/spec/src/spec_graal/main.clj
clojure
(ns spec-graal.main (:gen-class) (:require [clojure.spec.alpha :as s])) (s/def ::title string?) (defn -main [] (let [title "Spec Graal"] (printf "Hello GraalVM with Spec! Btw, '%s' %s a valid ::title.\n" title (if (s/valid? ::title title) "is" "is NOT"))) (flush))
a8696628d78672924c43fe47aa4a9f9a68ad67f243b4248ef1842636fa844984
mfoemmel/erlang-otp
erl2html2.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1997 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/test_server/src/erl2html2.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 1997 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " Some stats ( Sparc5@110Mhz ): 4109 li...
3ffa21ecddabdc2e7e05c88091661e949d842ebf787bf79c4c5b2208bcaa10be
hellonico/origami-dnn
core.clj
(ns origami-dnn.net.core (:require [opencv4.dnn :as dnn] [opencv4.core :refer [new-size new-scalar min-max-loc]])) ; ; COMMON ; (defn blob-from-image [image opts] (let [_opts (merge {:scale 1.0 :size 224 :mean [0.0 0.0 0.0] :swap-rgb false :crop false} opts)] (dnn/blob-from-image image (_...
null
https://raw.githubusercontent.com/hellonico/origami-dnn/f55a32d0d3d528fcf57aaac10cfb20c7998b380c/src/origami_dnn/net/core.clj
clojure
COMMON CLASSIFY not needed
(ns origami-dnn.net.core (:require [opencv4.dnn :as dnn] [opencv4.core :refer [new-size new-scalar min-max-loc]])) (defn blob-from-image [image opts] (let [_opts (merge {:scale 1.0 :size 224 :mean [0.0 0.0 0.0] :swap-rgb false :crop false} opts)] (dnn/blob-from-image image (_opts :scale) ...
0dc552fca8bce1babf42ae50f29f277b1db31cf97fd867fef86592c2debc4b9d
cbaggers/cepl.sdl2
cepl.sdl2.lisp
(in-package :cepl.sdl2) (defvar *initd* nil) ;;====================================================================== ;; api v2 (defgeneric sdl-init (&rest init-flags) (:method (&rest init-flags) (let ((flags (or init-flags :everything))) (unless (sdl2:was-init :everything) (init-sdl2-low-level f...
null
https://raw.githubusercontent.com/cbaggers/cepl.sdl2/6da5a030db5e3579c5a1c5350b1ffb8fc9950e9a/cepl.sdl2.lisp
lisp
====================================================================== api v2 ---------------------------------------------------------------------- ---------------------------------------------------------------------- {TODO} optimize ---------------------------------------------------------------------- ---------...
(in-package :cepl.sdl2) (defvar *initd* nil) (defgeneric sdl-init (&rest init-flags) (:method (&rest init-flags) (let ((flags (or init-flags :everything))) (unless (sdl2:was-init :everything) (init-sdl2-low-level flags) (setf *initd* t))))) (defun init-sdl2-low-level (&rest sdl-init-flag...
dbdca477158ab1303455b89593cdedca1c98bd792aea762cbe0a4c187f3cca13
byorgey/diagrams-play
Wiggle.hs
# LANGUAGE NoMonomorphismRestriction # import Data.List import Diagrams.Backend.Cairo.CmdLine import Diagrams.Prelude wiggle n s off = d blue pts1 <> d green pts2 <> p where dot = circle 0.03 d c = mconcat . map (lw 0 . fc c . (dot#) . moveTo) p = [pts1,pts2] ...
null
https://raw.githubusercontent.com/byorgey/diagrams-play/5362c715db394be6848ff5de1bbe71178e5f173f/Wiggle.hs
haskell
# LANGUAGE NoMonomorphismRestriction # import Data.List import Diagrams.Backend.Cairo.CmdLine import Diagrams.Prelude wiggle n s off = d blue pts1 <> d green pts2 <> p where dot = circle 0.03 d c = mconcat . map (lw 0 . fc c . (dot#) . moveTo) p = [pts1,pts2] ...
9d43aa7f4efbc77738aa675961ce8d0207dcae15772b09ceb92ae292fe099312
gigamonkey/toot
http.lisp
Copyright ( c ) 2004 - 2010 , Dr. . All rights reserved . Copyright ( c ) 2011 , . 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 r...
null
https://raw.githubusercontent.com/gigamonkey/toot/90f3854f2e548c9ad102c53caba834255dfabfa2/http.lisp
lisp
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form m...
Copyright ( c ) 2004 - 2010 , Dr. . All rights reserved . Copyright ( c ) 2011 , . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (in-package :toot) (defgeneric handle-request (handler request...
fe4d26ff19f3570c3b3e8f6cb75643395c2ec50e2476a1a036a079f0fc54bf68
onedata/op-worker
webdav_token_test_SUITE.erl
%%%------------------------------------------------------------------- @author ( C ) 2018 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%%-------------------------------------------------------------------- %%% @doc %%% This module contains tests of webdav helpe...
null
https://raw.githubusercontent.com/onedata/op-worker/b0e4045090b180f28c79d40b9b334d7411ec3ca5/test_distributed/webdav_token_test_SUITE.erl
erlang
------------------------------------------------------------------- -------------------------------------------------------------------- @doc This module contains tests of webdav helper. It focuses on tests of refreshing webdav token. Tests use webdav helper in a "test mode" which is enabled by setting <<"testToke...
@author ( C ) 2018 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . token , they only check whether token TTL has been expired . -module(webdav_token_test_SUITE). -author("Jakub Kudzia"). -include("global_definitions.hrl"). -include("proto/common/credentials.hrl"...
f791ba9da5dba5f4bef9b92b3b877e87b06efcb859af1069dd979c8945d8838e
matterandvoid-space/subscriptions
subs_test.cljs
(ns space.matterandvoid.subscriptions.subs-test (:require [cljs.test :refer [deftest is testing]] [com.fulcrologic.fulcro.application :as fulcro.app] [datascript.core :as d] [com.fulcrologic.fulcro.components :as c] [space.matterandvoid.subscriptions.impl.memoize :refer [memoize-fn]] [space.ma...
null
https://raw.githubusercontent.com/matterandvoid-space/subscriptions/e2b4975fd0746494e7dc1ee83d36f40c6bfa4de3/src/test/space/matterandvoid/subscriptions/subs_test.cljs
clojure
setup a test environment and pass all of the callbacks needed (deftest test-reg-sub-clj-repl
(ns space.matterandvoid.subscriptions.subs-test (:require [cljs.test :refer [deftest is testing]] [com.fulcrologic.fulcro.application :as fulcro.app] [datascript.core :as d] [com.fulcrologic.fulcro.components :as c] [space.matterandvoid.subscriptions.impl.memoize :refer [memoize-fn]] [space.ma...
40192d08d0120a213acdbe2222ade73d6ee567cf4934308f8f40d416ee885d56
egobrain/tq_transform
db_meta.erl
-module(db_meta). -compile({parse_transform, tq_record_transform}). %% Test -field({field, [ {type, binary} ]}). -model([]). -ifdef(TEST). -include_lib("eunit/include/eunit.hrl"). module_meta_test() -> ?MODULE = ?MODULE:'$meta'(module). record_index_meta_test() -> Index = ?MODULE:...
null
https://raw.githubusercontent.com/egobrain/tq_transform/6729f12b1a2fa5ece41ebb15b716c7f8b9360a33/test/src/db_meta.erl
erlang
Test
-module(db_meta). -compile({parse_transform, tq_record_transform}). -field({field, [ {type, binary} ]}). -model([]). -ifdef(TEST). -include_lib("eunit/include/eunit.hrl"). module_meta_test() -> ?MODULE = ?MODULE:'$meta'(module). record_index_meta_test() -> Index = ?MODULE:'$meta'(...
60f7ad291cf0038e1508ec637ee86a5c6a602132a55cd01f23c607c7ab6051c5
supki/ldap-client
SpecHelper.hs
# LANGUAGE CPP # {-# LANGUAGE OverloadedStrings #-} module SpecHelper ( locally , port , dns -- * Users , bulbasaur , ivysaur , venusaur , charmander , charmeleon , charizard , squirtle , wartortle , blastoise , caterpie , metapod , butterfree , pikachu , raichu , vulpix , oddish...
null
https://raw.githubusercontent.com/supki/ldap-client/e69fc50d73b29adcb2dc18cdb149fcc34df37c96/test/SpecHelper.hs
haskell
# LANGUAGE OverloadedStrings # * Users
# LANGUAGE CPP # module SpecHelper ( locally , port , dns , bulbasaur , ivysaur , venusaur , charmander , charmeleon , charizard , squirtle , wartortle , blastoise , caterpie , metapod , butterfree , pikachu , raichu , vulpix , oddish ) where #if __GLASGOW_HASKELL__ < 710 import...
bbe7b1c397bafbb26b64197862258c18d7409d0def12dee706289ca8f066986f
Commonfare-net/macao-social-wallet
transactions_list.clj
Freecoin - digital social currency toolkit part of Decentralized Citizen Engagement Technologies ( D - CENT ) R&D funded by the European Commission ( FP7 / CAPS 610349 ) Copyright ( C ) 2015 Dyne.org foundation Copyright ( C ) 2015 Thoughtworks , Inc. designed , written and maintained by < > ;; Wi...
null
https://raw.githubusercontent.com/Commonfare-net/macao-social-wallet/d3724d6c706cdaa669c59da439fe48b0373e17b7/src/freecoin/handlers/transactions_list.clj
clojure
With contributions by This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See th...
Freecoin - digital social currency toolkit part of Decentralized Citizen Engagement Technologies ( D - CENT ) R&D funded by the European Commission ( FP7 / CAPS 610349 ) Copyright ( C ) 2015 Dyne.org foundation Copyright ( C ) 2015 Thoughtworks , Inc. designed , written and maintained by < > <...
ad381fb7285733e945b84cd47c510dfb938c2c50e3ea98aafbbc79c732b529cc
biocaml/biocaml
msg.mli
(** Consistent printing of errors, warnings, and bugs. An error is a user mistake that prevents continuing program execution, a warning is a milder problem that the program continues to execute through, and a bug is a mistake in the software. *) val err : ?pos:Pos.t -> string -> string val warn : ?pos:Pos.t -> string ...
null
https://raw.githubusercontent.com/biocaml/biocaml/ac619539fed348747d686b8f628e80c1bb8bfc59/lib/unix/msg.mli
ocaml
* Consistent printing of errors, warnings, and bugs. An error is a user mistake that prevents continuing program execution, a warning is a milder problem that the program continues to execute through, and a bug is a mistake in the software. * Message tree for more complex messages. * [add_child t x] inserts [x] as th...
val err : ?pos:Pos.t -> string -> string val warn : ?pos:Pos.t -> string -> string val bug : ?pos:Pos.t -> string -> string * Create a string communicating an error , warning , or bug . First optional argument is position where problem occurred . Second argument is a string explaining the problem . val print_err : ?...
1d5da06f0ecedf57afecede82b9e8ae509840a515b02e0b593740e299984c0a5
janestreet/async_inotify
async_inotify.mli
* Async - friendly bindings to inotify , see [ man 7 inotify ] . Be aware that the interface of inotify makes it easy to write code with race conditions or other subtle pitfalls . For instance , stat'ing a file then watching it means you have lost any events between the stat and the watch . Or the be...
null
https://raw.githubusercontent.com/janestreet/async_inotify/fdf27abb7875d1b4624f355fb7d8000f538cf6e2/src/async_inotify.mli
ocaml
* Which events we want to get. It is generally preferable to filter as much as possible at this level, instead of by filtering the events in the pipe, because it reduces the risk of queue overflows. * Queue overflow means that you are not consuming events fast enough and just lost some of them....
* Async - friendly bindings to inotify , see [ man 7 inotify ] . Be aware that the interface of inotify makes it easy to write code with race conditions or other subtle pitfalls . For instance , stat'ing a file then watching it means you have lost any events between the stat and the watch . Or the be...
c9cb7d11023933583080409913a9324df9e950ba0467095fc8a376e76ccb80a2
karamellpelle/grid
Do.hs
grid is a game written in Haskell Copyright ( C ) 2018 -- -- This file is part of grid. -- -- grid is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or -- (at your optio...
null
https://raw.githubusercontent.com/karamellpelle/grid/56729e63ed6404fd6cfd6d11e73fa358f03c386f/source/Game/LevelPuzzle/Do.hs
haskell
This file is part of grid. grid is free software: you can redistribute it and/or modify (at your option) any later version. grid 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 GN...
grid is a game written in Haskell Copyright ( C ) 2018 it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License module Game.LevelPuzzle.Do ( doPlay, doCo...
a685d027faee2fc489f6befbe1cc02ffce1eda0a003596e505a3f4f9cca1aed7
bgusach/exercises-htdp2e
ex-378-to-386.rkt
#lang htdp/isl+ (require test-engine/racket-tests) (require 2htdp/abstraction) (require 2htdp/image) (require 2htdp/universe) (require racket/string) (require 2htdp/batch-io) # # # Data definitions A FSM is a [ List - of 1Transition ] A 1Transition is a list of two items : ( cons FSM - State ( cons FSM -...
null
https://raw.githubusercontent.com/bgusach/exercises-htdp2e/c4fd33f28fb0427862a2777a1fde8bf6432a7690/4-intertwined-data/ex-378-to-386.rkt
racket
Example: [X Y] [List-of [List X Y]] X -> Y finds the matching Y for the given X in alist -- IN -- Renders the current state =================== End of exercise ================== =================== End of exercise ================== Example: '("red" "g") Example: '(("red" "g") "green") Example: =======...
#lang htdp/isl+ (require test-engine/racket-tests) (require 2htdp/abstraction) (require 2htdp/image) (require 2htdp/universe) (require racket/string) (require 2htdp/batch-io) # # # Data definitions A FSM is a [ List - of 1Transition ] A 1Transition is a list of two items : ( cons FSM - State ( cons FSM -...
1ee2b98bf26e65d0b29393247fb4cd46df283cad057dbc0e2a8d908ec4b8eee5
kostmo/circleci-failure-tracker
AuthConfig.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} module AuthConfig where import Data.Text (Text) import Data.Text.Encoding (encodeUtf8) import qualified Data.Text.Lazy as TL import Network.OAuth.OAuth2 import URI.ByteString.QQ import qua...
null
https://raw.githubusercontent.com/kostmo/circleci-failure-tracker/393d10a72080bd527fdb159da6ebfea23fcd52d1/app/fetcher/src/AuthConfig.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE QuasiQuotes # Apparently this is the proper parameter to propagate the redirect URL. | /
module AuthConfig where import Data.Text (Text) import Data.Text.Encoding (encodeUtf8) import qualified Data.Text.Lazy as TL import Network.OAuth.OAuth2 import URI.ByteString.QQ import qualified Github import Session import Types import q...
03d1e3a066e9be9401f43d8599b33a481e34a027e888a2a21407c91402181e17
mlin/PhyloCSF
PhyloEM.mli
(** supporting functions for estimating the parameters of phylogenetic models by expectation-maximization (EM) *) * { 1 E - step } (** sufficient statistics for the E-step, composed of estimates of how many times each character-character substitution occurred on each branch of the tree (summed over all sites) *) type...
null
https://raw.githubusercontent.com/mlin/PhyloCSF/6a26e7f7f40b43eac8b76cc1fe295a584d7d8b38/lib/CamlPaml/PhyloEM.mli
ocaml
* supporting functions for estimating the parameters of phylogenetic models by expectation-maximization (EM) * sufficient statistics for the E-step, composed of estimates of how many times each character-character substitution occurred on each branch of the tree (summed over all sites) * expected log-likelihood of th...
* { 1 E - step } type sufficient_statistics = float array array array val new_sufficient_statistics : PhyloModel.t -> sufficient_statistics * compute the E - step statistics for one site , given the leaves ( as would be given to { { : PhyloModel}PhyloModel.prepare_lik } ) . Update the given [ sufficient_statistic...
b314f531ab3356c3e73af5a73597232e2b0cbc47636e3b712976db2cdbd31506
datastax/cass-config-builder
edn.clj
;; Copyright DataStax, Inc. ;; Please see the included license file for details. (ns lcm.utils.edn (:require [clojure.edn :as edn] [clojure.core.memoize :as memo])) (def cached-read-string "We parse EDN strings a lot, cache the results for an hour." (memo/ttl edn/read-string :ttl/threshold 3600000))...
null
https://raw.githubusercontent.com/datastax/cass-config-builder/88623cca0c09b510a6e363c4c7579ffa7d773344/src/lcm/utils/edn.clj
clojure
Copyright DataStax, Inc. Please see the included license file for details.
(ns lcm.utils.edn (:require [clojure.edn :as edn] [clojure.core.memoize :as memo])) (def cached-read-string "We parse EDN strings a lot, cache the results for an hour." (memo/ttl edn/read-string :ttl/threshold 3600000))
b493daa58edbb7fc328e895c22af686c3b0330c6d7fb68d562c41e712cd23b01
ConsenSys/constellation
Test.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} module Constellation.Util.String.Test where import ClassyPrelude import Data.Char (isSpace) import Test.Tasty (TestTree, testGroup) import Test.Tasty.QuickCheck (testProperty) import Constellation.Util.String (trimLeft, trimRight, trimBoth) tests :: T...
null
https://raw.githubusercontent.com/ConsenSys/constellation/8fcd2d38b097da5242f511d2fb2149a9764f2f7b/test/Constellation/Util/String/Test.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE NoImplicitPrelude # module Constellation.Util.String.Test where import ClassyPrelude import Data.Char (isSpace) import Test.Tasty (TestTree, testGroup) import Test.Tasty.QuickCheck (testProperty) import Constellation.Util.String (trimLeft, trimRight, trimBoth) tests :: TestTree tests = testGroup "Util.Str...
8426cf09854b50090577307c9c577cbfa4a05a8e8009815577902ad3d0ad7319
lucasdicioccio/deptrack-project
Base.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE DeriveGeneric # # LANGUAGE ExistentialQuantification # {-# LANGUAGE RankNTypes #-} The base of Devops , using DepTrack . -- -- Basically like an applicative computation building a set of continuations -- that run in an interpreter to t...
null
https://raw.githubusercontent.com/lucasdicioccio/deptrack-project/cd3d59a796815af8ae8db32c47b1e1cdc209ac71/deptrack-devops/src/Devops/Base.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE RankNTypes # Basically like an applicative computation building a set of continuations that run in an interpreter to turn nodes up/down. (recommended). * generally, we do not care about the intermediate type * however, we may want to inspect depe...
# LANGUAGE DeriveGeneric # # LANGUAGE ExistentialQuantification # The base of Devops , using DepTrack . module Devops.Base ( PreOp (..) , rawpreop , Op (..) , OpDescription (..) , OpFunctions (..) , DevOp , DevOpT , runPreOp , preopType , OpUniqueId , preOpUniqueId , OpCheck , Chec...
2ed43ed0503c35aa1a3d7d5f1ab4539bd9dd68f6152702e9f948aa2503ae50a5
astrada/ocaml-extjs
ext_container_Viewport.ml
class type t = object('self) inherit Ext_container_Container.t method isViewport : bool Js.t Js.prop method beforeDestroy : unit Js.meth method initComponent : unit Js.meth method onRender : Ext_dom_Element.t Js.t -> Js.number Js.t -> unit Js.meth end class type configs = object('self) inherit Ext_co...
null
https://raw.githubusercontent.com/astrada/ocaml-extjs/77df630a75fb84667ee953f218c9ce375b3e7484/lib/ext_container_Viewport.ml
ocaml
class type t = object('self) inherit Ext_container_Container.t method isViewport : bool Js.t Js.prop method beforeDestroy : unit Js.meth method initComponent : unit Js.meth method onRender : Ext_dom_Element.t Js.t -> Js.number Js.t -> unit Js.meth end class type configs = object('self) inherit Ext_co...
1979daedd136e95cc5fc737d42ffdbc800e2805bc8ce02c6fe460ef92d04eedd
rm-hull/jasentaa
basic_test.cljc
(ns jasentaa.parser.basic-test (:require #?(:clj [clojure.test :refer :all] :cljs [cljs.test :refer-macros [deftest is testing]]) [jasentaa.test-helpers :as th] [jasentaa.monad :as m] [jasentaa.parser.basic :as pb])) (deftest check-any (is (= [[\a "pple"]] (th/test-harness pb/any "apple"))) (i...
null
https://raw.githubusercontent.com/rm-hull/jasentaa/aeb0738d05db6ad536ee67253c6716c7a0b1c586/test/jasentaa/parser/basic_test.cljc
clojure
(ns jasentaa.parser.basic-test (:require #?(:clj [clojure.test :refer :all] :cljs [cljs.test :refer-macros [deftest is testing]]) [jasentaa.test-helpers :as th] [jasentaa.monad :as m] [jasentaa.parser.basic :as pb])) (deftest check-any (is (= [[\a "pple"]] (th/test-harness pb/any "apple"))) (i...
8ed35c4bb7b70455bf64aa85e2727e8fb07b5677e020294cddc0ee856d4377d3
MLstate/opalang
qmlTyperErrHandling.ml
Copyright © 2011 MLstate This file is part of . is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License , version 3 , as published by the Free Software Foundation . is distributed in the hope that it will be useful , ...
null
https://raw.githubusercontent.com/MLstate/opalang/424b369160ce693406cece6ac033d75d85f5df4f/compiler/libqmlcompil/qmlTyperErrHandling.ml
ocaml
************************************************************** ************************************************************** depends alias shorthand -- ************************************************************************** ************************************************************************** ...
Copyright © 2011 MLstate This file is part of . is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License , version 3 , as published by the Free Software Foundation . is distributed in the hope that it will be useful , ...
c755deb811282444555a691c46004a2f19031936767aed454fe7c0477f311f94
dgiot/dgiot
emqx_node_helpers.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2022 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/dgiot/dgiot/c601555e45f38d02aafc308b18a9e28c543b6f2c/test/emqx_node_helpers.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 ) 2022 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_node_helpers). -include_lib("eunit/include/eunit.hrl"). -define(SLAVE_START_APPS, [emqx,...
9a3e46eb30bd113fc6cf35d22b8b89b6f5d39c35e521c634e76247d8cd8b1188
zhugecaomao/AutoLISP
bzpyj-坐标标注示例.lsp
;;;本文件与bgao.lsp相比,可在用户坐标系下标示选取点的绝对坐标。 技巧:(按一下F8键试试,你可能会有一点惊喜哟 ) ;启动命令为zb (defun c:bz(/ CHO os p0 pxx pyy px py pp entl a b pa ppp paa pbb le len sc alph alf p1 p2 p3 ent pd p11 p12 p21) (command "undo" "begin") (setq CHO (getvar "CMDECHO")) (setvar "CMDECHO" 0) ;(command "style" "txtp" "txt,hztxt" "" "" "" "" ""...
null
https://raw.githubusercontent.com/zhugecaomao/AutoLISP/3e97f911068124f3ea8a1cf6f1d8be9f8227c64b/bzpyj-%E5%9D%90%E6%A0%87%E6%A0%87%E6%B3%A8%E7%A4%BA%E4%BE%8B.lsp
lisp
本文件与bgao.lsp相比,可在用户坐标系下标示选取点的绝对坐标。 启动命令为zb (command "style" "txtp" "txt,hztxt" "" "" "" "" "" "") (command "LAYER" "Make" "gaobz" "") 引出点pa 引出点pb 两点间距离 引出两点的弧度alph 求出角度值alf 将多余的线剪掉
技巧:(按一下F8键试试,你可能会有一点惊喜哟 ) (defun c:bz(/ CHO os p0 pxx pyy px py pp entl a b pa ppp paa pbb le len sc alph alf p1 p2 p3 ent pd p11 p12 p21) (command "undo" "begin") (setq CHO (getvar "CMDECHO")) (setvar "CMDECHO" 0) (while (equal h1 nil) (setq h1 (getreal "\n 请输入字体高度:")) ) (setq os (getvar "osmode")) ...
9c252e626342753c3162b5c47035a4d2ed3a2bf2c72cc0554eea8939eb1f01f1
fujita-y/digamma
assert.scm
#!nobacktrace Copyright ( c ) 2004 - 2022 Yoshikatsu Fujita / LittleWing Company Limited . ;;; See LICENSE file for terms and conditions of use. (library (digamma assert) (export unsupported-option assert-argument) (import (core) (rnrs)) (define unsupported-option (lambda (x) (syntax-case x () ...
null
https://raw.githubusercontent.com/fujita-y/digamma/58cccd77bd2c208ec58d3cd634cbe65e32b3c7ec/sitelib/digamma/assert.scm
scheme
See LICENSE file for terms and conditions of use. [end]
#!nobacktrace Copyright ( c ) 2004 - 2022 Yoshikatsu Fujita / LittleWing Company Limited . (library (digamma assert) (export unsupported-option assert-argument) (import (core) (rnrs)) (define unsupported-option (lambda (x) (syntax-case x () (name (error (syntax->datum #'name) "option is not ...
b01f09141d0a509dac6ff4a12e7be82f15c9c5c7a4ac63271cd97e2134d51146
stylewarning/quickutil
symbols.lisp
(in-package #:quickutil-utilities.utilities) (defutil ensure-symbol (:version (1 . 0) :category (alexandria symbols)) "Returns a symbol with name designated by `name`, accessible in package designated by `package`. If symbol is not already accessible in `package`, it is interned there. Return...
null
https://raw.githubusercontent.com/stylewarning/quickutil/5adb3463d99095145325c4013117bd08a8f6cac2/quickutil-utilities/utilities/alexandria/symbols.lisp
lisp
(in-package #:quickutil-utilities.utilities) (defutil ensure-symbol (:version (1 . 0) :category (alexandria symbols)) "Returns a symbol with name designated by `name`, accessible in package designated by `package`. If symbol is not already accessible in `package`, it is interned there. Return...
ae9cee6baa29be54ce95556768f8666fd12ea79465a7e7716a138d4207e35553
fractalide/fractalide
model.rkt
#lang racket (require fractalide/modules/rkt/rkt-fbp/agent fractalide/modules/rkt/rkt-fbp/def) (require/edge ${cardano-wallet.wcreate}) (define-agent #:input '("name" "pwd" "pwd-cfm" "next") ; in array port #:output '("error" "name" "pwd" "next" "destroy" "attach") ; out port #:output-array '("clean-f...
null
https://raw.githubusercontent.com/fractalide/fractalide/9c54ec2615fcc2a1f3363292d4eed2a0fcb9c3a5/modules/rkt/rkt-fbp/agents/cardano-wallet/wcreate/wallet-input/model.rkt
racket
in array port out port
#lang racket (require fractalide/modules/rkt/rkt-fbp/agent fractalide/modules/rkt/rkt-fbp/def) (require/edge ${cardano-wallet.wcreate}) (define-agent #:output-array '("clean-field") (define acc (try-recv (input "acc"))) (unless acc (set! acc (wcreate "" "" ""))) (define name (try-recv (input "n...
8b2397bb741dbb2c0d1d1341874a8c7b68e8d3be1e65e842d8d07eeafd188196
liqula/react-hs
React.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # {-# LANGUAGE EmptyDataDecls #-} # LANGUAGE ExistentialQuantification # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE LambdaCase # # LANGUAGE MagicHash # # LANGUA...
null
https://raw.githubusercontent.com/liqula/react-hs/204c96ee3514b5ddec65378d37872266b05e8954/react-hs/src/React/Flux/Addons/React.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE EmptyDataDecls # # LANGUAGE OverloadedStrings # | Bindings for the < React addons> that make < animation> and < performance tools>. * Animation * Perf | The < ReactCSSTransitionGroup> element. > h1_ "Fading at initial mount" -----------------------------------------------...
# LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE ExistentialQuantification # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE LambdaCase # # LANGUAGE MagicHash # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PolyKinds # # LANGUAGE S...
2d71ee825b425625820e4945a9b567552951c68962efa13a8c3962db78a075e0
nikodemus/SBCL
arith.lisp
;;;; the VM definition arithmetic VOPs for HPPA 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 University and released into the ;;;; public domain. The software is in the public ...
null
https://raw.githubusercontent.com/nikodemus/SBCL/3c11847d1e12db89b24a7887b18a137c45ed4661/src/compiler/hppa/arith.lisp
lisp
the VM definition arithmetic VOPs for HPPA 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. Binary fixnum operations. Shifting Multiply and Divide. fix-lav: why dont we ignore tmp ? looki...
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!VM") Unary operations . (define-vop (fast-safe-arith-op) (:policy :fast-safe) (:effects) (:affecte...
617b49a8388fca1a254e09ae16d225b6dbacd4cecc1a8b03a09f33643e29b833
OCamlPro/opam-manager
managerDefault.ml
(**************************************************************************) (* *) Copyright 2014 - 2015 , (* *) (* All rights reserved.This file is distributed under ...
null
https://raw.githubusercontent.com/OCamlPro/opam-manager/2b5b9cc834c0595c6bf00b07f47f25ab71f21acc/src/core/managerDefault.ml
ocaml
************************************************************************ All rights reserved.This file is distributed under the terms of the exception. ...
Copyright 2014 - 2015 , GNU Lesser General Public License version 3.0 with linking OPAM is distributed in the hope that it will be useful , but WITHOUT or FITNESS FOR A PARTICULAR PURPOSE.See the GNU General Public open ManagerMisc open ManagerTypes type defaults = | Absol...
df3f5b5586e31d479ec608a961195f0a45b9e050587628124c286f2c4b3d7df0
input-output-hk/ouroboros-network
PBFT.hs
# LANGUAGE FlexibleInstances # {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TypeFamilies #-} # OPTIONS_GHC -Wno - orphans # module Ouroboros.Consensus.Mock.Node.PBFT ( MockPBftBlock , protocolInfoMockPBFT ) where import qualified Data.Bimap as Bimap import ...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/999f250358b875746bdc92838a3f60bd62010a53/ouroboros-consensus-mock/src/Ouroboros/Consensus/Mock/Node/PBFT.hs
haskell
# LANGUAGE NamedFieldPuns # # LANGUAGE OverloadedStrings # # LANGUAGE TypeFamilies # For Mock PBFT, we use our key as the genesis key. ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ---------------------...
# LANGUAGE FlexibleInstances # # OPTIONS_GHC -Wno - orphans # module Ouroboros.Consensus.Mock.Node.PBFT ( MockPBftBlock , protocolInfoMockPBFT ) where import qualified Data.Bimap as Bimap import Cardano.Crypto.DSIGN import Ouroboros.Consensus.Block import Ouroboros.Consensus.Co...
8dd62c605398a093b4b36dfe723875c94b875d227162a1913d3715e303243e1f
ddrake/haskell-dijkstra
Dijkstra.hs
module Dijkstra ( fromText, dijkstra, pathToNode, edgesFor, Edge(..), Node, Graph, Dnode ) where import Data.List data Edge = Edge { node::Node, weight::Float } deriving (Show) type Node = String type Graph = [(Node, [Edge])] type Dnode = (Node, (Float, Node)) Get a weighted graph from a multiline...
null
https://raw.githubusercontent.com/ddrake/haskell-dijkstra/82238a38bb920324df39ade3f142ea60e591137a/Dijkstra.hs
haskell
If the data already represents a directed graph just pass along the edges, otherwise append reversed edges. This avoids redundant data when working with non-directed graphs. Given a weighted graph and a node, return the edges incident on the node Given a list of edges, return their nodes Given a graph and a start...
module Dijkstra ( fromText, dijkstra, pathToNode, edgesFor, Edge(..), Node, Graph, Dnode ) where import Data.List data Edge = Edge { node::Node, weight::Float } deriving (Show) type Node = String type Graph = [(Node, [Edge])] type Dnode = (Node, (Float, Node)) Get a weighted graph from a multiline...
df7604a0b13a03ccd87d2dd5a613b2d510762df626eedbb27f86896bc687c55a
weldr/bdcs
License.hs
Copyright ( C ) 2017 Red Hat , Inc. -- -- This library is free software; you can redistribute it and/or -- modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 2.1 of the License , or ( at your option ) any later version . -- -- This libr...
null
https://raw.githubusercontent.com/weldr/bdcs/cf360c3240644b4847336b9d58b2067f3aa1ec50/src/BDCS/Label/License.hs
haskell
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU...
Copyright ( C ) 2017 Red Hat , Inc. License as published by the Free Software Foundation ; either version 2.1 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public module BDCS.Label.License(matches, mkLabel) where ...
97714074731d59c77e0c4bada1f41cf7026de611d5f1dfdc0e8d385412c4fd4b
mmontone/erudite
when.lisp
;; When test ;; @when nil ;; This should not appear ;; @end when ;; @when t ;; This should appear ;; @end when
null
https://raw.githubusercontent.com/mmontone/erudite/d421f4ed27faa636d5d4d768c4b64274023d63b2/test/when.lisp
lisp
When test @when nil This should not appear @end when @when t This should appear @end when
aa84c507ba946b1d60771bd56255231dd6a4e4304b3edb709ee3d9812dfd6557
ocaml/ocaml-ci-scripts
ci_opam.ml
* Copyright ( c ) 2015 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
null
https://raw.githubusercontent.com/ocaml/ocaml-ci-scripts/8c308d55735d48b0c696b97ae327a30111fddac0/src/ci_opam.ml
ocaml
User-defined variables The package name Extra remotes to stack on top of the initialization remote Any extra pins to use Run the basic installation step Run the optional dependency step Run the test step Run the reverse dependency rebuild step run opam lint opam version other variables Script G...
* Copyright ( c ) 2015 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
f02739de475ba3968621b7a486ea5dc228f6857feb689cc6749ad96429a593b7
mirage/ocaml-rpc
xml_xapi.ml
let array_call = "<methodCall>\n\ \ <methodName>event.register</methodName>\n\ \ <params>\n\ \ <param>\n\ \ <value>OpaqueRef:8ecbbb2a-a905-d422-1153-fadc00639b12</value>\n\ \ </param>\n\ \ <param>\n\ \ <value>\n\ \ <array>\n\ \ <data>\n\ \ <value>pbd...
null
https://raw.githubusercontent.com/mirage/ocaml-rpc/fdbf7f5c3e4f0c75837f0a96d5d4d6458805fd57/tests/lib/xml_xapi.ml
ocaml
let array_call = "<methodCall>\n\ \ <methodName>event.register</methodName>\n\ \ <params>\n\ \ <param>\n\ \ <value>OpaqueRef:8ecbbb2a-a905-d422-1153-fadc00639b12</value>\n\ \ </param>\n\ \ <param>\n\ \ <value>\n\ \ <array>\n\ \ <data>\n\ \ <value>pbd...
f027223ebc67fa4063c15b203500d143b3bf40a6ff420916da351bcc1f7b1791
mbillingr/lisp-in-small-pieces
10-05-extract.scm
(define-class Flattened-Program Program (form quotations definitions)) (define-class Quotation-Variable Variable (value)) (define-class Function-Definition Flat-Function (index)) (define-class Closure-Creation Program (index variables free)) (define (extract-things! o) (let ((result (make-Flattened-Program o '() '(...
null
https://raw.githubusercontent.com/mbillingr/lisp-in-small-pieces/b2b158dfa91dc95d75af4bd7d93f8df22219047e/10-to-c/10-05-extract.scm
scheme
(define-class Flattened-Program Program (form quotations definitions)) (define-class Quotation-Variable Variable (value)) (define-class Function-Definition Flat-Function (index)) (define-class Closure-Creation Program (index variables free)) (define (extract-things! o) (let ((result (make-Flattened-Program o '() '(...
3cdfeb66df220b60e3c15587081882885b60594a0a45a87945d524b798350f06
l29ah/hyborg
Benchmark.hs
{-# LANGUAGE OverloadedStrings #-} import Criterion.Main import Control.DeepSeq import Control.Parallel.Strategies import qualified Data.ByteString as B import qualified Data.ByteString.Lazy as BL import Data.Default import Chunker.BuzHash import qualified Chunker.Fixed as Fix import Compression threadify threads co...
null
https://raw.githubusercontent.com/l29ah/hyborg/d33b6d2905fdd82b98744113400e3a524f701583/Benchmark.hs
haskell
# LANGUAGE OverloadedStrings #
import Criterion.Main import Control.DeepSeq import Control.Parallel.Strategies import qualified Data.ByteString as B import qualified Data.ByteString.Lazy as BL import Data.Default import Chunker.BuzHash import qualified Chunker.Fixed as Fix import Compression threadify threads computation = parMap rdeepseq computa...
8c71f3e7d341d3452c082b0fff99d8207462ae3d4c8453f64ae567b59935f7b7
bmeurer/ocamljit2
parmatch.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/bmeurer/ocamljit2/ef06db5c688c1160acc1de1f63c29473bcd0055c/typing/parmatch.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ Id$ open Misc open Asttypes open ...
5fa86fe515e1004c021c4c30185e24bd6660e2e119373103415e396a723df8f8
Eonblast/Trinity
hello.erl
: Gen Server Skeleton % -------------------------------- % file: eonbeam/dev/3/g_supervisor/hello.erl % Starts, tests and terminates the hello_supervisor and by that the hello_gen_server. % Start with: erl -s hello run -s init stop -noshell -module(hello). -export([run/0]). run() -> % kind of magicians gesture:...
null
https://raw.githubusercontent.com/Eonblast/Trinity/15bcc0fa0997d7dd360f1542493e63208645bd88/g_supervisor/hello.erl
erlang
-------------------------------- file: eonbeam/dev/3/g_supervisor/hello.erl Starts, tests and terminates the hello_supervisor and by that the hello_gen_server. Start with: erl -s hello run -s init stop -noshell kind of magicians gesture: check that the gen server is not (yet) running -----------------------------...
: Gen Server Skeleton -module(hello). -export([run/0]). run() -> undefined = whereis(hello_gen_server), io:format("hello: starting supervisor~n"), {ok, _} = hello_supervisor:start_link(), io:format("hello: sending hello to gen_server~n"), world = gen_server:call(hello_gen_server, hello), io:format("he...
f8c88c57455b1cb19527034dbe2d22975bb482eeca9caf5251fff931fe10e1dc
input-output-hk/marlowe-cardano
Oracle.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # module Network.Oracle ( Oracle(..) , OracleEnv , makeOracle , oracles , readOracle , toOracleSymbol ) where import Data.Maybe (fromJust) import Data.Text (Text) import Network.HTTP.Client (Manager) import Network.Oracle.CoinGecko (Curre...
null
https://raw.githubusercontent.com/input-output-hk/marlowe-cardano/3c65414ea55ac58d12ea974fa40c4f0deb4cc0a6/marlowe-apps/oracle/Network/Oracle.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE RecordWildCards # module Network.Oracle ( Oracle(..) , OracleEnv , makeOracle , oracles , readOracle , toOracleSymbol ) where import Data.Maybe (fromJust) import Data.Text (Text) import Network.HTTP.Client (Manager) import Network.Oracle.CoinGecko (Currency(..), CurrencyPair(..), coinGeck...
3769a32f50fcd81f57093df58f201c6a9d2a0f5a869db26b2913329da3b5c546
RichiH/git-annex
Get.hs
git - annex command - - Copyright 2010 , 2013 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2010, 2013 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Command.Get where import Command import qualified Remote import Annex.Content import Annex...
null
https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Command/Get.hs
haskell
no cleanup needed This check is to avoid an ugly message if a remote is a drive that is not mounted.
git - annex command - - Copyright 2010 , 2013 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2010, 2013 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Command.Get where import Command import qualified Remote import Annex.Content import Annex...
309adad7d6ea375c122a560d0b33e167f387dd47616acbdd4874324cb018cb9e
jacekschae/learn-datomic-course-files
db.clj
(ns cheffy.conversation.db) (defn find-conversations-by-account-id []) (defn transact-message []) (defn transact-conversation []) (defn find-messages-by-conversation-id []) (defn read-messages [])
null
https://raw.githubusercontent.com/jacekschae/learn-datomic-course-files/aec3c4386be1affff8e24f96a306743a9e89def2/increments/37-conversations-overview/src/main/cheffy/conversation/db.clj
clojure
(ns cheffy.conversation.db) (defn find-conversations-by-account-id []) (defn transact-message []) (defn transact-conversation []) (defn find-messages-by-conversation-id []) (defn read-messages [])
b32b18454b8eb9d629235b1efb7852932bdbb407e468abdf1a54ae07dfe28cde
screenshotbot/screenshotbot-oss
encode-decode.lisp
Copyright ( c ) 2016 ;; ;; Permission is hereby granted, free of charge, to any person ;; obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without ;; restriction, including without limitation the rights to use, copy, ;; modify, merge, publish, dis...
null
https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/41a91937318f92ee6d5625def97b03aeb46eb92e/third-party/json-mop/tests/encode-decode.lisp
lisp
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies furnished to do so, subject to the following conditions: ...
Copyright ( c ) 2016 files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , BE LIABLE FOR ANY CLAIM , D...
f46544e414f4b2864b73a79c48a5e494f0a47b88ec512289b895546bd486e05a
Erdwolf/prolog
Prolog.hs
module Language.Prolog (module Prolog) where import Prolog
null
https://raw.githubusercontent.com/Erdwolf/prolog/d6ee4b35be2a0b29f0a2db404a90f0d241d97a6c/src/Language/Prolog.hs
haskell
module Language.Prolog (module Prolog) where import Prolog
f2b6497f142b419cbab05360b096bd48a15e8333bd5b82d185ef2fa37c7d31b7
ubf/ubf-redis
ruf_term.erl
%%% -*- mode: erlang -*- %%% %%% The MIT License %%% Copyright ( C ) 2012 - 2016 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 l...
null
https://raw.githubusercontent.com/ubf/ubf-redis/737c3c47ebeae76ab8d3758bed7b4f3eb22b13ea/src/ruf_term.erl
erlang
-*- mode: 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 ...
Copyright ( C ) 2012 - 2016 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 " , WITHOUT WARRANTY OF ANY KIND , E...
61683f35465d64b66c82e816383ed539fe8d071e6ad6df1273d501e0f064c455
GaloisInc/pads-haskell
BinaryUtilities.hs
{-# LANGUAGE ScopedTypeVariables #-} * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ( c ) < > * * ...
null
https://raw.githubusercontent.com/GaloisInc/pads-haskell/ffa01030cd1c1edf5f50df53f3783ff28bf43c7e/Language/Pads/Library/BinaryUtilities.hs
haskell
# LANGUAGE ScopedTypeVariables # Code to manage different binary representations of bytes and integers. -------------------------------- SIGNED-BYTE-HIGH FUNCTIONS -- The most significant digit is on the left (lowest address). These functions manage the case where the wire representation is signed-byte high, r...
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ( c ) < > * * < > * * ...
cf9ede1e01ce19bf8f236e4a5363a487099708ced1632b4f34f9b716da5f21f1
FundingCircle/jackdaw
kafka.clj
(ns jackdaw.test.transports.kafka (:require [clojure.tools.logging :as log] [clojure.stacktrace :as stacktrace] [manifold.stream :as s] [manifold.deferred :as d] [jackdaw.client :as kafka] [jackdaw.data :as jd] [jackdaw.test.journal :as j] [jackdaw.test.transports :as t :refer [deftransport]] ...
null
https://raw.githubusercontent.com/FundingCircle/jackdaw/e0c66d386277282219e070cfbd0fe2ffa3c9dca5/src/jackdaw/test/transports/kafka.clj
clojure
This forces the seek to happen now
(ns jackdaw.test.transports.kafka (:require [clojure.tools.logging :as log] [clojure.stacktrace :as stacktrace] [manifold.stream :as s] [manifold.deferred :as d] [jackdaw.client :as kafka] [jackdaw.data :as jd] [jackdaw.test.journal :as j] [jackdaw.test.transports :as t :refer [deftransport]] ...
74fb807fb640a70efa6844ad5e7561a28916f14f1b245639b3719f68d414c196
avsm/eeww
mach.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/avsm/eeww/651d8da20a3cc9e88354ed0c8da270632b9c0c19/boot/ocaml/asmcomp/mach.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the type integer_comparison = Isigned of Cmm.integer_comparison | Iunsigned of Cmm.integer_comparison ...
f7255aa9c580ee4f8649d2a251111c1396852293fc9a9f7a347b11aae0d51726
ocurrent/ocaml-ci
test_pipeline.ml
type t_in = ([ `Built | `Checked ], [ `Active of unit | `Msg of string ]) result [@@deriving show, eq] let t_in = Alcotest.testable pp_t_in equal_t_in type t_ret = (unit, [ `Active of [ `Running ] | `Msg of string ]) result [@@deriving show, eq] let t_ret = Alcotest.testable pp_t_ret equal_t_ret let test_summarise_...
null
https://raw.githubusercontent.com/ocurrent/ocaml-ci/755fe5e74264e0d40ece51afbd4ebf6ff5061600/test/service/test_pipeline.ml
ocaml
type t_in = ([ `Built | `Checked ], [ `Active of unit | `Msg of string ]) result [@@deriving show, eq] let t_in = Alcotest.testable pp_t_in equal_t_in type t_ret = (unit, [ `Active of [ `Running ] | `Msg of string ]) result [@@deriving show, eq] let t_ret = Alcotest.testable pp_t_ret equal_t_ret let test_summarise_...
641458e66002d0713380bc312741ddd6801354ef3bc59294c84f08f5306fd488
strint/sicpAns
1006_sqrt_new_if_b.scm
(define (xysqrt in) (sqrt-iter 1.0 in)) (define (sqrt-iter guess x) (new-if (good-enough? guess x) guess (sqrt-iter (improve guess x) x))) (define (new-if pred if-then if-else) (cond (pred if-then) (else if-else))) (define (improve g b) (/ (+ g (/ b g)) 2.0)) (define (good-e...
null
https://raw.githubusercontent.com/strint/sicpAns/efc4bdfaab7583117d42f2141d4b3b9e12792b79/1.1.7-8_SquareRoot/1006_sqrt_new_if_b.scm
scheme
(define (xysqrt in) (sqrt-iter 1.0 in)) (define (sqrt-iter guess x) (new-if (good-enough? guess x) guess (sqrt-iter (improve guess x) x))) (define (new-if pred if-then if-else) (cond (pred if-then) (else if-else))) (define (improve g b) (/ (+ g (/ b g)) 2.0)) (define (good-e...
ed4e7d640d7e7e4b3a986a3f3ab6dd2ce8551dd4eacd0a5d3ce5f252ef7d797b
zadean/xqerl
fn_ends_with_SUITE.erl
-module('fn_ends_with_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['fn-ends-with2args-1'/1]). -export(['fn-ends-with2args-2'/1]). -export(['fn-ends-w...
null
https://raw.githubusercontent.com/zadean/xqerl/1a94833e996435495922346010ce918b4b0717f2/test/fn/fn_ends_with_SUITE.erl
erlang
-module('fn_ends_with_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['fn-ends-with2args-1'/1]). -export(['fn-ends-with2args-2'/1]). -export(['fn-ends-w...
959b0b40f87ec97c1cb80f74a7a68ca15ebb3f4a087b49496f8f2b5e9bc32b56
apache/couchdb-rebar
rebar_abnfc_compiler.erl
-*- erlang - indent - level : 4;indent - tabs - mode : nil -*- %% ex: ts=4 sw=4 et %% ------------------------------------------------------------------- %% rebar : Erlang Build Tools %% Copyright ( c ) 2010 ( ) , %% %% Permission is hereby granted, free of charge, to any person obtaining a copy %% of this sof...
null
https://raw.githubusercontent.com/apache/couchdb-rebar/8578221c20d0caa3deb724e5622a924045ffa8bf/src/rebar_abnfc_compiler.erl
erlang
ex: ts=4 sw=4 et ------------------------------------------------------------------- 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 sel...
-*- erlang - indent - level : 4;indent - tabs - mode : nil -*- rebar : Erlang Build Tools Copyright ( c ) 2010 ( ) , 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 t...
d8a586388a37b3d74bede82b715db9bae532dcf5cbbc504942fecb08566d9e1c
CorticalComputer/Book_NeuroevolutionThroughErlang
benchmarker.erl
This source code and work is provided and developed by DXNN Research Group WWW.DXNNResearch . COM %% Copyright ( C ) 2012 by , DXNN Research Group , %All rights reserved. % This code is licensed under the version 3 of the GNU General Public License . Please see the LICENSE file that accompanies this project for th...
null
https://raw.githubusercontent.com/CorticalComputer/Book_NeuroevolutionThroughErlang/81b96e3d7985624a6183cb313a7f9bff0a7e14c5/Ch_8/benchmarker.erl
erlang
All rights reserved.
This source code and work is provided and developed by DXNN Research Group WWW.DXNNResearch . COM Copyright ( C ) 2012 by , DXNN Research Group , This code is licensed under the version 3 of the GNU General Public License . Please see the LICENSE file that accompanies this project for the terms of use . -module(b...
0d86555f800f41e64e85d9f1ae521323d20af436158eb408e0df134e4e917b22
nyu-acsys/drift
indirectHO03.ml
let rec bot _ = bot () let fail _ = assert false let rec c1_COEFFICIENT_1088 = 0 let rec c0_COEFFICIENT_1087 = 0 let id_1030 set_flag_f_1187 s_f_n_1182 x_1031 = x_1031 let app_1032 x_DO_NOT_CARE_1219 x_DO_NOT_CARE_1220 h_EXPARAM_1090 x_DO_NOT_CARE_1217 x_DO_NOT_CARE_1218 h_1033 set_flag_f_1187 s_f_n_1182...
null
https://raw.githubusercontent.com/nyu-acsys/drift/51a3160d74b761626180da4f7dd0bb950cfe40c0/tests/benchmarks/r_type/termination/indirectHO03.ml
ocaml
-:{v:Int | true}
let rec bot _ = bot () let fail _ = assert false let rec c1_COEFFICIENT_1088 = 0 let rec c0_COEFFICIENT_1087 = 0 let id_1030 set_flag_f_1187 s_f_n_1182 x_1031 = x_1031 let app_1032 x_DO_NOT_CARE_1219 x_DO_NOT_CARE_1220 h_EXPARAM_1090 x_DO_NOT_CARE_1217 x_DO_NOT_CARE_1218 h_1033 set_flag_f_1187 s_f_n_1182...
17e694a8ccf2ffa473480d2459479fcebab9612a381f115177fd231ad996f0c9
mfoemmel/erlang-otp
ssh_bits.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2005 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/ssh/src/ssh_bits.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 2005 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " Description : SSH 1/2 pdu elements enco...
801ae63bb7adbf395588af91661ea777e36e4abfcb4aa39d3165eff3da3294ba
andreaslyn/mini-yu
Env.hs
{-# LANGUAGE BangPatterns #-} module TypeCheck.Env ( VarStatus (..) , isStatusUnknown , isStatusInProgress , isStatusTerm , Env , EnvT , getEnv , ScopeMap , GlobalMap , forceInsertGlobal , includeImportBasePath , getImportBasePaths , getRefMap , getImplicitMap , getDataCtorMap , runEnvT...
null
https://raw.githubusercontent.com/andreaslyn/mini-yu/fb767ff4705463d8d13a83f5479143c15cdfe1bd/src/TypeCheck/Env.hs
haskell
# LANGUAGE BangPatterns # Note: Currently ctors and data types are never unknown after type checking a module, even lazily. The below ctors should support if lazy checking of ctors and data is needed at some point. StatusUnknownCtor: - EnvDepth = environment depth of ctor - FilePath = Path for file containing ...
module TypeCheck.Env ( VarStatus (..) , isStatusUnknown , isStatusInProgress , isStatusTerm , Env , EnvT , getEnv , ScopeMap , GlobalMap , forceInsertGlobal , includeImportBasePath , getImportBasePaths , getRefMap , getImplicitMap , getDataCtorMap , runEnvT , addToGlobals , findTerm...
0b7e6adaeded16a608b97bfcab937dbf06842c91ad4f105ed667842c52800b99
yogthos/json-html
runner.cljs
(ns json-html.runner (:require [doo.runner :refer-macros [doo-tests]] [json-html.core-test])) (doo-tests 'json-html.core-test)
null
https://raw.githubusercontent.com/yogthos/json-html/53f84f1f00498d04d69b26a760c4fe673b08642e/test/json_html/runner.cljs
clojure
(ns json-html.runner (:require [doo.runner :refer-macros [doo-tests]] [json-html.core-test])) (doo-tests 'json-html.core-test)
1e5dba9378b8a740ef4aa0f4027334576c1e18abccf0aa4b9282a336e72af2af
equill/neo4cl
packstream-structures.lisp
Copyright 2022 < > ; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ; you may not use this file except in compliance with the License. ; You may obtain a copy of the License at ; ; -2.0 ; ; Unless required by applicable law or agreed to in writing, software distributed ...
null
https://raw.githubusercontent.com/equill/neo4cl/703ff730944aac80f7928ddbae4056b39e3b407d/src/packstream-structures.lisp
lisp
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language g...
Copyright 2022 < > distributed under the License is distributed on an " AS IS " BASIS , Packstream structures " PackStream is a general purpose data serialisation format , originally inspired by ( but incompatible with ) MessagePack . " For more details , see (in-package #:neo4cl) (defconstan...
775117e77f2c57e0de9f35bfad4aae13b9ec2762decf806ee9cba551fc72298e
aarvid/websocket-caveman-chat
app.lisp
(ql:quickload :wsd-caveman-chat) (defpackage wsd-caveman-chat.app (:use :cl) (:import-from :lack.builder :builder) (:import-from :ppcre :scan :regex-replace) (:import-from :wsd-caveman-chat.web :*web*) (:import-from :wsd-caveman-chat.config ...
null
https://raw.githubusercontent.com/aarvid/websocket-caveman-chat/2b3c5c4b5bac39f9d1a360446d2c61fcf6afdffb/app.lisp
lisp
(ql:quickload :wsd-caveman-chat) (defpackage wsd-caveman-chat.app (:use :cl) (:import-from :lack.builder :builder) (:import-from :ppcre :scan :regex-replace) (:import-from :wsd-caveman-chat.web :*web*) (:import-from :wsd-caveman-chat.config ...
edb7f042ce5beb9a25add49879ea1b947cda94d02de7d411bf3afec12c849a14
static-analysis-engineering/codehawk
bCHELFSection.mli
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : and ------------------------------------------------------------------------------ The MIT License ( MIT ...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/dd2c3b9f84b4b5f3c88898505ee912e1e461e809/CodeHawk/CHB/bchlibelf/bCHELFSection.mli
ocaml
chutil bchlib bchlibelf
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : and ------------------------------------------------------------------------------ The MIT License ( MIT ...
f07a02dcdb02e081fae6b530ec972d38694b928e9bc4ea944dfc8d7210fce566
purebred-mua/purebred
Server.hs
-- This file is part of purebred Copyright ( C ) 2022 and -- -- purebred is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or -- (at your option) any later version...
null
https://raw.githubusercontent.com/purebred-mua/purebred/5240c08a3ca1555d9e18635e54520a2dfa6d21d4/src/Purebred/Storage/Server.hs
haskell
This file is part of purebred purebred is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ...
Copyright ( C ) 2022 and it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU Affero General Public License # LANGUAGE DataKinds # # LANGUAGE ExistentialQuantification # # L...
66557eeeabea3b2bb96f4e1f7bd9ab1fbe86150327c4947d1204e877c20a6028
conscell/hugs-android
Exception.hs
This is a cut - down version of GHC 's Exception module -- The main difference is that Hugs does not throw asynchronous -- exceptions, in particular heap and stack overflow and ctrl-C. -- Indeed, it is not entirely clear what to do in response to ctrl-C. module Hugs.Exception( Exception(..), IOException(....
null
https://raw.githubusercontent.com/conscell/hugs-android/31e5861bc1a1dd9931e6b2471a9f45c14e3c6c7e/hugs/lib/hugs/packages/hugsbase/Hugs/Exception.hs
haskell
exceptions, in particular heap and stack overflow and ctrl-C. Indeed, it is not entirely clear what to do in response to ctrl-C. :: IO a -> (Exception -> IO a) -> IO a Throwing exceptions :: Exception -> IO a :: Exception -> a :: a -> IO a Async exception control :: IO a -> IO a :: IO a -> IO a incomparable...
This is a cut - down version of GHC 's Exception module The main difference is that Hugs does not throw asynchronous module Hugs.Exception( Exception(..), IOException(..), ArithException(..), ArrayException(..), AsyncException(..), ) where import Hugs.Prelude instance Eq Exception where Ari...
e5e4a6b0bcbc6a26b99d10e5bc5cc67838b81c5bce88e571fd0fe9a1cf40b74c
basho/riak_kv
riak_kv_pb_index.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2013 - 2016 Basho Technologies , Inc. %% 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...
null
https://raw.githubusercontent.com/basho/riak_kv/aeef1591704d32230b773d952a2f1543cbfa1889/src/riak_kv_pb_index.erl
erlang
------------------------------------------------------------------- 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 permissio...
Copyright ( c ) 2013 - 2016 Basho Technologies , Inc. 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 @doc < p > The Seconda...
c68ab5e688cd0380c57b373e69f17bd338cbace3304482f123eee0e491866481
sol/http-kit
Header.hs
{-# LANGUAGE OverloadedStrings #-} module Network.HTTP.Toolkit.Header ( Limit , readMessageHeader , defaultHeaderSizeLimit , parseHeaderFields , sendHeader -- * Internals , readHeaderLines , combineHeaderLines ) where import Control.Applicative import Control.Monad (when) import Contro...
null
https://raw.githubusercontent.com/sol/http-kit/cc7eb6f1cb3ad6044c822286ad1352e26c112c69/src/Network/HTTP/Toolkit/Header.hs
haskell
# LANGUAGE OverloadedStrings # * Internals | Message header size limit in bytes. | Read start-line and message headers from provided `InputStream` (see <#section-4.1 RFC 2616, Section 4.1>). Throws: * `HeaderTooLarge` if start-line and headers together exceed the specified size `Limit` | Parse header fields a...
module Network.HTTP.Toolkit.Header ( Limit , readMessageHeader , defaultHeaderSizeLimit , parseHeaderFields , sendHeader , readHeaderLines , combineHeaderLines ) where import Control.Applicative import Control.Monad (when) import Control.Exception import Data.Foldable (forM_)...
59b85905af090ce489c4acb0f4dba5543a27b3c722af589ffcba8ca723cbd429
sellout/haskerwaul
Right.hs
# language TypeApplications # module Haskerwaul.Law.Alternativity.Right where import Data.Constraint ((\\)) import Data.Proxy (Proxy(..)) import Haskerwaul.Bifunctor import Haskerwaul.Category.Monoidal.Cartesian import Haskerwaul.Isomorphism import Haskerwaul.Law import Haskerwaul.Object import H...
null
https://raw.githubusercontent.com/sellout/haskerwaul/cf54bd7ce5bf4f3d1fd0d9d991dc733785b66a73/src/Haskerwaul/Law/Alternativity/Right.hs
haskell
| [nLab](+algebra)
# language TypeApplications # module Haskerwaul.Law.Alternativity.Right where import Data.Constraint ((\\)) import Data.Proxy (Proxy(..)) import Haskerwaul.Bifunctor import Haskerwaul.Category.Monoidal.Cartesian import Haskerwaul.Isomorphism import Haskerwaul.Law import Haskerwaul.Object import H...
64b7aecc5bea7cd8a2a6caacd34e8e1890b161981a7f96361c6bd9e2d4ea0038
tgbugs/laundry
test.rkt
#lang racket/base (require racket/list racket/file racket/path racket/pretty racket/string errortrace ; FIXME this is useless for debugging the parser also VERY slow , profile was spending 95 % of its time there the only other thing that even comes close is something from stxpar...
null
https://raw.githubusercontent.com/tgbugs/laundry/9055fe9f293d40d105841961c758a45f5fb834f7/laundry-test/test.rkt
racket
FIXME this is useless for debugging the parser ah, the slowness in racket-mode is because error-trace is enabled by default hack to pull expander for compile since in testing we only invoke at runtime parameters across require ... ? I'm lazy and not going to write a proper bfs used for debug WAIT!? setting a pa...
#lang racket/base (require racket/list racket/file racket/path racket/pretty racket/string also VERY slow , profile was spending 95 % of its time there the only other thing that even comes close is something from stxparam FIXME consider ( compile - context - preservation - ena...
5656620bf17669ae1482b78b94dc8f5db86ed8328971e9d95d9fb6576ea2396a
ocaml-obuild/obuild
build.ml
open Ext.Fugue open Ext.Filepath open Ext open Types open Helper open Printf open Analyze open Target open Prepare open Gconf open Buildprogs exception CCompilationFailed of string exception CompilationFailed of string exception Internal_Inconsistancy of string * string check that destination is valid ( wise ) aga...
null
https://raw.githubusercontent.com/ocaml-obuild/obuild/28252e8cee836448e85bfbc9e09a44e7674dae39/obuild/build.ml
ocaml
compile C files compile a set of modules in directory into a pack get all the modules defined at level h+1 [ [(r,f)] ] add a OCaml module or interface compilation process Not sure why it is necessary ... gcc seems to return before the files are ready. a compilation task has finished, terminate the process, ...
open Ext.Fugue open Ext.Filepath open Ext open Types open Helper open Printf open Analyze open Target open Prepare open Gconf open Buildprogs exception CCompilationFailed of string exception CompilationFailed of string exception Internal_Inconsistancy of string * string check that destination is valid ( wise ) aga...
4fa5334cdb30facdd03d520c8e4f45456d47b919c934322c1f673e6b82397cb5
mirage/colombe
sendmail_with_starttls.ml
open Rresult open Colombe.Sigs open Colombe.State open Colombe let ( <.> ) f g x = f (g x) let src = Logs.Src.create "sendmail-with-tls" ~doc:"logs sendmail's event with TLS" module Log = (val Logs.src_log src : Logs.LOG) module type VALUE = sig type 'x send type 'x recv type error val pp_error : error F...
null
https://raw.githubusercontent.com/mirage/colombe/bbecbb17b581fa1db70a61de14efb51a66f30451/sendmail/sendmail_with_starttls.ml
ocaml
assert that context is empty.
open Rresult open Colombe.Sigs open Colombe.State open Colombe let ( <.> ) f g x = f (g x) let src = Logs.Src.create "sendmail-with-tls" ~doc:"logs sendmail's event with TLS" module Log = (val Logs.src_log src : Logs.LOG) module type VALUE = sig type 'x send type 'x recv type error val pp_error : error F...
6330d906bf5cd77765207c3e979d5dc7371a71aca4af584fb205491a47765bd1
rescript-lang/rescript-compiler
config_util.ml
Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P. * Copyright ( C ) 2016 - , 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...
null
https://raw.githubusercontent.com/rescript-lang/rescript-compiler/e60482c6f6a69994907b9bd56e58ce87052e3659/jscomp/core/config_util.ml
ocaml
ATTENTION: lazy to wait [Config.load_path] populated
Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P. * Copyright ( C ) 2016 - , 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...
86d360f1aad47d24f704eed9d3d3f20792856dec8583547aa41aa544cff09a43
lambdamikel/DLMAPS
nrql-queries5.lisp
-*- Mode : Lisp ; Syntax : Ansi - Common - Lisp ; Package : THEMATIC - SUBSTRATE ; Base : 10 -*- (in-package :THEMATIC-SUBSTRATE) ;;; ;;; ;;; (defpersistentclass nrql-query (query) ((dont-add-abox-duplicates-p :reader dont-add-abox-duplicates-p :initform nil) (kb-id :reader kb-id :initform nil) (kb-change...
null
https://raw.githubusercontent.com/lambdamikel/DLMAPS/7f8dbb9432069d41e6a7d9c13dc5b25602ad35dc/src/query/nrql-queries5.lisp
lisp
Syntax : Ansi - Common - Lisp ; Package : THEMATIC - SUBSTRATE ; Base : 10 -*- Query Premise rule-con-pattern rule-con-pattern muss nicht beurecksichtig werden, entschieden werden, s. execute-query!
(in-package :THEMATIC-SUBSTRATE) (defpersistentclass nrql-query (query) ((dont-add-abox-duplicates-p :reader dont-add-abox-duplicates-p :initform nil) (kb-id :reader kb-id :initform nil) (kb-changed-token-delivered-p :reader kb-changed-token-delivered-p :initform nil) (add-rule-consequences-p :reader add...
2d24ee687e3934a06ee259cb109be46d8ec1726e8d8c8b6bb15e0301714ae091
FranklinChen/hugs98-plus-Sep2006
Trim.hs
Trim.hs ( adapted from trim.c which is ( c ) Silicon Graphics , Inc. ) Copyright ( c ) 2002 - 2005 < > This file is part of HOpenGL and distributed under a BSD - style license See the file libraries / GLUT / LICENSE This program draws a NURBS surface in the shape of a symmetrical hill , ...
null
https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/GLUT/examples/RedBook/Trim.hs
haskell
The control points of the surface form a small hill and ------------------------------------------------------------------------------ counter clockwise clockwise clockwise GLU_MAP1_TRIM_2 GLU_MAP1_TRIM_2 GLU_MAP1_TRIM_2
Trim.hs ( adapted from trim.c which is ( c ) Silicon Graphics , Inc. ) Copyright ( c ) 2002 - 2005 < > This file is part of HOpenGL and distributed under a BSD - style license See the file libraries / GLUT / LICENSE This program draws a NURBS surface in the shape of a symmetrical hill , ...
2c0e66da7a7466bb9419ddc91de5232698237fbd355aa37ef3d1a68c43d037e6
jonase/eastwood
f02.clj
(ns testcases.f02 (:use clojure.test)) defonce and defmulti currently require special handling in the eastwood implementation to avoid : redefd - vars warnings . (defonce i-am-defonced-and-defmultid 'foo) (defmulti i-am-defonced-and-defmultid) (defonce i-am-defonced 7) (defmulti i-am-a-defmulti-done-once) ...
null
https://raw.githubusercontent.com/jonase/eastwood/01fb0b43b0bc10d578af667c5ee9708cbf6a97bc/cases/testcases/f02.clj
clojure
sequential forms, each with side effects. It is probably necessary to analyze, and then eval, each of them one at a time, in order for things to work. been filed as ticket TANAL-6 and fixed. This was a test case that used to be a problem for tools.analyzer
(ns testcases.f02 (:use clojure.test)) defonce and defmulti currently require special handling in the eastwood implementation to avoid : redefd - vars warnings . (defonce i-am-defonced-and-defmultid 'foo) (defmulti i-am-defonced-and-defmultid) (defonce i-am-defonced 7) (defmulti i-am-a-defmulti-done-once) ...
3afef7134e779e06c4bbf06ec637d57b33fccc2b448ba4730d00344d66b2dbc8
froydnj/ironclad
fndb.lisp
;;;; -*- mode: lisp; indent-tabs-mode: nil -*- #+sbcl (in-package :sb-c) #+sbcl (progn (defknown (ironclad::fill-block-ub8-le ironclad::fill-block-ub8-be) ((simple-array (unsigned-byte 32) (*)) (simple-array (unsigned-byte 8) (*)) (integer 0 #.(- array-dimension-limit 64))) (values) (any) :overwrite-fndb-si...
null
https://raw.githubusercontent.com/froydnj/ironclad/fe88483bba68eac4db3b48bb4a5a40035965fc84/src/sbcl-opt/fndb.lisp
lisp
-*- mode: lisp; indent-tabs-mode: nil -*-
#+sbcl (in-package :sb-c) #+sbcl (progn (defknown (ironclad::fill-block-ub8-le ironclad::fill-block-ub8-be) ((simple-array (unsigned-byte 32) (*)) (simple-array (unsigned-byte 8) (*)) (integer 0 #.(- array-dimension-limit 64))) (values) (any) :overwrite-fndb-silently t) #+x86-64 (defknown ironclad::fill-bl...
a58f6ee8a5116078379df2dfa51b383ebf507e39de54111636de11ae2d5a25c0
c4-project/c4f
function_map.ml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
null
https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/delitmus/src/function_map.ml
ocaml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
0a649339fbaa42a067dad66a08abff22995136c8755da48a185b4e0683d38812
jimcrayne/jhc
Mandelbrot.hs
The Great Computer Language Shootout -- / Based on the SML version , written by . Implemented in Haskell by -- import System; import Data.Bits; import Data.Word; import Text.Printf; import Data.Char main = do (w::Word32) <- getArgs >>= readIO . head printf "P4\n%d %d\n" (fromIntegral w::Int) (fromI...
null
https://raw.githubusercontent.com/jimcrayne/jhc/1ff035af3d697f9175f8761c8d08edbffde03b4e/regress/tests/8_shootout/Mandelbrot.hs
haskell
/
The Great Computer Language Shootout Based on the SML version , written by . Implemented in Haskell by import System; import Data.Bits; import Data.Word; import Text.Printf; import Data.Char main = do (w::Word32) <- getArgs >>= readIO . head printf "P4\n%d %d\n" (fromIntegral w::Int) (fromIntegral ...
c37b4f69c720b38079987e9f97e723083a0afd7cfa6200bbe0b0cba779a1723f
rajasegar/cl-calendar
web.lisp
(in-package :cl-user) (defpackage cl-calendar.web (:use :cl :caveman2 :cl-calendar.config :cl-calendar.view :cl-calendar.db) (:export :*web*)) (in-package :cl-calendar.web) ;; ;; Application (defclass <web> (<app>) ()) (defvar *web* (make-instance '<web>)) (clear-routing-rules *web*) (defun...
null
https://raw.githubusercontent.com/rajasegar/cl-calendar/d74152cead8ab6f3f3ea45224b4efdbe4b8598aa/src/web.lisp
lisp
Application populate the remaining rows Routing rules Modal Events Error pages
(in-package :cl-user) (defpackage cl-calendar.web (:use :cl :caveman2 :cl-calendar.config :cl-calendar.view :cl-calendar.db) (:export :*web*)) (in-package :cl-calendar.web) (defclass <web> (<app>) ()) (defvar *web* (make-instance '<web>)) (clear-routing-rules *web*) (defun get-param (name p...
95303dcdbe20db7cf8b3dcb2970a132af74bf001592ee1ba47f8a5d9d9b42dbd
facebook/duckling
Corpus.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE OverloadedStrings #-} module Duckling.Numeral.JA.Corpus ( corpus ) where import Prelude imp...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Numeral/JA/Corpus.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Numeral.JA.Corpus ( corpus ) where import Prelude import Data.String import Duckling.Locale import Duckling.Numeral.Types import Duckling.Resolve import Duckling.Testing.Types corpus :: Corpus corpus = (testContext {locale = makeLocale JA Nothin...
311e42ba3e4d71b229e6d25894122202497c2fd1998297e5590e903956d2508e
oofp/Beseder
TimerResImpl.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE InstanceSigs # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE PartialTypeSignatures # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies ...
null
https://raw.githubusercontent.com/oofp/Beseder/a0f5c5e3138938b6fa18811d646535ee6df1a4f4/src/Beseder/Resources/Timer/TimerResImpl.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE TypeSynonymInstances #
# LANGUAGE FlexibleInstances # # LANGUAGE InstanceSigs # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE PartialTypeSignatures # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - orpha...
07c2268b7561d48851c3a145bdaad10e7ba87543c2628e5b0659e6e63f55145e
thelema/ocaml-community
ocamlmktop.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/thelema/ocaml-community/ed0a2424bbf13d1b33292725e089f0d7ba94b540/tools/ocamlmktop.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 Q Public License version 1.0 . let _ = let args = Ccomp.quote_files ...
879a99ce0c0cb7e091655e00f3321cda603987951ac2d6b3f808714973389890
abarbu/android-kawa
LunarLander.scm
(require 'android-defs) TODO inspect cast ! TODO I do n't know how to have overloaded functions in kawa , setState1 and ;; FIXME This is really ugly, apparently 'as' doesn't support primitive types (define-namespace Log "class:android.util.Log") (define-alias Bitmap android.graphics.Bitmap) (define-alias Canvas...
null
https://raw.githubusercontent.com/abarbu/android-kawa/3e7b5dc46bdda436e64f70e71f37a0a7e74e7e5f/LunarLander/src/kawa/android/LunarLander.scm
scheme
FIXME This is really ugly, apparently 'as' doesn't support primitive types Difficulty setting constants Physics constants degrees/second rotate Goal condition constants > this angle means crash px below gear how high above ground > this speed means crash width of target UI constants (i.e. the speed & fu...
(require 'android-defs) TODO inspect cast ! TODO I do n't know how to have overloaded functions in kawa , setState1 and (define-namespace Log "class:android.util.Log") (define-alias Bitmap android.graphics.Bitmap) (define-alias Canvas android.graphics.Canvas) (define-alias Drawable android.graphics.drawable.Dra...
53d09f72ee63fef860f6c59563e4188886a363494f879fe97c45f63ad5efde87
vbedegi/re-alm
project.clj
(defproject cofx "0.1.0-SNAPSHOT" :description "FIXME: write this!" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :min-lein-version "2.7.1" :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.9.946"] [org.clojure/core....
null
https://raw.githubusercontent.com/vbedegi/re-alm/73fdb86b2cb92bec16865be44b101361e7e84115/examples/cofx/project.clj
clojure
the presence of a :figwheel configuration here will cause figwheel to inject the figwheel client into your build :open-urls will pop open your application started and complied your application. Comment this out once it no longer serves you. -devtools This next build is an compressed minified build for producti...
(defproject cofx "0.1.0-SNAPSHOT" :description "FIXME: write this!" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :min-lein-version "2.7.1" :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.9.946"] [org.clojure/core....
226ebaaee516594b289fb8e1c542010b48d5a3b00d757ebf3e54f4667eee0713
Clozure/ccl
case-error.lisp
-*- Mode : Lisp ; Package : CCL ; -*- ;;; Copyright 1994 - 2009 Clozure Associates ;;; 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 ...
null
https://raw.githubusercontent.com/Clozure/ccl/6c1a9458f7a5437b73ec227e989aa5b825f32fd3/lib/case-error.lisp
lisp
Package : CCL ; -*- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific ...
Copyright 1994 - 2009 Clozure Associates distributed under the License is distributed on an " AS IS " BASIS , (in-package "CCL") (defun read-line-no-error (&optional (stream *standard-output*) &aux result) (ignore-errors (setq result (read-from-string (read-line stream) nil)) (return-from read-line-no...
4a7255043ea46943f18d1169cacf9f2b4646e3c2ba54133e465c8b51f28eb088
saleyn/util
util_log_color_formatter.erl
%% @doc Implementation of coloring handler for the Erlang 's logger . %% See []. %% %% == Options == %% %% <ul> %% <li>`formatter' - parent formatter which will be used for message %% formatting</li> %% <li>`colors' - map of `logger:log_level()' and colors in form atom describing color name , or...
null
https://raw.githubusercontent.com/saleyn/util/50b47ccce9925d0d655e1d76878b012444cea73f/src/util_log_color_formatter.erl
erlang
@doc See []. == Options == <ul> <li>`formatter' - parent formatter which will be used for message formatting</li> <li>`colors' - map of `logger:log_level()' and colors in form atom the color</li> </ul> Available colors: <ul> <li>`black'</li> <li>`red'</li> <li>`green...
Implementation of coloring handler for the Erlang 's logger . describing color name , or 2 - ary or 3 - ary tuple with 1 or 2 modifiers for -module(util_log_color_formatter). -define(RESET, "\e[m"). -define(CLREOL, "\e[K"). -define(CSI(Code), ["\e[", integer_to_binary(Code), $m]). -export([check_config/1, ...
bd564f19647a07ec25f27d84fa605f6020c89d9ec484f75465c518d44e4fe3ff
jdreaver/eventful
AccountSpec.hs
module Bank.Models.AccountSpec (spec) where import Test.Hspec import Eventful import Bank.Models.Account spec :: Spec spec = do describe "Account projection" $ do it "should handle a series of account events" $ do let events = [ AccountOpenedAccountEvent $ AccountOpened nil 10 ...
null
https://raw.githubusercontent.com/jdreaver/eventful/3f0c604e5bb2dcf5bacf0a2e01edf6a5e9c5e22e/examples/bank/tests/Bank/Models/AccountSpec.hs
haskell
module Bank.Models.AccountSpec (spec) where import Test.Hspec import Eventful import Bank.Models.Account spec :: Spec spec = do describe "Account projection" $ do it "should handle a series of account events" $ do let events = [ AccountOpenedAccountEvent $ AccountOpened nil 10 ...
151811c112ac34e943765b95a4be2ee260e2801985e148d2d9c17c12c23dc036
davidsun0/jclass
print-object.lisp
;;; Making the objects a bit easier on the eyes. (in-package #:jclass) (defmethod print-object ((object java-class) stream) (print-unreadable-object (object stream :type t :identity t) (format stream "~A" (name object)))) (defmethod print-object ((object field-info) stream) (print-unreadable-object (object s...
null
https://raw.githubusercontent.com/davidsun0/jclass/0de68ded1a4ffe235ea9f359e76950d03ae12e1f/print-object.lisp
lisp
Making the objects a bit easier on the eyes.
(in-package #:jclass) (defmethod print-object ((object java-class) stream) (print-unreadable-object (object stream :type t :identity t) (format stream "~A" (name object)))) (defmethod print-object ((object field-info) stream) (print-unreadable-object (object stream :type t :identity t) (format stream "~A...