_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
bb354f963d5de23fd64e7d0e7a881e0f6d9d9400109dd4fbef36aaa168b6c562
tzemanovic/haskell-yesod-realworld-example-app
JWT.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} module Auth.JWT ( lookupToken , jsonToToken , tokenToJson ) where import ClassyPrelude.Yesod import Data.Char (isSpace) import Data.Map as Map (fromList, (!?)) import Web.JWT ...
null
https://raw.githubusercontent.com/tzemanovic/haskell-yesod-realworld-example-app/d9f5191a909fa3c0087c5f28fcaae7ad1eca8b9a/app/src/Auth/JWT.hs
haskell
# LANGUAGE OverloadedStrings # | Create a token out of a given JSON 'Value' | Extract a JSON 'Value' out of a token
# LANGUAGE NoImplicitPrelude # module Auth.JWT ( lookupToken , jsonToToken , tokenToJson ) where import ClassyPrelude.Yesod import Data.Char (isSpace) import Data.Map as Map (fromList, (!?)) import Web.JWT as JWT | Try to lookup t...
5280b3e132c0c90f62f56092cb3dfa7f7392891be88eb398517d10ab6620a820
evrim/core-server
xml.lisp
;; +------------------------------------------------------------------------ ;; | XML Base ;; +------------------------------------------------------------------------ (in-package :core-server) ;; ------------------------------------------------------------------------- Protocol ;; ----------------------------------...
null
https://raw.githubusercontent.com/evrim/core-server/200ea8151d2f8d81b593d605b183a9cddae1e82d/src/markup/xml.lisp
lisp
+------------------------------------------------------------------------ | XML Base +------------------------------------------------------------------------ ------------------------------------------------------------------------- ------------------------------------------------------------------------- -------...
(in-package :core-server) Protocol (defgeneric xml.tag (xml) (:documentation "Returns tag")) (defgeneric xml.namespace (xml) (:documentation "Returns namespace")) (defgeneric xml.attributes (xml) (:documentation "Returns symbol names of attributes")) (defgeneric xml.attribute (xml attribute) (:documentati...
14dd05c48b3e54637803788239922b3301bb1550d22bdc5163eada45839a0f96
SimulaVR/godot-haskell
GraphEdit.hs
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.GraphEdit (Godot.Core.GraphEdit.sig__begin_node_move...
null
https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/GraphEdit.hs
haskell
| Emitted when user dragging connection from input port into empty space of the graph. | Emitted when user dragging connection from output port into empty space of the graph. | Emitted when the user presses @Ctrl + C@. | Emitted when the user presses @Ctrl + V@. | Emitted when the scroll offset is changed by the u...
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.GraphEdit (Godot.Core.GraphEdit.sig__begin_node_move...
205c0f9c6bf2a4d8e87356eb3563b953a6ebdc5347ae6e2f13f2af105c7f9687
haskell-opengl/OpenGLRaw
ColorBufferFloat.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.ARB.ColorBufferFloat Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- ---------------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/ARB/ColorBufferFloat.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.GL.ARB.ColorBufferFloat License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Enums * Functi...
# LANGUAGE PatternSynonyms # Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.ARB.ColorBufferFloat ( glGetARBColorBufferFloat, gl_ARB_color_buffer_float, pattern GL_CLAMP_FRAGMENT_COLOR_ARB, pattern GL_CLAMP_READ_COLOR_ARB, pattern GL_CLAMP_VERTEX_COLOR_ARB, pattern GL_FIXED_ONL...
cf0e83aa9bb759963d6a1ba6809fcd83eedebd3736aa881b7306fb5b57408d4a
al3623/rippl
pair_annots.ml
open Ast open Scanner open Parser open Get_fresh_var let rec pair_helper decs last_annot annot main_found = if (List.length decs) = 0 then if not last_annot then (if main_found then [] else raise(Failure "main not type annotated")) else raise (Failure "unmatched type annotation") else match (Li...
null
https://raw.githubusercontent.com/al3623/rippl/a7e5c24f67935b3513324148279791042856a1fa/src/passes/pair_annots.ml
ocaml
open Ast open Scanner open Parser open Get_fresh_var let rec pair_helper decs last_annot annot main_found = if (List.length decs) = 0 then if not last_annot then (if main_found then [] else raise(Failure "main not type annotated")) else raise (Failure "unmatched type annotation") else match (Li...
7f1fcd3665ddb8021b9fb49e6766c081df05060916ed9759df3d6a4bddaa853b
xtdb/xtdb
index_store.clj
(ns ^:no-doc xtdb.metrics.index-store (:require [xtdb.bus :as bus] [xtdb.api :as xt] [xtdb.tx :as tx] [xtdb.metrics.dropwizard :as dropwizard]) (:import (java.util Date))) (defn assign-tx-id-lag [registry {:xtdb/keys [node]}] (dropwizard/gauge registry ["in...
null
https://raw.githubusercontent.com/xtdb/xtdb/6c3c5dbff964553460081db70d2b85548bdc8553/modules/metrics/src/xtdb/metrics/index_store.clj
clojure
(ns ^:no-doc xtdb.metrics.index-store (:require [xtdb.bus :as bus] [xtdb.api :as xt] [xtdb.tx :as tx] [xtdb.metrics.dropwizard :as dropwizard]) (:import (java.util Date))) (defn assign-tx-id-lag [registry {:xtdb/keys [node]}] (dropwizard/gauge registry ["in...
23a193df7f463c1c67d60274add8bed38748801bec1d13007760efd4f4ff5c86
sschwarzer/racket-glossary
info.rkt
#lang info (define collection "racket-glossary") (define deps '("base")) (define build-deps '("racket-doc" "rackunit-lib" "scribble-lib" "al2-test-runner")) (define scribblings '(("scribblings/racket-glossary.scrbl" ()))) (define pkg-desc "Glossary of Racke...
null
https://raw.githubusercontent.com/sschwarzer/racket-glossary/c652805064fb1069058713fd0e726364fdb508e0/info.rkt
racket
#lang info (define collection "racket-glossary") (define deps '("base")) (define build-deps '("racket-doc" "rackunit-lib" "scribble-lib" "al2-test-runner")) (define scribblings '(("scribblings/racket-glossary.scrbl" ()))) (define pkg-desc "Glossary of Racke...
b55f53c11cccb890125f0c35f9f6b2517c158de000b7ce2192bccb44420bcf47
SNePS/SNePS2
sniphandler.lisp
-*- Mode : Lisp ; Syntax : Common - Lisp ; Package : SNEBR ; Base : 10 -*- Copyright ( C ) 1984 - -2013 Research Foundation of State University of New York Version : $ I d : , v 1.3 2013/08/28 19:07:24 shapiro Exp $ ;; This file is part of SNePS. $ BEGIN LICENSE$ The contents of this file are subject ...
null
https://raw.githubusercontent.com/SNePS/SNePS2/d3862108609b1879f2c546112072ad4caefc050d/snebr/sniphandler.lisp
lisp
Syntax : Common - Lisp ; Package : SNEBR ; Base : 10 -*- This file is part of SNePS. you may not use this file except in compliance with the License. You may obtain a copy of the License at . edu/sneps/Downloads/ubpl.pdf. or implied. See the License for the specific language gov erning rights and limitations...
Copyright ( C ) 1984 - -2013 Research Foundation of State University of New York Version : $ I d : , v 1.3 2013/08/28 19:07:24 shapiro Exp $ $ BEGIN LICENSE$ The contents of this file are subject to the University at Software distributed under the License is distributed on an " AS IS " basis , WITHO...
1c1e663d235c5c8fd1c61405d7de8471e580c4e6d93384b5d8e7926204726590
vernemq/vernemq
vmq_dev_api_SUITE.erl
-module(vmq_dev_api_SUITE). -compile([nowarn_export_all,export_all]). -include_lib("vmq_commons/include/vmq_types.hrl"). -include_lib("common_test/include/ct.hrl"). suite() -> [{timetrap,{seconds,30}}]. init_per_suite(Config) -> cover:start(), Config. end_per_suite(_Config) -> ok. init_per_group(_...
null
https://raw.githubusercontent.com/vernemq/vernemq/eb1a262035af47e90d9edf07f36c1b1503557c1f/apps/vmq_server/test/vmq_dev_api_SUITE.erl
erlang
disabling the subscribe hook, and reauthorizing the client will reject the publish disabling the subscribe hook, and reauthorizing the client will reject the publish
-module(vmq_dev_api_SUITE). -compile([nowarn_export_all,export_all]). -include_lib("vmq_commons/include/vmq_types.hrl"). -include_lib("common_test/include/ct.hrl"). suite() -> [{timetrap,{seconds,30}}]. init_per_suite(Config) -> cover:start(), Config. end_per_suite(_Config) -> ok. init_per_group(_...
fbf9176bb6bceb28d02e633dfb8b8baf4e2d87d032915415eed912dd018ab00a
dmillett/clash
pivot_test.clj
Copyright ( c ) . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; ...
null
https://raw.githubusercontent.com/dmillett/clash/ea36a916ccfd9e1c61cb88ac6147b6a952f33dcf/test/clash/pivot_test.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) . All rights reserved . (ns ^{:author "dmillett"} clash.pivot_test (:require [clojure.math.combinatorics :as cmb] [clash.core :as c] [clash.tools :as t] [clojure.string :as s]) (:use [clojure.test] [clash.pivot])) (defn- divisible-by? [x] (fn [...
b3e9762de0ed87dbf482199e770107d8044f0b203c90e3f1dba03990ddff854c
MariaGrozdeva/Functional_programming
level.rkt
#lang racket/base (define (level tree i) (if (not (null? tree)) (if (= i 1) (list (car tree)) (append (level (cadr tree) (- i 1)) (level (caddr tree) (- i 1))) ) '() ) )
null
https://raw.githubusercontent.com/MariaGrozdeva/Functional_programming/002e3dbbbc64558094eecd147cb1fd064ee84a03/Tasks%20on%20binary%20trees/level.rkt
racket
#lang racket/base (define (level tree i) (if (not (null? tree)) (if (= i 1) (list (car tree)) (append (level (cadr tree) (- i 1)) (level (caddr tree) (- i 1))) ) '() ) )
790b683c7f996be71f4c64305404b5964d72300a91d977595d44f0a7ce049f46
foreverbell/project-euler-solutions
59.hs
import qualified Data.Text as T import Data.List (group, sort, maximumBy) import Data.Function (on) import Data.Bits (xor) import Data.Char (ord, chr, isAlpha) group3 a b c _ [] = (reverse a, reverse b, reverse c) group3 a b c n (x:xs) = case (n `mod` 3) of 0 -> group3 (x:a) b c (n + 1) xs 1 -> group3 a (x:b) ...
null
https://raw.githubusercontent.com/foreverbell/project-euler-solutions/c0bf2746aafce9be510892814e2d03e20738bf2b/src/59.hs
haskell
import qualified Data.Text as T import Data.List (group, sort, maximumBy) import Data.Function (on) import Data.Bits (xor) import Data.Char (ord, chr, isAlpha) group3 a b c _ [] = (reverse a, reverse b, reverse c) group3 a b c n (x:xs) = case (n `mod` 3) of 0 -> group3 (x:a) b c (n + 1) xs 1 -> group3 a (x:b) ...
1d3abc5e5dd9e9865d2b06ff5be9cd232fc9089a2b1dc9d01add5a7f0201a001
donaldsonjw/bigloo
control.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / runtime / Ieee / control.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/donaldsonjw/bigloo/a4d06e409d0004e159ce92b9908719510a18aed5/runtime/Ieee/control.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ *=====================================================================*/ *---------------------------...
* serrano / prgm / project / bigloo / runtime / Ieee / control.scm * / * Author : * / * Creation : Fri Jan 20 17:48:44 1995 * / * Last change : Tue Jan 29 17:12:19 2013 ( serrano ) * / * 6.9 ...
5ca3151d51065ed6d8f9f86b853ab9f353135e5f25c68a5ae3edda0fb09b89d7
neil-lindquist/CI-Utils
features.lisp
;;; Push the new features (when (or (uiop:getenvp "CI") (uiop:getenv "TF_BUILD") ;special case for azure pipelines (uiop:getenvp "GITHUB_ACTIONS")) ;special case for github actions (pushnew :ci *features*) (pushnew (cond ((uiop:getenvp "TRAVIS") :travis-ci) ((uiop:gete...
null
https://raw.githubusercontent.com/neil-lindquist/CI-Utils/2d5a059ac74f0d9499eecf4710afa60f5b292d7a/src/features.lisp
lisp
Push the new features special case for azure pipelines special case for github actions
(when (or (uiop:getenvp "CI") (pushnew :ci *features*) (pushnew (cond ((uiop:getenvp "TRAVIS") :travis-ci) ((uiop:getenvp "CIRCLECI") :circleci) ((uiop:getenvp "APPVEYOR") :appveyor) ((uiop:getenvp "GITLAB_CI") :gitlab-ci) ((uiop:getenvp "BITBUCKET_B...
6075dcaa008e35e150232a30d73eca9a903591ca7804654f5981a14cf1c18dfa
mstewartgallus/hs-callbypushvalue
Name.hs
{-# LANGUAGE StrictData #-} module Name (Name (..)) where import Data.Text (Text) import TextShow data Name = Name {package :: Text, name :: Text} deriving (Eq, Ord) instance TextShow Name where showb x = fromText (package x) <> fromString "/" <> fromText (name x)
null
https://raw.githubusercontent.com/mstewartgallus/hs-callbypushvalue/d8770b7e9e444e1261901f5ee435fcefb0f7ad75/src/Name.hs
haskell
# LANGUAGE StrictData #
module Name (Name (..)) where import Data.Text (Text) import TextShow data Name = Name {package :: Text, name :: Text} deriving (Eq, Ord) instance TextShow Name where showb x = fromText (package x) <> fromString "/" <> fromText (name x)
b4542ff7b06368840039549e741a52952b9ecff28ab676b4a1226f0686fa0c94
ashwinbhaskar/google-drive-file-uploader
config.clj
(ns google-drive-file-uploader.config (:require [clojure.java.io :as io])) (def config (-> (io/resource "config.edn") slurp clojure.edn/read-string)) (defn file-upload-url [] (:file-upload-url config)) (defn new-access-token-url [] (:new-access-token-url config)) (defn get-file...
null
https://raw.githubusercontent.com/ashwinbhaskar/google-drive-file-uploader/16e2e763ec9137f2be69dfd12dc6fad4e9d0d71f/src/google_drive_file_uploader/config.clj
clojure
(ns google-drive-file-uploader.config (:require [clojure.java.io :as io])) (def config (-> (io/resource "config.edn") slurp clojure.edn/read-string)) (defn file-upload-url [] (:file-upload-url config)) (defn new-access-token-url [] (:new-access-token-url config)) (defn get-file...
7bdb43b53e83165c1ccdb24fb33ad94934be87be8c0314c539b555f6aa186a40
coq/coq
goptions.ml
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/aba52f112d6ca6e809c5b33f7bd2020cdcef0100/library/goptions.ml
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
7ad79347ea11ca505dd233b9ad40e8e0d60f56044dfad45f0a3f97842ecbde22
essen/egs
egs_items_db.erl
@author < > 2010 - 2011 . @doc EGS items database . %% This file is part of EGS . %% EGS 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...
null
https://raw.githubusercontent.com/essen/egs/ceea04c3b438cee9a8470f2abc6297429bf347c5/apps/egs/src/egs_items_db.erl
erlang
License, or (at your option) any later version. but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. API. gen_server. Use the module name for the server's name. API. gen_server. @doc...
@author < > 2010 - 2011 . @doc EGS items database . This file is part of EGS . EGS 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 EGS is distributed in the h...
98414961aa19e0a0e2b2caa91bec04cbda4b36aa660c191b431c8fa457c9fa26
korya/efuns
xpmroot.ml
(***********************************************************************) (* *) xlib for (* *) Fabrice Le Fessant , projet Para / SOR , INRIA Rocq...
null
https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/xlib/examples/xpmroot.ml
ocaml
********************************************************************* ...
xlib for Fabrice Le Fessant , projet Para / SOR , INRIA Rocquencourt Copyright 1999 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . open Xtypes open Xbuffer open Xlib let dpyname = ref "" ...
012132dced70036031b74376c9e48eabd8fb630cbebed953cadda978967fd689
kowainik/prolens
Prolens.hs
module Test.Prolens ( unitSpecs ) where import Data.Function ((&)) import Test.Hspec (Spec, describe, it, shouldBe) import Prolens (preview, set, view, (.~), (^.)) import Test.Data (Grade (..), gradeMark, gradeOther, me, nameL, _Mark) unitSpecs :: Spec unitSpecs = describe "Prolens unit tests" $ do lens...
null
https://raw.githubusercontent.com/kowainik/prolens/5d0f9311c87f59b851f932e1e37b70d519f5c39e/test/Test/Prolens.hs
haskell
module Test.Prolens ( unitSpecs ) where import Data.Function ((&)) import Test.Hspec (Spec, describe, it, shouldBe) import Prolens (preview, set, view, (.~), (^.)) import Test.Data (Grade (..), gradeMark, gradeOther, me, nameL, _Mark) unitSpecs :: Spec unitSpecs = describe "Prolens unit tests" $ do lens...
1ccb31d3d128d8af166534993ecdd440d5dc02bb1b0a6a20e18289efc99e7fa1
corecursive/sicp-study-group
operation-test.scm
(load "type.scm") (load "complex-package/rectangular.scm") (load "complex-package/polar.scm") (load "complex-package/operation.scm") (install-rectangular-package) (install-polar-package) (define z1 (make-from-real-imag 1 2)) (define z2 (make-from-real-imag 2 1)) (assert (eq? 'rectangular (type z1))) (assert (eq? 're...
null
https://raw.githubusercontent.com/corecursive/sicp-study-group/82b92a9759ed6c72d15cf955c806ce2a94336f83/wulab/lecture-4b/generic-operation/complex-package/operation-test.scm
scheme
(load "type.scm") (load "complex-package/rectangular.scm") (load "complex-package/polar.scm") (load "complex-package/operation.scm") (install-rectangular-package) (install-polar-package) (define z1 (make-from-real-imag 1 2)) (define z2 (make-from-real-imag 2 1)) (assert (eq? 'rectangular (type z1))) (assert (eq? 're...
6024c51d6aa372453a9565ec9333390f3296ac4d64dfef0d72f5cba89f6bb30b
well-typed-lightbulbs/ocaml-esp32
array.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/well-typed-lightbulbs/ocaml-esp32/c24fcbfbee0e3aa6bb71c9b467c60c6bac326cc7/stdlib/array.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the type 'a t = 'a array external length : 'a array -> int = "%array_length" external get : 'a array -> in...
462bbdcc63ee34f554a8f8ef93aa497eb74104031e1569acbaddbb6c212c5c71
codinuum/cca
xchannel.ml
Copyright 2012 - 2020 Codinuum Software Lab < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in wri...
null
https://raw.githubusercontent.com/codinuum/cca/88ea07f3fe3671b78518769d804fdebabcd28e90/src/util/xchannel.ml
ocaml
xchannel.ml output channel of class Xchannel.out_channel input channel
Copyright 2012 - 2020 Codinuum Software Lab < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in wri...
1c487c02fbc1cb5ba2075ad11e53bc23aa848b34627a8555b323925d7e180302
Incanus3/ExiL
env-rules.lisp
(in-package :exil-env) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; RULES (defun add-rule%% (env rule) (add-rule% env rule) (new-production (rete env) rule) (when (watched-p env :rules) (fresh-format t "==> ~A" rule)) (dolist (fact (facts env)) (add-wme (rete env...
null
https://raw.githubusercontent.com/Incanus3/ExiL/de0f7c37538cecb7032cc1f2aa070524b0bc048d/src/environment/env-rules.lisp
lisp
RULES public public
(in-package :exil-env) (defun add-rule%% (env rule) (add-rule% env rule) (new-production (rete env) rule) (when (watched-p env :rules) (fresh-format t "==> ~A" rule)) (dolist (fact (facts env)) (add-wme (rete env) fact)) (notify env)) (defun rule-already-there (env rule) (let ((orig-rule (find-ru...
e75f268faf329dafb4d8e097a41e7b64fed60cb6e03a55cd4daf5dc14b99db1a
ocaml-ppx/ocamlformat
Chunk.ml
(**************************************************************************) (* *) (* OCamlFormat *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/70f897a5aa88f8cc52e2a5bba330752d27359145/lib/Chunk.ml
ocaml
************************************************************************ OCamlFormat ...
Copyright ( c ) Facebook , Inc. and its affiliates . This source code is licensed under the MIT license found in open Extended_ast type state = Enable | Disable of Location.t type 'a t = | Structure : structure t | Signature : signature t | Use_file : use_file t let upda...
a20301dd3ef70dd79ecb24a08a7f077c347b1895ff12d5a05d356410f82ab066
conscell/hugs-android
SizedSeq.hs
Copyright ( c ) 1998 - 1999 . -- See COPYRIGHT file for terms and conditions. module SizedSeq {-# DEPRECATED "This module is unmaintained, and will disappear soon" #-} ( -- generic adaptor for sequences to keep track of the current size Sized s instance of Sequence , Functor , Monad , MonadPlus -...
null
https://raw.githubusercontent.com/conscell/hugs-android/31e5861bc1a1dd9931e6b2471a9f45c14e3c6c7e/hugs/lib/hugs/oldlib/SizedSeq.hs
haskell
See COPYRIGHT file for terms and conditions. # DEPRECATED "This module is unmaintained, and will disappear soon" # generic adaptor for sequences to keep track of the current size sequence operations documentation other supported operations only used by concatMap If s is a sequence type constructor, then Sized s ...
Copyright ( c ) 1998 - 1999 . module SizedSeq ( Sized s instance of Sequence , Functor , Monad , MonadPlus empty,single,cons,snoc,append,lview,lhead,ltail,rview,rhead,rtail, null,size,concat,reverse,reverseOnto,fromList,toList, map,concatMap,foldr,foldl,foldr1,foldl1,reducer,reducel,reduce1, ...
08200a6352c353b6c055d7346891f3f6a04a5bb072e293f23a520ea72033027e
clojure/clojurescript
reader_types.clj
Copyright ( c ) , Rich Hickey & contributors . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be b...
null
https://raw.githubusercontent.com/clojure/clojurescript/e30e26dbd221b5d7c4bbc567d10d0c3c01cf5f98/src/main/clojure/cljs/vendor/clojure/tools/reader/reader_types.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) , Rich Hickey & contributors . (ns ^{:doc "Protocols and default Reader types implementation" :author "Bronsa"} cljs.vendor.clojure.tools.reader.reader-types (:refer-clojure :exclude [char read-line]) (:require [cljs.vendor.clojure.tools.reader.impl.utils :refer [char whitespace? ne...
262f8d0832a69ffc074df9795199e65598ef234a964feb6452a1af089fd58e95
basho/riak_kv
riak_kv_wm_props.erl
%% ------------------------------------------------------------------- %% riak_kv_wm_props : Webmachine resource for listing bucket properties . %% Copyright ( c ) 2007 - 2013 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"...
null
https://raw.githubusercontent.com/basho/riak_kv/aeef1591704d32230b773d952a2f1543cbfa1889/src/riak_kv_wm_props.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 permissi...
riak_kv_wm_props : Webmachine resource for listing bucket properties . Copyright ( c ) 2007 - 2013 Basho Technologies , Inc. All Rights Reserved . 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 distri...
9f695ea75b99b5c46dbf75305913b9dbe89e68fbfb12756dab83b56fbc807443
aaronallen8455/breakpoint
ApplicativeDo.hs
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE DerivingStrategies # # LANGUAGE ApplicativeDo # module ApplicativeDo ( testTree ) where import qualified Data.Map as M import Data.Maybe import Test.Tasty import Test.Tasty.HUnit import Debug.Breakpoint -- Needs to be a se...
null
https://raw.githubusercontent.com/aaronallen8455/breakpoint/b9103baedde3907670006c9b8bb729c9234ea231/test/ApplicativeDo.hs
haskell
Needs to be a separate module b/c ApplicativeDo affects other tests
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE DerivingStrategies # # LANGUAGE ApplicativeDo # module ApplicativeDo ( testTree ) where import qualified Data.Map as M import Data.Maybe import Test.Tasty import Test.Tasty.HUnit import Debug.Breakpoint testTree :: TestTr...
cf62b8a971a11b3e1c4010670080ba699e17cc18200866a1ab829ecd19f5e288
ivanjovanovic/sicp
e-4.19.scm
Exercise 4.19 . , , and are arguing about the desired result of ; evaluating the expression (let ((a 1)) (define (f x) (define b (+ a x)) (define a 5) (+ a b)) (f 10)) asserts that the result should be obtained using the sequential rule for define : b is defined to be 11 , then a ...
null
https://raw.githubusercontent.com/ivanjovanovic/sicp/a3bfbae0a0bda414b042e16bbb39bf39cd3c38f8/4.1/e-4.19.scm
scheme
evaluating the expression objects that mutual recursion requires the simultaneous scope rule for internal procedure definitions, and that it is unreasonable to treat procedure names differently from other names. Thus, she argues for the mechanism being unassigned at the time that the value for b is to says that ...
Exercise 4.19 . , , and are arguing about the desired result of (let ((a 1)) (define (f x) (define b (+ a x)) (define a 5) (+ a b)) (f 10)) asserts that the result should be obtained using the sequential rule for define : b is defined to be 11 , then a is defined to be 5 , so the ...
52e31d3c8a1063680d44c354e586c8f8eca40066db3b155dba910de9b536c559
lispbuilder/lispbuilder
objects.lisp
;;;;; Converted from the "Objects" Processing example at: ;;;;; "" ;;;;; (C)2006 Luke J Crook (in-package #:sdl-examples) (defvar *objects-width* 200) (defvar *objects-height* 200) (defclass m-rect () ((x :accessor x :initarg :x) (y :accessor y :initarg :y) (w :accessor w :initarg :w) (h :accessor h :init...
null
https://raw.githubusercontent.com/lispbuilder/lispbuilder/589b3c6d552bbec4b520f61388117d6c7b3de5ab/lispbuilder-sdl/examples/objects.lisp
lisp
Converted from the "Objects" Processing example at: "" (C)2006 Luke J Crook Optimization; Draw the font each frame,
(in-package #:sdl-examples) (defvar *objects-width* 200) (defvar *objects-height* 200) (defclass m-rect () ((x :accessor x :initarg :x) (y :accessor y :initarg :y) (w :accessor w :initarg :w) (h :accessor h :initarg :h) (d :accessor d :initform 0 :initarg :d) (tt :accessor tt :initform 0 :initarg :t...
cc2cdaeb90e03a7cbf654f7ffb2b917c2acf402e0e87bea151b2a66f360483aa
APTE/APTE
length_algorithm.mli
open Standard_library val decide_trace_equivalence : Process.process -> Process.process -> bool
null
https://raw.githubusercontent.com/APTE/APTE/d5f1bbd29c2fc324a6015ac50173a0cc8ad66623/Source/length_equivalence/length_algorithm.mli
ocaml
open Standard_library val decide_trace_equivalence : Process.process -> Process.process -> bool
68db2d8cfafd600a07b664420d0b4fdcb68882f367fb5028f3a85f32fbfac12b
S8A/htdp-exercises
ex342.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-intermediate-lambda-reader.ss" "lang")((modname ex342) (read-case-sensitive #t) (teachpacks ((lib "abstraction.rkt" "teachpack" "2htdp") (...
null
https://raw.githubusercontent.com/S8A/htdp-exercises/578e49834a9513f29ef81b7589b28081c5e0b69f/ex342.rkt
racket
about the language level of this file in a form that our tools can easily process. String Dir -> [Maybe Path] if there's a file f in the given directory tree, produce its path; otherwise produce #false Dir -> Boolean [List-of Dir] -> [Maybe Path] String Dir -> [List-of Path] produces the lists of paths belongin...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex342) (read-case-sensitive #t) (teachpacks ((lib "abstraction.rkt" "teachpack" "2htdp") (lib "dir.rkt" "teachpack" "htdp"))) (htdp-settings #(#t constructor repeating-decimal ...
e0ee2d2e45a4b7542266f8dc3134ff449a6bf7e899700525dee45b0c85059f69
dasuxullebt/uxul-world
game-object-with-animation.lisp
Copyright 2009 - 2011 (in-package :uxul-world) ;; as many game-objects do have an animation related to them, instead ;; of just having a draw-method which will manually draw anything, we ;; declare a standard-class for that, with some useful methods. (defclass game-object-with-animation (game-object) ((animati...
null
https://raw.githubusercontent.com/dasuxullebt/uxul-world/f05e44b099e5976411b3ef1f980ec616bd221425/game-object-with-animation.lisp
lisp
as many game-objects do have an animation related to them, instead of just having a draw-method which will manually draw anything, we declare a standard-class for that, with some useful methods. (if (rectangle-in-screen obj) ) (write (x instance)) (write (y instance))
Copyright 2009 - 2011 (in-package :uxul-world) (defclass game-object-with-animation (game-object) ((animation-translation :initarg :animation-translation :accessor animation-translation :initform (make-xy 0 0) :documentation "The translation of the animation (in double zoom).") (animatio...
7a638d86c385ff301505c8f421be42ad1b82dc8eb1fc4065a42e1a69e35a6092
ggreif/omega
SyntaxExt.hs
module SyntaxExt where import Auxillary import Data.List(nub) import ParserAll -- This for defining parsers To import ParserAll you must define CommentDef.hs and TokenDef.hs -- These should be in the same directory as this file. import Data.Char(isLower) import qualified Text.PrettyPrint.HughesPJ as PP import Text....
null
https://raw.githubusercontent.com/ggreif/omega/016a3b48313ec2c68e8d8ad60147015bc38f2767/src/SyntaxExt.hs
haskell
This for defining parsers These should be in the same directory as this file. Syntax Extension no extension {x=t,y=s ; zs}i {zs ; y=s,x=t}i ()i (e)i (f a b)i ----------------------------------------------------------- Show instances -------------------------------------------------- Creating formatted do...
module SyntaxExt where import Auxillary import Data.List(nub) To import ParserAll you must define CommentDef.hs and TokenDef.hs import Data.Char(isLower) import qualified Text.PrettyPrint.HughesPJ as PP import Text.PrettyPrint.HughesPJ(Doc,text,int,(<>),(<+>),($$),($+$),render) data SyntaxStyle = OLD | NEW type S...
6840fc42e91fd148849f4d7ba703ee3aa87d1f3bdb6154fa8b9cffe22661aafb
ClojureBridge/drawing
lines.clj
(ns drawing.lines (:require [quil.core :as q])) (defn setup [] Set frame rate to 30 frames per second . (q/frame-rate 30) ; Set color mode to RGB (q/color-mode :rgb) ; Set color of line to Red (q/stroke 255 0 0)) (defn mouse-color [x y] "Calculate a color based on two values" ;TODO: Take a look a...
null
https://raw.githubusercontent.com/ClojureBridge/drawing/5feabef315c4f61b316f38a42f5024e9da76bc41/src/drawing/lines.clj
clojure
Set color mode to RGB Set color of line to Red TODO: Take a look at B (of RGB). Right now it is just 0. Throughout the draw function, get the position of the mouse with mouse-x and mouse-y Set the line color based on mouse position Draw a line from the origin to the position of the mouse to the position of the...
(ns drawing.lines (:require [quil.core :as q])) (defn setup [] Set frame rate to 30 frames per second . (q/frame-rate 30) (q/color-mode :rgb) (q/stroke 255 0 0)) (defn mouse-color [x y] "Calculate a color based on two values" [(mod x 255) (mod y 255) 0]) (defn draw [] (apply q/stroke (mouse-col...
c7a3ded03fef8e9fcb1be38f2c9de8ee7106ca237dbbdd14300ee4f5c6847e87
FestCat/festival-ca
nitech_us_slt_arctic_clunits.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Carnegie Mellon University ; ; ; and and ; ; ; Copyright ( c ) 1998 - 2000 ...
null
https://raw.githubusercontent.com/FestCat/festival-ca/f6b2d9bf4fc4f77b80890ebb95770075ad36ccaf/src/data/festvox.orig/nitech_us_slt_arctic_clunits.scm
scheme
;;; ; ; ; ; ; ; ; ; ;;; Permission is hereby granted, free of charge, to use and distribute ;;; this software and its documentation without restriction, including ;;; withou...
Ensure this version of festival has been compiled with clunits module (require_module 'clunits) (if (assoc 'nitech_us_slt_arctic_clunits voice-locations) (defvar nitech_us_slt_arctic::clunits_dir (cdr (assoc 'nitech_us_slt_arctic_clunits voice-locations))) (defvar nitech_us_slt_arctic::clunits_dir (s...
e2bbd4799069c9c705d6dd673f95eff696a6ab7031d88bdd56e121074a9877be
vmchale/jacinda
Include.hs
module Jacinda.Include ( defaultIncludes , resolveImport ) where import Control.Exception (Exception, throwIO) import Control.Monad (filterM) import Data.List.Split (splitWhen) import Data.Maybe (listToMaybe) import ...
null
https://raw.githubusercontent.com/vmchale/jacinda/c84bdac286e856ca631620d06b39dd988044574f/src/Jacinda/Include.hs
haskell
^ Places to look
module Jacinda.Include ( defaultIncludes , resolveImport ) where import Control.Exception (Exception, throwIO) import Control.Monad (filterM) import Data.List.Split (splitWhen) import Data.Maybe (listToMaybe) import ...
6bafae094b44b2644128e8cbc68db9f1b0b7f376c0622fb39dbd9b324e0c83b7
choener/ADPfusion
GChr.hs
module ADPfusion.Multi.GChr where import Data.Array.Repa.Index import Data.Strict.Tuple import qualified Data.Vector.Fusion.Stream.Monadic as S import qualified Data.Vector.Generic as VG import Data.Array.Repa.Index.Points import Data.Array.Repa.Index.Subword import ADPfusion.Chr import ADPfusion.Classes import ADP...
null
https://raw.githubusercontent.com/choener/ADPfusion/fcbbf05d0f438883928077e3d8a7f1cbf8c2e58d/ADPfusion/Multi/GChr.hs
haskell
generated. Unfortunately, this will evaluate cases like index (-1) as well, which leads to crashes. The code below is safe but slower. We should incorporate a version that performs and @outerCheck@ in the code. # INLINE termLeftIndex # * Multi-dim 'PointL's | NOTE This instance is currently the only one using an "...
module ADPfusion.Multi.GChr where import Data.Array.Repa.Index import Data.Strict.Tuple import qualified Data.Vector.Fusion.Stream.Monadic as S import qualified Data.Vector.Generic as VG import Data.Array.Repa.Index.Points import Data.Array.Repa.Index.Subword import ADPfusion.Chr import ADPfusion.Classes import ADP...
21280605a907b99b0f941e3f12da9e1561155f553dcd6e57c73207e2604e26a3
owlbarn/owl_ode
symplectic_d.mli
* OWL - OCaml Scientific and Engineering Computing * OWL - ODE - Ordinary Differential Equation Solvers * * Copyright ( c ) 2019 > * Copyright ( c ) 2019 < > * OWL - OCaml Scientific and Engineering Computing * OWL-ODE - Ordinary Differential Equation Solvers * * Copyright (c) 2019 Ta-Chu...
null
https://raw.githubusercontent.com/owlbarn/owl_ode/5d934fbff87eea9f060d6c949bf78467024d8791/src/ode/symplectic/symplectic_d.mli
ocaml
----- helper function -----
* OWL - OCaml Scientific and Engineering Computing * OWL - ODE - Ordinary Differential Equation Solvers * * Copyright ( c ) 2019 > * Copyright ( c ) 2019 < > * OWL - OCaml Scientific and Engineering Computing * OWL-ODE - Ordinary Differential Equation Solvers * * Copyright (c) 2019 Ta-Chu...
e6afbb76ae5ffa7ed958da914b5974b675968d3fab066ed5c42f2a71d44d039d
pjotrp/guix
music.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2015 < > Copyright © 2015 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; ...
null
https://raw.githubusercontent.com/pjotrp/guix/96250294012c2f1520b67f12ea80bfd6b98075a2/gnu/packages/music.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2015 < > Copyright © 2015 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu packages music) #:use-module (guix utils) #:use-module (guix p...
4db402bf94d6a14a51acbf08b27c7e0dbbb5194b767400240353c7814860f5f0
amnh/poy5
latex.ml
POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies . Copyright ( C ) 2014 , , , Ward Wheeler , and the American Museum of Natural History . (* *) (* This program is free softwa...
null
https://raw.githubusercontent.com/amnh/poy5/da563a2339d3fa9c0110ae86cc35fad576f728ab/src/latex.ml
ocaml
This program is free software; you can redistribute it and/or modify (at your option) any later version. This progra...
POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies . Copyright ( C ) 2014 , , , Ward Wheeler , and the American Museum of Natural History . it under the terms of the GNU General Public License as published by the Free Software Foundation ; ...
bf57f131388dcca7ad0f639b89bdf9f046684d35a1925b102765b5c361d038b5
pirapira/coq2rust
feedback.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/lib/feedback.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 **********************************************************************
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Xml_datatype open Serial...
b830486e4f44e239279793e31b38fd5201e1d05c971f76bb31f4023a69eaa9e0
bob-cd/bob
externals.clj
; Copyright 2018- Rahul De ; Use of this source code is governed by an MIT - style ; license that can be found in the LICENSE file or at ; . (ns apiserver.entities.externals (:require [clojure.tools.logging :as log] [xtdb.api :as xt])) (defn create "Register with an unique name and an url supplied in a ma...
null
https://raw.githubusercontent.com/bob-cd/bob/2c1a50e305a7086d2398419525288d87389fe1b2/apiserver/src/apiserver/entities/externals.clj
clojure
Copyright 2018- Rahul De license that can be found in the LICENSE file or at .
Use of this source code is governed by an MIT - style (ns apiserver.entities.externals (:require [clojure.tools.logging :as log] [xtdb.api :as xt])) (defn create "Register with an unique name and an url supplied in a map." [db kind {:keys [name url]}] (let [id (keyword (format "bob.%s/%s" kind name))]...
61a2d307e079710c65d5972e9ea65d42f1cc98d9ea42079338450b52b1d609e2
swamp-agr/blaze-textual
Int.hs
# LANGUAGE BangPatterns , CPP , MagicHash , OverloadedStrings , UnboxedTuples # Module : Blaze . Text . Int Copyright : ( c ) 2011 MailRank , Inc. License : BSD3 Maintainer : < > -- Stability: experimental -- Portability: portable -- -- Efficiently serialize an integral value as a lazy 'L....
null
https://raw.githubusercontent.com/swamp-agr/blaze-textual/ebe28bc40a19074fe32768f07a3bfd95ca20a673/Blaze/Text/Int.hs
haskell
Stability: experimental Portability: portable Efficiently serialize an integral value as a lazy 'L.ByteString'. # RULES "integral/Int" integral = bounded :: Int -> Builder # # RULES "integral/Int8" integral = bounded :: Int8 -> Builder # # RULES "integral/Int16" integral = bounded :: Int16 -> Builder # # RULES "i...
# LANGUAGE BangPatterns , CPP , MagicHash , OverloadedStrings , UnboxedTuples # Module : Blaze . Text . Int Copyright : ( c ) 2011 MailRank , Inc. License : BSD3 Maintainer : < > module Blaze.Text.Int ( digit , integral , minus ) where import Blaze.ByteString.Builder ...
09473fbe3e69bde931cda02aa7ab4c6e1446045cf4b16f1fdac518b08eba91c0
BinaryAnalysisPlatform/bap
bap_primus_observation.ml
open Core_kernel[@@warning "-D"] open Bap.Std open Bap_knowledge open Bap_future.Std open Monads.Std module Name = Knowledge.Name module Info = Bap_primus_info type 'a observation = 'a Univ_map.Key.t type 'a statement = 'a observation type 'a t = 'a observation type ('m,'a) observers = { last : int; subs : (int *...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/253afc171bbfd0fe1b34f6442795dbf4b1798348/lib/bap_primus/bap_primus_observation.ml
ocaml
open Core_kernel[@@warning "-D"] open Bap.Std open Bap_knowledge open Bap_future.Std open Monads.Std module Name = Knowledge.Name module Info = Bap_primus_info type 'a observation = 'a Univ_map.Key.t type 'a statement = 'a observation type 'a t = 'a observation type ('m,'a) observers = { last : int; subs : (int *...
b2506d2d635af5c37d6f2a3a124305620abed4242c7bc80ac3aa637e36a3bde7
lasp-lang/types
orddict_ext.erl
%% Copyright ( c ) 2015 - 2016 . All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% a copy of the License at %% %% -2.0 %% %% Unless required by applicable law ...
null
https://raw.githubusercontent.com/lasp-lang/types/e35b9b3a32b8f580daff1a7d1102813ad530835e/src/orddict_ext.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 permissions and limitations under the License. ----------------------------...
Copyright ( c ) 2015 - 2016 . All Rights Reserved . 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 -module(orddict_ext). ...
a0b2ddc17fbad94db797fe9b4db9b75e9268f704d83e611c583d141ed88f1f95
coq/coq
wg_Command.mli
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/e0de9db708817cc08efb20d65b9819d8f2b0ea68/ide/coqide/wg_Command.mli
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
f1f9a3c5700ccc7d169ff5ab18538652969f47b40a65179dda509050dfa7511f
privet-kitty/cl-competitive
map-flipping-subseq.lisp
(defpackage :cp/map-flipping-subseq (:use :cl) (:export #:map-flipping-subseq)) (in-package :cp/map-flipping-subseq) (declaim (inline map-flipping-subseq)) (defun map-flipping-subseq (function vector &key (test #'eql)) "Applies FUNCTION to each `flipping' subarray of VECTOR. `Flipping' here means that all two ad...
null
https://raw.githubusercontent.com/privet-kitty/cl-competitive/8b6b73ea3f743fa112587f3af16dfdf9f1845aba/module/map-flipping-subseq.lisp
lisp
(defpackage :cp/map-flipping-subseq (:use :cl) (:export #:map-flipping-subseq)) (in-package :cp/map-flipping-subseq) (declaim (inline map-flipping-subseq)) (defun map-flipping-subseq (function vector &key (test #'eql)) "Applies FUNCTION to each `flipping' subarray of VECTOR. `Flipping' here means that all two ad...
f4158d51b8fa4e687e0b94245a79e9c343e7ed2336dd9b7ed756fc665d63575c
google/proto-lens
map_test.hs
-- Copyright 2016 Google Inc. All Rights Reserved. -- -- 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 OverloadedLists # {-# LANGUAGE OverloadedStrings #-} module Main where import Proto.Map import Proto.Map_Fields import D...
null
https://raw.githubusercontent.com/google/proto-lens/081815877430afc1db669ca5e4edde1558b5fd9d/proto-lens-tests/tests/map_test.hs
haskell
Copyright 2016 Google Inc. All Rights Reserved. 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 OverloadedStrings # Note how OverloadedLists work here in the "bar" field. For proto-lens, it resolves to a (Map Int32 Text). Che...
# LANGUAGE OverloadedLists # module Main where import Proto.Map import Proto.Map_Fields import Data.ProtoLens import Lens.Family2 ((&), (.~)) import qualified Data.ByteString.Char8 as C import Data.ByteString.Builder (Builder, byteString) import Data.Word (Word64) import Data.ProtoLens.TestUtil defFoo :: Foo defFoo...
b72ecdecb09183cf9bcd255e99d87cfb2527c45187d90f231f967d72ad6126b6
SamB/coq
explore.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/SamB/coq/8f84aba9ae83a4dc43ea6e804227ae8cae8086b1/lib/explore.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i $Id$ i s Search strategies. s A s...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * module type SearchProble...
dcd4bed6e3143e945fee027023ca37b69c42e44752a2a9a450cfecce494e9f33
joshuamiller/cljs-react-navigation-example
subs.cljs
(ns nav-example.subs (:require [re-frame.core :refer [reg-sub]])) (reg-sub :get-greeting (fn [db _] (:greeting db)))
null
https://raw.githubusercontent.com/joshuamiller/cljs-react-navigation-example/45568ed191e782c3f8c0580d2d8774c6b2add52f/src/nav_example/subs.cljs
clojure
(ns nav-example.subs (:require [re-frame.core :refer [reg-sub]])) (reg-sub :get-greeting (fn [db _] (:greeting db)))
921d963234a7b907b9303395cccbacedf69d5e9325fc85bea05d7c8ae698e57d
con-kitty/categorifier
Main.hs
# LANGUAGE DataKinds # {-# LANGUAGE MultiWayIf #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # To avoid turning @if then else@ into ` ifThenElse ` . # LANGUAGE NoRebindableSyntax # -- | See @Test/Cat/ConCat/Main.hs@ for copious notes ...
null
https://raw.githubusercontent.com/con-kitty/categorifier/d8dc1106c4600c2168889519d2c3f843db2e9410/integrations/categories/integration-test/test/Categories/Main.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | See @Test/Cat/ConCat/Main.hs@ for copious notes on the testing situation here. For @NoRebindableSyntax@ name type prefix strategy core plugin base no support for `atan2` in Categories no support for `error` in Categories no support fo...
# LANGUAGE DataKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # To avoid turning @if then else@ into ` ifThenElse ` . # LANGUAGE NoRebindableSyntax # module Main ( main, ) where import Categorifier.Hedgehog (genFloating, genLargeIntegral) import Categorifier.Te...
ab1e1c52320087acd56825312c922979eccd65235d2c52ac4d8cd278e446b80e
alanz/ghc-exactprint
LayoutLet4.hs
module LayoutLet4 where -- Simple let expression, rename xxx to something longer or shorter -- and the let/in layout should adjust accordingly -- In this case the tokens for xxx + a + b should also shift out foo xxx = let a = 1 b = 2 in xxx + a + b bar = 3
null
https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/transform/LayoutLet4.hs
haskell
Simple let expression, rename xxx to something longer or shorter and the let/in layout should adjust accordingly In this case the tokens for xxx + a + b should also shift out
module LayoutLet4 where foo xxx = let a = 1 b = 2 in xxx + a + b bar = 3
abe62a7b35da084d04ea872b1949a7d0a1ec064162ca10e51ec1a10bb02cd37a
well-typed-lightbulbs/ocaml-esp32
poly.ml
(* TEST * expect *) (* Polymorphic methods are now available in the main branch. Enjoy. *) (* Tests for explicit polymorphism *) open StdLabels;; type 'a t = { t : 'a };; type 'a fold = { fold : 'b. f:('b -> 'a -> 'b) -> init:'b -> 'b };; let f l = { fold = List.fold_left l };; (f [1;2;3]).fold ~f:(+) ~init...
null
https://raw.githubusercontent.com/well-typed-lightbulbs/ocaml-esp32/c24fcbfbee0e3aa6bb71c9b467c60c6bac326cc7/testsuite/tests/typing-poly/poly.ml
ocaml
TEST * expect Polymorphic methods are now available in the main branch. Enjoy. Tests for explicit polymorphism printer is wrong on the next (no official syntax) Type variable scope use before instancing various old bugs Full polymorphism if we do not expand Loose polymorphism if we expand Be...
open StdLabels;; type 'a t = { t : 'a };; type 'a fold = { fold : 'b. f:('b -> 'a -> 'b) -> init:'b -> 'b };; let f l = { fold = List.fold_left l };; (f [1;2;3]).fold ~f:(+) ~init:0;; [%%expect {| type 'a t = { t : 'a; } type 'a fold = { fold : 'b. f:('b -> 'a -> 'b) -> init:'b -> 'b; } val f : 'a list -> 'a fold = ...
2929964f15c82fdadece6214dcdf9f523e297743be54e2e48ed628e16c928229
facebookincubator/hsthrift
Client.hs
----------------------------------------------------------------- Autogenerated by Thrift -- -- DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING @generated ----------------------------------------------------------------- {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE BangPatterns #-} # OPTIONS_GH...
null
https://raw.githubusercontent.com/facebookincubator/hsthrift/d3ff75d487e9d0c2904d18327373b603456e7a01/compiler/test/fixtures/gen-hs2/Service/Y/Client.hs
haskell
--------------------------------------------------------------- DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING --------------------------------------------------------------- # LANGUAGE OverloadedStrings # # LANGUAGE BangPatterns #
Autogenerated by Thrift @generated # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - overlapping - patterns # # OPTIONS_GHC -fno - warn - incomplete - patterns # # OPTIONS_GHC -fno - warn - incomplete - uni - patterns # # LANGUAGE FlexibleContexts # # LANGUAGE TypeFamilies # # LANGUAGE Typ...
ab78b6d828380b0cccc2149a10c9fb954c951438d2243d1f486c6c62d88640c6
kblake/erlang-chat-demo
action_toggle.erl
Nitrogen Web Framework for Erlang Copyright ( c ) 2008 - 2010 See MIT - LICENSE for licensing information . -module (action_toggle). -include_lib ("wf.hrl"). -compile(export_all). render_action(Record) -> #jquery_effect { type=toggle, effect = Record#toggle.effect, options = Record...
null
https://raw.githubusercontent.com/kblake/erlang-chat-demo/6fd2fce12f2e059e25a24c9a84169b088710edaf/apps/nitrogen/src/actions/action_toggle.erl
erlang
Nitrogen Web Framework for Erlang Copyright ( c ) 2008 - 2010 See MIT - LICENSE for licensing information . -module (action_toggle). -include_lib ("wf.hrl"). -compile(export_all). render_action(Record) -> #jquery_effect { type=toggle, effect = Record#toggle.effect, options = Record...
97c62669245aa46d94c0844c79b8a5b157f1539ef24ee1853ee41f4fae50f3f4
nekketsuuu/tapis
stype.ml
(* simple type inference *) open Error open PiSyntax open Location open Type open Sbst exception UnifyT of Type.t * Type.t exception UnifyR of Type.region * Type.region sprint_expr_error : PiSyntax.pl - > Type.t - > Type.t - > string let sprint_expr_error el actual_ty expected_ty = (* TODO(nekketsuuu): 型のpretty ...
null
https://raw.githubusercontent.com/nekketsuuu/tapis/a61ecff95eaf2af27a85290d2a5f99341d28b43c/src/stype.ml
ocaml
simple type inference TODO(nekketsuuu): 型のpretty print TODO(nekketsuuu): print location TODO(nekketsuuu): aty <> ety じゃなくて形で判断させたい Check (types of es) = tys Compose constraints TODO(nekketsuuu): location TODO(nekketsuuu): location annotate : Type.t sbst -> Type.region sbst -> PiSyntax.pl -> unit TODO...
open Error open PiSyntax open Location open Type open Sbst exception UnifyT of Type.t * Type.t exception UnifyR of Type.region * Type.region sprint_expr_error : PiSyntax.pl - > Type.t - > Type.t - > string let sprint_expr_error el actual_ty expected_ty = Printf.sprintf "Type mismatch. An expression %s has ty...
d9a0bf5087aa72c7238dfaadba074e78b677aa28ecbb4378a0c7858e027fe8c6
ocamllabs/ocaml-modular-implicits
test9.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/testsuite/tests/lib-threads/test9.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 . open Event type 'a swap_chan = ('a * '...
22342696ecc17d0c1f819314ef31ae4f4d2e9020239cdd1834e48d05e1c881d4
spectrum-finance/cardano-dex-sdk-haskell
Transaction.hs
{-# OPTIONS_GHC -Wno-unused-imports #-} module SubmitAPI.Internal.Transaction where import RIO import qualified Data.Text as T import qualified Data.Map.Strict as Map import Codec.Serialise (serialise) import Data.ByteString.Lazy (toStrict) import Prettypri...
null
https://raw.githubusercontent.com/spectrum-finance/cardano-dex-sdk-haskell/55493f5f2e800fece51fcb9e296fef2fc2c1331d/submit-api/src/SubmitAPI/Internal/Transaction.hs
haskell
# OPTIONS_GHC -Wno-unused-imports # unused:
module SubmitAPI.Internal.Transaction where import RIO import qualified Data.Text as T import qualified Data.Map.Strict as Map import Codec.Serialise (serialise) import Data.ByteString.Lazy (toStrict) import Prettyprinter (Pretty(..)) import qua...
cb9c3064c83a8151d425c6f8b0c7ecd3f3fad90c22209e4548852309ac76840b
rcherrueau/APE
lang.rkt
#lang racket (require (for-syntax racket/base syntax/parse (only-in "utils.rkt" unique-ids? primitive-op-id?)) (prefix-in racket/base/ racket/base) racket/match syntax/parse/define typed/racket "utils.rkt") ;; Adder+let -- A starte...
null
https://raw.githubusercontent.com/rcherrueau/APE/8b5302709000bd043b64d46d55642acb34ce5ba7/racket/pan/adder%2Blet/lang.rkt
racket
Adder+let -- A starter language that add number + Let-bindings and simple stack allocations. See: - -and-stack_notes.html - n ∈ Nat id ∈ Identifier exp ::= (Exp) | (sub1 exp) (Prim1 Sub1) given instead of a list of programs. The module compiles the underl...
#lang racket (require (for-syntax racket/base syntax/parse (only-in "utils.rkt" unique-ids? primitive-op-id?)) (prefix-in racket/base/ racket/base) racket/match syntax/parse/define typed/racket "utils.rkt") n ...
fec0ae51bf4b0865e23d3e8724f27ba25547732feeee35103767931c254b47b7
den1k/vimsical
queries_test.clj
(ns vimsical.backend.handlers.user.queries-test (:require [clojure.test :refer [are deftest is testing use-fixtures]] [vimsical.backend.handlers.user.queries :as sut] [vimsical.backend.system.fixture :refer [*service-fn* system]])) (use-fixtures :each system) (deftest me-test)
null
https://raw.githubusercontent.com/den1k/vimsical/1e4a1f1297849b1121baf24bdb7a0c6ba3558954/test/backend/vimsical/backend/handlers/user/queries_test.clj
clojure
(ns vimsical.backend.handlers.user.queries-test (:require [clojure.test :refer [are deftest is testing use-fixtures]] [vimsical.backend.handlers.user.queries :as sut] [vimsical.backend.system.fixture :refer [*service-fn* system]])) (use-fixtures :each system) (deftest me-test)
290752966a497d51c4721c91af6ffad0674f9aaeace7ad43458c487b7b017367
AmpersandTarski/Ampersand
Setup.hs
{-# LANGUAGE OverloadedStrings #-} -- | Before each build, generate a BuildInfo_Generated module that exports the project version from cabal, -- the current revision number and the build time. Also generate a file that contains files that -- are being included into the ampersand.exe file -- Note that in order for this...
null
https://raw.githubusercontent.com/AmpersandTarski/Ampersand/776767e0b2e2a8676ff204d624e6549d4b44018a/Setup.hs
haskell
# LANGUAGE OverloadedStrings # | Before each build, generate a BuildInfo_Generated module that exports the project version from cabal, the current revision number and the build time. Also generate a file that contains files that are being included into the ampersand.exe file Note that in order for this Setup.hs to ...
module Main where import qualified Codec . Compression . as replace by Codec . Archive . Zip from package zip - archive . This reduces the amount of packages . ( We now use two for zipping / unzipping ) import Codec.Archive.Zip import Distribution.PackageDescription import Distribution.Pretty (prettyShow) import ...
6914b3700b40b51cdace9fe1319e037b33fac1fb152a5d077d8f9e931b60d6b0
tmattio/tyxml-components
my_story.ml
open Incr_dom.Tyxml.Html let view = Tyxml_stories.Component.make ~title:"My story component" ~code:{| The demo code goes here. |} (div ~a:[ a_class [ "space-y-6 p-4" ] ] [ p [ txt "Hello world" ] ]) let () = Tyxml_stories.add ~name:"My story" ~url:"/hello-world" view
null
https://raw.githubusercontent.com/tmattio/tyxml-components/57603f51ba81bb786a8364eaf9957d65743fd591/example/lib/my_story.ml
ocaml
open Incr_dom.Tyxml.Html let view = Tyxml_stories.Component.make ~title:"My story component" ~code:{| The demo code goes here. |} (div ~a:[ a_class [ "space-y-6 p-4" ] ] [ p [ txt "Hello world" ] ]) let () = Tyxml_stories.add ~name:"My story" ~url:"/hello-world" view
b6c19602ed0e80817ff22f70d34c37b7a8c3e4ce4955c9403c6b50c131c64147
agda/agda
ImpossibleTest.hs
-- | Facility to test throwing internal errors. module Agda.ImpossibleTest where import Agda.TypeChecking.Monad.Base ( TCM, ReduceM, runReduceM ) import Agda.TypeChecking.Monad.Debug ( MonadDebug, __IMPOSSIBLE_VERBOSE__ ) import Agda.TypeChecking.Reduce.Monad () import Agda.Utils.CallStack ( HasCallStac...
null
https://raw.githubusercontent.com/agda/agda/f6b86860cb6fa2203d28080d6e761d3e514bcfdf/src/full/Agda/ImpossibleTest.hs
haskell
| Facility to test throwing internal errors. | If the given list of words is non-empty, print them as debug message (using '__IMPOSSIBLE_VERBOSE__') before raising the internal error.
module Agda.ImpossibleTest where import Agda.TypeChecking.Monad.Base ( TCM, ReduceM, runReduceM ) import Agda.TypeChecking.Monad.Debug ( MonadDebug, __IMPOSSIBLE_VERBOSE__ ) import Agda.TypeChecking.Reduce.Monad () import Agda.Utils.CallStack ( HasCallStack ) import Agda.Utils.Impossible ( __IM...
555a6b77a80e6c6d413d8037c2db59cb46a319916c91799431ef1a4ad77537e6
mzp/coq-ide-for-ios
xml.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/CoqIDE/coq-8.2pl2/plugins/xml/xml.mli
ocaml
********************************************************************** ********************************************************************** This file is distributed under the terms of the ...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // * The HELM Proje...
fbba48be7584d78991bd70d44eac07f16d59191d9c18f80af3696034a1b75602
interactive-ssr/issr-server
hooks.lisp
(in-package #:issr.server) (defun server-uuid () (let ((filename (merge-pathnames "issr/uuid.txt" (or (uiop:getenvp "XDG_DATA_HOME") "~/.local/share/")))) (unless (uiop:directory-exists-p (pathname-directory filename)) (ensure-directories-exist filename)) ...
null
https://raw.githubusercontent.com/interactive-ssr/issr-server/e828e3ea6c6a711f27ceee5a80d3646a89473768/src/hooks.lisp
lisp
(in-package #:issr.server) (defun server-uuid () (let ((filename (merge-pathnames "issr/uuid.txt" (or (uiop:getenvp "XDG_DATA_HOME") "~/.local/share/")))) (unless (uiop:directory-exists-p (pathname-directory filename)) (ensure-directories-exist filename)) ...
6a9e6d45d24569794ee24ce5da3407484823dc62b66a65785e41689ae345c977
haskell/aeson
ErrorMessages.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # module ErrorMessages ( tests ) where import Prelude.Compat import Data.Aeson (FromJSON(..), Value, json) import Data.Aeson.Types (Parser, formatError, iparse) import Data.Aeson.Parser (eitherDecodeWith) import ...
null
https://raw.githubusercontent.com/haskell/aeson/78c2338c20d31ba5dd46036d10d6c4815c12185d/tests/ErrorMessages.hs
haskell
# LANGUAGE OverloadedStrings # Test infrastructure we print unchanged lines too. It shouldn't be a problem while we have reasonably small examples
# LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # module ErrorMessages ( tests ) where import Prelude.Compat import Data.Aeson (FromJSON(..), Value, json) import Data.Aeson.Types (Parser, formatError, iparse) import Data.Aeson.Parser (eitherDecodeWith) import Data.Algorithm.Diff (PolyDiff (..),...
e74ad94b3dbc85d15242c49b792fe357534d7a2389ab1685eb128a33a2820508
kuribas/haskell-opentype
OS2.hs
module Opentype.Fileformat.OS2 where import Data.Word import Data.Int import Data.Binary.Put import Data.Binary.Get import Control.Monad (when) -- | The OS/2 table consists of a set of metrics that are required in OpenType fonts . For a description of these fields see : -- data OS2Table = OS2Table { os2version ...
null
https://raw.githubusercontent.com/kuribas/haskell-opentype/06d24f726370d68dc71509157a87e3a929475a4f/Opentype/Fileformat/OS2.hs
haskell
| The OS/2 table consists of a set of metrics that are required in
module Opentype.Fileformat.OS2 where import Data.Word import Data.Int import Data.Binary.Put import Data.Binary.Get import Control.Monad (when) OpenType fonts . For a description of these fields see : data OS2Table = OS2Table { os2version :: Word16, xAvgCharWidth :: Int16, usWeightClass :: Word16, usWidthC...
3e8472ba764f9e6697266624057b9b2e8f4680b58878ac8442f0e4b5dd4570b0
parapluu/Concuerror
harmless_exit.erl
-module(harmless_exit). -export([test/0]). test() -> process_flag(trap_exit, true), spawn_link(fun() -> exit(abnormal) end), receive _ -> ok end.
null
https://raw.githubusercontent.com/parapluu/Concuerror/152a5ccee0b6e97d8c3329c2167166435329d261/tests-real/suites/output/src/harmless_exit.erl
erlang
-module(harmless_exit). -export([test/0]). test() -> process_flag(trap_exit, true), spawn_link(fun() -> exit(abnormal) end), receive _ -> ok end.
eacc5fea75ccb6a7cbe932067c7bbe51f4c9eecbad146bfbdc1cc4a66052f92f
OCamlPro/typerex-lint
lintParsing_Ast_iterator.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/OCamlPro/typerex-lint/6d9e994c8278fb65e1f7de91d74876531691120c/plugins/ocp-lint-plugin-parsing/lintParsing_Ast_iterator.mli
ocaml
************************************************************************ OCaml ...
, LexiFi Copyright 2012 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the module Asttypes = LintParsing_Asttypes module Ast_helper = LintParsing_Ast_helper module Parsetree = LintParsi...
513e1042a71bea22342f9b9b07145b1ff28445ba911d6cceba990563438cba56
dcavar/schemeNLP
average-re.scm
;;; ":"; exec mzscheme -r $0 "$@" ;;; ---------------------------------------------------- ;;; Filename: average-re.ss Author : < > ;;; ( C ) 2006 by ;;; ;;; This code is published under the restrictive GPL! ;;; Please find the text of the GPL here: ;;; ;;; ;;; It is free for use, change, etc. as long as...
null
https://raw.githubusercontent.com/dcavar/schemeNLP/daa0ddcc4fa67fe00dcf6054c4d30d11a00b2f7f/src/average-re.scm
scheme
":"; exec mzscheme -r $0 "$@" ---------------------------------------------------- Filename: average-re.ss This code is published under the restrictive GPL! Please find the text of the GPL here: It is free for use, change, etc. as long as the copyright note above is included in any modified version of the ...
Author : < > ( C ) 2006 by If the command line parameters contain more than one text file , (require (lib "list.ss")) (require (lib "string.ss" "srfi" "13")) (require (lib "vector-lib.ss" "srfi" "43")) (load "english.ss") (define sort-by-value (lambda (table) (let ([keyval (hash-table-ma...
186515f2a62026b01aa12bef9794ec394c823f6276136865832e875c813e82b3
mbutterick/aoc-racket
test.rkt
#lang reader "lang.rkt" abc
null
https://raw.githubusercontent.com/mbutterick/aoc-racket/2c6cb2f3ad876a91a82f33ce12844f7758b969d6/2016/day14/test.rkt
racket
#lang reader "lang.rkt" abc
a754b69138d65620b87a73bd96641f7eda6c07645acb7402ca31bc65341065fa
ermine/kombain
kmb_input.ml
type input = { buf : string; pos : int; len : int; filename : string; line : int; col : int } type lexeme = { start : int * int; stop : int * int; lexeme : string } let end_of_file input = input.pos = input.len let incr_pos input = no boundaries check due to incr_pos is called only after...
null
https://raw.githubusercontent.com/ermine/kombain/07f643c892b0b9c2ef08d67428bb9125d5251f82/kmb/kmb_input.ml
ocaml
type input = { buf : string; pos : int; len : int; filename : string; line : int; col : int } type lexeme = { start : int * int; stop : int * int; lexeme : string } let end_of_file input = input.pos = input.len let incr_pos input = no boundaries check due to incr_pos is called only after...
772aed09f4dac8cbed76b2c7439a81e66b2af72dbfc80d64fdf442573e25ee8e
BinaryAnalysisPlatform/bap
bap_primus_lisp_word.mli
open Core_kernel[@@warning "-D"] open Bap_primus_lisp_types type t = word [@@deriving compare, sexp_of] type read_error = Empty | Not_an_int | Unclosed | Bad_literal | Bad_type val read : Id.t -> Eq.t -> string -> (t,read_error) result
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/253afc171bbfd0fe1b34f6442795dbf4b1798348/lib/bap_primus/bap_primus_lisp_word.mli
ocaml
open Core_kernel[@@warning "-D"] open Bap_primus_lisp_types type t = word [@@deriving compare, sexp_of] type read_error = Empty | Not_an_int | Unclosed | Bad_literal | Bad_type val read : Id.t -> Eq.t -> string -> (t,read_error) result
94606882df0c70530b27fc7d35e29cbe91746de2cc64795606f28d8a2d350128
NorfairKing/declops
ProviderName.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE GeneralizedNewtypeDeriving # module Declops.Provider.ProviderName where import Autodocodec import Data.Aeson (FromJSON, FromJSONKey, ToJSON, ToJSONKey) import Data.Proxy import Data.String import Data.Text (Text) import Data.Validity import Data.Validity....
null
https://raw.githubusercontent.com/NorfairKing/declops/79ef87a7c17ff31eb5281b0be76a30857ae1c88a/declops-provider/src/Declops/Provider/ProviderName.hs
haskell
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE GeneralizedNewtypeDeriving # module Declops.Provider.ProviderName where import Autodocodec import Data.Aeson (FromJSON, FromJSONKey, ToJSON, ToJSONKey) import Data.Proxy import Data.String import Data.Text (Text) import Data.Validity import Data.Validity....
ce7cd9b3cb6720fd7567823d1390c385ed7dfd1ed19334073582ac17d069ef00
jhb563/MazeGame
MazeParser.hs
module MazeParser where import Control.Monad (forM) import Control.Monad.State (State, get, put, execState) import qualified Data.Array as Array import Data.Char (toLower, intToDigit, toUpper, digitToInt) import Data.Either (fromRight) import Data.List (groupBy) import qualified Data.Map as Map import Data.Maybe (from...
null
https://raw.githubusercontent.com/jhb563/MazeGame/c921e77ff24cd6c2185e97808e2d54abf7c334c4/src/MazeParser.hs
haskell
top-right-bottom-left Pick out start location. Pick end location. Set up initial state. Run DFS Input must be non empty!
module MazeParser where import Control.Monad (forM) import Control.Monad.State (State, get, put, execState) import qualified Data.Array as Array import Data.Char (toLower, intToDigit, toUpper, digitToInt) import Data.Either (fromRight) import Data.List (groupBy) import qualified Data.Map as Map import Data.Maybe (from...
94b38d14f2c62a17d80728e8c167cd541f0bce136b2c16937c05a9a43675b890
visi-lang/visi
Markdown.hs
module Visi.Markdown (markdown) where Copyright ( c ) 2003 - 2004 < / > Copyright ( c ) 2012 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 mus...
null
https://raw.githubusercontent.com/visi-lang/visi/8993314128e562b829f27266bc660c5eff4623b8/core/src/Visi/Markdown.hs
haskell
module Visi.Markdown (markdown) where Copyright ( c ) 2003 - 2004 < / > Copyright ( c ) 2012 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 mus...
8397d632ebbbab06ba6d58e72b34a03d54eadff8567ef29bea1580cd2006c784
ctford/overtunes
core.clj
(ns before.test.core (:use [before.core]) (:use [clojure.test])) (deftest replace-me ;; FIXME: write (is false "No tests have been written."))
null
https://raw.githubusercontent.com/ctford/overtunes/44dc2d6482315e1893cf19000cfe3381a2c41da4/test/overtunes/test/core.clj
clojure
FIXME: write
(ns before.test.core (:use [before.core]) (:use [clojure.test])) (is false "No tests have been written."))
13e3ebc950af58ab06a80d6d02a99821b3684ab12326c6fb2222e618a2af732b
sebhoss/finj
deprecation.clj
; Copyright © 2013 < > ; This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License , Version 2 , as published by . See / for more details . ; (ns finj.deprecation "In accountancy, depreciation refers to two aspects of the same concept: ...
null
https://raw.githubusercontent.com/sebhoss/finj/7c27cb506528642a6e8a673be1b9a49d68e533e5/src/main/clojure/finj/deprecation.clj
clojure
This work is free. You can redistribute it and/or modify it under the
Copyright © 2013 < > terms of the Do What The Fuck You Want To Public License , Version 2 , as published by . See / for more details . (ns finj.deprecation "In accountancy, depreciation refers to two aspects of the same concept: * the decrease in value of assets (fair value depreciation), and * ...
e68f38b50dd35501f8342d0a4e21a9732f9794132752b1f0d57d92412e4eb38c
gcross/LogicGrowsOnTrees
LogicGrowsOnTrees.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # LANGUAGE UnicodeSyntax # {-| Basic functionality for building and exploring trees. -} module LogicGrows...
null
https://raw.githubusercontent.com/gcross/LogicGrowsOnTrees/4befa81eb7152d877a7c78338d21bed61b06db66/LogicGrowsOnTrees/sources/LogicGrowsOnTrees.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE GADTs # | Basic functionality for building and exploring trees. * Tree types $types $type-classes * Functions $functions ** ...that explore trees $runners ** ...that help building trees $builders ** ...that transform trees * Implementation $implementation --------------...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # LANGUAGE UnicodeSyntax # module LogicGrowsOnTrees ( Tree , TreeIO , TreeT(..) * Explorable class features , MonadExplorable(..) ...
8521532de318cfe3db748d2f08a589cc31c928758557f91c29933e0a249ca3a4
facebook/duckling
Rules.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 GADTs #-} # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} module Duckling.Volume.RO...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Volume/RO/Rules.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 GADTs # # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. # LANGUAGE LambdaCase # module Duckling.Volume.RO.Rules ( rules ) where import Data.String import Data.Text (Text) import Prelude import Duckling.Dimensions.Types import Duckling.Types import Duckling.Regex.Types import Duckling.Volume.Helpers import Duckling....
a60528ac3e984f11122b1bd1297eee174e2f54059fecdc0abc82a3b64c7de102
shayne-fletcher/zen
curves_sig.mli
(** Curves.curve interface *) module type S = sig * { 2 Curve operations } (** The curve type *) type curve = { curve_dates : CalendarLib.Date.t list ; curve_abscissae : float list ; curve_ordinates : float list ; curve_interpolation : float list -> float list -> float -> float } ...
null
https://raw.githubusercontent.com/shayne-fletcher/zen/10a1d0b9bf261bb133918dd62fb1593c3d4d21cb/ocaml/curve/curves_sig.mli
ocaml
* Curves.curve interface * The curve type * Make a string of curve * Append the implied discount factor to the curve * Append the implied discount factor to the curve * Extract the base date from a curve * Query the curve for a response
module type S = sig * { 2 Curve operations } type curve = { curve_dates : CalendarLib.Date.t list ; curve_abscissae : float list ; curve_ordinates : float list ; curve_interpolation : float list -> float list -> float -> float } val string_of_curve : curve -> string val append...
f62ddb428af5da083f1a2a98f409994d0a8622540a5a788d8364933e58a1d7db
rtrusso/scp
hw3.scm
(define get-number (let ((number 3)) (lambda () (set! number (+ 1 number)) number))) (display (get-number)) (newline) (display (get-number)) (newline) (display (get-number)) (newline)
null
https://raw.githubusercontent.com/rtrusso/scp/2051e76df14bd36aef81aba519ffafa62b260f5c/src/tests/hw3.scm
scheme
(define get-number (let ((number 3)) (lambda () (set! number (+ 1 number)) number))) (display (get-number)) (newline) (display (get-number)) (newline) (display (get-number)) (newline)
b8b51d0cc2e2de4e56b51ad6143864aaba942e4a867f906d76626b8b77f1d788
weyrick/roadsend-php
gtk-static.scm
;; ***** BEGIN LICENSE BLOCK ***** Roadsend PHP Compiler Runtime Libraries Copyright ( C ) 2007 Roadsend , Inc. ;; ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 2....
null
https://raw.githubusercontent.com/weyrick/roadsend-php/d6301a897b1a02d7a85bdb915bea91d0991eb158/runtime/ext/gtk/gtk-static.scm
scheme
***** BEGIN LICENSE BLOCK ***** This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License either version 2.1 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER...
Roadsend PHP Compiler Runtime Libraries Copyright ( C ) 2007 Roadsend , Inc. of the License , or ( at your option ) any later version . GNU Lesser General Public License for more details . You should have received a copy of the GNU Lesser General Public License Foundation , Inc. , 51 Franklin Street , Fifth...
b326f027a894957007427f9744d6437929bb2263832305d5be8bbb3958abcc82
ocsigen/ocaml-eliom
unix.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocsigen/ocaml-eliom/497c6707f477cb3086dc6d8124384e74a8c379ae/otherlibs/unix/unix.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 error = E2BIG | EACCES | EAGAIN | EBADF | EBUSY | ECHILD | EDEADLK | EDOM | EEXI...
d9bc771b415d75c6e3230133bb9decb90899f582623a241bc45411f54a909aa0
ml4tp/tcoq
stm.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/stm/stm.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** During interactive use we cache mor...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * let pr_err s = Printf.eprintf...
f5be52901434a00ceaeb6a0d4cdb5134395548e74a512212a6d089a488b57d79
tsloughter/kuberl
kuberl_v1beta1_cluster_role_binding.erl
-module(kuberl_v1beta1_cluster_role_binding). -export([encode/1]). -export_type([kuberl_v1beta1_cluster_role_binding/0]). -type kuberl_v1beta1_cluster_role_binding() :: #{ 'apiVersion' => binary(), 'kind' => binary(), 'metadata' => kuberl_v1_object_meta:kuberl_v1_object_meta(), 'roleRef' := ...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1beta1_cluster_role_binding.erl
erlang
-module(kuberl_v1beta1_cluster_role_binding). -export([encode/1]). -export_type([kuberl_v1beta1_cluster_role_binding/0]). -type kuberl_v1beta1_cluster_role_binding() :: #{ 'apiVersion' => binary(), 'kind' => binary(), 'metadata' => kuberl_v1_object_meta:kuberl_v1_object_meta(), 'roleRef' := ...
e3d6a96e4c5b58759fde31e572ca661a5a219be394dbd688d153eff39b9a4c0d
blindglobe/common-lisp-stat
dists.lsp
;;; -*- mode: lisp -*- Copyright ( c ) 2005 - -2008 , by < > ;;; See COPYRIGHT file for any additional restrictions (BSD license). Since 1991 , ANSI was finally finished . Edited for ANSI Common Lisp . ;;; dists -- Lisp-Stat interface to basic probability distribution routines ;;; Copyright ( c ) 1991 , b...
null
https://raw.githubusercontent.com/blindglobe/common-lisp-stat/0c657e10a4ee7e8d4ef3737f8c2d4e62abace2d8/src/numerics/dists.lsp
lisp
-*- mode: lisp -*- See COPYRIGHT file for any additional restrictions (BSD license). dists -- Lisp-Stat interface to basic probability distribution routines unrestricted use. This stuff needs to be improved. We really could use something like the R libraries, but of course in a better packaged manner. Current...
Copyright ( c ) 2005 - -2008 , by < > Since 1991 , ANSI was finally finished . Edited for ANSI Common Lisp . Copyright ( c ) 1991 , by . Permission is granted for (in-package :lisp-stat-probability) (defun set-seed (x) "stupid dummy function, need to implement rng seeding tool." (values x)) (...
f3d7048bc8ff755f952b7a4581343026c44921957cd1501cc96d41d52a060ff5
FundingCircle/fc4-framework
renderer.clj
(ns fc4.integrations.structurizr.express.renderer (:require [clj-chrome-devtools.automation :as a :refer [automation?]] [clj-chrome-devtools.impl.connection :refer [connect connection? make-ws-client]] [clojure.java.io :refer [file]] [clojure.spec.alpha :as s] [clojure....
null
https://raw.githubusercontent.com/FundingCircle/fc4-framework/674af39e7edb2cbfd3e1941e6abe80fd87d93bed/src/fc4/integrations/structurizr/express/renderer.clj
clojure
for side effects Some of the functions include some type hints or type casts. These are to prevent reflection, but not for the usual reason of improving performance. In this case, some of the reflection leads to message printed to stdout (or maybe stderr). I found this approach here: #issuecomment-375295195 Valid...
(ns fc4.integrations.structurizr.express.renderer (:require [clj-chrome-devtools.automation :as a :refer [automation?]] [clj-chrome-devtools.impl.connection :refer [connect connection? make-ws-client]] [clojure.java.io :refer [file]] [clojure.spec.alpha :as s] [clojure....
1cfc0648d98526f52af5f47d323472c3edc6830b7bbb02a415ac61085076eb6b
ekmett/ersatz
Problem.hs
# LANGUAGE CPP # {-# LANGUAGE Rank2Types #-} # LANGUAGE TypeFamilies # # LANGUAGE PatternGuards # # LANGUAGE FlexibleInstances # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE Trustworthy # {-# LANGUAGE ConstraintKinds #-} # OPTIONS_HADDOCK not - home # -------------------------------...
null
https://raw.githubusercontent.com/ekmett/ersatz/2218d30818141957957b1533118dd34bd60df245/src/Ersatz/Problem.hs
haskell
# LANGUAGE Rank2Types # # LANGUAGE OverloadedStrings # # LANGUAGE ConstraintKinds # ------------------------------------------------------------------ | License : BSD3 Stability : experimental Portability: non-portable ------------------------------------------------------------------ * SAT * QSAT * DIMACS ...
# LANGUAGE CPP # # LANGUAGE TypeFamilies # # LANGUAGE PatternGuards # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE Trustworthy # # OPTIONS_HADDOCK not - home # Copyright : © 2010 - 2014 , 2013 Maintainer : < > module Ersatz.Problem ( SAT(SAT) , HasSAT(..) , Mona...
649b4786b16139be8a79edfcfbaa7b5a997c2818a0c914554dd783e91767e5bd
aspiwack/porcupine
Locations.hs
module Data.Locations ( module Data.Locations.Loc , module Data.Locations.LocationTree , module Data.Locations.LocVariable , module Data.Locations.Mappings , module Data.Locations.VirtualFile , module Data.Locations.SerializationMethod , module Data.Locations.LogAndErrors ) where import Data....
null
https://raw.githubusercontent.com/aspiwack/porcupine/23dcba1523626af0fdf6085f4107987d4bf718d7/porcupine-core/src/Data/Locations.hs
haskell
module Data.Locations ( module Data.Locations.Loc , module Data.Locations.LocationTree , module Data.Locations.LocVariable , module Data.Locations.Mappings , module Data.Locations.VirtualFile , module Data.Locations.SerializationMethod , module Data.Locations.LogAndErrors ) where import Data....
72db7eee8f81a79710ba2ee68453b3a98412718b1645cc8bbde272fd8583ebe1
shirok/WiLiKi
core.scm
;; test wiliki.core (use gauche.test) (test-start "core") (use wiliki.core) (test-module 'wiliki.core) (test* "constructor" '<wiliki> (class-name (class-of (make <wiliki>)))) ;; more tests to come... (test-end)
null
https://raw.githubusercontent.com/shirok/WiLiKi/5fce918ed5b3f9c69cd2972c418bd72cbc0b1fe5/test/core.scm
scheme
test wiliki.core more tests to come...
(use gauche.test) (test-start "core") (use wiliki.core) (test-module 'wiliki.core) (test* "constructor" '<wiliki> (class-name (class-of (make <wiliki>)))) (test-end)
18db7cc2a1bf88ee3a257d0967b059c493de2696f7e987af62ac1850e964bdd7
tonyvanriet/clj-slack-client
groups.clj
(ns clj-slack-client.groups (:require [clj-slack-client.web :as web]) (:refer-clojure :exclude [list])) (def api-module "groups") (defn- call ([method-name token] (web/call-and-get-response (str api-module "." method-name) {:token token})) ([method-name token channel] (web/call-and-get-response (str api...
null
https://raw.githubusercontent.com/tonyvanriet/clj-slack-client/6783f003ab93adae057890421622eb5e61ab033d/src/clj_slack_client/groups.clj
clojure
(ns clj-slack-client.groups (:require [clj-slack-client.web :as web]) (:refer-clojure :exclude [list])) (def api-module "groups") (defn- call ([method-name token] (web/call-and-get-response (str api-module "." method-name) {:token token})) ([method-name token channel] (web/call-and-get-response (str api...
5bb71f3e097d622c2d2cd3510582491b297933538c11ef0fdebffa5c3f0e2bd3
mfelleisen/Acquire
xrun.rkt
#lang racket ;; --------------------------------------------------------------------------------------------------- ;; a generic script generator ;; generated script runs client on specified in<n>.xml files ;; and compares the expected XML output with outN.xml ;; via some xml-diff checker (provide main test-director...
null
https://raw.githubusercontent.com/mfelleisen/Acquire/5b39df6c757c7c1cafd7ff198641c99d30072b91/xrun.rkt
racket
--------------------------------------------------------------------------------------------------- a generic script generator generated script runs client on specified in<n>.xml files and compares the expected XML output with outN.xml via some xml-diff checker systems require: it relies on a script in xdiff-x...
#lang racket (provide main test-directory xml-diff xclient) (define test-directory (make-parameter #f)) (define xml-diff (make-parameter #f)) (define xclient (make-parameter #f)) (define (main . x) (define files (parameterize ((current-directory (test-directory))) (for/list ((f (directory-...
789c83d7a38978b392500b07b64e075af64437ef6d937c23314850142f7e056f
joodie/flutter
html4.clj
(ns flutter.html4 "convenience functions providing all the standard HTML fields" (:use flutter.core flutter.html4.input-fields flutter.html4.select flutter.html4.text-area)) (defn wrap-html4-fields "Provides all the HTML 4 form fields in a sane way. Includes wrap-basic-input-fields, wrap...
null
https://raw.githubusercontent.com/joodie/flutter/336e40386ff4e79ce9243ec8690e2a62c41f80a3/src/flutter/html4.clj
clojure
(ns flutter.html4 "convenience functions providing all the standard HTML fields" (:use flutter.core flutter.html4.input-fields flutter.html4.select flutter.html4.text-area)) (defn wrap-html4-fields "Provides all the HTML 4 form fields in a sane way. Includes wrap-basic-input-fields, wrap...
8e44d624004308441c5ea8b62e6078cf9a2f702fbac7dcc6936f8d8f1cf2ad53
CloudI/CloudI
folsom_ewma.erl
%%% Copyright 2011 , Boundary %%% 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 dist...
null
https://raw.githubusercontent.com/CloudI/CloudI/3e45031c7ee3e974ead2612ea7dd06c9edf973c9/src/external/cloudi_x_folsom/src/folsom_ewma.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 or implied. See the License for the specific language governing per...
Copyright 2011 , Boundary Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , File : folsom_ewma.erl @author < > based on -module(folsom_ewma). -define(INSTANT_ALPHA, 1). -define(M1_ALPHA, 1 - math:ex...
02f5b87736b6b5708e30926369925fc908393b5e18ff5991b5edccf0dae0eac4
xmonad/xmonad
Screen.hs
# LANGUAGE ScopedTypeVariables # module Properties.Screen where import Utils import Test.QuickCheck import Instances import Control.Applicative import XMonad.StackSet hiding (filter) import XMonad.Operations import Graphics.X11.Xlib.Types (Dimension) import Graphics.X11 (Rectangle(Rectangle)) import XMonad.Layout p...
null
https://raw.githubusercontent.com/xmonad/xmonad/45a89130d96bfb4fe449e438e5436b73ca4ab4ed/tests/Properties/Screen.hs
haskell
screens makes sense ---------------------------------------------------------------------- Hints inc_h) inc_h) applyAspectHint does nothing when the supplied (x,y) fits the desired range
# LANGUAGE ScopedTypeVariables # module Properties.Screen where import Utils import Test.QuickCheck import Instances import Control.Applicative import XMonad.StackSet hiding (filter) import XMonad.Operations import Graphics.X11.Xlib.Types (Dimension) import Graphics.X11 (Rectangle(Rectangle)) import XMonad.Layout p...
95e85eaa95e5c86efc43dd7bbafeeee71b158a2062797d9031bed7f6da1566a3
rystsov/fast-jepsen
db.clj
(ns mongo-http.db "API to work with MongoDB via an exposed HTTP interface" (:use clojure.tools.logging) (:require [clojure.tools.logging :refer [debug info warn]] [clj-http.client :as client] [clojure.data.json :as json])) (defn primary "Returns a node name (string) of a current primary" [host] ...
null
https://raw.githubusercontent.com/rystsov/fast-jepsen/1a7c5e93cdc9cb8bfb29eda8f0079277375e108d/jepsen/src/src/mongo_http/db.clj
clojure
in milliseconds in milliseconds in milliseconds in milliseconds in milliseconds in milliseconds in milliseconds in milliseconds
(ns mongo-http.db "API to work with MongoDB via an exposed HTTP interface" (:use clojure.tools.logging) (:require [clojure.tools.logging :refer [debug info warn]] [clj-http.client :as client] [clojure.data.json :as json])) (defn primary "Returns a node name (string) of a current primary" [host] ...
863af31335d3ee0d6b7307e174b37afe76d8a7e6add8c98e44ca46ad66423a4b
ocaml-multicore/tezos
size.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2021 - 2022 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/src/proto_alpha/lib_benchmarks_proto/size.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2021 - 2022 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN ...