_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 |
|---|---|---|---|---|---|---|---|---|
b45bae356366ec1cf3f4e072295644db4819d85a63aa6eda98c86ed0c003cf10 | jyh/metaprl | fol_itt_implies.ml |
* Derive the constant true .
*
* ----------------------------------------------------------------
*
* This file is part of MetaPRL , a modular , higher order
* logical framework that provides a logical programming
* environment for OCaml and other languages .
*
* See the file doc / htmlman / ... | null | https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/fol/fol_itt_implies.ml | ocaml | ***********************************************************************
* COMPUTATION *
***********************************************************************
***********************************************************************
* RULES ... |
* Derive the constant true .
*
* ----------------------------------------------------------------
*
* This file is part of MetaPRL , a modular , higher order
* logical framework that provides a logical programming
* environment for OCaml and other languages .
*
* See the file doc / htmlman / ... |
fb287d548ab75f1b03c806b9aebcc6b414b3390cd12573c4f9d973caf7caa5a7 | kocubinski/clojurewm | type.clj | (ns clojurewm.type
(:use clojure.clr.emit)
(:import [System.Runtime.InteropServices Marshal]))
(defonce rect-struct
(let [rect-builder (clr-type*
(cur-gen-context)
"clojurewm.RectStruct" [:SequentialLayout] nil [])]
(clr-field* rect-builder "Left" Int32 [:Public])
... | null | https://raw.githubusercontent.com/kocubinski/clojurewm/b368f418b8abd813114e553c67580d06a583bd18/src/clojurewm/type.clj | clojure | (ns clojurewm.type
(:use clojure.clr.emit)
(:import [System.Runtime.InteropServices Marshal]))
(defonce rect-struct
(let [rect-builder (clr-type*
(cur-gen-context)
"clojurewm.RectStruct" [:SequentialLayout] nil [])]
(clr-field* rect-builder "Left" Int32 [:Public])
... | |
9b20219ca4eab023218f7a2a6f93b0da42a5053f612c7178d9a7a0dfafec35e8 | tfausak/rattletrap | Loadouts.hs | module Rattletrap.Type.Attribute.Loadouts where
import qualified Rattletrap.BitGet as BitGet
import qualified Rattletrap.BitPut as BitPut
import qualified Rattletrap.Schema as Schema
import qualified Rattletrap.Type.Attribute.Loadout as Loadout
import qualified Rattletrap.Utility.Json as Json
data Loadouts = Loadouts... | null | https://raw.githubusercontent.com/tfausak/rattletrap/cc6d6aba923d840f23de7673cab9a043096d3099/src/lib/Rattletrap/Type/Attribute/Loadouts.hs | haskell | module Rattletrap.Type.Attribute.Loadouts where
import qualified Rattletrap.BitGet as BitGet
import qualified Rattletrap.BitPut as BitPut
import qualified Rattletrap.Schema as Schema
import qualified Rattletrap.Type.Attribute.Loadout as Loadout
import qualified Rattletrap.Utility.Json as Json
data Loadouts = Loadouts... | |
1f48adddf975ca382f3839d2d76ab666c52b9579ed8492765af731657c8645f8 | adrieng/pulsar | compiler.ml | This file is part of Pulsar , a temporal functional language .
* Copyright ( C ) 2017
*
* 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 3 of the License , or ... | null | https://raw.githubusercontent.com/adrieng/pulsar/c3901388659d9c7978b04dce0815e3ff9aea1a0c/pulsar-lib/compiler.ml | ocaml | This file is part of Pulsar , a temporal functional language .
* Copyright ( C ) 2017
*
* 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 3 of the License , or ... | |
d5d22fc92c9912466a22956ce90961651146c3cc377a308442649aadff4f851a | imdea-software/leap | PrgInfoArgs.mli |
(***********************************************************************)
(* *)
LEAP
(* *)
, IMDEA ... | null | https://raw.githubusercontent.com/imdea-software/leap/5f946163c0f80ff9162db605a75b7ce2e27926ef/src/progs/prginfo/PrgInfoArgs.mli | ocaml | *********************************************************************
... |
LEAP
, IMDEA Software Institute
Copyright 2011 IMDEA Software Institute
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
you may not use this file except in compl... |
fbdff2bcad79ab2057b2cd451270f1138c0caa64d286923747978e81cb4c1684 | pjotrp/guix | gnu-system.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 2012 , 2013 , 2014 , 2015 < >
;;;
;;; This file is part of GNU Guix.
;;;
GNU is free software ; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation ; either ... | null | https://raw.githubusercontent.com/pjotrp/guix/96250294012c2f1520b67f12ea80bfd6b98075a2/build-aux/hydra/gnu-system.scm | scheme | GNU Guix --- Functional package management for GNU
This file is part of GNU Guix.
you can redistribute it and/or modify it
either version 3 of the License , or ( at
your option) any later version.
GNU Guix is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied wa... | Copyright © 2012 , 2013 , 2014 , 2015 < >
under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
along with GNU . If not , see < / > .
This file defines build jobs for the Hydra continuation integration
Attempt to use our v... |
d68ce5fc628ae239d0a4a88cdd802f2259bb14e66f350c1dd646bba51e11860b | Metaxal/quickscript-extra | register.rkt | #lang racket/base
(require (for-syntax racket/base
racket/runtime-path
(only-in quickscript/library add-third-party-script-directory!)))
;; This is going to be called during setup and will automatically
register quickscript - extra in quickscript 's library .
(begin-for-synt... | null | https://raw.githubusercontent.com/Metaxal/quickscript-extra/526b2eccd9f73ea30bbc013741fdd77f4e2724cf/register.rkt | racket | This is going to be called during setup and will automatically | #lang racket/base
(require (for-syntax racket/base
racket/runtime-path
(only-in quickscript/library add-third-party-script-directory!)))
register quickscript - extra in quickscript 's library .
(begin-for-syntax
(define-runtime-path script-dir "scripts")
(add-third-party... |
e6d199547de2796724e386d892b5fafe036145a3040e41592e70f1fc4d224f6d | Xingtao/ReinforceLearningIntro | Utils.hs | # language ExtendedDefaultRules #
{-# language ScopedTypeVariables #-}
{-# language OverloadedStrings #-}
module Utils where
import Control.Monad
import Data.List
import Data.Ord (comparing)
import Data.Random
import Data.Random.Distribution
import Data.Random.Source.IO
import Data.Random.Distribution.Bernoulli (be... | null | https://raw.githubusercontent.com/Xingtao/ReinforceLearningIntro/ea48c10baec4c70c4e9ad3442a082d35983731ac/src/Utils.hs | haskell | # language ScopedTypeVariables #
# language OverloadedStrings #
| generate a list of values via a provided random distribution
| handy operator
| index with max value in a list
| argmax for a list of arguments
--------------------------------------------------------------------
------------------------------------... | # language ExtendedDefaultRules #
module Utils where
import Control.Monad
import Data.List
import Data.Ord (comparing)
import Data.Random
import Data.Random.Distribution
import Data.Random.Source.IO
import Data.Random.Distribution.Bernoulli (bernoulli)
generateRandomList :: (Num a) => Int -> RVar a -> IO [a]
genera... |
0d6ba205effa97a5c2c302cedc4bc346581d2751326803a552776ac213795023 | boxer-project/boxer-sunrise | mouse.lisp | ;;;;-*- Mode:Lisp; Package:boxer; Syntax: Common-Lisp; -*-
;;;;
;;;; Boxer
Copyright 1985 - 2022 Andrea A. diSessa and the Estate of Edward H. Lay
;;;;
Portions of this code may be copyright 1982 - 1985 Massachusetts Institute of Technology . Those portions may be
used for any purpose , includ... | null | https://raw.githubusercontent.com/boxer-project/boxer-sunrise/93dc8ca848a67f5fd409daf9b2859136d3b81b98/src/editor-high/mouse.lisp | lisp | -*- Mode:Lisp; Package:boxer; Syntax: Common-Lisp; -*-
Boxer
Licensed under the 3-Clause BSD license. You may not use this file except in compliance with this license.
-3-Clause
+-Data--+
+-------+
T... | Copyright 1985 - 2022 Andrea A. diSessa and the Estate of Edward H. Lay
Portions of this code may be copyright 1982 - 1985 Massachusetts Institute of Technology . Those portions may be
used for any purpose , including commercial ones , providing that notice of MIT copyright is retained .
... |
55b9b78fa9b5951d365b89f5d61abc4a9d924fcf94e4efb288db8bb353b4d466 | racket/racket7 | utf-8-encode.rkt | #lang racket/base
(provide utf-8-encode!
utf-8-encode-dispatch)
;; Returns (values chars-used bytes-written (or/c 'complete 'continues))
;; where 'continues is the result when the result byte string doesn't
;; have enough room
(define (utf-8-encode! in-str in-start in-end
out-bstr out... | null | https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/io/string/utf-8-encode.rkt | racket | Returns (values chars-used bytes-written (or/c 'complete 'continues))
where 'continues is the result when the result byte string doesn't
have enough room
`out-bstr` and `out-end` can be #f no bytes result needed
Iterate through the given string | #lang racket/base
(provide utf-8-encode!
utf-8-encode-dispatch)
(define (utf-8-encode! in-str in-start in-end
(let loop ([i in-start] [j out-start])
(cond
[(= i in-end)
(values (- in-end in-start) (- j out-start) 'complete)]
[else
(define b (char->integer (string-ref in-str i)))
... |
01b2e02714167591d5b29d458821af7a98329b0237df0229611c46433ba62aef | Netflix/PigPen | local_test.clj | ;;
;;
Copyright 2013 - 2015 Netflix , Inc.
;;
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; -2.0
;;
;; Unless required by apig-locallicable law or agr... | null | https://raw.githubusercontent.com/Netflix/PigPen/18d461d9b2ee6c1bb7eee7324889d32757fc7513/pigpen-pig/src/test/clojure/pigpen/pig/local_test.clj | clojure |
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 apig-locallicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for th... | Copyright 2013 - 2015 Netflix , Inc.
distributed under the License is distributed on an " AS IS " BASIS ,
(ns pigpen.pig.local-test
(:require [clojure.test :refer :all]
[pigpen.pig.runtime :refer [cast-bytes tuple]]
[pigpen.pig.local :as pig-local]
[pigpen.hadoop :as hado... |
bb651138adc5c1d61af4dead7514296279b3d3ef28452e001731fe17a1e8e378 | arclanguage/Clamp | time.lisp | (in-package :clamp)
(use-syntax :clamp)
(defparameter seconds-per-minute* 60 "The number of seconds per minute.")
(defparameter minutes-per-hour* 60 "The number of minutes per hour.")
(defparameter hours-per-day* 24 "The number of hours per day.")
(mac time10 (expr)
"Evaluates an expression 10 times and prints info... | null | https://raw.githubusercontent.com/arclanguage/Clamp/9f165b057a109564cd0e836cf611d1e81e43cb12/src/time.lisp | lisp | (in-package :clamp)
(use-syntax :clamp)
(defparameter seconds-per-minute* 60 "The number of seconds per minute.")
(defparameter minutes-per-hour* 60 "The number of minutes per hour.")
(defparameter hours-per-day* 24 "The number of hours per day.")
(mac time10 (expr)
"Evaluates an expression 10 times and prints info... | |
a61a7cdc16ba6fdb392ff635c4f13b5fd3bf1c6c926a05836c9bdbd379ee6ba4 | srid/emanote | Index.hs | {-# LANGUAGE BangPatterns #-}
# LANGUAGE TemplateHaskell #
module Emanote.Model.Stork.Index (
IndexVar,
newIndex,
clearStorkIndex,
readOrBuildStorkIndex,
File (File),
Input (Input),
Config (Config),
Handling,
FileType (..),
) where
import Control.Monad.Logger (MonadLoggerIO)
import Data.Default (Def... | null | https://raw.githubusercontent.com/srid/emanote/66dad06ca8fff73e30c52aee28f6458c73c900e3/src/Emanote/Model/Stork/Index.hs | haskell | # LANGUAGE BangPatterns #
TODO: What if there are concurrent reads? We probably need a lock.
And we want to encapsulate this whole thing.
HACK: Deal with tomland's bug.
title (but why would they?) | # LANGUAGE TemplateHaskell #
module Emanote.Model.Stork.Index (
IndexVar,
newIndex,
clearStorkIndex,
readOrBuildStorkIndex,
File (File),
Input (Input),
Config (Config),
Handling,
FileType (..),
) where
import Control.Monad.Logger (MonadLoggerIO)
import Data.Default (Default (..))
import Data.Text qu... |
902867c7b8fb314c6e69b17cf7bb1702804e59e5912929608a810d7138059bf7 | fsestini/zsyntax | Main.hs | import Zsyntax
import qualified Otter as O
import System.Exit (exitFailure)
import qualified Data.Set as S (fromList)
import qualified Data.MultiSet as M
import Data.List.NonEmpty (fromList)
import Zsyntax.ReactionList
type Atom = BioFormula String
main :: IO ()
main = checkSequent goal
checkSequent :: Sequent Atom ... | null | https://raw.githubusercontent.com/fsestini/zsyntax/761a4e42b05cd77bfcd6160165562baf20ca4697/test/Main.hs | haskell | import Zsyntax
import qualified Otter as O
import System.Exit (exitFailure)
import qualified Data.Set as S (fromList)
import qualified Data.MultiSet as M
import Data.List.NonEmpty (fromList)
import Zsyntax.ReactionList
type Atom = BioFormula String
main :: IO ()
main = checkSequent goal
checkSequent :: Sequent Atom ... | |
86c11e28de1eb877f9406f55bd68320263c164703bf298a0a0ebd8cb9a810c71 | let-def/menhir | nonpositiveCycles.mli | (**************************************************************************)
(* *)
Menhir
(* *)
, INRIA Ro... | null | https://raw.githubusercontent.com/let-def/menhir/e8ba7bef219acd355798072c42abbd11335ecf09/src/nonpositiveCycles.mli | ocaml | ************************************************************************
et en Automatique. All rig... | Menhir
, INRIA Rocquencourt
, PPS , Université Paris Diderot
Copyright 2005 - 2008 Institut National de Recherche en Informatique
under the terms of the Q Public License versi... |
3a6cb5d50e6f9f1f4664296a5324aab0c124e77c242322387f802b516429f6c4 | janestreet/async | persistent_connection.mli | * @inline
| null | https://raw.githubusercontent.com/janestreet/async/a42d7fd4d14b2125c4bdf546d03d1a6aedf76b90/persistent_connection/src/persistent_connection.mli | ocaml | * @inline
| |
626d4566ffad4bbd0bd683f0a41d01b572a5153687e126123bcf169b0787f8da | bjorng/wings | wings_face.erl | %%
%% wings_face.erl --
%%
%% This module contains help routines for faces, such as fold functions
%% face iterators.
%%
Copyright ( c ) 2001 - 2011
%%
%% See the file "license.terms" for information on usage and redistribution
%% of this file, and for a DISCLAIMER OF ALL WARRANTIES.
%%
%% $Id$
%%
... | null | https://raw.githubusercontent.com/bjorng/wings/dec64a500220359dbc552600af486be47c45d301/src/wings_face.erl | erlang |
wings_face.erl --
This module contains help routines for faces, such as fold functions
face iterators.
See the file "license.terms" for information on usage and redistribution
of this file, and for a DISCLAIMER OF ALL WARRANTIES.
$Id$
from_vs([Vertex], We) -> [Face]
Convert a list or gbset... | Copyright ( c ) 2001 - 2011
-module(wings_face).
-export([from_edges/2,from_vs/2,
other/2,vertices/2,
to_edges/2,to_vertices/2,
normal/2,normal/3,
face_normal_cw/2,face_normal_ccw/2,
good_normal/2,is_thin/2,
center/2,area/2,
mirror_matrix/2,
vertices_cw/2,vertices_cw/3,
vertices_ccw/2,vertices_c... |
79d94f637f07f09c9bbf9217cc3975c60f8dc75ea0cd99a688fe1ee12c5fa206 | softwarelanguageslab/maf | R5RS_WeiChenRompf2019_kcfa-worst-case-16-2.scm | ; Changes:
* removed : 0
* added : 1
* swaps : 0
; * negated predicates: 0
; * swapped branches: 0
; * calls to id fun: 0
((lambda (f1) (f1 #t) (f1 #f))
(lambda (x1)
((lambda (f2) (f2 #t) (f2 #f))
(lambda (x2)
(<change>
()
(display #f))
((lam... | null | https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_WeiChenRompf2019_kcfa-worst-case-16-2.scm | scheme | Changes:
* negated predicates: 0
* swapped branches: 0
* calls to id fun: 0 | * removed : 0
* added : 1
* swaps : 0
((lambda (f1) (f1 #t) (f1 #f))
(lambda (x1)
((lambda (f2) (f2 #t) (f2 #f))
(lambda (x2)
(<change>
()
(display #f))
((lambda (f3) (f3 #t) (f3 #f))
(lambda (x3)
((lambda (f4... |
67abae969c6a60d5a3706d1f7416cded337a6ccd3249feb6ae9a16589d88da91 | jeapostrophe/srpnt | music-theory.rkt | #lang racket/base
(require racket/list
racket/match
racket/fixnum
racket/flonum
racket/contract/base)
(module+ test
(require rackunit))
(define note-factors
(vector 1.0 2.0 4.0 8.0 16.0))
(define notes
(apply vector
(append*
(for/list ([nf (in-vector note-fa... | null | https://raw.githubusercontent.com/jeapostrophe/srpnt/c26e74ce524bb988d6643273c96f4e94406b1746/srpnt/music-theory.rkt | racket | Dotted note | #lang racket/base
(require racket/list
racket/match
racket/fixnum
racket/flonum
racket/contract/base)
(module+ test
(require rackunit))
(define note-factors
(vector 1.0 2.0 4.0 8.0 16.0))
(define notes
(apply vector
(append*
(for/list ([nf (in-vector note-fa... |
bb33cad962bf9e3617420481ac5f9968ba47ac78792ae8d37e4b943e5b6e5c6e | fetburner/Coq2SML | coq_commands.ml | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/ide/coq_commands.ml | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
"Abort";
"Back";
"Undo"; | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
let commands = [
"Add Abst... |
42181223018d35b39aa161c9399ebc0f578488671d2779034cfd878069a64ab3 | onedata/op-worker | fslogic_times.erl | %%%--------------------------------------------------------------------
@author
( C ) 2016 ACK CYFRONET AGH
This software is released under the MIT license
cited in ' LICENSE.txt ' .
%%% @end
%%%--------------------------------------------------------------------
%%% @doc This module provides functions opera... | null | https://raw.githubusercontent.com/onedata/op-worker/99748b05d58eb808a2043cb85d6076f81d703a10/src/modules/fslogic/utils/fslogic_times.erl | erlang | --------------------------------------------------------------------
@end
--------------------------------------------------------------------
@doc This module provides functions operating on file timestamps
@end
--------------------------------------------------------------------
API
==============================... | @author
( C ) 2016 ACK CYFRONET AGH
This software is released under the MIT license
cited in ' LICENSE.txt ' .
-module(fslogic_times).
-author("Mateusz Paciorek").
-include("modules/datastore/datastore_models.hrl").
-include_lib("ctool/include/logging.hrl").
-export([update_atime/1, update_ctime/1, update_... |
cdcb15ede36bf3a9a264521bb527e005714d2d7cbccfe1371fa83fa89b032ec1 | jordanthayer/ocaml-search | upq.ml | $ I d : , v 1.4 2005/12/10 23:26:03 ruml Exp ruml $
update - able destructive priority queues
update-able destructive priority queues
*)
type ('a, 'b) t = {
q : 'a Dpq.t;
key : 'a -> 'b;
index : ('b, int) Hashtbl.t;
}
let create_with pred key approx_n init_e =
let index = Hashtbl.create appro... | null | https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/structs/upq.ml | ocaml |
let get_garbage q =
q.heap.(q.fp)
let find q e =
q.heap.(Hashtbl.find q.index (q.key e))
let make_iterator_unsafe q =
Dpq.make_iterator_unsafe q.q
********* testing **********
* ensure index is accurate | $ I d : , v 1.4 2005/12/10 23:26:03 ruml Exp ruml $
update - able destructive priority queues
update-able destructive priority queues
*)
type ('a, 'b) t = {
q : 'a Dpq.t;
key : 'a -> 'b;
index : ('b, int) Hashtbl.t;
}
let create_with pred key approx_n init_e =
let index = Hashtbl.create appro... |
694bb9116ca7107a0fa059093c7e3e74f816ce30f3c67ac6fd416679924bedf0 | expipiplus1/vulkan | VK_AMD_shader_info.hs | {-# language CPP #-}
-- | = Name
--
-- VK_AMD_shader_info - device extension
--
-- == VK_AMD_shader_info
--
-- [__Name String__]
--
-- [__Extension Type__]
-- Device extension
--
-- [__Registered Extension Number__]
43
--
-- [__Revision__]
1
--
-- [__Extension and Version Dependencies__]
--
... | null | https://raw.githubusercontent.com/expipiplus1/vulkan/ebc0dde0bcd9cf251f18538de6524eb4f2ab3e9d/src/Vulkan/Extensions/VK_AMD_shader_info.hs | haskell | # language CPP #
| = Name
VK_AMD_shader_info - device extension
== VK_AMD_shader_info
[__Name String__]
[__Extension Type__]
Device extension
[__Registered Extension Number__]
[__Revision__]
[__Extension and Version Dependencies__]
[__Special Use__]
- <-extensions/html/vkspec.html#extendi... |
43
1
- Requires support for Vulkan 1.0
-
2017 - 10 - 09
- , AMD
- ' getShaderInfoAMD '
- ' '
- ' ShaderStatisticsInfoAMD '
- ' ShaderInfoTypeAMD '
- ' AMD_SHADER_INFO_SPEC_VERSION '
> extern ;
> PFN_vkGetShaderInfoAMD pfnGetShaderIn... |
cde8665ecc6c50376cdb44c82f29cc7589fcc1572fd8d1fde993887f7f3c4099 | gfngfn/SATySFi | hashTree.ml |
open MyUtil
module type S =
sig
type key
type 'a t
val empty : 'a -> 'a t
val to_string : (key -> string) -> ('a -> string) -> 'a t -> string
val find_stage : 'a t -> key list -> 'a option
val update : 'a t -> key list -> ('a -> 'a) -> ('a t) option
val add_stage : 'a t -> key list -> ke... | null | https://raw.githubusercontent.com/gfngfn/SATySFi/9dbd61df0ab05943b3394830c371e927df45251a/src/frontend/hashTree.ml | ocaml |
open MyUtil
module type S =
sig
type key
type 'a t
val empty : 'a -> 'a t
val to_string : (key -> string) -> ('a -> string) -> 'a t -> string
val find_stage : 'a t -> key list -> 'a option
val update : 'a t -> key list -> ('a -> 'a) -> ('a t) option
val add_stage : 'a t -> key list -> ke... | |
34644336fc0f9bce9565b1bf835e88e10171f3e7ec077a60dc64aedd5fefaf9f | odis-labs/onix | Main.ml | let ( or ) opt default =
match opt with
| Some x -> x
| None -> default
let setup_logs style_renderer log_level =
Fmt_tty.setup_std_outputs ?style_renderer ();
Logs.set_level log_level;
Logs.set_reporter (Logs_fmt.reporter ())
open Cmdliner
let ocaml_version_arg =
let doc = "The version of OCaml to be ... | null | https://raw.githubusercontent.com/odis-labs/onix/81cc82953ef062425656ac9bf80474f2ce642f5b/src/Main.ml | ocaml | let doc =
resolution."
in
let docv = "LIST" in
Arg.(
info ["repository-dir"] ~docv ~doc |> opt (some string) None |> required)
IMPORTANT: Do not resolve to absolute path.
IMPORTANT: Do not resolve to absolute path. | let ( or ) opt default =
match opt with
| Some x -> x
| None -> default
let setup_logs style_renderer log_level =
Fmt_tty.setup_std_outputs ?style_renderer ();
Logs.set_level log_level;
Logs.set_reporter (Logs_fmt.reporter ())
open Cmdliner
let ocaml_version_arg =
let doc = "The version of OCaml to be ... |
4ea70ec9b7d69db95df2943171a9caf8fd09bd3e83365be07d7eab34b62e15bb | themetaschemer/malt | test-A-scalar-ops.rkt | (module+ test
(require rackunit)
(require (only-in "../tensors.rkt" tensor))
;; Check basic numericals
(let ((a 2)
(b 3))
(check-ρ-∇ (d+ a b) 5 (list 1.0 1.0))
(check-ρ-∇ (d- a b) -1 (list 1.0 -1.0))
(check-ρ-∇ (d* a b) 6 (list 3.0 2.0))
(check-ρ-∇ (d/ a b)
2/3
... | null | https://raw.githubusercontent.com/themetaschemer/malt/78a04063a5a343f5cf4332e84da0e914cdb4d347/nested-tensors/ext-ops/test/test-A-scalar-ops.rkt | racket | Check basic numericals | (module+ test
(require rackunit)
(require (only-in "../tensors.rkt" tensor))
(let ((a 2)
(b 3))
(check-ρ-∇ (d+ a b) 5 (list 1.0 1.0))
(check-ρ-∇ (d- a b) -1 (list 1.0 -1.0))
(check-ρ-∇ (d* a b) 6 (list 3.0 2.0))
(check-ρ-∇ (d/ a b)
2/3
'(0.3333333333333333 -0... |
4e3a31f3733c7f7e23a0b2bb97f431ed1747797d3a077decc30ea8800c1b1413 | andrewjstone/rafter | rafter_consensus_sup.erl | -module(rafter_consensus_sup).
-behaviour(supervisor).
%% API
-export([start_link/2]).
%% Supervisor callbacks
-export([init/1]).
start_link(Me, Opts) when is_atom(Me) ->
SupName = name(Me, "sup"),
start_link(Me, SupName, Me, Opts);
start_link(Me, Opts) ->
{Name, _Node} = Me,
SupName = name(Name, "s... | null | https://raw.githubusercontent.com/andrewjstone/rafter/6bc630b487ef26770df78afbbc97995cfe0b7b5a/src/rafter_consensus_sup.erl | erlang | API
Supervisor callbacks
===================================================================
Private Functions
=================================================================== | -module(rafter_consensus_sup).
-behaviour(supervisor).
-export([start_link/2]).
-export([init/1]).
start_link(Me, Opts) when is_atom(Me) ->
SupName = name(Me, "sup"),
start_link(Me, SupName, Me, Opts);
start_link(Me, Opts) ->
{Name, _Node} = Me,
SupName = name(Name, "sup"),
start_link(Name, SupN... |
2659e054e1f11d46876cf7a9066ab06f98cae4c6029bcecc01db11548a709f70 | timbertson/nix-wrangle | Source.hs | # LANGUAGE DerivingStrategies #
# LANGUAGE NamedFieldPuns #
# LANGUAGE GeneralizedNewtypeDeriving #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TupleSections #
module Wrangle.Source where
import Prelude hiding (error)
import Control.Monad
import Control.Exception (Exception)
import ... | null | https://raw.githubusercontent.com/timbertson/nix-wrangle/6f68b43717717e11c9e68d00022fb69aad2d6f26/src/Wrangle/Source.hs | haskell | # LANGUAGE OverloadedStrings #
aren't supported in `splice`, but they also require
no prefetching
Going via JSON is a little hacky, but
we've already got a nice to/from JSON code path
should be impossible | # LANGUAGE DerivingStrategies #
# LANGUAGE NamedFieldPuns #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TupleSections #
module Wrangle.Source where
import Prelude hiding (error)
import Control.Monad
import Control.Exception (Exception)
import Data.Bifoldable (bifoldMap)
import ... |
ce0292e2befd22a940e8002664782840b6b076ddebc3c0229f2b1e398f2070f1 | binaryage/chromex | vpn_provider.cljs | (ns chromex.app.vpn-provider (:require-macros [chromex.app.vpn-provider :refer [gen-wrap]])
(:require [chromex.core]))
-- functions --------------------------------------------------------------------------------------------------------------
(defn create-config* [config name]
(gen-wrap :function ::create-con... | null | https://raw.githubusercontent.com/binaryage/chromex/33834ba5dd4f4238a3c51f99caa0416f30c308c5/src/apps/chromex/app/vpn_provider.cljs | clojure | -- events ----------------------------------------------------------------------------------------------------------------- | (ns chromex.app.vpn-provider (:require-macros [chromex.app.vpn-provider :refer [gen-wrap]])
(:require [chromex.core]))
-- functions --------------------------------------------------------------------------------------------------------------
(defn create-config* [config name]
(gen-wrap :function ::create-con... |
ed19b7950fdb8f18acdbb4e55d9ef59676eaccda9e26f51fcce502f6e9f6526b | penpot/penpot | code_block.cljs | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
;;
;; Copyright (c) KALEIDOS INC
(ns app.main.ui.components.code-block
(:require
["highlight.js" :as hljs]
[rumext.v2 :as mf]))
(mf/de... | null | https://raw.githubusercontent.com/penpot/penpot/527e4643da025a7f65a12a59231e93a6709eae0a/frontend/src/app/main/ui/components/code_block.cljs | clojure |
Copyright (c) KALEIDOS INC | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
(ns app.main.ui.components.code-block
(:require
["highlight.js" :as hljs]
[rumext.v2 :as mf]))
(mf/defc code-block [{:keys [code type]... |
e83ee45bb25d8ad1a18da7e65d6c303a19d4928c244679bc5f662ba4fbd1e7ce | kamek-pf/ntfd | Weather.hs | module Modules.Weather
( weatherStringsSvc
)
where
import Control.Monad (forever)
import Data.Maybe (fromMaybe)
import Data.Either (fromRight)
import Data.Time.Clock (secondsToNominalDiffTime)
import Data.Text (unpack, Text)
import DBus.Client
( autoMethod
, defaultInterface
, export
, readOnly... | null | https://raw.githubusercontent.com/kamek-pf/ntfd/d297a59339b3310a62341ffa9c378180c578dbce/app/Modules/Weather.hs | haskell | "all strings" version of the weather DBus API, this is meant to be convenient to use
Keep notifications in sync with template
Stupid spelling error | module Modules.Weather
( weatherStringsSvc
)
where
import Control.Monad (forever)
import Data.Maybe (fromMaybe)
import Data.Either (fromRight)
import Data.Time.Clock (secondsToNominalDiffTime)
import Data.Text (unpack, Text)
import DBus.Client
( autoMethod
, defaultInterface
, export
, readOnly... |
ca373b65fdf032de9952363eb1d27eec7f1fd6a0f6d578d8380e9b244e560460 | smallmelon/sdzmmo | lib_goods.erl | %%%--------------------------------------
%%% @Module : lib_goods
@Author : xhg
%%% @Email :
@Created : 2010.05.24
%%% @Description : 物品信息
%%%--------------------------------------
-module(lib_goods).
-include("common.hrl").
-include("record.hrl").
-export(
[
add_goods/1,
ad... | null | https://raw.githubusercontent.com/smallmelon/sdzmmo/254ff430481de474527c0e96202c63fb0d2c29d2/src/lib/lib_goods.erl | erlang | --------------------------------------
@Module : lib_goods
@Email :
@Description : 物品信息
--------------------------------------
保存物品信息
set_goods_info(GoodsId, Field, Data) ->
L = db_sql:make_conn_sql(Field, Data, []),
db_sql:execute(Sql),
ok.
添加新物品信息
添加附加属性
添加附加属性
添加装备属性
删除装备属性
删... | @Author : xhg
@Created : 2010.05.24
-module(lib_goods).
-include("common.hrl").
-include("record.hrl").
-export(
[
add_goods/1,
add_goods_attribute/4,
mod_goods_attribute/2,
del_goods_attribute/1,
del_goods_attribute/3,
pay_goods/4,
sell_g... |
bef52b2a481d5c097d9c63639c9d81157a511602c20e725ea09536256f38287e | lillo/compiler-course-unipi | semantic_analysis.ml | exception Semantic_error of Location.code_pos * string
let type_check _p = failwith "Not implemented yet" | null | https://raw.githubusercontent.com/lillo/compiler-course-unipi/330349afbf72919f6ab0915c5f8f49507e9aca71/microc/microc-codegen/lib/semantic_analysis.ml | ocaml | exception Semantic_error of Location.code_pos * string
let type_check _p = failwith "Not implemented yet" | |
3e32967e69eb3f000f211c384d0a8900d047a1bfdc7c9d24ba83d57f0db2e203 | adaliu-gh/htdp | 12-209-211.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-beginner-abbr-reader.ss" "lang")((modname 12-209-211) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-d... | null | https://raw.githubusercontent.com/adaliu-gh/htdp/a0fca8af2ae8bdcef40d56f6f45021dd92df2995/8-13%20Arbitrarily%20Large%20Data/12-209-211.rkt | racket | about the language level of this file in a form that our tools can easily process.
------------------------------
REQUIREMENTS
-----------------------------
-------------------------------
DATA DEFINITION
------------------------------
- '()
- (cons 1String Word)
- '()
- (cons Word List-of-words)
---------------... | The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname 12-209-211) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f)))
(require 2htdp/batch-io)
a Word is one of :
(define... |
aa5ceaff11221b0d0de5151ad3d151df9d643a84403bf9b1732223aab7678c94 | CBMM/tagging | videomemoryAnswers.hs | # LANGUAGE DeriveGeneric #
module Main where
import qualified Data.ByteString.Lazy.Char8 as BSL
import Data.Aeson
import qualified Data.Aeson as A
import Data.Foldable
import Data.Proxy
import Database.Groundhog
import Database.Groundhog.Postgresql
import GHC.Generics
import System.Environment
import Server.Applicati... | null | https://raw.githubusercontent.com/CBMM/tagging/15f257394f3dda5baf6db0581a52d9c9f99e2abe/tagging-server/scratch/videomemoryAnswers.hs | haskell | Copy-pasted data types from the front-end code
^ Overwrite the old ssKey, because it wasn't known at the time the setup file was generated
^ Data used to construct the stim_seq_item (original filenames) | # LANGUAGE DeriveGeneric #
module Main where
import qualified Data.ByteString.Lazy.Char8 as BSL
import Data.Aeson
import qualified Data.Aeson as A
import Data.Foldable
import Data.Proxy
import Database.Groundhog
import Database.Groundhog.Postgresql
import GHC.Generics
import System.Environment
import Server.Applicati... |
32b062a11fe0912addf72e4bd05fecca924bbffd07c589cb1fe066190ddaa1f0 | dongweiming/lisp-koans-answer | iteration.lsp | Copyright 2013 Google Inc.
;;
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; -2.0
;;
;; Unless required by applicable law or agreed to in writing, software
... | null | https://raw.githubusercontent.com/dongweiming/lisp-koans-answer/33eb6e38c7179c677db0df0a31cadd49617ae8db/koans/iteration.lsp | lisp |
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 g... | Copyright 2013 Google Inc.
distributed under the License is distributed on an " AS IS " BASIS ,
Dolist evaluates a form for every element om a list .
(defvar some-primes '(10301 11311 19991 999565999))
(define-test test-dolist
"'dolist' iterates over values in a list, binding each value to a lexical
... |
12ae2cc45fbb4fdb98de66159209027032249267b8988030263c032137a9ceda | Opetushallitus/ataru | harkinnanvaraisuus_job.clj | (ns ataru.harkinnanvaraisuus.harkinnanvaraisuus-job
(:require [clj-time.core :as time]
[ataru.harkinnanvaraisuus.harkinnanvaraisuus-process-store :as store]
[clj-time.coerce :as coerce]
[ataru.haku.haku-service :as haku-service]
[ataru.applications.application-store :as... | null | https://raw.githubusercontent.com/Opetushallitus/ataru/648919e100f67ba1967cc90349a56cd3097e35d0/src/clj/ataru/harkinnanvaraisuus/harkinnanvaraisuus_job.clj | clojure | (ns ataru.harkinnanvaraisuus.harkinnanvaraisuus-job
(:require [clj-time.core :as time]
[ataru.harkinnanvaraisuus.harkinnanvaraisuus-process-store :as store]
[clj-time.coerce :as coerce]
[ataru.haku.haku-service :as haku-service]
[ataru.applications.application-store :as... | |
bded41ed3beca1c53d5fd15e823366c79692b4f940119736aa06cb2f099a3aa6 | Mayvenn/storefront | landing_page.cljc | (ns storefront.components.landing-page
(:require [storefront.component :as component]
[storefront.components.money-formatters :as mf]
[api.catalog :refer [select ?discountable ?physical]]
[storefront.components.svg :as svg]
[storefront.accessors.contentful :as contentfu... | null | https://raw.githubusercontent.com/Mayvenn/storefront/eed08ce8644f7509dfc2171ab646634656344b9d/src-cljc/storefront/components/landing_page.cljc | clojure | TODO(corey) apply merge-with into
TODO: only handles the free service discount,
other promotions can be back ported here after
Look
Looks page
For Upload care images
contentful-hosted image
contentful-hosted image
contentful-hosted image
contentful-hosted image
TODO: bring in from contentful?
TODO: rebinding... | (ns storefront.components.landing-page
(:require [storefront.component :as component]
[storefront.components.money-formatters :as mf]
[api.catalog :refer [select ?discountable ?physical]]
[storefront.components.svg :as svg]
[storefront.accessors.contentful :as contentfu... |
885b4d7a859ada1660a433e82bae045a15aa2a8a39830adaba59acc8aecb8d02 | apache/couchdb-ioq | ioq.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-ioq/63268992ee9f868b911449b6e775adb497d4cc4a/src/ioq.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(ioq).
-export([start/0, stop/0, call/3, call/4, call_search/3,
set_disk_concurrency/1, get_disk_queues/0, get_osproc_queues/0,
get_osproc_re... |
5ae8591785490e5bcc8bd6faff160e415e90e1edffa0a5b717d002dec1a0ae7e | k-bx/protocol-buffers | Header.hs | -- | This provides what is needed for the output of 'hprotoc' to
compile . This and the Prelude will both be imported qualified as
-- P', the prime ensuring no name conflicts are possible.
module Text.ProtocolBuffers.Header
( append, appendMap, emptyBS
, pack, fromMaybe, ap
, msum
, fromDistinctAscL... | null | https://raw.githubusercontent.com/k-bx/protocol-buffers/a1d0fdf6b9df7ed066f623de618a4470f4493d33/Text/ProtocolBuffers/Header.hs | haskell | | This provides what is needed for the output of 'hprotoc' to
P', the prime ensuring no name conflicts are possible.
all
all
# INLINE seqFromList # | compile . This and the Prelude will both be imported qualified as
module Text.ProtocolBuffers.Header
( append, appendMap, emptyBS
, pack, fromMaybe, ap
, msum
, fromDistinctAscList, member
, throwError,catchError
, choice, sepEndBy, spaces, try
, (<=<)
, FromJSON(..), ToJSON(..)
... |
6f6e9fb533a92311175ecae76c5aff7ec78c35732afcfa6d3027a41bb673bd7c | elastic/eui-cljs | icon_package.cljs | (ns eui.icon-package
(:require ["@elastic/eui/lib/components/icon/assets/package.js" :as eui]))
(def package eui/icon)
| null | https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/icon_package.cljs | clojure | (ns eui.icon-package
(:require ["@elastic/eui/lib/components/icon/assets/package.js" :as eui]))
(def package eui/icon)
| |
c01bed7bd639be53f62a87d56043d93e01c78b8d8c70395c15fa3b39a3427201 | IBM/probzelus | lib.ml |
* Copyright 2018 - 2020 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 at
*
* -2.0
*
* Unless required by applicable law or agreed to in writin... | null | https://raw.githubusercontent.com/IBM/probzelus/c56573201b43780b9c103e5616bb193ababa3399/benchmarks/trackerdelay/trackerdelaylib/lib.ml | ocaml |
* Copyright 2018 - 2020 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 at
*
* -2.0
*
* Unless required by applicable law or agreed to in writin... | |
e7e43267628289fc599b201f75927d1f3e86982655656be39adf725110f7d67c | dalaing/little-languages | Loc.hs | # LANGUAGE TypeFamilies #
{-# LANGUAGE RankNTypes #-}
module Loc where
import Control.Lens (preview, review)
import Control.Lens.Iso (Iso', iso)
import Control.Lens.Prism (Prism', aside)
class WithLoc f where
type Loc f
type Without f
_Loc :: Prism' f (Loc f, f)
stripLoc :: f -> Without f
_WithLoc :: Iso... | null | https://raw.githubusercontent.com/dalaing/little-languages/9f089f646a5344b8f7178700455a36a755d29b1f/code/old/multityped/stlc-b/src/Loc.hs | haskell | # LANGUAGE RankNTypes # | # LANGUAGE TypeFamilies #
module Loc where
import Control.Lens (preview, review)
import Control.Lens.Iso (Iso', iso)
import Control.Lens.Prism (Prism', aside)
class WithLoc f where
type Loc f
type Without f
_Loc :: Prism' f (Loc f, f)
stripLoc :: f -> Without f
_WithLoc :: Iso' f (Maybe (Loc f), f)
_Wi... |
0e91fa056b9afea97e5d7ba475a4d623fc07449a2d16a8f697142ccf30f91f96 | processone/cache_tab | ets_cache_options.erl | %%%-------------------------------------------------------------------
@author < >
Created : 24 Apr 2017 by < >
%%%
%%%
Copyright ( C ) 2002 - 2021 ProcessOne , SARL . All Rights Reserved .
%%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%%% you may not use this file except in co... | null | https://raw.githubusercontent.com/processone/cache_tab/b05040ba67dc4232f3bfda424519d8583ba26260/src/ets_cache_options.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... | @author < >
Created : 24 Apr 2017 by < >
Copyright ( C ) 2002 - 2021 ProcessOne , SARL . All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(ets_cache_options).
-export([max_size/1, life... |
be85d02e54e2c5b0cb6cfdb5a3ea0feae4a15148f600328d318e12811f19dcf1 | manuel-serrano/hop | callcc_locations.scm | ;*=====================================================================*/
* Author : * /
* Copyright : 2007 - 12 , see LICENSE file * /
;* ------------------------------------------------------------- */
* This file is part of Scheme2Js . ... | null | https://raw.githubusercontent.com/manuel-serrano/hop/481cb10478286796addd2ec9ee29c95db27aa390/scheme2js/callcc_locations.scm | scheme | *=====================================================================*/
* ------------------------------------------------------------- */
* */
* but WITHOUT ANY WARRANTY; without even the implied warranty of */
* MERCHANTABILITY or FITNE... | * Author : * /
* Copyright : 2007 - 12 , see LICENSE file * /
* This file is part of Scheme2Js . * /
* Scheme2Js is distributed in the hope that it will be useful , * /
(module callcc-locations
(impor... |
0f8955233a2d01b9eecda4dd155d92dbc27868eac0c3071dba7279ac7b59e451 | erikd/system-linux-proc | MemInfo.hs | # LANGUAGE CPP #
{-# LANGUAGE OverloadedStrings #-}
module System.Linux.Proc.MemInfo
( MemInfo (..)
, readProcMemInfo
, readProcMemInfoKey
, readProcMemUsage
, renderSizeBytes
) where
import Control.Error (ExceptT (..), fromMaybe, runExceptT, throwE)
import Data.Attoparsec.ByteString.... | null | https://raw.githubusercontent.com/erikd/system-linux-proc/b5fc50b0e9f2b28a92c3152908799e53ae16589e/System/Linux/Proc/MemInfo.hs | haskell | # LANGUAGE OverloadedStrings #
| A struct to contain information parsed from the `/proc/meminfo` file
filesystem are converted to bytes.
^ Total physical RAM.
^ Total free RAM (which includes memory used for filesystem caching).
^ Available memory.
^ Total amount of swap space.
^ Amount of swap space that is fre... | # LANGUAGE CPP #
module System.Linux.Proc.MemInfo
( MemInfo (..)
, readProcMemInfo
, readProcMemInfoKey
, readProcMemUsage
, renderSizeBytes
) where
import Control.Error (ExceptT (..), fromMaybe, runExceptT, throwE)
import Data.Attoparsec.ByteString.Char8 (Parser)
import qualified Dat... |
d5a8e04487452844fb5fb46eae1f1d24e835b424b1802c57323d44da11d3ac9f | aptmcl/rosetta | rhino.rkt | #lang typed/racket/base/no-check
(require (for-syntax racket/base))
(require (except-in "rhinoceros/backend.rkt" division translating))
(provide (all-from-out "rhinoceros/backend.rkt"))
(require racket/include)
(include "base/macros.rkc") | null | https://raw.githubusercontent.com/aptmcl/rosetta/38aeafd730f93edaec7474106e84dae6d8bc1261/rhino.rkt | racket | #lang typed/racket/base/no-check
(require (for-syntax racket/base))
(require (except-in "rhinoceros/backend.rkt" division translating))
(provide (all-from-out "rhinoceros/backend.rkt"))
(require racket/include)
(include "base/macros.rkc") | |
75703ee87700f05899726b4592d0c58809b650e180c664e30f6568a5125e9a83 | votinginfoproject/data-processor | postgres.clj | (ns vip.data-processor.db.postgres
(:require [clojure.tools.logging :as log]
[clojure.string :as str]
[joplin.core :as j]
[joplin.jdbc.database]
[clojure.java.jdbc :as jdbc]
[korma.db :as db]
[korma.core :as korma]
[turbovote.resource... | null | https://raw.githubusercontent.com/votinginfoproject/data-processor/b4baf334b3a6219d12125af8e8c1e3de93ba1dc9/src/vip/data_processor/db/postgres.clj | clojure | we got a int, use it
assume it was a String id
TODO: choose import-entities based on import version | (ns vip.data-processor.db.postgres
(:require [clojure.tools.logging :as log]
[clojure.string :as str]
[joplin.core :as j]
[joplin.jdbc.database]
[clojure.java.jdbc :as jdbc]
[korma.db :as db]
[korma.core :as korma]
[turbovote.resource... |
9196ea474c0962a416e70dc5512e828b525916294bbcec59a8c76aa5fc0e5a52 | markandrus/twilio-haskell | Feedback.hs | {-#LANGUAGE DeriveDataTypeable #-}
# LANGUAGE DeriveGeneric #
# LANGUAGE MultiParamTypeClasses #
{-#LANGUAGE OverloadedStrings #-}
-------------------------------------------------------------------------------
-- |
-- Module : Twilio.Message.Feedback
Copyright : ( C ) 2017-
-- License : BSD-style ... | null | https://raw.githubusercontent.com/markandrus/twilio-haskell/00704dc86dbf2117b855b1e2dcf8b6c0eff5bfbe/src/Twilio/Message/Feedback.hs | haskell | #LANGUAGE DeriveDataTypeable #
#LANGUAGE OverloadedStrings #
-----------------------------------------------------------------------------
|
Module : Twilio.Message.Feedback
License : BSD-style (see the file LICENSE)
Stability : provisional
-------------------------------------------------------------... | # LANGUAGE DeriveGeneric #
# LANGUAGE MultiParamTypeClasses #
Copyright : ( C ) 2017-
Maintainer : < >
module Twilio.Message.Feedback
Feedback(..)
, Outcome(..)
) where
import Control.Monad
import Data.Aeson
import Data.Data
import GHC.Generics
Resource
data Feedback = Feedback
{ outc... |
bd7eae05bf1c9441283910fc2440b89a68ad2e73e7fff0968eaee6f05361bf44 | racket/typed-racket | tc-structs.rkt | #lang racket/base
(require "../utils/utils.rkt"
syntax/struct syntax/parse racket/function racket/match racket/list syntax/id-set
racket/format syntax/id-table
(prefix-in c: (contract-req))
"../rep/type-rep.rkt"
"../rep/type-constr.rkt"
"../rep/free-variance.rkt"
... | null | https://raw.githubusercontent.com/racket/typed-racket/1dde78d165472d67ae682b68622d2b7ee3e15e1e/typed-racket-lib/typed-racket/typecheck/tc-structs.rkt | racket | sty : (U Struct? Prefab?)
names : struct-names
desc : struct-desc
struct-info : struct-info?
type-only : Boolean
struct-name : Id (the identifier for the static struct info,
usually the same as the type-name)
type-name : Id (the identifier for the type name)
struct-type : Id (the identi... | #lang racket/base
(require "../utils/utils.rkt"
syntax/struct syntax/parse racket/function racket/match racket/list syntax/id-set
racket/format syntax/id-table
(prefix-in c: (contract-req))
"../rep/type-rep.rkt"
"../rep/type-constr.rkt"
"../rep/free-variance.rkt"
... |
b09b09d1f9bb57fc74f9bc946dd4d54b1955ae459ee2cb903b53737b0ba99d99 | PLTools/GT | expander.ml |
* Generic Transformers PPX syntax extension .
* Copyright ( C ) 2016 - 2022
* aka Kakadu
* St. Petersburg State University , JetBrains Research
* Generic Transformers PPX syntax extension.
* Copyright (C) 2016-2022
* Dmitrii Kosarev aka Kakadu
* St.Petersburg State University, JetBrains Resear... | null | https://raw.githubusercontent.com/PLTools/GT/62d1a424a3336f2317ba67e447a9ff09d179b583/common/expander.ml | ocaml | almost the same as plugin#get_class_sig
For purely abstract type we can only generate interface
(we don't know methods)
a type alias on toplevel
let's say we have predefined aliases for now
rows go to virtual methods. label goes to inherit fields
a type alias on toplevel
let's say we have predef... |
* Generic Transformers PPX syntax extension .
* Copyright ( C ) 2016 - 2022
* aka Kakadu
* St. Petersburg State University , JetBrains Research
* Generic Transformers PPX syntax extension.
* Copyright (C) 2016-2022
* Dmitrii Kosarev aka Kakadu
* St.Petersburg State University, JetBrains Resear... |
56fc68f4a1928fea55d466726a88d1718e3eda4f69aedded9319673bddc6f002 | arttuka/reagent-material-ui | severe_cold_outlined.cljs | (ns reagent-mui.icons.severe-cold-outlined
"Imports @mui/icons-material/SevereColdOutlined as a Reagent component."
(:require-macros [reagent-mui.util :refer [create-svg-icon e]])
(:require [react :as react]
["@mui/material/SvgIcon" :as SvgIcon]
[reagent-mui.util]))
(def severe-cold-outli... | null | https://raw.githubusercontent.com/arttuka/reagent-material-ui/c7cd0d7c661ab9df5b0aed0213a6653a9a3f28ea/src/icons/reagent_mui/icons/severe_cold_outlined.cljs | clojure | (ns reagent-mui.icons.severe-cold-outlined
"Imports @mui/icons-material/SevereColdOutlined as a Reagent component."
(:require-macros [reagent-mui.util :refer [create-svg-icon e]])
(:require [react :as react]
["@mui/material/SvgIcon" :as SvgIcon]
[reagent-mui.util]))
(def severe-cold-outli... | |
dfa72e80870c488e0072b8718fd495154503f236c8db5c72fa498631d3bc0a08 | thicksteadTHpp/Obvius | fileio.lisp | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; File: fileio.lisp
Author :
;;; Description: image file loading and saving
;;; Creation Date: summer '88
;;; ----------------------------------------------------------------
Object - Based Vision and Image Understanding Sys... | null | https://raw.githubusercontent.com/thicksteadTHpp/Obvius/9a91673609def033539c9ebaf098e8f11eb0df6e/obvius_operations/fileio.lisp | lisp |
File: fileio.lisp
Description: image file loading and saving
Creation Date: summer '88
----------------------------------------------------------------
parse the descriptor file of a datfile directory.
Filename, directory, and path utilities:
Definitions for directory-p, directory-path, trim-right-delimit... | Author :
Object - Based Vision and Image Understanding System ( OBVIUS ) ,
Copyright 1988 , Vision Science Group , Media Laboratory ,
Massachusetts Institute of Technology .
(in-package :obvius)
(export '(load-image save-image save-picture load-image-sequence))
* * * This badl... |
98568a4c9fdd5143f6af795a609877fece4f5f48fdd9be058253946449c489ec | zippy/anansi | core.cljs | (ns ss.core
(:require [clojure.browser.dom :as dom]
[cljs.reader :as reader]
[clojure.browser.repl :as repl]
[ss.debug :as debug]
[ss.utils :as u]
[ss.ceptr :as ceptr]
[ss.state :as s]
[ss.dom-helpers :as d]
[ss.streamscap... | null | https://raw.githubusercontent.com/zippy/anansi/881aa279e5e7836f3002fc2ef7623f2ee1860c9a/public/ss/src/core.cljs | clojure | (ns ss.core
(:require [clojure.browser.dom :as dom]
[cljs.reader :as reader]
[clojure.browser.repl :as repl]
[ss.debug :as debug]
[ss.utils :as u]
[ss.ceptr :as ceptr]
[ss.state :as s]
[ss.dom-helpers :as d]
[ss.streamscap... | |
2b41e61e8da1420f3e2660015dedc95e4d2261b244d067c46897e4389a734d73 | samrat/ecstatic | config.clj | {:site-name "Ecstatic Documentation"
:site-url "?"
:site-description "Documentation and Example for Ecstatic"
:site-author "Samrat Man Singh, Karl Heinrichmeyer"}
| null | https://raw.githubusercontent.com/samrat/ecstatic/ee7e33eef6baec1a4f0b80453c1c477058e0a707/doc/src/config.clj | clojure | {:site-name "Ecstatic Documentation"
:site-url "?"
:site-description "Documentation and Example for Ecstatic"
:site-author "Samrat Man Singh, Karl Heinrichmeyer"}
| |
00b674178aadf58b5a4718755875022f09aa8c91e7130ba250f070dcf15fb4dc | TrustInSoft/tis-interpreter | from_register_gui.mli | Modified by TrustInSoft
(**************************************************************************)
(* *)
This file is part of Frama - C.
(* ... | null | https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/from/from_register_gui.mli | ocaml | ************************************************************************
alternatives)
... | Modified by TrustInSoft
This file is part of Frama - C.
Copyright ( C ) 2007 - 2015
CEA ( Commissariat à l'énergie atomique et aux énergies
Lesser General Public License as published by the Free Softwa... |
8c4c074c08ed8726c8467a31132b8cf23bac0847933330827b65020e5a2ad36d | nlamirault/cl-geonames | conditions.lisp | -*- Mode : LISP ; Syntax : ANSI - Common - Lisp ; Base : 10 -*-
;;;; *************************************************************************
;;;; FILE IDENTIFICATION
;;;;
;;;; Name: conditions.lisp
;;;; Purpose: cl-geonames conditions.
Programmer : < >
;;;;
This file , part of cl - geonam... | null | https://raw.githubusercontent.com/nlamirault/cl-geonames/30be2033c6ff99cbac1d690c08556ba080f01f76/src/conditions.lisp | lisp | Syntax : ANSI - Common - Lisp ; Base : 10 -*-
*************************************************************************
FILE IDENTIFICATION
Name: conditions.lisp
Purpose: cl-geonames conditions.
cl-geonames users are granted the rights to distribute and use this software
(), also known as the L... |
Programmer : < >
This file , part of cl - geonames , is Copyright ( c ) 2007 by
as governed by the terms of the Lisp Lesser GNU Public License
(in-package :cl-geonames)
(define-condition geonames-error (simple-error)
()
(:documentation "Main Geonames error."))
(define-condition geonames-query... |
991cdb3a9938b5e8019c673c17733075c3bd528bd36b794c85bee450566c0bc6 | exercism/common-lisp | character-study.lisp | (defpackage :character-study
(:use :cl)
(:export
:compare-chars
:size-of-char
:change-size-of-char
:type-of-char))
(in-package :character-study)
(defun compare-chars (char1 char2))
(defun size-of-char (char))
(defun change-size-of-char (char wanted-size))
(defun type-of-char (char))
| null | https://raw.githubusercontent.com/exercism/common-lisp/041cfc0f497f0f99dc96e76f1c24275296134297/exercises/concept/character-study/character-study.lisp | lisp | (defpackage :character-study
(:use :cl)
(:export
:compare-chars
:size-of-char
:change-size-of-char
:type-of-char))
(in-package :character-study)
(defun compare-chars (char1 char2))
(defun size-of-char (char))
(defun change-size-of-char (char wanted-size))
(defun type-of-char (char))
| |
e0de69565a86c5c2772c82026748009d732b7435c3f1b00536dc1a6471bed67a | exercism/babashka | prime_factors_test.clj | (ns prime-factors-test
(:require [clojure.test :refer [deftest is]]
prime-factors))
(deftest one
(is (= [] (prime-factors/of 1))))
(deftest two
(is (= [2] (prime-factors/of 2))))
(deftest three
(is (= [3] (prime-factors/of 3))))
(deftest four
(is (= [2, 2] (prime-factors/of 4))))
(deftest six... | null | https://raw.githubusercontent.com/exercism/babashka/7375f1938ff95b242320313eaeedb8eca31a1b5b/exercises/practice/prime-factors/test/prime_factors_test.clj | clojure | (ns prime-factors-test
(:require [clojure.test :refer [deftest is]]
prime-factors))
(deftest one
(is (= [] (prime-factors/of 1))))
(deftest two
(is (= [2] (prime-factors/of 2))))
(deftest three
(is (= [3] (prime-factors/of 3))))
(deftest four
(is (= [2, 2] (prime-factors/of 4))))
(deftest six... | |
97844176b46f9ca27f46f3b7c305597235461904103de3e4fb8b2825fb39c82d | chefy-io/clojure-katas | levenshtein.clj | (ns clojure-katas.levenshtein
(:require [clojure-katas.core :as core]))
(core/defproblem levenshtein
"Compute the amount of difference between two sequences,
also known as edit distance. For example, the edit distance
between kitten and sitten is 1 because we can simply replace
the edit distance between hi... | null | https://raw.githubusercontent.com/chefy-io/clojure-katas/81efe02dfe5add9e10146e10dd2b34f072f7686e/src/clojure_katas/levenshtein.clj | clojure | (ns clojure-katas.levenshtein
(:require [clojure-katas.core :as core]))
(core/defproblem levenshtein
"Compute the amount of difference between two sequences,
also known as edit distance. For example, the edit distance
between kitten and sitten is 1 because we can simply replace
the edit distance between hi... | |
f036cb2d7bedd0dd7afdf9f52288ad429495236ec3fe9411324e04ca80ed7c2d | synduce/Synduce | Witnesses.ml | open Common
open ProblemDefs
open Base
open Env
open Lang
open Lang.Term
open Projection
open SmtInterface
open Smtlib
open Utils
open Lwt.Syntax
(* ============================================================================================= *)
(* CHECKING UNREALIZABILITY ... | null | https://raw.githubusercontent.com/synduce/Synduce/42d970faa863365f10531b19945cbb5cfb70f134/src/se2gis/Witnesses.ml | ocaml | =============================================================================================
CHECKING UNREALIZABILITY
=============================================================================================
Remap the names to ids of the o... | open Common
open ProblemDefs
open Base
open Env
open Lang
open Lang.Term
open Projection
open SmtInterface
open Smtlib
open Utils
open Lwt.Syntax
let smt_unsatisfiability_check
~(ctx : Context.t)
(unknowns : VarSet.t)
(eqns : equation list)
: unit Lwt.t
=
let free_vars =
let f fvs eqn =
... |
4f193f4a1f6970fa9e067e57698dc7096b787370b014c2136891a7e8cafd1489 | BinaryAnalysisPlatform/bap | x86_legacy_operands.mli | Copyright ( C ) 2017 ForAllSecure , Inc. - All Rights Reserved .
open Core_kernel[@@warning "-D"]
module Dis = Bap.Std.Disasm_expert.Basic
module Insn = Dis.Insn
val r :
f:('a ->
Bap.Std.reg -> ('b, Error.t) Result.t) ->
'a ->
(Dis.asm, Dis.kinds) Insn.t ->
('b, Error.t) Result.t
val i :
f:('a ->
... | null | https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/253afc171bbfd0fe1b34f6442795dbf4b1798348/plugins/x86/x86_legacy_operands.mli | ocaml | Copyright ( C ) 2017 ForAllSecure , Inc. - All Rights Reserved .
open Core_kernel[@@warning "-D"]
module Dis = Bap.Std.Disasm_expert.Basic
module Insn = Dis.Insn
val r :
f:('a ->
Bap.Std.reg -> ('b, Error.t) Result.t) ->
'a ->
(Dis.asm, Dis.kinds) Insn.t ->
('b, Error.t) Result.t
val i :
f:('a ->
... | |
bbc25bc5be83af90fa24db7ea47b29f303aa0313a1f1193c1145fe6ffac50bfe | sky-big/RabbitMQ | dynamic_ha.erl | The contents of this file are subject to the Mozilla Public License
%% Version 1.1 (the "License"); you may not use this file except in
%% compliance with the License. You may obtain a copy of the License
%% at /
%%
Software distributed under the License is distributed on an " AS IS "
%% basis, WITHOUT WARRANTY OF ... | null | https://raw.githubusercontent.com/sky-big/RabbitMQ/d7a773e11f93fcde4497c764c9fa185aad049ce2/plugins-src/rabbitmq-test/test/src/dynamic_ha.erl | erlang | Version 1.1 (the "License"); you may not use this file except in
compliance with the License. You may obtain a copy of the License
at /
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
the License for the specific language governing rights and
limitations under the License.
rabbit_tests:te... | The contents of this file are subject to the Mozilla Public License
Software distributed under the License is distributed on an " AS IS "
The Original Code is RabbitMQ .
The Initial Developer of the Original Code is GoPivotal , Inc.
Copyright ( c ) 2007 - 2014 GoPivotal , Inc. All rights reserved .
-module(... |
9b492b7156d3d563d758b73fa5e17f29f29d764f9927f33bcc42e40ec0898f7c | elastic/eui-cljs | does_column_have_an_initial_width.cljs | (ns eui.does-column-have-an-initial-width
(:require ["@elastic/eui/lib/components/datagrid/utils/col_widths.js" :as eui]))
(def doesColumnHaveAnInitialWidth eui/doesColumnHaveAnInitialWidth)
(def useColumnWidths eui/useColumnWidths)
(def useDefaultColumnWidth eui/useDefaultColumnWidth)
| null | https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/does_column_have_an_initial_width.cljs | clojure | (ns eui.does-column-have-an-initial-width
(:require ["@elastic/eui/lib/components/datagrid/utils/col_widths.js" :as eui]))
(def doesColumnHaveAnInitialWidth eui/doesColumnHaveAnInitialWidth)
(def useColumnWidths eui/useColumnWidths)
(def useDefaultColumnWidth eui/useDefaultColumnWidth)
| |
56fbb4ddb2d231aeb6f02fd519318f1643f7d750b47c28a294422c26be9ba215 | appleby/99-lisp-problems | p70b.lisp | ;;;; (*) Check whether a given expression represents a multiway tree
;;;;
;;;; Write a function istree which succeeds if and only if its
;;;; argument is a Lisp expression representing a multiway tree.
;;;;
;;;; Example:
* ( istree ' ( a ( f g ) c ( b d e ) ) )
;;;; T
(in-package :99-problems)
(defun is-mw-tree (lis... | null | https://raw.githubusercontent.com/appleby/99-lisp-problems/a12b2a585ac5af06f456f844d308bbada78e647c/p70b.lisp | lisp | (*) Check whether a given expression represents a multiway tree
Write a function istree which succeeds if and only if its
argument is a Lisp expression representing a multiway tree.
Example:
T | * ( istree ' ( a ( f g ) c ( b d e ) ) )
(in-package :99-problems)
(defun is-mw-tree (list)
(cond ((null list) nil)
((symbolp list) t)
((listp list)
(and (> (length list) 1)
(symbolp (car list))
(loop for child in (cdr list) always (is-mw-tree child))))
(t nil)))
(define-test is-mw-tree-test
... |
7da8c7a82f039cc96c9f38afe70b7cfa999f5b6831c366658c07296da66e4a1b | maxlapshin/nfs3 | nfs_prot3_xdr.erl | %%
%% nfs_prot3_xdr was generated by erpcgen (do not edit)
date : Dec 2 23:48:18 2012
%%
-module(nfs_prot3_xdr).
-export([enc_uint64/1, dec_uint64/2]).
-export([enc_int64/1, dec_int64/2]).
-export([enc_uint32/1, dec_uint32/2]).
-export([enc_int32/1, dec_int32/2]).
-export([enc_filename3/1, dec_filename3/2]).
-export(... | null | https://raw.githubusercontent.com/maxlapshin/nfs3/a10fee483ec2203b1eb1d87b87d5b04c838f6ffa/src/nfs_prot3_xdr.erl | erlang |
nfs_prot3_xdr was generated by erpcgen (do not edit)
| date : Dec 2 23:48:18 2012
-module(nfs_prot3_xdr).
-export([enc_uint64/1, dec_uint64/2]).
-export([enc_int64/1, dec_int64/2]).
-export([enc_uint32/1, dec_uint32/2]).
-export([enc_int32/1, dec_int32/2]).
-export([enc_filename3/1, dec_filename3/2]).
-export([enc_nfspath3/1, dec_nfspath3/2]).
-export([enc_fileid3/1, dec... |
ae73089501b39ebd43c0c25342765c751d91511b82a0893060755417923dfb92 | agustinmista/mdviewer | List.hs | module List (runList) where
import Types
runList :: Styles -> IO ()
runList styles = do
putStrLn "Available styles:"
mapM_ (putStrLn . (" * "++)) (listStyles styles)
| null | https://raw.githubusercontent.com/agustinmista/mdviewer/833ceabaf6ba0a44e503107b15b1bdb6f61932f0/app/List.hs | haskell | module List (runList) where
import Types
runList :: Styles -> IO ()
runList styles = do
putStrLn "Available styles:"
mapM_ (putStrLn . (" * "++)) (listStyles styles)
| |
57593b312c9f96b1c5b53b3bdb0ab5fab77135942da80b48fd049c61b68012f5 | wangsix/VMO_repeated_themes_discovery | occurrences.lisp |
;(in-package :common-lisp-user)
(load
(merge-pathnames
(make-pathname
:directory '(:relative "File conversion")
:name "csv-files"
:type "lisp")
*lisp-code-root*))
(load
(merge-pathnames
(make-pathname
:directory '(:relative "File conversion")
:name "director-musices"
:type "lisp")
*lisp-co... | null | https://raw.githubusercontent.com/wangsix/VMO_repeated_themes_discovery/0082b3c55e64ed447c8b68bcb705fd6da8e3541f/JKUPDD-Aug2013/groundTruth/mozartK282Mvt2/polyphonic/repeatedPatterns/barlowAndMorgensternRevised/C/occurrences/script/occurrences.lisp | lisp | (in-package :common-lisp-user)
Load the piece and the pattern.
Define all occurrences.
occi. Save as csv, lisp, and midi.
Definition of ontime-pitch pairs.
Definition for MIDI file.
Save MIDI file (have to alter any anacrusis).
Save lisp-format text file.
Save CSV. |
(load
(merge-pathnames
(make-pathname
:directory '(:relative "File conversion")
:name "csv-files"
:type "lisp")
*lisp-code-root*))
(load
(merge-pathnames
(make-pathname
:directory '(:relative "File conversion")
:name "director-musices"
:type "lisp")
*lisp-code-root*))
(load
(merge-pathnam... |
4078fddea3ec26cdd8ef6f3b029375f734daa62de28cf0e8fbd996d21923ff5f | overtone/overtone | blues.clj | (ns overtone.examples.compositions.blues
(:use overtone.live)
(:use [overtone.inst synth drum]))
(definst beep [note 60 amp 0.2]
(let [freq (midicps note)
src (sin-osc freq)
env (env-gen (perc 0.3 2) :action FREE)]
(* amp src env)))
(def ps (atom []))
(defn play-blues [instr pitch-classes]
... | null | https://raw.githubusercontent.com/overtone/overtone/02f8cdd2817bf810ff390b6f91d3e84d61afcc85/src/overtone/examples/compositions/blues.clj | clojure | TODO: Strum the chord
(blue-beep)
Be sure to try moving the mouse around...
(stop) | (ns overtone.examples.compositions.blues
(:use overtone.live)
(:use [overtone.inst synth drum]))
(definst beep [note 60 amp 0.2]
(let [freq (midicps note)
src (sin-osc freq)
env (env-gen (perc 0.3 2) :action FREE)]
(* amp src env)))
(def ps (atom []))
(defn play-blues [instr pitch-classes]
... |
1e9ed7bea8aca244d2d48fc694b9b595a272018493640fcbc8f2cae4a9502ed5 | TOTBWF/teenytt | ConcreteSyntax.hs | | The Concrete Syntax Tree for TeenyTT .
module TeenyTT.Elaborator.ConcreteSyntax
( Term
, Term_(..)
, Cell(..)
, Case(..)
, Pattern(..)
, PatternArg(..)
) where
import GHC.Generics
import Control.DeepSeq
import Data.Foldable
import Data.List.NonEmpty (NonEmpty(..))
import Data.Text (Text)
import Te... | null | https://raw.githubusercontent.com/TOTBWF/teenytt/a45162254b4b3c056b1607f4759bd608fd355165/src/TeenyTT/Elaborator/ConcreteSyntax.hs | haskell | ------------------------------------------------------------------------------
Display
[NOTE: Displaying Concrete Syntax]
We do something a little bit evil here, and use 'pretty' on identifiers
instead of 'bindVar'. This is fine for the concrete syntax, as we don't have
any tricky shadowing situations like we do ... | | The Concrete Syntax Tree for TeenyTT .
module TeenyTT.Elaborator.ConcreteSyntax
( Term
, Term_(..)
, Cell(..)
, Case(..)
, Pattern(..)
, PatternArg(..)
) where
import GHC.Generics
import Control.DeepSeq
import Data.Foldable
import Data.List.NonEmpty (NonEmpty(..))
import Data.Text (Text)
import Te... |
7b7895bbda72e848e33e91a4582ca02fc0cf281e89c01abce6f67caea5f129b9 | re-ops/re-core | core.clj | (ns re-mote.core)
| null | https://raw.githubusercontent.com/re-ops/re-core/93596efd4f3068d57e8140106da60011a6569310/src/re_mote/core.clj | clojure | (ns re-mote.core)
| |
4d1f79d3868ea4dfb3fbdf5db6a5d1a0764874f111d9b7cf5c45f9f36039dfda | kawasima/back-channeling | api.clj | (ns back-channeling.endpoint.api
(:require [clojure.data.json :as json]
[clojure.tools.logging :as log]
[clj-time.format :as time-fmt]
[clj-time.coerce :refer [from-date to-date]]
[compojure.core :refer [context ANY]]
[compojure.coercions :refer :all]
... | null | https://raw.githubusercontent.com/kawasima/back-channeling/05d06278cedc35e4e7866384c2903d3c903a19fc/src/clj/back_channeling/endpoint/api.clj | clojure | Only :post-to-existing? = false pattern. | (ns back-channeling.endpoint.api
(:require [clojure.data.json :as json]
[clojure.tools.logging :as log]
[clj-time.format :as time-fmt]
[clj-time.coerce :refer [from-date to-date]]
[compojure.core :refer [context ANY]]
[compojure.coercions :refer :all]
... |
18cb8368ccac6da18352561a2dab99939ced625516262cdbcbc1af2b5a1d34ff | ocaml-flambda/ocaml-jst | array_comprehensions_side_effects.ml | (* TEST
flags = "-extension comprehensions_experimental"
*)
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * ATTENTION ! * * * * * * * * *
... | null | https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/b0a649516b33b83b7290c6fa5d7cb4c8c343df8c/testsuite/tests/comprehensions/array_comprehensions_side_effects.ml | ocaml | TEST
flags = "-extension comprehensions_experimental"
****************************************************************************
*** Test the order of evaluation *** |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * ATTENTION ! * * * * * * * * *
* ... |
670ce798c12f65a771c418030d854ca476527301817187e4c7f3cde302929d7f | srcnalt/moppu | packages.lisp | (cl:defpackage :moppu
(:use :cl)
(:export #:run))
| null | https://raw.githubusercontent.com/srcnalt/moppu/19f2800b4d69651755df929d306cc4f5f701a506/src/packages.lisp | lisp | (cl:defpackage :moppu
(:use :cl)
(:export #:run))
| |
9b6ddfe0dc0e08d69e88be6f979e20d82ec67561966836fe416f2e70d1e3b8c6 | cdfa/frugel | Extra.hs | # LANGUAGE CPP #
# LANGUAGE TypeApplications #
module Language.Javascript.JSaddle.Warp.Extra where
#ifndef ghcjs_HOST_OS
import Language.Javascript.JSaddle.Run ( syncPoint )
import Language.Javascript.JSaddle.Types ( JSM )
import Language.Javascript.JSaddle.WebSockets hiding ( debug )
import Miso.Dev ... | null | https://raw.githubusercontent.com/cdfa/frugel/9c59f2281c06bfa5e13bd575866d165dbc0ce411/app/Language/Javascript/JSaddle/Warp/Extra.hs | haskell | Split if to make floskell work | # LANGUAGE CPP #
# LANGUAGE TypeApplications #
module Language.Javascript.JSaddle.Warp.Extra where
#ifndef ghcjs_HOST_OS
import Language.Javascript.JSaddle.Run ( syncPoint )
import Language.Javascript.JSaddle.Types ( JSM )
import Language.Javascript.JSaddle.WebSockets hiding ( debug )
import Miso.Dev ... |
73b230cd2c64e126b0ff7f9ddf5e016e4569b867ded345908635be388881d47a | marigold-dev/mankavar | XOption.ml | let value' : (unit -> 'a) -> 'a option -> 'a = fun f opt ->
match opt with
| None -> f ()
| Some x -> x
let fold' ~none ~some = function
| None -> none ()
| Some x -> some x
let fold'' none some = function
| None -> none ()
| Some x -> some x
let bind' f x = Option.bind x f
module GADT = struct
type full
... | null | https://raw.githubusercontent.com/marigold-dev/mankavar/67226135a82f59e07d82b64bee0872964dd3bd7c/src/helpers/XOption.ml | ocaml | let value' : (unit -> 'a) -> 'a option -> 'a = fun f opt ->
match opt with
| None -> f ()
| Some x -> x
let fold' ~none ~some = function
| None -> none ()
| Some x -> some x
let fold'' none some = function
| None -> none ()
| Some x -> some x
let bind' f x = Option.bind x f
module GADT = struct
type full
... | |
913be837da263df8214f2db8e6a9449dc90eb0daba75e134f20e3203f1be2112 | verement/etamoo | Hash.hs |
{-# LANGUAGE OverloadedStrings #-}
module MOO.Builtins.Hash (hashBytesUsing) where
import Crypto.Hash
( HashAlgorithm, Digest, hash
, MD2(MD2), MD4(MD4), MD5(MD5), RIPEMD160(RIPEMD160)
, SHA1(SHA1), SHA224(SHA224), SHA256(SHA256), SHA384(SHA384), SHA512(SHA512)
, SHA512t_224(SHA512t_224), SHA512t_256(SHA512t... | null | https://raw.githubusercontent.com/verement/etamoo/af65e2581ab5d093c9490f43692ef89bafc2efc1/src/MOO/Builtins/Hash.hs | haskell | # LANGUAGE OverloadedStrings #
SHA-1
SHA-2
SHA-3
Others |
module MOO.Builtins.Hash (hashBytesUsing) where
import Crypto.Hash
( HashAlgorithm, Digest, hash
, MD2(MD2), MD4(MD4), MD5(MD5), RIPEMD160(RIPEMD160)
, SHA1(SHA1), SHA224(SHA224), SHA256(SHA256), SHA384(SHA384), SHA512(SHA512)
, SHA512t_224(SHA512t_224), SHA512t_256(SHA512t_256)
, SHA3_224(SHA3_224), SHA3_... |
6b9e01e5eef904811e1f482a3040723c012ff4142086d405f6577520b3c416ed | aratare-jp/shinsetsu | bookmark.cljs | (ns shinsetsu.mutations.bookmark
(:require
[medley.core :refer [dissoc-in]]
[com.fulcrologic.fulcro.mutations :refer [defmutation]]
[com.fulcrologic.fulcro.components :as comp]
[com.fulcrologic.fulcro.algorithms.merge :as merge]
[com.fulcrologic.fulcro.algorithms.form-state :as fs]
[com.fulcro... | null | https://raw.githubusercontent.com/aratare-jp/shinsetsu/9375d0ccdd6eb422a8ea571c63536265a52a41fd/src/cljs/shinsetsu/mutations/bookmark.cljs | clojure | Check if this mutation is fired by a move op or not. | (ns shinsetsu.mutations.bookmark
(:require
[medley.core :refer [dissoc-in]]
[com.fulcrologic.fulcro.mutations :refer [defmutation]]
[com.fulcrologic.fulcro.components :as comp]
[com.fulcrologic.fulcro.algorithms.merge :as merge]
[com.fulcrologic.fulcro.algorithms.form-state :as fs]
[com.fulcro... |
39011cf0743cdc3c4547062d4cd99464b1bcc2169341f50de6d17d0bc8f3cb0a | bracevac/corrl | JSON.hs | ------------------------------------------------------------------------------
Copyright 2012 Microsoft Corporation .
--
-- This is free software; you can redistribute it and/or modify it under the
terms of the Apache License , Version 2.0 . A copy of the License can be
found in the file " license.txt " at the ro... | null | https://raw.githubusercontent.com/bracevac/corrl/416cd107087ac070a6bcabf8e7937211b6f415bb/koka/src/Lib/JSON.hs | haskell | ----------------------------------------------------------------------------
This is free software; you can redistribute it and/or modify it under the
---------------------------------------------------------------------------
---------------------------------------------------------
JSON data
----------------------... | Copyright 2012 Microsoft Corporation .
terms of the Apache License , Version 2.0 . A copy of the License can be
found in the file " license.txt " at the root of this distribution .
module Lib.JSON( readJSON, readJSONFromFile,
parseJSON, parseJSONFromFile,
JsValue(..), JsObject,
... |
f57bc9ea71bd8235cdbecaba22a432cd41dea52803f5b69d6ebded90b0ec0082 | Clozure/ccl-tests | array.lsp | ;-*- Mode: Lisp -*-
Author :
Created : Sat Jan 25 08:46:58 2003
;;;; Contains: Tests of the ARRAY type specifier
(in-package :cl-test)
;;; Tests of array by itself
(deftest array.1.1
(notnot-mv (typep #() 'array))
t)
(deftest array.1.2
(notnot-mv (typep #0aX 'array))
t)
(deftest array.1.3
... | null | https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/array.lsp | lisp | -*- Mode: Lisp -*-
Contains: Tests of the ARRAY type specifier
Tests of array by itself
Tests of (array *)
Tests of (array * ())
The '1' indicates rank, so this is equivalent to 'vector'
Tests of (array * 0)
Tests of (array * *)
Testing '(array * (--)) | Author :
Created : Sat Jan 25 08:46:58 2003
(in-package :cl-test)
(deftest array.1.1
(notnot-mv (typep #() 'array))
t)
(deftest array.1.2
(notnot-mv (typep #0aX 'array))
t)
(deftest array.1.3
(notnot-mv (typep #2a(()) 'array))
t)
(deftest array.1.4
(notnot-mv (typep #(1 2 3) 'array))
t)... |
d3a334ec27e5b6b340645b3843e088d5317841ff41109a7f5f44d58a77ccc5a2 | well-typed/large-records | HL100.hs | # LANGUAGE DataKinds #
module Common.HListOfSize.HL100 where
import Bench.Types
import Bench.HList
type ExampleFields = '[
0
T 00
, T 01
, T 02
, T 03
, T 04
, T 05
, T 06
, T 07
, T 08
, T 09
1
, T 10
, T 11
, T 12
, T 13
, T 14
, T 15
, T 16... | null | https://raw.githubusercontent.com/well-typed/large-records/551f265845fbe56346988a6b484dca40ef380609/large-records-benchmarks/bench/experiments/Common/HListOfSize/HL100.hs | haskell | # LANGUAGE DataKinds #
module Common.HListOfSize.HL100 where
import Bench.Types
import Bench.HList
type ExampleFields = '[
0
T 00
, T 01
, T 02
, T 03
, T 04
, T 05
, T 06
, T 07
, T 08
, T 09
1
, T 10
, T 11
, T 12
, T 13
, T 14
, T 15
, T 16... | |
72ccb7f817ffb7ae54500137db67b7fd6ee3910c5058aa8e3bea61b496a48c87 | yawaramin/re-web | CacheControl.ml | type privately = {
must_revalidate : bool option;
max_age : int option;
}
type publicly = {
no_transform : bool option;
proxy_revalidate : bool option;
s_maxage : int option;
}
type t =
| No_store
| No_cache
| Private of privately
| Public of privately * publicly
let private_ ?must_revalidate ?max_age () =... | null | https://raw.githubusercontent.com/yawaramin/re-web/7b407c1b98ddfac32a81c32481c40cc535c7452a/ReWeb/Header/CacheControl.ml | ocaml | type privately = {
must_revalidate : bool option;
max_age : int option;
}
type publicly = {
no_transform : bool option;
proxy_revalidate : bool option;
s_maxage : int option;
}
type t =
| No_store
| No_cache
| Private of privately
| Public of privately * publicly
let private_ ?must_revalidate ?max_age () =... | |
cc0c22d2242b95a42fe7129a59c18f4779d02086d82e1ff4ea9fa4911b22f1b2 | duckyuck/flare | atom.cljc | (ns flare.atom)
(defn report-atom-diff [{:keys [a b]} & rest]
[(str "expected " (pr-str a) ", was " (pr-str b))])
(defn diff-atom
[a b _]
[{:type :atom
:a a
:b b}])
| null | https://raw.githubusercontent.com/duckyuck/flare/4d983fda75fab718b5ec0bf4e3f8ab4bfa1a2080/src/flare/atom.cljc | clojure | (ns flare.atom)
(defn report-atom-diff [{:keys [a b]} & rest]
[(str "expected " (pr-str a) ", was " (pr-str b))])
(defn diff-atom
[a b _]
[{:type :atom
:a a
:b b}])
| |
838d29ff2710e7e0df3d722bc72bb9980abc8302783de5736864d6e1a8a35fc2 | ericclack/overtone-loops | loops_test.clj | (ns overtone-loops.loops-test
(:use [overtone.live]
[overtone.inst.piano])
(:require [clojure.test :refer :all]
[overtone-loops.loops :refer :all]))
;; None yet, see utils_test
| null | https://raw.githubusercontent.com/ericclack/overtone-loops/54b0c230c1e6bd3d378583af982db4e9ae4bda69/test/overtone_loops/loops_test.clj | clojure | None yet, see utils_test | (ns overtone-loops.loops-test
(:use [overtone.live]
[overtone.inst.piano])
(:require [clojure.test :refer :all]
[overtone-loops.loops :refer :all]))
|
030b0d01e93001571b64de7344d1c0b1af291c29948c2351a3de94cdc273d628 | stylewarning/cl-permutation | extra-functions.lisp | ;;;; extra-functions.lisp
Copyright ( c ) 2012
;;; This file contains extra or experimental functions which are not
;;; officially a part of the API.
(in-package #:cl-permutation)
(defun perm-extend (perm &optional (n 1))
"Extend a permutation PERM"
(assert (plusp n))
(perm-compose (perm-identi... | null | https://raw.githubusercontent.com/stylewarning/cl-permutation/631b17541ad9fb5e2fbf89b09bc0d5a98d718e1c/src/extra-functions.lisp | lisp | extra-functions.lisp
This file contains extra or experimental functions which are not
officially a part of the API.
Here, we are going to do it the ugly way.
| Copyright ( c ) 2012
(in-package #:cl-permutation)
(defun perm-extend (perm &optional (n 1))
"Extend a permutation PERM"
(assert (plusp n))
(perm-compose (perm-identity (+ (perm-size perm) n))
perm))
(defun last-to-position (size new-pos)
"Create a permutation that will perm... |
bd39ec1de50f6ebe3a376480308d67ed8cb93e15269be3daedc0961f207345ae | tfausak/witch | Lift.hs | {-# LANGUAGE ExplicitForAll #-}
module Witch.Lift where
import qualified Data.Typeable as Typeable
import qualified Language.Haskell.TH.Syntax as TH
import qualified Witch.TryFrom as TryFrom
import qualified Witch.Utility as Utility
| This is like ' Utility.unsafeFrom ' except that it works at compile time
-- rath... | null | https://raw.githubusercontent.com/tfausak/witch/790ef60ea7d562ba8671275ca83be0667bbb1246/source/library/Witch/Lift.hs | haskell | # LANGUAGE ExplicitForAll #
rather than runtime.
> -- Avoid this:
>
> -- Prefer this:
rather than runtime.
> -- Avoid this:
> unsafeInto @t "some literal"
>
> -- Prefer this:
> $$(liftedInto @t "some literal") |
module Witch.Lift where
import qualified Data.Typeable as Typeable
import qualified Language.Haskell.TH.Syntax as TH
import qualified Witch.TryFrom as TryFrom
import qualified Witch.Utility as Utility
| This is like ' Utility.unsafeFrom ' except that it works at compile time
> unsafeFrom @s " some literal "
> ... |
0983e86616619adea14e39bee662907525b643503d56e13b8e149fefd9baa183 | JacquesCarette/Drasil | DocumentLanguage.hs | {-# Language TupleSections #-}
---------------------------------------------------------------------------
-- | Start the process of moving away from Document as the main internal
-- representation of information, to something more informative.
-- Over time, we'll want to have a cleaner separation, but doing that
-- al... | null | https://raw.githubusercontent.com/JacquesCarette/Drasil/c00990e67f1072c0ae5b34847d0d8ff7c452af71/code/drasil-docLang/lib/Drasil/DocumentLanguage.hs | haskell | # Language TupleSections #
-------------------------------------------------------------------------
| Start the process of moving away from Document as the main internal
representation of information, to something more informative.
Over time, we'll want to have a cleaner separation, but doing that
all at once woul... | module Drasil.DocumentLanguage where
import Drasil.DocDecl (SRSDecl, mkDocDesc)
import Drasil.DocumentLanguage.Core (AppndxSec(..), AuxConstntSec(..),
DerivationDisplay(..), DocDesc, DocSection(..), OffShelfSolnsSec(..), GSDSec(..),
GSDSub(..), IntroSec(..), IntroSub(..), LCsSec(..), LFunc(..),
PDSub(..), Proble... |
9a1dcf89f14efb069fc966361ed2bdd913eee54946dbc88d3c8fa07084bfb475 | haskell/aeson | Generic.hs | # LANGUAGE NoImplicitPrelude #
module Typed.Generic (benchmarks, decodeBenchmarks) where
import Prelude.Compat
import Bench
import Data.Aeson hiding (Result)
import qualified Data.Aeson.Decoding as Dec
import qualified Data.ByteString as B
import Data.ByteString.Lazy as L
import Twitter.Generic
import Utils
encodeD... | null | https://raw.githubusercontent.com/haskell/aeson/47c400544dae8ef6428fc61f5e9a239b2a1349d4/benchmarks/bench/Typed/Generic.hs | haskell | # LANGUAGE NoImplicitPrelude #
module Typed.Generic (benchmarks, decodeBenchmarks) where
import Prelude.Compat
import Bench
import Data.Aeson hiding (Result)
import qualified Data.Aeson.Decoding as Dec
import qualified Data.ByteString as B
import Data.ByteString.Lazy as L
import Twitter.Generic
import Utils
encodeD... | |
25ec53ed607446c96a65ab3134fdfe0b0d72eee1249bafc5e300fcbc123b72d2 | eugeneia/athens | derived2.lisp | (in-package :trivia.level2.impl)
patterns defined using level2 matchers and patterns
(defpattern $guard1 (sym options test more-patterns)
"matches against guard1 pattern (form) itself"
(with-gensyms (symopts)
`(list* 'guard1
(guard1 ,symopts t
(preprocess-symopts ,symopts ,sy... | null | https://raw.githubusercontent.com/eugeneia/athens/cc9d456edd3891b764b0fbf0202a3e2f58865cbf/quicklisp/dists/quicklisp/software/trivia-20180711-git/level2/derived2.lisp | lisp | slow, untyped | (in-package :trivia.level2.impl)
patterns defined using level2 matchers and patterns
(defpattern $guard1 (sym options test more-patterns)
"matches against guard1 pattern (form) itself"
(with-gensyms (symopts)
`(list* 'guard1
(guard1 ,symopts t
(preprocess-symopts ,symopts ,sy... |
41d5c5ad67d0106041237012cd809c7325ac982e0ba2d8b26e78b4f36407b891 | well-typed-lightbulbs/ocaml-esp32 | topdirs.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/well-typed-lightbulbs/ocaml-esp32/c24fcbfbee0e3aa6bb71c9b467c60c6bac326cc7/toplevel/topdirs.ml | 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
Toplevel directives
open Format
open Misc
open Longident
open Types
open Cmo_format
open Trace
open To... |
abed7b385e6e8fe62ecdc6d4247f454de5e777696b8fb8c3b785869bd797381e | dyoo/ffi-tutorial | test-f2c.rkt | #lang racket/base
(require "f2c.rkt")
should be zero .
(f2c 32.0)
;; should be .555555.
(f2c 33.0)
Current weather in SLC Utah as of 2013 - 01 - 25 :
(f2c 36.0)
| null | https://raw.githubusercontent.com/dyoo/ffi-tutorial/1efba84503adf4a062c4855225eabe992a06a34f/ffi/tutorial/examples/f2c/test-f2c.rkt | racket | should be .555555. | #lang racket/base
(require "f2c.rkt")
should be zero .
(f2c 32.0)
(f2c 33.0)
Current weather in SLC Utah as of 2013 - 01 - 25 :
(f2c 36.0)
|
37d196203a481c39946388c97fd4af33ccfbf24dcfe236eb513fcb5e80bd465d | Vortecsmaster/EmurgoAcademyPlutusExamples | MathBountyV2o.hs | {-# LANGUAGE DeriveAnyClass #-}
# LANGUAGE DeriveGeneric #
# LANGUAGE FlexibleContexts #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE NoImplicitPrelude #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TemplateHaskell #
# LANGUAGE RecordWildCards #
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilies #
# LANGUAGE TypeOpe... | null | https://raw.githubusercontent.com/Vortecsmaster/EmurgoAcademyPlutusExamples/656f9370ae145b8d1a21cec4712ab9f63703895f/V2_110/MathBounty/src/MathBountyV2o.hs | haskell | # LANGUAGE DeriveAnyClass #
# LANGUAGE OverloadedStrings #
Ledger
import for Serialization
THE ON-CHAIN CODE
As a Short Byte String
As a Serialised Script | # LANGUAGE DeriveGeneric #
# LANGUAGE FlexibleContexts #
# LANGUAGE NoImplicitPrelude #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TemplateHaskell #
# LANGUAGE RecordWildCards #
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilies #
# LANGUAGE TypeOperators #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE DataKinds #
... |
afb57928585e93efd8ed54951b3e04daa2ea94ecd8b1be4cc1ddaa72490a5ca7 | elastic/eui-cljs | eui_text_diff_styles.cljs | (ns eui.eui-text-diff-styles
(:require ["@elastic/eui/lib/components/text_diff/text_diff.styles.js" :as eui]))
(def euiTextDiffStyles eui/euiTextDiffStyles)
| null | https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/eui_text_diff_styles.cljs | clojure | (ns eui.eui-text-diff-styles
(:require ["@elastic/eui/lib/components/text_diff/text_diff.styles.js" :as eui]))
(def euiTextDiffStyles eui/euiTextDiffStyles)
| |
6ef5581677b4f4a40787139d57e7e8dc16279cc750a7979ed47e5cfb7378df76 | c-cube/ocaml-containers | CCFloat.mli | (* This file is free software, part of containers. See file "license" for more details. *)
* Basic operations on floating - point numbers
@since 0.6.1
@since 0.6.1 *)
open CCShims_
type t = float
type fpclass = Stdlib.fpclass =
| FP_normal
| FP_subnormal
| FP_zero
| FP_infinite
| FP_nan
val nan... | null | https://raw.githubusercontent.com/c-cube/ocaml-containers/69f2805f1073c4ebd1063bbd58380d17e62f6324/src/core/CCFloat.mli | ocaml | This file is free software, part of containers. See file "license" for more details.
* [max_value] is Positive infinity. Equal to {!Stdlib.infinity}.
* [min_value] is Negative infinity. Equal to {!Stdlib.neg_infinity}.
* [max_finite_value] is the largest finite float value. Equal to {!Stdlib.max_float}.
* [add x y... |
* Basic operations on floating - point numbers
@since 0.6.1
@since 0.6.1 *)
open CCShims_
type t = float
type fpclass = Stdlib.fpclass =
| FP_normal
| FP_subnormal
| FP_zero
| FP_infinite
| FP_nan
val nan : t
* [ ] is Not a Number ( NaN ) . Equal to { ! } .
val max_value : t
val min_value :... |
d08e34cb00d52a8c147e102c8c62a5fb7de0d95db64c3bf419c121f421c64cfd | sicmutils/sicmutils | series_test.cljc | #_"SPDX-License-Identifier: GPL-3.0"
(ns sicmutils.series-test
(:require [clojure.test :refer [is deftest testing use-fixtures]]
[clojure.test.check.generators :as gen]
[com.gfredericks.test.chuck.clojure-test :refer [checking]]
[same :refer [ish? with-comparator] :include-macros ... | null | https://raw.githubusercontent.com/sicmutils/sicmutils/f181f153f1432e9648206f903282e7cb4cdd9644/test/sicmutils/series_test.cljc | clojure | #_"SPDX-License-Identifier: GPL-3.0"
(ns sicmutils.series-test
(:require [clojure.test :refer [is deftest testing use-fixtures]]
[clojure.test.check.generators :as gen]
[com.gfredericks.test.chuck.clojure-test :refer [checking]]
[same :refer [ish? with-comparator] :include-macros ... | |
be7422a7ef3914a127eebbd7ad8335f823d14d29cb4c89e1698c4eab141fb08a | zadean/xqerl | fn_minutes_from_dateTime_SUITE.erl | -module('fn_minutes_from_dateTime_SUITE').
-include_lib("common_test/include/ct.hrl").
-export([
all/0,
groups/0,
suite/0
]).
-export([
init_per_suite/1,
init_per_group/2,
end_per_group/2,
end_per_suite/1
]).
-export(['fn-minutes-from-dateTime1args-1'/1]).
-export(['fn-minutes-from-dateT... | null | https://raw.githubusercontent.com/zadean/xqerl/1a94833e996435495922346010ce918b4b0717f2/test/fn/fn_minutes_from_dateTime_SUITE.erl | erlang | -module('fn_minutes_from_dateTime_SUITE').
-include_lib("common_test/include/ct.hrl").
-export([
all/0,
groups/0,
suite/0
]).
-export([
init_per_suite/1,
init_per_group/2,
end_per_group/2,
end_per_suite/1
]).
-export(['fn-minutes-from-dateTime1args-1'/1]).
-export(['fn-minutes-from-dateT... | |
ccc5069b3d1d2fbb940eef2853e7de5db3f1e5282051f7a6ab0c6db9242dc801 | jaspervdj/firefly | MouseButtons.hs | --------------------------------------------------------------------------------
module Firefly.Input.MouseButtons
( left
, middle
, right
) where
--------------------------------------------------------------------------------
import Firefly.Input.Internal
--------------------------------... | null | https://raw.githubusercontent.com/jaspervdj/firefly/71e1f5f11293272bedc26444446553a24ee318ad/src/Firefly/Input/MouseButtons.hs | haskell | ------------------------------------------------------------------------------
------------------------------------------------------------------------------
------------------------------------------------------------------------------
# INLINE left #
-------------------------------------------------------------------... | module Firefly.Input.MouseButtons
( left
, middle
, right
) where
import Firefly.Input.Internal
left :: MouseButton
left = MouseButton 1
middle :: MouseButton
middle = MouseButton 2
# INLINE middle #
right :: MouseButton
right = MouseButton 3
# INLINE right #
|
acb95376690cb10a2ce56aa2a4529eba9440bfe19c616fa205aa3b31aefd481d | soulomoon/haskell-katas | Singletons.hs | # LANGUAGE NoImplicitPrelude , GADTs , DataKinds , TypeFamilies , TypeOperators , RankNTypes , DeriveFunctor #
module Katas.Singletons where
import Prelude hiding (take, drop, take, head, tail, index, zipWith, replicate, map, (++))
import qualified Prelude as P (map, take, (++))
import Kyu2.Singletons
import Test.Hs... | null | https://raw.githubusercontent.com/soulomoon/haskell-katas/0861338e945e5cbaadf98138cf8f5f24a6ca8bb3/test/Katas/Singletons.hs | haskell | # LANGUAGE NoImplicitPrelude , GADTs , DataKinds , TypeFamilies , TypeOperators , RankNTypes , DeriveFunctor #
module Katas.Singletons where
import Prelude hiding (take, drop, take, head, tail, index, zipWith, replicate, map, (++))
import qualified Prelude as P (map, take, (++))
import Kyu2.Singletons
import Test.Hs... | |
d760609203f06ee46d89c8c0f20cfa64ce02a4ba12b044363cc8550daa24ff55 | gas2serra/cldk | simple.lisp | (ql:quickload :cldk)
(ql:quickload :cldk-sdl2)
(ql:quickload :cldk-clx)
#|
(log:info (cldk:map-over-servers #'cldk:server-path))
(cldk:map-over-servers #'cldk:destroy-server)
(cldk:map-over-servers #'cldki::kill-server)
(log:info (bt:all-threads))
|#
(defun simple-01 (backend)
(let ((s (cldk:find-display-server :se... | null | https://raw.githubusercontent.com/gas2serra/cldk/63c8322aedac44249ff8f28cd4f5f59a48ab1441/examples/simple.lisp | lisp |
(log:info (cldk:map-over-servers #'cldk:server-path))
(cldk:map-over-servers #'cldk:destroy-server)
(cldk:map-over-servers #'cldki::kill-server)
(log:info (bt:all-threads))
| (ql:quickload :cldk)
(ql:quickload :cldk-sdl2)
(ql:quickload :cldk-clx)
(defun simple-01 (backend)
(let ((s (cldk:find-display-server :server-path backend)))
(let ((num (cldk:screen-num s)))
(format *debug-io* "options: ~S~%" (cldk-driver:driver-options s))
(format *debug-io* "id: ~S~%" (cldk-driver... |
fb2dde3deaf815b81c5ac107513dd8b170c483b02d782f185ff0be3754bf97e6 | jeroanan/rkt-coreutils | nproc.rkt | #lang racket/base
Copyright 2020 , 2021
; See COPYING for details
(provide nproc)
(require nproc)
(define nproc
(λ ()
(get-number-of-processors)))
| null | https://raw.githubusercontent.com/jeroanan/rkt-coreutils/0db0d552652e8bffd1921da63dffb13192e0fb86/src/repl/nproc.rkt | racket | See COPYING for details | #lang racket/base
Copyright 2020 , 2021
(provide nproc)
(require nproc)
(define nproc
(λ ()
(get-number-of-processors)))
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.