_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 |
|---|---|---|---|---|---|---|---|---|
4958643f4beb9a15142f1d3b6b809a4b2a625bd3a2d4459a5391cda353c1f1fa | bpiel/guildsman | walk.cljs | Copyright ( c ) . All rights reserved .
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (-1.0.php)
; which can be found in the file epl-v10.html at the root of this distribution.
; By using this software in any fashion, you are agreeing to be bound by
; ... | null | https://raw.githubusercontent.com/bpiel/guildsman/59c9a7459de19525cfc54112f02127e0777a00ce/resources/public/js/compiled/out/clojure/walk.cljs | clojure | The use and distribution terms for this software are covered by the
Eclipse Public License 1.0 (-1.0.php)
which can be found in the file epl-v10.html at the root of this distribution.
By using this software in any fashion, you are agreeing to be bound by
the terms of this license.
You must not remove ... | Copyright ( c ) . All rights reserved .
by
CHANGE LOG :
* July 17 , 2011 : Port to ClojureScript
* December 15 , 2008 : replaced ' walk ' with ' prewalk ' & ' postwalk '
* December 9 , 2008 : first version
(ns
^{:author "Stuart Sierra",
:doc "This file defines a generic tree walker for Cl... |
c6bb79cb2d95e2ad18dc6706031b7779f21b0d81565afb55615409eb1440960e | HunterYIboHu/htdp2-solution | ex347-eval-expression.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 ex347-eval-expression) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constr... | null | https://raw.githubusercontent.com/HunterYIboHu/htdp2-solution/6182b4c2ef650ac7059f3c143f639d09cd708516/Chapter4/Section21-Refining-Interpreters/ex347-eval-expression.rkt | racket | about the language level of this file in a form that our tools can easily process.
data difinitions
An Add is a structure:
An Mul is a structure:
- Number
- Add
- Mul
An Expression is one of:
- Number
- (+ Expression Expression)
- (* Expression Expression)
constants
functions
produces the value of the giv... | The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex347-eval-expression) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f)))
(define-struct add [left right])
(... |
060a7cab56698c958dfadf4a85719dfa0add43f462d73434e20fb7fb2bcd167f | yawaramin/re-web | CacheControl.mli | (** See
{{: -US/docs/Web/HTTP/Headers/Cache-Control}}
for detailed explanations of the various cache options. See
{!ReWeb.Filter.cache_control} for the intended usage of this type. *)
type privately = {
must_revalidate : bool option;
* In seconds
}
(** Caching options for the end user's device. *)
type ... | null | https://raw.githubusercontent.com/yawaramin/re-web/7b407c1b98ddfac32a81c32481c40cc535c7452a/ReWeb/Header/CacheControl.mli | ocaml | * See
{{: -US/docs/Web/HTTP/Headers/Cache-Control}}
for detailed explanations of the various cache options. See
{!ReWeb.Filter.cache_control} for the intended usage of this type.
* Caching options for the end user's device.
* Caching options for proxies and other devices than the end user.
* Don't cache ... |
type privately = {
must_revalidate : bool option;
* In seconds
}
type publicly = {
no_transform : bool option;
proxy_revalidate : bool option;
* In seconds
}
type t =
val private_ : ?must_revalidate:bool -> ?max_age:int -> unit -> t
val public :
?must_revalidate:bool ->
?max_age:int ->
?no_transform:bo... |
61779a612a107ada70094dccd0b680b1f673e73a1b6e99f235ba8082aabc79aa | Opetushallitus/aipal | koko_putki_test.clj | Copyright ( c ) 2014 The Finnish National Board of Education - Opetushallitus
;;
This program is free software : Licensed under the EUPL , Version 1.1 or - as
soon as they will be approved by the European Commission - subsequent versions
of the EUPL ( the " Licence " ) ;
;;
;; You may not use this work except... | null | https://raw.githubusercontent.com/Opetushallitus/aipal/767bd14ec7153dc97fdf688443b9687cdb70082f/e2e/test/aipal_e2e/koko_putki_test.clj | clojure |
You may not use this work except in compliance with the Licence.
You may obtain a copy of the Licence at: /
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
luo kysely
... | Copyright ( c ) 2014 The Finnish National Board of Education - Opetushallitus
This program is free software : Licensed under the EUPL , Version 1.1 or - as
soon as they will be approved by the European Commission - subsequent versions
European Union Public Licence for more details .
(ns aipal-e2e.koko-putki-... |
f7aa34cccc298999c736f6cef6cf38a867afb729e8f6d7b1fa2dc0d4252e9e9c | everpeace/programming-erlang-code | indexer_server.erl | -module(indexer_server).
-export([cold_start/2,
start/1,
filename2index/1,
next_dir/0,
ets_table/0,
checkpoint/0,
schedule_stop/0,
search/1,
should_i_stop/0,
outdir/0,
stop/0]).
-export([init/1, handle_call/3, handle_cast/2, terminate/2]).
-import(filename, [join/2]).
indexer_server : cold... | null | https://raw.githubusercontent.com/everpeace/programming-erlang-code/8ef31aa13d15b41754dda225c50284915c29cb48/code/indexer-1.1/indexer_server.erl | erlang | % do once
indexer_server:start(). %% start the server
indexer_server:stop(). %% stop
% next dir to work at
indexer_server:file2index(File) -> Index %% filename2index
% advance the dir pointer and set
%% a new checkpoint
... | -module(indexer_server).
-export([cold_start/2,
start/1,
filename2index/1,
next_dir/0,
ets_table/0,
checkpoint/0,
schedule_stop/0,
search/1,
should_i_stop/0,
outdir/0,
stop/0]).
-export([init/1, handle_call/3, handle_cast/2, terminate/2]).
-import(filename, [join/2]).
start(Dir) ->
io:f... |
81402c2970b43a8b8b6125af9703cef330d8eb47a271d722e4213e9b871fa113 | stchang/graph | info.rkt | #lang setup/infotab
| null | https://raw.githubusercontent.com/stchang/graph/0ff9a1934f4421c53ec4b71cb48d54a6ad86c7b9/graph-lib/graph/info.rkt | racket | #lang setup/infotab
| |
bcfecc6cae1b740d5cba610a96e2800f484e75328f4c649226c4008d81ec2e6a | wireless-net/erlang-nommu | wxPreviewFrame.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 2008 - 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/wx/src/gen/wxPreviewFrame.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 2008 - 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(wxPreviewFrame).
-include("wxe.hr... |
89dd134f316bfa778a8b503eaba45b25017443c272fb6d3ea15e8d039187aa20 | slipstream/SlipStreamServer | module_image_test.cljc | (ns com.sixsq.slipstream.ssclj.resources.spec.module-image-test
(:require
[clojure.spec.alpha :as s]
[clojure.test :refer [are deftest is]]
[com.sixsq.slipstream.ssclj.resources.connector :as t] ;; FIXME: Change to module-version when available.
[com.sixsq.slipstream.ssclj.resources.spec.module-image... | null | https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi-resources/test/com/sixsq/slipstream/ssclj/resources/spec/module_image_test.cljc | clojure | FIXME: Change to module-version when available.
required attributes
optional attributes | (ns com.sixsq.slipstream.ssclj.resources.spec.module-image-test
(:require
[clojure.spec.alpha :as s]
[clojure.test :refer [are deftest is]]
[com.sixsq.slipstream.ssclj.resources.spec.module-image :as module-image]
[com.sixsq.slipstream.ssclj.resources.spec.spec-test-utils :as stu]))
(def valid-acl {... |
bb1eb853001076f045a649d5e42dfda75ffc5b322239bd629fb744ba0d81cb73 | waymonad/waymonad | XdgShellv6.hs |
waymonad A wayland compositor in the spirit of xmonad
Copyright ( C ) 2017
This library 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 ; either
version 2.1 of the License , or ( at your op... | null | https://raw.githubusercontent.com/waymonad/waymonad/18ab493710dd54c330fb4d122ed35bc3a59585df/src/Waymonad/Shells/XdgShellv6.hs | haskell | # LANGUAGE OverloadedStrings #
# SPECIALISE instance FocusCore vs Text => ShellClass XdgRef vs Text #
# UNPACK #
# UNPACK #
- Testing something :)
subs <- surfaceGetSubs surface
forM_ subs $ \sub -> notifySurface secs =<< subSurfaceGetSurface sub |
waymonad A wayland compositor in the spirit of xmonad
Copyright ( C ) 2017
This library 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 ; either
version 2.1 of the License , or ( at your op... |
bf6dc577a50333e4db397a1d5a1c7d0c0e9798b3eaa8b9dc16c8552adef04bd1 | kunstmusik/pink | delays_test.clj | (ns pink.delays-test
(:require [pink.delays :refer :all]
[pink.oscillators :refer [pulse]]
[pink.config :refer [*sr* *buffer-size*]]
[clojure.test :refer :all]
[clojure.pprint :refer [pprint]]
))
(defn float= [^double x ^double y]
(<= (Math/abs (- x y)) 0... | null | https://raw.githubusercontent.com/kunstmusik/pink/7d37764b6a036a68a4619c93546fa3887f9951a7/src/test/pink/delays_test.clj | clojure | (ns pink.delays-test
(:require [pink.delays :refer :all]
[pink.oscillators :refer [pulse]]
[pink.config :refer [*sr* *buffer-size*]]
[clojure.test :refer :all]
[clojure.pprint :refer [pprint]]
))
(defn float= [^double x ^double y]
(<= (Math/abs (- x y)) 0... | |
ec97bf39282dcae0e0d097bf122cc9c51ad96deb73d07b786d218b7de5ca0e20 | brianhempel/maniposynth | array.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/brianhempel/maniposynth/8c8e72f2459f1ec05fefcb994253f99620e377f3/ocaml-4.07.1/stdlib/array.ml | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
external length : 'a array -> int = "%array_length"
external get: 'a array -> int -> 'a = "%array_safe_g... |
5e24ba535ff8fc1d366caa49da1c9e687dc22018dc096f873793dd32838bc0aa | ayazhafiz/plts | eval.ml | open Language
let emptystore = []
let shift_store store amt = List.map (fun t -> term_shift amt t) store
exception No_rule_applies
let is_val = function
| TmAbs (_, _, _, _) -> true
| TmTyAbs (_, _, _, _) -> true
| _ -> false
let rec small_step ctx = function
| TmApp (_, TmAbs (_, _, _, body), appV) when i... | null | https://raw.githubusercontent.com/ayazhafiz/plts/2ce7a159b6753102f95d91f4028836af66bc9223/tapl/systemf-omega/eval.ml | ocaml | open Language
let emptystore = []
let shift_store store amt = List.map (fun t -> term_shift amt t) store
exception No_rule_applies
let is_val = function
| TmAbs (_, _, _, _) -> true
| TmTyAbs (_, _, _, _) -> true
| _ -> false
let rec small_step ctx = function
| TmApp (_, TmAbs (_, _, _, body), appV) when i... | |
d75bc87f55d087fb7d302fbb2e3193e99d9dc9aa728d128deaddcd60eb75390a | ijvcms/chuanqi_dev | map_33001.erl | -module(map_33001).
-export([
range/0,
data/0
]).
range() -> {124, 84}.
data() ->
{
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,... | null | https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/map_data/map_33001.erl | erlang | -module(map_33001).
-export([
range/0,
data/0
]).
range() -> {124, 84}.
data() ->
{
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,... | |
a12f1257077bb975b20fe542de4b167f2171ad0a1f8cba9626b7c078f5776a95 | relops/leex_yecc_example | selector.erl | -module(selector).
-include("selector.hrl").
-define(LEXER,selector_lexer).
-define(PARSER,selector_parser).
-export([parse/1,parse/2]).
-export([matches/2]).
matches({predicate,{var,Var},Comparator,Critereon}, Props) ->
case dict:is_key(Var,Props) of
false ->
false;
true ->
... | null | https://raw.githubusercontent.com/relops/leex_yecc_example/8f0a74dd733b8c58395a457bb35189019480e5d2/src/selector.erl | erlang | -module(selector).
-include("selector.hrl").
-define(LEXER,selector_lexer).
-define(PARSER,selector_parser).
-export([parse/1,parse/2]).
-export([matches/2]).
matches({predicate,{var,Var},Comparator,Critereon}, Props) ->
case dict:is_key(Var,Props) of
false ->
false;
true ->
... | |
2746bc2e8e007ca2bd826841969c4dba8a93beef1f250f4fa2237921d0b423b6 | cabol/dberl | dberl_repo_couchbase_transcoder.erl | -module(dberl_repo_couchbase_transcoder).
-export([encode_value/2, decode_value/2, flag/1]).
-include_lib("cberl/include/cberl.hrl").
-define('CBE_NONE', 0).
-define('CBE_JSON', 16#0002).
-define('CBE_RAW', 16#0004).
-define('CBE_STR', 16#0008).
-define(STANDARD_FLAG, json).
-type encoder() :: json | raw | st... | null | https://raw.githubusercontent.com/cabol/dberl/8de9a9ee81a8fa5454fe961237b619563c91bf5d/src/dberl_repo_couchbase_transcoder.erl | erlang | -module(dberl_repo_couchbase_transcoder).
-export([encode_value/2, decode_value/2, flag/1]).
-include_lib("cberl/include/cberl.hrl").
-define('CBE_NONE', 0).
-define('CBE_JSON', 16#0002).
-define('CBE_RAW', 16#0004).
-define('CBE_STR', 16#0008).
-define(STANDARD_FLAG, json).
-type encoder() :: json | raw | st... | |
b5a4fd16f3d56e5049be733050234af4635bf718e17823be22bb07875265ae0d | chrisdone/prana | Boxing.hs | # LANGUAGE LambdaCase #
# LANGUAGE MagicHash #
-- |
module Prana.Interpreter.Boxing where
import Data.IORef
import Data.Map.Strict (Map)
import Data.Primitive
import Data.Primitive.SmallArray
import GHC.Exts
import Prana.Interpreter.Types
import Prana.Types
boxArg :: Map LocalVarId Box -> Arg -> IO Box
boxArg local... | null | https://raw.githubusercontent.com/chrisdone/prana/f2e45538937d326aff562b6d49296eaedd015662/prana-interpreter/src/Prana/Interpreter/Boxing.hs | haskell | | | # LANGUAGE LambdaCase #
# LANGUAGE MagicHash #
module Prana.Interpreter.Boxing where
import Data.IORef
import Data.Map.Strict (Map)
import Data.Primitive
import Data.Primitive.SmallArray
import GHC.Exts
import Prana.Interpreter.Types
import Prana.Types
boxArg :: Map LocalVarId Box -> Arg -> IO Box
boxArg locals =
... |
0c4aa3ac0acefba13a9ff6bfbd1a48829175609f6af4c7e64a08125b2a7903ce | realworldocaml/book | stdune.ml | [@@@alert
unstable "The API of this library is not stable and may change without notice."]
[@@@alert "-unstable"]
module Appendable_list = Appendable_list
module Nonempty_list = Nonempty_list
module Ansi_color = Ansi_color
module Array = Array
module Bytes = Bytes
module Char = Char
module Comparator = Comparator
mod... | null | https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/dune_/otherlibs/stdune/stdune.ml | ocaml | The following types are re-exported here so that they are always available in
scope | [@@@alert
unstable "The API of this library is not stable and may change without notice."]
[@@@alert "-unstable"]
module Appendable_list = Appendable_list
module Nonempty_list = Nonempty_list
module Ansi_color = Ansi_color
module Array = Array
module Bytes = Bytes
module Char = Char
module Comparator = Comparator
mod... |
d9be22432d9b9a7d56ffbd40f521d2cb04da1cc4eaff131c67aa135aa599a262 | huangz1990/SICP-answers | 77-alyssa-complex.scm | 77-alyssa-complex.scm
(load "p123-install-rectangular-package.scm")
(load "p124-install-polar-package.scm")
(load "p125-apply-generic.scm")
(load "p125-generic-selector.scm")
(load "77-install-alyssa-complex-package.scm") ; 更改
(install-rectangular-package)
(install-polar-package)
(install-complex-package)
| null | https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp2/code/77-alyssa-complex.scm | scheme | 更改 | 77-alyssa-complex.scm
(load "p123-install-rectangular-package.scm")
(load "p124-install-polar-package.scm")
(load "p125-apply-generic.scm")
(load "p125-generic-selector.scm")
(install-rectangular-package)
(install-polar-package)
(install-complex-package)
|
b9ee59433324e3e484faddf0c87e870283a72598530691d4b11825021074f9ae | Clojure2D/clojure2d-examples | M_2_3_01.clj | (ns GG.M.M-2-3-01
(:require [clojure2d.core :refer :all]
[fastmath.core :as m]
[fastmath.vector :as v]))
(def ^:const wname "M_2_3_01")
(defn draw-shapes
""
[canvas {:keys [phi freq mod-freq draw-frequency? draw-modulation?]}]
(let [scaling (* (/ (height canvas) 4))
info-fn #(m... | null | https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/9de82f5ac0737b7e78e07a17cf03ac577d973817/src/GG/M/M_2_3_01.clj | clojure | (ns GG.M.M-2-3-01
(:require [clojure2d.core :refer :all]
[fastmath.core :as m]
[fastmath.vector :as v]))
(def ^:const wname "M_2_3_01")
(defn draw-shapes
""
[canvas {:keys [phi freq mod-freq draw-frequency? draw-modulation?]}]
(let [scaling (* (/ (height canvas) 4))
info-fn #(m... | |
9bd53390093b3fbbc965afdfcc4b4bfcff1d433e16cc34cb3911f7dce0305d10 | evidentsystems/converge | build.clj | (ns build
(:refer-clojure :exclude [test])
(:require [clojure.tools.build.api :as b] ; for b/git-count-revs
[org.corfield.build :as bb]))
(def lib 'converge/converge)
(def version (format "0.1.%s" (b/git-count-revs nil)))
(defn test "Run the tests." [opts]
(bb/run-tests opts))
(defn ci "Run the CI ... | null | https://raw.githubusercontent.com/evidentsystems/converge/63a44e4f6e5fd8e2a32f6ba16c54cd8c47776495/converge/build.clj | clojure | for b/git-count-revs | (ns build
(:refer-clojure :exclude [test])
[org.corfield.build :as bb]))
(def lib 'converge/converge)
(def version (format "0.1.%s" (b/git-count-revs nil)))
(defn test "Run the tests." [opts]
(bb/run-tests opts))
(defn ci "Run the CI pipeline of tests (and build the JAR)." [opts]
(-> opts
(as... |
97896c2ac317664438902cf14a2ae9d3dd094e2d93865d5b66296aac8d6fcf5b | Helium4Haskell/helium | EnumFromTo7.hs | module EnumFromTo7 where
main :: [Int]
main = list
where
list :: [Int]
list = [60,62..50]
| null | https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/correct/EnumFromTo7.hs | haskell | module EnumFromTo7 where
main :: [Int]
main = list
where
list :: [Int]
list = [60,62..50]
| |
6110f12ab2c5e94873f63e7f33cb639e1d0a48a3586a3927bdb3de6adfe42c4e | dbuenzli/carcass | bone.mli | ---------------------------------------------------------------------------
Copyright ( c ) 2016 . All rights reserved .
Distributed under the ISC license , see terms at the end of the file .
---------------------------------------------------------------------------
Copyright (c) 2016 Daniel C. Bün... | null | https://raw.githubusercontent.com/dbuenzli/carcass/1221231b1e3d9ba5b7697707d0e7e901d51ac376/src-bin/bone.mli | ocaml | * The [bone] command. | ---------------------------------------------------------------------------
Copyright ( c ) 2016 . All rights reserved .
Distributed under the ISC license , see terms at the end of the file .
---------------------------------------------------------------------------
Copyright (c) 2016 Daniel C. Bün... |
177a5c53254cc820cfa197c38852d8944566efb53886b4ecc90de3c7ac493def | simingwang/emqx-plugin-kafkav5 | rebar3_hex_version.erl | @private
%%% ===================================================================
%%% Version utils
%%% ===================================================================
-module(rebar3_hex_version).
-export([parse/1, increment/2, format/1]).
-type increment_type() :: patch | minor | major.
-spec parse(string() | ... | null | https://raw.githubusercontent.com/simingwang/emqx-plugin-kafkav5/bbf919e56dbc8fd2d4c1c541084532f844a11cbc/_build/default/plugins/rebar3_hex/src/rebar3_hex_version.erl | erlang | ===================================================================
Version utils
=================================================================== | @private
-module(rebar3_hex_version).
-export([parse/1, increment/2, format/1]).
-type increment_type() :: patch | minor | major.
-spec parse(string() | binary()) -> {ok, verl:version_t()} | {error, term()}.
parse(Version) when is_list(Version) ->
parse(rebar_utils:to_binary(Version));
parse(Version) when is_b... |
515006217ec1632e05130b9d62ec32a596c4b2f71bd91728cf5b08b443e65935 | Tener/deeplearning-thesis | tournament.hs | -- the 'tournament' executable: run evolutionary algorithm on population of agents and breed a champion!
module Main where
import Tournament
import NeuralNets
import Data.Default
main :: IO ()
main = do
pop <- (evolution Nothing def :: IO (Population AgentNN))
prettyReportPopulation pop
| null | https://raw.githubusercontent.com/Tener/deeplearning-thesis/c56866bf6f48db3185b4b62348d292bf39a7a2af/src/tournament.hs | haskell | the 'tournament' executable: run evolutionary algorithm on population of agents and breed a champion! |
module Main where
import Tournament
import NeuralNets
import Data.Default
main :: IO ()
main = do
pop <- (evolution Nothing def :: IO (Population AgentNN))
prettyReportPopulation pop
|
9307da7bc58e6f8019c9abc03f17880c3194c54a45e6407d9b379f0b472cb1d1 | triffon/fp-2019-20 | 08--count-palindromes.rkt | #lang racket
(require rackunit rackunit/text-ui)
(require "06--accumulate.rkt"
"../../02--recursive-and-iterative-processes/solutions/04--palindrome.rkt")
(define (1+ n) (+ 1 n))
# # # Задача 8
Напишете функция ` ( count - palindromes a b ) ` ,
която намира брой цели има в интервала [ a , b ] .
(... | null | https://raw.githubusercontent.com/triffon/fp-2019-20/7efb13ff4de3ea13baa2c5c59eb57341fac15641/exercises/computer-science-2/03--higher-order-functions--accumulate/solutions/08--count-palindromes.rkt | racket | #lang racket
(require rackunit rackunit/text-ui)
(require "06--accumulate.rkt"
"../../02--recursive-and-iterative-processes/solutions/04--palindrome.rkt")
(define (1+ n) (+ 1 n))
# # # Задача 8
Напишете функция ` ( count - palindromes a b ) ` ,
която намира брой цели има в интервала [ a , b ] .
(... | |
0cb83c020d524102ab83f96e090792a23cc6e0df3db2e60d986042bcc8f58a00 | ferzcam/tropical-geometry | Numbers.hs | # LANGUAGE FlexibleInstances , MultiParamTypeClasses #
# LANGUAGE UndecidableInstances #
module Arithmetic.Numbers
(
-- * Types
Tropical(..)
) where
import Data.Function
import Numeric.Algebra hiding (negate, fromInteger)
import Numeric.Algebra.Class as AC
--The set includes all the real numbers and the infi... | null | https://raw.githubusercontent.com/ferzcam/tropical-geometry/de366949f28530ac1008c7423122d37488b3b049/library/Arithmetic/Numbers.hs | haskell | * Types
The set includes all the real numbers and the infinity
| Not neccesary to implement since it is already defined | # LANGUAGE FlexibleInstances , MultiParamTypeClasses #
# LANGUAGE UndecidableInstances #
module Arithmetic.Numbers
(
Tropical(..)
) where
import Data.Function
import Numeric.Algebra hiding (negate, fromInteger)
import Numeric.Algebra.Class as AC
data Tropical a = Tropical {value :: a} | Inf
deriving (Eq)
... |
5d669d70960a1798d5bbda2e9fb685e6244c8394b6700e4458377152f0e9d773 | metosin/eines | login.clj | (ns eines-example.message.login
(:require [clojure.tools.logging :as log]
[plumbing.core :refer [defnk]]))
(defnk login [[:body user password]]
(log/infof "login: user=[%s], password=[%s]" user password)
{:session {:user user}})
(defnk logout [[:session user]]
(log/infof "logout: user=[%s]" user)
... | null | https://raw.githubusercontent.com/metosin/eines/e293d0a3b29eb18fb20bdf0c234cd898e7b87ac9/example/src/clj/eines_example/message/login.clj | clojure | (ns eines-example.message.login
(:require [clojure.tools.logging :as log]
[plumbing.core :refer [defnk]]))
(defnk login [[:body user password]]
(log/infof "login: user=[%s], password=[%s]" user password)
{:session {:user user}})
(defnk logout [[:session user]]
(log/infof "logout: user=[%s]" user)
... | |
aa0c0911858df8348d84dd32d997649d8e73afd25c5e47b4fcca297ed431e70d | ocaml-sf/learn-ocaml-corpus | prelude.ml | type 'a tree =
Node of 'a tree * 'a * 'a tree
| Leaf of 'a;;
| null | https://raw.githubusercontent.com/ocaml-sf/learn-ocaml-corpus/7dcf4d72b49863a3e37e41b3c3097aa4c6101a69/exercises/mooc/week4/seq4/ex1/prelude.ml | ocaml | type 'a tree =
Node of 'a tree * 'a * 'a tree
| Leaf of 'a;;
| |
815836905ad3a908cbc16ff3b91101260d918584c10c5fafa8ae0d14d7a592d2 | cmr-exchange/cmr-client | protocol.cljc | (ns cmr.client.search.protocol
"This namespace defines the protocols used by CMR search client.")
(defprotocol CMRSearchAPI
(^:export create-variable-association
[this concept-id collection-data]
[this concept-id collection-data http-options]
[this concept-id collection-data query-params http-options]
... | null | https://raw.githubusercontent.com/cmr-exchange/cmr-client/0b4dd4114e3b5ed28fc5b57db0f8dcd8773c1c14/src/cljc/cmr/client/search/protocol.cljc | clojure | (ns cmr.client.search.protocol
"This namespace defines the protocols used by CMR search client.")
(defprotocol CMRSearchAPI
(^:export create-variable-association
[this concept-id collection-data]
[this concept-id collection-data http-options]
[this concept-id collection-data query-params http-options]
... | |
d07b5f0c3ddd5e8981fa22e56d858fa4b83b2ffd6bc45663b66145cf73e05c3e | Mathnerd314/stroscot | Model.hs | import Data.ByteString ( ByteString )
import Data.Map(Map)
type ThunkName = ByteString
type KeyValue = ByteString
type KeyName = ByteString
data ThunkOperation = Call [ThunkName]
type Task = Store -> Trace KeyValue KeyValue
type Tasks = ThunkName -> Task
data Trace r w = Trace
{ reads :: [(KeyName, r)]
, wri... | null | https://raw.githubusercontent.com/Mathnerd314/stroscot/c5999489dffe00454bcdafb9a7e5edb9d4c673ec/src/build/Model.hs | haskell | import Data.ByteString ( ByteString )
import Data.Map(Map)
type ThunkName = ByteString
type KeyValue = ByteString
type KeyName = ByteString
data ThunkOperation = Call [ThunkName]
type Task = Store -> Trace KeyValue KeyValue
type Tasks = ThunkName -> Task
data Trace r w = Trace
{ reads :: [(KeyName, r)]
, wri... | |
a96e228ea737025016d21839da90bb9e373cf522d0627bf5372b97e13ec2de02 | input-output-hk/cardano-ledger | Utils.hs | # LANGUAGE AllowAmbiguousTypes #
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE ConstraintKinds #-}
# LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE PatternSynonyms #
{-# LANGUAGE RankNTypes #-}
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilies #
# LANGUAGE UndecidableIns... | null | https://raw.githubusercontent.com/input-output-hk/cardano-ledger/49a84725c4c2ecabc80f6dac215881bc23920962/eras/shelley/test-suite/src/Test/Cardano/Ledger/Shelley/Utils.hs | haskell | # LANGUAGE BangPatterns #
# LANGUAGE ConstraintKinds #
# LANGUAGE RankNTypes #
================================================
===============================================================================
Generating random transactions requires splitting Values into multiple Values
in the original value, and the... | # LANGUAGE AllowAmbiguousTypes #
# LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE PatternSynonyms #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilies #
# LANGUAGE UndecidableInstances #
# OPTIONS_GHC -fno - warn - orphans #
module Test.Cardano.Ledger.Shelley.Utils (
... |
b2824df3933fb482e72933664ef3ea19ef4060e940a376bffc0eef2dbb608850 | gfredericks/dot-slash-2 | project.clj | (defproject com.gfredericks/dot-slash-2 "0.1.6-SNAPSHOT"
:description "Clojure library for easily creating proxy namespaces"
:url "-slash-2"
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.9.0"]]
:deploy-repositories [["releases" :clojars]]
:prof... | null | https://raw.githubusercontent.com/gfredericks/dot-slash-2/6fbfe8ac45162801fb595f1426edb721505dafac/project.clj | clojure | (defproject com.gfredericks/dot-slash-2 "0.1.6-SNAPSHOT"
:description "Clojure library for easily creating proxy namespaces"
:url "-slash-2"
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.9.0"]]
:deploy-repositories [["releases" :clojars]]
:prof... | |
a39ac4188fcb2cdee6f18c0349fcf139c281be3ec3fdd0471d6f188f52c098dd | ailisp/Graphic-Forms | hello-world.lisp | (in-package #:graphic-forms.uitoolkit.tests)
(defvar *hello-win* nil)
(defclass hellowin-events (gfw:event-dispatcher) ())
(defun exit-fn (disp item)
(declare (ignore disp item))
(gfs:dispose *hello-win*)
(setf *hello-win* nil)
(gfw:shutdown 0))
(defmethod gfw:event-close ((disp hellowin-events)... | null | https://raw.githubusercontent.com/ailisp/Graphic-Forms/1e0723d07e1e4e02b8ae375db8f3d65d1b444f11/src/tests/uitoolkit/hello-world.lisp | lisp | (in-package #:graphic-forms.uitoolkit.tests)
(defvar *hello-win* nil)
(defclass hellowin-events (gfw:event-dispatcher) ())
(defun exit-fn (disp item)
(declare (ignore disp item))
(gfs:dispose *hello-win*)
(setf *hello-win* nil)
(gfw:shutdown 0))
(defmethod gfw:event-close ((disp hellowin-events)... | |
25f00d037d2c7a0e5d31c742bd5f2a18e5f607b73fb9c7cbc8a24deff256c8b8 | Homas/ioc2rpz | ioc2rpz_sup.erl | Copyright 2017 - 2021 ioc2rpz[at]gmail[.]com
%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%you may not use this file except in compliance with the License.
%You may obtain a copy of the License at
%
% -2.0
%
%Unless required by applicable law or agreed to in writing, software
distributed... | null | https://raw.githubusercontent.com/Homas/ioc2rpz/b4e1d2f66cf800c2d644aa01256630ec6e122eb6/src/ioc2rpz_sup.erl | erlang |
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permission... | Copyright 2017 - 2021 ioc2rpz[at]gmail[.]com
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(ioc2rpz_sup).
-behaviour(supervisor).
-include_lib("kernel/include/file.hrl").
-include_lib("ioc2rpz.hrl").
-export([start_io... |
abf556f9276a3c64ea46bb0853a334c721790bb83cc9e2525caef1fb70f2eeab | untangled-web/untangled-client | core.cljc | (ns untangled.client.core
(:require
[om.next :as om]
[untangled.client.impl.application :as app]
#?(:cljs untangled.client.impl.built-in-mutations) ; DO NOT REMOVE. Ensures built-in mutations load on start
[untangled.client.impl.network :as net]
[untangled.client.logging :as log]
[untangl... | null | https://raw.githubusercontent.com/untangled-web/untangled-client/d9b350db3a5e19910692ee70281d8c156fd3a3f9/src/untangled/client/core.cljc | clojure | DO NOT REMOVE. Ensures built-in mutations load on start
q: {:a (gq A) :b (gq B)
is: (is A) <-- default branch
state: { kw { id [:page :a] }}
the union's component is on the parent join
:untangled/merge is way to make unions merge properly when joined by idents | (ns untangled.client.core
(:require
[om.next :as om]
[untangled.client.impl.application :as app]
[untangled.client.impl.network :as net]
[untangled.client.logging :as log]
[untangled.dom :as udom]
#?(:clj
[clojure.core.async :as async] :cljs [cljs.core.async :as async])
[om.next.protoc... |
4582de749cbb60249088c15eb21cbc16ca5d9a9fc9aecd7df2795e2e926a78d3 | AppsFlyer/lein-protodeps | protodeps.clj | (ns leiningen.protodeps
(:require [clojure.java.io :as io]
[clojure.string :as strings]
[clojure.java.shell :as sh]
[clojure.set :as sets]
[leiningen.core.main :as lein]
[clojure.tools.cli :as cli])
(:import [java.io File]
[java.nio.file Files]
... | null | https://raw.githubusercontent.com/AppsFlyer/lein-protodeps/88f560f7072f83b02b43fe5d70e45de428f7c394/src/leiningen/protodeps.clj | clojure | see here: -buffers/docs/news/2022-05-06
parallelism is capped by number of cores
For very large repos, we might end up concatenating an empty `deps` seq
many times over since most of the depenendencies will already be seen in prev iterations.
This could lead to the build up of a huge lazy-seq, since `concat` will ... | (ns leiningen.protodeps
(:require [clojure.java.io :as io]
[clojure.string :as strings]
[clojure.java.shell :as sh]
[clojure.set :as sets]
[leiningen.core.main :as lein]
[clojure.tools.cli :as cli])
(:import [java.io File]
[java.nio.file Files]
... |
6a42e91b22dc61a66beb39191e403a9ce5a49c427364b077f1310ac46ef5e1ce | hying-caritas/hysh | environment.lisp | (in-package :hysh)
variables = null , cenv = null : system default environment , cenv is in effect ( os - environ )
variables = empty hash : null environment , cenv must be null or consistent with variables
variables = hash : cenv must be null or consistent with variables
variables = null , cenv = not null : i... | null | https://raw.githubusercontent.com/hying-caritas/hysh/9b232ae6e93bc163581d4a6a58e543d137ac619c/environment.lisp | lisp |
cenv is just a converted cache of variables for using same environment for different command | (in-package :hysh)
variables = null , cenv = null : system default environment , cenv is in effect ( os - environ )
variables = empty hash : null environment , cenv must be null or consistent with variables
variables = hash : cenv must be null or consistent with variables
variables = null , cenv = not null : i... |
9be881d8c53fdfae1a856afdfbbd139e2fabe3ad62a5c05e76eb41ab46a4b28f | trskop/command-wrapper | Main.hs | -- |
-- Module: Main
Description : CommandWrapper subcommand for changing directory by selecting
-- one from preselected list
Copyright : ( c ) 2018 - 2020
License : BSD3
--
-- Maintainer:
-- Stability: experimental
Portability : GHC specific language extensions ; POSIX .
--
Co... | null | https://raw.githubusercontent.com/trskop/command-wrapper/4f2e2e1f63a3296ccfad9f216d75a708969890ed/command-wrapper/app-cd/Main.hs | haskell | |
Module: Main
one from preselected list
Maintainer:
Stability: experimental
preselected list.
It is implemented as external command so that it can be completely
overridden if needed.
We should consider generalising them so that the same code can be used in
all cases. That could turn... | Description : CommandWrapper subcommand for changing directory by selecting
Copyright : ( c ) 2018 - 2020
License : BSD3
Portability : GHC specific language extensions ; POSIX .
CommandWrapper subcommand for changing directory by selecting one from
module Main (main)
where
import Prelude ((+), er... |
be2a962de57deb79def4b67e37cefc48c77e4e508bf5da792a2e4d4cdc8b5442 | mirage/ocaml-hvsock | hyperkit.ml |
* Copyright ( C ) 2018 Docker Inc
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
*
* THE SOFTWARE IS PROVIDED " AS IS " AND TH... | null | https://raw.githubusercontent.com/mirage/ocaml-hvsock/f4f4ff02b90f2c12568140b30fb8fceeedd8e2f1/lib/hyperkit.ml | ocaml |
* Copyright ( C ) 2018 Docker Inc
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
*
* THE SOFTWARE IS PROVIDED " AS IS " AND TH... | |
a97f1e94d407aa85baf6cdd88d57c12036fae80e922a3efbda72afa888dc3ade | fishcakez/sbroker | sregulator_update_meter.erl | %%-------------------------------------------------------------------
%%
Copyright ( c ) 2016 , < >
%%
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 License at
%%
%% -2.0
... | null | https://raw.githubusercontent.com/fishcakez/sbroker/10f7e3970d0a296fbf08b1d1a94c88979a7deb5e/src/sregulator_update_meter.erl | erlang | -------------------------------------------------------------------
Version 2.0 (the "License"); you may not use this file
except in compliance with the License. You may obtain
a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing,
KIND, either express or implied. See the Lic... | Copyright ( c ) 2016 , < >
This file is provided to you under the Apache License ,
software distributed under the License is distributed on an
" AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY
Config : : # { update = > Update : : ( ) } } , ... ] .
time of queue ` Queue ' with updates uniformly... |
e7737ec0c676b39de22ce02b32aca29ee54d2f59aa14b693af05127dcea03c2c | acieroid/scala-am | satAlias-2.scm | (define (phi x1 x2 x3 x4)
(and (or x1 (not x2) (not x3))
(or (not x2) (not x3))
(or x4 x2)))
(define (phi-alias x1 x2 x3 x4)
(phi x1 x2 x3 x4))
(define (try f)
(or (f #t) (f #f)))
(define (sat-solve-4 pred)
(try (lambda (n1)
(try (lambda (n2)
(try (lambda (n3)
... | null | https://raw.githubusercontent.com/acieroid/scala-am/13ef3befbfc664b77f31f56847c30d60f4ee7dfe/test/changesBenevolPaper/sat/satAlias-2.scm | scheme | (define (phi x1 x2 x3 x4)
(and (or x1 (not x2) (not x3))
(or (not x2) (not x3))
(or x4 x2)))
(define (phi-alias x1 x2 x3 x4)
(phi x1 x2 x3 x4))
(define (try f)
(or (f #t) (f #f)))
(define (sat-solve-4 pred)
(try (lambda (n1)
(try (lambda (n2)
(try (lambda (n3)
... | |
ecbbf71b1cce437c12ab8836bcb801fff95b958dbda6444557bd4f56ae281903 | ghcjs/jsaddle-dom | SVGFEComponentTransferElement.hs | # LANGUAGE PatternSynonyms #
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
# OPTIONS_GHC -fno - warn - unused - imports #
module JSDOM.Generated.SVGFEComponentTransferElement
(getIn1, SVGFEComponentTransferElement(..),
gTypeSVGFEComponentTransferElemen... | null | https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/SVGFEComponentTransferElement.hs | haskell | For HasCallStack compatibility
# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | # LANGUAGE PatternSynonyms #
# OPTIONS_GHC -fno - warn - unused - imports #
module JSDOM.Generated.SVGFEComponentTransferElement
(getIn1, SVGFEComponentTransferElement(..),
gTypeSVGFEComponentTransferElement)
where
import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, ... |
232476e4e95f5a3049ec1cac34e3b4d6f715c5543ae53a39c4dad007413dfd08 | google/ormolu | comment-inside-construct-out.hs | xs =
[ outer list item
, [ inner list first item
, inner list second item
-- inner list last item commented
]
, outer list item
]
| null | https://raw.githubusercontent.com/google/ormolu/ffdf145bbdf917d54a3ef4951fc2655e35847ff0/data/examples/other/comment-inside-construct-out.hs | haskell | inner list last item commented | xs =
[ outer list item
, [ inner list first item
, inner list second item
]
, outer list item
]
|
1b652a1a11a04f6707367a0b315858543bfdbbc9e4797b10f3a1e628cdde7b2c | gedge-platform/gedge-platform | jose_base64url.erl | -*- mode : erlang ; tab - width : 4 ; indent - tabs - mode : 1 ; st - rulers : [ 70 ] -*-
%% vim: ts=4 sw=4 ft=erlang noet
%%%-------------------------------------------------------------------
@author < >
2017 - 2019 ,
@doc RFC 4648 , Section 5 : #section-5
%%%
%%% @end
Created : 11 May 2017 by < ... | null | https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/jose/src/base/jose_base64url.erl | erlang | vim: ts=4 sw=4 ft=erlang noet
-------------------------------------------------------------------
@end
-------------------------------------------------------------------
API
===================================================================
API functions
==========================================================... | -*- mode : erlang ; tab - width : 4 ; indent - tabs - mode : 1 ; st - rulers : [ 70 ] -*-
@author < >
2017 - 2019 ,
@doc RFC 4648 , Section 5 : #section-5
Created : 11 May 2017 by < >
-module(jose_base64url).
-compile({parse_transform, jose_base}).
-include("jose_base.hrl").
-export([decode/1]).
... |
fcc6c7210c7733f4b4428d26e4d24481e15fdebf19a8719e37a5d563bbd5cf11 | mfoemmel/erlang-otp | wxPasswordEntryDialog.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 2008 - 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/wx/src/gen/wxPasswordEntryDialog.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 2008 - 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(wxPasswordEntryDialog).
-include(... |
39c7f0b3ca3b04fffc27992e1136eef60edc67af8a0c1af0039e52d19c4cc71a | Factual/eliza | core_test.clj | (ns eliza.core-test
(:require [clojure.test :refer :all]
[eliza.core :refer :all]))
(deftest smoke-test
(is (query "Hello, how are you?"))) | null | https://raw.githubusercontent.com/Factual/eliza/2b87c362322ceb9f2cf53f2866763e9c65d98a26/test/eliza/core_test.clj | clojure | (ns eliza.core-test
(:require [clojure.test :refer :all]
[eliza.core :refer :all]))
(deftest smoke-test
(is (query "Hello, how are you?"))) | |
0eb161010954a2ddaf6792e436b8086b8c5c07e1aabb8bb5ca90d9f44a7c2ce7 | nibbula/yew | getconf.lisp | ;;;
getconf.lisp - Print system configuration .
;;;
(defpackage :getconf
(:documentation "Print system configuration.")
(:use :cl :opsys :grout)
(:export
#:describe-sysconf
#:!getconf
))
(in-package :getconf)
(declaim #.`(optimize ,.(getf los-config::*config* :optimization-settings)))
(defun describ... | null | https://raw.githubusercontent.com/nibbula/yew/a62473dae637fb33a92aa75f260bf77b34cdbcfd/los/getconf.lisp | lisp |
End | getconf.lisp - Print system configuration .
(defpackage :getconf
(:documentation "Print system configuration.")
(:use :cl :opsys :grout)
(:export
#:describe-sysconf
#:!getconf
))
(in-package :getconf)
(declaim #.`(optimize ,.(getf los-config::*config* :optimization-settings)))
(defun describe-syscon... |
d6fe7661f700fdee7ee9c357660a1e5a49793dc774647d221c4fdfcef0d82257 | ucsd-progsys/nate | typeopt.mli | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
, projet ... | null | https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/bytecomp/typeopt.mli | ocaml | *********************************************************************
Objective Caml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1998 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the Q Public License version 1.0 .
$ I d : typeopt.mli , v 1.4 2000/02/2... |
baef93fd21fee910b546f6c1b7bfc4bd4362249171344a9cbebebdac521a1629 | Ramarren/cl-parser-combinators | primitives.lisp | (in-package :parser-combinators)
;;; primitive parsers
(declaim (inline result))
(defun result (v)
"Primitive parser: return v, leaves input unmodified."
#'(lambda (inp)
(let ((closure-value (make-instance 'parser-possibility
:tree v :suffix inp)))
#'(lambda ... | null | https://raw.githubusercontent.com/Ramarren/cl-parser-combinators/9c7569a4f6af5e60c0d3a51d9c15c16d1714c845/primitives.lisp | lisp | primitive parsers | (in-package :parser-combinators)
(declaim (inline result))
(defun result (v)
"Primitive parser: return v, leaves input unmodified."
#'(lambda (inp)
(let ((closure-value (make-instance 'parser-possibility
:tree v :suffix inp)))
#'(lambda ()
(when c... |
3dd8ae2c79d0e6fffad7039307ca0bb3332ad2d53e2c4661f6b79142c2e0362e | brownplt/pyret-docs | run.rkt | #lang racket
;; adapted from
;; -lib/scribble/run.rkt
and
;; all code additions are annotated with ADDED ... END ADDED
(require scribble/xref
scribble/render
scheme/cmdline
raco/command-name
(prefix-in text: scribble/text-render)
(prefix-in markdown: scribble/markdo... | null | https://raw.githubusercontent.com/brownplt/pyret-docs/a7aad4c6432e6863b3a3a7a6adb4aedfc6c7ca0d/run.rkt | racket | adapted from
-lib/scribble/run.rkt
all code additions are annotated with ADDED ... END ADDED
ADDED
END ADDED
reverse order
ADDED
END ADDED | #lang racket
and
(require scribble/xref
scribble/render
scheme/cmdline
raco/command-name
(prefix-in text: scribble/text-render)
(prefix-in markdown: scribble/markdown-render)
(prefix-in html: scribble/html-render)
(prefix-in latex: scribble/... |
931b9260c08593851f8531c4361ab55b4e8fd81e48785b1035320278c4e03276 | gebi/jungerl | smux_pdu.erl | -module(smux_pdu).
-compile(export_all).
-include("../src/snmp_smux.hrl").
run() ->
Open1 = #smux_open{version = ?smux_version_1,
identity = [1,2,3,4,5,6],
description = "hej hopp",
password = ""},
B11 = list_to_binary(snmp_smux:enc_pdu(Open1)),
Open1 = snmp_smux:dec_pdu(B11),
... | null | https://raw.githubusercontent.com/gebi/jungerl/8f5c102295dbe903f47d79fd64714b7de17026ec/lib/snmp_ext/test/smux_pdu.erl | erlang | -module(smux_pdu).
-compile(export_all).
-include("../src/snmp_smux.hrl").
run() ->
Open1 = #smux_open{version = ?smux_version_1,
identity = [1,2,3,4,5,6],
description = "hej hopp",
password = ""},
B11 = list_to_binary(snmp_smux:enc_pdu(Open1)),
Open1 = snmp_smux:dec_pdu(B11),
... | |
fff222540989307f5329d68963d67eec77512dfd9b25ae4e4befb83edd2e2a63 | input-output-hk/cardano-ledger-byron | Example.hs | {-# LANGUAGE OverloadedStrings #-}
# OPTIONS_GHC -fno - warn - incomplete - uni - patterns #
module Test.Cardano.Chain.Common.Example
( exampleAddress
, exampleAddress1
, exampleAddress2
, exampleAddress3
, exampleAddress4
, exampleAttributes
, exampleAddrSpendingData_VerKey
, exampleChainDifficulty
... | null | https://raw.githubusercontent.com/input-output-hk/cardano-ledger-byron/d309449e6c303a9f0dcc8dcf172df6f0b3195ed5/cardano-ledger/test/Test/Cardano/Chain/Common/Example.hs | haskell | # LANGUAGE OverloadedStrings # |
# OPTIONS_GHC -fno - warn - incomplete - uni - patterns #
module Test.Cardano.Chain.Common.Example
( exampleAddress
, exampleAddress1
, exampleAddress2
, exampleAddress3
, exampleAddress4
, exampleAttributes
, exampleAddrSpendingData_VerKey
, exampleChainDifficulty
, exampleKeyHash
)
where
import... |
1d1d0087ed8d5366687e3e9e46ef1366551dc91115fbdf50d1e79c14187a4f7c | into-docker/clj-docker-client | core.clj | This file is part of clj - docker - client .
;
clj - docker - client 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 , either version 3 of the License , or
; (at your option) any later ver... | null | https://raw.githubusercontent.com/into-docker/clj-docker-client/cd397291568b75320331f03e07519b9a0948080d/src/clj_docker_client/core.clj | clojure |
it under the terms of the GNU Lesser General Public License as published by
(at your option) any later version.
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
PLANNED API | This file is part of clj - docker - client .
clj - docker - client is free software : you can redistribute it and/or modify
the Free Software Foundation , either version 3 of the License , or
clj - docker - client is distributed in the hope that it will be useful ,
You should have received a copy of... |
cfae9c4359bdc49fcd5e27a10d3c8bee7f40ab77a3834dbee5202b961d97b4d7 | brendanhay/gogol | Patch.hs | # LANGUAGE DataKinds #
# LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
# LANGUAGE DuplicateRecordFields #
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE LambdaCase #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE PatternSynonyms #
# LANGUAGE RecordWildCards #
{-# LANGUAGE St... | null | https://raw.githubusercontent.com/brendanhay/gogol/77394c4e0f5bd729e6fe27119701c45f9d5e1e9a/lib/services/gogol-resourcemanager/gen/Gogol/ResourceManager/Cloudresourcemanager/Projects/Patch.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE StrictData #
|
Stability : auto-generated
/See:/ <-manager Cloud Resource Manager API Reference> for @cloudresourcemanager.projects.patch@.
* Resource
** Constructing a Request
/See:/ 'newCloudresourcemanagerProjectsPatch' smart constructor.
| V1 error format.
| OA... | # LANGUAGE DataKinds #
# LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
# LANGUAGE DuplicateRecordFields #
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE LambdaCase #
# LANGUAGE PatternSynonyms #
# LANGUAGE RecordWildCards #
# LANGUAGE TypeFamilies #
# LANGUAGE TypeOperators... |
7885185e587de252ddb53c9c2b2cc9bb177d7e1f2f2a5494423811a3e477fd0f | brandonchinn178/persistent-migration | Main.hs | import Data.Pool (Pool)
import Database.Persist.Migration (MigrateBackend)
import qualified Database.Persist.Migration.Postgres as Postgres
import Database.Persist.Sql (SqlBackend)
import System.IO.Temp (withTempDirectory)
import Test.Tasty
import Migration (testMigrations)
import Property (testProperties)
import Util... | null | https://raw.githubusercontent.com/brandonchinn178/persistent-migration/72314bc648b779f7961f3b4216b884efff633410/test/integration/Main.hs | haskell | import Data.Pool (Pool)
import Database.Persist.Migration (MigrateBackend)
import qualified Database.Persist.Migration.Postgres as Postgres
import Database.Persist.Sql (SqlBackend)
import System.IO.Temp (withTempDirectory)
import Test.Tasty
import Migration (testMigrations)
import Property (testProperties)
import Util... | |
56100569c64347d99a14dc26a7180c8e63dfa45402daa63d25e75b1745af57c7 | IBM/probzelus | owl_dense_matrix_d.ml |
* Copyright 2018 - 2020 IBM Corporation
*
* Licensed under the Apache License , Version 2.0 ( the " License " ) ;
* you may not use this file except in compliance with the License .
* You may obtain a copy of the License at
*
* -2.0
*
* Unless required by applicable law or agreed to in writin... | null | https://raw.githubusercontent.com/IBM/probzelus/424b53146885cbe1502edb09f39cda8ec89fed08/zelus-libs/owl/owl_dense_matrix_d.ml | ocaml |
* Copyright 2018 - 2020 IBM Corporation
*
* Licensed under the Apache License , Version 2.0 ( the " License " ) ;
* you may not use this file except in compliance with the License .
* You may obtain a copy of the License at
*
* -2.0
*
* Unless required by applicable law or agreed to in writin... | |
f2d4bc90287d1055193d1791788e81770ce12e9c9932ba24816abd1141059023 | exoscale/clojure-kubernetes-client | v1beta1_network_policy.clj | (ns clojure-kubernetes-client.specs.v1beta1-network-policy
(:require [clojure.spec.alpha :as s]
[spec-tools.data-spec :as ds]
[clojure-kubernetes-client.specs.v1-object-meta :refer :all]
[clojure-kubernetes-client.specs.v1beta1-network-policy-spec :refer :all]
)
(:imp... | null | https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1beta1_network_policy.clj | clojure | (ns clojure-kubernetes-client.specs.v1beta1-network-policy
(:require [clojure.spec.alpha :as s]
[spec-tools.data-spec :as ds]
[clojure-kubernetes-client.specs.v1-object-meta :refer :all]
[clojure-kubernetes-client.specs.v1beta1-network-policy-spec :refer :all]
)
(:imp... | |
199978fc803bc3944b3edb885c902696b1bcda08b77fe44e34597b634c3f5500 | danieljharvey/mimsa | SimpleExpr.hs | module Language.Mimsa.Interpreter.SimpleExpr (simpleExpr) where
import Data.Bifunctor
import Data.Functor
import Language.Mimsa.Core
-- | simpleExpr
simpleExpr :: Expr var ann -> Expr var ()
simpleExpr (MyConstructor _ _ tyCon) =
MyConstructor mempty Nothing tyCon
simpleExpr (MyVar _ _ var) =
MyVar mempty Nothing... | null | https://raw.githubusercontent.com/danieljharvey/mimsa/e6b177dd2c38e8a67d6e27063ca600406b3e6b56/compiler/src/Language/Mimsa/Interpreter/SimpleExpr.hs | haskell | | simpleExpr | module Language.Mimsa.Interpreter.SimpleExpr (simpleExpr) where
import Data.Bifunctor
import Data.Functor
import Language.Mimsa.Core
simpleExpr :: Expr var ann -> Expr var ()
simpleExpr (MyConstructor _ _ tyCon) =
MyConstructor mempty Nothing tyCon
simpleExpr (MyVar _ _ var) =
MyVar mempty Nothing var
simpleExpr ... |
5515260c7d304ae4bfb516344ba13d67d56374763b664c716774b3b8743f89af | SimulaVR/godot-haskell | StyleBoxFlat.hs | # LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving ,
TypeFamilies , TypeOperators , FlexibleContexts , DataKinds ,
MultiParamTypeClasses #
TypeFamilies, TypeOperators, FlexibleContexts, DataKinds,
MultiParamTypeClasses #-}
module Godot.Core.StyleBoxFlat
(Godot.Core.StyleBoxFlat.get_aa_size,
... | null | https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/StyleBoxFlat.hs | haskell | | This changes the size of the faded ring. Higher values can be used to achieve a "blurry" effect.
| This changes the size of the faded ring. Higher values can be used to achieve a "blurry" effect.
| The background color of the stylebox.
| The background color of the stylebox.
| Sets the color of the border.
| Se... | # LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving ,
TypeFamilies , TypeOperators , FlexibleContexts , DataKinds ,
MultiParamTypeClasses #
TypeFamilies, TypeOperators, FlexibleContexts, DataKinds,
MultiParamTypeClasses #-}
module Godot.Core.StyleBoxFlat
(Godot.Core.StyleBoxFlat.get_aa_size,
... |
b7f1d5d496b09694ae2695774c7a1504e399b5190c3ce6440466d87df19af777 | mhuebert/maria | editor.cljs | (ns lark.editor
(:require [chia.view :as v]))
(def view-index (volatile! {}))
(defn view [this]
(@view-index (:id this)))
(defn mount [view]
(let [id (get-in view [:block :id])]
(assert (nil? (@view-index id))) ;; multiple simultaneous editors of a block are not yet supported
(vs... | null | https://raw.githubusercontent.com/mhuebert/maria/15586564796bc9273ace3101b21662d0c66b4d22/editor/vendor/lark/editor.cljs | clojure | multiple simultaneous editors of a block are not yet supported | (ns lark.editor
(:require [chia.view :as v]))
(def view-index (volatile! {}))
(defn view [this]
(@view-index (:id this)))
(defn mount [view]
(let [id (get-in view [:block :id])]
(vswap! view-index assoc id view)))
(defn unmount [view]
(vswap! view-index dissoc (:id (:block view))))
(defn of-block [bloc... |
f91a35f741309e51bce3ec05194ccf321d4bdeaada9eddb1c20e30fdc180013f | cryptosense/pkcs11 | pkcs11_CK_MECHANISM_TYPE.mli | (** Mechanism types without value ([CK_MECHANISM_TYPE]) *)
type t = P11_ulong.t [@@deriving eq, ord, show]
val _CKM_RSA_PKCS_KEY_PAIR_GEN : t
val _CKM_RSA_PKCS : t
val _CKM_RSA_9796 : t
val _CKM_RSA_X_509 : t
val _CKM_MD2_RSA_PKCS : t
val _CKM_MD5_RSA_PKCS : t
val _CKM_SHA1_RSA_PKCS : t
val _CKM_RIPEMD128_RSA_P... | null | https://raw.githubusercontent.com/cryptosense/pkcs11/93c39c7a31c87f68f0beabf75ef90d85a782a983/driver/pkcs11_CK_MECHANISM_TYPE.mli | ocaml | * Mechanism types without value ([CK_MECHANISM_TYPE]) | type t = P11_ulong.t [@@deriving eq, ord, show]
val _CKM_RSA_PKCS_KEY_PAIR_GEN : t
val _CKM_RSA_PKCS : t
val _CKM_RSA_9796 : t
val _CKM_RSA_X_509 : t
val _CKM_MD2_RSA_PKCS : t
val _CKM_MD5_RSA_PKCS : t
val _CKM_SHA1_RSA_PKCS : t
val _CKM_RIPEMD128_RSA_PKCS : t
val _CKM_RIPEMD160_RSA_PKCS : t
val _CKM_RSA_PKCS... |
a768a2fab2676d7713d2d22d5aaf43661d5fe222af887906371fa69f91382e56 | d-cent/objective8 | stars.clj | (ns objective8.integration.db.stars
(:require [midje.sweet :refer :all]
[objective8.back-end.domain.stars :as stars]
[objective8.integration.integration-helpers :as ih]
[objective8.integration.storage-helpers :as sh]))
(facts "about storing stars"
(against-background
... | null | https://raw.githubusercontent.com/d-cent/objective8/db8344ba4425ca0b38a31c99a3b282d7c8ddaef0/test/objective8/integration/db/stars.clj | clojure | (ns objective8.integration.db.stars
(:require [midje.sweet :refer :all]
[objective8.back-end.domain.stars :as stars]
[objective8.integration.integration-helpers :as ih]
[objective8.integration.storage-helpers :as sh]))
(facts "about storing stars"
(against-background
... | |
5895109f7240acacc4a42028d45bcdb2d7506f29416d2c0a9c6ac30bc49faee9 | yesodweb/shakespeare | Coffee.hs | # LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE FlexibleInstances #
# LANGUAGE CPP #
# OPTIONS_GHC -fno - warn - missing - fields #
-- | A Shakespearean module for CoffeeScript, introducing type-safe,
-- compile-time variable and url interpolation. It is exactly the same as
" Text . " , except that the template i... | null | https://raw.githubusercontent.com/yesodweb/shakespeare/edf4f194a1b89d4654f719ae221aded675899b0d/Text/Coffee.hs | haskell | | A Shakespearean module for CoffeeScript, introducing type-safe,
compile-time variable and url interpolation. It is exactly the same as
To use this module, @coffee@ must be installed on your system.
@#{...}@ is the Shakespearean standard for variable interpolation, but
CoffeeScript already uses that sequence fo... | # LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE FlexibleInstances #
# LANGUAGE CPP #
# OPTIONS_GHC -fno - warn - missing - fields #
" Text . " , except that the template is first compiled to Javascript with
the system tool @coffee@.
Shakespearean interpolation is introduced with ... }@.
the template is fir... |
b42b98db465056d2396f22461b44f12225f8ce9275fbdf1fe513ebd6ed295383 | originrose/aljabr | project.clj | (defproject thinktopic/aljabr "0.1.1"
:description "A core.matrix implementation for Clojure and Clojurescript"
:url ""
:license {:name "Apache Software License 2.0"
:url "-2.0"}
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.7.228"]
... | null | https://raw.githubusercontent.com/originrose/aljabr/2724565b947d3569e3eaf70181fbf3ba5f21d5a9/project.clj | clojure | (defproject thinktopic/aljabr "0.1.1"
:description "A core.matrix implementation for Clojure and Clojurescript"
:url ""
:license {:name "Apache Software License 2.0"
:url "-2.0"}
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.7.228"]
... | |
04855c91e35579daccacbfc5131de852d6aad5b35eccb7aca024bd2f02612d05 | kdltr/chicken-core | csc.scm | csc.scm - Driver program for the CHICKEN compiler - felix -*- Scheme -*-
;
Copyright ( c ) 2008 - 2021 , The CHICKEN Team
Copyright ( c ) 2000 - 2007 ,
; All rights reserved.
;
; Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following
; conditi... | null | https://raw.githubusercontent.com/kdltr/chicken-core/b2e6c5243dd469064bec947cb3b49dafaa1514e5/csc.scm | scheme |
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following
conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following
disclaimer.
Redistributio... | csc.scm - Driver program for the CHICKEN compiler - felix -*- Scheme -*-
Copyright ( c ) 2008 - 2021 , The CHICKEN Team
Copyright ( c ) 2000 - 2007 ,
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " AND ANY EXPRESS
CONTRIBUTORS BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL ,... |
9316c54dc8d0d22eeb0db6ea3f537d2bc67b3e539a83959d1621471dfac2804f | geneweb/geneweb | dagDisplay.ml | open Config
open Dag2html
open Def
open Gwdb
open TemplAst
open Util
open Dag
let image_normal_txt conf base p fname width height =
let image_txt = Utf8.capitalize_fst (transl_nth conf "image/images" 0) in
let s = Unix.stat fname in
let k = Image.default_portrait_filename base p in
let r =
Format.sprintf
... | null | https://raw.githubusercontent.com/geneweb/geneweb/747f43da396a706bd1da60d34c04493a190edf0f/lib/dagDisplay.ml | ocaml | Print with HTML table tags: <table> <tr> <td>
* Print without HTML table tags: using <pre>
Machinery opering to 'displayed texts', i.e. strings where not all
characters correspond to a displayed character (due to html tags or
encoded characters)
Return next 'displayed character' location: can be on sever... | open Config
open Dag2html
open Def
open Gwdb
open TemplAst
open Util
open Dag
let image_normal_txt conf base p fname width height =
let image_txt = Utf8.capitalize_fst (transl_nth conf "image/images" 0) in
let s = Unix.stat fname in
let k = Image.default_portrait_filename base p in
let r =
Format.sprintf
... |
c7929d5c7f556947ca964b2663716fcc7563dc7babb2a32ebec6723abc6fe108 | sbcl/sbcl | assemfile.lisp | ;;;; the extra code necessary to feed an entire file of assembly code
;;;; to the assembler
This software is part of the SBCL system . See the README file for
;;;; more information.
;;;;
This software is derived from the CMU CL system , which was
written at Carnegie Mellon University and released into the
;;;; p... | null | https://raw.githubusercontent.com/sbcl/sbcl/dfbd2f7cb1f0fbca276c8db3383d9b147725a49c/src/assembly/assemfile.lisp | lisp | the extra code necessary to feed an entire file of assembly code
to the assembler
more information.
public domain. The software is in the public domain and is
provided with absolutely no warranty. See the COPYING and CREDITS
files for more information.
a list of (NAME LABEL OFFSET) for every entry point
Note: ... |
This software is part of the SBCL system . See the README file for
This software is derived from the CMU CL system , which was
written at Carnegie Mellon University and released into the
(in-package "SB-C")
(defvar *entry-points* nil)
COMPILE - FILE , but in fact it 's arguably more like LOAD , even down
... |
5313cc6c34b5f905797cee033b6c96ce68a9edc263ea35a997828d6ad23b364a | mbillingr/lisp-in-small-pieces | lisp3.scm | (import (builtin core)
(libs utils)
(libs book))
(define (df.evaluate e env fenv denv)
(if (atom? e)
(cond ((symbol? e) (lookup e env))
((or (number? e) (string? e) (char? e) (boolean? e))
e)
(else (wrong "Cannot evaluate" e)))
(case (car e)
((... | null | https://raw.githubusercontent.com/mbillingr/lisp-in-small-pieces/b2b158dfa91dc95d75af4bd7d93f8df22219047e/02-lisp-n/lisp3.scm | scheme | ((flet)
env
(extend fenv
(map (lambda (def)
env fenv))
((labels)
(for-each (lambda (def)
(update! (car def)
new-fenv
env new-fenv))) | (import (builtin core)
(libs utils)
(libs book))
(define (df.evaluate e env fenv denv)
(if (atom? e)
(cond ((symbol? e) (lookup e env))
((or (number? e) (string? e) (char? e) (boolean? e))
e)
(else (wrong "Cannot evaluate" e)))
(case (car e)
((... |
d4ac06894d0432a3cf83370d9c81e3f66ee384f1156b9ea3ab2deee6ec52cf09 | janestreet/memtrace_viewer | filter.mli | open! Core
module String_relation : sig
type t =
| Equals
| Contains
[@@deriving sexp, bin_io, equal]
end
module Location_predicate : sig
type t =
| Defname_related of
{ relation : String_relation.t
; rhs : string
}
[@@deriving sexp, bin_io, equal]
end
type t =
{ allocat... | null | https://raw.githubusercontent.com/janestreet/memtrace_viewer/46439f8bd16e77c5aa38632c9c4aa53175121d4d/common/filter.mli | ocaml | open! Core
module String_relation : sig
type t =
| Equals
| Contains
[@@deriving sexp, bin_io, equal]
end
module Location_predicate : sig
type t =
| Defname_related of
{ relation : String_relation.t
; rhs : string
}
[@@deriving sexp, bin_io, equal]
end
type t =
{ allocat... | |
8e9b8848814182ad0b493898c63c5d3e2c9e37e849b948130c210a7c2c99d76f | aharisu/vise | genvise.scm |
(add-load-path "." :relative)
(use vgen.compiler)
(use vgen.common)
(use gauche.parseopt)
(define (main args)
(let1 loadpath '()
(let-args (cdr args)
((out "o|output=s")
(#f "s|loadpath=s"
=> (lambda (opt) (set! loadpath (cons opt loadpath))))
(else (opt . _) (error "Unkown option : ... | null | https://raw.githubusercontent.com/aharisu/vise/6d0f54b0fe28e7d2c3b2b91cb3ef5ff847a11484/autoload/genvise.scm | scheme |
(add-load-path "." :relative)
(use vgen.compiler)
(use vgen.common)
(use gauche.parseopt)
(define (main args)
(let1 loadpath '()
(let-args (cdr args)
((out "o|output=s")
(#f "s|loadpath=s"
=> (lambda (opt) (set! loadpath (cons opt loadpath))))
(else (opt . _) (error "Unkown option : ... | |
4847579a3383414e63c6df232480b6b3de4911db734218da4e757e24b05d25ab | scalaris-team/scalaris | yaws_api.erl | %%----------------------------------------------------------------------
%%% File : yaws_api.erl
Author : < >
%%% Purpose :
Created : 24 Jan 2002 by < >
%%%----------------------------------------------------------------------
-module(yaws_api).
-author('').
-include("../include/yaws.hrl").
-include(".... | null | https://raw.githubusercontent.com/scalaris-team/scalaris/feb894d54e642bb3530e709e730156b0ecc1635f/contrib/yaws/src/yaws_api.erl | erlang | ----------------------------------------------------------------------
File : yaws_api.erl
Purpose :
----------------------------------------------------------------------
These are a bunch of accessor functions that are useful inside
yaws scripts.
parse the command line query data
parse url encoded POST data
... | Author : < >
Created : 24 Jan 2002 by < >
-module(yaws_api).
-author('').
-include("../include/yaws.hrl").
-include("../include/yaws_api.hrl").
-include("yaws_debug.hrl").
-export([parse_query/1, parse_post/1,
parse_multipart_post/1, parse_multipart_post/2,
parse_multipart/2, parse_mu... |
f50944b38c3250d460f2b5f945baf673998402bd420e80098da180937db8e63d | rainyt/ocaml-haxe | bigarray.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/rainyt/ocaml-haxe/9d0ab323c6857d7fe3ce89764a00921eff1a5aaf/ocaml-extern/ocaml/bigarray.ml | ocaml | ************************************************************************
OCaml
... | et ,
Copyright 2000 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
type float32_elt = Float32_elt
type float64_elt = Float64_elt
type int8_signed_elt = Int8_signed_elt
type int8_unsigned_elt = Int8_uns... |
e6788c36b024cfc89923195942fdea1aebac2334830e0cc4b4476de4732e4a75 | reanimate/reanimate | doc_augustP.hs | #!/usr/bin/env stack
-- stack runghc --package reanimate
module Main (main) where
import Reanimate
import Reanimate.GeoProjection
import Reanimate.Builtin.Images
main :: IO ()
main = reanimate $ animate $
const $ scaleToSize screenWidth screenHeight $
embedImage $ project smallEarth ... | null | https://raw.githubusercontent.com/reanimate/reanimate/5ea023980ff7f488934d40593cc5069f5fd038b0/examples/doc_augustP.hs | haskell | stack runghc --package reanimate | #!/usr/bin/env stack
module Main (main) where
import Reanimate
import Reanimate.GeoProjection
import Reanimate.Builtin.Images
main :: IO ()
main = reanimate $ animate $
const $ scaleToSize screenWidth screenHeight $
embedImage $ project smallEarth augustP
|
4555bd9d6aba61fdec903eaed97adfed8e4791e6ef12db78c9c6b55e219be218 | PeterDWhite/Osker | LiftedThread.hs | Copyright ( c ) , 2003
module LiftedThread
( Thread -- Type for a single thread in the braid
, mkLiftedState -- Constructor for LiftedSt
LiftedState specialized to lifted thread programs
, Program -- A storable thread program
, Transformer -- Transformer on ... | null | https://raw.githubusercontent.com/PeterDWhite/Osker/301e1185f7c08c62c2929171cc0469a159ea802f/Braid/LiftedThread.hs | haskell | Type for a single thread in the braid
Constructor for LiftedSt
A storable thread program
Transformer on the lifted state
Lift a state transformer
Lift a transform / observer to thread monad
Lift an IO action to a thread action
Project out of the thread
Constructor for a Thread
Pause raised to the lifted threa... | Copyright ( c ) , 2003
module LiftedThread
LiftedState specialized to lifted thread programs
State change , then pause , then observe the state
State change , then pause
Get the first lifted catcher ( if any )
) where
import Prelude hiding ( putStr, putStrLn )
import Null
import qualified Ex as E
B... |
97be3c5f3e9e0735c10fe338f5d66c0e9f8f1a34d1e860fb0e5db94d208edf06 | xmonad/xmonad-contrib | LXQt.hs | # OPTIONS_GHC -fno - warn - missing - signatures #
-----------------------------------------------------------------------------
-- |
Module : XMonad . Config .
Description : Config for integrating xmonad with LXQt .
Copyright : ( c ) < >
-- License : BSD
--
-- Maintainer : none
-- Stabil... | null | https://raw.githubusercontent.com/xmonad/xmonad-contrib/0e14e1384511e3ddfe007fb841b0501702ebb436/XMonad/Config/LXQt.hs | haskell | ---------------------------------------------------------------------------
|
License : BSD
Maintainer : none
Stability : unstable
Portability : unportable
environment.
* Usage
$usage
$usage
To use this module, start with the following @~\/.xmonad\/xmonad.hs@:
>
| # OPTIONS_GHC -fno - warn - missing - signatures #
Module : XMonad . Config .
Description : Config for integrating xmonad with LXQt .
Copyright : ( c ) < >
This module provides a config suitable for use with the LXQt desktop
module XMonad.Config.LXQt (
lxqtConfig,
desktopLayoutModifie... |
3281755b1be9ad041d883d82428520b5c7b94091e2904a16c992947063d73e8a | graninas/Hydra | FTL.hs | # LANGUAGE GADTs #
# LANGUAGE MultiParamTypeClasses #
{-# LANGUAGE TemplateHaskell #-}
# LANGUAGE UndecidableInstances #
module Hydra.Core.Lang.FTL
( LangL
, evalStateAtomically
) where
import Hydra.Prelude
import Hydra.Core.Logger.FTL as L
import ... | null | https://raw.githubusercontent.com/graninas/Hydra/60d591b1300528f5ffd93efa205012eebdd0286c/lib/hydra-free/src/Hydra/Core/Lang/FTL.hs | haskell | # LANGUAGE TemplateHaskell #
Doesn't work
Compiles but wrong.
Doesn't work
atomically :: sm a -> m a
Wrong, doesn't work
Wrong (we can't express this function without knowing the runtime.
atomically = ??? | # LANGUAGE GADTs #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE UndecidableInstances #
module Hydra.Core.Lang.FTL
( LangL
, evalStateAtomically
) where
import Hydra.Prelude
import Hydra.Core.Logger.FTL as L
import Hydra.Core.Random.FTL as L
impo... |
04e5e0d5101b94867315eb4b3b0b9c089f06633ba6f32a9787d3f74501232af0 | acowley/concurrent-machines | Wye.hs | # LANGUAGE CPP , GADTs , FlexibleContexts , RankNTypes , ScopedTypeVariables ,
TupleSections #
TupleSections #-}
| Support for machines with two inputs from which input may be
-- drawn deterministically or non-deterministically. In contrast to
" Data . Machine . Wye " , the two inputs ar... | null | https://raw.githubusercontent.com/acowley/concurrent-machines/70d2a8ae481e6fef503f2609c65b530bd1f96e1b/src/Data/Machine/Concurrent/Wye.hs | haskell | drawn deterministically or non-deterministically. In contrast to
this implementation.
simpler dispatch logic.
employ simpler dispatch logic.
When the choice of input is free (using the 'Z' input descriptor)
the other source has to offer. | # LANGUAGE CPP , GADTs , FlexibleContexts , RankNTypes , ScopedTypeVariables ,
TupleSections #
TupleSections #-}
| Support for machines with two inputs from which input may be
" Data . Machine . Wye " , the two inputs are eagerly run concurrently in
module Data.Machine.Concurrent.Wye (wy... |
3e827b13f41c1d5bd45fd8ed18d05b4357d1fa5b77a6bd724bc6d8efad49ee6d | haskell-game/tiny-games-hs | Import.hs | module Import (module X) where
import Data.Char as X (chr)
import Data.Foldable as X (asum, fold)
import Data.Functor as X (($>))
import Data.List as X (transpose)
import GHC.Clock as X (getMonotonicTimeNSec)
import GHC.Conc as X (threadDelay)
import GHC.Utils.Misc as X (changeLast, count)
import System.IO as X (hRead... | null | https://raw.githubusercontent.com/haskell-game/tiny-games-hs/4e9adfe31671096ef61131e0a502dcc145bdf8a7/default/shmupemup/Import.hs | haskell | module Import (module X) where
import Data.Char as X (chr)
import Data.Foldable as X (asum, fold)
import Data.Functor as X (($>))
import Data.List as X (transpose)
import GHC.Clock as X (getMonotonicTimeNSec)
import GHC.Conc as X (threadDelay)
import GHC.Utils.Misc as X (changeLast, count)
import System.IO as X (hRead... | |
25e417de9af48d427dace36574132c870abb1f59bbba3fc508977b8e5ac797f8 | ndmitchell/catch | NonTerm.hs |
module NonTerm where
main x = main x
| null | https://raw.githubusercontent.com/ndmitchell/catch/5d834416a27b4df3f7ce7830c4757d4505aaf96e/examples/Example/NonTerm.hs | haskell |
module NonTerm where
main x = main x
| |
83ec5dff3bea24681db689ec7911361e723b80ba0257b152212f1fc20d8075eb | squaremo/rabbitmq-lvc-plugin | rabbit_exchange_type_lvc.erl | -module(rabbit_exchange_type_lvc).
-include_lib("rabbit_common/include/rabbit.hrl").
-include("rabbit_lvc_plugin.hrl").
-behaviour(rabbit_exchange_type).
-export([description/0, serialise_events/0, route/2]).
-export([validate/1, create/2, recover/2, delete/3,
add_binding/3, remove_bindings/3, assert_args_eq... | null | https://raw.githubusercontent.com/squaremo/rabbitmq-lvc-plugin/42170371d3cdb43c018ad4680e74ca8d4a3b1594/src/rabbit_exchange_type_lvc.erl | erlang | -module(rabbit_exchange_type_lvc).
-include_lib("rabbit_common/include/rabbit.hrl").
-include("rabbit_lvc_plugin.hrl").
-behaviour(rabbit_exchange_type).
-export([description/0, serialise_events/0, route/2]).
-export([validate/1, create/2, recover/2, delete/3,
add_binding/3, remove_bindings/3, assert_args_eq... | |
4cf658b30ddba51090298a089b5529edab63ae06173ff5f5b0852eecbd70daa8 | huangjs/cl | packages.lisp | (in-package :cl-user)
(defpackage :com.gigamonkeys.spam
(:use :common-lisp :com.gigamonkeys.pathnames))
| null | https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/other-code/practicals-1.0.3/Chapter23/packages.lisp | lisp | (in-package :cl-user)
(defpackage :com.gigamonkeys.spam
(:use :common-lisp :com.gigamonkeys.pathnames))
| |
1301a001b3a449849b4428e828a807d8430d54a9133bb37b43da7fe302d78353 | theodormoroianu/SecondYearCourses | LambdaChurch_20210415171744.hs | module LambdaChurch where
import Data.Char (isLetter)
import Data.List ( nub )
class ShowNice a where
showNice :: a -> String
class ReadNice a where
readNice :: String -> (a, String)
data Variable
= Variable
{ name :: String
, count :: Int
}
deriving (Show, Eq, Ord)
var :: String -> Variable
var ... | null | https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/LambdaChurch_20210415171744.hs | haskell | alpha-equivalence
subst u x t defines [u/x]t, i.e., substituting u for x in t
This substitution avoids variable captures so it is safe to be used when
reducing terms with free variables (e.g., if evaluating inside lambda abstractions)
^ substitution term
^ variable to be substitutes
^ term in which the substit... | module LambdaChurch where
import Data.Char (isLetter)
import Data.List ( nub )
class ShowNice a where
showNice :: a -> String
class ReadNice a where
readNice :: String -> (a, String)
data Variable
= Variable
{ name :: String
, count :: Int
}
deriving (Show, Eq, Ord)
var :: String -> Variable
var ... |
1d40a972409ceb75a9eaa562f81c546f57ea7bea7841d4eacbeda64978dd0ef3 | Helium4Haskell/helium | ConfusingFloat.hs | main = sin 2.
x = 3.0 +. .2
y = (take 20.map even) [1..20]
| null | https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/parser/ConfusingFloat.hs | haskell | main = sin 2.
x = 3.0 +. .2
y = (take 20.map even) [1..20]
| |
a2aa263fecd7e16b72f26cf3cbd623f301c76b542b6200849247dd46daf87239 | racket/drracket | compiled-dir.rkt | #lang racket/base
Assume that the first directory in ` use - compiled - file - paths ` on
;; startup is the right place to put subdirectories for other modes.
;; It might be "compiled", but it might be something like
;; "compiled/ta6osx" depending on the Racket VM and build mode.
(provide compiled-dir)
(define com... | null | https://raw.githubusercontent.com/racket/drracket/2d7c2cded99e630a69f05fb135d1bf7543096a23/drracket/drracket/private/compiled-dir.rkt | racket | startup is the right place to put subdirectories for other modes.
It might be "compiled", but it might be something like
"compiled/ta6osx" depending on the Racket VM and build mode. | #lang racket/base
Assume that the first directory in ` use - compiled - file - paths ` on
(provide compiled-dir)
(define compiled-dir
(let ([l (use-compiled-file-paths)])
(if (null? l)
"compiled"
(car l))))
|
8045e152b19a1f212d6327d43f9400dbbf7ea1bdf9d9bc043c2b19e027659e3b | mmontone/cl-gradual | typechecking.lisp | (in-package :gradual)
(defvar *debug* nil)
(defun enable-debugging (&optional (enable-p t))
(setf *debug* enable-p))
(defun debug-format (&rest args)
(when *debug*
(apply #'format args)))
(defun typecheck-everything (&optional (output *standard-output*))
(debug-format output "Typechecking started.~%")
(... | null | https://raw.githubusercontent.com/mmontone/cl-gradual/f8c0d992e2886a3fa37e49d9de772391961f234c/typechecking.lisp | lisp | We could just traverse the types in the (fun-type (name-of form))
We assume an implicit progn here
No type declared for operator, we are ok then
else, check the operator type signature matches the arguments types
required parameters
optional parameters
Stop if the optional parameter is not being passed
keyword ... | (in-package :gradual)
(defvar *debug* nil)
(defun enable-debugging (&optional (enable-p t))
(setf *debug* enable-p))
(defun debug-format (&rest args)
(when *debug*
(apply #'format args)))
(defun typecheck-everything (&optional (output *standard-output*))
(debug-format output "Typechecking started.~%")
(... |
ac2e4663cafbc1946a62f73969ceb1fe452408a85c23f62a493c20f161fa7976 | batterseapower/openshake | Shakefile.hs | import Development.Shake
main :: IO ()
main = shake $ do
"a" *> \x -> do
need ["b"]
"b" *> \x -> do
need ["a"]
Because we " want " the two files simultaneously , they will each get
-- built on a different thread. This causes the current (simpleminded) cycle
-- detector to not detect ... | null | https://raw.githubusercontent.com/batterseapower/openshake/4d590c6c4191d5970f2d88f45d9425421d4f64af/tests/cyclic-harder/Shakefile.hs | haskell | built on a different thread. This causes the current (simpleminded) cycle
detector to not detect a cycle. | import Development.Shake
main :: IO ()
main = shake $ do
"a" *> \x -> do
need ["b"]
"b" *> \x -> do
need ["a"]
Because we " want " the two files simultaneously , they will each get
want ["a", "b"]
|
dccf6f5e8c45063529dbafb3ce7f039fe359b9fc3d77ad097adab6ed4987c37b | sirherrbatka/statistical-learning | methods.lisp | (cl:in-package #:statistical-learning.optimization)
(defmethod response ((function squared-error-function)
expected
function-output)
(declare (optimize (speed 3) (safety 0)
(debug 0) (space 0)
(compilation-speed 0))
(type... | null | https://raw.githubusercontent.com/sirherrbatka/statistical-learning/775108077969779bbfb3aec26b578eb88a952757/source/optimization/methods.lisp | lisp | (cl:in-package #:statistical-learning.optimization)
(defmethod response ((function squared-error-function)
expected
function-output)
(declare (optimize (speed 3) (safety 0)
(debug 0) (space 0)
(compilation-speed 0))
(type... | |
e07478d6c60b5e1d92b7cc3513198004b2020b220acb2d279e023b0335e664ce | bakul/s9fes | advgen.scm | #! /usr/local/bin/s9
; advgen -- generate HTML text adventures
by ,
; Placed in the Public Domain
;
Usage : [ too many options ] [ file ]
;
; Sample adventure:
;
; (room
; ("This is a sample room.")
; (((not light))
; ("It's pitch-dark!")
; "Turn on light"
; ... | null | https://raw.githubusercontent.com/bakul/s9fes/74c14c0db5f07f5bc6d94131e9e4ee15a29275aa/prog/advgen.scm | scheme | advgen -- generate HTML text adventures
Placed in the Public Domain
Sample adventure:
(room
("This is a sample room.")
(((not light))
("It's pitch-dark!")
"Turn on light"
(add light))
((light)
("It's too bright!")
"Turn o... | #! /usr/local/bin/s9
by ,
Usage : [ too many options ] [ file ]
(load-from-library "string-split.scm")
(load-from-library "string-translate.scm")
(load-from-library "for-all.scm")
(load-from-library "remove.scm")
(load-from-library "basename.scm")
(load-from-library "displaystar.scm")
(load-from-library "app... |
55b33bbb7289c697ba780f1cefc040224aa0b070da4a5f10a2eac842965a6f18 | fission-codes/cli | DNS.hs | -- | Update DNS via the CLI
module Fission.CLI.DNS (update) where
import Network.IPFS.CID.Types
import Servant.Client
import Fission.Prelude
import Fission.Web.Client
import qualified Fission.Web.Client.DNS as DNS
import Fission.CLI.Display.Error as CLI.Error
imp... | null | https://raw.githubusercontent.com/fission-codes/cli/dc3500babad35a6cb44835fa503d27d672cbcdb3/library/Fission/CLI/DNS.hs | haskell | | Update DNS via the CLI | module Fission.CLI.DNS (update) where
import Network.IPFS.CID.Types
import Servant.Client
import Fission.Prelude
import Fission.Web.Client
import qualified Fission.Web.Client.DNS as DNS
import Fission.CLI.Display.Error as CLI.Error
import qualified Fission.CLI.Di... |
1172f2a02da729863087fb4f04a1508a6295325cc025d82aa983d5567a4ab3e6 | realworldocaml/book | vcs_tests.ml | open Stdune
open Dune_engine
open Fiber.O
open! Dune_tests_common
module Config = Dune_util.Config
let () = init ()
let printf = Printf.printf
let temp_dir = lazy (Path.of_string "vcs-tests")
let () = at_exit (fun () -> Path.rm_rf (Lazy.force temp_dir))
(* When hg is not available, we test with git twice indeed. T... | null | https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/dune_/test/expect-tests/vcs_tests.ml | ocaml | When hg is not available, we test with git twice indeed. This is because many
people don't have hg installed. | open Stdune
open Dune_engine
open Fiber.O
open! Dune_tests_common
module Config = Dune_util.Config
let () = init ()
let printf = Printf.printf
let temp_dir = lazy (Path.of_string "vcs-tests")
let () = at_exit (fun () -> Path.rm_rf (Lazy.force temp_dir))
let has_hg =
match Lazy.force Vcs.hg with
| (_ : Path.t) ... |
0ba9ccda157446cf58bca7de3160b0cbbc969168b53b48648d345fb7868582ca | re-path/studio | circle.cljs | (ns repath.studio.tools.circle
(:require [clojure.string :as str]
[repath.studio.tools.base :as tools]
[repath.studio.elements.handlers :as elements]
[repath.studio.elements.views :as element-views]
[repath.studio.attrs.base :as attrs]
[clojure.core.matrix :... | null | https://raw.githubusercontent.com/re-path/studio/811a5cd24e5a467807057893eefd30c9cf1110f6/src/repath/studio/tools/circle.cljs | clojure | (ns repath.studio.tools.circle
(:require [clojure.string :as str]
[repath.studio.tools.base :as tools]
[repath.studio.elements.handlers :as elements]
[repath.studio.elements.views :as element-views]
[repath.studio.attrs.base :as attrs]
[clojure.core.matrix :... | |
a18c117171c0263ff7b2cf367092de4f92dc5ab170c05723d4098dd97c6fc896 | danielsz/system | konserve_test.clj | (ns system.components.konserve-test
(:require [system.components.konserve :as c]
[konserve.core :as k]
[konserve.serializers :as s]
[konserve.filestore :refer [delete-store list-keys]]
[com.stuartsierra.component :as component]
[clojure.core.async :as async ... | null | https://raw.githubusercontent.com/danielsz/system/4c8bf677e9988eec59033b3af4352567c459b50c/test/system/components/konserve_test.clj | clojure | (ns system.components.konserve-test
(:require [system.components.konserve :as c]
[konserve.core :as k]
[konserve.serializers :as s]
[konserve.filestore :refer [delete-store list-keys]]
[com.stuartsierra.component :as component]
[clojure.core.async :as async ... | |
ce35734a11320e482ae0dbafdaf72b7b9a48374eed8e98c6a6bd7b4dd96ccbdf | poscat0x04/telegram-types | SetChatStickerSet.hs | module Web.Telegram.Types.Internal.API.SetChatStickerSet where
import Common
import Web.Telegram.Types.Internal.API.ChatId
data SetChatStickerSet = SetChatStickerSet
{ chatId :: ChatId,
stickerSetName :: Text
}
deriving stock (Show, Eq)
mkLabel ''SetChatStickerSet
deriveToJSON snake ''SetChatStickerSet
mak... | null | https://raw.githubusercontent.com/poscat0x04/telegram-types/3de0710640f5303638a83e409001b0342299aeb8/src/Web/Telegram/Types/Internal/API/SetChatStickerSet.hs | haskell | module Web.Telegram.Types.Internal.API.SetChatStickerSet where
import Common
import Web.Telegram.Types.Internal.API.ChatId
data SetChatStickerSet = SetChatStickerSet
{ chatId :: ChatId,
stickerSetName :: Text
}
deriving stock (Show, Eq)
mkLabel ''SetChatStickerSet
deriveToJSON snake ''SetChatStickerSet
mak... | |
c947c60c5b2e693eae51653e55615350f3616f4ea7e94c6c6f084380e9fc0d8a | bintracker/bintracker | extra-formats.scm | (bintracker-plugin
id: "extra-formats"
version: "0.0.2"
author: "utz"
license: "BSD0"
description: "Export modules to various emulator formats"
body: ((load "plugins/extra-formats/extra-formats-impl.scm")
(import extra-formats)
(after-startup-hooks
'add
'extra-formats::register-menu-entries
(lambda ()
... | null | https://raw.githubusercontent.com/bintracker/bintracker/6f5986338d0a7af8eb85fcd7839c4875750fbe61/plugins/extra-formats/extra-formats.scm | scheme | (bintracker-plugin
id: "extra-formats"
version: "0.0.2"
author: "utz"
license: "BSD0"
description: "Export modules to various emulator formats"
body: ((load "plugins/extra-formats/extra-formats-impl.scm")
(import extra-formats)
(after-startup-hooks
'add
'extra-formats::register-menu-entries
(lambda ()
... | |
e06f47f4a3e8bb357a9f4d72fb1e4842a07f98adcd52b5b1bc8eab9fbd69eeef | themetaschemer/malt | E-argmax.rkt | #lang racket
(require (only-in "../tensors.rkt" ext1-ρ tref tmap))
(require "../autodiff.rkt")
(require "A-scalar-ops.ss")
(define argmax-1-ρ
(λ (t)
(let ((i (sub1 (tlen t))))
(argmaxed-ρ t i i))))
(define argmaxed-ρ
(λ (t i a)
(let ((a-hat (next-argmax t i a)))
(cond
((zero? i) a-ha... | null | https://raw.githubusercontent.com/themetaschemer/malt/78a04063a5a343f5cf4332e84da0e914cdb4d347/nested-tensors/ext-ops/E-argmax.rkt | racket | #lang racket
(require (only-in "../tensors.rkt" ext1-ρ tref tmap))
(require "../autodiff.rkt")
(require "A-scalar-ops.ss")
(define argmax-1-ρ
(λ (t)
(let ((i (sub1 (tlen t))))
(argmaxed-ρ t i i))))
(define argmaxed-ρ
(λ (t i a)
(let ((a-hat (next-argmax t i a)))
(cond
((zero? i) a-ha... | |
f8e79ad26d122296724286207f6150a3e116fbb281ff57d85ab7be75bc77cf75 | owlbarn/owl_symbolic | owl_symbolic_ops_quantization.ml |
* OWL - OCaml Scientific and Engineering Computing
* Copyright ( c ) 2016 - 2020 < >
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2020 Liang Wang <>
*)
* QuantizeLinear , DequantizeLinear ,
open Owl_symbolic_types
* One input
module QuantizeLinear = struct
type t =
{... | null | https://raw.githubusercontent.com/owlbarn/owl_symbolic/dc853a016757d3f143c5e07e50075e7ae605d969/src/ops/owl_symbolic_ops_quantization.ml | ocaml |
* OWL - OCaml Scientific and Engineering Computing
* Copyright ( c ) 2016 - 2020 < >
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2020 Liang Wang <>
*)
* QuantizeLinear , DequantizeLinear ,
open Owl_symbolic_types
* One input
module QuantizeLinear = struct
type t =
{... | |
1b32aa2fe23d78c012e9b440c6fc8e4ac3a4008449cadbefb0a57ffc97cff7dd | danoctavian/bit-smuggler | FileCache.hs | {-# LANGUAGE PackageImports, RankNTypes #-}
module Network.BitSmuggler.FileCache where
import Prelude as P hiding (lookup)
import Data.ByteString as BS
import Data.Serialize as DS hiding (put)
import qualified Data.Map.Lazy as Map
import Control.Concurrent.STM
import Control.Concurrent.STM.TVar
import "temporary" Sys... | null | https://raw.githubusercontent.com/danoctavian/bit-smuggler/4385ed67f1fec4ed441832fc9a119de632b796aa/BitSmuggler/src/Network/BitSmuggler/FileCache.hs | haskell | # LANGUAGE PackageImports, RankNTypes #
cache of files stored in a directory
WARNING: not thread-safe
don't store again
we're storing paths relative to the root directory |
module Network.BitSmuggler.FileCache where
import Prelude as P hiding (lookup)
import Data.ByteString as BS
import Data.Serialize as DS hiding (put)
import qualified Data.Map.Lazy as Map
import Control.Concurrent.STM
import Control.Concurrent.STM.TVar
import "temporary" System.IO.Temp
import Data.Conduit
import Data.... |
14f989d0c37e74644ca2dab58c51db5d9bc9814cc5c372d0220e5720a65c071e | rcook/sexpr-parser | Internal.hs | |
Module : Text . SExpression . Internal
Description : Internal parser functions
Copyright : ( C ) , 2019
Licence : MIT
Maintainer :
Stability : stable
Portability : portable
This module provides internal parser functions .
Module : Text.SExpression.Internal
Description : I... | null | https://raw.githubusercontent.com/rcook/sexpr-parser/6f62b622fe8f7e74a53686b2b9b89db598c16a3c/lib/Text/SExpression/Internal.hs | haskell | # OPTIONS_GHC -Wall -Werror #
* S-expression parser
* S-expression value parsers
| S-expression parser
^ parser
^ parser
^ parser
^ parser
^ parser | |
Module : Text . SExpression . Internal
Description : Internal parser functions
Copyright : ( C ) , 2019
Licence : MIT
Maintainer :
Stability : stable
Portability : portable
This module provides internal parser functions .
Module : Text.SExpression.Internal
Description : I... |
fa59934ce0263a566da70d4282c34109825d52a577e0ab5a571d9f3efdccc001 | ijvcms/chuanqi_dev | player_guild_cache.erl | %%%-------------------------------------------------------------------
%%% @author tuhujia
( C ) 2015 , < COMPANY >
%%% @doc
%%%
%%% @end
Created : 13 . 八月 2015 10:45
%%%-------------------------------------------------------------------
-module(player_guild_cache).
-include("common.hrl").
-include("cache.hrl").
... | null | https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/business/guild/player_guild_cache.erl | erlang | -------------------------------------------------------------------
@author tuhujia
@doc
@end
-------------------------------------------------------------------
API
====================================================================
API functions
===============================================================... | ( C ) 2015 , < COMPANY >
Created : 13 . 八月 2015 10:45
-module(player_guild_cache).
-include("common.hrl").
-include("cache.hrl").
-include("record.hrl").
-export([
select_row/1,
select_all/0,
replace/1,
delete/1,
remove_cache/1,
save_player_guild_to_ets/1,
get_player_guild_info_from_ets/2,
delete_player_... |
49ee1305d7eaac6f71fdaf9c7ce5873499ff47125091f046e4e88672e10b7951 | xapi-project/xen-api | xapi_vm_migrate.ml |
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc.
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation ; version 2.1 only . with the special
* exception on linking describe... | null | https://raw.githubusercontent.com/xapi-project/xen-api/f00d92017b65280212a2cb81718ddd66b58ba806/ocaml/xapi/xapi_vm_migrate.ml | ocaml | *
* @group Virtual-Machine Management
IP address
IP address
* Decide whether to use stream compression during migration based on
options passed to the API, localhost, and destination
honour any option given
don't use for local migration
host unknown - this is a cross-pool migration
User cancelled migratio... |
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc.
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation ; version 2.1 only . with the special
* exception on linking describe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.