query stringlengths 10 2k | document stringlengths 20 51.2k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Gets the org_apache_felix_http_jetty_threadpool_max of this OrgApacheFelixHttpProperties. | def org_apache_felix_http_jetty_threadpool_max(self) -> ConfigNodePropertyInteger:
return self._org_apache_felix_http_jetty_threadpool_max | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_http_jetty_threadpool_max(self, org_apache_felix_http_jetty_threadpool_max: ConfigNodePropertyInteger):\n\n self._org_apache_felix_http_jetty_threadpool_max = org_apache_felix_http_jetty_threadpool_max",
"def max_pool_size(self) -> ConfigNodePropertyInteger:\n return self._max_... | [
"0.8436084",
"0.72717243",
"0.63038474",
"0.6276058",
"0.61757874",
"0.60768247",
"0.5995238",
"0.5957236",
"0.59185874",
"0.5904954",
"0.5883778",
"0.58757293",
"0.5865454",
"0.5863893",
"0.5842034",
"0.5836911",
"0.58066946",
"0.5804957",
"0.57565546",
"0.573485",
"0.573079... | 0.90757984 | 0 |
Sets the org_apache_felix_http_jetty_threadpool_max of this OrgApacheFelixHttpProperties. | def org_apache_felix_http_jetty_threadpool_max(self, org_apache_felix_http_jetty_threadpool_max: ConfigNodePropertyInteger):
self._org_apache_felix_http_jetty_threadpool_max = org_apache_felix_http_jetty_threadpool_max | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_http_jetty_threadpool_max(self) -> ConfigNodePropertyInteger:\n return self._org_apache_felix_http_jetty_threadpool_max",
"def max_pool_size(self, max_pool_size: ConfigNodePropertyInteger):\n\n self._max_pool_size = max_pool_size",
"def set_threadpool_size(nthreads):\n ... | [
"0.83076423",
"0.6966936",
"0.6555153",
"0.65538454",
"0.6177804",
"0.6163002",
"0.6122447",
"0.60749555",
"0.60360014",
"0.592112",
"0.581775",
"0.58084136",
"0.5790561",
"0.5742164",
"0.57236934",
"0.5649875",
"0.5613553",
"0.5551735",
"0.5422354",
"0.5416043",
"0.54153067"... | 0.91473126 | 0 |
Gets the org_apache_felix_http_jetty_acceptors of this OrgApacheFelixHttpProperties. | def org_apache_felix_http_jetty_acceptors(self) -> ConfigNodePropertyInteger:
return self._org_apache_felix_http_jetty_acceptors | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_http_jetty_acceptors(self, org_apache_felix_http_jetty_acceptors: ConfigNodePropertyInteger):\n\n self._org_apache_felix_http_jetty_acceptors = org_apache_felix_http_jetty_acceptors",
"def org_apache_felix_https_jetty_protocols_included(self) -> ConfigNodePropertyArray:\n retur... | [
"0.75076485",
"0.5785627",
"0.5716581",
"0.5420038",
"0.5289137",
"0.5037636",
"0.4904443",
"0.48637486",
"0.47851926",
"0.47794348",
"0.47574577",
"0.4634274",
"0.4624362",
"0.46217787",
"0.4588096",
"0.45680663",
"0.45658427",
"0.45221943",
"0.4481247",
"0.44808096",
"0.447... | 0.85263646 | 0 |
Gets the org_apache_felix_http_jetty_selectors of this OrgApacheFelixHttpProperties. | def org_apache_felix_http_jetty_selectors(self) -> ConfigNodePropertyInteger:
return self._org_apache_felix_http_jetty_selectors | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_http_jetty_selectors(self, org_apache_felix_http_jetty_selectors: ConfigNodePropertyInteger):\n\n self._org_apache_felix_http_jetty_selectors = org_apache_felix_http_jetty_selectors",
"def sling_servlet_selectors(self) -> ConfigNodePropertyString:\n return self._sling_servlet_s... | [
"0.73144346",
"0.6532002",
"0.5872824",
"0.5816661",
"0.56490624",
"0.5635196",
"0.5259821",
"0.51195425",
"0.50057095",
"0.4867244",
"0.48555836",
"0.47042707",
"0.46695834",
"0.46603128",
"0.4651367",
"0.4640019",
"0.46189284",
"0.45724314",
"0.45521265",
"0.45363122",
"0.4... | 0.8244053 | 0 |
Gets the org_apache_felix_http_jetty_header_buffer_size of this OrgApacheFelixHttpProperties. | def org_apache_felix_http_jetty_header_buffer_size(self) -> ConfigNodePropertyInteger:
return self._org_apache_felix_http_jetty_header_buffer_size | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_http_jetty_request_buffer_size(self) -> ConfigNodePropertyInteger:\n return self._org_apache_felix_http_jetty_request_buffer_size",
"def org_apache_felix_http_jetty_header_buffer_size(self, org_apache_felix_http_jetty_header_buffer_size: ConfigNodePropertyInteger):\n\n self._or... | [
"0.78715503",
"0.77426094",
"0.7738236",
"0.6869286",
"0.6726446",
"0.6704403",
"0.6637462",
"0.65393496",
"0.63070697",
"0.6065898",
"0.59510887",
"0.58382523",
"0.5836711",
"0.5773156",
"0.5752211",
"0.5748012",
"0.5740743",
"0.57267267",
"0.5713887",
"0.5713887",
"0.570845... | 0.88162214 | 0 |
Gets the org_apache_felix_http_jetty_response_buffer_size of this OrgApacheFelixHttpProperties. | def org_apache_felix_http_jetty_response_buffer_size(self) -> ConfigNodePropertyInteger:
return self._org_apache_felix_http_jetty_response_buffer_size | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_http_jetty_header_buffer_size(self) -> ConfigNodePropertyInteger:\n return self._org_apache_felix_http_jetty_header_buffer_size",
"def org_apache_felix_http_jetty_response_buffer_size(self, org_apache_felix_http_jetty_response_buffer_size: ConfigNodePropertyInteger):\n\n self._... | [
"0.8066069",
"0.7967616",
"0.7824719",
"0.6876901",
"0.661551",
"0.66051805",
"0.6572411",
"0.6487119",
"0.6431537",
"0.6261782",
"0.59816396",
"0.59571517",
"0.58867496",
"0.58592415",
"0.5829363",
"0.5753707",
"0.5753707",
"0.56973857",
"0.5695097",
"0.5675111",
"0.5663201"... | 0.8868346 | 0 |
Gets the org_apache_felix_http_jetty_max_form_size of this OrgApacheFelixHttpProperties. | def org_apache_felix_http_jetty_max_form_size(self) -> ConfigNodePropertyInteger:
return self._org_apache_felix_http_jetty_max_form_size | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_http_jetty_max_form_size(self, org_apache_felix_http_jetty_max_form_size: ConfigNodePropertyInteger):\n\n self._org_apache_felix_http_jetty_max_form_size = org_apache_felix_http_jetty_max_form_size",
"def maxsize(self):\r\n return self._maxsize",
"def maximum_size(self):\n ... | [
"0.83774406",
"0.69641596",
"0.67761934",
"0.6627754",
"0.64675814",
"0.64214957",
"0.63402003",
"0.6337336",
"0.63351876",
"0.6321297",
"0.63121116",
"0.63098216",
"0.6303773",
"0.6292986",
"0.6209985",
"0.6205548",
"0.61754334",
"0.61468697",
"0.6049099",
"0.60451776",
"0.6... | 0.8972001 | 0 |
Gets the org_apache_felix_http_path_exclusions of this OrgApacheFelixHttpProperties. | def org_apache_felix_http_path_exclusions(self) -> ConfigNodePropertyArray:
return self._org_apache_felix_http_path_exclusions | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_http_path_exclusions(self, org_apache_felix_http_path_exclusions: ConfigNodePropertyArray):\n\n self._org_apache_felix_http_path_exclusions = org_apache_felix_http_path_exclusions",
"def exclusions(self) -> Sequence['outputs.LogExclusionResponse']:\n return pulumi.get(self, \"e... | [
"0.71784294",
"0.62536895",
"0.61722505",
"0.59349984",
"0.5571489",
"0.5251807",
"0.51229656",
"0.50510365",
"0.50276047",
"0.50089806",
"0.49695402",
"0.49158072",
"0.48763555",
"0.4832042",
"0.47196588",
"0.47165617",
"0.4716318",
"0.47085154",
"0.4654829",
"0.46445954",
"... | 0.81991285 | 0 |
Sets the org_apache_felix_http_path_exclusions of this OrgApacheFelixHttpProperties. | def org_apache_felix_http_path_exclusions(self, org_apache_felix_http_path_exclusions: ConfigNodePropertyArray):
self._org_apache_felix_http_path_exclusions = org_apache_felix_http_path_exclusions | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_http_path_exclusions(self) -> ConfigNodePropertyArray:\n return self._org_apache_felix_http_path_exclusions",
"def org_apache_felix_jetty_gzip_excluded_paths(self, org_apache_felix_jetty_gzip_excluded_paths: ConfigNodePropertyArray):\n\n self._org_apache_felix_jetty_gzip_exclud... | [
"0.6972663",
"0.5362233",
"0.53212553",
"0.5257785",
"0.49641067",
"0.48284352",
"0.4809486",
"0.47740337",
"0.4770502",
"0.47558674",
"0.4606684",
"0.45556673",
"0.44468993",
"0.44281584",
"0.4413226",
"0.43906692",
"0.43603572",
"0.43404272",
"0.43379614",
"0.4322105",
"0.4... | 0.79758584 | 0 |
Gets the org_apache_felix_https_jetty_ciphersuites_excluded of this OrgApacheFelixHttpProperties. | def org_apache_felix_https_jetty_ciphersuites_excluded(self) -> ConfigNodePropertyArray:
return self._org_apache_felix_https_jetty_ciphersuites_excluded | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_https_jetty_ciphersuites_excluded(self, org_apache_felix_https_jetty_ciphersuites_excluded: ConfigNodePropertyArray):\n\n self._org_apache_felix_https_jetty_ciphersuites_excluded = org_apache_felix_https_jetty_ciphersuites_excluded",
"def org_apache_felix_https_jetty_ciphersuites_incl... | [
"0.8006672",
"0.76669586",
"0.7355827",
"0.6812688",
"0.62024873",
"0.61846024",
"0.58553207",
"0.5841733",
"0.58255506",
"0.57873213",
"0.57873213",
"0.5574008",
"0.5541185",
"0.5272566",
"0.52486193",
"0.51701397",
"0.49791226",
"0.49747333",
"0.49476314",
"0.49220434",
"0.... | 0.87392783 | 0 |
Sets the org_apache_felix_https_jetty_ciphersuites_excluded of this OrgApacheFelixHttpProperties. | def org_apache_felix_https_jetty_ciphersuites_excluded(self, org_apache_felix_https_jetty_ciphersuites_excluded: ConfigNodePropertyArray):
self._org_apache_felix_https_jetty_ciphersuites_excluded = org_apache_felix_https_jetty_ciphersuites_excluded | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_https_jetty_ciphersuites_excluded(self) -> ConfigNodePropertyArray:\n return self._org_apache_felix_https_jetty_ciphersuites_excluded",
"def org_apache_felix_https_jetty_protocols_excluded(self, org_apache_felix_https_jetty_protocols_excluded: ConfigNodePropertyArray):\n\n self... | [
"0.8188906",
"0.7445451",
"0.70056987",
"0.68604136",
"0.6727722",
"0.5532033",
"0.55267566",
"0.5348556",
"0.52328557",
"0.5147768",
"0.5141439",
"0.5130782",
"0.50554943",
"0.50419366",
"0.50419366",
"0.49337736",
"0.49311832",
"0.49194875",
"0.48945063",
"0.48111138",
"0.4... | 0.8483349 | 0 |
Gets the org_apache_felix_https_jetty_ciphersuites_included of this OrgApacheFelixHttpProperties. | def org_apache_felix_https_jetty_ciphersuites_included(self) -> ConfigNodePropertyArray:
return self._org_apache_felix_https_jetty_ciphersuites_included | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_https_jetty_ciphersuites_included(self, org_apache_felix_https_jetty_ciphersuites_included: ConfigNodePropertyArray):\n\n self._org_apache_felix_https_jetty_ciphersuites_included = org_apache_felix_https_jetty_ciphersuites_included",
"def org_apache_felix_https_jetty_ciphersuites_excl... | [
"0.7825576",
"0.73759526",
"0.7143918",
"0.67467165",
"0.6631727",
"0.64669883",
"0.64669883",
"0.6272395",
"0.5930661",
"0.52421147",
"0.52053916",
"0.5181582",
"0.51730275",
"0.5168932",
"0.5163339",
"0.5127186",
"0.5120606",
"0.50077444",
"0.491471",
"0.486843",
"0.4862405... | 0.88697094 | 0 |
Gets the org_apache_felix_http_jetty_send_server_header of this OrgApacheFelixHttpProperties. | def org_apache_felix_http_jetty_send_server_header(self) -> ConfigNodePropertyBoolean:
return self._org_apache_felix_http_jetty_send_server_header | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_http_jetty_send_server_header(self, org_apache_felix_http_jetty_send_server_header: ConfigNodePropertyBoolean):\n\n self._org_apache_felix_http_jetty_send_server_header = org_apache_felix_http_jetty_send_server_header",
"def org_apache_felix_http_host(self) -> ConfigNodePropertyString... | [
"0.720683",
"0.54335964",
"0.5170315",
"0.51302344",
"0.5125488",
"0.5118811",
"0.5031155",
"0.49336702",
"0.49309173",
"0.49040034",
"0.48370942",
"0.47977886",
"0.47821403",
"0.47776657",
"0.4730022",
"0.4717341",
"0.4712715",
"0.4674923",
"0.4673366",
"0.46565604",
"0.4655... | 0.761024 | 0 |
Gets the org_apache_felix_https_jetty_protocols_included of this OrgApacheFelixHttpProperties. | def org_apache_felix_https_jetty_protocols_included(self) -> ConfigNodePropertyArray:
return self._org_apache_felix_https_jetty_protocols_included | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_https_jetty_protocols_included(self, org_apache_felix_https_jetty_protocols_included: ConfigNodePropertyArray):\n\n self._org_apache_felix_https_jetty_protocols_included = org_apache_felix_https_jetty_protocols_included",
"def org_apache_felix_https_jetty_protocols_excluded(self) -> C... | [
"0.7143333",
"0.6994674",
"0.6475212",
"0.6100093",
"0.6100093",
"0.60744804",
"0.5737312",
"0.5601798",
"0.5586618",
"0.556064",
"0.55561566",
"0.55441225",
"0.54696274",
"0.5392853",
"0.53568125",
"0.535121",
"0.5342535",
"0.5327935",
"0.5178258",
"0.51387435",
"0.51382333"... | 0.84173626 | 0 |
Gets the org_apache_felix_https_jetty_protocols_excluded of this OrgApacheFelixHttpProperties. | def org_apache_felix_https_jetty_protocols_excluded(self) -> ConfigNodePropertyArray:
return self._org_apache_felix_https_jetty_protocols_excluded | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_https_jetty_protocols_excluded(self, org_apache_felix_https_jetty_protocols_excluded: ConfigNodePropertyArray):\n\n self._org_apache_felix_https_jetty_protocols_excluded = org_apache_felix_https_jetty_protocols_excluded",
"def org_apache_felix_https_jetty_protocols_included(self) -> C... | [
"0.75173306",
"0.68851614",
"0.686683",
"0.59903455",
"0.59645575",
"0.5721217",
"0.55738944",
"0.5501336",
"0.5446554",
"0.5372603",
"0.5343339",
"0.52907157",
"0.5220622",
"0.5179009",
"0.5147509",
"0.50936097",
"0.50936097",
"0.50856",
"0.5071173",
"0.5070654",
"0.5028659"... | 0.8276882 | 0 |
Gets the org_apache_felix_proxy_load_balancer_connection_enable of this OrgApacheFelixHttpProperties. | def org_apache_felix_proxy_load_balancer_connection_enable(self) -> ConfigNodePropertyBoolean:
return self._org_apache_felix_proxy_load_balancer_connection_enable | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_proxy_load_balancer_connection_enable(self, org_apache_felix_proxy_load_balancer_connection_enable: ConfigNodePropertyBoolean):\n\n self._org_apache_felix_proxy_load_balancer_connection_enable = org_apache_felix_proxy_load_balancer_connection_enable",
"def proxy_enabled(self) -> Confi... | [
"0.7585389",
"0.5979093",
"0.58541465",
"0.5275434",
"0.5167154",
"0.51560354",
"0.51274407",
"0.5123524",
"0.5077133",
"0.50369227",
"0.5034911",
"0.5006835",
"0.49991077",
"0.49728867",
"0.49704644",
"0.49545544",
"0.49113658",
"0.48701268",
"0.48631307",
"0.48617736",
"0.4... | 0.8379422 | 0 |
Gets the org_apache_felix_https_jetty_renegotiate_allowed of this OrgApacheFelixHttpProperties. | def org_apache_felix_https_jetty_renegotiate_allowed(self) -> ConfigNodePropertyBoolean:
return self._org_apache_felix_https_jetty_renegotiate_allowed | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_https_jetty_renegotiate_allowed(self, org_apache_felix_https_jetty_renegotiate_allowed: ConfigNodePropertyBoolean):\n\n self._org_apache_felix_https_jetty_renegotiate_allowed = org_apache_felix_https_jetty_renegotiate_allowed",
"def org_apache_felix_http_jetty_acceptors(self) -> Confi... | [
"0.7388131",
"0.5603824",
"0.5246607",
"0.5156881",
"0.5155354",
"0.50769955",
"0.5044736",
"0.48870885",
"0.48011816",
"0.4797564",
"0.4762255",
"0.47510862",
"0.47293967",
"0.47182637",
"0.47124138",
"0.46745506",
"0.46723396",
"0.4661274",
"0.46395332",
"0.46204197",
"0.45... | 0.7759308 | 0 |
Gets the org_eclipse_jetty_servlet_session_id_path_parameter_name of this OrgApacheFelixHttpProperties. | def org_eclipse_jetty_servlet_session_id_path_parameter_name(self) -> ConfigNodePropertyString:
return self._org_eclipse_jetty_servlet_session_id_path_parameter_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_eclipse_jetty_servlet_session_id_path_parameter_name(self, org_eclipse_jetty_servlet_session_id_path_parameter_name: ConfigNodePropertyString):\n\n self._org_eclipse_jetty_servlet_session_id_path_parameter_name = org_eclipse_jetty_servlet_session_id_path_parameter_name",
"def org_eclipse_jetty_ser... | [
"0.7539641",
"0.69858646",
"0.61451226",
"0.60847193",
"0.59652257",
"0.58883613",
"0.5875231",
"0.58094233",
"0.5783299",
"0.5781225",
"0.5766997",
"0.5766805",
"0.5730334",
"0.56632304",
"0.5591728",
"0.55735487",
"0.55616134",
"0.5490254",
"0.543284",
"0.53859866",
"0.5374... | 0.8829833 | 0 |
Gets the org_eclipse_jetty_servlet_checking_remote_session_id_encoding of this OrgApacheFelixHttpProperties. | def org_eclipse_jetty_servlet_checking_remote_session_id_encoding(self) -> ConfigNodePropertyBoolean:
return self._org_eclipse_jetty_servlet_checking_remote_session_id_encoding | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_eclipse_jetty_servlet_checking_remote_session_id_encoding(self, org_eclipse_jetty_servlet_checking_remote_session_id_encoding: ConfigNodePropertyBoolean):\n\n self._org_eclipse_jetty_servlet_checking_remote_session_id_encoding = org_eclipse_jetty_servlet_checking_remote_session_id_encoding",
"def ... | [
"0.7184604",
"0.5711355",
"0.5639995",
"0.5615489",
"0.5608385",
"0.559433",
"0.5577687",
"0.5571455",
"0.55091834",
"0.54435366",
"0.53591734",
"0.5226014",
"0.5201126",
"0.5167259",
"0.5131304",
"0.51158756",
"0.5066466",
"0.5035612",
"0.4974878",
"0.4952222",
"0.4933751",
... | 0.750069 | 0 |
Gets the org_eclipse_jetty_servlet_session_domain of this OrgApacheFelixHttpProperties. | def org_eclipse_jetty_servlet_session_domain(self) -> ConfigNodePropertyString:
return self._org_eclipse_jetty_servlet_session_domain | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_eclipse_jetty_servlet_session_domain(self, org_eclipse_jetty_servlet_session_domain: ConfigNodePropertyString):\n\n self._org_eclipse_jetty_servlet_session_domain = org_eclipse_jetty_servlet_session_domain",
"def org_eclipse_jetty_servlet_session_cookie(self) -> ConfigNodePropertyString:\n ... | [
"0.69871855",
"0.6372758",
"0.61622244",
"0.60986185",
"0.6049063",
"0.6037164",
"0.5997461",
"0.59651726",
"0.5902273",
"0.5902273",
"0.5902273",
"0.5886359",
"0.58488506",
"0.582764",
"0.56906235",
"0.5684521",
"0.5553651",
"0.55455285",
"0.55266345",
"0.54739136",
"0.54739... | 0.802342 | 0 |
Gets the org_eclipse_jetty_servlet_session_path of this OrgApacheFelixHttpProperties. | def org_eclipse_jetty_servlet_session_path(self) -> ConfigNodePropertyString:
return self._org_eclipse_jetty_servlet_session_path | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_eclipse_jetty_servlet_session_path(self, org_eclipse_jetty_servlet_session_path: ConfigNodePropertyString):\n\n self._org_eclipse_jetty_servlet_session_path = org_eclipse_jetty_servlet_session_path",
"def org_eclipse_jetty_servlet_session_cookie(self) -> ConfigNodePropertyString:\n return s... | [
"0.729333",
"0.65782946",
"0.64603853",
"0.6325453",
"0.6289483",
"0.58086145",
"0.57547486",
"0.57312465",
"0.5423325",
"0.5413763",
"0.540596",
"0.5405453",
"0.5382843",
"0.5359993",
"0.5338981",
"0.5300187",
"0.5295436",
"0.5278488",
"0.520236",
"0.5169816",
"0.5169054",
... | 0.84634095 | 0 |
Gets the org_eclipse_jetty_servlet_max_age of this OrgApacheFelixHttpProperties. | def org_eclipse_jetty_servlet_max_age(self) -> ConfigNodePropertyInteger:
return self._org_eclipse_jetty_servlet_max_age | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_eclipse_jetty_servlet_max_age(self, org_eclipse_jetty_servlet_max_age: ConfigNodePropertyInteger):\n\n self._org_eclipse_jetty_servlet_max_age = org_eclipse_jetty_servlet_max_age",
"def get_access_control_max_age(self):\n return self.access_control_max_age",
"def max_age(self):\n r... | [
"0.79226923",
"0.7374661",
"0.7364027",
"0.7364027",
"0.7353072",
"0.7175885",
"0.70248944",
"0.6911765",
"0.68871266",
"0.68483526",
"0.67656684",
"0.6505761",
"0.6406191",
"0.63704854",
"0.6334884",
"0.6334264",
"0.6306295",
"0.62859863",
"0.62758666",
"0.619527",
"0.615905... | 0.8632336 | 0 |
Sets the org_eclipse_jetty_servlet_max_age of this OrgApacheFelixHttpProperties. | def org_eclipse_jetty_servlet_max_age(self, org_eclipse_jetty_servlet_max_age: ConfigNodePropertyInteger):
self._org_eclipse_jetty_servlet_max_age = org_eclipse_jetty_servlet_max_age | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_eclipse_jetty_servlet_max_age(self) -> ConfigNodePropertyInteger:\n return self._org_eclipse_jetty_servlet_max_age",
"def max_age(self, max_age):\n self._max_age = max_age",
"def max_age(self, max_age):\n\n self._max_age = max_age",
"def org_apache_felix_http_timeout(self, org_ap... | [
"0.77070516",
"0.7198202",
"0.7138556",
"0.65017915",
"0.6181767",
"0.6141175",
"0.5987505",
"0.5961079",
"0.5936582",
"0.5936582",
"0.59012896",
"0.58650595",
"0.5784935",
"0.5715105",
"0.5714598",
"0.5695832",
"0.56906164",
"0.56906164",
"0.56471163",
"0.5641398",
"0.563022... | 0.85148215 | 0 |
Gets the org_apache_felix_http_name of this OrgApacheFelixHttpProperties. | def org_apache_felix_http_name(self) -> ConfigNodePropertyString:
return self._org_apache_felix_http_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_http_name(self, org_apache_felix_http_name: ConfigNodePropertyString):\n\n self._org_apache_felix_http_name = org_apache_felix_http_name",
"def org_apache_felix_http_host(self) -> ConfigNodePropertyString:\n return self._org_apache_felix_http_host",
"def org_apache_felix_http... | [
"0.74911267",
"0.71158814",
"0.63308436",
"0.595011",
"0.5915674",
"0.5898321",
"0.5829151",
"0.58089536",
"0.58089536",
"0.56966585",
"0.56966585",
"0.5591087",
"0.5591087",
"0.5585039",
"0.5573472",
"0.55702573",
"0.5503454",
"0.5494949",
"0.5494949",
"0.5494949",
"0.549494... | 0.87875336 | 0 |
Sets the org_apache_felix_http_name of this OrgApacheFelixHttpProperties. | def org_apache_felix_http_name(self, org_apache_felix_http_name: ConfigNodePropertyString):
self._org_apache_felix_http_name = org_apache_felix_http_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_http_name(self) -> ConfigNodePropertyString:\n return self._org_apache_felix_http_name",
"def org_apache_felix_http_host(self, org_apache_felix_http_host: ConfigNodePropertyString):\n\n self._org_apache_felix_http_host = org_apache_felix_http_host",
"def org_apache_felix_http... | [
"0.788678",
"0.7194826",
"0.60659164",
"0.602776",
"0.56623447",
"0.549155",
"0.5468139",
"0.5403469",
"0.53853196",
"0.536887",
"0.53645056",
"0.53538674",
"0.5307902",
"0.52866834",
"0.528085",
"0.528085",
"0.5280482",
"0.5277183",
"0.52763146",
"0.5264887",
"0.5264495",
... | 0.8956275 | 0 |
Gets the org_apache_felix_jetty_gziphandler_enable of this OrgApacheFelixHttpProperties. | def org_apache_felix_jetty_gziphandler_enable(self) -> ConfigNodePropertyBoolean:
return self._org_apache_felix_jetty_gziphandler_enable | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_jetty_gziphandler_enable(self, org_apache_felix_jetty_gziphandler_enable: ConfigNodePropertyBoolean):\n\n self._org_apache_felix_jetty_gziphandler_enable = org_apache_felix_jetty_gziphandler_enable",
"def org_apache_felix_jetty_gzip_compression_level(self) -> ConfigNodePropertyInteger... | [
"0.80092615",
"0.7250536",
"0.6306701",
"0.6257106",
"0.619261",
"0.5885446",
"0.57945496",
"0.56162643",
"0.5569837",
"0.55353713",
"0.54881006",
"0.54293126",
"0.54227716",
"0.5384655",
"0.53636545",
"0.5305998",
"0.5107341",
"0.5064164",
"0.49836802",
"0.49299547",
"0.4914... | 0.85912055 | 0 |
Sets the org_apache_felix_jetty_gziphandler_enable of this OrgApacheFelixHttpProperties. | def org_apache_felix_jetty_gziphandler_enable(self, org_apache_felix_jetty_gziphandler_enable: ConfigNodePropertyBoolean):
self._org_apache_felix_jetty_gziphandler_enable = org_apache_felix_jetty_gziphandler_enable | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_jetty_gziphandler_enable(self) -> ConfigNodePropertyBoolean:\n return self._org_apache_felix_jetty_gziphandler_enable",
"def org_apache_felix_jetty_gzip_compression_level(self, org_apache_felix_jetty_gzip_compression_level: ConfigNodePropertyInteger):\n\n self._org_apache_felix... | [
"0.8225073",
"0.6851057",
"0.6579651",
"0.5856874",
"0.5840498",
"0.57394814",
"0.559938",
"0.549365",
"0.5477199",
"0.54660046",
"0.54463446",
"0.53507644",
"0.53407335",
"0.52680945",
"0.52453774",
"0.52061075",
"0.5050915",
"0.5037592",
"0.5035342",
"0.49892813",
"0.494841... | 0.86850715 | 0 |
Gets the org_apache_felix_jetty_gzip_min_gzip_size of this OrgApacheFelixHttpProperties. | def org_apache_felix_jetty_gzip_min_gzip_size(self) -> ConfigNodePropertyInteger:
return self._org_apache_felix_jetty_gzip_min_gzip_size | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_jetty_gzip_min_gzip_size(self, org_apache_felix_jetty_gzip_min_gzip_size: ConfigNodePropertyInteger):\n\n self._org_apache_felix_jetty_gzip_min_gzip_size = org_apache_felix_jetty_gzip_min_gzip_size",
"def org_apache_felix_jetty_gzip_inflate_buffer_size(self) -> ConfigNodePropertyInteg... | [
"0.8400562",
"0.75387615",
"0.6989325",
"0.653769",
"0.6295669",
"0.618279",
"0.61458206",
"0.59806186",
"0.5916113",
"0.59154785",
"0.59107256",
"0.56638294",
"0.56260955",
"0.56211317",
"0.55791783",
"0.55396116",
"0.5530492",
"0.5478353",
"0.5460692",
"0.5456675",
"0.54473... | 0.91252005 | 0 |
Sets the org_apache_felix_jetty_gzip_compression_level of this OrgApacheFelixHttpProperties. | def org_apache_felix_jetty_gzip_compression_level(self, org_apache_felix_jetty_gzip_compression_level: ConfigNodePropertyInteger):
self._org_apache_felix_jetty_gzip_compression_level = org_apache_felix_jetty_gzip_compression_level | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_jetty_gzip_compression_level(self) -> ConfigNodePropertyInteger:\n return self._org_apache_felix_jetty_gzip_compression_level",
"def org_apache_felix_jetty_gziphandler_enable(self) -> ConfigNodePropertyBoolean:\n return self._org_apache_felix_jetty_gziphandler_enable",
"def o... | [
"0.8114339",
"0.6905731",
"0.6715948",
"0.61611354",
"0.61341375",
"0.61019504",
"0.60927176",
"0.60925907",
"0.5844152",
"0.58404",
"0.55939794",
"0.55626774",
"0.553414",
"0.55092186",
"0.5507481",
"0.53810966",
"0.53064585",
"0.5291031",
"0.5249719",
"0.51036525",
"0.49681... | 0.85285103 | 0 |
Gets the org_apache_felix_jetty_gzip_inflate_buffer_size of this OrgApacheFelixHttpProperties. | def org_apache_felix_jetty_gzip_inflate_buffer_size(self) -> ConfigNodePropertyInteger:
return self._org_apache_felix_jetty_gzip_inflate_buffer_size | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_jetty_gzip_inflate_buffer_size(self, org_apache_felix_jetty_gzip_inflate_buffer_size: ConfigNodePropertyInteger):\n\n self._org_apache_felix_jetty_gzip_inflate_buffer_size = org_apache_felix_jetty_gzip_inflate_buffer_size",
"def org_apache_felix_jetty_gzip_min_gzip_size(self) -> Confi... | [
"0.78192544",
"0.7534896",
"0.75241023",
"0.71015847",
"0.6967161",
"0.6539922",
"0.6312643",
"0.6282108",
"0.61751866",
"0.611683",
"0.59593934",
"0.5856223",
"0.58093953",
"0.5690487",
"0.56638455",
"0.55786276",
"0.5559468",
"0.5559468",
"0.55552584",
"0.55482984",
"0.5542... | 0.89327013 | 0 |
Sets the org_apache_felix_jetty_gzip_excluded_user_agents of this OrgApacheFelixHttpProperties. | def org_apache_felix_jetty_gzip_excluded_user_agents(self, org_apache_felix_jetty_gzip_excluded_user_agents: ConfigNodePropertyArray):
self._org_apache_felix_jetty_gzip_excluded_user_agents = org_apache_felix_jetty_gzip_excluded_user_agents | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_jetty_gzip_excluded_user_agents(self) -> ConfigNodePropertyArray:\n return self._org_apache_felix_jetty_gzip_excluded_user_agents",
"def filter_safe_user_agents(self, filter_safe_user_agents: ConfigNodePropertyArray):\n\n self._filter_safe_user_agents = filter_safe_user_agents"... | [
"0.7649619",
"0.60233593",
"0.5984534",
"0.5948029",
"0.5899216",
"0.5882054",
"0.5842793",
"0.56277424",
"0.5497408",
"0.5446978",
"0.5370564",
"0.5225579",
"0.5139488",
"0.501105",
"0.49703276",
"0.49434593",
"0.4915729",
"0.48539138",
"0.48097253",
"0.47464195",
"0.4731984... | 0.82919717 | 0 |
Sets the org_apache_felix_jetty_gzip_included_methods of this OrgApacheFelixHttpProperties. | def org_apache_felix_jetty_gzip_included_methods(self, org_apache_felix_jetty_gzip_included_methods: ConfigNodePropertyArray):
self._org_apache_felix_jetty_gzip_included_methods = org_apache_felix_jetty_gzip_included_methods | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_jetty_gzip_included_methods(self) -> ConfigNodePropertyArray:\n return self._org_apache_felix_jetty_gzip_included_methods",
"def org_apache_felix_jetty_gzip_excluded_methods(self, org_apache_felix_jetty_gzip_excluded_methods: ConfigNodePropertyArray):\n\n self._org_apache_felix... | [
"0.7561679",
"0.6773122",
"0.66826427",
"0.66260004",
"0.63912",
"0.6294382",
"0.60962415",
"0.6032009",
"0.55651724",
"0.53901464",
"0.5340616",
"0.53070307",
"0.5062725",
"0.4970581",
"0.48865408",
"0.4868912",
"0.4856106",
"0.48545745",
"0.47781938",
"0.4765087",
"0.475418... | 0.8251781 | 0 |
Gets the org_apache_felix_jetty_gzip_excluded_methods of this OrgApacheFelixHttpProperties. | def org_apache_felix_jetty_gzip_excluded_methods(self) -> ConfigNodePropertyArray:
return self._org_apache_felix_jetty_gzip_excluded_methods | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_jetty_gzip_excluded_methods(self, org_apache_felix_jetty_gzip_excluded_methods: ConfigNodePropertyArray):\n\n self._org_apache_felix_jetty_gzip_excluded_methods = org_apache_felix_jetty_gzip_excluded_methods",
"def org_apache_felix_jetty_gzip_included_methods(self) -> ConfigNodeProper... | [
"0.7679581",
"0.7178411",
"0.71659577",
"0.6717624",
"0.66323245",
"0.6262904",
"0.625716",
"0.6055317",
"0.6010886",
"0.5653586",
"0.56486136",
"0.56155777",
"0.5587748",
"0.5570899",
"0.5568406",
"0.5402669",
"0.5382714",
"0.5347153",
"0.5339512",
"0.53226024",
"0.5274439",... | 0.85521764 | 0 |
Gets the org_apache_felix_jetty_gzip_excluded_paths of this OrgApacheFelixHttpProperties. | def org_apache_felix_jetty_gzip_excluded_paths(self) -> ConfigNodePropertyArray:
return self._org_apache_felix_jetty_gzip_excluded_paths | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_jetty_gzip_included_paths(self) -> ConfigNodePropertyArray:\n return self._org_apache_felix_jetty_gzip_included_paths",
"def org_apache_felix_jetty_gzip_excluded_paths(self, org_apache_felix_jetty_gzip_excluded_paths: ConfigNodePropertyArray):\n\n self._org_apache_felix_jetty_g... | [
"0.7664793",
"0.755466",
"0.71894544",
"0.6854936",
"0.6747863",
"0.6717936",
"0.6661041",
"0.6292526",
"0.59868807",
"0.59426415",
"0.58985263",
"0.5872978",
"0.5845391",
"0.57460874",
"0.56098026",
"0.55324715",
"0.550655",
"0.54484224",
"0.54354405",
"0.5385288",
"0.533953... | 0.8602508 | 0 |
Sets the org_apache_felix_jetty_gzip_excluded_paths of this OrgApacheFelixHttpProperties. | def org_apache_felix_jetty_gzip_excluded_paths(self, org_apache_felix_jetty_gzip_excluded_paths: ConfigNodePropertyArray):
self._org_apache_felix_jetty_gzip_excluded_paths = org_apache_felix_jetty_gzip_excluded_paths | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_jetty_gzip_excluded_paths(self) -> ConfigNodePropertyArray:\n return self._org_apache_felix_jetty_gzip_excluded_paths",
"def org_apache_felix_jetty_gzip_included_paths(self, org_apache_felix_jetty_gzip_included_paths: ConfigNodePropertyArray):\n\n self._org_apache_felix_jetty_g... | [
"0.73312",
"0.6721894",
"0.64388037",
"0.64170027",
"0.6315897",
"0.6179333",
"0.60733014",
"0.5924842",
"0.57383174",
"0.5684811",
"0.56573874",
"0.5620455",
"0.5342405",
"0.5341773",
"0.53177553",
"0.52853596",
"0.52180296",
"0.50882804",
"0.5034334",
"0.48919365",
"0.48573... | 0.79911524 | 0 |
Gets the org_apache_felix_http_session_invalidate of this OrgApacheFelixHttpProperties. | def org_apache_felix_http_session_invalidate(self) -> ConfigNodePropertyBoolean:
return self._org_apache_felix_http_session_invalidate | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_http_session_invalidate(self, org_apache_felix_http_session_invalidate: ConfigNodePropertyBoolean):\n\n self._org_apache_felix_http_session_invalidate = org_apache_felix_http_session_invalidate",
"def auth_invalidate_session(self) -> None:\n self.__logger.debug('Eva.auth_invali... | [
"0.7217652",
"0.62059575",
"0.554804",
"0.53198594",
"0.50600505",
"0.5036488",
"0.4939528",
"0.4923382",
"0.4796819",
"0.47919518",
"0.47808963",
"0.4733047",
"0.46928778",
"0.4659546",
"0.4607059",
"0.4606501",
"0.45678967",
"0.45677337",
"0.4553705",
"0.45413536",
"0.45328... | 0.7086756 | 1 |
Gets the org_apache_felix_http_session_uniqueid of this OrgApacheFelixHttpProperties. | def org_apache_felix_http_session_uniqueid(self) -> ConfigNodePropertyBoolean:
return self._org_apache_felix_http_session_uniqueid | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def org_apache_felix_http_session_uniqueid(self, org_apache_felix_http_session_uniqueid: ConfigNodePropertyBoolean):\n\n self._org_apache_felix_http_session_uniqueid = org_apache_felix_http_session_uniqueid",
"def session_id(self) -> str:\n return self._session_id",
"def get_sessionid(self):\n ... | [
"0.6747569",
"0.6661827",
"0.65855795",
"0.65626913",
"0.6464378",
"0.63789254",
"0.6297064",
"0.62230587",
"0.6094951",
"0.6089729",
"0.6038436",
"0.6000553",
"0.59570223",
"0.59272194",
"0.58490086",
"0.5816694",
"0.5774036",
"0.5772387",
"0.5772387",
"0.5772387",
"0.577238... | 0.73061305 | 0 |
Initializes lines in mess. Arguments | def init_data_array(self, mess = None):
if self.verbose > 1:
print("MultiLinearSpectra.init_data_array()")
if mess is None:
if self.mess is None:
warnings.warn("MultiLinearSpectra.init_data_array(): no data to initialize")
return None
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _init():\n line.set_data([], [])\n return line,",
"def init(self) -> None:\n self.started = False\n self.lines = []\n self.text = ''\n self.graphics = ''\n self.ids = {}\n self.first_line_added = False\n\n self.used_fonts = set()\n self.cu... | [
"0.7114457",
"0.68138045",
"0.66550803",
"0.6645879",
"0.66072685",
"0.6591662",
"0.65460235",
"0.6537141",
"0.65158004",
"0.64573497",
"0.64411443",
"0.6431781",
"0.6392103",
"0.6391596",
"0.6321408",
"0.62290025",
"0.62257206",
"0.6158454",
"0.6153172",
"0.6127611",
"0.6124... | 0.0 | -1 |
Whether the timer is running to timeout. | def running(self):
return (
self.enabled and (self.elapsed < self.timeout)
and not math.isclose(self.elapsed, self.timeout)
) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def has_timeout(self) -> bool:\n\n return bool(self.timeout)",
"def haveTime(self):\n if self.timeout is None:\n return True\n return time.time() <= self._stop",
"def is_timeout(self) -> bool:\n return self.runtime.timeout <= 0.0",
"def is_timeout(self):\n\n retu... | [
"0.85414934",
"0.8433511",
"0.8432341",
"0.8291913",
"0.7813298",
"0.77964294",
"0.77032554",
"0.77014726",
"0.7627804",
"0.761627",
"0.76098204",
"0.7557225",
"0.74897844",
"0.7479063",
"0.7420011",
"0.73958844",
"0.7351708",
"0.73353684",
"0.7310208",
"0.7289376",
"0.713665... | 0.8121379 | 4 |
Return a string representation of the timer. | def __repr__(self):
return '{}({}{}{})'.format(
self.__class__.__qualname__,
'running ' if self.enabled else 'stopped ',
'from {}, '.format(self.start_time) if self.start_time is not None else '',
'timeout={}'.format(self.timeout)
) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def __str__(self) -> str:\n\n # Get current time\n t = timer()\n # Length of label field, calculated from max label length\n fldlen = [len(lbl) for lbl in self.t0] + [\n len(self.default_label),\n ]\n lfldln = max(fldlen) + 2\n # Header string for table o... | [
"0.7894373",
"0.7500253",
"0.73740035",
"0.72916394",
"0.7113802",
"0.7045564",
"0.70320517",
"0.69668543",
"0.6915015",
"0.68975204",
"0.6891109",
"0.6871769",
"0.68685114",
"0.686626",
"0.6803496",
"0.67871296",
"0.67758846",
"0.6764594",
"0.6749385",
"0.6744635",
"0.669448... | 0.65757376 | 24 |
split sentence into array of words/tokens a token can be a word or punctuation character, or number | def tokenize(sentence):
return nltk.word_tokenize(sentence) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tokenizer(sentence):\n words = []\n for phrase in sentence.split('.'):\n for piece in phrase.split(','):\n for word in piece.split(' '):\n words.append(word)\n return words",
"def tokenize(sentence):\n lower_s = sentence.lower()\n no_punc_s = lower_s.translate(... | [
"0.83152634",
"0.8212308",
"0.82033455",
"0.8118768",
"0.80138767",
"0.799489",
"0.7938661",
"0.7850677",
"0.78462934",
"0.7754768",
"0.7737204",
"0.7735215",
"0.7706611",
"0.76265985",
"0.76195514",
"0.7570465",
"0.7564433",
"0.7527731",
"0.7524016",
"0.7441771",
"0.7427784"... | 0.75818884 | 15 |
Make a linear system Ax = b | def _make_system(A, M, x0, b):
fast_matvec = _make_fast_matvec(A)
A = _interface.aslinearoperator(A)
if fast_matvec is not None:
A = _interface.LinearOperator(A.shape, matvec=fast_matvec,
rmatvec=A.rmatvec, dtype=A.dtype)
if A.shape[0] != A.shape[1]:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def linear(m, b, x, xx):\n y = m*(x - xx) + b\n return y",
"def lin(x, m, b):\n return m*x + b",
"def linearRegression(A, b):\n m = Model()\n m.setParam('OutputFlag', False)\n\n n = len(A) # number of rows in A\n d = len(A[0]) # number of columns in A\n assert n == len(b) # make sure the shape of... | [
"0.7352623",
"0.6810348",
"0.6730595",
"0.6547391",
"0.64910924",
"0.6206941",
"0.59876955",
"0.59825075",
"0.5976333",
"0.59281516",
"0.5861979",
"0.5843223",
"0.58372134",
"0.577443",
"0.5743828",
"0.5735573",
"0.56847113",
"0.56394136",
"0.56074315",
"0.5579507",
"0.555686... | 0.52181584 | 62 |
Used when adding an existent contributor to an existent album | def add_contributor_album(slug, username):
contrib = Contributor.get(username)
album = Album.get(slug)
ContributorAlbum(slug=album.slug, username=contrib.username).save() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def add_album_with_contributor(title, username):\n album = Album(title=title) \n album.save()\n ContributorAlbum(slug=album.slug, username=username).save()\n return album",
"def test_post_add_album_contrib_as_owner(self):\n self.make_logged_in_owner()\n\n # get our manage page with f... | [
"0.74803764",
"0.65657246",
"0.65415776",
"0.6436727",
"0.64360774",
"0.62320966",
"0.6168189",
"0.6168189",
"0.61587274",
"0.6062143",
"0.595339",
"0.595339",
"0.5950093",
"0.5899336",
"0.5891353",
"0.5877098",
"0.58582014",
"0.5845494",
"0.58208936",
"0.58176625",
"0.579798... | 0.7505874 | 0 |
Used when adding an existent contributor to an existent album | def add_contributor(username):
try:
get_contributor_by_username(username)
raise AttributeError("%s username alredy exists" % username)
except DynamoDBKeyNotFoundError:
pass
# print( "Username: %s" % username)
contrib = Contributor(username=username)
contrib.save()
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def add_contributor_album(slug, username):\n contrib = Contributor.get(username)\n album = Album.get(slug)\n ContributorAlbum(slug=album.slug, username=contrib.username).save()",
"def add_album_with_contributor(title, username):\n album = Album(title=title) \n album.save()\n ContributorAlbum... | [
"0.7505874",
"0.74803764",
"0.65657246",
"0.65415776",
"0.64360774",
"0.62320966",
"0.6168189",
"0.6168189",
"0.61587274",
"0.6062143",
"0.595339",
"0.595339",
"0.5950093",
"0.5899336",
"0.5891353",
"0.5877098",
"0.58582014",
"0.5845494",
"0.58208936",
"0.58176625",
"0.579798... | 0.6436727 | 4 |
Build index.html for cherrypy Render the template and return the html file to be delivered to the browser | def index(self, reload=None, state=None, code=None, grant_type=None, error_description=None):
token = self.plugin.get_hc().token_load()
if grant_type == "authorization_code" and code is not None and state is not None:
os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1'
self.logger.e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def main():\n return render_template('index.html')",
"def main():\n return render_template('index.html')",
"def index():\n # Render template\n return render_template('index.html')",
"def get_index():\n return render_template('index.html')",
"def index():\n return render_template(\"index.h... | [
"0.77999353",
"0.77999353",
"0.77187765",
"0.7706416",
"0.76352185",
"0.76352185",
"0.76352185",
"0.76352185",
"0.76352185",
"0.76352185",
"0.76352185",
"0.76352185",
"0.76352185",
"0.76352185",
"0.76352185",
"0.76352185",
"0.76352185",
"0.76352185",
"0.76352185",
"0.76352185",... | 0.0 | -1 |
Return True if the cell is a black (useless) cell. | def is_black(self):
return self.__e | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def is_black(self):\n return self.color == Color.BLACK",
"def is_black(self):\n return \"black\" == self.color",
"def cell_is_usable(cell):\n\tmaxcolors = tile_size[0] * tile_size[1]\n\tcolors = cell.getcolors(maxcolors)\n\t\n\tis_usable = False\n\t\n\tfor color in colors:\t\n\t\tif len(color[1])... | [
"0.77236855",
"0.7712776",
"0.73977864",
"0.7390379",
"0.7200076",
"0.7065344",
"0.67126036",
"0.657859",
"0.6577695",
"0.65096116",
"0.64623624",
"0.6453057",
"0.64176685",
"0.64176685",
"0.6395148",
"0.6389826",
"0.6355239",
"0.63424397",
"0.63424397",
"0.63385826",
"0.6333... | 0.739428 | 3 |
Return the number of rows of this Kakuro instance. | def nrows(self):
return self.__nrows | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def row_count(self) -> int:\n return len(self.rows)",
"def row_count(self) -> int:\n return len(self.rows)",
"def num_rows(self):\n return len(self.rows)",
"def getNumRows(self) -> int:\n ...",
"def num_rows(self):\n return (len(self.rows))",
"def get_num_rows(self):\n ... | [
"0.8733853",
"0.8733853",
"0.87172943",
"0.8695023",
"0.86759204",
"0.8556925",
"0.8555162",
"0.85287774",
"0.84931016",
"0.8488505",
"0.84476614",
"0.84342366",
"0.84327096",
"0.8396778",
"0.83400315",
"0.8237398",
"0.8213935",
"0.8128086",
"0.80546063",
"0.80460244",
"0.803... | 0.73134696 | 44 |
This function will plot and save the history of the training of model to two external png file. One for the model loss over the epochs and one for the model accuracy over the epochs. | def plotHistory(history):
acc = history.history['acc']
val_acc = history.history['val_acc']
loss = history.history['loss']
val_loss = history.history['val_loss']
epochs = range(len(acc))
# Make and save the plot for our accuracy
plt.plot(epochs, acc, 'bo', label='Training acc')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def plot_train_history(modell=config.model):\n history = pd.read_csv(f'model/this/{modell}_history.csv')\n epochs = len(history.epoch)\n\n plt.style.use(\"ggplot\")\n plt.rcParams['figure.figsize'] = (5, 9)\n plt.plot(np.arange(0, epochs), history[\"accuracy\"], label=\"model accuracy\", color=\"red... | [
"0.7977149",
"0.78650296",
"0.78495806",
"0.7803552",
"0.7779729",
"0.776749",
"0.7753306",
"0.77321535",
"0.77168226",
"0.77015525",
"0.7658724",
"0.76476336",
"0.76449656",
"0.76299965",
"0.7609301",
"0.75890297",
"0.7568557",
"0.7522234",
"0.7485536",
"0.74618995",
"0.7457... | 0.82532877 | 0 |
Return the set of variables in C{tree}. | def variables(self):
return {u for u in self if u.type == 'var'} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def collect_primed_vars(t):\n g = Tree.from_recursive_ast(t)\n # (node, context)\n Q = [(t, False)]\n primed = set()\n while Q:\n u, c = Q.pop()\n if u.type == 'var' and c:\n primed.add(u.value)\n try:\n c = (u.operator == 'X') or c\n except Attribut... | [
"0.6962289",
"0.6927584",
"0.6627293",
"0.6561857",
"0.6556594",
"0.6550809",
"0.65186816",
"0.6338633",
"0.62457734",
"0.6230781",
"0.61825246",
"0.6181521",
"0.6181521",
"0.6181521",
"0.6171643",
"0.6157317",
"0.615492",
"0.6143949",
"0.6088971",
"0.60564524",
"0.60499847",... | 0.65964955 | 3 |
Getter method for peer_group_name, mapped from YANG variable /network_instances/network_instance/protocols/protocol/bgp/peer_groups/peer_group/config/peer_group_name (string) | def _get_peer_group_name(self):
return self.__peer_group_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _set_peer_group_name(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(\n v,\n base=six.text_type,\n is_leaf=True,\n yang_name=\"peer-group-name\",\n paren... | [
"0.7355975",
"0.7355975",
"0.6354697",
"0.5666192",
"0.5261351",
"0.4987163",
"0.49809876",
"0.4971967",
"0.48071706",
"0.47477484",
"0.47477484",
"0.47402024",
"0.4739201",
"0.46844304",
"0.466168",
"0.46029815",
"0.46010056",
"0.45885795",
"0.45885795",
"0.45798707",
"0.455... | 0.651733 | 2 |
Setter method for peer_group_name, mapped from YANG variable /network_instances/network_instance/protocols/protocol/bgp/peer_groups/peer_group/config/peer_group_name (string) | def _set_peer_group_name(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(
v,
base=six.text_type,
is_leaf=True,
yang_name="peer-group-name",
parent=self,
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _set_evpn_neighbor_peergroup_name(self, v, load=False):\n parent = getattr(self, \"_parent\", None)\n if parent is not None and load is False:\n raise AttributeError(\"Cannot set keys directly when\" +\n \" within an instantiated list\")\n\n if hasattr(v, \"_utype\"):\... | [
"0.6388651",
"0.55820066",
"0.55820066",
"0.555519",
"0.5260953",
"0.48957533",
"0.48141342",
"0.48051596",
"0.47079813",
"0.4597745",
"0.45123902",
"0.44226515",
"0.43617657",
"0.43595254",
"0.43145773",
"0.43107888",
"0.43107888",
"0.42116663",
"0.42069572",
"0.41871294",
"... | 0.78954 | 1 |
Getter method for description, mapped from YANG variable /network_instances/network_instance/protocols/protocol/bgp/peer_groups/peer_group/config/description (string) | def _get_description(self):
return self.__description | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_description(self):\n if CONFIG_KEY not in self:\n return\n if hasattr(self[CONFIG_KEY], DESC_KEY):\n desc_str = str(self[CONFIG_KEY][DESC_KEY])\n if not isinstance(desc_str, str):\n try:\n desc_str = str(desc_str)\n ... | [
"0.5795501",
"0.5462422",
"0.5430511",
"0.5359968",
"0.51888984",
"0.51867706",
"0.5036507",
"0.5033445",
"0.4982665",
"0.49570072",
"0.49570072",
"0.49256417",
"0.4919684",
"0.49067527",
"0.48717937",
"0.48491162",
"0.48360813",
"0.483453",
"0.48333156",
"0.48333156",
"0.480... | 0.0 | -1 |
Setter method for description, mapped from YANG variable /network_instances/network_instance/protocols/protocol/bgp/peer_groups/peer_group/config/description (string) | def _set_description(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(
v,
base=six.text_type,
is_leaf=True,
yang_name="description",
parent=self,
pa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def description(self, description: ConfigNodePropertyString):\n\n self._description = description",
"def get_description(self):\n if CONFIG_KEY not in self:\n return\n if hasattr(self[CONFIG_KEY], DESC_KEY):\n desc_str = str(self[CONFIG_KEY][DESC_KEY])\n if n... | [
"0.6107761",
"0.5661142",
"0.5599127",
"0.55906755",
"0.5536862",
"0.5375081",
"0.5323566",
"0.5321819",
"0.52902025",
"0.52713406",
"0.52438176",
"0.5235986",
"0.52252054",
"0.52206635",
"0.520752",
"0.51799285",
"0.5156858",
"0.5156858",
"0.5156858",
"0.5156858",
"0.5143311... | 0.57615554 | 2 |
Getter method for peer_group_name, mapped from YANG variable /network_instances/network_instance/protocols/protocol/bgp/peer_groups/peer_group/config/peer_group_name (string) | def _get_peer_group_name(self):
return self.__peer_group_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _set_peer_group_name(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(\n v,\n base=six.text_type,\n is_leaf=True,\n yang_name=\"peer-group-name\",\n paren... | [
"0.73562735",
"0.73562735",
"0.6353754",
"0.5664771",
"0.5262128",
"0.49862272",
"0.4980361",
"0.497163",
"0.48073316",
"0.47470635",
"0.47470635",
"0.47401738",
"0.47383773",
"0.4684408",
"0.46614385",
"0.46015325",
"0.46009162",
"0.45881674",
"0.45881674",
"0.45794487",
"0.... | 0.6516355 | 3 |
Setter method for peer_group_name, mapped from YANG variable /network_instances/network_instance/protocols/protocol/bgp/peer_groups/peer_group/config/peer_group_name (string) | def _set_peer_group_name(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(
v,
base=six.text_type,
is_leaf=True,
yang_name="peer-group-name",
parent=self,
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _set_evpn_neighbor_peergroup_name(self, v, load=False):\n parent = getattr(self, \"_parent\", None)\n if parent is not None and load is False:\n raise AttributeError(\"Cannot set keys directly when\" +\n \" within an instantiated list\")\n\n if hasattr(v, \"_utype\"):\... | [
"0.63907355",
"0.5583477",
"0.5583477",
"0.55552965",
"0.5261759",
"0.48967224",
"0.48166996",
"0.48066276",
"0.4708673",
"0.45989397",
"0.45126435",
"0.4424181",
"0.43623227",
"0.43602124",
"0.43156803",
"0.43112826",
"0.43112826",
"0.42138124",
"0.42072046",
"0.41854343",
"... | 0.7895534 | 0 |
Getter method for description, mapped from YANG variable /network_instances/network_instance/protocols/protocol/bgp/peer_groups/peer_group/config/description (string) | def _get_description(self):
return self.__description | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_description(self):\n if CONFIG_KEY not in self:\n return\n if hasattr(self[CONFIG_KEY], DESC_KEY):\n desc_str = str(self[CONFIG_KEY][DESC_KEY])\n if not isinstance(desc_str, str):\n try:\n desc_str = str(desc_str)\n ... | [
"0.57933056",
"0.54602814",
"0.54283285",
"0.5358262",
"0.51878697",
"0.5186445",
"0.50336295",
"0.50311416",
"0.49811763",
"0.49560302",
"0.49560302",
"0.49239454",
"0.49170133",
"0.49037704",
"0.4871067",
"0.4847679",
"0.48330963",
"0.48315567",
"0.48307127",
"0.48307127",
... | 0.0 | -1 |
Setter method for description, mapped from YANG variable /network_instances/network_instance/protocols/protocol/bgp/peer_groups/peer_group/config/description (string) | def _set_description(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(
v,
base=six.text_type,
is_leaf=True,
yang_name="description",
parent=self,
pa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def description(self, description: ConfigNodePropertyString):\n\n self._description = description",
"def get_description(self):\n if CONFIG_KEY not in self:\n return\n if hasattr(self[CONFIG_KEY], DESC_KEY):\n desc_str = str(self[CONFIG_KEY][DESC_KEY])\n if n... | [
"0.61069083",
"0.56617916",
"0.5597504",
"0.55908495",
"0.5535336",
"0.5373763",
"0.53228736",
"0.5321155",
"0.5290115",
"0.52707696",
"0.5243526",
"0.52357316",
"0.52219355",
"0.5220431",
"0.5206525",
"0.5178723",
"0.51558536",
"0.51558536",
"0.51558536",
"0.51558536",
"0.51... | 0.5761193 | 1 |
Increase the indentation of a string or a list of lines. >>> print(indent(['ab','cd'])) ab cd >>> print(indent('ab'+chr(10)+'cd')) ab cd >>> indent(['ab','cd'], join=False) [' ab', ' cd'] | def indent(lines_or_str, indent_str=' ', join=True):
if isinstance(lines_or_str, str):
lines = lines_or_str.split('\n')
else:
lines = lines_or_str
indented = (indent_str + line.rstrip() for line in lines)
if join:
return '\n'.join(indented)
else:
return list(indented... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _add_indent(script, indent=2):\n if not isinstance(script, list):\n script = [script]\n\n indent = ' ' * indent\n return [indent + s for s in script]",
"def out_indent(indent, *args):\n s = \"\"\n s += indent * \" \"\n s += \" \".join(args)\n return s",
"def _tex... | [
"0.6404776",
"0.6222365",
"0.62022024",
"0.606965",
"0.6027597",
"0.5771415",
"0.57700354",
"0.57553583",
"0.57324594",
"0.57014495",
"0.56932503",
"0.5672846",
"0.56462896",
"0.5641806",
"0.5585611",
"0.55051905",
"0.5477424",
"0.5429202",
"0.53347677",
"0.5225045",
"0.52219... | 0.64578503 | 0 |
Removes the goal_ prefix the last part of a path. >>> goal_('test/example/goal_stdout') 'test/example/stdout' | def goal_(s):
a, b = path.split(s)
return path.join(a, b[len('goal_'):]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _cleanup_path(path):\n return string.join(filter(None, string.split(path, '/')), '/')",
"def remove_upper_level_references(path):\n return os.path.normpath(\"/\" + path).lstrip(\"/\")",
"def noTrailingSlash(path):\n return path.split('/')[0]",
"def clean_path(path: str) -> str:\n previous_p... | [
"0.60307145",
"0.57229716",
"0.5715473",
"0.5688186",
"0.5674716",
"0.5644565",
"0.56161475",
"0.55927324",
"0.5566452",
"0.54711074",
"0.5469103",
"0.53800195",
"0.53389007",
"0.531018",
"0.52937573",
"0.5282302",
"0.527961",
"0.5251023",
"0.5239179",
"0.52235764",
"0.520575... | 0.7695428 | 0 |
Create a Spark Session | def create_spark_session():
spark = SparkSession\
.builder\
.config("spark.jars.packages", "org.apache.hadoop:hadoop-aws:2.7.5")\
.getOrCreate()
# print (spark.sparkContext.getConf().getAll)
return spark | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def create_sparksession():\n return SparkSession.builder.\\\n appName(\"Transforming the historical parking occupancy and blockface datasets\").\\\n getOrCreate()",
"def create_spark_session():\n\n spark = SparkSession. builder.\\\n config(\"spark.jars.packages\", \"org.apache.... | [
"0.8583326",
"0.83175904",
"0.83084273",
"0.8307013",
"0.8125987",
"0.8125987",
"0.8125987",
"0.8125987",
"0.8103901",
"0.8103901",
"0.8103901",
"0.8103901",
"0.8103901",
"0.8103901",
"0.8103901",
"0.8103901",
"0.8103901",
"0.8099807",
"0.8029769",
"0.79451036",
"0.7929743",
... | 0.7873913 | 23 |
The language name in which the AudioFile is recorded in. | def language(self) -> str:
if self.language_code in CODE_TO_LANGUAGE:
return CODE_TO_LANGUAGE[self.language_code]
return self.language_code | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def audio_language(self):\n # type: () -> string_types\n return self._audio_language",
"def get_language_name(self):\n return self.language_name",
"def language_name(value):\n return pycountry.languages.get(alpha_2=value)",
"def language_code(self) -> str:\n return pulumi.get(s... | [
"0.78637993",
"0.75976646",
"0.6961777",
"0.69609445",
"0.69593024",
"0.69593024",
"0.6928707",
"0.68877846",
"0.6844206",
"0.6844206",
"0.6839179",
"0.68230605",
"0.6821389",
"0.6718563",
"0.66898197",
"0.6679034",
"0.6653643",
"0.6642707",
"0.66295993",
"0.66295993",
"0.662... | 0.6866154 | 8 |
The duration of the AudioFile recording in a timedelta object. | def duration(self) -> datetime.timedelta:
return self._duration | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def duration(self):\n with audioread.audio_open(self.path) as f:\n return f.duration",
"def duration(self) -> float:\n return self.delta_t * len(self)",
"def duration(self) -> float:\n return self.delta_t * len(self)",
"def _duration(self):\n if getattr(self, '_duration... | [
"0.78648704",
"0.7622279",
"0.7622279",
"0.7537885",
"0.74809664",
"0.74269414",
"0.7424272",
"0.74206257",
"0.74095225",
"0.73989344",
"0.73830813",
"0.73105156",
"0.73088783",
"0.73017335",
"0.729375",
"0.729375",
"0.729375",
"0.729375",
"0.729375",
"0.729375",
"0.729375",
... | 0.75156343 | 4 |
The filesize in bytes of the AudioFile. | def size(self) -> int:
return self._size | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def file_size(self):\n return self._fileSize",
"def get_file_size(self) -> int:\n return self.get_main_information()['FileSize']",
"def file_size(self) -> int:\n return self.get_main_information()['FileSize']",
"def file_size():\n return os.path.getsize(FILE_NAME)",
"def file_size(s... | [
"0.7942445",
"0.77811414",
"0.7745893",
"0.76402384",
"0.7618646",
"0.7606739",
"0.75656176",
"0.755303",
"0.7508149",
"0.74334973",
"0.7386593",
"0.7382769",
"0.7382769",
"0.7355242",
"0.7355242",
"0.73492813",
"0.7347963",
"0.73139143",
"0.72858053",
"0.7279191",
"0.7279191... | 0.0 | -1 |
Get a human readable representation of the size in bytes. | def size_str(self) -> str:
return fmt_size_bytes(self._size) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def my_size(self):\n return u\"{} bytes\".format(self.size)",
"def size(self):\n\n return str(self.size)",
"def humanbytes(size):\n # https://stackoverflow.com/a/49361727/4723940\n if not size:\n return \"\"\n # 2 ** 10 = 1024\n power = 2**10\n raised_to_pow = 0\n dict_po... | [
"0.8138241",
"0.8061652",
"0.79895395",
"0.7839657",
"0.7548729",
"0.7528001",
"0.7491658",
"0.7461993",
"0.7455769",
"0.7443719",
"0.74179405",
"0.7413462",
"0.72744954",
"0.72632736",
"0.7252593",
"0.72264695",
"0.71850353",
"0.7179262",
"0.7177082",
"0.7156043",
"0.7119295... | 0.86575353 | 0 |
Returns a genarator of strings read from a "text_iterator" (iterating over lines), where a batch consists of adjacent lines separated by an empty line. The generator yiels one string per batch, with several adjacent lines joined by the "sep" character. | def split_batch(text_iterator, sep):
current_group = []
for l in text_iterator:
if l.strip() == "":
if current_group:
yield sep.join(current_group)
current_group = []
else:
current_group.append(l.strip())
yield sep.join(current_group) # las... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def txt_line_iterator(path):\n with tf.io.gfile.GFile(path) as f:\n for line in f:\n yield line.strip()",
"def yield_batches(self, texts):\n batch = []\n for text in self._iter_texts(texts):\n batch.append(text)\n if len(batch) == self.batch_size:\n yie... | [
"0.5992676",
"0.58370346",
"0.57789314",
"0.56593597",
"0.56508684",
"0.55819076",
"0.5481003",
"0.54286534",
"0.54286367",
"0.5426697",
"0.5426456",
"0.54091066",
"0.53727454",
"0.5350957",
"0.5350398",
"0.52409923",
"0.52257967",
"0.51570374",
"0.51264596",
"0.5123674",
"0.... | 0.7925198 | 0 |
Return the name used in the html form for the given form instance and field name. | def get_html_name(form, name):
return form.add_prefix(name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _get_field_name(self, instance):\n fields = getattr(instance, \"_fields\")\n return fields[self.id]",
"def form_name(self):\n \n # Unpack\n request = self.request\n context = request.context\n \n # Prepare\n first_btn = len(self.buttons) and self... | [
"0.7348436",
"0.71176386",
"0.6880881",
"0.685868",
"0.6820191",
"0.6801114",
"0.6696409",
"0.66775125",
"0.65721667",
"0.6490497",
"0.6363262",
"0.6351724",
"0.6348922",
"0.6331888",
"0.6311538",
"0.63034886",
"0.6261783",
"0.62236905",
"0.62060416",
"0.61982995",
"0.6181344... | 0.7297755 | 1 |
Constructs a mocked request object with the method, and applies the kwargs. | def make_form_request(self, method='GET', **kwargs):
initial = kwargs.pop('initial', {})
prefix = kwargs.pop('prefix', None)
data = kwargs.pop('data', {})
files = kwargs.pop('files', {})
method = method.upper()
request = MockRequest(user=self.user, method=method, FILES=fi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def req(self, method, *args, **kwargs):\n req = getattr(RequestFactory(), method)(*args, **kwargs)\n req.user = Mock()\n return req",
"def mock_request(request_path_query=\"\", # type: Str\n method=\"GET\", # type: Str\n params=None, ... | [
"0.80099607",
"0.7310533",
"0.7119481",
"0.6892195",
"0.6797805",
"0.658006",
"0.65339017",
"0.64448553",
"0.6440717",
"0.6391003",
"0.6388977",
"0.62979436",
"0.6248606",
"0.61969733",
"0.6190422",
"0.61808777",
"0.6171289",
"0.6164563",
"0.61545116",
"0.6152791",
"0.6092024... | 0.6812613 | 4 |
Creates, saves, and returns a user created with the User model found with 'get_user_model'. | def _make_real_user(self, user_type=None, **user_setup):
UserModel = get_user_model()
user_type = user_type or self.user_type
user = None
if 'username' not in user_setup:
user_setup['username'] = user_setup.get('email', '')
if user_type == 'anonymous':
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def create_user(self, **kwargs):\n kwargs = self._prepare_create_user_args(**kwargs)\n user = self.user_model(**kwargs)\n # noinspection PyUnresolvedReferences\n return self.save(user)",
"def create_user(self):\n return User.objects.create_user(**self.user_data)",
"def create... | [
"0.8337165",
"0.7983443",
"0.79643655",
"0.78964627",
"0.7783003",
"0.77449745",
"0.7705808",
"0.76872575",
"0.76591617",
"0.7649064",
"0.7608974",
"0.7608974",
"0.7608974",
"0.7608974",
"0.7608974",
"0.7608974",
"0.7608974",
"0.75258553",
"0.7520112",
"0.7510661",
"0.7509734... | 0.0 | -1 |
For the given named field, get the attrs as determined by the field and widget settings. | def get_format_attrs(self, name, field, alt_field_info={}):
# important_props = ('initial', 'autofocus', 'widget')
if name in alt_field_info:
field = deepcopy(field)
for prop, value in alt_field_info[name].items():
setattr(field, prop, value)
initial = fie... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def read_field_attributes(self, fieldname):\n return self.read_field(fieldname).attributes",
"def get_field_attr(name):\n # de variant met een repeating group (entiteit, dataitem) levert hier nog een probleem op.\n # is dat omdat er twee entiteiten in 1 scherm staan?\n fields = []\n opts = my.... | [
"0.66450113",
"0.59228253",
"0.5825731",
"0.5723031",
"0.56653965",
"0.5607219",
"0.5606834",
"0.56044406",
"0.5507906",
"0.54786855",
"0.54504424",
"0.54347646",
"0.5379743",
"0.5346478",
"0.5339721",
"0.53374994",
"0.53265065",
"0.5322189",
"0.53207207",
"0.531892",
"0.5298... | 0.64204663 | 1 |
For a given field and parameters, returns a dict with expected error value. | def test_col_data_errors(self):
help_tag = 'span'
help_text_br = False
label_attrs = {}
names = ('first', 'billing_address_1')
name = names[0]
errors = ErrorDict()
message = "This is the test error message"
err = ValidationError(message)
errors[nam... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def format_error(invalid, doc_type):\n # using string for checking is probably not ideal,\n # but voluptuous does not have specific sub error\n # types for these errors\n if invalid.error_message == 'extra keys not allowed':\n msg = \"Key '{}' is not allowed\".format(invalid.path[0])\n elif i... | [
"0.66086286",
"0.6460926",
"0.608032",
"0.6035599",
"0.5984933",
"0.5972485",
"0.5871997",
"0.58356065",
"0.5816161",
"0.58035576",
"0.5797691",
"0.5771329",
"0.5737679",
"0.5678687",
"0.5674697",
"0.5665619",
"0.5647539",
"0.5616226",
"0.56161356",
"0.56125855",
"0.55570114"... | 0.0 | -1 |
For a given row of columns and parameters, returns a list of 1 list since not errors_on_separate_row. | def test_row_from_columns_not_own_error_row(self):
errors_on_separate_row = False
field_setup = None
error_names = None
for as_type in ('p', 'ul', 'fieldset'):
setup = self.setup_row_from_columns(as_type, field_setup, error_names, errors_on_separate_row)
for row i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_rows(self) -> List[List[str]]:\n rows = []\n max_col_len = max([len(i) for i in self.param_cols.values()])\n for row_num in range(max_col_len):\n row = []\n first = True\n for parameter in self.parameters:\n try:\n sub_... | [
"0.65377086",
"0.64332545",
"0.61386806",
"0.6047732",
"0.6035611",
"0.59964144",
"0.59361637",
"0.59239525",
"0.5922437",
"0.59222096",
"0.5887315",
"0.5877022",
"0.584791",
"0.5841329",
"0.5840041",
"0.5817106",
"0.5776159",
"0.5770218",
"0.5752582",
"0.56425023",
"0.563409... | 0.55021983 | 29 |
For a given row of columns and parameters, returns a list of 1 list since not errors_on_separate_row. | def test_row_from_columns_not_own_error_row_table(self):
errors_on_separate_row = False
field_setup = None
error_names = None
for as_type in ('p', 'ul', 'fieldset'):
setup = self.setup_row_from_columns(as_type, field_setup, error_names, errors_on_separate_row)
for... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_rows(self) -> List[List[str]]:\n rows = []\n max_col_len = max([len(i) for i in self.param_cols.values()])\n for row_num in range(max_col_len):\n row = []\n first = True\n for parameter in self.parameters:\n try:\n sub_... | [
"0.6539424",
"0.6431968",
"0.6139373",
"0.6047412",
"0.60351557",
"0.59959465",
"0.5936427",
"0.5924955",
"0.5922736",
"0.59219885",
"0.5888057",
"0.58789235",
"0.58493435",
"0.5841341",
"0.58400387",
"0.58186424",
"0.5775279",
"0.57700896",
"0.57524616",
"0.56425446",
"0.563... | 0.54124033 | 32 |
Returns a dict of fields that are allowed to have a label_width with the current Form settings. | def get_allowed_width_fields(self, fields=None):
fields = fields or self.form.fields
allowed_fields = {}
for name, field in fields.items():
if isinstance(field.widget, self.form.label_width_widgets):
if not isinstance(field.widget, self.form.label_exclude_widgets):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_determine_label_width(self):\n original_setting = self.form.adjust_label_width\n self.form.adjust_label_width = True\n allowed_fields = self.get_allowed_width_fields()\n test_fields = allowed_fields.copy() # TODO: ? Try an input with some double and some single column rows?\n ... | [
"0.6926243",
"0.67922205",
"0.65030986",
"0.6348227",
"0.62569344",
"0.62152576",
"0.60450655",
"0.5798008",
"0.5680771",
"0.56420004",
"0.5495756",
"0.54944915",
"0.5481224",
"0.5414982",
"0.53760886",
"0.5371737",
"0.53142047",
"0.5259465",
"0.5247573",
"0.5178113",
"0.5174... | 0.8165431 | 0 |
The _html_tag method returns the HTML element with the given contents and attributes. | def test_html_tag(self):
tag = 'fake_tag_given'
attrs = ' id="fake_element" fake_attr="pointless value"'
content = 'This is some test content'
expected = '<%(tag)s%(attr)s>%(content)s</%(tag)s>' % {'tag': tag, 'attr': attrs, 'content': content}
actual = self.form._html_tag(tag, c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def html_tag(tag):\n def wrap_text(msg):\n print(\"<{0}>{1}</{0}>\".format(tag, msg))\n\n return wrap_text",
"def html_tag(tag):\n def wrap_text(msg):\n print(\"<{0}>{1}</{0}>\".format(tag, msg))\n return wrap_text",
"def html_tag(string, input_id, proc):\n return html_simple_eleme... | [
"0.68175143",
"0.6815307",
"0.6623925",
"0.6614243",
"0.6488021",
"0.64042556",
"0.6383693",
"0.6354789",
"0.6278493",
"0.625159",
"0.62393016",
"0.61448383",
"0.61063224",
"0.6095489",
"0.6085958",
"0.60668635",
"0.60668635",
"0.6029535",
"0.5987766",
"0.5924159",
"0.590795"... | 0.65817916 | 4 |
Returns a list of fieldset elements. Each is an HTML fieldset element containing form fields. | def test_form_main_rows_all_fieldsets(self):
# form.form_main_rows(self, html_args, fieldsets, form_col_count)
# html_args = (row_tag, col_head_tag, col_tag, single_col_tag, as_type, all_fieldsets)
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_fieldsets(model):\n fieldsets = getattr(model, 'report_builder_fieldsets', None)\n if fieldsets:\n for fieldset_name, fieldset_dict in model.report_builder_fieldsets:\n fieldset_string_to_field(fieldset_dict, model)\n return fieldsets",
"def test_as_fieldset(self):\n # f... | [
"0.6427859",
"0.6368388",
"0.616794",
"0.5879815",
"0.58745104",
"0.5799243",
"0.5735754",
"0.57204825",
"0.56616247",
"0.5607396",
"0.5604441",
"0.5590896",
"0.54335135",
"0.5430088",
"0.54119915",
"0.5409279",
"0.54030305",
"0.5402432",
"0.5388225",
"0.5336558",
"0.532238",... | 0.514886 | 31 |
Returns a list of fieldset elements. Each is an HTML fieldset element containing form fields. | def test_form_main_rows_all_fieldsets_has_container(self):
# form.form_main_rows(self, html_args, fieldsets, form_col_count)
# html_args = (row_tag, col_head_tag, col_tag, single_col_tag, as_type, all_fieldsets)
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_fieldsets(model):\n fieldsets = getattr(model, 'report_builder_fieldsets', None)\n if fieldsets:\n for fieldset_name, fieldset_dict in model.report_builder_fieldsets:\n fieldset_string_to_field(fieldset_dict, model)\n return fieldsets",
"def test_as_fieldset(self):\n # f... | [
"0.6427868",
"0.63683957",
"0.6167996",
"0.5879832",
"0.5874513",
"0.57993054",
"0.57357705",
"0.57204545",
"0.5661616",
"0.56074",
"0.5604412",
"0.5590947",
"0.5433534",
"0.5430066",
"0.54119486",
"0.5409246",
"0.54030436",
"0.5388262",
"0.5336579",
"0.53223556",
"0.5256719"... | 0.540242 | 17 |
The get_computed_field_names method should include the names when computed_fields is already determined. | def test_use_existing_computed_field_dict(self):
if isinstance(self.form.computed_fields, list):
self.form.computed_fields = self.form.get_computed_fields(self.form.computed_fields)
self.form.fields.update(self.form.computed_fields) # only names in fields included in get_computed_field_name... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_field_names() -> Sequence[str]:\n raise NotImplementedError",
"def field_names(self):\n ...",
"def test_init_update_computed_field_names(self):\n original_request = self.request\n original_form = self.form\n computed = getattr(self.form, 'computed_fields', None)\n ... | [
"0.63844585",
"0.62912333",
"0.62794363",
"0.62603986",
"0.62363034",
"0.6190328",
"0.61855924",
"0.6114373",
"0.6040428",
"0.6024961",
"0.60116583",
"0.6000503",
"0.599157",
"0.5962834",
"0.5922235",
"0.59012467",
"0.5882769",
"0.5877933",
"0.5828314",
"0.5807871",
"0.576512... | 0.7097615 | 0 |
Unchanged fields if 'remove_field_names' and 'removed_fields' are empty. | def test_unchanged_handle_removals(self):
original_fields = self.form.fields
fields = original_fields.copy()
self.form.removed_fields = {}
self.form.remove_field_names = []
result = self.form.handle_removals(fields)
self.assertEqual(len(original_fields), len(result))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_handle_removals_missing_removed_fields(self):\n original_fields = self.form.fields\n fields = original_fields.copy()\n self.form.remove_field_names = []\n if hasattr(self.form, 'removed_fields'):\n del self.form.removed_fields\n result = self.form.handle_remov... | [
"0.74554706",
"0.74491864",
"0.72936064",
"0.6925307",
"0.6923496",
"0.6707438",
"0.64466757",
"0.6417706",
"0.62968796",
"0.6211249",
"0.6186095",
"0.61174846",
"0.610701",
"0.6081443",
"0.6038494",
"0.59998083",
"0.5926599",
"0.58847034",
"0.5825061",
"0.5818654",
"0.580955... | 0.7591741 | 0 |
Fields whose name is in remove_field_names are removed from fields (with no form data). | def test_handle_removals_remove_field_names(self):
original_fields = self.form.fields
fields = original_fields.copy()
remove_names = ['second', 'last']
expected_fields = {name: field for name, field in fields.items() if name not in remove_names}
self.form.removed_fields = {}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_handle_removals_missing_remove_field_names(self):\n original_fields = self.form.fields\n fields = original_fields.copy()\n if hasattr(self.form, 'remove_field_names'):\n del self.form.remove_field_names\n\n with self.assertRaises(ImproperlyConfigured):\n s... | [
"0.74436945",
"0.737302",
"0.7368792",
"0.7205383",
"0.70427924",
"0.6999577",
"0.67760515",
"0.67616045",
"0.6653553",
"0.6589306",
"0.65694857",
"0.6391059",
"0.6376142",
"0.63376814",
"0.6242384",
"0.62271845",
"0.6207275",
"0.6149979",
"0.61190933",
"0.6039027",
"0.602740... | 0.7726188 | 0 |
Raises ImproperlyConfigured if an appropriate User like model cannot be discovered. | def test_raises_on_not_user_model(self):
# get_form_user_model: uses django.contrib.auth.get_user_model
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_user_model(self):\n try:\n return django_apps.get_model('clientArea.CustomUser')\n except ValueError:\n raise ImproperlyConfigured(\"AUTH_USER_MODEL must be of the form 'app_label.model_name'\")\n except LookupError:\n raise ImproperlyConfigured(\n ... | [
"0.71486276",
"0.69571644",
"0.6236953",
"0.61442864",
"0.5927751",
"0.57738036",
"0.57248414",
"0.56348896",
"0.5572049",
"0.5428908",
"0.54252464",
"0.5391623",
"0.53785664",
"0.5334192",
"0.5332374",
"0.53193533",
"0.52974296",
"0.5277115",
"0.5261055",
"0.5257088",
"0.523... | 0.67732507 | 2 |
Returns how many validators are applied to a given field. | def validators_applied_count(self, field, func, *args, **kwargs):
original_validators = field.validators
field.validators = []
func(*args, **kwargs)
result = len(field.validators)
field.validators = original_validators
return result | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getNumValidators(self):\n return _libsbml.SBMLDocument_getNumValidators(self)",
"def get_number_of_validation(self):\n return self.n_valid",
"def validation_set_count(self) -> int:\n return pulumi.get(self, \"validation_set_count\")",
"def field_length(self, fieldname):\n\t\t# todo: ... | [
"0.66500133",
"0.64522016",
"0.6205027",
"0.59986514",
"0.5799962",
"0.57960945",
"0.57889473",
"0.56877226",
"0.5686231",
"0.56690854",
"0.5652346",
"0.5574244",
"0.54889596",
"0.5487244",
"0.54550755",
"0.54487497",
"0.5423463",
"0.54120666",
"0.54112846",
"0.5379686",
"0.5... | 0.77912045 | 0 |
The get_login_message response for link_only and no text passed returns as expected. | def test_message_reset_link_only_with_text(self):
kwargs = dict(link_text=None, link_only=False, reset=False)
kwargs['link_only'] = True
kwargs['reset'] = True
kwargs['link_text'] = 'This is the text for the test - test_message_link_only_with_text'
urls = self.get_or_make_links((... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_message_link_only_no_text(self):\n kwargs = dict(link_text=None, link_only=False, reset=False)\n kwargs['link_only'] = True\n urls = self.get_or_make_links(('login', 'password_reset'))\n for url in urls:\n self.assertIsNotNone(url)\n expected = self.mock_get_l... | [
"0.73865724",
"0.72301364",
"0.7095592",
"0.6796046",
"0.675378",
"0.643032",
"0.6276262",
"0.58853114",
"0.5872008",
"0.57187957",
"0.5479727",
"0.5345426",
"0.53129846",
"0.5310291",
"0.53046083",
"0.5289002",
"0.5240294",
"0.5219635",
"0.52158827",
"0.5196779",
"0.5195962"... | 0.6747615 | 5 |
The get_login_message response for link_only and no text passed returns as expected. | def test_message_reset_with_text(self):
kwargs = dict(link_text=None, link_only=False, reset=False)
kwargs['reset'] = True
link_names = ('login', 'password_reset')
text_template = 'The {} test text - test_message_default_with_text'
kwargs['link_text'] = [text_template.format(name... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_message_link_only_no_text(self):\n kwargs = dict(link_text=None, link_only=False, reset=False)\n kwargs['link_only'] = True\n urls = self.get_or_make_links(('login', 'password_reset'))\n for url in urls:\n self.assertIsNotNone(url)\n expected = self.mock_get_l... | [
"0.73865724",
"0.72301364",
"0.7095592",
"0.6796046",
"0.675378",
"0.6747615",
"0.643032",
"0.58853114",
"0.5872008",
"0.57187957",
"0.5479727",
"0.5345426",
"0.53129846",
"0.5310291",
"0.53046083",
"0.5289002",
"0.5240294",
"0.5219635",
"0.52158827",
"0.5196779",
"0.5195962"... | 0.6276262 | 7 |
If the computed username is not the given email, raise ValidationError to get username confirmation. | def test_confirmation_username_not_email(self):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def clean_username(self):\n username = self.cleaned_data['username']\n\n try:\n User.objects.get(email=username)\n except ObjectDoesNotExist:\n raise forms.ValidationError('Selected user does not exist.')\n\n return username",
"def clean_email(self):\n ema... | [
"0.7345717",
"0.7332324",
"0.728153",
"0.7211482",
"0.72112155",
"0.72084284",
"0.71901387",
"0.71901387",
"0.71832156",
"0.7174954",
"0.71655256",
"0.71655256",
"0.7162777",
"0.71532536",
"0.71231043",
"0.7098773",
"0.7096362",
"0.70440966",
"0.7034832",
"0.70039177",
"0.700... | 0.68440324 | 35 |
If current email matches an existing username, handle_flag_field returns a Dict with that error. | def test_username_of_email_exists_handle_flag_field(self):
original_data = self.form.data
original_fields = self.form.fields
original_computed_fields = self.form.computed_fields
original_errors = getattr(self.form, '_errors', None)
original_cleaned_data = getattr(self.form, 'clea... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_email_works_as_username_handle_flag_field(self):\n original_data = self.form.data\n original_fields = self.form.fields\n original_computed_fields = self.form.computed_fields\n original_errors = getattr(self.form, '_errors', None)\n original_cleaned_data = getattr(self.fo... | [
"0.66981214",
"0.6349816",
"0.62762165",
"0.604796",
"0.5953749",
"0.5908456",
"0.59008956",
"0.58932865",
"0.58932865",
"0.58898187",
"0.5876202",
"0.58696085",
"0.5861591",
"0.58554953",
"0.58522695",
"0.5841933",
"0.5832264",
"0.58276683",
"0.5810914",
"0.57974815",
"0.578... | 0.6850138 | 0 |
If current email is a valid username, set username value in cleaned_data. No error returned. | def test_email_works_as_username_handle_flag_field(self):
original_data = self.form.data
original_fields = self.form.fields
original_computed_fields = self.form.computed_fields
original_errors = getattr(self.form, '_errors', None)
original_cleaned_data = getattr(self.form, 'clean... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def clean_username_or_email(self):\n username_or_email = self.cleaned_data['username_or_email']\n try:\n user = User.objects.get(username__iexact=username_or_email)\n self.profile = user.profile\n except User.DoesNotExist:\n try:\n self.profile =... | [
"0.74534565",
"0.73395985",
"0.729268",
"0.71168494",
"0.69436806",
"0.6801711",
"0.6694021",
"0.66904485",
"0.66451263",
"0.66321427",
"0.6573777",
"0.65707093",
"0.6535102",
"0.6535102",
"0.65295625",
"0.65131235",
"0.65090966",
"0.6505712",
"0.65041476",
"0.64915913",
"0.6... | 0.6584246 | 10 |
OverrideCountryMixIn uses computed_fields features if they are present. | def test_init_update_computed_field_names(self):
original_request = self.request
original_form = self.form
computed = getattr(self.form, 'computed_fields', None)
get_form = self.make_form_request()
computed_fields = getattr(get_form, 'computed_fields', None)
self.assertI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_prep_country_fields(self):\n original_flag = self.form.country_optional\n self.form.country_optional = True\n original_fields = self.form.fields\n original_removed = getattr(self.form, 'removed_fields', None)\n original_computed = getattr(self.form, 'computed_fields', No... | [
"0.5916115",
"0.58748287",
"0.56936246",
"0.552438",
"0.5504684",
"0.54950196",
"0.5326457",
"0.5137152",
"0.50874037",
"0.50844216",
"0.5077712",
"0.5042479",
"0.49951985",
"0.4918337",
"0.48950514",
"0.47967395",
"0.47735268",
"0.47499996",
"0.47481918",
"0.47308442",
"0.47... | 0.5432376 | 6 |
Remove this group from other groups, when this group is a subgroup of another group. | def remove_as_subgroup(self, other_groups):
symbols_to_exclude = reduce(lambda alphabet, cell: alphabet.union(cell.get_possible_symbols()),
self.cells, set())
my_cells = set(self.cells)
for group in other_groups:
if my_cells.issubset(group.c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def remove_from_group(self, group):\n\n if self.in_group(group):\n self.secondary_groups.remove(group)\n return self",
"def test_remove_self_as_parent(self):\n groupa, groupb = Group('groupa'), Group('groupb')\n groupa.add_parent(groupb)\n groupb.del_... | [
"0.7457541",
"0.6660896",
"0.66377795",
"0.66275835",
"0.64256984",
"0.63906753",
"0.6237391",
"0.62194926",
"0.6219388",
"0.62129915",
"0.6203625",
"0.61968744",
"0.6175795",
"0.616916",
"0.6147823",
"0.59947467",
"0.59588474",
"0.5858979",
"0.58396405",
"0.5839059",
"0.5835... | 0.7494452 | 0 |
return the interpreter path | def get_interpreter_path () :
if sys.platform.startswith("win") : return sys.executable.replace ("pythonw.exe", "python.exe")
else : return sys.executable | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_python_path():\n\n return get_executable_path('python')",
"def executable_path(self):\n prepend = self._active_environment(ActiveEnvironment).prepend\n return prepend.get(\"PATH\", \"\")",
"def get_path(self):\r\n path = [\"/bin\", \"/usr/bin\", \"/usr/local/bin\"]\r\n if... | [
"0.7354625",
"0.72487605",
"0.70609933",
"0.70519686",
"0.69643044",
"0.69575727",
"0.6889702",
"0.68254983",
"0.68254983",
"0.67586106",
"0.67049986",
"0.6704595",
"0.66673666",
"0.6665867",
"0.66172516",
"0.66151",
"0.66151",
"0.655819",
"0.65428525",
"0.65145975",
"0.64984... | 0.7817029 | 0 |
Parse feature info XML and filter feature attributes by permission. | def wms_getfeatureinfo_xml(self, feature_info, permission):
ElementTree.register_namespace('', 'http://www.opengis.net/ogc')
root = ElementTree.fromstring(feature_info)
for layer in root.findall('./Layer'):
# get permitted attributes for layer
permitted_attributes = self... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _parse_features(self):\n for root in self.roots:\n for feature in root.iter('feature'):\n api = feature.attrib.get('api', '')\n feature_name = feature.attrib.get('name', '')\n feature_number = int(float(feature.attrib.get('number', '')) * 10.0)\n\n... | [
"0.62178385",
"0.6131267",
"0.5999587",
"0.5670946",
"0.52712256",
"0.5198279",
"0.5161996",
"0.51611716",
"0.5016191",
"0.4958712",
"0.4958712",
"0.49565393",
"0.48952377",
"0.48616266",
"0.4837101",
"0.48286694",
"0.48118487",
"0.47954863",
"0.47357622",
"0.47289896",
"0.46... | 0.6285287 | 0 |
Return a list of Stations | def stations():
session = Session(engine)
# Query all Stations
stations = session.query(Station.station).all()
# Convert list of tuples into normal list
all_stations = list(np.ravel(stations))
return jsonify(all_stations) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getStations(self) :\n return self._stations",
"def station_list() -> List[Dict]:\n return STATIONS",
"def stations():\n\n return station_list",
"def getStationsName(self) :\n names = []\n for sts in self._stations :\n names.append(sts.getName())\n\n return nam... | [
"0.7581239",
"0.71613663",
"0.683046",
"0.64649135",
"0.6438668",
"0.6352593",
"0.6303541",
"0.62886316",
"0.62781715",
"0.6254285",
"0.623958",
"0.62386364",
"0.6189844",
"0.6186797",
"0.6165275",
"0.6139074",
"0.6130387",
"0.61256593",
"0.61139727",
"0.60874104",
"0.6086377... | 0.6309851 | 6 |
Build a heap from the given array in place and returns a sequence of swap operations. The heap is zero indexed, therefore, the relative relation | def build_heap(data: List[int]) -> List[Tuple[int, int]]:
swaps: List[Tuple[int, int]] = []
n = len(data)
start = ceil(n/2) - 1
for i in range(start, -1, -1):
swaps = sink_down(i, data, swaps)
return swaps | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def build_heap(arr):\n for i in range(len(arr)-1, -1, -1):\n down_heapify(arr, len(arr), i)",
"def build_heap(arr):\n for i in range((len(arr)//2), -1, -1):\n heapify(arr,index=i, size=len(arr)-1)",
"def build_heap(data):\n # The following naive implementation just sorts the given sequen... | [
"0.7950642",
"0.78876716",
"0.7831714",
"0.7727576",
"0.7700983",
"0.7658476",
"0.76183724",
"0.7457567",
"0.74203175",
"0.7250542",
"0.7236424",
"0.7204723",
"0.7165886",
"0.713616",
"0.7027553",
"0.6885124",
"0.686335",
"0.685316",
"0.68525016",
"0.6840721",
"0.68236566",
... | 0.6894605 | 15 |
Sink the element of the given index in the heap to keep the heap order. | def sink_down(index: int, data: List[int], swaps: List[Tuple[int, int]]) -> List[Tuple[int, int]]:
while index * 2 + 1 < len(data):
j = index * 2 + 1
# the other child exist and is smaller than the current one.
if (j+1 < len(data)) and data[j+1] < data[j]:
j += 1
# heap o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def shift_item_up(self, index):\n while index > 0:\n parent_index = index // 2\n if parent_index > 0 and self.heaplist[parent_index] < self.heaplist[index]:\n self.heaplist[parent_index], self.heaplist[index] = self.heaplist[index], self.heaplist[parent_index]\n ... | [
"0.68181115",
"0.6678552",
"0.6549674",
"0.64766616",
"0.6420918",
"0.63685966",
"0.6355856",
"0.6350763",
"0.62549",
"0.62513393",
"0.6209725",
"0.6141923",
"0.6124104",
"0.611911",
"0.61041003",
"0.60953987",
"0.6063436",
"0.6027792",
"0.6024668",
"0.60051167",
"0.60022044"... | 0.62981087 | 8 |
Get list of S3 locations from timebase pattern parts with possible lag. | def get_S3_paths_with_lag(*paths, **kwargs):
lag = kwargs.get('lag', '01:00')
lag_as_date = datetime.datetime.strptime(lag, '%H:%M')
lag_as_delta = datetime.timedelta(hours=lag_as_date.hour, minutes=lag_as_date.minute, seconds=lag_as_date.second)
times = [
datetime.datetime.u... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def collect_backups(self, bucketname, prefix):\n backups = []\n \n bucket = self.conn.get_bucket(bucketname)\n\n logger.info(\"Scanning for backups: s3://%s/%s\", bucketname, prefix)\n\n for entry in natsort([key.name for key in bucket.list(prefix)]):\n # Check for a t... | [
"0.5553879",
"0.5373015",
"0.52267677",
"0.50609094",
"0.5051911",
"0.5023184",
"0.50068414",
"0.49989265",
"0.4967261",
"0.49669662",
"0.4930386",
"0.48923874",
"0.4880217",
"0.48494568",
"0.4843274",
"0.48396668",
"0.48355362",
"0.4834737",
"0.48299235",
"0.48269066",
"0.48... | 0.6611707 | 0 |
The configured TLS version is correctly configured by the ContextFactory. | def test_tls_client_minimum_set_passed_through_1_2(self):
config = {"federation_client_minimum_tls_version": 1.2}
t = TestConfig()
t.read_config(config, config_dir_path="", data_dir_path="")
cf = FederationPolicyForHTTPS(t)
options = _get_ssl_context_options(cf._verify_ssl_conte... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_tls_client_minimum_set_passed_through_1_0(self):\n config = {\"federation_client_minimum_tls_version\": 1}\n t = TestConfig()\n t.read_config(config, config_dir_path=\"\", data_dir_path=\"\")\n\n cf = FederationPolicyForHTTPS(t)\n options = _get_ssl_context_options(cf._v... | [
"0.7221435",
"0.7129749",
"0.70612466",
"0.6946584",
"0.69393426",
"0.6594127",
"0.65869886",
"0.65678525",
"0.6503111",
"0.6450828",
"0.6446566",
"0.64110285",
"0.63336414",
"0.6328864",
"0.63021713",
"0.62453425",
"0.62098765",
"0.6187503",
"0.6182842",
"0.61263424",
"0.611... | 0.7200872 | 1 |
The configured TLS version is correctly configured by the ContextFactory. | def test_tls_client_minimum_set_passed_through_1_0(self):
config = {"federation_client_minimum_tls_version": 1}
t = TestConfig()
t.read_config(config, config_dir_path="", data_dir_path="")
cf = FederationPolicyForHTTPS(t)
options = _get_ssl_context_options(cf._verify_ssl_context... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_tls_client_minimum_set_passed_through_1_2(self):\n config = {\"federation_client_minimum_tls_version\": 1.2}\n t = TestConfig()\n t.read_config(config, config_dir_path=\"\", data_dir_path=\"\")\n\n cf = FederationPolicyForHTTPS(t)\n options = _get_ssl_context_options(cf.... | [
"0.7200872",
"0.7129749",
"0.70612466",
"0.6946584",
"0.69393426",
"0.6594127",
"0.65869886",
"0.65678525",
"0.6503111",
"0.6450828",
"0.6446566",
"0.64110285",
"0.63336414",
"0.6328864",
"0.63021713",
"0.62453425",
"0.62098765",
"0.6187503",
"0.6182842",
"0.61263424",
"0.611... | 0.7221435 | 0 |
Checks acme is enabled if the acme_domain arg is set to some string. | def test_acme_enabled_in_generated_config_domain_provided(self):
conf = TestConfig()
conf.read_config(
yaml.safe_load(
TestConfig().generate_config(
"/config_dir_path",
"my_super_secure_server",
"/data_dir_path",
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _is_domain_allowed(email):\n domains = local_config.AuthConfig().get('whitelisted_domains', default=[])\n for domain in domains:\n if utils.normalize_email(email).endswith('@%s' % domain.lower()):\n return True\n\n return False",
"def test_acme_disabled_in_generated_config_no_acme_domain_provied(s... | [
"0.5735511",
"0.5725383",
"0.553573",
"0.5405438",
"0.54000163",
"0.52613115",
"0.5258438",
"0.5212149",
"0.5205378",
"0.51893073",
"0.5159638",
"0.5120427",
"0.5111011",
"0.50925523",
"0.5068178",
"0.5066398",
"0.5062281",
"0.50507987",
"0.49955666",
"0.49874535",
"0.4962486... | 0.65662074 | 0 |
Gets coordinate as float from tuple of degrees, minutes and seconds. | def get_decimal_from_dms(dms: Tuple[float, float, float], ref: str) -> float:
degrees = dms[0]
minutes = dms[1] / 60.0
seconds = dms[2] / 3600.0
if ref in ['S', 'W']:
degrees = -degrees
minutes = -minutes
seconds = -seconds
return round(degrees + minutes + seconds, 5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _degrees_to_decimal(degrees: int = 0, minutes: int = 0, seconds: int = 0) -> float:\n result = 0\n result += degrees\n result += minutes / 60\n result += seconds / 3600\n return result",
"def __convert_coor(self, deg,minute,sec):\n self.logger.debug('deg={},minute={}... | [
"0.6503147",
"0.63772434",
"0.63362336",
"0.6323108",
"0.61161315",
"0.60684246",
"0.60397136",
"0.60292447",
"0.59846616",
"0.59485817",
"0.58240557",
"0.58191216",
"0.58162844",
"0.5811715",
"0.5713767",
"0.56446755",
"0.56404364",
"0.56025016",
"0.5571279",
"0.5546197",
"0... | 0.59806734 | 9 |
Return a copy of the element, but with one or more fields modified. Nested elements can have their fields modified by nesting with __. | def _modified_copy(cls, copy, is_offset: bool, mod_mapping: dict):
for attribute, value in mod_mapping.items():
path = attribute.split("__")
if len(path) == 1:
# Non-nested attribute change
cls._set_stuff(is_offset, copy, attribute, value)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def deepcopy_element(elem: EtreeElement, **attributes: str | float) -> EtreeElement:\n warnings.warn(\n \"deepcopy_element is deprecated. \"\n + \"Use copy.deepcopy from the standard library instead.\",\n category=DeprecationWarning,\n )\n elem = copy.deepcopy(elem)\n _ = update_el... | [
"0.6538793",
"0.618008",
"0.5738969",
"0.566813",
"0.56585926",
"0.56193185",
"0.5615345",
"0.56081647",
"0.55610085",
"0.55281913",
"0.5505197",
"0.5504569",
"0.5443334",
"0.5431057",
"0.54206496",
"0.54078895",
"0.53815055",
"0.53545856",
"0.53447324",
"0.5272756",
"0.52506... | 0.5703695 | 3 |
Like tf.train.range_input_producer, but randomizes every index instead of taking a range and shuffling every epoch (random reordering). | def random_index_input_producer(limit, num_epochs=None, seed=None,
capacity=32, shared_name=None, name=None):
with ops.op_scope([limit], name, "input_producer") as name:
index_tensor = tf.random_uniform([limit], minval=0, maxval=limit, dtype=tf.int64, seed=seed)
retur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def random_slice_input_producer(tensor_list, num_epochs=None, seed=None,\n capacity=32, shared_name=None, name=None):\n with ops.op_scope(tensor_list, name, \"input_producer\"):\n tensor_list = ops.convert_n_to_tensor_or_indexed_slices(tensor_list)\n if not tensor_li... | [
"0.67417186",
"0.59812593",
"0.5888701",
"0.5693134",
"0.56846994",
"0.56515205",
"0.56035835",
"0.5600005",
"0.55920666",
"0.5584618",
"0.557734",
"0.5556954",
"0.55525434",
"0.553969",
"0.55269265",
"0.5495206",
"0.5448808",
"0.5438618",
"0.5402123",
"0.5388766",
"0.5382812... | 0.7107893 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.