9002392217305a71257921224326b73b424bfdc3,upsetplot/data.py,,generate_data,#Any#Any#Any#Any#,10
Before Change
def generate_data(seed=0, n_samples=10000, n_sets=3, aggregated=False):
rng = np.random.RandomState(seed)
df = pd.DataFrame({"value": np.zeros(n_samples)})
for i in range(n_sets):
r = rng.rand(n_samples)
df["cat%d" % i] = r > rng.rand()
df["value"] += r
df.set_index(["cat%d" % i for i in range(n_sets)], inplace=True)
After Change
"0.3 and will be removed in version 0.4.",
DeprecationWarning)
if aggregated:
return generate_counts(seed=seed, n_samples=n_samples,
n_categories=n_sets)
else:
return generate_samples(seed=seed, n_samples=n_samples,
n_categories=n_sets)["value"]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: jnothman/UpSetPlot
Commit Name: 9002392217305a71257921224326b73b424bfdc3
Time: 2019-06-06
Author: joel.nothman@gmail.com
File Name: upsetplot/data.py
Class Name:
Method Name: generate_data
Project Name: Qiskit/qiskit-aqua
Commit Name: 3ef143469c1d37f77a8c6d5f170f387434085efc
Time: 2019-03-18
Author: manoel@us.ibm.com
File Name: qiskit/aqua/algorithms/quantum_algorithm.py
Class Name: QuantumAlgorithm
Method Name: random
Project Name: probcomp/bayeslite
Commit Name: 943da0020c5633f03f10aeaca134167647a43b0c
Time: 2015-09-04
Author: riastradh+probcomp@csail.mit.edu
File Name: src/stats.py
Class Name:
Method Name: chi2_sf