_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
3b6be7fd409fec64fff978d1426efaf6ab7c3becfe858d167e8cb2dc191ae2ea
byteally/webapi
SwaggerJSONGen.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE DeriveGeneric # # LANGUAGE ScopedTypeVariables # {-# LANGUAGE DataKinds #-} # LANGUAGE CPP # # LANGUAGE TypeFamilies # # LANGUAGE FlexibleContexts # module SwaggerJSONGen where import Data.Aeson as A import Data.Text as T import qualified Data.List as DL imp...
null
https://raw.githubusercontent.com/byteally/webapi/8d712d0ae786475b177beacee32dc40db320af4c/webapi-swagger/src/SwaggerJSONGen.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE DataKinds # TODO : Add path params to this? TODO: cookie in/out and header out need to be added when we encounter them default name for body param is "body" construct ParamAnySchema with Array of Primitive SwaggerType construct ParamAnySchema with Ref type ( u...
# LANGUAGE DeriveGeneric # # LANGUAGE ScopedTypeVariables # # LANGUAGE CPP # # LANGUAGE TypeFamilies # # LANGUAGE FlexibleContexts # module SwaggerJSONGen where import Data.Aeson as A import Data.Text as T import qualified Data.List as DL import Data.ByteString as BS import qualified Data.ByteString.Lazy as BSL imp...
822ff150589826c55ad3fff67cecb8a5da77fd84f7e08c371bd980d23623222d
lemaetech/jsoo_todomvc
storage.mli
open Std type t val create : unit -> (t, [> `Not_supported of string]) result val get : t -> Js.js_string Js.t option val put : t -> Js.js_string Js.t -> unit
null
https://raw.githubusercontent.com/lemaetech/jsoo_todomvc/39b0a87dc185b2ebce30af51575e9ac968c50394/src/storage.mli
ocaml
open Std type t val create : unit -> (t, [> `Not_supported of string]) result val get : t -> Js.js_string Js.t option val put : t -> Js.js_string Js.t -> unit
f7393aab4b0446852323f6dd0c51752f080e9d0574d1550440cdf2bee2f8b999
cram2/cram
defmfun-single.lisp
Helpers that define a single GSL function interface 2009 - 01 - 07 22:02:20EST defmfun-single.lisp Time - stamp : < 2010 - 06 - 27 18:28:23EDT defmfun-single.lisp > ;; Copyright 2009 Distributed under the terms of the GNU General Public License ;; ;; This program is free software: you can redistribute it...
null
https://raw.githubusercontent.com/cram2/cram/dcb73031ee944d04215bbff9e98b9e8c210ef6c5/cram_3rdparty/gsll/src/init/defmfun-single.lisp
lisp
This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Publi...
Helpers that define a single GSL function interface 2009 - 01 - 07 22:02:20EST defmfun-single.lisp Time - stamp : < 2010 - 06 - 27 18:28:23EDT defmfun-single.lisp > Copyright 2009 Distributed under the terms of the GNU General Public License it under the terms of the GNU General Public License as publi...
0b98e437abffc662434c2c3d02c813e4192ed37729ba0b981f23e30bb1dfd62c
clj-commons/cljss
units.clj
(ns cljss.css.units (:require [clojure.spec.alpha :as s])) ;; ;; Numeric data types ;; (s/def ::integer int?) (s/def ::number number?) (s/def ::percentage (s/cat :value (s/and number? #(s/int-in-range? 0 101 %)) :unit #{:%})) (s/def ::angle (s/cat :value (s/and ...
null
https://raw.githubusercontent.com/clj-commons/cljss/d2856688cf650babe518c798cf20e6bdb4227bb7/src/cljss/css/units.clj
clojure
Numeric data types CSS Units Dimensions (numbers with units) Generic CSS Dimensions spec
(ns cljss.css.units (:require [clojure.spec.alpha :as s])) (s/def ::integer int?) (s/def ::number number?) (s/def ::percentage (s/cat :value (s/and number? #(s/int-in-range? 0 101 %)) :unit #{:%})) (s/def ::angle (s/cat :value (s/and number? #(s/int-in-ra...
a1d58e1db1464ea9a02b28565d8d19df404dccad88310f7e59c660788c7f33cb
moby/datakit
branch.ml
include Irmin.Branch.String let is_valid s = let ok = ref true in let n = String.length s in let i = ref 0 in while !i < n do ( match s.[!i] with | '/' | 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '-' | '_' | '.' -> () | _ -> ok := false ); incr i done; !ok
null
https://raw.githubusercontent.com/moby/datakit/e047e55a2dfa3aaec02398d7d7699f4f7afd2b47/src/datakit/branch.ml
ocaml
include Irmin.Branch.String let is_valid s = let ok = ref true in let n = String.length s in let i = ref 0 in while !i < n do ( match s.[!i] with | '/' | 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '-' | '_' | '.' -> () | _ -> ok := false ); incr i done; !ok
5da8e91501327215b61eb04e01991f88bfcf7a0dc0de9e8bfe9130a27a8b742a
grin-compiler/ghc-wpc-sample-programs
Abstract.hs
# LANGUAGE TypeFamilies # -- | Tools to manipulate patterns in abstract syntax in the TCM ( type checking monad ) . module Agda.TypeChecking.Patterns.Abstract where import qualified Data.List as List import Data.Void import qualified Agda.Syntax.Abstract as A import Agda.Syntax.Abstract.Pattern import Agda.Synt...
null
https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/Agda-2.6.1/src/full/Agda/TypeChecking/Patterns/Abstract.hs
haskell
| Tools to manipulate patterns in abstract syntax | Expand literal integer pattern into suc/zero constructor patterns. | Expand away (deeply) all pattern synonyms in a pattern. Unfortunately, the more general type signature arising from a use of ‘postTraverseAPatternM’ and keep the type class ExpandPatte...
# LANGUAGE TypeFamilies # in the TCM ( type checking monad ) . module Agda.TypeChecking.Patterns.Abstract where import qualified Data.List as List import Data.Void import qualified Agda.Syntax.Abstract as A import Agda.Syntax.Abstract.Pattern import Agda.Syntax.Abstract.Views import Agda.Syntax.Concrete (FieldA...
c50479682fcdc1828b0a832556ef86dfca95310c41e57545633f389a3dcecd06
metametadata/carry
actions.cljs
(ns app.common.actions (:require [cljs.core.match :refer-macros [match]])) (defn on-action [model action] (match action [:navigate pane] (assoc model :pane pane) :else :cant-handle))
null
https://raw.githubusercontent.com/metametadata/carry/fa5c7cd0d8f1b71edca70330acc97c6245638efb/examples/blueprint-splitting-hof/src/app/common/actions.cljs
clojure
(ns app.common.actions (:require [cljs.core.match :refer-macros [match]])) (defn on-action [model action] (match action [:navigate pane] (assoc model :pane pane) :else :cant-handle))
b82cd98db927f93c659705ca7569fe764b29c755cd01152d99c86ee0d9ea31f4
graninas/Functional-Design-and-Architecture
Language.hs
module Sandwich.Language where import Control.Monad.Free data BreadType = Baguette | BananaBread | Pumpernickel | Toast | RyeBread | Sourdough deriving (Show, Eq, Ord) data Component = Bread BreadType | Tomato | Salt | Pepper | Cheese | Butter | LunchMeat | Lettuce deriving (Show, ...
null
https://raw.githubusercontent.com/graninas/Functional-Design-and-Architecture/75408c6fc9ca91f39d118ad961baa0cb32800835/Second-Edition-Manning-Publications/BookSamples/CH07/Section7p1/src/Sandwich/Language.hs
haskell
module Sandwich.Language where import Control.Monad.Free data BreadType = Baguette | BananaBread | Pumpernickel | Toast | RyeBread | Sourdough deriving (Show, Eq, Ord) data Component = Bread BreadType | Tomato | Salt | Pepper | Cheese | Butter | LunchMeat | Lettuce deriving (Show, ...
e55837d5d189130c4cd5a68eba33545c448e8a4a7bff16641d17dd5f79baf09e
NorfairKing/smos
Undo.hs
{-# LANGUAGE OverloadedStrings #-} module Smos.Actions.Undo ( allUndoPlainActions, allUndoUsingCharActions, undo, undoAny, redo, redoAny, ) where import Data.Function import Smos.Actions.Utils import Smos.History import Smos.Types allUndoPlainActions :: [Action] allUndoPlainActions = [undo, u...
null
https://raw.githubusercontent.com/NorfairKing/smos/f72b26c2e66ab4f3ec879a1bedc6c0e8eeb18a01/smos/src/Smos/Actions/Undo.hs
haskell
# LANGUAGE OverloadedStrings # Undo a non-movement action Undo any action, even movements Undo a non-movement action Undo any action, even movements
module Smos.Actions.Undo ( allUndoPlainActions, allUndoUsingCharActions, undo, undoAny, redo, redoAny, ) where import Data.Function import Smos.Actions.Utils import Smos.History import Smos.Types allUndoPlainActions :: [Action] allUndoPlainActions = [undo, undoAny, redo, redoAny] allUndoUsin...
5c8de3be1ca60395cc7eda93ef87f712156c34a53593f2c342edab75f24eaf81
RefactoringTools/wrangler
refac_rename_function.erl
%% @hidden @private -module(refac_rename_function). -behaviour(gen_refac). -compile(export_all). %% Include files -include("wrangler.hrl"). %%%=================================================================== %% gen_refac callbacks -export([input_par_prompts/0,select_focus/1, check_pre_c...
null
https://raw.githubusercontent.com/RefactoringTools/wrangler/97e4bfd9ea9f7a9af38945a662ee1a3078e49af3/src/gen_refacs/refac_rename_function.erl
erlang
@hidden Include files =================================================================== gen_refac callbacks =================================================================== gen_refac callbacks =================================================================== -------------------------------------------...
@private -module(refac_rename_function). -behaviour(gen_refac). -compile(export_all). -include("wrangler.hrl"). -export([input_par_prompts/0,select_focus/1, check_pre_cond/1, selective/0, transform/1]). @private input_par_prompts ( ) - > [ string ( ) ] input_par_prompts...
5ed625a5c76743d22b44ddd297d54dabe2c245f70d09e8a698a97a6a6bec7445
haskell/cabal
Lib.hs
module Lib (foo) where import Dep (bar) import Dep2 (baz) foo :: Int foo = bar + baz
null
https://raw.githubusercontent.com/haskell/cabal/0db95ca3e717a74c01df8d99da409ea0b8b1cfce/cabal-testsuite/PackageTests/RelativePathProjectImports/Lib.hs
haskell
module Lib (foo) where import Dep (bar) import Dep2 (baz) foo :: Int foo = bar + baz
11c0266887b49a0b1c02866462169b7c6827b47dcefadf306ec2f344e48393d8
Octachron/codept
basic.ml
module M = struct module A = struct end end module A = struct open M open Ext open A end module B = struct open Ext2 open A end
null
https://raw.githubusercontent.com/Octachron/codept/2d2a95fde3f67cdd0f5a1b68d8b8b47aefef9290/tests/cases/basic.ml
ocaml
module M = struct module A = struct end end module A = struct open M open Ext open A end module B = struct open Ext2 open A end
f8440dea08c78b483656819fee5c9fd276c697599229937147c5956c34be35d7
wireless-net/erlang-nommu
erl_compile.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1997 - 2014 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Publi...
null
https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/stdlib/src/erl_compile.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitatio...
Copyright Ericsson AB 1997 - 2014 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(erl_compile). -include("erl_compil...
c5fcd3773f8bd8ac1b10353a0c43e657cb6a5800c64ef2a6481f53a7c932daf7
dradtke/Lisp-Text-Editor
symbols.lisp
(in-package :alexandria) (declaim (inline ensure-symbol)) (defun ensure-symbol (name &optional (package *package*)) "Returns a symbol with name designated by NAME, accessible in package designated by PACKAGE. If symbol is not already accessible in PACKAGE, it is interned there. Returns a secondary value reflecting t...
null
https://raw.githubusercontent.com/dradtke/Lisp-Text-Editor/b0947828eda82d7edd0df8ec2595e7491a633580/quicklisp/dists/quicklisp/software/alexandria-20120208-git/symbols.lisp
lisp
(in-package :alexandria) (declaim (inline ensure-symbol)) (defun ensure-symbol (name &optional (package *package*)) "Returns a symbol with name designated by NAME, accessible in package designated by PACKAGE. If symbol is not already accessible in PACKAGE, it is interned there. Returns a secondary value reflecting t...
db356c3d6cb5fb9e9b5da798d591eb30461c1790a689ea1b50a5c227d0320d32
grin-compiler/ghc-whole-program-compiler-project
Int64.hs
# LANGUAGE RecordWildCards , LambdaCase , OverloadedStrings , PatternSynonyms , Strict # module Stg.Interpreter.PrimOp.Int64 where import Stg.Syntax import Stg.Interpreter.Base import Data.Int import Data.Word import Data.Bits pattern IntV i = IntAtom i -- Literal (LitNumber LitNumInt i) pattern Int64V i = IntAt...
null
https://raw.githubusercontent.com/grin-compiler/ghc-whole-program-compiler-project/6e75aaccf4df0d78786f5bb1a28778d54c09a7be/external-stg-interpreter/lib/Stg/Interpreter/PrimOp/Int64.hs
haskell
Literal (LitNumber LitNumInt i) Literal (LitNumber LitNumInt i) int64ToInt# :: Int64# -> Int# intToInt64# :: Int# -> Int64# negateInt64# :: Int64# -> Int64# plusInt64# :: Int64# -> Int64# -> Int64# subInt64# :: Int64# -> Int64# -> Int64# timesInt64# :: Int64# -> Int64# -> Int64# quotInt64# :: Int64# -> Int64# ...
# LANGUAGE RecordWildCards , LambdaCase , OverloadedStrings , PatternSynonyms , Strict # module Stg.Interpreter.PrimOp.Int64 where import Stg.Syntax import Stg.Interpreter.Base import Data.Int import Data.Word import Data.Bits Literal ( LitNumber LitNumWord i ) Literal ( LitNumber LitNumWord i ) evalPrimOp :: P...
4a5246bb85919b508ee57ea66906bc85260c5335b6a5b9625c552a86b57e1e48
swift-nav/labsat
Types.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Labsat.Types where import Data.Scientific import Preamble -- | HelpCommands: List of commands returned by 'HELP' -- newtype HelpCommands = HelpCommands [ByteString] deriving (Eq, Show) $(makePrisms ''HelpCo...
null
https://raw.githubusercontent.com/swift-nav/labsat/58ec344fffa6e06c27d30bc3f753103e312040ee/src/Labsat/Types.hs
haskell
# LANGUAGE OverloadedStrings # | HelpCommands: List of commands returned by 'HELP' | Info: List of information returned by 'TYPE' | PlayConf: Playback configuration File to playback Starting position | RecConf: Record configuration File to record Record duration | MuteConf: Mute configuration | Attentu...
# LANGUAGE NoImplicitPrelude # # LANGUAGE TemplateHaskell # module Labsat.Types where import Data.Scientific import Preamble newtype HelpCommands = HelpCommands [ByteString] deriving (Eq, Show) $(makePrisms ''HelpCommands) newtype Info = Info [ByteString] deriving (Eq, Show) $(makePrisms ''Info) |...
2395b87412bff80118d72cf8ad9f53142435608f9a5c5d7b6eda5f5c2f2de24a
DestyNova/advent_of_code_2021
Part2.hs
module Main where import Text.Parsec import qualified Data.Map as M type Segment = (Int,Int,Int,Int) main = do txt <- readFile "input.txt" let (Right segments) = parse parser "" txt let grid = makeGrid segments let overlaps = M.size $ M.filter (>=2) grid print overlaps makeGrid segments = foldr insertPoin...
null
https://raw.githubusercontent.com/DestyNova/advent_of_code_2021/e4b928fa40cbbb9c3caf731b4f61ba4be6d6b4f0/day5/Part2.hs
haskell
This feels like it should be waaaaay simpler. What have I done?
module Main where import Text.Parsec import qualified Data.Map as M type Segment = (Int,Int,Int,Int) main = do txt <- readFile "input.txt" let (Right segments) = parse parser "" txt let grid = makeGrid segments let overlaps = M.size $ M.filter (>=2) grid print overlaps makeGrid segments = foldr insertPoin...
b1e12f409ae0c0b22acf41992a8c5501a78462920acce9f3d8d2ab5af4d91a45
appliedfm/vstyle-tools
formatter.ml
let formatter_pp_sentence ast = Ppvernac.pr_vernac ast let formatter_pp_to_string pp = Pp.string_of_ppcmds pp let formatter_pp_to_debug_string pp = formatter_pp_to_string pp ^ "\n" ^ Pp.db_string_of_pp pp exception End_of_input let format_doc ~style ~in_file ~in_chan ~doc ~sid = let stt = ref (doc, sid) in let in...
null
https://raw.githubusercontent.com/appliedfm/vstyle-tools/4dc4c719ab604ba255e3b76c8adc2c57574211e8/src/formatter.ml
ocaml
| Stack.Empty ->
let formatter_pp_sentence ast = Ppvernac.pr_vernac ast let formatter_pp_to_string pp = Pp.string_of_ppcmds pp let formatter_pp_to_debug_string pp = formatter_pp_to_string pp ^ "\n" ^ Pp.db_string_of_pp pp exception End_of_input let format_doc ~style ~in_file ~in_chan ~doc ~sid = let stt = ref (doc, sid) in let in...
2a07fcd7add5778bb7a89e6165f5e1f8b8772b2ec9054c016bfb5de908282523
basho/riak_cs
cs743_regression_test.erl
%% --------------------------------------------------------------------- %% 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"); you may not use this file except in compliance with the License . Y...
null
https://raw.githubusercontent.com/basho/riak_cs/c0c1012d1c9c691c74c8c5d9f69d388f5047bcd2/riak_test/tests/cs743_regression_test.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 permiss...
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 distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY ...
945854ec8e8351e95d1ac444c950292b2efc9a2af15e1218900b2678f2e549d1
feeley/define-library
syntaxcommon.scm
;;;============================================================================ ;;; File: "syntaxcommon.scm" Copyright ( c ) 2000 - 2014 by , All Rights Reserved . ;;;============================================================================ (define (syn#pvar-id pvar) (let ((sym (car pvar))) (string->sy...
null
https://raw.githubusercontent.com/feeley/define-library/56a6eda7ef9248751f4cada832edf98f5c6bb469/syntaxcommon.scm
scheme
============================================================================ File: "syntaxcommon.scm" ============================================================================ ---------------------------------------------------------------------------- ===============================================================...
Copyright ( c ) 2000 - 2014 by , All Rights Reserved . (define (syn#pvar-id pvar) (let ((sym (car pvar))) (string->symbol (string-append "##~" (symbol->string sym))))) (define (datum->syntax src datum) (##sourcify datum src)) (define (syntax->datum src) (##desourcify src)) (define (syntax->list sr...
e30c65e4431c8fd728e99b19e675eb3cf9c4cb79e7c052472bd0a63e49ae6ded
dcastro/haskell-flatbuffers
ParserIO.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} module FlatBuffers.Internal.Compiler.ParserIO where import Control.Monad ( when ) import Control.Monad.Except ( MonadError, MonadIO, liftIO, throwError ) import Control.Monad.S...
null
https://raw.githubusercontent.com/dcastro/haskell-flatbuffers/cea6a75109de109ae906741ee73cbb0f356a8e0d/src/FlatBuffers/Internal/Compiler/ParserIO.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE FlexibleContexts # module FlatBuffers.Internal.Compiler.ParserIO where import Control.Monad ( when ) import Control.Monad.Except ( MonadError, MonadIO, liftIO, throwError ) import Control.Monad.State ( MonadSt...
f1b247171079382516c3c0fa1b5784207af048f88c0f01dc8a8178915f31e9a1
clojure-interop/google-cloud-clients
GrpcTextToSpeechCallableFactory.clj
(ns com.google.cloud.texttospeech.v1beta1.stub.GrpcTextToSpeechCallableFactory "gRPC callable factory implementation for Cloud Text-to-Speech API. This class is for advanced usage." (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.texttospeech.v1beta1.stub GrpcTextToSpeechCallableFac...
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.texttospeech/src/com/google/cloud/texttospeech/v1beta1/stub/GrpcTextToSpeechCallableFactory.clj
clojure
(ns com.google.cloud.texttospeech.v1beta1.stub.GrpcTextToSpeechCallableFactory "gRPC callable factory implementation for Cloud Text-to-Speech API. This class is for advanced usage." (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.texttospeech.v1beta1.stub GrpcTextToSpeechCallableFac...
221161937968f7a3cd8ed038100d5c2f3b8f551489d0497666e8f00f2e0a5682
benknoble/frosthaven-manager
markdown.rkt
#lang racket (provide (contract-out [markdown-text (->* ((maybe-obs/c (or/c string? path?))) (#:min-size (maybe-obs/c size/c) #:stretch (maybe-obs/c stretch/c) #:margin (maybe-obs/c margin/c) #:inset (maybe-obs/c margin/c) #:style (listof (one-of/c...
null
https://raw.githubusercontent.com/benknoble/frosthaven-manager/836218eb5a7d04db8bab9a9488fe6da0043d3479/gui/markdown.rkt
racket
(-hhh.github.io/2020/05/markdown-view.html) and other semantically-indented blocks! no separate eventspace: block main until this window closed
#lang racket (provide (contract-out [markdown-text (->* ((maybe-obs/c (or/c string? path?))) (#:min-size (maybe-obs/c size/c) #:stretch (maybe-obs/c stretch/c) #:margin (maybe-obs/c margin/c) #:inset (maybe-obs/c margin/c) #:style (listof (one-of/c...
ab0a85179093d8be2bdd2ac11a683b1a5668784c50c2b233536a145804ae320b
ocsigen/eliom
distillery.ml
open Printf (* File containing the reserve project names for templates *) let reserve_project_name_filename = ".eliomreserve" (* File containing files which must be ignored while copying a template. *) let eliomignore_filename = ".eliomignore" (* File containing files which must be copied without modifications *) le...
null
https://raw.githubusercontent.com/ocsigen/eliom/c3e0eea5bef02e0af3942b6d27585add95d01d6c/src/tools/distillery.ml
ocaml
File containing the reserve project names for templates File containing files which must be ignored while copying a template. File containing files which must be copied without modifications Returns all lines of [file] as a string list. Returns an empty list if [file] doesn't exist. ------------------------...
open Printf let reserve_project_name_filename = ".eliomreserve" let eliomignore_filename = ".eliomignore" let eliomverbatim_filename = ".eliomverbatim" let eliom_template_dir = Findlib.package_directory "eliom.templates" let distillery_basic = "basic.ppx", eliom_template_dir let template_path (tname, tpath) = tpath ...
0546656f93e4a29e81d39c839112c65e15903bab76dd9bd7d97edc4503306c05
arttuka/reagent-material-ui
crisis_alert.cljs
(ns reagent-mui.icons.crisis-alert "Imports @mui/icons-material/CrisisAlert as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def crisis-alert (create-svg-icon (e...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/c7cd0d7c661ab9df5b0aed0213a6653a9a3f28ea/src/icons/reagent_mui/icons/crisis_alert.cljs
clojure
(ns reagent-mui.icons.crisis-alert "Imports @mui/icons-material/CrisisAlert as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def crisis-alert (create-svg-icon (e...
28d406fbc16a303194338d7ba07085f826764f02f4e261e3997cdc9f6a0ab00b
yurug/ocaml4.04.0-copatterns
docstrings.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/yurug/ocaml4.04.0-copatterns/b3ec6a3cc203bd2cde3b618546d29e10f1102323/parsing/docstrings.mli
ocaml
************************************************************************ OCaml ...
Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the val init : unit -> unit val warn_bad_docstrings : unit -> unit type docstring val docstring : strin...
bf4738eb111d40bdc7f8101b6660360749ce671b722dd18608d9dd1fb145fd17
mcandre/cl-quickcheck
lsets.lisp
Copyright 2010 under the terms of the MIT X license found at ; Copyright 2004 ; ; A partial specification of the Lisp set functions. ; This is kind of random... I need to try and write a real formal ; specification. (use-package :cl-quickcheck) (defun set-equal (x y) (and (subsetp x y) (subsetp y x))) (...
null
https://raw.githubusercontent.com/mcandre/cl-quickcheck/a76e360f0ead6809269b06221492fb7b3bfc8169/lsets.lisp
lisp
A partial specification of the Lisp set functions. This is kind of random... I need to try and write a real formal specification. associative and distributive laws
Copyright 2010 under the terms of the MIT X license found at Copyright 2004 (use-package :cl-quickcheck) (defun set-equal (x y) (and (subsetp x y) (subsetp y x))) (when *testing* (let ((a-set (a-list an-index))) (let ((x-generator a-set) (y-generator a-set) (z-generator a-set)) (for-...
50607d367baa8dc235936b237d3af12956555e6d9e1006fa261b2f05e09fb825
monadfix/ormolu-live
BreakArray.hs
# OPTIONS_GHC -fno - warn - name - shadowing # # LANGUAGE CPP , MagicHash , UnboxedTuples # ------------------------------------------------------------------------------- -- ( c ) The University of Glasgow 2007 -- -- | Break Arrays -- An array of bytes , indexed by a breakpoint number ( breakpointId in ) -- Ther...
null
https://raw.githubusercontent.com/monadfix/ormolu-live/d8ae72ef168b98a8d179d642f70352c88b3ac226/ghc-lib-parser-8.10.1.20200412/libraries/ghci/GHCi/BreakArray.hs
haskell
----------------------------------------------------------------------------- | Break Arrays There is one of these arrays per module. Each byte is 1 if the corresponding breakpoint is enabled 0 otherwise ----------------------------------------------------------------------------- See note [Why do we imp...
# OPTIONS_GHC -fno - warn - name - shadowing # # LANGUAGE CPP , MagicHash , UnboxedTuples # ( c ) The University of Glasgow 2007 An array of bytes , indexed by a breakpoint number ( breakpointId in ) module GHCi.BreakArray ( BreakArray constructor is exported only for , newBreakArray , getBr...
2dbe2de3feb523bc9191b3137827811ef9e8c3cd24b8e177266ccf7cd17febdd
albertoruiz/easyVision
draw.hs
import Vision.GUI.Simple import Image import Util.Geometry main = runIt $ browser "points & lines" xs (const id) where xs = [drawing1] drawing1 :: Drawing drawing1 = Draw [ color yellow (HLine 0.1 1 0) , pointSz 5 [Point 0.5 0.5, Point 0 (-0.2)] ]
null
https://raw.githubusercontent.com/albertoruiz/easyVision/26bb2efaa676c902cecb12047560a09377a969f2/projects/tour/draw.hs
haskell
import Vision.GUI.Simple import Image import Util.Geometry main = runIt $ browser "points & lines" xs (const id) where xs = [drawing1] drawing1 :: Drawing drawing1 = Draw [ color yellow (HLine 0.1 1 0) , pointSz 5 [Point 0.5 0.5, Point 0 (-0.2)] ]
1212b783bcd3dc17170beb2e7a552ef46b526a3562d41fcc6f7b539752f67c70
icicle-lang/zebra-ambiata
Merge.hs
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE DoAndIfThenElse #-} # LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # module Zebra.Command.Merge ( Merge(..) , MergeRowsPerBlock(..) , MergeMaximumRowSize(..) , zebr...
null
https://raw.githubusercontent.com/icicle-lang/zebra-ambiata/394ee5f98b4805df2c76abb52cdaad9fd7825f81/zebra-cli/src/Zebra/Command/Merge.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE DoAndIfThenElse # # LANGUAGE OverloadedStrings #
# LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # # LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # module Zebra.Command.Merge ( Merge(..) , MergeRowsPerBlock(..) , MergeMaximumRowSize(..) , zebraMerge , MergeError(..) , renderMergeError ) where import Control.Monad.Catch (M...
96c4c3e6deb72c437544b5e5e043303844fdbf6fb9df360f6f56ff508cf1211d
rd--/hsc3
s_new.help.hs
---- ; help Sound.Sc3.sc3_scdoc_help_server_command_open False "/s_new"
null
https://raw.githubusercontent.com/rd--/hsc3/024d45b6b5166e5cd3f0142fbf65aeb6ef642d46/Help/Server/s_new.help.hs
haskell
-- ; help
Sound.Sc3.sc3_scdoc_help_server_command_open False "/s_new"
23d05680a408a5f76cc29d9bb0ec459910164e85956cb99c146170cfc3b6d874
fossas/fossa-cli
Types.hs
module App.Fossa.VSI.DynLinked.Types ( LinuxPackageManager (..), LinuxPackageMetadata (..), LinuxDistro (..), DynamicDependency (..), ResolvedLinuxPackage (..), ) where import Data.Text (Text) import Path (Abs, File, Path) data LinuxPackageManager = LinuxPackageManagerRPM | LinuxPackageManagerDEB | Li...
null
https://raw.githubusercontent.com/fossas/fossa-cli/3251a54302faccacf7a79cce09eb8d861e0faf0e/src/App/Fossa/VSI/DynLinked/Types.hs
haskell
| These are all opaque blobs, we're not doing any processing on them other than rendering into a @Locator@. For that reason, stick to @Text@.
module App.Fossa.VSI.DynLinked.Types ( LinuxPackageManager (..), LinuxPackageMetadata (..), LinuxDistro (..), DynamicDependency (..), ResolvedLinuxPackage (..), ) where import Data.Text (Text) import Path (Abs, File, Path) data LinuxPackageManager = LinuxPackageManagerRPM | LinuxPackageManagerDEB | Li...
ecabb20e860d794e57b51372672e519927fde4eea3138792269d807ec51f769d
mhwombat/som
DSOM.hs
------------------------------------------------------------------------ -- | -- Module : Data.Datamining.Clustering.SOM Copyright : ( c ) 2012 - 2022 -- License : BSD-style -- Maintainer : -- Stability : experimental -- Portability : portable -- A modified Map ( SOM ) which supports a...
null
https://raw.githubusercontent.com/mhwombat/som/8eb201801a5de407fd9df2c9bfc872b0d748e3a1/src/Data/Datamining/Clustering/DSOM.hs
haskell
---------------------------------------------------------------------- | Module : Data.Datamining.Clustering.SOM License : BSD-style Maintainer : Stability : experimental Portability : portable time-independent learning function. (See References: -------------------------------------------...
Copyright : ( c ) 2012 - 2022 A modified Map ( SOM ) which supports a @'Data . . Clustering . SOM'@ for a description of a SOM . ) * , N. & Boniface , Y. ( 2011 ) . Dynamic self - organising map . Neurocomputing , 74 ( 11 ) , 1840 - 1847 . * , T. ( 1982 ) . Self - organized formation of top...
4c281a1ec8489e52871d9059ef14b60a82fa3f6a54f64a110aeb7349300068a9
atolab/zenoh
influxdb_driver.ml
* Copyright ( c ) 2017 , 2020 ADLINK Technology Inc. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * -2.0 , or the Apache License , Version 2.0 * which is available at -2.0 . * * SPDX - License - Ident...
null
https://raw.githubusercontent.com/atolab/zenoh/32e311aae6be93c001fd725b4d918b2fb4e9713d/src/zenoh-storages/zenoh-storages-be/zenoh-storages-be-influxdb/influxdb_driver.ml
ocaml
* Copyright ( c ) 2017 , 2020 ADLINK Technology Inc. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * -2.0 , or the Apache License , Version 2.0 * which is available at -2.0 . * * SPDX - License - Ident...
e83c65197ab81d2f97788d2b66eb4e5bff8a0ed01f9b69887b52647221196a12
tov/dssl2
interface-import.rkt
#lang dssl2 import 'interface.rkt' interface J (I): def m3(self, _, _) class MyJ: # (J): let _inner def __init__(self): self._inner = False def m1(self, x): pass def m2(self, x): pass def m3(self, x, y): self._inner
null
https://raw.githubusercontent.com/tov/dssl2/105d18069465781bd9b87466f8336d5ce9e9a0f3/test/dssl2/interface-import.rkt
racket
#lang dssl2 import 'interface.rkt' interface J (I): def m3(self, _, _) class MyJ: # (J): let _inner def __init__(self): self._inner = False def m1(self, x): pass def m2(self, x): pass def m3(self, x, y): self._inner
4f71e8f66961e123e024060083037c3561e0f3fa44f09f4928ba43279e1f72ca
sebastiaanvisser/clay
Display.hs
# LANGUAGE OverloadedStrings , module Clay.Display ( -- * Float. float , FloatStyle , floatLeft , floatRight , clear , Clear , both , clearLeft , clearRight -- * Position. , Position , position , static, absolute, fixed, relative, sticky -- * Display , Display , display , inline, block, listItem, runIn, inline...
null
https://raw.githubusercontent.com/sebastiaanvisser/clay/941f4c95fb30964679caa6f118be223ee073e664/src/Clay/Display.hs
haskell
* Float. * Position. * Display * Overlow * Visibility. Clipping. * Opacity. * Z-index. * Pointer-events. * Vertical align. * Cursor ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- ---------------------...
# LANGUAGE OverloadedStrings , module Clay.Display ( float , FloatStyle , floatLeft , floatRight , clear , Clear , both , clearLeft , clearRight , Position , position , static, absolute, fixed, relative, sticky , Display , display , inline, block, listItem, runIn, inlineBlock, table, displayTable, inlineTable,...
f1c1fc5ab82ff621065c17cdf578ab5f203dbb99085d04f8f97e3daca9294497
mokus0/junkbox
eqFuncs.hs
- " eqFuncs " - ( c ) 2007 - "eqFuncs" - (c) 2007 James Cook -} {-# OPTIONS -fglasgow-exts #-} module Math.EqFuncs where import Prelude hiding (catch) import Control.Exception (catch) import Data.List ((\\)) import qualified Data.Map as M import GHC.IOBase class EnumAll a where enumAll :: [a] i...
null
https://raw.githubusercontent.com/mokus0/junkbox/151014bbef9db2b9205209df66c418d6d58b0d9e/Haskell/Math/eqFuncs.hs
haskell
# OPTIONS -fglasgow-exts # yes, this isn't "all" - sue me...
- " eqFuncs " - ( c ) 2007 - "eqFuncs" - (c) 2007 James Cook -} module Math.EqFuncs where import Prelude hiding (catch) import Control.Exception (catch) import Data.List ((\\)) import qualified Data.Map as M import GHC.IOBase class EnumAll a where enumAll :: [a] instance EnumAll () where enumAl...
4e913cd51db622884f3c7353f7738f6a62c6e77aafecf8897503cb492cd0882d
40ants/ci
action.lisp
(defpackage #:40ants-ci/steps/action (:use #:cl) (:import-from #:40ants-ci/steps/step) (:import-from #:40ants-ci/github) (:import-from #:alexandria #:remove-from-plistf) (:export #:action)) (in-package 40ants-ci/steps/action) (defclass action (40ants-ci/steps/step:step) ((uses :initarg :us...
null
https://raw.githubusercontent.com/40ants/ci/f8de02181e78a610d928187c7fd642dac352560d/src/steps/action.lisp
lisp
ignore-critiques: if-no-else
(defpackage #:40ants-ci/steps/action (:use #:cl) (:import-from #:40ants-ci/steps/step) (:import-from #:40ants-ci/github) (:import-from #:alexandria #:remove-from-plistf) (:export #:action)) (in-package 40ants-ci/steps/action) (defclass action (40ants-ci/steps/step:step) ((uses :initarg :us...
40e60c5a9f7f5cb1e146b6126a78ded734701ec0e19a65ebd82b3a47b263d166
esl/MongooseIM
mod_mam_riak_timed_arch_yz.erl
%%============================================================================== Copyright 2015 Erlang Solutions Ltd. %% 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 %% ...
null
https://raw.githubusercontent.com/esl/MongooseIM/c3383bc66ddd042553d38223fa7e2aa9f9f505fe/src/mam/mod_mam_riak_timed_arch_yz.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 ex...
Copyright 2015 Erlang Solutions Ltd. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(mod_mam_riak_timed_arch_yz). -behaviour(ejabberd_gen_mam_archive). -behaviour(gen_mod). -behaviour(mongoose_module_metrics). -ca...
e26a8206ed71abc6ec7c7139c011745e6d2a96f901e4b158b5af87a8085d03b8
gregwebs/Shelly.hs
Unix.hs
{-# LANGUAGE OverloadedStrings #-} -- | Commands that only work on Unix. module Shelly.Unix ( kill ) where import Shelly import qualified Data.Text as T kill :: Int -> Sh () kill pid = run_ "kill" ["-15", T.pack $ show pid]
null
https://raw.githubusercontent.com/gregwebs/Shelly.hs/fda3a8fb49d906c78ed95a6cbf2be80964f9ee03/src/Shelly/Unix.hs
haskell
# LANGUAGE OverloadedStrings # | Commands that only work on Unix.
module Shelly.Unix ( kill ) where import Shelly import qualified Data.Text as T kill :: Int -> Sh () kill pid = run_ "kill" ["-15", T.pack $ show pid]
3f199dc99b6c6895516aa1472c5e9e74f3eb1f930e98768e822a75999bc92fa3
tqtezos/stablecoin
Parser.hs
SPDX - FileCopyrightText : 2020 SPDX - License - Identifier : MIT # LANGUAGE ApplicativeDo # module Stablecoin.Client.Parser ( BurnOptions(..) , ChangeMasterMinterOptions(..) , ChangePauserOptions(..) , ClientArgs(..) , ClientArgsRaw(..) , ConfigureMinterOptions(..) , ContractMetadataOptions(..) ...
null
https://raw.githubusercontent.com/tqtezos/stablecoin/48012781d6c2d46d4cb8f0508a8ca1576481a561/haskell/src/Stablecoin/Client/Parser.hs
haskell
FA2 entrypoints Query Commands ^ Indicate that we should store metadata in the main contract itself. ^ An optional contract description to add to the contract's metadata. If none is given, a default description will be used. ^ Indicate we should originate a dedicated contract to store metadata. ^ An optional con...
SPDX - FileCopyrightText : 2020 SPDX - License - Identifier : MIT # LANGUAGE ApplicativeDo # module Stablecoin.Client.Parser ( BurnOptions(..) , ChangeMasterMinterOptions(..) , ChangePauserOptions(..) , ClientArgs(..) , ClientArgsRaw(..) , ConfigureMinterOptions(..) , ContractMetadataOptions(..) ...
cd6eb0f461a6fb38b148f2f02266fd9fa041c63e59ba49866291711e2ea5f34f
fossas/fossa-cli
Main.hs
import Control.DeepSeq (force) import Control.Exception (evaluate) import Data.FileTree.IndexFileTree ( SomeFileTree (..), empty, insert, toSomePath, ) import Data.Foldable (Foldable (foldl')) import Data.Maybe (fromMaybe) import Data.Text (Text) import Data.Text qualified as Text import Data.Text.IO qualified...
null
https://raw.githubusercontent.com/fossas/fossa-cli/08749f24cedfed651a8e88b0089f64df7d49205b/bench/Main.hs
haskell
Tar entries do not have `/` prefix in their absolute paths, but bench data does. Remove them to mimic TarEntries fmt. * Helpers
import Control.DeepSeq (force) import Control.Exception (evaluate) import Data.FileTree.IndexFileTree ( SomeFileTree (..), empty, insert, toSomePath, ) import Data.Foldable (Foldable (foldl')) import Data.Maybe (fromMaybe) import Data.Text (Text) import Data.Text qualified as Text import Data.Text.IO qualified...
7c56afc8d79789c8897e44cd92ff0152d051cfe3b34c8a408b879f7906bd8c19
srid/neuron
Types.hs
# LANGUAGE ApplicativeDo # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE InstanceSigs # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # ...
null
https://raw.githubusercontent.com/srid/neuron/bfa276ee6eb7b146408e16653b2188d974ee993e/src/Neuron/CLI/Types.hs
haskell
# LANGUAGE OverloadedStrings # * CLI * App monad * CLI commands HACK: These should ideally be decoupled into the Tags plugin. Use cache instead of building the zettelkasten from scratch | Continue regenerating if files change. | Use URLs without ".html" at the end | Open the locally generated Zettelkasten | Se...
# LANGUAGE ApplicativeDo # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE InstanceSigs # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE NoImplicitPrelude # modul...
486de27a3ea0a891a4df9639687a4187f95b48438361bce76270072d82c9a1e7
mwotton/roboservant
Orphans.hs
# OPTIONS_GHC -fno - warn - orphans # module Roboservant.Types.Orphans where import Servant import Data.Hashable instance Hashable NoContent
null
https://raw.githubusercontent.com/mwotton/roboservant/ccf402b22d4613c7b9ffe2a732b650784511f519/src/Roboservant/Types/Orphans.hs
haskell
# OPTIONS_GHC -fno - warn - orphans # module Roboservant.Types.Orphans where import Servant import Data.Hashable instance Hashable NoContent
ec8b30f960c26ae9b3d33e24f077e728f072473242fdb3659552c05844c54ce2
mooreryan/ocaml_python_bindgen
otype.ml
open! Base open! Stdio TODO there are some things that the parser disallows with Pytypes.pyobject that this code will process . It 's currently not always dealt with here properly since the parser wo n't let it through , but you should probably change it at some point . that this code will process....
null
https://raw.githubusercontent.com/mooreryan/ocaml_python_bindgen/fe209e31ca50cda43a840d5970a861f6cc735338/lib/otype.ml
ocaml
This is used for Py_obj identity functions. TODO it does lead to a bunch of anonymous little identity functions littered throughout the generate code, but it's not a big deal. We allow stuff like [int option list] If you just do string "t", then any arg names that start with t will blow up parsing. This...
open! Base open! Stdio TODO there are some things that the parser disallows with Pytypes.pyobject that this code will process . It 's currently not always dealt with here properly since the parser wo n't let it through , but you should probably change it at some point . that this code will process....
02d0a1eb1e018ce01a01077811e5d5d864584dc9bcc58b6fea1c9aacc31005af
discus-lang/ddc
Lambdas.hs
module DDC.Core.Transform.Lambdas ( lambdasModule , evalState , newVar) where import DDC.Core.Transform.Lambdas.Lift import DDC.Core.Transform.Lambdas.Base import DDC.Core.Fragment import DDC.Core.Collect.Support import DDC.Core.Transform.SubstituteXX import DDC.Core.Module import DDC.Core.Exp....
null
https://raw.githubusercontent.com/discus-lang/ddc/2baa1b4e2d43b6b02135257677671a83cb7384ac/src/s1/ddc-core/DDC/Core/Transform/Lambdas.hs
haskell
------------------------------------------------------------------------------------------------- | Perform lambda lifting in a module. Take the top-level environment of the module. Exp -------------------------------------------------------------------------------------------- ^ Language profile. ^ Enclosing cont...
module DDC.Core.Transform.Lambdas ( lambdasModule , evalState , newVar) where import DDC.Core.Transform.Lambdas.Lift import DDC.Core.Transform.Lambdas.Base import DDC.Core.Fragment import DDC.Core.Collect.Support import DDC.Core.Transform.SubstituteXX import DDC.Core.Module import DDC.Core.Exp....
9936ac024815003656c1b9954c556ef49edb5ad75ef39be438515a104e9aeaa3
cl-unix-cybernetics/cl-unix-cybernetics
toplevel.lisp
;; cl-unix-cybernetics Copyright 2013 - 2022 < > ;; ;; Permission is hereby granted to use this software granted ;; the above copyright notice and this permission paragraph ;; are included in all copies and substantial portions of this ;; software. ;; ;; THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF ...
null
https://raw.githubusercontent.com/cl-unix-cybernetics/cl-unix-cybernetics/63e4862274e170bda7540b4caec6c94ed850a31c/toplevel.lisp
lisp
cl-unix-cybernetics Permission is hereby granted to use this software granted the above copyright notice and this permission paragraph are included in all copies and substantial portions of this software. THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER...
Copyright 2013 - 2022 < > (in-package :cl-user) (flet ((cl-unix-cybernetics-toplevel () (let ((*package* (find-package :cl-unix-cybernetics-user))) (sb-impl::toplevel-init)))) (sb-ext:save-lisp-and-die #P"build/cl-unix-cybernetics" :toplevel #'cl-unix-cybernetic...
c4cf5849bd9f7830ccc35b5175df5a855ab99fa786af1b7e6e001b465808c7fd
portkey-cloud/aws-clj-sdk
autoscaling.clj
(ns portkey.aws.autoscaling (:require [portkey.aws])) (def endpoints '{"ap-northeast-1" {:credential-scope {:service "autoscaling", :region "ap-northeast-1"}, :ssl-common-name "autoscaling.ap-northeast-1.amazonaws.com", :endpoint "-northeast-1.amazonaws.com", :signature-version :v4}, "eu-west-1...
null
https://raw.githubusercontent.com/portkey-cloud/aws-clj-sdk/10623a5c86bd56c8b312f56b76ae5ff52c26a945/src/portkey/aws/autoscaling.clj
clojure
(ns portkey.aws.autoscaling (:require [portkey.aws])) (def endpoints '{"ap-northeast-1" {:credential-scope {:service "autoscaling", :region "ap-northeast-1"}, :ssl-common-name "autoscaling.ap-northeast-1.amazonaws.com", :endpoint "-northeast-1.amazonaws.com", :signature-version :v4}, "eu-west-1...
eae0cafd89e6d8ee0c2bc9ae8c5196851426a3b9e50d6e5af8523b9fdcc89ea1
KULeuven-CS/CPL
syntax.rkt
#lang eopl (require racket) (provide (all-defined-out)) ;;; Syntax (define-datatype program program? (a-program (exp1 expression?))) (define-datatype expression expression? (const-exp (num number?)) (diff-exp (exp1 expression?) (exp2 expression?)) Unary operators (if-exp (exp1 expression?) (exp2 expre...
null
https://raw.githubusercontent.com/KULeuven-CS/CPL/0c62cca832edc43218ac63c4e8233e3c3f05d20a/chapter5/EXCEPTIONS/syntax.rkt
racket
Syntax
#lang eopl (require racket) (provide (all-defined-out)) (define-datatype program program? (a-program (exp1 expression?))) (define-datatype expression expression? (const-exp (num number?)) (diff-exp (exp1 expression?) (exp2 expression?)) Unary operators (if-exp (exp1 expression?) (exp2 expression?) ...
455e2005548405d449120c63862903ad04eb0d8c096fd0263c4028b1cd90b181
patricoferris/ocaml-multicore-monorepo
test.expect.ml
(* Failure: space still inserted near delimiters when not type-decl = sparse. *) type t = { a : string; b : string; c : string; } let t = { a = "a_pretty_long_string_to_force_separate_line"; b = "a_pretty_long_string_to_force_separate_line"; c = "a_pretty_long_string_to_force_separate_line"; } t...
null
https://raw.githubusercontent.com/patricoferris/ocaml-multicore-monorepo/22b441e6727bc303950b3b37c8fbc024c748fe55/duniverse/dream/test/ocamlformat/test.expect.ml
ocaml
Failure: space still inserted near delimiters when not type-decl = sparse. Failure: begin...end indented strangely.
type t = { a : string; b : string; c : string; } let t = { a = "a_pretty_long_string_to_force_separate_line"; b = "a_pretty_long_string_to_force_separate_line"; c = "a_pretty_long_string_to_force_separate_line"; } type t = | A of int | B of string | C of unit Failure : the bracket is se...
2f2ad93b361b03a0e5b649ca92c1e4644041aa51df5026678a569f568312921b
NetComposer/nksip
nksip_gruu_lib.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2019 . 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...
null
https://raw.githubusercontent.com/NetComposer/nksip/7fbcc66806635dc8ecc5d11c30322e4d1df36f0a/src/plugins/nksip_gruu_lib.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2019 . 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(nksip_gruu_lib). -au...
2d7e3ce7176dfeda8a6ab9d770cd630756159f303a419b8a8b0770b6ef4c0a45
danr/hipspec
App.hs
module App where k f x = case f x of (g,h) -> (g x,case h x of (k,_) -> k x (g x))
null
https://raw.githubusercontent.com/danr/hipspec/a114db84abd5fee8ce0b026abc5380da11147aa9/tfp1/tests/App.hs
haskell
module App where k f x = case f x of (g,h) -> (g x,case h x of (k,_) -> k x (g x))
876a601f573581cf339fdb07dbcff0aa2ec90640f56e4ed676b97501901d0db7
astrada/ocaml-extjs
ext_chart_series_Series.ml
class type t = object('self) inherit Ext_Base.t inherit Ext_chart_Callout.t inherit Ext_chart_Highlight.t inherit Ext_chart_Label.t inherit Ext_chart_Tip.t inherit Ext_util_Observable.t method eachRecord : _ Js.callback -> _ Js.t -> unit Js.meth method getItemForPoint : Js.number Js.t -> Js.number Js...
null
https://raw.githubusercontent.com/astrada/ocaml-extjs/77df630a75fb84667ee953f218c9ce375b3e7484/lib/ext_chart_series_Series.ml
ocaml
class type t = object('self) inherit Ext_Base.t inherit Ext_chart_Callout.t inherit Ext_chart_Highlight.t inherit Ext_chart_Label.t inherit Ext_chart_Tip.t inherit Ext_util_Observable.t method eachRecord : _ Js.callback -> _ Js.t -> unit Js.meth method getItemForPoint : Js.number Js.t -> Js.number Js...
29ec01427854aa7e03436f787c3cc17c6cce891664110538036ea9aa47184075
jeffshrager/biobike
package.lisp
;;; -*- mode: Lisp; Syntax: Common-Lisp; Package: user; -*- (in-package :cl-user) (eval-when (:compile-toplevel :load-toplevel :execute) (require :aserve)) (defpackage :data-editor (:nicknames :de) (:use :wlisp :utils :frames :net.html.generator :net.aserve) ) (in-package :de)
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/data-editor/package.lisp
lisp
-*- mode: Lisp; Syntax: Common-Lisp; Package: user; -*-
(in-package :cl-user) (eval-when (:compile-toplevel :load-toplevel :execute) (require :aserve)) (defpackage :data-editor (:nicknames :de) (:use :wlisp :utils :frames :net.html.generator :net.aserve) ) (in-package :de)
2793287c5ecbc350dfa96463b16e440d1799facf2cc57c986e05f7742fcfb34a
luciodale/aqua
core.cljs
(ns aqua.core (:require [aqua.utils :as utils])) (defn subscribe "Entry point to register one or many animations." [& animation] (doseq [one animation] (utils/subscribe-effect one)))
null
https://raw.githubusercontent.com/luciodale/aqua/855c7f62b164f92fd8901538eb45096dbc244191/src/aqua/core.cljs
clojure
(ns aqua.core (:require [aqua.utils :as utils])) (defn subscribe "Entry point to register one or many animations." [& animation] (doseq [one animation] (utils/subscribe-effect one)))
117a9a96b54c35bebb374817ea157e98d48466ee02d3f40ddac4917e9207f5e8
haskell/cabal
GHC.hs
# LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # {-# LANGUAGE RankNTypes #-} # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # module Distribution.Simple.Program.GHC ( GhcOptions(..), GhcMode(..), GhcOptimisation(..), GhcDynLinkMode(..), GhcProfAuto(..), ghcInvocation, ...
null
https://raw.githubusercontent.com/haskell/cabal/ed314bc2e8f7c96929ff362047b4b22a764e48cd/Cabal/src/Distribution/Simple/Program/GHC.hs
haskell
# LANGUAGE RankNTypes # show - options affects printing of diagnostics try harder, the build will still fail if it's erroneous print more debug info for closed type families * options that can be safely deduplicated, e.g. input modules or enabled extensions; * options that cannot be deduplicated in general...
# LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # module Distribution.Simple.Program.GHC ( GhcOptions(..), GhcMode(..), GhcOptimisation(..), GhcDynLinkMode(..), GhcProfAuto(..), ghcInvocation, renderGhcOptions, runGH...
967131ba81dc8ae6b0d2620f169afca65850fa18fc269edc2ba6cde5c10b6aef
facebook/duckling
Corpus.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE OverloadedStrings #-} module Duckling.Quantity.KO.Corpus ( corpus ) where import Prelude im...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Quantity/KO/Corpus.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Quantity.KO.Corpus ( corpus ) where import Prelude import Data.String import Duckling.Locale import Duckling.Quantity.Types import Duckling.Resolve import Duckling.Testing.Types corpus :: Corpus corpus = (testContext {locale = makeLocale KO Noth...
3e9554202e6de39b083666553a6420a3923a7f02886a364f6429c3c12f6ff1d2
ocurrent/ocaml-ci
run_time.ml
module Client = Ocaml_ci_api.Client let src = Logs.Src.create "ocaml_ci.run_time.lib" ~doc:"ocaml-ci lib run-time" module Log = (val Logs.src_log src : Logs.LOG) let cmp_floats v1 v2 = abs_float (v1 -. v2) < 0.0000001 type timestamps = | Queued of float | Running of { queued_at : float; started_at : float } |...
null
https://raw.githubusercontent.com/ocurrent/ocaml-ci/6093dd5225f9ddf14076242d856f967a574ef261/lib/run_time.ml
ocaml
This indicates that the job never ran because cached results were used The job is running so we work off the start time in the Job map No db entry for the job. Check Current.Job.jobs map for_all holds for the empty list as well as preventing transient error when only the analysis step exists with a None ti...
module Client = Ocaml_ci_api.Client let src = Logs.Src.create "ocaml_ci.run_time.lib" ~doc:"ocaml-ci lib run-time" module Log = (val Logs.src_log src : Logs.LOG) let cmp_floats v1 v2 = abs_float (v1 -. v2) < 0.0000001 type timestamps = | Queued of float | Running of { queued_at : float; started_at : float } |...
bc29db495781ccc1727bb7b85b664b87fb7a082255e0110a1290eab2e035d8d3
ppaml-op3/insomnia
ExtendModuleCtx.hs
# LANGUAGE FlexibleContexts , ViewPatterns , OverloadedStrings # module Insomnia.Typecheck.ExtendModuleCtx ( extendTypeSigDeclCtx , extendModuleCtxNF , extendModuleCtx , extendToplevelDeclCtx ) where import Control.Lens import Control.Monad.Reader.Class (MonadReader(..)) import Data.Monoid ((<>)) import qu...
null
https://raw.githubusercontent.com/ppaml-op3/insomnia/5fc6eb1d554e8853d2fc929a957c7edce9e8867d/src/Insomnia/Typecheck/ExtendModuleCtx.hs
haskell
| Add the datatypes of the given toplevel to the context with their names selfified with respect to the given topref. if the rest of the toplevel summary refers to this local sig, refer to it via the topref instead. | Given a (selfified) signature, add all of its fields to the context by prefixing them with the g...
# LANGUAGE FlexibleContexts , ViewPatterns , OverloadedStrings # module Insomnia.Typecheck.ExtendModuleCtx ( extendTypeSigDeclCtx , extendModuleCtxNF , extendModuleCtx , extendToplevelDeclCtx ) where import Control.Lens import Control.Monad.Reader.Class (MonadReader(..)) import Data.Monoid ((<>)) import qu...
05868f4e6ea6a08728fd78ff227857502a825dff120a8599d97fcf2540cc00d1
metosin/sormilla
math.clj
(ns sormilla.math (:require [amalloy.ring-buffer :refer [ring-buffer]])) (defn avg [coll] (/ (reduce + coll) (double (count coll)))) (defn lin-scale [[fmin fmax] [tmin tmax]] (let [r (/ (- tmax tmin) (- fmax fmin))] (fn [v] (double (+ (* (- v fmin) r) tmin))))) (defn scale [v vmax rmax] (* v (/ rmax vmax...
null
https://raw.githubusercontent.com/metosin/sormilla/e50930930c41f64272f06c4bd02a4e3ab58e923f/src/sormilla/math.clj
clojure
(ns sormilla.math (:require [amalloy.ring-buffer :refer [ring-buffer]])) (defn avg [coll] (/ (reduce + coll) (double (count coll)))) (defn lin-scale [[fmin fmax] [tmin tmax]] (let [r (/ (- tmax tmin) (- fmax fmin))] (fn [v] (double (+ (* (- v fmin) r) tmin))))) (defn scale [v vmax rmax] (* v (/ rmax vmax...
9809ce07d6d7979e6e31422cf893cc5d5104f26e31051fd4edc6bfb887fe2511
audreyt/openafp
PTD.hs
module OpenAFP.Records.AFP.PTD where import OpenAFP.Types import OpenAFP.Internals data PTD = PTD { ptd_Type :: !N3 ,ptd_ :: !N3 ,ptd :: !NStr } deriving (Show, Typeable)
null
https://raw.githubusercontent.com/audreyt/openafp/178e0dd427479ac7b8b461e05c263e52dd614b73/src/OpenAFP/Records/AFP/PTD.hs
haskell
module OpenAFP.Records.AFP.PTD where import OpenAFP.Types import OpenAFP.Internals data PTD = PTD { ptd_Type :: !N3 ,ptd_ :: !N3 ,ptd :: !NStr } deriving (Show, Typeable)
eb7e87896451d94f7122d0b6f0bb0a1962c69ab5127184f533788a29b504440a
janestreet/bonsai
form.ml
open! Core open Import open Form_view module Toggle = Bonsai_web_ui_toggle let rec view_error (e : Error.Internal_repr.t) : Vdom.Node.t list = let bold text = Vdom.Node.strong [ Vdom.Node.text text ] in let pre text = Vdom.Node.pre [ Vdom.Node.text text ] in let view_sexp sexp = pre (Sexp.to_string_hum sexp) in ...
null
https://raw.githubusercontent.com/janestreet/bonsai/782fecd000a1f97b143a3f24b76efec96e36a398/web_ui/view/src/form.ml
ocaml
A form is disabled if it is not editable This key prevents inputs of different "kinds" from clobbering each other
open! Core open Import open Form_view module Toggle = Bonsai_web_ui_toggle let rec view_error (e : Error.Internal_repr.t) : Vdom.Node.t list = let bold text = Vdom.Node.strong [ Vdom.Node.text text ] in let pre text = Vdom.Node.pre [ Vdom.Node.text text ] in let view_sexp sexp = pre (Sexp.to_string_hum sexp) in ...
d58fc14e226207fd702dbbb94a5fbe956287a0a58e9d1b5ac874ddab2886701a
armon/bloomd_ring
br_vnode.erl
-module(br_vnode). -behaviour(riak_core_vnode). -include("bloomd_ring.hrl"). -include_lib("riak_core/include/riak_core_vnode.hrl"). -ifdef(TEST). -compile(export_all). -endif. -export([start_vnode/1, init/1, terminate/2, handle_command/3, is_empty/1, delete/1, hand...
null
https://raw.githubusercontent.com/armon/bloomd_ring/ca51d00e2f0e1b6f12f061403df8421d7207d078/src/br_vnode.erl
erlang
Internal API, exported for use in other modules such as rpc Partition number Index number Slice pattern This is the replication factor This is the timeout for talking to bloomd in milliseconds API Determine our v-node number Create a slice match pattern that matches the index and colon prefix Try to connect ...
-module(br_vnode). -behaviour(riak_core_vnode). -include("bloomd_ring.hrl"). -include_lib("riak_core/include/riak_core_vnode.hrl"). -ifdef(TEST). -compile(export_all). -endif. -export([start_vnode/1, init/1, terminate/2, handle_command/3, is_empty/1, delete/1, hand...
bdfb0eb3f8cbf5ce7b1ba8e0aebb2e2466b6a1124225ecf1e60fdce7dc1529ff
joehillen/craft
Shell.hs
module Craft.Config.Shell where import Control.Lens hiding (noneOf, set) import qualified Data.ByteString.Char8 as B8 import Data.Maybe (catMaybes) import Data.Void (Void) import Text.Megaparsec hiding (pa...
null
https://raw.githubusercontent.com/joehillen/craft/de31caa7f86cceaab23dbef0f05208bb853cf73b/src/Craft/Config/Shell.hs
haskell
| Replace an existing value if it is already set otherwise add it to the end. TESTME TODO: quoted values
module Craft.Config.Shell where import Control.Lens hiding (noneOf, set) import qualified Data.ByteString.Char8 as B8 import Data.Maybe (catMaybes) import Data.Void (Void) import Text.Megaparsec hiding (pa...
1ce8fbcacc768b95eb2eeaee6a9888f6c45a6c6d81f2170c4edbfa61849a26de
codecov/codecov-racket
test-not-run.rkt
#lang racket (if #f 10 2)
null
https://raw.githubusercontent.com/codecov/codecov-racket/50388b36071d54b2beffc0cfd8ad17cad940f7a8/cover/private/tests/test-not-run.rkt
racket
#lang racket (if #f 10 2)
1aa2c64ce0da4d915ecbd36d344c307506c6b3c2a5fc2db7097fffc21aa88a20
ocsigen/eliom
eliom_syntax.server.ml
Ocsigen * * Copyright ( C ) CNRS Univ * * 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 , with linking exception ; * either version 2.1 of the License , or ( at ...
null
https://raw.githubusercontent.com/ocsigen/eliom/c3e0eea5bef02e0af3942b6d27585add95d01d6c/src/lib/eliom_syntax.server.ml
ocaml
**************************************************************************** Global data Request data *************************************************************************** Syntax helpers
Ocsigen * * Copyright ( C ) CNRS Univ * * 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 , with linking exception ; * either version 2.1 of the License , or ( at ...
0a405a6dead01e9718d26bfe9e8b5450febc31dafa2b7002d49afd5156d9e7e7
robashton/cravendb
load.clj
(ns cravendb.load (:use [cravendb.core] [clojure.tools.logging :only (info error debug)] ) (:require [clojure.data.csv :as csv] [me.raynes.fs :as fs] [clojure.java.io :as io] [clojure.string :refer [trim]] [cravendb.http :as http] [cravendb.transac...
null
https://raw.githubusercontent.com/robashton/cravendb/461e80c7c028478adb4287922db6ee4d2593a880/src/cravendb/load.clj
clojure
(time (with-open [in-file (io/reader "input/prescriptions/adhd/part-00000")] :id 0 :prefix "scrips" } (map prescription-row (csv/read-csv in-file))))))))
(ns cravendb.load (:use [cravendb.core] [clojure.tools.logging :only (info error debug)] ) (:require [clojure.data.csv :as csv] [me.raynes.fs :as fs] [clojure.java.io :as io] [clojure.string :refer [trim]] [cravendb.http :as http] [cravendb.transac...
02e2a9de5c66329cdc283755b18e82eec68fcfa7a90d67a4a8aaac725af6d3fc
backtracking/mlpost
include.ml
open Mlpost open Command parse < < > > (*parse <<include1 *) let include1 = externalimage "powered-by-caml.128x58.png" (`Width (Num.cm 3.)) (*parse >> *) (*parse <<include2 *) let include2 = externalimage "powered-by-caml.128x58.png" (`Inside (Num.cm 3., Num.cm 3.)) (*parse >> <<include3 *) let draw_point ?(...
null
https://raw.githubusercontent.com/backtracking/mlpost/bd4305289fd64d531b9f42d64dd641d72ab82fd5/examples/include.ml
ocaml
parse <<include1 parse >> parse <<include2 parse >> <<include3 parse >>
open Mlpost open Command parse < < > > let include1 = externalimage "powered-by-caml.128x58.png" (`Width (Num.cm 3.)) let include2 = externalimage "powered-by-caml.128x58.png" (`Inside (Num.cm 3., Num.cm 3.)) let draw_point ?(color = Color.red) t = Point.draw ~pen:(Pen.scale (Num.bp 4.) Pen.default) ~color...
167ed4667cbfc3061adeef1906bce4a4632b522f3c2453faecebb0ae471a905c
ghc/packages-dph
BuildTest.hs
# LANGUAGE PatternGuards # module BuildTest ( BuildResults(..) , buildTest) where import Benchmarks import Config import BuildBox import Data.Maybe import Control.Monad -- | Run regression tests. buildTest :: Config -> Environment -> Build () buildTest config env = do outLn "* Running regression tests" -- Get...
null
https://raw.githubusercontent.com/ghc/packages-dph/64eca669f13f4d216af9024474a3fc73ce101793/dph-buildbot/src/BuildTest.hs
haskell
| Run regression tests. Get the current time. Load the baseline file if it was given. Run NoSlow benchmarks Make the build results. Compute comparisons against the baseline file. Write results to a file if requested. Upload results if requesed, this requires that they be written to file as above. Mail result...
# LANGUAGE PatternGuards # module BuildTest ( BuildResults(..) , buildTest) where import Benchmarks import Config import BuildBox import Data.Maybe import Control.Monad buildTest :: Config -> Environment -> Build () buildTest config env = do outLn "* Running regression tests" utcTime <- io $ getCurrentTime m...
ff8b1e6c6bc4d88e6fd53db448b22b0ffe95be06ecd6a6409f358cc214b001e1
jackfirth/lens
lazy.rkt
#lang reprovide lens/private/compound/lazy
null
https://raw.githubusercontent.com/jackfirth/lens/733db7744921409b69ddc78ae5b23ffaa6b91e37/lens-unstable/unstable/lens/lazy.rkt
racket
#lang reprovide lens/private/compound/lazy
39f51bb49be85e73b6c489f9e180d98bcfcb2a82cb814e9953511cd7f55a58dd
mpickering/apply-refact
Import15.hs
import A hiding(Foo); import A hiding(Bar)
null
https://raw.githubusercontent.com/mpickering/apply-refact/a4343ea0f4f9d8c2e16d6b16b9068f321ba4f272/tests/examples/Import15.hs
haskell
import A hiding(Foo); import A hiding(Bar)
ac73899259e5f383f66f3610c1f3d542bc4142f0ca7ff43f56eab250ae9399eb
bufferswap/ViralityEngine
2d-array.lisp
(in-package #:virality.texture) (defmethod load-texture-data ((texture-type (eql :texture-2d-array)) texture context) (let* ((use-mipmaps-p (get-computed-applied-attribute texture :use-mipmaps)) (immutable-p (get-computed-applied-attribute texture :immutab...
null
https://raw.githubusercontent.com/bufferswap/ViralityEngine/df7bb4dffaecdcb6fdcbfa618031a5e1f85f4002/src/texture/2d-array.lisp
lisp
TODO: Assert num-mipmaps is same for all layers. Type-checking (for all textures types, but notated here): make this condition an error and have it be error by default. TODO: Warn under the condition where the rest of the images (other than additional space to be used unexpectedly. Stuck flag in define-texture ...
(in-package #:virality.texture) (defmethod load-texture-data ((texture-type (eql :texture-2d-array)) texture context) (let* ((use-mipmaps-p (get-computed-applied-attribute texture :use-mipmaps)) (immutable-p (get-computed-applied-attribute texture :immutab...
96007f02b273db4d618bd5bb42ac29b75e6ccb5b6f743660b1d50167b585db66
sebferre/sparklis
osparklis.ml
Copyright 2013 , IRISA , Université de Rennes 1 , This file is part of Sparklis . 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 requ...
null
https://raw.githubusercontent.com/sebferre/sparklis/57fac38154f7737d625df3c17125f79e9491c601/osparklis.ml
ocaml
logging utilities flag at TRUE if this is the dev version that is running Common.unobfuscate_string "\023\011\011\015EPP\b\b\bQ\022\r\022\012\030Q\025\rP36,P\025\026\r\r\026P\012\015\030\r\020\019\022\012P\019\016\024P\019\016\024Q\015\023\015" Common.unobfuscate_string "\023\011\011\015EPP\b\b\bQ\022\r\022\01...
Copyright 2013 , IRISA , Université de Rennes 1 , This file is part of Sparklis . 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 requ...
208da93249d7c48bbfa9d4d3fac62eb77f4fc400fc684b4595413173d6dcf975
racket/typed-racket
box-num.rkt
#lang typed-scheme (let: ([x : (Boxof Number) (box 1)]) x) (let () (: x (Boxof Number)) (define x (box 1)) x)
null
https://raw.githubusercontent.com/racket/typed-racket/0236151e3b95d6d39276353cb5005197843e16e4/typed-racket-test/succeed/box-num.rkt
racket
#lang typed-scheme (let: ([x : (Boxof Number) (box 1)]) x) (let () (: x (Boxof Number)) (define x (box 1)) x)
7e6bf924bcf2bca600d3ec45fa9473ca2aa9b77952d38fddcaa355d9e56289e8
antifuchs/aoi-swank-plugin
SwankTool.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 ;;; t...
null
https://raw.githubusercontent.com/antifuchs/aoi-swank-plugin/e1a9d281b94d23d31d51451e2eb0186df9bcf0e2/src/org/reprap/artofillusion/SwankTool.clj
clojure
The use and distribution terms for this software are covered by the 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 this notice, or any other, from this software.
Copyright ( c ) . All rights reserved . Eclipse Public License 1.0 ( -1.0.php ) (ns org.reprap.artofillusion.SwankTool (:require swank.swank clojure.main clojure.contrib.seq_utils org.reprap.artofillusion.objects org.reprap.artofillusion.repl) (:refer-clojure) ...
7358f02a6f14020d8040419f59b3f381acf967ee38c5d7a74b364a3c02a6cf4e
mitchellwrosen/planet-mitchell
Num.hs
module Num.Num ( Num(..) , (^) , subtract -- ** Read , readInt , readDec , readOct , readHex ) where import GHC.Num (Num(..), subtract) import GHC.Real ((^)) import Numeric
null
https://raw.githubusercontent.com/mitchellwrosen/planet-mitchell/18dd83204e70fffcd23fe12dd3a80f70b7fa409b/planet-mitchell/src/Num/Num.hs
haskell
** Read
module Num.Num ( Num(..) , (^) , subtract , readInt , readDec , readOct , readHex ) where import GHC.Num (Num(..), subtract) import GHC.Real ((^)) import Numeric
ca8277db6d01cac372f470872746163694f9d2fe31a7568fabcc948f29eed8b1
flipstone/orville
OrderBy.hs
module Test.Expr.OrderBy ( orderByTests, ) where import qualified Control.Monad.IO.Class as MIO import qualified Data.List.NonEmpty as NE import qualified Data.Pool as Pool import qualified Orville.PostgreSQL.Connection as Conn import qualified Orville.PostgreSQL.Internal.ExecutionResult as ExecResult import qual...
null
https://raw.githubusercontent.com/flipstone/orville/a2544ffeb281173b4cc870ae4520c24a9fb52340/orville-postgresql-libpq/test/Test/Expr/OrderBy.hs
haskell
module Test.Expr.OrderBy ( orderByTests, ) where import qualified Control.Monad.IO.Class as MIO import qualified Data.List.NonEmpty as NE import qualified Data.Pool as Pool import qualified Orville.PostgreSQL.Connection as Conn import qualified Orville.PostgreSQL.Internal.ExecutionResult as ExecResult import qual...
fde12ee0ccab65a55424f669ed7409c4e984170c0fdf18011b561de6860ad25a
uw-unsat/jitsynth
interpreter.rkt
#lang rosette (require ; (struct state ...) ; with regs, mem, and pc ; includes state getters "../ams/machine.rkt" ; Includes functions for manipulating ; registers and memory "../common/data-structures.rkt" Includes utility functions for bitvectors "../common/data-utils.rkt") (provide (stru...
null
https://raw.githubusercontent.com/uw-unsat/jitsynth/69529e18d4a8d4dace884bfde91aa26b549523fa/toy-riscv/interpreter.rkt
racket
(struct state ...) with regs, mem, and pc includes state getters Includes functions for manipulating registers and memory upper bits of a register Left shift reg by value Logical right shift Load word from memory Store word to memory
#lang rosette (require "../ams/machine.rkt" "../common/data-structures.rkt" Includes utility functions for bitvectors "../common/data-utils.rkt") (provide (struct-out rv-insn) interpret) (struct rv-insn (opcode rd rs1 rs2 imm)) (define (interpret insn st) (case (rv-insn-opcode insn) [(l...
19af583e7e4b50614a02164d428d0b673f806457310bef99bb5ef6ce88e4fe06
simonmar/haskell-eXchange-2015
Show1.hs
Copyright ( c ) 2014 , Facebook , Inc. -- All rights reserved. -- This source code is distributed under the terms of a BSD license , -- found in the LICENSE file. An additional grant of patent rights can be found in the PATENTS file . module Haxl.Core.Show1 ( Show1(..) ) where -- | A class of type construct...
null
https://raw.githubusercontent.com/simonmar/haskell-eXchange-2015/3ae0e34a051201eb77721bee2e940ec1f764a0df/build/haxl2/Haxl/Core/Show1.hs
haskell
All rights reserved. found in the LICENSE file. An additional grant of patent rights can | A class of type constructors for which we can show all parameterizations.
Copyright ( c ) 2014 , Facebook , Inc. This source code is distributed under the terms of a BSD license , be found in the PATENTS file . module Haxl.Core.Show1 ( Show1(..) ) where class Show1 f where show1 :: f a -> String
e2c7491ea403abc6dd0abc48ed34649f49dbc3302de76e50af405e6bb2bd41db
hrvolapeter/security-log
Main.hs
# LANGUAGE FlexibleContexts # module Main ( main ) where import Analyses (runAll) import Control.Concurrent (threadDelay) import Control.Monad (forever, mapM_) import Control.Monad.Reader import Data.App import Data.Confi...
null
https://raw.githubusercontent.com/hrvolapeter/security-log/3434c18934ac3698a90f90c20b6fd3ba4761ebeb/src/Main.hs
haskell
# LANGUAGE FlexibleContexts # module Main ( main ) where import Analyses (runAll) import Control.Concurrent (threadDelay) import Control.Monad (forever, mapM_) import Control.Monad.Reader import Data.App import Data.Confi...
c2e85b2e4946d4a6c121fc0128d9f0e48c2ee52631b25e2fd09cb82de9c1610b
fulcro-legacy/fulcro-todomvc
support_viewer.cljs
(ns fulcro-todomvc.support-viewer (:require [fulcro-todomvc.ui :as ui] [fulcro.client :as core] yahoo.intl-messageformat-with-locales [fulcro.support-viewer :as support])) (defonce support-viewer (support/start-fulcro-support-viewer "support" ui/Root "app")) (core/refresh support-viewer)
null
https://raw.githubusercontent.com/fulcro-legacy/fulcro-todomvc/928ec1f5bf790e83093bfb595667d895f319068e/src/main/fulcro_todomvc/support_viewer.cljs
clojure
(ns fulcro-todomvc.support-viewer (:require [fulcro-todomvc.ui :as ui] [fulcro.client :as core] yahoo.intl-messageformat-with-locales [fulcro.support-viewer :as support])) (defonce support-viewer (support/start-fulcro-support-viewer "support" ui/Root "app")) (core/refresh support-viewer)
1d185bb87ef7ac2b09b8936a152a4275cb76a9fa954c712c5cbf90058c01b366
yamadapc/haskell-hspec-setup
Setup.hs
# LANGUAGE LambdaCase # module Test.Hspec.Setup where import Prelude hiding (readFile) import Control.Monad import Data.List import Data.List.Split import Data.Maybe import Data.Monoid import Language.Haskell.Exts import ...
null
https://raw.githubusercontent.com/yamadapc/haskell-hspec-setup/caccc2a173c225a3c7485dea2860cc904712cd4d/src/Test/Hspec/Setup.hs
haskell
# LANGUAGE LambdaCase # module Test.Hspec.Setup where import Prelude hiding (readFile) import Control.Monad import Data.List import Data.List.Split import Data.Maybe import Data.Monoid import Language.Haskell.Exts import ...
ce9b003a77aba021dc4b9baa4a193e9fcc2e0b194ecdaaf5a91df68d22d02e63
metosin/kekkonen
project.clj
(defproject sample "0.1.0-SNAPSHOT" :description "Kekkonen with Component sample" :dependencies [[org.clojure/clojure "1.7.0"] [http-kit "2.1.19"] [com.stuartsierra/component "0.3.1"] [reloaded.repl "0.2.2"] [metosin/palikka "0.5.1"] ...
null
https://raw.githubusercontent.com/metosin/kekkonen/5a38c52af34a0eb0f19d87e9f549e93e6d87885f/examples/component/project.clj
clojure
(defproject sample "0.1.0-SNAPSHOT" :description "Kekkonen with Component sample" :dependencies [[org.clojure/clojure "1.7.0"] [http-kit "2.1.19"] [com.stuartsierra/component "0.3.1"] [reloaded.repl "0.2.2"] [metosin/palikka "0.5.1"] ...
202807bfb07e6e7418297c02d761c4d1df93a07656fd613537c753b7fa034ece
fulcro-legacy/fulcro3
form_state_spec.cljc
(ns com.fulcrologic.fulcro.algorithms.form-state-spec (:require [com.fulcrologic.fulcro.components :as comp :refer [defsc]] [com.fulcrologic.fulcro.algorithms.form-state :as f] [com.fulcrologic.fulcro.algorithms.tempid :as tempid] [com.fulcrologic.fulcro.algorithms.denormalize :as fdn] [com.fulcro...
null
https://raw.githubusercontent.com/fulcro-legacy/fulcro3/5d1b9ab274406afd68b792192d5a783f29963314/src/test/com/fulcrologic/fulcro/algorithms/form_state_spec.cljc
clojure
(ns com.fulcrologic.fulcro.algorithms.form-state-spec (:require [com.fulcrologic.fulcro.components :as comp :refer [defsc]] [com.fulcrologic.fulcro.algorithms.form-state :as f] [com.fulcrologic.fulcro.algorithms.tempid :as tempid] [com.fulcrologic.fulcro.algorithms.denormalize :as fdn] [com.fulcro...
a570f2b3105dd68f384e43eb2ccfa8ec02eed9bff9c49867c9293755141d42f5
finnishtransportagency/harja
xml_esimerkit.clj
(ns harja.palvelin.integraatiot.api.tyokalut.xml-esimerkit) (def +hae-tietolaji-request+ "xsd/tierekisteri/esimerkit/hae-tietolaji-request.xml") (def +hae-tietue-request+ "xsd/tierekisteri/esimerkit/hae-tietue-request.xml") (def +hae-tietueet-request+ "xsd/tierekisteri/esimerkit/hae-tietueet-request.xml") (def +hae-ur...
null
https://raw.githubusercontent.com/finnishtransportagency/harja/4f30d456090ed871b77fe344a5d49d7f390d9e9f/src/clj/harja/palvelin/integraatiot/api/tyokalut/xml_esimerkit.clj
clojure
(ns harja.palvelin.integraatiot.api.tyokalut.xml-esimerkit) (def +hae-tietolaji-request+ "xsd/tierekisteri/esimerkit/hae-tietolaji-request.xml") (def +hae-tietue-request+ "xsd/tierekisteri/esimerkit/hae-tietue-request.xml") (def +hae-tietueet-request+ "xsd/tierekisteri/esimerkit/hae-tietueet-request.xml") (def +hae-ur...
2c4f66e6ea65b6ddf204e8c751d9f7b60b4ffb7f0cdc152a90f12238a27078f8
input-output-hk/marlowe-cardano
Gen.hs
# OPTIONS_GHC -Wno - orphans # # LANGUAGE EmptyCase # {-# LANGUAGE GADTs #-} module Language.Marlowe.Runtime.ChainSync.Gen where import Cardano.Api ( AddressAny(..) , AsType(..) , CardanoEra(..) , CardanoMode , ConsensusMode(..) , EraHistory(..) , Key(verificationKeyHash) , NetworkId(..) , Network...
null
https://raw.githubusercontent.com/input-output-hk/marlowe-cardano/5e8160cbb401e5007846be91a11650218457e12a/marlowe-chain-sync/gen/Language/Marlowe/Runtime/ChainSync/Gen.hs
haskell
# LANGUAGE GADTs #
# OPTIONS_GHC -Wno - orphans # # LANGUAGE EmptyCase # module Language.Marlowe.Runtime.ChainSync.Gen where import Cardano.Api ( AddressAny(..) , AsType(..) , CardanoEra(..) , CardanoMode , ConsensusMode(..) , EraHistory(..) , Key(verificationKeyHash) , NetworkId(..) , NetworkMagic(..) , PlutusScr...
91453bd7a828e35776676c65c9ba43a3e45b53782880d4ecec74f91ca03df219
schemedoc/implementation-metadata
gambit.scm
(short-title "Gambit") (title "Gambit Scheme") (alternative-title "Gambit-C") (repology "gambit-c") (github "gambit/gambit") (version-control github) (issue-tracker github) (wikipedia en "Gambit (scheme implementation)") (homepage-url "/") (person "Marc Feeley") (academy "Universite de Montreal") (documentation (ti...
null
https://raw.githubusercontent.com/schemedoc/implementation-metadata/6280d9c4c73833dc5bd1c9bef9b45be6ea5beb68/schemes/gambit.scm
scheme
(short-title "Gambit") (title "Gambit Scheme") (alternative-title "Gambit-C") (repology "gambit-c") (github "gambit/gambit") (version-control github) (issue-tracker github) (wikipedia en "Gambit (scheme implementation)") (homepage-url "/") (person "Marc Feeley") (academy "Universite de Montreal") (documentation (ti...
1d3d49c63c0a50cf385b7ec82e6cd987fd7b44cf157922cab3bbd52ad6beca45
DHSProgram/DHS-Indicators-SPSS
MS_tables_IR.sps
* Encoding: windows-1252. ***************************************************************************************************** Program: MS_tables_IR.sps Purpose: produce tables for indicators Author: Ivana Bjelic Date last modified: Sept 25 2019 by Ivana Bjelic *This do file will produce the following tables...
null
https://raw.githubusercontent.com/DHSProgram/DHS-Indicators-SPSS/578e6d40eff9edebda7cf0db0d9a0a52a537d98c/Chap04_MS/MS_tables_IR.sps
scheme
* Encoding: windows-1252. ***************************************************************************************************** Program: MS_tables_IR.sps Purpose: produce tables for indicators Author: Ivana Bjelic Date last modified: Sept 25 2019 by Ivana Bjelic *This do file will produce the following tables...
f3805999abc0209dbd342783cd687c1216fb68c9ce0230aaa27f501e26953807
ocsigen/tyxml
name_convention.ml
(* Elements and attributes are technically utf8, but ascii is enough for now. see <#syntax> *) When dropping support for 4.02 , this module can simply be deleted . module Char = struct include Char let lowercase_ascii = Char.lowercase [@ocaml.warning "-3"] let uppercase_ascii = Char.uppercase [@ocaml.warn...
null
https://raw.githubusercontent.com/ocsigen/tyxml/8551b673857fdc1defebe7c502ffcb920f04009e/syntax/name_convention.ml
ocaml
Elements and attributes are technically utf8, but ascii is enough for now. see <#syntax>
When dropping support for 4.02 , this module can simply be deleted . module Char = struct include Char let lowercase_ascii = Char.lowercase [@ocaml.warning "-3"] let uppercase_ascii = Char.uppercase [@ocaml.warning "-3"] end In the ocaml parser : let identchar = [ ' A'-'Z ' ' a'-'z ' ' _ ' ' \ '' ' 0'...
4c4561c7000a9c4db05c8805294dfd2f32ab186cd02cc0478d9dfac8e48fd8ab
plewto/Cadejo
pitch_map.clj
(ns xolotl.ui.pitch-map) (def ^:private octaves (range -4 5)) (def ^:private roots {"C" 0, "D" 2, "E" 4, "F" 5, "G" 7, "A" 9, "B" 11}) (def ^:private modifiers {"F" -1, "" 0, "S" 1}) (def REST-LIMIT -49) ; Any value <= REST-LIMIT is a rest. (def REST -1000) ; The canonical rest value. ;; Map ...
null
https://raw.githubusercontent.com/plewto/Cadejo/2a98610ce1f5fe01dce5f28d986a38c86677fd67/src/xolotl/ui/pitch_map.clj
clojure
Any value <= REST-LIMIT is a rest. The canonical rest value. Map symbolic pitch tokens to int MIDI key-number where R -> Root key name "white key" : C D E F G A or B M -> optional modifier : F = flat, S = sharp Map int MIDI key-numbers to to symbolic tokens Fo...
(ns xolotl.ui.pitch-map) (def ^:private octaves (range -4 5)) (def ^:private roots {"C" 0, "D" 2, "E" 4, "F" 5, "G" 7, "A" 9, "B" 11}) (def ^:private modifiers {"F" -1, "" 0, "S" 1}) Pitch symbol name format : R0 or RM0 O - > octave number : 0,1,2,3,4,5,6,7,8 (def pitch-map (let [acc* (...
77f3a03c4802423490a692da6c58ac098439a649260e2df65cd907a8f9054a41
returntocorp/semgrep
ast_java.ml
: a Java lexer , parser , and pretty - printer written in OCaml . * Copyright ( C ) 2001 < > * Copyright ( C ) 2022 < > * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by t...
null
https://raw.githubusercontent.com/returntocorp/semgrep/dcea978347df81cbc8f2c2b49b80c1980f6194cf/languages/java/ast/ast_java.ml
ocaml
*************************************************************************** Prelude *************************************************************************** *************************************************************************** Names **************************************************************************...
: a Java lexer , parser , and pretty - printer written in OCaml . * Copyright ( C ) 2001 < > * Copyright ( C ) 2022 < > * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by t...
a71f4e05ebbe50e896844004aa7630bcfae392b18306dc4821a626a3c9cf5d19
russross/cownfs
mount_api.mli
Copyright 2004 , 2005 * See the file COPYING for information about licensing and distribution . * See the file COPYING for information about licensing and distribution. *) open Mount_prot_caux open Common val null : Lookup.t -> session -> t_MOUNT...
null
https://raw.githubusercontent.com/russross/cownfs/cc67fae0294203a78b022d7300be8aa6c35c58af/mount_api.mli
ocaml
Copyright 2004 , 2005 * See the file COPYING for information about licensing and distribution . * See the file COPYING for information about licensing and distribution. *) open Mount_prot_caux open Common val null : Lookup.t -> session -> t_MOUNT...
a30b19195abb973719189d6f8924ced97c018ab78ea8855177e8fa53644b5610
spawnfest/eep49ers
wxImage.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2020 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/wx/src/gen/wxImage.erl
erlang
%CopyrightBegin% 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 lan...
Copyright Ericsson AB 2008 - 2020 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(wxImage). -include("wxe.hrl"). -export(['Destroy'/1,blur/2,blurHorizontal/2,blurVertical/2,convertAlphaToMa...
59f1111ff081d48df647c0cff86a5632c0b4c7fc03a3e6e894c9e68ab0417ebc
ProjectMAC/propagators
search.scm
;;; ---------------------------------------------------------------------- Copyright 2009 Massachusetts Institute of Technology . ;;; ---------------------------------------------------------------------- This file is part of Propagator Network Prototype . ;;; Propagator Network Prototype is free software ; you ...
null
https://raw.githubusercontent.com/ProjectMAC/propagators/add671f009e62441e77735a88980b6b21fad7a79/core/search.scm
scheme
---------------------------------------------------------------------- ---------------------------------------------------------------------- you can redistribute it and/or modify it under the terms of the GNU any later version. will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of M...
Copyright 2009 Massachusetts Institute of Technology . This file is part of Propagator Network Prototype . General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) Propagator Network Prototype is distributed in the hope that it You should ...
b249fcabe70f46c7e0fd29e32562b00962bbd9e6f302cf9856fbdc87a6e02af7
samrushing/irken-compiler
zlib.scm
;; -*- Mode: Irken -*- (require-ffi 'zlib) (define zlib_version (format (int ZLIB_VER_MAJOR) "." (int ZLIB_VER_MINOR) "." (int ZLIB_VER_REVISION))) (define (deflate gen osize level) (let ((Z* (malloc (struct z_stream_s))) (obuf* (make-char-buffer osize)) (zlib_version* (cstri...
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/lib/codecs/zlib.scm
scheme
-*- Mode: Irken -*- Z_OK
(require-ffi 'zlib) (define zlib_version (format (int ZLIB_VER_MAJOR) "." (int ZLIB_VER_MINOR) "." (int ZLIB_VER_REVISION))) (define (deflate gen osize level) (let ((Z* (malloc (struct z_stream_s))) (obuf* (make-char-buffer osize)) (zlib_version* (cstring zlib_version))) ...
2d68cf01ad950aa2f715145118179dff2c91f936a7ca4795ef33b8369d13b525
ghc/ghc
Ppr.hs
# LANGUAGE LambdaCase # instance module GHC.Types.Hint.Ppr ( perhapsAsPat also , and more interesting : instance ) where import GHC.Prelude import GHC.Parser.Errors.Basic import GHC.Types.Hint import GHC.Core.FamInstEnv (FamFlavor(..)) instance import {-# SOURCE #-} GHC.Tc.Types.Origin ( ClsInstOrQC...
null
https://raw.githubusercontent.com/ghc/ghc/3b019a7ac8fc9059cc3213f6f95a2daef97ca442/compiler/GHC/Types/Hint/Ppr.hs
haskell
# SOURCE # This might happen when we have bindings which are /too complicated/, see for example 'DsCannotMixPolyAndUnliftedBindings' in 'GHC.HsToCore.Errors.Types'. In this case, we emit a generic message. will this last case ever happen?? A final dot can be confusing for a symbol without parens, e.g. * Use ': ...
# LANGUAGE LambdaCase # instance module GHC.Types.Hint.Ppr ( perhapsAsPat also , and more interesting : instance ) where import GHC.Prelude import GHC.Parser.Errors.Basic import GHC.Types.Hint import GHC.Core.FamInstEnv (FamFlavor(..)) instance import GHC.Types.Id import GHC.Types.Name (NameSpace, p...
a38184975abf773a36de13302b4db7aa1acfddb1e0d185037bda94fb5fe94bfd
simplex-chat/simplexmq
SQLite.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE DataKinds # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE InstanceSigs # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NamedFieldPuns # # LANGUAGE NumericUnderscores # ...
null
https://raw.githubusercontent.com/simplex-chat/simplexmq/e4aad7583f425765c605cd8042e3136e048bdbec/src/Simplex/Messaging/Agent/Store/SQLite.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # * Users * Queues and connections Confirmations Invitations - sent via Contact connections Messages Double ratchet persistence Async commands Notification device token persistence Notification subscription persistence * utilities _...
# LANGUAGE DataKinds # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE InstanceSigs # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NamedFieldPuns # # LANGUAGE NumericUnderscores # # LANGUAGE PatternSynonyms # # LANGUAGE QuasiQuotes # # ...
cc4ea768e0636459cdb25fd9fd3174ae48d9fdac07af97117f95b154f6841113
ssadler/zeno
Transaction.hs
module Network.Ethereum.Transaction ( module ALL , encodeTx , decodeTx , signTx , hashTx , recoverFrom , withoutSig ) where import Data.RLP import Network.Ethereum.Crypto import Network.Ethereum.Transaction.Types as ALL import Zeno.Prelude import UnliftIO withoutSig :: Transaction -> Transaction wit...
null
https://raw.githubusercontent.com/ssadler/zeno/9f715d7104a7b7b00dee9fe35275fb217532fdb6/src/Network/Ethereum/Transaction.hs
haskell
module Network.Ethereum.Transaction ( module ALL , encodeTx , decodeTx , signTx , hashTx , recoverFrom , withoutSig ) where import Data.RLP import Network.Ethereum.Crypto import Network.Ethereum.Transaction.Types as ALL import Zeno.Prelude import UnliftIO withoutSig :: Transaction -> Transaction wit...
ea9d524ffd3581e16bcea2e6d1a7188f79cdf5769dbb457d3be3086608e0787e
NorfairKing/sydtest
Persistent.hs
# LANGUAGE CPP # # LANGUAGE FlexibleInstances # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeFamilies # # OPTIONS_GHC -fno - warn - orphans # -- | Testing with an in-memory sqlite database using persistent-sqlite module Test.Syd.Persistent ( runSqlPool, runPersistentTest, migrationRunner, migrations...
null
https://raw.githubusercontent.com/NorfairKing/sydtest/e55fad0f6b8058a9b44c6c0d66bdd3c3be556d71/sydtest-persistent/src/Test/Syd/Persistent.hs
haskell
# LANGUAGE OverloadedStrings # | Testing with an in-memory sqlite database using persistent-sqlite | A flipped version of 'runSqlPool' to run your tests | Helper function to run a 'Migration' before/in a test suite that works accross versions of @persistent@. | Test that the given migration succeeds, when applied t...
# LANGUAGE CPP # # LANGUAGE FlexibleInstances # # LANGUAGE TypeFamilies # # OPTIONS_GHC -fno - warn - orphans # module Test.Syd.Persistent ( runSqlPool, runPersistentTest, migrationRunner, migrationsSucceedsSpecHelper, ) where import Control.Monad.Reader import qualified Data.ByteString as SB import D...
33aa23aab7ac04469d8d208dc308fb61301c11a760592642c7fd2475cfc171c5
romac/lfc-haskell
Untyped.hs
module LFC.Tree.Untyped ( UntypedTree , mkVar , mkAbs , mkApp , mkTrue , mkFalse , mkSucc , mkPred , mkZero , mkIsZero , mkIf ) where import Protolude import Data.Functor.Foldable (Mu(..), embed) import LFC.Name import LFC.Tree import LFC.Ty type UntypedTree = Mu TreeF mkVar :: Name -> Unt...
null
https://raw.githubusercontent.com/romac/lfc-haskell/437f847519156cd2381e552ec2b1cac882a018e4/src/LFC/Tree/Untyped.hs
haskell
module LFC.Tree.Untyped ( UntypedTree , mkVar , mkAbs , mkApp , mkTrue , mkFalse , mkSucc , mkPred , mkZero , mkIsZero , mkIf ) where import Protolude import Data.Functor.Foldable (Mu(..), embed) import LFC.Name import LFC.Tree import LFC.Ty type UntypedTree = Mu TreeF mkVar :: Name -> Unt...