Skip to content

Commit e2b2a51

Browse files
authored
Remove gratuitous non-ASCII characters (cvat-ai#7683)
In `cvat-ui/src/index.html`, the meta element seems useless (the default is already to index and follow; I'm not even sure `index` and `follow` are valid values). So just remove it entirely.
1 parent 7f764a2 commit e2b2a51

File tree

8 files changed

+9
-10
lines changed

8 files changed

+9
-10
lines changed

cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/approximation-accuracy.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function thresholdFromAccuracy(approxPolyAccuracy: number): number {
3535
let threshold = 0;
3636
if (approxPolyMaxDistance > 0) {
3737
if (approxPolyMaxDistance <= 8) {
38-
// 2.75x+7y+1=0 linear made from two points (1; 0.25) and (8; 3)
38+
// -2.75x+7y+1=0 linear made from two points (1; 0.25) and (8; 3)
3939
threshold = (2.75 * approxPolyMaxDistance - 1) / 7;
4040
} else {
4141
// 4 for 9, 8 for 10, 16 for 11, 32 for 12, 64 for 13

cvat-ui/src/index.html

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
name="description"
1717
content="Computer Vision Annotation Tool (CVAT) is a free, open source, web-based image and video annotation tool which is used for labeling data for computer vision algorithms. CVAT supports the primary tasks of supervised machine learning: object detection, image classification, and image segmentation. CVAT allows users to annotate data for each of these cases"
1818
/>
19-
<meta name="”robots”" content="index, follow" />
2019
<link rel="preconnect" href="https://fonts.googleapis.com">
2120
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
2221
<link href="https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,[email protected],400;8..144,500;8..144,600;8..144,700;8..144,800&family=Sora&display=swap" rel="stylesheet"> </head>

cvat-ui/src/reducers/notifications-reducer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ export default function (state = defaultState, action: AnyAction): Notifications
355355
...state.messages.auth,
356356
requestPasswordResetDone: {
357357
message: `Check your email for a link to reset your password.
358-
If it doesnt appear within a few minutes, check your spam folder.`,
358+
If it doesn't appear within a few minutes, check your spam folder.`,
359359
},
360360
},
361361
},

cvat/apps/iam/permissions.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ def filter(self, queryset):
198198
q_objects.append(Q())
199199

200200
# By default, a QuerySet will not eliminate duplicate rows. If your
201-
# query spans multiple tables (e.g. members__user_id, owner_id), its
201+
# query spans multiple tables (e.g. members__user_id, owner_id), it's
202202
# possible to get duplicate results when a QuerySet is evaluated.
203-
# Thats when youd use distinct().
203+
# That's when you'd use distinct().
204204
return queryset.filter(q_objects[0]).distinct()
205205

206206
@classmethod

tests/cypress/e2e/actions_objects/case_99_save_filtered_object_in_AAM.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ context('Save filtered object in AAM.', () => {
4040
});
4141

4242
describe(`Testing case "${caseId}"`, () => {
43-
it(`Set filter label == ${labelName}.`, () => {
43+
it(`Set filter label == "${labelName}".`, () => {
4444
cy.addFiltersRule(0);
4545
cy.setFilter({
4646
groupIndex: 0,

tests/cypress/e2e/actions_objects2/case_16_z_order_features.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ context('Actions on polygon', () => {
6363
cy.get('.cvat-canvas-container').click();
6464
});
6565

66-
it('Second shape is over the first shape', () => {
66+
it('Second shape is over the first shape', () => {
6767
// The larger the index of an element in the array the closer it is to us
6868
cy.get('.cvat_canvas_shape').then(($canvasShape) => {
6969
expect(Number($canvasShape[1].id.match(/\d+$/))).to.be.equal(2);
@@ -76,7 +76,7 @@ context('Actions on polygon', () => {
7676
cy.get('#cvat_canvas_shape_1').should('have.class', 'cvat_canvas_shape_activated');
7777
});
7878

79-
it('First shape is over the second shape', () => {
79+
it('First shape is over the second shape', () => {
8080
// The larger the index of an element in the array the closer it is to us
8181
cy.get('.cvat_canvas_shape').then(($canvasShape) => {
8282
expect(Number($canvasShape[1].id.match(/\d+$/))).to.be.equal(1);

tests/cypress/e2e/actions_objects2/case_17_lock_hide_features.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ context('Lock/hide features.', () => {
218218
cy.contains('Labels').click();
219219
});
220220
});
221-
it('Repeat hide/lock for one of the labels. Objects with other labels werent affected.', () => {
221+
it("Repeat hide/lock for one of the labels. Objects with other labels weren't affected.", () => {
222222
const objectsSameLabel = ['cvat_canvas_shape_1', 'cvat_canvas_shape_2', 'cvat_canvas_shape_3'];
223223
cy.get('.cvat-objects-sidebar-labels-list').within(() => {
224224
// Hide and lock all object with "Main task" label (#cvat_canvas_shape_1-3).

tests/cypress/e2e/actions_tasks3/case_44_changing_default_value_for_attribute.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ context('Changing a default value for an attribute.', () => {
3333
});
3434

3535
describe(`Testing case "${caseId}", issue 2968`, () => {
36-
it('Add a label, add text (leave it’s value empty by default) & checkbox attributes.', () => {
36+
it('Add a label, add text (leave its value empty by default) & checkbox attributes.', () => {
3737
cy.intercept('PATCH', '/api/tasks/**').as('patchTask');
3838
cy.addNewLabel({ name: additionalLabel }, additionalAttrsLabel);
3939
cy.wait('@patchTask').its('response.statusCode').should('equal', 200);

0 commit comments

Comments
 (0)