Given a biquandle (X,S), a function τ with certain compatibility and a pair of non commutative cocylesf,h:X×X→G with values in a non necessarily commutative group G, we give an invariant for singular knots/links. Given (X,S,τ), we also define a universal group Ufhnc(X) and universal functions governing all 2-cocycles in X, and exhibit examples of computations. When the target group is abelian, a notion of abelian cocycle pair is given and the “state sum” is defined for singular knots/links. Computations generalizing linking number for singular knots are given. As for virtual knots, a “self-linking number” may be defined for singular knots.