_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
75860b17d4b2d0e79ac6a4c8f93352c1d8c7450ceb0c2be9196cb6f4e0535471
OpenC2-org/ocas
modifiers.erl
@author ( C ) 2017 , sFractal Consulting LLC %%% -module(modifiers). -author("Duncan Sparrell"). -license("Apache 2.0"). %%%------------------------------------------------------------------- %%% All rights reserved. %%% %%% Redistribution and use in source and binary forms, with or without %%% modification, are...
null
https://raw.githubusercontent.com/OpenC2-org/ocas/c15132d9f37b1e0e29884456a520557c25b22f38/apps/ocas/src/modifiers.erl
erlang
------------------------------------------------------------------- All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this...
@author ( C ) 2017 , sFractal Consulting LLC -module(modifiers). -author("Duncan Sparrell"). -license("Apache 2.0"). " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT OWNER OR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT ...
f4ba08ff1b9bd9d65c36085b0e9dd67dd519cca388c22428de7406dad827a185
penpot/penpot
audit.clj
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. ;; ;; Copyright (c) KALEIDOS INC (ns app.loggers.audit "Services related to the user activity (audit log)." (:require [app.common.data :...
null
https://raw.githubusercontent.com/penpot/penpot/1d21ee708966a4168b4f0593d5512e60d4b12465/backend/src/app/loggers/audit.clj
clojure
Copyright (c) KALEIDOS INC HELPERS --- SPECS COLLECTOR Defines a service that collects the audit/activity log using internal database. Later this audit log can be transferred to an external storage and data cleared. NOTE: this operation may cause primary key conflicts on inserts this case we just retry th...
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (ns app.loggers.audit "Services related to the user activity (audit log)." (:require [app.common.data :as d] [app.common.data.macros ...
dd67e7180ded9222e729f1d68e5f1c24aa15b44176cea157c194839d9e657d59
huangz1990/SICP-answers
p228-integers.scm
;;; p228-integers.scm (load "p228-add-streams.scm") (load "p228-ones.scm") (define integers (cons-stream 1 (add-streams ones integers)))
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp3/code/p228-integers.scm
scheme
p228-integers.scm
(load "p228-add-streams.scm") (load "p228-ones.scm") (define integers (cons-stream 1 (add-streams ones integers)))
9ae98b0b215ef767aa95ab643f9e3f2573d0909b160cdaab40172529996cb94f
albertoruiz/easyVision
play1.hs
import Vision.GUI import Image.Processing main = run p p = observe "RGB" rgb >>> arr grayscale >>> observe "inverted" notI
null
https://raw.githubusercontent.com/albertoruiz/easyVision/26bb2efaa676c902cecb12047560a09377a969f2/projects/tour/play1.hs
haskell
import Vision.GUI import Image.Processing main = run p p = observe "RGB" rgb >>> arr grayscale >>> observe "inverted" notI
e0152cde03ab62ac14a05cb4e769ce30316bea67d62dea01fa479896e5bd3e5a
composewell/streamly
Type.hs
-- | Module : Streamly . Internal . Data . Refold . Type Copyright : ( c ) 2019 Composewell Technologies -- License : BSD-3-Clause -- Maintainer : -- Stability : experimental Portability : GHC -- The ' Fold ' type embeds a default initial value , therefore , it is like a ' Monoid ' whereas th...
null
https://raw.githubusercontent.com/composewell/streamly/5a9eab8528246bf73f9e8cd72d4ce1b4bf14dfe9/core/src/Streamly/Internal/Data/Refold/Type.hs
haskell
| License : BSD-3-Clause Maintainer : Stability : experimental value, therefore, it is more like a 'Semigroup' operation. incrementally. This is useful in incremental builder like use cases. See the file splitting example in the @streamly-examples@ repository for an in this situation. provides bett...
Module : Streamly . Internal . Data . Refold . Type Copyright : ( c ) 2019 Composewell Technologies Portability : GHC The ' Fold ' type embeds a default initial value , therefore , it is like a ' Monoid ' whereas the ' Refold ' type has to be supplied with an initial can be appended to each other ...
74e2b2a70da4a7c81880c9649c700df6bda1895e60961b3cc1f20426718c5a5e
cedlemo/OCaml-GI-ctypes-bindings-generator
Icon_set.ml
open Ctypes open Foreign type t let t_typ : t structure typ = structure "Icon_set" let create = foreign "gtk_icon_set_new" (void @-> returning (ptr t_typ)) let create_from_pixbuf = foreign "gtk_icon_set_new_from_pixbuf" (ptr Pixbuf.t_typ @-> returning (ptr t_typ)) let add_source = foreign "gtk_icon_set_add_sour...
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Icon_set.ml
ocaml
Not implemented gtk_icon_set_get_sizes type C Array type for Types.Array tag not implemented
open Ctypes open Foreign type t let t_typ : t structure typ = structure "Icon_set" let create = foreign "gtk_icon_set_new" (void @-> returning (ptr t_typ)) let create_from_pixbuf = foreign "gtk_icon_set_new_from_pixbuf" (ptr Pixbuf.t_typ @-> returning (ptr t_typ)) let add_source = foreign "gtk_icon_set_add_sour...
ae35757632bd27767e99566358f3be89475b871ef5fce8362f5e75d7430d39b0
jellelicht/guix
gnu-build-system.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2012 , 2013 , 2014 , 2015 , 2016 < > ;;; ;;; 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/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/guix/build/gnu-build-system.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 © 2012 , 2013 , 2014 , 2015 , 2016 < > 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 (guix build gnu-build-system) #:use-module (guix build utils) #:use...
b9780985c7d1c288662cff94f5b9bc90c6cfdfbb293f29fbb8800c9b69f98002
ghcjs/jsaddle-dom
StorageInfo.hs
# LANGUAGE PatternSynonyms # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.StorageInfo (queryUsageAndQuota, requestQuota, pattern TEMPORARY, pattern PERSISTENT, StorageInfo(..), gTyp...
null
https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/StorageInfo.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
# LANGUAGE PatternSynonyms # # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.StorageInfo (queryUsageAndQuota, requestQuota, pattern TEMPORARY, pattern PERSISTENT, StorageInfo(..), gTypeStorageInfo) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(....
e51378645d25d3ffca66cf25bd552a3c6c86dee77fcbc0c8acdec490781e2166
RichiH/git-annex
CoProcess.hs
Interface for running a shell command as a coprocess , - sending it queries and getting back results . - - Copyright 2012 - 2013 < > - - License : BSD-2 - clause - sending it queries and getting back results. - - Copyright 2012-2013 Joey Hess <> - - License: BSD-2-clause -} # LANGUAGE CPP ...
null
https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Utility/CoProcess.hs
haskell
To handle a restartable process, any IO exception thrown by the send and - receive actions are assumed to mean communication with the process - failed, and the failed action is re-run with a new process.
Interface for running a shell command as a coprocess , - sending it queries and getting back results . - - Copyright 2012 - 2013 < > - - License : BSD-2 - clause - sending it queries and getting back results. - - Copyright 2012-2013 Joey Hess <> - - License: BSD-2-clause -} # LANGUAGE CPP ...
28fbda3626fa95ae91f3712585deff4e91946bcd428f191764df53501b576912
timoffex/skyrim-alchemy
CLISpec.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE TypeApplications # module CLISpec ( spec ) where import AlchemyData ...
null
https://raw.githubusercontent.com/timoffex/skyrim-alchemy/bcde5f3fd82fd6d6c40195c00eb396dbb0ea9242/test/CLISpec.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # ------------------------------------------------------------------------------ ------------------------------------------------------------------------------
# LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE TypeApplications # module CLISpec ( spec ) where import AlchemyData ( AlchemyData , EffectName , InconsistentEffect , InconsistentOverlap , IngredientName , effectName , em...
366ce896854453790332533c5f37c34e3e0ad81fca229c0274d74b90d17e4667
exercism/ocaml
triangle.mli
val is_equilateral : int -> int -> int -> bool val is_isosceles : int -> int -> int -> bool val is_scalene : int -> int -> int -> bool
null
https://raw.githubusercontent.com/exercism/ocaml/bfd6121f757817865a34db06c3188b5e0ccab518/exercises/practice/triangle/triangle.mli
ocaml
val is_equilateral : int -> int -> int -> bool val is_isosceles : int -> int -> int -> bool val is_scalene : int -> int -> int -> bool
c2c165c083f22e50d2ec699cd93e2caf913899a175dae3dd5e2a6602dd9abab2
facebook/infer
InferredNullability.ml
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/facebook/infer/d2e59e6df24858729129debcc2813ae3915c4f0a/infer/src/nullsafe/InferredNullability.ml
ocaml
* Origins responsible for this nullability type Nullability was fully determined by t1. Nullability was fully determined by t2 Nullability is not fully determined by neither t1 nor t2 - join both lists
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
2be516b447ea9c56b1974a71cb572e32b9c7867b9e793c085cc96192bcb4e846
zkincaid/duet
interpretation.mli
open Syntax exception Divide_by_zero type 'a value = [`Real of QQ.t | `Bool of bool | `Fun of ('a, typ_fo) expr ] * An interpretation is a mapping from symbols to values . Interpretations are a collection of concrete bindings ( explicit ( symbol , value ) pairs ) combined with an optional abstract bind...
null
https://raw.githubusercontent.com/zkincaid/duet/162d3da830f12ab8e8d51f7757cddcb49c4084ca/srk/src/interpretation.mli
ocaml
* Wrap a function mapping symbols to values in an interpretation. Calls to this function are cached. Symbols belonging to the optional symbol list argument are pre-cached. * Enumerate the concrete bindings in an interpretation. * Replace constant symbols by their interpretations within an expression. A ...
open Syntax exception Divide_by_zero type 'a value = [`Real of QQ.t | `Bool of bool | `Fun of ('a, typ_fo) expr ] * An interpretation is a mapping from symbols to values . Interpretations are a collection of concrete bindings ( explicit ( symbol , value ) pairs ) combined with an optional abstract bind...
c73ef6c8efd3a0a6f9953aef06c1539240198a09e05279b977a69630542e56be
kayceesrk/Quelea
LWWRegisterDefs.hs
{-# LANGUAGE ScopedTypeVariables, TemplateHaskell #-} module LWWRegisterDefs ( LWWRegister(..), readReg, writeReg, haReadCtrt, haWriteCtrt, cauReadCtrt, cauWriteCtrt, stReadCtrt, stWriteCtrt, Operation(..), createTables, dropTables ) where import Database.Cassandra.CQL as CQL hiding (WriteReg,write,Read...
null
https://raw.githubusercontent.com/kayceesrk/Quelea/73db79a5d5513b9aeeb475867a67bacb6a5313d0/tests/LWW/LWWRegisterDefs.hs
haskell
# LANGUAGE ScopedTypeVariables, TemplateHaskell # ------------------------------------------------------------------------------
module LWWRegisterDefs ( LWWRegister(..), readReg, writeReg, haReadCtrt, haWriteCtrt, cauReadCtrt, cauWriteCtrt, stReadCtrt, stWriteCtrt, Operation(..), createTables, dropTables ) where import Database.Cassandra.CQL as CQL hiding (WriteReg,write,Read,read) import Data.Map (Map) import qualified Data.Map...
036111b17754fbd789939f80c9d8acb63a62530474582ab8cfe4eba4eeb01caa
testedminds/edgewise
project.clj
(defproject edgewise "0.3.1-SNAPSHOT" :description "Edgewise is a simple library for representing and computing on networks (graphs) in Clojure." :url "" :license {:name "Apache License, Version 2.0" :url "-2.0.html"} :dependencies [[org.clojure/clojure "1.8.0"]] :pedantic? :warn :profiles {:dev...
null
https://raw.githubusercontent.com/testedminds/edgewise/0fb64c718e6a8e70eda87b77677a6679770569d1/project.clj
clojure
(defproject edgewise "0.3.1-SNAPSHOT" :description "Edgewise is a simple library for representing and computing on networks (graphs) in Clojure." :url "" :license {:name "Apache License, Version 2.0" :url "-2.0.html"} :dependencies [[org.clojure/clojure "1.8.0"]] :pedantic? :warn :profiles {:dev...
23a424fcf72605a3c46b980ae7a3e84f76ca2046cb5a5f0135a5402164395e6c
binaryage/chromex
web_request.clj
(ns chromex.ext.web-request "Use the chrome.webRequest API to observe and analyze traffic and to intercept, block, or modify requests in-flight. * available since Chrome 36 * " (:refer-clojure :only [defmacro defn apply declare meta let partial]) (:require [chromex.wrapgen :refer [gen-wrap-helper]] ...
null
https://raw.githubusercontent.com/binaryage/chromex/33834ba5dd4f4238a3c51f99caa0416f30c308c5/src/exts/chromex/ext/web_request.clj
clojure
-- properties ------------------------------------------------------------------------------------------------------------- -- events ----------------------------------------------------------------------------------------------------------------- docs: /#tapping-events -- convenience -----------------------------...
(ns chromex.ext.web-request "Use the chrome.webRequest API to observe and analyze traffic and to intercept, block, or modify requests in-flight. * available since Chrome 36 * " (:refer-clojure :only [defmacro defn apply declare meta let partial]) (:require [chromex.wrapgen :refer [gen-wrap-helper]] ...
7e80f3f3871444b63ad3582cddbe9ce178c60becd0c3d2605035e7fdad971deb
hopv/MoCHi
atom.mli
(** Atoms *) type t * { 6 Printers } val ext_pr : (Format.formatter -> t -> unit) ref val pr : Format.formatter -> t -> unit val pr_list : Format.formatter -> t list -> unit val ext_pr_tex : (Format.formatter -> t -> unit) ref val pr_tex : Format.formatter -> t -> unit * { 6 Auxiliary constructors } val make : Cons...
null
https://raw.githubusercontent.com/hopv/MoCHi/b0ac0d626d64b1e3c779d8e98cb232121cc3196a/fpat/atom.mli
ocaml
* Atoms * tautology * contradiction * ignore equalities on functions
type t * { 6 Printers } val ext_pr : (Format.formatter -> t -> unit) ref val pr : Format.formatter -> t -> unit val pr_list : Format.formatter -> t list -> unit val ext_pr_tex : (Format.formatter -> t -> unit) ref val pr_tex : Format.formatter -> t -> unit * { 6 Auxiliary constructors } val make : Const.t -> Term.t...
2ff07557426de342d5884f1b261e523448e6273a78cb4ff9f90071bd44d013d2
ocsigen/ocsimore
wiki_menu.mli
Ocsimore * * Copyright ( C ) 2011 * * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option ) any later version ....
null
https://raw.githubusercontent.com/ocsigen/ocsimore/8eeaf043ed6f1f167a96cbdc5f72a5225d9516d5/src/site/server/wiki_menu.mli
ocaml
Ocsimore * * Copyright ( C ) 2011 * * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option ) any later version ....
bdafaf7990d3128220aea097f1c491dd4249bea84304eb56349914e864dc93df
kunstmusik/pink
envelopes_test.clj
(ns pink.envelopes-test (:require [pink.envelopes :refer :all]) (:require [clojure.test :refer :all])) (defmacro with-private-fns [[ns fns] & tests] "Refers private fns from ns and runs tests in context." `(let ~(reduce #(conj %1 %2 `(ns-resolve '~ns '~%2)) [] fns) ~@tests)) (def pts [0.0 0.001 0.05 1....
null
https://raw.githubusercontent.com/kunstmusik/pink/7d37764b6a036a68a4619c93546fa3887f9951a7/src/test/pink/envelopes_test.clj
clojure
(def t (exp-env pts)) (def pts-data (make-exp-env-data pts)) (def pts-data2 (make-env-data pts))
(ns pink.envelopes-test (:require [pink.envelopes :refer :all]) (:require [clojure.test :refer :all])) (defmacro with-private-fns [[ns fns] & tests] "Refers private fns from ns and runs tests in context." `(let ~(reduce #(conj %1 %2 `(ns-resolve '~ns '~%2)) [] fns) ~@tests)) (def pts [0.0 0.001 0.05 1....
32db8487fbcbf0286d0baa09df4ea3020363172be4a9f2b88ef01540a9c64126
clojurebook/ClojureProgramming
project.clj
(defproject com.clojurebook/sample-lein-project "1.0.0" :description "This is the simplest possible Leiningen project." :url "" :dependencies [[org.clojure/clojure "1.3.0"]])
null
https://raw.githubusercontent.com/clojurebook/ClojureProgramming/bcc7c58862982a5793e22788fc11a9ed7ffc548f/ch08-leiningen/project.clj
clojure
(defproject com.clojurebook/sample-lein-project "1.0.0" :description "This is the simplest possible Leiningen project." :url "" :dependencies [[org.clojure/clojure "1.3.0"]])
4e57e36e469e354be8a17639a6c4b64a61d0bc7ad15bd7612faad62f108f276c
liqd/aula
HLint.hs
import "hlint" HLint.Default import "hlint" HLint.Dollar import "hlint" HLint.Generalise import "hlint" HLint.HLint ignore "Avoid lambda" = Action.mkRunAction ignore "Use camelCase" = Main.ViewIdea_PhaseNone ignore "Use camelCase" = Main.ViewIdea_PhaseRefinement ignore "Use camelCase" = Main.ViewIdea_PhaseJury ignore ...
null
https://raw.githubusercontent.com/liqd/aula/f96dbf85cd80d0b445e7d198c9b2866bed9c4e3d/HLint.hs
haskell
import "hlint" HLint.Default import "hlint" HLint.Dollar import "hlint" HLint.Generalise import "hlint" HLint.HLint ignore "Avoid lambda" = Action.mkRunAction ignore "Use camelCase" = Main.ViewIdea_PhaseNone ignore "Use camelCase" = Main.ViewIdea_PhaseRefinement ignore "Use camelCase" = Main.ViewIdea_PhaseJury ignore ...
bab4c53516a8649bbb45d6ef30410c895e9bf2059fe2e0bf761acc258ef36126
frankiesardo/linked
set_test.cljc
(ns linked.set-test (:require [linked.core :as linked] #?@(:clj [[clojure.test :refer :all] [collection-check.core :refer :all] [clojure.test.check.generators :as gen]] :cljs [[cljs.test :refer-macros [is are testing deftest run-tests]]]) ...
null
https://raw.githubusercontent.com/frankiesardo/linked/d000c4e526a4b275f787196100cac36d37c991ba/test/linked/set_test.cljc
clojure
(ns linked.set-test (:require [linked.core :as linked] #?@(:clj [[clojure.test :refer :all] [collection-check.core :refer :all] [clojure.test.check.generators :as gen]] :cljs [[cljs.test :refer-macros [is are testing deftest run-tests]]]) ...
bfd1a5aad9d8f0f6c444065b86bbfc482ba774db2e098835b391c984c4b9fb87
AmpersandTarski/Ampersand
Main.hs
module Main (main) where import MainApps main :: IO () main = ampersand
null
https://raw.githubusercontent.com/AmpersandTarski/Ampersand/cb2306a09ce79d5609ccf8d3e28c0a1eb45feafe/app/Ampersand/Main.hs
haskell
module Main (main) where import MainApps main :: IO () main = ampersand
00a3dd5e50e5a73d2e5311fe0a61d9359da99ab72c534b08ce9117e4cdc7e802
vijayphoenix/Compiler-written-in-Haskell
Language.hs
module Language ( haskullstyle, haskulldef ) where import Text.Parsec import Text.Parsec.Token import Text.Parsec.Language | This is a minimal token definition for Haskull style languages . It -- defines the style of comments, valid identifiers and case -- sensitivity. It does not define any reserved wo...
null
https://raw.githubusercontent.com/vijayphoenix/Compiler-written-in-Haskell/9d69ebaa80aaa3455648e615057db7fdfa40b006/src/Language.hs
haskell
defines the style of comments, valid identifiers and case sensitivity. It does not define any reserved words or operators.
module Language ( haskullstyle, haskulldef ) where import Text.Parsec import Text.Parsec.Token import Text.Parsec.Language | This is a minimal token definition for Haskull style languages . It haskullstyle :: LanguageDef st haskullstyle = emptyDef { commentStart = "{-" , commentEnd ...
409231191cff4f1b46df054b7d7b338df49d535047738a878dcaec387b4970ea
spawnfest/eep49ers
ssh_key_cb_options.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2015 - 2017 . 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/ssh/test/ssh_key_cb_options.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 2015 - 2017 . 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(ssh_key_cb_options). -behaviour(ssh_client_key_api). -export([ add_host_key/3, is_host_k...
d768f764324fb25a8ab45f69fb6b53e1d85c1a0d9ba0bd6f07b739ff3a373d9a
adityaathalye/sicp
ex2-61-sets-as-ordered-lists.scm
;; -*- geiser-scheme-implementation: mit -*- Sets as un - ordered lists ( from ex 2.59 and 2.60 ) ;; O(n) (define (element-of-set-unordered-list? x unordered-list) (cond ((null? unordered-list) false) ((equal? x (car unordered-list)) true) (else (element-of-set? x (cdr unordered-list))))) ;; Sets...
null
https://raw.githubusercontent.com/adityaathalye/sicp/07c017af0f2457c4507783f669f5c554619bc3d4/ex2-61-sets-as-ordered-lists.scm
scheme
-*- geiser-scheme-implementation: mit -*- O(n) Sets as ordered lists - Number objects only - compared using < and > Re-do element of set (complexity is still O(n)) (element-of-set? 5 '()) Intersection set - Sets as ordered lists should intersect in O(n) time instead of O(n^2) when represented as unordered l...
Sets as un - ordered lists ( from ex 2.59 and 2.60 ) (define (element-of-set-unordered-list? x unordered-list) (cond ((null? unordered-list) false) ((equal? x (car unordered-list)) true) (else (element-of-set? x (cdr unordered-list))))) (define (element-of-set? x ordered-list) (cond ((null? or...
0fa0273de153d0249f49eeb2248f9ec10a47d794f96a1f75fa456475c3dff8bc
mbattyani/cl-pdf
config.lisp
cl - pdf copyright 2002 - 2005 see license.txt for the details ;;; You can reach me at or ;;; The homepage of cl-pdf is here: -pdf.html (in-package #:pdf) ;;; This file contains some special variables which need to be set ;;; depending on your Lisp implementation/OS/installation. (defconstant +external-format+...
null
https://raw.githubusercontent.com/mbattyani/cl-pdf/dbafd62afcb2d2e9164054c72612763721297d59/config.lisp
lisp
You can reach me at or The homepage of cl-pdf is here: -pdf.html This file contains some special variables which need to be set depending on your Lisp implementation/OS/installation. Map exceptional but useful characters to the [0-255] range for a single-byte encoding Add more here... See #<method write-object...
cl - pdf copyright 2002 - 2005 see license.txt for the details (in-package #:pdf) (defconstant +external-format+ #-(or sbcl lispworks clisp allegro ccl abcl ecl clasp) :default #+abcl '(:iso-8859-1 :eol-style :lf) #+ecl '(:latin-1 :lf) #+clasp :iso-8859-1 #+ccl :latin1 #+sbcl :latin-1 #+(and allegr...
41f7362f6ebd91372b74fa321c63e18358f89f8152253a31fb4cf4158fb9ed5a
facebook/flow
objmapi_to_keymirror.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/flow/1d9c71bf05f95bef9bd70644b2b2b4cdac60bc45/src/codemods/objmapi_to_keymirror.ml
ocaml
<K, ...>(k: K, ...) => K <K, ...>(k: K, ...) => T
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
8ada1583f9b03987ce415c6c04d7d87dafd9b50950adad9972d6b92fc80a8e26
DeathKing/Hit-DataStructure-On-Scheme
queue-machine.scm
;;; SIMPLE QUEUE MACHINE ;;; ;;; AUTHOR: DeathKing<dk#hit.edu.cn> LICENSE : HIT / MIT (load-option 'format) (define (make-machine) ;;; m - the queue ;;; i - the number counter (define *m* (make-queue)) (define *i* 0) (define (counts) (if (queue-empty? *m*) 0 (length (car *m*)))) (defi...
null
https://raw.githubusercontent.com/DeathKing/Hit-DataStructure-On-Scheme/11677e3c6053d6c5b37cf0509885f74ab5c2bab9/application1/queue-machine.scm
scheme
SIMPLE QUEUE MACHINE AUTHOR: DeathKing<dk#hit.edu.cn> m - the queue i - the number counter
LICENSE : HIT / MIT (load-option 'format) (define (make-machine) (define *m* (make-queue)) (define *i* 0) (define (counts) (if (queue-empty? *m*) 0 (length (car *m*)))) (define (new) (let ((l (counts))) (format #t "You're no.\033[32;49;1m~A\033[39;49;0m, and there are \033[32;49;...
84e4155dfb6f089adf68347b9b51b8390b629b848d8a807d8d1f9d0b2c978b8b
cfcs/ocaml-socks
test_socks5.ml
open QCheck open QCheck.Test open OUnit2 open Socks let bigendian_port_of_int port = String.concat "" [ (port land 0xff00) lsr 8 |> char_of_int |> String.make 1 ; port land 0xff |> char_of_int |> String.make 1 ] let small_string = QCheck.Gen.string_size @@ QCheck.Gen.int_range 0 0xff |> ...
null
https://raw.githubusercontent.com/cfcs/ocaml-socks/00d2467f8e1ff2f369f4c8145654df51a35d8e08/test/test_socks5.ml
ocaml
This should be an Invalid_request Expected behavior is to reject invalid requests; hence true
open QCheck open QCheck.Test open OUnit2 open Socks let bigendian_port_of_int port = String.concat "" [ (port land 0xff00) lsr 8 |> char_of_int |> String.make 1 ; port land 0xff |> char_of_int |> String.make 1 ] let small_string = QCheck.Gen.string_size @@ QCheck.Gen.int_range 0 0xff |> ...
ac0519053c9a4284ea04a56880dc0c05bfe219b344caab201f90ebd67a49d58c
soupi/chip-8
Disassembler.hs
module CPU.Disassembler where import Data.Bits import qualified CPU.Bits as Bits import qualified Data.Word as W (Word16) -- | -- finds the relevant instruction from opcode. -- Based on this: -8#Opcode_table showOpcode :: W.Word16 -> String showOpcode opcode = case Bits.match16 opcode of (0x0, 0x0, 0xE, 0x0) ->...
null
https://raw.githubusercontent.com/soupi/chip-8/b2ded9808cd5a071f0b797286bb040bc73e19b27/src/CPU/Disassembler.hs
haskell
| finds the relevant instruction from opcode. Based on this: -8#Opcode_table "Returns from a subroutine." not yet implemented
module CPU.Disassembler where import Data.Bits import qualified CPU.Bits as Bits import qualified Data.Word as W (Word16) showOpcode :: W.Word16 -> String showOpcode opcode = case Bits.match16 opcode of (0x0, 0x0, 0xE, 0x0) -> "CLR" (0x0, 0x0, 0xE, 0xE) -> "RET" (0x0, _, _, _) -> " Calls R...
a46e12d4307fad12e4053a35a67cc2ff94b17caf5a5d203e3f0ddb60898bc236
OCamlPro/digodoc
lexer.mli
(**************************************************************************) (* *) Copyright ( c ) 2011 - 2020 OCamlPro SAS (* *) (* All rig...
null
https://raw.githubusercontent.com/OCamlPro/digodoc/2856aff0a9b3a9bc2d3414eea780a3a39315e40c/src/meta_file/lexer.mli
ocaml
************************************************************************ All rights reserved. This file is distributed u...
Copyright ( c ) 2011 - 2020 OCamlPro SAS Public License version 2.1 , with the special exception on linking type token = | STRING of string | IDENT of string | LPAREN | RPAREN | PLUSEQUAL | EQUAL | MINUS | EOF exception Error val token : Lexing.lexbuf -> token
a927fe56195080aa31ef7575018cbf137eef39bdbfe40d1e77a11696ba3a4c52
bennn/iPoe
church.rkt
#lang ipoe/limerick #:source "-Turing%20thesis" #:poetic-license 3 Each computer, in theory, is suitable To attack any problem computable. This thesis (Church Turing), Unproven, alluring, Remains, as we speak, irrefutable
null
https://raw.githubusercontent.com/bennn/iPoe/4a988f6537fb738b4fe842c404f9d78f658ab76f/examples/limerick/church.rkt
racket
#lang ipoe/limerick #:source "-Turing%20thesis" #:poetic-license 3 Each computer, in theory, is suitable To attack any problem computable. This thesis (Church Turing), Unproven, alluring, Remains, as we speak, irrefutable
d3445227699f2abf6f4a8699980f3d674831fab4817b49cb43ed33ce6e48ba14
8c6794b6/haskell-sc-scratch
Take06c.hs
# LANGUAGE NoMonomorphismRestriction # {-# LANGUAGE RankNTypes #-} {-# LANGUAGE GADTs #-} # LANGUAGE TypeFamilies # # LANGUAGE FlexibleInstances # | Module : $ Header$ CopyRight : ( c ) 8c6794b6 License : : Stability : unstable Portability : non - portable To deserialize lambda expre...
null
https://raw.githubusercontent.com/8c6794b6/haskell-sc-scratch/22de2199359fa56f256b544609cd6513b5e40f43/Scratch/Oleg/TTF/Extra/Take06c.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE GADTs # lam f = S $ \h -> let x = "x" ++ show h in "lam (\\" ++ x ++ " -> " ++ unS (f $ S (const $ show h)) (VS h) ++ ")" app e1 e2 = S $ \h -> "app (" ++ unS e1 h ++ ") (" ++ unS e2 h ++ ")"
# LANGUAGE NoMonomorphismRestriction # # LANGUAGE TypeFamilies # # LANGUAGE FlexibleInstances # | Module : $ Header$ CopyRight : ( c ) 8c6794b6 License : : Stability : unstable Portability : non - portable To deserialize lambda expression , take 6 , variation c. Module : $Hea...
38172c7f50530d9f26d38ddad4b1d36c32085b797b3badaa686dad6a41180e79
d-cent/mooncake
sign_in.clj
(ns mooncake.view.sign-in (:require [net.cgrand.enlive-html :as html] [mooncake.routes :as routes] [mooncake.view.view-helpers :as vh] [mooncake.translation :as translation])) (defn set-sign-in-link [enlive-m path] (html/at enlive-m [:.clj--sign-in-with-d-cent] (html/...
null
https://raw.githubusercontent.com/d-cent/mooncake/eb16b7239e7580a73b98f7cdacb324ab4e301f9c/src/mooncake/view/sign_in.clj
clojure
(ns mooncake.view.sign-in (:require [net.cgrand.enlive-html :as html] [mooncake.routes :as routes] [mooncake.view.view-helpers :as vh] [mooncake.translation :as translation])) (defn set-sign-in-link [enlive-m path] (html/at enlive-m [:.clj--sign-in-with-d-cent] (html/...
5e8b4b5362ce7c8a0444cbc5065b796678d31158f10b54ce64df2884f08bc420
xapi-project/xen-api
gen_c_binding.ml
(* * Copyright (c) Cloud Software Group, Inc. *) (* Generator of C bindings from the datamodel *) open Printf open Datamodel_types open Datamodel_utils open Dm_api open CommonFunctions module TypeSet = Set.Make (struct type t = Datamodel_types.ty let compare = compare end) let destdir = "autogen" let templa...
null
https://raw.githubusercontent.com/xapi-project/xen-api/703479fa448a8d7141954bb6e8964d8e25c4ac2e/ocaml/sdk-gen/c/gen_c_binding.ml
ocaml
* Copyright (c) Cloud Software Group, Inc. Generator of C bindings from the datamodel !!! result)->uuid);\n\ \ } \n\n\ \ return session->ok;\n " ( initialiser_of_ty ( Record n ) ) call | ( _ , _ ) - > sprintf " % s\n % s\...
open Printf open Datamodel_types open Datamodel_utils open Dm_api open CommonFunctions module TypeSet = Set.Make (struct type t = Datamodel_types.ty let compare = compare end) let destdir = "autogen" let templates_dir = "templates" let api = Datamodel_utils.named_self := true ; let obj_filter _ = true i...
a8cd1d523fedfb46841114fbccd50fb2782d9bc6b9c03e490c692b6a1ea994d3
Ptival/language-ocaml
ConstructorArguments.hs
# LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # OPTIONS_GHC -fno - warn - orphans # module Language.OCaml.PrettyPrinter.ConstructorArguments ( constructorArgumentsPP, ) where import Language.OCaml.Definitions.Parsing.ParseTree ( ConstructorArguments (..), ) import Language.OCaml.PrettyPrinter.Cor...
null
https://raw.githubusercontent.com/Ptival/language-ocaml/7b07fd3cc466bb2ad2cac4bfe3099505cb63a4f4/lib/Language/OCaml/PrettyPrinter/ConstructorArguments.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE LambdaCase # # OPTIONS_GHC -fno - warn - orphans # module Language.OCaml.PrettyPrinter.ConstructorArguments ( constructorArgumentsPP, ) where import Language.OCaml.Definitions.Parsing.ParseTree ( ConstructorArguments (..), ) import Language.OCaml.PrettyPrinter.CoreType () import Prettyprinter (Doc,...
7531c44c7d967c1859939cddda24775719f703d5bc66ba754025a44fa4c5fd73
cxxxr/lisp-preprocessor
packages.lisp
(defpackage :lisp-preprocessor (:use :cl :alexandria :split-sequence) (:export :*in-template-package* :compile-template :run-template-into-stream :run-template-into-string :run-template-into-file)) (defpackage :lisp-preprocessor.stream (:use :cl :trivial-gray-streams) ...
null
https://raw.githubusercontent.com/cxxxr/lisp-preprocessor/cbed5952f3d98c84448c52d12255df9580451383/packages.lisp
lisp
(defpackage :lisp-preprocessor (:use :cl :alexandria :split-sequence) (:export :*in-template-package* :compile-template :run-template-into-stream :run-template-into-string :run-template-into-file)) (defpackage :lisp-preprocessor.stream (:use :cl :trivial-gray-streams) ...
6ca34a6e545ee05fe232af04fd56283556d86024feaf238b31310a57a24df4c0
mzp/coq-ruby
extraargs.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ruby/99b9f87c4397f705d1210702416176b13f8769c1/tactics/extraargs.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Spiwack: Primitive for retroknowled...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * i $ I d : extraargs.mli 121...
a39656c2fbc4d670ed3313ad13fe21e0b21cf5f4dbb18f0aa70bd84116da6032
karen/haskell-book
IniParsing.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} module Data.Ini where import Control.Applicative import Data.ByteString (ByteString) import Data.Char (isAlpha) import Data.Map (Map) import qualified Data.Map as M import Data.Text (Text) import qualified Data.Text.IO as TIO import Test.Hspec impo...
null
https://raw.githubusercontent.com/karen/haskell-book/90bb80ec3203fde68fc7fda1662d9fc8b509d179/src/ch24/IniParsing.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE QuasiQuotes #
module Data.Ini where import Control.Applicative import Data.ByteString (ByteString) import Data.Char (isAlpha) import Data.Map (Map) import qualified Data.Map as M import Data.Text (Text) import qualified Data.Text.IO as TIO import Test.Hspec import Text.RawString.QQ import Text.Trifecta headerEx :: ByteString hea...
29358e28980349085fd89fd226150242a69794de79825bb80654ec7d97210c73
esl/erlang-web
e_annotation.erl
The contents of this file are subject to the Erlang Web Public License , Version 1.0 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the Erlang Web Public License along with this software . If not , it can be %% retrieved via the world...
null
https://raw.githubusercontent.com/esl/erlang-web/2e5c2c9725465fc5b522250c305a9d553b3b8243/lib/eptic-1.4.1/src/e_annotation.erl
erlang
compliance with the License. You should have received a copy of the retrieved via the world wide web at -consulting.com/. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. ---------------------------------...
The contents of this file are subject to the Erlang Web Public License , Version 1.0 , ( the " License " ) ; you may not use this file except in Erlang Web Public License along with this software . If not , it can be Software distributed under the License is distributed on an " AS IS " The Initial Developer o...
309734be0091faa4f5f54d73f38820335710f682e38e9be31fd3535b8a56266d
jimmyrcom/HTML5-Canvas-Old-School-RPG-Map-with-Erlang-Websockets-Chat
session_bin.erl
-module(session_bin). -export([session/1]). Copyright ( C ) 2010 ( www . JimmyR.com , Youtube : JimmyRcom , Gmail : JimmyRuska ) , under GPL 2.0 %This code can parse the PHP Session. For now, I'm just using it to see if the session exists %in order to authenticate a particular name. Authenticated names will show u...
null
https://raw.githubusercontent.com/jimmyrcom/HTML5-Canvas-Old-School-RPG-Map-with-Erlang-Websockets-Chat/1c68c63e51eea76d475ce39baf6da5c807d6dbe5/session_bin.erl
erlang
This code can parse the PHP Session. For now, I'm just using it to see if the session exists in order to authenticate a particular name. Authenticated names will show up in a different color, while guests can still set nicknames. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;...
-module(session_bin). -export([session/1]). Copyright ( C ) 2010 ( www . JimmyR.com , Youtube : JimmyRcom , Gmail : JimmyRuska ) , under GPL 2.0 This program 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...
607e85a5ce6a4dec2fc02a528895a2c8f5eb8dfb12d2f8e0e8022b808f3e24ae
cardmagic/lucash
inline.scm
Copyright ( c ) 1993 - 1999 by and . See file COPYING . ; Once we know that we want something to be inlined, the following things ; actually makes use of the fact. For procedures for which all ; arguments can be substituted unconditionally, we make a transform ; (a macro, really) that performs the substitution....
null
https://raw.githubusercontent.com/cardmagic/lucash/0452d410430d12140c14948f7f583624f819cdad/reference/scsh-0.6.6/scheme/opt/inline.scm
scheme
Once we know that we want something to be inlined, the following things actually makes use of the fact. For procedures for which all arguments can be substituted unconditionally, we make a transform (a macro, really) that performs the substitution. env ? This routine is obligated to return an S-expression. It's ...
Copyright ( c ) 1993 - 1999 by and . See file COPYING . (define (make-inline-transform node type package name) (let* ((free (find-node-usages node)) (env (package->environment package)) (qualified-free (map (lambda (name) (cons name (name->qualified name env))) free))) (let ((f...
48bcb5dfbb30622c9a6adf8439cf954fafe5c6b00f9eeca24add3387f61737fb
htmfilho/minimily
collection.clj
(ns minimily.inventory.model.collection (:require [hugsql.core :as hugsql] [minimily.utils.database :as db])) (hugsql/def-sqlvec-fns "minimily/inventory/model/sql/collection.sql") (def table :collection) (defn find-all [profile-id] (db/find-records (collection...
null
https://raw.githubusercontent.com/htmfilho/minimily/e29ef10156a831c99b25d13783e8d1a412a273c9/src/minimily/inventory/model/collection.clj
clojure
(ns minimily.inventory.model.collection (:require [hugsql.core :as hugsql] [minimily.utils.database :as db])) (hugsql/def-sqlvec-fns "minimily/inventory/model/sql/collection.sql") (def table :collection) (defn find-all [profile-id] (db/find-records (collection...
7ecada1857a857f0eca3adb5d276b63fccfe1dc4132e445119dcdaf8f3b9695e
ocaml-flambda/flambda-backend
code0.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-flambda/flambda-backend/9f7a286f9e37e160bb19f12e98427db735038240/middle_end/flambda2/terms/code0.mli
ocaml
************************************************************************ OCaml ...
, OCamlPro and , Copyright 2014 - -2020 Jane Street Group LLC the GNU Lesser General Public License version 2.1 , with the type 'function_params_and_body t val code_metadata : _ t -> Code_me...
a6f69aa38404f07e7a85c33ecff95b45bcebf08579f0880d28bc629a2fecd5c4
Viasat/halite
md_how_to.clj
Copyright ( c ) 2022 Viasat , Inc. Licensed under the MIT license (ns com.viasat.halite.doc.md-how-to (:require [clojure.string :as string] [com.viasat.halite.doc.run :as doc-run] [com.viasat.halite.doc.utils :as utils] [com.viasat.halite.propagate :as propagate] [...
null
https://raw.githubusercontent.com/Viasat/halite/1145fdf49b5148acb389dd5100059b0d2ef959e1/src/com/viasat/halite/doc/md_how_to.clj
clojure
; , but does n't handle fixed decimals
Copyright ( c ) 2022 Viasat , Inc. Licensed under the MIT license (ns com.viasat.halite.doc.md-how-to (:require [clojure.string :as string] [com.viasat.halite.doc.run :as doc-run] [com.viasat.halite.doc.utils :as utils] [com.viasat.halite.propagate :as propagate] [...
3c82e89455c2859f71b45dac8119a8777d6ee8469a5275aeb91479a4721b7045
iokasimov/pandora
Constant.hs
module Pandora.Paradigm.Primary.Functor.Constant where import Pandora.Pattern.Semigroupoid ((.)) import Pandora.Pattern.Category ((<--), (<---)) import Pandora.Pattern.Functor.Covariant (Covariant ((<-|-))) import Pandora.Pattern.Functor.Contravariant (Contravariant ((>-|-))) import Pandora.Pattern.Functor.Invariant (...
null
https://raw.githubusercontent.com/iokasimov/pandora/68662a508749f1cf02d0178679435a24f07dcaf2/Pandora/Paradigm/Primary/Functor/Constant.hs
haskell
), (<---)) f x x + y - x * y x /\ y invert x
module Pandora.Paradigm.Primary.Functor.Constant where import Pandora.Pattern.Semigroupoid ((.)) import Pandora.Pattern.Functor.Covariant (Covariant ((<-|-))) import Pandora.Pattern.Functor.Contravariant (Contravariant ((>-|-))) import Pandora.Pattern.Functor.Invariant (Invariant ((<!<))) import Pandora.Pattern.Object...
29a6e7be46e7c6a8c0d4dedef89dc4a1aee46372ac96c134ab27b83d39e59832
zero-one-group/geni
cookbook-12.clj
(ns geni.cookbook-12 (:require [clojure.java.io] [clojure.java.shell] [zero-one.geni.core :as g] [zero-one.geni.ml :as ml])) (load-file "docs/cookbook/cookbook-util.clj") Part 12 : Customer Segmentation with NMF Note : need to get this from Kaggle - registration required ;; e.g. -retail?select=onli...
null
https://raw.githubusercontent.com/zero-one-group/geni/4dbabf8315d85cc1526e04bca7e4cb7b75c21ac1/docs/cookbook/cookbook-12.clj
clojure
e.g. -retail?select=online_retail_II.xlsx root |-- invoice: string (nullable = true) |-- stock-code: string (nullable = true) |-- description: string (nullable = true) |-- quantity: integer (nullable = true) |-- invoice-date: string (nullable = true) |-- price: double (nullable = true) |-- customer-id: ...
(ns geni.cookbook-12 (:require [clojure.java.io] [clojure.java.shell] [zero-one.geni.core :as g] [zero-one.geni.ml :as ml])) (load-file "docs/cookbook/cookbook-util.clj") Part 12 : Customer Segmentation with NMF Note : need to get this from Kaggle - registration required (def invoices (g/read-csv...
c3ec1b4799b34084a4a7ffe1999bdcd0fd639e0d6c4bbcd8651065887ffcd404
FranklinChen/spreadsheet-haskell
SpreadsheetSpec.hs
module SpreadsheetSpec (main, spec) where import Spreadsheet import Test.Hspec main :: IO () main = hspec spec spec :: Spec spec = do describe "Spreadsheet" $ do it "handles dependency changes" $ do changeDependencies >>= (`shouldBe` (3, 102, 20)) it "handles dependencies of many types" $ do di...
null
https://raw.githubusercontent.com/FranklinChen/spreadsheet-haskell/6f3978b673aa0d82e3ec8c948d532f3d02b27b4c/test/SpreadsheetSpec.hs
haskell
| Example of a graph of cells. c = a + b | Example of propagating changes. a = b*b | Example of a graph of cells with different types. c = a + b | Example of propagating changes for cells with different types. a = "no"
module SpreadsheetSpec (main, spec) where import Spreadsheet import Test.Hspec main :: IO () main = hspec spec spec :: Spec spec = do describe "Spreadsheet" $ do it "handles dependency changes" $ do changeDependencies >>= (`shouldBe` (3, 102, 20)) it "handles dependencies of many types" $ do di...
dcd8c84ff03e9307b778fc7183640ba6ca879dff04e57305ca1b5298a4c11dd7
mirage/arp
arp.ml
* Copyright ( c ) 2010 - 2011 Anil Madhavapeddy < > * Copyright ( c ) 2016 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies ....
null
https://raw.githubusercontent.com/mirage/arp/7222488873ae6d54233480322cb2f92a8df312ba/mirage/arp.ml
ocaml
* Copyright ( c ) 2010 - 2011 Anil Madhavapeddy < > * Copyright ( c ) 2016 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies ....
d2abc91ac66aa590843f45ef98b69bb4edd4dd68c8d0576963efbea1ab267494
tweag/lagoon
LDAP.hs
Copyright 2020 Pfizer Inc. Licensed under the Apache License , Version 2.0 ( the " License " ) ; -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -2.0 -- Unless required by applicable law or agreed to in writing, software distributed under th...
null
https://raw.githubusercontent.com/tweag/lagoon/2ef0440db810f4f45dbed160b369daf41d92bfa4/server/src/Lagoon/Server/Auth/LDAP.hs
haskell
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permiss...
Copyright 2020 Pfizer Inc. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , module Lagoon.Server.Auth.LDAP (authProviderLDAP) where import Control.Exception import Data.Text (Text) import LDAP import Text.Mustache import...
4084c487d7b2c031ccf0702c4f7a6a75e2058be078f22469d7c6b05ed25c2b6e
froggey/Mezzano
serial.lisp
16550A UART driver (in-package :mezzano.supervisor) ;;; Serial registers. (defconstant +serial-RBR+ 0 "Receive buffer, R/O, DLAB=0.") (defconstant +serial-THR+ 0 "Transmitter holding, W/O, DLAB=0.") (defconstant +serial-IER+ 1 "Interrupt enable, R/W, DLAB=0.") (defconstant +serial-IIR+ 2 "Interrupt identification, ...
null
https://raw.githubusercontent.com/froggey/Mezzano/f0eeb2a3f032098b394e31e3dfd32800f8a51122/supervisor/serial.lisp
lisp
Serial registers. Interrupt enable bits. Interrupt identification bits. FIFO control bits. Line control bits. Line status bits. Low-level byte functions. Write byte. High-level character functions. These assume that whatever is on the other FIXME: Should write all the bytes to the buffer in one go. Other pro...
16550A UART driver (in-package :mezzano.supervisor) (defconstant +serial-RBR+ 0 "Receive buffer, R/O, DLAB=0.") (defconstant +serial-THR+ 0 "Transmitter holding, W/O, DLAB=0.") (defconstant +serial-IER+ 1 "Interrupt enable, R/W, DLAB=0.") (defconstant +serial-IIR+ 2 "Interrupt identification, R/O.") (defconstant +s...
31758f6af6d358bc042c6b94247f801b31db9d2fc0c3afdc6c408a35b1dd455b
bozsahin/ccglab-database
pftl-tr.ccg.lisp
(defparameter *ccg-grammar* '(((KEY 1) (PHON WALL) (MORPH N) (SYN ((BCAT N) (FEATS NIL))) (SEM (LAM X ("WALL" X))) (PARAM 1.0)) ((KEY 2) (PHON COMPANY) (MORPH N) (SYN ((BCAT N) (FEATS NIL))) (SEM (LAM X ("COMPANY" X))) (PARAM 1.0)) ((KEY 3) (PHON CEO) (MORPH N) (SYN ((BCAT N) (FEATS NIL))) (SEM (LAM X ("CE...
null
https://raw.githubusercontent.com/bozsahin/ccglab-database/f24215aaa4ac8102f6d76c9c0ec5bd58a29743d7/cl-db3/pftl-tr.ccg.lisp
lisp
(defparameter *ccg-grammar* '(((KEY 1) (PHON WALL) (MORPH N) (SYN ((BCAT N) (FEATS NIL))) (SEM (LAM X ("WALL" X))) (PARAM 1.0)) ((KEY 2) (PHON COMPANY) (MORPH N) (SYN ((BCAT N) (FEATS NIL))) (SEM (LAM X ("COMPANY" X))) (PARAM 1.0)) ((KEY 3) (PHON CEO) (MORPH N) (SYN ((BCAT N) (FEATS NIL))) (SEM (LAM X ("CE...
1a25fcfa7dc6952c31a54e3dce337cdb76cb2d64ef537973af611dc6a4a4cc91
thheller/shadow-cljs
eval_support.cljs
(ns shadow.remote.runtime.eval-support (:require [shadow.remote.runtime.api :as p] [shadow.remote.runtime.shared :as shared] [shadow.remote.runtime.obj-support :as obj-support] )) (def ^:dynamic obj-support-inst nil) (defn get-ref [oid] (when-not obj-support-inst (throw (ex-info "obj-support n...
null
https://raw.githubusercontent.com/thheller/shadow-cljs/ba0a02aec050c6bc8db1932916009400f99d3cce/src/main/shadow/remote/runtime/eval_support.cljs
clojure
can't use binding because this has to go async required for $o in the UI to work, would be good to have a cleaner API for this cleanup (js/console.log "cljs-eval" info msg) don't want to send multiple results in case code contained multiple forms
(ns shadow.remote.runtime.eval-support (:require [shadow.remote.runtime.api :as p] [shadow.remote.runtime.shared :as shared] [shadow.remote.runtime.obj-support :as obj-support] )) (def ^:dynamic obj-support-inst nil) (defn get-ref [oid] (when-not obj-support-inst (throw (ex-info "obj-support n...
525be6d3eb00aecfa57fbe8857339f94b034664ab699090ccc81dc5fad865b6e
may-liu/qtalk
http_get_rbts_sub.erl
%% Feel free to use, reuse and abuse the code in this file. -module(http_get_rbts_sub). -export([init/3]). -export([handle/2]). -export([terminate/3]). -include("logger.hrl"). -include("http_req.hrl"). -include("ejb_http_server.hrl"). init(_Transport, Req, []) -> {ok, Req, undefined}. handle(Req, State) -> {Met...
null
https://raw.githubusercontent.com/may-liu/qtalk/f5431e5a7123975e9656e7ab239e674ce33713cd/qtalk_opensource/scripts/ejb_http_server/src/http_get_rbts_sub.erl
erlang
Feel free to use, reuse and abuse the code in this file.
-module(http_get_rbts_sub). -export([init/3]). -export([handle/2]). -export([terminate/3]). -include("logger.hrl"). -include("http_req.hrl"). -include("ejb_http_server.hrl"). init(_Transport, Req, []) -> {ok, Req, undefined}. handle(Req, State) -> {Method, _} = cowboy_req:method(Req), catch ejb_monitor:moni...
4a5621239c1749b11a034f0ba5641cba6da76c09456916715942406e4c9cd378
Sergeileduc/Edit-comics-GIMP
script-clean-bulle-degradee.scm
(define (script-fu-clean-degrade image drawable) ;Prep (gimp-context-push) (gimp-image-undo-group-start image) (gimp-context-set-sample-threshold-int 15) (gimp-image-get-selection image) (let* ( (drawable (car (gimp-image-active-drawable image))) ) ;Test selection vide (if (= (car (gimp-selection-is-empt...
null
https://raw.githubusercontent.com/Sergeileduc/Edit-comics-GIMP/0bc1a89784fadbaf2118251dccb297ff76d0712e/scripts/script-clean-bulle-degradee.scm
scheme
Prep Test selection vide end if couleur end if selection utilisateur vide end let
(define (script-fu-clean-degrade image drawable) (gimp-context-push) (gimp-image-undo-group-start image) (gimp-context-set-sample-threshold-int 15) (gimp-image-get-selection image) (let* ( (drawable (car (gimp-image-active-drawable image))) ) (if (= (car (gimp-selection-is-empty image)) FALSE) (begin Sel...
4f22eab12fbec4fbebdcb8aed6602f42b282340d710f6dd1248ff629d3f40750
oker1/websocket-chat
http_handler.erl
-module(http_handler). -behaviour(cowboy_http_handler). -export([init/3, handle/2, terminate/3]). init({_Any, http}, Req, State) -> {ok, Req, State}. handle(Req, {port, Port} = State) -> {ok, Req2} = cowboy_req:reply( 200, [{<<"Content-Type">>, <<"text/html">>}], html(Port), Req ), {ok, Req2, State}. t...
null
https://raw.githubusercontent.com/oker1/websocket-chat/8dfbd7357b2e37615d1d055f8cbb70777e5d82c8/src/http_handler.erl
erlang
-module(http_handler). -behaviour(cowboy_http_handler). -export([init/3, handle/2, terminate/3]). init({_Any, http}, Req, State) -> {ok, Req, State}. handle(Req, {port, Port} = State) -> {ok, Req2} = cowboy_req:reply( 200, [{<<"Content-Type">>, <<"text/html">>}], html(Port), Req ), {ok, Req2, State}. t...
73dc2dfe02cc73856989865010533805274d4deba8189b85d287bf0451c221f0
pirapira/coq2rust
term.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/checker/term.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Sorts. ***************************...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This module instantiates th...
6855533a9ac1576800af721257721f88609668abf530e7e162a1c0d4e65977b9
inhabitedtype/ocaml-aws
batchStopUpdateAction.mli
open Types type input = BatchStopUpdateActionMessage.t type output = UpdateActionResultsMessage.t type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
null
https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/b6d5554c5d201202b5de8d0b0253871f7b66dab6/libraries/elasticache/lib/batchStopUpdateAction.mli
ocaml
open Types type input = BatchStopUpdateActionMessage.t type output = UpdateActionResultsMessage.t type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
2a0a80f67a518658d9896fda799445d953ec9ff0093c0790b4c2be5a67a4ec13
ivanjovanovic/sicp
3.1.scm
(load "../helpers.scm") For the first time we introduce possibility that one procedure returns ; different result when called (define balance 100) (define (withdraw amount) (if (> balance amount) (begin (set! balance (- balance amount)) balance) ; returns current state of balance "Insufficien...
null
https://raw.githubusercontent.com/ivanjovanovic/sicp/a3bfbae0a0bda414b042e16bbb39bf39cd3c38f8/3.1/3.1.scm
scheme
different result when called returns current state of balance "Insufficient funds" here we use (set! <name> <new-value>) to set new value of a variable Here balance is kind of exposed to the public and other procedures could influence it without really wanting to do that. We can hide it internally to the procedu...
(load "../helpers.scm") For the first time we introduce possibility that one procedure returns (define balance 100) (define (withdraw amount) (if (> balance amount) (begin (set! balance (- balance amount)) "Insufficient funds")) 80 60 Here for the first time we build computational object...
3d54d08cea47c06bd6ff95b7713ff8cdeef95b9c83fca2929c01230b8bf241af
dgiot/dgiot
dgiot_utils.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 2021 DGIOT Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy...
null
https://raw.githubusercontent.com/dgiot/dgiot/a6b816a094b1c9bd024ce40b8142375a0f0289d8/apps/dgiot/src/utils/dgiot_utils.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2020 - 2021 DGIOT Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(dgiot_utils). -author("johnliu"). -include("dgiot.hrl"). -include_lib("dgiot/include/l...
1673fc6b0c7c28b9972b8fca15a054d0513e20b73d9a32cda8394e2ec022bc27
sharetribe/dumpr
user.clj
(ns user (:require [reloaded.repl :refer [system init start stop go]] [system :as system :refer [LibConf]] [dumpr.core :as dumpr] [clojure.core.async :as async :refer [<! go-loop >! timeout]] [clojure.tools.logging :as log] [io.aviso.config :as config] ...
null
https://raw.githubusercontent.com/sharetribe/dumpr/c7d23ef44f175b467e39811b1ba2791ff54b64c9/dev/user.clj
clojure
(reloaded.repl/set-init! #(system/only-stream (config) {:file "Tamma-bin.000012" :position 0}))
(ns user (:require [reloaded.repl :refer [system init start stop go]] [system :as system :refer [LibConf]] [dumpr.core :as dumpr] [clojure.core.async :as async :refer [<! go-loop >! timeout]] [clojure.tools.logging :as log] [io.aviso.config :as config] ...
11c9a86cb6ad06c345c6fcdff4c3e2f669329c719684dadd165d9e14a698242c
FundingCircle/md2c8e
test_utils.clj
(ns md2c8e.test-utils (:require [clojure.java.io :as io :refer [file]] [clojure.string :as str :refer [ends-with?]] [md2c8e.confluence :as c8e] [md2c8e.markdown :as md])) (defn page [title ^String fp & children] {::c8e/page-id nil ::c8e/title title ::md/source {::md/fp (...
null
https://raw.githubusercontent.com/FundingCircle/md2c8e/6c93eba8676c8c80af371a44c173704fe0461232/test/md2c8e/test_utils.clj
clojure
(ns md2c8e.test-utils (:require [clojure.java.io :as io :refer [file]] [clojure.string :as str :refer [ends-with?]] [md2c8e.confluence :as c8e] [md2c8e.markdown :as md])) (defn page [title ^String fp & children] {::c8e/page-id nil ::c8e/title title ::md/source {::md/fp (...
e4f7d91fee420c50f567b7b05d190fff60a560a03fe3a4464907d829150c5907
jship/opentelemetry-haskell
Internal.hs
# LANGUAGE BlockArguments # # LANGUAGE DataKinds # # LANGUAGE DerivingVia # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # {-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANG...
null
https://raw.githubusercontent.com/jship/opentelemetry-haskell/468b7df49226bb6a478180300dab8d1a214c213f/otel-api-common/library/OTel/API/Common/Internal.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # # LANGUAGE StrictData # * Disclaimer $disclaimer * General * Attributes ^ nanoseconds | Equivalent to 'mapWithKeyAttrs' but allows for changing both the type and value of each attribute rather than just the value of the attribute. | Conve...
# LANGUAGE BlockArguments # # LANGUAGE DataKinds # # LANGUAGE DerivingVia # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LA...
33e39a80a59ad152520e2710d5709ba16da4bd91ff3e5c58407de84595d0f0b0
Atry/Control.Dsl
PolyCont.hs
# LANGUAGE FlexibleInstances # # LANGUAGE RebindableSyntax # # LANGUAGE MultiParamTypeClasses # module Control.Dsl.PolyCont where import Prelude hiding ( (>>) , (>>=) , return ...
null
https://raw.githubusercontent.com/Atry/Control.Dsl/f19da265c8ea537af95e448e6107fa503d5363c2/src/Control/Dsl/PolyCont.hs
haskell
| A use case of an __ad-hoc polymorphic delimited continuation__. Note that a 'PolyCont' is not a __polymorphic delimited continuation__, since a 'PolyCont' does not support answer type modification.
# LANGUAGE FlexibleInstances # # LANGUAGE RebindableSyntax # # LANGUAGE MultiParamTypeClasses # module Control.Dsl.PolyCont where import Prelude hiding ( (>>) , (>>=) , return ...
c1830c45ce42f0cc9c6f290a3b6fc9f8d0351506a1315e9c8eaab53de59c7652
input-output-hk/plutus
Contexts.hs
-- editorconfig-checker-disable-file {-# LANGUAGE DerivingVia #-} {-# LANGUAGE NamedFieldPuns #-} # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # {-# LANGUAGE ViewPatterns #-} # OPTIONS_GHC -Wno - simplifiable - class - constraints # # OPTIONS_GHC -fno - ...
null
https://raw.githubusercontent.com/input-output-hk/plutus/c3918d6027a9a34b6f72a6e4c7bf2e5350e6467e/plutus-ledger-api/src/PlutusLedgerApi/V1/Contexts.hs
haskell
editorconfig-checker-disable-file # LANGUAGE DerivingVia # # LANGUAGE NamedFieldPuns # # LANGUAGE OverloadedStrings # # LANGUAGE ViewPatterns # * Pending transactions and related types * Validator functions | An input of a pending transaction. | Purpose of the script that is currently running | A pe...
# LANGUAGE NoImplicitPrelude # # LANGUAGE TemplateHaskell # # OPTIONS_GHC -Wno - simplifiable - class - constraints # # OPTIONS_GHC -fno - specialise # # OPTIONS_GHC -fno - omit - interface - pragmas # module PlutusLedgerApi.V1.Contexts ( TxInfo(..) , ScriptContext(..) , ScriptPurpose(..) , T...
dac503dec27ac8e6439bf3ef6d4276cb818b0aced6c3c4a2cd7923097ff4c197
xapi-project/xen-api
test_psr.ml
* Copyright ( C ) Citrix Systems 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 ; version 2.1 only . with the special * exception on linking described in file LI...
null
https://raw.githubusercontent.com/xapi-project/xen-api/e984d34bd9ff60d7224a841270db0fe1dfe42e7a/ocaml/tests/test_psr.ml
ocaml
we could also test with a fistpoint 'During' the computation, but this adds even more complexity to the test we place fistpoints either just before executing some action or just after in the real implementation, the checkpoint and pool secret backups are stored on the master, so we model that here the t...
* Copyright ( C ) Citrix Systems 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 ; version 2.1 only . with the special * exception on linking described in file LI...
474d175d4ef8de53fd2a1bff9afeb3c2e1cbda65a8e66839e3d97384080dc17b
BranchTaken/Hemlock
test_hash_fold_empty.ml
open! Basis.Rudiments open! Basis open Option let test () = let hash_empty state = begin state |> hash_fold Unit.hash_fold None end in let e1 = Hash.State.empty |> hash_empty in let e2 = Hash.State.empty |> hash_empty |> hash_empty in assert U128.((Hash.t_of_state e1) <> (Hash...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/a518d85876a620f65da2497ac9e34323e205fbc0/bootstrap/test/basis/option/test_hash_fold_empty.ml
ocaml
open! Basis.Rudiments open! Basis open Option let test () = let hash_empty state = begin state |> hash_fold Unit.hash_fold None end in let e1 = Hash.State.empty |> hash_empty in let e2 = Hash.State.empty |> hash_empty |> hash_empty in assert U128.((Hash.t_of_state e1) <> (Hash...
8a158a0fab5abf30194d5f520ffc5886df3503658f4847d41ba0583fc63b8726
nikodemus/SBCL
octets.lisp
;;;; code for string to octet conversion This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software is in the public domain ...
null
https://raw.githubusercontent.com/nikodemus/SBCL/3c11847d1e12db89b24a7887b18a137c45ed4661/src/code/octets.lisp
lisp
code for string to octet conversion more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. don't like the idea of trying to do CODE-CHAR #x<big>. Is that a justified fear? Can we arrange that it...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the FIXME : The stuff is currently # ! + sb - unicode , because I a decoding error error ? Or should we just give up on no...
c6a1cd21d04be10f76db9c37e3fd56c1edef0490839d18591dba002bda48f8aa
tfausak/lackey
Lackey.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} module Lackey ( rubyForAPI, ) where import qualified Data.Char as Char import Data.Function ((&)) import qualified Data.Maybe as Maybe import qualified Data.Proxy as Proxy import qualified Data.Text as Text import qualified Data.Text.Encoding as Tex...
null
https://raw.githubusercontent.com/tfausak/lackey/9fc6bfc9cca0a48c18841749ebd608a0ab91441e/source/library/Lackey.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE FlexibleContexts # module Lackey ( rubyForAPI, ) where import qualified Data.Char as Char import Data.Function ((&)) import qualified Data.Maybe as Maybe import qualified Data.Proxy as Proxy import qualified Data.Text as Text import qualified Data.Text.Encoding as Text import qualified Servant.Foreign ...
54e4300a422d8f5af41a5452f3af35ba1d3a1fb35e7369f9fbd11acfffbf3c4c
kototama/picobit
test-neg.scm
(display (- 1))
null
https://raw.githubusercontent.com/kototama/picobit/8bdfc092266803bc6b1151177a7e668c9b050bea/tests/test-neg.scm
scheme
(display (- 1))
8f48cc9fb0b4cb0437cc11f012b0b81aa577d98be8f4a698332f1c437de1f9b5
merijn/Belewitte
SQLiteExts.hs
# LANGUAGE CApiFFI # {-# LANGUAGE OverloadedStrings #-} module SQLiteExts ( registerSqlFunctions , wrapSqliteExceptions ) where import Control.Monad ((>=>), when) import qualified Control.Monad.Catch as Catch import Control.Monad.IO.Class (MonadIO(liftIO)) import Control.Monad.Logger (MonadLogger) import q...
null
https://raw.githubusercontent.com/merijn/Belewitte/e1d9d5b790b56b853e06e6b64ca13298b9d237fb/benchmark-analysis/ffi-core/SQLiteExts.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE CApiFFI # module SQLiteExts ( registerSqlFunctions , wrapSqliteExceptions ) where import Control.Monad ((>=>), when) import qualified Control.Monad.Catch as Catch import Control.Monad.IO.Class (MonadIO(liftIO)) import Control.Monad.Logger (MonadLogger) import qualified Data.ByteString as BS impo...
567596a72a02136e1355f40ec0e6f3fec9af2e9196c69e1915780be76be18bec
tokenrove/imago
convert.lisp
;;; IMAGO library ;;; Image format conversions ;;; Copyright ( C ) 2004 - 2005 ( ) ;;; ;;; The authors grant you the rights to distribute ;;; and use this software as governed by the terms of the Lisp Lesser GNU Public License ;;; (), ;;; known as the LLGPL. (in-package :imago) (defgeneric convert-to-rgb (...
null
https://raw.githubusercontent.com/tokenrove/imago/b4befb2bc9b6843be153e6efd2ab52fb21103302/src/convert.lisp
lisp
IMAGO library Image format conversions The authors grant you the rights to distribute and use this software as governed by the terms (), known as the LLGPL.
Copyright ( C ) 2004 - 2005 ( ) of the Lisp Lesser GNU Public License (in-package :imago) (defgeneric convert-to-rgb (image) (:method ((image image)) (error 'not-implemented)) (:method ((image rgb-image)) image)) (defgeneric convert-to-grayscale (image) (:method ((image image)) (error 'n...
7940b8f2e17043df7c1b9f99a6a2fe420291021db0d901f7b893b2083278272e
qiao/sicp-solutions
1.35.scm
; x = 1 + 1 / x x ^ 2 = x + 1 x ^ 2 - x - 1 = 0 x = ( 1 + sqrt(5 ) ) / 2 (define tolerance 0.00001) (define (fixed-point f first-guess) (define (close-enough? v1 v2) (< (abs (- v1 v2)) tolerance)) (define (try guess) (let ((next (f guess))) (if (close-enough? guess next) next ...
null
https://raw.githubusercontent.com/qiao/sicp-solutions/a2fe069ba6909710a0867bdb705b2e58b2a281af/chapter1/1.35.scm
scheme
x = 1 + 1 / x
x ^ 2 = x + 1 x ^ 2 - x - 1 = 0 x = ( 1 + sqrt(5 ) ) / 2 (define tolerance 0.00001) (define (fixed-point f first-guess) (define (close-enough? v1 v2) (< (abs (- v1 v2)) tolerance)) (define (try guess) (let ((next (f guess))) (if (close-enough? guess next) next (try next)))) ...
3569cddf149ea7263210dbf045a7a6a3e6d7b9b373625bbbf52471696d64da36
spurious/sagittarius-scheme-mirror
x.509.scm
(import (rnrs) (rfc x.509) (except (crypto) verify) ;; avoid name confiliction (math) (rfc base64) (srfi :64 testing) (srfi :19 time)) (define private-key "MIICWwIBAAKBgQDRhGF7X4A0ZVlEg594WmODVVUIiiPQs04aLmvfg8SborHss5gQ\r\n\ Xu0aIdUT6nb5rTh5hD2yfpF2WIW6M8z0WxRhwicgXwi80H1aLPf6lEPPLvN29EhQ\r\n\ NjBpkFkAJ...
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/test/tests/rfc/x.509.scm
scheme
avoid name confiliction the certificate is from for sign basic information check invalid hash type try other signature and hash algorithm
(import (rnrs) (rfc x.509) (math) (rfc base64) (srfi :64 testing) (srfi :19 time)) (define private-key "MIICWwIBAAKBgQDRhGF7X4A0ZVlEg594WmODVVUIiiPQs04aLmvfg8SborHss5gQ\r\n\ Xu0aIdUT6nb5rTh5hD2yfpF2WIW6M8z0WxRhwicgXwi80H1aLPf6lEPPLvN29EhQ\r\n\ NjBpkFkAJUbS8uuhJEeKw0cE49g80eBBF4BCqSL6PFQbP9/rByxdxEoAIQIDAQ...
eaedf9f93006f2cf1e29357d79b6f715a697b97e9999fa202c9fcf51cb7627c2
NorfairKing/the-notes
Intro.hs
module Probability.Intro where import Notes import Sets.Basics.Terms import Probability.Intro.Macro import Probability.Intro.Terms intro :: Note intro = note "intro" introBody introBody :: Note introBody = do todo "Remove the entire intro? this is not very mathematical.....
null
https://raw.githubusercontent.com/NorfairKing/the-notes/ff9551b05ec3432d21dd56d43536251bf337be04/src/Probability/Intro.hs
haskell
module Probability.Intro where import Notes import Sets.Basics.Terms import Probability.Intro.Macro import Probability.Intro.Terms intro :: Note intro = note "intro" introBody introBody :: Note introBody = do todo "Remove the entire intro? this is not very mathematical.....
660e7468ddd3cf2242525c2b3db3432218ddcfa77cd2cce81d003fede1e815a9
pjstadig/humane-test-output
humane_test_output.cljs
(ns pjstadig.humane-test-output (:require [cljs.test :refer-macros [run-all-tests run-tests]] [cljs.pprint :as pp] [pjstadig.util :as util])) (def pprint-map (get-method pp/simple-dispatch :map)) (defmethod pp/simple-dispatch :map [amap] (if (record? amap) (util/pprint-record amap) ...
null
https://raw.githubusercontent.com/pjstadig/humane-test-output/7c4c868aa9d7424248761941cd736ac0a5f4a75b/src/pjstadig/humane_test_output.cljs
clojure
(ns pjstadig.humane-test-output (:require [cljs.test :refer-macros [run-all-tests run-tests]] [cljs.pprint :as pp] [pjstadig.util :as util])) (def pprint-map (get-method pp/simple-dispatch :map)) (defmethod pp/simple-dispatch :map [amap] (if (record? amap) (util/pprint-record amap) ...
f7e0f2066c5d9b82ea466e6f5c204d0edb28082ba5bcc6302798b8fea3ddb466
mirage/irmin
inode_intf.ml
* Copyright ( c ) 2018 - 2022 Tarides < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS...
null
https://raw.githubusercontent.com/mirage/irmin/0a6fbbeb1a4d132ef25a09a41c904cc7942bae5b/src/irmin-pack/unix/inode_intf.ml
ocaml
val reload : 'a t -> unit
* Copyright ( c ) 2018 - 2022 Tarides < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS...
7a90629de1488bd89b54617dcbf78d64ceac6ddc93b9b548eccef59c6bd5b8b4
dalaing/little-languages
Gen.hs
| Copyright : ( c ) , 2016 License : : Stability : experimental Portability : non - portable Generators for types of the B language . Copyright : (c) Dave Laing, 2016 License : BSD3 Maintainer : Stability : experimental Portability : non-portable Generators for types of the B ...
null
https://raw.githubusercontent.com/dalaing/little-languages/9f089f646a5344b8f7178700455a36a755d29b1f/code/b/src/Type/Gen.hs
haskell
from 'QuickCheck' local | Generates types of the B language. | Shrinks types of the B language. | A newtype wrapper for generating types of the B language.
| Copyright : ( c ) , 2016 License : : Stability : experimental Portability : non - portable Generators for types of the B language . Copyright : (c) Dave Laing, 2016 License : BSD3 Maintainer : Stability : experimental Portability : non-portable Generators for types of the B ...
40914615907c27113ee6cf08ed3fc84668b2740d518df6cb8d0ef38c59805d6e
ruricolist/FXML
encodings-data.lisp
(in-package :fxml.runes-encoding) (progn (add-name :us-ascii "ANSI_X3.4-1968") (add-name :us-ascii "iso-ir-6") (add-name :us-ascii "ANSI_X3.4-1986") (add-name :us-ascii "ISO_646.irv:1991") (add-name :us-ascii "ASCII") (add-name :us-ascii "ISO646-US") (add-name :us-ascii "US-ASCII") (add-name :us...
null
https://raw.githubusercontent.com/ruricolist/FXML/a0e73bb48ef03adea94a55986cc27f522074c8e1/runes/encodings-data.lisp
lisp
#o01x #o03x #o05x #o06x #o07x #o10x #o11x #o12x #o13x #o15x #o17x #o20x #o21x #o22x #o23x #o24x #o25x #o26x #o27x #o31x #o32x #o33x #o34x #o35x #o36x #o37x #o01x #o03x #o05x #o06x #o07x #o10x #o11x #o12x #o13x #o15x #o17x #o20x #o21x #o22x ...
(in-package :fxml.runes-encoding) (progn (add-name :us-ascii "ANSI_X3.4-1968") (add-name :us-ascii "iso-ir-6") (add-name :us-ascii "ANSI_X3.4-1986") (add-name :us-ascii "ISO_646.irv:1991") (add-name :us-ascii "ASCII") (add-name :us-ascii "ISO646-US") (add-name :us-ascii "US-ASCII") (add-name :us...
07c58ff4c779a3fb464b46d0d9f99e230ffd12e3f7d94463c0e98ccd18fc2548
MinaProtocol/mina
genesis_ledger_from_tsv.ml
genesis_ledger_from_tsv.ml -- create JSON - format genesis ledger from tab - separated - value data columns in spreadsheet : Wallet Address ( Public Key)|Amount ( MINA)|Initial Minimum Balance|(MINA ) ( ( MINA)|Unlock Frequency ( 0 : per slot , 1 : per month)|Unlock Amount ( MINA)|Delegate ( Public Key ...
null
https://raw.githubusercontent.com/MinaProtocol/mina/34961ab38efc5608c41e384489644948cad815a4/src/app/genesis_ledger_from_tsv/genesis_ledger_from_tsv.ml
ocaml
populated during validation pass populated during validation pass for each delegate that doesn't have a corresponding account, generate an account if there's a fractional slot, wait until next slot by rounding up 0 or empty string denotes "no delegation" should not occur, we've already validated the r...
genesis_ledger_from_tsv.ml -- create JSON - format genesis ledger from tab - separated - value data columns in spreadsheet : Wallet Address ( Public Key)|Amount ( MINA)|Initial Minimum Balance|(MINA ) ( ( MINA)|Unlock Frequency ( 0 : per slot , 1 : per month)|Unlock Amount ( MINA)|Delegate ( Public Key ...
dcfa988a04f06e2333cf1a1472bbbecab1b1456e09f3b97a0baa3ca7cdf77e38
zalky/reflet
impl.cljs
(ns reflet.debug.ui.impl (:require [cinch.core :as util] [clojure.set :as set] [dbscan-clj.core :as c] [reagent.ratom :as r] [reflet.config :as config] [reflet.core :as f] [reflet.db :as db] [reflet.debug :as d] [reflet.fs...
null
https://raw.githubusercontent.com/zalky/reflet/fe88f7fd7d761dfa40af0e8f83d7f390e5a914b6/src/clojure/reflet/debug/ui/impl.cljs
clojure
Dragging Independent z-index tracking is required for marks and panels so that all marks are always below all panels. Events and queries for border width visual results when quantizing element height, use a quantization algorithm that dynamically accounts for content borders and padding. Do not clean up after ...
(ns reflet.debug.ui.impl (:require [cinch.core :as util] [clojure.set :as set] [dbscan-clj.core :as c] [reagent.ratom :as r] [reflet.config :as config] [reflet.core :as f] [reflet.db :as db] [reflet.debug :as d] [reflet.fs...
f5f1edaa030b6c155520c13519f357fc6ddfcd0b267f6469cc82b778c9d06d60
nikita-volkov/rebase
Internal.hs
module Rebase.Data.ByteString.Lazy.Internal ( module Data.ByteString.Lazy.Internal ) where import Data.ByteString.Lazy.Internal
null
https://raw.githubusercontent.com/nikita-volkov/rebase/7c77a0443e80bdffd4488a4239628177cac0761b/library/Rebase/Data/ByteString/Lazy/Internal.hs
haskell
module Rebase.Data.ByteString.Lazy.Internal ( module Data.ByteString.Lazy.Internal ) where import Data.ByteString.Lazy.Internal
528887bd8380a587a30046118cc859c2d30cbd3b4eb13b3fa54953e5d74a0ec2
Datomic/mbrainz-importer
importer.clj
Copyright ( c ) Cognitect , Inc. ;; All rights reserved. (ns datomic.mbrainz.importer (:require [clojure.core.async :refer (<! <!! >!! chan go promise-chan)] [clojure.edn :as edn] [clojure.java.io :as io] [clojure.pprint :as pp] [clojure.spec.alpha :as s] [clojure.string :as str] [cognitect.an...
null
https://raw.githubusercontent.com/Datomic/mbrainz-importer/420edd6c2d07ce9edf48e9b31f047146e6f3c598/src/datomic/mbrainz/importer.clj
clojure
All rights reserved. data and schema mbrainz transducers and wiring group tracks by medium until close API
Copyright ( c ) Cognitect , Inc. (ns datomic.mbrainz.importer (:require [clojure.core.async :refer (<! <!! >!! chan go promise-chan)] [clojure.edn :as edn] [clojure.java.io :as io] [clojure.pprint :as pp] [clojure.spec.alpha :as s] [clojure.string :as str] [cognitect.anomalies :as anom] [co...
7ded1f708291d5aaad8b86bfed93fd1ed8a240e74f72131f2f591e0b82c81fb3
sru-systems/protobuf-simple
BytesOptMsg.hs
-- Generated by protobuf-simple. DO NOT EDIT! module Types.BytesOptMsg where import Control.Applicative ((<$>)) import Prelude () import qualified Data.ProtoBufInt as PB newtype BytesOptMsg = BytesOptMsg { value :: PB.Maybe PB.ByteString } deriving (PB.Show, PB.Eq, PB.Ord) instance PB.Default BytesOptMsg where ...
null
https://raw.githubusercontent.com/sru-systems/protobuf-simple/ee0f26b6a8588ed9f105bc9ee72c38943133ed4d/test/Types/BytesOptMsg.hs
haskell
Generated by protobuf-simple. DO NOT EDIT!
module Types.BytesOptMsg where import Control.Applicative ((<$>)) import Prelude () import qualified Data.ProtoBufInt as PB newtype BytesOptMsg = BytesOptMsg { value :: PB.Maybe PB.ByteString } deriving (PB.Show, PB.Eq, PB.Ord) instance PB.Default BytesOptMsg where defaultVal = BytesOptMsg { value = PB.def...
48665bc1256bdae9ba24c36ad201ce2d33f5b095f3893e1d11f4ff2baa83d769
bcc32/advent-of-code
main.ml
open! Core open! Async open! Import module Food = struct type t = { ingredients : string list ; known_allergens : string list } [@@deriving fields, sexp_of] end module Input = struct open! Advent_of_code_input_helpers type t = Food.t list [@@deriving sexp_of] let parse input : t = input ...
null
https://raw.githubusercontent.com/bcc32/advent-of-code/86a9387c3d6be2afe07d2657a0607749217b1b77/2020/day_21/main.ml
ocaml
Map allergen name to lists of set of ingredients in foods in which allergen appears.
open! Core open! Async open! Import module Food = struct type t = { ingredients : string list ; known_allergens : string list } [@@deriving fields, sexp_of] end module Input = struct open! Advent_of_code_input_helpers type t = Food.t list [@@deriving sexp_of] let parse input : t = input ...
2f1fc7e007cf7a53c361f8c2f6aa0e06564a6541281f208250bcc18139eb422e
tfausak/rattletrap
Float.hs
module Rattletrap.Type.Attribute.Float where import qualified Rattletrap.BitGet as BitGet import qualified Rattletrap.BitPut as BitPut import qualified Rattletrap.Schema as Schema import qualified Rattletrap.Type.F32 as F32 import qualified Rattletrap.Utility.Json as Json import Prelude hiding (Float) newtype Float =...
null
https://raw.githubusercontent.com/tfausak/rattletrap/cc6d6aba923d840f23de7673cab9a043096d3099/src/lib/Rattletrap/Type/Attribute/Float.hs
haskell
module Rattletrap.Type.Attribute.Float where import qualified Rattletrap.BitGet as BitGet import qualified Rattletrap.BitPut as BitPut import qualified Rattletrap.Schema as Schema import qualified Rattletrap.Type.F32 as F32 import qualified Rattletrap.Utility.Json as Json import Prelude hiding (Float) newtype Float =...
386fc1aa9a568ae00c264222179c19299579115fc58d9be06585f86b8d8f3724
karamellpelle/grid
Sound.hs
grid is a game written in Haskell Copyright ( C ) 2018 -- -- This file is part of grid. -- -- grid is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or -- (at your optio...
null
https://raw.githubusercontent.com/karamellpelle/grid/56729e63ed6404fd6cfd6d11e73fa358f03c386f/source/Game/LevelPuzzle/Output/Fancy/Sound.hs
haskell
This file is part of grid. grid is free software: you can redistribute it and/or modify (at your option) any later version. grid is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GN...
grid is a game written in Haskell Copyright ( C ) 2018 it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License module Game.LevelPuzzle.Output.Fancy.Sound ( ...
ffe947b78d44e454ebf1b126d183307d5391522643c08ba1528d4a2a74455f62
Vaguery/klapaucius
vector_test.clj
(ns push.instructions.standard.vector_test (:use midje.sweet) (:use [push.util.test-helpers]) (:require [push.interpreter.core :as i]) (:require [push.type.core :as t]) (:use [push.type.item.vector]) ) (fact "standard-vector-type knows some instructions" (keys (:instructions standard-vector-type)) => ...
null
https://raw.githubusercontent.com/Vaguery/klapaucius/17b55eb76feaa520a85d4df93597cccffe6bdba4/test/push/instructions/standard/vector_test.clj
clojure
NOTE! NOTE nil NOTE nil NOTE not nil! NOTE behavior! NOTE empty
(ns push.instructions.standard.vector_test (:use midje.sweet) (:use [push.util.test-helpers]) (:require [push.interpreter.core :as i]) (:require [push.type.core :as t]) (:use [push.type.item.vector]) ) (fact "standard-vector-type knows some instructions" (keys (:instructions standard-vector-type)) => ...
dfc63e91a02886ee174822595dd55b1968901348bec0f4cbd2d8c8504058bdef
lpeterse/haskell-ssh
TermInfo.hs
module Network.SSH.TermInfo where import Network.SSH.Message | The ` TermInfo ` describes the client 's terminal settings if it requested a pty . -- -- NOTE: This will follow in a future release. You may access the constructor -- through the `Network.SSH.Internal` module, but should not rely on it yet. data Te...
null
https://raw.githubusercontent.com/lpeterse/haskell-ssh/d1a614b6bf30c4932ee5a66efcae6e71680b4819/src/hssh-internal/Network/SSH/TermInfo.hs
haskell
NOTE: This will follow in a future release. You may access the constructor through the `Network.SSH.Internal` module, but should not rely on it yet.
module Network.SSH.TermInfo where import Network.SSH.Message | The ` TermInfo ` describes the client 's terminal settings if it requested a pty . data TermInfo = TermInfo PtySettings
e2e4393535c89a6a6d61c30d5adf1efb69fcbfef035b8f74e0fc1ba4850eb2c7
tibbe/event
Signal.hs
import Control.Concurrent import System.Event.Signal import System.Posix.Signals handler sk = do print (skSignal sk) main = do mgr <- new blockAllSignals registerHandler_ mgr sigINT handler putStrLn "INT handler installed" forkIO $ do threadDelay 1000000 registerHandler mgr sigUSR1 handler reg...
null
https://raw.githubusercontent.com/tibbe/event/2ca43e49327aa7854396b800ff4184d8b00a69f0/benchmarks/Signal.hs
haskell
import Control.Concurrent import System.Event.Signal import System.Posix.Signals handler sk = do print (skSignal sk) main = do mgr <- new blockAllSignals registerHandler_ mgr sigINT handler putStrLn "INT handler installed" forkIO $ do threadDelay 1000000 registerHandler mgr sigUSR1 handler reg...
d55b3368db5b46b94e0352ec3f41aed6637f36857b1690b4400f3e8ad59915c8
clojure/core.rrb-vector
rrb_vector.clj
Copyright ( c ) and contributors . 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 t...
null
https://raw.githubusercontent.com/clojure/core.rrb-vector/88c2f814b47c0bbc4092dad82be2ec783ed2961f/src/main/clojure/clojure/core/rrb_vector.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 ) and contributors . All rights reserved . (ns clojure.core.rrb-vector "An implementation of the confluently persistent vector data structure introduced in Bagwell, Rompf, \"RRB-Trees: Efficient Immutable Vectors\", EPFL-REPORT-169879, September, 2011. RRB-Trees build upon Clojure's Persi...
a691cc535711ab753ef73cb5059862c5f315353e65ffdbfa1037222581f9e798
devops-ru/delivery-pipeline-training
parser.clj
(ns app-monitoring.parser (:require [clojure.string :as str])) (def nginx-access-keys [:ip :date :method :url :statuscode :bytessent :refferer :useragent ]) (def nginx-access-regex #"^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) - - \[(.+?)\] \"(GET|POST|PUT|DELETE) (.+) HTTP/1\.1\" (\d{1,3}) (\d+) \"(.+)\" \"(.+)\"") ...
null
https://raw.githubusercontent.com/devops-ru/delivery-pipeline-training/2a9ea3a3f1c1c0eca56dbe21beeeefc9755cec50/rieman/src/app_monitoring/parser.clj
clojure
(ns app-monitoring.parser (:require [clojure.string :as str])) (def nginx-access-keys [:ip :date :method :url :statuscode :bytessent :refferer :useragent ]) (def nginx-access-regex #"^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) - - \[(.+?)\] \"(GET|POST|PUT|DELETE) (.+) HTTP/1\.1\" (\d{1,3}) (\d+) \"(.+)\" \"(.+)\"") ...
4b08ce8e92afd62dd7d5306037ec83a7a4326b734ed61ac63cfc0cc94f0f5151
clash-lang/clash-compiler
unittests.hs
module Main where import Test.Tasty import Test.Tasty.QuickCheck import qualified Clash.Tests.Core.FreeVars import qualified Clash.Tests.Core.Subst import qualified Clash.Tests.Core.TermLiteral import qualified Clash.Tests.Driver.Manifest import qualified Clash.Tests.Netlist.Id import qualified Clash.Tests.Normalize....
null
https://raw.githubusercontent.com/clash-lang/clash-compiler/018df9b1104ce76e4f69701fb13c5749d965ba5d/clash-lib/tests/unittests.hs
haskell
default value and change it.
module Main where import Test.Tasty import Test.Tasty.QuickCheck import qualified Clash.Tests.Core.FreeVars import qualified Clash.Tests.Core.Subst import qualified Clash.Tests.Core.TermLiteral import qualified Clash.Tests.Driver.Manifest import qualified Clash.Tests.Netlist.Id import qualified Clash.Tests.Normalize....
3dd9dce536798e6d237e04dfed95649efae17cbab7f3a08a9b0f16ec5777763c
zarkone/stumpwm.d
sbclfix.lisp
Amixer module for StumpWM . ;;; Copyright 2008 ;;; Maintainer : ;;; ;;; This module is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 , or ( at your option ) ;;; any later version. ;;...
null
https://raw.githubusercontent.com/zarkone/stumpwm.d/021e51c98a80783df1345826ac9390b44a7d0aae/modules/util/sbclfix/sbclfix.lisp
lisp
This module is free software; you can redistribute it and/or modify either version 2 , or ( at your option ) any later version. This module 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. Se...
Amixer module for StumpWM . Copyright 2008 Maintainer : it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License Thanks to for formatting it as a stumpwm module . (in-package :stumpwm-user) Stumpwm 's EXEC - AND - COLLE...
09bcfca501991a6e51a02ec4d7885196bfae643c209655ea283bd33de42b622c
static-analysis-engineering/codehawk
bCHLocationVarInvariant.ml
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Co...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/45f39248b404eeab91ae225243d79ec0583c3331/CodeHawk/CHB/bchlib/bCHLocationVarInvariant.ml
ocaml
chutil bchlib facts indexed by variable seq number var_invariant_fact index -> var_invariant_int
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Co...
286e0c6ead32242fabda39b5b7466e08bcd2d56b7c16d8f01af480c59065812e
thelema/ocaml-community
jg_config.ml
(*************************************************************************) (* *) (* OCaml LablTk library *) (* *) ,...
null
https://raw.githubusercontent.com/thelema/ocaml-community/ed0a2424bbf13d1b33292725e089f0d7ba94b540/otherlibs/labltk/browser/jg_config.ml
ocaml
*********************************************************************** OCaml LablTk library ...
, Kyoto University RIMS Copyright 1999 Institut National de Recherche en Informatique et en Automatique and Kyoto University . All rights reserved . This file is distributed under the terms of the GNU Library $ Id$ open StdLabels open Jg_tk le...
8539a99f7f182d469c2269fb3cd36d6fc29e4ed711cbb6c4b3b27df9059c0177
NicolasT/paxos
Action.hs
Paxos - Implementations of Paxos - related consensus algorithms - - Copyright ( C ) 2012 - - This library is free software ; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation ; either - version 2....
null
https://raw.githubusercontent.com/NicolasT/paxos/9f207868ce3c5f557c7013bed13edff70206dfdd/src/Network/Paxos/Synod/Action.hs
haskell
| Broadcast group identifier | Actions which might need to be executed as the result of a state transition ^ Send the given message to the given node ^ Broadcast the given message to the given group
Paxos - Implementations of Paxos - related consensus algorithms - - Copyright ( C ) 2012 - - This library is free software ; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation ; either - version 2....
9afd18232f29442551c72cba052a8268ffbe64e716610b3c0942ff3d13770347
RedPRL/stagedtt
Domain.mli
open Prelude module D := Data type env = D.value_env type 'a clo = 'a D.vclo = | Clo of 'a * env type tm_clo = D.syntax clo type tp_clo = D.syntax_tp clo type t = D.value = | Lam of Ident.t * tm_clo | Quote of D.value | Neu of D.neu | Code of code and tp = D.value_tp = | Pi of tp * Ident.t * tp_clo ...
null
https://raw.githubusercontent.com/RedPRL/stagedtt/f88538036b51cebb83ebb0b418ec9b089550275d/lib/core/Domain.mli
ocaml
* Create an environment from a list of values NOTE: This also takes in the length of the list to avoid performing an O(n) computation. * Get all the local bindings in an environment. * Get the number of values in the environment. * Get the number of types in the environment. * Extend an environment with...
open Prelude module D := Data type env = D.value_env type 'a clo = 'a D.vclo = | Clo of 'a * env type tm_clo = D.syntax clo type tp_clo = D.syntax_tp clo type t = D.value = | Lam of Ident.t * tm_clo | Quote of D.value | Neu of D.neu | Code of code and tp = D.value_tp = | Pi of tp * Ident.t * tp_clo ...
533e6c76c82d3cb408330068526d40d27023d1accd4a297b5ce63816280397f9
onedata/op-worker
middleware_router.erl
%%%------------------------------------------------------------------- @author ( C ) 2021 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc %%% This behaviour should be implement...
null
https://raw.githubusercontent.com/onedata/op-worker/6a3243adadc769c9c6459363e6cff55fc86f1b5c/src/middleware/behaviours/middleware_router.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc This behaviour should be implemented by modules that route requests for specific entity type to given middleware_handler based on operation, aspect and scope of request....
@author ( C ) 2021 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . -module(middleware_router). -callback resolve_handler(middleware:operation(), gri:aspect(), middleware:scope()) -> module().