repo_id
string
cross_repo_split
string
commit_index
int32
commit_sha
string
in_repo_split
string
test_file
string
file_split
string
split_group
string
lineno
int32
col_offset
int32
assertion_type
string
test_function
string
prefix
large_string
target
string
assertion_event_type
string
assertion_event_id
string
assertion_anchor
large_string
old_target
string
old_lineno
int32
old_col_offset
int32
webis-de/small-text
train
170
8fd0fbb7b980a178979b445c9c8514c0c0286e34
train
tests/integration/small_text/integrations/transformers/classifiers/test_classification_embeddings.py
train
webis-de/small-text:tests/integration/small_text/integrations/transformers/classifiers/test_classification_embeddings.py
35
13
self.assertRaises
test_embed_model_not_fitted
import unittest import pytest from unittest import mock from small_text.integrations.pytorch.exceptions import PytorchNotFoundError from tests.utils.datasets import twenty_news_transformers from tests.utils.testing import assert_array_not_equal try: from small_text.integrations.transformers import ( Trans...
ValueError)
added
ae10ec54174b479b823d290d3df9547f3dddda1acb59474143049fb380dc74c7
self.assertRaises|test_embed_model_not_fitted|import unittest import pytest from unittest import mock from small_text.integrations.pytorch.exceptions import PytorchNotFoundError from tests.utils.datasets import twenty_news_transformers from tests.utils.testing import assert_array_not_equal try: from small_text.integrat...
null
null
null
webis-de/small-text
train
170
8fd0fbb7b980a178979b445c9c8514c0c0286e34
train
tests/integration/small_text/integrations/transformers/classifiers/test_classification_embeddings.py
train
webis-de/small-text:tests/integration/small_text/integrations/transformers/classifiers/test_classification_embeddings.py
61
8
self.assertEqual
test_embed
import unittest import pytest from unittest import mock from small_text.integrations.pytorch.exceptions import PytorchNotFoundError from tests.utils.datasets import twenty_news_transformers from tests.utils.testing import assert_array_not_equal try: from small_text.integrations.transformers import ( Trans...
embeddings.shape[0])
added
24012aa2ee3c11a040f61860f7da89211b87c64de6a91b5b46186b8343a9e41f
self.assertEqual|test_embed|import unittest import pytest from unittest import mock from small_text.integrations.pytorch.exceptions import PytorchNotFoundError from tests.utils.datasets import twenty_news_transformers from tests.utils.testing import assert_array_not_equal try: from small_text.integrations.transformers ...
null
null
null
webis-de/small-text
train
170
8fd0fbb7b980a178979b445c9c8514c0c0286e34
train
tests/integration/small_text/integrations/transformers/classifiers/test_classification_embeddings.py
train
webis-de/small-text:tests/integration/small_text/integrations/transformers/classifiers/test_classification_embeddings.py
120
8
self.assertEqual
test_embed_with_proba
import unittest import pytest from unittest import mock from small_text.integrations.pytorch.exceptions import PytorchNotFoundError from tests.utils.datasets import twenty_news_transformers from tests.utils.testing import assert_array_not_equal try: from small_text.integrations.transformers import ( Trans...
embeddings.shape[0])
added
d075ca55302293bff28d938df27e9bf1407797fad645cd4c6693baeaec5d8a13
self.assertEqual|test_embed_with_proba|import unittest import pytest from unittest import mock from small_text.integrations.pytorch.exceptions import PytorchNotFoundError from tests.utils.datasets import twenty_news_transformers from tests.utils.testing import assert_array_not_equal try: from small_text.integrations.tr...
null
null
null
webis-de/small-text
train
170
8fd0fbb7b980a178979b445c9c8514c0c0286e34
train
tests/unit/small_text/query_strategies/test_multi_label.py
train
webis-de/small-text:tests/unit/small_text/query_strategies/test_multi_label.py
59
8
self.assertTrue
test_label_cardinality_inconsistency_average_one_and_a_half_labels
import unittest import numpy as np from scipy.sparse import csr_matrix from small_text.query_strategies.multi_label import ( CategoryVectorInconsistencyAndRanking, _label_cardinality_inconsistency, LabelCardinalityInconsistency, _uncertainty_weighted_label_cardinality_inconsistency, AdaptiveActive...
lci[1] == lci[2] < lci[0] == lci[0])
modified
f579deeb7369ef5b399af8c54014e4ec3b2ebc609f9272aac305b20af9731cca
self.assertTrue|test_label_cardinality_inconsistency_average_one_and_a_half_labels|import unittest import numpy as np from scipy.sparse import csr_matrix from small_text.query_strategies.multi_label import ( CategoryVectorInconsistencyAndRanking, _label_cardinality_inconsistency, LabelCardinalityInconsistency, _uncerta...
lci[1] == lci[2] < lci[0] == lci[0])
61
8
webis-de/small-text
train
170
8fd0fbb7b980a178979b445c9c8514c0c0286e34
train
tests/unit/small_text/query_strategies/test_multi_label.py
train
webis-de/small-text:tests/unit/small_text/query_strategies/test_multi_label.py
81
8
self.assertEqual
test_label_cardinality_inconsistency_empty_predictions_and_labels
import unittest import numpy as np from scipy.sparse import csr_matrix from small_text.query_strategies.multi_label import ( CategoryVectorInconsistencyAndRanking, _label_cardinality_inconsistency, LabelCardinalityInconsistency, _uncertainty_weighted_label_cardinality_inconsistency, AdaptiveActive...
lci.shape)
modified
982631e0e04c3bc3599ccaf9d1fbe8f0a3895f3d4eabd367ab74c6dfb3a811c2
self.assertEqual|test_label_cardinality_inconsistency_empty_predictions_and_labels|import unittest import numpy as np from scipy.sparse import csr_matrix from small_text.query_strategies.multi_label import ( CategoryVectorInconsistencyAndRanking, _label_cardinality_inconsistency, LabelCardinalityInconsistency, _uncerta...
lci.shape)
83
8
webis-de/small-text
train
170
8fd0fbb7b980a178979b445c9c8514c0c0286e34
train
tests/unit/small_text/query_strategies/test_multi_label.py
train
webis-de/small-text:tests/unit/small_text/query_strategies/test_multi_label.py
194
8
self.assertEqual
test_init
import unittest import numpy as np from scipy.sparse import csr_matrix from small_text.query_strategies.multi_label import ( CategoryVectorInconsistencyAndRanking, _label_cardinality_inconsistency, LabelCardinalityInconsistency, _uncertainty_weighted_label_cardinality_inconsistency, AdaptiveActive...
query_strategy.epsilon)
modified
400e849fed9f5b0aaa722ad8e1f4d964b3ed0ce9d82b4892782b97f3da37e55e
self.assertEqual|test_init|import unittest import numpy as np from scipy.sparse import csr_matrix from small_text.query_strategies.multi_label import ( CategoryVectorInconsistencyAndRanking, _label_cardinality_inconsistency, LabelCardinalityInconsistency, _uncertainty_weighted_label_cardinality_inconsistency, AdaptiveA...
query_strategy.epsilon)
194
8
webis-de/small-text
train
171
19eb60f0b2046acb8e79ec91827f6a976b9bba52
train
tests/integration/small_text/integrations/pytorch/classifiers/test_kimcnn.py
val
webis-de/small-text:tests/integration/small_text/integrations/pytorch/classifiers/test_kimcnn.py
205
12
self.assertEqual
test_fit_with_early_stopping_default
import unittest import pytest import numpy as np from packaging.version import parse, Version from unittest.mock import patch from unittest import mock from unittest.mock import Mock from scipy.sparse import issparse from small_text.integrations.pytorch.exceptions import PytorchNotFoundError from small_text.training...
early_stopping_arg.early_stopping_handlers[1].metric.name)
modified
95793c3a41a4573229adb95d07f0c2be578aebda343d0f7bb31ad841a81b7b4b
self.assertEqual|test_fit_with_early_stopping_default|import unittest import pytest import numpy as np from packaging.version import parse, Version from unittest.mock import patch from unittest import mock from unittest.mock import Mock from scipy.sparse import issparse from small_text.integrations.pytorch.exceptions i...
early_stopping_arg.patience)
202
12
webis-de/small-text
train
171
19eb60f0b2046acb8e79ec91827f6a976b9bba52
train
tests/integration/small_text/integrations/pytorch/classifiers/test_kimcnn.py
val
webis-de/small-text:tests/integration/small_text/integrations/pytorch/classifiers/test_kimcnn.py
270
12
self.assertTrue
test_fit_with_model_selection_none
import unittest import pytest import numpy as np from packaging.version import parse, Version from unittest.mock import patch from unittest import mock from unittest.mock import Mock from scipy.sparse import issparse from small_text.integrations.pytorch.exceptions import PytorchNotFoundError from small_text.training...
isinstance(model_selection_arg, NoopModelSelection))
modified
50f89c51f2b7bddab4c7cb7c5eee3d539c78c2b6bec08b204def94c96db352b9
self.assertTrue|test_fit_with_model_selection_none|import unittest import pytest import numpy as np from packaging.version import parse, Version from unittest.mock import patch from unittest import mock from unittest.mock import Mock from scipy.sparse import issparse from small_text.integrations.pytorch.exceptions impo...
isinstance(model_selection_arg, NoopModelSelection))
267
12
webis-de/small-text
train
171
19eb60f0b2046acb8e79ec91827f6a976b9bba52
train
tests/integration/small_text/integrations/transformers/classifiers/test_classification.py
train
webis-de/small-text:tests/integration/small_text/integrations/transformers/classifiers/test_classification.py
98
13
self.assertRaisesRegex
test_fit_with_finetuning_args_and_scheduler_kwargs
import unittest import pytest import warnings import numpy as np from packaging.version import parse, Version from unittest import mock from unittest.mock import patch, Mock from scipy.sparse import issparse from small_text.integrations.pytorch.exceptions import PytorchNotFoundError from small_text.training.early_s...
ValueError, 'When fine_tuning_arguments are provided')
modified
24cce6327e2a366f7be3617bc6647e314b2f07121feeda7e969388265b03046e
self.assertRaisesRegex|test_fit_with_finetuning_args_and_scheduler_kwargs|import unittest import pytest import warnings import numpy as np from packaging.version import parse, Version from unittest import mock from unittest.mock import patch, Mock from scipy.sparse import issparse from small_text.integrations.pytorch.e...
ValueError, 'When fine_tuning_arguments are provided')
98
13
webis-de/small-text
train
171
19eb60f0b2046acb8e79ec91827f6a976b9bba52
train
tests/integration/small_text/integrations/transformers/classifiers/test_classification.py
train
webis-de/small-text:tests/integration/small_text/integrations/transformers/classifiers/test_classification.py
139
12
self.assertEqual
test_fit_and_predict
import unittest import pytest import warnings import numpy as np from packaging.version import parse, Version from unittest import mock from unittest.mock import patch, Mock from scipy.sparse import issparse from small_text.integrations.pytorch.exceptions import PytorchNotFoundError from small_text.training.early_s...
np.int64)
modified
ac2aa46d0120c0c896f83f979eafb477a23b42b82db2cd65d06c3c7e9fbecb18
self.assertEqual|test_fit_and_predict|import unittest import pytest import warnings import numpy as np from packaging.version import parse, Version from unittest import mock from unittest.mock import patch, Mock from scipy.sparse import issparse from small_text.integrations.pytorch.exceptions import PytorchNotFoundErro...
np.int64)
139
12
webis-de/small-text
train
171
19eb60f0b2046acb8e79ec91827f6a976b9bba52
train
tests/unit/small_text/integrations/pytorch/classifiers/test_kimcnn.py
train
webis-de/small-text:tests/unit/small_text/integrations/pytorch/classifiers/test_kimcnn.py
189
8
self.assertEqual
test_predict_proba_on_empty_data
import unittest import pytest import numpy as np from unittest.mock import patch from small_text.base import LABEL_UNLABELED from small_text.integrations.pytorch.exceptions import PytorchNotFoundError from small_text.training.metrics import Metric from small_text.training.early_stopping import EarlyStopping, EarlySto...
proba.shape[0])
added
756d62fb41271575eb0de666c3752596f862bda4d3f2c3426ab7f28205af5b11
self.assertEqual|test_predict_proba_on_empty_data|import unittest import pytest import numpy as np from unittest.mock import patch from small_text.base import LABEL_UNLABELED from small_text.integrations.pytorch.exceptions import PytorchNotFoundError from small_text.training.metrics import Metric from small_text.traini...
null
null
null
webis-de/small-text
train
171
19eb60f0b2046acb8e79ec91827f6a976b9bba52
train
tests/unit/small_text/integrations/pytorch/classifiers/test_kimcnn.py
train
webis-de/small-text:tests/unit/small_text/integrations/pytorch/classifiers/test_kimcnn.py
201
13
self.assertRaisesRegex
test_fit_with_invalid_sample_weights
import unittest import pytest import numpy as np from unittest.mock import patch from small_text.base import LABEL_UNLABELED from small_text.integrations.pytorch.exceptions import PytorchNotFoundError from small_text.training.metrics import Metric from small_text.training.early_stopping import EarlyStopping, EarlySto...
ValueError, 'Weights must be greater zero.')
added
adab5c2ed6e1f4109b03a17eb863919b3b9f3c3ba93a0d072ebcac2942ec8035
self.assertRaisesRegex|test_fit_with_invalid_sample_weights|import unittest import pytest import numpy as np from unittest.mock import patch from small_text.base import LABEL_UNLABELED from small_text.integrations.pytorch.exceptions import PytorchNotFoundError from small_text.training.metrics import Metric from small_t...
null
null
null
webis-de/small-text
train
171
19eb60f0b2046acb8e79ec91827f6a976b9bba52
train
tests/unit/small_text/integrations/transformers/classifiers/test_classification.py
train
webis-de/small-text:tests/unit/small_text/integrations/transformers/classifiers/test_classification.py
202
13
self.assertRaisesRegex
test_fit_where_y_train_contains_unlabeled
import os import unittest import pytest import small_text import numpy as np from importlib import reload from unittest.mock import patch from small_text.base import LABEL_UNLABELED from small_text.integrations.pytorch.exceptions import PytorchNotFoundError from small_text.training.early_stopping import EarlyStoppin...
ValueError, 'Training set labels must be labeled')
added
51c24e54dac5f7b3b653c817a0318c7b9b4ddc3b9af8ab529e5a0a9f7d469b79
self.assertRaisesRegex|test_fit_where_y_train_contains_unlabeled|import os import unittest import pytest import small_text import numpy as np from importlib import reload from unittest.mock import patch from small_text.base import LABEL_UNLABELED from small_text.integrations.pytorch.exceptions import PytorchNotFoundErr...
null
null
null
webis-de/small-text
train
171
19eb60f0b2046acb8e79ec91827f6a976b9bba52
train
tests/unit/small_text/integrations/transformers/classifiers/test_classification.py
train
webis-de/small-text:tests/unit/small_text/integrations/transformers/classifiers/test_classification.py
298
12
self.assertEqual
test_fit_with_optimizer_and_scheduler
import os import unittest import pytest import small_text import numpy as np from importlib import reload from unittest.mock import patch from small_text.base import LABEL_UNLABELED from small_text.integrations.pytorch.exceptions import PytorchNotFoundError from small_text.training.early_stopping import EarlyStoppin...
call_args[6])
added
c6b6fd450a0e191726fb6e833b2e2f64eec032ab6e3464be01fc82f560f82511
self.assertEqual|test_fit_with_optimizer_and_scheduler|import os import unittest import pytest import small_text import numpy as np from importlib import reload from unittest.mock import patch from small_text.base import LABEL_UNLABELED from small_text.integrations.pytorch.exceptions import PytorchNotFoundError from sm...
null
null
null
webis-de/small-text
train
172
ee1dd442a2548320b6bdf8c6694af94f00db0bb6
train
tests/unit/small_text/query_strategies/test_coresets.py
train
webis-de/small-text:tests/unit/small_text/query_strategies/test_coresets.py
97
8
self.assertEqual
test_simple_query
import unittest import numpy as np from small_text.classifiers import ConfidenceEnhancedLinearSVC from small_text.data.datasets import SklearnDataset from small_text.query_strategies import ( EmptyPoolException, greedy_coreset, GreedyCoreset, lightweight_coreset, LightweightCoreset ) from tests.un...
len(indices))
added
5d9a2a91125621e384b1402f07a2874e66ef4f1804fa6f93abdd55dab2e6547f
self.assertEqual|test_simple_query|import unittest import numpy as np from small_text.classifiers import ConfidenceEnhancedLinearSVC from small_text.data.datasets import SklearnDataset from small_text.query_strategies import ( EmptyPoolException, greedy_coreset, GreedyCoreset, lightweight_coreset, LightweightCoreset ) ...
null
null
null
webis-de/small-text
train
172
ee1dd442a2548320b6bdf8c6694af94f00db0bb6
train
tests/unit/small_text/query_strategies/test_coresets.py
train
webis-de/small-text:tests/unit/small_text/query_strategies/test_coresets.py
118
8
self.assertEqual
test_str
import unittest import numpy as np from small_text.classifiers import ConfidenceEnhancedLinearSVC from small_text.data.datasets import SklearnDataset from small_text.query_strategies import ( EmptyPoolException, greedy_coreset, GreedyCoreset, lightweight_coreset, LightweightCoreset ) from tests.un...
str(strategy))
added
274ceeef331613aed18ccd5ead7d9a537c7cda4d3627faca591e79aff9cb440b
self.assertEqual|test_str|import unittest import numpy as np from small_text.classifiers import ConfidenceEnhancedLinearSVC from small_text.data.datasets import SklearnDataset from small_text.query_strategies import ( EmptyPoolException, greedy_coreset, GreedyCoreset, lightweight_coreset, LightweightCoreset ) from test...
null
null
null
webis-de/small-text
train
172
ee1dd442a2548320b6bdf8c6694af94f00db0bb6
train
tests/unit/small_text/query_strategies/test_coresets.py
train
webis-de/small-text:tests/unit/small_text/query_strategies/test_coresets.py
206
8
self.assertEqual
test_query_takes_remaining_pool
import unittest import numpy as np from small_text.classifiers import ConfidenceEnhancedLinearSVC from small_text.data.datasets import SklearnDataset from small_text.query_strategies import ( EmptyPoolException, greedy_coreset, GreedyCoreset, lightweight_coreset, LightweightCoreset ) from tests.un...
len(indices))
added
48a5c2c30eb5ace317d1f12c0176f00b5f93d3a36b232032c7c80144eb742581
self.assertEqual|test_query_takes_remaining_pool|import unittest import numpy as np from small_text.classifiers import ConfidenceEnhancedLinearSVC from small_text.data.datasets import SklearnDataset from small_text.query_strategies import ( EmptyPoolException, greedy_coreset, GreedyCoreset, lightweight_coreset, Lightwe...
null
null
null
webis-de/small-text
train
172
ee1dd442a2548320b6bdf8c6694af94f00db0bb6
train
tests/unit/small_text/query_strategies/test_coresets.py
train
webis-de/small-text:tests/unit/small_text/query_strategies/test_coresets.py
215
8
self.assertEqual
test_lightweight_coreset_query_default
import unittest import numpy as np from small_text.classifiers import ConfidenceEnhancedLinearSVC from small_text.data.datasets import SklearnDataset from small_text.query_strategies import ( EmptyPoolException, greedy_coreset, GreedyCoreset, lightweight_coreset, LightweightCoreset ) from tests.un...
len(indices))
added
404a1dec80607b4904f025cacc7c90ddbf5ecb773379932a6cf342ddd2880203
self.assertEqual|test_lightweight_coreset_query_default|import unittest import numpy as np from small_text.classifiers import ConfidenceEnhancedLinearSVC from small_text.data.datasets import SklearnDataset from small_text.query_strategies import ( EmptyPoolException, greedy_coreset, GreedyCoreset, lightweight_coreset, ...
null
null
null
webis-de/small-text
train
173
21665a68f4a81f8c0fa3b181e08126ea2bf4985e
train
tests/unit/small_text/query_strategies/test_coresets.py
train
webis-de/small-text:tests/unit/small_text/query_strategies/test_coresets.py
173
13
self.assertRaisesRegex
test_query_with_invalid_distance_metric
import unittest import numpy as np from small_text.classifiers import ConfidenceEnhancedLinearSVC from small_text.data.datasets import SklearnDataset from small_text.query_strategies import ( EmptyPoolException, greedy_coreset, GreedyCoreset, lightweight_coreset, LightweightCoreset ) from tests.un...
ValueError, 'Invalid distance metric:')
added
46518369efc0aacabcf7297a6ee6d8e62e60f3d411ce3fb1217a146038fcee88
self.assertRaisesRegex|test_query_with_invalid_distance_metric|import unittest import numpy as np from small_text.classifiers import ConfidenceEnhancedLinearSVC from small_text.data.datasets import SklearnDataset from small_text.query_strategies import ( EmptyPoolException, greedy_coreset, GreedyCoreset, lightweight_co...
null
null
null
webis-de/small-text
train
173
21665a68f4a81f8c0fa3b181e08126ea2bf4985e
train
tests/unit/small_text/query_strategies/test_coresets.py
train
webis-de/small-text:tests/unit/small_text/query_strategies/test_coresets.py
219
8
self.assertEqual
test_default_query
import unittest import numpy as np from small_text.classifiers import ConfidenceEnhancedLinearSVC from small_text.data.datasets import SklearnDataset from small_text.query_strategies import ( EmptyPoolException, greedy_coreset, GreedyCoreset, lightweight_coreset, LightweightCoreset ) from tests.un...
len(indices))
added
173a37d950faaffb48bdaad3b851a03facf10ab69c99e19f01adc33c28c3f265
self.assertEqual|test_default_query|import unittest import numpy as np from small_text.classifiers import ConfidenceEnhancedLinearSVC from small_text.data.datasets import SklearnDataset from small_text.query_strategies import ( EmptyPoolException, greedy_coreset, GreedyCoreset, lightweight_coreset, LightweightCoreset )...
null
null
null
webis-de/small-text
train
173
21665a68f4a81f8c0fa3b181e08126ea2bf4985e
train
tests/unit/small_text/query_strategies/test_coresets.py
train
webis-de/small-text:tests/unit/small_text/query_strategies/test_coresets.py
228
8
self.assertEqual
test_query_takes_remaining_pool
import unittest import numpy as np from small_text.classifiers import ConfidenceEnhancedLinearSVC from small_text.data.datasets import SklearnDataset from small_text.query_strategies import ( EmptyPoolException, greedy_coreset, GreedyCoreset, lightweight_coreset, LightweightCoreset ) from tests.un...
len(indices))
added
1b8a7ea6c82c6ab27126234cddde741ee4cea7d4c6b3292136c417b5caaee92e
self.assertEqual|test_query_takes_remaining_pool|import unittest import numpy as np from small_text.classifiers import ConfidenceEnhancedLinearSVC from small_text.data.datasets import SklearnDataset from small_text.query_strategies import ( EmptyPoolException, greedy_coreset, GreedyCoreset, lightweight_coreset, Lightwe...
null
null
null
webis-de/small-text
train
173
21665a68f4a81f8c0fa3b181e08126ea2bf4985e
train
tests/unit/small_text/query_strategies/test_coresets.py
train
webis-de/small-text:tests/unit/small_text/query_strategies/test_coresets.py
249
13
self.assertRaises
test_lightweight_coreset_empty_pool
import unittest import numpy as np from small_text.classifiers import ConfidenceEnhancedLinearSVC from small_text.data.datasets import SklearnDataset from small_text.query_strategies import ( EmptyPoolException, greedy_coreset, GreedyCoreset, lightweight_coreset, LightweightCoreset ) from tests.un...
EmptyPoolException)
added
7905c65065698eeb521eceb02d333c2e0ff9b4ecf9727399eff4fe1778154915
self.assertRaises|test_lightweight_coreset_empty_pool|import unittest import numpy as np from small_text.classifiers import ConfidenceEnhancedLinearSVC from small_text.data.datasets import SklearnDataset from small_text.query_strategies import ( EmptyPoolException, greedy_coreset, GreedyCoreset, lightweight_coreset, Li...
null
null
null
webis-de/small-text
train
174
bd69f3354f734625bc7def78cf665004687aab1f
train
tests/unit/small_text/query_strategies/test_coresets.py
train
webis-de/small-text:tests/unit/small_text/query_strategies/test_coresets.py
169
8
self.assertEqual
test_query
import unittest import numpy as np from small_text.classifiers import ConfidenceEnhancedLinearSVC from small_text.data.datasets import SklearnDataset from small_text.query_strategies import ( EmptyPoolException, greedy_coreset, GreedyCoreset, lightweight_coreset, LightweightCoreset ) from tests.un...
(num_samples,))
modified
95ce6ac9744746602f6c0b2538192fb97362e68a3c753c10210ec5f7559dc584
self.assertEqual|test_query|import unittest import numpy as np from small_text.classifiers import ConfidenceEnhancedLinearSVC from small_text.data.datasets import SklearnDataset from small_text.query_strategies import ( EmptyPoolException, greedy_coreset, GreedyCoreset, lightweight_coreset, LightweightCoreset ) from te...
(num_samples,))
169
8
webis-de/small-text
train
174
bd69f3354f734625bc7def78cf665004687aab1f
train
tests/unit/small_text/query_strategies/test_coresets.py
train
webis-de/small-text:tests/unit/small_text/query_strategies/test_coresets.py
219
8
self.assertEqual
test_default_query
import unittest import numpy as np from small_text.classifiers import ConfidenceEnhancedLinearSVC from small_text.data.datasets import SklearnDataset from small_text.query_strategies import ( EmptyPoolException, greedy_coreset, GreedyCoreset, lightweight_coreset, LightweightCoreset ) from tests.un...
len(indices))
modified
81db21e86b8de2dbf08bef4dfffe69cd4df55fbc46a6f7b7e00ffead05a00d89
self.assertEqual|test_default_query|import unittest import numpy as np from small_text.classifiers import ConfidenceEnhancedLinearSVC from small_text.data.datasets import SklearnDataset from small_text.query_strategies import ( EmptyPoolException, greedy_coreset, GreedyCoreset, lightweight_coreset, LightweightCoreset )...
len(indices))
219
8
webis-de/small-text
train
174
bd69f3354f734625bc7def78cf665004687aab1f
train
tests/unit/small_text/query_strategies/test_coresets.py
train
webis-de/small-text:tests/unit/small_text/query_strategies/test_coresets.py
237
8
self.assertEqual
test_lightweight_coreset_query_default
import unittest import numpy as np from small_text.classifiers import ConfidenceEnhancedLinearSVC from small_text.data.datasets import SklearnDataset from small_text.query_strategies import ( EmptyPoolException, greedy_coreset, GreedyCoreset, lightweight_coreset, LightweightCoreset ) from tests.un...
len(indices))
modified
517cd576a62e7a43bf903094111004c127d31e808fca6b8668a00ec7377fa01c
self.assertEqual|test_lightweight_coreset_query_default|import unittest import numpy as np from small_text.classifiers import ConfidenceEnhancedLinearSVC from small_text.data.datasets import SklearnDataset from small_text.query_strategies import ( EmptyPoolException, greedy_coreset, GreedyCoreset, lightweight_coreset, ...
len(indices))
237
8
webis-de/small-text
train
174
bd69f3354f734625bc7def78cf665004687aab1f
train
tests/unit/small_text/query_strategies/test_coresets.py
train
webis-de/small-text:tests/unit/small_text/query_strategies/test_coresets.py
249
13
self.assertRaises
test_lightweight_coreset_empty_pool
import unittest import numpy as np from small_text.classifiers import ConfidenceEnhancedLinearSVC from small_text.data.datasets import SklearnDataset from small_text.query_strategies import ( EmptyPoolException, greedy_coreset, GreedyCoreset, lightweight_coreset, LightweightCoreset ) from tests.un...
EmptyPoolException)
modified
dc1adf32fc3364de6cec48af7835c3c1197761c20916e617a67cc33dcdf64920
self.assertRaises|test_lightweight_coreset_empty_pool|import unittest import numpy as np from small_text.classifiers import ConfidenceEnhancedLinearSVC from small_text.data.datasets import SklearnDataset from small_text.query_strategies import ( EmptyPoolException, greedy_coreset, GreedyCoreset, lightweight_coreset, Li...
EmptyPoolException)
249
13
webis-de/small-text
train
175
96bf79e57482dfe122cf2838297941b25a6fed54
train
tests/unit/small_text/utils/test_classification.py
train
webis-de/small-text:tests/unit/small_text/utils/test_classification.py
81
8
self.assertTrue
test_empty_result_single_label_prediction
import unittest import numpy as np from numpy.testing import assert_array_equal from scipy.sparse import csr_matrix from sklearn.preprocessing import MultiLabelBinarizer from small_text.utils.classification import empty_result, prediction_result from tests.utils.testing import assert_csr_matrix_equal class Classif...
isinstance(prediction, np.ndarray))
added
eeab0b2dbdd600efea3c1cdbf19e9f14838b9b2e2a12d9fe8be37178f77679b6
self.assertTrue|test_empty_result_single_label_prediction|import unittest import numpy as np from numpy.testing import assert_array_equal from scipy.sparse import csr_matrix from sklearn.preprocessing import MultiLabelBinarizer from small_text.utils.classification import empty_result, prediction_result from tests.utils...
null
null
null
webis-de/small-text
train
175
96bf79e57482dfe122cf2838297941b25a6fed54
train
tests/unit/small_text/utils/test_classification.py
train
webis-de/small-text:tests/unit/small_text/utils/test_classification.py
89
8
self.assertTrue
test_empty_result_single_label_proba
import unittest import numpy as np from numpy.testing import assert_array_equal from scipy.sparse import csr_matrix from sklearn.preprocessing import MultiLabelBinarizer from small_text.utils.classification import empty_result, prediction_result from tests.utils.testing import assert_csr_matrix_equal class Classif...
isinstance(proba, np.ndarray))
added
5849bb076b438fb68e888ac03756828260835c6c16fd4d08b864926840aa8831
self.assertTrue|test_empty_result_single_label_proba|import unittest import numpy as np from numpy.testing import assert_array_equal from scipy.sparse import csr_matrix from sklearn.preprocessing import MultiLabelBinarizer from small_text.utils.classification import empty_result, prediction_result from tests.utils.test...
null
null
null
webis-de/small-text
train
175
96bf79e57482dfe122cf2838297941b25a6fed54
train
tests/unit/small_text/utils/test_classification.py
train
webis-de/small-text:tests/unit/small_text/utils/test_classification.py
103
8
self.assertEqual
test_empty_result_single_label_both
import unittest import numpy as np from numpy.testing import assert_array_equal from scipy.sparse import csr_matrix from sklearn.preprocessing import MultiLabelBinarizer from small_text.utils.classification import empty_result, prediction_result from tests.utils.testing import assert_csr_matrix_equal class Classif...
proba.shape)
added
ff68d4953f36d82b9a5837dc481c5ba6e996f2d6c2a4d1908c70433c4ea06c3f
self.assertEqual|test_empty_result_single_label_both|import unittest import numpy as np from numpy.testing import assert_array_equal from scipy.sparse import csr_matrix from sklearn.preprocessing import MultiLabelBinarizer from small_text.utils.classification import empty_result, prediction_result from tests.utils.test...
null
null
null
webis-de/small-text
train
175
96bf79e57482dfe122cf2838297941b25a6fed54
train
tests/unit/small_text/utils/test_classification.py
train
webis-de/small-text:tests/unit/small_text/utils/test_classification.py
109
17
self.assertRaisesRegex
test_empty_result_invalid_call
import unittest import numpy as np from numpy.testing import assert_array_equal from scipy.sparse import csr_matrix from sklearn.preprocessing import MultiLabelBinarizer from small_text.utils.classification import empty_result, prediction_result from tests.utils.testing import assert_csr_matrix_equal class Classif...
ValueError, 'Invalid usage: At least one of')
added
0bd4afcae20a2f1923bbbdedfb3ffecb2c8f64ee6a0cef682becae05fb472054
self.assertRaisesRegex|test_empty_result_invalid_call|import unittest import numpy as np from numpy.testing import assert_array_equal from scipy.sparse import csr_matrix from sklearn.preprocessing import MultiLabelBinarizer from small_text.utils.classification import empty_result, prediction_result from tests.utils.tes...
null
null
null
webis-de/small-text
train
176
b8c3ea109b890926359e7e3235e44fa5f519b0e7
train
tests/unit/small_text/stopping_criteria/test_kappa.py
train
webis-de/small-text:tests/unit/small_text/stopping_criteria/test_kappa.py
49
8
self.assertAlmostEqual
test_without_perfect_agreement_and_weights
import unittest import numpy as np from numpy.testing import assert_array_equal from small_text.stopping_criteria.kappa import KappaAverage, _adapted_cohen_kappa_score class TestAdaptedCohenKappScore(unittest.TestCase): def test_without_perfect_agreement(self): self.assertEqual(0.0, _adapted_cohen_kapp...
_adapted_cohen_kappa_score( np.array([0, 1, 1, 2, 1]), np.array([0, 1, 2, 2, 0]), weights='quadratic' ))
added
89688e59512d18276a989f24dbbd7032a19f5ee189ee63ebe1d26bb51466e360
self.assertAlmostEqual|test_without_perfect_agreement_and_weights|import unittest import numpy as np from numpy.testing import assert_array_equal from small_text.stopping_criteria.kappa import KappaAverage, _adapted_cohen_kappa_score class TestAdaptedCohenKappScore(unittest.TestCase): def test_without_perfect_agreement...
null
null
null
webis-de/small-text
train
176
b8c3ea109b890926359e7e3235e44fa5f519b0e7
train
tests/unit/small_text/stopping_criteria/test_kappa.py
train
webis-de/small-text:tests/unit/small_text/stopping_criteria/test_kappa.py
71
8
self.assertEqual
test_with_perfect_agreement
import unittest import numpy as np from numpy.testing import assert_array_equal from small_text.stopping_criteria.kappa import KappaAverage, _adapted_cohen_kappa_score class TestAdaptedCohenKappScore(unittest.TestCase): def test_without_perfect_agreement(self): self.assertEqual(0.0, _adapted_cohen_kapp...
_adapted_cohen_kappa_score(np.array([0, 0, 0, 0, 0]), np.array([0, 0, 0, 0, 0])))
added
3f13f722fbfb8bd0967158bc128b8244d1fd9cb48142f1d2e7c45c8ac8fb9cf4
self.assertEqual|test_with_perfect_agreement|import unittest import numpy as np from numpy.testing import assert_array_equal from small_text.stopping_criteria.kappa import KappaAverage, _adapted_cohen_kappa_score class TestAdaptedCohenKappScore(unittest.TestCase): def test_without_perfect_agreement(self): self.assertEq...
null
null
null
webis-de/small-text
train
176
b8c3ea109b890926359e7e3235e44fa5f519b0e7
train
tests/unit/small_text/stopping_criteria/test_kappa.py
train
webis-de/small-text:tests/unit/small_text/stopping_criteria/test_kappa.py
151
8
assert_*
test_stop_with_nan_values
import unittest import numpy as np from numpy.testing import assert_array_equal from small_text.stopping_criteria.kappa import KappaAverage, _adapted_cohen_kappa_score class TestAdaptedCohenKappScore(unittest.TestCase): def test_without_perfect_agreement(self): self.assertEqual(0.0, _adapted_cohen_kapp...
stopping_criterion.last_predictions)
added
dc0488dc9149bfa0f40401ae90ea1c3ff7023791345baa82acb8674463add237
assert_*|test_stop_with_nan_values|import unittest import numpy as np from numpy.testing import assert_array_equal from small_text.stopping_criteria.kappa import KappaAverage, _adapted_cohen_kappa_score class TestAdaptedCohenKappScore(unittest.TestCase): def test_without_perfect_agreement(self): self.assertEqual(0.0, _...
null
null
null
webis-de/small-text
train
176
b8c3ea109b890926359e7e3235e44fa5f519b0e7
train
tests/unit/small_text/stopping_criteria/test_kappa.py
train
webis-de/small-text:tests/unit/small_text/stopping_criteria/test_kappa.py
156
13
self.assertRaises
test_stop_with_predictions_none
import unittest import numpy as np from numpy.testing import assert_array_equal from small_text.stopping_criteria.kappa import KappaAverage, _adapted_cohen_kappa_score class TestAdaptedCohenKappScore(unittest.TestCase): def test_without_perfect_agreement(self): self.assertEqual(0.0, _adapted_cohen_kapp...
ValueError)
added
eb2b4ffa8cf2ec8e64b7b4147a86c1c947ddd781ede56d7e41b0d77f3ccd2840
self.assertRaises|test_stop_with_predictions_none|import unittest import numpy as np from numpy.testing import assert_array_equal from small_text.stopping_criteria.kappa import KappaAverage, _adapted_cohen_kappa_score class TestAdaptedCohenKappScore(unittest.TestCase): def test_without_perfect_agreement(self): self.ass...
null
null
null
webis-de/small-text
train
177
613e03dec9dfb6a96c5c11b68f97f23df8f72f92
train
tests/unit/small_text/stopping_criteria/test_base.py
train
webis-de/small-text:tests/unit/small_text/stopping_criteria/test_base.py
58
8
assert_*
test_second_stop_call
import unittest import numpy as np from numpy.testing import assert_array_equal, assert_array_almost_equal from small_text.stopping_criteria.base import DeltaFScore class DeltaFScoreTest(unittest.TestCase): def test_init_default(self): stopping_criterion = DeltaFScore(2) self.assertEqual(2, st...
stopping_criterion.delta_history)
modified
5070776b1407c084d19199f10162dfe585b906f67fd52694db3e8c53ba5e443d
assert_*|test_second_stop_call|import unittest import numpy as np from numpy.testing import assert_array_equal, assert_array_almost_equal from small_text.stopping_criteria.base import DeltaFScore class DeltaFScoreTest(unittest.TestCase): def test_init_default(self): stopping_criterion = DeltaFScore(2) self.assertEqual(...
stopping_criterion.delta_history)
58
8
webis-de/small-text
train
177
613e03dec9dfb6a96c5c11b68f97f23df8f72f92
train
tests/unit/small_text/stopping_criteria/test_base.py
train
webis-de/small-text:tests/unit/small_text/stopping_criteria/test_base.py
77
8
assert_*
test_stop
import unittest import numpy as np from numpy.testing import assert_array_equal, assert_array_almost_equal from small_text.stopping_criteria.base import DeltaFScore class DeltaFScoreTest(unittest.TestCase): def test_init_default(self): stopping_criterion = DeltaFScore(2) self.assertEqual(2, st...
stopping_criterion.last_predictions)
modified
d8c8e0baa1a56ef0e9f54d03feaeebdf2eb7e5affb2ea8df07cf9172fb8d2fbe
assert_*|test_stop|import unittest import numpy as np from numpy.testing import assert_array_equal, assert_array_almost_equal from small_text.stopping_criteria.base import DeltaFScore class DeltaFScoreTest(unittest.TestCase): def test_init_default(self): stopping_criterion = DeltaFScore(2) self.assertEqual(2, stopping_...
stopping_criterion.last_predictions)
77
8
webis-de/small-text
train
177
613e03dec9dfb6a96c5c11b68f97f23df8f72f92
train
tests/unit/small_text/stopping_criteria/test_base.py
train
webis-de/small-text:tests/unit/small_text/stopping_criteria/test_base.py
89
13
self.assertRaises
test_stop_with_predictions_none
import unittest import numpy as np from numpy.testing import assert_array_equal, assert_array_almost_equal from small_text.stopping_criteria.base import DeltaFScore class DeltaFScoreTest(unittest.TestCase): def test_init_default(self): stopping_criterion = DeltaFScore(2) self.assertEqual(2, st...
ValueError)
added
55ebc9e10d0ec62fb2c90a1fce48bcf798fcbc8ac2296ba71ae0210a2b69e523
self.assertRaises|test_stop_with_predictions_none|import unittest import numpy as np from numpy.testing import assert_array_equal, assert_array_almost_equal from small_text.stopping_criteria.base import DeltaFScore class DeltaFScoreTest(unittest.TestCase): def test_init_default(self): stopping_criterion = DeltaFScore(2...
null
null
null
webis-de/small-text
train
177
613e03dec9dfb6a96c5c11b68f97f23df8f72f92
train
tests/unit/small_text/stopping_criteria/test_base.py
train
webis-de/small-text:tests/unit/small_text/stopping_criteria/test_base.py
95
13
self.assertRaises
test_stop_with_prediction_size_changing
import unittest import numpy as np from numpy.testing import assert_array_equal, assert_array_almost_equal from small_text.stopping_criteria.base import DeltaFScore class DeltaFScoreTest(unittest.TestCase): def test_init_default(self): stopping_criterion = DeltaFScore(2) self.assertEqual(2, st...
ValueError)
added
bc0f99591c636ee74ecae0d5f78969ea19fb603cbb1932e8c6971aafc5900c31
self.assertRaises|test_stop_with_prediction_size_changing|import unittest import numpy as np from numpy.testing import assert_array_equal, assert_array_almost_equal from small_text.stopping_criteria.base import DeltaFScore class DeltaFScoreTest(unittest.TestCase): def test_init_default(self): stopping_criterion = Delta...
null
null
null
webis-de/small-text
train
177
613e03dec9dfb6a96c5c11b68f97f23df8f72f92
train
tests/unit/small_text/stopping_criteria/test_kappa.py
train
webis-de/small-text:tests/unit/small_text/stopping_criteria/test_kappa.py
152
8
self.assertFalse
test_stop_with_perfect_agreement
import unittest import numpy as np from numpy.testing import assert_array_equal from small_text.stopping_criteria.kappa import KappaAverage, _adapted_cohen_kappa_score class TestAdaptedCohenKappScore(unittest.TestCase): def test_without_perfect_agreement(self): self.assertEqual(0.0, _adapted_cohen_kapp...
np.any(np.isnan(stopping_criterion.kappa_history)))
added
6887a60f4b759a03648a66e9590910cbcc08dd298b885fb005164dea30ba7cde
self.assertFalse|test_stop_with_perfect_agreement|import unittest import numpy as np from numpy.testing import assert_array_equal from small_text.stopping_criteria.kappa import KappaAverage, _adapted_cohen_kappa_score class TestAdaptedCohenKappScore(unittest.TestCase): def test_without_perfect_agreement(self): self.ass...
null
null
null
webis-de/small-text
train
177
613e03dec9dfb6a96c5c11b68f97f23df8f72f92
train
tests/unit/small_text/stopping_criteria/test_kappa.py
train
webis-de/small-text:tests/unit/small_text/stopping_criteria/test_kappa.py
158
13
self.assertRaises
test_stop_with_predictions_none
import unittest import numpy as np from numpy.testing import assert_array_equal from small_text.stopping_criteria.kappa import KappaAverage, _adapted_cohen_kappa_score class TestAdaptedCohenKappScore(unittest.TestCase): def test_without_perfect_agreement(self): self.assertEqual(0.0, _adapted_cohen_kapp...
ValueError)
modified
0b2b101345180d8dfba1515b671f57eccfc162d5aee5b066a39cfb34f5af285e
self.assertRaises|test_stop_with_predictions_none|import unittest import numpy as np from numpy.testing import assert_array_equal from small_text.stopping_criteria.kappa import KappaAverage, _adapted_cohen_kappa_score class TestAdaptedCohenKappScore(unittest.TestCase): def test_without_perfect_agreement(self): self.ass...
ValueError)
156
13
webis-de/small-text
train
177
613e03dec9dfb6a96c5c11b68f97f23df8f72f92
train
tests/unit/small_text/stopping_criteria/test_kappa.py
train
webis-de/small-text:tests/unit/small_text/stopping_criteria/test_kappa.py
161
13
self.assertRaises
test_stop_with_predictions_none
import unittest import numpy as np from numpy.testing import assert_array_equal from small_text.stopping_criteria.kappa import KappaAverage, _adapted_cohen_kappa_score class TestAdaptedCohenKappScore(unittest.TestCase): def test_without_perfect_agreement(self): self.assertEqual(0.0, _adapted_cohen_kapp...
ValueError)
modified
9a67dede1ebd59a0843551c74bfc93c99a1f46a8ee8c36ef2abb105e8383a60c
self.assertRaises|test_stop_with_predictions_none|import unittest import numpy as np from numpy.testing import assert_array_equal from small_text.stopping_criteria.kappa import KappaAverage, _adapted_cohen_kappa_score class TestAdaptedCohenKappScore(unittest.TestCase): def test_without_perfect_agreement(self): self.ass...
ValueError)
159
13
webis-de/small-text
train
177
613e03dec9dfb6a96c5c11b68f97f23df8f72f92
train
tests/unit/small_text/stopping_criteria/test_kappa.py
train
webis-de/small-text:tests/unit/small_text/stopping_criteria/test_kappa.py
167
13
self.assertRaises
test_stop_with_prediction_size_changing
import unittest import numpy as np from numpy.testing import assert_array_equal from small_text.stopping_criteria.kappa import KappaAverage, _adapted_cohen_kappa_score class TestAdaptedCohenKappScore(unittest.TestCase): def test_without_perfect_agreement(self): self.assertEqual(0.0, _adapted_cohen_kapp...
ValueError)
modified
857c69a3bda44a524165fea55964ac59b5216977bcd5dee965a92ccb2a947c75
self.assertRaises|test_stop_with_prediction_size_changing|import unittest import numpy as np from numpy.testing import assert_array_equal from small_text.stopping_criteria.kappa import KappaAverage, _adapted_cohen_kappa_score class TestAdaptedCohenKappScore(unittest.TestCase): def test_without_perfect_agreement(self): ...
ValueError)
165
13
webis-de/small-text
train
178
81523572f163de57bf093a80032c28efb2571726
train
tests/unit/small_text/query_strategies/test_class_balancing.py
train
webis-de/small-text:tests/unit/small_text/query_strategies/test_class_balancing.py
190
8
self.assertEqual
test_class_balancer_str
import unittest import numpy as np from unittest import mock from small_text import ( ConfidenceEnhancedLinearSVC, RandomSampling, SklearnClassifier, SklearnDataset ) from small_text.data.sampling import _get_class_histogram from small_text.query_strategies.class_balancing import ClassBalancer, _get_r...
str(strategy))
added
ff2b0e2380e63e982dda84e947a8e90a1a4c5660f7346e2e38f46d5f598edcda
self.assertEqual|test_class_balancer_str|import unittest import numpy as np from unittest import mock from small_text import ( ConfidenceEnhancedLinearSVC, RandomSampling, SklearnClassifier, SklearnDataset ) from small_text.data.sampling import _get_class_histogram from small_text.query_strategies.class_balancing impor...
null
null
null
webis-de/small-text
train
179
48b35c8e1e6cbe0ddd159e4b9d1a3b9734d5a66e
train
tests/unit/small_text/integrations/transformers/test_datasets.py
train
webis-de/small-text:tests/unit/small_text/integrations/transformers/test_datasets.py
165
13
self.assertRaisesRegex
test_set_labels_with_mismatching_data_length
import unittest import pytest import numpy as np from scipy.sparse import csr_matrix from numpy.testing import assert_array_equal from parameterized import parameterized_class from small_text.base import LABEL_UNLABELED from small_text.integrations.pytorch.datasets import PytorchDatasetView from small_text.integrat...
ValueError, 'Size mismatch: ')
modified
960a63753430a3ac862c3b4f87762a92636642b0b6f3cf5829868e86d79efd3f
self.assertRaisesRegex|test_set_labels_with_mismatching_data_length|import unittest import pytest import numpy as np from scipy.sparse import csr_matrix from numpy.testing import assert_array_equal from parameterized import parameterized_class from small_text.base import LABEL_UNLABELED from small_text.integrations.pyt...
ValueError, 'Size mismatch: ')
165
13
webis-de/small-text
train
179
48b35c8e1e6cbe0ddd159e4b9d1a3b9734d5a66e
train
tests/unit/small_text/integrations/transformers/test_datasets.py
train
webis-de/small-text:tests/unit/small_text/integrations/transformers/test_datasets.py
184
8
assert_*
test_set_target_labels
import unittest import pytest import numpy as np from scipy.sparse import csr_matrix from numpy.testing import assert_array_equal from parameterized import parameterized_class from small_text.base import LABEL_UNLABELED from small_text.integrations.pytorch.datasets import PytorchDatasetView from small_text.integrat...
ds.target_labels)
modified
d443418fba5d92a46cde11e3a20cb1d9c617dc0550d28bd3b1eff11a3619f993
assert_*|test_set_target_labels|import unittest import pytest import numpy as np from scipy.sparse import csr_matrix from numpy.testing import assert_array_equal from parameterized import parameterized_class from small_text.base import LABEL_UNLABELED from small_text.integrations.pytorch.datasets import PytorchDatasetV...
ds.target_labels)
184
8
webis-de/small-text
train
179
48b35c8e1e6cbe0ddd159e4b9d1a3b9734d5a66e
train
tests/unit/small_text/integrations/transformers/test_datasets.py
train
webis-de/small-text:tests/unit/small_text/integrations/transformers/test_datasets.py
240
8
self.assertTrue
test_indexing_single_index
import unittest import pytest import numpy as np from scipy.sparse import csr_matrix from numpy.testing import assert_array_equal from parameterized import parameterized_class from small_text.base import LABEL_UNLABELED from small_text.integrations.pytorch.datasets import PytorchDatasetView from small_text.integrat...
isinstance(result, PytorchDatasetView))
modified
ab954b129c0e9b05e9a98e40b66915efbd27752cd89862a758a7c43d7ba08b50
self.assertTrue|test_indexing_single_index|import unittest import pytest import numpy as np from scipy.sparse import csr_matrix from numpy.testing import assert_array_equal from parameterized import parameterized_class from small_text.base import LABEL_UNLABELED from small_text.integrations.pytorch.datasets import Pyto...
isinstance(result, PytorchDatasetView))
240
8
webis-de/small-text
train
179
48b35c8e1e6cbe0ddd159e4b9d1a3b9734d5a66e
train
tests/unit/small_text/integrations/transformers/test_datasets.py
train
webis-de/small-text:tests/unit/small_text/integrations/transformers/test_datasets.py
260
8
self.assertEqual
test_indexing_slicing
import unittest import pytest import numpy as np from scipy.sparse import csr_matrix from numpy.testing import assert_array_equal from parameterized import parameterized_class from small_text.base import LABEL_UNLABELED from small_text.integrations.pytorch.datasets import PytorchDatasetView from small_text.integrat...
len(result))
modified
a814430929cb4a6ecf32dabcbbc6920ea93814662edf4c62ed7d958e5e6a85b9
self.assertEqual|test_indexing_slicing|import unittest import pytest import numpy as np from scipy.sparse import csr_matrix from numpy.testing import assert_array_equal from parameterized import parameterized_class from small_text.base import LABEL_UNLABELED from small_text.integrations.pytorch.datasets import PytorchD...
len(result))
260
8
webis-de/small-text
train
180
21c757d1c34256ecf57f3191a3d339e708713c97
train
tests/unit/small_text/test_active_learner.py
val
webis-de/small-text:tests/unit/small_text/test_active_learner.py
135
8
self.assertEqual
test_init_with_kwargs
import unittest import numpy as np from unittest.mock import call, patch, Mock, ANY from numpy.testing import assert_array_equal from scipy import sparse from scipy.sparse import csr_matrix, vstack from small_text.active_learner import ( AbstractPoolBasedActiveLearner, ActiveLearner, PoolBasedActiveLearne...
active_learner.query_strategy)
modified
635466b819f4baf7e8c96a21d8a55bdb0f40873053a6968564185eb938c16368
self.assertEqual|test_init_with_kwargs|import unittest import numpy as np from unittest.mock import call, patch, Mock, ANY from numpy.testing import assert_array_equal from scipy import sparse from scipy.sparse import csr_matrix, vstack from small_text.active_learner import ( AbstractPoolBasedActiveLearner, ActiveLearn...
active_learner.fit_kwargs)
132
8
webis-de/small-text
train
180
21c757d1c34256ecf57f3191a3d339e708713c97
train
tests/unit/small_text/test_active_learner.py
val
webis-de/small-text:tests/unit/small_text/test_active_learner.py
197
16
self.assertEqual
_test_initialize_data
import unittest import numpy as np from unittest.mock import call, patch, Mock, ANY from numpy.testing import assert_array_equal from scipy import sparse from scipy.sparse import csr_matrix, vstack from small_text.active_learner import ( AbstractPoolBasedActiveLearner, ActiveLearner, PoolBasedActiveLearne...
len(clf_mock.fit.call_args[0][0]))
added
ec9b490e400c55938c618fe4cb2dcb6f3890775e8f208f7fced515d02bef7cb8
self.assertEqual|_test_initialize_data|import unittest import numpy as np from unittest.mock import call, patch, Mock, ANY from numpy.testing import assert_array_equal from scipy import sparse from scipy.sparse import csr_matrix, vstack from small_text.active_learner import ( AbstractPoolBasedActiveLearner, ActiveLearn...
null
null
null
webis-de/small-text
train
180
21c757d1c34256ecf57f3191a3d339e708713c97
train
tests/unit/small_text/test_active_learner.py
val
webis-de/small-text:tests/unit/small_text/test_active_learner.py
310
8
assert_*
test_query_with_kwargs
import unittest import numpy as np from unittest.mock import call, patch, Mock, ANY from numpy.testing import assert_array_equal from scipy import sparse from scipy.sparse import csr_matrix, vstack from small_text.active_learner import ( AbstractPoolBasedActiveLearner, ActiveLearner, PoolBasedActiveLearne...
y_initial)
added
4b6a11ea7525411c609487a48e7c2f627c29514695ec0f1ff01a2a7f4d296ff0
assert_*|test_query_with_kwargs|import unittest import numpy as np from unittest.mock import call, patch, Mock, ANY from numpy.testing import assert_array_equal from scipy import sparse from scipy.sparse import csr_matrix, vstack from small_text.active_learner import ( AbstractPoolBasedActiveLearner, ActiveLearner, Poo...
null
null
null
webis-de/small-text
train
180
21c757d1c34256ecf57f3191a3d339e708713c97
train
tests/unit/small_text/test_active_learner.py
val
webis-de/small-text:tests/unit/small_text/test_active_learner.py
401
12
assert_*
test_update_with_only_ignored_samples
import unittest import numpy as np from unittest.mock import call, patch, Mock, ANY from numpy.testing import assert_array_equal from scipy import sparse from scipy.sparse import csr_matrix, vstack from small_text.active_learner import ( AbstractPoolBasedActiveLearner, ActiveLearner, PoolBasedActiveLearne...
active_learner.indices_labeled)
modified
5a55af5072e2a848e25edbdee07cf299ec5b25d1559dda0fa59eee9121a252ea
assert_*|test_update_with_only_ignored_samples|import unittest import numpy as np from unittest.mock import call, patch, Mock, ANY from numpy.testing import assert_array_equal from scipy import sparse from scipy.sparse import csr_matrix, vstack from small_text.active_learner import ( AbstractPoolBasedActiveLearner, Act...
active_learner.indices_labeled)
400
12
webis-de/small-text
train
181
62e6f754f4a383f0bfba2f02ab272fe2ab5aac2e
train
tests/unit/small_text/test_active_learner.py
val
webis-de/small-text:tests/unit/small_text/test_active_learner.py
247
8
self.assertEqual
test_initialize_with_classifier
import unittest import numpy as np from unittest.mock import call, patch, Mock, ANY from numpy.testing import assert_array_equal from scipy import sparse from scipy.sparse import csr_matrix, vstack from small_text.active_learner import ( AbstractPoolBasedActiveLearner, ActiveLearner, PoolBasedActiveLearne...
active_learner.classifier)
added
01e74dd2c18b062cdd6a73135b29fb58638a6d282c002295c9fef0ce2179f95b
self.assertEqual|test_initialize_with_classifier|import unittest import numpy as np from unittest.mock import call, patch, Mock, ANY from numpy.testing import assert_array_equal from scipy import sparse from scipy.sparse import csr_matrix, vstack from small_text.active_learner import ( AbstractPoolBasedActiveLearner, A...
null
null
null
webis-de/small-text
train
181
62e6f754f4a383f0bfba2f02ab272fe2ab5aac2e
train
tests/unit/small_text/test_active_learner.py
val
webis-de/small-text:tests/unit/small_text/test_active_learner.py
376
16
assert_*
test_update
import unittest import numpy as np from unittest.mock import call, patch, Mock, ANY from numpy.testing import assert_array_equal from scipy import sparse from scipy.sparse import csr_matrix, vstack from small_text.active_learner import ( AbstractPoolBasedActiveLearner, ActiveLearner, PoolBasedActiveLearne...
active_learner.y)
added
275a82b10b214a9dc56a07a1652f8ef0bd2d993847dfe90033c0db64380622dd
assert_*|test_update|import unittest import numpy as np from unittest.mock import call, patch, Mock, ANY from numpy.testing import assert_array_equal from scipy import sparse from scipy.sparse import csr_matrix, vstack from small_text.active_learner import ( AbstractPoolBasedActiveLearner, ActiveLearner, PoolBasedActiv...
null
null
null
webis-de/small-text
train
181
62e6f754f4a383f0bfba2f02ab272fe2ab5aac2e
train
tests/unit/small_text/test_active_learner.py
val
webis-de/small-text:tests/unit/small_text/test_active_learner.py
734
12
self.assertEqual
_test_remove_label_at
import unittest import numpy as np from unittest.mock import call, patch, Mock, ANY from numpy.testing import assert_array_equal from scipy import sparse from scipy.sparse import csr_matrix, vstack from small_text.active_learner import ( AbstractPoolBasedActiveLearner, ActiveLearner, PoolBasedActiveLearne...
active_learner.y.shape[0])
added
fb5ae8b971228be5bfc344b9bb1ea54042ebe5898699b3d53ca4b7de5fc73963
self.assertEqual|_test_remove_label_at|import unittest import numpy as np from unittest.mock import call, patch, Mock, ANY from numpy.testing import assert_array_equal from scipy import sparse from scipy.sparse import csr_matrix, vstack from small_text.active_learner import ( AbstractPoolBasedActiveLearner, ActiveLearn...
null
null
null
webis-de/small-text
train
181
62e6f754f4a383f0bfba2f02ab272fe2ab5aac2e
train
tests/unit/small_text/test_active_learner.py
val
webis-de/small-text:tests/unit/small_text/test_active_learner.py
817
8
assert_*
_test_ignore_sample_without_label_change
import unittest import numpy as np from unittest.mock import call, patch, Mock, ANY from numpy.testing import assert_array_equal from scipy import sparse from scipy.sparse import csr_matrix, vstack from small_text.active_learner import ( AbstractPoolBasedActiveLearner, ActiveLearner, PoolBasedActiveLearne...
[call(indices_validation=indices_validation)])
added
d13ada559315c5efad5f22ec952673de5bfbe83625c0ca76ec0b26d8af81aa8b
assert_*|_test_ignore_sample_without_label_change|import unittest import numpy as np from unittest.mock import call, patch, Mock, ANY from numpy.testing import assert_array_equal from scipy import sparse from scipy.sparse import csr_matrix, vstack from small_text.active_learner import ( AbstractPoolBasedActiveLearner, ...
null
null
null
webisopen/OpenAgent
train
0
6bd1f6a86a48f24491d38a45bc6eaf75397bb6b6
train
tests/agent_trajectory/asset_management.py
val
webisopen/OpenAgent:tests/agent_trajectory/asset_management.py
42
20
self.assertEqual
async_test
import asyncio import unittest from langchain_core.messages import HumanMessage from openagent.agents.asset_management import asset_management_agent from openagent.conf.llm_provider import set_current_llm class TestAssetManagementAgent(unittest.TestCase): def setUp(self): set_current_llm("gemini-1.5-pro...
"TokenBalanceExecutor")
added
85d7b9b881221eba29d012bf039d169d3b2528bd8bfedb2088f73f7f26bb8e52
self.assertEqual|async_test|import asyncio import unittest from langchain_core.messages import HumanMessage from openagent.agents.asset_management import asset_management_agent from openagent.conf.llm_provider import set_current_llm class TestAssetManagementAgent(unittest.TestCase): def setUp(self): set_current_llm("ge...
null
null
null
webisopen/OpenAgent
train
0
6bd1f6a86a48f24491d38a45bc6eaf75397bb6b6
train
tests/agent_trajectory/asset_management.py
val
webisopen/OpenAgent:tests/agent_trajectory/asset_management.py
43
20
self.assertEqual
async_test
import asyncio import unittest from langchain_core.messages import HumanMessage from openagent.agents.asset_management import asset_management_agent from openagent.conf.llm_provider import set_current_llm class TestAssetManagementAgent(unittest.TestCase): def setUp(self): set_current_llm("gemini-1.5-pro...
"0x33c0814654fa367ce67d8531026eb4481290e63c")
added
881b0167931d2b1ca314ee491e84fc912e57aeb76d9198d1dda5b5d960e8b762
self.assertEqual|async_test|import asyncio import unittest from langchain_core.messages import HumanMessage from openagent.agents.asset_management import asset_management_agent from openagent.conf.llm_provider import set_current_llm class TestAssetManagementAgent(unittest.TestCase): def setUp(self): set_current_llm("ge...
null
null
null
webisopen/OpenAgent
train
0
6bd1f6a86a48f24491d38a45bc6eaf75397bb6b6
train
tests/agent_trajectory/block_explore.py
test
webisopen/OpenAgent:tests/agent_trajectory/block_explore.py
25
20
self.assertEqual
async_test
import asyncio import unittest from langchain_core.messages import HumanMessage from openagent.agents.block_explore import block_explorer_agent from openagent.conf.llm_provider import set_current_llm class TestBlockExploreAgent(unittest.TestCase): def setUp(self): # set_current_llm("gemini-1.5-pro") ...
"BlockChainStatExecutor")
added
3f1fc16354b620546fff9599441647e50a2e78153fe384c1d97919bb479d1be1
self.assertEqual|async_test|import asyncio import unittest from langchain_core.messages import HumanMessage from openagent.agents.block_explore import block_explorer_agent from openagent.conf.llm_provider import set_current_llm class TestBlockExploreAgent(unittest.TestCase): def setUp(self): # set_current_llm("gemini-1...
null
null
null
webisopen/OpenAgent
train
0
6bd1f6a86a48f24491d38a45bc6eaf75397bb6b6
train
tests/agent_trajectory/block_explore.py
test
webisopen/OpenAgent:tests/agent_trajectory/block_explore.py
26
20
self.assertEqual
async_test
import asyncio import unittest from langchain_core.messages import HumanMessage from openagent.agents.block_explore import block_explorer_agent from openagent.conf.llm_provider import set_current_llm class TestBlockExploreAgent(unittest.TestCase): def setUp(self): # set_current_llm("gemini-1.5-pro") ...
"ethereum")
added
b89299cb09bc89c4046c5cd8ed2ba46650201abe4e6873a5b98538d2b1fcc6af
self.assertEqual|async_test|import asyncio import unittest from langchain_core.messages import HumanMessage from openagent.agents.block_explore import block_explorer_agent from openagent.conf.llm_provider import set_current_llm class TestBlockExploreAgent(unittest.TestCase): def setUp(self): # set_current_llm("gemini-1...
null
null
null
webisopen/OpenAgent
train
0
6bd1f6a86a48f24491d38a45bc6eaf75397bb6b6
train
tests/agent_trajectory/feed_explore.py
train
webisopen/OpenAgent:tests/agent_trajectory/feed_explore.py
33
20
self.assertEqual
async_test
import asyncio import unittest from langchain_core.messages import HumanMessage from openagent.agents.feed_explore import feed_explorer_agent from openagent.conf.llm_provider import set_current_llm class TestFeedExploreAgent(unittest.TestCase): def setUp(self): set_current_llm("gpt-3.5-turbo") def ...
"DeFiExecutor")
added
b50e789a539f6d438a67024b530fd81eb2e48f267b308dd5a460159c9a538e01
self.assertEqual|async_test|import asyncio import unittest from langchain_core.messages import HumanMessage from openagent.agents.feed_explore import feed_explorer_agent from openagent.conf.llm_provider import set_current_llm class TestFeedExploreAgent(unittest.TestCase): def setUp(self): set_current_llm("gpt-3.5-turbo...
null
null
null
webisopen/OpenAgent
train
0
6bd1f6a86a48f24491d38a45bc6eaf75397bb6b6
train
tests/agent_trajectory/market_analysis.py
train
webisopen/OpenAgent:tests/agent_trajectory/market_analysis.py
51
20
self.assertEqual
async_test
import asyncio import unittest from langchain_core.messages import HumanMessage from openagent.agents.market_analysis import market_analysis_agent from openagent.conf.llm_provider import set_current_llm class TestMarketAnalysisAgent(unittest.TestCase): def setUp(self): # set_current_llm("gemini-1.5-pro"...
"FundingRateExecutor")
added
cfbe45d323f75df78c881baa9a65b03bece75e37a8ad444429c4feaec97bb8b5
self.assertEqual|async_test|import asyncio import unittest from langchain_core.messages import HumanMessage from openagent.agents.market_analysis import market_analysis_agent from openagent.conf.llm_provider import set_current_llm class TestMarketAnalysisAgent(unittest.TestCase): def setUp(self): # set_current_llm("gem...
null
null
null
webisopen/OpenAgent
train
0
6bd1f6a86a48f24491d38a45bc6eaf75397bb6b6
train
tests/agent_trajectory/research_analyst.py
train
webisopen/OpenAgent:tests/agent_trajectory/research_analyst.py
26
20
self.assertEqual
async_test
import asyncio import unittest from langchain_core.messages import HumanMessage from openagent.agents.project_management import research_analyst_agent from openagent.conf.llm_provider import set_current_llm class TestResearchAnalystAgent(unittest.TestCase): def setUp(self): # set_current_llm("gemini-1.5...
"RSS3")
added
636a826f83fc49cbf5e60991f6a6ca04741fad8902bd8c0c3ea589c990c896c5
self.assertEqual|async_test|import asyncio import unittest from langchain_core.messages import HumanMessage from openagent.agents.project_management import research_analyst_agent from openagent.conf.llm_provider import set_current_llm class TestResearchAnalystAgent(unittest.TestCase): def setUp(self): # set_current_llm...
null
null
null
webisopen/OpenAgent
train
0
6bd1f6a86a48f24491d38a45bc6eaf75397bb6b6
train
tests/supervisor_chain.py
train
webisopen/OpenAgent:tests/supervisor_chain.py
68
8
self.assertEqual
test_multi_step_query
import unittest from langchain_core.messages import HumanMessage from loguru import logger from openagent.conf.llm_provider import set_current_llm from openagent.workflows.supervisor_chain import build_supervisor_chain def next_role(query) -> str: supervisor_chain = build_supervisor_chain() resp = superviso...
f"Expected {expected_role}, but got {result} for query: {query}")
added
1c3c073754361a8e432c5c28a5d72609daa99a60ee159c3f9a0ed861e1d3c878
self.assertEqual|test_multi_step_query|import unittest from langchain_core.messages import HumanMessage from loguru import logger from openagent.conf.llm_provider import set_current_llm from openagent.workflows.supervisor_chain import build_supervisor_chain def next_role(query) -> str: supervisor_chain = build_supervis...
null
null
null
webisopen/OpenAgent
train
1
88570d9a2f947c3c7c541a65aeb6039adca011cd
train
tests/supervisor_chain.py
train
webisopen/OpenAgent:tests/supervisor_chain.py
40
8
self.assertEqual
test_asset_management_swap
import unittest from langchain_core.messages import HumanMessage from loguru import logger from openagent.conf.llm_provider import set_current_llm from openagent.workflows.supervisor_chain import build_supervisor_chain def next_role(query) -> str: supervisor_chain = build_supervisor_chain() resp = superviso...
f"Expected {expected_role}, but got {result} for query: {query}")
added
967fd0de41d81a6dd5391d87ff07c79d4692e54e4d66aecdd8da0a468fc7c259
self.assertEqual|test_asset_management_swap|import unittest from langchain_core.messages import HumanMessage from loguru import logger from openagent.conf.llm_provider import set_current_llm from openagent.workflows.supervisor_chain import build_supervisor_chain def next_role(query) -> str: supervisor_chain = build_sup...
null
null
null
webisopen/OpenAgent
train
1
88570d9a2f947c3c7c541a65aeb6039adca011cd
train
tests/supervisor_chain.py
train
webisopen/OpenAgent:tests/supervisor_chain.py
46
8
self.assertEqual
test_transfer_expert
import unittest from langchain_core.messages import HumanMessage from loguru import logger from openagent.conf.llm_provider import set_current_llm from openagent.workflows.supervisor_chain import build_supervisor_chain def next_role(query) -> str: supervisor_chain = build_supervisor_chain() resp = superviso...
f"Expected {expected_role}, but got {result} for query: {query}")
added
5ff7dcdf47a43a2a593405a127ec0a9aa72a81c991773f3d512b4abf50a33b32
self.assertEqual|test_transfer_expert|import unittest from langchain_core.messages import HumanMessage from loguru import logger from openagent.conf.llm_provider import set_current_llm from openagent.workflows.supervisor_chain import build_supervisor_chain def next_role(query) -> str: supervisor_chain = build_superviso...
null
null
null
webisopen/OpenAgent
train
1
88570d9a2f947c3c7c541a65aeb6039adca011cd
train
tests/supervisor_chain.py
train
webisopen/OpenAgent:tests/supervisor_chain.py
80
8
self.assertEqual
test_feed_explorer
import unittest from langchain_core.messages import HumanMessage from loguru import logger from openagent.conf.llm_provider import set_current_llm from openagent.workflows.supervisor_chain import build_supervisor_chain def next_role(query) -> str: supervisor_chain = build_supervisor_chain() resp = superviso...
f"Expected {expected_role}, but got {result} for query: {query}")
added
17345e9042e14024fc1d32cf8a3630b4983985ebf51172ae40e54ea8ec9ffbee
self.assertEqual|test_feed_explorer|import unittest from langchain_core.messages import HumanMessage from loguru import logger from openagent.conf.llm_provider import set_current_llm from openagent.workflows.supervisor_chain import build_supervisor_chain def next_role(query) -> str: supervisor_chain = build_supervisor_...
null
null
null
webisopen/OpenAgent
train
1
88570d9a2f947c3c7c541a65aeb6039adca011cd
train
tests/supervisor_chain.py
train
webisopen/OpenAgent:tests/supervisor_chain.py
92
8
self.assertEqual
test_feed_explorer_source
import unittest from langchain_core.messages import HumanMessage from loguru import logger from openagent.conf.llm_provider import set_current_llm from openagent.workflows.supervisor_chain import build_supervisor_chain def next_role(query) -> str: supervisor_chain = build_supervisor_chain() resp = superviso...
f"Expected {expected_role}, but got {result} for query: {query}")
added
3ae5a0f91e23539020ba9762b0944baa3235b31bd5839961fba2b05e2d740f80
self.assertEqual|test_feed_explorer_source|import unittest from langchain_core.messages import HumanMessage from loguru import logger from openagent.conf.llm_provider import set_current_llm from openagent.workflows.supervisor_chain import build_supervisor_chain def next_role(query) -> str: supervisor_chain = build_supe...
null
null
null
webisopen/OpenAgent
train
2
33c495d953757fce0ce6e06044aa6d11327585c2
train
tests/agent_trajectory/asset_management.py
val
webisopen/OpenAgent:tests/agent_trajectory/asset_management.py
38
20
self.assertEqual
async_test
import asyncio import os import sys import unittest sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))) from langchain_core.messages import HumanMessage from openagent.agents.asset_management import asset_management_agent from openagent.conf.llm_provider import set_current_llm from ...
"SwapExecutor")
added
e325866ae47082229e124a0043c18b155197ac7cffabb91236aa8ad46d14e887
self.assertEqual|async_test|import asyncio import os import sys import unittest sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))) from langchain_core.messages import HumanMessage from openagent.agents.asset_management import asset_management_agent from openagent.conf.llm_provider imp...
null
null
null
webisopen/OpenAgent
train
2
33c495d953757fce0ce6e06044aa6d11327585c2
train
tests/agent_trajectory/block_explore.py
test
webisopen/OpenAgent:tests/agent_trajectory/block_explore.py
38
20
self.assertEqual
async_test
import asyncio import os import sys import unittest sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))) from langchain_core.messages import HumanMessage from openagent.agents.block_explore import block_explorer_agent from openagent.conf.llm_provider import set_current_llm from tests...
"BlockChainStatExecutor")
added
ae0f1854f035afa2174c66558f7ca3bfd4a1924afdafb14270b2ea1fa045108e
self.assertEqual|async_test|import asyncio import os import sys import unittest sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))) from langchain_core.messages import HumanMessage from openagent.agents.block_explore import block_explorer_agent from openagent.conf.llm_provider import s...
null
null
null
webisopen/OpenAgent
train
2
33c495d953757fce0ce6e06044aa6d11327585c2
train
tests/agent_trajectory/block_explore.py
test
webisopen/OpenAgent:tests/agent_trajectory/block_explore.py
39
20
self.assertEqual
async_test
import asyncio import os import sys import unittest sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))) from langchain_core.messages import HumanMessage from openagent.agents.block_explore import block_explorer_agent from openagent.conf.llm_provider import set_current_llm from tests...
"ethereum")
added
ab3e80e3e37ff85b10580956c1219219254f7687fdf5967d78efa18a5b58d6d8
self.assertEqual|async_test|import asyncio import os import sys import unittest sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))) from langchain_core.messages import HumanMessage from openagent.agents.block_explore import block_explorer_agent from openagent.conf.llm_provider import s...
null
null
null
webisopen/OpenAgent
train
2
33c495d953757fce0ce6e06044aa6d11327585c2
train
tests/agent_trajectory/feed_explore.py
train
webisopen/OpenAgent:tests/agent_trajectory/feed_explore.py
68
20
self.assertEqual
async_test
import asyncio import os import sys import unittest sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))) from langchain_core.messages import HumanMessage from openagent.agents.feed_explore import feed_explorer_agent from openagent.conf.llm_provider import set_current_llm from tests.b...
"vitalik.eth")
added
42365b8804fd8ea6a429673513aef9bbc76d1d6d28cb89a8d3e103e0162c996f
self.assertEqual|async_test|import asyncio import os import sys import unittest sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))) from langchain_core.messages import HumanMessage from openagent.agents.feed_explore import feed_explorer_agent from openagent.conf.llm_provider import set...
null
null
null
webisopen/OpenAgent
train
2
33c495d953757fce0ce6e06044aa6d11327585c2
train
tests/agent_trajectory/feed_explore.py
train
webisopen/OpenAgent:tests/agent_trajectory/feed_explore.py
91
20
self.assertEqual
async_test
import asyncio import os import sys import unittest sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))) from langchain_core.messages import HumanMessage from openagent.agents.feed_explore import feed_explorer_agent from openagent.conf.llm_provider import set_current_llm from tests.b...
"ethereum")
added
2ff54655176e3aaabe52c152348d14d5fe757c394edfd582daf797551a233743
self.assertEqual|async_test|import asyncio import os import sys import unittest sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))) from langchain_core.messages import HumanMessage from openagent.agents.feed_explore import feed_explorer_agent from openagent.conf.llm_provider import set...
null
null
null
webisopen/OpenAgent
train
2
33c495d953757fce0ce6e06044aa6d11327585c2
train
tests/agent_trajectory/market_analysis.py
train
webisopen/OpenAgent:tests/agent_trajectory/market_analysis.py
64
20
self.assertEqual
async_test
import asyncio import os import sys import unittest sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))) from langchain_core.messages import HumanMessage from openagent.agents.market_analysis import market_analysis_agent from openagent.conf.llm_provider import set_current_llm from te...
"FundingRateExecutor")
added
42d585f1914f8d895bc5d2edd4067883989eae6b70c2f45187120011c73f3589
self.assertEqual|async_test|import asyncio import os import sys import unittest sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))) from langchain_core.messages import HumanMessage from openagent.agents.market_analysis import market_analysis_agent from openagent.conf.llm_provider impor...
null
null
null
webisopen/OpenAgent
train
2
33c495d953757fce0ce6e06044aa6d11327585c2
train
tests/agent_trajectory/market_analysis.py
train
webisopen/OpenAgent:tests/agent_trajectory/market_analysis.py
78
20
self.assertEqual
async_test
import asyncio import os import sys import unittest sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))) from langchain_core.messages import HumanMessage from openagent.agents.market_analysis import market_analysis_agent from openagent.conf.llm_provider import set_current_llm from te...
"NFTRankingExecutor")
added
e9d76c8af3e8a4e5f12531f64df5a61a6d6a9c2b95ec38b7c8a6e92fe764cdff
self.assertEqual|async_test|import asyncio import os import sys import unittest sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))) from langchain_core.messages import HumanMessage from openagent.agents.market_analysis import market_analysis_agent from openagent.conf.llm_provider impor...
null
null
null
webisopen/OpenAgent
train
2
33c495d953757fce0ce6e06044aa6d11327585c2
train
tests/agent_trajectory/research_analyst.py
train
webisopen/OpenAgent:tests/agent_trajectory/research_analyst.py
39
20
self.assertEqual
async_test
import asyncio import os import sys import unittest sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))) from langchain_core.messages import HumanMessage from openagent.agents.project_management import research_analyst_agent from openagent.conf.llm_provider import set_current_llm fro...
"RSS3")
added
18acbf060b33495b07474bcfe0553efd8dc77df1a244e835e8a13cc3bfd82f63
self.assertEqual|async_test|import asyncio import os import sys import unittest sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))) from langchain_core.messages import HumanMessage from openagent.agents.project_management import research_analyst_agent from openagent.conf.llm_provider i...
null
null
null
wee-slack/wee-slack
train
0
633d3ad78fe55709b5f5894a6e9668e0d606e5ec
train
_pytest/test_presencechange.py
train
wee-slack/wee-slack:_pytest/test_presencechange.py
27
4
assert
test_PresenceChange
def test_PresenceChange(monkeypatch, realish_eventrouter, mock_websocket): e = realish_eventrouter t = e.teams.keys()[0] u = e.teams[t].users.keys()[0] user = e.teams[t].users[u] socket = mock_websocket e.teams[t].ws = socket socket.add({ "type": "presence_change", "use...
"active"
added
9859a454f843dfa9f40166c8c0e10a2f90c722af0bd2d5574e7fc50d873a465c
assert|test_PresenceChange|def test_PresenceChange(monkeypatch, realish_eventrouter, mock_websocket): e = realish_eventrouter t = e.teams.keys()[0] u = e.teams[t].users.keys()[0] user = e.teams[t].users[u] socket = mock_websocket e.teams[t].ws = socket socket.add({ "type": "presence_change", "user": user.identifier, "p...
null
null
null
wee-slack/wee-slack
train
0
633d3ad78fe55709b5f5894a6e9668e0d606e5ec
train
_pytest/test_presencechange.py
train
wee-slack/wee-slack:_pytest/test_presencechange.py
31
4
assert
test_PresenceChange
def test_PresenceChange(monkeypatch, realish_eventrouter, mock_websocket): e = realish_eventrouter t = e.teams.keys()[0] u = e.teams[t].users.keys()[0] user = e.teams[t].users[u] socket = mock_websocket e.teams[t].ws = socket socket.add({ "type": "presence_change", "use...
"away"
added
cc373308dad2a0cf298c5e0a85c7acb168bdbd57be28d126dfe97806d8b84074
assert|test_PresenceChange|def test_PresenceChange(monkeypatch, realish_eventrouter, mock_websocket): e = realish_eventrouter t = e.teams.keys()[0] u = e.teams[t].users.keys()[0] user = e.teams[t].users[u] socket = mock_websocket e.teams[t].ws = socket socket.add({ "type": "presence_change", "user": user.identifier, "p...
null
null
null
wee-slack/wee-slack
train
0
633d3ad78fe55709b5f5894a6e9668e0d606e5ec
train
_pytest/test_slackts.py
train
wee-slack/wee-slack:_pytest/test_slackts.py
20
4
assert
test_slackts
from wee_slack import SlackTS def test_slackts(): base = SlackTS("1485976156.000017") b = SlackTS("1485976156.000016") c = SlackTS("1485976156.000018") d = SlackTS("1485976155.000017") e = SlackTS("1485976157.000017") assert base > b assert base < c assert base > d assert base ...
base
added
8e6e97bfd763ea5286de185881460041053666f1dfd4162a1533e20a2c09e8c6
assert|test_slackts|from wee_slack import SlackTS def test_slackts(): base = SlackTS("1485976156.000017") b = SlackTS("1485976156.000016") c = SlackTS("1485976156.000018") d = SlackTS("1485976155.000017") e = SlackTS("1485976157.000017") assert base > b assert base < c assert base > d assert base < e c = SlackTS() asse...
null
null
null
wee-slack/wee-slack
train
0
633d3ad78fe55709b5f5894a6e9668e0d606e5ec
train
_pytest/test_slackts.py
train
wee-slack/wee-slack:_pytest/test_slackts.py
22
4
assert
test_slackts
from wee_slack import SlackTS def test_slackts(): base = SlackTS("1485976156.000017") b = SlackTS("1485976156.000016") c = SlackTS("1485976156.000018") d = SlackTS("1485976155.000017") e = SlackTS("1485976157.000017") assert base > b assert base < c assert base > d assert base ...
"1485976156.000017"
added
84b2a93124dc936cdfa791e9125a72f47bcc79891848a3145e7c02c4d9f36f2a
assert|test_slackts|from wee_slack import SlackTS def test_slackts(): base = SlackTS("1485976156.000017") b = SlackTS("1485976156.000016") c = SlackTS("1485976156.000018") d = SlackTS("1485976155.000017") e = SlackTS("1485976157.000017") assert base > b assert base < c assert base > d assert base < e c = SlackTS() asse...
null
null
null
wee-slack/wee-slack
train
0
633d3ad78fe55709b5f5894a6e9668e0d606e5ec
train
_pytest/test_slackts.py
train
wee-slack/wee-slack:_pytest/test_slackts.py
23
4
assert
test_slackts
from wee_slack import SlackTS def test_slackts(): base = SlackTS("1485976156.000017") b = SlackTS("1485976156.000016") c = SlackTS("1485976156.000018") d = SlackTS("1485976155.000017") e = SlackTS("1485976157.000017") assert base > b assert base < c assert base > d assert base ...
"1485976156.000016"
added
29f27919bfa20e63bea8808d24b1ef04836de8da9c1c617329159b1089893479
assert|test_slackts|from wee_slack import SlackTS def test_slackts(): base = SlackTS("1485976156.000017") b = SlackTS("1485976156.000016") c = SlackTS("1485976156.000018") d = SlackTS("1485976155.000017") e = SlackTS("1485976157.000017") assert base > b assert base < c assert base > d assert base < e c = SlackTS() asse...
null
null
null
wee-slack/wee-slack
train
0
633d3ad78fe55709b5f5894a6e9668e0d606e5ec
train
_pytest/test_slackts.py
train
wee-slack/wee-slack:_pytest/test_slackts.py
24
4
assert
test_slackts
from wee_slack import SlackTS def test_slackts(): base = SlackTS("1485976156.000017") b = SlackTS("1485976156.000016") c = SlackTS("1485976156.000018") d = SlackTS("1485976155.000017") e = SlackTS("1485976157.000017") assert base > b assert base < c assert base > d assert base ...
"1485976156.000018"
added
5da952c73b85003f8b6497265aa161f7423f7cc08187874d69cb3360618d8ed4
assert|test_slackts|from wee_slack import SlackTS def test_slackts(): base = SlackTS("1485976156.000017") b = SlackTS("1485976156.000016") c = SlackTS("1485976156.000018") d = SlackTS("1485976155.000017") e = SlackTS("1485976157.000017") assert base > b assert base < c assert base > d assert base < e c = SlackTS() asse...
null
null
null
wee-slack/wee-slack
train
1
42b77460e3645cbec29cf146ed9eebced7bb6a59
train
_pytest/test_linkifytext.py
train
wee-slack/wee-slack:_pytest/test_linkifytext.py
15
4
assert
test_linkifytext_does_partial_html_entity_encoding
from wee_slack import linkify_text #def test_linkifytext(): # linkify_text('@ryan') # assert False def test_linkifytext_does_partial_html_entity_encoding(mock_weechat, realish_eventrouter): team = realish_eventrouter.teams.values()[0] channel = team.channels.values()[0] text = linkify_text('& < >...
'&amp; &lt; &gt; \' "'
added
cb115ba3f97e4a6350d71f9d5f60bae78f88e113f273dab5e4904182f3ad47ad
assert|test_linkifytext_does_partial_html_entity_encoding|from wee_slack import linkify_text #def test_linkifytext(): # linkify_text('@ryan') # assert False def test_linkifytext_does_partial_html_entity_encoding(mock_weechat, realish_eventrouter): team = realish_eventrouter.teams.values()[0] channel = team.channels.val...
null
null
null
wee-slack/wee-slack
train
2
a4c4dd77c8568d4139fdace7866af2ac2a590f59
train
_pytest/test_unfurl.py
train
wee-slack/wee-slack:_pytest/test_unfurl.py
51
4
assert
test_unfurl_refs
import wee_slack import pytest slack = wee_slack @pytest.mark.parametrize('case', ( { 'input': "foo", 'output': "foo", }, { 'input': "<@U407ABLLW|@othernick>: foo", 'output': "@alice: foo", 'ignore_alt_text': True, }, { 'input': "foo <#C407ABS94|oth...
case['output']
added
eb39fe10a1021ce7d6c7a326e36d3b05f7f43326d9dcb2265268acda6194f337
assert|test_unfurl_refs|import wee_slack import pytest slack = wee_slack @pytest.mark.parametrize('case', ( { 'input': "foo", 'output': "foo", }, { 'input': "<@U407ABLLW|@othernick>: foo", 'output': "@alice: foo", 'ignore_alt_text': True, }, { 'input': "foo <#C407ABS94|otherchannel> foo", 'output': "foo #otherchannel f...
null
null
null
wee-slack/wee-slack
train
3
b075750bb5340525cd8e5b23e28f4abd2f330c6b
train
_pytest/test_linkifytext.py
train
wee-slack/wee-slack:_pytest/test_linkifytext.py
15
4
assert
test_linkifytext_does_partial_html_entity_encoding
from wee_slack import linkify_text #def test_linkifytext(): # linkify_text('@ryan') # assert False def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter): team = realish_eventrouter.teams.values()[0] channel = team.channels.values()[0] text = linkify_text('& < > \' "', team, ...
'&amp; &lt; &gt; \' "'
modified
8ed4b03d314219cf62c53d7e325e6345ecb01272ff3bf3ae7dda61cfb1ec53f0
assert|test_linkifytext_does_partial_html_entity_encoding|from wee_slack import linkify_text #def test_linkifytext(): # linkify_text('@ryan') # assert False def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter): team = realish_eventrouter.teams.values()[0] channel = team.channels.values()[0] text ...
'&amp; &lt; &gt; \' "'
15
4
wee-slack/wee-slack
train
3
b075750bb5340525cd8e5b23e28f4abd2f330c6b
train
_pytest/test_presencechange.py
train
wee-slack/wee-slack:_pytest/test_presencechange.py
27
4
assert
test_PresenceChange
def test_PresenceChange(realish_eventrouter, mock_websocket): e = realish_eventrouter t = e.teams.keys()[0] u = e.teams[t].users.keys()[0] user = e.teams[t].users[u] socket = mock_websocket e.teams[t].ws = socket socket.add({ "type": "presence_change", "user": user.iden...
"active"
modified
bff0cbe07ccb6b68618c292615411c1e599397365636286c2a5a72a8711a0770
assert|test_PresenceChange|def test_PresenceChange(realish_eventrouter, mock_websocket): e = realish_eventrouter t = e.teams.keys()[0] u = e.teams[t].users.keys()[0] user = e.teams[t].users[u] socket = mock_websocket e.teams[t].ws = socket socket.add({ "type": "presence_change", "user": user.identifier, "presence": "ac...
"active"
27
4
wee-slack/wee-slack
train
3
b075750bb5340525cd8e5b23e28f4abd2f330c6b
train
_pytest/test_presencechange.py
train
wee-slack/wee-slack:_pytest/test_presencechange.py
31
4
assert
test_PresenceChange
def test_PresenceChange(realish_eventrouter, mock_websocket): e = realish_eventrouter t = e.teams.keys()[0] u = e.teams[t].users.keys()[0] user = e.teams[t].users[u] socket = mock_websocket e.teams[t].ws = socket socket.add({ "type": "presence_change", "user": user.iden...
"away"
added
84278f421fe9b946f1dcafca7370dfc87de91e3123ed0b531a789b697bec9368
assert|test_PresenceChange|def test_PresenceChange(realish_eventrouter, mock_websocket): e = realish_eventrouter t = e.teams.keys()[0] u = e.teams[t].users.keys()[0] user = e.teams[t].users[u] socket = mock_websocket e.teams[t].ws = socket socket.add({ "type": "presence_change", "user": user.identifier, "presence": "ac...
null
null
null
wee-slack/wee-slack
train
4
31c7e9acde467b8df8efc319fad1971d387b1361
train
_pytest/test_topic_command.py
train
wee-slack/wee-slack:_pytest/test_topic_command.py
10
4
assert
test_parse_topic_without_arguments
import wee_slack from wee_slack import parse_topic_command, topic_command_cb from mock import patch def test_parse_topic_without_arguments(): channel_name, topic = parse_topic_command('/topic') assert channel_name is None assert topic is
None
added
b88848a6915611a1dc8286627c3f4da700660c628dd3997b6c18c01ac55fc050
assert|test_parse_topic_without_arguments|import wee_slack from wee_slack import parse_topic_command, topic_command_cb from mock import patch def test_parse_topic_without_arguments(): channel_name, topic = parse_topic_command('/topic') assert channel_name is None assert topic is
null
null
null
wee-slack/wee-slack
train
4
31c7e9acde467b8df8efc319fad1971d387b1361
train
_pytest/test_topic_command.py
train
wee-slack/wee-slack:_pytest/test_topic_command.py
30
4
assert
test_parse_topic_with_channel
import wee_slack from wee_slack import parse_topic_command, topic_command_cb from mock import patch def test_parse_topic_without_arguments(): channel_name, topic = parse_topic_command('/topic') assert channel_name is None assert topic is None def test_parse_topic_with_text(): channel_name, topic = ...
'general'
added
8b9f3723132b1aa59d4551f5221ab78273bb34e9842015d12ccbf287a81ad410
assert|test_parse_topic_with_channel|import wee_slack from wee_slack import parse_topic_command, topic_command_cb from mock import patch def test_parse_topic_without_arguments(): channel_name, topic = parse_topic_command('/topic') assert channel_name is None assert topic is None def test_parse_topic_with_text(): channe...
null
null
null
wee-slack/wee-slack
train
4
31c7e9acde467b8df8efc319fad1971d387b1361
train
_pytest/test_topic_command.py
train
wee-slack/wee-slack:_pytest/test_topic_command.py
38
4
assert
test_parse_topic_with_channel_and_text
import wee_slack from wee_slack import parse_topic_command, topic_command_cb from mock import patch def test_parse_topic_without_arguments(): channel_name, topic = parse_topic_command('/topic') assert channel_name is None assert topic is None def test_parse_topic_with_text(): channel_name, topic = ...
'general'
added
d8966dc6d287b26d42ead371efd219531d3d92b53b6412c331d1e3a9c4cc70f6
assert|test_parse_topic_with_channel_and_text|import wee_slack from wee_slack import parse_topic_command, topic_command_cb from mock import patch def test_parse_topic_without_arguments(): channel_name, topic = parse_topic_command('/topic') assert channel_name is None assert topic is None def test_parse_topic_with_text(...
null
null
null
wee-slack/wee-slack
train
4
31c7e9acde467b8df8efc319fad1971d387b1361
train
_pytest/test_topic_command.py
train
wee-slack/wee-slack:_pytest/test_topic_command.py
94
4
assert
test_call_topic_with_channel_and_string
import wee_slack from wee_slack import parse_topic_command, topic_command_cb from mock import patch def test_parse_topic_without_arguments(): channel_name, topic = parse_topic_command('/topic') assert channel_name is None assert topic is None def test_parse_topic_with_text(): channel_name, topic = ...
{ 'channel': 'C407ABS94', 'token': 'xoxoxoxox', 'topic': 'new topic'}
added
86637e80ada4c44ca616ecbe8020b12250e8431257c2ace7148b9fdb53eedcdf
assert|test_call_topic_with_channel_and_string|import wee_slack from wee_slack import parse_topic_command, topic_command_cb from mock import patch def test_parse_topic_without_arguments(): channel_name, topic = parse_topic_command('/topic') assert channel_name is None assert topic is None def test_parse_topic_with_text...
null
null
null
wee-slack/wee-slack
train
5
fe7832f2453469fe4978b095561d6b7fce07cab8
train
_pytest/test_unwrap_attachments.py
test
wee-slack/wee-slack:_pytest/test_unwrap_attachments.py
150
4
assert
test_unwrap_attachments
import wee_slack import pytest @pytest.mark.parametrize('case', ( { 'input_message': {'attachments': [{ 'title': 'Title', }]}, 'input_text_before': "Text before", 'output': "\n".join([ "", "Title", ]), }, { 'input_message'...
case['output']
added
6380085f7c93df82af4d839ec649c40e3dbe200291b8a688441c8a08e212b792
assert|test_unwrap_attachments|import wee_slack import pytest @pytest.mark.parametrize('case', ( { 'input_message': {'attachments': [{ 'title': 'Title', }]}, 'input_text_before': "Text before", 'output': "\n".join([ "", "Title", ]), }, { 'input_message': {'attachments': [{ 'title': 'Title', 'text': 'Attachment text', '...
null
null
null
wee-slack/wee-slack
train
6
5e16fa41535a0347b34adca89a13560aec6d36bc
train
_pytest/test_unfurl.py
train
wee-slack/wee-slack:_pytest/test_unfurl.py
74
4
assert
test_unfurl_refs
import wee_slack import pytest slack = wee_slack @pytest.mark.parametrize('case', ( { 'input': "foo", 'output': "foo", }, { 'input': "<@U407ABLLW|@othernick>: foo", 'output': "@alice: foo", 'ignore_alt_text': True, }, { 'input': "foo <#C407ABS94|oth...
case['output']
added
52e8aabe331e8e74baae1e0a0d59a16195ca1ceddf01ccc04b6334d96645aa58
assert|test_unfurl_refs|import wee_slack import pytest slack = wee_slack @pytest.mark.parametrize('case', ( { 'input': "foo", 'output': "foo", }, { 'input': "<@U407ABLLW|@othernick>: foo", 'output': "@alice: foo", 'ignore_alt_text': True, }, { 'input': "foo <#C407ABS94|otherchannel> foo", 'output': "foo #otherchannel f...
null
null
null
wee-slack/wee-slack
train
7
41b847ecc1978249052e1ef5c6dbb161f0dc5ca2
train
_pytest/test_unwrap_attachments.py
test
wee-slack/wee-slack:_pytest/test_unwrap_attachments.py
165
4
assert
test_unwrap_attachments
import wee_slack import pytest @pytest.mark.parametrize('case', ( { 'input_message': {'attachments': [{ 'title': 'Title', }]}, 'input_text_before': "Text before", 'output': "\n".join([ "", "Title", ]), }, { 'input_message'...
case['output']
added
b296bcab6adb54c03fd93d5a8ee04f188e38a2b0a7e9e416de371c4e4f5b7974
assert|test_unwrap_attachments|import wee_slack import pytest @pytest.mark.parametrize('case', ( { 'input_message': {'attachments': [{ 'title': 'Title', }]}, 'input_text_before': "Text before", 'output': "\n".join([ "", "Title", ]), }, { 'input_message': {'attachments': [{ 'title': 'Title', 'text': 'Attachment text', '...
null
null
null
wee-slack/wee-slack
train
10
7e9ef8814fc1e0c374e3f55523c03613902d8327
train
_pytest/test_linkifytext.py
train
wee-slack/wee-slack:_pytest/test_linkifytext.py
20
4
assert
test_linkifytext_does_partial_html_entity_encoding
# -*- coding: utf-8 -*- from __future__ import unicode_literals from wee_slack import linkify_text #def test_linkifytext(): # linkify_text('@ryan') # assert False def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter): team = realish_eventrouter.teams.values()[0] channel = team...
'&amp; &lt; &gt; \' "'
added
13cdafa426b6ced75ac7b9139c1eab120355b9b6d037d8daf3181a99a037a482
assert|test_linkifytext_does_partial_html_entity_encoding|# -*- coding: utf-8 -*- from __future__ import unicode_literals from wee_slack import linkify_text #def test_linkifytext(): # linkify_text('@ryan') # assert False def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter): team = realish_eventro...
null
null
null
wee-slack/wee-slack
train
10
7e9ef8814fc1e0c374e3f55523c03613902d8327
train
_pytest/test_linkifytext.py
train
wee-slack/wee-slack:_pytest/test_linkifytext.py
28
4
assert
test_linkifytext_names_with_paranthesis
# -*- coding: utf-8 -*- from __future__ import unicode_literals from wee_slack import linkify_text #def test_linkifytext(): # linkify_text('@ryan') # assert False def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter): team = realish_eventrouter.teams.values()[0] channel = team...
'@JohnDoe(jdoe): my test message'
added
444c818e58156261089ba21643ba8dcc2fbf2195d28aa7388c0c0a6cbda30d66
assert|test_linkifytext_names_with_paranthesis|# -*- coding: utf-8 -*- from __future__ import unicode_literals from wee_slack import linkify_text #def test_linkifytext(): # linkify_text('@ryan') # assert False def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter): team = realish_eventrouter.teams....
null
null
null
wee-slack/wee-slack
train
10
7e9ef8814fc1e0c374e3f55523c03613902d8327
train
_pytest/test_linkifytext.py
train
wee-slack/wee-slack:_pytest/test_linkifytext.py
36
4
assert
test_linkifytext_names_with_accents
# -*- coding: utf-8 -*- from __future__ import unicode_literals from wee_slack import linkify_text #def test_linkifytext(): # linkify_text('@ryan') # assert False def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter): team = realish_eventrouter.teams.values()[0] channel = team...
'@ÁrvíztűrőTükörfúrógép(atukorfurogep): my test message'
added
e153e088fcf06ecbb13bb81987487d903b2a5b73b0e131fcc1769edd5fcf11b8
assert|test_linkifytext_names_with_accents|# -*- coding: utf-8 -*- from __future__ import unicode_literals from wee_slack import linkify_text #def test_linkifytext(): # linkify_text('@ryan') # assert False def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter): team = realish_eventrouter.teams.valu...
null
null
null
wee-slack/wee-slack
train
10
7e9ef8814fc1e0c374e3f55523c03613902d8327
train
_pytest/test_linkifytext.py
train
wee-slack/wee-slack:_pytest/test_linkifytext.py
52
4
assert
test_linkifytext_with_many_paranthesis
# -*- coding: utf-8 -*- from __future__ import unicode_literals from wee_slack import linkify_text #def test_linkifytext(): # linkify_text('@ryan') # assert False def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter): team = realish_eventrouter.teams.values()[0] channel = team...
'@k(o(v)a)())s: my(( test) message'
added
35547192298205625bd26a0cbbe1b72f14f23d8555dcf671fd45b3087bb41743
assert|test_linkifytext_with_many_paranthesis|# -*- coding: utf-8 -*- from __future__ import unicode_literals from wee_slack import linkify_text #def test_linkifytext(): # linkify_text('@ryan') # assert False def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter): team = realish_eventrouter.teams.v...
null
null
null
wee-slack/wee-slack
train
11
6670b9e678d01896aa3c419160f3b64df6745e69
train
_pytest/test_linkifytext.py
train
wee-slack/wee-slack:_pytest/test_linkifytext.py
60
4
assert
test_linkifytext_names_with_apostrophe
# -*- coding: utf-8 -*- from __future__ import unicode_literals from wee_slack import linkify_text #def test_linkifytext(): # linkify_text('@ryan') # assert False def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter): team = realish_eventrouter.teams.values()[0] channel = team...
'@O\'Connor: my test message'
added
d9d1f1b80848439f6072caa4fa7b1cf20673f1712a641d64847584546c9ff1a5
assert|test_linkifytext_names_with_apostrophe|# -*- coding: utf-8 -*- from __future__ import unicode_literals from wee_slack import linkify_text #def test_linkifytext(): # linkify_text('@ryan') # assert False def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter): team = realish_eventrouter.teams.v...
null
null
null
wee-slack/wee-slack
train
12
fb5612d641296a022a869bd0a4b9a0aed9255e51
train
_pytest/test_formatting.py
train
wee-slack/wee-slack:_pytest/test_formatting.py
14
4
assert
test_does_not_format
import pytest import wee_slack @pytest.mark.parametrize("text", [ """ * an item * another item """, "* Run this command: `find . -name '*.exe'`", ]) def test_does_not_format(text): assert wee_slack.render_formatting(text) ==
text
added
40eb57735e9ce1308dec199c03aa8540795a06368ecad085abad24500da2799c
assert|test_does_not_format|import pytest import wee_slack @pytest.mark.parametrize("text", [ """ * an item * another item """, "* Run this command: `find . -name '*.exe'`", ]) def test_does_not_format(text): assert wee_slack.render_formatting(text) ==
null
null
null
wee-slack/wee-slack
train
13
6f23cff825da2d0ea62b164726e36be77b3d287b
train
_pytest/test_formatting.py
train
wee-slack/wee-slack:_pytest/test_formatting.py
27
4
assert
test_preserves_format_chars_in_code
import pytest import wee_slack @pytest.mark.parametrize("text", [ """ * an item * another item """, "* Run this command: `find . -name '*.exe'`", ]) def test_does_not_format(text): assert wee_slack.render_formatting(text) == text @pytest.mark.parametrize("text", [ "`hello *bar*`", "...
text
added
c51ab685c2e79d0bcec59aa93a46f857a08fae643720f4e6ceffaeeb334cbc98
assert|test_preserves_format_chars_in_code|import pytest import wee_slack @pytest.mark.parametrize("text", [ """ * an item * another item """, "* Run this command: `find . -name '*.exe'`", ]) def test_does_not_format(text): assert wee_slack.render_formatting(text) == text @pytest.mark.parametrize("text", [ "`hello *bar...
null
null
null