_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
5ba77394148d33b3e79afcedb916b76c49681eb6a2c5dcc4640450ee0624582f
JohnnyJayJay/ring-discord-auth
project.clj
(defproject com.github.johnnyjayjay/ring-discord-auth "1.0.1" :description "Fast and secure functions and ring middleware to verify ED-25519-signed Discord interactions" :url "-discord-auth" :license {:name "MIT License" :url "-license.org/"} :repositories [["releases" {:url "" ...
null
https://raw.githubusercontent.com/JohnnyJayJay/ring-discord-auth/b9fda87b208a43cfaf1442764e45613bdcd48175/project.clj
clojure
(defproject com.github.johnnyjayjay/ring-discord-auth "1.0.1" :description "Fast and secure functions and ring middleware to verify ED-25519-signed Discord interactions" :url "-discord-auth" :license {:name "MIT License" :url "-license.org/"} :repositories [["releases" {:url "" ...
b3fafee071b31a7fb588dd1300817c6fab2a52fb0710ca4d7215021a7ee3f56f
benzap/fif
sub_stack.cljc
(ns fif.stack-machine.sub-stack) (defn create-sub-stack [coll] (conj coll '())) (defn push-sub-stack [coll x] (let [f (conj (peek coll) x)] (-> coll pop (conj f)))) (defn pop-sub-stack [coll] (let [f (-> coll peek pop)] (-> coll pop (conj f)))) (defn get-sub-stack [coll] (-> coll peek)) (defn ...
null
https://raw.githubusercontent.com/benzap/fif/972adab8b86c016b04babea49d52198585172fe3/src/fif/stack_machine/sub_stack.cljc
clojure
(ns fif.stack-machine.sub-stack) (defn create-sub-stack [coll] (conj coll '())) (defn push-sub-stack [coll x] (let [f (conj (peek coll) x)] (-> coll pop (conj f)))) (defn pop-sub-stack [coll] (let [f (-> coll peek pop)] (-> coll pop (conj f)))) (defn get-sub-stack [coll] (-> coll peek)) (defn ...
8edc7d31c0d00d4829ba72573eaa887a295afc5246a4f2997925791c995de1b6
Twinside/FontyFruity
HorizontalInfo.hs
# LANGUAGE CPP # module Graphics.Text.TrueType.HorizontalInfo ( HorizontalHeader( .. ) , HorizontalMetricsTable( .. ) , HorizontalMetric( .. ) , getHorizontalMetrics ) where #if !MIN_VERSION_base(4,8,0) import Control.Applicative( (<*>), (<$>) ) #endif import Control.DeepSeq( NFData( .. ) ) import...
null
https://raw.githubusercontent.com/Twinside/FontyFruity/636eeff6547478ba304cdd7b85ecaa24acc65062/src/Graphics/Text/TrueType/HorizontalInfo.hs
haskell
| Describe the "hhea" TrueType table. | Distance from baseline of highest ascender # UNPACK # | Distance from baseline of lowest descender # UNPACK # | typographic line gap # UNPACK # | must be consistent with horizontal metrics # UNPACK # | must be consistent with horizontal metrics # UNPACK # | must be consist...
# LANGUAGE CPP # module Graphics.Text.TrueType.HorizontalInfo ( HorizontalHeader( .. ) , HorizontalMetricsTable( .. ) , HorizontalMetric( .. ) , getHorizontalMetrics ) where #if !MIN_VERSION_base(4,8,0) import Control.Applicative( (<*>), (<$>) ) #endif import Control.DeepSeq( NFData( .. ) ) import...
19bdd9b239bcaa3960baab45210876ba87a2727d712103b5a88e44832b26a094
screenshotbot/screenshotbot-oss
threading.lisp
;;;; Copyright 2018-Present Modern Interpreters 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 /. (defpackage :util/threading (:use #:cl) (:import-from #:easy-macros ...
null
https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/d75accde66375302095f349af0837ed8d14e1312/src/util/threading.lisp
lisp
Copyright 2018-Present Modern Interpreters Inc. If the extras are nil, it probably means some calback is not returning a list mockable version of invoke-debugger Small edge case: SWANK/SLYNK might still try to redelegate to the default debugger which can cause the process to crash
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 /. (defpackage :util/threading (:use #:cl) (:import-from #:easy-macros #:def-easy-macro) (:local-nicknames (#:a #:alexandria...
da86acdc9b37154ca7ac2ab49285d3d4e704bf7904b8c31578f21534671fe20c
syallop/DHT
Core.hs
module DHT.Core ( module Core ) where import DHT.Core.Address as Core import DHT.Core.Bits as Core import DHT.Core.Bucket as Core import DHT.Core.Contact as Core import DHT.Core.ID as Core import DHT.Core.Routing as Core import DHT.Core.Types as Core
null
https://raw.githubusercontent.com/syallop/DHT/a376cf5a423f50212cfd856dcf733eb5177fc00c/DHT/Core.hs
haskell
module DHT.Core ( module Core ) where import DHT.Core.Address as Core import DHT.Core.Bits as Core import DHT.Core.Bucket as Core import DHT.Core.Contact as Core import DHT.Core.ID as Core import DHT.Core.Routing as Core import DHT.Core.Types as Core
f8d5e1c73c2cf66a9a7275ecb118e666894e320930fc2a923233be45c7783136
fulcrologic/fulcro-inspect
devcards.cljs
(ns fulcro.inspect.devcards (:require [devcards.core] [com.wsscode.oge.ui.codemirror-cards] [fulcro.client.logging :as log] [fulcro.inspect.core] [fulcro.inspect.lib.version-cards] [fulcro.inspect.ui.demos-cards] [fulcro.inspect.ui.data-history-c...
null
https://raw.githubusercontent.com/fulcrologic/fulcro-inspect/a03b61cbd95384c0f03aa936368bcf5cf573fa32/devcards/fulcro/inspect/devcards.cljs
clojure
(ns fulcro.inspect.devcards (:require [devcards.core] [com.wsscode.oge.ui.codemirror-cards] [fulcro.client.logging :as log] [fulcro.inspect.core] [fulcro.inspect.lib.version-cards] [fulcro.inspect.ui.demos-cards] [fulcro.inspect.ui.data-history-c...
edb0662c3a18c7ba2ed654c0a09ee71730f7b6bae78e1c15b1b1577a78df62f4
pnf/girder
async.clj
(ns acyclic.girder.grid.async (:require [ clojure.core.async :as async :refer [<! >! <!! >!! timeout chan alt!! go close!]] [taoensso.timbre :as timbre] [acyclic.utils.log :as ulog] [acyclic.girder.grid.cache :as cache] [clojure.core.async.impl.protocols ...
null
https://raw.githubusercontent.com/pnf/girder/25517e39227a28f10b0940908c57b95ac19dc3ce/src/acyclic/girder/grid/async.clj
clojure
(ns acyclic.girder.grid.async (:require [ clojure.core.async :as async :refer [<! >! <!! >!! timeout chan alt!! go close!]] [taoensso.timbre :as timbre] [acyclic.utils.log :as ulog] [acyclic.girder.grid.cache :as cache] [clojure.core.async.impl.protocols ...
926786fc5f9fc483fd77b0a329dd9bb73f6b6eb04dcb779f33cc0f743ab5fa6a
ZHaskell/z-data
SortSpec.hs
# LANGUAGE TypeApplications # # LANGUAGE ScopedTypeVariables # module Z.Data.Vector.SortSpec where import qualified Data.List as List import Data.Word import Data.Int import qualified Z.Data.Vector as V import qualified Z.Data.Vector.Sort as V import Z.Data.Ve...
null
https://raw.githubusercontent.com/ZHaskell/z-data/b547ac196db274e754af9fdda736ff6beb4c98fa/test/Z/Data/Vector/SortSpec.hs
haskell
# LANGUAGE TypeApplications # # LANGUAGE ScopedTypeVariables # module Z.Data.Vector.SortSpec where import qualified Data.List as List import Data.Word import Data.Int import qualified Z.Data.Vector as V import qualified Z.Data.Vector.Sort as V import Z.Data.Ve...
c44933b7cacbcf37e40770517a37d2525f9f573c255415344a2c0747ccadca71
stuartsierra/altlaw-backend
lucene.clj
(ns org.altlaw.util.lucene (:import (org.apache.lucene.store Directory FSDirectory) (org.apache.lucene.index IndexWriter SerialMergeScheduler))) (defn merge-indexes "Merges Lucene indexes from sources (directory names as Strings) to a single index at target (directory name as String)." [target sourc...
null
https://raw.githubusercontent.com/stuartsierra/altlaw-backend/c2ceeb0be2d622ca921339be06de5485733451bc/src/org/altlaw/util/lucene.clj
clojure
(ns org.altlaw.util.lucene (:import (org.apache.lucene.store Directory FSDirectory) (org.apache.lucene.index IndexWriter SerialMergeScheduler))) (defn merge-indexes "Merges Lucene indexes from sources (directory names as Strings) to a single index at target (directory name as String)." [target sourc...
d5f933db02ce129ea7a91868f0e8e4b2ed8bc80ae44444b1f2aa62b123674433
plaidfinch/myxine
Direct.hs
| Description : Direct one - to - one typed bindings to the Myxine server API Usually , it makes the most sense to run a Myxine application using the ' . Page . Page ' abstraction in the main module . However , this reactive model - view - controller approach may not be appropriate for all needs . The funct...
null
https://raw.githubusercontent.com/plaidfinch/myxine/3f57767ee3059400eea5fd890f5d1b0b388a0632/clients/haskell/src/Myxine/Direct.hs
haskell
* Page locations on @localhost@ * Sending updates to pages and getting events from pages * Exceptions thrown if the server misbehaves * The @Some@ existential | The view of a page, as rendered in the browser. Create page content with 'pageBody' and 'pageTitle', and combine content using the 'Semigroup' instance....
| Description : Direct one - to - one typed bindings to the Myxine server API Usually , it makes the most sense to run a Myxine application using the ' . Page . Page ' abstraction in the main module . However , this reactive model - view - controller approach may not be appropriate for all needs . The funct...
c03f9ec6189f08b3c6b30b28a211284b92f3e76fdb9d8fa82dff830cd832c110
malgo-lang/malgo
Interface.hs
# LANGUAGE TemplateHaskell # # LANGUAGE UndecidableInstances # module Malgo.Interface (Interface (..), coreIdentMap, buildInterface, toInterfacePath, loadInterface) where import Control.Lens (At (at), ifor_, view, (%=), (?=), (^.)) import Control.Lens.TH import Data.Binary (Binary, decodeFile) import Data.HashMap.Str...
null
https://raw.githubusercontent.com/malgo-lang/malgo/27263972586cfa4f3161407dcebe99a232f1e79a/src/Malgo/Interface.hs
haskell
| Used in Infer | Used in Infer | Used in Infer | Used in Rename | Used in Rename | Used in Rename | Used in Rename
# LANGUAGE TemplateHaskell # # LANGUAGE UndecidableInstances # module Malgo.Interface (Interface (..), coreIdentMap, buildInterface, toInterfacePath, loadInterface) where import Control.Lens (At (at), ifor_, view, (%=), (?=), (^.)) import Control.Lens.TH import Data.Binary (Binary, decodeFile) import Data.HashMap.Str...
cad86230c4d3faa623b6f1a512ecb0eb4d4fbed5586804fc4577d37b15b92f1f
facebook/infer
jTransType.mli
* Copyright ( c ) 2009 - 2013 , Monoidics ltd . * Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) 2009-2013, Monoidics ltd. * Copyright (c) Facebook, In...
null
https://raw.githubusercontent.com/facebook/infer/57626240272ae372a52d0efb9cc080531a00bdad/infer/src/java/jTransType.mli
ocaml
* translate the name of the field * returns a procedure name based on the class name and the method's signature * [get_class_type_no_pointer program tenv cn] returns the sil type representation of the class without the pointer part * [get_class_type program tenv cn] returns the sil type representation of the cla...
* Copyright ( c ) 2009 - 2013 , Monoidics ltd . * Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) 2009-2013, Monoidics ltd. * Copyright (c) Facebook, In...
4769630093b606dbd9092aae006fa7e52ecf40a8cce1cd489c45af3542474acd
WormBase/wormbase_rest
phenotype.clj
(ns rest-api.classes.phenotype (:require [rest-api.classes.phenotype.widgets.overview :as overview] [rest-api.classes.phenotype.widgets.ontology-browser :as ontology-browser] [rest-api.classes.phenotype.widgets.associated-anatomy :as associated-anatomy] [rest-api.classes.phenotype.widgets.go-term :as ...
null
https://raw.githubusercontent.com/WormBase/wormbase_rest/e51026f35b87d96260b62ddb5458a81ee911bf3a/src/rest_api/classes/phenotype.clj
clojure
(ns rest-api.classes.phenotype (:require [rest-api.classes.phenotype.widgets.overview :as overview] [rest-api.classes.phenotype.widgets.ontology-browser :as ontology-browser] [rest-api.classes.phenotype.widgets.associated-anatomy :as associated-anatomy] [rest-api.classes.phenotype.widgets.go-term :as ...
f40d48101e69a13f770cd23d3e1229a010b7c7347f1b5e17fd9efc765486d6b6
discus-lang/ddc
Scalar.hs
module DDC.Core.Flow.Transform.Schedule.Scalar (scheduleScalar) where import DDC.Core.Flow.Transform.Schedule.Nest import DDC.Core.Flow.Transform.Schedule.Error import DDC.Core.Flow.Transform.Schedule.Base import DDC.Core.Flow.Procedure import DDC.Core.Flow.Process import DDC.Core.Flow.Compounds import DDC.Cor...
null
https://raw.githubusercontent.com/discus-lang/ddc/2baa1b4e2d43b6b02135257677671a83cb7384ac/src/s1/ddc-core-flow/DDC/Core/Flow/Transform/Schedule/Scalar.hs
haskell
| Schedule a process into a procedure, producing scalar code. ----------------------------------------------------------------------------- | Schedule a single series operator into a loop nest. ^ Context of all operators ^ Operator to schedule. Id ------------------------------------------- Get binders for the in...
module DDC.Core.Flow.Transform.Schedule.Scalar (scheduleScalar) where import DDC.Core.Flow.Transform.Schedule.Nest import DDC.Core.Flow.Transform.Schedule.Error import DDC.Core.Flow.Transform.Schedule.Base import DDC.Core.Flow.Procedure import DDC.Core.Flow.Process import DDC.Core.Flow.Compounds import DDC.Cor...
d35c7b16174d23f76c0981d170f42d08bf79e7cc9f72b6503c84e7f3ca62271b
let-def/menhir
stringMap.mli
(**************************************************************************) (* *) Menhir (* *) , INRIA Ro...
null
https://raw.githubusercontent.com/let-def/menhir/e8ba7bef219acd355798072c42abbd11335ecf09/src/stringMap.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...
a391c2005480c4ca94dbe52e9c89b257bc0f46cc640002d22da7d959d208298a
Bluehouse-Technology/grpc
route_guide_logging_middleware.erl
Middleware example that logs to disk -module(route_guide_middleware). -behaviour(cowboy_middleware). -export([execute/2]). execute(Req, Env) -> LoggingData = "here are some logs", ok = file:write_file("route_guide_middleware_log", LoggingData), {ok, Req, Env}.
null
https://raw.githubusercontent.com/Bluehouse-Technology/grpc/cdb7ab70c57e248d474369d6b3c5de77151f52f7/examples/route_guide/server/route_guide_logging_middleware.erl
erlang
Middleware example that logs to disk -module(route_guide_middleware). -behaviour(cowboy_middleware). -export([execute/2]). execute(Req, Env) -> LoggingData = "here are some logs", ok = file:write_file("route_guide_middleware_log", LoggingData), {ok, Req, Env}.
9cbccb4700ac7cfcd9778ad0752d7991b3f205c99812ecd9cc14c6fb583eac08
charlieg/Sparser
driver1.lisp
;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER LISP) -*- copyright ( c ) 1991 Content Technologies Inc. copyright ( c ) 1992 -- all rights reserved ;;; ;;; File: "driver" Module : " interface;records : " Version : 1.3 June 1991 initiated in January 1991 1.1 ( 3/8 v1.8.1 ) ...
null
https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/code/s/interface/records/driver1.lisp
lisp
-*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER LISP) -*- File: "driver" loops so that edges are only readout once. -------------------- per-article driver -------------------- Master routine called from After-analysis-actions -------------- batch driver -------------- the record writing code was...
copyright ( c ) 1991 Content Technologies Inc. copyright ( c ) 1992 -- all rights reserved Module : " interface;records : " Version : 1.3 June 1991 initiated in January 1991 1.1 ( 3/8 v1.8.1 ) Passed through renaming of the record writing routine 1.2 ( 3/22 v1.8.1 ) Fixed an unca...
43506a4dd26978e56735bcfb8c16464153dd028bed3c9f5ec86bcc4d7db85752
yrashk/erlang
ex_canvas_paint.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Public Lic...
null
https://raw.githubusercontent.com/yrashk/erlang/e1282325ed75e52a98d58f5bd9fb0fa27896173f/lib/wx/examples/demo/ex_canvas_paint.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(ex_canvas_paint). -behavoiur(wx_object)....
3a633de4e8372084686ad7e18931142e27c9a4f9dacc13e4cbfe0742ee9b28e7
AstRonin/sgi
index.erl
-module(index). -compile(export_all). -include_lib("n2o/include/wf.hrl"). -define(ARBITER, sgi_arbiter). -define(CLIENTS_COUNT, 20). -define(REQUESTS_COUNT, 100). -define(SERVER_DISTRIBUTION_PRIORITY_FILE, "server_distribution(priority).csv"). -define(SERVER_DISTRIBUTION_BLURRED_FILE, "server_distribution(blurred).c...
null
https://raw.githubusercontent.com/AstRonin/sgi/3854b62b6ce46ba71abd1e76e9cf5200dc0b1df3/samples/apps/review4/src/index.erl
erlang
waiting servers save data to the file for generating graphs
-module(index). -compile(export_all). -include_lib("n2o/include/wf.hrl"). -define(ARBITER, sgi_arbiter). -define(CLIENTS_COUNT, 20). -define(REQUESTS_COUNT, 100). -define(SERVER_DISTRIBUTION_PRIORITY_FILE, "server_distribution(priority).csv"). -define(SERVER_DISTRIBUTION_BLURRED_FILE, "server_distribution(blurred).c...
89735521799c23ebdd6462b79cca125c49a6afc5978311b9da30dcadf45457d2
witan-org/witan
options.ml
(*************************************************************************) This file is part of Witan . (* *) Copyright ( C ) 2017 CEA ( Commi...
null
https://raw.githubusercontent.com/witan-org/witan/d26f9f810fc34bf44daccb91f71ad3258eb62037/src/bin/options.ml
ocaml
*********************************************************************** alternatives) Automatique) ...
This file is part of Witan . Copyright ( C ) 2017 CEA ( Commissariat à l'énergie atomique et aux énergies ( Institut National de Recherche en Informatique et en CNRS ( Centre nation...
334bd54a1d62bc5b72461aa6ebb9770a9cb43a55ed83a805a58455d8b2a37dce
haskell-opengl/OpenGLRaw
RobustnessVideoMemoryPurge.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.NV.RobustnessVideoMemoryPurge Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- ------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/NV/RobustnessVideoMemoryPurge.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.GL.NV.RobustnessVideoMemoryPurge License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Enums
# LANGUAGE PatternSynonyms # Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.NV.RobustnessVideoMemoryPurge ( glGetNVRobustnessVideoMemoryPurge, gl_NV_robustness_video_memory_purge, pattern GL_PURGED_CONTEXT_RESET_NV ) where import Graphics.GL.ExtensionPredicates import Graphics.GL.T...
92d4a38ec6cf8c2290dd5535a9c07c7438304f175f56357788a700b92b2779d0
discus-lang/salt
Base.hs
module Salt.Core.Eval.Base ( module Salt.Core.Exp , module Data.Typeable , module Data.Function , module Data.Maybe , module Data.Word , Set, Map , State(..) , newState , newCell, delCell, writeCell, readCell , Config(..) , confi...
null
https://raw.githubusercontent.com/discus-lang/salt/33c14414ac7e238fdbd8161971b8b8ac67fff569/src/salt/Salt/Core/Eval/Base.hs
haskell
---------------------------------------------------------------------------------------- State -- | State of the entire machine. | Evaluator configuration. | Enclosing module. | Generator for cell identifiers. | Map of cell values. | Create a new machine state with an empty set of cells. | Allocate a new cell. ...
module Salt.Core.Eval.Base ( module Salt.Core.Exp , module Data.Typeable , module Data.Function , module Data.Maybe , module Data.Word , Set, Map , State(..) , newState , newCell, delCell, writeCell, readCell , Config(..) , confi...
4c3011d5bbed1bab1e22981cc6178b627313343f05b5aee2524dc0dd0e29e908
zeromq/chumak
chumak_sup.erl
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 /. -module(chumak_sup). -behaviour(supervisor). -include("chumak.hrl"). -define(SUPERVISOR_FLAGS, #{strategy => one_for_one}). -define(CHILD_PRO...
null
https://raw.githubusercontent.com/zeromq/chumak/f89a873ea2d4b94d3d415228b72cf4f92f076af5/src/chumak_sup.erl
erlang
generate an atom ? socket without identity not use supervisor because the identity is used to localize process inside supervisor. Resource not use supervisor yet, because it's needed a identifier
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 /. -module(chumak_sup). -behaviour(supervisor). -include("chumak.hrl"). -define(SUPERVISOR_FLAGS, #{strategy => one_for_one}). -define(CHILD_PRO...
f7af39f68504988acf72e9cc6b05d97d258e765f94450c7351bef7bbf1d69e45
eerohele/tab
build.clj
(ns build (:require [clojure.string :as string] [clojure.tools.build.api :as build]) (:import (java.time LocalDate))) (defn tag [_] (let [version (format "%s.%s" (LocalDate/now) (build/git-count-revs nil))] (build/git-process {:git-args ["tag" "--message" version "--annotate" version]}) {:g...
null
https://raw.githubusercontent.com/eerohele/tab/b03b0405c42ac794e897a98addc733ac1138905a/build.clj
clojure
(ns build (:require [clojure.string :as string] [clojure.tools.build.api :as build]) (:import (java.time LocalDate))) (defn tag [_] (let [version (format "%s.%s" (LocalDate/now) (build/git-count-revs nil))] (build/git-process {:git-args ["tag" "--message" version "--annotate" version]}) {:g...
43a61f37fe443ed057a6c812aa7520ad51021a04d8818c75393e15660a98d7ca
roryk/bcbio.rnaseq
pathway.clj
(ns bcbio.qcsummary.pathway (:require [bcbio.rnaseq.util :as util] [bcbio.qcsummary.r :refer [write-template]])) (defrecord OrgInfo [name db symbol biomart-dataset keggname]) (def org-dbs {:mouse (OrgInfo. "mouse" "org.Mm.eg.db" "mgi_symbol" "mmusculus_gene_ensembl" "mmu") ...
null
https://raw.githubusercontent.com/roryk/bcbio.rnaseq/66c629eb737c9a0096082d6683657bf9d89eb271/src/bcbio/qcsummary/pathway.clj
clojure
(ns bcbio.qcsummary.pathway (:require [bcbio.rnaseq.util :as util] [bcbio.qcsummary.r :refer [write-template]])) (defrecord OrgInfo [name db symbol biomart-dataset keggname]) (def org-dbs {:mouse (OrgInfo. "mouse" "org.Mm.eg.db" "mgi_symbol" "mmusculus_gene_ensembl" "mmu") ...
f6e9b3f0372f59063a12d64ac978c678adf3f6911e2e76ce4addf8f4eacc5921
dongcarl/guix
store.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2012 , 2013 , 2014 , 2015 , 2016 , 2017 , 2018 , 2019 , 2020 , 2021 < > ;;; ;;; 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 b...
null
https://raw.githubusercontent.com/dongcarl/guix/d2b30db788f1743f9f8738cb1de977b77748567f/tests/store.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2012 , 2013 , 2014 , 2015 , 2016 , 2017 , 2018 , 2019 , 2020 , 2021 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (test-store) #:use-module (guix te...
a3665c57249ec9bbdbdce0a890786f1d2c020df948d2e56e24cac3581e2422d9
darrenldl/ProVerif-ATP
proVerif.mli
val process_string : string -> (string, string) result
null
https://raw.githubusercontent.com/darrenldl/ProVerif-ATP/7af6cfb9e0550ecdb072c471e15b8f22b07408bd/narrator/src/proVerif.mli
ocaml
val process_string : string -> (string, string) result
a0314091d63f18ea0a98a8af785db2d6d1b8d07f10d708fe8c1f0671e6c95c30
basho/riak_test
verify_backup_restore.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2012 Basho Technologies , Inc. %% This file is provided to you 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 Li...
null
https://raw.githubusercontent.com/basho/riak_test/8170137b283061ba94bc85bf42575021e26c929d/tests/verify_backup_restore.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2012 Basho Technologies , Inc. This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY @doc Verifies the functionali...
72cb44f989ba5918449b62dbc69188f036fc21ad9fa35a9392ae9f17fb17ebf2
arthur-adjedj/proof_assistant
proof.ml
open State open Tactiques open Sequent (*On suppose une preuve toujours non vide*) type proof = (state*string) list exception Proof_complete of proof let apply (p:proof) (t:tactique):proof = let last = fst (List.hd p) in if is_empty last then raise (Proof_complete p) else begin let next =...
null
https://raw.githubusercontent.com/arthur-adjedj/proof_assistant/3717f8033191e9c17bf3ba847b557aa82dc2a3ce/pr_assistant/proof_build/proof.ml
ocaml
On suppose une preuve toujours non vide
open State open Tactiques open Sequent type proof = (state*string) list exception Proof_complete of proof let apply (p:proof) (t:tactique):proof = let last = fst (List.hd p) in if is_empty last then raise (Proof_complete p) else begin let next = t (List.hd last) in ((fst next)@(Li...
da84ba929680549316d9b436baebab9600614cc242f146fe59e1498bf2668d92
Enecuum/Node
MBlock.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DuplicateRecordFields # module Enecuum.Samples.Blockchain.DB.Entities.MBlock where import qualified Data.Aeson as A import qualified Data.ByteString.Lazy as LBS import Enecuum.Prelude import Text.Printf ...
null
https://raw.githubusercontent.com/Enecuum/Node/3dfbc6a39c84bd45dd5f4b881e067044dde0153a/src/Enecuum/Samples/Blockchain/DB/Entities/MBlock.hs
haskell
# LANGUAGE DeriveAnyClass # mBlocks (kBlock_idx|mBlock_idx -> mBlock_data) -------------------------------------------------------------------- Temporarily not an index
# LANGUAGE DuplicateRecordFields # module Enecuum.Samples.Blockchain.DB.Entities.MBlock where import qualified Data.Aeson as A import qualified Data.ByteString.Lazy as LBS import Enecuum.Prelude import Text.Printf (printf) impo...
bc43e4109c238086d2c3a040489f1e68f930cf15857ef32b5f46e9aad517a42d
jbracker/supermonad
TAMInterpreter.hs
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * H M T C * * ...
null
https://raw.githubusercontent.com/jbracker/supermonad/2595396a225a65b1dce6ed9a1ce59960f392a55b/examples/monad/hmtc/original/TAMInterpreter.hs
haskell
:: Bool -> [TAMInst] -> IO () Standard library imports TAM Code Code size LB (Local Base): 0 <= tsLB <= tsST Note that the maximal size of the stack actually is limited by the size of "take", "drop", "!!", use an Int count. This is unlikely to be a problem, though: we'd need a better representation of the stack...
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * H M T C * * ...
75c89c8fc3c84d09543ec1070493d884418dafdf433a6bb1c7ff2f20b033f407
Appliscale/xprof
xprof_core_tracer.erl
-*- erlang - indent - level : 4;indent - tabs - mode : nil -*- %% ex: ts=4 sw=4 et -module(xprof_core_tracer). -behaviour(gen_server). -export([start_link/0, trace/1, monitor/1, monitor_query/2, monitor_cmd/2, demonitor/1, all_monitored/0, trace_status...
null
https://raw.githubusercontent.com/Appliscale/xprof/3e7f6fa9bbd00f2c1bc528b5ad4080e5ae2038af/apps/xprof_core/src/xprof_core_tracer.erl
erlang
ex: ts=4 sw=4 et gen_server callbacks trace specification tracing status maximum message queue length for overload protection @doc Starts monitoring specified function calls. @doc Start monitoring based on the specified query string with additional parameters. @doc Start monitoring based on the specified comma...
-*- erlang - indent - level : 4;indent - tabs - mode : nil -*- -module(xprof_core_tracer). -behaviour(gen_server). -export([start_link/0, trace/1, monitor/1, monitor_query/2, monitor_cmd/2, demonitor/1, all_monitored/0, trace_status/0]). -export([ini...
235fb3c33c0402a3e81b4cd47d29b80b8ba84447676219a5ce0b17acc7187e1d
kostmo/circleci-failure-tracker
CircleTest.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} module CircleTest where import Control.Lens hiding ((<.>)) import Control.Monad.IO.Class (liftIO) import Control.Monad.Trans.Except (ExceptT (ExceptT)) import ...
null
https://raw.githubusercontent.com/kostmo/circleci-failure-tracker/393d10a72080bd527fdb159da6ebfea23fcd52d1/app/fetcher/src/CircleTest.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings # Good test API: BUILD_NUM=4345109; curl -s /$BUILD_NUM/tests Bad test API: BUILD_NUM=4345109; curl -s -X GET /$BUILD_NUM/tests?circle-token=XXXXX -H 'Accept: application/json' | Note: The "message" field is non-null when the value of the "result" field ...
# LANGUAGE DeriveGeneric # module CircleTest where import Control.Lens hiding ((<.>)) import Control.Monad.IO.Class (liftIO) import Control.Monad.Trans.Except (ExceptT (ExceptT)) import Data.Aeson import Data.List (intercalate) ...
330c503c8379fc977a2fed34f5f95091c127a32d0ad8ff20837243c5daadbc07
input-output-hk/high-assurance-legacy
Reverser.hs
import Control.Concurrent (threadDelay) import Control.Monad (forever) import Ouroboros.ChiCalculus.Examples.Reverser (runWithStdIO, reverser) main :: IO () main = runWithStdIO reverser >> forever (threadDelay maxBound)
null
https://raw.githubusercontent.com/input-output-hk/high-assurance-legacy/ee90add31d3fa286322144219092d60fe854bf8d/Haskell/chi-calculus-examples/src/exe/Reverser.hs
haskell
import Control.Concurrent (threadDelay) import Control.Monad (forever) import Ouroboros.ChiCalculus.Examples.Reverser (runWithStdIO, reverser) main :: IO () main = runWithStdIO reverser >> forever (threadDelay maxBound)
602873ec5d10a4add17fc4c6e5ba40f931cdb72841a37f832fc0f3defa5f8aef
theodormoroianu/SecondYearCourses
HaskellChurch_20210415162447.hs
{-# LANGUAGE RankNTypes #-} module HaskellChurch where A boolean is any way to choose between two alternatives newtype CBool = CBool {cIf :: forall t. t -> t -> t} An instance to show as regular Booleans instance Show CBool where show b = show $ cIf b True False The boolean constant true always chooses the ...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/HaskellChurch_20210415162447.hs
haskell
# LANGUAGE RankNTypes # The boolean negation switches the alternatives The boolean conjunction can be built as a conditional The boolean disjunction can be built as a conditional a pair is a way to compute something based on the values contained within the pair. a function to be applied on the values, it will apply i...
module HaskellChurch where A boolean is any way to choose between two alternatives newtype CBool = CBool {cIf :: forall t. t -> t -> t} An instance to show as regular Booleans instance Show CBool where show b = show $ cIf b True False The boolean constant true always chooses the first alternative cTrue :: C...
af897b21e8497ba999b8385d790afcc930533674f8d85ecb6ce14561d5d8e681
fpco/ide-backend
CabalMacros.hs
module TestSuite.Tests.CabalMacros (testGroupCabalMacros) where import Control.Exception import Data.Monoid import System.Exit import System.FilePath import System.Process import Test.HUnit import Test.Tasty import qualified Data.ByteString.Lazy.Char8 as L (unlines) import qualified Data.ByteString.Lazy as L imp...
null
https://raw.githubusercontent.com/fpco/ide-backend/860636f2d0e872e9481569236bce690637e0016e/ide-backend/TestSuite/TestSuite/Tests/CabalMacros.hs
haskell
assertEqual "Main with cabal macro exe output" (BSLC.pack "") macros Get macros from standard session Test custom macros ------------------------------------------------------------------------------ Auxiliary ------------------------------------------------------------------------------
module TestSuite.Tests.CabalMacros (testGroupCabalMacros) where import Control.Exception import Data.Monoid import System.Exit import System.FilePath import System.Process import Test.HUnit import Test.Tasty import qualified Data.ByteString.Lazy.Char8 as L (unlines) import qualified Data.ByteString.Lazy as L imp...
d53dc98fd15198749180dd153b6f5111f06dddaec804f4649066393a6c636ce7
nickzuber/infrared
Fs.ml
let blacklist = [| ".git" ; "node_modules" ; "_build" |] let whitelist = [| ".js" ; ".jsx" |] let is_blacklisted path = Array.exists (fun blk -> Utils.is_substring blk path) blacklist let is_whitelisted file = Array.exists (fun wht -> wht = Filename.extension file) whitelist let is_directory_op...
null
https://raw.githubusercontent.com/nickzuber/infrared/b67bc728458047650439649605af7a8072357b3c/InfraredUtils/Fs.ml
ocaml
let blacklist = [| ".git" ; "node_modules" ; "_build" |] let whitelist = [| ".js" ; ".jsx" |] let is_blacklisted path = Array.exists (fun blk -> Utils.is_substring blk path) blacklist let is_whitelisted file = Array.exists (fun wht -> wht = Filename.extension file) whitelist let is_directory_op...
a41e7be18ac171d4315b226dcec4d9d766d8e273fcebe2b91d8155c78239e4bf
ArtixLabs/ArkOLD
Alacritty.hs
# LANGUAGE LambdaCase # module Ark.Themes.Alacritty ( alacrittyThemeFile ) where import Ark.Database.Themes (getAlacritty) import Ark.Themes.Options (Themes(..)) import Control.Monad ((>=>)) import Data.List (isInfixOf) import System.Directory (copyFile, doesFileExist) import System.Environment (getEnv) getConfi...
null
https://raw.githubusercontent.com/ArtixLabs/ArkOLD/b5e933cc7a6aa4e480d2aab00841651f3b618896/src/Ark/Themes/Alacritty.hs
haskell
# LANGUAGE LambdaCase # module Ark.Themes.Alacritty ( alacrittyThemeFile ) where import Ark.Database.Themes (getAlacritty) import Ark.Themes.Options (Themes(..)) import Control.Monad ((>=>)) import Data.List (isInfixOf) import System.Directory (copyFile, doesFileExist) import System.Environment (getEnv) getConfi...
9b3866bb46a1295a8b5f48de32f47f3110ca5c1c7551942d068c65632c640996
sjpeterson/quark
HSCurses.hs
--------------------------------------------------------------- -- -- Module: Quark.Frontend.HSCurses Author : License : MIT License -- Maintainer : ( ) -- Stability: Stable -- Portability: Unknown -- -- ---------------------------------------------------------- -- Frontend module for H...
null
https://raw.githubusercontent.com/sjpeterson/quark/0b8e3a879d7d7c9be434703bc9dc6d08dd1054d3/src/Quark/Frontend/HSCurses.hs
haskell
------------------------------------------------------------- Module: Quark.Frontend.HSCurses Stability: Stable Portability: Unknown ---------------------------------------------------------- ------------------------------------------------------------- --------------------------- Start and end functio...
Author : License : MIT License Maintainer : ( ) Frontend module for HSCurses module Quark.Frontend.HSCurses ( Window ( TitleBar , UtilityBar , TextView , ProjectView ) ...
9fd20f7c3b00dcf7fd5b258e5f76cb9d5d08f068d91b30c7c5aaf9c0c4151129
yrashk/socket.io-erlang
socketio_http_server.erl
-module(socketio_http_server). -export([behaviour_info/1]). behaviour_info(callbacks) -> [{start_link,1}, {file,2}, {respond,2}, {respond,3}, {respond,4}, {parse_post,1}, {headers,2}, {chunk,2}, {stream,2}, {socket,1},{get_headers,1},{websocket_send,2},{ensure_longpolling_request,1}]; behaviour_info(_Oth...
null
https://raw.githubusercontent.com/yrashk/socket.io-erlang/7a6c768a28cf18d58efd7abe0eb276a22dbc7974/src/socketio_http_server.erl
erlang
-module(socketio_http_server). -export([behaviour_info/1]). behaviour_info(callbacks) -> [{start_link,1}, {file,2}, {respond,2}, {respond,3}, {respond,4}, {parse_post,1}, {headers,2}, {chunk,2}, {stream,2}, {socket,1},{get_headers,1},{websocket_send,2},{ensure_longpolling_request,1}]; behaviour_info(_Oth...
ea2c4bb8b83549c1f8ab4953dd7490fd7b6b50424cce75f57771eb4d4e600d5a
pykello/racket-graphviz
main.rkt
#lang racket/base (require pict "lib/dot.rkt" "lib/digraph.rkt" "lib/erdiagram.rkt") (provide (all-from-out pict) (all-from-out "lib/dot.rkt") (all-from-out "lib/digraph.rkt") (all-from-out "lib/erdiagram.rkt")) (module+ test (require rackunit)) ;; Notice ;; ...
null
https://raw.githubusercontent.com/pykello/racket-graphviz/fdf1b50c383bd1d9db6738063e2d9f5660439ec1/main.rkt
racket
Notice To install (from within the package directory): To install (once uploaded to pkgs.racket-lang.org): To uninstall: To view documentation: $ raco docs <<name>> Some users like to add a `private/` directory, place auxiliary files there, and require them in `main.rkt`. See the current version of the rac...
#lang racket/base (require pict "lib/dot.rkt" "lib/digraph.rkt" "lib/erdiagram.rkt") (provide (all-from-out pict) (all-from-out "lib/dot.rkt") (all-from-out "lib/digraph.rkt") (all-from-out "lib/erdiagram.rkt")) (module+ test (require rackunit)) $ raco pk...
371660e4f7519ad1ea9355b4ac9ed9db85fbb582296fe26b6fed036a433d17fd
larcenists/larceny
esc5.scm
(text (label foo (ret)) (label bar (ret)) (seq (nop) (esc ((jmp $win) (jmp $lose)) (alt (with-win foo (seq (= eax 3) (= ebx 2) (push eax) (push ebx))) (with-win bar (seq (mov esp edx) (push ebx) (push eax))))) (nop))) 00000000 C3 ...
null
https://raw.githubusercontent.com/larcenists/larceny/fef550c7d3923deb7a5a1ccd5a628e54cf231c75/src/Lib/Sassy/tests/prims/esc5.scm
scheme
(text (label foo (ret)) (label bar (ret)) (seq (nop) (esc ((jmp $win) (jmp $lose)) (alt (with-win foo (seq (= eax 3) (= ebx 2) (push eax) (push ebx))) (with-win bar (seq (mov esp edx) (push ebx) (push eax))))) (nop))) 00000000 C3 ...
2bf32de95adfa57522b36b6a48fa523b75623202190fab49bca2b6c44daedb8a
crclark/foundationdb-haskell
Parse.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # {-# LANGUAGE TypeOperators #-} module Parse where import Control.Applicative ((<|>)) import Control.Error import Text.XML.Light.Proc (onlyElems) import Text.XML.Light.Types data Fdb...
null
https://raw.githubusercontent.com/crclark/foundationdb-haskell/510836a5fabe5b5b2dfc7e66438ded846f3ce085/generate-options/Parse.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE TypeOperators #
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE RecordWildCards # module Parse where import Control.Applicative ((<|>)) import Control.Error import Text.XML.Light.Proc (onlyElems) import Text.XML.Light.Types data FdbOptionType = FdbOptionType { optionType :: String , options :: [Fd...
b77540bc3b136a439ecd0efb564bd693fb86e9e4328278f83212c76a07204991
Liqwid-Labs/agora
Options.hs
module Options (Options (..), parseOptions) where import Options.Applicative ((<**>)) import Options.Applicative qualified as Opt import Data.Maybe (fromJust) import Path (fromRelDir, parseRelDir, (</>)) data Options = Options { output :: FilePath , quiet :: Bool } outputOpt :: Opt.Parser FilePath outputOpt =...
null
https://raw.githubusercontent.com/Liqwid-Labs/agora/0454aa32259813faf9cc1e13e33d5437e19d9c92/agora-purescript-bridge/Options.hs
haskell
Give a directory path, return the path of its src subdirectory.
module Options (Options (..), parseOptions) where import Options.Applicative ((<**>)) import Options.Applicative qualified as Opt import Data.Maybe (fromJust) import Path (fromRelDir, parseRelDir, (</>)) data Options = Options { output :: FilePath , quiet :: Bool } outputOpt :: Opt.Parser FilePath outputOpt =...
6ec2c23f6a304ccdf45afb66652f9624174b3ead4433a7c9db8b463d4d959369
Clojure2D/clojure2d-examples
ch8_metal.clj
(ns rt-in-weekend.ch8-metal (:require [clojure2d.core :refer :all] [clojure2d.pixels :as p] [clojure2d.extra.utils :as u] [fastmath.vector :as v] [rt-in-weekend.ray :refer :all] [rt-in-weekend.hitable :refer :all] [rt-in-weekend.sphere :refer :al...
null
https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/9de82f5ac0737b7e78e07a17cf03ac577d973817/src/rt_in_weekend/ch8_metal.clj
clojure
(save img "results/rt-in-weekend/metal.jpg")
(ns rt-in-weekend.ch8-metal (:require [clojure2d.core :refer :all] [clojure2d.pixels :as p] [clojure2d.extra.utils :as u] [fastmath.vector :as v] [rt-in-weekend.ray :refer :all] [rt-in-weekend.hitable :refer :all] [rt-in-weekend.sphere :refer :al...
ee6ca8201d85b1053f92a53b26f16009e838846e122b439b6c002d7bb4401345
jserot/lascar
fsm_action.ml
(**********************************************************************) (* *) LASCAr (* *) Copyright ( c ) 2017 - prese...
null
https://raw.githubusercontent.com/jserot/lascar/79bd11cd0d47545bccfc3a3571f37af065915c83/src/lib/fsm_action.ml
ocaml
******************************************************************** This source code is licensed under the lic...
LASCAr Copyright ( c ) 2017 - present , . All rights reserved . module type T = sig module Expr : Fsm_expr.T type t = [@@deriving show {with_path=false}] val to_string: t -> string val of_string: ?lexer:(string->Genlex.token Stream....
fc74094c9389717fd5eb82499bb7dc07ce7170e421f28d5cc90003a281e2dcdf
clojure-interop/java-jdk
HTMLDocument.clj
(ns javax.swing.text.html.HTMLDocument "A document that models HTML. The purpose of this model is to support both browsing and editing. As a result, the structure described by an HTML document is not exactly replicated by default. The element structure that is modeled by default, is built by the class HTMLD...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.swing/src/javax/swing/text/html/HTMLDocument.clj
clojure
// Document text is provided below. } } returns an element whose ID
(ns javax.swing.text.html.HTMLDocument "A document that models HTML. The purpose of this model is to support both browsing and editing. As a result, the structure described by an HTML document is not exactly replicated by default. The element structure that is modeled by default, is built by the class HTMLD...
899fe52dd1631dee7a1eb7b3468aa43708db1aea80b32974657d7d8a079641d7
robert-strandh/Climacs
typeout.lisp
;;; -*- Mode: Lisp; Package: CLIMACS-GUI -*- ( c ) copyright 2008 by ( ) ;;; This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( a...
null
https://raw.githubusercontent.com/robert-strandh/Climacs/68ccba6a2a9cc78c1a84f1698c31c78a215f3d90/typeout.lisp
lisp
-*- Mode: Lisp; Package: CLIMACS-GUI -*- This library is free software; you can redistribute it and/or either This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU License ...
( c ) copyright 2008 by ( ) modify it under the terms of the GNU Library General Public version 2 of the License , or ( at your option ) any later version . Library General Public License for more details . You should have received a copy of the GNU Library General Public Free Software Fou...
194e8dd81402afcaf511d2614bcf84b7a6079993ca5461c709f438592895c261
jordillonch/eggs
eggs_area_handler.erl
%% eggs (Erlang Generic Game Server) %% Copyright ( C ) 2012 - 2013 < llonch.jordi at gmail dot com > %% %% This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the %%...
null
https://raw.githubusercontent.com/jordillonch/eggs/e20ccd5093952ec967458bb2d50d5acf82e69063/apps/eggs_example_game/deps/eggs/src/eggs_area_handler.erl
erlang
eggs (Erlang Generic Game Server) This program is free software: you can redistribute it and/or modify License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A ...
Copyright ( C ) 2012 - 2013 < llonch.jordi at gmail dot com > it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the You should have received a copy of the GNU Affero General Public License -module(eggs_area_handler). -behaviour(ge...
86df1f8a47d3143294ee60d9108b52022bae7260032828b9dc23782d8925da5a
slyrus/mcclim-old
esa.lisp
-*- Mode : Lisp ; Package : ESA -*- ( c ) copyright 2005 by ( ) ( c ) copyright 2006 - 2007 by ( ) ;;; This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundatio...
null
https://raw.githubusercontent.com/slyrus/mcclim-old/354cdf73c1a4c70e619ccd7d390cb2f416b21c1a/ESA/esa.lisp
lisp
Package : ESA -*- This library is free software; you can redistribute it and/or either This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU License along with this library...
( c ) copyright 2005 by ( ) ( c ) copyright 2006 - 2007 by ( ) modify it under the terms of the GNU Library General Public version 2 of the License , or ( at your option ) any later version . Library General Public License for more details . You should have received a copy ...
3b4c1ae9232a29f34a2363ae414a01a180f403df1534b1bec176b716a38eac31
brendanhay/gogol
Delete.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/fffd4d98a1996d0ffd4cf64545c5e8af9c976cda/lib/services/gogol-tagmanager/gen/Gogol/TagManager/Accounts/Containers/Workspaces/Delete.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated Deletes a Workspace. /See:/ <-manager Tag Manager API Reference> for @tagmanager.accounts.containers.workspaces.delete@. * Resource ** Constructing a Request | A resource alias for @tagmanager.accounts.containers.workspaces.d...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
6738fd51726a9b77a51d76e24e843977341951605e7e4e852bc6e7a33f232e0e
zellige/hs-geojson
GeoFeatureTests.hs
module Data.Geospatial.Internal.GeoFeatureTests where import qualified Data.Aeson as A -- Local import Fixture import Test.Hspec ( Spec, context, describe, it, shouldBe, ) import Test.Tasty import Test.Tasty.Hspec ( testSpec, ) -- Tests tests :: IO TestTree tests = do specs <- specTests p...
null
https://raw.githubusercontent.com/zellige/hs-geojson/63d89670c5daaa7b5093c6d638e34846a44e0f12/test/Data/Geospatial/Internal/GeoFeatureTests.hs
haskell
Local Tests >>> (A.decode . BS.pack) bigFeatureJSON == Just bigFeature True True >>> (A.decode . BS.pack) featureWithNoIdJSON == Just featureWithNoId True >>> (A.decode . BS.pack) featureWithNoBBoxJSON == Just featureWithNoBBox True True >>> (A.decode . A.encode) bigFeature == Just bigFeature True >>...
module Data.Geospatial.Internal.GeoFeatureTests where import qualified Data.Aeson as A import Fixture import Test.Hspec ( Spec, context, describe, it, shouldBe, ) import Test.Tasty import Test.Tasty.Hspec ( testSpec, ) tests :: IO TestTree tests = do specs <- specTests pure $ testGroup "D...
1b79e1ec8447133686a724a81c165181bdbd4d8e0c528bfcf5d8886f8cff10db
ghcjs/jsaddle-dom
WebKitNamespace.hs
# LANGUAGE PatternSynonyms # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.WebKitNamespace (getMessageHandlers, WebKitNamespace(..), gTypeWebKitNamespace) where import Prelude ((.), (...
null
https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/WebKitNamespace.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | <-US/docs/Web/API/WebKitNamespace.messageHandlers Mozilla WebKitNamespace.messageHandlers documentation>
# LANGUAGE PatternSynonyms # # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.WebKitNamespace (getMessageHandlers, WebKitNamespace(..), gTypeWebKitNamespace) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac...
952f6d89f6d48fa5337d08cf9d6a0264e6f48e2dd5c1cbffd0736e190a007e0b
SimulaVR/godot-haskell
AStar2D.hs
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.AStar2D (Godot.Core.AStar2D.add_point, Godot...
null
https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/AStar2D.hs
haskell
@ var astar = AStar2D.new() @ If there already exists a point for the given @id@, its position and weight scale are updated to the given values. @ var astar = AStar2D.new() @ If there already exists a point for the given @id@, its p...
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.AStar2D (Godot.Core.AStar2D.add_point, Godot...
f33dce916681ec2a283d22f7609181f7f3cc1f1995fb94c7f61b1297aaa4cfd2
HaskellForCats/HaskellForCats
3_1_quickSort.hs
module QuickSort where f : : t = > [ t ] - > [ t ] f [] = [] f (x:xs) = f ys ++ [x] ++ f zs where ys = [a | a <- xs, a <= x ] zs = [b | b <- xs, b > x ] ! ! note : xs means list [ ] ys means a list ...
null
https://raw.githubusercontent.com/HaskellForCats/HaskellForCats/2d7a15c0cdaa262c157bbf37af6e72067bc279bc/30MinHaskell/3_1_quickSort.hs
haskell
list comprehension ----------- list comprehension -----------
module QuickSort where f : : t = > [ t ] - > [ t ] f [] = [] f (x:xs) = f ys ++ [x] ++ f zs where ys = [a | a <- xs, a <= x ] zs = [b | b <- xs, b > x ] ! ! note : xs means list [ ] ys means a list ...
b0cb500a00274b48be97a3f15b613a9b5d9051515b390bbf7d249e7d9c877391
input-output-hk/cardano-wallet-legacy
Accounts.hs
module Cardano.Wallet.WalletLayer.Kernel.Accounts ( createAccount , getAccount , getAccountBalance , getAccountAddresses , getAccounts , deleteAccount , updateAccount ) where import Universum import Data.Coerce (coerce) import qualified Pos.Core as Core import Pos.Cryp...
null
https://raw.githubusercontent.com/input-output-hk/cardano-wallet-legacy/143e6d0dac0b28b3274600c6c49ec87e42ec9f37/src/Cardano/Wallet/WalletLayer/Kernel/Accounts.hs
haskell
| Creates a new account. It does @not@ create a default address to go alongside this wallet nor it should be, as the invariant applies only to new wallet being created/restored and is enforced elsewhere. | Retrieves a full set of accounts. NOTE(adn) [CBR-347] This has currently terrible performance due to the ker...
module Cardano.Wallet.WalletLayer.Kernel.Accounts ( createAccount , getAccount , getAccountBalance , getAccountAddresses , getAccounts , deleteAccount , updateAccount ) where import Universum import Data.Coerce (coerce) import qualified Pos.Core as Core import Pos.Cryp...
7b5d1795695f21c1601b29ba36c88941aaf83b97db24a1e0fe964a05720e5dbc
yetibot/core
nil.clj
(ns yetibot.core.commands.nil (:require [clojure.string :as s] [yetibot.core.chat :refer [suppress]] [yetibot.core.hooks :refer [cmd-hook]])) (defn nil-cmd "nil # eats all passed args; equivalent to writing to /dev/null" {:yb/cat #{:util}} [_] (suppress {})) (cmd-hook #"nil" _ nil-cmd)...
null
https://raw.githubusercontent.com/yetibot/core/e35cc772622e91aec3ad7f411a99fff09acbd3f9/src/yetibot/core/commands/nil.clj
clojure
(ns yetibot.core.commands.nil (:require [clojure.string :as s] [yetibot.core.chat :refer [suppress]] [yetibot.core.hooks :refer [cmd-hook]])) (defn nil-cmd "nil # eats all passed args; equivalent to writing to /dev/null" {:yb/cat #{:util}} [_] (suppress {})) (cmd-hook #"nil" _ nil-cmd)...
4f53b07e24bcc8037c323d291f90753baaf9003cb1808b50dee32d4a473f0118
pixlsus/registry.gimp.org_static
elsamuko-naturalize.scm
; The GIMP -- an image manipulation program Copyright ( C ) 1995 and ; ; 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 ; (at your option) any later ve...
null
https://raw.githubusercontent.com/pixlsus/registry.gimp.org_static/ffcde7400f402728373ff6579947c6ffe87d1a5e/registry.gimp.org/files/elsamuko-naturalize.scm
scheme
The GIMP -- an image manipulation program This program is free software; you can redistribute it and/or modify either version 3 of the License , or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of ...
Copyright ( C ) 1995 and it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License Foundation , Inc. , 675 Mass Ave , Cambridge , , USA . Copyright ( C ) 2013 elsamuko < > (define (elsamuko-naturalize aimg adraw) (let* ((i...
a3c10ebf1bb9dc8440ffd95506e09c4a0e19ed3b14ab8f1d65c60b1907704d79
ssor/erlangDemos
http_SUITE.erl
Copyright ( c ) 2011 - 2012 , < > Copyright ( c ) 2011 , < > %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above %% copyright notice and this permission notice appear in all copies. %% THE SOFTWARE IS PROVID...
null
https://raw.githubusercontent.com/ssor/erlangDemos/632cd905be2c4f275f1c1ae15238e711d7bb9147/cowboy/test/http_SUITE.erl
erlang
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVE...
Copyright ( c ) 2011 - 2012 , < > Copyright ( c ) 2011 , < > THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN -module(http_SUITE). ...
1c5b8f8ef415f1ff9c92cc7f0eead3a6d890c7ee53dd826b560c1cae1b2ee6e8
ashinkarov/heh
test_eval_imap.ml
open OUnit open Printf open Storage open Value open Valueops open Eval open Test_common let test_eval_imap _ = let prg01 = "imap [0]|[] { [0] <= iv < [0]: 10 " in let st, p = eval_prog prg01 in let v = st_lookup st p in assert_equal ~msg:"`%s' evaluates to VImap" (value_i...
null
https://raw.githubusercontent.com/ashinkarov/heh/42866803b2ffacdc42b8f06203bf4e5bd18e03b0/tests/test_eval_imap.ml
ocaml
Regular test. Out of bound access. Partition out of bounds. Does not form partitioning. Make sure that constant imap can be used in selection. Make sure that imap defining functions works correctly.
open OUnit open Printf open Storage open Value open Valueops open Eval open Test_common let test_eval_imap _ = let prg01 = "imap [0]|[] { [0] <= iv < [0]: 10 " in let st, p = eval_prog prg01 in let v = st_lookup st p in assert_equal ~msg:"`%s' evaluates to VImap" (value_i...
dcdd7bc2091321a05cda8605da674b89f9a5e2bfd6fc4e3d60cc5be71dbfced6
helmutkian/cl-wasm-runtime
test-instance.lisp
(in-package #:cl-wasm-runtime.test) (5am:def-suite cl-wasm-runtime.test.instance :in cl-wasm-runtime.test) (5am:in-suite cl-wasm-runtime.test.instance) (5am:test test-make-wasm-instance (5am:finishes (let* ((engine (make-wasm-engine)) (store (make-wasm-store engine)) (module (wat-to-wasm-module store...
null
https://raw.githubusercontent.com/helmutkian/cl-wasm-runtime/7f6ce43a1b1a67cbda2868a9d1af029145fd618d/test/test-instance.lisp
lisp
(in-package #:cl-wasm-runtime.test) (5am:def-suite cl-wasm-runtime.test.instance :in cl-wasm-runtime.test) (5am:in-suite cl-wasm-runtime.test.instance) (5am:test test-make-wasm-instance (5am:finishes (let* ((engine (make-wasm-engine)) (store (make-wasm-store engine)) (module (wat-to-wasm-module store...
6a23fea49e30a5bce94a0ddd72aaedea71d314646ae8e063f498f8de545142e4
tsloughter/kuberl
kuberl_v2beta1_horizontal_pod_autoscaler_status.erl
-module(kuberl_v2beta1_horizontal_pod_autoscaler_status). -export([encode/1]). -export_type([kuberl_v2beta1_horizontal_pod_autoscaler_status/0]). -type kuberl_v2beta1_horizontal_pod_autoscaler_status() :: #{ 'conditions' := list(), 'currentMetrics' => list(), 'currentReplicas' := integer(), ...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v2beta1_horizontal_pod_autoscaler_status.erl
erlang
-module(kuberl_v2beta1_horizontal_pod_autoscaler_status). -export([encode/1]). -export_type([kuberl_v2beta1_horizontal_pod_autoscaler_status/0]). -type kuberl_v2beta1_horizontal_pod_autoscaler_status() :: #{ 'conditions' := list(), 'currentMetrics' => list(), 'currentReplicas' := integer(), ...
eb86e7ad6fa664cff9544d659c2b6bd7d72ed68fde34c0f392962484d92f6439
SimonHauguel/Paso
TypesAnnotations.hs
module Paso.Parser.Types.TypesAnnotations where import qualified Text.Megaparsec as MG import Text.Megaparsec ( (<|>) , try , many ) imp...
null
https://raw.githubusercontent.com/SimonHauguel/Paso/61ae95f4b6383b400bd9fd03b07c2a92802ad220/src/Paso/Parser/Types/TypesAnnotations.hs
haskell
module Paso.Parser.Types.TypesAnnotations where import qualified Text.Megaparsec as MG import Text.Megaparsec ( (<|>) , try , many ) imp...
0a9dc12a8502cbc946981cf6438481f636c16b56e56f879b1fad4bf1681f1ae0
camsaul/toucan2
before_insert_test.clj
(ns toucan2.tools.before-insert-test (:require [clojure.edn :as edn] [clojure.string :as str] [clojure.test :refer :all] [clojure.walk :as walk] [toucan2.insert :as insert] [toucan2.instance :as instance] [toucan2.select :as select] [toucan2.test :as test] [toucan2.tools.before-insert :as b...
null
https://raw.githubusercontent.com/camsaul/toucan2/5204b34d46f5adb3e52b022218049abe9b336928/test/toucan2/tools/before_insert_test.clj
clojure
trigger a DB-land error
(ns toucan2.tools.before-insert-test (:require [clojure.edn :as edn] [clojure.string :as str] [clojure.test :refer :all] [clojure.walk :as walk] [toucan2.insert :as insert] [toucan2.instance :as instance] [toucan2.select :as select] [toucan2.test :as test] [toucan2.tools.before-insert :as b...
acd3498ba084d0acb294cab8a121523ae948a9565ac6e4a781d20d2bd757ece7
ros/roslisp
test-lxml-dom.lisp
;;;; -*- mode: lisp -*- ;;;; $ I d : test - lxml - dom.lisp , v 1.2 2005/11/06 12:44:48 scaekenberghe Exp $ ;;;; Unit and functional tests for ;;;; Copyright ( C ) 2002 , 2004 , Beta Nine BVBA . ;;;; ;;;; You are granted the rights to distribute and use this software as governed by the terms of the Lisp Les...
null
https://raw.githubusercontent.com/ros/roslisp/559355a8d695e34e6dedae071a9af2c065411687/s-xml/test/test-lxml-dom.lisp
lisp
-*- mode: lisp -*- You are granted the rights to distribute and use this software (), also known as the LLGPL.
$ I d : test - lxml - dom.lisp , v 1.2 2005/11/06 12:44:48 scaekenberghe Exp $ Unit and functional tests for Copyright ( C ) 2002 , 2004 , Beta Nine BVBA . as governed by the terms of the Lisp Lesser General Public License (in-package :s-xml) (assert (equal (with-input-from-string (stream " <foo/>") (...
d2b61b9b5c6ff6bfb5873ab8fef77693a6d7435758b547ad25ad41c7202bb57b
BetterThanTomorrow/joyride
hello_joyride_workspace_script.cljs
(ns hello-joyride-workspace-script (:require ["vscode" :as vscode] [joyride.core :as joyride] [promesa.core :as p])) This is a sample Joyride Workspace script ;; See ;; for more examples. (comment (sort ["🥚" "🐔"]) (+ 1 2 39) (println "Hello World") ) You probably also want to...
null
https://raw.githubusercontent.com/BetterThanTomorrow/joyride/1964d45d15e69f58045de4e4033f61b52c339c1c/assets/getting-started-content/workspace/hello_joyride_workspace_script.cljs
clojure
See for more examples. It will guide you through the basics. (joyride/invoked-script) will return * the absolute path to the file of this script when command. * `nil` if this file is loaded in the REPL That's why you can load it without `my-main` getting called, but it will get called when you run the scrip...
(ns hello-joyride-workspace-script (:require ["vscode" :as vscode] [joyride.core :as joyride] [promesa.core :as p])) This is a sample Joyride Workspace script (comment (sort ["🥚" "🐔"]) (+ 1 2 39) (println "Hello World") ) You probably also want to install the Calva VS Code Ext...
1f4a9847ec708de0721905294de803928d502d363dcd5869a05117acb4a24af5
apibot-org/apibot
config.cljs
(ns apibot.views.inspector.config "" (:require [apibot.grexec :as grexec] [apibot.grexec.config-node :as config-node] [apibot.coll :refer [remove-element-at]] [apibot.views.commons :as commons :refer [form-group-bindable input-bindable cursor-vec]] [cljs.spec.alpha :as s] [reagent.core :refe...
null
https://raw.githubusercontent.com/apibot-org/apibot/26c77c688980549a8deceeeb39f01108be016435/src/cljs/apibot/views/inspector/config.cljs
clojure
--- Model --- --- Views --- The "key" part of the prop The "value" part of the prop The node's name Render the list of props A button that adds a new empty config to the graph.
(ns apibot.views.inspector.config "" (:require [apibot.grexec :as grexec] [apibot.grexec.config-node :as config-node] [apibot.coll :refer [remove-element-at]] [apibot.views.commons :as commons :refer [form-group-bindable input-bindable cursor-vec]] [cljs.spec.alpha :as s] [reagent.core :refe...
88a84388f03f2dd73ad1155ae51b6939e286b1977ad8f43eafc8d724d291bee6
kadena-io/pact
Db.hs
# LANGUAGE FlexibleInstances # # LANGUAGE RecordWildCards # {-# LANGUAGE BangPatterns #-} # LANGUAGE TupleSections # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE ViewPatterns # {-# LANGUAGE GADTs #-} -- ...
null
https://raw.githubusercontent.com/kadena-io/pact/603f1523162c95742fb3e040ac065ff82f2b2aea/src/Pact/Native/Db.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE RankNTypes # # LANGUAGE OverloadedStrings # # LANGUAGE GADTs # | License : BSD-style (see the file LICENSE) Builtins for database access. | TODO improve post-streaming current version ok hash is blessed
# LANGUAGE FlexibleInstances # # LANGUAGE RecordWildCards # # LANGUAGE TupleSections # # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE ViewPatterns # Module : Pact . Native . Db Copyright : ( C ) 2016 Maintainer : < > module Pact.Native.Db ...
a500254f90c3bd4302d1ee1de1dc2754237e4359508f01e99bb76c674d2b178a
facebookarchive/duckling_old
time.clj
( ;; generic "intersect" sequence of two tokens with a time dimension (intersect %1 %2) FIXME same thing , with " of " in between like " Sunday of last week " " intersect by \"of\ " , " , \"'s\ " " [ ( dim : time # ( not (: latent % ) ) ) # " ( ? i)of|from|for| 's " ( dim : time # ( not (: latent %...
null
https://raw.githubusercontent.com/facebookarchive/duckling_old/bf5bb9758c36313b56e136a28ba401696eeff10b/resources/languages/ga/rules/time.clj
clojure
generic sequence of two tokens with a time fn this is a separate rule, because commas separate very specific tokens so we want this rule's classifier to learn this FIXME does NOT dissoc latent ar an luan does NOT dissoc latent dé luain does NOT dissoc latent an luan does NOT dissoc latent Named things fo...
( "intersect" sequence of two tokens with a time dimension (intersect %1 %2) FIXME same thing , with " of " in between like " Sunday of last week " " intersect by \"of\ " , " , \"'s\ " " ( intersect % 1 % 3 ) mostly for January 12 , 2005 "intersect by \",\"" sequence of two tokens with a time ...
610c42cab42b5588510817eb79848dc5201ae79d6cc81086ef58b76e7cce1a32
startalkIM/ejabberd
oauth2_mock_backend.erl
%% ---------------------------------------------------------------------------- %% : Erlang OAuth 2.0 implementation %% Copyright ( c ) 2012 - 2014 Kivra %% %% Permission is hereby granted, free of charge, to any person obtaining a %% copy of this software and associated documentation files (the "Software"), to ...
null
https://raw.githubusercontent.com/startalkIM/ejabberd/718d86cd2f5681099fad14dab5f2541ddc612c8b/deps/p1_oauth2/test/oauth2_mock_backend.erl
erlang
---------------------------------------------------------------------------- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, publish, distribute, sublicense, Software is fur...
: Erlang OAuth 2.0 implementation Copyright ( c ) 2012 - 2014 Kivra to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WIT...
b0a5a1b0744d725a682b1bb5127a0f71012c16b18b3e03077a8b625efa5138f2
eliast/mongo-erlang-driver
mongodb.erl
%%%---------------------------------------------------------------------- %%% File : mongodb.erl Author : < > %%% Purpose : Erlang MongoDB Driver %%%---------------------------------------------------------------------- -module(mongodb). -author(''). -behavior(gen_server). -define(SERVER, ?MODULE). -inclu...
null
https://raw.githubusercontent.com/eliast/mongo-erlang-driver/18c32fcd045350ccf478f34fad7400be6db6f72d/src/mongodb.erl
erlang
---------------------------------------------------------------------- File : mongodb.erl Purpose : Erlang MongoDB Driver ---------------------------------------------------------------------- API functions gen_server callbacks count of how many outstanding calls are assigned to this connection pid of the proc...
Author : < > -module(mongodb). -author(''). -behavior(gen_server). -define(SERVER, ?MODULE). -include("mongodb.hrl"). -include_lib("eunit/include/eunit.hrl"). -compile(export_all). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, code_change/3, te...
f619cf3703b2eea73d6c275e18e3b05316b42781820b5f94c8236cb5da0d3b76
ucsd-progsys/nate
opentracer.ml
(***********************************************************************) (* ocamlbuild *) (* *) , , projet Gallium , INRIA Rocquencourt (* ...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/ocamlbuild/misc/opentracer.ml
ocaml
********************************************************************* ocamlbuild ...
, , projet Gallium , INRIA Rocquencourt Copyright 2007 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : opentracer.ml , v 1.1 2007/02/07 08:59:15 er...
dbb28be548470b6c605fd64404f7c27e684d0cabfc8bb8fec2d7af0f12e0e373
rrnewton/haskell-lockfree
Foreign.hs
# LANGUAGE FlexibleInstances , UndecidableInstances , MagicHash , TypeFamilies , MultiParamTypeClasses , OverlappingInstances , BangPatterns , CPP # TypeFamilies, MultiParamTypeClasses, OverlappingInstances, BangPatterns, CPP #-} | This is a version of CAS that works outside of by using t...
null
https://raw.githubusercontent.com/rrnewton/haskell-lockfree/87122157cbbc96954fcc575b4b110003d3e5c2f8/Obsolete_Deprecated/IORefCAS/Data/CAS/Internal/Foreign.hs
haskell
Plus instance... the cost of a runtime dispatch on CASRef representations. (Compile time dispatch is not possible due to impossibility of overlapping instances with associated type families.) ------------------------------------------------------------------------------ | EXAMPLE SPECIALIZATION: a more efficient ...
# LANGUAGE FlexibleInstances , UndecidableInstances , MagicHash , TypeFamilies , MultiParamTypeClasses , OverlappingInstances , BangPatterns , CPP # TypeFamilies, MultiParamTypeClasses, OverlappingInstances, BangPatterns, CPP #-} | This is a version of CAS that works outside of by using t...
00a446fccca1e0682b6f7a78bebea152eed7116f485f7df0d8e1f6e4a332b623
aryx/xix
eval_const.mli
exception NotAConstant type error = Check.error exception Error of error type integer = int type env = (Ast.fullname, integer * Type.integer_type) Hashtbl.t (* may raise NotAConstant or Error *) val eval: env -> Ast.expr -> integer
null
https://raw.githubusercontent.com/aryx/xix/60ce1bd9a3f923e0e8bb2192f8938a9aa49c739c/compiler/eval_const.mli
ocaml
may raise NotAConstant or Error
exception NotAConstant type error = Check.error exception Error of error type integer = int type env = (Ast.fullname, integer * Type.integer_type) Hashtbl.t val eval: env -> Ast.expr -> integer
2b6ed9ae04d29c908b7ec8b748b0f5f678899d1b44633d4fa32f7cbc1c7db588
OCamlPro/ocaml-perf
perf.mli
module Attr : sig type flag = | Disabled (** off by default *) | Inherit (** children inherit it *) | Exclude_user (** don't count user *) | Exclude_kernel (** don't count kernel *) | Exclude_hv (** don't count hypervisor *) | Exclude_idle (** don't count when idle *) | Enable_on_exec (** ...
null
https://raw.githubusercontent.com/OCamlPro/ocaml-perf/04664465c3f6e4bb5cc37515898d96d68909832b/lib/perf.mli
ocaml
* off by default * children inherit it * don't count user * don't count kernel * don't count hypervisor * don't count when idle * next exec enables * Hardware * Software * Opaque type of a perf event attribute. * [make ?flags kind] is a perf event attribute of type [kind], with flags [flags]. * This fl...
module Attr : sig type flag = module Kind : sig type t = | Cycles | Instructions | Cache_references | Cache_misses | Branch_instructions | Branch_misses | Bus_cycles | Stalled_cycles_frontend | Stalled_cycles_backend | Ref_cpu_cycles | Cpu_cloc...
0748009694b05e883ec0ac3e7c5b5d9d1834b5f90a8c107c9d53dbdd8a1597b0
0xd34df00d/coformat
StyOpts.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts , GADTs # {-# LANGUAGE RecordWildCards, OverloadedStrings #-} module Clang.Format.StyOpts where import qualified Data.ByteString.Char8 as BS import qualified Data.ByteString.Lazy.Char8 as BSL import qualified Data.HashMap.Strict as HM import qualified Data.Text as T ...
null
https://raw.githubusercontent.com/0xd34df00d/coformat/5ea8cf57d9df08e6b72d341e4c73f9933cad8a3d/src/Clang/Format/StyOpts.hs
haskell
# LANGUAGE RecordWildCards, OverloadedStrings #
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts , GADTs # module Clang.Format.StyOpts where import qualified Data.ByteString.Char8 as BS import qualified Data.ByteString.Lazy.Char8 as BSL import qualified Data.HashMap.Strict as HM import qualified Data.Text as T import Control.Lens import Data.Aeson import Data.Ae...
f8c2e2f156e448122558ea28d859b6837eb67a2e1630a3fa8993018f5b7c18af
lemmaandrew/CodingBatHaskell
mapBully.hs
From Modify and return the given map as follows : if the key \"a\ " has a value , set the key \"b\ " to have that value , and set the key \"a\ " to have the value \"\ " . Basically \"b\ " is a bully , taking the value and replacing it with the empty string . Modify and return the given map as follows: if the...
null
https://raw.githubusercontent.com/lemmaandrew/CodingBatHaskell/d839118be02e1867504206657a0664fd79d04736/CodingBat/Map-1/mapBully.hs
haskell
From Modify and return the given map as follows : if the key \"a\ " has a value , set the key \"b\ " to have that value , and set the key \"a\ " to have the value \"\ " . Basically \"b\ " is a bully , taking the value and replacing it with the empty string . Modify and return the given map as follows: if the...
8681821050a2c0972319e38a9d8c8583ba21d4e8f10024d5a40a80ad98f07af1
erdos/stencil
service.clj
(ns stencil.service (:gen-class) (:import [java.io File]) (:require [org.httpkit.server :refer [run-server]] [stencil.api :as api] [stencil.functions] [stencil.log :as log] [stencil.slf4j :as slf4j] [clojure.data :refer [diff]] [clojure.java....
null
https://raw.githubusercontent.com/erdos/stencil/92a7dab98affd26ac7c32ab7c4ba5477f5ad1633/service/src/stencil/service.clj
clojure
so they dont start with /
(ns stencil.service (:gen-class) (:import [java.io File]) (:require [org.httpkit.server :refer [run-server]] [stencil.api :as api] [stencil.functions] [stencil.log :as log] [stencil.slf4j :as slf4j] [clojure.data :refer [diff]] [clojure.java....
f268dbfc5f1c9fff579419d9b5f85d3b35565709df4858125c050decdf1a206c
gfredericks/clomp
tasks.clj
(deftask test #{compile})
null
https://raw.githubusercontent.com/gfredericks/clomp/74572e5820d07ba87604334f3cbd092941714e0d/tasks.clj
clojure
(deftask test #{compile})
4e81e3903e1e427a960ecb7e27dbe74e06c2675b69b1da87bf70804d71616747
alan-turing-institute/advent-of-code-2021
script.rkt
#lang racket (define lines (map string-split (file->lines "input"))) ; Part 1 (define (filter-command cmd lines) (map (lambda (s) (string->number (first (rest s)))) (filter (lambda (pair) (equal? (first pair) cmd)) lines))) (define ups (filter-command "up" lines)) (define downs (filter-command "d...
null
https://raw.githubusercontent.com/alan-turing-institute/advent-of-code-2021/b5f3c163464f0d9403b66147ad7d833176ed59a8/day-02/racket_mhauru/script.rkt
racket
Part 1
#lang racket (define lines (map string-split (file->lines "input"))) (define (filter-command cmd lines) (map (lambda (s) (string->number (first (rest s)))) (filter (lambda (pair) (equal? (first pair) cmd)) lines))) (define ups (filter-command "up" lines)) (define downs (filter-command "down" line...
21f9ac0b4f9b7c2f27a4afa8929cae2b112811e68aa3713621dd1f85e5ca2eba
puppetlabs/puppetdb
pdb_dataset_test.clj
(ns puppetlabs.puppetdb.cli.pdb-dataset-test (:require [clojure.test :refer [deftest is testing]] [puppetlabs.puppetdb.cli.pdb-dataset :refer [validate-cli!]] [puppetlabs.puppetdb.utils :as utils :refer [with-captured-throw]] [clojure.string :as str] [puppetlabs.kitchensink.core :as kitchensink]) ...
null
https://raw.githubusercontent.com/puppetlabs/puppetdb/b3d6d10555561657150fa70b6d1e609fba9c0eda/test/puppetlabs/puppetdb/cli/pdb_dataset_test.clj
clojure
(ns puppetlabs.puppetdb.cli.pdb-dataset-test (:require [clojure.test :refer [deftest is testing]] [puppetlabs.puppetdb.cli.pdb-dataset :refer [validate-cli!]] [puppetlabs.puppetdb.utils :as utils :refer [with-captured-throw]] [clojure.string :as str] [puppetlabs.kitchensink.core :as kitchensink]) ...
8b260bf59aff0cfcad24cd5a5ef90228745ceb2effef53b544b0c8025acdf886
mx-psi/quantum-algorithms
Print.hs
Title : Print Module Description : Module for printing of circuits Author : Title: Print Module Description: Module for printing of circuits Author: Pablo Baeyens -} module Print(captureTo, printToFile, defaultOutputPath, defaultStyle, logPrint) where impor...
null
https://raw.githubusercontent.com/mx-psi/quantum-algorithms/abc046f877ba0522696278380b4f55a0e43b846b/src/lib/Print.hs
haskell
| The default style used for circuits | Capture output to a file Capture stdout to a given handle and return a duplicate of stdout Restore stdout | Print a circuit to a file | Log that a certain file is being printed | Default path to store output files
Title : Print Module Description : Module for printing of circuits Author : Title: Print Module Description: Module for printing of circuits Author: Pablo Baeyens -} module Print(captureTo, printToFile, defaultOutputPath, defaultStyle, logPrint) where impor...
afe5bf5948d0d73f3643f758a099d5edc0da93a82a31497badcbe87e6109cfec
xysun/sbe-erlang
test_encodeddatatype.erl
% test various encoded data type generation -module(test_encodeddatatype). -include_lib("eunit/include/eunit.hrl"). -include_lib("xmerl/include/xmerl.hrl"). -include("../src/types.hrl"). multiple_types_test() -> Xmlstring = "<messageSchema>" ++" <types>" ++" <type name='testT...
null
https://raw.githubusercontent.com/xysun/sbe-erlang/974a2b1a4c82402f377a397f4525995db283c918/test/test_encodeddatatype.erl
erlang
test various encoded data type generation should return correct size for primitive types
-module(test_encodeddatatype). -include_lib("eunit/include/eunit.hrl"). -include_lib("xmerl/include/xmerl.hrl"). -include("../src/types.hrl"). multiple_types_test() -> Xmlstring = "<messageSchema>" ++" <types>" ++" <type name='testType1' primitiveType='char'/>" ...
283ae19f258c595ee3b2a3b883846a102d6e43e72bd1f8266932db201c2c2148
vaibhavsagar/experiments
POpen.hs
----------------------------------------------------------------------------- -- -- Module : POpen Copyright : ( c ) The University of Glasgow 2002 ( c ) 2001 - 2002 -- License : BSD-style -- -- Maintainer : -- Stability : experimental -- Portability : non-portable (requires POSIX...
null
https://raw.githubusercontent.com/vaibhavsagar/experiments/378d7ba97eabfc7bbeaa4116380369ea6612bfeb/hugs/fptools/hslibs/posix/POpen.hs
haskell
--------------------------------------------------------------------------- Module : POpen License : BSD-style Maintainer : Stability : experimental Portability : non-portable (requires POSIX support from the OS) Convenient string input to and output from a subprocess --------------------...
Copyright : ( c ) The University of Glasgow 2002 ( c ) 2001 - 2002 $ I d : POpen.hs , v 1.6 2004/10/06 09:36:44 ross Exp $ It provides two functions popen and popenEnvDir . * popenEnvDir in addition lets one specify the environment This code is originally based on Posix.runProcess , but it m...
9a484214efb74a661eb1cf56ea663fe93cbf00c1b8581b2d623f99e44bb9e36a
Eduap-com/WordMat
simplex_algorithm.lisp
;;; -*- Mode: Lisp -*- ;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ...
null
https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/share/simplex/simplex_algorithm.lisp
lisp
-*- Mode: Lisp -*- ;;;; ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;;; ;;; ;; ;;; ...
(in-package :maxima) (macsyma-module simplex) ($put '$simplex 1.02 '$version) (defmvar $pivot_count_sx 0 "Number of pivots in last problem." fixnum) (defmvar $pivot_max_sx 15000 "Maximum number of pivots allowed." fixnum) (defmvar $epsilon_lp 1e-8 "Epsilon for numerical computation." flonum) (defm...
5dd6e542f7a47fef2beeed270d9034f79607ed247b342e38b85d695b25af7f22
douglastofoli/dotfiles
Variables.hs
module XMonad.Custom.Variables where import XMonad import XMonad.StackSet as W import qualified XMonad.Custom.Colors.Dracula as C myFont :: String myFont = "xft:RobotoMono Nerd Font:regular:size=11:antialias=true:hinting=true" myModMask :: KeyMask myModMask = mod4Mask myTerminal :: String myTerminal = "alacritty" ...
null
https://raw.githubusercontent.com/douglastofoli/dotfiles/acbe7ec3498d66fbed974a50b780c1c174b9920f/config/xmonad/src/XMonad/Custom/Variables.hs
haskell
module XMonad.Custom.Variables where import XMonad import XMonad.StackSet as W import qualified XMonad.Custom.Colors.Dracula as C myFont :: String myFont = "xft:RobotoMono Nerd Font:regular:size=11:antialias=true:hinting=true" myModMask :: KeyMask myModMask = mod4Mask myTerminal :: String myTerminal = "alacritty" ...
9512bd0636f4740c794b58386079a42932068332df4d487ed6b3572eeb4fa6f4
michiakig/LispInSmallPieces
chap10g.scm
$ I d : chap10g.scm , v 4.1 1996/02/18 20:09:12 queinnec Exp $ ;;;(((((((((((((((((((((((((((((((( L i S P )))))))))))))))))))))))))))))))) ;;; This file is part of the files that accompany the book: LISP Implantation Semantique Programmation ( InterEditions , France ) By Christian Queinnec < > ;;; Newest v...
null
https://raw.githubusercontent.com/michiakig/LispInSmallPieces/0a2762d539a5f4c7488fffe95722790ac475c2ea/src/chap10g.scm
scheme
(((((((((((((((((((((((((((((((( L i S P )))))))))))))))))))))))))))))))) This file is part of the files that accompany the book: Newest version may be retrieved from: Check the README file before using this file. (((((((((((((((((((((((((((((((( L i S P )))))))))))))))))))))))))))))))) Some additional code walker...
$ I d : chap10g.scm , v 4.1 1996/02/18 20:09:12 queinnec Exp $ LISP Implantation Semantique Programmation ( InterEditions , France ) By Christian Queinnec < > ( IP 128.93.2.54 ) ftp.inria.fr : INRIA / Projects / icsla / Books / LiSP*.tar.gz (define-class Renamed-Local-Variable Variable (index)) (defin...
4fd418098ff7950651cd36d858c3c25dc67b06862ae6c523a2d03f298dfd11e9
avsm/platform
opamFileTools.ml
(**************************************************************************) (* *) Copyright 2012 - 2015 OCamlPro Copyright 2012 INRIA (* ...
null
https://raw.githubusercontent.com/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/opam-client.2.0.5%2Bdune/src/state/opamFileTools.ml
ocaml
************************************************************************ All rights reserved. This file is distributed under the terms of the exception on linking descr...
Copyright 2012 - 2015 OCamlPro Copyright 2012 INRIA GNU Lesser General Public License version 2.1 , with the special open OpamTypes open OpamTypesBase let log fmt = OpamConsole.log "opam-file" fmt open OpamFil...
cc32bf80dd0e237cdacb61e83841c84c54cef7e4ab0429e46f08ad919b6e2fd9
AshleyYakeley/Truth
Readable.hs
module Changes.Core.Read.Readable where import Changes.Core.Import type Readable m reader = forall (t :: Type). reader t -> m t hoistReadable :: forall m1 m2 reader. (m1 --> m2) -> Readable m1 reader -> Readable m2 reader hoistReadable mf mr rt = mf (mr rt) liftReadable :: forall t m reader. (MonadTrans t, M...
null
https://raw.githubusercontent.com/AshleyYakeley/Truth/d4321a4b82bb8f8f7b9b2d324f7a99b8a9dcb45f/Changes/changes-core/lib/Changes/Core/Read/Readable.hs
haskell
> m2) -> Readable m1 reader -> Readable m2 reader
module Changes.Core.Read.Readable where import Changes.Core.Import type Readable m reader = forall (t :: Type). reader t -> m t hoistReadable mf mr rt = mf (mr rt) liftReadable :: forall t m reader. (MonadTrans t, Monad m) => Readable m reader -> Readable (t m) reader liftReadable = hoistReadable lif...
f36f62e82ada342e94b2858f5115709cfa410bd7791f99b88cdf31edfb77a5a3
examachine/parallpairs
dynarray1.ml
* * * * ocaml module * * * Description : Array with dynamic size * * Yes , this is the original Dynarray from 2002 ! * * Modified to use . Array1 * * * * Author : ( exa ) < > , ( C ) 2002 - 2999 * * * * Copyright : See COPYING file that comes with this distribution * * ** ** ocaml module Dy...
null
https://raw.githubusercontent.com/examachine/parallpairs/6fafe8d6de3a55490cb8ed5ffd3493a28a914e0a/src/dynarray1.ml
ocaml
'kind must be a bigarray kind let iter_range f a (s,e) = for ix=s to e do f a.vec.(ix) done let map_range f a (s,e) = let m = make () in adjust_size m (e-s+1); for ix=s to e do m.vec.(ix-s) <- f a.vec.(ix) done; m
* * * * ocaml module * * * Description : Array with dynamic size * * Yes , this is the original Dynarray from 2002 ! * * Modified to use . Array1 * * * * Author : ( exa ) < > , ( C ) 2002 - 2999 * * * * Copyright : See COPYING file that comes with this distribution * * ** ** ocaml module Dy...
95dbf1835cef8895f54831faf41d9e8097aaf671d91e0ff62d5fc39eb6f16c00
janestreet/ecaml
symbol.mli
include Symbol_intf.Symbol
null
https://raw.githubusercontent.com/janestreet/ecaml/bd95b93799ccf809be26436b8379410c29282c4f/ecaml_value/src/symbol.mli
ocaml
include Symbol_intf.Symbol
c979e327224625fe473fd4870a6eb43c2b24055816f7e551675f9e129aa58c4e
mpelleau/AbSolute
argext.ml
This module is an extension of the Arg module of the stdlib (* It only adds functionnalities in it, nothing is removed *) include Arg (** adds the default float value to the description *) let default_float descr fref = Format.asprintf "%s.@.\tDefault value is %a." descr Format.pp_print_float !fref (** adds ...
null
https://raw.githubusercontent.com/mpelleau/AbSolute/c45a485fba17ab281d8fe099e915e398fa300280/absolute-solver/argext.ml
ocaml
It only adds functionnalities in it, nothing is removed * adds the default float value to the description * adds the default int value to the description * adds the default bool value to the description * adds the default bool value to the description * adds option value to the description * Augments the options...
This module is an extension of the Arg module of the stdlib include Arg let default_float descr fref = Format.asprintf "%s.@.\tDefault value is %a." descr Format.pp_print_float !fref let default_int descr iref = Format.asprintf "%s.@.\tDefault value is %i." descr !iref let default_bool descr bref = Form...
906d4643e490e1bc201e38852bacbc53a76eae0c87ded5f918f8c386fb451159
johnmn3/cljs-thread
sign_in.cljs
(ns dashboard.regs.sign-in (:require [re-frame.core :as rf] [cljs-thread.re-frame :refer [reg-sub]])) ;;; Subs (reg-sub :sign-in/errors :<- [:errors] (fn [errors _] (:sign-in errors))) ;;; Events (rf/reg-event-fx :sign-in (fn [{:keys [db]} [_ {:keys [userid password remember?]}]] (if (= password ...
null
https://raw.githubusercontent.com/johnmn3/cljs-thread/e98edc26ae71d1e17cea96a1f0e978df41b34d3f/shadow_dashboard/src/main/dashboard/regs/sign_in.cljs
clojure
Subs Events
(ns dashboard.regs.sign-in (:require [re-frame.core :as rf] [cljs-thread.re-frame :refer [reg-sub]])) (reg-sub :sign-in/errors :<- [:errors] (fn [errors _] (:sign-in errors))) (rf/reg-event-fx :sign-in (fn [{:keys [db]} [_ {:keys [userid password remember?]}]] (if (= password "top-secret") {...
a959b350682a8d92b0fe4e7d1e9fb35428084216a65574c93c7ae0693eb69ab7
Racket-Cookbooks/Plot-cookbook
plots-splines-text-outside.rkt
#lang racket (require plot latex-pict pict) ; to use latex (require (prefix-in jp: metapict)) ; to save in different formats ;(require metapict/save-pdf) ; to save plot as pdf by using save-pict-as-pdf ;(require metapict/save-svg) ; to save plo...
null
https://raw.githubusercontent.com/Racket-Cookbooks/Plot-cookbook/45fe07e64949503bae50a06da8f07435bd111ff9/examples/f2/plots-splines-text-outside.rkt
racket
to use latex to save in different formats (require metapict/save-pdf) ; to save plot as pdf by using save-pict-as-pdf (require metapict/save-svg) ; to save plot as svg by using save-pict-as-svg to make specific splines to make simple splines the current directory is the di...
#lang racket (define F2 (call-with-input-file* "F2.txt" (λ (in) (for/list ([l (in-lines in)]) contains two column of number separated by space - x y. to see F2 use ( displayln F1 ) (define spF2 (points->spline-evaluator make smoothed data function for plot F2 , regulated form of spline the scale of num...
9e25d739a5626856e9e9c1313c9acdd13e3013c11e46cb4d4b7512c68a9c0694
imitator-model-checker/imitator
Location.mli
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * IMITATOR * * Laboratoire Spécification et Vérification ( ENS Cachan & CNRS , France ) * Université Paris 13 , LIPN , CNRS , France * Université de Lorraine ,...
null
https://raw.githubusercontent.com/imitator-model-checker/imitator/105408ae2bd8c3e3291f286e4d127defd492a58b/src/Location.mli
ocaml
********************************************************** Modules ********************************************************** ********************************************************** * {2 Types} ********************************************************** * Unique identifier for each different global location * Glo...
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * IMITATOR * * Laboratoire Spécification et Vérification ( ENS Cachan & CNRS , France ) * Université Paris 13 , LIPN , CNRS , France * Université de Lorraine ,...
9ef402b409cbb93f78e605fd3c98a649fd8642920c5db70b9849e1f5da803db4
sanette/oplot
ode.ml
Dynamical Systems plugin for Oplot San Vu Ngoc --- Example : let f t y dydt = dydt.(0 ) < - sin ( t + . ( y.(0 ) ) ) ; ; let Array.make 1 0 . ; ; f 0 . [ |1.| ] ; ; let = Gsl.odeiv.make_system f 1 ; ; ( * système avec f , de dimension 1 Dynamical Systems plugin for Oplot San Vu Ngoc --- Ex...
null
https://raw.githubusercontent.com/sanette/oplot/a716771447527b0ecc0f9c2ad1f39f80e2ba9cb8/top/ode.ml
ocaml
système avec f, de dimension 1 on avance de 0.001. y contient la nouvelle valeur et yerr l'erreur résolution non adaptative (le pas est fixe, méthode fixe) résolution non adaptative (le pas est fixe, méthode fixe) ici f doit être à valeur tableau -> tableau [| x , y |] le résultat peut être vide (si t1 <= t0...
Dynamical Systems plugin for Oplot San Vu Ngoc --- Example : let f t y dydt = dydt.(0 ) < - sin ( t + . ( y.(0 ) ) ) ; ; let Array.make 1 0 . ; ; f 0 . [ |1.| ] ; ; let = Gsl.odeiv.make_system f 1 ; ; ( * système avec f , de dimension 1 Dynamical Systems plugin for Oplot San Vu Ngoc --- Ex...
801260a7290d4c0a4011160efa26204771105d7c0519580a7b9fcc28becf6ef5
Clozure/ccl
keytran.lisp
;;; -*- Log: hemlock.log; Package: extensions -*- ;;; ;;; ********************************************************************** This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . ;;; #+CMU (ext:file-comment "$Header$") ;;; ;;; *...
null
https://raw.githubusercontent.com/Clozure/ccl/6c1a9458f7a5437b73ec227e989aa5b825f32fd3/cocoa-ide/hemlock/unused/keytran.lisp
lisp
-*- Log: hemlock.log; Package: extensions -*- ********************************************************************** ********************************************************************** This file contains a default character translation mechanism for X11 more portable than writing our own translation based...
This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . #+CMU (ext:file-comment "$Header$") scan codes , , button codes , and modifier bits . Written by . (in-package "EXTENSIONS") (export '(define-keysym define-mouse-code de...
4a439a10d86ed40080634cd515e18e5be58e07461652fd3eff143a4a99608b30
baskeboler/cljs-karaoke-client
cheatsheet.cljs
(ns cljs-karaoke.views.cheatsheet (:require [clojure.string :as s] [cljs-karaoke.modals :as modals])) (def shortcuts [{:label "stop" :shortcut [:esc]} {:label "load song" :shortcut [:l :s]} {:label "enable options in playbay mode" :shortcut [[:alt :o]]} {:label "enable control pan...
null
https://raw.githubusercontent.com/baskeboler/cljs-karaoke-client/bb6512435eaa436d35034886be99213625847ee0/src/main/cljs_karaoke/views/cheatsheet.cljs
clojure
(ns cljs-karaoke.views.cheatsheet (:require [clojure.string :as s] [cljs-karaoke.modals :as modals])) (def shortcuts [{:label "stop" :shortcut [:esc]} {:label "load song" :shortcut [:l :s]} {:label "enable options in playbay mode" :shortcut [[:alt :o]]} {:label "enable control pan...
83fc65e6e04f5b68bf378121cf38c34312c547616cb0a7a2260d956022961584
michalkonecny/aern2
Type.hs
# LANGUAGE TemplateHaskell # module AERN2.Poly.Power.Type where import MixedTypesNumPrelude import AERN2.Poly.Basics import qualified Data.Map as Map import AERN2.MP.Ball hiding (iterateUntilAccurate) import AERN2.MP.Dyadic import Data.List import Data.Maybe iterateUntilAccurate :: (Precision -> a -> b) -> (b -> B...
null
https://raw.githubusercontent.com/michalkonecny/aern2/1c8f12dfcb287bd8e3353802a94865d7c2c121ec/aern2-fun-univariate/src/AERN2/Poly/Power/Type.hs
haskell
distance from centre on interval [-1,1] multiplication derivative should only be applied to exact polynomials auxiliary functions and instances auxiliary functions
# LANGUAGE TemplateHaskell # module AERN2.Poly.Power.Type where import MixedTypesNumPrelude import AERN2.Poly.Basics import qualified Data.Map as Map import AERN2.MP.Ball hiding (iterateUntilAccurate) import AERN2.MP.Dyadic import Data.List import Data.Maybe iterateUntilAccurate :: (Precision -> a -> b) -> (b -> B...
caff68a55fc395ab99ca8497d6706c8ee1f0fb313fc4b71dedac53ad6a12020a
eskimor/purescript-bridge
SumType.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE KindSignatures #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TemplateHaskell #-} # LANGUAGE TypeOperators # {-# LANGUAGE TypeSynonymI...
null
https://raw.githubusercontent.com/eskimor/purescript-bridge/b5b71f1864e58021ed3e850559f7b82ed9916e3e/src/Language/PureScript/Bridge/SumType.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE KindSignatures # # LANGUAGE OverloadedStrings # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeSynonymInstances # | Create a representation of your sum (and product) types, | Get all used types in a sum type. This includes a...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE TypeOperators # module Language.PureScript.Bridge.SumType ( SumType (..) , mkSumType , equal, order , DataConstructor (..) , RecordEntry (..) , Instance(..) , nootype , getUsedTypes , constructorToTypes , sigConstructor , sigVal...