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
keera-studios/hsQt
Qtc/Enums/Core/QDataStream.hs
bsd-2-clause
ieQDataStreamStatus :: Int -> QDataStreamStatus ieQDataStreamStatus x = QEnum (CQDataStreamStatus x)
100
ieQDataStreamStatus :: Int -> QDataStreamStatus ieQDataStreamStatus x = QEnum (CQDataStreamStatus x)
100
ieQDataStreamStatus x = QEnum (CQDataStreamStatus x)
52
false
true
0
7
10
27
13
14
null
null
DataStewardshipPortal/ds-form-engine
FormElement/Updating.hs
apache-2.0
applyRules :: FormElement -> FormContext -> IO () applyRules element context = mapM_ (applyRule element context) (rules element)
128
applyRules :: FormElement -> FormContext -> IO () applyRules element context = mapM_ (applyRule element context) (rules element)
128
applyRules element context = mapM_ (applyRule element context) (rules element)
78
false
true
0
9
17
53
24
29
null
null
paolino/hifs
IFS/Density.hs
bsd-3-clause
densityIO :: Int -> (V Int, V Int) -> [V Int] -> IO (Density (V Int)) densityIO time dlur xs = do m <- newMVar False forkIO $ threadDelay time >> swapMVar m True >> return () arr <- accumArrayBounded m (+) 0 dlur. map (flip (,) 1) . filter (inRange dlur) $ xs -- :: IO (IOArray (V Int) Int) ...
353
densityIO :: Int -> (V Int, V Int) -> [V Int] -> IO (Density (V Int)) densityIO time dlur xs = do m <- newMVar False forkIO $ threadDelay time >> swapMVar m True >> return () arr <- accumArrayBounded m (+) 0 dlur. map (flip (,) 1) . filter (inRange dlur) $ xs -- :: IO (IOArray (V Int) Int) ...
353
densityIO time dlur xs = do m <- newMVar False forkIO $ threadDelay time >> swapMVar m True >> return () arr <- accumArrayBounded m (+) 0 dlur. map (flip (,) 1) . filter (inRange dlur) $ xs -- :: IO (IOArray (V Int) Int) assocs `fmap` unsafeFreeze arr
283
false
true
0
14
96
167
80
87
null
null
brendanhay/gogol
gogol-bigtableadmin/gen/Network/Google/BigtableAdmin/Types/Product.hs
mpl-2.0
-- | The list of requested clusters. lcrClusters :: Lens' ListClustersResponse [Cluster] lcrClusters = lens _lcrClusters (\ s a -> s{_lcrClusters = a}) . _Default . _Coerce
186
lcrClusters :: Lens' ListClustersResponse [Cluster] lcrClusters = lens _lcrClusters (\ s a -> s{_lcrClusters = a}) . _Default . _Coerce
149
lcrClusters = lens _lcrClusters (\ s a -> s{_lcrClusters = a}) . _Default . _Coerce
97
true
true
0
11
40
53
28
25
null
null
dec9ue/jhc_copygc
src/FrontEnd/Representation.hs
gpl-2.0
-- | Type application, enforcing the invariant that there be no fully-applied 'tArrow's tAp :: Type -> Type -> Type tAp (TAp c@TCon{} a) b | c == tArrow = TArrow a b
165
tAp :: Type -> Type -> Type tAp (TAp c@TCon{} a) b | c == tArrow = TArrow a b
77
tAp (TAp c@TCon{} a) b | c == tArrow = TArrow a b
49
true
true
4
8
32
61
28
33
null
null
ekr/tamarin-prover
src/Main/TheoryLoader.hs
gpl-3.0
addMessageDeductionRuleVariantsDiff :: OpenDiffTheory -> IO OpenDiffTheory addMessageDeductionRuleVariantsDiff thy0 | enableBP msig = addIntruderVariantsDiff [ mkDhIntruderVariants , mkBpIntruderVariants ] | enableDH msig = addIntruderVariantsDiff [ mkDhIntruderVariants ]...
775
addMessageDeductionRuleVariantsDiff :: OpenDiffTheory -> IO OpenDiffTheory addMessageDeductionRuleVariantsDiff thy0 | enableBP msig = addIntruderVariantsDiff [ mkDhIntruderVariants , mkBpIntruderVariants ] | enableDH msig = addIntruderVariantsDiff [ mkDhIntruderVariants ]...
775
addMessageDeductionRuleVariantsDiff thy0 | enableBP msig = addIntruderVariantsDiff [ mkDhIntruderVariants , mkBpIntruderVariants ] | enableDH msig = addIntruderVariantsDiff [ mkDhIntruderVariants ] | otherwise = return $ addIntrRuleLabels thy where msig ...
700
false
true
2
14
195
167
82
85
null
null
LukaHorvat/Flow
src/Flow/Game.hs
mit
runGame :: Diff s u => Game s u a -> s -> (s, Report u, a) runGame (Game g) s = let ((a, us), s') = runIdentity (runStateT (runWriterT g) s) in (s', us, a)
155
runGame :: Diff s u => Game s u a -> s -> (s, Report u, a) runGame (Game g) s = let ((a, us), s') = runIdentity (runStateT (runWriterT g) s) in (s', us, a)
155
runGame (Game g) s = let ((a, us), s') = runIdentity (runStateT (runWriterT g) s) in (s', us, a)
96
false
true
0
13
35
108
56
52
null
null
wavewave/lhc-analysis-collection
lib/HEP/Util/Format.hs
gpl-3.0
log10 x = log x / log 10
24
log10 x = log x / log 10
24
log10 x = log x / log 10
24
false
false
0
6
7
19
8
11
null
null
keni7385/hmlf
src/LinearReg.hs
lgpl-3.0
- |Product of two lists prdLists xs ys = zipWith (*) xs ys
59
prdLists xs ys = zipWith (*) xs ys
34
prdLists xs ys = zipWith (*) xs ys
34
true
false
0
8
13
37
17
20
null
null
xenog/haskoin
src/Network/Haskoin/Script/Evaluator.hs
unlicense
popBool :: StackOperation Bool popBool = decodeBool <$> popStack
64
popBool :: StackOperation Bool popBool = decodeBool <$> popStack
64
popBool = decodeBool <$> popStack
33
false
true
2
6
8
25
10
15
null
null
elieux/ghc
compiler/typecheck/TcEvidence.hs
bsd-3-clause
mkTcNthCo :: Int -> TcCoercion -> TcCoercion mkTcNthCo n (TcRefl r ty) = TcRefl r (tyConAppArgN n ty)
101
mkTcNthCo :: Int -> TcCoercion -> TcCoercion mkTcNthCo n (TcRefl r ty) = TcRefl r (tyConAppArgN n ty)
101
mkTcNthCo n (TcRefl r ty) = TcRefl r (tyConAppArgN n ty)
56
false
true
0
7
17
45
22
23
null
null
silkapp/xmlhtml-xpath
src/Xml/XPath/Evaluator.hs
bsd-3-clause
run :: (ArrowF [] (~>), ArrowChoice (~>), ArrowPlus (~>)) => Text -> Value ~> Value run path = case parser path of Left e -> error (show e) Right (XPath e) -> arr snd . expression e . (const 1 &&& id)
219
run :: (ArrowF [] (~>), ArrowChoice (~>), ArrowPlus (~>)) => Text -> Value ~> Value run path = case parser path of Left e -> error (show e) Right (XPath e) -> arr snd . expression e . (const 1 &&& id)
219
run path = case parser path of Left e -> error (show e) Right (XPath e) -> arr snd . expression e . (const 1 &&& id)
135
false
true
0
12
60
123
60
63
null
null
vladimir-ipatov/ganeti
src/Ganeti/Hs2Py/OpDoc.hs
gpl-2.0
opClusterVerifyGroup :: String opClusterVerifyGroup = "Run verify on a node group from the cluster.\n\ \\n\ \ @type skip_checks: C{list}\n\ \ @ivar skip_checks: steps to be skipped from the verify process; this\n\ \ needs to be a subset of\n\ \ L{constants.VERIFY_OPTIONAL_CHE...
413
opClusterVerifyGroup :: String opClusterVerifyGroup = "Run verify on a node group from the cluster.\n\ \\n\ \ @type skip_checks: C{list}\n\ \ @ivar skip_checks: steps to be skipped from the verify process; this\n\ \ needs to be a subset of\n\ \ L{constants.VERIFY_OPTIONAL_CHE...
413
opClusterVerifyGroup = "Run verify on a node group from the cluster.\n\ \\n\ \ @type skip_checks: C{list}\n\ \ @ivar skip_checks: steps to be skipped from the verify process; this\n\ \ needs to be a subset of\n\ \ L{constants.VERIFY_OPTIONAL_CHECKS}; currently\n\ \ ...
382
false
true
0
4
110
11
6
5
null
null
AlexanderPankiv/ghc
compiler/prelude/TysPrim.hs
bsd-3-clause
smallArrayPrimTyConName = mkPrimTc (fsLit "SmallArray#") smallArrayPrimTyConKey smallArrayPrimTyCon
105
smallArrayPrimTyConName = mkPrimTc (fsLit "SmallArray#") smallArrayPrimTyConKey smallArrayPrimTyCon
105
smallArrayPrimTyConName = mkPrimTc (fsLit "SmallArray#") smallArrayPrimTyConKey smallArrayPrimTyCon
105
false
false
0
7
12
19
9
10
null
null
vaporware/carnival
Model/User.hs
mit
decodeText :: FromJSON a => Text -> Either Text a decodeText = first pack . eitherDecode . textToLbs
100
decodeText :: FromJSON a => Text -> Either Text a decodeText = first pack . eitherDecode . textToLbs
100
decodeText = first pack . eitherDecode . textToLbs
50
false
true
0
8
17
44
19
25
null
null
mettekou/ghc
compiler/typecheck/TcRnTypes.hs
bsd-3-clause
mkNonCanonicalCt :: Ct -> Ct mkNonCanonicalCt ct = CNonCanonical { cc_ev = cc_ev ct }
85
mkNonCanonicalCt :: Ct -> Ct mkNonCanonicalCt ct = CNonCanonical { cc_ev = cc_ev ct }
85
mkNonCanonicalCt ct = CNonCanonical { cc_ev = cc_ev ct }
56
false
true
0
7
14
29
15
14
null
null
chrra/iCalendar
Text/ICalendar/Parser/Parameters.hs
bsd-3-clause
parseFBType "BUSY" = Busy
37
parseFBType "BUSY" = Busy
37
parseFBType "BUSY" = Busy
37
false
false
0
5
15
9
4
5
null
null
linas/atomspace
tests/haskell/executionTestLib/src/OpenCog/Lib.hs
agpl-3.0
somePredicate :: Atom -> TruthVal somePredicate (Link "ListLink" [(Node _ _ tv)] _) = tv
88
somePredicate :: Atom -> TruthVal somePredicate (Link "ListLink" [(Node _ _ tv)] _) = tv
88
somePredicate (Link "ListLink" [(Node _ _ tv)] _) = tv
54
false
true
0
10
14
41
21
20
null
null
dmvianna/haskellbook
src/Ch16-FunctorQuickCheck.hs
unlicense
genThree' :: (Arbitrary a, Arbitrary b) => Gen (Three' a b) genThree' = do a <- arbitrary b <- arbitrary c <- arbitrary return $ Three' a b c
161
genThree' :: (Arbitrary a, Arbitrary b) => Gen (Three' a b) genThree' = do a <- arbitrary b <- arbitrary c <- arbitrary return $ Three' a b c
161
genThree' = do a <- arbitrary b <- arbitrary c <- arbitrary return $ Three' a b c
89
false
true
0
8
48
72
34
38
null
null
vivekmallick/bugreport
BugListDefn.hs
gpl-3.0
lstStrOfBugD :: BugDetail -> [String] lstStrOfBugD b = [(sfBugid b), (sfSoft b), (sfdescs b), (sfdescl b), (sfsever b), (sfstate b)]
222
lstStrOfBugD :: BugDetail -> [String] lstStrOfBugD b = [(sfBugid b), (sfSoft b), (sfdescs b), (sfdescl b), (sfsever b), (sfstate b)]
222
lstStrOfBugD b = [(sfBugid b), (sfSoft b), (sfdescs b), (sfdescl b), (sfsever b), (sfstate b)]
184
false
true
0
7
109
75
41
34
null
null
meteogrid/bindings-gdal
tests/GDALIOSpec.hs
bsd-3-clause
it_can_foldl :: forall d. GDALType d => DataType d -> (Int -> Value d) -> SpecWith (Arg (IO ())) it_can_foldl dt f = forM_ [[], [("TILED","YES")]] $ \opts -> do let name = "can foldl with options " ++ show opts ++ " " ++ typeName typeName = show dt describe name $ do withDir "all valid values" $ \t...
1,623
it_can_foldl :: forall d. GDALType d => DataType d -> (Int -> Value d) -> SpecWith (Arg (IO ())) it_can_foldl dt f = forM_ [[], [("TILED","YES")]] $ \opts -> do let name = "can foldl with options " ++ show opts ++ " " ++ typeName typeName = show dt describe name $ do withDir "all valid values" $ \t...
1,623
it_can_foldl dt f = forM_ [[], [("TILED","YES")]] $ \opts -> do let name = "can foldl with options " ++ show opts ++ " " ++ typeName typeName = show dt describe name $ do withDir "all valid values" $ \tmpDir -> do let p = joinPath [tmpDir, "test.tif"] sz = 200 :+: 205 ds <- create...
1,522
false
true
0
26
513
719
354
365
null
null
trskop/cabal
Cabal/Distribution/Simple/BuildTarget.hs
bsd-3-clause
matchPlus a@(ExactMatch _ _ ) (InexactMatch _ _ ) = a
60
matchPlus a@(ExactMatch _ _ ) (InexactMatch _ _ ) = a
60
matchPlus a@(ExactMatch _ _ ) (InexactMatch _ _ ) = a
60
false
false
0
8
17
30
15
15
null
null
sapek/pandoc
src/Text/Pandoc/Pretty.hs
gpl-2.0
-- | Wraps a 'Doc' in double quotes. doubleQuotes :: Doc -> Doc doubleQuotes = inside (char '"') (char '"')
107
doubleQuotes :: Doc -> Doc doubleQuotes = inside (char '"') (char '"')
70
doubleQuotes = inside (char '"') (char '"')
43
true
true
0
7
19
33
17
16
null
null
ganeti/ganeti
src/Ganeti/Constants.hs
bsd-2-clause
-- * idisk* constants are used in opcodes, to create/change disks idiskAdopt :: String idiskAdopt = "adopt"
108
idiskAdopt :: String idiskAdopt = "adopt"
41
idiskAdopt = "adopt"
20
true
true
0
4
17
12
7
5
null
null
parsonsmatt/lambda
src/Lambda/Untyped/Parser.hs
bsd-3-clause
pretty (App l@Var{} r@Var{}) = pretty l <> " " <> pretty r
58
pretty (App l@Var{} r@Var{}) = pretty l <> " " <> pretty r
58
pretty (App l@Var{} r@Var{}) = pretty l <> " " <> pretty r
58
false
false
2
8
12
47
22
25
null
null
sdzivanovich/cs1699_deliverable5
Main.hs
bsd-3-clause
---------------- foldl1 properties ---------------- -- foldl1 is equivalent to foldl with a starting identity value. prop_foldl1Equivalence :: [Int] -> Property prop_foldl1Equivalence xs = (not . My.null) xs ==> My.foldl1 (+) xs == My.foldl (+) 0 xs
250
prop_foldl1Equivalence :: [Int] -> Property prop_foldl1Equivalence xs = (not . My.null) xs ==> My.foldl1 (+) xs == My.foldl (+) 0 xs
132
prop_foldl1Equivalence xs = (not . My.null) xs ==> My.foldl1 (+) xs == My.foldl (+) 0 xs
88
true
true
0
10
36
68
35
33
null
null
ComputationWithBoundedResources/ara-inference
doc/tpdb_trs/Haskell/basic_haskell/enumFromTo_1.hs
mit
esEsOrdering GT LT = MyFalse
28
esEsOrdering GT LT = MyFalse
28
esEsOrdering GT LT = MyFalse
28
false
false
0
5
4
11
5
6
null
null
albertov/hs-mapnik
bindings/src/Mapnik/Bindings/Layer.hs
bsd-3-clause
getMaxExtent :: Layer -> IO (Maybe Box) getMaxExtent l = newMaybe $ \(has,p) -> [C.block|void { auto res = $fptr-ptr:(layer *l)->maximum_extent(); if (res) { *$(bbox *p) = *res; *$(int *has) = 1; } else { *$(int *has) = 0; } }|]
287
getMaxExtent :: Layer -> IO (Maybe Box) getMaxExtent l = newMaybe $ \(has,p) -> [C.block|void { auto res = $fptr-ptr:(layer *l)->maximum_extent(); if (res) { *$(bbox *p) = *res; *$(int *has) = 1; } else { *$(int *has) = 0; } }|]
287
getMaxExtent l = newMaybe $ \(has,p) -> [C.block|void { auto res = $fptr-ptr:(layer *l)->maximum_extent(); if (res) { *$(bbox *p) = *res; *$(int *has) = 1; } else { *$(int *has) = 0; } }|]
247
false
true
2
9
99
54
28
26
null
null
bergmark/purescript
src/Language/PureScript/Optimizer/Common.hs
mit
isUsed :: String -> JS -> Bool isUsed var1 = everythingOnJS (||) check where check :: JS -> Bool check (JSVar var2) | var1 == var2 = True check (JSAssignment target _) | var1 == targetVariable target = True check _ = False
232
isUsed :: String -> JS -> Bool isUsed var1 = everythingOnJS (||) check where check :: JS -> Bool check (JSVar var2) | var1 == var2 = True check (JSAssignment target _) | var1 == targetVariable target = True check _ = False
232
isUsed var1 = everythingOnJS (||) check where check :: JS -> Bool check (JSVar var2) | var1 == var2 = True check (JSAssignment target _) | var1 == targetVariable target = True check _ = False
201
false
true
0
9
52
102
49
53
null
null
ghcjs/jsaddle-dom
src/JSDOM/Generated/SVGStyleElement.hs
mit
-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement.media Mozilla SVGStyleElement.media documentation> getMedia :: (MonadDOM m, FromJSString result) => SVGStyleElement -> m result getMedia self = liftDOM ((self ^. js "media") >>= fromJSValUnchecked)
280
getMedia :: (MonadDOM m, FromJSString result) => SVGStyleElement -> m result getMedia self = liftDOM ((self ^. js "media") >>= fromJSValUnchecked)
157
getMedia self = liftDOM ((self ^. js "media") >>= fromJSValUnchecked)
71
true
true
0
10
38
62
30
32
null
null
lspitzner/brittany
data/Test309.hs
agpl-3.0
func = do let foo = if | Constuctoooooooooooooooooooooooooooooooooooor `elem` artics -- TODO -> max (defLen - 0.2) -- TODO (defLen * 0.8) | otherwise -> max (defLen - 0.05) (defLen * 0.95) -- TODO return True
318
func = do let foo = if | Constuctoooooooooooooooooooooooooooooooooooor `elem` artics -- TODO -> max (defLen - 0.2) -- TODO (defLen * 0.8) | otherwise -> max (defLen - 0.05) (defLen * 0.95) -- TODO return True
318
func = do let foo = if | Constuctoooooooooooooooooooooooooooooooooooor `elem` artics -- TODO -> max (defLen - 0.2) -- TODO (defLen * 0.8) | otherwise -> max (defLen - 0.05) (defLen * 0.95) -- TODO return True
318
false
false
1
15
146
90
44
46
null
null
HJvT/com
System/Win32/Com/Automation.hs
bsd-3-clause
function1 :: Member -> [VarIn] -> ArgOut a1 -> IDispatch i -> IO a1 function1 member args argout obj = do dispid <- obj # getMemberID member catchMethError member (functionID1 dispid args argout obj)
245
function1 :: Member -> [VarIn] -> ArgOut a1 -> IDispatch i -> IO a1 function1 member args argout obj = do dispid <- obj # getMemberID member catchMethError member (functionID1 dispid args argout obj)
245
function1 member args argout obj = do dispid <- obj # getMemberID member catchMethError member (functionID1 dispid args argout obj)
137
false
true
0
9
79
82
38
44
null
null
DougBurke/swish
src/Swish/RDF/ProofContext.hs
lgpl-2.1
rdfsa37 :: RDFFormula rdfsa37 = makeFormula scopeRDFS "a37" "rdfs:ContainerMembershipProperty rdfs:subClassOf rdf:Property ."
129
rdfsa37 :: RDFFormula rdfsa37 = makeFormula scopeRDFS "a37" "rdfs:ContainerMembershipProperty rdfs:subClassOf rdf:Property ."
129
rdfsa37 = makeFormula scopeRDFS "a37" "rdfs:ContainerMembershipProperty rdfs:subClassOf rdf:Property ."
107
false
true
0
5
15
19
9
10
null
null
FranklinChen/Idris-dev
src/Idris/AbsSyntaxTree.hs
bsd-3-clause
mapPTermFC f g (PProof tacs) = PProof (map (fmap (mapPTermFC f g)) tacs)
89
mapPTermFC f g (PProof tacs) = PProof (map (fmap (mapPTermFC f g)) tacs)
89
mapPTermFC f g (PProof tacs) = PProof (map (fmap (mapPTermFC f g)) tacs)
89
false
false
0
11
29
44
21
23
null
null
acowley/language-c
src/Language/C/Parser/Tokens.hs
bsd-3-clause
posLenOfTok (CTokStar pos ) = pos
38
posLenOfTok (CTokStar pos ) = pos
38
posLenOfTok (CTokStar pos ) = pos
38
false
false
0
6
10
16
7
9
null
null
mydaum/cabal
cabal-install/Distribution/Solver/Modular/Package.hs
bsd-3-clause
setupPP :: PackagePath -> Bool setupPP (PackagePath _ns (QualSetup _)) = True
77
setupPP :: PackagePath -> Bool setupPP (PackagePath _ns (QualSetup _)) = True
77
setupPP (PackagePath _ns (QualSetup _)) = True
46
false
true
0
11
11
38
17
21
null
null
vTurbine/ghc
compiler/utils/FastString.hs
bsd-3-clause
-- | Create a 'FastString' from an existing 'ForeignPtr'; the difference -- between this and 'mkFastStringBytes' is that we don't have to copy -- the bytes if the string is new to the table. mkFastStringByteString :: ByteString -> FastString mkFastStringByteString bs = inlinePerformIO $ BS.unsafeUseAsCStringL...
509
mkFastStringByteString :: ByteString -> FastString mkFastStringByteString bs = inlinePerformIO $ BS.unsafeUseAsCStringLen bs $ \(ptr, len) -> do let ptr' = castPtr ptr mkFastStringWith (mkNewFastStringByteString bs ptr' len) ptr' len -- | Creates a UTF-8 encoded 'FastString' from a 'String'
318
mkFastStringByteString bs = inlinePerformIO $ BS.unsafeUseAsCStringLen bs $ \(ptr, len) -> do let ptr' = castPtr ptr mkFastStringWith (mkNewFastStringByteString bs ptr' len) ptr' len -- | Creates a UTF-8 encoded 'FastString' from a 'String'
267
true
true
0
12
99
78
40
38
null
null
sdiehl/ghc
compiler/GHC/Cmm/CLabel.hs
bsd-3-clause
externallyVisibleCLabel (IdLabel name _ info) = isExternalName name && externallyVisibleIdLabel info
102
externallyVisibleCLabel (IdLabel name _ info) = isExternalName name && externallyVisibleIdLabel info
102
externallyVisibleCLabel (IdLabel name _ info) = isExternalName name && externallyVisibleIdLabel info
102
false
false
0
7
12
29
13
16
null
null
futtetennista/IntroductionToFunctionalProgramming
PiH/src/Countdown.hs
mit
valid' :: Op -> Int -> Int -> Bool -- x + y == y + x valid' Add x y = x <= y
78
valid' :: Op -> Int -> Int -> Bool valid' Add x y = x <= y
60
valid' Add x y = x <= y
25
true
true
2
9
26
43
20
23
null
null
narurien/ganeti-ceph
src/Ganeti/HTools/Cluster.hs
gpl-2.0
-- | Run evacuation for a single instance. -- -- /Note:/ this function should correctly execute both intra-group -- evacuations (in all modes) and inter-group evacuations (in the -- 'ChangeAll' mode). Of course, this requires that the correct list -- of target nodes is passed. nodeEvacInstance :: Node.List -- ^...
1,101
nodeEvacInstance :: Node.List -- ^ The node list (cluster-wide) -> Instance.List -- ^ Instance list (cluster-wide) -> EvacMode -- ^ The evacuation mode -> Instance.Instance -- ^ The instance to be evacuated -> Gdx -- ...
823
nodeEvacInstance nl il mode inst@(Instance.Instance {Instance.diskTemplate = dt@DTDiskless}) gdx avail_nodes = failOnSecondaryChange mode dt >> evacOneNodeOnly nl il inst gdx avail_nodes
275
true
true
5
6
398
123
74
49
null
null
ctford/Idris-Elba-dev
src/IRTS/Java/JTypes.hs
bsd-3-clause
box (PrimType LongT ) = RefType . ClassRefType $ ClassType [(Ident "Long", [])]
80
box (PrimType LongT ) = RefType . ClassRefType $ ClassType [(Ident "Long", [])]
80
box (PrimType LongT ) = RefType . ClassRefType $ ClassType [(Ident "Long", [])]
80
false
false
0
9
13
41
20
21
null
null
tittoassini/typed
test/Spec.hs
bsd-3-clause
sha3DigestTests = testGroup "SHA3 Digest Tests" [tst [] [0xa7, 0xff, 0xc6], tst [48, 49, 50, 51] [0x33, 0xbc, 0xc2]] where tst inp out = testCase (unwords ["SHA3", show inp]) $ B.pack out @?= sha3_256 3 (B.pack inp)
230
sha3DigestTests = testGroup "SHA3 Digest Tests" [tst [] [0xa7, 0xff, 0xc6], tst [48, 49, 50, 51] [0x33, 0xbc, 0xc2]] where tst inp out = testCase (unwords ["SHA3", show inp]) $ B.pack out @?= sha3_256 3 (B.pack inp)
230
sha3DigestTests = testGroup "SHA3 Digest Tests" [tst [] [0xa7, 0xff, 0xc6], tst [48, 49, 50, 51] [0x33, 0xbc, 0xc2]] where tst inp out = testCase (unwords ["SHA3", show inp]) $ B.pack out @?= sha3_256 3 (B.pack inp)
230
false
false
0
11
51
119
61
58
null
null
avieth/diplomacy
Diplomacy/SVGMap.hs
bsd-3-clause
provinceElement (Normal BarentsSea) = S.polygon ! A.points "540 0 535,9 530,6 517,19 516,33 513,38 513,23 507,20 505,26 499,33 492,48 495,58 488,60 479,57 477,55 481,50 473,43 466,45 472,62 478,66 478,74 472,72 468,74 457,91 469,100 467,106 462,109 444,101 442,110 447,115 454,119 452,122 434,118 426,103 426,94 414,88 4...
472
provinceElement (Normal BarentsSea) = S.polygon ! A.points "540 0 535,9 530,6 517,19 516,33 513,38 513,23 507,20 505,26 499,33 492,48 495,58 488,60 479,57 477,55 481,50 473,43 466,45 472,62 478,66 478,74 472,72 468,74 457,91 469,100 467,106 462,109 444,101 442,110 447,115 454,119 452,122 434,118 426,103 426,94 414,88 4...
472
provinceElement (Normal BarentsSea) = S.polygon ! A.points "540 0 535,9 530,6 517,19 516,33 513,38 513,23 507,20 505,26 499,33 492,48 495,58 488,60 479,57 477,55 481,50 473,43 466,45 472,62 478,66 478,74 472,72 468,74 457,91 469,100 467,106 462,109 444,101 442,110 447,115 454,119 452,122 434,118 426,103 426,94 414,88 4...
472
false
false
0
7
65
27
12
15
null
null
expipiplus1/vulkan
src/Vulkan/Core10/CommandBufferBuilding.hs
bsd-3-clause
-- | vkCmdDrawIndexedIndirect - Draw primitives with indirect parameters and -- indexed vertices -- -- = Description -- -- 'cmdDrawIndexedIndirect' behaves similarly to 'cmdDrawIndexed' except -- that the parameters are read by the device from a buffer during -- execution. @drawCount@ draws are executed by the command,...
55,062
cmdDrawIndexedIndirect :: forall io . (MonadIO io) => -- | @commandBuffer@ is the command buffer into which the command is -- recorded. CommandBuffer -> -- | @buffer@ is the buffer containing draw p...
1,483
cmdDrawIndexedIndirect commandBuffer buffer offset drawCount stride = liftIO $ do let vkCmdDrawIndexedIndirectPtr = pVkCmdDrawIndexedIndirect (case commandBuffer of CommandBuffer{deviceCmds} -> deviceCmds) unless (vkCmdDrawIndexedIndirectPtr /= nullFunPtr) $ throwIO $ IOError Nothing InvalidArgument "" "The fun...
639
true
true
5
13
8,631
1,097
1,010
87
null
null
rumblesan/proviz
src/Gfx/TextRendering.hs
bsd-3-clause
renderText :: Int -> Int -> TextRenderer -> String -> IO () renderText xpos ypos renderer strings = let (Savebuffer fbo _ _ _ _) = outbuffer renderer height = textAreaHeight renderer in do GL.bindFramebuffer Framebuffer $= fbo renderCharacters xpos (height - ypos) renderer strings printErro...
322
renderText :: Int -> Int -> TextRenderer -> String -> IO () renderText xpos ypos renderer strings = let (Savebuffer fbo _ _ _ _) = outbuffer renderer height = textAreaHeight renderer in do GL.bindFramebuffer Framebuffer $= fbo renderCharacters xpos (height - ypos) renderer strings printErro...
322
renderText xpos ypos renderer strings = let (Savebuffer fbo _ _ _ _) = outbuffer renderer height = textAreaHeight renderer in do GL.bindFramebuffer Framebuffer $= fbo renderCharacters xpos (height - ypos) renderer strings printErrors
262
false
true
0
11
74
112
52
60
null
null
imalsogreg/hackage-matrix-builder
src/Api/Package.hs
gpl-3.0
loadPackageSummary :: (MonadIO m, MonadConfig m) => m (Set PackageName) loadPackageSummary = fmap (Set.fromList . fromMaybe []) . fmap (fmap (map summaryName) . decode) . liftIO . lazyReadFileP =<< asksConfig packagesJson
231
loadPackageSummary :: (MonadIO m, MonadConfig m) => m (Set PackageName) loadPackageSummary = fmap (Set.fromList . fromMaybe []) . fmap (fmap (map summaryName) . decode) . liftIO . lazyReadFileP =<< asksConfig packagesJson
231
loadPackageSummary = fmap (Set.fromList . fromMaybe []) . fmap (fmap (map summaryName) . decode) . liftIO . lazyReadFileP =<< asksConfig packagesJson
159
false
true
4
10
40
96
45
51
null
null
iquiw/cabal-delete
src/CabalDelete.hs
mit
options :: [OptDescr (CDConfig -> Maybe CDConfig)] options = [ Option "R" ["recursive"] (NoArg $ \cfg -> return $ cfg { cdRecursive = True }) "delete packages recuresively" , Option "a" ["all"] (NoArg $ \cfg -> return $ cfg { cdScope = ScopeAll }) "process both user and global packages"...
1,413
options :: [OptDescr (CDConfig -> Maybe CDConfig)] options = [ Option "R" ["recursive"] (NoArg $ \cfg -> return $ cfg { cdRecursive = True }) "delete packages recuresively" , Option "a" ["all"] (NoArg $ \cfg -> return $ cfg { cdScope = ScopeAll }) "process both user and global packages"...
1,413
options = [ Option "R" ["recursive"] (NoArg $ \cfg -> return $ cfg { cdRecursive = True }) "delete packages recuresively" , Option "a" ["all"] (NoArg $ \cfg -> return $ cfg { cdScope = ScopeAll }) "process both user and global packages" , Option "g" ["global"] (NoArg $ \cfg -...
1,362
false
true
0
12
413
408
221
187
null
null
mdsteele/fallback
src/Fallback/Scenario/Script/Base.hs
gpl-3.0
getAllEnemyMonsters :: (FromAreaEffect f) => Script f [Grid.Entry Monster] getAllEnemyMonsters = do monsters <- areaGet arsMonsters return $ filter (not . monstIsAlly . Grid.geValue) $ Grid.entries monsters -- | Get the 'HitTarget' for each conscious party member and each living ally -- monster (in no particular o...
326
getAllEnemyMonsters :: (FromAreaEffect f) => Script f [Grid.Entry Monster] getAllEnemyMonsters = do monsters <- areaGet arsMonsters return $ filter (not . monstIsAlly . Grid.geValue) $ Grid.entries monsters -- | Get the 'HitTarget' for each conscious party member and each living ally -- monster (in no particular o...
326
getAllEnemyMonsters = do monsters <- areaGet arsMonsters return $ filter (not . monstIsAlly . Grid.geValue) $ Grid.entries monsters -- | Get the 'HitTarget' for each conscious party member and each living ally -- monster (in no particular order).
251
false
true
0
12
51
77
38
39
null
null
skatenerd/renderer
src/Lib.hs
bsd-3-clause
translateV :: Vector -> Vector -> Vector translateV v1 v2 = Vector { vX = (vX v1) + (vX v2), vY = (vY v1) + (vY v2), vZ = (vZ v1) + (vZ v2) }
157
translateV :: Vector -> Vector -> Vector translateV v1 v2 = Vector { vX = (vX v1) + (vX v2), vY = (vY v1) + (vY v2), vZ = (vZ v1) + (vZ v2) }
157
translateV v1 v2 = Vector { vX = (vX v1) + (vX v2), vY = (vY v1) + (vY v2), vZ = (vZ v1) + (vZ v2) }
116
false
true
0
10
50
96
50
46
null
null
fpco/schoolofhaskell
soh-client/src/View/Build.hs
mit
buildTab (Building _ UpdateStatusRequiredRestart) = "Required a backend restart.."
82
buildTab (Building _ UpdateStatusRequiredRestart) = "Required a backend restart.."
82
buildTab (Building _ UpdateStatusRequiredRestart) = "Required a backend restart.."
82
false
false
0
6
8
18
8
10
null
null
CIFASIS/QuickFuzz
src/Test/QuickFuzz/Gen/Base/Regex.hs
gpl-3.0
shrinkRegex' (PGroup i p) = [p] ++ [PGroup i' p' | i' <- shrinkInt i, p' <- shrinkRegex' p]
91
shrinkRegex' (PGroup i p) = [p] ++ [PGroup i' p' | i' <- shrinkInt i, p' <- shrinkRegex' p]
91
shrinkRegex' (PGroup i p) = [p] ++ [PGroup i' p' | i' <- shrinkInt i, p' <- shrinkRegex' p]
91
false
false
0
9
18
54
26
28
null
null
manpages/blog
blog.hs
mit
cfg :: BlogCfg cfg = BlogCfg { connection = cc, blog_spec = bb, pathFn = ff }
77
cfg :: BlogCfg cfg = BlogCfg { connection = cc, blog_spec = bb, pathFn = ff }
77
cfg = BlogCfg { connection = cc, blog_spec = bb, pathFn = ff }
62
false
true
0
7
16
38
20
18
null
null
Michaelt293/Lipid-Haskell
src/Lipid/Parsers/UnknownSn/Glycerophospholipid.hs
gpl-3.0
pgpOmegaP :: Parser (PGP OmegaPosition) pgpOmegaP = pgpP radylOmegaP
68
pgpOmegaP :: Parser (PGP OmegaPosition) pgpOmegaP = pgpP radylOmegaP
68
pgpOmegaP = pgpP radylOmegaP
28
false
true
0
7
8
23
11
12
null
null
zaxtax/gametheory
GameTheory.hs
mit
defect = Just (toDyn (Discrete True))
37
defect = Just (toDyn (Discrete True))
37
defect = Just (toDyn (Discrete True))
37
false
false
1
9
5
24
10
14
null
null
rahulmutt/ghcvm
compiler/Eta/Utils/GraphOps.hs
bsd-3-clause
freezeAllInGraph :: (Uniquable k) => Graph k cls color -> Graph k cls color freezeAllInGraph graph = foldr freezeNode graph $ map nodeId $ nonDetEltsUFM $ graphMap graph
234
freezeAllInGraph :: (Uniquable k) => Graph k cls color -> Graph k cls color freezeAllInGraph graph = foldr freezeNode graph $ map nodeId $ nonDetEltsUFM $ graphMap graph
233
freezeAllInGraph graph = foldr freezeNode graph $ map nodeId $ nonDetEltsUFM $ graphMap graph
133
false
true
0
8
92
64
30
34
null
null
elieux/ghc
compiler/typecheck/TcEvidence.hs
bsd-3-clause
getTcCoVar_maybe _ = Nothing
40
getTcCoVar_maybe _ = Nothing
40
getTcCoVar_maybe _ = Nothing
40
false
false
0
5
15
9
4
5
null
null
abhinav/tbr
app/main.hs
mit
readConfiguration :: Argument -> IO (Command, Configuration) readConfiguration Argument{..} = runScriptT . scriptIO $ do home <- getHomeDirectory let defaultTarget = home </> ".tbr" </> "tbr.txt" config <- Config.load [Config.Optional "$(HOME)/.tbr/config"] (argCommand,) <$> (Configuration <$>...
504
readConfiguration :: Argument -> IO (Command, Configuration) readConfiguration Argument{..} = runScriptT . scriptIO $ do home <- getHomeDirectory let defaultTarget = home </> ".tbr" </> "tbr.txt" config <- Config.load [Config.Optional "$(HOME)/.tbr/config"] (argCommand,) <$> (Configuration <$>...
504
readConfiguration Argument{..} = runScriptT . scriptIO $ do home <- getHomeDirectory let defaultTarget = home </> ".tbr" </> "tbr.txt" config <- Config.load [Config.Optional "$(HOME)/.tbr/config"] (argCommand,) <$> (Configuration <$> Config.lookupDefault defaultTarg...
443
false
true
0
13
127
120
59
61
null
null
joelwilliamson/validator
Maker.hs
agpl-3.0
(Maker f) <?> msg = Maker $ \t → case f t of r@(Right _) → r Left ((eMsg, source),prio) → Left ((msg <> " => " <> eMsg, source),prio) -- | Get the source position this tree was created from.
195
(Maker f) <?> msg = Maker $ \t → case f t of r@(Right _) → r Left ((eMsg, source),prio) → Left ((msg <> " => " <> eMsg, source),prio) -- | Get the source position this tree was created from.
195
(Maker f) <?> msg = Maker $ \t → case f t of r@(Right _) → r Left ((eMsg, source),prio) → Left ((msg <> " => " <> eMsg, source),prio) -- | Get the source position this tree was created from.
195
false
false
0
14
45
94
50
44
null
null
erochest/phaedrus
Phaedrus/Text/BetaCode.hs
apache-2.0
cchar '\x03be' = 'c'
20
cchar '\x03be' = 'c'
20
cchar '\x03be' = 'c'
20
false
false
0
5
3
9
4
5
null
null
Baranowski/SourceGraph
Parsing/ParseModule.hs
gpl-3.0
-- @-pattern getPat (PAsPat n p) = liftM (sMsMerge (onlyVar n)) $ getPat p
81
getPat (PAsPat n p) = liftM (sMsMerge (onlyVar n)) $ getPat p
68
getPat (PAsPat n p) = liftM (sMsMerge (onlyVar n)) $ getPat p
68
true
false
0
9
20
41
19
22
null
null
sdiehl/ghc
compiler/GHC/Hs/Types.hs
bsd-3-clause
hsWcScopedTvs (HsWC _ (XHsImplicitBndrs nec)) = noExtCon nec
60
hsWcScopedTvs (HsWC _ (XHsImplicitBndrs nec)) = noExtCon nec
60
hsWcScopedTvs (HsWC _ (XHsImplicitBndrs nec)) = noExtCon nec
60
false
false
0
9
7
26
12
14
null
null
madmann91/Ape
src/Ape/Check.hs
lgpl-3.0
enforceLambda :: Type -> Check Type enforceLambda t = enforce t isLambda $ "Lambda expected, got \'" ++ (prettyPrint0 t) ++ "\'"
128
enforceLambda :: Type -> Check Type enforceLambda t = enforce t isLambda $ "Lambda expected, got \'" ++ (prettyPrint0 t) ++ "\'"
128
enforceLambda t = enforce t isLambda $ "Lambda expected, got \'" ++ (prettyPrint0 t) ++ "\'"
92
false
true
0
8
21
50
22
28
null
null
distillation/language-core
Language/Core/Syntax.hs
gpl-3.0
match (Apply t _) (Apply t' _) = match t t'
43
match (Apply t _) (Apply t' _) = match t t'
43
match (Apply t _) (Apply t' _) = match t t'
43
false
false
1
7
10
34
15
19
null
null
Lemmih/haskell-tc
src/Language/Haskell/TypeCheck/Proof.hs
mit
isTrivial ProofSrc{} = True
27
isTrivial ProofSrc{} = True
27
isTrivial ProofSrc{} = True
27
false
false
0
6
3
13
6
7
null
null
ssaavedra/liquidhaskell
tests/todo/SubType.hs
bsd-3-clause
{-@ useless_proof :: x:{v:Int | v > 0} -> {v:Int | v > 0} @-} useless_proof :: Int -> Int useless_proof _ = 5
109
useless_proof :: Int -> Int useless_proof _ = 5
47
useless_proof _ = 5
19
true
true
0
7
23
25
11
14
null
null
centromere/cacophony
src/Crypto/Noise/DH/Curve448.hs
unlicense
bytesToPub :: ScrubbedBytes -> Maybe (PublicKey Curve448) bytesToPub = fmap PK448 . maybeCryptoError . C.publicKey
114
bytesToPub :: ScrubbedBytes -> Maybe (PublicKey Curve448) bytesToPub = fmap PK448 . maybeCryptoError . C.publicKey
114
bytesToPub = fmap PK448 . maybeCryptoError . C.publicKey
56
false
true
0
8
14
37
18
19
null
null
GaloisInc/galua
galua-rts/src/Galua/Util/SizedVector.hs
mit
getAll :: SizedVector a -> IO (SmallVec a) getAll (SizedVector ref) = do SizedVector' { .. } <- readIORef ref SMV.freeze (IOVector.take svCount svArray) -- | Pop the last elements from the stack.
203
getAll :: SizedVector a -> IO (SmallVec a) getAll (SizedVector ref) = do SizedVector' { .. } <- readIORef ref SMV.freeze (IOVector.take svCount svArray) -- | Pop the last elements from the stack.
203
getAll (SizedVector ref) = do SizedVector' { .. } <- readIORef ref SMV.freeze (IOVector.take svCount svArray) -- | Pop the last elements from the stack.
160
false
true
0
10
40
71
33
38
null
null
ghcjs/jsaddle-dom
src/JSDOM/Generated/Node.hs
mit
-- | <https://developer.mozilla.org/en-US/docs/Web/API/Node.isDefaultNamespace Mozilla Node.isDefaultNamespace documentation> isDefaultNamespace_ :: (MonadDOM m, IsNode self, ToJSString namespaceURI) => self -> Maybe namespaceURI -> m () isDefaultNamespace_ self namespaceURI ...
419
isDefaultNamespace_ :: (MonadDOM m, IsNode self, ToJSString namespaceURI) => self -> Maybe namespaceURI -> m () isDefaultNamespace_ self namespaceURI = liftDOM (void ((toNode self) ^. jsf "isDefaultNamespace" [toJSVal namespaceURI]))
292
isDefaultNamespace_ self namespaceURI = liftDOM (void ((toNode self) ^. jsf "isDefaultNamespace" [toJSVal namespaceURI]))
138
true
true
0
11
94
87
43
44
null
null
spechub/Hets
CASL/Kif2CASL.hs
gpl-2.0
sameArity :: Predsym -> Predsym -> Bool sameArity (Predsym m _) (Predsym n _) = m == n
86
sameArity :: Predsym -> Predsym -> Bool sameArity (Predsym m _) (Predsym n _) = m == n
86
sameArity (Predsym m _) (Predsym n _) = m == n
46
false
true
0
10
17
50
23
27
null
null
josuf107/xioqbot
src/Queue.hs
bsd-3-clause
withQueueQueue :: QueueModify (Seq.Seq UserOrTeam) withQueueQueue f = modify $ \q -> q { queueQueue = f (queueQueue q) }
120
withQueueQueue :: QueueModify (Seq.Seq UserOrTeam) withQueueQueue f = modify $ \q -> q { queueQueue = f (queueQueue q) }
120
withQueueQueue f = modify $ \q -> q { queueQueue = f (queueQueue q) }
69
false
true
0
11
19
51
26
25
null
null
themoritz/cabal
Cabal/Distribution/Backpack.hs
bsd-3-clause
-- | Inverse to 'dispModSubst'. parseOpenModuleSubst :: ReadP r OpenModuleSubst parseOpenModuleSubst = fmap Map.fromList . flip Parse.sepBy (Parse.char ',') $ parseOpenModuleSubstEntry
196
parseOpenModuleSubst :: ReadP r OpenModuleSubst parseOpenModuleSubst = fmap Map.fromList . flip Parse.sepBy (Parse.char ',') $ parseOpenModuleSubstEntry
164
parseOpenModuleSubst = fmap Map.fromList . flip Parse.sepBy (Parse.char ',') $ parseOpenModuleSubstEntry
116
true
true
4
7
32
52
22
30
null
null
quchen/stg
src/Stg/Marshal/FromStg.hs
bsd-3-clause
makeLocals :: [Var] -> [Value] -> Locals makeLocals freeVars freeVals = Env.makeLocals (zipWith Mapping freeVars freeVals)
122
makeLocals :: [Var] -> [Value] -> Locals makeLocals freeVars freeVals = Env.makeLocals (zipWith Mapping freeVars freeVals)
122
makeLocals freeVars freeVals = Env.makeLocals (zipWith Mapping freeVars freeVals)
81
false
true
0
7
15
49
24
25
null
null
lukexi/ghc
compiler/nativeGen/X86/Regs.hs
bsd-3-clause
lastfake = 21
14
lastfake = 21
14
lastfake = 21
14
false
false
0
4
3
6
3
3
null
null
peter-fogg/pardoc
src/Text/Pandoc/Writers/ICML.hs
gpl-2.0
-- we could insert a page break instead blockToICML opts style (Table caption aligns widths headers rows) = let style' = tableName : style noHeader = all null headers nrHeaders = if noHeader then "0" else "1" nrRows = length rows nrCols = if null rows...
2,114
blockToICML opts style (Table caption aligns widths headers rows) = let style' = tableName : style noHeader = all null headers nrHeaders = if noHeader then "0" else "1" nrRows = length rows nrCols = if null rows then 0 ...
2,074
blockToICML opts style (Table caption aligns widths headers rows) = let style' = tableName : style noHeader = all null headers nrHeaders = if noHeader then "0" else "1" nrRows = length rows nrCols = if null rows then 0 ...
2,074
true
false
0
20
819
667
340
327
null
null
kmate/HaRe
old/refactorer/RefacSimplify.hs
bsd-3-clause
unravelAndFind ps x y (Pat (HsPParen p)) = unravelAndFind ps x y p
66
unravelAndFind ps x y (Pat (HsPParen p)) = unravelAndFind ps x y p
66
unravelAndFind ps x y (Pat (HsPParen p)) = unravelAndFind ps x y p
66
false
false
0
9
12
36
17
19
null
null
forked-upstream-packages-for-ghcjs/ghc
compiler/codeGen/StgCmmForeign.hs
bsd-3-clause
tso_alloc_limit dflags = closureField dflags (oFFSET_StgTSO_alloc_limit dflags)
79
tso_alloc_limit dflags = closureField dflags (oFFSET_StgTSO_alloc_limit dflags)
79
tso_alloc_limit dflags = closureField dflags (oFFSET_StgTSO_alloc_limit dflags)
79
false
false
0
7
6
20
9
11
null
null
onponomarev/ganeti
src/Ganeti/Constants.hs
bsd-2-clause
hvsParameterTitles :: Map String String hvsParameterTitles = Map.fromList [(hvAcpi, "ACPI"), (hvBootOrder, "Boot_order"), (hvCdromImagePath, "CDROM_image_path"), (hvCpuType, "cpu_type"), (hvDiskType, "Disk_type"), (hvInitrdPath, "Initrd_path"), (hvKernelPath, "Kernel_path"), (hvNicType, "NIC_ty...
419
hvsParameterTitles :: Map String String hvsParameterTitles = Map.fromList [(hvAcpi, "ACPI"), (hvBootOrder, "Boot_order"), (hvCdromImagePath, "CDROM_image_path"), (hvCpuType, "cpu_type"), (hvDiskType, "Disk_type"), (hvInitrdPath, "Initrd_path"), (hvKernelPath, "Kernel_path"), (hvNicType, "NIC_ty...
419
hvsParameterTitles = Map.fromList [(hvAcpi, "ACPI"), (hvBootOrder, "Boot_order"), (hvCdromImagePath, "CDROM_image_path"), (hvCpuType, "cpu_type"), (hvDiskType, "Disk_type"), (hvInitrdPath, "Initrd_path"), (hvKernelPath, "Kernel_path"), (hvNicType, "NIC_type"), (hvPae, "PAE"), (hvPassthrou...
379
false
true
1
6
63
124
76
48
null
null
hausdorff/pyli
src/Parser.hs
mit
comparisonType :: Parser String comparisonType = comparisonOperator ==> emitComparisonOperator <|> inKeyword <|> is <|> (not <~> inKeyword ==> emitNotIn) <|> (is <~> not ==> emitIsNot) where inKeyword = ter "in" not = ter "not" ...
404
comparisonType :: Parser String comparisonType = comparisonOperator ==> emitComparisonOperator <|> inKeyword <|> is <|> (not <~> inKeyword ==> emitNotIn) <|> (is <~> not ==> emitIsNot) where inKeyword = ter "in" not = ter "not" ...
404
comparisonType = comparisonOperator ==> emitComparisonOperator <|> inKeyword <|> is <|> (not <~> inKeyword ==> emitNotIn) <|> (is <~> not ==> emitIsNot) where inKeyword = ter "in" not = ter "not" is = ter "is" e...
372
false
true
15
7
162
122
58
64
null
null
AndrewRademacher/stack
src/Stack/Coverage.hs
bsd-3-clause
sanitize :: String -> Text sanitize = LT.toStrict . htmlEscape . LT.pack
72
sanitize :: String -> Text sanitize = LT.toStrict . htmlEscape . LT.pack
72
sanitize = LT.toStrict . htmlEscape . LT.pack
45
false
true
0
7
11
27
14
13
null
null
ml9951/ThreadScope
GUI/TraceView.hs
bsd-3-clause
getTracesStoreContents :: TreeStore a -> IO (Forest a) getTracesStoreContents tracesStore = go 0 where go !n = do m <- treeStoreLookup tracesStore [n] case m of Nothing -> return [] Just t -> do ts <- go (n+1) return (t:ts)
264
getTracesStoreContents :: TreeStore a -> IO (Forest a) getTracesStoreContents tracesStore = go 0 where go !n = do m <- treeStoreLookup tracesStore [n] case m of Nothing -> return [] Just t -> do ts <- go (n+1) return (t:ts)
264
getTracesStoreContents tracesStore = go 0 where go !n = do m <- treeStoreLookup tracesStore [n] case m of Nothing -> return [] Just t -> do ts <- go (n+1) return (t:ts)
209
false
true
0
15
80
118
53
65
null
null
ion1/buzhash-haskell
src/Data/BuzHash/Internal/ChunkSplit.hs
mit
splitByteString bs [] | not (BS.null bs) = Chunk bs : [] | otherwise = []
102
splitByteString bs [] | not (BS.null bs) = Chunk bs : [] | otherwise = []
102
splitByteString bs [] | not (BS.null bs) = Chunk bs : [] | otherwise = []
102
false
false
1
11
44
53
23
30
null
null
mcschroeder/ghc
libraries/template-haskell/Language/Haskell/TH/Lib.hs
bsd-3-clause
------------------------------------------------------------------------------- -- * RuleBndr ruleVar :: Name -> RuleBndrQ ruleVar = return . RuleVar
151
ruleVar :: Name -> RuleBndrQ ruleVar = return . RuleVar
55
ruleVar = return . RuleVar
26
true
true
1
7
15
29
13
16
null
null
nevrenato/Hets_Fork
OWL2/XMLKeywords.hs
gpl-2.0
declarationK :: String declarationK = "Declaration"
51
declarationK :: String declarationK = "Declaration"
51
declarationK = "Declaration"
28
false
true
0
4
5
11
6
5
null
null
ezyang/ghc
compiler/prelude/THNames.hs
bsd-3-clause
integerLIdKey = mkPreludeMiscIdUnique 222
45
integerLIdKey = mkPreludeMiscIdUnique 222
45
integerLIdKey = mkPreludeMiscIdUnique 222
45
false
false
0
5
7
9
4
5
null
null
kindl/Hypatia
src/Typechecker.hs
mit
-- Does a type variable occur in a type? occurs x ty = elem x (freeVars ty)
75
occurs x ty = elem x (freeVars ty)
34
occurs x ty = elem x (freeVars ty)
34
true
false
1
7
16
29
11
18
null
null
DavidAlphaFox/ghc
libraries/containers/Data/Set/Base.hs
bsd-3-clause
{- | /O(n)/. The expression (@showTreeWith hang wide map@) shows the tree that implements the set. If @hang@ is @True@, a /hanging/ tree is shown otherwise a rotated tree is shown. If @wide@ is 'True', an extra wide version is shown. > Set> putStrLn $ showTreeWith True False $ fromDistinctAscList [1..5] > 4 > +--2 ...
787
showTreeWith :: Show a => Bool -> Bool -> Set a -> String showTreeWith hang wide t | hang = (showsTreeHang wide [] t) "" | otherwise = (showsTree wide [] [] t) ""
171
showTreeWith hang wide t | hang = (showsTreeHang wide [] t) "" | otherwise = (showsTree wide [] [] t) ""
113
true
true
1
9
189
88
42
46
null
null
jyp/Parsek
Text/ParserCombinators/Parsek/Position.hs
gpl-3.0
updLoc EOF _ = EOF
29
updLoc EOF _ = EOF
29
updLoc EOF _ = EOF
29
false
false
0
5
15
13
5
8
null
null
aurapm/haskell-versions
test/Test.hs
bsd-3-clause
badVers :: [T.Text] badVers = ["", "1.2 "]
42
badVers :: [T.Text] badVers = ["", "1.2 "]
42
badVers = ["", "1.2 "]
22
false
true
0
8
7
29
14
15
null
null
spechub/Hets
Propositional/Parse_AS_Basic.hs
gpl-2.0
symbMapItems :: GenParser Char st SYMB_MAP_ITEMS symbMapItems = do (is, ps) <- symbMaps return (Symb_map_items is $ catRange ps) -- | parse a comma separated list of symbol mappings
186
symbMapItems :: GenParser Char st SYMB_MAP_ITEMS symbMapItems = do (is, ps) <- symbMaps return (Symb_map_items is $ catRange ps) -- | parse a comma separated list of symbol mappings
186
symbMapItems = do (is, ps) <- symbMaps return (Symb_map_items is $ catRange ps) -- | parse a comma separated list of symbol mappings
137
false
true
0
10
33
51
25
26
null
null
jean-edouard/manager
storehouse/Tools/UuidTable.hs
gpl-2.0
notMember k table = withRead table (M.notMember k)
50
notMember k table = withRead table (M.notMember k)
50
notMember k table = withRead table (M.notMember k)
50
false
false
0
8
7
24
11
13
null
null
FranklinChen/music-score
src/Music/Time/Reactive.hs
bsd-3-clause
continousWith :: Segment (a -> b) -> Reactive a -> Behavior b continousWith f x = continous $ liftA2 (<*>) (pure f) (fmap pure x)
129
continousWith :: Segment (a -> b) -> Reactive a -> Behavior b continousWith f x = continous $ liftA2 (<*>) (pure f) (fmap pure x)
129
continousWith f x = continous $ liftA2 (<*>) (pure f) (fmap pure x)
67
false
true
0
8
24
67
33
34
null
null
mrakgr/futhark
src/Language/Futhark/Attributes.hs
bsd-3-clause
tupleArrayElemReturnType :: (Eq vn, Hashable vn) => TupleArrayElemTypeBase shape NoInfo vn -> [Diet] -> [CompTypeBase vn] -> TupleArrayElemTypeBase shape Names vn tupleArrayElemReturnType (PrimArrayElem bt NoInfo u) d...
419
tupleArrayElemReturnType :: (Eq vn, Hashable vn) => TupleArrayElemTypeBase shape NoInfo vn -> [Diet] -> [CompTypeBase vn] -> TupleArrayElemTypeBase shape Names vn tupleArrayElemReturnType (PrimArrayElem bt NoInfo u) d...
419
tupleArrayElemReturnType (PrimArrayElem bt NoInfo u) ds args = PrimArrayElem bt als u where als = mconcat $ map aliases $ zipWith maskAliases args ds
153
false
true
0
10
151
111
54
57
null
null
ssaavedra/liquidhaskell
src/Language/Haskell/Liquid/Desugar710/DsArrows.hs
bsd-3-clause
matchVarStack :: [Id] -> Id -> CoreExpr -> DsM (Id, CoreExpr) matchVarStack [] stack_id body = return (stack_id, body)
118
matchVarStack :: [Id] -> Id -> CoreExpr -> DsM (Id, CoreExpr) matchVarStack [] stack_id body = return (stack_id, body)
118
matchVarStack [] stack_id body = return (stack_id, body)
56
false
true
0
9
18
53
28
25
null
null
ComputationWithBoundedResources/ara-inference
doc/tpdb_trs/Haskell/basic_haskell/mapM_1.hs
mit
sequence1 cs x = gtGtEsMaybe (sequence cs) (sequence0 x)
56
sequence1 cs x = gtGtEsMaybe (sequence cs) (sequence0 x)
56
sequence1 cs x = gtGtEsMaybe (sequence cs) (sequence0 x)
56
false
false
0
7
8
28
13
15
null
null
reinvdwoerd/lisp
src/Primitives.hs
mit
slurp _ [String s] = String <$> liftIO result where result = case parseURI s >>= uriScheme of Just _ -> get s <&> (^. responseBody) <&> toString _ -> readFile s
203
slurp _ [String s] = String <$> liftIO result where result = case parseURI s >>= uriScheme of Just _ -> get s <&> (^. responseBody) <&> toString _ -> readFile s
203
slurp _ [String s] = String <$> liftIO result where result = case parseURI s >>= uriScheme of Just _ -> get s <&> (^. responseBody) <&> toString _ -> readFile s
203
false
false
4
10
74
82
36
46
null
null
DavidAlphaFox/ghc
utils/haddock/haddock-api/src/Haddock/Backends/LaTeX.hs
bsd-3-clause
ppType, ppParendType, ppFunLhType :: Bool -> HsType DocName -> LaTeX ppType unicode ty = ppr_mono_ty pREC_TOP ty unicode
126
ppType, ppParendType, ppFunLhType :: Bool -> HsType DocName -> LaTeX ppType unicode ty = ppr_mono_ty pREC_TOP ty unicode
126
ppType unicode ty = ppr_mono_ty pREC_TOP ty unicode
57
false
true
0
7
23
38
20
18
null
null
edsko/cabal
cabal-install/Distribution/Client/Dependency/TopDown.hs
bsd-3-clause
showFailure (TopLevelVersionConstraintUnsatisfiable name ver) = "There is no available version of " ++ display name ++ " that satisfies " ++ displayVer ver
166
showFailure (TopLevelVersionConstraintUnsatisfiable name ver) = "There is no available version of " ++ display name ++ " that satisfies " ++ displayVer ver
166
showFailure (TopLevelVersionConstraintUnsatisfiable name ver) = "There is no available version of " ++ display name ++ " that satisfies " ++ displayVer ver
166
false
false
2
7
33
36
16
20
null
null
newmana/redish
test/RedishSpec.hs
bsd-3-clause
parseReplySpec :: Spec parseReplySpec = do describe "parseReply" $ do let emptyReply = Bulk Nothing let nb s = Bulk (Just (pack s)) let unknownReply = nb "unknown" let getReply = nb "get" let setReply = nb "set" it "returns nothing with single bulk" $ do parseReply emptyReply `shouldBe`...
772
parseReplySpec :: Spec parseReplySpec = do describe "parseReply" $ do let emptyReply = Bulk Nothing let nb s = Bulk (Just (pack s)) let unknownReply = nb "unknown" let getReply = nb "get" let setReply = nb "set" it "returns nothing with single bulk" $ do parseReply emptyReply `shouldBe`...
772
parseReplySpec = do describe "parseReply" $ do let emptyReply = Bulk Nothing let nb s = Bulk (Just (pack s)) let unknownReply = nb "unknown" let getReply = nb "get" let setReply = nb "set" it "returns nothing with single bulk" $ do parseReply emptyReply `shouldBe` (Nothing) it ...
749
false
true
0
21
185
312
148
164
null
null
michalkonecny/aern2
aern2-mfun/src/AERN2/BoxFunMinMax/Expressions/Parsers/Smt.hs
bsd-3-clause
findAssertions (_ : expressions) = findAssertions expressions
61
findAssertions (_ : expressions) = findAssertions expressions
61
findAssertions (_ : expressions) = findAssertions expressions
61
false
false
0
6
6
20
9
11
null
null
sanjoy/echoes
src/HIR/HIR.hs
gpl-3.0
getOpenVariables env (AppT fn arg) = S.unions $ map (getOpenVariables env) [fn, arg]
86
getOpenVariables env (AppT fn arg) = S.unions $ map (getOpenVariables env) [fn, arg]
86
getOpenVariables env (AppT fn arg) = S.unions $ map (getOpenVariables env) [fn, arg]
86
false
false
2
7
14
46
21
25
null
null