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
andreyLevushkin/CFG
Language/CFG.hs
bsd-3-clause
buildBoard :: (Eq a, Eq b, Foldable f) => CFG a b -> f b -> (Int, Board a b) buildBoard (CFG lit comp stop) input = (n, foldl (updateCell comp) edge [(i,j,k) | i <- [1 .. n-1], j <- [0 .. n-i], k <- [0 .. i-1]]) ...
368
buildBoard :: (Eq a, Eq b, Foldable f) => CFG a b -> f b -> (Int, Board a b) buildBoard (CFG lit comp stop) input = (n, foldl (updateCell comp) edge [(i,j,k) | i <- [1 .. n-1], j <- [0 .. n-i], k <- [0 .. i-1]]) ...
368
buildBoard (CFG lit comp stop) input = (n, foldl (updateCell comp) edge [(i,j,k) | i <- [1 .. n-1], j <- [0 .. n-i], k <- [0 .. i-1]]) where (n, edge) = makeEdge lit input
290
false
true
0
11
175
178
95
83
null
null
mcschroeder/ghc
compiler/main/TidyPgm.hs
bsd-3-clause
trimThing other_thing = other_thing
37
trimThing other_thing = other_thing
37
trimThing other_thing = other_thing
37
false
false
0
5
5
9
4
5
null
null
ublubu/wyascheme
src/Types.hs
mit
showError :: LispError -> String showError (UnboundVar message varname) = message ++ ": " ++ varname
100
showError :: LispError -> String showError (UnboundVar message varname) = message ++ ": " ++ varname
100
showError (UnboundVar message varname) = message ++ ": " ++ varname
67
false
true
0
7
15
34
17
17
null
null
tiqwab/md-parser
src/Text/Md/HtmlParser.hs
bsd-3-clause
pHtmlElement context = P.try $ do (tagStr, tagMaybe) <- pHtmlTag case tagMaybe of Just tag -> liftM2 concatTags2 (return [Str tagStr]) (pHtmlElementInside [tag] context) Nothing -> return [Str tagStr]
213
pHtmlElement context = P.try $ do (tagStr, tagMaybe) <- pHtmlTag case tagMaybe of Just tag -> liftM2 concatTags2 (return [Str tagStr]) (pHtmlElementInside [tag] context) Nothing -> return [Str tagStr]
213
pHtmlElement context = P.try $ do (tagStr, tagMaybe) <- pHtmlTag case tagMaybe of Just tag -> liftM2 concatTags2 (return [Str tagStr]) (pHtmlElementInside [tag] context) Nothing -> return [Str tagStr]
213
false
false
0
15
41
89
43
46
null
null
bergmark/purescript
src/Language/PureScript/Constants.hs
mit
shl :: String shl = "shl"
25
shl :: String shl = "shl"
25
shl = "shl"
11
false
true
0
4
5
11
6
5
null
null
takoeight0821/malgo
src/Malgo/TypeRep.hs
bsd-3-clause
expandAllTypeSynonym abbrEnv (TYPE rep) = TYPE $ expandAllTypeSynonym abbrEnv rep
81
expandAllTypeSynonym abbrEnv (TYPE rep) = TYPE $ expandAllTypeSynonym abbrEnv rep
81
expandAllTypeSynonym abbrEnv (TYPE rep) = TYPE $ expandAllTypeSynonym abbrEnv rep
81
false
false
0
6
9
28
12
16
null
null
GaloisInc/sk-dev-platform
libs/SCD/src/SCD/M4/ModuleFiles.hs
bsd-3-clause
readGlobalBooleans :: FilePath -> IO GlobalBooleans readGlobalBooleans = parseFile parseGlobalBooleans ""
105
readGlobalBooleans :: FilePath -> IO GlobalBooleans readGlobalBooleans = parseFile parseGlobalBooleans ""
105
readGlobalBooleans = parseFile parseGlobalBooleans ""
53
false
true
0
7
10
29
12
17
null
null
fhsjaagshs/niagra
src/Data/Niagra/Properties/Border.hs
mit
borderStyle :: (Monad m, Value v) => v -> NiagraT m () borderStyle = declaration "border-style" . build
103
borderStyle :: (Monad m, Value v) => v -> NiagraT m () borderStyle = declaration "border-style" . build
103
borderStyle = declaration "border-style" . build
48
false
true
0
8
17
44
22
22
null
null
expipiplus1/vulkan
src/Vulkan/Extensions/VK_EXT_extended_dynamic_state.hs
bsd-3-clause
-- No documentation found for TopLevel "vkCmdBindVertexBuffers2EXT" cmdBindVertexBuffers2EXT = cmdBindVertexBuffers2
116
cmdBindVertexBuffers2EXT = cmdBindVertexBuffers2
48
cmdBindVertexBuffers2EXT = cmdBindVertexBuffers2
48
true
false
0
4
9
7
4
3
null
null
gspia/reflex-dom-htmlea
lib/src/Reflex/Dom/HTML5/Component/Table/TdComb.hs
bsd-3-clause
-------------------------------------------------------------------------------- -- | A pre-version of 'tdComb'. -- This makes the visible contents inside a td-element, that is, -- an extra div. -- And in addition to that, this returns events from that div. tdFunPre ∷ forall t m r. (Reflex t, MonadHold t m, TriggerEv...
4,542
tdFunPre ∷ forall t m r. (Reflex t, MonadHold t m, TriggerEvent t m , PostBuild t m, DomBuilder t m, MonadJSM m , DomBuilderSpace m ~ GhcjsDomSpace , ActSretval r) ⇒ (Dynamic t (Maybe [ActiveState t ActElem r]) → Event t (CompEvent t A...
4,282
tdFunPre actF mae me eTB tblSt = do let ac = listenMe me actS ← actF mae eTB tblSt ac (e,_) ← drawDivActElemEx (constDyn ()) actS elemEvF actS e -- let actstate txt = def & set activeStateElemId txt -- let ag = ActiveGroup $ Set.singleton me -- ac = actstate me & set activeStateListen ...
3,671
true
true
0
16
1,398
403
233
170
null
null
sumitsahrawat/plot-gtk-ui
lib/Graphics/Rendering/Plot/Gtk/UI/Figure.hs
gpl-2.0
-------------------------------------------------------------------------------- updateFigureText :: (Text () -> Figure ()) -> Maybe String -> Double -> Figure () updateFigureText withSomething txt size = case txt of Nothing -> return () Just str -> withSomething . unless (null str) $...
474
updateFigureText :: (Text () -> Figure ()) -> Maybe String -> Double -> Figure () updateFigureText withSomething txt size = case txt of Nothing -> return () Just str -> withSomething . unless (null str) $ do setText str setFontSize size --------...
392
updateFigureText withSomething txt size = case txt of Nothing -> return () Just str -> withSomething . unless (null str) $ do setText str setFontSize size --------------------------------------------------------------------------------
293
true
true
0
12
118
115
52
63
null
null
josefs/autosar
oldARSim/ARComp.hs
bsd-3-clause
exprToExp (EArray arr) = error "exprToExp (EArray arr): Unimplemented"
70
exprToExp (EArray arr) = error "exprToExp (EArray arr): Unimplemented"
70
exprToExp (EArray arr) = error "exprToExp (EArray arr): Unimplemented"
70
false
false
0
6
8
19
8
11
null
null
alphalambda/codeworld
codeworld-base/src/Internal/Picture.hs
apache-2.0
-- | Dilates a given point by given uniform scaling factor. Dilating by a -- negative factor also reflects across the origin. dilatedPoint :: (Point, Number) -> Point dilatedPoint (p, k) = fromCWPoint (CW.dilatedPoint (toDouble k) (toCWPoint p))
250
dilatedPoint :: (Point, Number) -> Point dilatedPoint (p, k) = fromCWPoint (CW.dilatedPoint (toDouble k) (toCWPoint p))
123
dilatedPoint (p, k) = fromCWPoint (CW.dilatedPoint (toDouble k) (toCWPoint p))
82
true
true
0
9
42
62
32
30
null
null
gnn/Hets
OWL2/AS.hs
gpl-2.0
xsdStringsMap :: PreDefMaps xsdStringsMap = makeXsdMap xsdStrings
65
xsdStringsMap :: PreDefMaps xsdStringsMap = makeXsdMap xsdStrings
65
xsdStringsMap = makeXsdMap xsdStrings
37
false
true
0
6
6
20
8
12
null
null
kishoredbn/barrelfish
tools/mackerel/BitFieldDriver.hs
mit
dev_init = "__DN(initialize)"
29
dev_init = "__DN(initialize)"
29
dev_init = "__DN(initialize)"
29
false
false
0
4
2
6
3
3
null
null
sharkspeed/dororis
languages/haskell/LYHGG/6-higher-order-functions/1-some-higher-orderism.hs
bsd-2-clause
filter' p (x: xs) | p x = x : filter' p xs -- 如果 p x 为真 | otherwise = filter' p xs
91
filter' p (x: xs) | p x = x : filter' p xs -- 如果 p x 为真 | otherwise = filter' p xs
91
filter' p (x: xs) | p x = x : filter' p xs -- 如果 p x 为真 | otherwise = filter' p xs
91
false
false
2
8
32
53
23
30
null
null
alpicola/mel
src/K/Inline.hs
mit
withFunDecl :: KDecl -> Inline a -> Inline a withFunDecl d = local $ M.insert (fst (bindOf d)) d
96
withFunDecl :: KDecl -> Inline a -> Inline a withFunDecl d = local $ M.insert (fst (bindOf d)) d
96
withFunDecl d = local $ M.insert (fst (bindOf d)) d
51
false
true
0
10
18
51
24
27
null
null
kcsmnt0/demesne
src/Stdlib.hs
bsd-3-clause
opGe [VInt x, VInt y] = VBool (x >= y)
38
opGe [VInt x, VInt y] = VBool (x >= y)
38
opGe [VInt x, VInt y] = VBool (x >= y)
38
false
false
0
7
9
31
15
16
null
null
kawamuray/ganeti
src/Ganeti/Constants.hs
gpl-2.0
luxiReqQueryFields :: String luxiReqQueryFields = "QueryFields"
63
luxiReqQueryFields :: String luxiReqQueryFields = "QueryFields"
63
luxiReqQueryFields = "QueryFields"
34
false
true
0
4
5
11
6
5
null
null
kawamuray/ganeti
src/Ganeti/Constants.hs
gpl-2.0
-- * Hkr hkrSkip :: Int hkrSkip = 0
36
hkrSkip :: Int hkrSkip = 0
26
hkrSkip = 0
11
true
true
0
4
9
12
7
5
null
null
hpacheco/HAAP
src/HAAP/Shelly.hs
mit
shPipeBinaryWith :: Binary a => IOArgs -> String -> [String] -> Sh a shPipeBinaryWith ioargs name args = shCommandHandleWith ioargs name args handle where handle h = do bs <- liftIO $ BS.hGetContents h return $ decode bs
244
shPipeBinaryWith :: Binary a => IOArgs -> String -> [String] -> Sh a shPipeBinaryWith ioargs name args = shCommandHandleWith ioargs name args handle where handle h = do bs <- liftIO $ BS.hGetContents h return $ decode bs
244
shPipeBinaryWith ioargs name args = shCommandHandleWith ioargs name args handle where handle h = do bs <- liftIO $ BS.hGetContents h return $ decode bs
175
false
true
1
11
61
98
42
56
null
null
LFDM/hstats
src/lib/Contributor.hs
bsd-3-clause
getContributorCommits :: Contributor -> [Commit] getContributorCommits = commits
80
getContributorCommits :: Contributor -> [Commit] getContributorCommits = commits
80
getContributorCommits = commits
31
false
true
0
8
7
25
11
14
null
null
GaloisInc/halvm-ghc
compiler/hsSyn/HsUtils.hs
bsd-3-clause
nlConPatName :: Name -> [LPat Name] -> LPat Name nlConPatName con pats = noLoc (ConPatIn (noLoc con) (PrefixCon pats))
118
nlConPatName :: Name -> [LPat Name] -> LPat Name nlConPatName con pats = noLoc (ConPatIn (noLoc con) (PrefixCon pats))
118
nlConPatName con pats = noLoc (ConPatIn (noLoc con) (PrefixCon pats))
69
false
true
0
9
18
60
28
32
null
null
yliu120/K3
src/Language/K3/Analysis/SEffects/Inference.hs
apache-2.0
falkups :: FAEnv -> Identifier -> Either Text FMEnv falkups env x = maybe err Right $ Map.lookup x env where err = mkErr $ "Unbound annotation in effect environment: " ++ x
174
falkups :: FAEnv -> Identifier -> Either Text FMEnv falkups env x = maybe err Right $ Map.lookup x env where err = mkErr $ "Unbound annotation in effect environment: " ++ x
174
falkups env x = maybe err Right $ Map.lookup x env where err = mkErr $ "Unbound annotation in effect environment: " ++ x
122
false
true
0
7
34
61
29
32
null
null
emilaxelsson/ag-graph
examples/LeavesBelow.hs
bsd-3-clause
intTreeTestT1 = leavesBelow' 3 (unravelDag i1)
46
intTreeTestT1 = leavesBelow' 3 (unravelDag i1)
46
intTreeTestT1 = leavesBelow' 3 (unravelDag i1)
46
false
false
0
7
5
17
8
9
null
null
hvr/jhc
src/Grin/Show.hs
mit
prim = text
11
prim = text
11
prim = text
11
false
false
0
4
2
6
3
3
null
null
geophf/1HaskellADay
exercises/HAD/Y2019/M01/D29/Solution.hs
mit
enquote :: String -> String enquote text@(h:uh) = if h == '"' then text else nq (break (==',') text)
100
enquote :: String -> String enquote text@(h:uh) = if h == '"' then text else nq (break (==',') text)
100
enquote text@(h:uh) = if h == '"' then text else nq (break (==',') text)
72
false
true
0
9
18
55
30
25
null
null
meiersi/blaze-binary
bench/Benchmarks.hs
bsd-3-clause
word8sData :: Int -> [[Word8]] word8sData n = take n $ cycle [[1..5], [101..105]]
81
word8sData :: Int -> [[Word8]] word8sData n = take n $ cycle [[1..5], [101..105]]
81
word8sData n = take n $ cycle [[1..5], [101..105]]
50
false
true
2
9
13
56
28
28
null
null
brendanhay/gogol
gogol-shopping-content/gen/Network/Google/ShoppingContent/Types/Product.hs
mpl-2.0
-- | Creates a value of 'LiaSettingsCustomBatchResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'lscbrEntries' -- -- * 'lscbrKind' liaSettingsCustomBatchResponse :: LiaSettingsCustomBatchResponse liaSettingsCustomBatchResp...
412
liaSettingsCustomBatchResponse :: LiaSettingsCustomBatchResponse liaSettingsCustomBatchResponse = LiaSettingsCustomBatchResponse' {_lscbrEntries = Nothing, _lscbrKind = Nothing}
187
liaSettingsCustomBatchResponse = LiaSettingsCustomBatchResponse' {_lscbrEntries = Nothing, _lscbrKind = Nothing}
118
true
true
1
7
59
39
23
16
null
null
brendanhay/gogol
gogol-shopping-content/gen/Network/Google/ShoppingContent/Types/Product.hs
mpl-2.0
-- | The number of identical products in a merchant-defined multipack. prorMultipack :: Lens' Product (Maybe Int64) prorMultipack = lens _prorMultipack (\ s a -> s{_prorMultipack = a}) . mapping _Coerce
216
prorMultipack :: Lens' Product (Maybe Int64) prorMultipack = lens _prorMultipack (\ s a -> s{_prorMultipack = a}) . mapping _Coerce
145
prorMultipack = lens _prorMultipack (\ s a -> s{_prorMultipack = a}) . mapping _Coerce
100
true
true
0
10
44
55
28
27
null
null
scvalex/logorrhea
lib/DrLogos/Parser.hs
bsd-3-clause
u_userCommand :: UnParser UserCommand u_userCommand ListQuestions = u_startCommand "list"
89
u_userCommand :: UnParser UserCommand u_userCommand ListQuestions = u_startCommand "list"
89
u_userCommand ListQuestions = u_startCommand "list"
51
false
true
0
5
8
20
9
11
null
null
ben-schulz/Idris-dev
src/Idris/IdeMode.hs
bsd-3-clause
sexpToCommand (SexpList [SymbolAtom "load-file", StringAtom filename]) = Just (LoadFile filename Nothing)
126
sexpToCommand (SexpList [SymbolAtom "load-file", StringAtom filename]) = Just (LoadFile filename Nothing)
126
sexpToCommand (SexpList [SymbolAtom "load-file", StringAtom filename]) = Just (LoadFile filename Nothing)
126
false
false
0
8
31
39
18
21
null
null
mitchellwrosen/kerchief
src/Handler/Add.hs
bsd-3-clause
printAddUsage :: IO () printAddUsage = mapM_ putStrLn [ "Usage: add [word|\"front text\" \"back text\"]" , " add word" , " look up |word|, pick a definition, and add it to the current deck" , " add \"front text\" \"back text\"" , " add a new card with front |front text| and back |back ...
332
printAddUsage :: IO () printAddUsage = mapM_ putStrLn [ "Usage: add [word|\"front text\" \"back text\"]" , " add word" , " look up |word|, pick a definition, and add it to the current deck" , " add \"front text\" \"back text\"" , " add a new card with front |front text| and back |back ...
332
printAddUsage = mapM_ putStrLn [ "Usage: add [word|\"front text\" \"back text\"]" , " add word" , " look up |word|, pick a definition, and add it to the current deck" , " add \"front text\" \"back text\"" , " add a new card with front |front text| and back |back text|" ]
309
false
true
0
6
93
37
20
17
null
null
ghcjs/ghcjs-base
test/Tests/Marshal.hs
mit
to_from_jsval' :: (ToJSVal a, FromJSVal a, Eq a) => a -> Property to_from_jsval' a = monadicIO $ do b <- run $ toJSVal a >>= fromJSValUnchecked return $ b == a
167
to_from_jsval' :: (ToJSVal a, FromJSVal a, Eq a) => a -> Property to_from_jsval' a = monadicIO $ do b <- run $ toJSVal a >>= fromJSValUnchecked return $ b == a
167
to_from_jsval' a = monadicIO $ do b <- run $ toJSVal a >>= fromJSValUnchecked return $ b == a
101
false
true
0
11
38
72
35
37
null
null
miguelpagano/equ
TestSuite/Tests/Samples.hs
gpl-3.0
-- [x] ++ [y,w] listXConcatListYW :: PreExpr listXConcatListYW = makeListConcat listX listYW
92
listXConcatListYW :: PreExpr listXConcatListYW = makeListConcat listX listYW
76
listXConcatListYW = makeListConcat listX listYW
47
true
true
0
5
11
17
9
8
null
null
ndmitchell/nsis
src/Development/NSIS/Plugins/WinMessages.hs
bsd-3-clause
-- Scroll bar control -- sbm_ENABLE_ARROWS = 0x00E4
61
sbm_ENABLE_ARROWS = 0x00E4
36
sbm_ENABLE_ARROWS = 0x00E4
36
true
false
0
4
17
7
4
3
null
null
snoyberg/ghc
compiler/hsSyn/HsUtils.hs
bsd-3-clause
nlConPat :: RdrName -> [LPat RdrName] -> LPat RdrName nlConPat con pats = noLoc (ConPatIn (noLoc con) (PrefixCon pats))
119
nlConPat :: RdrName -> [LPat RdrName] -> LPat RdrName nlConPat con pats = noLoc (ConPatIn (noLoc con) (PrefixCon pats))
119
nlConPat con pats = noLoc (ConPatIn (noLoc con) (PrefixCon pats))
65
false
true
0
9
18
61
28
33
null
null
EmilGedda/hattis
src/Hattis/Text/SourceFile.hs
bsd-3-clause
verifyfiles :: (MonadError HattisError m, MonadIO mio) => Files -> mio (m Language) verifyfiles = liftIO . fmap (decidelang =<<) . allfiles
139
verifyfiles :: (MonadError HattisError m, MonadIO mio) => Files -> mio (m Language) verifyfiles = liftIO . fmap (decidelang =<<) . allfiles
139
verifyfiles = liftIO . fmap (decidelang =<<) . allfiles
55
false
true
0
9
21
56
29
27
null
null
dysinger/amazonka
amazonka-cloudwatch-logs/gen/Network/AWS/CloudWatchLogs/Types.hs
mpl-2.0
lgRetentionInDays :: Lens' LogGroup (Maybe Int) lgRetentionInDays = lens _lgRetentionInDays (\s a -> s { _lgRetentionInDays = a })
134
lgRetentionInDays :: Lens' LogGroup (Maybe Int) lgRetentionInDays = lens _lgRetentionInDays (\s a -> s { _lgRetentionInDays = a })
134
lgRetentionInDays = lens _lgRetentionInDays (\s a -> s { _lgRetentionInDays = a })
86
false
true
0
9
22
45
24
21
null
null
mfpi/OpenGL
Graphics/Rendering/OpenGL/GL/Shaders/Uniform.hs
bsd-3-clause
uniformBlockBinding :: Program -> GLuint -> GLuint -> IO () uniformBlockBinding (Program program) = glUniformBlockBinding program
132
uniformBlockBinding :: Program -> GLuint -> GLuint -> IO () uniformBlockBinding (Program program) = glUniformBlockBinding program
132
uniformBlockBinding (Program program) = glUniformBlockBinding program
72
false
true
0
9
18
40
19
21
null
null
facebookincubator/duckling
Duckling/Numeral/RO/Corpus.hs
bsd-3-clause
allExamples :: [Example] allExamples = concat [ examples (NumeralValue 0) [ "0" , "zero" , "nici unul" , "nici unu" , "nici una" , "nici o" , "nicio" , "nimic" ] , examples (NumeralValue 1) ...
4,134
allExamples :: [Example] allExamples = concat [ examples (NumeralValue 0) [ "0" , "zero" , "nici unul" , "nici unu" , "nici una" , "nici o" , "nicio" , "nimic" ] , examples (NumeralValue 1) ...
4,134
allExamples = concat [ examples (NumeralValue 0) [ "0" , "zero" , "nici unul" , "nici unu" , "nici una" , "nici o" , "nicio" , "nimic" ] , examples (NumeralValue 1) [ "1" , ...
4,109
false
true
0
11
2,257
805
453
352
null
null
christiaanb/SoOSiM-components
src/SoOSiM/Components/Scheduler/Behaviour.hs
mit
waitThreadMsg th aN = onlyOnce $ traceMsgTag ("Thread " ++ show th ++ " is waiting") ("ThreadWait " ++ aN ++ ".T" ++ show th)
130
waitThreadMsg th aN = onlyOnce $ traceMsgTag ("Thread " ++ show th ++ " is waiting") ("ThreadWait " ++ aN ++ ".T" ++ show th)
130
waitThreadMsg th aN = onlyOnce $ traceMsgTag ("Thread " ++ show th ++ " is waiting") ("ThreadWait " ++ aN ++ ".T" ++ show th)
130
false
false
0
10
29
52
25
27
null
null
spacekitteh/smcghc
compiler/cmm/PprC.hs
bsd-3-clause
-- -------------------------------------------------------------------------- -- BasicBlocks are self-contained entities: they always end in a jump. -- -- Like nativeGen/AsmCodeGen, we could probably reorder blocks to turn -- as many jumps as possible into fall throughs. -- pprBBlock :: CmmBlock -> SDoc pprBBlock bloc...
651
pprBBlock :: CmmBlock -> SDoc pprBBlock block = nest 4 (pprBlockId lbl <> colon) $$ nest 8 (vcat (map pprStmt (blockToList nodes)) $$ pprStmt last) where (CmmEntry lbl, nodes, last) = blockSplit block -- -------------------------------------------------------------------------- -- Info tables. Just arrays of w...
375
pprBBlock block = nest 4 (pprBlockId lbl <> colon) $$ nest 8 (vcat (map pprStmt (blockToList nodes)) $$ pprStmt last) where (CmmEntry lbl, nodes, last) = blockSplit block -- -------------------------------------------------------------------------- -- Info tables. Just arrays of words. -- See codeGen/ClosureIn...
345
true
true
0
13
90
102
54
48
null
null
vincenthz/hs-foundation
foundation/Foundation/Hashing/SipHash.hs
bsd-3-clause
andMask64 :: Int -> Word64 andMask64 64 = 0xffffffffffffffff
60
andMask64 :: Int -> Word64 andMask64 64 = 0xffffffffffffffff
60
andMask64 64 = 0xffffffffffffffff
33
false
true
0
5
8
18
9
9
null
null
Persi/shellcheck
ShellCheck/Analytics.hs
gpl-3.0
prop_checkSingleBracketOperators3 = verifyNot checkSingleBracketOperators "[[ foo < bar ]]"
91
prop_checkSingleBracketOperators3 = verifyNot checkSingleBracketOperators "[[ foo < bar ]]"
91
prop_checkSingleBracketOperators3 = verifyNot checkSingleBracketOperators "[[ foo < bar ]]"
91
false
false
0
5
8
11
5
6
null
null
nevrenato/HetsAlloy
Maude/PreComorphism.hs
gpl-2.0
-- | translates an operator declaration set into a tern as described above translateOpDeclSet :: IdMap -> MSign.OpDeclSet -> OpTransTuple -> OpTransTuple translateOpDeclSet im ods tpl = Set.fold (translateOpDecl im) tpl ods
223
translateOpDeclSet :: IdMap -> MSign.OpDeclSet -> OpTransTuple -> OpTransTuple translateOpDeclSet im ods tpl = Set.fold (translateOpDecl im) tpl ods
148
translateOpDeclSet im ods tpl = Set.fold (translateOpDecl im) tpl ods
69
true
true
0
7
31
48
24
24
null
null
thalerjonathan/phd
thesis/code/sugarscape/src/SugarScape/Agent/Interface.hs
gpl-3.0
isDeadAo :: AgentOut m e o -> Bool isDeadAo = getAny . aoKill
61
isDeadAo :: AgentOut m e o -> Bool isDeadAo = getAny . aoKill
61
isDeadAo = getAny . aoKill
26
false
true
0
6
12
26
13
13
null
null
alphaHeavy/htcondor
src/Network/HTCondor/Submit/Language.hs
bsd-3-clause
streamOutput :: Monad m => Bool -> CondorT m () streamOutput = insertBool "stream_output"
89
streamOutput :: Monad m => Bool -> CondorT m () streamOutput = insertBool "stream_output"
89
streamOutput = insertBool "stream_output"
41
false
true
0
9
13
38
16
22
null
null
poiuj/pfcc
src/Semant.hs
bsd-3-clause
lookupMethodInFeatures _ _ = Nothing
36
lookupMethodInFeatures _ _ = Nothing
36
lookupMethodInFeatures _ _ = Nothing
36
false
false
0
5
4
11
5
6
null
null
CarstenKoenig/DOS2015
Countdown/CountdownFast.hs
unlicense
precedence Add = 5
18
precedence Add = 5
18
precedence Add = 5
18
false
false
1
5
3
13
4
9
null
null
jpotterm/manila-hs
src/Mint/Category.hs
cc0-1.0
extractCategories :: String -> IO [(String, [String])] extractCategories contents = do let doc = readString [withParseHTML yes, withWarnings no] contents let firstLis = doc //> hasName "ul" >>> hasAttrValue "id" (== "popup-cc-L1") /> hasName "li" >>> hasAttrValue "class" (== "isL1") ...
380
extractCategories :: String -> IO [(String, [String])] extractCategories contents = do let doc = readString [withParseHTML yes, withWarnings no] contents let firstLis = doc //> hasName "ul" >>> hasAttrValue "id" (== "popup-cc-L1") /> hasName "li" >>> hasAttrValue "class" (== "isL1") ...
380
extractCategories contents = do let doc = readString [withParseHTML yes, withWarnings no] contents let firstLis = doc //> hasName "ul" >>> hasAttrValue "id" (== "popup-cc-L1") /> hasName "li" >>> hasAttrValue "class" (== "isL1") runX $ firstLis >>> (getCategoryName &&& getSubcatego...
325
false
true
3
10
84
119
63
56
null
null
urbanslug/ghc
compiler/typecheck/TcTypeNats.hs
bsd-3-clause
matchFamSub :: [Type] -> Maybe (CoAxiomRule, [Type], Type) matchFamSub [s,t] | Just 0 <- mbY = Just (axSub0R, [s], s) | Just x <- mbX, Just y <- mbY, Just z <- minus x y = Just (axSubDef, [s,t], num z) where mbX = isNumLitTy s mbY = isNumLitTy t
263
matchFamSub :: [Type] -> Maybe (CoAxiomRule, [Type], Type) matchFamSub [s,t] | Just 0 <- mbY = Just (axSub0R, [s], s) | Just x <- mbX, Just y <- mbY, Just z <- minus x y = Just (axSubDef, [s,t], num z) where mbX = isNumLitTy s mbY = isNumLitTy t
263
matchFamSub [s,t] | Just 0 <- mbY = Just (axSub0R, [s], s) | Just x <- mbX, Just y <- mbY, Just z <- minus x y = Just (axSubDef, [s,t], num z) where mbX = isNumLitTy s mbY = isNumLitTy t
204
false
true
1
9
67
161
80
81
null
null
ocramz/petsc-hs
src/Numerical/PETSc/Test.hs
gpl-3.0
t11 = withPetsc0 t11'
22
t11 = withPetsc0 t11'
22
t11 = withPetsc0 t11'
22
false
false
0
5
4
9
4
5
null
null
hguenther/nbis
Value.hs
agpl-3.0
valIsComplex :: Val -> Bool valIsComplex (DirectValue x) = isComplexExpr x
74
valIsComplex :: Val -> Bool valIsComplex (DirectValue x) = isComplexExpr x
74
valIsComplex (DirectValue x) = isComplexExpr x
46
false
true
0
6
10
31
14
17
null
null
snoyberg/ghc
compiler/deSugar/DsBinds.hs
bsd-3-clause
dsHsWrapper (WpCast co) e = ASSERT(coercionRole co == Representational) return $ mkCastDs e co
134
dsHsWrapper (WpCast co) e = ASSERT(coercionRole co == Representational) return $ mkCastDs e co
134
dsHsWrapper (WpCast co) e = ASSERT(coercionRole co == Representational) return $ mkCastDs e co
134
false
false
1
9
53
43
19
24
null
null
ssaavedra/liquidhaskell
src/Language/Haskell/Liquid/UX/ACSS.hs
bsd-3-clause
renderTypAnnot Nothing s = s
31
renderTypAnnot Nothing s = s
31
renderTypAnnot Nothing s = s
31
false
false
0
5
7
11
5
6
null
null
lukexi/ghc-7.8-arm64
compiler/codeGen/CgUtils.hs
bsd-3-clause
baseRegOffset dflags (VanillaReg 7 _) = oFFSET_StgRegTable_rR7 dflags
72
baseRegOffset dflags (VanillaReg 7 _) = oFFSET_StgRegTable_rR7 dflags
72
baseRegOffset dflags (VanillaReg 7 _) = oFFSET_StgRegTable_rR7 dflags
72
false
false
0
6
10
24
10
14
null
null
mmx1/tokenGen
src/Traverser.hs
bsd-3-clause
recReadDir :: FilePath -> IO LexHgram recReadDir p = do dfe <- doesDirectoryExist p if dfe then readDir $ p ++ "/" else mapFile p
141
recReadDir :: FilePath -> IO LexHgram recReadDir p = do dfe <- doesDirectoryExist p if dfe then readDir $ p ++ "/" else mapFile p
141
recReadDir p = do dfe <- doesDirectoryExist p if dfe then readDir $ p ++ "/" else mapFile p
103
false
true
0
9
36
53
25
28
null
null
tonymorris/system-command
src/System/Command.hs
bsd-3-clause
fromExitCode :: E.ExitCode -> ExitCode fromExitCode E.ExitSuccess = success
81
fromExitCode :: E.ExitCode -> ExitCode fromExitCode E.ExitSuccess = success
81
fromExitCode E.ExitSuccess = success
38
false
true
0
8
14
24
11
13
null
null
isomorphism/webgl
src/Graphics/Rendering/WebGL/Constants.hs
mit
gl_TEXTURE_CUBE_MAP_POSITIVE_Y :: GLenum gl_TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517
80
gl_TEXTURE_CUBE_MAP_POSITIVE_Y :: GLenum gl_TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517
80
gl_TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517
39
false
true
0
4
5
11
6
5
null
null
damoxc/ganeti
src/Ganeti/HTools/CLI.hs
gpl-2.0
oSelInst :: OptType oSelInst = (Option "" ["select-instances"] (ReqArg (\ f opts -> Ok opts { optSelInst = sepSplit ',' f }) "INSTS") "only select given instances for any moves", OptComplManyInstances)
212
oSelInst :: OptType oSelInst = (Option "" ["select-instances"] (ReqArg (\ f opts -> Ok opts { optSelInst = sepSplit ',' f }) "INSTS") "only select given instances for any moves", OptComplManyInstances)
212
oSelInst = (Option "" ["select-instances"] (ReqArg (\ f opts -> Ok opts { optSelInst = sepSplit ',' f }) "INSTS") "only select given instances for any moves", OptComplManyInstances)
192
false
true
0
14
41
63
34
29
null
null
bitemyapp/ganeti
src/Ganeti/Query/Language.hs
bsd-2-clause
showFilter (GTFilter field value) = JSArray [showJSON C.qlangOpGt, showJSON field, showJSON value]
100
showFilter (GTFilter field value) = JSArray [showJSON C.qlangOpGt, showJSON field, showJSON value]
100
showFilter (GTFilter field value) = JSArray [showJSON C.qlangOpGt, showJSON field, showJSON value]
100
false
false
0
8
13
40
19
21
null
null
snoyberg/ghc
compiler/basicTypes/OccName.hs
bsd-3-clause
pprNameSpace :: NameSpace -> SDoc pprNameSpace DataName = text "data constructor"
82
pprNameSpace :: NameSpace -> SDoc pprNameSpace DataName = text "data constructor"
82
pprNameSpace DataName = text "data constructor"
48
false
true
0
5
11
21
10
11
null
null
mpickering/hlint-refactor
tests/examples/LambdaCase01.hs
bsd-3-clause
-- NOTE: The tests run with `-XLambdaCase`. -- If that option is not preserved, parsing here will fail. foo = \case 1 -> \x -> x _ -> \x -> 0
145
foo = \case 1 -> \x -> x _ -> \x -> 0
41
foo = \case 1 -> \x -> x _ -> \x -> 0
41
true
false
0
8
34
32
18
14
null
null
caneroj1/Crypto-hs
src/Internal/Base64.hs
bsd-3-clause
fromBase64 :: Base64Encoded -> BS.ByteString fromBase64 (Base64Encoded bytes) = decode $ BS.map decodeW8 bytes where decode (uncons4 -> Just (h, hh, hhh, hhhh, t)) | hhhh == ePad && hhh == ePad = decode2 h hh <> decode t | hhhh == ePad = decode3 h hh hhh <> decode t ...
409
fromBase64 :: Base64Encoded -> BS.ByteString fromBase64 (Base64Encoded bytes) = decode $ BS.map decodeW8 bytes where decode (uncons4 -> Just (h, hh, hhh, hhhh, t)) | hhhh == ePad && hhh == ePad = decode2 h hh <> decode t | hhhh == ePad = decode3 h hh hhh <> decode t ...
409
fromBase64 (Base64Encoded bytes) = decode $ BS.map decodeW8 bytes where decode (uncons4 -> Just (h, hh, hhh, hhhh, t)) | hhhh == ePad && hhh == ePad = decode2 h hh <> decode t | hhhh == ePad = decode3 h hh hhh <> decode t | otherwise = decode4 h hh ...
364
false
true
0
10
140
165
79
86
null
null
plutonbrb/nero
src/Nero/Request.hs
bsd-3-clause
-- | An empty POST request with an empty /form encoded body/. defaultRequestForm :: Request defaultRequestForm = RequestPOST $ POST defaultRequestCommon defaultPayloadForm
171
defaultRequestForm :: Request defaultRequestForm = RequestPOST $ POST defaultRequestCommon defaultPayloadForm
109
defaultRequestForm = RequestPOST $ POST defaultRequestCommon defaultPayloadForm
79
true
true
0
6
21
21
11
10
null
null
DavidAlphaFox/ghc
compiler/coreSyn/TrieMap.hs
bsd-3-clause
xtA env (LitAlt l, _, rhs) f m = m { am_lit = am_lit m |> xtLit l |>> xtE env rhs f }
91
xtA env (LitAlt l, _, rhs) f m = m { am_lit = am_lit m |> xtLit l |>> xtE env rhs f }
91
xtA env (LitAlt l, _, rhs) f m = m { am_lit = am_lit m |> xtLit l |>> xtE env rhs f }
91
false
false
1
10
29
60
28
32
null
null
ksaveljev/hake-2
src/Server/SVSend.hs
bsd-3-clause
-- TODO {- ================= SV_BroadcastPrintf Sends text to all active clients ================= -} broadcastPrintf :: Int -> B.ByteString -> Quake () broadcastPrintf _ _ = io (putStrLn "SVSend.broadcastPrintf") >> undefined
228
broadcastPrintf :: Int -> B.ByteString -> Quake () broadcastPrintf _ _ = io (putStrLn "SVSend.broadcastPrintf") >> undefined
124
broadcastPrintf _ _ = io (putStrLn "SVSend.broadcastPrintf") >> undefined
73
true
true
0
8
31
46
23
23
null
null
mrmonday/Idris-dev
src/IRTS/JavaScript/AST.hs
bsd-3-clause
compileJS :: JS -> T.Text compileJS = compileJS' 0
50
compileJS :: JS -> T.Text compileJS = compileJS' 0
50
compileJS = compileJS' 0
24
false
true
0
6
8
20
10
10
null
null
mrakgr/futhark
src/Futhark/Analysis/Range.hs
bsd-3-clause
simplifyKnownBound ranges (MinimumBound b1 b2) = MinimumBound (simplifyKnownBound ranges b1) (simplifyKnownBound ranges b2)
125
simplifyKnownBound ranges (MinimumBound b1 b2) = MinimumBound (simplifyKnownBound ranges b1) (simplifyKnownBound ranges b2)
125
simplifyKnownBound ranges (MinimumBound b1 b2) = MinimumBound (simplifyKnownBound ranges b1) (simplifyKnownBound ranges b2)
125
false
false
0
7
14
40
19
21
null
null
robdockins/edison
edison-core/src/Data/Edison/Seq/FingerSeq.hs
mit
lookupWithDefault d i (Seq xs) | inBounds i (Seq xs) = case FT.splitTree (> (SizeM i)) (SizeM 0) xs of FT.Split _ (Elem x) _ -> x | otherwise = d
173
lookupWithDefault d i (Seq xs) | inBounds i (Seq xs) = case FT.splitTree (> (SizeM i)) (SizeM 0) xs of FT.Split _ (Elem x) _ -> x | otherwise = d
173
lookupWithDefault d i (Seq xs) | inBounds i (Seq xs) = case FT.splitTree (> (SizeM i)) (SizeM 0) xs of FT.Split _ (Elem x) _ -> x | otherwise = d
173
false
false
1
11
58
94
45
49
null
null
felipexpert/matrix
src/Message.hs
gpl-2.0
success :: Task -> Result -> Info success t r = "The " ++ t ++ " from the given matrix is: " ++ r
97
success :: Task -> Result -> Info success t r = "The " ++ t ++ " from the given matrix is: " ++ r
97
success t r = "The " ++ t ++ " from the given matrix is: " ++ r
63
false
true
0
7
24
36
18
18
null
null
jamshidh/ethereum-data-leveldb
src/Blockchain/DB/CodeDB.hs
bsd-3-clause
getCode::SHA->DBM (Maybe B.ByteString) getCode theHash = codeDBGet (BL.toStrict $ encode $ MP.sha2SHAPtr theHash)
116
getCode::SHA->DBM (Maybe B.ByteString) getCode theHash = codeDBGet (BL.toStrict $ encode $ MP.sha2SHAPtr theHash)
116
getCode theHash = codeDBGet (BL.toStrict $ encode $ MP.sha2SHAPtr theHash)
77
false
true
0
10
15
56
25
31
null
null
ml9951/ghc
compiler/nativeGen/PPC/Ppr.hs
bsd-3-clause
pprCond :: Cond -> SDoc pprCond c = ptext (case c of { ALWAYS -> sLit ""; EQQ -> sLit "eq"; NE -> sLit "ne"; LTT -> sLit "lt"; GE -> sLit "ge"; GTT -> sLit "gt"; LE -> sLit "le"; LU -> sLit "lt"; GE...
399
pprCond :: Cond -> SDoc pprCond c = ptext (case c of { ALWAYS -> sLit ""; EQQ -> sLit "eq"; NE -> sLit "ne"; LTT -> sLit "lt"; GE -> sLit "ge"; GTT -> sLit "gt"; LE -> sLit "le"; LU -> sLit "lt"; GE...
399
pprCond c = ptext (case c of { ALWAYS -> sLit ""; EQQ -> sLit "eq"; NE -> sLit "ne"; LTT -> sLit "lt"; GE -> sLit "ge"; GTT -> sLit "gt"; LE -> sLit "le"; LU -> sLit "lt"; GEU -> sLit "ge"; ...
375
false
true
0
10
205
146
72
74
null
null
ancientlanguage/haskell-analysis
grammar/src/Grammar/Common/Decompose.hs
mit
decomposeChar '\x1FD3' = "\x03B9\x0308\x0301"
45
decomposeChar '\x1FD3' = "\x03B9\x0308\x0301"
45
decomposeChar '\x1FD3' = "\x03B9\x0308\x0301"
45
false
false
0
5
3
9
4
5
null
null
haskell-distributed/distributed-process-registry
src/Control/Distributed/Process/Registry.hs
bsd-3-clause
handleRegisterPropertyCR :: forall k v. (Keyable k, Serializable v) => State k v -> CallRef (RegisterKeyReply) -> (RegisterKeyReq k, v) -> Process (ProcessReply RegisterKeyReply (State k v)) handleRegisterPropertyCR st c...
393
handleRegisterPropertyCR :: forall k v. (Keyable k, Serializable v) => State k v -> CallRef (RegisterKeyReply) -> (RegisterKeyReq k, v) -> Process (ProcessReply RegisterKeyReply (State k v)) handleRegisterPropertyCR st c...
393
handleRegisterPropertyCR st cr req = do pid <- resolve cr doRegisterProperty (fromJust pid) st req
102
false
true
0
15
145
121
58
63
null
null
Concelo/concelo
src/Database/Concelo/Relay.hs
bsd-3-clause
filterDiff streams (obsoleteChunks, newChunks) = (T.foldrPathsAndValues maybeRemove obsoleteChunks obsoleteChunks, T.foldrPathsAndValues maybeRemove newChunks newChunks) where maybeRemove (path, chunk) chunks = case chunkTreeStream chunk of Nothing -> chunks Just stream -> if BS...
434
filterDiff streams (obsoleteChunks, newChunks) = (T.foldrPathsAndValues maybeRemove obsoleteChunks obsoleteChunks, T.foldrPathsAndValues maybeRemove newChunks newChunks) where maybeRemove (path, chunk) chunks = case chunkTreeStream chunk of Nothing -> chunks Just stream -> if BS...
434
filterDiff streams (obsoleteChunks, newChunks) = (T.foldrPathsAndValues maybeRemove obsoleteChunks obsoleteChunks, T.foldrPathsAndValues maybeRemove newChunks newChunks) where maybeRemove (path, chunk) chunks = case chunkTreeStream chunk of Nothing -> chunks Just stream -> if BS...
434
false
false
0
13
116
112
56
56
null
null
dolio/vector
Data/Vector/Internal/Check.hs
bsd-3-clause
True || _ = True
16
True || _ = True
16
True || _ = True
16
false
false
0
5
4
16
6
10
null
null
dpieroux/euler
0/0096_orig.hs
mit
showBoard' :: Maybe Board -> String showBoard' Nothing = "Nothing\n"
68
showBoard' :: Maybe Board -> String showBoard' Nothing = "Nothing\n"
68
showBoard' Nothing = "Nothing\n"
32
false
true
0
6
9
21
10
11
null
null
ghcjs/jsaddle-dom
src/JSDOM/Generated/SVGPoint.hs
mit
-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGPoint.y Mozilla SVGPoint.y documentation> setY :: (MonadDOM m) => SVGPoint -> Float -> m () setY self val = liftDOM (self ^. jss "y" (toJSVal val))
206
setY :: (MonadDOM m) => SVGPoint -> Float -> m () setY self val = liftDOM (self ^. jss "y" (toJSVal val))
105
setY self val = liftDOM (self ^. jss "y" (toJSVal val))
55
true
true
0
10
28
64
31
33
null
null
Shou/KawaiiBot-hs
KawaiiBot/Types.hs
gpl-2.0
emptyMeta = Meta [] [] [] [] [] [] []
37
emptyMeta = Meta [] [] [] [] [] [] []
37
emptyMeta = Meta [] [] [] [] [] [] []
37
false
false
1
6
9
38
17
21
null
null
zoomhub/zoomhub
src/ZoomHub/Storage/PostgreSQL/Schema/Schema0.hs
mit
createContentHashIdTrigger :: Migration Definition Schemas0 Schemas0 createContentHashIdTrigger = Migration { name = "2019-11-11-5: Create content hash_id trigger", up = concatDefinitions [ manipDefinition . UnsafeManipulation $ createContentBeforeInsert, manipDefinition . Unsa...
2,935
createContentHashIdTrigger :: Migration Definition Schemas0 Schemas0 createContentHashIdTrigger = Migration { name = "2019-11-11-5: Create content hash_id trigger", up = concatDefinitions [ manipDefinition . UnsafeManipulation $ createContentBeforeInsert, manipDefinition . Unsa...
2,935
createContentHashIdTrigger = Migration { name = "2019-11-11-5: Create content hash_id trigger", up = concatDefinitions [ manipDefinition . UnsafeManipulation $ createContentBeforeInsert, manipDefinition . UnsafeManipulation $ createTriggerContentBeforeInsert ], ...
2,866
false
true
0
10
996
181
104
77
null
null
Spheniscida/cHaTTP
persistence-pg/Chattp/PersistencePg/Database.hs
mit
userRegisterQuery :: Query -- Parameters: user_name, user_password (clear text), user_email userRegisterQuery = "INSERT INTO chattp_users (user_name,user_password,user_email) VALUES (?,crypt(?,gen_salt('bf')),?)"
212
userRegisterQuery :: Query userRegisterQuery = "INSERT INTO chattp_users (user_name,user_password,user_email) VALUES (?,crypt(?,gen_salt('bf')),?)"
147
userRegisterQuery = "INSERT INTO chattp_users (user_name,user_password,user_email) VALUES (?,crypt(?,gen_salt('bf')),?)"
120
true
true
0
6
17
19
8
11
null
null
wavewave/lhc-analysis-collection
analysis/runProspino.hs
gpl-3.0
install = Install { installdir = def &= typ "INSTALLDIR" &= argPos 0 }
70
install = Install { installdir = def &= typ "INSTALLDIR" &= argPos 0 }
70
install = Install { installdir = def &= typ "INSTALLDIR" &= argPos 0 }
70
false
false
1
10
13
35
15
20
null
null
wyn/blash
tests/TestBlashImpl.hs
bsd-3-clause
prop_swapM :: BlasArgs Double -> Property prop_swapM (BlasArgs (Positive n) xs (NonZero incx) ys (NonZero incy)) = monadicIO $ do -- expected uses the CBLAS implementation via inline-c (expectedXS, expectedYS) <- run $ do let expectedXS' = VS.fromList (coerce xs) expectedYS' = VS.fromList (coerce ys...
1,302
prop_swapM :: BlasArgs Double -> Property prop_swapM (BlasArgs (Positive n) xs (NonZero incx) ys (NonZero incy)) = monadicIO $ do -- expected uses the CBLAS implementation via inline-c (expectedXS, expectedYS) <- run $ do let expectedXS' = VS.fromList (coerce xs) expectedYS' = VS.fromList (coerce ys...
1,302
prop_swapM (BlasArgs (Positive n) xs (NonZero incx) ys (NonZero incy)) = monadicIO $ do -- expected uses the CBLAS implementation via inline-c (expectedXS, expectedYS) <- run $ do let expectedXS' = VS.fromList (coerce xs) expectedYS' = VS.fromList (coerce ys) n' = fromIntegral n incx' = ...
1,260
false
true
0
17
279
455
216
239
null
null
banacorn/formal-language
haskell-legacy/test.hs
mit
mappingsN = TransitionsNFA [ (1, Alphabet 'a', [2]), (1, Alphabet 'b', [3]), (2, Alphabet 'a', [1]), (2, Alphabet 'b', [2]), (3, Alphabet 'a', [2]), (3, Alphabet 'b', [1]) ]
201
mappingsN = TransitionsNFA [ (1, Alphabet 'a', [2]), (1, Alphabet 'b', [3]), (2, Alphabet 'a', [1]), (2, Alphabet 'b', [2]), (3, Alphabet 'a', [2]), (3, Alphabet 'b', [1]) ]
201
mappingsN = TransitionsNFA [ (1, Alphabet 'a', [2]), (1, Alphabet 'b', [3]), (2, Alphabet 'a', [1]), (2, Alphabet 'b', [2]), (3, Alphabet 'a', [2]), (3, Alphabet 'b', [1]) ]
201
false
false
0
8
56
117
70
47
null
null
dbueno/funsat
etc/parse-dimacs/Language/CNF/Parse/ParseDIMACS.hs
bsd-3-clause
-- | Parse a file containing DIMACS CNF data. parseFile :: FilePath -> IO (Either ParseError CNF) parseFile = parseFromFile cnf
127
parseFile :: FilePath -> IO (Either ParseError CNF) parseFile = parseFromFile cnf
81
parseFile = parseFromFile cnf
29
true
true
0
8
20
30
15
15
null
null
philopon/memcached-binary
test/test.hs
mit
testGet :: Spec testGet = context "get" $ do context "IO module" $ do describe "get" $ do doTest "foo" (0, "foovalue") "get" McIO.get doTest "bar" (1, "1234567890") "get" McIO.get doTestException "get" McIO.get describe "get_" $ do doT...
1,277
testGet :: Spec testGet = context "get" $ do context "IO module" $ do describe "get" $ do doTest "foo" (0, "foovalue") "get" McIO.get doTest "bar" (1, "1234567890") "get" McIO.get doTestException "get" McIO.get describe "get_" $ do doT...
1,277
testGet = context "get" $ do context "IO module" $ do describe "get" $ do doTest "foo" (0, "foovalue") "get" McIO.get doTest "bar" (1, "1234567890") "get" McIO.get doTestException "get" McIO.get describe "get_" $ do doTest "foo" "foova...
1,261
false
true
0
20
433
419
192
227
null
null
sheyll/b9-vm-image-builder
src/lib/B9/DiskImageBuilder.hs
mit
-- | Import a disk image from some external source into the build directory -- if necessary convert the image. importImage :: IsB9 e => Image -> Image -> Eff e () importImage imgIn imgOut@(Image imgOutPath _ _) = do alreadyThere <- liftIO (doesFileExist imgOutPath) unless alreadyThere (convert False imgIn imgOut) ...
402
importImage :: IsB9 e => Image -> Image -> Eff e () importImage imgIn imgOut@(Image imgOutPath _ _) = do alreadyThere <- liftIO (doesFileExist imgOutPath) unless alreadyThere (convert False imgIn imgOut) -- | Export a disk image from the build directory; if necessary convert the image.
291
importImage imgIn imgOut@(Image imgOutPath _ _) = do alreadyThere <- liftIO (doesFileExist imgOutPath) unless alreadyThere (convert False imgIn imgOut) -- | Export a disk image from the build directory; if necessary convert the image.
239
true
true
0
10
70
88
43
45
null
null
kmate/HaRe
old/tools/pfe/Pfe1Cmds.hs
bsd-3-clause
simple f = pput.vcat.f @@ preparseSourceFile @@ findFile
56
simple f = pput.vcat.f @@ preparseSourceFile @@ findFile
56
simple f = pput.vcat.f @@ preparseSourceFile @@ findFile
56
false
false
0
8
7
21
10
11
null
null
joelwilliamson/modern-compilers-exercises
Lexer.hs
gpl-3.0
braces = T.braces lexer
23
braces = T.braces lexer
23
braces = T.braces lexer
23
false
false
0
6
3
11
5
6
null
null
8c6794b6/tokyodystopia-haskell
Database/TokyoDystopia/WDB.hs
bsd-3-clause
-- | Tune the database. Must be used before opening database. tune :: WDB -> Int64 -> [TuningOption] -> IO Bool tune db etnum os = FW.c_tune (unWDB db) etnum os' where os' = fromIntegral . bitOr $ map (FW.unTuningOption . f) os f TLARGE = FW.toLarge f TDEFLATE = FW.toDeflate f TBZIP = FW.toBzip ...
417
tune :: WDB -> Int64 -> [TuningOption] -> IO Bool tune db etnum os = FW.c_tune (unWDB db) etnum os' where os' = fromIntegral . bitOr $ map (FW.unTuningOption . f) os f TLARGE = FW.toLarge f TDEFLATE = FW.toDeflate f TBZIP = FW.toBzip f TTCBS = FW.toTcbs f _ = FW.TuningOption 0 ...
355
tune db etnum os = FW.c_tune (unWDB db) etnum os' where os' = fromIntegral . bitOr $ map (FW.unTuningOption . f) os f TLARGE = FW.toLarge f TDEFLATE = FW.toDeflate f TBZIP = FW.toBzip f TTCBS = FW.toTcbs f _ = FW.TuningOption 0 -- | Delete the database from disk.
305
true
true
6
9
112
158
69
89
null
null
GaloisInc/network-hans
src/Network/BSD.hs
bsd-3-clause
getNetworkEntry :: IO NetworkEntry getNetworkEntry = return (head networkDB)
76
getNetworkEntry :: IO NetworkEntry getNetworkEntry = return (head networkDB)
76
getNetworkEntry = return (head networkDB)
41
false
true
0
7
8
23
11
12
null
null
balez/Safe-AG
Grammar/SafeAG/TH/Idiom.hs
gpl-3.0
idiom = (>>= bracket)
21
idiom = (>>= bracket)
21
idiom = (>>= bracket)
21
false
false
0
5
3
10
6
4
null
null
ciderpunx/cv-api
src/Db.hs
gpl-3.0
createAward :: CvKey -> Award -> SqlPersistM (Key Award) createAward cvKey a = insert $ Award (Just cvKey) (awardTitle a) (awardDate a) (awardAwarder a) (awardSummary a)
243
createAward :: CvKey -> Award -> SqlPersistM (Key Award) createAward cvKey a = insert $ Award (Just cvKey) (awardTitle a) (awardDate a) (awardAwarder a) (awardSummary a)
243
createAward cvKey a = insert $ Award (Just cvKey) (awardTitle a) (awardDate a) (awardAwarder a) (awardSummary a)
186
false
true
0
9
99
78
38
40
null
null
kwf/data-kiln
Data/Kiln.hs
bsd-3-clause
kiln :: (Traversable f) => Clay s f -> Squishy s (Fix f) kiln = kilnWith id
75
kiln :: (Traversable f) => Clay s f -> Squishy s (Fix f) kiln = kilnWith id
75
kiln = kilnWith id
18
false
true
0
10
16
49
22
27
null
null
rvion/ride
jetpack/src/Network/Wai/Middleware/Static/AsWai.hs
bsd-3-clause
-- constructor :: FileMeta -> RequestHeaders -> CustomCaching wai_mk'CustomCaching = I.CustomCaching
101
wai_mk'CustomCaching = I.CustomCaching
39
wai_mk'CustomCaching = I.CustomCaching
39
true
false
0
5
11
9
5
4
null
null
nomeata/cryptonite
Crypto/Cipher/AES/Primitive.hs
bsd-3-clause
encryptXTS :: ByteArray ba => (AES,AES) -- ^ AES cipher and tweak context -> IV AES -- ^ a 128 bits IV, typically a sector or a block offset in XTS -> Word32 -- ^ number of rounds to skip, also seen a 16 byte offset in the sector or block. -> ba -- ^ input to...
412
encryptXTS :: ByteArray ba => (AES,AES) -- ^ AES cipher and tweak context -> IV AES -- ^ a 128 bits IV, typically a sector or a block offset in XTS -> Word32 -- ^ number of rounds to skip, also seen a 16 byte offset in the sector or block. -> ba -- ^ input to...
382
encryptXTS = doXTS c_aes_encrypt_xts
36
true
true
0
9
147
51
28
23
null
null
tylerjl/adventofcode
src/Y2015/D18.hs
mit
step 1 3 = 1
12
step 1 3 = 1
12
step 1 3 = 1
12
false
false
0
5
4
11
5
6
null
null
JamesSullivan1/Mpp
src/MppCodeGen.hs
mit
_gen_innerfuns ((I_BLOCK (fs,_,_,_)):ss) l = (funCode ++ funsCode, l') where (funCode, l1) = gen_funs fs l (funsCode, l') = _gen_innerfuns ss l1
165
_gen_innerfuns ((I_BLOCK (fs,_,_,_)):ss) l = (funCode ++ funsCode, l') where (funCode, l1) = gen_funs fs l (funsCode, l') = _gen_innerfuns ss l1
165
_gen_innerfuns ((I_BLOCK (fs,_,_,_)):ss) l = (funCode ++ funsCode, l') where (funCode, l1) = gen_funs fs l (funsCode, l') = _gen_innerfuns ss l1
165
false
false
0
10
42
81
45
36
null
null