"", 404"
23,1045,False, msg += f'No capture found for {path} at {datetime}.', msg += f'
No captures found for {path} at {datetime}.
'
24,1046,False, print(f'Getting CDXJ Lines with the URI-R {urir} from {indexPath}'), print(f'Getting CDXJ lines with the URI-R {urir} from {indexPath}')
25,1047,False, print(f'Getting CDXJ Lines with the URI-R {urir} from {indexPath}'), print(f'Getting CDXJ lines with the URI-R {urir} from {indexPath}')
26,1048,False, msg += f'No capture found for {urir} at {datetime}', msg += f'
{@link SequenceBuilder}'s let you compose scripted events such as waiting 5 ticks, then setting the weather to rain"," *
{@link SequenceBuilder}'s let you compose scripted events such as waiting 5 ticks, then setting the weather to rain.
"
57,2547,True, */, * @return The ItemStack in the specific hand. * * @docParam hand MCHand.MAIN_HAND */
58,2522,True," *
{@link SequenceBuilder}'s let you compose scripted events such as waiting 5 ticks, then setting the weather to rain"," *
{@link SequenceBuilder}'s let you compose scripted events such as waiting 5 ticks, then setting the weather to rain.
"
59,2523,False, * @param task The task toa dd., * @param task The task to add.
60,2524,False, * Manages the regisrtation of taggable elements and their managers used for Tags., * Manages the registration of taggable elements and their tag managers.
61,2525,False, String value();," @Pattern(""[a-z\\d_.-]+:[a-z\\d/._-]+"") String value();"
62,2526,False, String value();," @Pattern(""[a-z\\d_.-]+:[a-z\\d/._-]+"") String value();"
63,2548,True, */, * Sets a copied given itemStack to the hand * * @docParam hand MCHand.MAIN_HAND * @docParam itemStack */
64,5253,False, ActionView::TestCase::TestController.new, @controller ||= ActionView::TestCase::TestController.new
65,2527,False, if(manager.getClass().equals(KnownTagManager.class)) {, if(KnownTagManager.isAssignableFrom(manager.getClass())) {
66,2528,True, final RunInfo info = Objects.requireNonNull(this.currentRunInfo);," throw new IllegalStateException(""Unable to terminate a script run that never started"");"
67,2529,False, return Optional.ofNullable(this.presentAnnotationTypes.get(annotationClass)).map(it -> (T) it);, return Optional.ofNullable(this.presentAnnotationTypes.get(annotationClass)).map(annotationClass::cast);
68,2530,False, if(old != null) {, if(enums.containsKey(id)) {
69,2531,False," @ZenCodeType.Getter(""priceMutiplier"")"," @ZenCodeType.Getter(""priceMultiplier"")"
70,2557,True, * @param tokens The biome resource location, * @param tokens The biome's resource location
71,5254,False," def render_view(view, &block)"," def render(view, &block)"
72,2532,False, * This means that also bracket handlers in the various sub-packages will be queried., *
The concept of package used in this method corresponds to the ZenCode concept instead of the Java concept. * This means that bracket handlers in the various sub-packages will also be queried.
73,2533,False, * above is sufficient for CraftTweaker to handle registration manually., * above is sufficient for CraftTweaker to handle registration automatically.
74,2534,False, * Gets the name of the sub command used in {@code ct dump} to invoke this dumper., * Gets the name of the sub command used in {@code /ct dump} to invoke this dumper.
75,2535,False, * above is sufficient for CraftTweaker to handle registration manually., * above is sufficient for CraftTweaker to handle registration automatically.
76,2577,False, * @docEvent canceled the Entity does not travel to the dimension., * @docEvent canceled the Entity will not travel to the dimension.
77,2536,False, * above is sufficient for CraftTweaker to handle registration manually., * above is sufficient for CraftTweaker to handle registration automatically.
78,2537,False," *
A native type is a class that belongs that has not been written with ZenCode scripts in mind, but that is"," *
A native type is a pre-existing class that has not been written with ZenCode scripts in mind, but that is"
79,2538,True," PacketHandler.CHANNEL.send(PacketDistributor.PLAYER.with(() -> (ServerPlayerEntity) player), new MessageOpen(""https://docs.blamejared.com/1.16/en/index""));"," PacketHandler.CHANNEL.send(PacketDistributor.PLAYER.with(() -> (ServerPlayerEntity) player), new MessageOpen(""https://docs.blamejared.com""));"
80,2539,True," CommandUtilities.send(""CT GUI was limiting and very buggy and has since been removed. It is now recommended to learn ZenScript instead - you can browse the wiki for reference (/wiki) or ask for help on the Discord server (/discord)."", player);"," CommandUtilities.send(""CT GUI was limiting and very buggy and has since been removed. It is now recommended to learn ZenScript instead - you can browse the wiki for reference (/ct wiki) or ask for help on the Discord server (/ct discord)."", player);"
81,2540,True, * Sets items will be dropped., * Sets which items will be dropped.
82,2549,False," ""Multiple recipe handlers found for the same recipe class %s: attempted registration of %s, using %s"",", .filter(IRecipe.class::equals)
83,2541,True," private static final SimpleCommandExceptionType INVALID_STRING = new SimpleCommandExceptionType(new LiteralMessage(""Invalid String""));"," private static final SimpleCommandExceptionType INVALID_STRING = new SimpleCommandExceptionType(new LiteralMessage(""Unknown Recipe Type""));"
84,2542,False, if (++this.currentRight >= this.size) {, this.currentRight++; if (this.currentRight >= this.size) {
85,2543,True," default > boolean isThereConflictBetween(final IRecipeManager manager, final T firstRecipe, final U secondRecipe) {"," default > boolean doesConflict(final IRecipeManager manager, final T firstRecipe, final U secondRecipe) {"
86,2544,True, * Sets this ItemStack without a tag, * Removes the tag from this ItemStack.
87,2545,True, * Gets the level of given enchantment on the item. Returns 0 if the item doesn't have given enchantment., * Gets the level of the given enchantment on the item. Returns 0 if the item doesn't have the given enchantment.
88,2546,True," CraftTweakerAPI.logDebug(""Registering %s"", name);"," CraftTweakerAPI.logDebug(""Registering '%s'"", name);"
89,2550,True, * that is hardcoded and thus cannot have its ingredients replaced: this is a good candidate to addition.
, * that is hardcoded and thus cannot have its ingredients replaced: this is a good candidate to exclude.
90,2551,False," CTCommands.registerCommand(""inventory"", CTCommands.playerCommand(""tags"", ""Outputs the tags of the item in your inventory"", (player, stack) -> {"," CTCommands.registerCommand(""inventory"", CTCommands.playerCommand(""tags"", ""Outputs the tags of the items in your inventory"", (player, stack) -> {"
91,2552,True," CraftTweakerAPI.logWarning(""Actually, the immutable ItemStack is not damageable. Use `mutable` method to make it mutable first!"");"," CraftTweakerAPI.logWarning(""Cannot damage IItemStack, make it mutable with `mutable` first!"");"
92,2553,False," IRecipe> iRecipe = RecipeManager.deserializeRecipe(new ResourceLocation(CraftTweaker.MODID, name), recipeObject);"," IRecipe> iRecipe = RecipeManager.deserializeRecipe(new ResourceLocation(CraftTweaker.MODID, name), recipeObject); if (iRecipe.getType() != getRecipeType()) { throw new IllegalArgumentException(""The type of JSON Recipe is not matching the recipe type!""); }"
93,2554,True," private static final String CANCELED_INFO = ""The class is cancelable."";"," private static final String CANCELED_INFO = ""The event is cancelable."";"
94,2555,True," * Sets the burn time of this item, for use in the furnace and other machines"," * Sets the burn time of this ingredient, for use in the furnace and other machines"
95,2556,True, * Throws an error if it can't get such a biome, * Throws an error if it can't get the biome
96,2558,True, * Gets damage source based on type., * Gets a damage source based on type.
97,2559,False," registerCommand(new CommandImpl(""blockinfo"", ""Activates or deactivates the block reader. In block info mode, right-clicking a block will tell you it's name, metadata and Tile Entity data if applicable."", (CommandCallerPlayer) (player, stack) -> {"," registerCommand(new CommandImpl(""blockInfo"", ""Activates or deactivates the block reader. In block info mode, right-clicking a block will tell you it's name, metadata and Tile Entity data if applicable."", (CommandCallerPlayer) (player, stack) -> {"
98,2560,False," ExpandPlayerEntity.sendMessage(player, MCTextComponent.createStringTextComponent(""Block info mode activated. Right-click a block to see its data.""));"," ExpandPlayerEntity.sendMessage(player, MCTextComponent.createStringTextComponent(""Block info mode activated. Right-click a block to see it's data.""));"
99,2561,False," })), ""give"", ""Gives the player the item using the Bracket handler syntax. You can also apply tags by appending a .withTag() call."");"," })), ""give"", ""Gives the player an item using the Bracket handler syntax. You can also apply tags by appending a .withTag() call."");"
100,2562,False, * Gets the item stack of the entity in given slot., * Gets the ItemStack in the specific slot.
101,2563,False, * @return The item stack of the entity in given slot., * @return The ItemStack in the specific slot.
102,2564,False, @ZenCodeType.Getter," @ZenCodeType.Getter(""data"")"
103,7780,False, verbs = []string{}, var verbs []string
104,2565,False, * get persistent data that can not be lost when player dies, * Gets the persisted NBT tag that is saved between deaths. * Many mods use this to keep track of if they have given the player an item or not.
105,2566,False, * update persistent data that can not be lost when player dies, * Updates the player's persisted data that is saved between deaths.
106,2567,False, * Listen it to add your custom anvil recipe.," * AnvilUpdateEvent is fired when the inputs (either input stack, or the name) of an anvil are changed. * You can listen to this event to add custom anvil recipes."
107,2568,False, * @docEvent canceled prevent the block from being broken., * @docEvent canceled prevents the block from being broken.
108,2569,False," * Gets player who broke the block. If no player is available, use a fake player"," * Gets the player who broke the block. If no player is available, use a fake player"
109,2570,False," throw new IllegalStateException(""the event is not fired on client world or server world."");"," throw new IllegalStateException(""The event was not fired on a client world or a server world."");"
110,2571,False, * Gets if redstone update was forced during setBlock call, * Gets if a redstone update was forced during setBlock call
111,2572,False," * For example: Used to determine if an axe can strip, a shovel can path, or a hoe can till."," * For example: Used to determine if an axe can strip a log, a shovel can turn grass into a path, or a hoe can till dirt into farmland."
112,2573,False," * If setFinalState not called, will return the original state."," * If setFinalState is not called, it will return the original state."
113,2574,False, * This will be bypassed if canceled returning null instead.," * This will be bypassed if canceled, returning null instead."
114,2575,False, * This will be bypassed if canceled returning null instead.," * This will be bypassed if canceled, returning null instead."
115,2576,False, * @docEvent default it will pass on to the vanilla growth mechanics, * @docEvent default the default vanilla growth mechanics will run.
116,2578,False," * @docEvent canceled will prevent the Item from being notified that it has stopped being used. The only vanilla item this would effect are bows, and it would cause them NOT to fire there arrow."," * @docEvent canceled will prevent the Item from being notified that it has stopped being used. The only vanilla item this would effect are bows, and it would cause them NOT to fire their arrow."
117,2579,False, * @docEvent canceled the Entity does not fall., * @docEvent canceled the Entity does not fall (no fall damage is inflicted).
118,2580,False, IEntityArrow getArrow();," @ZenGetter(""arrow"") default IEntityArrow getArrow(); { CraftTweakerAPI.logError(""Class "" + getClass() + "" doesn't override ProjectileImpactArrowEvent#getArrow""); return (IEntityArrow) getArrowNew(); } @Deprecated IEntity getArrow();"
119,2581,True, return 0.0f;, return this.getHungerDamage();
120,2582,False, boolean isItemBlock();," default boolean isItemBlock() { CrafttweakerAPI.logError(""Class "" + this.getClass().getCanonicalName() + "" doesn't override IItemStack#isItemBlock() !""); return false; }"
121,2583,False, return other != null && other.getClass() == this.getClass() && ((MCPlayer) other).player == player;, return other != null && other.getClass() == this.getClass() && player != null && player.equals(((MCPlayer) other).player);
122,5251,False," def process_attributes(buffer: +"""", **attributes)"," def process_attributes(buffer = +"""", **attributes)"
123,2881,False, config.setApiServer('http://nylas.com');, config.setApiServer('https://nylas.com');
124,3587,True, parsed_body = JSON.parse(raw_body) rescure nil, parsed_body = JSON.parse(raw_body) rescue nil
125,3592,True, # Public: Sort Code.," # Public: The String sort code. E.g. ""089999""."
126,3593,True, # Public: Account number.," # Public: The String account number. E.g. ""66374958""."
127,3923,True," return tree_map(_resolve, args)"," def to_torch(cls, args: Any): return tree_map_only(cls, lambda x: x._t, args)"
128,5252,False, respond_to?(:after_template) && after_template, after_template if respond_to?(:after_template)
129,4256,True," annotations := append(c.additionalAnnotations, ""kubectl.kubernetes.io/last-applied-configuration"")"," annotations := append([]string{""kubectl.kubernetes.io/last-applied-configuration""}, c.additionalAnnotations...)"
130,4907,False," performance: 'Performance',"," performance: 'Perf',"
131,4908,True," inject('fire<%= options.injectionMapping[service] %>Obj', firebase.<%= service %>)"," inject('fire<%= options.injectionMapping[service] %>Obj', firebase.<%= options.serviceMapping[service] %>)"
132,4909,False," inject('fire<%= options.injectionMapping[service] %>Obj', firebase.<%= service %>)"," inject('fire<%= options.injectionMapping[service] %>Obj', firebase.<%= options.serviceMapping[service] %>)"
133,5248,True, blockquote { visit_children(node)}, blockquote { visit_children(node) }
134,5250,True, return unless render?, return buffer unless render?
135,5255,False, end, register_element :element_name
136,5256,True, Here's how you can register custom elements., Here's how you can register custom elements. The custom element will only be available in the view where it is registered and subclasses of that view.
137,5257,True, register_element :hello, register_element :trix_editor
138,5258,True, end," trix_editor input: ""content"" autofocus: true"
139,5259,False," """""," Phlex.configuration.logger.warn ""Cannot evaluate view translate path ...` """""
140,5260,True, end, if unchanged case output when ActiveSupport::SafeBuffer raw(output) when String text(output) end end
141,5261,True, end, if defined?(ActiveSupport::SafeBuffer) && output.is_a?(ActiveSupport::SafeBuffer) raw(output) else text(output) end
142,5262,False,," def self.field(method_name, type:)"
143,5263,True," input_field :search_field, type: ""search"""," def field_name(*field) @_view_context.field_name(ActiveModel::Naming.param_key(@model.class), *field) end"
144,5265,False, end," case (arguments = @arguments&.parts) in [] nil in [SyntaxTree::BareAssocHash, *] nil in [first] first else arguments end"
145,5266,False, attr_reader :helpers, def helpers @_view_context end
146,5267,False," %( config.autoload_paths << Rails.root.join(""app"")\n)"," %( config.autoload_paths << ""#{root}/app"""
147,5268,False, end," it ""renders comments"" do expect(output).to be == %(
\n \n Matz\n \n \n hey, folks\n \n\n \n Hello, World from a ViewComponent!\n\n\n \n
Start Card A
\n \n
Hello from A
\n) end"
148,5269,False, end," it ""renders comments"" do expect(output).to be == %(
\n \n _why\n \n \n I'm back\n \n\n \n\n \n
Start Card A
\n \n
Hello from A
\n\n) end"
149,5270,True," # Rails isnt in this env, dont load the engine."," # Rails isn't in this env, don't load the engine."
150,5271,True, output = yield(self) if block_given?, output = yield(self)
151,5272,False, @_target << CGI.escape_html(content.to_s), case content when String @_target << CGI.escape_html(content) when Symbol @_target << CGI.escape_html(content.name) else @_target << CGI.escape_html(content.to_s) end
152,5273,False," @_target << ""<#{tag}>"" << CGI.escape_html(content.to_s) << ""#{tag}>"""," case content when String @_target << ""<#{tag}>"" << CGI.escape_html(content) << ""#{tag}>"" when Symbol @_target << ""<#{tag}>"" << CGI.escape_html(content.name) << ""#{tag}>"" else @_target << ""<#{tag}>"" << CGI.escape_html(content.to_s) << ""#{tag}>"" end"
153,5274,True, attributes.keys.each do |key|, attributes.each_key do |key|
154,5275,False," _raw ApplicationControllerForPhlex.new.render_to_string(partial:, locals: kwargs)", _raw ApplicationControllerForPhlex.new.view_context.render(...)
155,5276,True,"Phlex::Context.send(:include, Phlex::Rails::Rendering)",Phlex::Context.include(Phlex::Rails::Rendering)
156,5277,True," attributes[:href] = attributes[:href].gsub(""javascript:"", """") if attributes[:href]"," attributes[:href].sub!(/^\s*(javascript:)+/, """") if attributes[:href]"
157,5278,True," @classes.gsub!(UNDERSCORE, DASH) if Phlex.configuration.convert_underscores_to_dashes.eql?(true)"," @classes.gsub!(UNDERSCORE, DASH) if Phlex.configuration.convert_underscores_to_dashes"
158,5279,False, end," describe ""when configured to convert_underscores_to_dashes"" it ""converts underscores to dashes and produces the classes"" do expect(output).to eq %{} end end"
159,5280,False, kwargs.keys.each do, def initialize(**assigns) assigns.keys.each do
160,5409,False," assert_equal(""Ticket"", I18n.t(defaults.shift, **options))"," defaults = [:product, ""Ticket""] options = {:scope=>[:activerecord, :models], :count=>1, :default=> defaults} assert_equal(""Ticket"", I18n.t(:""product/ticket"", **options))"
161,5410,False, # are supported in the current version of Pysch., # are supported in the current version of Psych.
162,5411,False," YAML.load_file('test/test_data/locales/en.yml', k => v)"," YAML.load('', **{k => v})"
163,5412,True, # There is a breaking chang in ruby that produces warning with ruby 2.7 and won't work as expected with ruby 3.0, # There is a breaking change in ruby that produces warning with ruby 2.7 and won't work as expected with ruby 3.0
164,5413,True," I18n.#{method} is currently disabled, likely because your application is still in it's loading phase."," I18n.#{method} is currently disabled, likely because your application is still in its loading phase."
165,5843,True, mock_client.describe_vpc_endpoint_services(, mock_client.describe_vpc_endpoint_services.assert_called_with(
166,5863,True, to_delete_set = set()," to_delete_set = set(map(tuple, to_delete))"
167,5844,True, mock_client.describe_vpc_endpoint_services(, mock_client.describe_vpc_endpoint_services.assert_called_with(
168,5860,True, s3_mock.delete_objects.call_count == 2, assert s3_mock.delete_objects.call_count == 2
169,5868,True, select none or more partition keys to be used. If you, select the partition keys to be used in the query phase. If you
170,5869,True, ? `Select one or more column from the table`, ? `Select one or more columns from the table`
171,5870,True, of smaller queries.`}," : `To control the granularity of each query, you can select the partition keys to be used in the query phase. If you select none, only one query will be performed for the data mapper. If you select all, more queries will be run to scan each partition of the data separately.`}"
172,5875,True," raise ValueError(""Unsupported Encryption SDK version"")"," raise ValueError(""Unsupported Amazon S3 Encryption Client Version"")"
173,5880,False, lines.pop(), lines = content.strip().splitlines()
174,5881,False," : ""Unknown (Planning pending)"""," : ""Unknown (Plan pending)"""
175,23907,False,// creating a parquet schema from a Go strut and using the parquet.(*Schema).Traverse,// creating a parquet schema from a Go struct and using the parquet.(*Schema).Traverse
176,5915,True," return any(x['Column'].find(""."") >= 0 for x in to_delete)", return any('.' in x['Column'] for x in to_delete)
177,5916,False, return str[len(prefix):(len(str) - len(suffix))], return str[len(prefix):-len(suffix)]
178,5917,True," if col_type in [""char"", ""string"", ""varchar""]:"," if col_type in (""char"", ""string"", ""varchar""):"
179,5918,True," if col_type in [""bigint"", ""int"", ""smallint"", ""tinyint""]:"," if col_type in (""bigint"", ""int"", ""smallint"", ""tinyint""):"
180,6677,False," ""sqlalchemy>=1.2.0,<=1.4.29"","," ""sqlalchemy>=1.2.0,<=1.4.28"","
181,5919,True," if col_type in [""double"", ""float""]:"," if col_type in (""double"", ""float""):"
182,5960,True," "," "
183,5961,True," "," "
184,5962,True," "," "
185,5963,False," "," "
186,5964,True," "," "
187,5969,False, mvqs = {}," qs = event.get(""queryStringParameters"", {}) mvqs = event.get(""multiValueQueryStringParameters"", {})"
188,5997,True," raise ValueError(""from_version ({}) was more recent than to_version ({})"".format("," raise ValueError(""from_version ({}) is more recent than to_version ({})"".format("
189,5998,True, if(from_index == -1):, if from_index == -1:
190,5999,True, if(to_index == -1):, if to_index == -1:
191,6000,True, if(to_index < from_index):, if to_index < from_index:
192,6001,True, delete_markers = object_versions['DeleteMarkers']," delete_markers = object_versions.get('DeleteMarkers', [])"
193,6002,True, versions = object_versions['Versions']," versions = object_versions.get('Versions', [])"
194,48048,True, @staticmethod, @staticmethod
195,6679,True," ""sqlalchemy>=1.2.0,<=1.4.28"","," ""sqlalchemy>=1.2.0,<=1.4.27"","
196,6065,False," ""body"": json.dumps({""Settings"": config})"," ""body"": json.dumps({""Settings"": config}, cls=DecimalEncoder)"
197,6066,False,from boto_utils import get_config,"from boto_utils import get_config, DecimalEncoder"
198,6067,False," ""Users in the Deletion Queue"": queue.MatchIds.length,"," ""Matches in the Deletion Queue"": queue.MatchIds.length,"
199,6089,False, and then clicking View S3 Bucket Policy., and then choosing View S3 Bucket Policy.
200,6090,False, Now you must update the S3 Bucket Policy for the S3 Bucket, You must update the S3 Bucket Policy for the S3 Bucket
201,6091,False, perform any required deletions. In the Data Mappers page you can, perform any required deletions. On the Data Mappers page you can
202,6648,False," geography=[""GeoAlchemy2==0.12.5"", ""shapely""],"," geography=[""GeoAlchemy2"", ""shapely""], "
203,6649,False, assert results > 0," results = session.query(table.c.string).where( not_(table.c.string.regexp_match("".*foo.*"")).all() ) assert len(results) > 0"
204,6650,False," table.c.string.regexp_match("".*52 St &.*"").all()","def test_regexp_match(session, table): results = session.query(table.c.string).where( table.c.string.regexp_match("".*52 St &.*"")).all()"
205,6651,False, ),"def test_not_regexp_match(session, table): results = session.query(table.c.string).where( not_(table.c.string.regexp_match(""^Barrow St & Hudson St$""))).all()"
206,6652,False," ""pyarrow>=3.0.0,<=9"","," ""pyarrow>=3.0.0,<10.0dev"","
207,6653,True,import textwrap,# Copyright 2021 Google LLC## Use of this source code is governed by an MIT-style# license that can be found in the LICENSE file or at# https://opensource.org/licenses/MIT.
208,6654,True, ..., pass
209,6658,False," ""sqlalchemy>=1.4.32,<=1.4.32"","," ""sqlalchemy>=1.2.0,<=1.4.27"","
210,6660,True," ""sqlalchemy>=1.4.32,<=1.4.32"","," ""sqlalchemy>=1.2.0,<=1.4.27"","
211,48049,True, target.write(DialogFlowConverter.create_function(, target.write(self.create_function(
212,6667,False," {""type"": ""service_account"", ""project_id"": ""service-account-project"",},"," {""type"": ""service_account"", ""project_id"": ""service-account-project""},"
213,6668,False," {""type"": ""service_account"", ""project_id"": ""service-account-project"",},"," {""type"": ""service_account"", ""project_id"": ""service-account-project""},"
214,6681,True," ""sqlalchemy>=1.2.0,<=1.4.27"","," ""sqlalchemy>=1.2.0,<=1.4.26"","
215,6683,True,# limitations under the License.,"# Copyright (c) 2021 The sqlalchemy-bigquery Authors## Permission is hereby granted, free of charge, to any person obtaining a copy of# this software and associated documentation files (the ""Software""), to deal in# the Software without restriction, including without limitation the rights to# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of# the Software, and to permit persons to whom the Software is furnished to do so,# subject to the following conditions:## The above copyright notice and this permission notice shall be included in all# copies or substantial portions of the Software.## THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE."
216,6684,True," f"" not {name}."""," f"" not {repr(name)}."""
217,6685,True," # one, we create an alias for it, so as not to conlfict with an existing"," # one, we create an alias for it, so as not to conflict with an existing"
218,6688,False, This is not a user-facing methos., This is not a user-facing method.
219,57105,True," naming.LabelPGBackRestRepo: ""repo1"","," naming.LabelPGBackRestRepo: pb.Spec.RepoName,"
220,6694,True," # If project_id is missing, use defualt project_id"," # If project_id is missing, use default project_id"
221,7043,True," err.message.indexOf(' Unterminated string in JSON') > -1,"," err.message.indexOf('Unterminated string in JSON') > -1,"
222,7053,True, calls ++;, calls++;
223,7052,True, server.listen(async () => {, server.listen(() => {
225,7729,False,func (s *DuplicateEnvVarTestSuite) TestDeploymentWithNoDuplicatsPass() {,func (s *DuplicateEnvVarTestSuite) TestDeploymentWithNoDuplicatesPass() {
226,7730,False, envVarNames[envVar.Name]++," envVarNames[envVar.Name]++ if num, ok := envVarNames[envVar.Name]; !ok || num != 2 { continue } results = append(results, diagnostic.Diagnostic{ Message: fmt.Sprintf( ""Duplicate environment variable %s in container %q found"", envVar.Name, container.Name, ), })"
227,7731,False," Message: fmt.Sprintf(""probe port %s does not a port in container %q."", port.StrVal, container.Name),"," Message: fmt.Sprintf(""probe port %s does not match a port in container %q."", port.StrVal, container.Name),"
228,7732,True," Message: fmt.Sprintf(""probe port %s does not match a port in container %q."", port.StrVal, container.Name),"," Message: fmt.Sprintf(""probe port %q does not match a port in container %q."", port.StrVal, container.Name),"
229,7734,True,"func (l *MockLintContext) ModifyIngess(t *testing.T, name string, f func(ingress *networkingV1.Ingress)) {","func (l *MockLintContext) ModifyIngress(t *testing.T, name string, f func(ingress *networkingV1.Ingress)) {"
230,7744,False," errorList.AddStringf(""could not expand path: %q"", expandedPath)"," errorList.AddWrapf(err, ""could not expand path: %q"", expandedPath)"
231,7735,True, // Found the all!, // Found them all!
232,7736,False, selectors := map[string]bool{}, selectors := map[string]struct{}
233,7745,False," errorList.AddStringf(""could not expand non-absolute path: %q"", absPath)"," errorList.AddWrapf(err, ""could not expand non-absolute path: %q"", absPath)"
234,7747,True, if err := registry.Register(&chk); err != nil {, for i := range checks { if err := registry.Register(&checks[i]); err != nil {
235,7748,False, c.SetArgs(args), c.SetArgs(args) c.SilenceUsage = true
236,7749,True,type ReplicaTestSuite struct {,type NodeAffinityTestSuite struct {
237,7751,True, // Key of the forbidden label., // Key of the forbidden annotation.
238,7752,True, // Value of the forbidden label., // Value of the forbidden annotation.
239,7753,False,},"type PodSpec struct { // This overrides the Containers field in the v1.PodSpec, therefore making sure that callers // only access the Containers array through utility functions in this package. Containers struct{} v1.PodSpec}"
240,7754,True," Message: ""pod/ deploymentLike object is non-isolated"","," Message: ""pods created by this object are non-isolated"","
241,7760,False," return []diagnostic.Diagnostic{{Message: fmt.Sprintf(""container %q has a %s pull image policy"", container.Name, container.ImagePullPolicy)}}"," return []diagnostic.Diagnostic{{Message: fmt.Sprintf(""container %q has ImagePullPolicy set to %s"", container.Name, container.ImagePullPolicy)}}"
242,7761,True, }, forbiddenPolicies := set.NewStringSet(p.ForbiddenPolicies...)
243,7770,False, }," if err := errorList.ToError(); err != nil { return nil, err }"
244,7762,True," if _, ok := forbiddenPolicies[string(container.ImagePullPolicy)]; ok {", if forbiddenPolicies.Contains(string(container.ImagePullPolicy)) {
245,7763,True," ""golang.stackrox.io/kube-linter/pkg/check"""," ""golang.stackrox.io/kube-linter/internal/set"" ""golang.stackrox.io/kube-linter/pkg/check"""
246,7764,True, }," nsSelector := peer.NamespaceSelector if nsSelector != nil { return """" // For now, we assume all pods with namespace selectors are okay }"
247,7766,False, Blockedlist []string, BlockList []string
248,7767,False, }," if isInList(blockedRegexes, container.Image) { results = append(results, diagnostic.Diagnostic{Message: fmt.Sprintf(""The container %q is using an improper image tag, %q."", container.Name, container.Image)}) }"
249,7771,True, clusterRoleGVK = rbacV1.SchemeGroupVersion.WithKind(ClusterRole)," clusterRoleGVK = rbacV1.SchemeGroupVersion.WithKind(""ClusterRole"")"
250,7772,True," return fmt.Sprintf(""%s/%s"", clusterRoleBindingGVK.Group, clusterRoleBindingGVK.Version)", return clusterRoleBindingGVK.GroupVersion().String()
251,7773,True," return fmt.Sprintf(""%s/%s"", roleBindingGVK.Group, roleBindingGVK.Version)", return roleBindingGVK.GroupVersion().String()
252,7774,True, roleExists := false, var roleExists bool
253,7775,True, clusterroles := []*rbacV1.ClusterRole{}, var results []diagnostic.Diagnostic var clusterroles []*rbacV1.ClusterRole
254,7776,False, }," binding, ok := object.K8sObject.(*rbacV1.RoleBinding) if ok { namespace := stringutils.OrDefault(binding.Namespace, ""default"") return findRole(binding.RoleRef.Name, namespace, lintCtx, resourceRegexes, verbRegexes, p.FlagRolesNotFound) }"
255,7781,False," HumanName: ""Minimum recommended replicas not met"","," HumanName: ""Minimum replicas"","
256,7782,False," Description: ""Flag applications running fewer than recommended number of replicas"","," Description: ""Flag applications running fewer than the specified number of replicas"","
257,7783,True, var kinds []string," kinds := make([]string, 0, len(allObjectKinds))"
258,7784,False," Message: fmt.Sprintf(""sensitive host system directory %s is mounted on container %s"", dir, container.Name)})"," Message: fmt.Sprintf(""host system directory %q is mounted on container %q"", dir, container.Name)})"
259,7785,True," ObjectKinds: []string{objectkinds.DeploymentLike},"," ObjectKinds: []string{objectkinds.Service},"
260,7786,True, if int(port.ContainerPort) >= 0 && int(port.ContainerPort) <= 1024 {, if int(port.ContainerPort) > 0 && int(port.ContainerPort) < 1024 {
261,7787,False," return []diagnostic.Diagnostic{{Message: fmt.Sprintf(""resource %s shares, host's process namespace."", object.K8sObject.GetName())}}"," return []diagnostic.Diagnostic{{Message: ""object shares the host's process namespace (via hostPID=true)""}}"
262,7788,True," Clusterrolebinding = ""ClusterRoleBinding"""," ClusterRoleBinding = ""ClusterRoleBinding"""
263,7789,True, clusterrolebindingGVK = schema.GroupVersionKind{, clusterRoleBindingGVK = schema.GroupVersionKind{
264,7791,False," return func(_ lintcontext.LintContext, object lintcontext.Object) []diagnostic.Diagnostic {"," compiledRegexes := make([]*regexp.Regexp, 0, len(p.Dirs)) for _, dir := range p.Dirs { r, err := regexp.Compile(dir) if err != nil { return nil, errors.Wrapf(err, ""invalid regex %s"", dir) } compiledRegexes = append(compiledRegexes, r) } return func(_ lintcontext.LintContext, object lintcontext.Object) []diagnostic.Diagnostic {"
265,7792,True, // JSONFormat is for JSON output with kube-linter own data structs., // JSONFormat is for JSON output with kube-linter's own data structs.
266,7793,True, markDownTemplateStr = `# KubeLinter cheks, markDownTemplateStr = `# KubeLinter checks
267,7794,True,**Template**: [{{.Check.Template}}](generated/templates.md#{{.Check.Template}}),**Template**: [{{.Check.Template}}](generated/templates.md#{{.TemplateLink}})
268,7795,True, var SchemeBuilder = runtime.NewSchemeBuilder(ocsAppsV1.AddToScheme), schemeBuilder := runtime.NewSchemeBuilder(ocsAppsV1.AddToScheme)
269,7805,True," return strings.Join(sorted, "", "")"," return strings.Join(e.allowedValues.AsSortedSlice(func(i, j string) bool { return i < j }), "", "")"
270,7806,False," transform = func(p *ParameterDesc, level int) HumanReadableParamDesc {"," transform := func(p *ParameterDesc, level int) HumanReadableParamDesc {"
271,7807,True, }," ns := stringutils.OrDefault(n.Namespace, """")"
272,7808,True,"func (o Object) MarshalJSON() ([]byte, error) {","func (o *Object) MarshalJSON() ([]byte, error) {"
273,7809,False,func New() *lintContextImpl {,func New() LintContext {
274,7810,False, {{- if eq .FlagDesc.AddFlag true }}, {{- if .FlagDesc.AddFlag true }}
275,7811,True, found := false, var found bool
276,7839,True," Short: ""Lint Kubernetes YAML files"","," Short: ""Lint Kubernetes YAML files and Helm charts"","
277,7850,False, //Minimum number of replicas, // The minimum number of replicas a deployment must have before anti-affinity is enforced on it
278,7851,False, if replicas > 1 {, if int(replicas) >= p.MinReplicas {
279,7852,True," Instantiate: params.WrapInstantiateFunc(func(_ params.Params) (check.Func, error) {"," Instantiate: params.WrapInstantiateFunc(func(p params.Params) (check.Func, error) {"
280,7853,False, if podTemplateSpec.Spec.Affinity != nil && podTemplateSpec.Spec.Affinity.PodAntiAffinity != nil {, if affinity := podTemplateSpec.Spec.Affinity; affinity != nil && affinity.PodAntiAffinity != nil {
281,7855,False," return []diagnostic.Diagnostic{{Message: fmt.Sprintf(""object with (%v) replicas but anti affinity is not specified in pod spec "", replicas)}}"," return []diagnostic.Diagnostic{{Message: fmt.Sprintf(""object has %d replicas but does not specify inter pod anti-affinity"", replicas)}}"
282,7856,True," Description: ""Flag objects with multiple replicas but anti affinity not specified in the pod template spec"","," Description: ""Flag objects with multiple replicas but inter-pod anti affinity not specified in the pod template spec"","
283,7857,False, //The minimum number of replicas a deployment must have before anti-affinity is enforced on it, // The minimum number of replicas a deployment must have before anti-affinity is enforced on it
284,7858,False," HumanName: ""Dangling Deployments"","," HumanName: ""Mismatching Selector"","
285,7859,False," return []diagnostic.Diagnostic{{Message: fmt.Sprintf(""no pods found matching deployment labels (%v)"", selector)}}"," return []diagnostic.Diagnostic{{Message: fmt.Sprintf(""labels in pod spec (%v) do not match labels in selector (%v)"", podTemplateSpec.Labels, selector)}}"
286,7862,False," labelSelector, err := metaV1.LabelSelectorAsSelector(&metaV1.LabelSelector{MatchLabels: selector.MatchLabels, MatchExpressions: selector.MatchExpressions})"," labelSelector, err := metaV1.LabelSelectorAsSelector(selector)"
287,7863,False," Message: fmt.Sprintf(""Object has invalid label selector: %v"", err),"," Message: fmt.Sprintf(""object has invalid label selector: %v"", err),"
288,7864,False," Description: ""Flag deployments which do not have any selector matching a label in pod template"","," Description: ""Flag deployments where the selector doesn't match the labels in the pod template spec"","
289,9010,False, if len(blob) != len(hash) {,"func generateKey(prefix string, value string) string { var buf bytes.Buffer buf.WriteString(prefix) buf.WriteString(value) return buf.String()}"
290,9011,False,,"func newPrefixKV(kvStore ds.dataStore, prefix string) ds.dataStore { return ktds.Wrap(kvStore, ktds.PrefixTransform{Prefix: ds.NewKey(prefix)}).Children()[0]}"
291,9027,False, if currentIsrs != nil {, if fraudProofsEnabled && currentIsrs != nil {
292,8628,True," """"""Read consistency level for Spark."""""""," """"""Read consistency level for Cassandra."""""""
293,8629,True," """"""Write consistency level for Spark."""""""," """"""Write consistency level for Cassandra."""""""
294,8630,True,"""""""Holds available migrations.""""""","""""""Holds available database migrations."""""""
295,8631,False, kafka_connection_string: kafka topic name.," kafka_connection_string: string with hosts and ports to connect. The string need to be in the format: host1:port,host2:port,...,hostN:portN. The argument is not necessary if is passed as an environment variable named KAFKA_CONSUMER_CONNECTION_STRING."
296,8632,True," input_value = value or environment.get_variable(""KAFKA_CONNECTION_STRING"")"," input_value = value or environment.get_variable(""KAFKA_CONSUMER_CONNECTION_STRING"")"
297,8634,False," if keep != ""last"" and keep != ""first"":"," if keep not in [""last"", ""first""]:"
298,9028,False,var fraudProofsEnabled = true,// TODO: move `fraudProofsEnabled` into configurationvar fraudProofsEnabled = true
299,8635,False," def __init__(self, *columns_names: str, is_regex: str = False):"," def __init__(self, *columns_names: str, is_regex: bool = False):"
300,8636,False, the dataframe.," columns_names: full names or patterns to search for target columns on the dataframe. By default a single `*` character is considered a wildcard and can be anywhere in the string, multiple wildcards are not supported. By default strings starting with an `!` (exclamation mark) will be negated, be it a regular string or simple pattern. When parameter :param is_regex: is `True` simple patterns wildcards and negation is disabled and all strings are interpreted as regular expressions."
301,8637,False, )," if self.name in dataframe.columns: warnings.warn( f""The column {self.name} "" ""already exists in the dataframe and "" ""will be overwritten with another column."" )"
302,8638,True," raise ValueError(""DataFrame must have a 'ts' column."")"," raise ValueError(f""DataFrame must have a '{TIMESTAMP_COLUMN}' column."")"
303,9004,True," Hash: tmbytes.HexBytes(hash[:]),"," Hash: tmbytes.HexBytes(hash),"
304,9005,False, state.AppHash = appHash[:], state.AppHash = appHash
305,9006,True," return fmt.Errorf(""fail to parse the trusted hash for initializing the headerstore: %w"", err)"," return fmt.Errorf(""failed to parse the trusted hash for initializing the headerstore: %w"", err)"
306,9007,True," return fmt.Errorf(""fail to fetch the trusted header for initializing the headerstore: %w"", err)"," return fmt.Errorf(""failed to fetch the trusted header for initializing the headerstore: %w"", err)"
307,9008,False," ln.Logger.Info(""halting full node..."")"," ln.Logger.Info(""halting light node..."")"
308,9009,True," return nil, fmt.Errorf(""failed to unmarshal to protobuf: %w"", err)","// loadHashFromIndex returns the hash of a block given its heightfunc (s *DefaultStore) loadHashFromIndex(height uint64) ([32]byte, error) {"
309,9012,True,},func (h *Header) New() H { return &Header{}}
310,9013,False,"func (c *DataAvailabilityLayerClient) SubmitBlock(context context.Context, block *types.Block) da.ResultSubmitBlock {","func (c *DataAvailabilityLayerClient) SubmitBlock(ctx context.Context, block *types.Block) da.ResultSubmitBlock {"
311,9014,False,"func (c *DataAvailabilityLayerClient) CheckBlockAvailability(context context.Context, dataLayerHeight uint64) da.ResultCheckBlock {","func (c *DataAvailabilityLayerClient) CheckBlockAvailability(ctx context.Context, dataLayerHeight uint64) da.ResultCheckBlock {"
312,9015,False,"func (c *DataAvailabilityLayerClient) RetrieveBlocks(context context.Context, dataLayerHeight uint64) da.ResultRetrieveBlocks {","func (c *DataAvailabilityLayerClient) RetrieveBlocks(ctx context.Context, dataLayerHeight uint64) da.ResultRetrieveBlocks {"
313,9016,True," SubmitBlock(context context.Context, block *types.Block) ResultSubmitBlock"," SubmitBlock(ctx context.Context, block *types.Block) ResultSubmitBlock"
314,9017,True," CheckBlockAvailability(context context.Context, dataLayerHeight uint64) ResultCheckBlock"," CheckBlockAvailability(ctx context.Context, dataLayerHeight uint64) ResultCheckBlock"
315,9018,True," RetrieveBlocks(context context.Context, dataLayerHeight uint64) ResultRetrieveBlocks"," RetrieveBlocks(ctx context.Context, dataLayerHeight uint64) ResultRetrieveBlocks"
316,9019,False," FraudProofs bool `mapstructure:""fraud_proofs""`"," StateFraudProofs bool `mapstructure:""fraud_proofs""`"
317,9020,False, }," opts := []libp2p.Option{libp2p.ListenAddrs(maddr), libp2p.Identity(c.privKey)} if c.gater != nil { opts = append(opts, libp2p.ConnectionGater(c.gater)) } host, err := libp2p.New(opts...)"
318,9021,False, if len(peers) > 0 {," for _, p := range peers { err := c.gater.BlockPeer(p.ID) if err != nil { return err } }"
319,9022,True," 0,"," state.Version.Consensus.Block, state.Version.Consensus.App,"
320,9024,False, }," default: t.Fatal(""Unexpected call.Method"", call.Method) }"
321,9025,True, if currentIsrs != nil {, if fraudProofsEnabled && currentIsrs != nil {
322,9026,False,"func createNodes(isMalicious bool, num int, wg *sync.WaitGroup, t *testing.T) ([]*Node, []*mocks.Application) {","func createNodes(num int, isMalicious bool, wg *sync.WaitGroup, t *testing.T) ([]*Node, []*mocks.Application) {"
323,9029,True, }," if resp.FraudProof == nil { return nil, fmt.Errorf(""fraud proof generation failed"") } return resp.FraudProof, nil"
324,9030,True, time.Sleep(1 * time.Second), // wait for nodes to start up and establish connections; 1 second ensures that test pass even on CI. time.Sleep(1 * time.Second)
325,9035,False, return nil, if ptr == nil { return nil } return return m.lastCommit.Load().(*types.Commit)
326,9036,False," return []WitnessData{}, nil"," return nil, err"
327,9037,False, }," storeHeight := atomic.LoadUint64(&s.height) if height > storeHeight { _ = atomic.CompareAndSwapUint64(&s.height, storeHeight, height) }"
328,9038,False, // TODO(tzdybal): https://github.com/celestiaorg/optimint/issues/465`, // TODO(tzdybal): https://github.com/celestiaorg/optimint/issues/465
329,9043,False," return commit, fmt.Errorf(""error decoding binary data of Commit into object: %w"", err)"," if err != nil { return nil, fmt.Errorf(""error decoding binary data of Commit into object: %w"", err) } return commit, nil"
330,9044,False," {""valid/int param"", ""/block?height=321"", http.StatusOK, int(json2.E_INTERNAL), ""error loading hash by height 321: key not found""},"," {""valid/int param"", ""/block?height=321"", http.StatusOK, int(json2.E_INTERNAL), ""error loading block hash for height""},"
331,9045,False," return hash, fmt.Errorf(""error loading hash by height %v: %w"", height, err)"," return hash, fmt.Errorf(""error loading block hash for height %v: %w"", height, err)"
332,9046,True," return types.State{}, fmt.Errorf(""failed to retrieve key: %w"", err)"," return types.State{}, fmt.Errorf(""failed to retrieve state: %w"", err)"
333,9047,True,// They are needed because for proper deserialization.,// They are needed for proper deserialization.
334,9050,True,"func NewNode(ctx context.Context, conf config.NodeConfig, p2pKey crypto.PrivKey, managerKey crypto.PrivKey, clientCreator proxy.ClientCreator, genesis *tmtypes.GenesisDoc, logger log.Logger) (*Node, error) {","func NewNode(ctx context.Context, conf config.NodeConfig, p2pKey crypto.PrivKey, signingKey crypto.PrivKey, clientCreator proxy.ClientCreator, genesis *tmtypes.GenesisDoc, logger log.Logger) (*Node, error) {"
335,9051,True,func (n *Node) GetGenisisChunk() []string {,func (n *Node) GetGenisisChunks() []string {
336,9052,True, genesisChunkSize = 16 * 1024 * 1024 // 16, genesisChunkSize = 16 * 1024 * 1024 // 16 MiB
337,9053,False,// Default chunk size should be genesisChunkSize (16 * 1024 * 1024),// InitGenesisChunks creates a chunked format of the genesis document to make it easier to// iterate through larger genesis structures.// Default chunk size should be genesisChunkSize
338,9054,True, currentHeight := m.store.Height() // TODO(tzdybal): maybe store a copy in memory, if height == initialHeight { delay = time.Until(m.genesis.GenesisTime) } else if height > initialHeight { delay = time.Until(m.lastState.LastBlockTime.Add(m.conf.BlockTime)) }
339,9055,False,func TestAggregationLoop(t *testing.T) {,func TestFutureGenesisTime(t *testing.T) {
340,61308,True,// Input to the ListERLs function,// ListERLsInput is used as input to the ListERLs function.
341,9057,True," validators = append(validators, assertRecv, assertNotRecv, assertNotRecv, assertRecv, assertRecv)"," validators := []GossipValidator{assertRecv, assertNotRecv, assertNotRecv, assertRecv, assertRecv}"
342,9058,False,"func startTestNetwork(ctx context.Context, t *testing.T, n int, conf map[int]hostDescr, logger log.Logger, validators []GossipValidator) testNet {","func startTestNetwork(ctx context.Context, t *testing.T, n int, conf map[int]hostDescr, validators []GossipValidator, logger log.Logger) testNet {"
343,9059,False, return nil," return bb.txn.Set(key, value)"
344,9060,True, //write transactions should be short lived as they use extra resources in badger,// NewBatch creates new batch.// Note: badger batches should be short lived as they use extra resources.func (b *BadgerKV) NewBatch() Batch {
345,9061,False, // ErrKeyNotFound custom for for non existing keys in the DB., // ErrKeyNotFound is returned if key is not found in KVStore.
346,9062,True," if errors.Is(err, badger.ErrKeyNotFound) {"," if errors.Is(err, store.ErrKeyNotFound) {"
347,9063,True," return da.ResultCheckBlock{DAResult: da.DAResult{Code: da.StatusSuccess}, DataAvailable: false}"," return da.ResultCheckBlock{DAResult: da.DAResult{Code: da.StatusError, Message: err.Error()}, DataAvailable: false}"
348,9064,True," ""github.com/dgraph-io/badger"""," ""github.com/dgraph-io/badger/v3"""
349,9065,True,func TestGet(t *testing.T) {,func TestGetErrors(t *testing.T) {
350,9066,False," hash, err := m.dalcKV.Get(getIndexKey(height))"," hash, err := m.dalcKV.Get(getKey(height))"
351,15358,True, return c.ETCD.Validate() , return c.ETCD.Validate()
352,9067,False,func getIndexKey(height uint64) []byte {,func getKey(height uint64) []byte {
353,9068,False," err = m.dalcKV.Set(getIndexKey(block.Header.Height), hash[:])"," err = m.dalcKV.Set(getKey(block.Header.Height), hash[:])"
354,9071,True," ""path/filepath"""," ""path/filepath"" ""github.com/dgraph-io/badger/v3"""
355,9072,True,// GossipMessage represents transaction gossiped via P2P network.,"// GossipMessage represents message gossiped via P2P network (e.g. transaction, Block etc)."
356,9073,True,"// NewGossip create new, ready to use instance of Gossip.","// NewGossip creates new, ready to use instance of Gossip."
357,9074,False," m.logger.Debug(""Block submitted to DA layer!"")"," m.logger.Debug(""Submitting Block to DA layer ..."")"
358,9680,False, $cache = function_exists('apcu_fetch') ? new ApcuCache() : new PhpFileCache($cacheDir . '/graphqlite.' . crc32(__DIR__));, $cache = function_exists('apcu_enabled') && apcu_enabled() ? new ApcuCache() : new PhpFileCache($cacheDir . '/graphqlite.' . crc32(__DIR__));
359,9075,True,"// initialize tries to load lastState from Store, and if it's not available it reads GenesisDoc.","// getInitialState tries to load lastState from Store, and if it's not available it reads GenesisDoc."
360,9076,False," return errors.New(""invalid lenght of 'InvalidLastHeaderHash'"")"," return errors.New(""invalid length of 'InvalidLastHeaderHash'"")"
361,9077,False, // SaveBlock saves block along with it's commit., // SaveBlock saves block along with its commit.
362,9078,False, StatusSuccess StatusCode = iota, StatusSuccess StatusCode = iota + 1
363,9079,True, indexPreffix = [1]byte{2}, blockPrefix = [1]byte{1} indexPrefix = [1]byte{2}
364,9080,True, incommingTxCh chan *p2p.Tx, incomingTxCh chan *p2p.Tx
365,9085,False,"func makeTestNetowork(t *testing.T, n int, conns map[int][]int, logger log.Logger) testNet {","func makeTestNetwork(t *testing.T, n int, conns map[int][]int, logger log.Logger) testNet {"
366,9116,True," '--decimal-format', dest='decimal_format', type=str,"," '--decimal-format', dest='decimal_format', type=str, default='%.3f',"
367,9117,False, print(f),"def format_decimal(d, f='%.3f', grouping=True):"
368,9678,True,class MuatationNamespace,class MutationNamespace
369,9679,True,#[Attribute(Attribute::TARGET_METHOD)],#[Attribute(Attribute::TARGET_PARAMETER)]
370,61309,True,// Returns the list of ERLs for the specified version,// ListERLs returns the list of ERLs for the specified service version.
371,9683,True," * @Attribute(""decsription"", type = ""string""),"," * @Attribute(""description"", type = ""string""),"
372,9872,False, userinfo = {}," # Apple has no userinfo endpoint # but may send some user information via POST in the first request. # # References: # - https://developer.apple.com/documentation/sign_in_with_apple/sign_in_with_apple_rest_api/authenticating_users_with_sign_in_with_apple # - https://developer.apple.com/documentation/sign_in_with_apple/namei try: userdata = context.request.get(""user"", ""{}"") userinfo = json.load(userdata) except Exception as e: userinfo = {}"
373,9873,False,"def _init_authorization_state(provider_config, db_uri, sub_hash_salt, mirror_public):","def _init_authorization_state(provider_config, db_uri, sub_hash_salt, mirror_public=False):"
374,9874,False," if ""stateless"" in config.get(""provider"") and not config.get(""encryption_key""):"," if ( config.get(""provider"", {}).get(""stateless"") and not config.get(""encryption_key"") ):"
375,9875,True,," self.stateless = StorageBase.type(db_uri) == ""stateless"""
376,9876,False," raise SATOSAConfigurationError(""The name "" + backend.name + "" is taken!"")"," raise SATOSAConfigurationError(""The backend name "" + backend.name + "" is already used."")"
377,9877,False," raise SATOSAConfigurationError(""The name "" + frontend.name + "" is taken!"")"," raise SATOSAConfigurationError(""The frontend name "" + frontend.name + "" is already used."")"
378,9878,False,," def _reload_metadata(self, context, config): """""" Reload SAML metadata """""" logger.debug(""Reloading metadata"") res = self.idp.reload_metadata(copy.deepcopy(config)) message = ""Metadata reload %s"" % (""OK"" if res else ""failed"") status = ""200 OK"" if res else ""500 FAILED"" return Response(message=message, status=status)"
379,9879,False," return Response(message=message, status=status)"," config = self.config[SAMLBackend.KEY_SP_CONFIG][SAMLBackend.KEY_METADATA] return super()._reload_metadata(context, config)"
380,9880,False," return Response(message=message, status=status)"," config = self.config[SAMLFrontend.KEY_IDP_CONFIG][SAMLFrontend.KEY_METADATA] return super()._reload_metadata(context, config)"
381,9881,True, elif 'clear_input_attributes' in self.config:, elif 'replace_subject_id' in self.config:
382,9882,False," ""pyop >= 3.0.1"", # TODO"," ""pyop >= 3.2.0"","
383,9884,False, context._http_headers.get('QUERY_STRING'))):, target_entity_id = context.get_decoration(Context.KEY_TARGET_ENTITYID) qs_raw = context._http_headers['QUERY_STRING'] if target_entity_id or not qs_raw:
384,9885,True, qs = urllib.parse.parse_qs(context._http_headers['QUERY_STRING']), qs = parse_qs(qs_raw)
385,9886,True,import urllib,from urllib.parse import parse_qs
386,9889,False," id_token_lifetime=self.config[""provider""].get(""id_token_lifetime"", 600),"," id_token_lifetime=self.config[""provider""].get(""id_token_lifetime"", 3600),"
387,9890,True," syn_attributes[attr_name] = list(filter(None, [v.strip().strip(';') for v in re.split(""[;\n]+"", pystache.render(fmt, context))]))"," syn_attributes[attr_name] = [ value for token in re.split(""[;\n]+"", pystache.render(fmt, context)) for value in [token.strip().strip(';')] if value ]"
388,10864,True, @max_desc_length, sig { returns(Integer) } def self._max_desc_length @max_desc_length || 80
389,9891,True, context.internal_data['target_entity_id'] = entity_id," context.decorate(Context.KEY_TARGET_ENTITYID, entity_id)"
390,9892,True," def _get_backend(self, context:str, entity_id:str) -> str:"," def _get_backend(self, context:Context, entity_id:str) -> str:"
391,9893,False," assert isinstance(res, InternalData)"," expected_backend = rules['default_backend'] ctx, data = decide_service.backend_by_entityid(target_context) assert ctx.target_backend == expected_backend"
392,9894,False, entity_id = context.request.get('entityID'), entity_id = context.get_decoration(Context.KEY_TARGET_ENTITYID)
393,10865,False," raise(ArgumentError, ""description must be #{max_desc_length.to_s} characters or less"")"," if desc.size > CommandHelp._max_desc_length # A limit of 80 characters has been chosen to fit on standard terminal configurations. `long_desc` is # available when descriptions don't fit nicely in that space. If you're using CLI::Kit for an application # where you control the runtime environments and know that terminals will have more than 80 columns # available, you can use # # CLI::Kit::CommandHelp.max_desc_length = # # to increase this limit. raise(ArgumentError, ""description must be #{CommandHelp._max_desc_length} characters or less."")"
394,10866,False," raise(ArgumentError, ""description must be #{max_desc_length.to_s} characters or less"")"," if desc.size > CommandHelp._max_desc_length # A limit of 80 characters has been chosen to fit on standard terminal configurations. `long_desc` is # available when descriptions don't fit nicely in that space. If you're using CLI::Kit for an application # where you control the runtime environments and know that terminals will have more than 80 columns # available, you can use # # CLI::Kit::CommandHelp.max_desc_length = # # to increase this limit. raise(ArgumentError, ""description must be #{CommandHelp._max_desc_length} characters or less."")"
395,10867,False, Kernel.raise(e), e.bug!(bug) unless bug.nil? e.silent!(silent) unless silent.nil? Kernel.raise(e)
396,10868,False, end, sig { param(bug: T::Boolean).void } def bug! singleton_class.define_method(:bug?) { bug } end sig { param(silent: T::Boolean).void } def silent! singleton_class.define_method(:silent?) { silent } end
397,10869,False, # rubocop:enable Sorbet/ConstantsFromStrings," sig { params(const: Symbol, cmd: String, path: String, lamda_const: T.proc.returns(Gen::Command)).void } def self.register(const, cmd, path, lamda_const) autoload(const, path) Registry.add(lamda_const, cmd)"
398,10870,False," register :Help, 'help', 'gen/commands/help'"," register :Help, 'help', 'gen/commands/help', -> { Help }"
399,10871,True," File.expand_path(@config.get_path('section', 'some-key')))"," assert_equal(File.expand_path('.test', ENV['HOME']), @config.get_path('section', 'some-key'))"
400,10872,True," with_env(""PATH"" => ""#{path}#{File::PATH_SEPARATOR}#{ENV['PATH']}"") do"," with_env(""PATH"" => ""#{tmpdir}#{File::PATH_SEPARATOR}#{ENV['PATH']}"") do"
401,10873,True," f.write(""#!/bin/sh\n"") unless is_windows"," if is_windows f.write(""@echo off\n"") else f.write(""#!/bin/sh\n"") end"
402,10874,False," def initialize(path, config: nil, default_section: nil, convert_types: true)"," def initialize(path = nil, config: nil, default_section: nil, convert_types: true)"
403,11549,True,def fp_to_dict(fp: str) -> dict:,def fp_to_dict(fp: Path) -> dict:
404,11550,False, return d," return json.loads(fp.read_text(encoding=""utf-8""))"
405,11551,True, lyr['order'] = i," for i, lyr in enumerate(lyrs): lyr['order'] = i"
406,11556,True," If both are set, buffer_size must be >= min_buffer_size."," If both are set, `buffer_size` must be >= `min_buffer_size`."
407,11557,False," min_buffer_size is only used when there is a global buffer size override,", `min_buffer_size` is only used when there is a `buffer_size` override.
408,11558,True," e.g. if global is set to 0, and layer's min_buffer_size is set to 4, the result is 4."," e.g. if global `buffer_size` is set to 0, and layer's `min_buffer_size` is set to 4, the result is 4."
409,11559,True, Per layer tileset overrides are allowed for both buffer_size and min_buffer_size., Per layer tileset overrides are allowed for both `buffer_size` and `min_buffer_size`.
410,11560,False," Per layer overrides have higher priority than global overrides, but less than ENV var."," Per layer `buffer_size` override has a higher priority than a global override, but less than ENV var. Per layer `min_buffer_size` tileset override has a higher priority than the layer's `min_buffer_size`. The resulting `min_buffer_size` is used if it is higher that the resulting `buffer_size`."
411,11562,True, if all((v in resolved for v in layer.requires.get('layers'))):, if all((v in resolved for v in layer.requires_layers)):
412,11563,True, if layer.requires.get('layers'):, if layer.requires_layers:
413,11564,True, mix = list(layer.requires.get('layers')) + [lid], mix = list(layer.requires_layers) + [lid]
414,11565,True," result += f""-- Assert {func} exists\nSELECT '{func}'::regprocedure;\n\n"""," for table in layer.requires_tables: result += f""-- Assert {table} exists\nSELECT '{table}'::regclass;\n\n"" for func in layer.requires_functions: result += f""-- Assert {func} exists\nSELECT '{func}'::regprocedure;\n\n"""
415,11566,True, for req in layer.requires.get('layers'):, for req in layer.requires_layers:
416,11567,False, else:," if not isinstance(requires, dict): requires['layers'] = requires"
417,11568,False," elif any(not isinstance(v, str) or v == """" for v in reqprop):"," if any(not isinstance(v, str) or v == """" for v in reqprop):"
418,11937,True," value = source.slice(start,p);"," value = source.slice(start, p);"
419,11922,False," tagName = tagName.replace(/[\s<].*/g,'');"," end = tagStart + 2 + tagName.length; tagName = tagName.replace(/[\s<].*/g,'');"
420,11923,True," it('ElementTraversal', () => {"," describe('element traversal', () => {"
421,11924,False, expect(aElement.lastElementChild === bElement).toBe(true), expect(aElement.firstElementChild).toBe(bElement) expect(aElement.lastElementChild).toBe(aElement.firstElementChild)
422,11925,True," let dtdEnd = source.indexOf(']>', end);"," var nextTagStart = source.indexOf('<', end); var dtdEnd = source.indexOf(']>', end);"
423,11929,True, * @see https://www.w3.org/TR/xml/#AVNormalize, * @see https://www.w3.org/TR/xml/#NT-AttValue * @see https://www.w3.org/TR/xml/#AVNormalize
424,11930,True," buf.push(' ', qualifiedName, '=""', value.replace(/[<&""\t\n\r]/g,_xmlEncoder), '""')"," buf.push(' ', qualifiedName, '=""', value.replace(/[<&""\t\n\r]/g, _xmlEncoder), '""')"
425,11931,False," it.only('should normalize line breaks', () => {"," it('should normalize line breaks', () => {"
426,11932,False," source.replace(/\n\r/g, '\n'),// https://www.w3.org/TR/xml/#sec-line-ends"," source.replace(/\n\r/g, '\n'), // https://www.w3.org/TR/xml/#sec-line-ends"
427,11934,True," describe('sets Document.doctype', () => {"," describe('sets Document.doctype', () => {"
428,11935,True, }), })
429,11938,True," value = source.slice(start,p);"," value = source.slice(start, p);"
430,11939,True," var value = source.slice(start,p);"," var value = source.slice(start, p);"
431,11940,True," it.only('should properly convert whitespace literals back to character references', () => {"," it('should properly convert whitespace literals back to character references', () => {"
432,11941,True, }), })
433,11942,True," it('should transform whitespace literals into spaces', () => {"," describe('containing whitespace', () => {"
434,11943,True," ['
', '\n'],", it.each([
435,11944,True, ), const attr = dom.documentElement.attributes.getNamedItem('attr') expect(attr.value).toBe(literal)
436,11945,True," const { errors, parser } = getTestParser()", })
437,11947,False,var sax = require('./sax');,var dom = require('./dom')var entities = require('./entities');var sax = require('./sax');var DOMImplementation = dom.DOMImplementation;
438,11948,False,var ParseError = sax.ParseError;,var ParseError = sax.ParseError;var XMLReader = sax.XMLReader;
439,11949,False,exports.DOMImplementation = require('./dom').DOMImplementation;,/** * @deprecated Import/require from main entry point instead */exports.DOMImplementation = dom.DOMImplementation;
440,11950,False,exports.XMLSerializer = require('./dom').XMLSerializer ;,/** * @deprecated Import/require from main entry point instead */exports.XMLSerializer = dom.XMLSerializer;
441,11951,False,exports.XMLSerializer = require('./dom').XMLSerializer,var dom = require('./dom')exports.DOMImplementation = dom.DOMImplementationexports.XMLSerializer = dom.XMLSerializer
442,11952,False,const { XMLSerializer } = require('../../lib/dom'),"const { DOMParser, XMLSerializer } = require('../../lib')"
443,11953,True, var namesTarget = spaceSeparatedTokens(classNames)," /** * The `getElementsByClassName` method of `Document` interface returns an array-like object * of all child elements which have **all** of the given class name(s). * * Warning: This is a live LiveNodeList. * Changes in the DOM will reflect in the array as the changes occur. * If an element selected by this array no longer qualifies for the selector, * it will automatically be removed. Be aware of this for iteration purposes. * * @param {string} classNames is a string representing the class name(s) to match; multiple class names are separated by (ASCII-)whitespace * * @see https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByClassName */ getElementsByClassName: function(classNames) { var spaceSeparatedTokens = function(string) { // 5 space characters, as defined in html spec return string.split(/[ \t\n\f\r]+/).filter(function(name) { return name !== '' }) } var namesTarget = spaceSeparatedTokens(classNames)"
444,11958,True, * @param {string=} version, * @param {string} [version]
445,11959,True, * @param {string=} systemId, * @param {string} [publicId] * @param {string} [systemId]
446,11960,False, /**, /**
447,11964,True," return buf.push(' ',node.name,'=""',node.value.replace(/[<&""]/g,_xmlEncoder),'""');"," return buf.push(' ', node.name, '=""', node.value.replace(/[<&""]/g,_xmlEncoder), '""');"
448,11965,False," .replace(/[<&]/g,_xmlEncoder)"," .replace(/&/g, '&') .replace(/', 'text/xml') .documentElement"
452,11971,True,const DOMParser = require('../../lib/dom-parser').DOMParser,const { DOMParser } = require('../../lib/dom-parser')
453,11972,True,const DOMParser = require('../../lib/dom-parser').DOMParser,const { DOMParser } = require('../../lib/dom-parser')
454,11973,False, )," const output = new DOMParser().parseFromString(source, 'text/xml').toString() expect(output).toBe(source)"
455,11974,True,const DOMParser = require('../../lib/dom-parser').DOMParser,const { DOMParser } = require('../../lib/dom-parser')
456,11975,False,"const XML_ERROR_AND_WARNING = '<1 1=""2""/>