Search is not available for this dataset
repo_name
string
path
string
license
string
full_code
string
full_size
int64
uncommented_code
string
uncommented_size
int64
function_only_code
string
function_only_size
int64
is_commented
bool
is_signatured
bool
n_ast_errors
int64
ast_max_depth
int64
n_whitespaces
int64
n_ast_nodes
int64
n_ast_terminals
int64
n_ast_nonterminals
int64
loc
int64
cycloplexity
int64
owickstrom/owickstrom.github.io
diagrams/src/TimelineDiagrams.hs
mit
lastId :: Id -> Maybe Int lastId (Id []) = Nothing
50
lastId :: Id -> Maybe Int lastId (Id []) = Nothing
50
lastId (Id []) = Nothing
24
false
true
0
7
10
33
15
18
null
null
markuspf/Idris-dev
src/Idris/Delaborate.hs
bsd-3-clause
pprintErr' i (ReflectionError parts orig) = let parts' = map (fillSep . map (showPart i)) parts in align (fillSep parts') <> if (opt_origerr (idris_options i)) then line <> line <> text "Original error:" <$> indented (pprintErr' i orig) else empty
261
pprintErr' i (ReflectionError parts orig) = let parts' = map (fillSep . map (showPart i)) parts in align (fillSep parts') <> if (opt_origerr (idris_options i)) then line <> line <> text "Original error:" <$> indented (pprintErr' i orig) else empty
261
pprintErr' i (ReflectionError parts orig) = let parts' = map (fillSep . map (showPart i)) parts in align (fillSep parts') <> if (opt_origerr (idris_options i)) then line <> line <> text "Original error:" <$> indented (pprintErr' i orig) else empty
261
false
false
0
14
53
110
53
57
null
null
nevrenato/Hets_Fork
LF/Morphism.hs
gpl-2.0
-- induces a morphism from the source and target sigs and a symbol map inducedFromToMorphism :: Map.Map Symbol (EXP,EXP) -> Sign -> Sign -> Result Morphism inducedFromToMorphism m sig1 sig2 = let mor = Morphism gen_base gen_module "" sig1 sig2 Unknown Map.empty defs = filter (\ (Def _ _...
397
inducedFromToMorphism :: Map.Map Symbol (EXP,EXP) -> Sign -> Sign -> Result Morphism inducedFromToMorphism m sig1 sig2 = let mor = Morphism gen_base gen_module "" sig1 sig2 Unknown Map.empty defs = filter (\ (Def _ _ v) -> v == Nothing) $ getLocalDefs sig1 in buildFromToMorph defs...
326
inducedFromToMorphism m sig1 sig2 = let mor = Morphism gen_base gen_module "" sig1 sig2 Unknown Map.empty defs = filter (\ (Def _ _ v) -> v == Nothing) $ getLocalDefs sig1 in buildFromToMorph defs m mor
216
true
true
0
14
100
119
59
60
null
null
peterokagey/haskellOEIS
src/Miscellaneous/A318271.hs
apache-2.0
a318271 :: Int -> Int a318271 = minimumTime . a026791_row
57
a318271 :: Int -> Int a318271 = minimumTime . a026791_row
57
a318271 = minimumTime . a026791_row
35
false
true
0
5
9
19
10
9
null
null
acowley/ghc
libraries/template-haskell/Language/Haskell/TH/Syntax.hs
bsd-3-clause
-- | @reifyAnnotations target@ returns the list of annotations -- associated with @target@. Only the annotations that are -- appropriately typed is returned. So if you have @Int@ and @String@ -- annotations for the same target, you have to call this function twice. reifyAnnotations :: Data a => AnnLookup -> Q [a] rei...
363
reifyAnnotations :: Data a => AnnLookup -> Q [a] reifyAnnotations an = Q (qReifyAnnotations an)
95
reifyAnnotations an = Q (qReifyAnnotations an)
46
true
true
0
8
59
44
23
21
null
null
CaptainPatate/xmonad-contrib
XMonad/Layout/DecorationAddons.hs
bsd-3-clause
minimizeButtonOffset :: Int minimizeButtonOffset = 48
53
minimizeButtonOffset :: Int minimizeButtonOffset = 48
53
minimizeButtonOffset = 48
25
false
true
0
6
5
18
7
11
null
null
m00nlight/hackerrank
functional/memorization-dp/Mirko-at-the-Construction-Site/main.hs
gpl-2.0
bad :: Line -> Line -> Line -> Bool bad l1@(p1, _) l2@(p2, _) l3@(p3, _) = aux c where c = ccw p1 p2 p3 aux c | c == 0 = snd p2 < snd p3 | otherwise = c < 0
189
bad :: Line -> Line -> Line -> Bool bad l1@(p1, _) l2@(p2, _) l3@(p3, _) = aux c where c = ccw p1 p2 p3 aux c | c == 0 = snd p2 < snd p3 | otherwise = c < 0
189
bad l1@(p1, _) l2@(p2, _) l3@(p3, _) = aux c where c = ccw p1 p2 p3 aux c | c == 0 = snd p2 < snd p3 | otherwise = c < 0
153
false
true
4
8
76
125
60
65
null
null
markuspf/Idris-dev
src/Idris/Completion.hs
bsd-3-clause
completeColour :: CompletionFunc Idris completeColour (prev, next) = case words (reverse prev) of [c] | isCmd c -> do cmpls <- completeColourOpt next return (reverse $ c ++ " ", cmpls) [c, o] | o `elem` o...
1,988
completeColour :: CompletionFunc Idris completeColour (prev, next) = case words (reverse prev) of [c] | isCmd c -> do cmpls <- completeColourOpt next return (reverse $ c ++ " ", cmpls) [c, o] | o `elem` o...
1,988
completeColour (prev, next) = case words (reverse prev) of [c] | isCmd c -> do cmpls <- completeColourOpt next return (reverse $ c ++ " ", cmpls) [c, o] | o `elem` opts -> let correct = (c ++ " " ++ o) in...
1,949
false
true
5
16
839
541
270
271
null
null
narrative/stack
src/Stack/Build.hs
bsd-3-clause
-- | Get the @BaseConfigOpts@ necessary for constructing configure options mkBaseConfigOpts :: (MonadIO m, MonadReader env m, HasEnvConfig env, MonadThrow m) => BuildOptsCLI -> m BaseConfigOpts mkBaseConfigOpts boptsCli = do bopts <- asks (configBuild . getConfig) snapDBPath <- packageDatabaseD...
885
mkBaseConfigOpts :: (MonadIO m, MonadReader env m, HasEnvConfig env, MonadThrow m) => BuildOptsCLI -> m BaseConfigOpts mkBaseConfigOpts boptsCli = do bopts <- asks (configBuild . getConfig) snapDBPath <- packageDatabaseDeps localDBPath <- packageDatabaseLocal snapInstallRoot <- installa...
810
mkBaseConfigOpts boptsCli = do bopts <- asks (configBuild . getConfig) snapDBPath <- packageDatabaseDeps localDBPath <- packageDatabaseLocal snapInstallRoot <- installationRootDeps localInstallRoot <- installationRootLocal packageExtraDBs <- packageDatabaseExtra return BaseConfigOpts ...
674
true
true
0
11
204
159
82
77
null
null
RefactoringTools/HaRe
old/testing/evalMonad/A1AST.hs
bsd-3-clause
n1_2 = "bob"
12
n1_2 = "bob"
12
n1_2 = "bob"
12
false
false
1
5
2
10
3
7
null
null
fmapfmapfmap/amazonka
amazonka-iam/test/Test/AWS/Gen/IAM.hs
mpl-2.0
testUpdateSSHPublicKey :: UpdateSSHPublicKey -> TestTree testUpdateSSHPublicKey = req "UpdateSSHPublicKey" "fixture/UpdateSSHPublicKey.yaml"
148
testUpdateSSHPublicKey :: UpdateSSHPublicKey -> TestTree testUpdateSSHPublicKey = req "UpdateSSHPublicKey" "fixture/UpdateSSHPublicKey.yaml"
148
testUpdateSSHPublicKey = req "UpdateSSHPublicKey" "fixture/UpdateSSHPublicKey.yaml"
91
false
true
0
5
17
20
10
10
null
null
c19/Exercism-Haskell
complex-numbers/src/ComplexNumbers.hs
mit
div :: Fractional a => Complex a -> Complex a -> Complex a div (Complex a b) (Complex c d) = Complex ((a * c + b * d) / (c * c + d * d)) ((b * c - a * d) / (c * c + d * d))
172
div :: Fractional a => Complex a -> Complex a -> Complex a div (Complex a b) (Complex c d) = Complex ((a * c + b * d) / (c * c + d * d)) ((b * c - a * d) / (c * c + d * d))
172
div (Complex a b) (Complex c d) = Complex ((a * c + b * d) / (c * c + d * d)) ((b * c - a * d) / (c * c + d * d))
113
false
true
0
11
51
139
69
70
null
null
olsner/ghc
testsuite/tests/typecheck/should_run/T7861.hs
bsd-3-clause
main = do { print "Hello 1" ; f `seq` print "Hello 2" -- The casts are pushed inside the lambda -- for f, so this seq succeeds fine -- It does require ImpredicativeTypes, because we instantiate -- seq's type (c->d->d) with f's type (c:= (forall b. a) ->...
495
main = do { print "Hello 1" ; f `seq` print "Hello 2" -- The casts are pushed inside the lambda -- for f, so this seq succeeds fine -- It does require ImpredicativeTypes, because we instantiate -- seq's type (c->d->d) with f's type (c:= (forall b. a) ->...
495
main = do { print "Hello 1" ; f `seq` print "Hello 2" -- The casts are pushed inside the lambda -- for f, so this seq succeeds fine -- It does require ImpredicativeTypes, because we instantiate -- seq's type (c->d->d) with f's type (c:= (forall b. a) ->...
495
false
false
0
10
189
55
31
24
null
null
danstiner/dupes
src/FileAccess.hs
mit
runPure :: [FilePath] -> FileAccess a -> a runPure paths (Free (DoesDirectoryExist path f)) = runPure paths . f $ path `elem` paths
131
runPure :: [FilePath] -> FileAccess a -> a runPure paths (Free (DoesDirectoryExist path f)) = runPure paths . f $ path `elem` paths
131
runPure paths (Free (DoesDirectoryExist path f)) = runPure paths . f $ path `elem` paths
88
false
true
0
12
22
67
32
35
null
null
NorfairKing/the-notes
src/Probability/RandomVariable/Macro.hs
gpl-2.0
-- probability density function prds :: Note -> Note prds = prdsm dsf_
71
prds :: Note -> Note prds = prdsm dsf_
38
prds = prdsm dsf_
17
true
true
0
7
13
25
11
14
null
null
tolysz/yesod
yesod-core/Yesod/Core/Handler.hs
mit
-- | Same as 'provideRep', but instead of determining the content type from the -- type of the value itself, you provide the content type separately. This can -- be a convenience instead of creating newtype wrappers for uncommonly used -- content types. -- -- > provideRepType "application/x-special-format" "This is the...
593
provideRepType :: (Monad m, ToContent a) => ContentType -> m a -> Writer.Writer (Endo [ProvidedRep m]) () provideRepType ct handler = Writer.tell $ Endo (ProvidedRep ct (liftM toContent handler):)
245
provideRepType ct handler = Writer.tell $ Endo (ProvidedRep ct (liftM toContent handler):)
94
true
true
0
12
133
97
52
45
null
null
bitemyapp/ganeti
src/Ganeti/Constants.hs
bsd-2-clause
osValidateCalls :: FrozenSet String osValidateCalls = ConstantUtils.mkSet [osValidateParameters]
96
osValidateCalls :: FrozenSet String osValidateCalls = ConstantUtils.mkSet [osValidateParameters]
96
osValidateCalls = ConstantUtils.mkSet [osValidateParameters]
60
false
true
1
6
7
25
11
14
null
null
kazu-yamamoto/http2
Network/HTTP2/Arch/Receiver.hs
bsd-3-clause
stream :: FrameTypeId -> FrameHeader -> ByteString -> Context -> StreamState -> Stream -> IO StreamState stream FrameHeaders header@FrameHeader{flags} bs ctx s@(Open JustOpened) Stream{streamNumber} = do HeadersFrame mp frag <- guardIt $ decodeHeadersFrame header bs let endOfStream = testEndStream flags ...
1,132
stream :: FrameTypeId -> FrameHeader -> ByteString -> Context -> StreamState -> Stream -> IO StreamState stream FrameHeaders header@FrameHeader{flags} bs ctx s@(Open JustOpened) Stream{streamNumber} = do HeadersFrame mp frag <- guardIt $ decodeHeadersFrame header bs let endOfStream = testEndStream flags ...
1,132
stream FrameHeaders header@FrameHeader{flags} bs ctx s@(Open JustOpened) Stream{streamNumber} = do HeadersFrame mp frag <- guardIt $ decodeHeadersFrame header bs let endOfStream = testEndStream flags endOfHeader = testEndHeader flags if frag == "" && not endOfStream && not endOfHeader then do ...
1,027
false
true
0
17
385
314
149
165
null
null
lambdageek/indentation
indentation-trifecta/tests/ParensTrifecta.hs
bsd-3-clause
evalTokenIndentationParserT :: Monad m => IndentationParserT Token m a -> IndentationState -> m a evalTokenIndentationParserT = evalIndentationParserT
150
evalTokenIndentationParserT :: Monad m => IndentationParserT Token m a -> IndentationState -> m a evalTokenIndentationParserT = evalIndentationParserT
150
evalTokenIndentationParserT = evalIndentationParserT
52
false
true
0
8
16
36
17
19
null
null
rahulmutt/ghcvm
compiler/Eta/Core/TrieMap.hs
bsd-3-clause
xtC env (TyConAppCo r tc cs) f m = m { km_tc_app = km_tc_app m |> xtR r |>> xtNamed tc |>> xtList (xtC env) cs f }
117
xtC env (TyConAppCo r tc cs) f m = m { km_tc_app = km_tc_app m |> xtR r |>> xtNamed tc |>> xtList (xtC env) cs f }
117
xtC env (TyConAppCo r tc cs) f m = m { km_tc_app = km_tc_app m |> xtR r |>> xtNamed tc |>> xtList (xtC env) cs f }
117
false
false
0
10
30
68
32
36
null
null
skogsbaer/HTF
tests/TestHTF.hs
lgpl-2.1
test_assertThrowsIO1_FAIL = assertThrows (fail "ERROR" :: IO ()) (handleExc False)
82
test_assertThrowsIO1_FAIL = assertThrows (fail "ERROR" :: IO ()) (handleExc False)
82
test_assertThrowsIO1_FAIL = assertThrows (fail "ERROR" :: IO ()) (handleExc False)
82
false
false
0
8
9
31
15
16
null
null
ganeti-github-testing/ganeti-test-1
src/Ganeti/HTools/Cluster.hs
bsd-2-clause
filterMGResults :: [(Group.Group, Result AllocSolution)] -> [(Group.Group, AllocSolution)] filterMGResults = foldl' fn [] where unallocable = not . Group.isAllocable fn accu (grp, rasol) = case rasol of Bad _ -> accu Ok sol | isNothing (asSolution sol) -> accu...
472
filterMGResults :: [(Group.Group, Result AllocSolution)] -> [(Group.Group, AllocSolution)] filterMGResults = foldl' fn [] where unallocable = not . Group.isAllocable fn accu (grp, rasol) = case rasol of Bad _ -> accu Ok sol | isNothing (asSolution sol) -> accu...
472
filterMGResults = foldl' fn [] where unallocable = not . Group.isAllocable fn accu (grp, rasol) = case rasol of Bad _ -> accu Ok sol | isNothing (asSolution sol) -> accu | unallocable grp -> accu | otherwise -> (grp, sol):accu -- | Sort ...
365
false
true
1
15
157
148
74
74
null
null
kindohm/Tidal
Sound/Tidal/Stream.hs
gpl-3.0
make :: (a -> Datum) -> OscShape -> String -> Pattern a -> OscPattern make toOsc s nm p = fmap (\x -> Map.singleton nParam (defaultV x)) p where nParam = param s nm defaultV a = Just $ toOsc a --defaultV Nothing = defaultDatum nParam
251
make :: (a -> Datum) -> OscShape -> String -> Pattern a -> OscPattern make toOsc s nm p = fmap (\x -> Map.singleton nParam (defaultV x)) p where nParam = param s nm defaultV a = Just $ toOsc a --defaultV Nothing = defaultDatum nParam
251
make toOsc s nm p = fmap (\x -> Map.singleton nParam (defaultV x)) p where nParam = param s nm defaultV a = Just $ toOsc a --defaultV Nothing = defaultDatum nParam
181
false
true
1
10
63
105
51
54
null
null
troydm/edda
test/EDDA/Schema/OutfittingV2Test.hs
mit
test3 :: Test test3 = TestCase $ do conf <- readConf val <- readJsonTestFile "test/EDDA/Schema/outfitting5.json" maybeHeader <- runReaderT (parseHeader val) conf assertBool "header couldn't be parsed" (isJust maybeHeader) let header...
1,199
test3 :: Test test3 = TestCase $ do conf <- readConf val <- readJsonTestFile "test/EDDA/Schema/outfitting5.json" maybeHeader <- runReaderT (parseHeader val) conf assertBool "header couldn't be parsed" (isJust maybeHeader) let header...
1,199
test3 = TestCase $ do conf <- readConf val <- readJsonTestFile "test/EDDA/Schema/outfitting5.json" maybeHeader <- runReaderT (parseHeader val) conf assertBool "header couldn't be parsed" (isJust maybeHeader) let header = fromJust ma...
1,185
false
true
0
12
377
224
99
125
null
null
vincenthz/sysui
src/Sysui.hs
bsd-3-clause
main = mySysuiConfig >>= defaultMain
36
main = mySysuiConfig >>= defaultMain
36
main = mySysuiConfig >>= defaultMain
36
false
false
0
5
4
10
5
5
null
null
mettekou/ghc
compiler/typecheck/TcGenDeriv.hs
bsd-3-clause
gcast1_RDR = varQual_RDR tYPEABLE (fsLit "gcast1")
55
gcast1_RDR = varQual_RDR tYPEABLE (fsLit "gcast1")
55
gcast1_RDR = varQual_RDR tYPEABLE (fsLit "gcast1")
55
false
false
0
7
10
17
8
9
null
null
davmre/matrizer
src/Matrizer/Analysis.hs
gpl-2.0
treeFLOPs (IdentityLeaf n) _ = return $ n * n
45
treeFLOPs (IdentityLeaf n) _ = return $ n * n
45
treeFLOPs (IdentityLeaf n) _ = return $ n * n
45
false
false
0
7
9
25
12
13
null
null
haskell-opengl/OpenGLRaw
src/Graphics/GL/Functions/F32.hs
bsd-3-clause
-- glVertexStream3ivATI -------------------------------------------------------- glVertexStream3ivATI :: MonadIO m => GLenum -- ^ @stream@ of type [VertexStreamATI](Graphics-GL-Groups.html#VertexStreamATI). -> Ptr GLint -- ^ @coords@ pointing to @3@ elements of type @GLint@. -> m () glVertexStream3ivATI v1 v2 ...
368
glVertexStream3ivATI :: MonadIO m => GLenum -- ^ @stream@ of type [VertexStreamATI](Graphics-GL-Groups.html#VertexStreamATI). -> Ptr GLint -- ^ @coords@ pointing to @3@ elements of type @GLint@. -> m () glVertexStream3ivATI v1 v2 = liftIO $ dyn143 ptr_glVertexStream3ivATI v1 v2
286
glVertexStream3ivATI v1 v2 = liftIO $ dyn143 ptr_glVertexStream3ivATI v1 v2
75
true
true
0
10
49
57
27
30
null
null
melted/idris-chez
src/Chez/Util.hs
isc
-- Translate a string literal to Scheme format -- Let's make it easy for us and render everything -- outside printable ascii stuff as unicode escapes schemeString :: String -> String schemeString s = "\"" ++ sift s ++ "\"" where sift "" = "" sift ('\\':cs) = "\\\\" ++ sift cs sift ('"':cs) =...
463
schemeString :: String -> String schemeString s = "\"" ++ sift s ++ "\"" where sift "" = "" sift ('\\':cs) = "\\\\" ++ sift cs sift ('"':cs) = "\\\"" ++ sift cs sift (c:cs) | isAscii c && isPrint c = c:sift cs sift (c:cs) = "\\x" ++ showHex (ord c) "" ++ ";" ++ sift cs
313
schemeString s = "\"" ++ sift s ++ "\"" where sift "" = "" sift ('\\':cs) = "\\\\" ++ sift cs sift ('"':cs) = "\\\"" ++ sift cs sift (c:cs) | isAscii c && isPrint c = c:sift cs sift (c:cs) = "\\x" ++ showHex (ord c) "" ++ ";" ++ sift cs
280
true
true
5
9
127
180
82
98
null
null
haroldcarr/learn-haskell-coq-ml-etc
haskell/topic/trees-that-grow-and-shrink/2017-09-spj-trees-that-grow/TTG.hs
unlicense
printE p (ExpX ξ) = p ξ
27
printE p (ExpX ξ) = p ξ
27
printE p (ExpX ξ) = p ξ
27
false
false
0
6
10
22
9
13
null
null
plaprade/haskoin
haskoin-core/src/Network/Haskoin/Script/Evaluator.hs
unlicense
dumpList :: [ByteString] -> ByteString dumpList xs = mconcat [ "[", BS.intercalate "," xs, "]" ]
96
dumpList :: [ByteString] -> ByteString dumpList xs = mconcat [ "[", BS.intercalate "," xs, "]" ]
96
dumpList xs = mconcat [ "[", BS.intercalate "," xs, "]" ]
57
false
true
0
8
15
40
21
19
null
null
jokusi/Astview
src/gui/Language/Astview/Gui/Actions.hs
mit
deleteStar :: AstAction () deleteStar ref = do w <- getWindow ref (t :: String) <- get w windowTitle bufferChanged <- getChanged ref when bufferChanged $ set w [windowTitle := tail t] setChanged False ref -- ------------------------------------------------------------------- -- ** editmenu menu actions -- --...
431
deleteStar :: AstAction () deleteStar ref = do w <- getWindow ref (t :: String) <- get w windowTitle bufferChanged <- getChanged ref when bufferChanged $ set w [windowTitle := tail t] setChanged False ref -- ------------------------------------------------------------------- -- ** editmenu menu actions -- --...
431
deleteStar ref = do w <- getWindow ref (t :: String) <- get w windowTitle bufferChanged <- getChanged ref when bufferChanged $ set w [windowTitle := tail t] setChanged False ref -- ------------------------------------------------------------------- -- ** editmenu menu actions -- -----------------------------...
404
false
true
0
11
62
95
44
51
null
null
r24y/svg2gcode
Text/Parse/SvgPath/PathParser.hs
gpl-3.0
scaleToFit target cs = scaleToFit' (boundsScaleAndCenter target (pathBounds cs)) cs
83
scaleToFit target cs = scaleToFit' (boundsScaleAndCenter target (pathBounds cs)) cs
83
scaleToFit target cs = scaleToFit' (boundsScaleAndCenter target (pathBounds cs)) cs
83
false
false
1
9
9
34
14
20
null
null
termite2/tsl
Frontend/StatementValidate.hs
bsd-3-clause
findInstPath _ (SMagic _ _) = Nothing
50
findInstPath _ (SMagic _ _) = Nothing
50
findInstPath _ (SMagic _ _) = Nothing
50
false
false
0
7
19
19
9
10
null
null
gafiatulin/codewars
src/8 kyu/Monkeys.hs
mit
monkeyCount :: Int -> [Int] monkeyCount x = [1..x]
50
monkeyCount :: Int -> [Int] monkeyCount x = [1..x]
50
monkeyCount x = [1..x]
22
false
true
0
6
8
26
14
12
null
null
emilaxelsson/ag-graph
bench/Bench.hs
bsd-3-clause
leavesBelow_expTree n = bgroup "Tree" [bench' (show n) (leavesBelow' 20) $ expTree n | n <- [startN..n]]
108
leavesBelow_expTree n = bgroup "Tree" [bench' (show n) (leavesBelow' 20) $ expTree n | n <- [startN..n]]
108
leavesBelow_expTree n = bgroup "Tree" [bench' (show n) (leavesBelow' 20) $ expTree n | n <- [startN..n]]
108
false
false
0
10
20
54
26
28
null
null
rueshyna/gogol
gogol-bigquery/gen/Network/Google/BigQuery/Types/Product.hs
mpl-2.0
-- | The type of table. Possible values are: TABLE, VIEW. tltiType :: Lens' TableListTablesItem (Maybe Text) tltiType = lens _tltiType (\ s a -> s{_tltiType = a})
162
tltiType :: Lens' TableListTablesItem (Maybe Text) tltiType = lens _tltiType (\ s a -> s{_tltiType = a})
104
tltiType = lens _tltiType (\ s a -> s{_tltiType = a})
53
true
true
0
9
27
46
25
21
null
null
DrNico/rhodium
tools/rhc-strap/Rhodium/Judgement.hs
mit
entails ctx (JUpTerm (UpVar n)) = (object ctx !! n) == UpType
65
entails ctx (JUpTerm (UpVar n)) = (object ctx !! n) == UpType
65
entails ctx (JUpTerm (UpVar n)) = (object ctx !! n) == UpType
65
false
false
0
9
15
37
18
19
null
null
unisonweb/platform
parser-typechecker/src/Unison/Runtime/IOSource.hs
mit
doc2SpecialFormSignatureInlineId = constructorNamed doc2SpecialFormRef "Doc2.SpecialForm.SignatureInline"
105
doc2SpecialFormSignatureInlineId = constructorNamed doc2SpecialFormRef "Doc2.SpecialForm.SignatureInline"
105
doc2SpecialFormSignatureInlineId = constructorNamed doc2SpecialFormRef "Doc2.SpecialForm.SignatureInline"
105
false
false
0
5
4
11
5
6
null
null
elieux/ghc
ghc/Main.hs
bsd-3-clause
doInteractiveMode = mkPostLoadMode DoInteractive
48
doInteractiveMode = mkPostLoadMode DoInteractive
48
doInteractiveMode = mkPostLoadMode DoInteractive
48
false
false
1
5
3
13
4
9
null
null
ssaavedra/liquidhaskell
tests/pos/RBTree.hs
bsd-3-clause
{-@ makeBlack :: ARBT a -> RBT a @-} makeBlack Leaf = Leaf
68
makeBlack Leaf = Leaf
31
makeBlack Leaf = Leaf
31
true
false
0
5
22
10
5
5
null
null
GaloisInc/pads-haskell
Examples/First.hs
bsd-3-clause
strSE_results_2 = strSE_parseS input_strSE_2
44
strSE_results_2 = strSE_parseS input_strSE_2
44
strSE_results_2 = strSE_parseS input_strSE_2
44
false
false
0
5
3
9
4
5
null
null
uwap/Idris-dev
src/Idris/Core/ProofTerm.hs
bsd-3-clause
rebuildTerm tm (AppR s f p) = App s f (rebuildTerm tm p)
56
rebuildTerm tm (AppR s f p) = App s f (rebuildTerm tm p)
56
rebuildTerm tm (AppR s f p) = App s f (rebuildTerm tm p)
56
false
false
0
7
12
39
17
22
null
null
rvion/ride
jetpack/src/Data/Map/Strict/AsMap.hs
bsd-3-clause
-- map_keys :: forall k a. Map k a -> [k] map_keys = I.keys
59
map_keys = I.keys
17
map_keys = I.keys
17
true
false
1
6
13
13
5
8
null
null
koengit/cyphy
test/TestWaterHeater.hs
mit
-- this is problematic. we need access to h in arbitrary (currently), -- but might want different h in different properties. -- it is ugly also. -- define a new arbitrary class where h and tmax can be provided? tmax :: Double tmax = 100
264
tmax :: Double tmax = 100
25
tmax = 100
10
true
true
0
4
72
15
10
5
null
null
modeswitch/barrelfish
tools/mackerel/Main.hs
mit
compilerOpts :: [String] -> IO (Options) compilerOpts argv = case getOpt Permute options argv of (o,n,[]) -> defaultInput (foldl (flip id) defaultOptions o) n (_,_,errs) -> usageError errs
200
compilerOpts :: [String] -> IO (Options) compilerOpts argv = case getOpt Permute options argv of (o,n,[]) -> defaultInput (foldl (flip id) defaultOptions o) n (_,_,errs) -> usageError errs
200
compilerOpts argv = case getOpt Permute options argv of (o,n,[]) -> defaultInput (foldl (flip id) defaultOptions o) n (_,_,errs) -> usageError errs
159
false
true
0
12
39
94
49
45
null
null
cameronbwhite/ComputationalStructures
Haskell/NFAe.hs
bsd-3-clause
star :: (Ord s, Ord q, Eq q, Enum q) => NFAe q s -> NFAe q s star nfa = let states' = start' `Set.insert` states nfa symbols' = symbols nfa start' = succ $ Set.findMax $ states nfa final' = start' `Set.insert` states nfa delta' q s | Set.member q qs && Set.notMember q fs = delta nf...
761
star :: (Ord s, Ord q, Eq q, Enum q) => NFAe q s -> NFAe q s star nfa = let states' = start' `Set.insert` states nfa symbols' = symbols nfa start' = succ $ Set.findMax $ states nfa final' = start' `Set.insert` states nfa delta' q s | Set.member q qs && Set.notMember q fs = delta nf...
761
star nfa = let states' = start' `Set.insert` states nfa symbols' = symbols nfa start' = succ $ Set.findMax $ states nfa final' = start' `Set.insert` states nfa delta' q s | Set.member q qs && Set.notMember q fs = delta nfa q s | Set.member q fs && isNothing s = d...
700
false
true
0
14
314
306
142
164
null
null
kallisti-dev/portalchess
PortalChess.hs
bsd-3-clause
-- special cases rotateCW Southeast = South
43
rotateCW Southeast = South
26
rotateCW Southeast = South
26
true
false
0
4
6
11
5
6
null
null
grnet/snf-ganeti
src/Ganeti/Constants.hs
bsd-2-clause
osSearchPath :: [String] osSearchPath = AutoConf.osSearchPath
61
osSearchPath :: [String] osSearchPath = AutoConf.osSearchPath
61
osSearchPath = AutoConf.osSearchPath
36
false
true
0
7
5
23
10
13
null
null
google/hs-attenuation
attenuation/src/Data/Type/Attenuation.hs
apache-2.0
-- | Lift an 'Attenuation' contravariantly over a type constructor @f@. -- -- Regarding the 'Contravariant' constraint, see 'co', and interchange mentions -- of covariance and contravariance. contra :: (Contravariant f, Representational f) => Variance (f b) (f a) a b contra (Attenuation c) = Attenuation (sym $ rep c)
318
contra :: (Contravariant f, Representational f) => Variance (f b) (f a) a b contra (Attenuation c) = Attenuation (sym $ rep c)
126
contra (Attenuation c) = Attenuation (sym $ rep c)
50
true
true
0
8
49
73
38
35
null
null
elieux/ghc
compiler/rename/RnTypes.hs
bsd-3-clause
newTyVarNameRn :: Maybe a -> LocalRdrEnv -> SrcSpan -> RdrName -> RnM Name newTyVarNameRn mb_assoc rdr_env loc rdr | Just _ <- mb_assoc -- Use the same Name as the parent class decl , Just n <- lookupLocalRdrEnv rdr_env rdr = return n | otherwise = newLocalBndrRn (L loc rdr)
288
newTyVarNameRn :: Maybe a -> LocalRdrEnv -> SrcSpan -> RdrName -> RnM Name newTyVarNameRn mb_assoc rdr_env loc rdr | Just _ <- mb_assoc -- Use the same Name as the parent class decl , Just n <- lookupLocalRdrEnv rdr_env rdr = return n | otherwise = newLocalBndrRn (L loc rdr)
288
newTyVarNameRn mb_assoc rdr_env loc rdr | Just _ <- mb_assoc -- Use the same Name as the parent class decl , Just n <- lookupLocalRdrEnv rdr_env rdr = return n | otherwise = newLocalBndrRn (L loc rdr)
213
false
true
0
9
62
97
44
53
null
null
SeanRBurton/aeson
Data/Aeson/TH.hs
bsd-3-clause
-- | The name of the outermost 'Value' constructor. valueConName :: Value -> String valueConName (Object _) = "Object"
118
valueConName :: Value -> String valueConName (Object _) = "Object"
66
valueConName (Object _) = "Object"
34
true
true
0
7
18
25
13
12
null
null
ekr/tamarin-prover
lib/term/src/Term/Substitution/SubstVFresh.hs
gpl-3.0
-- Views ---------------------------------------------------------------------- -- | Convert substitution to list. substToListVFresh :: SubstVFresh c v -> [(v,VTerm c v)] substToListVFresh = M.toList . svMap
208
substToListVFresh :: SubstVFresh c v -> [(v,VTerm c v)] substToListVFresh = M.toList . svMap
92
substToListVFresh = M.toList . svMap
36
true
true
0
10
23
50
25
25
null
null
flannelhead/brainhug
src/SimpleParser.hs
mit
char :: Char -> Parser Char char c = satisfy (== c)
51
char :: Char -> Parser Char char c = satisfy (== c)
51
char c = satisfy (== c)
23
false
true
0
7
11
32
15
17
null
null
timtylin/scholdoc
src/Text/Pandoc/Parsing.hs
gpl-2.0
removeOneLeadingSpace :: [String] -> [String] removeOneLeadingSpace xs = if all startsWithSpace xs then map (drop 1) xs else xs where startsWithSpace "" = True startsWithSpace (y:_) = y == ' '
220
removeOneLeadingSpace :: [String] -> [String] removeOneLeadingSpace xs = if all startsWithSpace xs then map (drop 1) xs else xs where startsWithSpace "" = True startsWithSpace (y:_) = y == ' '
220
removeOneLeadingSpace xs = if all startsWithSpace xs then map (drop 1) xs else xs where startsWithSpace "" = True startsWithSpace (y:_) = y == ' '
174
false
true
0
9
58
77
40
37
null
null
geophf/1HaskellADay
exercises/HAD/Y2021/M02/D16/Solution.hs
mit
unicodeMode :: Char -> String unicodeMode c | c == '"' = "\"" | isDigit c = "\\u" | otherwise = "\\"
128
unicodeMode :: Char -> String unicodeMode c | c == '"' = "\"" | isDigit c = "\\u" | otherwise = "\\"
128
unicodeMode c | c == '"' = "\"" | isDigit c = "\\u" | otherwise = "\\"
98
false
true
0
8
49
59
25
34
null
null
siddhanathan/ghc
compiler/nativeGen/SPARC/Ppr.hs
bsd-3-clause
pprInstr (FMUL format reg1 reg2 reg3) = pprFormatRegRegReg (sLit "fmul") format reg1 reg2 reg3
102
pprInstr (FMUL format reg1 reg2 reg3) = pprFormatRegRegReg (sLit "fmul") format reg1 reg2 reg3
102
pprInstr (FMUL format reg1 reg2 reg3) = pprFormatRegRegReg (sLit "fmul") format reg1 reg2 reg3
102
false
false
0
7
21
38
18
20
null
null
byorgey/BlogLiterately
src/Text/BlogLiterately/Highlight.hs
gpl-3.0
-- | Read style preferences in from a file using the @Read@ instance -- for @StylePrefs@, or return the default style if the file name is -- empty. getStylePrefs :: Maybe FilePath -> IO StylePrefs getStylePrefs Nothing = return defaultStylePrefs
254
getStylePrefs :: Maybe FilePath -> IO StylePrefs getStylePrefs Nothing = return defaultStylePrefs
102
getStylePrefs Nothing = return defaultStylePrefs
53
true
true
0
6
48
30
15
15
null
null
dysinger/amazonka
amazonka-iam/gen/Network/AWS/IAM/Types.hs
mpl-2.0
-- | The date when the password for the user was created. lpCreateDate :: Lens' LoginProfile UTCTime lpCreateDate = lens _lpCreateDate (\s a -> s { _lpCreateDate = a }) . _Time
176
lpCreateDate :: Lens' LoginProfile UTCTime lpCreateDate = lens _lpCreateDate (\s a -> s { _lpCreateDate = a }) . _Time
118
lpCreateDate = lens _lpCreateDate (\s a -> s { _lpCreateDate = a }) . _Time
75
true
true
0
9
31
51
25
26
null
null
bartfrenk/haskell-transaction
app/GUI.hs
bsd-3-clause
appendColumn :: TreeView -> CellRendererText -> ListStore AccountStats -> String -> (AccountStats -> String) -> IO () appendColumn tv rend store title f = do column <- treeViewColumnNew treeViewColumnPackStart column rend True cellLayoutSetAttributes column rend store $ \summary -> [cellText :...
568
appendColumn :: TreeView -> CellRendererText -> ListStore AccountStats -> String -> (AccountStats -> String) -> IO () appendColumn tv rend store title f = do column <- treeViewColumnNew treeViewColumnPackStart column rend True cellLayoutSetAttributes column rend store $ \summary -> [cellText :...
568
appendColumn tv rend store title f = do column <- treeViewColumnNew treeViewColumnPackStart column rend True cellLayoutSetAttributes column rend store $ \summary -> [cellText := f summary] treeViewColumnSetTitle column title treeViewAppendColumn tv column return () -- TODO: remove dependency on the int...
434
false
true
0
11
108
130
61
69
null
null
HJvT/com
System/Win32/Com/Exception.hs
bsd-3-clause
vIEW_S_ALREADY_FROZEN :: HRESULT vIEW_S_ALREADY_FROZEN = word32ToInt32 (0x00040140 ::Word32)
92
vIEW_S_ALREADY_FROZEN :: HRESULT vIEW_S_ALREADY_FROZEN = word32ToInt32 (0x00040140 ::Word32)
92
vIEW_S_ALREADY_FROZEN = word32ToInt32 (0x00040140 ::Word32)
59
false
true
0
6
7
26
12
14
null
null
maciej-bendkowski/boltzmann-brain
Data/Boltzmann/Compiler/Haskell/Algebraic.hs
bsd-3-clause
arguments' _ _ _ _ _ _ = error "I wasn't expecting the Spanish inquisition!"
76
arguments' _ _ _ _ _ _ = error "I wasn't expecting the Spanish inquisition!"
76
arguments' _ _ _ _ _ _ = error "I wasn't expecting the Spanish inquisition!"
76
false
false
1
5
14
19
9
10
null
null
brendanhay/gogol
gogol-dialogflow/gen/Network/Google/Resource/DialogFlow/Projects/Agent/EntityTypes/Entities/BatchUpdate.hs
mpl-2.0
-- | Required. The name of the entity type to update or create entities in. -- Format: \`projects\/\/agent\/entityTypes\/\`. paetebuParent :: Lens' ProjectsAgentEntityTypesEntitiesBatchUpdate Text paetebuParent = lens _paetebuParent (\ s a -> s{_paetebuParent = a})
273
paetebuParent :: Lens' ProjectsAgentEntityTypesEntitiesBatchUpdate Text paetebuParent = lens _paetebuParent (\ s a -> s{_paetebuParent = a})
148
paetebuParent = lens _paetebuParent (\ s a -> s{_paetebuParent = a})
76
true
true
0
8
41
44
23
21
null
null
favilo/GoogleDirections
src/Google/Directions.hs
bsd-3-clause
parseLeg :: JSValue -> Leg parseLeg leg = Leg (case JSON.lookup "steps" leg of Just (JSArray stps) -> map parseStep stps _ -> error "step parse failed" ) (case JSON.lookup "distance" leg of Just (JSObject m) -> parseDistance m _ -> error "distance parse failed" ) (cas...
1,009
parseLeg :: JSValue -> Leg parseLeg leg = Leg (case JSON.lookup "steps" leg of Just (JSArray stps) -> map parseStep stps _ -> error "step parse failed" ) (case JSON.lookup "distance" leg of Just (JSObject m) -> parseDistance m _ -> error "distance parse failed" ) (cas...
1,009
parseLeg leg = Leg (case JSON.lookup "steps" leg of Just (JSArray stps) -> map parseStep stps _ -> error "step parse failed" ) (case JSON.lookup "distance" leg of Just (JSObject m) -> parseDistance m _ -> error "distance parse failed" ) (case JSON.lookup "duration" le...
982
false
true
0
11
301
322
148
174
null
null
GaloisInc/verification-game
web-prover/src/Dirs.hs
bsd-3-clause
parseTaskGroup :: Text -> Maybe TaskGroup parseTaskGroup x = case x of "safety" -> return SafetyLevels _ | Just n <- "post_" `Text.stripPrefix` x -> return (PostLevels n) | otherwise -> Nothing
272
parseTaskGroup :: Text -> Maybe TaskGroup parseTaskGroup x = case x of "safety" -> return SafetyLevels _ | Just n <- "post_" `Text.stripPrefix` x -> return (PostLevels n) | otherwise -> Nothing
272
parseTaskGroup x = case x of "safety" -> return SafetyLevels _ | Just n <- "post_" `Text.stripPrefix` x -> return (PostLevels n) | otherwise -> Nothing
230
false
true
0
12
110
79
37
42
null
null
uduki/hsQt
Qtc/ClassTypes/Gui.hs
bsd-2-clause
withQResizeEventResult :: IO (Ptr (TQResizeEvent a)) -> IO (QResizeEvent a) withQResizeEventResult f = withObjectResult qtc_QResizeEvent_getFinalizer f
153
withQResizeEventResult :: IO (Ptr (TQResizeEvent a)) -> IO (QResizeEvent a) withQResizeEventResult f = withObjectResult qtc_QResizeEvent_getFinalizer f
153
withQResizeEventResult f = withObjectResult qtc_QResizeEvent_getFinalizer f
77
false
true
0
10
17
47
22
25
null
null
cdepillabout/coursera
algorithms1/week4/src/EightPuzzle/PriorityQueue.hs
gpl-3.0
exchange :: (Show k) => PriorityQueue_ s k -> Int -> Int -> ST s () exchange !(PriorityQueue !vec _ _) !idxA !idxB = do Vector.unsafeSwap vec idxA idxB
160
exchange :: (Show k) => PriorityQueue_ s k -> Int -> Int -> ST s () exchange !(PriorityQueue !vec _ _) !idxA !idxB = do Vector.unsafeSwap vec idxA idxB
160
exchange !(PriorityQueue !vec _ _) !idxA !idxB = do Vector.unsafeSwap vec idxA idxB
92
false
true
0
14
37
85
40
45
null
null
MichaelXavier/Seraph
src/Seraph/Model.hs
bsd-2-clause
oracle (ProgNotStarted prid e) = do spawnProgs <- getProgs [prid] progLogger $ "Failed to start: " ++ show e ++ ", retrying." return $ Directives $ map SpawnProg spawnProgs where progLogger = ctxLogger (prid ^. pidStr) -------------------------------------------------------------------------------
312
oracle (ProgNotStarted prid e) = do spawnProgs <- getProgs [prid] progLogger $ "Failed to start: " ++ show e ++ ", retrying." return $ Directives $ map SpawnProg spawnProgs where progLogger = ctxLogger (prid ^. pidStr) -------------------------------------------------------------------------------
312
oracle (ProgNotStarted prid e) = do spawnProgs <- getProgs [prid] progLogger $ "Failed to start: " ++ show e ++ ", retrying." return $ Directives $ map SpawnProg spawnProgs where progLogger = ctxLogger (prid ^. pidStr) -------------------------------------------------------------------------------
312
false
false
1
9
50
87
39
48
null
null
fmthoma/ghc
compiler/types/CoAxiom.hs
bsd-3-clause
brListNth (NextBranch _ t) n = brListNth t (n-1)
48
brListNth (NextBranch _ t) n = brListNth t (n-1)
48
brListNth (NextBranch _ t) n = brListNth t (n-1)
48
false
false
1
7
8
31
15
16
null
null
iblumenfeld/saw-core
src/Verifier/SAW/Simulator/SBV/SWord.hs
bsd-3-clause
existsSBool :: String -> Symbolic SBool existsSBool nm = svMkSymVar (Just EX) KBool (Just nm)
93
existsSBool :: String -> Symbolic SBool existsSBool nm = svMkSymVar (Just EX) KBool (Just nm)
93
existsSBool nm = svMkSymVar (Just EX) KBool (Just nm)
53
false
true
0
7
14
45
20
25
null
null
mlite/hLLVM
src/Llvm/Hir/Composer.hs
bsd-3-clause
void :: Type NoB U void = Tvoid
31
void :: Type NoB U void = Tvoid
31
void = Tvoid
12
false
true
0
6
7
22
9
13
null
null
MichaelMackus/hsrl
RL/Generator/Cells.hs
mit
rightX c = cwidth c + leftX c
29
rightX c = cwidth c + leftX c
29
rightX c = cwidth c + leftX c
29
false
false
0
6
7
19
8
11
null
null
ian-mi/haskell-riak-client
Network/Riak/Message.hs
apache-2.0
encoder PingRequest = (PingRequestCode, Encoder RpbPingReq)
59
encoder PingRequest = (PingRequestCode, Encoder RpbPingReq)
59
encoder PingRequest = (PingRequestCode, Encoder RpbPingReq)
59
false
false
1
6
5
21
9
12
null
null
kim/amazonka
amazonka-storagegateway/gen/Network/AWS/StorageGateway/CreateSnapshot.hs
mpl-2.0
-- | Textual description of the snapshot that appears in the Amazon EC2 console, -- Elastic Block Store snapshots panel in the Description field, and in the AWS -- Storage Gateway snapshot Details pane, Description field csSnapshotDescription :: Lens' CreateSnapshot Text csSnapshotDescription = lens _csSnapshotDesc...
370
csSnapshotDescription :: Lens' CreateSnapshot Text csSnapshotDescription = lens _csSnapshotDescription (\s a -> s { _csSnapshotDescription = a })
149
csSnapshotDescription = lens _csSnapshotDescription (\s a -> s { _csSnapshotDescription = a })
98
true
true
1
9
57
46
24
22
null
null
ekmett/wxHaskell
wxcore/src/haskell/Graphics/UI/WXCore/WxcDefs.hs
lgpl-2.1
wxSTC_CMD_VCHOMERECTEXTEND :: Int wxSTC_CMD_VCHOMERECTEXTEND = 2431
67
wxSTC_CMD_VCHOMERECTEXTEND :: Int wxSTC_CMD_VCHOMERECTEXTEND = 2431
67
wxSTC_CMD_VCHOMERECTEXTEND = 2431
33
false
true
0
6
5
18
7
11
null
null
madhadron/haskell-pgm
Graphics/Pgm.hs
gpl-3.0
pair (_:[]) = []
16
pair (_:[]) = []
16
pair (_:[]) = []
16
false
false
0
8
3
20
10
10
null
null
hvr/containers
Data/IntMap/Base.hs
bsd-3-clause
traverseWithKey :: Applicative t => (Key -> a -> t b) -> IntMap a -> t (IntMap b) traverseWithKey f = go where go Nil = pure Nil go (Tip k v) = Tip k <$> f k v go (Bin p m l r) = Bin p m <$> go l <*> go r
219
traverseWithKey :: Applicative t => (Key -> a -> t b) -> IntMap a -> t (IntMap b) traverseWithKey f = go where go Nil = pure Nil go (Tip k v) = Tip k <$> f k v go (Bin p m l r) = Bin p m <$> go l <*> go r
219
traverseWithKey f = go where go Nil = pure Nil go (Tip k v) = Tip k <$> f k v go (Bin p m l r) = Bin p m <$> go l <*> go r
137
false
true
0
10
69
136
63
73
null
null
tpsinnem/Idris-dev
src/Idris/Imports.hs
bsd-3-clause
findInPath (d:ds) fp = do let p = d </> fp e <- doesFileExist' p if e then return p else findInPath ds fp
157
findInPath (d:ds) fp = do let p = d </> fp e <- doesFileExist' p if e then return p else findInPath ds fp
157
findInPath (d:ds) fp = do let p = d </> fp e <- doesFileExist' p if e then return p else findInPath ds fp
157
false
false
1
11
75
65
28
37
null
null
purcell/icfpc2015
src/GamePlay.hs
gpl-3.0
endGame :: GameState -> GameState endGame gs = gs { gsGameOver = True }
71
endGame :: GameState -> GameState endGame gs = gs { gsGameOver = True }
71
endGame gs = gs { gsGameOver = True }
37
false
true
0
6
13
26
14
12
null
null
martine/gat
Pack.hs
gpl-2.0
getIndexVersion = do signature <- lookAhead getWord32be if signature /= magicValue then return 1 -- Assume old-format index. else do skip 4 -- Skip over the signature. getWord32be -- Index version is next. where -- This magic value was chosen because it's invalid in all old-format ...
424
getIndexVersion = do signature <- lookAhead getWord32be if signature /= magicValue then return 1 -- Assume old-format index. else do skip 4 -- Skip over the signature. getWord32be -- Index version is next. where -- This magic value was chosen because it's invalid in all old-format ...
424
getIndexVersion = do signature <- lookAhead getWord32be if signature /= magicValue then return 1 -- Assume old-format index. else do skip 4 -- Skip over the signature. getWord32be -- Index version is next. where -- This magic value was chosen because it's invalid in all old-format ...
424
false
false
0
10
108
57
29
28
null
null
ancientlanguage/haskell-analysis
prepare/src/Prepare/Decompose.hs
mit
decomposeChar '\x0171' = "\x0075\x030B"
39
decomposeChar '\x0171' = "\x0075\x030B"
39
decomposeChar '\x0171' = "\x0075\x030B"
39
false
false
1
5
3
13
4
9
null
null
lukexi/ghc-7.8-arm64
compiler/codeGen/StgCmmPrim.hs
bsd-3-clause
callishOp DoubleAcosOp = Just MO_F64_Acos
43
callishOp DoubleAcosOp = Just MO_F64_Acos
43
callishOp DoubleAcosOp = Just MO_F64_Acos
43
false
false
1
5
6
16
5
11
null
null
maoe/text-keepalived
src/Text/Keepalived/Lexer.hs
bsd-3-clause
getGlob :: Stream s IO Char => ParsecT s u IO [FilePath] getGlob = do glob <- many1 $ satisfy (/= '\n') srcDir <- takeDirectory . sourceName <$> getPosition files <- liftIO $ do setCurrentDirectory srcDir canonicalizeGlob glob when (files == []) (fail $ "No such file: " ++ glob) return files where c...
439
getGlob :: Stream s IO Char => ParsecT s u IO [FilePath] getGlob = do glob <- many1 $ satisfy (/= '\n') srcDir <- takeDirectory . sourceName <$> getPosition files <- liftIO $ do setCurrentDirectory srcDir canonicalizeGlob glob when (files == []) (fail $ "No such file: " ++ glob) return files where c...
439
getGlob = do glob <- many1 $ satisfy (/= '\n') srcDir <- takeDirectory . sourceName <$> getPosition files <- liftIO $ do setCurrentDirectory srcDir canonicalizeGlob glob when (files == []) (fail $ "No such file: " ++ glob) return files where canonicalizeGlob = namesMatching >=> mapM canonicalizePath...
382
false
true
0
11
92
140
66
74
null
null
da-x/lamdu
bottlelib/Data/Store/Rev/View.hs
gpl-3.0
move :: Monad m => View m -> Version m -> Transaction m () move view version = (`Branch.move` version) =<< branch view
118
move :: Monad m => View m -> Version m -> Transaction m () move view version = (`Branch.move` version) =<< branch view
118
move view version = (`Branch.move` version) =<< branch view
59
false
true
0
9
22
59
29
30
null
null
rueshyna/gogol
gogol-dataflow/gen/Network/Google/Dataflow/Types/Product.hs
mpl-2.0
-- | Worker output counters for this WorkItem. wisCounterUpdates :: Lens' WorkItemStatus [CounterUpdate] wisCounterUpdates = lens _wisCounterUpdates (\ s a -> s{_wisCounterUpdates = a}) . _Default . _Coerce
226
wisCounterUpdates :: Lens' WorkItemStatus [CounterUpdate] wisCounterUpdates = lens _wisCounterUpdates (\ s a -> s{_wisCounterUpdates = a}) . _Default . _Coerce
179
wisCounterUpdates = lens _wisCounterUpdates (\ s a -> s{_wisCounterUpdates = a}) . _Default . _Coerce
121
true
true
3
8
47
59
28
31
null
null
joom/civ
src/Board.hs
mit
randomTile :: Gen Tile randomTile = Tile <$> arbitrary <*> frequency [(5, pure Nothing), (2, arbitrary)] <*> pure Nothing <*> pure Nothing
192
randomTile :: Gen Tile randomTile = Tile <$> arbitrary <*> frequency [(5, pure Nothing), (2, arbitrary)] <*> pure Nothing <*> pure Nothing
192
randomTile = Tile <$> arbitrary <*> frequency [(5, pure Nothing), (2, arbitrary)] <*> pure Nothing <*> pure Nothing
169
false
true
0
11
75
60
31
29
null
null
sdiehl/ghc
testsuite/tests/pmcheck/should_compile/EmptyCase006.hs
bsd-3-clause
-- Non-exhaustive. Missing: Foo1 MkGA1, Foo1 (MkGA2 _), Foo1 MkGA3 f03 :: Foo1 a -> () f03 = \case
98
f03 :: Foo1 a -> () f03 = \case
31
f03 = \case
11
true
true
0
8
18
29
13
16
null
null
lubomir/dot-race
fay/NewGame.hs
bsd-3-clause
main = addWindowEvent "load" initForm
37
main = addWindowEvent "load" initForm
37
main = addWindowEvent "load" initForm
37
false
false
0
5
4
11
5
6
null
null
phischu/fragnix
benchmarks/containers/Data.IntMap.Base.hs
bsd-3-clause
branchMask :: Prefix -> Prefix -> Mask branchMask p1 p2 = intFromNat (highestBitMask (natFromInt p1 `xor` natFromInt p2))
123
branchMask :: Prefix -> Prefix -> Mask branchMask p1 p2 = intFromNat (highestBitMask (natFromInt p1 `xor` natFromInt p2))
123
branchMask p1 p2 = intFromNat (highestBitMask (natFromInt p1 `xor` natFromInt p2))
84
false
true
0
10
19
48
24
24
null
null
juventietis/HLINQ
benchmark/Query.hs
mit
projectNameAge = withDB $ \db -> query db simpleProjection2
59
projectNameAge = withDB $ \db -> query db simpleProjection2
59
projectNameAge = withDB $ \db -> query db simpleProjection2
59
false
false
0
7
8
20
10
10
null
null
brodyberg/Notes
ProjectRosalind.hsproj/LearnHaskell/lib/HaskellBook/Arith4.hs
mit
roundTrip' :: (Show a, Read a) => a -> a roundTrip' = read . show
65
roundTrip' :: (Show a, Read a) => a -> a roundTrip' = read . show
65
roundTrip' = read . show
24
false
true
0
6
14
34
18
16
null
null
technogeeky/d-A
include/containers-0.5.0.0/Data/IntMap/Base.hs
gpl-3.0
submapCmp _ Nil Nil = EQ
27
submapCmp _ Nil Nil = EQ
27
submapCmp _ Nil Nil = EQ
27
false
false
0
5
8
13
6
7
null
null
ksaveljev/hake-2
src/Game/Monsters/MFlyer.hs
bsd-3-clause
flyerMoveRollLeft :: MMoveT flyerMoveRollLeft = MMoveT "flyerMoveRollLeft" frameRollLeft01 frameRollLeft09 flyerFramesRollLeft Nothing
134
flyerMoveRollLeft :: MMoveT flyerMoveRollLeft = MMoveT "flyerMoveRollLeft" frameRollLeft01 frameRollLeft09 flyerFramesRollLeft Nothing
134
flyerMoveRollLeft = MMoveT "flyerMoveRollLeft" frameRollLeft01 frameRollLeft09 flyerFramesRollLeft Nothing
106
false
true
0
5
10
22
11
11
null
null
nyirog/cis194
09-more-applicative.hs
unlicense
orElseG :: Grammar a -> Grammar a -> Grammar a orElseG (G (prods1, rhs1)) (G (prods2, rhs2)) = G (mergeProds prods1 prods2, Choice rhs1 rhs2)
145
orElseG :: Grammar a -> Grammar a -> Grammar a orElseG (G (prods1, rhs1)) (G (prods2, rhs2)) = G (mergeProds prods1 prods2, Choice rhs1 rhs2)
145
orElseG (G (prods1, rhs1)) (G (prods2, rhs2)) = G (mergeProds prods1 prods2, Choice rhs1 rhs2)
98
false
true
0
8
28
76
38
38
null
null
ulricha/dsh
src/Database/DSH/SL/Opt/Rewrite/Projections.hs
bsd-3-clause
pullProjectAppMap :: SLRule TExpr TExpr () pullProjectAppMap q = $(dagPatMatch 'q "R1 ((qp) [AppRep | AppSort | AppFilter]@op (Project proj (qv)))" [| return $ do logRewrite "Redundant.Project.AppMap" q repNode <- insert $ BinOp $(v "op") $(v "qp") $(v "qv") r1Node <- insert $ Un...
408
pullProjectAppMap :: SLRule TExpr TExpr () pullProjectAppMap q = $(dagPatMatch 'q "R1 ((qp) [AppRep | AppSort | AppFilter]@op (Project proj (qv)))" [| return $ do logRewrite "Redundant.Project.AppMap" q repNode <- insert $ BinOp $(v "op") $(v "qp") $(v "qv") r1Node <- insert $ Un...
408
pullProjectAppMap q = $(dagPatMatch 'q "R1 ((qp) [AppRep | AppSort | AppFilter]@op (Project proj (qv)))" [| return $ do logRewrite "Redundant.Project.AppMap" q repNode <- insert $ BinOp $(v "op") $(v "qp") $(v "qv") r1Node <- insert $ UnOp R1 repNode void $ replaceWith...
365
false
true
0
8
107
43
21
22
null
null
YueLiPicasso/unification
MMAlgoA .Buggy.hs
gpl-3.0
singleFail ((Constant c), (Function f a ts)) | f /= c || a /= 0 || ((not . null) ts) = True | otherwise = False
174
singleFail ((Constant c), (Function f a ts)) | f /= c || a /= 0 || ((not . null) ts) = True | otherwise = False
174
singleFail ((Constant c), (Function f a ts)) | f /= c || a /= 0 || ((not . null) ts) = True | otherwise = False
174
false
false
1
12
88
75
37
38
null
null
christiaanb/clash
examples/CPU.hs
bsd-3-clause
cpuState :: Vector D4 Word cpuState = vcopy 0
45
cpuState :: Vector D4 Word cpuState = vcopy 0
45
cpuState = vcopy 0
18
false
true
0
6
8
25
10
15
null
null
seL4/capDL-tool
CapDL/PrintC.hs
bsd-2-clause
hex :: Word -> String hex x = "0x" ++ showHex x ""
50
hex :: Word -> String hex x = "0x" ++ showHex x ""
50
hex x = "0x" ++ showHex x ""
28
false
true
0
6
12
27
13
14
null
null
phunehehe/deepseq-bounded
src/Control/DeepSeq/Bounded/Generic/GNFDataP.hs
bsd-3-clause
rnfpP_validate' True (WN as) [] tx xss = (True,Nothing)
58
grnfpP_validate' True (WN as) [] tx xss = (True,Nothing)
58
grnfpP_validate' True (WN as) [] tx xss = (True,Nothing)
58
false
false
0
7
11
31
16
15
null
null
chpatrick/boring-crypto
test/Crypto/Boring/Test/TestVectors.hs
mit
vectorString :: BS.ByteString -> BS.ByteString -> String vectorString input output = trimmedInput ++ " -> " ++ toHex output where inputHex = toHex input trimmedInput | length inputHex > 50 = take 50 inputHex ++ "..." | otherwise = inputHex
261
vectorString :: BS.ByteString -> BS.ByteString -> String vectorString input output = trimmedInput ++ " -> " ++ toHex output where inputHex = toHex input trimmedInput | length inputHex > 50 = take 50 inputHex ++ "..." | otherwise = inputHex
261
vectorString input output = trimmedInput ++ " -> " ++ toHex output where inputHex = toHex input trimmedInput | length inputHex > 50 = take 50 inputHex ++ "..." | otherwise = inputHex
204
false
true
3
8
61
85
40
45
null
null