_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
6d823e22112c34f754c454af227017c61dc6bb50f41ac0ad12a8b189080737e7
static-analysis-engineering/codehawk
bCHFtsParameter.ml
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Co...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/c1b3158e0d73cda7cfc10d75f6173f4297991a82/CodeHawk/CHB/bchlib/bCHFtsParameter.ml
ocaml
chutil bchlib ----------------------------------------------------------------- printing --------------------------------------------------------------- comparison --------------------------------------------------------------- predicates ---------------------------------------------------------------- opera...
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Co...
feeb049915f3aad277d00b903ae4075091fe933bbadc009bd31c5b7df7f858bc
charlieg/Sparser
driver.lisp
;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*- copyright ( c ) 1993 - 1996 -- all rights reserved ;;; ;;; File: "driver" ;;; Module: "grammar;rules:HA:" Version : 0.2 March 1996 initiated 6/13/93 0.1 ( 3/15/94 ) revised calls to edge accessors to appreciate initial edges ;; ...
null
https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/code/s/grammar/rules/HA/driver.lisp
lisp
-*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*- File: "driver" Module: "grammar;rules:HA:" (4/25/95) included gmod gates for the situation when one but not another slightly remodularized things. Called from Segment-finished and many of its subroutines. Returns nil if it can't improve o...
copyright ( c ) 1993 - 1996 -- all rights reserved Version : 0.2 March 1996 initiated 6/13/93 0.1 ( 3/15/94 ) revised calls to edge accessors to appreciate initial edges heuristic is operating . Added traces 12/12 0.2 ( 3/13/96 ) added a treatment of multiple heads / prefixes ( heads te...
0c2adca74f4a97b812cd846cad26821e13b0cec307e71c71aa24a3e2280b8b4f
ujihisa/vimlint
project.clj
(defproject vimlint "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "GPL-3 or later"} :dependencies [[org.clojure/clojure "1.5.1"] [org.van-clj/zetta-parser "0.0.4"]] :main vimlint.core)
null
https://raw.githubusercontent.com/ujihisa/vimlint/94894ecdd113a4e974965a6be1060c76f5a166d3/project.clj
clojure
(defproject vimlint "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "GPL-3 or later"} :dependencies [[org.clojure/clojure "1.5.1"] [org.van-clj/zetta-parser "0.0.4"]] :main vimlint.core)
a4b226109978b08f10065e51dd92dfc907254af401163a9cc451f2fc5ecc4076
brendanhay/terrafomo
DataSources.hs
-- This module is auto-generated. # LANGUAGE NoImplicitPrelude # # LANGUAGE RecordWildCards # # LANGUAGE StrictData # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - unused - imports # -- | -- Module : Terrafomo.Template.DataSources Copyright : ( c ) 2017 - 2018 Licen...
null
https://raw.githubusercontent.com/brendanhay/terrafomo/387a0e9341fb9cd5543ef8332dea126f50f1070e/provider/terrafomo-builtins/gen/Terrafomo/Template/DataSources.hs
haskell
This module is auto-generated. | Module : Terrafomo.Template.DataSources Stability : auto-generated * template_cloudinit_config * template_file ^ @base64_encode@ - (Default __@true@__) ^ @gzip@ - (Default __@true@__) ^ @part@ - (Required) s [ s ( CloudinitConfigPart s ) ] Expr s [Expr s (Cloudi...
# LANGUAGE NoImplicitPrelude # # LANGUAGE RecordWildCards # # LANGUAGE StrictData # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - unused - imports # Copyright : ( c ) 2017 - 2018 License : Mozilla Public License , v. 2.0 . Maintainer : < brendan.g.hay+ > Por...
f691ffb0a81f76f0781884c42a2092d182036236f191e862e4411a25871c764e
twosigma/waiter
instance_reservation_test.clj
;; Copyright ( c ) Two Sigma Open Source , LLC ;; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; -2.0 ;; ;; Unless required by applicable law or agreed to in writing, software...
null
https://raw.githubusercontent.com/twosigma/waiter/8d3cdaed90078c188095ae1e65714edc72f9122c/waiter/integration/waiter/instance_reservation_test.clj
clojure
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 permi...
Copyright ( c ) Two Sigma Open Source , LLC distributed under the License is distributed on an " AS IS " BASIS , (ns waiter.instance-reservation-test (:require [clj-time.core :as t] [clojure.core.async :as async] [clojure.set :as set] [clojure.test :refer :all] [clo...
5ef2278b71053d9d239ab4ac07e6e73ec21b53bba72be0cfc537f76da1f98ae2
w3ntao/programming-in-haskell
Exercise_2_7_5.hs
# OPTIONS_GHC -Wall # module Exercise_2_7_5 where init0 :: [a] -> [a] init0 list = reverse (tail (reverse list)) init1 :: [a] -> [a] init1 [_] = [] init1 (x : xs) = x : init1 xs
null
https://raw.githubusercontent.com/w3ntao/programming-in-haskell/c2769fa19d8507aad209818c83f67e82c3698f07/Chapter-2/Exercise_2_7_5.hs
haskell
# OPTIONS_GHC -Wall # module Exercise_2_7_5 where init0 :: [a] -> [a] init0 list = reverse (tail (reverse list)) init1 :: [a] -> [a] init1 [_] = [] init1 (x : xs) = x : init1 xs
483de36bc09db17a9993f915811390cfa9223eb25ab282507dad20ba9e78ce9c
aitorres/firelink
VariablesSpec.hs
module VariablesSpec where import qualified FireLink.FrontEnd.SymTable as ST import Test.Hspec import qualified TestUtils as U program :: String -> String program e = "hello ashen one\n\ \ traveling somewhere\n\ \ with\n\ \ var a of type humanity <<= 1,\n\ \ const b of typ...
null
https://raw.githubusercontent.com/aitorres/firelink/075d7aad1c053a54e39a27d8db7c3c719d243225/test/Semantic/VariablesSpec.hs
haskell
module VariablesSpec where import qualified FireLink.FrontEnd.SymTable as ST import Test.Hspec import qualified TestUtils as U program :: String -> String program e = "hello ashen one\n\ \ traveling somewhere\n\ \ with\n\ \ var a of type humanity <<= 1,\n\ \ const b of typ...
c352b2099d4cdbf95611027ad8fffc6d040365929dc8063478190bb2c10ff2cd
footprintanalytics/footprint-web
mbql_to_native.clj
(ns metabase.query-processor.middleware.mbql-to-native "Middleware responsible for converting MBQL queries to native queries (by calling the driver's QP methods) so the query can then be executed." (:require [clojure.tools.logging :as log] [metabase.driver :as driver] [metabase.util :as u...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/src/metabase/query_processor/middleware/mbql_to_native.clj
clojure
(ns metabase.query-processor.middleware.mbql-to-native "Middleware responsible for converting MBQL queries to native queries (by calling the driver's QP methods) so the query can then be executed." (:require [clojure.tools.logging :as log] [metabase.driver :as driver] [metabase.util :as u...
f2a6ef9a86aed39a5060eac97eba574dd720f17c8b3250a9d680f4e7e5d3f3a8
inaka/lasse
ping_pong.erl
-module(ping_pong). -behavior(application). -export([ start/0 , start/2 , stop/1 ]). start() -> {ok, _ } = application:ensure_all_started(ping_pong). @private start(_Type, _Args) -> ping_pong_sup:start_link(). stop(_State) -> cowboy:stop_listener(http_ping_pong_server), ok.
null
https://raw.githubusercontent.com/inaka/lasse/19c9e00c7666f210d0935589936bd2252a333e95/examples/ping_pong/src/ping_pong.erl
erlang
-module(ping_pong). -behavior(application). -export([ start/0 , start/2 , stop/1 ]). start() -> {ok, _ } = application:ensure_all_started(ping_pong). @private start(_Type, _Args) -> ping_pong_sup:start_link(). stop(_State) -> cowboy:stop_listener(http_ping_pong_server), ok.
250bdea714131ad172eab850491f25fe4324536b23f56be663791c7e870a0ad4
ocaml-sf/learn-ocaml-corpus
same_fringe_eq.ml
let same_fringe (t1 : 'a tree) (t2 : 'a tree) : bool = t1 = t2
null
https://raw.githubusercontent.com/ocaml-sf/learn-ocaml-corpus/7dcf4d72b49863a3e37e41b3c3097aa4c6101a69/exercises/fpottier/tree_iterators/wrong/same_fringe_eq.ml
ocaml
let same_fringe (t1 : 'a tree) (t2 : 'a tree) : bool = t1 = t2
3a4305b161a965b494e29890573348927baf8d2f9e803493afcd6a4f88768cb2
ejgallego/coq-lsp
core.mli
(************************************************************************) (* Coq Language Server Protocol *) Copyright 2019 MINES ParisTech -- LGPL 2.1 + Copyright 2019 - 2023 Inria -- LGPL 2.1 + Written by : ...
null
https://raw.githubusercontent.com/ejgallego/coq-lsp/fcc66be61f37a47a2261b6565e16d5fc28901ff8/lsp/core.mli
ocaml
********************************************************************** Coq Language Server Protocol ********************************************************************** * {1 Hover} * {1 Completion} * Code Lenses * Pull Diagnostics
Copyright 2019 MINES ParisTech -- LGPL 2.1 + Copyright 2019 - 2023 Inria -- LGPL 2.1 + Written by : * Core LSP protocoal and language types module Location : sig type t = { uri : Lang.LUri.File.t ; range : L...
30013990c1bc1d527eaff64f52e4d6d87bed7e124c053c171d06a9b400b6bae1
mfikes/advent-of-code
day_17.cljc
(ns advent-2017.day-17 (:require [advent.util :refer [nth']])) (def input 345) (defn spin [step [current-pos value buffer]] (let [new-pos (inc (mod (+ current-pos step) value))] [new-pos (inc value) (-> (subvec buffer 0 new-pos) (into [value]) (into (su...
null
https://raw.githubusercontent.com/mfikes/advent-of-code/72a015ac8fd9b1097efea69a0bb8acc26462665e/src/advent_2017/day_17.cljc
clojure
(ns advent-2017.day-17 (:require [advent.util :refer [nth']])) (def input 345) (defn spin [step [current-pos value buffer]] (let [new-pos (inc (mod (+ current-pos step) value))] [new-pos (inc value) (-> (subvec buffer 0 new-pos) (into [value]) (into (su...
0b75a8fdb5145d45b5916e572e6958597cbbc79d74ae30de34cf70d66a2dca48
Simre1/hero
Hero.hs
-- | -- Module : Hero Description : An ECS implementation in Haskell focused on performance Copyright : ( c ) , 2022 License : MIT module Hero ( -- * World World, createWorld, -- * Entity Entity, -- * Component Component (..), -- ** Premade components Position2D...
null
https://raw.githubusercontent.com/Simre1/hero/b067ee21c4017ccdd34c4d54ba26fc236a0d0542/src/Hero.hs
haskell
| Module : Hero * World * Entity * Component ** Premade components ** Store * System * Query * Geometry * Re-Exports
Description : An ECS implementation in Haskell focused on performance Copyright : ( c ) , 2022 License : MIT module Hero World, createWorld, Entity, Component (..), Position2D (..), Rotation2D (..), Timer (..), addTimer, TimeDelta (..), addTimeDelta, addTim...
26f04d17cf2cf99e2dbd429c0ad8c3a60fe7ada479b3410e11c9c8528e3696d6
yesodweb/wai
ForceSSL.hs
# LANGUAGE CPP # -- | Redirect non-SSL requests to https -- Since 3.0.7 module Network.Wai.Middleware.ForceSSL ( forceSSL ) where #if __GLASGOW_HASKELL__ < 710 import Control.Applicative ((<$>)) import Data.Monoid (mempty) #endif #if __GLASGOW_HASKELL__ < 804 import Data.Monoid ((<>)) #endif import Network...
null
https://raw.githubusercontent.com/yesodweb/wai/5d1fd4926d0f210eb77c2bc0e546cb3cca6bc197/wai-extra/Network/Wai/Middleware/ForceSSL.hs
haskell
| Redirect non-SSL requests to https | For requests that don't appear secure, redirect to https
# LANGUAGE CPP # Since 3.0.7 module Network.Wai.Middleware.ForceSSL ( forceSSL ) where #if __GLASGOW_HASKELL__ < 710 import Control.Applicative ((<$>)) import Data.Monoid (mempty) #endif #if __GLASGOW_HASKELL__ < 804 import Data.Monoid ((<>)) #endif import Network.HTTP.Types (hLocation, methodGet, status30...
3fadd5a3c633ef6a553650a1b80ab9400ffbe7b3863ec71c3c9c7eb34841cf8c
vbedegi/re-alm
utils.cljs
(ns re-alm.utils (:require [clojure.set :as s])) (defn log [& messages] (apply println messages)) (defn conj-in [m ks v] (update-in m ks #(conj % v))) (defn update-vals [f m] (reduce (fn [acc [k v]] (assoc acc k (f k v))) {} m)) (defn diff-maps [m1 m2] (let [keys1 (set (key...
null
https://raw.githubusercontent.com/vbedegi/re-alm/73fdb86b2cb92bec16865be44b101361e7e84115/src/re_alm/utils.cljs
clojure
(ns re-alm.utils (:require [clojure.set :as s])) (defn log [& messages] (apply println messages)) (defn conj-in [m ks v] (update-in m ks #(conj % v))) (defn update-vals [f m] (reduce (fn [acc [k v]] (assoc acc k (f k v))) {} m)) (defn diff-maps [m1 m2] (let [keys1 (set (key...
ae33e09480972d4ec4dbdf3250303338ab6dbbcd3292b48a0985812fd4c058f5
frodwith/cl-urbit
bignum-meta.lisp
(defpackage #:urbit/nock/bignum-meta (:use #:cl #:urbit/nock/data #:urbit/nock/mug #:urbit/nock/ideal) (:export #:bignum-meta #:define-atom-methods)) (in-package #:urbit/nock/bignum-meta) (deftype bignum-meta () '(or null mug iatom)) (defmacro define-atom-methods (klass num meta) `(progn (defmethod deep...
null
https://raw.githubusercontent.com/frodwith/cl-urbit/65af924ee58c4c974056f369158bbc1401308fea/nock/bignum-meta.lisp
lisp
(defpackage #:urbit/nock/bignum-meta (:use #:cl #:urbit/nock/data #:urbit/nock/mug #:urbit/nock/ideal) (:export #:bignum-meta #:define-atom-methods)) (in-package #:urbit/nock/bignum-meta) (deftype bignum-meta () '(or null mug iatom)) (defmacro define-atom-methods (klass num meta) `(progn (defmethod deep...
006f89e7598911efb87f0d14f3328ea3a45601ddd3421a6fe4049cc511bdd539
google/ghc-source-gen
Internal.hs
Copyright 2019 Google LLC -- -- Use of this source code is governed by a BSD-style -- license that can be found in the LICENSE file or at -- -source/licenses/bsd # LANGUAGE CPP # module GHC.SourceGen.Lit.Internal where #if MIN_VERSION_ghc(9,2,0) import GHC.Types.SourceText (SourceText(NoSourceText), FractionalLit(....
null
https://raw.githubusercontent.com/google/ghc-source-gen/f6b9130d8f384be0ef7a02b371870d532090ccb6/src/GHC/SourceGen/Lit/Internal.hs
haskell
Use of this source code is governed by a BSD-style license that can be found in the LICENSE file or at -source/licenses/bsd For now, ignoring cases that only arrive from internal compiler passes. So we can uniformly ignore this step.
Copyright 2019 Google LLC # LANGUAGE CPP # module GHC.SourceGen.Lit.Internal where #if MIN_VERSION_ghc(9,2,0) import GHC.Types.SourceText (SourceText(NoSourceText), FractionalLit(..), IntegralLit(..)) #elif MIN_VERSION_ghc(9,0,0) import GHC.Types.Basic (SourceText(NoSourceText), FractionalLit(..), IntegralLit(..)) ...
b8ff128805951e4f03a6b2add90ff70c242c63f3f96dee7e7d5493da1ba5501e
chetmurthy/pa_ppx
test_output.ml
let%expect_test "expect.output" = Printf.printf "hello\n"; let output = [%expect.output] in Printf.printf "'%s'\n" (String.uppercase_ascii output); [%expect {| 'HELLO ' |}]; Printf.printf "string without line break"; let output = [%expect.output] in Printf.printf "%s\n" (String.uppercase_ascii out...
null
https://raw.githubusercontent.com/chetmurthy/pa_ppx/7c662fcf4897c978ae8a5ea230af0e8b2fa5858b/tests-inline/test_output.ml
ocaml
let%expect_test "expect.output" = Printf.printf "hello\n"; let output = [%expect.output] in Printf.printf "'%s'\n" (String.uppercase_ascii output); [%expect {| 'HELLO ' |}]; Printf.printf "string without line break"; let output = [%expect.output] in Printf.printf "%s\n" (String.uppercase_ascii out...
4ed65ae6b087bbad3e22d7f93f780eeb93fe07bb77a0c158e8dde61e238c072c
input-output-hk/cardano-wallet
InAnyCardanoEra.hs
# LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # -- | Copyright : © 2020 - 2022 IOHK -- License: Apache-2.0 -- An isomorphism between ' InAnyCardanoEra ' and ' EraValue ' . -- module Cardano.Wallet.Read.Eras.InAnyCardanoEra ( isoInAnyCardanoEra ) where import Prelude ...
null
https://raw.githubusercontent.com/input-output-hk/cardano-wallet/97e183d3a1999f8e5658a3883785a293b3beda21/lib/wallet/src/Cardano/Wallet/Read/Eras/InAnyCardanoEra.hs
haskell
| License: Apache-2.0
# LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # Copyright : © 2020 - 2022 IOHK An isomorphism between ' InAnyCardanoEra ' and ' EraValue ' . module Cardano.Wallet.Read.Eras.InAnyCardanoEra ( isoInAnyCardanoEra ) where import Prelude import Cardano.Api ( CardanoEr...
1ebf4c2aa36c609de9494531956d2c3be7e9c8fe55ecb6d74c85a902f5f574f0
fyquah/hardcaml_zprize
radix.mli
type t = | Radix_2 | Radix_3 [@@deriving sexp_of]
null
https://raw.githubusercontent.com/fyquah/hardcaml_zprize/553b1be10ae9b977decbca850df6ee2d0595e7ff/libs/field_ops/model/radix.mli
ocaml
type t = | Radix_2 | Radix_3 [@@deriving sexp_of]
75043658a775dd4fc56ff38d746822a1e50a382c9d98fcf95fe06a9750a628cd
mtesseract/nakadi-client
Exceptions.hs
| Module : Network . . Types . Exceptions Description : Nakadi Exception Types Copyright : ( c ) 2017 License : : Stability : experimental Portability : POSIX This module provides the Nakadi Exception Types . Module : Network.Nakadi.Types.Exceptions Description : Nakadi E...
null
https://raw.githubusercontent.com/mtesseract/nakadi-client/f8eef3ac215459081b01b0b48f0b430ae7701f52/src/Network/Nakadi/Types/Exceptions.hs
haskell
| Module : Network . . Types . Exceptions Description : Nakadi Exception Types Copyright : ( c ) 2017 License : : Stability : experimental Portability : POSIX This module provides the Nakadi Exception Types . Module : Network.Nakadi.Types.Exceptions Description : Nakadi E...
6f826e9fd82c6f0e614c69dd4546f162e66ae4641146e0f7e95f039834eb6995
huangz1990/SICP-answers
test-63-tree-list-2.scm
(load "test-manager/load.scm") (load "63-tree-list-2.scm") (define-each-check (equal? (tree->list-2 (make-tree 7 (make-tree 3 (make-tree 1 '() '()) (make-tree 5 '() '())) ...
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp2/code/test-63-tree-list-2.scm
scheme
(load "test-manager/load.scm") (load "63-tree-list-2.scm") (define-each-check (equal? (tree->list-2 (make-tree 7 (make-tree 3 (make-tree 1 '() '()) (make-tree 5 '() '())) ...
8d0fdc30d8319b446b87b011f4736ceb75612e866be697ffd46987b45e309e44
jonathan-laurent/KaFlow
trace_explorer.ml
type t = { trace : Trace.step array ; model : Model.t ; mutable grid_tests : (Grid.constr list) array ; mutable grid_actions : (Grid.constr list) array ; mutable has_grid : bool ; } let trace_size t = Array.length t.trace let model t = t.model let init model trace = { model ; trace ; grid_tests = [|...
null
https://raw.githubusercontent.com/jonathan-laurent/KaFlow/e81cfbe4f270b9f0c94b7002b02dd5be61041ab8/src/trace_explorer.ml
ocaml
Functions to update the global state
type t = { trace : Trace.step array ; model : Model.t ; mutable grid_tests : (Grid.constr list) array ; mutable grid_actions : (Grid.constr list) array ; mutable has_grid : bool ; } let trace_size t = Array.length t.trace let model t = t.model let init model trace = { model ; trace ; grid_tests = [|...
0bab4c5352195c7aa1763465b17f3f7d61ba8ac900387b4c430d77a2fe78cc77
diagrams/geometry
Shapes.hs
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE LambdaCase #-} # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE RankNTypes #-} # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # ---------------------------------------------------------...
null
https://raw.githubusercontent.com/diagrams/geometry/945c8c36b22e71d0c0e4427f23de6614f4e7594a/src/Geometry/ThreeD/Shapes.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE RankNTypes # --------------------------------------------------------------------------- | License : BSD-style (see LICENSE) Maintainer : ------------------------------------------...
# LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # Module : Geometry . Copyright : ( c ) 2016 - 2017 diagrams team ( see LICENSE ) Various three - dimensional shapes . module Geometry.ThreeD.Shapes ( Sphere (..) , EllipsoidLike (..) ...
cf407548bfbc6544207b0543c1c59b2a23f4d4ae9b2881135ae3662736e2aaea
RRethy/nvim-treesitter-textsubjects
textsubjects-smart.scm
([ ; '' blah '' (indented_string_expression) ; a: a + 2 (function_expression) ; [ 1 2 3 ] (list_expression) ; a = {some rhs} (binding) { a = 2 ; } (attrset_expression) ] @_start @_end (#make-range! "range" @_start @_end) )
null
https://raw.githubusercontent.com/RRethy/nvim-treesitter-textsubjects/eb1df01a68a6234b798dc7d6495fd1d72c5061ee/queries/nix/textsubjects-smart.scm
scheme
'' blah '' a: a + 2 [ 1 2 3 ] a = {some rhs} }
(indented_string_expression) (function_expression) (list_expression) (binding) (attrset_expression) ] @_start @_end (#make-range! "range" @_start @_end) )
2565600579ca8cfa396314155594cdbada9b098496ab4c1c38e457a0e7e03fa1
soegaard/racket-cas
racket-cas.rkt
#lang racket ;;; Racket CAS ;;; The file " " got too large , so this is branch ( " refactor " ) ; is an attempt to split racket-cas up in smaller pieces. ; The plan of attack. 1 . Rename " racket-cas.rkt " to " core.rkt " 2 . Let " racket-cas.rkt " require and provide everything from " racket-cas.rkt " . ...
null
https://raw.githubusercontent.com/soegaard/racket-cas/440762257be1f137e34e9c56c31ab2e194b6d522/racket-cas/racket-cas.rkt
racket
is an attempt to split racket-cas up in smaller pieces. The plan of attack. Module dependencies: repl -> racket-cas -> core In the REPL it can be convenient to change the meaning of ' to automatic normalization: (let () (define f '(* x x)) `(* x ,f)) This macro doesn't work as expected ... why?
#lang racket Racket CAS The file " " got too large , so this is branch ( " refactor " ) 1 . Rename " racket-cas.rkt " to " core.rkt " 2 . Let " racket-cas.rkt " require and provide everything from " racket-cas.rkt " . 3 . Slowly move pieces from " racket-cas.rkt " to other files . (require ...
622f89710306e27da8513b65fc7e12026241378bee0a8c6dcea9546fe5b6ee12
CUTE-Lang/miniCUTE
SimpleArithmetic.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE TypeFamilies # -- | Copyright : ( c ) 2018 - present -- License: BSD 3-Clause -- -- Optimizers to reduce simple arithmetic expressions. module Minicute.Transpilers.Optimizers.SimpleArithmetic ( module Minicute.Data.Minicute.Program , simpleArithm...
null
https://raw.githubusercontent.com/CUTE-Lang/miniCUTE/b6c8a48b10e2af0786a50175d57b5339be7be2de/main-packages/minicute-optimizer/lib/Minicute/Transpilers/Optimizers/SimpleArithmetic.hs
haskell
| License: BSD 3-Clause Optimizers to reduce simple arithmetic expressions. | An optimizer to reduce simple arithmetic expressions in a whole program. | An optimizer to reduce simple arithmetic expressions in an expression. __TODO: replace hard-corded op checking__ __TODO: Add 'PrimDiv' optimization__
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE TypeFamilies # Copyright : ( c ) 2018 - present module Minicute.Transpilers.Optimizers.SimpleArithmetic ( module Minicute.Data.Minicute.Program , simpleArithmetic ) where import Control.Lens.Each import Control.Lens.Operators import Control.Le...
90249bf65b9838327e6cd16552febf31d3e90aa807151bd896f49c07bc9843e6
cloverage/cloverage
source_test.clj
(ns cloverage.source-test (:require [clojure.test :as t] [cloverage.source :as source])) (t/deftest resource-path-test (t/is (= "cloverage/source_test.clj" (source/resource-path 'cloverage.source-test))) (t/is (= nil (source/resource-path 'namespace.that.does.not.exist)))) (t/d...
null
https://raw.githubusercontent.com/cloverage/cloverage/dba7d72547748cf494f2bbc784b8a70ed8d9901f/cloverage/test/cloverage/source_test.clj
clojure
(ns cloverage.source-test (:require [clojure.test :as t] [cloverage.source :as source])) (t/deftest resource-path-test (t/is (= "cloverage/source_test.clj" (source/resource-path 'cloverage.source-test))) (t/is (= nil (source/resource-path 'namespace.that.does.not.exist)))) (t/d...
590cb7e0d88cbf8c57cab2044bf266b9710c992d23543b9dabc8df3000f59d8f
tensorknower69/nhentai
HomePage.hs
# LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # module Data.NHentai.Scraper.HomePage ( HomePage(..) , homePagePagination , popularGalleries , recentGalleries , ...
null
https://raw.githubusercontent.com/tensorknower69/nhentai/0f43030cc46fa33cafba4753e5e5409eea3d0355/src/Data/NHentai/Scraper/HomePage.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # module Data.NHentai.Scraper.HomePage ( HomePage(..) , homePagePagination , popularGalleries , recentGalleries , homePageScraper , galleryScraper ,...
ca7e6b1361810e8e55df00a457db2c3be71aa7af1f4020763f67f660e8fbc0f8
josefs/Gradualizer
catch_expr_pass.erl
-module(catch_expr_pass). -export([foo/1]). -spec foo(ok) -> ok. foo(X) -> A = (catch X), A.
null
https://raw.githubusercontent.com/josefs/Gradualizer/00d907accacfc29a3241dc42c1cd6d00f7e3ca37/test/should_pass/catch_expr_pass.erl
erlang
-module(catch_expr_pass). -export([foo/1]). -spec foo(ok) -> ok. foo(X) -> A = (catch X), A.
ace7e96fc0ad205fd66c34850509cb453f8fc3c05d190f56981d482ab2f85499
JamesLaverack/cljfmt-runner
fix.clj
(ns cljfmt-runner.fix (:require [cljfmt-runner.core :refer :all])) (defn -main [& args] (let [dirs (search-dirs (parse-args args) (config)) checks (check-all dirs) failed (filter #(not (:correct? %)) checks)] (println (str "Checked " (count checks) " file(s)")) (if (< 0 (count failed)) ...
null
https://raw.githubusercontent.com/JamesLaverack/cljfmt-runner/6383fbb0bd22a21c0edf5b699425504d9f0a958a/src/cljfmt_runner/fix.clj
clojure
(ns cljfmt-runner.fix (:require [cljfmt-runner.core :refer :all])) (defn -main [& args] (let [dirs (search-dirs (parse-args args) (config)) checks (check-all dirs) failed (filter #(not (:correct? %)) checks)] (println (str "Checked " (count checks) " file(s)")) (if (< 0 (count failed)) ...
9068577bf4bc47f416db73b586beff80abbe6ab23df5e23d260718596359eeb0
VictorTaelin/Caramel
Caramel.hs
module Caramel where import Control.Applicative ((<*>),(<$>)) import Control.Monad (msum,replicateM) import Data.Char import Data.List (intercalate,foldl1',unfoldr,dropWhileEnd) import Data.List.Split (splitOn) import Data.Maybe (listToMaybe,fromJust,isJust) import Text.ParserCombinators.ReadP import Text.Printf impor...
null
https://raw.githubusercontent.com/VictorTaelin/Caramel/4f77603cf5674e4187693b381c79316d9eac16dc/src/Caramel.hs
haskell
Does not deal with parse errors properly (TODO). The pre-processing just removes comments and empty lines removes empty lines removes endline spaces removes comments A term is one of the syntax sugars provided by the DSL, optionally followed by local definitions. A variable. A natural number literal. A list. ...
module Caramel where import Control.Applicative ((<*>),(<$>)) import Control.Monad (msum,replicateM) import Data.Char import Data.List (intercalate,foldl1',unfoldr,dropWhileEnd) import Data.List.Split (splitOn) import Data.Maybe (listToMaybe,fromJust,isJust) import Text.ParserCombinators.ReadP import Text.Printf impor...
c16627e595b26eb4c71c83bd047124d41e8987ca32c764500d5e3714800fbf40
rebar/rebar
rebar_xref.erl
-*- erlang - indent - level : 4;indent - tabs - mode : nil -*- %% ex: ts=4 sw=4 et %% ------------------------------------------------------------------- %% rebar : Erlang Build Tools %% Copyright ( c ) 2009 ( ) %% %% Permission is hereby granted, free of charge, to any person obtaining a copy %% of this softw...
null
https://raw.githubusercontent.com/rebar/rebar/b6d309417c502ca243f810e5313bea36951ef038/src/rebar_xref.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 ) 2009 ( ) 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...
9cc958cf659f252e58f52087d110fa56b6dcb5a6792ad4703d5b76818d84139c
jeremysinger/cw-scraper
Main.hs
module Main where import Text.HTML.Scalpel import WikiScrapeLib countries :: [String] countries = [ "Scotland", "England", "United_Kingdom", "USA", "Brazil", "France", "Germany", "Italy", "Japan", "China", "...
null
https://raw.githubusercontent.com/jeremysinger/cw-scraper/3ff377ffeac2f0e27c895e24d6e2dfeb5a042192/app/Main.hs
haskell
module Main where import Text.HTML.Scalpel import WikiScrapeLib countries :: [String] countries = [ "Scotland", "England", "United_Kingdom", "USA", "Brazil", "France", "Germany", "Italy", "Japan", "China", "...
5b86a5a41fab006bcdc9d3311e7a4bbaf2199767425c98326b6e4612e392d345
c-cube/olinq
OLinq_json.mli
This file is free software , part of OLinq . See file " license " for more details . * { 1 Interface to Yojson } The type { ! is basically { ! Yojson.Safe.json } { b STATUS : EXPERIMENTAL } The type {!json} is basically {!Yojson.Safe.json} {b STATUS: EXPERIMENTAL} *) type ('a, +'card) que...
null
https://raw.githubusercontent.com/c-cube/olinq/58e495f419e396b63d7391571cd0c40749c6c821/src/OLinq_json.mli
ocaml
* Assuming the json is an object, obtain the given key, otherwise empty * If the json is a list, enter each of its element * [map_list f j] maps [f] over each element of [j], if [j] is a list, and replaces each element with the resulting json value, and wraps those again into a json list * [map_assoc f j] ma...
This file is free software , part of OLinq . See file " license " for more details . * { 1 Interface to Yojson } The type { ! is basically { ! Yojson.Safe.json } { b STATUS : EXPERIMENTAL } The type {!json} is basically {!Yojson.Safe.json} {b STATUS: EXPERIMENTAL} *) type ('a, +'card) que...
efebc4abb5b66c805287a513644163fe44ef14dfd858d2216b08d7ffa46a11d4
beala/symbolic
Main.hs
module Main where import Foundation import qualified Data.Map.Strict as M import qualified Data.Tree as T import Concrete import Util import Programs import SMT import Symbolic main :: IO () main = do args <- getArgs let trace = elem "-t" args let prog = listToProgram addInputsPrintOver15 putStrLn $ show pr...
null
https://raw.githubusercontent.com/beala/symbolic/439bd8670d9e337a7d6a566b3af9d80ec239eafe/src/Main.hs
haskell
run trace prog (0, M.empty, [])
module Main where import Foundation import qualified Data.Map.Strict as M import qualified Data.Tree as T import Concrete import Util import Programs import SMT import Symbolic main :: IO () main = do args <- getArgs let trace = elem "-t" args let prog = listToProgram addInputsPrintOver15 putStrLn $ show pr...
e4c24a80e2c90b6c15b948bc981cb5b540df5aa4dcf16e8354f95250b764a062
rlepigre/pml
assoc.mli
type key = string type 'a t val empty : 'a t val length : 'a t -> int val is_empty : 'a t -> bool val add : string -> 'a -> 'a t -> 'a t val mem : string -> 'a t -> bool val singleton : string -> 'a -> 'a t val find : string -> 'a t -> 'a val map : ('a -> 'b) -> 'a t -> 'b t val mapi : (string -> 'a -> 'b) ->...
null
https://raw.githubusercontent.com/rlepigre/pml/cdfdea0eecc6767b16edc6a7bef917bc9dd746ed/src/util/assoc.mli
ocaml
type key = string type 'a t val empty : 'a t val length : 'a t -> int val is_empty : 'a t -> bool val add : string -> 'a -> 'a t -> 'a t val mem : string -> 'a t -> bool val singleton : string -> 'a -> 'a t val find : string -> 'a t -> 'a val map : ('a -> 'b) -> 'a t -> 'b t val mapi : (string -> 'a -> 'b) ->...
722fe9973622bdc6f712a8528c79d4823e93d1a8e57188622ceab567ce58032c
maoe/lifted-async
Reader.hs
# LANGUAGE CPP # # LANGUAGE TemplateHaskell # module Test.Async.Reader ( readerTestGroup ) where import Control.Monad.Reader import Data.Maybe (isJust, isNothing) import Control.Concurrent.Lifted import Control.Exception.Lifted as E import Test.Tasty.ExpectedFailure #if MIN_VERSION_monad_control(1, 0, 0) import C...
null
https://raw.githubusercontent.com/maoe/lifted-async/922f5469acb09d66e4dbb996167f963cc811d52a/tests/Test/Async/Reader.hs
haskell
poll twice, just to check we don't deadlock poll twice, just to check we don't deadlock
# LANGUAGE CPP # # LANGUAGE TemplateHaskell # module Test.Async.Reader ( readerTestGroup ) where import Control.Monad.Reader import Data.Maybe (isJust, isNothing) import Control.Concurrent.Lifted import Control.Exception.Lifted as E import Test.Tasty.ExpectedFailure #if MIN_VERSION_monad_control(1, 0, 0) import C...
21bfae4117bfef55b7ed7a2b3068dd53cddbd17046e196195bc8dcb0ce527dd0
alanzplus/EOPL
1.32-test.rkt
#lang eopl (require "1.31.rkt") (require rackunit "1.32.rkt") (require rackunit/text-ui) (define input-tree (interior-node 'root (interior-node 'left (leaf 26) (leaf 25)) (interior-node 'right (leaf 20) '()))) (define double-tree-tree (interior-node 'root (interior-node 'left ...
null
https://raw.githubusercontent.com/alanzplus/EOPL/d7b06392d26d93df851d0ca66d9edc681a06693c/EOPL/ch1/1.32-test.rkt
racket
#lang eopl (require "1.31.rkt") (require rackunit "1.32.rkt") (require rackunit/text-ui) (define input-tree (interior-node 'root (interior-node 'left (leaf 26) (leaf 25)) (interior-node 'right (leaf 20) '()))) (define double-tree-tree (interior-node 'root (interior-node 'left ...
9d49d6ee84634ccee244bc2c1ffbac3de740bb5dcd500c3642f02e22ce4d6635
alex-hhh/ActivityLog2
pict-util.rkt
#lang racket/base (require pict racket/class racket/draw racket/format "wkstep.rkt") (provide make-step-pict make-repeat-pict-top make-repeat-pict-bottom total-width) (define bg-color (make-object color% #xff #xf8 #xdc 0.8)) (define repeat-bg-color (mak...
null
https://raw.githubusercontent.com/alex-hhh/ActivityLog2/36a4bb8af45db19cea02e982e22379acb18d0c49/rkt/workout-editor/pict-util.rkt
racket
steel blue4 snow spacer
#lang racket/base (require pict racket/class racket/draw racket/format "wkstep.rkt") (provide make-step-pict make-repeat-pict-top make-repeat-pict-bottom total-width) (define bg-color (make-object color% #xff #xf8 #xdc 0.8)) (define repeat-bg-color (mak...
9cea4fa3800cef59fded64748bb7cb65cf4d18b4653d79d9b772e0df14320f1c
archaelus/erms
erms_sup.erl
%%%------------------------------------------------------------------- %%% File : erms_sup.erl @copyright Catalyst IT Ltd ( ) %%% Author : nt < > %%% Description : ERMS Top level supervisor %%% Created : 4 Oct 2006 by nt < > %%%------------------------------------------------------------------- -mod...
null
https://raw.githubusercontent.com/archaelus/erms/5dbe5e79516a16e461e7a2a345dd80fbf92ef6fa/src/erms_sup.erl
erlang
------------------------------------------------------------------- File : erms_sup.erl Description : ERMS Top level supervisor ------------------------------------------------------------------- API Supervisor callbacks ==================================================================== API functions ======...
@copyright Catalyst IT Ltd ( ) Author : nt < > Created : 4 Oct 2006 by nt < > -module(erms_sup). -behaviour(supervisor). -export([start_link/1, child_pids/0]). -export([init/1]). -define(SERVER, ?MODULE). Function : start_link ( ) - > { ok , Pid } | ignore | { error , Error } start_link...
fa010a3e61f11ba2150b5364739dbc1980217c0a568a426594af77e03e306203
Clozure/ccl-tests
nset-difference.lsp
;-*- Mode: Lisp -*- Author : Created : Sun Apr 20 07:44:44 2003 Contains : Tests of NSET - DIFFERENCE (in-package :cl-test) (compile-and-load "cons-aux.lsp") (deftest nset-difference.1 (nset-difference nil nil) nil) (deftest nset-difference.2 (let ((result (nset-difference-with-check '(a b ...
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/nset-difference.lsp
lisp
-*- Mode: Lisp -*- Verify that the :test argument is called with the arguments in the correct order Order of argument evaluation tests Keyword tests Error tests
Author : Created : Sun Apr 20 07:44:44 2003 Contains : Tests of NSET - DIFFERENCE (in-package :cl-test) (compile-and-load "cons-aux.lsp") (deftest nset-difference.1 (nset-difference nil nil) nil) (deftest nset-difference.2 (let ((result (nset-difference-with-check '(a b c) nil))) (check-nse...
ec500225eb10847b8a8fd028ebce04a32f9076612cf06ca826bd2c35d32328d3
zshipko/libirmin
type.ml
module Make (I : Cstubs_inverted.INTERNAL) = struct open Util.Make (I) let () = fn "type_unit" (void @-> returning ty) (fun () -> Root.create_ty Irmin.Type.unit) let () = fn "type_bool" (void @-> returning ty) (fun () -> Root.create_ty Irmin.Type.bool) let () = fn "type_in...
null
https://raw.githubusercontent.com/zshipko/libirmin/43d6d3da46d4f824ee0a342cfd7c9dfc46619eb5/src/type.ml
ocaml
module Make (I : Cstubs_inverted.INTERNAL) = struct open Util.Make (I) let () = fn "type_unit" (void @-> returning ty) (fun () -> Root.create_ty Irmin.Type.unit) let () = fn "type_bool" (void @-> returning ty) (fun () -> Root.create_ty Irmin.Type.bool) let () = fn "type_in...
a517b214ac843056b4b109552b9d2b1dca0831422b181a9bcba63331780680cb
bondy-io/bondy
bondy_gproc.erl
%% ============================================================================= %% bondy_gproc.erl - %% Copyright ( c ) 2016 - 2022 Leapsight . 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. %% ...
null
https://raw.githubusercontent.com/bondy-io/bondy/a1267e7e5526db24f278e12315020753f3168b44/apps/bondy/src/bondy_gproc.erl
erlang
============================================================================= bondy_gproc.erl - 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 COND...
Copyright ( c ) 2016 - 2022 Leapsight . 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(bondy_gproc). -export([local_name/1]). -export([lookup_pid/1]). -export([lookup_pid/2]). -export([r...
71d569b7bdc092e5dd3eb72a8db12c441ad98bb5aa5ba05cdf60d5984cfd4ffa
ConsenSys/constellation
Sqlite.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE QuasiQuotes # # LANGUAGE RecordWildCards # {-# LANGUAGE StrictData #-} module Constellation.Node.Storage.Sqlite where import ClassyPrelude hiding (fold, delete, hash) import Control.Monad (void) import Crypto.Hash (Digest, SHA3_512, hash) imp...
null
https://raw.githubusercontent.com/ConsenSys/constellation/8fcd2d38b097da5242f511d2fb2149a9764f2f7b/Constellation/Node/Storage/Sqlite.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # TODO: Batching of bursty INSERTs TODO: Prepare all statements used TODO: Error out when the key already exists (collisions) [] -> Left "load: No payload found" TODO: In testStorage, don't rely on the presence of the strings below
# LANGUAGE NoImplicitPrelude # # LANGUAGE QuasiQuotes # # LANGUAGE RecordWildCards # module Constellation.Node.Storage.Sqlite where import ClassyPrelude hiding (fold, delete, hash) import Control.Monad (void) import Crypto.Hash (Digest, SHA3_512, hash) import Data.Binary (encode, decode) import Data.ByteArray.Encoding...
23861e72d38b0515205ae45c7898d2e3094dcc6b48ae235d06f6bdf03feaf8b8
yoshihiro503/ocamltter
llist.ml
open Util type 'a llist = Nil | Cons of 'a * 'a llist Lazy.t let hd = function | Nil -> failwith "hd" | Cons (x, _xs) -> x let tl = function | Nil -> failwith "tl" | Cons (_x, xs) -> !$xs let rec take n l = match n, l with | 0, _ -> [] | _n, Nil -> [] | n, Cons (x, xs) -> x :: take (n-1) !$xs let rec map f ...
null
https://raw.githubusercontent.com/yoshihiro503/ocamltter/be7ac68c8076bc2ca8ccec216d6647c94ec9f814/lib/llist.ml
ocaml
open Util type 'a llist = Nil | Cons of 'a * 'a llist Lazy.t let hd = function | Nil -> failwith "hd" | Cons (x, _xs) -> x let tl = function | Nil -> failwith "tl" | Cons (_x, xs) -> !$xs let rec take n l = match n, l with | 0, _ -> [] | _n, Nil -> [] | n, Cons (x, xs) -> x :: take (n-1) !$xs let rec map f ...
fcbbb9e672c3e6cc26314b9bb5ce5d26ab64783a9c18fc378f826ea6a665d3b0
OCamlPro/ocp-build
ocpPervasives.ml
(**************************************************************************) (* *) (* Typerex Libraries *) (* *) Copyrigh...
null
https://raw.githubusercontent.com/OCamlPro/ocp-build/56aff560bb438c12b2929feaf8379bc6f31b9840/libs/ocplib-lang/ocpPervasives.ml
ocaml
************************************************************************ Typerex Libraries ...
Copyright 2011 - 2017 OCamlPro SAS the GNU Lesser General Public License version 2.1 , with the let decr x = x := !x - 1
80534b27bd13f1d1cb89a681a0b990dc309688e061aa0693201bcbe65d40e96e
5HT/ant
PDF.mli
open XNum; type pdf_value = [ Null | Bool of bool | Int of int | Float of float | String of IO.irstream | Stream of pdf_dictionary and IO.irstream | Symbol of string | Array of list pdf_value | Dictionary of pdf_dictionary | Reference of int and int ] and pdf_dictionary = list (string * pdf_value); type pdf_file 'a;...
null
https://raw.githubusercontent.com/5HT/ant/6acf51f4c4ebcc06c52c595776e0293cfa2f1da4/Runtime/PDF.mli
ocaml
open XNum; type pdf_value = [ Null | Bool of bool | Int of int | Float of float | String of IO.irstream | Stream of pdf_dictionary and IO.irstream | Symbol of string | Array of list pdf_value | Dictionary of pdf_dictionary | Reference of int and int ] and pdf_dictionary = list (string * pdf_value); type pdf_file 'a;...
c868411554fa9fd18c941ba5f32c4013e1c80f6f574ec7abeb50172594922daa
WillSewell/pusher-http-haskell
Webhook.hs
module Network.Pusher.Webhook ( Webhooks (..), WebhookEv (..), WebhookPayload (..), parseAppKeyHdr, parseAuthSignatureHdr, parseWebhooksBody, verifyWebhooksBody, parseWebhookPayloadWith, ) where import qualified Crypto.Hash as HASH import qualified Crypto.MAC.HMAC as HMAC import Data.Ae...
null
https://raw.githubusercontent.com/WillSewell/pusher-http-haskell/393e5d3269095ed3435c5a995bbf2d7ccfe3d80c/src/Network/Pusher/Webhook.hs
haskell
| A Webhook is received by POST request from Pusher to notify your server of timestamp if batch events is enabled. response to events your users may trigger. | A channel has become vacated. There are 0 subscribers. | A new user has subscribed to a presence channel. | A user has unsubscribed from a presence chan...
module Network.Pusher.Webhook ( Webhooks (..), WebhookEv (..), WebhookPayload (..), parseAppKeyHdr, parseAuthSignatureHdr, parseWebhooksBody, verifyWebhooksBody, parseWebhookPayloadWith, ) where import qualified Crypto.Hash as HASH import qualified Crypto.MAC.HMAC as HMAC import Data.Ae...
1ae5972406d75349f4b2682cd0c40369b7cc87b87dc0eee5091d1c2d9e1c5938
kappelmann/engaging-large-scale-functional-programming
Exercise04.hs
module Exercise04 where rudolph :: String -> (Int,Int) rudolph "" = (0,1) rudolph s = case x of [] -> (0,1) _ -> (z, length $ filter (\y -> z == length y) x) where x = filter isValid (substrings s) z = maximum $ map length x substrings :: String -> [String...
null
https://raw.githubusercontent.com/kappelmann/engaging-large-scale-functional-programming/8ed2c056fbd611f1531230648497cb5436d489e4/resources/contest/example_data/04/uploads/tumbum/Exercise04.hs
haskell
module Exercise04 where rudolph :: String -> (Int,Int) rudolph "" = (0,1) rudolph s = case x of [] -> (0,1) _ -> (z, length $ filter (\y -> z == length y) x) where x = filter isValid (substrings s) z = maximum $ map length x substrings :: String -> [String...
033fb3db30017f3466dc32e5ecff389f6a8e6e0ccdd05329a9d37d3c7033f882
AshleyYakeley/Truth
Tuple.hs
module Changes.Core.Model.Tuple ( tupleReference , pairReferences , tuplePremodel , tupleModel , pairModels , pairReadOnlyModels , contextModels ) where import Changes.Core.Edit import Changes.Core.Import import Changes.Core.Lens import Changes.Core.Model.EditContext import Changes.Core...
null
https://raw.githubusercontent.com/AshleyYakeley/Truth/2817d5e36bd1dc5de932d808026098b6c35e7185/Changes/changes-core/lib/Changes/Core/Model/Tuple.hs
haskell
module Changes.Core.Model.Tuple ( tupleReference , pairReferences , tuplePremodel , tupleModel , pairModels , pairReadOnlyModels , contextModels ) where import Changes.Core.Edit import Changes.Core.Import import Changes.Core.Lens import Changes.Core.Model.EditContext import Changes.Core...
02218a6c5f60b63cb901b44289822b7b6ed77cb15fa0bc19235702ed9289da87
okeuday/erlbench
pqueue_priorities41.erl
-*-Mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*- ex : set utf-8 sts=4 ts=4 sw=4 et : -module(pqueue_priorities41). -export([test/0, test/1, get/3, set/3]). -include("erlbench.hrl"). data1() -> priority_queue:new(). data2() -> pqueue:new(). data3() -> ...
null
https://raw.githubusercontent.com/okeuday/erlbench/9fc02a2e748b287b85f6e9641db6b2ca68791fa4/src/pqueue_priorities41.erl
erlang
-*-Mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*- ex : set utf-8 sts=4 ts=4 sw=4 et : -module(pqueue_priorities41). -export([test/0, test/1, get/3, set/3]). -include("erlbench.hrl"). data1() -> priority_queue:new(). data2() -> pqueue:new(). data3() -> ...
fa2e379d88bdbee08c1899f9f5b63fbda5ce54a9e866ae976b9815052e01d763
phadej/language-pts
Hurkens.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # module Language.PTS.Examples.Hurkens ( hurkensScript, defineU, ) where import Data.String (IsString) import Language.PTS | /A Simplification of Girard 's Paradox/ by Hurkens ( TLCA ' 95 ) -- Hurkens ' version fails in HOL , there a...
null
https://raw.githubusercontent.com/phadej/language-pts/761e5b92b14506b75164bd3162487df2d7fbfa93/src/Language/PTS/Examples/Hurkens.hs
haskell
# LANGUAGE OverloadedStrings # λ» :define ¬ : ⋆ → ⋆ = λ P → P → ⊥ error: • when checking expression It fails even sooner in predicative systems, because we cannot define ⊥ purely; to begin with: λ» :define ⊥ : 𝓤 = ∀ x → x error: error: λ» :define ¬ : ⋆ → ⋆ = λ P → P → ⊥ λ» :define lemma : Θ = λ p t...
# LANGUAGE ScopedTypeVariables # module Language.PTS.Examples.Hurkens ( hurkensScript, defineU, ) where import Data.String (IsString) import Language.PTS | /A Simplification of Girard 's Paradox/ by Hurkens ( TLCA ' 95 ) Hurkens ' version fails in HOL , there are no ( , □ , □ ) -rule : > > > spe...
6f1efd96f8801790dd017c1540a175531dc6950804f164564788819063626f0c
digitallyinduced/ihp
Types.hs
{-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE AllowAmbiguousTypes # # LANGUAGE InstanceSigs , UndecidableInstances , AllowAmbiguousTypes , ScopedTypeVariables , IncoherentInstances # module IHP.View.Types (...
null
https://raw.githubusercontent.com/digitallyinduced/ihp/01ab73a32c7ba544258c94c029a3511d42c459c9/IHP/View/Types.hs
haskell
# LANGUAGE FlexibleContexts # | A layout is just a function taking a view and returning a new view. __Example:__ A very basic html layout. > myLayout :: Layout > myLayout view = [hsx| > <html> > <body> > {view} > </body> > </html> > |] ^ The record this form is base...
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE AllowAmbiguousTypes # # LANGUAGE InstanceSigs , UndecidableInstances , AllowAmbiguousTypes , ScopedTypeVariables , IncoherentInstances # module IHP.View.Types ( FormField (..) , SubmitButton (..) , F...
5321a43b0d7db51f484e5f30d11c99a1c1c24c594e10575ca444ea27c8a8e655
phadej/cabal-extras
MacroPass.hs
----------------------------------------------------------------------------- -- | -- Module : MacroPass Copyright : 2004 -- Licence : LGPL -- Maintainer : < > -- Stability : experimental -- Portability : All -- Perform a cpp.second - pass , accumulating \#define 's and \#undef 's , -...
null
https://raw.githubusercontent.com/phadej/cabal-extras/f98c44a1561ca349e0e4dc3d4113e98e61262f2e/cabal-hasklint/cpphs/Language/Preprocessor/Cpphs/MacroPass.hs
haskell
--------------------------------------------------------------------------- | Module : MacroPass Licence : LGPL Stability : experimental Portability : All whilst doing symbol replacement and macro expansion. --------------------------------------------------------------------------- | Walk throu...
Copyright : 2004 Maintainer : < > Perform a cpp.second - pass , accumulating \#define 's and \#undef 's , module Language.Preprocessor.Cpphs.MacroPass ( macroPass , preDefine , defineMacro , macroPassReturningSymTab ) where import Language.Preprocessor.Cpphs.HashDefine (HashDefine(..), e...
386ede11a445783ee9e287a4bc3ee2208c50c982234e48441813b18d6053464d
BinaryAnalysisPlatform/FrontC
frontc.ml
* $ Id$ * Copyright ( c ) 2003 , < > * * Library entry point .. * $Id$ * Copyright (c) 2003, Hugues Cassé <> * * Library entry point.. *) Old history . * * 1.0 2.18.99 Hugues Cassé First release . * 2.0 3.22.99 Hugues Cassé Full ANSI C and GCC attributes supporte...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/FrontC/c5b8ab5ce95cb82014a71cef3382f969b0763d6b/frontc/frontc.ml
ocaml
* * Parameters for building the reader handler. * Use the C preprocessor. * Path to the preprocessor. * Use the given directory for retrieving includes. * Use the given channel for outputting errors. * Is this session interactive (from console). * Record line numbers in the C abstract trees (default to false). ...
* $ Id$ * Copyright ( c ) 2003 , < > * * Library entry point .. * $Id$ * Copyright (c) 2003, Hugues Cassé <> * * Library entry point.. *) Old history . * * 1.0 2.18.99 Hugues Cassé First release . * 2.0 3.22.99 Hugues Cassé Full ANSI C and GCC attributes supporte...
50756100fe70587bcac71b3e4a044d933faa8c96e392945318a23624c12b6e5f
ideas-edu/ideas
Templates.hs
{-# LANGUAGE OverloadedStrings #-} ----------------------------------------------------------------------------- Copyright 2019 , Ideas project team . This file is distributed under the terms of the Apache License 2.0 . For more information , see the files " LICENSE.txt " and " NOTICE.txt " , which are incl...
null
https://raw.githubusercontent.com/ideas-edu/ideas/13bc304e78aa78d0dec6e0e5e9e7a31aa6715390/src/Ideas/Text/HTML/Templates.hs
haskell
# LANGUAGE OverloadedStrings # --------------------------------------------------------------------------- --------------------------------------------------------------------------- | Maintainer : Stability : provisional W3CSS templates for html pages -----------------------------------------------...
Copyright 2019 , Ideas project team . This file is distributed under the terms of the Apache License 2.0 . For more information , see the files " LICENSE.txt " and " NOTICE.txt " , which are included in the distribution . Portability : portable ( depends on ghc ) module Ideas.Text.HTML.Templates ...
2fa11dcf7fc98bb1a376590623443b73ca92bbda7460d097a96ab619610b0ed5
mbj/stratosphere
CaptchaActionProperty.hs
module Stratosphere.WAFv2.WebACL.CaptchaActionProperty ( module Exports, CaptchaActionProperty(..), mkCaptchaActionProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.WAFv2.WebACL.CustomRequestH...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/wafv2/gen/Stratosphere/WAFv2/WebACL/CaptchaActionProperty.hs
haskell
# SOURCE #
module Stratosphere.WAFv2.WebACL.CaptchaActionProperty ( module Exports, CaptchaActionProperty(..), mkCaptchaActionProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties data CaptchaActionPrope...
9362804cf2f9a0aaadfbe0710a9ee65a5ec727a4dd979955f343f00822d8d179
callum-oakley/advent-of-code
intcode.clj
(ns aoc.2019.intcode) (defn parse "Parse a string as an Intcode program" [s] (->> s (re-seq #"-?\d+") (mapv parse-long))) (defn- run* [mem head base] (let [mode (vec (rest (reverse (str (mem head))))) ! #(case (get mode %) \1 (+ % head) \2 (+ base (mem (+ % head))) ...
null
https://raw.githubusercontent.com/callum-oakley/advent-of-code/16a98d33fd8158a1b4f00776e74ead3242519833/src/aoc/2019/intcode.clj
clojure
(ns aoc.2019.intcode) (defn parse "Parse a string as an Intcode program" [s] (->> s (re-seq #"-?\d+") (mapv parse-long))) (defn- run* [mem head base] (let [mode (vec (rest (reverse (str (mem head))))) ! #(case (get mode %) \1 (+ % head) \2 (+ base (mem (+ % head))) ...
6629aa70f897bf08840fab711ddfb013c6b072f091e979d0103e07a84bd4a72c
gregr/first-order-miniKanren
examples.rkt
#lang racket (provide (all-defined-out) (all-from-out "tools.rkt" racket/pretty)) (require "tools.rkt" racket/pretty) (print-as-expression #f) (pretty-print-abbreviate-read-macros #f) (define-syntax example (syntax-rules () ((_ e) (begin (newline) (pretty-print 'e) (displayln "...
null
https://raw.githubusercontent.com/gregr/first-order-miniKanren/c350a8f3080181f24205e75e234f6933189bc440/examples.rkt
racket
Examples We can change our search strategy by choosing a different way to step. `step` gives us a typical interleaving search. With a typical search strategy, there is no refutationally complete running in the forward direction, but not in the backward direction. Using a refutationally complete search strategy s...
#lang racket (provide (all-defined-out) (all-from-out "tools.rkt" racket/pretty)) (require "tools.rkt" racket/pretty) (print-as-expression #f) (pretty-print-abbreviate-read-macros #f) (define-syntax example (syntax-rules () ((_ e) (begin (newline) (pretty-print 'e) (displayln "...
ae781eec5b8a42d01d174f3f3680442bf7b3d18b8b069354fb5114f96282263a
Timothy-G-Griffin/cc_cl_cam_ac_uk
ackermann.ml
Let 's derive the " Ackermann Machine " ! To use : fire up ocaml and then # use " ackermann.ml " ; ; To use: fire up ocaml and then #use "ackermann.ml";; *) Start with 's function : let rec ack (x, y) = if x = 0 then y + 1 else if y = 0 then ack(x-1, 1) else ack...
null
https://raw.githubusercontent.com/Timothy-G-Griffin/cc_cl_cam_ac_uk/aabaf64c997301ea69060a1b69e915b9d1031573/basic_transformations/ackermann.ml
ocaml
Now "defunctionalise" and represent continuations as lists first, some pretty printing for states .... reverse stack so that it grows to the right, shrinks to the left reverse stack so that it grows to the right, shrinks to the left now, the machine
Let 's derive the " Ackermann Machine " ! To use : fire up ocaml and then # use " ackermann.ml " ; ; To use: fire up ocaml and then #use "ackermann.ml";; *) Start with 's function : let rec ack (x, y) = if x = 0 then y + 1 else if y = 0 then ack(x-1, 1) else ack...
d5b2e09baa6c4edbc9e85d970238956965dfc0fd0ca6f64bbe4f02b6c31dbe35
jaspervdj/advent-of-code
25.hs
{-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE LambdaCase #-} # LANGUAGE RecordWildCards # import AdventOfCode.Dijkstra (bfs, bfsGoal) import AdventOfCode.IntCode import AdventOfCode.Main import qualified AdventOfCode.NanoParser as NP import Control.Monad (guard, ...
null
https://raw.githubusercontent.com/jaspervdj/advent-of-code/75f426c4fc149cf6ab5fb6d95c96f3132097bdfd/2019/25.hs
haskell
# LANGUAGE DeriveFunctor # # LANGUAGE LambdaCase # ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Record current location....
# LANGUAGE RecordWildCards # import AdventOfCode.Dijkstra (bfs, bfsGoal) import AdventOfCode.IntCode import AdventOfCode.Main import qualified AdventOfCode.NanoParser as NP import Control.Monad (guard, msum) import Control.Monad.State (StateT, gets, modi...
564f80265ce91238e794afa59a7c1a83d211604f815df1c9c65d2203fea7a177
ayamada/cac2020
dataurl.cljs
(ns cac2020.dataurl (:require-macros [cac2020.macro :as m]) (:require ["pixi.js" :as pixi])) (defn- t [dataurl] (pixi/Texture.from dataurl)) ;;; 煙/雲。32x32。 (defn smoke [] (t (m/str* "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf" "8/9hAAABNUlEQVQ4jYWToY6DUBBFGxIEAoHBYBAkiCpkTSUGi...
null
https://raw.githubusercontent.com/ayamada/cac2020/99d249ce9b9b0e2cf856ddeaea22796ce60d4fa7/src/main/cac2020/dataurl.cljs
clojure
煙/雲。32x32。 葉。16x16 p8金髪緑服。12x15。 distance field処理済の、中塗りされた円。16x16。 星。32x32。
(ns cac2020.dataurl (:require-macros [cac2020.macro :as m]) (:require ["pixi.js" :as pixi])) (defn- t [dataurl] (pixi/Texture.from dataurl)) (defn smoke [] (t (m/str* "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf" "8/9hAAABNUlEQVQ4jYWToY6DUBBFGxIEAoHBYBAkiCpkTSUGi8GgVmFwqDW4ui" ...
01e60d072157f94513dd66ca671bc4e9b464ecee29c7b21888b3fb3e5b9bfb09
OCamlPro/liquidity
liquidClientTypes.ml
open LiquidClientUtils open Dune_Network_Lib let int_string = Json_encoding.(conv string_of_int int_of_string string) let bytes_hex = let open Json_encoding in conv (fun b -> Hex.show (Hex.of_bytes b)) (fun h -> Hex.to_bytes (`Hex h)) string type error = Json_repr.any let tez_encoding = let open J...
null
https://raw.githubusercontent.com/OCamlPro/liquidity/3578de34cf751f54b9e4c001a95625d2041b2962/tools/client/liquidClientTypes.ml
ocaml
open LiquidClientUtils open Dune_Network_Lib let int_string = Json_encoding.(conv string_of_int int_of_string string) let bytes_hex = let open Json_encoding in conv (fun b -> Hex.show (Hex.of_bytes b)) (fun h -> Hex.to_bytes (`Hex h)) string type error = Json_repr.any let tez_encoding = let open J...
04127dd187fb85b20c72bbfc9c17c5c88935187a3ef9deb4d72695973ffb0857
eareese/htdp-exercises
176-transpose-matrix.rkt
#lang htdp/bsl ;;--------------------------------------------------------------------------------------------------- Exercise 176 . Mathematics teachers may have introduced you to matrix calculations by now . In principle , matrix just means rectangle of numbers . Here is one possible data representation for ;; mat...
null
https://raw.githubusercontent.com/eareese/htdp-exercises/a85ff3111d459dda0e94d9b463d01a09accbf9bf/part02-arbitrarily-large-data/176-transpose-matrix.rkt
racket
--------------------------------------------------------------------------------------------------- matrices: A Matrix is one of : ; – (cons Row '()) – ( cons Row Matrix ) ; constraint all rows in matrix are of the same length ; An Row is one of: ; – '() – ( cons Number Row ) Matrix ->...
#lang htdp/bsl Exercise 176 . Mathematics teachers may have introduced you to matrix calculations by now . In principle , matrix just means rectangle of numbers . Here is one possible data representation for Note the constraints on matrices . Study the data definition and translate the two - by - two matrix (de...
fb4c83ddca450528490508afb7dae1a5129b76a80b9dbe7af64efdf75b59b9f6
rogerallen/tweegeemee
core_test.clj
(ns tweegeemee.core-test (:require [clojure.test :refer :all] [tweegeemee.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
null
https://raw.githubusercontent.com/rogerallen/tweegeemee/e734c1ea901e66d443b92b6879e24476b899bf84/test/tweegeemee/core_test.clj
clojure
(ns tweegeemee.core-test (:require [clojure.test :refer :all] [tweegeemee.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
bc7e51443007f4045da852c58f92a1f6dd9fffa669eb4c659a95fc709831fedd
janestreet/ppx_css
make_css.ml
open! Core open! Inline_css (* Because the top-level side effects require the module to be linkable, we introduce this call to [Callback.register] which forces the lib to be linked. In a real application, you wouldn't need to do this, because you'd be using the components in your app. *) let () = Callb...
null
https://raw.githubusercontent.com/janestreet/ppx_css/5848e1dc76b0ecf504e3b01d07d05741759cee72/inline_css/example/bin/make_css.ml
ocaml
Because the top-level side effects require the module to be linkable, we introduce this call to [Callback.register] which forces the lib to be linked. In a real application, you wouldn't need to do this, because you'd be using the components in your app.
open! Core open! Inline_css let () = Callback.register "keeping this value alive" Inline_css_example_lib.app let () = Inline_css.print_for_testing ()
34381db46d6a65ee532411dfe1c010dcf4473e1648973d3e6da8bf88085f0b03
philnguyen/soft-contract
hyphenate.rkt
#lang racket/base bg : removed XML and from the original ; this only works on strings now (provide hyphenate unhyphenate ) ;; ----------------------------------------------------------------------------- (require require-typed-check (only-in racket/string string-replace string-join) (only-in racket/list pa...
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/gradual-typing-benchmarks/quadMB/hyphenate.rkt
racket
this only works on strings now ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- ==================================================...
#lang racket/base (provide hyphenate unhyphenate ) (require require-typed-check (only-in racket/string string-replace string-join) (only-in racket/list partition drop-right drop make-list filter-not take splitf-at)) (require (only-in "exceptions.rkt" default-exceptions)) (require (only-in "patterns-hashed.r...
49accd505603a5f8a79bcbe4558a568016fa808cd19349c8a6b5f600a14ad2e5
wangzhe3224/cs3110
bind.ml
open Async let d1 = Reader.file_contents Sys.argv.(1) let cb = fun s -> return (String.uppercase_ascii s) let d2 = Deferred.bind d1 cb let d3 = Deferred.bind d2 (fun s -> printf "%s\n"s; return ()) let r = upon d2 (fun s -> printf "%s\n" s) let exit : unit = upon d3 (fun _ -> ignore(exit 0 : 'a Deferred.t)) let rr =...
null
https://raw.githubusercontent.com/wangzhe3224/cs3110/33c1b9662ee5ba4bd13d7ec5a116b539bf086605/labs/lab24/_build/bind.ml
ocaml
open Async let d1 = Reader.file_contents Sys.argv.(1) let cb = fun s -> return (String.uppercase_ascii s) let d2 = Deferred.bind d1 cb let d3 = Deferred.bind d2 (fun s -> printf "%s\n"s; return ()) let r = upon d2 (fun s -> printf "%s\n" s) let exit : unit = upon d3 (fun _ -> ignore(exit 0 : 'a Deferred.t)) let rr =...
36cd77cc963ca3635ab59205ab2e9f4a384b75ecfaf4cfdb7d853ea271b06136
rm-hull/project-euler
euler046.clj
EULER # 046 ;; ========== It was proposed by that every odd composite number ;; can be written as the sum of a prime and twice a square. ;; 9 = 7 + 2x1 ^ 2 15 = 7 + 2x2 ^ 2 21 = 3 + 2x3 ^ 2 25 = 7 + 2x3 ^ 2 27 = 19 + 2x2 ^ 2 33 = 31 + 2x1 ^ 2 ;; ;; It turns out that the conjecture wa...
null
https://raw.githubusercontent.com/rm-hull/project-euler/04e689e87a1844cfd83229bb4628051e3ac6a325/src/euler046.clj
clojure
========== can be written as the sum of a prime and twice a square. It turns out that the conjecture was false. What is the smallest odd composite that cannot be written as the sum of a prime and twice a square?
EULER # 046 It was proposed by that every odd composite number 9 = 7 + 2x1 ^ 2 15 = 7 + 2x2 ^ 2 21 = 3 + 2x3 ^ 2 25 = 7 + 2x3 ^ 2 27 = 19 + 2x2 ^ 2 33 = 31 + 2x1 ^ 2 (ns euler046 (:use [util.primes] [util.misc])) (defn is-goldbach-conjecture? [n] (let [double (partial *...
09947dc8d930aa8b56218b553c7e15adc9f78602ca20224a1cc8d3e7053448a1
docker-in-aws/docker-in-aws
create.cljs
(ns swarmpit.component.network.create (:require [material.icon :as icon] [material.component :as comp] [material.component.form :as form] [material.component.list-table-form :as list] [material.component.panel :as panel] [swarmpit.component.mixin :as mixin] ...
null
https://raw.githubusercontent.com/docker-in-aws/docker-in-aws/bfc7e82ac82ea158bfb03445da6aec167b1a14a3/ch16/swarmpit/src/cljs/swarmpit/component/network/create.cljs
clojure
(ns swarmpit.component.network.create (:require [material.icon :as icon] [material.component :as comp] [material.component.form :as form] [material.component.list-table-form :as list] [material.component.panel :as panel] [swarmpit.component.mixin :as mixin] ...
e4c3dab98cc74df7bd491500abe450ad01b1239dfccfa65a1e85fe4e2d57ffbc
scrintal/heroicons-reagent
chevron_up.cljs
(ns com.scrintal.heroicons.solid.chevron-up) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M11.47 7.72a.75.75 0 011.06 0l7.5 7.5a.75.75 0 11-1.06 1.06L12 9.31l-6.97 6.97a...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/solid/chevron_up.cljs
clojure
(ns com.scrintal.heroicons.solid.chevron-up) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M11.47 7.72a.75.75 0 011.06 0l7.5 7.5a.75.75 0 11-1.06 1.06L12 9.31l-6.97 6.97a...
8f271358760817ce9952ad6440f113f59705cfa2474b311288e9e963ee55cc1a
vincenthz/hs-hourglass
Compat.hs
-- | -- Module : Data.Hourglass.Compat -- License : BSD-style Maintainer : < > -- -- Basic Time conversion compatibility. -- -- This module aims to help conversion between the types from the package -- time to the package hourglass. -- -- Example of use (extracted from file Example/Time/Compat.hs): -- ...
null
https://raw.githubusercontent.com/vincenthz/hs-hourglass/36bd2e6d5d0eb316532f13285d1c533d6da297ef/Data/Hourglass/Compat.hs
haskell
| Module : Data.Hourglass.Compat License : BSD-style Basic Time conversion compatibility. This module aims to help conversion between the types from the package time to the package hourglass. Example of use (extracted from file Example/Time/Compat.hs): > import Data.Hourglass as H > import ...
Maintainer : < > > newDate = C.dateFromTAIEpoch $ T.toModifiedJulianDay $ T.localDay $ T.zonedTimeToLocalTime oldTime > : : H.TimeOfDay > C.diffTimeToTimeOfDay $ T.timeOfDayToTime $ T.localTimeOfDay $ T.zonedTimeToLocalTime oldTime > offsetTime = H.TimezoneOffset $ fromIntegral $ ...
175ca7ee6a907a9e97d8a19733c3986cdf9851031ab67f263428e2f65d596c85
manetu/temporal-clojure-sdk
promise.clj
Copyright © 2022 , Inc. All rights reserved (ns temporal.promise "Methods for managing promises from pending activities from within workflows" (:require [promesa.core :as p] [temporal.internal.promise :as pt]) (:import [temporal.internal.promise PromiseAdapter] [io.temporal.workflow W...
null
https://raw.githubusercontent.com/manetu/temporal-clojure-sdk/529c748d954d370302db685715b6248dc8e67890/src/temporal/promise.clj
clojure
Copyright © 2022 , Inc. All rights reserved (ns temporal.promise "Methods for managing promises from pending activities from within workflows" (:require [promesa.core :as p] [temporal.internal.promise :as pt]) (:import [temporal.internal.promise PromiseAdapter] [io.temporal.workflow W...
e6be18c2d9935ffbe5c58a885c1c94e7163767a70b465cc379ab20a516b82cd7
NovoLabs/gregor
defaults.clj
(ns gregor.defaults) (def default-input-buffer "Default number of messages on an input channel" 10) (def default-output-buffer "Default number of messages on an output channel" 100) (def default-timeout "Default timeout, in milliseconds" 100)
null
https://raw.githubusercontent.com/NovoLabs/gregor/017488d88abe23df1f0389080629d6f26ba2a84e/src/gregor/defaults.clj
clojure
(ns gregor.defaults) (def default-input-buffer "Default number of messages on an input channel" 10) (def default-output-buffer "Default number of messages on an output channel" 100) (def default-timeout "Default timeout, in milliseconds" 100)
9ed48275120d8465f9512ab54755be8cbec55be2534259df6b12b2e3a70f0fd3
let-def/lrgrep
CoreDependencyGraph.mli
(******************************************************************************) (* *) (* Fix *) (* ...
null
https://raw.githubusercontent.com/let-def/lrgrep/29e64174dc9617bcd1871fd2e4fd712269568324/lib/fix/CoreDependencyGraph.mli
ocaml
**************************************************************************** Fix ...
, Paris . All rights reserved . This file is distributed under the terms of the GNU Library General Public License version 2 , with a type 'data node val create: 'data -> 'data node val data: 'data node -> 'data [ predecessors node ] returns...
26d345a01c7fa46f6d3651c4b67ea7ee00f34a31b3afbe8dcf6bfd446b4776bc
iskandr/parakeet-retired
FnId.mli
include module type of UID.Make(struct let prefix = "fn" end)
null
https://raw.githubusercontent.com/iskandr/parakeet-retired/3d7e6e5b699f83ce8a1c01290beed0b78c0d0945/SSA/FnId.mli
ocaml
include module type of UID.Make(struct let prefix = "fn" end)
6f3d15e0935f155e295282c63557d3f8ea0178f061f2715efe7aa28093c451af
jedimahdi/soltan
Authentication.hs
# LANGUAGE UndecidableInstances # module Hokm.Api.Data.Authentication ( Credential (..) , User (..) , parseRawCredential ) where import Data.Aeson ( FromJSON, ToJSON ) import qualified Hokm.Api.Data.Aeson.RecordErrorFormat as Aeson import qualified Hokm.Api.Data.Byt...
null
https://raw.githubusercontent.com/jedimahdi/soltan/bc2f9c040854420b8964ad011205d6a251872fe0/backend/hokm-api/src/Hokm/Api/Data/Authentication.hs
haskell
# LANGUAGE UndecidableInstances # module Hokm.Api.Data.Authentication ( Credential (..) , User (..) , parseRawCredential ) where import Data.Aeson ( FromJSON, ToJSON ) import qualified Hokm.Api.Data.Aeson.RecordErrorFormat as Aeson import qualified Hokm.Api.Data.Byt...
b846683fcad573d629f15ce014ec3c7d129fae394fdee5c6b06011908a76ba5a
CompSciCabal/SMRTYPRTY
dann-1.2.rkt
#lang racket SICP CHAPTER 1.2 SICP EX 1.9 ; A is recursive because you have to retain the inc's ; B is iterative because each call contains all needed knowledge SICP EX 1.10 (define (A x y) (cond ((= y 0) 0) ((= x 0) (* 2 y)) ((= y 1) 2) (else (A (- x 1) (A x (- y 1)))))) 2n ...
null
https://raw.githubusercontent.com/CompSciCabal/SMRTYPRTY/4a5550789c997c20fb7256b81469de1f1fce3514/sicp/v1/chapter-1.2/dann-1.2.rkt
racket
A is recursive because you have to retain the inc's B is iterative because each call contains all needed knowledge ;;;; also fib dim some algebra take the limit for k kinds of coins, the time complexity is O(n^k). (think of each kind as having its own "dimension" of sorts) space is proportional to depth of tree...
#lang racket SICP CHAPTER 1.2 SICP EX 1.9 SICP EX 1.10 (define (A x y) (cond ((= y 0) 0) ((= x 0) (* 2 y)) ((= y 1) 2) (else (A (- x 1) (A x (- y 1)))))) 2n 2^n power tower of 2s n high EX 1.11 (define (f-rec n) (if (< n 3) n (+ (f-rec (- n 1)) ...
95f67ef63b3f1e8a25aed7f544cbe11051c82eb9971bcee26424f713385a05c5
stchang/macrotypes
lin4.rkt
#lang turnstile/base ;; same as lin.rkt, except uses define-prop, #:post, and #:join ;; instead of #:mode and #:submode ;; (didn't edit lin.rkt bc other langs like fabul use it) (extends "../ext-stlc.rkt" #:except define if begin let let* letrec λ #%app) (provide (for-syntax current-linear-type? ...
null
https://raw.githubusercontent.com/stchang/macrotypes/05ec31f2e1fe0ddd653211e041e06c6c8071ffa6/turnstile-example/turnstile/examples/linear/lin4.rkt
racket
same as lin.rkt, except uses define-prop, #:post, and #:join instead of #:mode and #:submode (didn't edit lin.rkt bc other langs like fabul use it) TODO: should these be in turnstile/mode ? this parameter defines the linear-type? function. we defining new types that are linear, modify this parameter like so: ...
#lang turnstile/base (extends "../ext-stlc.rkt" #:except define if begin let let* letrec λ #%app) (provide (for-syntax current-linear-type? linear-type? unrestricted-type? linear-mode? linear-scope linear-in-sc...
caa43ed81e7b1da50c9716ca75788c9758ed49a409770a2883c3127c03ca267a
kmonad/kmonad
IO.hs
| Module : KMonad . Keyboard . IO Description : The logic behind sending and receiving key events to the OS Copyright : ( c ) , 2019 License : MIT Maintainer : Stability : experimental Portability : non - portable ( MPTC with FD , FFI to Linux - only c - code ) Module : KMon...
null
https://raw.githubusercontent.com/kmonad/kmonad/3413f1be996142c8ef4f36e246776a6df7175979/src/KMonad/Keyboard/IO.hs
haskell
* KeySink: send keyboard events to the OS ------------------------------------------------------------------------------ | A 'KeySink' sends key actions to the OS ^ Action to acquire the keysink ^ Action to close the keysink ^ Action to write with the keysink | Emit a key to the OS -------------------------------...
| Module : KMonad . Keyboard . IO Description : The logic behind sending and receiving key events to the OS Copyright : ( c ) , 2019 License : MIT Maintainer : Stability : experimental Portability : non - portable ( MPTC with FD , FFI to Linux - only c - code ) Module : KMon...
c59d4b513c4aa50604cd73db6d822cb54a8e866ae3137dcf00ba9b898d938667
hspec/sensei
seito.hs
module Main (main) where import System.Exit import Control.Monad import qualified Data.ByteString.Lazy as L import Client main :: IO () main = do (success, output) <- client "" L.putStr output unless success exitFailure
null
https://raw.githubusercontent.com/hspec/sensei/f43a9386bafd46812dd68088b5fdfadfef722d0b/driver/seito.hs
haskell
module Main (main) where import System.Exit import Control.Monad import qualified Data.ByteString.Lazy as L import Client main :: IO () main = do (success, output) <- client "" L.putStr output unless success exitFailure
488fce37d1ec787113658d02d9b81a23135babb1ac17e35e39b4e11fc9bb6f59
boris-ci/boris
Github.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} module Boris.Http.Api.Github ( importRepositories , ImportError (..) , renderImportError , GitHubPushEvent (..) ) where import Boris.Core.Data.Build import Boris.Core.Data.Project import Boris.Core.Data.Keyed ...
null
https://raw.githubusercontent.com/boris-ci/boris/c321187490afc889bf281442ac4ef9398b77b200/boris-http/src/Boris/Http/Api/Github.hs
haskell
# LANGUAGE OverloadedStrings # } }
# LANGUAGE NoImplicitPrelude # module Boris.Http.Api.Github ( importRepositories , ImportError (..) , renderImportError , GitHubPushEvent (..) ) where import Boris.Core.Data.Build import Boris.Core.Data.Project import Boris.Core.Data.Keyed import Boris.Core.Data.Re...
0c4b464f92b9197807f568159b2fce35ca02feb7c976712cab2a1e505e47977c
well-typed/cborg
Main.hs
module Main (main) where import Test.Tasty (TestTree, defaultMain, testGroup) import qualified Tests.Reference as Reference import qualified Tests.UnitTests as UnitTests import qualified Tests.Properties as Properties import qualified Tests.Boundary as Boundary import qualified Tests.ByteOffset as ByteO...
null
https://raw.githubusercontent.com/well-typed/cborg/9be3fd5437f9d2ec1df784d5d939efb9a85fd1fb/cborg/tests/Main.hs
haskell
module Main (main) where import Test.Tasty (TestTree, defaultMain, testGroup) import qualified Tests.Reference as Reference import qualified Tests.UnitTests as UnitTests import qualified Tests.Properties as Properties import qualified Tests.Boundary as Boundary import qualified Tests.ByteOffset as ByteO...
9df58755c7ea17ec0ff1cc4a73dc4e649775215376f890a665888ba6e3686e18
samrushing/irken-compiler
t_clock_gettime.scm
;; -*- Mode: Irken -*- (require "lib/basis.scm") (require "lib/time.scm") (define (test kind) (let ((ts (clock-gettime kind))) (printf "nsec " (int ts.nsec) "\n") (printf "current time: " (int ts.sec) "." (zpad 9 (int ts.nsec)) "\n") )) (test CLOCK_REALTIME) (test CLOCK_MONOTONIC) (test CLOCK_PROCESS_C...
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/tests/t_clock_gettime.scm
scheme
-*- Mode: Irken -*-
(require "lib/basis.scm") (require "lib/time.scm") (define (test kind) (let ((ts (clock-gettime kind))) (printf "nsec " (int ts.nsec) "\n") (printf "current time: " (int ts.sec) "." (zpad 9 (int ts.nsec)) "\n") )) (test CLOCK_REALTIME) (test CLOCK_MONOTONIC) (test CLOCK_PROCESS_CPUTIME_ID)
10470093a2df8d5a1f56cf4e8db8989fea974b6429adb840aa82adfcb0e0b5de
SimulaVR/godot-haskell
VisualShaderNodeTransformCompose.hs
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.VisualShaderNodeTransformCompose () where import Data.Coerc...
null
https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/VisualShaderNodeTransformCompose.hs
haskell
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.VisualShaderNodeTransformCompose () where import Data.Coerc...
f1d489da37e2932f75f4bea3499b6fbbefb648c147d1cd9efd16d41ccd317031
proger/erldocker
erldocker_sup.erl
-module(erldocker_sup). -behaviour(supervisor). %% API -export([start_link/0]). %% Supervisor callbacks -export([init/1]). %% Helper macro for declaring children of supervisor -define(CHILD(I, Type, Args), {I, {I, start_link, Args}, permanent, 5000, Type, [I]}). %% =================================================...
null
https://raw.githubusercontent.com/proger/erldocker/dbff82656bafb96dbfbb21a70302e30aa37cbbb8/src/erldocker_sup.erl
erlang
API Supervisor callbacks Helper macro for declaring children of supervisor =================================================================== API functions =================================================================== =================================================================== Supervisor callback...
-module(erldocker_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(CHILD(I, Type, Args), {I, {I, start_link, Args}, permanent, 5000, Type, [I]}). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). init([]) -> Children = case application:get_env(erldock...
c9810b4f6e0e1e44ff5299062be1bbd93cccc29b5c8b633352125f0f3955daaa
otakar-smrz/elixir-fm
G.hs
module Elixir.Data.Sunny.Complex.G (section) where import Elixir.Lexicon lexicon = include section cluster_1 = cluster |> ".t w ^s" <| [ FaCCaL `verb` {- <.tawwa^s> -} [ ['c','a','s','t','r','a','t','e'] ], FaCALI `noun` {- <.tawA^sI> -} [ ['e'...
null
https://raw.githubusercontent.com/otakar-smrz/elixir-fm/fae5bab6dd53c15d25c1e147e7787b2c254aabf0/Haskell/ElixirFM/Elixir/Data/Sunny/Complex/G.hs
haskell
<.tawwa^s> <.tawA^sI> <mu.tawwa^s> <.tA`> <.tawwa`> <.tAwa`> <'a.tA`> <ta.tawwa`> <in.tA`> <ista.tA`> <.tA`aT> <.taw`> <.taw`aN> <.taw`Iy> <.tayyi`> <.tawA`IyaT> <ta.twI`> <mu.tAwa`aT> <'i.tA`aT> <ta.tawwu`> <ta.tawwu`Iy> <isti.tA`aT> <.tA'i`> <mu.tawwi`> <mu.tawwi`> <...
module Elixir.Data.Sunny.Complex.G (section) where import Elixir.Lexicon lexicon = include section cluster_1 = cluster |> ".t w ^s" <| [ `plural` FaCALI |< aT, cluster_2 = cluster |> ".t w `" <| [ `imperf` FUL, ...
0615cac71f1e4b898e8921a7593fd152149429eaf5b8d4d501222e195f2b124d
bittide/bittide-hardware
Hacks.hs
SPDX - FileCopyrightText : 2022 Google LLC -- SPDX - License - Identifier : Apache-2.0 # LANGUAGE FlexibleInstances # # LANGUAGE MagicHash # # LANGUAGE MultiParamTypeClasses # module Bittide.Instances.Hacks where import Clash.Prelude import qualified Clash.Explicit.Prelude as E -- | Chaotically distributes a sin...
null
https://raw.githubusercontent.com/bittide/bittide-hardware/b44dac8ee0fb14b0c6a94fcbe830fdd8d140bec4/bittide-instances/src/Bittide/Instances/Hacks.hs
haskell
| Chaotically distributes a single incoming bit to input bits of the given function. Similarly, it chaotically reduces the all output bits of a function into a single bit. Both the input and output of the function will be directly connected to a register after applying 'reducePins'. This function is useful for s...
SPDX - FileCopyrightText : 2022 Google LLC SPDX - License - Identifier : Apache-2.0 # LANGUAGE FlexibleInstances # # LANGUAGE MagicHash # # LANGUAGE MultiParamTypeClasses # module Bittide.Instances.Hacks where import Clash.Prelude import qualified Clash.Explicit.Prelude as E with garbage values , it only needs...
e03bdd3264df22aa0f57dd9c051b6c15642c787f872f6da031ca1f1fe3f4039c
mclumd/Meta-AQUA
meta-xp-procs.lisp
-*- Mode : LISP ; Syntax : Common - lisp ; Package : Meta - aqua ; Base : 10 -*- (in-package :metaaqua) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;; ;;;; The Meta-AQUA Introspective Multistrategy Learning System ;;;; Version 6 ;;;; Copyright ( C ) 1...
null
https://raw.githubusercontent.com/mclumd/Meta-AQUA/e4d4f83330fd07d1354aec245a49bde9e246c618/meta-xp-procs.lisp
lisp
Syntax : Common - lisp ; Package : Meta - aqua ; Base : 10 -*- The Meta-AQUA Introspective Multistrategy Learning System Version 6 File: meta-xp-procs.lisp ******************************************************* This program is free software; you can redistribute it ...
(in-package :metaaqua) Copyright ( C ) 1996 ( ) under the terms of the GNU General Public License as published by the Free You should have received a copy of the GNU General Public License along Mass Ave , Cambridge , , USA . In emacs type C - h C - w to view license . ...
6f035c2f8eb6cff24ba0704b21df2e8231af9a939996f37993aeea8777d74f29
open-company/open-company-storage
storage_notification.clj
(ns oc.storage.async.storage-notification " Consume storage notifications about new post requests. This SQS queue is feed by other services like Notify (in case of new mention on a post or comment). " (:require [clojure.core.async :as async :refer (<!! >!!)] [defun.core :refer (defun-)] [if-let.core...
null
https://raw.githubusercontent.com/open-company/open-company-storage/ae4bbe6245f8736f3c1813c3048448035aff5815/src/oc/storage/async/storage_notification.clj
clojure
----- core.async ----- buffered channel follow unfollow Send a message to all following users to force refresh inbox Send to all following users except the comment publisher since inbox won't show it until another user adds a comment a message testing Sentry error reporting ----- Event loop ----- ----- Compon...
(ns oc.storage.async.storage-notification " Consume storage notifications about new post requests. This SQS queue is feed by other services like Notify (in case of new mention on a post or comment). " (:require [clojure.core.async :as async :refer (<!! >!!)] [defun.core :refer (defun-)] [if-let.core...
e00b556c794b0d26e239708f8fb084fa82edddfb031c61a0f6a75c8c113c21ac
hbr/albatross
string_pool.mli
module IString: sig type t val id: t -> int val string: t -> string val compare: t -> t -> int end type t val intern: string -> t -> IString.t * t val empty: t
null
https://raw.githubusercontent.com/hbr/albatross/8f28ef97951f92f30dc69cf94c0bbe20d64fba21/ocaml/fmlib/basic/string_pool.mli
ocaml
module IString: sig type t val id: t -> int val string: t -> string val compare: t -> t -> int end type t val intern: string -> t -> IString.t * t val empty: t
07a55fb4d96399d24e254b82862b718b3a0b95546b36edb420b68c108183af1e
robbielynch/ierlang
ierl_code_manager.erl
%%%------------------------------------------------------------------- @author < > ( C ) 2014 , @doc The code manager handles execution of erlang code and compilation of erlang modules . %%% %%% @end Created : 31 . Mar 2014 10:02 %%%------------------------------------------------------------------...
null
https://raw.githubusercontent.com/robbielynch/ierlang/c5ee5ae5b91c0dca496405a312ffc5681013e196/src/ierl_code_manager.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @spec module_or_expression(list(), list()) -> tuple() @doc Determines whether the incoming code is a module that is to be compiled or an erlang expression to be executed...
@author < > ( C ) 2014 , @doc The code manager handles execution of erlang code and compilation of erlang modules . Created : 31 . Mar 2014 10:02 -module (ierl_code_manager). -export ([module_or_expression/2]). -define(DEBUG, false). -define(RESTRICTED_MODE, false). module_or_expression([$-,$m,$o,...
8b514cc92df4b666720f9e45d95434791623cf620bf61882a7159bd31a07b604
RyanMcG/manners
project.clj
(defproject manners "0.8.0" :description "A validation library built on using predicates properly." :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"]] :profiles {:dev {:aliases {"incise" ^:pass-through-help ["run" "-m" "incise.core"]} ...
null
https://raw.githubusercontent.com/RyanMcG/manners/f7872c8c68a087c5e3e55062800c5ce9658d7c78/project.clj
clojure
(defproject manners "0.8.0" :description "A validation library built on using predicates properly." :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"]] :profiles {:dev {:aliases {"incise" ^:pass-through-help ["run" "-m" "incise.core"]} ...
a9eade345c7f47df2f0f6cc6d9aae391907e0ba7444296b15c63ed116d601297
onedata/op-worker
od_harvester.erl
%%%------------------------------------------------------------------- @author ( C ) 2019 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc %%% This model serves as cache for od_...
null
https://raw.githubusercontent.com/onedata/op-worker/b09f05b6928121cec4d6b41ce8037fe056e6b4b3/src/modules/datastore/models/onedata/od_harvester.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc This model serves as cache for od_harvester records @end ------------------------------------------------------------------- API datastore_model callbacks =============...
@author ( C ) 2019 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . synchronized via Graph Sync . -module(od_harvester). -author("Jakub Kudzia"). -include("modules/datastore/datastore_models.hrl"). -include("modules/datastore/datastore_runner.hrl"). -include("pro...
76e2ac7ea32e9155f0652db2ea5c66a5483755eb22c87679d2f411e7e0599d72
nklein/clifford
sub-t.lisp
(in-package #:clifford-tests) (nst:def-test-group subtraction-tests () (nst:def-test can-subtract-r2 (:equalp (make-r2 :one 1 :x 0 :y -1 :xy -2)) (- (make-r2 :one 1 :x 1 :y 1 :xy 1) (make-r2 :one 0 :x 1 :y 1 :xy 1) (make-r2 :one 0 :x 0 :y 1 :xy 1) (make-r2 :one 0 :x 0 :y 0 :xy 1))) (nst:d...
null
https://raw.githubusercontent.com/nklein/clifford/2ba9b9a8f68eb88c2821341dfac2f2a61c2f84ce/src/sub-t.lisp
lisp
(in-package #:clifford-tests) (nst:def-test-group subtraction-tests () (nst:def-test can-subtract-r2 (:equalp (make-r2 :one 1 :x 0 :y -1 :xy -2)) (- (make-r2 :one 1 :x 1 :y 1 :xy 1) (make-r2 :one 0 :x 1 :y 1 :xy 1) (make-r2 :one 0 :x 0 :y 1 :xy 1) (make-r2 :one 0 :x 0 :y 0 :xy 1))) (nst:d...
a537fdbfd1abf654611bd4221aa90598bd099fa2981985ed37419bdf0c752cc8
mishun/tangles
DiagramInfo.hs
module Math.Topology.KnotTh.Enumeration.DiagramInfo ( DiagramInfo(..) ) where import Math.Topology.KnotTh.Knotted class DiagramInfo info where merge :: (KnotWithPrimeTest k a) => info (k a) -> info (k a) -> info (k a) wrap :: (KnotWithPrimeTest k a) => k a -> info (k a) represe...
null
https://raw.githubusercontent.com/mishun/tangles/9af39dd48e3dcc5e3944f8d060c8769ff3d81d02/src/Math/Topology/KnotTh/Enumeration/DiagramInfo.hs
haskell
module Math.Topology.KnotTh.Enumeration.DiagramInfo ( DiagramInfo(..) ) where import Math.Topology.KnotTh.Knotted class DiagramInfo info where merge :: (KnotWithPrimeTest k a) => info (k a) -> info (k a) -> info (k a) wrap :: (KnotWithPrimeTest k a) => k a -> info (k a) represe...
c4f8b6630e909e68e29b359bd30e44b1c17d3ce9115e8b17bf88dbe1568c97ef
SamuelSchlesinger/commander-cli
CLI.hs
# LANGUAGE PolyKinds # # LANGUAGE NamedFieldPuns # # LANGUAGE TypeOperators # # LANGUAGE TypeApplications # # LANGUAGE DataKinds # module Task.CLI where import Options.Commander import GHC.TypeLits (AppendSymbol) import System.Directory import Task import Task.IO import Task.Codec import System.Process import Control....
null
https://raw.githubusercontent.com/SamuelSchlesinger/commander-cli/8df5317db8d3e1a4d6ae49bab4f2e63710db81b7/app/Task/CLI.hs
haskell
# LANGUAGE PolyKinds # # LANGUAGE NamedFieldPuns # # LANGUAGE TypeOperators # # LANGUAGE TypeApplications # # LANGUAGE DataKinds # module Task.CLI where import Options.Commander import GHC.TypeLits (AppendSymbol) import System.Directory import Task import Task.IO import Task.Codec import System.Process import Control....
0d67bd583d4d2315bb18aceeba0fcc9fbb5c5d0027acf835f3bf59fde90eee22
binsec/binsec
concrete.ml
(**************************************************************************) This file is part of BINSEC . (* *) Copyright ( C ) 2016 - 2022 CEA ( Co...
null
https://raw.githubusercontent.com/binsec/binsec/22ee39aad58219e8837b6ba15f150ba04a498b63/src/static/interpreter/concrete.ml
ocaml
************************************************************************ alternatives) you can redistribute it an...
This file is part of BINSEC . Copyright ( C ) 2016 - 2022 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , ve...
e49cb141d35146c72e9cddb6dab62412e680030b317b43710866b003232d2654
cnuernber/dtype-next
datetime_test.clj
(ns tech.v3.datatype.datetime-test (:require [clojure.test :refer [deftest is]] [tech.v3.datatype.datetime :as dtype-dt] [tech.v3.datatype.datetime.operations :as dtype-dt-ops] [tech.v3.datatype :as dtype] [tech.v3.datatype.functional :as dfn]) (:import [java.time Zon...
null
https://raw.githubusercontent.com/cnuernber/dtype-next/3fe3b62669bf83f6273235ae91988e4fd68d3026/test/tech/v3/datatype/datetime_test.clj
clojure
Force entire operation to complete
(ns tech.v3.datatype.datetime-test (:require [clojure.test :refer [deftest is]] [tech.v3.datatype.datetime :as dtype-dt] [tech.v3.datatype.datetime.operations :as dtype-dt-ops] [tech.v3.datatype :as dtype] [tech.v3.datatype.functional :as dfn]) (:import [java.time Zon...