_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 |
|---|---|---|---|---|---|---|---|---|
2b0d3d129c8e1aaaccd699c7734652fcb34e25367dabe4e0822c837252406d02 | CloudI/CloudI | metrics_exometer.erl | %%% -*- erlang -*-
%%%
This file is part of metrics released under the BSD license .
%%% See the LICENSE for more information.
%%%
%%% @doc metrics module for exometer
-module(metrics_exometer).
-export([
new/2,
delete/1,
increment_counter/1,
increment_counter/2,
decrement_counter/1,
decreme... | null | https://raw.githubusercontent.com/CloudI/CloudI/3e45031c7ee3e974ead2612ea7dd06c9edf973c9/src/external/cloudi_x_metrics/src/metrics_exometer.erl | erlang | -*- erlang -*-
See the LICENSE for more information.
@doc metrics module for exometer | This file is part of metrics released under the BSD license .
-module(metrics_exometer).
-export([
new/2,
delete/1,
increment_counter/1,
increment_counter/2,
decrement_counter/1,
decrement_counter/2,
update_histogram/2,
update_gauge/2,
update_meter/2]).
-spec new(atom(), any()) ... |
aa42dfa0cc87e6511c883a1ca18cb08dfbb4cc6aac919a4b2c1a606538bb6648 | borkdude/advent-of-cljc | iamdrowsy.cljc | (ns aoc.y2018.d06.iamdrowsy
(:refer-clojure :exclude [read-string format])
(:require
[aoc.utils :as u :refer [deftest read-string format]]
[aoc.y2018.d06.data :refer [input answer-1 answer-2]]
[clojure.test :refer [is testing]]
[clojure.string :as str]
[com.rpl.specter :as s]))
#?(:clj (set! *u... | null | https://raw.githubusercontent.com/borkdude/advent-of-cljc/17c8abb876b95ab01eee418f1da2e402e845c596/src/aoc/y2018/d06/iamdrowsy.cljc | clojure | (ns aoc.y2018.d06.iamdrowsy
(:refer-clojure :exclude [read-string format])
(:require
[aoc.utils :as u :refer [deftest read-string format]]
[aoc.y2018.d06.data :refer [input answer-1 answer-2]]
[clojure.test :refer [is testing]]
[clojure.string :as str]
[com.rpl.specter :as s]))
#?(:clj (set! *u... | |
1b6e25fc46df4dfed513e5f82184bde7817e7c9148ff7f6ea44f40ac1b0249f4 | kelamg/HtDP2e-workthrough | ex215.rkt | The first three lines of this file were inserted by . They record metadata
;; about the language level of this file in a form that our tools can easily process.
#reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname ex215) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decima... | null | https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Arbitrarily-Large-Data/ex215.rkt | racket | about the language level of this file in a form that our tools can easily process.
Constants:
scene
worm
diameter of the worm's segments
Definitions:
A Worm is a structure:
(make-worm Segment Direction)
interp. keeps track of the position of the worm's head
dir is its direction of movement
A Segment is a P... | The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname ex215) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f)))
(require 2htdp/image)
(require 2htdp/universe)
(define WID... |
07e561a18ad47903133fa00520207e6ec79cec41892e005493c427650507cbc8 | marick/Midje | fus_checkers.clj | (ns user.fus-checkers
(:require [midje.sweet :refer :all]
[midje.test-util :refer :all]))
(fact "simple checkers are exported into midje.sweet"
1 => truthy
nil => falsey
'foo => anything
odd? => (exactly odd?)
5 => (roughly 5)
(throw (Error.)) => (throws Error))
(defn equality [expected]
(... | null | https://raw.githubusercontent.com/marick/Midje/2b9bcb117442d3bd2d16446b47540888d683c717/test/user/fus_checkers.clj | clojure | The behavior of checkers is different in prerequisites
different
different
different
different | (ns user.fus-checkers
(:require [midje.sweet :refer :all]
[midje.test-util :refer :all]))
(fact "simple checkers are exported into midje.sweet"
1 => truthy
nil => falsey
'foo => anything
odd? => (exactly odd?)
5 => (roughly 5)
(throw (Error.)) => (throws Error))
(defn equality [expected]
(... |
b0e942234135142033b8b9f689da16d95ef5227ea004f70b52c8c263aa087325 | marick/fp-oo | shapely-4.clj |
Exercise 4
;; Here's an example of using a set to discover whether an element
;; is present.
(def sequence-containing?
(fn [sequence element]
(contains? (set sequence) element)))
;; This is a more terse example, but notice that it's not a true
predicate . That is , ( sequence - containing ? [ 1 2 3 ... | null | https://raw.githubusercontent.com/marick/fp-oo/434937826d794d6fe02b3e9a62cf5b4fbc314412/old-code/solutions/shapely-4.clj | clojure | Here's an example of using a set to discover whether an element
is present.
This is a more terse example, but notice that it's not a true
to test whether nil is in a sequence because (#{1 nil} nil) returns
nil, which is the same value returned when an element is not present.
A problem with the previous solution i... |
Exercise 4
(def sequence-containing?
(fn [sequence element]
(contains? (set sequence) element)))
predicate . That is , ( sequence - containing ? [ 1 2 3 ] 3 ) produces ` 3 ` ,
which is but not ` true ? ` . Moreover , this form ca n't be used
(def sequence-containing?
(fn [sequence element]
... |
40e7b4219334ca93b3f05eadf1e197e5aacbdf0119cc96b09a8aee6678b37161 | MLstate/opalang | w_Exceptions.ml |
Copyright © 2011 , 2012 MLstate
This file is part of .
is free software : you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License , version 3 , as published by
the Free Software Foundation .
is distributed in the hope that it will be us... | null | https://raw.githubusercontent.com/MLstate/opalang/424b369160ce693406cece6ac033d75d85f5df4f/compiler/libqmlcompil/typer_w/w_Exceptions.ml | ocaml | **********************************************************************
**********************************************************************
Exceptions are an opened sum. Initially, it contains no case. We
create a local type to accumulate cases encountered while
typechecking the program.
*... |
Copyright © 2011 , 2012 MLstate
This file is part of .
is free software : you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License , version 3 , as published by
the Free Software Foundation .
is distributed in the hope that it will be us... |
900d25d3afd6d0c3304f837df0f0a1de8f30aa10166c6336618700727d2f5e64 | jarohen/phoenix | all_in_test.clj | (ns phoenix.all-in-test
(:require [phoenix.core :as pc]
[phoenix]
[clojure.java.io :as io]
[clojure.test :refer :all]
[com.stuartsierra.component :as c]))
(defrecord CComponent [map-a host]
c/Lifecycle
(start [this]
(println "Starting c" (pr-str this))
thi... | null | https://raw.githubusercontent.com/jarohen/phoenix/f828bf144154f110f0a73f54645f5696e2c8bdab/runtime/test/phoenix/all_in_test.clj | clojure | (ns phoenix.all-in-test
(:require [phoenix.core :as pc]
[phoenix]
[clojure.java.io :as io]
[clojure.test :refer :all]
[com.stuartsierra.component :as c]))
(defrecord CComponent [map-a host]
c/Lifecycle
(start [this]
(println "Starting c" (pr-str this))
thi... | |
96e8b6ff3178d8040c873a476fdc9e5216b8185721f19d66b7caf0fd0e4583d5 | binaryage/chromex | browser_action.clj | (ns chromex.ext.browser-action
"Use browser actions to put icons in the main Google Chrome toolbar, to the right of the address bar. In addition to its
icon, a browser action can have a tooltip, a badge, and a popup.
* available since Chrome 36
* "
(:refer-clojure :only [defmacro defn apply declare m... | null | https://raw.githubusercontent.com/binaryage/chromex/33834ba5dd4f4238a3c51f99caa0416f30c308c5/src/exts/chromex/ext/browser_action.clj | clojure | -- events -----------------------------------------------------------------------------------------------------------------
docs: /#tapping-events
-- convenience ------------------------------------------------------------------------------------------------------------
--------------------------------------------... | (ns chromex.ext.browser-action
"Use browser actions to put icons in the main Google Chrome toolbar, to the right of the address bar. In addition to its
icon, a browser action can have a tooltip, a badge, and a popup.
* available since Chrome 36
* "
(:refer-clojure :only [defmacro defn apply declare m... |
b49df60cf3938720c8da4061b28b9ac95a804a64e67785be26ee73bdd454334a | kowey/GenI | BuilderGui.hs | -- GenI surface realiser
Copyright ( C ) 2005 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 2
of the License , or ( at your option ) any later version .
--
-- T... | null | https://raw.githubusercontent.com/kowey/GenI/570a6ef70e61a7cb01fe0fc29732cd9c1c8f2d7a/geni-gui/src/NLP/GenI/BuilderGui.hs | haskell | GenI surface realiser
This program is free software; you can redistribute it and/or
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more det... | Copyright ( C ) 2005 and
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation ; either version 2
of the License , or ( at your option ) any later version .
You should have received a copy of the GNU General Public License
Foundation , Inc. , 59 Temple ... |
9ae01f2794cf0af195b2549b19379c2d793ad796b52b3cbc874e9ab405de3502 | ftomassetti/civs | core.clj | (ns
^{:author ftomassetti}
civs.logic.core
(:require
[civs.model.core :refer :all]
[civs.logic.basic :refer :all]
[civs.logic.tribe-choices :refer :all]
[civs.logic.demographics :refer :all]
[civs.model.politic :refer :all])
(:import [civs.model.core Population Group Game]))
; Asked questio... | null | https://raw.githubusercontent.com/ftomassetti/civs/dc76bfff4241f67d4bc1081de3947a725ea75c39/src/civs/logic/core.clj | clojure | Asked question about this function:
-executing-an-operation-n-times-using-the-output-as-input-of-next-operat | (ns
^{:author ftomassetti}
civs.logic.core
(:require
[civs.model.core :refer :all]
[civs.logic.basic :refer :all]
[civs.logic.tribe-choices :refer :all]
[civs.logic.demographics :refer :all]
[civs.model.politic :refer :all])
(:import [civs.model.core Population Group Game]))
(defn generate-... |
84c65ad0780c829d4bd54dc03d86198475e97d495a521e94ec0c1906ace30de4 | ghcjs/ghcjs-dom | SVGFEDropShadowElement.hs | # LANGUAGE PatternSynonyms #
# LANGUAGE ForeignFunctionInterface #
# LANGUAGE JavaScriptFFI #
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
module GHCJS.DOM.JSFFI.Generated.SVGFEDropShadowElement
(js_setStdDeviation, setStdDeviation, js_getIn1, getIn1, js_getD... | null | https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/SVGFEDropShadowElement.hs | haskell | For HasCallStack compatibility
# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
| <-US/docs/Web/API/SVGFEDropShadowElement.dx Mozilla SVGFEDropShadowElement.dx documentation>
| <-US/docs/Web/API/SVGFEDropShadowElement.dy Mozilla SVGFEDropShadowElement.dy documentation> | # LANGUAGE PatternSynonyms #
# LANGUAGE ForeignFunctionInterface #
# LANGUAGE JavaScriptFFI #
module GHCJS.DOM.JSFFI.Generated.SVGFEDropShadowElement
(js_setStdDeviation, setStdDeviation, js_getIn1, getIn1, js_getDx,
getDx, js_getDy, getDy, js_getStdDeviationX, getStdDeviationX,
js_getStdDeviatio... |
dbd6740c1d142711ce66b5cd9e0046c97f5a49655b309bd55a6f3e11f8e448a9 | manutter51/woolybear | core.clj | (ns woolybear.core)
| null | https://raw.githubusercontent.com/manutter51/woolybear/a7f820dfb2f51636122d56d1500baefe5733eb25/src/clj/woolybear/core.clj | clojure | (ns woolybear.core)
| |
480d112a7459d682f70a8b3f9767cde0f05634da56b6143593ef789209ba1142 | ChrisPenner/rasa | Views.hs | module Rasa.Ext.Views
( viewports
-- * Working with Views
, View(..)
, viewable
, splitRule
, active
, scrollPos
, getViews
-- * View Structure
| Views are stored as a Tree , with ' 's determining
-- the layout of each branch.
, Split(..)
, Dir(..)
, SplitRule(..)
, Window
, BiTree(..)... | null | https://raw.githubusercontent.com/ChrisPenner/rasa/a2680324849088ee92f063fab091de21c4c2c086/rasa-ext-views/src/Rasa/Ext/Views.hs | haskell | * Working with Views
* View Structure
the layout of each branch.
* ProvidedApps
* Creating Widgets
| Lenses for accessing parts of 'Widgets':
** Providing Widgets
On each render that renderable will be used as a top/bottom/left/right bar respectively.
* Provided Widgets
| Main export from the views extension,... | module Rasa.Ext.Views
( viewports
, View(..)
, viewable
, splitRule
, active
, scrollPos
, getViews
| Views are stored as a Tree , with ' 's determining
, Split(..)
, Dir(..)
, SplitRule(..)
, Window
, BiTree(..)
, BiTreeF(..)
, A.rotate
, A.closeInactive
, A.focusViewLeft
, A.fo... |
14ec21ac270bd22337336b6272affc7ac49cd864f55898dd676dccd2f3723ae5 | satori-com/mzbench | 1_compress_logs.erl | #!/usr/bin/env escript
main([BenchDir]) ->
LogFile = filename:join(BenchDir, "log.txt"),
StatusFile = filename:join(BenchDir, "status"),
case {file:read_file(LogFile), file:consult(StatusFile)} of
{{ok, B}, {ok, [Status = #{config:= Config}]}} ->
case Config of
#{log_com... | null | https://raw.githubusercontent.com/satori-com/mzbench/02be2684655cde94d537c322bb0611e258ae9718/migrations/1_compress_logs.erl | erlang | #!/usr/bin/env escript
main([BenchDir]) ->
LogFile = filename:join(BenchDir, "log.txt"),
StatusFile = filename:join(BenchDir, "status"),
case {file:read_file(LogFile), file:consult(StatusFile)} of
{{ok, B}, {ok, [Status = #{config:= Config}]}} ->
case Config of
#{log_com... | |
b2ad15029e9e253ae6422929459f6593f3b5538f14a10d961c94af70014f102e | russross/cownfs | dirTree.mli | Copyright 2004 , 2005
* See the file COPYING for information about licensing and distribution .
* See the file COPYING for information about licensing and distribution. *)
open Common;;
type t
val make : string -> t
val lookupChild : t -> (string * priority) list -> string ->
(string * priority) list... | null | https://raw.githubusercontent.com/russross/cownfs/cc67fae0294203a78b022d7300be8aa6c35c58af/dirTree.mli | ocaml | Copyright 2004 , 2005
* See the file COPYING for information about licensing and distribution .
* See the file COPYING for information about licensing and distribution. *)
open Common;;
type t
val make : string -> t
val lookupChild : t -> (string * priority) list -> string ->
(string * priority) list... | |
0d313e3af08766f6caec75ffa2140f02d56b52cb5128b18d85395c8e833f172f | ijvcms/chuanqi_dev | player_active_service_db.erl | %%%-------------------------------------------------------------------
@author zhengsiying
( C ) 2015 , < COMPANY >
%%% @doc
%%%
%%% @end
Created : 15 . 十二月 2015 下午4:25
%%%-------------------------------------------------------------------
-module(player_active_service_db).
-include("common.hrl").
-include("cac... | null | https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/business/active/player_active_service_db.erl | erlang | -------------------------------------------------------------------
@doc
@end
-------------------------------------------------------------------
API
====================================================================
API functions
==================================================================== | @author zhengsiying
( C ) 2015 , < COMPANY >
Created : 15 . 十二月 2015 下午4:25
-module(player_active_service_db).
-include("common.hrl").
-include("cache.hrl").
-export([
select_all/1,
select_row/1,
insert/1
]).
select_all({'_',ActiveServiceId}) ->
case db:select_all(player_active_service, record_info(fields... |
7f093b3deba3468c7b00a57dd9b8e17f2961f1b372be4f19457366d4df742c51 | elastic/eui-cljs | page_template_deprecated.cljs | (ns eui.page-template-deprecated
(:require ["@elastic/eui/lib/components/page/page_template.js" :as eui]))
(def EuiPageTemplate_Deprecated eui/EuiPageTemplate_Deprecated)
(def TEMPLATES eui/TEMPLATES)
| null | https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/page_template_deprecated.cljs | clojure | (ns eui.page-template-deprecated
(:require ["@elastic/eui/lib/components/page/page_template.js" :as eui]))
(def EuiPageTemplate_Deprecated eui/EuiPageTemplate_Deprecated)
(def TEMPLATES eui/TEMPLATES)
| |
dbca35bd4d778d9323636e69907fdd95048afb6dd610633b8e383bbad6300b64 | dyzsr/ocaml-selectml | t162-return.ml | TEST
include tool - ocaml - lib
flags = " -w -a "
ocaml_script_as_argument = " true "
* setup - ocaml - build - env
* *
include tool-ocaml-lib
flags = "-w -a"
ocaml_script_as_argument = "true"
* setup-ocaml-build-env
** ocaml
*)
open Lib;;
let f _ = 0 in f 0;;
*
0 CONSTINT 42
2 PUSHACC... | null | https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/testsuite/tests/tool-ocaml/t162-return.ml | ocaml | TEST
include tool - ocaml - lib
flags = " -w -a "
ocaml_script_as_argument = " true "
* setup - ocaml - build - env
* *
include tool-ocaml-lib
flags = "-w -a"
ocaml_script_as_argument = "true"
* setup-ocaml-build-env
** ocaml
*)
open Lib;;
let f _ = 0 in f 0;;
*
0 CONSTINT 42
2 PUSHACC... | |
727126018398daf57819033bf2837e8d40b75a057ce31c12440128726fc26ec0 | skanev/playground | 52.scm | SICP exercise 2.52
;
Make changes to the square limit of wave show in Figure 2.9 by working at
; each of the levels described above. In particular:
;
a. Add some segments to the primitive wave painter of Exercise 2.49 ( to add a
; smile, for example).
b. Change the pattern constructed by corner - split ( for... | null | https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/02/52.scm | scheme |
each of the levels described above. In particular:
smile, for example).
c. Modify the version of square-limit that uses square-of-four as to assemble
the corners in a different pattern. (For example, you might make the big
smile, for example).
c. Modify the version of square-limit that uses square-of-f... | SICP exercise 2.52
Make changes to the square limit of wave show in Figure 2.9 by working at
a. Add some segments to the primitive wave painter of Exercise 2.49 ( to add a
b. Change the pattern constructed by corner - split ( for example , by using one
copy of the up - split and right - split images instea... |
e393458111e388c739ab71693676bd161ebb5ffbb180e9e7227ca8a28894819a | tezos/tezos-mirror | store_errors.ml | (*****************************************************************************)
(* *)
(* Open Source License *)
Copyright ( c ) 2022 - 2023 Nomadic Labs , < >
Copyright ( c ) 20... | null | https://raw.githubusercontent.com/tezos/tezos-mirror/aa878d424fddb85745e5445ed89432dd9d6380cc/src/lib_layer2_store/store_errors.ml | ocaml | ***************************************************************************
Open Source License
Permission is h... | Copyright ( c ) 2022 - 2023 Nomadic Labs , < >
Copyright ( c ) 2023 Trili Tech , < >
to deal in the Software without restriction , including without limitation
and/or sell copies of the Software , and to permit persons to whom the
THE SOFTWARE IS PROVIDED " AS IS " , WI... |
215d81c5ec358d233dcb61eb243fbbf2eede7d51b519bd9921f20f69ae68a136 | xvw/preface | bounded_meet_semilattice.mli | (** Functor that generate a suite for a [Bounded_meet_semilattice]. *)
module Suite
(R : Model.COVARIANT_0)
(L : Preface_specs.BOUNDED_MEET_SEMILATTICE with type t = R.t) : Model.SUITE
| null | https://raw.githubusercontent.com/xvw/preface/aad87acf4047286921b0a44a5edc48905e117403/lib/preface_qcheck/bounded_meet_semilattice.mli | ocaml | * Functor that generate a suite for a [Bounded_meet_semilattice]. |
module Suite
(R : Model.COVARIANT_0)
(L : Preface_specs.BOUNDED_MEET_SEMILATTICE with type t = R.t) : Model.SUITE
|
10c7c6b322ec57bc554e570d9fa7aecd4b00ffcdf44d8fcf09763b4a53d54067 | c4-project/c4f | make_stub.ml | This file is part of c4f .
Copyright ( c ) 2018 - 2022 C4 Project
c4 t itself is licensed under the MIT License . See the LICENSE file in the
project root for more information .
Parts of c4 t are based on code from the Herdtools7 project
( ) : see the LICENSE.herd file in the
project... | null | https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/cmd_c/src/make_stub.ml | ocaml | This file is part of c4f .
Copyright ( c ) 2018 - 2022 C4 Project
c4 t itself is licensed under the MIT License . See the LICENSE file in the
project root for more information .
Parts of c4 t are based on code from the Herdtools7 project
( ) : see the LICENSE.herd file in the
project... | |
e643d3573f934ba1070bfe3c794d18b912b2481b1f2860e0e1ac8553f0852636 | ucsd-progsys/liquidhaskell | ReExportClient.hs | module ReExportClient where
import ReExportLib
{-@ bar :: Foo -> {v:Int | 0 < v} @-}
bar :: Foo -> Int
bar (FooDC x) = x
{-@ booz :: Foo -> {v:Int | 0 < v} @-}
booz :: Foo -> Int
booz x = cfun x
| null | https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/20cd67af038930cb592d68d272c8eb1cbe3cb6bf/tests/import/client/ReExportClient.hs | haskell | @ bar :: Foo -> {v:Int | 0 < v} @
@ booz :: Foo -> {v:Int | 0 < v} @ | module ReExportClient where
import ReExportLib
bar :: Foo -> Int
bar (FooDC x) = x
booz :: Foo -> Int
booz x = cfun x
|
f202cd10c5fe676516fdad31a402b2d87a582081dfcd01f662a66b9ec749bdfa | Helium4Haskell/helium | Ex3.hs | module Ex3 where
m f (h:t) = f h : f t
| null | https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/typeerrors/Edinburgh/Ex3.hs | haskell | module Ex3 where
m f (h:t) = f h : f t
| |
1a34157db4efc8e169d3a51a7227f766b9a99a3d2018ba68269fac3d48953c25 | camllight/camllight | load.ml | $ Id$
#open "token";;
#open "parser";;
#open "semant";;
#open "typing";;
#open "main";;
load_object "hash";
load_object "asl";
load_object "token";
load_object "parser";
load_object "semant";
load_object "typing";
load_object "main";;
| null | https://raw.githubusercontent.com/camllight/camllight/0cc537de0846393322058dbb26449427bfc76786/sources/examples/asl/load.ml | ocaml | $ Id$
#open "token";;
#open "parser";;
#open "semant";;
#open "typing";;
#open "main";;
load_object "hash";
load_object "asl";
load_object "token";
load_object "parser";
load_object "semant";
load_object "typing";
load_object "main";;
| |
7c2c7bb6956425f39c00f4195da03e169f666a66bcfe24b2590d0ea8fb6d08a1 | tonyg/racket-nat-traversal | upnp-ip-gateway.rkt | #lang racket/base
UPNP WANIPConnection service client .
Copyright ( C ) 2013 < > .
;;
;; This file is part of racket-nat-traversal.
;;
;; racket-nat-traversal 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 Softwar... | null | https://raw.githubusercontent.com/tonyg/racket-nat-traversal/091d3ce0990b05508d1b0e0ff9997774a48161d2/upnp-ip-gateway.rkt | racket |
This file is part of racket-nat-traversal.
racket-nat-traversal is free software: you can redistribute it
racket-nat-traversal 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
Affer... | #lang racket/base
UPNP WANIPConnection service client .
Copyright ( C ) 2013 < > .
and/or modify it under the terms of the GNU Affero General Public
License as published by the Free Software Foundation , either
version 3 of the License , or ( at your option ) any later version .
You should have receive... |
ac1a738ee2282b96d2e36b6909e65b236968343f77539a6cdd031e9f4c00025c | nasa/Common-Metadata-Repository | query_execution.clj | (ns cmr.search.test.services.query-execution
"This tests the query-execution namespace. The main point of this is to make sure that specific
queries are given the correct execution strategy."
(:require
[clojure.test :refer :all]
[cmr.common-app.services.search.params :as pc]
[cmr.common-app.services.sear... | null | https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/43cdbeb34f29163d99329febe8c93257ec70d573/search-app/test/cmr/search/test/services/query_execution.clj | clojure | Integration test that specific set of input parameters will result in query with the specified
execution strategy
Specific elastic items queries by format
Multiple are supported
Sorting is supported
A page size less than the number of items forces elastic strategy
A different page number forces elastic strategy
... | (ns cmr.search.test.services.query-execution
"This tests the query-execution namespace. The main point of this is to make sure that specific
queries are given the correct execution strategy."
(:require
[clojure.test :refer :all]
[cmr.common-app.services.search.params :as pc]
[cmr.common-app.services.sear... |
db22de8580a4c1bfd94c8c03f6a2b452e903ed1e6550c59181168efb0e7d6778 | Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library | PersonRelationship.hs | {-# LANGUAGE MultiWayIf #-}
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator .
{-# LANGUAGE OverloadedStrings #-}
| Contains the types generated from the schema
module StripeAPI.Types.PersonRelationship where
import qualified Control.M... | null | https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Types/PersonRelationship.hs | haskell | # LANGUAGE MultiWayIf #
# LANGUAGE OverloadedStrings #
| executive: Whether the person has significant responsibility to control, manage, or direct the organization.
| owner: Whether the person is an owner of the account’s legal entity.
Constraints:
| CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator .
| Contains the types generated from the schema
module StripeAPI.Types.PersonRelationship where
import qualified Control.Monad.Fail
import qualified Data.Aeson
import qualified Data.Aes... |
6b464a547d2d3a21c8db45535b37a03b888239ae54acd7b37a5c22938e3d4e5c | qiao/sicp-solutions | 2.39.scm | (define nil '())
(define (reverse-r sequence)
(fold-right (lambda (x y) (append y (list x))) nil sequence))
(define (reverse-l sequence)
(fold-left (lambda (x y) (cons y x)) nil sequence))
| null | https://raw.githubusercontent.com/qiao/sicp-solutions/a2fe069ba6909710a0867bdb705b2e58b2a281af/chapter2/2.39.scm | scheme | (define nil '())
(define (reverse-r sequence)
(fold-right (lambda (x y) (append y (list x))) nil sequence))
(define (reverse-l sequence)
(fold-left (lambda (x y) (cons y x)) nil sequence))
| |
095d861d27fed43156f773be301910f97278b58c9674507169c9bd67d2eb2751 | yrashk/erlang | sets.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 2000 - 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 Pub... | null | https://raw.githubusercontent.com/yrashk/erlang/e1282325ed75e52a98d58f5bd9fb0fa27896173f/lib/stdlib/src/sets.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 2000 - 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 "
We use the dynamic hashing techniques by... |
040c1facad6dd7d70e01d37b3d212345c6aa77ac369da5c0f4f7974489f33d1a | crategus/cl-cffi-gtk | events.lisp | (defpackage :demo-events
(:use :gtk :gdk :gobject :glib :cairo :cffi :common-lisp)
(:export #:demo-events))
(in-package :demo-events)
(let ((notebook (make-instance 'gtk-notebook :show-tabs nil))
;; Labels for Button events
(event-type (make-instance 'gtk-label :xalign 0.1))
(event-window (make-... | null | https://raw.githubusercontent.com/crategus/cl-cffi-gtk/22156e3e2356f71a67231d9868abcab3582356f3/demo/gdk-demo/events.lisp | lisp | Labels for Button events
Labels for Key events
Labels for Crossing events
Create a toplevel window.
Add a page to the notebook for button events
Add a page to the notebook for key events
Add a page to the notebook for crossing events
Show the window. | (defpackage :demo-events
(:use :gtk :gdk :gobject :glib :cairo :cffi :common-lisp)
(:export #:demo-events))
(in-package :demo-events)
(let ((notebook (make-instance 'gtk-notebook :show-tabs nil))
(event-type (make-instance 'gtk-label :xalign 0.1))
(event-window (make-instance 'gtk-label :xalign 0.1))
... |
6303fe4759a111a6c5122c07bd3be35be3dbe3ef53bdd53627cd9bb16416b203 | nixeagle/nisp | readtable.lisp | (in-package :nisp-safe)
(defun colon-reader (stream char)
"Signal an error if a colon is used to access another package."
(declare (ignore stream char))
;; For now we just error out. This is a safe thing to do as far as
;; disabling package access goes, but in the process use of : is
;; broken for :keywords... | null | https://raw.githubusercontent.com/nixeagle/nisp/680b40b3b9ea4c33db0455ac73cbe3756afdbb1e/safe/readtable.lisp | lisp | For now we just error out. This is a safe thing to do as far as
disabling package access goes, but in the process use of : is
broken for :keywords and possibly other things too.
Moving this down here for now after make-readtable is defined
because this depends on that function being defined. I want to
depreciate... | (in-package :nisp-safe)
(defun colon-reader (stream char)
"Signal an error if a colon is used to access another package."
(declare (ignore stream char))
(error "Accessing packages outside of the current one is disabled."))
(defun make-readtable ()
"Create readtable that prevents any syntax that can cause a p... |
69ec7d43e632f7834b9ee0a9d9e1fbfbe30d069bb84b449ae6f6930c77e2da9e | MattWindsor91/travesty | traversable.ml | This file is part of ' travesty ' .
Copyright ( c ) 2018 , 2019 by
Permission is hereby granted , free of charge , to any person obtaining a
copy of this software and associated documentation files ( the " Software " ) ,
to deal in the Software without restriction , including without limitatio... | null | https://raw.githubusercontent.com/MattWindsor91/travesty/3f4da33830cc928ad879077e690277088de1f836/test/traversable.ml | ocaml | This file is part of ' travesty ' .
Copyright ( c ) 2018 , 2019 by
Permission is hereby granted , free of charge , to any person obtaining a
copy of this software and associated documentation files ( the " Software " ) ,
to deal in the Software without restriction , including without limitatio... | |
dc581447370d90ca7b1ba7274547dab217a0cb4881bb0bf75e4491b30b6efe1d | nuprl/gradual-typing-performance | provide-structs.rkt | #lang scheme/base
(require scheme/serialize
racket/contract/base
(for-syntax scheme/base))
(provide provide-structs)
(define-syntax (provide-structs stx)
(syntax-case stx ()
[(_ (id ([field ct] ...)) ...)
#`(begin
(define-serializable-struct id (field ...) #:transparent) ...
... | null | https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/pre-benchmark/ecoop/scribble-lib/scribble/private/provide-structs.rkt | racket | #lang scheme/base
(require scheme/serialize
racket/contract/base
(for-syntax scheme/base))
(provide provide-structs)
(define-syntax (provide-structs stx)
(syntax-case stx ()
[(_ (id ([field ct] ...)) ...)
#`(begin
(define-serializable-struct id (field ...) #:transparent) ...
... | |
258925f279d041066dff080b8f659904a3677faf9cdae5f8c566712de45804b1 | tweag/asterius | bytearray.hs | import System.Environment
import System.Process
main :: IO ()
main = do
args <- getArgs
callProcess "ahc-link" $
["--input-hs", "test/bytearray/bytearray.hs", "--run"]
<> args
| null | https://raw.githubusercontent.com/tweag/asterius/e7b823c87499656860f87b9b468eb0567add1de8/asterius/test/bytearray.hs | haskell | import System.Environment
import System.Process
main :: IO ()
main = do
args <- getArgs
callProcess "ahc-link" $
["--input-hs", "test/bytearray/bytearray.hs", "--run"]
<> args
| |
9d768c733bf4f1faa264d02acd47f62937da051bef5c9e22728243f826442046 | dradtke/Lisp-Text-Editor | tool-shell.lisp | (in-package #:gtk-cffi)
(defclass tool-shell (g-object) ())
| null | https://raw.githubusercontent.com/dradtke/Lisp-Text-Editor/b0947828eda82d7edd0df8ec2595e7491a633580/quicklisp/dists/quicklisp/software/gtk-cffi-20120208-cvs/gtk/tool-shell.lisp | lisp | (in-package #:gtk-cffi)
(defclass tool-shell (g-object) ())
| |
23ea700ee6dbbee554cad3079613a218679a95110b9a5a781c1ecaad0da05a4a | deepmarker/ocaml-fastws | wscat.ml | open Core
open Async
let src = Logs.Src.create "fastws.async.wscat"
module Log = (val Logs.src_log src : Logs.LOG)
module Log_async = (val Logs_async.src_log src : Logs_async.LOG)
let main url =
Fastws_async.with_connection ~of_string:Fn.id ~to_string:Fn.id url (fun r w ->
Deferred.all_unit
[ Pipe.tr... | null | https://raw.githubusercontent.com/deepmarker/ocaml-fastws/b8ff3200dd3d516a905e531177ca5087ab0053ab/test/wscat.ml | ocaml | open Core
open Async
let src = Logs.Src.create "fastws.async.wscat"
module Log = (val Logs.src_log src : Logs.LOG)
module Log_async = (val Logs_async.src_log src : Logs_async.LOG)
let main url =
Fastws_async.with_connection ~of_string:Fn.id ~to_string:Fn.id url (fun r w ->
Deferred.all_unit
[ Pipe.tr... | |
7ec44b059475571d88d13e471ee72e8c6f06b2c4c4e946c7321d411f3b32d50d | mfoemmel/erlang-otp | digraph_utils.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 1999 - 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 Pub... | null | https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/stdlib/src/digraph_utils.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 1999 - 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(digraph_utils).
Implementation b... |
52cd09fd51ba5d2a8a87a280d10d8dd4edeb3a5054bb3d5f9832c5cca264d5dc | sebastianbenz/clojure-game-of-life | game.clj | (ns engine.test.game
(:use [lazytest.describe :only (describe it)])
(:use engine.game))
(def fixture [1 1])
(def no-neighbour #{fixture})
(def one-neighbour #{fixture [0 1]})
(def two-neighbours #{fixture [0 1] [1 2]})
(def three-neighbours #{fixture [0 1] [1 2] [1 0]})
(def four-neighbours #{fixture [0 1] [1 2] [... | null | https://raw.githubusercontent.com/sebastianbenz/clojure-game-of-life/b48c9d8c04d1699dd1e44a6684120b64ce8773ac/test/engine/test/game.clj | clojure | (ns engine.test.game
(:use [lazytest.describe :only (describe it)])
(:use engine.game))
(def fixture [1 1])
(def no-neighbour #{fixture})
(def one-neighbour #{fixture [0 1]})
(def two-neighbours #{fixture [0 1] [1 2]})
(def three-neighbours #{fixture [0 1] [1 2] [1 0]})
(def four-neighbours #{fixture [0 1] [1 2] [... | |
565f50f5cb643ed0ac9ecaf0e9c96cb7e5c976ebab5681812068a92a6f5e0b4a | rabbitmq/rabbitmq-sharding | rabbit_sharding_exchange_type_modulus_hash.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 /.
%%
Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved .
%%
-module(rabbit_sharding_exchange_type_modulus_has... | null | https://raw.githubusercontent.com/rabbitmq/rabbitmq-sharding/722f8165f156b03ffa2cb7890999b8c37446d3a6/src/rabbit_sharding_exchange_type_modulus_hash.erl | erlang | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved .
-module(rabbit_sharding_exchange_type_modulus_hash).
-... | |
a66e5f32518ccde75e6ef4f30380702093e3ce9446b9204c2c00e006a85b5d00 | quil-lang/alexa | package.lisp | package.lisp
;;;;
Author :
(defpackage #:alexa
(:documentation "A lexical analyzer generator.")
(:use #:cl)
(:export
MACRO
#:lexer-match-error ; CONDITION
#:lexer-match-error-lexer-name ; READER
#:lexer-match-error-position ; READER
#:no-match-error ... | null | https://raw.githubusercontent.com/quil-lang/alexa/2d0ec29c1de06201d7ca3d2b7b91b37f96fd2fa8/src/package.lisp | lisp |
CONDITION
READER
READER
CONDITION
CONDITION
READER | package.lisp
Author :
(defpackage #:alexa
(:documentation "A lexical analyzer generator.")
(:use #:cl)
(:export
MACRO
)
)
(defpackage #:alexa-internal
(:documentation "A package to stash away generated symbols."))
|
85a39d243312acf3e1e3f90e3b33f537c36cdb55039d81a3a29d1b8fa1906e95 | zcaudate/hara | project_test.clj | (ns hara.io.project-test
(:use hara.test)
(:require [hara.io.project :refer :all]))
^{:refer hara.io.project/project-file :added "3.0"}
(fact "returns the current project file"
(project-file)
=> "project.clj")
^{:refer hara.io.project/project :added "3.0"}
(fact "returns project options as a map")
^{:refer ... | null | https://raw.githubusercontent.com/zcaudate/hara/481316c1f5c2aeba5be6e01ae673dffc46a63ec9/test/hara/io/project_test.clj | clojure | (ns hara.io.project-test
(:use hara.test)
(:require [hara.io.project :refer :all]))
^{:refer hara.io.project/project-file :added "3.0"}
(fact "returns the current project file"
(project-file)
=> "project.clj")
^{:refer hara.io.project/project :added "3.0"}
(fact "returns project options as a map")
^{:refer ... | |
920c45b501b0f618099e57f4de9f66daa25e2354cc43fbbb32aeb69f9086be83 | joehillen/craft | AuthorizedKey.hs | module Craft.SSH.AuthorizedKey where
import Control.Lens
import qualified Data.Map.Strict as Map
import Data.Maybe (catMaybes)
import Data.Void (Void)
import Text.Megaparsec
import Text.Megaparsec.Char
import Craft hi... | null | https://raw.githubusercontent.com/joehillen/craft/de31caa7f86cceaab23dbef0f05208bb853cf73b/src/Craft/SSH/AuthorizedKey.hs | haskell | module Craft.SSH.AuthorizedKey where
import Control.Lens
import qualified Data.Map.Strict as Map
import Data.Maybe (catMaybes)
import Data.Void (Void)
import Text.Megaparsec
import Text.Megaparsec.Char
import Craft hi... | |
a90b7206ef82143e4497b2e89d5befe01908c4f7c6184e2c79f6a7b137173bf4 | SimulaVR/godot-haskell | CryptoKey.hs | # LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving ,
TypeFamilies , TypeOperators , FlexibleContexts , DataKinds ,
MultiParamTypeClasses #
TypeFamilies, TypeOperators, FlexibleContexts, DataKinds,
MultiParamTypeClasses #-}
module Godot.Core.CryptoKey
(Godot.Core.CryptoKey.load, Godot.Core.Cry... | null | https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/CryptoKey.hs | haskell | | Loads a key from @path@ ("*.key" file).
| Loads a key from @path@ ("*.key" file).
| Saves a key to the given @path@ (should be a "*.key" file).
| Saves a key to the given @path@ (should be a "*.key" file). | # LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving ,
TypeFamilies , TypeOperators , FlexibleContexts , DataKinds ,
MultiParamTypeClasses #
TypeFamilies, TypeOperators, FlexibleContexts, DataKinds,
MultiParamTypeClasses #-}
module Godot.Core.CryptoKey
(Godot.Core.CryptoKey.load, Godot.Core.Cry... |
da7fb9e0aba11264d2a2c3d9c9988c7da63b30b69fb32e96ee093f027b30fd5b | mzp/coq-for-ipad | unix_tools.mli | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
, projet Cr... | null | https://raw.githubusercontent.com/mzp/coq-for-ipad/4fb3711723e2581a170ffd734e936f210086396e/src/ocaml-3.12.0/debugger/unix_tools.mli | ocaml | *********************************************************************
Objective Caml
... | , projet Cristal , INRIA Rocquencourt
Objective Caml port by and
Copyright 1996 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 .
... |
7d9f555377e5b38d31217cca56f59af057071cf68d13d31ea1b1716c23589d66 | facebook/duckling | Tests.hs | Copyright ( c ) 2016 - present , Facebook , Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree.
module Duckling.Ordinal.HR.Tests
( tests ) where
import Data.String
import Prelude
import Test.Tasty
impo... | null | https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/tests/Duckling/Ordinal/HR/Tests.hs | haskell | All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. | Copyright ( c ) 2016 - present , Facebook , Inc.
module Duckling.Ordinal.HR.Tests
( tests ) where
import Data.String
import Prelude
import Test.Tasty
import Duckling.Dimensions.Types
import Duckling.Ordinal.HR.Corpus
import Duckling.Testing.Asserts
tests :: TestTree
tests = testGroup "HR Tests"
[ makeCorpusTe... |
d74b2985e5cdf935ff22f2a7bf7a750ab231d6bd3ad8757de8f1ac80273df419 | haskell/ghc-events | Incremental.hs | # LANGUAGE CPP #
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE MultiWayIf #-}
module GHC.RTS.Events.Incremental
( -- * Incremental API
Decoder(..)
, decodeHeader
, decodeEvents
, decodeEventLog
-- * Lazy API
, readHeader
, readEvents
, readEvents'
, readEventLog
, readEventLogOrFail
) wher... | null | https://raw.githubusercontent.com/haskell/ghc-events/fa0598b6c128e015aebbd647f5a21b0f724e0b65/src/GHC/RTS/Events/Incremental.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE MultiWayIf #
* Incremental API
* Lazy API
| The unfolding of the decoding process.
^ The decoder has consumed all the available input and needs more to
continue.
^ The decoder has returned a decoded value and the next decoder state to
continue.
^ The decoder has ended w... | # LANGUAGE CPP #
module GHC.RTS.Events.Incremental
Decoder(..)
, decodeHeader
, decodeEvents
, decodeEventLog
, readHeader
, readEvents
, readEvents'
, readEventLog
, readEventLogOrFail
) where
import Control.Monad
import Data.Either
import Data.Maybe
import Prelude
import qualified Data.Binary... |
f61ac48612e409d01005b44ac9598c81c92e1c31276b0b15ecb3f7e7050f071b | charlieg/Sparser | extend.lisp | ;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER LISP) -*-
copyright ( c ) 1997 - 2005 -- all rights reserved
Copyright ( c ) 2007 BBNT Solutions LLC . All Rights Reserved
$ Id:$
;;;
;;; File: "extend"
;;; Module: "objects;model:psi:"
version : March 2005
initiated 11/29/97 . First g... | null | https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/code/s/objects/model/psi/extend.lisp | lisp | -*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER LISP) -*-
File: "extend"
Module: "objects;model:psi:"
the find call. 2/4/05 Adding some generality - motivated by the call in
*force-new-psi* to handle the case where an identical description in fact
denoted a different individual.
---------... | copyright ( c ) 1997 - 2005 -- all rights reserved
Copyright ( c ) 2007 BBNT Solutions LLC . All Rights Reserved
$ Id:$
version : March 2005
initiated 11/29/97 . First given any content 7/7/98 . 2/14/99 canonicalized
Spread - sequence - across - ordinals . Added add - binding - to
0.1 ( 2/22/0... |
44c8f9d59cd54cf49c73da258af546cd920747731d300a18ed453a98d11c3ede | unclebob/AdventOfCode2022 | core_spec.clj | (ns day10-cathode-ray-tube.core-spec
(:require [speclj.core :refer :all]
[day10-cathode-ray-tube.core :refer :all]))
(describe "instruction execution"
(it "adds a cycle for a nop"
(should= {:x 1 :cycles [{:x 1}]} (noop {:x 1 :cycles []}))
(should= {:x 2 :cycles [{:x 2} {:x 2}]} (noop {:x 2 :cyc... | null | https://raw.githubusercontent.com/unclebob/AdventOfCode2022/aa15a2a388e7677d1f805da15009399c380b85f3/day10-cathode-ray-tube/spec/day10_cathode_ray_tube/core_spec.clj | clojure | (ns day10-cathode-ray-tube.core-spec
(:require [speclj.core :refer :all]
[day10-cathode-ray-tube.core :refer :all]))
(describe "instruction execution"
(it "adds a cycle for a nop"
(should= {:x 1 :cycles [{:x 1}]} (noop {:x 1 :cycles []}))
(should= {:x 2 :cycles [{:x 2} {:x 2}]} (noop {:x 2 :cyc... | |
27ea087ed18c4c059723c8a6089c61d23ea2250828a7e12bb96f88be9563c078 | mauricioszabo/duck-repled | template.cljc | (ns duck-repled.template
(:require [clojure.walk :as walk]))
(defn template [code replaces]
(let [code (->> code
(walk/postwalk (fn [sym]
(if (and (symbol? sym)
(-> sym namespace (= "cljs.core")))
... | null | https://raw.githubusercontent.com/mauricioszabo/duck-repled/39644d3574673dd13349782b980f274e19e5adee/src/duck_repled/template.cljc | clojure | (ns duck-repled.template
(:require [clojure.walk :as walk]))
(defn template [code replaces]
(let [code (->> code
(walk/postwalk (fn [sym]
(if (and (symbol? sym)
(-> sym namespace (= "cljs.core")))
... | |
b9ef577afd269fbe61153ccb7a9501cda1f826010b3fdc6e20462d30aaf4261f | jarmitage/jarmlib | PositionEffects.hs | SEQ - Nano Position Effects
:{
posfxmch = 0 -- position FX mode controlchannel
posfxdch = 1 -- position FX depth controlchannel
posfxmodes = 13
posfxmN "no" = 0
posfxmN "fast" = 1/posfxmodes
posfxmN "loop" = 2/posfxmodes
posfxmN "clip" = 3/posfxmodes
posfxmN "xdown" = 4/posfxmodes
posfxmN "xup" ... | null | https://raw.githubusercontent.com/jarmitage/jarmlib/853f6d18ab32630397be91ea89846d55e59e3d70/tidal/osc/targets/LiveCore/NanoBlockMappings/PositionEffects.hs | haskell | position FX mode controlchannel
position FX depth controlchannel
string version
string version
numerical version
numerical version | SEQ - Nano Position Effects
:{
posfxmodes = 13
posfxmN "no" = 0
posfxmN "fast" = 1/posfxmodes
posfxmN "loop" = 2/posfxmodes
posfxmN "clip" = 3/posfxmodes
posfxmN "xdown" = 4/posfxmodes
posfxmN "xup" = 5/posfxmodes
posfxmN "rev" = 6/posfxmodes
posfxmN "ping" = 7/posfxmodes
posfxmN "pong" ... |
e46b5cc047abaacd3afde0ec4af45a845856f54538d5e531e430301d02ee5f4e | qkrgud55/ocamlmulti | lazy.mli | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
, projet ... | null | https://raw.githubusercontent.com/qkrgud55/ocamlmulti/74fe84df0ce7be5ee03fb4ac0520fb3e9f4b6d1f/stdlib_r/lazy.mli | ocaml | *********************************************************************
OCaml
... | , projet Para , INRIA Rocquencourt
Copyright 1997 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the GNU Library General Public License , with
$ I d : lazy.mli 12241 2012 - 03 - 14 1... |
ccc9013fd0b956a958c4555d89df097571e51f3ffd9d16b8c633e6d561eb9691 | janestreet/rpc_parallel | rpc_settings.ml | open! Core
open! Async
type t =
{ max_message_size : int option [@sexp.option]
; handshake_timeout : Time_float.Span.t option [@sexp.option]
; heartbeat_config : Rpc.Connection.Heartbeat_config.t option [@sexp.option]
}
[@@deriving sexp, bin_io]
let env_var = "RPC_PARALLEL_RPC_SETTINGS"
let default =
{ max... | null | https://raw.githubusercontent.com/janestreet/rpc_parallel/968259d389c35aa33cc1c02e089bfc442fb4294d/src/rpc_settings.ml | ocaml | open! Core
open! Async
type t =
{ max_message_size : int option [@sexp.option]
; handshake_timeout : Time_float.Span.t option [@sexp.option]
; heartbeat_config : Rpc.Connection.Heartbeat_config.t option [@sexp.option]
}
[@@deriving sexp, bin_io]
let env_var = "RPC_PARALLEL_RPC_SETTINGS"
let default =
{ max... | |
2d60a67c881bd4b2654577006f25dd676bb08acc3ea64e73681dc94384ebd8ac | google/proto-lens | Optparse.hs | -- Copyright 2016 Google Inc. All Rights Reserved.
--
-- Use of this source code is governed by a BSD-style
-- license that can be found in the LICENSE file or at
-- -source/licenses/bsd
-- | Adapting proto-lens to optparse-applicative ReadMs.
-- This gives an easy way to define options and arguments for
-- text-forma... | null | https://raw.githubusercontent.com/google/proto-lens/081815877430afc1db669ca5e4edde1558b5fd9d/proto-lens-optparse/src/Data/ProtoLens/Optparse.hs | haskell | Copyright 2016 Google Inc. All Rights Reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file or at
-source/licenses/bsd
| Adapting proto-lens to optparse-applicative ReadMs.
This gives an easy way to define options and arguments for
text-format protobuf types.... |
module Data.ProtoLens.Optparse
proto
, protoOption
, protoArgument
, protoEnum
, enumOption
, enumArgument
) where
import Control.Applicative ((<|>))
import Control.Monad ((<=<))
import Data.ProtoLens.Message (Message, MessageEnum(readEnum, maybeToEnum))
import Data.ProtoLens.TextFormat ... |
0df552963e23037f6bfbdc3e4953ee080cbbd7bc4085ac90fc17b6aeba1ff3e5 | areuu/ilcompiler | ProgramBuilder.mli | type builder
type var
type inst
A identifier is either in_scope as a temp , needs to be loaded from scope ( e.g. a var in an exited scope ) , or is not found
type lookup_result = InScope of var
| NotFound
type binary_op = Plus
| Minus
| Mult
| Div
| Mod
| Xor
| LShift
| RShift
... | null | https://raw.githubusercontent.com/areuu/ilcompiler/c6f0bc809fe165947b8c7004dc1ed94414038002/src/ProgramBuilder.mli | ocaml | Initializes the variable builder
Gets a new temp variable number, for use in int32ermediate values
Support functions for variable hoisting
Adds a new variable name & temp to the builder
Adds a new scope to the stack
Removes the current scope from the stack
Access if emit_builtins has been set
Looks up an... | type builder
type var
type inst
A identifier is either in_scope as a temp , needs to be loaded from scope ( e.g. a var in an exited scope ) , or is not found
type lookup_result = InScope of var
| NotFound
type binary_op = Plus
| Minus
| Mult
| Div
| Mod
| Xor
| LShift
| RShift
... |
05ccba736467892751396854c23367e8d04298b61aaee0137481b7c088c8f357 | Eduap-com/WordMat | specfn.lisp | -*- Mode : Lisp ; Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; The data in this file contains enhancments. ;;;;;
;;; ;;;;;
... | null | https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/src/specfn.lisp | lisp | Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ;
The data in this file contains enhancments. ;;;;;
;;;;;
; ; ; ;
All rights reserved ;;;;;
; ;
**************... |
(in-package :maxima)
(macsyma-module specfn)
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
(load-macsyma-macros rzmac)
(load-macsyma-macros mhayat)
(defmacro mnumericalp (arg)
`(or (floatp ,arg) (and (or $numer $float) (integerp ,arg))))
(declare-top (special $zerobern tlist %e-val))
... |
a42ce94cc84caa619d1ef55f97b68e4ca4a37ad5244fe939de7919327062f6f2 | ocsigen/js_of_ocaml | compiler_version.mli | Js_of_ocaml compiler
* /
* Copyright ( C ) 2014
* Laboratoire PPS - CNRS Université Paris Diderot
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , with linking... | null | https://raw.githubusercontent.com/ocsigen/js_of_ocaml/58210fabc947c4839b6e71ffbbf353a4ede0dbb7/compiler/lib/compiler_version.mli | ocaml | Js_of_ocaml compiler
* /
* Copyright ( C ) 2014
* Laboratoire PPS - CNRS Université Paris Diderot
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , with linking... | |
8ebd937650b7415c0d21dd310e9d2b3a567bb711a6fdeff523588b737a43020b | yogthos/cljs-eval-example | repl.clj | (ns cljs-eval-example.repl
(:use cljs-eval-example.handler
figwheel-sidecar.repl-api
ring.server.standalone
[ring.middleware file-info file]))
(defonce server (atom nil))
(defn get-handler []
;; #'app expands to (var app) so that when we reload our code,
;; the server is forced to re-res... | null | https://raw.githubusercontent.com/yogthos/cljs-eval-example/2be9e63cdc791addb3fbdf7af7663f57d21d77c7/env/dev/clj/cljs_eval_example/repl.clj | clojure | #'app expands to (var app) so that when we reload our code,
the server is forced to re-resolve the symbol in the var
rather than having its own copy. When the root binding
changes, the server picks it up without having to restart.
Content-Type, Content-Length, and Last Modified headers for files in body | (ns cljs-eval-example.repl
(:use cljs-eval-example.handler
figwheel-sidecar.repl-api
ring.server.standalone
[ring.middleware file-info file]))
(defonce server (atom nil))
(defn get-handler []
(-> #'app
Makes static assets in $ PROJECT_DIR / resources / public/ available .
(wrap-fil... |
bcd3ef64e9d8a0b7e8c1cf2803fa9e4fba8e90af64163b915f09a50945832c7c | matijapretnar/eff | capability_benchmarks_native.ml | (* Triple *)
let triple n s =
let rec loop1 i acc1 =
if i < 1 then acc1
else
let rec loop2 j acc2 =
if j < 1 then acc2
else
let rec loop3 m acc3 =
if m < 1 then acc3
else
loop3 (m - 1)
(List.append acc3
(... | null | https://raw.githubusercontent.com/matijapretnar/eff/0b0ec7a83e7db4d040ed8fdfc1ac6e3c0f344be1/misc/code-generation-benchmarks/benchmark-suite/capability_benchmarks_native.ml | ocaml | Triple
Count
This is slower than pure version
Generator
This is slower than pure version |
let triple n s =
let rec loop1 i acc1 =
if i < 1 then acc1
else
let rec loop2 j acc2 =
if j < 1 then acc2
else
let rec loop3 m acc3 =
if m < 1 then acc3
else
loop3 (m - 1)
(List.append acc3
(if i + j + m ... |
1df67a8661e80064b791566d88b45a292682bdd0c430aee5a2dba40a442cc77a | poroh/ersip | ersip_sdp_ice_candidate.erl | %%
Copyright ( c ) 2020 Dmitry Poroh
%% All rights reserved.
Distributed under the terms of the MIT License . See the LICENSE file .
%%
SDP media ice layers // ice candidate
%%
-module(ersip_sdp_ice_candidate).
-export([foundation/1,
component_id/1,
transport/1,
priority/1,
c... | null | https://raw.githubusercontent.com/poroh/ersip/f1b0d3c5713fb063a6cc327ea493f06cff6a6e5e/src/sdp/media/ersip_sdp_ice_candidate.erl | erlang |
All rights reserved.
===================================================================
Types
===================================================================
===================================================================
API
===================================================================
===========... | Copyright ( c ) 2020 Dmitry Poroh
Distributed under the terms of the MIT License . See the LICENSE file .
SDP media ice layers // ice candidate
-module(ersip_sdp_ice_candidate).
-export([foundation/1,
component_id/1,
transport/1,
priority/1,
connection_address/1,
set... |
9b29f6f1e623a3ca0cbebc45fb90de67fab937d9bf554af85460a96887e8cb8f | ferd/cascading-failures | work_sup.erl | -module(work_sup).
-behaviour(supervisor).
-export([start_link/1]).
-export([init/1]).
start_link(Num) ->
supervisor:start_link({local,?MODULE}, ?MODULE, Num).
init(Num) ->
TabName = my_table,
spawn(fun() -> spawn_workers(Num) end),
{ok, {{simple_one_for_one, Num*10, 1},
[{worker,
... | null | https://raw.githubusercontent.com/ferd/cascading-failures/0110953b0f35adb52c8bc9180397efaf0662dbd5/src/work_sup.erl | erlang | -module(work_sup).
-behaviour(supervisor).
-export([start_link/1]).
-export([init/1]).
start_link(Num) ->
supervisor:start_link({local,?MODULE}, ?MODULE, Num).
init(Num) ->
TabName = my_table,
spawn(fun() -> spawn_workers(Num) end),
{ok, {{simple_one_for_one, Num*10, 1},
[{worker,
... | |
e067595237a4225ed90efdbcc1a1ab271c10e1dc1490a91266eb0c724fcdb178 | binsec/haunted | invertChild.mli | (**************************************************************************)
This file is part of BINSEC .
(* *)
Copyright ( C ) 2016 - 2019
(* VERIMAG... | null | https://raw.githubusercontent.com/binsec/haunted/7ffc5f4072950fe138f53fe953ace98fff181c73/src/dynamic/dse/path_exploration/invertChild.mli | ocaml | ************************************************************************
VERIMAG
you can redistribute it an... | This file is part of BINSEC .
Copyright ( C ) 2016 - 2019
Lesser General Public License as published by the Free Software
Foundation , version 2.1 .
See the GNU Le... |
352afa6ff59fc0deb287384f805c424962fce541abf0a94c0808f14841b94f6a | lingnand/VIMonad | WindowStyle.hs | {-# LANGUAGE DeriveDataTypeable #-}
module XMonad.Vim.WindowStyle
(
windowStyleFromList
, lowerHalfRectHook
, upperHalfRectHook
, rightPanelHook
, leftPanelHook
, runManageHookOnFocused
) where
import XMonad
import XMonad.Util.Types
import qualified XMonad.Util.ExtensibleState as XS
i... | null | https://raw.githubusercontent.com/lingnand/VIMonad/048e419fc4ef57a5235dbaeef8890faf6956b574/XMonadContrib/XMonad/Vim/WindowStyle.hs | haskell | # LANGUAGE DeriveDataTypeable #
the window mappings are used to store the index of the windowStyle in the list | module XMonad.Vim.WindowStyle
(
windowStyleFromList
, lowerHalfRectHook
, upperHalfRectHook
, rightPanelHook
, leftPanelHook
, runManageHookOnFocused
) where
import XMonad
import XMonad.Util.Types
import qualified XMonad.Util.ExtensibleState as XS
import qualified Data.Map as M
import... |
2df47f6133e8a370d1f588f3fe3e081f5b739b55a5c637f639b8baefd3fa9f18 | synduce/Synduce | bal_no.ml | * @synduce
type 'a clist =
| CNil
| Single of 'a
| Concat of 'a clist * 'a clist
type 'a list =
| Nil
| Cons of 'a * 'a list
let rec fbal = function
| Nil -> 0, true
| Cons (hd, tl) ->
let cnt, bal = fbal tl in
let cnt = if hd then cnt + 1 else cnt - 1 in
cnt, bal && cnt >= 0
[@@ensures f... | null | https://raw.githubusercontent.com/synduce/Synduce/d453b04cfb507395908a270b1906f5ac34298d29/benchmarks/lifting/bal_no.ml | ocaml | * @synduce
type 'a clist =
| CNil
| Single of 'a
| Concat of 'a clist * 'a clist
type 'a list =
| Nil
| Cons of 'a * 'a list
let rec fbal = function
| Nil -> 0, true
| Cons (hd, tl) ->
let cnt, bal = fbal tl in
let cnt = if hd then cnt + 1 else cnt - 1 in
cnt, bal && cnt >= 0
[@@ensures f... | |
1f22094e84b698089a8c5bb2f69ca7737a21e4470a3c6de1b4f29f6597992faf | janestreet/bonsai | util.ml | open! Core
open! Js_of_ocaml
let am_running_how
: [ `Node_test | `Node_benchmark | `Node | `Browser_benchmark | `Browser ]
=
let is_in_browser = Js.Optdef.test (Obj.magic Dom_html.document : _ Js.Optdef.t) in
let is_benchmark =
match Sys.getenv "BENCHMARKS_RUNNER" with
| Some "TRUE" -> true
| _ ->... | null | https://raw.githubusercontent.com/janestreet/bonsai/4baeedc75bf73a0915e04dc02d8a49b78779e9b0/web/util.ml | ocaml | open! Core
open! Js_of_ocaml
let am_running_how
: [ `Node_test | `Node_benchmark | `Node | `Browser_benchmark | `Browser ]
=
let is_in_browser = Js.Optdef.test (Obj.magic Dom_html.document : _ Js.Optdef.t) in
let is_benchmark =
match Sys.getenv "BENCHMARKS_RUNNER" with
| Some "TRUE" -> true
| _ ->... | |
6abb377ed74256c9c03f817c37f8dfcce81e1b0abf694da9399078256f2bfa3c | agda/agda | TopLevelModuleName.hs | ------------------------------------------------------------------------
-- Top-level module names
------------------------------------------------------------------------
module Agda.Syntax.TopLevelModuleName where
import Control.DeepSeq
import Data.Function (on)
import Data.Hashable
import qualified Data.List as L... | null | https://raw.githubusercontent.com/agda/agda/4f3899c597792fa4455e0f8134dfd63bc89b1c07/src/full/Agda/Syntax/TopLevelModuleName.hs | haskell | ----------------------------------------------------------------------
Top-level module names
----------------------------------------------------------------------
----------------------------------------------------------------------
Raw top-level module names
| Raw top-level module names (with linear-time compari... |
module Agda.Syntax.TopLevelModuleName where
import Control.DeepSeq
import Data.Function (on)
import Data.Hashable
import qualified Data.List as List
import Data.Text (Text)
import qualified Data.Text as T
import GHC.Generics (Generic)
import System.FilePath
import qualified Agda.Syntax.Abstract.Name as A
import A... |
28bc4e5f99a4047d7fb848a1010f42672e873a4be99eb14df9d81938fa60e2de | TakaiKinoko/Cornell_CS3110_OCaml | foo.mli | val x : int
val f : int -> int -> int
| null | https://raw.githubusercontent.com/TakaiKinoko/Cornell_CS3110_OCaml/0a830bc50a5e39f010074dc289161426294cad1d/Chap5_Modules/04compilation_units/foo.mli | ocaml | val x : int
val f : int -> int -> int
| |
c76ab5b922e6fe298f54276d13bf1b5e13c3d9627e8fd2b52d211a545b59969a | vinted/kafka-elasticsearch-tool | subcommand_test.clj | (ns cli.subcommand-test
(:require [clojure.test :refer :all]
[cli :as cli]))
(def test-ops
[{:name "server"
:handler-fn identity
:docs "Sample docs"
:defaults {:ip "0.0.0.0"
:port 8090
:max-body Integer/MAX_VALUE}}])
(deftest subcom... | null | https://raw.githubusercontent.com/vinted/kafka-elasticsearch-tool/281de24d51cbd2a7ad78e3c1d13a4619b786210d/test/cli/subcommand_test.clj | clojure | (ns cli.subcommand-test
(:require [clojure.test :refer :all]
[cli :as cli]))
(def test-ops
[{:name "server"
:handler-fn identity
:docs "Sample docs"
:defaults {:ip "0.0.0.0"
:port 8090
:max-body Integer/MAX_VALUE}}])
(deftest subcom... | |
f41fea1a7c5447ded64c679fa16fd870c80b2c83b690a2b1d9d420a930f7f751 | mschuene/stratege | benchmark.clj | (ns stratege.benchmark
(:require [clojure.test :refer :all]
[fast-zip.core :as zip]
[stratege.cps :refer :all]
[criterium.core :as crit]
[stratege.core :as s]))
compare strategy combinator defined bottomup to hand rolled zip based bottomup
(defn apply-strategy-... | null | https://raw.githubusercontent.com/mschuene/stratege/a1afcb11fac8b74372ddd40d963801921dc35348/test/stratege/benchmark.clj | clojure | go right
applies rule and goes right
we are done
go right
applies rule and goes right
with a more costly strategy | (ns stratege.benchmark
(:require [clojure.test :refer :all]
[fast-zip.core :as zip]
[stratege.cps :refer :all]
[criterium.core :as crit]
[stratege.core :as s]))
compare strategy combinator defined bottomup to hand rolled zip based bottomup
(defn apply-strategy-... |
2c7452565f243045be38ce6d219c793d38500b1566dd63ec102d383fa8171e71 | nextjournal/clerk | webserver_test.clj | (ns nextjournal.clerk.webserver-test
(:require [clojure.test :refer [deftest is testing]]
[nextjournal.clerk.eval :as eval]
[nextjournal.clerk.view :as view]
[nextjournal.clerk.webserver :as webserver]))
(deftest serve-blob
(testing "lazy loading of simple range"
(let [doc (... | null | https://raw.githubusercontent.com/nextjournal/clerk/92cfcc59898c1aff24eef1b59ae07af8af0adac5/test/nextjournal/clerk/webserver_test.clj | clojure | (ns nextjournal.clerk.webserver-test
(:require [clojure.test :refer [deftest is testing]]
[nextjournal.clerk.eval :as eval]
[nextjournal.clerk.view :as view]
[nextjournal.clerk.webserver :as webserver]))
(deftest serve-blob
(testing "lazy loading of simple range"
(let [doc (... | |
811504004fa35fe810440627325f08b2da5cd9c1e52eadd1f479fa356d798250 | avatar29A/hs-aitubots-api | Spec.hs | {-# LANGUAGE OverloadedStrings #-}
# LANGUAGE RecordWildCards #
module Main (main) where
import Data.Maybe
import Test.Hspec
import Options.Applicative
import System.Environment (lookupEnv, withArgs)
import qualified Data.ByteString as BS
Specs
import qualified MainSpec
import qualified JSO... | null | https://raw.githubusercontent.com/avatar29A/hs-aitubots-api/9cc3fd1e4e9e81491628741a6bbb68afbb85704e/test/Spec.hs | haskell | # LANGUAGE OverloadedStrings #
| Command line options for test suite
^ Run integration tests
^ Bot Name
^ Id of a chat or of your bot
^ Token
help\" for more info" | # LANGUAGE RecordWildCards #
module Main (main) where
import Data.Maybe
import Test.Hspec
import Options.Applicative
import System.Environment (lookupEnv, withArgs)
import qualified Data.ByteString as BS
Specs
import qualified MainSpec
import qualified JSONSpec
data Options = Options {
^... |
a2708ed11e66ecb5b65f07008adab6c953bd2af6070e1dd1d5e1787b768646c3 | ngorogiannis/cyclist | pred.ml | open Lib
open Symbols
open MParser
module IndSubf = struct
include Pair.Make (Predsym) (Term.FList)
let to_string (p, args) =
Predsym.to_string p ^ symb_lp.str
^ Term.FList.to_string_sep symb_comma.sep args
^ symb_rp.str
let pp fmt (p, args) =
Format.fprintf fmt "@[%a%s%s%s@]" Predsym.pp p symb... | null | https://raw.githubusercontent.com/ngorogiannis/cyclist/c93a168d586b308ab2a2c730cd1b2375ab263167/src/seplog/pred.ml | ocaml | open Lib
open Symbols
open MParser
module IndSubf = struct
include Pair.Make (Predsym) (Term.FList)
let to_string (p, args) =
Predsym.to_string p ^ symb_lp.str
^ Term.FList.to_string_sep symb_comma.sep args
^ symb_rp.str
let pp fmt (p, args) =
Format.fprintf fmt "@[%a%s%s%s@]" Predsym.pp p symb... | |
4843fabfdb5a4e09b060502d6062be13ef6609062bca5c549ec45d6fc07343a9 | quephird/fun-with-quil | doppeldecker.clj | (ns fun-with-quil.sketches.doppeldecker
(:require [quil.core :as q :include-macros true]))
(defn graded-triangle [s c]
(let [tri-h (* 0.866 s)
upper-tri-h (* 0.7 tri-h)
quad-h (- tri-h upper-tri-h)
upper-tri-s (* 0.7 s)]
(q/begin-shape :triangles)
(doseq [[[x y] c] [[[0 0... | null | https://raw.githubusercontent.com/quephird/fun-with-quil/3b3a6885771f5a1a4cffeb8379f05a28048a1616/src/fun_with_quil/sketches/doppeldecker.clj | clojure | (ns fun-with-quil.sketches.doppeldecker
(:require [quil.core :as q :include-macros true]))
(defn graded-triangle [s c]
(let [tri-h (* 0.866 s)
upper-tri-h (* 0.7 tri-h)
quad-h (- tri-h upper-tri-h)
upper-tri-s (* 0.7 s)]
(q/begin-shape :triangles)
(doseq [[[x y] c] [[[0 0... | |
888abd39d8611d81256c468953d9443bc83b0053f798fcdd77db63885afb2402 | pepeiborra/arrowp | Eval1.hs | LANGUAGE Arrows
{-# OPTIONS -F -pgmF arrowp-ext #-}
module Eval1 where
Toy lambda - calculus interpreter from arrows paper ( s5 )
import Control.Arrow
import Data.Maybe (fromJust)
type Id = String
data Val a = Num Int | Bl Bool | Fun (a (Val a) (Val a))
data Exp = Var Id | Add Exp Exp |... | null | https://raw.githubusercontent.com/pepeiborra/arrowp/34ce776d4116468c250f20b85f7967f1856384e5/examples/small/Eval1.hs | haskell | # OPTIONS -F -pgmF arrowp-ext #
some tests | LANGUAGE Arrows
module Eval1 where
Toy lambda - calculus interpreter from arrows paper ( s5 )
import Control.Arrow
import Data.Maybe (fromJust)
type Id = String
data Val a = Num Int | Bl Bool | Fun (a (Val a) (Val a))
data Exp = Var Id | Add Exp Exp | If Exp Exp Exp | Lam Id Exp | App E... |
07e6e8bd4bd7df33f2736e522a8d4f9550f56789d956339f21b8de19eea288b3 | eduardoaguacate/Object-Oriented-Haskell | DataTypes.hs | module DataTypes where
import Data.Decimal
import qualified Data.HashMap.Strict as Map
import Data.List (intercalate)
import Quadruple
Esta sección tiene las producciones semánticas para producir el árbol abstracto de sintaxis
type Identifier = String
type ClassIdentifier = String
type AncestorsMap = Map.HashMap Cla... | null | https://raw.githubusercontent.com/eduardoaguacate/Object-Oriented-Haskell/2f6192ca98513886cbedffa7429c87c44ffdcf05/DataTypes.hs | haskell | deriving (Show,Eq) | module DataTypes where
import Data.Decimal
import qualified Data.HashMap.Strict as Map
import Data.List (intercalate)
import Quadruple
Esta sección tiene las producciones semánticas para producir el árbol abstracto de sintaxis
type Identifier = String
type ClassIdentifier = String
type AncestorsMap = Map.HashMap Cla... |
250825adf49d9899a95fa516ef81e53f74cee365bef489c65f54793770272e4f | poroh/ersip | ersip_uas.erl | %%
Copyright ( c ) 2018 Dmitry Poroh
%% All rights reserved.
Distributed under the terms of the MIT License . See the LICENSE file .
%%
UAS processing
%%
-module(ersip_uas).
-export([process_request/3]).
-export_type([uas/0, options/0]).
%%%===================================================================
%%... | null | https://raw.githubusercontent.com/poroh/ersip/fbd02020340f197558578f60ae08020a08d159e6/src/ersip_uas.erl | erlang |
All rights reserved.
===================================================================
Types
===================================================================
===================================================================
API
===================================================================
===========... | Copyright ( c ) 2018 Dmitry Poroh
Distributed under the terms of the MIT License . See the LICENSE file .
UAS processing
-module(ersip_uas).
-export([process_request/3]).
-export_type([uas/0, options/0]).
-record(uas, {allowed_methods :: ersip_method_set:set(),
request :: undefined |... |
1aae09b44a9d2b73c7b6c3cc90af2bb7797e760d086484ac2c790d297dfb4a89 | eriksvedang/unity-lisp | file_helpers.clj | (ns unity-lisp.file-helpers)
(defn clj-to-js-path [clj-path]
(clojure.string/replace clj-path #".clj" ".js"))
(defn ensure-folder [file-path subfolder-name]
(let [path-segments (clojure.string/split file-path #"/")
all-except-last (drop-last path-segments)
sub-path (clojure.string/join "/" all-exc... | null | https://raw.githubusercontent.com/eriksvedang/unity-lisp/fee8903a48dd436b5d123be42176f808f2414180/src/unity_lisp/file_helpers.clj | clojure | (ns unity-lisp.file-helpers)
(defn clj-to-js-path [clj-path]
(clojure.string/replace clj-path #".clj" ".js"))
(defn ensure-folder [file-path subfolder-name]
(let [path-segments (clojure.string/split file-path #"/")
all-except-last (drop-last path-segments)
sub-path (clojure.string/join "/" all-exc... | |
dc6baacb55cfb15cf305e772f42e998d134ef41ccdcab9471853b1eb612c03bc | Practical-Formal-Methods/adiff | Data.hs | -----------------------------------------------------------------------------
-- |
Module : Language . C.Data
Copyright : ( c ) 2008
-- License : BSD-style
-- Maintainer :
-- Stability : experimental
Portability : ghc
--
Common data types for Language . C : Identifiers , unique names , s... | null | https://raw.githubusercontent.com/Practical-Formal-Methods/adiff/c18872faf3e31572437686d766f9972e00274588/language-c-extensible/src/Language/C/Data.hs | haskell | ---------------------------------------------------------------------------
|
License : BSD-style
Maintainer :
Stability : experimental
ast node attributes and extensible errors.
---------------------------------------------------------------------------
* Input stream
* Identifiers
* Source code posi... | Module : Language . C.Data
Copyright : ( c ) 2008
Portability : ghc
Common data types for Language . C : Identifiers , unique names , source code locations ,
module Language.C.Data (
module Language.C.Data.InputStream,
SUERef(..), isAnonymousRef, sueRefToString,
Ident,mkIdent, iden... |
8459987084aea0857a9cd1f8924f0c705941e72e39d2cbf430bf18fb58deaa22 | whamtet/dogfort | brepl.clj | (require
'[cljs.build.api :as b]
'[cljs.repl :as repl]
'[cljs.repl.browser :as browser])
(b/build "src"
{:main '{{name}}.core
:output-to "out/{{sanitized}}.js"
:output-dir "out"
:verbose true})
(repl/repl (browser/repl-env)
:output-dir "out")
| null | https://raw.githubusercontent.com/whamtet/dogfort/75c2908355cc18bf350a5b761d2906e013ee9f94/dogfort-template/src/leiningen/new/dogfort/brepl.clj | clojure | (require
'[cljs.build.api :as b]
'[cljs.repl :as repl]
'[cljs.repl.browser :as browser])
(b/build "src"
{:main '{{name}}.core
:output-to "out/{{sanitized}}.js"
:output-dir "out"
:verbose true})
(repl/repl (browser/repl-env)
:output-dir "out")
| |
a62bdc6017aff63d129acf778eeac13a8a2fe4486133ebe2a509790f390ee442 | ajhc/ajhc | FromE.hs | {-# LANGUAGE OverloadedStrings #-}
module Grin.FromE(compile) where
import Control.Monad.Reader
import Data.Graph(stronglyConnComp, SCC(..))
import Data.IORef
import Data.Monoid(Monoid(..))
import Data.List
import Data.Maybe
import qualified Data.Map as Map
import qualified Data.Set as Set
import C.FFI hiding(Primiti... | null | https://raw.githubusercontent.com/ajhc/ajhc/8ef784a6a3b5998cfcd95d0142d627da9576f264/src/Grin/FromE.hs | haskell | # LANGUAGE OverloadedStrings #
| Tags
'f' - normal function
'F' - postponed function
'P' - partial application of function
'C' - data constructor
'T' - type constructor
'Y' - partial application of type constructor (think, broken T)
'b' - built in funttion
'B' - postponed built in function (built in functions ... | module Grin.FromE(compile) where
import Control.Monad.Reader
import Data.Graph(stronglyConnComp, SCC(..))
import Data.IORef
import Data.Monoid(Monoid(..))
import Data.List
import Data.Maybe
import qualified Data.Map as Map
import qualified Data.Set as Set
import C.FFI hiding(Primitive)
import C.Prims
import Cmm.Op(To... |
e3adaec30beffc59524e70885fd4fb2ebbe51efbc28d0187a2a1ca7e6e8cdde0 | S8A/htdp-exercises | ex384.rkt | The first three lines of this file were inserted by . They record metadata
;; about the language level of this file in a form that our tools can easily process.
#reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex384) (read-case-sensitive #t) (teachpacks ((lib "universe.rkt" "teachpack" "2htdp") (lib... | null | https://raw.githubusercontent.com/S8A/htdp-exercises/578e49834a9513f29ef81b7589b28081c5e0b69f/ex384.rkt | racket | about the language level of this file in a form that our tools can easily process.
font size
interpretation (make-data p d) combines the current price
of some stock and the amount it has changed since the
last time it was posted
retrieves new data of the stock from the URL,
discarding the previous information
... | The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex384) (read-case-sensitive #t) (teachpacks ((lib "universe.rkt" "teachpack" "2htdp") (lib "image.rkt" "teachpack" "2htdp") (lib "batch-io.rkt" "teachpack" "2htdp"))) (htdp-set... |
be6d750ad7b0596fc6c46d7ef11884036d9dd51565f36f55af1742b2f712d123 | trchopan/scheduled-blocks | KeyFile.hs | module Repository.KeyFile where
import Data.Aeson ( eitherDecode )
import qualified Data.ByteString.Lazy as LBS
import Data.Text ( unpack )
import Domain.VrfSkey ( VrfSkey(cborHexVrfSkey) )
loadVrfSkey :: FilePath -> IO V... | null | https://raw.githubusercontent.com/trchopan/scheduled-blocks/802c9923e3281194bf080cd03bed97fb8a11458c/src/Repository/KeyFile.hs | haskell | module Repository.KeyFile where
import Data.Aeson ( eitherDecode )
import qualified Data.ByteString.Lazy as LBS
import Data.Text ( unpack )
import Domain.VrfSkey ( VrfSkey(cborHexVrfSkey) )
loadVrfSkey :: FilePath -> IO V... | |
1818f845e58f41d65db053dcd87e2abe015fb18e5dfb549a98e7274a27e82ef0 | wireless-net/erlang-nommu | reltool_mod_win.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 2009 - 2013 . 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 Publi... | null | https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/reltool/src/reltool_mod_win.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 limitatio... | Copyright Ericsson AB 2009 - 2013 . 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(reltool_mod_win).
-export([start_... |
e402e43763a712f54909e64bac2573c1167a8bb7a1d83b69f25138969b1f89e5 | uxbox/uxbox-backend | impl.clj | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
;;
Copyright ( c ) 2016 < >
(ns storages.impl
"Implementation details and helpers."
(:require [storages.proto :as pt]
[sto... | null | https://raw.githubusercontent.com/uxbox/uxbox-backend/036c42db8424be3ac34c38be80577ee279141681/vendor/storages/impl.clj | clojure | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
Copyright ( c ) 2016 < >
(ns storages.impl
"Implementation details and helpers."
(:require [storages.proto :as pt]
[storag... | |
5a47fbdf040cc4f5aaee43cd3a457b0a769f45cce2d7b8a35fe37db054d5b416 | biscuit-auth/biscuit-haskell | Servant.hs | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
# LANGUAGE RecordWildCards #
{-# LANGUAGE TypeFamilies #-}
module Auth.Biscuit.Servant
(
-- * Protecting a servant API with biscuits
-- $... | null | https://raw.githubusercontent.com/biscuit-auth/biscuit-haskell/98573ff99d4ba995c2c16987d41af9ace01fd9f7/biscuit-servant/src/Auth/Biscuit/Servant.hs | haskell | # LANGUAGE NamedFieldPuns #
# LANGUAGE OverloadedStrings #
# LANGUAGE RankNTypes #
# LANGUAGE TypeFamilies #
* Protecting a servant API with biscuits
$presentation
** Annotating servant API types
$apitypes
*** Custom parsing and error handling
** Supplying a authorizer for a single endpoint
$singl... | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE RecordWildCards #
module Auth.Biscuit.Servant
(
RequireBiscuit
, authHandler
, genBiscuitCtx
, authHandlerWith
, genBiscuitCtxWith
, BiscuitConfig (..)
, defaultBiscuitConfig
, checkBiscuit
, checkBiscuitM
, checkBisc... |
9439f0c740fcf9762af9a22fbec5ec9455bda74b405736a2ac7439b7801735a9 | Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library | GelatoSessionDocumentOptions.hs | {-# LANGUAGE MultiWayIf #-}
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator .
{-# LANGUAGE OverloadedStrings #-}
-- | Contains the types generated from the schema GelatoSessionDocumentOptions
module StripeAPI.Types.GelatoSessionDocumentOp... | null | https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Types/GelatoSessionDocumentOptions.hs | haskell | # LANGUAGE MultiWayIf #
# LANGUAGE OverloadedStrings #
| Contains the types generated from the schema GelatoSessionDocumentOptions
| Defines the object schema located at @components.schemas.gelato_session_document_options@ in the specification.
| allowed_types: Array of strings of allowed identity document types. If... | CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator .
module StripeAPI.Types.GelatoSessionDocumentOptions where
import qualified Control.Monad.Fail
import qualified Data.Aeson
import qualified Data.Aeson as Data.Aeson.Encoding.Internal
impor... |
20617ddd3fb8aa2aaa0a06152e5924abb9037ba3d23043c7771ddddb4eb519e8 | ocsigen/js_of_ocaml | code.mli | Js_of_ocaml compiler
* /
* Copyright ( C ) 2010
* Laboratoire PPS - CNRS Université Paris Diderot
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , with linking... | null | https://raw.githubusercontent.com/ocsigen/js_of_ocaml/b6f63a3926e29ca3801be77ffcefde4937fb7301/compiler/lib/code.mli | ocaml | Js_of_ocaml compiler
* /
* Copyright ( C ) 2010
* Laboratoire PPS - CNRS Université Paris Diderot
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , with linking... | |
24eebb45f46cda83ab1654ddc096a9f96e8c7fb1643a5b2f740402c0928688e5 | discus-lang/ddc | Builtin.hs |
module DDC.Core.Codec.Text.Lexer.Token.Builtin
( Builtin (..)
, sayBuiltin
, scanBuiltin
, acceptBuiltin)
where
import DDC.Core.Codec.Text.Lexer.Token.Names
import DDC.Core.Codec.Text.Pretty.Type
import DDC.Core.Exp
import Text.Lexer.Inchworm.Char
import qualified Data.List as List... | null | https://raw.githubusercontent.com/discus-lang/ddc/2baa1b4e2d43b6b02135257677671a83cb7384ac/src/s1/ddc-core/DDC/Core/Codec/Text/Lexer/Token/Builtin.hs | haskell | -----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
| Scanner for builtin names.
| Accept a builtin name.
Sort constructors.
Kind cons... |
module DDC.Core.Codec.Text.Lexer.Token.Builtin
( Builtin (..)
, sayBuiltin
, scanBuiltin
, acceptBuiltin)
where
import DDC.Core.Codec.Text.Lexer.Token.Names
import DDC.Core.Codec.Text.Pretty.Type
import DDC.Core.Exp
import Text.Lexer.Inchworm.Char
import qualified Data.List as List... |
669bc2d1f97bac69e949544eee2d2946685d002961d7c9a2cbf5b2a9ec871c29 | erlangonrails/devdb | json.erl | JSON - RFC 4627 - for Erlang
%%---------------------------------------------------------------------------
Copyright ( c ) 2007 < >
Copyright ( c ) 2007 LShift Ltd. < >
%%
%% Permission is hereby granted, free of charge, to any person
%% obtaining a copy of this software and associated documentation
files... | null | https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/ringo/ringogw/src/json.erl | erlang | ---------------------------------------------------------------------------
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, a... | JSON - RFC 4627 - for Erlang
Copyright ( c ) 2007 < >
Copyright ( c ) 2007 LShift Ltd. < >
files ( the " Software " ) , to deal in the Software without
of the Software , and to permit persons to whom the Software is
included in all copies or substantial portions of the Software .
THE SOFTWARE IS PRO... |
1b5c80209fb975a409abd9135562cd77618ebaa72df64b2d9a4fe826d1858e21 | mstksg/advent-of-code-2022 | AOC.hs | -- |
Module : AOC
Copyright : ( c ) 2021
-- License : BSD3
--
Maintainer :
-- Stability : experimental
-- Portability : non-portable
--
-- Single-stop entry point for the library's functionality and all
-- challenge solutions.
--
module AOC (
module AOC
) where
import AOC.Cha... | null | https://raw.githubusercontent.com/mstksg/advent-of-code-2022/51b4b3797273266efb4af440b155cd9548776911/src/AOC.hs | haskell | |
License : BSD3
Stability : experimental
Portability : non-portable
Single-stop entry point for the library's functionality and all
challenge solutions.
| Module : AOC
Copyright : ( c ) 2021
Maintainer :
module AOC (
module AOC
) where
import AOC.Challenge as AOC
import AOC.Run as AOC
import AOC.Run.Config as AOC
import AOC.Run.Interactive as AOC
import AOC.Run.Load ... |
94e457b96dc5852b737c5d0f3a13279c912acbf643e9926714938b552fb29f4f | wilkerlucio/wsscode-async | project.clj | (defproject com.wsscode/async "2021.01.15"
:description "Helpers for Clojure core.async."
:url "-async"
:license {:name "MIT"
:url ""}
:source-paths ["src"]
:dependencies [[org.clojure/core.async "1.3.610"]]
:jar-exclusions [#"node-modules/.+"]
:deploy-repositories [["clojars" {:url "/"... | null | https://raw.githubusercontent.com/wilkerlucio/wsscode-async/163b1cf5c9963d4c798aed4018461abdee754a1d/project.clj | clojure | (defproject com.wsscode/async "2021.01.15"
:description "Helpers for Clojure core.async."
:url "-async"
:license {:name "MIT"
:url ""}
:source-paths ["src"]
:dependencies [[org.clojure/core.async "1.3.610"]]
:jar-exclusions [#"node-modules/.+"]
:deploy-repositories [["clojars" {:url "/"... | |
801538e01bc405f9609f9ef7832b7309acc596a60355e98549185b3348881382 | wireapp/wire-server | Conversation.hs | -- This file is part of the Wire Server implementation.
--
Copyright ( C ) 2022 Wire Swiss GmbH < >
--
-- This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation , either version 3 of the License... | null | https://raw.githubusercontent.com/wireapp/wire-server/090e762ec0a2026a266c1fd2a288301b3759d92f/services/galley/src/Galley/Data/Conversation.hs | haskell | This file is part of the Wire Server implementation.
This program is free software: you can redistribute it and/or modify it under
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 PARTI... | Copyright ( C ) 2022 Wire Swiss GmbH < >
the terms of the GNU Affero General Public License as published by the Free
Software Foundation , either version 3 of the License , or ( at your option ) any
You should have received a copy of the GNU Affero General Public License along
module Galley.Data.Conversation
... |
459c711be1167e45a2a9c9b0b4b938cabf01d8d2864e6b7802f039efbcc8ed0e | basho/riak_test | ts_simple_show_create_table.erl | %% -------------------------------------------------------------------
%%
Copyright ( c ) 2016 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/ts_simple_show_create_table.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 ) 2016 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
-module(ts_simple_show_create_t... |
2a83171f0789723e0b1873ee906e9d1e61e7c822bb438ddbf5e9355e1d919e64 | nkaretnikov/OOHaskell | Print.hs | # LANGUAGE FlexibleInstances #
{-# LANGUAGE TypeSynonymInstances#-}
# LANGUAGE UndecidableInstances #
# LANGUAGE OverlappingInstances #
module Print
(
printLn,
(<<)
)
where
import Prelude hiding (print)
import Data.HList.HListPrelude
-- The type-class for printing
class PrintType x
where
print :: x ... | null | https://raw.githubusercontent.com/nkaretnikov/OOHaskell/ddf42cfa62f8bd27643ff6db136dec6c14466232/lib/Print.hs | haskell | # LANGUAGE TypeSynonymInstances#
The type-class for printing
Printable composites
Compose printable expressions (aka daisy chaining)
Strings are printable right away
Printing compound expressions
Printing the rest
Print expression and begin a new line | # LANGUAGE FlexibleInstances #
# LANGUAGE UndecidableInstances #
# LANGUAGE OverlappingInstances #
module Print
(
printLn,
(<<)
)
where
import Prelude hiding (print)
import Data.HList.HListPrelude
class PrintType x
where
print :: x -> IO ()
data (PrintType x, PrintType y) => PrintPair x y = Print... |
91db3afd7bcb6b495a11a741c748bcbf1cda5a286353b90fb21b0a8514861949 | kmi/irs | load.lisp | Mode : Lisp ; Package :
The Open University
(in-package "OCML")
(def-ontology wondertools4 :type :domain
:author "arthurd"
:allowed-editors ("amsterdam"))
| null | https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/ontologies/domains/wondertools4/load.lisp | lisp | Package : |
The Open University
(in-package "OCML")
(def-ontology wondertools4 :type :domain
:author "arthurd"
:allowed-editors ("amsterdam"))
|
b5d51e35b89c301fbab0b8a28dbdb0bd97922ee8c2973b068a46bdcac0890fd0 | clojure-lsp/lsp4clj | responses.clj | (ns lsp4clj.lsp.responses
(:require
[camel-snake-kebab.core :as csk]
[camel-snake-kebab.extras :as cske]))
(set! *warn-on-reflection* true)
(defn response
"Create a JSON-RPC response object. A response should be extend with a
`:result` or `:error` either by using the arity-2 version, or via the helpers
... | null | https://raw.githubusercontent.com/clojure-lsp/lsp4clj/1edff25befa7cef6911436644abbabe195221267/src/lsp4clj/lsp/responses.clj | clojure | (ns lsp4clj.lsp.responses
(:require
[camel-snake-kebab.core :as csk]
[camel-snake-kebab.extras :as cske]))
(set! *warn-on-reflection* true)
(defn response
"Create a JSON-RPC response object. A response should be extend with a
`:result` or `:error` either by using the arity-2 version, or via the helpers
... | |
f89b18425bf061b690de33e1f8888dadebd1b69d9e4cfa3bf73daa7839db559e | onedata/op-worker | page_file_upload.erl | %%%-------------------------------------------------------------------
@author
@author
( C ) 2018 - 2019 ACK CYFRONET AGH
This software is released under the MIT license
cited in ' LICENSE.txt ' .
%%% @end
%%%-------------------------------------------------------------------
%%% @doc
%%% This module imp... | null | https://raw.githubusercontent.com/onedata/op-worker/11d01d6aab7f9bab939754369cf7e739ba93f74c/src/http/gui/page_handlers/page_file_upload.erl | erlang | -------------------------------------------------------------------
@end
-------------------------------------------------------------------
@doc
This module implements dynamic_page_behaviour and is called
when file upload page is visited.
@end
-------------------------------------------------------------------
F... | @author
@author
( C ) 2018 - 2019 ACK CYFRONET AGH
This software is released under the MIT license
cited in ' LICENSE.txt ' .
-module(page_file_upload).
-author("Lukasz Opiola").
-author("Bartosz Walkowicz").
-behaviour(dynamic_page_behaviour).
-include("http/rest.hrl").
-include("global_definitions.hr... |
897e8d703367c4c4c58a1f8db352a00604845fa5e6f6f2d78aeaa93eba3bd0dd | jeromesimeon/Galax | compile_expr.mli | (***********************************************************************)
(* *)
(* GALAX *)
(* XQuery Engine *)
(* ... | null | https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/compile/compile_expr.mli | ocaml | *********************************************************************
GALAX
XQuery Engine
... | Copyright 2001 - 2007 .
$ I d : compile_expr.mli , v 1.9 2007/02/01 22:08:45 simeon Exp $
open Xquery_core_ast
open Ast_logical_algebra_types
val compile_cexpr : Compile_context.logical_compile_context -> acexpr -> logical_algop_expr
|
368fd6b466d63c2c35072c59ac9dd49cf509b5c55dc3aa95c9a695e34e6d27ae | flosell/lambdacd | running_builds_tracking.clj | (ns lambdacd.internal.running-builds-tracking
(:require [lambdacd.event-bus :as event-bus]
[clojure.core.async :as async]))
(defn- running-step-record [payload]
{:step-id (:step-id payload)
:build-number (:build-number payload)})
(defn initialize-running-builds-tracking [ctx]
(let [steps-sta... | null | https://raw.githubusercontent.com/flosell/lambdacd/e9ba3cebb2d5f0070a2e0e1e08fc85fc99ee7135/src/clj/lambdacd/internal/running_builds_tracking.clj | clojure | (ns lambdacd.internal.running-builds-tracking
(:require [lambdacd.event-bus :as event-bus]
[clojure.core.async :as async]))
(defn- running-step-record [payload]
{:step-id (:step-id payload)
:build-number (:build-number payload)})
(defn initialize-running-builds-tracking [ctx]
(let [steps-sta... | |
7781fbacce44c2182a5a7a596bcfb06770f3f028945d5c66e14a72631604ac5c | cac-t-u-s/om-sharp | patch-component-boxes.lisp | ;============================================================================
; om#: visual programming language for computer-assisted music composition
;============================================================================
;
; This program is free software. For information on usage
; and redistribution, see... | null | https://raw.githubusercontent.com/cac-t-u-s/om-sharp/74aa97891177de1d167aa5963be00f0d453a3bcd/src/visual-language/patch/patch-component-boxes.lisp | lisp | ============================================================================
om#: visual programming language for computer-assisted music composition
============================================================================
This program is free software. For information on usage
and redistribution, see the "... | File author :
(in-package :om)
(defclass OMPatchComponent (OMBasicObject) ())
(defclass OMPatchComponentBox (OMBoxCall) ())
(defmethod omNG-make-new-boxcall ((reference OMPatchComponent) pos &optional init-args)
(let* ((box (make-instance (get-box-class reference)
:name (name refe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.