_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 |
|---|---|---|---|---|---|---|---|---|
f7c9ab14993086d27dde7f213febf5c830c17960b8a0536fb0002dfc098d68e4 | nyu-acsys/drift | substring2.ml |
let rec loop lk li lj =
if (li < lk) then
loop lk (li+1) (lj+1)
else lj < 31
let main (k:int(*-:{v:Int | true}*)) (from:int(*-:{v:Int | true}*)) =
if (k >= 0 && k <= 30 && from >= 0 && from <= k) then
(let i = from in
let j = 0 in
assert (loop k i j = true))
else (... | null | https://raw.githubusercontent.com/nyu-acsys/drift/51a3160d74b761626180da4f7dd0bb950cfe40c0/tests/benchmarks/DOrder/first/substring2.ml | ocaml | -:{v:Int | true}
-:{v:Int | true} |
let rec loop lk li lj =
if (li < lk) then
loop lk (li+1) (lj+1)
else lj < 31
if (k >= 0 && k <= 30 && from >= 0 && from <= k) then
(let i = from in
let j = 0 in
assert (loop k i j = true))
else () |
1f08b1eac4cbaa6a8634bcf1974128e701dc9036c37d3b1b3a6d6d83f14b8de1 | heyoka/faxe | esp_s7read.erl | %%%-------------------------------------------------------------------
@author
( C ) 2019 , < COMPANY >
%%% @doc
get data from a siemens s7 plc via the snap7 library
%%% @end
Created : 14 . June 2019 11:32:22
%%%-------------------------------------------------------------------
-module(esp_s7read).
-author("... | null | https://raw.githubusercontent.com/heyoka/faxe/0990e68d502fda8029a1f865612e7e37e703a3f6/apps/faxe/src/components/esp_s7read.erl | erlang | -------------------------------------------------------------------
@doc
@end
-------------------------------------------------------------------
API
API
raw aliases list
deprecated, use optimized instead
,
{func, vars,
{_As, List} = retrieve_ads(Opts),
List1 = translate_vars(List, VarsPre... | @author
( C ) 2019 , < COMPANY >
get data from a siemens s7 plc via the snap7 library
Created : 14 . June 2019 11:32:22
-module(esp_s7read).
-author("heyoka").
-behavior(df_component).
-include("faxe.hrl").
-export([
init/3, process/3, options/0,
handle_info/2, shutdown/1,
check_options/0,
metrics/0... |
59cb3145f22f67c20381bc0b71f56ca713117e507a6f7dd98f9fc063e694a4ce | ocaml-community/sedlex | subtraction.ml | let rec token buf =
match%sedlex buf with
| white_space ->
print_endline "\tWhitespace";
token buf
| Sub (Chars "ab", "b") ->
print_endline "a";
token buf
| Chars "ab" | "c" ->
print_endline "abc";
token buf
| Intersect ("d", Chars "abd") ->
prin... | null | https://raw.githubusercontent.com/ocaml-community/sedlex/d8eb183627c2fba9da8bdc19b07cf6b27bb0fee3/examples/subtraction.ml | ocaml | let rec token buf =
match%sedlex buf with
| white_space ->
print_endline "\tWhitespace";
token buf
| Sub (Chars "ab", "b") ->
print_endline "a";
token buf
| Chars "ab" | "c" ->
print_endline "abc";
token buf
| Intersect ("d", Chars "abd") ->
prin... | |
a830f1204f7574bf2ac0e44ee9400fc2c4cf5368895cf2f1d7f144e764938601 | josephwilk/finger-smudge | music_maker.clj | (ns finger-smudge.music-maker
(:require [dynne.sound :as sound]
[clojure.java.io :as io]
[primitive-math :as p]
[finger-smudge.fft :as fft]
[mikera.image.core :as img]
[mud.timing :as time]
[mud.core :as mud]
;;[clojure.core.matrix :a... | null | https://raw.githubusercontent.com/josephwilk/finger-smudge/9c5b16729bba54c198f50b0df8fab982cd7d50b6/src/finger_smudge/music_maker.clj | clojure | [clojure.core.matrix :as mat]
Notes is not rotated. lazy switch
(println y x)
For joes brain. | (ns finger-smudge.music-maker
(:require [dynne.sound :as sound]
[clojure.java.io :as io]
[primitive-math :as p]
[finger-smudge.fft :as fft]
[mikera.image.core :as img]
[mud.timing :as time]
[mud.core :as mud]
[clojure.core.matrix :as... |
bee909c8712e656f6b902fd858262c68f4a9f20749df25ec7aa6e41eb7dfb847 | project-oak/hafnium-verification | bufferOverrunProofObligations.mli |
* 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) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
... | null | https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/bufferoverrun/bufferOverrunProofObligations.mli | ocaml |
* 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) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
... | |
7def393510819b77006fb108d86108b37a605a2cf8f954dada21a1c01500c1ba | erlangonrails/devdb | yaws_debug.erl | %%%----------------------------------------------------------------------
%%% File : yaws_debug.erl
Author : < >
%%% Purpose :
Created : 7 Feb 2002 by < >
%%%----------------------------------------------------------------------
-module(yaws_debug).
-author('').
-include("../include/yaws.hrl").
-inc... | null | https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/scalaris/contrib/yaws/src/yaws_debug.erl | erlang | ----------------------------------------------------------------------
File : yaws_debug.erl
Purpose :
----------------------------------------------------------------------
debug dump %%%%%%%%%%%%%%%%%%%%%%%
keep proc status last, to report on hangs for the others
FIXME The 'top -b -n 1' invocation is actuall... | Author : < >
Created : 7 Feb 2002 by < >
-module(yaws_debug).
-author('').
-include("../include/yaws.hrl").
-include("../include/yaws_api.hrl").
-include("yaws_debug.hrl").
-export([typecheck/3,
format_record/3,
assert/4,
format/2,
derror/2,
dinfo/2,
... |
8a30ec92290a56bf670db82ca88a4ad147b04176b6500ed1f4cfe560e6c1fd9b | liqd/thentos | Pages.hs | {-# LANGUAGE OverloadedStrings #-}
-- | This module provides 'Html' pages and 'Form's (disgetive-functor thingies that parse filled-out
forms ) . The pages come in three flavours :
--
-- - *Pages* (starting with html tag and without holes);
-- - *Pagelets* (functions that return *complete pages*, but contain hole... | null | https://raw.githubusercontent.com/liqd/thentos/f7d53d8e9d11956d2cc83efb5f5149876109b098/thentos-core/src/Thentos/Frontend/Pages.hs | haskell | # LANGUAGE OverloadedStrings #
| This module provides 'Html' pages and 'Form's (disgetive-functor thingies that parse filled-out
- *Pages* (starting with html tag and without holes);
- *Pagelets* (functions that return *complete pages*, but contain holes that need to be filled
with the function's 'Html' argume... |
forms ) . The pages come in three flavours :
module Thentos.Frontend.Pages
( dashboardPagelet
, userRegisterPage
, userRegisterForm
, userRegisterRequestedPage
, userLoginPage
, userLoginForm
, resetPasswordRequestPage
, resetPasswordRequestForm
, resetPasswordRequestedPage
... |
31c44540f7f24e54b756b79395e764d1777771c75b614e2b63c222767fd341da | sgbj/MaximaSharp | strmac.lisp | -*- Mode : Lisp ; Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; The data in this file contains enhancments. ;;;;;
;;; ;;;;;
... | null | https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/src/strmac.lisp | lisp | Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ;
The data in this file contains enhancments. ;;;;;
;;;;;
; ; ; ;
All rights reserved ;;;;;
; ;
Data Represen... |
(in-package :maxima)
(macsyma-module strmac macro)
RAT - NUMER versus MRAT - NUMER .
(defmacro make-g-rep (operator . operands)
`(list (list ,operator) . ,operands))
(defmacro make-g-rep-simp (operator . operands)
`(list (list ,operator) . ,operands))
(defmacro g-rep-operator (exp) `(caar ,exp))
(defmacro g-... |
bc90837faece5ff11a50b96364709d661877e6d2c0a2b2ce24bc5b2130ee644f | diku-dk/futhark | Monad.hs | -- | Main monad in which the type checker runs, as well as ancillary
-- data definitions.
module Language.Futhark.TypeChecker.Monad
( TypeM,
runTypeM,
askEnv,
askImportName,
atTopLevel,
enteringModule,
bindSpaced,
qualifyTypeVars,
lookupMTy,
lookupImport,
localEnv,
TypeErro... | null | https://raw.githubusercontent.com/diku-dk/futhark/9e4ab92f81fdb22c020e719d53a51142ad8ce2da/src/Language/Futhark/TypeChecker/Monad.hs | haskell | | Main monad in which the type checker runs, as well as ancillary
data definitions.
| A collection of extra information regarding a type error.
| A single note.
| Information about an error during type checking.
| Prettyprint type error.
| Prettyprint type error, without location information. This can
be used ... | module Language.Futhark.TypeChecker.Monad
( TypeM,
runTypeM,
askEnv,
askImportName,
atTopLevel,
enteringModule,
bindSpaced,
qualifyTypeVars,
lookupMTy,
lookupImport,
localEnv,
TypeError (..),
prettyTypeError,
prettyTypeErrorNoLoc,
withIndexLink,
unappliedFun... |
a3d49f60442437d72a273f04a035afdc5f5bf38ce81da0dd94d3226edaa100fa | FlowForwarding/lincx | linc_us3_groups.erl | %%------------------------------------------------------------------------------
Copyright 2012 FlowForwarding.org
%%
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
%%... | null | https://raw.githubusercontent.com/FlowForwarding/lincx/7795923b51fa1e680511669f4a27404b2ed1f1dc/apps/linc_us3/src/linc_us3_groups.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, eithe... | Copyright 2012 FlowForwarding.org
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
@author Erlang Solutions Ltd. < >
2012 FlowForwarding.org
-module(linc_us3_groups).
-export([initialize/1,
terminate/1,
... |
6f52a25a7921ebb9265cf388cfae3e71b9b1bc8bb634a9dcd9f3db887655bae5 | herbelin/coq-hh | typeclasses_errors.ml | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/herbelin/coq-hh/296d03d5049fea661e8bdbaf305ed4bf6d2001d2/pretyping/typeclasses_errors.ml | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
i
i
Class name, method
found, exp... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
open Names
open Decl_kinds
op... |
fe32d378fa6ecaf0c31f0b14c92510d52601ef72fc4cb5fdac006d1deb0aed2b | timgilbert/haunting-refrain-posh | table.cljs | (ns haunting-refrain.route.table
(:require [mount.core :refer [defstate]]
[sibiro.core :as sibiro]
[shodan.console :as console]
[haunting-refrain.views.foursquare :as foursquare]
[haunting-refrain.views.spotify :as spotify]
[haunting-refrain.views.misc :as m... | null | https://raw.githubusercontent.com/timgilbert/haunting-refrain-posh/99a7daafe54c5905a3d1b0eff691b5c602ad6d8d/src/cljs/haunting_refrain/route/table.cljs | clojure | (ns haunting-refrain.route.table
(:require [mount.core :refer [defstate]]
[sibiro.core :as sibiro]
[shodan.console :as console]
[haunting-refrain.views.foursquare :as foursquare]
[haunting-refrain.views.spotify :as spotify]
[haunting-refrain.views.misc :as m... | |
1f169c5ea99968abe28c99885ae2d672304782120e603b68b965d111215f05ab | aria42/infer | features.clj | (ns infer.features
(:import java.util.Random)
(:use clojure.contrib.combinatorics)
(:use clojure.contrib.math)
(:use clojure.set)
(:use infer.measures)
(:use infer.information-theory)
(:use infer.probability)
(:use infer.matrix)
(:use infer.core)
(:use [clojure.contrib.map-utils :only [deep-merge-wi... | null | https://raw.githubusercontent.com/aria42/infer/9849325a27770794b91415592a8706fd90777469/src/infer/features.clj | clojure | confusing names - this one takes a vec of feature-vectors and sums the # of examples passing the pred
confusing names - this one takes a map of feature-vectors -> counts, and sums all the counts whose feature-vector-key passes the pred | (ns infer.features
(:import java.util.Random)
(:use clojure.contrib.combinatorics)
(:use clojure.contrib.math)
(:use clojure.set)
(:use infer.measures)
(:use infer.information-theory)
(:use infer.probability)
(:use infer.matrix)
(:use infer.core)
(:use [clojure.contrib.map-utils :only [deep-merge-wi... |
41e7ba9a1bf7d80fb207990bb417954b3bbd62ce3b51efc36209f6be48c2bf30 | kmi/irs | egovernment.lisp | Mode : Lisp ; Package :
File created in WebOnto
(in-package "OCML")
(in-ontology egovernment)
| null | https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/ontologies/domains/egovernment/egovernment.lisp | lisp | Package : |
File created in WebOnto
(in-package "OCML")
(in-ontology egovernment)
|
0de347cf589b8dcf9c56265bc903dbc5133dc751ee0963ae54ec8bd47f57f76d | clojure-interop/java-jdk | MetalRadioButtonUI.clj | (ns javax.swing.plaf.metal.MetalRadioButtonUI
"RadioButtonUI implementation for MetalRadioButtonUI
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the sam... | null | https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.swing/src/javax/swing/plaf/metal/MetalRadioButtonUI.clj | clojure | (ns javax.swing.plaf.metal.MetalRadioButtonUI
"RadioButtonUI implementation for MetalRadioButtonUI
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the sam... | |
2d04545907f665e570ad4db089d983fac3f86d4b0e0069cb1c32bdf3889273fc | google/hrepl | Bazel.hs | Copyright 2020 Google LLC
--
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 un... | null | https://raw.githubusercontent.com/google/hrepl/2648a55cc38407c5b60a3a086217e2d827ca6cb6/bazel/Bazel.hs | haskell |
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing per... | Copyright 2020 Google LLC
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
| Functions for invoking " " as part of other command - line tools .
These functions attempt to remove noise from the output of
module Bazel
... |
717e864697f559ccd8b9ede225a9871a8d17903a8a4f3f6fbfbf165867c5557c | dpaetzel/aq2ledger | Prelude.hs | # LANGUAGE NoImplicitPrelude #
{-# LANGUAGE OverloadedStrings #-}
|
Module : Aq2Ledger . Prelude
Description : Custom prelude based on Protolude
Copyright : , 2019
License : GPL-3
Maintainer : < >
Stability : experimental
Custom prelude based on ' Protolude ' with a few additions... | null | https://raw.githubusercontent.com/dpaetzel/aq2ledger/fd16e0459b83e142a625721b0f6071d28cefc20e/src/Aq2Ledger/Prelude.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE NoImplicitPrelude #
|
Module : Aq2Ledger . Prelude
Description : Custom prelude based on Protolude
Copyright : , 2019
License : GPL-3
Maintainer : < >
Stability : experimental
Custom prelude based on ' Protolude ' with a few additions .
Module : Aq2Ledger.Prelud... |
b3188361b5435f01b903ea45022e1af519dae4433b8fa2026b1ef02e480b477c | avsm/mirage-duniverse | test.ml | #use "topfind";;
#require "base";;
#require "stdio";;
open Ppxlib;;
open Ast_builder.Default;;
Driver.register_transformation "blah"
~rules:[ Context_free.Rule.extension
(Extension.declare "foo"
Expression
Ast_pattern.(pstr nil)
(fun ~loc ~path:_ -> eint ... | null | https://raw.githubusercontent.com/avsm/mirage-duniverse/983e115ff5a9fb37e3176c373e227e9379f0d777/ocaml_modules/ppxlib/test/driver/non-compressible-suffix/test.ml | ocaml | #use "topfind";;
#require "base";;
#require "stdio";;
open Ppxlib;;
open Ast_builder.Default;;
Driver.register_transformation "blah"
~rules:[ Context_free.Rule.extension
(Extension.declare "foo"
Expression
Ast_pattern.(pstr nil)
(fun ~loc ~path:_ -> eint ... | |
d66e92871ced944829b63c714e36157bc02a0c8cb04c29335b3dfd2fe9beb234 | HaskellForCats/HaskellForCats | dada123.hs | module Dada123 where
-- dada1 :: (Int,Int) -> Int
dada1 (x,y) = x + y
dada2 = \(x,y) -> x + y
-- dada3 :: Int -> Int -> Int
dada3 x = \y -> x + y
dada4 = \x -> \y -> ... | null | https://raw.githubusercontent.com/HaskellForCats/HaskellForCats/2d7a15c0cdaa262c157bbf37af6e72067bc279bc/MenaBeginning/Ch002-Ch03/dada123.hs | haskell | dada1 :: (Int,Int) -> Int
dada3 :: Int -> Int -> Int
| module Dada123 where
dada1 (x,y) = x + y
dada2 = \(x,y) -> x + y
dada3 x = \y -> x + y
dada4 = \x -> \y -> x + y
dada5 x y = x + y
the rule is known as the " monomorphic restriction
- ... |
bd4c560e4e43d234ef4437031057b240a393b95a685f692144e6bf451cbf4f3e | jaspervdj/psqueues | Benchmark.hs | {-# LANGUAGE BangPatterns #-}
-- | This module contains benchmarks for the 'PSQueue' type from the
-- `fingertree-psqueue` package.
module Data.FingerTree.PSQueue.Benchmark
( benchmark
) where
import Data.List (foldl')
import Data.FingerTree.PSQueue (Binding (..))
import qualified Data.Fin... | null | https://raw.githubusercontent.com/jaspervdj/psqueues/f6c8e112a7e6bc3e75303d87473f72e3c34822ec/benchmarks/Data/FingerTree/PSQueue/Benchmark.hs | haskell | # LANGUAGE BangPatterns #
| This module contains benchmarks for the 'PSQueue' type from the
`fingertree-psqueue` package.
Empty a queue by sequentially removing all elements |
module Data.FingerTree.PSQueue.Benchmark
( benchmark
) where
import Data.List (foldl')
import Data.FingerTree.PSQueue (Binding (..))
import qualified Data.FingerTree.PSQueue as PSQueue
import Criterion.Main
import Prelude hiding (lookup)
import BenchmarkTypes
... |
33e04bfe2b1aa11e0cf291568587b3beeb0f3a75fb6fae17472992ab90d49721 | donaldsonjw/bigloo | alibrary.scm | ;*=====================================================================*/
* serrano / prgm / project / bigloo / comptime / Module / alibrary.scm * /
;* ------------------------------------------------------------- */
* Author : * /
* Creation ... | null | https://raw.githubusercontent.com/donaldsonjw/bigloo/a4d06e409d0004e159ce92b9908719510a18aed5/comptime/Module/alibrary.scm | scheme | *=====================================================================*/
* ------------------------------------------------------------- */
* ------------------------------------------------------------- */
* The compiler library clause compilation */
*===========================... | * serrano / prgm / project / bigloo / comptime / Module / alibrary.scm * /
* Author : * /
* Creation : Sat Feb 28 10:20:55 1998 * /
* Last change : Thu Sep 19 11:59:07 2013 ( serrano ) * /
* Copy... |
3357f7bf01f58f3dfd359e73374ffbb97342efc1654053ad8cb0b27b9cfca8ec | bjorng/wings | wpc_md3.erl | %%
%% wpc_md3.erl --
%%
%% MD3 import/export
%%
%% $Id$
%%
-module(wpc_md3).
-include("e3d.hrl").
-include_lib("kernel/include/file.hrl").
-export([init/0,menu/2,command/2]).
-import(lists, [map/2, reverse/1]).
-compile(export_all).
-define(MAX_QPATH, 64).
-define(MD3_MAX_FRAMES, 1024).
-defin... | null | https://raw.githubusercontent.com/bjorng/wings/dec64a500220359dbc552600af486be47c45d301/plugins_src/import_export/wpc_md3.erl | erlang |
wpc_md3.erl --
MD3 import/export
$Id$
:?MAX_QPATH/cstring
:3/tuple-little-signed-float-unit32
:3/tuple-little-signed-float-unit32
:3/tuple-little-signed-float-unit32
:?MAX_QPATH/clist
:3/tuple-little-signed-float-unit32
:?MAX_QPATH/cstring
:?MAX_QPATH/cstring
Import.
Export.
MD3 import... |
-module(wpc_md3).
-include("e3d.hrl").
-include_lib("kernel/include/file.hrl").
-export([init/0,menu/2,command/2]).
-import(lists, [map/2, reverse/1]).
-compile(export_all).
-define(MAX_QPATH, 64).
-define(MD3_MAX_FRAMES, 1024).
-define(MD3_MAX_TAGS, 16).
-define(MD3_MAX_SURFACES, 32).
-define(MD... |
ccd4c030494fdd8f1f407799b56f06da015bb03aaf351075ecd60cd833aa2674 | dparis/gen-phzr | prismatic_constraint.cljs | (ns phzr.physics.p2.prismatic-constraint
(:require [phzr.impl.utils.core :refer [clj->phaser phaser->clj]]
[phzr.impl.extend :as ex]
[cljsjs.phaser]))
(defn ->PrismaticConstraint
"Connects two bodies at given offset points, letting them rotate relative to each other around this point.
Pa... | null | https://raw.githubusercontent.com/dparis/gen-phzr/e4c7b272e225ac343718dc15fc84f5f0dce68023/out/physics/p2/prismatic_constraint.cljs | clojure | (ns phzr.physics.p2.prismatic-constraint
(:require [phzr.impl.utils.core :refer [clj->phaser phaser->clj]]
[phzr.impl.extend :as ex]
[cljsjs.phaser]))
(defn ->PrismaticConstraint
"Connects two bodies at given offset points, letting them rotate relative to each other around this point.
Pa... | |
eedd5dd54a51e31847a726fffa9f8685a9c52d79bbd3c27535e1d82f41830c51 | batterseapower/supercompilation-by-evaluation | Generator.hs | #!/usr/bin/env runhaskell
import System.Environment
main :: IO ()
main = do
[n_s] <- getArgs
mapM_ putStrLn $ build (read n_s)
build :: Int -> [String]
build n = [
"root = f1 0",
""
] ++ concatMap f [1..n-1] ++ [
"f" ++ show n ++ " x = [x + 1]",
"",
"(++) xs ys = case xs of",
" [... | null | https://raw.githubusercontent.com/batterseapower/supercompilation-by-evaluation/daeb3e12ca8319a5144dd48a763cf7e7825a1999/examples/compile-time/Generator.hs | haskell | #!/usr/bin/env runhaskell
import System.Environment
main :: IO ()
main = do
[n_s] <- getArgs
mapM_ putStrLn $ build (read n_s)
build :: Int -> [String]
build n = [
"root = f1 0",
""
] ++ concatMap f [1..n-1] ++ [
"f" ++ show n ++ " x = [x + 1]",
"",
"(++) xs ys = case xs of",
" [... | |
c5fa4b8d467a03c020b7ce31fb37e525abdbfdf60277d066789aa8f82e8e764b | jserot/fsml | expr.mli | (**********************************************************************)
(* *)
This file is part of the FSML library
(* github.com/jserot/fsml *)
(* ... | null | https://raw.githubusercontent.com/jserot/fsml/9e3e04acbbb1cb1700fa9d4a0497f35ad4f70796/src/lib/expr.mli | ocaml | ********************************************************************
github.com/jserot/fsml
... | This file is part of the FSML library
Copyright ( c ) 2020 - present , . All rights reserved .
type ident = string
[@@deriving show {with_path=false}, yojson]
type t = {
e_desc: e_desc;
mutable e_typ: Types.t;
}
[@@deriving show {with_path=false}, yojson]
and e_de... |
49e62eb4bdf98d32ea91f674c0b88345236d4ae94f05c5dd26e5a4e022c32501 | metaocaml/ber-metaocaml | gpr1626.ml | (* TEST
* expect
*)
module type S = sig module M : sig end module N = M end;;
[%%expect{|
module type S = sig module M : sig end module N = M end
|}];;
module rec M : S with module M := M = M;;
[%%expect{|
Line 1, characters 34-35:
1 | module rec M : S with module M := M = M;;
... | null | https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/typing-recmod/gpr1626.ml | ocaml | TEST
* expect
|
module type S = sig module M : sig end module N = M end;;
[%%expect{|
module type S = sig module M : sig end module N = M end
|}];;
module rec M : S with module M := M = M;;
[%%expect{|
Line 1, characters 34-35:
1 | module rec M : S with module M := M = M;;
^
Error: Illegal recur... |
b70913f318104f379800b12062b3a5286781505abcbf1377ee52cac39e494df5 | racket/draw | dc-path.rkt | #lang racket/base
(require "syntax.rkt"
racket/math
racket/class
"../unsafe/cairo.rkt"
"fmod.rkt"
"point.rkt"
"transform.rkt"
"font.rkt"
(only-in racket/base [append r:append] [reverse r:reverse]))
(provide dc-path%
(protect-out do-path
... | null | https://raw.githubusercontent.com/racket/draw/a6558bdc18438e784c23d452ffd877dac867a7fd/draw-lib/racket/draw/private/dc-path.rkt | racket | A path is a list of pairs and vectors:
* The pairs correspond to points on the path
it specifies
Change top-left to center:
of `angle' length from -angle/2 to
+angle/2:
Rotate to start:
Scale and move to match ellipse:
why a trailing move? | #lang racket/base
(require "syntax.rkt"
racket/math
racket/class
"../unsafe/cairo.rkt"
"fmod.rkt"
"point.rkt"
"transform.rkt"
"font.rkt"
(only-in racket/base [append r:append] [reverse r:reverse]))
(provide dc-path%
(protect-out do-path
... |
3d8079d2fe11d8c38358aca4a2b38ef17e1fc222b9c14e010b0164ab59d2f16d | peerdrive/peerdrive | peerdrive_crypt_store_io.erl | PeerDrive
Copyright ( C ) 2012 < jan DOT kloetzke AT freenet DOT de >
%%
%% 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/peerdrive/peerdrive/94389e2536cc9b1a0c168ec56ba3912910eb0c35/server/apps/peerdrive/src/peerdrive_crypt_store_io.erl | erlang |
This program is free software: you can redistribute it and/or modify
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public... | PeerDrive
Copyright ( C ) 2012 < jan DOT kloetzke AT freenet DOT de >
it 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
-module(peerdrive_crypt_store_io... |
459cc24913e18b12c2c5e0f0e2309840f4073bbbaf281c3bdb8af04998c14d15 | Ericson2314/lighthouse | StdPicture.hs | {-# OPTIONS_GHC -#include "cpicture_121.h" #-}
-----------------------------------------------------------------------------
-- |
Module : StdPicture
Copyright : ( c ) 2002
-- License : BSD-style
--
-- Maintainer :
-- Stability : provisional
-- Portability : portable
--
StdPicture con... | null | https://raw.githubusercontent.com/Ericson2314/lighthouse/210078b846ebd6c43b89b5f0f735362a01a9af02/ghc-6.8.2/libraries/ObjectIO/Graphics/UI/ObjectIO/StdPicture.hs | haskell | # OPTIONS_GHC -#include "cpicture_121.h" #
---------------------------------------------------------------------------
|
License : BSD-style
Maintainer :
Stability : provisional
Portability : portable
---------------------------------------------------------------------------
* Pen attributes
* F... |
Module : StdPicture
Copyright : ( c ) 2002
StdPicture contains the drawing operations and access to Pictures .
module Graphics.UI.ObjectIO.StdPicture
( Draw(..), Look, doScreenDraw, accClipPicture, accXorPicture,
setPenAttributes, getPenAttributes
, setPenPos, getPenPos
, setPenSize, ge... |
414e71038931c9460d1f81b5ec1da92a3b2d08844fdb3696c50c996d1ec034f7 | dxtr/clsql | sqlite3-api.lisp | -*- Mode : LISP ; Syntax : ANSI - Common - Lisp ; Base : 10 -*-
;;;; *************************************************************************
;;;; FILE IDENTIFICATION
;;;;
Name :
Purpose : Low - level SQLite3 interface using UFFI
Authors :
Created : Oct 2004
;;;;
This file , part of CLSQL , i... | null | https://raw.githubusercontent.com/dxtr/clsql/8061aae1ecb878954115c7aacd90685a65bf4107/db-sqlite3/sqlite3-api.lisp | lisp | Syntax : ANSI - Common - Lisp ; Base : 10 -*-
*************************************************************************
FILE IDENTIFICATION
(), also known as the LLGPL.
*************************************************************************
Conditions
API functions.
Types.
Columnt types.
Return values ... | Name :
Purpose : Low - level SQLite3 interface using UFFI
Authors :
Created : Oct 2004
This file , part of CLSQL , is Copyright ( c ) 2004 by
CLSQL users are granted the rights to distribute and use this software
as governed by the terms of the Lisp Lesser GNU Public License
(in-package #... |
1a281b26d02765acbd94e1fab9745dbf89afe880f14000bb0aab4b3b229bca46 | danielsz/system | core_async_pipe.clj | (ns system.components.core-async-pipe
(:require [clojure.core.async :as async]
[com.stuartsierra.component :as component]))
(defn worker
[f to]
(async/thread
(loop []
(let [v (async/<!! to)]
(async/<!! (async/timeout 1000))
(try
(f v)
(catch Throwable t
... | null | https://raw.githubusercontent.com/danielsz/system/5b367996048c3b4a0275937e32be3944b74c3b02/src/system/components/core_async_pipe.clj | clojure | (ns system.components.core-async-pipe
(:require [clojure.core.async :as async]
[com.stuartsierra.component :as component]))
(defn worker
[f to]
(async/thread
(loop []
(let [v (async/<!! to)]
(async/<!! (async/timeout 1000))
(try
(f v)
(catch Throwable t
... | |
3c29f0893b1db494772b7a7818984dde91bfc793eb29a8253439d8ec183301d8 | kawasima/back-channeling | comment_helper.cljs | (ns back-channeling.comment-helper
(:require [clojure.string :as string])
(:use [clojure.walk :only [walk]]))
(defn link-to-url [text _]
(let [pattern #"(?:https?|ftp)://[^\s/$.?#]\.[^\s]*"]
(interleave
(vec (.split text pattern))
(concat (->> (re-seq pattern text)
(map (fn [url]
... | null | https://raw.githubusercontent.com/kawasima/back-channeling/05d06278cedc35e4e7866384c2903d3c903a19fc/src/cljs/back_channeling/comment_helper.cljs | clojure | (ns back-channeling.comment-helper
(:require [clojure.string :as string])
(:use [clojure.walk :only [walk]]))
(defn link-to-url [text _]
(let [pattern #"(?:https?|ftp)://[^\s/$.?#]\.[^\s]*"]
(interleave
(vec (.split text pattern))
(concat (->> (re-seq pattern text)
(map (fn [url]
... | |
a4c7ca2a2392954792e70d2de37b31eea0cac8fb05676b20a912a058743617f6 | ayamada/copy-of-svn.tir.jp | misc.scm | #!/usr/bin/env gosh
;;; coding: euc-jp
;;; -*- scheme -*-
;;; vim:set ft=scheme ts=8 sts=2 sw=2 et:
$ Id$
;;; note : このモジュールは、一つのモジュールにまとめる前の、
;;; 一時的な状態の関数等を保存するモジュールとする。
(define-module tir.misc
;(use srfi-2) ; and-let*
(export
hes
html-tree-make
make-webpage-main
number->string-japan... | null | https://raw.githubusercontent.com/ayamada/copy-of-svn.tir.jp/101cd00d595ee7bb96348df54f49707295e9e263/Gauche-tir/branches/Gauche-tir01/tags/0.0.0/lib/tir/misc.scm | scheme | coding: euc-jp
-*- scheme -*-
vim:set ft=scheme ts=8 sts=2 sw=2 et:
note : このモジュールは、一つのモジュールにまとめる前の、
一時的な状態の関数等を保存するモジュールとする。
(use srfi-2) ; and-let*
----
tir.cgi?
cgi-mainの代わりに使えるwebpage-main関数を生成する高階関数。
キーワード引数としてencodingとon-errorを指定する事。
procは、通常のtext.treeの代わりに、以下のようなlistを返す事。
'(
:http-header (... | #!/usr/bin/env gosh
$ Id$
(define-module tir.misc
(export
hes
html-tree-make
make-webpage-main
number->string-japanese-weekday
number->string-japanese-wday
time->japanese-date-string
))
(select-module tir.misc)
(use gauche.parameter)
(use text.html-lite)
(use text.tree)
(use www... |
94b7d053569b69e03f9f4187adcbc1813046a42033caff9a22f74ab5cce76dce | CryptoKami/cryptokami-core | Updates.hs | module Cryptokami.Wallet.API.V1.Handlers.Updates where
import Universum
import Cryptokami.Wallet.API.Response (WalletResponse, single)
import Cryptokami.Wallet.API.V1.Types
import qualified Cryptokami.Wallet.API.V1.Updates as Updates
import Servant
import Test.QuickC... | null | https://raw.githubusercontent.com/CryptoKami/cryptokami-core/12ca60a9ad167b6327397b3b2f928c19436ae114/wallet-new/server/Cryptokami/Wallet/API/V1/Handlers/Updates.hs | haskell | module Cryptokami.Wallet.API.V1.Handlers.Updates where
import Universum
import Cryptokami.Wallet.API.Response (WalletResponse, single)
import Cryptokami.Wallet.API.V1.Types
import qualified Cryptokami.Wallet.API.V1.Updates as Updates
import Servant
import Test.QuickC... | |
32071b021e293eb6f8c9acf5e59719f362f6607d7739aa8b2ffe5fadb8dd89b4 | yankov/memobot | lists.clj | (ns memobot.test.lists
(:use [memobot lists]
[clojure.test]
[clojure.data.finger-tree]))
(deftest lists-test
(testing "lindex"
(let [l (counted-double-list 1 2 3)]
(is (= (lindex-cmd l 1) 2))
(is (= (lindex-cmd l 2) 3))
(is (= (lindex-cmd l 4) 0)))))
| null | https://raw.githubusercontent.com/yankov/memobot/9498f02d1f32c3133c67581f31e959557e05048f/test/memobot/test/lists.clj | clojure | (ns memobot.test.lists
(:use [memobot lists]
[clojure.test]
[clojure.data.finger-tree]))
(deftest lists-test
(testing "lindex"
(let [l (counted-double-list 1 2 3)]
(is (= (lindex-cmd l 1) 2))
(is (= (lindex-cmd l 2) 3))
(is (= (lindex-cmd l 4) 0)))))
| |
c9811f53f61fd7ed716e2c293dd8b7b16beb327e7aef658d77a6401ecc66b8e6 | nuvla/api-server | module_application.clj | (ns sixsq.nuvla.server.resources.module-application
"
This resource represents an application module that contain a Docker
stack compose file.
"
(:require
[sixsq.nuvla.server.resources.common.crud :as crud]
[sixsq.nuvla.server.resources.common.std-crud :as std-crud]
[sixsq.nuvla.server.resources.common.... | null | https://raw.githubusercontent.com/nuvla/api-server/e4f0535e2e39e5042094fc20bfb811d2a9c75ad5/code/src/sixsq/nuvla/server/resources/module_application.clj | clojure |
multimethods for validation and operations
use default ACL method
CRUD operations
initialization
| (ns sixsq.nuvla.server.resources.module-application
"
This resource represents an application module that contain a Docker
stack compose file.
"
(:require
[sixsq.nuvla.server.resources.common.crud :as crud]
[sixsq.nuvla.server.resources.common.std-crud :as std-crud]
[sixsq.nuvla.server.resources.common.... |
9a7b01a165f80740f8669c1e4ffade30fe834d81877e475a7cee6895ceebd5b9 | FranklinChen/hugs98-plus-Sep2006 | Errors.hs | --------------------------------------------------------------------------------
-- |
-- Module : Sound.OpenAL.ALC.Errors
Copyright : ( c ) 2003 - 2005
-- License : BSD-style (see the file libraries/OpenAL/LICENSE)
--
-- Maintainer :
-- Stability : provisional
-- Portability : portable
--
--... | null | https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/OpenAL/Sound/OpenAL/ALC/Errors.hs | haskell | ------------------------------------------------------------------------------
|
Module : Sound.OpenAL.ALC.Errors
License : BSD-style (see the file libraries/OpenAL/LICENSE)
Maintainer :
Stability : provisional
Portability : portable
This module corresponds to section 6.3.6 (Query for Error ... | Copyright : ( c ) 2003 - 2005
OpenAL Specification and Reference ( version 1.1 ) .
module Sound.OpenAL.ALC.Errors (
ALCError(..), ALCErrorCategory(..), alcErrors
) where
import Graphics.Rendering.OpenGL.GL.StateVar (
GettableStateVar, makeGettableStateVar )
import Sound.OpenAL.ALC.BasicTypes ( ALCenu... |
587b2633faf7751eebdba5944471746cc40451ad0a6dadbf23b0b366fc12f7c0 | mirage/ocaml-ipaddr | ipaddr_sexp.mli |
* Copyright ( c ) 2018 Anil Madhavapeddy < >
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
*
* THE SOFTWARE IS PROVIDED " AS... | null | https://raw.githubusercontent.com/mirage/ocaml-ipaddr/b5d92b2ac3814abcf4b32682a79f1730ee98f984/lib/ipaddr_sexp.mli | ocaml |
* Copyright ( c ) 2018 Anil Madhavapeddy < >
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
*
* THE SOFTWARE IS PROVIDED " AS... | |
9a0347d1e908511bd1a4de877f54f4c7681d02b2047c0ad91412c63c0fc67c62 | f-me/carma-public | Exceptional.hs | # LANGUAGE TemplateHaskell #
module Carma.Model.PartnerDelay.Exceptional where
import Data.Text
import Data.Typeable
import Data.Model
import Data.Model.View
import Data.Model.TH
import Carma.Model.PgTypes()
data PartnerDelay_Exceptional = PartnerDelay_Exceptional
{ ident :: PK Int PartnerDelay_Exceptional ""
,... | null | https://raw.githubusercontent.com/f-me/carma-public/82a9f44f7d919e54daa4114aa08dfec58b01009b/carma-models/src/Carma/Model/PartnerDelay/Exceptional.hs | haskell | # LANGUAGE TemplateHaskell #
module Carma.Model.PartnerDelay.Exceptional where
import Data.Text
import Data.Typeable
import Data.Model
import Data.Model.View
import Data.Model.TH
import Carma.Model.PgTypes()
data PartnerDelay_Exceptional = PartnerDelay_Exceptional
{ ident :: PK Int PartnerDelay_Exceptional ""
,... | |
fd1e49f2653a5c3cf705cbd76fe42544c8a7ae0b0011104c9510b6d48c840370 | guildhall/guile-sly | utils.scm |
Copyright ( C ) 2014 < >
;;;
is free software : you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
;;; (at your option) any later version.
;;;
;;; Sly is distributed in the hope tha... | null | https://raw.githubusercontent.com/guildhall/guile-sly/92f5f21da76986c5b606b36afc4bb984cc63da5b/sly/render/utils.scm | scheme |
(at your option) any later version.
Sly 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.
along with this program. If not, see
</>.
Comme... |
Copyright ( C ) 2014 < >
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
You should have received a copy of the GNU General Public License
(define-module (... |
a5ef9f7c43a014cbebf4aaaeb268bb99f928747a21fb989ebcb64ce2e7580000 | ml4tp/tcoq | canary.ml | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/lib/canary.ml | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
* This is an empty closure block. In... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
type t = Obj.t
let obj = Obj... |
76863c4c8143129a7a87e5fc38147f9e28952dc4e063911575405c6c069af26c | fosskers/aura | Settings.hs | # LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
-- |
Module : . Settings
Copyright : ( c ) , 2012 - 2021
-- License : GPL3
Maintainer : < >
--
-- Definition of the runtime environment.
module Aura.Settings
( Settings(..)
, logFuncOfL
-- * Aura Configuration
, BuildConfig(.... | null | https://raw.githubusercontent.com/fosskers/aura/08cd46eaa598094f7395455d66690d3d8c59e965/haskell/aura/lib/Aura/Settings.hs | haskell | |
License : GPL3
Definition of the runtime environment.
* Aura Configuration
-
| How @-As@ should truncate its results.
| CLI flags that will be passed down to @makepkg@ when building packages.
calls if necessary.
when the output target is a terminal.
For `-As`
| Extra options for customizing the build pro... | # LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
Module : . Settings
Copyright : ( c ) , 2012 - 2021
Maintainer : < >
module Aura.Settings
( Settings(..)
, logFuncOfL
, BuildConfig(..), BuildSwitch(..)
, buildPathOfL, buildUserOfL, buildSwitchesOfL, allsourcePathOfL, vcsPathOfL... |
044e83411cecd3a2feb8f3f07ec870b4e40f1e9f5c36c2628adce174996d7bd7 | mozilla/medusa | core.cljs | (ns cljs.medusa.core
(:require [cljs.core.async :refer [<! >! put! close! chan pub sub]]
[om.core :as om :include-macros true]
[sablono.core :as html :refer-macros [html]]
[cljs.reader :as reader]
[ajax.core :refer [GET POST]]
[weasel.repl :as ws-repl]
... | null | https://raw.githubusercontent.com/mozilla/medusa/213e712af2d7bb5580ba97d7770c1db140d457ee/src/cljs/medusa/core.cljs | clojure | needed to clean current selection
process event
don't refetch data from the server when only the filter
has changed since we perform client-side filtering | (ns cljs.medusa.core
(:require [cljs.core.async :refer [<! >! put! close! chan pub sub]]
[om.core :as om :include-macros true]
[sablono.core :as html :refer-macros [html]]
[cljs.reader :as reader]
[ajax.core :refer [GET POST]]
[weasel.repl :as ws-repl]
... |
f0b6bb53b3553155c5cad18dd5504738b8d32413e767e356bade1b0f62fad6c3 | bobatkey/CS316-17 | Lec20.hs | module Main where
import System.Environment
import Control.Parallel.Strategies
LECTURE 20 : Parallelism
This lecture is about running programs in parallel on
multiple cores .
Parallel programming is used to make programs run faster by
splitting up their work so that it can be executed on m... | null | https://raw.githubusercontent.com/bobatkey/CS316-17/36eb67c335cd0e6f5b7a4b8eafdea3cd4b715e0c/lectures/Lec20/Lec20.hs | haskell |
------------------------------------------------------------------
This ...
This ...
This ...
This ...
This ...
This ...
------------------------------------------------------------------ | module Main where
import System.Environment
import Control.Parallel.Strategies
LECTURE 20 : Parallelism
This lecture is about running programs in parallel on
multiple cores .
Parallel programming is used to make programs run faster by
splitting up their work so that it can be executed on m... |
ead913e0d18473dca6eb490746450e425183efacb88757f855b9d4049829068b | JoelSanchez/ventas | user.clj | (ns ventas.server.api.user
(:require
[buddy.hashers :as hashers]
[slingshot.slingshot :refer [throw+ try+]]
[ventas.common.utils :as common.utils]
[ventas.database :as db]
[ventas.database.entity :as entity]
[ventas.entities.order :as entities.order]
[ventas.entities.shipping-method :as entities.... | null | https://raw.githubusercontent.com/JoelSanchez/ventas/dc8fc8ff9f63dfc8558ecdaacfc4983903b8e9a1/src/clj/ventas/server/api/user.clj | clojure | (ns ventas.server.api.user
(:require
[buddy.hashers :as hashers]
[slingshot.slingshot :refer [throw+ try+]]
[ventas.common.utils :as common.utils]
[ventas.database :as db]
[ventas.database.entity :as entity]
[ventas.entities.order :as entities.order]
[ventas.entities.shipping-method :as entities.... | |
3d1cf481554d5bf3a0b14060866d404419938f608df98689b4c156c6ad767974 | elaforge/fast-tags | Util.hs | -- | Generic utilities.
module FastTags.Util where
import qualified Data.ByteString as ByteString
import qualified Data.Char as Char
import qualified Data.Function as Function
import qualified Data.List as List
import qualified Data.Map.Strict as Map
import qualified Data.Set as Set
import qualified Data.Text as Text
i... | null | https://raw.githubusercontent.com/elaforge/fast-tags/085f7ffdd93d7152c9544ac8c8e4e3b0226b0d93/src/FastTags/Util.hs | haskell | | Generic utilities.
| Read a UTF8 file, but don't crash on encoding errors.
| Drop until the element before the matching one. Return [] if the function
never matches.
| Split list into chunks delimited by specified element. | module FastTags.Util where
import qualified Data.ByteString as ByteString
import qualified Data.Char as Char
import qualified Data.Function as Function
import qualified Data.List as List
import qualified Data.Map.Strict as Map
import qualified Data.Set as Set
import qualified Data.Text as Text
import Data.Text (Text)
i... |
0f52d7bcd998898b64bdbc2bf56932ff7a427a2a23d4a72ffd6a8650a25c047d | tweag/ormolu | op-chain-r-lt-colon-2-out.hs | Right chain , : case , 2 operators with p(a ) < p (: )
m :: Int
m =
1
|| 2
|| 3
|| 4
: 5
|| 6
|| 7
|| 8
| null | https://raw.githubusercontent.com/tweag/ormolu/1f63136d047205f95b7d3c0f6aa34c34bb29ac7f/data/examples/declaration/value/function/infix/op-chain-r-lt-colon-2-out.hs | haskell | Right chain , : case , 2 operators with p(a ) < p (: )
m :: Int
m =
1
|| 2
|| 3
|| 4
: 5
|| 6
|| 7
|| 8
| |
03149e316a401fd26c9b382bf7278b5b30034b866d19bc91cc39d3b4177cd290 | heidegger/JSConTest | dependDown.mli | * @author :
* stores informations for the DependDown modul
type t
* Creates an empty DependDown information .
val create : unit -> t
(** checks if there is a need to pass dependency and order
information to the contract.
If this function returns [true], [DFunction] is used in
the compliled code. Other... | null | https://raw.githubusercontent.com/heidegger/JSConTest/7c807a76af998da25775fba1f5cbe1cf8031d121/ocaml/contracts/dependDown.mli | ocaml | * checks if there is a need to pass dependency and order
information to the contract.
If this function returns [true], [DFunction] is used in
the compliled code. Otherwise, [Function] is used.
* sets the order of the parameters
* sets the number of parameters (including result)
* get the list of depende... | * @author :
* stores informations for the DependDown modul
type t
* Creates an empty DependDown information .
val create : unit -> t
val is_depend : t -> bool
val set_order : t -> int list -> unit
val set_paramnr : t -> int -> unit
val get_dul : t -> Depend.t list
val register_dinfo : t -> Depend.t list list -... |
6b7fb78d9402b189a18560ecbeff45bf7aa69b4ddc8e794154cbeafcd74cc2e7 | chuchao333/6.945 | interp-actor.scm | Core of simple Scheme interpreter extended with actor idea
;;; code is an augmentation of interp.scm
;;;
;;; See also structure and predicate definitions in rtdata.scm and
;;; syntax.scm
;;; This is the same as interp.scm except that
(declare (usual-integrations eval apply))
(define (default-eval expressi... | null | https://raw.githubusercontent.com/chuchao333/6.945/c50bb28aadf0c3fcda3c8e56b4a61b9a2d582552/ps9/code/interp-actor.scm | scheme | code is an augmentation of interp.scm
See also structure and predicate definitions in rtdata.scm and
syntax.scm
This is the same as interp.scm except that
XXX because APPLY in our world eval's its arguments | Core of simple Scheme interpreter extended with actor idea
(declare (usual-integrations eval apply))
(define (default-eval expression environment)
(cond ((application? expression)
(apply (eval (operator expression) environment)
(operands expression)
environment))
(else
(error "Unknown expression type" e... |
e95d94dd31866200f61dac00165c021e2c9f8cd5c8c1906166d41366e173ebf9 | JustusAdam/marvin | Main.hs | # OPTIONS_GHC -F -optF --adapter -optF slack - rtm #
| null | https://raw.githubusercontent.com/JustusAdam/marvin/c49db1f7efbd5cc0803c9802ca31bb4488472ac3/test/integration/slack/Main.hs | haskell | adapter -optF slack - rtm # | |
4de74bf7f99ffdb5bb9e8d001c42d719e7f47edff520af3538ebaf10be66511a | ocsigen/eliom | eliom_reference.server.mli | Ocsigen
*
* Copyright ( C ) 2010
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , with linking exception ;
* either version 2.1 of the License , or ( at your ... | null | https://raw.githubusercontent.com/ocsigen/eliom/c3e0eea5bef02e0af3942b6d27585add95d01d6c/src/lib/eliom_reference.server.mli | ocaml | * {b Please read the
{% <<a_manual chapter="server-state" | Eliom manual >>%}
before this page to learn how server side state works. }
* Exception raised when trying to access an eref
that has not been initaliazed, when we don't want to initialize it.
That function introduces a Lwt cooperation point onl... | Ocsigen
*
* Copyright ( C ) 2010
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , with linking exception ;
* either version 2.1 of the License , or ( at your ... |
b494a5e11a3f0f153c8c3bad1cd3c15f61db63fb3dfa2963fe606b52d5cf8808 | amnh/poy5 | helpIndex.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/helpIndex.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 ; ... |
599442426331112504ff8d631723fd8f6065132cd4bceb232ac5cf2a70c042a8 | marcoheisig/adventofcode | day-09.lisp | (defpackage :adventofcode-2018-day-9
(:use :cl))
(in-package :adventofcode-2018-day-9)
(defgeneric insert-after (new current))
(defgeneric delete-node (node))
(defgeneric clockwise (node n))
(defgeneric counter-clockwise (node n))
(defclass node ()
((%number :initarg :number :reader node-number)
(%successo... | null | https://raw.githubusercontent.com/marcoheisig/adventofcode/e96a0da17cd79f424af984ed2648b49ffdacb893/2018/day-09/day-09.lisp | lisp | We want tail call optimization. | (defpackage :adventofcode-2018-day-9
(:use :cl))
(in-package :adventofcode-2018-day-9)
(defgeneric insert-after (new current))
(defgeneric delete-node (node))
(defgeneric clockwise (node n))
(defgeneric counter-clockwise (node n))
(defclass node ()
((%number :initarg :number :reader node-number)
(%successo... |
f959fc2248b27b86fab22b60dd855302acce35b684ca3c090f2e226aafb9a976 | semilin/layoup | Whorfmax.lisp |
(MAKE-LAYOUT :NAME "Whorfmax" :MATRIX
(APPLY #'KEY-MATRIX '("flhykqwou," "srntpcdaei" "xjbvzmg';."))
:SHIFT-MATRIX NIL :KEYBOARD NIL) | null | https://raw.githubusercontent.com/semilin/layoup/27ec9ba9a9388cd944ac46206d10424e3ab45499/data/layouts/Whorfmax.lisp | lisp |
(MAKE-LAYOUT :NAME "Whorfmax" :MATRIX
(APPLY #'KEY-MATRIX '("flhykqwou," "srntpcdaei" "xjbvzmg';."))
:SHIFT-MATRIX NIL :KEYBOARD NIL) | |
58ec9e77e04965312e20756139ab58bbd306e3c68c1a4f071dd810ce6f27fc5f | blindglobe/clocc | attributes.lisp | -*- Mode : LISP ; Syntax : Common - lisp ; Package : XLIB ; Base : 10 ; Lowercase : Yes -*-
;;; Window Attributes
;;;
TEXAS INSTRUMENTS INCORPORATED
;;; P.O. BOX 2909
AUSTIN , TEXAS 78769
;;;
Copyright ( C ) 1987 Texas Instruments Incorporated .
;;;
;;; Permission is granted to any individual... | null | https://raw.githubusercontent.com/blindglobe/clocc/a50bb75edb01039b282cf320e4505122a59c59a7/src/gui/clx/attributes.lisp | lisp | Syntax : Common - lisp ; Package : XLIB ; Base : 10 ; Lowercase : Yes -*-
Window Attributes
P.O. BOX 2909
Permission is granted to any individual or institution to use, copy, modify,
and distribute this software, provided that this complete copyright and
permission notice is maintained, intact, in all cop... |
TEXAS INSTRUMENTS INCORPORATED
AUSTIN , TEXAS 78769
Copyright ( C ) 1987 Texas Instruments Incorporated .
Texas Instruments Incorporated provides this software " as is " without
#+cmu
(ext:file-comment
"$Header: /cvsroot/clocc/clocc/src/gui/clx/attributes.lisp,v 1.2 2003/02/28 20:23:08 pvaneynd ... |
2afc3740a427d637a49840faefb1ce5f5d0333e1ac1676d2c3bfb40a2b291e01 | informatimago/lisp | hexadecimal.lisp | -*- mode : lisp;coding : utf-8 -*-
;;;;**************************************************************************
FILE : hexadecimal.lisp
;;;;LANGUAGE: Common-Lisp
;;;;SYSTEM: Common-Lisp
USER - INTERFACE :
;;;;DESCRIPTION
;;;;
Encode and decode hexadecimal strings .
;;... | null | https://raw.githubusercontent.com/informatimago/lisp/571af24c06ba466e01b4c9483f8bb7690bc46d03/common-lisp/data-encoding/hexadecimal.lisp | lisp | coding : utf-8 -*-
**************************************************************************
LANGUAGE: Common-Lisp
SYSTEM: Common-Lisp
DESCRIPTION
LEGAL
This program is free software: you can redistribute it and/or modify
(at your option) any later version.
This program is distri... | FILE : hexadecimal.lisp
USER - INTERFACE :
Encode and decode hexadecimal strings .
< PJB > < >
MODIFICATIONS
2013 - 10 - 06 < PJB > Created .
AGPL3
Copyright 2013 - 2016
it under the terms of the GNU Affero General Public License as published by
the Free ... |
7c9c45e1da82642df6e5fdd957edba7dfb5997c4a6c045932e179af948ca1853 | hammerlab/biokepi | reference_genome.ml | open Common
type name = string
module Specification = struct
module Location = struct
type t = [
| `Url of string
| `Vcf_concat of (string * t) list (* name × location *)
| `Concat of t list
| `Gunzip of t (* Should this be guessed from the URL extension? *)
| `Bunzip2 of t
|... | null | https://raw.githubusercontent.com/hammerlab/biokepi/d64eb2c891b41bda3444445cd2adf4e3251725d4/src/run_environment/reference_genome.ml | ocaml | name × location
Should this be guessed from the URL extension?
Alternate?
"ftp-All.vcf.gz"
* A reference genome has a name (for display/matching) and a
cluster-dependent path.
Corresponding Cosmic and dbSNP databases (VCFs) can be added to the mix.
| open Common
type name = string
module Specification = struct
module Location = struct
type t = [
| `Url of string
| `Concat of t list
| `Bunzip2 of t
| `Untar of t
]
let url u = `Url u
let vcf_concat l = `Vcf_concat l
let concat l = `Concat l
let gunzip l = `Gunzip l
... |
a308091f651f055b8251415045606d6b0371d060fb07ac59e9503d8fa13014ed | manuel-serrano/hop | xml_types.scm | ;*=====================================================================*/
* serrano / prgm / project / hop/3.5.x / runtime / xml_types.scm * /
;* ------------------------------------------------------------- */
* Author : * /
* Creation : ... | null | https://raw.githubusercontent.com/manuel-serrano/hop/6fc069a4f8b60c4e76f34c3d77df56bf8787b6cb/runtime/xml_types.scm | scheme | *=====================================================================*/
* ------------------------------------------------------------- */
* ------------------------------------------------------------- */
* The definition of XML classes */
*===========================... | * serrano / prgm / project / hop/3.5.x / runtime / xml_types.scm * /
* Author : * /
* Creation : We d Oct 20 09:22:36 2010 * /
* Last change : Thu Jan 20 09:19:10 2022 ( serrano ) * /
* Copyr... |
715cd420f25fb0b2f6559b6ac11d055b6158bde620e8a387130ea47b7d0991ba | kupl/FixML | sub90.ml |
type aexp =
| Const of int
| Var of string
| Power of string * int
| Times of aexp list
| Sum of aexp list
let diff : aexp * string -> aexp
= fun (e,x) ->
let rec ae f isfactor =
match f with
|Sum a -> let rec sumhelp b =
match b with
|[] -> []
|hd::... | null | https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/benchmarks/differentiate/diff1/submissions/sub90.ml | ocaml |
type aexp =
| Const of int
| Var of string
| Power of string * int
| Times of aexp list
| Sum of aexp list
let diff : aexp * string -> aexp
= fun (e,x) ->
let rec ae f isfactor =
match f with
|Sum a -> let rec sumhelp b =
match b with
|[] -> []
|hd::... | |
1dbd8e7a2b8058da0d820dc621b96c8662d56c3a0089c9a540b810d9d2adadd6 | jwiegley/notes | Interactive.hs | withInteractiveOrProj :: IsolationRunnerState
-> Maybe ProjectId
-> (SessionManager -> ResourceT IO (ProjectResult a))
-> ResourceT IO (ProjectResult a)
withInteractiveOrProj irst Nothing action = do
register $ atomically (writeTVar (irstInitializing... | null | https://raw.githubusercontent.com/jwiegley/notes/24574b02bfd869845faa1521854f90e4e8bf5e9a/gists/5541559/Interactive.hs | haskell | withInteractiveOrProj :: IsolationRunnerState
-> Maybe ProjectId
-> (SessionManager -> ResourceT IO (ProjectResult a))
-> ResourceT IO (ProjectResult a)
withInteractiveOrProj irst Nothing action = do
register $ atomically (writeTVar (irstInitializing... | |
420a7a6f046185e53e87e51b8c82d28d96ae6d393683efa89208a43e9bfc9595 | begriffs/haskell-circle-example | Main.hs | module Main where
main :: IO ()
main = putStrLn "hello world"
| null | https://raw.githubusercontent.com/begriffs/haskell-circle-example/eb34d198d510b041d97fa1a2ebe0c04109e57554/src/Main.hs | haskell | module Main where
main :: IO ()
main = putStrLn "hello world"
| |
475c6c617432af61fe9443c37ec3b55af1e26ce0e9c483524019c8bbc36e8750 | alex-hhh/ActivityLog2 | fit-defs.rkt | #lang racket/base
fit-defs.rkt -- field definitions for enums in the FIT file format , this
file is based on data from Profile.xls from the FIT SDK . You can download
;; the SDK from /
;;
;; This file is part of ActivityLog2, an fitness activity tracker
Copyright ( C ) 2015 , 2018 , 2019 , 2020 , 2022 , 2023 ... | null | https://raw.githubusercontent.com/alex-hhh/ActivityLog2/05e7422f43835c2d1b6a0d0d72e9e99adf94ae66/rkt/fit-file/fit-defs.rkt | racket | the SDK from /
This file is part of ActivityLog2, an fitness activity tracker
This program is free software: you can redistribute it and/or modify it
any later version.
This program is distributed in the hope that it will be useful, but WITHOUT
without even the implied warranty of MERCHANTABILITY or
FITNESS F... | #lang racket/base
fit-defs.rkt -- field definitions for enums in the FIT file format , this
file is based on data from Profile.xls from the FIT SDK . You can download
Copyright ( C ) 2015 , 2018 , 2019 , 2020 , 2022 , 2023 < >
under the terms of the GNU General Public License as published by the Free
Sof... |
3a45048bbe1d6d78d191e55d0c81444ff933386a32cef7f9f2bfde575d17165a | Gadjib/ocamlhomeworks | p1.ml | let in_file_name = Sys.argv.(1);;
let out_file_name = Sys.argv.(2);;
let f_in = open_in in_file_name;;
let f_out = open_out out_file_name;;
let rec read_in f =
try
let x = input_line f in (x^"\n"^(read_in f))
with
End_of_file -> "";;
let write_out f1 f2 = output_string f2 (read_in f1);;
write_out f_in f_out;... | null | https://raw.githubusercontent.com/Gadjib/ocamlhomeworks/d5568d4830d4306ea56749f17af355bc35001eff/9%20%D0%BA%D0%BB%D0%B0%D1%81%D1%81/1%20%D1%87%D0%B5%D1%82%D0%B2%D0%B5%D1%80%D1%82%D1%8C/CW%2009-10-2019/p1.ml | ocaml | let in_file_name = Sys.argv.(1);;
let out_file_name = Sys.argv.(2);;
let f_in = open_in in_file_name;;
let f_out = open_out out_file_name;;
let rec read_in f =
try
let x = input_line f in (x^"\n"^(read_in f))
with
End_of_file -> "";;
let write_out f1 f2 = output_string f2 (read_in f1);;
write_out f_in f_out;... | |
8733205e14c889977af0da98d0178680cbb8cca65226cc3c4bac8e5ba942c65f | paurkedal/ocaml-caqti | caqti_query.mli | Copyright ( C ) 2019 - -2023 Petter A. Urkedal < >
*
* This library is free software ; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , either version 3 of the License , or ( at your
* option ) any la... | null | https://raw.githubusercontent.com/paurkedal/ocaml-caqti/d7126bc20ec0777251b31ba9c09b57eae4aeca8f/caqti/lib/caqti_query.mli | ocaml | * Query specification.
* [Q s] corresponds to a [TEXT] literal; passed as part of the
query string if a suitable quoting function is available in
the client library, otherwise passed as an additional
parameter.
* [P i] refers to parameter number [i], countin... | Copyright ( C ) 2019 - -2023 Petter A. Urkedal < >
*
* This library is free software ; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , either version 3 of the License , or ( at your
* option ) any la... |
c88a9cc8bf3f5c07114f858c9f837f0700b80da34c21100ae066319f15e3a344 | marineschimel/ilqr_vae | pair_typ.ml | open Base
open Owl_parameters
module Pair_P = struct
type ('a, 'b) prm_ =
{ fst : 'a
; snd : 'b
}
[@@deriving accessors ~submodule:A]
module Make (X1 : sig
include Owl_parameters.T
val label : string
end) (X2 : sig
include Owl_parameters.T
val label : string
end) =
struct
... | null | https://raw.githubusercontent.com/marineschimel/ilqr_vae/8bdda2bfcf0729f965b2ab9e5aab5042a240c64d/lib/pair_typ.ml | ocaml | open Base
open Owl_parameters
module Pair_P = struct
type ('a, 'b) prm_ =
{ fst : 'a
; snd : 'b
}
[@@deriving accessors ~submodule:A]
module Make (X1 : sig
include Owl_parameters.T
val label : string
end) (X2 : sig
include Owl_parameters.T
val label : string
end) =
struct
... | |
1d79dcc6e2c611e40068f8bb230eba811b10ab0d4307b64007b4fba4d859be15 | emqx/emqx | emqx_modules_conf.erl | %%--------------------------------------------------------------------
Copyright ( c ) 2021 - 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/dbc10c2eed3df314586c7b9ac6292083204f1f68/apps/emqx_modules/src/emqx_modules_conf.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 ) 2021 - 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_modules_conf).
-behaviour(emqx_config_handler).
-export([
load/0,
unload/... |
cc3d7b35f2b5046846c8581227aab6e1b8ba6d34d80f0f6e3cdb764fdb4278c6 | generateme/fastmath | clustering.clj | (ns fastmath.clustering
"Clustering.
Various clustering algrorithms backed by SMILE library.
Only partition clustering is implemented.
### Input data
It's always sequence of n-sized samples as sequences.
For example, 2d samples `[[1 2] [2 2] [3 3] ...]`
For 1d data you can pass sequence of numbers... | null | https://raw.githubusercontent.com/generateme/fastmath/e0e5d52ee84f33d870ed64f3cbb2f011b49a9b6b/src/fastmath/clustering.clj | clojure | or
| (ns fastmath.clustering
"Clustering.
Various clustering algrorithms backed by SMILE library.
Only partition clustering is implemented.
### Input data
It's always sequence of n-sized samples as sequences.
For example, 2d samples `[[1 2] [2 2] [3 3] ...]`
For 1d data you can pass sequence of numbers... |
5fb0f8508e46c2eebc36815e8056e4389c939832dce52e25069116d0fa42e51c | ku-fpg/hermit | Fib.hs | # LANGUAGE CPP #
module Main where
import Prelude hiding ((+),map,(!!))
import Nat
import Stream
fib :: Nat -> Nat
fib Zero = Zero
fib (Succ Zero) = Succ Zero
fib (Succ (Succ n)) = fib (Succ n) + fib n
wrap :: Stream a -> (Nat -> a)
wrap s n = s !! n
unwrap :: (Nat -> a) -> Stream a
unwrap f = map... | null | https://raw.githubusercontent.com/ku-fpg/hermit/3e7be430fae74a9e3860b8b574f36efbf9648dec/examples/fib-stream/Fib.hs | haskell | # LANGUAGE CPP #
module Main where
import Prelude hiding ((+),map,(!!))
import Nat
import Stream
fib :: Nat -> Nat
fib Zero = Zero
fib (Succ Zero) = Succ Zero
fib (Succ (Succ n)) = fib (Succ n) + fib n
wrap :: Stream a -> (Nat -> a)
wrap s n = s !! n
unwrap :: (Nat -> a) -> Stream a
unwrap f = map... | |
52109349dabf69106e04ec2f493fb8b6ade94ea100227cccce6559ab8b96553f | scheme-live/live | output.scm | " " | null | https://raw.githubusercontent.com/scheme-live/live/4c7c9d80f2fcf80692614e10935fa66be69e3708/live/json/data/y-string-space/output.scm | scheme | " " | |
25c953ec7e56632d3e38805bfee869f7a3634bac2b51190fabb19af5e0ef19b2 | mariachris/Concuerror | waiting.erl | -module(waiting).
-export([waiting/0]).
-export([scenarios/0]).
scenarios() -> [{?MODULE, inf, dpor, crash}].
waiting() ->
timer:sleep(25000).
| null | https://raw.githubusercontent.com/mariachris/Concuerror/87e63f10ac615bf2eeac5b0916ef54d11a933e0b/testsuite/suites/crashing/src/waiting.erl | erlang | -module(waiting).
-export([waiting/0]).
-export([scenarios/0]).
scenarios() -> [{?MODULE, inf, dpor, crash}].
waiting() ->
timer:sleep(25000).
| |
cbbea4c347f4836fe304c6f4ca0b28464452087c75758df6491003b69aebbccf | lispbuilder/lispbuilder | package.lisp | ;;;; lispbuilder-sdl
( C)2006 < >
(in-package #:cl-user)
;;; lispbuilder-sdl-cffi exports no symbols.
(defpackage #:lispbuilder-sdl-cffi
(:use #:cl #:cffi)
(:nicknames #:sdl-cffi #:scl)
(:documentation "The basic wrapper package of `lispbuilder-sdl'.")
(:export
#:SDL-Enable-UNICODE
#:SDL-Enable-Key... | null | https://raw.githubusercontent.com/lispbuilder/lispbuilder/589b3c6d552bbec4b520f61388117d6c7b3de5ab/lispbuilder-sdl/cffi/package.lisp | lisp | lispbuilder-sdl
lispbuilder-sdl-cffi exports no symbols. | ( C)2006 < >
(in-package #:cl-user)
(defpackage #:lispbuilder-sdl-cffi
(:use #:cl #:cffi)
(:nicknames #:sdl-cffi #:scl)
(:documentation "The basic wrapper package of `lispbuilder-sdl'.")
(:export
#:SDL-Enable-UNICODE
#:SDL-Enable-Key-Repeat
#:SDL-Get-Key-Repeat
#:SDL-Get-Key-State
#:SDL-Ge... |
a0d87f0d65af3c120d15627f89aaa673a50c8a0ce734209e4de8156b385c7c48 | mwotton/roboservant | Nested.hs | # LANGUAGE DataKinds #
# LANGUAGE DerivingStrategies #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE TypeOperators #
module Nested where
import Servant
import Servant.API.Flatten
type Api =
( "one" :> Summary "foo" :> Post '[JSON] Int
:<|> "two" :> Post '[JSON] Int
)
:<|> ( "three" :> Post '[JSON] In... | null | https://raw.githubusercontent.com/mwotton/roboservant/c61d4868cc1a7a0bb5d8f1c3996305c82da13879/test/Nested.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE DataKinds #
# LANGUAGE DerivingStrategies #
# LANGUAGE TypeOperators #
module Nested where
import Servant
import Servant.API.Flatten
type Api =
( "one" :> Summary "foo" :> Post '[JSON] Int
:<|> "two" :> Post '[JSON] Int
)
:<|> ( "three" :> Post '[JSON] Int
)
type FlatApi = Flat A... |
f06c774d3f57fa520dd641b55f4e2330b8912a2b52b687912425fd2c0ca1ac9b | SquircleSpace/shcl | shell-grammar.lisp | Copyright 2017
;;
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 Li... | null | https://raw.githubusercontent.com/SquircleSpace/shcl/cc8d3c841b8b64b6715bf8f238fb19cd6093a793/core/shell-grammar.lisp | lisp |
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing per... | Copyright 2017
distributed under the License is distributed on an " AS IS " BASIS ,
(defpackage :shcl/core/shell-grammar
(:use
:common-lisp :shcl/core/lexer :shcl/core/utility)
(:import-from :shcl/core/parser
#:define-terminal #:define-nonterminal #:define-nonterminal-class
#:parser-choice #:parser-... |
8049072de3b1f163106fb60954ac132c5461d92feff786006af39e27ea057173 | ucsd-progsys/liquidhaskell | Grty2.hs | {-@ LIQUID "--expect-any-error" @-}
module Grty2 () where
moo = insert 4 [1, 2, 3]
@ insert : : ( a ) = > x : a - > xs : [ a]<{\fld v - > ( v > = fld ) } > - > { v : [ a]<{\fld v - > ( v > = fld ) } > | len(v ) = ( 1 + len(xs ) ) } @
insert y [] = [y]
insert y (x : xs) | y > {- <= -}... | null | https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/f46dbafd6ce1f61af5b56f31924c21639c982a8a/tests/neg/Grty2.hs | haskell | @ LIQUID "--expect-any-error" @
<= | module Grty2 () where
moo = insert 4 [1, 2, 3]
@ insert : : ( a ) = > x : a - > xs : [ a]<{\fld v - > ( v > = fld ) } > - > { v : [ a]<{\fld v - > ( v > = fld ) } > | len(v ) = ( 1 + len(xs ) ) } @
insert y [] = [y]
| otherwise = x : insert y xs
|
df1458b842025e1e939ee0045c4cbbed65972dacdd7ace2b135a305e06abc2cb | tmattio/js-bindings | vscode_languageclient_protocol_converter.ml | [@@@js.dummy "!! This code has been generated by gen_js_api !!"]
[@@@ocaml.warning "-7-32-39"]
[@@@ocaml.warning "-7-11-32-33-39"]
open Es5
module Converter =
struct
type t = Ojs.t
let rec t_of_js : Ojs.t -> t = fun (x2 : Ojs.t) -> x2
and t_to_js : t -> Ojs.t = fun (x1 : Ojs.t) -> x1
let (as_uri : t -... | null | https://raw.githubusercontent.com/tmattio/js-bindings/ca3bd6a12db519c8de7f41b303f14cf70cfd4c5f/lib/vscode-languageclient/vscode_languageclient_protocol_converter.ml | ocaml | [@@@js.dummy "!! This code has been generated by gen_js_api !!"]
[@@@ocaml.warning "-7-32-39"]
[@@@ocaml.warning "-7-11-32-33-39"]
open Es5
module Converter =
struct
type t = Ojs.t
let rec t_of_js : Ojs.t -> t = fun (x2 : Ojs.t) -> x2
and t_to_js : t -> Ojs.t = fun (x1 : Ojs.t) -> x1
let (as_uri : t -... | |
55b102cf332bb503c7bc768591346e1b76febc12c5e9f4a7df673275dadb2db0 | morpheusgraphql/morpheus-graphql | Core.hs | # LANGUAGE FlexibleInstances #
{-# LANGUAGE GADTs #-}
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE NamedFieldPuns #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE RecordWildCards #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE NoImplicitPrelude #
module Data.Morpheus.Client.CodeGen.Interpreting.Core
( LocalM,
comp... | null | https://raw.githubusercontent.com/morpheusgraphql/morpheus-graphql/1d3ab7e3bc723e29ef8bd2a0c818a03ae82ce8ad/morpheus-graphql-client/src/Data/Morpheus/Client/CodeGen/Interpreting/Core.hs | haskell | # LANGUAGE GADTs #
# LANGUAGE OverloadedStrings # | # LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE NamedFieldPuns #
# LANGUAGE RecordWildCards #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE NoImplicitPrelude #
module Data.Morpheus.Client.CodeGen.Interpreting.Core
( LocalM,
compileError,
getType,
typeFrom,
deprecationWarnin... |
22fcbbc151e8f0dc2488ee57236d72e58110b8b7976889e0c221b68fe88d89dd | K2InformaticsGmbH/imem | imem_metrics.erl | -module(imem_metrics).
-include("imem.hrl").
-behaviour(imem_gen_metrics).
-export([start_link/1
,get_metric/1
,get_metric/2
,request_metric/3
]).
-export([init/0
,handle_metric_req/3
,request_metric/1
,terminate/2
]).
-safe([get_metric/1]).
1 minu... | null | https://raw.githubusercontent.com/K2InformaticsGmbH/imem/602b6cd31ea1af00041a9318119ab0c3e4d5b59a/src/imem_metrics.erl | erlang | imem_gen_metrics callback
update if old value was smaller
no change if old value was same or greater | -module(imem_metrics).
-include("imem.hrl").
-behaviour(imem_gen_metrics).
-export([start_link/1
,get_metric/1
,get_metric/2
,request_metric/3
]).
-export([init/0
,handle_metric_req/3
,request_metric/1
,terminate/2
]).
-safe([get_metric/1]).
1 minu... |
31ab7e10ac7da766e7b2aa28c45ee51dbd64af26f6c936392bd7184d76496b5e | vyorkin/tiger | config.ml | type t = {
trace_sources: Trace_source.t list;
} [@@deriving make]
| null | https://raw.githubusercontent.com/vyorkin/tiger/54dd179c1cd291df42f7894abce3ee9064e18def/chapter8/lib/config.ml | ocaml | type t = {
trace_sources: Trace_source.t list;
} [@@deriving make]
| |
911203140effd9a64e2e7c445eee2793f491d05835cebfa5d067b9bdcae82b8b | dyzsr/ocaml-selectml | t210-setfield0.ml | TEST
include tool - ocaml - lib
flags = " -w -a "
ocaml_script_as_argument = " true "
* setup - ocaml - build - env
* *
include tool-ocaml-lib
flags = "-w -a"
ocaml_script_as_argument = "true"
* setup-ocaml-build-env
** ocaml
*)
open Lib;;
type t = {
mutable a : int;
};;
let x = {a = 7} in
x.a <- 11;
... | null | https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/testsuite/tests/tool-ocaml/t210-setfield0.ml | ocaml | TEST
include tool - ocaml - lib
flags = " -w -a "
ocaml_script_as_argument = " true "
* setup - ocaml - build - env
* *
include tool-ocaml-lib
flags = "-w -a"
ocaml_script_as_argument = "true"
* setup-ocaml-build-env
** ocaml
*)
open Lib;;
type t = {
mutable a : int;
};;
let x = {a = 7} in
x.a <- 11;
... | |
f5d1b3a166cbf51ce9328f5ff00ca9ff6abfcb06ff85568e02e22f4cb0ccd001 | karamellpelle/grid | GLFW.hs | grid is a game written in Haskell
Copyright ( C ) 2018
--
-- This file is part of grid.
--
-- grid 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 optio... | null | https://raw.githubusercontent.com/karamellpelle/grid/56729e63ed6404fd6cfd6d11e73fa358f03c386f/source/MEnv/Tick/GLFW.hs | haskell |
This file is part of grid.
grid is free software: you can redistribute it and/or modify
(at your option) any later version.
grid 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
GN... | grid is a game written in Haskell
Copyright ( C ) 2018
it 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
# LANGUAGE ForeignFunctionInterface #
module MEnv.T... |
261b1fb534a145df8e1b47f75a91b31e0554a033a9cb1d78a17d1e4e8a7c6800 | cubicle-model-checker/cubicle | z3wrapper_fake.ml | (**************************************************************************)
(* *)
Cubicle
(* *)
... | null | https://raw.githubusercontent.com/cubicle-model-checker/cubicle/00f09bb2d4bb496549775e770d7ada08bc1e4866/smt/z3wrapper_fake.ml | ocaml | ************************************************************************
... | Cubicle
Copyright ( C ) 2011 - 2014
and
Universite Paris - Sud 11
This file is distributed under the terms ... |
fbdda9d5016e548443d5a5269719bd5b6265a5bf9657a2362f058e01b99dcc5e | ice1000/learn | QuickSort.hs | module Main where
if' :: Bool -> a -> a -> a
if' True x _ = x
if' False _ y = y
zipIf :: [Bool] -> [a] -> [a] -> [a]
zipIf x y z = zipWith3 if' x y z
zipIf [ True , False , True ] [ 1 , 2 , 3 ] [ 2 , 3 , 4 ]
qs :: (Ord a) => [a] -> [a]
qs [] = []
qs [x] = [x]
qs [x, y] ... | null | https://raw.githubusercontent.com/ice1000/learn/4ce5ea1897c97f7b5b3aee46ccd994e3613a58dd/Haskell/QuickSort.hs | haskell | module Main where
if' :: Bool -> a -> a -> a
if' True x _ = x
if' False _ y = y
zipIf :: [Bool] -> [a] -> [a] -> [a]
zipIf x y z = zipWith3 if' x y z
zipIf [ True , False , True ] [ 1 , 2 , 3 ] [ 2 , 3 , 4 ]
qs :: (Ord a) => [a] -> [a]
qs [] = []
qs [x] = [x]
qs [x, y] ... | |
9f5f0dbe108fa068addb3d76c3b4a8a0f98777ac6acbc41e81876819252218bd | manuel-serrano/bigloo | feffect.scm | ;*=====================================================================*/
* ... /prgm / project / bigloo / / comptime / Effect / feffect.scm * /
;* ------------------------------------------------------------- */
* Author : * /
* Creation : F... | null | https://raw.githubusercontent.com/manuel-serrano/bigloo/fdeac39af72d5119d01818815b0f395f2907d6da/comptime/Effect/feffect.scm | scheme | *=====================================================================*/
* ------------------------------------------------------------- */
* ------------------------------------------------------------- */
* The effect of the functions (i.e. does a function read a pair, */
* does it set a vector or... | * ... /prgm / project / bigloo / / comptime / Effect / feffect.scm * /
* Author : * /
* Creation : Fri Sep 26 08:48:52 2003 * /
* Last change : We d Jun 16 16:00:13 2021 ( serrano ) * /
* Copyrigh... |
ffac1cc824bf59768cde1c4b784fa0db5c1e9c8f49ce6fcee8deb939c8797ffd | racket/gui | gauge.rkt | #lang racket/base
(require ffi/unsafe
ffi/unsafe/define
racket/class
"../../syntax.rkt"
"item.rkt"
"utils.rkt"
"types.rkt"
"window.rkt"
"const.rkt")
(provide
(protect-out gauge%))
;; ----------------------------------------
(define-gtk gtk_progress_... | null | https://raw.githubusercontent.com/racket/gui/d1fef7a43a482c0fdd5672be9a6e713f16d8be5c/gui-lib/mred/private/wx/gtk/gauge.rkt | racket | ---------------------------------------- | #lang racket/base
(require ffi/unsafe
ffi/unsafe/define
racket/class
"../../syntax.rkt"
"item.rkt"
"utils.rkt"
"types.rkt"
"window.rkt"
"const.rkt")
(provide
(protect-out gauge%))
(define-gtk gtk_progress_bar_new (_fun _pointer -> _GtkWidget))
(defi... |
9c93e836d93d0f8083905dac5af287ee96ba826c56b0459807757a909ef4efcb | Kakadu/fp2022 | ast.mli | * Copyright 2021 - 2022 ,
* SPDX - License - Identifier : LGPL-3.0 - or - later
type name = string
val pp_name : Ppx_show_runtime.Format.formatter -> name -> unit
val show_name : name -> string
(** binary operators *)
type binop =
| Add (** ( + ) *)
| Sub (** ( - ) *)
| Mul (** ( * ) *)
| Div (** ( div ) ... | null | https://raw.githubusercontent.com/Kakadu/fp2022/132b0dc58bc19e25007c40eebdff82cbe855160c/Pascal/lib/ast.mli | ocaml | * binary operators
* ( + )
* ( - )
* ( * )
* ( div )
* ( mod )
* ( / )
* ( and )
* ( or )
* ( > )
* ( < )
* ( = )
* ( <> )
* ( >= )
* ( <= )
* ( bit shift right )
* ( bit shift left )
* unary operators
* ( + )
* ( - )
* ( not )
* types which parser returns
* boolean type
* integer type
* real ty... | * Copyright 2021 - 2022 ,
* SPDX - License - Identifier : LGPL-3.0 - or - later
type name = string
val pp_name : Ppx_show_runtime.Format.formatter -> name -> unit
val show_name : name -> string
type binop =
* ( )
val pp_binop : Ppx_show_runtime.Format.formatter -> binop -> unit
val show_binop : binop -> string
... |
3b3d9dd5487002987854d7b3d0e4f252f3ecf07c00be2faba504f61023f052d1 | omnyway-labs/vulcan | link.clj | (ns vulcan.deps.link)
(defn resolve-local [dep-name dep]
(merge {:local/root (str "../" (name dep-name))}
dep))
(defn link [deps]
(reduce-kv #(assoc %1 %2 (resolve-local %2 %3)) {} deps))
(defn unlink [deps]
(reduce-kv #(assoc %1 %2 (dissoc %3 :local/root)) {} deps))
| null | https://raw.githubusercontent.com/omnyway-labs/vulcan/9cebe1f666b323080689b5283f313bd2292375fc/src/vulcan/deps/link.clj | clojure | (ns vulcan.deps.link)
(defn resolve-local [dep-name dep]
(merge {:local/root (str "../" (name dep-name))}
dep))
(defn link [deps]
(reduce-kv #(assoc %1 %2 (resolve-local %2 %3)) {} deps))
(defn unlink [deps]
(reduce-kv #(assoc %1 %2 (dissoc %3 :local/root)) {} deps))
| |
dd0f63035eae2d3ea38940850f223956f52fc87574b9429d09c4e049ab093eda | jordanthayer/ocaml-search | drn_optimistic_algs.ml | (* Optimistic Algs *)
open Drn_instance
open Dynamic
(* Tools *)
let hd problem =
let d = (make_approx_d problem)
and h = (make_approx_time_h problem) in
(fun n -> h n, d n)
let make_wt c agg =
(c -. 1.) *. agg +. 1.
Algs
let aggressive wt w lim =
let problem = expand_obstacles w in
Aggressive.ag... | null | https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/dyn_robot/drn_optimistic_algs.ml | ocaml | Optimistic Algs
Tools | open Drn_instance
open Dynamic
let hd problem =
let d = (make_approx_d problem)
and h = (make_approx_time_h problem) in
(fun n -> h n, d n)
let make_wt c agg =
(c -. 1.) *. agg +. 1.
Algs
let aggressive wt w lim =
let problem = expand_obstacles w in
Aggressive.aggressive_search_dups
~limit... |
b5027448c041e062af189e0349e5e7a227144a47f8756df0ed9fdb4bd71d1437 | sharplispers/montezuma | token-filters.lisp | (in-package #:montezuma)
(defclass token-filter (token-stream)
((input :initarg :input)))
(defmethod close ((self token-filter))
(with-slots (input) self
(close input)))
(defclass lowercase-filter (token-filter)
())
(defmethod next-token ((self lowercase-filter))
(with-slots (input) self
(let ((toke... | null | https://raw.githubusercontent.com/sharplispers/montezuma/ee2129eece7065760de4ebbaeffaadcb27644738/src/analysis/token-filters.lisp | lisp | (in-package #:montezuma)
(defclass token-filter (token-stream)
((input :initarg :input)))
(defmethod close ((self token-filter))
(with-slots (input) self
(close input)))
(defclass lowercase-filter (token-filter)
())
(defmethod next-token ((self lowercase-filter))
(with-slots (input) self
(let ((toke... | |
81ad42ebc7aeaa5939975e952269beca89d0411e3f4b18e9f3f8dff56474c25f | logicblocks/salutem | core_test.clj | (ns salutem.check-fns.data-source.core-test
(:require
[clojure.test :refer :all]
[cartus.test :as ct]
[next.jdbc.result-set :as jdbc-rs]
[salutem.core :as salutem]
[salutem.check-fns.data-source.core :as scfds]
[salutem.test.support.jdbc :as jdbc])
(:import
[java.sql SQLException SQLTimeout... | null | https://raw.githubusercontent.com/logicblocks/salutem/e60d19bdf71873a303dbd84e6b2b781137158b65/check-fns/data-source/test/unit/salutem/check_fns/data_source/core_test.clj | clojure | (ns salutem.check-fns.data-source.core-test
(:require
[clojure.test :refer :all]
[cartus.test :as ct]
[next.jdbc.result-set :as jdbc-rs]
[salutem.core :as salutem]
[salutem.check-fns.data-source.core :as scfds]
[salutem.test.support.jdbc :as jdbc])
(:import
[java.sql SQLException SQLTimeout... | |
4a9fd3c8f98b1afd108ea046cbd3a82a8abb2e06404f975e0a3d5b27ce5f4611 | darrenldl/ProVerif-ATP | simplify.ml | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* Cryptographic protocol verifier *
* *
... | null | https://raw.githubusercontent.com/darrenldl/ProVerif-ATP/7af6cfb9e0550ecdb072c471e15b8f22b07408bd/proverif2.00/src/simplify.ml | ocaml | ********************************************
Types of normalised process
*********************************************
***********************************************
Display of normalized processes
***********************************************
********************************************
... | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* Cryptographic protocol verifier *
* *
... |
408b92802e514cbc735fdb023781efe993c8a33a8af48b9936419d91d2ee94d0 | mfoemmel/erlang-otp | snmpa_svbl.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 1996 - 2009 . All Rights Reserved .
%%
The contents of this file are subject to the Erlang Public License ,
Version 1.1 , ( the " License " ) ; you may not use this file except in
%% compliance with the License. You should have received a copy of the
%% Erlang Pub... | null | https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/snmp/src/agent/snmpa_svbl.erl | erlang |
%CopyrightBegin%
compliance with the License. You should have received a copy of the
Erlang Public License along with this software. If not, it can be
retrieved online at /.
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
the License for the specific language governing rights and limita... | Copyright Ericsson AB 1996 - 2009 . All Rights Reserved .
The contents of this file are subject to the Erlang Public License ,
Version 1.1 , ( the " License " ) ; you may not use this file except in
Software distributed under the License is distributed on an " AS IS "
-module(snmpa_svbl).
-include("snmp_types.... |
0c3f3267e0056d353a4d6ca5a5f432c40cfb7b4c7aedd008e455c959f1abfb9f | oden-lang/oden | Desugar.hs | # LANGUAGE LambdaCase #
module Oden.Desugar
(
DesugarError(..),
desugarExpr,
desugarTopLevel,
desugarPackage
) where
import Oden.Core.Expr
import Oden.Core.Package
import Oden.Core.Untyped
import Oden.Identifier
import Oden.Metadata
import Oden.Qualified... | null | https://raw.githubusercontent.com/oden-lang/oden/10c99b59c8b77c4db51ade9a4d8f9573db7f4d14/src/Oden/Desugar.hs | haskell | invalid, but can be handled anyway
temporary metadata for top level definitions, used for keeping track
of duplications and detecting missing terms for type signatures
whether this signature has a corresponding definition
type already defined
TODO: Add support for type parameters
if there's type signature, keep ... | # LANGUAGE LambdaCase #
module Oden.Desugar
(
DesugarError(..),
desugarExpr,
desugarTopLevel,
desugarPackage
) where
import Oden.Core.Expr
import Oden.Core.Package
import Oden.Core.Untyped
import Oden.Identifier
import Oden.Metadata
import Oden.Qualified... |
2358270a691f3bd6d2db4ee689b59164b6b7235bde556f1574f9c476c887c14d | mirage/bechamel | analyze.mli | * Analyze module .
Micro - benchmark usually uses a { i linear - regression } to estimates the
execution time of a code segments . For example , the following table might
represent [ { ! } array ] collected by { ! } :
{ v
+ -----+------+
| run | time |
+ -----+------+
| 1 ... | null | https://raw.githubusercontent.com/mirage/bechamel/54e90c0121ab37998f1598bd380bb3a51bd8630b/lib/analyze.mli | ocaml | * Type of analysis.
* [merge witnesses tbls] returns a dictionary where the key is the {i label}
of a measure (from the given [witnesses]) and the value is the result of
this specific measure. | * Analyze module .
Micro - benchmark usually uses a { i linear - regression } to estimates the
execution time of a code segments . For example , the following table might
represent [ { ! } array ] collected by { ! } :
{ v
+ -----+------+
| run | time |
+ -----+------+
| 1 ... |
ec775493d7b930b1c333656c404ce3fbf9b0fa832cf3426bfeb34078617f9fd7 | crategus/cl-cffi-gtk | rtest-gtk-button-box.lisp | (def-suite gtk-button-box :in gtk-suite)
(in-suite gtk-button-box)
;;; Types and Values
;;; GtkButtonBoxStyle
(test gtk-button-box-style
;; Check the type
(is (g-type-is-enum "GtkButtonBoxStyle"))
;; Check the type initializer
(is (eq (gtype "GtkButtonBoxStyle")
(gtype (foreign-funcall "gtk_but... | null | https://raw.githubusercontent.com/crategus/cl-cffi-gtk/7f5a09f78d8004a71efa82794265f2587fff98ab/test/rtest-gtk-button-box.lisp | lisp | Types and Values
GtkButtonBoxStyle
Check the type
Check the type initializer
Check the registered name
Check the names
Check the values
Check the enum definition
GtkButtonBox
Type check
Check the registered name
Check the type initializer
Check the parent
Check the children
Check the interfaces
... | (def-suite gtk-button-box :in gtk-suite)
(in-suite gtk-button-box)
(test gtk-button-box-style
(is (g-type-is-enum "GtkButtonBoxStyle"))
(is (eq (gtype "GtkButtonBoxStyle")
(gtype (foreign-funcall "gtk_button_box_style_get_type" g-size))))
(is (eq 'gtk-button-box-style
(registered-enum-type ... |
056dc3fe8475407650bffa2ba4bcc51cd66a5d5b0ab53c409e4e9d21b5ee495c | themetaschemer/malt | no-duals-no-overrides.rkt | #lang racket/base
(module+ test
(require rackunit))
(require "tensors.rkt")
(require "ext-ops.rkt")
(provide
;; From tensors
len ref refr
tref tlen tmap list->tensor tensor build-tensor
(rename-out (ext1 ext1-ρ) (ext2 ext2-ρ))
scalar? tensor? rank shape reshape trefs
;; From ext-ops
+-ρ --ρ *-ρ /-ρ rect... | null | https://raw.githubusercontent.com/themetaschemer/malt/4a998f1d0e87de40b9d524fa4ac9f781516bfcef/learner/no-duals-no-overrides.rkt | racket | From tensors
From ext-ops | #lang racket/base
(module+ test
(require rackunit))
(require "tensors.rkt")
(require "ext-ops.rkt")
(provide
len ref refr
tref tlen tmap list->tensor tensor build-tensor
(rename-out (ext1 ext1-ρ) (ext2 ext2-ρ))
scalar? tensor? rank shape reshape trefs
+-ρ --ρ *-ρ /-ρ rectify-ρ
exp-ρ log-ρ expt-ρ sqrt-ρ s... |
8a0876dac1f5f26e205a95cf011c112786f543a5c5643dbc2ce68e6df37511ab | josteink/lein-drip | process.clj | (ns leindrip.process
(:use leindrip.platform
leindrip.util
[clojure.java.shell :only (sh with-sh-dir)]))
; actual worker-functions (dummy functions for now)
(def drip-line
(str "LEIN_JAVA_CMD=" (get-leindrip-executable)))
(defn leindrip-folder-exists? []
(let [folder-name (get-leindrip-folder)]... | null | https://raw.githubusercontent.com/josteink/lein-drip/023eeb6727081497c24b13aa1390cb4b7727c0fc/src/leindrip/process.clj | clojure | actual worker-functions (dummy functions for now) | (ns leindrip.process
(:use leindrip.platform
leindrip.util
[clojure.java.shell :only (sh with-sh-dir)]))
(def drip-line
(str "LEIN_JAVA_CMD=" (get-leindrip-executable)))
(defn leindrip-folder-exists? []
(let [folder-name (get-leindrip-folder)]
(and (path-exists? folder-name)
(is-di... |
0b59a6e704851f093775e373939d7368046b204de00f685832551f2843f3d10a | dmitryvk/sbcl-win32-threads | error.lisp | SBCL - specific parts of the condition system , i.e. parts which
;;;; don't duplicate/clobber functionality already provided by the
cross - compilation host Common Lisp
This software is part of the SBCL system . See the README file for
;;;; more information.
;;;;
This software is derived from the CMU CL system... | null | https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/code/error.lisp | lisp | don't duplicate/clobber functionality already provided by the
more information.
public domain. The software is in the public domain and is
provided with absolutely no warranty. See the COPYING and CREDITS
files for more information.
not sure this is the right place, but where else?
specifier for a subtype of ST... | SBCL - specific parts of the condition system , i.e. parts which
cross - compilation host Common Lisp
This software is part of the SBCL system . See the README file for
This software is derived from the CMU CL system , which was
written at Carnegie Mellon University and released into the
(in-package "SB!KER... |
cdd29c3fbd8a89c9f60887b543ac868f33904d95599db58813dd82d4d36e0690 | hopv/MoCHi | csisatDpllProof.ml |
* CSIsat is an interpolating decision procedure for LA + EUF .
* This file is part of CSIsat .
*
* Copyright ( C ) 2007 - 2008 and .
* All rights reserved .
*
* Licensed under the Apache License , Version 2.0 ( the " License " ) ;
* you may not use this file except in complianc... | null | https://raw.githubusercontent.com/hopv/MoCHi/b0ac0d626d64b1e3c779d8e98cb232121cc3196a/csisat/lib/csisatDpllProof.ml | ocaml | * Part of the DPLL: (resolution) Proof
*/*
*/*
* Resolution proof
* pivot, left, right, result
* A leaf is simply a clause. |
* CSIsat is an interpolating decision procedure for LA + EUF .
* This file is part of CSIsat .
*
* Copyright ( C ) 2007 - 2008 and .
* All rights reserved .
*
* Licensed under the Apache License , Version 2.0 ( the " License " ) ;
* you may not use this file except in complianc... |
9811e3dde4d37ef7ff79137ce63c5dcb92b1360671b841f9a4cda65c838a2dc9 | qfpl/reflex-realworld-example | Profiles.hs | # LANGUAGE DataKinds , , DeriveGeneric , StandaloneDeriving , TypeOperators #
module Common.Conduit.Api.Profiles
( ProfilesApi
, Profile(Profile)
) where
import Data.Text (Text)
import Servant.API ((:>), Capture, Get, JSON)
import Servant.Auth (Auth, JWT)
import Common.Conduit.Api.Namespace (Namespa... | null | https://raw.githubusercontent.com/qfpl/reflex-realworld-example/aca3125e036fbb5edd3a20d0e5a13ec73eaa6fcb/common/src/Common/Conduit/Api/Profiles.hs | haskell | # LANGUAGE DataKinds , , DeriveGeneric , StandaloneDeriving , TypeOperators #
module Common.Conduit.Api.Profiles
( ProfilesApi
, Profile(Profile)
) where
import Data.Text (Text)
import Servant.API ((:>), Capture, Get, JSON)
import Servant.Auth (Auth, JWT)
import Common.Conduit.Api.Namespace (Namespa... | |
958c4d92378577b5eacf263fc3a7a8b6f7d05fd374489f98e397eb86f0d3190c | layerware/hugsql | project.clj | (defproject com.layerware/hugsql-adapter-clojure-jdbc "0.5.3"
:description "clojure.jdbc hugsql adapter"
:url ""
:license {:name "Apache License, Version 2.0"
:url "-2.0.html"}
:scm {:dir ".."}
:dependencies [[org.clojure/clojure "1.8.0"]
[com.layerware/hugsql-adapter "0.5.3"]
... | null | https://raw.githubusercontent.com/layerware/hugsql/ad73d080f84487c3438058ed5203d44f06c46365/hugsql-adapter-clojure-jdbc/project.clj | clojure | (defproject com.layerware/hugsql-adapter-clojure-jdbc "0.5.3"
:description "clojure.jdbc hugsql adapter"
:url ""
:license {:name "Apache License, Version 2.0"
:url "-2.0.html"}
:scm {:dir ".."}
:dependencies [[org.clojure/clojure "1.8.0"]
[com.layerware/hugsql-adapter "0.5.3"]
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.