repo
stringlengths
7
90
file_url
stringlengths
81
315
file_path
stringlengths
4
228
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:38:15
2026-01-05 02:33:18
truncated
bool
2 classes
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/examples/Cloud_Robotics/cloud-edge-collaborative-inference_bench/perception-reasoning/testalgorithms/__init__.py
examples/Cloud_Robotics/cloud-edge-collaborative-inference_bench/perception-reasoning/testalgorithms/__init__.py
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/examples/Cloud_Robotics/cloud-edge-collaborative-inference_bench/perception-reasoning/testalgorithms/edge_model.py
examples/Cloud_Robotics/cloud-edge-collaborative-inference_bench/perception-reasoning/testalgorithms/edge_model.py
# Copyright 2024 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/examples/Cloud_Robotics/singletask_learning_bench/Semantic_Segmentation/testenv/accuracy.py
examples/Cloud_Robotics/singletask_learning_bench/Semantic_Segmentation/testenv/accuracy.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/examples/Cloud_Robotics/singletask_learning_bench/Semantic_Segmentation/testalgorithms/basemodel.py
examples/Cloud_Robotics/singletask_learning_bench/Semantic_Segmentation/testalgorithms/basemodel.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/__init__.py
core/__init__.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/__version__.py
core/__version__.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/cmd/__init__.py
core/cmd/__init__.py
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/cmd/benchmarking.py
core/cmd/benchmarking.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/cmd/obj/benchmarkingjob.py
core/cmd/obj/benchmarkingjob.py
# pylint: disable=R0801 # Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/cmd/obj/__init__.py
core/cmd/obj/__init__.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/testcasecontroller.py
core/testcasecontroller/testcasecontroller.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/__init__.py
core/testcasecontroller/__init__.py
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/testcase/testcase.py
core/testcasecontroller/testcase/testcase.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/testcase/__init__.py
core/testcasecontroller/testcase/__init__.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/simulation/simulation.py
core/testcasecontroller/simulation/simulation.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/simulation/__init__.py
core/testcasecontroller/simulation/__init__.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/metrics/metrics.py
core/testcasecontroller/metrics/metrics.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/metrics/__init__.py
core/testcasecontroller/metrics/__init__.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/algorithm/algorithm.py
core/testcasecontroller/algorithm/algorithm.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/algorithm/__init__.py
core/testcasecontroller/algorithm/__init__.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/algorithm/paradigm/__init__.py
core/testcasecontroller/algorithm/paradigm/__init__.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/algorithm/paradigm/base.py
core/testcasecontroller/algorithm/paradigm/base.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/algorithm/paradigm/sedna_federated_learning.py
core/testcasecontroller/algorithm/paradigm/sedna_federated_learning.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/algorithm/paradigm/federated_learning/federated_class_incremental_learning.py
core/testcasecontroller/algorithm/paradigm/federated_learning/federated_class_incremental_learning.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/algorithm/paradigm/federated_learning/federated_learning.py
core/testcasecontroller/algorithm/paradigm/federated_learning/federated_learning.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/algorithm/paradigm/federated_learning/__init__.py
core/testcasecontroller/algorithm/paradigm/federated_learning/__init__.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/algorithm/paradigm/singletask_learning/singletask_learning_active_boost.py
core/testcasecontroller/algorithm/paradigm/singletask_learning/singletask_learning_active_boost.py
# pylint: disable=C0301 # pylint: disable=C0114 # pylint: disable=C0115 # pylint: disable=W0246 # pylint: disable=R1725 # pylint: disable=R1732 # pylint: disable=R0913 # pylint: disable=R0801 import json import os import os.path as osp from core.common.constant import ParadigmType from examples.yaoba.singletask_learnin...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/algorithm/paradigm/singletask_learning/__init__.py
core/testcasecontroller/algorithm/paradigm/singletask_learning/__init__.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/algorithm/paradigm/singletask_learning/singletask_learning_tta.py
core/testcasecontroller/algorithm/paradigm/singletask_learning/singletask_learning_tta.py
# pylint: disable=C0114 # pylint: disable=E0401 # pylint: disable=C0115 # pylint: disable=W0246 # pylint: disable=R1725 # pylint: disable=R1732 # pylint: disable=C0103 # pylint: disable=R0801 import json import os import torch from mmdet.apis import init_detector from core.common.constant import ParadigmType from examp...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/algorithm/paradigm/singletask_learning/singletask_learning.py
core/testcasecontroller/algorithm/paradigm/singletask_learning/singletask_learning.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/algorithm/paradigm/joint_inference/joint_inference.py
core/testcasecontroller/algorithm/paradigm/joint_inference/joint_inference.py
# Copyright 2024 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/algorithm/paradigm/joint_inference/__init__.py
core/testcasecontroller/algorithm/paradigm/joint_inference/__init__.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/algorithm/paradigm/incremental_learning/incremental_learning.py
core/testcasecontroller/algorithm/paradigm/incremental_learning/incremental_learning.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/algorithm/paradigm/incremental_learning/__init__.py
core/testcasecontroller/algorithm/paradigm/incremental_learning/__init__.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/algorithm/paradigm/lifelong_learning/lifelong_learning.py
core/testcasecontroller/algorithm/paradigm/lifelong_learning/lifelong_learning.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/algorithm/paradigm/lifelong_learning/__init__.py
core/testcasecontroller/algorithm/paradigm/lifelong_learning/__init__.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/algorithm/paradigm/multiedge_inference/multiedge_inference.py
core/testcasecontroller/algorithm/paradigm/multiedge_inference/multiedge_inference.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/algorithm/paradigm/multiedge_inference/__init__.py
core/testcasecontroller/algorithm/paradigm/multiedge_inference/__init__.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/algorithm/module/module.py
core/testcasecontroller/algorithm/module/module.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/algorithm/module/__init__.py
core/testcasecontroller/algorithm/module/__init__.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/generation_assistant/__init__.py
core/testcasecontroller/generation_assistant/__init__.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/generation_assistant/generation_assistant.py
core/testcasecontroller/generation_assistant/generation_assistant.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/simulation_system_admin/__init__.py
core/testcasecontroller/simulation_system_admin/__init__.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testcasecontroller/simulation_system_admin/simulation_system_admin.py
core/testcasecontroller/simulation_system_admin/simulation_system_admin.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/common/log.py
core/common/log.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/common/utils.py
core/common/utils.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/common/__init__.py
core/common/__init__.py
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/common/constant.py
core/common/constant.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/storymanager/__init__.py
core/storymanager/__init__.py
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/storymanager/rank/rank.py
core/storymanager/rank/rank.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/storymanager/rank/__init__.py
core/storymanager/rank/__init__.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/storymanager/visualization/__init__.py
core/storymanager/visualization/__init__.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/storymanager/visualization/visualization.py
core/storymanager/visualization/visualization.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testenvmanager/__init__.py
core/testenvmanager/__init__.py
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testenvmanager/testenv/testenv.py
core/testenvmanager/testenv/testenv.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testenvmanager/testenv/__init__.py
core/testenvmanager/testenv/__init__.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testenvmanager/dataset/dataset.py
core/testenvmanager/dataset/dataset.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testenvmanager/dataset/utils.py
core/testenvmanager/dataset/utils.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
kubeedge/ianvs
https://github.com/kubeedge/ianvs/blob/645c83695c14b75f0ba37f53f7b1842b95b09f6f/core/testenvmanager/dataset/__init__.py
core/testenvmanager/dataset/__init__.py
# Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
python
Apache-2.0
645c83695c14b75f0ba37f53f7b1842b95b09f6f
2026-01-05T07:07:55.342322Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/create.py
create.py
import os import shutil settings = """ # Set the root directory of the repo as the search path import os import sys sys.path.insert(0, os.path.dirname(BASE_DIR)) # Install translations app, and sample app to test it INSTALLED_APPS += [ 'translations.apps.TranslationsConfig', 'sample.apps.SampleConfig', ...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/beautifier.py
beautifier.py
from django.db.models import Q, QuerySet from translations.models import TranslatableQuerySet def beautify(obj, representation=True): return beautify_any(obj, '', True, representation) def beautify_any(obj, base, first, representation): if isinstance(obj, dict): return beautify_iter( ob...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/setup.py
setup.py
import setuptools import json with open('./.github/README.md', 'r') as fh: long_description = fh.read() with open('config.json', 'r') as fh: info = json.load(fh) setuptools.setup( name=info['project']['dist'], version=info['release']['name'], description=info['project']['desc'], long_descri...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/config.py
config.py
import os import re import json # ------------------------------------------------------------- Static Content # project project = { 'name': 'Django Translations', 'github': 'django-translations', 'dist': 'django-translations', 'desc': 'Django model translation for perfectionists with deadlines.', ...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/tests/test_query.py
tests/test_query.py
import copy from tests.test_case import TranslationTestCase from django.db.models import Q from django.utils.translation import override from translations.query import _fetch_translations_query_getter, TQ from sample.models import Continent class FetchTranslationsQueryGetterTest(TranslationTestCase): """Tests ...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
true
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/tests/test_forms.py
tests/test_forms.py
from django.test import override_settings from tests.test_case import TranslationTestCase from translations.forms import generate_translation_form from sample.models import Timezone, Continent, City class GenerateTranslationFormTest(TranslationTestCase): def test_field_choices_automatic(self): form = g...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/tests/test_utils.py
tests/test_utils.py
from tests.test_case import TranslationTestCase from django.core.exceptions import FieldDoesNotExist from django.contrib.contenttypes.models import ContentType from translations.utils import _get_reverse_relation, _get_dissected_lookup, \ _get_relations_hierarchy, _get_entity_details, \ _get_purview, _get_tran...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
true
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/tests/test_views.py
tests/test_views.py
import json from tests.test_case import TranslationTestCase from django.urls import reverse from sample.models import Continent from sample.utils import create_samples class GetContinentListTest(TranslationTestCase): """Tests for `get_continent_list`.""" def test_fallback(self): create_samples( ...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/tests/test_languages.py
tests/test_languages.py
from django.test import override_settings from tests.test_case import TranslationTestCase from django.utils.translation import override from translations.languages import _get_supported_language, \ _get_default_language, _get_active_language, \ _get_all_languages, _get_all_choices, \ _get_translation_langu...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/tests/test_admin.py
tests/test_admin.py
from tests.test_case import TranslationTestCase from django.contrib.admin import site from sample.models import Timezone, Continent, City from sample.admin import TimezoneAdmin, ContinentAdmin, CityAdmin class MockRequest: pass class MockSuperUser: def has_perm(self, perm): return True request = ...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/tests/test_case.py
tests/test_case.py
from django.test import TransactionTestCase class TranslationTestCase(TransactionTestCase): """TestCase for Translation.""" def assertQuerySetEqual(self, *args, **kwargs) -> None: if hasattr(super(), "assertQuerySetEqual"): super().assertQuerySetEqual(*args, **kwargs) else: ...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/tests/test_context.py
tests/test_context.py
from tests.test_case import TranslationTestCase from django.utils.translation import override from translations.context import Context from sample.models import Continent from sample.utils import create_samples class ContextTest(TranslationTestCase): """Tests for `Context`.""" def test_init_instance_invali...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
true
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/tests/test_models.py
tests/test_models.py
from tests.test_case import TranslationTestCase from django.contrib.contenttypes.models import ContentType from django.db import utils from translations.models import Translation from sample.models import Timezone, Continent, City from sample.utils import create_samples class TranslationTest(TranslationTestCase): ...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/tests/__init__.py
tests/__init__.py
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/tests/test_querysets.py
tests/test_querysets.py
from django.test import override_settings from tests.test_case import TranslationTestCase from django.db.models import Q from django.utils.translation import override from sample.models import Continent from sample.utils import create_samples class TranslatableQuerySetTest(TranslationTestCase): """Tests for `Tra...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
true
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/tests/apps.py
tests/apps.py
from django.apps import AppConfig class TestsConfig(AppConfig): name = 'tests'
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/tests/test_management/__init__.py
tests/test_management/__init__.py
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/tests/test_management/test_commands/test_synctranslations.py
tests/test_management/test_commands/test_synctranslations.py
from io import StringIO from contextlib import ContextDecorator from unittest.mock import patch from tests.test_case import TranslationTestCase from django.core.management import call_command from django.contrib.contenttypes.models import ContentType from django.contrib.auth.models import User from translations.manag...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
true
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/tests/test_management/test_commands/__init__.py
tests/test_management/test_commands/__init__.py
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/translations/languages.py
translations/languages.py
"""This module contains the languages for the Translations app.""" from django.utils.translation import get_language from django.conf import settings __docformat__ = 'restructuredtext' _supported_code = {} _all_codes = None _all_choices = None _translation_codes = {} _translation_choices = {} def _get_supporte...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/translations/admin.py
translations/admin.py
"""This module contains the admins for the Translations app.""" from django.contrib.contenttypes.admin import GenericStackedInline from django.contrib import admin from translations.models import Translation from translations.forms import generate_translation_form __docformat__ = 'restructuredtext' class Translat...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/translations/query.py
translations/query.py
"""This module contains the query utilities for the Translations app.""" import copy from django.db.models import Q from django.db.models.constants import LOOKUP_SEP from translations.languages import _get_default_language, _get_probe_language from translations.utils import _get_dissected_lookup __docformat__ = 'r...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/translations/models.py
translations/models.py
"""This module contains the models for the Translations app.""" from django.db import models from django.conf import settings from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes.fields import GenericForeignKey, \ GenericRelation try: from django.utils.translation import ...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/translations/querysets.py
translations/querysets.py
"""This module contains the querysets for the Translations app.""" from django.db.models import query from translations.languages import _get_default_language, \ _get_translate_language, _get_probe_language from translations.query import _fetch_translations_query_getter from translations.context import Context ...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/translations/utils.py
translations/utils.py
"""This module contains the utilities for the Translations app.""" from django.db import models from django.db.models.query import prefetch_related_objects from django.db.models.constants import LOOKUP_SEP from django.core.exceptions import FieldError from django.contrib.contenttypes.models import ContentType from dja...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/translations/__init__.py
translations/__init__.py
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/translations/context.py
translations/context.py
"""This module contains the context managers for the Translations app.""" from django.db import models import translations.models from translations.languages import _get_default_language, \ _get_translate_language from translations.utils import _get_relations_hierarchy, _get_purview, \ _get_translations __d...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/translations/apps.py
translations/apps.py
from django.apps import AppConfig try: from django.utils.translation import ugettext_lazy as _ except ImportError: from django.utils.translation import gettext_lazy as _ class TranslationsConfig(AppConfig): name = 'translations' verbose_name = _('translations')
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/translations/forms.py
translations/forms.py
"""This module contains the form utilities for the Translations app.""" from django import forms from translations.models import Translation from translations.languages import _get_translation_choices __docformat__ = 'restructuredtext' def generate_translation_form(translatable): r""" Return the `Translat...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/translations/management/__init__.py
translations/management/__init__.py
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/translations/management/commands/synctranslations.py
translations/management/commands/synctranslations.py
""" This module contains the synctranslations command for the Translations app. """ import sys from django.core.management.base import ( BaseCommand, CommandError, ) from django.apps import apps from django.db.models import Q from django.contrib.contenttypes.models import ContentType from translations.models imp...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/translations/management/commands/__init__.py
translations/management/commands/__init__.py
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/translations/migrations/0001_initial.py
translations/migrations/0001_initial.py
# Generated by Django 2.0.7 on 2018-07-09 05:59 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('contenttypes', '0002_remove_content_type_name'), ] operations = [ migrations.CreateMode...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/translations/migrations/0002_auto_20180920_1245.py
translations/migrations/0002_auto_20180920_1245.py
# Generated by Django 2.1.1 on 2018-09-20 12:45 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('translations', '0001_initial'), ] operations = [ migrations.AlterField( model_name='translation', name='language', ...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/translations/migrations/__init__.py
translations/migrations/__init__.py
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/docs/conf.py
docs/conf.py
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/sample/views.py
sample/views.py
from rest_framework import generics from .models import Continent from .serializers import ContinentSerializer class ContinentListView(generics.ListAPIView): queryset = Continent.objects.all() serializer_class = ContinentSerializer def get_queryset(self): queryset = super(ContinentListView, self...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/sample/admin.py
sample/admin.py
from django.contrib import admin from translations.admin import TranslatableAdmin, TranslationInline from .models import Timezone, Continent, Country, City class TimezoneAdmin(TranslatableAdmin): inlines = [TranslationInline] class ContinentAdmin(TranslatableAdmin): inlines = [TranslationInline] class Co...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/sample/models.py
sample/models.py
from django.db import models try: from django.utils.translation import ugettext_lazy as _ except ImportError: from django.utils.translation import gettext_lazy as _ from translations.models import Translatable class Timezone(Translatable): name = models.CharField( verbose_name=_('name'), ...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/sample/serializers.py
sample/serializers.py
from rest_framework import serializers from .models import City, Country, Continent class CitySerializer(serializers.ModelSerializer): class Meta: model = City fields = ('id', 'name', 'denonym',) class CountrySerializer(serializers.ModelSerializer): cities = CitySerializer(many=True) ...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false
bbmokhtari/django-translations
https://github.com/bbmokhtari/django-translations/blob/9dc21b3beff0a71a01663095f4ca7eb98b60b64e/sample/utils.py
sample/utils.py
from translations.utils import _get_reverse_relation from .models import Continent, Country, City # -------------------------------------------------------------------- samples # Some translation spellings are written wrong on purpose to be able to # test them SAMPLES = { 'europe': { 'code': 'EU', ...
python
BSD-3-Clause
9dc21b3beff0a71a01663095f4ca7eb98b60b64e
2026-01-05T07:08:43.795656Z
false