Skip to content

Commit

Permalink
Fix a bunch of typos (cvat-ai#6405)
Browse files Browse the repository at this point in the history
<!-- Raise an issue to propose your change
(https://github.com/opencv/cvat/issues).
It helps to avoid duplication of efforts from multiple independent
contributors.
Discuss your ideas with maintainers to be sure that changes will be
approved and merged.
Read the [Contribution
guide](https://opencv.github.io/cvat/docs/contributing/). -->

<!-- Provide a general summary of your changes in the Title above -->

### Motivation and context
<!-- Why is this change required? What problem does it solve? If it
fixes an open
issue, please link to the issue here. Describe your changes in detail,
add
screenshots. -->

### How has this been tested?
<!-- Please describe in detail how you tested your changes.
Include details of your testing environment, and the tests you ran to
see how your change affects other areas of the code, etc. -->

### Checklist
<!-- Go over all the following points, and put an `x` in all the boxes
that apply.
If an item isn't applicable for some reason, then ~~explicitly
strikethrough~~ the whole
line. If you don't do that, GitHub will show incorrect progress for the
pull request.
If you're unsure about any of these, don't hesitate to ask. We're here
to help! -->
- [x] I submit my changes into the `develop` branch
- ~~[ ] I have added a description of my changes into the
[CHANGELOG](https://github.com/opencv/cvat/blob/develop/CHANGELOG.md)
file~~
- ~~[ ] I have updated the documentation accordingly~~
- ~~[ ] I have added tests to cover my changes~~
- ~~[ ] I have linked related issues (see [GitHub docs](

https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword))~~
- ~~[ ] I have increased versions of npm packages if it is necessary

([cvat-canvas](https://github.com/opencv/cvat/tree/develop/cvat-canvas#versioning),

[cvat-core](https://github.com/opencv/cvat/tree/develop/cvat-core#versioning),

[cvat-data](https://github.com/opencv/cvat/tree/develop/cvat-data#versioning)
and

[cvat-ui](https://github.com/opencv/cvat/tree/develop/cvat-ui#versioning))~~

### License

- [x] I submit _my code changes_ under the same [MIT License](
https://github.com/opencv/cvat/blob/develop/LICENSE) that covers the
project.
  Feel free to contact the maintainers if that's a concern.
  • Loading branch information
SpecLad authored Jun 29, 2023
1 parent 3f5eb71 commit 29397b3
Show file tree
Hide file tree
Showing 16 changed files with 27 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ class OpenCVControlComponent extends React.PureComponent<Props & DispatchToProps
toolsBlockerState.algorithmsLocked ? 0 : threshold);
let points = [];
if (toolsBlockerState.algorithmsLocked && this.latestPoints.length > 2) {
// disable approximation for lastest two points to disable fickering
// disable approximation for latest two points to disable fickering
const [x, y] = this.latestPoints.slice(-2);
this.latestPoints.splice(this.latestPoints.length - 2, 2);
points = openCVWrapper.contours.approxPoly(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function MeanQuality(props: Props): JSX.Element {
return (
<AnalyticsCard
title='Mean annotation quality'
className='cvat-task-mean-annotaion-quality'
className='cvat-task-mean-annotation-quality'
value={toRepresentation(reportSummary?.accuracy)}
tooltip={tooltip}
rightElement={dowloadReportButton}
Expand Down
2 changes: 1 addition & 1 deletion cvat-ui/src/components/task-analytics-page/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
height: $grid-unit-size * 68;
}

.cvat-task-mean-annotaion-quality {
.cvat-task-mean-annotation-quality {
.ant-statistic {
display: flex;
flex-direction: column;
Expand Down
16 changes: 8 additions & 8 deletions cvat/apps/dataset_manager/annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def _calc_objects_similarity(obj0, obj1, start_frame, overlap, dimension):
def _unite_objects(obj0, obj1):
raise NotImplementedError()

def _modify_unmached_object(self, obj, end_frame):
def _modify_unmatched_object(self, obj, end_frame):
raise NotImplementedError()

def merge(self, objects, start_frame, overlap, dimension):
Expand All @@ -239,7 +239,7 @@ def merge(self, objects, start_frame, overlap, dimension):
if not old_objects_by_frame or not int_objects_by_frame:
for frame in old_objects_by_frame:
for old_obj in old_objects_by_frame[frame]:
self._modify_unmached_object(old_obj, start_frame + overlap)
self._modify_unmatched_object(old_obj, start_frame + overlap)
self.objects.extend(int_objects)
return

Expand Down Expand Up @@ -280,7 +280,7 @@ def merge(self, objects, start_frame, overlap, dimension):
# (e.g. generate a shape with outside=True at the end).
for j in old_objects_indexes:
if j != -1:
self._modify_unmached_object(old_objects[j],
self._modify_unmatched_object(old_objects[j],
start_frame + overlap)
else:
# We don't have old objects on the frame. Let's add all new ones.
Expand All @@ -301,7 +301,7 @@ def _unite_objects(obj0, obj1):
# TODO: improve the trivial implementation
return obj0 if obj0["frame"] < obj1["frame"] else obj1

def _modify_unmached_object(self, obj, end_frame):
def _modify_unmatched_object(self, obj, end_frame):
pass

def pairwise(iterable):
Expand Down Expand Up @@ -415,7 +415,7 @@ def _unite_objects(obj0, obj1):
# TODO: improve the trivial implementation
return obj0 if obj0["frame"] < obj1["frame"] else obj1

def _modify_unmached_object(self, obj, end_frame):
def _modify_unmatched_object(self, obj, end_frame):
pass

class TrackManager(ObjectManager):
Expand Down Expand Up @@ -531,7 +531,7 @@ def _calc_objects_similarity(obj0, obj1, start_frame, overlap, dimension):
else:
return 0

def _modify_unmached_object(self, obj, end_frame):
def _modify_unmatched_object(self, obj, end_frame):
shape = obj["shapes"][-1]
if not shape["outside"]:
shape = deepcopy(shape)
Expand All @@ -540,7 +540,7 @@ def _modify_unmached_object(self, obj, end_frame):
obj["shapes"].append(shape)

for element in obj.get("elements", []):
self._modify_unmached_object(element, end_frame)
self._modify_unmatched_object(element, end_frame)

@staticmethod
def get_interpolated_shapes(
Expand Down Expand Up @@ -575,7 +575,7 @@ def find_angle_diff(right_angle, left_angle):
angle_diff = ((angle_diff + 180) % 360) - 180
if abs(angle_diff) >= 180:
# if the main arc is bigger than 180, go another arc
# to find it, just substract absolute value from 360 and inverse sign
# to find it, just subtract absolute value from 360 and inverse sign
angle_diff = 360 - abs(angle_diff) * -1 if angle_diff > 0 else 1

return angle_diff
Expand Down
2 changes: 1 addition & 1 deletion cvat/apps/dataset_manager/formats/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def make_exporter(name):


# Add checking for TF availability to avoid CVAT sever instance / interpreter
# crash and provide a meaningful diagnistic message in the case of AVX
# crash and provide a meaningful diagnostic message in the case of AVX
# instructions unavailability:
# https://github.com/openvinotoolkit/cvat/pull/1567
import datumaro.util.tf_util as TF
Expand Down
2 changes: 1 addition & 1 deletion cvat/apps/dataset_manager/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def split_name(file):

data_serializer = DataSerializer(data={
"server_files": files['media'],
#TODO: followed fields whould be replaced with proper input values from request in future
#TODO: following fields should be replaced with proper input values from request in future
"use_cache": False,
"use_zip_chunks": True,
"image_quality": 70,
Expand Down
2 changes: 1 addition & 1 deletion cvat/apps/dataset_repo/dataset_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def _parse_url(self):
raise ex


# Method creates the main branch if repostory doesn't have any branches
# Method creates the main branch if repository doesn't have any branches
def _create_master_branch(self):
if len(self._rep.heads):
raise Exception("Some heads already exists")
Expand Down
6 changes: 3 additions & 3 deletions cvat/apps/engine/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def export_to(self, file, target_dir=None):
elif isinstance(file, ZipFile):
self._export_task(zip_obj=file, target_dir=target_dir)
else:
raise ValueError('Unsuported type of file argument')
raise ValueError('Unsupported type of file argument')

class _ImporterBase():
def __init__(self, *args, **kwargs):
Expand Down Expand Up @@ -574,7 +574,7 @@ def read(zip_object):
elif isinstance(self._file, ZipFile):
return read(self._file)

raise ValueError('Unsuported type of file argument')
raise ValueError('Unsupported type of file argument')

def _create_annotations(self, db_job, annotations):
self._prepare_annotations(annotations, self._labels_mapping)
Expand Down Expand Up @@ -940,7 +940,7 @@ def export(db_instance, request, queue_name):
use_target_storage_conf = request.query_params.get('use_default_location', True)
else:
raise Exception(
"Unexpected type of db_isntance: {}".format(type(db_instance)))
"Unexpected type of db_instance: {}".format(type(db_instance)))
use_settings = strtobool(str(use_target_storage_conf))
obj = db_instance if use_settings else request.query_params
location_conf = get_location_configuration(
Expand Down
2 changes: 1 addition & 1 deletion cvat/apps/engine/migrations/0017_db_redesign_20190221.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from django.conf import settings
from cvat.apps.dataset_manager.task import _merge_table_rows

# some modified functions to transer annotation
# some modified functions to transfer annotation
def _bulk_create(db_model, db_alias, objects, flt_param):
if objects:
if flt_param:
Expand Down
6 changes: 3 additions & 3 deletions cvat/apps/engine/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1877,9 +1877,9 @@ def update(self, instance, validated_data):
storage_status = storage.get_status()
if storage_status == Status.AVAILABLE:
new_manifest_names = set(i.get('filename') for i in validated_data.get('manifests', []))
previos_manifest_names = set(i.filename for i in instance.manifests.all())
delta_to_delete = tuple(previos_manifest_names - new_manifest_names)
delta_to_create = tuple(new_manifest_names - previos_manifest_names)
previous_manifest_names = set(i.filename for i in instance.manifests.all())
delta_to_delete = tuple(previous_manifest_names - new_manifest_names)
delta_to_create = tuple(new_manifest_names - previous_manifest_names)
if delta_to_delete:
instance.manifests.filter(filename__in=delta_to_delete).delete()
if delta_to_create:
Expand Down
2 changes: 1 addition & 1 deletion cvat/apps/engine/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def _validate_scheme(url):
parsed_url = urlparse.urlparse(url)

if parsed_url.scheme not in ALLOWED_SCHEMES:
raise ValueError('Unsupported URL sheme: {}. Only http and https are supported'.format(parsed_url.scheme))
raise ValueError('Unsupported URL scheme: {}. Only http and https are supported'.format(parsed_url.scheme))

def _download_data(urls, upload_dir):
job = rq.get_current_job()
Expand Down
2 changes: 1 addition & 1 deletion cvat/apps/engine/tests/test_rest_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
from cvat.apps.engine.tests.utils import (ApiTestBase, ForceLogin, logging_disabled,
generate_image_file, generate_video_file)

#supress av warnings
#suppress av warnings
logging.getLogger('libav').setLevel(logging.ERROR)

def create_db_users(cls):
Expand Down
2 changes: 1 addition & 1 deletion cvat/apps/events/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def create(self, request):

@extend_schema(summary='Method returns csv log file ',
methods=['GET'],
description='Recieve logs from the server',
description='Receive logs from the server',
parameters=[
OpenApiParameter('org_id', location=OpenApiParameter.QUERY, type=OpenApiTypes.INT, required=False,
description="Filter events by organization ID"),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load i18n %}
{% autoescape off %}
{% blocktrans %}Confirm your email adress{% endblocktrans %}
{% blocktrans %}Confirm your email address{% endblocktrans %}
{% endautoescape %}
2 changes: 1 addition & 1 deletion cvat/apps/quality_control/quality_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -2488,7 +2488,7 @@ def prepare_report_for_downloading(db_report: models.QualityReport, *, host: str
# Decorate the report for better usability and readability:
# - add conflicting annotation links like:
# <host>/tasks/62/jobs/82?frame=250&type=shape&serverID=33741
# - covert some fractions to percents
# - convert some fractions to percents
# - add common report info

task_id = db_report.get_task().id
Expand Down
2 changes: 1 addition & 1 deletion cvat/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ paths:
/api/events:
get:
operationId: events_list
description: Recieve logs from the server
description: Receive logs from the server
summary: 'Method returns csv log file '
parameters:
- in: query
Expand Down

0 comments on commit 29397b3

Please sign in to comment.