_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 |
|---|---|---|---|---|---|---|---|---|
efa5c3f8c8da8e61d6d0c0aa71ea7a21593cb110b513d18343780f6d4618400f | cedlemo/OCaml-GI-ctypes-bindings-generator | Font_chooser_widget_private.ml | open Ctypes
open Foreign
type t
let t_typ : t structure typ = structure "Font_chooser_widget_private"
| null | https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Font_chooser_widget_private.ml | ocaml | open Ctypes
open Foreign
type t
let t_typ : t structure typ = structure "Font_chooser_widget_private"
| |
dc91507a98f335d3f66d7cd861d2a095af8ea8ef316ddb1c9f220b4f1934ba55 | dparis/gen-phzr | animation_manager.cljs | (ns phzr.animation-manager
(:require [phzr.impl.utils.core :refer [clj->phaser phaser->clj]]
[phzr.impl.extend :as ex]
[cljsjs.phaser])
(:refer-clojure :exclude [next]))
(defn ->AnimationManager
"The Animation Manager is used to add, play and update Phaser Animations.
Any Game Object su... | null | https://raw.githubusercontent.com/dparis/gen-phzr/e4c7b272e225ac343718dc15fc84f5f0dce68023/out/animation_manager.cljs | clojure | (ns phzr.animation-manager
(:require [phzr.impl.utils.core :refer [clj->phaser phaser->clj]]
[phzr.impl.extend :as ex]
[cljsjs.phaser])
(:refer-clojure :exclude [next]))
(defn ->AnimationManager
"The Animation Manager is used to add, play and update Phaser Animations.
Any Game Object su... | |
965888b4063e43803673307a1436ce579898d06c08216308383e1f860ccc177a | samrushing/irken-compiler | t_strlen.scm | ;; -*- Mode: Irken -*-
(include "lib/basis.scm")
(include "lib/map.scm")
(libc/strlen (cstring "howdythere\x00"))
| null | https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/tests/t_strlen.scm | scheme | -*- Mode: Irken -*- |
(include "lib/basis.scm")
(include "lib/map.scm")
(libc/strlen (cstring "howdythere\x00"))
|
50da8285986693db82074ca99c8ca9f394dc93edccaea70a0bcb1bb516098ace | WFP-VAM/RAMResourcesScripts | CARI-indicator-calculation.sps | Methods to calculating the Consolidated Approach for Reporting Indicators of Food Security
********CALCULATE CARI using FCS, rCSI, LCS and FES ********
***Food Consumption Score***
***define labels
Variable labels
FCSStap ‘How many days over the last 7 days, did members of your household eat cereals, rain... | null | https://raw.githubusercontent.com/WFP-VAM/RAMResourcesScripts/236e1a630f053d27161c73dfe01a9ef04b7ebdcc/Indicators/Consolidated-Approach-to-Reporting-Indicators-of-Food-Security/CARI-indicator-calculation.sps | scheme | bottled water; soft drinks; juice)
bottled water; soft drinks; juice) | Methods to calculating the Consolidated Approach for Reporting Indicators of Food Security
********CALCULATE CARI using FCS, rCSI, LCS and FES ********
***Food Consumption Score***
***define labels
Variable labels
FCSStap ‘How many days over the last 7 days, did members of your household eat cereals, rain... |
ce362c71ac7c9ee9d344bbc862c532589dcddb540fec28949191fbcf8f1b08be | markbastian/replion | spiderman_lambdas.clj | (ns replion.spiderman-lambdas
(:require [datomic.client.api :as d]
[replion.spiderman-db :as spiderman]
[replion.core :as core]
[clojure.pprint :as pp]
[clojure.string :as cs]
[cheshire.core :as ch])
(:import (java.text SimpleDateFormat)))
(defn parker-st... | null | https://raw.githubusercontent.com/markbastian/replion/8188ee064e4de3b96a42a0cbb56bcf04b462c2b1/src/replion/spiderman_lambdas.clj | clojure | as-of-db (d/as-of db date) | (ns replion.spiderman-lambdas
(:require [datomic.client.api :as d]
[replion.spiderman-db :as spiderman]
[replion.core :as core]
[clojure.pprint :as pp]
[clojure.string :as cs]
[cheshire.core :as ch])
(:import (java.text SimpleDateFormat)))
(defn parker-st... |
08b2e85f0a293f3e9dbb3a04bb6fc1c993a148c09de538a24984443983ee0b02 | mu-chaco/ReWire | Pretty.hs | # LANGUAGE Trustworthy #
# OPTIONS_GHC -fno - warn - orphans #
module ReWire.Pretty (($+$), ($$), prettyPrint, text, int, empty, hang, P.Pretty) where
import qualified Prettyprinter as P
import qualified Prettyprinter.Render.Text as P
import TextShow
import Data.Text (Text)
($$) :: P.Doc ann -> P.Doc ann -> P.Doc ann... | null | https://raw.githubusercontent.com/mu-chaco/ReWire/b04686a4cd6cb36ca9976a4b6c42bc195ce69462/src/ReWire/Pretty.hs | haskell | TODO(chathhorn): nesting
TODO(chathhorn): orphan | # LANGUAGE Trustworthy #
# OPTIONS_GHC -fno - warn - orphans #
module ReWire.Pretty (($+$), ($$), prettyPrint, text, int, empty, hang, P.Pretty) where
import qualified Prettyprinter as P
import qualified Prettyprinter.Render.Text as P
import TextShow
import Data.Text (Text)
($$) :: P.Doc ann -> P.Doc ann -> P.Doc ann... |
ac937eaf06224d510d57c00cb608d68c94a3d187f3cfb92940af8ef0f1ed96dc | ultralisp/ultralisp | source.lisp | (defpackage #:ultralisp/utils/source
(:use #:cl)
(:import-from #:ultralisp/utils/text
#:multi-split)
(:import-from #:str
#:starts-with-p
#:ends-with-p)
(:export
#:make-file-ignorer
#:format-ignore-list
#:parse-ignore-list))
(in-package #:ultralisp/utils/s... | null | https://raw.githubusercontent.com/ultralisp/ultralisp/37bd5d92b2cf751cd03ced69bac785bf4bcb6c15/src/utils/source.lisp | lisp | This way we'll not ignore nested asd files by default.
We need this because of issue:
| (defpackage #:ultralisp/utils/source
(:use #:cl)
(:import-from #:ultralisp/utils/text
#:multi-split)
(:import-from #:str
#:starts-with-p
#:ends-with-p)
(:export
#:make-file-ignorer
#:format-ignore-list
#:parse-ignore-list))
(in-package #:ultralisp/utils/s... |
e4b42f775e9da2fe3135188f59d8f4b20efbf7d3e4933bdcc3de36b340b458fb | aliaksandr-s/prototyping-with-clojure | transform-data.clj | (defn get-raw-data [] (->
(slurp "./resources/raw/data.edn")
(read-string)
(eval)))
(def keys [:name :country-code :alpha-2 :alpha-3])
(def new-keys {:name :country/name
:country-code :country/code
:alpha-2 ... | null | https://raw.githubusercontent.com/aliaksandr-s/prototyping-with-clojure/e1f90bf66c315de1dfa72624895637f1c609c42e/app/chapter-06/end/visitera/resources/raw/transform-data.clj | clojure | (defn get-raw-data [] (->
(slurp "./resources/raw/data.edn")
(read-string)
(eval)))
(def keys [:name :country-code :alpha-2 :alpha-3])
(def new-keys {:name :country/name
:country-code :country/code
:alpha-2 ... | |
c1a5eff8f19c2e05ac5e418e6570bcb4de617a9357011d4787e1b8a9e04379c8 | ThoughtWorksInc/stonecutter | register_form.cljs | (ns stonecutter.js.dom.register-form
(:require [stonecutter.js.dom.common :as dom]))
(def register-form-element-selector :.clj--register__form)
(def field-invalid-class :form-row--invalid)
(def field-valid-class :form-row--valid)
(def selectors
{:registration-first-name {:input :.clj--registration-first-nam... | null | https://raw.githubusercontent.com/ThoughtWorksInc/stonecutter/37ed22dd276ac652176c4d880e0f1b0c1e27abfe/src-cljs/stonecutter/js/dom/register_form.cljs | clojure | (ns stonecutter.js.dom.register-form
(:require [stonecutter.js.dom.common :as dom]))
(def register-form-element-selector :.clj--register__form)
(def field-invalid-class :form-row--invalid)
(def field-valid-class :form-row--valid)
(def selectors
{:registration-first-name {:input :.clj--registration-first-nam... | |
f1561e3a92e7a9c1afcd68ad3dd8c963b3acd3235817c32761e09098618d6881 | drlivingston/kr | writer_kb.clj | (ns edu.ucdenver.ccp.kr.sesame.writer-kb
(use edu.ucdenver.ccp.kr.kb
[edu.ucdenver.ccp.kr.rdf :exclude (resource)]
edu.ucdenver.ccp.kr.sesame.kb
[edu.ucdenver.ccp.kr.sesame.rdf :exclude (resource)]
[clojure.java.io :exclude (resource)])
org.openrdf.model.impl . ValueFactoryBase
... | null | https://raw.githubusercontent.com/drlivingston/kr/2872ed6f6b1400841091a215e5495a579d153e1c/kr-sesame/kr-sesame-core/src/main/clojure/edu/ucdenver/ccp/kr/sesame/writer_kb.clj | clojure | --------------------------------------------------------
connections
--------------------------------------------------------
this is nonsese becasue to the circular defintions
and what can and cannot be forward delcared
--------------------------------------------------------
protocol implementation
----------... | (ns edu.ucdenver.ccp.kr.sesame.writer-kb
(use edu.ucdenver.ccp.kr.kb
[edu.ucdenver.ccp.kr.rdf :exclude (resource)]
edu.ucdenver.ccp.kr.sesame.kb
[edu.ucdenver.ccp.kr.sesame.rdf :exclude (resource)]
[clojure.java.io :exclude (resource)])
org.openrdf.model.impl . ValueFactoryBase
... |
ebfa2d0a321ba7d6193c8b2513b20950ca12dd368b1af0eda936819c3c0f7b35 | exoscale/clojure-kubernetes-client | extensions_v1beta1_ingress.clj | (ns clojure-kubernetes-client.specs.extensions-v1beta1-ingress
(:require [clojure.spec.alpha :as s]
[spec-tools.data-spec :as ds]
[clojure-kubernetes-client.specs.v1-object-meta :refer :all]
[clojure-kubernetes-client.specs.extensions-v1beta1-ingress-spec :refer :all]
[... | null | https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/extensions_v1beta1_ingress.clj | clojure | (ns clojure-kubernetes-client.specs.extensions-v1beta1-ingress
(:require [clojure.spec.alpha :as s]
[spec-tools.data-spec :as ds]
[clojure-kubernetes-client.specs.v1-object-meta :refer :all]
[clojure-kubernetes-client.specs.extensions-v1beta1-ingress-spec :refer :all]
[... | |
a2b824c19a52581cf4d38f5bf342e7a54883738535c5cd7e35a1ac48e88fef82 | dylex/haskell-nfs | GET.hs | {-# LANGUAGE OverloadedStrings #-}
# LANGUAGE RecordWildCards #
module Network.WebDAV.NFS.GET
( httpGET
) where
import Control.Applicative ((<|>))
import Control.Monad (when, guard)
import qualified Data.ByteString as BS
import qualified Data.ByteString.Builder as BSB
import Data.Mayb... | null | https://raw.githubusercontent.com/dylex/haskell-nfs/07d213e09f7bf9e6fe3200aca3de494c3dcd54f7/webdav/Network/WebDAV/NFS/GET.hs | haskell | # LANGUAGE OverloadedStrings #
"multipart/byteranges" | # LANGUAGE RecordWildCards #
module Network.WebDAV.NFS.GET
( httpGET
) where
import Control.Applicative ((<|>))
import Control.Monad (when, guard)
import qualified Data.ByteString as BS
import qualified Data.ByteString.Builder as BSB
import Data.Maybe (mapMaybe)
import Data.... |
14fd495de9eba5e449651dcd655252de0664fba4aaf5e4953b6f0f8fe99f4b06 | lispci/fiveam | run.lisp | -*- Mode : LISP ; Syntax : Ansi - Common - Lisp ; Package : FIVEAM ; Base : 10 ; -*-
(in-package :it.bese.fiveam)
;;;; * Running Tests
;;;; Once the programmer has defined what the tests are these need to
;;;; be run and the expected effects should be compared with the
;;;; actual effects. FiveAM provides the func... | null | https://raw.githubusercontent.com/lispci/fiveam/e11dee752a8f59065033ef9d60641d4a2f1e8379/src/run.lisp | lisp | Syntax : Ansi - Common - Lisp ; Package : FIVEAM ; Base : 10 ; -*-
* Running Tests
Once the programmer has defined what the tests are these need to
be run and the expected effects should be compared with the
actual effects. FiveAM provides the function RUN for this
purpose, RUN executes a number of tests and coll... |
(in-package :it.bese.fiveam)
returned . There are three types of test results : passed , failed
Generally running a test will return normally , but there are two
debugger two restarts are made available , one simply reruns the
(deftype on-problem-action ()
'(member :debug :backtrace nil))
(declaim (t... |
f857c4c5d9066d24fbc72d27921ea5367bcea3c510c75285911c2c6192d5bcd0 | hidaris/thinking-dumps | 12_delay_and_force.rkt | #lang racket
(provide (all-defined-out))
;; this is a silly addition function that purposely runs slows for
;; demonstration purposes
(define (slow-add x y)
(letrec ([slow-id (lambda (y z)
(if (= 0 z)
y
(slow-id y (- z 1))))])
(+ (slow-id... | null | https://raw.githubusercontent.com/hidaris/thinking-dumps/3fceaf9e6195ab99c8315749814a7377ef8baf86/cse341/racket/12_delay_and_force.rkt | racket | this is a silly addition function that purposely runs slows for
demonstration purposes
multiplies x and result of y-thunk, calling y-thunk x times | #lang racket
(provide (all-defined-out))
(define (slow-add x y)
(letrec ([slow-id (lambda (y z)
(if (= 0 z)
y
(slow-id y (- z 1))))])
(+ (slow-id x 50000000) y)))
assumes x is > = 0
(cond [(= x 0) 0]
[(= x 1) (y-thunk)]
... |
2e478dd11f22c4dfd2832adc1398c4d4317d35737664634dd3be5e88a555b680 | takikawa/racket-ppa | info.rkt | (module info setup/infotab (#%module-begin (define collection (quote multi)) (define deps (quote ("base" "draw-lib" "gui-lib" "string-constants-lib"))) (define pkg-desc "Functions for constructing icons and logos") (define pkg-authors (quote (ntoronto))) (define license (quote (Apache-2.0 OR MIT)))))
| null | https://raw.githubusercontent.com/takikawa/racket-ppa/26d6ae74a1b19258c9789b7c14c074d867a4b56b/share/pkgs/images-gui-lib/info.rkt | racket | (module info setup/infotab (#%module-begin (define collection (quote multi)) (define deps (quote ("base" "draw-lib" "gui-lib" "string-constants-lib"))) (define pkg-desc "Functions for constructing icons and logos") (define pkg-authors (quote (ntoronto))) (define license (quote (Apache-2.0 OR MIT)))))
| |
30ae324479e5c2ea13f5074545f2a8fa18a67e9ccb320481ae88e1a620376754 | choener/ADPfusion | Array.hs |
{-# Language MagicHash #-}
module ADPfusion.Core.SynVar.Array
( module ADPfusion.Core.SynVar.Array.Type
, module ADPfusion.Core.SynVar.Array
) where
import Data.Proxy
import Data.Strict.Tuple hiding (snd)
import Data.Vector.Fusion.Stream.Monadic
import GHC.Exts
import Prelude hiding (map,mapM)
import Data.Pr... | null | https://raw.githubusercontent.com/choener/ADPfusion/16ae59acddd4518e6f177ce1860f1705ac421b8f/ADPfusion/Core/SynVar/Array.hs | haskell | # Language MagicHash #
| Constraints needed to use @iTblStream@.
** Instances
# Inline mkStream #
# Inline mkStream #
|
# Inline mkStream #
# Inline mkStream #
# Inline mkStream #
# Inline mkStream #
# Inline mkStream # |
module ADPfusion.Core.SynVar.Array
( module ADPfusion.Core.SynVar.Array.Type
, module ADPfusion.Core.SynVar.Array
) where
import Data.Proxy
import Data.Strict.Tuple hiding (snd)
import Data.Vector.Fusion.Stream.Monadic
import GHC.Exts
import Prelude hiding (map,mapM)
import Data.PrimitiveArray hiding (map)
... |
da406ea4dea9551be577c7992f51805048a1cb114a8d375cdf5004359d6704ee | simmone/racket-simple-qr | timing-pattern.rkt | #lang racket
(require "../../../../share/draw/draw.rkt")
(require "../../../../share/func.rkt")
(provide (contract-out
[write-report-timing-pattern (-> hash? natural? path-string? void?)]
))
(define (write-report-timing-pattern points_map modules express_path)
(let* ([scrbl_dir (build-path exp... | null | https://raw.githubusercontent.com/simmone/racket-simple-qr/904f1491bc521badeafeabd0d7d7e97e3d0ee958/simple-qr/write/lib/express/timing-pattern/timing-pattern.rkt | racket | #lang racket
(require "../../../../share/draw/draw.rkt")
(require "../../../../share/func.rkt")
(provide (contract-out
[write-report-timing-pattern (-> hash? natural? path-string? void?)]
))
(define (write-report-timing-pattern points_map modules express_path)
(let* ([scrbl_dir (build-path exp... | |
f0ed8f61699bff2f1a543ea0f7e6b2cc5b807dfd1f19848592f596a708817b1b | facebookarchive/pfff | highlight_lisp.mli |
val visit_toplevel :
tag_hook:
(Ast_lisp.info -> Highlight_code.category -> unit) ->
Highlight_code.highlighter_preferences ->
Ast_lisp.program * Parser_lisp.token list ->
unit
| null | https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/lang_lisp/analyze/highlight_lisp.mli | ocaml |
val visit_toplevel :
tag_hook:
(Ast_lisp.info -> Highlight_code.category -> unit) ->
Highlight_code.highlighter_preferences ->
Ast_lisp.program * Parser_lisp.token list ->
unit
| |
cf911f6df4234f11cbb547ec9391fa16fa663ee6f46f3ae5b87a7d61c9b01546 | Enecuum/Node | Scenario1.hs | # LANGUAGE DuplicateRecordFields #
module Enecuum.TestData.Nodes.Scenario1 where
import Enecuum.Prelude
import qualified Enecuum.Domain as D
import qualified Enecuum.Language as L
import Enecuum.TestData.RPC
import Enecuum.TestData.Nodes.Address
Scenario... | null | https://raw.githubusercontent.com/Enecuum/Node/3dfbc6a39c84bd45dd5f4b881e067044dde0153a/test/test-framework/Enecuum/TestData/Nodes/Scenario1.hs | haskell | # LANGUAGE DuplicateRecordFields #
module Enecuum.TestData.Nodes.Scenario1 where
import Enecuum.Prelude
import qualified Enecuum.Domain as D
import qualified Enecuum.Language as L
import Enecuum.TestData.RPC
import Enecuum.TestData.Nodes.Address
Scenario... | |
515c15de8654622e0a6dc975096be7695bc4f50a9cf741954475ead1bce7e1a2 | smart-chain-fr/tokenomia | Run.hs | # LANGUAGE FlexibleContexts #
# LANGUAGE LambdaCase #
# LANGUAGE RecordWildCards #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE ScopedTypeVariables #
# LANGUAGE DuplicateRecordFields #
# LANGUAGE TupleSections #
# LANGUAGE NumericUnderscores #
# LANGUAGE NamedFieldPuns #
module Tokenomia.ICO.Funds.Validation.Run
(... | null | https://raw.githubusercontent.com/smart-chain-fr/tokenomia/dfb46829f0a88c559eddb3181e5320ed1a33601e/src/Tokenomia/ICO/Funds/Validation/Run.hs | haskell | # LANGUAGE OverloadedStrings #
TODO : to be removed
TODO : to be removed
TODO : could break ?... | # LANGUAGE FlexibleContexts #
# LANGUAGE LambdaCase #
# LANGUAGE RecordWildCards #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE DuplicateRecordFields #
# LANGUAGE TupleSections #
# LANGUAGE NumericUnderscores #
# LANGUAGE NamedFieldPuns #
module Tokenomia.ICO.Funds.Validation.Run
(dryRun
,run) where
import Prel... |
b8e7e778c752059b33ebaad9ad3c18aa082380e191269ebc32fce6c14a766460 | ucsd-progsys/nate | frx_color.ml | (***********************************************************************)
(* *)
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_color.ml | 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... |
79c0b5b0043cf9b2cfd38968bb187910be9b8c99643444fa180c559adbe70e5e | yuriy-chumak/ol | case-apply.scm | (define-library (otus case-apply)
(export
arity
case-apply)
(import
(src vm)
(scheme core))
(begin
(define (get-arity func)
(case (type func)
(type-bytecode
(case (ref func 0)
JAF
(-- (ref func 1)))
(else
#... | null | https://raw.githubusercontent.com/yuriy-chumak/ol/77b7537e4539489e27a5c317b3128bb7a4c62e2b/libraries/otus/case-apply.scm | scheme | (define-library (otus case-apply)
(export
arity
case-apply)
(import
(src vm)
(scheme core))
(begin
(define (get-arity func)
(case (type func)
(type-bytecode
(case (ref func 0)
JAF
(-- (ref func 1)))
(else
#... | |
c1d9beaf0046f6e455d15780264d9c911676d1a5fdee0e1b47d5c3f5b0df0d13 | patricoferris/sesame | git.mli | module type With_fs = Sesame.Types.S with type Input.t = Fpath.t
module Make (FS : With_fs) : sig
val get :
?schedule:Current_cache.Schedule.t ->
?label:string ->
Fpath.t option ->
Current_git.Commit.t Current.t ->
FS.t Current.t
* [ get f repo ] will attempt to build from the locally cloned repo... | null | https://raw.githubusercontent.com/patricoferris/sesame/8521e2a086b49d0bc20f0fca705f07675c52e1ae/src/current_sesame/git/git.mli | ocaml | module type With_fs = Sesame.Types.S with type Input.t = Fpath.t
module Make (FS : With_fs) : sig
val get :
?schedule:Current_cache.Schedule.t ->
?label:string ->
Fpath.t option ->
Current_git.Commit.t Current.t ->
FS.t Current.t
* [ get f repo ] will attempt to build from the locally cloned repo... | |
b27fb2a44525b5c14404e5e86794e0ad8edc09a564f1f2f6b53fce1991e292a1 | edbutler/nonograms-rule-synthesis | core.rkt | #lang racket
(provide
(all-from-out
"collection.rkt"
"lift.rkt"
"log.rkt"
"math.rkt"
"serialize.rkt"
"timeout.rkt"
"parallel.rkt"
"worker.rkt"
"synth.rkt"
"xml.rkt"
"util.rkt"))
(require
"collection.rkt"
"lift.rkt"
"log.rkt"
"math.rkt"
"serialize.rkt"
"timeout.rkt"
"parallel.rkt"
... | null | https://raw.githubusercontent.com/edbutler/nonograms-rule-synthesis/16f8dacb17bd77c9d927ab9fa0b8c1678dc68088/src/core/core.rkt | racket | #lang racket
(provide
(all-from-out
"collection.rkt"
"lift.rkt"
"log.rkt"
"math.rkt"
"serialize.rkt"
"timeout.rkt"
"parallel.rkt"
"worker.rkt"
"synth.rkt"
"xml.rkt"
"util.rkt"))
(require
"collection.rkt"
"lift.rkt"
"log.rkt"
"math.rkt"
"serialize.rkt"
"timeout.rkt"
"parallel.rkt"
... | |
fe214f3f25f297147ec4ff65be772d721ecad1915f6e0f0c217bb0456434d283 | TerrorJack/ghc-alter | Arr.hs | {-# LANGUAGE MagicHash, NoImplicitPrelude, UnboxedTuples #-}
module GHC.Event.Arr
(
Arr(..)
, new
, size
, read
, write
) where
import GHC.Base (($))
import GHC.Prim (MutableArray#, RealWorld, newArray#, readArray#,
sizeofMutableArray#, writeArray#)
import GHC.Types (IO(... | null | https://raw.githubusercontent.com/TerrorJack/ghc-alter/db736f34095eef416b7e077f9b26fc03aa78c311/ghc-alter/boot-lib/base/GHC/Event/Arr.hs | haskell | # LANGUAGE MagicHash, NoImplicitPrelude, UnboxedTuples # |
module GHC.Event.Arr
(
Arr(..)
, new
, size
, read
, write
) where
import GHC.Base (($))
import GHC.Prim (MutableArray#, RealWorld, newArray#, readArray#,
sizeofMutableArray#, writeArray#)
import GHC.Types (IO(..), Int(..))
data Arr a = Arr (MutableArray# RealWorld a)
... |
1f2088b531b4a538a81f75ecd69888f607920dcbbbb2ad3a9c3920da7a01ba32 | expipiplus1/spir-v | Parse.hs | {-# LANGUAGE Arrows #-}
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE TupleSections #
module Parse
( parseSpec
) where
import Control.Applicative ((<|>))
import Control.Arrow.ArrowList.Extra (arrF)
import Control.Monad (guard, (<=<))
import Data.Attoparsec.Text (Parser, parseOnly, hexadecimal, skipSpace, takeTill... | null | https://raw.githubusercontent.com/expipiplus1/spir-v/5692404f43a63fb8feb0cfaff3bfb3eedada6890/generate/src/Parse.hs | haskell | # LANGUAGE Arrows #
# LANGUAGE OverloadedStrings #
------------------------------------------------------------------------------
Parsing the header
------------------------------------------------------------------------------
extracts the version
---------------------------------------------------------------------... | # LANGUAGE TupleSections #
module Parse
( parseSpec
) where
import Control.Applicative ((<|>))
import Control.Arrow.ArrowList.Extra (arrF)
import Control.Monad (guard, (<=<))
import Data.Attoparsec.Text (Parser, parseOnly, hexadecimal, skipSpace, takeTill, anyChar, takeText, decimal, isEndOfLine, many1, sepBy1, s... |
16d500d6cab1dafe3471ac78712afb1135bd1ec23f0a92300186f24443b04a32 | cerner/clara-rules | test_fressian.clj | (ns clara.test-fressian
(:require [clara.rules.durability :as d]
[clara.rules.durability.fressian :as df]
[clojure.data.fressian :as fres]
[clara.rules.platform :as pform]
[clojure.test :refer :all])
(:import [org.fressian
FressianWriter
Fressi... | null | https://raw.githubusercontent.com/cerner/clara-rules/8107a5ab7fdb475e323c0bcb39084a83454deb1c/src/test/clojure/clara/test_fressian.clj | clojure | Write
Read
deserialization process does not lose important details for the next time serializing it.
In case x already has metadata it needs to be added to the expectation
along with the test metadata added in case it has none to test already. | (ns clara.test-fressian
(:require [clara.rules.durability :as d]
[clara.rules.durability.fressian :as df]
[clojure.data.fressian :as fres]
[clara.rules.platform :as pform]
[clojure.test :refer :all])
(:import [org.fressian
FressianWriter
Fressi... |
3622433c6563f492acbb945f7067d034b2a3d99aebb6ab62be9b205d155cad99 | lem-project/lem | window-panel.lisp | (in-package :lem-capi)
(defclass window-panel (capi:column-layout)
((initialized
:initform nil
:accessor window-panel-initialized)
(minibuffer
:accessor window-panel-minibuffer)
(modified-p
:initform nil
:accessor window-panel-modified-p)
(resizing
:initform nil
:accessor window-... | null | https://raw.githubusercontent.com/lem-project/lem/4f620f94a1fd3bdfb8b2364185e7db16efab57a1/frontends/capi/window-panel.lisp | lisp | (in-package :lem-capi)
(defclass window-panel (capi:column-layout)
((initialized
:initform nil
:accessor window-panel-initialized)
(minibuffer
:accessor window-panel-minibuffer)
(modified-p
:initform nil
:accessor window-panel-modified-p)
(resizing
:initform nil
:accessor window-... | |
b11a148d2c12843d1d1ee18dd81a30f6f453e0f8675bdc5a6bef24183451bd11 | monadbobo/ocaml-core | async_print.mli | (** Non-blocking, Async-friendly print functions *)
val print_char : char -> unit
val prerr_char : char -> unit
val print_string : string -> unit
val prerr_string : string -> unit
val print_int : int -> unit
val prerr_int : int -> unit
val print_float : float -> unit
val prerr_float : float -> unit
val print_endline :... | null | https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/async/unix/lib/async_print.mli | ocaml | * Non-blocking, Async-friendly print functions |
val print_char : char -> unit
val prerr_char : char -> unit
val print_string : string -> unit
val prerr_string : string -> unit
val print_int : int -> unit
val prerr_int : int -> unit
val print_float : float -> unit
val prerr_float : float -> unit
val print_endline : string -> unit
val prerr_endline : string -> unit
v... |
6d9a7ff1fc621ef8ea31e114054a05c5236790305e9c6549c04305efea14add8 | gator1/jepsen | perf_test.clj | (ns block.perf-test
(:require [clojure.test :refer :all]
[block.core :refer :all]
[jepsen.core :as jepsen]
[jepsen.generator :as gen]
[jepsen.tests :as tests])
(:use clojure.tools.logging))
(defn fsperf-map
[t1 t2]
;tests/noop-test
(assoc tests/noop-test
... | null | https://raw.githubusercontent.com/gator1/jepsen/1932cbd72cbc1f6c2a27abe0fe347ea989f0cfbb/ceph-block/test/block/perf_test.clj | clojure | tests/noop-test
:nodes [:n1 :n2 :n3]
:nemesis (partition-node :n2)
block performance testing
testcase 0: no network partition | (ns block.perf-test
(:require [clojure.test :refer :all]
[block.core :refer :all]
[jepsen.core :as jepsen]
[jepsen.generator :as gen]
[jepsen.tests :as tests])
(:use clojure.tools.logging))
(defn fsperf-map
[t1 t2]
(assoc tests/noop-test
:name "fsperf-tes... |
b1f1639c46626fa633e1f178e176a0b26bedef12f9608a0b7d0e279defac1ec1 | ekmett/guanxi | queens.hs | # language ViewPatterns #
{-# language TupleSections #-}
module Main where
import Control.Monad (unless)
import Control.Monad.ST
import Cover.DXZ
import Data.Foldable
import System.Exit
queens :: Int -> Int
queens n = runST $ do
x <- newCover_
rows <- addItems x n
cols <- addItems x n
diag1 <- addOptionalIte... | null | https://raw.githubusercontent.com/ekmett/guanxi/e267f4210a9c10d0091371ea9b028b7d6fa8b9f3/test/queens.hs | haskell | # language TupleSections # | # language ViewPatterns #
module Main where
import Control.Monad (unless)
import Control.Monad.ST
import Cover.DXZ
import Data.Foldable
import System.Exit
queens :: Int -> Int
queens n = runST $ do
x <- newCover_
rows <- addItems x n
cols <- addItems x n
diag1 <- addOptionalItems x (n+n)
diag2 <- addOption... |
80c92ed989a9d9b86583c6e294adace9db910a9d68908cad6e785223318b3940 | kahua/Kahua | xml.scm | -*- coding : utf-8 ; mode : scheme -*-
generic framework to test XML generation code
;;
Copyright ( c ) 2003 - 2007 Scheme Arts , L.L.C. , All rights reserved .
Copyright ( c ) 2003 - 2007 Time Intermedia Corporation , All rights reserved .
;; See COPYING for terms and conditions of using this software
;;
;... | null | https://raw.githubusercontent.com/kahua/Kahua/c90fe590233e4540923e4e5cc9f61da32873692c/src/kahua/test/xml.scm | scheme | mode : scheme -*-
See COPYING for terms and conditions of using this software
This module provides the means of test the result of HTML
generating code, such as CGI programs. The output of
these code sometimes includes a information which may not be
able to predict at the time the test is written; an example... | generic framework to test XML generation code
Copyright ( c ) 2003 - 2007 Scheme Arts , L.L.C. , All rights reserved .
Copyright ( c ) 2003 - 2007 Time Intermedia Corporation , All rights reserved .
Then , the input string is parsed by ssax XML parser ,
to produce a SXML structure , which is matche... |
cb54b324eca3a2db46c9bef888aa05f04bc6cb3acda37aa79469fc1576ca6f11 | unbounce/encors | core_test.clj | (ns com.unbounce.encors.core-test
(:require [clojure.test :refer :all]
[clojure.set :as set]
[clojure.string :as str]
[com.unbounce.encors.types :as types]
[com.unbounce.encors.core :refer :all]))
(def default-cors-options
{:allowed-origins nil
:allowed-methods #{... | null | https://raw.githubusercontent.com/unbounce/encors/323d7e06816d0767197727ddb4720beeaca5822e/test/com/unbounce/encors/core_test.clj | clojure | (ns com.unbounce.encors.core-test
(:require [clojure.test :refer :all]
[clojure.set :as set]
[clojure.string :as str]
[com.unbounce.encors.types :as types]
[com.unbounce.encors.core :refer :all]))
(def default-cors-options
{:allowed-origins nil
:allowed-methods #{... | |
fcaf3e2842814db7dff2961d901ac7243db00be835a738ac4d55a0d11544f9c2 | glguy/advent2021 | Advent.hs | # Language ImportQualifiedPost , OverloadedStrings #
|
Module : Advent
Description : Solution helper library
Copyright : ( c ) , 2018 - 2021
License : ISC
Maintainer :
This module re - exports the most commonly used modules .
* " Advent . Prelude " is full of useful helper functions
... | null | https://raw.githubusercontent.com/glguy/advent2021/21c6f1e315fd0351eacc59e295207913973f2423/common/Advent.hs | haskell | # Language ImportQualifiedPost , OverloadedStrings #
|
Module : Advent
Description : Solution helper library
Copyright : ( c ) , 2018 - 2021
License : ISC
Maintainer :
This module re - exports the most commonly used modules .
* " Advent . Prelude " is full of useful helper functions
... | |
9ebb2ab2d40c12cf58099f15f091f618b364759d082b8a76e66300e58ec78ef5 | philzook58/fib-anyon | Cat.hs | # LANGUAGE GADTs , StandaloneDeriving , NoImplicitPrelude , FlexibleInstances , RankNTypes ,
TypeApplications , ScopedTypeVariables , MultiParamTypeClasses , FunctionalDependencies , FlexibleContexts ,
UndecidableInstances , AllowAmbiguousTypes , TypeFamilies ,
ConstraintKinds , TypeOperators , DataKinds , Pol... | null | https://raw.githubusercontent.com/philzook58/fib-anyon/5c81535201ffdd5a40db18510ce894be9ccccbd7/src/Cat.hs | haskell | make the leftmost porton of a match b , turning it into c
is this necessary ? A larger pattern should be a type error
instance LeftMatch ( ( a , b),c )
pullLeftLeaf only does fmove ' so this ca n't be enough
leftmatch l a , rightmatch r a ,
FullMatch l a
c ~ ( Tau , c ' ) I should have a check like this . ... | # LANGUAGE GADTs , StandaloneDeriving , NoImplicitPrelude , FlexibleInstances , RankNTypes ,
TypeApplications , ScopedTypeVariables , MultiParamTypeClasses , FunctionalDependencies , FlexibleContexts ,
UndecidableInstances , AllowAmbiguousTypes , TypeFamilies ,
ConstraintKinds , TypeOperators , DataKinds , Pol... |
eeacb9047a6d0cdd30028aa0fd3157976f200a11bcb3fda1e8558c2f7543e893 | cdornan/keystore | CPRNG.hs | # LANGUAGE GeneralizedNewtypeDeriving #
{-# LANGUAGE OverloadedStrings #-}
module Data.KeyStore.KS.CPRNG
( CPRNG
, newCPRNG
, testCPRNG
, generateCPRNG
) where
import Crypto.Random
import qualified Data.ByteArray as BA
import System.IO.Unsafe
newtype ... | null | https://raw.githubusercontent.com/cdornan/keystore/5c8a9272537bc880c055c0a6b44327386a16b52f/src/Data/KeyStore/KS/CPRNG.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE GeneralizedNewtypeDeriving #
module Data.KeyStore.KS.CPRNG
( CPRNG
, newCPRNG
, testCPRNG
, generateCPRNG
) where
import Crypto.Random
import qualified Data.ByteArray as BA
import System.IO.Unsafe
newtype CPRNG
= CPRNG { _CPRNG :: SystemDRG }
... |
67cd556d53e74cba195f20cc948520ff86cd3cadf93fcd56d2697a99769a5f58 | untangled-web/untangled-ui | user.cljs | (ns cljs.user
(:require
[untangled.client.core :as core]
[cljs.pprint :refer [pprint]]
[guideui.main :as main]
[guideui.ui :as ui]))
(enable-console-print!)
; use this from REPL to view bits of the application db
(defn log-app-state
"Helper for logging the app-state, pass in top-level keywords fro... | null | https://raw.githubusercontent.com/untangled-web/untangled-ui/ae101f90cd9b7bf5d0c80e9453595fdfe784923c/dev/cljs/user.cljs | clojure | use this from REPL to view bits of the application db | (ns cljs.user
(:require
[untangled.client.core :as core]
[cljs.pprint :refer [pprint]]
[guideui.main :as main]
[guideui.ui :as ui]))
(enable-console-print!)
(defn log-app-state
"Helper for logging the app-state, pass in top-level keywords from the app-state and it will print only those
keys and ... |
bf1afb2272e89b969f5c438b6a9257d4319b9c916ac37427dd8fe6f002527faf | exercism/common-lisp | largest-series-product-test.lisp | Ensures that largest-series-product.lisp and the testing library are always loaded
(eval-when (:compile-toplevel :load-toplevel :execute)
(load "largest-series-product")
(quicklisp-client:quickload :fiveam))
;; Defines the testing package with symbols from largest-series-product and FiveAM in scope
;; The `run-t... | null | https://raw.githubusercontent.com/exercism/common-lisp/82dc71e313be217703e9ea2d53c2c6db92bfce8e/exercises/practice/largest-series-product/largest-series-product-test.lisp | lisp | Defines the testing package with symbols from largest-series-product and FiveAM in scope
The `run-tests` function is exported for use by both the user and test-runner
Enter the testing package
Define and enter a new FiveAM test-suite | Ensures that largest-series-product.lisp and the testing library are always loaded
(eval-when (:compile-toplevel :load-toplevel :execute)
(load "largest-series-product")
(quicklisp-client:quickload :fiveam))
(defpackage :largest-series-product-test
(:use :cl :fiveam)
(:export :run-tests))
(in-package :large... |
8ac6d7fb6400670f07244a9c81d4e6176dee826afbc6e52bfb90bfd77a4fba1c | rowangithub/DOrder | svd.ml | let rec loopa i j l m n =
if j <= n then
(assert(1<=j);assert(j<=n);
assert(1<=i);assert(i<=n);
(*//assert(1<=i);assert(i<=m); // TODO feasible counterexample found*)
assert(1<=l);assert(l<=n);
loopa i (j+1) l m n)
else ()
let rec loopc i j k l m n =
if k <= n then
((*//assert(1<=i);assert(i<... | null | https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/tests/folprograms/sc/svd.ml | ocaml | //assert(1<=i);assert(i<=m); // TODO feasible counterexample found
//assert(1<=i);assert(i<=m); // TODO feasible counterexample found
Accumulation of right-hand transformations.
Double division to avoid possible underflow. | let rec loopa i j l m n =
if j <= n then
(assert(1<=j);assert(j<=n);
assert(1<=i);assert(i<=n);
assert(1<=l);assert(l<=n);
loopa i (j+1) l m n)
else ()
let rec loopc i j k l m n =
if k <= n then
assert(1<=k);assert(k<=n);
assert(1<=j);assert(j<=n);
loopc i j (k+1) l m n)
else ()
l... |
8d133e5be2495b74f1e5980d62f625fd367d9d25c4a6d46653d89e39f1bbc72b | mirage/ocaml-git | unix_backend.mli | open Sigs
module Scheduler : SCHED with type +'a s = 'a
val unix : Scheduler.t scheduler
| null | https://raw.githubusercontent.com/mirage/ocaml-git/37c9ef41944b5b19117c34eee83ca672bb63f482/test/smart/unix_backend.mli | ocaml | open Sigs
module Scheduler : SCHED with type +'a s = 'a
val unix : Scheduler.t scheduler
| |
74e9097d4668a8b1e708007e3f7b9074fa2e3a594f25611f5230fab85e401a2c | earl-ducaine/cl-garnet | garnet-loader.lisp | ;;; -*- Mode: LISP; Syntax: Common-Lisp; Package: COMMON-LISP-USER -*-
(in-package :common-lisp-user)
;; Not likely to be anywhere in the world where this would be useful.
(defparameter garnet-version-number "3.3.post")
(pushnew :garnet *features*)
(pushnew :garnet-v3 *features*)
(pushnew :garnet-v3.3.post *features... | null | https://raw.githubusercontent.com/earl-ducaine/cl-garnet/f0095848513ba69c370ed1dc51ee01f0bb4dd108/garnet-loader.lisp | lisp | -*- Mode: LISP; Syntax: Common-Lisp; Package: COMMON-LISP-USER -*-
Not likely to be anywhere in the world where this would be useful.
The :garnet-debug feature allows many different kinds of run-time
checking, and also loads some extra test code. After you have
debugged your code and want it to run faster, remove... |
(in-package :common-lisp-user)
(defparameter garnet-version-number "3.3.post")
(pushnew :garnet *features*)
(pushnew :garnet-v3 *features*)
(pushnew :garnet-v3.3.post *features*)
(pushnew :garnet-test *features*)
from the * features * list and RECOMPILE all of Garnet and your code .
simply edit the following defv... |
29f385679918ccd8ef0a4120939fee366ce7c3f33b691255347997d7013ccf32 | kupl/FixML | sub20.ml |
type exp =
| V of var
| P of var * exp
| C of exp * exp
and var = string
let rec check : exp -> bool
= fun exp ->
match exp with
|P(s, V a) -> if (s= a) then true else false
|P(s, P(s1, e1)) ->
begin match e1 with
|C(e2, e3)-> ( ( check(P(s, e2)) ||check (P... | null | https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/benchmarks/wellformedness/wellformedness/submissions/sub20.ml | ocaml |
type exp =
| V of var
| P of var * exp
| C of exp * exp
and var = string
let rec check : exp -> bool
= fun exp ->
match exp with
|P(s, V a) -> if (s= a) then true else false
|P(s, P(s1, e1)) ->
begin match e1 with
|C(e2, e3)-> ( ( check(P(s, e2)) ||check (P... | |
6f0a904f2a47a4e8ccdb601c3b1aaedd5fb37106c16f55833420259f68a3a1ba | fjvallarino/monomer | BaseTheme.hs | |
Module : . Core . Themes . BaseTheme
Copyright : ( c ) 2018
License : BSD-3 - Clause ( see the LICENSE file )
Maintainer :
Stability : experimental
Portability : non - portable
Provides a base theme , with fixed sizes and padding but configurable colors .
Module : Monomer.... | null | https://raw.githubusercontent.com/fjvallarino/monomer/b8d3b82b50719204385179614f06bae283f90303/src/Monomer/Core/Themes/BaseTheme.hs | haskell | | Creates a theme using the provided colors.
| Customizable colors for the theme. | |
Module : . Core . Themes . BaseTheme
Copyright : ( c ) 2018
License : BSD-3 - Clause ( see the LICENSE file )
Maintainer :
Stability : experimental
Portability : non - portable
Provides a base theme , with fixed sizes and padding but configurable colors .
Module : Monomer.... |
9af4538c12809b15b317a0942b56fd3a8acf5f7cfda8fc76e18d4a11862c06e6 | sorenmacbeth/flambo | project.clj | (defproject yieldbot/flambo "0.8.3-SNAPSHOT"
:description "A Clojure DSL for Apache Spark"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:mailing-list {:name "flambo user mailing list"
:archive "-user"
:post ""}
:dependencies [[org.clojure/clo... | null | https://raw.githubusercontent.com/sorenmacbeth/flambo/9c61467697547c5fe3d05070be84cd2320cb53ce/project.clj | clojure | [codox "0.8.9"]
so gen-class stuff works in the repl
-5308 | (defproject yieldbot/flambo "0.8.3-SNAPSHOT"
:description "A Clojure DSL for Apache Spark"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:mailing-list {:name "flambo user mailing list"
:archive "-user"
:post ""}
:dependencies [[org.clojure/clo... |
bc0913368d2fd1ad66b584176f4774fec3cfad4d71eeb90aca546d9e4dd1ecd8 | tweag/ormolu | shebang-with-pragmas-out.hs | #!/usr/bin/env stack
{-# LANGUAGE OverloadedStrings #-}
main = pure ()
| null | https://raw.githubusercontent.com/tweag/ormolu/34bdf62429768f24b70d0f8ba7730fc4d8ae73ba/data/examples/module-header/shebang-with-pragmas-out.hs | haskell | # LANGUAGE OverloadedStrings # | #!/usr/bin/env stack
main = pure ()
|
8722d27848adb11171c9d7273a32f1468812000d99b0638f436707474d045855 | elaforge/karya | SubT.hs | Copyright 2019
-- This program is distributed under the terms of the GNU General Public
-- License 3.0, see COPYING or -3.0.txt
# LANGUAGE DeriveFunctor #
module Derive.Call.SubT where
import qualified Util.Pretty as Pretty
import qualified Derive.Deriver.Monad as Derive
import qualified Ui.Id as Id
import ... | null | https://raw.githubusercontent.com/elaforge/karya/471a2131f5a68b3b10b1a138e6f9ed1282980a18/Derive/Call/SubT.hs | haskell | This program is distributed under the terms of the GNU General Public
License 3.0, see COPYING or -3.0.txt
| Usually this comes from a sliced track with a TrackId, but sometimes
from 'Derive.ctx_sub_events', or an unnamed track.
| Sliced sub-events are represented as a start, duration, and opaque
abstract but als... | Copyright 2019
# LANGUAGE DeriveFunctor #
module Derive.Call.SubT where
import qualified Util.Pretty as Pretty
import qualified Derive.Deriver.Monad as Derive
import qualified Ui.Id as Id
import Global
import Types
data Track = Track {
_source :: !(Either Text TrackId)
, _events :: !... |
2ef89c9177b6aa2766e876f2b0dc59f6c8f95dfccd9c2c09fb23c7780ccbe623 | obsidiansystems/obelisk | Thunk.hs | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE LambdaCase #
# LANGUAGE MultiParamTypeClasses #
{-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE PatternGuards #
# LANGUAGE QuasiQuotes #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
module Obelisk.Command.Thunk w... | null | https://raw.githubusercontent.com/obsidiansystems/obelisk/d779d5ab007d8ee5c3cd3400473453e1d106f5f1/lib/command/src/Obelisk/Command/Thunk.hs | haskell | # LANGUAGE MultiWayIf #
# LANGUAGE OverloadedStrings #
TODO: Support symlinked thunk data
^ Packed thunk
^ Checked out thunk that was unpacked from this pointer
| A reference to the exact data that a thunk should translate into
TODO: Use a smart constructor and make this actually verify itself
| A specific revision... | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE LambdaCase #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE PatternGuards #
# LANGUAGE QuasiQuotes #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
module Obelisk.Command.Thunk where
import Control.Applicative
import Control.Exception (disp... |
f9013dd06d125bb7f929630c53dbb05657a660331dc1a36900366a12fab5c55c | donald-pinckney/WasmContinuations | continuation-barrier-removed.rkt | #lang racket
(require racket/control)
(define k1 'undefined)
(define k2 'undefined)
(define (rust-foo)
(wasm-$main))
(define (wasm-$main)
(control k (wasm-$h1 k)))
(define (wasm-$h1 k)
(set! k1 k)
(rust-bar))
(define (rust-bar)
(printf "Call to wasm-$bad from rust-bar.~n")
(wasm-$bad)
(printf "Return... | null | https://raw.githubusercontent.com/donald-pinckney/WasmContinuations/a9e524858c0481ed97021b64f97266e8b574bf3d/racket/arjuns/continuation-barrier-removed.rkt | racket | Note that this is the behavior that you allow in Wasm. | #lang racket
(require racket/control)
(define k1 'undefined)
(define k2 'undefined)
(define (rust-foo)
(wasm-$main))
(define (wasm-$main)
(control k (wasm-$h1 k)))
(define (wasm-$h1 k)
(set! k1 k)
(rust-bar))
(define (rust-bar)
(printf "Call to wasm-$bad from rust-bar.~n")
(wasm-$bad)
(printf "Return... |
51b072d960866c68b388fcc25b39c565db3cc4a4f9592db1b8c75bb77684a731 | ntoronto/pict3d | merge-passes.rkt | #lang typed/racket/base
(require racket/unsafe/ops
racket/list
racket/vector
(except-in typed/opengl/ffi -> cast)
"../../gl.rkt"
"../../utils.rkt"
"../utils.rkt"
"types.rkt")
(provide merge-passes)
(: get-counts (-> (Vectorof shape-params)
... | null | https://raw.githubusercontent.com/ntoronto/pict3d/09283c9d930c63b6a6a3f2caa43e029222091bdb/pict3d/private/engine/draw/merge-passes.rkt | racket | Mapping from old index to new index
Copy the vertex data while merging vertexes
Copy the indexes | #lang typed/racket/base
(require racket/unsafe/ops
racket/list
racket/vector
(except-in typed/opengl/ffi -> cast)
"../../gl.rkt"
"../../utils.rkt"
"../utils.rkt"
"types.rkt")
(provide merge-passes)
(: get-counts (-> (Vectorof shape-params)
... |
bf92e5935d4643607d732da0130fdfc5cb4d5b1916bf1c5980de1e2ad99cc246 | vaclavsvejcar/headroom | CSSSpec.hs | {-# LANGUAGE OverloadedStrings #-}
# LANGUAGE RecordWildCards #
# LANGUAGE NoImplicitPrelude #
module Headroom.FileSupport.CSSSpec
( spec
)
where
import Headroom.FileSupport.CSS
import Headroom.FileSupport.Types
( FileSupport (..)
, SyntaxAnalysis (..)
)
import RIO
import Test.Hspec
spec :: Spec
... | null | https://raw.githubusercontent.com/vaclavsvejcar/headroom/3b20a89568248259d59f83f274f60f6e13d16f93/test/Headroom/FileSupport/CSSSpec.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE RecordWildCards #
# LANGUAGE NoImplicitPrelude #
module Headroom.FileSupport.CSSSpec
( spec
)
where
import Headroom.FileSupport.CSS
import Headroom.FileSupport.Types
( FileSupport (..)
, SyntaxAnalysis (..)
)
import RIO
import Test.Hspec
spec :: Spec
spec = do
describe "fsSyntaxAna... |
cf0c3717f57e531eb4ef592d241f7e185f105d95fa73777db1ffe45bdc629b19 | clingen-data-model/genegraph | datafy.clj | (ns genegraph.database.datafy
(:require [clojure.core.protocols :as p]
[clojure.datafy :as d]
[genegraph.database.names :as names :refer [property-uri->keyword class-uri->keyword]]
[genegraph.database.instance :refer [db]]
[genegraph.database.util :refer [tx]]
... | null | https://raw.githubusercontent.com/clingen-data-model/genegraph/8c217e4c3820b3bd0a0937a6e331a6e6a49b8c14/src/genegraph/database/datafy.clj | clojure | (ns genegraph.database.datafy
(:require [clojure.core.protocols :as p]
[clojure.datafy :as d]
[genegraph.database.names :as names :refer [property-uri->keyword class-uri->keyword]]
[genegraph.database.instance :refer [db]]
[genegraph.database.util :refer [tx]]
... | |
9f8901070a626a6791bd46a8b0d855d074d50780186b3696b608cd3501644510 | mortuosplango/frankentone | core_test.clj | (ns frankentone.core-test
(:use clojure.test
frankentone.core))
| null | https://raw.githubusercontent.com/mortuosplango/frankentone/6602e9623c23f3543b9f779fea7851a043ad7fca/test/frankentone/core_test.clj | clojure | (ns frankentone.core-test
(:use clojure.test
frankentone.core))
| |
dd8f3486cdd8cdfc2c2ae453203bfd5dfb43af7bef97221a25554669bd673bba | akrmn/generic-constructors | Constructors.hs | # LANGUAGE AllowAmbiguousTypes #
# LANGUAGE BlockArguments #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE InstanceSigs #
# LANGUAGE NoStarIsType #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilies #
# LANGUAGE TypeOperators #
# LANGUAGE UndecidableInstance... | null | https://raw.githubusercontent.com/akrmn/generic-constructors/156cfa56e45cc2c8f91b126df9ed7aafc23711c1/src/Constructors.hs | haskell | # LANGUAGE AllowAmbiguousTypes #
# LANGUAGE BlockArguments #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE InstanceSigs #
# LANGUAGE NoStarIsType #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilies #
# LANGUAGE TypeOperators #
# LANGUAGE UndecidableInstance... | |
e7dac3fb63eb93c8a188af40989dc89dd9570d7e2ec906e69b7e4d84501fcf72 | moby/vpnkit | vmnet.ml | open Lwt.Infix
let src =
let src = Logs.Src.create "vmnet" ~doc:"vmnet" in
Logs.Src.set_level src (Some Logs.Info);
src
module Log = (val Logs.src_log src : Logs.LOG)
no VLAN
module Init = struct
type t = {
magic: string;
version: int32;
commit: string;
}
let to_string t =
Fmt.str "{... | null | https://raw.githubusercontent.com/moby/vpnkit/6039eac025e0740e530f2ff11f57d6d990d1c4a1/src/hostnet/vmnet.ml | ocaml | generate random uuid on behalf of client if client sent
array of \0
ethernet
preferred_ipv4
disconnect reason
leave room for error message and length
vif
disconnect
write our version before disconnecting
Use blocking I/O here so we can avoid Using Lwt_unix or Uwt. Ideally we
would use... | open Lwt.Infix
let src =
let src = Logs.Src.create "vmnet" ~doc:"vmnet" in
Logs.Src.set_level src (Some Logs.Info);
src
module Log = (val Logs.src_log src : Logs.LOG)
no VLAN
module Init = struct
type t = {
magic: string;
version: int32;
commit: string;
}
let to_string t =
Fmt.str "{... |
b031ab10fdbbafc13bb2c9419ed6fceef440477f1389ba01582f621f0943c79c | amnh/poy5 | genNonAdd.mli | POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies .
Copyright ( C ) 2011 , , , Ward Wheeler
and the American Museum of Natural History .
(* *)
(* This program is free softwa... | null | https://raw.githubusercontent.com/amnh/poy5/da563a2339d3fa9c0110ae86cc35fad576f728ab/src/genNonAdd.mli | ocaml |
This program is free software; you can redistribute it and/or modify
(at your option) any later version.
This progra... | POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies .
Copyright ( C ) 2011 , , , Ward Wheeler
and the American Museum of Natural History .
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; ... |
0f9558fd780d8eab3fb76d29a5793e04c5fb107b14f0716f35b036c07f70ddde | pietervdvn/ALGT | Test.hs | module Gradualize.Test where
{- -}
import Utils.Utils
import Changer.Changes
import TypeSystem
import AbstractInterpreter.AbstractSet
import Gradualize.DynamicRuntime
import Gradualize.FunctionFixer
import Text.PrettyPrint.ANSI.Leijen
import Data.Map as M
import Data.List as L
import Utils.ToString
import Asse... | null | https://raw.githubusercontent.com/pietervdvn/ALGT/43a2811931be6daf1362f37cb16f99375ca4999e/src/Gradualize/Test.hs | haskell | module Gradualize.Test where
import Utils.Utils
import Changer.Changes
import TypeSystem
import AbstractInterpreter.AbstractSet
import Gradualize.DynamicRuntime
import Gradualize.FunctionFixer
import Text.PrettyPrint.ANSI.Leijen
import Data.Map as M
import Data.List as L
import Utils.ToString
import AssetsHelpe... | |
ed5bcb09c6db33032c6709b8a0bb152cb4709ba9fe15cfbcca151071f5d349e0 | leandrosilva/cameron | misultin_ws.erl | % ==========================================================================================================
MISULTIN - Websocket Request
%
% >-|-|-(°>
%
Copyright ( C ) 2011 , < > .
% All rights reserved.
%
% BSD License
%
% Redistribution and use in source and binary forms, with or without modification, are ... | null | https://raw.githubusercontent.com/leandrosilva/cameron/34051395b620d2c3cb2cb63c854e65234786a176/deps/misultin/src/misultin_ws.erl | erlang | ==========================================================================================================
>-|-|-(°>
All rights reserved.
BSD License
Redistribution and use in source and binary forms, with or without modification, are permitted provided
that the following conditions are met:
* Redistribu... | MISULTIN - Websocket Request
Copyright ( C ) 2011 , < > .
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " AND ANY EXPRESS OR
PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT HOLDER OR FOR
ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONS... |
f7f212428a42d5d1223f2ede23ef84ba0a273457f72b6eafb4c3df9914a8bac6 | brawnski/git-annex | SetKey.hs | git - annex command
-
- Copyright 2010 < >
-
- Licensed under the GNU GPL version 3 or higher .
-
- Copyright 2010 Joey Hess <>
-
- Licensed under the GNU GPL version 3 or higher.
-}
module Command.SetKey where
import Control.Monad.State (liftIO)
import Command
import Utility
import Location... | null | https://raw.githubusercontent.com/brawnski/git-annex/8b847517a810d384a79178124b9766141b89bc17/Command/SetKey.hs | haskell | Sets cached content for a key.
the file might be on a different filesystem, so mv is used
rather than simply calling moveToObjectDir; disk space is also
checked this way. | git - annex command
-
- Copyright 2010 < >
-
- Licensed under the GNU GPL version 3 or higher .
-
- Copyright 2010 Joey Hess <>
-
- Licensed under the GNU GPL version 3 or higher.
-}
module Command.SetKey where
import Control.Monad.State (liftIO)
import Command
import Utility
import Location... |
8c736f24b2d6524bb336ae88afd62fbb245f950ea2be2cbe79947bd2852b5879 | Deducteam/Logipedia | sttfadk.mli | * This module give an interface for Dedukti symbols use to represent the STTforall logic .
open Kernel
* Name of the file implementing the STTforall logic .
val sttfa_module : Basic.mident
val sttfa_arrow : Basic.ident
val sttfa_eps : Basic.ident
val sttfa_eta : Basic.i... | null | https://raw.githubusercontent.com/Deducteam/Logipedia/09797a35ae36ab671e40e615fcdc09a7bba69134/src/sttfa/sttfadk.mli | ocaml | * This module give an interface for Dedukti symbols use to represent the STTforall logic .
open Kernel
* Name of the file implementing the STTforall logic .
val sttfa_module : Basic.mident
val sttfa_arrow : Basic.ident
val sttfa_eps : Basic.ident
val sttfa_eta : Basic.i... | |
776850e928d22c964a6d79dbe1c80fa4432d2032dd7be90bb26a89c03c97b5e5 | ideas-edu/ideas | Derivation.hs | -----------------------------------------------------------------------------
Copyright 2019 , Ideas project team . This file is distributed under the
terms of the Apache License 2.0 . For more information , see the files
" LICENSE.txt " and " NOTICE.txt " , which are included in the distribution .
-------... | null | https://raw.githubusercontent.com/ideas-edu/ideas/f84907f92a8c407b7313f99e65a08d2646dc1565/src/Ideas/Common/Derivation.hs | haskell | ---------------------------------------------------------------------------
---------------------------------------------------------------------------
|
Maintainer :
Stability : provisional
and the steps)
---------------------------------------------------------------------------
* Data type
* ... | Copyright 2019 , Ideas project team . This file is distributed under the
terms of the Apache License 2.0 . For more information , see the files
" LICENSE.txt " and " NOTICE.txt " , which are included in the distribution .
Portability : portable ( depends on ghc )
Datatype for representing a derivati... |
14857e83c414eb5984fbb4375e03ee78260b47ddf94c751acfd43a249ba5cb72 | krajj7/BotHack | handlers.clj | (ns bothack.handlers
(:require [clojure.tools.logging :as log]
[bothack.util :refer :all]
[bothack.dungeon :refer :all]
[bothack.delegator :refer :all]))
(defn register-handler
[bh & args]
(send (:delegator bh) #(apply register % args))
bh)
(defn deregister-handler
[bh ha... | null | https://raw.githubusercontent.com/krajj7/BotHack/70226b3c8ed12d29c64068aec0acc0ca71d57adf/src/bothack/handlers.clj | clojure | handler might have been registered too late to receive know-position this turn | (ns bothack.handlers
(:require [clojure.tools.logging :as log]
[bothack.util :refer :all]
[bothack.dungeon :refer :all]
[bothack.delegator :refer :all]))
(defn register-handler
[bh & args]
(send (:delegator bh) #(apply register % args))
bh)
(defn deregister-handler
[bh ha... |
24dd317bdd4c971b2a4164db13d6216e9a38a448f8e6d7db06fbbf7ba5e9f5a8 | hrefhref/styx | styx_web_oauth2_consent.erl | -module(styx_web_oauth2_consent).
-behaviour(cowboy_handler).
-export([init/2]).
init(Req = #{method := <<"GET">>}, State) ->
init_(Req, State, styx_web:req_param(Req, <<"consent_challenge">>));
init(Req = #{method := <<"POST">>}, State) ->
init_(Req, State, styx_web:req_param(Req, <<"consent_challenge">>));
i... | null | https://raw.githubusercontent.com/hrefhref/styx/a808f89428daa2e90ceb7a9876a317e4e85fe5bf/apps/styx_web/src/styx_web_oauth2_consent.erl | erlang | FIXME client_name can be blank, not just undefined. | -module(styx_web_oauth2_consent).
-behaviour(cowboy_handler).
-export([init/2]).
init(Req = #{method := <<"GET">>}, State) ->
init_(Req, State, styx_web:req_param(Req, <<"consent_challenge">>));
init(Req = #{method := <<"POST">>}, State) ->
init_(Req, State, styx_web:req_param(Req, <<"consent_challenge">>));
i... |
3267aae0c9a0d79d64ee974dc41f7d32dcf35a090166c09d9982faebf790fc1a | zelark/AoC-2020 | day_23.clj | (ns zelark.aoc-2020.day-23
(:require [clojure.java.io :as io]))
--- Day 23 : Crab Cups ---
;;
(def input (slurp (io/resource "input_23.txt")))
(defn parse-input [input]
(mapv #(Long/parseLong %) (re-seq #"\d" input)))
(defprotocol ICircleNode
(value [this])
(get-next [this])
(set-next [this node])
... | null | https://raw.githubusercontent.com/zelark/AoC-2020/5417c3514889eb02efc23f6be7d69e29fdfa0376/src/zelark/aoc_2020/day_23.clj | clojure | (ns zelark.aoc-2020.day-23
(:require [clojure.java.io :as io]))
--- Day 23 : Crab Cups ---
(def input (slurp (io/resource "input_23.txt")))
(defn parse-input [input]
(mapv #(Long/parseLong %) (re-seq #"\d" input)))
(defprotocol ICircleNode
(value [this])
(get-next [this])
(set-next [this node])
(in... | |
2947c84f4096862760f398946e1ded448f6112496a3adddfc1ae6692264704f8 | well-typed/large-records | Tutorial2.hs | {-# LANGUAGE ConstraintKinds #-}
# LANGUAGE DataKinds #
{-# LANGUAGE DeriveAnyClass #-}
# LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
# LANGUAGE ExistentialQuantification #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances ... | null | https://raw.githubusercontent.com/well-typed/large-records/fb983aa136c2602499c2421323bd52b6a54b7c9a/beam-large-records/test/Test/Record/Beam/Tutorial2.hs | haskell | # LANGUAGE ConstraintKinds #
# LANGUAGE DeriveAnyClass #
# LANGUAGE KindSignatures #
# LANGUAGE OverloadedStrings #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeFamilies #
# LANGUAGE TypeOperators #
# LANGUAGE UndecidableInstances #
# OPTION... | # LANGUAGE DataKinds #
# LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
# LANGUAGE ExistentialQuantification #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE StandaloneDeriving #
#... |
4897cb20061d1692dbf2562c4a20a13e65a779639298ca8c3c06d6ecc65c4834 | melange-re/melange | js_dump.ml | compiler
* Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P.
* /
* Copyright ( C ) 2010
* Laboratoire PPS - CNRS Université Paris Diderot
*
* 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
... | null | https://raw.githubusercontent.com/melange-re/melange/24083b39f10d8df40a786d890d7530b514ba70a4/jscomp/core/js_dump.ml | ocaml | There modules are dynamically inserted in the last stage
{Caml_curry}
{Caml_option}
They can appear anywhere so even if you have a module
{
let module Caml_block = ...
(* Later would insert the use of Caml_block here which should
point tto the runtime module
Print as underscore fo... | compiler
* Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P.
* /
* Copyright ( C ) 2010
* Laboratoire PPS - CNRS Université Paris Diderot
*
* 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
... |
01d0786105980753c6c8dbc558bfa3a44dcd59597b590301e39913e2ddaff0f1 | ewilderj/coin-tosser | project.clj | (defproject tosser "1.0.0"
:description "coin tossing"
:main tosser.main
:dependencies
[[org.clojure/clojure "1.3.0"]]
:dev-dependencies [])
| null | https://raw.githubusercontent.com/ewilderj/coin-tosser/dbb78efed32eefb23f2ef00659c8187e642cad77/clojure/project.clj | clojure | (defproject tosser "1.0.0"
:description "coin tossing"
:main tosser.main
:dependencies
[[org.clojure/clojure "1.3.0"]]
:dev-dependencies [])
| |
2ec8f083e661a169681494a4918f89daa64a158626f6c99b9994e96061dc8342 | mdedwards/slippery-chicken | videos-example-21-all.lsp | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; File: videos-example-21-all.lsp
;;;
Class Hierarchy : None
;;;
Version : 1.0
;;;
;;; Project: slippery chicken (algorithmic composition)
;;;
Purpose : Lisp example code to accompany video... | null | https://raw.githubusercontent.com/mdedwards/slippery-chicken/c1c11fadcdb40cd869d5b29091ba5e53c5270e04/doc/examples/videos-example-21-all.lsp | lisp |
File: videos-example-21-all.lsp
Project: slippery chicken (algorithmic composition)
****
This file is part of slippery-chicken
slippery-chicken is free software; you can redistribute it
and/or modify it under the terms of the GNU... | Class Hierarchy : None
Version : 1.0
Purpose : Lisp example code to accompany video tutorial 21
Author :
Creation date : 22nd December 2012
Licence : Copyright ( c ) 2012
Public License as published by the Free Software
... |
96cbfd78b789e10c2340c04c3a644ceb1fe03987f4184e07c0da8657866398d7 | kelamg/HtDP2e-workthrough | ex335.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 ex335) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-... | null | https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Intertwined-Data/ex335.rkt | racket | about the language level of this file in a form that our tools can easily process.
A File.v3 is a structure:
(make-file String N String)
A Dir.v3 is a structure:
(make-dir String Dir* File*)
– '()
– (cons Dir.v3 Dir*)
– '()
– (cons File.v3 File*) | The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex335) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f)))
(define-struct file [name size content])
(define-stru... |
d44c9787ac929bc811d8b09d52ccb7dc5cec080a4d54a17ba2f04d36584b2751 | pirapira/coq2rust | globnames.ml | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/library/globnames.ml | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
s Global reference is a kernel side ... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
open Util
open Errors
open Na... |
b87a76345c2bba2ffdb72ee386296c494f87eb88516221ee0b7a261b6f995f84 | DHSProgram/DHS-Indicators-SPSS | RH_tables_BR.sps | * Encoding: windows-1252.
*************************************************************************************************************************************************************************************************************
Program: RH_tables_BR.sps
Purpose: produce tables for indicators
Author: Ivana... | null | https://raw.githubusercontent.com/DHSProgram/DHS-Indicators-SPSS/578e6d40eff9edebda7cf0db0d9a0a52a537d98c/Chap09_RH/RH_tables_BR.sps | scheme | * Encoding: windows-1252.
*************************************************************************************************************************************************************************************************************
Program: RH_tables_BR.sps
Purpose: produce tables for indicators
Author: Ivana... | |
ac0565dcc700e3dff02b7fbe51f49b907c1c40c47e443e3c1fc9be74328f31e7 | apache/couchdb-chttpd | chttpd_plugin.erl | Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not
% use this file except in compliance with the License. You may obtain a copy of
% the License at
%
% -2.0
%
% Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an " A... | null | https://raw.githubusercontent.com/apache/couchdb-chttpd/74002101513c03df74a4c25f3c892f5d003fa5da/src/chttpd_plugin.erl | erlang | use this file except in compliance with the License. You may obtain a copy of
the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations... | Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not
distributed under the License is distributed on an " AS IS " BASIS , WITHOUT
-module(chttpd_plugin).
-export([
before_request/1,
after_request/2,
handle_error/1,
before_response/4,
before_serve_file/5
]).
-defin... |
5840488a30af0cdaf172000f8dc436e727776c1ca55a77febf303563aeb25c02 | oblivia-simplex/roper | arm-analysis.lisp | (in-package :arm-analysis)
(defvar +masks+
'((#b00001111111111111111111111010000
#b00000001001011111111111100010000
:Lay=BX) ;; Found a bug in the spec document?
(#b00001111110000000000000011110000
#b00000000000000000000000010010000
:Lay=MULT)
(#b00001111100000000000000011110000
#b0... | null | https://raw.githubusercontent.com/oblivia-simplex/roper/7714ccf677359126ca82446843030fac89c6655a/lisp/roper/arm-analysis.lisp | lisp | Found a bug in the spec document?
immediate flag
no shift. simplification
(defun stack-delta-rlist (w)
(if (eq (what-layout w) :Lay=BDT)
(let ((rlist (bdt-rlist w)))
(list (* (bdt-stack-dir w) (length rlist)) rlist))
(list 0 nil)))
is a push/pop
writeback
(apply #'mapcar #'+
(ap... | (in-package :arm-analysis)
(defvar +masks+
'((#b00001111111111111111111111010000
#b00000001001011111111111100010000
(#b00001111110000000000000011110000
#b00000000000000000000000010010000
:Lay=MULT)
(#b00001111100000000000000011110000
#b00000000100000000000000010010000
:Lay=MULT_L)
... |
2aa41044df519326bcf50355255449540fd51af077b7cc1a365af9044547a44f | simingwang/emqx-plugin-kafkav5 | hex_filename.erl | @private
Excerpt from -20.0.1/lib/stdlib/src/filename.erl#L761-L788
% with modifications for changing local function calls to remote function calls
to the ` filename ` module , for the functions ` pathtype/1 ` , ` split/1 ` , and ` join/1 `
%
safe_relative_path/1 was not present in earlier OTP releases .
%%
%%... | null | https://raw.githubusercontent.com/simingwang/emqx-plugin-kafkav5/bbf919e56dbc8fd2d4c1c541084532f844a11cbc/_build/default/plugins/hex_core/src/hex_filename.erl | erlang | with modifications for changing local function calls to remote function calls
%CopyrightBegin%
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIO... | @private
Excerpt from -20.0.1/lib/stdlib/src/filename.erl#L761-L788
to the ` filename ` module , for the functions ` pathtype/1 ` , ` split/1 ` , and ` join/1 `
safe_relative_path/1 was not present in earlier OTP releases .
Copyright Ericsson AB 1997 - 2017 . All Rights Reserved .
Licensed under the Apache... |
cb279817851acad0f39676dd9419a4199b54dc741a052b1f6ffa40e46583230d | kongo2002/statser | statser_app.erl | Copyright 2017 - 2018
%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
% you may not use this file except in compliance with the License.
% You may obtain a copy of the License at
%
% -2.0
%
% Unless required by applicable law or agreed to in writing, software
distributed under the Li... | null | https://raw.githubusercontent.com/kongo2002/statser/1cb0498f56c97d8a010b979c5163dd2750064e98/src/statser_app.erl | erlang |
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing perm... | Copyright 2017 - 2018
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(statser_app).
-behaviour(application).
-export([start/2, stop/1, prep_stop/1]).
start(_StartType, _StartArgs) ->
lager:start(),
... |
8de3a87948de5fcd0379da758cc57503dc973b12a78fb026706f0cc42fff9c34 | lambdaisland/souk | rsa_keys.clj | (ns repl-sessions.rsa-keys
(:require
[clojure.string :as str])
(:import
(java.security KeyPairGenerator Signature)
(java.security.spec X509EncodedKeySpec)
(java.util Base64)))
(def kpg (KeyPairGenerator/getInstance "RSA"))
(.initialize kpg 2048)
(def kp (.generateKeyPair kpg))
(.getEncoded (.getPubli... | null | https://raw.githubusercontent.com/lambdaisland/souk/c0945cddb5329308bd167921b2573d05c5f72e59/repl_sessions/rsa_keys.clj | clojure | sign
verify | (ns repl-sessions.rsa-keys
(:require
[clojure.string :as str])
(:import
(java.security KeyPairGenerator Signature)
(java.security.spec X509EncodedKeySpec)
(java.util Base64)))
(def kpg (KeyPairGenerator/getInstance "RSA"))
(.initialize kpg 2048)
(def kp (.generateKeyPair kpg))
(.getEncoded (.getPubli... |
0340053f208ab3a2b6b2bc18ea05b983036068ce230b336e988998f80b84f0ab | Ericson2314/lighthouse | POSIX.hs | {-# OPTIONS -Wall -Werror -cpp #-}
-- | POSIX time, if you need to deal with timestamps and the like.
-- Most people won't need this module.
module Data.Time.Clock.POSIX
(
posixDayLength,POSIXTime,posixSecondsToUTCTime,utcTimeToPOSIXSeconds,getPOSIXTime
) where
import Data.Time.Clock.UTC
import Data.Time.Calendar.Da... | null | https://raw.githubusercontent.com/Ericson2314/lighthouse/210078b846ebd6c43b89b5f0f735362a01a9af02/ghc-6.8.2/libraries/time/Data/Time/Clock/POSIX.hs | haskell | # OPTIONS -Wall -Werror -cpp #
| POSIX time, if you need to deal with timestamps and the like.
Most people won't need this module.
| Get the current POSIX time from the system clock.
time by adjusting the offset to be relative to the POSIX epoch.
Use POSIX time |
module Data.Time.Clock.POSIX
(
posixDayLength,POSIXTime,posixSecondsToUTCTime,utcTimeToPOSIXSeconds,getPOSIXTime
) where
import Data.Time.Clock.UTC
import Data.Time.Calendar.Days
import Data.Fixed
import Control.Monad
#ifdef mingw32_HOST_OS
import Data.Word ( Word64)
import System.Win32.Time
#else
import Data.Time.... |
24e59ba8a9e3fe275b558ea08c148d29bcf5d69c551d3ce096373704e78423d3 | mightybyte/armor | Armor.hs | # LANGUAGE CPP #
{-# LANGUAGE FlexibleContexts #-}
# LANGUAGE ScopedTypeVariables #
module Armor
( Version(..)
, Armored(..)
, ArmorMode(..)
, ArmorConfig(..)
, defArmorConfig
, testArmor
, testArmorMany
, testSerialization
, GoldenTest(..)
, goldenFilePath
) where
----------... | null | https://raw.githubusercontent.com/mightybyte/armor/3f0e58b3f3a2b23c242c8e27f056b274cfefb053/src/Armor.hs | haskell | # LANGUAGE FlexibleContexts #
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
| Version numbers are simple monotonically increasing p... | # LANGUAGE CPP #
# LANGUAGE ScopedTypeVariables #
module Armor
( Version(..)
, Armored(..)
, ArmorMode(..)
, ArmorConfig(..)
, defArmorConfig
, testArmor
, testArmorMany
, testSerialization
, GoldenTest(..)
, goldenFilePath
) where
import Control.Lens
import ... |
a60e087baf1d530f7eba21625de9711c0b29c651d553b22ca5d00a1f35dbe878 | erlang-nix/rebar3_nix | rebar3_nix.erl | -module(rebar3_nix).
-export([init/1]).
-spec init(rebar_state:t()) -> {ok, rebar_state:t()}.
init(State) ->
{ok, State1} = rebar3_nix_bootstrap_prv:init(State),
{ok, State2} = rebar3_nix_lock_prv:init(State1),
{ok, State3} = rebar3_nix_init_prv:init(State2),
{ok, State3}.
| null | https://raw.githubusercontent.com/erlang-nix/rebar3_nix/fbd1b9d1ebc74c9b8a73e9019c18fb50deb42ea2/src/rebar3_nix.erl | erlang | -module(rebar3_nix).
-export([init/1]).
-spec init(rebar_state:t()) -> {ok, rebar_state:t()}.
init(State) ->
{ok, State1} = rebar3_nix_bootstrap_prv:init(State),
{ok, State2} = rebar3_nix_lock_prv:init(State1),
{ok, State3} = rebar3_nix_init_prv:init(State2),
{ok, State3}.
| |
9ee5a8b264b04375db4cd86575dc802456e889b12a7e2e3804dba374cacf3588 | flybot-sg/Pastoral | router.cljc | Copyright ( c ) 2018 Flybot Pte Ltd , Singapore .
;;
This file is distributed under the Eclipse Public License , the same as
Clojure .
;;
;; This file incorporates work covered by the following copyright and
;; permission notice:
;;
Copyright ( c ) 2015 - 2017
;;
;; Permission is hereby granted, free ... | null | https://raw.githubusercontent.com/flybot-sg/Pastoral/c0bfb0e083e7fee22cb242d03768fc8a72598683/src/pastoral/router.cljc | clojure |
This file incorporates work covered by the following copyright and
permission notice:
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
without limitation the rights to use, copy, modify, merge, publish,
the fo... | Copyright ( c ) 2018 Flybot Pte Ltd , Singapore .
This file is distributed under the Eclipse Public License , the same as
Clojure .
Copyright ( c ) 2015 - 2017
" Software " ) , to deal in the Software without restriction , including
distribute , sublicense , and/or sell copies of the Software ... |
6cee4c48dbf964c4b1df914e0c83b835c04519ded5d4be0336e93166bc8ceb92 | chaoxu/mgccl-haskell | BinomialCoefficients.hs | import Data.List
import Control.Monad
main = do
n <- getInteger
go 0 n
go i n =
when (i < n) $
do z <- getIntegerList
print (test z)
go (i + 1) n
getInteger = do
l<-getIntegerList
return (head l)
getIntegerList = do
line <- getLine
let tmp = words line
return (map read tmp... | null | https://raw.githubusercontent.com/chaoxu/mgccl-haskell/bb03e39ae43f410bd2a673ac2b438929ab8ef7a1/interviewstreet/BinomialCoefficients.hs | haskell | import Data.List
import Control.Monad
main = do
n <- getInteger
go 0 n
go i n =
when (i < n) $
do z <- getIntegerList
print (test z)
go (i + 1) n
getInteger = do
l<-getIntegerList
return (head l)
getIntegerList = do
line <- getLine
let tmp = words line
return (map read tmp... | |
8ee750b3d21c1a829de557693f4ef5168b1b821a48599b13d64882bb81567663 | axelarge/advent-of-code | day22_test.clj | (ns advent-of-code.y2017.day22-test
(:require [clojure.test :refer :all]
[advent-of-code.y2017.day22 :refer :all]))
(deftest test-solve1
(is (= (:infected (solve1 test-input 7)) 5))
(is (= (:infected (solve1 test-input 70)) 41))
(is (= (:infected (solve1 test-input 10000)) 5587))
(is (= (:infecte... | null | https://raw.githubusercontent.com/axelarge/advent-of-code/4c62a53ef71605780a22cf8219029453d8e1b977/test/advent_of_code/y2017/day22_test.clj | clojure | (ns advent-of-code.y2017.day22-test
(:require [clojure.test :refer :all]
[advent-of-code.y2017.day22 :refer :all]))
(deftest test-solve1
(is (= (:infected (solve1 test-input 7)) 5))
(is (= (:infected (solve1 test-input 70)) 41))
(is (= (:infected (solve1 test-input 10000)) 5587))
(is (= (:infecte... | |
50945b1db46f4ab4c1c5328e6ccc082696f9272779dbb00e3549a67e064c092b | NorfairKing/smos | Streaming.hs | module Smos.Query.Streaming where
import Conduit
import Control.Monad.Reader
import Path
import Smos.Data
import Smos.Query.Env
import Smos.Report.Archive
import Smos.Report.Config
import Smos.Report.Streaming
streamSmosProjectsQ :: ConduitT i (Path Rel File, SmosFile) Q ()
streamSmosProjectsQ = do
dc <- lift $ ask... | null | https://raw.githubusercontent.com/NorfairKing/smos/55442b20d13b75cd19d71a0fb6ef68e5c85be5b0/smos-query/src/Smos/Query/Streaming.hs | haskell | module Smos.Query.Streaming where
import Conduit
import Control.Monad.Reader
import Path
import Smos.Data
import Smos.Query.Env
import Smos.Report.Archive
import Smos.Report.Config
import Smos.Report.Streaming
streamSmosProjectsQ :: ConduitT i (Path Rel File, SmosFile) Q ()
streamSmosProjectsQ = do
dc <- lift $ ask... | |
7af83ec73e7ef9773e7c4c25e306def80b2dcc757e5f979ceb3c81f30fb3b8e1 | den1k/vimsical | style.clj | (ns vimsical.frontend.views.style)
(def icons
[:.logo-and-type {:display :flex
:flex-shrink 0
:align-items :center
:cursor :pointer}
[:.vimsical-logo {:height :36px
:width :36px}]
[:.vimsical-type {:width :125px
... | null | https://raw.githubusercontent.com/den1k/vimsical/1e4a1f1297849b1121baf24bdb7a0c6ba3558954/src/frontend/vimsical/frontend/views/style.clj | clojure | (ns vimsical.frontend.views.style)
(def icons
[:.logo-and-type {:display :flex
:flex-shrink 0
:align-items :center
:cursor :pointer}
[:.vimsical-logo {:height :36px
:width :36px}]
[:.vimsical-type {:width :125px
... | |
2cba028da5975f61623f4b587dcdd66d9f2753af22562d829bbdcc6e52d20f8d | nikodemus/SBCL | info-functions.lisp | ;;;; miscellaneous functions which use INFO
;;;;
( In CMU CL , these were in globaldb.lisp . They 've been moved here
;;;; because references to INFO can't be compiled correctly until
globaldb initialization is complete , and the SBCL technique for
;;;; initializing the global database in the cross-compiler isn't
;... | null | https://raw.githubusercontent.com/nikodemus/SBCL/3c11847d1e12db89b24a7887b18a137c45ed4661/src/compiler/info-functions.lisp | lisp | miscellaneous functions which use INFO
because references to INFO can't be compiled correctly until
initializing the global database in the cross-compiler isn't
completed until load time.)
more information.
public domain. The software is in the public domain and is
provided with absolutely no warranty. See the... | ( In CMU CL , these were in globaldb.lisp . They 've been moved here
globaldb initialization is complete , and the SBCL technique for
This software is part of the SBCL system . See the README file for
This software is derived from the CMU CL system , which was
written at Carnegie Mellon University and releas... |
16c01568f9554800d0f9daf0b36f197daeff4e7e2fe44aeafe8d4f12cfcce480 | haskell-repa/repa | Base.hs |
module Data.Array.Repa.Base
( Source (..), (!), toList
, deepSeqArrays)
where
import Data.Array.Repa.Shape
-- Source -----------------------------------------------------------------------
-- | Class of array representations that we can read elements from.
class Source r e where
-- Arrays with a rep... | null | https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/repa/Data/Array/Repa/Base.hs | haskell | Source -----------------------------------------------------------------------
| Class of array representations that we can read elements from.
Arrays with a representation tag, shape, and element type.
| O(1). Take the extent (size) of an array.
| O(1). Shape polymorphic indexing.
| O(1). Linear indexing into un... |
module Data.Array.Repa.Base
( Source (..), (!), toList
, deepSeqArrays)
where
import Data.Array.Repa.Shape
class Source r e where
Use one of the type tags like ` D ` , ` U ` and so on for @r@ ,
one of ` DIM1 ` , ` DIM2 ` ... for @sh@.
data Array r sh e
extent :: Shape sh => Array r sh e ->... |
b6e01ae9b636ed96eccc3274079cb6218d581b7f4d491f84e948381556fc1ba7 | juspay/atlas | Transporter.hs | |
Copyright 2022 Juspay Technologies Pvt Ltd
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
you may not use this file except in compliance with the License .
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing , software
dis... | null | https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/driver-offer-bpp/src/Types/API/Transporter.hs | haskell | |
Copyright 2022 Juspay Technologies Pvt Ltd
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
you may not use this file except in compliance with the License .
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing , software
dis... | |
99597117f5a76dce26bb8af1f2bb055e977c2267db20376d158652885c1e7c7f | static-analysis-engineering/codehawk | jCHCopyPropagationNoArrays.mli | = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
CodeHawk Java Analyzer
Author : ------------------------------------------------------------------------------
The MIT License ( MIT )
Copy... | null | https://raw.githubusercontent.com/static-analysis-engineering/codehawk/98ced4d5e6d7989575092df232759afc2cb851f6/CodeHawk/CHJ/jchlib/jCHCopyPropagationNoArrays.mli | ocaml | = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
CodeHawk Java Analyzer
Author : ------------------------------------------------------------------------------
The MIT License ( MIT )
Copy... | |
257d341e41a90df55de62a36048a8e215161a75ad919dab91884eeb308b0ad40 | MLstate/opalang | w_OpenSumsDirective.mli |
Copyright © 2011 MLstate
This file is part of .
is free software : you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License , version 3 , as published by
the Free Software Foundation .
is distributed in the hope that it will be useful , ... | null | https://raw.githubusercontent.com/MLstate/opalang/424b369160ce693406cece6ac033d75d85f5df4f/compiler/libqmlcompil/typer_w/w_OpenSumsDirective.mli | ocaml |
Copyright © 2011 MLstate
This file is part of .
is free software : you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License , version 3 , as published by
the Free Software Foundation .
is distributed in the hope that it will be useful , ... | |
16d47a545a0eec6e1fba92390697668523e29864a208f690164d56d660e24583 | ndmitchell/hlint | Fixity.hs | # LANGUAGE ViewPatterns #
module Fixity(
FixityInfo, Associativity(..),
defaultFixities,
fromFixitySig, toFixitySig, toFixity,
) where
import GHC.Generics(Associativity(..))
import GHC.Hs.Binds
import GHC.Hs.Extension
import GHC.Types.Name.Occurrence
import GHC.Types.Name.Reader
import GHC.Types.Fixit... | null | https://raw.githubusercontent.com/ndmitchell/hlint/e6a6df4e58f9a9866d69187f6c626883d22bb306/src/Fixity.hs | haskell | Lots of things define a fixity. None define it quite right, so let's have our own type.
| A Fixity definition, comprising the name the fixity applies to,
the direction and the precedence. As an example, a source file containing:
quickcheck
esqueleto
lattices
/\
See
spurious warnings. | # LANGUAGE ViewPatterns #
module Fixity(
FixityInfo, Associativity(..),
defaultFixities,
fromFixitySig, toFixitySig, toFixity,
) where
import GHC.Generics(Associativity(..))
import GHC.Hs.Binds
import GHC.Hs.Extension
import GHC.Types.Name.Occurrence
import GHC.Types.Name.Reader
import GHC.Types.Fixit... |
68a61731a20a17204c6ddabb0ba5d93e4ffb9436c1d1e4b7b20a1cfa2d3eccf9 | metosin/muuntaja | core_test.clj | (ns muuntaja.core-test
(:require [clojure.test :refer :all]
[muuntaja.core :as m]
[clojure.string :as str]
[muuntaja.format.core :as core]
[muuntaja.format.form :as form-format]
[muuntaja.format.cheshire :as cheshire-format]
[muuntaja.format.msgp... | null | https://raw.githubusercontent.com/metosin/muuntaja/83da35f35518aaa02ef4d1ca6bbd007b781ebf84/test/muuntaja/core_test.clj | clojure | platform charset
binary
platform charset
binary | (ns muuntaja.core-test
(:require [clojure.test :refer :all]
[muuntaja.core :as m]
[clojure.string :as str]
[muuntaja.format.core :as core]
[muuntaja.format.form :as form-format]
[muuntaja.format.cheshire :as cheshire-format]
[muuntaja.format.msgp... |
9f47de48cae444f0c161b475b7adb3765f16075d8d5b2aa5b018cd127ace221f | binghe/cl-net-snmp | message.lisp | ;;;; -*- Mode: Lisp -*-
$ Id$
(in-package :snmp)
(defclass message ()
((session :type session
:initarg :session
:accessor session-of)
(pdu :type pdu
:initarg :pdu
:accessor pdu-of)
(context :type string
:initarg :context
:accessor c... | null | https://raw.githubusercontent.com/binghe/cl-net-snmp/3cf053bce75734097f0d7e2245a53fa0c45f5e05/message.lisp | lisp | -*- Mode: Lisp -*-
SNMPv1 and SNMPv2c
SNMP v3
Report flag, for SNMP report use.
msgMaxSize
msgFlags: security-level + reportable flag
SNMPv3 Message Encode
contextEngineID
contextName
serialization, according to the rules in [RFC1906], of an OCTET
Now it's a list, not string, as we do this later.
Privacy... | $ Id$
(in-package :snmp)
(defclass message ()
((session :type session
:initarg :session
:accessor session-of)
(pdu :type pdu
:initarg :pdu
:accessor pdu-of)
(context :type string
:initarg :context
:accessor context-of))
(:document... |
32eba37b26ee55686e3668a5139f0addf10be4208f033d12fab1ea38abdbaee5 | haskell-gi/haskell-gi | SeqStore.hs | # LANGUAGE CPP #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeFamilies #
# LANGUAGE DataKinds #
# LANGUAGE TypeApplications #
-- -*-haskell-*-
GIMP Toolkit ( GTK ) CustomStore TreeModel
--
Author : ,
--
Created : 11 Feburary 2006
--
Copyright ( C ) 2005 - 2016 , ,
--
-- This library is free s... | null | https://raw.githubusercontent.com/haskell-gi/haskell-gi/bff8f3b92bf2594ea3d6745c346a8de594fc3709/gi-gtk-hs/src/Data/GI/Gtk/ModelView/SeqStore.hs | haskell | -*-haskell-*-
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
This library 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 PARTICULA... | # LANGUAGE CPP #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeFamilies #
# LANGUAGE DataKinds #
# LANGUAGE TypeApplications #
GIMP Toolkit ( GTK ) CustomStore TreeModel
Author : ,
Created : 11 Feburary 2006
Copyright ( C ) 2005 - 2016 , ,
License as published by the Free Software Foundation... |
437e7699f4f6d7d3cd2cd539fc0499ec8f9eb6bf8525fafc4a74627b61cc8547 | KestrelInstitute/Specware | parse-node-utilities.lisp | -*- Mode : LISP ; Package : Parser ; Base : 10 ; Syntax : Common - Lisp -*-
(in-package :Parser4)
;; ======================================================================
(defmacro warn-pos (location &rest args)
`(warn-pos-fn session ,location ,@args))
(defvar *suppress-warnings?* nil)
(defvar *warnings* '())... | null | https://raw.githubusercontent.com/KestrelInstitute/Specware/2be6411c55f26432bf5c9e2f7778128898220c24/Library/Algorithms/Parsing/Chart/Handwritten/Lisp/parse-node-utilities.lisp | lisp | Package : Parser ; Base : 10 ; Syntax : Common - Lisp -*-
======================================================================
(add-toplevel-node session 0)
t = stream, nil = eof-error-p
'(let ((token
(when (eq (parser-node-rule forward-node) +token-rule+)
(ret... |
(in-package :Parser4)
(defmacro warn-pos (location &rest args)
`(warn-pos-fn session ,location ,@args))
(defvar *suppress-warnings?* nil)
(defvar *warnings* '())
(defun warn-pos-fn (session location &rest args)
(cond (*suppress-warnings?*
(push (apply 'format nil args) *warnings*))
(t
(unless (parse-sess... |
bb769e3d8a4664b54b6b2ba880b4370fb9c587c26f606f4547ba55445bc7b9aa | chessai/semirings | Euclidean.hs | -- |
Module : Data . Euclidean
Copyright : ( c ) 2019
Licence : BSD3
Maintainer : < >
--
# LANGUAGE CPP #
{-# LANGUAGE DefaultSignatures #-}
# LANGUAGE GeneralizedNewtypeDeriving #
{-# LANGUAGE MagicHash #-}
#if MIN_VERSION_base(4,12,0)
{-#... | null | https://raw.githubusercontent.com/chessai/semirings/d494b0bb0c6652b0aa74de34235070434dd8bab7/Data/Euclidean.hs | haskell | |
# LANGUAGE DefaultSignatures #
# LANGUAGE MagicHash #
# LANGUAGE DerivingVia #
# LANGUAGE TemplateHaskell #
-------------------------------------------------------------------
Classes
-------------------------------------------------------------------
| 'GcdDoma... | Module : Data . Euclidean
Copyright : ( c ) 2019
Licence : BSD3
Maintainer : < >
# LANGUAGE CPP #
# LANGUAGE GeneralizedNewtypeDeriving #
#if MIN_VERSION_base(4,12,0)
# LANGUAGE StandaloneDeriving #
#else
#endif
module Data.Euclidean
( Euclidean(..)
, ... |
f8730fa3c3e2bdf94ab34fdbf3183c31fa4383236420594fede4f747f2136d2a | RefactoringTools/HaRe | ToQC.hs | module ToQC(moduleToQC) where
-- haskell syntax
import HsName
import HasBaseStruct
--import PrettyPrint(pp)
import HsExp(EI,mapEI,seqEI)
import HsPat(PI,isPVar)
import HsDecl(DI,HsMatchI(..),mapDI,seqDI)
import HsGuards(HsRhs(..))
import HsFields(HsFieldI(..))
import HsLiteral(HsLiteral(..))
import SrcLoc(loc0)
impor... | null | https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/old/tools/property/transforms/ToQC.hs | haskell | haskell syntax
import PrettyPrint(pp)
import Ents(Ent(..))
property syntax
utils
names of combinators
PRE: all assertions are named
- recursive -----------------------------------------------------------------
------------------------------------------------------------------------------
generating predicates for... | module ToQC(moduleToQC) where
import HsName
import HasBaseStruct
import HsExp(EI,mapEI,seqEI)
import HsPat(PI,isPVar)
import HsDecl(DI,HsMatchI(..),mapDI,seqDI)
import HsGuards(HsRhs(..))
import HsFields(HsFieldI(..))
import HsLiteral(HsLiteral(..))
import SrcLoc(loc0)
import WorkModule(inscpRel)
import Relations(app... |
a7a4b90609b31199c7a3f0661feb5091d7217280df93ddeae5d4af46017019fa | xapi-project/xcp-rrdd | rrdd_stats.ml |
* Copyright ( C ) Citrix Systems Inc.
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation ; version 2.1 only . with the special
* exception on linking described in file LI... | null | https://raw.githubusercontent.com/xapi-project/xcp-rrdd/f810004ae88d308043b73365a959562302b1d4b5/bin/rrdd/rrdd_stats.ml | ocaml | Monitor selected processes, periodically logging stats. @group Performance
Monitoring
* Represents a subset of the data in /proc/meminfo
* Represents a subset of the data in /proc/<pid>/status
TODO: Move this function (and its clones) to xen-api-libs.
Log the initial offset between our monotonic clock and UTC... |
* Copyright ( C ) Citrix Systems Inc.
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation ; version 2.1 only . with the special
* exception on linking described in file LI... |
5d3fa457608b06aa7717afd6af34b8b02ad68a0dc983914c6bd4340c24396629 | BinaryAnalysisPlatform/bap-plugins | trim.ml | open Bap.Std
open Core_kernel
open Cut
open Options
open Graphlib.Std
open Poly
let (^::) = Seq.cons
type trim = {
trim_sub : Sub.t;
cut_group : cut_group;
src_tid : tid;
sink_tid : tid
}
* mark the sink_blk with a no_return , otherwise we ca n't call
Sub.ssa on the blk . Failure can pass silently here... | null | https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap-plugins/2e9aa5c7c24ef494d0e7db1b43c5ceedcb4196a8/minos/trim.ml | ocaml | * test for structural equality: string of right hand side of
defs are all the same. This needs serious rethinking.
* find the blk' that matches blk, and get its tid
returns a sequence of subs that start at the source and go to
the sink. sub is lca in this case
If the source and sink exist | open Bap.Std
open Core_kernel
open Cut
open Options
open Graphlib.Std
open Poly
let (^::) = Seq.cons
type trim = {
trim_sub : Sub.t;
cut_group : cut_group;
src_tid : tid;
sink_tid : tid
}
* mark the sink_blk with a no_return , otherwise we ca n't call
Sub.ssa on the blk . Failure can pass silently here... |
4c0e320ebc272dde2927ae42b7406f586986349b7c89b7b049d60bf53041fd31 | helvm/helms | MTInsertDef.hs | module HelVM.Common.Containers.MTInsertDef where
import Control.Type.Operator
import Data.Default
import Data.MonoTraversable
import Data.Sequence ((|>))
import Data.Sequences
import qualified Data.IntMap as IntMap
import qualified Data.Sequence ... | null | https://raw.githubusercontent.com/helvm/helms/df44190e9ddc64037a6e58548f4a14c7214df7a3/hs/src/HelVM/Common/Containers/MTInsertDef.hs | haskell | | Insert a new element
| Type Class | module HelVM.Common.Containers.MTInsertDef where
import Control.Type.Operator
import Data.Default
import Data.MonoTraversable
import Data.Sequence ((|>))
import Data.Sequences
import qualified Data.IntMap as IntMap
import qualified Data.Sequence ... |
b504874065ba6de118f7450e287d87bb9c140c32285376024eef107e1f759876 | OCamlPro/ocaml-solidity | solidity_checker_TYPES.ml | (**************************************************************************)
(* *)
Copyright ( c ) 2021 OCamlPro & Origin Labs
(* *)
(* All right... | null | https://raw.githubusercontent.com/OCamlPro/ocaml-solidity/f39153f0a0b5b559f5b7d94a34977cf327439355/src/solidity-typechecker/solidity_checker_TYPES.ml | ocaml | ************************************************************************
All rights reserved.
This file is distributed u... | Copyright ( c ) 2021 OCamlPro & Origin Labs
Public License version 2.1 , with the special exception on linking
open Solidity_common
type origin =
| Defined
| Imported
| Inherited
type env = {
mutable ident_map : ((ident_desc * origin) list) IdentMap.t;
mutable using_... |
3e271098883ff1d71f52c880c35f7bf5c10ae1c4f77473dec9ac5e2bd1a8a26b | bennn/iPoe | numbers.rkt | #lang ipoe/haiku
#:comment "This-is-a-'certified'-haiku.-Because-numbers-are-converted-to-English."
1 2 3 4 5
12000102
860
| null | https://raw.githubusercontent.com/bennn/iPoe/4a988f6537fb738b4fe842c404f9d78f658ab76f/examples/haiku/numbers.rkt | racket | #lang ipoe/haiku
#:comment "This-is-a-'certified'-haiku.-Because-numbers-are-converted-to-English."
1 2 3 4 5
12000102
860
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.