{ // 获取包含Hugging Face文本的span元素 const spans = link.querySelectorAll('span.whitespace-nowrap, span.hidden.whitespace-nowrap'); spans.forEach(span => { if (span.textContent && span.textContent.trim().match(/Hugging\s*Face/i)) { span.textContent = 'AI快站'; } }); }); // 替换logo图片的alt属性 document.querySelectorAll('img[alt*="Hugging"], img[alt*="Face"]').forEach(img => { if (img.alt.match(/Hugging\s*Face/i)) { img.alt = 'AI快站 logo'; } }); } // 替换导航栏中的链接 function replaceNavigationLinks() { // 已替换标记,防止重复运行 if (window._navLinksReplaced) { return; } // 已经替换过的链接集合,防止重复替换 const replacedLinks = new Set(); // 只在导航栏区域查找和替换链接 const headerArea = document.querySelector('header') || document.querySelector('nav'); if (!headerArea) { return; } // 在导航区域内查找链接 const navLinks = headerArea.querySelectorAll('a'); navLinks.forEach(link => { // 如果已经替换过,跳过 if (replacedLinks.has(link)) return; const linkText = link.textContent.trim(); const linkHref = link.getAttribute('href') || ''; // 替换Spaces链接 - 仅替换一次 if ( (linkHref.includes('/spaces') || linkHref === '/spaces' || linkText === 'Spaces' || linkText.match(/^s*Spacess*$/i)) && linkText !== 'OCR模型免费转Markdown' && linkText !== 'OCR模型免费转Markdown' ) { link.textContent = 'OCR模型免费转Markdown'; link.href = 'https://fast360.xyz'; link.setAttribute('target', '_blank'); link.setAttribute('rel', 'noopener noreferrer'); replacedLinks.add(link); } // 删除Posts链接 else if ( (linkHref.includes('/posts') || linkHref === '/posts' || linkText === 'Posts' || linkText.match(/^s*Postss*$/i)) ) { if (link.parentNode) { link.parentNode.removeChild(link); } replacedLinks.add(link); } // 替换Docs链接 - 仅替换一次 else if ( (linkHref.includes('/docs') || linkHref === '/docs' || linkText === 'Docs' || linkText.match(/^s*Docss*$/i)) && linkText !== '模型下载攻略' ) { link.textContent = '模型下载攻略'; link.href = '/'; replacedLinks.add(link); } // 删除Enterprise链接 else if ( (linkHref.includes('/enterprise') || linkHref === '/enterprise' || linkText === 'Enterprise' || linkText.match(/^s*Enterprises*$/i)) ) { if (link.parentNode) { link.parentNode.removeChild(link); } replacedLinks.add(link); } }); // 查找可能嵌套的Spaces和Posts文本 const textNodes = []; function findTextNodes(element) { if (element.nodeType === Node.TEXT_NODE) { const text = element.textContent.trim(); if (text === 'Spaces' || text === 'Posts' || text === 'Enterprise') { textNodes.push(element); } } else { for (const child of element.childNodes) { findTextNodes(child); } } } // 只在导航区域内查找文本节点 findTextNodes(headerArea); // 替换找到的文本节点 textNodes.forEach(node => { const text = node.textContent.trim(); if (text === 'Spaces') { node.textContent = node.textContent.replace(/Spaces/g, 'OCR模型免费转Markdown'); } else if (text === 'Posts') { // 删除Posts文本节点 if (node.parentNode) { node.parentNode.removeChild(node); } } else if (text === 'Enterprise') { // 删除Enterprise文本节点 if (node.parentNode) { node.parentNode.removeChild(node); } } }); // 标记已替换完成 window._navLinksReplaced = true; } // 替换代码区域中的域名 function replaceCodeDomains() { // 特别处理span.hljs-string和span.njs-string元素 document.querySelectorAll('span.hljs-string, span.njs-string, span[class*="hljs-string"], span[class*="njs-string"]').forEach(span => { if (span.textContent && span.textContent.includes('huggingface.co')) { span.textContent = span.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 替换hljs-string类的span中的域名(移除多余的转义符号) document.querySelectorAll('span.hljs-string, span[class*="hljs-string"]').forEach(span => { if (span.textContent && span.textContent.includes('huggingface.co')) { span.textContent = span.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 替换pre和code标签中包含git clone命令的域名 document.querySelectorAll('pre, code').forEach(element => { if (element.textContent && element.textContent.includes('git clone')) { const text = element.innerHTML; if (text.includes('huggingface.co')) { element.innerHTML = text.replace(/huggingface.co/g, 'aifasthub.com'); } } }); // 处理特定的命令行示例 document.querySelectorAll('pre, code').forEach(element => { const text = element.innerHTML; if (text.includes('huggingface.co')) { // 针对git clone命令的专门处理 if (text.includes('git clone') || text.includes('GIT_LFS_SKIP_SMUDGE=1')) { element.innerHTML = text.replace(/huggingface.co/g, 'aifasthub.com'); } } }); // 特别处理模型下载页面上的代码片段 document.querySelectorAll('.flex.border-t, .svelte_hydrator, .inline-block').forEach(container => { const content = container.innerHTML; if (content && content.includes('huggingface.co')) { container.innerHTML = content.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 特别处理模型仓库克隆对话框中的代码片段 try { // 查找包含"Clone this model repository"标题的对话框 const cloneDialog = document.querySelector('.svelte_hydration_boundary, [data-target="MainHeader"]'); if (cloneDialog) { // 查找对话框中所有的代码片段和命令示例 const codeElements = cloneDialog.querySelectorAll('pre, code, span'); codeElements.forEach(element => { if (element.textContent && element.textContent.includes('huggingface.co')) { if (element.innerHTML.includes('huggingface.co')) { element.innerHTML = element.innerHTML.replace(/huggingface.co/g, 'aifasthub.com'); } else { element.textContent = element.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } } }); } // 更精确地定位克隆命令中的域名 document.querySelectorAll('[data-target]').forEach(container => { const codeBlocks = container.querySelectorAll('pre, code, span.hljs-string'); codeBlocks.forEach(block => { if (block.textContent && block.textContent.includes('huggingface.co')) { if (block.innerHTML.includes('huggingface.co')) { block.innerHTML = block.innerHTML.replace(/huggingface.co/g, 'aifasthub.com'); } else { block.textContent = block.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } } }); }); } catch (e) { // 错误处理但不打印日志 } } // 当DOM加载完成后执行替换 if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', () => { replaceHeaderBranding(); replaceNavigationLinks(); replaceCodeDomains(); // 只在必要时执行替换 - 3秒后再次检查 setTimeout(() => { if (!window._navLinksReplaced) { console.log('[Client] 3秒后重新检查导航链接'); replaceNavigationLinks(); } }, 3000); }); } else { replaceHeaderBranding(); replaceNavigationLinks(); replaceCodeDomains(); // 只在必要时执行替换 - 3秒后再次检查 setTimeout(() => { if (!window._navLinksReplaced) { console.log('[Client] 3秒后重新检查导航链接'); replaceNavigationLinks(); } }, 3000); } // 增加一个MutationObserver来处理可能的动态元素加载 const observer = new MutationObserver(mutations => { // 检查是否导航区域有变化 const hasNavChanges = mutations.some(mutation => { // 检查是否存在header或nav元素变化 return Array.from(mutation.addedNodes).some(node => { if (node.nodeType === Node.ELEMENT_NODE) { // 检查是否是导航元素或其子元素 if (node.tagName === 'HEADER' || node.tagName === 'NAV' || node.querySelector('header, nav')) { return true; } // 检查是否在导航元素内部 let parent = node.parentElement; while (parent) { if (parent.tagName === 'HEADER' || parent.tagName === 'NAV') { return true; } parent = parent.parentElement; } } return false; }); }); // 只在导航区域有变化时执行替换 if (hasNavChanges) { // 重置替换状态,允许再次替换 window._navLinksReplaced = false; replaceHeaderBranding(); replaceNavigationLinks(); } }); // 开始观察document.body的变化,包括子节点 if (document.body) { observer.observe(document.body, { childList: true, subtree: true }); } else { document.addEventListener('DOMContentLoaded', () => { observer.observe(document.body, { childList: true, subtree: true }); }); } })(); \n"},"repo_name":{"kind":"string","value":"gkmlo/gdata-ruby-util"},"path":{"kind":"string","value":"doc/fr_method_index.html"},"language":{"kind":"string","value":"HTML"},"license":{"kind":"string","value":"apache-2.0"},"size":{"kind":"number","value":6104,"string":"6,104"}}},{"rowIdx":115086109,"cells":{"code":{"kind":"string","value":"package shingle\n\nimport (\n\t\"container/ring\"\n\t\"fmt\"\n\n\t\"github.com/blevesearch/bleve/analysis\"\n\t\"github.com/blevesearch/bleve/registry\"\n)\n\nconst Name = \"shingle\"\n\ntype ShingleFilter struct {\n\tmin int\n\tmax int\n\toutputOriginal bool\n\ttokenSeparator string\n\tfill string\n\tring *ring.Ring\n\titemsInRing int\n}\n\nfunc NewShingleFilter(min, max int, outputOriginal bool, sep, fill string) *ShingleFilter {\n\treturn &ShingleFilter{\n\t\tmin: min,\n\t\tmax: max,\n\t\toutputOriginal: outputOriginal,\n\t\ttokenSeparator: sep,\n\t\tfill: fill,\n\t\tring: ring.New(max),\n\t}\n}\n\nfunc (s *ShingleFilter) Filter(input analysis.TokenStream) analysis.TokenStream {\n\trv := make(analysis.TokenStream, 0, len(input))\n\n\tcurrentPosition := 0\n\tfor _, token := range input {\n\t\tif s.outputOriginal {\n\t\t\trv = append(rv, token)\n\t\t}\n\n\t\t// if there are gaps, insert filler tokens\n\t\toffset := token.Position - currentPosition\n\t\tfor offset > 1 {\n\t\t\tfillerToken := analysis.Token{\n\t\t\t\tPosition: 0,\n\t\t\t\tStart: -1,\n\t\t\t\tEnd: -1,\n\t\t\t\tType: analysis.AlphaNumeric,\n\t\t\t\tTerm: []byte(s.fill),\n\t\t\t}\n\t\t\ts.ring.Value = &fillerToken\n\t\t\tif s.itemsInRing < s.max {\n\t\t\t\ts.itemsInRing++\n\t\t\t}\n\t\t\trv = append(rv, s.shingleCurrentRingState()...)\n\t\t\ts.ring = s.ring.Next()\n\t\t\toffset--\n\t\t}\n\t\tcurrentPosition = token.Position\n\n\t\ts.ring.Value = token\n\t\tif s.itemsInRing < s.max {\n\t\t\ts.itemsInRing++\n\t\t}\n\t\trv = append(rv, s.shingleCurrentRingState()...)\n\t\ts.ring = s.ring.Next()\n\n\t}\n\n\treturn rv\n}\n\nfunc (s *ShingleFilter) shingleCurrentRingState() analysis.TokenStream {\n\trv := make(analysis.TokenStream, 0)\n\tfor shingleN := s.min; shingleN <= s.max; shingleN++ {\n\t\t// if there are enough items in the ring\n\t\t// to produce a shingle of this size\n\t\tif s.itemsInRing >= shingleN {\n\t\t\tthisShingleRing := s.ring.Move(-(shingleN - 1))\n\t\t\tshingledBytes := make([]byte, 0)\n\t\t\tpos := 0\n\t\t\tstart := -1\n\t\t\tend := 0\n\t\t\tfor i := 0; i < shingleN; i++ {\n\t\t\t\tif i != 0 {\n\t\t\t\t\tshingledBytes = append(shingledBytes, []byte(s.tokenSeparator)...)\n\t\t\t\t}\n\t\t\t\tcurr := thisShingleRing.Value.(*analysis.Token)\n\t\t\t\tif pos == 0 && curr.Position != 0 {\n\t\t\t\t\tpos = curr.Position\n\t\t\t\t}\n\t\t\t\tif start == -1 && curr.Start != -1 {\n\t\t\t\t\tstart = curr.Start\n\t\t\t\t}\n\t\t\t\tif curr.End != -1 {\n\t\t\t\t\tend = curr.End\n\t\t\t\t}\n\t\t\t\tshingledBytes = append(shingledBytes, curr.Term...)\n\t\t\t\tthisShingleRing = thisShingleRing.Next()\n\t\t\t}\n\t\t\ttoken := analysis.Token{\n\t\t\t\tType: analysis.Shingle,\n\t\t\t\tTerm: shingledBytes,\n\t\t\t}\n\t\t\tif pos != 0 {\n\t\t\t\ttoken.Position = pos\n\t\t\t}\n\t\t\tif start != -1 {\n\t\t\t\ttoken.Start = start\n\t\t\t}\n\t\t\tif end != -1 {\n\t\t\t\ttoken.End = end\n\t\t\t}\n\t\t\trv = append(rv, &token)\n\t\t}\n\t}\n\treturn rv\n}\n\nfunc ShingleFilterConstructor(config map[string]interface{}, cache *registry.Cache) (analysis.TokenFilter, error) {\n\tminVal, ok := config[\"min\"].(float64)\n\tif !ok {\n\t\treturn nil, fmt.Errorf(\"must specify min\")\n\t}\n\tmin := int(minVal)\n\tmaxVal, ok := config[\"max\"].(float64)\n\tif !ok {\n\t\treturn nil, fmt.Errorf(\"must specify max\")\n\t}\n\tmax := int(maxVal)\n\n\toutputOriginal := false\n\toutVal, ok := config[\"output_original\"].(bool)\n\tif ok {\n\t\toutputOriginal = outVal\n\t}\n\n\tsep := \" \"\n\tsepVal, ok := config[\"separator\"].(string)\n\tif ok {\n\t\tsep = sepVal\n\t}\n\n\tfill := \"_\"\n\tfillVal, ok := config[\"filler\"].(string)\n\tif ok {\n\t\tfill = fillVal\n\t}\n\n\treturn NewShingleFilter(min, max, outputOriginal, sep, fill), nil\n}\n\nfunc init() {\n\tregistry.RegisterTokenFilter(Name, ShingleFilterConstructor)\n}\n"},"repo_name":{"kind":"string","value":"pmezard/bleve"},"path":{"kind":"string","value":"analysis/token_filters/shingle/shingle.go"},"language":{"kind":"string","value":"GO"},"license":{"kind":"string","value":"apache-2.0"},"size":{"kind":"number","value":3459,"string":"3,459"}}},{"rowIdx":115086110,"cells":{"code":{"kind":"string","value":"// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.\n\nusing System;\nusing System.Linq;\nusing System.IO;\nusing Roslyn.Test.Utilities;\nusing Microsoft.CodeAnalysis.Test.Utilities;\nusing Xunit;\nusing Microsoft.CodeAnalysis;\nusing System.Collections.Immutable;\nusing Roslyn.Utilities;\nusing System.Runtime.InteropServices;\nusing System.Globalization;\n\nnamespace Microsoft.CodeAnalysis.Scripting.Hosting.UnitTests\n{\n // TODO: clean up and move to portable tests\n\n public class MetadataShadowCopyProviderTests : TestBase\n {\n private readonly MetadataShadowCopyProvider _provider;\n\n private static readonly ImmutableArray s_systemNoShadowCopyDirectories = ImmutableArray.Create(\n FileUtilities.NormalizeDirectoryPath(Environment.GetFolderPath(Environment.SpecialFolder.Windows)),\n FileUtilities.NormalizeDirectoryPath(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles)),\n FileUtilities.NormalizeDirectoryPath(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86)),\n FileUtilities.NormalizeDirectoryPath(RuntimeEnvironment.GetRuntimeDirectory()));\n\n public MetadataShadowCopyProviderTests()\n {\n _provider = CreateProvider(CultureInfo.InvariantCulture);\n }\n\n private static MetadataShadowCopyProvider CreateProvider(CultureInfo culture)\n {\n return new MetadataShadowCopyProvider(TempRoot.Root, s_systemNoShadowCopyDirectories, culture);\n }\n\n public override void Dispose()\n {\n _provider.Dispose();\n Assert.False(Directory.Exists(_provider.ShadowCopyDirectory), \"Shadow copy directory should have been deleted\");\n base.Dispose();\n }\n\n [Fact]\n public void Errors()\n {\n Assert.Throws(() => _provider.NeedsShadowCopy(null));\n Assert.Throws(() => _provider.NeedsShadowCopy(\"c:goo.dll\"));\n Assert.Throws(() => _provider.NeedsShadowCopy(\"bar.dll\"));\n Assert.Throws(() => _provider.NeedsShadowCopy(@\"\\bar.dll\"));\n Assert.Throws(() => _provider.NeedsShadowCopy(@\"../bar.dll\"));\n\n Assert.Throws(() => _provider.SuppressShadowCopy(null));\n Assert.Throws(() => _provider.SuppressShadowCopy(\"c:goo.dll\"));\n Assert.Throws(() => _provider.SuppressShadowCopy(\"bar.dll\"));\n Assert.Throws(() => _provider.SuppressShadowCopy(@\"\\bar.dll\"));\n Assert.Throws(() => _provider.SuppressShadowCopy(@\"../bar.dll\"));\n\n Assert.Throws(() => _provider.GetMetadataShadowCopy(@\"c:\\goo.dll\", (MetadataImageKind)Byte.MaxValue));\n Assert.Throws(() => _provider.GetMetadataShadowCopy(null, MetadataImageKind.Assembly));\n Assert.Throws(() => _provider.GetMetadataShadowCopy(\"c:goo.dll\", MetadataImageKind.Assembly));\n Assert.Throws(() => _provider.GetMetadataShadowCopy(\"bar.dll\", MetadataImageKind.Assembly));\n Assert.Throws(() => _provider.GetMetadataShadowCopy(@\"\\bar.dll\", MetadataImageKind.Assembly));\n Assert.Throws(() => _provider.GetMetadataShadowCopy(@\"../bar.dll\", MetadataImageKind.Assembly));\n\n Assert.Throws(() => _provider.GetMetadata(@\"c:\\goo.dll\", (MetadataImageKind)Byte.MaxValue));\n Assert.Throws(() => _provider.GetMetadata(null, MetadataImageKind.Assembly));\n Assert.Throws(() => _provider.GetMetadata(\"c:goo.dll\", MetadataImageKind.Assembly));\n }\n\n [Fact]\n public void Copy()\n {\n var dir = Temp.CreateDirectory();\n var dll = dir.CreateFile(\"a.dll\").WriteAllBytes(TestResources.MetadataTests.InterfaceAndClass.CSClasses01);\n var doc = dir.CreateFile(\"a.xml\").WriteAllText(\"\");\n\n var sc1 = _provider.GetMetadataShadowCopy(dll.Path, MetadataImageKind.Assembly);\n var sc2 = _provider.GetMetadataShadowCopy(dll.Path, MetadataImageKind.Assembly);\n Assert.Equal(sc2, sc1);\n Assert.Equal(dll.Path, sc1.PrimaryModule.OriginalPath);\n Assert.NotEqual(dll.Path, sc1.PrimaryModule.FullPath);\n\n Assert.False(sc1.Metadata.IsImageOwner, \"Copy expected\");\n\n Assert.Equal(File.ReadAllBytes(dll.Path), File.ReadAllBytes(sc1.PrimaryModule.FullPath));\n Assert.Equal(File.ReadAllBytes(doc.Path), File.ReadAllBytes(sc1.DocumentationFile.FullPath));\n }\n\n [Fact]\n public void SuppressCopy1()\n {\n var dll = Temp.CreateFile().WriteAllText(\"blah\");\n\n _provider.SuppressShadowCopy(dll.Path);\n\n var sc1 = _provider.GetMetadataShadowCopy(dll.Path, MetadataImageKind.Assembly);\n Assert.Null(sc1);\n }\n\n [Fact]\n public void SuppressCopy_Framework()\n {\n // framework assemblies not copied:\n string mscorlib = typeof(object).Assembly.Location;\n var sc2 = _provider.GetMetadataShadowCopy(mscorlib, MetadataImageKind.Assembly);\n Assert.Null(sc2);\n }\n\n [Fact]\n public void SuppressCopy_ShadowCopyDirectory()\n {\n // shadow copies not copied:\n var dll = Temp.CreateFile(\"a.dll\").WriteAllBytes(TestResources.MetadataTests.InterfaceAndClass.CSClasses01);\n\n // copy:\n var sc1 = _provider.GetMetadataShadowCopy(dll.Path, MetadataImageKind.Assembly);\n Assert.NotEqual(dll.Path, sc1.PrimaryModule.FullPath);\n\n // file not copied:\n var sc2 = _provider.GetMetadataShadowCopy(sc1.PrimaryModule.FullPath, MetadataImageKind.Assembly);\n Assert.Null(sc2);\n }\n\n [Fact]\n public void Modules()\n {\n // modules: { MultiModule.dll, mod2.netmodule, mod3.netmodule }\n var dir = Temp.CreateDirectory();\n string path0 = dir.CreateFile(\"MultiModule.dll\").WriteAllBytes(TestResources.SymbolsTests.MultiModule.MultiModuleDll).Path;\n string path1 = dir.CreateFile(\"mod2.netmodule\").WriteAllBytes(TestResources.SymbolsTests.MultiModule.mod2).Path;\n string path2 = dir.CreateFile(\"mod3.netmodule\").WriteAllBytes(TestResources.SymbolsTests.MultiModule.mod3).Path;\n\n var metadata1 = _provider.GetMetadata(path0, MetadataImageKind.Assembly) as AssemblyMetadata;\n Assert.NotNull(metadata1);\n Assert.Equal(3, metadata1.GetModules().Length);\n\n var scDir = Directory.GetFileSystemEntries(_provider.ShadowCopyDirectory).Single();\n Assert.True(Directory.Exists(scDir));\n\n var scFiles = Directory.GetFileSystemEntries(scDir);\n AssertEx.SetEqual(new[] { \"MultiModule.dll\", \"mod2.netmodule\", \"mod3.netmodule\" }, scFiles.Select(p => Path.GetFileName(p)));\n\n foreach (var sc in scFiles)\n {\n Assert.True(_provider.IsShadowCopy(sc));\n\n // files should be locked:\n Assert.Throws(() => File.Delete(sc));\n }\n\n // should get the same metadata:\n var metadata2 = _provider.GetMetadata(path0, MetadataImageKind.Assembly) as AssemblyMetadata;\n Assert.Same(metadata1, metadata2);\n\n // modify the file:\n File.SetLastWriteTimeUtc(path0, DateTime.Now + TimeSpan.FromHours(1));\n\n // we get an updated image if we ask again:\n var modifiedMetadata3 = _provider.GetMetadata(path0, MetadataImageKind.Assembly) as AssemblyMetadata;\n Assert.NotSame(modifiedMetadata3, metadata2);\n\n // the file has been modified - we get new metadata:\n for (int i = 0; i < metadata2.GetModules().Length; i++)\n {\n Assert.NotSame(metadata2.GetModules()[i], modifiedMetadata3.GetModules()[i]);\n }\n }\n\n [Fact]\n public unsafe void DisposalOnFailure()\n {\n var f0 = Temp.CreateFile().WriteAllText(\"bogus\").Path;\n Assert.Throws(() => _provider.GetMetadata(f0, MetadataImageKind.Assembly));\n\n string f1 = Temp.CreateFile().WriteAllBytes(TestResources.SymbolsTests.MultiModule.MultiModuleDll).Path;\n Assert.Throws(() => _provider.GetMetadata(f1, MetadataImageKind.Assembly));\n }\n\n [Fact]\n public void GetMetadata()\n {\n var dir = Temp.CreateDirectory();\n var dll = dir.CreateFile(\"a.dll\").WriteAllBytes(TestResources.MetadataTests.InterfaceAndClass.CSClasses01);\n var doc = dir.CreateFile(\"a.xml\").WriteAllText(\"\");\n\n var sc1 = _provider.GetMetadataShadowCopy(dll.Path, MetadataImageKind.Assembly);\n var sc2 = _provider.GetMetadataShadowCopy(dll.Path, MetadataImageKind.Assembly);\n\n var md1 = _provider.GetMetadata(dll.Path, MetadataImageKind.Assembly);\n Assert.NotNull(md1);\n Assert.Equal(MetadataImageKind.Assembly, md1.Kind);\n\n // This needs to be in different folder from referencesdir to cause the other code path \n // to be triggered for NeedsShadowCopy method\n var dir2 = Path.GetTempPath();\n string dll2 = Path.Combine(dir2, \"a2.dll\");\n File.WriteAllBytes(dll2, TestResources.MetadataTests.InterfaceAndClass.CSClasses01);\n\n Assert.Equal(1, _provider.CacheSize);\n var sc3a = _provider.GetMetadataShadowCopy(dll2, MetadataImageKind.Module);\n Assert.Equal(2, _provider.CacheSize);\n }\n\n [Fact]\n public void XmlDocComments_SpecificCulture()\n {\n var elGR = CultureInfo.GetCultureInfo(\"el-GR\");\n var arMA = CultureInfo.GetCultureInfo(\"ar-MA\");\n\n var dir = Temp.CreateDirectory();\n var dll = dir.CreateFile(\"a.dll\").WriteAllBytes(TestResources.MetadataTests.InterfaceAndClass.CSClasses01);\n var docInvariant = dir.CreateFile(\"a.xml\").WriteAllText(\"Invariant\");\n var docGreek = dir.CreateDirectory(elGR.Name).CreateFile(\"a.xml\").WriteAllText(\"Greek\");\n\n // invariant culture\n var provider = CreateProvider(CultureInfo.InvariantCulture);\n var sc = provider.GetMetadataShadowCopy(dll.Path, MetadataImageKind.Assembly);\n Assert.Equal(Path.Combine(Path.GetDirectoryName(sc.PrimaryModule.FullPath), @\"a.xml\"), sc.DocumentationFile.FullPath);\n Assert.Equal(\"Invariant\", File.ReadAllText(sc.DocumentationFile.FullPath));\n\n // Greek culture\n provider = CreateProvider(elGR);\n sc = provider.GetMetadataShadowCopy(dll.Path, MetadataImageKind.Assembly);\n Assert.Equal(Path.Combine(Path.GetDirectoryName(sc.PrimaryModule.FullPath), @\"el-GR\\a.xml\"), sc.DocumentationFile.FullPath);\n Assert.Equal(\"Greek\", File.ReadAllText(sc.DocumentationFile.FullPath));\n\n // Arabic culture (culture specific docs not found, use invariant)\n provider = CreateProvider(arMA);\n sc = provider.GetMetadataShadowCopy(dll.Path, MetadataImageKind.Assembly);\n Assert.Equal(Path.Combine(Path.GetDirectoryName(sc.PrimaryModule.FullPath), @\"a.xml\"), sc.DocumentationFile.FullPath);\n Assert.Equal(\"Invariant\", File.ReadAllText(sc.DocumentationFile.FullPath));\n\n // no culture:\n provider = CreateProvider(null);\n sc = provider.GetMetadataShadowCopy(dll.Path, MetadataImageKind.Assembly);\n Assert.Null(sc.DocumentationFile);\n }\n }\n}\n"},"repo_name":{"kind":"string","value":"lorcanmooney/roslyn"},"path":{"kind":"string","value":"src/Scripting/CoreTest.Desktop/MetadataShadowCopyProviderTests.cs"},"language":{"kind":"string","value":"C#"},"license":{"kind":"string","value":"apache-2.0"},"size":{"kind":"number","value":12063,"string":"12,063"}}},{"rowIdx":115086111,"cells":{"code":{"kind":"string","value":"\n * @author לערי ריינהארט\n * @author రహ్మానుద్దీన్\n * @author రాకేశ్వర\n * @author వైజాసత్య\n */\n\n$namespaceNames = array(\n\tNS_MEDIA => 'మీడియా',\n\tNS_SPECIAL => 'ప్రత్యేక',\n\tNS_TALK => 'చర్చ',\n\tNS_USER => 'వాడుకరి',\n\tNS_USER_TALK => 'వాడుకరి_చర్చ',\n\tNS_PROJECT_TALK => '$1_చర్చ',\n\tNS_FILE => 'దస్త్రం',\n\tNS_FILE_TALK => 'దస్త్రంపై_చర్చ',\n\tNS_MEDIAWIKI => 'మీడియావికీ',\n\tNS_MEDIAWIKI_TALK => 'మీడియావికీ_చర్చ',\n\tNS_TEMPLATE => 'మూస',\n\tNS_TEMPLATE_TALK => 'మూస_చర్చ',\n\tNS_HELP => 'సహాయం',\n\tNS_HELP_TALK => 'సహాయం_చర్చ',\n\tNS_CATEGORY => 'వర్గం',\n\tNS_CATEGORY_TALK => 'వర్గం_చర్చ',\n);\n\n$namespaceAliases = array(\n\t'సభ్యులు' => NS_USER,\n\t'సభ్యులపై_చర్చ' => NS_USER_TALK,\n\t'సభ్యుడు' => NS_USER, # set for bug 11615\n\t'సభ్యునిపై_చర్చ' => NS_USER_TALK,\n\t'బొమ్మ' => NS_FILE,\n\t'బొమ్మపై_చర్చ' => NS_FILE_TALK,\n\t'ఫైలు' => NS_FILE,\n\t'ఫైలుపై_చర్చ' => NS_FILE_TALK,\n\t'సహాయము' => NS_HELP,\n\t'సహాయము_చర్చ' => NS_HELP_TALK,\n);\n\n$specialPageAliases = array(\n\t'Allmessages' => array( 'అన్నిసందేశాలు' ),\n\t'Allpages' => array( 'అన్నిపేజీలు' ),\n\t'Ancientpages' => array( 'పురాతనపేజీలు' ),\n\t'Blankpage' => array( 'ఖాళీపేజి' ),\n\t'Block' => array( 'అడ్డగించు', 'ఐపినిఅడ్డగించు', 'వాడుకరినిఅడ్డగించు' ),\n\t'Blockme' => array( 'నన్నుఅడ్డగించు' ),\n\t'Booksources' => array( 'పుస్తకమూలాలు' ),\n\t'BrokenRedirects' => array( 'తెగిపోయినదారిమార్పులు' ),\n\t'Categories' => array( 'వర్గాలు' ),\n\t'ChangePassword' => array( 'సంకేతపదముమార్చు' ),\n\t'Confirmemail' => array( 'ఈమెయిలుధ్రువపరచు' ),\n\t'CreateAccount' => array( 'ఖాతాసృష్టించు' ),\n\t'Deadendpages' => array( 'అగాధపేజీలు' ),\n\t'Disambiguations' => array( 'అయోమయనివృత్తి' ),\n\t'DoubleRedirects' => array( 'రెండుసార్లుదారిమార్పు' ),\n\t'Emailuser' => array( 'వాడుకరికిఈమెయిలుచెయ్యి' ),\n\t'Export' => array( 'ఎగుమతి' ),\n\t'Fewestrevisions' => array( 'అతితక్కువకూర్పులు' ),\n\t'Import' => array( 'దిగుమతి' ),\n\t'Listfiles' => array( 'ఫైళ్లజాబితా', 'బొమ్మలజాబితా' ),\n\t'Listgrouprights' => array( 'గుంపుహక్కులజాబితా', 'వాడుకరులగుంపుహక్కులు' ),\n\t'Listusers' => array( 'వాడుకరులజాబితా' ),\n\t'Log' => array( 'చిట్టా', 'చిట్టాలు' ),\n\t'Lonelypages' => array( 'ఒంటరిపేజీలు', 'అనాధపేజీలు' ),\n\t'Longpages' => array( 'పొడుగుపేజీలు' ),\n\t'MergeHistory' => array( 'చరిత్రనువిలీనంచేయి' ),\n\t'Mostcategories' => array( 'ఎక్కువవర్గములు' ),\n\t'Mostrevisions' => array( 'ఎక్కువకూర్పులు' ),\n\t'Movepage' => array( 'వ్యాసమునుతరలించు' ),\n\t'Mycontributions' => array( 'నా_మార్పులు-చేర్పులు' ),\n\t'Mypage' => array( 'నాపేజీ' ),\n\t'Mytalk' => array( 'నాచర్చ' ),\n\t'Newimages' => array( 'కొత్తఫైళ్లు', 'కొత్తబొమ్మలు' ),\n\t'Newpages' => array( 'కొత్తపేజీలు' ),\n\t'Popularpages' => array( 'ప్రాచుర్యంపొందినపేజీలు' ),\n\t'Preferences' => array( 'అభిరుచులు' ),\n\t'Protectedpages' => array( 'సంరక్షితపేజీలు' ),\n\t'Randompage' => array( 'యాదృచ్చికపేజీ' ),\n\t'Randomredirect' => array( 'యాదుచ్చికదారిమార్పు' ),\n\t'Recentchanges' => array( 'ఇటీవలిమార్పులు' ),\n\t'Recentchangeslinked' => array( 'చివరిమార్పులలింకులు', 'సంబంధితమార్పులు' ),\n\t'Revisiondelete' => array( 'కూర్పుతొలగించు' ),\n\t'Search' => array( 'అన్వేషణ' ),\n\t'Shortpages' => array( 'చిన్నపేజీలు' ),\n\t'Specialpages' => array( 'ప్రత్యేకపేజీలు' ),\n\t'Statistics' => array( 'గణాంకాలు' ),\n\t'Uncategorizedcategories' => array( 'వర్గీకరించనివర్గములు' ),\n\t'Uncategorizedimages' => array( 'వర్గీకరించనిఫైళ్లు', 'వర్గీకరించనిబొమ్మలు' ),\n\t'Uncategorizedpages' => array( 'వర్గీకరించనిపేజీలు' ),\n\t'Uncategorizedtemplates' => array( 'వర్గీకరించనిమూసలు' ),\n\t'Unusedcategories' => array( 'వాడనివర్గములు' ),\n\t'Unusedimages' => array( 'వాడనిఫైళ్లు', 'వాడనిబొమ్మలు' ),\n\t'Unusedtemplates' => array( 'వాడనిమూసలు' ),\n\t'Unwatchedpages' => array( 'వీక్షించనిపేజీలు' ),\n\t'Upload' => array( 'ఎక్కింపు' ),\n\t'Userlogin' => array( 'వాడుకరిప్రవేశం' ),\n\t'Userlogout' => array( 'వాడుకరినిష్క్రమణ' ),\n\t'Userrights' => array( 'వాడుకరిహక్కులు' ),\n\t'Version' => array( 'కూర్పు' ),\n\t'Wantedcategories' => array( 'కోరినవర్గాలు' ),\n\t'Wantedfiles' => array( 'అవసరమైనఫైళ్లు' ),\n\t'Wantedpages' => array( 'అవసరమైనపేజీలు', 'విరిగిపోయినలింకులు' ),\n\t'Wantedtemplates' => array( 'అవసరమైననమూనాలు' ),\n\t'Watchlist' => array( 'వీక్షణజాబితా' ),\n\t'Whatlinkshere' => array( 'ఇక్కడికిలింకున్నపేజీలు' ),\n\t'Withoutinterwiki' => array( 'అంతరవికీలేకుండా' ),\n);\n\n$magicWords = array(\n\t'redirect' => array( '0', '#దారిమార్పు', '#REDIRECT' ),\n\t'notoc' => array( '0', '__విషయసూచికవద్దు__', '__NOTOC__' ),\n\t'toc' => array( '0', '__విషయసూచిక__', '__TOC__' ),\n\t'pagename' => array( '1', 'పేజీపేరు', 'PAGENAME' ),\n\t'img_right' => array( '1', 'కుడి', 'right' ),\n\t'img_left' => array( '1', 'ఎడమ', 'left' ),\n\t'special' => array( '0', 'ప్రత్యేక', 'special' ),\n);\n\n$linkTrail = \"/^([\\xE0\\xB0\\x81-\\xE0\\xB1\\xAF]+)(.*)$/sDu\";\n\n$digitGroupingPattern = \"##,##,###\";\n\n$messages = array(\n# User preference toggles\n'tog-underline' => 'లంకె క్రీగీత:',\n'tog-justify' => 'పేరాలను ఇరు పక్కలా సమానంగా సర్దు',\n'tog-hideminor' => 'ఇటీవలి మార్పులలో చిన్న మార్పులను దాచిపెట్టు',\n'tog-hidepatrolled' => 'ఇటీవలి మార్పులలో నిఘా ఉన్న మార్పులను దాచిపెట్టు',\n'tog-newpageshidepatrolled' => 'కొత్త పేజీల జాబితా నుంచి నిఘా ఉన్న పేజీలను దాచిపెట్టు',\n'tog-extendwatchlist' => 'కేవలం ఇటీవలి మార్పులే కాక, మార్పులన్నీ చూపించటానికి నా వీక్షణా జాబితాను పెద్దది చేయి',\n'tog-usenewrc' => 'ఇటీవలి మార్పులు మరియు విక్షణ జాబితాలలో మార్పులను పేజీ వారిగా చూపించు (జావాస్క్రిప్టు అవసరం)',\n'tog-numberheadings' => 'శీర్షికలకు ఆటోమాటిక్‌గా వరుస సంఖ్యలు పెట్టు',\n'tog-showtoolbar' => 'దిద్దుబాట్లు చేసేటప్పుడు, అందుకు సహాయపడే పరికరాలపెట్టెను చూపించు (జావాస్క్రిప్టు)',\n'tog-editondblclick' => 'డబుల్‌ క్లిక్కు చేసినప్పుడు పేజీని మార్చు (జావాస్క్రిప్టు)',\n'tog-editsection' => '[మార్చు] లింకు ద్వారా విభాగం మార్పు కావాలి',\n'tog-editsectiononrightclick' => 'విభాగం పేరు మీద కుడి క్లిక్కుతో విభాగం మార్పు కావాలి (జావాస్క్రిప్టు)',\n'tog-showtoc' => 'విషయసూచిక చూపించు (3 కంటే ఎక్కువ శీర్షికలున్న పేజీలకు)',\n'tog-rememberpassword' => 'ఈ విహారిణిలో నా ప్రవేశాన్ని గుర్తుంచుకో (గరిష్ఠంగా $1 {{PLURAL:$1|రోజు|రోజుల}}కి)',\n'tog-watchcreations' => 'నేను సృష్టించే పేజీలను మరియు దస్త్రాలను నా వీక్షణ జాబితాకు చేర్చు',\n'tog-watchdefault' => 'నేను మార్చే పేజీలను మరియు దస్త్రాలను నా వీక్షణ జాబితాకు చేర్చు',\n'tog-watchmoves' => 'నేను తరలించిన పేజీలను దస్త్రాలను నా వీక్షణ జాబితాకు చేర్చు',\n'tog-watchdeletion' => 'నేను తొలగించిన పేజీలను దస్త్రాలను నా వీక్షణ జాబితాకు చేర్చు',\n'tog-minordefault' => 'ప్రత్యేకంగా తెలుపనంతవరకూ నా మార్పులను చిన్న మార్పులుగా గుర్తించు',\n'tog-previewontop' => 'వ్యాసం మార్పుల తరువాత ఎలావుంటుందో మార్పుల‌ బాక్సుకు పైన చూపు',\n'tog-previewonfirst' => 'దిద్దిబాట్లు చేసిన వ్యాసాన్ని భద్రపరిచే ముందు ఎలా వుంటుందో ఒకసారి చూపించు',\n'tog-nocache' => 'విహారిణిలో పుటల కాషింగుని అచేతనంచేయి',\n'tog-enotifwatchlistpages' => 'నా వీక్షణాజాబితా లోని పేజీ లేదా దస్త్రం మారినపుడు నాకు ఈ-మెయిలు పంపించు',\n'tog-enotifusertalkpages' => 'నా చర్చా పేజీలో మార్పులు జరిగినపుడు నాకు ఈ-మెయిలు పంపించు',\n'tog-enotifminoredits' => 'పేజీలు మరియు దస్త్రాలకు జరిగే చిన్న మార్పులకు కూడా నాకు ఈ-మెయిలును పంపించు',\n'tog-enotifrevealaddr' => 'గమనింపు మెయిళ్ళలో నా ఈ-మెయిలు చిరునామాను చూపించు',\n'tog-shownumberswatching' => 'వీక్షకుల సంఖ్యను చూపించు',\n'tog-oldsig' => 'ప్రస్తుత సంతకం:',\n'tog-fancysig' => 'సంతకాన్ని వికీపాఠ్యంగా తీసుకో (ఆటోమెటిక్‌ లింకు లేకుండా)',\n'tog-uselivepreview' => 'రాస్తున్నదానిని ఎప్పటికప్పుడు సరిచూడండి (జావాస్క్రిప్టు) (పరీక్షాదశలో ఉంది)',\n'tog-forceeditsummary' => 'దిద్దుబాటు సారాంశం ఖాళీగా ఉంటే ఆ విషయాన్ని నాకు సూచించు',\n'tog-watchlisthideown' => 'నా మార్పులను వీక్షణా జాబితాలో చూపించొద్దు',\n'tog-watchlisthidebots' => 'బాట్లు చేసిన మార్పులను నా వీక్షణా జాబితాలో చూపించొద్దు',\n'tog-watchlisthideminor' => 'చిన్న మార్పులను నా వీక్షణా జాబితాలో చూపించొద్దు',\n'tog-watchlisthideliu' => 'ప్రవేశించిన వాడుకరుల మార్పులను వీక్షణా జాబితాలో చూపించకు',\n'tog-watchlisthideanons' => 'అజ్ఞాత వాడుకరుల మార్పులను విక్షణా జాబితాలో చూపించకు',\n'tog-watchlisthidepatrolled' => 'నిఘా ఉన్న మార్పులను వీక్షణజాబితా నుంచి దాచిపెట్టు',\n'tog-ccmeonemails' => 'నేను ఇతర వాడుకరులకు పంపించే ఈ-మెయిళ్ల కాపీలను నాకు కూడా పంపు',\n'tog-diffonly' => 'తేడాలను చూపిస్తున్నపుడు, కింద చూపించే పేజీలోని సమాచారాన్ని చూపించొద్దు',\n'tog-showhiddencats' => 'దాచిన వర్గాలను చూపించు',\n'tog-norollbackdiff' => 'రద్దు చేసాక తేడాలు చూపించవద్దు',\n'tog-useeditwarning' => 'ఏదైనా పేజీని నేను వదిలివెళ్తున్నప్పుడు దానిలో భద్రపరచని మార్పులు ఉంటే నన్ను హెచ్చరించు',\n\n'underline-always' => 'ఎల్లప్పుడూ',\n'underline-never' => 'ఎప్పటికీ వద్దు',\n'underline-default' => 'అలంకారపు లేదా విహారిణి అప్రమేయం',\n\n# Font style option in Special:Preferences\n'editfont-style' => 'దిద్దుబాటు పెట్టె ఫాంటు శైలి:',\n'editfont-default' => 'విహరిణి అప్రమేయం',\n'editfont-monospace' => 'మోనోస్పేసుడ్ ఫాంట్',\n'editfont-sansserif' => 'సాన్స్-సెరిఫ్ ఫాంటు',\n'editfont-serif' => 'సెరిఫ్ ఫాంటు',\n\n# Dates\n'sunday' => 'ఆదివారం',\n'monday' => 'సోమవారం',\n'tuesday' => 'మంగళవారం',\n'wednesday' => 'బుధవారం',\n'thursday' => 'గురువారం',\n'friday' => 'శుక్రవారం',\n'saturday' => 'శనివారం',\n'sun' => 'ఆది',\n'mon' => 'సోమ',\n'tue' => 'మంగళ',\n'wed' => 'బుధ',\n'thu' => 'గురు',\n'fri' => 'శుక్ర',\n'sat' => 'శని',\n'january' => 'జనవరి',\n'february' => 'ఫిబ్రవరి',\n'march' => 'మార్చి',\n'april' => 'ఏప్రిల్',\n'may_long' => 'మే',\n'june' => 'జూన్',\n'july' => 'జూలై',\n'august' => 'ఆగష్టు',\n'september' => 'సెప్టెంబరు',\n'october' => 'అక్టోబరు',\n'november' => 'నవంబరు',\n'december' => 'డిసెంబరు',\n'january-gen' => 'జనవరి',\n'february-gen' => 'ఫిబ్రవరి',\n'march-gen' => 'మార్చి',\n'april-gen' => 'ఏప్రిల్',\n'may-gen' => 'మే',\n'june-gen' => 'జూన్',\n'july-gen' => 'జూలై',\n'august-gen' => 'ఆగష్టు',\n'september-gen' => 'సెప్టెంబరు',\n'october-gen' => 'అక్టోబరు',\n'november-gen' => 'నవంబరు',\n'december-gen' => 'డిసెంబరు',\n'jan' => 'జన',\n'feb' => 'ఫిబ్ర',\n'mar' => 'మార్చి',\n'apr' => 'ఏప్రి',\n'may' => 'మే',\n'jun' => 'జూన్',\n'jul' => 'జూలై',\n'aug' => 'ఆగ',\n'sep' => 'సెప్టెం',\n'oct' => 'అక్టో',\n'nov' => 'నవం',\n'dec' => 'డిసెం',\n'january-date' => 'జనవరి $1',\n'february-date' => 'ఫిబ్రవరి $1',\n'march-date' => 'మార్చి $1',\n'april-date' => 'ఏప్రిల్ $1',\n'may-date' => 'మే $1',\n'june-date' => 'జూన్ $1',\n'july-date' => 'జూలై $1',\n'august-date' => 'ఆగస్టు $1',\n'september-date' => 'సెప్టెంబర్ $1',\n'october-date' => 'అక్టోబర్ $1',\n'november-date' => 'నవంబర్ $1',\n'december-date' => 'డిసెంబర్ $1',\n\n# Categories related messages\n'pagecategories' => '{{PLURAL:$1|వర్గం|వర్గాలు}}',\n'category_header' => '\"$1\" వర్గంలోని పుటలు',\n'subcategories' => 'ఉపవర్గాలు',\n'category-media-header' => '\"$1\" వర్గంలో ఉన్న మీడియా ఫైళ్లు',\n'category-empty' => \"''ప్రస్తుతం ఈ వర్గంలో ఎలాంటి పేజీలుగానీ మీడియా ఫైళ్లుగానీ లేవు.''\",\n'hidden-categories' => '{{PLURAL:$1|దాచిన వర్గం|దాచిన వర్గాలు}}',\n'hidden-category-category' => 'దాచిన వర్గాలు',\n'category-subcat-count' => '{{PLURAL:$2|ఈ వర్గంలో క్రింద చూపిస్తున్న ఒకే ఉపవర్గం ఉంది.|ఈ వర్గంలో ఉన్న మొత్తం $2 వర్గాలలో ప్రస్తుతం {{PLURAL:$1|ఒక ఉపవర్గాన్ని|$1 ఉపవర్గాలను}} చూపిస్తున్నాము.}}',\n'category-subcat-count-limited' => 'ఈ వర్గం క్రింద చూపిస్తున్న {{PLURAL:$1|ఒక ఉపవర్గం ఉంది|$1 ఉపవర్గాలు ఉన్నాయి}}.',\n'category-article-count' => '{{PLURAL:$2|ఈ వర్గంలో క్రింద చూపిస్తున్న ఒకే పేజీ ఉంది.|ఈ వర్గంలో ఉన్న మొత్తం $2 పేజీలలో ప్రస్తుతం {{PLURAL:$1|ఒక పేజీని|$1 పేజీలను}} చూపిస్తున్నాము.}}',\n'category-article-count-limited' => 'ఈ వర్గం క్రింద చూపిస్తున్న {{PLURAL:$1|ఒక పేజీ ఉంది|$1 పేజీలు ఉన్నాయి}}.',\n'category-file-count' => '{{PLURAL:$2|ఈ వర్గంలో క్రింద చూపిస్తున్న ఒకే ఫైలు ఉంది.|ఈ వర్గంలో ఉన్న మొత్తం $2 పేజీలలో ప్రస్తుతం {{PLURAL:$1|ఒక ఫైలును|$1 ఫైళ్లను}} చూపిస్తున్నాము.}}',\n'category-file-count-limited' => 'ఈ వర్గం క్రింద చూపిస్తున్న {{PLURAL:$1|ఒక ఫైలు ఉంది|$1 ఫైళ్లు ఉన్నాయి}}.',\n'listingcontinuesabbrev' => '(కొనసాగింపు)',\n'index-category' => 'సూచీకరించిన పేజీలు',\n'noindex-category' => 'సూచీకరించని పేజీలు',\n'broken-file-category' => 'తెగిపోయిన ఫైలులింకులు గల పేజీలు',\n\n'about' => 'గురించి',\n'article' => 'విషయపు పేజీ',\n'newwindow' => '(కొత్త కిటికీలో వస్తుంది)',\n'cancel' => 'రద్దు',\n'moredotdotdot' => 'ఇంకా...',\n'morenotlisted' => 'ఈ జాబితా సంపూర్ణం కాదు.',\n'mypage' => 'పుట',\n'mytalk' => 'చర్చ',\n'anontalk' => 'ఈ ఐ.పి.కి సంబంధించిన చర్చ',\n'navigation' => 'మార్గదర్శకం',\n'and' => '&#32;మరియు',\n\n# Cologne Blue skin\n'qbfind' => 'వెతుకు',\n'qbbrowse' => 'విహరించు',\n'qbedit' => 'సవరించు',\n'qbpageoptions' => 'ఈ పేజీ',\n'qbmyoptions' => 'నా పేజీలు',\n'qbspecialpages' => 'ప్రత్యేక పేజీలు',\n'faq' => 'తరచూ అడిగే ప్రశ్నలు',\n'faqpage' => 'Project:తరచూ అడిగే ప్రశ్నలు',\n\n# Vector skin\n'vector-action-addsection' => 'విషయాన్ని చేర్చు',\n'vector-action-delete' => 'తొలగించు',\n'vector-action-move' => 'తరలించు',\n'vector-action-protect' => 'సంరక్షించు',\n'vector-action-undelete' => 'తిరిగి చేర్చు',\n'vector-action-unprotect' => 'సంరక్షణను మార్చు',\n'vector-simplesearch-preference' => 'సరళమైన వెతుకుడు పట్టీని చేతనంచేయి (వెక్టర్ అలంకారానికి మాత్రమే)',\n'vector-view-create' => 'సృష్టించు',\n'vector-view-edit' => 'సవరించు',\n'vector-view-history' => 'చరిత్రను చూడండి',\n'vector-view-view' => 'చదువు',\n'vector-view-viewsource' => 'మూలాన్ని చూడండి',\n'actions' => 'పనులు',\n'namespaces' => 'పేరుబరులు',\n'variants' => 'రకరకాలు',\n\n'errorpagetitle' => 'పొరపాటు',\n'returnto' => 'తిరిగి $1కి.',\n'tagline' => '{{SITENAME}} నుండి',\n'help' => 'సహాయం',\n'search' => 'వెతుకు',\n'searchbutton' => 'వెతుకు',\n'go' => 'వెళ్లు',\n'searcharticle' => 'వెళ్లు',\n'history' => 'పేజీ చరిత్ర',\n'history_short' => 'చరిత్ర',\n'updatedmarker' => 'నేను కిందటిసారి వచ్చిన తరువాత జరిగిన మార్పులు',\n'printableversion' => 'అచ్చుతీయదగ్గ కూర్పు',\n'permalink' => 'శాశ్వత లంకె',\n'print' => 'ముద్రించు',\n'view' => 'చూచుట',\n'edit' => 'సవరించు',\n'create' => 'సృష్టించు',\n'editthispage' => 'ఈ పేజీని సవరించండి',\n'create-this-page' => 'ఈ పేజీని సృష్టించండి',\n'delete' => 'తొలగించు',\n'deletethispage' => 'ఈ పేజీని తొలగించండి',\n'undelete_short' => '{{PLURAL:$1|ఒక్క రచనను|$1 రచనలను}} పునఃస్థాపించు',\n'viewdeleted_short' => '{{PLURAL:$1|తొలగించిన ఒక మార్పు|$1 తొలగించిన మార్పుల}}ను చూడండి',\n'protect' => 'సంరక్షించు',\n'protect_change' => 'మార్చు',\n'protectthispage' => 'ఈ పేజీని సంరక్షించు',\n'unprotect' => 'సంరక్షణ మార్పు',\n'unprotectthispage' => 'ఈ పుట సంరక్షణను మార్చండి',\n'newpage' => 'కొత్త పేజీ',\n'talkpage' => 'ఈ పేజీని చర్చించండి',\n'talkpagelinktext' => 'చర్చ',\n'specialpage' => 'ప్రత్యేక పేజీ',\n'personaltools' => 'వ్యక్తిగత పనిముట్లు',\n'postcomment' => 'కొత్త విభాగం',\n'articlepage' => 'విషయపు పేజీని చూడండి',\n'talk' => 'చర్చ',\n'views' => 'చూపులు',\n'toolbox' => 'పనిముట్ల పెట్టె',\n'userpage' => 'వాడుకరి పేజీని చూడండి',\n'projectpage' => 'ప్రాజెక్టు పేజీని చూడు',\n'imagepage' => 'ఫైలు పేజీని చూడండి',\n'mediawikipage' => 'సందేశం పేజీని చూడు',\n'templatepage' => 'మూస పేజీని చూడు',\n'viewhelppage' => 'సహాయం పేజీని చూడు',\n'categorypage' => 'వర్గం పేజీని చూడు',\n'viewtalkpage' => 'చర్చను చూడు',\n'otherlanguages' => 'ఇతర భాషలలొ',\n'redirectedfrom' => '($1 నుండి మళ్ళించబడింది)',\n'redirectpagesub' => 'దారిమార్పు పుట',\n'lastmodifiedat' => 'ఈ పేజీకి $2, $1న చివరి మార్పు జరిగినది.',\n'viewcount' => 'ఈ పేజీ {{PLURAL:$1|ఒక్క సారి|$1 సార్లు}} దర్శించబడింది.',\n'protectedpage' => 'సంరక్షణలోని పేజీ',\n'jumpto' => 'ఇక్కడికి గెంతు:',\n'jumptonavigation' => 'పేజీకి సంబంధించిన లింకులు',\n'jumptosearch' => 'వెతుకు',\n'view-pool-error' => 'క్షమించండి, ప్రస్తుతం సర్వర్లన్నీ ఓవర్‌లోడ్ అయిఉన్నాయి.\nచాలామంది వాడుకరులు ఈ పేజీని చూస్తున్నారు.\nఈ పేజీని వీక్షించడానికి కొద్దిసేపు నిరీక్షించండి.\n\n$1',\n'pool-timeout' => 'తాళం కొరకు వేచివుండడానికి కాలపరిమితి అయిపోయింది',\n'pool-queuefull' => 'సమూహపు వరుస నిండుగా ఉంది',\n'pool-errorunknown' => 'గుర్తుతెలియని పొరపాటు',\n\n# All link text and link target definitions of links into project namespace that get used by other message strings, with the exception of user group pages (see grouppage).\n'aboutsite' => '{{SITENAME}} గురించి',\n'aboutpage' => 'Project:గురించి',\n'copyright' => 'విషయ సంగ్రహం $1 కి లోబడి లభ్యం.',\n'copyrightpage' => '{{ns:project}}:ప్రచురణ హక్కులు',\n'currentevents' => 'ఇప్పటి ముచ్చట్లు',\n'currentevents-url' => 'Project:ఇప్పటి ముచ్చట్లు',\n'disclaimers' => 'అస్వీకారములు',\n'disclaimerpage' => 'Project:సాధారణ నిష్పూచీ',\n'edithelp' => 'దిద్దుబాటు సహాయం',\n'helppage' => 'Help:సూచిక',\n'mainpage' => 'మొదటి పేజీ',\n'mainpage-description' => 'తలపుట',\n'policy-url' => 'Project:విధానం',\n'portal' => 'సముదాయ పందిరి',\n'portal-url' => 'Project:సముదాయ పందిరి',\n'privacy' => 'గోప్యతా విధానం',\n'privacypage' => 'Project:గోప్యతా విధానం',\n\n'badaccess' => 'అనుమతి లోపం',\n'badaccess-group0' => 'మీరు చేయతలపెట్టిన పనికి మీకు హక్కులు లేవు.',\n'badaccess-groups' => 'మీరు చేయతలపెట్టిన పని ఈ {{PLURAL:$2|గుంపు|గుంపుల}} లోని వాడుకర్లకు మాత్రమే పరిమితం: $1.',\n\n'versionrequired' => 'మీడియావికీ సాఫ్టువేరు వెర్షను $1 కావాలి',\n'versionrequiredtext' => 'ఈ పేజీని వాడటానికి మీకు మీడియావికీ సాఫ్టువేరు వెర్షను $1 కావాలి. [[Special:Version|వెర్షను పేజీ]]ని చూడండి.',\n\n'ok' => 'సరే',\n'retrievedfrom' => '\"$1\" నుండి వెలికితీశారు',\n'youhavenewmessages' => 'మీకు $1 ఉన్నాయి ($2).',\n'newmessageslink' => 'కొత్త సందేశాలు',\n'newmessagesdifflink' => 'చివరి మార్పు',\n'youhavenewmessagesfromusers' => 'మీకు {{PLURAL:$3|మరో వాడుకరి|$3 వాడుకరుల}} నుండి $1 ($2).',\n'youhavenewmessagesmanyusers' => 'మీకు చాలా వాడుకరుల నుండి $1 ($2).',\n'newmessageslinkplural' => '{{PLURAL:$1|ఒక కొత్త సందేశం వచ్చింది|కొత్త సందేశాలు ఉన్నాయి}}',\n'newmessagesdifflinkplural' => 'చివరి {{PLURAL:$1|మార్పు|మార్పులు}}',\n'youhavenewmessagesmulti' => '$1లో మీకో సందేశం ఉంది',\n'editsection' => 'మార్చు',\n'editold' => 'సవరించు',\n'viewsourceold' => 'మూలాన్ని చూడండి',\n'editlink' => 'సవరించు',\n'viewsourcelink' => 'మూలాన్ని చూడండి',\n'editsectionhint' => 'విభాగాన్ని మార్చు: $1',\n'toc' => 'విషయ సూచిక',\n'showtoc' => 'చూపించు',\n'hidetoc' => 'దాచు',\n'collapsible-collapse' => 'కుదించు',\n'collapsible-expand' => 'విస్తరించు',\n'thisisdeleted' => '$1ను చూస్తారా, పునఃస్థాపిస్తారా?',\n'viewdeleted' => '$1 చూస్తారా?',\n'restorelink' => '{{PLURAL:$1|ఒక తొలగించిన మార్పు|$1 తొలగించిన మార్పులు}}',\n'feedlinks' => 'ఫీడు:',\n'feed-invalid' => 'మీరు కోరిన ఫీడు సరైన రకం కాదు.',\n'feed-unavailable' => 'సిండికేషన్ ఫీడులేమీ అందుబాటులో లేవు.',\n'site-rss-feed' => '$1 RSS ఫీడు',\n'site-atom-feed' => '$1 ఆటమ్ ఫీడు',\n'page-rss-feed' => '\"$1\" ఆరెసెస్సు(RSS) ఫీడు',\n'page-atom-feed' => '\"$1\" ఆటమ్ ఫీడు',\n'red-link-title' => '$1 (పుట లేదు)',\n'sort-descending' => 'అవరోహణ క్రమంలో అమర్చు',\n'sort-ascending' => 'ఆరోహణ క్రమంలో అమర్చు',\n\n# Short words for each namespace, by default used in the namespace tab in monobook\n'nstab-main' => 'పేజీ',\n'nstab-user' => 'వాడుకరి పేజీ',\n'nstab-media' => 'మీడియా పేజీ',\n'nstab-special' => 'ప్రత్యేక పేజీ',\n'nstab-project' => 'ప్రాజెక్టు పేజీ',\n'nstab-image' => 'దస్త్రం',\n'nstab-mediawiki' => 'సందేశం',\n'nstab-template' => 'మూస',\n'nstab-help' => 'సహాయము',\n'nstab-category' => 'వర్గం',\n\n# Main script and global functions\n'nosuchaction' => 'అటువంటి కార్యం లేదు',\n'nosuchactiontext' => 'మీరు URLలో పేర్కొన్న కార్యం సరైనది కాదు.\nమీరు URLని తప్పుగా టైపు చేసివుండవచ్చు లేదా తప్పుడు లింకుని అనుసరించివుండొచ్చు.\n{{SITENAME}} ఉపయోగించే మృదుపరికరంలో దోషమైనా అయివుండవచ్చు.',\n'nosuchspecialpage' => 'అటువంటి ప్రత్యేక పేజీ లేదు',\n'nospecialpagetext' => 'మీరు అడిగిన ప్రత్యేకపేజీ సరైనది కాదు.\n\nసరైన ప్రత్యేకపేజీల జాబితా [[Special:SpecialPages|{{int:specialpages}}]] వద్ద ఉంది.',\n\n# General errors\n'error' => 'లోపం',\n'databaseerror' => 'డేటాబేసు లోపం',\n'laggedslavemode' => 'హెచ్చరిక: పేజీలో ఇటీవల జరిగిన మార్పులు ఉండకపోవచ్చు.',\n'readonly' => 'డేటాబేసు లాక్‌చెయ్యబడింది',\n'enterlockreason' => 'డేటాబేసుకు వేయబోతున్న లాకుకు కారణం తెలుపండి, దానితోపాటే ఎంతసమయం తరువాత ఆ లాకు తీసేస్తారో కూడా తెలుపండి',\n'readonlytext' => 'డేటాబేసు ప్రస్తుతం లాకు చేయబడింది. మార్పులు, చేర్పులు ప్రస్తుతం చెయ్యలేరు. మామూలుగా జరిగే నిర్వహణ కొరకు ఇది జరిగి ఉండవచ్చు; అది పూర్తి కాగానే తిరిగి మామూలుగా పనిచేస్తుంది.\n\nదీనిని లాకు చేసిన నిర్వాహకుడు ఇలా తెలియజేస్తున్నాడు: $1',\n'missing-article' => '\"$1\" $2 అనే పేజీ పాఠ్యం డేటాబేసులో దొరకలేదు.\n\nకాలదోషం పట్టిన తేడా కోసం చూసినపుడుగానీ, తొలగించిన పేజీ చరితం కోసం చూసినపుడుగానీ ఇది సాధారణంగా జరుగుతుంది.\n\nఒకవేళ అలా కాకపోతే, మీరో బగ్‌ను కనుక్కున్నట్టే.\nఈ URLను సూచిస్తూ, దీన్ని ఓ [[Special:ListUsers/sysop|నిర్వాహకునికి]] తెలియజెయ్యండి.',\n'missingarticle-rev' => '(కూర్పు#: $1)',\n'missingarticle-diff' => '(తేడా: $1, $2)',\n'readonly_lag' => 'అనుచర (స్లేవ్) డేటాబేసు సర్వర్లు, ప్రధాన (మాస్టరు) సర్వరును అందుకునేందుకుగాను, డేటాబేసు ఆటోమాటిక్‌గా లాకు అయింది.',\n'internalerror' => 'అంతర్గత లోపం',\n'internalerror_info' => 'అంతర్గత లోపం: $1',\n'fileappenderrorread' => 'చేరుస్తున్నప్పుడు \"$1\"ని చదవలేకపోయాం.',\n'fileappenderror' => '\"$1\" ని \"$2\" తో కూర్చలేకపోతున్నాం',\n'filecopyerror' => 'ఫైలు \"$1\"ని \"$2\"కు కాపీ చెయ్యటం కుదరలేదు.',\n'filerenameerror' => 'ఫైలు \"$1\" పేరును \"$2\"గా మార్చటం కుదరలేదు.',\n'filedeleteerror' => 'ఫైలు \"$1\"ని తీసివేయటం కుదరలేదు.',\n'directorycreateerror' => '\"$1\" అనే డైరెక్టరీని సృష్టించలేక పోతున్నాను.',\n'filenotfound' => 'ఫైలు \"$1\" కనబడలేదు.',\n'fileexistserror' => '\"$1\" అనే ఫైలు ఉంది, కాని అందులోకి రాయలేకపోతున్నాను',\n'unexpected' => 'అనుకోని విలువ: \"$1\"=\"$2\".',\n'formerror' => 'లోపం: ఈ ఫారాన్ని పంపించలేకపోతున్నాను',\n'badarticleerror' => 'ఈ పేజీపై ఈ పని చేయడం కుదరదు.',\n'cannotdelete' => '\"$1\" అనే పేజీ లేదా ఫైలుని తొలగించలేకపోయాం.\nదాన్ని ఇప్పటికే ఎవరైనా తొలగించి ఉండవచ్చు.',\n'cannotdelete-title' => '\"$1\" పుటను తొలగించలేరు',\n'badtitle' => 'తప్పు శీర్షిక',\n'badtitletext' => 'మీరు కోరిన పుట యొక్క పేరు చెల్లనిది, ఖాళీగా ఉంది, లేదా తప్పుగా ఇచ్చిన అంతర్వికీ లేదా అంతర-భాషా శీర్షిక అయివుండాలి.\nశీర్షికలలో ఉపయోగించకూడని అక్షరాలు దానిలో ఉండివుండొచ్చు.',\n'perfcached' => 'కింది డేటా ముందే సేకరించి పెట్టుకున్నది. కాబట్టి తాజా డేటాతో పోలిస్తే తేడాలుండవచ్చు. A maximum of {{PLURAL:$1|one result is|$1 results are}} available in the cache.',\n'perfcachedts' => 'కింది సమాచారం ముందే సేకరించి పెట్టుకున్నది. దీన్ని $1న చివరిసారిగా తాజాకరించారు. A maximum of {{PLURAL:$4|one result is|$4 results are}} available in the cache.',\n'querypage-no-updates' => 'ప్రస్తుతం ఈ పుటకి తాజాకరణలని అచేతనం చేసారు.\nఇక్కడున్న భోగట్టా కూడా తాజాకరించబడదు.',\n'wrong_wfQuery_params' => 'wfQuery()కి తప్పుడు పారామీటర్లు వచ్చాయి
\nఫంక్షను: $1
\nక్వీరీ: $2',\n'viewsource' => 'మూలాన్ని చూపించు',\n'viewsource-title' => '$1 యొక్క సోర్సు చూడండి',\n'actionthrottled' => 'కార్యాన్ని ఆపేసారు',\n'actionthrottledtext' => 'స్పామును తగ్గించటానికి తీసుకున్న నిర్ణయాల వల్ల, మీరు ఈ కార్యాన్ని అతి తక్కువ సమయంలో బోలెడన్ని సార్లు చేయకుండా అడ్డుకుంటున్నాము. కొన్ని నిమిషాలు ఆగి మరలా ప్రయత్నించండి.',\n'protectedpagetext' => 'ఈ పేజీని మార్చకుండా ఉండేందుకు సంరక్షించారు.',\n'viewsourcetext' => 'మీరీ పేజీ సోర్సును చూడవచ్చు, కాపీ చేసుకోవచ్చు:',\n'viewyourtext' => \"ఈ పేజీకి '''మీ మార్పుల''' యొక్క మూలాన్ని చూడవచ్చు లేదా కాపీచేసుకోవచ్చు:\",\n'protectedinterface' => 'సాఫ్టువేరు ఇంటరుఫేసుకు చెందిన టెక్స్టును ఈ పేజీ అందిస్తుంది. దుశ్చర్యల నివారణ కోసమై దీన్ని లాకు చేసాం.',\n'editinginterface' => \"'''హెచ్చరిక''': సాఫ్టువేరుకు ఇంటరుఫేసు టెక్స్టును అందించే పేజీని మీరు సరిదిద్దుతున్నారు.\nఈ పేజీలో చేసే మార్పుల వల్ల ఇతర వాడుకరులకు ఇంటరుఫేసు కనబడే విధానంలో తేడావస్తుంది.\nఅనువాదాల కొరకైతే, [//translatewiki.net/wiki/Main_Page?setlang=te ట్రాన్స్‌లేట్ వికీ.నెట్], మీడియావికీ స్థానికీకరణ ప్రాజెక్టు, ని వాడండి.\",\n'cascadeprotected' => 'కింది {{PLURAL:$1|పేజీని|పేజీలను}} కాస్కేడింగు ఆప్షనుతో చేసి సంరక్షించారు. ప్రస్తుత పేజీ, ఈ పేజీల్లో ఇంక్లూడు అయి ఉంది కాబట్టి, దిద్దుబాటు చేసే వీలు లేకుండా ఇది కూడా రక్షణలో ఉంది.\n$2',\n'namespaceprotected' => \"'''$1''' నేంస్పేసులో మార్పులు చేయటానికి మీకు అనుమతి లేదు.\",\n'ns-specialprotected' => 'ప్రత్యేక పేజీలపై దిద్దుబాట్లు చేయలేరు.',\n'titleprotected' => \"సభ్యులు [[User:$1|$1]] ఈ పేజీని సృష్టించనివ్వకుండా నిరోదిస్తున్నారు.\nఅందుకు ఇచ్చిన కారణం: ''$2''.\",\n'exception-nologin' => 'లోనికి ప్రవేశించిలేరు',\n'exception-nologin-text' => 'ఈ వికీలో ఈ పేజీ లేదా పనికి మీరు తప్పనిసరిగా ప్రవేశించివుండాలి.',\n\n# Virus scanner\n'virus-badscanner' => \"తప్పుడు స్వరూపణం: తెలియని వైరస్ స్కానర్: ''$1''\",\n'virus-scanfailed' => 'స్కాన్ విఫలమైంది (సంకేతం $1)',\n'virus-unknownscanner' => 'అజ్ఞాత యాంటీవైరస్:',\n\n# Login and logout pages\n'logouttext' => \"'''ఇప్పుడు మీరు నిష్క్రమించారు.'''\n\nమీరు {{SITENAME}}ని అజ్ఞాతంగా వాడుతూండొచ్చు, లేదా ఇదే వాడుకరిగా కానీ లేదా వేరే వాడుకరిగా కానీ [$1 మళ్ళీ ప్రవేశించవచ్చు].\nఅయితే, మీ విహారిణిలోని కోశాన్ని శుభ్రపరిచే వరకు కొన్ని పేజీలు మీరింకా ప్రవేశించి ఉన్నట్లుగానే చూపించవచ్చని గమనించండి.\",\n'welcomeuser' => 'స్వాగతం, $1!',\n'welcomecreation-msg' => 'మీ ఖాతాని సృష్టించాం.\nమీ [[Special:Preferences|{{SITENAME}} అభిరుచులను]] మార్చుకోవడం మరువకండి.\nతెలుగు వికీపీడియాలో తెలుగులోనే రాయాలి. వికీలో రచనలు చేసే ముందు, కింది సూచనలను గమనించండి.\nతెలుగు {{SITENAME}}లో తెలుగులోనే రాయాలి. వికీలో రచనలు చేసే ముందు, కింది సూచనలను గమనించండి.\n*వికీని త్వరగా అర్థం చేసుకునేందుకు [[వికీపీడియా:5 నిమిషాల్లో వికీ|5 నిమిషాల్లో వికీ]] పేజీని చూడండి.\n*తెలుగులో రాసేందుకు ఇంగ్లీషు అక్షరాల ఉచ్ఛారణతో తెలుగు టైపు చేసే [[వికీపీడియా:టైపింగు సహాయం| టైపింగ్ సహాయం]] వాడవచ్చు. మరిన్ని ఉపకరణాల కొరకు [[కీ బోర్డు]] మరియు తెరపై తెలుగు సరిగా లేకపోతే[[వికీపీడియా:Setting up your browser for Indic scripts|ఈ పేజీ]] చూడండి.',\n'yourname' => 'వాడుకరి పేరు:',\n'userlogin-yourname' => 'వాడుకరి పేరు',\n'userlogin-yourname-ph' => 'మీ వాడుకరి పేరును ఇవ్వండి',\n'yourpassword' => 'సంకేతపదం:',\n'userlogin-yourpassword' => 'సంకేతపదం',\n'userlogin-yourpassword-ph' => 'మీ సంకేతపదాన్ని ఇవ్వండి',\n'createacct-yourpassword-ph' => 'సంకేతపదాన్ని ఇవ్వండి',\n'yourpasswordagain' => 'సంకేతపదాన్ని మళ్ళీ ఇవ్వండి:',\n'createacct-yourpasswordagain' => 'సంకేతపదాన్ని నిర్ధారించండి',\n'createacct-yourpasswordagain-ph' => 'సంకేతపదాన్ని మళ్ళీ ఇవ్వండి',\n'remembermypassword' => 'ఈ కంప్యూటరులో నా ప్రవేశాన్ని గుర్తుంచుకో (గరిష్ఠంగా $1 {{PLURAL:$1|రోజు|రోజుల}}కి)',\n'userlogin-remembermypassword' => 'నన్ను ప్రవేశింపజేసి ఉంచు',\n'yourdomainname' => 'మీ డోమైను',\n'password-change-forbidden' => 'ఈ వికీలో మీరు సంకేతపదాలను మార్చలేరు.',\n'externaldberror' => 'డేటాబేసు అధీకరణలో పొరపాటు జరిగింది లేదా మీ బయటి ఖాతాని తాజాకరించడానికి మీకు అనుమతి లేదు.',\n'login' => 'లోనికి రండి',\n'nav-login-createaccount' => 'లోనికి ప్రవేశించండి / ఖాతాని సృష్టించుకోండి',\n'loginprompt' => '{{SITENAME}}లోకి ప్రవేశించాలంటే మీ విహారిణిలో కూకీలు చేతనమై ఉండాలి.',\n'userlogin' => 'ప్రవేశించండి / ఖాతాను సృష్టించుకోండి',\n'userloginnocreate' => 'ప్రవేశించండి',\n'logout' => 'నిష్క్రమించు',\n'userlogout' => 'నిష్క్రమించు',\n'notloggedin' => 'లోనికి ప్రవేశించి లేరు',\n'userlogin-noaccount' => 'మీకు ఖాతా లేదా?',\n'userlogin-joinproject' => '{{SITENAME}}లో చేరండి',\n'nologin' => 'ఖాతా లేదా? $1.',\n'nologinlink' => 'ఖాతాని సృష్టించుకోండి',\n'createaccount' => 'ఖాతాని సృష్టించు',\n'gotaccount' => 'ఇప్పటికే మీకు ఖాతా ఉందా? $1.',\n'gotaccountlink' => 'ప్రవేశించండి',\n'userlogin-resetlink' => 'మీ ప్రవేశ వివరాలను మరచిపోయారా?',\n'userlogin-resetpassword-link' => 'మీ దాటుమాటను మార్చుకోండి',\n'helplogin-url' => 'Help:ప్రవేశించడం',\n'userlogin-helplink' => '[[{{MediaWiki:helplogin-url}}|ప్రవేశించడానికి సహాయం]]',\n'createacct-join' => 'మీ సమాచారాన్ని క్రింద ఇవ్వండి.',\n'createacct-emailrequired' => 'ఈమెయిలు చిరునామా',\n'createacct-emailoptional' => 'ఈమెయిలు చిరునామా (ఐచ్చికం)',\n'createacct-email-ph' => 'మీ ఈమెయిలు చిరునామాను ఇవ్వండి',\n'createaccountmail' => 'తాత్కాలిక యాదృచ్చిక సంకేతపదాన్ని వాడి దాన్ని ఈ క్రింద ఇచ్చిన ఈమెయిలు చిరునామాకు పంపించు',\n'createacct-realname' => 'అసలు పేరు (ఐచ్చికం)',\n'createaccountreason' => 'కారణం:',\n'createacct-reason' => 'కారణం',\n'createacct-reason-ph' => 'మీరు మరో ఖాతాను ఎందుకు సృష్టించుకుంటున్నారు',\n'createacct-captcha' => 'భద్రతా తనిఖీ',\n'createacct-imgcaptcha-ph' => 'పైన కనబడే మాటలను ఇక్కడ ఇవ్వండి',\n'createacct-submit' => 'మీ ఖాతాను సృష్టించుకోండి',\n'createacct-benefit-heading' => '{{SITENAME}}ను తయారుచేసేది మీలాంటి ప్రజలే.',\n'createacct-benefit-body1' => '{{PLURAL:$1|మార్పు|మార్పులు}}',\n'createacct-benefit-body2' => '{{PLURAL:$1|పేజీ|పేజీలు}}',\n'badretype' => 'మీరు ఇచ్చిన రెండు సంకేతపదాలు ఒకదానితో మరొకటి సరిపోలడం లేదు.',\n'userexists' => 'ఇచ్చిన వాడుకరిపేరు ఇప్పటికే వాడుకలో ఉంది.\nవేరే పేరును ఎంచుకోండి.',\n'loginerror' => 'ప్రవేశంలో పొరపాటు',\n'createacct-error' => 'పద్దు తెరవడములో తప్పు',\n'createaccounterror' => 'ఖాతాని సృష్టించలేకపోయాం: $1',\n'nocookiesnew' => 'ఖాతాని సృష్టించాం, కానీ మీరు ఇంకా లోనికి ప్రవేశించలేదు.\nవాడుకరుల ప్రవేశానికి {{SITENAME}} కూకీలను వాడుతుంది.\nమీరు కూకీలని అచేతనం చేసివున్నారు.\nదయచేసి వాటిని చేతనంచేసి, మీ కొత్త వాడుకరి పేరు మరియు సంకేతపదాలతో లోనికి ప్రవేశించండి.',\n'nocookieslogin' => 'వాడుకరుల ప్రవేశానికై {{SITENAME}} కూకీలను వాడుతుంది.\nమీరు కుకీలని అచేతనం చేసివున్నారు.\nవాటిని చేతనంచేసి ప్రయత్నించండి.',\n'nocookiesfornew' => 'మూలాన్ని కనుక్కోలేకపోయాం కాబట్టి, ఈ వాడుకరి ఖాతాను సృష్టించలేకపోయాం.\nమీ కంప్యూటర్లో కూకీలు చేతనమై ఉన్నాయని నిశ్చయించుకొని, ఈ పేజీని తిరిగి లోడు చేసి, మళ్ళీ ప్రయత్నించండి.',\n'noname' => 'మీరు సరైన వాడుకరిపేరు ఇవ్వలేదు.',\n'loginsuccesstitle' => 'ప్రవేశం విజయవంతమైనది',\n'loginsuccess' => \"'''మీరు ఇప్పుడు {{SITENAME}}లోనికి \\\"\\$1\\\"గా ప్రవేశించారు.'''\",\n'nosuchuser' => '\"$1\" అనే పేరుతో వాడుకరులు లేరు.\nవాడుకరి పేర్లు కేస్ సెన్సిటివ్.\nఅక్షరక్రమం సరిచూసుకోండి, లేదా [[Special:UserLogin/signup|కొత్త ఖాతా సృష్టించుకోండి]].',\n'nosuchusershort' => '\"$1\" అనే పేరుతో సభ్యులు లేరు. పేరు సరి చూసుకోండి.',\n'nouserspecified' => 'సభ్యనామాన్ని తప్పనిసరిగా ఎంచుకోవాలి.',\n'login-userblocked' => 'ఈ వాడుకరిని నిరోధించారు. ప్రవేశానికి అనుమతి లేదు.',\n'wrongpassword' => 'ఈ సంకేతపదం సరైనది కాదు. దయచేసి మళ్లీ ప్రయత్నించండి.',\n'wrongpasswordempty' => 'ఖాళీ సంకేతపదం ఇచ్చారు. మళ్ళీ ప్రయత్నించండి.',\n'passwordtooshort' => 'మీ సంకేతపదం కనీసం {{PLURAL:$1|1 అక్షరం|$1 అక్షరాల}} పొడవు ఉండాలి.',\n'password-name-match' => 'మీ సంకేతపదం మీ వాడుకరిపేరుకి భిన్నంగా ఉండాలి.',\n'password-login-forbidden' => 'ఈ వాడుకరిపేరు మరియు సంకేతపదాలను ఉపయోగించడం నిషిద్ధం.',\n'mailmypassword' => 'కొత్త సంకేతపదాన్ని ఈ-మెయిల్లో పంపించు',\n'passwordremindertitle' => '{{SITENAME}} కోసం కొత్త తాత్కాలిక సంకేతపదం',\n'passwordremindertext' => '{{SITENAME}} ($4) లో కొత్త సంకేతపదం పంపించమని ఎవరో (బహుశ మీరే, ఐ.పీ. చిరునామా $1 నుండి) అడిగారు. వాడుకరి \"$2\" కొరకు \"$3\" అనే తాత్కాలిక సంకేతపదం సిద్ధంచేసి ఉంచాం. మీ ఉద్దేశం అదే అయితే, ఇప్పుడు మీరు సైటులోనికి ప్రవేశించి కొత్త సంకేతపదాన్ని ఎంచుకోవచ్చు. మీ తాత్కాలిక సంకేతపదం {{PLURAL:$5|ఒక రోజు|$5 రోజుల}}లో కాలంచెల్లుతుంది.\n\nఒకవేళ ఈ అభ్యర్థన మీరుకాక మరెవరో చేసారనుకున్నా లేదా మీ సంకేతపదం మీకు గుర్తుకువచ్చి దాన్ని మార్చకూడదు అనుకుంటున్నా, ఈ సందేశాన్ని మర్చిపోయి మీ పాత సంకేతపదాన్ని వాడడం కొనసాగించవచ్చు.',\n'noemail' => 'సభ్యులు \"$1\"కు ఈ-మెయిలు చిరునామా నమోదయి లేదు.',\n'noemailcreate' => 'మీరు సరైన ఈమెయిల్ చిరునామాని ఇవ్వాలి',\n'passwordsent' => '\"$1\" కొరకు నమోదైన ఈ-మెయిలు చిరునామాకి కొత్త సంకేతపదాన్ని పంపించాం.\nఅది అందిన తర్వాత ప్రవేశించి చూడండి.',\n'blocked-mailpassword' => 'దిద్దుబాట్లు చెయ్యకుండా ఈ ఐపీఅడ్రసును నిరోధించాం. అంచేత, దుశ్చర్యల నివారణ కోసం గాను, మరచిపోయిన సంకేతపదాన్ని పొందే అంశాన్ని అనుమతించము.',\n'eauthentsent' => 'ఇచ్చిన ఈ-మెయిలు అడ్రసుకు ధృవీకరణ మెయిలు వెళ్ళింది.\nమరిన్ని మెయిళ్ళు పంపే ముందు, మీరు ఆ మెయిల్లో సూచించినట్లుగా చేసి, ఈ చిరునామా మీదేనని ధృవీకరించండి.',\n'throttled-mailpassword' => 'గడచిన {{PLURAL:$1|ఒక గంటలో|$1 గంటల్లో}} ఇప్పటికే దాటుమాట మార్చినట్లుగా ఒక మెయిల్  పంపించివున్నాం.\nదుశ్చర్యలను నివారించేందుకు గాను, {{PLURAL:$1|ఒక గంటకి|$1 గంటలకి}} ఒక్కసారి మాత్రమే దాటుమాట మార్పు మెయిల్ పంపిస్తాము.',\n'mailerror' => 'మెయిలు పంపించడంలో లోపం: $1',\n'acct_creation_throttle_hit' => 'మీ ఐపీ చిరునామా వాడుతున్న ఈ వికీ సందర్శకులు గత ఒక్క రోజులో {{PLURAL:$1|1 ఖాతాని|$1 ఖాతాలను}} సృష్టించారు, ఈ కాల వ్యవధిలో అది గరిష్ఠ పరిమితి.\nఅందువల్ల, ఈ ఐపీని వాడుతున్న సందర్శకులు ప్రస్తుతానికి ఇంక ఖాతాలని సృష్టించలేరు.',\n'emailauthenticated' => 'మీ ఈ-మెయిలు చిరునామా $2న $3కి ధృవీకరింపబడింది.',\n'emailnotauthenticated' => 'మీ ఈ-మెయిలు చిరునామాను ఇంకా ధృవీకరించలేదు. కాబట్టి కింద పేర్కొన్న అంశాలకు ఎటువంటి ఈ-మెయులునూ పంపించము.',\n'noemailprefs' => 'కింది అంశాలు పని చెయ్యటానికి ఈ-మెయిలు చిరునామాను నమొదుచయ్యండి.',\n'emailconfirmlink' => 'మీ ఈ-మెయిలు చిరునామాను ధృవీకరించండి',\n'invalidemailaddress' => 'మీరు ఇచ్చిన ఈ-మెయిలు చిరునామా సరైన రీతిలో లేనందున అంగీకరించటంలేదు.\nదయచేసి ఈ-మెయిలు చిరునామాను సరైన రీతిలో ఇవ్వండి లేదా ఖాళీగా వదిలేయండి.',\n'cannotchangeemail' => 'ఈ వికీలో ఖాతా ఈ-మెయిలు చిరునామాను మార్చుకోలేరు.',\n'emaildisabled' => 'ఈ సైటు ఈమెయిళ్ళను పంపించలేదు.',\n'accountcreated' => 'ఖాతాని సృష్టించాం',\n'accountcreatedtext' => '$1 కి వాడుకరి ఖాతాని సృష్టించాం.',\n'createaccount-title' => '{{SITENAME}} కోసం ఖాతా సృష్టి',\n'createaccount-text' => '{{SITENAME}} ($4) లో ఎవరో మీ ఈమెయిలు చిరునామాకి \"$2\" అనే పేరుగల ఖాతాని \"$3\" అనే సంకేతపదంతో సృష్టించారు.\nమీరు లోనికి ప్రవేశించి మీ సంకేతపదాన్ని ఇప్పుడే మార్చుకోవాలి.\n\nఈ ఖాతాని పొరపాటున సృష్టిస్తే గనక, ఈ సందేశాన్ని పట్టించుకోకండి.',\n'usernamehasherror' => 'వాడుకరిపేరులో హాష్ అక్షరాలు ఉండకూడదు',\n'login-throttled' => 'గత కొద్దిసేపటి నుండి మీరు చాలా ప్రవేశ ప్రయత్నాలు చేసారు.\nమళ్ళీ ప్రయత్నించే ముందు కాసేపు వేచివుండండి.',\n'login-abort-generic' => 'మీ లాగిన్ ప్రయత్నం విఫలమైంది - ఆగిపోయింది',\n'loginlanguagelabel' => 'భాష: $1',\n'suspicious-userlogout' => 'సరిగా పనిచేయని విహారిణి లేదా కాషింగ్ ప్రాక్సీ వల్ల పంపబడడం చేత, నిష్క్రమించాలనే మీ అభ్యర్థనని నిరాకరించారు.',\n\n# Email sending\n'php-mail-error-unknown' => 'PHP యొక్క mail() ఫంక్షన్‍లో ఏదో తెలియని లోపం దొర్లింది',\n'user-mail-no-addy' => 'ఈ-మెయిలు చిరునామాని ఇవ్వకుండానే ఈ-మెయిలు పంపడానికి ప్రయత్నించారు.',\n\n# Change password dialog\n'resetpass' => 'సంకేతపదాన్ని మార్చండి',\n'resetpass_announce' => 'మీకు పంపిన తాత్కాలిక సంకేతంతో ప్రవేశించివున్నారు.\nప్రవేశాన్ని పూర్తిచేసేందుకు, మీరు తప్పనిసరిగా ఇక్కడ కొత్త సంకేతపదాన్ని అమర్చుకోవాలి:',\n'resetpass_header' => 'ఖాతా సంకేతపదం మార్పు',\n'oldpassword' => 'పాత సంకేతపదం:',\n'newpassword' => 'కొత్త సంకేతపదం:',\n'retypenew' => 'సంకేతపదం, మళ్ళీ',\n'resetpass_submit' => 'సంకేతపదాన్ని మార్చి లోనికి ప్రవేశించండి',\n'changepassword-success' => 'మీ సంకేతపదాన్ని జయప్రదంగా మార్చాం! ఇక మిమ్మల్ని లోనికి ప్రవేశింపచేస్తున్నాం...',\n'resetpass_forbidden' => 'సంకేతపదాలను మార్చటం కుదరదు',\n'resetpass-no-info' => 'ఈ పేజీని నేరుగా చూడటానికి మీరు లోనికి ప్రవేశించివుండాలి.',\n'resetpass-submit-loggedin' => 'సంకేతపదాన్ని మార్చు',\n'resetpass-submit-cancel' => 'రద్దుచేయి',\n'resetpass-wrong-oldpass' => 'తప్పుడు తాత్కాలిక లేదా ప్రస్తుత సంకేతపదం.\nమీరు మీ సంకేతపదాన్ని ఇప్పటికే విజయవంతంగా మార్చుకొనివుండవచ్చు లేదా కొత్త తాత్కాలిక సంకేతపదం కోసం అభ్యర్థించారు.',\n'resetpass-temp-password' => 'తాత్కాలిక సంకేతపదం:',\n\n# Special:PasswordReset\n'passwordreset' => 'సంకేతపదాన్ని మార్చుకోండి',\n'passwordreset-legend' => 'సంకేతపదాన్ని మార్చుకోండి',\n'passwordreset-disabled' => 'ఈ వికీలో సంకేతపదాల మార్పును అచేతనం చేసాం.',\n'passwordreset-username' => 'వాడుకరి పేరు:',\n'passwordreset-domain' => 'డొమైన్:',\n'passwordreset-email' => 'ఈ-మెయిలు చిరునామా:',\n'passwordreset-emailtitle' => '{{SITENAME}}లో ఖాతా వివరాలు',\n'passwordreset-emailtext-ip' => 'ఎవరో (బహుశా మీరే, ఐపీ అడ్రసు $1 నుంచి) {{SITENAME}} ($4) లో మీ ఖాతా వివరాలను చెప్పమంటూ అడిగారు. కింది వాడుకరి {{PLURAL:$3|ఖాతా|ఖాతాలు}}\nఈ ఈమెయిలు అడ్రసుతో అనుసంధింపబడి ఉన్నాయి:\n\n$2\n\n{{PLURAL:$3|ఈ తాత్కాలిక సంకేతపదానికి|ఈ తాత్కాలిక సంకేతపదాలకు}} {{PLURAL:$5|ఒక్క రోజులో|$5 రోజుల్లో}} కాలం చెల్లుతుంది.\nఇప్పుడు మీరు లాగినై కొత్త సంకేతపదాన్ని ఎంచుకోవాల్సి ఉంటుంది. ఈ అభ్యర్ధన చేసింది మరెవరైనా అయినా, లేక మీ అసలు సంకేతపదం మీకు గుర్తొచ్చి, మార్చాల్సిన అవసరం లేకపోయినా, మీరీ సందేశాన్ని పట్టించుకోనక్కర్లేదు. పాత సంకేతపదాన్నే వాడుతూ పోవచ్చు.',\n'passwordreset-emailtext-user' => '{{SITENAME}} లోని వాడుకరి $1, {{SITENAME}} ($4) లోని మీ ఖాతా వివరాలను చెప్పమంటూ అడిగారు. కింది వాడుకరి {{PLURAL:$3|ఖాతా|ఖాతాలు}}\nఈ ఈమెయిలు అడ్రసుతో అనుసంధింపబడి ఉన్నాయి:\n\n$2\n\n{{PLURAL:$3|ఈ తాత్కాలిక సంకేతపదానికి|ఈ తాత్కాలిక సంకేతపదాలకు}} {{PLURAL:$5|ఒక్క రోజులో|$5 రోజుల్లో}} కాలం చెల్లుతుంది.\nఇప్పుడు మీరు లాగినై కొత్త సంకేతపదాన్ని ఎంచుకోవాల్సి ఉంటుంది. ఈ అభ్యర్ధన చేసింది మరెవరైనా అయినా, లేక మీ అసలు సంకేతపదం మీకు గుర్తొచ్చి, మార్చాల్సిన అవసరం లేకపోయినా, మీరీ సందేశాన్ని పట్టించుకోనక్కర్లేదు. పాత సంకేతపదాన్నే వాడుతూ పోవచ్చు.',\n'passwordreset-emailelement' => 'వాడుకరిపేరు: $1\nతాత్కాలిక సంకేతపదం: $2',\n'passwordreset-emailsent' => 'జ్ఞాపకం ఈమెయిలు పంపించాం.',\n'passwordreset-emailsent-capture' => 'క్రింద చూపబడిన, గుర్తుచేయు సందేశమును పంపినాము.',\n\n# Special:ChangeEmail\n'changeemail' => 'ఈ-మెయిలు చిరునామా మార్పు',\n'changeemail-header' => 'ఖాతా ఈ-మెయిల్ చిరునామాని మార్చండి',\n'changeemail-text' => 'మీ ఈమెయిలు చిరునామాని మార్చుకోడానికి ఈ ఫారాన్ని నింపండి. ఈ మార్పుని నిర్ధారించడానికి మీ సంకేతపదాన్ని ఇవ్వాల్సివస్తుంది.',\n'changeemail-no-info' => 'ఈ పేజీని నేరుగా చూడటానికి మీరు లోనికి ప్రవేశించివుండాలి.',\n'changeemail-oldemail' => 'ప్రస్తుత ఈ-మెయిలు చిరునామా:',\n'changeemail-newemail' => 'కొత్త ఈ-మెయిలు చిరునామా:',\n'changeemail-none' => '(ఏమీలేదు)',\n'changeemail-password' => 'మీ {{SITENAME}} సంకేతపదం:',\n'changeemail-submit' => 'ఈ-మెయిల్ మార్చు',\n'changeemail-cancel' => 'రద్దుచేయి',\n\n# Edit page toolbar\n'bold_sample' => 'బొద్దు అక్షరాలు',\n'bold_tip' => 'బొద్దు అక్షరాలు',\n'italic_sample' => 'వాలు పాఠ్యం',\n'italic_tip' => 'వాలు పాఠ్యం',\n'link_sample' => 'లింకు పేరు',\n'link_tip' => 'అంతర్గత లింకు',\n'extlink_sample' => 'http://www.example.com లింకు పేరు',\n'extlink_tip' => 'బయటి లింకు (దీనికి ముందు http:// ఇవ్వటం మరువకండి)',\n'headline_sample' => 'శీర్షిక పాఠ్యం',\n'headline_tip' => '2వ స్థాయి శీర్షిక',\n'nowiki_sample' => 'ఫార్మాటు చేయకూడని పాఠ్యాన్ని ఇక్కడ చేర్చండి',\n'nowiki_tip' => 'వికీ ఫార్మాటును పట్టించుకోవద్దు',\n'image_tip' => 'పొదిగిన ఫైలు',\n'media_tip' => 'దస్త్రపు లంకె',\n'sig_tip' => 'సమయంతో సహా మీ సంతకం',\n'hr_tip' => 'అడ్డగీత (అరుదుగా వాడండి)',\n\n# Edit pages\n'summary' => 'సారాంశం:',\n'subject' => 'విషయం/శీర్షిక:',\n'minoredit' => 'ఇది ఒక చిన్న మార్పు',\n'watchthis' => 'ఈ పుట మీద కన్నేసి ఉంచు',\n'savearticle' => 'పేజీని భద్రపరచు',\n'preview' => 'మునుజూపు',\n'showpreview' => 'మునుజూపు',\n'showlivepreview' => 'తాజా మునుజూపు',\n'showdiff' => 'తేడాలను చూపించు',\n'anoneditwarning' => \"'''హెచ్చరిక:''' మీరు లోనికి ప్రవేశించలేదు.\nఈ పేజీ దిద్దుబాటు చరిత్రలో మీ ఐపీ చిరునామా నమోదవుతుంది.\",\n'anonpreviewwarning' => \"''మీరు లోనికి ప్రవేశించలేదు. భద్రపరిస్తే ఈ పేజీ యొక్క దిద్దుబాటు చరిత్రలో మీ ఐపీ చిరునామా నమోదవుతుంది.''\",\n'missingsummary' => \"'''గుర్తు చేస్తున్నాం:''' మీరు దిద్దుబాటు సారాంశమేమీ ఇవ్వలేదు. పేజీని మళ్ళీ భద్రపరచమని చెబితే సారాంశమేమీ లేకుండానే దిద్దుబాటును భద్రపరుస్తాం.\",\n'missingcommenttext' => 'కింద ఓ వ్యాఖ్య రాయండి.',\n'missingcommentheader' => \"'''గుర్తు చేస్తున్నాం''': ఈ వ్యాఖ్యకు మీరు విషయం/శీర్షిక పెట్టలేదు.\n\\\"{{int:savearticle}}\\\"ని మళ్ళీ నొక్కితే, మీ మార్పుకి విషయం/శీర్షిక ఏమీ లేకుండానే భద్రపరుస్తాం.\",\n'summary-preview' => 'మీరు రాసిన సారాంశం:',\n'subject-preview' => 'విషయం/శీర్షిక మునుజూపు:',\n'blockedtitle' => 'సభ్యునిపై నిరోధం అమలయింది',\n'blockedtext' => \"'''మీ వాడుకరి పేరుని లేదా ఐ.పీ. చిరునామాని నిరోధించారు.'''\n\nనిరోధించినది $1.\nఅందుకు ఇచ్చిన కారణం: ''$2''\n\n* నిరోధం మొదలైన సమయం: $8\n* నిరోధించిన కాలం: $6\n* నిరోధానికి గురైనవారు: $7\n\nఈ నిరోధంపై చర్చించేందుకు మీరు $1ను గాని, మరెవరైనా [[{{MediaWiki:Grouppage-sysop}}|నిర్వాహకులను]] గాని సంప్రదించవచ్చు.\nమీ [[Special:Preferences|ఖాతా అభిరుచులలో]] సరైన ఈ-మెయిలు చిరునామా ఇచ్చివుండకపోయినా లేదా మిమ్మల్ని 'ఈ వాడుకరికి ఈ-మెయిలు పంపు' సౌలభ్యాన్ని వాడుకోవడం నుండి నిరోధించివున్నా మీరు ఈమెయిలు ద్వారా సంప్రదించలేరు.\nమీ ప్రస్తుత ఐ.పీ. చిరునామా $3, మరియు నిరోధపు ID #$5.\nమీ సంప్రదింపులన్నిటిలోనూ వీటిని పేర్కొనండి.\",\n'autoblockedtext' => 'మీ ఐపీ చిరునామా ఆటోమాటిగ్గా నిరోధించబడింది. ఎందుకంటే ఇదే ఐపీ చిరునామాని ఓ నిరోధిత వాడుకరి ఉపయోగించారు. ఆ వాడుకరిని $1 నిరోధించారు.\nఅందుకు ఇచ్చిన కారణం ఇదీ:\n\n:\\'\\'$2\\'\\'\n\n* నిరోధం మొదలైన సమయం: $8\n* నిరోధించిన కాలం: $6\n* ఉద్దేశించిన నిరోధిత వాడుకరి: $7\n\nఈ నిరోధం గురించి చర్చించేందుకు మీరు $1 ను గానీ, లేదా ఇతర [[{{MediaWiki:Grouppage-sysop}}|నిర్వాహకులను]] గానీ సంప్రదించండి.\n\nమీ [[Special:Preferences|అభిరుచులలో]] సరైన ఈమెయిలు ఐడీని ఇచ్చి ఉంటే తప్ప, మీరు \"ఈ సభ్యునికి మెయిలు పంపు\" అనే అంశాన్ని వాడజాలరని గమనించండి. ఆ సౌలభ్యాన్ని వాడటం నుండి మిమ్మల్ని నిరోధించలేదు.\n\nమీ ప్రస్తుత ఐపీ చిరునామా $3, మరియు నిరోధపు ఐడీ: $5.\nమీ సంప్రదింపులన్నిటిలోను అన్ని పై వివరాలను ఉదహరించండి.',\n'blockednoreason' => 'కారణమేమీ ఇవ్వలేదు',\n'whitelistedittext' => 'పుటలలో మార్పులు చెయ్యడానికి మీరు $1 ఉండాలి.',\n'confirmedittext' => 'పేజీల్లో మార్పులు చేసేముందు మీ ఈ-మెయిలు చిరునామా ధృవీకరించాలి. [[Special:Preferences|మీ అభిరుచుల]]లో మీ ఈ-మెయిలు చిరునామా రాసి, ధృవీకరించండి.',\n'nosuchsectiontitle' => 'విభాగాన్ని కనగొనలేకపోయాం',\n'nosuchsectiontext' => 'మీరు లేని విభాగాన్ని మార్చడానికి ప్రయత్నించారు.\nమీరు పేజీని చూస్తూన్నప్పుడు దాన్ని ఎవరైనా తరలించి లేదా తొలగించి ఉండవచ్చు.',\n'loginreqtitle' => 'ప్రవేశము తప్పనిసరి',\n'loginreqlink' => 'లోనికి రండి',\n'loginreqpagetext' => 'ఇతర పుటలను చూడడానికి మీరు $1 ఉండాలి.',\n'accmailtitle' => 'సంకేతపదం పంపించబడింది.',\n'accmailtext' => \"[[User talk:$1|$1]] కొరకు ఒక యాదృచ్చిక సంకేతపదాన్ని $2కి పంపించాం.\n\nఈ కొత్త ఖాతా యొక్క సంకేతపదాన్ని లోనికి ప్రవేశించిన తర్వాత ''[[Special:ChangePassword|సంకేతపదాన్ని మార్చుకోండి]]'' అన్న పేజీలో మార్చుకోవచ్చు.\",\n'newarticle' => '(కొత్తది)',\n'newarticletext' => \"ఈ లింకుకు సంబంధించిన పేజీ ఉనికిలొ లేదు.\nకింది పెట్టెలో మీ రచనను టైపు చేసి ఆ పేజీని సృష్టించండి (దీనిపై సమాచారం కొరకు [[{{MediaWiki:Helppage}}|సహాయం]] పేజీ చూడండి). మీరిక్కడికి పొరపాటున వచ్చి ఉంటే, మీ బ్రౌజరు '''back''' మీట నొక్కండి.\",\n'anontalkpagetext' => \"----''ఇది ఒక అజ్ఞాత వాడుకరి చర్చా పేజీ. ఆ వాడుకరి ఇంకా తనకై ఖాతాను సృష్టించుకోలేదు, లేదా ఖాతా ఉన్నా దానిని ఉపయోగించడం లేదు. అజ్ఞాత వాడుకరులను గుర్తించడానికి అంకెలతో ఉండే ఐ.పీ. చిరునామాను వాడుతాం. కానీ, ఒకే ఐ.పీ. చిరునామాని చాలా మంది వాడుకరులు ఉపయోగించే అవకాశం ఉంది. మీరు అజ్ఞాత వాడుకరి అయితే మరియు సంబంధంలేని వ్యాఖ్యలు మిమ్మల్ని ఉద్దేశించినట్టుగా అనిపిస్తే, భవిష్యత్తులో ఇతర అజ్ఞాత వాడుకరులతో అయోమయం లేకుండా ఉండటానికి, దయచేసి [[Special:UserLogin/signup|ఖాతాను సృష్టించుకోండి]] లేదా [[Special:UserLogin|లోనికి ప్రవేశించండి]].''\",\n'noarticletext' => 'ప్రస్తుతం ఈ పేజీలో పాఠ్యమేమీ లేదు.\nవేరే పేజీలలో [[Special:Search/{{PAGENAME}}|ఈ పేజీ శీర్షిక కోసం వెతకవచ్చు]],\n[{{fullurl:{{#Special:Log}}|page={{FULLPAGENAMEE}}}} సంబంధిత చిట్టాలు చూడవచ్చు],\nలేదా [{{fullurl:{{FULLPAGENAME}}|action=edit}} ఈ పేజీని మార్చవచ్చు].',\n'noarticletext-nopermission' => 'ప్రస్తుతం ఈ పేజీలో పాఠ్యమేమీ లేదు.\nమీరు ఇతర పేజీలలో [[Special:Search/{{PAGENAME}}|ఈ పేజీ శీర్షిక కోసం వెతకవచ్చు]], లేదా [{{fullurl:{{#Special:Log}}|page={{FULLPAGENAMEE}}}} సంబంధిత చిట్టాలలో వెతకవచ్చు], కానీ ఈ పేజీని సృష్టించడానికి మీకు అనుమతి లేదు.',\n'userpage-userdoesnotexist' => '\"$1\" అనే వాడుకరి ఖాతా నమోదయిలేదు. మీరు ఈ పేజీని సృష్టించ/సరిదిద్దాలనుకుంటే, సరిచూసుకోండి.',\n'userpage-userdoesnotexist-view' => 'వాడుకరి ఖాతా \"$1\" నమోదుకాలేదు.',\n'blocked-notice-logextract' => 'ప్రస్తుతం ఈ వాడుకరిని నిరోధించారు.\nనిరోధపు చిట్టాలోని చివరి పద్దుని మీ సమాచారం కోసం ఈ క్రింద ఇస్తున్నాం:',\n'clearyourcache' => \"'''గమనిక - భద్రపరచిన తర్వాత, మార్పులను చూడడానికి మీ విహారిణి యొక్క కోశాన్ని తీసేయాల్సిరావచ్చు.''' '''మొజిల్లా/ ఫైర్‌ఫాక్స్‌ / సఫారి:''' ''Shift'' మీటని నొక్కిపట్టి ''రీలోడ్''ని నొక్కండి లేదా ''Ctrl-F5'' అనే మీటల్ని లేదా ''Ctrl-R'' (మాకింటోషులో ''Command-R'') అనే మీటల్ని కలిపి నొక్కండి; '''కాంకరర్: '''''రీలోడ్''ని నొక్కండి లేదా ''F5'' మీటని నొక్కండి; '''ఒపెరా:''' ''Tools → Preferences'' ద్వారా కోశాన్ని శుభ్రపరచండి; '''ఇంటర్నెట్ ఎక్ప్లోరర్:'''''Ctrl'' మీటని నొక్కిపట్టి ''రీఫ్రెష్''ని నొక్కండి లేదా ''Ctrl-F5'' మీటల్ని కలిపి నొక్కండి.\",\n'usercssyoucanpreview' => \"'''చిట్కా:''' భద్రపరిచేముందు మీ కొత్త CSSని పరీక్షించడానికి \\\"{{int:showpreview}}\\\" అనే బొత్తాన్ని వాడండి.\",\n'userjsyoucanpreview' => \"'''చిట్కా:''' భద్రపరిచేముందు మీ కొత్త జావాస్క్రిప్టుని పరీక్షించడానికి \\\"{{int:showpreview}}\\\" అనే బొత్తాన్ని వాడండి.\",\n'usercsspreview' => \"'''మీరు వాడుకరి CSSను కేవలం సరిచూస్తున్నారని గుర్తుంచుకోండి.'''\n'''దాన్నింకా భద్రపరచలేదు!'''\",\n'userjspreview' => \"'''గుర్తుంచుకోండి, మీరింకా మీ వాడుకరి జావాస్క్రిప్ట్&zwnj;ను భద్రపరచలేదు, కేవలం పరీక్షిస్తున్నారు/సరిచూస్తున్నారు!'''\",\n'sitecsspreview' => \"'''మీరు చూస్తున్నది ఈ CSS మునుజూపును మాత్రమేనని గుర్తుంచుకోండి.'''\n'''దీన్నింకా భద్రపరచలేదు!'''\",\n'sitejspreview' => \"'''మీరు చూస్తున్నది ఈ JavaScript మునుజూపును మాత్రమేనని గుర్తుంచుకోండి.''' \n'''దీన్నింకా భద్రపరచలేదు!'''\",\n'userinvalidcssjstitle' => \"'''హెచ్చరిక:''' \\\"\\$1\\\" అనే అలంకారం లేదు.\nఅభిమత .css మరియు .js పుటల శీర్షికలు ఇంగ్లీషు చిన్నబడి అక్షరాల లోనే ఉండాలని గుర్తుంచుకోండి, ఉదాహరణకు ఇలా {{ns:user}}:Foo/vector.css అంతేగానీ, {{ns:user}}:Foo/Vector.css ఇలా కాదు.\",\n'updated' => '(నవీకరించబడింది)',\n'note' => \"'''గమనిక:'''\",\n'previewnote' => \"'''ఇది మునుజూపు మాత్రమేనని గుర్తుంచుకోండి.'''\nమీ మార్పులు ఇంకా భద్రమవ్వలేదు!\",\n'continue-editing' => 'సరిదిద్దే చోటుకి వెళ్ళండి',\n'previewconflict' => 'భద్రపరచిన తరువాత పై టెక్స్ట్‌ ఏరియాలోని టెక్స్టు ఇలాగ కనిపిస్తుంది.',\n'session_fail_preview' => \"'''క్షమించండి! సెషను డేటా పోవడం వలన మీ మార్పులను స్వీకరించలేకపోతున్నాం.'''\nదయచేసి మళ్ళీ ప్రయత్నించండి.\nఅయినా పని జరక్కపోతే, ఓసారి [[Special:UserLogout|నిష్క్రమించి]] మళ్ళీ లోనికి ప్రవేశించి ప్రయత్నించండి.\",\n'session_fail_preview_html' => \"'''సారీ! సెషను డేటా పోవడం వలన మీ దిద్దుబాటును ప్రాసెస్ చెయ్యలేలేక పోతున్నాం.'''\n\n''{{SITENAME}}లో ముడి HTML సశక్తమై ఉంది కాబట్టి, జావాస్క్రిప్టు దాడుల నుండి రక్షణగా మునుజూపును దాచేశాం.''\n\n'''మీరు చేసినది సరైన దిద్దుబాటే అయితే, మళ్ళీ ప్రయత్నించండి. అయినా పనిచెయ్యకపోతే, ఓ సారి లాగౌటయ్యి, మళ్ళీ లాగినయి చూడండి.'''\",\n'token_suffix_mismatch' => \"'''మీ క్లయంటు, దిద్దుబాటు టోకెన్‌లోని వ్యాకరణ గుర్తులను గజిబిజి చేసింది కాబట్టి మీ దిద్దుబాటును తిరస్కరించాం. పేజీలోని పాఠ్యాన్ని చెడగొట్టకుండా ఉండేందుకు గాను, ఆ దిద్దుబాటును రద్దు చేశాం. వెబ్‌లో ఉండే లోపభూయిష్టమైన అజ్ఞాత ప్రాక్సీ సర్వీసులను వాడినపుడు ఒక్కోసారి ఇలా జరుగుతుంది.'''\",\n'edit_form_incomplete' => '’’’ఈ ఎడిట్ ఫారంలోని కొన్ని భాగాలు సర్వరును చేరలేదు; మీ మార్పుచేర్పులు భద్రంగా ఉన్నాయని ధృవపరచుకుని, మళ్ళీ ప్రయత్నించండి.’’’',\n'editing' => '$1కి మార్పులు',\n'creating' => '$1 పేజీని సృష్టిస్తున్నారు',\n'editingsection' => '$1కు మార్పులు (విభాగం)',\n'editingcomment' => '$1 దిద్దుబాటు (కొత్త విభాగం)',\n'editconflict' => 'దిద్దుబాటు ఘర్షణ: $1',\n'explainconflict' => \"మీరు మార్పులు చెయ్యడం మొదలుపెట్టిన తరువాత, వేరే ఎవరో ఈ పుటని మార్పారు.\nపైన ఉన్న పాఠ్య పేటికలో ఈ పుట యొక్క ప్రస్తుతపు పాఠ్యం ఉంది.\nమీరు చేసిన మార్పులు క్రింది పాఠ్య పేటికలో చూపించబడ్డాయి.\nమీరు మీ మార్పులను ప్రస్తుతపు పాఠ్యంలో విలీనం చెయ్యవలసి ఉంటుంది.\nమీరు \\\"{{int:savearticle}}\\\"ను నొక్కినపుడు, పై పాఠ్య పేటికలో ఉన్న పాఠ్యం '''మాత్రమే''' భద్రపరచబడుతుంది.\",\n'yourtext' => 'మీ పాఠ్యం',\n'storedversion' => 'భద్రపరచిన కూర్పు',\n'nonunicodebrowser' => \"'''WARNING: Your browser is not unicode compliant. A workaround is in place to allow you to safely edit pages: non-ASCII characters will appear in the edit box as hexadecimal codes.'''\",\n'editingold' => \"'''హెచ్చ రిక: ఈ పేజీ యొక్క కాలం చెల్లిన సంచికను మీరు మరుస్తున్నారు. దీనిని భద్రపరిస్తే, ఆ సంచిక తరువాత ఈ పేజీలో జరిగిన మార్పులన్నీ పోతాయి.'''\",\n'yourdiff' => 'తేడాలు',\n'copyrightwarning' => \"{{SITENAME}}కు సమర్పించే అన్ని రచనలూ $2కు లోబడి ప్రచురింపబడినట్లుగా భావించబడతాయి (వివరాలకు $1 చూడండి). మీ రచనలను ఎవ్వరూ మార్చ రాదనీ లెదా వేరే ఎవ్వరూ వాడుకో రాదని మీరు భావిస్తే, ఇక్కడ ప్రచురించకండి.
మీ స్వీయ రచనను గాని, సార్వజనీనమైన రచననుగాని, ఇతర ఉచిత వనరుల నుండి సేకరించిన రచననుగాని మాత్రమే ప్రచురిస్తున్నానని కూడా మీరు ప్రమాణం చేస్తున్నారు. '''కాపీహక్కులుగల రచనను తగిన అనుమతి లేకుండా సమర్పించకండి!'''\",\n'copyrightwarning2' => \"{{SITENAME}}లో ప్రచురించే రచనలన్నిటినీ ఇతర రచయితలు సరిదిద్దడం, మార్చడం, తొలగించడం చేసే అవకాశం ఉంది. మీ రచనలను అలా నిర్దాక్షిణ్యంగా దిద్దుబాట్లు చెయ్యడం మీకిష్టం లేకపోతే, వాటిని ఇక్కడ ప్రచురించకండి.
\nఈ రచనను మీరే చేసారని, లేదా ఏదైనా సార్వజనిక వనరు నుండి కాపీ చేసి తెచ్చారని, లేదా అలాంటి ఉచిత, స్వేచ్ఛా వనరు నుండి తెచ్చారని మాకు వాగ్దానం చేస్తున్నారు. (వివరాలకు $1 చూడండి).\n'''తగు అనుమతులు లేకుండా కాపీ హక్కులు గల రచనలను సమర్పించకండి!'''\",\n'longpageerror' => \"'''పొరపాటు: మీరు సమర్పించిన పాఠ్యం, గరిష్ఠ పరిమితి అయిన {{PLURAL:$2|ఒక కిలోబైటుని|$2 కిలోబైట్లను}} మించి {{PLURAL:$1|ఒక కిలోబైటు|$1 కిలోబైట్ల}} పొడవుంది.'''\n దీన్ని భద్రపరచలేము.\",\n'readonlywarning' => \"'''హెచ్చరిక: నిర్వహణ కొరకు డేటాబేసుకి తాళం వేసారు, కాబట్టి మీ మార్పుచేర్పులను ఇప్పుడు భద్రపరచలేరు. మీ మార్పులను ఒక ఫాఠ్య ఫైలులోకి కాపీ చేసి భద్రపరచుకొని, తరువాత సమర్పించండి.'''\n\nతాళం వేసిన నిర్వాహకుడి వివరణ ఇదీ: $1\",\n'protectedpagewarning' => \"'''హెచ్చరిక: ఈ పేజీ సంరక్షించబడినది, కనుక నిర్వాహక అనుమతులు ఉన్న వాడుకరులు మాత్రమే మార్చగలరు.'''\nచివరి చిట్టా పద్దుని మీ సమాచారం కోసం ఇక్కడ ఇస్తున్నాం:\",\n'semiprotectedpagewarning' => \"'''గమనిక:''' నమోదయిన వాడుకరులు మాత్రమే మార్పులు చెయ్యగలిగేలా ఈ పేజీకి సంరక్షించారు.\nమీ సమాచారం కోసం చివరి చిట్టా పద్దుని ఇక్కడ ఇస్తున్నాం:\",\n'cascadeprotectedwarning' => \"'''హెచ్చరిక:''' ఈ పేజీ, కాస్కేడింగు రక్షణలో ఉన్న కింది {{PLURAL:$1|పేజీ|పేజీల్లో}} ఇంక్లూడు అయి ఉంది కాబట్టి, నిర్వాహకులు తప్ప ఇతరులు దిద్దుబాటు చేసే వీలు లేకుండా పేజీని లాకు చేసాం:\",\n'titleprotectedwarning' => \"హెచ్చరిక: ఈ పేజీని సంరక్షించారు కాబట్టి దీన్ని సృష్టించడానికి [[Special:ListGroupRights|ప్రత్యేక హక్కులు]] ఉండాలి.'''\nమీ సమాచారం కోసం చివరి చిట్టా పద్దుని ఇక్కడ ఇస్తున్నాం:\",\n'templatesused' => 'ఈ పేజీలో వాడిన {{PLURAL:$1|మూస|మూసలు}}:',\n'templatesusedpreview' => 'ఈ మునుజూపులో వాడిన {{PLURAL:$1|మూస|మూసలు}}:',\n'templatesusedsection' => 'ఈ విభాగంలో వాడిన {{PLURAL:$1|మూస|మూసలు}}:',\n'template-protected' => '(సంరక్షితం)',\n'template-semiprotected' => '(సెమీ-రక్షణలో ఉంది)',\n'hiddencategories' => 'ఈ పేజీ {{PLURAL:$1|ఒక దాచిన వర్గంలో|$1 దాచిన వర్గాల్లో}} ఉంది:',\n'nocreatetext' => '{{SITENAME}}లో కొత్త పేజీలు సృష్టించడాన్ని నియంత్రించారు.\nమీరు వెనక్కి వెళ్ళి వేరే పేజీలు మార్చవచ్చు, లేదా [[Special:UserLogin|లోనికి ప్రవేశించండి లేదా ఖాతా సృష్టించుకోండి]].',\n'nocreate-loggedin' => 'కొత్త పేజీలను సృష్టించేందుకు మీకు అనుమతి లేదు.',\n'sectioneditnotsupported-title' => 'విభాగపు దిద్దిబాట్లకి తొడ్పాటు లేదు',\n'sectioneditnotsupported-text' => 'ఈ పేజీలో విభాగాల దిద్దుబాటుకి తోడ్పాటు లేదు.',\n'permissionserrors' => 'అనుమతుల తప్పిదాలు',\n'permissionserrorstext' => 'కింద పేర్కొన్న {{PLURAL:$1|కారణం|కారణాల}} మూలంగా, ఆ పని చెయ్యడానికి మీకు అనుమతిలేదు:',\n'permissionserrorstext-withaction' => 'ఈ క్రింది {{PLURAL:$1|కారణం|కారణాల}} వల్ల, మీకు $2 అనుమతి లేదు:',\n'recreate-moveddeleted-warn' => \"'''హెచ్చరిక: ఇంతకు మునుపు ఒకసారి తొలగించిన పేజీని మళ్లీ సృష్టిద్దామని మీరు ప్రయత్నిస్తున్నారు.'''\n\nఈ పేజీపై మార్పులు చేసేముందు, అవి ఇక్కడ ఉండతగినవేనా కాదా అని ఒకసారి ఆలోచించండి.\nమీ సౌలభ్యం కొరకు ఈ పేజీ యొక్క తొలగింపు మరియు తరలింపు చిట్టా ఇక్కడ ఇచ్చాము:\",\n'moveddeleted-notice' => 'ఈ పేజీని తొలగించారు.\nసమాచారం కొరకు ఈ పేజీ యొక్క తొలగింపు మరియు తరలింపు చిట్టాని క్రింద ఇచ్చాం.',\n'log-fulllog' => 'పూర్తి చిట్టాని చూడండి',\n'edit-hook-aborted' => 'కొక్కెం మార్పుని విచ్ఛిన్నం చేసింది.\nఅది ఎటువంటి వివరణా ఇవ్వలేదు.',\n'edit-gone-missing' => 'పేజీని మార్చలేము.\nదీన్ని తొలగించినట్టున్నారు.',\n'edit-conflict' => 'మార్పు సంఘర్షణ.',\n'edit-no-change' => 'పాఠ్యంలో ఏమీ మార్పులు లేవు గనక, మీ మార్పుని పట్టించుకోవట్లేదు.',\n'postedit-confirmation' => 'మీ మార్పు భద్రమయ్యింది.',\n'edit-already-exists' => 'కొత్త పేజీని సృష్టించలేము.\nఅది ఇప్పటికే ఉంది.',\n'defaultmessagetext' => 'అప్రమేయ సందేశపు పాఠ్యం',\n'invalid-content-data' => 'తప్పుడు విషయం',\n'editwarning-warning' => 'ఈ పేజీని వదిలివెళ్ళడం వల్ల మీరు చేసిన మార్పులను కోల్పోయే అవకాశం ఉంది.\nమీరు ప్రవేశించివుంటే, ఈ హెచ్చరికని మీ అభిరుచులలో \"మరపులు\" అనే విభాగంలో అచేతనం చేసుకోవచ్చు.',\n\n# Content models\n'content-model-wikitext' => 'వికీపాఠ్యం',\n'content-model-text' => 'సాదా పాఠ్యం',\n'content-model-javascript' => 'జావాస్క్రిప్ట్',\n'content-model-css' => 'CSS',\n\n# Parser/template warnings\n'expensive-parserfunction-warning' => 'హెచ్చరిక: ఈ పేజీలో ఖరీదైన పార్సరు పిలుపులు చాలా ఉన్నాయి.\n\nపార్సరు {{PLURAL:$2|పిలుపు|పిలుపులు}} $2 కంటే తక్కువ ఉండాలి, ప్రస్తుతం {{PLURAL:$1|$1 పిలుపు ఉంది|$1 పిలుపులు ఉన్నాయి}}.',\n'expensive-parserfunction-category' => 'పార్సరు సందేశాలు అధికంగా ఉన్న పేజీలు',\n'post-expand-template-inclusion-warning' => \"'''హెచ్చరిక''': మూస చేర్పు సైజు చాలా పెద్దదిగా ఉంది.\nకొన్ని మూసలను చేర్చలేదు.\",\n'post-expand-template-inclusion-category' => 'మూస చేర్పు సైజును అధిగమించిన పేజీలు',\n'post-expand-template-argument-warning' => 'హెచ్చరిక: చాల పెద్ద సైజున్న మూస ఆర్గ్యుమెంటు, కనీసం ఒకటి, ఈ పేజీలో ఉంది.\nఈ ఆర్గ్యుమెంట్లను వదలివేసాం.',\n'post-expand-template-argument-category' => 'తొలగించిన మూస ఆర్గ్యుమెంట్లు ఉన్న పేజీలు',\n'parser-template-loop-warning' => 'మూస లూపు కనబడింది: [[$1]]',\n'parser-template-recursion-depth-warning' => 'మూస రికర్షను లోతు అధిగమించబడింది ($1)',\n'language-converter-depth-warning' => 'భాషా మార్పిడి లోతు పరిమితిని అధిగమించారు ($1)',\n\n# \"Undo\" feature\n'undo-success' => 'దిద్దుబాటును రద్దు చెయ్యవచ్చు. కింది పోలికను చూసి, మీరు చెయ్యదలచినది ఇదేనని నిర్ధారించుకోండి. ఆ తరువాత మార్పులను భద్రపరచి దిద్దుబాటు రద్దును పూర్తి చెయ్యండి.',\n'undo-failure' => 'మధ్యలో జరిగిన దిద్దుబాట్లతో తలెత్తిన ఘర్షణ కారణంగా ఈ దిద్దుబాటును రద్దు చెయ్యలేక పోయాం.',\n'undo-norev' => 'ఈ దిద్దుబాటును అసలు లేకపోవటం వలన, లేదా తొలగించేయడం వలన రద్దుచేయలేకపోతున్నాం.',\n'undo-summary' => '[[Special:Contributions/$2|$2]] ([[User talk:$2|చర్చ]]) దిద్దుబాటు చేసిన కూర్పు $1 ను రద్దు చేసారు',\n\n# Account creation failure\n'cantcreateaccounttitle' => 'ఈ ఖాతా తెరవలేము',\n'cantcreateaccount-text' => \"ఈ ఐపీ అడ్రసు ('''$1''') నుండి ఖాతా సృష్టించడాన్ని [[User:$3|$3]] నిరోధించారు.\n\n$3 చెప్పిన కారణం: ''$2''\",\n\n# History pages\n'viewpagelogs' => 'ఈ పేజీకి సంబంధించిన లాగ్‌లను చూడండి',\n'nohistory' => 'ఈ పేజీకి మార్పుల చరిత్ర లేదు.',\n'currentrev' => 'ప్రస్తుతపు సంచిక',\n'currentrev-asof' => '$1 నాటి ప్రస్తుత కూర్పు',\n'revisionasof' => '$1 నాటి సంచిక',\n'revision-info' => '$1 నాటి కూర్పు. రచయిత: $2',\n'previousrevision' => '← పాత కూర్పు',\n'nextrevision' => 'దీని తరువాతి సంచిక→',\n'currentrevisionlink' => 'ప్రస్తుతపు సంచిక',\n'cur' => 'ప్రస్తుత',\n'next' => 'తర్వాతి',\n'last' => 'గత',\n'page_first' => 'మొదటి',\n'page_last' => 'చివరి',\n'histlegend' => 'తేడా ఎంపిక: సంచికల యొక్క రేడియో బాక్సులను ఎంచుకొని ఎంటర్‌ నొక్కండి, లేదా పైన/ కింద ఉన్న మీటను నొక్కండి.
\nసూచిక: (ప్రస్తుత) = ప్రస్తుత సంచికతో కల తేడాలు, (గత) = ఇంతకు ముందరి సంచికతో గల తేడాలు, చి = చిన్న మార్పు',\n'history-fieldset-title' => 'చరిత్రలో చూడండి',\n'history-show-deleted' => 'తొలగించినవి మాత్రమే',\n'histfirst' => 'తొట్టతొలి',\n'histlast' => 'చిట్టచివరి',\n'historysize' => '({{PLURAL:$1|ఒక బైటు|$1 బైట్లు}})',\n'historyempty' => '(ఖాళీ)',\n\n# Revision feed\n'history-feed-title' => 'కూర్పుల చరిత్ర',\n'history-feed-description' => 'ఈ పేజీకి వికీలో కూర్పుల చరిత్ర',\n'history-feed-item-nocomment' => '$2 వద్ద ఉన్న $1',\n'history-feed-empty' => 'మీరడిగిన పేజీ లేదు.\nదాన్ని వికీలోంచి తొలగించి ఉండొచ్చు, లేదా పేరు మార్చి ఉండొచ్చు.\nసంబంధిత కొత్త పేజీల కోసం [[Special:Search|వికీలో వెతికి చూడండి]].',\n\n# Revision deletion\n'rev-deleted-comment' => '(మార్పుల సంగ్రహాన్ని తొలగించారు)',\n'rev-deleted-user' => '(వాడుకరి పేరుని తొలగించారు)',\n'rev-deleted-event' => '(దినచర్యని తొలగించాం)',\n'rev-deleted-user-contribs' => '[వాడుకరిపేరు లేదా ఐపీ చిరునామాని తొలగించారు - మార్పుచేర్పుల నుండి మార్పుని దాచారు]',\n'rev-deleted-text-permission' => \"ఈ పేజీ కూర్పుని '''తొలగించారు'''.\n[{{fullurl:{{#Special:Log}}/delete|page={{FULLPAGENAMEE}}}} తొలగింపు చిట్టా]లో పూర్తి వివరాలు ఉండవచ్చు.\",\n'rev-deleted-text-unhide' => \"ఈ పేజీ కూర్పుని '''తొలగించారు'''.\n[{{fullurl:{{#Special:Log}}/delete|page={{FULLPAGENAMEE}}}} తొలగింపు చిట్టా]లో వివరాలు ఉండవచ్చు.\nమీరు కావాలనుకుంటే, నిర్వాహకులుగా [$1 ఈ కూర్పుని చూడవచ్చు].\",\n'rev-suppressed-text-unhide' => \"ఈ పేజీకూర్పును '''అణచి పెట్టాం'''.\n[{{fullurl:{{#Special:Log}}/suppress|page={{FULLPAGENAMEE}}}} అణచివేత చిట్టా]లో వివరాలు ఉండొచ్చు.\nముందుకు సాగాలనుకుంటే ఒక నిర్వాహకుడిగా మీరీ [$1 కూర్పును చూడవచ్చు].\",\n'rev-deleted-text-view' => \"ఈ పేజీ కూర్పుని '''తొలగించారు'''.\nఒక నిర్వాహకుడిగా మీరు దాన్ని చూడవచ్చు; [{{fullurl:{{#Special:Log}}/delete|page={{FULLPAGENAMEE}}}} తొలగింపు చిట్టా]లో వివరాలు ఉండవచ్చు.\",\n'rev-suppressed-text-view' => \"ఈ పేజీకూర్పును '''అణచి పెట్టాం'''.\nఒక నిర్వాహకుడిగా మీరు దాన్ని చూడవచ్చు; [{{fullurl:{{#Special:Log}}/suppress|page={{FULLPAGENAMEE}}}} అణచివేత చిట్టా]లోవివరాలు ఉండవచ్చు.\",\n'rev-deleted-no-diff' => \"మీరు తేడాలను చూడలేదు ఎందుకంటే ఒక కూర్పుని '''తొలగించారు'''.\n[{{fullurl:{{#Special:Log}}/delete|page={{FULLPAGENAMEE}}}} తొలగింపు చిట్టా]లో వివరాలు ఉండవచ్చు.\",\n'rev-suppressed-no-diff' => \"ఈ తేడాని మీరు చూడలేరు ఎందుకంటే ఒక కూర్పుని '''తొలగించారు'''.\",\n'rev-deleted-unhide-diff' => \"ఈ తేడాల యొక్క కూర్పులలో ఒకదాన్ని '''తొలగించారు'''.\n[{{fullurl:{{#Special:Log}}/delete|page={{FULLPAGENAMEE}}}} తొలగింపు చిట్టా]లో వివరాలు ఉండవచ్చు.\nమీరు కావాలనుకుంటే నిర్వాహకులుగా [$1 ఈ తేడాని చూడవచ్చు].\",\n'rev-suppressed-unhide-diff' => \"ఈ తేడా లోని ఒక కూర్పును '''అణచి పెట్టాం'''.\n[{{fullurl:{{#Special:Log}}/suppress|page={{FULLPAGENAMEE}}}} అణచివేత చిట్టా]లోవివరాలు ఉండవచ్చు. కావాలనుకుంటే, ఒక నిర్వాహకుడిగా మీరు [$1 ఆ తేడాను చూడవచ్చు].\",\n'rev-deleted-diff-view' => \"ఈ తేడా లోని ఒక పేజీకూర్పును '''తొలగించాం'''.\nఒక నిర్వాహకుడిగా మీరు ఈ తేడాను చూడవచ్చు; [{{fullurl:{{#Special:Log}}/delete|page={{FULLPAGENAMEE}}}} తొలగింపు చిట్టా]లోవివరాలు ఉండవచ్చు.\",\n'rev-suppressed-diff-view' => \"\nఈ తేడా లోని ఒక కూర్పును '''అణచి పెట్టాం'''.\nఒక నిర్వాహకుడిగా మీరు ఈ తేడాను చూడవచ్చు; [{{fullurl:{{#Special:Log}}/suppress|page={{FULLPAGENAMEE}}}} అణచివేత చిట్టా]లోవివరాలు ఉండవచ్చు.\",\n'rev-delundel' => 'చూపించు/దాచు',\n'rev-showdeleted' => 'చూపించు',\n'revisiondelete' => 'కూర్పులను తొలగించు/తొలగింపును రద్దుచెయ్యి',\n'revdelete-nooldid-title' => 'తప్పుడు లక్ష్యపు కూర్పు',\n'revdelete-nooldid-text' => 'ఈ పని ఏ కూర్పు లేదా కూర్పుల మీద చెయ్యాలో మీరు సూచించలేదు, లేదా మీరు సూచించిన కూర్పు లేదు, లేదా ప్రస్తుత కూర్పునే దాచాలని ప్రయత్నిస్తున్నారు.',\n'revdelete-nologtype-title' => 'చిట్టా రకం ఇవ్వలేదు',\n'revdelete-nologtype-text' => 'ఈ చర్య జరపాల్సిన చిట్టా రకాన్ని మీరు పేర్కొననేలేదు.',\n'revdelete-nologid-title' => 'తప్పుడు చిట్టా పద్దు',\n'revdelete-nologid-text' => 'ఈ పని చేయడానికి మీరు లక్ష్యిత చిట్టా పద్దుని ఇవ్వలేదు లేదా మీరు చెప్పిన పద్దు ఉనికిలో లేదు.',\n'revdelete-no-file' => 'ఆ పేర్కొన్న ఫైలు ఉనికిలో లేదు.',\n'revdelete-show-file-confirm' => 'మీరు నిజంగానే \"$1\" ఫైలు యొక్క $2 $3 నాటి తొలగించిన కూర్పుని చూడాలనుకుంటున్నారా?',\n'revdelete-show-file-submit' => 'అవును',\n'revdelete-selected' => \"'''[[:$1]] యొక్క {{PLURAL:$2|ఎంచుకున్న కూర్పు|ఎంచుకున్న కూర్పులు}}:'''\",\n'logdelete-selected' => \"'''{{PLURAL:$1|ఎంచుకున్న చిట్టా ఘటన|ఎంచుకున్న చిట్టా ఘటనలు}}:'''\",\n'revdelete-text' => \"'''తొలగించిన కూర్పులు, ఘటనలూ పేజీ చరితం లోనూ, చిట్టాలలోనూ కనిపిస్తాయి, కానీ వాటిలో కొన్ని భాగాలు సార్వజనికంగా అందుబాటులో ఉండవు.'''\n{{SITENAME}} లోని ఇతర నిర్వాహకులు ఆ దాచిన భాగాలను చూడగలరు మరియు (ఏవిధమైన నియంత్రణలూ లేకుంటే) ఇదే అంతరవర్తి ద్వారా వాటిని పునస్థాపించగలరు.\",\n'revdelete-confirm' => 'మీరు దీన్ని చేయగోరుతున్నారనీ, దీని పర్యవసానాలు మీకు తెలుసుననీ, మరియు మీరు దీన్ని [[{{MediaWiki:Policy-url}}|విధానం]] ప్రకారమే చేస్తున్నారనీ దయచేసి నిర్ధారించండి.',\n'revdelete-suppress-text' => 'అణచివేతను కింది సందర్భాలలో \"మాత్రమే\" వాడాలి:\n* బురదజల్లే ధోరణిలో ఉన్న సమాచారం\n* అనుచితమైన వ్యక్తిగత సమాచారం\n* \"ఇంటి చిరునామాలు, టెలిఫోను నంబర్లు, సోషల్ సెక్యూరిటీ నంబర్లు, వగైరాలు\"',\n'revdelete-legend' => 'సందర్శక నిబంధనలు అమర్చు',\n'revdelete-hide-text' => 'కూర్పు పాఠ్యాన్ని దాచు',\n'revdelete-hide-image' => 'ఫైలులోని విషయాన్ని దాచు',\n'revdelete-hide-name' => 'చర్యను, లక్ష్యాన్నీ దాచు',\n'revdelete-hide-comment' => 'దిద్దుబాటు వ్యాఖ్యను దాచు',\n'revdelete-hide-user' => 'దిద్దుబాటు చేసినవారి సభ్యనామాన్ని/ఐపీని దాచు',\n'revdelete-hide-restricted' => 'డేటాను అందరిలాగే నిర్వాహకులకు కూడా కనబడనివ్వకు',\n'revdelete-radio-same' => '(మార్చకు)',\n'revdelete-radio-set' => 'అవును',\n'revdelete-radio-unset' => 'కాదు',\n'revdelete-suppress' => 'డేటాను అందరిలాగే నిర్వాహకులకు కూడా కనబడనివ్వకు',\n'revdelete-unsuppress' => 'పునస్థాపిత కూర్పులపై నిబంధనలను తీసివెయ్యి',\n'revdelete-log' => 'కారణం:',\n'revdelete-submit' => 'ఎంచుకున్న {{PLURAL:$1|కూర్పుకు|కూర్పులకు}} ఆపాదించు',\n'revdelete-success' => \"'''కూర్పు కనబడే విధానాన్ని జయప్రదంగా తాజాకరించాం.'''\",\n'revdelete-failure' => \"'''కూర్పు కనబడే పద్ధతిని తాజాపరచలేకపోయాం:'''\n$1\",\n'logdelete-success' => \"'''ఘటన కనబడే విధానాన్ని జయప్రదంగా సెట్ చేసాం.'''\",\n'logdelete-failure' => \"'''చిట్టా కనబడే పద్ధతిని అమర్చలేకపోయాం:'''\n$1\",\n'revdel-restore' => 'దృశ్యతని మార్చు',\n'revdel-restore-deleted' => 'తొలగించిన కూర్పులు',\n'revdel-restore-visible' => 'కనిపిస్తున్న కూర్పులు',\n'pagehist' => 'పేజీ చరిత్ర',\n'deletedhist' => 'తొలగించిన చరిత్ర',\n'revdelete-hide-current' => '$2, $1 నాటి అంశాన్ని దాచడంలో లోపం దొర్లింది: ఇది ప్రస్తుత కూర్పు.\nదీన్ని దాచలేము.',\n'revdelete-show-no-access' => '$2, $1 నాటి అంశాన్ని చూపడంలో లోపం దొర్లింది: ఇది \"నిరోధించబడింది\" అని గుర్తించబడింది.\nఇది మీకు అందుబాటులో లేదు.',\n'revdelete-modify-no-access' => '$2, $1 నాటి అంశాన్ని మార్చడంలో లోపం దొర్లింది: ఇది \"నిరోధించబడింది\" అని గుర్తించబడింది.\nఇది మీకు అందుబాటులో లేదు.',\n'revdelete-modify-missing' => '$1 అంశాన్ని మార్చడంలో లోపం దొర్లింది: ఇది డేటాబేసులో కనబడలేదు!',\n'revdelete-no-change' => \"'''హెచ్చరిక:''' $2, $1 నాటి అంశానికి మీరడిగిన చూపు అమరికలన్నీ ఈసరికే ఉన్నాయి.\",\n'revdelete-concurrent-change' => '$2, $1 నాటి అంశాన్ని మార్చడంలో లోపం దొర్లింది: మీరు మార్చడానికి ప్రయత్నించిన సమయంలోనే వేరొకరు దాని స్థితిని మార్చినట్లుగా కనిపిస్తోంది. ఓసారి లాగ్‌లను చూడండి.',\n'revdelete-only-restricted' => '$2, $1 తేదీ గల అంశాన్ని దాచడంలో పొరపాటు: ఇతర దృశ్యత వికల్పాల్లోంచి ఒకదాన్ని ఎంచుకోకుండా అంశాలని నిర్వాహకులకు కనబడకుండా అణచివెయ్యలేరు.',\n'revdelete-reason-dropdown' => '*సాధారణ తొలగింపు కారణాలు\n** కాపీహక్కుల ఉల్లంఘన\n** అసంబద్ధ వ్యాఖ్య లేదా వ్యక్తిగత సమాచారం\n** అసంబద్ధ వాడుకరి పేరు\n** నిందాపూర్వక సమాచారం',\n'revdelete-otherreason' => 'ఇతర/అదనపు కారణం:',\n'revdelete-reasonotherlist' => 'ఇతర కారణం',\n'revdelete-edit-reasonlist' => 'తొలగింపు కారణాలని మార్చండి',\n'revdelete-offender' => 'కూర్పు రచయిత:',\n\n# Suppression log\n'suppressionlog' => 'అణచివేతల చిట్టా',\n'suppressionlogtext' => 'నిర్వాహకులకు కనబడని విషయం కలిగిన తొలగింపులు, నిరోధాల జాబితా ఇది.\nప్రస్తుతం అమల్లో ఉన్న నిషేధాలు, నిరోధాల జాబితా కోసం [[Special:IPBlockList|ఐపీ నిరోధాల జాబితా]] చూడండి.',\n\n# History merging\n'mergehistory' => 'పేజీ చరితాలను విలీనం చెయ్యి',\n'mergehistory-header' => 'ఓ పేజీ చరితం లోని కూర్పులను మరో పేజీలోకి విలీనం చెయ్యడానికి ఈ పేజీని వాడండి.\nమీరు చెయ్యబోయే మార్పు చరితం క్రమాన్ని పాటిస్తుందని నిర్ధారించుకోండి.',\n'mergehistory-box' => 'రెండు పేజీల కూర్పులను విలీనం చెయ్యి:',\n'mergehistory-from' => 'మూల పేజీ:',\n'mergehistory-into' => 'లక్ష్యిత పేజీ:',\n'mergehistory-list' => 'విలీనం చెయ్యదగ్గ దిద్దుబాటు చరితం',\n'mergehistory-merge' => '[[:$1]] యొక్క కింది కూర్పులను [[:$2]] తో విలీనం చెయ్యవచ్చు. ఫలానా సమయమూ, దాని కంటే ముందూ తయారైన కూర్పులతో మాత్రమే విలీనం చెయ్యాలనుకుంటే, సంబంధిత రేడియో బటనున్న నిలువు వరుసను వాడండి. నేవిగేషను లింకులను వాడితే ఈ వరుస రీసెట్ అవుతుంది.',\n'mergehistory-go' => 'విలీనం చెయ్యదగ్గ దిద్దుబాట్లను చూపించు',\n'mergehistory-submit' => 'కూర్పులను విలీనం చెయ్యి',\n'mergehistory-empty' => 'ఏ కూర్పులనూ విలీనం చెయ్యలేము.',\n'mergehistory-success' => '[[:$1]] యొక్క $3 {{PLURAL:$3|కూర్పుని|కూర్పులను}} [[:$2]] లోనికి జయప్రదంగా విలీనం చేసాం.',\n'mergehistory-fail' => 'చరితాన్ని విలీనం చెయ్యలేకపోయాం. పేజీని, సమయాలను సరిచూసుకోండి.',\n'mergehistory-no-source' => 'మూలం పేజీ, $1 లేదు.',\n'mergehistory-no-destination' => 'గమ్యం పేజీ, $1 లేదు.',\n'mergehistory-invalid-source' => 'మూలం పేజీకి సరైన పేరు ఉండాలి.',\n'mergehistory-invalid-destination' => 'గమ్యం పేజీకి సరైన పేరు ఉండాలి.',\n'mergehistory-autocomment' => '[[:$1]]ని [[:$2]] లోనికి విలీనం చేసారు',\n'mergehistory-comment' => '[[:$1]]ని [[:$2]] లోనికి విలీనం చేసారు: $3',\n'mergehistory-same-destination' => 'మూల మరియు గమ్యస్థాన పేజీలు ఒకటే కాకూడదు',\n'mergehistory-reason' => 'కారణం:',\n\n# Merge log\n'mergelog' => 'వీలీనాల చిట్టా',\n'pagemerge-logentry' => '[[$1]] ను [[$2]] లోకి విలీనం చేసాం ($3 కూర్పు దాకా)',\n'revertmerge' => 'విలీనాన్ని రద్దుచెయ్యి',\n'mergelogpagetext' => 'ఒక పేజీ చరితాన్ని మరో పేజీ చరితం లోకి ఇటీవల చేసిన విలీనాల జాబితా ఇది.',\n\n# Diffs\n'history-title' => '\"$1\" యొక్క కూర్పుల చరిత్ర',\n'difference-title' => '\"$1\" యొక్క తిరిగిచూపుల నడుమ తేడాలు',\n'difference-title-multipage' => '\"$1\" మరియు \"$2\" పేజీల మధ్య తేడా',\n'difference-multipage' => '(పేజీల మధ్య తేడా)',\n'lineno' => 'పంక్తి $1:',\n'compareselectedversions' => 'ఎంచుకున్న సంచికలను పోల్చిచూడు',\n'showhideselectedversions' => 'ఎంచుకున్న కూర్పులను చూపించు/దాచు',\n'editundo' => 'మార్పుని రద్దుచెయ్యి',\n'diff-multi' => '({{PLURAL:$2|ఒక వాడుకరి|$2 వాడుకరుల}} యొక్క {{PLURAL:$1|ఒక మధ్యంతర కూర్పును|$1 మధ్యంతర కూర్పులను}} చూపించట్లేదు)',\n'diff-multi-manyusers' => '$2 మంది పైన ({{PLURAL:$2|ఒక వాడుకరి|వాడుకరుల}} యొక్క {{PLURAL:$1|ఒక మధ్యంతర కూర్పును|$1 మధ్యంతర కూర్పులను}} చూపించట్లేదు)',\n\n# Search results\n'searchresults' => 'వెదుకులాట ఫలితాలు',\n'searchresults-title' => '\"$1\"కి అన్వేషణ ఫలితాలు',\n'searchresulttext' => '{{SITENAME}}లో అన్వేషించే విషయమై మరింత సమాచారం కొరకు [[{{MediaWiki:Helppage}}|{{int:help}}]] చూడండి.',\n'searchsubtitle' => 'మీరు \\'\\'\\'[[:$1]]\\'\\'\\' కోసం వెతికారు ([[Special:Prefixindex/$1|\"$1\"తో మొదలయ్యే అన్ని పేజీలు]]{{int:pipe-separator}}[[Special:WhatLinksHere/$1|\"$1\"కి లింకు ఉన్న అన్ని పేజీలు]])',\n'searchsubtitleinvalid' => \"మీరు '''$1''' కోసం వెతికారు\",\n'toomanymatches' => 'చాలా పోలికలు వచ్చాయి, దయచేసి మరో ప్రశ్నని ప్రయత్నించండి',\n'titlematches' => 'వ్యాస శీర్షిక సరిపోయింది',\n'notitlematches' => 'పేజీ పేరు సరిపోలడం లేదు',\n'textmatches' => 'పేజిలోని పాఠం సరిపోలింది',\n'notextmatches' => 'పేజీ పాఠ్యమేదీ సరిపోలడం లేదు',\n'prevn' => 'క్రితం {{PLURAL:$1|$1}}',\n'nextn' => 'తరువాతి {{PLURAL:$1|$1}}',\n'prevn-title' => 'గత $1 {{PLURAL:$1|ఫలితం|ఫలితాలు}}',\n'nextn-title' => 'తదుపరి $1 {{PLURAL:$1|ఫలితం|ఫలితాలు}}',\n'shown-title' => 'పేజీకి $1 {{PLURAL:$1|ఫలితాన్ని|ఫలితాలను}} చూపించు',\n'viewprevnext' => '($1 {{int:pipe-separator}} $2) ($3) చూపించు.',\n'searchmenu-legend' => 'అన్వేషణ ఎంపికలు',\n'searchmenu-exists' => \"'''ఈ వికీలో \\\"[[:\\$1]]\\\" అనే పేజీ ఉంది'''\",\n'searchmenu-new' => \"'''ఈ వికీలో \\\"[[:\\$1]]\\\" అనే పేరుతో పేజీని సృష్టించు!'''\",\n'searchmenu-prefix' => '[[Special:PrefixIndex/$1|ఈ ఉపసర్గ ఉన్న పేజీలను చూడండి]]',\n'searchprofile-articles' => 'విషయపు పేజీలు',\n'searchprofile-project' => 'సహాయం మరియు ప్రాజెక్టు పేజీలు',\n'searchprofile-images' => 'బహుళమాధ్యమాలు',\n'searchprofile-everything' => 'ప్రతీ ఒక్కటీ',\n'searchprofile-advanced' => 'ఉన్నత',\n'searchprofile-articles-tooltip' => '$1 లలో వెతకండి',\n'searchprofile-project-tooltip' => '$1 లలో వెతకండి',\n'searchprofile-images-tooltip' => 'పైళ్ళ కోసం వెతకండి',\n'searchprofile-everything-tooltip' => 'అన్ని చోట్లా (చర్చా పేజీలతో సహా) వెతకండి',\n'searchprofile-advanced-tooltip' => 'కస్టం నేంస్పేసులలో వెదుకు',\n'search-result-size' => '$1 ({{PLURAL:$2|1 పదం|$2 పదాలు}})',\n'search-result-category-size' => '{{PLURAL:$1|1 సభ్యుడు|$1 సభ్యులు}} ({{PLURAL:$2|1 ఉవవర్గం|$2 ఉపవర్గాలు}}, {{PLURAL:$3|1 దస్త్రం|$3 దస్త్రాలు}})',\n'search-result-score' => 'సంబంధం: $1%',\n'search-redirect' => '(దారిమార్పు $1)',\n'search-section' => '(విభాగం $1)',\n'search-suggest' => 'మీరు అంటున్నది ఇదా: $1',\n'search-interwiki-caption' => 'సోదర ప్రాజెక్టులు',\n'search-interwiki-default' => '$1 ఫలితాలు:',\n'search-interwiki-more' => '(మరిన్ని)',\n'search-relatedarticle' => 'సంబంధించినవి',\n'mwsuggest-disable' => 'AJAX సూచనలను అచేతనంచేయి',\n'searcheverything-enable' => 'అన్ని పేరుబరుల్లో వెతుకు',\n'searchrelated' => 'సంబంధించినవి',\n'searchall' => 'అన్నీ',\n'showingresults' => \"కింద ఉన్న {{PLURAL:$1|'''ఒక్క''' ఫలితం|'''$1''' ఫలితాలు}}, #'''$2''' నుండి మొదలుకొని చూపిస్తున్నాం.\",\n'showingresultsnum' => \"కింద ఉన్న {{PLURAL:$3|'''ఒక్క''' ఫలితం|'''$3''' ఫలితాలు}}, #'''$2''' నుండి మొదలుకొని చూపిస్తున్నాం.\",\n'showingresultsheader' => \"'''$4''' కొరకై {{PLURAL:$5|'''$3'''లో '''$1''' ఫలితం|'''$3''' ఫలితాల్లో '''$1 - $2''' వరకు}}\",\n'nonefound' => \"'''గమనిక''': డిఫాల్టుగా కొన్ని నేమ్‌స్పేసుల్లో మాత్రమే వెతుకుతాం. చర్చాపేజీలు, మూసలు మొదలైన వాటితో సహా ఆన్ని నేమ్‌స్పేసుల్లోను వెతికేందుకు మీ అన్వేషకానికి ముందు ''all:'' అనే పదం ఉంచండి. లేదా మీరు వెతకదలచిన నేమ్‌స్పేసును ఆదిపదంగా పెట్టండి.\",\n'search-nonefound' => 'మీ ప్రశ్నకి సరిపోలిన ఫలితాలేమీ లేవు.',\n'powersearch' => 'నిశితంగా వెతుకు',\n'powersearch-legend' => 'నిశితమైన అన్వేషణ',\n'powersearch-ns' => 'ఈ పేరుబరుల్లో వెతుకు:',\n'powersearch-redir' => 'దారిమార్పులను చూపించు',\n'powersearch-field' => 'దీని కోసం వెతుకు:',\n'powersearch-togglelabel' => 'ఎంచుకోవాల్సినవి:',\n'powersearch-toggleall' => 'అన్నీ',\n'powersearch-togglenone' => 'ఏదీకాదు',\n'search-external' => 'బయటి అన్వేషణ',\n'searchdisabled' => '{{SITENAME}} అన్వేషణ తాత్కాలికంగా పని చెయ్యడం లేదు. ఈలోగా మీరు గూగుల్‌ ఉపయోగించి అన్వేషించవచ్చు. ఒక గమనిక: గూగుల్‌ ద్వారా కాలదోషం పట్టిన ఫలితాలు రావడానికి అవకాశం ఉంది.',\n\n# Preferences page\n'preferences' => 'అభిరుచులు',\n'mypreferences' => 'అభిరుచులు',\n'prefs-edits' => 'దిద్దుబాట్ల సంఖ్య:',\n'prefsnologin' => 'లాగిన్‌ అయిలేరు',\n'prefsnologintext' => 'వాడుకరి అభిరుచులను మార్చుకోడానికి, మీరు [{{fullurl:{{#Special:UserLogin}}|returnto=$1}} లోనికి ప్రవేశించి] ఉండాలి.',\n'changepassword' => 'సంకేతపదాన్ని మార్చండి',\n'prefs-skin' => 'అలంకారం',\n'skin-preview' => 'మునుజూపు/సరిచూడు',\n'datedefault' => 'ఏదైనా పరవాలేదు',\n'prefs-beta' => 'బీటా సౌలభ్యాలు',\n'prefs-datetime' => 'తేదీ, సమయం',\n'prefs-labs' => 'ప్రయోగాత్మక సౌలభ్యాలు',\n'prefs-user-pages' => 'వాడుకరి పేజీలు',\n'prefs-personal' => 'వాడుకరి వివరాలు',\n'prefs-rc' => 'ఇటీవలి మార్పులు',\n'prefs-watchlist' => 'వీక్షణ జాబితా',\n'prefs-watchlist-days' => 'వీక్షణ జాబితాలో చూపించవలసిన రోజులు:',\n'prefs-watchlist-days-max' => '$1 {{PLURAL:$1|రోజు|రోజులు}} గరిష్ఠం',\n'prefs-watchlist-edits' => 'విస్తృత వీక్షణ జాబితాలో చూపించవలసిన దిద్దుబాట్లు:',\n'prefs-watchlist-edits-max' => 'గరిష్ఠ సంఖ్య: 1000',\n'prefs-watchlist-token' => 'వీక్షణాజాబితా టోకెను:',\n'prefs-misc' => 'ఇతరాలు',\n'prefs-resetpass' => 'సంకేతపదాన్ని మార్చుకోండి',\n'prefs-changeemail' => 'ఈ-మెయిలు చిరునామా మార్పు',\n'prefs-setemail' => 'ఒక ఈ-మెయిల్ చిరునామాని అమర్చండి',\n'prefs-email' => 'ఈ-మెయిల్ ఎంపికలు',\n'prefs-rendering' => 'రూపురేఖలు',\n'saveprefs' => 'భద్రపరచు',\n'resetprefs' => 'మునుపటి వలె',\n'restoreprefs' => 'సృష్టించబడినప్పటి అభిరుచులు తిరిగి తీసుకురా',\n'prefs-editing' => 'మార్పులు',\n'rows' => 'వరుసలు',\n'columns' => 'వరుసలు:',\n'searchresultshead' => 'అన్వేషణ',\n'resultsperpage' => 'పేజీకి ఫలితాలు:',\n'stub-threshold' => 'మొలక లింకు ఫార్మాటింగు కొరకు హద్దు (బైట్లు):',\n'stub-threshold-disabled' => 'అచేతనం',\n'recentchangesdays' => 'ఇటీవలి మార్పులు లో చూపించవలసిన రోజులు:',\n'recentchangesdays-max' => '($1 {{PLURAL:$1|రోజు|రోజులు}} గరిష్ఠం)',\n'recentchangescount' => 'అప్రమేయంగా చూపించాల్సిన దిద్దుబాట్ల సంఖ్య:',\n'prefs-help-recentchangescount' => 'ఇది ఇటీవలి మార్పులు, పేజీ చరిత్రలు, మరియు చిట్టాలకు వర్తిస్తుంది.',\n'savedprefs' => 'మీ అభిరుచులను భద్రపరిచాం.',\n'timezonelegend' => 'కాల మండలం:',\n'localtime' => 'స్థానిక సమయం:',\n'timezoneuseserverdefault' => 'వికీ అప్రమేయాన్ని ఉపయోగించు ($1)',\n'timezoneuseoffset' => 'ఇతర (భేదాన్ని ఇవ్వండి)',\n'timezoneoffset' => 'తేడా¹:',\n'servertime' => 'సర్వరు సమయం:',\n'guesstimezone' => 'విహారిణి నుండి తీసుకో',\n'timezoneregion-africa' => 'ఆఫ్రికా',\n'timezoneregion-america' => 'అమెరికా',\n'timezoneregion-antarctica' => 'అంటార్కిటికా',\n'timezoneregion-arctic' => 'ఆర్కిటిక్',\n'timezoneregion-asia' => 'ఆసియా',\n'timezoneregion-atlantic' => 'అట్లాంటిక్ మహాసముద్రం',\n'timezoneregion-australia' => 'ఆష్ట్రేలియా',\n'timezoneregion-europe' => 'ఐరోపా',\n'timezoneregion-indian' => 'హిందూ మహాసముద్రం',\n'timezoneregion-pacific' => 'పసిఫిక్ మహాసముద్రం',\n'allowemail' => 'ఇతర వాడుకరుల నుండి ఈ-మెయిళ్ళను రానివ్వు',\n'prefs-searchoptions' => 'వెతుకులాట',\n'prefs-namespaces' => 'పేరుబరులు',\n'defaultns' => 'లేకపోతే ఈ నేంస్పేసులలో అన్వేషించు:',\n'default' => 'అప్రమేయం',\n'prefs-files' => 'ఫైళ్ళు',\n'prefs-custom-css' => 'ప్రత్యేక CSS',\n'prefs-custom-js' => 'ప్రత్యేక JS',\n'prefs-common-css-js' => 'అన్ని అలంకారాలకై పంచుకోబడిన CSS/JS:',\n'prefs-reset-intro' => 'ఈ పేజీలో, మీ అభిరుచులను సైటు డిఫాల్టు విలువలకు మార్చుకోవచ్చు. మళ్ళీ వెనక్కి తీసుకుపోలేరు.',\n'prefs-emailconfirm-label' => 'ఈ-మెయిల్ నిర్ధారణ:',\n'youremail' => 'మీ ఈ-మెయిలు*',\n'username' => '{{GENDER:$1|వాడుకరి పేరు}}:',\n'uid' => '{{GENDER:$1|వాడుకరి}} ID:',\n'prefs-memberingroups' => 'ఈ {{PLURAL:$1|గుంపులో|గుంపులలో}} {{GENDER:$2|సభ్యుడు|సభ్యురాలు}}:',\n'prefs-registration' => 'నమోదైన సమయం:',\n'yourrealname' => 'అసలు పేరు:',\n'yourlanguage' => 'భాష:',\n'yourvariant' => 'విషయపు భాషా వైవిధ్యం:',\n'prefs-help-variant' => 'ఈ వికీ లోని విషయపు పేజీలను చూపించడానికి మీ అభిమత వైవిధ్యం లేదా ఆర్ధోగ్రఫీ.',\n'yournick' => 'ముద్దు పేరు',\n'prefs-help-signature' => 'చర్చా పేజీల లోని వ్యాఖ్యలకు \"~~~~\"తో సంతకం చేస్తే అది మీ సంతకం మరియు కాలముద్రగా మారుతుంది.',\n'badsig' => 'సంతకాన్ని సరిగ్గా ఇవ్వలేదు; HTML ట్యాగులను ఒకసారి పరిశీలించండి.',\n'badsiglength' => 'మీ సంతకం చాలా పెద్దగా ఉంది.\nఇది తప్పనిసరిగా $1 {{PLURAL:$1|అక్షరం|అక్షరాల}} లోపులోనే ఉండాలి.',\n'yourgender' => 'లింగం:',\n'gender-unknown' => 'వెల్లడించకండి',\n'gender-male' => 'పురుషుడు',\n'gender-female' => 'స్త్రీ',\n'prefs-help-gender' => 'ఐచ్ఛికం: లింగ-సమంజసమైన సంబోధనలకు ఈ మృదుఉపకరణం వాడుకుంటుంది. ఈ సమాచారం బహిర్గతమౌతుంది.',\n'email' => 'ఈ-మెయిలు',\n'prefs-help-realname' => 'అసలు పేరు (తప్పనిసరి కాదు), మీ అసలు పేరు ఇస్తేగనక, మీ రచనలన్నీ మీ అసలు పేరుతోనే గుర్తిస్తూ ఉంటారు.',\n'prefs-help-email' => 'ఈ-మెయిలు చిరునామా ఐచ్చికం, కానీ మీరు సంకేతపదాన్ని మర్చిపోతే కొత్త సంకేతపదాన్ని మీకు పంపించడానికి అవసరమవుతుంది.',\n'prefs-help-email-others' => 'మీ వాడుకరి లేదా చర్చా పేజీలలో ఉండే లంకె ద్వారా ఇతరులు మిమ్మల్ని ఈ-మెయిలు ద్వారా సంప్రదించే వీలుకల్పించవచ్చు.\nఇతరులు మిమ్మల్ని సంప్రదించినప్పుడు మీ ఈ-మెయిలు చిరునామా బహిర్గతమవదు.',\n'prefs-help-email-required' => 'ఈ-మెయిలు చిరునామా తప్పనిసరి.',\n'prefs-info' => 'ప్రాథమిక సమాచారం',\n'prefs-i18n' => 'అంతర్జాతీకరణ',\n'prefs-signature' => 'సంతకం',\n'prefs-dateformat' => 'తేదీ ఆకృతి',\n'prefs-timeoffset' => 'సమయ సవరణ',\n'prefs-advancedediting' => 'ఉన్నత ఎంపికలు',\n'prefs-advancedrc' => 'ఉన్నత ఎంపికలు',\n'prefs-advancedrendering' => 'ఉన్నత ఎంపికలు',\n'prefs-advancedsearchoptions' => 'ఉన్నత ఎంపికలు',\n'prefs-advancedwatchlist' => 'ఉన్నత ఎంపికలు',\n'prefs-displayrc' => 'ప్రదర్శన ఎంపికలు',\n'prefs-displaysearchoptions' => 'ప్రదర్శన ఎంపికలు',\n'prefs-displaywatchlist' => 'ప్రదర్శన ఎంపికలు',\n'prefs-diffs' => 'తేడాలు',\n\n# User preference: email validation using jQuery\n'email-address-validity-valid' => 'ఈ-మెయిలు చిరునామా సరిగానే ఉన్నట్టుంది',\n'email-address-validity-invalid' => 'దయచేసి సరైన ఈమెయిలు చిరునామాని ఇవ్వండి',\n\n# User rights\n'userrights' => 'వాడుకరి హక్కుల నిర్వహణ',\n'userrights-lookup-user' => 'వాడుకరి సమూహాలను సంభాళించండి',\n'userrights-user-editname' => 'సభ్యనామాన్ని ఇవ్వండి:',\n'editusergroup' => 'వాడుకరి గుంపులను మార్చు',\n'editinguser' => \"వాడుకరి '''[[User:$1|$1]]''' $2 యొక్క వాడుకరి హక్కులను మారుస్తున్నారు\",\n'userrights-editusergroup' => 'వాడుకరి సమూహాలను మార్చండి',\n'saveusergroups' => 'వాడుకరి గుంపులను భద్రపరచు',\n'userrights-groupsmember' => 'సభ్యులు:',\n'userrights-groupsmember-auto' => 'సంభావిత సభ్యులు:',\n'userrights-groups-help' => 'ఈ వాడుకరి ఏయే గుంపులలో ఉండవచ్చో మీరు మార్చవచ్చు.\n* టిక్కు పెట్టివుంటే ఆ గుంపులో ఈ వాడుకరి ఉన్నట్టు.\n* టిక్కు లేకుంటే ఆ గుంపులో ఈ వాడుకరి లేనట్టు.\n* * ఉంటే ఒకసారి ఆ గుంపుని చేర్చాకా మీరు తీసివేయలేరు, లేదా తీసివేసాకా తిరిగి చేర్చలేరు.',\n'userrights-reason' => 'కారణం:',\n'userrights-no-interwiki' => 'ఇతర వికీలలో వాడుకరి హక్కులను మార్చడానికి మీకు అనుమతి లేదు.',\n'userrights-nodatabase' => '$1 అనే డేటాబేసు లేదు లేదా అది స్థానికం కాదు.',\n'userrights-nologin' => 'వాడుకరి హక్కులను ఇవ్వడానికి మీరు తప్పనిసరిగా ఓ నిర్వాహక ఖాతాతో [[Special:UserLogin|లోనికి ప్రవేశించాలి]].',\n'userrights-notallowed' => 'వాడుకరి హక్కులను చేర్చే మరియు తొలగించే అనుమతి మీ ఖాతాకు లేదు.',\n'userrights-changeable-col' => 'మీరు మార్చదగిన గుంపులు',\n'userrights-unchangeable-col' => 'మీరు మార్చలేని గుంపులు',\n\n# Groups\n'group' => 'గుంపు:',\n'group-user' => 'వాడుకరులు',\n'group-autoconfirmed' => 'ఆటోమాటిగ్గా నిర్ధారించబడిన వాడుకరులు',\n'group-bot' => 'బాట్‌లు',\n'group-sysop' => 'నిర్వాహకులు',\n'group-bureaucrat' => 'అధికారులు',\n'group-suppress' => 'పరాకులు',\n'group-all' => '(అందరూ)',\n\n'group-user-member' => '{{GENDER:$1|వాడుకరి}}',\n'group-autoconfirmed-member' => '{{GENDER:$1|ఆటోమాటిగ్గా నిర్ధారించబడిన వాడుకరి}}',\n'group-bot-member' => '{{GENDER:$1|బాట్}}',\n'group-sysop-member' => '{{GENDER:$1|నిర్వాహకుడు|నిర్వాహకురాలు}}',\n'group-bureaucrat-member' => '{{GENDER:$1|అధికారి|అధికారిణి}}',\n'group-suppress-member' => 'పరాకు',\n\n'grouppage-user' => '{{ns:project}}:వాడుకరులు',\n'grouppage-autoconfirmed' => '{{ns:project}}:ఆటోమాటిగ్గా నిర్ధారించబడిన వాడుకరులు',\n'grouppage-bot' => '{{ns:project}}:బాట్లు',\n'grouppage-sysop' => '{{ns:project}}:నిర్వాహకులు',\n'grouppage-bureaucrat' => '{{ns:project}}:అధికార్లు',\n'grouppage-suppress' => '{{ns:project}}:పరాకు',\n\n# Rights\n'right-read' => 'పేజీలు చదవడం',\n'right-edit' => 'పేజీలను మార్చడం',\n'right-createpage' => 'పేజీలను సృష్టించడం (చర్చాపేజీలు కానివి)',\n'right-createtalk' => 'చర్చా పేజీలను సృష్టించడం',\n'right-createaccount' => 'కొత్త వాడుకరి ఖాతాలను సృష్టించడం',\n'right-minoredit' => 'మార్పుని చిన్నదిగా గుర్తించడం',\n'right-move' => 'పేజీలను తరలించడం',\n'right-move-subpages' => 'పేజీలను వాటి ఉపపేజీలతో బాటుగా తరలించడం',\n'right-move-rootuserpages' => 'వాడుకరుల ప్రధాన పేజీలను తరలించగలగడం',\n'right-movefile' => 'ఫైళ్ళను తరలించడం',\n'right-suppressredirect' => 'పేజీని తరలించేటపుడు పాత పేరు నుండి దారిమార్పును సృష్టించకుండా ఉండటం',\n'right-upload' => 'దస్త్రాలను ఎక్కించడం',\n'right-reupload' => 'ఇప్పటికే ఉన్న ఫైలును తిరగరాయి',\n'right-reupload-own' => 'తానే ఇదివరలో అప్‌లోడు చేసిన ఫైలును తిరగరాయి',\n'right-reupload-shared' => 'స్థానికంగా ఉమ్మడి మీడియా సొరుగులోని ఫైళ్ళను అధిక్రమించు',\n'right-upload_by_url' => 'URL అడ్రసునుండి ఫైలును అప్‌లోడు చెయ్యి',\n'right-purge' => 'పేజీకి సంబంధించిన సైటు కాషెను, నిర్ధారణ కోరకుండానే తొలగించు',\n'right-autoconfirmed' => 'అర్ధ సంరక్షణలో ఉన్న పేజీలలో దిద్దుబాటు చెయ్యి',\n'right-bot' => 'ఆటోమాటిక్ ప్రాసెస్ లాగా భావించబడు',\n'right-nominornewtalk' => 'చర్చా పేజీల్లో జరిగిన అతి చిన్న మార్పులకు కొత్తసందేశము వచ్చిందన్న సూచన చెయ్యవద్దు',\n'right-apihighlimits' => 'API ప్రశ్నల్లో ఉన్నత పరిమితులను వాడు',\n'right-writeapi' => 'రైట్ API వినియోగం',\n'right-delete' => 'పేజీలను తొలగించడం',\n'right-bigdelete' => 'చాలా పెద్ద చరితం ఉన్న పేజీలను తొలగించు',\n'right-deleterevision' => 'పేజీల ప్రత్యేకించిన కూర్పులను తొలగించు, తొలగింపును నివారించు',\n'right-deletedhistory' => 'తొలగింపులను, వాటి పాఠ్యం లేకుండా, చరితంలో చూడు',\n'right-deletedtext' => 'తొలగించిన పాఠ్యాన్ని మరియు తొలగించిన కూర్పుల మధ్య మార్పలని చూడగలగడం',\n'right-browsearchive' => 'తొలగించిన పేజీలను వెతుకు',\n'right-undelete' => 'పేజీ తొలగింపును రద్దు చెయ్యి',\n'right-suppressrevision' => 'నిర్వాహకులకు కనబడకుండా ఉన్న కూర్పులను సమీక్షించి పౌనస్థాపించు',\n'right-suppressionlog' => 'గోప్యంగా ఉన్న లాగ్‌లను చూడు',\n'right-block' => 'దిద్దుబాటు చెయ్యకుండా ఇతర వాడుకరులను నిరోధించగలగడం',\n'right-blockemail' => 'ఈమెయిలు పంపకుండా సభ్యుని నిరోధించు',\n'right-hideuser' => 'ప్రజలకు కనబడకుండా చేసి, సభ్యనామాన్ని నిరోధించు',\n'right-ipblock-exempt' => 'ఐపీ నిరోధాలు, ఆటో నిరోధాలు, శ్రేణి నిరోధాలను తప్పించు',\n'right-proxyunbannable' => 'ప్రాక్సీల ఆటోమాటిక్ నిరోధాన్ని తప్పించు',\n'right-unblockself' => 'వారినే అనిరోధించుకోవడం',\n'right-protect' => 'సంరక్షణ స్థాయిలను మార్చు, సంరక్షిత పేజీలలో దిద్దుబాటు చెయ్యి',\n'right-editprotected' => 'సంరక్షిత పేజీలలో దిద్దుబటు చెయ్యి (కాస్కేడింగు సంరక్షణ లేనివి)',\n'right-editinterface' => 'యూజరు ఇంటరుఫేసులో దిద్దుబాటు చెయ్యి',\n'right-editusercssjs' => 'ఇతర వాడుకరుల CSS, JS ఫైళ్ళలో దిద్దుబాటు చెయ్యి',\n'right-editusercss' => 'ఇతర వాడుకరుల CSS ఫైళ్ళలో దిద్దుబాటు చెయ్యి',\n'right-edituserjs' => 'ఇతర వాడుకరుల JS ఫైళ్ళలో దిద్దుబాటు చెయ్యి',\n'right-rollback' => 'ఒకానొక పేజీలో చివరి దిద్దుబాటు చేసిన వాడుకరి చేసిన దిద్దుబాట్లను రద్దుచేయి',\n'right-markbotedits' => 'వెనక్కి తెచ్చిన దిద్దుబాట్లను బాట్ దిద్దుబాట్లుగా గుర్తించు',\n'right-noratelimit' => 'రేటు పరిమితులు ప్రభావం చూపవు',\n'right-import' => 'ఇతర వికీల నుండి పేజీలను దిగుమతి చేసుకో',\n'right-importupload' => 'ఫైలు అప్‌లోడు నుండి పేజీలను దిగుమతి చేసుకో',\n'right-patrol' => 'ఇతరుల దిద్దుబాట్లను నిఘాలో ఉన్నట్లుగా గుర్తించు',\n'right-autopatrol' => 'తానే చేసిన మార్పులను నిఘాలో ఉన్నట్లుగా ఆటోమాటిగా గుర్తించు',\n'right-patrolmarks' => 'ఇటీవలి మార్పుల నిఘా గుర్తింపులను చూడు',\n'right-unwatchedpages' => 'వీక్షణలో లేని పేజీల జాబితాను చూడు',\n'right-mergehistory' => 'పేజీల యొక్క చరిత్రలని విలీనం చేయగలగడం',\n'right-userrights' => 'వాడుకరులందరి హక్కులను మార్చు',\n'right-userrights-interwiki' => 'ఇతర వికీల్లోని వాడుకరుల హక్కులను మార్చు',\n'right-siteadmin' => 'డేటాబేసును లాక్, అన్‌లాక్ చెయ్యి',\n'right-override-export-depth' => '5 లింకుల లోతు వరకు ఉన్న పేజీలతో సహా, పేజీలను ఎగుమతి చెయ్యి',\n'right-sendemail' => 'ఇతర వాడుకరులకు ఈ-మెయిలు పంపించగలగడం',\n'right-passwordreset' => 'సంకేతపదాన్ని పునరుద్ధరించిన ఈ-మెయిళ్ళు',\n\n# Special:Log/newusers\n'newuserlogpage' => 'కొత్త వాడుకరుల చిట్టా',\n'newuserlogpagetext' => 'ఇది వాడుకరి నమోదుల చిట్టా.',\n\n# User rights log\n'rightslog' => 'వాడుకరుల హక్కుల మార్పుల చిట్టా',\n'rightslogtext' => 'ఇది వాడుకరుల హక్కులకు జరిగిన మార్పుల చిట్టా.',\n\n# Associated actions - in the sentence \"You do not have permission to X\"\n'action-read' => 'ఈ పేజీని చదవండి',\n'action-edit' => 'ఈ పేజీని సవరించండి',\n'action-createpage' => 'పేజీలను సృష్టించే',\n'action-createtalk' => 'చర్చాపేజీలను సృష్టించే',\n'action-createaccount' => 'ఈ వాడుకరి ఖాతాని సృష్టించే',\n'action-minoredit' => 'ఈ మార్పుని చిన్నదానిగా గుర్తించే',\n'action-move' => 'ఈ పేజీని తరలించే',\n'action-move-subpages' => 'ఈ పేజీని మరియు దీని ఉపపేజీలను తరలించే',\n'action-move-rootuserpages' => 'ప్రధాన వాడుకరి పేజీలని తరలించగడగడం',\n'action-movefile' => 'ఈ ఫైలుని తరలించే',\n'action-upload' => 'ఈ దస్త్రాన్ని ఎక్కించే',\n'action-reupload' => 'ఈ ఫైలుని తిరగవ్రాసే',\n'action-reupload-shared' => 'సామూహిక నిక్షేపంపై ఈ ఫైలును అతిక్రమించు',\n'action-upload_by_url' => 'ఈ ఫైలుని URL చిరునామా నుండి ఎగుమతి చేసే',\n'action-writeapi' => 'వ్రాసే APIని ఉపయోగించే',\n'action-delete' => 'ఈ పేజీని తొలగించే',\n'action-deleterevision' => 'ఈ కూర్పుని తొలగించే',\n'action-deletedhistory' => 'ఈ పేజీ యొక్క తొలగించిన చరిత్రని చూసే',\n'action-browsearchive' => 'తొలగించిన పేజీలలో వెతికే',\n'action-undelete' => 'ఈ పేజీని పునఃస్థాపించే',\n'action-suppressrevision' => 'ఈ దాచిన కూర్పుని సమీక్షించి పునఃస్థాపించే',\n'action-suppressionlog' => 'ఈ అంతరంగిక చిట్టాను చూసే',\n'action-block' => 'ఈ వాడుకరిని మార్పులు చేయడం నుండి నిరోధించే',\n'action-protect' => 'ఈ పేజీకి సంరక్షణా స్థాయిని మార్చే',\n'action-import' => 'మరో వికీ నుండి ఈ పేజీని దిగుమతి చేసే',\n'action-importupload' => 'ఎగుమతి చేసిన ఫైలు నుండి ఈ పేజీలోనికి దిగుమతి చేసే',\n'action-patrol' => 'ఇతరుల మార్పులను పర్యవేక్షించినవిగా గుర్తించే',\n'action-autopatrol' => 'మీ మార్పులను పర్యవేక్షించినవిగా గుర్తించే',\n'action-unwatchedpages' => 'వీక్షణలో లేని పేజీల జాబితాని చూసే',\n'action-mergehistory' => 'ఈ పేజీ యొక్క చరిత్రని విలీనం చేసే',\n'action-userrights' => 'అందరు వాడుకరుల హక్కులను మార్చే',\n'action-userrights-interwiki' => 'ఇతర వికీలలో వాడుకరుల యొక్క హక్కులను మార్చే',\n'action-siteadmin' => 'డాటాబేసుకి తాళం వేసే లేదా తీసే',\n'action-sendemail' => 'ఈ-మెయిల్స్ పంపించు',\n\n# Recent changes\n'nchanges' => '{{PLURAL:$1|ఒక మార్పు|$1 మార్పులు}}',\n'enhancedrc-history' => 'చరితం',\n'recentchanges' => 'ఇటీవలి మార్పులు',\n'recentchanges-legend' => 'ఇటీవలి మార్పుల ఎంపికలు',\n'recentchanges-summary' => 'వికీలో ఇటీవలే జరిగిన మార్పులను ఈ పేజీలో గమనించవచ్చు.',\n'recentchanges-feed-description' => 'ఈ ఫీడు ద్వారా వికీలో జరుగుతున్న మార్పుల గురించి ఎప్పటికప్పుడు సమాచారాన్ని పొందండి.',\n'recentchanges-label-newpage' => 'ఈ మార్పు కొత్త పేజీని సృష్టించింది',\n'recentchanges-label-minor' => 'ఇది ఒక చిన్న మార్పు',\n'recentchanges-label-bot' => 'ఈ మార్పును ఒక బాటు చేసింది',\n'recentchanges-label-unpatrolled' => 'ఈ దిద్దుబాటు మీద నిఘా లేదు',\n'rcnote' => \"$4 నాడు $5 సమయానికి, గత {{PLURAL:$2|ఒక్క రోజులో|'''$2''' రోజులలో}} చేసిన చివరి {{PLURAL:$1|ఒక్క మార్పు కింద ఉంది|'''$1''' మార్పులు కింద ఉన్నాయి}}.\",\n'rcnotefrom' => '$2 నుండి జరిగిన మార్పులు ($1 వరకు చూపబడ్డాయి).',\n'rclistfrom' => '$1 నుండి జరిగిన మార్పులను చూపించు',\n'rcshowhideminor' => 'చిన్న మార్పులను $1',\n'rcshowhidebots' => 'బాట్లను $1',\n'rcshowhideliu' => 'ప్రవేశించిన వాడుకరుల మార్పులను $1',\n'rcshowhideanons' => 'అజ్ఞాత వాడుకరులను $1',\n'rcshowhidepatr' => 'నిఘాలో ఉన్న మార్పులను $1',\n'rcshowhidemine' => 'నా మార్పులను $1',\n'rclinks' => 'గత $2 రోజుల లోని చివరి $1 మార్పులను చూపించు
$3',\n'diff' => 'తేడాలు',\n'hist' => 'చరిత్ర',\n'hide' => 'దాచు',\n'show' => 'చూపించు',\n'minoreditletter' => 'చి',\n'newpageletter' => 'కొ',\n'boteditletter' => 'బా',\n'number_of_watching_users_pageview' => '[వీక్షిస్తున్న సభ్యులు: {{PLURAL:$1|ఒక్కరు|$1}}]',\n'rc_categories' => 'ఈ వర్గాలకు పరిమితం చెయ్యి (\"|\" తో వేరు చెయ్యండి)',\n'rc_categories_any' => 'ఏదయినా',\n'rc-change-size-new' => 'మార్పు తర్వాత $1 {{PLURAL:$1|బైటు|బైట్లు}}',\n'newsectionsummary' => '/* $1 */ కొత్త విభాగం',\n'rc-enhanced-expand' => 'వివరాలని చూపించు (జావాస్క్రిప్ట్ అవసరం)',\n'rc-enhanced-hide' => 'వివరాలను దాచు',\n'rc-old-title' => 'మొదట \"$1\"గా సృష్టించారు',\n\n# Recent changes linked\n'recentchangeslinked' => 'సంబంధిత మార్పులు',\n'recentchangeslinked-feed' => 'సంబంధిత మార్పులు',\n'recentchangeslinked-toolbox' => 'పొంతనగల మార్పులు',\n'recentchangeslinked-title' => '$1 కు సంబంధించిన మార్పులు',\n'recentchangeslinked-summary' => \"దీనికి లింకై ఉన్న పేజీల్లో జరిగిన చివరి మార్పులు ఇక్కడ చూడవచ్చు. మీ వీక్షణ జాబితాలో ఉన్న పేజీలు '''బొద్దు'''గా ఉంటాయి.\",\n'recentchangeslinked-page' => 'పేజీ పేరు:',\n'recentchangeslinked-to' => 'ఇచ్చిన పేజీకి లింకయివున్న పేజీలలో జరిగిన మార్పులను చూపించు',\n\n# Upload\n'upload' => 'దస్త్రపు ఎక్కింపు',\n'uploadbtn' => 'దస్త్రాన్ని ఎక్కించు',\n'reuploaddesc' => 'మళ్ళీ అప్‌లోడు ఫారంకు వెళ్ళు.',\n'upload-tryagain' => 'మార్చిన ఫైలు వివరణని దాఖలుచేయండి',\n'uploadnologin' => 'లాగిన్‌ అయిలేరు',\n'uploadnologintext' => 'ఫైలు అప్‌లోడు చెయ్యాలంటే, మీరు [[Special:UserLogin|లాగిన్‌]] కావాలి',\n'upload_directory_missing' => 'ఎగుమతి డైరెక్టరీ ($1) తప్పింది మరియు వెబ్ సర్వర్ దాన్ని సృష్టించలేకున్నది.',\n'upload_directory_read_only' => 'అప్‌లోడు డైరెక్టరీ ($1), వెబ్‌సర్వరు రాసేందుకు అనుకూలంగా లేదు.',\n'uploaderror' => 'ఎక్కింపు పొరపాటు',\n'upload-recreate-warning' => \"'''హెచ్చరిక: ఆ పేరుతో ఉన్న దస్త్రాన్ని తరలించి లేదా తొలగించి ఉన్నారు.'''\n\nమీ సౌకర్యం కోసం ఈ పుట యొక్క తొలగింపు మరియు తరలింపు చిట్టాని ఇక్కడ ఇస్తున్నాం:\",\n'uploadtext' => \"దస్త్రాలను ఎక్కించడానికి ఈ కింది ఫారాన్ని ఉపయోగించండి.\nగతంలో ఎక్కించిన దస్త్రాలను చూడడానికి లేదా వెతకడానికి [[Special:FileList|ఎక్కించిన దస్త్రాల యొక్క జాబితా]]కు వెళ్ళండి, (పునః)ఎక్కింపులు [[Special:Log/upload|ఎక్కింపుల చిట్టా]] లోనూ తొలగింపులు [[Special:Log/delete|తొలగింపుల చిట్టా]] లోనూ కూడా నమోదవుతాయి.\n\nఒక దస్త్రాన్ని ఏదైనా పుటలో చేర్చడానికి, కింద చూపిన వాటిలో ఏదేనీ విధంగా లింకుని వాడండి:\n* దస్త్రపు పూర్తి కూర్పుని వాడడానికి '''[[{{ns:file}}:File.jpg]]'''\n* ఎడమ వైపు మార్జినులో 200 పిక్సెళ్ళ వెడల్పుగల బొమ్మ మరియు 'ప్రత్యామ్నాయ పాఠ్యం' అన్న వివరణతో గల పెట్టె కోసం '''[[{{ns:file}}:File.png|200px|thumb|left|ప్రత్యామ్నాయ పాఠ్యం]]'''\n* దస్త్రాన్ని చూపించకుండా నేరుగా లింకు ఇవ్వడానికి '''[[{{ns:media}}:File.ogg]]'''\",\n'upload-permitted' => 'అనుమతించే ఫైలు రకాలు: $1.',\n'upload-preferred' => 'అనుమతించే ఫైలు రకాలు: $1.',\n'upload-prohibited' => 'నిషేధించిన ఫైలు రకాలు: $1.',\n'uploadlog' => 'ఎక్కింపుల చిట్టా',\n'uploadlogpage' => 'ఎక్కింపుల చిట్టా',\n'uploadlogpagetext' => 'ఇటీవల జరిగిన ఫైలు అప్‌లోడుల జాబితా ఇది.',\n'filename' => 'ఫైలు పేరు',\n'filedesc' => 'సారాంశం',\n'fileuploadsummary' => 'సారాంశం:',\n'filereuploadsummary' => 'ఫైలు మార్పులు:',\n'filestatus' => 'కాపీహక్కు స్థితి:',\n'filesource' => 'మూలం:',\n'uploadedfiles' => 'ఎగుమతయిన ఫైళ్ళు',\n'ignorewarning' => 'హెచ్చరికను పట్టించుకోకుండా ఫైలును భద్రపరచు',\n'ignorewarnings' => 'హెచ్చరికలను పట్టించుకోవద్దు',\n'minlength1' => 'పైలు పేర్లు కనీసం ఒక్క అక్షరమైనా ఉండాలి.',\n'illegalfilename' => '\"$1\" అనే దస్త్రపుపేరు పేజీ శీర్షికలలో వాడకూడని అక్షరాలను కలిగివుంది.\nదస్త్రపు పేరుని మార్చి మళ్ళీ ఎక్కించడానికి ప్రయత్నించండి.',\n'filename-toolong' => 'దస్త్రపు పేరు 240 బైట్ల కంటే పొడవు ఉండకూడదు.',\n'badfilename' => 'ఫైలు పేరు \"$1\"కి మార్చబడినది.',\n'filetype-mime-mismatch' => 'దస్త్రపు పొడగింపు \".$1\" ఆ దస్త్రం యొక్క MIME రకం ($2) తో సరిపోలలేదు.',\n'filetype-badmime' => '\"$1\" MIME రకం ఉన్న ఫైళ్ళను ఎగుమతికి అనుమతించం.',\n'filetype-bad-ie-mime' => 'ఈ ఫైలుని ఎగుమతి చేయలేరు ఎందుకంటే ఇంటర్నెట్ ఎక్స్‌ప్లోరర్ దీన్ని \"$1\" గా చూపిస్తుంది, ఇది అనుమతి లేని మరియు ప్రమాదకారమైన ఫైలు రకం.',\n'filetype-unwanted-type' => \"'''\\\".\\$1\\\"''' అనేది అవాంఛిత ఫైలు రకం.\n\\$2 {{PLURAL:\\$3|అనేది వాడదగ్గ ఫైలు రకం|అనేవి వాడదగ్గ ఫైలు రకాలు}}.\",\n'filetype-banned-type' => '\\'\\'\\'\".$1\"\\'\\'\\' {{PLURAL:$4|అనేది అనుమతించబడిన ఫైలు రకం కాదు|అనేవి అనుమతించబడిన ఫైలు రకాలు కాదు}}.\nఅనుమతించబడిన {{PLURAL:$3|ఫైలు రకం|ఫైలు రకాలు}} $2.',\n'filetype-missing' => 'ఫైలుకి పొడగింపు (\".jpg\" లాంటిది) లేదు.',\n'empty-file' => 'మీరు సమర్పించిన దస్త్రం ఖాళీగా ఉంది.',\n'file-too-large' => 'మీరు సమర్పించిన దస్త్రం చాలా పెద్దగా ఉంది.',\n'filename-tooshort' => 'దస్త్రపు పేరు మరీ చిన్నగా ఉంది.',\n'filetype-banned' => 'ఈ రకపు దస్త్రాలని నిషేధించాము.',\n'verification-error' => 'దస్త్రపు తనిఖీలో ఈ దస్త్రం ఉత్తీర్ణమవలేదు.',\n'hookaborted' => 'మీరు చేయప్రత్నించిన మార్పుని ఒక పొడగింత కొక్కెం విచ్ఛిన్నం చేసింది.',\n'illegal-filename' => 'ఆ దస్త్రపుపేరు అనుమతించబడదు.',\n'overwrite' => 'ఇప్పటికే ఉన్న దస్త్రాన్ని తిరిగరాయడం అనుమతించబడదు.',\n'unknown-error' => 'ఏదో తెలియని పొరపాటు జరిగింది.',\n'tmp-create-error' => 'తాత్కాలిక దస్త్రాన్ని సృష్టించలేకపోయాం.',\n'tmp-write-error' => 'తాత్కాలిక దస్త్రాన్ని రాయడంలో పొరపాటు.',\n'large-file' => 'ఫైళ్ళు $1 కంటే పెద్దవిగా ఉండకుండా ఉంటే మంచిది; ఈ ఫైలు $2 ఉంది.',\n'largefileserver' => 'ఈ ఫైలు సైజు సర్వరులో విధించిన పరిమితి కంటే ఎక్కువగా ఉంది.',\n'emptyfile' => 'మీరు అప్‌లోడు చేసిన ఫైలు ఖాళీగా ఉన్నట్లుంది. ఫైలు పేరును ఇవ్వడంలో స్పెల్లింగు తప్పు దొర్లి ఉండొచ్చు. మీరు అప్‌లోడు చెయ్యదలచింది ఇదో కాదో నిర్ధారించుకోండి.',\n'windows-nonascii-filename' => 'దస్త్రాల పేర్లలో ప్రత్యేక అక్షరాలకు ఈ వికీలో తోడ్పాటు లేదు.',\n'fileexists' => 'ఈ పేరుతో ఒక ఫైలు ఇప్పటికే ఉంది.\nదీనిని మీరు మార్చాలో లేదో తెలియకపోతె ఫైలు [[:$1]]ని చూడండి.\n[[$1|thumb]]',\n'filepageexists' => 'ఈ ఫైలు కొరకు వివరణ పేజీని [[:$1]] వద్ద ఈసరికే సృష్టించారు, కానీ ఆ పేరుతో ప్రస్తుతం ఏ ఫైలూ లేదు. మీరు ఇస్తున్న సంగ్రహం ఆ వివరణ పేజీలో కనబడదు. మీ సంగ్రహం అక్కడ కనబడాలంటే, నేరుగా అక్కడే చేర్చాలి.\n[[$1|thumb]]',\n'fileexists-extension' => 'ఇటువంటి పేరుతో మరో ఫైలు ఉంది: [[$2|thumb]]\n* ఎగుమతి చేస్తున్న ఫైలు పేరు: [[:$1]]\n* ప్రస్తుతం ఉన్న ఫైలు పేరు: [[:$2]]\nదయచేసి మరో పేరు ఎంచుకోండి.',\n'fileexists-thumbnail-yes' => \"ఈ ఫైలు కుదించిన బొమ్మ లాగా ఉంది ''(థంబ్‌నెయిలు)''. [[$1|thumb]]\n[[:$1]] ఫైలు చూడండి.\nగుర్తు పెట్టబడిన ఫైలు అసలు సైజే అది అయితే, మరో థంబ్‌నెయిలును అప్‌లోడు చెయ్యాల్సిన అవసరం లేదు.\",\n'file-thumbnail-no' => \"ఫైలు పేరు $1 తో మొదలవుతోంది.\nఅది పరిమాణం తగ్గించిన ''(నఖచిత్రం)'' లాగా అనిపిస్తోంది.\nఈ బొమ్మ యొక్క పూర్తి స్పష్టత కూర్పు ఉంటే, దాన్ని ఎగుమతి చెయ్యండి. లేదా ఫైలు పేరును మార్చండి.\",\n'fileexists-forbidden' => 'ఈ పేరుతో ఇప్పటికే ఒక ఫైలు ఉంది, దాన్ని తిరగరాయలేరు.\nమీరు ఇప్పటికీ ఈ ఫైలుని ఎగుమతి చేయాలనుకుంటే, వెనక్కి వెళ్ళి మరో పేరుతో ఎగుమతి చేయండి. [[File:$1|thumb|center|$1]]',\n'fileexists-shared-forbidden' => 'ఈ పేరుతో ఇప్పటికే ఒక ఫైలు అందరి ఫైళ్ళ ఖజానాలో ఉంది.\nఇప్పటికీ మీ ఫైలుని ఎగుమతి చేయాలనుకుంటే, వెనక్కివెళ్ళి మరో పేరు వాడండి. [[File:$1|thumb|center|$1]]',\n'file-exists-duplicate' => 'ఈ ఫైలు క్రింద పేర్కొన్న {{PLURAL:$1|ఫైలుకి|ఫైళ్ళకి}} నకలు:',\n'file-deleted-duplicate' => 'గతంలో ఈ ఫైలు లాంటిదే ఒక ఫైలుని ([[:$1]]) తొలగించివున్నారు. మీరు దీన్ని ఎగుమతి చేసేముందు ఆ ఫైలు యొక్క తొలగింపు చరిత్రని ఒక్కసారి చూడండి.',\n'uploadwarning' => 'ఎక్కింపు హెచ్చరిక',\n'uploadwarning-text' => 'ఫైలు వివరణని క్రింద మార్చి మళ్ళీ ప్రయత్నించండి.',\n'savefile' => 'దస్త్రాన్ని భద్రపరచు',\n'uploadedimage' => '\"[[$1]]\"ని ఎక్కించారు',\n'overwroteimage' => '\"[[$1]]\" యొక్క కొత్త కూర్పును ఎక్కించారు',\n'uploaddisabled' => 'క్షమించండి, అప్‌లోడు చెయ్యడం ప్రస్తుతానికి ఆపబడింది',\n'copyuploaddisabled' => 'URL ద్వారా ఎక్కింపుని అశక్తం చేసారు.',\n'uploadfromurl-queued' => 'మీ ఎక్కింపు వరుసలో ఉంది.',\n'uploaddisabledtext' => 'ఫైళ్ళ ఎగుమతులను అచేతనం చేసారు.',\n'php-uploaddisabledtext' => 'PHPలో ఫైలు ఎక్కింపులు అచేతనమై ఉన్నాయి.\nదయచేసి file_uploads అమరికని చూడండి.',\n'uploadscripted' => 'ఈ ఫైల్లో HTML కోడు గానీ స్క్రిప్టు కోడు గానీ ఉంది. వెబ్ బ్రౌజరు దాన్ని పొరపాటుగా అనువదించే అవకాశం ఉంది.',\n'uploadvirus' => 'ఈ ఫైలులో వైరస్‌ ఉంది! వివరాలు: $1',\n'uploadjava' => 'ఇదొక ZIP ఫైలు, ఇందులో ఒక Java .class ఫైలు ఉంది.\nJava ఫైళ్ళ వలన భద్రతకు తూట్లు పడే అవకాశం ఉంది కాబట్టి, వాటిని ఎక్కించడానికి అనుమతి లేదు.',\n'upload-source' => 'మూల దస్త్రం',\n'sourcefilename' => 'మూలం ఫైలుపేరు:',\n'sourceurl' => 'మూల URL:',\n'destfilename' => 'ఉద్దేశించిన ఫైలుపేరు:',\n'upload-maxfilesize' => 'గరిష్ట ఫైలు పరిమాణం: $1',\n'upload-description' => 'దస్త్రపు వివరణ',\n'upload-options' => 'ఎక్కింపు వికల్పాలు',\n'watchthisupload' => 'ఈ ఫైలుని గమనించు',\n'filewasdeleted' => 'ఇదే పేరుతో ఉన్న ఒక ఫైలును గతంలో అప్లోడు చేసారు, తరువాతి కాలంలో దాన్ని తొలగించారు. దాన్నీ మళ్ళీ అప్లోడు చేసే ముందు, మీరు $1 ను చూడాలి',\n'filename-bad-prefix' => \"మీరు అప్లోడు చేస్తున్న ఫైలు పేరు '''\\\"\\$1\\\"''' తో మొదలవుతుంది. ఇది డిజిటల్ కెమెరాలు ఆటోమాటిగ్గా ఇచ్చే పేరు. మరింత వివరంగా ఉండే పేరును ఎంచుకోండి.\",\n'upload-success-subj' => 'అప్‌లోడు జయప్రదం',\n'upload-success-msg' => '[$2] నుండి మీ ఎక్కింపు సఫలమైంది. అది ఇక్కడ అందుబాటులో ఉంది: [[:{{ns:file}}:$1]]',\n'upload-failure-subj' => 'ఎక్కింపు సమస్య',\n'upload-failure-msg' => '[$2] నుండి మీ ఎక్కింపుతో ఏదో సమస్య ఉంది:\n\n$1',\n'upload-warning-subj' => 'ఎక్కింపు హెచ్చరిక',\n'upload-warning-msg' => '[$2] నుండి మీ ఎక్కింపులో ఏదో సమస్య ఉంది. దాన్ని సరిచేయడానికి మీరు తిరిగి [[Special:Upload/stash/$1|ఎక్కింపు ఫారానికి]] వెళ్ళవచ్చు.',\n\n'upload-proto-error' => 'తప్పు ప్రోటోకోల్',\n'upload-proto-error-text' => 'రిమోట్ అప్‌లోడులు చెయ్యాలంటే URLలు http:// లేదా ftp:// తో మొదలు కావాలి.',\n'upload-file-error' => 'అంతర్గత లోపం',\n'upload-file-error-text' => 'సర్వరులో తాత్కాలిక ఫైలును సృష్టించబోగా ఏదో అంతర్గత లోపం తలెత్తింది. ఎవరైనా [[Special:ListUsers/sysop|నిర్వాహకుడిని]] సంప్రదించండి.',\n'upload-misc-error' => 'తెలియని అప్‌లోడు లోపం',\n'upload-misc-error-text' => 'అప్‌లోడు చేస్తూండగా ఏదో తెలియని లోపం తలెత్తింది. URL సరైనదేనని, అది అందుబాటులోనే ఉందని నిర్ధారించుకుని మళ్ళీ ప్రయత్నిందండి. సమస్య అలాగే ఉంటే, సిస్టము నిర్వాహకుని సంప్రదించండి.',\n'upload-too-many-redirects' => 'ఆ URLలో చాలా దారిమార్పులు ఉన్నాయి',\n'upload-unknown-size' => 'సైజు తెలియదు',\n'upload-http-error' => 'ఒక HTTP పొరపాటు జరిగింది: $1',\n\n# File backend\n'backend-fail-notexists' => '$1 ఫైలు అసలు లేనేలేదు.',\n'backend-fail-delete' => '$1 ఫైలును తొలగించలేకున్నాం.',\n'backend-fail-alreadyexists' => '$1 అనే దస్త్రం ఇప్పటికే ఉంది.',\n'backend-fail-opentemp' => 'తాత్కాలిక దస్త్రాన్ని తెరవలేకపోతున్నాం.',\n'backend-fail-closetemp' => 'తాత్కాలిక దస్త్రాన్ని మూసివేయలేకపోయాం.',\n'backend-fail-read' => '$1 దస్త్రము చదువలేకపోతిమి.',\n'backend-fail-create' => '$1 ఫైలులో రాయలేకున్నాం.',\n\n# ZipDirectoryReader\n'zip-file-open-error' => 'ఈ ఫైలును ZIP పరీక్ష కోసం తెరవబోతే, ఏదో తెలియని లోపం ఎదురైంది.',\n'zip-wrong-format' => 'ఇచ్చినది ZIP ఫైలు కాదు.',\n'zip-bad' => 'ఫైలు చెడిపోయిన, లేదా చదవడానికి వీల్లేని ZIP ఫైలు అయ్యుండాలి.\nదానిపై భద్రతా పరమైన పరీక్ష చెయ్యలేం.',\n'zip-unsupported' => 'ఇది MediaWiki కి పట్టులేని ZIP అంశాలు కలిగిన ZIP ఫైలు.\nదీనిపై సరైన భద్రతా పరీక్షలు చెయ్యలేం.',\n\n# Special:UploadStash\n'uploadstash-summary' => 'ఎక్కించినప్పటికీ వికీలో ప్రచురితం కాని (లేదా ఎక్కింపు జరుగుతున్న) ఫైళ్ళు ఈ పేజీలో కనిపిస్తాయి. ఈ ఫైళ్ళు ఎక్కించిన వాడుకరికి తప్ప మరొకరికి కనబడవు.',\n'uploadstash-badtoken' => 'ఆ చర్య విఫలమైంది. బహుశా మీ ఎడిటింగు అనుమతులకు కాలం చెల్లిందేమో. మళ్ళీ ప్రయత్నించండి.',\n'uploadstash-errclear' => 'ఫైళ్ళ తీసివేత విఫలమైంది.',\n'uploadstash-refresh' => 'దస్త్రాల జాబిజాను తాజాకరించు',\n\n# img_auth script messages\n'img-auth-accessdenied' => 'అనుమతిని నిరాకరించారు',\n'img-auth-nopathinfo' => 'PATH_INFO లేదు.\nమీ సర్వరు ఈ సమాచారాన్ని పంపించేందుకు అనువుగా అమర్చి లేదు.\nఅది CGI ఆధారితమై ఉండొచ్చు. అంచేత img_auth కు అనుకూలంగా లేదు.\nhttps://www.mediawiki.org/wiki/Manual:Image_Authorization చూడండి.',\n'img-auth-notindir' => 'అభ్యర్థించిన తోవ ఎక్కింపు సంచయంలో లేదు.',\n'img-auth-badtitle' => '\"$1\" నుండి సరైన శీర్షికని నిర్మించలేకపోయాం.',\n'img-auth-nologinnWL' => 'మీరు ప్రవేశించి లేరు మరియు \"$1\" అనేది తెల్లజాబితాలో లేదు.',\n'img-auth-nofile' => '\"$1\" అనే ఫైలు ఉనికిలో లేదు.',\n'img-auth-isdir' => 'మీరు \"$1\" అనే సంచయాన్ని చూడడానికి ప్రయత్నిస్తున్నారు.\nఫైళ్ళను చూడడానికి మాత్రమే అనుమతివుంది.',\n'img-auth-streaming' => '\"$1\" ను ప్రసారిస్తున్నాం.',\n'img-auth-public' => 'img_auth.php యొక్క పని, గోప్యవికీలనుండి ఫైళ్ళ వివరాలను బయట పెట్టడం.\nఇది బహిరంగ వికీగా తయారుచేయబడింది.\nసరైన భద్రత కోసం, img_auth.php ను అచేతనం చేసాం.',\n'img-auth-noread' => '\"$1\"ని చూడడానికి వాడుకరికి అనుమతి లేదు.',\n'img-auth-bad-query-string' => 'ఈ URL లో తప్పుడు క్వెరీ స్ట్రింగు ఉంది.',\n\n# HTTP errors\n'http-invalid-url' => 'తప్పుడు URL: $1',\n'http-invalid-scheme' => '\"$1\" ప్రణాళికలో ఉన్న URLలకు తోడ్పాటులేదు',\n'http-request-error' => 'తెలియని పొరపాటు వల్ల HTTP అభ్యర్థన విఫలమైంది.',\n'http-read-error' => 'HTTP చదువుటలో పొరపాటు.',\n'http-timed-out' => 'HTTP అభ్యర్థనకి కాలం చెల్లింది.',\n'http-curl-error' => 'URLని తేవడంలో పొరపాటు: $1',\n'http-bad-status' => 'HTTP అభ్యర్ధన చేస్తున్నప్పుడు సమస్య ఉంది: $1 $2',\n\n# Some likely curl errors. More could be added from \n'upload-curl-error6' => 'URL కు వెళ్ళలేకపోయాం',\n'upload-curl-error6-text' => 'ఇచ్చిన URL కు వెళ్ళలేకపోయాం. URL సరైనదేనని, సైటు పనిచేస్తూనే ఉన్నదనీ నిర్ధారించుకోండి.',\n'upload-curl-error28' => 'అప్లోడు కాలాతీతం',\n'upload-curl-error28-text' => 'చాలా సమయం తరువాత కూడా సైటు స్పందించలేదు. సైటు పనిచేస్తూనే ఉందని నిర్ధారించుకుని, కాస్త ఆగి మళ్ళీ ప్రయత్నించండి. రద్దీ కాస్త తక్కువగా ఉన్నపుడు ప్రయత్నిస్తే నయం.',\n\n'license' => 'లైసెన్సు వివరాలు:',\n'license-header' => 'లైసెన్సింగ్',\n'nolicense' => 'దేన్నీ ఎంచుకోలేదు',\n'license-nopreview' => '(మునుజూపు అందుబాటులో లేదు)',\n'upload_source_url' => ' (సార్వజనికంగా అందుబాటులో ఉన్న, సరైన URL)',\n'upload_source_file' => ' (మీ కంప్యూటర్లో ఒక ఫైలు)',\n\n# Special:ListFiles\n'listfiles-summary' => 'ఈ ప్రత్యేక పేజీ ఇప్పటి వరకూ ఎక్కించిన దస్త్రాలన్నింటినీ చూపిస్తుంది.\nవాడుకరి పేరు మీద వడపోసినప్పుడు, ఆ వాడుకరి ఎక్కించిన కూర్పు ఆ దస్త్రం యొక్క సరికొత్త కూర్పు అయితేనే చూపిస్తుంది.',\n'listfiles_search_for' => 'మీడియా పేరుకై వెతుకు:',\n'imgfile' => 'దస్త్రం',\n'listfiles' => 'దస్త్రాల జాబితా',\n'listfiles_thumb' => 'నఖచిత్రం',\n'listfiles_date' => 'తేదీ',\n'listfiles_name' => 'పేరు',\n'listfiles_user' => 'వాడుకరి',\n'listfiles_size' => 'పరిమాణం',\n'listfiles_description' => 'వివరణ',\n'listfiles_count' => 'కూర్పులు',\n\n# File description page\n'file-anchor-link' => 'దస్త్రం',\n'filehist' => 'దస్త్రపు చరిత్ర',\n'filehist-help' => 'తేదీ/సమయం ను నొక్కి ఆ సమయాన ఫైలు ఎలా ఉండేదో చూడవచ్చు.',\n'filehist-deleteall' => 'అన్నిటినీ తొలగించు',\n'filehist-deleteone' => 'తొలగించు',\n'filehist-revert' => 'తిరుగుసేత',\n'filehist-current' => 'ప్రస్తుత',\n'filehist-datetime' => 'తేదీ/సమయం',\n'filehist-thumb' => 'నఖచిత్రం',\n'filehist-thumbtext' => '$1 యొక్క నఖచిత్ర కూర్పు',\n'filehist-nothumb' => 'నఖచిత్రం లేదు',\n'filehist-user' => 'వాడుకరి',\n'filehist-dimensions' => 'కొలతలు',\n'filehist-filesize' => 'దస్త్రపు పరిమాణం',\n'filehist-comment' => 'వ్యాఖ్య',\n'filehist-missing' => 'ఫైలు కనిపించుటలేదు',\n'imagelinks' => 'దస్త్రపు వాడుక',\n'linkstoimage' => 'కింది {{PLURAL:$1|పేజీ|$1 పేజీల}} నుండి ఈ ఫైలుకి లింకులు ఉన్నాయి:',\n'linkstoimage-more' => '$1 కంటే ఎక్కువ {{PLURAL:$1|పేజీలు|పేజీలు}} ఈ ఫైలుకి లింకుని కలిగివున్నాయి.\nఈ ఫైలుకి లింకున్న {{PLURAL:$1|మొదటి ఒక పేజీని|మొదటి $1 పేజీలను}} ఈ క్రింది జాబితా చూపిస్తుంది.\n[[Special:WhatLinksHere/$2|పూర్తి జాబితా]] కూడా ఉంది.',\n'nolinkstoimage' => 'ఈ ఫైలుకు లింకున్న పేజీలు లేవు.',\n'morelinkstoimage' => 'ఈ ఫైలుకు ఇంకా [[Special:WhatLinksHere/$1| లింకులను]] చూడు',\n'linkstoimage-redirect' => '$1 (దస్త్రపు దారిమార్పు) $2',\n'duplicatesoffile' => 'క్రింద పేర్కొన్న {{PLURAL:$1|ఫైలు ఈ ఫైలుకి నకలు|$1 ఫైళ్ళు ఈ ఫైలుకి నకళ్ళు}} ([[Special:FileDuplicateSearch/$2|మరిన్ని వివరాలు]]):',\n'sharedupload' => 'ఈ ఫైలు $1 నుండి మరియు దీనిని ఇతర ప్రాజెక్టులలో కూడా ఉపయోగిస్తూవుండవచ్చు.',\n'sharedupload-desc-there' => 'ఈ ఫైలు $1 నుండి వచ్చింది అలానే ఇతర ప్రాజెక్టులలో కూడా ఉపయోగిస్తూ ఉండవచ్చు.\nమరింత సమాచారం కోసం, దయచేసి [$2 ఫైలు వివరణ పేజీ]ని చూడండి.',\n'sharedupload-desc-here' => 'ఈ ఫైలు $1 నుండి మరియు దీనిని ఇతర ప్రాజెక్టులలో కూడా ఉపయోగిస్తూ ఉండవచ్చు.\nదీని [$2 ఫైలు వివరణ పేజీ] లో ఉన్న వివరణని క్రింద చూపించాం.',\n'filepage-nofile' => 'ఈ పేరుతో ఏ ఫైలు లేదు.',\n'filepage-nofile-link' => 'ఈ పేరుతో ఏ ఫైలూ లేదు, కానీ మీరు $1 ను అప్‌లోడ్ చెయ్యవచ్చు.',\n'uploadnewversion-linktext' => 'ఈ దస్త్రపు కొత్త కూర్పును ఎక్కించండి',\n'shared-repo-from' => '$1 నుండి',\n'shared-repo' => 'సామూహిక నిక్షేపం',\n'shared-repo-name-wikimediacommons' => 'వికీమీడియా కామన్స్',\n'upload-disallowed-here' => 'ఈ దస్త్రాన్ని మీరు తిరగరాయలేరు.',\n\n# File reversion\n'filerevert' => '$1 ను వెనక్కు తీసుకుపో',\n'filerevert-legend' => 'ఫైలును వెనక్కు తీసుకుపో',\n'filerevert-intro' => \"మీరు '''[[Media:$1|$1]]''' ను [$3, $2 నాటి $4 కూర్పు]కు తీసుకు వెళ్తున్నారు.\",\n'filerevert-comment' => 'కారణం:',\n'filerevert-defaultcomment' => '$2, $1 నాటి కూర్పుకు తీసుకువెళ్ళాం',\n'filerevert-submit' => 'వెనక్కు తీసుకువెళ్ళు',\n'filerevert-success' => \"'''[[Media:$1|$1]]''' ను [$3, $2 నాటి $4 కూర్పు]కు తీసుకువెళ్ళాం.\",\n'filerevert-badversion' => 'మీరిచ్చిన టైముస్టాంపుతో ఈ ఫైలుకు స్థానిక కూర్పేమీ లేదు.',\n\n# File deletion\n'filedelete' => '$1ని తొలగించు',\n'filedelete-legend' => 'ఫైలుని తొలగించు',\n'filedelete-intro' => \"మీరు '''[[Media:$1|$1]]''' ఫైలుని దాని చరిత్రతో సహా తొలగించబోతున్నారు.\",\n'filedelete-intro-old' => \"మీరు '''[[Media:$1|$1]]''' యొక్క [$4 $3, $2] నాటి కూర్పును తొలగిస్తున్నారు.\",\n'filedelete-comment' => 'కారణం:',\n'filedelete-submit' => 'తొలగించు',\n'filedelete-success' => \"'''$1'''ని తొలగించాం.\",\n'filedelete-success-old' => \"'''[[Media:$1|$1]]''' యొక్క $3, $2 నాటి కూర్పును తొలగించాం.\",\n'filedelete-nofile' => \"'''$1''' ఇక్కడ లేదు.\",\n'filedelete-nofile-old' => \"'''$1''' యొక్క పాత కూర్పుల్లో మీరిచ్చిన పరామితులు కలిగిన కూర్పేమీ లేదు.\",\n'filedelete-otherreason' => 'ఇతర/అదనపు కారణం:',\n'filedelete-reason-otherlist' => 'ఇతర కారణం',\n'filedelete-reason-dropdown' => '* మామూలు తొలగింపు కారణాలు\n** కాపీహక్కుల ఉల్లంఘన\n** వేరొక దస్త్రానికి నకలు',\n'filedelete-edit-reasonlist' => 'తొలగింపు కారణాలని మార్చండి',\n'filedelete-maintenance' => 'సంరక్షణ నిమిత్తం ఫైళ్ళ తొలగింపు మరియు పునస్థాపనలను తాత్కాలికంగా అచేయతనం చేసారు.',\n'filedelete-maintenance-title' => 'దస్త్రాన్ని తొలగించలేకపోయాం',\n\n# MIME search\n'mimesearch' => 'బొమ్మల మెటాడేటా(MIME)ను వెతకండి',\n'mimesearch-summary' => 'ఈ పేజీ MIME-రకాన్ననుసరించి ఫైళ్ళను వడగట్టేందుకు దోహదం చేస్తుంది. Input: contenttype/subtype, ఉదా. బొమ్మ/jpeg.',\n'mimetype' => 'MIME రకం:',\n'download' => 'డౌన్‌లోడు',\n\n# Unwatched pages\n'unwatchedpages' => 'వీక్షణలో లేని పేజీలు',\n\n# List redirects\n'listredirects' => 'దారిమార్పుల జాబితా',\n\n# Unused templates\n'unusedtemplates' => 'వాడని మూసలు',\n'unusedtemplatestext' => 'వేరే ఇతర పేజీలలో చేర్చని {{ns:template}} పేరుబరిలోని పేజీలన్నింటినీ ఈ పేజీ చూపిస్తుంది.\nమూసలను తొలగించే ముందు వాటికి ఉన్న ఇతర లింకుల కోసం చూడడం గుర్తుంచుకోండి.',\n'unusedtemplateswlh' => 'ఇతర లింకులు',\n\n# Random page\n'randompage' => 'యాదృచ్ఛిక పేజీ',\n'randompage-nopages' => 'ఈ క్రింది {{PLURAL:$2|పెరుబరిలో|పెరుబరులలో}} పేజీలు ఏమి లేవు:$1',\n\n# Random redirect\n'randomredirect' => 'యాదృచ్చిక దారిమార్పు',\n'randomredirect-nopages' => '\"$1\" పేరుబరిలో దారిమార్పులేమీ లేవు.',\n\n# Statistics\n'statistics' => 'గణాంకాలు',\n'statistics-header-pages' => 'పేజీ గణాంకాలు',\n'statistics-header-edits' => 'మార్పుల గణాంకాలు',\n'statistics-header-views' => 'వీక్షణల గణాంకాలు',\n'statistics-header-users' => 'వాడుకరులు',\n'statistics-header-hooks' => 'ఇతర గణాంకాలు',\n'statistics-articles' => 'విషయపు పేజీలు',\n'statistics-pages' => 'పేజీలు',\n'statistics-pages-desc' => 'ఈ వికీలోని అన్ని పేజీలు (చర్చా పేజీలు, దారిమార్పులు, మొదలైనవన్నీ కలుపుకొని).',\n'statistics-files' => 'ఎక్కించిన దస్త్రాలు',\n'statistics-edits' => '{{SITENAME}}ని మొదలుపెట్టినప్పటినుండి జరిగిన మార్పులు',\n'statistics-edits-average' => 'పేజీకి సగటు మార్పులు',\n'statistics-views-total' => 'మొత్తం వీక్షణలు',\n'statistics-views-total-desc' => 'ఉనికిలో లేని పుటలకు మరియు ప్రత్యేక పుటలకు వచ్చిన సందర్శనలని కలుపలేదు',\n'statistics-views-peredit' => 'ఒక మార్పుకి వీక్షణలు',\n'statistics-users' => 'నమోదైన [[Special:ListUsers|వాడుకర్లు]]',\n'statistics-users-active' => 'క్రియాశీల వాడుకర్లు',\n'statistics-users-active-desc' => 'గత {{PLURAL:$1|రోజు|$1 రోజుల}}లో ఒక్క చర్యైనా చేసిన వాడుకరులు',\n'statistics-mostpopular' => 'ఎక్కువగా చూసిన పేజీలు',\n\n'pageswithprop-submit' => 'వెళ్ళు',\n\n'doubleredirects' => 'జంట దారిమార్పులు',\n'doubleredirectstext' => 'ఇతర దారిమార్పు పుటలకి తీసుకెళ్ళే దారిమార్పులని ఈ పుట చూపిస్తుంది.\nప్రతీ వరుసలో మొదటి మరియు రెండవ దారిమార్పులకు లంకెలు, ఆలానే రెండవ దారిమార్పు పుట యొక్క లక్ష్యం ఉన్నాయి. సాధారణంగా ఈ రెండవ దారిమార్పు యొక్క లక్ష్యమే \"అసలైనది\", అదే మొదటి దారిమార్పు యొక్క లక్ష్యంగా ఉండాలి.\nకొట్టివేయబడిన పద్దులు పరిష్కరించబడ్డవి.',\n'double-redirect-fixed-move' => '[[$1]]ని తరలించారు, అది ప్రస్తుతం [[$2]]కి దారిమార్పు.',\n'double-redirect-fixed-maintenance' => '[[$1]] కు జమిలి దారిమార్పును [[$2]] కు సరిచేస్తున్నాం.',\n'double-redirect-fixer' => 'దారిమార్పు సరిద్దువారు',\n\n'brokenredirects' => 'తెగిపోయిన దారిమార్పులు',\n'brokenredirectstext' => 'కింది దారిమార్పులు లేని-పేజీలకు మళ్ళించుతున్నాయి:',\n'brokenredirects-edit' => 'సవరించు',\n'brokenredirects-delete' => 'తొలగించు',\n\n'withoutinterwiki' => 'భాషా లింకులు లేని పేజీలు',\n'withoutinterwiki-summary' => 'క్రింది పేజీల నుండి ఇతర భాషా వికీలకు లింకులు లేవు:',\n'withoutinterwiki-legend' => 'ఆదిపదం',\n'withoutinterwiki-submit' => 'చూపించు',\n\n'fewestrevisions' => 'అతి తక్కువ కూర్పులు కలిగిన వ్యాసాలు',\n\n# Miscellaneous special pages\n'nbytes' => '$1 {{PLURAL:$1|బైటు|బైట్లు}}',\n'ncategories' => '$1 {{PLURAL:$1|వర్గం|వర్గాలు}}',\n'ninterwikis' => '$1 {{PLURAL:$1|అంతర్వికీ|అంతర్వికీలు}}',\n'nlinks' => '$1 {{PLURAL:$1|లింకు|లింకులు}}',\n'nmembers' => '{{PLURAL:$1|ఒక ఉపవర్గం/పేజీ/ఫైలు|$1 ఉపవర్గాలు/పేజీలు/ఫైళ్లు}}',\n'nrevisions' => '{{PLURAL:$1|ఒక సంచిక|$1 సంచికలు}}',\n'nviews' => '$1 {{PLURAL:$1|దర్శనము|దర్శనలు}}',\n'nimagelinks' => '$1 {{PLURAL:$1|పుట|పుటల}}లో ఉపయోగించారు',\n'ntransclusions' => '$1 {{PLURAL:$1|పుట|పుటల}}లో ఉపయోగించారు',\n'specialpage-empty' => 'ఈ పేజీ ఖాళీగా ఉంది.',\n'lonelypages' => 'అనాధ పేజీలు',\n'lonelypagestext' => 'కింది పేజీలకు {{SITENAME}}లోని ఏ ఇతర పేజీ నుండి కూడా లింకులు లేవు లేదా ఇవి మరే ఇతర పేజీలోనూ కలపబడలేదు.',\n'uncategorizedpages' => 'వర్గీకరించని పేజీలు',\n'uncategorizedcategories' => 'వర్గీకరించని వర్గములు',\n'uncategorizedimages' => 'వర్గీకరించని బొమ్మలు',\n'uncategorizedtemplates' => 'వర్గీకరించని మూసలు',\n'unusedcategories' => 'ఉపయోగించని వర్గాలు',\n'unusedimages' => 'ఉపయోగించబడని ఫైళ్ళు',\n'popularpages' => 'ప్రజాదరణ పొందిన పేజీలు',\n'wantedcategories' => 'కోరిన వర్గాలు',\n'wantedpages' => 'కోరిన పేజీలు',\n'wantedpages-badtitle' => 'ఫలితాల సమితిలో తప్పుడు శీర్షిక: $1',\n'wantedfiles' => 'కావలసిన ఫైళ్ళు',\n'wantedtemplates' => 'కావాల్సిన మూసలు',\n'mostlinked' => 'అధిక లింకులు చూపే పేజీలు',\n'mostlinkedcategories' => 'అధిక లింకులు చూపే వర్గాలు',\n'mostlinkedtemplates' => 'ఎక్కువగా ఉపయోగించిన మూసలు',\n'mostcategories' => 'అధిక వర్గాలలో చేరిన వ్యాసాలు',\n'mostimages' => 'అధిక లింకులు గల బొమ్మలు',\n'mostrevisions' => 'అధిక సంచికలు గల వ్యాసాలు',\n'prefixindex' => 'ఉపసర్గతో అన్ని పేజీలు',\n'prefixindex-namespace' => 'ఉపసర్గతో ఉన్న పేజీలు ($1 పేరుబరి)',\n'shortpages' => 'చిన్న పేజీలు',\n'longpages' => 'పొడవు పేజీలు',\n'deadendpages' => 'అగాధ (డెడ్ఎండ్) పేజీలు',\n'deadendpagestext' => 'కింది పేజీల నుండి ఈ వికీ లోని ఏ ఇతర పేజీకీ లింకులు లేవు.',\n'protectedpages' => 'సంరక్షిత పేజీలు',\n'protectedpages-indef' => 'అనంత సంరక్షణ మాత్రమే',\n'protectedpages-cascade' => 'కాస్కేడింగు రక్షణలు మాత్రమే',\n'protectedpagestext' => 'కింది పేజీలను తరలించకుండా, దిద్దుబాటు చెయ్యకుండా సంరక్షించాము',\n'protectedpagesempty' => 'ఈ పరామితులతో ప్రస్తుతం ఏ పేజీలు కూడా సంరక్షించబడి లేవు.',\n'protectedtitles' => 'సంరక్షిత శీర్షికలు',\n'protectedtitlestext' => 'కింది శీర్షికలతో పేజీలు సృష్టించకుండా సంరక్షించబడ్డాయి',\n'protectedtitlesempty' => 'ఈ పరామితులతో ప్రస్తుతం శీర్షికలేమీ సరక్షించబడి లేవు.',\n'listusers' => 'వాడుకరుల జాబితా',\n'listusers-editsonly' => 'మార్పులు చేసిన వాడుకరులను మాత్రమే చూపించు',\n'listusers-creationsort' => 'చేరిన తేదీ క్రమంలో చూపించు',\n'usereditcount' => '$1 {{PLURAL:$1|మార్పు|మార్పులు}}',\n'usercreated' => '$1 న $2కి {{GENDER:$3|చేరారు}}',\n'newpages' => 'కొత్త పేజీలు',\n'newpages-username' => 'వాడుకరి పేరు:',\n'ancientpages' => 'పాత పేజీలు',\n'move' => 'తరలించు',\n'movethispage' => 'ఈ పేజీని తరలించు',\n'unusedimagestext' => 'ఈ క్రింది ఫైళ్ళు ఉన్నాయి కానీ వాటిని ఏ పేజీలోనూ ఉపయోగించట్లేదు.\nఇతర వెబ్ సైట్లు సూటి URL ద్వారా ఇక్కడి ఫైళ్ళకు లింకు ఇవ్వవచ్చు, మరియు ఆవిధంగా క్రియాశీలంగా వాడుకలో ఉన్నప్పటికీ అటువంటివి ఈ జాబితాలో చేరి ఉండవచ్చునని గమనించండి.',\n'unusedcategoriestext' => 'కింది వర్గాలకు పేజీలైతే ఉన్నాయి గానీ, వీటిని వ్యాసాలు గానీ, ఇతర వర్గాలు గానీ ఉపయోగించడం లేదు.',\n'notargettitle' => 'గమ్యం లేదు',\n'notargettext' => 'ఈ పని ఏ పేజీ లేదా సభ్యునిపై జరగాలనే గమ్యాన్ని మీరు సూచించలేదు.',\n'nopagetitle' => 'అలాంటి పేజీ లేదు',\n'nopagetext' => 'మీరు అడిగిన పేజీ లేదు',\n'pager-newer-n' => '{{PLURAL:$1|1 కొత్తది|$1 కొత్తవి}}',\n'pager-older-n' => '{{PLURAL:$1|1 పాతది|$1 పాతవి}}',\n'suppress' => 'పరాకు',\n'querypage-disabled' => 'పనితీరు కారణాల వలన, ఈ ప్రత్యేకపేజీని అశక్తం చేసాం.',\n\n# Book sources\n'booksources' => 'పుస్తక మూలాలు',\n'booksources-search-legend' => 'పుస్తక మూలాల కోసం వెతుకు',\n'booksources-go' => 'వెళ్ళు',\n'booksources-text' => 'కొత్త, పాత పుస్తకాలు అమ్మే ఇతర సైట్లకు లింకులు కింద ఇచ్చాం. మీరు వెతికే పుస్తకాలకు సంబంధించిన మరింత సమాచారం కూడా అక్కడ దొరకొచ్చు:',\n'booksources-invalid-isbn' => 'మీరిచ్చిన ISBN సరైనదిగా అనిపించుటలేదు; అసలు మూలాన్నుండి కాపీ చేయడంలో పొరపాట్లున్నాయేమో చూసుకోండి.',\n\n# Special:Log\n'specialloguserlabel' => 'కర్త:',\n'speciallogtitlelabel' => 'లక్ష్యం (శీర్షిక లేదా వాడుకరి):',\n'log' => 'చిట్టాలు',\n'all-logs-page' => 'అన్ని బహిరంగ చిట్టాలు',\n'alllogstext' => '{{SITENAME}} యొక్క అందుబాటులో ఉన్న అన్ని చిట్టాల యొక్క సంయుక్త ప్రదర్శన.\nఒక చిట్టా రకాన్ని గానీ, ఒక వాడుకరి పేరు గానీ (case-sensitive), లేదా ప్రభావిత పుటని (ఇది కూడా case-sensitive) గానీ ఎంచుకుని సంబంధిత చిట్టాను మాత్రమే చూడవచ్చు.',\n'logempty' => 'సరిపోలిన అంశాలేమీ చిట్టాలో లేవు.',\n'log-title-wildcard' => 'ఈ పాఠ్యంతో మొదలయ్యే పుస్తకాల కొరకు వెతుకు',\n'showhideselectedlogentries' => 'ఎంచుకున్న చిట్టా పద్దులను చూపించు/దాచు',\n\n# Special:AllPages\n'allpages' => 'అన్ని పేజీలు',\n'alphaindexline' => '$1 నుండి $2 వరకు',\n'nextpage' => 'తరువాతి పేజీ ($1)',\n'prevpage' => 'మునుపటి పేజీ ($1)',\n'allpagesfrom' => 'ఇక్కడ మొదలు పెట్టి పేజీలు చూపించు:',\n'allpagesto' => 'ఇక్కడవరకు ఉన్న పేజీలు చూపించు:',\n'allarticles' => 'అన్ని పేజీలు',\n'allinnamespace' => 'అన్ని పేజీలు ($1 namespace)',\n'allnotinnamespace' => 'అన్ని పేజీలు ($1 నేంస్పేస్ లేనివి)',\n'allpagesprev' => 'పూర్వపు',\n'allpagesnext' => 'తర్వాతి',\n'allpagessubmit' => 'వెళ్లు',\n'allpagesprefix' => 'ఈ ఆదిపదం కలిగిన పేజీలను చూపించు:',\n'allpagesbadtitle' => 'మీరిచ్చిన పేజీ పేరు సరైనది కాకపోయి ఉండాలి లేదా దానికి భాషాంతర లేదా అంతర్వికీ ఆదిపదమైనా ఉండి ఉండాలి. పేర్లలో వాడకూడని కారెక్టర్లు ఆ పేరులో ఉండి ఉండవచ్చు.',\n'allpages-bad-ns' => '{{SITENAME}} లో \"$1\" అనే నేమ్&zwnj;స్పేస్ లేదు.',\n'allpages-hide-redirects' => 'దారిమార్పులను దాచు',\n\n# SpecialCachedPage\n'cachedspecial-refresh-now' => 'సరికొత్త కూర్పును చూడండి.',\n\n# Special:Categories\n'categories' => 'వర్గాలు',\n'categoriespagetext' => 'ఈ క్రింది {{PLURAL:$1|వర్గం పేజీలను లేదా మాధ్యమాలను కలిగివుంది|వర్గాలు పేజీలను లేదా మాధ్యమాలను కలిగివున్నాయి}}.\n[[Special:UnusedCategories|వాడుకలో లేని వర్గాలని]] ఇక్కడ చూపించట్లేదు.\n[[Special:WantedCategories|కోరుతున్న వర్గాలను]] కూడా చూడండి.',\n'categoriesfrom' => 'ఇక్కడనుండి మొదలుకొని వర్గాలు చూపించు:',\n'special-categories-sort-count' => 'సంఖ్యల ప్రకారం క్రమపరచు',\n'special-categories-sort-abc' => 'అకారాది క్రమంలో అమర్చు',\n\n# Special:DeletedContributions\n'deletedcontributions' => 'తొలగించబడిన వాడుకరి రచనలు',\n'deletedcontributions-title' => 'తొలగించబడిన వాడుకరి రచనలు',\n'sp-deletedcontributions-contribs' => 'మార్పులు చేర్పులు',\n\n# Special:LinkSearch\n'linksearch' => 'బయటి లింకుల అన్వేషణ',\n'linksearch-pat' => 'వెతకాల్సిన నమూనా:',\n'linksearch-ns' => 'పేరుబరి:',\n'linksearch-ok' => 'వెతుకు',\n'linksearch-text' => '\"*.wikipedia.org\" వంటి వైల్డ్ కార్డులు వాడవచ్చు.
ఉపయోగించుకోగల ప్రోటోకాళ్లు: $1',\n'linksearch-line' => '$2 నుండి $1కి లింకు ఉంది',\n'linksearch-error' => 'హోస్ట్‌నేముకు ముందు మాత్రమే వైల్డ్ కార్డులు వాడవచ్చు.',\n\n# Special:ListUsers\n'listusersfrom' => 'వాడుకరులను ఇక్కడ నుండి చూపించు:',\n'listusers-submit' => 'చూపించు',\n'listusers-noresult' => 'వాడుకరి దొరకలేదు.',\n'listusers-blocked' => '(నిరోధించారు)',\n\n# Special:ActiveUsers\n'activeusers' => 'క్రియాశీల వాడుకరుల జాబితా',\n'activeusers-intro' => 'ఇది గత $1 {{PLURAL:$1|రోజులో|రోజులలో}} ఏదైనా కార్యకలాపం చేసిన వాడుకరుల జాబితా.',\n'activeusers-count' => 'గడచిన {{PLURAL:$3|ఒక రోజు|$3 రోజుల}}లో $1 {{PLURAL:$1|మార్పు|మార్పులు}}',\n'activeusers-from' => 'వాడుకరులను ఇక్కడ నుండి చూపించు:',\n'activeusers-hidebots' => 'బాట్లను దాచు',\n'activeusers-hidesysops' => 'నిర్వాహకులను దాచు',\n'activeusers-noresult' => 'వాడుకరులెవరూ లేరు.',\n\n# Special:ListGroupRights\n'listgrouprights' => 'వాడుకరి గుంపుల హక్కులు',\n'listgrouprights-summary' => 'కింది జాబితాలో ఈ వికీలో నిర్వచించిన వాడుకరి గుంపులు, వాటికి సంబంధించిన హక్కులు ఉన్నాయి.\nవిడివిడిగా హక్కులకు సంబంధించిన మరింత సమాచారం [[{{MediaWiki:Listgrouprights-helppage}}]] వద్ద లభించవచ్చు.',\n'listgrouprights-key' => '* ప్రసాదించిన హక్కు\n* వెనక్కి తీసుకున్న హక్కు',\n'listgrouprights-group' => 'గుంపు',\n'listgrouprights-rights' => 'హక్కులు',\n'listgrouprights-helppage' => 'Help:గుంపు హక్కులు',\n'listgrouprights-members' => '(సభ్యుల జాబితా)',\n'listgrouprights-addgroup' => '{{PLURAL:$2|గుంపుని|గుంపులను}} చేర్చగలరు: $1',\n'listgrouprights-removegroup' => '{{PLURAL:$2|గుంపుని|గుంపులను}} తొలగించగలరు: $1',\n'listgrouprights-addgroup-all' => 'అన్ని గుంపులను చేర్చగలరు',\n'listgrouprights-removegroup-all' => 'అన్ని గుంపులను తొలగించగలరు',\n'listgrouprights-addgroup-self' => '{{PLURAL:$2|సమూహాన్ని|సమూహాలని}} తన స్వంత ఖాతాకి చేర్చుకోగలగడం: $1',\n'listgrouprights-removegroup-self' => '{{PLURAL:$2|సమూహాన్ని|సమూహాలని}} తన స్వంత ఖాతా నుండి తొలగించుకోవడం: $1',\n'listgrouprights-addgroup-self-all' => 'అన్ని సమూహాలని స్వంత ఖాతాకి చేర్చుకోలగడటం',\n'listgrouprights-removegroup-self-all' => 'స్వంత ఖాతా నుండి అన్ని సమూహాలనూ తొలగించుకోగలగడం',\n\n# Email user\n'mailnologin' => 'పంపించవలసిన చిరునామా లేదు',\n'mailnologintext' => 'ఇతరులకు ఈ-మెయిలు పంపించాలంటే, మీరు [[Special:UserLogin|లాగిన్‌]] అయి ఉండాలి, మరియు మీ [[Special:Preferences|అభిరుచుల]]లో సరైన ఈ-మెయిలు చిరునామా ఇచ్చి ఉండాలి.',\n'emailuser' => 'ఈ వాడుకరికి ఈ-మెయిలుని పంపించండి',\n'emailuser-title-target' => 'ఈ {{GENDER:$1|వాడుకరికి}} ఈమెయిలు పంపించండి',\n'emailuser-title-notarget' => 'ఈ-మెయిలు వాడుకరి',\n'emailpage' => 'వాడుకరికి ఈ-మెయిలుని పంపించు',\n'emailpagetext' => 'వాడుకరికి ఈమెయిలు సందేశము పంపించుటకు క్రింది ఫారంను ఉపయోగించవచ్చు. [[Special:Preferences|మీ వాడుకరి అభిరుచుల]]లో మీరిచ్చిన ఈ-మెయిలు చిరునామా \"నుండి\" ఆ సందేశం వచ్చినట్లుగా ఉంటుంది, కనుక వేగుని అందుకునేవారు నేరుగా మీకు జవాబివ్వగలుగుతారు.',\n'usermailererror' => 'మెయిలు ఆబ్జెక్టు ఈ లోపాన్ని చూపింది:',\n'defemailsubject' => 'వాడుకరి \"$1\" నుండి {{SITENAME}} ఈ-మెయిలు',\n'usermaildisabled' => 'వాడుకరి ఈ-మెయిళ్ళు అచేతనం చేసారు',\n'usermaildisabledtext' => 'ఈ వికీలో మీరు ఇతర వాడుకరులకి ఈ-మెయిళ్ళని పంపించలేరు',\n'noemailtitle' => 'ఈ-మెయిలు చిరునామా లేదు',\n'noemailtext' => 'ఈ వాడుకరి సరైన ఈ-మెయిలు చిరునామాని ఇవ్వలేదు.',\n'nowikiemailtitle' => 'ఈ-మెయిళ్ళను అనుమతించరు',\n'nowikiemailtext' => 'ఇతర వాడుకరుల నుండి ఈ-మెయిళ్ళను అందుకోడానికి ఈ వాడుకరి సుముఖంగా లేరు.',\n'emailtarget' => 'అందుకొనేవారి వాడుకరిపేరు ఇవ్వండి',\n'emailusername' => 'వాడుకరి పేరు:',\n'emailusernamesubmit' => 'దాఖలుచెయ్యి',\n'email-legend' => 'మరో {{SITENAME}} వాడుకరికి వేగు పంపించండి',\n'emailfrom' => 'ఎవరు:',\n'emailto' => 'ఎవరికి:',\n'emailsubject' => 'విషయం:',\n'emailmessage' => 'సందేశం:',\n'emailsend' => 'పంపించు',\n'emailccme' => 'సందేశపు ఒక ప్రతిని నాకు ఈమెయిలు పంపు.',\n'emailccsubject' => '$1 కు మీరు పంపిన సందేశపు ప్రతి: $2',\n'emailsent' => 'ఈ-మెయిలు పంపించాం',\n'emailsenttext' => 'మీ ఈ-మెయిలు సందేశం పంపబడింది.',\n'emailuserfooter' => 'ఈ ఈ-మెయిలుని $2 కి {{SITENAME}} లోని \"వాడుకరికి ఈమెయిలు\" అనే సౌలభ్యం ద్వారా $1 పంపించారు.',\n\n# User Messenger\n'usermessage-summary' => 'వ్యవస్థ సందేశాన్ని వదిలివేస్తున్నాం.',\n'usermessage-editor' => 'వ్యవస్థ సందేశకులు',\n\n# Watchlist\n'watchlist' => 'వీక్షణ జాబితా',\n'mywatchlist' => 'వీక్షణ జాబితా',\n'watchlistfor2' => '$1 కొరకు $2',\n'nowatchlist' => 'మీ వీక్షణ జాబితా ఖాళీగా ఉంది.',\n'watchlistanontext' => 'మీ వీక్షణ జాబితా లోని అంశాలను చూసేందుకు లేదా మార్చేందుకు మీరు $1.',\n'watchnologin' => 'లాగిన్‌ అయిలేరు',\n'watchnologintext' => 'మీ వీక్షణ జాబితాను మార్చడానికి మీరు [[Special:UserLogin|లాగిన్‌]] అయి ఉండాలి.',\n'addwatch' => 'వీక్షణ జాబితాలో చేర్చు',\n'addedwatchtext' => \"\\\"[[:\\$1]]\\\" అనే పుట మీ [[Special:Watchlist|వీక్షణ జాబితా]]లో చేరింది.\nభవిష్యత్తులో ఈ పుటకి మరియు సంబంధిత చర్చాపుటకి జరిగే మార్పులు అక్కడ కనిపిస్తాయి, మరియు [[Special:RecentChanges|ఇటీవలి మార్పుల జాబితా]]లో సులభంగా గుర్తించడానికి ఈ పుట '''బొద్దుగా''' కనిపిస్తుంది.\",\n'removewatch' => 'వీక్షణ జాబితా నుండి తొలగించు',\n'removedwatchtext' => '\"[[:$1]]\" అనే పేజీ [[Special:Watchlist|మీ వీక్షణ జాబితా]] నుండి తొలగించబడినది.',\n'watch' => 'వీక్షించు',\n'watchthispage' => 'ఈ పుట మీద కన్నేసి ఉంచు',\n'unwatch' => 'వీక్షించవద్దు',\n'unwatchthispage' => 'వీక్షణను ఆపు',\n'notanarticle' => 'వ్యాసం పేజీ కాదు',\n'notvisiblerev' => 'ఈ కూర్పును తొలగించాం',\n'watchlist-details' => 'మీ వీక్షణ జాబితాలో {{PLURAL:$1|ఒక పేజీ ఉంది|$1 పేజీలు ఉన్నాయి}}, చర్చా పేజీలని వదిలేసి.',\n'wlheader-enotif' => 'ఈ-మెయిలు ప్రకటనలు పంపబడతాయి.',\n'wlheader-showupdated' => \"మీ గత సందర్శన తరువాత మారిన పేజీలు '''బొద్దు'''గా చూపించబడ్డాయి.\",\n'watchmethod-recent' => 'వీక్షణ జాబితాలోని పేజీల కొరకు ఇటీవలి మార్పులు పరిశీలించబడుతున్నాయి',\n'watchmethod-list' => 'ఇటీవలి మార్పుల కొరకు వీక్షణ జాబితాలోని పేజీలు పరిశీలించబడుతున్నాయి',\n'watchlistcontains' => 'మీ వీక్షణ జాబితాలో {{PLURAL:$1|ఒక పేజీ ఉంది|$1 పేజీలు ఉన్నాయి}}.',\n'iteminvalidname' => \"'$1' తో ఇబ్బంది, సరైన పేరు కాదు...\",\n'wlnote' => \"$3 నాడు $4 సమయానికి, గడచిన {{PLURAL:$2|గంటలో|'''$2''' గంటలలో}} జరిగిన {{PLURAL:$1|ఒక్క మార్పు కింద ఉంది|'''$1''' మార్పులు కింద ఉన్నాయి}}.\",\n'wlshowlast' => 'గత $1 గంటలు $2 రోజులు $3 చూపించు',\n'watchlist-options' => 'వీక్షణ జాబితా ఎంపికలు',\n\n# Displayed when you click the \"watch\" button and it is in the process of watching\n'watching' => 'గమనిస్తున్నాం...',\n'unwatching' => 'వీక్షణ నుండి తొలగిస్తున్నా...',\n\n'enotif_mailer' => '{{SITENAME}} ప్రకటన మెయిలు పంపునది',\n'enotif_reset' => 'అన్ని పేజీలను చూసినట్లుగా గుర్తించు',\n'enotif_impersonal_salutation' => '{{SITENAME}} వాడుకరి',\n'enotif_lastvisited' => 'మీ గత సందర్శన తరువాత జరిగిన మార్పుల కొరకు $1 చూడండి.',\n'enotif_lastdiff' => 'ఈ మార్పు చూసేందుకు $1 కు వెళ్ళండి.',\n'enotif_anon_editor' => 'అజ్ఞాత వాడుకరి $1',\n'enotif_body' => 'ప్రియమైన $WATCHINGUSERNAME,\n\n\n{{SITENAME}}లో $PAGETITLE అనే పేజీని $PAGEEDITDATE సమయానికి $PAGEEDITOR $CHANGEDORCREATED, ప్రస్తుత కూర్పు కొరకు $PAGETITLE_URL చూడండి.\n\n$NEWPAGE\n\nరచయిత సారాంశం: $PAGESUMMARY $PAGEMINOREDIT\n\nరచయితను సంప్రదించండి:\nమెయిలు: $PAGEEDITOR_EMAIL\nవికీ: $PAGEEDITOR_WIKI\n\nమీరు ఈ పేజీకి వెళ్తే తప్ప ఇక ముందు ఈ పేజీకి జరిగే మార్పుల గురించిన వార్తలను మీకు పంపించము. మీ వీక్షణజాబితా లోని అన్ని పేజీలకు ఉన్న గమనింపు జెండాలను మార్చుకోవచ్చు.\n\n మీ స్నేహపూర్వక {{SITENAME}} గమనింపుల వ్యవస్థ\n\n--\nమీ వీక్షణజాబితా అమరికలను మార్చుకునేందుకు,\n{{canonicalurl:{{#special:EditWatchlist}}}} ని చూడండి.\n\nఈ పేజీని మీ వీక్షణజాబితా నుండి తొలగించుకునేందుకు,\n$UNWATCHURL కి వెళ్ళండి.\n\nమీ అభిప్రాయాలు చెప్పేందుకు మరియు మరింత సహాయానికై:\n{{canonicalurl:{{MediaWiki:helppage}}}}',\n'created' => 'సృష్టించారు',\n'changed' => 'మార్చారు',\n\n# Delete\n'deletepage' => 'పేజీని తొలగించు',\n'confirm' => 'ధృవీకరించు',\n'excontent' => \"ఇదివరకు విషయ సంగ్రహం: '$1'\",\n'excontentauthor' => 'ఉన్న విషయ సంగ్రహం: \"$1\" (మరియు దీని ఒకే ఒక్క రచయిత \"[[Special:Contributions/$2|$2]]\")',\n'exbeforeblank' => \"ఖాళీ చెయ్యకముందు పేజీలో ఉన్న విషయ సంగ్రహం: '$1'\",\n'exblank' => 'పేజీ ఖాళీగా ఉంది',\n'delete-confirm' => '\"$1\"ని తొలగించు',\n'delete-legend' => 'తొలగించు',\n'historywarning' => \"'''హెచ్చరిక''': మీరు తొలగించబోయే పేజీకి సుమారు $1 {{PLURAL:$1|కూర్పుతో|కూర్పులతో}} చరిత్ర ఉంది:\",\n'confirmdeletetext' => 'మీరో పేజీనో, బొమ్మనో దాని చరిత్రతోపాటుగా శాశ్వతంగా డేటాబేసు నుండి తీసెయ్యబోతున్నారు. మీరు చెయ్యదలచింది ఇదేననీ, దీని పర్యవసానాలు మీకు తెలుసనీ, దీన్ని [[{{MediaWiki:Policy-url}}|నిభందనల]] ప్రకారమే చేస్తున్నారనీ నిర్ధారించుకోండి.',\n'actioncomplete' => 'పని పూర్తయింది',\n'actionfailed' => 'చర్య విఫలమైంది',\n'deletedtext' => '\"$1\" తుడిచివేయబడింది. ఇటీవలి తుడిచివేతలకు సంబంధించిన నివేదిక కొరకు $2 చూడండి.',\n'dellogpage' => 'తొలగింపుల చిట్టా',\n'dellogpagetext' => 'ఇది ఇటీవలి తుడిచివేతల జాబితా.',\n'deletionlog' => 'తొలగింపుల చిట్టా',\n'reverted' => 'పాత కూర్పుకు తీసుకువెళ్ళాం.',\n'deletecomment' => 'కారణం:',\n'deleteotherreason' => 'ఇతర/అదనపు కారణం:',\n'deletereasonotherlist' => 'ఇతర కారణం',\n'deletereason-dropdown' => '* తొలగింపుకి సాధారణ కారణాలు\n** రచయిత అభ్యర్థన\n** కాపీహక్కుల ఉల్లంఘన\n** దుశ్చర్య',\n'delete-edit-reasonlist' => 'తొలగింపు కారణాలని మార్చండి',\n'delete-toobig' => 'ఈ పేజీకి $1 {{PLURAL:$1|కూర్పుకు|కూర్పులకు}} మించిన, చాలా పెద్ద దిద్దుబాటు చరితం ఉంది. {{SITENAME}}కు అడ్డంకులు కలగడాన్ని నివారించేందుకు గాను, అలాంటి పెద్ద పేజీల తొలగింపును నియంత్రించాం.',\n'delete-warning-toobig' => 'ఈ పేజీకి $1 {{PLURAL:$1|కూర్పుకు|కూర్పులకు}} మించిన, చాలా పెద్ద దిద్దుబాటు చరితం ఉంది. దాన్ని తొలగిస్తే {{SITENAME}}కి చెందిన డేటాబేసు కార్యాలకు ఆటంకం కలగొచ్చు; అప్రమత్తతో ముందుకుసాగండి.',\n\n# Rollback\n'rollback' => 'దిద్దుబాట్లను రద్దుచేయి',\n'rollback_short' => 'రద్దుచేయి',\n'rollbacklink' => 'రద్దుచేయి',\n'rollbacklinkcount' => '$1 {{PLURAL:$1|మార్పును|మార్పులను}} రద్దుచేయి',\n'rollbacklinkcount-morethan' => '$1 కంటే ఎక్కువ {{PLURAL:$1|మార్పును|మార్పులను}} రద్దుచేయి',\n'rollbackfailed' => 'రద్దుచేయటం విఫలమైంది',\n'cantrollback' => 'రచనను వెనక్కి తీసుకువెళ్ళలేము; ఈ పేజీకి ఇదొక్కటే రచన.',\n'alreadyrolled' => '[[:$1]]లో [[User:$2|$2]] ([[User talk:$2|చర్చ]]{{int:pipe-separator}}[[Special:Contributions/$2|{{int:contribslink}}]]) చేసిన చివరి మార్పును రద్దు చెయ్యలేము;\nమరెవరో ఆ పేజీని వెనక్కి మళ్ళించారు, లేదా మార్చారు.\n\nచివరి మార్పులు చేసినవారు: [[User:$3|$3]] ([[User talk:$3|చర్చ]]{{int:pipe-separator}}[[Special:Contributions/$3|{{int:contribslink}}]]).',\n'editcomment' => \"దిద్దుబాటు సారాశం: \\\"''\\$1''\\\".\",\n'revertpage' => '[[Special:Contributions/$2|$2]] ([[User talk:$2|చర్చ]]) చేసిన మార్పులను [[User:$1|$1]] యొక్క చివరి కూర్పు వరకు తిప్పికొట్టారు.',\n'revertpage-nouser' => '(తొలగించిన వాడుకరిపేరు) చేసిన మార్పులను [[User:$1|$1]] యొక్క చివరి కూర్పుకి తిప్పికొట్టారు',\n'rollback-success' => '$1 చేసిన దిద్దుబాట్లను వెనక్కు తీసుకెళ్ళాం; తిరిగి $2 చేసిన చివరి కూర్పుకు మార్చాం.',\n\n# Edit tokens\n'sessionfailure-title' => 'సెషను వైఫల్యం',\n'sessionfailure' => 'మీ ప్రవేశపు సెషనుతో ఏదో సమస్య ఉన్నట్లుంది;\nసెషను హైజాకు కాకుండా ఈ చర్యను రద్దు చేసాం.\n\"back\" కొట్టి, ఎక్కడి నుండి వచ్చారో ఆ పేజీని మళ్ళీ లోడు చేసి, తిరిగి ప్రయత్నించండి.',\n\n# Protect\n'protectlogpage' => 'సంరక్షణల చిట్టా',\n'protectlogtext' => 'ఈ క్రింద ఉన్నది పేజీల సంరక్షణలకు జరిగిన మార్పుల జాబితా.\nప్రస్తుతం అమలులో ఉన్న సంరక్షణలకై [[Special:ProtectedPages|సంరక్షిత పేజీల జాబితా]]ను చూడండి.',\n'protectedarticle' => '\"[[$1]]\" సంరక్షించబడింది.',\n'modifiedarticleprotection' => '\"[[$1]]\" సరక్షణ స్థాయిని మార్చాం',\n'unprotectedarticle' => '\"[[$1]]\" యొక్క సంరక్షణను తొలగించారు',\n'movedarticleprotection' => 'సంరక్షణా అమరికని \"[[$2]]\" నుండి \"[[$1]]\"కి మార్చారు',\n'protect-title' => '\"$1\" యొక్క సంరక్షణ స్థాయి అమర్పు',\n'protect-title-notallowed' => '\"$1\" యొక్క సంరక్షణ స్థాయి',\n'prot_1movedto2' => '$1, $2కు తరలించబడింది',\n'protect-badnamespace-text' => 'ఈ పేరుబరిలో ఉన్న పేజీలను సంరక్షించలేరు.',\n'protect-legend' => 'సంరక్షణను నిర్ధారించు',\n'protectcomment' => 'కారణం:',\n'protectexpiry' => 'గడువు:',\n'protect_expiry_invalid' => 'గడువు సమయాన్ని సరిగ్గా ఇవ్వలేదు.',\n'protect_expiry_old' => 'మీరిచ్చిన గడువు ప్రస్తుత సమయం కంటే ముందు ఉంది.',\n'protect-unchain-permissions' => 'మరిన్ని సంరక్షణ వికల్పాలను తెరువు',\n'protect-text' => \"ఈ పెజీ '''$1''' ఎంత సంరక్షణలొ వుందో మీరు ఇక్కడ చూడవచ్చు, మార్చవచ్చు.\",\n'protect-locked-blocked' => \"నిరోధించబడి ఉండగా మీరు సంరక్షణ స్థాయిని మార్చలేరు. ప్రస్తుతం '''$1''' పేజీకి ఉన్న సెట్టింగులివి:\",\n'protect-locked-dblock' => \"ప్రస్తుతం అమల్లో ఉన్న డేటాబేసు లాకు కారణంగా సంరక్షణ స్థాయిని సెట్ చెయ్యడం కుదరదు. ప్రస్తుతం '''$1''' పేజీకి ఉన్న సెట్టింగులివి:\",\n'protect-locked-access' => \"మీ ఖాతకు పేజీ రక్షన స్థాయిని మార్చే హక్కులు లేవు.\n'''$1''' అనే పేరున్న ఈ పేజీకి ప్రస్తుతం ఈ రక్షణ ఉంది:\",\n'protect-cascadeon' => 'ఈ పేజీ కాస్కేడింగు రక్షణలో ఉన్న ఈ కింది {{PLURAL:$1|పేజీకి|పేజీలకు}} జతచేయటం వలన, ప్రస్తుతం రక్షణలో ఉంది. మీరు ఈ పేజీ యొక్క రక్షణ స్థాయిన మార్చవచ్చు, దాని వలన కాస్కేడింగు రక్షణకు ఎటువంటి సమస్య ఉండదు.',\n'protect-default' => 'అందరు వాడుకరులను అనుమతించు',\n'protect-fallback' => '\"$1\" అనుమతి ఉన్న వాడుకరులను మాత్రమే అనుమతించు',\n'protect-level-autoconfirmed' => 'కొత్త మరియు నమోదుకాని వాడుకరులను నిరోధించు',\n'protect-level-sysop' => 'నిర్వాహకులను మాత్రమే అనుమతించు',\n'protect-summary-cascade' => 'కాస్కేడింగు',\n'protect-expiring' => '$1 (UTC)న కాలంచెల్లుతుంది',\n'protect-expiring-local' => '$1న కాలంచెల్లుతుంది',\n'protect-expiry-indefinite' => 'నిరవధికం',\n'protect-cascade' => 'ఈ పేజీకి జతపరిచిన పేజీలను కూడా రక్షించు (కాస్కేడింగు రక్షణ)',\n'protect-cantedit' => 'ఈ పేజీ యొక్క సంరక్షణా స్థాయిని మీరు మార్చలేరు, ఎందుకంటే దాన్ని మార్చే అనుమతి మీకు లేదు.',\n'protect-othertime' => 'ఇతర సమయం:',\n'protect-othertime-op' => 'ఇతర సమయం',\n'protect-existing-expiry' => 'ప్రస్తుత కాల పరిమితి: $3, $2',\n'protect-otherreason' => 'ఇతర/అదనపు కారణం:',\n'protect-otherreason-op' => 'ఇతర కారణం',\n'protect-dropdown' => '*సాధారణ సంరక్షణ కారణాలు\n** అత్యధిక వాండలిజం\n** అత్యధిక స్పామింగు\n** నిర్మాణాత్మకంగా లేని మార్పుల యుద్ధం\n** అధిక రద్దీగల పేజీ',\n'protect-edit-reasonlist' => 'సంరక్షణా కారణాలని మార్చండి',\n'protect-expiry-options' => '1 గంట:1 hour,1 రోజు:1 day,1 వారం:1 week,2 వారాలు:2 weeks,1 నెల:1 month,3 నెలలు:3 months,6 నెలలు:6 months,1 సంవత్సరం:1 year,ఎప్పటికీ:infinite',\n'restriction-type' => 'అనుమతి:',\n'restriction-level' => 'నియంత్రణ స్థాయి:',\n'minimum-size' => 'కనీస పరిమాణం',\n'maximum-size' => 'గరిష్ఠ పరిమాణం',\n'pagesize' => '(బైట్లు)',\n\n# Restrictions (nouns)\n'restriction-edit' => 'మార్చు',\n'restriction-move' => 'తరలించు',\n'restriction-create' => 'సృష్టించు',\n'restriction-upload' => 'ఎక్కించు',\n\n# Restriction levels\n'restriction-level-sysop' => 'పూర్తి సంరక్షణ',\n'restriction-level-autoconfirmed' => 'అర్థ సంరక్షణ',\n'restriction-level-all' => 'ఏ స్థాయి అయినా',\n\n# Undelete\n'undelete' => 'తుడిచివేయబడ్డ పేజీలను చూపించు',\n'undeletepage' => 'తుడిచివేయబడిన పేజీలను చూపించు, పునఃస్థాపించు',\n'undeletepagetitle' => \"'''క్రింద చూపిస్తున్నవి [[:$1]] యొక్క తొలగించిన మార్పులు'''.\",\n'viewdeletedpage' => 'తొలగించిన పేజీలను చూడండి',\n'undeletepagetext' => 'క్రింది {{PLURAL:$1|పేజీని|$1 పేజీలను}} తొలగించారు, కానీ పునఃస్థాపనకు వీలుగా భండాగారంలో ఉన్నాయి.\nభండాగారం నిర్ణీత వ్యవధులలో పూర్తిగా ఖాళీ చేయబడుతుంటుంది.',\n'undelete-fieldset-title' => 'కూర్పులను పునఃస్థాపించండి',\n'undeleteextrahelp' => \"పేజీ యొక్క మొత్తం చరిత్రను పునస్థాపించేందుకు, చెక్ బాక్సులన్నిటినీ ఖాళీగా ఉంచి, '''''{{int:undeletebtn}}''''' నొక్కండి.\nకొన్ని కూర్పులను మాత్రమే పుసస్థాపించదలిస్తే, సదరు కూర్పులకు ఎదురుగా ఉన్న చెక్ బాక్సులలో టిక్కు పెట్టి, '''''{{int:undeletebtn}}''''' నొక్కండి.\",\n'undeleterevisions' => '$1 {{PLURAL:$1|కూర్పును|కూర్పులను}} భాండారానికి చేర్చాం',\n'undeletehistory' => 'పేజీని పునఃస్థాపిస్తే, అన్ని సంచికలూ పేజీచరిత్ర దినచర్యలోకి పునఃస్థాపించబడతాయి.\nతుడిచివేయబడిన తరువాత, అదే పేరుతో వేరే పేజీ సృష్టించబడి ఉంటే, పునఃస్థాపించిన సంచికలు ముందరి చరిత్రలోకి వెళ్తాయి.',\n'undeleterevdel' => 'తొలగింపును రద్దు చేస్తున్నప్పుడు, అన్నిటికంటే పైనున్న కూర్పు పాక్షికంగా తొలగింపబడే పక్షంలో తొలగింపు-రద్దు జరగదు. అటువంటి సందర్భాల్లో, తొలగించిన కూర్పులలో కొత్తవాటిని ఎంచుకోకుండా ఉండాలి, లేదా దాపు నుండి తీసెయ్యాలి.',\n'undeletehistorynoadmin' => 'ఈ పుటని తొలగించివున్నారు.\nతొలగింపునకు కారణం, తొలగింపునకు క్రితం ఈ పుటకి మార్పులు చేసిన వాడుకరుల వివరాలతో సహా, ఈ కింద సారాంశంలో చూపబడింది.\nతొలగించిన కూర్పులలోని వాస్తవ పాఠ్యం నిర్వాహకులకు మాత్రమే అందుబాటులో ఉంటుంది.',\n'undelete-revision' => '$1 యొక్క తొలగించబడిన కూర్పు (చివరగా $4 నాడు, $5కి $3 మార్చారు):',\n'undeleterevision-missing' => 'తప్పుడు లేదా తప్పిపోయిన కూర్పు. మీరు నొక్కింది తప్పుడు లింకు కావచ్చు, లేదా భాండాగారం నుండి కూర్పు పునఃస్థాపించబడి లేదా తొలగించబడి ఉండవచ్చు.',\n'undelete-nodiff' => 'గత కూర్పులేమీ లేవు.',\n'undeletebtn' => 'పునఃస్థాపించు',\n'undeletelink' => 'చూడండి/పునస్థాపించండి',\n'undeleteviewlink' => 'చూడండి',\n'undeletereset' => 'మునుపటి వలె',\n'undeleteinvert' => 'ఎంపికని తిరగవెయ్యి',\n'undeletecomment' => 'కారణం:',\n'undeletedrevisions' => '{{PLURAL:$1|ఒక సంచిక|$1 సంచికల}} పునఃస్థాపన జరిగింది',\n'undeletedrevisions-files' => '{{PLURAL:$1|ఒక కూర్పు|$1 కూర్పులు}} మరియు {{PLURAL:$2|ఒక ఫైలు|$2 ఫైళ్ళ}}ను పునస్థాపించాం',\n'undeletedfiles' => '{{PLURAL:$1|ఒక ఫైలును|$1 ఫైళ్లను}} పునఃస్థాపించాం',\n'cannotundelete' => 'తొలగింపు రద్దు విఫలమైంది:\n$1',\n'undeletedpage' => \"'''$1 ను పునస్థాపించాం'''\n\nఇటీవల జరిగిన తొలగింపులు, పునస్థాపనల కొరకు [[Special:Log/delete|తొలగింపు చిట్టా]]ని చూడండి.\",\n'undelete-header' => 'ఇటీవల తొలగించిన పేజీల కొరకు [[Special:Log/delete|తొలగింపు చిట్టా]]ని చూడండి.',\n'undelete-search-title' => 'తొలగించిన పేజీల అన్వేషణ',\n'undelete-search-box' => 'తొలగించిన పేజీలను వెతుకు',\n'undelete-search-prefix' => 'దీనితో మొదలయ్యే పేజీలు చూపించు:',\n'undelete-search-submit' => 'వెతుకు',\n'undelete-no-results' => 'తొలగింపు సంగ్రహాల్లో దీనిని పోలిన పేజీలు లేవు.',\n'undelete-filename-mismatch' => '$1 టైమ్‌స్టాంపు కలిగిన ఫైలుకూర్పు తొలగింపును రద్దు చెయ్యలేకపోయాం: ఫైలుపేరు సరిపోలలేదు',\n'undelete-bad-store-key' => '$1 టైమ్‌స్టాంపు కలిగిన ఫైలు తొలగింపును రద్దు చెయ్యలేకున్నాం: తొలగింపుకు ముందే ఫైలు కనబడటం లేదు.',\n'undelete-cleanup-error' => 'వాడని భాండారం ఫైలు \"$1\" తొలగింపును రద్దు చెయ్యడంలో లోపం దొర్లింది.',\n'undelete-missing-filearchive' => 'ID $1 కలిగిన భాండారం ఫైలు డేటాబేసులో లేకపోవడం చేత దాన్ని పునస్థాపించలేకున్నాం. దాని తొలగింపును ఇప్పటికే రద్దుపరచి ఉండవచ్చు.',\n'undelete-error-short' => 'ఫైలు $1 తొలగింపును రద్దు పరచడంలో లోపం దొర్లింది',\n'undelete-error-long' => 'ఫైలు $1 తొలగింపును రద్దు పరచడంలో లోపాలు దొర్లాయి',\n'undelete-show-file-confirm' => '$2 నాడు $3 సమయాన ఉన్న \"$1\" ఫైలు యొక్క తొలగించిన కూర్పుని మీరు నిజంగానే చూడాలనుకుంటున్నారా?',\n'undelete-show-file-submit' => 'అవును',\n\n# Namespace form on various pages\n'namespace' => 'పేరుబరి:',\n'invert' => 'ఎంపికను తిరగవెయ్యి',\n'namespace_association' => 'సంబంధిత పేరుబరి',\n'blanknamespace' => '(మొదటి)',\n\n# Contributions\n'contributions' => '{{GENDER:$1|వాడుకరి}} రచనలు',\n'contributions-title' => '$1 యొక్క మార్పులు-చేర్పులు',\n'mycontris' => 'మార్పులు చేర్పులు',\n'contribsub2' => '$1 ($2) కొరకు',\n'nocontribs' => 'ఈ విధమైన మార్పులేమీ దొరకలేదు.',\n'uctop' => '(పైది)',\n'month' => 'ఈ నెల నుండి (అంతకు ముందువి):',\n'year' => 'ఈ సంవత్సరం నుండి (అంతకు ముందువి):',\n\n'sp-contributions-newbies' => 'కొత్త ఖాతాల యొక్క రచనలని మాత్రమే చూపించు',\n'sp-contributions-newbies-sub' => 'కొత్తవారి కోసం',\n'sp-contributions-newbies-title' => 'కొత్త ఖాతాల వాడుకరుల మార్పుచేర్పులు',\n'sp-contributions-blocklog' => 'నిరోధాల చిట్టా',\n'sp-contributions-deleted' => 'తొలగించబడిన వాడుకరి రచనలు',\n'sp-contributions-uploads' => 'ఎక్కింపులు',\n'sp-contributions-logs' => 'చిట్టాలు',\n'sp-contributions-talk' => 'చర్చ',\n'sp-contributions-userrights' => 'వాడుకరి హక్కుల నిర్వహణ',\n'sp-contributions-blocked-notice' => 'ఈ వాడుకరిపై ప్రస్తుతం నిరోధం ఉంది.\nనిరోధపు చిట్టాలోని చివరి పద్దుని మీ సమాచారంకోసం ఇస్తున్నాం:',\n'sp-contributions-blocked-notice-anon' => 'ఈ ఐపీ చిరునామాపై ప్రస్తుతం నిరోధం ఉంది.\nనిరోధపు చిట్టాలోని చివరి పద్దుని మీ సమాచారంకోసం ఇస్తున్నాం:',\n'sp-contributions-search' => 'రచనల కోసం అన్వేషణ',\n'sp-contributions-username' => 'ఐపీ చిరునామా లేదా వాడుకరిపేరు:',\n'sp-contributions-toponly' => 'చిట్టచివరి కూర్పులను మాత్రమే చూపించు',\n'sp-contributions-submit' => 'వెతుకు',\n\n# What links here\n'whatlinkshere' => 'ఇక్కడికి లంకెలున్నవి',\n'whatlinkshere-title' => '\"$1\"కి లింకున్న పుటలు',\n'whatlinkshere-page' => 'పేజీ:',\n'linkshere' => \"కిందనున్న పేజీల నుండి '''[[:$1]]'''కు లింకులు ఉన్నాయి:\",\n'nolinkshere' => \"'''[[:$1]]'''కు ఏ పేజీ నుండీ లింకు లేదు.\",\n'nolinkshere-ns' => \"'''[[:$1]]''' పేజీకి లింకయ్యే పేజీలు ఎంచుకున్న నేంస్పేసులో లేవు.\",\n'isredirect' => 'దారిమార్పు పుట',\n'istemplate' => 'పేజీకి జతపరిచారు',\n'isimage' => 'దస్త్రపు లంకె',\n'whatlinkshere-prev' => '{{PLURAL:$1|మునుపటిది|మునుపటి $1}}',\n'whatlinkshere-next' => '{{PLURAL:$1|తరువాతది|తరువాతి $1}}',\n'whatlinkshere-links' => '← లంకెలు',\n'whatlinkshere-hideredirs' => 'దారిమార్పులను $1',\n'whatlinkshere-hidetrans' => '$1 ట్రాన్స్‌క్లూజన్లు',\n'whatlinkshere-hidelinks' => 'లింకులను $1',\n'whatlinkshere-hideimages' => '$1 దస్త్రాల లంకెలు',\n'whatlinkshere-filters' => 'వడపోతలు',\n\n# Block/unblock\n'autoblockid' => 'tanaDDu #$1',\n'block' => 'వాడుకరి నిరోధం',\n'unblock' => 'వాడుకరిపై నిరోధాన్ని తీసెయ్యండి',\n'blockip' => 'వాడుకరి నిరోధం',\n'blockip-title' => 'వాడుకరిని నిరోధించు',\n'blockip-legend' => 'వాడుకరి నిరోధం',\n'blockiptext' => 'ఏదైనా ప్రత్యేక ఐపీ చిరునామానో లేదా వాడుకరిపేరునో రచనలు చెయ్యకుండా నిరోధించాలంటే కింది ఫారాన్ని వాడండి.\nకేవలం దుశ్చర్యల నివారణ కోసం మాత్రమే దీన్ని వాడాలి, అదికూడా [[{{MediaWiki:Policy-url}}|విధానాన్ని]] అనుసరించి మాత్రమే.\nస్పష్టమైన కారణాన్ని కింద రాయండి (ఉదాహరణకు, దుశ్చర్యలకు పాల్పడిన పేజీలను ఉదహరించండి).',\n'ipadressorusername' => 'ఐపీ చిరునామా లేదా వాడుకరిపేరు:',\n'ipbexpiry' => 'అంతమయ్యే గడువు',\n'ipbreason' => 'కారణం:',\n'ipbreasonotherlist' => 'ఇతర కారణం',\n'ipbreason-dropdown' => '*సాధారణ నిరోధ కారణాలు\n** తప్పు సమాచారాన్ని చొప్పించడం\n** పేజీల్లోని సమాచారాన్ని తీసెయ్యడం\n** బయటి సైట్లకు లంకెలతో స్పాము చెయ్యడం\n** పేజీల్లోకి చెత్తను ఎక్కించడం\n** బెదిరింపు ప్రవర్తన/వేధింపులు\n** అనేక ఖాతాలను సృష్టించి దుశ్చర్యకు పాల్పడడం\n** అనుచితమైన వాడుకరి పేరు\n** అదుపు తప్పిన బాటు',\n'ipb-hardblock' => 'లాగినై ఉన్న వాడుకరులు ఈ ఐపీ అడ్రసు నుంచి మార్పుచేర్పులు చెయ్యకుండా నిరోధించండి',\n'ipbcreateaccount' => 'ఖాతా సృష్టింపుని నివారించు',\n'ipbemailban' => 'వాడుకరిని ఈ-మెయిల్ చెయ్యకుండా నివారించు',\n'ipbenableautoblock' => 'ఈ వాడుకరి వాడిన చివరి ఐపీ అడ్రసును, అలాగే ఆ తరువాత వాడే అడ్రసులను కూడా ఆటోమాటిగ్గా నిరోధించు',\n'ipbsubmit' => 'ఈ సభ్యుని నిరోధించు',\n'ipbother' => 'వేరే గడువు',\n'ipboptions' => '2 గంటలు:2 hours,1 రోజు:1 day,3 రోజులు:3 days,1 వారం:1 week,2 వారాలు:2 weeks,1 నెల:1 month,3 నెలలు:3 months,6 నెలలు:6 months,1 సంవత్సరం:1 year,ఎప్పటికీ:infinite',\n'ipbotheroption' => 'వేరే',\n'ipbotherreason' => 'ఇతర/అదనపు కారణం',\n'ipbhidename' => 'మార్పులు మరియు జాబితాల నుండి ఈ వాడుకరిపేరుని దాచు',\n'ipbwatchuser' => 'ఈ సభ్యుని సభ్యుని పేజీ, చర్చాపేజీలను వీక్షణలో ఉంచు',\n'ipb-disableusertalk' => 'నిరోధంలో ఉండగా ఈ వాడుకరి తన స్వంత చర్చ పేజీలో మార్పుచేర్పులు చెయ్యకుండా నిరోధించు',\n'ipb-change-block' => 'ఈ అమరికలతో వాడుకరిని పునర్నిరోధించు',\n'ipb-confirm' => 'నిరోధాన్ని ధృవపరచండి',\n'badipaddress' => 'సరైన ఐ.పి. అడ్రసు కాదు',\n'blockipsuccesssub' => 'నిరోధం విజయవంతం అయింది',\n'blockipsuccesstext' => '[[Special:Contributions/$1|$1]] నిరోధించబడింది.\n
నిరోధాల సమీక్ష కొరకు [[Special:BlockList|ఐ.పి. నిరొధాల జాబితా]] చూడండి.',\n'ipb-blockingself' => 'మిమ్మల్ని మీరే నిరోధించుకోబోతున్నారు! అదే మీ నిశ్చయమా?',\n'ipb-edit-dropdown' => 'నిరోధపు కారణాలను మార్చండి',\n'ipb-unblock-addr' => '$1 పై ఉన్న నిరోధాన్ని తొలగించండి',\n'ipb-unblock' => 'వాడుకరి పేరుపై లేదా ఐపీ చిరునామాపై ఉన్న నిరోధాన్ని తొలగించండి',\n'ipb-blocklist' => 'అమల్లో ఉన్న నిరోధాలను చూపించు',\n'ipb-blocklist-contribs' => '$1 యొక్క మార్పులు-చేర్పులు',\n'unblockip' => 'సభ్యునిపై నిరోధాన్ని తొలగించు',\n'unblockiptext' => 'కింది ఫారం ఉపయోగించి, నిరోధించబడిన ఐ.పీ. చిరునామా లేదా సభ్యునికి తిరిగి రచనలు చేసే అధికారం ఇవ్వవచ్చు.',\n'ipusubmit' => 'ఈ నిరోధాన్ని తొలగించు',\n'unblocked' => '[[User:$1|$1]]పై నిరోధం తొలగించబడింది',\n'unblocked-range' => '$1 పై నిరోధాన్ని తీసేసాం',\n'unblocked-id' => '$1 అనే నిరోధాన్ని తొలగించాం',\n'blocklist' => 'నిరోధిత వాడుకరులు',\n'ipblocklist' => 'నిరోధించబడిన వాడుకరులు',\n'ipblocklist-legend' => 'నిరోధించబడిన వాడుకరిని వెతకండి',\n'blocklist-userblocks' => 'ఖాతా నిరోధాలను దాచు',\n'blocklist-tempblocks' => 'తాత్కాలిక నిరోధాలను దాచు',\n'blocklist-addressblocks' => 'ఏకైక ఐపీ నిరోధాలను దాచు',\n'blocklist-timestamp' => 'కాలముద్ర',\n'blocklist-target' => 'గమ్యం',\n'blocklist-expiry' => 'కాలం చేల్లేది',\n'blocklist-by' => 'నిర్వాహకుని నిరోధం',\n'blocklist-params' => 'నిరోధపు పరామితులు',\n'blocklist-reason' => 'కారణం',\n'ipblocklist-submit' => 'వెతుకు',\n'ipblocklist-localblock' => 'స్థానిక నిరోధం',\n'ipblocklist-otherblocks' => 'ఇతర {{PLURAL:$1|నిరోధం|నిరోధాలు}}',\n'infiniteblock' => 'అనంతం',\n'expiringblock' => '$1 నాడు $2కి కాలం చెల్లుతుంది',\n'anononlyblock' => 'అజ్ఞాతవ్యక్తులు మాత్రమే',\n'noautoblockblock' => 'ఆటోమాటిక్ నిరోధాన్ని అశక్తం చేసాం',\n'createaccountblock' => 'ఖాతా తెరవడాన్ని నిరోధించాము',\n'emailblock' => 'ఈ-మెయిలుని నిరోధించాం',\n'blocklist-nousertalk' => 'తమ చర్చాపేజీని మార్చలేరు',\n'ipblocklist-empty' => 'నిరోధపు జాబితా ఖాళీగా ఉంది.',\n'ipblocklist-no-results' => 'మీరడిగిన ఐపీ అడ్రసు లేదా సభ్యనామాన్ని నిరోధించలేదు.',\n'blocklink' => 'నిరోధించు',\n'unblocklink' => 'నిరోధాన్ని ఎత్తివేయి',\n'change-blocklink' => 'నిరోధాన్ని మార్చండి',\n'contribslink' => 'రచనలు',\n'emaillink' => 'ఈ-మెయిలును పంపించు',\n'autoblocker' => 'మీ ఐ.పీ. అడ్రసును \"[[User:$1|$1]]\" ఇటీవల వాడుట చేత, అది ఆటోమాటిక్‌గా నిరోధించబడినది. $1ను నిరోధించడానికి కారణం: \"\\'\\'\\'$2\\'\\'\\'\"',\n'blocklogpage' => 'నిరోధాల చిట్టా',\n'blocklog-showlog' => 'ఈ వాడుకరిని గతంలో నిరోధించారు.\nమీ సమాచారం కోసం నిరోధపు చిట్టాని క్రింద ఇచ్చాం:',\n'blocklog-showsuppresslog' => 'ఈ వాడుకరిని గతంలో నిరోధించి, దాచి ఉంచారు.\nవివరాల కోసం అణచివేత చిట్టా కింద చూపబడింది:',\n'blocklogentry' => '\"[[$1]]\" పై నిరోధం అమలయింది. నిరోధ కాలం $2 $3',\n'reblock-logentry' => '[[$1]] కై నిరోధపు అమరికలను $2 $3 గడువుతో మార్చారు',\n'blocklogtext' => 'వాడుకరుల నిరోధాలు, పునస్థాపనల చిట్టా ఇది. ఆటోమాటిక్‌గా నిరోధానికి గురైన ఐ.పి. చిరునామాలు ఈ జాబితాలో ఉండవు. ప్రస్తుతం అమల్లో ఉన్న నిరోధాలు, నిషేధాల కొరకు [[Special:BlockList|ఐ.పి. నిరోధాల జాబితా]]ను చూడండి.',\n'unblocklogentry' => '$1పై నిరోధం తొలగించబడింది',\n'block-log-flags-anononly' => 'అజ్ఞాత వాడుకర్లు మాత్రమే',\n'block-log-flags-nocreate' => 'ఖాతా సృష్టించడాన్ని అశక్తం చేసాం',\n'block-log-flags-noautoblock' => 'ఆటోమాటిక్ నిరోధాన్ని అశక్తం చేసాం',\n'block-log-flags-noemail' => 'ఈ-మెయిలుని నిరోధించాం',\n'block-log-flags-nousertalk' => 'తమ చర్చాపేజీని మార్చలేరు',\n'block-log-flags-angry-autoblock' => 'మరింత ధృడమైన స్వయంనిరోధకం సచేతనం చేయబడింది',\n'block-log-flags-hiddenname' => 'వాడుకరిపేరుని దాచారు',\n'range_block_disabled' => 'శ్రేణి(రేంజి) నిరోధం చెయ్యగల నిర్వాహక అనుమతిని అశక్తం చేసాం.',\n'ipb_expiry_invalid' => 'అంతమయ్యే గడువు సరైనది కాదు.',\n'ipb_expiry_temp' => 'దాచిన వాడుకరిపేరు నిరోధాలు శాశ్వతంగా ఉండాలి.',\n'ipb_hide_invalid' => 'ఈ ఖాతాను అణచలేకపోతున్నాం. దాని కింద చాలా దిద్దుబాట్లు ఉండి ఉంటాయి.',\n'ipb_already_blocked' => '\"$1\" ను ఇప్పటికే నిరోధించాం',\n'ipb-needreblock' => '$1ని ఇప్పటికే నిరోధించారు. ఆ అమరికలని మీరు మార్చాలనుకుంటున్నారా?',\n'ipb-otherblocks-header' => 'ఇతర {{PLURAL:$1|నిరోధం|నిరోధాలు}}',\n'unblock-hideuser' => 'ఈ వాడుకరి యొక్క వాడుకరిపేరు దాచబడి ఉంది కాబట్టి, వారిపై నిరోధాన్ని తీసెయ్యలేరు.',\n'ipb_cant_unblock' => 'లోపం: నిరోధించిన ఐడీ $1 దొరకలేదు. దానిపై ఉన్న నిరోధాన్ని ఈసరికే తొలగించి ఉండవచ్చు.',\n'ipb_blocked_as_range' => 'లోపం: ఐపీ $1 ను నేరుగా నిరోధించలేదు, అంచేత నిరోధాన్ని రద్దుపరచలేము. అయితే, అది $2 శ్రేణిలో భాగంగా నిరోధానికి గురైంది, ఈ శ్రేణిపై ఉన్న నిరోధాన్ని రద్దుపరచవచ్చు.',\n'ip_range_invalid' => 'సరైన ఐపీ శ్రేణి కాదు.',\n'ip_range_toolarge' => '/$1 కంటే పెద్దవైన సామూహిక నిరోధాలు అనుమతించబడవు.',\n'proxyblocker' => 'ప్రాక్సీ నిరోధకం',\n'proxyblockreason' => 'మీ ఐపీ అడ్రసు ఒక ఓపెన్ ప్రాక్సీ కాబట్టి దాన్ని నిరోధించాం. మీ ఇంటర్నెట్ సేవాదారుని గానీ, సాంకేతిక సహాయకుని గానీ సంప్రదించి తీవ్రమైన ఈ భద్రతా వైఫల్యాన్ని గురించి తెలపండి.',\n'sorbsreason' => '{{SITENAME}} వాడే DNSBLలో మీ ఐపీ అడ్రసు ఒక ఓపెన్ ప్రాక్సీగా నమోదై ఉంది.',\n'sorbs_create_account_reason' => 'మీ ఐపీ అడ్రసు DNSBL లో ఓపెను ప్రాక్సీగా నమోదయి ఉంది. మీరు ఎకౌంటును సృష్టించజాలరు.',\n'cant-block-while-blocked' => 'నిరోధంలో ఉన్న మీరు ఇతర వాడుకరులపై నిరోధం అమలుచేయలేరు.',\n'cant-see-hidden-user' => 'మీరు నిరోధించదలచిన వాడుకరి ఇప్పటికే నిరోధించబడి, దాచబడి ఉన్నారు. మీకు హక్కు లేదు కాబట్టి, ఆ వాడుకరి నిరోధాన్ని చూడటంగానీ, దాన్ని మార్చడంగానీ చెయ్యలేరు.',\n'ipbblocked' => 'మీరు ఇతర వాడుకరులని నిరోధించలేరు లేదా అనిరోధించలేరు, ఎందుకంటే మిమ్మల్ని మీరే నిరోధించుకున్నారు',\n'ipbnounblockself' => 'మిమ్మల్ని మీరే అనిరోధించుకునే అనుమతి మీకు లేదు',\n\n# Developer tools\n'lockdb' => 'డాటాబేసును లాక్‌ చెయ్యి',\n'unlockdb' => 'డాటాబేసుకి తాళంతియ్యి',\n'lockdbtext' => 'డాటాబేసును లాక్‌ చెయ్యడం వలన సభ్యులు పేజీలు మార్చడం, అభిరుచులు మార్చడం, వీక్షణ జాబితాను మార్చడం వంటి డాటాబేసు ఆధారిత పనులు చెయ్యలేరు. మీరు చెయ్యదలచినది ఇదేనని, మీ పని కాగానే తిరిగి డాటాబేసును ప్రారంభిస్తాననీ ధృవీకరించండి.',\n'unlockdbtext' => 'డేటాబేసుకు తాళం తీసేసిన తరువాత, వాడుకరులందరూ పేజీలను మార్చటం మొదలు పెట్టగలరు,\nతమ అభిరుచులను మార్చుకోగలరు, వీక్షణా జాబితాకు పేజీలను కలుపుకోగలరు తీసివేయనూగలరు,\nఅంతేకాక డేటాబేసులో మార్పులు చేయగలిగే ఇంకొన్ని పనులు కూడా చేయవచ్చు.\nమీరు చేయదలుచుకుంది ఇదేనాకాదా అని ఒకసారి నిర్ధారించండి.',\n'lockconfirm' => 'అవును, డేటాబేసును లాకు చెయ్యాలని నిజంగానే అనుకుంటున్నాను.',\n'unlockconfirm' => 'అవును, నేను నిజంగానే డాటాబేసుకి తాళం తియ్యాలనుకుంటున్నాను.',\n'lockbtn' => 'డాటాబేసును లాక్‌ చెయ్యి',\n'unlockbtn' => 'డాటాబేసు తాళంతియ్యి',\n'locknoconfirm' => 'మీరు ధృవీకరణ పెట్టెలో టిక్కు పెట్టలేదు.',\n'lockdbsuccesssub' => 'డాటాబేసు లాకు విజయవంతం అయ్యింది.',\n'unlockdbsuccesssub' => 'డాటాబేసుకు తాళం తీసేసాం',\n'lockdbsuccesstext' => 'డాటాబేసు లాకయింది.
పని పూర్తి కాగానే లాకు తియ్యడం మర్చిపోకండి.',\n'unlockdbsuccesstext' => 'డాటాబేసుకి తాళం తీసాం.',\n'lockfilenotwritable' => 'డేటాబేసుకు తాళంవేయగల ఫైలులో రాయలేకపోతున్నాను. డేటాబేసుకు తాళంవేయటానికిగానీ లేదా తీసేయటానికిగానీ, వెబ్‌సర్వరులో ఉన్న ఈ ఫైలులో రాయగలగాలి.',\n'databasenotlocked' => 'డేటాబేసు లాకవలేదు.',\n\n# Move page\n'move-page' => '$1 తరలింపు',\n'move-page-legend' => 'పేజీని తరలించు',\n'movepagetext' => \"కింది ఫారం ఉపయోగించి, ఓ పేజీ పేరు మార్చవచ్చు. దాంతో పాటు దాని చరిత్ర అంతా కొత్త పేజీ చరిత్రగా మారుతుంది.\nపాత పేజీ కొత్త దానికి దారిమార్పు పేజీ అవుతుంది.\nపాత పేజీకి ఉన్న దారిమార్పు పేజీలను ఆటోమెటిగ్గా సరిచేయవచ్చు.\nఆలా చేయవద్దనుకుంటే, [[Special:DoubleRedirects|ద్వంద]] లేదా [[Special:BrokenRedirects|పనిచేయని]] దారిమార్పుల పేజీలలో సరిచూసుకోండి.\nలింకులన్నీ అనుకున్నట్లుగా చేరవలసిన చోటికే చేరుతున్నాయని నిర్ధారించుకోవలసిన బాధ్యత మీదే.\n\nఒకవేళ కొత్త పేరుతో ఇప్పటికే ఒక పేజీ ఉండి ఉంటే (అది గత మార్పుల చరిత్ర లేని ఖాళీ పేజీనో లేదా దారిమార్పు పేజీనో కాకపోతే) తరలింపు '''జరగదు'''.\n\nఅంటే మీరు పొరపాటు చేస్తే కొత్త పేరును మార్చి తిరిగి పాత పేరుకు తీసుకురాగలరు కానీ ఇప్పటికే వున్న పేజీని తుడిచివేయలేరు.\n\n'''హెచ్చరిక!'''\nఈ మార్పు బాగా జనరంజకమైన పేజీలకు అనూహ్యం కావచ్చు;\nదాని పరిణామాలను అర్ధం చేసుకుని ముందుకుసాగండి.\",\n'movepagetext-noredirectfixer' => \"కింది ఫారాన్ని వాడి, ఓ పేజీ పేరు మార్చవచ్చు. దాని చరిత్ర పూర్తిగా కొత్త పేరుకు తరలిపోతుంది. \nపాత శీర్షిక కొత్తదానికి దారిమార్పు పేజీగా మారిపోతుంది.\n[[Special:DoubleRedirects|double]] లేదా [[Special:BrokenRedirects|broken redirects]] లను చూడటం మరువకండి.\nలింకులు వెళ్ళాల్సిన చోటికి వెళ్తున్నాయని నిర్ధారించుకోవాల్సిన బాధ్యత మీదే.\nకొత్త పేరుతో ఈసరికే ఏదైనా పేజీ ఉంటే - అది ఖాళీగా ఉన్నా లేక మార్పుచేర్పుల చరిత్ర ఏమీ లేని దారిమార్పు పేజీ అయినా తప్ప- తరలింపు ’’’జరుగదు’’’ అని గమనించండి.\nఅంటే, ఏదైనా పొరపాటు జరిగితే పేరును తిరిగి పాత పేరుకే మార్చగలరు తప్ప, ఈపాటికే ఉన్న పేజీపై ఓవరరైటు చెయ్యలేరు.\n\n'''హెచ్చరిక!'''\nబహుళ వ్యాప్తి పొందిన ఓ పేజీలో ఈ మార్పు చాలా తీవ్రమైనది, ఊహించనిదీ అవుతుంది.\nదాని పర్యవసానాలు అర్థం చేసుకున్నాకే ముందుకు వెళ్ళండి.\",\n'movepagetalktext' => \"దానితో పాటు సంబంధిత చర్చా పేజీ కూడా ఆటోమాటిక్‌‌గా తరలించబడుతుంది, '''కింది సందర్భాలలో తప్ప:'''\n*ఒక నేంస్పేసు నుండి ఇంకోదానికి తరలించేటపుడు,\n*కొత్త పేరుతో ఇప్పటికే ఒక చర్చా పేజీ ఉంటే,\n*కింది చెక్‌బాక్సులో టిక్కు పెట్టకపోతే.\n\nఆ సందర్భాలలో, మీరు చర్చా పేజీని కూడా పనిగట్టుకుని తరలించవలసి ఉంటుంది, లేదా ఏకీకృత పరచవలసి ఉంటుంది.\",\n'movearticle' => 'పేజీని తరలించు',\n'moveuserpage-warning' => \"'''హెచ్చరిక:''' మీరు ఒక వాడుకరి పేజీని తరలించబోతున్నారు. పేజీ మాత్రమే తరలించబడుతుందనీ, వాడుకరి పేరుమార్పు జరగదనీ గమనించండి.\",\n'movenologin' => 'లాగిన్‌ అయిలేరు',\n'movenologintext' => 'పేజీని తరలించడానికి మీరు [[Special:UserLogin|లాగిన్‌]] అయిఉండాలి.',\n'movenotallowed' => 'పేజీలను తరలించడానికి మీకు అనుమతి లేదు.',\n'movenotallowedfile' => 'మీకు ఫైళ్ళను తరలించే అనుమతి లేదు.',\n'cant-move-user-page' => 'వాడుకరి పేజీలను (ఉపపేజీలు కానివాటిని) తరలించే అనుమతి మీకు లేదు .',\n'cant-move-to-user-page' => 'మీకు ఒక పేజీని వాడుకరి పేజీగా (వాడుకరి ఉపపేజీగా తప్ప) తరలించే అనుమతి లేదు.',\n'newtitle' => 'కొత్త పేరుకి',\n'move-watch' => 'ఈ పేజీని గమనించు',\n'movepagebtn' => 'పేజీని తరలించు',\n'pagemovedsub' => 'తరలింపు విజయవంతమైనది',\n'movepage-moved' => '\\'\\'\\'\"$1\"ని \"$2\"కి తరలించాం\\'\\'\\'',\n'movepage-moved-redirect' => 'ఒక దారిమార్పుని సృష్టించాం.',\n'movepage-moved-noredirect' => 'దారిమార్పుని సృష్టించలేదు.',\n'articleexists' => 'ఆ పేరుతో ఇప్పటికే ఒక పేజీ ఉంది, లేదా మీరు ఎంచుకున్న పేరు సరైనది కాదు. వేరే పేరు ఎంచుకోండి.',\n'cantmove-titleprotected' => 'ఈ పేరుతోఉన్న పేజీని సృష్టించనివ్వకుండా సంరక్షిస్తున్నారు, అందుకని ఈ ప్రదేశంలోకి పేజీని తరలించలేను',\n'talkexists' => \"'''పేజీని జయప్రదంగా తరలించాము, కానీ చర్చా పేజీని తరలించలేక పోయాము. కొత్త పేరుతో చర్చ పేజీ ఇప్పటికే ఉంది, ఆ రెంటినీ మీరే ఏకీకృతం చెయ్యండి.'''\",\n'movedto' => 'తరలింపు',\n'movetalk' => 'కూడా వున్న చర్చ పేజీని తరలించు',\n'move-subpages' => 'ఉపపేజీలను ($1 వరకు) తరలించు',\n'move-talk-subpages' => 'చర్చా పేజీ యొక్క ఉపపేజీలను ($1 వరకు) తరలించు',\n'movepage-page-exists' => '$1 అనే పేజీ ఈపాటికే ఉంది మరియు దాన్ని ఆటోమెటిగ్గా ఈ పేజీతో మార్చివేయలేరు.',\n'movepage-page-moved' => '$1 అనే పేజీని $2 కి తరలించాం.',\n'movepage-page-unmoved' => '$1 అనే పేజీని $2 కి తరలించలేకపోయాము.',\n'movepage-max-pages' => '$1 యొక్క గరిష్ఠ పరిమితి {{PLURAL:$1|పేజీ|పేజీలు}} వరకు తరలించడమైనది. ఇక ఆటోమాటిగ్గా తరలించము.',\n'movelogpage' => 'తరలింపుల చిట్టా',\n'movelogpagetext' => 'కింద తరలించిన పేజీల జాబితా ఉన్నది.',\n'movesubpage' => '{{PLURAL:$1|ఉపపేజీ|ఉపపేజీలు}}',\n'movesubpagetext' => 'ఈ పేజీకి క్రింద చూపించిన $1 {{PLURAL:$1|ఉపపేజీ ఉంది|ఉపపేజీలు ఉన్నాయి}}.',\n'movenosubpage' => 'ఈ పేజీకి ఉపపేజీలు ఏమీ లేవు.',\n'movereason' => 'కారణం:',\n'revertmove' => 'తరలింపును రద్దుచేయి',\n'delete_and_move' => 'తొలగించి, తరలించు',\n'delete_and_move_text' => '==తొలగింపు అవసరం==\n\nఉద్దేశించిన వ్యాసం \"[[:$1]]\" ఇప్పటికే ఉనికిలో ఉంది. ప్రస్తుత తరలింపుకు వీలుగా దాన్ని తొలగించేయమంటారా?',\n'delete_and_move_confirm' => 'అవును, పేజీని తొలగించు',\n'delete_and_move_reason' => '\"[[$1]]\"ను తరలించడానికి వీలుగా తొలగించారు',\n'selfmove' => 'మూలం, గమ్యం పేర్లు ఒకటే; పేజీని దాని పైకే తరలించడం కుదరదు.',\n'immobile-source-namespace' => '\"$1\" పేరుబరిలోని పేజీలను తరలించలేరు',\n'immobile-target-namespace' => '\"$1\" పేరుబరిలోనికి పేజీలను తరలించలేరు',\n'immobile-target-namespace-iw' => 'పేజీని తరలించడానికి అంతర్వికీ లింకు సరైన లక్ష్యం కాదు.',\n'immobile-source-page' => 'ఈ పేజీని తరలించలేరు.',\n'immobile-target-page' => 'ఆ లక్ష్యిత శీర్షికకి తరలించలేము.',\n'imagenocrossnamespace' => 'ఫైలును, ఫైలుకు చెందని నేమ్‌స్పేసుకు తరలించలేం',\n'nonfile-cannot-move-to-file' => 'దస్త్రాలు కానివాటిని దస్త్రపు పేరుబరికి తరలించలేరు',\n'imagetypemismatch' => 'ఈ కొత్త ఫైలు ఎక్స్&zwnj;టెన్షన్ ఫైలు రకానికి సరిపోలేదు',\n'imageinvalidfilename' => 'లక్ష్యిత దస్త్రపు పేరు చెల్లనిది',\n'fix-double-redirects' => 'పాత పేజీని సూచిస్తున్న దారిమార్పులను తాజాకరించు',\n'move-leave-redirect' => 'పాత పేజీని దారిమార్పుగా ఉంచు',\n'protectedpagemovewarning' => \"'''హెచ్చరిక:''' ఈ పేజీని సంరక్షించారు కనుక నిర్వాహక హక్కులు కలిగిన వాడుకరులు మాత్రమే దీన్ని తరలించగలరు.\nమీ సమాచారం కోసం చివరి చిట్టా పద్దుని ఇక్కడ ఇస్తున్నాం:\",\n'semiprotectedpagemovewarning' => \"'''గమనిక:''' ఈ పేజీని సంరక్షించారు కనుక నమోదైన వాడుకరులు మాత్రమే దీన్ని తరలించగలరు.\nమీ సమాచారం కోసం చివరి చిట్టా పద్దుని ఇక్కడ ఇస్తున్నాం:\",\n'move-over-sharedrepo' => '== ఫైలు ఉంది ==\n[[:$1]] సామూహిక నిక్షేపంలో ఉంది. ఈ పేరుతో మరొక ఫైలును తరలిస్తే అది ఆ సామూహిక ఫైలును ఓవర్‌రైడు చేస్తుంది.',\n'file-exists-sharedrepo' => 'ఎంచుకున్న ఫైలు పేరు ఇప్పటికే సామాన్య భాండాగారంలో వాడుకలో ఉంది.\nదయచేసి మరొక పేరుని ఎంచుకోండి.',\n\n# Export\n'export' => 'ఎగుమతి పేజీలు',\n'exporttext' => 'ఎంచుకున్న పేజీ లేదా పేజీలలోని వ్యాసం మరియు పేజీ చరితం లను XML లో ఎగుమతి చేసుకోవచ్చు. MediaWiki ని ఉపయోగించి Special:Import page ద్వారా దీన్ని వేరే వికీ లోకి దిగుమతి చేసుకోవచ్చు.\n\nపేజీలను ఎగుమతి చేసందుకు, కింద ఇచ్చిన టెక్స్టు బాక్సులో పేజీ పేర్లను లైనుకో పేరు చొప్పున ఇవ్వండి. ప్రస్తుత కూర్పుతో పాటు పాత కూర్పులు కూడా కావాలా, లేక ప్రస్తుత కూర్పు మాత్రమే చాలా అనే విషయం కూడా ఇవ్వవచ్చు.\n\nరెండో పద్ధతిలో అయితే, పేజీ యొక్క లింకును కూడా వాడవచ్చు. ఉదాహరణకు, \"[[{{MediaWiki:Mainpage}}]]\" కోసమైతే [[{{#Special:Export}}/{{MediaWiki:Mainpage}}]] అని ఇవ్వవచ్చు.',\n'exportcuronly' => 'ప్రస్తుత కూర్పు మాత్రమే, పూర్తి చరితం వద్దు',\n'exportnohistory' => \"----\n'''గమనిక:''' ఈ ఫారాన్ని ఉపయోగించి పేజీలయొక్క పూర్తి చరిత్రను ఎగుమతి చేయడాన్ని సర్వరుపై వత్తిడి పెరిగిన కారణంగా ప్రస్తుతం నిలిపివేశారు.\",\n'export-submit' => 'ఎగుమతించు',\n'export-addcattext' => 'ఈ వర్గంలోని పేజీలను చేర్చు:',\n'export-addcat' => 'చేర్చు',\n'export-addnstext' => 'ఈ పేరుబరి నుండి పేజీలను చేర్చు:',\n'export-addns' => 'చేర్చు',\n'export-download' => 'ఫైలుగా భద్రపరచు',\n'export-templates' => 'మూసలను కలుపు',\n'export-pagelinks' => 'ఈ లోతు వరకు లింకై ఉన్న పేజీలను చేర్చు:',\n\n# Namespace 8 related\n'allmessages' => 'అన్ని సిస్టం సందేశాలు',\n'allmessagesname' => 'పేరు',\n'allmessagesdefault' => 'అప్రమేయ సందేశపు పాఠ్యం',\n'allmessagescurrent' => 'ప్రస్తుత పాఠ్యం',\n'allmessagestext' => 'మీడియావికీ పేరుబరిలో ఉన్న అంతరవర్తి సందేశాల జాబితా ఇది.\nసాధారణ మీడియావికీ స్థానికీకరణకి మీరు తోడ్పడాలనుకుంటే, దయచేసి [//www.mediawiki.org/wiki/Localisation మీడియావికీ స్థానికీకరణ] మరియు [//translatewiki.net ట్రాన్స్&zwnj;లేట్&zwnj;వికీ.నెట్] సైట్లను చూడండి.',\n'allmessagesnotsupportedDB' => \"'''\\$wgUseDatabaseMessages''' అన్నది అచేతనం చేసి ఉన్నందువల్ల ఈ పేజీని వాడలేరు.\",\n'allmessages-filter-legend' => 'వడపోత',\n'allmessages-filter' => 'కస్టమైజేషను స్థితిని బట్టి వడకట్టు:',\n'allmessages-filter-unmodified' => 'మార్చబడనివి',\n'allmessages-filter-all' => 'అన్నీ',\n'allmessages-filter-modified' => 'మార్చబడినవి',\n'allmessages-prefix' => 'ఉపసర్గ పై వడపోత:',\n'allmessages-language' => 'భాష:',\n'allmessages-filter-submit' => 'వెళ్ళు',\n\n# Thumbnails\n'thumbnail-more' => 'పెద్దది చెయ్యి',\n'filemissing' => 'ఫైలు కనపడుటలేదు',\n'thumbnail_error' => '$1: నఖచిత్రం తయారుచెయ్యడంలో లోపం జరిగింది',\n'djvu_page_error' => 'DjVu పేజీ రేంజి దాటిపోయింది',\n'djvu_no_xml' => 'DjVu ఫైలు కోసం XMLను తీసుకుని రాలేకపోయాను',\n'thumbnail_invalid_params' => 'నఖచిత్రాలకు సరయిన పారామీటర్లు లేవు',\n'thumbnail_dest_directory' => 'గమ్యస్థానంలో డైరెక్టరీని సృష్టించలేకపోయాం',\n'thumbnail_image-type' => 'ఈ బొమ్మ రకానికి మద్దతు లేదు',\n'thumbnail_gd-library' => 'అసంపూర్ణ GD సంచయపు ఏర్పాటు: $1 ఫంక్షను లేదు.',\n'thumbnail_image-missing' => 'ఫైలు తప్పిపోయినట్లున్నది: $1',\n\n# Special:Import\n'import' => 'పేజీలను దిగుమతి చేసుకోండి',\n'importinterwiki' => 'ఇంకోవికీ నుండి దిగుమతి',\n'import-interwiki-text' => 'దిగుమతి చేసుకోవడానికి ఒక వికీని మరియు అందులోని పేజీని ఎంచుకోండి.\nకూర్పుల తేదీలు మరియు మార్పులు చేసిన వారి పేర్లు భద్రపరచబడతాయి.\nఇతర వికీలనుండి చేస్తున్న దిగుమతుల చర్యలన్నీ [[Special:Log/import|దిగుమతుల చిట్టా]]లో నమోదవుతాయి.',\n'import-interwiki-source' => 'మూల వికీ/పేజీ:',\n'import-interwiki-history' => 'ఈ పేజీ యొక్క అన్ని చారిత్రక కూర్పులను కాపీ చెయ్యి',\n'import-interwiki-templates' => 'అన్ని మూసలను ఉంచు',\n'import-interwiki-submit' => 'దిగుమతించు',\n'import-interwiki-namespace' => 'లక్ష్యిత నేంస్పేసు:',\n'import-upload-filename' => 'పైలుపేరు:',\n'import-comment' => 'వ్యాఖ్య:',\n'importtext' => '[[Special:Export|ఎగుమతి ఉపకరణాన్ని]] ఉపయోగించి, ఈ ఫైలుని మూల వికీ నుంచి ఎగుమతి చెయ్యండి.\nదాన్ని మీ కంప్యూటర్లో భద్రపరచి, ఆపై ఇక్కడికి ఎక్కించండి.',\n'importstart' => 'పేజీలను దిగుమతి చేస్తున్నాం...',\n'import-revision-count' => '$1 {{PLURAL:$1|కూర్పు|కూర్పులు}}',\n'importnopages' => 'దిగుమతి చెయ్యడానికి పేజీలేమీ లేవు.',\n'imported-log-entries' => '$1 {{PLURAL:$1|చిట్టా పద్దు దిగుమతయ్యింది|చిట్టా పద్దులు దిగుమతయ్యాయి}}.',\n'importfailed' => 'దిగుమతి కాలేదు: $1',\n'importunknownsource' => 'దిగుమతి చేసుకుంటున్న దాని మాతృక రకం తెలియదు',\n'importcantopen' => 'దిగుమతి చేయబోతున్న ఫైలును తెరవలేకపోతున్నాను',\n'importbadinterwiki' => 'చెడు అంతర్వికీ లింకు',\n'importnotext' => 'ఖాళీ లేదా పాఠ్యం లేదు',\n'importsuccess' => 'దిగుమతి పూర్తయ్యింది!',\n'importhistoryconflict' => 'కూర్పుల చరిత్రలో ఘర్షణ తలెత్తింది (ఈ పేజీని ఇంతకు ముందే దిగుమతి చేసుంటారు)',\n'importnosources' => 'No transwiki import sources have been defined and direct history uploads are disabled.\nఎటువంటి అంతర్వికీ దిగుమతి మూలాలను పేర్కొనకపోవటం వలన, ప్రత్యక్ష చరిత్ర అప్లోడులను నిలిపివేశాం.',\n'importnofile' => 'ఎటువంటి దిగుమతి ఫైలునూ అప్లోడుచేయలేదు.',\n'importuploaderrorsize' => 'దిగుమతి ఫైలు అప్లోడు ఫలించలేదు. ఈ ఫైలు అప్లోడు ఫైలుకు నిర్దేశించిన పరిమాణం కంటే పెద్దా ఉంది.',\n'importuploaderrorpartial' => 'దిగుమతి ఫైలు అప్లోడు ఫలించలేదు. ఈ ఫైలులో కొంత భాగాన్ని మాత్రమే అప్లోడు చేయగలిగం.',\n'importuploaderrortemp' => 'దిగుమతి ఫైలు అప్లోడు ఫలించలేదు. ఒక తాత్కాలిక ఫోల్డరు కనిపించటం లేదు.',\n'import-parse-failure' => 'దిగుమతి చేసుకుంటున్న XML విశ్లేషణ ఫలించలేదు',\n'import-noarticle' => 'దిగుమతి చెయ్యాల్సిన పేజీ లేదు!',\n'import-nonewrevisions' => 'అన్ని కూర్పులూ గతంలోనే దిగుమతయ్యాయి.',\n'xml-error-string' => '$1 $2వ లైనులో, వరుస $3 ($4వ బైటు): $5',\n'import-upload' => 'XML డేటాను అప్‌లోడు చెయ్యి',\n'import-token-mismatch' => 'సెషను భోగట్టా పోయింది. దయచేసి మళ్ళీ ప్రయత్నించండి.',\n'import-invalid-interwiki' => 'మీరు చెప్పిన వికీనుండి దిగుమతి చేయలేము.',\n\n# Import log\n'importlogpage' => 'దిగుమతుల చిట్టా',\n'importlogpagetext' => 'ఇతర వికీల నుండీ మార్పుల చరిత్రతోసహా తెచ్చిన నిర్వహణా దిగుమతులు.',\n'import-logentry-upload' => '[[$1]]ను ఫైలు అప్లోడు ద్వారా దిగుమతి చేసాం',\n'import-logentry-upload-detail' => '$1 {{PLURAL:$1|కూర్పు|కూర్పులు}}',\n'import-logentry-interwiki' => 'ఇతర వికీల నుండి $1',\n'import-logentry-interwiki-detail' => '$2 నుండి {{PLURAL:$1|ఒక కూర్పు|$1 కూర్పులు}}',\n\n# JavaScriptTest\n'javascripttest' => 'జావాస్క్రిప్ట్ పరీక్ష',\n'javascripttest-title' => '$1 పరీక్షలు నడుస్తున్నాయి',\n\n# Tooltip help for the actions\n'tooltip-pt-userpage' => 'మీ వాడుకరి పేజీ',\n'tooltip-pt-anonuserpage' => 'మీ ఐపీ చిరునామాకి సంబంధించిన వాడుకరి పేజీ',\n'tooltip-pt-mytalk' => 'మీ చర్చా పేజీ',\n'tooltip-pt-anontalk' => 'ఈ ఐపీ చిరునామా నుండి చేసిన మార్పుల గురించి చర్చ',\n'tooltip-pt-preferences' => 'మీ అభిరుచులు',\n'tooltip-pt-watchlist' => 'మీరు మార్పుల కొరకు గమనిస్తున్న పేజీల జాబితా',\n'tooltip-pt-mycontris' => 'మీ మార్పు-చేర్పుల జాబితా',\n'tooltip-pt-login' => 'మీరు లోనికి ప్రవేశించడాన్ని ప్రోత్సహిస్తున్నాం; కానీ అది తప్పనిసరి కాదు.',\n'tooltip-pt-anonlogin' => 'మీరు లోనికి ప్రవేశించడాన్ని ప్రోత్సహిస్తాం; కానీ, అది తప్పనిసరి కాదు',\n'tooltip-pt-logout' => 'నిష్క్రమించండి',\n'tooltip-ca-talk' => 'విషయపు పుట గురించి చర్చ',\n'tooltip-ca-edit' => 'ఈ పేజీని మీరు సరిదిద్దవచ్చు. దాచేముందు మునుజూపు బొత్తాన్ని వాడండి.',\n'tooltip-ca-addsection' => 'కొత్త విభాగాన్ని మొదలుపెట్టండి',\n'tooltip-ca-viewsource' => 'ఈ పుటని సంరక్షించారు. మీరు దీని మూలాన్ని చూడవచ్చు',\n'tooltip-ca-history' => 'ఈ పుట యొక్క వెనుకటి కూర్పులు',\n'tooltip-ca-protect' => 'ఈ పేజీని సంరక్షించండి',\n'tooltip-ca-unprotect' => 'ఈ పేజీ సంరక్షణను మార్చండి',\n'tooltip-ca-delete' => 'ఈ పేజీని తొలగించండి',\n'tooltip-ca-undelete' => 'ఈ పేజీని తొలగించడానికి ముందు చేసిన మార్పులను పునఃస్థాపించు',\n'tooltip-ca-move' => 'ఈ పేజీని తరలించండి',\n'tooltip-ca-watch' => 'ఈ పేజీని మీ విక్షణా జాబితాకి చేర్చుకోండి',\n'tooltip-ca-unwatch' => 'ఈ పేజీని మీ విక్షణా జాబితా నుండి తొలగించండి',\n'tooltip-search' => '{{SITENAME}} లో వెతకండి',\n'tooltip-search-go' => 'ఇదే పేరుతో పేజీ ఉంటే అక్కడికి తీసుకెళ్ళు',\n'tooltip-search-fulltext' => 'పేజీలలో ఈ పాఠ్యం కొరకు వెతుకు',\n'tooltip-p-logo' => 'మొదటి పుటను దర్శించండి',\n'tooltip-n-mainpage' => 'తలపుటను చూడండి',\n'tooltip-n-mainpage-description' => 'మొదటి పుటను చూడండి',\n'tooltip-n-portal' => 'ప్రాజెక్టు గురించి, మీరేం చేయవచ్చు, సమాచారం ఎక్కడ దొరుకుతుంది',\n'tooltip-n-currentevents' => 'ఇప్పటి ముచ్చట్ల యొక్క మునుపటి మందలను తెలుసుకొనుడి',\n'tooltip-n-recentchanges' => 'వికీలో ఇటీవల జరిగిన మార్పుల జాబితా.',\n'tooltip-n-randompage' => 'ఓ యాదృచ్చిక పేజీని చూడండి',\n'tooltip-n-help' => 'తెలుసుకోడానికి ఓ మంచి ప్రదేశం.',\n'tooltip-t-whatlinkshere' => 'ఇక్కడితో ముడిపడియున్న అన్ని వికీ పుటల లంకెలు',\n'tooltip-t-recentchangeslinked' => 'ఈ పుటకు ముడివడియున్న పుటలలో జరిగిన ఇటీవలి మార్పులు',\n'tooltip-feed-rss' => 'ఈ పేజీకి RSS ఫీడు',\n'tooltip-feed-atom' => 'ఈ పేజీకి Atom ఫీడు',\n'tooltip-t-contributions' => 'ఈ వాడుకరి యొక్క రచనల జాబితా చూడండి',\n'tooltip-t-emailuser' => 'ఈ వాడుకరికి ఓ ఈమెయిలు పంపండి',\n'tooltip-t-upload' => 'దస్త్రాలను ఎక్కించండి',\n'tooltip-t-specialpages' => 'అన్ని ప్రత్యేక పుటల యొక్క జాబితా',\n'tooltip-t-print' => 'ఈ పుట యొక్క అచ్చుతీయదగ్గ కూర్పు',\n'tooltip-t-permalink' => 'పుట యొక్క ఈ కూర్పుకి శాశ్వత లంకె',\n'tooltip-ca-nstab-main' => 'ముచ్చట్ల పుటను చూడండి',\n'tooltip-ca-nstab-user' => 'వాడుకరి పేజీని చూడండి',\n'tooltip-ca-nstab-media' => 'మీడియా పేజీని చూడండి',\n'tooltip-ca-nstab-special' => 'ఇది ఒక ప్రత్యేక పుట, దీన్ని మీరు సరిదిద్దలేరు',\n'tooltip-ca-nstab-project' => 'ప్రాజెక్టు పేజీని చూడండి',\n'tooltip-ca-nstab-image' => 'ఫైలు పేజీని చూడండి',\n'tooltip-ca-nstab-mediawiki' => 'వ్యవస్థా సందేశం చూడండి',\n'tooltip-ca-nstab-template' => 'మూసని చూడండి',\n'tooltip-ca-nstab-help' => 'సహాయపు పేజీ చూడండి',\n'tooltip-ca-nstab-category' => 'వర్గపు పేజీ చూడండి',\n'tooltip-minoredit' => 'దీన్ని చిన్న మార్పుగా గుర్తించు',\n'tooltip-save' => 'మీ మార్పులను భద్రపరచండి',\n'tooltip-preview' => 'మీ మార్పులను మునుజూడండి, భద్రపరిచేముందు ఇది వాడండి!',\n'tooltip-diff' => 'పాఠానికి మీరు చేసిన మార్పులను చూపుంచు. [alt-v]',\n'tooltip-compareselectedversions' => 'ఈ పేజీలో ఎంచుకున్న రెండు కూర్పులకు మధ్య తేడాలను చూడండి. [alt-v]',\n'tooltip-watch' => 'ఈ పేజీని మీ విక్షణా జాబితాకు చేర్చండి',\n'tooltip-watchlistedit-normal-submit' => 'శీర్షికలను తీసివెయ్యి',\n'tooltip-watchlistedit-raw-submit' => 'వీక్షణ జాబితాను తాజాకరించు',\n'tooltip-recreate' => 'పేజీ తుడిచివేయబడ్డాకానీ మళ్ళీ సృష్టించు',\n'tooltip-upload' => 'ఎగుమతి మొదలుపెట్టు',\n'tooltip-rollback' => '\"రద్దుచేయి\" అనేది ఈ పేజీని చివరిగా మార్చినవారి మార్పులని రద్దుచేస్తుంది',\n'tooltip-undo' => '\"దిద్దుబాటుని రద్దుచేయి\" ఈ మార్పుని రద్దుచేస్తుంది మరియు దిద్దుబాటు ఫారాన్ని మునుజూపులో తెరుస్తుంది.\nసారాంశానికి కారణాన్ని చేర్చే వీలుకల్పిస్తుంది',\n'tooltip-preferences-save' => 'అభిరుచులను భద్రపరచు',\n'tooltip-summary' => 'చిన్న సారాంశాన్ని ఇవ్వండి',\n\n# Metadata\n'notacceptable' => 'ఈ వికీ సర్వరు మీ క్లయంటు చదవగలిగే రీతిలో డేటాను ఇవ్వలేదు.',\n\n# Attribution\n'anonymous' => '{{SITENAME}} యొక్క అజ్ఞాత {{PLURAL:$1|వాడుకరి|వాడుకరులు}}',\n'siteuser' => '{{SITENAME}} వాడుకరి $1',\n'anonuser' => '{{SITENAME}} అజ్ఞాత వాడుకరి $1',\n'lastmodifiedatby' => 'ఈ పేజీకి $3 $2, $1న చివరి మార్పు చేసారు.',\n'othercontribs' => '$1 యొక్క కృతిపై ఆధారితం.',\n'others' => 'ఇతరాలు',\n'siteusers' => '{{SITENAME}} {{PLURAL:$2|వాడుకరి|వాడుకరులు}} $1',\n'anonusers' => '{{SITENAME}} అజ్ఞాత {{PLURAL:$2|వాడుకరి|వాడుకరులు}} $1',\n'creditspage' => 'పేజీ క్రెడిట్లు',\n'nocredits' => 'ఈ పేజీకి క్రెడిట్ల సమాచారం అందుబాటులో లేదు.',\n\n# Spam protection\n'spamprotectiontitle' => 'స్పాం సంరక్షణ ఫిల్టరు',\n'spamprotectiontext' => 'మీరు భద్రపరచదలచిన పేజీని మా స్పాం వడపోత నిరోధించింది.\nబహుశా ఏదైనా నిషేధిత బయటి సైటుకు ఇచ్చిన లింకు కారణంగా ఇది జరిగివుండవచ్చు.',\n'spamprotectionmatch' => 'మా స్పాం ఫిల్టరును ప్రేరేపించిన రచన భాగం ఇది: $1',\n'spambot_username' => 'మీడియావికీ స్పాము శుద్ధి',\n'spam_reverting' => '$1 కు లింకులు లేని గత కూర్పుకు తిరిగి తీసుకెళ్తున్నాం',\n'spam_blanking' => '$1 కు లింకులు ఉన్న కూర్పులన్నిటినీ ఖాళీ చేస్తున్నాం',\n\n# Info page\n'pageinfo-title' => '\"$1\" గురించి సమాచారం',\n'pageinfo-header-basic' => 'ప్రాథమిక సమాచారం',\n'pageinfo-header-edits' => 'మార్పుల చరిత్ర',\n'pageinfo-views' => 'వీక్షణల సంఖ్య',\n'pageinfo-watchers' => 'పేజీ వీక్షకుల సంఖ్య',\n'pageinfo-edits' => 'మొత్తం మార్పుల సంఖ్య',\n'pageinfo-toolboxlink' => 'పేజీ సమాచారం',\n'pageinfo-contentpage-yes' => 'అవును',\n'pageinfo-protect-cascading-yes' => 'అవును',\n'pageinfo-category-info' => 'వర్గపు సమాచారం',\n'pageinfo-category-pages' => 'పేజీల సంఖ్య',\n'pageinfo-category-subcats' => 'ఉపవర్గాల సంఖ్య',\n'pageinfo-category-files' => 'దస్త్రాల సంఖ్య',\n\n# Skin names\n'skinname-cologneblue' => 'కలోన్ నీలం',\n'skinname-monobook' => 'మోనోబుక్',\n'skinname-modern' => 'ఆధునిక',\n'skinname-vector' => 'వెక్టర్',\n\n# Patrolling\n'markaspatrolleddiff' => 'పరీక్షించినట్లుగా గుర్తు పెట్టు',\n'markaspatrolledtext' => 'ఈ వ్యాసాన్ని పరీక్షించినట్లుగా గుర్తు పెట్టు',\n'markedaspatrolled' => 'పరీక్షింపబడినట్లు గుర్తింపబడింది',\n'markedaspatrolledtext' => '[[:$1]] యొక్క ఎంచుకున్న కూర్పుని పరీక్షించినట్లుగా గుర్తించాం.',\n'rcpatroldisabled' => 'ఇటీవలి మార్పుల నిఘాను అశక్తం చేసాం',\n'rcpatroldisabledtext' => 'ఇటీవలి మార్పుల నిఘాను ప్రస్తుతానికి అశక్తం చేసాం',\n'markedaspatrollederror' => 'నిఘాలో ఉన్నట్లుగా గుర్తించలేకున్నాం',\n'markedaspatrollederrortext' => 'నిఘాలో ఉన్నట్లు గుర్తించేందుకుగాను, కూర్పును చూపించాలి.',\n'markedaspatrollederror-noautopatrol' => 'మీరు చేసిన మార్పులను మీరే నిఘాలో పెట్టలేరు.',\n\n# Patrol log\n'patrol-log-page' => 'నిఘా చిట్టా',\n'patrol-log-header' => 'ఇది పర్యవేక్షించిన కూర్పుల చిట్టా.',\n'log-show-hide-patrol' => '$1 పర్యవేక్షణ చిట్టా',\n\n# Image deletion\n'deletedrevision' => 'పాత సంచిక $1 తొలగించబడినది.',\n'filedeleteerror-short' => 'ఫైలు తొలగించడంలో పొరపాటు: $1',\n'filedeleteerror-long' => 'ఫైలుని తొలగించడంలో పొరపాట్లు జరిగాయి:\n\n$1',\n'filedelete-missing' => '\"$1\" అన్న ఫైలు ఉనికిలో లేనందున, దాన్ని తొలగించలేం.',\n'filedelete-old-unregistered' => 'మీరు చెప్పిన ఫైలు కూర్పు \"$1\" డాటాబేసులో లేదు.',\n'filedelete-current-unregistered' => 'మీరు చెప్పిన ఫైలు \"$1\" డాటాబేసులో లేదు.',\n'filedelete-archive-read-only' => '\"$1\" భాండార డైరెక్టరీలో వెబ్‌సర్వరు రాయలేకున్నది.',\n\n# Browsing diffs\n'previousdiff' => '← మునుపటి మార్పు',\n'nextdiff' => 'తరువాతి మార్పు →',\n\n# Media information\n'mediawarning' => \"'''హెచ్చరిక''': ఈ రకపు ఫైలులో హానికరమైన కోడ్‌ ఉండవచ్చు.\nదాన్ని నడపడం వల్ల, మీ సిస్టమ్ లొంగిపోవచ్చు.\",\n'imagemaxsize' => \"బొమ్మ పరిమాణంపై పరిమితి:
''(దస్త్రపు వివరణ పుటల కొరకు)''\",\n'thumbsize' => 'నఖచిత్రం వైశాల్యం:',\n'widthheightpage' => '$1 × $2, $3 {{PLURAL:$3|పేజీ|పేజీలు}}',\n'file-info' => 'ఫైలు పరిమాణం: $1, MIME రకం: $2',\n'file-info-size' => '$1 × $2 పిక్సెళ్ళు, ఫైలు పరిమాణం: $3, MIME రకం: $4',\n'file-info-size-pages' => '$1 × $2 పిక్సెళ్ళు, దస్త్రపు పరిమాణం: $3, MIME రకం: $4, $5 {{PLURAL:$5|పేజీ|పేజీలు}}',\n'file-nohires' => 'మరింత స్పష్టమైన బొమ్మ లేదు.',\n'svg-long-desc' => 'SVG ఫైలు, నామమాత్రంగా $1 × $2 పిక్సెళ్ళు, ఫైలు పరిమాణం: $3',\n'show-big-image' => 'అసలు పరిమాణం',\n'show-big-image-preview' => 'ఈ మునుజూపు పరిమాణం: $1.',\n'show-big-image-other' => 'ఇతర {{PLURAL:$2|వైశాల్యం|వైశాల్యాలు}}: $1.',\n'show-big-image-size' => '$1 × $2 పిక్సెళ్ళు',\n'file-info-gif-looped' => 'లూపులో పడింది',\n'file-info-gif-frames' => '$1 {{PLURAL:$1|ఫ్రేము|ఫ్రేములు}}',\n'file-info-png-looped' => 'పునరావృతమవుతుంది',\n'file-info-png-repeat' => '{{PLURAL:$1|ఒకసారి|$1 సార్లు}} ఆడించారు',\n'file-info-png-frames' => '$1 {{PLURAL:$1|ఫ్రేము|ఫ్రేములు}}',\n\n# Special:NewFiles\n'newimages' => 'కొత్త ఫైళ్ళ కొలువు',\n'imagelisttext' => \"ఇది $2 వారీగా పేర్చిన '''$1''' {{PLURAL:$1|పైలు|ఫైళ్ళ}} జాబితా.\",\n'newimages-summary' => 'ఇటీవలే ఎగుమతైన ఫైళ్ళను ఈ ప్రత్యేక పేజీ చూపిస్తుంది.',\n'newimages-legend' => 'పడపోత',\n'newimages-label' => 'ఫైలుపేరు (లేదా దానిలోని భాగం):',\n'showhidebots' => '($1 బాట్లు)',\n'noimages' => 'చూసేందుకు ఏమీ లేదు.',\n'ilsubmit' => 'వెతుకు',\n'bydate' => 'తేదీ వారీగ',\n'sp-newimages-showfrom' => '$2, $1 నుండి మొదలుపెట్టి కొత్త ఫైళ్ళను చూపించు',\n\n# Video information, used by Language::formatTimePeriod() to format lengths in the above messages\n'seconds-abbrev' => '$1క్ష',\n'days-abbrev' => '$1రో',\n'seconds' => '{{PLURAL:$1|$1 క్షణం|$1 క్షణాల}}',\n'minutes' => '{{PLURAL:$1|ఒక నిమిషం|$1 నిమిషాల}}',\n'hours' => '{{PLURAL:$1|ఒక గంట|$1 గంటల}}',\n'days' => '{{PLURAL:$1|ఒక రోజు|$1 రోజుల}}',\n'weeks' => '{{PLURAL:$1|$1 వారం|$1 వారాలు}}',\n'months' => '{{PLURAL:$1|ఒక నెల|$1 నెలల}}',\n'years' => '{{PLURAL:$1|ఒక సంవత్సరం|$1 సంవత్సరాల}}',\n'ago' => '$1 క్రితం',\n'just-now' => 'ఇప్పుడే',\n\n# Human-readable timestamps\n'hours-ago' => '$1 {{PLURAL:$1|గంట|గంటల}} క్రితం',\n'minutes-ago' => '$1 {{PLURAL:$1|నిమిషం|నిమిషాల}} క్రితం',\n'seconds-ago' => '$1 {{PLURAL:$1|క్షణం|క్షణాల}} క్రితం',\n'monday-at' => 'సోమవారం నాడు $1కి',\n'tuesday-at' => 'మంగళవారం నాడు $1కి',\n'wednesday-at' => 'బుధవారం నాడు $1కి',\n'thursday-at' => 'గురువారం నాడు $1కి',\n'friday-at' => 'శుక్రవారం నాడు $1కి',\n'saturday-at' => 'శనివారం నాడు $1కి',\n'sunday-at' => 'ఆదివారం నాడు $1కి',\n'yesterday-at' => 'నిన్న $1కి',\n\n# Bad image list\n'bad_image_list' => 'కింద తెలిపిన తీరులో కలపాలి:\n\nజాబితాలో ఉన్నవాటినే (* గుర్తుతో మొదలయ్యే వాక్యాలు) పరిగణలోకి తీసుకుంటారు. వ్యాక్యంలో ఉన్న మొదటి లింకు ఒక చెడిపోయిన బొమ్మకు లింకు అయ్యుండాలి.\nఅదే వాక్యంలో ఈ లింకు తరువాత వచ్చే లింకులను పట్టించుకోదు, ఆ పేజీలలో బొమ్మలు సరిగ్గా చేర్చారని భావిస్తుంది.',\n\n# Metadata\n'metadata' => 'మెటాడేటా',\n'metadata-help' => 'ఈ ఫైలులో అదనపు సమాచారం ఉంది, బహుశా దీన్ని సృష్టించడానికి లేదా సాంఖ్యీకరించడానికి వాడిన డిజిటల్ కేమెరా లేదా స్కానర్ ఆ సమాచారాన్ని చేర్చివుంవచ్చు. ఈ ఫైలుని అసలు స్థితి నుండి మారిస్తే, కొన్ని వివరాలు ఆ మారిన ఫైలులో పూర్తిగా ప్రతిఫలించకపోవచ్చు.',\n'metadata-expand' => 'విస్తరిత వివరాలను చూపించు',\n'metadata-collapse' => 'విస్తరిత వివరాలను దాచు',\n'metadata-fields' => 'కింది జాబితాలో ఉన్న మెటాడేటా ఫీల్డులు, బొమ్మ పేజీలో మేటాడేటా టేబులు మూసుకొన్నపుడు కనబడతాయి. మిగతావి దాచేసి ఉంటాయి. \n* make\n* model\n* datetimeoriginal\n* exposuretime\n* fnumber\n* isospeedratings\n* focallength\n* artist\n* copyright\n* imagedescription\n* gpslatitude\n* gpslongitude\n* gpsaltitude',\n\n# Exif tags\n'exif-imagewidth' => 'వెడల్పు',\n'exif-imagelength' => 'ఎత్తు',\n'exif-bitspersample' => 'ఒక్కో కాంపొనెంటుకు బిట్లు',\n'exif-compression' => 'కుదింపు పద్ధతి (కంప్రెషను స్కీము)',\n'exif-photometricinterpretation' => 'పిక్సెళ్ళ అమరిక',\n'exif-orientation' => 'దిశ',\n'exif-samplesperpixel' => 'కాంపొనెంట్ల సంఖ్య',\n'exif-planarconfiguration' => 'డాటా అమరిక',\n'exif-ycbcrsubsampling' => 'Y, C ల ఉప నమూనా నిష్పత్తి',\n'exif-ycbcrpositioning' => 'Y మరియు C స్థానాలు',\n'exif-xresolution' => 'క్షితిజసమాంతర స్పష్టత',\n'exif-yresolution' => 'లంబ స్పష్టత',\n'exif-stripoffsets' => 'బొమ్మ డేటా ఉన్న స్థలం',\n'exif-rowsperstrip' => 'ఒక్కో పట్టికి ఉన్న అడ్డువరుసలు',\n'exif-stripbytecounts' => 'ఒక్కో కుదించిన పట్టీలో ఉన్న బైట్లు',\n'exif-jpeginterchangeformat' => 'JPEG SOI కి ఆఫ్‌సెట్',\n'exif-jpeginterchangeformatlength' => 'JPEG డాటా యొక్క బైట్లు',\n'exif-whitepoint' => 'శ్వేతబిందు వర్ణోగ్రత (క్రొమాటిసిటీ)',\n'exif-primarychromaticities' => 'ప్రైమారిటీల వర్ణోగ్రతలు',\n'exif-ycbcrcoefficients' => 'వర్ణస్థల మార్పు మాత్రిక స్థానసూచికలు',\n'exif-referenceblackwhite' => 'నలుపు మరియు తెలుపు సూచీ విలువల యొక్క జత',\n'exif-datetime' => 'ఫైలు మార్చిన తేదీ మరియు సమయం',\n'exif-imagedescription' => 'బొమ్మ శీర్షిక',\n'exif-make' => 'కేమెరా తయారీదారు',\n'exif-model' => 'కేమెరా మోడల్',\n'exif-software' => 'ఉపయోగించిన సాఫ్ట్&zwnj;వేర్',\n'exif-artist' => 'కృతికర్త',\n'exif-copyright' => 'కాపీ హక్కుదారు',\n'exif-exifversion' => 'ఎక్సిఫ్ వెర్షన్',\n'exif-flashpixversion' => 'అనుమతించే Flashpix కూర్పు',\n'exif-colorspace' => 'వర్ణస్థలం',\n'exif-componentsconfiguration' => 'ప్రతీ అంగం యొక్క అర్థం',\n'exif-compressedbitsperpixel' => 'బొమ్మ కుదింపు పద్ధతి',\n'exif-pixelydimension' => 'బొమ్మ వెడల్పు',\n'exif-pixelxdimension' => 'బొమ్మ ఎత్తు',\n'exif-usercomment' => 'వాడుకరి వ్యాఖ్యలు',\n'exif-relatedsoundfile' => 'సంబంధిత శబ్ద ఫైలు',\n'exif-datetimeoriginal' => 'డేటా తయారైన తేదీ, సమయం',\n'exif-datetimedigitized' => 'డిజిటైజు చేసిన తేదీ, సమయం',\n'exif-subsectime' => 'తేదీసమయం ఉపక్షణాలు',\n'exif-subsectimeoriginal' => 'DateTimeOriginal ఉపసెకండ్లు',\n'exif-subsectimedigitized' => 'DateTimeDigitized ఉపసెకండ్లు',\n'exif-exposuretime' => 'ఎక్స్పోజరు సమయం',\n'exif-exposuretime-format' => '$1 క్షణ ($2)',\n'exif-fnumber' => 'F సంఖ్య',\n'exif-exposureprogram' => 'ఎక్స్పోజరు ప్రోగ్రాము',\n'exif-spectralsensitivity' => 'వర్ణపట సున్నితత్వం',\n'exif-isospeedratings' => 'ISO స్పీడు రేటింగు',\n'exif-shutterspeedvalue' => 'APEX షట్టరు వేగం',\n'exif-aperturevalue' => 'APEX ఎపర్చరు',\n'exif-brightnessvalue' => 'APEX దీప్తి',\n'exif-exposurebiasvalue' => 'ఎక్స్పోజరు బయాస్',\n'exif-maxaperturevalue' => 'గరిష్ఠ లాండు ఎపర్చరు',\n'exif-subjectdistance' => 'వస్తువు దూరం',\n'exif-meteringmode' => 'మీటరింగు మోడ్',\n'exif-lightsource' => 'కాంతి మూలం',\n'exif-flash' => 'ఫ్లాష్',\n'exif-focallength' => 'కటకపు నాభ్యంతరం',\n'exif-subjectarea' => 'వస్తువు ప్రదేశం',\n'exif-flashenergy' => 'ఫ్లాష్ శక్తి',\n'exif-focalplanexresolution' => 'X నాభి తలపు స్పష్టత',\n'exif-focalplaneyresolution' => 'Y నాభి తలపు స్పష్టత',\n'exif-focalplaneresolutionunit' => 'నాభితలపు స్పష్టత కొలమానం',\n'exif-subjectlocation' => 'వస్తువు యొక్క ప్రాంతం',\n'exif-exposureindex' => 'ఎక్స్పోజరు సూచిక',\n'exif-sensingmethod' => 'గ్రహించే పద్ధతి',\n'exif-filesource' => 'ఫైలు మూలం',\n'exif-scenetype' => 'దృశ్యపు రకం',\n'exif-customrendered' => 'కస్టమ్ బొమ్మ ప్రాసెసింగు',\n'exif-exposuremode' => 'ఎక్స్పోజరు పద్ధతి',\n'exif-whitebalance' => 'తెలుపు సంతులనం',\n'exif-digitalzoomratio' => 'డిజిటల్ జూమ్ నిష్పత్తి',\n'exif-focallengthin35mmfilm' => '35 మి.మీ. ఫిల్ములో నాభ్యంతరం',\n'exif-scenecapturetype' => 'దృశ్య సంగ్రహ పద్ధతి',\n'exif-gaincontrol' => 'దృశ్య నియంత్రణ',\n'exif-contrast' => 'కాంట్రాస్టు',\n'exif-saturation' => 'సంతృప్తి',\n'exif-sharpness' => 'పదును',\n'exif-devicesettingdescription' => 'డివైసు సెట్టుంగుల వివరణ',\n'exif-subjectdistancerange' => 'వస్తు దూరపు శ్రేణి',\n'exif-imageuniqueid' => 'విలక్షణమైన బొమ్మ ఐడీ',\n'exif-gpsversionid' => 'GPS ట్యాగు కూర్పు',\n'exif-gpslatituderef' => 'ఉత్తర లేదా దక్షిణ అక్షాంశం',\n'exif-gpslatitude' => 'అక్షాంశం',\n'exif-gpslongituderef' => 'తూర్పు లేదా పశ్చిమ రేఖాంశం',\n'exif-gpslongitude' => 'రేఖాంశం',\n'exif-gpsaltituderef' => 'ఎత్తుకు మూలం',\n'exif-gpsaltitude' => 'సముద్ర మట్టం',\n'exif-gpstimestamp' => 'GPS సమయం (అణు గడియారం)',\n'exif-gpssatellites' => 'కొలిచేందుకు వాడిన ఉపగ్రహాలు',\n'exif-gpsstatus' => 'రిసీవర్ స్థితి',\n'exif-gpsmeasuremode' => 'కొలత పద్ధతి',\n'exif-gpsdop' => 'కొలత ఖచ్చితత్వం',\n'exif-gpsspeedref' => 'వేగపు కొలమానం',\n'exif-gpsspeed' => 'GPS రిసీవరు వేగం',\n'exif-gpstrackref' => 'కదలిక దిశ కోసం మూలం',\n'exif-gpstrack' => 'కదలిక యొక్క దిశ',\n'exif-gpsimgdirectionref' => 'బొమ్మ దిశ కోసం మూలం',\n'exif-gpsimgdirection' => 'బొమ్మ యొక్క దిశ',\n'exif-gpsmapdatum' => 'వాడిన జియోడెటిక్ సర్వే డేటా',\n'exif-gpsdestlatituderef' => 'గమ్యస్థాన రేఖాంశం కోసం మూలం',\n'exif-gpsdestlatitude' => 'గమ్యస్థానం యొక్క అక్షాంశం',\n'exif-gpsdestlongituderef' => 'గమ్యస్థాన అక్షాంశం కోసం మూలం',\n'exif-gpsdestlongitude' => 'గమ్యస్థానం యొక్క రేఖాంశం',\n'exif-gpsdestbearingref' => 'గమ్యస్థాన బేరింగు కోసం మూలం',\n'exif-gpsdestbearing' => 'గమ్యస్థానం బేరింగు',\n'exif-gpsdestdistanceref' => 'గమ్యస్థానానీ ఉన్న దూరం కోసం మూలం',\n'exif-gpsdestdistance' => 'గమ్యస్థానానికి దూరం',\n'exif-gpsprocessingmethod' => 'GPS ప్రాసెసింగు పద్ధతి పేరు',\n'exif-gpsareainformation' => 'GPS ప్రదేశం యొక్క పేరు',\n'exif-gpsdatestamp' => 'GPS తేదీ',\n'exif-gpsdifferential' => 'GPS తేడా సవరణ',\n'exif-jpegfilecomment' => 'JPEG బొమ్మ వ్యాఖ్య',\n'exif-keywords' => 'కీలకపదాలు',\n'exif-worldregioncreated' => 'ఫొటో తీసిన ప్రపంచపు ప్రాంతం',\n'exif-countrycreated' => 'ఫొటో తీసిన దేశం',\n'exif-countrycodecreated' => 'ఫొటో తీసిన దేశపు కోడ్',\n'exif-provinceorstatecreated' => 'ఫొటో తీసిన రాష్ట్రం లేదా ప్రాంతీయ విభాగం',\n'exif-citycreated' => 'ఫొటో తీసిన నగరం',\n'exif-sublocationcreated' => 'ఫొటో తీసిన నగరపు విభాగం',\n'exif-worldregiondest' => 'ప్రపంచపు ప్రాంతం చూపబడింది',\n'exif-countrydest' => 'దేశం చూపబడింది',\n'exif-countrycodedest' => 'దేశపు కోడ్ చూపబడింది',\n'exif-provinceorstatedest' => 'రాష్ట్రం లేదా ప్రాంతీయ విభాగం చూపబడింది',\n'exif-citydest' => 'నగరం చూపబడింది',\n'exif-sublocationdest' => 'నగరపు విభాగం చూపబడింది',\n'exif-objectname' => 'పొట్టి శీర్షిక',\n'exif-specialinstructions' => 'ప్రత్యేక సూచనలు',\n'exif-headline' => 'శీర్షిక',\n'exif-credit' => 'క్రెడిట్/సమర్పించినవారు',\n'exif-source' => 'మూలం',\n'exif-editstatus' => 'బొమ్మ యొక్క ఎడిటోరియల్ స్థితి',\n'exif-urgency' => 'ఎంత త్వరగా కావాలి',\n'exif-locationdest' => 'చూపించిన ప్రాంతం',\n'exif-objectcycle' => 'ఈ మాధ్యమం ఉద్దేశించిన సమయం',\n'exif-contact' => 'సంప్రదింపు సమాచారం',\n'exif-writer' => '',\n'exif-languagecode' => 'భాష',\n'exif-iimversion' => 'IIM రూపాంతరం',\n'exif-iimcategory' => 'వర్గం',\n'exif-iimsupplementalcategory' => 'అనుషంగిక వర్గాలు',\n'exif-datetimeexpires' => 'దీని తరువాత వాడవద్దు',\n'exif-datetimereleased' => 'విడుదల తేదీ',\n'exif-identifier' => 'గుర్తింపకం',\n'exif-lens' => 'వాడిన కటకం',\n'exif-serialnumber' => 'కెమేరా యొక్క సీరియల్ నంబర్',\n'exif-cameraownername' => 'కేమెరా యజమాని',\n'exif-rating' => 'రేటింగు (5 కి గాను)',\n'exif-rightscertificate' => 'హక్కుల నిర్వాహణ ధృవీకరణ పత్రం',\n'exif-copyrighted' => 'కాపీహక్కుల స్థితి',\n'exif-copyrightowner' => 'కాపీ హక్కుదారు',\n'exif-usageterms' => 'వాడుక నియమాలు',\n'exif-morepermissionsurl' => 'ప్రత్యామ్నాయ లైసెన్సు సమాచారం',\n'exif-pngfilecomment' => 'PNG ఫైలు వ్యాఖ్య',\n'exif-disclaimer' => 'నిష్పూచీ',\n'exif-contentwarning' => 'విషయపు హెచ్చరిక',\n'exif-giffilecomment' => 'GIF ఫైలు వ్యాఖ్య',\n'exif-intellectualgenre' => 'అంశము యొక్క రకము',\n'exif-subjectnewscode' => 'సబ్జెక్టు కోడ్',\n'exif-event' => 'చూపించిన ఘటన',\n'exif-organisationinimage' => 'చూపించిన సంస్థ',\n'exif-personinimage' => 'చిత్రంలో ఉన్న వ్యక్తి',\n'exif-originalimageheight' => 'కత్తిరించబడక ముందు బొమ్మ యొక్క ఎత్తు',\n'exif-originalimagewidth' => 'కత్తిరించబడక ముందు బొమ్మ యొక్క వెడల్పు',\n\n# Exif attributes\n'exif-compression-1' => 'కుదించని',\n\n'exif-copyrighted-true' => 'నకలుహక్కులుకలది',\n'exif-copyrighted-false' => 'కాపీహక్కుల స్థితి అమర్చలేదు',\n\n'exif-unknowndate' => 'అజ్ఞాత తేదీ',\n\n'exif-orientation-1' => 'సాధారణ',\n'exif-orientation-2' => 'క్షితిజ సమాంతరంగా తిరగేసాం',\n'exif-orientation-3' => '180° తిప్పాం',\n'exif-orientation-4' => 'నిలువుగా తిరగేసాం',\n'exif-orientation-5' => 'అపసవ్య దిశలో 90° తిప్పి, నిలువుగా తిరగేసాం',\n'exif-orientation-6' => 'అపసవ్యదిశలో 90° తిప్పారు',\n'exif-orientation-7' => 'సవ్యదిశలో 90° తిప్పి, నిలువుగా తిరగేసాం',\n'exif-orientation-8' => 'సవ్యదిశలో 90° తిప్పారు',\n\n'exif-planarconfiguration-1' => 'స్థూల ఆకృతి',\n'exif-planarconfiguration-2' => 'సమతల ఆకృతి',\n\n'exif-componentsconfiguration-0' => 'లేదు',\n\n'exif-exposureprogram-0' => 'అనిర్వచితం',\n'exif-exposureprogram-1' => 'చేతితో',\n'exif-exposureprogram-2' => 'మామూలు ప్రోగ్రాము',\n'exif-exposureprogram-3' => 'ఎపర్చరు ప్రాముఖ్యత',\n'exif-exposureprogram-4' => 'షట్టరు ప్రాముఖ్యత',\n'exif-exposureprogram-5' => 'సృజనాత్మక ప్రోగ్రాము (క్షేత్రపు లోతువైపు మొగ్గుతో)',\n'exif-exposureprogram-6' => 'చర్య ప్రోగ్రాము (షట్టర్ వేగం వైపు మొగ్గుతో)',\n'exif-exposureprogram-7' => 'పోర్ట్రైటు పద్ధతి (నేపథ్యం దృశ్యంలోకి రాకుండా క్లోజప్ ఫోటోలు)',\n'exif-exposureprogram-8' => 'విస్తృత పద్ధతి (నేపథ్యం దృశ్యంలోకి వస్తూ ఉండే విస్తృత ఫోటోలు)',\n\n'exif-subjectdistance-value' => '$1 మీటర్లు',\n\n'exif-meteringmode-0' => 'అజ్ఞాతం',\n'exif-meteringmode-1' => 'సగటు',\n'exif-meteringmode-2' => 'CenterWeightedAverage',\n'exif-meteringmode-3' => 'స్థలం',\n'exif-meteringmode-4' => 'బహుళస్థలం',\n'exif-meteringmode-5' => 'సరళి',\n'exif-meteringmode-6' => 'పాక్షికం',\n'exif-meteringmode-255' => 'ఇతర',\n\n'exif-lightsource-0' => 'తెలియదు',\n'exif-lightsource-1' => 'సూర్యకాంతి',\n'exif-lightsource-2' => 'ఫ్లోరోసెంట్',\n'exif-lightsource-3' => 'టంగ్‌స్టన్ (మామూలు బల్బు)',\n'exif-lightsource-4' => 'ఫ్లాష్',\n'exif-lightsource-9' => 'ఆహ్లాద వాతావరణం',\n'exif-lightsource-10' => 'మేఘావృతం',\n'exif-lightsource-11' => 'నీడ',\n'exif-lightsource-12' => 'పగటి వెలుగు ఫ్లోరోసెంట్ (D 5700 – 7100K)',\n'exif-lightsource-13' => 'పగటి తెలుపు ఫ్లోరోసెంట్ (N 4600 – 5400K)',\n'exif-lightsource-14' => 'చల్లని తెలుపు ఫ్లోరోసెంట్ (W 3900 – 4500K)',\n'exif-lightsource-15' => 'తెల్లని ఫ్లోరోసెంట్ (WW 3200 – 3700K)',\n'exif-lightsource-17' => 'ప్రామాణిక కాంతి A',\n'exif-lightsource-18' => 'ప్రామాణిక కాంతి B',\n'exif-lightsource-19' => 'ప్రామాణిక కాంతి C',\n'exif-lightsource-24' => 'ISO స్టూడియోలోని బల్బు వెలుతురు',\n'exif-lightsource-255' => 'ఇతర కాంతి మూలం',\n\n# Flash modes\n'exif-flash-fired-0' => 'ఫ్లాష్ వెలగలేదు',\n'exif-flash-fired-1' => 'ఫ్లాష్ వెలిగింది',\n'exif-flash-return-0' => 'స్ట్రోబ్ రిటర్న్ డిటెక్షన్ ఫంక్షను లేదు',\n'exif-flash-return-2' => 'స్ట్రోబ్ రిటర్న్ లైటును కనుగొనలేదు',\n'exif-flash-return-3' => 'స్ట్రోబ్ రిటర్న్ లైటు కనబడింది',\n'exif-flash-mode-1' => 'తప్పనిసరిగా ఫ్లాష్ వెలుగుతుంది',\n'exif-flash-mode-2' => 'తప్పనిసరిగా ఫ్లాష్ వెలగదు',\n'exif-flash-mode-3' => 'ఆటో మోడ్',\n'exif-flash-function-1' => 'ఫ్లాష్ ఫంక్షను లేదు',\n'exif-flash-redeye-1' => 'ఎర్ర-కన్ను తగ్గింపు పద్ధతి',\n\n'exif-focalplaneresolutionunit-2' => 'అంగుళాలు',\n\n'exif-sensingmethod-1' => 'అనిర్వచితం',\n'exif-sensingmethod-2' => 'ఒక-చిప్పున్న రంగును గుర్తించే సెన్సారు',\n'exif-sensingmethod-3' => 'రెండు-చిప్పులున్న రంగును గుర్తించే సెన్సారు',\n'exif-sensingmethod-4' => 'మూడు-చిప్పులున్న రంగును గుర్తించే సెన్సారు',\n'exif-sensingmethod-5' => 'వర్ణ అనుక్రమ సీమ సెన్సర్',\n'exif-sensingmethod-7' => 'త్రిసరళరేఖా సెన్సర్',\n'exif-sensingmethod-8' => 'వర్ణ అనుక్రమ రేఖా సెన్సర్',\n\n'exif-filesource-3' => 'సాంఖ్యీక సాధారణ కెమెరా',\n\n'exif-scenetype-1' => 'ఎటువంటి హంగులూ లేకుండా ఫొటోతీయబడిన బొమ్మ',\n\n'exif-customrendered-0' => 'సాధారణ ప్రక్రియ',\n'exif-customrendered-1' => 'ప్రత్యేక ప్రక్రియ',\n\n'exif-exposuremode-0' => 'ఆటోమాటిక్ ఎక్స్పోజరు',\n'exif-exposuremode-1' => 'అమర్చిన ఎక్స్పోజరు',\n'exif-exposuremode-2' => 'వెలుతురుబట్టి అంచలవారీగా మారింది',\n\n'exif-whitebalance-0' => 'ఆటోమాటిక్ తెలుపు సంతులనం',\n'exif-whitebalance-1' => 'అమర్చిన తెలుపు సంతులనం',\n\n'exif-scenecapturetype-0' => 'ప్రామాణిక',\n'exif-scenecapturetype-1' => 'ప్రకృతిదృశ్యం',\n'exif-scenecapturetype-2' => 'వ్యక్తి చిత్రణ',\n'exif-scenecapturetype-3' => 'రాత్రి దృశ్యం',\n\n'exif-gaincontrol-0' => 'ఏదీ కాదు',\n'exif-gaincontrol-1' => 'చిన్న గెయిన్ పెంపు',\n'exif-gaincontrol-2' => 'పెద్ద గెయిన్ పెంపు',\n'exif-gaincontrol-3' => 'చిన్న గెయిన్ తగ్గింపు',\n'exif-gaincontrol-4' => 'పెద్ద గెయిన్ తగ్గింపు',\n\n'exif-contrast-0' => 'సాధారణ',\n'exif-contrast-1' => 'మృదువు',\n'exif-contrast-2' => 'కఠినం',\n\n'exif-saturation-0' => 'సాధారణ',\n'exif-saturation-1' => 'రంగులు ముద్దలు ముద్దలుగా తయారవ్వలేదు',\n'exif-saturation-2' => 'రంగులు ముద్దలు ముద్దలుగా తయారయ్యాయి',\n\n'exif-sharpness-0' => 'సాధారణ',\n'exif-sharpness-1' => 'మృదువు',\n'exif-sharpness-2' => 'కఠినం',\n\n'exif-subjectdistancerange-0' => 'అజ్ఞాతం',\n'exif-subjectdistancerange-1' => 'మాక్రో',\n'exif-subjectdistancerange-2' => 'దగ్గరి దృశ్యం',\n'exif-subjectdistancerange-3' => 'దూరపు దృశ్యం',\n\n# Pseudotags used for GPSLatitudeRef and GPSDestLatitudeRef\n'exif-gpslatitude-n' => 'ఉత్తర అక్షాంశం',\n'exif-gpslatitude-s' => 'దక్షిణ అక్షాంశం',\n\n# Pseudotags used for GPSLongitudeRef and GPSDestLongitudeRef\n'exif-gpslongitude-e' => 'తూర్పు రేఖాంశం',\n'exif-gpslongitude-w' => 'పశ్చిమ రేఖాంశం',\n\n# Pseudotags used for GPSAltitudeRef\n'exif-gpsaltitude-above-sealevel' => 'సముద్రమట్టానికి $1 {{PLURAL:$1|మీటరు|మీటర్లు}} ఎగువన',\n'exif-gpsaltitude-below-sealevel' => 'సముద్రమట్టానికి $1 {{PLURAL:$1|మీటరు|మీటర్లు}} దిగువున',\n\n'exif-gpsstatus-a' => 'కొలత జరుగుతూంది',\n'exif-gpsstatus-v' => 'కొలత ఇంటర్‌ఆపరేటబిలిటీ',\n\n'exif-gpsmeasuremode-2' => 'ద్వైమానిక కొలమానం',\n'exif-gpsmeasuremode-3' => 'త్రిదిశాత్మక కొలమానం',\n\n# Pseudotags used for GPSSpeedRef\n'exif-gpsspeed-k' => 'గంటకి కిలోమీటర్లు',\n'exif-gpsspeed-m' => 'గంటకి మైళ్ళు',\n'exif-gpsspeed-n' => 'ముడులు',\n\n# Pseudotags used for GPSDestDistanceRef\n'exif-gpsdestdistance-k' => 'కిలోమీటర్లు',\n'exif-gpsdestdistance-m' => 'మైళ్ళు',\n'exif-gpsdestdistance-n' => 'నాటికల్ మైళ్ళు',\n\n'exif-objectcycle-a' => 'ఉదయం మాత్రమే',\n'exif-objectcycle-p' => 'సాయంత్రం మాత్రమే',\n'exif-objectcycle-b' => 'ఉదయమూ మరియు సాయంత్రమూ',\n\n# Pseudotags used for GPSTrackRef, GPSImgDirectionRef and GPSDestBearingRef\n'exif-gpsdirection-t' => 'వాస్తవ దిశ',\n'exif-gpsdirection-m' => 'అయస్కాంత దిశ',\n\n'exif-dc-contributor' => 'సహాయకులు',\n'exif-dc-date' => 'తేదీ‍‍(లు)',\n'exif-dc-publisher' => 'ప్రచురణకర్త',\n'exif-dc-relation' => 'సంబంధిత మీడియా',\n'exif-dc-rights' => 'హక్కులు',\n'exif-dc-source' => 'మీడియా మూలము',\n'exif-dc-type' => 'మీడియా యొక్క రకము',\n\n'exif-rating-rejected' => 'తిరస్కరించబడింది',\n\n'exif-isospeedratings-overflow' => '65535 కంటే ఎక్కువ',\n\n'exif-iimcategory-ace' => 'కళలు, సంస్కృతి మరియు వినోదం',\n'exif-iimcategory-clj' => 'నేరము మరియు చట్టము',\n'exif-iimcategory-dis' => 'విపత్తులు మరియు ప్రమాదాలు',\n'exif-iimcategory-fin' => 'ఆర్ధికం మరియు వ్యాపారం',\n'exif-iimcategory-edu' => 'విద్య',\n'exif-iimcategory-evn' => 'పర్యావరణం',\n'exif-iimcategory-hth' => 'ఆరోగ్యం',\n'exif-iimcategory-hum' => 'మానవీయ ఆసక్తి',\n'exif-iimcategory-lab' => 'కృషి',\n'exif-iimcategory-lif' => 'జీవనశైలి మరియు కాలక్షేపం',\n'exif-iimcategory-pol' => 'రాజకీయాలు',\n'exif-iimcategory-rel' => 'మతం మరియు విశ్వాసం',\n'exif-iimcategory-sci' => 'వైజ్ఞానికం మరియు సాంకేతికం',\n'exif-iimcategory-soi' => 'సాంఘిక సమస్యలు',\n'exif-iimcategory-spo' => 'క్రీడలు',\n'exif-iimcategory-war' => 'యుద్ధం, సంఘర్షణలు మరియు అనిశ్చితి',\n'exif-iimcategory-wea' => 'వాతావరణం',\n\n'exif-urgency-normal' => 'సాధారణం ($1)',\n'exif-urgency-low' => 'తక్కువ ($1)',\n'exif-urgency-high' => 'ఎక్కువ ($1)',\n'exif-urgency-other' => 'వాడుకరి-నిర్వచిత ప్రాథాన్యత ($1)',\n\n# External editor support\n'edit-externally' => 'బయటి అప్లికేషను వాడి ఈ ఫైలును మార్చు',\n'edit-externally-help' => '(మరింత సమాచారం కొరకు [//www.mediawiki.org/wiki/Manual:External_editors సెటప్‌ సూచనల]ని చూడండి)',\n\n# 'all' in various places, this might be different for inflected languages\n'watchlistall2' => 'అన్నీ',\n'namespacesall' => 'అన్నీ',\n'monthsall' => 'అన్నీ',\n'limitall' => 'అన్నీ',\n\n# Email address confirmation\n'confirmemail' => 'ఈ-మెయిలు చిరునామా ధృవీకరించండి',\n'confirmemail_noemail' => '[[Special:Preferences|మీ అభిరుచులలో]] ఈమెయిలు అడ్రసు పెట్టి లేదు.',\n'confirmemail_text' => '{{SITENAME}}లో ఈ-మెయిలు అంశాల్ని వాడుకునే ముందు మీ ఈ-మెయిలు చిరునామాను నిర్ధారించవలసిన అవసరం ఉంది.\nకింది మీటను నొక్కగానే మీరిచ్చిన చిరునామాకు ధృవీకరణ మెయిలు వెళ్తుంది. ఆ మెయిల్లో ఒక సంకేతం కలిగిన ఒక లింకు ఉంటుంది; ఆ లింకును మీ బ్రౌజరులో తెరవండి. ఈ-మెయిలు చిరునామా ధృవీకరణ అయిపోతుంది.',\n'confirmemail_pending' => 'ఒక నిర్ధారణ కోడుని మీకు ఇప్పటికే ఈ-మెయిల్లో పంపించాం; కొద్దిసేపటి క్రితమే మీ ఖాతా సృష్టించి ఉంటే, కొత్త కొడు కోసం అభ్యర్థన పంపేముందు కొద్ది నిమిషాలు వేచిచూడండి.',\n'confirmemail_send' => 'ఒక ధృవీకరణ సంకేతాన్ని పంపించు',\n'confirmemail_sent' => 'ధృవీకరణ ఈ-మెయిలును పంపబడినది',\n'confirmemail_oncreate' => 'మీ ఈ-మెయిలు చిరునామాకి ఒక ధృవీకరణ సంకేతాన్ని పంపించాం.\nలోనికి ప్రవేశించేందుకు ఆ సంకేతం అవసరంలేదు, కానీ ఈ వికీలో ఈ-మెయిలు ఆధారిత సౌలభ్యాలను చేతనం చేసేముందు దాన్ని ఇవ్వవలసి ఉంటుంది.',\n'confirmemail_sendfailed' => '{{SITENAME}} మీ నిర్ధారణ మెయిలుని పంపలేకపోయింది.\nమీ ఈమెయిల్ చిరునామాలో తప్పులున్నాయేమో సరిచూసుకోండి.\n\nమెయిలరు ఇలా చెప్పింది: $1',\n'confirmemail_invalid' => 'ధృవీకరణ సంకేతం సరైనది కాదు. దానికి కాలం చెల్లి ఉండవచ్చు.',\n'confirmemail_needlogin' => 'మీ ఈమెయిలు చిరునామాని దృవపరచటానికి మీరు $1 ఉండాలి.',\n'confirmemail_success' => 'మీ ఈ-మెయిలు చిరునామా ధృవీకరించబడింది.\nఇక [[Special:UserLogin|లోనికి ప్రవేశించి]] వికీని అస్వాదించండి.',\n'confirmemail_loggedin' => 'మీ ఈ-మెయిలు చిరునామా ఇప్పుడు రూఢి అయింది.',\n'confirmemail_error' => 'మీ ధృవీకరణను భద్రపరచడంలో ఏదో లోపం జరిగింది.',\n'confirmemail_subject' => '{{SITENAME}} ఈ-మెయిలు చిరునామా ధృవీకరణ',\n'confirmemail_body' => '$1 ఐపీ చిరునామా నుండి ఎవరో, బహుశా మీరే,\n{{SITENAME}}లో \"$2\" అనే ఖాతాని ఈ ఈ-మెయిలు చిరునామాతో నమోదుచేసుకున్నారు.\n\nఆ ఖాతా నిజంగా మీదే అని నిర్ధారించేందుకు మరియు {{SITENAME}}లో ఈ-మెయిలు సౌలభ్యాలని\nచేతనం చేసుకునేందుకు, ఈ లంకెని మీ విహారిణిలో తెరవండి:\n\n$3\n\nఒకవేళ ఆ ఖాతా మీది *కాకపోతే*, ఈ-మెయిలు చిరునామా నిర్ధారణని రద్దుచేసేందుకు ఈ లంకెని అనుసరించండి:\n\n$5\n\nఈ నిర్ధారణా సంకేతం $4కి కాలంచెల్లుతుంది.',\n'confirmemail_body_changed' => '$1 ఐపీ చిరునామా నుండి ఎవరో, బహుశా మీరే,\n{{SITENAME}}లో \"$2\" అనే ఖాతా యొక్క ఈ-మెయిలు చిరునామాని ఈ చిరునామాకి మార్చారు.\n\nఆ ఖాతా నిజంగా మీదే అని నిర్ధారించేందుకు మరియు {{SITENAME}}లో\nఈ-మెయిలు సౌలభ్యాలని పునఃచేతనం చేసుకునేందుకు, ఈ లంకెని మీ విహారిణిలో తెరవండి:\n\n$3\n\nఒకవేళ ఆ ఖాతా మీది *కాకపోతే*, ఈ-మెయిలు చిరునామా నిర్ధారణని రద్దుచేసేందుకు\nఈ లంకెని అనుసరించండి:\n\n$5\n\nఈ నిర్ధారణా సంకేతం $4కి కాలంచెల్లుతుంది.',\n'confirmemail_invalidated' => 'ఈ-మెయిలు చిరునామా నిర్ధారణని రద్దుచేసాం',\n'invalidateemail' => 'ఈ-మెయిలు నిర్ధారణని రద్దుచేయండి',\n\n# Scary transclusion\n'scarytranscludedisabled' => '[ఇతరవికీల మూసలను ఇక్కడ వాడటాన్ని అనుమతించటం లేదు]',\n'scarytranscludefailed' => '[$1 కొరకు మూసను తీసుకురావటం విఫలమైంది]',\n'scarytranscludetoolong' => '[URL మరీ పొడుగ్గా ఉంది]',\n\n# Delete conflict\n'deletedwhileediting' => \"'''హెచ్చరిక''': మీరు మార్పులు చేయటం మొదలుపెట్టాక ఈ పేజీ తొలగించబడింది!\",\n'confirmrecreate' => \"మీరు పేజీ రాయటం మొదలుపెట్టిన తరువాత [[User:$1|$1]] ([[User talk:$1|చర్చ]]) దానిని తీసివేసారు. దానికి ఈ కారణం ఇచ్చారు: ''$2''\nమీరు ఈ పేజీని మళ్ళీ తయారు చేయాలనుకుంటున్నారని ధృవీకరించండి.\",\n'confirmrecreate-noreason' => 'మీరు మార్చడం మొదలుపెట్టిన తర్వాత ఈ పుటను వాడుకరి [[User:$1|$1]] ([[User talk:$1|చర్చ]]) తొలగించారు. ఈ పుటను మీరు నిజంగానే పునఃసృష్టించాలనుకుంటున్నారని నిర్ధారించండి.',\n'recreate' => 'మళ్లీ సృష్టించు',\n\n# action=purge\n'confirm_purge_button' => 'సరే',\n'confirm-purge-top' => 'ఈ పేజీ యొక్క పాత కాపీని తొలగించమంటారా?',\n'confirm-purge-bottom' => 'సత్వరనిల్వ(cache)లోపేజీ నిర్మూలించితే, ఇటీవలి కూర్పు కనబడుతుంది.',\n\n# action=watch/unwatch\n'confirm-watch-button' => 'సరే',\n'confirm-watch-top' => 'ఈ పుటను మీ వీక్షణ జాబితాలో చేర్చాలా?',\n'confirm-unwatch-button' => 'సరే',\n'confirm-unwatch-top' => 'ఈ పుటను మీ వీక్షణ జాబితా నుండి తొలగించాలా?',\n\n# Multipage image navigation\n'imgmultipageprev' => '← మునుపటి పేజీ',\n'imgmultipagenext' => 'తరువాతి పేజీ →',\n'imgmultigo' => 'వెళ్ళు!',\n'imgmultigoto' => '$1వ పేజీకి వెళ్ళు',\n\n# Table pager\n'ascending_abbrev' => 'ఆరోహణ',\n'descending_abbrev' => 'అవరోహణ',\n'table_pager_next' => 'తరువాతి పేజీ',\n'table_pager_prev' => 'ముందరి పేజీ',\n'table_pager_first' => 'మొదటి పేజీ',\n'table_pager_last' => 'చివరి పేజీ',\n'table_pager_limit' => 'పేజీకి $1 అంశాలను చూపించు',\n'table_pager_limit_label' => 'పేజీకి ఎన్ని అంశాలు:',\n'table_pager_limit_submit' => 'వెళ్ళు',\n'table_pager_empty' => 'ఫలితాలు లేవు',\n\n# Auto-summaries\n'autosumm-blank' => 'పేజీలోని విషయాన్నంతటినీ తీసేసారు.',\n'autosumm-replace' => \"పేజీని '$1' తో మారుస్తున్నాం\",\n'autoredircomment' => '[[$1]]కు దారిమళ్ళించారు',\n'autosumm-new' => \"'$1' తో కొత్త పేజీని సృష్టించారు\",\n\n# Live preview\n'livepreview-loading' => 'లోడవుతోంది...',\n'livepreview-ready' => 'లోడవుతోంది… సిద్ధం!',\n'livepreview-failed' => 'టైపు చేస్తుండగా ప్రీవ్యూ సృష్టించడం కుదరలేదు! మామూలు ప్రీవ్యూను ప్రయత్నించండి.',\n'livepreview-error' => 'అనుసంధానం కుదరలేదు: $1 \"$2\". మామూలు ప్రీవ్యూ ప్రయత్నించి చూడండి.',\n\n# Friendlier slave lag warnings\n'lag-warn-normal' => '$1 {{PLURAL:$1|క్షణం|క్షణాల}} లోపు జరిగిన మార్పులు ఈ జాబితాలో కనిపించకపోవచ్చు.',\n'lag-warn-high' => 'అధిక వత్తిడి వలన డేటాబేసు సర్వరు వెనుకబడింది, $1 {{PLURAL:$1|క్షణం|క్షణాల}} కంటే కొత్తవైన మార్పులు ఈ జాబితాలో కనిపించకపోవచ్చు.',\n\n# Watchlist editor\n'watchlistedit-numitems' => 'మీ వీక్షణ జాబితాలో చర్చాపేజీలు కాకుండా {{PLURAL:$1|1 శీర్షిక|$1 శీర్షికలు}} ఉన్నాయి.',\n'watchlistedit-noitems' => 'మీ వీక్షణ జాబితాలో శీర్షికలేమీ లేవు.',\n'watchlistedit-normal-title' => 'వీక్షణ జాబితాను మార్చు',\n'watchlistedit-normal-legend' => 'వీక్షణ జాబితా నుండి శీర్షికలను తీసివెయ్యి',\n'watchlistedit-normal-explain' => 'మీ వీక్షణ జాబితాలోని శీర్షికలను ఈ క్రింద చూపించాం.\nఏదైనా శీర్షికను తీసివేసేందుకు, దాని పక్కనున్న పెట్టెను చెక్ చేసి, \"{{int:Watchlistedit-normal-submit}}\"ని నొక్కండి.\nమీరు [[Special:EditWatchlist/raw|ముడి జాబితాను కూడా మార్చవచ్చు]].',\n'watchlistedit-normal-submit' => 'శీర్షికలను తీసివెయ్యి',\n'watchlistedit-normal-done' => 'మీ వీక్షణ జాబితా నుండి {{PLURAL:$1|1 శీర్షికను|$1 శీర్షికలను}} తీసివేసాం:',\n'watchlistedit-raw-title' => 'ముడి వీక్షణ జాబితాను మార్చు',\n'watchlistedit-raw-legend' => 'ముడి వీక్షణ జాబితాను మార్చు',\n'watchlistedit-raw-explain' => 'మీ వీక్షణ జాబితాలోని శీర్షికలను ఈ కింద చూపించాం. ఈ జాబితాలో ఉన్నవాటిని తీసివెయ్యడం గానీ కొత్తవాటిని చేర్చడం గానీ (వరుసకొకటి చొప్పున) చెయ్యవచ్చు.\nపూర్తయ్యాక, \"{{int:Watchlistedit-raw-submit}}\" అన్న బొత్తాన్ని నొక్కండి.\nమీరు [[Special:EditWatchlist|మామూలు పాఠ్యకూర్పరిని కూడా వాడవచ్చు]].',\n'watchlistedit-raw-titles' => 'శీర్షికలు:',\n'watchlistedit-raw-submit' => 'వీక్షణ జాబితాను తాజాకరించు',\n'watchlistedit-raw-done' => 'మీ వీక్షణ జాబితాను తాజాకరించాం.',\n'watchlistedit-raw-added' => '{{PLURAL:$1|1 శీర్షికను|$1 శీర్షికలను}} చేర్చాం:',\n'watchlistedit-raw-removed' => '{{PLURAL:$1|1 శీర్షికను|$1 శీర్షికలను}} తీసివేశాం:',\n\n# Watchlist editing tools\n'watchlisttools-view' => 'సంబంధిత మార్పులను చూడండి',\n'watchlisttools-edit' => 'వీక్షణ జాబితాను చూడండి లేదా మార్చండి',\n'watchlisttools-raw' => 'ముడి వీక్షణ జాబితాలో మార్పులు చెయ్యి',\n\n# Signatures\n'signature' => '[[{{ns:user}}:$1|$2]] ([[{{ns:user_talk}}:$1|చర్చ]])',\n\n# Core parser functions\n'unknown_extension_tag' => '\"$1\" అనే ట్యాగు ఈ పొడిగింతకు తెలియదు',\n'duplicate-defaultsort' => 'హెచ్చరిక: డిఫాల్టు పేర్చు కీ \"$2\", గత డిఫాల్టు పేర్చు కీ \"$1\" ని అతిక్రమిస్తుంది.',\n\n# Special:Version\n'version' => 'సంచిక',\n'version-extensions' => 'స్థాపించిన పొడగింతలు',\n'version-specialpages' => 'ప్రత్యేక పేజీలు',\n'version-parserhooks' => 'పార్సరు కొక్కాలు',\n'version-variables' => 'చరరాశులు',\n'version-antispam' => 'స్పాము నివారణ',\n'version-skins' => 'అలంకారాలు',\n'version-other' => 'ఇతర',\n'version-mediahandlers' => 'మీడియాను ఫైళ్లను నడిపించే పొడిగింపులు',\n'version-hooks' => 'కొక్కాలు',\n'version-parser-extensiontags' => 'పార్సరు పొడిగింపు ట్యాగులు',\n'version-parser-function-hooks' => 'పార్సరుకు కొక్కాలు',\n'version-hook-name' => 'కొక్కెం పేరు',\n'version-hook-subscribedby' => 'ఉపయోగిస్తున్నవి',\n'version-version' => '(సంచిక $1)',\n'version-license' => 'లైసెన్సు',\n'version-poweredby-credits' => \"ఈ వికీ '''[//www.mediawiki.org/ మీడియావికీ]'''చే శక్తిమంతం, కాపీహక్కులు © 2001-$1 $2.\",\n'version-poweredby-others' => 'ఇతరులు',\n'version-license-info' => 'మీడియావికీ అన్నది స్వేచ్ఛా మృదూపకరణం; మీరు దీన్ని పునఃపంపిణీ చేయవచ్చు మరియు/లేదా ఫ్రీ సాఫ్ట్&zwnj;వేర్ ఫౌండేషన్ ప్రచురించిన గ్నూ జనరల్ పబ్లిక్ లైసెస్సు వెర్షను 2 లేదా (మీ ఎంపిక ప్రకారం) అంతకంటే కొత్త వెర్షను యొక్క నియమాలకు లోబడి మార్చుకోవచ్చు.\n\nమీడియావికీ ప్రజోపయోగ ఆకాంక్షతో పంపిణీ చేయబడుతుంది, కానీ ఎటువంటి వారంటీ లేకుండా; కనీసం ఏదైనా ప్రత్యేక ఉద్దేశానికి సరిపడుతుందని గానీ లేదా వస్తుత్వం యొక్క అంతర్నిహిత వారంటీ లేకుండా. మరిన్ని వివరాలకు గ్నూ జనరల్ పబ్లిక్ లైసెన్సుని చూడండి.\n\nఈ ఉపకరణంతో పాటు మీకు [{{SERVER}}{{SCRIPTPATH}}/COPYING గ్నూ జనరల్ పబ్లిక్ లైసెన్సు యొక్క ఒక కాపీ] అందివుండాలి; లేకపోతే, Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA అన్న చిరునామాకి వ్రాయండి లేదా [//www.gnu.org/licenses/old-licenses/gpl-2.0.html జాలం లోనే చదవండి].',\n'version-software' => 'స్థాపిత మృదూపకరణాలు',\n'version-software-product' => 'ప్రోడక్టు',\n'version-software-version' => 'వెర్షను',\n'version-entrypoints' => 'ప్రవేశ బిందు చిరునామాలు',\n'version-entrypoints-header-entrypoint' => 'ప్రవేశ బిందువు',\n'version-entrypoints-header-url' => 'చిరునామా',\n\n# Special:Redirect\n'redirect-submit' => 'వెళ్ళు',\n'redirect-value' => 'విలువ:',\n'redirect-user' => 'వాడుకరి ID',\n'redirect-revision' => 'పేజీ కూర్పు',\n'redirect-file' => 'దస్త్రపు పేరు',\n'redirect-not-exists' => 'విలువ కనబడలేదు',\n\n# Special:FileDuplicateSearch\n'fileduplicatesearch' => 'ఫైళ్ల మారుప్రతుల కోసం వెతుకు',\n'fileduplicatesearch-summary' => 'మారుప్రతుల కోసం ఫైళ్ల హాష్ విలువ ఆధారంగా వెతుకు.',\n'fileduplicatesearch-legend' => 'మారుప్రతి కొరకు వెతుకు',\n'fileduplicatesearch-filename' => 'ఫైలు పేరు:',\n'fileduplicatesearch-submit' => 'వెతుకు',\n'fileduplicatesearch-info' => '$1 × $2 పిక్సెళ్లు
దస్త్రపు పరిమాణం: $3
MIME రకం: $4',\n'fileduplicatesearch-result-1' => '\"$1\" అనే పేరుగల ఫైలుకు సరిసమానమైన మారుప్రతులు లేవు.',\n'fileduplicatesearch-result-n' => '\"$1\" అనే పేరుగల ఫైలుకు {{PLURAL:$2|ఒక మారుప్రతి ఉంది|$2 మారుప్రతులున్నాయి}}.',\n'fileduplicatesearch-noresults' => '\"$1\" అనే పేరుగల దస్త్రమేమీ కనబడలేదు.',\n\n# Special:SpecialPages\n'specialpages' => 'ప్రత్యేక పేజీలు',\n'specialpages-note' => '----\n* మామూలు ప్రత్యేక పుటలు.\n* నియంత్రిత ప్రత్యేక పుటలు.\n* Cached ప్రత్యేక పుటలు (పాతబడి ఉండొచ్చు).',\n'specialpages-group-maintenance' => 'నిర్వహణా నివేదికలు',\n'specialpages-group-other' => 'ఇతర ప్రత్యేక పేజీలు',\n'specialpages-group-login' => 'ప్రవేశించండి / ఖాతాను సృష్టించుకోండి',\n'specialpages-group-changes' => 'ఇటీవలి మార్పులు మరియు దినచర్యలు',\n'specialpages-group-media' => 'మాధ్యమ నివేదికలు మరియు ఎగుమతులు',\n'specialpages-group-users' => 'వాడుకర్లు మరియు హక్కులు',\n'specialpages-group-highuse' => 'అధిక వాడుక పేజీలు',\n'specialpages-group-pages' => 'పేజీల యొక్క జాబితాలు',\n'specialpages-group-pagetools' => 'పేజీ పనిముట్లు',\n'specialpages-group-wiki' => 'డాటా మరియు పనిముట్లు',\n'specialpages-group-redirects' => 'ప్రత్యేక పేజీల దారిమార్పులు',\n'specialpages-group-spam' => 'స్పామ్ పనిముట్లు',\n\n# Special:BlankPage\n'blankpage' => 'ఖాళీ పేజీ',\n'intentionallyblankpage' => 'బెంచిమార్కింగు, మొదలగు వాటికై ఈ పేజీని కావాలనే ఖాళీగా వదిలాము.',\n\n# External image whitelist\n'external_image_whitelist' => ' #ఈ లైనును ఎలా ఉన్నదో అలాగే వదిలెయ్యండి
\n#regular expression తునకలను (// ల మధ్య ఉండే భాగం)కింద పెట్టండి\n#వీటిని బయటి బొమ్మల URLలతో సరిపోల్చుతాము\n#సరిపోలిన బొమ్మలను చూపిస్తాము, మిగిలినవాటి లింకులను మాత్రమే చూపిస్తాము\n##తో మొదలయ్యే లైనులు వ్యాఖ్యానాలుగా భావించబడతాయి\n#ఇది కేస్-సెన్సిటివ్\n\n#అన్ని తునకలను ఈ లైనుకు పైన ఉంచండి.  ఈ లైనును ఎలా ఉన్నదో అలాగే వదిలెయ్యండి
',\n\n# Special:Tags\n'tags' => 'సరైన మార్పు ట్యాగులు',\n'tag-filter' => '[[Special:Tags|ట్యాగుల]] వడపోత:',\n'tag-filter-submit' => 'వడపోయి',\n'tags-title' => 'టాగులు',\n'tags-intro' => 'ఈ పేజీ మృదూపకరణం మార్పులకు ఇచ్చే ట్యాగులను, మరియు వాటి అర్ధాలను చూపిస్తుంది.',\n'tags-tag' => 'ట్యాగు పేరు',\n'tags-display-header' => 'మార్పుల జాబితాలో కనపించు రీతి',\n'tags-description-header' => 'అర్థం యొక్క పూర్తి వివరణ',\n'tags-hitcount-header' => 'ట్యాగులున్న మార్పులు',\n'tags-edit' => 'మార్చు',\n'tags-hitcount' => '$1 {{PLURAL:$1|మార్పు|మార్పులు}}',\n\n# Special:ComparePages\n'comparepages' => 'పుటల పోలిక',\n'compare-selector' => 'పుట కూర్పుల పోలిక',\n'compare-page1' => 'పుట 1',\n'compare-page2' => 'పుట 2',\n'compare-rev1' => 'కూర్పు 1',\n'compare-rev2' => 'కూర్పు 2',\n'compare-submit' => 'పోల్చిచూడు',\n'compare-invalid-title' => 'మీరు ఇచ్చిన శీర్షిక చెల్లనిది.',\n'compare-title-not-exists' => 'మీరు పేర్కొన్న శీర్షిక లేనే లేదు.',\n'compare-revision-not-exists' => 'మీరు పేర్కొన్న కూర్పు లేనే లేదు.',\n\n# Database error messages\n'dberr-header' => 'ఈ వికీ సమస్యాత్మకంగా ఉంది',\n'dberr-problems' => 'క్షమించండి! ఈ సైటు సాంకేతిక సమస్యలని ఎదుర్కొంటుంది.',\n'dberr-again' => 'కొన్ని నిమిషాలాగి మళ్ళీ ప్రయత్నించండి.',\n'dberr-info' => '(డాటాబేసు సర్వరుని సంధానించలేకున్నాం: $1)',\n'dberr-usegoogle' => 'ఈలోపు మీరు గూగుల్ ద్వారా వెతకడానికి ప్రయత్నించండి.',\n'dberr-outofdate' => 'మా విషయం యొక్క వారి సూచీలు అంత తాజావి కావపోవచ్చని గమనించండి.',\n'dberr-cachederror' => 'అభ్యర్థించిన పేజీ యొక్క కోశం లోని కాపీ ఇది, అంత తాజాది కాకపోవచ్చు.',\n\n# HTML forms\n'htmlform-invalid-input' => 'మీరు ఇచ్చినవాటితో కొన్ని సమస్యలున్నాయి',\n'htmlform-select-badoption' => 'మీరిచ్చిన విలువ సరైన వికల్పం కాదు.',\n'htmlform-int-invalid' => 'మీరు ఇచ్చిన విలువ పూర్ణసంఖ్య కాదు.',\n'htmlform-float-invalid' => 'మీరిచ్చిన విలువ ఒక సంఖ్య కాదు.',\n'htmlform-int-toolow' => 'మీరిచ్చిన విలువ $1 యొక్క కనిష్ఠ విలువ కంటే తక్కువగా ఉంది.',\n'htmlform-int-toohigh' => 'మీరిచ్చిన విలువ $1 యొక్క గరిష్ఠ విలువకంటే ఎక్కవగా ఉంది.',\n'htmlform-required' => 'ఈ విలువ తప్పనిసరి',\n'htmlform-submit' => 'దాఖలుచెయ్యి',\n'htmlform-reset' => 'మార్పులను రద్దుచెయ్యి',\n'htmlform-selectorother-other' => 'ఇతర',\n'htmlform-no' => 'కాదు',\n'htmlform-yes' => 'అవును',\n\n# SQLite database support\n'sqlite-has-fts' => '$1 పూర్తి-పాఠ్య అన్వేషణ తోడ్పాటుతో',\n'sqlite-no-fts' => '$1 పూర్తి-పాఠ్య అన్వేషణ తోడ్పాటు లేకుండా',\n\n# New logging system\n'logentry-delete-delete' => '$1 $3 పేజీని {{GENDER:$2|తొలగించారు}}',\n'revdelete-content-hid' => 'కంటెంట్ దాచబడింది',\n'revdelete-summary-hid' => 'మార్పుల సారాంశాన్ని దాచారు',\n'revdelete-uname-hid' => 'వాడుకరి పేరుని దాచారు',\n'revdelete-restricted' => 'నిర్వాహకులకు ఆంక్షలు విధించాను',\n'revdelete-unrestricted' => 'నిర్వాహకులకున్న ఆంక్షలను ఎత్తేశాను',\n'logentry-move-move' => '$1 $3 పేజీని $4కి తరలించారు',\n'logentry-move-move-noredirect' => '$1 $3 పేజీని $4కి దారిమార్పు లేకుండా తరలించారు',\n'logentry-move-move_redir' => '$1 $3 పేజీని $4కి దారిమార్పు ద్వారా తరలించారు',\n'logentry-move-move_redir-noredirect' => '$1 $3 పేజీని $4కి దారిమార్పు లేకుండా తరలించారు',\n'logentry-newusers-newusers' => '$1 వాడుకరి ఖాతాను సృష్టించారు',\n'logentry-newusers-create' => '$1 ఒక వాడుకరి ఖాతాను సృష్టించారు',\n'logentry-newusers-create2' => '$1 వాడుకరి ఖాతా $3ను సృష్టించారు',\n'logentry-newusers-autocreate' => '$1 ఖాతాను ఆటోమెటిగ్గా సృష్టించారు',\n'rightsnone' => '(ఏమీలేవు)',\n\n# Feedback\n'feedback-subject' => 'విషయం:',\n'feedback-message' => 'సందేశం:',\n'feedback-cancel' => 'రద్దుచేయి',\n'feedback-submit' => 'ప్రతిస్పందనను దాఖలుచేయి',\n'feedback-error2' => 'దోషము: సవరణ విఫలమైంది',\n'feedback-thanks' => 'కృతజ్ఞతలు! మీ ప్రతిస్పందనను “[$2 $1]” పేజీలో చేర్చాం.',\n'feedback-close' => 'పూర్తయ్యింది',\n'feedback-bugcheck' => 'అద్భుతం! ఇది ఇప్పటికే [$1 తెలిసిన బగ్గుల]లో లేదని సరిచూసుకోండి.',\n'feedback-bugnew' => 'చూసాను. కొత్త బగ్గును నివేదించు',\n\n# Search suggestions\n'searchsuggest-search' => 'వెతుకు',\n\n# API errors\n'api-error-badaccess-groups' => 'ఈ వికీ లోనికి దస్త్రాలను ఎక్కించే అనుమతి మీకు లేదు.',\n'api-error-duplicate-archive-popup-title' => 'నకిలీ {{PLURAL:$1|దస్త్రాన్ని|దస్త్రాలను}} ఇప్పటికే తొలగించారు.',\n'api-error-duplicate-popup-title' => 'నకిలీ {{PLURAL:$1|దస్త్రం|దస్త్రాలు}}.',\n'api-error-empty-file' => 'మీరు దాఖలుచేసిన ఫైల్ ఖాళీది.',\n'api-error-emptypage' => 'కొత్త మరియు ఖాళీ పేజీలను సృష్టించడానికి అనుమతి లేదు.',\n'api-error-file-too-large' => 'మీరు సమర్పించిన దస్త్రం చాలా పెద్దగా ఉంది.',\n'api-error-filename-tooshort' => 'దస్త్రపు పేరు మరీ చిన్నగా ఉంది.',\n'api-error-filetype-banned' => 'ఈ రకపు దస్త్రాలని నిషేధించారు.',\n'api-error-filetype-banned-type' => '$1 {{PLURAL:$4|అనేది అనుమతించబడిన ఫైలు రకం కాదు|అనేవి అనుమతించబడిన ఫైలు రకాలు కాదు}}. అనుమతించబడిన {{PLURAL:$3|ఫైలు రకం|ఫైలు రకాలు}} $2.',\n'api-error-http' => 'అంతర్గత దోషము: సేవకానికి అనుసంధానమవలేకపోతున్నది.',\n'api-error-illegal-filename' => 'ఆ పైల్ పేరు అనుమతించబడదు.',\n'api-error-invalid-file-key' => 'అంతర్గత దోషము: తాత్కాలిక నిల్వలో ఫైల్ కనపడలేదు.',\n'api-error-mustbeloggedin' => 'దస్త్రాలను ఎక్కించడానికి మీరు ప్రవేశించివుండాలి.',\n'api-error-nomodule' => 'అంతర్గత దోషము: ఎక్కింపు పర్వికము అమర్చబడలేదు.',\n'api-error-ok-but-empty' => 'అంతర్గత దోషము: సేవకము నుండి ఎటువంటి స్పందనా లేదు.',\n'api-error-stashfailed' => 'అంతర్గత పొరపాటు: తాత్కాలిక దస్త్రాన్ని భద్రపరచడంలో సేవకి విఫలమైంది.',\n'api-error-unclassified' => 'ఒక తెలియని దోషము సంభవించినది',\n'api-error-unknown-code' => 'తెలియని పొరపాటు: \"$1\".',\n'api-error-unknown-error' => 'అంతర్గత పొరపాటు: మీ దస్త్రాన్ని ఎక్కించేప్పుడు ఏదో పొరపాటు జరిగింది.',\n'api-error-unknown-warning' => 'తెలియని హెచ్చరిక: $1',\n'api-error-unknownerror' => 'తెలియని పొరపాటు: \"$1\".',\n'api-error-uploaddisabled' => 'ఈ వికీలో ఎక్కింపులని అచేతనం చేసారు.',\n'api-error-verification-error' => 'ఈ ఫైల్ పాడైవుండవచ్చు, లేదా తప్పుడు పొడిగింతను కలిగివుండవచ్చు.',\n\n# Durations\n'duration-seconds' => '$1 {{PLURAL:$1|క్షణం|క్షణాలు}}',\n'duration-minutes' => '$1 {{PLURAL:$1|నిమిషం|నిమిషాలు}}',\n'duration-hours' => '$1 {{PLURAL:$1|గంట|గంటలు}}',\n'duration-days' => '$1 {{PLURAL:$1|రోజు|రోజులు}}',\n'duration-weeks' => '$1 {{PLURAL: $1|వారం|వారాలు}}',\n'duration-years' => '$1 {{PLURAL:$1|సంవత్సరం|సంవత్సరాలు}}',\n'duration-decades' => '$1 {{PLURAL:$1|దశాబ్దం|దశాబ్దాలు}}',\n'duration-centuries' => '$1 {{PLURAL:$1|శతాబ్దం|శతాబ్దాలు}}',\n'duration-millennia' => '$1 {{PLURAL:$1|సహస్రాబ్దం|సహస్రాబ్దాలు}}',\n\n);\n"},"repo_name":{"kind":"string","value":"BRL-CAD/web"},"path":{"kind":"string","value":"wiki/languages/messages/MessagesTe.php"},"language":{"kind":"string","value":"PHP"},"license":{"kind":"string","value":"bsd-2-clause"},"size":{"kind":"number","value":376813,"string":"376,813"}}},{"rowIdx":115086112,"cells":{"code":{"kind":"string","value":"package cz.metacentrum.perun.webgui.json.authzResolver;\n\nimport com.google.gwt.core.client.JavaScriptObject;\nimport com.google.gwt.json.client.JSONNumber;\nimport com.google.gwt.json.client.JSONObject;\nimport cz.metacentrum.perun.webgui.client.PerunWebSession;\nimport cz.metacentrum.perun.webgui.client.UiElements;\nimport cz.metacentrum.perun.webgui.client.resources.PerunEntity;\nimport cz.metacentrum.perun.webgui.json.JsonCallbackEvents;\nimport cz.metacentrum.perun.webgui.json.JsonPostClient;\nimport cz.metacentrum.perun.webgui.model.*;\n\n/**\n * Ajax query which removes admin from VO / Group\n *\n * @author Pavel Zlamal <256627@mail.muni.cz>\n */\npublic class RemoveAdmin {\n\n\t// web session\n\tprivate PerunWebSession session = PerunWebSession.getInstance();\n\t// URL to call\n\tfinal String VO_JSON_URL = \"vosManager/removeAdmin\";\n\tfinal String GROUP_JSON_URL = \"groupsManager/removeAdmin\";\n\tfinal String FACILITY_JSON_URL = \"facilitiesManager/removeAdmin\";\n\tfinal String SECURITY_JSON_URL = \"securityTeamsManager/removeAdmin\";\n\n\t// external events\n\tprivate JsonCallbackEvents events = new JsonCallbackEvents();\n\t// ids\n\tprivate int userId = 0;\n\tprivate int entityId = 0;\n\tprivate PerunEntity entity;\n\n\t/**\n\t * Creates a new request\n\t *\n\t * @param entity VO/GROUP/FACILITY\n\t */\n\tpublic RemoveAdmin(PerunEntity entity) {\n\t\tthis.entity = entity;\n\t}\n\n\t/**\n\t * Creates a new request with custom events passed from tab or page\n\t *\n\t * @param entity VO/GROUP/FACILITY\n\t * @param events custom events\n\t */\n\tpublic RemoveAdmin(PerunEntity entity, final JsonCallbackEvents events) {\n\t\tthis.entity = entity;\n\t\tthis.events = events;\n\t}\n\n\t/**\n\t * Attempts to remove admin from Group, it first tests the values and then submits them.\n\t *\n\t * @param group where we want to remove admin\n\t * @param user User to be removed from admin\n\t */\n\tpublic void removeGroupAdmin(final Group group, final User user) {\n\n\t\tthis.userId = (user != null) ? user.getId() : 0;\n\t\tthis.entityId = (group != null) ? group.getId() : 0;\n\t\tthis.entity = PerunEntity.GROUP;\n\n\t\t// test arguments\n\t\tif(!this.testRemoving()){\n\t\t\treturn;\n\t\t}\n\n\t\t// new events\n\t\tJsonCallbackEvents newEvents = new JsonCallbackEvents(){\n\t\t\tpublic void onError(PerunError error) {\n\t\t\t\tsession.getUiElements().setLogErrorText(\"Removing \"+user.getFullName()+\" from managers failed.\");\n\t\t\t\tevents.onError(error); // custom events\n\t\t\t};\n\n\t\t\tpublic void onFinished(JavaScriptObject jso) {\n\t\t\t\tsession.getUiElements().setLogSuccessText(\"User \" + user.getFullName()+ \" removed from managers of \"+group.getName());\n\t\t\t\tevents.onFinished(jso);\n\t\t\t};\n\n\t\t\tpublic void onLoadingStart() {\n\t\t\t\tevents.onLoadingStart();\n\t\t\t};\n\t\t};\n\n\t\t// sending data\n\t\tJsonPostClient jspc = new JsonPostClient(newEvents);\n\t\tjspc.sendData(GROUP_JSON_URL, prepareJSONObject());\n\n\t}\n\n\t/**\n\t * Attempts to remove admin from VO, it first tests the values and then submits them.\n\t *\n\t * @param vo where we want to remove admin from\n\t * @param user User to be removed from admins\n\t */\n\tpublic void removeVoAdmin(final VirtualOrganization vo, final User user) {\n\n\t\tthis.userId = (user != null) ? user.getId() : 0;\n\t\tthis.entityId = (vo != null) ? vo.getId() : 0;\n\t\tthis.entity = PerunEntity.VIRTUAL_ORGANIZATION;\n\n\t\t// test arguments\n\t\tif(!this.testRemoving()){\n\t\t\treturn;\n\t\t}\n\n\t\t// new events\n\t\tJsonCallbackEvents newEvents = new JsonCallbackEvents(){\n\t\t\tpublic void onError(PerunError error) {\n\t\t\t\tsession.getUiElements().setLogErrorText(\"Removing \"+user.getFullName()+\" from managers failed.\");\n\t\t\t\tevents.onError(error); // custom events\n\t\t\t};\n\n\t\t\tpublic void onFinished(JavaScriptObject jso) {\n\t\t\t\tsession.getUiElements().setLogSuccessText(\"User \" + user.getFullName()+ \" removed from managers of \"+vo.getName());\n\t\t\t\tevents.onFinished(jso);\n\t\t\t};\n\n\t\t\tpublic void onLoadingStart() {\n\t\t\t\tevents.onLoadingStart();\n\t\t\t};\n\t\t};\n\n\t\t// sending data\n\t\tJsonPostClient jspc = new JsonPostClient(newEvents);\n\t\tjspc.sendData(VO_JSON_URL, prepareJSONObject());\n\n\t}\n\n\t/**\n\t * Attempts to remove admin from Facility, it first tests the values and then submits them.\n\t *\n\t * @param facility where we want to remove admin from\n\t * @param user User to be removed from admins\n\t */\n\tpublic void removeFacilityAdmin(final Facility facility, final User user) {\n\n\t\tthis.userId = (user != null) ? user.getId() : 0;\n\t\tthis.entityId = (facility != null) ? facility.getId() : 0;\n\t\tthis.entity = PerunEntity.FACILITY;\n\n\t\t// test arguments\n\t\tif(!this.testRemoving()){\n\t\t\treturn;\n\t\t}\n\n\t\t// new events\n\t\tJsonCallbackEvents newEvents = new JsonCallbackEvents(){\n\t\t\tpublic void onError(PerunError error) {\n\t\t\t\tsession.getUiElements().setLogErrorText(\"Removing \"+user.getFullName()+\" from managers failed.\");\n\t\t\t\tevents.onError(error); // custom events\n\t\t\t};\n\n\t\t\tpublic void onFinished(JavaScriptObject jso) {\n\t\t\t\tsession.getUiElements().setLogSuccessText(\"User \" + user.getFullName()+ \" removed form managers of \"+facility.getName());\n\t\t\t\tevents.onFinished(jso);\n\t\t\t};\n\n\t\t\tpublic void onLoadingStart() {\n\t\t\t\tevents.onLoadingStart();\n\t\t\t};\n\t\t};\n\n\t\t// sending data\n\t\tJsonPostClient jspc = new JsonPostClient(newEvents);\n\t\tjspc.sendData(FACILITY_JSON_URL, prepareJSONObject());\n\n\t}\n\n\t/**\n\t * Attempts to remove admin from SecurityTeam, it first tests the values and then submits them.\n\t *\n\t * @param securityTeam where we want to remove admin from\n\t * @param user User to be removed from admins\n\t */\n\tpublic void removeSecurityTeamAdmin(final SecurityTeam securityTeam, final User user) {\n\n\t\tthis.userId = (user != null) ? user.getId() : 0;\n\t\tthis.entityId = (securityTeam != null) ? securityTeam.getId() : 0;\n\t\tthis.entity = PerunEntity.SECURITY_TEAM;\n\n\t\t// test arguments\n\t\tif(!this.testRemoving()){\n\t\t\treturn;\n\t\t}\n\n\t\t// new events\n\t\tJsonCallbackEvents newEvents = new JsonCallbackEvents(){\n\t\t\tpublic void onError(PerunError error) {\n\t\t\t\tsession.getUiElements().setLogErrorText(\"Removing \"+user.getFullName()+\" from managers failed.\");\n\t\t\t\tevents.onError(error); // custom events\n\t\t\t};\n\n\t\t\tpublic void onFinished(JavaScriptObject jso) {\n\t\t\t\tsession.getUiElements().setLogSuccessText(\"User \" + user.getFullName()+ \" removed form managers of \"+securityTeam.getName());\n\t\t\t\tevents.onFinished(jso);\n\t\t\t};\n\n\t\t\tpublic void onLoadingStart() {\n\t\t\t\tevents.onLoadingStart();\n\t\t\t};\n\t\t};\n\n\t\t// sending data\n\t\tJsonPostClient jspc = new JsonPostClient(newEvents);\n\t\tjspc.sendData(SECURITY_JSON_URL, prepareJSONObject());\n\n\t}\n\n\t/**\n\t * Attempts to remove admin group from Group, it first tests the values and then submits them.\n\t *\n\t * @param groupToAddAdminTo where we want to remove admin group from\n\t * @param group Group to be removed from admins\n\t */\n\tpublic void removeGroupAdminGroup(final Group groupToAddAdminTo,final Group group) {\n\n\t\t// store group id to user id to used unified check method\n\t\tthis.userId = (group != null) ? group.getId() : 0;\n\t\tthis.entityId = (groupToAddAdminTo != null) ? groupToAddAdminTo.getId() : 0;\n\t\tthis.entity = PerunEntity.GROUP;\n\n\t\t// test arguments\n\t\tif(!this.testRemoving()){\n\t\t\treturn;\n\t\t}\n\n\t\t// new events\n\t\tJsonCallbackEvents newEvents = new JsonCallbackEvents(){\n\t\t\tpublic void onError(PerunError error) {\n\t\t\t\tsession.getUiElements().setLogErrorText(\"Removing group \"+group.getShortName()+\" from managers failed.\");\n\t\t\t\tevents.onError(error); // custom events\n\t\t\t};\n\n\t\t\tpublic void onFinished(JavaScriptObject jso) {\n\t\t\t\tsession.getUiElements().setLogSuccessText(\"Group \" + group.getShortName()+ \" removed from managers of \"+groupToAddAdminTo.getName());\n\t\t\t\tevents.onFinished(jso);\n\t\t\t};\n\n\t\t\tpublic void onLoadingStart() {\n\t\t\t\tevents.onLoadingStart();\n\t\t\t};\n\t\t};\n\n\t\t// sending data\n\t\tJsonPostClient jspc = new JsonPostClient(newEvents);\n\t\tjspc.sendData(GROUP_JSON_URL, prepareJSONObjectForGroup());\n\n\t}\n\n\t/**\n\t * Attempts to remove admin group from VO, it first tests the values and then submits them.\n\t *\n\t * @param vo where we want to remove admin from\n\t * @param group Group to be removed from admins\n\t */\n\tpublic void removeVoAdminGroup(final VirtualOrganization vo,final Group group) {\n\n\t\t// store group id to user id to used unified check method\n\t\tthis.userId = (group != null) ? group.getId() : 0;\n\t\tthis.entityId = (vo != null) ? vo.getId() : 0;\n\t\tthis.entity = PerunEntity.VIRTUAL_ORGANIZATION;\n\n\t\t// test arguments\n\t\tif(!this.testRemoving()){\n\t\t\treturn;\n\t\t}\n\n\t\t// new events\n\t\tJsonCallbackEvents newEvents = new JsonCallbackEvents(){\n\t\t\tpublic void onError(PerunError error) {\n\t\t\t\tsession.getUiElements().setLogErrorText(\"Removing group \"+group.getShortName()+\" from managers failed.\");\n\t\t\t\tevents.onError(error); // custom events\n\t\t\t};\n\n\t\t\tpublic void onFinished(JavaScriptObject jso) {\n\t\t\t\tsession.getUiElements().setLogSuccessText(\"Group \" + group.getShortName()+ \" removed from managers of \"+vo.getName());\n\t\t\t\tevents.onFinished(jso);\n\t\t\t};\n\n\t\t\tpublic void onLoadingStart() {\n\t\t\t\tevents.onLoadingStart();\n\t\t\t};\n\t\t};\n\n\t\t// sending data\n\t\tJsonPostClient jspc = new JsonPostClient(newEvents);\n\t\tjspc.sendData(VO_JSON_URL, prepareJSONObjectForGroup());\n\n\t}\n\n\t/**\n\t * Attempts to remove admin group from Facility, it first tests the values and then submits them.\n\t *\n\t * @param facility where we want to remove admin from\n\t * @param group Group to be removed from admins\n\t */\n\tpublic void removeFacilityAdminGroup(final Facility facility,final Group group) {\n\n\t\t// store group id to user id to used unified check method\n\t\tthis.userId = (group != null) ? group.getId() : 0;\n\t\tthis.entityId = (facility != null) ? facility.getId() : 0;\n\t\tthis.entity = PerunEntity.FACILITY;\n\n\t\t// test arguments\n\t\tif(!this.testRemoving()){\n\t\t\treturn;\n\t\t}\n\n\t\t// new events\n\t\tJsonCallbackEvents newEvents = new JsonCallbackEvents(){\n\t\t\tpublic void onError(PerunError error) {\n\t\t\t\tsession.getUiElements().setLogErrorText(\"Removing group \"+group.getShortName()+\" from managers failed.\");\n\t\t\t\tevents.onError(error); // custom events\n\t\t\t};\n\n\t\t\tpublic void onFinished(JavaScriptObject jso) {\n\t\t\t\tsession.getUiElements().setLogSuccessText(\"Group \" + group.getShortName()+ \" removed from managers of \"+facility.getName());\n\t\t\t\tevents.onFinished(jso);\n\t\t\t};\n\n\t\t\tpublic void onLoadingStart() {\n\t\t\t\tevents.onLoadingStart();\n\t\t\t};\n\t\t};\n\n\t\t// sending data\n\t\tJsonPostClient jspc = new JsonPostClient(newEvents);\n\t\tjspc.sendData(FACILITY_JSON_URL, prepareJSONObjectForGroup());\n\n\t}\n\n\t/**\n\t * Attempts to remove admin group from SecurityTeam, it first tests the values and then submits them.\n\t *\n\t * @param securityTeam where we want to remove admin from\n\t * @param group Group to be removed from admins\n\t */\n\tpublic void removeSecurityTeamAdminGroup(final SecurityTeam securityTeam, final Group group) {\n\n\t\t// store group id to user id to used unified check method\n\t\tthis.userId = (group != null) ? group.getId() : 0;\n\t\tthis.entityId = (securityTeam != null) ? securityTeam.getId() : 0;\n\t\tthis.entity = PerunEntity.SECURITY_TEAM;\n\n\t\t// test arguments\n\t\tif(!this.testRemoving()){\n\t\t\treturn;\n\t\t}\n\n\t\t// new events\n\t\tJsonCallbackEvents newEvents = new JsonCallbackEvents(){\n\t\t\tpublic void onError(PerunError error) {\n\t\t\t\tsession.getUiElements().setLogErrorText(\"Removing group \"+group.getShortName()+\" from managers failed.\");\n\t\t\t\tevents.onError(error); // custom events\n\t\t\t};\n\n\t\t\tpublic void onFinished(JavaScriptObject jso) {\n\t\t\t\tsession.getUiElements().setLogSuccessText(\"Group \" + group.getShortName()+ \" removed from managers of \"+securityTeam.getName());\n\t\t\t\tevents.onFinished(jso);\n\t\t\t};\n\n\t\t\tpublic void onLoadingStart() {\n\t\t\t\tevents.onLoadingStart();\n\t\t\t};\n\t\t};\n\n\t\t// sending data\n\t\tJsonPostClient jspc = new JsonPostClient(newEvents);\n\t\tjspc.sendData(SECURITY_JSON_URL, prepareJSONObjectForGroup());\n\n\t}\n\n\t/**\n\t * Tests the values, if the process can continue\n\t *\n\t * @return true/false for continue/stop\n\t */\n\tprivate boolean testRemoving() {\n\t\tboolean result = true;\n\t\tString errorMsg = \"\";\n\n\t\tif(entityId == 0){\n\t\t\terrorMsg += \"Wrong parameter Entity ID.
\";\n\t\t\tresult = false;\n\t\t}\n\n\t\tif(userId == 0){\n\t\t\terrorMsg += \"Wrong parameter User ID.\";\n\t\t\tresult = false;\n\t\t}\n\n\t\tif(errorMsg.length()>0){\n\t\t\tUiElements.generateAlert(\"Parameter error\", errorMsg);\n\t\t}\n\n\t\treturn result;\n\t}\n\n\t/**\n\t * Prepares a JSON object\n\t *\n\t * @return JSONObject the whole query\n\t */\n\tprivate JSONObject prepareJSONObject() {\n\t\t// whole JSON query\n\t\tJSONObject jsonQuery = new JSONObject();\n\t\tif (entity.equals(PerunEntity.VIRTUAL_ORGANIZATION)) {\n\t\t\tjsonQuery.put(\"vo\", new JSONNumber(entityId));\n\t\t} else if (entity.equals(PerunEntity.GROUP)) {\n\t\t\tjsonQuery.put(\"group\", new JSONNumber(entityId));\n\t\t} else if (entity.equals(PerunEntity.FACILITY)) {\n\t\t\tjsonQuery.put(\"facility\", new JSONNumber(entityId));\n\t\t} else if (entity.equals(PerunEntity.SECURITY_TEAM)) {\n\t\t\tjsonQuery.put(\"securityTeam\", new JSONNumber(entityId));\n\t\t}\n\t\tjsonQuery.put(\"user\", new JSONNumber(userId));\n\t\treturn jsonQuery;\n\t}\n\n\t/**\n\t * Prepares a JSON object\n\t *\n\t * @return JSONObject the whole query\n\t */\n\tprivate JSONObject prepareJSONObjectForGroup() {\n\t\t// whole JSON query\n\t\tJSONObject jsonQuery = new JSONObject();\n\t\tif (entity.equals(PerunEntity.VIRTUAL_ORGANIZATION)) {\n\t\t\tjsonQuery.put(\"vo\", new JSONNumber(entityId));\n\t\t} else if (entity.equals(PerunEntity.GROUP)) {\n\t\t\tjsonQuery.put(\"group\", new JSONNumber(entityId));\n\t\t} else if (entity.equals(PerunEntity.FACILITY)) {\n\t\t\tjsonQuery.put(\"facility\", new JSONNumber(entityId));\n\t\t} else if (entity.equals(PerunEntity.SECURITY_TEAM)) {\n\t\t\tjsonQuery.put(\"securityTeam\", new JSONNumber(entityId));\n\t\t}\n\t\tjsonQuery.put(\"authorizedGroup\", new JSONNumber(userId));\n\t\treturn jsonQuery;\n\t}\n\n}\n"},"repo_name":{"kind":"string","value":"zlamalp/perun"},"path":{"kind":"string","value":"perun-web-gui/src/main/java/cz/metacentrum/perun/webgui/json/authzResolver/RemoveAdmin.java"},"language":{"kind":"string","value":"Java"},"license":{"kind":"string","value":"bsd-2-clause"},"size":{"kind":"number","value":13511,"string":"13,511"}}},{"rowIdx":115086113,"cells":{"code":{"kind":"string","value":"//\n// KSCrashSentry_NSException.h\n//\n// Created by Karl Stenerud on 2012-01-28.\n//\n// Copyright (c) 2012 Karl Stenerud. All rights reserved.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall remain in place\n// in this source code.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n//\n\n\n/* Catches Objective-C exceptions.\n */\n\n\n#ifndef HDR_KSCrashSentry_NSException_h\n#define HDR_KSCrashSentry_NSException_h\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n\n#include \"KSCrashSentry.h\"\n\n\n/** Install our custom NSException handler.\n *\n * @param context The crash context to fill out when a crash occurs.\n *\n * @return true if installation was succesful.\n */\nbool kscrashsentry_installNSExceptionHandler(KSCrash_SentryContext* context);\n\n/** Uninstall our custome NSException handler.\n */\nvoid kscrashsentry_uninstallNSExceptionHandler(void);\n\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif // HDR_KSCrashSentry_NSException_h\n"},"repo_name":{"kind":"string","value":"trigger-corp/trigger.io-segmentio"},"path":{"kind":"string","value":"inspector/ios-inspector/ForgeModule/Analytics.framework/Headers/KSCrashSentry_NSException.h"},"language":{"kind":"string","value":"C"},"license":{"kind":"string","value":"bsd-2-clause"},"size":{"kind":"number","value":1813,"string":"1,813"}}},{"rowIdx":115086114,"cells":{"code":{"kind":"string","value":"/*\n * kmp_debug.cpp -- debug utilities for the Guide library\n */\n\n//===----------------------------------------------------------------------===//\n//\n// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.\n// See https://llvm.org/LICENSE.txt for license information.\n// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception\n//\n//===----------------------------------------------------------------------===//\n\n#include \"kmp.h\"\n#include \"kmp_debug.h\" /* really necessary? */\n#include \"kmp_i18n.h\"\n#include \"kmp_io.h\"\n\n#ifdef KMP_DEBUG\nvoid __kmp_debug_printf_stdout(char const *format, ...) {\n va_list ap;\n va_start(ap, format);\n\n __kmp_vprintf(kmp_out, format, ap);\n\n va_end(ap);\n}\n#endif\n\nvoid __kmp_debug_printf(char const *format, ...) {\n va_list ap;\n va_start(ap, format);\n\n __kmp_vprintf(kmp_err, format, ap);\n\n va_end(ap);\n}\n\n#ifdef KMP_USE_ASSERT\nint __kmp_debug_assert(char const *msg, char const *file, int line) {\n\n if (file == NULL) {\n file = KMP_I18N_STR(UnknownFile);\n } else {\n // Remove directories from path, leave only file name. File name is enough,\n // there is no need in bothering developers and customers with full paths.\n char const *slash = strrchr(file, '/');\n if (slash != NULL) {\n file = slash + 1;\n }\n }\n\n#ifdef KMP_DEBUG\n __kmp_acquire_bootstrap_lock(&__kmp_stdio_lock);\n __kmp_debug_printf(\"Assertion failure at %s(%d): %s.\\n\", file, line, msg);\n __kmp_release_bootstrap_lock(&__kmp_stdio_lock);\n#ifdef USE_ASSERT_BREAK\n#if KMP_OS_WINDOWS\n DebugBreak();\n#endif\n#endif // USE_ASSERT_BREAK\n#ifdef USE_ASSERT_STALL\n /* __kmp_infinite_loop(); */\n for (;;)\n ;\n#endif // USE_ASSERT_STALL\n#ifdef USE_ASSERT_SEG\n {\n int volatile *ZERO = (int *)0;\n ++(*ZERO);\n }\n#endif // USE_ASSERT_SEG\n#endif\n\n __kmp_fatal(KMP_MSG(AssertionFailure, file, line), KMP_HNT(SubmitBugReport),\n __kmp_msg_null);\n\n return 0;\n\n} // __kmp_debug_assert\n\n#endif // KMP_USE_ASSERT\n\n/* Dump debugging buffer to stderr */\nvoid __kmp_dump_debug_buffer(void) {\n if (__kmp_debug_buffer != NULL) {\n int i;\n int dc = __kmp_debug_count;\n char *db = &__kmp_debug_buffer[(dc % __kmp_debug_buf_lines) *\n __kmp_debug_buf_chars];\n char *db_end =\n &__kmp_debug_buffer[__kmp_debug_buf_lines * __kmp_debug_buf_chars];\n char *db2;\n\n __kmp_acquire_bootstrap_lock(&__kmp_stdio_lock);\n __kmp_printf_no_lock(\"\\nStart dump of debugging buffer (entry=%d):\\n\",\n dc % __kmp_debug_buf_lines);\n\n for (i = 0; i < __kmp_debug_buf_lines; i++) {\n\n if (*db != '\\0') {\n /* Fix up where no carriage return before string termination char */\n for (db2 = db + 1; db2 < db + __kmp_debug_buf_chars - 1; db2++) {\n if (*db2 == '\\0') {\n if (*(db2 - 1) != '\\n') {\n *db2 = '\\n';\n *(db2 + 1) = '\\0';\n }\n break;\n }\n }\n /* Handle case at end by shortening the printed message by one char if\n * necessary */\n if (db2 == db + __kmp_debug_buf_chars - 1 && *db2 == '\\0' &&\n *(db2 - 1) != '\\n') {\n *(db2 - 1) = '\\n';\n }\n\n __kmp_printf_no_lock(\"%4d: %.*s\", i, __kmp_debug_buf_chars, db);\n *db = '\\0'; /* only let it print once! */\n }\n\n db += __kmp_debug_buf_chars;\n if (db >= db_end)\n db = __kmp_debug_buffer;\n }\n\n __kmp_printf_no_lock(\"End dump of debugging buffer (entry=%d).\\n\\n\",\n (dc + i - 1) % __kmp_debug_buf_lines);\n __kmp_release_bootstrap_lock(&__kmp_stdio_lock);\n }\n}\n"},"repo_name":{"kind":"string","value":"endlessm/chromium-browser"},"path":{"kind":"string","value":"third_party/llvm/openmp/runtime/src/kmp_debug.cpp"},"language":{"kind":"string","value":"C++"},"license":{"kind":"string","value":"bsd-3-clause"},"size":{"kind":"number","value":3628,"string":"3,628"}}},{"rowIdx":115086115,"cells":{"code":{"kind":"string","value":"# Copyright (c) 2006-2010 LOGILAB S.A. (Paris, FRANCE).\n# http://www.logilab.fr/ -- mailto:contact@logilab.fr\n#\n# This program is free software; you can redistribute it and/or modify it under\n# the terms of the GNU General Public License as published by the Free Software\n# Foundation; either version 2 of the License, or (at your option) any later\n# version.\n#\n# This program is distributed in the hope that it will be useful, but WITHOUT\n# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\n# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License along with\n# this program; if not, write to the Free Software Foundation, Inc.,\n# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n\"\"\"try to find more bugs in the code using astng inference capabilities\n\"\"\"\n\nimport re\nimport shlex\n\nfrom logilab import astng\nfrom logilab.astng import InferenceError, NotFoundError, YES, Instance\n\nfrom pylint.interfaces import IASTNGChecker\nfrom pylint.checkers import BaseChecker\nfrom pylint.checkers.utils import safe_infer, is_super, check_messages\n\nMSGS = {\n 'E1101': ('%s %r has no %r member',\n 'Used when a variable is accessed for an unexistent member.'),\n 'E1102': ('%s is not callable',\n 'Used when an object being called has been inferred to a non \\\n callable object'),\n 'E1103': ('%s %r has no %r member (but some types could not be inferred)',\n 'Used when a variable is accessed for an unexistent member, but \\\n astng was not able to interpret all possible types of this \\\n variable.'),\n 'E1111': ('Assigning to function call which doesn\\'t return',\n 'Used when an assignment is done on a function call but the \\\n inferred function doesn\\'t return anything.'),\n 'W1111': ('Assigning to function call which only returns None',\n 'Used when an assignment is done on a function call but the \\\n inferred function returns nothing but None.'),\n\n 'E1120': ('No value passed for parameter %s in function call',\n 'Used when a function call passes too few arguments.'),\n 'E1121': ('Too many positional arguments for function call',\n 'Used when a function call passes too many positional \\\n arguments.'),\n 'E1122': ('Duplicate keyword argument %r in function call',\n 'Used when a function call passes the same keyword argument \\\n multiple times.'),\n 'E1123': ('Passing unexpected keyword argument %r in function call',\n 'Used when a function call passes a keyword argument that \\\n doesn\\'t correspond to one of the function\\'s parameter names.'),\n 'E1124': ('Multiple values passed for parameter %r in function call',\n 'Used when a function call would result in assigning multiple \\\n values to a function parameter, one value from a positional \\\n argument and one from a keyword argument.'),\n }\n\nclass TypeChecker(BaseChecker):\n \"\"\"try to find bugs in the code using type inference\n \"\"\"\n\n __implements__ = (IASTNGChecker,)\n\n # configuration section name\n name = 'typecheck'\n # messages\n msgs = MSGS\n priority = -1\n # configuration options\n options = (('ignore-mixin-members',\n {'default' : True, 'type' : 'yn', 'metavar': '',\n 'help' : 'Tells whether missing members accessed in mixin \\\nclass should be ignored. A mixin class is detected if its name ends with \\\n\"mixin\" (case insensitive).'}\n ),\n\n ('ignored-classes',\n {'default' : ('SQLObject',),\n 'type' : 'csv',\n 'metavar' : '',\n 'help' : 'List of classes names for which member attributes \\\nshould not be checked (useful for classes with attributes dynamically set).'}\n ),\n\n ('zope',\n {'default' : False, 'type' : 'yn', 'metavar': '',\n 'help' : 'When zope mode is activated, add a predefined set \\\nof Zope acquired attributes to generated-members.'}\n ),\n ('generated-members',\n {'default' : (\n 'REQUEST', 'acl_users', 'aq_parent'),\n 'type' : 'string',\n 'metavar' : '',\n 'help' : 'List of members which are set dynamically and \\\nmissed by pylint inference system, and so shouldn\\'t trigger E0201 when \\\naccessed. Python regular expressions are accepted.'}\n ),\n )\n\n def open(self):\n # do this in open since config not fully initialized in __init__\n self.generated_members = list(self.config.generated_members)\n if self.config.zope:\n self.generated_members.extend(('REQUEST', 'acl_users', 'aq_parent'))\n\n def visit_assattr(self, node):\n if isinstance(node.ass_type(), astng.AugAssign):\n self.visit_getattr(node)\n\n def visit_delattr(self, node):\n self.visit_getattr(node)\n\n @check_messages('E1101', 'E1103')\n def visit_getattr(self, node):\n \"\"\"check that the accessed attribute exists\n\n to avoid to much false positives for now, we'll consider the code as\n correct if a single of the inferred nodes has the accessed attribute.\n\n function/method, super call and metaclasses are ignored\n \"\"\"\n # generated_members may containt regular expressions\n # (surrounded by quote `\"` and followed by a comma `,`)\n # REQUEST,aq_parent,\"[a-zA-Z]+_set{1,2}\"' =>\n # ('REQUEST', 'aq_parent', '[a-zA-Z]+_set{1,2}')\n if isinstance(self.config.generated_members, str):\n gen = shlex.shlex(self.config.generated_members)\n gen.whitespace += ','\n self.config.generated_members = tuple(tok.strip('\"') for tok in gen)\n for pattern in self.config.generated_members:\n # attribute is marked as generated, stop here\n if re.match(pattern, node.attrname):\n return\n try:\n infered = list(node.expr.infer())\n except InferenceError:\n return\n # list of (node, nodename) which are missing the attribute\n missingattr = set()\n ignoremim = self.config.ignore_mixin_members\n inference_failure = False\n for owner in infered:\n # skip yes object\n if owner is YES:\n inference_failure = True\n continue\n # skip None anyway\n if isinstance(owner, astng.Const) and owner.value is None:\n continue\n # XXX \"super\" / metaclass call\n if is_super(owner) or getattr(owner, 'type', None) == 'metaclass':\n continue\n name = getattr(owner, 'name', 'None')\n if name in self.config.ignored_classes:\n continue\n if ignoremim and name[-5:].lower() == 'mixin':\n continue\n try:\n if not [n for n in owner.getattr(node.attrname)\n if not isinstance(n.statement(), astng.AugAssign)]:\n missingattr.add((owner, name))\n continue\n except AttributeError:\n # XXX method / function\n continue\n except NotFoundError:\n if isinstance(owner, astng.Function) and owner.decorators:\n continue\n if isinstance(owner, Instance) and owner.has_dynamic_getattr():\n continue\n # explicit skipping of optparse'Values class\n if owner.name == 'Values' and owner.root().name == 'optparse':\n continue\n missingattr.add((owner, name))\n continue\n # stop on the first found\n break\n else:\n # we have not found any node with the attributes, display the\n # message for infered nodes\n done = set()\n for owner, name in missingattr:\n if isinstance(owner, Instance):\n actual = owner._proxied\n else:\n actual = owner\n if actual in done:\n continue\n done.add(actual)\n if inference_failure:\n msgid = 'E1103'\n else:\n msgid = 'E1101'\n self.add_message(msgid, node=node,\n args=(owner.display_type(), name,\n node.attrname))\n\n\n def visit_assign(self, node):\n \"\"\"check that if assigning to a function call, the function is\n possibly returning something valuable\n \"\"\"\n if not isinstance(node.value, astng.CallFunc):\n return\n function_node = safe_infer(node.value.func)\n # skip class, generator and incomplete function definition\n if not (isinstance(function_node, astng.Function) and\n function_node.root().fully_defined()):\n return\n if function_node.is_generator() \\\n or function_node.is_abstract(pass_is_abstract=False):\n return\n returns = list(function_node.nodes_of_class(astng.Return,\n skip_klass=astng.Function))\n if len(returns) == 0:\n self.add_message('E1111', node=node)\n else:\n for rnode in returns:\n if not (isinstance(rnode.value, astng.Const)\n and rnode.value.value is None):\n break\n else:\n self.add_message('W1111', node=node)\n\n def visit_callfunc(self, node):\n \"\"\"check that called functions/methods are inferred to callable objects,\n and that the arguments passed to the function match the parameters in\n the inferred function's definition\n \"\"\"\n\n # Build the set of keyword arguments, checking for duplicate keywords,\n # and count the positional arguments.\n keyword_args = set()\n num_positional_args = 0\n for arg in node.args:\n if isinstance(arg, astng.Keyword):\n keyword = arg.arg\n if keyword in keyword_args:\n self.add_message('E1122', node=node, args=keyword)\n keyword_args.add(keyword)\n else:\n num_positional_args += 1\n\n called = safe_infer(node.func)\n # only function, generator and object defining __call__ are allowed\n if called is not None and not called.callable():\n self.add_message('E1102', node=node, args=node.func.as_string())\n\n # Note that BoundMethod is a subclass of UnboundMethod (huh?), so must\n # come first in this 'if..else'.\n if isinstance(called, astng.BoundMethod):\n # Bound methods have an extra implicit 'self' argument.\n num_positional_args += 1\n elif isinstance(called, astng.UnboundMethod):\n if called.decorators is not None:\n for d in called.decorators.nodes:\n if isinstance(d, astng.Name) and (d.name == 'classmethod'):\n # Class methods have an extra implicit 'cls' argument.\n num_positional_args += 1\n break\n elif (isinstance(called, astng.Function) or\n isinstance(called, astng.Lambda)):\n pass\n else:\n return\n\n if called.args.args is None:\n # Built-in functions have no argument information.\n return\n\n if len( called.argnames() ) != len( set( called.argnames() ) ):\n # Duplicate parameter name (see E9801). We can't really make sense\n # of the function call in this case, so just return.\n return\n\n # Analyze the list of formal parameters.\n num_mandatory_parameters = len(called.args.args) - len(called.args.defaults)\n parameters = []\n parameter_name_to_index = {}\n for i, arg in enumerate(called.args.args):\n if isinstance(arg, astng.Tuple):\n name = None\n # Don't store any parameter names within the tuple, since those\n # are not assignable from keyword arguments.\n else:\n if isinstance(arg, astng.Keyword):\n name = arg.arg\n else:\n assert isinstance(arg, astng.AssName)\n # This occurs with:\n # def f( (a), (b) ): pass\n name = arg.name\n parameter_name_to_index[name] = i\n if i >= num_mandatory_parameters:\n defval = called.args.defaults[i - num_mandatory_parameters]\n else:\n defval = None\n parameters.append([(name, defval), False])\n\n # Match the supplied arguments against the function parameters.\n\n # 1. Match the positional arguments.\n for i in range(num_positional_args):\n if i < len(parameters):\n parameters[i][1] = True\n elif called.args.vararg is not None:\n # The remaining positional arguments get assigned to the *args\n # parameter.\n break\n else:\n # Too many positional arguments.\n self.add_message('E1121', node=node)\n break\n\n # 2. Match the keyword arguments.\n for keyword in keyword_args:\n if keyword in parameter_name_to_index:\n i = parameter_name_to_index[keyword]\n if parameters[i][1]:\n # Duplicate definition of function parameter.\n self.add_message('E1124', node=node, args=keyword)\n else:\n parameters[i][1] = True\n elif called.args.kwarg is not None:\n # The keyword argument gets assigned to the **kwargs parameter.\n pass\n else:\n # Unexpected keyword argument.\n self.add_message('E1123', node=node, args=keyword)\n\n # 3. Match the *args, if any. Note that Python actually processes\n # *args _before_ any keyword arguments, but we wait until after\n # looking at the keyword arguments so as to make a more conservative\n # guess at how many values are in the *args sequence.\n if node.starargs is not None:\n for i in range(num_positional_args, len(parameters)):\n [(name, defval), assigned] = parameters[i]\n # Assume that *args provides just enough values for all\n # non-default parameters after the last parameter assigned by\n # the positional arguments but before the first parameter\n # assigned by the keyword arguments. This is the best we can\n # get without generating any false positives.\n if (defval is not None) or assigned:\n break\n parameters[i][1] = True\n\n # 4. Match the **kwargs, if any.\n if node.kwargs is not None:\n for i, [(name, defval), assigned] in enumerate(parameters):\n # Assume that *kwargs provides values for all remaining\n # unassigned named parameters.\n if name is not None:\n parameters[i][1] = True\n else:\n # **kwargs can't assign to tuples.\n pass\n\n # Check that any parameters without a default have been assigned\n # values.\n for [(name, defval), assigned] in parameters:\n if (defval is None) and not assigned:\n if name is None:\n display = ''\n else:\n display_name = repr(name)\n self.add_message('E1120', node=node, args=display_name)\n\ndef register(linter):\n \"\"\"required method to auto register this checker \"\"\"\n linter.register_checker(TypeChecker(linter))\n"},"repo_name":{"kind":"string","value":"michalliu/chromium-depot_tools"},"path":{"kind":"string","value":"third_party/pylint/checkers/typecheck.py"},"language":{"kind":"string","value":"Python"},"license":{"kind":"string","value":"bsd-3-clause"},"size":{"kind":"number","value":16288,"string":"16,288"}}},{"rowIdx":115086116,"cells":{"code":{"kind":"string","value":"\n\n\n\n\nLiterals of type boolean\n\n\n\n\n
\n
\n\n
\n
\n
\n
\n
\n
\n

Literals of type boolean

\n
\n
\n
\n
\n
\n

(Analyzing code subset: Initially downloaded code)

\n\n
\n
\n
\n\n\n"},"repo_name":{"kind":"string","value":"ToonTalk/mopix2"},"path":{"kind":"string","value":"MoPiX/extras/Model/soycReport/compile-report/initial_boolean-9Lits.html"},"language":{"kind":"string","value":"HTML"},"license":{"kind":"string","value":"bsd-3-clause"},"size":{"kind":"number","value":1140,"string":"1,140"}}},{"rowIdx":115086117,"cells":{"code":{"kind":"string","value":"\n\n\n\n\n\n\n\n\n
\n
Loading...
\n
\n\n
Searching...
\n
No Matches
\n\n
\n\n\n"},"repo_name":{"kind":"string","value":"DweebsUnited/CodeMonkey"},"path":{"kind":"string","value":"resources/glfw3.3/docs/html/search/variables_3.html"},"language":{"kind":"string","value":"HTML"},"license":{"kind":"string","value":"bsd-3-clause"},"size":{"kind":"number","value":1262,"string":"1,262"}}},{"rowIdx":115086118,"cells":{"code":{"kind":"string","value":"// Copyright (c) 2012 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#include \"components/policy/core/common/cloud/device_management_service.h\"\n\n#include \n\n#include \"base/bind.h\"\n#include \"base/compiler_specific.h\"\n#include \"base/message_loop/message_loop.h\"\n#include \"base/message_loop/message_loop_proxy.h\"\n#include \"net/base/escape.h\"\n#include \"net/base/load_flags.h\"\n#include \"net/base/net_errors.h\"\n#include \"net/http/http_response_headers.h\"\n#include \"net/url_request/url_fetcher.h\"\n#include \"net/url_request/url_request_status.h\"\n#include \"url/gurl.h\"\n\nnamespace em = enterprise_management;\n\nnamespace policy {\n\nnamespace {\n\nconst char kPostContentType[] = \"application/protobuf\";\n\nconst char kServiceTokenAuthHeader[] = \"Authorization: GoogleLogin auth=\";\nconst char kDMTokenAuthHeader[] = \"Authorization: GoogleDMToken token=\";\n\n// Number of times to retry on ERR_NETWORK_CHANGED errors.\nconst int kMaxNetworkChangedRetries = 3;\n\n// HTTP Error Codes of the DM Server with their concrete meanings in the context\n// of the DM Server communication.\nconst int kSuccess = 200;\nconst int kInvalidArgument = 400;\nconst int kInvalidAuthCookieOrDMToken = 401;\nconst int kMissingLicenses = 402;\nconst int kDeviceManagementNotAllowed = 403;\nconst int kInvalidURL = 404; // This error is not coming from the GFE.\nconst int kInvalidSerialNumber = 405;\nconst int kDomainMismatch = 406;\nconst int kDeviceIdConflict = 409;\nconst int kDeviceNotFound = 410;\nconst int kPendingApproval = 412;\nconst int kInternalServerError = 500;\nconst int kServiceUnavailable = 503;\nconst int kPolicyNotFound = 902;\nconst int kDeprovisioned = 903;\n\nbool IsProxyError(const net::URLRequestStatus status) {\n switch (status.error()) {\n case net::ERR_PROXY_CONNECTION_FAILED:\n case net::ERR_TUNNEL_CONNECTION_FAILED:\n case net::ERR_PROXY_AUTH_UNSUPPORTED:\n case net::ERR_HTTPS_PROXY_TUNNEL_RESPONSE:\n case net::ERR_MANDATORY_PROXY_CONFIGURATION_FAILED:\n case net::ERR_PROXY_CERTIFICATE_INVALID:\n case net::ERR_SOCKS_CONNECTION_FAILED:\n case net::ERR_SOCKS_CONNECTION_HOST_UNREACHABLE:\n return true;\n }\n return false;\n}\n\nbool IsProtobufMimeType(const net::URLFetcher* fetcher) {\n return fetcher->GetResponseHeaders()->HasHeaderValue(\n \"content-type\", \"application/x-protobuffer\");\n}\n\nbool FailedWithProxy(const net::URLFetcher* fetcher) {\n if ((fetcher->GetLoadFlags() & net::LOAD_BYPASS_PROXY) != 0) {\n // The request didn't use a proxy.\n return false;\n }\n\n if (!fetcher->GetStatus().is_success() &&\n IsProxyError(fetcher->GetStatus())) {\n LOG(WARNING) << \"Proxy failed while contacting dmserver.\";\n return true;\n }\n\n if (fetcher->GetStatus().is_success() &&\n fetcher->GetResponseCode() == kSuccess &&\n fetcher->WasFetchedViaProxy() &&\n !IsProtobufMimeType(fetcher)) {\n // The proxy server can be misconfigured but pointing to an existing\n // server that replies to requests. Try to recover if a successful\n // request that went through a proxy returns an unexpected mime type.\n LOG(WARNING) << \"Got bad mime-type in response from dmserver that was \"\n << \"fetched via a proxy.\";\n return true;\n }\n\n return false;\n}\n\nconst char* UserAffiliationToString(UserAffiliation affiliation) {\n switch (affiliation) {\n case USER_AFFILIATION_MANAGED:\n return dm_protocol::kValueUserAffiliationManaged;\n case USER_AFFILIATION_NONE:\n return dm_protocol::kValueUserAffiliationNone;\n }\n NOTREACHED() << \"Invalid user affiliation \" << affiliation;\n return dm_protocol::kValueUserAffiliationNone;\n}\n\nconst char* JobTypeToRequestType(DeviceManagementRequestJob::JobType type) {\n switch (type) {\n case DeviceManagementRequestJob::TYPE_AUTO_ENROLLMENT:\n return dm_protocol::kValueRequestAutoEnrollment;\n case DeviceManagementRequestJob::TYPE_REGISTRATION:\n return dm_protocol::kValueRequestRegister;\n case DeviceManagementRequestJob::TYPE_POLICY_FETCH:\n return dm_protocol::kValueRequestPolicy;\n case DeviceManagementRequestJob::TYPE_API_AUTH_CODE_FETCH:\n return dm_protocol::kValueRequestApiAuthorization;\n case DeviceManagementRequestJob::TYPE_UNREGISTRATION:\n return dm_protocol::kValueRequestUnregister;\n case DeviceManagementRequestJob::TYPE_UPLOAD_CERTIFICATE:\n return dm_protocol::kValueRequestUploadCertificate;\n case DeviceManagementRequestJob::TYPE_DEVICE_STATE_RETRIEVAL:\n return dm_protocol::kValueRequestDeviceStateRetrieval;\n }\n NOTREACHED() << \"Invalid job type \" << type;\n return \"\";\n}\n\n} // namespace\n\n// Request job implementation used with DeviceManagementService.\nclass DeviceManagementRequestJobImpl : public DeviceManagementRequestJob {\n public:\n DeviceManagementRequestJobImpl(\n JobType type,\n const std::string& agent_parameter,\n const std::string& platform_parameter,\n DeviceManagementService* service,\n net::URLRequestContextGetter* request_context);\n virtual ~DeviceManagementRequestJobImpl();\n\n // Handles the URL request response.\n void HandleResponse(const net::URLRequestStatus& status,\n int response_code,\n const net::ResponseCookies& cookies,\n const std::string& data);\n\n // Gets the URL to contact.\n GURL GetURL(const std::string& server_url);\n\n // Configures the fetcher, setting up payload and headers.\n void ConfigureRequest(net::URLFetcher* fetcher);\n\n // Returns true if this job should be retried. |fetcher| has just completed,\n // and can be inspected to determine if the request failed and should be\n // retried.\n bool ShouldRetry(const net::URLFetcher* fetcher);\n\n // Invoked right before retrying this job.\n void PrepareRetry();\n\n protected:\n // DeviceManagementRequestJob:\n virtual void Run() OVERRIDE;\n\n private:\n // Invokes the callback with the given error code.\n void ReportError(DeviceManagementStatus code);\n\n // Pointer to the service this job is associated with.\n DeviceManagementService* service_;\n\n // Whether the BYPASS_PROXY flag should be set by ConfigureRequest().\n bool bypass_proxy_;\n\n // Number of times that this job has been retried due to ERR_NETWORK_CHANGED.\n int retries_count_;\n\n // The request context to use for this job.\n net::URLRequestContextGetter* request_context_;\n\n DISALLOW_COPY_AND_ASSIGN(DeviceManagementRequestJobImpl);\n};\n\nDeviceManagementRequestJobImpl::DeviceManagementRequestJobImpl(\n JobType type,\n const std::string& agent_parameter,\n const std::string& platform_parameter,\n DeviceManagementService* service,\n net::URLRequestContextGetter* request_context)\n : DeviceManagementRequestJob(type, agent_parameter, platform_parameter),\n service_(service),\n bypass_proxy_(false),\n retries_count_(0),\n request_context_(request_context) {}\n\nDeviceManagementRequestJobImpl::~DeviceManagementRequestJobImpl() {\n service_->RemoveJob(this);\n}\n\nvoid DeviceManagementRequestJobImpl::Run() {\n service_->AddJob(this);\n}\n\nvoid DeviceManagementRequestJobImpl::HandleResponse(\n const net::URLRequestStatus& status,\n int response_code,\n const net::ResponseCookies& cookies,\n const std::string& data) {\n if (status.status() != net::URLRequestStatus::SUCCESS) {\n LOG(WARNING) << \"DMServer request failed, status: \" << status.status()\n << \", error: \" << status.error();\n em::DeviceManagementResponse dummy_response;\n callback_.Run(DM_STATUS_REQUEST_FAILED, status.error(), dummy_response);\n return;\n }\n\n if (response_code != kSuccess)\n LOG(WARNING) << \"DMServer sent an error response: \" << response_code;\n\n switch (response_code) {\n case kSuccess: {\n em::DeviceManagementResponse response;\n if (!response.ParseFromString(data)) {\n ReportError(DM_STATUS_RESPONSE_DECODING_ERROR);\n return;\n }\n callback_.Run(DM_STATUS_SUCCESS, net::OK, response);\n return;\n }\n case kInvalidArgument:\n ReportError(DM_STATUS_REQUEST_INVALID);\n return;\n case kInvalidAuthCookieOrDMToken:\n ReportError(DM_STATUS_SERVICE_MANAGEMENT_TOKEN_INVALID);\n return;\n case kMissingLicenses:\n ReportError(DM_STATUS_SERVICE_MISSING_LICENSES);\n return;\n case kDeviceManagementNotAllowed:\n ReportError(DM_STATUS_SERVICE_MANAGEMENT_NOT_SUPPORTED);\n return;\n case kPendingApproval:\n ReportError(DM_STATUS_SERVICE_ACTIVATION_PENDING);\n return;\n case kInvalidURL:\n case kInternalServerError:\n case kServiceUnavailable:\n ReportError(DM_STATUS_TEMPORARY_UNAVAILABLE);\n return;\n case kDeviceNotFound:\n ReportError(DM_STATUS_SERVICE_DEVICE_NOT_FOUND);\n return;\n case kPolicyNotFound:\n ReportError(DM_STATUS_SERVICE_POLICY_NOT_FOUND);\n return;\n case kInvalidSerialNumber:\n ReportError(DM_STATUS_SERVICE_INVALID_SERIAL_NUMBER);\n return;\n case kDomainMismatch:\n ReportError(DM_STATUS_SERVICE_DOMAIN_MISMATCH);\n return;\n case kDeprovisioned:\n ReportError(DM_STATUS_SERVICE_DEPROVISIONED);\n return;\n case kDeviceIdConflict:\n ReportError(DM_STATUS_SERVICE_DEVICE_ID_CONFLICT);\n return;\n default:\n // Handle all unknown 5xx HTTP error codes as temporary and any other\n // unknown error as one that needs more time to recover.\n if (response_code >= 500 && response_code <= 599)\n ReportError(DM_STATUS_TEMPORARY_UNAVAILABLE);\n else\n ReportError(DM_STATUS_HTTP_STATUS_ERROR);\n return;\n }\n}\n\nGURL DeviceManagementRequestJobImpl::GetURL(\n const std::string& server_url) {\n std::string result(server_url);\n result += '?';\n for (ParameterMap::const_iterator entry(query_params_.begin());\n entry != query_params_.end();\n ++entry) {\n if (entry != query_params_.begin())\n result += '&';\n result += net::EscapeQueryParamValue(entry->first, true);\n result += '=';\n result += net::EscapeQueryParamValue(entry->second, true);\n }\n return GURL(result);\n}\n\nvoid DeviceManagementRequestJobImpl::ConfigureRequest(\n net::URLFetcher* fetcher) {\n fetcher->SetRequestContext(request_context_);\n fetcher->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES |\n net::LOAD_DO_NOT_SAVE_COOKIES |\n net::LOAD_DISABLE_CACHE |\n (bypass_proxy_ ? net::LOAD_BYPASS_PROXY : 0));\n std::string payload;\n CHECK(request_.SerializeToString(&payload));\n fetcher->SetUploadData(kPostContentType, payload);\n std::string extra_headers;\n if (!gaia_token_.empty())\n extra_headers += kServiceTokenAuthHeader + gaia_token_ + \"\\n\";\n if (!dm_token_.empty())\n extra_headers += kDMTokenAuthHeader + dm_token_ + \"\\n\";\n fetcher->SetExtraRequestHeaders(extra_headers);\n}\n\nbool DeviceManagementRequestJobImpl::ShouldRetry(\n const net::URLFetcher* fetcher) {\n if (FailedWithProxy(fetcher) && !bypass_proxy_) {\n // Retry the job if it failed due to a broken proxy, by bypassing the\n // proxy on the next try.\n bypass_proxy_ = true;\n return true;\n }\n\n // Early device policy fetches on ChromeOS and Auto-Enrollment checks are\n // often interrupted during ChromeOS startup when network change notifications\n // are sent. Allowing the fetcher to retry once after that is enough to\n // recover; allow it to retry up to 3 times just in case.\n if (fetcher->GetStatus().error() == net::ERR_NETWORK_CHANGED &&\n retries_count_ < kMaxNetworkChangedRetries) {\n ++retries_count_;\n return true;\n }\n\n // The request didn't fail, or the limit of retry attempts has been reached;\n // forward the result to the job owner.\n return false;\n}\n\nvoid DeviceManagementRequestJobImpl::PrepareRetry() {\n if (!retry_callback_.is_null())\n retry_callback_.Run(this);\n}\n\nvoid DeviceManagementRequestJobImpl::ReportError(DeviceManagementStatus code) {\n em::DeviceManagementResponse dummy_response;\n callback_.Run(code, net::OK, dummy_response);\n}\n\nDeviceManagementRequestJob::~DeviceManagementRequestJob() {}\n\nvoid DeviceManagementRequestJob::SetGaiaToken(const std::string& gaia_token) {\n gaia_token_ = gaia_token;\n}\n\nvoid DeviceManagementRequestJob::SetOAuthToken(const std::string& oauth_token) {\n AddParameter(dm_protocol::kParamOAuthToken, oauth_token);\n}\n\nvoid DeviceManagementRequestJob::SetUserAffiliation(\n UserAffiliation user_affiliation) {\n AddParameter(dm_protocol::kParamUserAffiliation,\n UserAffiliationToString(user_affiliation));\n}\n\nvoid DeviceManagementRequestJob::SetDMToken(const std::string& dm_token) {\n dm_token_ = dm_token;\n}\n\nvoid DeviceManagementRequestJob::SetClientID(const std::string& client_id) {\n AddParameter(dm_protocol::kParamDeviceID, client_id);\n}\n\nem::DeviceManagementRequest* DeviceManagementRequestJob::GetRequest() {\n return &request_;\n}\n\nDeviceManagementRequestJob::DeviceManagementRequestJob(\n JobType type,\n const std::string& agent_parameter,\n const std::string& platform_parameter) {\n AddParameter(dm_protocol::kParamRequest, JobTypeToRequestType(type));\n AddParameter(dm_protocol::kParamDeviceType, dm_protocol::kValueDeviceType);\n AddParameter(dm_protocol::kParamAppType, dm_protocol::kValueAppType);\n AddParameter(dm_protocol::kParamAgent, agent_parameter);\n AddParameter(dm_protocol::kParamPlatform, platform_parameter);\n}\n\nvoid DeviceManagementRequestJob::SetRetryCallback(\n const RetryCallback& retry_callback) {\n retry_callback_ = retry_callback;\n}\n\nvoid DeviceManagementRequestJob::Start(const Callback& callback) {\n callback_ = callback;\n Run();\n}\n\nvoid DeviceManagementRequestJob::AddParameter(const std::string& name,\n const std::string& value) {\n query_params_.push_back(std::make_pair(name, value));\n}\n\n// A random value that other fetchers won't likely use.\nconst int DeviceManagementService::kURLFetcherID = 0xde71ce1d;\n\nDeviceManagementService::~DeviceManagementService() {\n // All running jobs should have been cancelled by now.\n DCHECK(pending_jobs_.empty());\n DCHECK(queued_jobs_.empty());\n}\n\nDeviceManagementRequestJob* DeviceManagementService::CreateJob(\n DeviceManagementRequestJob::JobType type,\n net::URLRequestContextGetter* request_context) {\n return new DeviceManagementRequestJobImpl(\n type,\n configuration_->GetAgentParameter(),\n configuration_->GetPlatformParameter(),\n this,\n request_context);\n}\n\nvoid DeviceManagementService::ScheduleInitialization(int64 delay_milliseconds) {\n if (initialized_)\n return;\n base::MessageLoop::current()->PostDelayedTask(\n FROM_HERE,\n base::Bind(&DeviceManagementService::Initialize,\n weak_ptr_factory_.GetWeakPtr()),\n base::TimeDelta::FromMilliseconds(delay_milliseconds));\n}\n\nvoid DeviceManagementService::Initialize() {\n if (initialized_)\n return;\n initialized_ = true;\n\n while (!queued_jobs_.empty()) {\n StartJob(queued_jobs_.front());\n queued_jobs_.pop_front();\n }\n}\n\nvoid DeviceManagementService::Shutdown() {\n for (JobFetcherMap::iterator job(pending_jobs_.begin());\n job != pending_jobs_.end();\n ++job) {\n delete job->first;\n queued_jobs_.push_back(job->second);\n }\n pending_jobs_.clear();\n}\n\nDeviceManagementService::DeviceManagementService(\n scoped_ptr configuration)\n : configuration_(configuration.Pass()),\n initialized_(false),\n weak_ptr_factory_(this) {\n DCHECK(configuration_);\n}\n\nvoid DeviceManagementService::StartJob(DeviceManagementRequestJobImpl* job) {\n std::string server_url = GetServerUrl();\n net::URLFetcher* fetcher = net::URLFetcher::Create(\n kURLFetcherID, job->GetURL(server_url), net::URLFetcher::POST, this);\n job->ConfigureRequest(fetcher);\n pending_jobs_[fetcher] = job;\n fetcher->Start();\n}\n\nstd::string DeviceManagementService::GetServerUrl() {\n return configuration_->GetServerUrl();\n}\n\nvoid DeviceManagementService::OnURLFetchComplete(\n const net::URLFetcher* source) {\n JobFetcherMap::iterator entry(pending_jobs_.find(source));\n if (entry == pending_jobs_.end()) {\n NOTREACHED() << \"Callback from foreign URL fetcher\";\n return;\n }\n\n DeviceManagementRequestJobImpl* job = entry->second;\n pending_jobs_.erase(entry);\n\n if (job->ShouldRetry(source)) {\n VLOG(1) << \"Retrying dmserver request.\";\n job->PrepareRetry();\n StartJob(job);\n } else {\n std::string data;\n source->GetResponseAsString(&data);\n job->HandleResponse(source->GetStatus(), source->GetResponseCode(),\n source->GetCookies(), data);\n }\n delete source;\n}\n\nvoid DeviceManagementService::AddJob(DeviceManagementRequestJobImpl* job) {\n if (initialized_)\n StartJob(job);\n else\n queued_jobs_.push_back(job);\n}\n\nvoid DeviceManagementService::RemoveJob(DeviceManagementRequestJobImpl* job) {\n for (JobFetcherMap::iterator entry(pending_jobs_.begin());\n entry != pending_jobs_.end();\n ++entry) {\n if (entry->second == job) {\n delete entry->first;\n pending_jobs_.erase(entry);\n return;\n }\n }\n\n const JobQueue::iterator elem =\n std::find(queued_jobs_.begin(), queued_jobs_.end(), job);\n if (elem != queued_jobs_.end())\n queued_jobs_.erase(elem);\n}\n\n} // namespace policy\n"},"repo_name":{"kind":"string","value":"7kbird/chrome"},"path":{"kind":"string","value":"components/policy/core/common/cloud/device_management_service.cc"},"language":{"kind":"string","value":"C++"},"license":{"kind":"string","value":"bsd-3-clause"},"size":{"kind":"number","value":17300,"string":"17,300"}}},{"rowIdx":115086119,"cells":{"code":{"kind":"string","value":"// RUN: %clang_cc1 -verify -fopenmp %s -Wuninitialized\n\n// RUN: %clang_cc1 -verify -fopenmp-simd %s -Wuninitialized\n\nextern int omp_default_mem_alloc;\n\nvoid xxx(int argc) {\n int i, lin, step; // expected-note {{initialize the variable 'lin' to silence this warning}} expected-note {{initialize the variable 'step' to silence this warning}}\n#pragma omp for simd linear(i, lin : step) // expected-warning {{variable 'lin' is uninitialized when used here}} expected-warning {{variable 'step' is uninitialized when used here}}\n for (i = 0; i < 10; ++i)\n ;\n}\n\nnamespace X {\n int x;\n};\n\nstruct B {\n static int ib; // expected-note {{'B::ib' declared here}}\n static int bfoo() { return 8; }\n};\n\nint bfoo() { return 4; }\n\nint z;\nconst int C1 = 1;\nconst int C2 = 2;\nvoid test_linear_colons()\n{\n int B = 0;\n #pragma omp for simd linear(B:bfoo())\n for (int i = 0; i < 10; ++i) ;\n // expected-error@+1 {{unexpected ':' in nested name specifier; did you mean '::'}}\n #pragma omp for simd linear(B::ib:B:bfoo())\n for (int i = 0; i < 10; ++i) ;\n // expected-error@+1 {{use of undeclared identifier 'ib'; did you mean 'B::ib'}}\n #pragma omp for simd linear(B:ib)\n for (int i = 0; i < 10; ++i) ;\n // expected-error@+1 {{unexpected ':' in nested name specifier; did you mean '::'?}}\n #pragma omp for simd linear(z:B:ib)\n for (int i = 0; i < 10; ++i) ;\n #pragma omp for simd linear(B:B::bfoo())\n for (int i = 0; i < 10; ++i) ;\n #pragma omp for simd linear(X::x : ::z)\n for (int i = 0; i < 10; ++i) ;\n #pragma omp for simd linear(B,::z, X::x)\n for (int i = 0; i < 10; ++i) ;\n #pragma omp for simd linear(::z)\n for (int i = 0; i < 10; ++i) ;\n // expected-error@+1 {{expected variable name}}\n #pragma omp for simd linear(B::bfoo())\n for (int i = 0; i < 10; ++i) ;\n #pragma omp for simd linear(B::ib,B:C1+C2)\n for (int i = 0; i < 10; ++i) ;\n}\n\ntemplate T test_template(T* arr, N num) {\n N i;\n T sum = (T)0;\n T ind2 = - num * L; // expected-note {{'ind2' defined here}}\n // expected-error@+1 {{argument of a linear clause should be of integral or pointer type}}\n#pragma omp for simd linear(ind2:L)\n for (i = 0; i < num; ++i) {\n T cur = arr[(int)ind2];\n ind2 += L;\n sum += cur;\n }\n return T();\n}\n\ntemplate int test_warn() {\n int ind2 = 0;\n // expected-warning@+1 {{zero linear step (ind2 should probably be const)}}\n #pragma omp for simd linear(ind2:LEN)\n for (int i = 0; i < 100; i++) {\n ind2 += LEN;\n }\n return ind2;\n}\n\nstruct S1; // expected-note 2 {{declared here}} expected-note 2 {{forward declaration of 'S1'}}\nextern S1 a;\nclass S2 {\n mutable int a;\npublic:\n S2():a(0) { }\n};\nconst S2 b; // expected-note 2 {{'b' defined here}}\nconst S2 ba[5];\nclass S3 {\n int a;\npublic:\n S3():a(0) { }\n};\nconst S3 ca[5];\nclass S4 {\n int a;\n S4();\npublic:\n S4(int v):a(v) { }\n};\nclass S5 {\n int a;\n S5():a(0) {}\npublic:\n S5(int v):a(v) { }\n};\n\nS3 h;\n#pragma omp threadprivate(h) // expected-note 2 {{defined as threadprivate or thread local}}\n\ntemplate int foomain(I argc, C **argv) {\n I e(4);\n I g(5);\n int i;\n int &j = i;\n #pragma omp for simd linear // expected-error {{expected '(' after 'linear'}}\n for (int k = 0; k < argc; ++k) ++k;\n #pragma omp for simd linear ( // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}\n for (int k = 0; k < argc; ++k) ++k;\n #pragma omp for simd linear () // expected-error {{expected expression}}\n for (int k = 0; k < argc; ++k) ++k;\n #pragma omp for simd linear (argc // expected-error {{expected ')'}} expected-note {{to match this '('}}\n for (int k = 0; k < argc; ++k) ++k;\n #pragma omp for simd linear (argc, // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}\n for (int k = 0; k < argc; ++k) ++k;\n #pragma omp for simd linear (argc > 0 ? argv[1] : argv[2]) // expected-error {{expected variable name}}\n for (int k = 0; k < argc; ++k) ++k;\n #pragma omp for simd linear (argc : 5) allocate , allocate(, allocate(omp_default , allocate(omp_default_mem_alloc, allocate(omp_default_mem_alloc:, allocate(omp_default_mem_alloc: argc, allocate(omp_default_mem_alloc: argv), allocate(argv) // expected-error {{expected '(' after 'allocate'}} expected-error 2 {{expected expression}} expected-error 2 {{expected ')'}} expected-error {{use of undeclared identifier 'omp_default'}} expected-note 2 {{to match this '('}}\n for (int k = 0; k < argc; ++k) ++k;\n #pragma omp for simd linear (S1) // expected-error {{'S1' does not refer to a value}}\n for (int k = 0; k < argc; ++k) ++k;\n // expected-error@+2 {{linear variable with incomplete type 'S1'}}\n // expected-error@+1 {{argument of a linear clause should be of integral or pointer type, not 'S2'}}\n #pragma omp for simd linear (a, b:B::ib)\n for (int k = 0; k < argc; ++k) ++k;\n #pragma omp for simd linear (argv[1]) // expected-error {{expected variable name}}\n for (int k = 0; k < argc; ++k) ++k;\n #pragma omp for simd linear(e, g)\n for (int k = 0; k < argc; ++k) ++k;\n #pragma omp for simd linear(h) // expected-error {{threadprivate or thread local variable cannot be linear}}\n for (int k = 0; k < argc; ++k) ++k;\n #pragma omp for simd linear(i)\n for (int k = 0; k < argc; ++k) ++k;\n #pragma omp parallel\n {\n int v = 0;\n long z;\n int i;\n #pragma omp for simd linear(z, v:i)\n for (int k = 0; k < argc; ++k) { i = k; v += i; }\n }\n #pragma omp for simd linear(j)\n for (int k = 0; k < argc; ++k) ++k;\n int v = 0;\n #pragma omp for simd linear(v:j)\n for (int k = 0; k < argc; ++k) { ++k; v += j; }\n #pragma omp for simd linear(i)\n for (int k = 0; k < argc; ++k) ++k;\n return 0;\n}\n\nnamespace A {\ndouble x;\n#pragma omp threadprivate(x) // expected-note {{defined as threadprivate or thread local}}\n}\nnamespace C {\nusing A::x;\n}\n\nint main(int argc, char **argv) {\n double darr[100];\n // expected-note@+1 {{in instantiation of function template specialization 'test_template<-4, double, int>' requested here}}\n test_template<-4>(darr, 4);\n // expected-note@+1 {{in instantiation of function template specialization 'test_warn<0>' requested here}}\n test_warn<0>();\n\n S4 e(4); // expected-note {{'e' defined here}}\n S5 g(5); // expected-note {{'g' defined here}}\n int i;\n int &j = i;\n #pragma omp for simd linear // expected-error {{expected '(' after 'linear'}}\n for (int k = 0; k < argc; ++k) ++k;\n #pragma omp for simd linear ( // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}\n for (int k = 0; k < argc; ++k) ++k;\n #pragma omp for simd linear () // expected-error {{expected expression}}\n for (int k = 0; k < argc; ++k) ++k;\n #pragma omp for simd linear (argc // expected-error {{expected ')'}} expected-note {{to match this '('}}\n for (int k = 0; k < argc; ++k) ++k;\n #pragma omp for simd linear (argc, // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}\n for (int k = 0; k < argc; ++k) ++k;\n #pragma omp for simd linear (argc > 0 ? argv[1] : argv[2]) // expected-error {{expected variable name}}\n for (int k = 0; k < argc; ++k) ++k;\n #pragma omp for simd linear (argc)\n for (int k = 0; k < argc; ++k) ++k;\n #pragma omp for simd linear (S1) // expected-error {{'S1' does not refer to a value}}\n for (int k = 0; k < argc; ++k) ++k;\n // expected-error@+2 {{linear variable with incomplete type 'S1'}}\n // expected-error@+1 {{argument of a linear clause should be of integral or pointer type, not 'S2'}}\n #pragma omp for simd linear(a, b)\n for (int k = 0; k < argc; ++k) ++k;\n #pragma omp for simd linear (argv[1]) // expected-error {{expected variable name}}\n for (int k = 0; k < argc; ++k) ++k;\n // expected-error@+2 {{argument of a linear clause should be of integral or pointer type, not 'S4'}}\n // expected-error@+1 {{argument of a linear clause should be of integral or pointer type, not 'S5'}}\n #pragma omp for simd linear(e, g)\n for (int k = 0; k < argc; ++k) ++k;\n #pragma omp for simd linear(h, C::x) // expected-error 2 {{threadprivate or thread local variable cannot be linear}}\n for (int k = 0; k < argc; ++k) ++k;\n #pragma omp parallel\n {\n int i;\n #pragma omp for simd linear(i : i)\n for (int k = 0; k < argc; ++k) ++k;\n #pragma omp for simd linear(i : 4)\n for (int k = 0; k < argc; ++k) { ++k; i += 4; }\n }\n #pragma omp for simd linear(j)\n for (int k = 0; k < argc; ++k) ++k;\n #pragma omp for simd linear(i)\n for (int k = 0; k < argc; ++k) ++k;\n\n foomain(argc,argv); // expected-note {{in instantiation of function template specialization 'foomain' requested here}}\n return 0;\n}\n\n"},"repo_name":{"kind":"string","value":"endlessm/chromium-browser"},"path":{"kind":"string","value":"third_party/llvm/clang/test/OpenMP/for_simd_linear_messages.cpp"},"language":{"kind":"string","value":"C++"},"license":{"kind":"string","value":"bsd-3-clause"},"size":{"kind":"number","value":8731,"string":"8,731"}}},{"rowIdx":115086120,"cells":{"code":{"kind":"string","value":"/* Declarations and definitions dealing with attribute handling.\n Copyright (C) 2013-2016 Free Software Foundation, Inc.\n\nThis file is part of GCC.\n\nGCC is free software; you can redistribute it and/or modify it under\nthe terms of the GNU General Public License as published by the Free\nSoftware Foundation; either version 3, or (at your option) any later\nversion.\n\nGCC is distributed in the hope that it will be useful, but WITHOUT ANY\nWARRANTY; without even the implied warranty of MERCHANTABILITY or\nFITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License\nfor more details.\n\nYou should have received a copy of the GNU General Public License\nalong with GCC; see the file COPYING3. If not see\n. */\n\n#ifndef GCC_ATTRIBS_H\n#define GCC_ATTRIBS_H\n\nextern const struct attribute_spec *lookup_attribute_spec (const_tree);\nextern void init_attributes (void);\n\n/* Process the attributes listed in ATTRIBUTES and install them in *NODE,\n which is either a DECL (including a TYPE_DECL) or a TYPE. If a DECL,\n it should be modified in place; if a TYPE, a copy should be created\n unless ATTR_FLAG_TYPE_IN_PLACE is set in FLAGS. FLAGS gives further\n information, in the form of a bitwise OR of flags in enum attribute_flags\n from tree.h. Depending on these flags, some attributes may be\n returned to be applied at a later stage (for example, to apply\n a decl attribute to the declaration rather than to its type). */\nextern tree decl_attributes (tree *, tree, int);\n\nextern bool cxx11_attribute_p (const_tree);\nextern tree get_attribute_name (const_tree);\nextern void apply_tm_attr (tree, tree);\nextern tree make_attribute (const char *, const char *, tree);\n\n#endif // GCC_ATTRIBS_H\n"},"repo_name":{"kind":"string","value":"ChangsoonKim/STM32F7DiscTutor"},"path":{"kind":"string","value":"toolchain/osx/gcc-arm-none-eabi-6-2017-q1-update/lib/gcc/arm-none-eabi/6.3.1/plugin/include/attribs.h"},"language":{"kind":"string","value":"C"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":1737,"string":"1,737"}}},{"rowIdx":115086121,"cells":{"code":{"kind":"string","value":"import { __extends } from \"tslib\";\r\n/**\r\n * ============================================================================\r\n * IMPORTS\r\n * ============================================================================\r\n * @hidden\r\n */\r\nimport { dataLoader } from \"./DataLoader\";\r\nimport { JSONParser } from \"./JSONParser\";\r\nimport { CSVParser } from \"./CSVParser\";\r\nimport { BaseObjectEvents } from \"../Base\";\r\nimport { Adapter } from \"../utils/Adapter\";\r\nimport { Language } from \"../utils/Language\";\r\nimport { DateFormatter } from \"../formatters/DateFormatter\";\r\nimport { registry } from \"../Registry\";\r\nimport * as $type from \"../utils/Type\";\r\nimport * as $object from \"../utils/Object\";\r\n;\r\n;\r\n/**\r\n * ============================================================================\r\n * MAIN CLASS\r\n * ============================================================================\r\n * @hidden\r\n */\r\n/**\r\n * Represents a single data source - external file with all of its settings,\r\n * such as format, data parsing, etc.\r\n *\r\n * ```TypeScript\r\n * chart.dataSource.url = \"http://www.myweb.com/data.json\";\r\n * chart.dataSource.parser = am4core.JSONParser;\r\n * ```\r\n * ```JavaScript\r\n * chart.dataSource.url = \"http://www.myweb.com/data.json\";\r\n * chart.dataSource.parser = am4core.JSONParser;\r\n * ```\r\n * ```JSON\r\n * {\r\n * // ...\r\n * \"dataSource\": {\r\n * \"url\": \"http://www.myweb.com/data.json\",\r\n * \"parser\": \"JSONParser\"\r\n * },\r\n * // ...\r\n * }\r\n * ```\r\n *\r\n * @see {@link IDataSourceEvents} for a list of available events\r\n * @see {@link IDataSourceAdapters} for a list of available Adapters\r\n */\r\nvar DataSource = /** @class */ (function (_super) {\r\n __extends(DataSource, _super);\r\n /**\r\n * Constructor\r\n */\r\n function DataSource(url, parser) {\r\n var _this = \r\n // Init\r\n _super.call(this) || this;\r\n /**\r\n * Adapter.\r\n */\r\n _this.adapter = new Adapter(_this);\r\n /**\r\n * Custom options for HTTP(S) request.\r\n */\r\n _this._requestOptions = {};\r\n /**\r\n * If set to `true`, any subsequent data loads will be considered incremental\r\n * (containing only new data points that are supposed to be added to existing\r\n * data).\r\n *\r\n * NOTE: this setting works only with element's `data` property. It won't\r\n * work with any other externally-loadable data property.\r\n *\r\n * @default false\r\n */\r\n _this._incremental = false;\r\n /**\r\n * A collection of key/value pairs to attach to a data source URL when making\r\n * an incremental request.\r\n */\r\n _this._incrementalParams = {};\r\n /**\r\n * This setting is used only when `incremental = true`. If set to `true`,\r\n * it will try to retain the same number of data items across each load.\r\n *\r\n * E.g. if incremental load yeilded 5 new records, then 5 items from the\r\n * beginning of data will be removed so that we end up with the same number\r\n * of data items.\r\n *\r\n * @default false\r\n */\r\n _this._keepCount = false;\r\n /**\r\n * If set to `true`, each subsequent load will be treated as an update to\r\n * currently loaded data, meaning that it will try to update values on\r\n * existing data items, not overwrite the whole data.\r\n *\r\n * This will work faster than complete update, and also will animate the\r\n * values to their new positions.\r\n *\r\n * Data sources across loads must contain the same number of data items.\r\n *\r\n * Loader will not truncate the data set if loaded data has fewer data items,\r\n * and if it is longer, the excess data items will be ignored.\r\n *\r\n * @default false\r\n * @since 4.5.5\r\n */\r\n _this._updateCurrentData = false;\r\n /**\r\n * Will show loading indicator when loading files.\r\n */\r\n _this.showPreloader = true;\r\n _this.className = \"DataSource\";\r\n // Set defaults\r\n if (url) {\r\n _this.url = url;\r\n }\r\n // Set parser\r\n if (parser) {\r\n if (typeof parser == \"string\") {\r\n _this.parser = dataLoader.getParserByType(parser);\r\n }\r\n else {\r\n _this.parser = parser;\r\n }\r\n }\r\n return _this;\r\n }\r\n /**\r\n * Processes the loaded data.\r\n *\r\n * @ignore Exclude from docs\r\n * @param data Raw (unparsed) data\r\n * @param contentType Content type of the loaded data (optional)\r\n */\r\n DataSource.prototype.processData = function (data, contentType) {\r\n // Parsing started\r\n this.dispatchImmediately(\"parsestarted\");\r\n // Check if parser is set\r\n if (!this.parser) {\r\n // Try to resolve from data\r\n this.parser = dataLoader.getParserByData(data, contentType);\r\n if (!this.parser) {\r\n // We have a problem - nobody knows what to do with the data\r\n // Raise error\r\n if (this.events.isEnabled(\"parseerror\")) {\r\n var event_1 = {\r\n type: \"parseerror\",\r\n message: this.language.translate(\"No parser available for file: %1\", null, this.url),\r\n target: this\r\n };\r\n this.events.dispatchImmediately(\"parseerror\", event_1);\r\n }\r\n this.dispatchImmediately(\"parseended\");\r\n return;\r\n }\r\n }\r\n // Apply options adapters\r\n this.parser.options = this.adapter.apply(\"parserOptions\", this.parser.options);\r\n this.parser.options.dateFields = this.adapter.apply(\"dateFields\", this.parser.options.dateFields || []);\r\n this.parser.options.numberFields = this.adapter.apply(\"numberFields\", this.parser.options.numberFields || []);\r\n // Check if we need to pass in date formatter\r\n if (this.parser.options.dateFields && !this.parser.options.dateFormatter) {\r\n this.parser.options.dateFormatter = this.dateFormatter;\r\n }\r\n // Parse\r\n this.data = this.adapter.apply(\"parsedData\", this.parser.parse(this.adapter.apply(\"unparsedData\", data)));\r\n // Check for parsing errors\r\n if (!$type.hasValue(this.data) && this.events.isEnabled(\"parseerror\")) {\r\n var event_2 = {\r\n type: \"parseerror\",\r\n message: this.language.translate(\"Error parsing file: %1\", null, this.url),\r\n target: this\r\n };\r\n this.events.dispatchImmediately(\"parseerror\", event_2);\r\n }\r\n // Wrap up\r\n this.dispatchImmediately(\"parseended\");\r\n if ($type.hasValue(this.data)) {\r\n this.dispatchImmediately(\"done\", {\r\n \"data\": this.data\r\n });\r\n }\r\n // The component is responsible for updating its own data vtriggered via\r\n // events.\r\n // Update last data load\r\n this.lastLoad = new Date();\r\n };\r\n Object.defineProperty(DataSource.prototype, \"url\", {\r\n /**\r\n * @return URL\r\n */\r\n get: function () {\r\n // Get URL\r\n var url = this.disableCache\r\n ? this.timestampUrl(this._url)\r\n : this._url;\r\n // Add incremental params\r\n if (this.incremental && this.component.data.length) {\r\n url = this.addUrlParams(url, this.incrementalParams);\r\n }\r\n return this.adapter.apply(\"url\", url);\r\n },\r\n /**\r\n * URL of the data source.\r\n *\r\n * @param value URL\r\n */\r\n set: function (value) {\r\n this._url = value;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataSource.prototype, \"requestOptions\", {\r\n /**\r\n * @return Options\r\n */\r\n get: function () {\r\n return this.adapter.apply(\"requestOptions\", this._requestOptions);\r\n },\r\n /**\r\n * Custom options for HTTP(S) request.\r\n *\r\n * At this moment the only option supported is: `requestHeaders`, which holds\r\n * an array of objects for custom request headers, e.g.:\r\n *\r\n * ```TypeScript\r\n * chart.dataSource.requestOptions.requestHeaders = [{\r\n * \"key\": \"x-access-token\",\r\n * \"value\": \"123456789\"\r\n * }];\r\n * ``````JavaScript\r\n * chart.dataSource.requestOptions.requestHeaders = [{\r\n * \"key\": \"x-access-token\",\r\n * \"value\": \"123456789\"\r\n * }];\r\n * ```\r\n * ```JSON\r\n * {\r\n * // ...\r\n * \"dataSource\": {\r\n * // ...\r\n * \"requestOptions\": {\r\n * \"requestHeaders\": [{\r\n * \"key\": \"x-access-token\",\r\n * \"value\": \"123456789\"\r\n * }]\r\n * }\r\n * }\r\n * }\r\n * ```\r\n *\r\n * NOTE: setting this options on an-already loaded DataSource will not\r\n * trigger a reload.\r\n *\r\n * @param value Options\r\n */\r\n set: function (value) {\r\n this._requestOptions = value;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataSource.prototype, \"parser\", {\r\n /**\r\n * @return Data parser\r\n */\r\n get: function () {\r\n if (!this._parser) {\r\n this._parser = new JSONParser();\r\n }\r\n return this.adapter.apply(\"parser\", this._parser);\r\n },\r\n /**\r\n * A parser to be used to parse data.\r\n *\r\n * ```TypeScript\r\n * chart.dataSource.url = \"http://www.myweb.com/data.json\";\r\n * chart.dataSource.parser = am4core.JSONParser;\r\n * ```\r\n * ```JavaScript\r\n * chart.dataSource.url = \"http://www.myweb.com/data.json\";\r\n * chart.dataSource.parser = am4core.JSONParser;\r\n * ```\r\n * ```JSON\r\n * {\r\n * // ...\r\n * \"dataSource\": {\r\n * \"url\": \"http://www.myweb.com/data.json\",\r\n * \"parser\": {\r\n * \"type\": \"JSONParser\"\r\n * }\r\n * },\r\n * // ...\r\n * }\r\n * ```\r\n *\r\n * @default JSONParser\r\n * @param value Data parser\r\n */\r\n set: function (value) {\r\n this._parser = value;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataSource.prototype, \"reloadFrequency\", {\r\n /**\r\n * @return Reload frequency (ms)\r\n */\r\n get: function () {\r\n return this.adapter.apply(\"reloadTimeout\", this._reloadFrequency);\r\n },\r\n /**\r\n * Data source reload frequency.\r\n *\r\n * If set, it will reload the same URL every X milliseconds.\r\n *\r\n * @param value Reload frequency (ms)\r\n */\r\n set: function (value) {\r\n var _this = this;\r\n if (this._reloadFrequency != value) {\r\n this._reloadFrequency = value;\r\n // Should we schedule a reload?\r\n if (value) {\r\n if (!$type.hasValue(this._reloadDisposer)) {\r\n this._reloadDisposer = this.events.on(\"ended\", function (ev) {\r\n _this._reloadTimeout = setTimeout(function () {\r\n _this.load();\r\n }, _this.reloadFrequency);\r\n });\r\n }\r\n }\r\n else if ($type.hasValue(this._reloadDisposer)) {\r\n this._reloadDisposer.dispose();\r\n this._reloadDisposer = undefined;\r\n }\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataSource.prototype, \"incremental\", {\r\n /**\r\n * @return Incremental load?\r\n */\r\n get: function () {\r\n return this.adapter.apply(\"incremental\", this._incremental);\r\n },\r\n /**\r\n * Should subsequent reloads be treated as incremental?\r\n *\r\n * Incremental loads will assume that they contain only new data items\r\n * since the last load.\r\n *\r\n * If `incremental = false` the loader will replace all of the target's\r\n * data with each load.\r\n *\r\n * This setting does not have any effect trhe first time data is loaded.\r\n *\r\n * NOTE: this setting works only with element's `data` property. It won't\r\n * work with any other externally-loadable data property.\r\n *\r\n * @default false\r\n * @param Incremental load?\r\n */\r\n set: function (value) {\r\n this._incremental = value;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataSource.prototype, \"incrementalParams\", {\r\n /**\r\n * @return Incremental request parameters\r\n */\r\n get: function () {\r\n return this.adapter.apply(\"incrementalParams\", this._incrementalParams);\r\n },\r\n /**\r\n * An object consisting of key/value pairs to apply to an URL when data\r\n * source is making an incremental request.\r\n *\r\n * @param value Incremental request parameters\r\n */\r\n set: function (value) {\r\n this._incrementalParams = value;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataSource.prototype, \"keepCount\", {\r\n /**\r\n * @return keepCount load?\r\n */\r\n get: function () {\r\n return this.adapter.apply(\"keepCount\", this._keepCount);\r\n },\r\n /**\r\n * This setting is used only when `incremental = true`. If set to `true`,\r\n * it will try to retain the same number of data items across each load.\r\n *\r\n * E.g. if incremental load yeilded 5 new records, then 5 items from the\r\n * beginning of data will be removed so that we end up with the same number\r\n * of data items.\r\n *\r\n * @default false\r\n * @param Keep record count?\r\n */\r\n set: function (value) {\r\n this._keepCount = value;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataSource.prototype, \"updateCurrentData\", {\r\n /**\r\n * @return Update current data?\r\n */\r\n get: function () {\r\n return this.adapter.apply(\"updateCurrentData\", this._updateCurrentData);\r\n },\r\n /**\r\n * If set to `true`, each subsequent load will be treated as an update to\r\n * currently loaded data, meaning that it will try to update values on\r\n * existing data items, not overwrite the whole data.\r\n *\r\n * This will work faster than complete update, and also will animate the\r\n * values to their new positions.\r\n *\r\n * Data sources across loads must contain the same number of data items.\r\n *\r\n * Loader will not truncate the data set if loaded data has fewer data items,\r\n * and if it is longer, the excess data items will be ignored.\r\n *\r\n * NOTE: this setting is ignored if `incremental = true`.\r\n *\r\n * @default false\r\n * @since 2.5.5\r\n * @param Update current data?\r\n */\r\n set: function (value) {\r\n this._updateCurrentData = value;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataSource.prototype, \"language\", {\r\n /**\r\n * @return A [[Language]] instance to be used\r\n */\r\n get: function () {\r\n if (this._language) {\r\n return this._language;\r\n }\r\n else if (this.component) {\r\n this._language = this.component.language;\r\n return this._language;\r\n }\r\n this.language = new Language();\r\n return this.language;\r\n },\r\n /**\r\n * Language instance to use.\r\n *\r\n * Will inherit and use chart's language, if not set.\r\n *\r\n * @param value An instance of Language\r\n */\r\n set: function (value) {\r\n this._language = value;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DataSource.prototype, \"dateFormatter\", {\r\n /**\r\n * @return A [[DateFormatter]] instance to be used\r\n */\r\n get: function () {\r\n if (this._dateFormatter) {\r\n return this._dateFormatter;\r\n }\r\n else if (this.component) {\r\n this._dateFormatter = this.component.dateFormatter;\r\n return this._dateFormatter;\r\n }\r\n this.dateFormatter = new DateFormatter();\r\n return this.dateFormatter;\r\n },\r\n /**\r\n * A [[DateFormatter]] to use when parsing dates from string formats.\r\n *\r\n * Will inherit and use chart's DateFormatter if not ser.\r\n *\r\n * @param value An instance of [[DateFormatter]]\r\n */\r\n set: function (value) {\r\n this._dateFormatter = value;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /**\r\n * Adds current timestamp to the URL.\r\n *\r\n * @param url Source URL\r\n * @return Timestamped URL\r\n */\r\n DataSource.prototype.timestampUrl = function (url) {\r\n var tstamp = new Date().getTime().toString();\r\n var params = {};\r\n params[tstamp] = \"\";\r\n return this.addUrlParams(url, params);\r\n };\r\n /**\r\n * Disposes of this object.\r\n */\r\n DataSource.prototype.dispose = function () {\r\n _super.prototype.dispose.call(this);\r\n if (this._reloadTimeout) {\r\n clearTimeout(this._reloadTimeout);\r\n }\r\n if ($type.hasValue(this._reloadDisposer)) {\r\n this._reloadDisposer.dispose();\r\n this._reloadDisposer = undefined;\r\n }\r\n };\r\n /**\r\n * Initiate the load.\r\n *\r\n * All loading in JavaScript is asynchronous. This function will trigger the\r\n * load and will exit immediately.\r\n *\r\n * Use DataSource's events to watch for loaded data and errors.\r\n */\r\n DataSource.prototype.load = function () {\r\n if (this.url) {\r\n if (this._reloadTimeout) {\r\n clearTimeout(this._reloadTimeout);\r\n }\r\n dataLoader.load(this);\r\n }\r\n };\r\n /**\r\n * Adds parameters to `url` as query strings. Will take care of proper\r\n * separators.\r\n *\r\n * @param url Source URL\r\n * @param params Parameters\r\n * @return New URL\r\n */\r\n DataSource.prototype.addUrlParams = function (url, params) {\r\n var join = url.match(/\\?/) ? \"&\" : \"?\";\r\n var add = [];\r\n $object.each(params, function (key, value) {\r\n if (value != \"\") {\r\n add.push(key + \"=\" + encodeURIComponent(value));\r\n }\r\n else {\r\n add.push(key);\r\n }\r\n });\r\n if (add.length) {\r\n return url + join + add.join(\"&\");\r\n }\r\n return url;\r\n };\r\n /**\r\n * Processes JSON-based config before it is applied to the object.\r\n *\r\n * @ignore Exclude from docs\r\n * @param config Config\r\n */\r\n DataSource.prototype.processConfig = function (config) {\r\n registry.registeredClasses[\"json\"] = JSONParser;\r\n registry.registeredClasses[\"JSONParser\"] = JSONParser;\r\n registry.registeredClasses[\"csv\"] = CSVParser;\r\n registry.registeredClasses[\"CSVParser\"] = CSVParser;\r\n _super.prototype.processConfig.call(this, config);\r\n };\r\n return DataSource;\r\n}(BaseObjectEvents));\r\nexport { DataSource };\r\n//# sourceMappingURL=DataSource.js.map"},"repo_name":{"kind":"string","value":"cdnjs/cdnjs"},"path":{"kind":"string","value":"ajax/libs/amcharts4/4.10.9/.internal/core/data/DataSource.js"},"language":{"kind":"string","value":"JavaScript"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":20447,"string":"20,447"}}},{"rowIdx":115086122,"cells":{"code":{"kind":"string","value":"#ifndef MPEG3CSS_H\n#define MPEG3CSS_H\n\n\n#include \"mpeg3private.inc\"\n\nstruct mpeg3_block \n{\n char huh;\n};\n\nstruct mpeg3_playkey {\n char huh;\n};\n\ntypedef struct\n{\n char huh;\n} mpeg3_css_t;\n\n#endif\n"},"repo_name":{"kind":"string","value":"smarr/OmniVM"},"path":{"kind":"string","value":"vm/src/from_squeak/Cross/plugins/Mpeg3Plugin/libmpeg/mpeg3css.h"},"language":{"kind":"string","value":"C"},"license":{"kind":"string","value":"epl-1.0"},"size":{"kind":"number","value":213,"string":"213"}}},{"rowIdx":115086123,"cells":{"code":{"kind":"string","value":"/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org/MPL/2.0/. */\n\npackage org.mozilla.javascript.drivers;\n\nimport java.io.File;\nimport java.io.FileReader;\nimport java.io.IOException;\n\nimport junit.framework.TestCase;\n\nimport org.mozilla.javascript.Context;\nimport org.mozilla.javascript.ContextFactory;\nimport org.mozilla.javascript.Scriptable;\n\npublic class JsTestsBase extends TestCase {\n private int optimizationLevel;\n\n public void setOptimizationLevel(int level) {\n this.optimizationLevel = level;\n }\n\n public void runJsTest(Context cx, Scriptable shared, String name, String source) {\n // create a lightweight top-level scope\n Scriptable scope = cx.newObject(shared);\n scope.setPrototype(shared);\n System.out.print(name + \": \");\n Object result;\n try {\n result = cx.evaluateString(scope, source, \"jstest input\", 1, null);\n } catch (RuntimeException e) {\n System.out.println(\"FAILED\");\n throw e;\n }\n assertTrue(result != null);\n assertTrue(\"success\".equals(result));\n System.out.println(\"passed\");\n }\n\n public void runJsTests(File[] tests) throws IOException {\n ContextFactory factory = ContextFactory.getGlobal();\n Context cx = factory.enterContext();\n try {\n cx.setOptimizationLevel(this.optimizationLevel);\n Scriptable shared = cx.initStandardObjects();\n for (File f : tests) {\n int length = (int) f.length(); // don't worry about very long\n // files\n char[] buf = new char[length];\n new FileReader(f).read(buf, 0, length);\n String session = new String(buf);\n runJsTest(cx, shared, f.getName(), session);\n }\n } finally {\n Context.exit();\n }\n }\n}\n"},"repo_name":{"kind":"string","value":"NhlalukoG/android_samsung_j7e3g"},"path":{"kind":"string","value":"vendor/samsung/preloads/UniversalMDMClient/rhino1_7R4/testsrc/org/mozilla/javascript/drivers/JsTestsBase.java"},"language":{"kind":"string","value":"Java"},"license":{"kind":"string","value":"gpl-2.0"},"size":{"kind":"number","value":2042,"string":"2,042"}}},{"rowIdx":115086124,"cells":{"code":{"kind":"string","value":"/*\n * driver for FIMC-IS SPI\n *\n * Copyright (c) 2011, Samsung Electronics. All rights reserved\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License version 2 as\n * published by the Free Software Foundation.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License\n * for more details.\n */\n\n#include \n#ifdef CONFIG_OF\n#include \n#endif\n\n#include \"fimc-is-i2c.h\"\n#include \"fimc-is-core.h\"\n\n#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)\nint fimc_is_i2c_s_pin(struct i2c_client *client, int state)\n{\n\tint ret = 0;\n\tchar pin_ctrl[10] = {0, };\n\tstruct device *i2c_dev = NULL;\n\tstruct pinctrl *pinctrl_i2c = NULL;\n\n\tif (client == NULL) {\n\t\terr(\"client is NULL.\");\n\t\treturn ret;\n\t}\n\n\tswitch (state) {\n\tcase I2C_PIN_STATE_ON:\n\t\tsprintf(pin_ctrl, \"on_i2c\");\n\t\tbreak;\n\tcase I2C_PIN_STATE_OFF:\n\t\tsprintf(pin_ctrl, \"off_i2c\");\n\t\tbreak;\n\tcase I2C_PIN_STATE_HOST:\n\t\tsprintf(pin_ctrl, \"i2c_host\");\n\t\tbreak;\n\tcase I2C_PIN_STATE_FW:\n\t\tsprintf(pin_ctrl, \"i2c_fw\");\n\t\tbreak;\n\tcase I2C_PIN_STATE_DEFAULT:\n\tdefault:\n\t\tsprintf(pin_ctrl, \"default\");\n\t\tbreak;\n\t}\n\n\ti2c_dev = client->dev.parent->parent;\n\tpinctrl_i2c = devm_pinctrl_get_select(i2c_dev, pin_ctrl);\n\tif (IS_ERR_OR_NULL(pinctrl_i2c)) {\n\t\tprintk(KERN_ERR \"%s: Failed to configure i2c pin\\n\", __func__);\n\t} else {\n\t\tdevm_pinctrl_put(pinctrl_i2c);\n\t}\n\n\treturn ret;\n}\n\nstatic int fimc_is_i2c0_probe(struct i2c_client *client,\n\t\t\t\t const struct i2c_device_id *id)\n{\n\tstruct fimc_is_core *core;\n\n\tif (fimc_is_dev == NULL) {\n\t\twarn(\"fimc_is_dev is not yet probed(i2c0)\");\n\t\treturn -EPROBE_DEFER;\n\t}\n\n\tcore = (struct fimc_is_core *)dev_get_drvdata(fimc_is_dev);\n\tif (!core)\n\t\tpanic(\"core is NULL\");\n\n\tcore->client0 = client;\n\n\tpr_info(\"%s %s: fimc_is_i2c0 driver probed!\\n\",\n\t\tdev_driver_string(&client->dev), dev_name(&client->dev));\n\n\treturn 0;\n}\n\nstatic int fimc_is_i2c0_remove(struct i2c_client *client)\n{\n\treturn 0;\n}\n\n#ifdef CONFIG_OF\nstatic struct of_device_id fimc_is_i2c0_dt_ids[] = {\n\t{ .compatible = \"samsung,fimc_is_i2c0\",},\n\t{},\n};\nMODULE_DEVICE_TABLE(of, fimc_is_i2c0_dt_ids);\n#endif\n\nstatic const struct i2c_device_id fimc_is_i2c0_id[] = {\n\t{\"fimc_is_i2c0\", 0},\n\t{}\n};\nMODULE_DEVICE_TABLE(i2c, fimc_is_i2c0_id);\n\nstatic struct i2c_driver fimc_is_i2c0_driver = {\n\t.driver = {\n\t\t.name = \"fimc_is_i2c0\",\n\t\t.owner = THIS_MODULE,\n#ifdef CONFIG_OF\n\t\t.of_match_table = fimc_is_i2c0_dt_ids,\n#endif\n\t},\n\t.probe = fimc_is_i2c0_probe,\n\t.remove = fimc_is_i2c0_remove,\n\t.id_table = fimc_is_i2c0_id,\n};\nmodule_i2c_driver(fimc_is_i2c0_driver);\n#endif /* CONFIG_I2C || CONFIG_I2C_MODULE */\n\nMODULE_DESCRIPTION(\"FIMC-IS I2C driver\");\nMODULE_LICENSE(\"GPL\");\n"},"repo_name":{"kind":"string","value":"Fevax/exynos8890_stock"},"path":{"kind":"string","value":"drivers/media/platform/exynos/fimc-is2/fimc-is-i2c.c"},"language":{"kind":"string","value":"C"},"license":{"kind":"string","value":"gpl-2.0"},"size":{"kind":"number","value":2870,"string":"2,870"}}},{"rowIdx":115086125,"cells":{"code":{"kind":"string","value":"/*\n * This file is derived from zlib.h and zconf.h from the zlib-0.95\n * distribution by Jean-loup Gailly and Mark Adler, with some additions\n * by Paul Mackerras to aid in implementing Deflate compression and\n * decompression for PPP packets.\n */\n\n/*\n * ==FILEVERSION 960122==\n *\n * This marker is used by the Linux installation script to determine\n * whether an up-to-date version of this file is already installed.\n */\n\n/* zlib.h -- interface of the 'zlib' general purpose compression library\n version 0.95, Aug 16th, 1995.\n\n Copyright (C) 1995 Jean-loup Gailly and Mark Adler\n\n This software is provided 'as-is', without any express or implied\n warranty. In no event will the authors be held liable for any damages\n arising from the use of this software.\n\n Permission is granted to anyone to use this software for any purpose,\n including commercial applications, and to alter it and redistribute it\n freely, subject to the following restrictions:\n\n 1. The origin of this software must not be misrepresented; you must not\n claim that you wrote the original software. If you use this software\n in a product, an acknowledgment in the product documentation would be\n appreciated but is not required.\n 2. Altered source versions must be plainly marked as such, and must not be\n misrepresented as being the original software.\n 3. This notice may not be removed or altered from any source distribution.\n\n Jean-loup Gailly Mark Adler\n gzip@prep.ai.mit.edu madler@alumni.caltech.edu\n */\n\n#ifndef _ZLIB_H\n#define _ZLIB_H\n\n#define local\n#ifdef DEBUG_ZLIB\n#include \n#define fprintf printk\n#endif\n\n/* #include \"zconf.h\" */\t/* included directly here */\n\n/* zconf.h -- configuration of the zlib compression library\n * Copyright (C) 1995 Jean-loup Gailly.\n * For conditions of distribution and use, see copyright notice in zlib.h\n */\n\n/* From: zconf.h,v 1.12 1995/05/03 17:27:12 jloup Exp */\n\n/*\n The library does not install any signal handler. It is recommended to\n add at least a handler for SIGSEGV when decompressing; the library checks\n the consistency of the input data whenever possible but may go nuts\n for some forms of corrupted input.\n */\n\n/*\n * Compile with -DMAXSEG_64K if the alloc function cannot allocate more\n * than 64k bytes at a time (needed on systems with 16-bit int).\n * Compile with -DUNALIGNED_OK if it is OK to access shorts or ints\n * at addresses which are not a multiple of their size.\n * Under DOS, -DFAR=far or -DFAR=__far may be needed.\n */\n\n#ifndef STDC\n# if defined(MSDOS) || defined(__STDC__) || defined(__cplusplus)\n# define STDC\n# endif\n#endif\n\n#ifdef\t__MWERKS__ /* Metrowerks CodeWarrior declares fileno() in unix.h */\n# include \n#endif\n\n/* Maximum value for memLevel in deflateInit2 */\n#ifndef MAX_MEM_LEVEL\n# ifdef MAXSEG_64K\n# define MAX_MEM_LEVEL 8\n# else\n# define MAX_MEM_LEVEL 9\n# endif\n#endif\n\n#ifndef FAR\n# define FAR\n#endif\n\n/* Maximum value for windowBits in deflateInit2 and inflateInit2 */\n#ifndef MAX_WBITS\n# define MAX_WBITS 15 /* 32K LZ77 window */\n#endif\n\n/* The memory requirements for deflate are (in bytes):\n 1 << (windowBits+2) + 1 << (memLevel+9)\n that is: 128K for windowBits=15 + 128K for memLevel = 8 (default values)\n plus a few kilobytes for small objects. For example, if you want to reduce\n the default memory requirements from 256K to 128K, compile with\n make CFLAGS=\"-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7\"\n Of course this will generally degrade compression (there's no free lunch).\n\n The memory requirements for inflate are (in bytes) 1 << windowBits\n that is, 32K for windowBits=15 (default value) plus a few kilobytes\n for small objects.\n*/\n\n /* Type declarations */\n\n#ifndef OF /* function prototypes */\n# ifdef STDC\n# define OF(args) args\n# else\n# define OF(args) ()\n# endif\n#endif\n\ntypedef unsigned char Byte; /* 8 bits */\ntypedef unsigned int uInt; /* 16 bits or more */\ntypedef unsigned long uLong; /* 32 bits or more */\n\ntypedef Byte FAR Bytef;\ntypedef char FAR charf;\ntypedef int FAR intf;\ntypedef uInt FAR uIntf;\ntypedef uLong FAR uLongf;\n\n#ifdef STDC\n typedef void FAR *voidpf;\n typedef void *voidp;\n#else\n typedef Byte FAR *voidpf;\n typedef Byte *voidp;\n#endif\n\n/* end of original zconf.h */\n\n#define ZLIB_VERSION \"0.95P\"\n\n/*\n The 'zlib' compression library provides in-memory compression and\n decompression functions, including integrity checks of the uncompressed\n data. This version of the library supports only one compression method\n (deflation) but other algorithms may be added later and will have the same\n stream interface.\n\n For compression the application must provide the output buffer and\n may optionally provide the input buffer for optimization. For decompression,\n the application must provide the input buffer and may optionally provide\n the output buffer for optimization.\n\n Compression can be done in a single step if the buffers are large\n enough (for example if an input file is mmap'ed), or can be done by\n repeated calls of the compression function. In the latter case, the\n application must provide more input and/or consume the output\n (providing more output space) before each call.\n*/\n\ntypedef voidpf (*alloc_func) OF((voidpf opaque, uInt items, uInt size));\ntypedef void (*free_func) OF((voidpf opaque, voidpf address, uInt nbytes));\n\nstruct internal_state;\n\ntypedef struct z_stream_s {\n Bytef *next_in; /* next input byte */\n uInt avail_in; /* number of bytes available at next_in */\n uLong total_in; /* total nb of input bytes read so far */\n\n Bytef *next_out; /* next output byte should be put there */\n uInt avail_out; /* remaining free space at next_out */\n uLong total_out; /* total nb of bytes output so far */\n\n char *msg; /* last error message, NULL if no error */\n struct internal_state FAR *state; /* not visible by applications */\n\n alloc_func zalloc; /* used to allocate the internal state */\n free_func zfree; /* used to free the internal state */\n voidp opaque; /* private data object passed to zalloc and zfree */\n\n Byte data_type; /* best guess about the data type: ascii or binary */\n\n} z_stream;\n\n/*\n The application must update next_in and avail_in when avail_in has\n dropped to zero. It must update next_out and avail_out when avail_out\n has dropped to zero. The application must initialize zalloc, zfree and\n opaque before calling the init function. All other fields are set by the\n compression library and must not be updated by the application.\n\n The opaque value provided by the application will be passed as the first\n parameter for calls of zalloc and zfree. This can be useful for custom\n memory management. The compression library attaches no meaning to the\n opaque value.\n\n zalloc must return Z_NULL if there is not enough memory for the object.\n On 16-bit systems, the functions zalloc and zfree must be able to allocate\n exactly 65536 bytes, but will not be required to allocate more than this\n if the symbol MAXSEG_64K is defined (see zconf.h). WARNING: On MSDOS,\n pointers returned by zalloc for objects of exactly 65536 bytes *must*\n have their offset normalized to zero. The default allocation function\n provided by this library ensures this (see zutil.c). To reduce memory\n requirements and avoid any allocation of 64K objects, at the expense of\n compression ratio, compile the library with -DMAX_WBITS=14 (see zconf.h).\n\n The fields total_in and total_out can be used for statistics or\n progress reports. After compression, total_in holds the total size of\n the uncompressed data and may be saved for use in the decompressor\n (particularly if the decompressor wants to decompress everything in\n a single step).\n*/\n\n /* constants */\n\n#define Z_NO_FLUSH 0\n#define Z_PARTIAL_FLUSH 1\n#define Z_FULL_FLUSH 2\n#define Z_SYNC_FLUSH 3 /* experimental: partial_flush + byte align */\n#define Z_FINISH 4\n#define Z_PACKET_FLUSH\t5\n/* See deflate() below for the usage of these constants */\n\n#define Z_OK 0\n#define Z_STREAM_END 1\n#define Z_ERRNO (-1)\n#define Z_STREAM_ERROR (-2)\n#define Z_DATA_ERROR (-3)\n#define Z_MEM_ERROR (-4)\n#define Z_BUF_ERROR (-5)\n/* error codes for the compression/decompression functions */\n\n#define Z_BEST_SPEED 1\n#define Z_BEST_COMPRESSION 9\n#define Z_DEFAULT_COMPRESSION (-1)\n/* compression levels */\n\n#define Z_FILTERED 1\n#define Z_HUFFMAN_ONLY 2\n#define Z_DEFAULT_STRATEGY 0\n\n#define Z_BINARY 0\n#define Z_ASCII 1\n#define Z_UNKNOWN 2\n/* Used to set the data_type field */\n\n#define Z_NULL 0 /* for initializing zalloc, zfree, opaque */\n\nextern char *zlib_version;\n/* The application can compare zlib_version and ZLIB_VERSION for consistency.\n If the first character differs, the library code actually used is\n not compatible with the zlib.h header file used by the application.\n */\n\n /* basic functions */\n\nextern int inflateInit OF((z_stream *strm));\n/*\n Initializes the internal stream state for decompression. The fields\n zalloc and zfree must be initialized before by the caller. If zalloc and\n zfree are set to Z_NULL, inflateInit updates them to use default allocation\n functions.\n\n inflateInit returns Z_OK if success, Z_MEM_ERROR if there was not\n enough memory. msg is set to null if there is no error message.\n inflateInit does not perform any decompression: this will be done by\n inflate().\n*/\n\nextern int inflate OF((z_stream *strm, int flush));\n/*\n Performs one or both of the following actions:\n\n - Decompress more input starting at next_in and update next_in and avail_in\n accordingly. If not all input can be processed (because there is not\n enough room in the output buffer), next_in is updated and processing\n will resume at this point for the next call of inflate().\n\n - Provide more output starting at next_out and update next_out and avail_out\n accordingly. inflate() always provides as much output as possible\n (until there is no more input data or no more space in the output buffer).\n\n Before the call of inflate(), the application should ensure that at least\n one of the actions is possible, by providing more input and/or consuming\n more output, and updating the next_* and avail_* values accordingly.\n The application can consume the uncompressed output when it wants, for\n example when the output buffer is full (avail_out == 0), or after each\n call of inflate().\n\n If the parameter flush is set to Z_PARTIAL_FLUSH or Z_PACKET_FLUSH,\n inflate flushes as much output as possible to the output buffer. The\n flushing behavior of inflate is not specified for values of the flush\n parameter other than Z_PARTIAL_FLUSH, Z_PACKET_FLUSH or Z_FINISH, but the\n current implementation actually flushes as much output as possible\n anyway. For Z_PACKET_FLUSH, inflate checks that once all the input data\n has been consumed, it is expecting to see the length field of a stored\n block; if not, it returns Z_DATA_ERROR.\n\n inflate() should normally be called until it returns Z_STREAM_END or an\n error. However if all decompression is to be performed in a single step\n (a single call of inflate), the parameter flush should be set to\n Z_FINISH. In this case all pending input is processed and all pending\n output is flushed; avail_out must be large enough to hold all the\n uncompressed data. (The size of the uncompressed data may have been saved\n by the compressor for this purpose.) The next operation on this stream must\n be inflateEnd to deallocate the decompression state. The use of Z_FINISH\n is never required, but can be used to inform inflate that a faster routine\n may be used for the single inflate() call.\n\n inflate() returns Z_OK if some progress has been made (more input\n processed or more output produced), Z_STREAM_END if the end of the\n compressed data has been reached and all uncompressed output has been\n produced, Z_DATA_ERROR if the input data was corrupted, Z_STREAM_ERROR if\n the stream structure was inconsistent (for example if next_in or next_out\n was NULL), Z_MEM_ERROR if there was not enough memory, Z_BUF_ERROR if no\n progress is possible or if there was not enough room in the output buffer\n when Z_FINISH is used. In the Z_DATA_ERROR case, the application may then\n call inflateSync to look for a good compression block. */\n\nextern int inflateEnd OF((z_stream *strm));\n/*\n All dynamically allocated data structures for this stream are freed.\n This function discards any unprocessed input and does not flush any\n pending output.\n\n inflateEnd returns Z_OK if success, Z_STREAM_ERROR if the stream state\n was inconsistent. In the error case, msg may be set but then points to a\n static string (which must not be deallocated).\n*/\n\n /* advanced functions */\n\nextern int inflateInit2 OF((z_stream *strm,\n int windowBits));\n/*\n This is another version of inflateInit with more compression options. The\n fields next_out, zalloc and zfree must be initialized before by the caller.\n\n The windowBits parameter is the base two logarithm of the maximum window\n size (the size of the history buffer). It should be in the range 8..15 for\n this version of the library (the value 16 will be allowed soon). The\n default value is 15 if inflateInit is used instead. If a compressed stream\n with a larger window size is given as input, inflate() will return with\n the error code Z_DATA_ERROR instead of trying to allocate a larger window.\n\n If next_out is not null, the library will use this buffer for the history\n buffer; the buffer must either be large enough to hold the entire output\n data, or have at least 1<\nstruct S {\n int f{[this](){return 42;}()};\n};\n\nint main(){\n return S{}.f;\n}\n"},"repo_name":{"kind":"string","value":"Gurgel100/gcc"},"path":{"kind":"string","value":"gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice24.C"},"language":{"kind":"string","value":"C++"},"license":{"kind":"string","value":"gpl-2.0"},"size":{"kind":"number","value":187,"string":"187"}}},{"rowIdx":115086127,"cells":{"code":{"kind":"string","value":"// SPDX-License-Identifier: GPL-2.0\n/*\n * fs/f2fs/acl.c\n *\n * Copyright (c) 2012 Samsung Electronics Co., Ltd.\n * http://www.samsung.com/\n *\n * Portions of this code from linux/fs/ext2/acl.c\n *\n * Copyright (C) 2001-2003 Andreas Gruenbacher, \n */\n#include \n#include \"f2fs.h\"\n#include \"xattr.h\"\n#include \"acl.h\"\n\nstatic inline size_t f2fs_acl_size(int count)\n{\n\tif (count <= 4) {\n\t\treturn sizeof(struct f2fs_acl_header) +\n\t\t\tcount * sizeof(struct f2fs_acl_entry_short);\n\t} else {\n\t\treturn sizeof(struct f2fs_acl_header) +\n\t\t\t4 * sizeof(struct f2fs_acl_entry_short) +\n\t\t\t(count - 4) * sizeof(struct f2fs_acl_entry);\n\t}\n}\n\nstatic inline int f2fs_acl_count(size_t size)\n{\n\tssize_t s;\n\tsize -= sizeof(struct f2fs_acl_header);\n\ts = size - 4 * sizeof(struct f2fs_acl_entry_short);\n\tif (s < 0) {\n\t\tif (size % sizeof(struct f2fs_acl_entry_short))\n\t\t\treturn -1;\n\t\treturn size / sizeof(struct f2fs_acl_entry_short);\n\t} else {\n\t\tif (s % sizeof(struct f2fs_acl_entry))\n\t\t\treturn -1;\n\t\treturn s / sizeof(struct f2fs_acl_entry) + 4;\n\t}\n}\n\nstatic struct posix_acl *f2fs_acl_from_disk(const char *value, size_t size)\n{\n\tint i, count;\n\tstruct posix_acl *acl;\n\tstruct f2fs_acl_header *hdr = (struct f2fs_acl_header *)value;\n\tstruct f2fs_acl_entry *entry = (struct f2fs_acl_entry *)(hdr + 1);\n\tconst char *end = value + size;\n\n\tif (size < sizeof(struct f2fs_acl_header))\n\t\treturn ERR_PTR(-EINVAL);\n\n\tif (hdr->a_version != cpu_to_le32(F2FS_ACL_VERSION))\n\t\treturn ERR_PTR(-EINVAL);\n\n\tcount = f2fs_acl_count(size);\n\tif (count < 0)\n\t\treturn ERR_PTR(-EINVAL);\n\tif (count == 0)\n\t\treturn NULL;\n\n\tacl = posix_acl_alloc(count, GFP_NOFS);\n\tif (!acl)\n\t\treturn ERR_PTR(-ENOMEM);\n\n\tfor (i = 0; i < count; i++) {\n\n\t\tif ((char *)entry > end)\n\t\t\tgoto fail;\n\n\t\tacl->a_entries[i].e_tag = le16_to_cpu(entry->e_tag);\n\t\tacl->a_entries[i].e_perm = le16_to_cpu(entry->e_perm);\n\n\t\tswitch (acl->a_entries[i].e_tag) {\n\t\tcase ACL_USER_OBJ:\n\t\tcase ACL_GROUP_OBJ:\n\t\tcase ACL_MASK:\n\t\tcase ACL_OTHER:\n\t\t\tentry = (struct f2fs_acl_entry *)((char *)entry +\n\t\t\t\t\tsizeof(struct f2fs_acl_entry_short));\n\t\t\tbreak;\n\n\t\tcase ACL_USER:\n\t\t\tacl->a_entries[i].e_uid =\n\t\t\t\tmake_kuid(&init_user_ns,\n\t\t\t\t\t\tle32_to_cpu(entry->e_id));\n\t\t\tentry = (struct f2fs_acl_entry *)((char *)entry +\n\t\t\t\t\tsizeof(struct f2fs_acl_entry));\n\t\t\tbreak;\n\t\tcase ACL_GROUP:\n\t\t\tacl->a_entries[i].e_gid =\n\t\t\t\tmake_kgid(&init_user_ns,\n\t\t\t\t\t\tle32_to_cpu(entry->e_id));\n\t\t\tentry = (struct f2fs_acl_entry *)((char *)entry +\n\t\t\t\t\tsizeof(struct f2fs_acl_entry));\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tgoto fail;\n\t\t}\n\t}\n\tif ((char *)entry != end)\n\t\tgoto fail;\n\treturn acl;\nfail:\n\tposix_acl_release(acl);\n\treturn ERR_PTR(-EINVAL);\n}\n\nstatic void *f2fs_acl_to_disk(struct f2fs_sb_info *sbi,\n\t\t\t\tconst struct posix_acl *acl, size_t *size)\n{\n\tstruct f2fs_acl_header *f2fs_acl;\n\tstruct f2fs_acl_entry *entry;\n\tint i;\n\n\tf2fs_acl = f2fs_kmalloc(sbi, sizeof(struct f2fs_acl_header) +\n\t\t\tacl->a_count * sizeof(struct f2fs_acl_entry),\n\t\t\tGFP_NOFS);\n\tif (!f2fs_acl)\n\t\treturn ERR_PTR(-ENOMEM);\n\n\tf2fs_acl->a_version = cpu_to_le32(F2FS_ACL_VERSION);\n\tentry = (struct f2fs_acl_entry *)(f2fs_acl + 1);\n\n\tfor (i = 0; i < acl->a_count; i++) {\n\n\t\tentry->e_tag = cpu_to_le16(acl->a_entries[i].e_tag);\n\t\tentry->e_perm = cpu_to_le16(acl->a_entries[i].e_perm);\n\n\t\tswitch (acl->a_entries[i].e_tag) {\n\t\tcase ACL_USER:\n\t\t\tentry->e_id = cpu_to_le32(\n\t\t\t\t\tfrom_kuid(&init_user_ns,\n\t\t\t\t\t\tacl->a_entries[i].e_uid));\n\t\t\tentry = (struct f2fs_acl_entry *)((char *)entry +\n\t\t\t\t\tsizeof(struct f2fs_acl_entry));\n\t\t\tbreak;\n\t\tcase ACL_GROUP:\n\t\t\tentry->e_id = cpu_to_le32(\n\t\t\t\t\tfrom_kgid(&init_user_ns,\n\t\t\t\t\t\tacl->a_entries[i].e_gid));\n\t\t\tentry = (struct f2fs_acl_entry *)((char *)entry +\n\t\t\t\t\tsizeof(struct f2fs_acl_entry));\n\t\t\tbreak;\n\t\tcase ACL_USER_OBJ:\n\t\tcase ACL_GROUP_OBJ:\n\t\tcase ACL_MASK:\n\t\tcase ACL_OTHER:\n\t\t\tentry = (struct f2fs_acl_entry *)((char *)entry +\n\t\t\t\t\tsizeof(struct f2fs_acl_entry_short));\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tgoto fail;\n\t\t}\n\t}\n\t*size = f2fs_acl_size(acl->a_count);\n\treturn (void *)f2fs_acl;\n\nfail:\n\tkfree(f2fs_acl);\n\treturn ERR_PTR(-EINVAL);\n}\n\nstatic struct posix_acl *__f2fs_get_acl(struct inode *inode, int type,\n\t\t\t\t\t\tstruct page *dpage)\n{\n\tint name_index = F2FS_XATTR_INDEX_POSIX_ACL_DEFAULT;\n\tvoid *value = NULL;\n\tstruct posix_acl *acl;\n\tint retval;\n\n\tif (type == ACL_TYPE_ACCESS)\n\t\tname_index = F2FS_XATTR_INDEX_POSIX_ACL_ACCESS;\n\n\tretval = f2fs_getxattr(inode, name_index, \"\", NULL, 0, dpage);\n\tif (retval > 0) {\n\t\tvalue = f2fs_kmalloc(F2FS_I_SB(inode), retval, GFP_F2FS_ZERO);\n\t\tif (!value)\n\t\t\treturn ERR_PTR(-ENOMEM);\n\t\tretval = f2fs_getxattr(inode, name_index, \"\", value,\n\t\t\t\t\t\t\tretval, dpage);\n\t}\n\n\tif (retval > 0)\n\t\tacl = f2fs_acl_from_disk(value, retval);\n\telse if (retval == -ENODATA)\n\t\tacl = NULL;\n\telse\n\t\tacl = ERR_PTR(retval);\n\tkfree(value);\n\n\treturn acl;\n}\n\nstruct posix_acl *f2fs_get_acl(struct inode *inode, int type)\n{\n\treturn __f2fs_get_acl(inode, type, NULL);\n}\n\nstatic int __f2fs_set_acl(struct inode *inode, int type,\n\t\t\tstruct posix_acl *acl, struct page *ipage)\n{\n\tint name_index;\n\tvoid *value = NULL;\n\tsize_t size = 0;\n\tint error;\n\tumode_t mode = inode->i_mode;\n\n\tswitch (type) {\n\tcase ACL_TYPE_ACCESS:\n\t\tname_index = F2FS_XATTR_INDEX_POSIX_ACL_ACCESS;\n\t\tif (acl && !ipage) {\n\t\t\terror = posix_acl_update_mode(inode, &mode, &acl);\n\t\t\tif (error)\n\t\t\t\treturn error;\n\t\t\tset_acl_inode(inode, mode);\n\t\t}\n\t\tbreak;\n\n\tcase ACL_TYPE_DEFAULT:\n\t\tname_index = F2FS_XATTR_INDEX_POSIX_ACL_DEFAULT;\n\t\tif (!S_ISDIR(inode->i_mode))\n\t\t\treturn acl ? -EACCES : 0;\n\t\tbreak;\n\n\tdefault:\n\t\treturn -EINVAL;\n\t}\n\n\tif (acl) {\n\t\tvalue = f2fs_acl_to_disk(F2FS_I_SB(inode), acl, &size);\n\t\tif (IS_ERR(value)) {\n\t\t\tclear_inode_flag(inode, FI_ACL_MODE);\n\t\t\treturn PTR_ERR(value);\n\t\t}\n\t}\n\n\terror = f2fs_setxattr(inode, name_index, \"\", value, size, ipage, 0);\n\n\tkfree(value);\n\tif (!error)\n\t\tset_cached_acl(inode, type, acl);\n\n\tclear_inode_flag(inode, FI_ACL_MODE);\n\treturn error;\n}\n\nint f2fs_set_acl(struct inode *inode, struct posix_acl *acl, int type)\n{\n\tif (unlikely(f2fs_cp_error(F2FS_I_SB(inode))))\n\t\treturn -EIO;\n\n\treturn __f2fs_set_acl(inode, type, acl, NULL);\n}\n\n/*\n * Most part of f2fs_acl_clone, f2fs_acl_create_masq, f2fs_acl_create\n * are copied from posix_acl.c\n */\nstatic struct posix_acl *f2fs_acl_clone(const struct posix_acl *acl,\n\t\t\t\t\t\t\tgfp_t flags)\n{\n\tstruct posix_acl *clone = NULL;\n\n\tif (acl) {\n\t\tint size = sizeof(struct posix_acl) + acl->a_count *\n\t\t\t\tsizeof(struct posix_acl_entry);\n\t\tclone = kmemdup(acl, size, flags);\n\t\tif (clone)\n\t\t\trefcount_set(&clone->a_refcount, 1);\n\t}\n\treturn clone;\n}\n\nstatic int f2fs_acl_create_masq(struct posix_acl *acl, umode_t *mode_p)\n{\n\tstruct posix_acl_entry *pa, *pe;\n\tstruct posix_acl_entry *group_obj = NULL, *mask_obj = NULL;\n\tumode_t mode = *mode_p;\n\tint not_equiv = 0;\n\n\t/* assert(atomic_read(acl->a_refcount) == 1); */\n\n\tFOREACH_ACL_ENTRY(pa, acl, pe) {\n\t\tswitch(pa->e_tag) {\n\t\tcase ACL_USER_OBJ:\n\t\t\tpa->e_perm &= (mode >> 6) | ~S_IRWXO;\n\t\t\tmode &= (pa->e_perm << 6) | ~S_IRWXU;\n\t\t\tbreak;\n\n\t\tcase ACL_USER:\n\t\tcase ACL_GROUP:\n\t\t\tnot_equiv = 1;\n\t\t\tbreak;\n\n\t\tcase ACL_GROUP_OBJ:\n\t\t\tgroup_obj = pa;\n\t\t\tbreak;\n\n\t\tcase ACL_OTHER:\n\t\t\tpa->e_perm &= mode | ~S_IRWXO;\n\t\t\tmode &= pa->e_perm | ~S_IRWXO;\n\t\t\tbreak;\n\n\t\tcase ACL_MASK:\n\t\t\tmask_obj = pa;\n\t\t\tnot_equiv = 1;\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\treturn -EIO;\n\t\t}\n\t}\n\n\tif (mask_obj) {\n\t\tmask_obj->e_perm &= (mode >> 3) | ~S_IRWXO;\n\t\tmode &= (mask_obj->e_perm << 3) | ~S_IRWXG;\n\t} else {\n\t\tif (!group_obj)\n\t\t\treturn -EIO;\n\t\tgroup_obj->e_perm &= (mode >> 3) | ~S_IRWXO;\n\t\tmode &= (group_obj->e_perm << 3) | ~S_IRWXG;\n\t}\n\n\t*mode_p = (*mode_p & ~S_IRWXUGO) | mode;\n return not_equiv;\n}\n\nstatic int f2fs_acl_create(struct inode *dir, umode_t *mode,\n\t\tstruct posix_acl **default_acl, struct posix_acl **acl,\n\t\tstruct page *dpage)\n{\n\tstruct posix_acl *p;\n\tstruct posix_acl *clone;\n\tint ret;\n\n\t*acl = NULL;\n\t*default_acl = NULL;\n\n\tif (S_ISLNK(*mode) || !IS_POSIXACL(dir))\n\t\treturn 0;\n\n\tp = __f2fs_get_acl(dir, ACL_TYPE_DEFAULT, dpage);\n\tif (!p || p == ERR_PTR(-EOPNOTSUPP)) {\n\t\t*mode &= ~current_umask();\n\t\treturn 0;\n\t}\n\tif (IS_ERR(p))\n\t\treturn PTR_ERR(p);\n\n\tclone = f2fs_acl_clone(p, GFP_NOFS);\n\tif (!clone)\n\t\tgoto no_mem;\n\n\tret = f2fs_acl_create_masq(clone, mode);\n\tif (ret < 0)\n\t\tgoto no_mem_clone;\n\n\tif (ret == 0)\n\t\tposix_acl_release(clone);\n\telse\n\t\t*acl = clone;\n\n\tif (!S_ISDIR(*mode))\n\t\tposix_acl_release(p);\n\telse\n\t\t*default_acl = p;\n\n\treturn 0;\n\nno_mem_clone:\n\tposix_acl_release(clone);\nno_mem:\n\tposix_acl_release(p);\n\treturn -ENOMEM;\n}\n\nint f2fs_init_acl(struct inode *inode, struct inode *dir, struct page *ipage,\n\t\t\t\t\t\t\tstruct page *dpage)\n{\n\tstruct posix_acl *default_acl = NULL, *acl = NULL;\n\tint error = 0;\n\n\terror = f2fs_acl_create(dir, &inode->i_mode, &default_acl, &acl, dpage);\n\tif (error)\n\t\treturn error;\n\n\tf2fs_mark_inode_dirty_sync(inode, true);\n\n\tif (default_acl) {\n\t\terror = __f2fs_set_acl(inode, ACL_TYPE_DEFAULT, default_acl,\n\t\t\t\t ipage);\n\t\tposix_acl_release(default_acl);\n\t} else {\n\t\tinode->i_default_acl = NULL;\n\t}\n\tif (acl) {\n\t\tif (!error)\n\t\t\terror = __f2fs_set_acl(inode, ACL_TYPE_ACCESS, acl,\n\t\t\t\t\t ipage);\n\t\tposix_acl_release(acl);\n\t} else {\n\t\tinode->i_acl = NULL;\n\t}\n\n\treturn error;\n}\n"},"repo_name":{"kind":"string","value":"codeaurora-unoffical/linux-msm"},"path":{"kind":"string","value":"fs/f2fs/acl.c"},"language":{"kind":"string","value":"C"},"license":{"kind":"string","value":"gpl-2.0"},"size":{"kind":"number","value":9137,"string":"9,137"}}},{"rowIdx":115086128,"cells":{"code":{"kind":"string","value":" \n array (\n 'NationalNumberPattern' => '\n [126-9]\\\\d{4,11}|\n 3(?:\n [0-79]\\\\d{3,10}|\n 8[2-9]\\\\d{2,9}\n )\n ',\n 'PossibleNumberPattern' => '\\\\d{5,12}',\n ),\n 'fixedLine' => \n array (\n 'NationalNumberPattern' => '\n (?:\n 1(?:\n [02-9][2-9]|\n 1[1-9]\n )\\\\d|\n 2(?:\n [0-24-7][2-9]\\\\d|\n [389](?:\n 0[2-9]|\n [2-9]\\\\d\n )\n )|\n 3(?:\n [0-8][2-9]\\\\d|\n 9(?:\n [2-9]\\\\d|\n 0[2-9]\n )\n )\n )\\\\d{3,8}\n ',\n 'PossibleNumberPattern' => '\\\\d{5,12}',\n 'ExampleNumber' => '10234567',\n ),\n 'mobile' => \n array (\n 'NationalNumberPattern' => '\n 6(?:\n [0-689]|\n 7\\\\d\n )\\\\d{6,7}\n ',\n 'PossibleNumberPattern' => '\\\\d{8,10}',\n 'ExampleNumber' => '601234567',\n ),\n 'tollFree' => \n array (\n 'NationalNumberPattern' => '800\\\\d{3,9}',\n 'PossibleNumberPattern' => '\\\\d{6,12}',\n 'ExampleNumber' => '80012345',\n ),\n 'premiumRate' => \n array (\n 'NationalNumberPattern' => '\n (?:\n 90[0169]|\n 78\\\\d\n )\\\\d{3,7}\n ',\n 'PossibleNumberPattern' => '\\\\d{6,12}',\n 'ExampleNumber' => '90012345',\n ),\n 'sharedCost' => \n array (\n 'NationalNumberPattern' => 'NA',\n 'PossibleNumberPattern' => 'NA',\n ),\n 'personalNumber' => \n array (\n 'NationalNumberPattern' => 'NA',\n 'PossibleNumberPattern' => 'NA',\n ),\n 'voip' => \n array (\n 'NationalNumberPattern' => 'NA',\n 'PossibleNumberPattern' => 'NA',\n ),\n 'pager' => \n array (\n 'NationalNumberPattern' => 'NA',\n 'PossibleNumberPattern' => 'NA',\n ),\n 'uan' => \n array (\n 'NationalNumberPattern' => '7[06]\\\\d{4,10}',\n 'PossibleNumberPattern' => '\\\\d{6,12}',\n 'ExampleNumber' => '700123456',\n ),\n 'emergency' => \n array (\n 'NationalNumberPattern' => 'NA',\n 'PossibleNumberPattern' => 'NA',\n ),\n 'voicemail' => \n array (\n 'NationalNumberPattern' => 'NA',\n 'PossibleNumberPattern' => 'NA',\n ),\n 'shortCode' => \n array (\n 'NationalNumberPattern' => 'NA',\n 'PossibleNumberPattern' => 'NA',\n ),\n 'standardRate' => \n array (\n 'NationalNumberPattern' => 'NA',\n 'PossibleNumberPattern' => 'NA',\n ),\n 'carrierSpecific' => \n array (\n 'NationalNumberPattern' => 'NA',\n 'PossibleNumberPattern' => 'NA',\n ),\n 'noInternationalDialling' => \n array (\n 'NationalNumberPattern' => 'NA',\n 'PossibleNumberPattern' => 'NA',\n ),\n 'id' => 'RS',\n 'countryCode' => 381,\n 'internationalPrefix' => '00',\n 'nationalPrefix' => '0',\n 'nationalPrefixForParsing' => '0',\n 'sameMobileAndFixedLinePattern' => false,\n 'numberFormat' => \n array (\n 0 => \n array (\n 'pattern' => '([23]\\\\d{2})(\\\\d{4,9})',\n 'format' => '$1 $2',\n 'leadingDigitsPatterns' => \n array (\n 0 => '\n (?:\n 2[389]|\n 39\n )0\n ',\n ),\n 'nationalPrefixFormattingRule' => '0$1',\n 'domesticCarrierCodeFormattingRule' => '',\n ),\n 1 => \n array (\n 'pattern' => '([1-3]\\\\d)(\\\\d{5,10})',\n 'format' => '$1 $2',\n 'leadingDigitsPatterns' => \n array (\n 0 => '\n 1|\n 2(?:\n [0-24-7]|\n [389][1-9]\n )|\n 3(?:\n [0-8]|\n 9[1-9]\n )\n ',\n ),\n 'nationalPrefixFormattingRule' => '0$1',\n 'domesticCarrierCodeFormattingRule' => '',\n ),\n 2 => \n array (\n 'pattern' => '(6\\\\d)(\\\\d{6,8})',\n 'format' => '$1 $2',\n 'leadingDigitsPatterns' => \n array (\n 0 => '6',\n ),\n 'nationalPrefixFormattingRule' => '0$1',\n 'domesticCarrierCodeFormattingRule' => '',\n ),\n 3 => \n array (\n 'pattern' => '([89]\\\\d{2})(\\\\d{3,9})',\n 'format' => '$1 $2',\n 'leadingDigitsPatterns' => \n array (\n 0 => '[89]',\n ),\n 'nationalPrefixFormattingRule' => '0$1',\n 'domesticCarrierCodeFormattingRule' => '',\n ),\n 4 => \n array (\n 'pattern' => '(7[26])(\\\\d{4,9})',\n 'format' => '$1 $2',\n 'leadingDigitsPatterns' => \n array (\n 0 => '7[26]',\n ),\n 'nationalPrefixFormattingRule' => '0$1',\n 'domesticCarrierCodeFormattingRule' => '',\n ),\n 5 => \n array (\n 'pattern' => '(7[08]\\\\d)(\\\\d{4,9})',\n 'format' => '$1 $2',\n 'leadingDigitsPatterns' => \n array (\n 0 => '7[08]',\n ),\n 'nationalPrefixFormattingRule' => '0$1',\n 'domesticCarrierCodeFormattingRule' => '',\n ),\n ),\n 'intlNumberFormat' => \n array (\n ),\n 'mainCountryForCode' => false,\n 'leadingZeroPossible' => false,\n 'mobileNumberPortableRegion' => true,\n);\n"},"repo_name":{"kind":"string","value":"ingagecreative/cg"},"path":{"kind":"string","value":"wp-content/plugins/constant-contact-api/vendor/giggsey/libphonenumber-for-php/src/libphonenumber/data/PhoneNumberMetadata_RS.php"},"language":{"kind":"string","value":"PHP"},"license":{"kind":"string","value":"gpl-2.0"},"size":{"kind":"number","value":5064,"string":"5,064"}}},{"rowIdx":115086129,"cells":{"code":{"kind":"string","value":"/*\n *\n * Digianswer Bluetooth USB driver\n *\n * Copyright (C) 2004-2007 Marcel Holtmann \n *\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, write to the Free Software\n * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n *\n */\n\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\n#include \n\n#include \n#include \n\n#include \"hci_uart.h\"\n\n#define VERSION \"0.11\"\n\nstatic const struct usb_device_id bpa10x_table[] = {\n\t/* Tektronix BPA 100/105 (Digianswer) */\n\t{ USB_DEVICE(0x08fd, 0x0002) },\n\n\t{ }\t/* Terminating entry */\n};\n\nMODULE_DEVICE_TABLE(usb, bpa10x_table);\n\nstruct bpa10x_data {\n\tstruct hci_dev *hdev;\n\tstruct usb_device *udev;\n\n\tstruct usb_anchor tx_anchor;\n\tstruct usb_anchor rx_anchor;\n\n\tstruct sk_buff *rx_skb[2];\n};\n\nstatic void bpa10x_tx_complete(struct urb *urb)\n{\n\tstruct sk_buff *skb = urb->context;\n\tstruct hci_dev *hdev = (struct hci_dev *) skb->dev;\n\n\tBT_DBG(\"%s urb %p status %d count %d\", hdev->name,\n\t\t\t\t\turb, urb->status, urb->actual_length);\n\n\tif (!test_bit(HCI_RUNNING, &hdev->flags))\n\t\tgoto done;\n\n\tif (!urb->status)\n\t\thdev->stat.byte_tx += urb->transfer_buffer_length;\n\telse\n\t\thdev->stat.err_tx++;\n\ndone:\n\tkfree(urb->setup_packet);\n\n\tkfree_skb(skb);\n}\n\n#define HCI_VENDOR_HDR_SIZE 5\n\n#define HCI_RECV_VENDOR \\\n\t.type = HCI_VENDOR_PKT, \\\n\t.hlen = HCI_VENDOR_HDR_SIZE, \\\n\t.loff = 3, \\\n\t.lsize = 2, \\\n\t.maxlen = HCI_MAX_FRAME_SIZE\n\nstatic const struct h4_recv_pkt bpa10x_recv_pkts[] = {\n\t{ H4_RECV_ACL, .recv = hci_recv_frame },\n\t{ H4_RECV_SCO, .recv = hci_recv_frame },\n\t{ H4_RECV_EVENT, .recv = hci_recv_frame },\n\t{ HCI_RECV_VENDOR, .recv = hci_recv_diag },\n};\n\nstatic void bpa10x_rx_complete(struct urb *urb)\n{\n\tstruct hci_dev *hdev = urb->context;\n\tstruct bpa10x_data *data = hci_get_drvdata(hdev);\n\tint err;\n\n\tBT_DBG(\"%s urb %p status %d count %d\", hdev->name,\n\t\t\t\t\turb, urb->status, urb->actual_length);\n\n\tif (!test_bit(HCI_RUNNING, &hdev->flags))\n\t\treturn;\n\n\tif (urb->status == 0) {\n\t\tbool idx = usb_pipebulk(urb->pipe);\n\n\t\tdata->rx_skb[idx] = h4_recv_buf(hdev, data->rx_skb[idx],\n\t\t\t\t\t\turb->transfer_buffer,\n\t\t\t\t\t\turb->actual_length,\n\t\t\t\t\t\tbpa10x_recv_pkts,\n\t\t\t\t\t\tARRAY_SIZE(bpa10x_recv_pkts));\n\t\tif (IS_ERR(data->rx_skb[idx])) {\n\t\t\tbt_dev_err(hdev, \"corrupted event packet\");\n\t\t\thdev->stat.err_rx++;\n\t\t\tdata->rx_skb[idx] = NULL;\n\t\t}\n\t}\n\n\tusb_anchor_urb(urb, &data->rx_anchor);\n\n\terr = usb_submit_urb(urb, GFP_ATOMIC);\n\tif (err < 0) {\n\t\tbt_dev_err(hdev, \"urb %p failed to resubmit (%d)\", urb, -err);\n\t\tusb_unanchor_urb(urb);\n\t}\n}\n\nstatic inline int bpa10x_submit_intr_urb(struct hci_dev *hdev)\n{\n\tstruct bpa10x_data *data = hci_get_drvdata(hdev);\n\tstruct urb *urb;\n\tunsigned char *buf;\n\tunsigned int pipe;\n\tint err, size = 16;\n\n\tBT_DBG(\"%s\", hdev->name);\n\n\turb = usb_alloc_urb(0, GFP_KERNEL);\n\tif (!urb)\n\t\treturn -ENOMEM;\n\n\tbuf = kmalloc(size, GFP_KERNEL);\n\tif (!buf) {\n\t\tusb_free_urb(urb);\n\t\treturn -ENOMEM;\n\t}\n\n\tpipe = usb_rcvintpipe(data->udev, 0x81);\n\n\tusb_fill_int_urb(urb, data->udev, pipe, buf, size,\n\t\t\t\t\t\tbpa10x_rx_complete, hdev, 1);\n\n\turb->transfer_flags |= URB_FREE_BUFFER;\n\n\tusb_anchor_urb(urb, &data->rx_anchor);\n\n\terr = usb_submit_urb(urb, GFP_KERNEL);\n\tif (err < 0) {\n\t\tbt_dev_err(hdev, \"urb %p submission failed (%d)\", urb, -err);\n\t\tusb_unanchor_urb(urb);\n\t}\n\n\tusb_free_urb(urb);\n\n\treturn err;\n}\n\nstatic inline int bpa10x_submit_bulk_urb(struct hci_dev *hdev)\n{\n\tstruct bpa10x_data *data = hci_get_drvdata(hdev);\n\tstruct urb *urb;\n\tunsigned char *buf;\n\tunsigned int pipe;\n\tint err, size = 64;\n\n\tBT_DBG(\"%s\", hdev->name);\n\n\turb = usb_alloc_urb(0, GFP_KERNEL);\n\tif (!urb)\n\t\treturn -ENOMEM;\n\n\tbuf = kmalloc(size, GFP_KERNEL);\n\tif (!buf) {\n\t\tusb_free_urb(urb);\n\t\treturn -ENOMEM;\n\t}\n\n\tpipe = usb_rcvbulkpipe(data->udev, 0x82);\n\n\tusb_fill_bulk_urb(urb, data->udev, pipe,\n\t\t\t\t\tbuf, size, bpa10x_rx_complete, hdev);\n\n\turb->transfer_flags |= URB_FREE_BUFFER;\n\n\tusb_anchor_urb(urb, &data->rx_anchor);\n\n\terr = usb_submit_urb(urb, GFP_KERNEL);\n\tif (err < 0) {\n\t\tbt_dev_err(hdev, \"urb %p submission failed (%d)\", urb, -err);\n\t\tusb_unanchor_urb(urb);\n\t}\n\n\tusb_free_urb(urb);\n\n\treturn err;\n}\n\nstatic int bpa10x_open(struct hci_dev *hdev)\n{\n\tstruct bpa10x_data *data = hci_get_drvdata(hdev);\n\tint err;\n\n\tBT_DBG(\"%s\", hdev->name);\n\n\terr = bpa10x_submit_intr_urb(hdev);\n\tif (err < 0)\n\t\tgoto error;\n\n\terr = bpa10x_submit_bulk_urb(hdev);\n\tif (err < 0)\n\t\tgoto error;\n\n\treturn 0;\n\nerror:\n\tusb_kill_anchored_urbs(&data->rx_anchor);\n\n\treturn err;\n}\n\nstatic int bpa10x_close(struct hci_dev *hdev)\n{\n\tstruct bpa10x_data *data = hci_get_drvdata(hdev);\n\n\tBT_DBG(\"%s\", hdev->name);\n\n\tusb_kill_anchored_urbs(&data->rx_anchor);\n\n\treturn 0;\n}\n\nstatic int bpa10x_flush(struct hci_dev *hdev)\n{\n\tstruct bpa10x_data *data = hci_get_drvdata(hdev);\n\n\tBT_DBG(\"%s\", hdev->name);\n\n\tusb_kill_anchored_urbs(&data->tx_anchor);\n\n\treturn 0;\n}\n\nstatic int bpa10x_setup(struct hci_dev *hdev)\n{\n\tconst u8 req[] = { 0x07 };\n\tstruct sk_buff *skb;\n\n\tBT_DBG(\"%s\", hdev->name);\n\n\t/* Read revision string */\n\tskb = __hci_cmd_sync(hdev, 0xfc0e, sizeof(req), req, HCI_INIT_TIMEOUT);\n\tif (IS_ERR(skb))\n\t\treturn PTR_ERR(skb);\n\n\tbt_dev_info(hdev, \"%s\", (char *)(skb->data + 1));\n\n\thci_set_fw_info(hdev, \"%s\", skb->data + 1);\n\n\tkfree_skb(skb);\n\treturn 0;\n}\n\nstatic int bpa10x_send_frame(struct hci_dev *hdev, struct sk_buff *skb)\n{\n\tstruct bpa10x_data *data = hci_get_drvdata(hdev);\n\tstruct usb_ctrlrequest *dr;\n\tstruct urb *urb;\n\tunsigned int pipe;\n\tint err;\n\n\tBT_DBG(\"%s\", hdev->name);\n\n\tskb->dev = (void *) hdev;\n\n\turb = usb_alloc_urb(0, GFP_ATOMIC);\n\tif (!urb)\n\t\treturn -ENOMEM;\n\n\t/* Prepend skb with frame type */\n\t*(u8 *)skb_push(skb, 1) = hci_skb_pkt_type(skb);\n\n\tswitch (hci_skb_pkt_type(skb)) {\n\tcase HCI_COMMAND_PKT:\n\t\tdr = kmalloc(sizeof(*dr), GFP_ATOMIC);\n\t\tif (!dr) {\n\t\t\tusb_free_urb(urb);\n\t\t\treturn -ENOMEM;\n\t\t}\n\n\t\tdr->bRequestType = USB_TYPE_VENDOR;\n\t\tdr->bRequest = 0;\n\t\tdr->wIndex = 0;\n\t\tdr->wValue = 0;\n\t\tdr->wLength = __cpu_to_le16(skb->len);\n\n\t\tpipe = usb_sndctrlpipe(data->udev, 0x00);\n\n\t\tusb_fill_control_urb(urb, data->udev, pipe, (void *) dr,\n\t\t\t\tskb->data, skb->len, bpa10x_tx_complete, skb);\n\n\t\thdev->stat.cmd_tx++;\n\t\tbreak;\n\n\tcase HCI_ACLDATA_PKT:\n\t\tpipe = usb_sndbulkpipe(data->udev, 0x02);\n\n\t\tusb_fill_bulk_urb(urb, data->udev, pipe,\n\t\t\t\tskb->data, skb->len, bpa10x_tx_complete, skb);\n\n\t\thdev->stat.acl_tx++;\n\t\tbreak;\n\n\tcase HCI_SCODATA_PKT:\n\t\tpipe = usb_sndbulkpipe(data->udev, 0x02);\n\n\t\tusb_fill_bulk_urb(urb, data->udev, pipe,\n\t\t\t\tskb->data, skb->len, bpa10x_tx_complete, skb);\n\n\t\thdev->stat.sco_tx++;\n\t\tbreak;\n\n\tdefault:\n\t\tusb_free_urb(urb);\n\t\treturn -EILSEQ;\n\t}\n\n\tusb_anchor_urb(urb, &data->tx_anchor);\n\n\terr = usb_submit_urb(urb, GFP_ATOMIC);\n\tif (err < 0) {\n\t\tbt_dev_err(hdev, \"urb %p submission failed\", urb);\n\t\tkfree(urb->setup_packet);\n\t\tusb_unanchor_urb(urb);\n\t}\n\n\tusb_free_urb(urb);\n\n\treturn 0;\n}\n\nstatic int bpa10x_set_diag(struct hci_dev *hdev, bool enable)\n{\n\tconst u8 req[] = { 0x00, enable };\n\tstruct sk_buff *skb;\n\n\tBT_DBG(\"%s\", hdev->name);\n\n\tif (!test_bit(HCI_RUNNING, &hdev->flags))\n\t\treturn -ENETDOWN;\n\n\t/* Enable sniffer operation */\n\tskb = __hci_cmd_sync(hdev, 0xfc0e, sizeof(req), req, HCI_INIT_TIMEOUT);\n\tif (IS_ERR(skb))\n\t\treturn PTR_ERR(skb);\n\n\tkfree_skb(skb);\n\treturn 0;\n}\n\nstatic int bpa10x_probe(struct usb_interface *intf, const struct usb_device_id *id)\n{\n\tstruct bpa10x_data *data;\n\tstruct hci_dev *hdev;\n\tint err;\n\n\tBT_DBG(\"intf %p id %p\", intf, id);\n\n\tif (intf->cur_altsetting->desc.bInterfaceNumber != 0)\n\t\treturn -ENODEV;\n\n\tdata = devm_kzalloc(&intf->dev, sizeof(*data), GFP_KERNEL);\n\tif (!data)\n\t\treturn -ENOMEM;\n\n\tdata->udev = interface_to_usbdev(intf);\n\n\tinit_usb_anchor(&data->tx_anchor);\n\tinit_usb_anchor(&data->rx_anchor);\n\n\thdev = hci_alloc_dev();\n\tif (!hdev)\n\t\treturn -ENOMEM;\n\n\thdev->bus = HCI_USB;\n\thci_set_drvdata(hdev, data);\n\n\tdata->hdev = hdev;\n\n\tSET_HCIDEV_DEV(hdev, &intf->dev);\n\n\thdev->open = bpa10x_open;\n\thdev->close = bpa10x_close;\n\thdev->flush = bpa10x_flush;\n\thdev->setup = bpa10x_setup;\n\thdev->send = bpa10x_send_frame;\n\thdev->set_diag = bpa10x_set_diag;\n\n\tset_bit(HCI_QUIRK_RESET_ON_CLOSE, &hdev->quirks);\n\n\terr = hci_register_dev(hdev);\n\tif (err < 0) {\n\t\thci_free_dev(hdev);\n\t\treturn err;\n\t}\n\n\tusb_set_intfdata(intf, data);\n\n\treturn 0;\n}\n\nstatic void bpa10x_disconnect(struct usb_interface *intf)\n{\n\tstruct bpa10x_data *data = usb_get_intfdata(intf);\n\n\tBT_DBG(\"intf %p\", intf);\n\n\tif (!data)\n\t\treturn;\n\n\tusb_set_intfdata(intf, NULL);\n\n\thci_unregister_dev(data->hdev);\n\n\thci_free_dev(data->hdev);\n\tkfree_skb(data->rx_skb[0]);\n\tkfree_skb(data->rx_skb[1]);\n}\n\nstatic struct usb_driver bpa10x_driver = {\n\t.name\t\t= \"bpa10x\",\n\t.probe\t\t= bpa10x_probe,\n\t.disconnect\t= bpa10x_disconnect,\n\t.id_table\t= bpa10x_table,\n\t.disable_hub_initiated_lpm = 1,\n};\n\nmodule_usb_driver(bpa10x_driver);\n\nMODULE_AUTHOR(\"Marcel Holtmann \");\nMODULE_DESCRIPTION(\"Digianswer Bluetooth USB driver ver \" VERSION);\nMODULE_VERSION(VERSION);\nMODULE_LICENSE(\"GPL\");\n"},"repo_name":{"kind":"string","value":"hannes/linux"},"path":{"kind":"string","value":"drivers/bluetooth/bpa10x.c"},"language":{"kind":"string","value":"C"},"license":{"kind":"string","value":"gpl-2.0"},"size":{"kind":"number","value":9716,"string":"9,716"}}},{"rowIdx":115086130,"cells":{"code":{"kind":"string","value":"\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nnamespace JMS\\Serializer\\Tests\\Fixtures;\n\nuse JMS\\Serializer\\Annotation\\Type;\n\nclass ObjectWithNullProperty extends SimpleObject\n{\n /**\n * @var null\n * @Type(\"string\")\n */\n private $nullProperty = null;\n\n /**\n * @return null\n */\n public function getNullProperty()\n {\n return $this->nullProperty;\n }\n}\n"},"repo_name":{"kind":"string","value":"SheYo/bc"},"path":{"kind":"string","value":"webform_handlers/vendor/jms/serializer/tests/Fixtures/ObjectWithNullProperty.php"},"language":{"kind":"string","value":"PHP"},"license":{"kind":"string","value":"gpl-2.0"},"size":{"kind":"number","value":980,"string":"980"}}},{"rowIdx":115086131,"cells":{"code":{"kind":"string","value":"// SPDX-License-Identifier: GPL-2.0-only\n/*\n * ARC PGU DRM driver.\n *\n * Copyright (C) 2016 Synopsys, Inc. (www.synopsys.com)\n */\n\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\n#include \"arcpgu.h\"\n#include \"arcpgu_regs.h\"\n\n#define ENCODE_PGU_XY(x, y)\t((((x) - 1) << 16) | ((y) - 1))\n\nstatic const u32 arc_pgu_supported_formats[] = {\n\tDRM_FORMAT_RGB565,\n\tDRM_FORMAT_XRGB8888,\n\tDRM_FORMAT_ARGB8888,\n};\n\nstatic void arc_pgu_set_pxl_fmt(struct drm_crtc *crtc)\n{\n\tstruct arcpgu_drm_private *arcpgu = crtc_to_arcpgu_priv(crtc);\n\tconst struct drm_framebuffer *fb = crtc->primary->state->fb;\n\tuint32_t pixel_format = fb->format->format;\n\tu32 format = DRM_FORMAT_INVALID;\n\tint i;\n\tu32 reg_ctrl;\n\n\tfor (i = 0; i < ARRAY_SIZE(arc_pgu_supported_formats); i++) {\n\t\tif (arc_pgu_supported_formats[i] == pixel_format)\n\t\t\tformat = arc_pgu_supported_formats[i];\n\t}\n\n\tif (WARN_ON(format == DRM_FORMAT_INVALID))\n\t\treturn;\n\n\treg_ctrl = arc_pgu_read(arcpgu, ARCPGU_REG_CTRL);\n\tif (format == DRM_FORMAT_RGB565)\n\t\treg_ctrl &= ~ARCPGU_MODE_XRGB8888;\n\telse\n\t\treg_ctrl |= ARCPGU_MODE_XRGB8888;\n\tarc_pgu_write(arcpgu, ARCPGU_REG_CTRL, reg_ctrl);\n}\n\nstatic const struct drm_crtc_funcs arc_pgu_crtc_funcs = {\n\t.destroy = drm_crtc_cleanup,\n\t.set_config = drm_atomic_helper_set_config,\n\t.page_flip = drm_atomic_helper_page_flip,\n\t.reset = drm_atomic_helper_crtc_reset,\n\t.atomic_duplicate_state = drm_atomic_helper_crtc_duplicate_state,\n\t.atomic_destroy_state = drm_atomic_helper_crtc_destroy_state,\n};\n\nstatic enum drm_mode_status arc_pgu_crtc_mode_valid(struct drm_crtc *crtc,\n\t\t\t\t\t\t const struct drm_display_mode *mode)\n{\n\tstruct arcpgu_drm_private *arcpgu = crtc_to_arcpgu_priv(crtc);\n\tlong rate, clk_rate = mode->clock * 1000;\n\tlong diff = clk_rate / 200; /* +-0.5% allowed by HDMI spec */\n\n\trate = clk_round_rate(arcpgu->clk, clk_rate);\n\tif ((max(rate, clk_rate) - min(rate, clk_rate) < diff) && (rate > 0))\n\t\treturn MODE_OK;\n\n\treturn MODE_NOCLOCK;\n}\n\nstatic void arc_pgu_crtc_mode_set_nofb(struct drm_crtc *crtc)\n{\n\tstruct arcpgu_drm_private *arcpgu = crtc_to_arcpgu_priv(crtc);\n\tstruct drm_display_mode *m = &crtc->state->adjusted_mode;\n\tu32 val;\n\n\tarc_pgu_write(arcpgu, ARCPGU_REG_FMT,\n\t\t ENCODE_PGU_XY(m->crtc_htotal, m->crtc_vtotal));\n\n\tarc_pgu_write(arcpgu, ARCPGU_REG_HSYNC,\n\t\t ENCODE_PGU_XY(m->crtc_hsync_start - m->crtc_hdisplay,\n\t\t\t\t m->crtc_hsync_end - m->crtc_hdisplay));\n\n\tarc_pgu_write(arcpgu, ARCPGU_REG_VSYNC,\n\t\t ENCODE_PGU_XY(m->crtc_vsync_start - m->crtc_vdisplay,\n\t\t\t\t m->crtc_vsync_end - m->crtc_vdisplay));\n\n\tarc_pgu_write(arcpgu, ARCPGU_REG_ACTIVE,\n\t\t ENCODE_PGU_XY(m->crtc_hblank_end - m->crtc_hblank_start,\n\t\t\t\t m->crtc_vblank_end - m->crtc_vblank_start));\n\n\tval = arc_pgu_read(arcpgu, ARCPGU_REG_CTRL);\n\n\tif (m->flags & DRM_MODE_FLAG_PVSYNC)\n\t\tval |= ARCPGU_CTRL_VS_POL_MASK << ARCPGU_CTRL_VS_POL_OFST;\n\telse\n\t\tval &= ~(ARCPGU_CTRL_VS_POL_MASK << ARCPGU_CTRL_VS_POL_OFST);\n\n\tif (m->flags & DRM_MODE_FLAG_PHSYNC)\n\t\tval |= ARCPGU_CTRL_HS_POL_MASK << ARCPGU_CTRL_HS_POL_OFST;\n\telse\n\t\tval &= ~(ARCPGU_CTRL_HS_POL_MASK << ARCPGU_CTRL_HS_POL_OFST);\n\n\tarc_pgu_write(arcpgu, ARCPGU_REG_CTRL, val);\n\tarc_pgu_write(arcpgu, ARCPGU_REG_STRIDE, 0);\n\tarc_pgu_write(arcpgu, ARCPGU_REG_START_SET, 1);\n\n\tarc_pgu_set_pxl_fmt(crtc);\n\n\tclk_set_rate(arcpgu->clk, m->crtc_clock * 1000);\n}\n\nstatic void arc_pgu_crtc_atomic_enable(struct drm_crtc *crtc,\n\t\t\t\t struct drm_crtc_state *old_state)\n{\n\tstruct arcpgu_drm_private *arcpgu = crtc_to_arcpgu_priv(crtc);\n\n\tclk_prepare_enable(arcpgu->clk);\n\tarc_pgu_write(arcpgu, ARCPGU_REG_CTRL,\n\t\t arc_pgu_read(arcpgu, ARCPGU_REG_CTRL) |\n\t\t ARCPGU_CTRL_ENABLE_MASK);\n}\n\nstatic void arc_pgu_crtc_atomic_disable(struct drm_crtc *crtc,\n\t\t\t\t\tstruct drm_crtc_state *old_state)\n{\n\tstruct arcpgu_drm_private *arcpgu = crtc_to_arcpgu_priv(crtc);\n\n\tclk_disable_unprepare(arcpgu->clk);\n\tarc_pgu_write(arcpgu, ARCPGU_REG_CTRL,\n\t\t\t arc_pgu_read(arcpgu, ARCPGU_REG_CTRL) &\n\t\t\t ~ARCPGU_CTRL_ENABLE_MASK);\n}\n\nstatic void arc_pgu_crtc_atomic_begin(struct drm_crtc *crtc,\n\t\t\t\t struct drm_crtc_state *state)\n{\n\tstruct drm_pending_vblank_event *event = crtc->state->event;\n\n\tif (event) {\n\t\tcrtc->state->event = NULL;\n\n\t\tspin_lock_irq(&crtc->dev->event_lock);\n\t\tdrm_crtc_send_vblank_event(crtc, event);\n\t\tspin_unlock_irq(&crtc->dev->event_lock);\n\t}\n}\n\nstatic const struct drm_crtc_helper_funcs arc_pgu_crtc_helper_funcs = {\n\t.mode_valid\t= arc_pgu_crtc_mode_valid,\n\t.mode_set_nofb\t= arc_pgu_crtc_mode_set_nofb,\n\t.atomic_begin\t= arc_pgu_crtc_atomic_begin,\n\t.atomic_enable\t= arc_pgu_crtc_atomic_enable,\n\t.atomic_disable\t= arc_pgu_crtc_atomic_disable,\n};\n\nstatic void arc_pgu_plane_atomic_update(struct drm_plane *plane,\n\t\t\t\t\tstruct drm_plane_state *state)\n{\n\tstruct arcpgu_drm_private *arcpgu;\n\tstruct drm_gem_cma_object *gem;\n\n\tif (!plane->state->crtc || !plane->state->fb)\n\t\treturn;\n\n\tarcpgu = crtc_to_arcpgu_priv(plane->state->crtc);\n\tgem = drm_fb_cma_get_gem_obj(plane->state->fb, 0);\n\tarc_pgu_write(arcpgu, ARCPGU_REG_BUF0_ADDR, gem->paddr);\n}\n\nstatic const struct drm_plane_helper_funcs arc_pgu_plane_helper_funcs = {\n\t.atomic_update = arc_pgu_plane_atomic_update,\n};\n\nstatic void arc_pgu_plane_destroy(struct drm_plane *plane)\n{\n\tdrm_plane_cleanup(plane);\n}\n\nstatic const struct drm_plane_funcs arc_pgu_plane_funcs = {\n\t.update_plane\t\t= drm_atomic_helper_update_plane,\n\t.disable_plane\t\t= drm_atomic_helper_disable_plane,\n\t.destroy\t\t= arc_pgu_plane_destroy,\n\t.reset\t\t\t= drm_atomic_helper_plane_reset,\n\t.atomic_duplicate_state = drm_atomic_helper_plane_duplicate_state,\n\t.atomic_destroy_state\t= drm_atomic_helper_plane_destroy_state,\n};\n\nstatic struct drm_plane *arc_pgu_plane_init(struct drm_device *drm)\n{\n\tstruct arcpgu_drm_private *arcpgu = drm->dev_private;\n\tstruct drm_plane *plane = NULL;\n\tint ret;\n\n\tplane = devm_kzalloc(drm->dev, sizeof(*plane), GFP_KERNEL);\n\tif (!plane)\n\t\treturn ERR_PTR(-ENOMEM);\n\n\tret = drm_universal_plane_init(drm, plane, 0xff, &arc_pgu_plane_funcs,\n\t\t\t\t arc_pgu_supported_formats,\n\t\t\t\t ARRAY_SIZE(arc_pgu_supported_formats),\n\t\t\t\t NULL,\n\t\t\t\t DRM_PLANE_TYPE_PRIMARY, NULL);\n\tif (ret)\n\t\treturn ERR_PTR(ret);\n\n\tdrm_plane_helper_add(plane, &arc_pgu_plane_helper_funcs);\n\tarcpgu->plane = plane;\n\n\treturn plane;\n}\n\nint arc_pgu_setup_crtc(struct drm_device *drm)\n{\n\tstruct arcpgu_drm_private *arcpgu = drm->dev_private;\n\tstruct drm_plane *primary;\n\tint ret;\n\n\tprimary = arc_pgu_plane_init(drm);\n\tif (IS_ERR(primary))\n\t\treturn PTR_ERR(primary);\n\n\tret = drm_crtc_init_with_planes(drm, &arcpgu->crtc, primary, NULL,\n\t\t\t\t\t&arc_pgu_crtc_funcs, NULL);\n\tif (ret) {\n\t\tarc_pgu_plane_destroy(primary);\n\t\treturn ret;\n\t}\n\n\tdrm_crtc_helper_add(&arcpgu->crtc, &arc_pgu_crtc_helper_funcs);\n\treturn 0;\n}\n"},"repo_name":{"kind":"string","value":"c0d3z3r0/linux-rockchip"},"path":{"kind":"string","value":"drivers/gpu/drm/arc/arcpgu_crtc.c"},"language":{"kind":"string","value":"C"},"license":{"kind":"string","value":"gpl-2.0"},"size":{"kind":"number","value":6944,"string":"6,944"}}},{"rowIdx":115086132,"cells":{"code":{"kind":"string","value":"// -*- c-basic-offset: 4 -*-\n/*\n * elementmap.{cc,hh} -- an element map class\n * Eddie Kohler\n *\n * Copyright (c) 1999-2000 Massachusetts Institute of Technology\n * Copyright (c) 2000 Mazu Networks, Inc.\n * Copyright (c) 2001 International Computer Science Institute\n * Copyright (c) 2008-2009 Meraki, Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a\n * copy of this software and associated documentation files (the \"Software\"),\n * to deal in the Software without restriction, subject to the conditions\n * listed in the Click LICENSE file. These conditions include: you must\n * preserve this copyright notice, and you cannot mention the copyright\n * holders in advertising related to the Software without their permission.\n * The Software is provided WITHOUT ANY WARRANTY, EXPRESS OR IMPLIED. This\n * notice is a summary of the Click LICENSE file; the license in that file is\n * legally binding.\n */\n\n#include \n\n#include \n#include \n#include \"routert.hh\"\n#include \"lexert.hh\"\n#include \"elementmap.hh\"\n#include \"toolutils.hh\"\n#include \n\nint32_t ElementMap::version_counter = 0;\nstatic ElementMap main_element_map;\nElementMap *ElementMap::the_element_map = &main_element_map;\nstatic Vector element_map_stack;\n\nElementMap::ElementMap()\n : _name_map(0), _use_count(0), _driver_mask(Driver::ALLMASK),\n _provided_driver_mask(0)\n{\n _e.push_back(Traits());\n _def.push_back(Globals());\n incr_version();\n}\n\nElementMap::ElementMap(const String& str, ErrorHandler* errh)\n : _name_map(0), _use_count(0), _driver_mask(Driver::ALLMASK),\n _provided_driver_mask(0)\n{\n _e.push_back(Traits());\n _def.push_back(Globals());\n parse(str, errh);\n incr_version();\n}\n\nElementMap::~ElementMap()\n{\n assert(_use_count == 0);\n}\n\n\nvoid\nElementMap::push_default(ElementMap *emap)\n{\n emap->use();\n element_map_stack.push_back(the_element_map);\n the_element_map = emap;\n}\n\nvoid\nElementMap::pop_default()\n{\n ElementMap *old = the_element_map;\n if (element_map_stack.size()) {\n\tthe_element_map = element_map_stack.back();\n\telement_map_stack.pop_back();\n } else\n\tthe_element_map = &main_element_map;\n old->unuse();\n}\n\nvoid\nElementMap::pop_default(ElementMap *emap)\n{\n if (the_element_map == emap)\n\tpop_default();\n}\n\n\nint\nElementMap::driver_elt_index(int i) const\n{\n while (i > 0 && (_e[i].driver_mask & _driver_mask) == 0)\n\ti = _e[i].name_next;\n return i;\n}\n\nString\nElementMap::documentation_url(const ElementTraits &t) const\n{\n String name = t.documentation_name;\n if (name)\n\treturn percent_substitute(_def[t.def_index].dochref,\n\t\t\t\t 's', name.c_str(),\n\t\t\t\t 0);\n else\n\treturn \"\";\n}\n\nint\nElementMap::add(const Traits &e)\n{\n int i = _e.size();\n _e.push_back(e);\n\n Traits &my_e = _e.back();\n if (my_e.requirements)\n\tmy_e.calculate_driver_mask();\n\n if (e.name) {\n\tElementClassT *c = ElementClassT::base_type(e.name);\n\tmy_e.name_next = _name_map[c->name()];\n\t_name_map.set(c->name(), i);\n }\n\n incr_version();\n return i;\n}\n\nvoid\nElementMap::remove_at(int i)\n{\n // XXX repeated removes can fill up ElementMap with crap\n if (i <= 0 || i >= _e.size())\n\treturn;\n\n Traits &e = _e[i];\n int p = -1;\n for (int t = _name_map.get(e.name); t > 0; p = t, t = _e[t].name_next)\n\t/* nada */;\n if (p >= 0)\n\t_e[p].name_next = e.name_next;\n else if (e.name)\n\t_name_map.set(e.name, e.name_next);\n\n e.name = e.cxx = String();\n incr_version();\n}\n\nTraits &\nElementMap::force_traits(const String &class_name)\n{\n int initial_i = _name_map[class_name], i = initial_i;\n if (!(_e[i].driver_mask & _driver_mask) && i > 0)\n\ti = driver_elt_index(i);\n if (i == 0) {\n\tTraits t;\n\tif (initial_i == 0)\n\t t.name = class_name;\n\telse\n\t t = _e[initial_i];\n\tt.driver_mask = _driver_mask;\n\ti = add(t);\n }\n return _e[i];\n}\n\nstatic const char *\nparse_attribute_value(String *result,\n\t\t const char *s, const char *ends,\n\t\t const HashTable &entities,\n\t\t ErrorHandler *errh)\n{\n while (s < ends && isspace((unsigned char) *s))\n\ts++;\n if (s >= ends || (*s != '\\'' && *s != '\\\"')) {\n\terrh->error(\"XML parse error: missing attribute value\");\n\treturn s;\n }\n\n char quote = *s;\n const char *first = s + 1;\n StringAccum sa;\n for (s++; s < ends && *s != quote; s++)\n\tif (*s == '&') {\n\t // dump on normal text\n\t sa.append(first, s - first);\n\n\t if (s + 3 < ends && s[1] == '#' && s[2] == 'x') {\n\t\t// hex character reference\n\t\tint c = 0;\n\t\tfor (s += 3; isxdigit((unsigned char) *s); s++)\n\t\t if (isdigit((unsigned char) *s))\n\t\t\tc = (c * 16) + *s - '0';\n\t\t else\n\t\t\tc = (c * 16) + tolower((unsigned char) *s) - 'a' + 10;\n\t\tsa << (char)c;\n\t } else if (s + 2 < ends && s[1] == '#') {\n\t\t// decimal character reference\n\t\tint c = 0;\n\t\tfor (s += 2; isdigit((unsigned char) *s); s++)\n\t\t c = (c * 10) + *s - '0';\n\t\tsa << (char)c;\n\t } else {\n\t\t// named entity\n\t\tconst char *t;\n\t\tfor (t = s + 1; t < ends && *t != quote && *t != ';'; t++)\n\t\t /* nada */;\n\t\tif (t < ends && *t == ';') {\n\t\t String entity_name(s + 1, t - s - 1);\n\t\t sa << entities[entity_name];\n\t\t s = t;\n\t\t}\n\t }\n\n\t // check entity ended correctly\n\t if (s >= ends || *s != ';') {\n\t\terrh->error(\"XML parse error: bad entity name\");\n\t\treturn s;\n\t }\n\n\t first = s + 1;\n\t}\n sa.append(first, s - first);\n if (s >= ends)\n\terrh->error(\"XML parse error: unterminated attribute value\");\n else\n\ts++;\n *result = sa.take_string();\n return s;\n}\n\nstatic const char *\nparse_xml_attrs(HashTable &attrs,\n\t\tconst char *s, const char *ends, bool *closed,\n\t\tconst HashTable &entities,\n\t\tErrorHandler *errh)\n{\n while (s < ends) {\n\twhile (s < ends && isspace((unsigned char) *s))\n\t s++;\n\n\tif (s >= ends)\n\t return s;\n\telse if (*s == '/') {\n\t *closed = true;\n\t return s;\n\t} else if (*s == '>')\n\t return s;\n\n\t// get attribute name\n\tconst char *attrstart = s;\n\twhile (s < ends && !isspace((unsigned char) *s) && *s != '=')\n\t s++;\n\tif (s == attrstart) {\n\t errh->error(\"XML parse error: missing attribute name\");\n\t return s;\n\t}\n\tString attrname(attrstart, s - attrstart);\n\n\t// skip whitespace and equals sign\n\twhile (s < ends && isspace((unsigned char) *s))\n\t s++;\n\tif (s >= ends || *s != '=') {\n\t errh->error(\"XML parse error: missing %<=%>\");\n\t return s;\n\t}\n\ts++;\n\n\t// get attribute value\n\tString attrvalue;\n\ts = parse_attribute_value(&attrvalue, s, ends, entities, errh);\n\tattrs.set(attrname, attrvalue);\n }\n return s;\n}\n\nvoid\nElementMap::parse_xml(const String &str, const String &package_name, ErrorHandler *errh)\n{\n if (!errh)\n\terrh = ErrorHandler::silent_handler();\n\n // prepare entities\n HashTable entities;\n entities.set(\"lt\", \"<\");\n entities.set(\"amp\", \"&\");\n entities.set(\"gt\", \">\");\n entities.set(\"quot\", \"\\\"\");\n entities.set(\"apos\", \"'\");\n\n const char *s = str.data();\n const char *ends = s + str.length();\n bool in_elementmap = false;\n\n while (s < ends) {\n\t// skip to '<'\n\twhile (s < ends && *s != '<')\n\t s++;\n\tfor (s++; s < ends && isspace((unsigned char) *s); s++)\n\t /* nada */;\n\tbool closed = false;\n\tif (s < ends && *s == '/') {\n\t closed = true;\n\t for (s++; s < ends && isspace((unsigned char) *s); s++)\n\t\t/* nada */;\n\t}\n\n\t// which tag\n\tif (s + 10 < ends && memcmp(s, \"elementmap\", 10) == 0\n\t && (isspace((unsigned char) s[10]) || s[10] == '>' || s[10] == '/')) {\n\t // parse elementmap tag\n\t if (!closed) {\n\t\tif (in_elementmap)\n\t\t errh->error(\"XML elementmap parse error: nested tags\");\n\t\tHashTable attrs;\n\t\ts = parse_xml_attrs(attrs, s + 10, ends, &closed, entities, errh);\n\t\tGlobals g;\n\t\tg.package = (attrs[\"package\"] ? attrs[\"package\"] : package_name);\n\t\tg.srcdir = attrs[\"sourcedir\"];\n\t\tif (attrs[\"src\"].substring(0, 7) == \"file://\")\n\t\t g.srcdir = attrs[\"src\"].substring(7);\n\t\tg.dochref = attrs[\"dochref\"];\n\t\tif (!g.dochref)\n\t\t g.dochref = attrs[\"webdoc\"];\n\t\tif (attrs[\"provides\"])\n\t\t _e[0].provisions += \" \" + attrs[\"provides\"];\n\t\tg.driver_mask = Driver::ALLMASK;\n\t\tif (attrs[\"drivers\"])\n\t\t g.driver_mask = Driver::driver_mask(attrs[\"drivers\"]);\n\t\tif (!_provided_driver_mask)\n\t\t _provided_driver_mask = g.driver_mask;\n\t\t_def.push_back(g);\n\t\tin_elementmap = true;\n\t }\n\t if (closed)\n\t\tin_elementmap = false;\n\n\t} else if (s + 5 < ends && memcmp(s, \"entry\", 5) == 0\n\t\t && (isspace((unsigned char) s[5]) || s[5] == '>' || s[5] == '/')\n\t\t && !closed && in_elementmap) {\n\t // parse entry tag\n\t HashTable attrs;\n\t s = parse_xml_attrs(attrs, s + 5, ends, &closed, entities, errh);\n\t Traits elt;\n\t for (HashTable::iterator i = attrs.begin(); i.live(); i++)\n\t\tif (String *sp = elt.component(i.key()))\n\t\t *sp = i.value();\n\t if (elt.provisions || elt.name) {\n\t\telt.def_index = _def.size() - 1;\n\t\t(void) add(elt);\n\t }\n\n\t} else if (s + 7 < ends && memcmp(s, \"!ENTITY\", 7) == 0\n\t\t && (isspace((unsigned char) s[7]) || s[7] == '>' || s[7] == '/')) {\n\t // parse entity declaration\n\t for (s += 7; s < ends && isspace((unsigned char) *s); s++)\n\t\t/* nada */;\n\t if (s >= ends || *s == '%') // skip DTD entities\n\t\tbreak;\n\t const char *name_start = s;\n\t while (s < ends && !isspace((unsigned char) *s))\n\t\ts++;\n\t String name(name_start, s - name_start), value;\n\t s = parse_attribute_value(&value, s, ends, entities, errh);\n\t entities.set(name, value);\n\n\t} else if (s + 8 < ends && memcmp(s, \"![CDATA[\", 8) == 0) {\n\t // skip CDATA section\n\t for (s += 8; s < ends; s++)\n\t\tif (*s == ']' && s + 3 <= ends && memcmp(s, \"]]>\", 3) == 0)\n\t\t break;\n\t} else if (s + 3 < ends && memcmp(s, \"!--\", 3) == 0) {\n\t // skip comment\n\t for (s += 3; s < ends; s++)\n\t\tif (*s == '-' && s + 3 <= ends && memcmp(s, \"-->\", 3) == 0)\n\t\t break;\n\t}\n\n\t// skip to '>'\n\twhile (s < ends && *s != '>')\n\t s++;\n }\n}\n\nvoid\nElementMap::parse(const String &str, const String &package_name, ErrorHandler *errh)\n{\n if (str.length() && str[0] == '<') {\n\tparse_xml(str, package_name, errh);\n\treturn;\n }\n\n int def_index = 0;\n if (package_name != _def[0].package) {\n\tdef_index = _def.size();\n\t_def.push_back(Globals());\n\t_def.back().package = package_name;\n }\n\n // set up default data\n Vector data;\n for (int i = Traits::D_FIRST_DEFAULT; i <= Traits::D_LAST_DEFAULT; i++)\n\tdata.push_back(i);\n\n // loop over the lines\n const char *begin = str.begin();\n const char *end = str.end();\n while (begin < end) {\n\t// read a line\n\tString line = str.substring(begin, find(begin, end, '\\n'));\n\tbegin = line.end() + 1;\n\n\t// break into words\n\tVector words;\n\tcp_spacevec(line, words);\n\n\t// skip blank lines & comments\n\tif (words.size() == 0 || words[0][0] == '#')\n\t continue;\n\n\t// check for $sourcedir\n\tif (words[0] == \"$sourcedir\") {\n\t if (words.size() == 2) {\n\t\tdef_index = _def.size();\n\t\t_def.push_back(Globals());\n\t\t_def.back() = _def[def_index - 1];\n\t\t_def.back().srcdir = cp_unquote(words[1]);\n\t }\n\n\t} else if (words[0] == \"$webdoc\") {\n\t if (words.size() == 2) {\n\t\tdef_index = _def.size();\n\t\t_def.push_back(Globals());\n\t\t_def.back() = _def[def_index - 1];\n\t\t_def.back().dochref = cp_unquote(words[1]);\n\t }\n\n\t} else if (words[0] == \"$provides\") {\n\t for (int i = 1; i < words.size(); i++)\n\t\t_e[0].provisions += \" \" + cp_unquote(words[i]);\n\n\t} else if (words[0] == \"$data\") {\n\t data.clear();\n\t for (int i = 1; i < words.size(); i++)\n\t\tdata.push_back(Traits::parse_component(cp_unquote(words[i])));\n\n\t} else if (words[0][0] != '$') {\n\t // an actual line\n\t Traits elt;\n\t for (int i = 0; i < data.size() && i < words.size(); i++)\n\t\tif (String *sp = elt.component(data[i]))\n\t\t *sp = cp_unquote(words[i]);\n\t if (elt.provisions || elt.name) {\n\t\telt.def_index = def_index;\n\t\t(void) add(elt);\n\t }\n\t}\n }\n}\n\nvoid\nElementMap::parse(const String &str, ErrorHandler *errh)\n{\n parse(str, String(), errh);\n}\n\nString\nElementMap::unparse(const String &package) const\n{\n StringAccum sa;\n sa << \"\\n\\\n\\n\";\n for (int i = 1; i < _e.size(); i++) {\n\tconst Traits &e = _e[i];\n\tif (!e.name && !e.cxx)\n\t continue;\n\tsa << \" \\n\";\n }\n sa << \"\\n\";\n return sa.take_string();\n}\n\nString\nElementMap::unparse_nonxml() const\n{\n StringAccum sa;\n sa << \"$data\\tname\\tcxxclass\\tdocname\\theaderfile\\tprocessing\\tflowcode\\tflags\\trequires\\tprovides\\n\";\n for (int i = 1; i < _e.size(); i++) {\n\tconst Traits &e = _e[i];\n\tif (!e.name && !e.cxx)\n\t continue;\n\tsa << cp_quote(e.name) << '\\t'\n\t << cp_quote(e.cxx) << '\\t'\n\t << cp_quote(e.documentation_name) << '\\t'\n\t << cp_quote(e.header_file) << '\\t'\n\t << cp_quote(e.processing_code) << '\\t'\n\t << cp_quote(e.flow_code) << '\\t'\n\t << cp_quote(e.flags) << '\\t'\n\t << cp_quote(e.requirements) << '\\t'\n\t << cp_quote(e.provisions) << '\\n';\n }\n return sa.take_string();\n}\n\nvoid\nElementMap::collect_indexes(const RouterT *router, Vector &indexes,\n\t\t\t ErrorHandler *errh) const\n{\n indexes.clear();\n HashTable types(-1);\n router->collect_types(types);\n for (HashTable::iterator i = types.begin(); i.live(); i++)\n\tif (i.key()->primitive()) {\n\t int t = _name_map[i.key()->name()];\n\t if (t > 0)\n\t\tindexes.push_back(t);\n\t else if (errh)\n\t\terrh->error(\"unknown element class %<%s%>\", i.key()->printable_name_c_str());\n\t}\n}\n\nint\nElementMap::check_completeness(const RouterT *r, ErrorHandler *errh) const\n{\n LocalErrorHandler lerrh(errh);\n Vector indexes;\n collect_indexes(r, indexes, &lerrh);\n return (lerrh.nerrors() ? -1 : 0);\n}\n\nbool\nElementMap::driver_indifferent(const RouterT *r, int driver_mask, ErrorHandler *errh) const\n{\n Vector indexes;\n collect_indexes(r, indexes, errh);\n for (int i = 0; i < indexes.size(); i++) {\n\tint idx = indexes[i];\n\tif (idx > 0 && (_e[idx].driver_mask & driver_mask) != driver_mask)\n\t return false;\n }\n return true;\n}\n\nint\nElementMap::compatible_driver_mask(const RouterT *r, ErrorHandler *errh) const\n{\n Vector indexes;\n collect_indexes(r, indexes, errh);\n int mask = Driver::ALLMASK;\n for (int i = 0; i < indexes.size(); i++) {\n\tint idx = indexes[i];\n\tint elt_mask = 0;\n\twhile (idx > 0) {\n\t int idx_mask = _e[idx].driver_mask;\n\t if (idx_mask & (1 << Driver::MULTITHREAD))\n\t\tfor (int d = 0; d < Driver::COUNT; ++d)\n\t\t if ((idx_mask & (1 << d))\n\t\t\t&& !provides_global(Driver::multithread_name(d)))\n\t\t\tidx_mask &= ~(1 << d);\n\t elt_mask |= idx_mask;\n\t idx = _e[idx].name_next;\n\t}\n\tmask &= elt_mask;\n }\n return mask;\n}\n\nbool\nElementMap::driver_compatible(const RouterT *r, int driver, ErrorHandler *errh) const\n{\n return compatible_driver_mask(r, errh) & (1 << driver);\n}\n\nvoid\nElementMap::set_driver_mask(int driver_mask)\n{\n if (_driver_mask != driver_mask)\n\tincr_version();\n _driver_mask = driver_mask;\n}\n\nint\nElementMap::pick_driver(int wanted_driver, const RouterT* router, ErrorHandler* errh) const\n{\n LocalErrorHandler lerrh(errh);\n int driver_mask = compatible_driver_mask(router, &lerrh);\n if (driver_mask == 0) {\n\tlerrh.warning(\"configuration not compatible with any driver\");\n\treturn Driver::USERLEVEL;\n }\n if ((driver_mask & _provided_driver_mask) == 0) {\n\tlerrh.warning(\"configuration not compatible with installed drivers\");\n\tdriver_mask = _provided_driver_mask;\n }\n if (wanted_driver >= 0) {\n\tif (!(driver_mask & (1 << wanted_driver)))\n\t lerrh.warning(\"configuration not compatible with %s driver\", Driver::name(wanted_driver));\n\treturn wanted_driver;\n }\n\n for (int d = Driver::COUNT - 1; d >= 0; d--)\n\tif (driver_mask & (1 << d))\n\t wanted_driver = d;\n // don't complain if only a single driver works\n if ((driver_mask & (driver_mask - 1)) != 0\n\t&& !driver_indifferent(router, driver_mask, errh))\n\tlerrh.warning(\"configuration not indifferent to driver, picking %s\\n(You might want to specify a driver explicitly.)\", Driver::name(wanted_driver));\n return wanted_driver;\n}\n\n\nbool\nElementMap::find_and_parse_package_file(const String& package_name, const RouterT* r, const String& default_path, ErrorHandler* errh, const String& filetype, bool verbose)\n{\n String mapname, mapname2;\n if (package_name && package_name != \"\") {\n mapname = \"elementmap-\" + package_name + \".xml\";\n mapname2 = \"elementmap.\" + package_name;\n } else {\n mapname = \"elementmap.xml\";\n mapname2 = \"elementmap\";\n }\n\n // look for elementmap in archive\n if (r) {\n int aei = r->archive_index(mapname);\n if (aei < 0)\n aei = r->archive_index(mapname2);\n if (aei >= 0) {\n if (errh && verbose)\n errh->message(\"parsing %s %<%s%> from configuration archive\", filetype.c_str(), r->archive(aei).name.c_str());\n parse(r->archive(aei).data, package_name);\n return true;\n }\n }\n\n // look for elementmap in file system\n if (package_name != \"\") {\n String fn = clickpath_find_file(mapname, \"share\", default_path);\n if (!fn)\n fn = clickpath_find_file(mapname2, \"share\", default_path);\n if (fn) {\n if (errh && verbose)\n errh->message(\"parsing %s %<%s%>\", filetype.c_str(), fn.c_str());\n String text = file_string(fn, errh);\n parse(text, package_name);\n return true;\n }\n\n if (errh)\n errh->warning(\"%s missing\", filetype.c_str());\n }\n\n return false;\n}\n\nbool\nElementMap::parse_default_file(const String &default_path, ErrorHandler *errh, bool verbose)\n{\n return find_and_parse_package_file(\"\", 0, default_path, errh, \"default elementmap\", verbose);\n}\n\nbool\nElementMap::parse_package_file(const String& package_name, const RouterT* r, const String& default_path, ErrorHandler* errh, bool verbose)\n{\n return find_and_parse_package_file(package_name, r, default_path, errh, errh->format(\"package %<%s%> elementmap\", package_name.c_str()), verbose);\n}\n\nbool\nElementMap::parse_requirement_files(RouterT *r, const String &default_path, ErrorHandler *errh, bool verbose)\n{\n String not_found;\n\n // try elementmap in archive\n find_and_parse_package_file(\"\", r, \"\", errh, \"archive elementmap\", verbose);\n\n // parse elementmaps for requirements in required order\n const Vector &requirements = r->requirements();\n bool ok = true;\n for (int i = 0; i < requirements.size(); i += 2) {\n\tif (!requirements[i].equals(\"package\", 7))\n\t continue;\n if (!find_and_parse_package_file(requirements[i+1], r, default_path, errh, errh->format(\"package %<%s%> elementmap\", requirements[i+1].c_str()), verbose))\n ok = false;\n }\n\n return ok;\n}\n\nbool\nElementMap::parse_all_files(RouterT *r, const String &default_path, ErrorHandler *errh)\n{\n bool found_default = parse_default_file(default_path, errh);\n bool found_other = parse_requirement_files(r, default_path, errh);\n\n if (found_default && found_other)\n\treturn true;\n else {\n\treport_file_not_found(default_path, found_default, errh);\n\treturn false;\n }\n}\n\nvoid\nElementMap::report_file_not_found(String default_path, bool found_default,\n\t\t\t\t ErrorHandler *errh)\n{\n if (!found_default)\n\terrh->message(\"(The % file stores information about available elements,\\nand is required for correct operation. % should install it.\");\n else\n\terrh->message(\"(You may get unknown element class errors.\");\n\n const char *path = clickpath();\n bool allows_default = path_allows_default_path(path);\n if (!allows_default)\n\terrh->message(\"Searched in CLICKPATH %<%s%>.)\", path);\n else if (!path)\n\terrh->message(\"Searched in install directory %<%s%>.)\", default_path.c_str());\n else\n\terrh->message(\"Searched in CLICKPATH and %<%s%>.)\", default_path.c_str());\n}\n\n\n// TraitsIterator\n\nElementMap::TraitsIterator::TraitsIterator(const ElementMap *emap, bool elements_only)\n : _emap(emap), _index(0), _elements_only(elements_only)\n{\n (*this)++;\n}\n\nvoid\nElementMap::TraitsIterator::operator++(int)\n{\n _index++;\n while (_index < _emap->size()) {\n\tconst ElementTraits &t = _emap->traits_at(_index);\n\tif ((t.driver_mask & _emap->driver_mask())\n\t && (t.name || t.cxx)\n\t && (t.name || !_elements_only))\n\t break;\n\t_index++;\n }\n}\n"},"repo_name":{"kind":"string","value":"NetSys/click"},"path":{"kind":"string","value":"tools/lib/elementmap.cc"},"language":{"kind":"string","value":"C++"},"license":{"kind":"string","value":"gpl-2.0"},"size":{"kind":"number","value":21491,"string":"21,491"}}},{"rowIdx":115086133,"cells":{"code":{"kind":"string","value":"/*\n * Copyright (C) 2005-2009 Team XBMC\n * http://www.xbmc.org\n *\n * This Program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2, or (at your option)\n * any later version.\n *\n * This Program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with XBMC; see the file COPYING. If not, write to\n * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.\n * http://www.gnu.org/copyleft/gpl.html\n *\n */\n#include \"DBusUtil.h\"\n#ifdef HAS_DBUS\n#include \"utils/log.h\"\n\nCVariant CDBusUtil::GetVariant(const char *destination, const char *object, const char *interface, const char *property)\n{\n//dbus-send --system --print-reply --dest=destination object org.freedesktop.DBus.Properties.Get string:interface string:property\n CDBusMessage message(destination, object, \"org.freedesktop.DBus.Properties\", \"Get\");\n CVariant result;\n\n if (message.AppendArgument(interface) && message.AppendArgument(property))\n {\n DBusMessage *reply = message.SendSystem();\n\n if (reply)\n {\n DBusMessageIter iter;\n\n if (dbus_message_iter_init(reply, &iter))\n {\n if (!dbus_message_has_signature(reply, \"v\"))\n CLog::Log(LOGERROR, \"DBus: wrong signature on Get - should be \\\"v\\\" but was %s\", dbus_message_iter_get_signature(&iter));\n else\n result = ParseVariant(&iter);\n }\n }\n }\n else\n CLog::Log(LOGERROR, \"DBus: append arguments failed\");\n\n return result;\n}\n\nCVariant CDBusUtil::GetAll(const char *destination, const char *object, const char *interface)\n{\n CDBusMessage message(destination, object, \"org.freedesktop.DBus.Properties\", \"GetAll\");\n CVariant properties;\n message.AppendArgument(interface);\n DBusMessage *reply = message.SendSystem();\n if (reply)\n {\n DBusMessageIter iter;\n if (dbus_message_iter_init(reply, &iter))\n {\n if (!dbus_message_has_signature(reply, \"a{sv}\"))\n CLog::Log(LOGERROR, \"DBus: wrong signature on GetAll - should be \\\"a{sv}\\\" but was %s\", dbus_message_iter_get_signature(&iter));\n else\n {\n do\n {\n DBusMessageIter sub;\n dbus_message_iter_recurse(&iter, &sub);\n do\n {\n DBusMessageIter dict;\n dbus_message_iter_recurse(&sub, &dict);\n do\n {\n const char * key = NULL;\n\n dbus_message_iter_get_basic(&dict, &key);\n dbus_message_iter_next(&dict);\n\n CVariant value = ParseVariant(&dict);\n\n if (!value.isNull())\n properties[key] = value;\n\n } while (dbus_message_iter_next(&dict));\n\n } while (dbus_message_iter_next(&sub));\n\n } while (dbus_message_iter_next(&iter));\n }\n }\n }\n\n return properties;\n}\n\nCVariant CDBusUtil::ParseVariant(DBusMessageIter *itr)\n{\n DBusMessageIter variant;\n dbus_message_iter_recurse(itr, &variant);\n\n return ParseType(&variant);\n}\n\nCVariant CDBusUtil::ParseType(DBusMessageIter *itr)\n{\n CVariant value;\n const char * string = NULL;\n dbus_int32_t int32 = 0;\n dbus_uint32_t uint32 = 0;\n dbus_int64_t int64 = 0;\n dbus_uint64_t uint64 = 0;\n dbus_bool_t boolean = false;\n double doublev = 0;\n\n int type = dbus_message_iter_get_arg_type(itr);\n switch (type)\n {\n case DBUS_TYPE_OBJECT_PATH:\n case DBUS_TYPE_STRING:\n dbus_message_iter_get_basic(itr, &string);\n value = string;\n break;\n case DBUS_TYPE_UINT32:\n dbus_message_iter_get_basic(itr, &uint32);\n value = (uint64_t)uint32;\n break;\n case DBUS_TYPE_BYTE:\n case DBUS_TYPE_INT32:\n dbus_message_iter_get_basic(itr, &int32);\n value = (int64_t)int32;\n break;\n case DBUS_TYPE_UINT64:\n dbus_message_iter_get_basic(itr, &uint64);\n value = (uint64_t)uint64;\n break;\n case DBUS_TYPE_INT64:\n dbus_message_iter_get_basic(itr, &int64);\n value = (int64_t)int64;\n break;\n case DBUS_TYPE_BOOLEAN:\n dbus_message_iter_get_basic(itr, &boolean);\n value = (bool)boolean;\n break;\n case DBUS_TYPE_DOUBLE:\n dbus_message_iter_get_basic(itr, &doublev);\n value = (double)doublev;\n break;\n case DBUS_TYPE_ARRAY:\n DBusMessageIter array;\n dbus_message_iter_recurse(itr, &array);\n\n value = CVariant::VariantTypeArray;\n\n do\n {\n CVariant item = ParseType(&array);\n if (!item.isNull())\n value.push_back(item);\n } while (dbus_message_iter_next(&array));\n break;\n }\n\n return value;\n}\n#endif\n"},"repo_name":{"kind":"string","value":"j2carv/xbmc-1"},"path":{"kind":"string","value":"xbmc/linux/DBusUtil.cpp"},"language":{"kind":"string","value":"C++"},"license":{"kind":"string","value":"gpl-2.0"},"size":{"kind":"number","value":4822,"string":"4,822"}}},{"rowIdx":115086134,"cells":{"code":{"kind":"string","value":"! { dg-do run }\n! Test the fix for pr22146, where and elemental subroutine with\n! array actual arguments would cause an ICE in gfc_conv_function_call.\n! This test checks that the main uses for elemental subroutines work\n! correctly; namely, as module procedures and as procedures called\n! from elemental functions. The compiler would ICE on the former with\n! the first version of the patch.\n!\n! Contributed by Paul Thomas \n\nmodule type\n type itype\n integer :: i\n character(1) :: ch\n end type itype\nend module type\n\nmodule assign\n interface assignment (=)\n module procedure itype_to_int\n end interface\ncontains\n elemental subroutine itype_to_int (i, it)\n use type\n type(itype), intent(in) :: it\n integer, intent(out) :: i\n i = it%i\n end subroutine itype_to_int\n\n elemental function i_from_itype (it) result (i)\n use type\n type(itype), intent(in) :: it\n integer :: i\n i = it\n end function i_from_itype\n\nend module assign\n\nprogram test_assign\n use type\n use assign\n type(itype) :: x(2, 2)\n integer :: i(2, 2)\n\n! Test an elemental subroutine call from an elementary function.\n x = reshape ((/(itype (j, \"a\"), j = 1,4)/), (/2,2/))\n forall (j = 1:2, k = 1:2)\n i(j, k) = i_from_itype (x (j, k))\n end forall\n if (any(reshape (i, (/4/)).ne.(/1,2,3,4/))) STOP 1\n\n! Check the interface assignment (not part of the patch).\n x = reshape ((/(itype (j**2, \"b\"), j = 1,4)/), (/2,2/))\n i = x\n if (any(reshape (i, (/4/)).ne.(/1,4,9,16/))) STOP 2\n\n! Use the interface assignment within a forall block.\n x = reshape ((/(itype (j**3, \"c\"), j = 1,4)/), (/2,2/))\n forall (j = 1:2, k = 1:2)\n i(j, k) = x (j, k)\n end forall\n if (any(reshape (i, (/4/)).ne.(/1,8,27,64/))) STOP 3\n\nend program test_assign\n"},"repo_name":{"kind":"string","value":"Gurgel100/gcc"},"path":{"kind":"string","value":"gcc/testsuite/gfortran.dg/elemental_subroutine_2.f90"},"language":{"kind":"string","value":"FORTRAN"},"license":{"kind":"string","value":"gpl-2.0"},"size":{"kind":"number","value":1761,"string":"1,761"}}},{"rowIdx":115086135,"cells":{"code":{"kind":"string","value":"/*\n abituguru3.c Copyright (c) 2006 Hans de Goede \n\n This program is free software; you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation; either version 2 of the License, or\n (at your option) any later version.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU General Public License for more details.\n\n You should have received a copy of the GNU General Public License\n along with this program; if not, write to the Free Software\n Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\n*/\n/*\n This driver supports the sensor part of revision 3 of the custom Abit uGuru\n chip found on newer Abit uGuru motherboards. Note: because of lack of specs\n only reading the sensors and their settings is supported.\n*/\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\n/* uGuru3 bank addresses */\n#define ABIT_UGURU3_SETTINGS_BANK\t\t0x01\n#define ABIT_UGURU3_SENSORS_BANK\t\t0x08\n#define ABIT_UGURU3_MISC_BANK\t\t\t0x09\n#define ABIT_UGURU3_ALARMS_START\t\t0x1E\n#define ABIT_UGURU3_SETTINGS_START\t\t0x24\n#define ABIT_UGURU3_VALUES_START\t\t0x80\n#define ABIT_UGURU3_BOARD_ID\t\t\t0x0A\n/* uGuru3 sensor bank flags */\t\t\t /* Alarm if: */\n#define ABIT_UGURU3_TEMP_HIGH_ALARM_ENABLE\t0x01 /* temp over warn */\n#define ABIT_UGURU3_VOLT_HIGH_ALARM_ENABLE\t0x02 /* volt over max */\n#define ABIT_UGURU3_VOLT_LOW_ALARM_ENABLE\t0x04 /* volt under min */\n#define ABIT_UGURU3_TEMP_HIGH_ALARM_FLAG\t0x10 /* temp is over warn */\n#define ABIT_UGURU3_VOLT_HIGH_ALARM_FLAG\t0x20 /* volt is over max */\n#define ABIT_UGURU3_VOLT_LOW_ALARM_FLAG\t\t0x40 /* volt is under min */\n#define ABIT_UGURU3_FAN_LOW_ALARM_ENABLE\t0x01 /* fan under min */\n#define ABIT_UGURU3_BEEP_ENABLE\t\t\t0x08 /* beep if alarm */\n#define ABIT_UGURU3_SHUTDOWN_ENABLE\t\t0x80 /* shutdown if alarm */\n/* sensor types */\n#define ABIT_UGURU3_IN_SENSOR\t\t\t0\n#define ABIT_UGURU3_TEMP_SENSOR\t\t\t1\n#define ABIT_UGURU3_FAN_SENSOR\t\t\t2\n\n/* Timeouts / Retries, if these turn out to need a lot of fiddling we could\n convert them to params. Determined by trial and error. I assume this is\n cpu-speed independent, since the ISA-bus and not the CPU should be the\n bottleneck. */\n#define ABIT_UGURU3_WAIT_TIMEOUT\t\t250\n/* Normally the 0xAC at the end of synchronize() is reported after the\n first read, but sometimes not and we need to poll */\n#define ABIT_UGURU3_SYNCHRONIZE_TIMEOUT\t\t5\n/* utility macros */\n#define ABIT_UGURU3_NAME\t\t\t\"abituguru3\"\n#define ABIT_UGURU3_DEBUG(format, arg...)\t\\\n\tif (verbose)\t\t\t\t\\\n\t\tprintk(KERN_DEBUG ABIT_UGURU3_NAME \": \"\tformat , ## arg)\n\n/* Macros to help calculate the sysfs_names array length */\n#define ABIT_UGURU3_MAX_NO_SENSORS 26\n/* sum of strlen +1 of: in??_input\\0, in??_{min,max}\\0, in??_{min,max}_alarm\\0,\n in??_{min,max}_alarm_enable\\0, in??_beep\\0, in??_shutdown\\0, in??_label\\0 */\n#define ABIT_UGURU3_IN_NAMES_LENGTH (11 + 2 * 9 + 2 * 15 + 2 * 22 + 10 + 14 + 11)\n/* sum of strlen +1 of: temp??_input\\0, temp??_max\\0, temp??_crit\\0,\n temp??_alarm\\0, temp??_alarm_enable\\0, temp??_beep\\0, temp??_shutdown\\0,\n temp??_label\\0 */\n#define ABIT_UGURU3_TEMP_NAMES_LENGTH (13 + 11 + 12 + 13 + 20 + 12 + 16 + 13)\n/* sum of strlen +1 of: fan??_input\\0, fan??_min\\0, fan??_alarm\\0,\n fan??_alarm_enable\\0, fan??_beep\\0, fan??_shutdown\\0, fan??_label\\0 */\n#define ABIT_UGURU3_FAN_NAMES_LENGTH (12 + 10 + 12 + 19 + 11 + 15 + 12)\n/* Worst case scenario 16 in sensors (longest names_length) and the rest\n temp sensors (second longest names_length). */\n#define ABIT_UGURU3_SYSFS_NAMES_LENGTH (16 * ABIT_UGURU3_IN_NAMES_LENGTH + \\\n\t(ABIT_UGURU3_MAX_NO_SENSORS - 16) * ABIT_UGURU3_TEMP_NAMES_LENGTH)\n\n/* All the macros below are named identical to the openguru2 program\n reverse engineered by Louis Kruger, hence the names might not be 100%\n logical. I could come up with better names, but I prefer keeping the names\n identical so that this driver can be compared with his work more easily. */\n/* Two i/o-ports are used by uGuru */\n#define ABIT_UGURU3_BASE\t\t\t0x00E0\n#define ABIT_UGURU3_CMD\t\t\t\t0x00\n#define ABIT_UGURU3_DATA\t\t\t0x04\n#define ABIT_UGURU3_REGION_LENGTH\t\t5\n/* The wait_xxx functions return this on success and the last contents\n of the DATA register (0-255) on failure. */\n#define ABIT_UGURU3_SUCCESS\t\t\t-1\n/* uGuru status flags */\n#define ABIT_UGURU3_STATUS_READY_FOR_READ\t0x01\n#define ABIT_UGURU3_STATUS_BUSY\t\t\t0x02\n\n\n/* Structures */\nstruct abituguru3_sensor_info {\n\tconst char* name;\n\tint port;\n\tint type;\n\tint multiplier;\n\tint divisor;\n\tint offset;\n};\n\nstruct abituguru3_motherboard_info {\n\tu16 id;\n\tconst char *name;\n\t/* + 1 -> end of sensors indicated by a sensor with name == NULL */\n\tstruct abituguru3_sensor_info sensors[ABIT_UGURU3_MAX_NO_SENSORS + 1];\n};\n\n/* For the Abit uGuru, we need to keep some data in memory.\n The structure is dynamically allocated, at the same time when a new\n abituguru3 device is allocated. */\nstruct abituguru3_data {\n\tstruct device *hwmon_dev;\t/* hwmon registered device */\n\tstruct mutex update_lock;\t/* protect access to data and uGuru */\n\tunsigned short addr;\t\t/* uguru base address */\n\tchar valid;\t\t\t/* !=0 if following fields are valid */\n\tunsigned long last_updated;\t/* In jiffies */\n\n\t/* For convenience the sysfs attr and their names are generated\n\t automatically. We have max 10 entries per sensor (for in sensors) */\n\tstruct sensor_device_attribute_2 sysfs_attr[ABIT_UGURU3_MAX_NO_SENSORS\n\t\t* 10];\n\n\t/* Buffer to store the dynamically generated sysfs names */\n\tchar sysfs_names[ABIT_UGURU3_SYSFS_NAMES_LENGTH];\n\n\t/* Pointer to the sensors info for the detected motherboard */\n\tconst struct abituguru3_sensor_info *sensors;\n\n\t/* The abituguru3 supports upto 48 sensors, and thus has registers\n\t sets for 48 sensors, for convienence reasons / simplicity of the\n\t code we always read and store all registers for all 48 sensors */\n\n\t/* Alarms for all 48 sensors (1 bit per sensor) */\n\tu8 alarms[48/8];\n\n\t/* Value of all 48 sensors */\n\tu8 value[48];\n\n\t/* Settings of all 48 sensors, note in and temp sensors (the first 32\n\t sensors) have 3 bytes of settings, while fans only have 2 bytes,\n\t for convenience we use 3 bytes for all sensors */\n\tu8 settings[48][3];\n};\n\n\n/* Constants */\nstatic const struct abituguru3_motherboard_info abituguru3_motherboards[] = {\n\t{ 0x000C, \"unknown\", {\n\t\t{ \"CPU Core\",\t\t 0, 0, 10, 1, 0 },\n\t\t{ \"DDR\",\t\t 1, 0, 10, 1, 0 },\n\t\t{ \"DDR VTT\",\t\t 2, 0, 10, 1, 0 },\n\t\t{ \"CPU VTT 1.2V\",\t 3, 0, 10, 1, 0 },\n\t\t{ \"MCH & PCIE 1.5V\",\t 4, 0, 10, 1, 0 },\n\t\t{ \"MCH 2.5V\",\t\t 5, 0, 20, 1, 0 },\n\t\t{ \"ICH 1.05V\",\t\t 6, 0, 10, 1, 0 },\n\t\t{ \"ATX +12V (24-Pin)\",\t 7, 0, 60, 1, 0 },\n\t\t{ \"ATX +12V (4-pin)\",\t 8, 0, 60, 1, 0 },\n\t\t{ \"ATX +5V\",\t\t 9, 0, 30, 1, 0 },\n\t\t{ \"+3.3V\",\t\t10, 0, 20, 1, 0 },\n\t\t{ \"5VSB\",\t\t11, 0, 30, 1, 0 },\n\t\t{ \"CPU\",\t\t24, 1, 1, 1, 0 },\n\t\t{ \"System \",\t\t25, 1, 1, 1, 0 },\n\t\t{ \"PWM\",\t\t26, 1, 1, 1, 0 },\n\t\t{ \"CPU Fan\",\t\t32, 2, 60, 1, 0 },\n\t\t{ \"NB Fan\",\t\t33, 2, 60, 1, 0 },\n\t\t{ \"SYS FAN\",\t\t34, 2, 60, 1, 0 },\n\t\t{ \"AUX1 Fan\",\t\t35, 2, 60, 1, 0 },\n\t\t{ NULL, 0, 0, 0, 0, 0 } }\n\t},\n\t{ 0x000D, \"Abit AW8\", {\n\t\t{ \"CPU Core\",\t\t 0, 0, 10, 1, 0 },\n\t\t{ \"DDR\",\t\t 1, 0, 10, 1, 0 },\n\t\t{ \"DDR VTT\",\t\t 2, 0, 10, 1, 0 },\n\t\t{ \"CPU VTT 1.2V\",\t 3, 0, 10, 1, 0 },\n\t\t{ \"MCH & PCIE 1.5V\",\t 4, 0, 10, 1, 0 },\n\t\t{ \"MCH 2.5V\",\t\t 5, 0, 20, 1, 0 },\n\t\t{ \"ICH 1.05V\",\t\t 6, 0, 10, 1, 0 },\n\t\t{ \"ATX +12V (24-Pin)\",\t 7, 0, 60, 1, 0 },\n\t\t{ \"ATX +12V (4-pin)\",\t 8, 0, 60, 1, 0 },\n\t\t{ \"ATX +5V\",\t\t 9, 0, 30, 1, 0 },\n\t\t{ \"+3.3V\",\t\t10, 0, 20, 1, 0 },\n\t\t{ \"5VSB\",\t\t11, 0, 30, 1, 0 },\n\t\t{ \"CPU\",\t\t24, 1, 1, 1, 0 },\n\t\t{ \"System \",\t\t25, 1, 1, 1, 0 },\n\t\t{ \"PWM1\",\t\t26, 1, 1, 1, 0 },\n\t\t{ \"PWM2\",\t\t27, 1, 1, 1, 0 },\n\t\t{ \"PWM3\",\t\t28, 1, 1, 1, 0 },\n\t\t{ \"PWM4\",\t\t29, 1, 1, 1, 0 },\n\t\t{ \"CPU Fan\",\t\t32, 2, 60, 1, 0 },\n\t\t{ \"NB Fan\",\t\t33, 2, 60, 1, 0 },\n\t\t{ \"SYS Fan\",\t\t34, 2, 60, 1, 0 },\n\t\t{ \"AUX1 Fan\",\t\t35, 2, 60, 1, 0 },\n\t\t{ \"AUX2 Fan\",\t\t36, 2, 60, 1, 0 },\n\t\t{ \"AUX3 Fan\",\t\t37, 2, 60, 1, 0 },\n\t\t{ \"AUX4 Fan\",\t\t38, 2, 60, 1, 0 },\n\t\t{ \"AUX5 Fan\",\t\t39, 2, 60, 1, 0 },\n\t\t{ NULL, 0, 0, 0, 0, 0 } }\n\t},\n\t{ 0x000E, \"AL-8\", {\n\t\t{ \"CPU Core\",\t\t 0, 0, 10, 1, 0 },\n\t\t{ \"DDR\",\t\t 1, 0, 10, 1, 0 },\n\t\t{ \"DDR VTT\",\t\t 2, 0, 10, 1, 0 },\n\t\t{ \"CPU VTT 1.2V\",\t 3, 0, 10, 1, 0 },\n\t\t{ \"MCH & PCIE 1.5V\",\t 4, 0, 10, 1, 0 },\n\t\t{ \"MCH 2.5V\",\t\t 5, 0, 20, 1, 0 },\n\t\t{ \"ICH 1.05V\",\t\t 6, 0, 10, 1, 0 },\n\t\t{ \"ATX +12V (24-Pin)\",\t 7, 0, 60, 1, 0 },\n\t\t{ \"ATX +12V (4-pin)\",\t 8, 0, 60, 1, 0 },\n\t\t{ \"ATX +5V\",\t\t 9, 0, 30, 1, 0 },\n\t\t{ \"+3.3V\",\t\t10, 0, 20, 1, 0 },\n\t\t{ \"5VSB\",\t\t11, 0, 30, 1, 0 },\n\t\t{ \"CPU\",\t\t24, 1, 1, 1, 0 },\n\t\t{ \"System \",\t\t25, 1, 1, 1, 0 },\n\t\t{ \"PWM\",\t\t26, 1, 1, 1, 0 },\n\t\t{ \"CPU Fan\",\t\t32, 2, 60, 1, 0 },\n\t\t{ \"NB Fan\",\t\t33, 2, 60, 1, 0 },\n\t\t{ \"SYS Fan\",\t\t34, 2, 60, 1, 0 },\n\t\t{ NULL, 0, 0, 0, 0, 0 } }\n\t},\n\t{ 0x000F, \"unknown\", {\n\t\t{ \"CPU Core\",\t\t 0, 0, 10, 1, 0 },\n\t\t{ \"DDR\",\t\t 1, 0, 10, 1, 0 },\n\t\t{ \"DDR VTT\",\t\t 2, 0, 10, 1, 0 },\n\t\t{ \"CPU VTT 1.2V\",\t 3, 0, 10, 1, 0 },\n\t\t{ \"MCH & PCIE 1.5V\",\t 4, 0, 10, 1, 0 },\n\t\t{ \"MCH 2.5V\",\t\t 5, 0, 20, 1, 0 },\n\t\t{ \"ICH 1.05V\",\t\t 6, 0, 10, 1, 0 },\n\t\t{ \"ATX +12V (24-Pin)\",\t 7, 0, 60, 1, 0 },\n\t\t{ \"ATX +12V (4-pin)\",\t 8, 0, 60, 1, 0 },\n\t\t{ \"ATX +5V\",\t\t 9, 0, 30, 1, 0 },\n\t\t{ \"+3.3V\",\t\t10, 0, 20, 1, 0 },\n\t\t{ \"5VSB\",\t\t11, 0, 30, 1, 0 },\n\t\t{ \"CPU\",\t\t24, 1, 1, 1, 0 },\n\t\t{ \"System \",\t\t25, 1, 1, 1, 0 },\n\t\t{ \"PWM\",\t\t26, 1, 1, 1, 0 },\n\t\t{ \"CPU Fan\",\t\t32, 2, 60, 1, 0 },\n\t\t{ \"NB Fan\",\t\t33, 2, 60, 1, 0 },\n\t\t{ \"SYS Fan\",\t\t34, 2, 60, 1, 0 },\n\t\t{ NULL, 0, 0, 0, 0, 0 } }\n\t},\n\t{ 0x0010, \"Abit NI8 SLI GR\", {\n\t\t{ \"CPU Core\",\t\t 0, 0, 10, 1, 0 },\n\t\t{ \"DDR\",\t\t 1, 0, 10, 1, 0 },\n\t\t{ \"DDR VTT\",\t\t 2, 0, 10, 1, 0 },\n\t\t{ \"CPU VTT 1.2V\",\t 3, 0, 10, 1, 0 },\n\t\t{ \"NB 1.4V\",\t\t 4, 0, 10, 1, 0 },\n\t\t{ \"SB 1.5V\",\t\t 6, 0, 10, 1, 0 },\n\t\t{ \"ATX +12V (24-Pin)\",\t 7, 0, 60, 1, 0 },\n\t\t{ \"ATX +12V (4-pin)\",\t 8, 0, 60, 1, 0 },\n\t\t{ \"ATX +5V\",\t\t 9, 0, 30, 1, 0 },\n\t\t{ \"+3.3V\",\t\t10, 0, 20, 1, 0 },\n\t\t{ \"5VSB\",\t\t11, 0, 30, 1, 0 },\n\t\t{ \"CPU\",\t\t24, 1, 1, 1, 0 },\n\t\t{ \"SYS\",\t\t25, 1, 1, 1, 0 },\n\t\t{ \"PWM\",\t\t26, 1, 1, 1, 0 },\n\t\t{ \"CPU Fan\",\t\t32, 2, 60, 1, 0 },\n\t\t{ \"NB Fan\",\t\t33, 2, 60, 1, 0 },\n\t\t{ \"SYS Fan\",\t\t34, 2, 60, 1, 0 },\n\t\t{ \"AUX1 Fan\",\t\t35, 2, 60, 1, 0 },\n\t\t{ \"OTES1 Fan\",\t\t36, 2, 60, 1, 0 },\n\t\t{ NULL, 0, 0, 0, 0, 0 } }\n\t},\n\t{ 0x0011, \"Abit AT8 32X\", {\n\t\t{ \"CPU Core\",\t\t 0, 0, 10, 1, 0 },\n\t\t{ \"DDR\",\t\t 1, 0, 20, 1, 0 },\n\t\t{ \"DDR VTT\",\t\t 2, 0, 10, 1, 0 },\n\t\t{ \"CPU VDDA 2.5V\",\t 6, 0, 20, 1, 0 },\n\t\t{ \"NB 1.8V\",\t\t 4, 0, 10, 1, 0 },\n\t\t{ \"NB 1.8V Dual\",\t 5, 0, 10, 1, 0 },\n\t\t{ \"HTV 1.2\",\t\t 3, 0, 10, 1, 0 },\n\t\t{ \"PCIE 1.2V\",\t\t12, 0, 10, 1, 0 },\n\t\t{ \"NB 1.2V\",\t\t13, 0, 10, 1, 0 },\n\t\t{ \"ATX +12V (24-Pin)\",\t 7, 0, 60, 1, 0 },\n\t\t{ \"ATX +12V (4-pin)\",\t 8, 0, 60, 1, 0 },\n\t\t{ \"ATX +5V\",\t\t 9, 0, 30, 1, 0 },\n\t\t{ \"+3.3V\",\t\t10, 0, 20, 1, 0 },\n\t\t{ \"5VSB\",\t\t11, 0, 30, 1, 0 },\n\t\t{ \"CPU\",\t\t24, 1, 1, 1, 0 },\n\t\t{ \"NB\",\t\t\t25, 1, 1, 1, 0 },\n\t\t{ \"System\",\t\t26, 1, 1, 1, 0 },\n\t\t{ \"PWM\",\t\t27, 1, 1, 1, 0 },\n\t\t{ \"CPU Fan\",\t\t32, 2, 60, 1, 0 },\n\t\t{ \"NB Fan\",\t\t33, 2, 60, 1, 0 },\n\t\t{ \"SYS Fan\",\t\t34, 2, 60, 1, 0 },\n\t\t{ \"AUX1 Fan\",\t\t35, 2, 60, 1, 0 },\n\t\t{ \"AUX2 Fan\",\t\t36, 2, 60, 1, 0 },\n\t\t{ NULL, 0, 0, 0, 0, 0 } }\n\t},\n\t{ 0x0012, \"Abit AN8 32X\", {\n\t\t{ \"CPU Core\",\t\t 0, 0, 10, 1, 0 },\n\t\t{ \"DDR\",\t\t 1, 0, 20, 1, 0 },\n\t\t{ \"DDR VTT\",\t\t 2, 0, 10, 1, 0 },\n\t\t{ \"HyperTransport\",\t 3, 0, 10, 1, 0 },\n\t\t{ \"CPU VDDA 2.5V\",\t 5, 0, 20, 1, 0 },\n\t\t{ \"NB\",\t\t\t 4, 0, 10, 1, 0 },\n\t\t{ \"SB\",\t\t\t 6, 0, 10, 1, 0 },\n\t\t{ \"ATX +12V (24-Pin)\",\t 7, 0, 60, 1, 0 },\n\t\t{ \"ATX +12V (4-pin)\",\t 8, 0, 60, 1, 0 },\n\t\t{ \"ATX +5V\",\t\t 9, 0, 30, 1, 0 },\n\t\t{ \"+3.3V\",\t\t10, 0, 20, 1, 0 },\n\t\t{ \"5VSB\",\t\t11, 0, 30, 1, 0 },\n\t\t{ \"CPU\",\t\t24, 1, 1, 1, 0 },\n\t\t{ \"SYS\",\t\t25, 1, 1, 1, 0 },\n\t\t{ \"PWM\",\t\t26, 1, 1, 1, 0 },\n\t\t{ \"CPU Fan\",\t\t32, 2, 60, 1, 0 },\n\t\t{ \"NB Fan\",\t\t33, 2, 60, 1, 0 },\n\t\t{ \"SYS Fan\",\t\t34, 2, 60, 1, 0 },\n\t\t{ \"AUX1 Fan\",\t\t36, 2, 60, 1, 0 },\n\t\t{ NULL, 0, 0, 0, 0, 0 } }\n\t},\n\t{ 0x0013, \"unknown\", {\n\t\t{ \"CPU Core\",\t\t 0, 0, 10, 1, 0 },\n\t\t{ \"DDR\",\t\t 1, 0, 10, 1, 0 },\n\t\t{ \"DDR VTT\",\t\t 2, 0, 10, 1, 0 },\n\t\t{ \"CPU VTT 1.2V\",\t 3, 0, 10, 1, 0 },\n\t\t{ \"MCH & PCIE 1.5V\",\t 4, 0, 10, 1, 0 },\n\t\t{ \"MCH 2.5V\",\t\t 5, 0, 20, 1, 0 },\n\t\t{ \"ICH 1.05V\",\t\t 6, 0, 10, 1, 0 },\n\t\t{ \"ATX +12V (24-Pin)\",\t 7, 0, 60, 1, 0 },\n\t\t{ \"ATX +12V (4-pin)\",\t 8, 0, 60, 1, 0 },\n\t\t{ \"ATX +5V\",\t\t 9, 0, 30, 1, 0 },\n\t\t{ \"+3.3V\",\t\t10, 0, 20, 1, 0 },\n\t\t{ \"5VSB\",\t\t11, 0, 30, 1, 0 },\n\t\t{ \"CPU\",\t\t24, 1, 1, 1, 0 },\n\t\t{ \"System \",\t\t25, 1, 1, 1, 0 },\n\t\t{ \"PWM1\",\t\t26, 1, 1, 1, 0 },\n\t\t{ \"PWM2\",\t\t27, 1, 1, 1, 0 },\n\t\t{ \"PWM3\",\t\t28, 1, 1, 1, 0 },\n\t\t{ \"PWM4\",\t\t29, 1, 1, 1, 0 },\n\t\t{ \"CPU Fan\",\t\t32, 2, 60, 1, 0 },\n\t\t{ \"NB Fan\",\t\t33, 2, 60, 1, 0 },\n\t\t{ \"SYS Fan\",\t\t34, 2, 60, 1, 0 },\n\t\t{ \"AUX1 Fan\",\t\t35, 2, 60, 1, 0 },\n\t\t{ \"AUX2 Fan\",\t\t36, 2, 60, 1, 0 },\n\t\t{ \"AUX3 Fan\",\t\t37, 2, 60, 1, 0 },\n\t\t{ \"AUX4 Fan\",\t\t38, 2, 60, 1, 0 },\n\t\t{ NULL, 0, 0, 0, 0, 0 } }\n\t},\n\t{ 0x0014, \"Abit AB9 Pro\", {\n\t\t{ \"CPU Core\",\t\t 0, 0, 10, 1, 0 },\n\t\t{ \"DDR\",\t\t 1, 0, 10, 1, 0 },\n\t\t{ \"DDR VTT\",\t\t 2, 0, 10, 1, 0 },\n\t\t{ \"CPU VTT 1.2V\",\t 3, 0, 10, 1, 0 },\n\t\t{ \"MCH & PCIE 1.5V\",\t 4, 0, 10, 1, 0 },\n\t\t{ \"MCH 2.5V\",\t\t 5, 0, 20, 1, 0 },\n\t\t{ \"ICH 1.05V\",\t\t 6, 0, 10, 1, 0 },\n\t\t{ \"ATX +12V (24-Pin)\",\t 7, 0, 60, 1, 0 },\n\t\t{ \"ATX +12V (4-pin)\",\t 8, 0, 60, 1, 0 },\n\t\t{ \"ATX +5V\",\t\t 9, 0, 30, 1, 0 },\n\t\t{ \"+3.3V\",\t\t10, 0, 20, 1, 0 },\n\t\t{ \"5VSB\",\t\t11, 0, 30, 1, 0 },\n\t\t{ \"CPU\",\t\t24, 1, 1, 1, 0 },\n\t\t{ \"System \",\t\t25, 1, 1, 1, 0 },\n\t\t{ \"PWM\",\t\t26, 1, 1, 1, 0 },\n\t\t{ \"CPU Fan\",\t\t32, 2, 60, 1, 0 },\n\t\t{ \"NB Fan\",\t\t33, 2, 60, 1, 0 },\n\t\t{ \"SYS Fan\",\t\t34, 2, 60, 1, 0 },\n\t\t{ NULL, 0, 0, 0, 0, 0 } }\n\t},\n\t{ 0x0015, \"unknown\", {\n\t\t{ \"CPU Core\",\t\t 0, 0, 10, 1, 0 },\n\t\t{ \"DDR\",\t\t 1, 0, 20, 1, 0 },\n\t\t{ \"DDR VTT\",\t\t 2, 0, 10, 1, 0 },\n\t\t{ \"HyperTransport\",\t 3, 0, 10, 1, 0 },\n\t\t{ \"CPU VDDA 2.5V\",\t 5, 0, 20, 1, 0 },\n\t\t{ \"NB\",\t\t\t 4, 0, 10, 1, 0 },\n\t\t{ \"SB\",\t\t\t 6, 0, 10, 1, 0 },\n\t\t{ \"ATX +12V (24-Pin)\",\t 7, 0, 60, 1, 0 },\n\t\t{ \"ATX +12V (4-pin)\",\t 8, 0, 60, 1, 0 },\n\t\t{ \"ATX +5V\",\t\t 9, 0, 30, 1, 0 },\n\t\t{ \"+3.3V\",\t\t10, 0, 20, 1, 0 },\n\t\t{ \"5VSB\",\t\t11, 0, 30, 1, 0 },\n\t\t{ \"CPU\",\t\t24, 1, 1, 1, 0 },\n\t\t{ \"SYS\",\t\t25, 1, 1, 1, 0 },\n\t\t{ \"PWM\",\t\t26, 1, 1, 1, 0 },\n\t\t{ \"CPU Fan\",\t\t32, 2, 60, 1, 0 },\n\t\t{ \"NB Fan\",\t\t33, 2, 60, 1, 0 },\n\t\t{ \"SYS Fan\",\t\t34, 2, 60, 1, 0 },\n\t\t{ \"AUX1 Fan\",\t\t33, 2, 60, 1, 0 },\n\t\t{ \"AUX2 Fan\",\t\t35, 2, 60, 1, 0 },\n\t\t{ \"AUX3 Fan\",\t\t36, 2, 60, 1, 0 },\n\t\t{ NULL, 0, 0, 0, 0, 0 } }\n\t},\n\t{ 0x0016, \"AW9D-MAX\", {\n\t\t{ \"CPU Core\",\t\t 0, 0, 10, 1, 0 },\n\t\t{ \"DDR2\",\t\t 1, 0, 20, 1, 0 },\n\t\t{ \"DDR2 VTT\",\t\t 2, 0, 10, 1, 0 },\n\t\t{ \"CPU VTT 1.2V\",\t 3, 0, 10, 1, 0 },\n\t\t{ \"MCH & PCIE 1.5V\",\t 4, 0, 10, 1, 0 },\n\t\t{ \"MCH 2.5V\",\t\t 5, 0, 20, 1, 0 },\n\t\t{ \"ICH 1.05V\",\t\t 6, 0, 10, 1, 0 },\n\t\t{ \"ATX +12V (24-Pin)\",\t 7, 0, 60, 1, 0 },\n\t\t{ \"ATX +12V (4-pin)\",\t 8, 0, 60, 1, 0 },\n\t\t{ \"ATX +5V\",\t\t 9, 0, 30, 1, 0 },\n\t\t{ \"+3.3V\",\t\t10, 0, 20, 1, 0 },\n\t\t{ \"5VSB\",\t\t11, 0, 30, 1, 0 },\n\t\t{ \"CPU\",\t\t24, 1, 1, 1, 0 },\n\t\t{ \"System \",\t\t25, 1, 1, 1, 0 },\n\t\t{ \"PWM1\",\t\t26, 1, 1, 1, 0 },\n\t\t{ \"PWM2\",\t\t27, 1, 1, 1, 0 },\n\t\t{ \"PWM3\",\t\t28, 1, 1, 1, 0 },\n\t\t{ \"PWM4\",\t\t29, 1, 1, 1, 0 },\n\t\t{ \"CPU Fan\",\t\t32, 2, 60, 1, 0 },\n\t\t{ \"NB Fan\",\t\t33, 2, 60, 1, 0 },\n\t\t{ \"SYS Fan\",\t\t34, 2, 60, 1, 0 },\n\t\t{ \"AUX1 Fan\",\t\t35, 2, 60, 1, 0 },\n\t\t{ \"AUX2 Fan\",\t\t36, 2, 60, 1, 0 },\n\t\t{ \"AUX3 Fan\",\t\t37, 2, 60, 1, 0 },\n\t\t{ \"OTES1 Fan\",\t\t38, 2, 60, 1, 0 },\n\t\t{ NULL, 0, 0, 0, 0, 0 } }\n\t},\n\t{ 0x0017, \"unknown\", {\n\t\t{ \"CPU Core\",\t\t 0, 0, 10, 1, 0 },\n\t\t{ \"DDR2\",\t\t 1, 0, 20, 1, 0 },\n\t\t{ \"DDR2 VTT\",\t\t 2, 0, 10, 1, 0 },\n\t\t{ \"HyperTransport\",\t 3, 0, 10, 1, 0 },\n\t\t{ \"CPU VDDA 2.5V\",\t 6, 0, 20, 1, 0 },\n\t\t{ \"NB 1.8V\",\t\t 4, 0, 10, 1, 0 },\n\t\t{ \"NB 1.2V \",\t\t13, 0, 10, 1, 0 },\n\t\t{ \"SB 1.2V\",\t\t 5, 0, 10, 1, 0 },\n\t\t{ \"PCIE 1.2V\",\t\t12, 0, 10, 1, 0 },\n\t\t{ \"ATX +12V (24-Pin)\",\t 7, 0, 60, 1, 0 },\n\t\t{ \"ATX +12V (4-pin)\",\t 8, 0, 60, 1, 0 },\n\t\t{ \"ATX +5V\",\t\t 9, 0, 30, 1, 0 },\n\t\t{ \"ATX +3.3V\",\t\t10, 0, 20, 1, 0 },\n\t\t{ \"ATX 5VSB\",\t\t11, 0, 30, 1, 0 },\n\t\t{ \"CPU\",\t\t24, 1, 1, 1, 0 },\n\t\t{ \"System \",\t\t26, 1, 1, 1, 0 },\n\t\t{ \"PWM\",\t\t27, 1, 1, 1, 0 },\n\t\t{ \"CPU FAN\",\t\t32, 2, 60, 1, 0 },\n\t\t{ \"SYS FAN\",\t\t34, 2, 60, 1, 0 },\n\t\t{ \"AUX1 FAN\",\t\t35, 2, 60, 1, 0 },\n\t\t{ \"AUX2 FAN\",\t\t36, 2, 60, 1, 0 },\n\t\t{ \"AUX3 FAN\",\t\t37, 2, 60, 1, 0 },\n\t\t{ NULL, 0, 0, 0, 0, 0 } }\n\t},\n\t{ 0x0018, \"unknown\", {\n\t\t{ \"CPU Core\",\t\t 0, 0, 10, 1, 0 },\n\t\t{ \"DDR2\",\t\t 1, 0, 20, 1, 0 },\n\t\t{ \"DDR2 VTT\",\t\t 2, 0, 10, 1, 0 },\n\t\t{ \"CPU VTT\",\t\t 3, 0, 10, 1, 0 },\n\t\t{ \"MCH 1.25V\",\t\t 4, 0, 10, 1, 0 },\n\t\t{ \"ICHIO 1.5V\",\t\t 5, 0, 10, 1, 0 },\n\t\t{ \"ICH 1.05V\",\t\t 6, 0, 10, 1, 0 },\n\t\t{ \"ATX +12V (24-Pin)\",\t 7, 0, 60, 1, 0 },\n\t\t{ \"ATX +12V (4-pin)\",\t 8, 0, 60, 1, 0 },\n\t\t{ \"ATX +5V\",\t\t 9, 0, 30, 1, 0 },\n\t\t{ \"+3.3V\",\t\t10, 0, 20, 1, 0 },\n\t\t{ \"5VSB\",\t\t11, 0, 30, 1, 0 },\n\t\t{ \"CPU\",\t\t24, 1, 1, 1, 0 },\n\t\t{ \"System \",\t\t25, 1, 1, 1, 0 },\n\t\t{ \"PWM Phase1\",\t\t26, 1, 1, 1, 0 },\n\t\t{ \"PWM Phase2\",\t\t27, 1, 1, 1, 0 },\n\t\t{ \"PWM Phase3\",\t\t28, 1, 1, 1, 0 },\n\t\t{ \"PWM Phase4\",\t\t29, 1, 1, 1, 0 },\n\t\t{ \"PWM Phase5\",\t\t30, 1, 1, 1, 0 },\n\t\t{ \"CPU Fan\",\t\t32, 2, 60, 1, 0 },\n\t\t{ \"SYS Fan\",\t\t34, 2, 60, 1, 0 },\n\t\t{ \"AUX1 Fan\",\t\t33, 2, 60, 1, 0 },\n\t\t{ \"AUX2 Fan\",\t\t35, 2, 60, 1, 0 },\n\t\t{ \"AUX3 Fan\",\t\t36, 2, 60, 1, 0 },\n\t\t{ NULL, 0, 0, 0, 0, 0 } }\n\t},\n\t{ 0x0019, \"unknown\", {\n\t\t{ \"CPU Core\",\t\t 7, 0, 10, 1, 0 },\n\t\t{ \"DDR2\",\t\t13, 0, 20, 1, 0 },\n\t\t{ \"DDR2 VTT\",\t\t14, 0, 10, 1, 0 },\n\t\t{ \"CPU VTT\",\t\t 3, 0, 20, 1, 0 },\n\t\t{ \"NB 1.2V \",\t\t 4, 0, 10, 1, 0 },\n\t\t{ \"SB 1.5V\",\t\t 6, 0, 10, 1, 0 },\n\t\t{ \"HyperTransport\",\t 5, 0, 10, 1, 0 },\n\t\t{ \"ATX +12V (24-Pin)\",\t12, 0, 60, 1, 0 },\n\t\t{ \"ATX +12V (4-pin)\",\t 8, 0, 60, 1, 0 },\n\t\t{ \"ATX +5V\",\t\t 9, 0, 30, 1, 0 },\n\t\t{ \"ATX +3.3V\",\t\t10, 0, 20, 1, 0 },\n\t\t{ \"ATX 5VSB\",\t\t11, 0, 30, 1, 0 },\n\t\t{ \"CPU\",\t\t24, 1, 1, 1, 0 },\n\t\t{ \"System \",\t\t25, 1, 1, 1, 0 },\n\t\t{ \"PWM Phase1\",\t\t26, 1, 1, 1, 0 },\n\t\t{ \"PWM Phase2\",\t\t27, 1, 1, 1, 0 },\n\t\t{ \"PWM Phase3\",\t\t28, 1, 1, 1, 0 },\n\t\t{ \"PWM Phase4\",\t\t29, 1, 1, 1, 0 },\n\t\t{ \"PWM Phase5\",\t\t30, 1, 1, 1, 0 },\n\t\t{ \"CPU FAN\",\t\t32, 2, 60, 1, 0 },\n\t\t{ \"SYS FAN\",\t\t34, 2, 60, 1, 0 },\n\t\t{ \"AUX1 FAN\",\t\t33, 2, 60, 1, 0 },\n\t\t{ \"AUX2 FAN\",\t\t35, 2, 60, 1, 0 },\n\t\t{ \"AUX3 FAN\",\t\t36, 2, 60, 1, 0 },\n\t\t{ NULL, 0, 0, 0, 0, 0 } }\n\t},\n\t{ 0x001A, \"Abit IP35 Pro\", {\n\t\t{ \"CPU Core\",\t\t 0, 0, 10, 1, 0 },\n\t\t{ \"DDR2\",\t\t 1, 0, 20, 1, 0 },\n\t\t{ \"DDR2 VTT\",\t\t 2, 0, 10, 1, 0 },\n\t\t{ \"CPU VTT 1.2V\",\t 3, 0, 10, 1, 0 },\n\t\t{ \"MCH 1.25V\",\t\t 4, 0, 10, 1, 0 },\n\t\t{ \"ICHIO 1.5V\",\t\t 5, 0, 10, 1, 0 },\n\t\t{ \"ICH 1.05V\",\t\t 6, 0, 10, 1, 0 },\n\t\t{ \"ATX +12V (24-Pin)\",\t 7, 0, 60, 1, 0 },\n\t\t{ \"ATX +12V (8-pin)\",\t 8, 0, 60, 1, 0 },\n\t\t{ \"ATX +5V\",\t\t 9, 0, 30, 1, 0 },\n\t\t{ \"+3.3V\",\t\t10, 0, 20, 1, 0 },\n\t\t{ \"5VSB\",\t\t11, 0, 30, 1, 0 },\n\t\t{ \"CPU\",\t\t24, 1, 1, 1, 0 },\n\t\t{ \"System \",\t\t25, 1, 1, 1, 0 },\n\t\t{ \"PWM \",\t\t26, 1, 1, 1, 0 },\n\t\t{ \"PWM Phase2\",\t\t27, 1, 1, 1, 0 },\n\t\t{ \"PWM Phase3\",\t\t28, 1, 1, 1, 0 },\n\t\t{ \"PWM Phase4\",\t\t29, 1, 1, 1, 0 },\n\t\t{ \"PWM Phase5\",\t\t30, 1, 1, 1, 0 },\n\t\t{ \"CPU Fan\",\t\t32, 2, 60, 1, 0 },\n\t\t{ \"SYS Fan\",\t\t34, 2, 60, 1, 0 },\n\t\t{ \"AUX1 Fan\",\t\t33, 2, 60, 1, 0 },\n\t\t{ \"AUX2 Fan\",\t\t35, 2, 60, 1, 0 },\n\t\t{ \"AUX3 Fan\",\t\t36, 2, 60, 1, 0 },\n\t\t{ NULL, 0, 0, 0, 0, 0 } }\n\t},\n\t{ 0x001B, \"unknown\", {\n\t\t{ \"CPU Core\",\t\t 0, 0, 10, 1, 0 },\n\t\t{ \"DDR3\",\t\t 1, 0, 20, 1, 0 },\n\t\t{ \"DDR3 VTT\",\t\t 2, 0, 10, 1, 0 },\n\t\t{ \"CPU VTT\",\t\t 3, 0, 10, 1, 0 },\n\t\t{ \"MCH 1.25V\",\t\t 4, 0, 10, 1, 0 },\n\t\t{ \"ICHIO 1.5V\",\t\t 5, 0, 10, 1, 0 },\n\t\t{ \"ICH 1.05V\",\t\t 6, 0, 10, 1, 0 },\n\t\t{ \"ATX +12V (24-Pin)\",\t 7, 0, 60, 1, 0 },\n\t\t{ \"ATX +12V (8-pin)\",\t 8, 0, 60, 1, 0 },\n\t\t{ \"ATX +5V\",\t\t 9, 0, 30, 1, 0 },\n\t\t{ \"+3.3V\",\t\t10, 0, 20, 1, 0 },\n\t\t{ \"5VSB\",\t\t11, 0, 30, 1, 0 },\n\t\t{ \"CPU\",\t\t24, 1, 1, 1, 0 },\n\t\t{ \"System\",\t\t25, 1, 1, 1, 0 },\n\t\t{ \"PWM Phase1\",\t\t26, 1, 1, 1, 0 },\n\t\t{ \"PWM Phase2\",\t\t27, 1, 1, 1, 0 },\n\t\t{ \"PWM Phase3\",\t\t28, 1, 1, 1, 0 },\n\t\t{ \"PWM Phase4\",\t\t29, 1, 1, 1, 0 },\n\t\t{ \"PWM Phase5\",\t\t30, 1, 1, 1, 0 },\n\t\t{ \"CPU Fan\",\t\t32, 2, 60, 1, 0 },\n\t\t{ \"SYS Fan\",\t\t34, 2, 60, 1, 0 },\n\t\t{ \"AUX1 Fan\",\t\t33, 2, 60, 1, 0 },\n\t\t{ \"AUX2 Fan\",\t\t35, 2, 60, 1, 0 },\n\t\t{ \"AUX3 Fan\",\t\t36, 2, 60, 1, 0 },\n\t\t{ NULL, 0, 0, 0, 0, 0 } }\n\t},\n\t{ 0x001C, \"unknown\", {\n\t\t{ \"CPU Core\",\t\t 0, 0, 10, 1, 0 },\n\t\t{ \"DDR2\",\t\t 1, 0, 20, 1, 0 },\n\t\t{ \"DDR2 VTT\",\t\t 2, 0, 10, 1, 0 },\n\t\t{ \"CPU VTT\",\t\t 3, 0, 10, 1, 0 },\n\t\t{ \"MCH 1.25V\",\t\t 4, 0, 10, 1, 0 },\n\t\t{ \"ICHIO 1.5V\",\t\t 5, 0, 10, 1, 0 },\n\t\t{ \"ICH 1.05V\",\t\t 6, 0, 10, 1, 0 },\n\t\t{ \"ATX +12V (24-Pin)\",\t 7, 0, 60, 1, 0 },\n\t\t{ \"ATX +12V (8-pin)\",\t 8, 0, 60, 1, 0 },\n\t\t{ \"ATX +5V\",\t\t 9, 0, 30, 1, 0 },\n\t\t{ \"+3.3V\",\t\t10, 0, 20, 1, 0 },\n\t\t{ \"5VSB\",\t\t11, 0, 30, 1, 0 },\n\t\t{ \"CPU\",\t\t24, 1, 1, 1, 0 },\n\t\t{ \"System\",\t\t25, 1, 1, 1, 0 },\n\t\t{ \"PWM Phase1\",\t\t26, 1, 1, 1, 0 },\n\t\t{ \"PWM Phase2\",\t\t27, 1, 1, 1, 0 },\n\t\t{ \"PWM Phase3\",\t\t28, 1, 1, 1, 0 },\n\t\t{ \"PWM Phase4\",\t\t29, 1, 1, 1, 0 },\n\t\t{ \"PWM Phase5\",\t\t30, 1, 1, 1, 0 },\n\t\t{ \"CPU Fan\",\t\t32, 2, 60, 1, 0 },\n\t\t{ \"SYS Fan\",\t\t34, 2, 60, 1, 0 },\n\t\t{ \"AUX1 Fan\",\t\t33, 2, 60, 1, 0 },\n\t\t{ \"AUX2 Fan\",\t\t35, 2, 60, 1, 0 },\n\t\t{ \"AUX3 Fan\",\t\t36, 2, 60, 1, 0 },\n\t\t{ NULL, 0, 0, 0, 0, 0 } }\n\t},\n\t{ 0x0000, NULL, { { NULL, 0, 0, 0, 0, 0 } } }\n};\n\n\n/* Insmod parameters */\nstatic int force;\nmodule_param(force, bool, 0);\nMODULE_PARM_DESC(force, \"Set to one to force detection.\");\n/* Default verbose is 1, since this driver is still in the testing phase */\nstatic int verbose = 1;\nmodule_param(verbose, bool, 0644);\nMODULE_PARM_DESC(verbose, \"Enable/disable verbose error reporting\");\n\n\n/* wait while the uguru is busy (usually after a write) */\nstatic int abituguru3_wait_while_busy(struct abituguru3_data *data)\n{\n\tu8 x;\n\tint timeout = ABIT_UGURU3_WAIT_TIMEOUT;\n\n\twhile ((x = inb_p(data->addr + ABIT_UGURU3_DATA)) &\n\t\t\tABIT_UGURU3_STATUS_BUSY) {\n\t\ttimeout--;\n\t\tif (timeout == 0)\n\t\t\treturn x;\n\t\t/* sleep a bit before our last try, to give the uGuru3 one\n\t\t last chance to respond. */\n\t\tif (timeout == 1)\n\t\t\tmsleep(1);\n\t}\n\treturn ABIT_UGURU3_SUCCESS;\n}\n\n/* wait till uguru is ready to be read */\nstatic int abituguru3_wait_for_read(struct abituguru3_data *data)\n{\n\tu8 x;\n\tint timeout = ABIT_UGURU3_WAIT_TIMEOUT;\n\n\twhile (!((x = inb_p(data->addr + ABIT_UGURU3_DATA)) &\n\t\t\tABIT_UGURU3_STATUS_READY_FOR_READ)) {\n\t\ttimeout--;\n\t\tif (timeout == 0)\n\t\t\treturn x;\n\t\t/* sleep a bit before our last try, to give the uGuru3 one\n\t\t last chance to respond. */\n\t\tif (timeout == 1)\n\t\t\tmsleep(1);\n\t}\n\treturn ABIT_UGURU3_SUCCESS;\n}\n\n/* This synchronizes us with the uGuru3's protocol state machine, this\n must be done before each command. */\nstatic int abituguru3_synchronize(struct abituguru3_data *data)\n{\n\tint x, timeout = ABIT_UGURU3_SYNCHRONIZE_TIMEOUT;\n\n\tif ((x = abituguru3_wait_while_busy(data)) != ABIT_UGURU3_SUCCESS) {\n\t\tABIT_UGURU3_DEBUG(\"synchronize timeout during initial busy \"\n\t\t\t\"wait, status: 0x%02x\\n\", x);\n\t\treturn -EIO;\n\t}\n\n\toutb(0x20, data->addr + ABIT_UGURU3_DATA);\n\tif ((x = abituguru3_wait_while_busy(data)) != ABIT_UGURU3_SUCCESS) {\n\t\tABIT_UGURU3_DEBUG(\"synchronize timeout after sending 0x20, \"\n\t\t\t\"status: 0x%02x\\n\", x);\n\t\treturn -EIO;\n\t}\n\n\toutb(0x10, data->addr + ABIT_UGURU3_CMD);\n\tif ((x = abituguru3_wait_while_busy(data)) != ABIT_UGURU3_SUCCESS) {\n\t\tABIT_UGURU3_DEBUG(\"synchronize timeout after sending 0x10, \"\n\t\t\t\"status: 0x%02x\\n\", x);\n\t\treturn -EIO;\n\t}\n\n\toutb(0x00, data->addr + ABIT_UGURU3_CMD);\n\tif ((x = abituguru3_wait_while_busy(data)) != ABIT_UGURU3_SUCCESS) {\n\t\tABIT_UGURU3_DEBUG(\"synchronize timeout after sending 0x00, \"\n\t\t\t\"status: 0x%02x\\n\", x);\n\t\treturn -EIO;\n\t}\n\n\tif ((x = abituguru3_wait_for_read(data)) != ABIT_UGURU3_SUCCESS) {\n\t\tABIT_UGURU3_DEBUG(\"synchronize timeout waiting for read, \"\n\t\t\t\"status: 0x%02x\\n\", x);\n\t\treturn -EIO;\n\t}\n\n\twhile ((x = inb(data->addr + ABIT_UGURU3_CMD)) != 0xAC) {\n\t\ttimeout--;\n\t\tif (timeout == 0) {\n\t\t\tABIT_UGURU3_DEBUG(\"synchronize timeout cmd does not \"\n\t\t\t\t\"hold 0xAC after synchronize, cmd: 0x%02x\\n\",\n\t\t\t\tx);\n\t\t\treturn -EIO;\n\t\t}\n\t\tmsleep(1);\n\t}\n\treturn 0;\n}\n\n/* Read count bytes from sensor sensor_addr in bank bank_addr and store the\n result in buf */\nstatic int abituguru3_read(struct abituguru3_data *data, u8 bank, u8 offset,\n\tu8 count, u8 *buf)\n{\n\tint i, x;\n\n\tif ((x = abituguru3_synchronize(data)))\n\t\treturn x;\n\n\toutb(0x1A, data->addr + ABIT_UGURU3_DATA);\n\tif ((x = abituguru3_wait_while_busy(data)) != ABIT_UGURU3_SUCCESS) {\n\t\tABIT_UGURU3_DEBUG(\"read from 0x%02x:0x%02x timed out after \"\n\t\t\t\"sending 0x1A, status: 0x%02x\\n\", (unsigned int)bank,\n\t\t\t(unsigned int)offset, x);\n\t\treturn -EIO;\n\t}\n\n\toutb(bank, data->addr + ABIT_UGURU3_CMD);\n\tif ((x = abituguru3_wait_while_busy(data)) != ABIT_UGURU3_SUCCESS) {\n\t\tABIT_UGURU3_DEBUG(\"read from 0x%02x:0x%02x timed out after \"\n\t\t\t\"sending the bank, status: 0x%02x\\n\",\n\t\t\t(unsigned int)bank, (unsigned int)offset, x);\n\t\treturn -EIO;\n\t}\n\n\toutb(offset, data->addr + ABIT_UGURU3_CMD);\n\tif ((x = abituguru3_wait_while_busy(data)) != ABIT_UGURU3_SUCCESS) {\n\t\tABIT_UGURU3_DEBUG(\"read from 0x%02x:0x%02x timed out after \"\n\t\t\t\"sending the offset, status: 0x%02x\\n\",\n\t\t\t(unsigned int)bank, (unsigned int)offset, x);\n\t\treturn -EIO;\n\t}\n\n\toutb(count, data->addr + ABIT_UGURU3_CMD);\n\tif ((x = abituguru3_wait_while_busy(data)) != ABIT_UGURU3_SUCCESS) {\n\t\tABIT_UGURU3_DEBUG(\"read from 0x%02x:0x%02x timed out after \"\n\t\t\t\"sending the count, status: 0x%02x\\n\",\n\t\t\t(unsigned int)bank, (unsigned int)offset, x);\n\t\treturn -EIO;\n\t}\n\n\tfor (i = 0; i < count; i++) {\n\t\tif ((x = abituguru3_wait_for_read(data)) !=\n\t\t\t\tABIT_UGURU3_SUCCESS) {\n\t\t\tABIT_UGURU3_DEBUG(\"timeout reading byte %d from \"\n\t\t\t\t\"0x%02x:0x%02x, status: 0x%02x\\n\", i,\n\t\t\t\t(unsigned int)bank, (unsigned int)offset, x);\n\t\t\tbreak;\n\t\t}\n\t\tbuf[i] = inb(data->addr + ABIT_UGURU3_CMD);\n\t}\n\treturn i;\n}\n\n/* Sensor settings are stored 1 byte per offset with the bytes\n placed add consecutive offsets. */\nstatic int abituguru3_read_increment_offset(struct abituguru3_data *data,\n\t\t\t\t\t u8 bank, u8 offset, u8 count,\n\t\t\t\t\t u8 *buf, int offset_count)\n{\n\tint i, x;\n\n\tfor (i = 0; i < offset_count; i++)\n\t\tif ((x = abituguru3_read(data, bank, offset + i, count,\n\t\t\t\tbuf + i * count)) != count)\n\t\t\treturn i * count + (i && (x < 0)) ? 0 : x;\n\n\treturn i * count;\n}\n\n/* Following are the sysfs callback functions. These functions expect:\n sensor_device_attribute_2->index: index into the data->sensors array\n sensor_device_attribute_2->nr: register offset, bitmask or NA. */\nstatic struct abituguru3_data *abituguru3_update_device(struct device *dev);\n\nstatic ssize_t show_value(struct device *dev,\n\tstruct device_attribute *devattr, char *buf)\n{\n\tint value;\n\tstruct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr);\n\tstruct abituguru3_data *data = abituguru3_update_device(dev);\n\tconst struct abituguru3_sensor_info *sensor;\n\n\tif (!data)\n\t\treturn -EIO;\n\n\tsensor = &data->sensors[attr->index];\n\n\t/* are we reading a setting, or is this a normal read? */\n\tif (attr->nr)\n\t\tvalue = data->settings[sensor->port][attr->nr];\n\telse\n\t\tvalue = data->value[sensor->port];\n\n\t/* convert the value */\n\tvalue = (value * sensor->multiplier) / sensor->divisor +\n\t\tsensor->offset;\n\n\t/* alternatively we could update the sensors settings struct for this,\n\t but then its contents would differ from the windows sw ini files */\n\tif (sensor->type == ABIT_UGURU3_TEMP_SENSOR)\n\t\tvalue *= 1000;\n\n\treturn sprintf(buf, \"%d\\n\", value);\n}\n\nstatic ssize_t show_alarm(struct device *dev,\n\tstruct device_attribute *devattr, char *buf)\n{\n\tint port;\n\tstruct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr);\n\tstruct abituguru3_data *data = abituguru3_update_device(dev);\n\n\tif (!data)\n\t\treturn -EIO;\n\n\tport = data->sensors[attr->index].port;\n\n\t/* See if the alarm bit for this sensor is set and if a bitmask is\n\t given in attr->nr also check if the alarm matches the type of alarm\n\t we're looking for (for volt it can be either low or high). The type\n\t is stored in a few readonly bits in the settings of the sensor. */\n\tif ((data->alarms[port / 8] & (0x01 << (port % 8))) &&\n\t\t\t(!attr->nr || (data->settings[port][0] & attr->nr)))\n\t\treturn sprintf(buf, \"1\\n\");\n\telse\n\t\treturn sprintf(buf, \"0\\n\");\n}\n\nstatic ssize_t show_mask(struct device *dev,\n\tstruct device_attribute *devattr, char *buf)\n{\n\tstruct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr);\n\tstruct abituguru3_data *data = dev_get_drvdata(dev);\n\n\tif (data->settings[data->sensors[attr->index].port][0] & attr->nr)\n\t\treturn sprintf(buf, \"1\\n\");\n\telse\n\t\treturn sprintf(buf, \"0\\n\");\n}\n\nstatic ssize_t show_label(struct device *dev,\n\tstruct device_attribute *devattr, char *buf)\n{\n\tstruct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr);\n\tstruct abituguru3_data *data = dev_get_drvdata(dev);\n\n\treturn sprintf(buf, \"%s\\n\", data->sensors[attr->index].name);\n}\n\nstatic ssize_t show_name(struct device *dev,\n\tstruct device_attribute *devattr, char *buf)\n{\n\treturn sprintf(buf, \"%s\\n\", ABIT_UGURU3_NAME);\n}\n\n/* Sysfs attr templates, the real entries are generated automatically. */\nstatic const\nstruct sensor_device_attribute_2 abituguru3_sysfs_templ[3][10] = { {\n\tSENSOR_ATTR_2(in%d_input, 0444, show_value, NULL, 0, 0),\n\tSENSOR_ATTR_2(in%d_min, 0444, show_value, NULL, 1, 0),\n\tSENSOR_ATTR_2(in%d_max, 0444, show_value, NULL, 2, 0),\n\tSENSOR_ATTR_2(in%d_min_alarm, 0444, show_alarm, NULL,\n\t\tABIT_UGURU3_VOLT_LOW_ALARM_FLAG, 0),\n\tSENSOR_ATTR_2(in%d_max_alarm, 0444, show_alarm, NULL,\n\t\tABIT_UGURU3_VOLT_HIGH_ALARM_FLAG, 0),\n\tSENSOR_ATTR_2(in%d_beep, 0444, show_mask, NULL,\n\t\tABIT_UGURU3_BEEP_ENABLE, 0),\n\tSENSOR_ATTR_2(in%d_shutdown, 0444, show_mask, NULL,\n\t\tABIT_UGURU3_SHUTDOWN_ENABLE, 0),\n\tSENSOR_ATTR_2(in%d_min_alarm_enable, 0444, show_mask, NULL,\n\t\tABIT_UGURU3_VOLT_LOW_ALARM_ENABLE, 0),\n\tSENSOR_ATTR_2(in%d_max_alarm_enable, 0444, show_mask, NULL,\n\t\tABIT_UGURU3_VOLT_HIGH_ALARM_ENABLE, 0),\n\tSENSOR_ATTR_2(in%d_label, 0444, show_label, NULL, 0, 0)\n\t}, {\n\tSENSOR_ATTR_2(temp%d_input, 0444, show_value, NULL, 0, 0),\n\tSENSOR_ATTR_2(temp%d_max, 0444, show_value, NULL, 1, 0),\n\tSENSOR_ATTR_2(temp%d_crit, 0444, show_value, NULL, 2, 0),\n\tSENSOR_ATTR_2(temp%d_alarm, 0444, show_alarm, NULL, 0, 0),\n\tSENSOR_ATTR_2(temp%d_beep, 0444, show_mask, NULL,\n\t\tABIT_UGURU3_BEEP_ENABLE, 0),\n\tSENSOR_ATTR_2(temp%d_shutdown, 0444, show_mask, NULL,\n\t\tABIT_UGURU3_SHUTDOWN_ENABLE, 0),\n\tSENSOR_ATTR_2(temp%d_alarm_enable, 0444, show_mask, NULL,\n\t\tABIT_UGURU3_TEMP_HIGH_ALARM_ENABLE, 0),\n\tSENSOR_ATTR_2(temp%d_label, 0444, show_label, NULL, 0, 0)\n\t}, {\n\tSENSOR_ATTR_2(fan%d_input, 0444, show_value, NULL, 0, 0),\n\tSENSOR_ATTR_2(fan%d_min, 0444, show_value, NULL, 1, 0),\n\tSENSOR_ATTR_2(fan%d_alarm, 0444, show_alarm, NULL, 0, 0),\n\tSENSOR_ATTR_2(fan%d_beep, 0444, show_mask, NULL,\n\t\tABIT_UGURU3_BEEP_ENABLE, 0),\n\tSENSOR_ATTR_2(fan%d_shutdown, 0444, show_mask, NULL,\n\t\tABIT_UGURU3_SHUTDOWN_ENABLE, 0),\n\tSENSOR_ATTR_2(fan%d_alarm_enable, 0444, show_mask, NULL,\n\t\tABIT_UGURU3_FAN_LOW_ALARM_ENABLE, 0),\n\tSENSOR_ATTR_2(fan%d_label, 0444, show_label, NULL, 0, 0)\n} };\n\nstatic struct sensor_device_attribute_2 abituguru3_sysfs_attr[] = {\n\tSENSOR_ATTR_2(name, 0444, show_name, NULL, 0, 0),\n};\n\nstatic int __devinit abituguru3_probe(struct platform_device *pdev)\n{\n\tconst int no_sysfs_attr[3] = { 10, 8, 7 };\n\tint sensor_index[3] = { 0, 1, 1 };\n\tstruct abituguru3_data *data;\n\tint i, j, type, used, sysfs_names_free, sysfs_attr_i, res = -ENODEV;\n\tchar *sysfs_filename;\n\tu8 buf[2];\n\tu16 id;\n\n\tif (!(data = kzalloc(sizeof(struct abituguru3_data), GFP_KERNEL)))\n\t\treturn -ENOMEM;\n\n\tdata->addr = platform_get_resource(pdev, IORESOURCE_IO, 0)->start;\n\tmutex_init(&data->update_lock);\n\tplatform_set_drvdata(pdev, data);\n\n\t/* Read the motherboard ID */\n\tif ((i = abituguru3_read(data, ABIT_UGURU3_MISC_BANK,\n\t\t\tABIT_UGURU3_BOARD_ID, 2, buf)) != 2) {\n\t\tgoto abituguru3_probe_error;\n\t}\n\n\t/* Completely read the uGuru to see if one really is there */\n\tif (!abituguru3_update_device(&pdev->dev))\n\t\tgoto abituguru3_probe_error;\n\n\t/* lookup the ID in our motherboard table */\n\tid = ((u16)buf[0] << 8) | (u16)buf[1];\n\tfor (i = 0; abituguru3_motherboards[i].id; i++)\n\t\tif (abituguru3_motherboards[i].id == id)\n\t\t\tbreak;\n\tif (!abituguru3_motherboards[i].id) {\n\t\tprintk(KERN_ERR ABIT_UGURU3_NAME \": error unknown motherboard \"\n\t\t\t\"ID: %04X. Please report this to the abituguru3 \"\n\t\t\t\"maintainer (see MAINTAINERS)\\n\", (unsigned int)id);\n\t\tgoto abituguru3_probe_error;\n\t}\n\tdata->sensors = abituguru3_motherboards[i].sensors;\n\tprintk(KERN_INFO ABIT_UGURU3_NAME \": found Abit uGuru3, motherboard \"\n\t\t\"ID: %04X (%s)\\n\", (unsigned int)id,\n\t\tabituguru3_motherboards[i].name);\n\n\t/* Fill the sysfs attr array */\n\tsysfs_attr_i = 0;\n\tsysfs_filename = data->sysfs_names;\n\tsysfs_names_free = ABIT_UGURU3_SYSFS_NAMES_LENGTH;\n\tfor (i = 0; data->sensors[i].name; i++) {\n\t\t/* Fail safe check, this should never happen! */\n\t\tif (i >= ABIT_UGURU3_MAX_NO_SENSORS) {\n\t\t\tprintk(KERN_ERR ABIT_UGURU3_NAME\n\t\t\t\t\": Fatal error motherboard has more sensors \"\n\t\t\t\t\"then ABIT_UGURU3_MAX_NO_SENSORS. This should \"\n\t\t\t\t\"never happen please report to the abituguru3 \"\n\t\t\t\t\"maintainer (see MAINTAINERS)\\n\");\n\t\t\tres = -ENAMETOOLONG;\n\t\t\tgoto abituguru3_probe_error;\n\t\t}\n\t\ttype = data->sensors[i].type;\n\t\tfor (j = 0; j < no_sysfs_attr[type]; j++) {\n\t\t\tused = snprintf(sysfs_filename, sysfs_names_free,\n\t\t\t\tabituguru3_sysfs_templ[type][j].dev_attr.attr.\n\t\t\t\tname, sensor_index[type]) + 1;\n\t\t\tdata->sysfs_attr[sysfs_attr_i] =\n\t\t\t\tabituguru3_sysfs_templ[type][j];\n\t\t\tdata->sysfs_attr[sysfs_attr_i].dev_attr.attr.name =\n\t\t\t\tsysfs_filename;\n\t\t\tdata->sysfs_attr[sysfs_attr_i].index = i;\n\t\t\tsysfs_filename += used;\n\t\t\tsysfs_names_free -= used;\n\t\t\tsysfs_attr_i++;\n\t\t}\n\t\tsensor_index[type]++;\n\t}\n\t/* Fail safe check, this should never happen! */\n\tif (sysfs_names_free < 0) {\n\t\tprintk(KERN_ERR ABIT_UGURU3_NAME\n\t\t\t\": Fatal error ran out of space for sysfs attr names. \"\n\t\t\t\"This should never happen please report to the \"\n\t\t\t\"abituguru3 maintainer (see MAINTAINERS)\\n\");\n\t\tres = -ENAMETOOLONG;\n\t\tgoto abituguru3_probe_error;\n\t}\n\n\t/* Register sysfs hooks */\n\tfor (i = 0; i < sysfs_attr_i; i++)\n\t\tif (device_create_file(&pdev->dev,\n\t\t\t\t&data->sysfs_attr[i].dev_attr))\n\t\t\tgoto abituguru3_probe_error;\n\tfor (i = 0; i < ARRAY_SIZE(abituguru3_sysfs_attr); i++)\n\t\tif (device_create_file(&pdev->dev,\n\t\t\t\t&abituguru3_sysfs_attr[i].dev_attr))\n\t\t\tgoto abituguru3_probe_error;\n\n\tdata->hwmon_dev = hwmon_device_register(&pdev->dev);\n\tif (IS_ERR(data->hwmon_dev)) {\n\t\tres = PTR_ERR(data->hwmon_dev);\n\t\tgoto abituguru3_probe_error;\n\t}\n\n\treturn 0; /* success */\n\nabituguru3_probe_error:\n\tfor (i = 0; data->sysfs_attr[i].dev_attr.attr.name; i++)\n\t\tdevice_remove_file(&pdev->dev, &data->sysfs_attr[i].dev_attr);\n\tfor (i = 0; i < ARRAY_SIZE(abituguru3_sysfs_attr); i++)\n\t\tdevice_remove_file(&pdev->dev,\n\t\t\t&abituguru3_sysfs_attr[i].dev_attr);\n\tkfree(data);\n\treturn res;\n}\n\nstatic int __devexit abituguru3_remove(struct platform_device *pdev)\n{\n\tint i;\n\tstruct abituguru3_data *data = platform_get_drvdata(pdev);\n\n\tplatform_set_drvdata(pdev, NULL);\n\thwmon_device_unregister(data->hwmon_dev);\n\tfor (i = 0; data->sysfs_attr[i].dev_attr.attr.name; i++)\n\t\tdevice_remove_file(&pdev->dev, &data->sysfs_attr[i].dev_attr);\n\tfor (i = 0; i < ARRAY_SIZE(abituguru3_sysfs_attr); i++)\n\t\tdevice_remove_file(&pdev->dev,\n\t\t\t&abituguru3_sysfs_attr[i].dev_attr);\n\tkfree(data);\n\n\treturn 0;\n}\n\nstatic struct abituguru3_data *abituguru3_update_device(struct device *dev)\n{\n\tint i;\n\tstruct abituguru3_data *data = dev_get_drvdata(dev);\n\n\tmutex_lock(&data->update_lock);\n\tif (!data->valid || time_after(jiffies, data->last_updated + HZ)) {\n\t\t/* Clear data->valid while updating */\n\t\tdata->valid = 0;\n\t\t/* Read alarms */\n\t\tif (abituguru3_read_increment_offset(data,\n\t\t\t\tABIT_UGURU3_SETTINGS_BANK,\n\t\t\t\tABIT_UGURU3_ALARMS_START,\n\t\t\t\t1, data->alarms, 48/8) != (48/8))\n\t\t\tgoto LEAVE_UPDATE;\n\t\t/* Read in and temp sensors (3 byte settings / sensor) */\n\t\tfor (i = 0; i < 32; i++) {\n\t\t\tif (abituguru3_read(data, ABIT_UGURU3_SENSORS_BANK,\n\t\t\t\t\tABIT_UGURU3_VALUES_START + i,\n\t\t\t\t\t1, &data->value[i]) != 1)\n\t\t\t\tgoto LEAVE_UPDATE;\n\t\t\tif (abituguru3_read_increment_offset(data,\n\t\t\t\t\tABIT_UGURU3_SETTINGS_BANK,\n\t\t\t\t\tABIT_UGURU3_SETTINGS_START + i * 3,\n\t\t\t\t\t1,\n\t\t\t\t\tdata->settings[i], 3) != 3)\n\t\t\t\tgoto LEAVE_UPDATE;\n\t\t}\n\t\t/* Read temp sensors (2 byte settings / sensor) */\n\t\tfor (i = 0; i < 16; i++) {\n\t\t\tif (abituguru3_read(data, ABIT_UGURU3_SENSORS_BANK,\n\t\t\t\t\tABIT_UGURU3_VALUES_START + 32 + i,\n\t\t\t\t\t1, &data->value[32 + i]) != 1)\n\t\t\t\tgoto LEAVE_UPDATE;\n\t\t\tif (abituguru3_read_increment_offset(data,\n\t\t\t\t\tABIT_UGURU3_SETTINGS_BANK,\n\t\t\t\t\tABIT_UGURU3_SETTINGS_START + 32 * 3 +\n\t\t\t\t\t\ti * 2, 1,\n\t\t\t\t\tdata->settings[32 + i], 2) != 2)\n\t\t\t\tgoto LEAVE_UPDATE;\n\t\t}\n\t\tdata->last_updated = jiffies;\n\t\tdata->valid = 1;\n\t}\nLEAVE_UPDATE:\n\tmutex_unlock(&data->update_lock);\n\tif (data->valid)\n\t\treturn data;\n\telse\n\t\treturn NULL;\n}\n\n#ifdef CONFIG_PM\nstatic int abituguru3_suspend(struct platform_device *pdev, pm_message_t state)\n{\n\tstruct abituguru3_data *data = platform_get_drvdata(pdev);\n\t/* make sure all communications with the uguru3 are done and no new\n\t ones are started */\n\tmutex_lock(&data->update_lock);\n\treturn 0;\n}\n\nstatic int abituguru3_resume(struct platform_device *pdev)\n{\n\tstruct abituguru3_data *data = platform_get_drvdata(pdev);\n\tmutex_unlock(&data->update_lock);\n\treturn 0;\n}\n#else\n#define abituguru3_suspend\tNULL\n#define abituguru3_resume\tNULL\n#endif /* CONFIG_PM */\n\nstatic struct platform_driver abituguru3_driver = {\n\t.driver = {\n\t\t.owner\t= THIS_MODULE,\n\t\t.name\t= ABIT_UGURU3_NAME,\n\t},\n\t.probe\t= abituguru3_probe,\n\t.remove\t= __devexit_p(abituguru3_remove),\n\t.suspend = abituguru3_suspend,\n\t.resume = abituguru3_resume\n};\n\nstatic int __init abituguru3_detect(void)\n{\n\t/* See if there is an uguru3 there. An idle uGuru3 will hold 0x00 or\n\t 0x08 at DATA and 0xAC at CMD. Sometimes the uGuru3 will hold 0x05\n\t at CMD instead, why is unknown. So we test for 0x05 too. */\n\tu8 data_val = inb_p(ABIT_UGURU3_BASE + ABIT_UGURU3_DATA);\n\tu8 cmd_val = inb_p(ABIT_UGURU3_BASE + ABIT_UGURU3_CMD);\n\tif (((data_val == 0x00) || (data_val == 0x08)) &&\n\t\t\t((cmd_val == 0xAC) || (cmd_val == 0x05)))\n\t\treturn ABIT_UGURU3_BASE;\n\n\tABIT_UGURU3_DEBUG(\"no Abit uGuru3 found, data = 0x%02X, cmd = \"\n\t\t\"0x%02X\\n\", (unsigned int)data_val, (unsigned int)cmd_val);\n\n\tif (force) {\n\t\tprintk(KERN_INFO ABIT_UGURU3_NAME \": Assuming Abit uGuru3 is \"\n\t\t\t\t\"present because of \\\"force\\\" parameter\\n\");\n\t\treturn ABIT_UGURU3_BASE;\n\t}\n\n\t/* No uGuru3 found */\n\treturn -ENODEV;\n}\n\nstatic struct platform_device *abituguru3_pdev;\n\nstatic int __init abituguru3_init(void)\n{\n\tint address, err;\n\tstruct resource res = { .flags = IORESOURCE_IO };\n\n\taddress = abituguru3_detect();\n\tif (address < 0)\n\t\treturn address;\n\n\terr = platform_driver_register(&abituguru3_driver);\n\tif (err)\n\t\tgoto exit;\n\n\tabituguru3_pdev = platform_device_alloc(ABIT_UGURU3_NAME, address);\n\tif (!abituguru3_pdev) {\n\t\tprintk(KERN_ERR ABIT_UGURU3_NAME\n\t\t\t\": Device allocation failed\\n\");\n\t\terr = -ENOMEM;\n\t\tgoto exit_driver_unregister;\n\t}\n\n\tres.start = address;\n\tres.end = address + ABIT_UGURU3_REGION_LENGTH - 1;\n\tres.name = ABIT_UGURU3_NAME;\n\n\terr = platform_device_add_resources(abituguru3_pdev, &res, 1);\n\tif (err) {\n\t\tprintk(KERN_ERR ABIT_UGURU3_NAME\n\t\t\t\": Device resource addition failed (%d)\\n\", err);\n\t\tgoto exit_device_put;\n\t}\n\n\terr = platform_device_add(abituguru3_pdev);\n\tif (err) {\n\t\tprintk(KERN_ERR ABIT_UGURU3_NAME\n\t\t\t\": Device addition failed (%d)\\n\", err);\n\t\tgoto exit_device_put;\n\t}\n\n\treturn 0;\n\nexit_device_put:\n\tplatform_device_put(abituguru3_pdev);\nexit_driver_unregister:\n\tplatform_driver_unregister(&abituguru3_driver);\nexit:\n\treturn err;\n}\n\nstatic void __exit abituguru3_exit(void)\n{\n\tplatform_device_unregister(abituguru3_pdev);\n\tplatform_driver_unregister(&abituguru3_driver);\n}\n\nMODULE_AUTHOR(\"Hans de Goede \");\nMODULE_DESCRIPTION(\"Abit uGuru3 Sensor device\");\nMODULE_LICENSE(\"GPL\");\n\nmodule_init(abituguru3_init);\nmodule_exit(abituguru3_exit);\n"},"repo_name":{"kind":"string","value":"janrinze/loox7xxport.loox2624"},"path":{"kind":"string","value":"drivers/hwmon/abituguru3.c"},"language":{"kind":"string","value":"C"},"license":{"kind":"string","value":"gpl-2.0"},"size":{"kind":"number","value":39709,"string":"39,709"}}},{"rowIdx":115086136,"cells":{"code":{"kind":"string","value":"/***********************************************************************\n*\n* common.c\n*\n* Implementation of user-space PPPoE redirector for Linux.\n*\n* Common functions used by PPPoE client and server\n*\n* Copyright (C) 2000 by Roaring Penguin Software Inc.\n*\n* This program may be distributed according to the terms of the GNU\n* General Public License, version 2 or (at your option) any later version.\n*\n***********************************************************************/\n\nstatic char const RCSID[] =\n\"$Id: common.c,v 1.2 2004/01/13 04:03:58 paulus Exp $\";\n\n#include \"pppoe.h\"\n\n#ifdef HAVE_SYSLOG_H\n#include \n#endif\n\n#include \n#include \n#include \n\n#ifdef HAVE_UNISTD_H\n#include \n#endif\n\n/**********************************************************************\n*%FUNCTION: parsePacket\n*%ARGUMENTS:\n* packet -- the PPPoE discovery packet to parse\n* func -- function called for each tag in the packet\n* extra -- an opaque data pointer supplied to parsing function\n*%RETURNS:\n* 0 if everything went well; -1 if there was an error\n*%DESCRIPTION:\n* Parses a PPPoE discovery packet, calling \"func\" for each tag in the packet.\n* \"func\" is passed the additional argument \"extra\".\n***********************************************************************/\nint\nparsePacket(PPPoEPacket *packet, ParseFunc *func, void *extra)\n{\n UINT16_t len = ntohs(packet->length);\n unsigned char *curTag;\n UINT16_t tagType, tagLen;\n\n if (packet->ver != 1) {\n\tsyslog(LOG_ERR, \"Invalid PPPoE version (%d)\", (int) packet->ver);\n\treturn -1;\n }\n if (packet->type != 1) {\n\tsyslog(LOG_ERR, \"Invalid PPPoE type (%d)\", (int) packet->type);\n\treturn -1;\n }\n\n /* Do some sanity checks on packet */\n if (len > ETH_DATA_LEN - 6) { /* 6-byte overhead for PPPoE header */\n\tsyslog(LOG_ERR, \"Invalid PPPoE packet length (%u)\", len);\n\treturn -1;\n }\n\n /* Step through the tags */\n curTag = packet->payload;\n while(curTag - packet->payload < len) {\n\t/* Alignment is not guaranteed, so do this by hand... */\n\ttagType = (((UINT16_t) curTag[0]) << 8) +\n\t (UINT16_t) curTag[1];\n\ttagLen = (((UINT16_t) curTag[2]) << 8) +\n\t (UINT16_t) curTag[3];\n\tif (tagType == TAG_END_OF_LIST) {\n\t return 0;\n\t}\n\tif ((curTag - packet->payload) + tagLen + TAG_HDR_SIZE > len) {\n\t syslog(LOG_ERR, \"Invalid PPPoE tag length (%u)\", tagLen);\n\t return -1;\n\t}\n\tfunc(tagType, tagLen, curTag+TAG_HDR_SIZE, extra);\n\tcurTag = curTag + TAG_HDR_SIZE + tagLen;\n }\n return 0;\n}\n\n/**********************************************************************\n*%FUNCTION: findTag\n*%ARGUMENTS:\n* packet -- the PPPoE discovery packet to parse\n* type -- the type of the tag to look for\n* tag -- will be filled in with tag contents\n*%RETURNS:\n* A pointer to the tag if one of the specified type is found; NULL\n* otherwise. \n*%DESCRIPTION:\n* Looks for a specific tag type.\n***********************************************************************/\nunsigned char *\nfindTag(PPPoEPacket *packet, UINT16_t type, PPPoETag *tag)\n{\n UINT16_t len = ntohs(packet->length);\n unsigned char *curTag;\n UINT16_t tagType, tagLen;\n\n if (packet->ver != 1) {\n\tsyslog(LOG_ERR, \"Invalid PPPoE version (%d)\", (int) packet->ver);\n\treturn NULL;\n }\n if (packet->type != 1) {\n\tsyslog(LOG_ERR, \"Invalid PPPoE type (%d)\", (int) packet->type);\n\treturn NULL;\n }\n\n /* Do some sanity checks on packet */\n if (len > ETH_DATA_LEN - 6) { /* 6-byte overhead for PPPoE header */\n\tsyslog(LOG_ERR, \"Invalid PPPoE packet length (%u)\", len);\n\treturn NULL;\n }\n\n /* Step through the tags */\n curTag = packet->payload;\n while(curTag - packet->payload < len) {\n\t/* Alignment is not guaranteed, so do this by hand... */\n\ttagType = (((UINT16_t) curTag[0]) << 8) +\n\t (UINT16_t) curTag[1];\n\ttagLen = (((UINT16_t) curTag[2]) << 8) +\n\t (UINT16_t) curTag[3];\n\tif (tagType == TAG_END_OF_LIST) {\n\t return NULL;\n\t}\n\tif ((curTag - packet->payload) + tagLen + TAG_HDR_SIZE > len) {\n\t syslog(LOG_ERR, \"Invalid PPPoE tag length (%u)\", tagLen);\n\t return NULL;\n\t}\n\tif (tagType == type) {\n\t memcpy(tag, curTag, tagLen + TAG_HDR_SIZE);\n\t return curTag;\n\t}\n\tcurTag = curTag + TAG_HDR_SIZE + tagLen;\n }\n return NULL;\n}\n\n/**********************************************************************\n*%FUNCTION: printErr\n*%ARGUMENTS:\n* str -- error message\n*%RETURNS:\n* Nothing\n*%DESCRIPTION:\n* Prints a message to stderr and syslog.\n***********************************************************************/\nvoid\nprintErr(char const *str)\n{\n fprintf(stderr, \"pppoe: %s\\n\", str);\n syslog(LOG_ERR, \"%s\", str);\n}\n\n\n/**********************************************************************\n*%FUNCTION: strDup\n*%ARGUMENTS:\n* str -- string to copy\n*%RETURNS:\n* A malloc'd copy of str. Exits if malloc fails.\n***********************************************************************/\nchar *\nstrDup(char const *str)\n{\n char *copy = malloc(strlen(str)+1);\n if (!copy) {\n\trp_fatal(\"strdup failed\");\n }\n strcpy(copy, str);\n return copy;\n}\n\n#ifdef PPPOE_STANDALONE\n/**********************************************************************\n*%FUNCTION: computeTCPChecksum\n*%ARGUMENTS:\n* ipHdr -- pointer to IP header\n* tcpHdr -- pointer to TCP header\n*%RETURNS:\n* The computed TCP checksum\n***********************************************************************/\nUINT16_t\ncomputeTCPChecksum(unsigned char *ipHdr, unsigned char *tcpHdr)\n{\n UINT32_t sum = 0;\n UINT16_t count = ipHdr[2] * 256 + ipHdr[3];\n unsigned char *addr = tcpHdr;\n unsigned char pseudoHeader[12];\n\n /* Count number of bytes in TCP header and data */\n count -= (ipHdr[0] & 0x0F) * 4;\n\n memcpy(pseudoHeader, ipHdr+12, 8);\n pseudoHeader[8] = 0;\n pseudoHeader[9] = ipHdr[9];\n pseudoHeader[10] = (count >> 8) & 0xFF;\n pseudoHeader[11] = (count & 0xFF);\n\n /* Checksum the pseudo-header */\n sum += * (UINT16_t *) pseudoHeader;\n sum += * ((UINT16_t *) (pseudoHeader+2));\n sum += * ((UINT16_t *) (pseudoHeader+4));\n sum += * ((UINT16_t *) (pseudoHeader+6));\n sum += * ((UINT16_t *) (pseudoHeader+8));\n sum += * ((UINT16_t *) (pseudoHeader+10));\n\n /* Checksum the TCP header and data */\n while (count > 1) {\n\tsum += * (UINT16_t *) addr;\n\taddr += 2;\n\tcount -= 2;\n }\n if (count > 0) {\n\tsum += *addr;\n }\n\n while(sum >> 16) {\n\tsum = (sum & 0xffff) + (sum >> 16);\n }\n return (UINT16_t) (~sum & 0xFFFF);\n}\n\n/**********************************************************************\n*%FUNCTION: clampMSS\n*%ARGUMENTS:\n* packet -- PPPoE session packet\n* dir -- either \"incoming\" or \"outgoing\"\n* clampMss -- clamp value\n*%RETURNS:\n* Nothing\n*%DESCRIPTION:\n* Clamps MSS option if TCP SYN flag is set.\n***********************************************************************/\nvoid\nclampMSS(PPPoEPacket *packet, char const *dir, int clampMss)\n{\n unsigned char *tcpHdr;\n unsigned char *ipHdr;\n unsigned char *opt;\n unsigned char *endHdr;\n unsigned char *mssopt = NULL;\n UINT16_t csum;\n\n int len, minlen;\n\n /* check PPP protocol type */\n if (packet->payload[0] & 0x01) {\n /* 8 bit protocol type */\n\n /* Is it IPv4? */\n if (packet->payload[0] != 0x21) {\n /* Nope, ignore it */\n return;\n }\n\n ipHdr = packet->payload + 1;\n\tminlen = 41;\n } else {\n /* 16 bit protocol type */\n\n /* Is it IPv4? */\n if (packet->payload[0] != 0x00 ||\n packet->payload[1] != 0x21) {\n /* Nope, ignore it */\n return;\n }\n\n ipHdr = packet->payload + 2;\n\tminlen = 42;\n }\n\n /* Is it too short? */\n len = (int) ntohs(packet->length);\n if (len < minlen) {\n\t/* 20 byte IP header; 20 byte TCP header; at least 1 or 2 byte PPP protocol */\n\treturn;\n }\n\n /* Verify once more that it's IPv4 */\n if ((ipHdr[0] & 0xF0) != 0x40) {\n\treturn;\n }\n\n /* Is it a fragment that's not at the beginning of the packet? */\n if ((ipHdr[6] & 0x1F) || ipHdr[7]) {\n\t/* Yup, don't touch! */\n\treturn;\n }\n /* Is it TCP? */\n if (ipHdr[9] != 0x06) {\n\treturn;\n }\n\n /* Get start of TCP header */\n tcpHdr = ipHdr + (ipHdr[0] & 0x0F) * 4;\n\n /* Is SYN set? */\n if (!(tcpHdr[13] & 0x02)) {\n\treturn;\n }\n\n /* Compute and verify TCP checksum -- do not touch a packet with a bad\n checksum */\n csum = computeTCPChecksum(ipHdr, tcpHdr);\n if (csum) {\n\tsyslog(LOG_ERR, \"Bad TCP checksum %x\", (unsigned int) csum);\n\n\t/* Upper layers will drop it */\n\treturn;\n }\n\n /* Look for existing MSS option */\n endHdr = tcpHdr + ((tcpHdr[12] & 0xF0) >> 2);\n opt = tcpHdr + 20;\n while (opt < endHdr) {\n\tif (!*opt) break;\t/* End of options */\n\tswitch(*opt) {\n\tcase 1:\n\t opt++;\n\t break;\n\n\tcase 2:\n\t if (opt[1] != 4) {\n\t\t/* Something fishy about MSS option length. */\n\t\tsyslog(LOG_ERR,\n\t\t \"Bogus length for MSS option (%u) from %u.%u.%u.%u\",\n\t\t (unsigned int) opt[1],\n\t\t (unsigned int) ipHdr[12],\n\t\t (unsigned int) ipHdr[13],\n\t\t (unsigned int) ipHdr[14],\n\t\t (unsigned int) ipHdr[15]);\n\t\treturn;\n\t }\n\t mssopt = opt;\n\t break;\n\tdefault:\n\t if (opt[1] < 2) {\n\t\t/* Someone's trying to attack us? */\n\t\tsyslog(LOG_ERR,\n\t\t \"Bogus TCP option length (%u) from %u.%u.%u.%u\",\n\t\t (unsigned int) opt[1],\n\t\t (unsigned int) ipHdr[12],\n\t\t (unsigned int) ipHdr[13],\n\t\t (unsigned int) ipHdr[14],\n\t\t (unsigned int) ipHdr[15]);\n\t\treturn;\n\t }\n\t opt += (opt[1]);\n\t break;\n\t}\n\t/* Found existing MSS option? */\n\tif (mssopt) break;\n }\n\n /* If MSS exists and it's low enough, do nothing */\n if (mssopt) {\n\tunsigned mss = mssopt[2] * 256 + mssopt[3];\n\tif (mss <= clampMss) {\n\t return;\n\t}\n\n\tmssopt[2] = (((unsigned) clampMss) >> 8) & 0xFF;\n\tmssopt[3] = ((unsigned) clampMss) & 0xFF;\n } else {\n\t/* No MSS option. Don't add one; we'll have to use 536. */\n\treturn;\n }\n\n /* Recompute TCP checksum */\n tcpHdr[16] = 0;\n tcpHdr[17] = 0;\n csum = computeTCPChecksum(ipHdr, tcpHdr);\n (* (UINT16_t *) (tcpHdr+16)) = csum;\n}\n#endif /* PPPOE_STANDALONE */\n\n/***********************************************************************\n*%FUNCTION: sendPADT\n*%ARGUMENTS:\n* conn -- PPPoE connection\n* msg -- if non-NULL, extra error message to include in PADT packet.\n*%RETURNS:\n* Nothing\n*%DESCRIPTION:\n* Sends a PADT packet\n***********************************************************************/\nvoid\nsendPADT(PPPoEConnection *conn, char const *msg)\n{\n PPPoEPacket packet;\n unsigned char *cursor = packet.payload;\n\n UINT16_t plen = 0;\n\n /* Do nothing if no session established yet */\n if (!conn->session) return;\n\n /* Do nothing if no discovery socket */\n if (conn->discoverySocket < 0) return;\n\n memcpy(packet.ethHdr.h_dest, conn->peerEth, ETH_ALEN);\n memcpy(packet.ethHdr.h_source, conn->myEth, ETH_ALEN);\n\n packet.ethHdr.h_proto = htons(Eth_PPPOE_Discovery);\n packet.ver = 1;\n packet.type = 1;\n packet.code = CODE_PADT;\n packet.session = conn->session;\n\n /* Reset Session to zero so there is no possibility of\n recursive calls to this function by any signal handler */\n conn->session = 0;\n\n /* If we're using Host-Uniq, copy it over */\n if (conn->useHostUniq) {\n\tPPPoETag hostUniq;\n\tpid_t pid = getpid();\n\thostUniq.type = htons(TAG_HOST_UNIQ);\n\thostUniq.length = htons(sizeof(pid));\n\tmemcpy(hostUniq.payload, &pid, sizeof(pid));\n\tmemcpy(cursor, &hostUniq, sizeof(pid) + TAG_HDR_SIZE);\n\tcursor += sizeof(pid) + TAG_HDR_SIZE;\n\tplen += sizeof(pid) + TAG_HDR_SIZE;\n }\n\n /* Copy error message */\n if (msg) {\n\tPPPoETag err;\n\tsize_t elen = strlen(msg);\n\terr.type = htons(TAG_GENERIC_ERROR);\n\terr.length = htons(elen);\n\tstrcpy(err.payload, msg);\n\tmemcpy(cursor, &err, elen + TAG_HDR_SIZE);\n\tcursor += elen + TAG_HDR_SIZE;\n\tplen += elen + TAG_HDR_SIZE;\n }\n\t \n /* Copy cookie and relay-ID if needed */\n if (conn->cookie.type) {\n\tCHECK_ROOM(cursor, packet.payload,\n\t\t ntohs(conn->cookie.length) + TAG_HDR_SIZE);\n\tmemcpy(cursor, &conn->cookie, ntohs(conn->cookie.length) + TAG_HDR_SIZE);\n\tcursor += ntohs(conn->cookie.length) + TAG_HDR_SIZE;\n\tplen += ntohs(conn->cookie.length) + TAG_HDR_SIZE;\n }\n\n if (conn->relayId.type) {\n\tCHECK_ROOM(cursor, packet.payload,\n\t\t ntohs(conn->relayId.length) + TAG_HDR_SIZE);\n\tmemcpy(cursor, &conn->relayId, ntohs(conn->relayId.length) + TAG_HDR_SIZE);\n\tcursor += ntohs(conn->relayId.length) + TAG_HDR_SIZE;\n\tplen += ntohs(conn->relayId.length) + TAG_HDR_SIZE;\n }\n\n packet.length = htons(plen);\n sendPacket(conn, conn->discoverySocket, &packet, (int) (plen + HDR_SIZE));\n if (conn->debugFile) {\n\tdumpPacket(conn->debugFile, &packet, \"SENT\");\n\tfprintf(conn->debugFile, \"\\n\");\n\tfflush(conn->debugFile);\n }\n syslog(LOG_INFO,\"Sent PADT\");\n}\n\n/**********************************************************************\n*%FUNCTION: parseLogErrs\n*%ARGUMENTS:\n* type -- tag type\n* len -- tag length\n* data -- tag data\n* extra -- extra user data\n*%RETURNS:\n* Nothing\n*%DESCRIPTION:\n* Picks error tags out of a packet and logs them.\n***********************************************************************/\nvoid\nparseLogErrs(UINT16_t type, UINT16_t len, unsigned char *data,\n\t void *extra)\n{\n switch(type) {\n case TAG_SERVICE_NAME_ERROR:\n\tsyslog(LOG_ERR, \"PADT: Service-Name-Error: %.*s\", (int) len, data);\n\tfprintf(stderr, \"PADT: Service-Name-Error: %.*s\\n\", (int) len, data);\n\tbreak;\n case TAG_AC_SYSTEM_ERROR:\n\tsyslog(LOG_ERR, \"PADT: System-Error: %.*s\", (int) len, data);\n\tfprintf(stderr, \"PADT: System-Error: %.*s\\n\", (int) len, data);\n\tbreak;\n case TAG_GENERIC_ERROR:\n\tsyslog(LOG_ERR, \"PADT: Generic-Error: %.*s\", (int) len, data);\n\tfprintf(stderr, \"PADT: Generic-Error: %.*s\\n\", (int) len, data);\n\tbreak;\n }\n}\n\n"},"repo_name":{"kind":"string","value":"kidmaple/CoolWall"},"path":{"kind":"string","value":"user/pppd/pppd/plugins/rp-pppoe/common.c"},"language":{"kind":"string","value":"C"},"license":{"kind":"string","value":"gpl-2.0"},"size":{"kind":"number","value":13812,"string":"13,812"}}},{"rowIdx":115086137,"cells":{"code":{"kind":"string","value":"/*\n * Copyright (C) 2008 The Android Open Source Project\n * All rights reserved.\n * Copyright (c) 2009, Code Aurora Forum. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * * Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * * Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in\n * the documentation and/or other materials provided with the\n * distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n * \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\n * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\n * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS\n * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED\n * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT\n * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n * SUCH DAMAGE.\n */\n\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \"bootimg.h\"\n\n#define FLASH_PAGE_SIZE 2048\n#define FLASH_PAGE_BITS 11\n\nunsigned page_size = 0;\nunsigned page_mask = 0;\n\nstatic unsigned load_addr = 0xffffffff;\n\n#define ROUND_TO_PAGE(x,y) (((x) + (y)) & (~(y)))\n\nvoid acpu_clock_init(void);\n\nint startswith(const char *str, const char *prefix)\n{\n while(*prefix){\n if (*prefix++ != *str++) return 0;\n }\n return 1;\n}\n\n/* XXX */\nvoid verify_flash(struct ptentry *p, void *addr, unsigned len, int extra)\n{\n uint32_t offset = 0;\n void *buf = malloc(FLASH_PAGE_SIZE + extra);\n int verify_extra = extra;\n if(verify_extra > 4)\n verify_extra = 16;\n while(len > 0) {\n flash_read_ext(p, extra, offset, buf, FLASH_PAGE_SIZE);\n if(memcmp(addr, buf, FLASH_PAGE_SIZE + verify_extra)) {\n dprintf(CRITICAL, \"verify failed at 0x%08x\\n\", offset);\n jtag_fail(\"verify failed\");\n return;\n }\n offset += FLASH_PAGE_SIZE;\n addr += FLASH_PAGE_SIZE;\n len -= FLASH_PAGE_SIZE;\n if(extra) {\n addr += extra;\n len -= extra;\n }\n }\n dprintf(INFO, \"verify done %d extra bytes\\n\", verify_extra);\n jtag_okay(\"verify done\");\n}\n\nvoid handle_flash(const char *name, unsigned addr, unsigned sz)\n{\n\tstruct ptentry *ptn;\n\tstruct ptable *ptable;\n void *data = (void *) addr;\n\tunsigned extra = 0;\n\n\tptable = flash_get_ptable();\n\tif (ptable == NULL) {\n\t\tjtag_fail(\"partition table doesn't exist\");\n\t\treturn;\n\t}\n\n\tptn = ptable_find(ptable, name);\n\tif (ptn == NULL) {\n\t\tjtag_fail(\"unknown partition name\");\n\t\treturn;\n\t}\n\n\tif (!strcmp(ptn->name, \"boot\") || !strcmp(ptn->name, \"recovery\")) {\n\t\tif (memcmp((void *)data, BOOT_MAGIC, BOOT_MAGIC_SIZE)) {\n\t\t\tjtag_fail(\"image is not a boot image\");\n\t\t\treturn;\n\t\t}\n\t}\n\n\tif (!strcmp(ptn->name, \"system\") || !strcmp(ptn->name, \"userdata\") || !strcmp(ptn->name, \"persist\"))\n\t\textra = ((page_size >> 9) * 16);\n\telse\n\t\tsz = ROUND_TO_PAGE(sz, page_mask);\n\n\tdata = (void *)target_get_scratch_address();\n\n\tdprintf(INFO, \"writing %d bytes to '%s'\\n\", sz, ptn->name);\n\tif (flash_write(ptn, extra, data, sz)) {\n\t\tjtag_fail(\"flash write failure\");\n\t\treturn;\n\t}\n\tdprintf(INFO, \"partition '%s' updated\\n\", ptn->name);\n jtag_okay(\"Done\");\n enter_critical_section();\n platform_uninit_timer();\n arch_disable_cache(UCACHE);\n arch_disable_mmu();\n}\n\nstatic unsigned char *tmpbuf = 0;\n\n\n/*XXX*/\nvoid handle_dump(const char *name, unsigned offset)\n{\n struct ptentry *p;\n struct ptable *ptable;\n\n if(tmpbuf == 0) {\n tmpbuf = malloc(4096);\n }\n\n dprintf(INFO, \"dump '%s' partition\\n\", name);\n\n ptable = flash_get_ptable();\n\n if (ptable == NULL) {\n jtag_fail(\"partition table doesn't exist\");\n return;\n }\n\n p = ptable_find(ptable, name);\n\n if(p == 0) {\n jtag_fail(\"partition not found\");\n return;\n } else {\n\n#if 0\n /* XXX reimpl */\n if(flash_read_page(p->start * 64, tmpbuf, tmpbuf + 2048)){\n jtag_fail(\"flash_read() failed\");\n return;\n }\n#endif\n dprintf(INFO, \"page %d data:\\n\", p->start * 64);\n hexdump(tmpbuf, 256);\n dprintf(INFO, \"page %d extra:\\n\", p->start * 64);\n hexdump(tmpbuf, 16);\n jtag_okay(\"done\");\n enter_critical_section();\n platform_uninit_timer();\n arch_disable_cache(UCACHE);\n arch_disable_mmu();\n }\n}\n\nvoid handle_query_load_address(unsigned addr)\n{\n unsigned *return_addr = (unsigned *)addr;\n\n if (return_addr)\n *return_addr = target_get_scratch_address();\n\n jtag_okay(\"done\");\n}\n\nvoid handle_command(const char *cmd, unsigned a0, unsigned a1, unsigned a2)\n{\n if(startswith(cmd,\"flash:\")){\n handle_flash(cmd + 6, a0, a1);\n return;\n }\n\n if(startswith(cmd,\"dump:\")){\n handle_dump(cmd + 5, a0);\n return;\n }\n\n if(startswith(cmd,\"loadaddr:\")){\n handle_query_load_address(a0);\n return;\n }\n\n jtag_fail(\"unknown command\");\n}\n\nvoid nandwrite_init(void)\n{\n page_size = flash_page_size();\n page_mask = page_size - 1;\n jtag_cmd_loop(handle_command);\n}\n\n\n"},"repo_name":{"kind":"string","value":"slfl/HUAWEI89_WE_KK_700"},"path":{"kind":"string","value":"bootable/bootloader/lk/app/nandwrite/nandwrite.c"},"language":{"kind":"string","value":"C"},"license":{"kind":"string","value":"gpl-3.0"},"size":{"kind":"number","value":5822,"string":"5,822"}}},{"rowIdx":115086138,"cells":{"code":{"kind":"string","value":"/* exif-entry.c\n *\n * Copyright (c) 2001 Lutz Mueller \n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * This library is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this library; if not, write to the\n * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301 USA.\n */\n\n#include \n\n#include \n#include \n#include \n#include \n\n#include \n#include \n#include \n#include \n#include \n#include \n\n#ifndef M_PI\n#define M_PI 3.14159265358979323846\n#endif\n\nstruct _ExifEntryPrivate\n{\n\tunsigned int ref_count;\n\n\tExifMem *mem;\n};\n\n/* This function is hidden in exif-data.c */\nExifLog *exif_data_get_log (ExifData *);\n\n#ifndef NO_VERBOSE_TAG_STRINGS\nstatic void\nexif_entry_log (ExifEntry *e, ExifLogCode code, const char *format, ...)\n{\n\tva_list args;\n\tExifLog *l = NULL;\n\n\tif (e && e->parent && e->parent->parent)\n\t\tl = exif_data_get_log (e->parent->parent);\n\tva_start (args, format);\n\texif_logv (l, code, \"ExifEntry\", format, args);\n\tva_end (args);\n}\n#else\n#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L\n#define exif_entry_log(...) do { } while (0)\n#elif defined(__GNUC__)\n#define exif_entry_log(x...) do { } while (0)\n#else\n#define exif_entry_log (void)\n#endif\n#endif\n\nstatic void *\nexif_entry_alloc (ExifEntry *e, unsigned int i)\n{\n\tvoid *d;\n\tExifLog *l = NULL;\n\n\tif (!e || !e->priv || !i) return NULL;\n\n\td = exif_mem_alloc (e->priv->mem, i);\n\tif (d) return d;\n\n\tif (e->parent && e->parent->parent)\n\t\tl = exif_data_get_log (e->parent->parent);\n\tEXIF_LOG_NO_MEMORY (l, \"ExifEntry\", i);\n\treturn NULL;\n}\n\nstatic void *\nexif_entry_realloc (ExifEntry *e, void *d_orig, unsigned int i)\n{\n\tvoid *d;\n\tExifLog *l = NULL;\n\n\tif (!e || !e->priv) return NULL;\n\n\tif (!i) { exif_mem_free (e->priv->mem, d_orig); return NULL; }\n\n\td = exif_mem_realloc (e->priv->mem, d_orig, i);\n\tif (d) return d;\n\n\tif (e->parent && e->parent->parent)\n\t\tl = exif_data_get_log (e->parent->parent);\n\tEXIF_LOG_NO_MEMORY (l, \"ExifEntry\", i);\n\treturn NULL;\n}\n\nExifEntry *\nexif_entry_new (void)\n{\n\tExifMem *mem = exif_mem_new_default ();\n\tExifEntry *e = exif_entry_new_mem (mem);\n\n\texif_mem_unref (mem);\n\n\treturn e;\n}\n\nExifEntry *\nexif_entry_new_mem (ExifMem *mem)\n{\n\tExifEntry *e = NULL;\n\n\te = exif_mem_alloc (mem, sizeof (ExifEntry));\n\tif (!e) return NULL;\n\te->priv = exif_mem_alloc (mem, sizeof (ExifEntryPrivate));\n\tif (!e->priv) { exif_mem_free (mem, e); return NULL; }\n\te->priv->ref_count = 1;\n\n\te->priv->mem = mem;\n\texif_mem_ref (mem);\n\n\treturn e;\n}\n\nvoid\nexif_entry_ref (ExifEntry *e)\n{\n\tif (!e) return;\n\n\te->priv->ref_count++;\n}\n\nvoid\nexif_entry_unref (ExifEntry *e)\n{\n\tif (!e) return;\n\n\te->priv->ref_count--;\n\tif (!e->priv->ref_count)\n\t\texif_entry_free (e);\n}\n\nvoid\nexif_entry_free (ExifEntry *e)\n{\n\tif (!e) return;\n\n\tif (e->priv) {\n\t\tExifMem *mem = e->priv->mem;\n\t\tif (e->data)\n\t\t\texif_mem_free (mem, e->data);\n\t\texif_mem_free (mem, e->priv);\n\t\texif_mem_free (mem, e);\n\t\texif_mem_unref (mem);\n\t}\n}\n\n/*! Get a value and convert it to an ExifShort.\n * \\bug Not all types are converted that could be converted and no indication\n * is made when that occurs\n */\nstatic inline ExifShort\nexif_get_short_convert (const unsigned char *buf, ExifFormat format,\n\t\t\tExifByteOrder order)\n{\n\tswitch (format) {\n\tcase EXIF_FORMAT_LONG:\n\t\treturn (ExifShort) exif_get_long (buf, order);\n\tcase EXIF_FORMAT_SLONG:\n\t\treturn (ExifShort) exif_get_slong (buf, order);\n\tcase EXIF_FORMAT_SHORT:\n\t\treturn (ExifShort) exif_get_short (buf, order);\n\tcase EXIF_FORMAT_SSHORT:\n\t\treturn (ExifShort) exif_get_sshort (buf, order);\n\tcase EXIF_FORMAT_BYTE:\n\tcase EXIF_FORMAT_SBYTE:\n\t\treturn (ExifShort) buf[0];\n\tdefault:\n\t\t/* Unsupported type */\n\t\treturn (ExifShort) 0;\n\t}\n}\n\nvoid\nexif_entry_fix (ExifEntry *e)\n{\n\tunsigned int i, newsize;\n\tunsigned char *newdata;\n\tExifByteOrder o;\n\tExifRational r;\n\tExifSRational sr;\n\n\tif (!e || !e->priv) return;\n\n\tswitch (e->tag) {\n\t\n\t/* These tags all need to be of format SHORT. */\n\tcase EXIF_TAG_YCBCR_SUB_SAMPLING:\n\tcase EXIF_TAG_SUBJECT_AREA:\n\tcase EXIF_TAG_COLOR_SPACE:\n\tcase EXIF_TAG_PLANAR_CONFIGURATION:\n\tcase EXIF_TAG_SENSING_METHOD:\n\tcase EXIF_TAG_ORIENTATION:\n\tcase EXIF_TAG_YCBCR_POSITIONING:\n\tcase EXIF_TAG_PHOTOMETRIC_INTERPRETATION:\n\tcase EXIF_TAG_CUSTOM_RENDERED:\n\tcase EXIF_TAG_EXPOSURE_MODE:\n\tcase EXIF_TAG_WHITE_BALANCE:\n\tcase EXIF_TAG_SCENE_CAPTURE_TYPE:\n\tcase EXIF_TAG_GAIN_CONTROL:\n\tcase EXIF_TAG_SATURATION:\n\tcase EXIF_TAG_CONTRAST:\n\tcase EXIF_TAG_SHARPNESS:\n\tcase EXIF_TAG_ISO_SPEED_RATINGS:\n\t\tswitch (e->format) {\n\t\tcase EXIF_FORMAT_LONG:\n\t\tcase EXIF_FORMAT_SLONG:\n\t\tcase EXIF_FORMAT_BYTE:\n\t\tcase EXIF_FORMAT_SBYTE:\n\t\tcase EXIF_FORMAT_SSHORT:\n\t\t\tif (!e->parent || !e->parent->parent) break;\n\t\t\texif_entry_log (e, EXIF_LOG_CODE_DEBUG,\n\t\t\t\t_(\"Tag '%s' was of format '%s' (which is \"\n\t\t\t\t\"against specification) and has been \"\n\t\t\t\t\"changed to format '%s'.\"),\n\t\t\t\texif_tag_get_name_in_ifd(e->tag,\n\t\t\t\t\t\t\texif_entry_get_ifd(e)),\n\t\t\t\texif_format_get_name (e->format),\n\t\t\t\texif_format_get_name (EXIF_FORMAT_SHORT));\n\n\t\t\to = exif_data_get_byte_order (e->parent->parent);\n\t\t\tnewsize = e->components * exif_format_get_size (EXIF_FORMAT_SHORT);\n\t\t\tnewdata = exif_entry_alloc (e, newsize);\n\t\t\tif (!newdata) {\n\t\t\t\texif_entry_log (e, EXIF_LOG_CODE_NO_MEMORY,\n\t\t\t\t\t\"Could not allocate %lu byte(s).\", (unsigned long)newsize);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor (i = 0; i < e->components; i++)\n\t\t\t\texif_set_short (\n\t\t\t\t\tnewdata + i *\n\t\t\t\t\texif_format_get_size (\n\t\t\t\t\t EXIF_FORMAT_SHORT), o,\n\t\t\t\t\t exif_get_short_convert (\n\t\t\t\t\t e->data + i *\n\t\t\t\t\t exif_format_get_size (e->format),\n\t\t\t\t\t e->format, o));\n\n\t\t\texif_mem_free (e->priv->mem, e->data);\n\t\t\te->data = newdata;\n\t\t\te->size = newsize;\n\t\t\te->format = EXIF_FORMAT_SHORT;\n\t\t\tbreak;\n\t\tcase EXIF_FORMAT_SHORT:\n\t\t\t/* No conversion necessary */\n\t\t\tbreak;\n\t\tdefault:\n\t\t\texif_entry_log (e, EXIF_LOG_CODE_CORRUPT_DATA,\n\t\t\t\t_(\"Tag '%s' is of format '%s' (which is \"\n\t\t\t\t\"against specification) but cannot be changed \"\n\t\t\t\t\"to format '%s'.\"),\n\t\t\t\texif_tag_get_name_in_ifd(e->tag,\n\t\t\t\t\t\t\texif_entry_get_ifd(e)),\n\t\t\t\texif_format_get_name (e->format),\n\t\t\t\texif_format_get_name (EXIF_FORMAT_SHORT));\n\t\t\tbreak;\n\t\t}\n\t\tbreak;\n\n\t/* All these tags need to be of format 'Rational'. */\n\tcase EXIF_TAG_FNUMBER:\n\tcase EXIF_TAG_APERTURE_VALUE:\n\tcase EXIF_TAG_EXPOSURE_TIME:\n\tcase EXIF_TAG_FOCAL_LENGTH:\n\t\tswitch (e->format) {\n\t\tcase EXIF_FORMAT_SRATIONAL:\n\t\t\tif (!e->parent || !e->parent->parent) break;\n\t\t\to = exif_data_get_byte_order (e->parent->parent);\n\t\t\tfor (i = 0; i < e->components; i++) {\n\t\t\t\tsr = exif_get_srational (e->data + i * \n\t\t\t\t\texif_format_get_size (\n\t\t\t\t\t\tEXIF_FORMAT_SRATIONAL), o);\n\t\t\t\tr.numerator = (ExifLong) sr.numerator;\n\t\t\t\tr.denominator = (ExifLong) sr.denominator;\n\t\t\t\texif_set_rational (e->data + i *\n\t\t\t\t\texif_format_get_size (\n\t\t\t\t\t\tEXIF_FORMAT_RATIONAL), o, r);\n\t\t\t}\n\t\t\te->format = EXIF_FORMAT_RATIONAL;\n\t\t\texif_entry_log (e, EXIF_LOG_CODE_DEBUG,\n\t\t\t\t_(\"Tag '%s' was of format '%s' (which is \"\n\t\t\t\t\"against specification) and has been \"\n\t\t\t\t\"changed to format '%s'.\"),\n\t\t\t\texif_tag_get_name_in_ifd(e->tag,\n\t\t\t\t\t\t\texif_entry_get_ifd(e)),\n\t\t\t\texif_format_get_name (EXIF_FORMAT_SRATIONAL),\n\t\t\t\texif_format_get_name (EXIF_FORMAT_RATIONAL));\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\tbreak;\n\n\t/* All these tags need to be of format 'SRational'. */\n\tcase EXIF_TAG_EXPOSURE_BIAS_VALUE:\n\tcase EXIF_TAG_BRIGHTNESS_VALUE:\n\tcase EXIF_TAG_SHUTTER_SPEED_VALUE:\n\t\tswitch (e->format) {\n\t\tcase EXIF_FORMAT_RATIONAL:\n\t\t\tif (!e->parent || !e->parent->parent) break;\n\t\t\to = exif_data_get_byte_order (e->parent->parent);\n\t\t\tfor (i = 0; i < e->components; i++) {\n\t\t\t\tr = exif_get_rational (e->data + i * \n\t\t\t\t\texif_format_get_size (\n\t\t\t\t\t\tEXIF_FORMAT_RATIONAL), o);\n\t\t\t\tsr.numerator = (ExifLong) r.numerator;\n\t\t\t\tsr.denominator = (ExifLong) r.denominator;\n\t\t\t\texif_set_srational (e->data + i *\n\t\t\t\t\texif_format_get_size (\n\t\t\t\t\t\tEXIF_FORMAT_SRATIONAL), o, sr);\n\t\t\t}\n\t\t\te->format = EXIF_FORMAT_SRATIONAL;\n\t\t\texif_entry_log (e, EXIF_LOG_CODE_DEBUG,\n\t\t\t\t_(\"Tag '%s' was of format '%s' (which is \"\n\t\t\t\t\"against specification) and has been \"\n\t\t\t\t\"changed to format '%s'.\"),\n\t\t\t\texif_tag_get_name_in_ifd(e->tag,\n\t\t\t\t\t\t\texif_entry_get_ifd(e)),\n\t\t\t\texif_format_get_name (EXIF_FORMAT_RATIONAL),\n\t\t\t\texif_format_get_name (EXIF_FORMAT_SRATIONAL));\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\tbreak;\n\n\tcase EXIF_TAG_USER_COMMENT:\n\n\t\t/* Format needs to be UNDEFINED. */\n\t\tif (e->format != EXIF_FORMAT_UNDEFINED) {\n\t\t\texif_entry_log (e, EXIF_LOG_CODE_DEBUG,\n\t\t\t\t_(\"Tag 'UserComment' had invalid format '%s'. \"\n\t\t\t\t\"Format has been set to 'undefined'.\"),\n\t\t\t\texif_format_get_name (e->format));\n\t\t\te->format = EXIF_FORMAT_UNDEFINED;\n\t\t}\n\n\t\t/* Some packages like Canon ZoomBrowser EX 4.5 store\n\t\t only one zero byte followed by 7 bytes of rubbish */\n\t\tif ((e->size >= 8) && (e->data[0] == 0)) {\n\t\t\tmemcpy(e->data, \"\\0\\0\\0\\0\\0\\0\\0\\0\", 8);\n\t\t}\n\n\t\t/* There need to be at least 8 bytes. */\n\t\tif (e->size < 8) {\n\t\t\te->data = exif_entry_realloc (e, e->data, 8 + e->size);\n\t\t\tif (!e->data) {\n\t\t\t\te->size = 0;\n\t\t\t\te->components = 0;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t/* Assume ASCII */\n\t\t\tmemmove (e->data + 8, e->data, e->size);\n\t\t\tmemcpy (e->data, \"ASCII\\0\\0\\0\", 8);\n\t\t\te->size += 8;\n\t\t\te->components += 8;\n\t\t\texif_entry_log (e, EXIF_LOG_CODE_DEBUG,\n\t\t\t\t_(\"Tag 'UserComment' has been expanded to at \"\n\t\t\t\t\"least 8 bytes in order to follow the \"\n\t\t\t\t\"specification.\"));\n\t\t\tbreak;\n\t\t}\n\n\t\t/*\n\t\t * If the first 8 bytes are empty and real data starts\n\t\t * afterwards, let's assume ASCII and claim the 8 first\n\t\t * bytes for the format specifyer.\n\t\t */\n\t\tfor (i = 0; (i < e->size) && !e->data[i]; i++);\n\t\tif (!i) for ( ; (i < e->size) && (e->data[i] == ' '); i++);\n\t\tif ((i >= 8) && (i < e->size)) {\n\t\t\texif_entry_log (e, EXIF_LOG_CODE_DEBUG,\n\t\t\t\t_(\"Tag 'UserComment' is not empty but does not \"\n\t\t\t\t\"start with a format identifier. \"\n\t\t\t\t\"This has been fixed.\"));\n\t\t\tmemcpy (e->data, \"ASCII\\0\\0\\0\", 8);\n\t\t\tbreak;\n\t\t}\n\n\t\t/* \n\t\t * First 8 bytes need to follow the specification. If they don't, \n\t\t * assume ASCII.\n\t\t */\n\t\tif (memcmp (e->data, \"ASCII\\0\\0\\0\" , 8) &&\n\t\t memcmp (e->data, \"UNICODE\\0\" , 8) &&\n\t\t memcmp (e->data, \"JIS\\0\\0\\0\\0\\0\" , 8) &&\n\t\t memcmp (e->data, \"\\0\\0\\0\\0\\0\\0\\0\\0\", 8)) {\n\t\t\te->data = exif_entry_realloc (e, e->data, 8 + e->size);\n\t\t\tif (!e->data) {\n\t\t\t\te->size = 0;\n\t\t\t\te->components = 0;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t/* Assume ASCII */\n\t\t\tmemmove (e->data + 8, e->data, e->size);\n\t\t\tmemcpy (e->data, \"ASCII\\0\\0\\0\", 8);\n\t\t\te->size += 8;\n\t\t\te->components += 8;\n\t\t\texif_entry_log (e, EXIF_LOG_CODE_DEBUG,\n\t\t\t\t_(\"Tag 'UserComment' did not start with a \"\n\t\t\t\t\"format identifier. This has been fixed.\"));\n\t\t\tbreak;\n\t\t}\n\n\t\tbreak;\n\tdefault:\n\t\tbreak;\n\t}\n}\n\n/*! Format the value of an ExifEntry for human display in a generic way.\n * The output is localized. The formatting is independent of the tag number.\n * \\pre The buffer at val is entirely cleared to 0. This guarantees that the\n * resulting string will be NUL terminated.\n * \\pre The ExifEntry is already a member of an ExifData.\n * \\param[in] e EXIF entry\n * \\param[out] val buffer in which to store value\n * \\param[in] maxlen one less than the length of the buffer val\n */\nstatic void\nexif_entry_format_value(ExifEntry *e, char *val, size_t maxlen)\n{\n\tExifByte v_byte;\n\tExifShort v_short;\n\tExifSShort v_sshort;\n\tExifLong v_long;\n\tExifRational v_rat;\n\tExifSRational v_srat;\n\tExifSLong v_slong;\n\tchar b[64];\n\tunsigned int i;\n\tconst ExifByteOrder o = exif_data_get_byte_order (e->parent->parent);\n\n\tif (!e->size)\n\t\treturn;\n\tswitch (e->format) {\n\tcase EXIF_FORMAT_UNDEFINED:\n\t\tsnprintf (val, maxlen, _(\"%i bytes undefined data\"), e->size);\n\t\tbreak;\n\tcase EXIF_FORMAT_BYTE:\n\tcase EXIF_FORMAT_SBYTE:\n\t\tv_byte = e->data[0];\n\t\tsnprintf (val, maxlen, \"0x%02x\", v_byte);\n\t\tmaxlen -= strlen (val);\n\t\tfor (i = 1; i < e->components; i++) {\n\t\t\tv_byte = e->data[i];\n\t\t\tsnprintf (b, sizeof (b), \", 0x%02x\", v_byte);\n\t\t\tstrncat (val, b, maxlen);\n\t\t\tmaxlen -= strlen (b);\n\t\t\tif ((signed)maxlen <= 0) break;\n\t\t}\n\t\tbreak;\n\tcase EXIF_FORMAT_SHORT:\n\t\tv_short = exif_get_short (e->data, o);\n\t\tsnprintf (val, maxlen, \"%u\", v_short);\n\t\tmaxlen -= strlen (val);\n\t\tfor (i = 1; i < e->components; i++) {\n\t\t\tv_short = exif_get_short (e->data +\n\t\t\t\texif_format_get_size (e->format) * i, o);\n\t\t\tsnprintf (b, sizeof (b), \", %u\", v_short);\n\t\t\tstrncat (val, b, maxlen);\n\t\t\tmaxlen -= strlen (b);\n\t\t\tif ((signed)maxlen <= 0) break;\n\t\t}\n\t\tbreak;\n\tcase EXIF_FORMAT_SSHORT:\n\t\tv_sshort = exif_get_sshort (e->data, o);\n\t\tsnprintf (val, maxlen, \"%i\", v_sshort);\n\t\tmaxlen -= strlen (val);\n\t\tfor (i = 1; i < e->components; i++) {\n\t\t\tv_sshort = exif_get_short (e->data +\n\t\t\t\texif_format_get_size (e->format) *\n\t\t\t\ti, o);\n\t\t\tsnprintf (b, sizeof (b), \", %i\", v_sshort);\n\t\t\tstrncat (val, b, maxlen);\n\t\t\tmaxlen -= strlen (b);\n\t\t\tif ((signed)maxlen <= 0) break;\n\t\t}\n\t\tbreak;\n\tcase EXIF_FORMAT_LONG:\n\t\tv_long = exif_get_long (e->data, o);\n\t\tsnprintf (val, maxlen, \"%lu\", (unsigned long) v_long);\n\t\tmaxlen -= strlen (val);\n\t\tfor (i = 1; i < e->components; i++) {\n\t\t\tv_long = exif_get_long (e->data +\n\t\t\t\texif_format_get_size (e->format) *\n\t\t\t\ti, o);\n\t\t\tsnprintf (b, sizeof (b), \", %lu\", (unsigned long) v_long);\n\t\t\tstrncat (val, b, maxlen);\n\t\t\tmaxlen -= strlen (b);\n\t\t\tif ((signed)maxlen <= 0) break;\n\t\t}\n\t\tbreak;\n\tcase EXIF_FORMAT_SLONG:\n\t\tv_slong = exif_get_slong (e->data, o);\n\t\tsnprintf (val, maxlen, \"%li\", (long) v_slong);\n\t\tmaxlen -= strlen (val);\n\t\tfor (i = 1; i < e->components; i++) {\n\t\t\tv_slong = exif_get_slong (e->data +\n\t\t\t\texif_format_get_size (e->format) * i, o);\n\t\t\tsnprintf (b, sizeof (b), \", %li\", (long) v_slong);\n\t\t\tstrncat (val, b, maxlen);\n\t\t\tmaxlen -= strlen (b);\n\t\t\tif ((signed)maxlen <= 0) break;\n\t\t}\n\t\tbreak;\n\tcase EXIF_FORMAT_ASCII:\n\t\tstrncpy (val, (char *) e->data, MIN (maxlen, e->size));\n\t\tbreak;\n\tcase EXIF_FORMAT_RATIONAL:\n\t\tfor (i = 0; i < e->components; i++) {\n\t\t\tif (i > 0) {\n\t\t\t\tstrncat (val, \", \", maxlen);\n\t\t\t\tmaxlen -= 2;\n\t\t\t}\n\t\t\tv_rat = exif_get_rational (\n\t\t\t\te->data + 8 * i, o);\n\t\t\tif (v_rat.denominator) {\n\t\t\t\t/*\n\t\t\t\t * Choose the number of significant digits to\n\t\t\t\t * display based on the size of the denominator.\n\t\t\t\t * It is scaled so that denominators within the\n\t\t\t\t * range 13..120 will show 2 decimal points.\n\t\t\t\t */\n\t\t\t\tint decimals = (int)(log10(v_rat.denominator)-0.08+1.0);\n\t\t\t\tsnprintf (b, sizeof (b), \"%2.*f\",\n\t\t\t\t\t decimals,\n\t\t\t\t\t (double) v_rat.numerator /\n\t\t\t\t\t (double) v_rat.denominator);\n\t\t\t} else\n\t\t\t\tsnprintf (b, sizeof (b), \"%lu/%lu\",\n\t\t\t\t (unsigned long) v_rat.numerator,\n\t\t\t\t (unsigned long) v_rat.denominator);\n\t\t\tstrncat (val, b, maxlen);\n\t\t\tmaxlen -= strlen (b);\n\t\t\tif ((signed) maxlen <= 0) break;\n\t\t}\n\t\tbreak;\n\tcase EXIF_FORMAT_SRATIONAL:\n\t\tfor (i = 0; i < e->components; i++) {\n\t\t\tif (i > 0) {\n\t\t\t\tstrncat (val, \", \", maxlen);\n\t\t\t\tmaxlen -= 2;\n\t\t\t}\n\t\t\tv_srat = exif_get_srational (\n\t\t\t\te->data + 8 * i, o);\n\t\t\tif (v_srat.denominator) {\n\t\t\t\tint decimals = (int)(log10(fabs(v_srat.denominator))-0.08+1.0);\n\t\t\t\tsnprintf (b, sizeof (b), \"%2.*f\",\n\t\t\t\t\t decimals,\n\t\t\t\t\t (double) v_srat.numerator /\n\t\t\t\t\t (double) v_srat.denominator);\n\t\t\t} else\n\t\t\t\tsnprintf (b, sizeof (b), \"%li/%li\",\n\t\t\t\t (long) v_srat.numerator,\n\t\t\t\t (long) v_srat.denominator);\n\t\t\tstrncat (val, b, maxlen);\n\t\t\tmaxlen -= strlen (b);\n\t\t\tif ((signed) maxlen <= 0) break;\n\t\t}\n\t\tbreak;\n\tcase EXIF_FORMAT_DOUBLE:\n\tcase EXIF_FORMAT_FLOAT:\n\tdefault:\n\t\tsnprintf (val, maxlen, _(\"%i bytes unsupported data type\"),\n\t\t\t e->size);\n\t\tbreak;\n\t}\n}\n\nvoid\nexif_entry_dump (ExifEntry *e, unsigned int indent)\n{\n\tchar buf[1024];\n\tchar value[1024];\n\tunsigned int i;\n\n\tfor (i = 0; i < 2 * indent; i++)\n\t\tbuf[i] = ' ';\n\tbuf[i] = '\\0';\n\n\tif (!e)\n\t\treturn;\n\n\tprintf (\"%sTag: 0x%x ('%s')\\n\", buf, e->tag,\n\t\texif_tag_get_name_in_ifd (e->tag, exif_entry_get_ifd(e)));\n\tprintf (\"%s Format: %i ('%s')\\n\", buf, e->format,\n\t\texif_format_get_name (e->format));\n\tprintf (\"%s Components: %i\\n\", buf, (int) e->components);\n\tprintf (\"%s Size: %i\\n\", buf, e->size);\n\tprintf (\"%s Value: %s\\n\", buf, exif_entry_get_value (e, value, sizeof(value)));\n}\n\n#define CF(entry,target,v,maxlen)\t\t\t\t\t\\\n{\t\t\t\t\t\t\t\t\t\\\n\tif (entry->format != target) {\t\t\t\t\t\\\n\t\texif_entry_log (entry, EXIF_LOG_CODE_CORRUPT_DATA,\t\\\n\t\t\t_(\"The tag '%s' contains data of an invalid \"\t\\\n\t\t\t\"format ('%s', expected '%s').\"),\t\t\\\n\t\t\texif_tag_get_name (entry->tag),\t\t\t\\\n\t\t\texif_format_get_name (entry->format),\t\t\\\n\t\t\texif_format_get_name (target));\t\t\t\\\n\t\tbreak;\t\t\t\t\t\t\t\\\n\t}\t\t\t\t\t\t\t\t\\\n}\n\n#define CC(entry,target,v,maxlen)\t\t\t\t\t\\\n{\t\t\t\t\t\t\t\t\t\\\n\tif (entry->components != target) {\t\t\t\t\\\n\t\texif_entry_log (entry, EXIF_LOG_CODE_CORRUPT_DATA,\t\\\n\t\t\t_(\"The tag '%s' contains an invalid number of \"\t\\\n\t\t\t \"components (%i, expected %i).\"),\t\t\\\n\t\t\texif_tag_get_name (entry->tag),\t\t\\\n\t\t\t(int) entry->components, (int) target);\t\t\\\n\t\tbreak;\t\t\t\t\t\t\t\\\n\t}\t\t\t\t\t\t\t\t\\\n}\n\nstatic const struct {\n\tExifTag tag;\n\tconst char *strings[10];\n} list[] = {\n#ifndef NO_VERBOSE_TAG_DATA\n { EXIF_TAG_PLANAR_CONFIGURATION,\n { N_(\"Chunky format\"), N_(\"Planar format\"), NULL}},\n { EXIF_TAG_SENSING_METHOD,\n { \"\", N_(\"Not defined\"), N_(\"One-chip color area sensor\"),\n N_(\"Two-chip color area sensor\"), N_(\"Three-chip color area sensor\"),\n N_(\"Color sequential area sensor\"), \"\", N_(\"Trilinear sensor\"),\n N_(\"Color sequential linear sensor\"), NULL}},\n { EXIF_TAG_ORIENTATION,\n { \"\", N_(\"Top-left\"), N_(\"Top-right\"), N_(\"Bottom-right\"),\n N_(\"Bottom-left\"), N_(\"Left-top\"), N_(\"Right-top\"),\n N_(\"Right-bottom\"), N_(\"Left-bottom\"), NULL}},\n { EXIF_TAG_YCBCR_POSITIONING,\n { \"\", N_(\"Centered\"), N_(\"Co-sited\"), NULL}},\n { EXIF_TAG_PHOTOMETRIC_INTERPRETATION,\n { N_(\"Reversed mono\"), N_(\"Normal mono\"), N_(\"RGB\"), N_(\"Palette\"), \"\",\n N_(\"CMYK\"), N_(\"YCbCr\"), \"\", N_(\"CieLAB\"), NULL}},\n { EXIF_TAG_CUSTOM_RENDERED,\n { N_(\"Normal process\"), N_(\"Custom process\"), NULL}},\n { EXIF_TAG_EXPOSURE_MODE,\n { N_(\"Auto exposure\"), N_(\"Manual exposure\"), N_(\"Auto bracket\"), NULL}},\n { EXIF_TAG_WHITE_BALANCE,\n { N_(\"Auto white balance\"), N_(\"Manual white balance\"), NULL}},\n { EXIF_TAG_SCENE_CAPTURE_TYPE,\n { N_(\"Standard\"), N_(\"Landscape\"), N_(\"Portrait\"),\n N_(\"Night scene\"), NULL}},\n { EXIF_TAG_GAIN_CONTROL,\n { N_(\"Normal\"), N_(\"Low gain up\"), N_(\"High gain up\"),\n N_(\"Low gain down\"), N_(\"High gain down\"), NULL}},\n { EXIF_TAG_SATURATION,\n { N_(\"Normal\"), N_(\"Low saturation\"), N_(\"High saturation\"), NULL}},\n { EXIF_TAG_CONTRAST , {N_(\"Normal\"), N_(\"Soft\"), N_(\"Hard\"), NULL}},\n { EXIF_TAG_SHARPNESS, {N_(\"Normal\"), N_(\"Soft\"), N_(\"Hard\"), NULL}},\n#endif\n { 0, {NULL}}\n};\n\nstatic const struct {\n ExifTag tag;\n struct {\n int index;\n const char *values[4]; /*!< list of progressively shorter string\n\t\t\t descriptions; the longest one that fits will be\n\t\t\t selected */\n } elem[25];\n} list2[] = {\n#ifndef NO_VERBOSE_TAG_DATA\n { EXIF_TAG_METERING_MODE,\n { { 0, {N_(\"Unknown\"), NULL}},\n { 1, {N_(\"Average\"), N_(\"Avg\"), NULL}},\n { 2, {N_(\"Center-weighted average\"), N_(\"Center-weight\"), NULL}},\n { 3, {N_(\"Spot\"), NULL}},\n { 4, {N_(\"Multi spot\"), NULL}},\n { 5, {N_(\"Pattern\"), NULL}},\n { 6, {N_(\"Partial\"), NULL}},\n {255, {N_(\"Other\"), NULL}},\n { 0, {NULL}}}},\n { EXIF_TAG_COMPRESSION,\n { {1, {N_(\"Uncompressed\"), NULL}},\n {5, {N_(\"LZW compression\"), NULL}},\n {6, {N_(\"JPEG compression\"), NULL}},\n {7, {N_(\"JPEG compression\"), NULL}},\n {8, {N_(\"Deflate/ZIP compression\"), NULL}},\n {32773, {N_(\"PackBits compression\"), NULL}},\n {0, {NULL}}}},\n { EXIF_TAG_LIGHT_SOURCE,\n { { 0, {N_(\"Unknown\"), NULL}},\n { 1, {N_(\"Daylight\"), NULL}},\n { 2, {N_(\"Fluorescent\"), NULL}},\n { 3, {N_(\"Tungsten incandescent light\"), N_(\"Tungsten\"), NULL}},\n { 4, {N_(\"Flash\"), NULL}},\n { 9, {N_(\"Fine weather\"), NULL}},\n { 10, {N_(\"Cloudy weather\"), N_(\"Cloudy\"), NULL}},\n { 11, {N_(\"Shade\"), NULL}},\n { 12, {N_(\"Daylight fluorescent\"), NULL}},\n { 13, {N_(\"Day white fluorescent\"), NULL}},\n { 14, {N_(\"Cool white fluorescent\"), NULL}},\n { 15, {N_(\"White fluorescent\"), NULL}},\n { 17, {N_(\"Standard light A\"), NULL}},\n { 18, {N_(\"Standard light B\"), NULL}},\n { 19, {N_(\"Standard light C\"), NULL}},\n { 20, {N_(\"D55\"), NULL}},\n { 21, {N_(\"D65\"), NULL}},\n { 22, {N_(\"D75\"), NULL}},\n { 24, {N_(\"ISO studio tungsten\"),NULL}},\n {255, {N_(\"Other\"), NULL}},\n { 0, {NULL}}}},\n { EXIF_TAG_FOCAL_PLANE_RESOLUTION_UNIT,\n { {2, {N_(\"Inch\"), N_(\"in\"), NULL}},\n {3, {N_(\"Centimeter\"), N_(\"cm\"), NULL}},\n {0, {NULL}}}},\n { EXIF_TAG_RESOLUTION_UNIT,\n { {2, {N_(\"Inch\"), N_(\"in\"), NULL}},\n {3, {N_(\"Centimeter\"), N_(\"cm\"), NULL}}, \n {0, {NULL}}}},\n { EXIF_TAG_EXPOSURE_PROGRAM,\n { {0, {N_(\"Not defined\"), NULL}},\n {1, {N_(\"Manual\"), NULL}},\n {2, {N_(\"Normal program\"), N_(\"Normal\"), NULL}},\n {3, {N_(\"Aperture priority\"), N_(\"Aperture\"), NULL}},\n {4, {N_(\"Shutter priority\"),N_(\"Shutter\"), NULL}},\n {5, {N_(\"Creative program (biased toward depth of field)\"),\n\t N_(\"Creative\"), NULL}},\n {6, {N_(\"Creative program (biased toward fast shutter speed)\"),\n\t N_(\"Action\"), NULL}},\n {7, {N_(\"Portrait mode (for closeup photos with the background out \"\n\t \"of focus)\"), N_(\"Portrait\"), NULL}},\n {8, {N_(\"Landscape mode (for landscape photos with the background \"\n\t \"in focus)\"), N_(\"Landscape\"), NULL}},\n {0, {NULL}}}},\n { EXIF_TAG_FLASH,\n { {0x0000, {N_(\"Flash did not fire\"), N_(\"No flash\"), NULL}},\n {0x0001, {N_(\"Flash fired\"), N_(\"Flash\"), N_(\"Yes\"), NULL}},\n {0x0005, {N_(\"Strobe return light not detected\"), N_(\"Without strobe\"),\n\t\tNULL}},\n {0x0007, {N_(\"Strobe return light detected\"), N_(\"With strobe\"), NULL}},\n {0x0008, {N_(\"Flash did not fire\"), NULL}}, /* Olympus E-330 */\n {0x0009, {N_(\"Flash fired, compulsory flash mode\"), NULL}},\n {0x000d, {N_(\"Flash fired, compulsory flash mode, return light \"\n\t\t \"not detected\"), NULL}},\n {0x000f, {N_(\"Flash fired, compulsory flash mode, return light \"\n\t\t \"detected\"), NULL}},\n {0x0010, {N_(\"Flash did not fire, compulsory flash mode\"), NULL}},\n {0x0018, {N_(\"Flash did not fire, auto mode\"), NULL}},\n {0x0019, {N_(\"Flash fired, auto mode\"), NULL}},\n {0x001d, {N_(\"Flash fired, auto mode, return light not detected\"),\n\t\tNULL}},\n {0x001f, {N_(\"Flash fired, auto mode, return light detected\"), NULL}},\n {0x0020, {N_(\"No flash function\"),NULL}},\n {0x0041, {N_(\"Flash fired, red-eye reduction mode\"), NULL}},\n {0x0045, {N_(\"Flash fired, red-eye reduction mode, return light \"\n\t\t \"not detected\"), NULL}},\n {0x0047, {N_(\"Flash fired, red-eye reduction mode, return light \"\n\t\t \"detected\"), NULL}},\n {0x0049, {N_(\"Flash fired, compulsory flash mode, red-eye reduction \"\n\t\t \"mode\"), NULL}},\n {0x004d, {N_(\"Flash fired, compulsory flash mode, red-eye reduction \"\n\t\t \"mode, return light not detected\"), NULL}},\n {0x004f, {N_(\"Flash fired, compulsory flash mode, red-eye reduction mode, \"\n\t\t \"return light detected\"), NULL}},\n {0x0058, {N_(\"Flash did not fire, auto mode, red-eye reduction mode\"), NULL}},\n {0x0059, {N_(\"Flash fired, auto mode, red-eye reduction mode\"), NULL}},\n {0x005d, {N_(\"Flash fired, auto mode, return light not detected, \"\n\t\t \"red-eye reduction mode\"), NULL}},\n {0x005f, {N_(\"Flash fired, auto mode, return light detected, \"\n\t\t \"red-eye reduction mode\"), NULL}},\n {0x0000, {NULL}}}},\n { EXIF_TAG_SUBJECT_DISTANCE_RANGE, \n { {0, {N_(\"Unknown\"), N_(\"?\"), NULL}},\n {1, {N_(\"Macro\"), NULL}},\n {2, {N_(\"Close view\"), N_(\"Close\"), NULL}},\n {3, {N_(\"Distant view\"), N_(\"Distant\"), NULL}},\n {0, {NULL}}}},\n { EXIF_TAG_COLOR_SPACE,\n { {1, {N_(\"sRGB\"), NULL}},\n {2, {N_(\"Adobe RGB\"), NULL}},\n {0xffff, {N_(\"Uncalibrated\"), NULL}},\n {0x0000, {NULL}}}},\n#endif\n {0, { { 0, {NULL}}} }\n};\n\nconst char *\nexif_entry_get_value (ExifEntry *e, char *val, unsigned int maxlen)\n{\n\tunsigned int i, j, k;\n\tconst unsigned char *t;\n\tExifShort v_short, v_short2, v_short3, v_short4;\n\tExifByte v_byte;\n\tExifRational v_rat;\n\tExifSRational v_srat;\n\tchar b[64];\n\tconst char *c;\n\tExifByteOrder o;\n\tdouble d;\n\tExifEntry *entry;\n\tstatic const struct {\n\t\tchar label[5];\n\t\tchar major, minor;\n\t} versions[] = {\n\t\t{\"0110\", 1, 1},\n\t\t{\"0120\", 1, 2},\n\t\t{\"0200\", 2, 0},\n\t\t{\"0210\", 2, 1},\n\t\t{\"0220\", 2, 2},\n\t\t{\"0221\", 2, 21},\n\t\t{\"\" , 0, 0}\n\t};\n\n\t/* FIXME: This belongs to somewhere else. */\n\t/* libexif should use the default system locale.\n\t * If an application specifically requires UTF-8, then we\n\t * must give the application a way to tell libexif that.\n\t * \n\t * bind_textdomain_codeset (GETTEXT_PACKAGE, \"UTF-8\");\n\t */\n\tbindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);\n\n\t/* make sure the returned string is zero terminated */\n\tmemset (val, 0, maxlen);\n\tmaxlen--;\n\tmemset (b, 0, sizeof (b));\n\n\t/* We need the byte order */\n\tif (!e || !e->parent || !e->parent->parent)\n\t\treturn val;\n\to = exif_data_get_byte_order (e->parent->parent);\n\n\t/* Sanity check */\n\tif (e->size != e->components * exif_format_get_size (e->format)) {\n\t\tsnprintf (val, maxlen, _(\"Invalid size of entry (%i, \"\n\t\t\t\"expected %li x %i).\"), e->size, e->components,\n\t\t\t\texif_format_get_size (e->format));\n\t\treturn val;\n\t}\n\n\tswitch (e->tag) {\n\tcase EXIF_TAG_USER_COMMENT:\n\n\t\t/*\n\t\t * The specification says UNDEFINED, but some\n\t\t * manufacturers don't care and use ASCII. If this is the\n\t\t * case here, only refuse to read it if there is no chance\n\t\t * of finding readable data.\n\t\t */\n\t\tif ((e->format != EXIF_FORMAT_ASCII) || \n\t\t (e->size <= 8) ||\n\t\t ( memcmp (e->data, \"ASCII\\0\\0\\0\" , 8) &&\n\t\t memcmp (e->data, \"UNICODE\\0\" , 8) &&\n\t\t memcmp (e->data, \"JIS\\0\\0\\0\\0\\0\", 8) &&\n\t\t memcmp (e->data, \"\\0\\0\\0\\0\\0\\0\\0\\0\", 8)))\n\t\t\tCF (e, EXIF_FORMAT_UNDEFINED, val, maxlen);\n\n\t\t/*\n\t\t * Note that, according to the specification (V2.1, p 40),\n\t\t * the user comment field does not have to be \n\t\t * NULL terminated.\n\t\t */\n\t\tif ((e->size >= 8) && !memcmp (e->data, \"ASCII\\0\\0\\0\", 8)) {\n\t\t\tstrncpy (val, (char *) e->data + 8, MIN (e->size - 8, maxlen));\n\t\t\tbreak;\n\t\t}\n\t\tif ((e->size >= 8) && !memcmp (e->data, \"UNICODE\\0\", 8)) {\n\t\t\tstrncpy (val, _(\"Unsupported UNICODE string\"), maxlen);\n\t\t/* FIXME: use iconv to convert into the locale encoding.\n\t\t * EXIF 2.2 implies (but does not say) that this encoding is\n\t\t * UCS-2.\n\t\t */\n\t\t\tbreak;\n\t\t}\n\t\tif ((e->size >= 8) && !memcmp (e->data, \"JIS\\0\\0\\0\\0\\0\", 8)) {\n\t\t\tstrncpy (val, _(\"Unsupported JIS string\"), maxlen);\n\t\t/* FIXME: use iconv to convert into the locale encoding */\n\t\t\tbreak;\n\t\t}\n\n\t\t/* Check if there is really some information in the tag. */\n\t\tfor (i = 0; (i < e->size) &&\n\t\t\t (!e->data[i] || (e->data[i] == ' ')); i++);\n\t\tif (i == e->size) break;\n\n\t\t/*\n\t\t * If we reach this point, the tag does not\n\t\t * comply with the standard and seems to contain data.\n\t\t * Print as much as possible.\n\t\t */\n\t\texif_entry_log (e, EXIF_LOG_CODE_DEBUG,\n\t\t\t_(\"Tag UserComment does not comply \"\n\t\t\t\"with standard but contains data.\"));\n\t\tfor (; (i < e->size) && (strlen (val) < maxlen - 1); i++) {\n\t\t\texif_entry_log (e, EXIF_LOG_CODE_DEBUG,\n\t\t\t\t_(\"Byte at position %i: 0x%02x\"), i, e->data[i]);\n\t\t\tval[strlen (val)] =\n\t\t\t\tisprint (e->data[i]) ? e->data[i] : '.';\n\t\t}\n\t\tbreak;\n\n\tcase EXIF_TAG_EXIF_VERSION:\n\t\tCF (e, EXIF_FORMAT_UNDEFINED, val, maxlen);\n\t\tCC (e, 4, val, maxlen);\n\t\tstrncpy (val, _(\"Unknown Exif Version\"), maxlen);\n\t\tfor (i = 0; *versions[i].label; i++) {\n\t\t\tif (!memcmp (e->data, versions[i].label, 4)) {\n \t\t\t\tsnprintf (val, maxlen,\n\t\t\t\t\t_(\"Exif Version %d.%d\"),\n\t\t\t\t\tversions[i].major,\n\t\t\t\t\tversions[i].minor);\n \t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tbreak;\n\tcase EXIF_TAG_FLASH_PIX_VERSION:\n\t\tCF (e, EXIF_FORMAT_UNDEFINED, val, maxlen);\n\t\tCC (e, 4, val, maxlen);\n\t\tif (!memcmp (e->data, \"0100\", 4))\n\t\t\tstrncpy (val, _(\"FlashPix Version 1.0\"), maxlen);\n\t\telse if (!memcmp (e->data, \"0101\", 4))\n\t\t\tstrncpy (val, _(\"FlashPix Version 1.01\"), maxlen);\n\t\telse\n\t\t\tstrncpy (val, _(\"Unknown FlashPix Version\"), maxlen);\n\t\tbreak;\n\tcase EXIF_TAG_COPYRIGHT:\n\t\tCF (e, EXIF_FORMAT_ASCII, val, maxlen);\n\n\t\t/*\n\t\t * First part: Photographer.\n\t\t * Some cameras store a string like \" \" here. Ignore it.\n\t\t */\n\t\tif (e->size && e->data &&\n\t\t (strspn ((char *)e->data, \" \") != strlen ((char *) e->data)))\n\t\t\tstrncpy (val, (char *) e->data, MIN (maxlen, e->size));\n\t\telse\n\t\t\tstrncpy (val, _(\"[None]\"), maxlen);\n\t\tstrncat (val, \" \", maxlen - strlen (val));\n\t\tstrncat (val, _(\"(Photographer)\"), maxlen - strlen (val));\n\n\t\t/* Second part: Editor. */\n\t\tstrncat (val, \" - \", maxlen - strlen (val));\n\t\tif (e->size && e->data) {\n\t\t\tsize_t ts;\n\t\t\tt = e->data + strlen ((char *) e->data) + 1;\n\t\t\tts = e->data + e->size - t;\n\t\t\tif ((ts > 0) && (strspn ((char *)t, \" \") != ts))\n\t\t\t\tstrncat (val, (char *)t, MIN (maxlen - strlen (val), ts));\n\t\t} else {\n\t\t\tstrncat (val, _(\"[None]\"), maxlen - strlen (val));\n\t\t}\n\t\tstrncat (val, \" \", maxlen - strlen (val));\n\t\tstrncat (val, _(\"(Editor)\"), maxlen - strlen (val));\n\n\t\tbreak;\n\tcase EXIF_TAG_FNUMBER:\n\t\tCF (e, EXIF_FORMAT_RATIONAL, val, maxlen);\n\t\tCC (e, 1, val, maxlen);\n\t\tv_rat = exif_get_rational (e->data, o);\n\t\tif (!v_rat.denominator) {\n\t\t\texif_entry_format_value(e, val, maxlen);\n\t\t\tbreak;\n\t\t}\n\t\td = (double) v_rat.numerator / (double) v_rat.denominator;\n\t\tsnprintf (val, maxlen, \"f/%.01f\", d);\n\t\tbreak;\n\tcase EXIF_TAG_APERTURE_VALUE:\n\tcase EXIF_TAG_MAX_APERTURE_VALUE:\n\t\tCF (e, EXIF_FORMAT_RATIONAL, val, maxlen);\n\t\tCC (e, 1, val, maxlen);\n\t\tv_rat = exif_get_rational (e->data, o);\n\t\tif (!v_rat.denominator || (0x80000000 == v_rat.numerator)) {\n\t\t\texif_entry_format_value(e, val, maxlen);\n\t\t\tbreak;\n\t\t}\n\t\td = (double) v_rat.numerator / (double) v_rat.denominator;\n\t\tsnprintf (val, maxlen, _(\"%.02f EV\"), d);\n\t\tsnprintf (b, sizeof (b), _(\" (f/%.01f)\"), pow (2, d / 2.));\n\t\tif (maxlen > strlen (val) + strlen (b))\n\t\t\tstrncat (val, b, maxlen - strlen (val));\n\t\tbreak;\n\tcase EXIF_TAG_FOCAL_LENGTH:\n\t\tCF (e, EXIF_FORMAT_RATIONAL, val, maxlen);\n\t\tCC (e, 1, val, maxlen);\n\t\tv_rat = exif_get_rational (e->data, o);\n\t\tif (!v_rat.denominator) {\n\t\t\texif_entry_format_value(e, val, maxlen);\n\t\t\tbreak;\n\t\t}\n\n\t\t/*\n\t\t * For calculation of the 35mm equivalent,\n\t\t * Minolta cameras need a multiplier that depends on the\n\t\t * camera model.\n\t\t */\n\t\td = 0.;\n\t\tentry = exif_content_get_entry (\n\t\t\te->parent->parent->ifd[EXIF_IFD_0], EXIF_TAG_MAKE);\n\t\tif (entry && entry->data &&\n\t\t !strncmp ((char *)entry->data, \"Minolta\", 7)) {\n\t\t\tentry = exif_content_get_entry (\n\t\t\t\t\te->parent->parent->ifd[EXIF_IFD_0],\n\t\t\t\t\tEXIF_TAG_MODEL);\n\t\t\tif (entry && entry->data) {\n\t\t\t\tif (!strncmp ((char *)entry->data, \"DiMAGE 7\", 8))\n\t\t\t\t\td = 3.9;\n\t\t\t\telse if (!strncmp ((char *)entry->data, \"DiMAGE 5\", 8))\n\t\t\t\t\td = 4.9;\n\t\t\t}\n\t\t}\n\t\tif (d)\n\t\t\tsnprintf (b, sizeof (b), _(\" (35 equivalent: %d mm)\"),\n\t\t\t\t (int) (d * (double) v_rat.numerator /\n\t\t\t\t \t (double) v_rat.denominator));\n\n\t\td = (double) v_rat.numerator / (double) v_rat.denominator;\n\t\tsnprintf (val, maxlen, \"%.1f mm\", d);\n\t\tif (maxlen > strlen (val) + strlen (b))\n\t\t\tstrncat (val, b, maxlen - strlen (val));\n\t\tbreak;\n\tcase EXIF_TAG_SUBJECT_DISTANCE:\n\t\tCF (e, EXIF_FORMAT_RATIONAL, val, maxlen);\n\t\tCC (e, 1, val, maxlen);\n\t\tv_rat = exif_get_rational (e->data, o);\n\t\tif (!v_rat.denominator) {\n\t\t\texif_entry_format_value(e, val, maxlen);\n\t\t\tbreak;\n\t\t}\n\t\td = (double) v_rat.numerator / (double) v_rat.denominator;\n\t\tsnprintf (val, maxlen, \"%.1f m\", d);\n\t\tbreak;\n\tcase EXIF_TAG_EXPOSURE_TIME:\n\t\tCF (e, EXIF_FORMAT_RATIONAL, val, maxlen);\n\t\tCC (e, 1, val, maxlen);\n\t\tv_rat = exif_get_rational (e->data, o);\n\t\tif (!v_rat.denominator) {\n\t\t\texif_entry_format_value(e, val, maxlen);\n\t\t\tbreak;\n\t\t}\n\t\td = (double) v_rat.numerator / (double) v_rat.denominator;\n\t\tif (d < 1)\n\t\t\tsnprintf (val, maxlen, _(\"1/%i\"), (int) (0.5 + 1. / d));\n\t\telse\n\t\t\tsnprintf (val, maxlen, \"%i\", (int) d);\n\t\tif (maxlen > strlen (val) + strlen (_(\" sec.\")))\n\t\t\tstrncat (val, _(\" sec.\"), maxlen - strlen (val));\n\t\tbreak;\n\tcase EXIF_TAG_SHUTTER_SPEED_VALUE:\n\t\tCF (e, EXIF_FORMAT_SRATIONAL, val, maxlen);\n\t\tCC (e, 1, val, maxlen);\n\t\tv_srat = exif_get_srational (e->data, o);\n\t\tif (!v_srat.denominator) {\n\t\t\texif_entry_format_value(e, val, maxlen);\n\t\t\tbreak;\n\t\t}\n\t\td = (double) v_srat.numerator / (double) v_srat.denominator;\n\t\tsnprintf (val, maxlen, _(\"%.02f EV\"), d);\n\t\td = 1. / pow (2, d);\n\t\tif (d < 1)\n\t\t snprintf (b, sizeof (b), _(\" (1/%d sec.)\"), (int) (1. / d));\n\t\telse\n\t\t snprintf (b, sizeof (b), _(\" (%d sec.)\"), (int) d);\n\t\tstrncat (val, b, maxlen - strlen (val));\n\t\tbreak;\n\tcase EXIF_TAG_BRIGHTNESS_VALUE:\n\t\tCF (e, EXIF_FORMAT_SRATIONAL, val, maxlen);\n\t\tCC (e, 1, val, maxlen);\n\t\tv_srat = exif_get_srational (e->data, o);\n\t\tif (!v_srat.denominator) {\n\t\t\texif_entry_format_value(e, val, maxlen);\n\t\t\tbreak;\n\t\t}\n\t\td = (double) v_srat.numerator / (double) v_srat.denominator;\n\t\tsnprintf (val, maxlen, _(\"%.02f EV\"), d);\n\t\tsnprintf (b, sizeof (b), _(\" (%.02f cd/m^2)\"),\n\t\t\t1. / (M_PI * 0.3048 * 0.3048) * pow (2, d));\n\t\tif (maxlen > strlen (val) + strlen (b))\n\t\t\tstrncat (val, b, maxlen - strlen (val));\n\t\tbreak;\n\tcase EXIF_TAG_FILE_SOURCE:\n\t\tCF (e, EXIF_FORMAT_UNDEFINED, val, maxlen);\n\t\tCC (e, 1, val, maxlen);\n\t\tv_byte = e->data[0];\n\t\tif (v_byte == 3)\n\t\t\tstrncpy (val, _(\"DSC\"), maxlen);\n\t\telse\n\t\t\tsnprintf (val, maxlen, _(\"Internal error (unknown \"\n\t\t\t\t \"value %i)\"), v_byte);\n\t\tbreak;\n\tcase EXIF_TAG_COMPONENTS_CONFIGURATION:\n\t\tCF (e, EXIF_FORMAT_UNDEFINED, val, maxlen);\n\t\tCC (e, 4, val, maxlen);\n\t\tfor (i = 0; i < 4; i++) {\n\t\t\tswitch (e->data[i]) {\n\t\t\tcase 0: c = _(\"-\"); break;\n\t\t\tcase 1: c = _(\"Y\"); break;\n\t\t\tcase 2: c = _(\"Cb\"); break;\n\t\t\tcase 3: c = _(\"Cr\"); break;\n\t\t\tcase 4: c = _(\"R\"); break;\n\t\t\tcase 5: c = _(\"G\"); break;\n\t\t\tcase 6: c = _(\"B\"); break;\n\t\t\tdefault: c = _(\"Reserved\"); break;\n\t\t\t}\n\t\t\tstrncat (val, c, maxlen - strlen (val));\n\t\t\tif (i < 3)\n\t\t\t\tstrncat (val, \" \", maxlen - strlen (val));\n\t\t}\n\t\tbreak;\n\tcase EXIF_TAG_EXPOSURE_BIAS_VALUE:\n\t\tCF (e, EXIF_FORMAT_SRATIONAL, val, maxlen);\n\t\tCC (e, 1, val, maxlen);\n\t\tv_srat = exif_get_srational (e->data, o);\n\t\tif (!v_srat.denominator) {\n\t\t\texif_entry_format_value(e, val, maxlen);\n\t\t\tbreak;\n\t\t}\n\t\td = (double) v_srat.numerator / (double) v_srat.denominator;\n\t\tsnprintf (val, maxlen, _(\"%.02f EV\"), d);\n\t\tbreak;\n\tcase EXIF_TAG_SCENE_TYPE:\n\t\tCF (e, EXIF_FORMAT_UNDEFINED, val, maxlen);\n\t\tCC (e, 1, val, maxlen);\n\t\tv_byte = e->data[0];\n\t\tif (v_byte == 1)\n\t\t\tstrncpy (val, _(\"Directly photographed\"), maxlen);\n\t\telse\n\t\t\tsnprintf (val, maxlen, _(\"Internal error (unknown \"\n\t\t\t\t \"value %i)\"), v_byte);\n\t\tbreak;\n\tcase EXIF_TAG_YCBCR_SUB_SAMPLING:\n\t\tCF (e, EXIF_FORMAT_SHORT, val, maxlen);\n\t\tCC (e, 2, val, maxlen);\n\t\tv_short = exif_get_short (e->data, o);\n\t\tv_short2 = exif_get_short (\n\t\t\te->data + exif_format_get_size (e->format),\n\t\t\to);\n\t\tif ((v_short == 2) && (v_short2 == 1))\n\t\t\tstrncpy (val, _(\"YCbCr4:2:2\"), maxlen);\n\t\telse if ((v_short == 2) && (v_short2 == 2))\n\t\t\tstrncpy (val, _(\"YCbCr4:2:0\"), maxlen);\n\t\telse\n\t\t\tsnprintf (val, maxlen, \"%u, %u\", v_short, v_short2);\n\t\tbreak;\n\tcase EXIF_TAG_SUBJECT_AREA:\n\t\tCF (e, EXIF_FORMAT_SHORT, val, maxlen);\n\t\tswitch (e->components) {\n\t\tcase 2:\n\t\t\tv_short = exif_get_short (e->data, o);\n\t\t\tv_short2 = exif_get_short (e->data + 2, o);\n\t\t\tsnprintf (val, maxlen, \"(x,y) = (%i,%i)\",\n\t\t\t\t v_short, v_short2);\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tv_short = exif_get_short (e->data, o);\n\t\t\tv_short2 = exif_get_short (e->data + 2, o);\n\t\t\tv_short3 = exif_get_short (e->data + 4, o);\n\t\t\tsnprintf (val, maxlen, _(\"Within distance %i of \"\n\t\t\t\t\"(x,y) = (%i,%i)\"), v_short3, v_short,\n\t\t\t\tv_short2);\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tv_short = exif_get_short (e->data, o);\n\t\t\tv_short2 = exif_get_short (e->data + 2, o);\n\t\t\tv_short3 = exif_get_short (e->data + 4, o);\n\t\t\tv_short4 = exif_get_short (e->data + 6, o);\n\t\t\tsnprintf (val, maxlen, _(\"Within rectangle \"\n\t\t\t\t\"(width %i, height %i) around \"\n\t\t\t\t\"(x,y) = (%i,%i)\"), v_short3, v_short4,\n\t\t\t\tv_short, v_short2);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tsnprintf (val, maxlen, _(\"Unexpected number \"\n\t\t\t\t\"of components (%li, expected 2, 3, or 4).\"),\n\t\t\t\te->components);\t\n\t\t}\n\t\tbreak;\n\tcase EXIF_TAG_GPS_VERSION_ID:\n\t\t/* This is only valid in the GPS IFD */\n\t\tCF (e, EXIF_FORMAT_BYTE, val, maxlen);\n\t\tCC (e, 4, val, maxlen);\n\t\tv_byte = e->data[0];\n\t\tsnprintf (val, maxlen, \"%u\", v_byte);\n\t\tmaxlen -= strlen (val);\n\t\tfor (i = 1; i < e->components; i++) {\n\t\t\tv_byte = e->data[i];\n\t\t\tsnprintf (b, sizeof (b), \".%u\", v_byte);\n\t\t\tstrncat (val, b, maxlen);\n\t\t\tmaxlen -= strlen (b);\n\t\t\tif ((signed)maxlen <= 0) break;\n\t\t}\n\t\tbreak;\n\tcase EXIF_TAG_INTEROPERABILITY_VERSION:\n\t/* a.k.a. case EXIF_TAG_GPS_LATITUDE: */\n\t\t/* This tag occurs in EXIF_IFD_INTEROPERABILITY */\n\t\tif (e->format == EXIF_FORMAT_UNDEFINED) {\n\t\t\tstrncpy (val, (char *) e->data, MIN (maxlen, e->size));\n\t\t\tbreak;\n\t\t}\n\t\t/* EXIF_TAG_GPS_LATITUDE is the same numerically as\n\t\t * EXIF_TAG_INTEROPERABILITY_VERSION but in EXIF_IFD_GPS\n\t\t */\n\t\texif_entry_format_value(e, val, maxlen);\n\t\tbreak;\n\tcase EXIF_TAG_GPS_ALTITUDE_REF:\n\t\t/* This is only valid in the GPS IFD */\n\t\tCF (e, EXIF_FORMAT_BYTE, val, maxlen);\n\t\tCC (e, 1, val, maxlen);\n\t\tv_byte = e->data[0];\n\t\tif (v_byte == 0)\n\t\t\tstrncpy (val, _(\"Sea level\"), maxlen);\n\t\telse if (v_byte == 1)\n\t\t\tstrncpy (val, _(\"Sea level reference\"), maxlen);\n\t\telse\n\t\t\tsnprintf (val, maxlen, _(\"Internal error (unknown \"\n\t\t\t\t \"value %i)\"), v_byte);\n\t\tbreak;\n\tcase EXIF_TAG_GPS_TIME_STAMP:\n\t\t/* This is only valid in the GPS IFD */\n\t\tCF (e, EXIF_FORMAT_RATIONAL, val, maxlen);\n\t\tCC (e, 3, val, maxlen);\n\n\t\tv_rat = exif_get_rational (e->data, o);\n\t\tif (!v_rat.denominator) {\n\t\t\texif_entry_format_value(e, val, maxlen);\n\t\t\tbreak;\n\t\t}\n\t\ti = v_rat.numerator / v_rat.denominator;\n\n\t\tv_rat = exif_get_rational (e->data +\n\t\t\t\t\t exif_format_get_size (e->format),\n\t\t\t\t\t o);\n\t\tif (!v_rat.denominator) {\n\t\t\texif_entry_format_value(e, val, maxlen);\n\t\t\tbreak;\n\t\t}\n\t\tj = v_rat.numerator / v_rat.denominator;\n\n\t\tv_rat = exif_get_rational (e->data +\n\t\t\t\t\t 2*exif_format_get_size (e->format),\n\t\t\t\t\t o);\n\t\tif (!v_rat.denominator) {\n\t\t\texif_entry_format_value(e, val, maxlen);\n\t\t\tbreak;\n\t\t}\n\t\td = (double) v_rat.numerator / (double) v_rat.denominator;\n\t\tsnprintf (val, maxlen, \"%02u:%02u:%05.2f\", i, j, d);\n\t\tbreak;\n\n\tcase EXIF_TAG_METERING_MODE:\n\tcase EXIF_TAG_COMPRESSION:\n\tcase EXIF_TAG_LIGHT_SOURCE:\n\tcase EXIF_TAG_FOCAL_PLANE_RESOLUTION_UNIT:\n\tcase EXIF_TAG_RESOLUTION_UNIT:\n\tcase EXIF_TAG_EXPOSURE_PROGRAM:\n\tcase EXIF_TAG_FLASH:\n\tcase EXIF_TAG_SUBJECT_DISTANCE_RANGE:\n\tcase EXIF_TAG_COLOR_SPACE:\n\t\tCF (e,EXIF_FORMAT_SHORT, val, maxlen);\n\t\tCC (e, 1, val, maxlen);\n\t\tv_short = exif_get_short (e->data, o);\n\n\t\t/* Search the tag */\n\t\tfor (i = 0; list2[i].tag && (list2[i].tag != e->tag); i++);\n\t\tif (!list2[i].tag) {\n\t\t\tsnprintf (val, maxlen, _(\"Internal error (unknown \"\n\t\t\t\t \"value %i)\"), v_short);\n\t\t\tbreak;\n\t\t}\n\n\t\t/* Find the value */\n\t\tfor (j = 0; list2[i].elem[j].values[0] &&\n\t\t\t (list2[i].elem[j].index < v_short); j++);\n\t\tif (list2[i].elem[j].index != v_short) {\n\t\t\tsnprintf (val, maxlen, _(\"Internal error (unknown \"\n\t\t\t\t \"value %i)\"), v_short);\n\t\t\tbreak;\n\t\t}\n\n\t\t/* Find a short enough value */\n\t\tmemset (val, 0, maxlen);\n\t\tfor (k = 0; list2[i].elem[j].values[k]; k++) {\n\t\t\tsize_t l = strlen (_(list2[i].elem[j].values[k]));\n\t\t\tif ((maxlen > l) && (strlen (val) < l))\n\t\t\t\tstrncpy (val, _(list2[i].elem[j].values[k]), maxlen);\n\t\t}\n\t\tif (!val[0]) snprintf (val, maxlen, \"%i\", v_short);\n\n\t\tbreak;\n\n\tcase EXIF_TAG_PLANAR_CONFIGURATION:\n\tcase EXIF_TAG_SENSING_METHOD:\n\tcase EXIF_TAG_ORIENTATION:\n\tcase EXIF_TAG_YCBCR_POSITIONING:\n\tcase EXIF_TAG_PHOTOMETRIC_INTERPRETATION:\n\tcase EXIF_TAG_CUSTOM_RENDERED:\n\tcase EXIF_TAG_EXPOSURE_MODE:\n\tcase EXIF_TAG_WHITE_BALANCE:\n\tcase EXIF_TAG_SCENE_CAPTURE_TYPE:\n\tcase EXIF_TAG_GAIN_CONTROL:\n\tcase EXIF_TAG_SATURATION:\n\tcase EXIF_TAG_CONTRAST:\n\tcase EXIF_TAG_SHARPNESS:\n\t\tCF (e, EXIF_FORMAT_SHORT, val, maxlen);\n\t\tCC (e, 1, val, maxlen);\n\t\tv_short = exif_get_short (e->data, o);\n\n\t\t/* Search the tag */\n\t\tfor (i = 0; list[i].tag && (list[i].tag != e->tag); i++);\n\t\tif (!list[i].tag) {\n\t\t\tsnprintf (val, maxlen, _(\"Internal error (unknown \"\n\t\t\t\t \"value %i)\"), v_short);\n\t\t\tbreak;\n\t\t}\n\n\t\t/* Find the value */\n\t\tfor (j = 0; list[i].strings[j] && (j < v_short); j++);\n\t\tif (!list[i].strings[j])\n\t\t\tsnprintf (val, maxlen, \"%i\", v_short);\n\t\telse if (!*list[i].strings[j])\n\t\t\tsnprintf (val, maxlen, _(\"Unknown value %i\"), v_short);\n\t\telse\n\t\t\tstrncpy (val, _(list[i].strings[j]), maxlen);\n\t\tbreak;\n\n\tcase EXIF_TAG_XP_TITLE:\n\tcase EXIF_TAG_XP_COMMENT:\n\tcase EXIF_TAG_XP_AUTHOR:\n\tcase EXIF_TAG_XP_KEYWORDS:\n\tcase EXIF_TAG_XP_SUBJECT:\n\t\t/* Warning! The texts are converted from UTF16 to UTF8 */\n\t\t/* FIXME: use iconv to convert into the locale encoding */\n\t\texif_convert_utf16_to_utf8(val, (unsigned short*)e->data, MIN(maxlen, e->size));\n\t\tbreak;\n\n\tdefault:\n\t\t/* Use a generic value formatting */\n\t\texif_entry_format_value(e, val, maxlen);\n\t}\n\n\treturn val;\n}\n\n\n/*!\n * \\bug Log and report failed exif_mem_malloc() calls.\n */\nvoid\nexif_entry_initialize (ExifEntry *e, ExifTag tag)\n{\n\tExifRational r;\n\tExifByteOrder o;\n\n\t/* We need the byte order */\n\tif (!e || !e->parent || e->data || !e->parent->parent)\n\t\treturn;\n\to = exif_data_get_byte_order (e->parent->parent);\n\n\te->tag = tag;\n\tswitch (tag) {\n\n\t/* LONG, 1 component, no default */\n\tcase EXIF_TAG_PIXEL_X_DIMENSION:\n\tcase EXIF_TAG_PIXEL_Y_DIMENSION:\n\tcase EXIF_TAG_EXIF_IFD_POINTER:\n\tcase EXIF_TAG_GPS_INFO_IFD_POINTER:\n\tcase EXIF_TAG_INTEROPERABILITY_IFD_POINTER:\n\tcase EXIF_TAG_JPEG_INTERCHANGE_FORMAT_LENGTH:\n\tcase EXIF_TAG_JPEG_INTERCHANGE_FORMAT:\n\t\te->components = 1;\n\t\te->format = EXIF_FORMAT_LONG;\n\t\te->size = exif_format_get_size (e->format) * e->components;\n\t\te->data = exif_entry_alloc (e, e->size);\n\t\tif (!e->data) break;\n\t\tbreak;\n\n\t/* SHORT, 1 component, no default */\n\tcase EXIF_TAG_SUBJECT_LOCATION:\n\tcase EXIF_TAG_SENSING_METHOD:\n\tcase EXIF_TAG_PHOTOMETRIC_INTERPRETATION:\n\tcase EXIF_TAG_COMPRESSION:\n\tcase EXIF_TAG_EXPOSURE_MODE:\n\tcase EXIF_TAG_WHITE_BALANCE:\n\tcase EXIF_TAG_FOCAL_LENGTH_IN_35MM_FILM:\n\tcase EXIF_TAG_GAIN_CONTROL:\n\tcase EXIF_TAG_SUBJECT_DISTANCE_RANGE:\n\tcase EXIF_TAG_FLASH:\n\tcase EXIF_TAG_ISO_SPEED_RATINGS:\n\n\t/* SHORT, 1 component, default 0 */\n\tcase EXIF_TAG_IMAGE_WIDTH:\n\tcase EXIF_TAG_IMAGE_LENGTH:\n\tcase EXIF_TAG_EXPOSURE_PROGRAM:\n\tcase EXIF_TAG_LIGHT_SOURCE:\n\tcase EXIF_TAG_METERING_MODE:\n\tcase EXIF_TAG_CUSTOM_RENDERED:\n\tcase EXIF_TAG_SCENE_CAPTURE_TYPE:\n\tcase EXIF_TAG_CONTRAST:\n\tcase EXIF_TAG_SATURATION:\n\tcase EXIF_TAG_SHARPNESS:\n\t\te->components = 1;\n\t\te->format = EXIF_FORMAT_SHORT;\n\t\te->size = exif_format_get_size (e->format) * e->components;\n\t\te->data = exif_entry_alloc (e, e->size);\n\t\tif (!e->data) break;\n\t\texif_set_short (e->data, o, 0);\n\t\tbreak;\n\n\t/* SHORT, 1 component, default 1 */\n\tcase EXIF_TAG_ORIENTATION:\n\tcase EXIF_TAG_PLANAR_CONFIGURATION:\n\tcase EXIF_TAG_YCBCR_POSITIONING:\n\t\te->components = 1;\n\t\te->format = EXIF_FORMAT_SHORT;\n\t\te->size = exif_format_get_size (e->format) * e->components;\n\t\te->data = exif_entry_alloc (e, e->size);\n\t\tif (!e->data) break;\n\t\texif_set_short (e->data, o, 1);\n\t\tbreak;\n\n\t/* SHORT, 1 component, default 2 */\n\tcase EXIF_TAG_RESOLUTION_UNIT:\n\tcase EXIF_TAG_FOCAL_PLANE_RESOLUTION_UNIT:\n\t\te->components = 1;\n\t\te->format = EXIF_FORMAT_SHORT;\n\t\te->size = exif_format_get_size (e->format) * e->components;\n\t\te->data = exif_entry_alloc (e, e->size);\n\t\tif (!e->data) break;\n\t\texif_set_short (e->data, o, 2);\n\t\tbreak;\n\n\t/* SHORT, 1 component, default 3 */\n\tcase EXIF_TAG_SAMPLES_PER_PIXEL:\n\t\te->components = 1;\n\t\te->format = EXIF_FORMAT_SHORT;\n\t\te->size = exif_format_get_size (e->format) * e->components;\n\t\te->data = exif_entry_alloc (e, e->size);\n\t\tif (!e->data) break;\n\t\texif_set_short (e->data, o, 3);\n\t\tbreak;\n\n\t/* SHORT, 1 component, default 0xffff */\n\tcase EXIF_TAG_COLOR_SPACE:\n\t\te->components = 1;\n\t\te->format = EXIF_FORMAT_SHORT;\n\t\te->size = exif_format_get_size (e->format) * e->components;\n\t\te->data = exif_entry_alloc (e, e->size);\n\t\tif (!e->data) break;\n\t\texif_set_short (e->data, o, 0xffff);\n\t\tbreak;\n\n\t/* SHORT, 3 components, default 8 8 8 */\n\tcase EXIF_TAG_BITS_PER_SAMPLE:\n\t\te->components = 3;\n\t\te->format = EXIF_FORMAT_SHORT;\n\t\te->size = exif_format_get_size (e->format) * e->components;\n\t\te->data = exif_entry_alloc (e, e->size);\n\t\tif (!e->data) break;\n\t\texif_set_short (e->data, o, 8);\n\t\texif_set_short (\n\t\t\te->data + exif_format_get_size (e->format),\n\t\t\to, 8);\n\t\texif_set_short (\n\t\t\te->data + 2 * exif_format_get_size (e->format),\n\t\t\to, 8);\n\t\tbreak;\n\n\t/* SHORT, 2 components, default 2 1 */\n\tcase EXIF_TAG_YCBCR_SUB_SAMPLING:\n\t\te->components = 2;\n\t\te->format = EXIF_FORMAT_SHORT;\n\t\te->size = exif_format_get_size (e->format) * e->components;\n\t\te->data = exif_entry_alloc (e, e->size);\n\t\tif (!e->data) break;\n\t\texif_set_short (e->data, o, 2);\n\t\texif_set_short (\n\t\t\te->data + exif_format_get_size (e->format),\n\t\t\to, 1);\n\t\tbreak;\n\n\t/* SRATIONAL, 1 component, no default */\n\tcase EXIF_TAG_EXPOSURE_BIAS_VALUE:\n\tcase EXIF_TAG_BRIGHTNESS_VALUE:\n\tcase EXIF_TAG_SHUTTER_SPEED_VALUE:\n\t\te->components = 1;\n\t\te->format = EXIF_FORMAT_SRATIONAL;\n\t\te->size = exif_format_get_size (e->format) * e->components;\n\t\te->data = exif_entry_alloc (e, e->size);\n\t\tif (!e->data) break;\n\t\tbreak;\n\n\t/* RATIONAL, 1 component, no default */\n\tcase EXIF_TAG_EXPOSURE_TIME:\n\tcase EXIF_TAG_FOCAL_PLANE_X_RESOLUTION:\n\tcase EXIF_TAG_FOCAL_PLANE_Y_RESOLUTION:\n\tcase EXIF_TAG_EXPOSURE_INDEX:\n\tcase EXIF_TAG_FLASH_ENERGY:\n\tcase EXIF_TAG_FNUMBER:\n\tcase EXIF_TAG_FOCAL_LENGTH:\n\tcase EXIF_TAG_SUBJECT_DISTANCE:\n\tcase EXIF_TAG_MAX_APERTURE_VALUE:\n\tcase EXIF_TAG_APERTURE_VALUE:\n\tcase EXIF_TAG_COMPRESSED_BITS_PER_PIXEL:\n\tcase EXIF_TAG_PRIMARY_CHROMATICITIES:\n\tcase EXIF_TAG_DIGITAL_ZOOM_RATIO:\n\t\te->components = 1;\n\t\te->format = EXIF_FORMAT_RATIONAL;\n\t\te->size = exif_format_get_size (e->format) * e->components;\n\t\te->data = exif_entry_alloc (e, e->size);\n\t\tif (!e->data) break;\n\t\tbreak;\n\n\t/* RATIONAL, 1 component, default 72/1 */\n\tcase EXIF_TAG_X_RESOLUTION:\n\tcase EXIF_TAG_Y_RESOLUTION:\n\t\te->components = 1;\n\t\te->format = EXIF_FORMAT_RATIONAL;\n\t\te->size = exif_format_get_size (e->format) * e->components;\n\t\te->data = exif_entry_alloc (e, e->size);\n\t\tif (!e->data) break;\n\t\tr.numerator = 72;\n\t\tr.denominator = 1;\n\t\texif_set_rational (e->data, o, r);\n\t\tbreak;\n\n\t/* RATIONAL, 2 components, no default */\n\tcase EXIF_TAG_WHITE_POINT:\n\t\te->components = 2;\n\t\te->format = EXIF_FORMAT_RATIONAL;\n\t\te->size = exif_format_get_size (e->format) * e->components;\n\t\te->data = exif_entry_alloc (e, e->size);\n\t\tif (!e->data) break;\n\t\tbreak;\n\n\t/* RATIONAL, 6 components */\n\tcase EXIF_TAG_REFERENCE_BLACK_WHITE:\n\t\te->components = 6;\n\t\te->format = EXIF_FORMAT_RATIONAL;\n\t\te->size = exif_format_get_size (e->format) * e->components;\n\t\te->data = exif_entry_alloc (e, e->size);\n\t\tif (!e->data) break;\n\t\tr.denominator = 1;\n\t\tr.numerator = 0;\n\t\texif_set_rational (e->data, o, r);\n\t\tr.numerator = 255;\n\t\texif_set_rational (\n\t\t\te->data + exif_format_get_size (e->format), o, r);\n\t\tr.numerator = 0;\n\t\texif_set_rational (\n\t\t\te->data + 2 * exif_format_get_size (e->format), o, r);\n\t\tr.numerator = 255;\n\t\texif_set_rational (\n\t\t\te->data + 3 * exif_format_get_size (e->format), o, r);\n\t\tr.numerator = 0;\n\t\texif_set_rational (\n\t\t\te->data + 4 * exif_format_get_size (e->format), o, r);\n\t\tr.numerator = 255;\n\t\texif_set_rational (\n\t\t\te->data + 5 * exif_format_get_size (e->format), o, r);\n\t\tbreak;\n\n\t/* ASCII, 20 components */\n\tcase EXIF_TAG_DATE_TIME:\n\tcase EXIF_TAG_DATE_TIME_ORIGINAL:\n\tcase EXIF_TAG_DATE_TIME_DIGITIZED:\n\t{\n\t\ttime_t t;\n#ifdef HAVE_LOCALTIME_R\n\t\tstruct tm tms;\n#endif\n\t\tstruct tm *tm;\n\n\t\tt = time (NULL);\n#ifdef HAVE_LOCALTIME_R\n\t\ttm = localtime_r (&t, &tms);\n#else\n\t\ttm = localtime (&t);\n#endif\n\t\te->components = 20;\n\t\te->format = EXIF_FORMAT_ASCII;\n\t\te->size = exif_format_get_size (e->format) * e->components;\n\t\te->data = exif_entry_alloc (e, e->size);\n\t\tif (!e->data) break;\n\t\tsnprintf ((char *) e->data, e->size,\n\t\t\t \"%04i:%02i:%02i %02i:%02i:%02i\",\n\t\t\t tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday,\n\t\t\t tm->tm_hour, tm->tm_min, tm->tm_sec);\n\t\tbreak;\n\t}\n\n\t/* ASCII, no default */\n\tcase EXIF_TAG_SUB_SEC_TIME:\n\tcase EXIF_TAG_SUB_SEC_TIME_ORIGINAL:\n\tcase EXIF_TAG_SUB_SEC_TIME_DIGITIZED:\n\t\te->components = 0;\n\t\te->format = EXIF_FORMAT_ASCII;\n\t\te->size = 0;\n\t\te->data = NULL;\n\t\tbreak;\n\n\t/* ASCII, default \"[None]\" */\n\tcase EXIF_TAG_IMAGE_DESCRIPTION:\n\tcase EXIF_TAG_MAKE:\n\tcase EXIF_TAG_MODEL:\n\tcase EXIF_TAG_SOFTWARE:\n\tcase EXIF_TAG_ARTIST:\n\t\te->components = strlen (_(\"[None]\")) + 1;\n\t\te->format = EXIF_FORMAT_ASCII;\n\t\te->size = exif_format_get_size (e->format) * e->components;\n\t\te->data = exif_entry_alloc (e, e->size);\n\t\tif (!e->data) break;\n\t\tstrncpy ((char *)e->data, _(\"[None]\"), e->size);\n\t\tbreak;\n\t/* ASCII, default \"[None]\\0[None]\\0\" */\n\tcase EXIF_TAG_COPYRIGHT:\n\t\te->components = (strlen (_(\"[None]\")) + 1) * 2;\n\t\te->format = EXIF_FORMAT_ASCII;\n\t\te->size = exif_format_get_size (e->format) * e->components;\n\t\te->data = exif_entry_alloc (e, e->size);\n\t\tif (!e->data) break;\n\t\tstrcpy (((char *)e->data) + 0, _(\"[None]\"));\n\t\tstrcpy (((char *)e->data) + strlen (_(\"[None]\")) + 1, _(\"[None]\"));\n\t\tbreak;\n\n\t/* UNDEFINED, 1 component, default 1 */\n\tcase EXIF_TAG_SCENE_TYPE:\n\t\te->components = 1;\n\t\te->format = EXIF_FORMAT_UNDEFINED;\n\t\te->size = exif_format_get_size (e->format) * e->components;\n\t\te->data = exif_entry_alloc (e, e->size);\n\t\tif (!e->data) break;\n\t\te->data[0] = 0x01;\n\t\tbreak;\n\n\t/* UNDEFINED, 1 component, default 3 */\n\tcase EXIF_TAG_FILE_SOURCE:\n\t\te->components = 1;\n\t\te->format = EXIF_FORMAT_UNDEFINED;\n\t\te->size = exif_format_get_size (e->format) * e->components;\n\t\te->data = exif_entry_alloc (e, e->size);\n\t\tif (!e->data) break;\n\t\te->data[0] = 0x03;\n\t\tbreak;\n\n\t/* UNDEFINED, 4 components, default 48 49 48 48 */\n case EXIF_TAG_FLASH_PIX_VERSION:\n e->components = 4;\n e->format = EXIF_FORMAT_UNDEFINED;\n e->size = exif_format_get_size (e->format) * e->components;\n e->data = exif_entry_alloc (e, e->size);\n\t\tif (!e->data) break;\n memcpy (e->data, \"0100\", 4);\n break;\n\n /* UNDEFINED, 4 components, default 48 50 49 48 */\n case EXIF_TAG_EXIF_VERSION:\n e->components = 4;\n e->format = EXIF_FORMAT_UNDEFINED;\n e->size = exif_format_get_size (e->format) * e->components;\n e->data = exif_entry_alloc (e, e->size);\n\t\tif (!e->data) break;\n memcpy (e->data, \"0210\", 4);\n break;\n\n /* UNDEFINED, 4 components, default 1 2 3 0 */\n case EXIF_TAG_COMPONENTS_CONFIGURATION:\n e->components = 4;\n e->format = EXIF_FORMAT_UNDEFINED;\n e->size = exif_format_get_size (e->format) * e->components;\n e->data = exif_entry_alloc (e, e->size);\n\t\tif (!e->data) break;\n\t\te->data[0] = 1;\n\t\te->data[1] = 2;\n\t\te->data[2] = 3;\n\t\te->data[3] = 0;\n break;\n\n\t/* UNDEFINED, no components, no default */\n\t/* Use this if the tag is otherwise unsupported */\n\tcase EXIF_TAG_MAKER_NOTE:\n\tcase EXIF_TAG_USER_COMMENT:\n\tdefault:\n\t\te->components = 0;\n\t\te->format = EXIF_FORMAT_UNDEFINED;\n\t\te->size = 0;\n\t\te->data = NULL;\n\t\tbreak;\n\t}\n}\n"},"repo_name":{"kind":"string","value":"KernelAnalysisPlatform/KlareDbg"},"path":{"kind":"string","value":"tracers/qemu/decaf/shared/sleuthkit/framework/modules/c_LibExifModule/libexif-0.6.20/libexif/exif-entry.c"},"language":{"kind":"string","value":"C"},"license":{"kind":"string","value":"gpl-3.0"},"size":{"kind":"number","value":51660,"string":"51,660"}}},{"rowIdx":115086139,"cells":{"code":{"kind":"string","value":"--[[\n This example adds a new passthrough packet type for waypoints.\n Waypoint data is packet into 32bits and sent down the frsky bus with a DIY appid of 0x5009.\n\n - 10 bits for current waypoint index, max 1023\n - 12 bits for the distance in meters encoded with AP_Frsky_SPort::prep_number(distance, 3, 2) max is 102.3Km\n - 6 bits for xtrack error (5 bits + sign) encoded with prep_5bits\n - 3 bits for bearing from COG with a 45° resolution\n\n We'll be responding to an unused sensor ID\n\n This is a list of IDs we can't use:\n - serial protocol 4 uses IDs 0,2,3 and 6\n - serial protocol 10 uses ID 7,13,20,27\n - serial protocol 23, no IDs used\n\n For this test we'll use sensor ID 17 (0x71),\n Note: 17 is the index, 0x71 is the actual ID\n--]]\n\nlocal loop_time = 1000 -- number of ms between runs\n\nlocal WP_OFFSET_DISTANCE \t= 10\nlocal WP_OFFSET_BEARING \t= 29\nlocal WP_OFFSET_XTRACK \t\t= 22\n\nlocal WP_LIMIT_COUNT = 0x3FF -- 1023\nlocal WP_LIMIT_XTRACK = 0x7F -- 127m\nlocal WP_LIMIT_DISTANCE = 0x18F9C -- 102.3Km\nlocal WP_ARROW_COUNT = 8 -- 8 possible directions\n\nlocal wp_bearing = 0\nlocal wp_index = 0\nlocal wp_distance = 0\nlocal wp_xtrack = 0\n\nfunction wrap_360(angle)\n local res = angle % 360\n if res < 0 then\n res = res + 360\n end\n return res\nend\n\nfunction prep_5bits(num)\n local res = 0\n local abs_num = math.floor(math.abs(num) + 0.5)\n if abs_num < 10 then\n res = abs_num << 1\n elseif abs_num < 150 then\n res = ( math.floor((abs_num * 0.1)+0.5) << 1) | 0x1\n else\n res = 0x1F\n end\n if num < 0 then\n res = res | 0x1 << 5\n end\n return res\nend\n\nfunction wp_pack(index, distance, bearing, xtrack)\n local wp_dword = uint32_t()\n wp_dword = math.min(index,WP_LIMIT_COUNT)\n wp_dword = wp_dword | frsky_sport:prep_number(math.min(math.floor(distance+0.5),WP_LIMIT_DISTANCE),3,2) << WP_OFFSET_DISTANCE\n wp_dword = wp_dword | prep_5bits(math.min(xtrack,WP_LIMIT_XTRACK)) << WP_OFFSET_XTRACK\n if gps:status(0) >= gps.GPS_OK_FIX_2D then\n local cog = gps:ground_course(0) -- deg\n local angle = wrap_360(bearing - cog) -- deg\n local interval = 360 / WP_ARROW_COUNT -- 45 deg\n -- hint from OSD code to avoid unreliable bearing at small distances\n if distance < 2 then\n angle = 0\n end\n -- bearing expressed as offset from cog as multiple of 45° ( 8 sectors) encoded as 3bits\n wp_dword = wp_dword | ((math.floor(((angle + interval/2) / interval)) % WP_ARROW_COUNT) & 0x7) << WP_OFFSET_BEARING\n end\n\n return wp_dword & 0xFFFFFFFF\nend\n\nfunction update_wp_info()\n local index = mission:get_current_nav_index()\n local distance = vehicle:get_wp_distance_m()\n local bearing = vehicle:get_wp_bearing_deg()\n local xtrack = vehicle:get_wp_crosstrack_error_m()\n\n if index ~= nil and distance ~= nil and bearing ~= nil and xtrack ~= nil then\n wp_index = index\n wp_bearing = bearing\n wp_distance = distance\n wp_xtrack = xtrack\n return true\n end\n return false\nend\n\nfunction update()\n local gps_status = gps.status(0,0)\n\n if not update_wp_info() then\n return update, loop_time\n end\n\n local sensor_id = 0x71\n local wp_dword = uint32_t()\n\n wp_dword = wp_pack(wp_index, wp_distance, wp_bearing, wp_xtrack)\n frsky_sport:sport_telemetry_push(sensor_id, 0x10, 0x5009, wp_dword)\n\n return update, loop_time\nend\n\nreturn update() , 1000\n"},"repo_name":{"kind":"string","value":"collmot/ardupilot"},"path":{"kind":"string","value":"libraries/AP_Scripting/examples/frsky_wp.lua"},"language":{"kind":"string","value":"Lua"},"license":{"kind":"string","value":"gpl-3.0"},"size":{"kind":"number","value":3416,"string":"3,416"}}},{"rowIdx":115086140,"cells":{"code":{"kind":"string","value":"# -*- coding: utf-8 -*-\n\"\"\" Python API for language and translation management. \"\"\"\n\nfrom collections import namedtuple\n\nfrom django.conf import settings\nfrom django.utils.translation import ugettext as _\nfrom dark_lang.models import DarkLangConfig\n\n\n# Named tuples can be referenced using object-like variable\n# deferencing, making the use of tuples more readable by\n# eliminating the need to see the context of the tuple packing.\nLanguage = namedtuple('Language', 'code name')\n\n\ndef released_languages():\n \"\"\"Retrieve the list of released languages.\n\n Constructs a list of Language tuples by intersecting the\n list of valid language tuples with the list of released\n language codes.\n\n Returns:\n list of Language: Languages in which full translations are available.\n\n Example:\n\n >>> print released_languages()\n [Language(code='en', name=u'English'), Language(code='fr', name=u'Français')]\n\n \"\"\"\n released_language_codes = DarkLangConfig.current().released_languages_list\n default_language_code = settings.LANGUAGE_CODE\n\n if default_language_code not in released_language_codes:\n released_language_codes.append(default_language_code)\n released_language_codes.sort()\n\n # Intersect the list of valid language tuples with the list\n # of release language codes\n released_languages = [\n Language(tuple[0], tuple[1])\n for tuple in settings.LANGUAGES\n if tuple[0] in released_language_codes\n ]\n\n return released_languages\n\n\ndef all_languages():\n \"\"\"Retrieve the list of all languages, translated and sorted.\n\n Returns:\n list of (language code (str), language name (str)): the language names\n are translated in the current activated language and the results sorted\n alphabetically.\n\n \"\"\"\n languages = [(lang[0], _(lang[1])) for lang in settings.ALL_LANGUAGES] # pylint: disable=translation-of-non-string\n return sorted(languages, key=lambda lang: lang[1])\n"},"repo_name":{"kind":"string","value":"louyihua/edx-platform"},"path":{"kind":"string","value":"common/djangoapps/lang_pref/api.py"},"language":{"kind":"string","value":"Python"},"license":{"kind":"string","value":"agpl-3.0"},"size":{"kind":"number","value":1986,"string":"1,986"}}},{"rowIdx":115086141,"cells":{"code":{"kind":"string","value":"/*\n * CommandWithArg.java\n *\n * Copyright (C) 2009-12 by RStudio, Inc.\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\npackage org.rstudio.core.client;\n\npublic interface CommandWithArg\n{\n void execute(T arg);\n}\n"},"repo_name":{"kind":"string","value":"maligulzar/Rstudio-instrumented"},"path":{"kind":"string","value":"src/gwt/src/org/rstudio/core/client/CommandWithArg.java"},"language":{"kind":"string","value":"Java"},"license":{"kind":"string","value":"agpl-3.0"},"size":{"kind":"number","value":682,"string":"682"}}},{"rowIdx":115086142,"cells":{"code":{"kind":"string","value":"#ifndef CL_TYPECHECK_HDR\n#define CL_TYPECHECK_HDR\n\n#define EXIT_CL_ALLOC_FAIL 2\n#define EXIT_CL_MISSING_VALUE 3\n#define EXIT_CL_INVALID_VALUE 4\n#define EXIT_CL_FILE_OPEN_FAIL 5\n#define EXIT_CL_INVALID_STRING 6\n\nint isIntCL(char *input, int isVerbose);\nint isLongCL(char *input, int isVerbose);\nint isFloatCL(char *input, int isVerbose);\nint isDoubleCL(char *input, int isVerbose);\nvoid shiftCL(int *i, int argc, char *argv[]);\nint isCommentCL(char *str);\nint isEmptyLineCL(char *str);\nvoid stripQuotesCL(char *str);\n\n#endif\n\n"},"repo_name":{"kind":"string","value":"gjbex/datasink"},"path":{"kind":"string","value":"src/well_cl_params_aux.h"},"language":{"kind":"string","value":"C"},"license":{"kind":"string","value":"lgpl-3.0"},"size":{"kind":"number","value":525,"string":"525"}}},{"rowIdx":115086143,"cells":{"code":{"kind":"string","value":"---\nlicense: Licensed to the Apache Software Foundation (ASF) under one\n or more contributor license agreements. See the NOTICE file\n distributed with this work for additional information\n regarding copyright ownership. The ASF licenses this file\n to you under the Apache License, Version 2.0 (the\n \"License\"); you may not use this file except in compliance\n with the License. You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing,\n software distributed under the License is distributed on an\n \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n KIND, either express or implied. See the License for the\n specific language governing permissions and limitations\n under the License.\n---\n\nアップグレードガイド\n================\n\n> アプリケーションを最新の Apache Cordova にアップグレードする方法を解説します。\n\n- Upgrading Cordova Android\n- Upgrading Cordova BlackBerry\n- Upgrading Cordova iOS\n- Upgrading Cordova Symbian\n- Upgrading Cordova webOS\n- Upgrading Cordova Windows Phone\n- Upgrading Cordova Bada\n- Upgrading Cordova Tizen\n"},"repo_name":{"kind":"string","value":"monaca/cordova-docs"},"path":{"kind":"string","value":"docs/jp/2.9.0/guide/upgrading/index.md"},"language":{"kind":"string","value":"Markdown"},"license":{"kind":"string","value":"apache-2.0"},"size":{"kind":"number","value":1274,"string":"1,274"}}},{"rowIdx":115086144,"cells":{"code":{"kind":"string","value":"/**\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\npackage org.apache.hadoop.hbase.types;\n\nimport org.apache.hadoop.hbase.classification.InterfaceAudience;\nimport org.apache.hadoop.hbase.classification.InterfaceStability;\nimport org.apache.hadoop.hbase.util.Order;\nimport org.apache.hadoop.hbase.util.OrderedBytes;\nimport org.apache.hadoop.hbase.util.PositionedByteRange;\n\n\n/**\n * A {@code float} of 32-bits using a fixed-length encoding. Based on\n * {@link OrderedBytes#encodeFloat32(PositionedByteRange, float, Order)}.\n */\n@InterfaceAudience.Public\n@InterfaceStability.Evolving\npublic class OrderedFloat32 extends OrderedBytesBase {\n\n public static final OrderedFloat32 ASCENDING = new OrderedFloat32(Order.ASCENDING);\n public static final OrderedFloat32 DESCENDING = new OrderedFloat32(Order.DESCENDING);\n\n protected OrderedFloat32(Order order) { super(order); }\n\n @Override\n public boolean isNullable() { return false; }\n\n @Override\n public int encodedLength(Float val) { return 5; }\n\n @Override\n public Class encodedClass() { return Float.class; }\n\n @Override\n public Float decode(PositionedByteRange src) {\n return OrderedBytes.decodeFloat32(src);\n }\n\n @Override\n public int encode(PositionedByteRange dst, Float val) {\n if (null == val) throw new IllegalArgumentException(\"Null values not supported.\");\n return OrderedBytes.encodeFloat32(dst, val, order);\n }\n\n /**\n * Read a {@code float} value from the buffer {@code dst}.\n */\n public float decodeFloat(PositionedByteRange dst) {\n return OrderedBytes.decodeFloat32(dst);\n }\n\n /**\n * Write instance {@code val} into buffer {@code buff}.\n */\n public int encodeFloat(PositionedByteRange dst, float val) {\n return OrderedBytes.encodeFloat32(dst, val, order);\n }\n}\n"},"repo_name":{"kind":"string","value":"Guavus/hbase"},"path":{"kind":"string","value":"hbase-common/src/main/java/org/apache/hadoop/hbase/types/OrderedFloat32.java"},"language":{"kind":"string","value":"Java"},"license":{"kind":"string","value":"apache-2.0"},"size":{"kind":"number","value":2533,"string":"2,533"}}},{"rowIdx":115086145,"cells":{"code":{"kind":"string","value":"' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.\n\nImports System.Collections.Immutable\nImports System.Threading\nImports Microsoft.CodeAnalysis.ImmutableArrayExtensions\nImports Microsoft.CodeAnalysis.Text\nImports Microsoft.CodeAnalysis.VisualBasic.Symbols\nImports Microsoft.CodeAnalysis.VisualBasic.Syntax\n\nNamespace Microsoft.CodeAnalysis.VisualBasic.Symbols\n Friend NotInheritable Class SourceNamespaceSymbol\n Inherits PEOrSourceOrMergedNamespaceSymbol\n\n Private ReadOnly _declaration As MergedNamespaceDeclaration\n Private ReadOnly _containingNamespace As SourceNamespaceSymbol\n Private ReadOnly _containingModule As SourceModuleSymbol\n Private _nameToMembersMap As Dictionary(Of String, ImmutableArray(Of NamespaceOrTypeSymbol))\n Private _nameToTypeMembersMap As Dictionary(Of String, ImmutableArray(Of NamedTypeSymbol))\n Private _lazyEmbeddedKind As Integer = EmbeddedSymbolKind.Unset\n\n ' lazily evaluated state of the symbol (StateFlags)\n Private _lazyState As Integer\n\n \n Private Enum StateFlags As Integer\n HasMultipleSpellings = &H1 ' ReadOnly: Set if there are multiple declarations with different spellings (casing)\n AllMembersIsSorted = &H2 ' Set if \"m_lazyAllMembers\" is sorted.\n DeclarationValidated = &H4 ' Set by ValidateDeclaration.\n End Enum\n\n ' This caches results of GetModuleMembers()\n Private _lazyModuleMembers As ImmutableArray(Of NamedTypeSymbol)\n\n ' This caches results of GetMembers()\n Private _lazyAllMembers As ImmutableArray(Of Symbol)\n\n Private _lazyLexicalSortKey As LexicalSortKey = LexicalSortKey.NotInitialized\n\n Friend Sub New(decl As MergedNamespaceDeclaration, containingNamespace As SourceNamespaceSymbol, containingModule As SourceModuleSymbol)\n _declaration = decl\n _containingNamespace = containingNamespace\n _containingModule = containingModule\n If (containingNamespace IsNot Nothing AndAlso containingNamespace.HasMultipleSpellings) OrElse decl.HasMultipleSpellings Then\n _lazyState = StateFlags.HasMultipleSpellings\n End If\n End Sub\n\n ''' \n ''' Register COR types declared in this namespace, if any, in the COR types cache.\n ''' \n Private Sub RegisterDeclaredCorTypes()\n\n Dim containingAssembly As AssemblySymbol = Me.ContainingAssembly\n\n If (containingAssembly.KeepLookingForDeclaredSpecialTypes) Then\n ' Register newly declared COR types\n For Each array In _nameToMembersMap.Values\n For Each member In array\n Dim type = TryCast(member, NamedTypeSymbol)\n If type IsNot Nothing AndAlso type.SpecialType <> SpecialType.None Then\n containingAssembly.RegisterDeclaredSpecialType(type)\n\n If Not containingAssembly.KeepLookingForDeclaredSpecialTypes Then\n Return\n End If\n End If\n Next\n Next\n End If\n End Sub\n\n Public Overrides ReadOnly Property Name As String\n Get\n Return _declaration.Name\n End Get\n End Property\n\n Friend Overrides ReadOnly Property EmbeddedSymbolKind As EmbeddedSymbolKind\n Get\n If _lazyEmbeddedKind = EmbeddedSymbolKind.Unset Then\n Dim value As Integer = EmbeddedSymbolKind.None\n For Each location In _declaration.NameLocations\n Debug.Assert(location IsNot Nothing)\n If location.Kind = LocationKind.None Then\n Dim embeddedLocation = TryCast(location, EmbeddedTreeLocation)\n If embeddedLocation IsNot Nothing Then\n value = value Or embeddedLocation.EmbeddedKind\n End If\n End If\n Next\n Interlocked.CompareExchange(_lazyEmbeddedKind, value, EmbeddedSymbolKind.Unset)\n End If\n\n Return CType(_lazyEmbeddedKind, EmbeddedSymbolKind)\n End Get\n End Property\n\n Public Overrides ReadOnly Property ContainingSymbol As Symbol\n Get\n Return If(_containingNamespace, DirectCast(_containingModule, Symbol))\n End Get\n End Property\n\n Public Overrides ReadOnly Property ContainingAssembly As AssemblySymbol\n Get\n Return _containingModule.ContainingAssembly\n End Get\n End Property\n\n Public Overrides ReadOnly Property ContainingModule As ModuleSymbol\n Get\n Return Me._containingModule\n End Get\n End Property\n\n Friend Overrides ReadOnly Property Extent As NamespaceExtent\n Get\n Return New NamespaceExtent(_containingModule)\n End Get\n End Property\n\n Private ReadOnly Property NameToMembersMap As Dictionary(Of String, ImmutableArray(Of NamespaceOrTypeSymbol))\n Get\n Return GetNameToMembersMap()\n End Get\n End Property\n\n Private Function GetNameToMembersMap() As Dictionary(Of String, ImmutableArray(Of NamespaceOrTypeSymbol))\n If _nameToMembersMap Is Nothing Then\n Dim map = MakeNameToMembersMap()\n If Interlocked.CompareExchange(_nameToMembersMap, map, Nothing) Is Nothing Then\n RegisterDeclaredCorTypes()\n End If\n End If\n\n Return _nameToMembersMap\n End Function\n\n Private Function MakeNameToMembersMap() As Dictionary(Of String, ImmutableArray(Of NamespaceOrTypeSymbol))\n ' NOTE: Even though the resulting map stores ImmutableArray(Of NamespaceOrTypeSymbol) as \n ' NOTE: values if the name is mapped into an array of named types, which is frequently \n ' NOTE: the case, we actually create an array of NamedTypeSymbol[] and wrap it in \n ' NOTE: ImmutableArray(Of NamespaceOrTypeSymbol) \n ' NOTE: \n ' NOTE: This way we can save time and memory in GetNameToTypeMembersMap() -- when we see that\n ' NOTE: a name maps into values collection containing types only instead of allocating another \n ' NOTE: array of NamedTypeSymbol[] we downcast the array to ImmutableArray(Of NamedTypeSymbol)\n\n Dim builder As New NameToSymbolMapBuilder(_declaration.Children.Length)\n For Each declaration In _declaration.Children\n builder.Add(BuildSymbol(declaration))\n Next\n\n ' TODO(cyrusn): The C# and VB impls differ here. C# reports errors here and VB does not.\n ' Is that what we want?\n\n Return builder.CreateMap()\n End Function\n\n Private Structure NameToSymbolMapBuilder\n Private ReadOnly _dictionary As Dictionary(Of String, Object)\n\n Public Sub New(capacity As Integer)\n _dictionary = New Dictionary(Of String, Object)(capacity, IdentifierComparison.Comparer)\n End Sub\n\n Public Sub Add(symbol As NamespaceOrTypeSymbol)\n Dim name As String = symbol.Name\n Dim item As Object = Nothing\n\n If Me._dictionary.TryGetValue(name, item) Then\n Dim builder = TryCast(item, ArrayBuilder(Of NamespaceOrTypeSymbol))\n If builder Is Nothing Then\n builder = ArrayBuilder(Of NamespaceOrTypeSymbol).GetInstance()\n builder.Add(DirectCast(item, NamespaceOrTypeSymbol))\n Me._dictionary(name) = builder\n End If\n builder.Add(symbol)\n\n Else\n Me._dictionary(name) = symbol\n End If\n\n End Sub\n\n Public Function CreateMap() As Dictionary(Of String, ImmutableArray(Of NamespaceOrTypeSymbol))\n Dim result As New Dictionary(Of String, ImmutableArray(Of NamespaceOrTypeSymbol))(Me._dictionary.Count, IdentifierComparison.Comparer)\n\n For Each kvp In Me._dictionary\n\n Dim value As Object = kvp.Value\n Dim members As ImmutableArray(Of NamespaceOrTypeSymbol)\n\n Dim builder = TryCast(value, ArrayBuilder(Of NamespaceOrTypeSymbol))\n If builder IsNot Nothing Then\n Debug.Assert(builder.Count > 1)\n Dim hasNamespaces As Boolean = False\n\n For i = 0 To builder.Count - 1\n If builder(i).Kind = SymbolKind.Namespace Then\n hasNamespaces = True\n Exit For\n End If\n Next\n\n If hasNamespaces Then\n members = builder.ToImmutable()\n Else\n members = StaticCast(Of NamespaceOrTypeSymbol).From(builder.ToDowncastedImmutable(Of NamedTypeSymbol)())\n End If\n\n builder.Free()\n Else\n Dim symbol = DirectCast(value, NamespaceOrTypeSymbol)\n If symbol.Kind = SymbolKind.Namespace Then\n members = ImmutableArray.Create(Of NamespaceOrTypeSymbol)(symbol)\n Else\n members = StaticCast(Of NamespaceOrTypeSymbol).From(ImmutableArray.Create(Of NamedTypeSymbol)(DirectCast(symbol, NamedTypeSymbol)))\n End If\n End If\n\n result.Add(kvp.Key, members)\n Next\n\n Return result\n End Function\n End Structure\n\n Private Function BuildSymbol(decl As MergedNamespaceOrTypeDeclaration) As NamespaceOrTypeSymbol\n Dim namespaceDecl = TryCast(decl, MergedNamespaceDeclaration)\n If namespaceDecl IsNot Nothing Then\n Return New SourceNamespaceSymbol(namespaceDecl, Me, _containingModule)\n Else\n Dim typeDecl = DirectCast(decl, MergedTypeDeclaration)\n#If DEBUG Then\n ' Ensure that the type declaration is either from user code or embedded\n ' code, but not merged across embedded code/user code boundary.\n Dim embedded = EmbeddedSymbolKind.Unset\n For Each ref In typeDecl.SyntaxReferences\n Dim refKind = ref.SyntaxTree.GetEmbeddedKind()\n If embedded <> EmbeddedSymbolKind.Unset Then\n Debug.Assert(embedded = refKind)\n Else\n embedded = refKind\n End If\n Next\n Debug.Assert(embedded <> EmbeddedSymbolKind.Unset)\n#End If\n Return SourceNamedTypeSymbol.Create(typeDecl, Me, _containingModule)\n End If\n End Function\n\n Private Function GetNameToTypeMembersMap() As Dictionary(Of String, ImmutableArray(Of NamedTypeSymbol))\n If _nameToTypeMembersMap Is Nothing Then\n\n ' NOTE: This method depends on MakeNameToMembersMap() on creating a proper \n ' NOTE: type of the array, see comments in MakeNameToMembersMap() for details\n\n Dim dictionary As New Dictionary(Of String, ImmutableArray(Of NamedTypeSymbol))(CaseInsensitiveComparison.Comparer)\n\n Dim map As Dictionary(Of String, ImmutableArray(Of NamespaceOrTypeSymbol)) = Me.GetNameToMembersMap()\n For Each kvp In map\n Dim members As ImmutableArray(Of NamespaceOrTypeSymbol) = kvp.Value\n\n Dim hasType As Boolean = False\n Dim hasNamespace As Boolean = False\n\n For Each symbol In members\n If symbol.Kind = SymbolKind.NamedType Then\n hasType = True\n If hasNamespace Then\n Exit For\n End If\n\n Else\n Debug.Assert(symbol.Kind = SymbolKind.Namespace)\n hasNamespace = True\n If hasType Then\n Exit For\n End If\n End If\n Next\n\n If hasType Then\n If hasNamespace Then\n dictionary.Add(kvp.Key, members.OfType(Of NamedTypeSymbol).AsImmutable())\n Else\n dictionary.Add(kvp.Key, members.As(Of NamedTypeSymbol))\n End If\n End If\n Next\n\n Interlocked.CompareExchange(_nameToTypeMembersMap, dictionary, Nothing)\n End If\n\n Return _nameToTypeMembersMap\n End Function\n\n Public Overloads Overrides Function GetMembers() As ImmutableArray(Of Symbol)\n If (_lazyState And StateFlags.AllMembersIsSorted) <> 0 Then\n Return _lazyAllMembers\n\n Else\n Dim allMembers = Me.GetMembersUnordered()\n\n If allMembers.Length >= 2 Then\n allMembers = allMembers.Sort(LexicalOrderSymbolComparer.Instance)\n ImmutableInterlocked.InterlockedExchange(_lazyAllMembers, allMembers)\n End If\n\n ThreadSafeFlagOperations.Set(_lazyState, StateFlags.AllMembersIsSorted)\n\n Return allMembers\n End If\n End Function\n\n Friend Overloads Overrides Function GetMembersUnordered() As ImmutableArray(Of Symbol)\n If _lazyAllMembers.IsDefault Then\n Dim members = StaticCast(Of Symbol).From(Me.GetNameToMembersMap().Flatten())\n ImmutableInterlocked.InterlockedCompareExchange(_lazyAllMembers, members, Nothing)\n End If\n\n#If DEBUG Then\n ' In DEBUG, swap first and last elements so that use of Unordered in a place it isn't warranted is caught\n ' more obviously.\n Return _lazyAllMembers.DeOrder()\n#Else\n Return _lazyAllMembers\n#End If\n End Function\n\n Public Overloads Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol)\n Dim members As ImmutableArray(Of NamespaceOrTypeSymbol) = Nothing\n If Me.GetNameToMembersMap().TryGetValue(name, members) Then\n Return ImmutableArray(Of Symbol).CastUp(members)\n Else\n Return ImmutableArray(Of Symbol).Empty\n End If\n End Function\n\n Friend Overrides Function GetTypeMembersUnordered() As ImmutableArray(Of NamedTypeSymbol)\n Return Me.GetNameToTypeMembersMap().Flatten()\n End Function\n\n Public Overloads Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol)\n Return Me.GetNameToTypeMembersMap().Flatten(LexicalOrderSymbolComparer.Instance)\n End Function\n\n Public Overloads Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol)\n Dim members As ImmutableArray(Of NamedTypeSymbol) = Nothing\n If Me.GetNameToTypeMembersMap().TryGetValue(name, members) Then\n Return members\n Else\n Return ImmutableArray(Of NamedTypeSymbol).Empty\n End If\n End Function\n\n ' This is very performance critical for type lookup.\n Public Overrides Function GetModuleMembers() As ImmutableArray(Of NamedTypeSymbol)\n If _lazyModuleMembers.IsDefault Then\n Dim moduleMembers = ArrayBuilder(Of NamedTypeSymbol).GetInstance()\n\n ' look at all child declarations to find the modules.\n For Each childDecl In _declaration.Children\n If childDecl.Kind = DeclarationKind.Module Then\n moduleMembers.AddRange(GetModuleMembers(childDecl.Name))\n End If\n Next\n\n ImmutableInterlocked.InterlockedCompareExchange(_lazyModuleMembers,\n moduleMembers.ToImmutableAndFree(),\n Nothing)\n End If\n\n Return _lazyModuleMembers\n End Function\n\n Friend Overrides Function GetLexicalSortKey() As LexicalSortKey\n ' WARNING: this should not allocate memory!\n If Not _lazyLexicalSortKey.IsInitialized Then\n _lazyLexicalSortKey.SetFrom(_declaration.GetLexicalSortKey(Me.DeclaringCompilation))\n End If\n Return _lazyLexicalSortKey\n End Function\n\n Public Overrides ReadOnly Property Locations As ImmutableArray(Of Location)\n Get\n Return StaticCast(Of Location).From(_declaration.NameLocations)\n End Get\n End Property\n\n Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)\n Get\n Dim declarations As ImmutableArray(Of SingleNamespaceDeclaration) = _declaration.Declarations\n\n Dim builder As ArrayBuilder(Of SyntaxReference) = ArrayBuilder(Of SyntaxReference).GetInstance(declarations.Length)\n\n ' SyntaxReference in the namespace declaration points to the name node of the namespace decl node not\n ' namespace decl node we want to return. here we will wrap the original syntax reference in \n ' the translation syntax reference so that we can lazily manipulate a node return to the caller\n For Each decl In declarations\n Dim reference = decl.SyntaxReference\n If reference IsNot Nothing AndAlso Not reference.SyntaxTree.IsEmbeddedOrMyTemplateTree() Then\n builder.Add(New NamespaceDeclarationSyntaxReference(reference))\n End If\n Next\n\n Return builder.ToImmutableAndFree()\n End Get\n End Property\n\n Friend Overrides Function IsDefinedInSourceTree(tree As SyntaxTree, definedWithinSpan As TextSpan?, Optional cancellationToken As CancellationToken = Nothing) As Boolean\n If Me.IsGlobalNamespace Then\n Return True\n Else\n ' Check if any namespace declaration block intersects with the given tree/span.\n For Each decl In _declaration.Declarations\n cancellationToken.ThrowIfCancellationRequested()\n\n Dim reference = decl.SyntaxReference\n If reference IsNot Nothing Then\n If Not reference.SyntaxTree.IsEmbeddedOrMyTemplateTree() Then\n Dim syntaxRef = New NamespaceDeclarationSyntaxReference(reference)\n Dim syntax = syntaxRef.GetSyntax(cancellationToken)\n If TypeOf syntax Is NamespaceStatementSyntax Then\n ' Get the parent NamespaceBlockSyntax\n syntax = syntax.Parent\n End If\n\n If IsDefinedInSourceTree(syntax, tree, definedWithinSpan, cancellationToken) Then\n Return True\n End If\n End If\n\n ElseIf decl.IsPartOfRootNamespace\n ' Root namespace is implicitly defined in every tree \n Return True\n End If\n Next\n\n Return False\n End If\n End Function\n\n ' Force all declaration errors to be generated\n Friend Overrides Sub GenerateDeclarationErrors(cancellationToken As CancellationToken)\n MyBase.GenerateDeclarationErrors(cancellationToken)\n\n ValidateDeclaration(Nothing, cancellationToken)\n\n ' Getting all the members will force declaration errors for contained stuff.\n GetMembers()\n End Sub\n\n ' Force all declaration errors In Tree to be generated\n Friend Sub GenerateDeclarationErrorsInTree(tree As SyntaxTree, filterSpanWithinTree As TextSpan?, cancellationToken As CancellationToken)\n\n ValidateDeclaration(tree, cancellationToken)\n\n ' Getting all the members will force declaration errors for contained stuff.\n GetMembers()\n End Sub\n\n ' Validate a namespace declaration. This is called for each namespace being declared, so \n ' for example, it is called twice on Namespace X.Y, once with \"X\" and once with \"X.Y\".\n ' It will also be called with the CompilationUnit.\n Private Sub ValidateDeclaration(tree As SyntaxTree, cancellationToken As CancellationToken)\n If (_lazyState And StateFlags.DeclarationValidated) <> 0 Then\n Return\n End If\n\n Dim diagnostics As DiagnosticBag = DiagnosticBag.GetInstance()\n Dim reportedNamespaceMismatch As Boolean = False\n\n ' Check for a few issues with namespace declaration.\n For Each syntaxRef In _declaration.SyntaxReferences\n If tree IsNot Nothing AndAlso syntaxRef.SyntaxTree IsNot tree Then\n Continue For\n End If\n\n Dim currentTree = syntaxRef.SyntaxTree\n Dim node As VisualBasicSyntaxNode = syntaxRef.GetVisualBasicSyntax()\n Select Case node.Kind\n Case SyntaxKind.IdentifierName\n ValidateNamespaceNameSyntax(DirectCast(node, IdentifierNameSyntax), diagnostics, reportedNamespaceMismatch)\n Case SyntaxKind.QualifiedName\n ValidateNamespaceNameSyntax(DirectCast(node, QualifiedNameSyntax).Right, diagnostics, reportedNamespaceMismatch)\n Case SyntaxKind.GlobalName\n ValidateNamespaceGlobalSyntax(DirectCast(node, GlobalNameSyntax), diagnostics)\n Case SyntaxKind.CompilationUnit\n ' nothing to validate\n Case Else\n Throw ExceptionUtilities.UnexpectedValue(node.Kind)\n End Select\n\n cancellationToken.ThrowIfCancellationRequested()\n Next\n\n If _containingModule.AtomicSetFlagAndStoreDiagnostics(_lazyState, StateFlags.DeclarationValidated, 0, diagnostics, CompilationStage.Declare) Then\n DeclaringCompilation.SymbolDeclaredEvent(Me)\n End If\n diagnostics.Free()\n End Sub\n\n ' Validate a particular namespace name.\n Private Sub ValidateNamespaceNameSyntax(node As SimpleNameSyntax, diagnostics As DiagnosticBag, ByRef reportedNamespaceMismatch As Boolean)\n If (node.Identifier.GetTypeCharacter() <> TypeCharacter.None) Then\n Dim diag = New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_TypecharNotallowed), node.GetLocation())\n diagnostics.Add(diag)\n End If\n\n ' Warning should only be reported for the first mismatch for each namespace to\n ' avoid reporting a large number of warnings in projects with many files.\n ' This is by design\n ' TODO: do we really want to omit these warnings and display a new one after each fix?\n ' VS can display errors and warnings separately in the IDE, so it may be ok to flood the users with\n ' these warnings.\n If Not reportedNamespaceMismatch AndAlso\n String.Compare(node.Identifier.ValueText, Me.Name, StringComparison.Ordinal) <> 0 Then\n ' all namespace names from the declarations match following the VB identifier comparison rules,\n ' so we just need to check when they are not matching using case sensitive comparison.\n\n ' filename is the one where the correct declaration occurred in Dev10\n ' TODO: report \"related location\" rather than including path in the message:\n Dim path = GetSourcePathForDeclaration()\n Dim diag = New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.WRN_NamespaceCaseMismatch3, node.Identifier.ValueText, Me.Name, path), node.GetLocation())\n diagnostics.Add(diag)\n reportedNamespaceMismatch = True\n End If\n\n ' TODO: once the declarations are sorted, one might cache the filename if the first declaration matches the case. \n ' then GetFilenameForDeclaration is only needed if the mismatch occurs before any matching declaration.\n End Sub\n\n ' Validate that Global namespace name can't be nested inside another namespace.\n Private Sub ValidateNamespaceGlobalSyntax(node As GlobalNameSyntax, diagnostics As DiagnosticBag)\n Dim ancestorNode = node.Parent\n Dim seenNamespaceBlock As Boolean = False\n\n ' Go up the syntax hierarchy and make sure we only hit one namespace block (our own).\n While ancestorNode IsNot Nothing\n If ancestorNode.Kind = SyntaxKind.NamespaceBlock Then\n If seenNamespaceBlock Then\n ' Our namespace block is nested within another. That's a no-no.\n Dim diag = New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_NestedGlobalNamespace), node.GetLocation())\n diagnostics.Add(diag)\n Else\n seenNamespaceBlock = True\n End If\n End If\n\n ancestorNode = ancestorNode.Parent\n End While\n End Sub\n\n ''' \n ''' Gets the filename of the first declaration that matches the given namespace name case sensitively.\n ''' \n Private Function GetSourcePathForDeclaration() As Object\n Debug.Assert(_declaration.Declarations.Length > 0)\n\n ' unfortunately we cannot initialize with the filename of the first declaration because that filename might be nothing.\n Dim path = Nothing\n\n For Each declaration In _declaration.Declarations\n If String.Compare(Me.Name, declaration.Name, StringComparison.Ordinal) = 0 Then\n If declaration.IsPartOfRootNamespace Then\n 'path = StringConstants.ProjectSettingLocationName\n path = New LocalizableErrorArgument(ERRID.IDS_ProjectSettingsLocationName)\n\n ElseIf declaration.SyntaxReference IsNot Nothing AndAlso\n declaration.SyntaxReference.SyntaxTree.FilePath IsNot Nothing Then\n\n Dim otherPath = declaration.SyntaxReference.SyntaxTree.FilePath\n If path Is Nothing Then\n path = otherPath\n ElseIf String.Compare(path.ToString, otherPath.ToString, StringComparison.Ordinal) > 0 Then\n path = otherPath\n End If\n End If\n End If\n Next\n\n Return path\n End Function\n\n ''' \n ''' Return the set of types that should be checked for presence of extension methods in order to build\n ''' a map of extension methods for the namespace. \n ''' \n Friend Overrides ReadOnly Property TypesToCheckForExtensionMethods As ImmutableArray(Of NamedTypeSymbol)\n Get\n If _containingModule.MightContainExtensionMethods Then\n ' Note that we are using GetModuleMembers because only Modules can contain extension methods in source.\n Return Me.GetModuleMembers()\n End If\n\n Return ImmutableArray(Of NamedTypeSymbol).Empty\n End Get\n End Property\n\n ''' \n ''' Does this namespace have multiple different different case-sensitive spellings\n ''' (i.e., \"Namespace FOO\" and \"Namespace foo\". Includes parent namespace(s).\n ''' \n Friend ReadOnly Property HasMultipleSpellings As Boolean\n Get\n Return (_lazyState And StateFlags.HasMultipleSpellings) <> 0\n End Get\n End Property\n\n\n ''' \n ''' Get the fully qualified namespace name using the spelling used in the declaration enclosing the given\n ''' syntax tree and location.\n ''' I.e., if this namespace was declared with:\n ''' Namespace zAp\n ''' Namespace FOO.bar\n ''' 'location\n ''' End Namespace\n ''' End Namespace\n ''' Namespace ZAP\n ''' Namespace foo.bar\n ''' End Namespace\n ''' End Namespace\n ''' \n ''' It would return \"ProjectNamespace.zAp.FOO.bar\".\n ''' \n Friend Function GetDeclarationSpelling(tree As SyntaxTree, location As Integer) As String\n If Not HasMultipleSpellings Then\n ' Only one spelling. Just return that.\n Return ToDisplayString(SymbolDisplayFormat.QualifiedNameOnlyFormat)\n Else\n ' Since the declaration builder has already resolved things like \"Global\", qualified names, etc, \n ' just find the declaration that encloses the location (as opposed to recreating the name \n ' by walking the syntax)\n Dim containingDecl = _declaration.Declarations.FirstOrDefault(Function(decl)\n Dim nsBlock As NamespaceBlockSyntax = decl.GetNamespaceBlockSyntax()\n Return nsBlock IsNot Nothing AndAlso nsBlock.SyntaxTree Is tree AndAlso nsBlock.Span.Contains(location)\n End Function)\n If containingDecl Is Nothing Then\n ' Could be project namespace, which has no namespace block syntax.\n containingDecl = _declaration.Declarations.FirstOrDefault(Function(decl) decl.GetNamespaceBlockSyntax() Is Nothing)\n End If\n\n Dim containingDeclName = If(containingDecl IsNot Nothing, containingDecl.Name, Me.Name)\n Dim containingNamespace = TryCast(Me.ContainingNamespace, SourceNamespaceSymbol)\n Dim fullDeclName As String\n If containingNamespace IsNot Nothing AndAlso containingNamespace.Name <> \"\" Then\n fullDeclName = containingNamespace.GetDeclarationSpelling(tree, location) + \".\" + containingDeclName\n Else\n fullDeclName = containingDeclName\n End If\n\n Debug.Assert(IdentifierComparison.Equals(fullDeclName, ToDisplayString(SymbolDisplayFormat.QualifiedNameOnlyFormat)))\n Return fullDeclName\n End If\n End Function\n\n Public ReadOnly Property MergedDeclaration As MergedNamespaceDeclaration\n Get\n Return _declaration\n End Get\n End Property\n End Class\nEnd Namespace\n"},"repo_name":{"kind":"string","value":"DanielRosenwasser/roslyn"},"path":{"kind":"string","value":"src/Compilers/VisualBasic/Portable/Symbols/Source/SourceNamespaceSymbol.vb"},"language":{"kind":"string","value":"Visual Basic"},"license":{"kind":"string","value":"apache-2.0"},"size":{"kind":"number","value":31920,"string":"31,920"}}},{"rowIdx":115086146,"cells":{"code":{"kind":"string","value":"// Copyright (c) 2012 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#include \"base/run_loop.h\"\n\n#include \"base/bind.h\"\n\n#if defined(OS_WIN)\n#include \"base/message_loop/message_pump_dispatcher.h\"\n#endif\n\nnamespace base {\n\nRunLoop::RunLoop()\n : loop_(MessageLoop::current()),\n previous_run_loop_(NULL),\n run_depth_(0),\n run_called_(false),\n quit_called_(false),\n running_(false),\n quit_when_idle_received_(false),\n weak_factory_(this) {\n#if defined(OS_WIN)\n dispatcher_ = NULL;\n#endif\n}\n\n#if defined(OS_WIN)\nRunLoop::RunLoop(MessagePumpDispatcher* dispatcher)\n : loop_(MessageLoop::current()),\n previous_run_loop_(NULL),\n dispatcher_(dispatcher),\n run_depth_(0),\n run_called_(false),\n quit_called_(false),\n running_(false),\n quit_when_idle_received_(false),\n weak_factory_(this) {\n}\n#endif\n\nRunLoop::~RunLoop() {\n}\n\nvoid RunLoop::Run() {\n if (!BeforeRun())\n return;\n loop_->RunHandler();\n AfterRun();\n}\n\nvoid RunLoop::RunUntilIdle() {\n quit_when_idle_received_ = true;\n Run();\n}\n\nvoid RunLoop::Quit() {\n quit_called_ = true;\n if (running_ && loop_->run_loop_ == this) {\n // This is the inner-most RunLoop, so quit now.\n loop_->QuitNow();\n }\n}\n\nbase::Closure RunLoop::QuitClosure() {\n return base::Bind(&RunLoop::Quit, weak_factory_.GetWeakPtr());\n}\n\nbool RunLoop::BeforeRun() {\n DCHECK(!run_called_);\n run_called_ = true;\n\n // Allow Quit to be called before Run.\n if (quit_called_)\n return false;\n\n // Push RunLoop stack:\n previous_run_loop_ = loop_->run_loop_;\n run_depth_ = previous_run_loop_? previous_run_loop_->run_depth_ + 1 : 1;\n loop_->run_loop_ = this;\n\n running_ = true;\n return true;\n}\n\nvoid RunLoop::AfterRun() {\n running_ = false;\n\n // Pop RunLoop stack:\n loop_->run_loop_ = previous_run_loop_;\n\n // Execute deferred QuitNow, if any:\n if (previous_run_loop_ && previous_run_loop_->quit_called_)\n loop_->QuitNow();\n}\n\n} // namespace base\n"},"repo_name":{"kind":"string","value":"wubenqi/zutils"},"path":{"kind":"string","value":"zutils/base/run_loop.cc"},"language":{"kind":"string","value":"C++"},"license":{"kind":"string","value":"apache-2.0"},"size":{"kind":"number","value":2073,"string":"2,073"}}},{"rowIdx":115086147,"cells":{"code":{"kind":"string","value":"require 'chef/provisioning/aws_driver/aws_resource'\n\nclass Chef::Resource::AwsKeyPair < Chef::Provisioning::AWSDriver::AWSResource\n aws_sdk_type AWS::EC2::KeyPair, id: :name\n\n # Private key to use as input (will be generated if it does not exist)\n attribute :private_key_path, :kind_of => String\n # Public key to use as input (will be generated if it does not exist)\n attribute :public_key_path, :kind_of => String\n # List of parameters to the private_key resource used for generation of the key\n attribute :private_key_options, :kind_of => Hash\n\n # TODO what is the right default for this?\n attribute :allow_overwrite, :kind_of => [TrueClass, FalseClass], :default => false\n\n def aws_object\n result = driver.ec2.key_pairs[name]\n result && result.exists? ? result : nil\n end\nend\n"},"repo_name":{"kind":"string","value":"tarak/chef-provisioning-aws"},"path":{"kind":"string","value":"lib/chef/resource/aws_key_pair.rb"},"language":{"kind":"string","value":"Ruby"},"license":{"kind":"string","value":"apache-2.0"},"size":{"kind":"number","value":796,"string":"796"}}},{"rowIdx":115086148,"cells":{"code":{"kind":"string","value":"/*\n * Copyright 2003,2004 The Apache Software Foundation\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\npackage net.sf.cglib.proxy;\n\nimport java.security.ProtectionDomain;\nimport java.lang.reflect.Constructor;\nimport java.lang.reflect.Modifier;\nimport java.util.*;\nimport net.sf.cglib.core.*;\nimport org.objectweb.asm.ClassVisitor;\n\n\n\n/**\n * Mixin allows\n * multiple objects to be combined into a single larger object. The\n * methods in the generated object simply call the original methods in the\n * underlying \"delegate\" objects.\n * @author Chris Nokleberg\n * @version $Id: Mixin.java,v 1.7 2005/09/27 11:42:27 baliuka Exp $\n */\nabstract public class Mixin {\n private static final MixinKey KEY_FACTORY =\n (MixinKey)KeyFactory.create(MixinKey.class, KeyFactory.CLASS_BY_NAME);\n private static final Map ROUTE_CACHE = Collections.synchronizedMap(new HashMap());\n\n public static final int STYLE_INTERFACES = 0;\n public static final int STYLE_BEANS = 1;\n public static final int STYLE_EVERYTHING = 2;\n\n interface MixinKey {\n public Object newInstance(int style, String[] classes, int[] route);\n }\n\n abstract public Mixin newInstance(Object[] delegates);\n\n /**\n * Helper method to create an interface mixin. For finer control over the\n * generated instance, use a new instance of Mixin\n * instead of this static method.\n * TODO\n */\n public static Mixin create(Object[] delegates) {\n Generator gen = new Generator();\n gen.setDelegates(delegates);\n return gen.create();\n }\n\n /**\n * Helper method to create an interface mixin. For finer control over the\n * generated instance, use a new instance of Mixin\n * instead of this static method.\n * TODO\n */\n public static Mixin create(Class[] interfaces, Object[] delegates) {\n Generator gen = new Generator();\n gen.setClasses(interfaces);\n gen.setDelegates(delegates);\n return gen.create();\n }\n\n \n public static Mixin createBean(Object[] beans) {\n \n return createBean(null, beans);\n \n }\n /**\n * Helper method to create a bean mixin. For finer control over the\n * generated instance, use a new instance of Mixin\n * instead of this static method.\n * TODO\n */\n public static Mixin createBean(ClassLoader loader,Object[] beans) {\n Generator gen = new Generator();\n gen.setStyle(STYLE_BEANS);\n gen.setDelegates(beans);\n gen.setClassLoader(loader);\n return gen.create();\n }\n \n public static class Generator extends AbstractClassGenerator {\n private static final Source SOURCE = new Source(Mixin.class.getName());\n\n private Class[] classes;\n private Object[] delegates;\n private int style = STYLE_INTERFACES;\n \n private int[] route;\n\n public Generator() {\n super(SOURCE);\n }\n\n protected ClassLoader getDefaultClassLoader() {\n return classes[0].getClassLoader(); // is this right?\n }\n\n protected ProtectionDomain getProtectionDomain() {\n \treturn ReflectUtils.getProtectionDomain(classes[0]);\n }\n\n public void setStyle(int style) {\n switch (style) {\n case STYLE_INTERFACES:\n case STYLE_BEANS:\n case STYLE_EVERYTHING:\n this.style = style;\n break;\n default:\n throw new IllegalArgumentException(\"Unknown mixin style: \" + style);\n }\n }\n\n public void setClasses(Class[] classes) {\n this.classes = classes;\n }\n\n public void setDelegates(Object[] delegates) {\n this.delegates = delegates;\n }\n\n public Mixin create() {\n if (classes == null && delegates == null) {\n throw new IllegalStateException(\"Either classes or delegates must be set\");\n }\n switch (style) {\n case STYLE_INTERFACES:\n if (classes == null) {\n Route r = route(delegates);\n classes = r.classes;\n route = r.route;\n }\n break;\n case STYLE_BEANS:\n // fall-through\n case STYLE_EVERYTHING:\n if (classes == null) {\n classes = ReflectUtils.getClasses(delegates);\n } else {\n if (delegates != null) {\n Class[] temp = ReflectUtils.getClasses(delegates);\n if (classes.length != temp.length) {\n throw new IllegalStateException(\"Specified classes are incompatible with delegates\");\n }\n for (int i = 0; i < classes.length; i++) {\n if (!classes[i].isAssignableFrom(temp[i])) {\n throw new IllegalStateException(\"Specified class \" + classes[i] + \" is incompatible with delegate class \" + temp[i] + \" (index \" + i + \")\");\n }\n }\n }\n }\n }\n setNamePrefix(classes[ReflectUtils.findPackageProtected(classes)].getName());\n \n return (Mixin)super.create(KEY_FACTORY.newInstance(style, ReflectUtils.getNames( classes ), route));\n }\n\n public void generateClass(ClassVisitor v) {\n switch (style) {\n case STYLE_INTERFACES:\n new MixinEmitter(v, getClassName(), classes, route);\n break;\n case STYLE_BEANS:\n new MixinBeanEmitter(v, getClassName(), classes);\n break;\n case STYLE_EVERYTHING:\n new MixinEverythingEmitter(v, getClassName(), classes);\n break;\n }\n }\n\n protected Object firstInstance(Class type) {\n return ((Mixin)ReflectUtils.newInstance(type)).newInstance(delegates);\n }\n\n protected Object nextInstance(Object instance) {\n return ((Mixin)instance).newInstance(delegates);\n }\n }\n\n public static Class[] getClasses(Object[] delegates) {\n return (Class[])route(delegates).classes.clone();\n }\n\n// public static int[] getRoute(Object[] delegates) {\n// return (int[])route(delegates).route.clone();\n// }\n \n private static Route route(Object[] delegates) {\n Object key = ClassesKey.create(delegates);\n Route route = (Route)ROUTE_CACHE.get(key);\n if (route == null) {\n ROUTE_CACHE.put(key, route = new Route(delegates));\n }\n return route;\n }\n\n private static class Route\n {\n private Class[] classes;\n private int[] route;\n\n Route(Object[] delegates) {\n Map map = new HashMap();\n ArrayList collect = new ArrayList();\n for (int i = 0; i < delegates.length; i++) {\n Class delegate = delegates[i].getClass();\n collect.clear();\n ReflectUtils.addAllInterfaces(delegate, collect);\n for (Iterator it = collect.iterator(); it.hasNext();) {\n Class iface = (Class)it.next();\n if (!map.containsKey(iface)) {\n map.put(iface, new Integer(i));\n }\n }\n }\n classes = new Class[map.size()];\n route = new int[map.size()];\n int index = 0;\n for (Iterator it = map.keySet().iterator(); it.hasNext();) {\n Class key = (Class)it.next();\n classes[index] = key;\n route[index] = ((Integer)map.get(key)).intValue();\n index++;\n }\n }\n }\n}\n"},"repo_name":{"kind":"string","value":"HubSpot/cglib"},"path":{"kind":"string","value":"cglib/src/main/java/net/sf/cglib/proxy/Mixin.java"},"language":{"kind":"string","value":"Java"},"license":{"kind":"string","value":"apache-2.0"},"size":{"kind":"number","value":8394,"string":"8,394"}}},{"rowIdx":115086149,"cells":{"code":{"kind":"string","value":"/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with\n * the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\npackage org.apache.spark.scheduler.cluster.k8s\n\nimport java.io.Serializable\n\ncase class GenerateExecID(podName: String) extends Serializable\n"},"repo_name":{"kind":"string","value":"ueshin/apache-spark"},"path":{"kind":"string","value":"resource-managers/kubernetes/core/src/main/scala/org/apache/spark/scheduler/cluster/k8s/KubernetesClusterMessage.scala"},"language":{"kind":"string","value":"Scala"},"license":{"kind":"string","value":"apache-2.0"},"size":{"kind":"number","value":942,"string":"942"}}},{"rowIdx":115086150,"cells":{"code":{"kind":"string","value":"/**\n * Copyright 2007-2016, Kaazing Corporation. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\npackage org.kaazing.gateway.transport.http.bridge.filter;\n\nimport static java.util.Arrays.asList;\nimport static java.util.Collections.emptyList;\nimport static org.jboss.netty.util.CharsetUtil.UTF_8;\nimport static org.kaazing.gateway.transport.http.HttpMethod.GET;\nimport static org.kaazing.gateway.transport.http.HttpMethod.POST;\nimport static org.kaazing.gateway.transport.http.HttpStatus.CLIENT_NOT_FOUND;\nimport static org.kaazing.gateway.transport.http.HttpStatus.CLIENT_UNAUTHORIZED;\nimport static org.kaazing.gateway.transport.http.HttpStatus.REDIRECT_FOUND;\nimport static org.kaazing.gateway.transport.http.HttpStatus.REDIRECT_MULTIPLE_CHOICES;\nimport static org.kaazing.gateway.transport.http.HttpStatus.REDIRECT_NOT_MODIFIED;\nimport static org.kaazing.gateway.transport.http.HttpStatus.SUCCESS_OK;\nimport static org.kaazing.gateway.transport.http.HttpVersion.HTTP_1_0;\nimport static org.kaazing.gateway.transport.http.HttpVersion.HTTP_1_1;\nimport static org.kaazing.gateway.transport.http.bridge.HttpContentMessage.EMPTY;\nimport static org.kaazing.gateway.util.Utils.join;\n\nimport java.net.URI;\nimport java.nio.ByteBuffer;\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.List;\nimport java.util.Set;\n\nimport org.apache.mina.core.filterchain.IoFilter.NextFilter;\nimport org.apache.mina.core.filterchain.IoFilterChain;\nimport org.apache.mina.core.write.DefaultWriteRequest;\nimport org.apache.mina.filter.codec.ProtocolCodecException;\nimport org.junit.Test;\nimport org.kaazing.gateway.transport.http.DefaultHttpCookie;\nimport org.kaazing.gateway.transport.http.HttpAcceptSession;\nimport org.kaazing.gateway.transport.http.HttpConnectSession;\nimport org.kaazing.gateway.transport.http.HttpCookie;\nimport org.kaazing.gateway.transport.http.HttpHeaders;\nimport org.kaazing.gateway.transport.http.HttpStatus;\nimport org.kaazing.gateway.transport.http.bridge.HttpContentMessage;\nimport org.kaazing.gateway.transport.http.bridge.HttpRequestMessage;\nimport org.kaazing.gateway.transport.http.bridge.HttpResponseMessage;\nimport org.kaazing.gateway.transport.test.Expectations;\nimport org.kaazing.test.util.Mockery;\nimport org.kaazing.mina.core.buffer.IoBufferEx;\nimport org.kaazing.mina.core.buffer.SimpleBufferAllocator;\n\npublic class HttpxeProtocolFilterTest {\n\n private Mockery context = new Mockery();\n private HttpAcceptSession serverSession = context.mock(HttpAcceptSession.class);\n private HttpConnectSession clientSession = context.mock(HttpConnectSession.class);\n @SuppressWarnings(\"unchecked\")\n private Set writeCookies = context.mock(Set.class);\n private IoFilterChain filterChain = context.mock(IoFilterChain.class);\n private NextFilter nextFilter = context.mock(NextFilter.class);\n\n @Test\n public void shouldWriteResponseWithInsertedStatusNotFound() throws Exception {\n\n final HttpResponseMessage expectedResponse = new HttpResponseMessage();\n expectedResponse.setVersion(HTTP_1_1);\n expectedResponse.setStatus(CLIENT_NOT_FOUND);\n\n context.checking(new Expectations() { {\n oneOf(serverSession).setVersion(HTTP_1_1);\n oneOf(serverSession).setStatus(CLIENT_NOT_FOUND);\n oneOf(serverSession).setWriteHeader(\"Content-Type\", \"text/plain;charset=UTF-8\");\n oneOf(serverSession).getStatus(); will(returnValue(SUCCESS_OK));\n oneOf(serverSession).getWriteHeader(HttpHeaders.HEADER_CACHE_CONTROL); will(returnValue(null));\n oneOf(serverSession).setWriteHeader(HttpHeaders.HEADER_CACHE_CONTROL, \"no-cache\");\n oneOf(serverSession).getFilterChain(); will(returnValue(filterChain));\n oneOf(filterChain).addFirst(with(equal(\"http#content-length\")), with(aNonNull(HttpContentLengthAdjustmentFilter.class)));\n oneOf(nextFilter).filterWrite(with(serverSession), with(hasMessage(expectedResponse)));\n } });\n\n HttpResponseMessage httpResponse = new HttpResponseMessage();\n httpResponse.setVersion(HTTP_1_1);\n httpResponse.setStatus(CLIENT_NOT_FOUND);\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(false);\n filter.filterWrite(nextFilter, serverSession, new DefaultWriteRequest(httpResponse));\n\n context.assertIsSatisfied();\n }\n\n @Test\n public void shouldWriteResponseWithoutInsertingStatusClientUnauthorized() throws Exception {\n\n final HttpResponseMessage expectedResponse = new HttpResponseMessage();\n expectedResponse.setVersion(HTTP_1_1);\n expectedResponse.setStatus(CLIENT_UNAUTHORIZED);\n expectedResponse.setHeader(\"WWW-Authenticate\", \"Basic realm=\\\"WallyWorld\\\"\");\n\n context.checking(new Expectations() { {\n oneOf(serverSession).setVersion(HTTP_1_1);\n oneOf(serverSession).setStatus(SUCCESS_OK);\n oneOf(serverSession).setWriteHeader(\"Content-Type\", \"text/plain;charset=UTF-8\");\n oneOf(serverSession).getStatus(); will(returnValue(SUCCESS_OK));\n oneOf(serverSession).getWriteHeader(HttpHeaders.HEADER_CACHE_CONTROL); will(returnValue(null));\n oneOf(serverSession).setWriteHeader(HttpHeaders.HEADER_CACHE_CONTROL, \"no-cache\");\n\n oneOf(serverSession).getFilterChain(); will(returnValue(filterChain));\n oneOf(filterChain).addFirst(with(equal(\"http#content-length\")), with(aNonNull(HttpContentLengthAdjustmentFilter.class)));\n oneOf(nextFilter).filterWrite(with(serverSession), with(hasMessage(expectedResponse)));\n } });\n\n HttpResponseMessage httpResponse = new HttpResponseMessage();\n httpResponse.setVersion(HTTP_1_1);\n httpResponse.setStatus(CLIENT_UNAUTHORIZED);\n httpResponse.setHeader(\"WWW-Authenticate\", \"Basic realm=\\\"WallyWorld\\\"\");\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(false);\n filter.filterWrite(nextFilter, serverSession, new DefaultWriteRequest(httpResponse));\n\n context.assertIsSatisfied();\n }\n\n @Test\n public void shouldWriteResponseWithoutInsertingStatusRedirectFound() throws Exception {\n\n final HttpResponseMessage expectedResponse = new HttpResponseMessage();\n expectedResponse.setVersion(HTTP_1_1);\n expectedResponse.setStatus(REDIRECT_FOUND);\n expectedResponse.setHeader(\"Location\", \"https://www.w3.org/\");\n\n context.checking(new Expectations() { {\n oneOf(serverSession).setVersion(HTTP_1_1);\n oneOf(serverSession).setStatus(SUCCESS_OK);\n oneOf(serverSession).setWriteHeader(\"Content-Type\", \"text/plain;charset=UTF-8\");\n oneOf(serverSession).getStatus(); will(returnValue(SUCCESS_OK));\n oneOf(serverSession).getWriteHeader(HttpHeaders.HEADER_CACHE_CONTROL); will(returnValue(null));\n oneOf(serverSession).setWriteHeader(HttpHeaders.HEADER_CACHE_CONTROL, \"no-cache\");\n oneOf(serverSession).getFilterChain(); will(returnValue(filterChain));\n oneOf(filterChain).addFirst(with(equal(\"http#content-length\")), with(aNonNull(HttpContentLengthAdjustmentFilter.class)));\n oneOf(nextFilter).filterWrite(with(serverSession), with(hasMessage(expectedResponse)));\n } });\n\n HttpResponseMessage httpResponse = new HttpResponseMessage();\n httpResponse.setVersion(HTTP_1_1);\n httpResponse.setStatus(REDIRECT_FOUND);\n httpResponse.setHeader(\"Location\", \"https://www.w3.org/\");\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(false);\n filter.filterWrite(nextFilter, serverSession, new DefaultWriteRequest(httpResponse));\n\n context.assertIsSatisfied();\n }\n\n\n private static HttpBufferAllocator httpBufferAllocator = new HttpBufferAllocator(SimpleBufferAllocator.BUFFER_ALLOCATOR);\n\n private static IoBufferEx wrap(byte[] array) {\n return httpBufferAllocator.wrap(ByteBuffer.wrap(array));\n }\n\n @Test\n public void shouldWriteResponseWithoutInsertingStatusRedirectMultipleChoices() throws Exception {\n\n final HttpResponseMessage expectedResponse = new HttpResponseMessage();\n expectedResponse.setVersion(HTTP_1_1);\n expectedResponse.setStatus(REDIRECT_MULTIPLE_CHOICES);\n expectedResponse.setHeader(\"Location\", \"https://www.w3.org/\");\n\n String[] alternatives = new String[] { \"https://www.w3.org/\", \"http://www.w3.org/\" };\n byte[] array = join(alternatives, \"\\n\").getBytes(UTF_8);\n final HttpContentMessage expectedContent = new HttpContentMessage(wrap(array), true);\n expectedResponse.setContent(expectedContent);\n\n context.checking(new Expectations() { {\n oneOf(serverSession).setVersion(HTTP_1_1);\n oneOf(serverSession).setStatus(SUCCESS_OK);\n oneOf(serverSession).setWriteHeader(\"Content-Type\", \"text/plain;charset=UTF-8\");\n oneOf(serverSession).getStatus(); will(returnValue(SUCCESS_OK));\n oneOf(serverSession).getWriteHeader(HttpHeaders.HEADER_CACHE_CONTROL); will(returnValue(null));\n oneOf(serverSession).setWriteHeader(HttpHeaders.HEADER_CACHE_CONTROL, \"no-cache\");\n\n oneOf(serverSession).getFilterChain(); will(returnValue(filterChain));\n oneOf(filterChain).addFirst(with(equal(\"http#content-length\")), with(aNonNull(HttpContentLengthAdjustmentFilter.class)));\n oneOf(nextFilter).filterWrite(with(serverSession), with(hasMessage(expectedResponse)));\n } });\n\n HttpResponseMessage httpResponse = new HttpResponseMessage();\n httpResponse.setVersion(HTTP_1_1);\n httpResponse.setStatus(REDIRECT_MULTIPLE_CHOICES);\n httpResponse.setHeader(\"Location\", \"https://www.w3.org/\");\n\n HttpContentMessage httpContent = new HttpContentMessage(wrap(array), true);\n httpResponse.setContent(httpContent);\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(false);\n filter.filterWrite(nextFilter, serverSession, new DefaultWriteRequest(httpResponse));\n\n context.assertIsSatisfied();\n }\n\n @Test\n public void shouldWriteResponseWithInsertedCookies() throws Exception {\n\n final HttpResponseMessage expectedResponse = new HttpResponseMessage();\n expectedResponse.setVersion(HTTP_1_1);\n expectedResponse.setStatus(REDIRECT_FOUND);\n expectedResponse.setReason(\"Cross-Origin Redirect\");\n expectedResponse.setHeader(\"Location\", \"https://www.w3.org/\");\n\n context.checking(new Expectations() { {\n oneOf(serverSession).setVersion(HTTP_1_1);\n oneOf(serverSession).setStatus(SUCCESS_OK);\n oneOf(serverSession).getStatus(); will(returnValue(SUCCESS_OK));\n oneOf(serverSession).getWriteHeader(HttpHeaders.HEADER_CACHE_CONTROL); will(returnValue(null));\n oneOf(serverSession).setWriteHeader(HttpHeaders.HEADER_CACHE_CONTROL, \"no-cache\");\n oneOf(serverSession).setWriteHeader(\"Content-Type\", \"text/plain;charset=UTF-8\");\n oneOf(serverSession).setWriteHeaders(with(stringMatching(\"Set-Cookie\")), with(stringListMatching(\"KSSOID=12345;\")));\n\n oneOf(serverSession).getFilterChain(); will(returnValue(filterChain));\n oneOf(filterChain).addFirst(with(equal(\"http#content-length\")), with(aNonNull(HttpContentLengthAdjustmentFilter.class)));\n oneOf(nextFilter).filterWrite(with(serverSession), with(hasMessage(expectedResponse)));\n } });\n\n HttpResponseMessage httpResponse = new HttpResponseMessage();\n httpResponse.setVersion(HTTP_1_1);\n httpResponse.setStatus(REDIRECT_FOUND);\n httpResponse.setReason(\"Cross-Origin Redirect\");\n httpResponse.setHeader(\"Location\", \"https://www.w3.org/\");\n httpResponse.setHeader(\"Set-Cookie\", \"KSSOID=12345;\");\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(false);\n filter.filterWrite(nextFilter, serverSession, new DefaultWriteRequest(httpResponse));\n\n context.assertIsSatisfied();\n }\n\n @Test\n public void shouldWriteResponseWithInsertedTextPlainContentType() throws Exception {\n\n final HttpResponseMessage expectedResponse = new HttpResponseMessage();\n expectedResponse.setVersion(HTTP_1_1);\n expectedResponse.setStatus(SUCCESS_OK);\n expectedResponse.setHeader(\"Content-Type\", \"text/plain\");\n\n context.checking(new Expectations() { {\n oneOf(serverSession).setVersion(HTTP_1_1);\n oneOf(serverSession).setStatus(SUCCESS_OK);\n oneOf(serverSession).setWriteHeader(\"Content-Type\", \"text/plain\");\n oneOf(serverSession).getStatus(); will(returnValue(SUCCESS_OK));\n\n oneOf(serverSession).getFilterChain(); will(returnValue(filterChain));\n oneOf(filterChain).addFirst(with(equal(\"http#content-length\")), with(aNonNull(HttpContentLengthAdjustmentFilter.class)));\n oneOf(nextFilter).filterWrite(with(serverSession), with(hasMessage(expectedResponse)));\n } });\n\n HttpResponseMessage httpResponse = new HttpResponseMessage();\n httpResponse.setVersion(HTTP_1_1);\n httpResponse.setStatus(SUCCESS_OK);\n httpResponse.setHeader(\"Content-Type\", \"text/plain\");\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(false);\n filter.filterWrite(nextFilter, serverSession, new DefaultWriteRequest(httpResponse));\n\n context.assertIsSatisfied();\n }\n\n @Test\n public void shouldWriteResponseWithTextContentTypeInsertedAsTextPlain() throws Exception {\n\n final HttpResponseMessage expectedResponse = new HttpResponseMessage();\n expectedResponse.setVersion(HTTP_1_1);\n expectedResponse.setStatus(SUCCESS_OK);\n expectedResponse.setHeader(\"Content-Type\", \"text/xyz;charset=windows-1252\");\n\n context.checking(new Expectations() { {\n oneOf(serverSession).setVersion(HTTP_1_1);\n oneOf(serverSession).setStatus(SUCCESS_OK);\n oneOf(serverSession).setWriteHeader(\"Content-Type\", \"text/plain;charset=windows-1252\");\n oneOf(serverSession).getStatus(); will(returnValue(SUCCESS_OK));\n\n oneOf(serverSession).getFilterChain(); will(returnValue(filterChain));\n oneOf(filterChain).addFirst(with(equal(\"http#content-length\")), with(aNonNull(HttpContentLengthAdjustmentFilter.class)));\n oneOf(nextFilter).filterWrite(with(serverSession), with(hasMessage(expectedResponse)));\n } });\n\n HttpResponseMessage httpResponse = new HttpResponseMessage();\n httpResponse.setVersion(HTTP_1_1);\n httpResponse.setStatus(SUCCESS_OK);\n httpResponse.setHeader(\"Content-Type\", \"text/xyz;charset=windows-1252\");\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(false);\n filter.filterWrite(nextFilter, serverSession, new DefaultWriteRequest(httpResponse));\n\n context.assertIsSatisfied();\n }\n\n @Test\n public void shouldWriteResponseWithInsertedAccessControlAllowHeaders() throws Exception {\n\n final HttpResponseMessage expectedResponse = new HttpResponseMessage();\n expectedResponse.setVersion(HTTP_1_1);\n expectedResponse.setStatus(SUCCESS_OK);\n expectedResponse.setHeader(\"Content-Type\", \"text/xyz;charset=windows-1252\");\n\n context.checking(new Expectations() { {\n oneOf(serverSession).setVersion(HTTP_1_1);\n oneOf(serverSession).setStatus(SUCCESS_OK);\n oneOf(serverSession).setWriteHeader(\"Content-Type\", \"text/plain;charset=windows-1252\");\n oneOf(serverSession).setWriteHeaders(with(stringMatching(\"Access-Control-Allow-Headers\")), with(stringListMatching(\"x-websocket-extensions\")));\n oneOf(serverSession).getStatus(); will(returnValue(SUCCESS_OK));\n\n oneOf(serverSession).getFilterChain(); will(returnValue(filterChain));\n oneOf(filterChain).addFirst(with(equal(\"http#content-length\")), with(aNonNull(HttpContentLengthAdjustmentFilter.class)));\n oneOf(nextFilter).filterWrite(with(serverSession), with(hasMessage(expectedResponse)));\n } });\n\n HttpResponseMessage httpResponse = new HttpResponseMessage();\n httpResponse.setVersion(HTTP_1_1);\n httpResponse.setStatus(SUCCESS_OK);\n httpResponse.setHeader(\"Content-Type\", \"text/xyz;charset=windows-1252\");\n httpResponse.setHeader(\"Access-Control-Allow-Headers\", \"x-websocket-extensions\");\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(false);\n filter.filterWrite(nextFilter, serverSession, new DefaultWriteRequest(httpResponse));\n\n context.assertIsSatisfied();\n }\n\n @Test\n public void shouldWriteResponseWithInsertedContentEncoding() throws Exception {\n\n final HttpResponseMessage expectedResponse = new HttpResponseMessage();\n expectedResponse.setVersion(HTTP_1_1);\n expectedResponse.setStatus(SUCCESS_OK);\n expectedResponse.setHeader(\"Content-Type\", \"text/xyz;charset=windows-1252\");\n\n context.checking(new Expectations() { {\n oneOf(serverSession).setVersion(HTTP_1_1);\n oneOf(serverSession).setStatus(SUCCESS_OK);\n oneOf(serverSession).setWriteHeader(\"Content-Type\", \"text/plain;charset=windows-1252\");\n oneOf(serverSession).setWriteHeaders(with(stringMatching(\"Content-Encoding\")), with(stringListMatching(\"gzip\")));\n oneOf(serverSession).getStatus(); will(returnValue(SUCCESS_OK));\n\n oneOf(nextFilter).filterWrite(with(serverSession), with(hasMessage(expectedResponse)));\n } });\n\n HttpResponseMessage httpResponse = new HttpResponseMessage();\n httpResponse.setVersion(HTTP_1_1);\n httpResponse.setStatus(SUCCESS_OK);\n httpResponse.setHeader(\"Content-Type\", \"text/xyz;charset=windows-1252\");\n httpResponse.setHeader(\"Content-Encoding\", \"gzip\");\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(false);\n filter.filterWrite(nextFilter, serverSession, new DefaultWriteRequest(httpResponse));\n\n context.assertIsSatisfied();\n }\n\n @Test\n public void shouldWriteResponseWithInsertedCacheControl() throws Exception {\n\n final HttpResponseMessage expectedResponse = new HttpResponseMessage();\n expectedResponse.setVersion(HTTP_1_1);\n expectedResponse.setStatus(REDIRECT_FOUND);\n expectedResponse.setReason(\"Cross-Origin Redirect\");\n expectedResponse.setHeader(\"Location\", \"https://www.w3.org/\");\n\n context.checking(new Expectations() { {\n oneOf(serverSession).setVersion(HTTP_1_1);\n oneOf(serverSession).setStatus(SUCCESS_OK);\n oneOf(serverSession).setWriteHeader(\"Content-Type\", \"text/plain;charset=UTF-8\");\n oneOf(serverSession).setWriteHeaders(with(stringMatching(\"Cache-Control\")), with(stringListMatching(\"private\")));\n oneOf(serverSession).getStatus(); will(returnValue(SUCCESS_OK));\n oneOf(serverSession).getWriteHeader(HttpHeaders.HEADER_CACHE_CONTROL); will(returnValue(\"private\"));\n\n oneOf(serverSession).getFilterChain(); will(returnValue(filterChain));\n oneOf(filterChain).addFirst(with(equal(\"http#content-length\")), with(aNonNull(HttpContentLengthAdjustmentFilter.class)));\n oneOf(nextFilter).filterWrite(with(serverSession), with(hasMessage(expectedResponse)));\n } });\n\n HttpResponseMessage httpResponse = new HttpResponseMessage();\n httpResponse.setVersion(HTTP_1_1);\n httpResponse.setStatus(HttpStatus.REDIRECT_FOUND);\n httpResponse.setReason(\"Cross-Origin Redirect\");\n httpResponse.setHeader(\"Cache-Control\", \"private\");\n httpResponse.setHeader(\"Location\", \"https://www.w3.org/\");\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(false);\n filter.filterWrite(nextFilter, serverSession, new DefaultWriteRequest(httpResponse));\n\n context.assertIsSatisfied();\n }\n\n @Test\n public void shouldWriteResponseWithInsertedContentTypeApplicationOctetStream() throws Exception {\n\n final HttpResponseMessage expectedResponse = new HttpResponseMessage();\n expectedResponse.setVersion(HTTP_1_1);\n expectedResponse.setStatus(SUCCESS_OK);\n expectedResponse.setHeader(\"Content-Type\", \"application/octet-stream\");\n\n context.checking(new Expectations() { {\n oneOf(serverSession).setVersion(HTTP_1_1);\n oneOf(serverSession).setStatus(SUCCESS_OK);\n oneOf(serverSession).setWriteHeader(\"Content-Type\", \"application/octet-stream\");\n oneOf(serverSession).getStatus(); will(returnValue(SUCCESS_OK));\n\n oneOf(serverSession).getFilterChain(); will(returnValue(filterChain));\n oneOf(filterChain).addFirst(with(equal(\"http#content-length\")), with(aNonNull(HttpContentLengthAdjustmentFilter.class)));\n oneOf(nextFilter).filterWrite(with(serverSession), with(hasMessage(expectedResponse)));\n } });\n\n HttpResponseMessage httpResponse = new HttpResponseMessage();\n httpResponse.setVersion(HTTP_1_1);\n httpResponse.setStatus(SUCCESS_OK);\n httpResponse.setHeader(\"Content-Type\", \"application/octet-stream\");\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(false);\n filter.filterWrite(nextFilter, serverSession, new DefaultWriteRequest(httpResponse));\n\n context.assertIsSatisfied();\n }\n\n @Test\n public void shouldWriteResponseWithIncompleteContent() throws Exception {\n\n final HttpResponseMessage expectedResponse = new HttpResponseMessage();\n expectedResponse.setVersion(HTTP_1_1);\n expectedResponse.setStatus(SUCCESS_OK);\n expectedResponse.setHeader(\"Content-Type\", \"text/plain;charset=UTF-8\");\n\n byte[] array = \"Hello, world\".getBytes(UTF_8);\n HttpContentMessage expectedContent = new HttpContentMessage(wrap(array), false);\n expectedResponse.setContent(expectedContent);\n\n context.checking(new Expectations() { {\n allowing(serverSession).getWriteHeader(\"Content-Length\"); will(returnValue(null));\n allowing(serverSession).setWriteHeader(\"Content-Length\", \"0\");\n\n oneOf(serverSession).setVersion(HTTP_1_1);\n oneOf(serverSession).setStatus(SUCCESS_OK);\n oneOf(serverSession).setWriteHeader(\"Content-Type\", \"text/plain;charset=UTF-8\");\n oneOf(serverSession).getStatus(); will(returnValue(SUCCESS_OK));\n\n oneOf(nextFilter).filterWrite(with(serverSession), with(hasMessage(expectedResponse)));\n } });\n\n HttpResponseMessage httpResponse = new HttpResponseMessage();\n httpResponse.setVersion(HTTP_1_1);\n httpResponse.setStatus(SUCCESS_OK);\n httpResponse.setHeader(\"Content-Type\", \"text/plain;charset=UTF-8\");\n\n HttpContentMessage httpContent = new HttpContentMessage(wrap(array), false);\n httpResponse.setContent(httpContent);\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(false);\n filter.filterWrite(nextFilter, serverSession, new DefaultWriteRequest(httpResponse));\n\n context.assertIsSatisfied();\n }\n\n @Test\n public void shouldWriteResponseWithInsertedTransferEncodingChunked() throws Exception {\n\n final HttpResponseMessage expectedResponse = new HttpResponseMessage();\n expectedResponse.setVersion(HTTP_1_1);\n expectedResponse.setStatus(SUCCESS_OK);\n expectedResponse.setHeader(\"Content-Type\", \"text/plain;charset=UTF-8\");\n\n byte[] array = \"Hello, world\".getBytes(UTF_8);\n HttpContentMessage expectedContent = new HttpContentMessage(wrap(array), false, true, false);\n expectedResponse.setContent(expectedContent);\n\n context.checking(new Expectations() { {\n allowing(serverSession).getWriteHeader(\"Content-Length\"); will(returnValue(null));\n allowing(serverSession).setWriteHeader(\"Content-Length\", \"0\");\n\n oneOf(serverSession).setVersion(HTTP_1_1);\n oneOf(serverSession).setStatus(SUCCESS_OK);\n oneOf(serverSession).setWriteHeaders(with(stringMatching(\"Transfer-Encoding\")), with(stringListMatching(\"chunked\")));\n oneOf(serverSession).setWriteHeader(\"Content-Type\", \"text/plain;charset=UTF-8\");\n oneOf(serverSession).getStatus(); will(returnValue(SUCCESS_OK));\n\n oneOf(nextFilter).filterWrite(with(serverSession), with(hasMessage(expectedResponse)));\n } });\n\n HttpResponseMessage httpResponse = new HttpResponseMessage();\n httpResponse.setVersion(HTTP_1_1);\n httpResponse.setStatus(SUCCESS_OK);\n httpResponse.setHeader(\"Content-Type\", \"text/plain;charset=UTF-8\");\n httpResponse.setHeader(\"Transfer-Encoding\", \"chunked\");\n\n HttpContentMessage httpContent = new HttpContentMessage(wrap(array), false, true, false);\n httpResponse.setContent(httpContent);\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(false);\n filter.filterWrite(nextFilter, serverSession, new DefaultWriteRequest(httpResponse));\n\n context.assertIsSatisfied();\n }\n\n @Test\n public void shouldWriteResponseWithCompleteContent() throws Exception {\n\n final HttpResponseMessage expectedResponse = new HttpResponseMessage();\n expectedResponse.setVersion(HTTP_1_1);\n expectedResponse.setStatus(SUCCESS_OK);\n expectedResponse.setHeader(\"Content-Type\", \"text/plain;charset=UTF-8\");\n\n byte[] array = \"Hello, world\".getBytes(UTF_8);\n HttpContentMessage expectedContent = new HttpContentMessage(wrap(array), true);\n expectedResponse.setContent(expectedContent);\n\n context.checking(new Expectations() { {\n allowing(serverSession).getWriteHeader(\"Content-Length\"); will(returnValue(null));\n allowing(serverSession).setWriteHeader(\"Content-Length\", \"0\");\n\n oneOf(serverSession).setVersion(HTTP_1_1);\n oneOf(serverSession).setStatus(SUCCESS_OK);\n oneOf(serverSession).setWriteHeader(\"Content-Type\", \"text/plain;charset=UTF-8\");\n oneOf(serverSession).getStatus(); will(returnValue(SUCCESS_OK));\n\n oneOf(serverSession).getFilterChain(); will(returnValue(filterChain));\n oneOf(filterChain).addFirst(with(equal(\"http#content-length\")), with(aNonNull(HttpContentLengthAdjustmentFilter.class)));\n oneOf(nextFilter).filterWrite(with(serverSession), with(hasMessage(expectedResponse)));\n } });\n\n HttpResponseMessage httpResponse = new HttpResponseMessage();\n httpResponse.setVersion(HTTP_1_1);\n httpResponse.setStatus(SUCCESS_OK);\n httpResponse.setHeader(\"Content-Type\", \"text/plain;charset=UTF-8\");\n\n HttpContentMessage httpContent = new HttpContentMessage(wrap(array), true);\n httpResponse.setContent(httpContent);\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(false);\n filter.filterWrite(nextFilter, serverSession, new DefaultWriteRequest(httpResponse));\n\n context.assertIsSatisfied();\n }\n\n @Test\n public void shouldWriteResponseAfterPrependingContentLengthFilter() throws Exception {\n\n final HttpResponseMessage expectedResponse = new HttpResponseMessage();\n expectedResponse.setVersion(HTTP_1_1);\n expectedResponse.setStatus(SUCCESS_OK);\n expectedResponse.setContent(new HttpContentMessage(wrap(new byte[0]), false));\n\n byte[] array = \"Hello, world\".getBytes(UTF_8);\n final HttpContentMessage expectedContent = new HttpContentMessage(wrap(array), true);\n expectedResponse.setContent(expectedContent);\n\n context.checking(new Expectations() { {\n oneOf(serverSession).setVersion(HTTP_1_1);\n oneOf(serverSession).setStatus(SUCCESS_OK);\n oneOf(serverSession).setWriteHeader(\"Content-Type\", \"text/plain;charset=UTF-8\");\n oneOf(serverSession).setWriteHeaders(with(stringMatching(\"Content-Length\")), with(stringListMatching(\"12\")));\n allowing(serverSession).getWriteHeader(\"Content-Length\"); will(returnValue(\"12\"));\n oneOf(serverSession).getStatus(); will(returnValue(SUCCESS_OK));\n\n oneOf(serverSession).getFilterChain(); will(returnValue(filterChain));\n oneOf(filterChain).addFirst(with(equal(\"http#content-length\")), with(aNonNull(HttpContentLengthAdjustmentFilter.class)));\n oneOf(nextFilter).filterWrite(with(serverSession), with(hasMessage(expectedResponse)));\n } });\n\n HttpResponseMessage httpResponse = new HttpResponseMessage();\n httpResponse.setVersion(HTTP_1_1);\n httpResponse.setStatus(SUCCESS_OK);\n httpResponse.setHeader(\"Content-Length\", \"12\");\n\n HttpContentMessage httpContent = new HttpContentMessage(wrap(array), true);\n httpResponse.setContent(httpContent);\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(false);\n filter.filterWrite(nextFilter, serverSession, new DefaultWriteRequest(httpResponse));\n\n context.assertIsSatisfied();\n }\n\n\n @Test\n public void shouldReceivePostRequestWithExtractedHeadersAndContent() throws Exception {\n\n byte[] array = \">|<\".getBytes(UTF_8);\n\n final HttpRequestMessage expectedRequest = new HttpRequestMessage();\n expectedRequest.setVersion(HTTP_1_1);\n expectedRequest.setMethod(POST);\n expectedRequest.setRequestURI(URI.create(\"/kerberos5/;api/get-cookies?.kv=10.05\"));\n expectedRequest.setHeader(\"Accept\", \"*/*\");\n expectedRequest.setHeader(\"Accept-Language\", \"en-us\");\n expectedRequest.addHeader(\"Accept-Language\", \"fr-fr\");\n expectedRequest.setHeader(\"Content-Length\", \"3\");\n expectedRequest.setHeader(\"Content-Type\", \"text/plain\");\n expectedRequest.setHeader(\"Host\", \"gateway.kzng.net:8003\");\n expectedRequest.setHeader(\"Referer\", \"http://gateway.kzng.net:8003/?.kr=xsa\");\n expectedRequest.setHeader(\"User-Agent\", \"Shockwave Flash\");\n expectedRequest.setHeader(\"X-Origin\", \"http://gateway.kzng.net:8000\");\n expectedRequest.setHeader(\"x-flash-version\", \"9,0,124,0\");\n expectedRequest.setContent(new HttpContentMessage(wrap(array), true));\n\n context.checking(new Expectations() { {\n oneOf(serverSession).getVersion(); will(returnValue(HTTP_1_1));\n oneOf(serverSession).getMethod(); will(returnValue(POST));\n oneOf(serverSession).getRequestURI(); will(returnValue(URI.create(\"/kerberos5/;api/get-cookies?.kv=10.05\")));\n oneOf(serverSession).getReadHeaderNames(); will(returnValue(asList(\"Accept\", \"Accept-Language\", \"Content-Length\", \"Content-Type\", \"Host\", \"X-Origin\", \"Referer\", \"User-Agent\", \"x-flash-version\")));\n oneOf(serverSession).getReadHeaders(with(\"Accept\")); will(returnValue(Collections.singletonList(\"*/*\")));\n oneOf(serverSession).getReadHeaders(with(\"Accept-Language\")); will(returnValue(asList(\"en-us\",\"fr-fr\")));\n oneOf(serverSession).getReadHeader(with(\"Content-Type\")); will(returnValue(\"application/x-message-http\"));\n oneOf(serverSession).getReadHeaders(with(\"Host\")); will(returnValue(Collections.singletonList(\"gateway.kzng.net:8003\")));\n oneOf(serverSession).getReadHeaders(with(\"Referer\")); will(returnValue(Collections.singletonList(\"http://gateway.kzng.net:8003/?.kr=xsa\")));\n oneOf(serverSession).getReadHeaders(with(\"User-Agent\")); will(returnValue(Collections.singletonList(\"Shockwave Flash\")));\n oneOf(serverSession).getReadHeaders(with(\"X-Origin\")); will(returnValue(Collections.singletonList(\"http://gateway.kzng.net:8000\")));\n oneOf(serverSession).getReadHeaders(with(\"x-flash-version\")); will(returnValue(Collections.singletonList(\"9,0,124,0\")));\n oneOf(serverSession).getReadCookies(); will(returnValue(emptyList()));\n\n oneOf(nextFilter).messageReceived(with(serverSession), with(equal(expectedRequest)));\n } });\n\n HttpRequestMessage httpRequest = new HttpRequestMessage();\n httpRequest.setVersion(HTTP_1_1);\n httpRequest.setMethod(POST);\n httpRequest.setRequestURI(URI.create(\"/kerberos5/;api/get-cookies?.kv=10.05\"));\n httpRequest.setHeader(\"Content-Length\", \"3\");\n httpRequest.setHeader(\"Content-Type\", \"text/plain\");\n httpRequest.setContent(new HttpContentMessage(wrap(array), true));\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(false);\n filter.messageReceived(nextFilter, serverSession, httpRequest);\n\n context.assertIsSatisfied();\n }\n\n @Test\n public void shouldReceiveGetRequestWithExtractedHeadersIncludingMultiValuedHeaderAndCookie() throws Exception {\n\n final HttpRequestMessage expectedRequest = new HttpRequestMessage();\n expectedRequest.setVersion(HTTP_1_1);\n expectedRequest.setMethod(GET);\n expectedRequest.setRequestURI(URI.create(\"/\"));\n expectedRequest.setHeader(\"Authorization\", \"restricted-usage\");\n expectedRequest.setHeader(\"X-Header\", \"value1\");\n expectedRequest.addHeader(\"X-Header\", \"value2\");\n expectedRequest.addCookie(new DefaultHttpCookie(\"KSSOID\", \"0123456789abcdef\"));\n expectedRequest.setContent(EMPTY);\n\n context.checking(new Expectations() { {\n oneOf(serverSession).getVersion(); will(returnValue(HTTP_1_1));\n oneOf(serverSession).getMethod(); will(returnValue(POST));\n oneOf(serverSession).getRequestURI(); will(returnValue(URI.create(\"/\")));\n oneOf(serverSession).getReadHeaderNames(); will(returnValue(asList(\"Content-Length\", \"Content-Type\", \"X-Header\")));\n oneOf(serverSession).getReadHeader(with(\"Content-Type\")); will(returnValue(\"application/x-message-http\"));\n oneOf(serverSession).getReadHeaders(with(\"X-Header\")); will(returnValue(asList(\"value1\",\"value2\")));\n oneOf(serverSession).getReadCookies(); will(returnValue(Collections.singletonList(new DefaultHttpCookie(\"KSSOID\", \"0123456789abcdef\"))));\n\n oneOf(nextFilter).messageReceived(with(serverSession), with(equal(expectedRequest)));\n } });\n\n HttpRequestMessage httpRequest = new HttpRequestMessage();\n httpRequest.setVersion(HTTP_1_1);\n httpRequest.setMethod(GET);\n httpRequest.setRequestURI(URI.create(\"/\"));\n httpRequest.setHeader(\"Authorization\", \"restricted-usage\");\n httpRequest.setContent(EMPTY);\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(false);\n filter.messageReceived(nextFilter, serverSession, httpRequest);\n\n context.assertIsSatisfied();\n }\n\n @Test (expected = ProtocolCodecException.class)\n public void shouldRejectReceivedRequestWithInconsistentURI() throws Exception {\n final HttpRequestMessage expectedRequest = new HttpRequestMessage();\n expectedRequest.setVersion(HTTP_1_1);\n expectedRequest.setMethod(GET);\n expectedRequest.setRequestURI(URI.create(\"/\"));\n expectedRequest.setContent(EMPTY);\n\n context.checking(new Expectations() { {\n oneOf(serverSession).getVersion(); will(returnValue(HTTP_1_1));\n oneOf(serverSession).getMethod(); will(returnValue(POST));\n oneOf(serverSession).getRequestURI(); will(returnValue(URI.create(\"/\")));\n oneOf(serverSession).getReadHeaderNames(); will(returnValue(asList(\"Content-Length\", \"Content-Type\")));\n oneOf(serverSession).getReadHeader(with(\"Content-Length\")); will(returnValue(\"102\"));\n oneOf(serverSession).getReadHeader(with(\"Content-Type\")); will(returnValue(\"application/x-message-http\"));\n oneOf(serverSession).getStatus(); will(returnValue(SUCCESS_OK));\n\n oneOf(nextFilter).messageReceived(with(serverSession), with(equal(expectedRequest)));\n } });\n\n HttpRequestMessage httpRequest = new HttpRequestMessage();\n httpRequest.setVersion(HTTP_1_1);\n httpRequest.setMethod(GET);\n httpRequest.setRequestURI(URI.create(\"/different/path\"));\n httpRequest.setContent(EMPTY);\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(false);\n filter.messageReceived(nextFilter, serverSession, httpRequest);\n\n context.assertIsSatisfied();\n }\n\n @Test (expected = ProtocolCodecException.class)\n public void shouldRejectReceivedRequestWithInconsistentVersion() throws Exception {\n final HttpRequestMessage expectedRequest = new HttpRequestMessage();\n expectedRequest.setVersion(HTTP_1_1);\n expectedRequest.setMethod(GET);\n expectedRequest.setRequestURI(URI.create(\"/\"));\n expectedRequest.setContent(EMPTY);\n\n context.checking(new Expectations() { {\n oneOf(serverSession).getVersion(); will(returnValue(HTTP_1_1));\n oneOf(serverSession).getMethod(); will(returnValue(POST));\n oneOf(serverSession).getRequestURI(); will(returnValue(URI.create(\"/\")));\n oneOf(serverSession).getReadHeaderNames(); will(returnValue(asList(\"Content-Length\", \"Content-Type\")));\n oneOf(serverSession).getReadHeader(with(\"Content-Length\")); will(returnValue(\"102\"));\n oneOf(serverSession).getReadHeader(with(\"Content-Type\")); will(returnValue(\"application/x-message-http\"));\n oneOf(serverSession).getStatus(); will(returnValue(SUCCESS_OK));\n\n oneOf(nextFilter).messageReceived(with(serverSession), with(equal(expectedRequest)));\n } });\n\n HttpRequestMessage httpRequest = new HttpRequestMessage();\n httpRequest.setVersion(HTTP_1_0);\n httpRequest.setMethod(GET);\n httpRequest.setRequestURI(URI.create(\"/\"));\n httpRequest.setContent(EMPTY);\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(false);\n filter.messageReceived(nextFilter, serverSession, httpRequest);\n\n context.assertIsSatisfied();\n }\n\n @Test (expected = ProtocolCodecException.class)\n public void shouldRejectReceivedRequestWithInvalidHeader() throws Exception {\n final HttpRequestMessage expectedRequest = new HttpRequestMessage();\n expectedRequest.setVersion(HTTP_1_1);\n expectedRequest.setMethod(GET);\n expectedRequest.setRequestURI(URI.create(\"/\"));\n expectedRequest.setContent(EMPTY);\n\n context.checking(new Expectations() { {\n oneOf(serverSession).getVersion(); will(returnValue(HTTP_1_1));\n oneOf(serverSession).getMethod(); will(returnValue(POST));\n oneOf(serverSession).getRequestURI(); will(returnValue(URI.create(\"/\")));\n oneOf(serverSession).getReadHeaderNames(); will(returnValue(asList(\"Content-Length\", \"Content-Type\")));\n oneOf(serverSession).getReadHeader(with(\"Content-Length\")); will(returnValue(\"102\"));\n oneOf(serverSession).getReadHeader(with(\"Content-Type\")); will(returnValue(\"application/x-message-http\"));\n oneOf(serverSession).getStatus(); will(returnValue(SUCCESS_OK));\n\n oneOf(nextFilter).messageReceived(with(serverSession), with(equal(expectedRequest)));\n } });\n\n HttpRequestMessage httpRequest = new HttpRequestMessage();\n httpRequest.setVersion(HTTP_1_1);\n httpRequest.setMethod(GET);\n httpRequest.setRequestURI(URI.create(\"/\"));\n httpRequest.setHeader(\"Accept-Charset\", \"value\");\n httpRequest.setContent(EMPTY);\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(false);\n filter.messageReceived(nextFilter, serverSession, httpRequest);\n\n context.assertIsSatisfied();\n }\n\n @Test\n public void shouldReceiveResponseWithStatusRedirectNotModified() throws Exception {\n\n final HttpResponseMessage expectedResponse = new HttpResponseMessage();\n expectedResponse.setVersion(HTTP_1_1);\n expectedResponse.setStatus(REDIRECT_NOT_MODIFIED);\n\n context.checking(new Expectations() { {\n allowing(clientSession).getVersion(); will(returnValue(HTTP_1_1));\n allowing(clientSession).getStatus(); will(returnValue(SUCCESS_OK));\n allowing(clientSession).getReadHeaderNames(); will(returnValue(emptyList()));\n allowing(clientSession).getReadCookies(); will(returnValue(emptyList()));\n\n oneOf(nextFilter).messageReceived(with(clientSession), with(equal(expectedResponse)));\n } });\n\n HttpResponseMessage httpResponse = new HttpResponseMessage();\n httpResponse.setVersion(HTTP_1_1);\n httpResponse.setStatus(REDIRECT_NOT_MODIFIED);\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(true);\n filter.messageReceived(nextFilter, clientSession, httpResponse);\n\n context.assertIsSatisfied();\n }\n\n @Test\n public void shouldReceiveResponseWithStatusClientUnauthorized() throws Exception {\n\n final HttpResponseMessage expectedResponse = new HttpResponseMessage();\n expectedResponse.setVersion(HTTP_1_1);\n expectedResponse.setStatus(CLIENT_UNAUTHORIZED);\n expectedResponse.setHeader(\"WWW-Autheticate\", \"Basic realm=\\\"WallyWorld\\\"\");\n\n context.checking(new Expectations() { {\n allowing(clientSession).getVersion(); will(returnValue(HTTP_1_1));\n allowing(clientSession).getStatus(); will(returnValue(SUCCESS_OK));\n allowing(clientSession).getReadHeaderNames(); will(returnValue(emptyList()));\n allowing(clientSession).getReadCookies(); will(returnValue(emptyList()));\n\n oneOf(nextFilter).messageReceived(with(clientSession), with(equal(expectedResponse)));\n } });\n\n HttpResponseMessage httpResponse = new HttpResponseMessage();\n httpResponse.setVersion(HTTP_1_1);\n httpResponse.setStatus(CLIENT_UNAUTHORIZED);\n httpResponse.setHeader(\"WWW-Autheticate\", \"Basic realm=\\\"WallyWorld\\\"\");\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(true);\n filter.messageReceived(nextFilter, clientSession, httpResponse);\n\n context.assertIsSatisfied();\n }\n\n @Test\n public void shouldReceiveResponseWithExtractedCookies() throws Exception {\n\n final List expectedCookies =\n Collections.singletonList(new DefaultHttpCookie(\"KSSOID\", \"12345\"));\n\n final HttpResponseMessage expectedResponse = new HttpResponseMessage();\n expectedResponse.setVersion(HTTP_1_1);\n expectedResponse.setStatus(REDIRECT_FOUND);\n expectedResponse.setReason(\"Cross-Origin Redirect\");\n expectedResponse.setHeader(\"Location\", \"https://www.w3.org/\");\n expectedResponse.setCookies(expectedCookies);\n\n context.checking(new Expectations() { {\n allowing(clientSession).getVersion(); will(returnValue(HTTP_1_1));\n allowing(clientSession).getStatus(); will(returnValue(SUCCESS_OK));\n allowing(clientSession).getReadHeaderNames(); will(returnValue(Collections.emptySet()));\n\n oneOf(clientSession).getReadCookies(); will(returnValue(expectedCookies));\n\n oneOf(nextFilter).messageReceived(with(clientSession), with(equal(expectedResponse)));\n } });\n\n HttpResponseMessage httpResponse = new HttpResponseMessage();\n httpResponse.setVersion(HTTP_1_1);\n httpResponse.setStatus(REDIRECT_FOUND);\n httpResponse.setReason(\"Cross-Origin Redirect\");\n httpResponse.setHeader(\"Location\", \"https://www.w3.org/\");\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(true);\n filter.messageReceived(nextFilter, clientSession, httpResponse);\n\n context.assertIsSatisfied();\n }\n\n @Test\n public void shouldReceiveResponseWithContentTypeTextPlain() throws Exception {\n\n final HttpResponseMessage expectedResponse = new HttpResponseMessage();\n expectedResponse.setVersion(HTTP_1_1);\n expectedResponse.setStatus(SUCCESS_OK);\n expectedResponse.setHeader(\"Content-Type\", \"text/plain\");\n\n context.checking(new Expectations() { {\n allowing(clientSession).getVersion(); will(returnValue(HTTP_1_1));\n allowing(clientSession).getStatus(); will(returnValue(SUCCESS_OK));\n allowing(clientSession).getReadCookies(); will(returnValue(emptyList()));\n\n oneOf(clientSession).getReadHeaderNames(); will(returnValue(Collections.singletonList(\"Content-Type\")));\n oneOf(clientSession).getReadHeader(\"Content-Type\"); will(returnValue(\"text/plain\"));\n\n oneOf(nextFilter).messageReceived(with(clientSession), with(equal(expectedResponse)));\n } });\n\n HttpResponseMessage httpResponse = new HttpResponseMessage();\n httpResponse.setVersion(HTTP_1_1);\n httpResponse.setStatus(SUCCESS_OK);\n httpResponse.setHeader(\"Content-Type\", \"text/plain\");\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(true);\n filter.messageReceived(nextFilter, clientSession, httpResponse);\n\n context.assertIsSatisfied();\n }\n\n @Test\n public void shouldReceiveResponseWithTextContentTypeInsertedAsTextPlain() throws Exception {\n\n final HttpResponseMessage expectedResponse = new HttpResponseMessage();\n expectedResponse.setVersion(HTTP_1_1);\n expectedResponse.setStatus(SUCCESS_OK);\n expectedResponse.setHeader(\"Content-Type\", \"text/xyz;charset=windows-1252\");\n\n context.checking(new Expectations() { {\n allowing(clientSession).getVersion(); will(returnValue(HTTP_1_1));\n allowing(clientSession).getStatus(); will(returnValue(SUCCESS_OK));\n allowing(clientSession).getReadCookies(); will(returnValue(emptyList()));\n\n oneOf(clientSession).getReadHeaderNames(); will(returnValue(Collections.singletonList(\"Content-Type\")));\n oneOf(clientSession).getReadHeader(\"Content-Type\"); will(returnValue(\"text/plain;charset=windows-1252\"));\n\n oneOf(nextFilter).messageReceived(with(clientSession), with(equal(expectedResponse)));\n } });\n\n HttpResponseMessage httpResponse = new HttpResponseMessage();\n httpResponse.setVersion(HTTP_1_1);\n httpResponse.setStatus(SUCCESS_OK);\n httpResponse.setHeader(\"Content-Type\", \"text/xyz;charset=windows-1252\");\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(true);\n filter.messageReceived(nextFilter, clientSession, httpResponse);\n\n context.assertIsSatisfied();\n }\n\n @Test (expected = ProtocolCodecException.class)\n public void shouldRejectReceivedResponseWithIncompatibleTextContentType() throws Exception {\n\n final HttpResponseMessage expectedResponse = new HttpResponseMessage();\n expectedResponse.setVersion(HTTP_1_1);\n expectedResponse.setStatus(SUCCESS_OK);\n expectedResponse.setHeader(\"Content-Type\", \"text/xyz;charset=windows-1252\");\n\n context.checking(new Expectations() { {\n allowing(clientSession).getVersion(); will(returnValue(HTTP_1_1));\n allowing(clientSession).getStatus(); will(returnValue(SUCCESS_OK));\n allowing(clientSession).getReadCookies(); will(returnValue(emptyList()));\n\n oneOf(clientSession).getReadHeaderNames(); will(returnValue(Collections.singletonList(\"Content-Type\")));\n oneOf(clientSession).getReadHeader(\"Content-Type\"); will(returnValue(\"text/pdf\"));\n } });\n\n HttpResponseMessage httpResponse = new HttpResponseMessage();\n httpResponse.setVersion(HTTP_1_1);\n httpResponse.setStatus(SUCCESS_OK);\n httpResponse.setHeader(\"Content-Type\", \"text/xyz;charset=windows-1252\");\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(true);\n filter.messageReceived(nextFilter, clientSession, httpResponse);\n\n context.assertIsSatisfied();\n }\n\n @Test\n public void shouldReceiveResponseWithExtractedAccessControlAllowHeaders() throws Exception {\n\n final HttpResponseMessage expectedResponse = new HttpResponseMessage();\n expectedResponse.setVersion(HTTP_1_1);\n expectedResponse.setStatus(SUCCESS_OK);\n expectedResponse.setHeader(\"Content-Type\", \"text/xyz;charset=windows-1252\");\n expectedResponse.setHeader(\"Access-Control-Allow-Headers\", \"x-websocket-extensions\");\n\n context.checking(new Expectations() { {\n allowing(clientSession).getVersion(); will(returnValue(HTTP_1_1));\n allowing(clientSession).getStatus(); will(returnValue(SUCCESS_OK));\n allowing(clientSession).getReadCookies(); will(returnValue(emptyList()));\n\n oneOf(clientSession).getReadHeaderNames(); will(returnValue(asList(\"Content-Type\", \"Access-Control-Allow-Headers\")));\n oneOf(clientSession).getReadHeader(\"Content-Type\"); will(returnValue(\"text/plain;charset=windows-1252\"));\n oneOf(clientSession).getReadHeader(\"Access-Control-Allow-Headers\"); will(returnValue(\"x-websocket-extensions\"));\n\n oneOf(nextFilter).messageReceived(with(clientSession), with(equal(expectedResponse)));\n } });\n\n HttpResponseMessage httpResponse = new HttpResponseMessage();\n httpResponse.setVersion(HTTP_1_1);\n httpResponse.setStatus(SUCCESS_OK);\n httpResponse.setHeader(\"Content-Type\", \"text/xyz;charset=windows-1252\");\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(true);\n filter.messageReceived(nextFilter, clientSession, httpResponse);\n\n context.assertIsSatisfied();\n }\n\n @Test\n public void shouldReceiveResponseWithExtractedContentEncoding() throws Exception {\n\n final HttpResponseMessage expectedResponse = new HttpResponseMessage();\n expectedResponse.setVersion(HTTP_1_1);\n expectedResponse.setStatus(SUCCESS_OK);\n expectedResponse.setHeader(\"Content-Type\", \"text/xyz;charset=windows-1252\");\n expectedResponse.setHeader(\"Content-Encoding\", \"gzip\");\n\n context.checking(new Expectations() { {\n allowing(clientSession).getVersion(); will(returnValue(HTTP_1_1));\n allowing(clientSession).getStatus(); will(returnValue(SUCCESS_OK));\n allowing(clientSession).getReadCookies(); will(returnValue(emptyList()));\n\n oneOf(clientSession).getReadHeaderNames(); will(returnValue(asList(\"Content-Type\", \"Content-Encoding\")));\n oneOf(clientSession).getReadHeader(\"Content-Type\"); will(returnValue(\"text/plain;charset=windows-1252\"));\n oneOf(clientSession).getReadHeader(\"Content-Encoding\"); will(returnValue(\"gzip\"));\n\n oneOf(nextFilter).messageReceived(with(clientSession), with(equal(expectedResponse)));\n } });\n\n HttpResponseMessage httpResponse = new HttpResponseMessage();\n httpResponse.setVersion(HTTP_1_1);\n httpResponse.setStatus(SUCCESS_OK);\n httpResponse.setHeader(\"Content-Type\", \"text/xyz;charset=windows-1252\");\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(true);\n filter.messageReceived(nextFilter, clientSession, httpResponse);\n\n context.assertIsSatisfied();\n }\n\n @Test\n public void shouldReceiveResponseWithExtractedCacheControl() throws Exception {\n\n final HttpResponseMessage expectedResponse = new HttpResponseMessage();\n expectedResponse.setVersion(HTTP_1_1);\n expectedResponse.setStatus(REDIRECT_FOUND);\n expectedResponse.setHeader(\"Location\", \"https://www.w3.org/\");\n expectedResponse.setHeader(\"Cache-Control\", \"private\");\n\n context.checking(new Expectations() { {\n allowing(clientSession).getVersion(); will(returnValue(HTTP_1_1));\n allowing(clientSession).getStatus(); will(returnValue(SUCCESS_OK));\n allowing(clientSession).getReadCookies(); will(returnValue(emptyList()));\n\n oneOf(clientSession).getReadHeaderNames(); will(returnValue(asList(\"Content-Type\", \"Cache-Control\")));\n oneOf(clientSession).getReadHeader(\"Content-Type\"); will(returnValue(\"text/plain;charset=windows-1252\"));\n oneOf(clientSession).getReadHeader(\"Cache-Control\"); will(returnValue(\"private\"));\n\n oneOf(nextFilter).messageReceived(with(clientSession), with(equal(expectedResponse)));\n } });\n\n HttpResponseMessage httpResponse = new HttpResponseMessage();\n httpResponse.setVersion(HTTP_1_1);\n httpResponse.setStatus(REDIRECT_FOUND);\n httpResponse.setHeader(\"Location\", \"https://www.w3.org/\");\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(true);\n filter.messageReceived(nextFilter, clientSession, httpResponse);\n\n context.assertIsSatisfied();\n }\n\n @Test\n public void shouldReceiveResponseWithExtractedContentTypeApplicationOctetStream() throws Exception {\n\n final HttpResponseMessage expectedResponse = new HttpResponseMessage();\n expectedResponse.setVersion(HTTP_1_1);\n expectedResponse.setStatus(SUCCESS_OK);\n expectedResponse.setHeader(\"Content-Type\", \"application/octet-stream\");\n expectedResponse.setHeader(\"Content-Length\", \"0\");\n\n context.checking(new Expectations() { {\n allowing(clientSession).getVersion(); will(returnValue(HTTP_1_1));\n allowing(clientSession).getStatus(); will(returnValue(SUCCESS_OK));\n allowing(clientSession).getReadCookies(); will(returnValue(emptyList()));\n\n oneOf(clientSession).getReadHeaderNames(); will(returnValue(asList(\"Content-Type\", \"Content-Length\")));\n oneOf(clientSession).getReadHeader(\"Content-Type\"); will(returnValue(\"application/octet-stream\"));\n\n oneOf(nextFilter).messageReceived(with(clientSession), with(equal(expectedResponse)));\n } });\n\n HttpResponseMessage httpResponse = new HttpResponseMessage();\n httpResponse.setVersion(HTTP_1_1);\n httpResponse.setStatus(SUCCESS_OK);\n httpResponse.setHeader(\"Content-Type\", \"application/octet-stream\");\n httpResponse.setHeader(\"Content-Length\", \"0\");\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(true);\n filter.messageReceived(nextFilter, clientSession, httpResponse);\n\n context.assertIsSatisfied();\n }\n\n @Test\n public void shouldReceiveResponseWithIncompleteContent() throws Exception {\n\n final HttpResponseMessage expectedResponse = new HttpResponseMessage();\n expectedResponse.setVersion(HTTP_1_1);\n expectedResponse.setStatus(SUCCESS_OK);\n\n byte[] array = \"Hello, world\".getBytes(UTF_8);\n HttpContentMessage expectedContent = new HttpContentMessage(wrap(array), false);\n expectedResponse.setContent(expectedContent);\n\n context.checking(new Expectations() { {\n allowing(clientSession).getVersion(); will(returnValue(HTTP_1_1));\n allowing(clientSession).getStatus(); will(returnValue(SUCCESS_OK));\n allowing(clientSession).getReadCookies(); will(returnValue(emptyList()));\n\n oneOf(clientSession).getReadHeaderNames(); will(returnValue(emptyList()));\n oneOf(nextFilter).messageReceived(with(clientSession), with(equal(expectedResponse)));\n } });\n\n HttpResponseMessage httpResponse = new HttpResponseMessage();\n httpResponse.setVersion(HTTP_1_1);\n httpResponse.setStatus(SUCCESS_OK);\n\n HttpContentMessage httpContent = new HttpContentMessage(wrap(array), false);\n httpResponse.setContent(httpContent);\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(true);\n filter.messageReceived(nextFilter, clientSession, httpResponse);\n\n context.assertIsSatisfied();\n }\n\n @Test\n public void shouldReceiveResponseWithExtractedTransferEncodingChunked() throws Exception {\n\n final HttpResponseMessage expectedResponse = new HttpResponseMessage();\n expectedResponse.setVersion(HTTP_1_1);\n expectedResponse.setStatus(SUCCESS_OK);\n expectedResponse.setHeader(\"Content-Type\", \"text/plain;charset=UTF-8\");\n expectedResponse.setHeader(\"Transfer-Encoding\", \"chunked\");\n\n byte[] array = \"Hello, world\".getBytes(UTF_8);\n HttpContentMessage expectedContent = new HttpContentMessage(wrap(array), false, true, false);\n expectedResponse.setContent(expectedContent);\n\n context.checking(new Expectations() { {\n allowing(clientSession).getVersion(); will(returnValue(HTTP_1_1));\n allowing(clientSession).getStatus(); will(returnValue(SUCCESS_OK));\n allowing(clientSession).getReadCookies(); will(returnValue(emptyList()));\n\n oneOf(clientSession).getReadHeaderNames(); will(returnValue(asList(\"Transfer-Encoding\", \"Content-Type\")));\n oneOf(clientSession).getReadHeader(\"Transfer-Encoding\"); will(returnValue(\"chunked\"));\n oneOf(clientSession).getReadHeader(\"Content-Type\"); will(returnValue(\"text/plain;charset=UTF-8\"));\n\n oneOf(nextFilter).messageReceived(with(clientSession), with(equal(expectedResponse)));\n } });\n\n HttpResponseMessage httpResponse = new HttpResponseMessage();\n httpResponse.setVersion(HTTP_1_1);\n httpResponse.setStatus(SUCCESS_OK);\n httpResponse.setHeader(\"Content-Type\", \"text/plain;charset=UTF-8\");\n\n HttpContentMessage httpContent = new HttpContentMessage(wrap(array), false, true, false);\n httpResponse.setContent(httpContent);\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(true);\n filter.messageReceived(nextFilter, clientSession, httpResponse);\n\n context.assertIsSatisfied();\n }\n\n @Test\n public void shouldReceiveResponseWithCompleteContent() throws Exception {\n\n final HttpResponseMessage expectedResponse = new HttpResponseMessage();\n expectedResponse.setVersion(HTTP_1_1);\n expectedResponse.setStatus(SUCCESS_OK);\n expectedResponse.setHeader(\"Content-Type\", \"text/plain;charset=UTF-8\");\n\n byte[] array = \"Hello, world\".getBytes(UTF_8);\n HttpContentMessage expectedContent = new HttpContentMessage(wrap(array), true);\n expectedResponse.setContent(expectedContent);\n\n context.checking(new Expectations() { {\n allowing(clientSession).getVersion(); will(returnValue(HTTP_1_1));\n allowing(clientSession).getStatus(); will(returnValue(SUCCESS_OK));\n allowing(clientSession).getReadCookies(); will(returnValue(emptyList()));\n\n oneOf(clientSession).getReadHeaderNames(); will(returnValue(Collections.singletonList(\"Content-Type\")));\n oneOf(clientSession).getReadHeader(\"Content-Type\"); will(returnValue(\"text/plain;charset=UTF-8\"));\n\n oneOf(nextFilter).messageReceived(with(clientSession), with(equal(expectedResponse)));\n } });\n\n HttpResponseMessage httpResponse = new HttpResponseMessage();\n httpResponse.setVersion(HTTP_1_1);\n httpResponse.setStatus(SUCCESS_OK);\n httpResponse.setHeader(\"Content-Type\", \"text/plain;charset=UTF-8\");\n\n HttpContentMessage httpContent = new HttpContentMessage(wrap(array), true);\n httpResponse.setContent(httpContent);\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(true);\n filter.messageReceived(nextFilter, clientSession, httpResponse);\n\n context.assertIsSatisfied();\n }\n\n @Test\n public void shouldWriteRequestAfterPrependingContentLengthFilter() throws Exception {\n\n final HttpRequestMessage expectedRequest = new HttpRequestMessage();\n expectedRequest.setVersion(HTTP_1_1);\n expectedRequest.setMethod(POST);\n expectedRequest.setRequestURI(URI.create(\"/\"));\n expectedRequest.setContent(new HttpContentMessage(wrap(new byte[0]), false));\n\n byte[] array = \"Hello, world\".getBytes(UTF_8);\n final HttpContentMessage expectedContent = new HttpContentMessage(wrap(array), true);\n expectedRequest.setContent(expectedContent);\n\n context.checking(new Expectations() { {\n oneOf(clientSession).setVersion(HTTP_1_1);\n oneOf(clientSession).setMethod(POST);\n oneOf(clientSession).setRequestURI(URI.create(\"/\"));\n oneOf(clientSession).setWriteHeader(\"Content-Type\", \"text/plain;charset=UTF-8\");\n oneOf(clientSession).setWriteHeader(\"Content-Length\", \"12\");\n\n oneOf(clientSession).getFilterChain(); will(returnValue(filterChain));\n oneOf(filterChain).addFirst(with(\"http#content-length\"), with(any(HttpContentLengthAdjustmentFilter.class)));\n oneOf(nextFilter).filterWrite(with(clientSession), with(hasMessage(expectedRequest)));\n } });\n\n HttpRequestMessage httpRequest = new HttpRequestMessage();\n httpRequest.setVersion(HTTP_1_1);\n httpRequest.setMethod(POST);\n httpRequest.setRequestURI(URI.create(\"/\"));\n httpRequest.setHeader(\"Content-Length\", \"12\");\n\n HttpContentMessage httpContent = new HttpContentMessage(wrap(array), true);\n httpRequest.setContent(httpContent);\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(true);\n filter.filterWrite(nextFilter, clientSession, new DefaultWriteRequest(httpRequest));\n\n context.assertIsSatisfied();\n }\n\n @Test\n public void shouldWritePostRequestWithInsertedHeadersAndContent() throws Exception {\n\n byte[] array = \">|<\".getBytes(UTF_8);\n\n final HttpRequestMessage expectedRequest = new HttpRequestMessage();\n expectedRequest.setVersion(HTTP_1_1);\n expectedRequest.setMethod(POST);\n expectedRequest.setRequestURI(URI.create(\"/kerberos5/;api/get-cookies?.kv=10.05\"));\n expectedRequest.setHeader(\"Content-Type\", \"text/plain\");\n expectedRequest.setContent(new HttpContentMessage(wrap(array), true));\n\n context.checking(new Expectations() { {\n oneOf(clientSession).setVersion(HTTP_1_1);\n oneOf(clientSession).setMethod(POST);\n oneOf(clientSession).setRequestURI(URI.create(\"/kerberos5/;api/get-cookies?.kv=10.05\"));\n oneOf(clientSession).setWriteHeader(\"Accept\", \"*/*\");\n oneOf(clientSession).setWriteHeader(\"Accept-Language\", \"en-us\");\n oneOf(clientSession).setWriteHeader(\"Content-Length\", \"3\");\n oneOf(clientSession).setWriteHeader(\"Content-Type\", \"text/plain\");\n oneOf(clientSession).setWriteHeader(\"Host\", \"gateway.kzng.net:8003\");\n oneOf(clientSession).setWriteHeader(\"Referer\", \"http://gateway.kzng.net:8003/?.kr=xsa\");\n oneOf(clientSession).setWriteHeader(\"User-Agent\", \"Shockwave Flash\");\n oneOf(clientSession).setWriteHeader(\"X-Origin\", \"http://gateway.kzng.net:8000\");\n oneOf(clientSession).setWriteHeader(\"x-flash-version\", \"9,0,124,0\");\n\n oneOf(clientSession).getFilterChain(); will(returnValue(filterChain));\n oneOf(filterChain).addFirst(with(\"http#content-length\"), with(any(HttpContentLengthAdjustmentFilter.class)));\n oneOf(nextFilter).filterWrite(with(clientSession), with(hasMessage(expectedRequest)));\n } });\n\n HttpRequestMessage httpRequest = new HttpRequestMessage();\n httpRequest.setVersion(HTTP_1_1);\n httpRequest.setMethod(POST);\n httpRequest.setRequestURI(URI.create(\"/kerberos5/;api/get-cookies?.kv=10.05\"));\n httpRequest.setHeader(\"Accept\", \"*/*\");\n httpRequest.setHeader(\"Accept-Language\", \"en-us\");\n httpRequest.setHeader(\"Content-Length\", \"3\");\n httpRequest.setHeader(\"Content-Type\", \"text/plain\");\n httpRequest.setHeader(\"Host\", \"gateway.kzng.net:8003\");\n httpRequest.setHeader(\"Referer\", \"http://gateway.kzng.net:8003/?.kr=xsa\");\n httpRequest.setHeader(\"User-Agent\", \"Shockwave Flash\");\n httpRequest.setHeader(\"X-Origin\", \"http://gateway.kzng.net:8000\");\n httpRequest.setHeader(\"x-flash-version\", \"9,0,124,0\");\n httpRequest.setContent(new HttpContentMessage(wrap(array), true));\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(true);\n filter.filterWrite(nextFilter, clientSession, new DefaultWriteRequest(httpRequest));\n\n context.assertIsSatisfied();\n }\n\n @Test\n public void shouldWriteGetRequestWithInsertedHeadersAndCookies() throws Exception {\n\n final HttpRequestMessage expectedRequest = new HttpRequestMessage();\n expectedRequest.setVersion(HTTP_1_1);\n expectedRequest.setMethod(GET);\n expectedRequest.setRequestURI(URI.create(\"/\"));\n expectedRequest.setHeader(\"Authorization\", \"restricted-usage\");\n expectedRequest.setContent(EMPTY);\n\n context.checking(new Expectations() { {\n oneOf(clientSession).setVersion(HTTP_1_1);\n oneOf(clientSession).setMethod(POST);\n oneOf(clientSession).setRequestURI(URI.create(\"/\"));\n oneOf(clientSession).setWriteHeader(\"Content-Type\", \"text/plain;charset=UTF-8\");\n oneOf(clientSession).setWriteHeader(\"X-Header\", \"value\");\n\n oneOf(nextFilter).filterWrite(with(clientSession), with(hasMessage(expectedRequest)));\n } });\n\n HttpRequestMessage httpRequest = new HttpRequestMessage();\n httpRequest.setVersion(HTTP_1_1);\n httpRequest.setMethod(GET);\n httpRequest.setRequestURI(URI.create(\"/\"));\n httpRequest.setHeader(\"Authorization\", \"restricted-usage\");\n httpRequest.setHeader(\"X-Header\", \"value\");\n httpRequest.setContent(EMPTY);\n\n HttpxeProtocolFilter filter = new HttpxeProtocolFilter(true);\n filter.filterWrite(nextFilter, clientSession, new DefaultWriteRequest(httpRequest));\n\n context.assertIsSatisfied();\n }\n\n}\n"},"repo_name":{"kind":"string","value":"cmebarrow/gateway"},"path":{"kind":"string","value":"transport/http/src/test/java/org/kaazing/gateway/transport/http/bridge/filter/HttpxeProtocolFilterTest.java"},"language":{"kind":"string","value":"Java"},"license":{"kind":"string","value":"apache-2.0"},"size":{"kind":"number","value":66272,"string":"66,272"}}},{"rowIdx":115086151,"cells":{"code":{"kind":"string","value":"/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\npackage org.apache.drill.exec.schema;\n\npublic class BackedRecord implements Record {\n DiffSchema schema;\n DataRecord record;\n\n public BackedRecord(DiffSchema schema, DataRecord record) {\n this.schema = schema;\n this.record = record;\n }\n\n public void setBackend(DiffSchema schema, DataRecord record) {\n this.record = record;\n this.schema = schema;\n }\n\n @Override\n public DiffSchema getSchemaChanges() {\n return schema;\n }\n\n @Override\n public Object getField(int fieldId) {\n return record.getData(fieldId);\n }\n}\n"},"repo_name":{"kind":"string","value":"pwong-mapr/incubator-drill"},"path":{"kind":"string","value":"exec/java-exec/src/main/java/org/apache/drill/exec/schema/BackedRecord.java"},"language":{"kind":"string","value":"Java"},"license":{"kind":"string","value":"apache-2.0"},"size":{"kind":"number","value":1390,"string":"1,390"}}},{"rowIdx":115086152,"cells":{"code":{"kind":"string","value":"/*\n * Copyright 2012-2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\npackage org.springframework.boot.test.mock.mockito;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.mockito.internal.util.MockUtil;\n\nimport org.springframework.boot.test.mock.mockito.example.SimpleExampleStringGenericService;\nimport org.springframework.context.annotation.Bean;\nimport org.springframework.context.annotation.Configuration;\nimport org.springframework.test.context.junit4.SpringRunner;\n\nimport static org.assertj.core.api.Assertions.assertThat;\n\n/**\n * Test {@link SpyBean} on a test class field can be used to inject a spy instance when\n * there are multiple candidates and one is chosen using the name attribute.\n *\n * @author Phillip Webb\n * @author Andy Wilkinson\n */\n@RunWith(SpringRunner.class)\npublic class SpyBeanWithNameOnTestFieldForMultipleExistingBeansTests {\n\n\t@SpyBean(name = \"two\")\n\tprivate SimpleExampleStringGenericService spy;\n\n\t@Test\n\tpublic void testSpying() throws Exception {\n\t\tassertThat(MockUtil.isSpy(this.spy)).isTrue();\n\t\tassertThat(MockUtil.getMockName(this.spy).toString()).isEqualTo(\"two\");\n\t}\n\n\t@Configuration\n\tstatic class Config {\n\n\t\t@Bean\n\t\tpublic SimpleExampleStringGenericService one() {\n\t\t\treturn new SimpleExampleStringGenericService(\"one\");\n\t\t}\n\n\t\t@Bean\n\t\tpublic SimpleExampleStringGenericService two() {\n\t\t\treturn new SimpleExampleStringGenericService(\"two\");\n\t\t}\n\n\t}\n\n}\n"},"repo_name":{"kind":"string","value":"jbovet/spring-boot"},"path":{"kind":"string","value":"spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/SpyBeanWithNameOnTestFieldForMultipleExistingBeansTests.java"},"language":{"kind":"string","value":"Java"},"license":{"kind":"string","value":"apache-2.0"},"size":{"kind":"number","value":1967,"string":"1,967"}}},{"rowIdx":115086153,"cells":{"code":{"kind":"string","value":"/*\nCopyright 2014 The Kubernetes Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\npackage cmd\n\nimport (\n\t\"bytes\"\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"os\"\n\t\"reflect\"\n\t\"strings\"\n\t\"testing\"\n\n\t\"github.com/spf13/cobra\"\n\n\t\"k8s.io/cli-runtime/pkg/genericclioptions\"\n\tcmdutil \"k8s.io/kubernetes/pkg/kubectl/cmd/util\"\n)\n\nfunc TestNormalizationFuncGlobalExistence(t *testing.T) {\n\t// This test can be safely deleted when we will not support multiple flag formats\n\troot := NewKubectlCommand(os.Stdin, os.Stdout, os.Stderr)\n\n\tif root.Parent() != nil {\n\t\tt.Fatal(\"We expect the root command to be returned\")\n\t}\n\tif root.GlobalNormalizationFunc() == nil {\n\t\tt.Fatal(\"We expect that root command has a global normalization function\")\n\t}\n\n\tif reflect.ValueOf(root.GlobalNormalizationFunc()).Pointer() != reflect.ValueOf(root.Flags().GetNormalizeFunc()).Pointer() {\n\t\tt.Fatal(\"root command seems to have a wrong normalization function\")\n\t}\n\n\tsub := root\n\tfor sub.HasSubCommands() {\n\t\tsub = sub.Commands()[0]\n\t}\n\n\t// In case of failure of this test check this PR: spf13/cobra#110\n\tif reflect.ValueOf(sub.Flags().GetNormalizeFunc()).Pointer() != reflect.ValueOf(root.Flags().GetNormalizeFunc()).Pointer() {\n\t\tt.Fatal(\"child and root commands should have the same normalization functions\")\n\t}\n}\n\nfunc Test_deprecatedAlias(t *testing.T) {\n\tvar correctCommandCalled bool\n\tmakeCobraCommand := func() *cobra.Command {\n\t\tcobraCmd := new(cobra.Command)\n\t\tcobraCmd.Use = \"print five lines\"\n\t\tcobraCmd.Run = func(*cobra.Command, []string) {\n\t\t\tcorrectCommandCalled = true\n\t\t}\n\t\treturn cobraCmd\n\t}\n\n\toriginal := makeCobraCommand()\n\talias := deprecatedAlias(\"echo\", makeCobraCommand())\n\n\tif len(alias.Deprecated) == 0 {\n\t\tt.Error(\"deprecatedAlias should always have a non-empty .Deprecated\")\n\t}\n\tif !strings.Contains(alias.Deprecated, \"print\") {\n\t\tt.Error(\"deprecatedAlias should give the name of the new function in its .Deprecated field\")\n\t}\n\tif !alias.Hidden {\n\t\tt.Error(\"deprecatedAlias should never have .Hidden == false (deprecated aliases should be hidden)\")\n\t}\n\n\tif alias.Name() != \"echo\" {\n\t\tt.Errorf(\"deprecatedAlias has name %q, expected %q\",\n\t\t\talias.Name(), \"echo\")\n\t}\n\tif original.Name() != \"print\" {\n\t\tt.Errorf(\"original command has name %q, expected %q\",\n\t\t\toriginal.Name(), \"print\")\n\t}\n\n\tbuffer := new(bytes.Buffer)\n\talias.SetOutput(buffer)\n\talias.Execute()\n\tstr := buffer.String()\n\tif !strings.Contains(str, \"deprecated\") || !strings.Contains(str, \"print\") {\n\t\tt.Errorf(\"deprecation warning %q does not include enough information\", str)\n\t}\n\n\t// It would be nice to test to see that original.Run == alias.Run\n\t// Unfortunately Golang does not allow comparing functions. I could do\n\t// this with reflect, but that's technically invoking undefined\n\t// behavior. Best we can do is make sure that the function is called.\n\tif !correctCommandCalled {\n\t\tt.Errorf(\"original function doesn't appear to have been called by alias\")\n\t}\n}\n\nfunc TestKubectlCommandHandlesPlugins(t *testing.T) {\n\ttests := []struct {\n\t\tname string\n\t\targs []string\n\t\texpectPlugin string\n\t\texpectPluginArgs []string\n\t\texpectError string\n\t}{\n\t\t{\n\t\t\tname: \"test that normal commands are able to be executed, when no plugin overshadows them\",\n\t\t\targs: []string{\"kubectl\", \"get\", \"foo\"},\n\t\t\texpectPlugin: \"\",\n\t\t\texpectPluginArgs: []string{},\n\t\t},\n\t\t{\n\t\t\tname: \"test that a plugin executable is found based on command args\",\n\t\t\targs: []string{\"kubectl\", \"foo\", \"--bar\"},\n\t\t\texpectPlugin: \"plugin/testdata/kubectl-foo\",\n\t\t\texpectPluginArgs: []string{\"foo\", \"--bar\"},\n\t\t},\n\t\t{\n\t\t\tname: \"test that a plugin does not execute over an existing command by the same name\",\n\t\t\targs: []string{\"kubectl\", \"version\"},\n\t\t},\n\t}\n\n\tfor _, test := range tests {\n\t\tt.Run(test.name, func(t *testing.T) {\n\t\t\tpluginsHandler := &testPluginHandler{\n\t\t\t\tpluginsDirectory: \"plugin/testdata\",\n\t\t\t}\n\t\t\t_, in, out, errOut := genericclioptions.NewTestIOStreams()\n\n\t\t\tcmdutil.BehaviorOnFatal(func(str string, code int) {\n\t\t\t\terrOut.Write([]byte(str))\n\t\t\t})\n\n\t\t\troot := NewDefaultKubectlCommandWithArgs(pluginsHandler, test.args, in, out, errOut)\n\t\t\tif err := root.Execute(); err != nil {\n\t\t\t\tt.Fatalf(\"unexpected error: %v\", err)\n\t\t\t}\n\n\t\t\tif pluginsHandler.err != nil && pluginsHandler.err.Error() != test.expectError {\n\t\t\t\tt.Fatalf(\"unexpected error: expected %q to occur, but got %q\", test.expectError, pluginsHandler.err)\n\t\t\t}\n\n\t\t\tif pluginsHandler.executedPlugin != test.expectPlugin {\n\t\t\t\tt.Fatalf(\"unexpected plugin execution: expedcted %q, got %q\", test.expectPlugin, pluginsHandler.executedPlugin)\n\t\t\t}\n\n\t\t\tif len(pluginsHandler.withArgs) != len(test.expectPluginArgs) {\n\t\t\t\tt.Fatalf(\"unexpected plugin execution args: expedcted %q, got %q\", test.expectPluginArgs, pluginsHandler.withArgs)\n\t\t\t}\n\t\t})\n\t}\n}\n\ntype testPluginHandler struct {\n\tpluginsDirectory string\n\n\t// execution results\n\texecutedPlugin string\n\twithArgs []string\n\twithEnv []string\n\n\terr error\n}\n\nfunc (h *testPluginHandler) Lookup(filename string) (string, bool) {\n\t// append supported plugin prefix to the filename\n\tfilename = fmt.Sprintf(\"%s-%s\", \"kubectl\", filename)\n\n\tdir, err := os.Stat(h.pluginsDirectory)\n\tif err != nil {\n\t\th.err = err\n\t\treturn \"\", false\n\t}\n\n\tif !dir.IsDir() {\n\t\th.err = fmt.Errorf(\"expected %q to be a directory\", h.pluginsDirectory)\n\t\treturn \"\", false\n\t}\n\n\tplugins, err := ioutil.ReadDir(h.pluginsDirectory)\n\tif err != nil {\n\t\th.err = err\n\t\treturn \"\", false\n\t}\n\n\tfor _, p := range plugins {\n\t\tif p.Name() == filename {\n\t\t\treturn fmt.Sprintf(\"%s/%s\", h.pluginsDirectory, p.Name()), true\n\t\t}\n\t}\n\n\th.err = fmt.Errorf(\"unable to find a plugin executable %q\", filename)\n\treturn \"\", false\n}\n\nfunc (h *testPluginHandler) Execute(executablePath string, cmdArgs, env []string) error {\n\th.executedPlugin = executablePath\n\th.withArgs = cmdArgs\n\th.withEnv = env\n\treturn nil\n}\n"},"repo_name":{"kind":"string","value":"Stackdriver/heapster"},"path":{"kind":"string","value":"vendor/k8s.io/kubernetes/pkg/kubectl/cmd/cmd_test.go"},"language":{"kind":"string","value":"GO"},"license":{"kind":"string","value":"apache-2.0"},"size":{"kind":"number","value":6357,"string":"6,357"}}},{"rowIdx":115086154,"cells":{"code":{"kind":"string","value":"@gmail.com\"\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along\n * with this program; if not, write to the Free Software Foundation, Inc.,\n * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.\n * http://www.gnu.org/copyleft/gpl.html\n *\n * @file\n */\n\n/**\n * @ingroup API\n */\nclass ApiQueryExtLinksUsage extends ApiQueryGeneratorBase {\n\n\tpublic function __construct( $query, $moduleName ) {\n\t\tparent::__construct( $query, $moduleName, 'eu' );\n\t}\n\n\tpublic function execute() {\n\t\t$this->run();\n\t}\n\n\tpublic function getCacheMode( $params ) {\n\t\treturn 'public';\n\t}\n\n\tpublic function executeGenerator( $resultPageSet ) {\n\t\t$this->run( $resultPageSet );\n\t}\n\n\t/**\n\t * @param $resultPageSet ApiPageSet\n\t * @return void\n\t */\n\tprivate function run( $resultPageSet = null ) {\n\t\t$params = $this->extractRequestParams();\n\n\t\t$query = $params['query'];\n\t\t$protocol = self::getProtocolPrefix( $params['protocol'] );\n\n\t\t$this->addTables( array( 'page', 'externallinks' ) ); // must be in this order for 'USE INDEX'\n\t\t$this->addOption( 'USE INDEX', 'el_index' );\n\t\t$this->addWhere( 'page_id=el_from' );\n\n\t\tglobal $wgMiserMode;\n\t\t$miser_ns = array();\n\t\tif ( $wgMiserMode ) {\n\t\t\t$miser_ns = $params['namespace'];\n\t\t} else {\n\t\t\t$this->addWhereFld( 'page_namespace', $params['namespace'] );\n\t\t}\n\n\t\t$whereQuery = $this->prepareUrlQuerySearchString( $query, $protocol );\n\n\t\tif ( $whereQuery !== null ) {\n\t\t\t$this->addWhere( $whereQuery );\n\t\t}\n\n\t\t$prop = array_flip( $params['prop'] );\n\t\t$fld_ids = isset( $prop['ids'] );\n\t\t$fld_title = isset( $prop['title'] );\n\t\t$fld_url = isset( $prop['url'] );\n\n\t\tif ( is_null( $resultPageSet ) ) {\n\t\t\t$this->addFields( array(\n\t\t\t\t'page_id',\n\t\t\t\t'page_namespace',\n\t\t\t\t'page_title'\n\t\t\t) );\n\t\t\t$this->addFieldsIf( 'el_to', $fld_url );\n\t\t} else {\n\t\t\t$this->addFields( $resultPageSet->getPageTableFields() );\n\t\t}\n\n\t\t$limit = $params['limit'];\n\t\t$offset = $params['offset'];\n\t\t$this->addOption( 'LIMIT', $limit + 1 );\n\t\tif ( isset( $offset ) ) {\n\t\t\t$this->addOption( 'OFFSET', $offset );\n\t\t}\n\n\t\t$res = $this->select( __METHOD__ );\n\n\t\t$result = $this->getResult();\n\t\t$count = 0;\n\t\tforeach ( $res as $row ) {\n\t\t\tif ( ++ $count > $limit ) {\n\t\t\t\t// We've reached the one extra which shows that there are additional pages to be had. Stop here...\n\t\t\t\t$this->setContinueEnumParameter( 'offset', $offset + $limit );\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif ( count( $miser_ns ) && !in_array( $row->page_namespace, $miser_ns ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif ( is_null( $resultPageSet ) ) {\n\t\t\t\t$vals = array();\n\t\t\t\tif ( $fld_ids ) {\n\t\t\t\t\t$vals['pageid'] = intval( $row->page_id );\n\t\t\t\t}\n\t\t\t\tif ( $fld_title ) {\n\t\t\t\t\t$title = Title::makeTitle( $row->page_namespace, $row->page_title );\n\t\t\t\t\tApiQueryBase::addTitleInfo( $vals, $title );\n\t\t\t\t}\n\t\t\t\tif ( $fld_url ) {\n\t\t\t\t\t$to = $row->el_to;\n\t\t\t\t\t// expand protocol-relative urls\n\t\t\t\t\tif ( $params['expandurl'] ) {\n\t\t\t\t\t\t$to = wfExpandUrl( $to, PROTO_CANONICAL );\n\t\t\t\t\t}\n\t\t\t\t\t$vals['url'] = $to;\n\t\t\t\t}\n\t\t\t\t$fit = $result->addValue( array( 'query', $this->getModuleName() ), null, $vals );\n\t\t\t\tif ( !$fit ) {\n\t\t\t\t\t$this->setContinueEnumParameter( 'offset', $offset + $count - 1 );\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$resultPageSet->processDbRow( $row );\n\t\t\t}\n\t\t}\n\n\t\tif ( is_null( $resultPageSet ) ) {\n\t\t\t$result->setIndexedTagName_internal( array( 'query', $this->getModuleName() ),\n\t\t\t\t\t$this->getModulePrefix() );\n\t\t}\n\t}\n\n\tpublic function getAllowedParams() {\n\t\treturn array(\n\t\t\t'prop' => array(\n\t\t\t\tApiBase::PARAM_ISMULTI => true,\n\t\t\t\tApiBase::PARAM_DFLT => 'ids|title|url',\n\t\t\t\tApiBase::PARAM_TYPE => array(\n\t\t\t\t\t'ids',\n\t\t\t\t\t'title',\n\t\t\t\t\t'url'\n\t\t\t\t)\n\t\t\t),\n\t\t\t'offset' => array(\n\t\t\t\tApiBase::PARAM_TYPE => 'integer'\n\t\t\t),\n\t\t\t'protocol' => array(\n\t\t\t\tApiBase::PARAM_TYPE => self::prepareProtocols(),\n\t\t\t\tApiBase::PARAM_DFLT => '',\n\t\t\t),\n\t\t\t'query' => null,\n\t\t\t'namespace' => array(\n\t\t\t\tApiBase::PARAM_ISMULTI => true,\n\t\t\t\tApiBase::PARAM_TYPE => 'namespace'\n\t\t\t),\n\t\t\t'limit' => array(\n\t\t\t\tApiBase::PARAM_DFLT => 10,\n\t\t\t\tApiBase::PARAM_TYPE => 'limit',\n\t\t\t\tApiBase::PARAM_MIN => 1,\n\t\t\t\tApiBase::PARAM_MAX => ApiBase::LIMIT_BIG1,\n\t\t\t\tApiBase::PARAM_MAX2 => ApiBase::LIMIT_BIG2\n\t\t\t),\n\t\t\t'expandurl' => false,\n\t\t);\n\t}\n\n\tpublic static function prepareProtocols() {\n\t\tglobal $wgUrlProtocols;\n\t\t$protocols = array( '' );\n\t\tforeach ( $wgUrlProtocols as $p ) {\n\t\t\tif ( $p !== '//' ) {\n\t\t\t\t$protocols[] = substr( $p, 0, strpos( $p, ':' ) );\n\t\t\t}\n\t\t}\n\t\treturn $protocols;\n\t}\n\n\tpublic static function getProtocolPrefix( $protocol ) {\n\t\t// Find the right prefix\n\t\tglobal $wgUrlProtocols;\n\t\tif ( $protocol && !in_array( $protocol, $wgUrlProtocols ) ) {\n\t\t\tforeach ( $wgUrlProtocols as $p ) {\n\t\t\t\tif ( substr( $p, 0, strlen( $protocol ) ) === $protocol ) {\n\t\t\t\t\t$protocol = $p;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $protocol;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}\n\n\tpublic function getParamDescription() {\n\t\tglobal $wgMiserMode;\n\t\t$p = $this->getModulePrefix();\n\t\t$desc = array(\n\t\t\t'prop' => array(\n\t\t\t\t'What pieces of information to include',\n\t\t\t\t' ids - Adds the ID of page',\n\t\t\t\t' title - Adds the title and namespace ID of the page',\n\t\t\t\t' url - Adds the URL used in the page',\n\t\t\t),\n\t\t\t'offset' => 'Used for paging. Use the value returned for \"continue\"',\n\t\t\t'protocol' => array(\n\t\t\t\t\"Protocol of the URL. If empty and {$p}query set, the protocol is http.\",\n\t\t\t\t\"Leave both this and {$p}query empty to list all external links\"\n\t\t\t),\n\t\t\t'query' => 'Search string without protocol. See [[Special:LinkSearch]]. Leave empty to list all external links',\n\t\t\t'namespace' => 'The page namespace(s) to enumerate.',\n\t\t\t'limit' => 'How many pages to return.',\n\t\t\t'expandurl' => 'Expand protocol-relative URLs with the canonical protocol',\n\t\t);\n\n\t\tif ( $wgMiserMode ) {\n\t\t\t$desc['namespace'] = array(\n\t\t\t\t$desc['namespace'],\n\t\t\t\t\"NOTE: Due to \\$wgMiserMode, using this may result in fewer than \\\"{$p}limit\\\" results\",\n\t\t\t\t'returned before continuing; in extreme cases, zero results may be returned',\n\t\t\t);\n\t\t}\n\n\t\treturn $desc;\n\t}\n\n\tpublic function getResultProperties() {\n\t\treturn array(\n\t\t\t'ids' => array(\n\t\t\t\t'pageid' => 'integer'\n\t\t\t),\n\t\t\t'title' => array(\n\t\t\t\t'ns' => 'namespace',\n\t\t\t\t'title' => 'string'\n\t\t\t),\n\t\t\t'url' => array(\n\t\t\t\t'url' => 'string'\n\t\t\t)\n\t\t);\n\t}\n\n\tpublic function getDescription() {\n\t\treturn 'Enumerate pages that contain a given URL';\n\t}\n\n\tpublic function getPossibleErrors() {\n\t\treturn array_merge( parent::getPossibleErrors(), array(\n\t\t\tarray( 'code' => 'bad_query', 'info' => 'Invalid query' ),\n\t\t) );\n\t}\n\n\tpublic function getExamples() {\n\t\treturn array(\n\t\t\t'api.php?action=query&list=exturlusage&euquery=www.mediawiki.org'\n\t\t);\n\t}\n\n\tpublic function getHelpUrls() {\n\t\treturn 'https://www.mediawiki.org/wiki/API:Exturlusage';\n\t}\n}\n"},"repo_name":{"kind":"string","value":"BRL-CAD/web"},"path":{"kind":"string","value":"wiki/includes/api/ApiQueryExtLinksUsage.php"},"language":{"kind":"string","value":"PHP"},"license":{"kind":"string","value":"bsd-2-clause"},"size":{"kind":"number","value":7300,"string":"7,300"}}},{"rowIdx":115086155,"cells":{"code":{"kind":"string","value":"/// Copyright (c) 2012 Ecma International. All rights reserved. \n/**\n * @path ch15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-93-1.js\n * @description Object.defineProperties will update [[Value]] attribute of named data property 'P' successfully when [[Configurable]] attribute is true and [[Writable]] attribute is false but not when both are false (8.12.9 - step Note & 10.a.ii.1)\n */\n\n\nfunction testcase() {\n\n var obj = {};\n\n Object.defineProperty(obj, \"property\", {\n value: 1001,\n writable: false,\n configurable: true\n });\n \n Object.defineProperty(obj, \"property1\", {\n value: 1003,\n writable: false,\n configurable: false\n });\n\n try {\n Object.defineProperties(obj, {\n property: {\n value: 1002\n },\n property1: {\n value: 1004\n }\n });\n\n return false;\n } catch (e) {\n return e instanceof TypeError &&\n dataPropertyAttributesAreCorrect(obj, \"property\", 1002, false, false, true) &&\n dataPropertyAttributesAreCorrect(obj, \"property1\", 1003, false, false, false);\n }\n }\nrunTestCase(testcase);\n"},"repo_name":{"kind":"string","value":"Oceanswave/NiL.JS"},"path":{"kind":"string","value":"Tests/tests/sputnik/ch15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-93-1.js"},"language":{"kind":"string","value":"JavaScript"},"license":{"kind":"string","value":"bsd-3-clause"},"size":{"kind":"number","value":1285,"string":"1,285"}}},{"rowIdx":115086156,"cells":{"code":{"kind":"string","value":"iced-runtime\n============\n\nRuntime for IcedCoffeeScript\n"},"repo_name":{"kind":"string","value":"keybase/node-client"},"path":{"kind":"string","value":"node_modules/spotty/node_modules/iced-runtime/README.md"},"language":{"kind":"string","value":"Markdown"},"license":{"kind":"string","value":"bsd-3-clause"},"size":{"kind":"number","value":56,"string":"56"}}},{"rowIdx":115086157,"cells":{"code":{"kind":"string","value":"// Copyright (c) 2011 The LevelDB Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file. See the AUTHORS file for names of contributors.\n//\n// Log format information shared by reader and writer.\n// See ../doc/log_format.txt for more detail.\n\n#ifndef STORAGE_LEVELDB_DB_LOG_FORMAT_H_\n#define STORAGE_LEVELDB_DB_LOG_FORMAT_H_\n\nnamespace leveldb {\nnamespace log {\n\nenum RecordType {\n // Zero is reserved for preallocated files\n kZeroType = 0,\n\n kFullType = 1,\n\n // For fragments\n kFirstType = 2,\n kMiddleType = 3,\n kLastType = 4\n};\nstatic const int kMaxRecordType = kLastType;\n\nstatic const int kBlockSize = 32768;\n\n// Header is checksum (4 bytes), type (1 byte), length (2 bytes).\nstatic const int kHeaderSize = 4 + 1 + 2;\n\n}\n}\n\n#endif // STORAGE_LEVELDB_DB_LOG_FORMAT_H_\n"},"repo_name":{"kind":"string","value":"Prcuvu/librime"},"path":{"kind":"string","value":"thirdparty/src/leveldb-windows/db/log_format.h"},"language":{"kind":"string","value":"C"},"license":{"kind":"string","value":"bsd-3-clause"},"size":{"kind":"number","value":857,"string":"857"}}},{"rowIdx":115086158,"cells":{"code":{"kind":"string","value":"/// Copyright (c) 2012 Ecma International. All rights reserved. \n/**\n * @path ch15/15.4/15.4.4/15.4.4.17/15.4.4.17-7-c-ii-10.js\n * @description Array.prototype.some - callbackfn is called with 1 formal parameter\n */\n\n\nfunction testcase() {\n\n function callbackfn(val) {\n return val > 10;\n }\n\n return [11, 12].some(callbackfn);\n }\nrunTestCase(testcase);\n"},"repo_name":{"kind":"string","value":"Oceanswave/NiL.JS"},"path":{"kind":"string","value":"Tests/tests/sputnik/ch15/15.4/15.4.4/15.4.4.17/15.4.4.17-7-c-ii-10.js"},"language":{"kind":"string","value":"JavaScript"},"license":{"kind":"string","value":"bsd-3-clause"},"size":{"kind":"number","value":388,"string":"388"}}},{"rowIdx":115086159,"cells":{"code":{"kind":"string","value":"/// Copyright (c) 2012 Ecma International. All rights reserved. \n/**\n * @path ch10/10.4/10.4.3/10.4.3-1-49gs.js\n * @description Strict - checking 'this' from a global scope (FunctionExpression with a strict directive prologue defined within a FunctionExpression)\n * @noStrict\n */\n\nvar f1 = function () {\n var f = function () {\n \"use strict\";\n return typeof this;\n }\n return (f()===\"undefined\") && (this===fnGlobalObject());\n}\nif (! f1()) {\n throw \"'this' had incorrect value!\";\n}"},"repo_name":{"kind":"string","value":"Oceanswave/NiL.JS"},"path":{"kind":"string","value":"Tests/tests/sputnik/ch10/10.4/10.4.3/10.4.3-1-49gs.js"},"language":{"kind":"string","value":"JavaScript"},"license":{"kind":"string","value":"bsd-3-clause"},"size":{"kind":"number","value":506,"string":"506"}}},{"rowIdx":115086160,"cells":{"code":{"kind":"string","value":"/// Copyright (c) 2012 Ecma International. All rights reserved. \n/**\n * @path ch15/15.4/15.4.4/15.4.4.19/15.4.4.19-8-b-16.js\n * @description Array.prototype.map - decreasing length of array does not delete non-configurable properties\n */\n\n\nfunction testcase() {\n function callbackfn(val, idx, obj) {\n if (idx === 2 && val === \"unconfigurable\") {\n return false;\n } else {\n return true;\n }\n }\n\n var arr = [0, 1, 2];\n\n Object.defineProperty(arr, \"2\", {\n get: function () {\n return \"unconfigurable\";\n },\n configurable: false\n });\n\n Object.defineProperty(arr, \"1\", {\n get: function () {\n arr.length = 2;\n return 1;\n },\n configurable: true\n });\n\n var testResult = arr.map(callbackfn);\n return testResult.length === 3 && testResult[2] === false;\n }\nrunTestCase(testcase);\n"},"repo_name":{"kind":"string","value":"Oceanswave/NiL.JS"},"path":{"kind":"string","value":"Tests/tests/sputnik/ch15/15.4/15.4.4/15.4.4.19/15.4.4.19-8-b-16.js"},"language":{"kind":"string","value":"JavaScript"},"license":{"kind":"string","value":"bsd-3-clause"},"size":{"kind":"number","value":1006,"string":"1,006"}}},{"rowIdx":115086161,"cells":{"code":{"kind":"string","value":"CREATE TABLE IF NOT EXISTS `faq_categories` (\n `id` int(11) NOT NULL auto_increment,\n `meta_id` int(11) NOT NULL,\n `extra_id` int(11) NOT NULL,\n `language` varchar(5) NOT NULL,\n `title` varchar(255) NOT NULL,\n `sequence` int(11) NOT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ;\n\n\nCREATE TABLE IF NOT EXISTS `faq_questions` (\n `id` int(11) NOT NULL auto_increment,\n `category_id` int(11) NOT NULL,\n `user_id` int(11) NOT NULL,\n `meta_id` int(11) NOT NULL,\n `language` varchar(5) collate utf8_unicode_ci NOT NULL,\n `question` varchar(255) collate utf8_unicode_ci NOT NULL,\n `answer` text collate utf8_unicode_ci NOT NULL,\n `created_on` datetime NOT NULL,\n `num_views` int(11) NOT NULL default '0',\n `num_usefull_yes` int(11) NOT NULL default '0',\n `num_usefull_no` int(11) NOT NULL default '0',\n `hidden` enum('N','Y') collate utf8_unicode_ci NOT NULL default 'N',\n `sequence` int(11) NOT NULL,\n PRIMARY KEY (`id`),\n KEY `fk_faq_questions_faq_categories` (`hidden`,`language`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ;\n\nCREATE TABLE `faq_feedback` (\n `id` int(11) unsigned NOT NULL auto_increment,\n `question_id` int(11) unsigned NOT NULL,\n `text` text NOT NULL,\n `processed` enum('N','Y') NOT NULL default 'N',\n `created_on` datetime NOT NULL,\n `edited_on` datetime NOT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;"},"repo_name":{"kind":"string","value":"Schetss/duomar"},"path":{"kind":"string","value":"src/Backend/Modules/Faq/Installer/Data/install.sql"},"language":{"kind":"string","value":"SQL"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":1463,"string":"1,463"}}},{"rowIdx":115086162,"cells":{"code":{"kind":"string","value":"/* j/e/rs.c\n**\n*/\n#include \"all.h\"\n#include \"softfloat.h\"\n\n#define SINGNAN 0x7fc00000\n\n union sing {\n float32_t s;\n c3_w c;\n };\n\n/* functions\n*/\n static inline c3_t\n _nan_test(float32_t a)\n {\n return !f32_eq(a, a);\n }\n\n static inline float32_t\n _nan_unify(float32_t a)\n {\n if ( _nan_test(a) )\n {\n *(c3_w*)(&a) = SINGNAN;\n }\n return a;\n }\n\n static inline void\n _set_rounding(c3_w a)\n {\n switch ( a )\n {\n default:\n u3m_bail(c3__fail);\n break;\n case c3__n:\n softfloat_roundingMode = softfloat_round_near_even;\n break;\n case c3__z:\n softfloat_roundingMode = softfloat_round_minMag;\n break;\n case c3__u:\n softfloat_roundingMode = softfloat_round_max;\n break;\n case c3__d:\n softfloat_roundingMode = softfloat_round_min;\n break;\n }\n }\n\n/* add\n*/\n u3_noun\n u3qet_add(u3_atom a,\n u3_atom b,\n u3_atom r)\n {\n union sing c, d, e;\n _set_rounding(r);\n c.c = u3r_word(0, a);\n d.c = u3r_word(0, b);\n e.s = _nan_unify(f32_add(c.s, d.s));\n\n return u3i_words(1, &e.c);\n }\n\n u3_noun\n u3wet_add(u3_noun cor)\n {\n u3_noun a, b;\n\n if ( c3n == u3r_mean(cor, u3x_sam_2, &a, u3x_sam_3, &b, 0) ||\n c3n == u3ud(a) ||\n c3n == u3ud(b) )\n {\n return u3m_bail(c3__exit);\n }\n else {\n return u3qet_add(a, b, u3x_at(30, cor));\n }\n }\n\n/* sub\n*/\n u3_noun\n u3qet_sub(u3_atom a,\n u3_atom b,\n u3_atom r)\n {\n union sing c, d, e;\n _set_rounding(r);\n c.c = u3r_word(0, a);\n d.c = u3r_word(0, b);\n e.s = _nan_unify(f32_sub(c.s, d.s));\n\n return u3i_words(1, &e.c);\n }\n\n u3_noun\n u3wet_sub(u3_noun cor)\n {\n u3_noun a, b;\n\n if ( c3n == u3r_mean(cor, u3x_sam_2, &a, u3x_sam_3, &b, 0) ||\n c3n == u3ud(a) ||\n c3n == u3ud(b) )\n {\n return u3m_bail(c3__exit);\n }\n else {\n return u3qet_sub(a, b, u3x_at(30, cor));\n }\n }\n\n/* mul\n*/\n u3_noun\n u3qet_mul(u3_atom a,\n u3_atom b,\n u3_atom r)\n {\n union sing c, d, e;\n _set_rounding(r);\n c.c = u3r_word(0, a);\n d.c = u3r_word(0, b);\n e.s = _nan_unify(f32_mul(c.s, d.s));\n\n return u3i_words(1, &e.c);\n }\n\n u3_noun\n u3wet_mul(u3_noun cor)\n {\n u3_noun a, b;\n\n if ( c3n == u3r_mean(cor, u3x_sam_2, &a, u3x_sam_3, &b, 0) ||\n c3n == u3ud(a) ||\n c3n == u3ud(b) )\n {\n return u3m_bail(c3__exit);\n }\n else {\n return u3qet_mul(a, b, u3x_at(30, cor));\n }\n }\n\n/* div\n*/\n u3_noun\n u3qet_div(u3_atom a, \n u3_atom b, \n u3_atom r)\n {\n union sing c, d, e;\n _set_rounding(r);\n c.c = u3r_word(0, a);\n d.c = u3r_word(0, b);\n e.s = _nan_unify(f32_div(c.s, d.s));\n\n return u3i_words(1, &e.c);\n }\n\n u3_noun\n u3wet_div(u3_noun cor)\n {\n u3_noun a, b;\n\n if ( c3n == u3r_mean(cor, u3x_sam_2, &a, u3x_sam_3, &b, 0) ||\n c3n == u3ud(a) ||\n c3n == u3ud(b) )\n {\n return u3m_bail(c3__exit);\n }\n else {\n return u3qet_div(a, b, u3x_at(30, cor));\n }\n }\n\n/* sqt\n*/\n u3_noun\n u3qet_sqt(u3_atom a, \n u3_atom r)\n {\n union sing c, d;\n _set_rounding(r);\n c.c = u3r_word(0, a);\n d.s = _nan_unify(f32_sqrt(c.s));\n\n return u3i_words(1, &d.c);\n }\n\n u3_noun\n u3wet_sqt(u3_noun cor)\n {\n u3_noun a;\n\n if ( c3n == (a = u3r_at(u3x_sam, cor)) ||\n c3n == u3ud(a) )\n {\n return u3m_bail(c3__exit);\n }\n else {\n return u3qet_sqt(a, u3x_at(30, cor));\n }\n }\n\n/* fma\n*/\n u3_noun\n u3qet_fma(u3_atom a,\n u3_atom b,\n u3_atom c,\n u3_atom r)\n {\n union sing d, e, f, g;\n _set_rounding(r);\n d.c = u3r_word(0, a);\n e.c = u3r_word(0, b);\n f.c = u3r_word(0, c);\n g.s = _nan_unify(f32_mulAdd(d.s, e.s, f.s));\n\n return u3i_words(1, &g.c);\n }\n\n u3_noun\n u3wet_fma(u3_noun cor)\n {\n u3_noun a, b, c;\n\n if ( c3n == u3r_mean(cor, u3x_sam_2, &a, u3x_sam_6, &b, u3x_sam_7, &c, 0) ||\n c3n == u3ud(a) ||\n c3n == u3ud(b) ||\n c3n == u3ud(c) )\n {\n return u3m_bail(c3__exit);\n }\n else {\n return u3qet_fma(a, b, c, u3x_at(30, cor));\n }\n }\n\n/* lth\n*/\n u3_noun\n u3qet_lth(u3_atom a,\n u3_atom b)\n {\n union sing c, d;\n c.c = u3r_word(0, a);\n d.c = u3r_word(0, b);\n\n return __(f32_lt(c.s, d.s));\n }\n\n u3_noun\n u3wet_lth(u3_noun cor)\n {\n u3_noun a, b;\n\n if ( c3n == u3r_mean(cor, u3x_sam_2, &a, u3x_sam_3, &b, 0) ||\n c3n == u3ud(a) ||\n c3n == u3ud(b) )\n {\n return u3m_bail(c3__exit);\n }\n else {\n return u3qet_lth(a, b);\n }\n }\n\n/* lte\n*/\n u3_noun\n u3qet_lte(u3_atom a,\n u3_atom b)\n {\n union sing c, d;\n c.c = u3r_word(0, a);\n d.c = u3r_word(0, b);\n\n return __(f32_le(c.s, d.s));\n }\n\n u3_noun\n u3wet_lte(u3_noun cor)\n {\n u3_noun a, b;\n\n if ( c3n == u3r_mean(cor, u3x_sam_2, &a, u3x_sam_3, &b, 0) ||\n c3n == u3ud(a) ||\n c3n == u3ud(b) )\n {\n return u3m_bail(c3__exit);\n }\n else {\n return u3qet_lte(a, b);\n }\n }\n\n/* equ\n*/\n u3_noun\n u3qet_equ(u3_atom a,\n u3_atom b)\n {\n union sing c, d;\n c.c = u3r_word(0, a);\n d.c = u3r_word(0, b);\n\n return __(f32_eq(c.s, d.s));\n }\n\n u3_noun\n u3wet_equ(u3_noun cor)\n {\n u3_noun a, b;\n\n if ( c3n == u3r_mean(cor, u3x_sam_2, &a, u3x_sam_3, &b, 0) ||\n c3n == u3ud(a) ||\n c3n == u3ud(b) )\n {\n return u3m_bail(c3__exit);\n }\n else {\n return u3qet_equ(a, b);\n }\n }\n\n/* gte\n*/\n u3_noun\n u3qet_gte(u3_atom a,\n u3_atom b)\n {\n union sing c, d;\n c.c = u3r_word(0, a);\n d.c = u3r_word(0, b);\n\n return __(f32_le(d.s, c.s));\n }\n\n u3_noun\n u3wet_gte(u3_noun cor)\n {\n u3_noun a, b;\n\n if ( c3n == u3r_mean(cor, u3x_sam_2, &a, u3x_sam_3, &b, 0) ||\n c3n == u3ud(a) ||\n c3n == u3ud(b) )\n {\n return u3m_bail(c3__exit);\n }\n else {\n return u3qet_gte(a, b);\n }\n }\n\n/* gth\n*/\n u3_noun\n u3qet_gth(u3_atom a,\n u3_atom b)\n {\n union sing c, d;\n c.c = u3r_word(0, a);\n d.c = u3r_word(0, b);\n\n return __(f32_lt(d.s, c.s));\n }\n\n u3_noun\n u3wet_gth(u3_noun cor)\n {\n u3_noun a, b;\n\n if ( c3n == u3r_mean(cor, u3x_sam_2, &a, u3x_sam_3, &b, 0) ||\n c3n == u3ud(a) ||\n c3n == u3ud(b) )\n {\n return u3m_bail(c3__exit);\n }\n else {\n return u3qet_gth(a, b);\n }\n }\n"},"repo_name":{"kind":"string","value":"dphiffer/urbit"},"path":{"kind":"string","value":"jets/e/rs.c"},"language":{"kind":"string","value":"C"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":6484,"string":"6,484"}}},{"rowIdx":115086163,"cells":{"code":{"kind":"string","value":"# GENERATED FROM XML -- DO NOT EDIT\n\nURI: mod_proxy_html.html.en\nContent-Language: en\nContent-type: text/html; charset=ISO-8859-1\n\nURI: mod_proxy_html.html.fr\nContent-Language: fr\nContent-type: text/html; charset=ISO-8859-1\n"},"repo_name":{"kind":"string","value":"Dokaponteam/ITF_Project"},"path":{"kind":"string","value":"xampp/apache/manual/mod/mod_proxy_html.html"},"language":{"kind":"string","value":"HTML"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":224,"string":"224"}}},{"rowIdx":115086164,"cells":{"code":{"kind":"string","value":"#Frequently asked questions\n\n##How do I manage libraries with Bower?\nInstall a new front-end library using `bower install --save` to update your `bower.json` file.\n\n```\n\nbower install --save lodash\n\n```\n\nThis way, when the Grunt [`bower-install`](https://github.com/stephenplusplus/grunt-bower-install#grunt-bower-install) task is run it will automatically inject your front-end dependencies inside the `bower:js` block of your `app/index.html`file.\n\n##Can I manually add libraries?\nOf course! If a library you wish to include is not registered with Bower or you wish to manually manage third party libraries, simply include any CSS and JavaScript files you need **inside** your `app/index.html` [usemin](https://github.com/yeoman/grunt-usemin#blocks) `build:js` or `build:css` blocks but **outside** the `bower:js` or `bower:css` blocks (since the Grunt task overwrites the Bower blocks' contents).\n\n##How do I use the Ripple Emulator?\n**Be Advised**: [Ripple](http://ripple.incubator.apache.org/) is under active development so expect support for some plugins to be missing or broken.\n\n\n\nAdd a platform target then run `grunt ripple` to launch the emulator in your browser.\n\n```\n\ngrunt platform:add:ios\n\ngrunt ripple\n\n```\n\n\n\nNow go edit a file and then refresh your browser to see your changes. (Currently experimenting with livereload for Ripple)\n\n\n\n**Note**: If you get errors beginning with `Error: static() root path required`, don't fret. Ripple defaults the UI to Android so just switch to an iOS device and you'll be good to go.\n\n\n\n![Ripple](http://i.imgur.com/LA4Hip1l.png)\n\n##Why is Cordova included and how do I use it?\nTo make our lives a bit simpler, the `cordova` library has been packaged as a part of this generator and delegated via Grunt tasks. To invoke Cordova, simply run the command you would normally have, but replace `cordova` with `grunt` and `spaces` with `:` (the way Grunt chains task arguments).\n\n\n\nFor example, lets say you want to add iOS as a platform target for your Ionic app\n\n```\n\ngrunt platform:add:ios\n\n```\n\nand emulate a platform target\n\n```\n\ngrunt emulate:ios\n\n```\n\nor add a plugin by specifying either its full repository URL or namespace from the [Plugins Registry](http://plugins.cordova.io)\n\n```\n\ngrunt plugin:add:https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git\n\ngrunt plugin:add:org.apache.cordova.device\n\ngrunt plugin:add:org.apache.cordova.network-information\n\n```\n\n##How do I build assets for Cordova?\nOnce you're ready to test your application in a simulator or device, run `grunt cordova` to copy all of your `app/` assets into `www/` and build updated `platform/` files so they are ready to be emulated / run by Cordova.\n\n\n\nTo compress and optimize your application, run `grunt build`. It will concatenate, obfuscate, and minify your JavaScript, HTML, and CSS files and copy over the resulting assets into the `www/` directory so the compressed version can be used with Cordova.\n\n##How do I configure my icons and splash screens?\nProperly configuring your app icons and splash screens to work with Cordova can be a pain to set up, so we've gone ahead and including an `after_prepare` hook that manages copying these resource files to the correct location within your current platform targets.\n\n\n\nTo get started, you must first add a platform via `grunt platform:add:ios`. Once you have a platform, the packaged `icons_and_splashscreens.js` hook will copy over all placeholder icons and splash screens generated by Cordova into a newly created top-level `resources/` directory inside of your project. Simply replace these files with your own resources (**but maintain file names and directory structure**) and let the hook's magic automatically manage copying them to the appropriate location for each Cordova platform, all without interrupting your existing workflow.\n\n\n\nTo learn more about hooks, checkout out the `README.md` file inside of your `hooks/` directory.\n\n##What are the benefits of local browser development?\nRunning `grunt serve` enhances your workflow by allowing you to rapidly build Ionic apps without having to constantly re-run your platform simulator. Since we spin up a `connect` server with `watch` and `livereload` tasks, you can freely edit your CSS (or SCSS/SASS files if you chose to use Compass), HTML, and JavaScript files and changes will be quickly reflected in your browser.\n\n##How do I add constants?\nTo set up your environment specific constants, modify the respective targets of the `ngconstant` task located towards the top of your Gruntfile.\n\n```\n\n ngconstant: {\n\n options: {\n\n space: ' ',\n\n wrap: '\"use strict\";\\n\\n {%= __ngModule %}',\n\n name: 'config',\n\n dest: '<%= yeoman.app %>/<%= yeoman.scripts %>/configuration.js'\n\n }, \n\n development: {\n\n constants: {\n\n ENV: {\n\n name: 'development',\n\n apiEndpoint: 'http://dev.your-site.com:10000/'\n\n } \n\n } \n\n }, \n\n production: {\n\n constants: {\n\n ENV: {\n\n name: 'production',\n\n apiEndpoint: 'http://api.your-site.com/'\n\n } \n\n } \n\n } \n\n }, \n\n```\n\n\n\nRunning `grunt serve` will cause the `development` target constants to be used. When you build your application for production using `grunt compress` or `grunt serve:compress`, the `production` constants will be used. Other targets, such as staging, can be added, but you will need to customize your Gruntfile accordingly. Note that if you change the `name` property of the task options, you will need to update your `app.js` module dependencies as well. If you want to compress and build and use `production` constants, you will need to first run `grunt compress` and then use ionic or cordova commands to build, for example: `ionic build ios`. \n\n##How is this used inside Angular?\nA `configuration.js` file is created by `grunt-ng-constant` depending on which task target is executed. This config file exposes a `config` module, that is listed as a dependency inside `app/scripts/app.js`. Out of the box, your constants will be namespaced under `ENV`, but this can be changed by modifying the `ngconstant` targets. It is important to note that whatever namespace value is chosen is what will need to be used for Dependency Injection inside your Angular functions.\n\n\n\nThe following example shows how to pre-process all outgoing HTTP request URLs with an environment specific API endpoint by creating a simple Angular `$http` interceptor.\n\n\n\n```\n\n// Custom Interceptor for replacing outgoing URLs \n\n.factory('httpEnvInterceptor', function (ENV) {\n\n return {\n\n 'request': function(config) {\n\n if (!_.contains(config.url, 'html')) {\n\n config.url = ENV.apiEndpoint + config.url;\n\n }\n\n return config;\n\n }\n\n }\n\n})\n\n\n\n.config(function($httpProvider) {\n\n // Pre-process outgoing request URLs\n\n $httpProvider.interceptors.push('httpEnvInterceptor');\n\n})\n\n```\n\n##What else does this generator do to help me?\nWhile building your Ionic app, you may find yourself working with multiple environments such as development, staging, and production. This generator uses [grunt-ng-constant] (https://github.com/werk85/grunt-ng-constant) to set up your workflow with development and production environment configurations right out of the box.\n"},"repo_name":{"kind":"string","value":"bopo/generator-ionic"},"path":{"kind":"string","value":"docs/FAQ.md"},"language":{"kind":"string","value":"Markdown"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":7354,"string":"7,354"}}},{"rowIdx":115086165,"cells":{"code":{"kind":"string","value":"mkdir -p $PREFIX/bin\n\n#Copying perl script to bin folder\ncp LINKS $PREFIX/bin\nchmod +x $PREFIX/bin/LINKS\n\n\n#Recompiling C code\ncd lib/bloomfilter/swig/\n\nPERL5DIR=`(perl -e 'use Config; print $Config{archlibexp}, \"\\n\";') 2>/dev/null`\nswig -Wall -c++ -perl5 BloomFilter.i\ng++ -c BloomFilter_wrap.cxx -I$PERL5DIR/CORE -fPIC -Dbool=char -O3\ng++ -Wall -shared BloomFilter_wrap.o -o BloomFilter.so -O3\n\n#Installing included perl module \nh2xs -n BloomFilter -O -F -'I ../../../'\ncd BloomFilter\nperl Makefile.PL\nmake\nmake install\n"},"repo_name":{"kind":"string","value":"dmaticzka/bioconda-recipes"},"path":{"kind":"string","value":"recipes/links/build.sh"},"language":{"kind":"string","value":"Shell"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":524,"string":"524"}}},{"rowIdx":115086166,"cells":{"code":{"kind":"string","value":"// Type definitions for riot v2.6.0\n// Project: https://github.com/riot/riot\n// Definitions by: Boriss Nazarovs \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n\ndeclare namespace riot {\n /**\n * Current version number as string\n */\n const version: string;\n\n /**\n * Riot settings\n */\n interface Settings {\n /**\n * Setting used to customize the start and end tokens of the expression\n */\n brackets: string;\n }\n\n const settings: Settings;\n\n interface TemplateError extends Error {\n riotData: {\n tagName: string;\n }\n }\n\n interface Util {\n tmpl: {\n errorHandler(error: TemplateError): void;\n }\n }\n\n const util: Util;\n\n /**\n * Internal riot tags cache\n */\n const vdom: Tag[];\n\n interface Observable {\n /**\n * Register callback for specified events.\n * Callback is executed each time event is triggered\n * @param events Space separated list of events or wildcard '*' that matches all events\n * @param callback Callback function\n */\n on?(events: string, callback: Function): Observable;\n\n /**\n * Register callback for specified events.\n * Callback is executed at most once.\n * @param events Space separated list of events.\n * @param callback Callback function\n */\n one?(events: string, callback: Function): Observable;\n\n /**\n * Remove all registered callbacks for specified events\n * @param events Space separated list of events or wildcard '*' that matches all events\n */\n off?(events: string): Observable;\n\n /**\n * Remove specified callback for specified events\n * @param events Space separated list of events or wildcard '*' that matches all events\n * @param callback Callback function to remove\n */\n off?(events: string, callback: Function): Observable;\n\n /**\n * Execute all callback functions registered for specified list of events\n * @param events Space separated list of events\n * @param args Arguments provided to callbacks\n */\n trigger?(events: string, ...args: any[]): Observable;\n }\n\n /**\n * Riot Router\n */\n interface Route {\n /**\n * Register callback that is executed when the URL changes\n * @param callback Callback function\n */\n (callback: (...args: any[]) => void): void;\n\n /**\n * Register callback that is executed when the URL changes and new URL matches specified filter\n * @param filter URL filter\n * @param callback Callback function\n */\n (filter: string, callback: (...any: string[]) => void): void;\n\n /**\n * Change the browser URL and notify all the listeners registered with `Route(callback)`\n * @param to New URL\n * @param title Document title for new URL\n * @param shouldReplace Should new url replace the current history\n */\n (to: string, title?: string, shouldReplace?: boolean): void;\n\n /**\n * Return a new routing context\n */\n create(): Route;\n\n /**\n * Start listening for url changes\n * @param autoExec Should router exec routing on the current url\n */\n start(autoExec?: boolean): void;\n\n /**\n * Stop all the routings.\n * Removes the listeners and clears the callbacks.\n */\n stop(): void;\n\n /**\n * Study the current browser path “in place” and emit routing without waiting for it to change.\n */\n exec(): void;\n\n /**\n * @deprecated\n */\n exec(callback: Function): void;\n\n /**\n * Extract query from the url\n */\n query(): { [key: string]: string };\n\n /**\n * Change the base path\n * @param base Base path\n */\n base(base: string): void;\n\n /**\n * Change the default parsers to the custom ones.\n * @param parser Replacement parser for default parser\n * @param secondParser Replacement parser for handling url filters\n */\n parser(parser: (path: string) => any[], secondParser?: (path: string, filter: string) => any[]): void;\n }\n\n /**\n * Adds Observer support for the given object or\n * if the argument is empty a new observable instance is created and returned.\n * @param el Object to become observable\n */\n function observable(el?: any): Observable;\n\n const route: Route;\n\n /**\n * Mount custom tags with specified tag name. Returns an array of mounted tag instances.\n * @param selector Tag selector.\n * It can be tag name, css selector or special '*' selector that matches all tags on the page.\n * @param opts Optional object passed for the tags to consume.\n */\n function mount(selector: string, opts?: any): Tag[];\n\n /**\n * Mount a custom tag on DOM nodes matching provided selector. Returns an array of mounted tag instances.\n * @param selector CSS selector\n * @param tagName Custom tag name\n * @param opts Optional object passed for the tag to consume.\n */\n function mount(selector: string, tagName: string, opts?: any): Tag[];\n\n /**\n * Mount a custom tag on a given DOM node. Returns an array of mounted tag instances.\n * @param domNode DOM node\n * @param tagName Tag name\n * @param opts Optional object passed for the tag to consume.\n */\n function mount(domNode: Node, tagName: string, opts?: any): Tag[];\n\n /**\n * Render a tag to html. This method is only available on server-side.\n * @param tagName Custom tag name\n * @param opts Optional object passed for the tag to consume.\n */\n function render(tagName: string, opts?: any): string;\n\n /**\n * Update all the mounted tags and their expressions on the page.\n * Returns an array of tag instances that are mounted on the page.\n */\n function update(): Tag[];\n\n /**\n * Register a global mixin and automatically add it to all tag instances.\n * @param mixinObject Mixin object\n */\n function mixin(mixinObject: TagMixin): void;\n\n /**\n * Register a shared mixin, globally available to be used in any tag using `TagInstance.mixin(mixinName)`\n * @param mixinName Name of the mixin\n * @param mixinObject Mixin object\n * @param isGlobal Is global mixin?\n */\n function mixin(mixinName: string, mixinObject: TagMixin, isGlobal?: boolean): void;\n\n /**\n * Create a new custom tag “manually” without the compiler. Returns name of the tag.\n * @param tagName The tag name\n * @param html The layout with expressions\n * @param css The style of the tag\n * @param attrs String of attributes for the tag\n * @param constructor The initialization function being called before\n * the tag expressions are calculated and before the tag is mounted\n */\n function tag(tagName: string, html: string, css?: string, attrs?: string, constructor?: (opts: any) => void): string;\n\n\n interface TagImplementation {\n /**\n * Tag template\n */\n tmpl: string;\n /**\n * The callback function called on the mount event\n * @param opts Tag options object\n */\n fn?(opts: any): void;\n /**\n * Root tag html attributes as object (key => value)\n */\n attrs?: {\n [key: string]: any;\n }\n }\n\n interface TagConfiguration {\n /**\n * DOM node where you will mount the tag template\n */\n root: Node;\n /**\n * Tag options\n */\n opts?: any;\n /**\n * Is it used in as loop tag\n */\n isLoop?: boolean;\n /**\n * Is already registered using `riot.tag`\n */\n hasImpl?: boolean;\n /**\n * Loop item in the loop assigned to this instance\n */\n item?: any;\n }\n\n interface TagInterface extends Observable {\n /**\n * options object\n */\n opts?: any;\n /**\n * the parent tag if any\n */\n parent?: Tag;\n /**\n * root DOM node\n */\n root?: Node;\n /**\n * nested custom tags\n */\n tags?: {\n [key: string]: Tag | Tag[];\n };\n\n /**\n * Updates all the expressions on the current tag instance as well as on all the children.\n * @param data Context data\n */\n update?(data?: any): void;\n\n /**\n * Extend tag with functionality available on shared mixin registered with `riot.mixin(mixinName, mixinObject)`\n * @param mixinName Name of shared mixin\n */\n mixin?(mixinName: string): void;\n\n /**\n * Extend tag functionality with functionality available on provided mixin object.\n * @param mixinObject Mixin object\n */\n mixin?(mixinObject: TagMixin): void;\n\n /**\n * Mount the tag\n */\n mount?(): void;\n\n /**\n * Detach the tag and its children from the page.\n * @param keepTheParent If `true` unmounting tag doesn't remove the parent tag\n */\n unmount?(keepTheParent?: boolean): void;\n }\n\n\n class Tag implements TagInterface {\n /**\n * Tag constructor\n * @param impl Tag implementation\n * @param conf Tag configuration\n * @param innerHTML HTML that can be used replacing a nested `yield` tag in its template\n */\n constructor(impl: TagImplementation, conf: TagConfiguration, innerHTML?: string);\n\n /**\n * options object\n */\n opts: any;\n /**\n * the parent tag if any\n */\n parent: Tag;\n /**\n * root DOM node\n */\n root: Node;\n /**\n * nested custom tags\n */\n tags: {\n [key: string]: Tag | Tag[];\n };\n\n /**\n * Updates all the expressions on the current tag instance as well as on all the children.\n * @param data Context data\n */\n update(data?: any): void;\n\n /**\n * Extend tag with functionality available on shared mixin registered with `riot.mixin(mixinName, mixinObject)`\n * @param mixinName Name of shared mixin\n */\n mixin(mixinName: string): void;\n\n /**\n * Extend tag functionality with functionality available on provided mixin object.\n * @param mixinObject Mixin object\n */\n mixin(mixinObject: TagMixin): void;\n\n /**\n * Mount the tag\n */\n mount(): void;\n\n /**\n * Detach the tag and its children from the page.\n * @param keepTheParent If `true` unmounting tag doesn't remove the parent tag\n */\n unmount(keepTheParent?: boolean): void;\n\n // Observable methods\n on(events: string, callback: Function): this;\n one(events: string, callback: Function): this;\n off(events: string): this;\n off(events: string, callback: Function): this;\n trigger(events: string, ...args: any[]): this;\n }\n\n /**\n * Mixin object for extending tag functionality.\n * When it gets mixed in it has access to all tag properties.\n * It should not override any built in tag properties\n */\n interface TagMixin extends TagInterface {\n /**\n * Special method which can initialize\n * the mixin when it's loaded to the tag and is not\n * accessible from the tag its mixed in\n */\n init?(): void;\n }\n\n /**\n * Compile all tags defined with \";\n }\n\n public static function parse($value, $variable = false) {\n if ($value instanceof Less_Tree_Color) {\n if ($value->isTransparentKeyword) {\n return false;\n }\n $cv = new ColorValue($variable);\n $cv->setRed($value->rgb[0]);\n $cv->setGreen($value->rgb[1]);\n $cv->setBlue($value->rgb[2]);\n } else if ($value instanceof Less_Tree_Call) {\n // might be rgb() or rgba()\n $cv = new ColorValue($variable);\n $cv->setRed($value->args[0]->value[0]->value);\n $cv->setGreen($value->args[1]->value[0]->value);\n $cv->setBlue($value->args[2]->value[0]->value);\n if ($value->name == 'rgba') {\n $cv->setAlpha($value->args[3]->value[0]->value);\n }\n }\n\n return $cv;\n }\n\n public function getValueFromRequest(\\Symfony\\Component\\HttpFoundation\\ParameterBag $request)\n {\n $color = $request->get($this->getVariable());\n if (!$color['color']) { // transparent\n return false;\n }\n $cv = new \\Primal\\Color\\Parser($color['color']);\n $result = $cv->getResult();\n $alpha = false;\n if ($result->alpha && $result->alpha < 1) {\n $alpha = $result->alpha;\n }\n $cv = new ColorValue($this->getVariable());\n $cv->setRed($result->red);\n $cv->setGreen($result->green);\n $cv->setBlue($result->blue);\n $cv->setAlpha($alpha);\n return $cv;\n }\n\n public function getValuesFromVariables($rules = array()) {\n $values = array();\n foreach($rules as $rule) {\n if (preg_match('/@(.+)\\-color/i', $rule->name, $matches)) {\n $value = $rule->value->value[0]->value[0];\n $cv = static::parse($value, $matches[1]);\n if (is_object($cv)) {\n $values[] = $cv;\n }\n }\n }\n return $values;\n }\n\n}"},"repo_name":{"kind":"string","value":"LinkedOpenData/challenge2015"},"path":{"kind":"string","value":"docs/concrete5/updates/concrete5.7.5.1_remote_updater/concrete/src/StyleCustomizer/Style/ColorStyle.php"},"language":{"kind":"string","value":"PHP"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":3566,"string":"3,566"}}},{"rowIdx":115086168,"cells":{"code":{"kind":"string","value":"#\n# Copyright (C) 2007-2011 OpenWrt.org\n# Copyright (c) 2009-2014 Thorsten Glaser \n#\n# This is free software, licensed under the GNU General Public License v2.\n# See /LICENSE for more information.\n#\n\ninclude $(TOPDIR)/rules.mk\n\nPKG_NAME:=mksh\nPKG_VERSION:=52c\nPKG_RELEASE:=1\n\nPKG_MAINTAINER:=Thorsten Glaser \nPKG_LICENSE:=MirOS\n\nPKG_SOURCE:=$(PKG_NAME)-R$(PKG_VERSION).tgz\nPKG_SOURCE_URL:=http://www.mirbsd.org/MirOS/dist/mir/mksh\nPKG_MD5SUM:=cc3884e02314447e7b4a3073b8d65d1e\n\nPKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)\n\ninclude $(INCLUDE_DIR)/package.mk\n\ndefine Package/mksh\n SECTION:=shells\n CATEGORY:=Base system\n TITLE:=MirBSD Korn Shell\n DEPENDS:=$(DEP)\n URL:=http://mirbsd.de/mksh\nendef\n\ndefine Package/mksh/description\nmksh is the MirBSD enhanced version of the Public Domain Korn\nshell (pdksh), a Bourne-compatible shell which is largely si-\nmilar to the original AT&T Korn shell; mksh is the only pdksh\nderivate currently being actively developed. It includes bug\nfixes and feature improvements, in order to produce a modern,\nrobust shell good for interactive and especially script use.\nmksh has UTF-8 support (in substring operations and the Emacs\nediting mode) and - while R50 corresponds to OpenBSD 5.5-cur-\nrent ksh (without GNU bash-like PS1 and fancy character clas-\nses) - adheres to SUSv4 and is much more robust. The code has\nbeen cleaned up and simplified, bugs fixed, standards compli-\nance added, and several enhancements (for extended compatibi-\nlity to other modern shells - as well as a couple of its own)\nare available. It has sensible defaults as usual with BSD.\nendef\n\ndefine Build/Compile\n\t# -DMKSH_SMALL=1 ⇒ reduce functionality quite a lot\n\t# -DMKSH_ASSUME_UTF8=0 ⇒ never automatically enable\n\t#\tUTF-8 mode, neither use setlocale/nl_langinfo\n\t#\tnor look at $LC_* and $LANG (not recommended)\n\t# -DMKSH_BINSHPOSIX ⇒ enable POSIX mode if called as sh\n\t#XXX maybe change to -DMKSH_ASSUME_UTF8=1 now (which\n\t#XXX is always assume UTF-8 mode)\n\t# HAVE_CAN_FSTACKPROTECTORALL=0 ⇒ nuke libssp dependency\n\t# HAVE_CAN_FSTACKPROTECTORSTRONG=0 ⇒ same, for gcc 4.9+\n\tcd $(PKG_BUILD_DIR); \\\n\t\tCC=\"$(TARGET_CC)\" \\\n\t\tTARGET_OS=\"$(shell uname -s)\" \\\n\t\tCFLAGS=\"$(TARGET_CFLAGS)\" \\\n\t\tCPPFLAGS=\"-DMKSH_SMALL=1 -DMKSH_ASSUME_UTF8=0 -DMKSH_BINSHPOSIX\" \\\n\t\tHAVE_CAN_FSTACKPROTECTORALL=0 \\\n\t\tHAVE_CAN_FSTACKPROTECTORSTRONG=0 \\\n\t\tLDFLAGS=\"$(TARGET_LDFLAGS)\" \\\n\t\t\t$(BASH) Build.sh -Q -r -c lto\nendef\n\ndefine Package/mksh/postinst\n#!/bin/sh\ngrep mksh $${IPKG_INSTROOT}/etc/shells || \\\n\techo \"/bin/mksh\" >> $${IPKG_INSTROOT}/etc/shells\nendef\n\ndefine Package/mksh/install\n\t$(INSTALL_DIR) $(1)/etc\n\t$(INSTALL_DATA) $(PKG_BUILD_DIR)/dot.mkshrc $(1)/etc/mkshrc\n\t$(INSTALL_DIR) $(1)/bin\n\t$(INSTALL_BIN) $(PKG_BUILD_DIR)/mksh $(1)/bin/\nendef\n\ndefine Package/mksh/conffiles\n/etc/mkshrc\nendef\n\n$(eval $(call BuildPackage,mksh))\n"},"repo_name":{"kind":"string","value":"KurdyMalloy/packages"},"path":{"kind":"string","value":"utils/mksh/Makefile"},"language":{"kind":"string","value":"Makefile"},"license":{"kind":"string","value":"gpl-2.0"},"size":{"kind":"number","value":2864,"string":"2,864"}}},{"rowIdx":115086169,"cells":{"code":{"kind":"string","value":"/*\n * linux/drivers/char/tty_ioctl.c\n *\n * Copyright (C) 1991, 1992, 1993, 1994 Linus Torvalds\n *\n * Modified by Fred N. van Kempen, 01/29/93, to add line disciplines\n * which can be dynamically activated and de-activated by the line\n * discipline handling modules (like SLIP).\n */\n\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\n#include \n#include \n#include \n\n#undef TTY_DEBUG_WAIT_UNTIL_SENT\n\n#undef\tDEBUG\n\n/*\n * Internal flag options for termios setting behavior\n */\n#define TERMIOS_FLUSH\t1\n#define TERMIOS_WAIT\t2\n#define TERMIOS_TERMIO\t4\n#define TERMIOS_OLD\t8\n\n\n/**\n *\ttty_wait_until_sent\t-\twait for I/O to finish\n *\t@tty: tty we are waiting for\n *\t@timeout: how long we will wait\n *\n *\tWait for characters pending in a tty driver to hit the wire, or\n *\tfor a timeout to occur (eg due to flow control)\n *\n *\tLocking: none\n */\n\nvoid tty_wait_until_sent(struct tty_struct *tty, long timeout)\n{\n#ifdef TTY_DEBUG_WAIT_UNTIL_SENT\n\tchar buf[64];\n\n\tprintk(KERN_DEBUG \"%s wait until sent...\\n\", tty_name(tty, buf));\n#endif\n\tif (!tty->driver->chars_in_buffer)\n\t\treturn;\n\tif (!timeout)\n\t\ttimeout = MAX_SCHEDULE_TIMEOUT;\n\tif (wait_event_interruptible_timeout(tty->write_wait,\n\t\t\t!tty->driver->chars_in_buffer(tty), timeout) < 0)\n\t\treturn;\n\tif (tty->driver->wait_until_sent)\n\t\ttty->driver->wait_until_sent(tty, timeout);\n}\nEXPORT_SYMBOL(tty_wait_until_sent);\n\nstatic void unset_locked_termios(struct ktermios *termios,\n\t\t\t\t struct ktermios *old,\n\t\t\t\t struct ktermios *locked)\n{\n\tint\ti;\n\n#define NOSET_MASK(x, y, z) (x = ((x) & ~(z)) | ((y) & (z)))\n\n\tif (!locked) {\n\t\tprintk(KERN_WARNING \"Warning?!? termios_locked is NULL.\\n\");\n\t\treturn;\n\t}\n\n\tNOSET_MASK(termios->c_iflag, old->c_iflag, locked->c_iflag);\n\tNOSET_MASK(termios->c_oflag, old->c_oflag, locked->c_oflag);\n\tNOSET_MASK(termios->c_cflag, old->c_cflag, locked->c_cflag);\n\tNOSET_MASK(termios->c_lflag, old->c_lflag, locked->c_lflag);\n\ttermios->c_line = locked->c_line ? old->c_line : termios->c_line;\n\tfor (i = 0; i < NCCS; i++)\n\t\ttermios->c_cc[i] = locked->c_cc[i] ?\n\t\t\told->c_cc[i] : termios->c_cc[i];\n\t/* FIXME: What should we do for i/ospeed */\n}\n\n/*\n * Routine which returns the baud rate of the tty\n *\n * Note that the baud_table needs to be kept in sync with the\n * include/asm/termbits.h file.\n */\nstatic const speed_t baud_table[] = {\n\t0, 50, 75, 110, 134, 150, 200, 300, 600, 1200, 1800, 2400, 4800,\n\t9600, 19200, 38400, 57600, 115200, 230400, 460800,\n#ifdef __sparc__\n\t76800, 153600, 307200, 614400, 921600\n#else\n\t500000, 576000, 921600, 1000000, 1152000, 1500000, 2000000,\n\t2500000, 3000000, 3500000, 4000000\n#endif\n};\n\n#ifndef __sparc__\nstatic const tcflag_t baud_bits[] = {\n\tB0, B50, B75, B110, B134, B150, B200, B300, B600,\n\tB1200, B1800, B2400, B4800, B9600, B19200, B38400,\n\tB57600, B115200, B230400, B460800, B500000, B576000,\n\tB921600, B1000000, B1152000, B1500000, B2000000, B2500000,\n\tB3000000, B3500000, B4000000\n};\n#else\nstatic const tcflag_t baud_bits[] = {\n\tB0, B50, B75, B110, B134, B150, B200, B300, B600,\n\tB1200, B1800, B2400, B4800, B9600, B19200, B38400,\n\tB57600, B115200, B230400, B460800, B76800, B153600,\n\tB307200, B614400, B921600\n};\n#endif\n\nstatic int n_baud_table = ARRAY_SIZE(baud_table);\n\n/**\n *\ttty_termios_baud_rate\n *\t@termios: termios structure\n *\n *\tConvert termios baud rate data into a speed. This should be called\n *\twith the termios lock held if this termios is a terminal termios\n *\tstructure. May change the termios data. Device drivers can call this\n *\tfunction but should use ->c_[io]speed directly as they are updated.\n *\n *\tLocking: none\n */\n\nspeed_t tty_termios_baud_rate(struct ktermios *termios)\n{\n\tunsigned int cbaud;\n\n\tcbaud = termios->c_cflag & CBAUD;\n\n#ifdef BOTHER\n\t/* Magic token for arbitary speed via c_ispeed/c_ospeed */\n\tif (cbaud == BOTHER)\n\t\treturn termios->c_ospeed;\n#endif\n\tif (cbaud & CBAUDEX) {\n\t\tcbaud &= ~CBAUDEX;\n\n\t\tif (cbaud < 1 || cbaud + 15 > n_baud_table)\n\t\t\ttermios->c_cflag &= ~CBAUDEX;\n\t\telse\n\t\t\tcbaud += 15;\n\t}\n\treturn baud_table[cbaud];\n}\nEXPORT_SYMBOL(tty_termios_baud_rate);\n\n/**\n *\ttty_termios_input_baud_rate\n *\t@termios: termios structure\n *\n *\tConvert termios baud rate data into a speed. This should be called\n *\twith the termios lock held if this termios is a terminal termios\n *\tstructure. May change the termios data. Device drivers can call this\n *\tfunction but should use ->c_[io]speed directly as they are updated.\n *\n *\tLocking: none\n */\n\nspeed_t tty_termios_input_baud_rate(struct ktermios *termios)\n{\n#ifdef IBSHIFT\n\tunsigned int cbaud = (termios->c_cflag >> IBSHIFT) & CBAUD;\n\n\tif (cbaud == B0)\n\t\treturn tty_termios_baud_rate(termios);\n\n\t/* Magic token for arbitary speed via c_ispeed*/\n\tif (cbaud == BOTHER)\n\t\treturn termios->c_ispeed;\n\n\tif (cbaud & CBAUDEX) {\n\t\tcbaud &= ~CBAUDEX;\n\n\t\tif (cbaud < 1 || cbaud + 15 > n_baud_table)\n\t\t\ttermios->c_cflag &= ~(CBAUDEX << IBSHIFT);\n\t\telse\n\t\t\tcbaud += 15;\n\t}\n\treturn baud_table[cbaud];\n#else\n\treturn tty_termios_baud_rate(termios);\n#endif\n}\nEXPORT_SYMBOL(tty_termios_input_baud_rate);\n\n/**\n *\ttty_termios_encode_baud_rate\n *\t@termios: ktermios structure holding user requested state\n *\t@ispeed: input speed\n *\t@ospeed: output speed\n *\n *\tEncode the speeds set into the passed termios structure. This is\n *\tused as a library helper for drivers os that they can report back\n *\tthe actual speed selected when it differs from the speed requested\n *\n *\tFor maximal back compatibility with legacy SYS5/POSIX *nix behaviour\n *\twe need to carefully set the bits when the user does not get the\n *\tdesired speed. We allow small margins and preserve as much of possible\n *\tof the input intent to keep compatiblity.\n *\n *\tLocking: Caller should hold termios lock. This is already held\n *\twhen calling this function from the driver termios handler.\n *\n *\tThe ifdefs deal with platforms whose owners have yet to update them\n *\tand will all go away once this is done.\n */\n\nvoid tty_termios_encode_baud_rate(struct ktermios *termios,\n\t\t\t\t speed_t ibaud, speed_t obaud)\n{\n\tint i = 0;\n\tint ifound = -1, ofound = -1;\n\tint iclose = ibaud/50, oclose = obaud/50;\n\tint ibinput = 0;\n\n\tif (obaud == 0)\t\t\t/* CD dropped \t\t */\n\t\tibaud = 0;\t\t/* Clear ibaud to be sure */\n\n\ttermios->c_ispeed = ibaud;\n\ttermios->c_ospeed = obaud;\n\n#ifdef BOTHER\n\t/* If the user asked for a precise weird speed give a precise weird\n\t answer. If they asked for a Bfoo speed they many have problems\n\t digesting non-exact replies so fuzz a bit */\n\n\tif ((termios->c_cflag & CBAUD) == BOTHER)\n\t\toclose = 0;\n\tif (((termios->c_cflag >> IBSHIFT) & CBAUD) == BOTHER)\n\t\ticlose = 0;\n\tif ((termios->c_cflag >> IBSHIFT) & CBAUD)\n\t\tibinput = 1;\t/* An input speed was specified */\n#endif\n\ttermios->c_cflag &= ~CBAUD;\n\n\t/*\n\t *\tOur goal is to find a close match to the standard baud rate\n\t *\treturned. Walk the baud rate table and if we get a very close\n\t *\tmatch then report back the speed as a POSIX Bxxxx value by\n\t *\tpreference\n\t */\n\n\tdo {\n\t\tif (obaud - oclose <= baud_table[i] &&\n\t\t obaud + oclose >= baud_table[i]) {\n\t\t\ttermios->c_cflag |= baud_bits[i];\n\t\t\tofound = i;\n\t\t}\n\t\tif (ibaud - iclose <= baud_table[i] &&\n\t\t ibaud + iclose >= baud_table[i]) {\n\t\t\t/* For the case input == output don't set IBAUD bits\n\t\t\t if the user didn't do so */\n\t\t\tif (ofound == i && !ibinput)\n\t\t\t\tifound = i;\n#ifdef IBSHIFT\n\t\t\telse {\n\t\t\t\tifound = i;\n\t\t\t\ttermios->c_cflag |= (baud_bits[i] << IBSHIFT);\n\t\t\t}\n#endif\n\t\t}\n\t} while (++i < n_baud_table);\n\n\t/*\n\t *\tIf we found no match then use BOTHER if provided or warn\n\t *\tthe user their platform maintainer needs to wake up if not.\n\t */\n#ifdef BOTHER\n\tif (ofound == -1)\n\t\ttermios->c_cflag |= BOTHER;\n\t/* Set exact input bits only if the input and output differ or the\n\t user already did */\n\tif (ifound == -1 && (ibaud != obaud || ibinput))\n\t\ttermios->c_cflag |= (BOTHER << IBSHIFT);\n#else\n\tif (ifound == -1 || ofound == -1) {\n\t\tstatic int warned;\n\t\tif (!warned++)\n\t\t\tprintk(KERN_WARNING \"tty: Unable to return correct \"\n\t\t\t \"speed data as your architecture needs updating.\\n\");\n\t}\n#endif\n}\nEXPORT_SYMBOL_GPL(tty_termios_encode_baud_rate);\n\nvoid tty_encode_baud_rate(struct tty_struct *tty, speed_t ibaud, speed_t obaud)\n{\n\ttty_termios_encode_baud_rate(tty->termios, ibaud, obaud);\n}\nEXPORT_SYMBOL_GPL(tty_encode_baud_rate);\n\n/**\n *\ttty_get_baud_rate\t-\tget tty bit rates\n *\t@tty: tty to query\n *\n *\tReturns the baud rate as an integer for this terminal. The\n *\ttermios lock must be held by the caller and the terminal bit\n *\tflags may be updated.\n *\n *\tLocking: none\n */\n\nspeed_t tty_get_baud_rate(struct tty_struct *tty)\n{\n\tspeed_t baud = tty_termios_baud_rate(tty->termios);\n\n\tif (baud == 38400 && tty->alt_speed) {\n\t\tif (!tty->warned) {\n\t\t\tprintk(KERN_WARNING \"Use of setserial/setrocket to \"\n\t\t\t\t\t \"set SPD_* flags is deprecated\\n\");\n\t\t\ttty->warned = 1;\n\t\t}\n\t\tbaud = tty->alt_speed;\n\t}\n\n\treturn baud;\n}\nEXPORT_SYMBOL(tty_get_baud_rate);\n\n/**\n *\ttty_termios_copy_hw\t-\tcopy hardware settings\n *\t@new: New termios\n *\t@old: Old termios\n *\n *\tPropogate the hardware specific terminal setting bits from\n *\tthe old termios structure to the new one. This is used in cases\n *\twhere the hardware does not support reconfiguration or as a helper\n *\tin some cases where only minimal reconfiguration is supported\n */\n\nvoid tty_termios_copy_hw(struct ktermios *new, struct ktermios *old)\n{\n\t/* The bits a dumb device handles in software. Smart devices need\n\t to always provide a set_termios method */\n\tnew->c_cflag &= HUPCL | CREAD | CLOCAL;\n\tnew->c_cflag |= old->c_cflag & ~(HUPCL | CREAD | CLOCAL);\n\tnew->c_ispeed = old->c_ispeed;\n\tnew->c_ospeed = old->c_ospeed;\n}\nEXPORT_SYMBOL(tty_termios_copy_hw);\n\n/**\n *\ttty_termios_hw_change\t-\tcheck for setting change\n *\t@a: termios\n *\t@b: termios to compare\n *\n *\tCheck if any of the bits that affect a dumb device have changed\n *\tbetween the two termios structures, or a speed change is needed.\n */\n\nint tty_termios_hw_change(struct ktermios *a, struct ktermios *b)\n{\n\tif (a->c_ispeed != b->c_ispeed || a->c_ospeed != b->c_ospeed)\n\t\treturn 1;\n\tif ((a->c_cflag ^ b->c_cflag) & ~(HUPCL | CREAD | CLOCAL))\n\t\treturn 1;\n\treturn 0;\n}\nEXPORT_SYMBOL(tty_termios_hw_change);\n\n/**\n *\tchange_termios\t\t-\tupdate termios values\n *\t@tty: tty to update\n *\t@new_termios: desired new value\n *\n *\tPerform updates to the termios values set on this terminal. There\n *\tis a bit of layering violation here with n_tty in terms of the\n *\tinternal knowledge of this function.\n *\n *\tLocking: termios_sem\n */\n\nstatic void change_termios(struct tty_struct *tty, struct ktermios *new_termios)\n{\n\tint canon_change;\n\tstruct ktermios old_termios = *tty->termios;\n\tstruct tty_ldisc *ld;\n\n\t/*\n\t *\tPerform the actual termios internal changes under lock.\n\t */\n\n\n\t/* FIXME: we need to decide on some locking/ordering semantics\n\t for the set_termios notification eventually */\n\tmutex_lock(&tty->termios_mutex);\n\n\t*tty->termios = *new_termios;\n\tunset_locked_termios(tty->termios, &old_termios, tty->termios_locked);\n\tcanon_change = (old_termios.c_lflag ^ tty->termios->c_lflag) & ICANON;\n\tif (canon_change) {\n\t\tmemset(&tty->read_flags, 0, sizeof tty->read_flags);\n\t\ttty->canon_head = tty->read_tail;\n\t\ttty->canon_data = 0;\n\t\ttty->erasing = 0;\n\t}\n\n\t/* This bit should be in the ldisc code */\n\tif (canon_change && !L_ICANON(tty) && tty->read_cnt)\n\t\t/* Get characters left over from canonical mode. */\n\t\twake_up_interruptible(&tty->read_wait);\n\n\t/* See if packet mode change of state. */\n\tif (tty->link && tty->link->packet) {\n\t\tint old_flow = ((old_termios.c_iflag & IXON) &&\n\t\t\t\t(old_termios.c_cc[VSTOP] == '\\023') &&\n\t\t\t\t(old_termios.c_cc[VSTART] == '\\021'));\n\t\tint new_flow = (I_IXON(tty) &&\n\t\t\t\tSTOP_CHAR(tty) == '\\023' &&\n\t\t\t\tSTART_CHAR(tty) == '\\021');\n\t\tif (old_flow != new_flow) {\n\t\t\ttty->ctrl_status &= ~(TIOCPKT_DOSTOP | TIOCPKT_NOSTOP);\n\t\t\tif (new_flow)\n\t\t\t\ttty->ctrl_status |= TIOCPKT_DOSTOP;\n\t\t\telse\n\t\t\t\ttty->ctrl_status |= TIOCPKT_NOSTOP;\n\t\t\twake_up_interruptible(&tty->link->read_wait);\n\t\t}\n\t}\n\n\tif (tty->driver->set_termios)\n\t\t(*tty->driver->set_termios)(tty, &old_termios);\n\telse\n\t\ttty_termios_copy_hw(tty->termios, &old_termios);\n\n\tld = tty_ldisc_ref(tty);\n\tif (ld != NULL) {\n\t\tif (ld->set_termios)\n\t\t\t(ld->set_termios)(tty, &old_termios);\n\t\ttty_ldisc_deref(ld);\n\t}\n\tmutex_unlock(&tty->termios_mutex);\n}\n\n/**\n *\tset_termios\t\t-\tset termios values for a tty\n *\t@tty: terminal device\n *\t@arg: user data\n *\t@opt: option information\n *\n *\tHelper function to prepare termios data and run neccessary other\n *\tfunctions before using change_termios to do the actual changes.\n *\n *\tLocking:\n *\t\tCalled functions take ldisc and termios_sem locks\n */\n\nstatic int set_termios(struct tty_struct *tty, void __user *arg, int opt)\n{\n\tstruct ktermios tmp_termios;\n\tstruct tty_ldisc *ld;\n\tint retval = tty_check_change(tty);\n\n\tif (retval)\n\t\treturn retval;\n\n\tmemcpy(&tmp_termios, tty->termios, sizeof(struct ktermios));\n\n\tif (opt & TERMIOS_TERMIO) {\n\t\tif (user_termio_to_kernel_termios(&tmp_termios,\n\t\t\t\t\t\t(struct termio __user *)arg))\n\t\t\treturn -EFAULT;\n#ifdef TCGETS2\n\t} else if (opt & TERMIOS_OLD) {\n\t\tif (user_termios_to_kernel_termios_1(&tmp_termios,\n\t\t\t\t\t\t(struct termios __user *)arg))\n\t\t\treturn -EFAULT;\n\t} else {\n\t\tif (user_termios_to_kernel_termios(&tmp_termios,\n\t\t\t\t\t\t(struct termios2 __user *)arg))\n\t\t\treturn -EFAULT;\n\t}\n#else\n\t} else if (user_termios_to_kernel_termios(&tmp_termios,\n\t\t\t\t\t(struct termios __user *)arg))\n\t\treturn -EFAULT;\n#endif\n\n\t/* If old style Bfoo values are used then load c_ispeed/c_ospeed\n\t * with the real speed so its unconditionally usable */\n\ttmp_termios.c_ispeed = tty_termios_input_baud_rate(&tmp_termios);\n\ttmp_termios.c_ospeed = tty_termios_baud_rate(&tmp_termios);\n\n\tld = tty_ldisc_ref(tty);\n\n\tif (ld != NULL) {\n\t\tif ((opt & TERMIOS_FLUSH) && ld->flush_buffer)\n\t\t\tld->flush_buffer(tty);\n\t\ttty_ldisc_deref(ld);\n\t}\n\n\tif (opt & TERMIOS_WAIT) {\n\t\ttty_wait_until_sent(tty, 0);\n\t\tif (signal_pending(current))\n\t\t\treturn -EINTR;\n\t}\n\n\tchange_termios(tty, &tmp_termios);\n\n\t/* FIXME: Arguably if tmp_termios == tty->termios AND the\n\t actual requested termios was not tmp_termios then we may\n\t want to return an error as no user requested change has\n\t succeeded */\n\treturn 0;\n}\n\nstatic int get_termio(struct tty_struct *tty, struct termio __user *termio)\n{\n\tif (kernel_termios_to_user_termio(termio, tty->termios))\n\t\treturn -EFAULT;\n\treturn 0;\n}\n\nstatic unsigned long inq_canon(struct tty_struct *tty)\n{\n\tint nr, head, tail;\n\n\tif (!tty->canon_data || !tty->read_buf)\n\t\treturn 0;\n\thead = tty->canon_head;\n\ttail = tty->read_tail;\n\tnr = (head - tail) & (N_TTY_BUF_SIZE-1);\n\t/* Skip EOF-chars.. */\n\twhile (head != tail) {\n\t\tif (test_bit(tail, tty->read_flags) &&\n\t\t tty->read_buf[tail] == __DISABLED_CHAR)\n\t\t\tnr--;\n\t\ttail = (tail+1) & (N_TTY_BUF_SIZE-1);\n\t}\n\treturn nr;\n}\n\n#ifdef TIOCGETP\n/*\n * These are deprecated, but there is limited support..\n *\n * The \"sg_flags\" translation is a joke..\n */\nstatic int get_sgflags(struct tty_struct *tty)\n{\n\tint flags = 0;\n\n\tif (!(tty->termios->c_lflag & ICANON)) {\n\t\tif (tty->termios->c_lflag & ISIG)\n\t\t\tflags |= 0x02;\t\t/* cbreak */\n\t\telse\n\t\t\tflags |= 0x20;\t\t/* raw */\n\t}\n\tif (tty->termios->c_lflag & ECHO)\n\t\tflags |= 0x08;\t\t\t/* echo */\n\tif (tty->termios->c_oflag & OPOST)\n\t\tif (tty->termios->c_oflag & ONLCR)\n\t\t\tflags |= 0x10;\t\t/* crmod */\n\treturn flags;\n}\n\nstatic int get_sgttyb(struct tty_struct *tty, struct sgttyb __user *sgttyb)\n{\n\tstruct sgttyb tmp;\n\n\tmutex_lock(&tty->termios_mutex);\n\ttmp.sg_ispeed = tty->termios->c_ispeed;\n\ttmp.sg_ospeed = tty->termios->c_ospeed;\n\ttmp.sg_erase = tty->termios->c_cc[VERASE];\n\ttmp.sg_kill = tty->termios->c_cc[VKILL];\n\ttmp.sg_flags = get_sgflags(tty);\n\tmutex_unlock(&tty->termios_mutex);\n\n\treturn copy_to_user(sgttyb, &tmp, sizeof(tmp)) ? -EFAULT : 0;\n}\n\nstatic void set_sgflags(struct ktermios *termios, int flags)\n{\n\ttermios->c_iflag = ICRNL | IXON;\n\ttermios->c_oflag = 0;\n\ttermios->c_lflag = ISIG | ICANON;\n\tif (flags & 0x02) {\t/* cbreak */\n\t\ttermios->c_iflag = 0;\n\t\ttermios->c_lflag &= ~ICANON;\n\t}\n\tif (flags & 0x08) {\t\t/* echo */\n\t\ttermios->c_lflag |= ECHO | ECHOE | ECHOK |\n\t\t\t\t ECHOCTL | ECHOKE | IEXTEN;\n\t}\n\tif (flags & 0x10) {\t\t/* crmod */\n\t\ttermios->c_oflag |= OPOST | ONLCR;\n\t}\n\tif (flags & 0x20) {\t/* raw */\n\t\ttermios->c_iflag = 0;\n\t\ttermios->c_lflag &= ~(ISIG | ICANON);\n\t}\n\tif (!(termios->c_lflag & ICANON)) {\n\t\ttermios->c_cc[VMIN] = 1;\n\t\ttermios->c_cc[VTIME] = 0;\n\t}\n}\n\n/**\n *\tset_sgttyb\t\t-\tset legacy terminal values\n *\t@tty: tty structure\n *\t@sgttyb: pointer to old style terminal structure\n *\n *\tUpdates a terminal from the legacy BSD style terminal information\n *\tstructure.\n *\n *\tLocking: termios_sem\n */\n\nstatic int set_sgttyb(struct tty_struct *tty, struct sgttyb __user *sgttyb)\n{\n\tint retval;\n\tstruct sgttyb tmp;\n\tstruct ktermios termios;\n\n\tretval = tty_check_change(tty);\n\tif (retval)\n\t\treturn retval;\n\n\tif (copy_from_user(&tmp, sgttyb, sizeof(tmp)))\n\t\treturn -EFAULT;\n\n\tmutex_lock(&tty->termios_mutex);\n\ttermios = *tty->termios;\n\ttermios.c_cc[VERASE] = tmp.sg_erase;\n\ttermios.c_cc[VKILL] = tmp.sg_kill;\n\tset_sgflags(&termios, tmp.sg_flags);\n\t/* Try and encode into Bfoo format */\n#ifdef BOTHER\n\ttty_termios_encode_baud_rate(&termios, termios.c_ispeed,\n\t\t\t\t\t\ttermios.c_ospeed);\n#endif\n\tmutex_unlock(&tty->termios_mutex);\n\tchange_termios(tty, &termios);\n\treturn 0;\n}\n#endif\n\n#ifdef TIOCGETC\nstatic int get_tchars(struct tty_struct *tty, struct tchars __user *tchars)\n{\n\tstruct tchars tmp;\n\n\ttmp.t_intrc = tty->termios->c_cc[VINTR];\n\ttmp.t_quitc = tty->termios->c_cc[VQUIT];\n\ttmp.t_startc = tty->termios->c_cc[VSTART];\n\ttmp.t_stopc = tty->termios->c_cc[VSTOP];\n\ttmp.t_eofc = tty->termios->c_cc[VEOF];\n\ttmp.t_brkc = tty->termios->c_cc[VEOL2];\t/* what is brkc anyway? */\n\treturn copy_to_user(tchars, &tmp, sizeof(tmp)) ? -EFAULT : 0;\n}\n\nstatic int set_tchars(struct tty_struct *tty, struct tchars __user *tchars)\n{\n\tstruct tchars tmp;\n\n\tif (copy_from_user(&tmp, tchars, sizeof(tmp)))\n\t\treturn -EFAULT;\n\ttty->termios->c_cc[VINTR] = tmp.t_intrc;\n\ttty->termios->c_cc[VQUIT] = tmp.t_quitc;\n\ttty->termios->c_cc[VSTART] = tmp.t_startc;\n\ttty->termios->c_cc[VSTOP] = tmp.t_stopc;\n\ttty->termios->c_cc[VEOF] = tmp.t_eofc;\n\ttty->termios->c_cc[VEOL2] = tmp.t_brkc;\t/* what is brkc anyway? */\n\treturn 0;\n}\n#endif\n\n#ifdef TIOCGLTC\nstatic int get_ltchars(struct tty_struct *tty, struct ltchars __user *ltchars)\n{\n\tstruct ltchars tmp;\n\n\ttmp.t_suspc = tty->termios->c_cc[VSUSP];\n\t/* what is dsuspc anyway? */\n\ttmp.t_dsuspc = tty->termios->c_cc[VSUSP];\n\ttmp.t_rprntc = tty->termios->c_cc[VREPRINT];\n\t/* what is flushc anyway? */\n\ttmp.t_flushc = tty->termios->c_cc[VEOL2];\n\ttmp.t_werasc = tty->termios->c_cc[VWERASE];\n\ttmp.t_lnextc = tty->termios->c_cc[VLNEXT];\n\treturn copy_to_user(ltchars, &tmp, sizeof(tmp)) ? -EFAULT : 0;\n}\n\nstatic int set_ltchars(struct tty_struct *tty, struct ltchars __user *ltchars)\n{\n\tstruct ltchars tmp;\n\n\tif (copy_from_user(&tmp, ltchars, sizeof(tmp)))\n\t\treturn -EFAULT;\n\n\ttty->termios->c_cc[VSUSP] = tmp.t_suspc;\n\t/* what is dsuspc anyway? */\n\ttty->termios->c_cc[VEOL2] = tmp.t_dsuspc;\n\ttty->termios->c_cc[VREPRINT] = tmp.t_rprntc;\n\t/* what is flushc anyway? */\n\ttty->termios->c_cc[VEOL2] = tmp.t_flushc;\n\ttty->termios->c_cc[VWERASE] = tmp.t_werasc;\n\ttty->termios->c_cc[VLNEXT] = tmp.t_lnextc;\n\treturn 0;\n}\n#endif\n\n/**\n *\tsend_prio_char\t\t-\tsend priority character\n *\n *\tSend a high priority character to the tty even if stopped\n *\n *\tLocking: none for xchar method, write ordering for write method.\n */\n\nstatic int send_prio_char(struct tty_struct *tty, char ch)\n{\n\tint\twas_stopped = tty->stopped;\n\n\tif (tty->driver->send_xchar) {\n\t\ttty->driver->send_xchar(tty, ch);\n\t\treturn 0;\n\t}\n\n\tif (tty_write_lock(tty, 0) < 0)\n\t\treturn -ERESTARTSYS;\n\n\tif (was_stopped)\n\t\tstart_tty(tty);\n\ttty->driver->write(tty, &ch, 1);\n\tif (was_stopped)\n\t\tstop_tty(tty);\n\ttty_write_unlock(tty);\n\treturn 0;\n}\n\n/**\n *\ttty_change_softcar\t-\tcarrier change ioctl helper\n *\t@tty: tty to update\n *\t@arg: enable/disable CLOCAL\n *\n *\tPerform a change to the CLOCAL state and call into the driver\n *\tlayer to make it visible. All done with the termios mutex\n */\n\nstatic int tty_change_softcar(struct tty_struct *tty, int arg)\n{\n\tint ret = 0;\n\tint bit = arg ? CLOCAL : 0;\n\tstruct ktermios old = *tty->termios;\n\n\tmutex_lock(&tty->termios_mutex);\n\ttty->termios->c_cflag &= ~CLOCAL;\n\ttty->termios->c_cflag |= bit;\n\tif (tty->driver->set_termios)\n\t\ttty->driver->set_termios(tty, &old);\n\tif ((tty->termios->c_cflag & CLOCAL) != bit)\n\t\tret = -EINVAL;\n\tmutex_unlock(&tty->termios_mutex);\n\treturn ret;\n}\n\n/**\n *\ttty_mode_ioctl\t\t-\tmode related ioctls\n *\t@tty: tty for the ioctl\n *\t@file: file pointer for the tty\n *\t@cmd: command\n *\t@arg: ioctl argument\n *\n *\tPerform non line discipline specific mode control ioctls. This\n *\tis designed to be called by line disciplines to ensure they provide\n *\tconsistent mode setting.\n */\n\nint tty_mode_ioctl(struct tty_struct *tty, struct file *file,\n\t\t\tunsigned int cmd, unsigned long arg)\n{\n\tstruct tty_struct *real_tty;\n\tvoid __user *p = (void __user *)arg;\n\n\tif (tty->driver->type == TTY_DRIVER_TYPE_PTY &&\n\t tty->driver->subtype == PTY_TYPE_MASTER)\n\t\treal_tty = tty->link;\n\telse\n\t\treal_tty = tty;\n\n\tswitch (cmd) {\n#ifdef TIOCGETP\n\tcase TIOCGETP:\n\t\treturn get_sgttyb(real_tty, (struct sgttyb __user *) arg);\n\tcase TIOCSETP:\n\tcase TIOCSETN:\n\t\treturn set_sgttyb(real_tty, (struct sgttyb __user *) arg);\n#endif\n#ifdef TIOCGETC\n\tcase TIOCGETC:\n\t\treturn get_tchars(real_tty, p);\n\tcase TIOCSETC:\n\t\treturn set_tchars(real_tty, p);\n#endif\n#ifdef TIOCGLTC\n\tcase TIOCGLTC:\n\t\treturn get_ltchars(real_tty, p);\n\tcase TIOCSLTC:\n\t\treturn set_ltchars(real_tty, p);\n#endif\n\tcase TCSETSF:\n\t\treturn set_termios(real_tty, p, TERMIOS_FLUSH | TERMIOS_WAIT | TERMIOS_OLD);\n\tcase TCSETSW:\n\t\treturn set_termios(real_tty, p, TERMIOS_WAIT | TERMIOS_OLD);\n\tcase TCSETS:\n\t\treturn set_termios(real_tty, p, TERMIOS_OLD);\n#ifndef TCGETS2\n\tcase TCGETS:\n\t\tif (kernel_termios_to_user_termios((struct termios __user *)arg, real_tty->termios))\n\t\t\treturn -EFAULT;\n\t\treturn 0;\n#else\n\tcase TCGETS:\n\t\tif (kernel_termios_to_user_termios_1((struct termios __user *)arg, real_tty->termios))\n\t\t\treturn -EFAULT;\n\t\treturn 0;\n\tcase TCGETS2:\n\t\tif (kernel_termios_to_user_termios((struct termios2 __user *)arg, real_tty->termios))\n\t\t\treturn -EFAULT;\n\t\treturn 0;\n\tcase TCSETSF2:\n\t\treturn set_termios(real_tty, p, TERMIOS_FLUSH | TERMIOS_WAIT);\n\tcase TCSETSW2:\n\t\treturn set_termios(real_tty, p, TERMIOS_WAIT);\n\tcase TCSETS2:\n\t\treturn set_termios(real_tty, p, 0);\n#endif\n\tcase TCGETA:\n\t\treturn get_termio(real_tty, p);\n\tcase TCSETAF:\n\t\treturn set_termios(real_tty, p, TERMIOS_FLUSH | TERMIOS_WAIT | TERMIOS_TERMIO);\n\tcase TCSETAW:\n\t\treturn set_termios(real_tty, p, TERMIOS_WAIT | TERMIOS_TERMIO);\n\tcase TCSETA:\n\t\treturn set_termios(real_tty, p, TERMIOS_TERMIO);\n#ifndef TCGETS2\n\tcase TIOCGLCKTRMIOS:\n\t\tif (kernel_termios_to_user_termios((struct termios __user *)arg, real_tty->termios_locked))\n\t\t\treturn -EFAULT;\n\t\treturn 0;\n\tcase TIOCSLCKTRMIOS:\n\t\tif (!capable(CAP_SYS_ADMIN))\n\t\t\treturn -EPERM;\n\t\tif (user_termios_to_kernel_termios(real_tty->termios_locked,\n\t\t\t\t\t (struct termios __user *) arg))\n\t\t\treturn -EFAULT;\n\t\treturn 0;\n#else\n\tcase TIOCGLCKTRMIOS:\n\t\tif (kernel_termios_to_user_termios_1((struct termios __user *)arg, real_tty->termios_locked))\n\t\t\treturn -EFAULT;\n\t\treturn 0;\n\tcase TIOCSLCKTRMIOS:\n\t\tif (!capable(CAP_SYS_ADMIN))\n\t\t\treturn -EPERM;\n\t\tif (user_termios_to_kernel_termios_1(real_tty->termios_locked,\n\t\t\t\t\t (struct termios __user *) arg))\n\t\t\treturn -EFAULT;\n\t\t\treturn 0;\n#endif\n\tcase TIOCGSOFTCAR:\n\t\t/* FIXME: for correctness we may need to take the termios\n\t\t lock here - review */\n\t\treturn put_user(C_CLOCAL(real_tty) ? 1 : 0,\n\t\t\t\t\t\t(int __user *)arg);\n\tcase TIOCSSOFTCAR:\n\t\tif (get_user(arg, (unsigned int __user *) arg))\n\t\t\treturn -EFAULT;\n\t\treturn tty_change_softcar(real_tty, arg);\n\tdefault:\n\t\treturn -ENOIOCTLCMD;\n\t}\n}\nEXPORT_SYMBOL_GPL(tty_mode_ioctl);\n\nint tty_perform_flush(struct tty_struct *tty, unsigned long arg)\n{\n\tstruct tty_ldisc *ld;\n\tint retval = tty_check_change(tty);\n\tif (retval)\n\t\treturn retval;\n\n\tld = tty_ldisc_ref(tty);\n\tswitch (arg) {\n\tcase TCIFLUSH:\n\t\tif (ld && ld->flush_buffer)\n\t\t\tld->flush_buffer(tty);\n\t\tbreak;\n\tcase TCIOFLUSH:\n\t\tif (ld && ld->flush_buffer)\n\t\t\tld->flush_buffer(tty);\n\t\t/* fall through */\n\tcase TCOFLUSH:\n\t\tif (tty->driver->flush_buffer)\n\t\t\ttty->driver->flush_buffer(tty);\n\t\tbreak;\n\tdefault:\n\t\ttty_ldisc_deref(ld);\n\t\treturn -EINVAL;\n\t}\n\ttty_ldisc_deref(ld);\n\treturn 0;\n}\nEXPORT_SYMBOL_GPL(tty_perform_flush);\n\nint n_tty_ioctl(struct tty_struct *tty, struct file *file,\n\t\t unsigned int cmd, unsigned long arg)\n{\n\tstruct tty_struct *real_tty;\n\tint retval;\n\n\tif (tty->driver->type == TTY_DRIVER_TYPE_PTY &&\n\t tty->driver->subtype == PTY_TYPE_MASTER)\n\t\treal_tty = tty->link;\n\telse\n\t\treal_tty = tty;\n\n\tswitch (cmd) {\n\tcase TCXONC:\n\t\tretval = tty_check_change(tty);\n\t\tif (retval)\n\t\t\treturn retval;\n\t\tswitch (arg) {\n\t\tcase TCOOFF:\n\t\t\tif (!tty->flow_stopped) {\n\t\t\t\ttty->flow_stopped = 1;\n\t\t\t\tstop_tty(tty);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase TCOON:\n\t\t\tif (tty->flow_stopped) {\n\t\t\t\ttty->flow_stopped = 0;\n\t\t\t\tstart_tty(tty);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase TCIOFF:\n\t\t\tif (STOP_CHAR(tty) != __DISABLED_CHAR)\n\t\t\t\treturn send_prio_char(tty, STOP_CHAR(tty));\n\t\t\tbreak;\n\t\tcase TCION:\n\t\t\tif (START_CHAR(tty) != __DISABLED_CHAR)\n\t\t\t\treturn send_prio_char(tty, START_CHAR(tty));\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn -EINVAL;\n\t\t}\n\t\treturn 0;\n\tcase TCFLSH:\n\t\treturn tty_perform_flush(tty, arg);\n\tcase TIOCOUTQ:\n\t\treturn put_user(tty->driver->chars_in_buffer ?\n\t\t\t\ttty->driver->chars_in_buffer(tty) : 0,\n\t\t\t\t(int __user *) arg);\n\tcase TIOCINQ:\n\t\tretval = tty->read_cnt;\n\t\tif (L_ICANON(tty))\n\t\t\tretval = inq_canon(tty);\n\t\treturn put_user(retval, (unsigned int __user *) arg);\n\tcase TIOCPKT:\n\t{\n\t\tint pktmode;\n\n\t\tif (tty->driver->type != TTY_DRIVER_TYPE_PTY ||\n\t\t tty->driver->subtype != PTY_TYPE_MASTER)\n\t\t\treturn -ENOTTY;\n\t\tif (get_user(pktmode, (int __user *) arg))\n\t\t\treturn -EFAULT;\n\t\tif (pktmode) {\n\t\t\tif (!tty->packet) {\n\t\t\t\ttty->packet = 1;\n\t\t\t\ttty->link->ctrl_status = 0;\n\t\t\t}\n\t\t} else\n\t\t\ttty->packet = 0;\n\t\treturn 0;\n\t}\n\tdefault:\n\t\t/* Try the mode commands */\n\t\treturn tty_mode_ioctl(tty, file, cmd, arg);\n\t}\n}\nEXPORT_SYMBOL(n_tty_ioctl);\n"},"repo_name":{"kind":"string","value":"mikewadsten/asuswrt"},"path":{"kind":"string","value":"release/src-rt/linux/linux-2.6/drivers/char/tty_ioctl.c"},"language":{"kind":"string","value":"C"},"license":{"kind":"string","value":"gpl-2.0"},"size":{"kind":"number","value":26382,"string":"26,382"}}},{"rowIdx":115086170,"cells":{"code":{"kind":"string","value":"all:\n\tg++ VectorNavSetup_console.cpp -o vn_console_setup\nclean:\n\trm vn_console_setup\n"},"repo_name":{"kind":"string","value":"tomvand/paparazzi-gazebo"},"path":{"kind":"string","value":"sw/tools/vectornav_configurator/Makefile"},"language":{"kind":"string","value":"Makefile"},"license":{"kind":"string","value":"gpl-2.0"},"size":{"kind":"number","value":85,"string":"85"}}},{"rowIdx":115086171,"cells":{"code":{"kind":"string","value":"/*\n * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.\n *\n * This code is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License version 2 only, as\n * published by the Free Software Foundation.\n *\n * This code is distributed in the hope that it will be useful, but WITHOUT\n * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License\n * version 2 for more details (a copy is included in the LICENSE file that\n * accompanied this code).\n *\n * You should have received a copy of the GNU General Public License version\n * 2 along with this work; if not, write to the Free Software Foundation,\n * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n *\n * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA\n * or visit www.oracle.com if you need additional information or have any\n * questions.\n */\n\n/*\n * This file is available under and governed by the GNU General Public\n * License version 2 only, as published by the Free Software Foundation.\n * However, the following notice accompanied the original version of this\n * file:\n *\n * Written by Doug Lea with assistance from members of JCP JSR-166\n * Expert Group and released to the public domain, as explained at\n * http://creativecommons.org/publicdomain/zero/1.0/\n */\n\nimport java.util.concurrent.atomic.AtomicBoolean;\n\nimport junit.framework.Test;\nimport junit.framework.TestSuite;\n\npublic class AtomicBoolean9Test extends JSR166TestCase {\n public static void main(String[] args) {\n main(suite(), args);\n }\n public static Test suite() {\n return new TestSuite(AtomicBoolean9Test.class);\n }\n\n /**\n * getPlain returns the last value set\n */\n public void testGetPlainSet() {\n AtomicBoolean ai = new AtomicBoolean(true);\n assertEquals(true, ai.getPlain());\n ai.set(false);\n assertEquals(false, ai.getPlain());\n ai.set(true);\n assertEquals(true, ai.getPlain());\n }\n\n /**\n * getOpaque returns the last value set\n */\n public void testGetOpaqueSet() {\n AtomicBoolean ai = new AtomicBoolean(true);\n assertEquals(true, ai.getOpaque());\n ai.set(false);\n assertEquals(false, ai.getOpaque());\n ai.set(true);\n assertEquals(true, ai.getOpaque());\n }\n\n /**\n * getAcquire returns the last value set\n */\n public void testGetAcquireSet() {\n AtomicBoolean ai = new AtomicBoolean(true);\n assertEquals(true, ai.getAcquire());\n ai.set(false);\n assertEquals(false, ai.getAcquire());\n ai.set(true);\n assertEquals(true, ai.getAcquire());\n }\n\n /**\n * get returns the last value setPlain\n */\n public void testGetSetPlain() {\n AtomicBoolean ai = new AtomicBoolean(true);\n assertEquals(true, ai.get());\n ai.setPlain(false);\n assertEquals(false, ai.get());\n ai.setPlain(true);\n assertEquals(true, ai.get());\n }\n\n /**\n * get returns the last value setOpaque\n */\n public void testGetSetOpaque() {\n AtomicBoolean ai = new AtomicBoolean(true);\n assertEquals(true, ai.get());\n ai.setOpaque(false);\n assertEquals(false, ai.get());\n ai.setOpaque(true);\n assertEquals(true, ai.get());\n }\n\n /**\n * get returns the last value setRelease\n */\n public void testGetSetRelease() {\n AtomicBoolean ai = new AtomicBoolean(true);\n assertEquals(true, ai.get());\n ai.setRelease(false);\n assertEquals(false, ai.get());\n ai.setRelease(true);\n assertEquals(true, ai.get());\n }\n\n /**\n * compareAndExchange succeeds in changing value if equal to\n * expected else fails\n */\n public void testCompareAndExchange() {\n AtomicBoolean ai = new AtomicBoolean(true);\n assertEquals(true, ai.compareAndExchange(true, false));\n assertEquals(false, ai.compareAndExchange(false, false));\n assertEquals(false, ai.get());\n assertEquals(false, ai.compareAndExchange(true, true));\n assertEquals(false, ai.get());\n assertEquals(false, ai.compareAndExchange(false, true));\n assertEquals(true, ai.get());\n }\n\n /**\n * compareAndExchangeAcquire succeeds in changing value if equal to\n * expected else fails\n */\n public void testCompareAndExchangeAcquire() {\n AtomicBoolean ai = new AtomicBoolean(true);\n assertEquals(true, ai.compareAndExchangeAcquire(true, false));\n assertEquals(false, ai.compareAndExchangeAcquire(false, false));\n assertEquals(false, ai.get());\n assertEquals(false, ai.compareAndExchangeAcquire(true, true));\n assertEquals(false, ai.get());\n assertEquals(false, ai.compareAndExchangeAcquire(false, true));\n assertEquals(true, ai.get());\n }\n\n /**\n * compareAndExchangeRelease succeeds in changing value if equal to\n * expected else fails\n */\n public void testCompareAndExchangeRelease() {\n AtomicBoolean ai = new AtomicBoolean(true);\n assertEquals(true, ai.compareAndExchangeRelease(true, false));\n assertEquals(false, ai.compareAndExchangeRelease(false, false));\n assertEquals(false, ai.get());\n assertEquals(false, ai.compareAndExchangeRelease(true, true));\n assertEquals(false, ai.get());\n assertEquals(false, ai.compareAndExchangeRelease(false, true));\n assertEquals(true, ai.get());\n }\n\n /**\n * repeated weakCompareAndSetPlain succeeds in changing value when equal\n * to expected\n */\n public void testWeakCompareAndSetPlain() {\n AtomicBoolean ai = new AtomicBoolean(true);\n do {} while (!ai.weakCompareAndSetPlain(true, false));\n do {} while (!ai.weakCompareAndSetPlain(false, false));\n assertFalse(ai.get());\n do {} while (!ai.weakCompareAndSetPlain(false, true));\n assertTrue(ai.get());\n }\n\n /**\n * repeated weakCompareAndSetVolatile succeeds in changing value when equal\n * to expected\n */\n public void testWeakCompareAndSetVolatile() {\n AtomicBoolean ai = new AtomicBoolean(true);\n do {} while (!ai.weakCompareAndSetVolatile(true, false));\n do {} while (!ai.weakCompareAndSetVolatile(false, false));\n assertEquals(false, ai.get());\n do {} while (!ai.weakCompareAndSetVolatile(false, true));\n assertEquals(true, ai.get());\n }\n\n /**\n * repeated weakCompareAndSetAcquire succeeds in changing value when equal\n * to expected\n */\n public void testWeakCompareAndSetAcquire() {\n AtomicBoolean ai = new AtomicBoolean(true);\n do {} while (!ai.weakCompareAndSetAcquire(true, false));\n do {} while (!ai.weakCompareAndSetAcquire(false, false));\n assertEquals(false, ai.get());\n do {} while (!ai.weakCompareAndSetAcquire(false, true));\n assertEquals(true, ai.get());\n }\n\n /**\n * repeated weakCompareAndSetRelease succeeds in changing value when equal\n * to expected\n */\n public void testWeakCompareAndSetRelease() {\n AtomicBoolean ai = new AtomicBoolean(true);\n do {} while (!ai.weakCompareAndSetRelease(true, false));\n do {} while (!ai.weakCompareAndSetRelease(false, false));\n assertEquals(false, ai.get());\n do {} while (!ai.weakCompareAndSetRelease(false, true));\n assertEquals(true, ai.get());\n }\n\n}\n"},"repo_name":{"kind":"string","value":"md-5/jdk10"},"path":{"kind":"string","value":"test/jdk/java/util/concurrent/tck/AtomicBoolean9Test.java"},"language":{"kind":"string","value":"Java"},"license":{"kind":"string","value":"gpl-2.0"},"size":{"kind":"number","value":7537,"string":"7,537"}}},{"rowIdx":115086172,"cells":{"code":{"kind":"string","value":"/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */\n// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:\n#ident \"$Id$\"\n/*======\nThis file is part of PerconaFT.\n\n\nCopyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved.\n\n PerconaFT is free software: you can redistribute it and/or modify\n it under the terms of the GNU General Public License, version 2,\n as published by the Free Software Foundation.\n\n PerconaFT is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU General Public License for more details.\n\n You should have received a copy of the GNU General Public License\n along with PerconaFT. If not, see .\n\n----------------------------------------\n\n PerconaFT is free software: you can redistribute it and/or modify\n it under the terms of the GNU Affero General Public License, version 3,\n as published by the Free Software Foundation.\n\n PerconaFT is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU Affero General Public License for more details.\n\n You should have received a copy of the GNU Affero General Public License\n along with PerconaFT. If not, see .\n======= */\n\n#ident \"Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved.\"\n\n#include \"test.h\"\n#include \"toku_pthread.h\"\n#include \n\nstatic int my_compare (DB *db, const DBT *a, const DBT *b) {\n assert(db);\n assert(db->cmp_descriptor);\n assert(db->cmp_descriptor->dbt.size >= 3);\n char *CAST_FROM_VOIDP(data, db->cmp_descriptor->dbt.data);\n assert(data[0]=='f');\n assert(data[1]=='o');\n assert(data[2]=='o');\n if (verbose) printf(\"compare descriptor=%s\\n\", data);\n sched_yield();\n return uint_dbt_cmp(db, a, b);\n}\n\nDB_ENV *env;\nDB *db;\nconst char *env_dir = TOKU_TEST_FILENAME;\nvolatile int done = 0;\n\nstatic void *startA (void *ignore __attribute__((__unused__))) {\n for (int i=0;i<999; i++) {\n\tDBT k,v;\n\tint a = (random()<<16) + i;\n\tdbt_init(&k, &a, sizeof(a));\n\tdbt_init(&v, &a, sizeof(a));\n\tDB_TXN *txn;\n again:\n\t{ int chk_r = env->txn_begin(env, NULL, &txn, DB_TXN_NOSYNC); CKERR(chk_r); }\n\t{\n\t int r = db->put(db, txn, &k, &v, 0);\n\t if (r==DB_LOCK_NOTGRANTED) {\n\t\tif (verbose) printf(\"lock not granted on %d\\n\", i);\n\t\t{ int chk_r = txn->abort(txn); CKERR(chk_r); }\n\t\tgoto again;\n\t }\n\t assert(r==0);\n\t}\n\t{ int chk_r = txn->commit(txn, 0); CKERR(chk_r); }\n }\n int r __attribute__((__unused__)) = toku_sync_fetch_and_add(&done, 1);\n return NULL;\n}\nstatic void change_descriptor (DB_TXN *txn, int i) {\n DBT desc;\n char foo[100];\n snprintf(foo, 99, \"foo%d\", i);\n dbt_init(&desc, foo, 1+strlen(foo));\n int r;\n if (verbose) printf(\"trying to change to %s\\n\", foo);\n while ((r=db->change_descriptor(db, txn, &desc, 0))) {\n\tif (verbose) printf(\"Change failed r=%d, try again\\n\", r);\n }\n if (verbose) printf(\"ok\\n\");\n}\nstatic void startB (void) {\n for (int i=0; !done; i++) {\n\tIN_TXN_COMMIT(env, NULL, txn, 0,\n\t\t change_descriptor(txn, i));\n\tsched_yield();\n }\n}\n\nstatic void my_parse_args (int argc, char * const argv[]) {\n const char *argv0=argv[0];\n while (argc>1) {\n\tint resultcode=0;\n\tif (strcmp(argv[1], \"-v\")==0) {\n\t verbose++;\n\t} else if (strcmp(argv[1],\"-q\")==0) {\n\t verbose--;\n\t if (verbose<0) verbose=0;\n\t} else if (strcmp(argv[1],\"--envdir\")==0) {\n\t assert(argc>2);\n\t env_dir = argv[2];\n\t argc--;\n\t argv++;\n\t} else if (strcmp(argv[1], \"-h\")==0) {\n\tdo_usage:\n\t fprintf(stderr, \"Usage:\\n%s [-v|-q] [-h] [--envdir ]\\n\", argv0);\n\t exit(resultcode);\n\t} else {\n\t resultcode=1;\n\t goto do_usage;\n\t}\n\targc--;\n\targv++;\n }\n}\n\nint test_main(int argc, char * const argv[]) {\n my_parse_args(argc, argv);\n\n db_env_set_num_bucket_mutexes(32);\n { int chk_r = db_env_create(&env, 0); CKERR(chk_r); }\n { int chk_r = env->set_redzone(env, 0); CKERR(chk_r); }\n { int chk_r = env->set_default_bt_compare(env, my_compare); CKERR(chk_r); }\n {\n\tconst int size = 10+strlen(env_dir);\n\tchar cmd[size];\n\tsnprintf(cmd, size, \"rm -rf %s\", env_dir);\n\tint r = system(cmd);\n CKERR(r);\n }\n { int chk_r = toku_os_mkdir(env_dir, S_IRWXU+S_IRWXG+S_IRWXO); CKERR(chk_r); }\n const int envflags = DB_INIT_MPOOL|DB_CREATE|DB_THREAD |DB_INIT_LOCK|DB_INIT_LOG|DB_INIT_TXN|DB_PRIVATE;\n { int chk_r = env->open(env, env_dir, envflags, S_IRWXU+S_IRWXG+S_IRWXO); CKERR(chk_r); }\n\n { int chk_r = db_create(&db, env, 0); CKERR(chk_r); }\n { int chk_r = db->set_pagesize(db, 1024); CKERR(chk_r); }\n { int chk_r = db->open(db, NULL, \"db\", NULL, DB_BTREE, DB_CREATE, 0666); CKERR(chk_r); }\n DBT desc;\n dbt_init(&desc, \"foo\", sizeof(\"foo\"));\n IN_TXN_COMMIT(env, NULL, txn, 0,\n { int chk_r = db->change_descriptor(db, txn, &desc, DB_UPDATE_CMP_DESCRIPTOR); CKERR(chk_r); });\n pthread_t thd;\n { int chk_r = toku_pthread_create(&thd, NULL, startA, NULL); CKERR(chk_r); }\n\n startB();\n\n void *retval;\n { int chk_r = toku_pthread_join(thd, &retval); CKERR(chk_r); }\n assert(retval==NULL);\n\n { int chk_r = db->close(db, 0); CKERR(chk_r); }\n\n\n { int chk_r = env->close(env, 0); CKERR(chk_r); }\n\n return 0;\n}\n"},"repo_name":{"kind":"string","value":"ChengXiaoZ/MariaDBserver"},"path":{"kind":"string","value":"storage/tokudb/PerconaFT/src/tests/test_4015.cc"},"language":{"kind":"string","value":"C++"},"license":{"kind":"string","value":"gpl-2.0"},"size":{"kind":"number","value":5525,"string":"5,525"}}},{"rowIdx":115086173,"cells":{"code":{"kind":"string","value":"/*\n * (C) Copyright 2013\n * Texas Instruments Incorporated.\n * Sricharan R\t \n *\n * Configuration settings for the TI EVM5430 board.\n * See omap5_common.h for omap5 common settings.\n *\n * See file CREDITS for list of people who contributed to this\n * project.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License as\n * published by the Free Software Foundation; either version 2 of\n * the License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\t See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, write to the Free Software\n * Foundation, Inc., 59 Temple Place, Suite 330, Boston,\n * MA 02111-1307 USA\n */\n\n#ifndef __CONFIG_OMAP5_EVM_H\n#define __CONFIG_OMAP5_EVM_H\n\n/* Define the default GPT table for eMMC */\n#define PARTS_DEFAULT \\\n\t\"uuid_disk=${uuid_gpt_disk};\" \\\n\t\"name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs}\"\n\n#include \n\n#define CONFIG_CONS_INDEX\t\t3\n#define CONFIG_SYS_NS16550_COM3\t\tUART3_BASE\n#define CONFIG_BAUDRATE\t\t\t115200\n\n/* MMC ENV related defines */\n#define CONFIG_ENV_IS_IN_MMC\n#define CONFIG_SYS_MMC_ENV_DEV\t\t1\t/* SLOT2: eMMC(1) */\n#define CONFIG_ENV_OFFSET\t\t0xE0000\n#define CONFIG_ENV_OFFSET_REDUND\t(CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)\n#define CONFIG_SYS_REDUNDAND_ENVIRONMENT\n#define CONFIG_CMD_SAVEENV\n\n/* Enhance our eMMC support / experience. */\n#define CONFIG_CMD_GPT\n#define CONFIG_EFI_PARTITION\n#define CONFIG_PARTITION_UUIDS\n#define CONFIG_CMD_PART\n\n#define CONFIG_SYS_PROMPT\t\t\"OMAP5432 uEVM # \"\n\n#define CONSOLEDEV\t\t\"ttyO2\"\n\n#define CONFIG_OMAP_PLATFORM_RESET_TIME_MAX_USEC\t16296\n#endif /* __CONFIG_OMAP5_EVM_H */\n"},"repo_name":{"kind":"string","value":"lxl1140989/dmsdk"},"path":{"kind":"string","value":"uboot/u-boot-dm6291/include/configs/omap5_uevm.h"},"language":{"kind":"string","value":"C"},"license":{"kind":"string","value":"gpl-2.0"},"size":{"kind":"number","value":1969,"string":"1,969"}}},{"rowIdx":115086174,"cells":{"code":{"kind":"string","value":"

Auf dieser Seite k&ouml;nnen Sie eine Nachricht vorbereiten, die erst zu einem sp&auml;teren Zeitpunkt verschickt werden soll.\nSie k&ouml;nnen alle erforderlichen Angaben erfassen - ausser an welche Liste(n) die Nachricht versendet werden soll.\nDies geschieht erst in dem Moment, wo Sie eine vorbereitete Nachricht tats&auml;chlich versenden.

\n\n

Eine vorbereitete Nachricht verschwindet nicht, wenn sie einmal verschickt wurde,\nsondern bleibt als Vorlage erhalten und kann mehrfach f&uuml;r einen Nachrichtenversand benutzt werden.\nBitte seien Sie vorsichtig mit dieser Funktion, denn es k&ouml;nnte leicht passieren,\ndass Sie versehentlich dieselbe Nachricht mehrfach an dieselben Emfp&auml;nger senden.

\n\n

Die M&ouml;glichkeit, Nachrichten vorzubereiten und als Vorlagen zu benutzen,\nwurde insbesondere im Hinblick auf Systeme mit mehrere Administratoren entwickelt.\nWenn der Haupt-Administrator eine Nachricht vorbereitet,\nkann sie anschliessend von Sub-Administratoren an deren jeweiligen Listen versendet werden.\nIn diesem Fall k&ouml;nnen Sie zus&auml;tzliche Platzhalter in Ihre Nachricht einf&uuml;gen: die Administratoren-Attribute.

\n\n

Wenn Sie beispielsweise ein Administratoren-Attribut Name definiert haben,\ndann k&ouml;nnen Sie [LISTOWNER.NAME] als Platzhalter verwenden.\nIn diesem Fall wird der Platzhalter durch den Namen des Besitzers derjenigen Liste ersetzt,\nan welche die Nachricht verschickt wird.\nDies gilt unabh&auml;ngig davon, wer die Nachricht effektiv verschickt:\nWenn also der Haupt-Administrator eine Nachricht an eine Liste verschickt, deren Besitzer ein anderer Administrator ist,\nso werden die [LISTOWNER]-Platzhalter trotzdem mit den Daten des jeweiligen Besitzers ersetzt\n(und nicht mit den Daten des Haupt-Administrators).\n

\n\n

Das Format f&uuml;r [LISTOWNER]-Platzhalter ist [LISTOWNER.ATTRIBUT]

\n\n

Zur Zeit sind folgende Administratoren-Attribute im System definiert:\n\n

\n\t\n\t\t\n\t\t\n\t\n';\nwhile ($row = Sql_Fetch_Row($req))\n if (strlen($row[0]) < 20)\n printf ('',$row[0],strtoupper($row[0]));\n?>\n
AttributPlatzhalter
-
%s[LISTOWNER.%s]
\n"},"repo_name":{"kind":"string","value":"washingtonstateuniversity/WSU-Lists"},"path":{"kind":"string","value":"www/admin/help/de/preparemessage.php"},"language":{"kind":"string","value":"PHP"},"license":{"kind":"string","value":"gpl-2.0"},"size":{"kind":"number","value":2382,"string":"2,382"}}},{"rowIdx":115086175,"cells":{"code":{"kind":"string","value":"/*\n * Copyright (c) 2013-2015, Mellanox Technologies. All rights reserved.\n *\n * This software is available to you under a choice of one of two\n * licenses. You may choose to be licensed under the terms of the GNU\n * General Public License (GPL) Version 2, available from the file\n * COPYING in the main directory of this source tree, or the\n * OpenIB.org BSD license below:\n *\n * Redistribution and use in source and binary forms, with or\n * without modification, are permitted provided that the following\n * conditions are met:\n *\n * - Redistributions of source code must retain the above\n * copyright notice, this list of conditions and the following\n * disclaimer.\n *\n * - Redistributions in binary form must reproduce the above\n * copyright notice, this list of conditions and the following\n * disclaimer in the documentation and/or other materials\n * provided with the distribution.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#ifdef CONFIG_RFS_ACCEL\n#include \n#endif\n#include \n#include \"mlx5_core.h\"\n#include \"lib/eq.h\"\n#include \"fs_core.h\"\n#include \"lib/mpfs.h\"\n#include \"eswitch.h\"\n#include \"devlink.h\"\n#include \"lib/mlx5.h\"\n#include \"fpga/core.h\"\n#include \"fpga/ipsec.h\"\n#include \"accel/ipsec.h\"\n#include \"accel/tls.h\"\n#include \"lib/clock.h\"\n#include \"lib/vxlan.h\"\n#include \"lib/geneve.h\"\n#include \"lib/devcom.h\"\n#include \"lib/pci_vsc.h\"\n#include \"diag/fw_tracer.h\"\n#include \"ecpf.h\"\n#include \"lib/hv_vhca.h\"\n\nMODULE_AUTHOR(\"Eli Cohen \");\nMODULE_DESCRIPTION(\"Mellanox 5th generation network adapters (ConnectX series) core driver\");\nMODULE_LICENSE(\"Dual BSD/GPL\");\nMODULE_VERSION(DRIVER_VERSION);\n\nunsigned int mlx5_core_debug_mask;\nmodule_param_named(debug_mask, mlx5_core_debug_mask, uint, 0644);\nMODULE_PARM_DESC(debug_mask, \"debug mask: 1 = dump cmd data, 2 = dump cmd exec time, 3 = both. Default=0\");\n\n#define MLX5_DEFAULT_PROF\t2\nstatic unsigned int prof_sel = MLX5_DEFAULT_PROF;\nmodule_param_named(prof_sel, prof_sel, uint, 0444);\nMODULE_PARM_DESC(prof_sel, \"profile selector. Valid range 0 - 2\");\n\nstatic u32 sw_owner_id[4];\n\nenum {\n\tMLX5_ATOMIC_REQ_MODE_BE = 0x0,\n\tMLX5_ATOMIC_REQ_MODE_HOST_ENDIANNESS = 0x1,\n};\n\nstatic struct mlx5_profile profile[] = {\n\t[0] = {\n\t\t.mask = 0,\n\t},\n\t[1] = {\n\t\t.mask\t\t= MLX5_PROF_MASK_QP_SIZE,\n\t\t.log_max_qp\t= 12,\n\t},\n\t[2] = {\n\t\t.mask\t\t= MLX5_PROF_MASK_QP_SIZE |\n\t\t\t\t MLX5_PROF_MASK_MR_CACHE,\n\t\t.log_max_qp\t= 18,\n\t\t.mr_cache[0]\t= {\n\t\t\t.size\t= 500,\n\t\t\t.limit\t= 250\n\t\t},\n\t\t.mr_cache[1]\t= {\n\t\t\t.size\t= 500,\n\t\t\t.limit\t= 250\n\t\t},\n\t\t.mr_cache[2]\t= {\n\t\t\t.size\t= 500,\n\t\t\t.limit\t= 250\n\t\t},\n\t\t.mr_cache[3]\t= {\n\t\t\t.size\t= 500,\n\t\t\t.limit\t= 250\n\t\t},\n\t\t.mr_cache[4]\t= {\n\t\t\t.size\t= 500,\n\t\t\t.limit\t= 250\n\t\t},\n\t\t.mr_cache[5]\t= {\n\t\t\t.size\t= 500,\n\t\t\t.limit\t= 250\n\t\t},\n\t\t.mr_cache[6]\t= {\n\t\t\t.size\t= 500,\n\t\t\t.limit\t= 250\n\t\t},\n\t\t.mr_cache[7]\t= {\n\t\t\t.size\t= 500,\n\t\t\t.limit\t= 250\n\t\t},\n\t\t.mr_cache[8]\t= {\n\t\t\t.size\t= 500,\n\t\t\t.limit\t= 250\n\t\t},\n\t\t.mr_cache[9]\t= {\n\t\t\t.size\t= 500,\n\t\t\t.limit\t= 250\n\t\t},\n\t\t.mr_cache[10]\t= {\n\t\t\t.size\t= 500,\n\t\t\t.limit\t= 250\n\t\t},\n\t\t.mr_cache[11]\t= {\n\t\t\t.size\t= 500,\n\t\t\t.limit\t= 250\n\t\t},\n\t\t.mr_cache[12]\t= {\n\t\t\t.size\t= 64,\n\t\t\t.limit\t= 32\n\t\t},\n\t\t.mr_cache[13]\t= {\n\t\t\t.size\t= 32,\n\t\t\t.limit\t= 16\n\t\t},\n\t\t.mr_cache[14]\t= {\n\t\t\t.size\t= 16,\n\t\t\t.limit\t= 8\n\t\t},\n\t\t.mr_cache[15]\t= {\n\t\t\t.size\t= 8,\n\t\t\t.limit\t= 4\n\t\t},\n\t},\n};\n\n#define FW_INIT_TIMEOUT_MILI\t\t2000\n#define FW_INIT_WAIT_MS\t\t\t2\n#define FW_PRE_INIT_TIMEOUT_MILI\t120000\n#define FW_INIT_WARN_MESSAGE_INTERVAL\t20000\n\nstatic int wait_fw_init(struct mlx5_core_dev *dev, u32 max_wait_mili,\n\t\t\tu32 warn_time_mili)\n{\n\tunsigned long warn = jiffies + msecs_to_jiffies(warn_time_mili);\n\tunsigned long end = jiffies + msecs_to_jiffies(max_wait_mili);\n\tint err = 0;\n\n\tBUILD_BUG_ON(FW_PRE_INIT_TIMEOUT_MILI < FW_INIT_WARN_MESSAGE_INTERVAL);\n\n\twhile (fw_initializing(dev)) {\n\t\tif (time_after(jiffies, end)) {\n\t\t\terr = -EBUSY;\n\t\t\tbreak;\n\t\t}\n\t\tif (warn_time_mili && time_after(jiffies, warn)) {\n\t\t\tmlx5_core_warn(dev, \"Waiting for FW initialization, timeout abort in %ds\\n\",\n\t\t\t\t jiffies_to_msecs(end - warn) / 1000);\n\t\t\twarn = jiffies + msecs_to_jiffies(warn_time_mili);\n\t\t}\n\t\tmsleep(FW_INIT_WAIT_MS);\n\t}\n\n\treturn err;\n}\n\nstatic void mlx5_set_driver_version(struct mlx5_core_dev *dev)\n{\n\tint driver_ver_sz = MLX5_FLD_SZ_BYTES(set_driver_version_in,\n\t\t\t\t\t driver_version);\n\tu8 in[MLX5_ST_SZ_BYTES(set_driver_version_in)] = {0};\n\tu8 out[MLX5_ST_SZ_BYTES(set_driver_version_out)] = {0};\n\tint remaining_size = driver_ver_sz;\n\tchar *string;\n\n\tif (!MLX5_CAP_GEN(dev, driver_version))\n\t\treturn;\n\n\tstring = MLX5_ADDR_OF(set_driver_version_in, in, driver_version);\n\n\tstrncpy(string, \"Linux\", remaining_size);\n\n\tremaining_size = max_t(int, 0, driver_ver_sz - strlen(string));\n\tstrncat(string, \",\", remaining_size);\n\n\tremaining_size = max_t(int, 0, driver_ver_sz - strlen(string));\n\tstrncat(string, DRIVER_NAME, remaining_size);\n\n\tremaining_size = max_t(int, 0, driver_ver_sz - strlen(string));\n\tstrncat(string, \",\", remaining_size);\n\n\tremaining_size = max_t(int, 0, driver_ver_sz - strlen(string));\n\tstrncat(string, DRIVER_VERSION, remaining_size);\n\n\t/*Send the command*/\n\tMLX5_SET(set_driver_version_in, in, opcode,\n\t\t MLX5_CMD_OP_SET_DRIVER_VERSION);\n\n\tmlx5_cmd_exec(dev, in, sizeof(in), out, sizeof(out));\n}\n\nstatic int set_dma_caps(struct pci_dev *pdev)\n{\n\tint err;\n\n\terr = pci_set_dma_mask(pdev, DMA_BIT_MASK(64));\n\tif (err) {\n\t\tdev_warn(&pdev->dev, \"Warning: couldn't set 64-bit PCI DMA mask\\n\");\n\t\terr = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));\n\t\tif (err) {\n\t\t\tdev_err(&pdev->dev, \"Can't set PCI DMA mask, aborting\\n\");\n\t\t\treturn err;\n\t\t}\n\t}\n\n\terr = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64));\n\tif (err) {\n\t\tdev_warn(&pdev->dev,\n\t\t\t \"Warning: couldn't set 64-bit consistent PCI DMA mask\\n\");\n\t\terr = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));\n\t\tif (err) {\n\t\t\tdev_err(&pdev->dev,\n\t\t\t\t\"Can't set consistent PCI DMA mask, aborting\\n\");\n\t\t\treturn err;\n\t\t}\n\t}\n\n\tdma_set_max_seg_size(&pdev->dev, 2u * 1024 * 1024 * 1024);\n\treturn err;\n}\n\nstatic int mlx5_pci_enable_device(struct mlx5_core_dev *dev)\n{\n\tstruct pci_dev *pdev = dev->pdev;\n\tint err = 0;\n\n\tmutex_lock(&dev->pci_status_mutex);\n\tif (dev->pci_status == MLX5_PCI_STATUS_DISABLED) {\n\t\terr = pci_enable_device(pdev);\n\t\tif (!err)\n\t\t\tdev->pci_status = MLX5_PCI_STATUS_ENABLED;\n\t}\n\tmutex_unlock(&dev->pci_status_mutex);\n\n\treturn err;\n}\n\nstatic void mlx5_pci_disable_device(struct mlx5_core_dev *dev)\n{\n\tstruct pci_dev *pdev = dev->pdev;\n\n\tmutex_lock(&dev->pci_status_mutex);\n\tif (dev->pci_status == MLX5_PCI_STATUS_ENABLED) {\n\t\tpci_disable_device(pdev);\n\t\tdev->pci_status = MLX5_PCI_STATUS_DISABLED;\n\t}\n\tmutex_unlock(&dev->pci_status_mutex);\n}\n\nstatic int request_bar(struct pci_dev *pdev)\n{\n\tint err = 0;\n\n\tif (!(pci_resource_flags(pdev, 0) & IORESOURCE_MEM)) {\n\t\tdev_err(&pdev->dev, \"Missing registers BAR, aborting\\n\");\n\t\treturn -ENODEV;\n\t}\n\n\terr = pci_request_regions(pdev, DRIVER_NAME);\n\tif (err)\n\t\tdev_err(&pdev->dev, \"Couldn't get PCI resources, aborting\\n\");\n\n\treturn err;\n}\n\nstatic void release_bar(struct pci_dev *pdev)\n{\n\tpci_release_regions(pdev);\n}\n\nstruct mlx5_reg_host_endianness {\n\tu8\the;\n\tu8 rsvd[15];\n};\n\n#define CAP_MASK(pos, size) ((u64)((1 << (size)) - 1) << (pos))\n\nenum {\n\tMLX5_CAP_BITS_RW_MASK = CAP_MASK(MLX5_CAP_OFF_CMDIF_CSUM, 2) |\n\t\t\t\tMLX5_DEV_CAP_FLAG_DCT,\n};\n\nstatic u16 to_fw_pkey_sz(struct mlx5_core_dev *dev, u32 size)\n{\n\tswitch (size) {\n\tcase 128:\n\t\treturn 0;\n\tcase 256:\n\t\treturn 1;\n\tcase 512:\n\t\treturn 2;\n\tcase 1024:\n\t\treturn 3;\n\tcase 2048:\n\t\treturn 4;\n\tcase 4096:\n\t\treturn 5;\n\tdefault:\n\t\tmlx5_core_warn(dev, \"invalid pkey table size %d\\n\", size);\n\t\treturn 0;\n\t}\n}\n\nstatic int mlx5_core_get_caps_mode(struct mlx5_core_dev *dev,\n\t\t\t\t enum mlx5_cap_type cap_type,\n\t\t\t\t enum mlx5_cap_mode cap_mode)\n{\n\tu8 in[MLX5_ST_SZ_BYTES(query_hca_cap_in)];\n\tint out_sz = MLX5_ST_SZ_BYTES(query_hca_cap_out);\n\tvoid *out, *hca_caps;\n\tu16 opmod = (cap_type << 1) | (cap_mode & 0x01);\n\tint err;\n\n\tmemset(in, 0, sizeof(in));\n\tout = kzalloc(out_sz, GFP_KERNEL);\n\tif (!out)\n\t\treturn -ENOMEM;\n\n\tMLX5_SET(query_hca_cap_in, in, opcode, MLX5_CMD_OP_QUERY_HCA_CAP);\n\tMLX5_SET(query_hca_cap_in, in, op_mod, opmod);\n\terr = mlx5_cmd_exec(dev, in, sizeof(in), out, out_sz);\n\tif (err) {\n\t\tmlx5_core_warn(dev,\n\t\t\t \"QUERY_HCA_CAP : type(%x) opmode(%x) Failed(%d)\\n\",\n\t\t\t cap_type, cap_mode, err);\n\t\tgoto query_ex;\n\t}\n\n\thca_caps = MLX5_ADDR_OF(query_hca_cap_out, out, capability);\n\n\tswitch (cap_mode) {\n\tcase HCA_CAP_OPMOD_GET_MAX:\n\t\tmemcpy(dev->caps.hca_max[cap_type], hca_caps,\n\t\t MLX5_UN_SZ_BYTES(hca_cap_union));\n\t\tbreak;\n\tcase HCA_CAP_OPMOD_GET_CUR:\n\t\tmemcpy(dev->caps.hca_cur[cap_type], hca_caps,\n\t\t MLX5_UN_SZ_BYTES(hca_cap_union));\n\t\tbreak;\n\tdefault:\n\t\tmlx5_core_warn(dev,\n\t\t\t \"Tried to query dev cap type(%x) with wrong opmode(%x)\\n\",\n\t\t\t cap_type, cap_mode);\n\t\terr = -EINVAL;\n\t\tbreak;\n\t}\nquery_ex:\n\tkfree(out);\n\treturn err;\n}\n\nint mlx5_core_get_caps(struct mlx5_core_dev *dev, enum mlx5_cap_type cap_type)\n{\n\tint ret;\n\n\tret = mlx5_core_get_caps_mode(dev, cap_type, HCA_CAP_OPMOD_GET_CUR);\n\tif (ret)\n\t\treturn ret;\n\treturn mlx5_core_get_caps_mode(dev, cap_type, HCA_CAP_OPMOD_GET_MAX);\n}\n\nstatic int set_caps(struct mlx5_core_dev *dev, void *in, int in_sz, int opmod)\n{\n\tu32 out[MLX5_ST_SZ_DW(set_hca_cap_out)] = {0};\n\n\tMLX5_SET(set_hca_cap_in, in, opcode, MLX5_CMD_OP_SET_HCA_CAP);\n\tMLX5_SET(set_hca_cap_in, in, op_mod, opmod << 1);\n\treturn mlx5_cmd_exec(dev, in, in_sz, out, sizeof(out));\n}\n\nstatic int handle_hca_cap_atomic(struct mlx5_core_dev *dev)\n{\n\tvoid *set_ctx;\n\tvoid *set_hca_cap;\n\tint set_sz = MLX5_ST_SZ_BYTES(set_hca_cap_in);\n\tint req_endianness;\n\tint err;\n\n\tif (MLX5_CAP_GEN(dev, atomic)) {\n\t\terr = mlx5_core_get_caps(dev, MLX5_CAP_ATOMIC);\n\t\tif (err)\n\t\t\treturn err;\n\t} else {\n\t\treturn 0;\n\t}\n\n\treq_endianness =\n\t\tMLX5_CAP_ATOMIC(dev,\n\t\t\t\tsupported_atomic_req_8B_endianness_mode_1);\n\n\tif (req_endianness != MLX5_ATOMIC_REQ_MODE_HOST_ENDIANNESS)\n\t\treturn 0;\n\n\tset_ctx = kzalloc(set_sz, GFP_KERNEL);\n\tif (!set_ctx)\n\t\treturn -ENOMEM;\n\n\tset_hca_cap = MLX5_ADDR_OF(set_hca_cap_in, set_ctx, capability);\n\n\t/* Set requestor to host endianness */\n\tMLX5_SET(atomic_caps, set_hca_cap, atomic_req_8B_endianness_mode,\n\t\t MLX5_ATOMIC_REQ_MODE_HOST_ENDIANNESS);\n\n\terr = set_caps(dev, set_ctx, set_sz, MLX5_SET_HCA_CAP_OP_MOD_ATOMIC);\n\n\tkfree(set_ctx);\n\treturn err;\n}\n\nstatic int handle_hca_cap_odp(struct mlx5_core_dev *dev)\n{\n\tvoid *set_hca_cap;\n\tvoid *set_ctx;\n\tint set_sz;\n\tbool do_set = false;\n\tint err;\n\n\tif (!IS_ENABLED(CONFIG_INFINIBAND_ON_DEMAND_PAGING) ||\n\t !MLX5_CAP_GEN(dev, pg))\n\t\treturn 0;\n\n\terr = mlx5_core_get_caps(dev, MLX5_CAP_ODP);\n\tif (err)\n\t\treturn err;\n\n\tset_sz = MLX5_ST_SZ_BYTES(set_hca_cap_in);\n\tset_ctx = kzalloc(set_sz, GFP_KERNEL);\n\tif (!set_ctx)\n\t\treturn -ENOMEM;\n\n\tset_hca_cap = MLX5_ADDR_OF(set_hca_cap_in, set_ctx, capability);\n\tmemcpy(set_hca_cap, dev->caps.hca_cur[MLX5_CAP_ODP],\n\t MLX5_ST_SZ_BYTES(odp_cap));\n\n#define ODP_CAP_SET_MAX(dev, field) \\\n\tdo { \\\n\t\tu32 _res = MLX5_CAP_ODP_MAX(dev, field); \\\n\t\tif (_res) { \\\n\t\t\tdo_set = true; \\\n\t\t\tMLX5_SET(odp_cap, set_hca_cap, field, _res); \\\n\t\t} \\\n\t} while (0)\n\n\tODP_CAP_SET_MAX(dev, ud_odp_caps.srq_receive);\n\tODP_CAP_SET_MAX(dev, rc_odp_caps.srq_receive);\n\tODP_CAP_SET_MAX(dev, xrc_odp_caps.srq_receive);\n\tODP_CAP_SET_MAX(dev, xrc_odp_caps.send);\n\tODP_CAP_SET_MAX(dev, xrc_odp_caps.receive);\n\tODP_CAP_SET_MAX(dev, xrc_odp_caps.write);\n\tODP_CAP_SET_MAX(dev, xrc_odp_caps.read);\n\tODP_CAP_SET_MAX(dev, xrc_odp_caps.atomic);\n\tODP_CAP_SET_MAX(dev, dc_odp_caps.srq_receive);\n\tODP_CAP_SET_MAX(dev, dc_odp_caps.send);\n\tODP_CAP_SET_MAX(dev, dc_odp_caps.receive);\n\tODP_CAP_SET_MAX(dev, dc_odp_caps.write);\n\tODP_CAP_SET_MAX(dev, dc_odp_caps.read);\n\tODP_CAP_SET_MAX(dev, dc_odp_caps.atomic);\n\n\tif (do_set)\n\t\terr = set_caps(dev, set_ctx, set_sz,\n\t\t\t MLX5_SET_HCA_CAP_OP_MOD_ODP);\n\n\tkfree(set_ctx);\n\n\treturn err;\n}\n\nstatic int handle_hca_cap(struct mlx5_core_dev *dev)\n{\n\tvoid *set_ctx = NULL;\n\tstruct mlx5_profile *prof = dev->profile;\n\tint err = -ENOMEM;\n\tint set_sz = MLX5_ST_SZ_BYTES(set_hca_cap_in);\n\tvoid *set_hca_cap;\n\n\tset_ctx = kzalloc(set_sz, GFP_KERNEL);\n\tif (!set_ctx)\n\t\tgoto query_ex;\n\n\terr = mlx5_core_get_caps(dev, MLX5_CAP_GENERAL);\n\tif (err)\n\t\tgoto query_ex;\n\n\tset_hca_cap = MLX5_ADDR_OF(set_hca_cap_in, set_ctx,\n\t\t\t\t capability);\n\tmemcpy(set_hca_cap, dev->caps.hca_cur[MLX5_CAP_GENERAL],\n\t MLX5_ST_SZ_BYTES(cmd_hca_cap));\n\n\tmlx5_core_dbg(dev, \"Current Pkey table size %d Setting new size %d\\n\",\n\t\t mlx5_to_sw_pkey_sz(MLX5_CAP_GEN(dev, pkey_table_size)),\n\t\t 128);\n\t/* we limit the size of the pkey table to 128 entries for now */\n\tMLX5_SET(cmd_hca_cap, set_hca_cap, pkey_table_size,\n\t\t to_fw_pkey_sz(dev, 128));\n\n\t/* Check log_max_qp from HCA caps to set in current profile */\n\tif (MLX5_CAP_GEN_MAX(dev, log_max_qp) < profile[prof_sel].log_max_qp) {\n\t\tmlx5_core_warn(dev, \"log_max_qp value in current profile is %d, changing it to HCA capability limit (%d)\\n\",\n\t\t\t profile[prof_sel].log_max_qp,\n\t\t\t MLX5_CAP_GEN_MAX(dev, log_max_qp));\n\t\tprofile[prof_sel].log_max_qp = MLX5_CAP_GEN_MAX(dev, log_max_qp);\n\t}\n\tif (prof->mask & MLX5_PROF_MASK_QP_SIZE)\n\t\tMLX5_SET(cmd_hca_cap, set_hca_cap, log_max_qp,\n\t\t\t prof->log_max_qp);\n\n\t/* disable cmdif checksum */\n\tMLX5_SET(cmd_hca_cap, set_hca_cap, cmdif_checksum, 0);\n\n\t/* Enable 4K UAR only when HCA supports it and page size is bigger\n\t * than 4K.\n\t */\n\tif (MLX5_CAP_GEN_MAX(dev, uar_4k) && PAGE_SIZE > 4096)\n\t\tMLX5_SET(cmd_hca_cap, set_hca_cap, uar_4k, 1);\n\n\tMLX5_SET(cmd_hca_cap, set_hca_cap, log_uar_page_sz, PAGE_SHIFT - 12);\n\n\tif (MLX5_CAP_GEN_MAX(dev, cache_line_128byte))\n\t\tMLX5_SET(cmd_hca_cap,\n\t\t\t set_hca_cap,\n\t\t\t cache_line_128byte,\n\t\t\t cache_line_size() >= 128 ? 1 : 0);\n\n\tif (MLX5_CAP_GEN_MAX(dev, dct))\n\t\tMLX5_SET(cmd_hca_cap, set_hca_cap, dct, 1);\n\n\tif (MLX5_CAP_GEN_MAX(dev, num_vhca_ports))\n\t\tMLX5_SET(cmd_hca_cap,\n\t\t\t set_hca_cap,\n\t\t\t num_vhca_ports,\n\t\t\t MLX5_CAP_GEN_MAX(dev, num_vhca_ports));\n\n\terr = set_caps(dev, set_ctx, set_sz,\n\t\t MLX5_SET_HCA_CAP_OP_MOD_GENERAL_DEVICE);\n\nquery_ex:\n\tkfree(set_ctx);\n\treturn err;\n}\n\nstatic int set_hca_cap(struct mlx5_core_dev *dev)\n{\n\tint err;\n\n\terr = handle_hca_cap(dev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"handle_hca_cap failed\\n\");\n\t\tgoto out;\n\t}\n\n\terr = handle_hca_cap_atomic(dev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"handle_hca_cap_atomic failed\\n\");\n\t\tgoto out;\n\t}\n\n\terr = handle_hca_cap_odp(dev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"handle_hca_cap_odp failed\\n\");\n\t\tgoto out;\n\t}\n\nout:\n\treturn err;\n}\n\nstatic int set_hca_ctrl(struct mlx5_core_dev *dev)\n{\n\tstruct mlx5_reg_host_endianness he_in;\n\tstruct mlx5_reg_host_endianness he_out;\n\tint err;\n\n\tif (!mlx5_core_is_pf(dev))\n\t\treturn 0;\n\n\tmemset(&he_in, 0, sizeof(he_in));\n\the_in.he = MLX5_SET_HOST_ENDIANNESS;\n\terr = mlx5_core_access_reg(dev, &he_in, sizeof(he_in),\n\t\t\t\t\t&he_out, sizeof(he_out),\n\t\t\t\t\tMLX5_REG_HOST_ENDIANNESS, 0, 1);\n\treturn err;\n}\n\nstatic int mlx5_core_set_hca_defaults(struct mlx5_core_dev *dev)\n{\n\tint ret = 0;\n\n\t/* Disable local_lb by default */\n\tif (MLX5_CAP_GEN(dev, port_type) == MLX5_CAP_PORT_TYPE_ETH)\n\t\tret = mlx5_nic_vport_update_local_lb(dev, false);\n\n\treturn ret;\n}\n\nint mlx5_core_enable_hca(struct mlx5_core_dev *dev, u16 func_id)\n{\n\tu32 out[MLX5_ST_SZ_DW(enable_hca_out)] = {0};\n\tu32 in[MLX5_ST_SZ_DW(enable_hca_in)] = {0};\n\n\tMLX5_SET(enable_hca_in, in, opcode, MLX5_CMD_OP_ENABLE_HCA);\n\tMLX5_SET(enable_hca_in, in, function_id, func_id);\n\tMLX5_SET(enable_hca_in, in, embedded_cpu_function,\n\t\t dev->caps.embedded_cpu);\n\treturn mlx5_cmd_exec(dev, &in, sizeof(in), &out, sizeof(out));\n}\n\nint mlx5_core_disable_hca(struct mlx5_core_dev *dev, u16 func_id)\n{\n\tu32 out[MLX5_ST_SZ_DW(disable_hca_out)] = {0};\n\tu32 in[MLX5_ST_SZ_DW(disable_hca_in)] = {0};\n\n\tMLX5_SET(disable_hca_in, in, opcode, MLX5_CMD_OP_DISABLE_HCA);\n\tMLX5_SET(disable_hca_in, in, function_id, func_id);\n\tMLX5_SET(enable_hca_in, in, embedded_cpu_function,\n\t\t dev->caps.embedded_cpu);\n\treturn mlx5_cmd_exec(dev, in, sizeof(in), out, sizeof(out));\n}\n\nu64 mlx5_read_internal_timer(struct mlx5_core_dev *dev,\n\t\t\t struct ptp_system_timestamp *sts)\n{\n\tu32 timer_h, timer_h1, timer_l;\n\n\ttimer_h = ioread32be(&dev->iseg->internal_timer_h);\n\tptp_read_system_prets(sts);\n\ttimer_l = ioread32be(&dev->iseg->internal_timer_l);\n\tptp_read_system_postts(sts);\n\ttimer_h1 = ioread32be(&dev->iseg->internal_timer_h);\n\tif (timer_h != timer_h1) {\n\t\t/* wrap around */\n\t\tptp_read_system_prets(sts);\n\t\ttimer_l = ioread32be(&dev->iseg->internal_timer_l);\n\t\tptp_read_system_postts(sts);\n\t}\n\n\treturn (u64)timer_l | (u64)timer_h1 << 32;\n}\n\nstatic int mlx5_core_set_issi(struct mlx5_core_dev *dev)\n{\n\tu32 query_in[MLX5_ST_SZ_DW(query_issi_in)] = {0};\n\tu32 query_out[MLX5_ST_SZ_DW(query_issi_out)] = {0};\n\tu32 sup_issi;\n\tint err;\n\n\tMLX5_SET(query_issi_in, query_in, opcode, MLX5_CMD_OP_QUERY_ISSI);\n\terr = mlx5_cmd_exec(dev, query_in, sizeof(query_in),\n\t\t\t query_out, sizeof(query_out));\n\tif (err) {\n\t\tu32 syndrome;\n\t\tu8 status;\n\n\t\tmlx5_cmd_mbox_status(query_out, &status, &syndrome);\n\t\tif (!status || syndrome == MLX5_DRIVER_SYND) {\n\t\t\tmlx5_core_err(dev, \"Failed to query ISSI err(%d) status(%d) synd(%d)\\n\",\n\t\t\t\t err, status, syndrome);\n\t\t\treturn err;\n\t\t}\n\n\t\tmlx5_core_warn(dev, \"Query ISSI is not supported by FW, ISSI is 0\\n\");\n\t\tdev->issi = 0;\n\t\treturn 0;\n\t}\n\n\tsup_issi = MLX5_GET(query_issi_out, query_out, supported_issi_dw0);\n\n\tif (sup_issi & (1 << 1)) {\n\t\tu32 set_in[MLX5_ST_SZ_DW(set_issi_in)] = {0};\n\t\tu32 set_out[MLX5_ST_SZ_DW(set_issi_out)] = {0};\n\n\t\tMLX5_SET(set_issi_in, set_in, opcode, MLX5_CMD_OP_SET_ISSI);\n\t\tMLX5_SET(set_issi_in, set_in, current_issi, 1);\n\t\terr = mlx5_cmd_exec(dev, set_in, sizeof(set_in),\n\t\t\t\t set_out, sizeof(set_out));\n\t\tif (err) {\n\t\t\tmlx5_core_err(dev, \"Failed to set ISSI to 1 err(%d)\\n\",\n\t\t\t\t err);\n\t\t\treturn err;\n\t\t}\n\n\t\tdev->issi = 1;\n\n\t\treturn 0;\n\t} else if (sup_issi & (1 << 0) || !sup_issi) {\n\t\treturn 0;\n\t}\n\n\treturn -EOPNOTSUPP;\n}\n\nstatic int mlx5_pci_init(struct mlx5_core_dev *dev, struct pci_dev *pdev,\n\t\t\t const struct pci_device_id *id)\n{\n\tstruct mlx5_priv *priv = &dev->priv;\n\tint err = 0;\n\n\tmutex_init(&dev->pci_status_mutex);\n\tpci_set_drvdata(dev->pdev, dev);\n\n\tdev->bar_addr = pci_resource_start(pdev, 0);\n\tpriv->numa_node = dev_to_node(&dev->pdev->dev);\n\n\terr = mlx5_pci_enable_device(dev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"Cannot enable PCI device, aborting\\n\");\n\t\treturn err;\n\t}\n\n\terr = request_bar(pdev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"error requesting BARs, aborting\\n\");\n\t\tgoto err_disable;\n\t}\n\n\tpci_set_master(pdev);\n\n\terr = set_dma_caps(pdev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"Failed setting DMA capabilities mask, aborting\\n\");\n\t\tgoto err_clr_master;\n\t}\n\n\tif (pci_enable_atomic_ops_to_root(pdev, PCI_EXP_DEVCAP2_ATOMIC_COMP32) &&\n\t pci_enable_atomic_ops_to_root(pdev, PCI_EXP_DEVCAP2_ATOMIC_COMP64) &&\n\t pci_enable_atomic_ops_to_root(pdev, PCI_EXP_DEVCAP2_ATOMIC_COMP128))\n\t\tmlx5_core_dbg(dev, \"Enabling pci atomics failed\\n\");\n\n\tdev->iseg_base = dev->bar_addr;\n\tdev->iseg = ioremap(dev->iseg_base, sizeof(*dev->iseg));\n\tif (!dev->iseg) {\n\t\terr = -ENOMEM;\n\t\tmlx5_core_err(dev, \"Failed mapping initialization segment, aborting\\n\");\n\t\tgoto err_clr_master;\n\t}\n\n\tmlx5_pci_vsc_init(dev);\n\n\treturn 0;\n\nerr_clr_master:\n\tpci_clear_master(dev->pdev);\n\trelease_bar(dev->pdev);\nerr_disable:\n\tmlx5_pci_disable_device(dev);\n\treturn err;\n}\n\nstatic void mlx5_pci_close(struct mlx5_core_dev *dev)\n{\n\tiounmap(dev->iseg);\n\tpci_clear_master(dev->pdev);\n\trelease_bar(dev->pdev);\n\tmlx5_pci_disable_device(dev);\n}\n\nstatic int mlx5_init_once(struct mlx5_core_dev *dev)\n{\n\tint err;\n\n\tdev->priv.devcom = mlx5_devcom_register_device(dev);\n\tif (IS_ERR(dev->priv.devcom))\n\t\tmlx5_core_err(dev, \"failed to register with devcom (0x%p)\\n\",\n\t\t\t dev->priv.devcom);\n\n\terr = mlx5_query_board_id(dev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"query board id failed\\n\");\n\t\tgoto err_devcom;\n\t}\n\n\terr = mlx5_irq_table_init(dev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"failed to initialize irq table\\n\");\n\t\tgoto err_devcom;\n\t}\n\n\terr = mlx5_eq_table_init(dev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"failed to initialize eq\\n\");\n\t\tgoto err_irq_cleanup;\n\t}\n\n\terr = mlx5_events_init(dev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"failed to initialize events\\n\");\n\t\tgoto err_eq_cleanup;\n\t}\n\n\tmlx5_cq_debugfs_init(dev);\n\n\tmlx5_init_qp_table(dev);\n\n\tmlx5_init_reserved_gids(dev);\n\n\tmlx5_init_clock(dev);\n\n\tdev->vxlan = mlx5_vxlan_create(dev);\n\tdev->geneve = mlx5_geneve_create(dev);\n\n\terr = mlx5_init_rl_table(dev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"Failed to init rate limiting\\n\");\n\t\tgoto err_tables_cleanup;\n\t}\n\n\terr = mlx5_mpfs_init(dev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"Failed to init l2 table %d\\n\", err);\n\t\tgoto err_rl_cleanup;\n\t}\n\n\terr = mlx5_sriov_init(dev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"Failed to init sriov %d\\n\", err);\n\t\tgoto err_mpfs_cleanup;\n\t}\n\n\terr = mlx5_eswitch_init(dev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"Failed to init eswitch %d\\n\", err);\n\t\tgoto err_sriov_cleanup;\n\t}\n\n\terr = mlx5_fpga_init(dev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"Failed to init fpga device %d\\n\", err);\n\t\tgoto err_eswitch_cleanup;\n\t}\n\n\tdev->dm = mlx5_dm_create(dev);\n\tif (IS_ERR(dev->dm))\n\t\tmlx5_core_warn(dev, \"Failed to init device memory%d\\n\", err);\n\n\tdev->tracer = mlx5_fw_tracer_create(dev);\n\tdev->hv_vhca = mlx5_hv_vhca_create(dev);\n\n\treturn 0;\n\nerr_eswitch_cleanup:\n\tmlx5_eswitch_cleanup(dev->priv.eswitch);\nerr_sriov_cleanup:\n\tmlx5_sriov_cleanup(dev);\nerr_mpfs_cleanup:\n\tmlx5_mpfs_cleanup(dev);\nerr_rl_cleanup:\n\tmlx5_cleanup_rl_table(dev);\nerr_tables_cleanup:\n\tmlx5_geneve_destroy(dev->geneve);\n\tmlx5_vxlan_destroy(dev->vxlan);\n\tmlx5_cleanup_qp_table(dev);\n\tmlx5_cq_debugfs_cleanup(dev);\n\tmlx5_events_cleanup(dev);\nerr_eq_cleanup:\n\tmlx5_eq_table_cleanup(dev);\nerr_irq_cleanup:\n\tmlx5_irq_table_cleanup(dev);\nerr_devcom:\n\tmlx5_devcom_unregister_device(dev->priv.devcom);\n\n\treturn err;\n}\n\nstatic void mlx5_cleanup_once(struct mlx5_core_dev *dev)\n{\n\tmlx5_hv_vhca_destroy(dev->hv_vhca);\n\tmlx5_fw_tracer_destroy(dev->tracer);\n\tmlx5_dm_cleanup(dev);\n\tmlx5_fpga_cleanup(dev);\n\tmlx5_eswitch_cleanup(dev->priv.eswitch);\n\tmlx5_sriov_cleanup(dev);\n\tmlx5_mpfs_cleanup(dev);\n\tmlx5_cleanup_rl_table(dev);\n\tmlx5_geneve_destroy(dev->geneve);\n\tmlx5_vxlan_destroy(dev->vxlan);\n\tmlx5_cleanup_clock(dev);\n\tmlx5_cleanup_reserved_gids(dev);\n\tmlx5_cleanup_qp_table(dev);\n\tmlx5_cq_debugfs_cleanup(dev);\n\tmlx5_events_cleanup(dev);\n\tmlx5_eq_table_cleanup(dev);\n\tmlx5_irq_table_cleanup(dev);\n\tmlx5_devcom_unregister_device(dev->priv.devcom);\n}\n\nstatic int mlx5_function_setup(struct mlx5_core_dev *dev, bool boot)\n{\n\tint err;\n\n\tmlx5_core_info(dev, \"firmware version: %d.%d.%d\\n\", fw_rev_maj(dev),\n\t\t fw_rev_min(dev), fw_rev_sub(dev));\n\n\t/* Only PFs hold the relevant PCIe information for this query */\n\tif (mlx5_core_is_pf(dev))\n\t\tpcie_print_link_status(dev->pdev);\n\n\t/* wait for firmware to accept initialization segments configurations\n\t */\n\terr = wait_fw_init(dev, FW_PRE_INIT_TIMEOUT_MILI, FW_INIT_WARN_MESSAGE_INTERVAL);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"Firmware over %d MS in pre-initializing state, aborting\\n\",\n\t\t\t FW_PRE_INIT_TIMEOUT_MILI);\n\t\treturn err;\n\t}\n\n\terr = mlx5_cmd_init(dev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"Failed initializing command interface, aborting\\n\");\n\t\treturn err;\n\t}\n\n\terr = wait_fw_init(dev, FW_INIT_TIMEOUT_MILI, 0);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"Firmware over %d MS in initializing state, aborting\\n\",\n\t\t\t FW_INIT_TIMEOUT_MILI);\n\t\tgoto err_cmd_cleanup;\n\t}\n\n\terr = mlx5_core_enable_hca(dev, 0);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"enable hca failed\\n\");\n\t\tgoto err_cmd_cleanup;\n\t}\n\n\terr = mlx5_core_set_issi(dev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"failed to set issi\\n\");\n\t\tgoto err_disable_hca;\n\t}\n\n\terr = mlx5_satisfy_startup_pages(dev, 1);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"failed to allocate boot pages\\n\");\n\t\tgoto err_disable_hca;\n\t}\n\n\terr = set_hca_ctrl(dev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"set_hca_ctrl failed\\n\");\n\t\tgoto reclaim_boot_pages;\n\t}\n\n\terr = set_hca_cap(dev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"set_hca_cap failed\\n\");\n\t\tgoto reclaim_boot_pages;\n\t}\n\n\terr = mlx5_satisfy_startup_pages(dev, 0);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"failed to allocate init pages\\n\");\n\t\tgoto reclaim_boot_pages;\n\t}\n\n\terr = mlx5_cmd_init_hca(dev, sw_owner_id);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"init hca failed\\n\");\n\t\tgoto reclaim_boot_pages;\n\t}\n\n\tmlx5_set_driver_version(dev);\n\n\tmlx5_start_health_poll(dev);\n\n\terr = mlx5_query_hca_caps(dev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"query hca failed\\n\");\n\t\tgoto stop_health;\n\t}\n\n\treturn 0;\n\nstop_health:\n\tmlx5_stop_health_poll(dev, boot);\nreclaim_boot_pages:\n\tmlx5_reclaim_startup_pages(dev);\nerr_disable_hca:\n\tmlx5_core_disable_hca(dev, 0);\nerr_cmd_cleanup:\n\tmlx5_cmd_cleanup(dev);\n\n\treturn err;\n}\n\nstatic int mlx5_function_teardown(struct mlx5_core_dev *dev, bool boot)\n{\n\tint err;\n\n\tmlx5_stop_health_poll(dev, boot);\n\terr = mlx5_cmd_teardown_hca(dev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"tear_down_hca failed, skip cleanup\\n\");\n\t\treturn err;\n\t}\n\tmlx5_reclaim_startup_pages(dev);\n\tmlx5_core_disable_hca(dev, 0);\n\tmlx5_cmd_cleanup(dev);\n\n\treturn 0;\n}\n\nstatic int mlx5_load(struct mlx5_core_dev *dev)\n{\n\tint err;\n\n\tdev->priv.uar = mlx5_get_uars_page(dev);\n\tif (IS_ERR(dev->priv.uar)) {\n\t\tmlx5_core_err(dev, \"Failed allocating uar, aborting\\n\");\n\t\terr = PTR_ERR(dev->priv.uar);\n\t\treturn err;\n\t}\n\n\tmlx5_events_start(dev);\n\tmlx5_pagealloc_start(dev);\n\n\terr = mlx5_irq_table_create(dev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"Failed to alloc IRQs\\n\");\n\t\tgoto err_irq_table;\n\t}\n\n\terr = mlx5_eq_table_create(dev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"Failed to create EQs\\n\");\n\t\tgoto err_eq_table;\n\t}\n\n\terr = mlx5_fw_tracer_init(dev->tracer);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"Failed to init FW tracer\\n\");\n\t\tgoto err_fw_tracer;\n\t}\n\n\tmlx5_hv_vhca_init(dev->hv_vhca);\n\n\terr = mlx5_fpga_device_start(dev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"fpga device start failed %d\\n\", err);\n\t\tgoto err_fpga_start;\n\t}\n\n\terr = mlx5_accel_ipsec_init(dev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"IPSec device start failed %d\\n\", err);\n\t\tgoto err_ipsec_start;\n\t}\n\n\terr = mlx5_accel_tls_init(dev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"TLS device start failed %d\\n\", err);\n\t\tgoto err_tls_start;\n\t}\n\n\terr = mlx5_init_fs(dev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"Failed to init flow steering\\n\");\n\t\tgoto err_fs;\n\t}\n\n\terr = mlx5_core_set_hca_defaults(dev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"Failed to set hca defaults\\n\");\n\t\tgoto err_sriov;\n\t}\n\n\terr = mlx5_sriov_attach(dev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"sriov init failed %d\\n\", err);\n\t\tgoto err_sriov;\n\t}\n\n\terr = mlx5_ec_init(dev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"Failed to init embedded CPU\\n\");\n\t\tgoto err_ec;\n\t}\n\n\treturn 0;\n\nerr_ec:\n\tmlx5_sriov_detach(dev);\nerr_sriov:\n\tmlx5_cleanup_fs(dev);\nerr_fs:\n\tmlx5_accel_tls_cleanup(dev);\nerr_tls_start:\n\tmlx5_accel_ipsec_cleanup(dev);\nerr_ipsec_start:\n\tmlx5_fpga_device_stop(dev);\nerr_fpga_start:\n\tmlx5_hv_vhca_cleanup(dev->hv_vhca);\n\tmlx5_fw_tracer_cleanup(dev->tracer);\nerr_fw_tracer:\n\tmlx5_eq_table_destroy(dev);\nerr_eq_table:\n\tmlx5_irq_table_destroy(dev);\nerr_irq_table:\n\tmlx5_pagealloc_stop(dev);\n\tmlx5_events_stop(dev);\n\tmlx5_put_uars_page(dev, dev->priv.uar);\n\treturn err;\n}\n\nstatic void mlx5_unload(struct mlx5_core_dev *dev)\n{\n\tmlx5_ec_cleanup(dev);\n\tmlx5_sriov_detach(dev);\n\tmlx5_cleanup_fs(dev);\n\tmlx5_accel_ipsec_cleanup(dev);\n\tmlx5_accel_tls_cleanup(dev);\n\tmlx5_fpga_device_stop(dev);\n\tmlx5_hv_vhca_cleanup(dev->hv_vhca);\n\tmlx5_fw_tracer_cleanup(dev->tracer);\n\tmlx5_eq_table_destroy(dev);\n\tmlx5_irq_table_destroy(dev);\n\tmlx5_pagealloc_stop(dev);\n\tmlx5_events_stop(dev);\n\tmlx5_put_uars_page(dev, dev->priv.uar);\n}\n\nint mlx5_load_one(struct mlx5_core_dev *dev, bool boot)\n{\n\tint err = 0;\n\n\tdev->caps.embedded_cpu = mlx5_read_embedded_cpu(dev);\n\tmutex_lock(&dev->intf_state_mutex);\n\tif (test_bit(MLX5_INTERFACE_STATE_UP, &dev->intf_state)) {\n\t\tmlx5_core_warn(dev, \"interface is up, NOP\\n\");\n\t\tgoto out;\n\t}\n\t/* remove any previous indication of internal error */\n\tdev->state = MLX5_DEVICE_STATE_UP;\n\n\terr = mlx5_function_setup(dev, boot);\n\tif (err)\n\t\tgoto out;\n\n\tif (boot) {\n\t\terr = mlx5_init_once(dev);\n\t\tif (err) {\n\t\t\tmlx5_core_err(dev, \"sw objs init failed\\n\");\n\t\t\tgoto function_teardown;\n\t\t}\n\t}\n\n\terr = mlx5_load(dev);\n\tif (err)\n\t\tgoto err_load;\n\n\tif (boot) {\n\t\terr = mlx5_devlink_register(priv_to_devlink(dev), dev->device);\n\t\tif (err)\n\t\t\tgoto err_devlink_reg;\n\t}\n\n\tif (mlx5_device_registered(dev)) {\n\t\tmlx5_attach_device(dev);\n\t} else {\n\t\terr = mlx5_register_device(dev);\n\t\tif (err) {\n\t\t\tmlx5_core_err(dev, \"register device failed %d\\n\", err);\n\t\t\tgoto err_reg_dev;\n\t\t}\n\t}\n\n\tset_bit(MLX5_INTERFACE_STATE_UP, &dev->intf_state);\nout:\n\tmutex_unlock(&dev->intf_state_mutex);\n\n\treturn err;\n\nerr_reg_dev:\n\tif (boot)\n\t\tmlx5_devlink_unregister(priv_to_devlink(dev));\nerr_devlink_reg:\n\tmlx5_unload(dev);\nerr_load:\n\tif (boot)\n\t\tmlx5_cleanup_once(dev);\nfunction_teardown:\n\tmlx5_function_teardown(dev, boot);\n\tdev->state = MLX5_DEVICE_STATE_INTERNAL_ERROR;\n\tmutex_unlock(&dev->intf_state_mutex);\n\n\treturn err;\n}\n\nint mlx5_unload_one(struct mlx5_core_dev *dev, bool cleanup)\n{\n\tif (cleanup) {\n\t\tmlx5_unregister_device(dev);\n\t\tmlx5_drain_health_wq(dev);\n\t}\n\n\tmutex_lock(&dev->intf_state_mutex);\n\tif (!test_bit(MLX5_INTERFACE_STATE_UP, &dev->intf_state)) {\n\t\tmlx5_core_warn(dev, \"%s: interface is down, NOP\\n\",\n\t\t\t __func__);\n\t\tif (cleanup)\n\t\t\tmlx5_cleanup_once(dev);\n\t\tgoto out;\n\t}\n\n\tclear_bit(MLX5_INTERFACE_STATE_UP, &dev->intf_state);\n\n\tif (mlx5_device_registered(dev))\n\t\tmlx5_detach_device(dev);\n\n\tmlx5_unload(dev);\n\n\tif (cleanup)\n\t\tmlx5_cleanup_once(dev);\n\n\tmlx5_function_teardown(dev, cleanup);\nout:\n\tmutex_unlock(&dev->intf_state_mutex);\n\treturn 0;\n}\n\nstatic int mlx5_mdev_init(struct mlx5_core_dev *dev, int profile_idx)\n{\n\tstruct mlx5_priv *priv = &dev->priv;\n\tint err;\n\n\tdev->profile = &profile[profile_idx];\n\n\tINIT_LIST_HEAD(&priv->ctx_list);\n\tspin_lock_init(&priv->ctx_lock);\n\tmutex_init(&dev->intf_state_mutex);\n\n\tmutex_init(&priv->bfregs.reg_head.lock);\n\tmutex_init(&priv->bfregs.wc_head.lock);\n\tINIT_LIST_HEAD(&priv->bfregs.reg_head.list);\n\tINIT_LIST_HEAD(&priv->bfregs.wc_head.list);\n\n\tmutex_init(&priv->alloc_mutex);\n\tmutex_init(&priv->pgdir_mutex);\n\tINIT_LIST_HEAD(&priv->pgdir_list);\n\tspin_lock_init(&priv->mkey_lock);\n\n\tpriv->dbg_root = debugfs_create_dir(dev_name(dev->device),\n\t\t\t\t\t mlx5_debugfs_root);\n\tif (!priv->dbg_root) {\n\t\tdev_err(dev->device, \"mlx5_core: error, Cannot create debugfs dir, aborting\\n\");\n\t\treturn -ENOMEM;\n\t}\n\n\terr = mlx5_health_init(dev);\n\tif (err)\n\t\tgoto err_health_init;\n\n\terr = mlx5_pagealloc_init(dev);\n\tif (err)\n\t\tgoto err_pagealloc_init;\n\n\treturn 0;\n\nerr_pagealloc_init:\n\tmlx5_health_cleanup(dev);\nerr_health_init:\n\tdebugfs_remove(dev->priv.dbg_root);\n\n\treturn err;\n}\n\nstatic void mlx5_mdev_uninit(struct mlx5_core_dev *dev)\n{\n\tmlx5_pagealloc_cleanup(dev);\n\tmlx5_health_cleanup(dev);\n\tdebugfs_remove_recursive(dev->priv.dbg_root);\n}\n\n#define MLX5_IB_MOD \"mlx5_ib\"\nstatic int init_one(struct pci_dev *pdev, const struct pci_device_id *id)\n{\n\tstruct mlx5_core_dev *dev;\n\tstruct devlink *devlink;\n\tint err;\n\n\tdevlink = mlx5_devlink_alloc();\n\tif (!devlink) {\n\t\tdev_err(&pdev->dev, \"devlink alloc failed\\n\");\n\t\treturn -ENOMEM;\n\t}\n\n\tdev = devlink_priv(devlink);\n\tdev->device = &pdev->dev;\n\tdev->pdev = pdev;\n\n\tdev->coredev_type = id->driver_data & MLX5_PCI_DEV_IS_VF ?\n\t\t\t MLX5_COREDEV_VF : MLX5_COREDEV_PF;\n\n\terr = mlx5_mdev_init(dev, prof_sel);\n\tif (err)\n\t\tgoto mdev_init_err;\n\n\terr = mlx5_pci_init(dev, pdev, id);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"mlx5_pci_init failed with error code %d\\n\",\n\t\t\t err);\n\t\tgoto pci_init_err;\n\t}\n\n\terr = mlx5_load_one(dev, true);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"mlx5_load_one failed with error code %d\\n\",\n\t\t\t err);\n\t\tgoto err_load_one;\n\t}\n\n\trequest_module_nowait(MLX5_IB_MOD);\n\n\terr = mlx5_crdump_enable(dev);\n\tif (err)\n\t\tdev_err(&pdev->dev, \"mlx5_crdump_enable failed with error code %d\\n\", err);\n\n\tpci_save_state(pdev);\n\treturn 0;\n\nerr_load_one:\n\tmlx5_pci_close(dev);\npci_init_err:\n\tmlx5_mdev_uninit(dev);\nmdev_init_err:\n\tmlx5_devlink_free(devlink);\n\n\treturn err;\n}\n\nstatic void remove_one(struct pci_dev *pdev)\n{\n\tstruct mlx5_core_dev *dev = pci_get_drvdata(pdev);\n\tstruct devlink *devlink = priv_to_devlink(dev);\n\n\tmlx5_crdump_disable(dev);\n\tmlx5_devlink_unregister(devlink);\n\n\tif (mlx5_unload_one(dev, true)) {\n\t\tmlx5_core_err(dev, \"mlx5_unload_one failed\\n\");\n\t\tmlx5_health_flush(dev);\n\t\treturn;\n\t}\n\n\tmlx5_pci_close(dev);\n\tmlx5_mdev_uninit(dev);\n\tmlx5_devlink_free(devlink);\n}\n\nstatic pci_ers_result_t mlx5_pci_err_detected(struct pci_dev *pdev,\n\t\t\t\t\t pci_channel_state_t state)\n{\n\tstruct mlx5_core_dev *dev = pci_get_drvdata(pdev);\n\n\tmlx5_core_info(dev, \"%s was called\\n\", __func__);\n\n\tmlx5_enter_error_state(dev, false);\n\tmlx5_error_sw_reset(dev);\n\tmlx5_unload_one(dev, false);\n\tmlx5_drain_health_wq(dev);\n\tmlx5_pci_disable_device(dev);\n\n\treturn state == pci_channel_io_perm_failure ?\n\t\tPCI_ERS_RESULT_DISCONNECT : PCI_ERS_RESULT_NEED_RESET;\n}\n\n/* wait for the device to show vital signs by waiting\n * for the health counter to start counting.\n */\nstatic int wait_vital(struct pci_dev *pdev)\n{\n\tstruct mlx5_core_dev *dev = pci_get_drvdata(pdev);\n\tstruct mlx5_core_health *health = &dev->priv.health;\n\tconst int niter = 100;\n\tu32 last_count = 0;\n\tu32 count;\n\tint i;\n\n\tfor (i = 0; i < niter; i++) {\n\t\tcount = ioread32be(health->health_counter);\n\t\tif (count && count != 0xffffffff) {\n\t\t\tif (last_count && last_count != count) {\n\t\t\t\tmlx5_core_info(dev,\n\t\t\t\t\t \"wait vital counter value 0x%x after %d iterations\\n\",\n\t\t\t\t\t count, i);\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\tlast_count = count;\n\t\t}\n\t\tmsleep(50);\n\t}\n\n\treturn -ETIMEDOUT;\n}\n\nstatic pci_ers_result_t mlx5_pci_slot_reset(struct pci_dev *pdev)\n{\n\tstruct mlx5_core_dev *dev = pci_get_drvdata(pdev);\n\tint err;\n\n\tmlx5_core_info(dev, \"%s was called\\n\", __func__);\n\n\terr = mlx5_pci_enable_device(dev);\n\tif (err) {\n\t\tmlx5_core_err(dev, \"%s: mlx5_pci_enable_device failed with error code: %d\\n\",\n\t\t\t __func__, err);\n\t\treturn PCI_ERS_RESULT_DISCONNECT;\n\t}\n\n\tpci_set_master(pdev);\n\tpci_restore_state(pdev);\n\tpci_save_state(pdev);\n\n\tif (wait_vital(pdev)) {\n\t\tmlx5_core_err(dev, \"%s: wait_vital timed out\\n\", __func__);\n\t\treturn PCI_ERS_RESULT_DISCONNECT;\n\t}\n\n\treturn PCI_ERS_RESULT_RECOVERED;\n}\n\nstatic void mlx5_pci_resume(struct pci_dev *pdev)\n{\n\tstruct mlx5_core_dev *dev = pci_get_drvdata(pdev);\n\tint err;\n\n\tmlx5_core_info(dev, \"%s was called\\n\", __func__);\n\n\terr = mlx5_load_one(dev, false);\n\tif (err)\n\t\tmlx5_core_err(dev, \"%s: mlx5_load_one failed with error code: %d\\n\",\n\t\t\t __func__, err);\n\telse\n\t\tmlx5_core_info(dev, \"%s: device recovered\\n\", __func__);\n}\n\nstatic const struct pci_error_handlers mlx5_err_handler = {\n\t.error_detected = mlx5_pci_err_detected,\n\t.slot_reset\t= mlx5_pci_slot_reset,\n\t.resume\t\t= mlx5_pci_resume\n};\n\nstatic int mlx5_try_fast_unload(struct mlx5_core_dev *dev)\n{\n\tbool fast_teardown = false, force_teardown = false;\n\tint ret = 1;\n\n\tfast_teardown = MLX5_CAP_GEN(dev, fast_teardown);\n\tforce_teardown = MLX5_CAP_GEN(dev, force_teardown);\n\n\tmlx5_core_dbg(dev, \"force teardown firmware support=%d\\n\", force_teardown);\n\tmlx5_core_dbg(dev, \"fast teardown firmware support=%d\\n\", fast_teardown);\n\n\tif (!fast_teardown && !force_teardown)\n\t\treturn -EOPNOTSUPP;\n\n\tif (dev->state == MLX5_DEVICE_STATE_INTERNAL_ERROR) {\n\t\tmlx5_core_dbg(dev, \"Device in internal error state, giving up\\n\");\n\t\treturn -EAGAIN;\n\t}\n\n\t/* Panic tear down fw command will stop the PCI bus communication\n\t * with the HCA, so the health polll is no longer needed.\n\t */\n\tmlx5_drain_health_wq(dev);\n\tmlx5_stop_health_poll(dev, false);\n\n\tret = mlx5_cmd_fast_teardown_hca(dev);\n\tif (!ret)\n\t\tgoto succeed;\n\n\tret = mlx5_cmd_force_teardown_hca(dev);\n\tif (!ret)\n\t\tgoto succeed;\n\n\tmlx5_core_dbg(dev, \"Firmware couldn't do fast unload error: %d\\n\", ret);\n\tmlx5_start_health_poll(dev);\n\treturn ret;\n\nsucceed:\n\tmlx5_enter_error_state(dev, true);\n\n\t/* Some platforms requiring freeing the IRQ's in the shutdown\n\t * flow. If they aren't freed they can't be allocated after\n\t * kexec. There is no need to cleanup the mlx5_core software\n\t * contexts.\n\t */\n\tmlx5_core_eq_free_irqs(dev);\n\n\treturn 0;\n}\n\nstatic void shutdown(struct pci_dev *pdev)\n{\n\tstruct mlx5_core_dev *dev = pci_get_drvdata(pdev);\n\tint err;\n\n\tmlx5_core_info(dev, \"Shutdown was called\\n\");\n\terr = mlx5_try_fast_unload(dev);\n\tif (err)\n\t\tmlx5_unload_one(dev, false);\n\tmlx5_pci_disable_device(dev);\n}\n\nstatic const struct pci_device_id mlx5_core_pci_table[] = {\n\t{ PCI_VDEVICE(MELLANOX, PCI_DEVICE_ID_MELLANOX_CONNECTIB) },\n\t{ PCI_VDEVICE(MELLANOX, 0x1012), MLX5_PCI_DEV_IS_VF},\t/* Connect-IB VF */\n\t{ PCI_VDEVICE(MELLANOX, PCI_DEVICE_ID_MELLANOX_CONNECTX4) },\n\t{ PCI_VDEVICE(MELLANOX, 0x1014), MLX5_PCI_DEV_IS_VF},\t/* ConnectX-4 VF */\n\t{ PCI_VDEVICE(MELLANOX, PCI_DEVICE_ID_MELLANOX_CONNECTX4_LX) },\n\t{ PCI_VDEVICE(MELLANOX, 0x1016), MLX5_PCI_DEV_IS_VF},\t/* ConnectX-4LX VF */\n\t{ PCI_VDEVICE(MELLANOX, 0x1017) },\t\t\t/* ConnectX-5, PCIe 3.0 */\n\t{ PCI_VDEVICE(MELLANOX, 0x1018), MLX5_PCI_DEV_IS_VF},\t/* ConnectX-5 VF */\n\t{ PCI_VDEVICE(MELLANOX, 0x1019) },\t\t\t/* ConnectX-5 Ex */\n\t{ PCI_VDEVICE(MELLANOX, 0x101a), MLX5_PCI_DEV_IS_VF},\t/* ConnectX-5 Ex VF */\n\t{ PCI_VDEVICE(MELLANOX, 0x101b) },\t\t\t/* ConnectX-6 */\n\t{ PCI_VDEVICE(MELLANOX, 0x101c), MLX5_PCI_DEV_IS_VF},\t/* ConnectX-6 VF */\n\t{ PCI_VDEVICE(MELLANOX, 0x101d) },\t\t\t/* ConnectX-6 Dx */\n\t{ PCI_VDEVICE(MELLANOX, 0x101e), MLX5_PCI_DEV_IS_VF},\t/* ConnectX Family mlx5Gen Virtual Function */\n\t{ PCI_VDEVICE(MELLANOX, 0x101f) },\t\t\t/* ConnectX-6 LX */\n\t{ PCI_VDEVICE(MELLANOX, 0x1021) },\t\t\t/* ConnectX-7 */\n\t{ PCI_VDEVICE(MELLANOX, 0xa2d2) },\t\t\t/* BlueField integrated ConnectX-5 network controller */\n\t{ PCI_VDEVICE(MELLANOX, 0xa2d3), MLX5_PCI_DEV_IS_VF},\t/* BlueField integrated ConnectX-5 network controller VF */\n\t{ PCI_VDEVICE(MELLANOX, 0xa2d6) },\t\t\t/* BlueField-2 integrated ConnectX-6 Dx network controller */\n\t{ 0, }\n};\n\nMODULE_DEVICE_TABLE(pci, mlx5_core_pci_table);\n\nvoid mlx5_disable_device(struct mlx5_core_dev *dev)\n{\n\tmlx5_error_sw_reset(dev);\n\tmlx5_unload_one(dev, false);\n}\n\nvoid mlx5_recover_device(struct mlx5_core_dev *dev)\n{\n\tmlx5_pci_disable_device(dev);\n\tif (mlx5_pci_slot_reset(dev->pdev) == PCI_ERS_RESULT_RECOVERED)\n\t\tmlx5_pci_resume(dev->pdev);\n}\n\nstatic struct pci_driver mlx5_core_driver = {\n\t.name = DRIVER_NAME,\n\t.id_table = mlx5_core_pci_table,\n\t.probe = init_one,\n\t.remove = remove_one,\n\t.shutdown\t= shutdown,\n\t.err_handler\t= &mlx5_err_handler,\n\t.sriov_configure = mlx5_core_sriov_configure,\n};\n\nstatic void mlx5_core_verify_params(void)\n{\n\tif (prof_sel >= ARRAY_SIZE(profile)) {\n\t\tpr_warn(\"mlx5_core: WARNING: Invalid module parameter prof_sel %d, valid range 0-%zu, changing back to default(%d)\\n\",\n\t\t\tprof_sel,\n\t\t\tARRAY_SIZE(profile) - 1,\n\t\t\tMLX5_DEFAULT_PROF);\n\t\tprof_sel = MLX5_DEFAULT_PROF;\n\t}\n}\n\nstatic int __init init(void)\n{\n\tint err;\n\n\tget_random_bytes(&sw_owner_id, sizeof(sw_owner_id));\n\n\tmlx5_core_verify_params();\n\tmlx5_accel_ipsec_build_fs_cmds();\n\tmlx5_register_debugfs();\n\n\terr = pci_register_driver(&mlx5_core_driver);\n\tif (err)\n\t\tgoto err_debug;\n\n#ifdef CONFIG_MLX5_CORE_EN\n\tmlx5e_init();\n#endif\n\n\treturn 0;\n\nerr_debug:\n\tmlx5_unregister_debugfs();\n\treturn err;\n}\n\nstatic void __exit cleanup(void)\n{\n#ifdef CONFIG_MLX5_CORE_EN\n\tmlx5e_cleanup();\n#endif\n\tpci_unregister_driver(&mlx5_core_driver);\n\tmlx5_unregister_debugfs();\n}\n\nmodule_init(init);\nmodule_exit(cleanup);\n"},"repo_name":{"kind":"string","value":"c0d3z3r0/linux-rockchip"},"path":{"kind":"string","value":"drivers/net/ethernet/mellanox/mlx5/core/main.c"},"language":{"kind":"string","value":"C"},"license":{"kind":"string","value":"gpl-2.0"},"size":{"kind":"number","value":40652,"string":"40,652"}}},{"rowIdx":115086176,"cells":{"code":{"kind":"string","value":"# \n# Copyright (C) 2008-2011 OpenWrt.org\n#\n# This is free software, licensed under the GNU General Public License v2.\n# See /LICENSE for more information.\n#\n\ninclude $(TOPDIR)/rules.mk\n\nPKG_NAME:=shorewall-lite\nPKG_VERSION:=4.4.27.3\nPKG_DIRECTORY:=4.4.27\nPKG_RELEASE:=4\n\nPKG_SOURCE_URL:=http://www.shorewall.net/pub/shorewall/4.4/shorewall-$(PKG_DIRECTORY)/ \\\n\thttp://www1.shorewall.net/pub/shorewall/4.4/shorewall-$(PKG_DIRECTORY)/ \\\n\thttp://slovakia.shorewall.net/pub/shorewall/4.4/shorewall-$(PKG_DIRECTORY)/ \\\n\thttp://shorewall.de/pub/shorewall/4.4/shorewall-$(PKG_DIRECTORY)/ \\\n\thttp://www.shorewall.com.au/4.4/shorewall-$(PKG_DIRECTORY)/ \\\n\thttp://shorewall.infohiiway.com/pub/shorewall/4.4/shorewall-$(PKG_DIRECTORY)/ \\\n\thttp://www.shorewall.com.ar/pub/shorewall/shorewall/4.4/shorewall-$(PKG_DIRECTORY)/\nPKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2\nPKG_MD5SUM:=40be496c0d512d885b7b0f64204bc235\n\ninclude $(INCLUDE_DIR)/package.mk\n\ndefine Package/shorewall-lite\n SECTION:=net\n CATEGORY:=Network\n DEPENDS:=+ip +iptables\n TITLE:=Shorewall Lite\n URL:=http://www.shorewall.net/\n SUBMENU:=Firewall\nendef\n\ndefine Package/shorewall-lite/description\n\tShoreline Firewall Lite is an iptables-based firewall for Linux systems.\nendef\n\ndefine Package/shorewall-lite/conffiles\n/etc/shorewall-lite/shorewall-lite.conf\n/etc/shorewall-lite/vardir\nendef\n\ndefine Build/Compile\n\tPREFIX=$(PKG_INSTALL_DIR) $(PKG_BUILD_DIR)/install.sh\nendef\n\ndefine Package/shorewall-lite/install\n\t$(INSTALL_DIR) $(1)/sbin\n\t$(INSTALL_DIR) $(1)/etc/init.d\n\t$(INSTALL_DIR) $(1)/etc/lsm/script.d\n\t$(INSTALL_DIR) $(1)/etc/hotplug.d/iface\n\t$(INSTALL_DIR) $(1)/etc/shorewall-lite\n\t$(INSTALL_DIR) $(1)/usr/share\n\t$(INSTALL_BIN) ./files/shorewall-lite.init $(1)/etc/init.d/shorewall-lite\n\t$(INSTALL_BIN) ./files/hotplug_iface $(1)/etc/hotplug.d/iface/05-shorewall-lite\n\t$(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/shorewall-lite $(1)/sbin\n\t$(CP) $(PKG_INSTALL_DIR)/usr/share/shorewall-lite $(1)/usr/share\n\t$(INSTALL_BIN) ./files/hostname $(1)/usr/share/shorewall-lite\n\t$(INSTALL_BIN) ./files/lsm_script $(1)/etc/lsm/script.d/45_shorewall-lite\n\t$(CP) $(PKG_INSTALL_DIR)/etc/shorewall-lite $(1)/etc\n\t$(CP) ./files/vardir $(1)/etc/shorewall-lite\nendef\n\n$(eval $(call BuildPackage,shorewall-lite))\n"},"repo_name":{"kind":"string","value":"wjrsonic/openwrt"},"path":{"kind":"string","value":"qca/feeds/packages/net/shorewall-lite/Makefile"},"language":{"kind":"string","value":"Makefile"},"license":{"kind":"string","value":"gpl-2.0"},"size":{"kind":"number","value":2256,"string":"2,256"}}},{"rowIdx":115086177,"cells":{"code":{"kind":"string","value":"/****************************************************************************\n * include/nuttx/mmcsd.h\n *\n * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved.\n * Author: Gregory Nutt \n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n *\n * 1. Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in\n * the documentation and/or other materials provided with the\n * distribution.\n * 3. Neither the name NuttX nor the names of its contributors may be\n * used to endorse or promote products derived from this software\n * without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n * \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\n * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\n * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS\n * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED\n * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN\n * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n *\n ****************************************************************************/\n\n#ifndef __INCLUDE_NUTTX_MMCSD_H\n#define __INCLUDE_NUTTX_MMCSD_H\n\n/****************************************************************************\n * Included Files\n ****************************************************************************/\n\n#include \n\n/****************************************************************************\n * Pre-Processor Definitions\n ****************************************************************************/\n\n/****************************************************************************\n * Public Types\n ****************************************************************************/\n\n/****************************************************************************\n * Public Functions\n ****************************************************************************/\n\n#undef EXTERN\n#if defined(__cplusplus)\n#define EXTERN extern \"C\"\nextern \"C\" {\n#else\n#define EXTERN extern\n#endif\n\n/****************************************************************************\n * Name: mmcsd_slotinitialize\n *\n * Description:\n * Initialize one slot for operation using the MMC/SD interface\n *\n * Input Parameters:\n * minor - The MMC/SD minor device number. The MMC/SD device will be\n * registered as /dev/mmcsdN where N is the minor number\n * dev - And instance of an MMC/SD interface. The MMC/SD hardware should\n * be initialized and ready to use.\n *\n ****************************************************************************/\n\nstruct sdio_dev_s; /* See nuttx/sdio.h */\nEXTERN int mmcsd_slotinitialize(int minor, FAR struct sdio_dev_s *dev);\n\n/****************************************************************************\n * Name: mmcsd_spislotinitialize\n *\n * Description:\n * Initialize one slot for operation using the SPI MMC/SD interface\n *\n * Input Parameters:\n * minor - The MMC/SD minor device number. The MMC/SD device will be\n * registered as /dev/mmcsdN where N is the minor number\n * slotno - The slot number to use. This is only meaningful for architectures\n * that support multiple MMC/SD slots. This value must be in the range\n * {0, ..., CONFIG_MMCSD_NSLOTS}.\n * spi - And instance of an SPI interface obtained by called\n * up_spiinitialize() with the appropriate port number (see spi.h)\n *\n ****************************************************************************/\n\nstruct spi_dev_s; /* See nuttx/spi.h */\nEXTERN int mmcsd_spislotinitialize(int minor, int slotno, FAR struct spi_dev_s *spi);\n\n#undef EXTERN\n#if defined(__cplusplus)\n}\n#endif\n\n#endif /* __INCLUDE_NUTTX_MMCSD_H */\n"},"repo_name":{"kind":"string","value":"evancich/apm_motor"},"path":{"kind":"string","value":"modules/PX4NuttX/nuttx/include/nuttx/mmcsd.h"},"language":{"kind":"string","value":"C"},"license":{"kind":"string","value":"gpl-3.0"},"size":{"kind":"number","value":4368,"string":"4,368"}}},{"rowIdx":115086178,"cells":{"code":{"kind":"string","value":"using System.Web.Mvc;\nusing System.Web.Routing;\nusing SmartStore.Web.Framework.Mvc.Routes;\n\nnamespace SmartStore.Clickatell\n{\n public partial class RouteProvider : IRouteProvider\n {\n public void RegisterRoutes(RouteCollection routes)\n {\n routes.MapRoute(\"SmartStore.Clickatell\",\n\t\t\t\t \"Plugins/SmartStore.Clickatell/{action}\",\n new { controller = \"SmsClickatell\", action = \"Configure\" },\n new[] { \"SmartStore.Clickatell.Controllers\" }\n )\n\t\t\t.DataTokens[\"area\"] = \"SmartStore.Clickatell\";\n }\n public int Priority\n {\n get\n {\n return 0;\n }\n }\n }\n}\n"},"repo_name":{"kind":"string","value":"Li-Yanzhi/SmartStoreNET"},"path":{"kind":"string","value":"src/Plugins/SmartStore.Clickatell/RouteProvider.cs"},"language":{"kind":"string","value":"C#"},"license":{"kind":"string","value":"gpl-3.0"},"size":{"kind":"number","value":700,"string":"700"}}},{"rowIdx":115086179,"cells":{"code":{"kind":"string","value":"\n\n\n\n\n"},"repo_name":{"kind":"string","value":"glennw/servo"},"path":{"kind":"string","value":"tests/wpt/mozilla/tests/mozilla/bluetooth/connect/device-goes-out-of-range.html"},"language":{"kind":"string","value":"HTML"},"license":{"kind":"string","value":"mpl-2.0"},"size":{"kind":"number","value":664,"string":"664"}}},{"rowIdx":115086180,"cells":{"code":{"kind":"string","value":"# This Source Code Form is subject to the terms of the Mozilla Public\n# License, v. 2.0. If a copy of the MPL was not distributed with this\n# file, You can obtain one at https://mozilla.org/MPL/2.0/.\n\nimport os\n\nfrom wptrunner.update.base import Step, StepRunner\nfrom wptrunner.update.update import LoadConfig, SyncFromUpstream, UpdateMetadata\nfrom wptrunner.update.tree import NoVCSTree\n\nfrom .tree import GitTree, HgTree, GeckoCommit\nfrom .upstream import SyncToUpstream\n\nclass LoadTrees(Step):\n \"\"\"Load gecko tree and sync tree containing web-platform-tests\"\"\"\n\n provides = [\"local_tree\", \"sync_tree\"]\n\n def create(self, state):\n if os.path.exists(state.sync[\"path\"]):\n sync_tree = GitTree(root=state.sync[\"path\"])\n else:\n sync_tree = None\n\n if GitTree.is_type():\n local_tree = GitTree(commit_cls=GeckoCommit)\n elif HgTree.is_type():\n local_tree = HgTree(commit_cls=GeckoCommit)\n else:\n local_tree = NoVCSTree()\n\n state.update({\"local_tree\": local_tree,\n \"sync_tree\": sync_tree})\n\n\nclass UpdateRunner(StepRunner):\n \"\"\"Overall runner for updating web-platform-tests in Gecko.\"\"\"\n steps = [LoadConfig,\n LoadTrees,\n SyncToUpstream,\n SyncFromUpstream,\n UpdateMetadata]\n"},"repo_name":{"kind":"string","value":"UK992/servo"},"path":{"kind":"string","value":"tests/wpt/update/update.py"},"language":{"kind":"string","value":"Python"},"license":{"kind":"string","value":"mpl-2.0"},"size":{"kind":"number","value":1349,"string":"1,349"}}},{"rowIdx":115086181,"cells":{"code":{"kind":"string","value":"define([\n\t'css!theme/liveblog',\n\t'tmpl!theme/container',\n\t'tmpl!theme/item/base',\n\t'plugins/wrappup-toggle',\n\t'plugins/scroll-pagination',\n\t'plugins/permanent-link',\n\t'plugins/user-comments'\n], function(){\n});"},"repo_name":{"kind":"string","value":"vladnicoara/SDLive-Blog"},"path":{"kind":"string","value":"plugins/livedesk-embed/gui-themes/themes/tageswoche.min.js"},"language":{"kind":"string","value":"JavaScript"},"license":{"kind":"string","value":"agpl-3.0"},"size":{"kind":"number","value":209,"string":"209"}}},{"rowIdx":115086182,"cells":{"code":{"kind":"string","value":"// Copyright 2016 Canonical Ltd.\n// Licensed under the AGPLv3, see LICENCE file for details.\n\npackage logfwd\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/juju/errors\"\n\t\"github.com/juju/version\"\n\t\"gopkg.in/juju/names.v2\"\n)\n\n// canonicalPEN is the IANA-registered Private Enterprise Number\n// assigned to Canonical. Among other things, this is used in RFC 5424\n// structured data.\n//\n// See https://www.iana.org/assignments/enterprise-numbers/enterprise-numbers.\nconst canonicalPEN = 28978\n\n// These are the recognized origin types.\nconst (\n\tOriginTypeUnknown OriginType = 0\n\tOriginTypeUser = iota\n\tOriginTypeMachine\n\tOriginTypeUnit\n)\n\nvar originTypes = map[OriginType]string{\n\tOriginTypeUnknown: \"unknown\",\n\tOriginTypeUser: names.UserTagKind,\n\tOriginTypeMachine: names.MachineTagKind,\n\tOriginTypeUnit: names.UnitTagKind,\n}\n\n// OriginType is the \"enum\" type for the different kinds of log record\n// origin.\ntype OriginType int\n\n// ParseOriginType converts a string to an OriginType or fails if\n// not able. It round-trips with String().\nfunc ParseOriginType(value string) (OriginType, error) {\n\tfor ot, str := range originTypes {\n\t\tif value == str {\n\t\t\treturn ot, nil\n\t\t}\n\t}\n\tconst originTypeInvalid OriginType = -1\n\treturn originTypeInvalid, errors.Errorf(\"unrecognized origin type %q\", value)\n}\n\n// String returns a string representation of the origin type.\nfunc (ot OriginType) String() string {\n\treturn originTypes[ot]\n}\n\n// Validate ensures that the origin type is correct.\nfunc (ot OriginType) Validate() error {\n\t// As noted above, typedef'ing int means that the use of int\n\t// literals or explicit type conversion could result in unsupported\n\t// \"enum\" values. Otherwise OriginType would not need this method.\n\tif _, ok := originTypes[ot]; !ok {\n\t\treturn errors.NewNotValid(nil, \"unsupported origin type\")\n\t}\n\treturn nil\n}\n\n// ValidateName ensures that the given origin name is valid within the\n// context of the origin type.\nfunc (ot OriginType) ValidateName(name string) error {\n\tswitch ot {\n\tcase OriginTypeUnknown:\n\t\tif name != \"\" {\n\t\t\treturn errors.NewNotValid(nil, \"origin name must not be set if type is unknown\")\n\t\t}\n\tcase OriginTypeUser:\n\t\tif !names.IsValidUser(name) {\n\t\t\treturn errors.NewNotValid(nil, \"bad user name\")\n\t\t}\n\tcase OriginTypeMachine:\n\t\tif !names.IsValidMachine(name) {\n\t\t\treturn errors.NewNotValid(nil, \"bad machine name\")\n\t\t}\n\tcase OriginTypeUnit:\n\t\tif !names.IsValidUnit(name) {\n\t\t\treturn errors.NewNotValid(nil, \"bad unit name\")\n\t\t}\n\t}\n\treturn nil\n}\n\n// Origin describes what created the record.\ntype Origin struct {\n\t// ControllerUUID is the ID of the Juju controller under which the\n\t// record originated.\n\tControllerUUID string\n\n\t// ModelUUID is the ID of the Juju model under which the record\n\t// originated.\n\tModelUUID string\n\n\t// Hostname identifies the host where the record originated.\n\tHostname string\n\n\t// Type identifies the kind of thing that generated the record.\n\tType OriginType\n\n\t// Name identifies the thing that generated the record.\n\tName string\n\n\t// Software identifies the running software that created the record.\n\tSoftware Software\n}\n\n// OriginForMachineAgent populates a new origin for the agent.\nfunc OriginForMachineAgent(tag names.MachineTag, controller, model string, ver version.Number) Origin {\n\treturn originForAgent(OriginTypeMachine, tag, controller, model, ver)\n}\n\n// OriginForUnitAgent populates a new origin for the agent.\nfunc OriginForUnitAgent(tag names.UnitTag, controller, model string, ver version.Number) Origin {\n\treturn originForAgent(OriginTypeUnit, tag, controller, model, ver)\n}\n\nfunc originForAgent(oType OriginType, tag names.Tag, controller, model string, ver version.Number) Origin {\n\torigin := originForJuju(oType, tag.Id(), controller, model, ver)\n\torigin.Hostname = fmt.Sprintf(\"%s.%s\", tag, model)\n\torigin.Software.Name = fmt.Sprintf(\"jujud-%s-agent\", tag.Kind())\n\treturn origin\n}\n\n// OriginForJuju populates a new origin for the juju client.\nfunc OriginForJuju(tag names.Tag, controller, model string, ver version.Number) (Origin, error) {\n\toType, err := ParseOriginType(tag.Kind())\n\tif err != nil {\n\t\treturn Origin{}, errors.Annotate(err, \"invalid tag\")\n\t}\n\treturn originForJuju(oType, tag.Id(), controller, model, ver), nil\n}\n\nfunc originForJuju(oType OriginType, name, controller, model string, ver version.Number) Origin {\n\treturn Origin{\n\t\tControllerUUID: controller,\n\t\tModelUUID: model,\n\t\tType: oType,\n\t\tName: name,\n\t\tSoftware: Software{\n\t\t\tPrivateEnterpriseNumber: canonicalPEN,\n\t\t\tName: \"juju\",\n\t\t\tVersion: ver,\n\t\t},\n\t}\n}\n\n// Validate ensures that the origin is correct.\nfunc (o Origin) Validate() error {\n\tif o.ControllerUUID == \"\" {\n\t\treturn errors.NewNotValid(nil, \"empty ControllerUUID\")\n\t}\n\tif !names.IsValidModel(o.ControllerUUID) {\n\t\treturn errors.NewNotValid(nil, fmt.Sprintf(\"ControllerUUID %q not a valid UUID\", o.ControllerUUID))\n\t}\n\n\tif o.ModelUUID == \"\" {\n\t\treturn errors.NewNotValid(nil, \"empty ModelUUID\")\n\t}\n\tif !names.IsValidModel(o.ModelUUID) {\n\t\treturn errors.NewNotValid(nil, fmt.Sprintf(\"ModelUUID %q not a valid UUID\", o.ModelUUID))\n\t}\n\n\tif err := o.Type.Validate(); err != nil {\n\t\treturn errors.Annotate(err, \"invalid Type\")\n\t}\n\n\tif o.Name == \"\" && o.Type != OriginTypeUnknown {\n\t\treturn errors.NewNotValid(nil, \"empty Name\")\n\t}\n\tif err := o.Type.ValidateName(o.Name); err != nil {\n\t\treturn errors.Annotatef(err, \"invalid Name %q\", o.Name)\n\t}\n\n\tif !o.Software.isZero() {\n\t\tif err := o.Software.Validate(); err != nil {\n\t\t\treturn errors.Annotate(err, \"invalid Software\")\n\t\t}\n\t}\n\n\treturn nil\n}\n\n// Software describes a running application.\ntype Software struct {\n\t// PrivateEnterpriseNumber is the IANA-registered \"SMI Network\n\t// Management Private Enterprise Code\" for the software's vendor.\n\t//\n\t// See https://tools.ietf.org/html/rfc5424#section-7.2.2.\n\tPrivateEnterpriseNumber int\n\n\t// Name identifies the software (relative to the vendor).\n\tName string\n\n\t// Version is the software's version.\n\tVersion version.Number\n}\n\nfunc (sw Software) isZero() bool {\n\tif sw.PrivateEnterpriseNumber > 0 {\n\t\treturn false\n\t}\n\tif sw.Name != \"\" {\n\t\treturn false\n\t}\n\tif sw.Version != version.Zero {\n\t\treturn false\n\t}\n\treturn true\n}\n\n// Validate ensures that the software info is correct.\nfunc (sw Software) Validate() error {\n\tif sw.PrivateEnterpriseNumber <= 0 {\n\t\treturn errors.NewNotValid(nil, \"missing PrivateEnterpriseNumber\")\n\t}\n\tif sw.Name == \"\" {\n\t\treturn errors.NewNotValid(nil, \"empty Name\")\n\t}\n\tif sw.Version == version.Zero {\n\t\treturn errors.NewNotValid(nil, \"empty Version\")\n\t}\n\treturn nil\n}\n"},"repo_name":{"kind":"string","value":"ericsnowcurrently/juju"},"path":{"kind":"string","value":"logfwd/origin.go"},"language":{"kind":"string","value":"GO"},"license":{"kind":"string","value":"agpl-3.0"},"size":{"kind":"number","value":6547,"string":"6,547"}}},{"rowIdx":115086183,"cells":{"code":{"kind":"string","value":"/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\npackage org.apache.sling.testing.paxexam;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.ops4j.pax.exam.Configuration;\nimport org.ops4j.pax.exam.Option;\nimport org.ops4j.pax.exam.junit.PaxExam;\nimport org.ops4j.pax.exam.spi.reactors.ExamReactorStrategy;\nimport org.ops4j.pax.exam.spi.reactors.PerClass;\n\nimport static org.apache.sling.testing.paxexam.SlingOptions.eventadmin;\n\n@RunWith(PaxExam.class)\n@ExamReactorStrategy(PerClass.class)\npublic class SlingOptionsEventadminIT extends SlingOptionsTestSupport {\n\n @Configuration\n public Option[] configuration() {\n return new Option[]{\n baseConfiguration(),\n eventadmin()\n };\n }\n\n @Test\n public void test() {\n }\n\n}\n"},"repo_name":{"kind":"string","value":"ist-dresden/sling"},"path":{"kind":"string","value":"testing/org.apache.sling.testing.paxexam/src/test/java/org/apache/sling/testing/paxexam/SlingOptionsEventadminIT.java"},"language":{"kind":"string","value":"Java"},"license":{"kind":"string","value":"apache-2.0"},"size":{"kind":"number","value":1546,"string":"1,546"}}},{"rowIdx":115086184,"cells":{"code":{"kind":"string","value":"import { PlatformRef } from '@angular/core';\nexport * from './private_export_testing';\n/**\n * @experimental API related to bootstrapping are still under review.\n */\nexport declare const platformBrowserDynamicTesting: (extraProviders?: any[]) => PlatformRef;\n/**\n * NgModule for testing.\n *\n * @stable\n */\nexport declare class BrowserDynamicTestingModule {\n}\n/**\n * @deprecated Use initTestEnvironment with platformBrowserDynamicTesting instead.\n */\nexport declare const TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS: Array;\n/**\n * @deprecated Use initTestEnvironment with BrowserDynamicTestingModule instead.\n */\nexport declare const TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS: Array;\n"},"repo_name":{"kind":"string","value":"oleksandr-minakov/northshore"},"path":{"kind":"string","value":"ui/node_modules/@angular/platform-browser-dynamic/testing.d.ts"},"language":{"kind":"string","value":"TypeScript"},"license":{"kind":"string","value":"apache-2.0"},"size":{"kind":"number","value":689,"string":"689"}}},{"rowIdx":115086185,"cells":{"code":{"kind":"string","value":"/**\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\npackage org.apache.hadoop.yarn.server.nodemanager.amrmproxy;\n\nimport java.io.IOException;\nimport java.util.Map;\n\nimport com.google.common.base.Preconditions;\nimport org.apache.hadoop.conf.Configuration;\nimport org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterRequest;\nimport org.apache.hadoop.yarn.exceptions.YarnException;\nimport org.apache.hadoop.yarn.server.api.protocolrecords.DistributedSchedulingAllocateRequest;\nimport org.apache.hadoop.yarn.server.api.protocolrecords.DistributedSchedulingAllocateResponse;\nimport org.apache.hadoop.yarn.server.api.protocolrecords.RegisterDistributedSchedulingAMResponse;\nimport org.apache.hadoop.yarn.server.nodemanager.recovery.NMStateStoreService;\n\n/**\n * Implements the RequestInterceptor interface and provides common functionality\n * which can can be used and/or extended by other concrete intercepter classes.\n *\n */\npublic abstract class AbstractRequestInterceptor implements\n RequestInterceptor {\n private Configuration conf;\n private AMRMProxyApplicationContext appContext;\n private RequestInterceptor nextInterceptor;\n\n /**\n * Sets the {@link RequestInterceptor} in the chain.\n */\n @Override\n public void setNextInterceptor(RequestInterceptor nextInterceptor) {\n this.nextInterceptor = nextInterceptor;\n }\n\n /**\n * Sets the {@link Configuration}.\n */\n\n @Override\n public void setConf(Configuration conf) {\n this.conf = conf;\n if (this.nextInterceptor != null) {\n this.nextInterceptor.setConf(conf);\n }\n }\n\n /**\n * Gets the {@link Configuration}.\n */\n @Override\n public Configuration getConf() {\n return this.conf;\n }\n\n /**\n * Initializes the {@link RequestInterceptor}.\n */\n @Override\n public void init(AMRMProxyApplicationContext appContext) {\n Preconditions.checkState(this.appContext == null,\n \"init is called multiple times on this interceptor: \"\n + this.getClass().getName());\n this.appContext = appContext;\n if (this.nextInterceptor != null) {\n this.nextInterceptor.init(appContext);\n }\n }\n\n /**\n * Recover {@link RequestInterceptor} state from store.\n */\n @Override\n public void recover(Map recoveredDataMap) {\n if (this.nextInterceptor != null) {\n this.nextInterceptor.recover(recoveredDataMap);\n }\n }\n\n /**\n * Disposes the {@link RequestInterceptor}.\n */\n @Override\n public void shutdown() {\n if (this.nextInterceptor != null) {\n this.nextInterceptor.shutdown();\n }\n }\n\n /**\n * Gets the next {@link RequestInterceptor} in the chain.\n */\n @Override\n public RequestInterceptor getNextInterceptor() {\n return this.nextInterceptor;\n }\n\n /**\n * Gets the {@link AMRMProxyApplicationContext}.\n */\n public AMRMProxyApplicationContext getApplicationContext() {\n return this.appContext;\n }\n\n /**\n * Default implementation that invokes the distributed scheduling version\n * of the register method.\n *\n * @param request ApplicationMaster allocate request\n * @return Distribtued Scheduler Allocate Response\n * @throws YarnException if fails\n * @throws IOException if fails\n */\n @Override\n public DistributedSchedulingAllocateResponse allocateForDistributedScheduling(\n DistributedSchedulingAllocateRequest request)\n throws YarnException, IOException {\n return (this.nextInterceptor != null) ?\n this.nextInterceptor.allocateForDistributedScheduling(request) : null;\n }\n\n /**\n * Default implementation that invokes the distributed scheduling version\n * of the allocate method.\n *\n * @param request ApplicationMaster registration request\n * @return Distributed Scheduler Register Response\n * @throws YarnException if fails\n * @throws IOException if fails\n */\n @Override\n public RegisterDistributedSchedulingAMResponse\n registerApplicationMasterForDistributedScheduling(\n RegisterApplicationMasterRequest request)\n throws YarnException, IOException {\n return (this.nextInterceptor != null) ? this.nextInterceptor\n .registerApplicationMasterForDistributedScheduling(request) : null;\n }\n\n /**\n * A helper method for getting NM state store.\n *\n * @return the NMSS instance\n */\n public NMStateStoreService getNMStateStore() {\n if (this.appContext == null || this.appContext.getNMCotext() == null) {\n return null;\n }\n return this.appContext.getNMCotext().getNMStateStore();\n }\n}\n"},"repo_name":{"kind":"string","value":"dennishuo/hadoop"},"path":{"kind":"string","value":"hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/amrmproxy/AbstractRequestInterceptor.java"},"language":{"kind":"string","value":"Java"},"license":{"kind":"string","value":"apache-2.0"},"size":{"kind":"number","value":5223,"string":"5,223"}}},{"rowIdx":115086186,"cells":{"code":{"kind":"string","value":"// \"Replace with Optional.ofNullable() chain\" \"GENERIC_ERROR_OR_WARNING\"\n\nimport java.util.Optional;\n\nclass Test {\n interface V {}\n\n interface Type {\n V getValue();\n }\n\n // IDEA-179273\n public Optional foo(Type arg) {\n return Optional.ofNullable(arg).map(Type::getValue);\n }\n}"},"repo_name":{"kind":"string","value":"siosio/intellij-community"},"path":{"kind":"string","value":"java/java-tests/testData/inspection/conditionalCanBeOptional/afterOptionalReturn.java"},"language":{"kind":"string","value":"Java"},"license":{"kind":"string","value":"apache-2.0"},"size":{"kind":"number","value":291,"string":"291"}}},{"rowIdx":115086187,"cells":{"code":{"kind":"string","value":"/*\nCopyright 2018 The Kubernetes Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\npackage polymorphichelpers\n\nimport (\n\t\"fmt\"\n\n\tappsv1 \"k8s.io/api/apps/v1\"\n\tcorev1 \"k8s.io/api/core/v1\"\n\textensionsv1beta1 \"k8s.io/api/extensions/v1beta1\"\n\t\"k8s.io/apimachinery/pkg/runtime/schema\"\n)\n\nfunc canBeAutoscaled(kind schema.GroupKind) error {\n\tswitch kind {\n\tcase\n\t\tcorev1.SchemeGroupVersion.WithKind(\"ReplicationController\").GroupKind(),\n\t\tappsv1.SchemeGroupVersion.WithKind(\"Deployment\").GroupKind(),\n\t\tappsv1.SchemeGroupVersion.WithKind(\"ReplicaSet\").GroupKind(),\n\t\textensionsv1beta1.SchemeGroupVersion.WithKind(\"Deployment\").GroupKind(),\n\t\textensionsv1beta1.SchemeGroupVersion.WithKind(\"ReplicaSet\").GroupKind():\n\t\t// nothing to do here\n\tdefault:\n\t\treturn fmt.Errorf(\"cannot autoscale a %v\", kind)\n\t}\n\treturn nil\n}\n"},"repo_name":{"kind":"string","value":"liyinan926/kubernetes"},"path":{"kind":"string","value":"pkg/kubectl/polymorphichelpers/canbeautoscaled.go"},"language":{"kind":"string","value":"GO"},"license":{"kind":"string","value":"apache-2.0"},"size":{"kind":"number","value":1298,"string":"1,298"}}},{"rowIdx":115086188,"cells":{"code":{"kind":"string","value":"/*\n * Licensed to Elasticsearch under one or more contributor\n * license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright\n * ownership. Elasticsearch licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\npackage org.elasticsearch.hadoop.integration.rest.ssl;\n\nimport io.netty.bootstrap.ServerBootstrap;\nimport io.netty.buffer.Unpooled;\nimport io.netty.channel.ChannelFutureListener;\nimport io.netty.channel.ChannelHandler.Sharable;\nimport io.netty.channel.ChannelHandlerContext;\nimport io.netty.channel.ChannelInboundHandlerAdapter;\nimport io.netty.channel.ChannelInitializer;\nimport io.netty.channel.ChannelOption;\nimport io.netty.channel.ChannelPipeline;\nimport io.netty.channel.EventLoopGroup;\nimport io.netty.channel.nio.NioEventLoopGroup;\nimport io.netty.channel.socket.SocketChannel;\nimport io.netty.channel.socket.nio.NioServerSocketChannel;\nimport io.netty.handler.codec.http.DefaultFullHttpResponse;\nimport io.netty.handler.codec.http.FullHttpResponse;\nimport io.netty.handler.codec.http.HttpRequest;\nimport io.netty.handler.codec.http.HttpServerCodec;\nimport io.netty.handler.logging.LogLevel;\nimport io.netty.handler.logging.LoggingHandler;\nimport io.netty.handler.ssl.SslContext;\n\nimport java.io.File;\nimport java.nio.file.Paths;\n\nimport org.elasticsearch.hadoop.util.StringUtils;\n\nimport static io.netty.handler.codec.http.HttpHeaders.Names.*;\nimport static io.netty.handler.codec.http.HttpResponseStatus.*;\nimport static io.netty.handler.codec.http.HttpVersion.*;\n\npublic class BasicSSLServer {\n\n private static class BasicSSLServerInitializer extends ChannelInitializer {\n private final SslContext sslCtx;\n\n public BasicSSLServerInitializer(SslContext sslCtx) {\n this.sslCtx = sslCtx;\n }\n\n @Override\n public void initChannel(SocketChannel ch) throws Exception {\n ChannelPipeline pipeline = ch.pipeline();\n pipeline.addLast(sslCtx.newHandler(ch.alloc()));\n pipeline.addLast(new HttpServerCodec());\n pipeline.addLast(new EchoServerHandler());\n }\n }\n\n @Sharable\n public static class EchoServerHandler extends ChannelInboundHandlerAdapter {\n\n @Override\n public void channelRead(ChannelHandlerContext ctx, Object msg) {\n if (msg instanceof HttpRequest) {\n HttpRequest req = (HttpRequest) msg;\n\n FullHttpResponse response = new DefaultFullHttpResponse(HTTP_1_1, OK, Unpooled.wrappedBuffer(req.getUri().getBytes(StringUtils.UTF_8)));\n response.headers().set(CONTENT_TYPE, \"text/plain\");\n response.headers().set(CONTENT_LENGTH, response.content().readableBytes());\n ctx.write(response).addListener(ChannelFutureListener.CLOSE);\n }\n }\n\n @Override\n public void channelReadComplete(ChannelHandlerContext ctx) {\n ctx.flush();\n }\n\n @Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n // Close the connection when an exception is raised.\n cause.printStackTrace();\n ctx.close();\n }\n }\n\n private EventLoopGroup bossGroup, workerGroup;\n private ServerBootstrap server;\n private final int port;\n\n public File certificate;\n public File privateKey;\n\n public BasicSSLServer(int port) throws Exception {\n this.port = port;\n }\n\n public void start() throws Exception {\n File cert = Paths.get(getClass().getResource(\"/ssl/server.pem\").toURI()).toFile();\n File keyStore = Paths.get(getClass().getResource(\"/ssl/server.key\").toURI()).toFile();\n\n SslContext sslCtx = SslContext.newServerContext(cert, keyStore);\n\n bossGroup = new NioEventLoopGroup(1);\n workerGroup = new NioEventLoopGroup();\n\n server = new ServerBootstrap();\n server.group(bossGroup, workerGroup)\n .channel(NioServerSocketChannel.class)\n .option(ChannelOption.SO_BACKLOG, 100)\n .handler(new LoggingHandler(LogLevel.INFO))\n .childHandler(new BasicSSLServerInitializer(sslCtx));\n\n server.bind(port).sync().channel().closeFuture();\n }\n\n public void stop() throws Exception {\n if (bossGroup != null) {\n bossGroup.shutdownGracefully();\n }\n if (workerGroup != null) {\n workerGroup.shutdownGracefully();\n }\n }\n}"},"repo_name":{"kind":"string","value":"jasontedor/elasticsearch-hadoop"},"path":{"kind":"string","value":"mr/src/itest/java/org/elasticsearch/hadoop/integration/rest/ssl/BasicSSLServer.java"},"language":{"kind":"string","value":"Java"},"license":{"kind":"string","value":"apache-2.0"},"size":{"kind":"number","value":5006,"string":"5,006"}}},{"rowIdx":115086189,"cells":{"code":{"kind":"string","value":"/*\n * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n * or more contributor license agreements. Licensed under the Elastic License\n * 2.0; you may not use this file except in compliance with the Elastic License\n * 2.0.\n */\npackage org.elasticsearch.integration;\n\nimport org.elasticsearch.action.admin.indices.alias.IndicesAliasesRequestBuilder;\nimport org.elasticsearch.action.index.IndexRequestBuilder;\nimport org.elasticsearch.action.search.SearchResponse;\nimport org.elasticsearch.common.settings.SecureString;\nimport org.elasticsearch.common.settings.Settings;\nimport org.elasticsearch.index.query.QueryBuilders;\nimport org.elasticsearch.test.SecurityIntegTestCase;\nimport org.elasticsearch.test.SecuritySettingsSourceField;\nimport org.elasticsearch.xpack.core.XPackSettings;\n\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.List;\n\nimport static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;\nimport static org.elasticsearch.xpack.core.security.authc.support.UsernamePasswordToken.BASIC_AUTH_HEADER;\nimport static org.elasticsearch.xpack.core.security.authc.support.UsernamePasswordToken.basicAuthHeaderValue;\nimport static org.hamcrest.Matchers.equalTo;\n\npublic class DocumentLevelSecurityRandomTests extends SecurityIntegTestCase {\n\n protected static final SecureString USERS_PASSWD = SecuritySettingsSourceField.TEST_PASSWORD_SECURE_STRING;\n\n // can't add a second test method, because each test run creates a new instance of this class and that will will result\n // in a new random value:\n private final int numberOfRoles = scaledRandomIntBetween(3, 99);\n\n @Override\n protected String configUsers() {\n final String usersPasswdHashed = new String(getFastStoredHashAlgoForTests().hash(USERS_PASSWD));\n\n StringBuilder builder = new StringBuilder(super.configUsers());\n for (int i = 1; i <= numberOfRoles; i++) {\n builder.append(\"user\").append(i).append(':').append(usersPasswdHashed).append('\\n');\n }\n return builder.toString();\n }\n\n @Override\n protected String configUsersRoles() {\n StringBuilder builder = new StringBuilder(super.configUsersRoles());\n builder.append(\"role0:\");\n for (int i = 1; i <= numberOfRoles; i++) {\n builder.append(\"user\").append(i);\n if (i != numberOfRoles) {\n builder.append(\",\");\n }\n }\n builder.append(\"\\n\");\n for (int i = 1; i <= numberOfRoles; i++) {\n builder.append(\"role\").append(i).append(\":user\").append(i).append('\\n');\n }\n return builder.toString();\n }\n\n @Override\n protected String configRoles() {\n StringBuilder builder = new StringBuilder(super.configRoles());\n builder.append(\"\\nrole0:\\n\");\n builder.append(\" cluster: [ none ]\\n\");\n builder.append(\" indices:\\n\");\n builder.append(\" - names: '*'\\n\");\n builder.append(\" privileges: [ none ]\\n\");\n for (int i = 1; i <= numberOfRoles; i++) {\n builder.append(\"role\").append(i).append(\":\\n\");\n builder.append(\" cluster: [ all ]\\n\");\n builder.append(\" indices:\\n\");\n builder.append(\" - names: '*'\\n\");\n builder.append(\" privileges:\\n\");\n builder.append(\" - all\\n\");\n builder.append(\" query: \\n\");\n builder.append(\" term: \\n\");\n builder.append(\" field1: value\").append(i).append('\\n');\n }\n return builder.toString();\n }\n\n @Override\n public Settings nodeSettings(int nodeOrdinal, Settings otherSettings) {\n return Settings.builder()\n .put(super.nodeSettings(nodeOrdinal, otherSettings))\n .put(XPackSettings.DLS_FLS_ENABLED.getKey(), true)\n .build();\n }\n\n public void testDuelWithAliasFilters() throws Exception {\n assertAcked(client().admin().indices().prepareCreate(\"test\").setMapping(\"field1\", \"type=text\", \"field2\", \"type=text\"));\n\n List requests = new ArrayList<>(numberOfRoles);\n IndicesAliasesRequestBuilder builder = client().admin().indices().prepareAliases();\n for (int i = 1; i <= numberOfRoles; i++) {\n String value = \"value\" + i;\n requests.add(client().prepareIndex(\"test\").setId(value).setSource(\"field1\", value));\n builder.addAlias(\"test\", \"alias\" + i, QueryBuilders.termQuery(\"field1\", value));\n }\n indexRandom(true, requests);\n builder.get();\n\n for (int roleI = 1; roleI <= numberOfRoles; roleI++) {\n SearchResponse searchResponse1 = client().filterWithHeader(\n Collections.singletonMap(BASIC_AUTH_HEADER, basicAuthHeaderValue(\"user\" + roleI, USERS_PASSWD))\n ).prepareSearch(\"test\").get();\n SearchResponse searchResponse2 = client().prepareSearch(\"alias\" + roleI).get();\n assertThat(searchResponse1.getHits().getTotalHits().value, equalTo(searchResponse2.getHits().getTotalHits().value));\n for (int hitI = 0; hitI < searchResponse1.getHits().getHits().length; hitI++) {\n assertThat(searchResponse1.getHits().getAt(hitI).getId(), equalTo(searchResponse2.getHits().getAt(hitI).getId()));\n }\n }\n }\n\n}\n"},"repo_name":{"kind":"string","value":"GlenRSmith/elasticsearch"},"path":{"kind":"string","value":"x-pack/plugin/security/src/internalClusterTest/java/org/elasticsearch/integration/DocumentLevelSecurityRandomTests.java"},"language":{"kind":"string","value":"Java"},"license":{"kind":"string","value":"apache-2.0"},"size":{"kind":"number","value":5357,"string":"5,357"}}},{"rowIdx":115086190,"cells":{"code":{"kind":"string","value":"// Test that a nominal type (like `Foo<'a>`) outlives `'b` if its\n// arguments (like `'a`) outlive `'b`.\n//\n// Rule OutlivesNominalType from RFC 1214.\n\n\n#![allow(dead_code)]\n\nmod variant_struct_region {\n struct Foo<'a> {\n x: &'a i32,\n }\n trait Trait<'a, 'b> {\n type Out;\n }\n impl<'a, 'b> Trait<'a, 'b> for usize {\n type Out = &'a Foo<'b>; //~ ERROR reference has a longer lifetime\n }\n}\n\n\nfn main() { }\n"},"repo_name":{"kind":"string","value":"aidancully/rust"},"path":{"kind":"string","value":"src/test/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-region.rs"},"language":{"kind":"string","value":"Rust"},"license":{"kind":"string","value":"apache-2.0"},"size":{"kind":"number","value":441,"string":"441"}}},{"rowIdx":115086191,"cells":{"code":{"kind":"string","value":"## Usecase Design\n\nThis sample demonstrates Cordova Package feature basic functionalities, include:\n\n* Create cordova package\n* Build cordova package using cordova-plugin-crosswalk-webview\n* Install, Launch, Run and Exit the cordova package\n\nThis usecase covers following methods:\n\n* $ cordova-android/bin/create\n* $ plugman install --platform android --plugin ../cordova-plugin-crosswalk-webview/ --project .\n* $ ./cordova/build\n"},"repo_name":{"kind":"string","value":"XiaosongWei/crosswalk-test-suite"},"path":{"kind":"string","value":"usecase/usecase-cordova-android-tests/samples/CordovaPackage4.x/REAMDE.md"},"language":{"kind":"string","value":"Markdown"},"license":{"kind":"string","value":"bsd-3-clause"},"size":{"kind":"number","value":430,"string":"430"}}},{"rowIdx":115086192,"cells":{"code":{"kind":"string","value":"\nScrolling to sticky position elements uses their unshifted position\n\n\n\n\n\n\n\n\n\n

Title 1

\n
\n

Title 2

\n
\n

Title 3

\n
\n\n\n\n\n"},"repo_name":{"kind":"string","value":"scheib/chromium"},"path":{"kind":"string","value":"third_party/blink/web_tests/external/wpt/css/css-position/sticky/position-sticky-scrollIntoView.html"},"language":{"kind":"string","value":"HTML"},"license":{"kind":"string","value":"bsd-3-clause"},"size":{"kind":"number","value":1000,"string":"1,000"}}},{"rowIdx":115086193,"cells":{"code":{"kind":"string","value":"// Copyright 2009 The Go Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style\n// license that can be found in the LICENSE file.\n\n#include\t\"l.h\"\n#include\t\"../ld/lib.h\"\n\n// Software floating point.\n\nvoid\nsoftfloat(void)\n{\n\tProg *p, *next, *psfloat;\n\tSym *symsfloat;\n\tint wasfloat;\n\n\tif(!debug['F'])\n\t\treturn;\n\n\tsymsfloat = lookup(\"_sfloat\", 0);\n\tpsfloat = P;\n\tif(symsfloat->type == STEXT)\n\t\tpsfloat = symsfloat->text;\n\n\tfor(cursym = textp; cursym != nil; cursym = cursym->next) {\n\t\twasfloat = 0;\n\t\tfor(p = cursym->text; p != P; p = p->link)\n\t\t\tif(p->cond != P)\n\t\t\t\tp->cond->mark |= LABEL;\n\t\tfor(p = cursym->text; p != P; p = p->link) {\n\t\t\tswitch(p->as) {\n\t\t\tcase AMOVW:\n\t\t\t\tif(p->to.type == D_FREG || p->from.type == D_FREG)\n\t\t\t\t\tgoto soft;\n\t\t\t\tgoto notsoft;\n\n\t\t\tcase AMOVWD:\n\t\t\tcase AMOVWF:\n\t\t\tcase AMOVDW:\n\t\t\tcase AMOVFW:\n\t\t\tcase AMOVFD:\n\t\t\tcase AMOVDF:\n\t\t\tcase AMOVF:\n\t\t\tcase AMOVD:\n\n\t\t\tcase ACMPF:\n\t\t\tcase ACMPD:\n\t\t\tcase AADDF:\n\t\t\tcase AADDD:\n\t\t\tcase ASUBF:\n\t\t\tcase ASUBD:\n\t\t\tcase AMULF:\n\t\t\tcase AMULD:\n\t\t\tcase ADIVF:\n\t\t\tcase ADIVD:\n\t\t\tcase ASQRTF:\n\t\t\tcase ASQRTD:\n\t\t\tcase AABSF:\n\t\t\tcase AABSD:\n\t\t\t\tgoto soft;\n\n\t\t\tdefault:\n\t\t\t\tgoto notsoft;\n\n\t\t\tsoft:\n\t\t\t\tif (psfloat == P)\n\t\t\t\t\tdiag(\"floats used with _sfloat not defined\");\n\t\t\t\tif (!wasfloat || (p->mark&LABEL)) {\n\t\t\t\t\tnext = prg();\n\t\t\t\t\t*next = *p;\n\t\n\t\t\t\t\t// BL _sfloat(SB)\n\t\t\t\t\t*p = zprg;\n\t\t\t\t\tp->link = next;\n\t\t\t\t\tp->as = ABL;\n\t \t\t\t\tp->to.type = D_BRANCH;\n\t\t\t\t\tp->to.sym = symsfloat;\n\t\t\t\t\tp->cond = psfloat;\n\t\t\t\t\tp->line = next->line;\n\t\n\t\t\t\t\tp = next;\n\t\t\t\t\twasfloat = 1;\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tnotsoft:\n\t\t\t\twasfloat = 0;\n\t\t\t}\n\t\t}\n\t}\n}\n"},"repo_name":{"kind":"string","value":"mhennings/marcohennings-go"},"path":{"kind":"string","value":"src/cmd/5l/softfloat.c"},"language":{"kind":"string","value":"C"},"license":{"kind":"string","value":"bsd-3-clause"},"size":{"kind":"number","value":1619,"string":"1,619"}}},{"rowIdx":115086194,"cells":{"code":{"kind":"string","value":"const url_base = \"/permissions-policy/experimental-features/resources/\";\nwindow.messageResponseCallback = null;\n\nfunction setFeatureState(iframe, feature, origins) {\n iframe.setAttribute(\"allow\", `${feature} ${origins};`);\n}\n\n// Returns a promise which is resolved when the