_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 |
|---|---|---|---|---|---|---|---|---|
1f8fc38f34903a28b2c2ead7f803449030f994a02706a0b81f67996934d16528 | Isaac-DeFrain/simple-compiler | ast.ml | (* tinyL AST *)
open Core
type 'a ne_list = 'a * 'a list [@@deriving sexp_of]
type pgm = stmt ne_list [@@deriving sexp_of]
and stmt =
| Assign of string * expr
| Read of string
| Print of string
and expr =
| Add of expr * expr
| Sub of expr * expr
| Mul of expr * expr
| And of expr * expr
| Xor of e... | null | https://raw.githubusercontent.com/Isaac-DeFrain/simple-compiler/26f25a62bdf743daf9d0d8a4a8b29e8533e1fdd1/lib/ast/ast.ml | ocaml | tinyL AST
pretty printing
print sexp | open Core
type 'a ne_list = 'a * 'a list [@@deriving sexp_of]
type pgm = stmt ne_list [@@deriving sexp_of]
and stmt =
| Assign of string * expr
| Read of string
| Print of string
and expr =
| Add of expr * expr
| Sub of expr * expr
| Mul of expr * expr
| And of expr * expr
| Xor of expr * expr
| V... |
6c5da952d8051a5eae457eef1f4f4eb17cf2fae7b35f34f71bcae26d272df92a | mjambon/moving-percentile | mv_adapt_avg.mli | (*
Exponential moving average with alpha parameter that
adjusts depending on the signal's stability.
It's designed for returning the most desirable value of a signal
that converges toward some value:
- before stabilizing, preference is given to the latest value
- after stabilizing, preference is give... | null | https://raw.githubusercontent.com/mjambon/moving-percentile/d39e68069acf0b188542459896d237a142ced4b6/mv_adapt_avg.mli | ocaml |
Exponential moving average with alpha parameter that
adjusts depending on the signal's stability.
It's designed for returning the most desirable value of a signal
that converges toward some value:
- before stabilizing, preference is given to the latest value
- after stabilizing, preference is give t... |
type state
val init :
?alpha_gain:float ->
?alpha_min:float ->
?alpha_max:float ->
?track_variance:bool ->
unit -> state
Initialize a tracker .
` track_variance ` must be set to true for tracking variance and
standard deviation .
`track_variance` must be set to true for tracking varianc... |
683eafc0ae6cda7f0ec0c38bae3ec06f1b80d86763ea94a88c73faad5552d697 | vshaxe/hxparser | syntaxErrors.ml |
(* This file was auto-generated based on "haxe.messages". *)
(* Please note that the function [message] can raise [Not_found]. *)
let message =
fun s ->
match s with
| 0 ->
"<YOUR SYNTAX ERROR MESSAGE HERE>\n"
| 1 ->
"<YOUR SYNTAX ERROR MESSAGE HERE>\n"
| 2 ->
"<YOUR SYNTAX ... | null | https://raw.githubusercontent.com/vshaxe/hxparser/8621d5e44805b6d664654d15737faf6a3a4a18fa/src/syntax/syntaxErrors.ml | ocaml | This file was auto-generated based on "haxe.messages".
Please note that the function [message] can raise [Not_found]. |
let message =
fun s ->
match s with
| 0 ->
"<YOUR SYNTAX ERROR MESSAGE HERE>\n"
| 1 ->
"<YOUR SYNTAX ERROR MESSAGE HERE>\n"
| 2 ->
"<YOUR SYNTAX ERROR MESSAGE HERE>\n"
| 600 ->
"<YOUR SYNTAX ERROR MESSAGE HERE>\n"
| 601 ->
"<YOUR SYNTAX ERROR MESSAGE ... |
88fb4923ce875fac8a273cc39b667ee2c9e33a083f3a061989e4d7c987275af1 | tschady/advent-of-code | test.clj | (ns aoc.{{year}}.d{{day}}-test
(:require
[aoc.{{year}}.d{{day}} :as sut]
[clojure.test :refer :all]))
(deftest challenges
(is (= false (sut/part-1 sut/input)))
(is (= false (sut/part-2 sut/input))))
| null | https://raw.githubusercontent.com/tschady/advent-of-code/496c3afb5efcc27ba4f506327daa9eb936e0a711/resources/templates/test.clj | clojure | (ns aoc.{{year}}.d{{day}}-test
(:require
[aoc.{{year}}.d{{day}} :as sut]
[clojure.test :refer :all]))
(deftest challenges
(is (= false (sut/part-1 sut/input)))
(is (= false (sut/part-2 sut/input))))
| |
679de0ae4c249e09d344b8a3171807156be51d6c0802a38f9b874666b4eab5cd | OCamlPro/digodoc | cmt.ml | (**************************************************************************)
(* *)
Copyright ( c ) 2020 OCamlPro SAS & Origin Labs SAS
(* *)
(* All right... | null | https://raw.githubusercontent.com/OCamlPro/digodoc/4b09c795737a907f18ca6afb804133e2e46e97c0/src/digodoc_lib/cmt.ml | ocaml | ************************************************************************
All rights reserved.
This file is distributed u... | Copyright ( c ) 2020 OCamlPro SAS & Origin Labs SAS
Public License version 2.1 , with the special exception on linking
open Types
open Cmi_format
let infix name =
match name with
| "asr" | "land" | "lnot" | "lor" | "lsl" | "lsr"
| "lxor" | "mod" -> "(" ^ name ^ ")"
| _ ->
if... |
08b459f1de4716511052f3a145606648ff54e3bfb0753dfb5ac02b3b11e84223 | simingwang/emqx-plugin-kafkav5 | jsx_parser.erl | %% The MIT License
Copyright ( c ) 2010 - 2013 < >
%% Permission is hereby granted, free of charge, to any person obtaining a copy
%% of this software and associated documentation files (the "Software"), to deal
in the Software without restriction , including without limitation the rights
%% to use, copy, modi... | null | https://raw.githubusercontent.com/simingwang/emqx-plugin-kafkav5/bbf919e56dbc8fd2d4c1c541084532f844a11cbc/_build/default/plugins/jsx/src/jsx_parser.erl | erlang | The MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
furnished to do so, subject to the following conditions:
The above co... |
Copyright ( c ) 2010 - 2013 < >
in the Software without restriction , including without limitation the rights
copies of the Software , and to permit persons to whom the Software is
all copies or substantial portions of the Software .
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , E... |
80874a02a6e69e668fb867738d181cc4291d739cb0de4befb7d565852df1a70c | rpav/cl-freetype2 | cffi-cwrap.lisp | (in-package :freetype2-types)
;; Memory
(defcfun (libc-calloc "calloc") :pointer
(nmemb size_t)
(size size_t))
(export 'libc-calloc)
(defcfun (libc-free "free") :void
(ptr :pointer))
(export 'libc-free)
(declaim (inline finalize))
#+(not ccl)
(defun finalize (object function)
(tg:finalize object functi... | null | https://raw.githubusercontent.com/rpav/cl-freetype2/96058da730b4812df916c1f4ee18c99b3b15a3de/src/ffi/cffi-cwrap.lisp | lisp | Memory
Wrapper Struct
Apparently define-foreign-type _doesn't_ ensure that CLASS-NAME
becomes a subclass of FOREIGN-TYPE
POINTER-TO foreign type
CFFI Wrapper Macros
Structs
Translation
Export | (in-package :freetype2-types)
(defcfun (libc-calloc "calloc") :pointer
(nmemb size_t)
(size size_t))
(export 'libc-calloc)
(defcfun (libc-free "free") :void
(ptr :pointer))
(export 'libc-free)
(declaim (inline finalize))
#+(not ccl)
(defun finalize (object function)
(tg:finalize object function))
#+(or ... |
040b4643f244dc1b77ca829f2ba9ab8a7741a50b26e94c56fc1801c201989cba | clojure-emacs/cider-nrepl | macroexpand_tools_deps_test.clj | (ns macroexpand-tools-deps-test
(:require
[example]
[cider.nrepl.middleware.macroexpand]))
(defn -main [& _]
(println (cider.nrepl.middleware.macroexpand/macroexpansion {:ns 'example
:code "(foo)"}))
(System/exit 0))
| null | https://raw.githubusercontent.com/clojure-emacs/cider-nrepl/5feebdbb942f20934dbdb24c9f5433b5cd806338/tools-deps-testing/macroexpand_tools_deps_test.clj | clojure | (ns macroexpand-tools-deps-test
(:require
[example]
[cider.nrepl.middleware.macroexpand]))
(defn -main [& _]
(println (cider.nrepl.middleware.macroexpand/macroexpansion {:ns 'example
:code "(foo)"}))
(System/exit 0))
| |
b12c024688d14cbe77e9c80af746321c015a494867f1c197f59c9a0290859138 | clojurecademy/clojurecademy | course.clj | (ns clojurecademy.view.course
(:require [hiccup.page :refer [include-js include-css html5]]
[clojurecademy.util.resource :as resource.util]))
(defn- head
[]
[:head
[:meta
{:content "text/html; charset=UTF-8", :http-equiv "Content-Type"}]
[:meta {:content "ie=edge", :http-equiv "x-ua-compati... | null | https://raw.githubusercontent.com/clojurecademy/clojurecademy/97dc7f9b91a90a3f30ca5a3de88542c90a50ce01/src/clj/clojurecademy/view/course.clj | clojure | {:style "height:auto"} | (ns clojurecademy.view.course
(:require [hiccup.page :refer [include-js include-css html5]]
[clojurecademy.util.resource :as resource.util]))
(defn- head
[]
[:head
[:meta
{:content "text/html; charset=UTF-8", :http-equiv "Content-Type"}]
[:meta {:content "ie=edge", :http-equiv "x-ua-compati... |
02f15fe79b021b438b4867e2dbd772c6e1509647b8605022ece82369a93df318 | wies/grasshopper | prover.ml | (** {5 Interface to prover backend} *)
open Grass
open GrassUtil
open Util
open Axioms
let mk_inst_closure_term t = mk_free_app Bool ("inst-closure", 0) [t]
let mk_inst_closure t = mk_pred ("inst-closure", 0) [t]
let get_signature fs =
let sign = overloaded_sign (mk_and fs) in
if !Config.instantiate then sign ... | null | https://raw.githubusercontent.com/wies/grasshopper/108473b0a678f0d93fffec6da2ad6bcdce5bddb9/src/prover/prover.ml | ocaml | * {5 Interface to prover backend}
Add known and inst-closure predicates to signature
let gts_fs = ground_terms (mk_and fs) in
* Compute term generators for Btwn fields
* Generate local instances of all axioms of [fs] in which variables occur below function symbols
repeat in a fixed point in order to get a smaller ... |
open Grass
open GrassUtil
open Util
open Axioms
let mk_inst_closure_term t = mk_free_app Bool ("inst-closure", 0) [t]
let mk_inst_closure t = mk_pred ("inst-closure", 0) [t]
let get_signature fs =
let sign = overloaded_sign (mk_and fs) in
if !Config.instantiate then sign else
let all_srts =
SymbolMap.fol... |
cb2f587add2e12eb38353ca878850bd18e9f23f9db3cfcb8c3b90b7380197959 | ariesteam/aries | aesthetic_view_colorado.clj | Copyright 2011 The ARIES Consortium ( )
;;;
;;; This file is part of ARIES.
;;;
;;; ARIES is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
;;; (at your option) any later... | null | https://raw.githubusercontent.com/ariesteam/aries/b3fafd4640f4e7950fff3791bc4ea4c06ee4dcdf/plugins/org.integratedmodelling.aries.core/models/aesthetic_view_colorado.clj | clojure |
This file is part of ARIES.
ARIES is free software: you can redistribute it and/or modify it
(at your option) any later version.
ARIES is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ... | Copyright 2011 The ARIES Consortium ( )
under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
You should have received a copy of the GNU General Public License
Viewshed model for Colorado
(ns core.models.aesthetic-view-colorado
... |
e1af4ab9e46dab25e55446df568b867d662c9fce15678bf1ecf03e0b4661d2e5 | input-output-hk/plutus | PIRTypes.hs | module PlutusTx.PIRTypes where
import PlutusCore.Annotation
import PlutusIR qualified as PIR
type PIRKind = PIR.Kind Ann
type PIRType uni = PIR.Type PIR.TyName uni Ann
type PIRTerm uni fun = PIR.Term PIR.TyName PIR.Name uni fun Ann
type PIRProgram uni fun = PIR.Program PIR.TyName PIR.Name uni fun SrcSpans
type PIRBi... | null | https://raw.githubusercontent.com/input-output-hk/plutus/6250c70ae6e646813f47eed56f4302893c253739/plutus-tx-plugin/src/PlutusTx/PIRTypes.hs | haskell | module PlutusTx.PIRTypes where
import PlutusCore.Annotation
import PlutusIR qualified as PIR
type PIRKind = PIR.Kind Ann
type PIRType uni = PIR.Type PIR.TyName uni Ann
type PIRTerm uni fun = PIR.Term PIR.TyName PIR.Name uni fun Ann
type PIRProgram uni fun = PIR.Program PIR.TyName PIR.Name uni fun SrcSpans
type PIRBi... | |
c79f912ffeea51542e0dfa4eb13b5c0cc2d6e21ee9bfb8120b0871b527fc06a1 | inaka/elvis_core | fail_macro_module_names.erl | -module(fail_macro_module_names).
-ignore_xref({module, function_name, 1}).
-ignore_xref({lists, fail_macro_module_names, 0}).
-dialyzer({nowarn_function, [function_name/0, build_binary/0]}).
-export([
module_name/0,
function_name/0,
no_errors/0,
build_binary/0
]).
-defin... | null | https://raw.githubusercontent.com/inaka/elvis_core/06918f117899a67612b345df96d789b60c4552f9/test/examples/fail_macro_module_names.erl | erlang | -module(fail_macro_module_names).
-ignore_xref({module, function_name, 1}).
-ignore_xref({lists, fail_macro_module_names, 0}).
-dialyzer({nowarn_function, [function_name/0, build_binary/0]}).
-export([
module_name/0,
function_name/0,
no_errors/0,
build_binary/0
]).
-defin... | |
78f2ec5148b5ecb23a45a8fe1c536315492dd7c4fffe6c3fc134c996f6233deb | s-expressionists/ctype | carray.lisp | (in-package #:ctype)
(defmethod ctypep ((object array) (ct carray))
(let ((uaet (carray-uaet ct))
(dims (carray-dims ct))
(simplicity (carray-simplicity ct)))
(and (if (eq simplicity :simple)
(simple-array-p object)
(not (simple-array-p object)))
(or (eq uaet '*... | null | https://raw.githubusercontent.com/s-expressionists/ctype/2b13bc5a17fad0117b4a5860bade678ed6bf7c3c/carray.lisp | lisp | simplicity mismatch
Dimension mismatch
Rank mismatch
Since we don't really keep track of array types with chunks taken out
of them, our goal here is just to reduce things to bottom or ct1.
all dimension forbidden
can't remove chunks
different rank, dis joint
dim mismatch
e.g. for dims ( 3 * ) - ( * 3 )
If we... | (in-package #:ctype)
(defmethod ctypep ((object array) (ct carray))
(let ((uaet (carray-uaet ct))
(dims (carray-dims ct))
(simplicity (carray-simplicity ct)))
(and (if (eq simplicity :simple)
(simple-array-p object)
(not (simple-array-p object)))
(or (eq uaet '*... |
ff648e51bb211f905f7acf2fa4c86f15d838e4cf56028ccac23d39846ab2f0a4 | input-output-hk/project-icarus-importer | Plugin.hs | # LANGUAGE CPP #
{-# LANGUAGE RankNTypes #-}
-- | Auxx plugin.
module Plugin
( auxxPlugin
, rawExec
) where
import Universum
#if !(defined(mingw32_HOST_OS))
import System.Exit (ExitCode (ExitSuccess))
import System.Posix.Process (exitImmediately)
#endif
imp... | null | https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/auxx/src/Plugin.hs | haskell | # LANGUAGE RankNTypes #
| Auxx plugin.
--------------------------------------------------------------------------
Plugin implementation
--------------------------------------------------------------------------
--------------------------------------------------------------------------
Extra logging
-----------------... | # LANGUAGE CPP #
module Plugin
( auxxPlugin
, rawExec
) where
import Universum
#if !(defined(mingw32_HOST_OS))
import System.Exit (ExitCode (ExitSuccess))
import System.Posix.Process (exitImmediately)
#endif
import Control.Monad.Except (ExceptT (.... |
7ce5cd7bb600b2b20258e0ece2f9914a4f24b23a54e6d1ea5eee554235a12770 | logseq/logseq | publishing.cljs | (ns frontend.publishing
"Entry ns for publishing build. Handles primary publishing app behaviors"
(:require [frontend.state :as state]
[datascript.core :as d]
[frontend.db :as db]
[logseq.db.schema :as db-schema]
[rum.core :as rum]
[frontend.handler.route ... | null | https://raw.githubusercontent.com/logseq/logseq/46433cbd6f4fca70a21a2ad295e3ea10b2c8ed89/src/main/frontend/publishing.cljs | clojure | The publishing site should be as thin as possible.
Both files and git libraries can be removed.
Maybe we can remove some handlers and components too.
We might host the pages or blocks directly on logseq.com in the future.
How to publish?
html, css, javascript and other files (image, mp3, etc.), the serialized
... | (ns frontend.publishing
"Entry ns for publishing build. Handles primary publishing app behaviors"
(:require [frontend.state :as state]
[datascript.core :as d]
[frontend.db :as db]
[logseq.db.schema :as db-schema]
[rum.core :as rum]
[frontend.handler.route ... |
4d4b20cfaae6ad313b1246a8ebd31dc62603ec2f74ced8d7200d3c2715fb7606 | anton-k/handle-pattern-servant-app | Config.hs | -- | An example of how to read server configs from YAML
-- and override them with CLI options
module Config
( Config(..)
, readConfig
) where
import GHC.Generics
import Types
import Data.Maybe (fromMaybe)
import Data.Yaml qualified as Yaml
import Deriving.Aeson.Stock
import Options.Applicative
-- | Config for t... | null | https://raw.githubusercontent.com/anton-k/handle-pattern-servant-app/4a9b6a4635e5555bd3b7a2ca9de76f06491104f4/app/Config.hs | haskell | | An example of how to read server configs from YAML
and override them with CLI options
| Config for the server
^ path to DB
^ path to timer service
^ server port
---------------------------------------------------------------
parsing configs with CLI options
| CLI args
^ an example of option that can override... | module Config
( Config(..)
, readConfig
) where
import GHC.Generics
import Types
import Data.Maybe (fromMaybe)
import Data.Yaml qualified as Yaml
import Deriving.Aeson.Stock
import Options.Applicative
data Config = Config
}
deriving (Generic, Show)
deriving (ToJSON, FromJSON) via Vanilla Config
defaultCo... |
5ebcdfbef34dd1143652fa24da070d27f62624acccd28cea9b8f270b88fe2c06 | esl/MongooseIM | mongoose_backend.erl | -module(mongoose_backend).
%% API
-export([init/4,
call/4,
call_tracked/4,
is_exported/4,
get_backend_name/2]).
%% remove after mongoose_rdbms is refactored not to use dynamically compiled backend
-ignore_xref([get_backend_name/2]).
%% For debugging and tests
-export([get_backend_... | null | https://raw.githubusercontent.com/esl/MongooseIM/a6bc5cb037d53f71c1ca04a407b872fa3ad83ec2/src/mongoose_backend.erl | erlang | API
remove after mongoose_rdbms is refactored not to use dynamically compiled backend
For debugging and tests
@doc Get a backend module, stored in init.
@doc Get a backend name, like `pgsql', stored in init. | -module(mongoose_backend).
-export([init/4,
call/4,
call_tracked/4,
is_exported/4,
get_backend_name/2]).
-ignore_xref([get_backend_name/2]).
-export([get_backend_module/2]).
-ignore_xref([get_backend_module/2]).
-type function_name() :: atom().
-type main_module() :: module().
-t... |
524937842593c27e591a888e423c8581b7734843d5e698a147ae374106db24db | cxphoe/SICP-solutions | 3.35.rkt | (load "connector.rkt")
(define (squarer a b)
(define (process-new-value)
(cond ((has-value? b)
(if (> 0 (get-value b))
(error "square less than 0 -- SQUARER" (get-value b))
(set-value! a
(sqrt (get-value b))
me)))
... | null | https://raw.githubusercontent.com/cxphoe/SICP-solutions/d35bb688db0320f6efb3b3bde1a14ce21da319bd/Chapter%203-Modeling%20with%20Mutable%20Data/3.Changed%20Data/3.35.rkt | racket | (load "connector.rkt")
(define (squarer a b)
(define (process-new-value)
(cond ((has-value? b)
(if (> 0 (get-value b))
(error "square less than 0 -- SQUARER" (get-value b))
(set-value! a
(sqrt (get-value b))
me)))
... | |
243a5f260b4627cd25b3db244546e5c25d66c74d0ecab8c58bfa8a2dace4c662 | wesen/ruinwesen | package.lisp | (in-package :cl-user)
(defpackage :portfolio.config
(:use :cl :cl-user)
(:export
#:*website-url*
#:*website-directory*
#:*xml-catalog-directory*
#:*store-directory*
#:*webserver-port*))
(defpackage :portfolio
(:documentation "Package for the PORTFOLIO system")
(:nicknames :template... | null | https://raw.githubusercontent.com/wesen/ruinwesen/9f3ccea85425cf46b57e76144b3114ca342bad0f/portfolio/src/package.lisp | lisp | (in-package :cl-user)
(defpackage :portfolio.config
(:use :cl :cl-user)
(:export
#:*website-url*
#:*website-directory*
#:*xml-catalog-directory*
#:*store-directory*
#:*webserver-port*))
(defpackage :portfolio
(:documentation "Package for the PORTFOLIO system")
(:nicknames :template... | |
5dff5e7d275c3146ee0789b3676d069352d43438457f10c04b5f193365d65830 | reifyhealth/specmonstah | build.clj | (ns build
"specmonstah's build script. inspired by:
*
* -clj
Run tests:
clojure -X:test
clojure -X:test-cljs
For more information, run:
clojure -A:deps -T:build help/doc"
(:refer-clojure :exclude [test])
(:require [clojure.tools.build.api :as b]
[org.corfield.build :as bb]))
(def lib ... | null | https://raw.githubusercontent.com/reifyhealth/specmonstah/7d28a55943e3d76bf3ea43072e51795e1cec44e0/build.clj | clojure | (ns build
"specmonstah's build script. inspired by:
*
* -clj
Run tests:
clojure -X:test
clojure -X:test-cljs
For more information, run:
clojure -A:deps -T:build help/doc"
(:refer-clojure :exclude [test])
(:require [clojure.tools.build.api :as b]
[org.corfield.build :as bb]))
(def lib ... | |
23845401bff5fe8d338aef36f9f9cc787dfe901a31f1a68fee39ae8a320f315d | stan-dev/stanc3 | Fun_kind.ml | * Types for function kinds , e.g. [ StanLib ] or [ UserDefined ] , and
function suffix types , e.g. [ foo_ldfp ] , [ bar_lp ]
function suffix types, e.g. [foo_ldfp], [bar_lp]
*)
open Core_kernel
open Core_kernel.Poly
type 'propto suffix = FnPlain | FnRng | FnLpdf of 'propto | FnTarget
[@@deriving compare, sex... | null | https://raw.githubusercontent.com/stan-dev/stanc3/1c5a68d3453903e1f0fd4f332cbed12e7231e63c/src/middle/Fun_kind.ml | ocaml | * Types for function kinds , e.g. [ StanLib ] or [ UserDefined ] , and
function suffix types , e.g. [ foo_ldfp ] , [ bar_lp ]
function suffix types, e.g. [foo_ldfp], [bar_lp]
*)
open Core_kernel
open Core_kernel.Poly
type 'propto suffix = FnPlain | FnRng | FnLpdf of 'propto | FnTarget
[@@deriving compare, sex... | |
203dbe6c4624f8cebbb038e5c6c4886f45f1444bb8425bccd8aedd3f698f57cc | static-analysis-engineering/codehawk | bCHDwarfUtils.ml | = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
CodeHawk Binary Analyzer
------------------------------------------------------------------------------
The MIT License ( MIT )
Copyrig... | null | https://raw.githubusercontent.com/static-analysis-engineering/codehawk/e8fed9f226abe38578768968279c8242eb21fea9/CodeHawk/CHB/bchlibelf/bCHDwarfUtils.ml | ocaml | bchlib
bchlibelf
int -> dwarf_tag_type
dwarf_tag_type -> string
string -> dwarf_tag_type
int -> dwarf_attr_type
dwarf_attr_type -> string
string -> dwarf_attr_type
int -> dwarf_form_type
dwarf_form_type -> string
string -> dwarf_form_type | = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
CodeHawk Binary Analyzer
------------------------------------------------------------------------------
The MIT License ( MIT )
Copyrig... |
72caa53e9417e65a3266c9d28fa8e21732914ad6a07315fb7d1caec07aec8191 | kmi/irs | load.lisp | Mode : Lisp ; Package :
File created in WebOnto
(in-package "OCML")
(eval-when (eval load)
(ensure-ontology
medical-guidelines
domain
))
(def-ontology medical-services :includes (medical-guidelines)
:type :domain
:author "enrico" :allowed-editors ("john")) | null | https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/ontologies/domains/medical-services/load.lisp | lisp | Package : |
File created in WebOnto
(in-package "OCML")
(eval-when (eval load)
(ensure-ontology
medical-guidelines
domain
))
(def-ontology medical-services :includes (medical-guidelines)
:type :domain
:author "enrico" :allowed-editors ("john")) |
8ab2172892e5c2dbeffca910a03921e893f28fd1929cc16c9fbc1ea939e8ec26 | BrunoBonacci/mulog | project.clj | (defn ver [] (-> "../ver/mulog.version" slurp .trim))
(defproject com.brunobonacci/mulog-jvm-metrics #=(ver)
:description "A JVM metrics sampler for μ/log."
:url ""
:license {:name "Apache License 2.0"
:url "-2.0"}
:scm {:name "git" :url ""}
:dependencies [[org.clojure/clojure "1.10.3"]
... | null | https://raw.githubusercontent.com/BrunoBonacci/mulog/e31f84ccf6d62d43c1c620ef5584722886e0d8a5/mulog-jvm-metrics/project.clj | clojure | (defn ver [] (-> "../ver/mulog.version" slurp .trim))
(defproject com.brunobonacci/mulog-jvm-metrics #=(ver)
:description "A JVM metrics sampler for μ/log."
:url ""
:license {:name "Apache License 2.0"
:url "-2.0"}
:scm {:name "git" :url ""}
:dependencies [[org.clojure/clojure "1.10.3"]
... | |
7ed0263d274f3ab6416739239f42de2242108c0c2ca2e08302a63020d3b1f25f | Opetushallitus/ataru | virkailija_application_version_history.cljs | (ns ataru.virkailija.application.view.virkailija-application-version-history
(:require [ataru.util :as util]
[ataru.virkailija.temporal :as temporal]
[ataru.virkailija.views.modal :as modal]
[goog.string :as gstring]
[re-frame.core :refer [subscribe dispatch]]))
(defn-... | null | https://raw.githubusercontent.com/Opetushallitus/ataru/2d8ef1d3f972621e301a3818567d4e11219d2e82/src/cljs/ataru/virkailija/application/view/virkailija_application_version_history.cljs | clojure | (ns ataru.virkailija.application.view.virkailija-application-version-history
(:require [ataru.util :as util]
[ataru.virkailija.temporal :as temporal]
[ataru.virkailija.views.modal :as modal]
[goog.string :as gstring]
[re-frame.core :refer [subscribe dispatch]]))
(defn-... | |
95aaaab533899011d61e5615a87628dc29b8770bed7ee1a967c40de236299ec0 | rand00/conntest | protocol_msg.ml |
module T = struct
type info = {
name : string;
}
[@@deriving yojson]
type direction = [ `Up | `Down ]
[@@deriving yojson]
type bandwidth_monitor = {
direction : direction;
n_packets : int;
packet_size : int; (*bytes*)
}
[@@deriving yojson]
type t = [
| `Hello of info
| `Ba... | null | https://raw.githubusercontent.com/rand00/conntest/526e2bf6b4b3d3691601dc078dfef9c0e0df9576/lib/protocol_msg.ml | ocaml | bytes |
module T = struct
type info = {
name : string;
}
[@@deriving yojson]
type direction = [ `Up | `Down ]
[@@deriving yojson]
type bandwidth_monitor = {
direction : direction;
n_packets : int;
}
[@@deriving yojson]
type t = [
| `Hello of info
| `Bandwidth of bandwidth_monitor
... |
a5d1388336a9d7aad405993642c63e15cb8fc4e9692789a8e004d71aedd488f2 | haskell-opengl/OpenGLRaw | MatrixPalette.hs | # LANGUAGE PatternSynonyms #
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.GL.ARB.MatrixPalette
Copyright : ( c ) 2019
-- License : BSD3
--
Maintainer : < >
-- Stability : stable
-- Portability : portable
--
------------------... | null | https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/ARB/MatrixPalette.hs | haskell | ------------------------------------------------------------------------------
|
Module : Graphics.GL.ARB.MatrixPalette
License : BSD3
Stability : stable
Portability : portable
------------------------------------------------------------------------------
* Extension Support
* Enums
* Functions | # LANGUAGE PatternSynonyms #
Copyright : ( c ) 2019
Maintainer : < >
module Graphics.GL.ARB.MatrixPalette (
glGetARBMatrixPalette,
gl_ARB_matrix_palette,
pattern GL_CURRENT_MATRIX_INDEX_ARB,
pattern GL_CURRENT_PALETTE_MATRIX_ARB,
pattern GL_MATRIX_INDEX_ARRAY_ARB,
pattern GL_MATRIX_INDEX_... |
eb3a9ae72c8d0262b3767abca7c8da2a47394a4d0667bcb54a4584391932e97c | NorfairKing/smos | Logbook.hs | {-# LANGUAGE OverloadedStrings #-}
module Smos.Actions.Entry.Logbook
( allLogbookPlainActions,
allLogbookUsingCharActions,
logbookClockIn,
logbookClockOut,
)
where
import Data.Time
import Smos.Actions.Utils
import Smos.Types
allLogbookPlainActions :: [Action]
allLogbookPlainActions = [logbookClockIn,... | null | https://raw.githubusercontent.com/NorfairKing/smos/f72b26c2e66ab4f3ec879a1bedc6c0e8eeb18a01/smos/src/Smos/Actions/Entry/Logbook.hs | haskell | # LANGUAGE OverloadedStrings # |
module Smos.Actions.Entry.Logbook
( allLogbookPlainActions,
allLogbookUsingCharActions,
logbookClockIn,
logbookClockOut,
)
where
import Data.Time
import Smos.Actions.Utils
import Smos.Types
allLogbookPlainActions :: [Action]
allLogbookPlainActions = [logbookClockIn, logbookClockOut]
allLogbookUsingC... |
7e2f8c6071e6acbffa6fa32da80d2d7603b4c7bb6826432a54d76ae674ab921f | ghc/packages-Cabal | setup.test.hs | import Test.Cabal.Prelude
-- Test building a dynamic library/executable which uses Template
-- Haskell
main = setupAndCabalTest $ do
skipUnless =<< hasSharedLibraries
setup_build ["--enable-shared", "--enable-executable-dynamic"]
| null | https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/cabal-testsuite/PackageTests/TemplateHaskell/dynamic/setup.test.hs | haskell | Test building a dynamic library/executable which uses Template
Haskell | import Test.Cabal.Prelude
main = setupAndCabalTest $ do
skipUnless =<< hasSharedLibraries
setup_build ["--enable-shared", "--enable-executable-dynamic"]
|
25f6ef94e30f6687901527d6c20b6bbe0d0aa6dc82a496bc6dabcdeaff04df16 | spurious/sagittarius-scheme-mirror | client.scm | -*- mode : scheme ; coding : utf-8 ; -*-
;;;
;;; rfc/ftp/client.scm - FTP client
;;;
Copyright ( c ) 2010 - 2013 < >
;;;
;;; Redistribution and use in source and binary forms, with or without
;;; modification, are permitted provided that the following conditions
;;; are met:
;;;
;;; 1. Redi... | null | https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/sitelib/rfc/ftp/client.scm | scheme | coding : utf-8 ; -*-
rfc/ftp/client.scm - FTP client
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of condi... | Copyright ( c ) 2010 - 2013 < >
" AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT
SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED
LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING
#!read-macro=sagittarius/regex
(library (rfc... |
27f67c017326903bf0308514f9bbcd4b5931b8a6f618c80c5105dd8a9d3005b4 | janestreet/universe | at.ml | open Core_kernel
open! Import
open Types.Kind
module Node = Types.Node
type t = Types.At.t =
{ main : Before_or_after.t Node.t
; at : Time_ns.t
; mutable alarm : Alarm.t
; clock : (Types.Clock.t[@sexp.opaque])
}
[@@deriving fields, sexp_of]
let invariant t =
Invariant.invariant [%here] t [%sexp_of: t] (fu... | null | https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/incremental/src/at.ml | ocaml | happens once the current time passes [t.at]. | open Core_kernel
open! Import
open Types.Kind
module Node = Types.Node
type t = Types.At.t =
{ main : Before_or_after.t Node.t
; at : Time_ns.t
; mutable alarm : Alarm.t
; clock : (Types.Clock.t[@sexp.opaque])
}
[@@deriving fields, sexp_of]
let invariant t =
Invariant.invariant [%here] t [%sexp_of: t] (fu... |
23c21dea1b73c1cd0d6e0e269073fc6e066def545d3cbc038520a7fce84d90be | BartMassey/advent-of-code-2015 | soln.hs | Copyright © 2015
[ This program is licensed under the " MIT License " ]
-- Please see the file COPYING in the source
-- distribution of this software for license terms.
import Soln
-- | PRNG parameters.
prngA, prngM, prngSeed :: Word64
prngA = 252533
prngM = 33554393
prngSeed = 20151125
-- | Multiplication mo... | null | https://raw.githubusercontent.com/BartMassey/advent-of-code-2015/16bb3eca7852f1b0d2bfb9dbbe2da587642444f4/25/soln.hs | haskell | Please see the file COPYING in the source
distribution of this software for license terms.
| PRNG parameters.
| Multiplication mod 'prngM'
| Squaring mod 'prngM'
| 'prngA' to the given power, mod 'prngM'
| Output of PRNG after given number of rounds.
| Calculate the index position of a given row and column.
| ... | Copyright © 2015
[ This program is licensed under the " MIT License " ]
import Soln
prngA, prngM, prngSeed :: Word64
prngA = 252533
prngM = 33554393
prngSeed = 20151125
modTimes :: Word64 -> Word64 -> Word64
modTimes x y = (x * y) `mod` prngM
modSquare :: Word64 -> Word64
modSquare x = x `modTimes` x
modExp... |
ebd28eb425fd8ced6067db829266bbb58d89898dbe47a9d59f8252b42cb910aa | jumarko/clojure-experiments | factorial_fun.clj | (ns four-clojure.factorial-fun)
;;;
;;; Write a function which calculates factorials.
(defn factorial [n]
(loop [n n
acc 1]
(if (zero? n)
acc
(recur (dec n) (* acc n))
)))
;; much simpler solution!
(defn factorial [n]
(apply * (range 1 (inc n))))
(= (factorial 1) 1)
(= (factoria... | null | https://raw.githubusercontent.com/jumarko/clojure-experiments/f0f9c091959e7f54c3fb13d0585a793ebb09e4f9/src/clojure_experiments/four_clojure/factorial_fun.clj | clojure |
Write a function which calculates factorials.
much simpler solution! | (ns four-clojure.factorial-fun)
(defn factorial [n]
(loop [n n
acc 1]
(if (zero? n)
acc
(recur (dec n) (* acc n))
)))
(defn factorial [n]
(apply * (range 1 (inc n))))
(= (factorial 1) 1)
(= (factorial 3) 6)
(= (factorial 5) 120)
(= (factorial 8) 40320)
|
ee4852e3ecb960e994685726adb2fb2968d15b0f6007441c314b90b3c3e9f63b | thheller/shadow-cljs | nrepl_test.clj | (ns shadow.cljs.devtools.nrepl-test
(:require [clojure.test :refer :all]
[clojure.pprint :refer (pprint)]
[clojure.tools.nrepl :as client]
[clojure.tools.nrepl.server :as server]
[shadow.cljs.devtools.nrepl :as dt-nrepl]
[clojure.edn :as edn]))
(def TEST-PO... | null | https://raw.githubusercontent.com/thheller/shadow-cljs/ba0a02aec050c6bc8db1932916009400f99d3cce/src/repl/shadow/cljs/devtools/nrepl_test.clj | clojure | (pprint (call conn :cljs/list-builds {})) | (ns shadow.cljs.devtools.nrepl-test
(:require [clojure.test :refer :all]
[clojure.pprint :refer (pprint)]
[clojure.tools.nrepl :as client]
[clojure.tools.nrepl.server :as server]
[shadow.cljs.devtools.nrepl :as dt-nrepl]
[clojure.edn :as edn]))
(def TEST-PO... |
06eab8020b8c18d605dd0cb4e1fc0570c66a491efd6a7f4bee2028a079c881eb | racket/racklog | true.rkt | #lang racklog
true.
true?
| null | https://raw.githubusercontent.com/racket/racklog/89e983ec7d2df0ed919e6630403b0f4d0393728e/tests/lang/true.rkt | racket | #lang racklog
true.
true?
| |
73dd68b67c8fb13758435357767f9a1d5e48836065b1d0beb8a8664ff0dd8021 | blitzcode/hue-dashboard | BackgroundProcessing.hs |
{-# LANGUAGE ScopedTypeVariables, RecordWildCards #-}
module BackgroundProcessing ( pcWriterThread
, scheduleWatcher
) where
import Data.Monoid
import Data.Aeson
import Control.Monad
import Control.Monad.Writer
import Control.Lens
import Control.Concurrent.STM
... | null | https://raw.githubusercontent.com/blitzcode/hue-dashboard/d6e04ab1c2a50d5fa6a0ea7682350b70677997ab/BackgroundProcessing.hs | haskell | # LANGUAGE ScopedTypeVariables, RecordWildCards #
Every N seconds we wake up and see if the configuration data we want to persist has
been changed. If so, we write it to disk to make sure we don't lose all data in case
of a crash
TODO: Risk of data corruption when being interrupted while saving at our interval
S... |
module BackgroundProcessing ( pcWriterThread
, scheduleWatcher
) where
import Data.Monoid
import Data.Aeson
import Control.Monad
import Control.Monad.Writer
import Control.Lens
import Control.Concurrent.STM
import Data.Time.Calendar
import Data.Time.Calendar.We... |
ce8b5d5a14bb5ca15f4e280121b26f7813d4f21693a860b80ca6b76403c06df5 | gorillalabs/sparkling | hadoopAvro.clj | (ns sparkling.rdd.hadoopAvro
(:require [sparkling.api :as s]
[clojure.string :as string])
(:import
[org.apache.hadoop.io NullWritable]
[abracad.avro ClojureData]
[sparkling.hadoop ClojureAvroInputFormat]
[scala Tuple2]
[org.apache.spark.api.java JavaSparkContext]
[org.apache.avro... | null | https://raw.githubusercontent.com/gorillalabs/sparkling/ffedcc70fd46bf1b48405be8b1f5a1e1c4f9f578/src/clojure/sparkling/rdd/hadoopAvro.clj | clojure | this is not working right now: | (ns sparkling.rdd.hadoopAvro
(:require [sparkling.api :as s]
[clojure.string :as string])
(:import
[org.apache.hadoop.io NullWritable]
[abracad.avro ClojureData]
[sparkling.hadoop ClojureAvroInputFormat]
[scala Tuple2]
[org.apache.spark.api.java JavaSparkContext]
[org.apache.avro... |
d2f3108486185a3c2dfe5869e6e616f18b94630713cdd24150a3e579ea943581 | jserot/fsml | tevents.ml | (**********************************************************************)
(* *)
This file is part of the FSML library
(* github.com/jserot/fsml *)
(* ... | null | https://raw.githubusercontent.com/jserot/fsml/9e3e04acbbb1cb1700fa9d4a0497f35ad4f70796/src/lib/tevents.ml | ocaml | ********************************************************************
github.com/jserot/fsml
... | This file is part of the FSML library
Copyright ( c ) 2020 - present , . All rights reserved .
type t = Event.t list Clock.clocked
[@@deriving show {with_path=false}]
let merge2 l1 l2 =
let rec h l1 l2 = match l1, l2 with
[], [] -> []
| l1, [] -> l1
| [... |
09debad71315a8a8b17b2ba6e814a6921cc9c8987b4ada5d796eb72112b16e1b | potatosalad/erlang-jose | jose_jwa_chacha20.erl | -*- mode : erlang ; tab - width : 4 ; indent - tabs - mode : 1 ; st - rulers : [ 70 ] -*-
%% vim: ts=4 sw=4 ft=erlang noet
%%%-------------------------------------------------------------------
@author < >
2014 - 2022 ,
@doc ChaCha20 and for IETF Protocols
%%% See
%%% @end
Created : 31 May 2016 by ... | null | https://raw.githubusercontent.com/potatosalad/erlang-jose/dbc4074066080692246afe613345ef6becc2a3fe/src/jwa/jose_jwa_chacha20.erl | erlang | vim: ts=4 sw=4 ft=erlang noet
-------------------------------------------------------------------
See
@end
-------------------------------------------------------------------
API
====================================================================
API functions
====================================================... | -*- mode : erlang ; tab - width : 4 ; indent - tabs - mode : 1 ; st - rulers : [ 70 ] -*-
@author < >
2014 - 2022 ,
@doc ChaCha20 and for IETF Protocols
Created : 31 May 2016 by < >
-module(jose_jwa_chacha20).
-export([quarter_round/1]).
-export([column_round/1]).
-export([diagonal_round/1]).
-ex... |
9fc0074e783a97a9a7286180783971283f632c47a8d36e138dade8f3d6cdf49c | kugelblitz/spreadsheet-editor | info.rkt | #lang info
(define collection "spreadsheet-editor")
(define deps '("base"
"gui"
"draw-lib"
"data-lib"
"table-panel"))
(define pkg-desc "This library provides spreadsheet-editor% class.")
(define version "1.0.0")
| null | https://raw.githubusercontent.com/kugelblitz/spreadsheet-editor/73f8cfa89f0534f0bbb72833741cc7d5974ecda8/info.rkt | racket | #lang info
(define collection "spreadsheet-editor")
(define deps '("base"
"gui"
"draw-lib"
"data-lib"
"table-panel"))
(define pkg-desc "This library provides spreadsheet-editor% class.")
(define version "1.0.0")
| |
1368a2e17db8036ff9a06d8690926bfe2dd4281d5b48756296709fe5aff6aef8 | voxoz/emqttd | emqttd_node.erl | %%--------------------------------------------------------------------
Copyright ( c ) 2013 - 2017 EMQ Enterprise , Inc. ( )
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% ... | null | https://raw.githubusercontent.com/voxoz/emqttd/2be612e0e7a00a866cd9af350a030966d73fbc09/src/emqttd_node.erl | erlang | --------------------------------------------------------------------
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ... | Copyright ( c ) 2013 - 2017 EMQ Enterprise , Inc. ( )
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(emqttd_node).
-compile({parse_transform, lager_transform}).
-author("Feng Lee <>").
-import(lists, [concat/1]... |
8563f4b45fd2da68239763579644dc9c0f9ab4871a8926340d3dab0460c070db | graninas/Hydra | Extra.hs | # LANGUAGE DuplicateRecordFields #
{-# LANGUAGE ScopedTypeVariables #-}
# LANGUAGE TypeApplications #
module Hydra.Language.Extra where
import Hydra.Prelude
import qualified Hydra.Core.Language as L
import qualified Hydra.Framework.Language as L
-- -- | Get existing SQL connection, or init... | null | https://raw.githubusercontent.com/graninas/Hydra/60d591b1300528f5ffd93efa205012eebdd0286c/lib/hydra-church-free/src/Hydra/Language/Extra.hs | haskell | # LANGUAGE ScopedTypeVariables #
-- | Get existing SQL connection, or init a new connection.
TODO: rework it | # LANGUAGE DuplicateRecordFields #
# LANGUAGE TypeApplications #
module Hydra.Language.Extra where
import Hydra.Prelude
import qualified Hydra.Core.Language as L
import qualified Hydra.Framework.Language as L
getOrInitSqlConn : : L.AppL ( D.DBResult ( D.SqlConn beM ) )
= do
... |
f755c345bf59b4506fba1eb03b8443c0aa61888bbbbef850dcfa844d3a23100c | khibino/haskell-relational-record | Constraint.hs | # LANGUAGE MultiParamTypeClasses #
# LANGUAGE FlexibleInstances #
# LANGUAGE FlexibleContexts #
-- |
-- Module : Database.Relational.Constraint
Copyright : 2013 - 2017
-- License : BSD3
--
-- Maintainer :
-- Stability : experimental
-- Portability : unknown
--
-- This module provides proof object d... | null | https://raw.githubusercontent.com/khibino/haskell-relational-record/759b3d7cea207e64d2bd1cf195125182f73d2a52/relational-query/src/Database/Relational/Constraint.hs | haskell | |
Module : Database.Relational.Constraint
License : BSD3
Maintainer :
Stability : experimental
Portability : unknown
This module provides proof object definitions of constraint key.
typed constraint key column definition is included in this module.
* Constraint Key proof object
unsafeAppendCons... | # LANGUAGE MultiParamTypeClasses #
# LANGUAGE FlexibleInstances #
# LANGUAGE FlexibleContexts #
Copyright : 2013 - 2017
Difference between this module and " Database . Record . KeyConstraint " is
module Database.Relational.Constraint (
Key, indexes, unsafeDefineConstraintKey,
tableConstraint, projectionKe... |
5875c36959cd1cfaf4aa1d8a589ae2e94bd0f6a794cdc99b005943dd69c96af8 | google/ormolu | infixr-out.hs | infixr 8 `Foo`
infixr 0 ***, &&&
| null | https://raw.githubusercontent.com/google/ormolu/ffdf145bbdf917d54a3ef4951fc2655e35847ff0/data/examples/declaration/signature/fixity/infixr-out.hs | haskell | infixr 8 `Foo`
infixr 0 ***, &&&
| |
e66658b76d7841644a545488787b4f29998b3d4c958623e50a4476e4c5208639 | lspitzner/butcher | Types.hs | -- this module only re-exports the appropriate user-facing stuff from the
-- internal Types module.
-- | Types used in the butcher interface.
module UI.Butcher.Monadic.Types
( CommandDesc(..)
, cmd_out
, CmdParser
, Input (..)
, ParsingError (..)
, PartDesc(..)
, emptyCommandDesc
, Visibility (..)
)
w... | null | https://raw.githubusercontent.com/lspitzner/butcher/ad17fe776359a25e4d1bebc7890d1bf3da0880f0/src/UI/Butcher/Monadic/Types.hs | haskell | this module only re-exports the appropriate user-facing stuff from the
internal Types module.
| Types used in the butcher interface. | module UI.Butcher.Monadic.Types
( CommandDesc(..)
, cmd_out
, CmdParser
, Input (..)
, ParsingError (..)
, PartDesc(..)
, emptyCommandDesc
, Visibility (..)
)
where
#include "prelude.inc"
import UI.Butcher.Monadic.Internal.Types
|
80422dd91cd0eff325d4289bee9c53d3dc3dbd4f4d3211f72fb007a0eacd5e74 | Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library | PaymentPagesCheckoutSessionTotalDetails.hs | {-# LANGUAGE MultiWayIf #-}
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator .
{-# LANGUAGE OverloadedStrings #-}
-- | Contains the types generated from the schema PaymentPagesCheckoutSessionTotalDetails
module StripeAPI.Types.PaymentPages... | null | https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Types/PaymentPagesCheckoutSessionTotalDetails.hs | haskell | # LANGUAGE MultiWayIf #
# LANGUAGE OverloadedStrings #
| Contains the types generated from the schema PaymentPagesCheckoutSessionTotalDetails
# SOURCE #
| amount_discount: This is the sum of all the discounts.
| amount_shipping: This is the sum of all the shipping amounts.
| amount_tax: This is the sum of all the t... | CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator .
module StripeAPI.Types.PaymentPagesCheckoutSessionTotalDetails where
import qualified Control.Monad.Fail
import qualified Data.Aeson
import qualified Data.Aeson as Data.Aeson.Encoding.Int... |
8cecb42b3052d0b14b6232282e73419036f703d0dd8f421171e49dbc0196fbfb | nibbula/yew | extract.lisp | ;;;
;;; extract.lisp - Extract and transform character width data for Lisp.
;;;
(defpackage :extract
(:documentation "Extract character width data files.")
(:use :cl :dlib :opsys :dlib-misc :table :puri :drakma)
(:export
#:load-data
#:extract
))
(in-package :extract)
;; Based on:
;;
(defparameter *ve... | null | https://raw.githubusercontent.com/nibbula/yew/e4172647e7f8df116f12009de6f6b5cf53ba7cf8/unicode/extract.lisp | lisp |
extract.lisp - Extract and transform character width data for Lisp.
Based on:
unassigned codepoints.
private use codepoints.
surrogates.
Name Abbrev Example Keyword
------------------ --------- -------------------------------- ----------
Catalog C Age, Block ... |
(defpackage :extract
(:documentation "Extract character width data files.")
(:use :cl :dlib :opsys :dlib-misc :table :puri :drakma)
(:export
#:load-data
#:extract
))
(in-package :extract)
(defparameter *version* 1.23)
(defparameter *default-output-file* "char-width-data.lisp")
(defvar *log* t
"Out... |
0b4b80885caa9d399c816f75c2e606300c1c5c9b60523c2c389e35a1229a92b6 | zotonic/zotonic | zotonic_apps_app.erl | @author < >
2021
@doc Zotonic applications collection
Copyright 2021
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% -2.0
%%
%% Unless required by applicab... | null | https://raw.githubusercontent.com/zotonic/zotonic/a551f378f22683ceb316a3ecfe50c9c6175e4840/release/packages/zotonic_apps/src/zotonic_apps_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... | @author < >
2021
@doc Zotonic applications collection
Copyright 2021
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(zotonic_apps_app).
-behaviour(application).
-export([start/2, stop/1]).
start(... |
7364a17a39ca6895c8937ee1da14ea2b84290c25d61ff804a580ed9524322f66 | hbcrhythm/kcp_erlang | kcp_erlang_callback.erl | -module(kcp_erlang_callback).
-author('').
-include("kcp_erlang.hrl").
-behaviour(gen_server).
%% API
-export([start_link/2]).
%% gen_server callbacks
-export([init/1,
handle_call/3,
handle_cast/2,
handle_info/2,
terminate/2,
code_change/3]).
-define(SERVER, ?MODULE).
-record(state, {sock = undefined, co... | null | https://raw.githubusercontent.com/hbcrhythm/kcp_erlang/ea97533dc43fd6a0fcc723e3efbf231b62786255/src/kcp_erlang_callback.erl | erlang | API
gen_server callbacks
===================================================================
API
===================================================================
--------------------------------------------------------------------
@doc
Starts the server
@end
---------------------------------------------------... | -module(kcp_erlang_callback).
-author('').
-include("kcp_erlang.hrl").
-behaviour(gen_server).
-export([start_link/2]).
-export([init/1,
handle_call/3,
handle_cast/2,
handle_info/2,
terminate/2,
code_change/3]).
-define(SERVER, ?MODULE).
-record(state, {sock = undefined, conv = 0, ref}).
-spec(start_li... |
f280c2a1b16a7e1ea9a8ab5170c945978825cd98d6c4890fb9ae5b9b18061b4a | sig-gis/gridfire | ignition_test.clj | (ns gridfire.spec.ignition-test
(:require [clojure.spec.alpha :as s]
[clojure.test :refer [deftest is]]
[gridfire.spec.ignition :as ignition]))
(deftest path-test
(is (s/valid? ::ignition/ignition-layer {:type :postgis
:source "/some/path/to.tif"... | null | https://raw.githubusercontent.com/sig-gis/gridfire/44aeaf56fceb01f61b21db6220d2cb562a92570b/test/gridfire/spec/ignition_test.clj | clojure | (ns gridfire.spec.ignition-test
(:require [clojure.spec.alpha :as s]
[clojure.test :refer [deftest is]]
[gridfire.spec.ignition :as ignition]))
(deftest path-test
(is (s/valid? ::ignition/ignition-layer {:type :postgis
:source "/some/path/to.tif"... | |
37e3a07b5df7f246c46f6d0a78f4d6a098461bb834dd1941f693cbbb49d7b9de | IBM/wcs-ocaml | spel_util.ml |
* This file is part of the Watson Conversation Service OCaml API project .
*
* Copyright 2016 - 2017 IBM Corporation
*
* 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... | null | https://raw.githubusercontent.com/IBM/wcs-ocaml/b237b7057f44caa09d36e466be015e2bc3173dd5/wcs-lib/spel_util.ml | ocaml | * Spel utilities.
Cleanup
* The state of the parser, a stream and a position.
* Initialize with the null position.
* Register a new line in the lexer's position.
* Update the position with the stream.
* The last matched word.
String buffers |
* This file is part of the Watson Conversation Service OCaml API project .
*
* Copyright 2016 - 2017 IBM Corporation
*
* 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... |
21974f3c4133aacb5475a92ef29ba2cc88591728c4d86cdfa731df95311aab42 | ghcjs/jsaddle-dom | SVGPathSegCurvetoQuadraticAbs.hs | # LANGUAGE PatternSynonyms #
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
# OPTIONS_GHC -fno - warn - unused - imports #
module JSDOM.Generated.SVGPathSegCurvetoQuadraticAbs
(setX, getX, setY, getY, setX1, getX1, setY1, getY1,
SVGPathSegCurvetoQuadrat... | null | https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/SVGPathSegCurvetoQuadraticAbs.hs | haskell | For HasCallStack compatibility
# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
| <-US/docs/Web/API/SVGPathSegCurvetoQuadraticAbs.y Mozilla SVGPathSegCurvetoQuadraticAbs.y documentation>
| <-US/docs/Web/API/SVGPathSegCurvetoQuadraticAbs.y Mozilla SVGPathSegCurvetoQuadraticAbs.y documentation> | # LANGUAGE PatternSynonyms #
# OPTIONS_GHC -fno - warn - unused - imports #
module JSDOM.Generated.SVGPathSegCurvetoQuadraticAbs
(setX, getX, setY, getY, setX1, getX1, setY1, getY1,
SVGPathSegCurvetoQuadraticAbs(..),
gTypeSVGPathSegCurvetoQuadraticAbs)
where
import Prelude ((.), (==), (>>=... |
fe0861a3902c9f71c043f5d87a8eec6c353d0a6f38fa944217d808a920f7d0d4 | qfpl/sv | Containers.hs |
The Glasgow Haskell Compiler License
Copyright 2004 , The University Court of the University of Glasgow .
All rights reserved .
Redistribution and use in source and binary forms , with or without
modification , are permitted provided that the following conditions are met :
- Redistributions of source cod... | null | https://raw.githubusercontent.com/qfpl/sv/74aa56bcdcc0d7f1d7b5783bf59e3878dfbb64bc/sv-core/src/Data/Sv/Alien/Containers.hs | haskell |
The Glasgow Haskell Compiler License
Copyright 2004 , The University Court of the University of Glasgow .
All rights reserved .
Redistribution and use in source and binary forms , with or without
modification , are permitted provided that the following conditions are met :
- Redistributions of source cod... | |
3e87ab70f65503c4548bec3da2ffa68612843378fbc410f2dd0248d240b2376d | ankushdas/Nomos | Pprint.ml | module R = Arith
module A = Ast
(**************************)
(* Arithmetic expressions *)
(**************************)
Uses precedence
* prec('+','- ' ) = 1 ; prec ( ' * ' ) = 2
* prec('+','-') = 1; prec('*') = 2
*)
let parens prec_left prec s =
if prec_left >= prec then "(" ^ s ^ ")" else... | null | https://raw.githubusercontent.com/ankushdas/Nomos/db678f3981e75a1b3310bb55f66009bb23430cb1/rast/Pprint.ml | ocaml | ************************
Arithmetic expressions
************************
pp_arith_prec prec_left e = "e"
* using the precedence prec_left of the operator
* to the left to decide on parentheses
* All arithmetic operators are left associative
might overflow
pp_arith e = "e"
*****************************
Type... | module R = Arith
module A = Ast
Uses precedence
* prec('+','- ' ) = 1 ; prec ( ' * ' ) = 2
* prec('+','-') = 1; prec('*') = 2
*)
let parens prec_left prec s =
if prec_left >= prec then "(" ^ s ^ ")" else s;;
let rec pp_arith_prec prec_left e = match e with
R.Int(n) ->
if n >= 0 ... |
96481fa168a4c94fa98162119e6e3214bf1b2c0a11c9d597c1a0160bdf9d6159 | reactiveml/rml | hypertree.ml | Js_of_ocaml example
* /
* 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 General Public License as published by
* the Free Software Foundation ; either version 2 of ... | null | https://raw.githubusercontent.com/reactiveml/rml/d178d49ed923290fa7eee642541bdff3ee90b3b4/toplevel-alt/js/js-of-ocaml/examples/hyperbolic/hypertree.ml | ocaml | List of icons to be prefetched
"#3d2606"
let messages : messages Js.t = option (Js.Unsafe.variable "window.hyp_msgs")
*** Complex numbers ***
Norm
Conjugate and negation
Addition, multiplication and division
(a.z + b) / (c.z + d)
****
****
x0 := ev##pageX; y0 := ev##pageY;
let x = ev##pageX and ... | Js_of_ocaml example
* /
* 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 General Public License as published by
* the Free Software Foundation ; either version 2 of ... |
6e5311e6057d7a0bad983d1ad5d2e9f6fbe9f86ee9c9d965a9275edc3356784e | takikawa/racket-ppa | info.rkt | (module info setup/infotab (#%module-begin (define collection (quote multi)) (define deps (quote ("snip-lib" "gui-doc"))) (define pkg-desc "Text and graphics editor extension protocol") (define pkg-authors (quote (mflatt))) (define license (quote (Apache-2.0 OR MIT)))))
| null | https://raw.githubusercontent.com/takikawa/racket-ppa/26d6ae74a1b19258c9789b7c14c074d867a4b56b/share/pkgs/snip/info.rkt | racket | (module info setup/infotab (#%module-begin (define collection (quote multi)) (define deps (quote ("snip-lib" "gui-doc"))) (define pkg-desc "Text and graphics editor extension protocol") (define pkg-authors (quote (mflatt))) (define license (quote (Apache-2.0 OR MIT)))))
| |
0601f3f9fb97f086f2111d93ec0832e0b71ce8deb86eace5f9e2bf1ca97812d4 | district0x/graphql-query | spec_test.cljc | (ns graphql-query.spec-test
(:require [graphql-query.spec :as qs]
#?(:cljs [cljs.test :refer-macros [is are deftest testing]]
:clj
[clojure.test :refer :all])))
(deftest query->spec-simple-query
(testing "Wrong data type - vector instead of map, should throw exception"
(is (thrown? #?(:c... | null | https://raw.githubusercontent.com/district0x/graphql-query/3ffc6fe9dfca1447ef3fda2a561060f6c31d5621/test/graphql_query/spec_test.cljc | clojure | (ns graphql-query.spec-test
(:require [graphql-query.spec :as qs]
#?(:cljs [cljs.test :refer-macros [is are deftest testing]]
:clj
[clojure.test :refer :all])))
(deftest query->spec-simple-query
(testing "Wrong data type - vector instead of map, should throw exception"
(is (thrown? #?(:c... | |
a540801b9c817b9d86e89b64e27dadf606f76112c82f8dfb921acf1ae9ffd9bd | nikita-volkov/rerebase | Bitraversable.hs | module Data.Semigroup.Bitraversable
(
module Rebase.Data.Semigroup.Bitraversable
)
where
import Rebase.Data.Semigroup.Bitraversable
| null | https://raw.githubusercontent.com/nikita-volkov/rerebase/25895e6d8b0c515c912c509ad8dd8868780a74b6/library/Data/Semigroup/Bitraversable.hs | haskell | module Data.Semigroup.Bitraversable
(
module Rebase.Data.Semigroup.Bitraversable
)
where
import Rebase.Data.Semigroup.Bitraversable
| |
53ad7edd3fbbec86e5c832a9c0c438d40456d36c21878a4f3d3403eab27d2b45 | haskell-servant/servant | ServerSpec.hs | # LANGUAGE CPP #
# LANGUAGE TypeApplications #
module Servant.Auth.ServerSpec (spec) where
#if !MIN_VERSION_servant_server(0,16,0)
#define ServerError ServantErr
#endif
import Control.Lens
import Control.Monad.IO.Class (liftIO)
import Crypto.JOSE (Alg... | null | https://raw.githubusercontent.com/haskell-servant/servant/aee1917a04521eb387a87d56c3085dca19670943/servant-auth/servant-auth-server/test/Servant/Auth/ServerSpec.hs | haskell | ----------------------------------------------------------------------------
* Auth {{{
}}}
----------------------------------------------------------------------------
* Cookie Auth {{{
which revealed a bug:
real cookie jars aren't updated by being replaced
logout
assert cookies were expired
real cookie jars ... | # LANGUAGE CPP #
# LANGUAGE TypeApplications #
module Servant.Auth.ServerSpec (spec) where
#if !MIN_VERSION_servant_server(0,16,0)
#define ServerError ServantErr
#endif
import Control.Lens
import Control.Monad.IO.Class (liftIO)
import Crypto.JOSE (Alg... |
d0c2b65c62f60f971389630fff39d05bc57b24097b45eb5263e3908f7a6bde5a | Workiva/eva | entity.clj | Copyright 2015 - 2019 Workiva Inc.
;;
;; Licensed under the Eclipse Public License 1.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; -1.0.php
;;
;; Unless required by applicable law or agreed to in writing, software
dist... | null | https://raw.githubusercontent.com/Workiva/eva/b7b8a6a5215cccb507a92aa67e0168dc777ffeac/core/src/eva/entity.clj | clojure |
Licensed under the Eclipse Public License 1.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-1.0.php
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expre... | Copyright 2015 - 2019 Workiva Inc.
distributed under the License is distributed on an " AS IS " BASIS ,
(ns eva.entity
(:require [eva.datom :as d]
[eva.attribute :as attr]
[eva.core :as core]
[eva.error :refer [insist]]
[clojure.edn])
(:import (clojure.lang Seqab... |
817a9d46e96cfcc5e242b48beac655998aab81bce88a1edf5717e2eeae91a4cf | ocaml-multicore/ocaml-tsan | stdlib.mli | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/ocaml-multicore/ocaml-tsan/ae9c1502103845550162a49fcd3f76276cdfa866/stdlib/stdlib.mli | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
* The OCaml Standard library .
This module is automatically opened at the beginning of each
... |
b0a4b5cdd73064e267708a195ae441b5bb48b8bf777a3d3af28a07e474c04432 | elaforge/karya | Mridangam2020.hs | Copyright 2020
-- This program is distributed under the terms of the GNU General Public
-- License 3.0, see COPYING or -3.0.txt
module Solkattu.Score.Mridangam2020 where
import Prelude hiding ((.), repeat)
import Solkattu.Dsl.Mridangam
-- * exercises
e_20_02_24 :: Korvai
e_20_02_24 = date 2... | null | https://raw.githubusercontent.com/elaforge/karya/07bdeac32293a18f9ce982fab18d2802ea26b962/Solkattu/Score/Mridangam2020.hs | haskell | This program is distributed under the terms of the GNU General Public
License 3.0, see COPYING or -3.0.txt
* exercises
skip this:
8 2 8 2
2 8 3 999
12:24
make beginning o oo thing cleaner
isolate okotokot ending to make it cleaner
To farans and mohra.
farans
mohra
2 + 4 + 2 + 3 + 3 + 3 = 17
alternates, f... | Copyright 2020
module Solkattu.Score.Mridangam2020 where
import Prelude hiding ((.), repeat)
import Solkattu.Dsl.Mridangam
e_20_02_24 :: Korvai
e_20_02_24 = date 2020 2 24 $ ganesh $ tirmanam $ korvaiS1 adi $
tri_ (od.__4) (su ktok.t.o.su (ktok.kook))
e_20_03_27 :: Korvai
e_20_03_27 = ... |
e602514dbb3873352921c7abd60cd931f0fc8b1c82f7dc61a1b36aeb18579605 | tomjridge/imp_fs | fv3_UNUSED.ml | * This is a cache - aware implementation of files , for v3 .
We model a file as a partial map from blk_off to blk , together with a
size in bytes , and file times .
Layers ( high to low ):
- pread , aligned block read / write ( " pre_file_ops " )
- cache
- raw aligned block read / write
- ( under... | null | https://raw.githubusercontent.com/tomjridge/imp_fs/00875eb14cb5c4e8c1cee47ab629a19f79260cb4/src/common/fv3_UNUSED.ml | ocaml | See also:
tjr_fs_shared/.../write_back_cache_v3.ml
* {2 Types}
* Per-file cache entries
* We need a way to write to the lower non-cached file implementation
NOTE always returns a blk
flush - needed?
FIXME maybe we want a better name than pre-file
based file_impl_v2; read and write blocks at block offsets... | * This is a cache - aware implementation of files , for v3 .
We model a file as a partial map from blk_off to blk , together with a
size in bytes , and file times .
Layers ( high to low ):
- pread , aligned block read / write ( " pre_file_ops " )
- cache
- raw aligned block read / write
- ( under... |
53a6dd853c9443cd86dcb1c9e2fbaf240233bb5f805f1baed5aae63a5ed9f8f4 | cloverage/cloverage | test_cloverage.clj | (ns leiningen.test-cloverage
(:require leiningen.cloverage))
| null | https://raw.githubusercontent.com/cloverage/cloverage/dba7d72547748cf494f2bbc784b8a70ed8d9901f/lein-cloverage/test/leiningen/test_cloverage.clj | clojure | (ns leiningen.test-cloverage
(:require leiningen.cloverage))
| |
f58bbab588667037d393a16b025b7d22a1cdee8eb032536d0d4dfa3c70c5be38 | racket/games | info.rkt | #lang info
(define collection "games")
(define scribblings '(("scribblings/games.scrbl" (multi-page) (gui-library))))
(define gracket-launcher-libraries (list "main.rkt"))
(define gracket-launcher-names (list "PLT Games"))
(define deps '("base"
"draw-lib"
"drracket"
("gui... | null | https://raw.githubusercontent.com/racket/games/56d67ba04465aa19f1b3057df46bf235c79bba14/info.rkt | racket | #lang info
(define collection "games")
(define scribblings '(("scribblings/games.scrbl" (multi-page) (gui-library))))
(define gracket-launcher-libraries (list "main.rkt"))
(define gracket-launcher-names (list "PLT Games"))
(define deps '("base"
"draw-lib"
"drracket"
("gui... | |
c5ce0368bbf6c340676f1b6170272bfa07dfd80c4e6803edb1e971f447a4b9e8 | inaka/serpents | spts_api_serpents_SUITE.erl | -module(spts_api_serpents_SUITE).
-author('').
-include_lib("mixer/include/mixer.hrl").
-mixin([
{spts_test_utils,
[ init_per_suite/1
, end_per_suite/1
]}
]).
-export([all/0]).
-export([ post_serpents_wrong/1
, post_serpents_ok/1
, put_serpent_wrong/1
... | null | https://raw.githubusercontent.com/inaka/serpents/b21b63cee117e0b98fd3a9be4fb326e9de3ee861/test/spts_api_serpents_SUITE.erl | erlang | -module(spts_api_serpents_SUITE).
-author('').
-include_lib("mixer/include/mixer.hrl").
-mixin([
{spts_test_utils,
[ init_per_suite/1
, end_per_suite/1
]}
]).
-export([all/0]).
-export([ post_serpents_wrong/1
, post_serpents_ok/1
, put_serpent_wrong/1
... | |
3a7b430207f8752c0146f74b887119d1631a110a87d9413d8b8e8d0325e9b16e | bguthrie/crane | s3.clj | (ns
#^{:doc
"
a lib for interacting with s3.
todo: use or merge with: -backend/blob/802ac86dff0a5d1c3980df6fbd101ed429d3c5e8/src/org/altlaw/util/s3.clj
"}
crane.s3
(:use clojure.contrib.duck-streams)
(:import java.io.File)
(:import org.jets3t.service.S3Service)
(:import org.jets3t.service.impl.rest.httpclien... | null | https://raw.githubusercontent.com/bguthrie/crane/03c07427788e0a5c4fededc445e0f6cc946530c6/src/crane/s3.clj | clojure | TODO: change a lot of the multimethod foo to be like copy from duck-streams
returns as string
TODO: this probably doesn't work -> need to mkdir for each of the paths that are part fo bucketname and key. | (ns
#^{:doc
"
a lib for interacting with s3.
todo: use or merge with: -backend/blob/802ac86dff0a5d1c3980df6fbd101ed429d3c5e8/src/org/altlaw/util/s3.clj
"}
crane.s3
(:use clojure.contrib.duck-streams)
(:import java.io.File)
(:import org.jets3t.service.S3Service)
(:import org.jets3t.service.impl.rest.httpclien... |
7219e5eb613c70ab5d0f13bdb4d2b27f13e5343190faf05cc02ff177c3ce062a | facebook/duckling | Rules.hs | Copyright ( c ) 2016 - present , Facebook , Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree.
{-# LANGUAGE GADTs #-}
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE LambdaCase #
module Duckling.Numeral.E... | null | https://raw.githubusercontent.com/facebook/duckling/c6a48a1d0678a389f86d17db2676e1a289e355ce/Duckling/Numeral/ES/Rules.hs | haskell | All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
# LANGUAGE GADTs #
# LANGUAGE OverloadedStrings # | Copyright ( c ) 2016 - present , Facebook , Inc.
# LANGUAGE LambdaCase #
module Duckling.Numeral.ES.Rules (rules) where
import qualified Data.HashMap.Strict as HashMap
import Data.Maybe
import Data.String
import qualified Data.Text as Text
import Prelude
import Duckling.Dimensions.Types
import Duckling.Numeral.H... |
8998ef0b36ba657620006a9d73a544b1701e9fec6c19b90196cdfeaf18c6f038 | tcsprojects/pgsolver | switchbestexp.ml | open Paritygame;;
open Stratimprgenerators;;
type gamenode = DecLaneEven of int (*a*)
| DecLaneOdd of int (*b*)
| DecLaneOddRoot (*d*)
| CycleNode0 of int (*e*)
| CycleNode1 of int (*f*)
| CycleNode2 of int (*g*)
| CycleNodeToLane0 of int (*e'*)
| CycleNodeToLane1 of int (*f'*)
... | null | https://raw.githubusercontent.com/tcsprojects/pgsolver/b0c31a8b367c405baed961385ad645d52f648325/src/generators/policyiter/generators/switchbestexp.ml | ocaml | a
b
d
e
f
g
e'
f'
g'
h
c
k
l
r
m
z
v
p
q
s
t
w
y
x | open Paritygame;;
open Stratimprgenerators;;
let symb_to_str = function DecLaneEven i ->"a" ^ string_of_int i | DecLaneOdd i ->"b" ^ string_of_int i | DecLaneOddRoot ->"d" | CycleNode0 i ->"e" ^ string_of_int i | CycleNode1 i ->"f" ^ string_of_int i | CycleNode2 i ->"g" ^ string_of_int i | CycleNodeToLane0 i ->"e'" ^... |
e194287ab10ecd41aeb8116251fa309713e066bcfe5a414e47b14f2f84bd0ce3 | coq/coq | proofview_monad.mli | (************************************************************************)
(* * The Coq Proof Assistant / The Coq Development Team *)
v * Copyright INRIA , CNRS and contributors
< O _ _ _ , , * ( see version control and CREDITS file for authors & dates )
\VV/ * * *... | null | https://raw.githubusercontent.com/coq/coq/6091849faa473622b5374d462f8a5d094b54c2e1/engine/proofview_monad.mli | ocaml | **********************************************************************
* The Coq Proof Assistant / The Coq Development Team
// * This file is distributed under the terms of the
* (see LICENSE file for the text of the license)
************************************... | v * Copyright INRIA , CNRS and contributors
< O _ _ _ , , * ( see version control and CREDITS file for authors & dates )
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* GNU Lesser Gener... |
08eb8e4b130065e337e5a794ca71b47ce8885b6b4ef8a3f5bbfd74e41ec440e3 | samrushing/irken-compiler | t_letreg0.scm |
(define (printn x)
(%%cexp ('a -> undefined) "dump_object (%0, 0); fprintf (stdout, \"\\n\")" x))
(define (+ a b)
(%%cexp (int int -> int) "%0+%1" a b))
(define (make-counter)
(let ((val 0))
(define (next)
(let ((r val))
(set! val (+ val 1))
r)
)
next
))
(let ((c (make-counter)))
(... | null | https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/tests/t_letreg0.scm | scheme |
(define (printn x)
(%%cexp ('a -> undefined) "dump_object (%0, 0); fprintf (stdout, \"\\n\")" x))
(define (+ a b)
(%%cexp (int int -> int) "%0+%1" a b))
(define (make-counter)
(let ((val 0))
(define (next)
(let ((r val))
(set! val (+ val 1))
r)
)
next
))
(let ((c (make-counter)))
(... | |
ab8b044ba81ea8dfeddc9eb71688cc7ab650316ddf1a70a7478c88ab538e8b33 | issuu/ocaml-zmq | test.ml | module Test = Zmq_deferred_test.Test.Make(Zmq_async__Deferred)
let () = Test.run Async_unix.Thread_safe.block_on_async_exn
| null | https://raw.githubusercontent.com/issuu/ocaml-zmq/f1aad60f136529f45543a08a2f42c63d716e4e8f/zmq-async/test/test.ml | ocaml | module Test = Zmq_deferred_test.Test.Make(Zmq_async__Deferred)
let () = Test.run Async_unix.Thread_safe.block_on_async_exn
| |
5f1a49d7810c514f41064fafe94d9f178907fe1e029c740cc5925516a3161af5 | jmbr/maxima-interface | package.lisp | (defpackage :maxima-interface
(:documentation "Simple interface between Common Lisp and Maxima")
(:use :common-lisp :maxima)
(:export #:maxima-init ; Low level interface
#:maxima-read
#:maxima-eval
#:maxima-print
#:maxima-run
#:i ... | null | https://raw.githubusercontent.com/jmbr/maxima-interface/a3ff81cadeafe44f8c1cadbffd6f79b5afc94d93/package.lisp | lisp | Low level interface
High level interface
LaTeX output | (defpackage :maxima-interface
(:documentation "Simple interface between Common Lisp and Maxima")
(:use :common-lisp :maxima)
#:maxima-read
#:maxima-eval
#:maxima-print
#:maxima-run
#:inf
#:plus
#:minus
#:diff
#:integr... |
76490ea19ffdf04591bb25e7127cd1b0aa85dc7bddf64d3790cc5416e8d5e03c | nrepl/nrepl | lookup.clj | (ns nrepl.util.lookup
"Symbol info lookup.
It's meant to provide you with useful data like definition location,
parameter lists, etc.
NOTE: The functionality here is experimental and
the API is subject to changes."
{:author "Bozhidar Batsov"
:added "0.8"}
(:require
[nrepl.misc :as misc]))
(defn s... | null | https://raw.githubusercontent.com/nrepl/nrepl/8223894f6c46a2afd71398517d9b8fe91cdf715d/src/clojure/nrepl/util/lookup.clj | clojure | clojure.repl/special-doc is private, so we need to work a
bit to be able to invoke it | (ns nrepl.util.lookup
"Symbol info lookup.
It's meant to provide you with useful data like definition location,
parameter lists, etc.
NOTE: The functionality here is experimental and
the API is subject to changes."
{:author "Bozhidar Batsov"
:added "0.8"}
(:require
[nrepl.misc :as misc]))
(defn s... |
3e54f39b3e2602286b5290ea0a545bd5622c4f6472392ae5189262bb93d39c8e | m4b/rdr | MachFat.ml | open Printf
open Binary
open MachCpuTypes
big endian
type fat_header = {
0xCAFEBABE
nfat_arch: int;
}
let kFAT_MAGIC = 0xcafebabe
let sizeof_fat_header = 8 (* bytes *)
struct fat_arch { cpu_type_t cputype ; ; uint32_t offset ; uint32_t size ; uint32_t align ; } ;
struct fat_arch { cpu_type_t cputype; ... | null | https://raw.githubusercontent.com/m4b/rdr/2bf1f73fc317cd74f8c7cacd542889df729bd003/lib/mach/MachFat.ml | ocaml | bytes
bytes | open Printf
open Binary
open MachCpuTypes
big endian
type fat_header = {
0xCAFEBABE
nfat_arch: int;
}
let kFAT_MAGIC = 0xcafebabe
struct fat_arch { cpu_type_t cputype ; ; uint32_t offset ; uint32_t size ; uint32_t align ; } ;
struct fat_arch { cpu_type_t cputype; cpu_subtype_t cpusubtype; uint32_t off... |
2dfda854952a5d9b9e3ff1dfe8b77ae1e7b50ac6b59ed0dd6989511c984ffe8a | pallet/pallet | feature.clj | (ns pallet.feature
"Pallet feature recognition.
A feature is implemented as a function within the pallet.feature namespace")
(defn has-feature?*
[feature]
(when-let [f (ns-resolve 'pallet.feature feature)]
(f)))
(defmacro has-feature?
"Predicate to test for feature availability"
[feature]
(has-fea... | null | https://raw.githubusercontent.com/pallet/pallet/30226008d243c1072dcfa1f27150173d6d71c36d/src/pallet/feature.clj | clojure | (ns pallet.feature
"Pallet feature recognition.
A feature is implemented as a function within the pallet.feature namespace")
(defn has-feature?*
[feature]
(when-let [f (ns-resolve 'pallet.feature feature)]
(f)))
(defmacro has-feature?
"Predicate to test for feature availability"
[feature]
(has-fea... | |
580571157987f26e9bb99ba1ece5cf0897174b2481546069d87ca42e317a1bbb | wilbowma/cur | snoc-env.rkt | #lang racket/base
(require
redex/reduction-semantics
racket/dict)
(provide (all-defined-out))
(define-language snocL
(snoc-env ::= · ∅ (snoc-env (any any ...))))
;; Flatten a snoc-env into an als, in reverse dependency order
( i.e. the first element may depends all later elements )
(define-metafunction snocL
... | null | https://raw.githubusercontent.com/wilbowma/cur/e039c98941b3d272c6e462387df22846e10b0128/cur-model/cur/curnel/snoc-env.rkt | racket | Flatten a snoc-env into an als, in reverse dependency order
Merge any number of snoc-envs, given in dependency order
(i.e. the last snoc-env may depend on all previous snoc-envs)
Take any number of snoc-envs, and snoc-env members, in dependency order, and create a new snoc-env | #lang racket/base
(require
redex/reduction-semantics
racket/dict)
(provide (all-defined-out))
(define-language snocL
(snoc-env ::= · ∅ (snoc-env (any any ...))))
( i.e. the first element may depends all later elements )
(define-metafunction snocL
snoc-env->als : snoc-env -> ((any any ...) ...)
[(snoc-env->... |
3c11d470d1f562dffa50dc77521d0c4e7b22bd9ff561e179c5a640bc2123338d | 8treenet/xy_server | sorcerer_data.erl | %%% @Module :sorcerer_data
@Author : ys
@Email :
@Created : 2013.06.24
@Description : 获取法师基础属性
%%%--------------------------------------
-module(sorcerer_data).
%% ====================================================================
%% API functions
%% ==================================================... | null | https://raw.githubusercontent.com/8treenet/xy_server/352679e01eb4a26433ccbec513fbd282307a33bd/src/data/sorcerer_data.erl | erlang | @Module :sorcerer_data
--------------------------------------
====================================================================
API functions
====================================================================
参数=等级 | @Author : ys
@Email :
@Created : 2013.06.24
@Description : 获取法师基础属性
-module(sorcerer_data).
-export([get_attribute/1]).
返回 , 最大攻击 , 最小魔法攻击 , 最大魔法攻击 , 防御 , 魔法防御 , 命中 , 躲闪 , 暴击 , 连击 , 攻击速度 , 血槽 , 魔槽
get_attribute(1)->
[10,20,1,5,30,30,30,30,30,30,30,500,500]. |
2cb899699347a2bf6818aabfb09aea5c899adb08ccfcbb75c236b6ce95f7bd4f | CRogers/obc | compile.mli |
* compile.mli
*
* This file is part of the Oxford Oberon-2 compiler
* Copyright ( c ) 2006
* All rights reserved
*
* Redistribution and use in source and binary forms , with or without
* modification , are permitted provided that the following conditions are met :
*
* 1 . Redistribution... | null | https://raw.githubusercontent.com/CRogers/obc/49064db244e0c9d2ec2a83420c8d0ee917b54196/yacc/compile.mli | ocaml | Compile parse tables
compile -- condense actions into an action vector and default reduction
yyerr -- indicator for explicit error action |
* compile.mli
*
* This file is part of the Oxford Oberon-2 compiler
* Copyright ( c ) 2006
* All rights reserved
*
* Redistribution and use in source and binary forms , with or without
* modification , are permitted provided that the following conditions are met :
*
* 1 . Redistribution... |
0c0b2ba83053e269d7cbad1e943506a9f054dadf9da0a119f46e4ba56daf3291 | SimulaVR/godot-haskell | VisualShaderNodeVectorSmoothStep.hs | # LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving ,
TypeFamilies , TypeOperators , FlexibleContexts , DataKinds ,
MultiParamTypeClasses #
TypeFamilies, TypeOperators, FlexibleContexts, DataKinds,
MultiParamTypeClasses #-}
module Godot.Core.VisualShaderNodeVectorSmoothStep () where
import Data.Coerc... | null | https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/VisualShaderNodeVectorSmoothStep.hs | haskell | # LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving ,
TypeFamilies , TypeOperators , FlexibleContexts , DataKinds ,
MultiParamTypeClasses #
TypeFamilies, TypeOperators, FlexibleContexts, DataKinds,
MultiParamTypeClasses #-}
module Godot.Core.VisualShaderNodeVectorSmoothStep () where
import Data.Coerc... | |
8580df1ca9c11564900c0aa7e2bc7536b6d7ab2d00342480d71c04bde35dde81 | kowainik/hintman | TrailingNewlines.hs | module Test.Hint.TrailingNewlines
( trailingNewlinesSpec
) where
import Test.Hspec (Spec, describe, it, shouldBe, shouldSatisfy)
import Hintman.Core.Hint (HintType (TrailingNewlines), simpleSuggestion)
import Hintman.Core.PrInfo (PrInfo)
import Hintman.Core.Review (Comment (..))
import Test.Data (Prs (... | null | https://raw.githubusercontent.com/kowainik/hintman/3dd38fa789098fbadfc905be801853942b81b7be/test/Test/Hint/TrailingNewlines.hs | haskell | module Test.Hint.TrailingNewlines
( trailingNewlinesSpec
) where
import Test.Hspec (Spec, describe, it, shouldBe, shouldSatisfy)
import Hintman.Core.Hint (HintType (TrailingNewlines), simpleSuggestion)
import Hintman.Core.PrInfo (PrInfo)
import Hintman.Core.Review (Comment (..))
import Test.Data (Prs (... | |
c759bcb4a30070cc23c7013ed995118d3a43256b107279440b9d9723737a8b73 | facebook/duckling | Corpus.hs | Copyright ( c ) 2016 - present , Facebook , Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree.
{-# LANGUAGE OverloadedStrings #-}
module Duckling.Numeral.FR.Corpus
( corpus
) where
import Data.Stri... | null | https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Numeral/FR/Corpus.hs | haskell | All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
# LANGUAGE OverloadedStrings # | Copyright ( c ) 2016 - present , Facebook , Inc.
module Duckling.Numeral.FR.Corpus
( corpus
) where
import Data.String
import Prelude
import Duckling.Locale
import Duckling.Numeral.Types
import Duckling.Resolve
import Duckling.Testing.Types
corpus :: Corpus
corpus = (testContext {locale = makeLocale FR Noth... |
833484b7b8b8862198c70a9fd6a42cce7eaa316eb42eb3e1e9edea9666b14b71 | sellout/haskerwaul | Strong.hs | # language UndecidableInstances
, UndecidableSuperClasses #
, UndecidableSuperClasses #-}
module Haskerwaul.Functor.Strong
( module Haskerwaul.Functor.Strong
-- * extended modules
, module Haskerwaul.Functor
) where
import Haskerwaul.Category.Monoidal
import Haskerwaul.Endofunctor
impo... | null | https://raw.githubusercontent.com/sellout/haskerwaul/cf54bd7ce5bf4f3d1fd0d9d991dc733785b66a73/src/Haskerwaul/Functor/Strong.hs | haskell | * extended modules
| [nLab](+strength) | # language UndecidableInstances
, UndecidableSuperClasses #
, UndecidableSuperClasses #-}
module Haskerwaul.Functor.Strong
( module Haskerwaul.Functor.Strong
, module Haskerwaul.Functor
) where
import Haskerwaul.Category.Monoidal
import Haskerwaul.Endofunctor
import Haskerwaul.Functor
c... |
956079abbdd69b0e3415151bde16264ce9f5c77016eaf7f217a9baad6478aa93 | elaforge/karya | PlayUtil_test.hs | Copyright 2016
-- This program is distributed under the terms of the GNU General Public
-- License 3.0, see COPYING or -3.0.txt
module Cmd.PlayUtil_test where
import qualified Data.Map as Map
import qualified Data.Set as Set
import qualified Data.Vector as Vector
import Util.Test
import qualified Midi.Key as Key
... | null | https://raw.githubusercontent.com/elaforge/karya/8ea15e6a5fb57e2f15f8c19836751e315f9c09f2/Cmd/PlayUtil_test.hs | haskell | This program is distributed under the terms of the GNU General Public
License 3.0, see COPYING or -3.0.txt
The one at means don't look for the previous one.
Not interested in i3.
Scan back for events slightly before the start.
Same with 0 dur.
Default controls won't override an existing one. | Copyright 2016
module Cmd.PlayUtil_test where
import qualified Data.Map as Map
import qualified Data.Set as Set
import qualified Data.Vector as Vector
import Util.Test
import qualified Midi.Key as Key
import qualified Midi.Midi as Midi
import qualified Ui.Ui as Ui
import qualified Ui.UiTest as UiTest
import quali... |
25bad42de88c9f3b2955329e8f26a5582a74d3b7ce47ad0874d94a41a0ad2189 | joearms/paradis | nano_web_client.erl | -module(nano_web_client).
-compile(export_all).
nano_get_url() ->
nano_get_url("www.google.com").
nano_get_url(Host) ->
{ok,Socket} = gen_tcp:connect(Host,80,
[binary, {packet, 0}]),
ok = gen_tcp:send(Socket, "GET / HTTP/1.0\r\n\r\n"),
receive_data(Socket, []).
receive_data(Socket, SoFar) ->
... | null | https://raw.githubusercontent.com/joearms/paradis/62055b8db643926fd86c8b79f038beb9ac50916f/nano_web_client.erl | erlang | -module(nano_web_client).
-compile(export_all).
nano_get_url() ->
nano_get_url("www.google.com").
nano_get_url(Host) ->
{ok,Socket} = gen_tcp:connect(Host,80,
[binary, {packet, 0}]),
ok = gen_tcp:send(Socket, "GET / HTTP/1.0\r\n\r\n"),
receive_data(Socket, []).
receive_data(Socket, SoFar) ->
... | |
b3bd7b1d6fe3588196044a776d0c15a8ead4b40dbeac88ae006097d1d4784de9 | finkel-lang/finkel | TargetSource.hs | {-# LANGUAGE BangPatterns #-}
# LANGUAGE CPP #
-- | Module for source code file path look up.
module Language.Finkel.Make.TargetSource
(
* Target unit
TargetUnit
, emptyTargetUnit
, findTargetUnit
, findTargetUnitMaybe
, targetUnitName
-- * Target source
, TargetSource(..)
, targetSourc... | null | https://raw.githubusercontent.com/finkel-lang/finkel/74ce4bb779805ad2b141098e29c633523318fa3e/finkel-kernel/src/Language/Finkel/Make/TargetSource.hs | haskell | # LANGUAGE BangPatterns #
| Module for source code file path look up.
* Target source
* Finder functions
* File type related functions
base
directory
filepath
---------------------------------------------------------------------
---------------------------------------------------------------------
| Unit fo... | # LANGUAGE CPP #
module Language.Finkel.Make.TargetSource
(
* Target unit
TargetUnit
, emptyTargetUnit
, findTargetUnit
, findTargetUnitMaybe
, targetUnitName
, TargetSource(..)
, targetSourcePath
, findTargetModuleName
, findTargetModuleNameMaybe
, findTargetSource
, findTargetS... |
2f637ce8fca0f2f70e24f0dee55e9a23381c7189e634fca375213602d73c01a7 | mk270/ocaml-prolog | repr.mli | open Types
val string_of_term : term -> string
val print_replacement : (name * term) list -> unit
| null | https://raw.githubusercontent.com/mk270/ocaml-prolog/72b4d956eda1c86e35dde8e31b29977de6962120/lib/repr.mli | ocaml | open Types
val string_of_term : term -> string
val print_replacement : (name * term) list -> unit
| |
8ae5f054d43256df028bc9d634f7616f02ca022b54aadac6f0e4c644930e0b5a | audreyt/openafp | TRN.hs | module OpenAFP.Records.PTX.TRN where
import OpenAFP.Types
import OpenAFP.Internals
data PTX_TRN = PTX_TRN {
ptx_trn_Type :: !N1
,ptx_trn :: !NStr
} deriving (Show, Typeable)
| null | https://raw.githubusercontent.com/audreyt/openafp/178e0dd427479ac7b8b461e05c263e52dd614b73/src/OpenAFP/Records/PTX/TRN.hs | haskell | module OpenAFP.Records.PTX.TRN where
import OpenAFP.Types
import OpenAFP.Internals
data PTX_TRN = PTX_TRN {
ptx_trn_Type :: !N1
,ptx_trn :: !NStr
} deriving (Show, Typeable)
| |
4a560f0c6b422be699bc4890bf7f9d53728f7e81c46523acce34260842478689 | colis-anr/colis-language | emacsPackage.ml | open Format
open SymbolicUtility.ConstraintsCompatibility
module Install = struct
let name = "/usr/lib/emacsen-common/emacs-package-install"
let interprete preInst _postInst ctx args =
let pkgName = match args with
| [pkg] -> pkg
| _ -> assert false
in
let pkgFile = String.concat "/" ["/va... | null | https://raw.githubusercontent.com/colis-anr/colis-language/14b8087fa6323fb817d32c07236a2a084def01a1/src/symbolic/utilities/emacsPackage.ml | ocaml | --postInst is optional | open Format
open SymbolicUtility.ConstraintsCompatibility
module Install = struct
let name = "/usr/lib/emacsen-common/emacs-package-install"
let interprete preInst _postInst ctx args =
let pkgName = match args with
| [pkg] -> pkg
| _ -> assert false
in
let pkgFile = String.concat "/" ["/va... |
bfc9da6a4d1b4057ad28d13d53f9ca3437be7397ec69711287c0881f797791d0 | abevoelker/haskellbook-solutions | foo.hs | area d = pi * (r * r)
where r = d / 2
| null | https://raw.githubusercontent.com/abevoelker/haskellbook-solutions/9e2804940b3b45bdc1b04cfa5d536097629c9498/ch3/foo.hs | haskell | area d = pi * (r * r)
where r = d / 2
| |
e0cadbf8d6beacbdaafb2361e36093f59675bbd0a269412ebcb5463f86ed1798 | 40ants/openrpc | ci.lisp | (defpackage #:openrpc-client/ci
(:use #:cl)
(:import-from #:40ants-ci/jobs/linter)
(:import-from #:40ants-ci/jobs/critic)
(:import-from #:40ants-ci/jobs/run-tests
#:run-tests)
(:import-from #:40ants-ci/jobs/docs
#:build-docs)
(:import-from #:40ants-ci/workflow
... | null | https://raw.githubusercontent.com/40ants/openrpc/8bb78c7bcf22eed95b3a8e6e634697d76b15d753/client/ci.lisp | lisp | (defpackage #:openrpc-client/ci
(:use #:cl)
(:import-from #:40ants-ci/jobs/linter)
(:import-from #:40ants-ci/jobs/critic)
(:import-from #:40ants-ci/jobs/run-tests
#:run-tests)
(:import-from #:40ants-ci/jobs/docs
#:build-docs)
(:import-from #:40ants-ci/workflow
... | |
040bdee4d1241b18ad4574159c53a1049140913ca3a345f4a528c7e767553e2e | jlouis/eministat | eministat_report.erl | -module(eministat_report).
-export([symbol/1, vitals/2, relative/1]).
-define(MAX_DS, 8).
symbol(K) when K >= 0 andalso K < ?MAX_DS -> [element(K, symbol())].
symbol() ->
{$x, $+, $*, $%, $#, $@, $O}.
vitals(#{ max := Max, min := Min, n := N, ci := CI,
outliers := {OutliersB, OutliersT},
percentiles :=... | null | https://raw.githubusercontent.com/jlouis/eministat/022764f2b8fa45909c38cdc9a28d199656e78526/src/eministat_report.erl | erlang | , $#, $@, $O}. | -module(eministat_report).
-export([symbol/1, vitals/2, relative/1]).
-define(MAX_DS, 8).
symbol(K) when K >= 0 andalso K < ?MAX_DS -> [element(K, symbol())].
symbol() ->
vitals(#{ max := Max, min := Min, n := N, ci := CI,
outliers := {OutliersB, OutliersT},
percentiles := #{ 25 := Q1, 50 := Median, 75 := ... |
8e7b8164643416bfac1b5affa30ccb36cafa75873a81386235e50a9731c46340 | cljdoc/cljdoc-analyzer | mranderson_inlined_ns.cljc | ;;
;; Note: this file is used in tests that rely on line numbers
;;
(ns ^:mranderson/inlined metagetta-test.test-ns1.mranderson-inlined-ns)
(defn an-inlined-var[a] a)
| null | https://raw.githubusercontent.com/cljdoc/cljdoc-analyzer/5489e7de9542038a57a09abe583fc187d6a360e1/modules/metagetta/test-sources/metagetta_test/test_ns1/mranderson_inlined_ns.cljc | clojure |
Note: this file is used in tests that rely on line numbers
| (ns ^:mranderson/inlined metagetta-test.test-ns1.mranderson-inlined-ns)
(defn an-inlined-var[a] a)
|
3203d843050db968c7a6883ec17adc8290410c27b165d4bd0a1373edaf2e16c5 | EFanZh/EOPL-Exercises | exercise-3.21-test.rkt | #lang racket/base
(require rackunit)
(require "../solutions/exercise-3.x-proc-lang.rkt")
(check-equal? (run "let f = proc (x, y) -(x, y)
in (f 0 0)")
(num-val 0))
(check-equal? (run "let f = proc (x, y) -(x, y)
in (f 0 1)")
(num-val -1))
(check-equ... | null | https://raw.githubusercontent.com/EFanZh/EOPL-Exercises/11667f1e84a1a3e300c2182630b56db3e3d9246a/tests/exercise-3.21-test.rkt | racket | #lang racket/base
(require rackunit)
(require "../solutions/exercise-3.x-proc-lang.rkt")
(check-equal? (run "let f = proc (x, y) -(x, y)
in (f 0 0)")
(num-val 0))
(check-equal? (run "let f = proc (x, y) -(x, y)
in (f 0 1)")
(num-val -1))
(check-equ... | |
e81c87186e8044d96eb14fc430dd22123d189147fb1fd99d106ba00ef6b0e656 | KeenS/s7p | bidresponse.clj | (ns s7p.slave.log.bidresponse
(:require
[clojure.tools.logging :as log]
[cheshire.core :as json]))
(defn log [arg]
(log/info (json/generate-string arg)))
| null | https://raw.githubusercontent.com/KeenS/s7p/d3230114b8e8bd4ac292012b5ae0b53ba6df2bc9/src/s7p/slave/log/bidresponse.clj | clojure | (ns s7p.slave.log.bidresponse
(:require
[clojure.tools.logging :as log]
[cheshire.core :as json]))
(defn log [arg]
(log/info (json/generate-string arg)))
| |
4239f8d91a4a1ad3e2e393dd728f84114041833a6d4997276e2556da16aa23d5 | purcell/rosettacode-clojure | input_and_output.clj | ;; #Clojure
(use '[clojure.contrib.duck-streams :only (copy)])
(copy (java.io.File. "input.txt") (java.io.File. "output.txt"))
| null | https://raw.githubusercontent.com/purcell/rosettacode-clojure/8cb3fd98840095bf7caf9086cae44620179f222b/input_and_output.clj | clojure | #Clojure |
(use '[clojure.contrib.duck-streams :only (copy)])
(copy (java.io.File. "input.txt") (java.io.File. "output.txt"))
|
7b54ce26fa7f67ce84eaee602bf3400b8afa280afa0527683d2dd2d3e51a7af6 | verystable/warframe-autobuilder | Main.hs | module Main where
import AutoBuilder
main :: IO ()
main = autoBuilder
| null | https://raw.githubusercontent.com/verystable/warframe-autobuilder/015e0bb6812711ea27071816d054cbaa1c65770b/app/Main.hs | haskell | module Main where
import AutoBuilder
main :: IO ()
main = autoBuilder
| |
67003c6339f20b0df20e14ebdc69a394beae269d56f954e4e8be083db1ba8a42 | nuvla/ui | views.cljs | (ns sixsq.nuvla.ui.data-set.views
(:require [clojure.string :as str]
[re-frame.core :refer [dispatch subscribe]]
[reagent.core :as r]
[sixsq.nuvla.ui.apps.utils :as application-utils]
[sixsq.nuvla.ui.cimi.subs :as cimi-subs]
[sixsq.nuvla.ui.data-set.events :... | null | https://raw.githubusercontent.com/nuvla/ui/0742af0e32a31d48ebd11164b3062a377f3eb41b/code/src/cljs/sixsq/nuvla/ui/data_set/views.cljs | clojure | key is random to keep selection on top
FIXME: Find a better way to set the field width.
FIXME: Find a better way to set the field width. | (ns sixsq.nuvla.ui.data-set.views
(:require [clojure.string :as str]
[re-frame.core :refer [dispatch subscribe]]
[reagent.core :as r]
[sixsq.nuvla.ui.apps.utils :as application-utils]
[sixsq.nuvla.ui.cimi.subs :as cimi-subs]
[sixsq.nuvla.ui.data-set.events :... |
4e5f12e04cade7c2d97ec7c0093f6a7b13e771e16f815d09c63188368995788f | danieljharvey/mimsa | ESModulesJSEndToEnd.hs | {-# LANGUAGE OverloadedStrings #-}
module Test.Backend.ESModulesJSEndToEnd
( spec,
)
where
-- these are the backend tests that invoke the whole idea of a project
import Control.Monad.Except
import Data.Bifunctor
import Data.Foldable
import Data.Functor
import Data.Hashable
import Data.Text (Text)
import qualifie... | null | https://raw.githubusercontent.com/danieljharvey/mimsa/8154c07fcd394739d6d9543dd029d06470f738c2/compiler/test/Test/Backend/ESModulesJSEndToEnd.hs | haskell | # LANGUAGE OverloadedStrings #
these are the backend tests that invoke the whole idea of a project
test that we have a valid ESModulesJS module by saving it and running it
write file
cache output
create output
test that we have a valid ESModulesJS module by saving it and running it
create output
| input, output... |
module Test.Backend.ESModulesJSEndToEnd
( spec,
)
where
import Control.Monad.Except
import Data.Bifunctor
import Data.Foldable
import Data.Functor
import Data.Hashable
import Data.Text (Text)
import qualified Data.Text as T
import qualified Language.Mimsa.Backend.Javascript.Printer as JS
import Language.Mimsa.Ba... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.