{"uid":"cap_Z7fPFi5X9GOucyFVNoDuC","slug":"code-snippets-adjacent-word-pair-frequency-3892ac0d","name":"Code Snippets — Adjacent Word-Pair Frequency","description":"Code snippets — Adjacent word-pair frequency: Adjacent word-pair frequency for Code snippets. One public HTTPS page or supplied HTML; static parsing, no JavaScript rendering, login or access bypass. Specialised preset in a shared 50-profile, 20-operation engine. 0.01 USDC includes one bounded adjacent word-pair frequency result.","url":"https://market.datapackvibe.com/x402/assistant-bx-web-code-bigrams?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","default":"","maxLength":2048},"html":{"type":"string","default":"<!doctype html><html><head></head><body><code id=\"sample\" data-kind=\"example\">Example product guide</code></body></html>","maxLength":100000},"term":{"type":"string","default":"product","maxLength":100,"minLength":1},"attribute":{"type":"string","default":"id","pattern":"^[a-zA-Z][a-zA-Z0-9:_-]{0,49}$","maxLength":50},"previous_texts":{"type":"array","items":{"type":"string","default":"","maxLength":1000},"default":["Older example"],"maxItems":200,"minItems":0},"attribute_value":{"type":"string","default":"sample","maxLength":200}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gE_u64z7BN6PIhec2BrxM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a web page or HTML containing code snippets and returns the frequency of adjacent word pairs (bigrams) within the code content.","exampleAgentPrompt":"Fetch the page at https://docs.example.com/getting-started and count how often adjacent word pairs appear in the code snippets — I'm looking for the term 'function call' and want bigram frequencies from the element with id 'sample'.","exampleUseCases":[{"title":"Bigram frequency in API docs","prompt":"Go to https://api.example.com/docs and analyze the code snippets there — I want to see how often the word pair 'async await' and other adjacent word pairs appear in the code blocks with the id attribute set to 'code-block'."},{"title":"Detect common patterns in tutorial code","prompt":"Parse this HTML I'm pasting and count adjacent word-pair frequencies in the code elements — I want to see which two-word combinations appear most often around the term 'return value'."},{"title":"Compare word pairs across code snippet versions","prompt":"Check the page at https://github.com/example/repo/README.md and tell me the bigram frequencies in the code snippets, especially near the word 'install', comparing against these older texts I'll provide."}],"resultDescription":"Returns a bounded result containing adjacent word-pair (bigram) frequency counts extracted from code snippet elements on the specified page or HTML input, scoped to the relevant element identified by the given attribute and attribute value.","failureModes":["URL is inaccessible or returns non-200 status — no content to parse","HTML content exceeds 100,000 character limit — request rejected","No code snippet elements found matching the specified attribute/attribute value — empty or null result","Term parameter missing or too short — validation error","JavaScript-rendered content not available — static parser only, dynamic content missed","Rate limit or capacity exceeded on the shared 50-profile engine — request queued or failed"],"whenToPreferThis":"Choose this endpoint when you need bigram (adjacent word-pair) frequency statistics specifically from code snippet HTML elements on a public web page or supplied HTML, and you want a fast, low-cost ($0.01 USDC) single-call result without needing full NLP pipeline infrastructure. Prefer this over general text analysis tools when the target content is code blocks rather than prose.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T00:52:34.653Z","isFirstParty":false,"canonicalSlug":"code-snippets-adjacent-word-pair-frequency-3892ac0d"}