Skip to content

Commit f9b365c

Browse files
committed
Fix some comment and code typos
I release these contributions under the terms of the Imazen Contributor Agreement V1.0 (http://imageresizing.net/licenses/contribute), the terms of which I accept and agree. - @stakx, 21 Jan 2018
1 parent 4bc6dbe commit f9b365c

File tree

20 files changed

+32
-32
lines changed

20 files changed

+32
-32
lines changed

Diff for: CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ Small commits can simply include this statement:
1313
(http://imageresizing.net/licenses/contribute), the terms of which I accept and agree.
1414
- [Name] [Date]
1515

16-
Frequent or heavy commiters should [sign and date the actual agreement](http://imageresizing.net/licenses/contribute), which only needs to be done once. Digital signatures or scanned copies are accepted; send them to [email protected].
16+
Frequent or heavy committers should [sign and date the actual agreement](http://imageresizing.net/licenses/contribute), which only needs to be done once. Digital signatures or scanned copies are accepted; send them to [email protected].
1717

1818
If you are introducing any new dependencies, those licenses may obligate you to create a notice.txt or license.txt file.

Diff for: README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ You can use command strings that are compatible with [ImageResizer 4 querystring
2929

3030
Or submit a JSON job file. JSON jobs can have multiple inputs and outputs, and can represent any kind of operation graph.
3131

32-
The following generates mutiple sizes of an image from an example job file:
32+
The following generates multiple sizes of an image from an example job file:
3333

3434
```
3535
imageflow_tool v0.1/build --json examples/export_4_sizes/export_4_sizes.json
@@ -43,7 +43,7 @@ imageflow_tool v0.1/build --json examples/export_4_sizes/export_4_sizes.json
4343

4444
By default, imageflow_tool prints a JSON response to stdout. You write this to disk with `--response`.
4545

46-
`--debug-package` will create a .zip file to reproduce problematic behavior with both `v0.1/build` and `v0.1/ir4`. Please sumbit bug reports; we try to make it easy.
46+
`--debug-package` will create a .zip file to reproduce problematic behavior with both `v0.1/build` and `v0.1/ir4`. Please submit bug reports; we try to make it easy.
4747

4848
## Using imageflow_server for dynamic imaging
4949

@@ -64,7 +64,7 @@ Now you can edit images from HTML... and use srcset without headache.
6464

6565
### Beyond the demo
6666

67-
You'll want to mount varous image source locations to prefixes. The `--mount` command parses a colon (`:`) delimited list of arguments. The first is the prefix you'll use in the URL (like `http://localhost:39876/prefix/`. The second is the engine name. Remaining arguments are sent to the engine.
67+
You'll want to mount various image source locations to prefixes. The `--mount` command parses a colon (`:`) delimited list of arguments. The first is the prefix you'll use in the URL (like `http://localhost:39876/prefix/`. The second is the engine name. Remaining arguments are sent to the engine.
6868

6969
#### Examples
7070

Diff for: bindings/ruby/lib/imageflow/vips/benchmark.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def benchmark!(log:)
240240
log << "\nComparing against #{reference}\n"
241241
png_images.each do |output|
242242
log << `dssim #{reference} #{output}`
243-
log << "Viusalize with > compare #{reference} #{output} -fuzz 1% x:\n"
243+
log << "Visualize with > compare #{reference} #{output} -fuzz 1% x:\n"
244244
end
245245
end
246246
end

Diff for: c_components/imageflow.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ typedef enum flow_codec_type {
5959

6060
typedef enum flow_scanlines_filter_type {
6161
flow_scanlines_filter_Sharpen, // 3x3, percentage-based
62-
flow_scanlines_filter_Blur, // 3x box blur to simulate guassian
62+
flow_scanlines_filter_Blur, // 3x box blur to simulate Gaussian
6363
flow_scanlines_filter_Convolve, // Apply convolution kernel
6464
flow_scanlines_filter_ColorMatrix, // Apply color matrix
6565
flow_scanlines_filter_ToLinear,

Diff for: c_components/imageflow_advanced.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ typedef double (*flow_detailed_interpolation_method)(const struct flow_interpola
272272
struct flow_interpolation_details {
273273
// 1 is the default; near-zero overlapping between windows. 2 overlaps 50% on each side.
274274
double window;
275-
// Coefficients for bucubic weighting
275+
// Coefficients for bicubic weighting
276276
double p1, p2, p3, q1, q2, q3, q4;
277277
// Blurring factor when > 1, sharpening factor when < 1. Applied to weights.
278278
double blur;
@@ -322,7 +322,7 @@ struct flow_interpolation_pixel_contributions {
322322
float * Weights; /* Normalized weights of neighboring pixels */
323323
int Left; /* Bounds of source pixels window */
324324
int Right;
325-
}; /* Contirbution information for a single pixel */
325+
}; /* Contribution information for a single pixel */
326326

327327
struct flow_interpolation_line_contributions {
328328
struct flow_interpolation_pixel_contributions * ContribRow; /* Row (or column) of contribution weights */

Diff for: docs/boxstarter

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#boxstarter really didn't work for me. I'd suggest using chocolatey directly and changing ExlorerOptions yourself.
1+
#boxstarter really didn't work for me. I'd suggest using chocolatey directly and changing ExplorerOptions yourself.
22

33

44
# Configure Windows

Diff for: docs/redis.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
* volatile-ttl allows us to confidently store metadata for remote objects, but also utilize leftover space for byte or bitmap data caching
66
* Persistence required, but interval is less crucial.
7-
* maxmemory-policy to noeviction will block writes instead of exhasuting resources.
7+
* maxmemory-policy to noeviction will block writes instead of exhausting resources.
88

9-
Partitioning across Redis servers needs to happen by an inexpensively-computed key. For RIAPI requests this could be the 'primay image' base URL. For JSON requests this could be the first listed resource. Duplicates would happen for multi-image sources.
9+
Partitioning across Redis servers needs to happen by an inexpensively-computed key. For RIAPI requests this could be the 'primary image' base URL. For JSON requests this could be the first listed resource. Duplicates would happen for multi-image sources.
1010

1111
## Schema:
1212

@@ -107,7 +107,7 @@ Metadata always goes in when encountered. Blobs have admission criteria
107107

108108
* Second request?
109109
* Sliding scale based on recent evictions?
110-
* Request/compuation cost vs. storage container retreival cost
110+
* Request/computation cost vs. storage container retrieval cost
111111

112112

113113

Diff for: imageflow_abi/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ pub extern "C" fn imageflow_context_get_output_buffer_by_id(context: *mut Contex
752752
let s = c.get_output_buffer_slice(io_id).map_err(|e| e.at(here!()))?;
753753

754754
if s.len().leading_zeros() == 0 {
755-
Err(nerror!(ErrorKind::Category(ErrorCategory::InternalError), "Error retriving output buffer; length overflow prevented (most significant bit set)."))
755+
Err(nerror!(ErrorKind::Category(ErrorCategory::InternalError), "Error retrieving output buffer; length overflow prevented (most significant bit set)."))
756756
} else {
757757
unsafe {
758758
(*result_buffer) = s.as_ptr();
@@ -831,7 +831,7 @@ pub fn exercise_json_message() {
831831
let expected_response = c::JsonResponse::teapot();
832832
let expected_json_out = ::std::str::from_utf8(
833833
expected_response.response_json.as_ref()).unwrap();
834-
let expected_reponse_status = expected_response.status_code;
834+
let expected_response_status = expected_response.status_code;
835835

836836
let response = imageflow_context_send_json(c,
837837

@@ -856,7 +856,7 @@ pub fn exercise_json_message() {
856856
::std::str::from_utf8(std::slice::from_raw_parts(json_out_ptr, json_out_size)).unwrap();
857857
assert_eq!(json_out_str, expected_json_out);
858858

859-
assert_eq!(json_status_code, expected_reponse_status);
859+
assert_eq!(json_status_code, expected_response_status);
860860

861861
imageflow_context_destroy(c);
862862
}

Diff for: imageflow_core/src/clients/stateless.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//!
2-
//! This module provides a thin wrapper over job building and image info retreival.
2+
//! This module provides a thin wrapper over job building and image info retrieval.
33
//! It catches panics and reports them as part of a very simple error enum.
44
//!
55
//! It would be nice for this to go away or be merged with Context
@@ -100,7 +100,7 @@ impl LibClient {
100100
Ok(Ok(v)) => Ok(v)
101101
};
102102

103-
context.destroy()?; // Termination errors trump exectuion errors/panics
103+
context.destroy()?; // Termination errors trump execution errors/panics
104104
result
105105

106106
}

Diff for: imageflow_core/src/codecs/gif/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ impl Decoder for GifDecoder {
125125
// Grab a reference
126126
let frame = self.next_frame.as_ref().ok_or_else(|| nerror!(ErrorKind::InvalidOperation, "read_frame was called without a frame available"))?;
127127

128-
//Prepare our resuable buffer
128+
//Prepare our reusable buffer
129129
let buf_size = self.reader.width() as usize * self.reader.height() as usize;
130130

131131
let buf_mut = self.buffer.get_or_insert_with(|| vec![0; buf_size]);

Diff for: imageflow_core/src/errors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ impl CErrorProxy{
11001100
/// `imageflow_context_clear_error`. You'll be ignored, as will future
11011101
/// `imageflow_add_to_callstack` invocations.
11021102
///
1103-
/// * If you provide an error code of zero one will be substited for you.
1103+
/// * If you provide an error code of zero one will be substituted for you.
11041104
///
11051105
/// Returns None if the context already has an error
11061106
fn raise_error(&mut self, e: FlowError)

Diff for: imageflow_core/src/ffi.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use internal_prelude::works_everywhere::*;
1717

1818
// These are reused in the external ABI, but only as opaque pointers
1919
///
20-
/// `ImaeflowJsonResponse` contains a buffer and buffer length (in bytes), as well as a status code
20+
/// `ImageflowJsonResponse` contains a buffer and buffer length (in bytes), as well as a status code
2121
/// The status code can be used to avoid actual parsing of the response in some cases.
2222
/// For example, you may not care about parsing an error message if you're hacking around -
2323
/// Or, you may not care about success details if you were sending a command that doesn't imply
@@ -386,7 +386,7 @@ pub struct BitmapFloat {
386386
pixels_borrowed: bool,
387387
/// The number of floats in the buffer
388388
float_count: uint32_t,
389-
/// The number of floats betwen (0,0) and (0,1)
389+
/// The number of floats between (0,0) and (0,1)
390390
float_stride: uint32_t,
391391

392392
/// If true, alpha has been premultiplied

Diff for: imageflow_core/tests/common/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ pub fn compare_bitmaps(_c: &ChecksumCtx, actual: &mut BitmapBgra, expected: &mu
518518
}
519519
}
520520

521-
/// Evalutates the given result against known truth, applying the given constraints
521+
/// Evaluates the given result against known truth, applying the given constraints
522522
pub fn compare_with<'a, 'b>(c: &ChecksumCtx, expected_checksum: &str, expected_bitmap : &'b mut BitmapBgra, result: ResultKind<'a>, require: Constraints, panic: bool) -> bool{
523523
if !check_size(&result, require.clone(), panic) {
524524
return false;
@@ -562,7 +562,7 @@ pub fn check_size<'a>( result: &ResultKind<'a>, require: Constraints, panic: boo
562562

563563

564564

565-
/// Evalutates the given result against known truth, applying the given constraints
565+
/// Evaluates the given result against known truth, applying the given constraints
566566
pub fn evaluate_result<'a>(c: &ChecksumCtx, name: &str, mut result: ResultKind<'a>, require: Constraints, panic: bool) -> bool{
567567
let (exact, trusted) = result.exact_match_verbose(c, name);
568568

Diff for: imageflow_core/tests/skip/graph.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//// This test case helped expose a flaw in graph creation, where we swapped max_edges and max_nodes and caused memory
88
//// overlap
99
//// It also showed how that post_optimize_flatten calls which create pre_optimize_flattenable nodes
10-
//// Can cause execution to fail in fewer than 6 passes. We may want to re-evaluate our graph exeuction approach
10+
//// Can cause execution to fail in fewer than 6 passes. We may want to re-evaluate our graph execution approach
1111
//flow_c * c = flow_context_create();
1212
//struct flow_graph * g = flow_graph_create(c, 10, 10, 200, 2.0);
1313
//ERR(c);

Diff for: imageflow_core/tests/skip/malloc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Test malloc higher than swap, reduce until success
44
// Write zeroes to huge malloc, verify process doesn't crash (hey, overcommit isn't what you think)
55
// Free
6-
// Malloc 1mb chunks until they fail. See if smaller mallocs succeed, and how many of them. Wait a bit, then try an extra 1mb chunck
6+
// Malloc 1mb chunks until they fail. See if smaller mallocs succeed, and how many of them. Wait a bit, then try an extra 1mb chunk
77
// Have time limit
88

99

Diff for: imageflow_helpers/src/debug.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::thread;
77

88
use std::sync::{Once, ONCE_INIT};
99

10-
static CONIDITIONAL_SET: Once = ONCE_INIT;
10+
static CONDITIONAL_SET: Once = ONCE_INIT;
1111
static SET_HOOK: Once = ONCE_INIT;
1212

1313

@@ -21,7 +21,7 @@ pub fn backtraces_wanted() -> bool{
2121
}
2222
}
2323
pub fn upgrade_panic_hook_once_if_backtraces_wanted(){
24-
CONIDITIONAL_SET.call_once(|| {
24+
CONDITIONAL_SET.call_once(|| {
2525
if backtraces_wanted(){
2626
set_panic_hook_once();
2727
}

Diff for: imageflow_helpers/src/pollster.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Single thread
2-
// shared datastructure for adding endpoints
2+
// shared data structure for adding endpoints
33
// Endpoints callback
44
use ::preludes::from_std::*;
55
use ::std;

Diff for: imageflow_riapi/src/sizing_tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ fn test_steps() {
629629
let mut temp = Vec::new();
630630
let mut source_sizes = Vec::new();
631631

632-
//Holds resuable maps/vectors for collecting info
632+
//Holds reusable maps/vectors for collecting info
633633
let mut current = invalid_group_data();
634634

635635
let mut failed_kits = Vec::new();

Diff for: imageflow_server/src/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
// pub enum BlobSource{
2828
// Directory(String),
2929
// HttpServer(String),
30-
// //TODO: Azure and S3 blob backens
30+
// //TODO: Azure and S3 blob backend
3131
// }
3232
//
3333
// pub enum InternalCachingStrategy{

Diff for: imageflow_types/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ pub enum CommandStringKind{
340340
ImageResizer4
341341
}
342342

343-
/// Constraint types. TODO: expand to include nearly everthing RIAPI does.
343+
/// Constraint types. TODO: expand to include nearly everything RIAPI does.
344344
#[derive(Serialize, Deserialize, Clone, PartialEq, Debug)]
345345
pub enum Constraint {
346346
#[serde(rename="within")]
@@ -671,7 +671,7 @@ pub struct Build001Config {
671671
}
672672

673673
/// Represents a complete build job, combining IO objects with a framewise operation graph.
674-
/// TODO: cleaup builder_config.
674+
/// TODO: cleanup builder_config.
675675
#[derive(Serialize, Deserialize, Clone, PartialEq, Debug)]
676676
pub struct Build001 {
677677
pub builder_config: Option<Build001Config>,

0 commit comments

Comments
 (0)