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
Matt-Renfro/haskell
H-99/Problem9.hs
mit
mySpan :: (a->Bool) -> [a] -> ([a], [a]) mySpan predicate lst = let f (xs, []) = (xs,[]) f ([], (x:xs)) = f ([x], xs) f (xs, (y:ys)) = if predicate y then f ((xs++ [y]),ys) ...
378
mySpan :: (a->Bool) -> [a] -> ([a], [a]) mySpan predicate lst = let f (xs, []) = (xs,[]) f ([], (x:xs)) = f ([x], xs) f (xs, (y:ys)) = if predicate y then f ((xs++ [y]),ys) ...
377
mySpan predicate lst = let f (xs, []) = (xs,[]) f ([], (x:xs)) = f ([x], xs) f (xs, (y:ys)) = if predicate y then f ((xs++ [y]),ys) else (xs, (y:ys)) ...
336
false
true
0
14
215
191
106
85
null
null
adunning/pandoc-citeproc
src/Text/CSL/Proc/Disamb.hs
bsd-3-clause
mapGroupOutput :: (Output -> [a]) -> CitationGroup -> [a] mapGroupOutput f (CG _ _ _ os) = concatMap (f . snd) os
113
mapGroupOutput :: (Output -> [a]) -> CitationGroup -> [a] mapGroupOutput f (CG _ _ _ os) = concatMap (f . snd) os
113
mapGroupOutput f (CG _ _ _ os) = concatMap (f . snd) os
55
false
true
0
10
21
66
33
33
null
null
deweyvm/starstats
src/StarStats/Parsers/Irssi.hs
mit
parseName :: Parser Name parseName = manyTill anyChar (lookAhead (symbol ">"))
79
parseName :: Parser Name parseName = manyTill anyChar (lookAhead (symbol ">"))
78
parseName = manyTill anyChar (lookAhead (symbol ">"))
53
false
true
1
9
11
34
15
19
null
null
nevrenato/Hets_Fork
Static/FromXmlUtils.hs
gpl-2.0
deleteHiddenSymbols :: String -> G_sign -> Result G_sign deleteHiddenSymbols syms gs@(G_sign lid (ExtSign sig _) _) = let str = trimLeft syms in if null str then return gs else case parse_symb_items lid of Nothing -> fail $ "no symbol parser for " ++ language_name lid Just sbpa -> case runParser (sepB...
766
deleteHiddenSymbols :: String -> G_sign -> Result G_sign deleteHiddenSymbols syms gs@(G_sign lid (ExtSign sig _) _) = let str = trimLeft syms in if null str then return gs else case parse_symb_items lid of Nothing -> fail $ "no symbol parser for " ++ language_name lid Just sbpa -> case runParser (sepB...
766
deleteHiddenSymbols syms gs@(G_sign lid (ExtSign sig _) _) = let str = trimLeft syms in if null str then return gs else case parse_symb_items lid of Nothing -> fail $ "no symbol parser for " ++ language_name lid Just sbpa -> case runParser (sepBy1 sbpa anComma << eof) (emptyAnnos ()...
709
false
true
0
24
227
270
127
143
null
null
nshepperd/funn
Testing/pure.hs
mit
prop_preludiff :: Property prop_preludiff = checkGradientI (preluDiff @10)
74
prop_preludiff :: Property prop_preludiff = checkGradientI (preluDiff @10)
74
prop_preludiff = checkGradientI (preluDiff @10)
47
false
true
0
8
7
22
11
11
null
null
siddhanathan/ghc
compiler/basicTypes/Id.hs
bsd-3-clause
-- | Returns whether the lambda associated with the 'Id' is certainly applied at most once -- This one is the "business end", called externally. -- It works on type variables as well as Ids, returning True -- Its main purpose is to encapsulate the Horrible State Hack isOneShotBndr :: Var -> Bool isOneShotBndr var | i...
375
isOneShotBndr :: Var -> Bool isOneShotBndr var | isTyVar var = True | otherwise = isOneShotLambda var
107
isOneShotBndr var | isTyVar var = True | otherwise = isOneShotLambda var
78
true
true
1
8
70
41
21
20
null
null
fpco/hlint
src/Apply.hs
bsd-3-clause
executeHints :: [Setting] -> [(Module_, [Comment])] -> [Idea] executeHints s = applyHints [x | SettingClassify x <- s] (allHints s)
131
executeHints :: [Setting] -> [(Module_, [Comment])] -> [Idea] executeHints s = applyHints [x | SettingClassify x <- s] (allHints s)
131
executeHints s = applyHints [x | SettingClassify x <- s] (allHints s)
69
false
true
0
9
19
65
35
30
null
null
hsyl20/DPIM
src/Mails.hs
gpl-3.0
main :: IO () main = do let server = "imap.exascale-computing.eu" putStrLn ("Connecting to " ++ server) conn <- connectIMAPSSL server putStr "Username: " hFlush stdout username <- getLine putStr "Password: " hFlush stdout password <- withEcho False getLine putStrLn "" login conn usernam...
499
main :: IO () main = do let server = "imap.exascale-computing.eu" putStrLn ("Connecting to " ++ server) conn <- connectIMAPSSL server putStr "Username: " hFlush stdout username <- getLine putStr "Password: " hFlush stdout password <- withEcho False getLine putStrLn "" login conn usernam...
499
main = do let server = "imap.exascale-computing.eu" putStrLn ("Connecting to " ++ server) conn <- connectIMAPSSL server putStr "Username: " hFlush stdout username <- getLine putStr "Password: " hFlush stdout password <- withEcho False getLine putStrLn "" login conn username password ...
485
false
true
0
9
128
176
73
103
null
null
sol/libmpd-haskell
tests/CommandSpec.hs
mit
spec :: Spec spec = do -- * Admin commands describe "enableOutput" $ do it "sends an enableoutput command" $ testEnableOutput describe "disableOutput" $ do it "sends an disableoutput command" $ testDisableOutput describe "outputs" $ do it "lists available outputs" $ testOutputs...
4,903
spec :: Spec spec = do -- * Admin commands describe "enableOutput" $ do it "sends an enableoutput command" $ testEnableOutput describe "disableOutput" $ do it "sends an disableoutput command" $ testDisableOutput describe "outputs" $ do it "lists available outputs" $ testOutputs...
4,903
spec = do -- * Admin commands describe "enableOutput" $ do it "sends an enableoutput command" $ testEnableOutput describe "disableOutput" $ do it "sends an disableoutput command" $ testDisableOutput describe "outputs" $ do it "lists available outputs" $ testOutputs describ...
4,890
false
true
0
16
1,413
1,073
449
624
null
null
brendanhay/gogol
gogol-remotebuildexecution/gen/Network/Google/RemoteBuildExecution/Types/Product.hs
mpl-2.0
-- | Determines the type of network access granted to workers. Possible -- values: - \"public\": Workers can connect to the public internet. - -- \"private\": Workers can only connect to Google APIs and services. - -- \"restricted-private\": Workers can only connect to Google APIs that are -- reachable through \`restri...
565
gdravwcNetworkAccess :: Lens' GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig (Maybe Text) gdravwcNetworkAccess = lens _gdravwcNetworkAccess (\ s a -> s{_gdravwcNetworkAccess = a})
199
gdravwcNetworkAccess = lens _gdravwcNetworkAccess (\ s a -> s{_gdravwcNetworkAccess = a})
97
true
true
0
9
76
52
29
23
null
null
league/game2048
src/Game2048/Util.hs
gpl-3.0
choose :: (RandomGen g, MonadState g m) => [a] -> m a choose xs = (xs !!) `liftM` state (randomR (0, length xs - 1))
116
choose :: (RandomGen g, MonadState g m) => [a] -> m a choose xs = (xs !!) `liftM` state (randomR (0, length xs - 1))
116
choose xs = (xs !!) `liftM` state (randomR (0, length xs - 1))
62
false
true
0
11
24
73
39
34
null
null
lukasepple/grav1ty
lib/Grav2ty/Util/RelGraph.hs
gpl-3.0
prop_relCorrectness :: Map String Integer -> Bool prop_relCorrectness map = all cond $ allCombinations g where g = insertMapKey (\x y -> let r = x * y in (r, negate r)) emptyRel map cond (x, y) = lookupRel x y g == fmap negate (lookupRel y x g)
254
prop_relCorrectness :: Map String Integer -> Bool prop_relCorrectness map = all cond $ allCombinations g where g = insertMapKey (\x y -> let r = x * y in (r, negate r)) emptyRel map cond (x, y) = lookupRel x y g == fmap negate (lookupRel y x g)
254
prop_relCorrectness map = all cond $ allCombinations g where g = insertMapKey (\x y -> let r = x * y in (r, negate r)) emptyRel map cond (x, y) = lookupRel x y g == fmap negate (lookupRel y x g)
204
false
true
0
12
58
122
60
62
null
null
kmate/HaRe
old/testing/rmOneParameter/FunIn7_TokOut.hs
bsd-3-clause
--Any unused parameter to a definition can be removed. --To select a formal parameter, just need to stop the cursor at any position between the start --end position of this formal paramter. --In this example, remove '[x,y]' with a invalid cursor position foo [x,y]= h + t where (h,t) = head $ zip [1..10] [3..10]
316
foo [x,y]= h + t where (h,t) = head $ zip [1..10] [3..10]
57
foo [x,y]= h + t where (h,t) = head $ zip [1..10] [3..10]
57
true
false
0
9
58
56
32
24
null
null
sdiehl/ghc
compiler/GHC/Hs/Decls.hs
bsd-3-clause
pprTyClDeclFlavour (SynDecl {}) = text "type"
49
pprTyClDeclFlavour (SynDecl {}) = text "type"
49
pprTyClDeclFlavour (SynDecl {}) = text "type"
49
false
false
0
7
9
19
9
10
null
null
cfredric/arithmoi
test-suite/Math/NumberTheory/Primes/TestingTests.hs
mit
isPrimeProperty2 :: Integer -> Bool isPrimeProperty2 n = isPrime n == isPrime (negate n)
88
isPrimeProperty2 :: Integer -> Bool isPrimeProperty2 n = isPrime n == isPrime (negate n)
88
isPrimeProperty2 n = isPrime n == isPrime (negate n)
52
false
true
2
7
13
40
18
22
null
null
5outh/wyas
Evaluator.hs
gpl-2.0
evalString :: Env -> String -> IO String evalString env expr = runIOThrows $ liftM show $ (liftThrows $ readExpr expr) >>= eval env
134
evalString :: Env -> String -> IO String evalString env expr = runIOThrows $ liftM show $ (liftThrows $ readExpr expr) >>= eval env
134
evalString env expr = runIOThrows $ liftM show $ (liftThrows $ readExpr expr) >>= eval env
93
false
true
0
9
26
55
26
29
null
null
sgillespie/ghc
compiler/basicTypes/Id.hs
bsd-3-clause
modifyInlinePragma :: Id -> (InlinePragma -> InlinePragma) -> Id modifyInlinePragma id fn = modifyIdInfo (\info -> info `setInlinePragInfo` (fn (inlinePragInfo info))) id
170
modifyInlinePragma :: Id -> (InlinePragma -> InlinePragma) -> Id modifyInlinePragma id fn = modifyIdInfo (\info -> info `setInlinePragInfo` (fn (inlinePragInfo info))) id
170
modifyInlinePragma id fn = modifyIdInfo (\info -> info `setInlinePragInfo` (fn (inlinePragInfo info))) id
105
false
true
0
12
21
62
33
29
null
null
vincenthz/hs-risk
Server/Risk.hs
bsd-3-clause
main = do putStrLn "risk"
29
main = do putStrLn "risk"
29
main = do putStrLn "risk"
29
false
false
0
7
8
12
5
7
null
null
nevrenato/Hets_Fork
HasCASL/Builtin.hs
gpl-2.0
cTypeArg :: TypeArg cTypeArg = varToTypeArg cVar (-3) NonVar
60
cTypeArg :: TypeArg cTypeArg = varToTypeArg cVar (-3) NonVar
60
cTypeArg = varToTypeArg cVar (-3) NonVar
40
false
true
0
7
8
29
13
16
null
null
Cahu/krpc-hs
src/KRPCHS/SpaceCenter.hs
gpl-3.0
getFlightReynoldsNumberStreamReq :: KRPCHS.SpaceCenter.Flight -> KRPCStreamReq (Float) getFlightReynoldsNumberStreamReq thisArg = let req = makeRequest "SpaceCenter" "Flight_get_ReynoldsNumber" [makeArgument 0 thisArg] in makeStream req
245
getFlightReynoldsNumberStreamReq :: KRPCHS.SpaceCenter.Flight -> KRPCStreamReq (Float) getFlightReynoldsNumberStreamReq thisArg = let req = makeRequest "SpaceCenter" "Flight_get_ReynoldsNumber" [makeArgument 0 thisArg] in makeStream req
245
getFlightReynoldsNumberStreamReq thisArg = let req = makeRequest "SpaceCenter" "Flight_get_ReynoldsNumber" [makeArgument 0 thisArg] in makeStream req
158
false
true
0
11
29
60
28
32
null
null
xkollar/handy-haskell
handy/src/Handy/Timed.hs
gpl-3.0
waiter :: Int -> MVar a -> MVar a -> IO () waiter t refTemp refFinal = do threadDelay t readMVar refTemp >>= putMVar refFinal -- | @lastTimed n a s@ will return last value of -- @s@ that was produced within @n@ microseconds. -- If no value was produced (WHNF) within given time, -- then @a@ is returned.
312
waiter :: Int -> MVar a -> MVar a -> IO () waiter t refTemp refFinal = do threadDelay t readMVar refTemp >>= putMVar refFinal -- | @lastTimed n a s@ will return last value of -- @s@ that was produced within @n@ microseconds. -- If no value was produced (WHNF) within given time, -- then @a@ is returned.
312
waiter t refTemp refFinal = do threadDelay t readMVar refTemp >>= putMVar refFinal -- | @lastTimed n a s@ will return last value of -- @s@ that was produced within @n@ microseconds. -- If no value was produced (WHNF) within given time, -- then @a@ is returned.
269
false
true
0
9
67
64
30
34
null
null
m00nlight/99-problems
haskell/p-70.hs
bsd-3-clause
nnodes ∷ Tree a → Int nnodes t@(Node _ []) = 1
46
nnodes ∷ Tree a → Int nnodes t@(Node _ []) = 1
46
nnodes t@(Node _ []) = 1
24
false
true
0
9
11
34
17
17
null
null
bmsherman/haskell-vect
Data/Vect2.hs
bsd-3-clause
reverse :: Vect n a -> Vect n a reverse zs = gcastWith (nPlusZIsN zs) (go Nil zs) where go :: Vect m xs -> Vect n xs -> Vect (n + m) xs go acc Nil = acc go acc (x :. xs) = gcastWith (plusSuccRightSucc xs acc) (go (x :. acc) xs)
233
reverse :: Vect n a -> Vect n a reverse zs = gcastWith (nPlusZIsN zs) (go Nil zs) where go :: Vect m xs -> Vect n xs -> Vect (n + m) xs go acc Nil = acc go acc (x :. xs) = gcastWith (plusSuccRightSucc xs acc) (go (x :. acc) xs)
233
reverse zs = gcastWith (nPlusZIsN zs) (go Nil zs) where go :: Vect m xs -> Vect n xs -> Vect (n + m) xs go acc Nil = acc go acc (x :. xs) = gcastWith (plusSuccRightSucc xs acc) (go (x :. acc) xs)
201
false
true
0
11
59
143
69
74
null
null
mcmaniac/ghc
compiler/llvmGen/Llvm/Types.hs
bsd-3-clause
fToStr :: Float -> String fToStr = (dToStr . realToFrac)
56
fToStr :: Float -> String fToStr = (dToStr . realToFrac)
56
fToStr = (dToStr . realToFrac)
30
false
true
0
6
9
22
12
10
null
null
acowley/ghc
compiler/nativeGen/PPC/Regs.hs
bsd-3-clause
r27 = regSingle 27
22
r27 = regSingle 27
22
r27 = regSingle 27
22
false
false
1
5
7
12
4
8
null
null
keizo042/quic-prototype
Network/QUIC/Error.hs
bsd-3-clause
err2int InvaildCryptoMessageParameter = 0x22
53
err2int InvaildCryptoMessageParameter = 0x22
53
err2int InvaildCryptoMessageParameter = 0x22
53
false
false
0
5
12
9
4
5
null
null
chrisdotcode/hackage-server
Distribution/Server/Framework/BackupRestore.hs
bsd-3-clause
parseRead :: (Read a, Monad m) => String -> String -> m a parseRead label str = case reads str of [(value, "")] -> return value _ -> fail $ "Unable to parse " ++ label ++ ": " ++ show str
195
parseRead :: (Read a, Monad m) => String -> String -> m a parseRead label str = case reads str of [(value, "")] -> return value _ -> fail $ "Unable to parse " ++ label ++ ": " ++ show str
195
parseRead label str = case reads str of [(value, "")] -> return value _ -> fail $ "Unable to parse " ++ label ++ ": " ++ show str
137
false
true
2
8
49
93
46
47
null
null
glutamate/cvutils
Track.hs
bsd-3-clause
updateBgIm (Obj _ _ _ cx cy _) = do im <- readIORef bgImRef mutIm <- thaw im ((loy,lox,_),(hiy,hix,_)) <- getBounds mutIm forM_ [(y,x,c) | x<- [lox..hix], y<- [loy..hiy], c<- [0..2], dist cx cy x y > 30] $ \ix@(y,x,c)-> do now <- rea...
478
updateBgIm (Obj _ _ _ cx cy _) = do im <- readIORef bgImRef mutIm <- thaw im ((loy,lox,_),(hiy,hix,_)) <- getBounds mutIm forM_ [(y,x,c) | x<- [lox..hix], y<- [loy..hiy], c<- [0..2], dist cx cy x y > 30] $ \ix@(y,x,c)-> do now <- rea...
478
updateBgIm (Obj _ _ _ cx cy _) = do im <- readIORef bgImRef mutIm <- thaw im ((loy,lox,_),(hiy,hix,_)) <- getBounds mutIm forM_ [(y,x,c) | x<- [lox..hix], y<- [loy..hiy], c<- [0..2], dist cx cy x y > 30] $ \ix@(y,x,c)-> do now <- rea...
478
false
false
0
16
169
257
133
124
null
null
adolfosilva/granada
tests/Main.hs
gpl-3.0
unitTests :: TestTree unitTests = testGroup "Unit Tests" [Parser.unitTests]
75
unitTests :: TestTree unitTests = testGroup "Unit Tests" [Parser.unitTests]
75
unitTests = testGroup "Unit Tests" [Parser.unitTests]
53
false
true
0
7
8
27
12
15
null
null
yuga/jsonschema-gen
tests/Values.hs
bsd-3-clause
productData11 :: ProductType1 productData11 = ProductData11 "param11" 12 1.3 Nothing (ProductData21 "param21" Nothing)
118
productData11 :: ProductType1 productData11 = ProductData11 "param11" 12 1.3 Nothing (ProductData21 "param21" Nothing)
118
productData11 = ProductData11 "param11" 12 1.3 Nothing (ProductData21 "param21" Nothing)
88
false
true
0
7
12
36
16
20
null
null
jxv/cis-194-winter-2016
src/Homework/Week07/Assignment.hs
mit
-- #1 ynToBool :: Value -> Value ynToBool = undefined
53
ynToBool :: Value -> Value ynToBool = undefined
47
ynToBool = undefined
20
true
true
0
5
9
16
9
7
null
null
jeffreyrosenbluth/NYC-meetup
meetup/SierpinskiCircle.hs
mit
diagram :: Diagram B diagram = sierpinski 6
43
diagram :: Diagram B diagram = sierpinski 6
43
diagram = sierpinski 6
22
false
true
1
5
7
20
8
12
null
null
WraithM/network-bitcoin
src/Network/Bitcoin/BlockChain.hs
bsd-3-clause
getOutputSetInfo :: Client -> IO OutputSetInfo getOutputSetInfo client = callApi client "gettxoutsetinfo" []
108
getOutputSetInfo :: Client -> IO OutputSetInfo getOutputSetInfo client = callApi client "gettxoutsetinfo" []
108
getOutputSetInfo client = callApi client "gettxoutsetinfo" []
61
false
true
0
7
12
34
15
19
null
null
swamp-agr/sagging
Validation.hs
gpl-2.0
initialConditions' _ _ _ e | isNumeric e == False = Just ("Величина Длина пролёта не задана.")
94
initialConditions' _ _ _ e | isNumeric e == False = Just ("Величина Длина пролёта не задана.")
94
initialConditions' _ _ _ e | isNumeric e == False = Just ("Величина Длина пролёта не задана.")
94
false
false
0
9
16
34
15
19
null
null
haroldcarr/learn-haskell-coq-ml-etc
haskell/playpen/interview/zalora/src/Interview.hs
unlicense
act ("list-group-permissions" : gName : []) = putStrLn $ "TODO: list-user-groups " ++ gName
121
act ("list-group-permissions" : gName : []) = putStrLn $ "TODO: list-user-groups " ++ gName
121
act ("list-group-permissions" : gName : []) = putStrLn $ "TODO: list-user-groups " ++ gName
121
false
false
0
9
43
30
15
15
null
null
deadfoxygrandpa/Elm
compiler/Transform/Canonicalize.hs
bsd-3-clause
metadataModule :: Interfaces -> MetadataModule -> Either [Doc] MetadataModule metadataModule ifaces modul = do case filter (\m -> Map.notMember m ifaces) (map fst realImports) of [] -> Right () missings -> Left [ P.text $ "The following imports were not found: " ++ List.intercalate ", " missings ++ ...
2,177
metadataModule :: Interfaces -> MetadataModule -> Either [Doc] MetadataModule metadataModule ifaces modul = do case filter (\m -> Map.notMember m ifaces) (map fst realImports) of [] -> Right () missings -> Left [ P.text $ "The following imports were not found: " ++ List.intercalate ", " missings ++ ...
2,177
metadataModule ifaces modul = do case filter (\m -> Map.notMember m ifaces) (map fst realImports) of [] -> Right () missings -> Left [ P.text $ "The following imports were not found: " ++ List.intercalate ", " missings ++ "\n You may need to compile with the --make ...
2,099
false
true
10
17
697
864
423
441
null
null
arthurmgo/regex-ftc
src/Sets.hs
bsd-3-clause
union :: Ord a => Set a -> Set a -> Set a union (SetI xs) (SetI ys) = SetI (uni xs ys)
89
union :: Ord a => Set a -> Set a -> Set a union (SetI xs) (SetI ys) = SetI (uni xs ys)
89
union (SetI xs) (SetI ys) = SetI (uni xs ys)
44
false
true
0
8
25
63
29
34
null
null
yjwen/hada
test/Num.hs
lgpl-3.0
gt32 :: Int32 -> Int32 -> Bool gt32 = (>)
41
gt32 :: Int32 -> Int32 -> Bool gt32 = (>)
41
gt32 = (>)
10
false
true
0
6
9
21
12
9
null
null
keithodulaigh/Hets
QBF/Sublogic.hs
gpl-2.0
isPosLiteral (AS_BASIC.TrueAtom _ ) = True
42
isPosLiteral (AS_BASIC.TrueAtom _ ) = True
42
isPosLiteral (AS_BASIC.TrueAtom _ ) = True
42
false
false
0
7
5
18
8
10
null
null
anton-k/sharc-timbre
src/Sharc/Instruments/ViolaMarteleBowing.hs
bsd-3-clause
note9 :: Note note9 = Note (Pitch 220.0 45 "a3") 10 (Range (NoteRange (NoteRangeAmplitude 8360.0 38 1.37) (NoteRangeHarmonicFreq 1 220.0)) (NoteRange (NoteRangeAmplitude 220.0 1 7650.84) (NoteRangeHarmonicFreq 47 10340.0))) [Harmonic 1 (-2....
1,730
note9 :: Note note9 = Note (Pitch 220.0 45 "a3") 10 (Range (NoteRange (NoteRangeAmplitude 8360.0 38 1.37) (NoteRangeHarmonicFreq 1 220.0)) (NoteRange (NoteRangeAmplitude 220.0 1 7650.84) (NoteRangeHarmonicFreq 47 10340.0))) [Harmonic 1 (-2....
1,730
note9 = Note (Pitch 220.0 45 "a3") 10 (Range (NoteRange (NoteRangeAmplitude 8360.0 38 1.37) (NoteRangeHarmonicFreq 1 220.0)) (NoteRange (NoteRangeAmplitude 220.0 1 7650.84) (NoteRangeHarmonicFreq 47 10340.0))) [Harmonic 1 (-2.848) 7650.84 ...
1,716
false
true
0
11
479
700
364
336
null
null
jdnavarro/pipes-p2p
src/Pipes/Network/P2P.hs
bsd-3-clause
-- ** Strict Binary encode :: Binary a => a -> ByteString encode = toStrict . Binary.encode
92
encode :: Binary a => a -> ByteString encode = toStrict . Binary.encode
71
encode = toStrict . Binary.encode
33
true
true
0
6
17
29
15
14
null
null
bitemyapp/haskell-vcache
hsrc_lib/Database/VCache/VGetAux.hs
bsd-2-clause
-- to simplify type inference peekByte :: Ptr Word8 -> IO Word8 peekByte = peek
79
peekByte :: Ptr Word8 -> IO Word8 peekByte = peek
49
peekByte = peek
15
true
true
0
7
14
28
12
16
null
null
scturtle/fun.hs
free.hs
unlicense
put :: String -> MYIO () put s = liftF (Put s ())
49
put :: String -> MYIO () put s = liftF (Put s ())
49
put s = liftF (Put s ())
24
false
true
0
8
12
40
18
22
null
null
vladfi1/hs-misc
lib/Misc/Zippable.hs
mit
zipWith3 :: Zippable f => (a -> b -> c -> d) -> f a -> f b -> f c -> f d zipWith3 f fa fb fc = f <$> fa <**> fb <**> fc
119
zipWith3 :: Zippable f => (a -> b -> c -> d) -> f a -> f b -> f c -> f d zipWith3 f fa fb fc = f <$> fa <**> fb <**> fc
119
zipWith3 f fa fb fc = f <$> fa <**> fb <**> fc
46
false
true
0
10
36
82
39
43
null
null
input-output-hk/pos-haskell-prototype
core/test/Test/Pos/Core/Gen.hs
mit
genSlotLeaders :: Gen SlotLeaders genSlotLeaders = do stakeHolderList <- Gen.list (Range.linear 1 10) genStakeholderId pure $ fromJust $ nonEmpty stakeHolderList
169
genSlotLeaders :: Gen SlotLeaders genSlotLeaders = do stakeHolderList <- Gen.list (Range.linear 1 10) genStakeholderId pure $ fromJust $ nonEmpty stakeHolderList
169
genSlotLeaders = do stakeHolderList <- Gen.list (Range.linear 1 10) genStakeholderId pure $ fromJust $ nonEmpty stakeHolderList
135
false
true
0
11
27
52
24
28
null
null
takano-akio/hdevtools
src/CommandArgs.hs
mit
moduleFile :: Annotate Ann moduleFile = record dummyModuleFile [ socket := def += typFile += help "socket file to use" , ghcOpts := def += typ "OPTION" += help "ghc options" , cabalOpts := def += typ "OPTION" += help "cabal options" , module_ := def += typ "MODULE" += argPos 0 , debug := def...
441
moduleFile :: Annotate Ann moduleFile = record dummyModuleFile [ socket := def += typFile += help "socket file to use" , ghcOpts := def += typ "OPTION" += help "ghc options" , cabalOpts := def += typ "OPTION" += help "cabal options" , module_ := def += typ "MODULE" += argPos 0 , debug := def...
441
moduleFile = record dummyModuleFile [ socket := def += typFile += help "socket file to use" , ghcOpts := def += typ "OPTION" += help "ghc options" , cabalOpts := def += typ "OPTION" += help "cabal options" , module_ := def += typ "MODULE" += argPos 0 , debug := def += help "e...
414
false
true
0
9
121
122
58
64
null
null
jwiegley/ghc-release
compiler/nativeGen/RegAlloc/Linear/Main.hs
gpl-3.0
linearRA :: (FR freeRegs, Outputable instr, Instruction instr) => BlockMap RegSet -- ^ map of what vregs are live on entry to each block. -> [instr] -- ^ accumulator for instructions already processed. -> [NatBasicBlock instr] ...
948
linearRA :: (FR freeRegs, Outputable instr, Instruction instr) => BlockMap RegSet -- ^ map of what vregs are live on entry to each block. -> [instr] -- ^ accumulator for instructions already processed. -> [NatBasicBlock instr] ...
906
linearRA _ accInstr accFixup _ [] = return ( reverse accInstr -- instrs need to be returned in the correct order. , accFixup)
187
true
true
0
15
406
127
68
59
null
null
zerobuzz/webtest
src/Test/QuickCheck/Store.hs
agpl-3.0
example = do quickCheckWithResultStore stdArgs exampleProperty
66
example = do quickCheckWithResultStore stdArgs exampleProperty
66
example = do quickCheckWithResultStore stdArgs exampleProperty
66
false
false
1
8
9
18
6
12
null
null
abresas/ai
AI.hs
mit
initLayerWeights numNeurons numWeights seed = let (firstWeights, seed0) = initNeuronWeights numWeights seed (rest, seed1) = initLayerWeights (numNeurons-1) numWeights seed0 in ( (firstWeights:rest), seed1 )
223
initLayerWeights numNeurons numWeights seed = let (firstWeights, seed0) = initNeuronWeights numWeights seed (rest, seed1) = initLayerWeights (numNeurons-1) numWeights seed0 in ( (firstWeights:rest), seed1 )
223
initLayerWeights numNeurons numWeights seed = let (firstWeights, seed0) = initNeuronWeights numWeights seed (rest, seed1) = initLayerWeights (numNeurons-1) numWeights seed0 in ( (firstWeights:rest), seed1 )
223
false
false
0
11
40
75
39
36
null
null
phischu/fragnix
tests/packages/scotty/System.Directory.hs
bsd-3-clause
findFilesWithLazy :: (FilePath -> IO Bool) -> [FilePath] -> String -> ListT IO FilePath findFilesWithLazy f dirs path -- make sure absolute paths are handled properly irrespective of 'dirs' -- https://github.com/haskell/directory/issues/72 | isAbsolute path = ListT (find [""]) | otherwise = ListT (find ...
713
findFilesWithLazy :: (FilePath -> IO Bool) -> [FilePath] -> String -> ListT IO FilePath findFilesWithLazy f dirs path -- make sure absolute paths are handled properly irrespective of 'dirs' -- https://github.com/haskell/directory/issues/72 | isAbsolute path = ListT (find [""]) | otherwise = ListT (find ...
713
findFilesWithLazy f dirs path -- make sure absolute paths are handled properly irrespective of 'dirs' -- https://github.com/haskell/directory/issues/72 | isAbsolute path = ListT (find [""]) | otherwise = ListT (find dirs) where find [] = return Nothing find (d : ds) = do let p = d ...
623
false
true
1
15
179
196
97
99
null
null
Deewiant/haschoo
Haschoo/Evaluator/Eval.hs
bsd-3-clause
evalWithSpecialCases sp (ScmList (x:xs)) = do evaledHead <- evalWithSpecialCases sp x case evaledHead of ScmPrim _ f -> f xs ScmFunc _ f -> do args <- mapM (evalWithSpecialCases sp) xs result <- liftIO $ f args case result of Left s -> throwErr...
472
evalWithSpecialCases sp (ScmList (x:xs)) = do evaledHead <- evalWithSpecialCases sp x case evaledHead of ScmPrim _ f -> f xs ScmFunc _ f -> do args <- mapM (evalWithSpecialCases sp) xs result <- liftIO $ f args case result of Left s -> throwErr...
472
evalWithSpecialCases sp (ScmList (x:xs)) = do evaledHead <- evalWithSpecialCases sp x case evaledHead of ScmPrim _ f -> f xs ScmFunc _ f -> do args <- mapM (evalWithSpecialCases sp) xs result <- liftIO $ f args case result of Left s -> throwErr...
472
false
false
0
15
174
170
77
93
null
null
shayan-najd/Haskell-Desugar-Generic
Language/Haskell/Exts/Desugar/Generic/Others.hs
bsd-3-clause
desugarUnGuardedAlt, desugarGuardedAlts :: Desugaring GuardedAlts desugarUnGuardedAlt = noDesugaring
100
desugarUnGuardedAlt, desugarGuardedAlts :: Desugaring GuardedAlts desugarUnGuardedAlt = noDesugaring
100
desugarUnGuardedAlt = noDesugaring
34
false
true
0
5
7
16
9
7
null
null
brendanhay/gogol
gogol-cloudidentity/gen/Network/Google/Resource/CloudIdentity/Devices/CancelWipe.hs
mpl-2.0
-- | OAuth access token. dcwAccessToken :: Lens' DevicesCancelWipe (Maybe Text) dcwAccessToken = lens _dcwAccessToken (\ s a -> s{_dcwAccessToken = a})
159
dcwAccessToken :: Lens' DevicesCancelWipe (Maybe Text) dcwAccessToken = lens _dcwAccessToken (\ s a -> s{_dcwAccessToken = a})
134
dcwAccessToken = lens _dcwAccessToken (\ s a -> s{_dcwAccessToken = a})
79
true
true
0
9
29
48
25
23
null
null
k-bx/snap-server
src/Snap/Internal/Http/Server/Parser.hs
bsd-3-clause
getStdConnection (StandardHeaders v) = V.unsafeIndex v connectionTag
74
getStdConnection (StandardHeaders v) = V.unsafeIndex v connectionTag
74
getStdConnection (StandardHeaders v) = V.unsafeIndex v connectionTag
74
false
false
0
7
12
22
10
12
null
null
markuspf/Idris-dev
src/IRTS/CodegenC.hs
bsd-3-clause
doOp v (LSDiv (ATInt ITNative)) [l, r] = v ++ "INTOP(/," ++ creg l ++ ", " ++ creg r ++ ")"
91
doOp v (LSDiv (ATInt ITNative)) [l, r] = v ++ "INTOP(/," ++ creg l ++ ", " ++ creg r ++ ")"
91
doOp v (LSDiv (ATInt ITNative)) [l, r] = v ++ "INTOP(/," ++ creg l ++ ", " ++ creg r ++ ")"
91
false
false
1
14
21
62
28
34
null
null
msakai/ptq
src/Translation.hs
lgpl-2.1
translate (He n) = lambda p $ FVar p <@> FVar (xn n) where p = ("p", S (E :-> Prop))
90
translate (He n) = lambda p $ FVar p <@> FVar (xn n) where p = ("p", S (E :-> Prop))
90
translate (He n) = lambda p $ FVar p <@> FVar (xn n) where p = ("p", S (E :-> Prop))
90
false
false
3
8
26
67
30
37
null
null
sopvop/cabal
cabal-install/Distribution/Client/BuildTarget.hs
bsd-3-clause
cinfoKind :: ComponentInfo -> ComponentKind cinfoKind = componentKind . cinfoName
81
cinfoKind :: ComponentInfo -> ComponentKind cinfoKind = componentKind . cinfoName
81
cinfoKind = componentKind . cinfoName
37
false
true
0
5
9
19
10
9
null
null
nevrenato/Hets_Fork
CASL_DL/PredefinedCASLAxioms.hs
gpl-2.0
atAt :: Id atAt = mkInfix "@@"
30
atAt :: Id atAt = mkInfix "@@"
30
atAt = mkInfix "@@"
19
false
true
0
6
6
21
8
13
null
null
OS2World/DEV-UTIL-HUGS
libraries/Graphics/Rendering/OpenGL/GL/QueryUtils.hs
bsd-3-clause
getDoublev :: GetPName -> Ptr GLdouble -> IO () getDoublev = glGetDoublev . marshalGetPName
91
getDoublev :: GetPName -> Ptr GLdouble -> IO () getDoublev = glGetDoublev . marshalGetPName
91
getDoublev = glGetDoublev . marshalGetPName
43
false
true
0
9
13
37
16
21
null
null
brendanhay/gogol
gogol-dns/gen/Network/Google/DNS/Types/Product.hs
mpl-2.0
-- | The time at which the zone was deactivated, in RFC 3339 date-time -- format. An empty string indicates that the peering connection is active. -- The producer network can deactivate a zone. The zone is automatically -- deactivated if the producer network that the zone targeted is deleted. -- Output only. mzpctnDeac...
488
mzpctnDeactivateTime :: Lens' ManagedZonePeeringConfigTargetNetwork (Maybe Text) mzpctnDeactivateTime = lens _mzpctnDeactivateTime (\ s a -> s{_mzpctnDeactivateTime = a})
178
mzpctnDeactivateTime = lens _mzpctnDeactivateTime (\ s a -> s{_mzpctnDeactivateTime = a})
97
true
true
0
8
77
53
29
24
null
null
phaazon/OpenGLRaw
src/Graphics/Rendering/OpenGL/Raw/Tokens.hs
bsd-3-clause
gl_RASTERIZER_DISCARD_NV :: GLenum gl_RASTERIZER_DISCARD_NV = 0x8C89
68
gl_RASTERIZER_DISCARD_NV :: GLenum gl_RASTERIZER_DISCARD_NV = 0x8C89
68
gl_RASTERIZER_DISCARD_NV = 0x8C89
33
false
true
0
4
5
11
6
5
null
null
adamse/haddock
haddock-api/src/Haddock/Backends/LaTeX.hs
bsd-2-clause
tupleParens _ = parenList
38
tupleParens _ = parenList
38
tupleParens _ = parenList
38
false
false
0
4
16
10
4
6
null
null
mineo/mpch
MPCH/Commands.hs
mit
toggle :: CommandFunc toggle = statusWrapper toggleImpl
55
toggle :: CommandFunc toggle = statusWrapper toggleImpl
55
toggle = statusWrapper toggleImpl
33
false
true
0
5
6
14
7
7
null
null
ocharles/hs-quake-3
Quake3/Shader/TypeCheck.hs
bsd-3-clause
tcTurb args = Failure ["Unknown tcmod turb arguments: " ++ show args]
69
tcTurb args = Failure ["Unknown tcmod turb arguments: " ++ show args]
69
tcTurb args = Failure ["Unknown tcmod turb arguments: " ++ show args]
69
false
false
1
8
11
26
10
16
null
null
themoritz/cabal
cabal-install/Distribution/Client/ProjectConfig/Legacy.hs
bsd-3-clause
convertLegacyAllPackageFlags :: GlobalFlags -> ConfigFlags -> ConfigExFlags -> InstallFlags -> ProjectConfigShared convertLegacyAllPackageFlags globalFlags configFlags configExFlags installFlags = ProjectConfigShared{..} where ...
2,493
convertLegacyAllPackageFlags :: GlobalFlags -> ConfigFlags -> ConfigExFlags -> InstallFlags -> ProjectConfigShared convertLegacyAllPackageFlags globalFlags configFlags configExFlags installFlags = ProjectConfigShared{..} where ...
2,493
convertLegacyAllPackageFlags globalFlags configFlags configExFlags installFlags = ProjectConfigShared{..} where GlobalFlags { globalConfigFile = projectConfigConfigFile, globalSandboxConfigFile = _, -- ?? globalRemoteRepos = projectConfigRemoteRepos,...
2,320
false
true
3
8
683
233
146
87
null
null
ComputationWithBoundedResources/ara-inference
doc/tpdb_trs/Haskell/basic_haskell/encodeFloat_1.hs
mit
esEsOrdering EQ LT = MyFalse
28
esEsOrdering EQ LT = MyFalse
28
esEsOrdering EQ LT = MyFalse
28
false
false
0
5
4
11
5
6
null
null
HJvT/hdirect
src/Parser.hs
bsd-3-clause
action_514 (34#) = happyGoto action_561
39
action_514 (34#) = happyGoto action_561
39
action_514 (34#) = happyGoto action_561
39
false
false
0
6
4
15
7
8
null
null
ConsensusResearch/MultiBranch
forging.hs
gpl-2.0
rand :: Integer -> Integer -> Integer -> Stream Integer rand seed n1 n2 = let seed' = modN seed n2 in Cons0 seed' (rand (seed' * n1) n1 n2)
164
rand :: Integer -> Integer -> Integer -> Stream Integer rand seed n1 n2 = let seed' = modN seed n2 in Cons0 seed' (rand (seed' * n1) n1 n2)
164
rand seed n1 n2 = let seed' = modN seed n2 in Cons0 seed' (rand (seed' * n1) n1 n2)
108
false
true
0
11
54
71
34
37
null
null
brendanhay/gogol
gogol-dialogflow/gen/Network/Google/Resource/DialogFlow/Projects/Agent/EntityTypes/BatchDelete.hs
mpl-2.0
-- | V1 error format. paetbdXgafv :: Lens' ProjectsAgentEntityTypesBatchDelete (Maybe Xgafv) paetbdXgafv = lens _paetbdXgafv (\ s a -> s{_paetbdXgafv = a})
157
paetbdXgafv :: Lens' ProjectsAgentEntityTypesBatchDelete (Maybe Xgafv) paetbdXgafv = lens _paetbdXgafv (\ s a -> s{_paetbdXgafv = a})
135
paetbdXgafv = lens _paetbdXgafv (\ s a -> s{_paetbdXgafv = a})
64
true
true
1
9
23
52
25
27
null
null
svenssonjoel/GCDObsidian
Obsidian/GCDObsidian/Program.hs
bsd-3-clause
programThreads (Assign _ _ _) = 1
33
programThreads (Assign _ _ _) = 1
33
programThreads (Assign _ _ _) = 1
33
false
false
0
7
6
19
9
10
null
null
norm2782/uuagc
src-generated/PrintCode.hs
bsd-3-clause
sem_Patterns_Nil :: T_Patterns sem_Patterns_Nil = T_Patterns (return st44) where {-# NOINLINE st44 #-} !st44 = let v43 :: T_Patterns_v43 v43 = \ !(T_Patterns_vIn43 _lhsIbelowIrrefutable _lhsIisDeclOfLet _lhsIoptions) -> ( let _lhsOpps :: [PP_Doc] _lhsOpps = rule357 () _...
1,445
sem_Patterns_Nil :: T_Patterns sem_Patterns_Nil = T_Patterns (return st44) where {-# NOINLINE st44 #-} !st44 = let v43 :: T_Patterns_v43 v43 = \ !(T_Patterns_vIn43 _lhsIbelowIrrefutable _lhsIisDeclOfLet _lhsIoptions) -> ( let _lhsOpps :: [PP_Doc] _lhsOpps = rule357 () _l...
1,444
sem_Patterns_Nil = T_Patterns (return st44) where {-# NOINLINE st44 #-} !st44 = let v43 :: T_Patterns_v43 v43 = \ !(T_Patterns_vIn43 _lhsIbelowIrrefutable _lhsIisDeclOfLet _lhsIoptions) -> ( let _lhsOpps :: [PP_Doc] _lhsOpps = rule357 () _lhsOpps' :: [PP_Doc] _lh...
1,412
false
true
0
18
479
274
152
122
null
null
sdiehl/ghc
libraries/template-haskell/Language/Haskell/TH/Ppr.hs
bsd-3-clause
pprPat _ WildP = text "_"
32
pprPat _ WildP = text "_"
32
pprPat _ WildP = text "_"
32
false
false
1
5
12
15
6
9
null
null
adept/hledger
hledger-lib/Hledger/Utils.hs
gpl-3.0
sixth6 (_,_,_,_,_,x) = x
25
sixth6 (_,_,_,_,_,x) = x
25
sixth6 (_,_,_,_,_,x) = x
25
false
false
0
6
4
27
16
11
null
null
ryantm/ghc
compiler/main/DriverPhases.hs
bsd-3-clause
startPhase "m" = Cobjc
29
startPhase "m" = Cobjc
29
startPhase "m" = Cobjc
29
false
false
0
4
10
10
4
6
null
null
DougBurke/swish
tests/N3FormatterTest.hs
lgpl-2.1
t1026 = arc o2 p2 s2
20
t1026 = arc o2 p2 s2
20
t1026 = arc o2 p2 s2
20
false
false
1
5
5
16
6
10
null
null
sdiehl/ghc
testsuite/tests/stranal/should_run/T16197.hs
bsd-3-clause
main :: IO () main = case f1 4 (g 0) of Box _ -> return ()
62
main :: IO () main = case f1 4 (g 0) of Box _ -> return ()
62
main = case f1 4 (g 0) of Box _ -> return ()
48
false
true
1
9
20
48
21
27
null
null
passy/hf
src/Scorer.hs
apache-2.0
variance xs = (sum . diff $ total) / (tLen) where ixs = fmap fromIntegral xs total = sum ixs diff t = fmap (\x -> (x - t) ** 2) ixs tLen = fromIntegral $ length xs
195
variance xs = (sum . diff $ total) / (tLen) where ixs = fmap fromIntegral xs total = sum ixs diff t = fmap (\x -> (x - t) ** 2) ixs tLen = fromIntegral $ length xs
195
variance xs = (sum . diff $ total) / (tLen) where ixs = fmap fromIntegral xs total = sum ixs diff t = fmap (\x -> (x - t) ** 2) ixs tLen = fromIntegral $ length xs
195
false
false
4
10
69
105
47
58
null
null
sdiehl/ghc
compiler/nativeGen/X86/Regs.hs
bsd-3-clause
xmm15 = regSingle 31
20
xmm15 = regSingle 31
20
xmm15 = regSingle 31
20
false
false
1
5
3
13
4
9
null
null
eddywestbrook/hobbits
archival/HobbitLibTH.hs
bsd-3-clause
nuQQPatt :: String -> Q Pat nuQQPatt str = do mb <- newName "mb" ln <- newName "bs" pat <- runIO $ CE.evaluate (let x = parsePatt str in syb_rnf x `seq` x) `catch` \err -> (error $ "error parsing string |" ++ str ++ "|: " ++ show err) return $ AsP mb $ ConP 'MkMb [VarP ln, internPattVars mb ln pat]
318
nuQQPatt :: String -> Q Pat nuQQPatt str = do mb <- newName "mb" ln <- newName "bs" pat <- runIO $ CE.evaluate (let x = parsePatt str in syb_rnf x `seq` x) `catch` \err -> (error $ "error parsing string |" ++ str ++ "|: " ++ show err) return $ AsP mb $ ConP 'MkMb [VarP ln, internPattVars mb ln pat]
318
nuQQPatt str = do mb <- newName "mb" ln <- newName "bs" pat <- runIO $ CE.evaluate (let x = parsePatt str in syb_rnf x `seq` x) `catch` \err -> (error $ "error parsing string |" ++ str ++ "|: " ++ show err) return $ AsP mb $ ConP 'MkMb [VarP ln, internPattVars mb ln pat]
290
false
true
0
17
81
157
74
83
null
null
gridaphobe/ghc
compiler/deSugar/PmExpr.hs
bsd-3-clause
needsParens (PmExprLit l) = isNegatedPmLit l
47
needsParens (PmExprLit l) = isNegatedPmLit l
47
needsParens (PmExprLit l) = isNegatedPmLit l
47
false
false
0
7
8
18
8
10
null
null
sgillespie/ghc
compiler/prelude/TysWiredIn.hs
bsd-3-clause
-- See Note [One-tuples] mkBoxedTupleStr ar = '(' : commas ar ++ ")"
68
mkBoxedTupleStr ar = '(' : commas ar ++ ")"
43
mkBoxedTupleStr ar = '(' : commas ar ++ ")"
43
true
false
0
7
12
21
10
11
null
null
hamishmack/reflex-dom
src-ghcjs/Reflex/Dom/Xhr/Foreign.hs
bsd-3-clause
-- XMLHttpRequest <$> ghcjs_dom_xml_http_request_new xmlHttpRequestOpen :: (ToJSString method, ToJSString url, ToJSString user, ToJSString password) => XMLHttpRequest -> method -> url -> Bool -> user -> password -> IO () xmlHttpRequestOpen = open
287
xmlHttpRequestOpen :: (ToJSString method, ToJSString url, ToJSString user, ToJSString password) => XMLHttpRequest -> method -> url -> Bool -> user -> password -> IO () xmlHttpRequestOpen = open
233
xmlHttpRequestOpen = open
25
true
true
0
13
72
68
35
33
null
null
gregorycollins/blaaargh
src/Blaaargh/Internal/Post.hs
gpl-2.0
setEntryOther :: [Element] -> Post -> Post setEntryOther x (Post p) = Post $ p { entryOther = x }
97
setEntryOther :: [Element] -> Post -> Post setEntryOther x (Post p) = Post $ p { entryOther = x }
97
setEntryOther x (Post p) = Post $ p { entryOther = x }
54
false
true
0
7
19
50
25
25
null
null
apyrgio/snf-ganeti
src/Ganeti/Constants.hs
bsd-2-clause
-- | Ciphers allowed for SSL connections. -- -- For the format, see ciphers(1). A better way to disable ciphers -- would be to use the exclamation mark (!), but socat versions below -- 1.5 can't parse exclamation marks in options properly. When -- modifying the ciphers, ensure not to accidentially add something -- afte...
510
opensslCiphers :: String opensslCiphers = "HIGH:-DES:-3DES:-EXPORT:-ADH"
72
opensslCiphers = "HIGH:-DES:-3DES:-EXPORT:-ADH"
47
true
true
0
4
79
19
14
5
null
null
hesiod/OpenGL
src/Graphics/Rendering/OpenGL/GL/PixelRectangles/PixelStorage.hs
bsd-3-clause
skipImages Unpack = pixelStorei GetUnpackSkipImages UnpackSkipImages
68
skipImages Unpack = pixelStorei GetUnpackSkipImages UnpackSkipImages
68
skipImages Unpack = pixelStorei GetUnpackSkipImages UnpackSkipImages
68
false
false
1
5
5
17
6
11
null
null
karamellpelle/grid
designer/source/Game/Grid/Helpers/Camera.hs
gpl-3.0
-- | to view strictly cameraToView' :: Camera -> Float -> View -> Camera cameraToView' camera speed view = camera { cameraView = cameraCurrentView camera, cameraViewIdeal = view, cameraViewAAlpha = 0.0, cameraViewAAlphaIdeal = 1.0, cameraViewASpeed = speed, ca...
520
cameraToView' :: Camera -> Float -> View -> Camera cameraToView' camera speed view = camera { cameraView = cameraCurrentView camera, cameraViewIdeal = view, cameraViewAAlpha = 0.0, cameraViewAAlphaIdeal = 1.0, cameraViewASpeed = speed, cameraViewBAlpha = 0.0, ...
498
cameraToView' camera speed view = camera { cameraView = cameraCurrentView camera, cameraViewIdeal = view, cameraViewAAlpha = 0.0, cameraViewAAlphaIdeal = 1.0, cameraViewASpeed = speed, cameraViewBAlpha = 0.0, cameraViewBAlphaIdeal = 1.0, camera...
447
true
true
0
8
159
106
63
43
null
null
Cahu/krpc-hs
src/KRPCHS/SpaceCenter.hs
gpl-3.0
save :: Data.Text.Text -> RPCContext () save nameArg = do let r = makeRequest "SpaceCenter" "Save" [makeArgument 0 nameArg] res <- sendRequest r processResponse res {- - Data amount. -}
201
save :: Data.Text.Text -> RPCContext () save nameArg = do let r = makeRequest "SpaceCenter" "Save" [makeArgument 0 nameArg] res <- sendRequest r processResponse res {- - Data amount. -}
201
save nameArg = do let r = makeRequest "SpaceCenter" "Save" [makeArgument 0 nameArg] res <- sendRequest r processResponse res {- - Data amount. -}
161
false
true
0
13
45
72
32
40
null
null
jwiegley/ghc-release
libraries/Cabal/cabal/Distribution/Simple/Setup.hs
gpl-3.0
-- ------------------------------------------------------------ -- * Other Utils -- ------------------------------------------------------------ -- | Arguments to pass to a @configure@ script, e.g. generated by -- @autoconf@. configureArgs :: Bool -> ConfigFlags -> [String] configureArgs bcHack flags = hc_flag ++ o...
1,414
configureArgs :: Bool -> ConfigFlags -> [String] configureArgs bcHack flags = hc_flag ++ optFlag "with-hc-pkg" configHcPkg ++ optFlag' "prefix" prefix ++ optFlag' "bindir" bindir ++ optFlag' "libdir" libdir ++ optFlag' "libexecdir" libexecdir ++ optFlag' "datadir" datadir ++ optFlag' "sysc...
1,187
configureArgs bcHack flags = hc_flag ++ optFlag "with-hc-pkg" configHcPkg ++ optFlag' "prefix" prefix ++ optFlag' "bindir" bindir ++ optFlag' "libdir" libdir ++ optFlag' "libexecdir" libexecdir ++ optFlag' "datadir" datadir ++ optFlag' "sysconfdir" sysconfdir ++ configConfigureArgs flags...
1,138
true
true
20
14
469
289
140
149
null
null
treeowl/GADTSeq
Data/Sequence.hs
bsd-3-clause
appendTree4 xs a b c d (Single x) = xs `snocTree` a `snocTree` b `snocTree` c `snocTree` d `snocTree` x
107
appendTree4 xs a b c d (Single x) = xs `snocTree` a `snocTree` b `snocTree` c `snocTree` d `snocTree` x
107
appendTree4 xs a b c d (Single x) = xs `snocTree` a `snocTree` b `snocTree` c `snocTree` d `snocTree` x
107
false
false
0
9
23
55
32
23
null
null
bitemyapp/ghc
compiler/hsSyn/HsExpr.hs
bsd-3-clause
isAtomicHsExpr (HsOverLit {}) = True
36
isAtomicHsExpr (HsOverLit {}) = True
36
isAtomicHsExpr (HsOverLit {}) = True
36
false
false
0
7
4
16
8
8
null
null
ctford/Idris-Elba-dev
src/IRTS/CodegenJava.hs
bsd-3-clause
flatIndent :: String -> String flatIndent (' ' : ' ' : xs) = flatIndent xs
74
flatIndent :: String -> String flatIndent (' ' : ' ' : xs) = flatIndent xs
74
flatIndent (' ' : ' ' : xs) = flatIndent xs
43
false
true
0
8
15
32
16
16
null
null
adinapoli/api-tools
src/Data/API/Changes.hs
bsd-3-clause
applyAPIChangeToAPI _ _ (ChRenameType tname tname') api = do -- to rename a type, the original type name must exist -- and the new one must not yet exist tinfo <- lookupType tname api guard (not (tname' `typeDeclaredInApi` api)) ?! TypeExists tname' return ( (renameTypeUses tname tname' . Map.ins...
383
applyAPIChangeToAPI _ _ (ChRenameType tname tname') api = do -- to rename a type, the original type name must exist -- and the new one must not yet exist tinfo <- lookupType tname api guard (not (tname' `typeDeclaredInApi` api)) ?! TypeExists tname' return ( (renameTypeUses tname tname' . Map.ins...
383
applyAPIChangeToAPI _ _ (ChRenameType tname tname') api = do -- to rename a type, the original type name must exist -- and the new one must not yet exist tinfo <- lookupType tname api guard (not (tname' `typeDeclaredInApi` api)) ?! TypeExists tname' return ( (renameTypeUses tname tname' . Map.ins...
383
false
false
2
15
89
112
52
60
null
null
fffej/haskellprojects
arbitrage/Forex.hs
bsd-2-clause
fromInt' :: Exchange -> Int -> Currency fromInt' _ = toEnum
59
fromInt' :: Exchange -> Int -> Currency fromInt' _ = toEnum
59
fromInt' _ = toEnum
19
false
true
0
6
10
22
11
11
null
null
rahulmutt/ghcvm
compiler/Eta/BasicTypes/VarEnv.hs
bsd-3-clause
elemDVarEnv :: Var -> DVarEnv a -> Bool elemDVarEnv = elemUDFM
62
elemDVarEnv :: Var -> DVarEnv a -> Bool elemDVarEnv = elemUDFM
62
elemDVarEnv = elemUDFM
22
false
true
0
7
10
22
11
11
null
null
GaloisInc/http-server
example/SimpleWeb.hs
mit
where txt = encodeString v
32
where txt = encodeString v
32
where txt = encodeString v
32
false
false
0
5
10
12
5
7
null
null
rahulmutt/ghcvm
compiler/Eta/CodeGen/Prim.hs
bsd-3-clause
simpleOp ReadArrayArrayOp_MutableByteArray = Just $ normalOp $ invokevirtual (mkMethodRef stgArray "get" [jint] (ret closureType)) <> gconv closureType stgByteArrayType
180
simpleOp ReadArrayArrayOp_MutableByteArray = Just $ normalOp $ invokevirtual (mkMethodRef stgArray "get" [jint] (ret closureType)) <> gconv closureType stgByteArrayType
180
simpleOp ReadArrayArrayOp_MutableByteArray = Just $ normalOp $ invokevirtual (mkMethodRef stgArray "get" [jint] (ret closureType)) <> gconv closureType stgByteArrayType
180
false
false
0
11
29
50
24
26
null
null
IreneKnapp/Faction
faction/Distribution/Client/Dependency/Modular/Tree.hs
bsd-3-clause
choices (Done _ ) = 1
33
choices (Done _ ) = 1
33
choices (Done _ ) = 1
33
false
false
0
6
17
16
7
9
null
null
msakai/icfpc2014
Game.hs
bsd-3-clause
symbolFromChar 'o' = PowerPill
30
symbolFromChar 'o' = PowerPill
30
symbolFromChar 'o' = PowerPill
30
false
false
0
5
3
9
4
5
null
null
brendanhay/gogol
gogol-dfareporting/gen/Network/Google/DFAReporting/Types/Product.hs
mpl-2.0
-- | Name of this advertiser. This is a required field and must be less than -- 256 characters long and unique among advertisers of the same account. advdName :: Lens' Advertiser (Maybe Text) advdName = lens _advdName (\ s a -> s{_advdName = a})
245
advdName :: Lens' Advertiser (Maybe Text) advdName = lens _advdName (\ s a -> s{_advdName = a})
95
advdName = lens _advdName (\ s a -> s{_advdName = a})
53
true
true
1
9
44
52
26
26
null
null
svenssonjoel/ObsidianGFX
Obsidian/Library.hs
bsd-3-clause
-- | Zip implemented on Pull arrays zip :: ASize l => Pull l a -> Pull l b -> Pull l (a, b) zip arr1 arr2 = mkPull (min (len arr1) (len arr2)) $ \ix -> (arr1 ! ix, arr2 ! ix)
208
zip :: ASize l => Pull l a -> Pull l b -> Pull l (a, b) zip arr1 arr2 = mkPull (min (len arr1) (len arr2)) $ \ix -> (arr1 ! ix, arr2 ! ix)
159
zip arr1 arr2 = mkPull (min (len arr1) (len arr2)) $ \ix -> (arr1 ! ix, arr2 ! ix)
103
true
true
0
10
76
99
50
49
null
null