91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 16.71MB
    文件類型: .gz
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2023-06-19
  • 語言: Java
  • 標(biāo)簽: hadoop??

資源簡介

解決org.apache.hadoop.io.nativeio.NativeIO$Windows.access0(Ljava/lang/String;I)Z問題

資源截圖

代碼片段和文件信息

#!/usr/bin/python
#???Licensed?under?the?Apache?License?Version?2.0?(the?“License“);
#???you?may?not?use?this?file?except?in?compliance?with?the?License.
#???You?may?obtain?a?copy?of?the?License?at
#
#???????http://www.apache.org/licenses/LICENSE-2.0
#
#???Unless?required?by?applicable?law?or?agreed?to?in?writing?software
#???distributed?under?the?License?is?distributed?on?an?“AS?IS“?BASIS
#???WITHOUT?WARRANTIES?OR?CONDITIONS?OF?ANY?KIND?either?express?or?implied.
#???See?the?License?for?the?specific?language?governing?permissions?and
#???limitations?under?the?License.

import?re
import?sys
from?optparse?import?OptionParser
import?httplib
import?urllib
import?cgi
try:
??import?json
except?ImportError:
??import?simplejson?as?json


namePattern?=?re.compile(r‘?\([0-9]+\)‘)

def?clean(str):
??return?quoteHtml(re.sub(namePattern?““?str))

def?formatComponents(str):
??str?=?re.sub(namePattern?‘‘?str).replace(“‘“?““)
??if?str?!=?““:
????ret?=?“(“?+?str?+?“)“
??else:
????ret?=?““
??return?quoteHtml(ret)
????
def?quoteHtml(str):
??return?cgi.escape(str).encode(‘a(chǎn)scii‘?‘xmlcharrefreplace‘)

def?mstr(obj):
??if?(obj?==?None):
????return?““
??return?unicode(obj)

class?Version:
??“““Represents?a?version?number“““
??def?__init__(self?data):
????self.mod?=?False
????self.data?=?data
????found?=?re.match(‘^((\d+)(\.\d+)*).*$‘?data)
????if?(found):
??????self.parts?=?[?int(p)?for?p?in?found.group(1).split(‘.‘)?]
????else:
??????self.parts?=?[]
????#?backfill?version?with?zeroes?if?missing?parts
????self.parts.extend((0)?*?(3?-?len(self.parts)))

??def?decBugFix(self):
????self.mod?=?True
????self.parts[2]?-=?1
????return?self

??def?__str__(self):
????if?(self.mod):
??????return?‘.‘.join([?str(p)?for?p?in?self.parts?])
????return?self.data

??def?__cmp__(self?other):
????return?cmp(self.parts?other.parts)

class?Jira:
??“““A?single?JIRA“““

??def?__init__(self?data?parent):
????self.key?=?data[‘key‘]
????self.fields?=?data[‘fields‘]
????self.parent?=?parent
????self.notes?=?None

??def?getId(self):
????return?mstr(self.key)

??def?getDescription(self):
????return?mstr(self.fields[‘description‘])

??def?getReleaseNote(self):
????if?(self.notes?==?None):
??????field?=?self.parent.fieldIdMap[‘Release?Note‘]
??????if?(self.fields.has_key(field)):
????????self.notes=mstr(self.fields[field])
??????else:
????????self.notes=self.getDescription()
????return?self.notes

??def?getPriority(self):
????ret?=?““
????pri?=?self.fields[‘priority‘]
????if(pri?!=?None):
??????ret?=?pri[‘name‘]
????return?mstr(ret)

??def?getAssignee(self):
????ret?=?““
????mid?=?self.fields[‘a(chǎn)ssignee‘]
????if(mid?!=?None):
??????ret?=?mid[‘displayName‘]
????return?mstr(ret)

??def?getComponents(self):
????return?“??“.join([?comp[‘name‘]?for?comp?in?self.fields[‘components‘]?])

??def?getSummary(self):
????return?self.fields[‘summary‘]

??def?getType(self):
????ret?=?““
????mid?=?self.fields[‘issuetype‘]
????if(mid?!=?None):
??????ret?=?mid[‘name‘]
????return?mstr(ret)

??def?get

評論

共有 條評論