_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
3347dd0b5601e6b057818099b22261c8e2936ca1c6d8bd2a78a449072e788efc
jordwalke/rehp
jsooTopPpx.ml
Js_of_ocaml library * / * Copyright ( C ) 2015 OCamlPro * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version 2.1 of the Lic...
null
https://raw.githubusercontent.com/jordwalke/rehp/f122b94f0a3f06410ddba59e3c9c603b33aadabf/toplevel/lib/jsooTopPpx.ml
ocaml
Js_of_ocaml library * / * Copyright ( C ) 2015 OCamlPro * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version 2.1 of the Lic...
27462068f2d8fb6e177e38e70ead0e072d262543372d387ac967431555cb393d
gwkkwg/cl-containers
queues.lisp
;;;-*- Mode: Lisp; Package: containers -*- (in-package #:containers) ;;; Abstract Queue interface ;;; ;;; supports: enqueue (insert-item), dequeue (delete-first), empty!, size , empty - p , first - element (defclass* abstract-queue (initial-contents-mixin ordered-container-mixin) ()) (defmethod enqueue ((queue...
null
https://raw.githubusercontent.com/gwkkwg/cl-containers/3d1df53c22403121bffb5d553cf7acb1503850e7/dev/queues.lisp
lisp
-*- Mode: Lisp; Package: containers -*- Abstract Queue interface supports: enqueue (insert-item), dequeue (delete-first), empty!, Priority Queues on 'arbitrary' containers delete-item, empty-p, empty!, size, find-item, delete-item and delete-item-if Standard no frills queue Some semantically helpful functions...
(in-package #:containers) size , empty - p , first - element (defclass* abstract-queue (initial-contents-mixin ordered-container-mixin) ()) (defmethod enqueue ((queue abstract-queue) item) (insert-item queue item)) (defmethod dequeue ((queue abstract-queue)) (delete-first queue)) (defmethod empty! ((q abs...
c95a5d998a6a816d58904c1dea4c0b9d1fcaa2d1edf9e6f7e63353d1906635d3
well-typed/optics
Prism.hs
-- | -- Module: Optics.Prism Description : A generalised or first - class constructor . -- -- A 'Prism' generalises the notion of a constructor (just as a -- 'Optics.Lens.Lens' generalises the notion of a field). -- module Optics.Prism ( -- * Formation Prism , Prism' -- * Introduction , prism -- * E...
null
https://raw.githubusercontent.com/well-typed/optics/7cc3f9c334cdf69feaf10f58b11d3dbe2f98812c/optics-core/src/Optics/Prism.hs
haskell
| Module: Optics.Prism A 'Prism' generalises the notion of a constructor (just as a 'Optics.Lens.Lens' generalises the notion of a field). * Formation * Introduction * Elimination | A 'Prism' is in particular an 'Optics.AffineFold.AffineFold', specialise types to obtain: @ 'Optics.AffineFold.preview' :: ...
Description : A generalised or first - class constructor . module Optics.Prism ( Prism , Prism' , prism an ' Optics . . ' , a ' Optics . Review . Review ' and a ' Optics . Setter . Setter ' , therefore you can , prism' , only , nearly , withPrism , aside , without , below , A_P...
b8f5956271baef49e642b8f88e004dc8ffaaa1760485f33e641cf49fde55ea0a
dbuenzli/ptime
ptime_clock.mli
--------------------------------------------------------------------------- Copyright ( c ) 2015 The ptime programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c)...
null
https://raw.githubusercontent.com/dbuenzli/ptime/c6ef2dbf5d1fae2007b28cf41e45a0d383c3a303/src-clock/ptime_clock.mli
ocaml
* [period ()] is a positive POSIX time span representing the clock's period (if available). * [period_d_ps ()] is if available [Some (d, ps)] representing the clock's picosecond period [d] * 86'400e12 + [ps]. [ps] is in the range \[[0];[86_399_999_999_999_999L]\].
--------------------------------------------------------------------------- Copyright ( c ) 2015 The ptime programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c)...
74a6183ce9e30a550b52267d7f478cb70f8b497811928a676979c2ece7fb9dd5
hslua/hslua
DocumentationTests.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeApplications # | Module : HsLua . Packaging . DocumentationTests Copyright : © 2021 - 2023 : MIT Maintainer : < tarleb+ > Tests for calling exposed functions . Module : HsLua.Packaging.DocumentationTests Copyright : © 2021-2023 A...
null
https://raw.githubusercontent.com/hslua/hslua/178c225f3da193f09fc27877a5a30e66eef069fb/hslua-packaging/test/HsLua/Packaging/DocumentationTests.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TypeApplications # | Module : HsLua . Packaging . DocumentationTests Copyright : © 2021 - 2023 : MIT Maintainer : < tarleb+ > Tests for calling exposed functions . Module : HsLua.Packaging.DocumentationTests Copyright : © 2021-2023 Albert Krewinkel License : MIT M...
0cd6d8dccc359559affa5c8df196f3681f902cd29ced58c4a0d23cc6301c7634
klimenko-serj/cl-fbclient
cl-fbclient-statement.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; cl-fbclient-statement.lisp ;;;; STATEMENT ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (in-package #:cl-fbclient) ;;=========================================================================...
null
https://raw.githubusercontent.com/klimenko-serj/cl-fbclient/7a87ea9764f7099c00e5e1c7b85b39a51f80b0a3/cl-fbclient-statement.lisp
lisp
STATEMENT =================================================================================== ----------------------------------------------------------------------------------- ----------------------------------------------------------------------------------- -------------------------------------------------------...
cl-fbclient-statement.lisp (in-package #:cl-fbclient) (defun make-stmt-handler () (cffi:foreign-alloc 'isc_stmt_handle :initial-element 0)) (defun XSQLDA-length (n) (+ (cffi:foreign-type-size '(:struct XSQLDA)) (* (- n 1) (cffi:foreign-type-size '(:struct XSQLVAR))))) (defun make-xsqlda (n) (let ((new-x...
2fab4ca958461d2ff950aed0fc927bbb237520ee80da686f8b302a676243d71a
eponai/sulolive
main.cljs
(ns ^:figwheel-no-load env.android.main (:require [om.next :as om] [sulo-native.android.core :as core] [sulo-native.state :as state] [figwheel.client :as figwheel :include-macros true])) (enable-console-print!) (figwheel/watch-and-reload :websocket-url "ws:3449/figwheel-ws" :...
null
https://raw.githubusercontent.com/eponai/sulolive/7a70701bbd3df6bbb92682679dcedb53f8822c18/sulo-native/env/dev/env/android/main.cljs
clojure
(ns ^:figwheel-no-load env.android.main (:require [om.next :as om] [sulo-native.android.core :as core] [sulo-native.state :as state] [figwheel.client :as figwheel :include-macros true])) (enable-console-print!) (figwheel/watch-and-reload :websocket-url "ws:3449/figwheel-ws" :...
12e7067bc4c6810c25a31ce8c05f18a718b1a57253bbf317349556c90dbc844a
david-christiansen/brush
main.rkt
#lang racket/base (require "private/lp.rkt") (provide program PROGRAM) (module reader syntax/module-reader brush/lp/lang/lang2 #:read read-inside #:read-syntax read-syntax-inside #:whole-body-readers? #t #:language-info (scribble-base-language-info) #:info (scribble-base-info) (require scribble/reader ...
null
https://raw.githubusercontent.com/david-christiansen/brush/91b83cda313f77f2068f0c02753c55c2563680d5/main.rkt
racket
#lang racket/base (require "private/lp.rkt") (provide program PROGRAM) (module reader syntax/module-reader brush/lp/lang/lang2 #:read read-inside #:read-syntax read-syntax-inside #:whole-body-readers? #t #:language-info (scribble-base-language-info) #:info (scribble-base-info) (require scribble/reader ...
2a14fbd2f095cda3f5b49336c327e8e1d7534388e13d3b0492693e9d1562985a
ocaml-batteries-team/batteries-included
batBase64.ml
* Base64 - Base64 codec * Copyright ( C ) 2003 * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version 2.1 of the License , or ( at your option ) any l...
null
https://raw.githubusercontent.com/ocaml-batteries-team/batteries-included/f143ef5ec583d87d538b8f06f06d046d64555e90/src/batBase64.ml
ocaml
$T str_encode try ignore (str_encode ~tbl:[|'1'|] "mlk"); false \ with Invalid_table -> true try ignore (str_encode ~tbl:(Array.make 2000 '1') "mlk"); false \ with Invalid_table -> true
* Base64 - Base64 codec * Copyright ( C ) 2003 * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version 2.1 of the License , or ( at your option ) any l...
08fa39e758ab8607b50fc9c7c12cd018a714946b7bb614aac1528c9a3349cf22
agentm/project-m36
hair.hs
# LANGUAGE DeriveGeneric , , OverloadedStrings , DerivingVia # import ProjectM36.Client import ProjectM36.Relation.Show.Term import GHC.Generics import Data.Text import Control.DeepSeq import qualified Data.Map as M import qualified Data.Text.IO as TIO import Data.Proxy import Codec.Winery data Hair = Bald | Brown | ...
null
https://raw.githubusercontent.com/agentm/project-m36/57a75b35e84bebf0945db6dae53350fda83f24b6/examples/hair.hs
haskell
connect to the database create a database session at the default branch of the fresh database create the data type in the database context
# LANGUAGE DeriveGeneric , , OverloadedStrings , DerivingVia # import ProjectM36.Client import ProjectM36.Relation.Show.Term import GHC.Generics import Data.Text import Control.DeepSeq import qualified Data.Map as M import qualified Data.Text.IO as TIO import Data.Proxy import Codec.Winery data Hair = Bald | Brown | ...
3b3c269715c3daf9d13c79777db834b9fb7b623f4f8f796d781d28c1ee122a02
xclerc/ocamljava
atomicReference.mli
* This file is part of library . * Copyright ( C ) 2007 - 2015 . * * 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 3 of the License , or * ( at yo...
null
https://raw.githubusercontent.com/xclerc/ocamljava/8330bfdfd01d0c348f2ba2f0f23d8f5a8f6015b1/library/concurrent/src/atomic/atomicReference.mli
ocaml
* Atomic containers for values. * Returns a new container holding the passed value. * [compare_and_set a e u] atomically sets the value of [a] to [u] if the current value is [e]. Returns whether the value of [a] was equal to [e]. * Returns the current value. * [get_and_set a x] atomically sets the value of ...
* This file is part of library . * Copyright ( C ) 2007 - 2015 . * * 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 3 of the License , or * ( at yo...
64d43982e2295f976bf16dbdf3444e04ca4a7e54744b7649ca44e1325ac6cd51
jabber-at/ejabberd
mod_admin_update_sql.erl
%%%------------------------------------------------------------------- %%% File : mod_admin_update_sql.erl Author : < > %%% Purpose : Convert SQL DB to the new format Created : 9 Aug 2017 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2018 ProcessOne %%% %%% This program is free software; you ca...
null
https://raw.githubusercontent.com/jabber-at/ejabberd/7bfec36856eaa4df21b26e879d3ba90285bad1aa/src/mod_admin_update_sql.erl
erlang
------------------------------------------------------------------- File : mod_admin_update_sql.erl Purpose : Convert SQL DB to the new format This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be...
Author : < > Created : 9 Aug 2017 by < > ejabberd , Copyright ( C ) 2002 - 2018 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public License along ...
6ec28afea12854dd8782494614e9bd660b6fcc0ea9e38226258c6c8c8b0853a3
fragnix/fragnix
Network.Wai.Middleware.RequestLogger.hs
{-# LANGUAGE Haskell2010, OverloadedStrings #-} # LINE 1 " Network / Wai / Middleware / RequestLogger.hs " # # LANGUAGE RecordWildCards # -- NOTE: Due to , this module should not use CPP . module Network.Wai.Middleware.RequestLogger ( -- * Basic stdout logging logStdout , logStdoutDev -- * Create ...
null
https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/tests/packages/scotty/Network.Wai.Middleware.RequestLogger.hs
haskell
# LANGUAGE Haskell2010, OverloadedStrings # NOTE: Due to , this module should * Basic stdout logging * Create more versions ^ use colors? | @RequestLoggerSettings@ is an instance of Default. See <-default Data.Default> for more information. @outputFormat@, @autoFlush@, and @destination@ are record fields modify...
# LINE 1 " Network / Wai / Middleware / RequestLogger.hs " # # LANGUAGE RecordWildCards # not use CPP . module Network.Wai.Middleware.RequestLogger logStdout , logStdoutDev , mkRequestLogger , RequestLoggerSettings , outputFormat , autoFlush , destination , OutputFormat (..) , Ou...
6bf792b9a510556e81f26519763bf3501c106cd726341fc979899755a38449c6
Simre1/haskell-game
Final.hs
# LANGUAGE TemplateHaskell # module Polysemy.Final ( -- * Effect Final(..) , ThroughWeavingToFinal -- * Actions , withWeavingToFinal , withStrategicToFinal , embedFinal -- * Combinators for Interpreting to the Final Monad , interpretFinal -- * Strategy -- | Strategy is a domain-sp...
null
https://raw.githubusercontent.com/Simre1/haskell-game/272a0674157aedc7b0e0ee00da8d3a464903dc67/polysemy/src/Polysemy/Final.hs
haskell
* Effect * Actions * Combinators for Interpreting to the Final Monad * Strategy | Strategy is a domain-specific language very similar to @Tactics@ effects are threaded down to the final monad. Much like @Tactics@, computations can be run and threaded may use 'pureS'. In addition, 'liftS' may be used to lift a...
# LANGUAGE TemplateHaskell # module Polysemy.Final ( Final(..) , ThroughWeavingToFinal , withWeavingToFinal , withStrategicToFinal , embedFinal , interpretFinal ( see ' Polysemy . Tactical ' ) , and is used to describe how higher - order through the use of ' runS ' and ' bindS ' , and first - ord...
1b8fbafac595fc498c345cbb56c2bbf71da5f9b91f4adeae6a2717c6e1ec8bdb
mitchellwrosen/repld
Main.hs
module Main where import qualified Repld.Main main :: IO () main = Repld.Main.repld
null
https://raw.githubusercontent.com/mitchellwrosen/repld/100bd424e1b0320b5246647abeec3e60582ec39c/app/repld/Main.hs
haskell
module Main where import qualified Repld.Main main :: IO () main = Repld.Main.repld
8bebfb08462f695135c0fd27c1f20f15572d262da8bdd3eed8dc5d4766391b90
S8A/htdp-exercises
ex389.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex389) (read-case-sensitive #t) (teachpacks ((lib "batch-io.rkt" "teachpack" "2htdp"))) (h...
null
https://raw.githubusercontent.com/S8A/htdp-exercises/578e49834a9513f29ef81b7589b28081c5e0b69f/ex389.rkt
racket
about the language level of this file in a form that our tools can easily process. Assumes that the corresponding list items belong to the same person.
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex389) (read-case-sensitive #t) (teachpacks ((lib "batch-io.rkt" "teachpack" "2htdp"))) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ((lib "batch-io.rkt" "te...
1bb848d36ccfc9d2f3e2d679905c601b9d19be117f60d904e7527d8da3a45e04
fluree/db
template.cljc
(ns fluree.db.query.sql.template (:require [clojure.string :as str] [clojure.walk :refer [postwalk]])) #?(:clj (set! *warn-on-reflection* true)) (defn capitalize-first "Capitalizes the first letter (and only the first letter) of `s`" [s] (if (<= (count s) 1) (str/upper-case s) (-> (subs s ...
null
https://raw.githubusercontent.com/fluree/db/70c49dfc3898945d3ab9a64beb798c1f1b2382e4/src/fluree/db/query/sql/template.cljc
clojure
(ns fluree.db.query.sql.template (:require [clojure.string :as str] [clojure.walk :refer [postwalk]])) #?(:clj (set! *warn-on-reflection* true)) (defn capitalize-first "Capitalizes the first letter (and only the first letter) of `s`" [s] (if (<= (count s) 1) (str/upper-case s) (-> (subs s ...
48cb2358e021d792b2d883e7f924526fa1825bdf5440d055ba24a904484de1f5
clojure-emacs/refactor-nrepl
fs_test.clj
(ns refactor-nrepl.fs-test (:require [clojure.java.io :as io] [clojure.test :refer [deftest is]]) (:import (java.io File))) (require '[refactor-nrepl.fs]) (deftest extensions-are-disabled (is (try (-> "project.clj" File. .toPath io/file) false (catch Exception e (asser...
null
https://raw.githubusercontent.com/clojure-emacs/refactor-nrepl/0e7d45d0dc10baf85c63298b309e06a0c696d854/test/refactor_nrepl/fs_test.clj
clojure
(ns refactor-nrepl.fs-test (:require [clojure.java.io :as io] [clojure.test :refer [deftest is]]) (:import (java.io File))) (require '[refactor-nrepl.fs]) (deftest extensions-are-disabled (is (try (-> "project.clj" File. .toPath io/file) false (catch Exception e (asser...
85aa0eba04d2a0eafc1b51ed99482de75ec72d708bbb8ef629de66a37531e6f2
Clozure/dpf
application.lisp
(in-package "CCL") (defclass cocoa-ui-object (ui-object) ()) (defclass cocoa-application (application) ((standalone-p :initform nil :accessor cocoa-application-standalone-p))) (defparameter *cocoa-application* (make-instance 'cocoa-application :ui-object (make-instance 'cocoa-ui-object))) (defmethod applic...
null
https://raw.githubusercontent.com/Clozure/dpf/174ae4ed065b66329df34b8bc1ba28ae7f48c806/application.lisp
lisp
After the lisp starts up, it creates a listener thread. The to do some housekeeping tasks. interrupt the initial thread, and use %set-toplevel and toplevel (which are basically process-preset and process-reset for the create a new thread to do the housekeeping.
(in-package "CCL") (defclass cocoa-ui-object (ui-object) ()) (defclass cocoa-application (application) ((standalone-p :initform nil :accessor cocoa-application-standalone-p))) (defparameter *cocoa-application* (make-instance 'cocoa-application :ui-object (make-instance 'cocoa-ui-object))) (defmethod applic...
c0707f92cf5c3e0fe61e375965bc2c0fed14ca68b995db06b487c04db7920ae7
borgeby/jarl
comparison_test.cljc
(ns jarl.builtins.comparison-test (:require [test.utils :refer [testing-builtin]] #?(:clj [clojure.test :refer [deftest]] :cljs [cljs.test :refer [deftest]]))) (deftest builtin-equal-test (testing-builtin "equal" ; numbers [1 1] true [1 1.0] true [-3.33...
null
https://raw.githubusercontent.com/borgeby/jarl/2659afc6c72afb961cb1e98b779beb2b0b5d79c6/core/src/test/cljc/jarl/builtins/comparison_test.cljc
clojure
numbers strings objects arrays booleans null strings objects arrays booleans null bigint strings objects objects-different-keys arrays sets booleans null strings objects objects-different-keys arrays sets booleans null These are already tested by virtue of rego-compare and the tests above Ju...
(ns jarl.builtins.comparison-test (:require [test.utils :refer [testing-builtin]] #?(:clj [clojure.test :refer [deftest]] :cljs [cljs.test :refer [deftest]]))) (deftest builtin-equal-test (testing-builtin "equal" [1 1] true [1 1.0] true [-3.334 -3.3340000] ...
b6ee10ec054491d048c3e110e0efd73c43b5dd31102f2efcce643e30817e8a71
tarides/ocaml-platform-installer
binary_package.mli
(** Make a binary package out of a package built in the {!Sandbox_switch}. Package definitions and source archives are stored in {!Binary_repo}. *) open Bos type full_name val binary_name : ocaml_version:string -> name:string -> ver:string -> ocaml_version_dependent:bool -> full_name val to_string : f...
null
https://raw.githubusercontent.com/tarides/ocaml-platform-installer/9aefc34f4aeac47b7ae1431718161eabbbb35e94/src/lib/binary_repo/binary_package.mli
ocaml
* Make a binary package out of a package built in the {!Sandbox_switch}. Package definitions and source archives are stored in {!Binary_repo}. * Tell from the version if the package is a binary package. * Make a binary package from the result of installing a package in the sandbox switch.
open Bos type full_name val binary_name : ocaml_version:string -> name:string -> ver:string -> ocaml_version_dependent:bool -> full_name val to_string : full_name -> string val name : full_name -> string val ver : full_name -> string val package : full_name -> Package.full_name val version_is_binary : st...
13accdf8fefa2cad2af53fa00ef3814f6d32386e036d1786f510b1427477be65
TerrorJack/ghc-alter
Exts.hs
# LANGUAGE Unsafe # # LANGUAGE MagicHash , UnboxedTuples , TypeFamilies , DeriveDataTypeable , MultiParamTypeClasses , FlexibleInstances , NoImplicitPrelude # MultiParamTypeClasses, FlexibleInstances, NoImplicitPrelude #-} --------------------------------------------------------------------...
null
https://raw.githubusercontent.com/TerrorJack/ghc-alter/db736f34095eef416b7e077f9b26fc03aa78c311/ghc-alter/boot-lib/base/GHC/Exts.hs
haskell
--------------------------------------------------------------------------- | License : see libraries/base/LICENSE Maintainer : Stability : internal Note: no other base module should import this module. --------------------------------------------------------------------------- * Representations of ...
# LANGUAGE Unsafe # # LANGUAGE MagicHash , UnboxedTuples , TypeFamilies , DeriveDataTypeable , MultiParamTypeClasses , FlexibleInstances , NoImplicitPrelude # MultiParamTypeClasses, FlexibleInstances, NoImplicitPrelude #-} Module : GHC.Exts Copyright : ( c ) The University ...
bb3502f024d90154f354c547bb58ca889c9add137cd1d6baad046795335bbbff
binaryage/chromex
chrome_event_subscription.cljs
(ns chromex.chrome-event-subscription (:require [chromex.protocols.chrome-event-channel :refer [IChromeEventChannel]] [chromex.protocols.chrome-event-subscription :refer [IChromeEventSubscription]] [oops.core :refer [oapply! ocall!]])) ; exception handlers, see (declare ^:dynamic *subscribe-...
null
https://raw.githubusercontent.com/binaryage/chromex/33834ba5dd4f4238a3c51f99caa0416f30c308c5/src/lib/chromex/chrome_event_subscription.cljs
clojure
exception handlers, see -- ChromeEventSubscription ------------------------------------------------------------------------------------------------ see #filtered or 'Registering event listeners' at -- constructor -----------------------------------------------------------------------------------------------------...
(ns chromex.chrome-event-subscription (:require [chromex.protocols.chrome-event-channel :refer [IChromeEventChannel]] [chromex.protocols.chrome-event-subscription :refer [IChromeEventSubscription]] [oops.core :refer [oapply! ocall!]])) (declare ^:dynamic *subscribe-called-while-subscribed*) (...
3efaf0cc79b80309b3a36a757e1dad69d3859901078dc771931c5795be2057c1
funcool/yetti
websocket.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 © < > (ns yetti.websocket (:require [clojure.string :as str] [yetti.request :as req] [yetti.util :as util]) (:im...
null
https://raw.githubusercontent.com/funcool/yetti/e2d25dbaab4450c3f617e50d95bcdf8445c9274d/src/yetti/websocket.clj
clojure
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 © < > (ns yetti.websocket (:require [clojure.string :as str] [yetti.request :as req] [yetti.util :as util]) (:impor...
617085e59348eec36e6f90aefa96fdf5c25f134d274b41fc23097c14c9a1663f
janestreet/memtrace_viewer_with_deps
import.ml
module Incr = Incremental.Make () module Incr_map = Incr_map.Make (Incr) module Var = Incr.Var module Obs = Incr.Observer module Bench = Core_bench.Bench include Incr.Let_syntax module Infix = struct let ( := ) = Var.set let ( ! ) = Var.value end
null
https://raw.githubusercontent.com/janestreet/memtrace_viewer_with_deps/5a9e1f927f5f8333e2d71c8d3ca03a45587422c4/vendor/incr_map/bench/src/import.ml
ocaml
module Incr = Incremental.Make () module Incr_map = Incr_map.Make (Incr) module Var = Incr.Var module Obs = Incr.Observer module Bench = Core_bench.Bench include Incr.Let_syntax module Infix = struct let ( := ) = Var.set let ( ! ) = Var.value end
eead138993d3a66363e24c8a42ae4c550cbe6a49478cf701a45d05f53042c07c
nitrogen/NitrogenProject.com
tests_cookie.erl
-module(tests_cookie). -include_lib("nitrogen_core/include/wf.hrl"). -compile(export_all). main() -> case wf:q("step") of "1" -> step1_main(); "2" -> step2_main(); "3" -> step3_main(); "4" -> step4_main() end, #template{file="templates/grid.html"}. step1_main() -> InitialCookieVal = wf_utils:guid(),...
null
https://raw.githubusercontent.com/nitrogen/NitrogenProject.com/b4b3a0dbe17394608d2ee6eaa089e3ece1285075/src/tests/tests_cookie.erl
erlang
Verify that the cookie works Now we set to the cookie to something else. Being inside a websocket rather than writing a cookie header to the response (which wouldn't make sense after the websocket handshake). Makes sure cookie value is retained across multiple requests The HTTP cookie was set before the websocket...
-module(tests_cookie). -include_lib("nitrogen_core/include/wf.hrl"). -compile(export_all). main() -> case wf:q("step") of "1" -> step1_main(); "2" -> step2_main(); "3" -> step3_main(); "4" -> step4_main() end, #template{file="templates/grid.html"}. step1_main() -> InitialCookieVal = wf_utils:guid(),...
6315f15649304accc39a500552bc3ad449e5230893a56a74776dfe0724a390c1
shamazmazum/similar-images
find-similar-prob.lisp
(in-package :similar-images) (defconstant +hash-length+ 1024 "Length of a perceptual hash (in bits)") (defconstant +number-of-bins+ 4 "Number of sets of bins for classification.") (defconstant +bin-width+ 11 "A set of bins will have 2^+bin-width+ bins.") (defgenerator make-random-gen (max) "Make a generator of...
null
https://raw.githubusercontent.com/shamazmazum/similar-images/e606e7c21dd56bcd6a2b53d209754eff6c65ad66/src/find-similar-prob.lisp
lisp
(in-package :similar-images) (defconstant +hash-length+ 1024 "Length of a perceptual hash (in bits)") (defconstant +number-of-bins+ 4 "Number of sets of bins for classification.") (defconstant +bin-width+ 11 "A set of bins will have 2^+bin-width+ bins.") (defgenerator make-random-gen (max) "Make a generator of...
05d368e7db28bb290e3cedfb2aff9545faa129daed5e0c6fbf0044fc95dcf743
metabase/metabase
setup_test.clj
(ns ^:mb/once metabase.api.setup-test "Tests for /api/setup endpoints." (:require [clojure.core.async :as a] [clojure.spec.alpha :as s] [clojure.test :refer :all] [medley.core :as m] [metabase.analytics.snowplow-test :as snowplow-test] [metabase.api.setup :as api.setup] [metabase.email :as emai...
null
https://raw.githubusercontent.com/metabase/metabase/7e3048bf73f6cb7527579446166d054292166163/test/metabase/api/setup_test.clj
clojure
make sure the default test users are created before running these tests, otherwise we're going to run into issues if it attempts to delete this user and it is the only admin test user +----------------------------------------------------------------------------------------------------------------+ | ...
(ns ^:mb/once metabase.api.setup-test "Tests for /api/setup endpoints." (:require [clojure.core.async :as a] [clojure.spec.alpha :as s] [clojure.test :refer :all] [medley.core :as m] [metabase.analytics.snowplow-test :as snowplow-test] [metabase.api.setup :as api.setup] [metabase.email :as emai...
0195367cedd50da4a46461b5b64bff034f881b06fdd5eff323572a74e06b6bb0
binaryage/chromex
omnibox.clj
(ns chromex.ext.omnibox "The omnibox API allows you to register a keyword with Google Chrome's address bar, which is also known as the omnibox. * 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/omnibox.clj
clojure
-- events ----------------------------------------------------------------------------------------------------------------- docs: /#tapping-events -- convenience ------------------------------------------------------------------------------------------------------------ --------------------------------------------...
(ns chromex.ext.omnibox "The omnibox API allows you to register a keyword with Google Chrome's address bar, which is also known as the omnibox. * available since Chrome 36 * " (:refer-clojure :only [defmacro defn apply declare meta let partial]) (:require [chromex.wrapgen :refer [gen-wrap-helper]] ...
e24b09e4f664307d3ef5a4750cab6778928628b5eaf73ba7b5fcffc2dc6bd2ad
LaurentMazare/ocaml-dataframe
bool_array.mli
(* Immutable bool array. *) type t val create : bool -> len:int -> t val get : t -> int -> bool (* The number of elements of the array set to true. *) val num_set : t -> int (* The indexes for a given value. *) val indexes : t -> value:bool -> int array val length : t -> int val mapi : t -> f:(int -> bool -> bool) -...
null
https://raw.githubusercontent.com/LaurentMazare/ocaml-dataframe/89bd3cb4035db505ac516303b04f4de7ffdff0be/src/dataframe/bool_array.mli
ocaml
Immutable bool array. The number of elements of the array set to true. The indexes for a given value.
type t val create : bool -> len:int -> t val get : t -> int -> bool val num_set : t -> int val indexes : t -> value:bool -> int array val length : t -> int val mapi : t -> f:(int -> bool -> bool) -> t val iteri : t -> f:(int -> bool -> unit) -> unit module Mutable : sig type immutable = t type t val create :...
b83941776f4bb3c46a47b7ad92a09bd10b593d8235d1c44ecd2963e7ed234868
z3z1ma/pipette
project.clj
(defproject pipette "0.4.5" :description "Engine for processing new line delimited json emitted to stdout and sent via a pipe" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" :url "-2.0/"} :dependencies [[org.clojure/clojure "1.10.3"] [org.clojure/data.js...
null
https://raw.githubusercontent.com/z3z1ma/pipette/bf01b61c563a2f54e3688bf8579ef62ac22fbf9d/project.clj
clojure
(defproject pipette "0.4.5" :description "Engine for processing new line delimited json emitted to stdout and sent via a pipe" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" :url "-2.0/"} :dependencies [[org.clojure/clojure "1.10.3"] [org.clojure/data.js...
f4d4907a48dff910b3e31d7227c415d7d7652d4b4477f56d0014f4fb568640c1
linkfluence/inventory
inventory.clj
(ns com.linkfluence.inventory.api.inventory (:require [compojure.core :refer :all] [compojure.route :as route] [clojure.tools.logging :as log] ;;import inventory handler [com.linkfluence.inventory.core :as inventory] [com.linkfluence.utils :as u])) (defn pu...
null
https://raw.githubusercontent.com/linkfluence/inventory/b69110494f8db210d14cc7093834c441440cd4e8/src/clj/com/linkfluence/inventory/api/inventory.clj
clojure
import inventory handler view group resource Resource hiding Resource hiding aggregation tag count
(ns com.linkfluence.inventory.api.inventory (:require [compojure.core :refer :all] [compojure.route :as route] [clojure.tools.logging :as log] [com.linkfluence.inventory.core :as inventory] [com.linkfluence.utils :as u])) (defn put-events ([evs] (put-events evs "...
a612835c5e47e40b5aeb728a09bbb7f23a419e4ffe7f0f5e128460a7e11ed775
marksteele/cinched
cinched_crypto_field_rest_handler.erl
%%%------------------------------------------------------------------- @author < > ( C ) 2016 , %%% @doc Cinched Field REST API %%% @end Created : 24 Jan 2016 by < > %%%------------------------------------------------------------------- This file is provided to you under the Apache License , %% Versi...
null
https://raw.githubusercontent.com/marksteele/cinched/5284d048c649128fa8929f6e85cdc4747d223427/src/cinched_crypto_field_rest_handler.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either expres...
@author < > ( C ) 2016 , Cinched Field REST API Created : 24 Jan 2016 by < > This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDI...
3c5867def9ff83a718e77cf698c59274198e16e9a147acc9e8323025f9d98469
pusher/stronghold
StoredData.hs
{-# LANGUAGE GADTs #-} # LANGUAGE DataKinds # # LANGUAGE KindSignatures # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # module StoredData where {- This module is responsible for defining the data that get stored in zookeeper. -} import Control.Applicative ((<$>)) import Control.Monad (when) ...
null
https://raw.githubusercontent.com/pusher/stronghold/b5ec314425d9492f881f46d14b78d76de7b9429b/src/StoredData.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings # This module is responsible for defining the data that get stored in zookeeper. | timestamp, comment, author Arguably, this should be inside the monad. This defines the operations that are possible on the data in zookeeper
# LANGUAGE DataKinds # # LANGUAGE KindSignatures # # LANGUAGE ScopedTypeVariables # module StoredData where import Control.Applicative ((<$>)) import Control.Monad (when) import Control.Monad.Operational (Program, ProgramViewT (..), singleton, view) import Control.Monad.Trans (lift) import Control.Monad.Trans.Maybe (...
4d4fe648488d39d3e9e7dec933a163f53a823ec196b60d801622c068b4ac9cea
drathier/elm-offline
Parse.hs
# OPTIONS_GHC -Wall # module Parse.Parse ( program ) where import qualified Data.ByteString as B import qualified AST.Source as Src import qualified AST.Valid as Valid import qualified Elm.Package as Pkg import qualified Parse.Declaration as Decl import qualified Parse.Module as Module import qualified Parse.P...
null
https://raw.githubusercontent.com/drathier/elm-offline/f562198cac29f4cda15b69fde7e66edde89b34fa/compiler/src/Parse/Parse.hs
haskell
PROGRAM
# OPTIONS_GHC -Wall # module Parse.Parse ( program ) where import qualified Data.ByteString as B import qualified AST.Source as Src import qualified AST.Valid as Valid import qualified Elm.Package as Pkg import qualified Parse.Declaration as Decl import qualified Parse.Module as Module import qualified Parse.P...
d691926738b41367e4c2558df85246d704eeb36316964e8854ba64485af1a55a
sheyll/b9-vm-image-builder
B9.hs
-- | B9 is a library and build tool with which one can create/convert different types -- of VM images. Additionally installation steps - like installing software - -- can be done in a LXC container, running on the disk images. -- B9 allows to create and convert virtual machine image files as well as rel...
null
https://raw.githubusercontent.com/sheyll/b9-vm-image-builder/4d2af80d3be4decfce6c137ee284c961e3f4a396/src/lib/B9.hs
haskell
| B9 is a library and build tool with which one can create/convert different types of VM images. Additionally installation steps - like installing software - can be done in a LXC container, running on the disk images. This module re-exports the modules needed to build a tool around the library, e.g. ...
B9 allows to create and convert virtual machine image files as well as related ISO and VFAT disk images for e.g. cloud - init configuration sources . used to describe a B9 build . module B9 ( b9Version, b9VersionString, runShowVersion, runBuildArtifacts, runFormatBuildFiles, runPush...
f7e411d5b5f5296a138553a864714a1974084ae58abcd9259e32f83245e2dca5
rudymatela/leancheck
io.hs
Copyright ( c ) 2015 - 2020 . -- Distributed under the 3-Clause BSD licence (see the file LICENSE). import Test main :: IO () main = do check $ \x -> (x::Int) + x == 2*x -- should pass check $ \x - > ( ) + x = = x -- should fail , falsifiable check $ \x - > ( ) ` div ` x = = 1 -- should fail , exc...
null
https://raw.githubusercontent.com/rudymatela/leancheck/cb6f49fd11839dc922c6b1d9a428212755dae2ff/test/io.hs
haskell
Distributed under the 3-Clause BSD licence (see the file LICENSE). should pass should fail , falsifiable should fail , exception
Copyright ( c ) 2015 - 2020 . import Test main :: IO () main = do
7d159c4ff21ec48cd93ce0aa9741df38d0aee7f35df156a5289fc3f4f9933b97
foreverbell/project-euler-solutions
286.hs
import qualified Data.MemoCombinators as Memo import Text.Printf (printf) prob :: Double -> Double prob q = dp 50 20 where dp n k = Memo.memo2 Memo.integral Memo.integral dp' n k where dp' 0 0 = 1 dp' n k | n < k = 0 | k < 0 = 0 | otherwise = (dp (n...
null
https://raw.githubusercontent.com/foreverbell/project-euler-solutions/c0bf2746aafce9be510892814e2d03e20738bf2b/src/286.hs
haskell
import qualified Data.MemoCombinators as Memo import Text.Printf (printf) prob :: Double -> Double prob q = dp 50 20 where dp n k = Memo.memo2 Memo.integral Memo.integral dp' n k where dp' 0 0 = 1 dp' n k | n < k = 0 | k < 0 = 0 | otherwise = (dp (n...
f6124da96f2e51e3ddab326a7a0fdb3635e3ff233ad72e0c061c0324990b7779
Drezil/pioneers
Types.hs
# LANGUAGE TemplateHaskell # module Types where import Control.Concurrent.STM (TQueue, TVar, readTVar, writeTVar, atomically) import qualified Graphics.Rendering.OpenGL.GL as GL import Graphics.UI.SDL as SDL (Event, Window) import Foreign.C ...
null
https://raw.githubusercontent.com/Drezil/pioneers/2a9de00213144cfa870e9b71255a92a905dec3a9/src/Types.hs
haskell
Static Read-Only-State , envFont :: TTF.TTFFont , _renderer :: !Renderer This does not include any objects on the map - only the map itself _mapTextures must contain the following Textures (in this ordering) after initialisation: TODO: Fix size on list? ^ Position of Overlay-Texture in ...
# LANGUAGE TemplateHaskell # module Types where import Control.Concurrent.STM (TQueue, TVar, readTVar, writeTVar, atomically) import qualified Graphics.Rendering.OpenGL.GL as GL import Graphics.UI.SDL as SDL (Event, Window) import Foreign.C ...
4bfbb879dd2ec63e0ad079109752564dde5cc5f41d5a07831a16b990f866d2b3
SecPriv/webspec
serviceworker.mli
(********************************************************************************) Copyright ( c ) 2022 (* *) (* Permission is hereby granted, free of charge, to any person obtaining a *) (* copy of this software and associated doc...
null
https://raw.githubusercontent.com/SecPriv/webspec/b7ff6b714b3a4b572c108cc3136506da3d263eff/verifier/src/serviceworker.mli
ocaml
****************************************************************************** Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), th...
Copyright ( c ) 2022 to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN AN ACTION OF CONTRACT...
2f368a07f8cdf0805ef05b9c90d6c0a09be9ad6c3a9e8db4f67aad0c87103250
LaurentMazare/btc-ocaml
common.ml
open Core.Std let consume_compact_uint iobuf = let len_len = Iobuf.Consume.uint8 iobuf in if len_len <= 252 then len_len else if len_len = 253 then Iobuf.Consume.uint16_le iobuf else if len_len = 254 then Iobuf.Consume.uint32_le iobuf else if len_len = 255 then Iobuf.Consume.int64_le_trunc iobuf else failw...
null
https://raw.githubusercontent.com/LaurentMazare/btc-ocaml/0616d7853d807e50dc9ff83c6783b80f71640da2/common.ml
ocaml
open Core.Std let consume_compact_uint iobuf = let len_len = Iobuf.Consume.uint8 iobuf in if len_len <= 252 then len_len else if len_len = 253 then Iobuf.Consume.uint16_le iobuf else if len_len = 254 then Iobuf.Consume.uint32_le iobuf else if len_len = 255 then Iobuf.Consume.int64_le_trunc iobuf else failw...
2729ad514e0b9bcb2f45d803b57bd542a29fb11272b02e7a059f2cbf02f2be12
nha/boot-uglify
nashorn.clj
(ns nha.boot-uglify.nashorn (:require [clojure.java.io :as io] [clojure.string :as string]) (:import [java.io StringWriter FileInputStream FileOutputStream File] [javax.script ScriptEngine ScriptEngineManager ScriptException ScriptEngineFactory] [org.apache.commons.lang3 StringEscapeUtils] ...
null
https://raw.githubusercontent.com/nha/boot-uglify/df0cffb2734bdd1db2be1fab5fcefdda5f735e68/src/nha/boot_uglify/nashorn.clj
clojure
Nashorn ;;
(ns nha.boot-uglify.nashorn (:require [clojure.java.io :as io] [clojure.string :as string]) (:import [java.io StringWriter FileInputStream FileOutputStream File] [javax.script ScriptEngine ScriptEngineManager ScriptException ScriptEngineFactory] [org.apache.commons.lang3 StringEscapeUtils] ...
d8b7cb81d7740f5498c1a57ac33d7c62fb34e79acd7729b468dd41da256e6082
tari3x/csec-modex
cfg.ml
* * Copyright ( c ) 2001 - 2003 , * < > * < > * < > * < > * S.P Rahul , * All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are ...
null
https://raw.githubusercontent.com/tari3x/csec-modex/5ab2aa18ef308b4d18ac479e5ab14476328a6a50/deps/cil-1.7.3/src/ext/cfg.ml
ocaml
sfg: this stuff was stolen from optim.ml - the code to print the cfg as a dot graph is mine entry points: cfgFun, printCfgChannel, printCfgFilename ------------------------------------------------------------ for unique ids across many functions entry point Future traversals can be made in linear time. e.g....
* * Copyright ( c ) 2001 - 2003 , * < > * < > * < > * < > * S.P Rahul , * All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are ...
746093913e56f659e40d656dcfa59d13fe59731b2de02a9b4188af2ab6f2da73
finnishtransportagency/harja
pohjavesialueet.clj
(ns harja.palvelin.integraatiot.paikkatietojarjestelma.tuonnit.pohjavesialueet (:require [taoensso.timbre :as log] [clojure.java.jdbc :as jdbc] [harja.kyselyt.pohjavesialueet :as p] [harja.palvelin.integraatiot.paikkatietojarjestelma.tuonnit.shapefile :as shapefile] [cl...
null
https://raw.githubusercontent.com/finnishtransportagency/harja/b44024c0c83ae2a4257ba04bccd4c83330d3efd1/src/clj/harja/palvelin/integraatiot/paikkatietojarjestelma/tuonnit/pohjavesialueet.clj
clojure
harja-avain | Velho-kenttä | shapefile-kenttä nimi | rakenteelliset_ominaisuudet_nimi | rakenteell tunnus | toiminnalliset_ominaisuudet_tunnus | toiminnall tr_alkuetaisyys | alkusijainti_etaisyys | alkusijai1 tr_loppuosa | loppusij...
(ns harja.palvelin.integraatiot.paikkatietojarjestelma.tuonnit.pohjavesialueet (:require [taoensso.timbre :as log] [clojure.java.jdbc :as jdbc] [harja.kyselyt.pohjavesialueet :as p] [harja.palvelin.integraatiot.paikkatietojarjestelma.tuonnit.shapefile :as shapefile] [cl...
47a49ddad1c5a7b78717432e1595cfb4984cec6c1ddbd24ed486fe9389cf6ff7
adaliu-gh/htdp
393-395.rkt
;;===================== 393 a Set - of - Number ( Son)is one of : ;; - empty ;; - (cons Number Set-of-Number) constrains : numbers in should not appear more than once (define son-1 '(1 4 2 6)) (define son-2 '(43 12 56 4 6)) ;; Son Son -> Boolean check if the first son is in the second (check-expect (in-set? '(...
null
https://raw.githubusercontent.com/adaliu-gh/htdp/a0fca8af2ae8bdcef40d56f6f45021dd92df2995/19-24%20Intertwined%20Data/393-395.rkt
racket
===================== - empty - (cons Number Set-of-Number) Son Son -> Boolean List -> Boolean check if the given list is a set Son Son -> [Son -> Boolean] Son Son -> Son Son Son -> [Son -> Boolean] this function is not complete Son Son -> Son =========================== [List-of Number] -> Boolean [List-of...
393 a Set - of - Number ( Son)is one of : constrains : numbers in should not appear more than once (define son-1 '(1 4 2 6)) (define son-2 '(43 12 56 4 6)) check if the first son is in the second (check-expect (in-set? '(1 2) '( 1 2 4)) #true) (check-expect (in-set? '( 1 2) '( 1 3 4)) #false) (define (in-set? ...
59a893680120ab36b89749137f9b900f8c4d427c4b9a2a6a5a87a5098b68fda6
mtpearce/idyom
generics.lisp
;;;; ====================================================================== ;;;; File: generics.lisp Author : < > Created : < 2004 - 10 - 28 11:56:59 > Time - stamp : < 2014 - 06 - 04 16:04:23 marcusp > ;;;; ====================================================================== (cl:in-package ...
null
https://raw.githubusercontent.com/mtpearce/idyom/d0449a978c79f8ded74c509fdfad7c1a253c5a80/mvs/generics.lisp
lisp
====================================================================== File: generics.lisp ======================================================================
Author : < > Created : < 2004 - 10 - 28 11:56:59 > Time - stamp : < 2014 - 06 - 04 16:04:23 marcusp > (cl:in-package #:prediction-sets) (defgeneric average-codelengths (prediction)) (defgeneric average-codelength (prediction)) (defgeneric codelengths (prediction)) (defgeneric shannon-entropies (pre...
02f1ecedab5cdb2258bd83b6d459ba9bb7abac9ddb3252894c6874a3593bbd92
quil-lang/magicl
householder.lisp
;;;; householder.lisp ;;;; Author : (in-package #:magicl) ;;;; This file doesn't actually implement any MAGICL functions. These ;;;; functions are utilities for implementing QR decomposition. (defstruct householder-reflection "Representation of a Householder reflection." v (idx 0)) (defun column->householde...
null
https://raw.githubusercontent.com/quil-lang/magicl/c7730fba6614652ae291053566a9c2b6696ad737/src/high-level/matrix-functions/householder.lisp
lisp
householder.lisp This file doesn't actually implement any MAGICL functions. These functions are utilities for implementing QR decomposition. TODO: revisit this
Author : (in-package #:magicl) (defstruct householder-reflection "Representation of a Householder reflection." v (idx 0)) (defun column->householder (A i0 j0) "Construct a Householder reflection which, when applied from the left, puts zeros in column J0 below row I0." (let* ((m (nrows A)) ...
d9e138a0ac9c2b0cbdad221c5a8f0c2ea3c9bae7726853e33f1d58f8dde57e93
david-christiansen/pudding-old
stlc-refiner.rkt
#lang racket (require ;; Make definitions with the refiner "../refiner-define.rkt" ;; The theory and tactics we care about (for-syntax "../theories/stlc.rkt" "../tactics.rkt" "../proofs.rkt" "../proof-state.rkt" zippers racket/list)) (module+ test (require rackunit)) (def...
null
https://raw.githubusercontent.com/david-christiansen/pudding-old/6b9ee633b551226df61d40191bafa14386fc86ad/demo/stlc-refiner.rkt
racket
Make definitions with the refiner The theory and tactics we care about A linear tactic script, dispatching subgoals as they arise Make sure that "try" works A tree-shaped tactic script, corresponding more closely to the goal structure start by doing nothing, just for the heck of it
#lang racket (require "../refiner-define.rkt" (for-syntax "../theories/stlc.rkt" "../tactics.rkt" "../proofs.rkt" "../proof-state.rkt" zippers racket/list)) (module+ test (require rackunit)) (define/refiner two #'Int (refine (length-of-string)) (move (down/proof)) (re...
f26eb811f2c4dfe95bc3a861f2ad05606f80fe25065c09218de64ff73543074d
Dale-M/mcron
utils.scm
;;;; utils.scm -- helper procedures Copyright © 2003 , 2012 < > Copyright © 2015 , 2016 , 2018 < > ;;; This file is part of GNU Mcron . ;;; GNU Mcron 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 Foundati...
null
https://raw.githubusercontent.com/Dale-M/mcron/56308568da1c846698a4b2ad593a164133ab19cf/src/mcron/utils.scm
scheme
utils.scm -- helper procedures (at your option) any later version. but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. assume a user passwd entry
Copyright © 2003 , 2012 < > Copyright © 2015 , 2016 , 2018 < > This file is part of GNU Mcron . GNU Mcron 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 ...
f7905fd8bd165f7b06cb89e5e54a1cbe6b3134fa6879608a3aa6fe54c14675db
tonsky/down-the-rabbit-hole
phases.clj
(ns down-the-rabbit-hole.phases (:require [datascript.core :as ds] [down-the-rabbit-hole.core :as core] [down-the-rabbit-hole.alice :as alice] [down-the-rabbit-hole.decorations :as decorations] [down-the-rabbit-hole.end-turn :as end-turn] [down-the-rabbit-hole.item :as item] [down-the-rabbit-hole...
null
https://raw.githubusercontent.com/tonsky/down-the-rabbit-hole/cca89725c14f3a316f6a8bf44fe3a1ee2b04617c/src/down_the_rabbit_hole/phases.clj
clojure
(ns down-the-rabbit-hole.phases (:require [datascript.core :as ds] [down-the-rabbit-hole.core :as core] [down-the-rabbit-hole.alice :as alice] [down-the-rabbit-hole.decorations :as decorations] [down-the-rabbit-hole.end-turn :as end-turn] [down-the-rabbit-hole.item :as item] [down-the-rabbit-hole...
216ef81e397444fee623873139664b4137aad557a26fa2664dd34ad3d89a4c54
msp-strath/ask
Proving.hs
------------------------------------------------------------------------------ ---------- ---------- -------- Ask . . Proving ---------- ---------- ---------- ---...
null
https://raw.githubusercontent.com/msp-strath/ask/96f3e8a0ae577cdb4633a30924a16c95b4e09bc0/Src/Proving.hs
haskell
---------------------------------------------------------------------------- -------- ---------- ------ Ask . . Proving ---------- -------- ---------- -----------...
# LANGUAGE LambdaCase # LambdaCase #-} module Ask.Src.Proving where import Data.Foldable import Data.Traversable import Ask.Src.Thin import Ask.Src.Hide import Ask.Src.Bwd import Ask.Src.Lexing import Ask.Src.RawAsk import Ask.Src.Tm import Ask.Src.Glueing import Ask.Src.Context import Ask.Src.Typing i...
2c2da224c4cfbf07dc3fe890d3a1211fb89832b1f0d0200c79fd26d65926fd4d
jvf/scalaris
yaws_generated.erl
%%%---------------------------------------------------------------------- %%% File : yaws_generated.template Author : Klacke < > %%% Purpose : Created : 10 Jun 2002 by Klacke < > %%%---------------------------------------------------------------------- %% generated code from some environment variables -mod...
null
https://raw.githubusercontent.com/jvf/scalaris/c069f44cf149ea6c69e24bdb08714bda242e7ee0/contrib/yaws/src/yaws_generated.erl
erlang
---------------------------------------------------------------------- File : yaws_generated.template Purpose : ---------------------------------------------------------------------- generated code from some environment variables
Author : Klacke < > Created : 10 Jun 2002 by Klacke < > -module(yaws_generated). -author(''). -export([version/0, vardir/0, etcdir/0]). version() -> "2.0.2". vardir() -> "/usr/local/var". etcdir() -> "/usr/local/etc".
860c4341deb730ba9ad02a316370f033a2e98f0b44af21cd1bc09393496902fb
ocaml/dune
proc.ml
[ execve ] does n't exist on Windows , so instead we do a [ Unix.create_process_env ] followed by [ Unix.waitpid ] and finally [ sys_exit ] . We use [ sys_exit ] rather than [ exit ] so that [ at_exit ] functions are not invoked . We do n't want [ at_exit ] functions to be invoked to match the beh...
null
https://raw.githubusercontent.com/ocaml/dune/714626f4d408e5c71c24ba91d0d520588702ec52/otherlibs/stdune/src/proc.ml
ocaml
run at_exit before changing the working directory
[ execve ] does n't exist on Windows , so instead we do a [ Unix.create_process_env ] followed by [ Unix.waitpid ] and finally [ sys_exit ] . We use [ sys_exit ] rather than [ exit ] so that [ at_exit ] functions are not invoked . We do n't want [ at_exit ] functions to be invoked to match the beh...
a8ba877bec8f276a84febc384a873657f3565bc0dafdeb60d9c640f2cb5ee72e
parsonsmatt/servant-persistent
User.hs
# LANGUAGE DataKinds # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeOperators # module Api.User where import Control.Monad.Except (MonadIO, liftIO) import Control.Monad.Logger (logDebugNS) import qualified Control.Monad.Metrics as Metrics import Data.Int (Int64) import Database.Persist.Postgresql (Entity(...
null
https://raw.githubusercontent.com/parsonsmatt/servant-persistent/95df92b2fe9b0f421afa0cf1bcc9c3a4ca38b48c/src/Api/User.hs
haskell
# LANGUAGE OverloadedStrings # | The server that runs the UserAPI | Returns all users in the database. | Creates a user in the database. | Return wai metrics as JSON | Generates JavaScript to query the User API.
# LANGUAGE DataKinds # # LANGUAGE TypeOperators # module Api.User where import Control.Monad.Except (MonadIO, liftIO) import Control.Monad.Logger (logDebugNS) import qualified Control.Monad.Metrics as Metrics import Data.Int (Int64) import Database.Persist.Postgresql (Entity(..), fromSqlKey, insert, selectFirs...
458e902fb4e141741929b7eaab6bacabe8db8dce6d0d96bec26d3318d5ae30d0
exercism/common-lisp
etl.lisp
(defpackage :etl (:use :cl) (:export :transform)) (in-package :etl) (defun transform (data) "Transforms hash values into keys with their keys as their values." )
null
https://raw.githubusercontent.com/exercism/common-lisp/f3cdf6cf7e607138d1bb4d26c57999d4364af243/exercises/practice/etl/etl.lisp
lisp
(defpackage :etl (:use :cl) (:export :transform)) (in-package :etl) (defun transform (data) "Transforms hash values into keys with their keys as their values." )
57367a78ba9b78c8e4a3db1f15c3a8bb509170be0e5ec15323620aa334915d9a
c-cube/ocaml-containers
objsize.ml
(**************************************************************************) (* *) Copyright ( C ) (* *) (* This software is free software;...
null
https://raw.githubusercontent.com/c-cube/ocaml-containers/69f2805f1073c4ebd1063bbd58380d17e62f6324/benchs/objsize.ml
ocaml
************************************************************************ This software is free software; you can redistribute it and/or described in file LICENSE....
Copyright ( C ) modify it under the terms of the GNU Library General Public License version 2.1 , with the special exception on linking open Obj module H = Hashtbl.Make (struct type t = Obj.t let equal = ( == ) let hash o = Hashtbl.hash (magi...
99dbedb791b3745dbc560a28b04e26ac839f7983a666f58bcebe5b77f827f03e
mrossini-ethz/parseq
unit-test.lisp
Copyright ( c ) 2005 , 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 list of conditions and ...
null
https://raw.githubusercontent.com/mrossini-ethz/parseq/c14dc4ce0b40e2c565694534dccc9af26c0a8a1c/test/unit-test.lisp
lisp
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary fo...
Copyright ( c ) 2005 , All rights reserved . * Neither the name of the Peter Seibel nor the names of its " 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 THE...
22b1edfaaeb735442f6688184e884824d66661877f82d5654249d7f0c63801c8
jumarko/clojure-experiments
omnitrace.clj
(ns clojure-experiments.tracing.omnitrace "-trace" ;; this leads to circular dependency error in aws logs?! #_(:require [cyrik.omni-trace :as o])) ;; try this in `clojure-experiments.aws.logs` #_(o/rooted-flamegraph 'clojure-experiments.aws.logs/get-all-data)
null
https://raw.githubusercontent.com/jumarko/clojure-experiments/a87098fe69044ad65813a68cb870d824c2c2d18f/src/clojure_experiments/tracing/omnitrace.clj
clojure
this leads to circular dependency error in aws logs?! try this in `clojure-experiments.aws.logs`
(ns clojure-experiments.tracing.omnitrace "-trace" #_(:require [cyrik.omni-trace :as o])) #_(o/rooted-flamegraph 'clojure-experiments.aws.logs/get-all-data)
f8f42896b704642b328e1e74cb8cf1174c4417cf505a584d16409462f42e9e29
wdebeaum/step
enter.lisp
;;;; ;;;; W::enter ;;;; (define-words :pos W::v :TEMPL AGENT-AFFECTED-XP-NP-TEMPL :words ( (W::enter (wordfeats (W::morph (:forms (-vb) :past W::entered :ing W::entering))) (SENSES ((EXAMPLE "the vehicle entered the enclosure") (meta-data :origin calo-ontology :entry-date 20051213 :change-date nil :c...
null
https://raw.githubusercontent.com/wdebeaum/step/8810f7c877db4db809296c66275e070bfd969507/src/LexiconManager/Data/new/enter.lisp
lisp
W::enter (TEMPL AGENT-AFFECTED-XP-NP-TEMPL)
(define-words :pos W::v :TEMPL AGENT-AFFECTED-XP-NP-TEMPL :words ( (W::enter (wordfeats (W::morph (:forms (-vb) :past W::entered :ing W::entering))) (SENSES ((EXAMPLE "the vehicle entered the enclosure") (meta-data :origin calo-ontology :entry-date 20051213 :change-date nil :comments Penetrate) ...
96317876b8f431e500f810858a5ec4d2457d716d9cb3cb527f1e87459c20409d
Mayvenn/storefront
svg.cljc
(ns storefront.components.svg (:require [spice.maps :as maps] [storefront.component :as component :refer [defcomponent]] [storefront.assets :as assets])) ;; OPTIMIZATION TOOLS: ;; hiccup -> xml: Let the browser do it... then delete the data-reactid's ;; svg -> optimized svg: ;; ...
null
https://raw.githubusercontent.com/Mayvenn/storefront/6b26fe5bed28a7163d9ef1466e9532d862f1450a/src-cljc/storefront/components/svg.cljc
clojure
OPTIMIZATION TOOLS: hiccup -> xml: Let the browser do it... then delete the data-reactid's svg -> optimized svg: manual cleanup remove title, if warranted set id remove width and height remove xmlns ...
(ns storefront.components.svg (:require [spice.maps :as maps] [storefront.component :as component :refer [defcomponent]] [storefront.assets :as assets])) svg - > sprited svg : move svg to a ` symbol ` in sprites.svg use the same viewBox ...
7a95f4b08a2af14609ff8e5879211d285709bac0d536bc3bc9ca78572046ce79
paf31/language-typescript
Parser.hs
----------------------------------------------------------------------------- -- Module : Language . TypeScript . Copyright : ( c ) DICOM Grid Inc. 2013 License : MIT -- Maintainer : < > -- Stability : experimental -- Portability : -- -- | -- --------------------------------------...
null
https://raw.githubusercontent.com/paf31/language-typescript/b3f7dc5f00c768232aec455a0c32461f6bda7a53/src/Language/TypeScript/Parser.hs
haskell
--------------------------------------------------------------------------- Stability : experimental Portability : | ---------------------------------------------------------------------------
Module : Language . TypeScript . Copyright : ( c ) DICOM Grid Inc. 2013 License : MIT Maintainer : < > module Language.TypeScript.Parser ( declarationSourceFile, nextIdentifier ) where import Language.TypeScript.Types import Language.TypeScript.Lexer import Text.Parsec imp...
db1198af5ae9ba4eacbcb10696365f19f29a37c71e0d66011bfe3e69d6d18de7
ocamllabs/ocaml-effects
pr51_ok.ml
module X=struct module type SIG=sig type t=int val x:t end module F(Y:SIG) : SIG = struct type t=Y.t let x=Y.x end end;; module DUMMY=struct type t=int let x=2 end;; let x = (3 : X.F(DUMMY).t);; module X2=struct module type SIG=sig type t=int val x:t end module F(Y:SIG)(Z:SIG) = struct type t=Y.t let x=Y.x typ...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-effects/36008b741adc201bf9b547545344507da603ae31/testsuite/tests/typing-modules-bugs/pr51_ok.ml
ocaml
module X=struct module type SIG=sig type t=int val x:t end module F(Y:SIG) : SIG = struct type t=Y.t let x=Y.x end end;; module DUMMY=struct type t=int let x=2 end;; let x = (3 : X.F(DUMMY).t);; module X2=struct module type SIG=sig type t=int val x:t end module F(Y:SIG)(Z:SIG) = struct type t=Y.t let x=Y.x typ...
c29376da74786665ae96e04f3ba3d4666802bf5b05721b323a01b452b5b88b95
igarnier/ocaml-geth
storage.ml
open Lwt.Infix open Geth open Geth_lwt open Contract open Compile (* --------------------------------------------------------------------- *) (* Some helpful functions *) (* --------------------------------------------------------------------- *) Read password from stdin in a stealthy manner let read_secret () = ...
null
https://raw.githubusercontent.com/igarnier/ocaml-geth/e87ca9f86f79190aff108a14aaae6e925aed5641/examples/solidity/storage.ml
ocaml
--------------------------------------------------------------------- Some helpful functions --------------------------------------------------------------------- --------------------------------------------------------------------- Deploying a smart contract. We functorize the code over some global paramet...
open Lwt.Infix open Geth open Geth_lwt open Contract open Compile Read password from stdin in a stealthy manner let read_secret () = let open Unix in let term_init = tcgetattr stdin in let term_no_echo = {term_init with c_echo= false} in tcsetattr stdin TCSADRAIN term_no_echo ; let password = try read...
235138e669dffd2905f6e9839c2219cff6bee5af2b047f93b996832dd7cdfb4f
jaspervdj/number-six
Join.hs
-- | Module to join channels -- {-# LANGUAGE OverloadedStrings #-} module NumberSix.Handlers.Join ( handler ) where import Control.Monad (forM_, when) import Control.Applicative ((<$>)) import NumberSix.Irc import NumberSix.Bang import NumberSix.Util handler :: UninitializedHandler handler = makeHandler "Joi...
null
https://raw.githubusercontent.com/jaspervdj/number-six/1aba681786bd85bd20f79406c681ea581b982cd6/src/NumberSix/Handlers/Join.hs
haskell
| Module to join channels # LANGUAGE OverloadedStrings #
module NumberSix.Handlers.Join ( handler ) where import Control.Monad (forM_, when) import Control.Applicative ((<$>)) import NumberSix.Irc import NumberSix.Bang import NumberSix.Util handler :: UninitializedHandler handler = makeHandler "Join" [autoJoinHook, joinHook, rejoinHook] autoJoinHook :: Irc () aut...
a28b9a94d5aa92b3c2cf708a399d31d85d3fde0c5fce87727281382031808eb2
juxt/shop
system_test.clj
Copyright © 2016 , JUXT LTD . (ns edge.system-test (:require [clojure.test :refer :all :exclude [deftest]] [integrant.core :as ig] [edge.test.system :refer [with-system-fixture *system*]] [schema.test :refer [deftest]] [yada.test :refer [response-for]])) (defn new-system "Define a minimal system ...
null
https://raw.githubusercontent.com/juxt/shop/c23fc55bca1852bfbabb681a72debc12373c3a36/examples/main/test/edge/system_test.clj
clojure
Copyright © 2016 , JUXT LTD . (ns edge.system-test (:require [clojure.test :refer :all :exclude [deftest]] [integrant.core :as ig] [edge.test.system :refer [with-system-fixture *system*]] [schema.test :refer [deftest]] [yada.test :refer [response-for]])) (defn new-system "Define a minimal system ...
ded62582b9cbf44cbaa3fd350087f1abcbfc659a91795319f30944ce964bd558
returntocorp/semgrep
Testutil_files.ml
Utilities for creating , scanning , and deleting a hierarchy of test files . Utilities for creating, scanning, and deleting a hierarchy of test files. *) open Printf let ( / ) = Fpath.( / ) let ( // ) = Fpath.( // ) type t = | Dir of string * t list | File of string * string | Symlink of stri...
null
https://raw.githubusercontent.com/returntocorp/semgrep/88135d1c4affe447c98819b677160069fc4b3270/libs/commons/Testutil_files.ml
ocaml
files are automatically deleted as part of the cleanup done by 'with_tempdir'.
Utilities for creating , scanning , and deleting a hierarchy of test files . Utilities for creating, scanning, and deleting a hierarchy of test files. *) open Printf let ( / ) = Fpath.( / ) let ( // ) = Fpath.( // ) type t = | Dir of string * t list | File of string * string | Symlink of stri...
d239f44cd4b37e2b56dbb4dfbc3bb478ebc52833ec0b6d8d365b09f4dff462ab
cac-t-u-s/om-sharp
lisptools.lisp
;============================================================================ ; om#: visual programming language for computer-assisted music composition ;============================================================================ ; ; This program is free software. For information on usage ; and redistribution, see...
null
https://raw.githubusercontent.com/cac-t-u-s/om-sharp/74aa97891177de1d167aa5963be00f0d453a3bcd/src/visual-language/utils/lisptools.lisp
lisp
============================================================================ om#: visual programming language for computer-assisted music composition ============================================================================ This program is free software. For information on usage and redistribution, see the "...
File author : Misc . Lisp Tools for OM (in-package :om) (defconstant *positive-infinity* most-positive-fixnum) (defconstant *negative-infinity* most-negative-fixnum) (defun list! (thing) (if (listp thing) thing (list thing))) (defun list+ (&rest lists) (apply 'concatenate (append (list 'list) lists))) (defu...
ff4402c60da54d83218ae3fd4505583cf00010035d0204d97fab625fe04c2d58
crategus/cl-cffi-gtk
rtest-gtk-notebook.lisp
(def-suite gtk-notebook :in gtk-suite) (in-suite gtk-notebook) ;;; --- Types and Values ------------------------------------------------------- ;;; GtkNotebook (test gtk-notebook-class ;; Type check (is (g-type-is-object "GtkNotebook")) ;; Check the registered name (is (eq 'gtk-notebook (regist...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/ba198f7d29cb06de1e8965e1b8a78522d5430516/test/rtest-gtk-notebook.lisp
lisp
--- Types and Values ------------------------------------------------------- GtkNotebook Type check Check the registered name Check the type initializer Check the parent Check the children Check the interfaces Check the class properties Get the names of the style properties. Get the names of the child pr...
(def-suite gtk-notebook :in gtk-suite) (in-suite gtk-notebook) (test gtk-notebook-class (is (g-type-is-object "GtkNotebook")) (is (eq 'gtk-notebook (registered-object-type-by-name "GtkNotebook"))) (is (eq (gtype "GtkNotebook") (gtype (foreign-funcall "gtk_notebook_get_type" g-size)))) (is...
774f00f7bdd71c7faf4202e85a1f8de1c5662883c3e3e0ed2ebd50752e6b05e1
lem-project/lem
main.lisp
(uiop:define-package :lem-encodings-table/main (:use :cl) (:export :generate-table)) (in-package :lem-encodings-table/main) (defun generate-table () (lem-encodings-table/sjis:generate-table (asdf:system-relative-pathname :lem-encodings "cp932.table") "CP932") (lem-encodings-table/euc:generate-table (...
null
https://raw.githubusercontent.com/lem-project/lem/2efd909118a24434623907330de7302143358f1c/lib/encodings/encodings-table/main.lisp
lisp
(uiop:define-package :lem-encodings-table/main (:use :cl) (:export :generate-table)) (in-package :lem-encodings-table/main) (defun generate-table () (lem-encodings-table/sjis:generate-table (asdf:system-relative-pathname :lem-encodings "cp932.table") "CP932") (lem-encodings-table/euc:generate-table (...
9e15cdfab652728ad6b07a4e3b46b5c8db8f733f467288dcf0eeb173e91cc8a7
snowleopard/hadrian
Alex.hs
module Settings.Builders.Alex (alexBuilderArgs) where import Settings.Builders.Common alexBuilderArgs :: Args alexBuilderArgs = builder Alex ? mconcat [ arg "-g" , arg =<< getInput , arg "-o", arg =<< getOutput ]
null
https://raw.githubusercontent.com/snowleopard/hadrian/b9a3f9521b315942e1dabb006688ee7c9902f5fe/src/Settings/Builders/Alex.hs
haskell
module Settings.Builders.Alex (alexBuilderArgs) where import Settings.Builders.Common alexBuilderArgs :: Args alexBuilderArgs = builder Alex ? mconcat [ arg "-g" , arg =<< getInput , arg "-o", arg =<< getOutput ]
21cc9a94bef02c96ebef38b7649a072440e09e821bd049647e898385fe19e0d9
facebookarchive/pfff
pervasives.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/external/stdlib/pervasives.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with $ I d : pervasives.mli , v 1.99.2.3 2...
9590cfa45bb7e13263340f43adb233dfc4d722a9772333438c1a12bfd25f8675
joewilliams/erl_geo_dns
geo_dns_sup.erl
-module(geo_dns_sup). -behaviour(supervisor). -export([start_link/0, init/1]). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). init(_) -> {ok, Port} = application:get_env(geo_dns, port), {ok, Host} = application:get_env(geo_dns, host), GeoDNSSpec = [ {geo_dns_udp, {geo_dns_udp, st...
null
https://raw.githubusercontent.com/joewilliams/erl_geo_dns/682c3925959db61ead99f13160ef8bd77486a871/apps/geo_dns/src/geo_dns_sup.erl
erlang
-module(geo_dns_sup). -behaviour(supervisor). -export([start_link/0, init/1]). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). init(_) -> {ok, Port} = application:get_env(geo_dns, port), {ok, Host} = application:get_env(geo_dns, host), GeoDNSSpec = [ {geo_dns_udp, {geo_dns_udp, st...
ba70b1881657c23d32e56a92de47325fca1c562a10496e3d9a331962f4970eaf
eugeneia/athens
streams.lisp
#+xcvb (module (:depends-on ("package"))) (in-package :trivial-gray-streams) (defclass fundamental-stream (impl-specific-gray:fundamental-stream) ()) (defclass fundamental-input-stream (fundamental-stream impl-specific-gray:fundamental-input-stream) ()) (defclass fundamental-output-stream (fundamental-stream ...
null
https://raw.githubusercontent.com/eugeneia/athens/cc9d456edd3891b764b0fbf0202a3e2f58865cbf/quicklisp/dists/quicklisp/software/trivial-gray-streams-20180328-git/streams.lisp
lisp
Default methods for stream-read/write-sequence. It would be nice to implement default methods in trivial gray streams, maybe borrowing the code simplicity we will fallback to default implementation of the implementation-specific analogue function which calls us. Implementations should provide this default method...
#+xcvb (module (:depends-on ("package"))) (in-package :trivial-gray-streams) (defclass fundamental-stream (impl-specific-gray:fundamental-stream) ()) (defclass fundamental-input-stream (fundamental-stream impl-specific-gray:fundamental-input-stream) ()) (defclass fundamental-output-stream (fundamental-stream ...
be05f040ded92b6479b77b31ba0dcd61f01ec08f7aca598fd75b100e6ef4a453
AdRoll/rebar3_format
sort_arity_qualifiers_uppercase_names.erl
-module(sort_arity_qualifiers_uppercase_names). -format #{sort_arity_qualifiers => true}. -export(['SECOND_FUNCTION'/3, 'ABC_FIRST_FUNCTION'/1, 'SECOND_FUNCTION'/2, lowercase_function/0]). 'ABC_FIRST_FUNCTION'(_) -> ok. 'SECOND_FUNCTION'(_, _, _) -> 'SECOND_FUNCTION'(). 'SECOND_FUNCTION'() -> ok. 'SEC...
null
https://raw.githubusercontent.com/AdRoll/rebar3_format/7292c4e309491a19294ec5b2ff0b86a98b01d72c/test_app/src/sort_arity_qualifiers/sort_arity_qualifiers_uppercase_names.erl
erlang
-module(sort_arity_qualifiers_uppercase_names). -format #{sort_arity_qualifiers => true}. -export(['SECOND_FUNCTION'/3, 'ABC_FIRST_FUNCTION'/1, 'SECOND_FUNCTION'/2, lowercase_function/0]). 'ABC_FIRST_FUNCTION'(_) -> ok. 'SECOND_FUNCTION'(_, _, _) -> 'SECOND_FUNCTION'(). 'SECOND_FUNCTION'() -> ok. 'SEC...
da599cf231aaf47ab79340d76b80ac64a0db9033912f9ce93bbcb9f775e0ab6b
geophf/1HaskellADay
Solution.hs
module Y2020.M07.D29.Solution where - " How many days from today until ... ? " ' Days ' are an interesting concept , thanks to The Real World(tm ) calendar . So , computing number of days from here to there is not a metric calculation . Today , we 're going to compute the number of days until ... April 15th ...
null
https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2020/M07/D29/Solution.hs
haskell
} }
module Y2020.M07.D29.Solution where - " How many days from today until ... ? " ' Days ' are an interesting concept , thanks to The Real World(tm ) calendar . So , computing number of days from here to there is not a metric calculation . Today , we 're going to compute the number of days until ... April 15th ...
1f6cb28142569fb7f1b14352f0ef0c90f58924af01bcd2c4485bfc6f81a110fa
janegca/htdp2e
Exercise-229-WordGameWithLocalDefns.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-reader.ss" "lang")((modname Exercise-229-WordGameWithLocalDefns) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teac...
null
https://raw.githubusercontent.com/janegca/htdp2e/2d50378135edc2b8b1816204021f8763f8b2707b/03-Abstractions/Exercise-229-WordGameWithLocalDefns.rkt
racket
about the language level of this file in a form that our tools can easily process. Use a local expression to organize the functions for rearranging words 1String List-of-words -> List-of-words insert the given 1String into every position in every word in the given list of words 1String Word -> List-of-words i...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-reader.ss" "lang")((modname Exercise-229-WordGameWithLocalDefns) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp"))) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ((li...
a613ae4909c66e962d231e9cbde45852842f10f530a01b149b189dc476dabd6f
sanette/oplot
logistique.ml
(* Oplot example of User object: bifurcation diagram for the logistic map *) open Oplot.Plt open Oplot.Points.Point2 let rec iterate r x_init i = if i == 1 then x_init else let x = iterate r x_init (i - 1) in r *. x *. (1.0 -. x) let rec trace ~progress x0 x1 step v dev = if x0 > x1 then () else ...
null
https://raw.githubusercontent.com/sanette/oplot/02b35d794fd0f42407a75edded11c2a58d7a3f29/bin/logistique.ml
ocaml
Oplot example of User object: bifurcation diagram for the logistic map we force showing the picture in progress: BUG: Freeze prevents proper rescaling of the window
open Oplot.Plt open Oplot.Points.Point2 let rec iterate r x_init i = if i == 1 then x_init else let x = iterate r x_init (i - 1) in r *. x *. (1.0 -. x) let rec trace ~progress x0 x1 step v dev = if x0 > x1 then () else let imax = int_of_float (exp 4. *. (x0 -. 2.)) in let rec loop i list = ...
02b62721547a77f59615455ff4ec5c3264c25f497ba577d19728d8d8cf7917da
ucsd-progsys/nate
frx_toplevel.mli
(***********************************************************************) (* *) MLTk , Tcl / Tk interface of Objective Caml (* *) , , and ...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/otherlibs/labltk/frx/frx_toplevel.mli
ocaml
********************************************************************* described in file LICENSE found in the...
MLTk , Tcl / Tk interface of Objective Caml , , and projet Cristal , INRIA Rocquencourt , Kyoto University RIMS Copyright 2002 Institut National de Recherche en Informatique et en Automatique and...
fe202bac22296ca8cb69e154bc5a85825f4da020ae8a1a5ab5b79fc8f3876012
zaneli/hdbc-clickhouse
Server.hs
module Database.HDBC.ClickHouse.Protocol.PacketTypes.Server where import Data.Word hello :: Word8 hello = 0 blockOfData :: Word8 blockOfData = 1 exception :: Word8 exception = 2 progress :: Word8 progress = 3 pong :: Word8 pong = 4 endOfStream :: Word8 endOfStream = 5 profileInfo :: Word8 profileInfo = 6 total...
null
https://raw.githubusercontent.com/zaneli/hdbc-clickhouse/bf2ea2583ba5de63b943e95f597f17ac336920d8/src/Database/HDBC/ClickHouse/Protocol/PacketTypes/Server.hs
haskell
module Database.HDBC.ClickHouse.Protocol.PacketTypes.Server where import Data.Word hello :: Word8 hello = 0 blockOfData :: Word8 blockOfData = 1 exception :: Word8 exception = 2 progress :: Word8 progress = 3 pong :: Word8 pong = 4 endOfStream :: Word8 endOfStream = 5 profileInfo :: Word8 profileInfo = 6 total...
903e7595e2a11b35015e700527a51b75c9e97c20b1b817486250f825983ea764
ZHaskell/stdio
BitTwiddle.hs
# LANGUAGE CPP # # LANGUAGE MagicHash # {-# LANGUAGE UnliftedFFITypes #-} | Module : Std . Data . PrimArray . BitTwiddle Description : Primitive bits twiddling Copyright : ( c ) , 2017 - 2018 License : BSD Maintainer : Stability : experimental Portability : non - portable This mo...
null
https://raw.githubusercontent.com/ZHaskell/stdio/7887b9413dc9feb957ddcbea96184f904cf37c12/std-data/Std/Data/PrimArray/BitTwiddle.hs
haskell
# LANGUAGE UnliftedFFITypes # we need to know word size -check-for-zero-byte.html | Search a word8 in array. Currently this function is ~4 times slow than c version, so we didn't use it. array target start offset search length array target start offset search length | The unboxed version of 'memchrRe...
# LANGUAGE CPP # # LANGUAGE MagicHash # | Module : Std . Data . PrimArray . BitTwiddle Description : Primitive bits twiddling Copyright : ( c ) , 2017 - 2018 License : BSD Maintainer : Stability : experimental Portability : non - portable This module implement some bit twiddling ...
50b9d17bbbd74662e202bddfc74a1d392d6a929b9ce063496923914a653746fb
fulcrologic/semantic-ui-wrapper
ui_menu_menu.cljc
(ns com.fulcrologic.semantic-ui.collections.menu.ui-menu-menu (:require [com.fulcrologic.semantic-ui.factory-helpers :as h] #?(:cljs ["semantic-ui-react$MenuMenu" :as MenuMenu]))) (def ui-menu-menu "A menu can contain a sub menu. Props: - as (elementType): An element type to render as (string or f...
null
https://raw.githubusercontent.com/fulcrologic/semantic-ui-wrapper/7bd53f445bc4ca7e052c69596dc089282671df6c/src/main/com/fulcrologic/semantic_ui/collections/menu/ui_menu_menu.cljc
clojure
(ns com.fulcrologic.semantic-ui.collections.menu.ui-menu-menu (:require [com.fulcrologic.semantic-ui.factory-helpers :as h] #?(:cljs ["semantic-ui-react$MenuMenu" :as MenuMenu]))) (def ui-menu-menu "A menu can contain a sub menu. Props: - as (elementType): An element type to render as (string or f...
d513a917df07c611fa64b96dcb48f02a71eaea14496a2fee7233da58a6f43b75
travelping/capwap
capwap_config_http.erl
Copyright ( C ) 2013 - 2023 , Travelping GmbH < > %% This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or %% (at your option) any later version. %% Thi...
null
https://raw.githubusercontent.com/travelping/capwap/c2e503c5ad7d6b4c0ff3df2a4d5deed73d5f7c51/src/capwap_config_http.erl
erlang
This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General P...
Copyright ( C ) 2013 - 2023 , Travelping GmbH < > it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU Affero General Public License -module(capwap_config_http). -export([...
21b7579c32ca388f5802f90d0b5f9c0e6ee6bc1b9cceb9eb467f70f6d35539e9
jscrane/jvml
test_ex2.clj
(ns ml.test-ex2 (:use (clojure test) (ml util testutil) [ml.ex2 :only (init-ex2 cost predict training-accuracy)] [ml.ex2-reg :only (init-ex2-reg reg-cost reg-accuracy)])) (def approx (approximately 1e-3)) (deftest ex2 (let [{:keys [X y norm theta]} (init-ex2)] (is (approx 0.693 (cost X...
null
https://raw.githubusercontent.com/jscrane/jvml/844eb267150564a3a0f882edbbd505ce94924c8f/test/ml/test_ex2.clj
clojure
(ns ml.test-ex2 (:use (clojure test) (ml util testutil) [ml.ex2 :only (init-ex2 cost predict training-accuracy)] [ml.ex2-reg :only (init-ex2-reg reg-cost reg-accuracy)])) (def approx (approximately 1e-3)) (deftest ex2 (let [{:keys [X y norm theta]} (init-ex2)] (is (approx 0.693 (cost X...
598def30bd03b12bbb668a52d683fc46c26df1ece4ba44b89efe513c818ba199
haskell/win32
Semaphores.hs
module Main where import Control.Concurrent ( forkIO, threadDelay ) import Control.Monad ( void ) import Data.Foldable ( for_ ) import System.Win32.Event ( waitForSingleObject ) import System.Win32.File ( closeHandle ) import System.Win32.Semaphore ( Semaphore(..), createSemaphore, releaseSemaphore ) mai...
null
https://raw.githubusercontent.com/haskell/win32/3fb78d425b3934ac393a6570833ff0b68ec5a89f/tests/Semaphores.hs
haskell
False True False 5 ms 1 ms 100 ms 1 ms 50 ms
module Main where import Control.Concurrent ( forkIO, threadDelay ) import Control.Monad ( void ) import Data.Foldable ( for_ ) import System.Win32.Event ( waitForSingleObject ) import System.Win32.File ( closeHandle ) import System.Win32.Semaphore ( Semaphore(..), createSemaphore, releaseSemaphore ) mai...
a6ac7127093ae639dd7e56b91d6932b3bed5498193912634d2324edca8346dc4
fragnix/fragnix
Data.Text.Internal.Builder.hs
# LANGUAGE Haskell98 # # LINE 1 " Data / Text / Internal / Builder.hs " # # LANGUAGE BangPatterns , CPP , Rank2Types # # OPTIONS_HADDOCK not - home # ----------------------------------------------------------------------------- -- | -- Module : Data....
null
https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/tests/packages/application/Data.Text.Internal.Builder.hs
haskell
--------------------------------------------------------------------------- | Module : Data.Text.Internal.Builder License : BSD-style (see LICENSE) Stability : experimental /Warning/: this is an internal module, and does not have a stable API or name. Functions in this module may not check or enforce...
# LANGUAGE Haskell98 # # LINE 1 " Data / Text / Internal / Builder.hs " # # LANGUAGE BangPatterns , CPP , Rank2Types # # OPTIONS_HADDOCK not - home # Copyright : ( c ) 2013 ( c ) 2010 Maintainer : < > Portability : portab...
d745217acdaedecef5a127209164776d49354bee78b79b1c06ddab79a5620902
borkdude/advent-of-cljc
jreighley.cljc
(ns aoc.y2018.d07.jreighley (:require [aoc.utils :as u :refer [deftest]] [aoc.y2018.d07.data :refer [input answer-1 answer-2]] [clojure.string :refer [split-lines]] [clojure.test :refer [is testing]])) (def sched (delay (let [raw (split-lines input) precedent-keys (sort-by first (map #(v...
null
https://raw.githubusercontent.com/borkdude/advent-of-cljc/17c8abb876b95ab01eee418f1da2e402e845c596/src/aoc/y2018/d07/jreighley.cljc
clojure
(ns aoc.y2018.d07.jreighley (:require [aoc.utils :as u :refer [deftest]] [aoc.y2018.d07.data :refer [input answer-1 answer-2]] [clojure.string :refer [split-lines]] [clojure.test :refer [is testing]])) (def sched (delay (let [raw (split-lines input) precedent-keys (sort-by first (map #(v...
2466eec8e7b8620beaea7cff5a54b9cb80a92078f4e4ef58fded5dfae8363bf2
hverr/lxdfile
Main.hs
# LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # module Main where import Control.Monad.Except (ExceptT, MonadError, runExceptT, throwError) import Control.Monad.IO.Class (MonadIO, liftIO) import Data.Monoid ((<>)) import Data.Version (showVersion) import Options.Applicative import System.Exit ...
null
https://raw.githubusercontent.com/hverr/lxdfile/16c371b3ab3aff2ebc4bb1fc7f6a7c45f0b91b01/app/Main.hs
haskell
^ LXDFile, image tag, base directory, and base image ^ Image, container, context, profile, list of init scripts ^ Container, init scripts
# LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # module Main where import Control.Monad.Except (ExceptT, MonadError, runExceptT, throwError) import Control.Monad.IO.Class (MonadIO, liftIO) import Data.Monoid ((<>)) import Data.Version (showVersion) import Options.Applicative import System.Exit ...
67234a5517da7839067b6d60480303f47a1e4066f91bc6a7cbc6ba4456d17f33
thoughtbot/carnival
User.hs
module Handler.User where import Import import Model.User () import Helper.Request getUserR :: Handler Value getUserR = do allowCrossOrigin user <- requireAuth return $ object ["user" .= user]
null
https://raw.githubusercontent.com/thoughtbot/carnival/1cd4bd02ea6884b86020029257ab69ec3892a168/Handler/User.hs
haskell
module Handler.User where import Import import Model.User () import Helper.Request getUserR :: Handler Value getUserR = do allowCrossOrigin user <- requireAuth return $ object ["user" .= user]
2487bde8dd23f14c444c20fec27336ecc71852a1797db4a441060855507804c3
alexandergunnarson/quantum
io.cljc
(ns quantum.test.core.io)
null
https://raw.githubusercontent.com/alexandergunnarson/quantum/0c655af439734709566110949f9f2f482e468509/test/quantum/test/core/io.cljc
clojure
(ns quantum.test.core.io)
4f2c2473f43ce6684208fd5abc2bf6bd6d6a5464e5ec8b2501893e77c6ce5195
TrustInSoft/tis-interpreter
ltl_output.mli
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of Aorai plug - in of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/aorai/ltl_output.mli
ocaml
************************************************************************ alternatives) Automatique) ...
Modified by TrustInSoft This file is part of Aorai plug - in of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat à l'énergie atomique et aux énergies ( Institut National de Recherche en Informatique et en ...
8fe568e8dd49b9fdbbeac9f693c351f37866c1dd926d3526d0c2b6ff030d1c10
tisnik/clojure-examples
core.clj
; ( C ) Copyright 2016 , 2020 , 2021 ; ; All rights reserved. This program and the accompanying materials ; are made available under the terms of the Eclipse Public License v1.0 ; which accompanies this distribution, and is available at -v10.html ; ; Contributors: ; (ns consume-messages-3.core ...
null
https://raw.githubusercontent.com/tisnik/clojure-examples/a5f9d6119b62520b05da64b7929d07b832b957ab/kafka-consume-messages-3/src/consume_messages_3/core.clj
clojure
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors:
( C ) Copyright 2016 , 2020 , 2021 -v10.html (ns consume-messages-3.core (:require [jackdaw.client :as jc] [jackdaw.client.log :as jl] [clojure.pprint :as pp])) (def consumer-config {"bootstrap.servers" "localhost:9092" "key.deserializer" "org.apache.kafka.common.seri...
de15fd545fb0ab07a48f82ce2d4ac6ef435f71c1a699e5bd4659f006f4406b43
capnproto/capnp-ocaml
defaults.ml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * capnp - ocaml * * Copyright ( c ) 2013 - 2014 , * All rights reserved . * * Redistribution and use in source and binary forms , with or without ...
null
https://raw.githubusercontent.com/capnproto/capnp-ocaml/dda3d811aa7734110d7af051465011f1f823ffb9/src/compiler/defaults.ml
ocaml
Message storage. Array of structs which have been stored in the message, along with their unique identifiers. Array of lists which have been stored in the message, along with their unique identifiers. Array of pointers which have been stored in the message, along with their unique identifiers. E...
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * capnp - ocaml * * Copyright ( c ) 2013 - 2014 , * All rights reserved . * * Redistribution and use in source and binary forms , with or without ...
5d021a59083e6d9354b82f3b641aeaba0a471fd84e797e4b629306fa82c900ef
ghc/nofib
S_matrix.hs
Diffusion matrix XZ , 24/10/91 Diffusion matrix XZ, 24/10/91 -} Modified to adopt S_array The way in which the matrix is constructed has been changed . XZ , 19/2/92 Modified to adopt S_array The way in which the matrix is constructed has been changed. XZ, 19/2/92 -} module S_matrix (...
null
https://raw.githubusercontent.com/ghc/nofib/f34b90b5a6ce46284693119a06d1133908b11856/real/fluid/S_matrix.hs
haskell
not needed w/ proper module handling ditto --------------------------------------------------------- Diffusion matrix. -- Used in assembling rh1. -- Parameters: -- gdij : jth entry of ith element factor c...
Diffusion matrix XZ , 24/10/91 Diffusion matrix XZ, 24/10/91 -} Modified to adopt S_array The way in which the matrix is constructed has been changed . XZ , 19/2/92 Modified to adopt S_array The way in which the matrix is constructed has been changed. XZ, 19/2/92 -} module S_matrix (...
5e9360f1431a4fbcd1ce95acf22636cea23945ebcaebec12e8a0f5e9e326d1a1
SamB/coq
record.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/SamB/coq/8f84aba9ae83a4dc43ea6e804227ae8cae8086b1/toplevel/record.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i $Id$ i i i [declare_projections r...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Names open Term open ...
30e228dd9a404abeb96dcbb5eb8cdeb83b54fa343684e3052667e36ac58d3407
haas/harmtrace
GuptaNishimura.hs
# OPTIONS_GHC -Wall # # LANGUAGE MagicHash # {-# LANGUAGE BangPatterns #-} module HarmTrace.Matching.GuptaNishimura ( getLCES , getLCESsize , getLCESdepth, getLCESsim) where -------------------------------------------------------------------------------- Finding the Larg...
null
https://raw.githubusercontent.com/haas/harmtrace/e250855a3bb6e5b28fe538c728f707cf82ca9fd3/src/HarmTrace/Matching/GuptaNishimura.hs
haskell
# LANGUAGE BangPatterns # ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Top Level LCES function ------------------------------...
# OPTIONS_GHC -Wall # # LANGUAGE MagicHash # module HarmTrace.Matching.GuptaNishimura ( getLCES , getLCESsize , getLCESdepth, getLCESsim) where Finding the Largest Common ( LCES ) Based on : , and Nishimura , N. ( 1998 ) Finding largest subtrees and sma...
dfb96eaa93e72f9f676deb6ae6e04f53c4259cacffb3afea0acee1d6b982aa48
racket/racket7
head.rkt
#lang racket/base (require racket/date racket/string) (provide empty-header validate-header extract-field remove-field insert-field replace-field extract-all-fields append-headers standard-message-header data-lines->data extract...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/collects/net/head.rkt
racket
into "bytes-compatible" versions. Finishing the rest will require some kind of interface decision---that is, when you don't supply a header, should the resulting operation be string-centric or bytes-centric? Easiest just to stop here. validated otherwise it should be a string: validated Rest of header is this ...
#lang racket/base (require racket/date racket/string) (provide empty-header validate-header extract-field remove-field insert-field replace-field extract-all-fields append-headers standard-message-header data-lines->data extract...
66cc7d7819a88e4c517216fb05047598dbbcfecded22ccd3b94d4c24dc4a3571
jrm-code-project/LISP-Machine
bootstrap.lisp
-*- Mode : LISP ; Package : SITE - DATA - EDIT ; ; : CL -*- Copyright ( c ) Lisp Machine Inc. , 1986 . ;;; NOW. SPECIAL BOOTSTRAP CONSIDERATIONS ARE DEALT WITH. 3 - May-86 12:34:23 -GJC (DEFUN BOOTSTRAP-SITE-INFORMATION (&OPTIONAL DISK) (LET ((INFO (BOOTSTRAP-READ-INFORMATION (ECASE DISK ...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/network/edit/bootstrap.lisp
lisp
Package : SITE - DATA - EDIT ; ; : CL -*- NOW. SPECIAL BOOTSTRAP CONSIDERATIONS ARE DEALT WITH. must bind above to keep reset-non-site-hosts from reading site files again.
Copyright ( c ) Lisp Machine Inc. , 1986 . 3 - May-86 12:34:23 -GJC (DEFUN BOOTSTRAP-SITE-INFORMATION (&OPTIONAL DISK) (LET ((INFO (BOOTSTRAP-READ-INFORMATION (ECASE DISK (NIL NIL) (:SAVE T))))) (LET ((DATA (BOOTSTRAP-RE...
6a9c6016ea19596245b0c08b5b0b9b65a1257ab17af1618fac0793b200afd2f7
Virtual-Insurance-Products/cldb
metaclass.lisp
(in-package :cldb) (defclass cldb-class (standard-class) ((table-name :initform nil :initarg :table-name))) can only subclass - superclass (defmethod ccl:validate-superclass ((class cldb-class) (superclass standard-class)) ( eq superclass ( find - class ' - entity ) ) t) ... or another class ( which i...
null
https://raw.githubusercontent.com/Virtual-Insurance-Products/cldb/43e0f10b6ce2e834f73a8b0c8477ca5b01df38f2/metaclass.lisp
lisp
by default the ID slot is a normal one and the rest come from the database !!! I think I should do this differently (see the definition in relations/postgres-class - I'm not sure that is right !!! CHECK THIS This, I think, is how I will get the inheritance thing to work again walk up the class hierarchy make som...
(in-package :cldb) (defclass cldb-class (standard-class) ((table-name :initform nil :initarg :table-name))) can only subclass - superclass (defmethod ccl:validate-superclass ((class cldb-class) (superclass standard-class)) ( eq superclass ( find - class ' - entity ) ) t) ... or another class ( which i...
49f36daf9060d9104ca77bf87004579027fa130f363c78b83d214e89fb1ce630
techascent/tech.compute
context.clj
(ns tech.compute.context "Compute context allows someone to setup the default driver, device, and stream to use in function calls." (:require [tech.compute.registry :as registry] [tech.compute.driver :as drv])) (def ^:dynamic *context {}) (defn default-driver [] (or (:driver *context) (r...
null
https://raw.githubusercontent.com/techascent/tech.compute/716d270da7018915bcdb42d9942d33991b5931c8/src/tech/compute/context.clj
clojure
(ns tech.compute.context "Compute context allows someone to setup the default driver, device, and stream to use in function calls." (:require [tech.compute.registry :as registry] [tech.compute.driver :as drv])) (def ^:dynamic *context {}) (defn default-driver [] (or (:driver *context) (r...
3cf801a601170aebce4de8770ab42aaf87bbe831f3fb8bbe93949d6b10503c26
MyDataFlow/ttalk-server
ejabberd_config.erl
%%%---------------------------------------------------------------------- %%% File : ejabberd_config.erl Author : < > %%% Purpose : Load config file Created : 14 Dec 2002 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2011 ProcessOne %%% %%% This program is free software; you can redistribute it a...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/apps/ejabberd/src/ejabberd_config.erl
erlang
---------------------------------------------------------------------- File : ejabberd_config.erl Purpose : Load config file This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITH...
Author : < > Created : 14 Dec 2002 by < > ejabberd , Copyright ( C ) 2002 - 2011 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public License Founda...