_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 |
|---|---|---|---|---|---|---|---|---|
d5f4809d31346ba186c9a6fd9c7d51a4e34821abd4e2e2fc301c8f80c74edc57 | j-mie6/ParsleyHaskell | BenchmarkUtils.hs | {-# LANGUAGE TypeFamilies
, FlexibleContexts #-}
module Shared.BenchmarkUtils where
import Gauge.Main (Benchmark, bgroup, bench, nf, defaultMainWith, env)
import Gauge.Main.Options (Config(displayMode), defaultConfig, DisplayMode(Condensed))
import Control.DeepSeq (NFData)
import Cont... | null | https://raw.githubusercontent.com/j-mie6/ParsleyHaskell/045ab78ed7af0cbb52cf8b42b6aeef5dd7f91ab2/parsley/benchmarks/Shared/BenchmarkUtils.hs | haskell | # LANGUAGE TypeFamilies
, FlexibleContexts # | module Shared.BenchmarkUtils where
import Gauge.Main (Benchmark, bgroup, bench, nf, defaultMainWith, env)
import Gauge.Main.Options (Config(displayMode), defaultConfig, DisplayMode(Condensed))
import Control.DeepSeq (NFData)
import Control.Monad.Identity (Identity)
import Data.Text ... |
385b3817d8292f6a3701a7db2be8816c18ec1a4c84271e61e0219b875bba932a | iamaleksey/oserl | smpp_tty_log_hlr.erl | Copyright ( C ) 2009 ,
%%% All rights reserved.
%%%
%%% Redistribution and use in source and binary forms, with or without
%%% modification, are permitted provided that the following conditions are met:
%%%
%%% o Redistributions of source code must retain the above copyright notice,
%%% this list of conditions ... | null | https://raw.githubusercontent.com/iamaleksey/oserl/b254c68225b98384738c7a7ff9ddb53caa35c075/src/smpp_tty_log_hlr.erl | erlang | All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
o Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
o Redistributions ... | Copyright ( C ) 2009 ,
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS "
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY ,... |
c14cc6001ed51890dd56903d841cfee46e63bcb0bc7e15dadbf6669e65b3c5e6 | coq/coq | names.ml | (************************************************************************)
(* * The Coq Proof Assistant / The Coq Development Team *)
v * Copyright INRIA , CNRS and contributors
< O _ _ _ , , * ( see version control and CREDITS file for authors & dates )
\VV/ * * *... | null | https://raw.githubusercontent.com/coq/coq/29e1b3766875e0ba33a00f8ea42b85cb361609f5/kernel/names.ml | ocaml | **********************************************************************
* The Coq Proof Assistant / The Coq Development Team
// * This file is distributed under the terms of the
* (see LICENSE file for the text of the license)
************************************... | v * Copyright INRIA , CNRS and contributors
< O _ _ _ , , * ( see version control and CREDITS file for authors & dates )
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* GNU Lesser Gener... |
852e65fe4a94fe4fd0f54bbcac6003d479cf5fa2c52c7d300046f9bc6222c0f0 | Helium4Haskell/helium | Daan.hs | module Daan where
main :: Int
main = let f x = f (const x 1) in f 0
| null | https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/knowntofix/Daan.hs | haskell | module Daan where
main :: Int
main = let f x = f (const x 1) in f 0
| |
4bf48c40fed7bc843e9e78a2e16ff27bdd6513789e6f5b17502386fca00599ec | BinaryAnalysisPlatform/bap | bap_bil.ml | open Core_kernel[@@warning "-D"]
open Regular.Std
open Bap_common_types
type var = Bap_var.t
[@@deriving bin_io, compare, sexp]
(** Different forms of casting *)
module Cast = struct
type cast =
| UNSIGNED (** 0-padding widening cast. *)
| SIGNED (** Sign-extending widening cast. *)
* cast . Keeps the hi... | null | https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/cbdf732d46c8e38df79d9942fc49bcb97915c657/lib/bap_types/bap_bil.ml | ocaml | * Different forms of casting
* 0-padding widening cast.
* Sign-extending widening cast.
* Narrowing cast. Keeps the low bits.
* Binary operations implemented in the IR
* Integer addition. (commutative, associative)
* Integer multiplication. (commutative, associative)
* Unsigned integer division.
* Signed intege... | open Core_kernel[@@warning "-D"]
open Regular.Std
open Bap_common_types
type var = Bap_var.t
[@@deriving bin_io, compare, sexp]
module Cast = struct
type cast =
* cast . Keeps the high bits .
[@@deriving bin_io, compare, sexp]
end
type cast = Cast.cast
[@@deriving bin_io, compare, sexp]
module Binop = struct
... |
4c17aff798861b0faf31a4a446b6e58709786d7269bf171ff1a7badfe7992634 | zotonic/zotonic | z_props_tests.erl | -module(z_props_tests).
-include_lib("eunit/include/eunit.hrl").
-include("../include/zotonic.hrl").
props_test() ->
{ok, Ps} = z_props:from_qs([
{<<"dt:y:0:publication_start">>, <<"2008">>},
{<<"dt:m:0:publication_start">>, <<"12">>},
{<<"dt:d:0:publication_start">>, <<"10">>},
{<... | null | https://raw.githubusercontent.com/zotonic/zotonic/852f627c28adf6e5212e8ad5383d4af3a2f25e3f/apps/zotonic_core/test/z_props_tests.erl | erlang | -module(z_props_tests).
-include_lib("eunit/include/eunit.hrl").
-include("../include/zotonic.hrl").
props_test() ->
{ok, Ps} = z_props:from_qs([
{<<"dt:y:0:publication_start">>, <<"2008">>},
{<<"dt:m:0:publication_start">>, <<"12">>},
{<<"dt:d:0:publication_start">>, <<"10">>},
{<... | |
cea729d2e262df4da49af7f76ae1c2312b8534374b293251b8e3bea431f07b95 | zkincaid/duet | interproc.ml | open Core
open CfgIr
open Srk
module Seq = struct
module V = struct
include Def
type atom = t
type block = Varinfo.t
type ('a,'b) typ = ('a,'b) RecGraph.seq_typ
let classify v = match v.dkind with
| Call (None, AddrOf (Variable (func, OffsetNone)), []) ->
`Block func
| Call (_... | null | https://raw.githubusercontent.com/zkincaid/duet/eb3dbfe6c51d5e1a11cb39ab8f70584aaaa309f9/duet/interproc.ml | ocaml | open Core
open CfgIr
open Srk
module Seq = struct
module V = struct
include Def
type atom = t
type block = Varinfo.t
type ('a,'b) typ = ('a,'b) RecGraph.seq_typ
let classify v = match v.dkind with
| Call (None, AddrOf (Variable (func, OffsetNone)), []) ->
`Block func
| Call (_... | |
a9d42d41c153bb002eadbc62f8b3c9d6de9dbebb1fd6351a57917fd7fdaef3bd | finnishtransportagency/harja | vikahaku_test.clj | (ns harja.palvelin.integraatiot.reimari.vikahaku-test
(:require [harja.palvelin.integraatiot.reimari.vikahaku :as sut]
[harja.palvelin.integraatiot.reimari.reimari-komponentti :as reimari-komponentti]
[harja.domain.vesivaylat.vikailmoitus :as vv-vikailmoitus]
[harja.testi :as ht]
... | null | https://raw.githubusercontent.com/finnishtransportagency/harja/344c9b422236b6b8e4eb946d34fd15e2a16ca3fe/test/clj/harja/palvelin/integraatiot/reimari/vikahaku_test.clj | clojure | (ns harja.palvelin.integraatiot.reimari.vikahaku-test
(:require [harja.palvelin.integraatiot.reimari.vikahaku :as sut]
[harja.palvelin.integraatiot.reimari.reimari-komponentti :as reimari-komponentti]
[harja.domain.vesivaylat.vikailmoitus :as vv-vikailmoitus]
[harja.testi :as ht]
... | |
e198c78808cfb4f0c531854e1b32817c853e1deee8a5022f071cc70fcde88cad | ghollisjr/cl-ana | package.lisp | cl - ana is a Common Lisp data analysis library .
Copyright 2013 , 2014
;;;;
This file is part of cl - ana .
;;;;
;;;; cl-ana 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 ... | null | https://raw.githubusercontent.com/ghollisjr/cl-ana/5cb4c0b0c9c4957452ad2a769d6ff9e8d5df0b10/csv-table/package.lisp | lisp |
cl-ana is free software: you can redistribute it and/or modify it
(at your option) any later version.
cl-ana 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 Lice... | cl - ana is a Common Lisp data analysis library .
Copyright 2013 , 2014
This file is part of cl - ana .
under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
You should have received a copy of the GNU General Public License
... |
caf44454563c4608ad95e8c52a4ad68d861dbdfee4d2ca3b28f289c197dabdb1 | mbj/stratosphere | SuppressionOptionsProperty.hs | module Stratosphere.SES.ConfigurationSet.SuppressionOptionsProperty (
SuppressionOptionsProperty(..), mkSuppressionOptionsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosph... | null | https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/ses/gen/Stratosphere/SES/ConfigurationSet/SuppressionOptionsProperty.hs | haskell | module Stratosphere.SES.ConfigurationSet.SuppressionOptionsProperty (
SuppressionOptionsProperty(..), mkSuppressionOptionsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosph... | |
283483a21c55b4d655acb39f2cf5f937ac5a9becc6de7299f56772f6fa754ff3 | imrekoszo/polylith-kaocha | core.clj | (ns polylith-kaocha.util.core)
(def rrapply-fn-form-
`(fn ~'rrapply [~'sym ~'args]
(if-some [var# (requiring-resolve ~'sym)]
(apply var# ~'args)
(throw (Exception. (str "Unable to resolve " ~'sym " to a var."))))))
(defmacro rrapply-fn- [] rrapply-fn-form-)
(def rrapply- (rrapply-fn-))
(defn rr... | null | https://raw.githubusercontent.com/imrekoszo/polylith-kaocha/0914db17921301b285241fa0aad76a8d435d34aa/components/util/src/polylith_kaocha/util/core.clj | clojure | (ns polylith-kaocha.util.core)
(def rrapply-fn-form-
`(fn ~'rrapply [~'sym ~'args]
(if-some [var# (requiring-resolve ~'sym)]
(apply var# ~'args)
(throw (Exception. (str "Unable to resolve " ~'sym " to a var."))))))
(defmacro rrapply-fn- [] rrapply-fn-form-)
(def rrapply- (rrapply-fn-))
(defn rr... | |
88821adbefceb6ec9b197d2f2a4a1fc2aa83d2ea8a9d660f6dd443f014e254a7 | reborg/clojure-essential-reference | 6.clj | < 1 >
(lazy-seq
< 2 >
(cons (first coll) ()))))
(take-first (sequence (map #(do (println "eval" %) %)) '(1))) ; <3>
eval 1
( 1 )
< 4 >
eval 1
eval 1
( 1 ) | null | https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/SequentialProcessing/when-first/6.clj | clojure | <3> | < 1 >
(lazy-seq
< 2 >
(cons (first coll) ()))))
eval 1
( 1 )
< 4 >
eval 1
eval 1
( 1 ) |
45524c4a7e7607023511696d09689a7b159f47803d81c8cb57faa25a367eaf55 | vindarel/cl-cookieweb | test-{{cookiecutter.project_name}}.lisp | (in-package :{{ cookiecutter.project_name }}-tests)
;; Define your project tests here...
(def-suite testmain
:description "test suite 1")
(in-suite testmain)
(test test1
(is (= (+ 1 1)
3)))
| null | https://raw.githubusercontent.com/vindarel/cl-cookieweb/4079a3e84e958caa84ba1c97824149a6dc3e32b8/%7B%7Bcookiecutter.repo_name%7D%7D/tests/test-%7B%7Bcookiecutter.project_name%7D%7D.lisp | lisp | Define your project tests here... | (in-package :{{ cookiecutter.project_name }}-tests)
(def-suite testmain
:description "test suite 1")
(in-suite testmain)
(test test1
(is (= (+ 1 1)
3)))
|
ade5e128b75ee3ae4500282b85568191c75b5900585eb0137a0cb28fd635ddbb | racket/typed-racket | pr13274.rkt | #;
(exn-pred exn:fail:contract? #rx"arity mismatch")
#lang racket/base
(module f-t typed/racket/shallow
(: flomap-transform (case-> (Integer Integer -> Integer)
(Integer Integer Integer Integer Integer Integer -> Integer)))
(define flomap-transform
(case-lambda
[(fm t) ... | null | https://raw.githubusercontent.com/racket/typed-racket/1dde78d165472d67ae682b68622d2b7ee3e15e1e/typed-racket-test/fail/shallow/pr13274.rkt | racket | (exn-pred exn:fail:contract? #rx"arity mismatch")
#lang racket/base
(module f-t typed/racket/shallow
(: flomap-transform (case-> (Integer Integer -> Integer)
(Integer Integer Integer Integer Integer Integer -> Integer)))
(define flomap-transform
(case-lambda
[(fm t) ... | |
d51531bc7e0993f4ed879efb43448ad288f696433bac18f5577e77e9404cd99a | mirage/capnp-rpc | debug.mli | (** Diagnostics. *)
module Log : Logs.LOG
(** The library's logger. *)
val src : Logs.src
(** Control the log level for [Log]. *)
val qid_tag : Stdint.Uint32.t Logs.Tag.def
(** [qid_tag] is used in log reports to tag the question (or answer) ID in the call. *)
exception Invariant_broken of (Format.formatter -> unit... | null | https://raw.githubusercontent.com/mirage/capnp-rpc/f04fa96a583994b71731bc1288833f8304c9ce81/capnp-rpc/debug.mli | ocaml | * Diagnostics.
* The library's logger.
* Control the log level for [Log].
* [qid_tag] is used in log reports to tag the question (or answer) ID in the call.
* [pp_exn] is like [Fmt.exn], but pretty-prints [Invariant_broken].
* [invariant_broken msg] raises [Invariant_broken msg].
* Unique object IDs, for debuggin... |
module Log : Logs.LOG
val src : Logs.src
val qid_tag : Stdint.Uint32.t Logs.Tag.def
exception Invariant_broken of (Format.formatter -> unit)
val pp_exn : exn Fmt.t
val failf : ('a, Format.formatter, unit, 'b) format4 -> 'a
* [ failf msg ] raises [ Failure msg ] .
val invariant_broken : (Format.formatter -> unit)... |
f387dff1453c95b324fc9abab55c3f2a286147cd5ebefa9fea47f73f8bc8c107 | tgass/macbeth | BoardUtils.hs | module Macbeth.Utils.BoardUtils (
drawArrow,
squareToRect',
squareToPoint,
toPos',
toPosLabelRow,
toPosLabelCol
) where
import Graphics.UI.WX hiding (size, color)
import Macbeth.Fics.Api.Api
rowToInt :: Macbeth.Fics.Api.Api.PColor -> Row -> Int
rowToInt White = abs . (7-) . fromEnum
ro... | null | https://raw.githubusercontent.com/tgass/macbeth/c64b3cc9b641444688b14a2838ee554932f0e9e6/macbeth-wx/src/Macbeth/Utils/BoardUtils.hs | haskell | module Macbeth.Utils.BoardUtils (
drawArrow,
squareToRect',
squareToPoint,
toPos',
toPosLabelRow,
toPosLabelCol
) where
import Graphics.UI.WX hiding (size, color)
import Macbeth.Fics.Api.Api
rowToInt :: Macbeth.Fics.Api.Api.PColor -> Row -> Int
rowToInt White = abs . (7-) . fromEnum
ro... | |
600d2178a8ffad403624ce926e45b504b63be926e8ff65649892088fe241d9a6 | maxcountryman/quanta | test_message.clj | (ns quanta.test_message
(:require [clojure.test :refer [deftest is]]
[quanta.message :as message]
[quanta.udp :as udp]
[quanta.util :as util]))
(deftest test-encoding-decoding
(is (instance? (Class/forName "[B") (message/encode "")))
(is (= (-> {:foo :bar} message/encod... | null | https://raw.githubusercontent.com/maxcountryman/quanta/9a1cd9b5b0d2b1706db9c5184fd653f26162cb23/test/quanta/test_message.clj | clojure | For now use a real socket, but this should probably be stubbed out in the
future. | (ns quanta.test_message
(:require [clojure.test :refer [deftest is]]
[quanta.message :as message]
[quanta.udp :as udp]
[quanta.util :as util]))
(deftest test-encoding-decoding
(is (instance? (Class/forName "[B") (message/encode "")))
(is (= (-> {:foo :bar} message/encod... |
388ce9eaec26a851845e5b23fb55b4082b019dd0e550293b9dafc89b98234d08 | ergenius/t__ | demoapp_app.erl | -*- coding : utf-8 -*-
Copyright ( c ) 2022 , < > < >
%%
%% Permission to use, copy, modify, and/or distribute this software for any
%% purpose with or without fee is hereby granted, provided that the above
%% copyright notice and this permission notice appear in all copies.
%%
THE SOFTWARE IS PROVIDED " AS... | null | https://raw.githubusercontent.com/ergenius/t__/ce2a894b05feecea7d62881ceedd33b64e0bc565/demoapp/src/demoapp_app.erl | erlang |
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVE... | -*- coding : utf-8 -*-
Copyright ( c ) 2022 , < > < >
THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES
ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN
-module(demoapp_app).
-beha... |
a0a6932f84a27ebace0421679d75432018dbe52916b132f06f9eff4d6782b78f | AdaCore/why3 | counterexample.ml | (********************************************************************)
(* *)
The Why3 Verification Platform / The Why3 Development Team
Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University
(* ... | null | https://raw.githubusercontent.com/AdaCore/why3/be1023970d48869285e68f12d32858c3383958e0/examples/use_api/counterexample.ml | ocaml | ******************************************************************
This software is distributed under the terms of the GNU Lesser
on linking described in file LICENSE. ... | The Why3 Verification Platform / The Why3 Development Team
Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University
General Public License version 2.1 , with the special exception
* * * * * * * * * * * * * * * * * *
This file builds some goals based on logic.ml using the API and call... |
4b0f18e531d9dddb172c0af0fc328b70d2093d815b6c2dee44ab3275e9bac37f | TrustInSoft/tis-interpreter | gtk_helper.mli | Modified by TrustInSoft
(**************************************************************************)
(* *)
This file is part of Frama - C.
(* ... | null | https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/gui/gtk_helper.mli | ocaml | ************************************************************************
alternatives)
... | Modified by TrustInSoft
This file is part of Frama - C.
Copyright ( C ) 2007 - 2015
CEA ( Commissariat à l'énergie atomique et aux énergies
Lesser General Public License as published by the Free Softwa... |
32ee2d429fb541a40580d1ca94b4dce9b15a4b1a4932e64c496e27629bcc49a6 | tenpureto/tenpureto | Main.hs | # LANGUAGE LambdaCase #
module Main where
import Polysemy
import Polysemy.Error
import Polysemy.Resource
import Data.Foldable
import Data.Functor
import Data.Maybe
import qualified Data.Set as Set
import Data.Version
import ... | null | https://raw.githubusercontent.com/tenpureto/tenpureto/886df860200e1a6f44ce07c24a5e7597009f71ef/app/Main.hs | haskell | brittany-disable-next-binding | # LANGUAGE LambdaCase #
module Main where
import Polysemy
import Polysemy.Error
import Polysemy.Resource
import Data.Foldable
import Data.Functor
import Data.Maybe
import qualified Data.Set as Set
import Data.Version
import ... |
068aa825322b23286a4a49e0e4fb2200e56037076bb3cfd77cc04f47cb42d123 | agda/agda | NonLinMatch.hs | # LANGUAGE NondecreasingIndentation #
| Non - linear matching of the lhs of a rewrite rule against a
neutral term .
Given a lhs
Δ : B
and a candidate term
Γ ⊢ t : A
we seek a substitution Γ ⊢ σ : Δ such that
Γ ⊢ B[σ ] = A and
Γ ⊢ lhs[σ ] = t : A
neutral term.
Give... | null | https://raw.githubusercontent.com/agda/agda/e018e58453a06e4c4a15c9b81396cbcd1e2c640f/src/full/Agda/TypeChecking/Rewriting/NonLinMatch.hs | haskell | | Monad for non-linear matching.
| Add substitution @i |-> v : a@ to result of matching.
| Matching against a term produces a constraint
which we have to verify after applying
the substitution computed by matching.
^ Telescope of free variables in the equation
^ Type of the equation, living in same context a... | # LANGUAGE NondecreasingIndentation #
| Non - linear matching of the lhs of a rewrite rule against a
neutral term .
Given a lhs
Δ : B
and a candidate term
Γ ⊢ t : A
we seek a substitution Γ ⊢ σ : Δ such that
Γ ⊢ B[σ ] = A and
Γ ⊢ lhs[σ ] = t : A
neutral term.
Give... |
4006e4d419bf539a0bc2652fc48fcf5e447fe742d4cbed1188d9c15f547b9e7e | ocaml/odoc | types.ml | type style = [ `Bold | `Italic | `Emphasis | `Superscript | `Subscript ]
module rec Class : sig
type t = string list
end =
Class
and InternalLink : sig
type resolved = Url.t * Inline.t
type unresolved = Inline.t
type t = Resolved of resolved | Unresolved of Inline.t
end =
InternalLink
and Raw_markup : ... | null | https://raw.githubusercontent.com/ocaml/odoc/088a374fb2e759d69b1c8313ecbfe09a238c6c86/src/document/types.ml | ocaml | type style = [ `Bold | `Italic | `Emphasis | `Superscript | `Subscript ]
module rec Class : sig
type t = string list
end =
Class
and InternalLink : sig
type resolved = Url.t * Inline.t
type unresolved = Inline.t
type t = Resolved of resolved | Unresolved of Inline.t
end =
InternalLink
and Raw_markup : ... | |
08d085ea5e5023b857cf86e6aa09ae294ce550d458eb5bec28edc0f16cda252c | SimulaVR/godot-haskell | VisualShaderNodeColorFunc.hs | # LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving ,
TypeFamilies , TypeOperators , FlexibleContexts , DataKinds ,
MultiParamTypeClasses #
TypeFamilies, TypeOperators, FlexibleContexts, DataKinds,
MultiParamTypeClasses #-}
module Godot.Core.VisualShaderNodeColorFunc
(Godot.Core.VisualShaderNo... | null | https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/VisualShaderNodeColorFunc.hs | haskell | # LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving ,
TypeFamilies , TypeOperators , FlexibleContexts , DataKinds ,
MultiParamTypeClasses #
TypeFamilies, TypeOperators, FlexibleContexts, DataKinds,
MultiParamTypeClasses #-}
module Godot.Core.VisualShaderNodeColorFunc
(Godot.Core.VisualShaderNo... | |
cfc296ae4e1666ce61b742512fbfccf9b57ad785e396259ef400536637cb304d | SecPriv/webspec | ast.mli | (********************************************************************************)
Copyright ( c ) 2021
(* *)
(* Permission is hereby granted, free of charge, to any person obtaining a *)
(* c... | null | https://raw.githubusercontent.com/SecPriv/webspec/9f500bd85400551d8bf0e117ac5aa57088f9bc20/compiler/src/ast.mli | ocaml | ******************************************************************************
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
th... | Copyright ( c ) 2021
to deal in the Software without restriction , including without limitation
and/or sell copies of the Software , and to permit persons to whom the
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR
LIABI... |
95c513a4748602a037843d020b421a87a36d3de46e8b05ecef84bc1d3caf8551 | infi-nl/alibi | migrations.clj | (ns alibi.datasource.sqlite.migrations
(:require
[clojure.java.jdbc :as db]
[clojure.edn :as edn]
[clojure.java.io :as io]))
(defn- get-migrations [path]
(some->> (io/resource path)
(io/file)
(.list)
(filter (partial re-matches #"^[0-9]{4}\..*\.sql.edn$"))
(s... | null | https://raw.githubusercontent.com/infi-nl/alibi/00e97340ebff483f0ecbb3eef929a4052adbc78b/src/alibi/datasource/sqlite/migrations.clj | clojure | (ns alibi.datasource.sqlite.migrations
(:require
[clojure.java.jdbc :as db]
[clojure.edn :as edn]
[clojure.java.io :as io]))
(defn- get-migrations [path]
(some->> (io/resource path)
(io/file)
(.list)
(filter (partial re-matches #"^[0-9]{4}\..*\.sql.edn$"))
(s... | |
d779e7663d57020f5d85261014a5c9a0ec7cb401c7311de1f168f6a2059573ff | returntocorp/semgrep | Parse_go_tree_sitter.mli | val parse : Common.filename -> Ast_go.program Tree_sitter_run.Parsing_result.t
| null | https://raw.githubusercontent.com/returntocorp/semgrep/00f1e67bbb80f00e29db3381288fc00398b6868a/languages/go/tree-sitter/Parse_go_tree_sitter.mli | ocaml | val parse : Common.filename -> Ast_go.program Tree_sitter_run.Parsing_result.t
| |
a2fa47920ef0aff89a7261f26f615df7a42026cf29903df77bb34f9c520fa681 | typedclojure/typedclojure | reduce.clj | (ns typed-test.clj.spec.reduce
(:require [clojure.alpha.spec :as s]
[clojure.alpha.spec.protocols :as protocols
:refer [Spec conform* unform* explain* gen* with-gen* describe*
Schema keyspecs*
Select]]
[clojure.alpha.spec.gen :as gen]
... | null | https://raw.githubusercontent.com/typedclojure/typedclojure/45556897356f3c9cbc7b1b6b4df263086a9d5803/typed/clj.spec/test/typed_test/clj/spec/reduce.clj | clojure | (ns typed-test.clj.spec.reduce
(:require [clojure.alpha.spec :as s]
[clojure.alpha.spec.protocols :as protocols
:refer [Spec conform* unform* explain* gen* with-gen* describe*
Schema keyspecs*
Select]]
[clojure.alpha.spec.gen :as gen]
... | |
a91359edf3ebd23662bc6096fee9547bedf54faead0940b1b3d2ac724063e3e1 | vereis/jarlang | shell.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 1996 - 2017 . All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% -2.0
%%
%% Unless required by applicab... | null | https://raw.githubusercontent.com/vereis/jarlang/72105b79c1861aa6c4f51c3b50ba695338aafba4/src/erl/lib/stdlib/shell.erl | erlang |
%CopyrightBegin%
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific lan... | Copyright Ericsson AB 1996 - 2017 . All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(shell).
-export([start/0, start/1, start/2, server/1, server/2, history/1, results/1]).
-export([whereis_eva... |
d2b9ff57a0cc3fd21e2e4e26cb9a277b8d92885b17888b4c934eb05ed6f6f39f | vehicle-lang/vehicle | Vehicle.hs | module Vehicle
( run,
Options (..),
GlobalOptions (..),
defaultGlobalOptions,
ModeOptions (..),
)
where
import Control.Exception (bracket)
import Control.Monad (when)
import System.Directory (createDirectoryIfMissing, doesFileExist)
import System.Exit (exitSuccess)
import System.FilePath (takeDirec... | null | https://raw.githubusercontent.com/vehicle-lang/vehicle/ca99b8da9e5aabde2c94b758bb4141fbe53ebed5/vehicle/src/Vehicle.hs | haskell | ------------------------------------------------------------------------------
Main command
Must be a better way of doing this... | module Vehicle
( run,
Options (..),
GlobalOptions (..),
defaultGlobalOptions,
ModeOptions (..),
)
where
import Control.Exception (bracket)
import Control.Monad (when)
import System.Directory (createDirectoryIfMissing, doesFileExist)
import System.Exit (exitSuccess)
import System.FilePath (takeDirec... |
e1d06f9a25d9956a87f0d7b97c87100b3046ec755af7cba751c218b24c5d2871 | qfpl/tasty-wai | Test.hs | {-# LANGUAGE OverloadedStrings #-}
module Main where
import Prelude hiding (head)
import Network.Wai (Application)
import qualified Network.Wai as W
import qualified Network.HTTP.Types as H
import Test.Tasty (defaultMain, testGroup)
import Tes... | null | https://raw.githubusercontent.com/qfpl/tasty-wai/5343d3416dee01c365ad13b5c6e046a9300f653c/test/Test.hs | haskell | # LANGUAGE OverloadedStrings #
Ye olde...
Well, then...
Use raw ints
Use raw ints | module Main where
import Prelude hiding (head)
import Network.Wai (Application)
import qualified Network.Wai as W
import qualified Network.HTTP.Types as H
import Test.Tasty (defaultMain, testGroup)
import Test.Tasty.Wai (assertBody, assert... |
fbc8431800c3e23d5efc5aa016bbb5b798fd7b0d57f8db47df128869d329ae6a | imrehg/ypsilon | buildable.scm | #!nobacktrace
Ypsilon Scheme System
Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited .
See license.txt for terms and conditions of use .
(library (ypsilon gtk buildable)
(export gtk_buildable_add_child
gtk_buildable_construct_child
gtk_buildable_custom_finished
g... | null | https://raw.githubusercontent.com/imrehg/ypsilon/e57a06ef5c66c1a88905b2be2fa791fa29848514/sitelib/ypsilon/gtk/buildable.scm | scheme | void gtk_buildable_set_name (GtkBuildable* buildable, const gchar* name)
[end] | #!nobacktrace
Ypsilon Scheme System
Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited .
See license.txt for terms and conditions of use .
(library (ypsilon gtk buildable)
(export gtk_buildable_add_child
gtk_buildable_construct_child
gtk_buildable_custom_finished
g... |
9de2a228a3adc4976958dc025a7785d55dde2c102380d6b2eca13796bd1a672c | jashmenn/clover-algorithms | project.clj | (defproject clover "1.0.0-SNAPSHOT"
:description "FIXME: write"
:dependencies [[org.clojure/clojure "1.2.0"]
[org.clojure/clojure-contrib "1.2.0"]
[org.clojars.automata/rosado.processing "1.1.0"]]
:dev-dependencies
[[lein-run "1.0.0"]
[lein-javac "1.2.1-SNAPSHOT"]
[... | null | https://raw.githubusercontent.com/jashmenn/clover-algorithms/16ae7669958b438bdc288f82e404bc7baedb0c6a/project.clj | clojure | (defproject clover "1.0.0-SNAPSHOT"
:description "FIXME: write"
:dependencies [[org.clojure/clojure "1.2.0"]
[org.clojure/clojure-contrib "1.2.0"]
[org.clojars.automata/rosado.processing "1.1.0"]]
:dev-dependencies
[[lein-run "1.0.0"]
[lein-javac "1.2.1-SNAPSHOT"]
[... | |
42f82e3cb27156849cc4d4f83ded3761b3e87efb123ca36599ab88cf3d36cab1 | mbj/stratosphere | SpekeKeyProviderProperty.hs | module Stratosphere.MediaPackage.PackagingConfiguration.SpekeKeyProviderProperty (
module Exports, SpekeKeyProviderProperty(..),
mkSpekeKeyProviderProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} ... | null | https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/mediapackage/gen/Stratosphere/MediaPackage/PackagingConfiguration/SpekeKeyProviderProperty.hs | haskell | # SOURCE # | module Stratosphere.MediaPackage.PackagingConfiguration.SpekeKeyProviderProperty (
module Exports, SpekeKeyProviderProperty(..),
mkSpekeKeyProviderProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.Re... |
259d301ee6e2b2c8e737b2874cee031f07695daa41b855eaf32d67b24f0353fa | dmjio/Jaskell | VM.hs | module Main where
import Control.Monad.Reader
import Data.Char
import Decs
import Parser hiding (main)
import SymbolTable
main :: IO ()
main = do
putStrLn "Please enter the name of your jack file (i.e. Main)"
fileName <- getLine
file <- readFile (f... | null | https://raw.githubusercontent.com/dmjio/Jaskell/9412cbe4dd341e95f3ef6c8ce5fe56d627f0c048/Parser/VM.hs | haskell | do moveSquare();
Keyboard.readInt() or square.moveDown()
own class func
other class func
other class method
my class method
other class method
other class method | module Main where
import Control.Monad.Reader
import Data.Char
import Decs
import Parser hiding (main)
import SymbolTable
main :: IO ()
main = do
putStrLn "Please enter the name of your jack file (i.e. Main)"
fileName <- getLine
file <- readFile (f... |
e3b30a17a74afe32aa83bf1a59093b1db2648e6baa803cf9d5f8b10670f014c8 | helium/router | router_devices_sup.erl | %%%-------------------------------------------------------------------
%%% @doc
%%% == Router Devices Supervisor ==
%%% @end
%%%-------------------------------------------------------------------
-module(router_devices_sup).
-behaviour(supervisor).
%% ------------------------------------------------------------------... | null | https://raw.githubusercontent.com/helium/router/8bb58d157ed0086083fd34d4ec4609d1e9afbe4f/src/device/router_devices_sup.erl | erlang | -------------------------------------------------------------------
@doc
== Router Devices Supervisor ==
@end
-------------------------------------------------------------------
------------------------------------------------------------------
API Exports
---------------------------------------------------------... | -module(router_devices_sup).
-behaviour(supervisor).
-export([
start_link/0,
maybe_start_worker/2,
lookup_device_worker/1,
id/1
]).
-export([init/1]).
-define(WORKER(I), #{
id => I,
start => {I, start_link, []},
restart => temporary,
shutdown => 1000,
type => worker,
modules ... |
c0f8d95a6ddcd9afd5aa492f5bc9acde84d3112295763536aac6eaad0da19e2d | Haskallywags/school-of-haskell | Calc.hs | # LANGUAGE FlexibleInstances #
module HW5.Calc
exercise 1
eval
exercise 2
, evalStr
exercise 3
, Expr (..)
exercise 4
, MinMax (..)
, Mod7 (..)
exercise 5 ( optional )
, compile
exercise 6 ( optional )
, HasVars (var)
, VarExprT (..)
) where
import Provided.Parser (parseExp)
import qualified Data.Map ... | null | https://raw.githubusercontent.com/Haskallywags/school-of-haskell/bf4475d2b1dff6165ea20461d87f4ce77aaedcf9/cis194/homework-5/src/HW5/Calc.hs | haskell | # LANGUAGE FlexibleInstances #
module HW5.Calc
exercise 1
eval
exercise 2
, evalStr
exercise 3
, Expr (..)
exercise 4
, MinMax (..)
, Mod7 (..)
exercise 5 ( optional )
, compile
exercise 6 ( optional )
, HasVars (var)
, VarExprT (..)
) where
import Provided.Parser (parseExp)
import qualified Data.Map ... | |
a83cee7d52d4075b37273626b4260648fc0553a68ab38a22d771877fb4c23846 | benoitc/opencouch | couch_key_tree.erl | Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not
% use this file except in compliance with the License. You may obtain a copy of
% the License at
%
% -2.0
%
% Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an " A... | null | https://raw.githubusercontent.com/benoitc/opencouch/fef7be42f37515a6f73e2dfbab74fea75188e415/src/couch_key_tree.erl | erlang | use this file except in compliance with the License. You may obtain a copy of
the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations... | Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not
distributed under the License is distributed on an " AS IS " BASIS , WITHOUT
the order that these edits were applied . For instance , a set of three edits
would produce a tree of versions A->B->C indicating that edit C was based... |
d350a7c77441557d9b9b43c8b9a98b20eae7513b74de556b639a077c444ad27a | emqx/emqx | emqx_connector_redis.erl | %%--------------------------------------------------------------------
Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy o... | null | https://raw.githubusercontent.com/emqx/emqx/3587c4c04aaf681f32e80ed2ebe6aef60549bd4c/apps/emqx_connector/src/emqx_connector_redis.erl | erlang | --------------------------------------------------------------------
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ... | Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(emqx_connector_redis).
-include("emqx_connector.hrl").
-include_lib("typerefl/include/ty... |
5f085e4428aa7325a6dc26e1fa0d4e5849e8a7fc54d1d0867020619708e5ae9f | soegaard/little-helper | test-finite-map.scm | test-finite-map.scm -- -- dec 27th 2005
(require "../finite-map.scm"
"srfi-check.scm"
(lib "42.ss" "srfi")
(only (lib "list.ss") mergesort)
(lib "67.ss" "srfi"))
;;; HELPERS
(define (same? l1 l2)
(equal? (mergesort l1 <)
(mergesort l2 <)))
... | null | https://raw.githubusercontent.com/soegaard/little-helper/26249c688e5adf1e2535c405c6289030eff561b4/planet/galore.plt/2/2/tests/test-finite-map.scm | scheme | HELPERS
TESTS
finite-map?
count
delete
delete-all
delete*
difference
empty
empty?
equal=?
fold
fold/key
get
insert, elements
insert*
intersection
member?
singleton
size
union
select
REPORT
| test-finite-map.scm -- -- dec 27th 2005
(require "../finite-map.scm"
"srfi-check.scm"
(lib "42.ss" "srfi")
(only (lib "list.ss") mergesort)
(lib "67.ss" "srfi"))
(define (same? l1 l2)
(equal? (mergesort l1 <)
(mergesort l2 <)))
(define (symb... |
5d66e9bd1c4a19c09a4164b2669df2afc423a8e3b10269a8c543f970865bc98f | avillega/generative-art | first_fractal.clj | (ns generative-artistry.first-fractal
(:require [quil.core :as q]
[generative-artistry.utils :refer :all]))
(defn line [level sx sy]
(let [l (q/map-range level 0 10 0 20)
ex (+ sx (random-range l))
ey (+ sy (random-range l))
children (when (< level 10)
(repeat... | null | https://raw.githubusercontent.com/avillega/generative-art/cd3be0a40ff9a7972b875df0e9e8f6981e45ee40/src/generative_artistry/first_fractal.clj | clojure | (ns generative-artistry.first-fractal
(:require [quil.core :as q]
[generative-artistry.utils :refer :all]))
(defn line [level sx sy]
(let [l (q/map-range level 0 10 0 20)
ex (+ sx (random-range l))
ey (+ sy (random-range l))
children (when (< level 10)
(repeat... | |
d91090366dafd7079212b1c9f22b1401e3c2cf9037d2f04cd272ad59d956ae14 | AbstractMachinesLab/caramel | syntaxerr.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocaml-lsp-1.4.0/ocaml-lsp-server/vendor/merlin/upstream/ocaml_403/parsing/syntaxerr.ml | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1997 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
type error =
Unclosed of Location.t * string * Location.t * string
| Expecting of Location.t * str... |
287eb6dfcbed45169c66af922f100a10b47ece69aa20bc4e4f698540ff96d6ac | lispnik/iup | attributes.lisp | (in-package #:iup)
(export '(class-attributes
class-callbacks
all-classes
class-name
class-type
save-class-attributes
copy-class-attributes
;; set-class-default-attribute
attribute-handle
callback
handle
name
;; attribute-names
attribute
copy-attributes))
... | null | https://raw.githubusercontent.com/lispnik/iup/f8e5f090bae47bf8f91ac6fed41ec3bc01061186/iup/attributes.lisp | lisp | set-class-default-attribute
attribute-names
(loop for (attribute value) on attributes by #'cddr
finally (return attributes)))
(defun attribute-names (handle)
(let ((max-n (iup-cffi::%iup-get-all-attributes handle (cffi:null-pointer) 0)))
(format t "Found ~A attributes for ~A~%" max-n handle)
... | (in-package #:iup)
(export '(class-attributes
class-callbacks
all-classes
class-name
class-type
save-class-attributes
copy-class-attributes
attribute-handle
callback
handle
name
attribute
copy-attributes))
( defun ( setf attributes ) ( attributes handle )
... |
225ec8809e147bdc282ce2332b68b59ee33cd2f06a4d6675540eff9d8325867f | finnishtransportagency/harja | bonukset.cljs | (ns harja.tiedot.urakka.laadunseuranta.bonukset
(:require [tuck.core :as tuck]
[harja.ui.lomake :as lomake]
[harja.ui.viesti :as viesti]
[harja.ui.liitteet :as liitteet]
[harja.tiedot.istunto :as istunto]
[harja.tiedot.navigaatio :as nav]
[harja... | null | https://raw.githubusercontent.com/finnishtransportagency/harja/624f72c2dcd408fbf4acc3305fd0472e5afb341d/src/cljs/harja/tiedot/urakka/laadunseuranta/bonukset.cljs | clojure | --------- | (ns harja.tiedot.urakka.laadunseuranta.bonukset
(:require [tuck.core :as tuck]
[harja.ui.lomake :as lomake]
[harja.ui.viesti :as viesti]
[harja.ui.liitteet :as liitteet]
[harja.tiedot.istunto :as istunto]
[harja.tiedot.navigaatio :as nav]
[harja... |
c2e8376dd3bb8e16d579193f5fe8234b10d0f634b7d1916a180488ad4493a4d1 | jiangpengnju/htdp2e | ex49.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-reader.ss" "lang")((modname ex49) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #... | null | https://raw.githubusercontent.com/jiangpengnju/htdp2e/d41555519fbb378330f75c88141f72b00a9ab1d3/fixed-size-data/how-to-design-programs/ex49.rkt | racket | about the language level of this file in a form that our tools can easily process.
Design a world program that maintains and displays a "happiness gauge".
Let's call it gauge-prog, and let's agree that the program consumes the
maximun level of happiness.
The gauge display starts with the maximun score, and with ea... | The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-beginner-reader.ss" "lang")((modname ex49) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f)))
every time the up arrow is pressed , happiness jumps by 1/3 .
(r... |
4d103b4ba73a88c1ac4c125d788a54ca6b24b2f665096e28d74cc3aa5302174d | clojure-interop/aws-api | SDKGlobalConfiguration.clj | (ns com.amazonaws.SDKGlobalConfiguration
"SDKGlobalConfiguration is to configure any global settings"
(:refer-clojure :only [require comment defn ->])
(:import [com.amazonaws SDKGlobalConfiguration]))
(defn ->sdk-global-configuration
"Constructor."
(^SDKGlobalConfiguration []
(new SDKGlobalConfiguration ... | null | https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws/src/com/amazonaws/SDKGlobalConfiguration.clj | clojure | it | (ns com.amazonaws.SDKGlobalConfiguration
"SDKGlobalConfiguration is to configure any global settings"
(:refer-clojure :only [require comment defn ->])
(:import [com.amazonaws SDKGlobalConfiguration]))
(defn ->sdk-global-configuration
"Constructor."
(^SDKGlobalConfiguration []
(new SDKGlobalConfiguration ... |
1b16e173c621dfd2ed02c27d401b406d271d829f842d1f4e3e2671b9af1d1bd9 | screenshotbot/screenshotbot-oss | adb-puller.lisp | ;;;; Copyright 2018-Present Modern Interpreters Inc.
;;;;
This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
(defpackage :screenshotbot/sdk/adb-puller
(:use #:cl)
(:export
#:external-data... | null | https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/541e1384b4b958bdc6490e50de67862ccecd2d12/src/screenshotbot/sdk/adb-puller.lisp | lisp | Copyright 2018-Present Modern Interpreters Inc.
| This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
(defpackage :screenshotbot/sdk/adb-puller
(:use #:cl)
(:export
#:external-data-dir
#:pull-file
#:remote-file-exists-p
#:pull-di... |
5f04b651ab9027b1b20728128d1c155f573c0857fb7e999f97555d08f336d4c3 | txyyss/Project-Euler | Euler060.hs | The primes 3 , 7 , 109 , and 673 , are quite remarkable . By taking any
two primes and concatenating them in any order the result will
always be prime . For example , taking 7 and 109 , both 7109 and 1097
are prime . The sum of these four primes , 792 , represents the lowest
sum for a set of four primes with ... | null | https://raw.githubusercontent.com/txyyss/Project-Euler/d2f41dad429013868445c1c9c1c270b951550ee9/Euler060.hs | haskell | primes concatenate to produce another prime. | The primes 3 , 7 , 109 , and 673 , are quite remarkable . By taking any
two primes and concatenating them in any order the result will
always be prime . For example , taking 7 and 109 , both 7109 and 1097
are prime . The sum of these four primes , 792 , represents the lowest
sum for a set of four primes with ... |
92f1a2090d6990a0b21314f479c9acd4e7193afe87cae2a330f18f460b6aeb47 | cxxxr/valtan | variables.lisp | (in-package :compiler)
(defvar *in-host-runtime* nil)
(defvar *debug* nil)
(defvar *known-toplevel-functions* '())
(defvar *enable-profiling* nil)
(defparameter *hir-optimize* t)
| null | https://raw.githubusercontent.com/cxxxr/valtan/ec3164d42b86869357dc185b747c5dfba25c0a3c/library/valtan-core/compiler/variables.lisp | lisp | (in-package :compiler)
(defvar *in-host-runtime* nil)
(defvar *debug* nil)
(defvar *known-toplevel-functions* '())
(defvar *enable-profiling* nil)
(defparameter *hir-optimize* t)
| |
551fadd111d6ac14640cdb7bbbdc8bb02eb4d04d7407f499e57bd42072f7a23e | Workiva/eva | index.clj | Copyright 2015 - 2019 Workiva Inc.
;;
;; Licensed under the Eclipse Public License 1.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; -1.0.php
;;
;; Unless required by applicable law or agreed to in writing, software
dist... | null | https://raw.githubusercontent.com/Workiva/eva/b7b8a6a5215cccb507a92aa67e0168dc777ffeac/core/src/eva/v2/database/index.clj | clojure |
Licensed under the Eclipse Public License 1.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-1.0.php
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expre... | Copyright 2015 - 2019 Workiva Inc.
distributed under the License is distributed on an " AS IS " BASIS ,
(ns eva.v2.database.index
(:require [eva.core :as core
:refer [AdvanceIndex entry->datoms safe-advance-index ->root
safe-advance-index-better
select-datom... |
56161b35db70002b7cdff568ec3ea3627e65879094c03e7c2441f924d02ec82d | portkey-cloud/aws-clj-sdk | dynamodb.clj | (ns portkey.aws.dynamodb (:require [portkey.aws]))
(def
endpoints
'{"ap-northeast-1"
{:credential-scope {:service "dynamodb", :region "ap-northeast-1"},
:ssl-common-name "dynamodb.ap-northeast-1.amazonaws.com",
:endpoint "-northeast-1.amazonaws.com",
:signature-version :v4},
"eu-west-1"
{:creden... | null | https://raw.githubusercontent.com/portkey-cloud/aws-clj-sdk/10623a5c86bd56c8b312f56b76ae5ff52c26a945/src/portkey/aws/dynamodb.clj | clojure | (ns portkey.aws.dynamodb (:require [portkey.aws]))
(def
endpoints
'{"ap-northeast-1"
{:credential-scope {:service "dynamodb", :region "ap-northeast-1"},
:ssl-common-name "dynamodb.ap-northeast-1.amazonaws.com",
:endpoint "-northeast-1.amazonaws.com",
:signature-version :v4},
"eu-west-1"
{:creden... | |
69f873c7438e7a509980c50c6c7141a3f842bfbccfe34434d304febf847b8a09 | toddmohney/json-api | TestHelpers.hs | module TestHelpers where
import qualified Data.Aeson as AE
import qualified Data.Aeson.Encode.Pretty as AE
import qualified Data.ByteString.Lazy.Char8 as BS
import Data.Maybe (fromJust)
import Data.Text (Text, pack)
import GHC.Generics (Generic)
import Network.JSONApi
import Network.URL (URL, importURL)
prettyEncode ... | null | https://raw.githubusercontent.com/toddmohney/json-api/8df9ac0959ebca4bab3494780e30321ddc712b0f/test/TestHelpers.hs | haskell | module TestHelpers where
import qualified Data.Aeson as AE
import qualified Data.Aeson.Encode.Pretty as AE
import qualified Data.ByteString.Lazy.Char8 as BS
import Data.Maybe (fromJust)
import Data.Text (Text, pack)
import GHC.Generics (Generic)
import Network.JSONApi
import Network.URL (URL, importURL)
prettyEncode ... | |
b110d73235770d83c719b420e0b2bb00a7862f7a25591eaa895d2a4f186c20fa | tamarit/pn_suite | pn_results_printer.erl | -module( pn_results_printer ).
-export( [print/0, total/0] ).
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Printing
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
results() ->
[
results_2011(),
results_2012(),
results_2013(),
results_2014(),
results_2015(),
results_2016()
% results_prova()
].
... | null | https://raw.githubusercontent.com/tamarit/pn_suite/0d310baf6f5ddadbd8a844d9f42f46fd2f3af9fb/src/pn_results_printer.erl | erlang |
Printing
results_prova()
results() ->
[
results_2011_1(),
results_2012_1()
% results_2013_1(),
% results_2014_1(),
% results_2015_1(),
% results_2016_1()
% results_prova()
].
print_dict(JointDict) ->
[io:format( "{~p, ~p},\n", [A, dict:to_list(... | -module( pn_results_printer ).
-export( [print/0, total/0] ).
results() ->
[
results_2011(),
results_2012(),
results_2013(),
results_2014(),
results_2015(),
results_2016()
].
total() ->
lists:sum([lists:sum( [T || {_, [{_,{_,T}} | _]} <- ResultYear]) || ResultYe... |
3cce5004f554ec849b633948d0394f3fd3ca7beca1f167430cdfd92c774cc78f | NorfairKing/validity | Main.hs | # LANGUAGE AllowAmbiguousTypes #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
module Main where
import Criterion.Main as Criterion
import Data.Fixed
import Data.GenValidity.Criterion
import Data.Int
import Data.List.NonEmpty (NonEmpty (..))
import Data.Ratio
import Data.Word
import Numeric.Natural
... | null | https://raw.githubusercontent.com/NorfairKing/validity/2e9198bdaaa8c80a5dbe2b7b860b5c26558c6374/genvalidity-criterion/bench/Main.hs | haskell | # LANGUAGE AllowAmbiguousTypes #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
module Main where
import Criterion.Main as Criterion
import Data.Fixed
import Data.GenValidity.Criterion
import Data.Int
import Data.List.NonEmpty (NonEmpty (..))
import Data.Ratio
import Data.Word
import Numeric.Natural
... | |
7140fd31b35f9885e4beeac178413405ea6e4f5fcd03ce3576ffcb85cd82d479 | mfikes/derevo | project.clj | (defproject derevo "0.1.0-SNAPSHOT"
:description "Create :foreign-libs graph from JS files."
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.6.0"]])
| null | https://raw.githubusercontent.com/mfikes/derevo/cb2a6923e2b12e09a5e7c96258757e1670f85e8b/project.clj | clojure | (defproject derevo "0.1.0-SNAPSHOT"
:description "Create :foreign-libs graph from JS files."
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.6.0"]])
| |
ef8db01c1467b5ce1bea81f9acc76c50efd196d2957571d498fbb0874d26c312 | input-output-hk/cardano-shell | Spec.hs | module Main where
import Cardano.Prelude
import EnvironmentSpec (envSubstitutionSpec)
import LauncherSMSpec (launcherSMSpec)
import LauncherSpec (launcherSpec)
import TemplateSpec (templateSpec)
import Test.Hspec (describe, hspec)
import UpdaterSpec... | null | https://raw.githubusercontent.com/input-output-hk/cardano-shell/8e0d6f5548c1c13a9edfeb56e4ea27c0a6d10948/cardano-launcher/test/Spec.hs | haskell | | Entry point for tests. | module Main where
import Cardano.Prelude
import EnvironmentSpec (envSubstitutionSpec)
import LauncherSMSpec (launcherSMSpec)
import LauncherSpec (launcherSpec)
import TemplateSpec (templateSpec)
import Test.Hspec (describe, hspec)
import UpdaterSpec... |
9e4a2f789e8d1f7898001c55ecb87e153066de0b6d1713c1a4e17ba737eaf97f | monadbobo/ocaml-core | posix_clock.mli | (* The functions in this module are implemented on systems that support posix timers *)
open Core.Std
type t =
| Realtime
| Monotonic
| Process_cpu
| Process_thread
val all : t list
val to_string : t -> string
returns the resulution of the given clock in nanoseconds
val getres : (t -> Int63.t) Or_error.t... | null | https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/extended/lib/posix_clock.mli | ocaml | The functions in this module are implemented on systems that support posix timers
returns the current value of the given clock in nanoseconds
sleeps the current thread for the specified number of nanoseconds
[min_interval t] returns the minimum measurable interval for t in nanoseconds |
open Core.Std
type t =
| Realtime
| Monotonic
| Process_cpu
| Process_thread
val all : t list
val to_string : t -> string
returns the resulution of the given clock in nanoseconds
val getres : (t -> Int63.t) Or_error.t
val gettime : (t -> Int63.t) Or_error.t
: ( t - > int - > unit )
val min_interval... |
dd973ee6ec76ae1c434462b9e7f7eb69d35c5302f2f6a16ba9641f1a609e9f69 | karlhof26/gimp-scheme | FU_edges_art-border.scm | ; FU_edges_art-border.scm
version 2.8 [ gimphelp.org ]
last modified / tested by
02/14/2014 on GIMP-2.8.10
02/09/2020 on
;
; Last update reintroduced a modified drop-shadow effect
; to give slight "dark glow" to inner border. This is optional.
; Also pulled the flatten image on start, so you can retain an... | null | https://raw.githubusercontent.com/karlhof26/gimp-scheme/bcaaae384fa57fd919607d5599989e6dfcc7f7c7/FU_edges_art-border.scm | scheme | FU_edges_art-border.scm
Last update reintroduced a modified drop-shadow effect
to give slight "dark glow" to inner border. This is optional.
Also pulled the flatten image on start, so you can retain an
alpha layer image if present.
Dropped remnant selection when finished,
changed menu location, added versio... | version 2.8 [ gimphelp.org ]
last modified / tested by
02/14/2014 on GIMP-2.8.10
02/09/2020 on
convert to RGB if needed .
C:\Program Files\GIMP 2\share\gimp\2.0\scripts
C:\Users\YOUR - NAME\.gimp-2.8\scripts
Windows XP
C:\Program Files\GIMP 2\share\gimp\2.0\scripts
/home / yourname/.gimp-2.8 / sc... |
af826f0e8d6eaef0549c652d5aec8f1c7774824151afb61832ef1d23185a7e95 | TatriX/cl-selenium-webdriver | selenium.lisp | (in-package :cl-user)
(defpackage cl-selenium-test
(:use :cl :cl-selenium :cl-selenium-utils :prove))
(in-package :cl-selenium-test)
(plan nil)
(subtest "make-uri"
(let ((uri (cl-selenium::make-uri "/session")))
(is (format nil "~a://~a:~a/"
(quri:uri-scheme uri)
(quri:uri-ho... | null | https://raw.githubusercontent.com/TatriX/cl-selenium-webdriver/51a4b6833731281353ae6585e404dc934ad8df33/t/selenium.lisp | lisp | (in-package :cl-user)
(defpackage cl-selenium-test
(:use :cl :cl-selenium :cl-selenium-utils :prove))
(in-package :cl-selenium-test)
(plan nil)
(subtest "make-uri"
(let ((uri (cl-selenium::make-uri "/session")))
(is (format nil "~a://~a:~a/"
(quri:uri-scheme uri)
(quri:uri-ho... | |
632a8a5962edf27d498d4f3e656a6e0b0dab134f05a87ad9acba59f02dcbc28c | ghc/ghc | Regs.hs |
--------------------------------------------------------------------------------
| Deal with Cmm registers
--
module GHC.CmmToLlvm.Regs (
lmGlobalRegArg, lmGlobalRegVar, alwaysLive,
stgTBAA, baseN, stackN, heapN, rxN, topN, tbaa, getTBAA
) where
import GHC.Prelude
import GHC.Llvm
import GHC.... | null | https://raw.githubusercontent.com/ghc/ghc/93f0e3c49cea484bd6e838892ff8702ec51f34c3/compiler/GHC/CmmToLlvm/Regs.hs | haskell | ------------------------------------------------------------------------------
Need to make sure the names here can't conflict with the unique generated
names. Uniques generated names containing only base62 chars. So using say
the '_' char guarantees this.
on its own branch that is never aliased (e.g never us... |
| Deal with Cmm registers
module GHC.CmmToLlvm.Regs (
lmGlobalRegArg, lmGlobalRegVar, alwaysLive,
stgTBAA, baseN, stackN, heapN, rxN, topN, tbaa, getTBAA
) where
import GHC.Prelude
import GHC.Llvm
import GHC.Cmm.Expr
import GHC.Platform
import GHC.Data.FastString
import GHC.Utils.Panic ( pan... |
fede19aae59edec64214608f3b00647cc49b7b122a105985fd3943f6429a28db | lagenorhynque/aqoursql | members.clj | (ns aqoursql.resolver.members
(:require
[aqoursql.boundary.db.member :as db.member]
[aqoursql.util.validator :as validator :refer [when-valid]]))
(defn fetch-member-by-id [{:keys [db]} {:keys [id]} _]
(db.member/find-member-by-id db id))
(defn list-members [{:keys [db]} args _]
(when-valid [[] args [:map
... | null | https://raw.githubusercontent.com/lagenorhynque/aqoursql/a7f00ee588ff7e1c1f10ac3f550aafea2ef661ab/src/aqoursql/resolver/members.clj | clojure | (ns aqoursql.resolver.members
(:require
[aqoursql.boundary.db.member :as db.member]
[aqoursql.util.validator :as validator :refer [when-valid]]))
(defn fetch-member-by-id [{:keys [db]} {:keys [id]} _]
(db.member/find-member-by-id db id))
(defn list-members [{:keys [db]} args _]
(when-valid [[] args [:map
... | |
e086b66b3161772133ae0e7092f64b051473ed0d3804d3d1592ffccf29316436 | cbaggers/rtg-math | non-consing.lisp | (in-package #:rtg-math.quaternions.non-consing)
;;----------------------------------------------------------------
(defn-inline set-components ((w single-float) (x single-float)
(y single-float) (z single-float)
(quat quaternion)) quaternion
(declare (optimi... | null | https://raw.githubusercontent.com/cbaggers/rtg-math/29fc5b3d0028a4a11a82355ecc8cca62662c69e0/quaternions/non-consing.lisp | lisp | ----------------------------------------------------------------
----------------------------------------------------------------
----------------------------------------------------------------
----------------------------------------------------------------
-----------------------------------------------------------... | (in-package #:rtg-math.quaternions.non-consing)
(defn-inline set-components ((w single-float) (x single-float)
(y single-float) (z single-float)
(quat quaternion)) quaternion
(declare (optimize (speed 3) (safety 1) (debug 1)))
(setf (w quat) w
(x q... |
c81f27b133ddf4f1ccb0f9ad4724265754da8deb785e758210f691c992f62f1d | athos/syntactic-closure | loop.clj | (ns loop
(:refer-clojure :exclude [for])
(:use [syntactic-closure.core :only [define-syntax sc-macro-transformer make-syntactic-closure quasiquote]]
[syntactic-closure :only [defsyntax qq]]))
;; verbose version
(define-syntax for' [[id init test step] & body]
(sc-macro-transformer
(fn [env]
(letf... | null | https://raw.githubusercontent.com/athos/syntactic-closure/e251b03a199507df4bbc35788230d434d6506634/examples/loop.clj | clojure | verbose version
concise version | (ns loop
(:refer-clojure :exclude [for])
(:use [syntactic-closure.core :only [define-syntax sc-macro-transformer make-syntactic-closure quasiquote]]
[syntactic-closure :only [defsyntax qq]]))
(define-syntax for' [[id init test step] & body]
(sc-macro-transformer
(fn [env]
(letfn [(close [exp free... |
67b773092b682ef3c612190f7fb9fc0ed1c506a4024a2180a996e98e8baaeea6 | PataphysicalSociety/soupault | plugin_api.ml | open Soupault_common
exception Plugin_error of string
exception Plugin_exit of string option
let plugin_error err = raise (Plugin_error err)
(* Please note that these functions use "string, regex" argument order.
This inconsistency with internal regex functions is unfortunate,
but it's been this way since the ... | null | https://raw.githubusercontent.com/PataphysicalSociety/soupault/1c441398a89259eb224afa860e9eadae471e5b85/src/plugin_api.ml | ocaml | Please note that these functions use "string, regex" argument order.
This inconsistency with internal regex functions is unfortunate,
but it's been this way since the introduction of the Lua API
and will have to stay this way.
Map
For ordered iteration.
Take up to N keys from a hash and move them to a ... | open Soupault_common
exception Plugin_error of string
exception Plugin_exit of string option
let plugin_error err = raise (Plugin_error err)
module Re_wrapper = struct
let replace ?(all=false) s pat sub =
try
Regex_utils.Raw.replace ~all:all ~regex:pat ~sub:sub s
with Regex_utils.Bad_regex ->
p... |
ba4063e44f3ab13447d3a6d7be96dc2bcbf94cb94f015d7c1d1c2040a38b1f26 | tamarin-prover/tamarin-prover | Compression.hs | -- |
Copyright : ( c ) 2019 < >
-- License : GPL v3 (see LICENSE)
--
Maintainer : < >
Portability : GHC only
--
We try to compress as much as possible the MSR rules
--
--
Two rules can be merged if they do not merge obaservable actions .
--
module Sapic.Compression (
pathCompression
) whe... | null | https://raw.githubusercontent.com/tamarin-prover/tamarin-prover/e6854c9355274a7363c7481d27b753789604c2e2/lib/sapic/src/Sapic/Compression.hs | haskell | |
License : GPL v3 (see LICENSE)
We compress as much as possible silent actions
get all rules with premice the given fact
get all rules producing the given fact
Get the list of all state facts produced by a rule
++ "_" ++ n'
NOTE: concatenating makes veryyyy big name rules, that completely make the the... | Copyright : ( c ) 2019 < >
Maintainer : < >
Portability : GHC only
We try to compress as much as possible the MSR rules
Two rules can be merged if they do not merge obaservable actions .
module Sapic.Compression (
pathCompression
) where
import Control.Monad.Catch
import qualified Data.Set ... |
75227d49b3b5848fdb5a31983c63fed803e13f687a7406067af343bc11359ef0 | mbutterick/quad | doc.rkt | #lang debug racket
(require "struct.rkt"
quad/quad
pitfall)
(provide (all-defined-out))
(define q:doc (make-quad
#:type doc-quad
#:draw-start (λ (q doc) (start-doc doc))
#:draw-end (λ (q doc) (end-doc doc))))
| null | https://raw.githubusercontent.com/mbutterick/quad/395447f35c2fb9fc7b6199ed185850906d80811d/quadwriter/doc.rkt | racket | #lang debug racket
(require "struct.rkt"
quad/quad
pitfall)
(provide (all-defined-out))
(define q:doc (make-quad
#:type doc-quad
#:draw-start (λ (q doc) (start-doc doc))
#:draw-end (λ (q doc) (end-doc doc))))
| |
c2b2a13e46c24d742a20491f61ea2a329ddd94b634105f94153ff20dfadb4c6f | VisionsGlobalEmpowerment/webchange | state.cljs | (ns webchange.lesson-builder.widgets.activity-actions.state
(:require
[re-frame.core :as re-frame]
[webchange.lesson-builder.layout.menu.state :as menu]
[webchange.lesson-builder.state :as state]
[webchange.lesson-builder.state-flipbook :as flipbook-state]))
(re-frame/reg-sub
::menu-items
:<- [::... | null | https://raw.githubusercontent.com/VisionsGlobalEmpowerment/webchange/146f820376d8effd56ac95f50b90d6bc5f5a3b1f/src/cljs/webchange/lesson_builder/widgets/activity_actions/state.cljs | clojure | (ns webchange.lesson-builder.widgets.activity-actions.state
(:require
[re-frame.core :as re-frame]
[webchange.lesson-builder.layout.menu.state :as menu]
[webchange.lesson-builder.state :as state]
[webchange.lesson-builder.state-flipbook :as flipbook-state]))
(re-frame/reg-sub
::menu-items
:<- [::... | |
c8a1ebc2bcbee87d0ea3938b83a62059e9deca53d659e3f095c2fa35156fdd7c | clojure/algo.graph | project.clj | (defproject algo.graph "0.1.0-SNAPSHOT"
:description "Basic graph theory algorithms."
:license {:name "Eclipse Public License"
:url "-v10.html"}
:global-vars {*warn-on-reflection* true}
:repositories {"sonatype-oss-public" "/"}
:source-paths ["src/main/clojure"]
:test-paths ["src/test/clojure... | null | https://raw.githubusercontent.com/clojure/algo.graph/162279bfdebe34ace5e8c8d51b32e402ce554e09/project.clj | clojure | (defproject algo.graph "0.1.0-SNAPSHOT"
:description "Basic graph theory algorithms."
:license {:name "Eclipse Public License"
:url "-v10.html"}
:global-vars {*warn-on-reflection* true}
:repositories {"sonatype-oss-public" "/"}
:source-paths ["src/main/clojure"]
:test-paths ["src/test/clojure... | |
325bb181f39bfff795df66238e2d317dbd7efd9489f604624a93a0cd4587968b | sirherrbatka/statistical-learning | methods.lisp | (cl:in-package #:statistical-learning.club-drf)
(defmethod sl.ensemble:prune-trees ((algorithm parameters)
ensemble
train-data
target-data)
(bind ((sample-size (sample-size algorithm))
((train-data t... | null | https://raw.githubusercontent.com/sirherrbatka/statistical-learning/d92651a2391edc15658dbaef5517bac91b084ec0/source/club-drf/methods.lisp | lisp | (cl:in-package #:statistical-learning.club-drf)
(defmethod sl.ensemble:prune-trees ((algorithm parameters)
ensemble
train-data
target-data)
(bind ((sample-size (sample-size algorithm))
((train-data t... | |
b95eb9119ee02db3840a9ac503f399be61be814385ee2b559550a7604205c910 | Mesabloo/diagnose | Internal.hs | # LANGUAGE CPP #
# LANGUAGE FlexibleInstances #
-- |
-- Module : Error.Diagnose.Diagnostic.Internal
-- Description : Internal workings for diagnostic definitions and pretty printing.
Copyright : ( c ) , 2021 - 2022
-- License : BSD3
-- Stability : experimental
-- Portability : Portable
--
/Warning/ ... | null | https://raw.githubusercontent.com/Mesabloo/diagnose/c8e10f0bc0b30c95617d9d3c89e0a7f768b6e62f/src/Error/Diagnose/Diagnostic/Internal.hs | haskell | |
Module : Error.Diagnose.Diagnostic.Internal
Description : Internal workings for diagnostic definitions and pretty printing.
License : BSD3
Stability : experimental
Portability : Portable
It is also highly undocumented.
Please limit yourself to the "Error.Diagnose.Diagnostic"... | # LANGUAGE CPP #
# LANGUAGE FlexibleInstances #
Copyright : ( c ) , 2021 - 2022
/Warning/ : The API of this module can break between two releases , therefore you should not rely on it .
module Error.Diagnose.Diagnostic.Internal (module Error.Diagnose.Diagnostic.Internal, def) where
import Control.Monad.IO.Cla... |
718d301d479034f64d14670f5256192e89479455da5f2135bad96c92d0f95bdc | dalaing/little-languages | Type.hs | # LANGUAGE TemplateHaskell #
# LANGUAGE KindSignatures #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE DataKinds #
# LANGUAGE TypeFamilies #
# LANGUAGE UndecidableInstances #
{-# LANGUAGE GADTs #-}
# LANGUAGE InstanceSigs #
# LANGUAGE PolyKinds #
module STLC.Type where
import Control.Lens
import Data.Singletons.Prelude... | null | https://raw.githubusercontent.com/dalaing/little-languages/9f089f646a5344b8f7178700455a36a755d29b1f/code/old/prototypes/classy/src/STLC/Type.hs | haskell | # LANGUAGE GADTs # | # LANGUAGE TemplateHaskell #
# LANGUAGE KindSignatures #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE DataKinds #
# LANGUAGE TypeFamilies #
# LANGUAGE UndecidableInstances #
# LANGUAGE InstanceSigs #
# LANGUAGE PolyKinds #
module STLC.Type where
import Control.Lens
import Data.Singletons.Prelude
import Data.Singletons... |
46c8ccee31432c5ae41b0895393580907d03f98bacf85551333f1dff04a283df | SparkFund/spec-tacular | schema.clj | (ns spark.spec-tacular.schema
"Creating Datomic schemas from specifications"
(:refer-clojure :exclude [read-string read assoc!])
(:use [spark.spec-tacular :exclude [diff]]
spark.spec-tacular.spec
spark.spec-tacular.datomic
[clojure.string :only [lower-case]])
(:require [clojure.core.type... | null | https://raw.githubusercontent.com/SparkFund/spec-tacular/2ddeaa0a33593a5e71f377368ded4701fa223e20/src/spark/spec_tacular/schema.clj | clojure | but it is not intended to be used as a Datomic schema .
TODO: is that regexp qualified enough?
TODO: this is a diff not a check, checks throw errors
TODO: Add more checks! Be strict!
-- collects all entities that have been installed | (ns spark.spec-tacular.schema
"Creating Datomic schemas from specifications"
(:refer-clojure :exclude [read-string read assoc!])
(:use [spark.spec-tacular :exclude [diff]]
spark.spec-tacular.spec
spark.spec-tacular.datomic
[clojure.string :only [lower-case]])
(:require [clojure.core.type... |
d3f0581401e653f1abbdfe68d8319e532f4e37f937a0fb26ff5bbe0b6a38c24b | WorksHub/client | location.cljc | (ns wh.common.specs.location
(:require
[#?(:clj clojure.spec.alpha
:cljs cljs.spec.alpha) :as s]
[#?(:clj clojure.spec.gen.alpha
:cljs cljs.spec.gen.alpha) :as gen]
[spec-tools.core :as st]
[wh.common.data :as data]
[wh.common.specs.primitives :as p]))
(s/def :wh.location/street... | null | https://raw.githubusercontent.com/WorksHub/client/9e900ca54dfc1facfb018e93302998155bf05aee/common/src/wh/common/specs/location.cljc | clojure | (ns wh.common.specs.location
(:require
[#?(:clj clojure.spec.alpha
:cljs cljs.spec.alpha) :as s]
[#?(:clj clojure.spec.gen.alpha
:cljs cljs.spec.gen.alpha) :as gen]
[spec-tools.core :as st]
[wh.common.data :as data]
[wh.common.specs.primitives :as p]))
(s/def :wh.location/street... | |
17a24ec7b80baba694fe5c6e2306c8d1cc2df110e80a5f4d1f4c04e6b5ba0d10 | SimulaVR/godot-haskell | VideoStreamWebm.hs | # LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving ,
TypeFamilies , TypeOperators , FlexibleContexts , DataKinds ,
MultiParamTypeClasses #
TypeFamilies, TypeOperators, FlexibleContexts, DataKinds,
MultiParamTypeClasses #-}
module Godot.Core.VideoStreamWebm
(Godot.Core.VideoStreamWebm.get_file... | null | https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/VideoStreamWebm.hs | haskell | # LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving ,
TypeFamilies , TypeOperators , FlexibleContexts , DataKinds ,
MultiParamTypeClasses #
TypeFamilies, TypeOperators, FlexibleContexts, DataKinds,
MultiParamTypeClasses #-}
module Godot.Core.VideoStreamWebm
(Godot.Core.VideoStreamWebm.get_file... | |
18db0909964e34cef99030971e1d017fc67b8820c107263a2eb7453be3a7300a | pirapira/coq2rust | minilib.ml | (***********************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - Rocquencourt & LRI - CNRS - Orsay
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ... | null | https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/ide/minilib.ml | ocaml | *********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
********************************************************************* | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - Rocquencourt & LRI - CNRS - Orsay
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
let rec print_list print fm... |
db46d5c2ceda2b42c41df94fb90fe9007831d5ac36b0517770dfa9212aa34ab2 | fisxoj/json-schema | draft7.lisp | (defpackage :json-schema/test/draft7
(:use :cl :json-schema-test-case-helper))
(in-package :json-schema/test/draft7)
(test-cases-from-file "additionalItems")
(test-cases-from-file "additionalProperties")
(test-cases-from-file "allOf")
(test-cases-from-file "anyOf")
(test-cases-from-file "boolean_schema")
(test... | null | https://raw.githubusercontent.com/fisxoj/json-schema/9afa7671f39219c757fc74fd29ac8935befcd754/t/draft7.lisp | lisp | optional tests | (defpackage :json-schema/test/draft7
(:use :cl :json-schema-test-case-helper))
(in-package :json-schema/test/draft7)
(test-cases-from-file "additionalItems")
(test-cases-from-file "additionalProperties")
(test-cases-from-file "allOf")
(test-cases-from-file "anyOf")
(test-cases-from-file "boolean_schema")
(test... |
5ba1132207d6a9b554fc9252690f635cb1224db9f9fbc580f6ef394b55bf538e | rtoy/cmucl | compile-packed-sse2.lisp | (compile-file "modules:packed-sse2/packed-sse2"
:load t)
| null | https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/contrib/packed-sse2/compile-packed-sse2.lisp | lisp | (compile-file "modules:packed-sse2/packed-sse2"
:load t)
| |
5b827127d315064f5da7b2a669ee7d312b1ef2507396440268076ab633f50902 | schell/reflex-sdl2 | Internal.hs | -- | This module holds low-level implementation details of reflex-sdl2
-- that are not meant to be dealt with by the user of the library.
-- None-the-less these details are exported here just in case you
-- need them :)
module Reflex.SDL2.Internal where
import Control.Concurrent (MVar)
import Data.... | null | https://raw.githubusercontent.com/schell/reflex-sdl2/6dadf2c4f383b8a58fcd73616996b219c4f93972/src/Reflex/SDL2/Internal.hs | haskell | | This module holds low-level implementation details of reflex-sdl2
that are not meant to be dealt with by the user of the library.
None-the-less these details are exported here just in case you
need them :)
----------------------------------------------------------------------------
An event for reflex's post n... | module Reflex.SDL2.Internal where
import Control.Concurrent (MVar)
import Data.Word (Word32)
import Reflex (Event)
import SDL hiding (Event)
| Holds a slot of ' Event ' for each kind of SDL2 event plus a couple extras :
An event for * any... |
41c2b1f1be11d4e4a60450a8df5ba1646acf7c0aed808d24e73e7ed3c2cc6b82 | Bost/corona_cases | mockup.clj | ;; (printf "Current-ns [%s] loading %s ...\n" *ns* 'corona.api.mockup)
(ns corona.api.mockup
"TODO download the json files when starting instead of serving them statically
TODO run in a separate REPL under different JVM"
(:require [compojure.core :refer [defroutes GET]]
[ring.adapter.jetty :refer [ru... | null | https://raw.githubusercontent.com/Bost/corona_cases/aa1bcfc7f6c4756cd14cd1ef21fc9dbd5cdedbd9/src/corona/api/mockup.clj | clojure | (printf "Current-ns [%s] loading %s ...\n" *ns* 'corona.api.mockup)
(printf "Current-ns [%s] loading %s ... done\n" *ns* 'corona.api.mockup) |
(ns corona.api.mockup
"TODO download the json files when starting instead of serving them statically
TODO run in a separate REPL under different JVM"
(:require [compojure.core :refer [defroutes GET]]
[ring.adapter.jetty :refer [run-jetty]]
[corona.envdef :refer [mockup-port]]
... |
ff94fdddeb12b7d9fd24c5e939245cee822593f5d0effe12504c41b427bdbcea | lambdaisland/reitit-jaatya | freeze.clj | (ns lambdaisland.reitit-jaatya.freeze
(:require [clojure.java.io :as io]
[lambdaisland.reitit-jaatya.sitemap :as sitemap]
[reitit.ring :as ring]
[ring.mock.request :as mock]
[reitit.core :as r]))
(defn get-router [handler]
(-> handler meta ::r/router))
(defn freeze-... | null | https://raw.githubusercontent.com/lambdaisland/reitit-jaatya/c0cf38b6b58490d35d4eff9de76e5e34519ff2fa/src/lambdaisland/reitit_jaatya/freeze.clj | clojure | default build
customised build | (ns lambdaisland.reitit-jaatya.freeze
(:require [clojure.java.io :as io]
[lambdaisland.reitit-jaatya.sitemap :as sitemap]
[reitit.ring :as ring]
[ring.mock.request :as mock]
[reitit.core :as r]))
(defn get-router [handler]
(-> handler meta ::r/router))
(defn freeze-... |
05f72560c75ddbb751d8332b6518919deb27c4a9227c0e16222cd920f5763bc8 | freizl/dive-into-haskell | Main.hs | # LANGUAGE CPP #
# LANGUAGE TemplateHaskell #
|
This is the entry point for this web server application . It supports
easily switching between interpreting source and running statically
compiled code .
In either mode , the generated program should be run from the root of
the project tree . When it is r... | null | https://raw.githubusercontent.com/freizl/dive-into-haskell/b18a6bfe212db6c3a5d707b4a640170b8bcf9330/codes/web/hello-snap/src/Main.hs | haskell | All source directories will be watched for updates
automatically. If any extra directories should be watched for
updates, include them here. | # LANGUAGE CPP #
# LANGUAGE TemplateHaskell #
|
This is the entry point for this web server application . It supports
easily switching between interpreting source and running statically
compiled code .
In either mode , the generated program should be run from the root of
the project tree . When it is r... |
ace79a5bb3f70f156ba6ac813be7bfd91424a5bd75f19bc2270c27f133f2d1a3 | exercism/racket | bob.rkt | #lang racket
(provide response-for)
(define (response-for prompt)
(error "Not implemented yet"))
| null | https://raw.githubusercontent.com/exercism/racket/ce7b72cfde0695588771031d6b69d8d1cb199038/exercises/practice/bob/bob.rkt | racket | #lang racket
(provide response-for)
(define (response-for prompt)
(error "Not implemented yet"))
| |
52241a80588ce2112007543f0086af669991c60e3c73c82003f9361cf1a16b49 | ciste/ciste | core_test.clj | (ns ciste.core-test
(:use [ciste.core :only [defaction with-format with-serialization
*format* *serialization*]]
[ciste.test-helper :only [test-environment-fixture]]
[midje.sweet :only [fact =>]]))
(test-environment-fixture
(fact "with-serialization"
*serialization* =>... | null | https://raw.githubusercontent.com/ciste/ciste/fac15456f9f00867c0073b7e55e5e8b5cd4a902d/test/ciste/core_test.clj | clojure | (ns ciste.core-test
(:use [ciste.core :only [defaction with-format with-serialization
*format* *serialization*]]
[ciste.test-helper :only [test-environment-fixture]]
[midje.sweet :only [fact =>]]))
(test-environment-fixture
(fact "with-serialization"
*serialization* =>... | |
66ca9d29daa002355dd9b39fdfb9d5e478b075d4fd52aef0d307a23671930f85 | pbv/codex | Db.hs | # LANGUAGE OverloadedStrings , ScopedTypeVariables #
Initialize backend SQLite database tables
Initialize backend SQLite database tables
-}
module Codex.Db where
import Control.Monad
import qualified Data.Map as Map
import Data.Map.Syntax
import qualified Database.SQLite.Simple as S
import... | null | https://raw.githubusercontent.com/pbv/codex/1a5a81965b12f834b436e2165c07120360aded99/src/Codex/Db.hs | haskell | | Create the necessary database tables, if not already initialized.
Note: for a bigger app, you probably want to create a 'version'
table too and use it to keep track of schema version and
implement your schema upgrade procedure here. | # LANGUAGE OverloadedStrings , ScopedTypeVariables #
Initialize backend SQLite database tables
Initialize backend SQLite database tables
-}
module Codex.Db where
import Control.Monad
import qualified Data.Map as Map
import Data.Map.Syntax
import qualified Database.SQLite.Simple as S
import... |
e41e863e601ed8be380a70c97d3a6686b0f00b1484c67207856492b084dbc922 | yetanalytics/flint | prefix_test.cljc | (ns com.yetanalytics.flint.validate.prefix-test
(:require [clojure.test :refer [deftest testing is]]
[clojure.spec.alpha :as s]
[com.yetanalytics.flint.validate :as v]
[com.yetanalytics.flint.validate.prefix :as vp]
[com.yetanalytics.flint.spec.query :as qs]
... | null | https://raw.githubusercontent.com/yetanalytics/flint/b0a2530582e04f5592869b0152b846864c283d77/src/test/com/yetanalytics/flint/validate/prefix_test.cljc | clojure | (ns com.yetanalytics.flint.validate.prefix-test
(:require [clojure.test :refer [deftest testing is]]
[clojure.spec.alpha :as s]
[com.yetanalytics.flint.validate :as v]
[com.yetanalytics.flint.validate.prefix :as vp]
[com.yetanalytics.flint.spec.query :as qs]
... | |
7d1ab56c3194cc1a1a89b97ea7edb3616b08a3ad67fb20399c6f666e456ca116 | samrushing/irken-compiler | t_match0.scm |
(include "lib/core.scm")
(define fact
0 -> 1
n -> (* n (fact (- n 1)))
)
(define fact-iter
0 a -> a
n a -> (fact-iter (- n 1) (* n a))
)
{a=(fact 5) b=(fact-iter 5 1)}
| null | https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/tests/t_match0.scm | scheme |
(include "lib/core.scm")
(define fact
0 -> 1
n -> (* n (fact (- n 1)))
)
(define fact-iter
0 a -> a
n a -> (fact-iter (- n 1) (* n a))
)
{a=(fact 5) b=(fact-iter 5 1)}
| |
25a0a82cdee8f145a450b4a6a6e8f7485b3f48c263bf6c8d451c825b5cb1bf44 | janestreet/hardcaml_circuits | add.ml | open Base
open Hardcaml
include Add_intf
module Make_gen (B : Gen) = struct
module B = B
open B
module Add_result = struct
type t =
{ carry : B.bit
; sum : B.bit
}
[@@deriving sexp_of]
end
type add_result = Add_result.t =
{ carry : B.bit
; sum : B.bit
}
let full_add... | null | https://raw.githubusercontent.com/janestreet/hardcaml_circuits/a2c2d1ea3e6957c3cda4767d519e94c20f1172b2/src/add.ml | ocaml | open Base
open Hardcaml
include Add_intf
module Make_gen (B : Gen) = struct
module B = B
open B
module Add_result = struct
type t =
{ carry : B.bit
; sum : B.bit
}
[@@deriving sexp_of]
end
type add_result = Add_result.t =
{ carry : B.bit
; sum : B.bit
}
let full_add... | |
16d93ca159400e87cf8980332686b85b308e88faaef2bcf8cc85aee0d0a65aa3 | privet-kitty/cl-competitive | convex-hull.lisp | (defpackage :cp/convex-hull
(:use :cl)
(:export #:make-convex-hull!)
(:documentation
"Provides monotone chain algorithm for 2D convex hull of points.
Time: O(nlog(n))."))
(in-package :cp/convex-hull)
(declaim (inline make-convex-hull!))
(defun make-convex-hull! (points &optional (eps 0))
"Returns a vector ... | null | https://raw.githubusercontent.com/privet-kitty/cl-competitive/f8f45b8090531b41310b386daa5a5c7a0fc3dd88/module/convex-hull.lisp | lisp | FIXME: the returned vector may contain duplicate vertices in a degenerative
#(#C(1 2) #C(1 2))
REVIEW: workaround for the above mentioned problem?
(when (<= (abs (- (aref res (- end 1)) (aref res (- end 2)))) eps)
(decf end)) | (defpackage :cp/convex-hull
(:use :cl)
(:export #:make-convex-hull!)
(:documentation
"Provides monotone chain algorithm for 2D convex hull of points.
Time: O(nlog(n))."))
(in-package :cp/convex-hull)
(declaim (inline make-convex-hull!))
(defun make-convex-hull! (points &optional (eps 0))
"Returns a vector ... |
aaa8950614743c1a1e0ff8c957dec5a314cddb03dda8f8031fbda75a9ce116cd | shayan-najd/NativeMetaprogramming | BadImport08.hs | {-# LANGUAGE Safe #-}
-- | Import unsafe module Control.ST to make sure it fails
module Main where
import Control.Monad.ST.Unsafe
f :: Int
f = 2
main :: IO ()
main = putStrLn $ "X is: " ++ show f
| null | https://raw.githubusercontent.com/shayan-najd/NativeMetaprogramming/24e5f85990642d3f0b0044be4327b8f52fce2ba3/testsuite/tests/safeHaskell/unsafeLibs/BadImport08.hs | haskell | # LANGUAGE Safe #
| Import unsafe module Control.ST to make sure it fails | module Main where
import Control.Monad.ST.Unsafe
f :: Int
f = 2
main :: IO ()
main = putStrLn $ "X is: " ++ show f
|
b40cb68470dd5ecef64452f512c51136321e92f962d7ab94f5c2751064b3071f | huiqing/percept2 | percept2_graph.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 2007 - 2009 . All Rights Reserved .
%%
The contents of this file are subject to the Erlang Public License ,
Version 1.1 , ( the " License " ) ; you may not use this file except in
%% compliance with the License. You should have received a copy of the
%% Erlang Pu... | null | https://raw.githubusercontent.com/huiqing/percept2/fa796a730d6727210a71f185e6a39a960c2dcb90/src/percept2_graph.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 2007 - 2009 . All Rights Reserved .
The contents of this file are subject to the Erlang Public License ,
Version 1.1 , ( the " License " ) ; you may not use this file except in
Software distributed under the License is distributed on an " AS IS "
@doc Interface for CGI request on graphs... |
361b1c6d193f120cbad8f0109d0f24d7d95a405f525a8e6f94e6f504ab2d21a2 | khigia/ocaml-anneal | tests.ml | open OUnit
(** The list of tests registered by the source code. *)
let tests = ref []
(** Register a function as a test. *)
let register name test =
tests := (name, test) :: !tests
(** Create a suite with all tests. *)
let create_suite name =
let utests = List.rev_map
(fun (name, test) -> name >:: te... | null | https://raw.githubusercontent.com/khigia/ocaml-anneal/70ff50f1b4dc28875f1246822dbd1b8d1fbff912/test/tests.ml | ocaml | * The list of tests registered by the source code.
* Register a function as a test.
* Create a suite with all tests. | open OUnit
let tests = ref []
let register name test =
tests := (name, test) :: !tests
let create_suite name =
let utests = List.rev_map
(fun (name, test) -> name >:: test)
!tests
in
name >::: utests
let run name =
let suite = create_suite name in
run_test_tt ~verbose:true su... |
d27ed2a070603d0d7919eebbf96a1e31731062e26b9d83c75116fe95f80d3ab5 | janestreet/memtrace_viewer_with_deps | substring_intf.ml | (** Interface for {{!Core_kernel.Substring}[Substring]}. *)
open! Import
module type S = sig
(** The type of strings that type [t] is a substring of. *)
type base
type t
include Container.S0 with type t := t with type elt := char
val base : t -> base
(** [pos] refers to the position in the base string... | null | https://raw.githubusercontent.com/janestreet/memtrace_viewer_with_deps/5a9e1f927f5f8333e2d71c8d3ca03a45587422c4/vendor/core_kernel/src/substring_intf.ml | ocaml | * Interface for {{!Core_kernel.Substring}[Substring]}.
* The type of strings that type [t] is a substring of.
* [pos] refers to the position in the base string, not any other substring that this
substring was generated from.
* These functions always copy.
* These functions always copy.
* These functions alwa... |
open! Import
module type S = sig
type base
type t
include Container.S0 with type t := t with type elt := char
val base : t -> base
val pos : t -> int
* Per [ String.get ] and [ Bigstring.get ] , this raises an exception if the index is out
of bounds .
of bounds. *)
val get : t -> int ->... |
5925b5b6f2142e06919065d9a62fd796680121b7ce6f9b8d5ef368a0561e0213 | input-output-hk/cardano-rt-view | CLI.hs | # LANGUAGE LambdaCase #
module CLI
(
parseArguments
)
where
import System.Environment (getArgs)
parseArguments :: IO (FilePath, FilePath, Int)
parseArguments =
getArgs >>= return . parseArgs >>= \case
Left m -> putStrLn "Usage: analyzer <rt-view-config> <json-with-logobjects> <rtview-web-port... | null | https://raw.githubusercontent.com/input-output-hk/cardano-rt-view/0ff669a5acc8d81a35aa5a924cbb79978d0999a8/test/rt-view-analyzer/src/CLI.hs | haskell | # LANGUAGE LambdaCase #
module CLI
(
parseArguments
)
where
import System.Environment (getArgs)
parseArguments :: IO (FilePath, FilePath, Int)
parseArguments =
getArgs >>= return . parseArgs >>= \case
Left m -> putStrLn "Usage: analyzer <rt-view-config> <json-with-logobjects> <rtview-web-port... | |
c60f300e2079571d17cc1d776c61abaaaa6b44ff837449532dea96f95bbc5fab | emmanueltouzery/hsexif | Tests.hs | # LANGUAGE OverloadedStrings , CPP #
import Test.Hspec
import Test.HUnit
import qualified Data.ByteString.Lazy as B
import qualified Data.ByteString as BS
import Data.Text (Text)
import qualified Data.Text as T
import qualified Data.Map as Map
import Data.Map (Map)
import Data.Time.LocalTime
import Data.Time.Calendar
... | null | https://raw.githubusercontent.com/emmanueltouzery/hsexif/095b7711d9ec44d0d39dbd82e52e751c8dde39dc/tests/Tests.hs | haskell | the file is truncated. original is at:
the makerNote is HUGE. so test it separately.
test only the length of the maker note | # LANGUAGE OverloadedStrings , CPP #
import Test.Hspec
import Test.HUnit
import qualified Data.ByteString.Lazy as B
import qualified Data.ByteString as BS
import Data.Text (Text)
import qualified Data.Text as T
import qualified Data.Map as Map
import Data.Map (Map)
import Data.Time.LocalTime
import Data.Time.Calendar
... |
e6987bd3499791671fe0f5a76f5670762ef0230b5cc91bd46f33c0ebcae127a7 | haskellcamargo/sudowoodo | Woodo.hs | module Main where
import System.Posix.User
main :: IO ()
main = do
sudoMode <- fmap (== 0) getRealUserID
if sudoMode
then printPokemon sudowoodo
else putStrLn anotherPokemon
anotherPokemon :: String
anotherPokemon = "It is a tree pokémon!"
sudowoodo :: [String]
sudowoodo =
[" @@@ ... | null | https://raw.githubusercontent.com/haskellcamargo/sudowoodo/7448a75dc6a71c304ced559755e0116d67f16cc7/src/Woodo.hs | haskell | module Main where
import System.Posix.User
main :: IO ()
main = do
sudoMode <- fmap (== 0) getRealUserID
if sudoMode
then printPokemon sudowoodo
else putStrLn anotherPokemon
anotherPokemon :: String
anotherPokemon = "It is a tree pokémon!"
sudowoodo :: [String]
sudowoodo =
[" @@@ ... | |
e5c37af9f56ab45820685c0a8b7b0f4668b6aaf2f556504ef369c18504878691 | alakahakai/hackerrank | test.hs | import Control.Monad
import Data.Array
limit = 100
table0 = listArray ((1, 1, 0), (limit, limit, 1)) $
map f [(n, m, d) | n <- [1..limit], m <- [1..limit], d <- [0, 1]] where
f (1, 1, 0) = 1
f (1, 1, 1) = 0
f (1, m, 0) = 1
f (n, 1, 1) = 1
f _ = 0
transition prev = next whe... | null | https://raw.githubusercontent.com/alakahakai/hackerrank/465d17107bbe402daf750651bb57cf092305acf9/fp/test.hs | haskell | import Control.Monad
import Data.Array
limit = 100
table0 = listArray ((1, 1, 0), (limit, limit, 1)) $
map f [(n, m, d) | n <- [1..limit], m <- [1..limit], d <- [0, 1]] where
f (1, 1, 0) = 1
f (1, 1, 1) = 0
f (1, m, 0) = 1
f (n, 1, 1) = 1
f _ = 0
transition prev = next whe... | |
f72ce28132d7334b6e56d0ab3f283324c2d4f49d74524fbfe8ecd50642aaf5c4 | cpsc411/cpsc411-pub | 2c-run-time.rkt | #lang at-exp racket/base
(require
"compiler-lib.rkt"
(only-in racket/format ~a))
(provide
(all-defined-out))
; definitions used by the runtime
TODO : Should package these up a bit .... ORrr , better yet , rewrite them in one
; of the ILs and generate them :D
(define x86-64-runtime
@~a{
to a string , left ... | null | https://raw.githubusercontent.com/cpsc411/cpsc411-pub/757ececf84d54d86cfa0c2c6c84f1456c8765db9/cpsc411-lib/cpsc411/2c-run-time.rkt | racket | definitions used by the runtime
of the ILs and generate them :D
build the string backwards, then reverse
index into msg, starting at beginning
idiv requires register arg
clear r15 to store negative flag
if negative
stored in RAX ← Quotient, RDX ← Remainder.
convert digit to ASCII char
mov char into msg
if nu... | #lang at-exp racket/base
(require
"compiler-lib.rkt"
(only-in racket/format ~a))
(provide
(all-defined-out))
TODO : Should package these up a bit .... ORrr , better yet , rewrite them in one
(define x86-64-runtime
@~a{
to a string , left in buffer msg
The result should be a number in RAX
done:
number_to... |
0093be4e7389d2f0acc503e0895f91b9ba51b7d1ff8eabfd3345b0a2d0b86292 | jpmonettas/clograms | db.cljs | (ns clograms.db
(:require [clograms.re-grams.re-grams :as rg]
[datascript.core :as d]
[cljs.tools.reader :as tools-reader]
[clojure.string :as str]
[cognitect.transit :as transit]
[goog.string :as gstring]))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;... | null | https://raw.githubusercontent.com/jpmonettas/clograms/8586948b5e7439171f1d63030b7a34127c8a63f6/src/cljs/clograms/db.cljs | clojure |
Re-frame DB ;;
;
while we fix the file issue | (ns clograms.db
(:require [clograms.re-grams.re-grams :as rg]
[datascript.core :as d]
[cljs.tools.reader :as tools-reader]
[clojure.string :as str]
[cognitect.transit :as transit]
[goog.string :as gstring]))
(def project-browser-transitions
[:projects :n... |
71bdaf5079e599b66df644b93c90ab4783a86a17e911b0e82a5d65fe03f36a2e | c4-project/c4f | path_kind.ml | This file is part of c4f .
Copyright ( c ) 2018 - 2022 C4 Project
c4 t itself is licensed under the MIT License . See the LICENSE file in the
project root for more information .
Parts of c4 t are based on code from the Herdtools7 project
( ) : see the LICENSE.herd file in the
project... | null | https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/fuzz/src/path_kind.ml | ocaml | This file is part of c4f .
Copyright ( c ) 2018 - 2022 C4 Project
c4 t itself is licensed under the MIT License . See the LICENSE file in the
project root for more information .
Parts of c4 t are based on code from the Herdtools7 project
( ) : see the LICENSE.herd file in the
project... | |
16bb15da12ce9c3188340cdf01682f368ebb0de68567c86506d315ff2ad93aa5 | mpickering/apply-refact | Default35.hs | yes = concat . intersperse " " | null | https://raw.githubusercontent.com/mpickering/apply-refact/a4343ea0f4f9d8c2e16d6b16b9068f321ba4f272/tests/examples/Default35.hs | haskell | yes = concat . intersperse " " |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.