dc7751de09b71544eea14c4a06cf4753cf45f7c9,polyaxon/api/endpoint/tensorboard.py,TensorboardResourceListEndpoint,_initialize_context,#TensorboardResourceListEndpoint#,74
Before Change
group_id = self.kwargs.get("group_id")
if experiment_id:
experiment = get_object_or_404(Experiment, project=project, id=experiment_id)
has_tensorboard = experiment.has_tensorboard
tensorboard = experiment.tensorboard
elif group_id:
group = get_object_or_404(ExperimentGroup, project=project, id=group_id)
has_tensorboard = group.has_tensorboard
tensorboard = group.tensorboard
else:
has_tensorboard = project.has_tensorboard
tensorboard = project.tensorboard
self.tensorboard = tensorboard
self.has_tensorboard = has_tensorboard
After Change
def _initialize_context(self) -> None:
// pylint:disable=attribute-defined-outside-init
super()._initialize_context()
self.tensorboard = get_object_or_404(TensorboardJob,
id=self.job_id,
project=self.project)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: polyaxon/polyaxon
Commit Name: dc7751de09b71544eea14c4a06cf4753cf45f7c9
Time: 2019-03-18
Author: mouradmourafiq@gmail.com
File Name: polyaxon/api/endpoint/tensorboard.py
Class Name: TensorboardResourceListEndpoint
Method Name: _initialize_context
Project Name: chakki-works/doccano
Commit Name: 47435a285d7d8834e99b91e42f4b21a31d3ae00a
Time: 2018-08-08
Author: light.tree.1.13@gmail.com
File Name: app/server/api.py
Class Name: AnnotationsAPI
Method Name: get_queryset
Project Name: chakki-works/doccano
Commit Name: 47435a285d7d8834e99b91e42f4b21a31d3ae00a
Time: 2018-08-08
Author: light.tree.1.13@gmail.com
File Name: app/server/api.py
Class Name: AnnotationAPI
Method Name: get_queryset
Project Name: chakki-works/doccano
Commit Name: 47435a285d7d8834e99b91e42f4b21a31d3ae00a
Time: 2018-08-08
Author: light.tree.1.13@gmail.com
File Name: app/server/api.py
Class Name: AnnotationsAPI
Method Name: get_serializer_class