| ,id,accepted,original,modified |
| 0,301,False, // Returns true iff there are any queued messages., // Returns true if there are any queued messages. |
| 1,1022,False, resp = urlopen('https://pypi.python.org/pypi/ipwb/json'), resp = urlopen('https://pypi.org/pypi/ipwb/json') |
| 2,1023,True, args.index = tempFilePath," tf = tempfile.NamedTemporaryFile(mode='w', suffix='.cdxj') tf.write(cdxjIn) args.index = tf.name tf.close()" |
| 3,1024,True," f""\n""))"," print((""> ipwb replay "" f""{os.path.sep.join(['', 'path', 'to', 'your', 'index.cdxj'])}"" ""\n""))" |
| 4,1025,True,"INDEX_FILE = os.path.sep.join(['samples', 'indexes', 'salam-home.cdxj'])","INDEX_FILE = os.path.join('samples', 'indexes', 'salam-home.cdxj')" |
| 5,1026,True," ipfsConfigPath = os.path.sep.join([expanduser(""~""), '.ipfs', 'config'])"," ipfsConfigPath = os.path.join(expanduser(""~""), '.ipfs', 'config')" |
| 6,1027,True," [os.environ.get('IPFS_PATH'), 'config'])"," ipfsConfigPath = os.path.join( os.environ.get('IPFS_PATH'), 'config')" |
| 7,1028,False," os.path.sep.join(['', 'samples', 'warc', warcInFilename]))"," warcInPath = os.path.join( Path(os.path.dirname(__file__)).parent, 'samples', 'warc', warcInFilename)" |
| 8,1029,True," os.path.sep.join(['', 'samples', 'warcs', warcOutFilename]))"," warcOutPath = os.path.join( Path(os.path.dirname(__file__)).parent, 'samples', 'warcs', warcOutFilename))" |
| 9,1030,True," os.path.sep.join(['', 'samples', 'warcs', warcFilename]))"," pathOfWARC = os.path.join( Path(os.path.dirname(__file__)).parent, 'samples', 'warcs', warcFilename))" |
| 10,1031,True," open(tempFilePath, 'a').close() # Create placeholder file for replay"," tf = tempfile.NamedTemporaryFile(mode='a', suffix='.cdxj') tempFilePath = tf.name tf.close()" |
| 11,1032,True," os.path.sep.join(['', 'samples', 'warcs', 'broken.warc']))"," pathOfBrokenWARC = os.path.join( Path(os.path.dirname(__file__)).parent, 'samples', 'warcs', 'broken.warc'))" |
| 12,1033,True," os.path.sep.join(['', 'samples', 'warcs', warcInFilename]))"," warcInPath = os.path.join( Path(os.path.dirname(__file__)).parent, 'samples', 'warcs', warcInFilename))" |
| 13,1034,False," f""{os.path.join('', 'path', 'to', 'your', 'index.cdxj')}\n""))"," f""{os.path.join('path', 'to', 'your', 'index.cdxj')}\n""))" |
| 14,1035,True," ipfsConfigPath = os.path.sep.join([expanduser(""~""), '.ipfs', 'config'])"," ipfsConfigPath = os.path.join(expanduser(""~""), '.ipfs', 'config')" |
| 15,1036,True," [os.environ.get('IPFS_PATH'), 'config'])"," ipfsConfigPath = os.path.join( os.environ.get('IPFS_PATH'), 'config')" |
| 16,1037,False, 'of ipwb is current'), help='Check if an updated version of ipwb is available' |
| 17,1038,True, # print('Adding {entry.get('url')})," # print(f'Adding {entry.get(""url"")} to IPFS')" |
| 18,1039,False," 'generator': f'InterPlanetary Wayback v.{ipwbVersion}',"," 'generator': f'InterPlanetary Wayback v{ipwbVersion}'," |
| 19,1040,False, logError(f'An unknown error occurred trying to fetch {path}'), logError(f'An unknown error occurred while trying to fetch {path}') |
| 20,1042,True, 'created_at': f'{datetime.datetime.now().isoformat()}', 'created_at': datetime.datetime.now().isoformat() |
| 21,1043,False, msg += f'No capture(s) found for {urir}.', msg += f'<p>No captures found for {urir}.</p>' |
| 22,1044,False," return ""<h1>ERROR 404</h1>Not Found"", 404"," return ""<h1>ERROR 404</h1><p>Resource not found</p>"", 404" |
| 23,1045,False, msg += f'No capture found for {path} at {datetime}.', msg += f'<p>No captures found for {path} at {datetime}.</p>' |
| 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'<p>No captures found for {urir} at {datetime}.</p>' |
| 27,1049,False, print(f'Getting CDXJ Lines with {urir} in {indexPath}'), print(f'Getting CDXJ lines with {urir} in {indexPath}') |
| 28,1050,False," f'<input type=""text"" value=""{urir}"" id=""url""'"," f'<input type=""text"" value=""{urir}"" id=""url"" '" |
| 29,1051,True, '/../samples/warcs/variableSizedDates.warc')," pathOfBrokenWARC = \ os.path.normpath(os.path.join(os.path.dirname(__file__), '..', 'samples', 'warcs', 'variableSizedDates.warc'))" |
| 30,1052,True, ) from e," except Exception as err: raise IPFSDaemonNotAvailable( 'Unknown error in retrieving IPFS daemon status.', ) from err" |
| 31,1053,True, version='InterPlanetary Wayback ' + ipwb_version), version=f'InterPlanetary Wayback {ipwb_version}') |
| 32,1054,True, )," return '{}?{}'.format(url, query_string.decode('utf-8'))" |
| 33,7777,True, results := []diagnostic.Diagnostic{}, var results []diagnostic.Diagnostic |
| 34,1058,True, # trimming the last two chars off of the surtk," surtk = surtk.rstrip(b""/"")" |
| 35,1059,True, datetimeK = rest.split()[0].decode()," surtk, datetimeK, rest = line.split(maxsplit=2) datetimeK = datetimeK.decode()" |
| 36,1060,True, if datetime and datetime != datetimeK:, if datetime and datetime == datetimeK: |
| 37,1061,False, surtk = surtk[0:-1]," surtk, datetimeK, rest = nextLine.split(maxsplit=2) datetimeK = datetimeK.decode() surtk = surtk.rstrip(b""/"")" |
| 38,1062,True, if surt == surtK:, if surt == surtK: datetimeK = datetimeK.decode() |
| 39,1073,True, client = ipwbUtils.createIPFSClient(), client = createIPFSClient() |
| 40,7778,False," if isInList(resourceRegex, res) || res == ""*"" {"," if res == ""*"" || isInList(resourceRegex, res) {" |
| 41,1066,True, break, elif matchDegree == MementoMatch.EXACTMATCH: # Exact match found while iterating return [nextLine] |
| 42,1067,True, break, elif matchDegree == MementoMatch.EXACTMATCH: return [line] |
| 43,1068,True, left = 0, # Skip metadata lines while iter.peek(1)[:1] == b'!': iter.readline() # Set the beginning position to the start of the first data line left = iter.tell() |
| 44,1069,True," surtk, datetimeK, rest = line.split(maxsplit=2)"," try: surtk, datetimeK, rest = line.split(maxsplit=2) except ValueError as e: continue" |
| 45,1070,True," help='Location of ipfs daemon (default 127.0.0.1:5001)',"," help='Multi-address of IPFS daemon (default /dns/localhost/tcp/5001/http)'," |
| 46,6675,False," ""sqlalchemy>=1.2.0,<=1.4.29"","," ""sqlalchemy>=1.2.0,<=1.4.26""," |
| 47,1074,True,def createIPFSClient():,def createIPFSClient(daemonMultiaddr=IPFSAPI_MUTLIADDRESS): |
| 48,1075,True, return ipfsapi.Client(IPFSAPI_MUTLIADDRESS), return ipfsapi.Client(daemonMultiaddr) |
| 49,1448,True," @ModifyConstant(method = ""func_225464_a"", constant = @Constant(ordinal = 0))"," @ModifyConstant(method = ""func_225464_a"", constant = @Constant(doubleValue = 0.0D, ordinal = 0))" |
| 50,7779,True, resources = []string{}, var resources []string |
| 51,1449,True," .defineInRange(""verticalViewDistance"", 4, 2, 16);"," .defineInRange(""verticalViewDistance"", 4, 2, 32);" |
| 52,1450,True," iTicketManager.getCubeTaskPriorityQueueSorter().onUpdateCubeLevel(CubePos.from(pos), () -> this.horizDistances.get(pos), horizCurrentDistance, (horizDistance) -> {"," iTicketManager.getCubeTaskPriorityQueueSorter().onUpdateCubeLevel(CubePos.from(pos), () -> this.horizDistances.get(pos), horizCurrentDistance+verticalViewDistance, (horizDistance) -> {" |
| 53,1452,False," private static final SliderPercentageOption VERTICAL_RENDER_DISTANCE = new SliderPercentageOption(""options.renderDistance"", 2.0D, 16.0D, 1.0F, (gameSettings) -> (double) CubicChunksConfig.verticalViewDistance.get(),"," private static final SliderPercentageOption VERTICAL_RENDER_DISTANCE = new SliderPercentageOption(""options.renderDistance"", 2.0D, 32.0D, 1.0F, (gameSettings) -> (double) CubicChunksConfig.verticalViewDistance.get()," |
| 54,2519,False," CraftTweakerConstants.rl(""output/chanced_outputs""),"," CraftTweakerConstants.rl(""output/chanced_items"")," |
| 55,2520,True, }," complete = complete || condition.test(actor, data);" |
| 56,2521,True," * <p>{@link SequenceBuilder}'s let you compose scripted events such as waiting 5 ticks, then setting the weather to rain"," * <p>{@link SequenceBuilder}'s let you compose scripted events such as waiting 5 ticks, then setting the weather to rain.</p>" |
| 57,2547,True, */, * @return The ItemStack in the specific hand. * * @docParam hand MCHand.MAIN_HAND */ |
| 58,2522,True," * <p>{@link SequenceBuilder}'s let you compose scripted events such as waiting 5 ticks, then setting the weather to rain"," * <p>{@link SequenceBuilder}'s let you compose scripted events such as waiting 5 ticks, then setting the weather to rain.</p>" |
| 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 <item:minecraft:diamond> */ |
| 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.</p>, * <p>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.</p> |
| 73,2533,False, * above is sufficient for CraftTweaker to handle registration manually.</p>, * above is sufficient for CraftTweaker to handle registration automatically.</p> |
| 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.</p>, * above is sufficient for CraftTweaker to handle registration automatically.</p> |
| 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.</p>, * above is sufficient for CraftTweaker to handle registration automatically.</p> |
| 78,2537,False," * <p>A native type is a class that belongs that has not been written with ZenCode scripts in mind, but that is"," * <p>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 <U extends IRecipe<?>> boolean isThereConflictBetween(final IRecipeManager manager, final T firstRecipe, final U secondRecipe) {"," default <U extends IRecipe<?>> 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.</p>, * that is hardcoded and thus cannot have its ingredients replaced: this is a good candidate to exclude.</p> |
| 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 == %(<div>\n <span>\n Matz\n </span>\n <span>\n hey, folks\n </span>\n\n \n Hello, World from a ViewComponent!\n\n\n \n <p>Start Card A</p>\n \n<article class=\""drop-shadow p-5 rounded\""><h3 class=\""font-bold\"">Hello from A</h3></article></div>\n) end" |
| 148,5269,False, end," it ""renders comments"" do expect(output).to be == %(<div>\n <span>\n _why\n </span>\n <span>\n I'm back\n </span>\n\n \n\n \n <p>Start Card A</p>\n \n<article class=\""drop-shadow p-5 rounded\""><h3 class=\""font-bold\"">Hello from A</h3></article></div>\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 %{<div class=""a-b""></div>} 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," <Alert type=""error"" title=""An error happened"">"," <Alert type=""error"" title=""An Error Occurred"">" |
| 183,5961,True," <Alert type=""error"" title=""An error happened"">"," <Alert type=""error"" title=""An Error Occurred"">" |
| 184,5962,True," <Alert type=""error"" title=""An error happened"">"," <Alert type=""error"" title=""An Error Occurred"">" |
| 185,5963,False," <Alert type=""error"" title=""Unable to load Events"">"," <Alert type=""error"" title=""Unable to Load Events"">" |
| 186,5964,True," <Alert type=""error"" title=""An error happened"">"," <Alert type=""error"" title=""An Error Occurred"">" |
| 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 <strong>View S3 Bucket Policy</strong>., and then choosing <strong>View S3 Bucket Policy</strong>. |
| 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, ""<no 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;,exports.DOMImplementation = dom.DOMImplementation; |
| 440,11950,False,exports.XMLSerializer = require('./dom').XMLSerializer ;,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, |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| ," /* JSON file format: * { * latest_version_code: integer, * url: https url of the package file * } */" |
| 474,12935,False," public void onFailure(Call call, IOException e) {"," public void onFailure(@NonNull Call call, @NonNull IOException e) {" |
| 475,12936,False," public void onResponse(Call call, Response response) throws IOException {"," public void onResponse(@NonNull Call call, @NonNull Response response) throws IOException {" |
| 477,13660,False,class PATEGANSynthesizer:,class PATEGANSynthesizer(SDGYMBaseSynthesizer): |
| 478,13661,False,,from opendp.whitenoise.synthesizers.base import SDGYMBaseSynthesizer |
| 479,13662,True,, self.pd_cols = None self.pd_index = None |
| 480,15235,True," clientDeactivateThreshold, err := project.GetClientDeactivateThresholdAsTimeDuration()"," clientDeactivateThreshold, err := project.ClientDeactivateThresholdAsTimeDuration()" |
| 481,13663,False, data_dim = data.shape[1]," if isinstance(data, pd.DataFrame): for col in data.columns: data[col] = pd.to_numeric(data[col], errors='ignore') self.pd_cols = data.columns self.pd_index = data.index data = data.to_numpy() else: raise ValueError(""Data must be a numpy array or pandas dataframe."") data_dim = data.shape[1]" |
| 482,13664,False, return data," df = pd.DataFrame(data, index = self.pd_index, columns = self.pd_cols) return df" |
| 483,14126,True," + "".WorkflowMultiBranchProject""));", return !(item.getParent() instanceof SCMSourceOwner); |
| 484,14227,True, * data[i*3 + 1] = b;, * data[i*3 + 2] = b; |
| 485,14512,True," apiEndpoint := ""rest/servicedeskapi/customer"""," const apiEndpoint = ""rest/servicedeskapi/customer""" |
| 486,14513,True," req, err := c.client.NewRequestWithContext(ctx, ""POST"", apiEndpoint, payload)"," req, err := c.client.NewRequestWithContext(ctx, http.MethodPost, apiEndpoint, payload)" |
| 487,14514,False," resp, err := r.client.Do(req, nil)"," responseComment := new(RequestComment) resp, err := r.client.Do(req, responseComment)" |
| 488,14515,True," Custom string `json:""custom,omitempty"" structs:""items,omitempty""`"," Custom string `json:""custom,omitempty"" structs:""custom,omitempty""`" |
| 489,14516,True," System string `json:""system,omitempty"" structs:""system,omitempty""`"," System string `json:""system,omitempty"" structs:""system,omitempty""` CustomID int64 `json:""customId,omitempty"" structs:""customId,omitempty""`" |
| 490,14517,True,// FieldSchema represents a schema of a Jira field.,// FieldSchema represents a schema of a Jira field.// Documentation: https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issue-fields/#api-rest-api-2-field-get |
| 491,14518,True,"func (s *IssueService) GetIssueWithContext(ctx context.Context) ([]IssueType, *Response, error) {","func (s *IssueService) GetIssueTypesWithContext(ctx context.Context) ([]IssueType, *Response, error) {" |
| 492,14519,True,// And value is the string value for that particular key.,// DoTransitionWithPayload wraps DoTransitionWithPayloadWithContext using the background context. |
| 493,14520,True,// NewRawRequest creates an API request.,// NewRawRequestWithContext creates an API request. |
| 494,14521,True,// Update updates an issue link type. The issue is found by key.,// UpdateWithContext updates an issue link type. The issue is found by key. |
| 495,14522,True,"func (s *IssueLinkTypeService) linkType(ctx context.Context, ID string) (*Response, error) {","func (s *IssueLinkTypeService) DeleteWithContext(ctx context.Context, ID string) (*Response, error) {" |
| 496,14852,False," setattr(new_artist, attribute, getattr(previous_artist, attribute))"," for attribute, kwarg_name in self.ATTRIBUTES_TO_COPY_FROM_ARTIST_TO_ARTIST_UNLESS_SPECIFED.items(): if hasattr(previous_artist, attribute) \ and kwarg_name not in self.kwargs: setattr(new_artist, attribute, getattr(previous_artist, attribute))" |
| 497,14853,True,@pytest.mark.regeression,@pytest.mark.regression |
| 498,14895,False, spark.socket = socket;, spark.socket = websocket; |
| 499,15233,True, )," return fmt.Errorf( ""check client(%s,%s) in project(%s): %w"", i.ID.String(), i.ProjectID.String(), projectID.String(), ErrClientNotFound, )" |
| 500,15234,False," return fmt.Errorf(""docID: %s: %w"", docID.String(), ErrClientNotActivated)"," return fmt.Errorf(""client(%s) attaches document(%s): %w"", docID.String(), ErrClientNotActivated)" |
| 501,15236,False," assert.NotNil(t, err, ""key should be invalid: with -"")"," assert.Equal(t, err, key.ErrInvalidKey, ""key should be invalid: with -"")" |
| 502,15238,True, * Copyright 2022 The Yorkie Authors. All rights reserved., * Copyright 2023 The Yorkie Authors. All rights reserved. |
| 503,15239,False, // slugRegexString regular expression for key validation, // slugRegexString regular expression for slug validation. |
| 504,15240,False,// Validate returns true if the key is valid.,// Validate checks whether the key is valid or not. |
| 505,15241,True, * Copyright 2020 The Yorkie Authors. All rights reserved., * Copyright 2023 The Yorkie Authors. All rights reserved. |
| 506,15242,True, return getDocumentKey(t.Name()), return testDocumentKey(t.Name()) |
| 507,15270,False, var minSyncedServerSeq int64 = math.MaxInt64, minSyncedServerSeq := math.MaxInt64 |
| 508,15243,True, return getDocumentKey(b.Name()), return testDocumentKey(b.Name()) |
| 509,15244,True,func getDocumentKey(name string) string {,func testDocumentKey(name string) string { |
| 510,15249,False, cancel2()," watch2Ctx, cancel2 := context.WithCancel(ctx) defer cancel2() _, err = c2.Watch(watch2Ctx, d2, d3) assert.NoError(t, err) // 02. PeersChanged is triggered when another client closes the watch expected = append(expected, watchResponsePair{ Type: client.PeersChanged, Peers: map[string]types.Presence{ c1.ID().String(): c1.Presence(), }, })" |
| 511,15250,True, * Copyright 2020 The Yorkie Authors. All rights reserved., * Copyright 2023 The Yorkie Authors. All rights reserved. |
| 512,15271,True,func (d DB) FindMinSyncedSeqInfo(,func (d *DB) FindMinSyncedSeqInfo( |
| 513,15251,True,// to the outside.,// ElementRHT is a hashtable with logical clock(Replicated hashtable). |
| 514,15252,True, }, if ok && node.Remove(v.CreatedAt()) { removed = node.elem } |
| 515,15253,True, }, if !ok { return nil } |
| 516,15254,True, nodeMapByCreatedAt map[string]*ElementRHTNode," // nodeMapByCreatedAt is a map with values ^`^k ^`^kof nodes by creation time. // Even if an element is removed by `set` or `delete`, it remains in // nodeMapByCreatedAt and will be deleted physically by GC. nodeMapByCreatedAt map[string]*ElementRHTNode" |
| 517,15324,True,type LRUExpireCache[V types.AuthWebhookResponse] struct {,type LRUExpireCache[V any] struct { |
| 518,15255,True, nodeMapByKey map[string]*ElementRHTNode, // nodeMapByKey is a map with values of nodes by key. nodeMapByKey map[string]*ElementRHTNode |
| 519,15256,False, } else {, cause = err for errors.Unwrap(cause) != nil { cause = errors.Unwrap(cause) } |
| 520,15257,True," for _, regex := range testRegexs {"," testRegexes := []*regexp.Regexp{ alphaNumberSpecialCharRegex, containAlphaRegex, containNumberRegex, containSpecialCharRegex} for _, regex := range testRegexes {" |
| 521,15259,False, st := status.Convert(err), // TODO(chacha912): consider creating the error details type to remove the dependency on gRPC. st := status.Convert(err) |
| 522,15260,False, st := status.Convert(err), // TODO(chacha912): consider creating the error details type to remove the dependency on gRPC. st := status.Convert(err) |
| 523,15262,True,// GetProject get project by name.,// GetProject gets the project by name. |
| 524,15263,True," if cmd.Flags().Lookup(""auth-webhook-url"").Changed {"," newAuthWebhookMethods := []string{ string(types.AttachDocument), string(types.WatchDocuments), }" |
| 525,15264,True, newName = flagName," newName := name if cmd.Flags().Lookup(""name"").Changed { newName = flagName }" |
| 526,15265,False," exists, err := cli.GetProject(ctx, name)"," existing, err := cli.GetProject(ctx, name)" |
| 527,15266,False," ""github.com/yorkie-team/yorkie/gen/go/yorkie/v1"""," api ""github.com/yorkie-team/yorkie/api/v1""" |
| 528,15267,True, var minSyncedServerSeq uint64 = 18446744073709551615, var minSyncedServerSeq uint64 = math.MaxUint64 |
| 529,15268,False," latestSnapshot, err := s.backend.DB.FindLatestSnapshotInfo(ctx, docInfo.ID)"," latestSnapshot, err := s.backend.DB.FindClosestSnapshotInfo(ctx, docInfo.ID, uint64(math.MaxUint64))" |
| 530,15269,True," ""Whether to delete previous changes when the snapshot is created. "","," ""Whether to delete previous changes when the snapshot is created.""," |
| 531,15273,False, )," guard := monkey.PatchInstanceMethod( reflect.TypeOf(b), ""AttachGoroutine"", func(_ *background.Background, f func(c context.Context)) { f(context.Background()) }, ) defer func() { guard.Unpatch() }()" |
| 532,15274,False, )," guard := monkey.PatchInstanceMethod( reflect.TypeOf(b), ""AttachGoroutine"", func(_ *background.Background, f func(c context.Context)) { f(context.Background()) }, ) defer func() { guard.Unpatch() }()" |
| 533,15278,True," Use: ""ls [project]"","," Use: ""ls [project name]""," |
| 534,15325,False," ""github.com/yorkie-team/yorkie/api/types"""," ""github.com/yorkie-team/yorkie/api/types""" |
| 535,15289,True,"var ErrEmptyProjectFields = errors.New(""UpdatableProjectFields is empty"")","var ErrEmptyProjectFields = errors.New(""updatable project fields are empty"")" |
| 536,15290,True,"func (e *InvalidFieldsError) Error() string { return ""invalid project fields"" }","func (e *InvalidFieldsError) Error() string { return ""invalid fields"" }" |
| 537,15333,True, }, if !c.IsActive() { return nil } c.clientMutex.Lock() defer c.clientMutex.Unlock() |
| 538,15291,False, // defaultEn is the default translator instance for the 'en' locale, // defaultEn is the default translator instance for the 'en' locale. |
| 539,15292,True, }," if options.MaxCallRecvMsgSize != 0 { dialOptions = append(dialOptions, grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(options.MaxCallRecvMsgSize))) }" |
| 540,15293,True, * Copyright 2021 The Yorkie Authors. All rights reserved., * Copyright 2022 The Yorkie Authors. All rights reserved. |
| 541,15295,False, b.StartTimer(), b.StartTimer() |
| 542,15296,True,func (n *Node[V]) Value() V {,func (t *Node[V]) Value() V { |
| 543,15297,True,func (n *Node[V]) leftWeight() int {,func (t *Node[V]) leftWeight() int { |
| 544,15298,True,func (n *Node[V]) rightWeight() int {,func (t *Node[V]) rightWeight() int { |
| 545,15299,True,func (n *Node[V]) initWeight() {,func (t *Node[V]) initWeight() { |
| 546,15300,True,func (n *Node[V]) increaseWeight(weight int) {,func (t *Node[V]) increaseWeight(weight int) { |
| 547,15301,True,func (n *Node[V]) unlink() {,func (t *Node[V]) unlink() { |
| 548,15302,True,func (n *Node[V]) hasLinks() bool {,func (t *Node[V]) hasLinks() bool { |
| 549,15303,True, return n.value, return t.value |
| 550,15304,True, if n.left == nil {, if t.left == nil { |
| 551,15305,True, return n.left.weight, return t.left.weight |
| 552,15326,True," lruCache, err := cache.NewLRUExpireCache[any](1)"," lruCache, err := cache.NewLRUExpireCache[string](1)" |
| 553,15306,True, if n.right == nil {, if t.right == nil { |
| 554,15307,True, return n.right.weight, return t.right.weight |
| 555,15308,True, n.weight = n.value.Len(), n.weight = t.value.Len() |
| 556,15309,True, n.weight += weight, t.weight += weight |
| 557,15310,True, n.left = nil, t.parent = nil t.right = nil t.left = nil |
| 558,15311,True, return n.parent != nil || n.left != nil || n.right != nil, return t.parent != nil || t.left != nil || t.right != nil |
| 559,15312,True, n.weight = t.value.Len(), t.weight = t.value.Len() |
| 560,15313,True, updatableProjectFields.Name = &pbProjectFields.GetName().Value, updatableProjectFields.Name = &pbProjectFields.Name.Value |
| 561,15314,True, updatableProjectFields.AuthWebhookMethods = authWebhookMethods," var authWebhookMethods []string for _, method := range pbProjectFields.AuthWebhookMethods { authWebhookMethods = append(authWebhookMethods, method.Value) } updatableProjectFields.AuthWebhookMethods = &authWebhookMethods" |
| 562,15315,False," pbUpatedAt, err := protoTypes.TimestampProto(project.UpdatedAt)"," pbUpdatedAt, err := protoTypes.TimestampProto(project.UpdatedAt)" |
| 563,15316,False," ErrProjectFieldEmpty = errors.New(""UpdatableProjectFields is empty"")"," // ErrEmptyProjectFields is returned when all the fields are empty. ErrEmptyProjectFields = errors.New(""all fields of the project are empty"")" |
| 564,15317,False, }, if i.Name == nil && i.AuthWebhookURL == nil && i.AuthWebhookMethods == nil { return ErrEmptyProjectFields } |
| 565,15332,True, }, if c.IsActive() { return nil } c.clientMutex.Lock() defer c.clientMutex.Unlock() |
| 566,15318,False, }," if (fields.Name != nil) { exist, err := txn.First(tblProjects, ""name"", *fields.Name) if err != nil { return nil, err } if exist != nil { return nil, fmt.Errorf(""%s: %w"", *fields.Name, database.ErrProjectNameAlreadyExists) } }" |
| 567,15319,False, updateTargetField := bson.M{}, updatableFields := bson.M{} |
| 568,15320,False," updateTargetField[""updated_at""] = now"," updateTargetField[""updated_at""] = gotime.Now()" |
| 569,15321,False, ProjectInfo := database.ProjectInfo{}, info := database.ProjectInfo{} |
| 570,15323,True, if item.value == value {, if !item.value.Less(value) && !value.Less(item.value) { |
| 571,15356,True, return c.ETCD.Validate(), if c.ETCD != nil { return c.ETCD.Validate() } return nil |
| 572,15327,False,// it is unmarshaled including private field.,// it is unmarshalled including private field. |
| 573,15328,True," Name: ""documents"","," tblDocuments: { Name: tblDocuments," |
| 574,15329,True," Name: ""changes"","," tblChanges: { Name: tblChanges," |
| 575,15330,True," Name: ""snapshots"","," tblSnapshots: { Name: tblSnapshots," |
| 576,15331,True," Name: ""syncedseqs"","," tblSyncedSeqs: { Name: tblSyncedSeqs," |
| 577,15334,True,package prometheus,"/* * Copyright 2021 The Yorkie Authors. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the ""License""); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an ""AS IS"" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */package prometheus" |
| 578,15335,False,package prometheus_test,"/* * Copyright 2021 The Yorkie Authors. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the ""License""); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an ""AS IS"" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */package prometheus_test" |
| 579,15337,True,func BenchmarkEditing(b *testing.B) {,func BenchmarkTextEditing(b *testing.B) { |
| 580,15338,True, }," for startIdx := snapshotInfo.ServerSeq + 1; startIdx < initialServerSeq; startIdx += changeSegmentSize { var endIdx uint64 if startIdx+changeSegmentSize < initialServerSeq { endIdx = startIdx + changeSegmentSize } else { endIdx = initialServerSeq } changes, err := be.DB.FindChangeInfosBetweenServerSeqs( ctx, docInfo.ID, startIdx, endIdx, ) if err != nil { return nil, nil, err } if err := doc.ApplyChangePack(change.NewPack( docKey, checkpoint.Initial.NextServerSeq(docInfo.ServerSeq), changes, nil, )); err != nil { return nil, nil, err } }" |
| 581,15339,False, }()," go func() { defer wg.Done() if i%2 == 0 { assert.NoError(t, cli.Activate(ctx)) } else { assert.NoError(t, cli.Deactivate(ctx)) } }()" |
| 582,15340,True, }()," go func() { defer wg.Done() assert.NoError(t, cli.Deactivate(ctx)) }()" |
| 583,15341,True, }()," go func() { defer wg.Done() assert.NoError(t, cli.Activate(ctx)) }()" |
| 584,15342,True, * Copyright 2020 The Yorkie Authors. All rights reserved., * Copyright 2021 The Yorkie Authors. All rights reserved. |
| 585,15343,True, }()," go func(idx int) { defer wg.Done() if idx%2 == 0 { assert.NoError(t, cli.Activate(ctx)) } else { assert.NoError(t, cli.Deactivate(ctx)) } }(i)" |
| 586,15344,True, c.clientMutex.RUnlock(), if c.IsActive() { return nil } |
| 587,15345,True," ""github.com/yorkie-team/yorkie/test/helper"""," ""github.com/stretchr/testify/assert"" ""github.com/yorkie-team/yorkie/client"" ""github.com/yorkie-team/yorkie/pkg/document"" ""github.com/yorkie-team/yorkie/pkg/document/proxy"" ""github.com/yorkie-team/yorkie/test/helper""" |
| 588,15346,True, }," if idx%2 == 0 { assert.NoError(t, cli.Activate(ctx)) return } assert.NoError(t, cli.Deactivate(ctx))" |
| 589,15352,True, package yorkie,package yorkie |
| 590,15353,True, DefaultMongoPingTimeoutSec = 5, DefaultMongoConnectionTimeout = 5 * time.Second DefaultMongoPingTimeout = 5 * time.Second |
| 591,15354,True, conf := yorkie.NewConfig(), conf := yorkie.NewConfig() |
| 592,15355,True, return err, return il.session.Close() |
| 593,15360,False," return fmt.Errorf(""%w"", ErrEmptyEndPoints)", return ErrEmptyEndPoints |
| 594,15361,False," ErrEmptyUserName = errors.New(""etcd username cannot be nil or empty"")"," //ErrEmptyEndpoints occurs when the endpoints in the config is empty. ErrEmptyEndpoints = errors.New(""length of etcd endpoints must be greater than 0"") // ErrEmptyUsername occurs when the username is empty. ErrEmptyUsername = errors.New(""etcd username cannot be nil or empty"")" |
| 595,15362,True,package etcd,"/* * Copyright 2021 The Yorkie Authors. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the ""License""); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an ""AS IS"" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */package etcd" |
| 596,15363,True, unauthorizedTTLSec := 1 * time.Second, unauthorizedTTL := 1 * time.Second |
| 597,15364,True, authorizedTTLSec := 1 * time.Second, authorizedTTL := 1 * time.Second |
| 598,15365,False," unauthorizedTTL, ttlParseErr := time.ParseDuration(be.Config.AuthWebhookCacheUnauthTTL)", unauthorizedTTL := be.Config.ParseAuthWebhookCacheUnauthTTL() |
| 599,15366,False,)," ""testing"" ""github.com/stretchr/testify/assert"" ""github.com/yorkie-team/yorkie/yorkie/backend/db/mongo"" )" |
| 600,15368,True, }, if err := c.Backend.Validate(); err != nil { return err } if err := c.RPC.Validate(); err != nil { return err } |
| 601,15369,True, // ..., // TODO(umi0410): Other validations will be here later. // ... |
| 602,15429,True," operations, err := ToOperations(c.Operations())"," pbOperations, err := ToOperations(c.Operations())" |
| 603,15370,False, }," if c.Port < 1 || 65535 < c.Port { return fmt.Errorf(""must be between 1 and 65535, given %d : %w"", c.Port, ErrInvalidPortNumber) }" |
| 604,15371,False, }," if _, err = os.Stat(c.CertFile); err != nil { return fmt.Errorf(""%w: %s"", ErrInvalidCertFile, c.CertFile) }" |
| 605,15372,True, expect error, expected error |
| 606,15373,True," ErrWrongPort = errors.New(""wrong port number for RPC server"")"," ErrInvalidRPCPort = errors.New(""invalid port number for RPC server"")" |
| 607,15374,True," ErrInvalidKeyFile = errors.New(""no such key file for RPC server"")"," // ErrInvalidCertFile occurs when the certificate file is invalid. ErrInvalidCertFile = errors.New(""invalid cert file for RPC server"") // ErrInvalidKeyFile occurs when the key file is invalid. ErrInvalidKeyFile = errors.New(""invalid key file for RPC server"")" |
| 608,15375,True, }," if _, err := os.Stat(c.CertFile); err != nil { return fmt.Errorf(""%s: %w"", c.CertFile, ErrInvalidCertFile) }" |
| 609,15376,True, }," if _, err := os.Stat(c.KeyFile); err != nil { return fmt.Errorf(""%s: %w"", c.KeyFile, ErrInvalidKeyFile) } }" |
| 610,15377,True,// Validate validates port number and checks if files exists,// Validate validates the port number and the files for certification. |
| 611,15378,False,"func fromSetIndex(pbInc *api.Operation_SetIndex) (*operation.SetIndex, error) {","func fromSetIndex(pbSet *api.Operation_SetIndex) (*operation.SetIndex, error) {" |
| 612,15391,False, AuthorizationWebhookMaxWaitInterval uint64," // AuthorizationWebhookMaxRetries is the max count // that retries the authorization webhook. AuthorizationWebhookMaxRetries uint64 `json:""AuthorizationWebhookMaxRetries""` // AuthorizationWebhookMaxWaitIntervalSec is the max interval // that waits before retrying the authorization webhook. AuthorizationWebhookMaxWaitIntervalSec uint64 `json:""AuthorizationWebhookMaxWaitIntervalSec""`" |
| 613,15379,True, c2.Sync(ctx)," syncClientsThenAssertEqual(t, []clientAndDocPair{{c1, d1}, {c2, d2}})" |
| 614,15380,True, }))," syncClientsThenAssertEqual(t, []clientAndDocPair{{c1, d1}, {c2, d2}})" |
| 615,15381,True," root.GetArray(""k2"").MoveBefore(prev.CreatedAt(), elem.CreatedAt())"," syncClientsThenAssertEqual(t, []clientAndDocPair{{c1, d1}, {c2, d2}})" |
| 616,15382,True,," syncClientsThenAssertEqual(t, []clientAndDocPair{{c1, d1}, {c2, d2}})" |
| 617,15383,True,"func toSetByIndex(SetByIndex *operation.SetByIndex) (*api.Operation_SetByIndex_, error) {","func toSetByIndex(setByIndex *operation.SetByIndex) (*api.Operation_SetByIndex_, error) {" |
| 618,15392,True," assert.NoError(t, json.NewDecoder(r.Body).Decode(&req))"," req, err := types.NewAuthWebhookRequest(r.Body) assert.NoError(t, err)" |
| 619,15385,False, }," switch wr.Type { case client.PeersChanged: peers := wr.PeersMapByDoc[d1.Key().BSONKey()] responsePairs = append(responsePairs, watchResponsePair{ Type: wr.Type, peers: peers, }) case client.DocumentsChanged: assert.NoError(t, c1.Sync(ctx, wr.Keys...)) }" |
| 620,15386,True, }," if info, ok := attachment.peers[cli.ID.String()]; ok { cli.MetadataInfo.Update(info) }" |
| 621,15387,True,const lruExpireCacheSize = 5000,const authWebhookCacheSize = 5000 |
| 622,15388,False," lruCache.Add(""request1"", ""response1"", time.Second*5)"," lruCache.Add(""request1"", ""response1"", 5*time.Second)" |
| 623,15389,True," assert.Equal(t, reqCnt, 2)"," assert.Equal(t, 2, reqCnt)" |
| 624,15390,False," assert.Equal(t, reqCnt, 2)"," var authorizedTTLSec uint64 = 1 conf := helper.TestConfig(server.URL) conf.Backend.AuthorizationWebhookCacheAuthorizedTTLSec = authorizedTTLSec agent, err := yorkie.New(conf) assert.NoError(t, err) assert.NoError(t, agent.Start()) defer func() { assert.NoError(t, agent.Shutdown(true)) }() ctx := context.Background() cli, err := client.Dial(agent.RPCAddr(), client.Option{Token: ""token""}) assert.NoError(t, err) defer func() { assert.NoError(t, cli.Close()) }() err = cli.Activate(ctx) assert.NoError(t, err) doc := document.New(helper.Collection, t.Name()) err = cli.Attach(ctx, doc) assert.NoError(t, err) // 01. multiple requests to update the document. for i := 0; i < 3; i++ { assert.NoError(t, doc.Update(func(root *proxy.ObjectProxy) error { root.SetNewObject(""k1"") return nil })) assert.NoError(t, cli.Sync(ctx)) } assert.Equal(t, 1, reqCnt) // 02. multiple requests to update the document after eviction by ttl. time.Sleep(time.Duration(authorizedTTLSec) * time.Second) for i := 0; i < 3; i++ { doc.Update(func(root *proxy.ObjectProxy) error { root.SetNewObject(""k1"") return nil }) cli.Sync(ctx) } assert.Equal(t, 2, reqCnt)" |
| 625,15399,True,// Methods returns a list of methods being used.,// AuthMethods returns a slice of methods that can be used for authorization. |
| 626,15393,False,," var res types.AuthWebhookResponse res.Allowed = true if retries < recoveryCnt-1 { w.WriteHeader(http.StatusServiceUnavailable) retries++ } else { retries = 0 } _, err = res.Write(w) assert.NoError(t, err)" |
| 627,15394,False, retries++," var retries uint64 for retries < config.AuthorizationWebhookMaxRetries { waitBeforeRetry := waitInterval(retries, config.AuthorizationWebhookMaxWaitIntervalSec) select { case <-ctx.Done(): return ctx.Err() case <-time.After(waitBeforeRetry): } statusCode, err := webhookFn() if !shouldRetry(statusCode) { return err } retries++ } return ErrWaitTimeout" |
| 628,15395,False,"func waitInterval(retries uint64, maxWaitInterval uint64) time.Duration {","func waitInterval(retries uint64, maxWaitInterval time.Duration) time.Duration {" |
| 629,15396,False, statusCode == http.StatusServiceUnavailable, return statusCode == http.StatusInternalServerError || statusCode == http.StatusGatewayTimeout || statusCode == http.StatusTooManyRequests |
| 630,15397,True, }," if resp.Err == io.EOF { assert.Fail(t, resp.Err.Error()) return }" |
| 631,15398,False,},"func IsMethod(method string) bool { for _, m := range Methods() { if method == string(m) { return true } } return false}" |
| 632,46676,True,def switch_map(,def switch_map_indexed( |
| 633,15400,False," assert.Equal(t, codes.Unauthenticated, status.Convert(err).Code())"," assert.Equal(t, codes.PermissionDenied, status.Convert(err).Code())" |
| 634,15401,False, authorizationWebhookMethods map[types.Method]bool," AuthorizationWebhookURL string `json:""AuthorizationWebhookURL""` AuthorizationWebhookMethods []string{} `json:""AuthorizationWebhookMethods""`" |
| 635,15402,True,// SetRemovedAt sets the remove time of this element.,// SetRemovedAt sets the removal time of this element. |
| 636,15403,False, return n.elem.CreatedAt(), return n.CreatedAt() |
| 637,15404,True, }, if err := info.conn.Close(); err != nil { log.Logger.Error(err) return err } |
| 638,15405,False," grpc_recovery ""github.com/grpc-ecosystem/go-grpc-middleware/recovery"""," grpcrecovery ""github.com/grpc-ecosystem/go-grpc-middleware/recovery""" |
| 639,15407,True, clusterClinetMapMu *gosync.RWMutex, clusterClientMapMu *gosync.RWMutex |
| 640,15408,True,},"const ( agentsPath = ""/agents"" putAgentPeriod = 5 * time.Second agentValueTTL = 7 * time.Second)" |
| 641,15409,False," gotime ""time"""," ""math"" ""testing"" gotime ""time"" ""github.com/stretchr/testify/assert"" ""github.com/yorkie-team/yorkie/pkg/document/json"" ""github.com/yorkie-team/yorkie/pkg/document/time""" |
| 642,61310,True,// Input to the CreateERL function,// CreateERLInput is used as input to the CreateERL function. |
| 643,15410,True," yorkie.DefaultMongoConnectionURI,"," yorkie.DefaultMongoYorkieDatabase," |
| 644,15411,True," //if config file is given, command-line argumentes will be overwritten"," // If config file is given, command-line arguments will be overwritten." |
| 645,15412,True," ""config path"","," ""Config path""," |
| 646,15413,True," ""metrics port"","," ""Metrics port""," |
| 647,15414,True," ""MongoDB's connection URI"","," ""Yorkie's database name in MongoDB""," |
| 648,15415,True, for idx := 0; grapheme.Next(); idx++ {, for grapheme.Next() { |
| 649,15416,True, for idx := 0; grapheme.Next(); idx++ {, for grapheme.Next() { |
| 650,15417,True,// Value returns the value.,// Value returns the value of Primitive. |
| 651,15428,True," elem, err := toJSONElement(obj)"," pbElem, err := toJSONElement(obj)" |
| 652,15421,True," return nil, fmt.Errorf(""%s: %w decode size: %d"", str, ErrInvalidHexString, len(decoded))"," return nil, fmt.Errorf(""decoded length %d: %w"", len(decoded), ErrInvalidHexString)" |
| 653,15422,False," t.Run(""ActorID test "", func(t *testing.T) {","func TestActorID(t *testing.T) { t.Run(""get ActorID from hex test"", func(t *testing.T) { actorID := time.ActorID{} _, err := rand.Read(actorID[:]) assert.NoError(t, err) expectedID := actorID.String() actualID, err := time.ActorIDFromHex(expectedID) assert.NoError(t, err) assert.Equal(t, expectedID, actualID.String()) }) t.Run(""get ActorID from hex on invalid hexadecimal string test"", func(t *testing.T) { testID := ""testID"" _, err := time.ActorIDFromHex(testID) assert.ErrorIs(t, err, time.ErrInvalidHexString) }) t.Run(""get ActorID from hex on invalid decoded length test"", func(t *testing.T) { bytes := make([]byte, 5) _, err := rand.Read(bytes) assert.NoError(t, err) invalidID := hex.EncodeToString(bytes[:]) _, err = time.ActorIDFromHex(invalidID) assert.ErrorIs(t, err, time.ErrInvalidHexString) })}" |
| 654,15430,True," rhtNodes, err := toRHTNodes(obj.RHTNodes())"," pbRHTNodes, err := toRHTNodes(obj.RHTNodes())" |
| 655,15431,True," rgaNodes, err := toRGANodes(arr.RGANodes())"," pbRGANodes, err := toRGANodes(arr.RGANodes())" |
| 656,15432,True," valueType, err := toValueType(primitive.ValueType())"," pbValueType, err := toValueType(primitive.ValueType())" |
| 657,15433,True," counterType, err := toCounterType(counter.ValueType())"," pbCounterType, err := toCounterType(counter.ValueType())" |
| 658,15434,True," elem, err := toJSONElement(rhtNode.Element())"," pbElem, err := toJSONElement(rhtNode.Element())" |
| 659,15435,True," elem, err := toJSONElement(rgaNode.Element())"," pbElem, err := toJSONElement(rgaNode.Element())" |
| 660,15436,True," changes, err := toChanges(pack.Changes)"," pbChanges, err := toChanges(pack.Changes)" |
| 661,15437,True," elem, err := toJSONElementSimple(set.Value())"," pbElem, err := toJSONElementSimple(set.Value())" |
| 662,15438,True," elem, err := toJSONElementSimple(add.Value())"," pbElem, err := toJSONElementSimple(add.Value())" |
| 663,15439,False," changePack, err := converter.ToChangePack(doc.CreateChangePack())"," pbChangePack, err := converter.ToChangePack(doc.CreateChangePack())" |
| 664,15440,True," return 0, fmt.Errorf(""%v: %w"", eventType, ErrUnsupportedEventType)"," return 0, fmt.Errorf(""%s: %w"", eventType, ErrUnsupportedEventType)" |
| 665,15441,False, }," // Item to replace lastIdx := (*pq.queue).Len() - 1 lastItem := (*pq.queue)[lastIdx] *pq.queue = (*pq.queue)[:lastIdx] if pq.queue.Len() == 0 || lastIdx == idx { return } lastItem.index = idx (*pq.queue)[idx] = lastItem heap.Fix(pq.queue, idx)" |
| 666,15442,True, pq := pq.NewPriorityQueue(), queue := pq.NewPriorityQueue() |
| 667,15443,True, tmp := []int{}, var tmp []int |
| 668,15444,False, if (*pq.queue).Len() == 0 || idx == (*pq.queue).Len() {, if pq.queue.Len() == 0 || idx == pq.queue.Len() { |
| 669,15445,True," heap.Fix(pq.queue, idx)"," heap.Remove(pq.queue, idx)" |
| 670,15446,True,," idx := -1 for i, item := range *pq.queue { if item.value == value { idx = i break } }" |
| 671,15449,True, removedNodeMap[key] = node, removedNodeMap[node.id.key()] = node |
| 672,15450,False," time2 ""github.com/yorkie-team/yorkie/pkg/document/time"""," gotime ""time"" ... ""github.com/yorkie-team/yorkie/pkg/document/time""" |
| 673,15451,True," ""github.com/yorkie-team/yorkie/testhelper"""," ""testing"" ""github.com/stretchr/testify/assert"" ""github.com/yorkie-team/yorkie/pkg/document/json"" ""github.com/yorkie-team/yorkie/pkg/document/time"" ""github.com/yorkie-team/yorkie/testhelper""" |
| 674,15452,True, }," assert.NoError(t, err)" |
| 675,15453,True, }," assert.NoError(t, err)" |
| 676,16370,True,"class Category(str, Enum):","class WallpaperCategoryType(str, Enum):" |
| 677,16371,True," f""v1/wallpaper/category/{CATEGORY[category]}/wallpaper"","," ""v1/wallpaper/category/{category}/wallpaper""," |
| 678,16372,True, - ***MaxNovelId*** `max_novel_id` = `None`, - ***Optional[int]*** `max_novel_id` = `None` |
| 679,16373,False," response = client.get(""novel_new"", params={""max_novel_id"": ""16002726""})"," response = client.get(""novel_new"", params={""max_novel_id"": 16002726})" |
| 680,61311,True,// Returns the newly created ERL,// CreateERL returns a new ERL. |
| 681,16912,False, * Failure to adhere to this will result in runtime exceptions.," * Register an injector for a particular type predicate. * * <p>The predicate should only * return true if the injected type is assignable to the tested type. This predicate overload * is provided in addition to {@link #registerInjector(Class, ParameterInjector)} to allow * for exact, non-exact, or custom predicates, however is still bound by the aforementioned constraint. * Failure to adhere to this will result in runtime exceptions.</p>" |
| 682,16913,False," * <p>When {@code exactType} is {@code flase}, a value may be returned"," * <p>When {@code exactType} is {@code false}, a value may be returned" |
| 683,16914,False, * if it's type is assignable to {@code type}. Otherwise the type must pass, * if its type is assignable to {@code type}. Otherwise the type must pass |
| 684,16915,True, private CommandCompletionProcessor<C> commandCompletitionProcessor = new FilteringCommandCompletionProcessor<>();, private CommandCompletionProcessor<C> commandCompletionProcessor = new FilteringCommandCompletionProcessor<>(); |
| 685,16916,True, if (Audience.class.isAssignableFrom(Player.class)) { //If we use native adventure, if (Audience.class.isAssignableFrom(Player.class)) { // If we use native adventure |
| 686,16917,True," } else { //We have a shaded adventure, using method handles to get needed methods without shading"," } else { // We have a shaded adventure, using method handles to get needed methods without shading" |
| 687,16918,False, * @param <C> Command sender type, * Processor that formats command completions. * * @param <C> Command sender type * @since 1.9.0 |
| 688,16919,False, * before being returned.," * Get command suggestions for the ""next"" argument that would yield a correctly parsing command input. * * <p>The command completions provided by the command argument parsers will be filtered using * the {@link CommandCompletionProcessor} before being returned.</p>" |
| 689,16920,False, * Register an injector for a particular type or any of it's assignable supertypes, * Register an injector for a particular type or any of it's assignable supertypes. |
| 690,16921,False, * Register an injector for a particular type predicate, * Register an injector for a particular type predicate. |
| 691,16922,True," * Get a value if it exists, else compute and store the value by the supplier and return it"," * Get a value if it exists, else compute and store the value returned by the function and return it." |
| 692,16923,True, * It can have some conflicts when integrating with other command systems like brigadier.," * It can have some conflicts when integrating with other command systems like Brigadier, * and code inspecting the command tree may need to be adjusted." |
| 693,16924,False," * When enabled, optional flag arguments are appended between each command node.", * Allows parsing flags at any position by appending flag argument nodes between each command node. |
| 694,16926,True, * @param defaultSupplier Supplier of default value, * @param defaultFunction Default value function |
| 695,16927,True, * @param key Argument key, * @param key Cloud key |
| 696,16928,True, * @param <T> Argument type, * @param <T> Value type |
| 697,16929,True," * @return Argument, or supplied default value", * @return present or computed value |
| 698,16930,True," final @NonNull Function<CloudKey<T>, T> defaultSupplier"," final @NonNull Function<CloudKey<T>, T> defaultFunction" |
| 699,16931,True, * Get the reason why the flag parsing failed, * Returns the reason why the flag parsing failed. |
| 700,16932,True, * Sets ta custom default namespace for {@link cloud.commandframework.bukkit.argument.NamespacedKeyArgument}., * Sets a custom default namespace for {@link cloud.commandframework.bukkit.argument.NamespacedKeyArgument}. |
| 701,16933,True, * Set the caption variable replacement handler, * Sets the caption variable replacement handler. |
| 702,16937,True,package cloud.commandframework.arguments.standard;,"//// MIT License//// Copyright (c) 2021 Alexander S derberg & Contributors//// 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.//package cloud.commandframework.arguments.standard;" |
| 703,16938,True,package cloud.commandframework.arguments.standard;,"//// MIT License//// Copyright (c) 2021 Alexander S derberg & Contributors//// 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.//package cloud.commandframework.arguments.standard;" |
| 704,16940,False, * Create a new optional argument with a default value, * Create a new optional {@link KeyedWorldArgument} with the specified default value. |
| 705,16941,False, * Create a new optional argument, * Create a new optional {@link KeyedWorldArgument}. |
| 706,16953,False, } catch (Exception exception) {, } catch (final Exception exception) { |
| 707,16942,False, * Create a new builder, * Create a new {@link Builder}. |
| 708,16943,False, * cloud argument type that parses Bukkit {@link World worlds} from a namespaced key, * Argument type that parses Bukkit {@link World worlds} from a {@link NamespacedKey}. |
| 709,16944,True," this.<Liberal, String>registerAnnotationMapper("," this.<Liberal, Boolean>registerAnnotationMapper(" |
| 710,16945,True," private static final Component NULL = Component.text(""null"");"," private static final Component NULL = text(""null"");" |
| 711,16954,False, } catch (CommandExecutionException exception) {, } catch (final CommandExecutionException exception) { |
| 712,16947,True, * {@link Location} which defaults the Y position to 0, * {@link Location} projected onto the XZ-plane |
| 713,16949,False," return suggestionsForDynamicArgument(commandContext, commandQueue, children.get(0));"," return this.suggestionsForDynamicArgument(commandContext, commandQueue, children.get(0));" |
| 714,16950,True," findSyntaxFragment(tokens, argumentPair.getArgument().value()),"," this.findSyntaxFragment(tokens, argumentPair.getArgument().value())," |
| 715,16952,True, * @param cause cause, * @param cause Exception thrown during the execution |
| 716,16955,False, } catch (CommandExecutionException exception) {, } catch (final CommandExecutionException exception) { |
| 717,16956,False, } catch (Exception exception) {, } catch (final Exception exception) { |
| 718,16961,True, for (SyntaxFragment fragment : fragments) {, for (final SyntaxFragment fragment : fragments) { |
| 719,16962,True," parameter.getName(), this.methodHandle.toString()"," parameter.getName(), this.methodHandle.toString()" |
| 720,16976,True, public String getCommandPrefix(C sender) {, public @NonNull String getCommandPrefix(final @NonNull C sender) { |
| 721,61312,True,// Input to the DeleteERL function,// DeleteERLInput is used as input to the DeleteERL function. |
| 722,16963,True, * This should only be used on {@code String[]}, * This should only be used on {@code String[]} * |
| 723,16964,False, }, if (!checkedAnnotations.add(annotation.annotationType())) { continue; } |
| 724,16966,False, return member;, return this.member; |
| 725,16967,False, return channel;, return this.channel; |
| 726,16977,True, return commandPrefixMapper.apply(sender);, return this.commandPrefixMapper.apply(sender); |
| 727,16978,True, public DiscordApi getDiscordApi() {, public @NonNull DiscordApi getDiscordApi() { |
| 728,16968,False, public PrivateChannel getPrivateChannel() {, public @NonNull PrivateChannel getPrivateChannel() { |
| 729,16969,True," ""node.value: """," ""node.value""" |
| 730,16970,True, * Default caption for {@link BungeeCaptionKeys#ARGUMENT_PARSE_FAILURE_PLAYER}, * Default caption for {@link BungeeCaptionKeys#ARGUMENT_PARSE_FAILURE_SERVER} |
| 731,16971,False," suggestions.add(String.format(""&s%c"", c));"," suggestions.add(String.format(""&%c"", c));" |
| 732,16972,False," suggestions.add(String.format(""&s%c"", c));"," suggestions.add(String.format(""&%c"", c));" |
| 733,16973,True," new LinkedList<>(Arrays.asList(""other"","," new LinkedList<>(Arrays.asList( ""other""," |
| 734,16974,True, public void onMessageCreate(MessageCreateEvent event) {, public void onMessageCreate(final @NonNull MessageCreateEvent event) { |
| 735,16975,True," @NonNull C sender, @NonNull String permission) {"," final @NonNull C sender, final @NonNull String permission) {" |
| 736,16979,True, return discordApi;, return this.discordApi; |
| 737,16980,False, public ServerChannel getServerChannel() {, public @NonNull ServerChannel getServerChannel() { |
| 738,16981,False, return (ServerChannel) getTextChannel();, return (ServerChannel) this.getTextChannel(); |
| 739,16982,False, return event.getMessage();, return this.event.getMessage(); |
| 740,16983,False, return event.getMessageAuthor();, return this.event.getMessageAuthor(); |
| 741,16984,False, return event.getChannel();, return this.event.getChannel(); |
| 742,16985,False, return event;, return this.event; |
| 743,16986,False, return event.getChannel().sendMessage(message);, return this.event.getChannel().sendMessage(message); |
| 744,16987,False, public CompletableFuture<Message> sendMessage(@Nullable String message) {, public CompletableFuture<Message> sendMessage(final @Nullable String message) { |
| 745,25463,True," JswFormat = ""jws"""," JwsFormat = ""jws""" |
| 746,16988,False, public CompletableFuture<Message> sendErrorMessage(@Nullable String message) {, public CompletableFuture<Message> sendErrorMessage(final @Nullable String message) { |
| 747,16989,False, public CompletableFuture<Message> sendSuccessMessage(@Nullable String message) {, public CompletableFuture<Message> sendSuccessMessage(final @Nullable String message) { |
| 748,16990,True," public void mapSimpleNMS(@NonNull final Class<?> type,"," public void mapSimpleNMS(final @NonNull Class<?> type," |
| 749,16991,True, @NonNull final Constructor<?> constructor) {, final @NonNull Constructor<?> constructor) { |
| 750,16992,False, private Class<?> getNMSArgument(@NonNull final String argument) throws Exception {, private @NonNull Class<?> getNMSArgument(final @NonNull String argument) throws Exception { |
| 751,16993,True," public void mapComplexNMS(@NonNull final Class<?> type,"," public void mapComplexNMS(final @NonNull Class<?> type," |
| 752,16994,True, @NonNull final Supplier<ArgumentType<?>> argumentTypeSupplier) {, final @NonNull Supplier<ArgumentType<?>> argumentTypeSupplier) { |
| 753,17423,False, self.underlying = underlying," def __init__(self, wrapped: BaseException): self.wrapped = wrapped" |
| 754,61313,True,// Deletes the specified ERL,// DeleteERL deletes the specified ERL. |
| 755,17414,True, o->get_dataclass_fields = arg;, o->get_dataclass_fields_func = arg; |
| 756,17415,True," PyObject *el = PySequence_GetItem(o, cur);"," PyObject *el = EdgeTuple_GET_ITEM(o, i);" |
| 757,17416,True," return PySequence_GetItem(o, val);"," Py_ssize_t val = PyNumber_AsSsize_t(key, PyExc_IndexError); if (val == -1 && PyErr_Occurred()) { return NULL; } return tuple_getitem(o, val);" |
| 758,17418,True," self._ssl_ctx.check_hostname = self.tls_security == ""strict"""," self._ssl_ctx.check_hostname = tls_security == ""strict""" |
| 759,17419,False, f'boundry {dir!r}', f'no connection options specified' f'(stopped searching for `edgedb.toml` at file system' f'boundry {dir!r})' |
| 760,17420,False, f'boundry {dir!r})', f'boundary {dir!r})' |
| 761,17421,True, inner = self._connection._inner, inner = self._connection_inner |
| 762,17424,False,class _RetryErrorInTxBegin(BaseException):,class _RetryableErrorInTxBegin(BaseException): |
| 763,17426,True," 'removed. Use the query methods on AsyncIOPool instead.',"," 'removed. Use the query methods on Pool instead.'," |
| 764,17427,True," 'removed. Use the query methods on AsyncIOPool instead.',"," 'removed. Use the query methods on Pool instead.'," |
| 765,17431,False," re.sub(r'$[a-zA-Z]:', '/mnt/c', status_file)"," re.sub(r'^([a-zA-Z]):', lambda m: f'{m.group(1).lower()}/mnt/', status_file)" |
| 766,17432,True, path = os.path.realpath(path), path = os.path.realpath(path) if _system == 'Windows' and not path.startswith('\\\\'): path = '\\\\?\\' + path |
| 767,17433,True," """"""Options for `raw_transaction()` an `retrying_transaction()`"""""""," """"""Options for `raw_transaction()` and `retrying_transaction()`""""""" |
| 768,17437,True,Capability.ALL = 0xFFFFFFFFFFFFFFFF,Capability.ALL = 0xFFFF_FFFF_FFFF_FFFF |
| 769,17458,True," ""Connection object is borrowed for the transaction. """," ""Connection object is borrowed for a transaction. """ |
| 770,17459,True, if asyncio.isfuture(res) or asyncio.iscoroutine(res):, if inspect.isawaitable(res): |
| 771,17460,True, tags = frozenset(()), tags = frozenset() |
| 772,17711,False," str := strings.TrimSuffix(string(optText), "" "")", optText = bytes.TrimSpace(optText) |
| 773,17712,True, m.Multiline = true, m.Multiline = true |
| 774,17713,False," conflictErr := errorWithPos(fldNode.Start(), ""%s: %s JSON name %q conflicts with %s JSON name%s of field %s, defined at %v"","," conflictErr := errorWithPos(fldNode.Start(), ""%s: %s JSON name %q conflicts with %s JSON name %s of field %s, defined at %v""," |
| 775,17715,True," fileNode, _ := node.(*ast.FileNode)", fileNode := res.root if fileNode == nil { return nil } |
| 776,17717,False," return fmt.Errorf(""could not convert desc %s to EnumDescriptor. TypeName: %s"", desc, fd.proto.GetTypeName())"," return fmt.Errorf(""field %v indicates a type of enum, but references %q which is %T"", fd.fqn, fd.proto.GetTypeName(), desc)" |
| 777,17725,True,"// used as value in some contexts, such as describing the default value","// used as values in some contexts, such as describing the default value" |
| 778,31393,True,template <typename GraphComp>,template <typename GraphComparator> |
| 779,17718,False," return fmt.Errorf(""could not convert desc %s to MessageDescriptor. TypeName: %s"", desc, fd.proto.GetTypeName())"," return fmt.Errorf(""field %v indicates a type of message, but references %q which is %T"", fd.fqn, fd.proto.GetTypeName(), desc)" |
| 780,17719,False," return fmt.Errorf(""could not convert desc %s to MessageDescriptor. TypeName: %s"", desc, fd.proto.GetTypeName())"," return fmt.Errorf(""field %v extends %q which should be a message but is %T"", fd.fqn, fd.proto.GetExtendee(), desc)" |
| 781,17720,True," testutil.Require(t, md.FindFieldByName(""five"").GetNumber() == 5)"," testutil.Require(t, md.FindFieldByName(""one"") != nil) testutil.Eq(t, int32(1), md.FindFieldByName(""one"").GetNumber()) testutil.Require(t, md.FindFieldByName(""two"") != nil) testutil.Eq(t, int32(2), md.FindFieldByName(""two"").GetNumber()) testutil.Require(t, md.FindFieldByName(""three"") != nil) testutil.Eq(t, int32(3), md.FindFieldByName(""three"").GetNumber()) testutil.Require(t, md.FindFieldByName(""four"") != nil) testutil.Eq(t, int32(4), md.FindFieldByName(""four"").GetNumber()) testutil.Require(t, md.FindFieldByName(""five"") != nil) testutil.Eq(t, int32(5), md.FindFieldByName(""five"").GetNumber())" |
| 782,17721,True,// Files that have syntax node are assumed to use proto2 syntax.,// Files that don't have a syntax node are assumed to use proto2 syntax. |
| 783,17722,True,"// and only or the other (or neither) may be specified, not both. When public is","// and only one or the other (or neither) may be specified, not both. When public is" |
| 784,17723,False,"// statement means this is a weak import. When both are nil, this is a normal import.","// statement which means this is a weak import. When both are nil, this is a normal import." |
| 785,17724,True,// MessageNodesa and GroupNodes.,// MessageNodes and GroupNodes. |
| 786,17726,True, // VisitImportNode is invoked when visiting a *ImportNode in the AST., // VisitImportNode is invoked when visiting an *ImportNode in the AST. |
| 787,17727,True, // VisitOptionNode is invoked when visiting a *OptionNode in the AST., // VisitOptionNode is invoked when visiting an *OptionNode in the AST. |
| 788,17728,True, // VisitOptionNameNode is invoked when visiting a *OptionNameNode in the AST., // VisitOptionNameNode is invoked when visiting an *OptionNameNode in the AST. |
| 789,17729,True, // VisitExtendNode is invoked when visiting a *ExtendNode in the AST., // VisitExtendNode is invoked when visiting an *ExtendNode in the AST. |
| 790,17744,False," ""github.com/jhump/protoreflect/internal/testutil"""," ""bytes"" ""io/ioutil"" ""os"" ""path/filepath"" ""testing"" ""github.com/jhump/protoreflect/desc/protoparse/ast"" ""github.com/jhump/protoreflect/internal/testutil""" |
| 791,17730,True, // VisitExtensionRangeNode is invoked when visiting a *ExtensionRangeNode in the AST., // VisitExtensionRangeNode is invoked when visiting an *ExtensionRangeNode in the AST. |
| 792,17731,True, // VisitEnumNode is invoked when visiting a *EnumNode in the AST., // VisitEnumNode is invoked when visiting an *EnumNode in the AST. |
| 793,17732,True, // VisitEnumValueNode is invoked when visiting a *EnumValueNode in the AST., // VisitEnumValueNode is invoked when visiting an *EnumValueNode in the AST. |
| 794,17733,True, // VisitRPCNode is invoked when visiting a *RPCNode in the AST., // VisitRPCNode is invoked when visiting an *RPCNode in the AST. |
| 795,17734,True, // VisitRPCTypeNode is invoked when visiting a *RPCTypeNode in the AST., // VisitRPCTypeNode is invoked when visiting an *RPCTypeNode in the AST. |
| 796,17735,True, // VisitIdentNode is invoked when visiting a *IdentNode in the AST., // VisitIdentNode is invoked when visiting an *IdentNode in the AST. |
| 797,17736,False, // VisitAggregateLiteralNode is invoked when visiting a *AggregateLiteralNode in the AST., // VisitAggregateLiteralNode is invoked when visiting an *AggregateLiteralNode in the AST. |
| 798,17737,False, // VisitOptionDeclNode is invoked when visiting a OptionDeclNode in the AST., // VisitOptionDeclNode is invoked when visiting an OptionDeclNode in the AST. |
| 799,17738,True, // VisitIdentValueNode is invoked when visiting a IdentValueNode in the AST., // VisitIdentValueNode is invoked when visiting an IdentValueNode in the AST. |
| 800,17739,True, // VisitIntValueNode is invoked when visiting a IntValueNode in the AST., // VisitIntValueNode is invoked when visiting an IntValueNode in the AST. |
| 801,17740,True,"// statement means this is a weak import. When both are nil, this is a normal import.","// statement and means this is a weak import. When both are nil, this is a normal import." |
| 802,17741,True,// ExtensionRangeNode represents a extension range declaration in an extendable,// ExtensionRangeNode represents an extension range declaration in an extendable |
| 803,17742,False,// NewServiceNode creates a new *EnumNode. All arguments must be non-nil.,// NewServiceNode creates a new *ServiceNode. All arguments must be non-nil. |
| 804,17743,False,//,// function set. So the first visitor can be used to determine the preferred// function (which should match the node's concrete type). The slice of visitors// can be used to enumerate ALL matching function calls.// |
| 805,18080,False,#endif,#if defined(FS_EXP)#include <experimental/filesystem>namespace fs = std::experimental::filesystem;#elif defined(FS_GHC)#include <ghc/filesystem.hpp>namespace fs = ghc::filesystem;#else#include <filesystem>namespace fs = std::filesystem;#endif |
| 806,18284,True, if instance.Current == true {, if instance.Current { |
| 807,18285,False,ROUTER_MONGO_POLL_INTERVAL=2 Interval in seconds to poll mongo for route changes,ROUTER_MONGO_POLL_INTERVAL=2s Interval to poll mongo for route changes |
| 808,18287,True," Name: ""router_redirect_handler_redirect_count"","," Name: ""router_redirect_handler_redirect_total""," |
| 809,18288,True," Name: ""router_backend_handler_request_count"","," Name: ""router_backend_handler_request_total""," |
| 810,18289,False," Name: ""router_internal_server_error_count"","," Name: ""router_internal_server_error_total""," |
| 811,18542,True, if (1 === $connectionCount && !isset($client['options']['cluster']) && (!isset($client['options']['replication'] ) || !$client['options']['replication'])) {, if (1 === $connectionCount && !isset($client['options']['cluster']) && !isset($client['options']['replication'])) { |
| 812,18543,True, $node1 = $this->getMockBuilder('\Predis\\Client')->getMock();, $node1 = $this->getMockBuilder('\Predis\Client')->getMock(); |
| 813,18544,True, $node2 = $this->getMockBuilder('\Predis\\Client')->getMock();, $node2 = $this->getMockBuilder('\Predis\Client')->getMock(); |
| 814,18545,True, $node1 = $this->getMockBuilder('\Predis\\Client')->getMock();, $node1 = $this->getMockBuilder('\Predis\Client')->getMock(); |
| 815,18546,True, $node2 = $this->getMockBuilder('\Predis\\Client')->getMock();, $node2 = $this->getMockBuilder('\Predis\Client')->getMock(); |
| 816,18547,True, $node1 = $this->getMockBuilder('\Predis\\Client')->getMock();, $node1 = $this->getMockBuilder('\Predis\Client')->getMock(); |
| 817,18548,True, $node2 = $this->getMockBuilder('\Predis\\Client')->getMock();, $node2 = $this->getMockBuilder('\Predis\Client')->getMock(); |
| 818,18549,True, $node1 = $this->getMockBuilder('\Predis\\Client')->getMock();, $node1 = $this->getMockBuilder('\Predis\Client')->getMock(); |
| 819,18550,True, $node2 = $this->getMockBuilder('\Predis\\Client')->getMock();, $node2 = $this->getMockBuilder('\Predis\Client')->getMock(); |
| 820,18884,True, // Determin if request comes from layout server or not, // Determine if request comes from layout server or not |
| 821,61314,True,// Input to the GetERL function,// GetERLInput is used as input to the GetERL function. |
| 822,20068,False, Timeout: 1," Code: { ZipFile: zipped }, Description: '', FunctionName: functionName, Handler: 'index.handler', MemorySize: 128, Role: event.ResourceProperties.RoleArn, Runtime: 'nodejs12.x', Timeout: 1" |
| 823,20074,False, console.log(`Adding uploadPromise for config.js file: ${configObject}`)," console.log(`Adding uploadPromise for config.js file: ${JSON.stringify(configObject, null, 2)}`)" |
| 824,20173,True," it 'singularizes a composed string', silence_deprecations: true do"," it 'singularizes a snake_case string', silence_deprecations: true do" |
| 825,20513,False," ""profiling"","," ""enable-pprof""," |
| 826,20514,False," if err != nil && errors.Is(err, http.ErrServerClosed) {"," if err != nil && !errors.Is(err, http.ErrServerClosed) {" |
| 827,20515,True," ""spec.tls.destinationCACertificate"","," ""kind"", ""apiVersion"", ""metadata.annotations"", ""metadata.name"", ""metadata.namespace"", ""metadata.ownerReferences"", ""metadata.selfLink"", ""metadata.uid"", ""spec.host"", ""spec.to.kind"", ""spec.to.port"", ""spec.to.name"", ""spec.to.weight"", ""spec.tls.termination"", ""spec.tls.certificate"", ""spec.tls.caCertificate"", ""spec.tls.destinationCACertificate"", ""spec.tls.insecureEdgeTerminationPolicy"", ""spec.wildcardPolicy"", ""status""," |
| 828,20516,True,func AgentCLR(clusterRole []rbac.ClusterRole) string {,func agentCLR(clusterRoles []rbac.ClusterRole) string { |
| 829,20532,True, DataPath string,"type DataGatherer struct { Kind string `yaml:""kind""` Name string `yaml:""name""` DataPath string `yaml:""data_path""`" |
| 830,20517,True,func AgentRB(RB []rbac.RoleBinding) string {,func agentRB(roleBindings []rbac.RoleBinding) string { |
| 831,20518,True,func AgentCLRB(CLRB []rbac.ClusterRoleBinding) string {,func agentCLRB(clusterRoleBindings []rbac.ClusterRoleBinding) string { |
| 832,20519,True," Short: ""print RBAC"","," Short: ""print the agent's minimal RBAC manifest""," |
| 833,20520,False," Long: `Print RBAC string by reading GVRs`,"," Long: `Print the agent's minimal RBAC manifest depending on the agent's configuration`," |
| 834,20521,False, }," b, err := ioutil.ReadFile(agent.ConfigFilePath) if err != nil { log.Fatalf(""Failed to load config file for agent from: %s"", agent.ConfigFilePath) }" |
| 835,20522,False,func AgentRB(RoleBindings []rbac.RoleBinding) string {,func AgentRB(roleBindings []rbac.RoleBinding) string { |
| 836,20523,False," verbs: [""get"", ""list"", ""watch""]","- apiGroups: [""""] resources: [""pods""] verbs: [""get"", ""list"", ""watch""]" |
| 837,20524,True, // AgentRBACManifests.RoleBindings = append(...), |
| 838,20525,True, metav1.TypeMeta{, TypeMeta: metav1.TypeMeta{ |
| 839,20526,True, metav1.ObjectMeta{, ObjectMeta: metav1.ObjectMeta{ |
| 840,20527,True, []rbac.PolicyRule{, Rules: []rbac.PolicyRule{ |
| 841,20530,True," APIVersion: ""v1"","," APIVersion: ""rbac.authorization.k8s.io/v1""," |
| 842,20531,False," DataGatherers []DataGatherer `yaml:""data-gatherers""`"," DataGatherers []DataGatherer `yaml:""data_gatherers""`" |
| 843,20535,True," ""Time between scans (given as XhYmZs)."","," ""Override time between scans in the configuration file (given as XhYmZs).""," |
| 844,20536,False,// Fetch retrieves information from GKE.,// Fetch retrieves Istio resources from the K8s API and runs istio analysis |
| 845,20537,True,package isito,package istio |
| 846,20538,True, var dynamics []datagatherer.DataGatherer, var dynamicDataGatherers []datagatherer.DataGatherer |
| 847,20539,False," dynamics: dynamics,"," dynamicDataGatherers: dynamics," |
| 848,20540,False," sa: sa,"," sourceAnalyzer: sa," |
| 849,20541,True," content := fmt.Sprintf(kuebConfigString, server)"," content := fmt.Sprintf(kubeConfigString, server)" |
| 850,20542,True,var kuebConfigString = `,var kubeConfigString = ` |
| 851,20543,True," c.DynamicNode.ExcludeNamespaces = make([]string, 0)", c.DynamicNode.ExcludeNamespaces = []string{} |
| 852,20544,False," ""Max time for retrying failed data gatherers. "","," ""Max time for retrying failed data gatherers (in seconds).""," |
| 853,20545,False, return err," return postData(config, preflightClient, readings)" |
| 854,20546,False," ""server_version"": data,"," // data has type Info: https://godoc.org/k8s.io/apimachinery/pkg/version#Info ""server_version"": data," |
| 855,20547,True,// This variables are injected at build time.,// These variables are injected at build time. |
| 856,20548,True," errors = append(errors, ""cannot set excluded an included namespaces"")"," errors = append(errors, ""cannot set excluded and included namespaces"")" |
| 857,20553,False,package checkconfig,// Package checkconfig provides all the necessary for the `check` command to load its configuration.package checkconfig |
| 858,20555,False, // provide fake data., // provide local data. |
| 859,20558,True," return fmt.Sprintf(""the following rules from the package %q are missing its Rego definition: %s"", e.pkg, strings.Join(e.ids, "", ""))"," return fmt.Sprintf(""the following rules from the package %q are missing their Rego definitions: %s"", e.pkg, strings.Join(e.ids, "", ""))" |
| 860,20559,True,// freshly generated report set,// freshly generated slice of reports. |
| 861,20562,True, // Missing indicated wherer the Rego rule was missing or not., // Missing indicates whether the Rego rule was missing or not. |
| 862,20565,True, Long: `This uses OPA's engine to run all the testsuites, Long: `This uses OPA's engine to run all the test suites |
| 863,61315,True,// Gets the specified ERL,// GetERL returns the specified ERL. |
| 864,21598,True, end, end if Method.instance_methods.include?(:===) |
| 865,20920,True," remote.run ""journalctl -q |
| 866,20921,True, return RUBY_VERSION.inspect if dry_run?, return RUBY_VERSION if dry_run? |
| 867,20922,True, return File.read(path).strip if File.exist?(path)," version = remote.capture(""cat"", path, raise_on_error: false).strip return version unless version.empty?" |
| 868,20926,False," remote.run ""CFLAGS=-O3 nodenv install #{node_version.shellescape}"""," remote.run ""nodenv install #{node_version.shellescape}""" |
| 869,21013,False, if (node.type === 'decl' && node.prop === 'content') {, if (node.prop === 'content') { |
| 870,21017,True,let list = require('postcss').list,let { list } = require('postcss') |
| 871,21427,False,"func createFile(namePattern string, content []byte, mode os.FileMode) (filename string, err error) {","func createFile(namePattern string, content []byte) (filename string, err error) {" |
| 872,21594,False," raise ::JWT::DecodeError, 'Invalid type for kid header parameter' unless kid.nil? || kid.is_a?(String)"," raise ::JWT::DecodeError, 'Invalid type for kid header parameter' unless kid.is_a?(String)" |
| 873,21595,True, RSA_KEY_ELEMENTS.each { |e| parameters.delete e }, RSA_KEY_ELEMENTS.each { |e| parameters.delete(e) } |
| 874,21602,False, @cert_chain = x5c[1...len].map do |b64der|, @cert_chain = x5c[1..-1].map do |b64der| |
| 875,21603,False, OpenSSL::X509::Certificate.new(::Base64.decode64(b64der)), OpenSSL::X509::Certificate.new(::Base64.strict_decode64(b64der)) |
| 876,21604,False, signing_der = ::Base64.decode64 x5c.first, signing_der = ::Base64.strict_decode64(x5c.first) |
| 877,22432,True," ""hooks"": ["," cmd_str = ""pre-commit install "" + "" "".join( f""--hook-type {ty}"" for ty in hook_types )" |
| 878,22433,False," ""name"": ""--signoff"","," ""name"": [""s"", ""--signoff""]," |
| 879,23382,True," res := suite.doRequest(""cache-internal"", ""GET"", ""/api/charts/mychart/0.1.0"", nil, """")"," res := suite.doRequest(""cache-interval"", ""GET"", ""/api/charts/mychart/0.1.0"", nil, """")" |
| 880,23383,True," case ""cache-internal"":"," case ""cache-interval"":" |
| 881,23384,True," Usage: ""always regenerate the chart index and ignore the chart cache , it will cost the even more disk I/O"","," Usage: ""always regenerate the chart index and ignore the chart cache (this will result in decreased performance and an increase in resource consumption)""," |
| 882,23385,False," AlwaysRegenerateIndex: conf.GetBool(""always-regenerate-index""),"," AlwaysRegenerateIndex: conf.GetBool(""always-regenerate-chart-index"")," |
| 883,23386,True," suite.Equal(404, res.Status(), fmt.Sprintf(""200 GET %s/charts/mychart/0.1.1/templates"", apiPrefix))"," suite.Equal(404, res.Status(), fmt.Sprintf(""404 GET %s/charts/mychart/0.1.1/templates"", apiPrefix))" |
| 884,23387,True," suite.Equal(404, res.Status(), fmt.Sprintf(""200 GET %s/charts/fakechart/0.1.0/templates"", apiPrefix))"," suite.Equal(404, res.Status(), fmt.Sprintf(""404 GET %s/charts/fakechart/0.1.0/templates"", apiPrefix))" |
| 885,23388,True," suite.Equal(404, res.Status(), fmt.Sprintf(""200 GET %s/charts/mychart/0.1.1/values"", apiPrefix))"," suite.Equal(404, res.Status(), fmt.Sprintf(""404 GET %s/charts/mychart/0.1.1/values"", apiPrefix))" |
| 886,23389,True," suite.Equal(404, res.Status(), fmt.Sprintf(""200 GET %s/charts/fakechart/0.1.0/values"", apiPrefix))"," suite.Equal(404, res.Status(), fmt.Sprintf(""404 GET %s/charts/fakechart/0.1.0/values"", apiPrefix))" |
| 887,23390,False," return """", &HTTPError{http.StatusNotFound, ""not found chart filename""}"," return """", &HTTPError{http.StatusNotFound, ""chart filename not found""}" |
| 888,23391,False," return """", &HTTPError{http.StatusNotFound, ""not found chart filename""}"," return """", &HTTPError{http.StatusNotFound, ""chart filename not found""}" |
| 889,27610,False, }," if err = close(err); err != nil { e.Logger.Errf(logger.Red, ""task: unable to close writer: %v"", err) }" |
| 890,23727,True,// dst and any error that occured during the transformation. If dst is returned,// dst and any error that occurred during the transformation. If dst is returned |
| 891,23728,True,// dst and any error that occured during the transformation. If dst is returned,// dst and any error that occurred during the transformation. If dst is returned |
| 892,23729,False, if c > threshold {, if c < threshold { |
| 893,23730,False,// rowAllocator is a memory allocator used to make copy of rows referencing,// rowAllocator is a memory allocator used to make a copy of rows referencing |
| 894,23731,False,// This type is used in the implementation of a various readers and writers that,// This type is used in the implementation of various readers and writers that |
| 895,23732,True, // GetPageBuffer is called when a parquet writer needs to acquires a new, // GetPageBuffer is called when a parquet writer needs to acquire a new |
| 896,23733,False, // A second optimization consist in passing the column type, // A second optimization is to pass the column type |
| 897,23734,False,// BooleamValue constructs a BOOLEAN parquet value from the bool passed as,// BooleanValue constructs a BOOLEAN parquet value from the bool passed as |
| 898,23735,True, if t.Implements(deprecated.MapGroupI) {, if deprecated.IsMap(t) { |
| 899,23736,True,func SetPageReadMode(mode PageReadMode) FileOption {,func FileReadMode(mode ReadMode) FileOption { |
| 900,23737,False,"func (w *Writer) KeyValueMetadata(key, value string) {","func (w *Writer) SetKeyValueMetadata(key, value string) {" |
| 901,23738,True," return val, nil"," return val, checkTypeKindEqual(t, typ)" |
| 902,23739,False,}, v := src.Boolean() switch dst.Kind() { case reflect.Bool: dst.SetBool(v) default: dst.Set(reflect.ValueOf(v)) } return nil} |
| 903,23740,True, }, dst.SetBytes(copyBytes(v)) return nil |
| 904,23741,True, }, dst.SetBytes(copyBytes(v)) return nil |
| 905,23742,True,"// Usage of this is optional and with Retain, is intended to allow finer grain","// Usage of this is optional and with Retain, is intended to allow finer grained" |
| 906,23744,False, // Copy all the non-zero values in this run, // Copy all the non-zero values in this run. |
| 907,23745,False, // Get the length of the run of non-zero values to be copied, // Get the length of the run of non-zero values to be copied. |
| 908,23746,False, // returned in this run," // While we haven't exceeded the output buffer and we haven't exceeded the // page size AND the current element's definitionLevel is not the // maxDefinitionLevel (this is a null value), Create the zero values to be // returned in this run." |
| 909,23747,False, // while we haven't exceeded the output buffer and we haven't exceeded the page size, // While we haven't exceeded the output buffer and we haven't exceeded the page size. |
| 910,23749,False,// asynchronoulsy in a separate goroutine.,// asynchronously in a separate goroutine. |
| 911,23750,False,"// be reading pages from a high latency backend, and processing of the last","// be reading pages from a high latency backend, and the last" |
| 912,23751,True,"// When configuring a Parquet map, the `parquet` tag will configure map itself.","// When configuring a Parquet map, the `parquet` tag will configure the map itself." |
| 913,23753,False, // The offsets have the total length as last item. Since we are about to, // The offsets have the total length as the last item. Since we are about to |
| 914,23754,False, // the last offset is the total length of of values., // the last offset is the total length of (all?) values. |
| 915,23755,False,"// gather128 to lookup string values, the memory layout of the arguments being","// gather128 to lookup string values, since the memory layout of the arguments is" |
| 916,23756,False,// Conversion between array types are supported when converting integers to a,// Conversion between array types is supported when converting integers to a |
| 917,23757,False,// All array types can be converted to a generic Array type can be used to erase,// All array types can be converted to a generic Array type that can be used to erase |
| 918,23758,False, // caches when large number of values are inserted into the dictionary with, // caches when a large number of values are inserted into the dictionary with |
| 919,23759,False, // operation iterate through the array. The subsequent scan of the indexes, // operation iterates through the array. The subsequent scan of the indexes |
| 920,23760,False,// a cache line can hold four 16 bytes keys.,// a cache line can hold four 16 byte keys. |
|
|