cactus-compute 4.2.2__tar.gz → 4.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cactus_compute-4.2.2/cactus_compute.egg-info → cactus_compute-4.2.3}/PKG-INFO +1 -1
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/__init__.py +1 -1
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/_worker.py +0 -1
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/agent/text.py +14 -4
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/mlx/models/nemotron.py +7 -5
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/mlx/models/nemotron_speculative.py +8 -13
- {cactus_compute-4.2.2 → cactus_compute-4.2.3/cactus_compute.egg-info}/PKG-INFO +1 -1
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/llms.txt +1 -1
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/pyproject.toml +1 -1
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/tests/test_grounding.py +11 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/LICENSE +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/MANIFEST.in +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/README.md +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/__main__.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/_telemetry.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/agent/__init__.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/agent/audio.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/agent/fetch.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/agent/grounding.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/agent/mirage.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/agent/runtime.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/agent/tools.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/agent/whistle.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/cli/__init__.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/cli/download.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/cli/logging.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/cli/parser.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/cli/speech.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/cli/vision.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/environments/__init__.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/environments/_harness.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/environments/data_capture.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/environments/kitchen_appliance.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/environments/media_player.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/environments/productivity.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/environments/smart_home.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/environments/wearable.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/mlx/NOTICE +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/mlx/__init__.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/mlx/_environment.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/mlx/bench_decode.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/mlx/checkpoint.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/mlx/cli.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/mlx/generate.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/mlx/generation.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/mlx/kernels/bicubic_resize.metal +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/mlx/kernels/common.metal +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/mlx/kernels/gather.metal +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/mlx/kernels/int_dot.metal +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/mlx/kernels/matvec_int.metal +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/mlx/kernels/matvec_lut.metal +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/mlx/kernels/prepare_permute.metal +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/mlx/kernels/ssm_verify.metal +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/mlx/models/__init__.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/mlx/models/nemotron_decode.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/mlx/models/nemotron_mtp.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/mlx/models/nemotron_validate.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/mlx/models/nemotron_verify.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/mlx/models/nemotron_vision.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/mlx/ops.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/mlx/reference.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/mlx/runtime.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/mlx/server.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/mlx/vision.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/model/__init__.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/model/architecture.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/model/architecture_mlx.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/model/build.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/model/checkpoints.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/model/config.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/model/export.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/model/finetune.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/model/quantize.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/model/quantize_mlx.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/model/run.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/model/tokenizer.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/model/whistle.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/model/whistle_finetune.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/platform.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/playground/__init__.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/playground/app.js +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/playground/index.html +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/playground/server.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus/playground/style.css +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus_compute.egg-info/SOURCES.txt +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus_compute.egg-info/dependency_links.txt +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus_compute.egg-info/entry_points.txt +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus_compute.egg-info/requires.txt +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/cactus_compute.egg-info/top_level.txt +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/setup.cfg +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/tests/test_build.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/tests/test_environments.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/tests/test_fetch.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/tests/test_finetune.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/tests/test_generate.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/tests/test_inference.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/tests/test_lora.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/tests/test_mirage.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/tests/test_mlx.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/tests/test_mlx_entrypoint.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/tests/test_packaging.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/tests/test_platform.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/tests/test_playground.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/tests/test_quantize_mlx.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/tests/test_release.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/tests/test_render.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/tests/test_run.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/tests/test_tools.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/tests/test_weights.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/tests/test_whistle.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/tests/test_whistle_finetune.py +0 -0
- {cactus_compute-4.2.2 → cactus_compute-4.2.3}/tests/test_worker.py +0 -0
|
@@ -5,7 +5,7 @@ from .agent.tools import Field, tool
|
|
|
5
5
|
from .agent.grounding import ExtractionValidationError
|
|
6
6
|
from .agent.runtime import set_threads
|
|
7
7
|
|
|
8
|
-
__version__ = "4.2.
|
|
8
|
+
__version__ = "4.2.3"
|
|
9
9
|
Needle = Cactus
|
|
10
10
|
|
|
11
11
|
__all__ = ["Cactus", "Needle", "Whistle", "Mirage", "Field", "tool", "extract",
|
|
@@ -326,6 +326,10 @@ class Cactus:
|
|
|
326
326
|
pass
|
|
327
327
|
|
|
328
328
|
|
|
329
|
+
_shared = {}
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
@synchronized
|
|
329
333
|
def extract(text: str, schema: type | dict, system: str | None = None,
|
|
330
334
|
max_new_tokens: int = 512, weights: str | None = None,
|
|
331
335
|
strict: bool = True, generation: int | None = None) -> object:
|
|
@@ -339,14 +343,20 @@ def extract(text: str, schema: type | dict, system: str | None = None,
|
|
|
339
343
|
generation = _weight_generation(selected) if selected else int(generation or 3)
|
|
340
344
|
_track("extract", {"n_tools": 1, "tuned": bool(selected),
|
|
341
345
|
"generation": generation})
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
346
|
+
system = _with_date_fact(system or "")
|
|
347
|
+
schema_id = json.dumps(schema, sort_keys=True) if isinstance(schema, dict) else schema
|
|
348
|
+
key = (schema_id, system, selected, generation)
|
|
349
|
+
if key not in _shared:
|
|
350
|
+
for previous in _shared.values():
|
|
351
|
+
previous.close()
|
|
352
|
+
_shared.clear()
|
|
353
|
+
_shared[key] = Cactus(tools=[schema], system=system, weights=selected, generation=generation)
|
|
354
|
+
agent = _shared[key]
|
|
345
355
|
facts = agent._system_text
|
|
346
356
|
try:
|
|
347
357
|
response = agent._complete(text, max_new_tokens)
|
|
348
358
|
finally:
|
|
349
|
-
agent.
|
|
359
|
+
agent.reset()
|
|
350
360
|
calls = response.get("function_calls") or response.get("suppressed_calls") or []
|
|
351
361
|
if not calls:
|
|
352
362
|
return None
|
|
@@ -18,13 +18,15 @@ class CQModel(Model):
|
|
|
18
18
|
super().__init__(args)
|
|
19
19
|
self._decode_graph = None
|
|
20
20
|
|
|
21
|
+
@staticmethod
|
|
22
|
+
def _can_decode(cache):
|
|
23
|
+
return bool(cache) and all(c[0] is not None and c.lengths is None and c.left_padding is None
|
|
24
|
+
for c in cache if isinstance(c, ArraysCache))
|
|
25
|
+
|
|
21
26
|
def __call__(self, inputs, cache=None, input_embeddings=None):
|
|
22
27
|
if input_embeddings is not None:
|
|
23
28
|
return self.lm_head(self._forward_embeddings(input_embeddings, cache))
|
|
24
|
-
if inputs.shape == (1, 1) and cache
|
|
25
|
-
c[0] is not None and c.lengths is None and c.left_padding is None
|
|
26
|
-
for c in cache if isinstance(c, ArraysCache)
|
|
27
|
-
):
|
|
29
|
+
if inputs.shape == (1, 1) and self._can_decode(cache):
|
|
28
30
|
if self._decode_graph is None:
|
|
29
31
|
from .nemotron_decode import DecodeGraph
|
|
30
32
|
self._decode_graph = DecodeGraph(self)
|
|
@@ -46,7 +48,7 @@ class CQModel(Model):
|
|
|
46
48
|
if input_embeddings is not None:
|
|
47
49
|
hidden = self._forward_embeddings(input_embeddings, cache)
|
|
48
50
|
return self.lm_head(hidden), hidden
|
|
49
|
-
if tokens.shape == (1, 1) and
|
|
51
|
+
if tokens.shape == (1, 1) and self._can_decode(cache):
|
|
50
52
|
if self._decode_graph is None:
|
|
51
53
|
from .nemotron_decode import DecodeGraph
|
|
52
54
|
self._decode_graph = DecodeGraph(self)
|
|
@@ -33,26 +33,21 @@ class MTPDecoder:
|
|
|
33
33
|
raise ValueError('Input embeddings must match prompt length and model width')
|
|
34
34
|
for start in range(0, len(tokens), step):
|
|
35
35
|
chunk = tokens[start:start + step]
|
|
36
|
-
embeds =
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
else:
|
|
40
|
-
logits, hidden = self.model.forward_hidden(mx.array([chunk]), self.cache, input_embeddings=embeds)
|
|
36
|
+
embeds = (self.model.backbone.embeddings(mx.array([chunk])) if input_embeddings is None
|
|
37
|
+
else input_embeddings[start:start + step][None])
|
|
38
|
+
_, hidden = self.model.forward_hidden(mx.array([chunk]), self.cache, input_embeddings=embeds)
|
|
41
39
|
if previous is None:
|
|
42
|
-
|
|
40
|
+
shifted_embeds, shifted_hidden = embeds[:, 1:], hidden[:, :-1]
|
|
43
41
|
else:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
if shifted_tokens:
|
|
47
|
-
shifted_embeds = (self.model.backbone.embeddings(mx.array([shifted_tokens])) if embeds is None
|
|
48
|
-
else embeds[:, 1:] if previous is None else embeds)
|
|
42
|
+
shifted_embeds, shifted_hidden = embeds, mx.concatenate([previous, hidden[:, :-1]], axis=1)
|
|
43
|
+
if shifted_embeds.shape[1]:
|
|
49
44
|
self.head.cache_inputs(shifted_embeds, shifted_hidden, self.draft_cache)
|
|
50
|
-
mx.eval(
|
|
45
|
+
mx.eval(hidden, [c.state for c in self.cache], self.draft_cache.state)
|
|
51
46
|
previous = hidden[:, -1:]
|
|
52
47
|
if progress:
|
|
53
48
|
progress(min(start + step, len(tokens)), len(tokens))
|
|
54
49
|
self.hidden = previous
|
|
55
|
-
self.logits =
|
|
50
|
+
self.logits = self.model.lm_head(previous)[0, -1]
|
|
56
51
|
self.seed = int(mx.argmax(self.logits).item())
|
|
57
52
|
return self.seed, self.logits
|
|
58
53
|
|
|
@@ -31,7 +31,7 @@ Engine binaries come from `Cactus-Compute/cactus`. Needle, Whistle and Mirage we
|
|
|
31
31
|
- `agent.reset()` - rewind the conversation, keep the tools loaded.
|
|
32
32
|
- `cactus.tool` - decorator that turns a function into a tool schema (attached as `fn._cactus_tool`); `@cactus.tool(triggers=[r"\b(turn|switch)\b.*\b(on|off)\b"])` adds case-insensitive regexes that route a matching request to this tool and require a call; a triggered call ships even below the confidence floor (raw schemas take the same `"triggers"` list beside `description`).
|
|
33
33
|
- `cactus.Field(default=..., *, description, enum, const, ge, le, gt, lt, multiple_of, min_length, max_length, pattern, format, min_items, max_items, unique_items)` - per-argument constraints; attach inline with `typing.Annotated`.
|
|
34
|
-
- `cactus.extract(text, schema, system=None, max_new_tokens=512, weights=None, strict=True, generation=None)` - one-shot extraction; returns a Pydantic instance if `schema` is a model, else a dict (or `None` if nothing matched). `weights` loads a tuned `.cact`; without it the base Needle 3 model runs. `strict=True` raises `cactus.ExtractionValidationError` instead of returning a date whose year contradicts the text or a value the engine flags as invented or negated.
|
|
34
|
+
- `cactus.extract(text, schema, system=None, max_new_tokens=512, weights=None, strict=True, generation=None)` - one-shot extraction; returns a Pydantic instance if `schema` is a model, else a dict (or `None` if nothing matched). `weights` loads a tuned `.cact`; without it the base Needle 3 model runs. `strict=True` raises `cactus.ExtractionValidationError` instead of returning a date whose year contradicts the text or a value the engine flags as invented or negated. Calls with the same schema and settings reuse one agent, so batches skip the setup.
|
|
35
35
|
- `cactus.transcribe(audio, language=None, keywords=None, word_timestamps=False, weights=None) -> dict` - speech to text in English, German, French, Spanish, Italian, Dutch and Polish, on the same engine and the same install as Needle. `audio` is a WAV path or 16 kHz mono float samples in [-1, 1] of any length, one pass up to 30 s and windowed beyond it. Returns `{"text", "language", "ttft_ms", "decode_tps"}`, plus `"words"` with `start`, `end` and `probability` when `word_timestamps` is set. `language` is one of `en de fr es it nl pl`, or `None` to detect it; `keywords` is a list or a newline-separated string of words and phrases to favour. Silence and steady noise return an empty text and language; other sounds, music especially, can still come out as text, so put a voice activity detector or a wake word in front of an always-on microphone. 16 kHz WAV files and raw samples need nothing extra; other sample rates need the `[mic]` extra for soxr. `whistle.cact` is fetched from `Cactus-Compute/whistle` on first use.
|
|
36
36
|
- `cactus.stream(chunks, language=None, keywords=None, weights=None)` - live transcription with no limit on length. `chunks` is an iterable of 16 kHz mono float sample buffers, about a second each; the generator yields one dict per chunk with the `"text"` and `"words"` committed by it (times from the start of the stream), the unconfirmed `"pending"` tail, the `"language"`, the seconds `"received"` and `"pass_ms"`, then one more for the tail when the chunks end. Join the texts with a space. Every chunk re-transcribes the last seconds and commits what two passes agree on.
|
|
37
37
|
- `cactus.set_threads(threads)` - the CPU thread count for every model loaded after the call, tuned agents included, or `0` (the default) to use the cores the process may run on.
|
|
@@ -42,6 +42,7 @@ def stub(monkeypatch, tmp_path):
|
|
|
42
42
|
monkeypatch.setattr(runtime, "_base_weights_path", lambda generation: str(base))
|
|
43
43
|
monkeypatch.setattr(runtime, "_active", {})
|
|
44
44
|
monkeypatch.setattr(runtime, "_loaded_base", {})
|
|
45
|
+
monkeypatch.setattr("cactus.agent.text._shared", {})
|
|
45
46
|
return engine
|
|
46
47
|
|
|
47
48
|
|
|
@@ -144,6 +145,16 @@ def test_extract_accepts_a_date_written_with_slashes(stub):
|
|
|
144
145
|
assert invoice.due_date == datetime.date(2024, 12, 31)
|
|
145
146
|
|
|
146
147
|
|
|
148
|
+
def test_extract_reuses_its_agent_across_calls(stub):
|
|
149
|
+
import cactus
|
|
150
|
+
|
|
151
|
+
stub.envelopes = [_call("2024-12-31")]
|
|
152
|
+
cactus.extract("Invoice from Acme Corp due 12/31/24", Invoice)
|
|
153
|
+
cactus.extract("Invoice from Acme Corp due 12/31/24", Invoice)
|
|
154
|
+
|
|
155
|
+
assert [call for call in stub.calls if call in ("init", "reset")] == ["init", "reset", "reset"]
|
|
156
|
+
|
|
157
|
+
|
|
147
158
|
def test_extract_licenses_a_relative_date_against_its_date_fact(stub):
|
|
148
159
|
import cactus
|
|
149
160
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|