_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
cecb18614c93728cd649afaee0ea7ba4f7ff9263f97f3b5bb61bf9a5aa2e42ac
justinmeiners/srcweave
command-line.lisp
Copyright ( c ) 2022 ; ; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , version 2 . ; ; This program is distributed in the hope that it will be useful, but ; WITHOUT ANY WARRANTY; with...
null
https://raw.githubusercontent.com/justinmeiners/srcweave/f1160f766f16d181c0c233a6df74d806e7f99999/command-line.lisp
lisp
This program is free software: you can redistribute it and/or modify This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. alo...
Copyright ( c ) 2022 it under the terms of the GNU General Public License as published by the Free Software Foundation , version 2 . You should have received a copy of the GNU General Public License (in-package :srcweave) (defun parse-empty-arg-as-null (arg) (if (and (stringp arg) (= (length arg) 0)) ...
665126cdd8bb8bbd1a0c7dc7a8c4fa8895588f2eda1f399b1cf8b9e98a106459
bugczw/Introduction-to-Functional-Programming-in-OCaml
W1_S5_1.ml
PRIME NUMBERS ( 30/30 points ) Let 's define some usual arithmetical functions . gcd that takes two non - negative integers n and m , and that returns the greatest common divisor of n and m , following Euclid 's algorithm . multiple_upto : int - > int - > bool that takes two non - negative integers n and r ,...
null
https://raw.githubusercontent.com/bugczw/Introduction-to-Functional-Programming-in-OCaml/13c4d1f92e7479f8eb10ea5d4c43a598b6676d0f/OCaml_MOOC_W1_ALL/Exercise/W1_S5_1.ml
ocaml
PRIME NUMBERS ( 30/30 points ) Let 's define some usual arithmetical functions . gcd that takes two non - negative integers n and m , and that returns the greatest common divisor of n and m , following Euclid 's algorithm . multiple_upto : int - > int - > bool that takes two non - negative integers n and r ,...
1857a37f032f98a124af2cdf7ac8f10c191493d96163cf093c6022ae8049915c
osstotalsoft/functional-guy
07.MessagingPipeline.hs
import Control.Monad import Control.Monad.Reader -- the generic pipeline library type Middleware r m a b = a -> ReaderT r m b -- some reusable middlewares type Json = String type UserId = Int data Envelope a = Envelope { userId :: UserId, payload :: a } deriving (Show, Read) data Context a = Context { ...
null
https://raw.githubusercontent.com/osstotalsoft/functional-guy/c02a8b22026c261a9722551f3641228dc02619ba/Chapter6.%20Computational%20effects/Examples/Reader/07.MessagingPipeline.hs
haskell
the generic pipeline library some reusable middlewares implementation test the pipeline
import Control.Monad import Control.Monad.Reader type Middleware r m a b = a -> ReaderT r m b type Json = String type UserId = Int data Envelope a = Envelope { userId :: UserId, payload :: a } deriving (Show, Read) data Context a = Context { deserializeFn :: String -> Maybe (Envelope a), logFn :: E...
600a7dbd52dd2fcb85ca16cddb997707cbfac6601a4ec682461a87b178f58596
m4b/rdr
MachSection.ml
* A segment is made up of zero or more sections . Non - MH_OBJECT files have * all of their segments with the proper sections in each , and padded to the * specified segment alignment when produced by the link editor . The first * segment of a MH_EXECUTE and MH_FVMLIB format file contains the mach_heade...
null
https://raw.githubusercontent.com/m4b/rdr/2bf1f73fc317cd74f8c7cacd542889df729bd003/lib/mach/MachSection.ml
ocaml
* A segment is made up of zero or more sections . Non - MH_OBJECT files have * all of their segments with the proper sections in each , and padded to the * specified segment alignment when produced by the link editor . The first * segment of a MH_EXECUTE and MH_FVMLIB format file contains the mach_heade...
219036fe63278e59248f26f98fa35fbace8191cb31402e927e18e3855a789671
patrikja/AFPcourse
Behaviour.hs
module Compiler.Behaviour(Trace(..),(+++),approx,cut,crashed) where infixr 2 :> data Trace a = Step (Trace a) | a :> Trace a | End | Crash | Cut deriving (Eq, Show) (+++) :: Trace a -> Trace a -> Trace a Step s +++ t = Step (s +++ t) (x :> s) +++ t = x :> (s +++ t) End +++ t = t Crash +++ t = C...
null
https://raw.githubusercontent.com/patrikja/AFPcourse/1a079ae80ba2dbb36f3f79f0fc96a502c0f670b6/L10/src/Compiler/Behaviour.hs
haskell
module Compiler.Behaviour(Trace(..),(+++),approx,cut,crashed) where infixr 2 :> data Trace a = Step (Trace a) | a :> Trace a | End | Crash | Cut deriving (Eq, Show) (+++) :: Trace a -> Trace a -> Trace a Step s +++ t = Step (s +++ t) (x :> s) +++ t = x :> (s +++ t) End +++ t = t Crash +++ t = C...
063a59ab0306bd60aa4c82456467357402b09c9275b6bf2dfab12a4c4c3083f8
ocaml-community/obus
nm_connection.mli
* nm_connection.mli * ----------------- * Copyright : ( c ) 2010 , < > * 2010 , < > * Licence : BSD3 * * This file is a part of obus , an ocaml implementation of D - Bus . * nm_connection.mli * ----------------- * Copyright : (c) 2010, Pierre Chambart <> * ...
null
https://raw.githubusercontent.com/ocaml-community/obus/8d38ee6750587ae6519644630b75d53a0a011acd/bindings/network-manager/nm_connection.mli
ocaml
* NetworkManager active connections * An active connection is a connection that is currently being used * The connection state * The active connection is in an unknown state. * The connection is activating. * The connection is activated.
* nm_connection.mli * ----------------- * Copyright : ( c ) 2010 , < > * 2010 , < > * Licence : BSD3 * * This file is a part of obus , an ocaml implementation of D - Bus . * nm_connection.mli * ----------------- * Copyright : (c) 2010, Pierre Chambart <> * ...
cb3d03f67d48c35c52130d14279d76bf0383f5ab6c277acdc57b6cb8e275f69b
brevis-us/brevis
project.clj
(defproject us.brevis/brevis "0.11.0-SNAPSHOT" :description "A Functional Scientific and Artificial Life Simulator" :url "" :license {:name "Apache License v2" :url "-2.0"} :resource-paths ["resources"] :plugins [[lein-marginalia "0.7.1"]] :java-source-paths ["src/main/java"] :source-paths ["s...
null
https://raw.githubusercontent.com/brevis-us/brevis/de51c173279e82cca6d5990010144167050358a3/project.clj
clojure
Essential Images and Physics packages Plotting Math packages 38 requries are we still using this? UI packages (should we factor out the UI competely to make things lighter?)
(defproject us.brevis/brevis "0.11.0-SNAPSHOT" :description "A Functional Scientific and Artificial Life Simulator" :url "" :license {:name "Apache License v2" :url "-2.0"} :resource-paths ["resources"] :plugins [[lein-marginalia "0.7.1"]] :java-source-paths ["src/main/java"] :source-paths ["s...
bf231ae1bbe68c87c178881acab6130d6ab0a9dd51e7445ca329e87d00c45d2f
epgsql/epgsql
epgsql_ct.erl
-module(epgsql_ct). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -export([ connection_data/1, connect/1, connect_only/2, with_connection/2, with_connection/3, with_connection/4, with_rollback/2, with_min_version/4, flush/0 ]). connection_data...
null
https://raw.githubusercontent.com/epgsql/epgsql/ebc262b782e2b866458922f479c9394f68c5946c/test/epgsql_ct.erl
erlang
flush mailbox
-module(epgsql_ct). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -export([ connection_data/1, connect/1, connect_only/2, with_connection/2, with_connection/3, with_connection/4, with_rollback/2, with_min_version/4, flush/0 ]). connection_data...
a8691234fd9eb6265a0f1905bd884b22914d892b7b7da8145e7957c7c628a06b
aeternity/mnesia_rocksdb
mrdb_mutex_serializer.erl
-module(mrdb_mutex_serializer). -behavior(gen_server). -export([wait/1, done/2]). -export([start_link/0]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -record(st, { queues = #{} , empty_q = queue:new()...
null
https://raw.githubusercontent.com/aeternity/mnesia_rocksdb/0aecf5ef0192c9d130b9b0aabd8656d27d278815/src/mrdb_mutex_serializer.erl
erlang
perhaps silly optimization Not the lock holder In this function, we don't actually pop
-module(mrdb_mutex_serializer). -behavior(gen_server). -export([wait/1, done/2]). -export([start_link/0]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -record(st, { queues = #{} wait(Rsrc) -> gen_server:call(...
3d2bdc87bcc22a4dd879a726fed86cf67e1c6712481b4e49f6ed4c04f2b67d2e
icicle-lang/icicle-ambiata
Melt.hs
{-# LANGUAGE DoAndIfThenElse #-} # LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternGuards # {-# LANGUAGE PatternSynonyms #-} {-# LANGUAGE RecordWildCards #-} # LANGUAGE ScopedTypeVariables # module Icicle.Avalanche.Statement.Sim...
null
https://raw.githubusercontent.com/icicle-lang/icicle-ambiata/9b9cc45a75f66603007e4db7e5f3ba908cae2df2/icicle-compiler/src/Icicle/Avalanche/Statement/Simp/Melt.hs
haskell
# LANGUAGE DoAndIfThenElse # # LANGUAGE OverloadedStrings # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # ---------------------------------------------------------------------- ---------------------------------------------------------------------- ----------------------------------------------...
# LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # # LANGUAGE PatternGuards # # LANGUAGE ScopedTypeVariables # module Icicle.Avalanche.Statement.Simp.Melt ( melt , meltValue , unmeltValue ) where import Icicle.Avalanche.Prim.Eval import Icicle.Avalanche.Prim.Flat i...
e3217f07e7fa0eb66f3521379b794fe6fec649886107c297f198503125e9e947
gedge-platform/gs-broker
eetcd_app.erl
@private -module(eetcd_app). -behaviour(application). %% Application callbacks -export([start/2, stop/1]). start(_StartType, _StartArgs) -> eetcd_sup:start_link(). stop(_State) -> ok.
null
https://raw.githubusercontent.com/gedge-platform/gs-broker/c4c1ad39e563537d46553eae1363317cf75aff26/broker-server/deps/eetcd/src/eetcd_app.erl
erlang
Application callbacks
@private -module(eetcd_app). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs) -> eetcd_sup:start_link(). stop(_State) -> ok.
c55dd53cb6b779db5cdce0831c3889153203acc2d933428eda823bc9e642077c
m0smith/lein-resource
resource_test.clj
(ns leiningen.resource-test (:import [leiningen.resource.FileSpec]) (:require [clojure.test :refer :all] [clojure.test.check :as tc] [clojure.test.check.clojure-test :as ct] [clojure.test.check.generators :as gen] [clojure.test.check.properties :as prop] [...
null
https://raw.githubusercontent.com/m0smith/lein-resource/24f634c853237761f0e1c7a60b4d1df5c662bc69/test/leiningen/resource_test.clj
clojure
READ WRITE EXECUTE * a sub-directory of target/lein-resource/tmp * must be new (println file) Must be manually cleaned up FileSpec [src src-file dest resource-path dest-file skip update extra-values]) ## normalize-resource-paths The output is a seq of [ src options ] ## dest-from-src The result will have du...
(ns leiningen.resource-test (:import [leiningen.resource.FileSpec]) (:require [clojure.test :refer :all] [clojure.test.check :as tc] [clojure.test.check.clojure-test :as ct] [clojure.test.check.generators :as gen] [clojure.test.check.properties :as prop] [...
b68953b1847a077536387168e50220efd29335c9286d25cd12ece391020f58c6
alexander-yakushev/lein-skummet
project.clj
(defproject org.skummet/lein-skummet "0.2.3-SNAPSHOT" :description "Leiningen plugin for Project Skummet" :url "-yakushev/lein-skummet" :dependencies [] :eval-in :leiningen)
null
https://raw.githubusercontent.com/alexander-yakushev/lein-skummet/640e8f3809a005389009c6bee8c720fc98381131/project.clj
clojure
(defproject org.skummet/lein-skummet "0.2.3-SNAPSHOT" :description "Leiningen plugin for Project Skummet" :url "-yakushev/lein-skummet" :dependencies [] :eval-in :leiningen)
e4053c2beb31c059f480fb738b85eb1fe6b09989d9432f3319f97b0cd8538497
ulricha/dsh
NestJoin.hs
{-# LANGUAGE FlexibleContexts #-} # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE ScopedTypeVariables #-} -- | Deal with nested comprehensions by introducing explicit nesting operators ( NestJoin ) . module Database.DSH.CL.Opt.NestJoin ( nestjoinR , zipCorrelatedR ) where import Control.Arrow...
null
https://raw.githubusercontent.com/ulricha/dsh/e6cd5c6bea575e62a381e89bfc4cc7cb97485106/src/Database/DSH/CL/Opt/NestJoin.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # | Deal with nested comprehensions by introducing explicit nesting ------------------------------------------------------------------------------ Common code for unnesting from a comprehension head and from comprehension guards --------------------...
# LANGUAGE MultiParamTypeClasses # operators ( NestJoin ) . module Database.DSH.CL.Opt.NestJoin ( nestjoinR , zipCorrelatedR ) where import Control.Arrow import Control.Monad import Data.Either import Data.List import Data.List.NonEmpty (No...
439a550d567a0b57e638450a8e1311bc023ec01459a9881eb72652dcb2865fc3
avsm/mirage-duniverse
introduce.mli
* Copyright ( C ) 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 described in file LI...
null
https://raw.githubusercontent.com/avsm/mirage-duniverse/983e115ff5a9fb37e3176c373e227e9379f0d777/ocaml_modules/xenstore/server/introduce.mli
ocaml
* A remote domain address * A stream of introduced addresses
* Copyright ( C ) 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 described in file LI...
1009b34a98cf9ec5f8b5e98dce4c75b664ee3111606673bc5dd47f8a3f4475ed
facebook/duckling
Tests.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. module Duckling.Volume.CA.Tests ( tests ) where import Data.String import Prelude import Test.Tasty impo...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/tests/Duckling/Volume/CA/Tests.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree.
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Volume.CA.Tests ( tests ) where import Data.String import Prelude import Test.Tasty import Duckling.Volume.CA.Corpus import Duckling.Dimensions.Types import Duckling.Testing.Asserts tests :: TestTree tests = testGroup "CA Tests" [ makeCorpusTes...
a9cddb8bdbecc5e37b50b7d2c8149674debc8c06d30a4622e56e7776016c2b35
crownedgrouse/jason
jason_lib.erl
%%%----------------------------------------------------------------------------- %%% File: jason_lib.erl @author < > 2017 crownedgrouse.com %%% @doc Library for Jason %%% @end %%% %%% Permission to use, copy, modify, and/or distribute this software %%% for any purpose with or without fee is hereby gr...
null
https://raw.githubusercontent.com/crownedgrouse/jason/405d2ea1a19de3a96705026a39cffc848f2ddde6/src/jason_lib.erl
erlang
----------------------------------------------------------------------------- File: jason_lib.erl @doc @end Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in a...
@author < > 2017 crownedgrouse.com Library for Jason THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL LOSS OF USE , DATA OR PROFITS , WHETHER IN AN ACTION OF CONTRACT , Created : 2017 - 02 - 13 -module(jason_lib). -export([mapify/1, recordify/1, proplistify/1, is_argonaut/1]). -spec...
f87c470f4aa48fa2fd98f8e41992df4c0ea6883b0819e4e3550b678bba33bb18
DKurilo/hackerrank
solution.hs
# LANGUAGE OverloadedStrings , UnicodeSyntax # module Main where import Prelude.Unicode import Control.Monad import qualified Data.ByteString.Char8 as BSC import qualified Data.Set as DS import qualified Data.Map.Strict as DM import qualified Data.List as DL import System.Environment import System.IO import Debug.Tra...
null
https://raw.githubusercontent.com/DKurilo/hackerrank/37063170567b397b25a2b7123bc9c1299d34814a/matrix/solution.hs
haskell
Complete the minTime function below. BSC.hPutStrLn fptr ∘ BSC.pack ∘ show $ result
# LANGUAGE OverloadedStrings , UnicodeSyntax # module Main where import Prelude.Unicode import Control.Monad import qualified Data.ByteString.Char8 as BSC import qualified Data.Set as DS import qualified Data.Map.Strict as DM import qualified Data.List as DL import System.Environment import System.IO import Debug.Tra...
e03cf6266030015e63d28b302f56740f7c3fbfce60e0075ada295d49971ac681
mbj/stratosphere
GroupsProperty.hs
module Stratosphere.Pinpoint.Segment.GroupsProperty ( module Exports, GroupsProperty(..), mkGroupsProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.Pinpoint.Segment.SegmentDimensionsProperty a...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/pinpoint/gen/Stratosphere/Pinpoint/Segment/GroupsProperty.hs
haskell
# SOURCE # # SOURCE #
module Stratosphere.Pinpoint.Segment.GroupsProperty ( module Exports, GroupsProperty(..), mkGroupsProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data GroupsPro...
1fa1fb4e23d0af74292b7540604925c6f9a668a37e8576d340e22a337709eae3
nasa/Common-Metadata-Repository
single_thread_lookup_cache.clj
(ns cmr.common.cache.single-thread-lookup-cache "Defines a cache that serializes all calls to execute the lookup function on a single thread. It should be used when the lookup function is very expensive and you want to minimize the number of times it's called. When the value is already cached the request for a...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/7ea1e3700c641b07ad262f3237c539c807380ade/common-lib/src/cmr/common/cache/single_thread_lookup_cache.clj
clojure
Guard against exceptions while getting a value from the delegate cache. These will most likely come from lookup function. The exception is returned so it will be put on the response channel and thrown to the caller. Attempt to read messages from the lookup request channel until it's closed. If a nil value is retu...
(ns cmr.common.cache.single-thread-lookup-cache "Defines a cache that serializes all calls to execute the lookup function on a single thread. It should be used when the lookup function is very expensive and you want to minimize the number of times it's called. When the value is already cached the request for a...
4abff21860e617a5a04b54066deeac0ec61514159795be9a09cd5e65367105c6
amuletml/amulet
Timing.hs
# LANGUAGE MultiWayIf , Trustworthy , OverloadedStrings # module Control.Timing ( Timer , newTimer , endTimer , withTimer , timingReport ) where import Control.Exception.Base (evaluate, mask) import Control.Concurrent.MVar import Control.Monad.IO.Class import System.Environment import System.IO.Unsafe (u...
null
https://raw.githubusercontent.com/amuletml/amulet/fcba0b7e198b8d354e95722bbe118bccc8483f4e/src/Control/Timing.hs
haskell
# UNPACK # # UNPACK # | A timing event (either the start of a timer, or the end of a timer) # UNPACK # # UNPACK # | Create a new timer with the given description. | End the given timer and report the elapsed time to AMC_TIMING. ↓ can't be made into (.) because impredicative polymorphism We take -log₁₀(elapsed)...
# LANGUAGE MultiWayIf , Trustworthy , OverloadedStrings # module Control.Timing ( Timer , newTimer , endTimer , withTimer , timingReport ) where import Control.Exception.Base (evaluate, mask) import Control.Concurrent.MVar import Control.Monad.IO.Class import System.Environment import System.IO.Unsafe (u...
f41711c5a4e7ddc09a8b8fce457fafa8d69e30bee0af5ad41cbcb1fd79ec8caa
vbmithr/ocaml-ftx
ftx_ws.ml
open Sexplib.Std open Ftx open Json_encoding let url = Uri.make ~scheme:"https" ~host:"ftx.com" ~path:"ws/" () type channel = | Ticker | Trades | Orderbook [@@deriving sexp] let pp_print_channel ppf t = Format.fprintf ppf "%a" (Sexplib.Sexp.pp) (sexp_of_channel t) let channel_of_string = function | "ticke...
null
https://raw.githubusercontent.com/vbmithr/ocaml-ftx/d3aae520c1ed859162b62b09a8fdb003063be66d/src/ftx_ws.ml
ocaml
open Sexplib.Std open Ftx open Json_encoding let url = Uri.make ~scheme:"https" ~host:"ftx.com" ~path:"ws/" () type channel = | Ticker | Trades | Orderbook [@@deriving sexp] let pp_print_channel ppf t = Format.fprintf ppf "%a" (Sexplib.Sexp.pp) (sexp_of_channel t) let channel_of_string = function | "ticke...
536be760f90d89bda47f780bb383169a29f6ba893e9077bb89e041bd02d56ff4
deadtrickster/rebar3_elvis_plugin
rebar3_elvis_plugin.erl
-module(rebar3_elvis_plugin). -export([init/1, do/1, format_error/1]). -define(PROVIDER, elvis). -define(DEPS, []). %% =================================================================== %% Public API %% =================================================================== -spec init(rebar_state:t()...
null
https://raw.githubusercontent.com/deadtrickster/rebar3_elvis_plugin/0b7dd1a3808dbe2e2e916ecf3afd1ff24e723021/src/rebar3_elvis_plugin.erl
erlang
=================================================================== Public API =================================================================== =================================================================== ===================================================================
-module(rebar3_elvis_plugin). -export([init/1, do/1, format_error/1]). -define(PROVIDER, elvis). -define(DEPS, []). -spec init(rebar_state:t()) -> {ok, rebar_state:t()}. init(State) -> Provider = providers:create([{name, ?PROVIDER}, {module, ?MODULE}, ...
f095f3030a658bc104c698b70dd17a1bfc5ed5231b4394655ebca6b1064555c1
ttyerlsol/rss
rss_parser.erl
This file is under The MIT License ( MIT ) Copyright ( c ) 2014 ( ) %% This file can be found %% -module(rss_parser). -export([parse_feed/1]). -record(rss_state, {type = other, acc = []}). parse_feed(Feed) -> xmerl_sax_parser:stream(Feed, options()). options() -> [{event_state, []}, {event_fun,...
null
https://raw.githubusercontent.com/ttyerlsol/rss/929fb9a39c5a4f76ee3af6260229cb9b07cd7ec2/src/rss_parser.erl
erlang
This file is under The MIT License ( MIT ) Copyright ( c ) 2014 ( ) This file can be found -module(rss_parser). -export([parse_feed/1]). -record(rss_state, {type = other, acc = []}). parse_feed(Feed) -> xmerl_sax_parser:stream(Feed, options()). options() -> [{event_state, []}, {event_fun, fun r...
f2b6f5b7300b37a9c33c4b8c543922865782e76b5507247acf7d8c8384f3c7ae
lambdamikel/DLMAPS
load-race.lisp
#+(AND :LINUX :ALLEGRO-V5.0) (load "dl-test:race-1-1;race-1-1-acl5-linux;load-race") #+(AND :LINUX :ALLEGRO-V5.0.1) (load "dl-test:race-1-1;race-1-1-acl501-linux;load-race") #+(AND :UNIX (NOT :LINUX) :ALLEGRO-VERSION>= (not (version>= 5)) (version>= 4)) (load "dl-test:race-1-1;race-1-1-acl4-solaris;load-race") #+(AN...
null
https://raw.githubusercontent.com/lambdamikel/DLMAPS/7f8dbb9432069d41e6a7d9c13dc5b25602ad35dc/src/prover/dl-benchmark-suite/race-1-1/load-race.lisp
lisp
#+(AND :LINUX :ALLEGRO-V5.0) (load "dl-test:race-1-1;race-1-1-acl5-linux;load-race") #+(AND :LINUX :ALLEGRO-V5.0.1) (load "dl-test:race-1-1;race-1-1-acl501-linux;load-race") #+(AND :UNIX (NOT :LINUX) :ALLEGRO-VERSION>= (not (version>= 5)) (version>= 4)) (load "dl-test:race-1-1;race-1-1-acl4-solaris;load-race") #+(AN...
820d82b824605a94fbbfec5030e200fbb22aa292a84564a20595c69a49c9708e
eschulte/software-evolution
with-exe.lisp
;;; Software Object with an executable (defclass software-exe (software) ((exe :initarg :exe :accessor raw-exe :initform nil))) (defgeneric exe (software &optional place) (:documentation "Return the path to an executable of the software. (caching)")) (defmethod (setf exe) (new (software software-exe)) (set...
null
https://raw.githubusercontent.com/eschulte/software-evolution/dbf5900d1eef834b93eeb00eca34eb7c80e701b6/software/with-exe.lisp
lisp
Software Object with an executable
(defclass software-exe (software) ((exe :initarg :exe :accessor raw-exe :initform nil))) (defgeneric exe (software &optional place) (:documentation "Return the path to an executable of the software. (caching)")) (defmethod (setf exe) (new (software software-exe)) (setf (raw-exe software) new)) (defmethod ...
95552f8420fb6c53f23418cc9680b8a25b542df5b723e3d333d231ae52171dc9
SnootyMonkey/Falkland-CMS
config.clj
(ns fcms.config "Namespace for the FCMS configuration parameters." (:require [environ.core :refer (env)] [com.ashafa.clutch :as clutch])) (defn- bool "Handle the fact that we may have 'true'/'false' strings, when we want booleans." [val] (boolean (Boolean/valueOf val))) ;; ----- CouchDB config -...
null
https://raw.githubusercontent.com/SnootyMonkey/Falkland-CMS/bd653c23dd458609b652dfac3f0f2f11526f00d1/src/fcms/config.clj
clojure
----- CouchDB config ----- ----- CouchDB connect map ----- ----- Web server config ----- ----- Liberator config -----
(ns fcms.config "Namespace for the FCMS configuration parameters." (:require [environ.core :refer (env)] [com.ashafa.clutch :as clutch])) (defn- bool "Handle the fact that we may have 'true'/'false' strings, when we want booleans." [val] (boolean (Boolean/valueOf val))) (defonce db-host (or (en...
abdee05ba5e3141016cc357490fe187966a1bf1741e6d7fffe2be462b4ac7191
clojurecup2014/parade-route
interruptible_eval.clj
(ns ^{:author "Chas Emerick"} unity.nrepl.middleware.interruptible-eval (:require [clojure.tools.nrepl.transport :as t] clojure.tools.nrepl.middleware.pr-values [clojure.tools.nrepl.debug :as debug] clojure.main) (:use [clojure.tools.nrepl.misc :only (response-for returning)] ...
null
https://raw.githubusercontent.com/clojurecup2014/parade-route/adb2e1ea202228e3da07902849dee08f0bb8d81c/Assets/Clojure/unity/nrepl/middleware/interruptible_eval.clj
clojure
expression results and errors DEBUG clojure.main/repl paves over certain vars even if they're already thread-bound DEBUG qn (pop q) _ (debug/prn-thread "c:" (count q)) A little mini-agent implementation. Needed because agents cannot be used to host REPL evaluation: -17 interrupts are inherently racy; we'll check t...
(ns ^{:author "Chas Emerick"} unity.nrepl.middleware.interruptible-eval (:require [clojure.tools.nrepl.transport :as t] clojure.tools.nrepl.middleware.pr-values [clojure.tools.nrepl.debug :as debug] clojure.main) (:use [clojure.tools.nrepl.misc :only (response-for returning)] ...
c8caf501fbf7ff501f359a4d800ca3a1240e4ae9e1ce803bf62e82a7525031d2
nkaretnikov/OOHaskell
Rectangle.hs
( C ) 2004 - 2005 , Oleg Kiselyov & 's overlooked object system module Rectangle where import Shape -- The composed type of rectangles data RectangleData = RectangleData { shapeData :: ShapeData , widthData :: Int , heightData :: Int } -- ...
null
https://raw.githubusercontent.com/nkaretnikov/OOHaskell/ddf42cfa62f8bd27643ff6db136dec6c14466232/repository/shapes/Haskell/Shapes8/Rectangle.hs
haskell
The composed type of rectangles Concrete rectangles rectangle-specific operation
( C ) 2004 - 2005 , Oleg Kiselyov & 's overlooked object system module Rectangle where import Shape data RectangleData = RectangleData { shapeData :: ShapeData , widthData :: Int , heightData :: Int } rectangle x y w h = ShapeC { getData ...
40280a72e3f5d6dba62c93ce7e870610dc9155d3441fe90f11e0061684fd6c40
arcfide/oleg
xpath-context.scm
Context - based XPath implementation ; ; This software is in Public Domain. IT IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND . ; ; Please send bug reports and comments to: ; Dmitry Lizorkin ; ; <nodeset> ::= ( <nodeset-member>* ) ; <nodeset-member> ::= <node> | <context> ; <context> ::= ( ...
null
https://raw.githubusercontent.com/arcfide/oleg/c6826870436925fd4c873c01d7fcc24a7a7f95dc/sxml-tools/xpath-context.scm
scheme
This software is in Public Domain. Please send bug reports and comments to: Dmitry Lizorkin <nodeset> ::= ( <nodeset-member>* ) <nodeset-member> ::= <node> | <context> <context> ::= ( *CONTEXT* <node> <ancestor>* ) <ancestor>* - context node's parent, grandparent, grandgrandparent etc. evaluating th...
Context - based XPath implementation IT IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND . < node > - an SXML node ( a context node ) A CONTEXT does n't contain more than actually required for parsing of the location path . The number of stored in the CONTEXT (define (sxml:context-u? node...
5f2a7fb3869f7c572205856baf295a3b40f9ed3d88396a534b35f6dcb56bdcdf
omcljs/om
core.cljs
(ns examples.refs.core (:require [om.core :as om :include-macros true] [om.dom :as dom :include-macros true])) (enable-console-print!) (def app-state (atom {:items [{:text "cat"} {:text "dog"} {:text "bird"}]})) (def app-history (atom [@app-state])) (defn items [] ...
null
https://raw.githubusercontent.com/omcljs/om/3a1fbe9c0e282646fc58550139b491ff9869f96d/examples/refs/src/core.cljs
clojure
(ns examples.refs.core (:require [om.core :as om :include-macros true] [om.dom :as dom :include-macros true])) (enable-console-print!) (def app-state (atom {:items [{:text "cat"} {:text "dog"} {:text "bird"}]})) (def app-history (atom [@app-state])) (defn items [] ...
eb50980d1c43db809694536373af2bf51b4768ef7511c87272be6ea0946f8bf7
rsnikhil/Forvis_RISCV-ISA-Spec
MMIO.hs
module MMIO (is_IO_addr, MMIO, mkMMIO, mmio_read8, mmio_read16, mmio_read32, mmio_read64, mmio_write8, mmio_write16, mmio_write32, mmio_write64 ) where -- ================================================================ -- This module handles memory-mapped I/O reads a...
null
https://raw.githubusercontent.com/rsnikhil/Forvis_RISCV-ISA-Spec/0c5590a12f4b39644d0497fa6285ad5e33003dfc/ZZ_OLD/v1/src/MMIO.hs
haskell
================================================================ This module handles memory-mapped I/O reads and writes. At the moment, it only handles console output. 'MMIO' is an abstraction of the Memory-Mapped IO system and is accessed via the exported get/set API. ============================================...
module MMIO (is_IO_addr, MMIO, mkMMIO, mmio_read8, mmio_read16, mmio_read32, mmio_read64, mmio_write8, mmio_write16, mmio_write32, mmio_write64 ) where Standard Haskell imports import Control.Monad import Data.Maybe import Data.Word import Data.Bits import Data.Ch...
a816bf4394e0e1c7e1eb627c648e9f0bd55125ffd03f3e10973bc7c91ee48506
tippenein/countable-inflections
Data.hs
{-# LANGUAGE OverloadedStrings #-} -- | -- Module : Text.Countable Copyright : © 2016 License : MIT -- Maintainer : < > -- Stability : experimental -- Portability : portable -- -- default seed data for transformations module Text.Countable.Data where import Data.Text (Text) |Th...
null
https://raw.githubusercontent.com/tippenein/countable-inflections/ad761725b54a325e39eed80cc6114ca2fc6f3181/Text/Countable/Data.hs
haskell
# LANGUAGE OverloadedStrings # | Module : Text.Countable Stability : experimental Portability : portable default seed data for transformations from singular to plural
Copyright : © 2016 License : MIT Maintainer : < > module Text.Countable.Data where import Data.Text (Text) |These default inflections stolen from the inflection library - see defaultPlurals' :: [(Text, Text)] defaultPlurals' = [ ("$", "s") , ("s$", "s") , ("^(ax|test)is$", "\\1es"...
92884c41a7e37a603c35e9205a2dcdeccfc55c6345079a1cb3c082051c908ca4
NorfairKing/intray
Types.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} module Intray.Cli.OptParse.Types where import Autodocodec import Control.Applicative import Control.Monad.Logger import Data.Yaml (FromJSON, T...
null
https://raw.githubusercontent.com/NorfairKing/intray/3335692a5445e86bf308420d4ab025d6ab11b10d/intray-cli/src/Intray/Cli/OptParse/Types.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # module Intray.Cli.OptParse.Types where import Autodocodec import Control.Applicative import Control.Monad.Logger import Data.Yaml (FromJSON, ToJSON) import Import import Intray....
d5fb3d0863cb6f087e86d7d2061e194446a3ba6d2186135b4ce48455b0d6be9d
diffusionkinetics/open
Connect.hs
# LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # module Dampf.Postgres.Connect where import Control.Lens import Control.Monad.Catch (MonadThrow, throwM) import Control.Monad.IO.Class (MonadIO, liftIO) import Data...
null
https://raw.githubusercontent.com/diffusionkinetics/open/673d9a4a099abd9035ccc21e37d8e614a45a1901/dampf/lib/Dampf/Postgres/Connect.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # module Dampf.Postgres.Connect where import Control.Lens import Control.Monad.Catch (MonadThrow, throwM) import Control.Monad.IO.Class (MonadIO, liftIO) import Data.Text (Text) import ...
107d4f7ea45560dabc8b6d6d360f865f6668099929739fdb453b19a6076b5076
ferd/sups
prop_sups.erl
-module(prop_sups). -include_lib("proper/include/proper.hrl"). prop_check_tree() -> ?FORALL(Cmds, commands(sups_statem), begin %% Pre silence_logs(), {ok, Apps} = application:ensure_all_started(sups), %% Tests {History, State, Result} = ...
null
https://raw.githubusercontent.com/ferd/sups/8f365c3b3079a3e52a15ffe13ac70621e2c31e38/test/prop_sups.erl
erlang
Pre Tests Reporting
-module(prop_sups). -include_lib("proper/include/proper.hrl"). prop_check_tree() -> ?FORALL(Cmds, commands(sups_statem), begin silence_logs(), {ok, Apps} = application:ensure_all_started(sups), {History, State, Result} = run_commands(sups_statem, Cmds), Post ...
3d5219a9884656b9be4431845d23ed0791de60d6ffd169ed9d449c7df47f23c9
byorgey/AoC
07.hs
#!/usr/bin/env stack stack --resolver lts-19.28 script --package containers --package split --package lens --package mtl --package generic - lens import Control.Arrow ((>>>)) import Control.Monad (replicateM) import Data.List (foldl', permutations) import Intcode main = i...
null
https://raw.githubusercontent.com/byorgey/AoC/e47255f0f2145a6bf6d2f220cc9d536732243166/2019/07/07.hs
haskell
resolver lts-19.28 script --package containers --package split --package lens --package mtl --package generic - lens
#!/usr/bin/env stack import Control.Arrow ((>>>)) import Control.Monad (replicateM) import Data.List (foldl', permutations) import Intcode main = interact $ readIntcode >>> applyAll [solveA, solveB] >>> map show >>> unlines solveA :: [Int] -> Int solveA prog = maximum (m...
cf8b9348d3d02a4c6ebef3771fe5237aaa6d85d7f8ed3104b445722812b5a791
facebookarchive/pfff
gData.ml
(**************************************************************************) (* Lablgtk *) (* *) (* This program is free software; you can redistribute it *) and/or ...
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/external/ocamlgtk/src/gData.ml
ocaml
************************************************************************ Lablgtk This program is free software; you can redistribute it comes with the library. ...
and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation version 2 , with the exception described in file COPYING which GNU Library General Public License for more details . You should have r...
7cab1c0068760a630cb8c1674a8bf7902f5501618f8c9b6f4942bf831c05c002
sbcl/sbcl
slot-boundp.impure.lisp
tests of SLOT - BOUNDP and SLOT - MAKUNBOUND This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; While most of SBCL is derived from the CMU CL system , the test ;;;; files (like this one) were written from scratch after the fork from CMU CL . ;;; ;;;; This software is...
null
https://raw.githubusercontent.com/sbcl/sbcl/cacbb24d03cbc1309447bfcd72a5cd17dd2d0e8b/tests/slot-boundp.impure.lisp
lisp
more information. files (like this one) were written from scratch after the fork This software is in the public domain and is provided with absoluely no warranty. See the COPYING and CREDITS files for more information. (there is no reasonable way to represent an unbound marker in a raw slot).
tests of SLOT - BOUNDP and SLOT - MAKUNBOUND This software is part of the SBCL system . See the README file for While most of SBCL is derived from the CMU CL system , the test from CMU CL . (load "compiler-test-util.lisp") (defpackage "SLOT-BOUNDP-TEST" (:use "CL" "SB-MOP" "ASSERTOID" "TEST-UTIL")) (in-pac...
9a868473752ba5d12ec24df04b4126b468ec407c0820665fb79366a41e529d77
NorfairKing/easyspec
Equations.hs
module EasySpec.Evaluate.Evaluate.Evaluator.Equations ( equationsEvaluator ) where import Import import EasySpec.Evaluate.Evaluate.Evaluator.Types equationsEvaluator :: Evaluator equationsEvaluator = Evaluator { evaluatorName = "equations" , evaluatorGather = Just . genericLength . eiDiscoveredEq...
null
https://raw.githubusercontent.com/NorfairKing/easyspec/b038b45a375cc0bed2b00c255b508bc06419c986/easyspec-evaluate/src/EasySpec/Evaluate/Evaluate/Evaluator/Equations.hs
haskell
module EasySpec.Evaluate.Evaluate.Evaluator.Equations ( equationsEvaluator ) where import Import import EasySpec.Evaluate.Evaluate.Evaluator.Types equationsEvaluator :: Evaluator equationsEvaluator = Evaluator { evaluatorName = "equations" , evaluatorGather = Just . genericLength . eiDiscoveredEq...
25e7c65d9cc848be8d5776cd8e1c4f3ccb1a7c5378b7bd7db13c3c99bbae1623
passy/coding-puzzles
euler14.hs
import Data.List import Control.Parallel -- Collatz Problem nextcollatz :: (Integral a) => a -> a nextcollatz n | even n = n `div` 2 | otherwise = 3 * n + 1 collatz :: (Integral a) => a -> [a] collatz = iterate nextcollatz collatzlen :: (Integral a) => a -> Int -- Assuming that the sequence ends in fac...
null
https://raw.githubusercontent.com/passy/coding-puzzles/686bd0775ee5a98004229d44c913376d033b13de/euler/euler14.hs
haskell
Collatz Problem Assuming that the sequence ends in fact with a one. With array caching, this would already be much faster! Also, one could make use of parallel processing here easily.
import Data.List import Control.Parallel nextcollatz :: (Integral a) => a -> a nextcollatz n | even n = n `div` 2 | otherwise = 3 * n + 1 collatz :: (Integral a) => a -> [a] collatz = iterate nextcollatz collatzlen :: (Integral a) => a -> Int collatzlen = (+ 1) . length . takeWhile (/=1) . collatz co...
58fb38966fba362b824c7cfc74e4ea9fdf085d56a1df6366efe07b4a42bb8ff1
PrecursorApp/precursor
doc_viewer.cljs
(ns frontend.components.doc-viewer (:require [clojure.set :as set] [clojure.string :as str] [cljs-time.core :as time] [datascript.core :as d] [frontend.async :refer [put!]] [frontend.auth :as auth] [frontend.components.common :as common] ...
null
https://raw.githubusercontent.com/PrecursorApp/precursor/30202e40365f6883c4767e423d6299f0d13dc528/src-cljs/frontend/components/doc_viewer.cljs
clojure
loading state empty state
(ns frontend.components.doc-viewer (:require [clojure.set :as set] [clojure.string :as str] [cljs-time.core :as time] [datascript.core :as d] [frontend.async :refer [put!]] [frontend.auth :as auth] [frontend.components.common :as common] ...
19c1de2649917b60cd88ff1f1f81596a7dd44c382d0688c679c8bc8e945326a7
MLanguage/mlang
mpp_format.mli
Copyright ( C ) 2019 - 2021 Inria , contributors : < > < > This program is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any la...
null
https://raw.githubusercontent.com/MLanguage/mlang/a8749761a48b47e28ecc4a0390b3873615d2a9b5/src/mlang/mpp_ir/mpp_format.mli
ocaml
Copyright ( C ) 2019 - 2021 Inria , contributors : < > < > This program is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any la...
c68d96790a527c83bb5bfb25810a0bee8618eb3c70544bee046ba7560f3660eb
racket/compiler
zo-exs.rkt
#lang racket (require compiler/zo-parse compiler/zo-marshal tests/eli-tester) (define (read-compiled-bytes bs) (parameterize ([read-accept-compiled #t]) (read (open-input-bytes bs)))) (define (run-compiled-bytes bs [delayed? #t]) (system "touch test.rkt") (system "touch compiled/test_rkt.z...
null
https://raw.githubusercontent.com/racket/compiler/88acf8a1ec81fec0fbcb6035af1d994d2fec4154/compiler-test/tests/compiler/zo-exs.rkt
racket
(with-output-to-file "compiled/test_rkt.zo" (λ () (write-bytes bs)) #:exists 'replace) (run-compiled-bytes bs #t) (run-compiled-bytes bs #f)))) (roundtrip This should work, but module-path-index-join doesn't create equal? module-path-index's (roundtrip
#lang racket (require compiler/zo-parse compiler/zo-marshal tests/eli-tester) (define (read-compiled-bytes bs) (parameterize ([read-accept-compiled #t]) (read (open-input-bytes bs)))) (define (run-compiled-bytes bs [delayed? #t]) (system "touch test.rkt") (system "touch compiled/test_rkt.z...
aab3f98540b35d9d3d599ab8138b10ea7ddcfd0a0e2f5beca76f7130a004703c
janegca/htdp2e
Exercise-181-WordsToStrings.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname Exercise-181-WordsToStrings) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" ...
null
https://raw.githubusercontent.com/janegca/htdp2e/2d50378135edc2b8b1816204021f8763f8b2707b/02-ArbitrarilyLargeData/Exercise-181-WordsToStrings.rkt
racket
about the language level of this file in a form that our tools can easily process. List-of-words -> List-of-strings turn all Words in low into Strings Word -> String convert w to a string
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname Exercise-181-WordsToStrings) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "universe.rkt" "teachpack" "2htdp") (lib "batch-io.rkt" "teachpack" "2ht...
8c9cd562331c6d34ce5aaef8fad13f2153995e56620aff08160eee86682242b7
pezipink/fairylog
language-info.rkt
Copyright , 2019 #lang racket/base (provide get-language-info) (define (get-language-info data) (lambda (key default) (case key [(configure-runtime) '(#[fairylog/lang/runtime-config configure #f])] [else default])))
null
https://raw.githubusercontent.com/pezipink/fairylog/f0c1d0d82e2ed9ff02486ddd91a0ede5c5483ef7/lang/language-info.rkt
racket
Copyright , 2019 #lang racket/base (provide get-language-info) (define (get-language-info data) (lambda (key default) (case key [(configure-runtime) '(#[fairylog/lang/runtime-config configure #f])] [else default])))
d86c87de5c37c3a7b3f70fb69bb86439c7cecd0fa9b6ed1568181676a5ca522c
mzp/coq-ide-for-ios
coercion.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/coqlib/pretyping/coercion.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i i s Coercions. [inh_app_fun env ...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * i $ I d : coercion.mli 13323 ...
96452ca35d4a87d06cd94e26b01f749d9678279eabfac5cc5fa9f6035a361c76
12urenloop/cvc
CSV.hs
-------------------------------------------------------------------------------- {-# LANGUAGE BangPatterns #-} {-# LANGUAGE OverloadedStrings #-} module CountVonCount.Protocols.CSV ( csvInput , csvOutput ) where -------------------------------------------------------------------------------- import ...
null
https://raw.githubusercontent.com/12urenloop/cvc/f8a0d57775fc6b50f18f96b9a17cb8baf4a1f1ee/count-von-count/lib/CountVonCount/Protocols/CSV.hs
haskell
------------------------------------------------------------------------------ # LANGUAGE BangPatterns # # LANGUAGE OverloadedStrings # ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ---------------------...
module CountVonCount.Protocols.CSV ( csvInput , csvOutput ) where import Control.Applicative ((*>), (<$>), (<|>)) import qualified Data.Attoparsec.ByteString as A import qualified Data.ByteString as B import qualified Data.ByteString.Char8 as BC import Da...
45c4e200d643efae2d95de6ac64d221ff1d4df57d94c17107e10cea3a28fa52c
clojure-interop/java-jdk
TransactionRolledbackException.clj
(ns javax.transaction.TransactionRolledbackException "This exception indicates that the transaction associated with processing of the request has been rolled back, or marked to roll back. Thus the requested operation either could not be performed or was not performed because further computation on behalf of the...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.transaction/src/javax/transaction/TransactionRolledbackException.clj
clojure
(ns javax.transaction.TransactionRolledbackException "This exception indicates that the transaction associated with processing of the request has been rolled back, or marked to roll back. Thus the requested operation either could not be performed or was not performed because further computation on behalf of the...
0ff1c5b0bd390c56941a049d9fe4bafdcc16dc23f4d2c74f8aba218ab4357359
cedlemo/OCaml-GI-ctypes-bindings-generator
Print_quality.mli
open Ctypes type t = Low | Normal | High | Draft val of_value: Unsigned.uint32 -> t val to_value: t -> Unsigned.uint32 val t_view: t typ
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Print_quality.mli
ocaml
open Ctypes type t = Low | Normal | High | Draft val of_value: Unsigned.uint32 -> t val to_value: t -> Unsigned.uint32 val t_view: t typ
7f5c8abbc2e67f23f2434afaf833b1cc4f24e6ad576f8f1aa438d3028f46a990
webyrd/n-grams-for-synthesis
test-Sagittarius.scm
;; srfi-48 format test for Sagittarius ;; (import (rnrs)) R6RS 's ' error ' needs a first argument ' who ' . (define error-orig error) (define (error . args) (apply error-orig 'test args)) (define write-with-shared-structure write/ss) (define exact->inexact inexact) (define inexact->exact exact) (include "tes...
null
https://raw.githubusercontent.com/webyrd/n-grams-for-synthesis/b53b071e53445337d3fe20db0249363aeb9f3e51/datasets/srfi/srfi-48/test/test-Sagittarius.scm
scheme
srfi-48 format test for Sagittarius (import (rnrs)) R6RS 's ' error ' needs a first argument ' who ' . (define error-orig error) (define (error . args) (apply error-orig 'test args)) (define write-with-shared-structure write/ss) (define exact->inexact inexact) (define inexact->exact exact) (include "test-tool...
05ca15d13dbf1496e4030a249e4511a560095f7d4aa95ae0c16f6b93b18089d8
Nibre/BlamScript-Research
floodzone_teleport.lisp
 ;========== TELEPORT SCRIPTS ========== (script static void tele_vehicle_int (fade_out 0 0 0 0) (sleep 1) (player_enable_input false) (print "switching bsp...") (sleep 15) (switch_bsp 1) (print "teleporting players...") (object_teleport (player0) vehicle_int_a) (object_teleport (player1) vehicle...
null
https://raw.githubusercontent.com/Nibre/BlamScript-Research/dd17538dcbdc78f391effb341846fbaf9a1f8643/h2v/06b_floodzone/floodzone_teleport.lisp
lisp
========== TELEPORT SCRIPTS ========== * |(script static void tele_factory_gorge | (fade_out 0 0 0 0) | (player_enable_input false) | (print "switching bsp...") | (switch_bsp 2) | (print "teleporting players...") | (print "erasing ai...") | (print "initializing area scripts...") | |; (wake factory_gorge_star...
 (script static void tele_vehicle_int (fade_out 0 0 0 0) (sleep 1) (player_enable_input false) (print "switching bsp...") (sleep 15) (switch_bsp 1) (print "teleporting players...") (object_teleport (player0) vehicle_int_a) (object_teleport (player1) vehicle_int_b) (fade_in 0 0 0 60) (print "er...
56eb9738a582a238fd586ff8b8b8f433322267de95ea6b63a55e4c66e403844c
udem-dlteam/libs
test-portable.scm
Copyright 1998 , 1999 Copyright 2012 , 2014 , 2015 SPDX - License - Identifier : MIT (test-begin "srfi-1") ;; srfi-1 examples ;; -1/srfi-1.html (test-equal '(a) (cons 'a '())) (test-equal '((a) b c d) (cons '(a) '(b c d))) (test-equal '("a" b c) (cons "a" '(b c))) (test-equal '(a . 3) (cons 'a 3)) (test-equ...
null
https://raw.githubusercontent.com/udem-dlteam/libs/9a4d02f0f8c6c47b494e9ee2a0e3b34071a0bca4/srfi/1/test-portable.scm
scheme
srfi-1 examples -1/srfi-1.html (test '(0 -0.1 -0.2 -0.3 -0.4) success , error or other divergent divergent
Copyright 1998 , 1999 Copyright 2012 , 2014 , 2015 SPDX - License - Identifier : MIT (test-begin "srfi-1") (test-equal '(a) (cons 'a '())) (test-equal '((a) b c d) (cons '(a) '(b c d))) (test-equal '("a" b c) (cons "a" '(b c))) (test-equal '(a . 3) (cons 'a 3)) (test-equal '((a b) . c) (cons '(a b) 'c)) (te...
cc98e4f21c2a6df9ed605ba68a3b471304ffa68aedbc11a2f149592229781092
rtoy/ansi-cl-tests
loop13.lsp
;-*- Mode: Lisp -*- Author : Created : Sun Nov 17 12:37:45 2002 ;;;; Contains: Tests of DO, DOING, RETURN in LOOP. Tests of NAMED loops (in-package :cl-test) (deftest loop.13.1 (loop do (return 10)) 10) (deftest loop.13.2 (loop doing (return 10)) 10) (deftest loop.13.3 (loop for i from 0 b...
null
https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/loop13.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of DO, DOING, RETURN in LOOP. Tests of NAMED loops Test that explicit calls to macroexpand in subforms are done in the correct environment
Author : Created : Sun Nov 17 12:37:45 2002 (in-package :cl-test) (deftest loop.13.1 (loop do (return 10)) 10) (deftest loop.13.2 (loop doing (return 10)) 10) (deftest loop.13.3 (loop for i from 0 below 100 by 7 when (> i 50) return i) 56) (deftest loop.13.4 (let ((x 0)) (loop ...
1867cafe348adfc1fca955bd15ed6157fc86a71f9659a2329c3f52f6c0bc46e0
CatalaLang/catala
uid.mli
This file is part of the Catala compiler , a specification language for tax and social benefits computation rules . Copyright ( C ) 2020 , contributor : < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . ...
null
https://raw.githubusercontent.com/CatalaLang/catala/07edff2cd2371581ba0e5664aa32bcf06650bd0e/compiler/catala_utils/uid.mli
ocaml
* Global identifiers factories using a generative functor * The information carried in global identifiers * Equality disregards position * Comparison disregards position * Identifiers have abstract types, but are comparable so they can be used as keys in maps or sets. Their underlying information can be retriev...
This file is part of the Catala compiler , a specification language for tax and social benefits computation rules . Copyright ( C ) 2020 , contributor : < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . ...
5731559d38d2d053a1c64b077df87c0cc511b292746890de8cc88901b1282bc1
ocaml/ocamlbuild
main.ml
(***********************************************************************) (* *) (* ocamlbuild *) (* *) , , projet Galliu...
null
https://raw.githubusercontent.com/ocaml/ocamlbuild/792b7c8abdbc712c98ed7e69469ed354b87e125b/test/test6/main.ml
ocaml
********************************************************************* ocamlbuild ...
, , projet Gallium , INRIA Rocquencourt Copyright 2007 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with A.a 2. +. D.d 1.
61796112953288259905c6951028d49b83db55c31e8993cada86aa77c517b991
andorp/bead
MySQLTestRunner.hs
# LANGUAGE CPP # module Bead.Persistence.SQL.MySQLTestRunner where import Bead.Persistence.Initialization import Bead.Persistence.SQL.Entities (Persist) import Bead.Persistence.SQL.MySQL #ifdef TEST import Data.IORef import System.IO.Unsafe #endif #ifdef TEST runPersist = runInterpreter -- TODO: FIX this dirty hac...
null
https://raw.githubusercontent.com/andorp/bead/280dc9c3d5cfe1b9aac0f2f802c705ae65f02ac2/src/Bead/Persistence/SQL/MySQLTestRunner.hs
haskell
TODO: FIX this dirty hack to instatiate only once the persistent layer >> return undefined
# LANGUAGE CPP # module Bead.Persistence.SQL.MySQLTestRunner where import Bead.Persistence.Initialization import Bead.Persistence.SQL.Entities (Persist) import Bead.Persistence.SQL.MySQL #ifdef TEST import Data.IORef import System.IO.Unsafe #endif #ifdef TEST runPersist = runInterpreter persistRef :: IORef Interpr...
5a31f1bcc2a95ab74ef49be36475f8993aa191b0906090c8d96e865a0395b24b
txkaduo/weixin-mp-sdk
About.hs
module WeiXin.PublicPlatform.About where import ClassyPrelude import Yesod.Helpers.About as A import Data.Version (Version) import Paths_weixin_mp_sdk (version) gitRevision :: String gitRevision = $(A.gitRevision) gitVersion :: String gitVersion = $(A.gitVersion) bu...
null
https://raw.githubusercontent.com/txkaduo/weixin-mp-sdk/77abe31d06ccf266aad358373b9cde34b222b305/WeiXin/PublicPlatform/About.hs
haskell
module WeiXin.PublicPlatform.About where import ClassyPrelude import Yesod.Helpers.About as A import Data.Version (Version) import Paths_weixin_mp_sdk (version) gitRevision :: String gitRevision = $(A.gitRevision) gitVersion :: String gitVersion = $(A.gitVersion) bu...
9d996bfccd7e577fc2ee673a8f3ffbf0cb8e000dd3c52d048ae0ba8de60c7a57
jaredly/reason-language-server
translcore.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/jaredly/reason-language-server/ce1b3f8ddb554b6498c2a83ea9c53a6bdf0b6081/ocaml_typing/407/translcore.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 open Misc open Asttypes open Primitive open Types open Typedtree open Typeopt open Lambda type error = ...
f8a2eea68053e50490083f73cc8a259e6e0f404cc134062381e77bba7b81d25b
may-liu/qtalk
ejabberd_frontend_socket.erl
%%%------------------------------------------------------------------- %%% File : ejabberd_frontend_socket.erl Author : < > Purpose : Frontend socket with zlib and TLS support library Created : 23 Aug 2006 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2014 ProcessOne %%% %%% This program is fre...
null
https://raw.githubusercontent.com/may-liu/qtalk/f5431e5a7123975e9656e7ab239e674ce33713cd/qtalk_opensource/src/ejabberd_frontend_socket.erl
erlang
------------------------------------------------------------------- File : ejabberd_frontend_socket.erl This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; with...
Author : < > Purpose : Frontend socket with zlib and TLS support library Created : 23 Aug 2006 by < > ejabberd , Copyright ( C ) 2002 - 2014 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should h...
5794a287623ade2bf2526ca29735913df06289c3312c4d69446a3e8208cc1d5c
openmusic-project/openmusic
defsys.lisp
-*- Mode : Lisp ; rcs - header : " $ Header : /hope / lwhope1 - cam / hope.0 / compound/61 / LISPopengl / RCS / defsys.lisp , v 1.17.3.1 2014/05/27 20:56:57 davef Exp $ " -*- Copyright ( c ) 1987 - -2015 LispWorks Ltd. All rights reserved . (in-package "USER") (pushnew :use-fli-gl-vector sys::*features*) (defsy...
null
https://raw.githubusercontent.com/openmusic-project/openmusic/9560c064512a1598cd57bcc9f0151c0815178e6f/OPENMUSIC/code/api/externals/OpenGL/opengl-lw/defsys.lisp
lisp
rcs - header : " $ Header : /hope / lwhope1 - cam / hope.0 / compound/61 / LISPopengl / RCS / defsys.lisp , v 1.17.3.1 2014/05/27 20:56:57 davef Exp $ " -*-
Copyright ( c ) 1987 - -2015 LispWorks Ltd. All rights reserved . (in-package "USER") (pushnew :use-fli-gl-vector sys::*features*) (defsystem "OPENGL" (:optimize ((debug 3) (safety 3))) :members ( "pkg" "constants" "types" "vectors" "fns" ("xfn...
3b31a87546170f8311124a1bef9671969d7426f0efa4f258e46ae2c84af4ec59
ocramz/sparse-linear-algebra
Utils.hs
module Data.Sparse.Internal.Vector.Utils where import qualified Data.Vector as V import qualified Data.Vector.Mutable as VM import Control.Monad.ST -- | Given a number of rows(resp. columns) `n` and a _sorted_ Vector of Integers in increasing order (containing the row(col) indices of nonzero entries), return the cu...
null
https://raw.githubusercontent.com/ocramz/sparse-linear-algebra/77f14ebc5c545cb665cdd840149a021f3df07183/vector/src/Data/Sparse/Internal/Vector/Utils.hs
haskell
| Given a number of rows(resp. columns) `n` and a _sorted_ Vector of Integers in increasing order (containing the row(col) indices of nonzero entries), return the cumulative vector of nonzero entries of length `n + 1` (the "row(col) pointer" of the CSR(CSC) format). NB: Fused count-and-accumulate E.g.: [0,0,2,3,4] ...
module Data.Sparse.Internal.Vector.Utils where import qualified Data.Vector as V import qualified Data.Vector.Mutable as VM import Control.Monad.ST > csPtrV (= =) 4 ( V.fromList [ 1,1,2,3 ] ) csPtrV :: (a -> Int -> Bool) -> Int -> V.Vector a -> V.Vector Int csPtrV eqf n xs = V.create createf where createf :: ST...
cdb7df1ea4ddbf8ed5a339767078ed1b9adce3babc146c93733739bc22382cd6
project-oak/hafnium-verification
Cfg.ml
* Copyright ( c ) 2009 - 2013 , Monoidics ltd . * Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) 2009-2013, Monoidics ltd. * Copyright (c) Facebook, In...
null
https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/IR/Cfg.ml
ocaml
* data type for the control flow graph * Inline a synthetic (access or bridge) method. getter for fields getter for static fields setter for fields setter for static fields remove last element
* Copyright ( c ) 2009 - 2013 , Monoidics ltd . * Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) 2009-2013, Monoidics ltd. * Copyright (c) Facebook, In...
586ded3ce6a4888fb67e6961d6676164bb22b70f49f21d347c7af58e72d7bbba
PEZ/rich4clojure
problem_002.clj
(ns rich4clojure.elementary.problem-002 (:require [hyperfiddle.rcf :refer [tests]])) ;; = Simple Math = By 4Clojure user : ;; Difficulty: Elementary ;; ;; If you are not familiar with polish (prefix) notation, ;; simple arithmetic might seem confusing. ;; ;; Note: Enter only enough to fill in the blank (in this...
null
https://raw.githubusercontent.com/PEZ/rich4clojure/3cb504f4c2408b2305e187d948a6841f729fd8c9/src/rich4clojure/elementary/problem_002.clj
clojure
= Simple Math = Difficulty: Elementary If you are not familiar with polish (prefix) notation, simple arithmetic might seem confusing. Note: Enter only enough to fill in the blank (in this case, a single number) - do not retype the whole problem. Share your solution, and/or check how others did it:
(ns rich4clojure.elementary.problem-002 (:require [hyperfiddle.rcf :refer [tests]])) By 4Clojure user : (def __ :tests-will-fail) (comment ) (tests (- 10 (* 2 3)) := __)
04b21d6c32f55afafb4491fe5aead2e33768e51d6916c11b2cf9fc0003ba0c17
wireless-net/erlang-nommu
snmp_note_store.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2011 . 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 Pu...
null
https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/snmp/src/misc/snmp_note_store.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 limit...
Copyright Ericsson AB 1996 - 2011 . 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(snmp_note_store). -behaviour(gen_...
ead42e7206bd36a97750b43a55b6360bfd3b311be8e5e264934145590327aad0
LaurentMazare/ocaml-torch
densenet.ml
DenseNet model for the CIFAR-10 dataset . The dataset can be downloaded from /~kriz/cifar.html , files should be placed in the data/ directory . This reaches 94.2 % accuracy . The dataset can be downloaded from /~kriz/cifar.html, files should be placed in the data/ directory. T...
null
https://raw.githubusercontent.com/LaurentMazare/ocaml-torch/a82b906a22c7c23138af16fab497a08e5167d249/examples/cifar/densenet.ml
ocaml
DenseNet model for the CIFAR-10 dataset . The dataset can be downloaded from /~kriz/cifar.html , files should be placed in the data/ directory . This reaches 94.2 % accuracy . The dataset can be downloaded from /~kriz/cifar.html, files should be placed in the data/ directory. T...
1c04c1eb48840867e3f1f26a86d6f5e772c2b5a01c6655577dc25c1ef5a90772
fukamachi/cl-dbi
postgres.lisp
(defpackage #:dbd.postgres (:use #:cl #:dbi.driver #:dbi.logger #:dbi.error #:dbi.utils #:cl-postgres) (:import-from #:cl-postgres #:connection-socket #:send-parse #:set-sql-datetime-readers) (:import-from #:cl-postgres-error ...
null
https://raw.githubusercontent.com/fukamachi/cl-dbi/325c76dad69a48e9fe2ac68b50f195b00a00c805/src/dbd/postgres.lisp
lisp
To prevent from freeing many query objects at once TODO: lazy fetching Retry if cached prepared statement is not available anymore
(defpackage #:dbd.postgres (:use #:cl #:dbi.driver #:dbi.logger #:dbi.error #:dbi.utils #:cl-postgres) (:import-from #:cl-postgres #:connection-socket #:send-parse #:set-sql-datetime-readers) (:import-from #:cl-postgres-error ...
ecf8e0c68d57043b68ed9f3c8e2b986ea241f92ed71bcc0ac648d51638512bb6
acid-state/acid-state
Local.hs
# LANGUAGE DeriveDataTypeable , BangPatterns , CPP # ----------------------------------------------------------------------------- -- | -- Module : Data.Acid.Local Copyright : PublicDomain -- -- Maintainer : Portability : non - portable ( uses GHC extensions ) -- AcidState container using a transa...
null
https://raw.githubusercontent.com/acid-state/acid-state/60b75c5cb75fdd760c3f2a2c3f0394a620cf2e8c/src/Data/Acid/Local.hs
haskell
--------------------------------------------------------------------------- | Module : Data.Acid.Local Maintainer : | Issue an Update event and return immediately. The event is not durable The behavior in case of exceptions is exactly the same as for 'update'. @ @ It is important that we enc...
# LANGUAGE DeriveDataTypeable , BangPatterns , CPP # Copyright : PublicDomain Portability : non - portable ( uses GHC extensions ) AcidState container using a transaction log on disk . The term \'Event\ ' is loosely used for transactions with ACID guarantees . \'Method\ ' is loosely used for state oper...
81f896749dbb1067dad9b496600737b4f07530839cb57cfa4346ab087824221a
elaforge/karya
PerformTest.hs
Copyright 2013 -- This program is distributed under the terms of the GNU General Public -- License 3.0, see COPYING or -3.0.txt module Perform.Midi.PerformTest where import qualified System.IO as IO import qualified Util.PPrint as PPrint import qualified App.LoadInstruments as LoadInstruments import qualified App...
null
https://raw.githubusercontent.com/elaforge/karya/99194874139230dbb9c4d1918082f5a65d2a4d90/Perform/Midi/PerformTest.hs
haskell
This program is distributed under the terms of the GNU General Public License 3.0, see COPYING or -3.0.txt | Dump perform events to a Readable format so they can be pasted into * extract
Copyright 2013 module Perform.Midi.PerformTest where import qualified System.IO as IO import qualified Util.PPrint as PPrint import qualified App.LoadInstruments as LoadInstruments import qualified App.Path as Path import qualified Cmd.Cmd as Cmd import qualified Cmd.Simple as Simple import qualified Derive.Deriv...
2ff391ae8530516374df88148f261e10aae0ccbda8994341c40cdde84fe7c396
leksah/leksah
Keymap.hs
-- | Module for handling keymaps , -- | deals with gtk accelerators and double (emacs-like) keystrokes -- module IDE.Keymap ( Keymap(..) ) where import Control.Monad (void, foldM) import qualified Data.Map as Map import Text.ParserCombinators.Parsec import qualified Text.ParserCombinators.Parsec.Token as P impo...
null
https://raw.githubusercontent.com/leksah/leksah/ec95f33af27fea09cba140d7cddd010935a2cf52/src/IDE/Keymap.hs
haskell
| deals with gtk accelerators and double (emacs-like) keystrokes | Loads and parses a keymap file | Sets the accelerators is the action descriptions from the keymap | Builds a special keymap for handling double keystroke accelerators Unfortunately in the IO Monad because of keyvalFromName ----------------...
| Module for handling keymaps , module IDE.Keymap ( Keymap(..) ) where import Control.Monad (void, foldM) import qualified Data.Map as Map import Text.ParserCombinators.Parsec import qualified Text.ParserCombinators.Parsec.Token as P import Text.ParserCombinators.Parsec.Language(emptyDef) import Data.List (fold...
413bc7f9f9e00a008271e6b88dcab73c92fb27ae344e4958a773b954e13681cf
facebook/pyre-check
start.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/pyre-check/8b7feecbcc46939f580c5299233874047cd34a14/source/server/start.ml
ocaml
TODO(T132410158) Add a module-level doc comment. Keep track of the subscriptions created from each connection, so when it is closed we could remove those subscriptions from the server state automatically. Raw request messages are processed line-by-line. HACK(grievejia): Bypass the lock here because we do no...
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
48cbb9b3b9ee739c2d605a45e86b3f935ad0ac195beb4cb19a52c121f708d02b
runtimeverification/haskell-backend
Symbols.hs
module Test.Kore.Rewrite.SMT.Representation.Symbols ( test_symbolParsing, ) where import Kore.Attribute.Symbol qualified as Attribute ( Symbol, ) import Kore.Builtin.Int qualified as Int import Kore.Debug import Kore.IndexedModule.IndexedModule ( VerifiedModule, ) import Kore.Rewrite.SMT.AST qualified as...
null
https://raw.githubusercontent.com/runtimeverification/haskell-backend/b06757e252ee01fdd5ab8f07de2910711997d845/kore/test/Test/Kore/Rewrite/SMT/Representation/Symbols.hs
haskell
module Test.Kore.Rewrite.SMT.Representation.Symbols ( test_symbolParsing, ) where import Kore.Attribute.Symbol qualified as Attribute ( Symbol, ) import Kore.Builtin.Int qualified as Int import Kore.Debug import Kore.IndexedModule.IndexedModule ( VerifiedModule, ) import Kore.Rewrite.SMT.AST qualified as...
7e274d9aefc5db73d5b2cd718fcf198deede09ff7d00483a073460419f5e7704
mihneadb/cljs-webapp
project.clj
(defproject cljs-webapp/lein-template "0.1.9" :description "Lein template for cljs webapp." :url "-webapp" :license {:name "Eclipse Public License" :url "-v10.html"} :eval-in-leiningen true)
null
https://raw.githubusercontent.com/mihneadb/cljs-webapp/a7602526c0536e2d8c27f5d8cab3e27171aae2b8/project.clj
clojure
(defproject cljs-webapp/lein-template "0.1.9" :description "Lein template for cljs webapp." :url "-webapp" :license {:name "Eclipse Public License" :url "-v10.html"} :eval-in-leiningen true)
16ea2bfdb8b0d4fba2c1730802e70738f4fd66283be102dabd9eaaf76596e72b
qiao/sicp-solutions
4.23.scm
;; (begin ;; <exp1> < exp2 > ;; <exp3>) ;; 's procedure will produce ;; ;; (execute-sequence '(<proc1> <proc2> <proc3>) env) ;; ;; The text's procedure will produce ;; ;; (lambda (env) ;; ((lambda (env) ;; (<proc1> env) ;; (<proc2> env)) ;; env) ;; (<proc3> env)...
null
https://raw.githubusercontent.com/qiao/sicp-solutions/a2fe069ba6909710a0867bdb705b2e58b2a281af/chapter4/4.23.scm
scheme
(begin <exp1> <exp3>) (execute-sequence '(<proc1> <proc2> <proc3>) env) The text's procedure will produce (lambda (env) ((lambda (env) (<proc1> env) (<proc2> env)) env) (<proc3> env))
< exp2 > 's procedure will produce
a65955ebdbd5042eaad492d123e98861249788971b9fdcb3b2208df7f5dac8fc
nathell/smyrna
document_table.cljs
(ns smyrna.document-table (:require [clojure.walk :refer [postwalk]] [clojure.string :as string] [reagent.core :as reagent :refer [atom]] [re-frame.core :as re-frame :refer [reg-event-db reg-event-fx reg-sub dispatch dispatch-sync subscribe]] [smyrna.api :as api] ...
null
https://raw.githubusercontent.com/nathell/smyrna/7ceb648d9ab9dfcf95f3197af27191b15a96d0e7/src/cljs/smyrna/document_table.cljs
clojure
(ns smyrna.document-table (:require [clojure.walk :refer [postwalk]] [clojure.string :as string] [reagent.core :as reagent :refer [atom]] [re-frame.core :as re-frame :refer [reg-event-db reg-event-fx reg-sub dispatch dispatch-sync subscribe]] [smyrna.api :as api] ...
d839d8e8344a0cbcf61ba18345e560ebd4f6bbc4ecbed39fdfdb80241ecada73
haskell/unix
ResourceLimit.hs
module Main where import System.Posix import Test.Tasty.HUnit main :: IO () main = do let soft = 5 hard = 10 setResourceLimit ResourceCPUTime (ResourceLimits (ResourceLimit soft) (ResourceLimit hard)) r <- getResourceLimit ResourceCPUTime soft @?= case softLimit r of ResourceLimit l -> l ...
null
https://raw.githubusercontent.com/haskell/unix/89b0f54421d2b0b334783301f3236e120406c4da/tests/ResourceLimit.hs
haskell
module Main where import System.Posix import Test.Tasty.HUnit main :: IO () main = do let soft = 5 hard = 10 setResourceLimit ResourceCPUTime (ResourceLimits (ResourceLimit soft) (ResourceLimit hard)) r <- getResourceLimit ResourceCPUTime soft @?= case softLimit r of ResourceLimit l -> l ...
996416e9650be52ed4bf8fc41b89b380d0545584c01decacd340ee70a2a18948
threatgrid/ctia
malware_test.clj
(ns ctia.http.routes.graphql.malware-test (:require [clj-momo.test-helpers.core :as mth] [clojure.test :refer [deftest is join-fixtures testing use-fixtures]] [ctia.test-helpers [auth :refer [all-capabilities]] [core :as helpers] [fake-whoami-service :as ...
null
https://raw.githubusercontent.com/threatgrid/ctia/32857663cdd7ac385161103dbafa8dc4f98febf0/test/ctia/http/routes/graphql/malware_test.clj
clojure
(ns ctia.http.routes.graphql.malware-test (:require [clj-momo.test-helpers.core :as mth] [clojure.test :refer [deftest is join-fixtures testing use-fixtures]] [ctia.test-helpers [auth :refer [all-capabilities]] [core :as helpers] [fake-whoami-service :as ...
731dc6dd66af5def4be5dab56a918a39ff9d1192505227a2730ad61538cc51be
discus-lang/ddc
Lexer.hs
module DDC.Core.Simplifier.Lexer ( Tok(..) , lexSimplifier) where import DDC.Data.SourcePos import Data.Char lexSimplifier :: (String -> Maybe n) -- ^ Function to read a name. -> String -- ^ String to parse. -> [Located (Tok n)] lexSimplifier readName str = m...
null
https://raw.githubusercontent.com/discus-lang/ddc/2baa1b4e2d43b6b02135257677671a83cb7384ac/src/s1/ddc-core/DDC/Core/Simplifier/Lexer.hs
haskell
^ Function to read a name. ^ String to parse. -------------------------------------------------------------------- | Lex a transform specification. ^ Function to read a name. ^ String to parse. | Tokens for transform specification.
module DDC.Core.Simplifier.Lexer ( Tok(..) , lexSimplifier) where import DDC.Data.SourcePos import Data.Char lexSimplifier -> [Located (Tok n)] lexSimplifier readName str = map (\t -> Located (SourcePos "<simplifier spec>" 0 0) t) $ lexer readName str -> [Tok n] lexer readName...
323de20d8f3acd3894cb798bbc5afa37d1fa15b18888b17f8b7ff3ec5c29bda1
LaurentMazare/ocaml-minipy
value.mli
open Base open Ast module Class_id : sig type t val create : unit -> t val equal : t -> t -> bool end module Type_ : sig type t = | None_t | Bool | Int | Float | Tuple | Dict | List | Str | Builtin_fn | Function | Object | Class [@@deriving sexp] end type 'a...
null
https://raw.githubusercontent.com/LaurentMazare/ocaml-minipy/e83d4bfad55819a27195109d401437faa0f65f69/src/value.mli
ocaml
open Base open Ast module Class_id : sig type t val create : unit -> t val equal : t -> t -> bool end module Type_ : sig type t = | None_t | Bool | Int | Float | Tuple | Dict | List | Str | Builtin_fn | Function | Object | Class [@@deriving sexp] end type 'a...
3ffef653b3529ab1fc4012aa57032a2a80cb44d53fc2c80b98adde233fe4c471
scrintal/heroicons-reagent
presentation_chart_bar.cljs
(ns com.scrintal.heroicons.solid.presentation-chart-bar) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M2.25 2.25a.75.75 0 000 1.5H3v10.5a3 3 0 003 3h1.21l-1.172 3.513a.7...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/solid/presentation_chart_bar.cljs
clojure
(ns com.scrintal.heroicons.solid.presentation-chart-bar) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M2.25 2.25a.75.75 0 000 1.5H3v10.5a3 3 0 003 3h1.21l-1.172 3.513a.7...
139fae3cc1b05706c9b170e4cf952b3015977cf11193b5c8b34d7f40e50840e6
kseo/fp
Function.hs
module FP.Function where import Data.List (transpose) import FP.Value tl :: Object -> Object tl (SequenceObject [_]) = emptySeq tl (SequenceObject (_:os)) = SequenceObject os tl _ = Bottom tlr :: Object -> Object tlr (SequenceObject [_]) = emptySeq tlr (SequenceObject os) = SequenceObject $ init os tlr _ = Bottom a...
null
https://raw.githubusercontent.com/kseo/fp/320af9c4c6048442a09c31399f8a00a1a7a3513f/src/FP/Function.hs
haskell
module FP.Function where import Data.List (transpose) import FP.Value tl :: Object -> Object tl (SequenceObject [_]) = emptySeq tl (SequenceObject (_:os)) = SequenceObject os tl _ = Bottom tlr :: Object -> Object tlr (SequenceObject [_]) = emptySeq tlr (SequenceObject os) = SequenceObject $ init os tlr _ = Bottom a...
ba747f7d7cda86fa6733fb765a40f5bd28120c3544345f06da3bde29336e69b1
parsonsmatt/lambda
Core.hs
module Lambda.Core where -- | The data type LambdaF is parameterized over the type of variables and the -- type of data LambdaF v x = Var v | App x x | Abs v x deriving (Eq, Show) newtype Variable = Variable String deriving (Eq, Show) data Untyped newtype Fix f = Wrap { unwrap :: f (Fix f) } ty...
null
https://raw.githubusercontent.com/parsonsmatt/lambda/86f664ae789f894800c92aeef872cb8f72a61bd7/src/Lambda/Core.hs
haskell
| The data type LambdaF is parameterized over the type of variables and the type of
module Lambda.Core where data LambdaF v x = Var v | App x x | Abs v x deriving (Eq, Show) newtype Variable = Variable String deriving (Eq, Show) data Untyped newtype Fix f = Wrap { unwrap :: f (Fix f) } type Lambda = Fix (LambdaF Variable) var :: String -> Lambda var = Wrap . Var . Variable (...
a0176af9c5798ed03bfdc8f8d8e8ea8d6d37845118ad3573f40855d46e06799e
GlideAngle/flare-timing
Double.hs
module Internal.Flat.Cylinder.Double (circumSample) where import Data.Functor.Identity (runIdentity) import Control.Monad.Except (runExceptT) import Data.UnitsOfMeasure (u, convert) import Data.UnitsOfMeasure.Internal (Quantity(..)) import qualified UTMRef as HC (UTMRef(..), toLatLng) import qualified LatLng as HC (La...
null
https://raw.githubusercontent.com/GlideAngle/flare-timing/27bd34c1943496987382091441a1c2516c169263/lang-haskell/earth/library/Internal/Flat/Cylinder/Double.hs
haskell
| (-1.0063254069690941°, -4.601156388384097e-4°) | Right ((0°,177°),((500000.0,0.0),('N',60))) Right ((0°,179°59'40.01582844998438''),((833360.0,0.0),('N',60))) Right ((0°,180°0'1.4317625561943714e-2''),((833979.0,0.0),('N',60))) Right ((0°,177°),((500000.0,0.0),('N',60))) Right ((0.032570'',177°),((...
module Internal.Flat.Cylinder.Double (circumSample) where import Data.Functor.Identity (runIdentity) import Control.Monad.Except (runExceptT) import Data.UnitsOfMeasure (u, convert) import Data.UnitsOfMeasure.Internal (Quantity(..)) import qualified UTMRef as HC (UTMRef(..), toLatLng) import qualified LatLng as HC (La...
c2d8a488d33da82b5a375c19dae6d94453f500765778cce35e2007a339a5c803
philopon/apiary
TH.hs
# LANGUAGE TemplateHaskell # module Web.Apiary.TH(key) where import Data.Apiary.SProxy(SProxy(..)) import Language.Haskell.TH.Quote (QuasiQuoter(..)) import qualified Language.Haskell.TH as TH -- | construct string literal proxy. -- prop > [ ] = = ( Proxy : : Proxy " foo " ) -- key :: QuasiQuoter key = QuasiQuoter...
null
https://raw.githubusercontent.com/philopon/apiary/7da306fcbfcdec85d073746968298de4540d7235/src/Web/Apiary/TH.hs
haskell
| construct string literal proxy.
# LANGUAGE TemplateHaskell # module Web.Apiary.TH(key) where import Data.Apiary.SProxy(SProxy(..)) import Language.Haskell.TH.Quote (QuasiQuoter(..)) import qualified Language.Haskell.TH as TH prop > [ ] = = ( Proxy : : Proxy " foo " ) key :: QuasiQuoter key = QuasiQuoter { quoteExp = \s -> [| SProxy :: SProx...
2cc463af92b3d7941053ef9d39e55b95e7dfd5e5759fc70fecc1c91f97108986
coccinelle/coccinelle
ast_cocci.mli
* This file is part of Coccinelle , licensed under the terms of the GPL v2 . * See copyright.txt in the Coccinelle source code for more information . * The Coccinelle source code can be obtained at * This file is part of Coccinelle, licensed under the terms of the GPL v2. * See copyright.txt in the Cocci...
null
https://raw.githubusercontent.com/coccinelle/coccinelle/2d0014efa4c67f4c3b4687cbcddef7456bad9aac/parsing_cocci/ast_cocci.mli
ocaml
--------------------------------------------------------------------- Modified code line col line col filename line free vars minus free vars fresh vars inherited vars witness vars pos info, try not to duplicate the following is only for declarations isos relevant to the term; ultimately only used ...
* This file is part of Coccinelle , licensed under the terms of the GPL v2 . * See copyright.txt in the Coccinelle source code for more information . * The Coccinelle source code can be obtained at * This file is part of Coccinelle, licensed under the terms of the GPL v2. * See copyright.txt in the Cocci...
fcafb9554b7a0844793d247e6f615c09574c1fa5300a85a3d993badd2d8784f0
ktakashi/sagittarius-scheme
gmac.scm
(include "./gmac/gmac_test.scm")
null
https://raw.githubusercontent.com/ktakashi/sagittarius-scheme/1ef9a2177a6e899381a441a8bbfdc09f0da38c1b/ext/crypto/tests/testvectors/gmac.scm
scheme
(include "./gmac/gmac_test.scm")
b10d282e8093152cbbe175385eb33844ba56bc20de70874fae3176b158fef4c7
mikera/clojure-utils
test_logic.clj
(ns mikera.cljutils.test-logic (:use clojure.test) (:use [mikera.cljutils logic])) (deftest test-xor (testing "XOR" (is (xor 1 nil)) (is (xor 1 nil 1 1)) (is (xor 1)) (is (not (xor))) (is (not (xor true false false true false false true true))))) (deftest test-nand (testing "NAND" (is ...
null
https://raw.githubusercontent.com/mikera/clojure-utils/92f7fd7a40c9cf22ab7004a304303e45ea4d4284/src/test/clojure/mikera/cljutils/test_logic.clj
clojure
(ns mikera.cljutils.test-logic (:use clojure.test) (:use [mikera.cljutils logic])) (deftest test-xor (testing "XOR" (is (xor 1 nil)) (is (xor 1 nil 1 1)) (is (xor 1)) (is (not (xor))) (is (not (xor true false false true false false true true))))) (deftest test-nand (testing "NAND" (is ...
24b8c03d16b21356a8dceaf0cbf81407550e683d60259630fe4d1eaac143e722
nebogeo/weavingcodes
sketch.scm
#lang racket ; thinking more like a loom (define (dbg a) (display a)(newline) a) (define (repeat seq rep) (cond ((zero? rep) seq) (else (append seq (repeat seq (- rep 1)))))) (define heddles list) (define lifts list) (define heddle list) (define lift list) (define warp list) (define (loom heddles lifts...
null
https://raw.githubusercontent.com/nebogeo/weavingcodes/e305a28a38ef745ca31de3074c8aec3953a72aa2/dyadic/sketch.scm
scheme
thinking more like a loom given a lift plan line, return the heddles raised
#lang racket (define (dbg a) (display a)(newline) a) (define (repeat seq rep) (cond ((zero? rep) seq) (else (append seq (repeat seq (- rep 1)))))) (define heddles list) (define lifts list) (define heddle list) (define lift list) (define warp list) (define (loom heddles lifts warp) (list heddles lifts w...
1e3006b031084a1a6d5b5af97a93da5f3ce2cdbd7d7393e38fb71b47575c6961
johnwhitington/ocamli
foo.ml
let v = [%compiletime "int_of_string (input_line stdin)"]
null
https://raw.githubusercontent.com/johnwhitington/ocamli/28da5d87478a51583a6cb792bf3a8ee44b990e9f/ppx_eval/foo.ml
ocaml
let v = [%compiletime "int_of_string (input_line stdin)"]
01c442e96f14fa9c10b17ae15419922c46dee4209efdfe67c7b236535dafa560
douglastofoli/dotfiles
Workspaces.hs
module XMonad.Custom.Workspaces where import qualified Data.Map as M import Data.Maybe myWorkspaces :: [String] myWorkspaces = [" www ", " dev ", " sys ", " chat ", " disc ", " mus ", " vbox ", " vid ", " gfx "] myWorkspaceIndices = M.fromList $ zipWith (,) myWorkspaces [1..] -- (,) == \x y -> (x,y) clickable ws = ...
null
https://raw.githubusercontent.com/douglastofoli/dotfiles/acbe7ec3498d66fbed974a50b780c1c174b9920f/config/xmonad/src/XMonad/Custom/Workspaces.hs
haskell
(,) == \x y -> (x,y)
module XMonad.Custom.Workspaces where import qualified Data.Map as M import Data.Maybe myWorkspaces :: [String] myWorkspaces = [" www ", " dev ", " sys ", " chat ", " disc ", " mus ", " vbox ", " vid ", " gfx "] clickable ws = "<action=xdotool key super+"++show i++">"++ws++"</action>" where i = fromJust $ M.loo...
0c3cae9888a11e44900f57b32f04ffea130bf6a981d5c5b49b5cb756028aff06
iu-parfunc/haskell_dsl_tour
L39ExposeBasicBlocks.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE StandaloneDeriving # module FrameworkHs.GenGrammars.L39ExposeBasicBlocks where import FrameworkHs.Prims import FrameworkHs.Helpers import Text.PrettyPrint.HughesPJ (text) import Blaze.ByteString.Builder (fromByteString) data Tail = Begin [Effect] Tail | App Triv |...
null
https://raw.githubusercontent.com/iu-parfunc/haskell_dsl_tour/f75a7e492a1e5d219a77fb128f70441d54a706eb/middle_end/nanopass/course_example/FrameworkHs/GenGrammars/L39ExposeBasicBlocks.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE StandaloneDeriving # module FrameworkHs.GenGrammars.L39ExposeBasicBlocks where import FrameworkHs.Prims import FrameworkHs.Helpers import Text.PrettyPrint.HughesPJ (text) import Blaze.ByteString.Builder (fromByteString) data Tail = Begin [Effect] Tail | App Triv | If Relop Triv Triv Label Label dat...
8feccffd5ec03cf56122c09b2cde02289372f8eaf5d7afa1eddae582f66846d9
facebookarchive/pfff
phpmanual_xml.ml
* * Copyright ( C ) 2010 Facebook * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file licens...
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/lang_php/analyze/tools/phpmanual_xml.ml
ocaml
*************************************************************************** Prelude *************************************************************************** *************************************************************************** Helpers ************************************************************************...
* * Copyright ( C ) 2010 Facebook * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file licens...
8a9a221711d6ce868635ce35e46b08d5283f9518d4172b5304d02bf1194d9fcb
cgohla/pureshell
Props.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE ExplicitNamespaces # {-# LANGUAGE GADTs #-} {-# LANGUAGE KindSignatures #-} # LANGUAGE PolyKinds # # LANGUAGE StandaloneDeriving # {-# LANGUAGE TypeOperators #-} module Data.Vec.Props where import Data.Singletons (Sing) imp...
null
https://raw.githubusercontent.com/cgohla/pureshell/ddaa9956dd4eb04a68eee39ae65395aaeeeb0b50/pureshell/Data/Vec/Props.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE GADTs # # LANGUAGE KindSignatures # # LANGUAGE TypeOperators # constructors, and hence no singletons. idem
# LANGUAGE ExplicitNamespaces # # LANGUAGE PolyKinds # # LANGUAGE StandaloneDeriving # module Data.Vec.Props where import Data.Singletons (Sing) import Data.Singletons.Decide (type (:~:)) import Data.Permutation import Data.Vec import qualified Data.Vec.Permut...
f44cb23800fd0dd4a53c252fc53b55bc789a4cad9d23a03e1f598c44e6642ddd
gebi/jungerl
wumpus.erl
%%% BEGIN wumpus.erl %%% %%% wumpus - Erlang Wumpus Copyright ( c)2002 Cat 's Eye Technologies . 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 ...
null
https://raw.githubusercontent.com/gebi/jungerl/8f5c102295dbe903f47d79fd64714b7de17026ec/lib/wumpus/src/wumpus.erl
erlang
BEGIN wumpus.erl %%% 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. Redistribution...
wumpus - Erlang Wumpus Copyright ( c)2002 Cat 's Eye Technologies . All rights reserved . Neither the name of Cat 's Eye Technologies nor the names of its CONTRIBUTORS ` ` AS IS '' AND ANY EXPRESS OR IMPLIED WARRANTIES , DISCLAIMED . IN NO EVENT SHALL THE REGENTS OR LIABLE FOR ANY DIRECT , INDIRECT , ...
bfe0478df097714f0271244930dd40480fb20eb1803f5d2f5b251ad36f733e66
crategus/cl-cffi-gtk
gtk.tree-model-filter.lisp
;;; ---------------------------------------------------------------------------- gtk.tree-model-filter.lisp ;;; The documentation of this file is taken from the GTK+ 3 Reference Manual Version 3.24 and modified to document the Lisp binding to the GTK library . ;;; See <>. The API documentation of the Lisp binding...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/ba198f7d29cb06de1e8965e1b8a78522d5430516/gtk/gtk.tree-model-filter.lisp
lisp
---------------------------------------------------------------------------- See <>. The API documentation of the Lisp binding is This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License for Lisp License, or (at your option) any later versi...
gtk.tree-model-filter.lisp The documentation of this file is taken from the GTK+ 3 Reference Manual Version 3.24 and modified to document the Lisp binding to the GTK library . available from < -cffi-gtk/ > . Copyright ( C ) 2009 - 2011 Copyright ( C ) 2011 - 2021 as published by the Free Software Foun...
60a819e99fedb81b133162ecc5c4eae2479bfeb8c00614e4fa0fb9305d6847a9
clj-commons/gloss
core.clj
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/clj-commons/gloss/59d95265e82e42eb2666d2269226a2b2893c515b/src/gloss/core.clj
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 . (ns gloss.core (:use [gloss.core.protocols :exclude [sizeof]]) (:require [gloss.core.formats :refer [to-byte-buffer to-buf-seq string-to-byte-buffer]] [gloss.core.protocols :as protocols] [gloss.data.bytes :as bytes] [gloss.data.primitives :refer :a...
fd447824a229247365e7af709b687fe06e2077c80a7b0fbb1cd01ae6fdb5c0cd
jamesmacaulay/shopify-clj
server.clj
(ns shop-launchpad.server (:use [ring.middleware.resource :only [wrap-resource]] [ring.middleware.reload-modified :only [wrap-reload-modified]] [cemerick.friend :only [authenticate]] [shop-launchpad.routes :only [app-routes]] [shop-launchpad.shopify :only [api-client]]) (:require com...
null
https://raw.githubusercontent.com/jamesmacaulay/shopify-clj/dcac775d260e4a7f4d54e0fd2aa84f74c864e338/examples/shop-launchpad/src/shop_launchpad/server.clj
clojure
(ns shop-launchpad.server (:use [ring.middleware.resource :only [wrap-resource]] [ring.middleware.reload-modified :only [wrap-reload-modified]] [cemerick.friend :only [authenticate]] [shop-launchpad.routes :only [app-routes]] [shop-launchpad.shopify :only [api-client]]) (:require com...
ad79f807d6d95064df2c19ddff0992aa5a22155006bec986b91e3c0025d20868
xxyzz/SICP
Exercise_2_91.rkt
#lang racket/base (define table (make-hash)) (define (put op type item) (hash-set! table (list op type) item)) (define (get op type) (hash-ref! table (list op type) null)) (define (attach-tag type-tag contents) (cond [(and (eq? type-tag 'scheme-number) (number? contents)) contents] ...
null
https://raw.githubusercontent.com/xxyzz/SICP/e26aea1c58fd896297dbf5406f7fcd32bb4f8f78/2_Building_Abstractions_with_Data/2.5_Systems_with_Generic_Operations/Exercise_2_91.rkt
racket
internal procedures representation of poly representation of terms and term lists interface to rest of the system long division: x^3 + x ----------- | x^5 - x^3 ------------ x^3 - 1 -------
#lang racket/base (define table (make-hash)) (define (put op type item) (hash-set! table (list op type) item)) (define (get op type) (hash-ref! table (list op type) null)) (define (attach-tag type-tag contents) (cond [(and (eq? type-tag 'scheme-number) (number? contents)) contents] ...
051bc9e2db5c50cc85b93f976b4e39aa80e716cbd094b626e8de1605d7fda27f
clarle/ai-class
graphs.clj
(ns unit02.graphs) ------------------------------------------------------------ ; ; A graph is a map of label -> node. ; Each node has a label and a list of connections. ; Each connection is a map of label -> cost. ; ; Connections between nodes are undirected, and the cost is the same in both ; directions. (def...
null
https://raw.githubusercontent.com/clarle/ai-class/44ca6d34380942600fb3a61a09e6a2dc4a4841c1/unit02/clojure/unit02/src/unit02/graphs.clj
clojure
A graph is a map of label -> node. Each node has a label and a list of connections. Each connection is a map of label -> cost. Connections between nodes are undirected, and the cost is the same in both directions. Searches -------------------------------------------------------------------- Sample Graph ------...
(ns unit02.graphs) ------------------------------------------------------------ (defrecord Node [label connections]) (defn make-graph [labels connections] (let [graph (zipmap labels (map #(Node. %1 %2) labels (cycle [{}])))] (loop [graph graph connections connections] (if (empty? connect...
30763c1de3aaf11701faa7d7a969006a2dde24bd6b6e5289e0ba2379521a2910
amnh/poy5
matrix.ml
POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies . Copyright ( C ) 2014 , , , Ward Wheeler , and the American Museum of Natural History . (* *) (* This program is free softwa...
null
https://raw.githubusercontent.com/amnh/poy5/da563a2339d3fa9c0110ae86cc35fad576f728ab/src/matrix.ml
ocaml
This program is free software; you can redistribute it and/or modify (at your option) any later version. This progra...
POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies . Copyright ( C ) 2014 , , , Ward Wheeler , and the American Museum of Natural History . it under the terms of the GNU General Public License as published by the Free Software Foundation ; ...