Skip to content

Commit 8019b52

Browse files
committed
run the non-us patch with "modelled/modeled"
1 parent 4c1089f commit 8019b52

File tree

16 files changed

+27
-27
lines changed

16 files changed

+27
-27
lines changed

csharp/ql/lib/semmle/code/csharp/dataflow/SSA.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ module Ssa {
170170
/**
171171
* Gets the control flow node of this SSA definition, if any. Phi nodes are
172172
* examples of SSA definitions without a control flow node, as they are
173-
* modelled at index `-1` in the relevant basic block.
173+
* modeled at index `-1` in the relevant basic block.
174174
*/
175175
final ControlFlow::Node getControlFlowNode() {
176176
exists(ControlFlow::BasicBlock bb, int i | this.definesAt(_, bb, i) | result = bb.getNode(i))

javascript/ql/lib/semmle/javascript/JsonStringifiers.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class JSON2CSVTaintStep extends TaintTracking::SharedTaintStep {
6262
/**
6363
* A step through the [`prettyjson`](https://www.npmjs.com/package/prettyjson) library.
6464
* This is not quite a `JSON.stringify` call, as it e.g. does not wrap keys in double quotes.
65-
* It's therefore modelled as a taint-step rather than as a `JSON.stringify` call.
65+
* It's therefore modeled as a taint-step rather than as a `JSON.stringify` call.
6666
*/
6767
class PrettyJSONTaintStep extends TaintTracking::SharedTaintStep {
6868
override predicate step(DataFlow::Node pred, DataFlow::Node succ) {

javascript/ql/lib/semmle/javascript/RangeAnalysis.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ module RangeAnalysis {
130130
}
131131

132132
/**
133-
* Holds if `r` can be modelled as `r = root * sign + bias`.
133+
* Holds if `r` can be modeled as `r = root * sign + bias`.
134134
*
135135
* Only looks "one step", that is, does not follow data flow and does not recursively
136136
* unfold nested arithmetic expressions.
@@ -203,7 +203,7 @@ module RangeAnalysis {
203203
}
204204

205205
/**
206-
* Holds if `r` can be modelled as `r = root * sign + bias`.
206+
* Holds if `r` can be modeled as `r = root * sign + bias`.
207207
*/
208208
predicate linearDefinition(DataFlow::Node r, DataFlow::Node root, int sign, Bias bias) {
209209
if exists(r.getImmediatePredecessor())
@@ -229,7 +229,7 @@ module RangeAnalysis {
229229
}
230230

231231
/**
232-
* Holds if `r` can be modelled as `r = xroot * xsign + yroot * ysign + bias`.
232+
* Holds if `r` can be modeled as `r = xroot * xsign + yroot * ysign + bias`.
233233
*/
234234
predicate linearDefinitionSum(
235235
DataFlow::Node r, DataFlow::Node xroot, int xsign, DataFlow::Node yroot, int ysign, Bias bias
@@ -260,7 +260,7 @@ module RangeAnalysis {
260260
}
261261

262262
/**
263-
* Holds if the given comparison can be modelled as `A <op> B + bias` where `<op>` is the comparison operator,
263+
* Holds if the given comparison can be modeled as `A <op> B + bias` where `<op>` is the comparison operator,
264264
* and `A` is `a * asign` and likewise `B` is `b * bsign`.
265265
*/
266266
predicate linearComparison(

javascript/ql/lib/semmle/javascript/Routing.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ module Routing {
297297
* req.app; // alias for 'app'
298298
* })
299299
* ```
300-
* This can be modelled by mapping `(0, "app")` to the `app` data-flow node (`n=0` corresponds
300+
* This can be modeled by mapping `(0, "app")` to the `app` data-flow node (`n=0` corresponds
301301
* to the `req` parameter).
302302
*/
303303
DataFlow::Node getValueImplicitlyStoredInAccessPath(int n, string path) { none() }
@@ -466,7 +466,7 @@ module Routing {
466466
}
467467

468468
/**
469-
* A node flowing into a use site, modelled as a child of the use site.
469+
* A node flowing into a use site, modeled as a child of the use site.
470470
*/
471471
private class UseSiteSource extends UseSite {
472472
UseSiteSource() { this = any(UseSite use).getSource() }
@@ -717,7 +717,7 @@ module Routing {
717717
/**
718718
* A call where a mutable router object escapes into a parameter or is returned from a function.
719719
*
720-
* This is modelled as a route setup targeting the "local router" value and having
720+
* This is modeled as a route setup targeting the "local router" value and having
721721
* the "target router" as its only child.
722722
*
723723
* For example,

javascript/ql/lib/semmle/javascript/SSA.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* affect `x`, while `yield` expressions in functions other than `f`
1313
* still may affect it.
1414
*
15-
* This is modelled as follows.
15+
* This is modeled as follows.
1616
*
1717
* Within each function `g` that accesses a variable `x` declared in an
1818
* enclosing function `f`, we introduce a pseudo-assignment to `x` called

javascript/ql/lib/semmle/javascript/dataflow/TypeInference.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* not allow reasoning about nested property writes of the form `p.q.r` (except where `p.q`
2121
* is a module/exports object and hence handled by local flow).
2222
*
23-
* Also note that object inheritance is not modelled. Soundness is, however, preserved in
23+
* Also note that object inheritance is not modeled. Soundness is, however, preserved in
2424
* the sense that all expressions whole value derives (directly or indirectly) from a property
2525
* read are marked as indefinite.
2626
*/
@@ -175,9 +175,9 @@ class AnalyzedValueNode extends AnalyzedNode, DataFlow::ValueNode { }
175175
* A module for which analysis results are available.
176176
*
177177
* The type inference supports AMD, CommonJS and ES2015 modules. All three
178-
* variants are modelled as CommonJS modules, with `module` object and a default
178+
* variants are modeled as CommonJS modules, with `module` object and a default
179179
* `exports` object which is the initial value of `module.exports`. ES2015
180-
* exports are modelled as property writes on `module.exports`, and imports
180+
* exports are modeled as property writes on `module.exports`, and imports
181181
* as property reads on any potential value of `module.exports`.
182182
*/
183183
class AnalyzedModule extends TopLevel {

javascript/ql/lib/semmle/javascript/dataflow/internal/VariableTypeInference.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ private newtype TAnalyzedGlobal =
475475
TAnalyzedGlocal(GlobalVariable gv, TopLevel tl) { useIn(gv, _, tl) and exists(defIn(gv, tl)) } or
476476
/**
477477
* A global variable that is used in at least one toplevel where it is not defined, and
478-
* hence has to be modelled as a truly global variable.
478+
* hence has to be modeled as a truly global variable.
479479
*/
480480
TAnalyzedGenuineGlobal(GlobalVariable gv) {
481481
exists(TopLevel tl |
@@ -525,7 +525,7 @@ private class AnalyzedGlocal extends AnalyzedGlobal, TAnalyzedGlocal {
525525

526526
/**
527527
* A global variable that is used in at least one toplevel where it is not defined, and
528-
* hence has to be modelled as a truly global variable.
528+
* hence has to be modeled as a truly global variable.
529529
*/
530530
private class AnalyzedGenuineGlobal extends AnalyzedGlobal, TAnalyzedGenuineGlobal {
531531
GlobalVariable gv;

javascript/ql/lib/semmle/javascript/frameworks/Express.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ module Express {
352352
* If the preceding handler's path cannot be determined, it is assumed to match.
353353
*
354354
* Note that this predicate is not complete: path globs such as `'*'` are not currently
355-
* handled, and relative paths of subrouters are not modelled. In particular, if an outer
355+
* handled, and relative paths of subrouters are not modeled. In particular, if an outer
356356
* router installs a route handler `r1` on a path that matches the path of a route handler
357357
* `r2` installed on a subrouter, `r1` will not be recognized as an ancestor of `r2`.
358358
*/

javascript/ql/lib/semmle/javascript/frameworks/Redux.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ module Redux {
288288
}
289289

290290
/**
291-
* A call to `reduce-reducers`, modelled as a reducer that dispatches to an arbitrary subreducer.
291+
* A call to `reduce-reducers`, modeled as a reducer that dispatches to an arbitrary subreducer.
292292
*
293293
* In reality, this function chains together all of the reducers, but in practice it is only used
294294
* when the reducers handle a disjoint set of action types, which makes it behave as if it

javascript/ql/lib/semmle/javascript/frameworks/ShellJS.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module ShellJS {
3737
override string getName() { result = name }
3838
}
3939

40-
/** The `shelljs.exec` library modelled as a `shelljs` member. */
40+
/** The `shelljs.exec` library modeled as a `shelljs` member. */
4141
private class ShellJsExec extends Range {
4242
ShellJsExec() { this = DataFlow::moduleImport("shelljs.exec") }
4343

@@ -76,7 +76,7 @@ module ShellJS {
7676
}
7777

7878
/**
79-
* A file system access that can't be modelled as a read or a write.
79+
* A file system access that can't be modeled as a read or a write.
8080
*/
8181
private class ShellJSGenericFileAccess extends FileSystemAccess, ShellJSCall {
8282
ShellJSGenericFileAccess() {
@@ -132,7 +132,7 @@ module ShellJS {
132132
}
133133

134134
/**
135-
* A call to `shelljs.exec()` modelled as command execution.
135+
* A call to `shelljs.exec()` modeled as command execution.
136136
*/
137137
private class ShellJSExec extends SystemCommandExecution, ShellJSCall {
138138
ShellJSExec() { name = "exec" }

0 commit comments

Comments
 (0)