max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
699
<reponame>justsor/vim<filename>lib/cloudclip.py #! /usr/bin/env python # -*- coding: utf-8 -*- #====================================================================== # # cloudclip.py - copy/paste text in the cloud (with gist as backend) # # Created by skywind on 2018/01/23 # Last change: 2018/01/23 20:52:10 # #====================================================================== import sys import os import json import time import ConfigParser import requests #---------------------------------------------------------------------- # GistError #---------------------------------------------------------------------- class GistError (StandardError): def __init__ (self, code, what): super(StandardError, self).__init__(what) self.code = code #---------------------------------------------------------------------- # GistRequest #---------------------------------------------------------------------- class GistRequest (object): def __init__ (self, token, options = {}): self.session = None self.options = {} if options: for k in options: self.options[k] = options[k] self.https = self.options.get('https', True) self.token = token self.code = 0 self.error = None self.res = None def request (self, url, method, head = {}, params = {}, data = None): if self.session is None: self.session = requests.Session() if self.https: base = 'https://api.github.com/' else: base = 'http://api.github.com/' if url[:1] == '/': url = url[1:] url = base + url s = self.session argv = {} if 'timeout' in self.options: argv['timeout'] = self.options['timeout'] if 'proxies' in self.options: argv['proxies'] = self.options['proxies'] p = {} if params: for k in params: p[k] = params[k] headers = {} if head: for k in head: headers[k] = head[k] if self.token: headers['Authorization'] = 'token %s'%self.token if p: argv['params'] = p if data is not None: argv['data'] = data if headers: argv['headers'] = headers method = method.lower() if method == 'get': r = s.get(url, **argv) elif method == 'post': r = s.post(url, **argv) elif method == 'patch': r = s.patch(url, **argv) elif method == 'put': r = s.patch(url, **argv) elif method == 'delete': r = s.delete(url, **argv) else: raise GistError(-100, 'Bad method') return r def request_gist (self, url, method, head = {}, param = {}, data = None): self.res = None if data: if not isinstance(data, str): data = json.dumps(data) r = self.request(url, method, head, param, data) if r is None: raise GistError(-100, 'Unknow error') return None self.res = r if not r.status_code in (200, 201, 204): self.code = r.status_code self.text = r.__dict__.get('text', None) self.error = r.__dict__.get('error', None) message = 'HTTP error code=%d: %s'%(r.status_code, r.text) raise GistError(r.status_code, message) return None self.code = 0 self.text = r.text self.error = None text = self.text try: obj = r.json() except: return None return obj def get (self, url, headers = {}, params = {}, data = None): return self.request_gist(url, 'GET', headers, params, data) def put (self, url, headers = {}, params = {}, data = None): return self.request_gist(url, 'PUT', headers, params, data) def post (self, url, headers = {}, params = {}, data = None): return self.request_gist(url, 'POST', headers, params, data) def patch (self, url, headers = {}, params = {}, data = None): return self.request_gist(url, 'PATCH', headers, params, data) def delete (self, url, headers = {}, params = {}, data = None): return self.request_gist(url, 'DELETE', headers, params, data) #---------------------------------------------------------------------- # empty object #---------------------------------------------------------------------- class GistObject (object): def __init__ (self, gistid): self.gistid = gistid self.description = '' self.ctime = None self.mtime = None self.files = [] #---------------------------------------------------------------------- # gist api #---------------------------------------------------------------------- class GistApi (object): def __init__ (self, username, token): self.username = username self.token = token self.request = GistRequest(token) self.request.options['timeout'] = 20 self.request.https = True self.error_msg = None self.error_code = 0 # since: ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ def list (self, since = None): if self.username: url = '/users/%s/gists'%self.username else: url = '/gists' params = {} if since: params['since'] = since r = self.request.get(url) return r def get (self, gistid, version = None): url = '/gists/' + gistid if version: url += '/' + version r = self.request.get(url) return r def create (self, description, files, public = False): data = {} if description: data['description'] = description data['public'] = public if files is None: raise GistError(-101, 'files filed required') data['files'] = files params = {'scope': 'gist'} r = self.request.post('/gists', {}, params, data) return r def edit (self, gistid, description, files): data = {} if description: data['description'] = description data['files'] = files params = {'scope': 'gist'} r = self.request.patch('/gists/' + gistid, {}, params, data) return r def delete (self, gistid): r = self.request.delete('/gists/' + gistid) return r def gist_get (self, gistid): r = self.get(gistid) files = r['files'] gist = GistObject(gistid) gist.ctime = r.get('created_at', '') gist.mtime = r.get('updated_at', '') gist.files = {} gist.owner = r.get('owner', {}).get('login', 'unknow') gist.description = r.get('description', None) for name in files: data = files[name] obj = {} obj['size'] = data.get('size', -1) obj['type'] = data.get('type', None) obj['truncated'] = data.get('truncated', False) obj['language'] = data.get('language', '') gist.files[name] = data return gist def gist_update (self, gist): r = self.edit(gist.gistid, gist.description, gist.files) return r #---------------------------------------------------------------------- # CloudClip #---------------------------------------------------------------------- class CloudClip (object): def __init__ (self, ininame): self.api = GistApi('', token) self.config = {} if '~' in ininame: ininame = os.path.expanduser(ininame) self.ininame = os.path.normcase(ininame) self.read_ini(self.ininame) self.set_token(self.config.get('token', None)) self.set_id(self.config.get('id', None)) def set_token (self, token): if token: token = token.strip('\r\n\t ').replace('\n', '') self.config['token'] = token self.api.request.token = token def get_token (self): return self.api.request.token def set_id (self, gistid): if gistid: gistid = gistid.strip('\r\n\t ').replace('\n', '') self.config['id'] = gistid self.gistid = gistid def get_id (self): return self.gistid def read_ini (self, ininame): if not os.path.exists(ininame): return False cp = ConfigParser.ConfigParser() try: cp.read(ininame) except: return False self.config = {} for sect in cp.sections(): if sect.lower() != 'default': continue for key, val in cp.items(sect): self.config[key.lower()] = val self.config['token'] = self.config.get('token', '') self.config['id'] = self.config.get('id', '') self.config['public'] = self.config.get('public', True) self.set_token(self.config['token'].strip('\r\n\t ')) self.set_id(self.config['id'].strip('\r\n\t ')) return True def login (self, token, gistid): self.set_token(token) self.set_id(gistid) create_gist = False if (not gistid) or (gistid == '-'): files = {} text = 'CloudClip:\n' text += 'Your own clipboard in the cloud, ' text += 'copy and paste text with gist between systems.\n' text += 'home: https://github.com/skywind3000/CloudClip\n\n' text += 'Place-holder, don\'t remove it !!' files['<clipboard>'] = {'content': text} r = self.api.create('<Clipboard of CloudClip>', files) gistid = r['id'] self.set_id(gistid) print 'New gist created with id: ' + gistid create_gist = True gist = self.api.gist_get(self.gistid) with open(self.ininame, 'w') as fp: fp.write('[default]\n') fp.write('token=%s\n'%self.get_token()) fp.write('id=%s\n'%self.get_id()) print 'Configuration updated in: %s'%self.ininame if create_gist: print '' print 'Use the command below in other systems to initialize' print 'cloudclip.py -i %s %s'%(token, gistid) print '' return True def error (self, code, message): sys.stderr.write('Error: ' + message + '\n') sys.stderr.flush() sys.exit(code) def check (self): nm = sys.argv[0] if not os.path.exists(self.ininame) and False: text = "Authorization token and gist-id are required, see %s -h"%nm self.error(1, text) if not self.config['token']: text = "Authorization token is required, see %s -h"%nm self.error(2, text) if not self.config['id']: text = 'gist-id is required, see %s -h'%nm self.error(3, text) return True def list_info (self): self.check() gist = self.api.gist_get(self.gistid) ctime = gist.ctime.replace('T', ' ').replace('Z', '') mtime = gist.mtime.replace('T', ' ').replace('Z', '') print '%s: %s modified at %s'%(gist.gistid, gist.owner, mtime) size1 = 10 size2 = 8 names = gist.files.keys() names.sort() count = 0 for name in names: item = gist.files[name] size = str(item['size']) size1 = max(size1, len(name)) size2 = max(size2, len(size)) if name == '<clipboard>': continue count += 1 if count == 0: print '(empty)' return True print '' print 'Name'.ljust(size1), '\t', 'Size'.rjust(size2) print '----'.ljust(size1), '\t', '----'.rjust(size2) for name in names: item = gist.files[name] if name == '<clipboard>': continue print name.ljust(size1), '\t' + str(item['size']).rjust(size2) print '' print '(%d files)'%count return True def write_file (self, name, content, mime = None): self.check() gist = GistObject(self.gistid) gist.description = '<Clipboard of CloudClip>' gist.files = {} data = {'content': content} if mime: data['type'] = mime if not name: name = '<unnamed>' gist.files[name] = data self.api.gist_update(gist) return True def read_file (self, name): self.check() gist = self.api.gist_get(self.gistid) if not name: name = '<unnamed>' if not name in gist.files: return None return gist.files[name]['content'] def clear (self): self.check() gist = self.api.gist_get(self.gistid) files = {} for name in gist.files: if name == '<clipboard>': continue files[name] = None gist.files = files self.api.gist_update(gist) return True def copy (self, name): content = sys.stdin.read() self.write_file(name, content) return 0 def paste (self, name): content = self.read_file(name) if content is None: if not name: name = '<unnamed>' self.error(4, 'File not find: ' + name) sys.stdout.write(content) sys.stdout.flush() return 0 #---------------------------------------------------------------------- # main #---------------------------------------------------------------------- def main(args = None): args = args and args or sys.argv args = [ n for n in args ] program = len(args) > 0 and args[0] or 'cloudclip.py' if len(args) < 2 or args[1] in ('-h', '--help'): print 'usage: %s <operation> [...]'%program print 'operations:' head = ' ' + program # print head, '{-i --init} token [id]' # print head, '{-c --copy} [name]' # print head, '{-p --paste} [name]' # print head, '{-l --list}' # print head, '{-e --clean}' print '' print '-i <token> [id] Initialize token and id, create a new gist if id is empty' print '-c [name] Takes the standard input and places it in the cloud' print '-p [name] Read content from cloud and output to standard output' print '-l List information of the gist' print '-e Clean the clipboard' print '' print 'A github access token is needed before everything, you can generate a new' print 'one from: https://github.com/settings/tokens' print '' print 'Create a new gist with "-i token" on your own PC, remember the gist id.' print 'then use "-i token id" on a remote one which you may exchange data with.' print '' return 0 cmd = args[1] if not os.path.exists(os.path.expanduser('~/.config')): os.mkdir(os.path.expanduser('~/.config')) cp = CloudClip('~/.config/cloudclip.conf') # check token/id from system environ env_token = os.environ.get('CLOUDCLIP_TOKEN', '') env_gistid = os.environ.get('CLOUDCLIP_ID', '') if env_token: cp.set_token(env_token) if env_gistid: cp.set_id(env_gistid) if (not os.path.exists(cp.ininame)) and (not cp.config['token']): if not cmd in ('-i', '--init'): text = 'uses "%s -i" to initialize your token\n'%program text += 'get a new token from: https://github.com/settings/tokens' cp.error(4, text) return 4 elif not cp.config['id']: text = 'uses "%s -i" to indicate or create a gist id'%program cp.error(5, text) return 5 try: if cmd in ('-i', '--init'): if len(args) < 3: cp.error(6, 'missing token, see "%s -h"'%program) return 6 token = args[2] gistid = len(args) >= 4 and args[3] or None cp.login(token, gistid) return 0 if cmd in ('-c', '--copy'): name = len(args) >= 3 and args[2] or None cp.copy(name) return 0 if cmd in ('-p', '--paste'): name = len(args) >= 3 and args[2] or None cp.paste(name) return 0 if cmd in ('-l', '--list'): cp.list_info() return 0 if cmd in ('-e', '--clean'): cp.clear() return 0 cp.error(7, 'unknow command: ' + cmd) except GistError as e: text = 'unknow' if e.code == 401: text = 'Bad credentials, token may be invalid\n' text += 'uses "%s -h" to see the help'%program elif e.code == 404: text = 'File not find, are you using the right gist id ?\n' text += 'uses "%s -h" to see the help'%program cp.error(8, text) return 0 #---------------------------------------------------------------------- # testing case #---------------------------------------------------------------------- if __name__ == '__main__': token = '' ga = GistApi('skywind3000', token) # ga.https = False def test1(): r = ga.list() for item in r: print item['id'], item['description'] id = '4efdb6975821b180310174a2e7dc9581' # id = 'alksdjflajds' # print '' r = ga.get(id) print json.dumps(r, indent = 2) return 0 def test2(): files = {} files['hello.txt'] = {'content': 'Hello, World !!'} files['abc.txt'] = {'content': 'abc'} r = ga.create('<hello>', files) print json.dumps(r, indent = 2) def test3(): files = {} files['hello.txt'] = {'content': 'Hello, World !!\x00234234'} files['abc.txt'] = {'content': 'abc: ' + str(time.time())} files['<general>'] = {'content': '3'} id = 'f1c7b8aa521c4634e9ad4882fedfad8c' r = ga.edit(id, '<hello>', files) print json.dumps(r, indent = 2) def test4(): id = '4792620aea356a437d57aadd5e579500' r = ga.delete(id) print json.dumps(r, indent = 2) def test5(): cc = CloudClip('~/.config/cloudclip.conf') cc.login(token, '') return 0 def test6(): cc = CloudClip('~/.config/cloudclip.conf') cc.list_info() text = 'now is ' + time.strftime('%Y-%m-%d %H:%M:%S') print 'uploading: ', text cc.write_file('test', text) print 'reading: ', cc.read_file('test') def test7(): args = ['-c', 'happy'] args = ['-p', 'happy'] args = ['-p', 'happy'] # args = ['-l', 'happy'] args = ['-l', '1234'] main(sys.argv[:1] + args) return 0 # test7() sys.exit(main()) # vim: set ts=4 sw=4 tw=0 noet :
6,327
10,504
import os class LogConfig: def __init__(self): self.log_debug = "" self.log_err = "" self.log_info = "" self.get_default_config() @staticmethod def get_env_variable(var="CI_LOG_PATH"): """ get log path for testing """ try: log_path = os.environ[var] return str(log_path) except Exception as e: log_path = "/tmp/ci_logs/" print("[get_env_variable] failed to get environment variables : %s, use default path : %s" % (str(e), log_path)) return log_path @staticmethod def create_path(log_path): if not os.path.isdir(str(log_path)): print("[create_path] folder(%s) is not exist." % log_path) print("[create_path] create path now...") os.makedirs(log_path) def get_default_config(self): """ Make sure the path exists """ log_dir = self.get_env_variable() self.log_debug = "%s/ci_test_log.debug" % log_dir self.log_info = "%s/ci_test_log.log" % log_dir self.log_err = "%s/ci_test_log.err" % log_dir self.create_path(log_dir) log_config = LogConfig()
560
788
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.usergrid.tools.bean; import java.util.UUID; /** * Models the metrics associated with an application. The UUID for the id parameter is considered unique in the system, * so equals and hashCode are delegated to such. * * @author zznate */ public class AppScore { private final OrgScore orgScore; private final UUID appId; private final String appName; private long userCount; private long requestCount; public AppScore( OrgScore orgScore, UUID appId, String appName ) { this.orgScore = orgScore; this.appId = appId; this.appName = appName; } public OrgScore getOrgScore() { return orgScore; } public UUID getAppId() { return appId; } public String getAppName() { return appName; } public long getUserCount() { return userCount; } public long getRequestCount() { return requestCount; } public void setUserCount( long userCount ) { this.userCount = userCount; } public void setRequestCount( long requestCount ) { this.requestCount = requestCount; } /** Returns the hashCode of he appid parameter */ @Override public int hashCode() { return appId.hashCode(); } /** * Checks the equality of the appId vs. o.getAppId() * * @return true if the appId attributes are equal */ @Override public boolean equals( Object o ) { if ( o instanceof AppScore ) { return ( ( AppScore ) o ).getAppId().equals( appId ); } return false; } }
822
1,457
/* * Copyright 2016 KairosDB Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.kairosdb.core.http.rest.json; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Collections; import java.util.List; public class ErrorResponse { private List<String> m_errors; @JsonCreator public ErrorResponse(@JsonProperty("errors") List<String> errors) { m_errors = errors; } public ErrorResponse(String error) { m_errors = Collections.singletonList(error); } @JsonProperty public List<String> getErrors() { return (m_errors); } }
378
2,338
<reponame>rohan17088/Competitive-programming-library<filename>graphs/traversal/BridgesOnline.java package graphs.traversal; import java.util.ArrayList; public class BridgesOnline { /* * WARNING: NOT TESTED BEFORE * * - A block is a set of connected nodes with no bridges. * - A Component is a set of connected nodes possibly bridges. * It consists of several blocks forming a tree (bridge tree). * * - When an edge (u, v) is added to the graph, there are 3 cases :- * + u and v in same block. * > Do nothing. * + u and v in different blocks and different components. * > let u and v are reps of their corresponding blocks * > let rank[comp(u)] > rank[comp(v)] * > comp(u) and comp(v) will be merged with rep = comp(u) * > set v as root of comp(v) * > set v as a child of u * + u and v in different blocks but same component. * > let u and v are reps of their corresponding blocks * > A cycle in the tree is formed * > bridges from u to lca(u, v) are removed * > bridges from v to lca(u, v) are removed * > blocks connected by the same bridge are unioned */ int[] block, comp, par, rank; int bridges, timer, time[]; BridgesOnline(int V) { block = new int[V]; comp = new int[V]; par = new int[V]; rank = new int[V]; for(int i = 0; i < V; ++i) { block[i] = comp[i] = i; par[i] = -1; } } int getBlock(int x) { return block[x] == x ? x : (block[x] = getBlock(block[x])); } int getComp(int x) { return comp[x] == x ? x : (comp[x] = getComp(comp[x])); } void addEdge(int u, int v) { u = getBlock(u); v = getBlock(v); if(u == v) return; int cu = getComp(u), cv = getComp(v); if(cu != cv) { ++bridges; if(rank[cu] < rank[cv]) { u ^= v; v ^= u; u ^= v; cu ^= cv; cv ^= cu; cu ^= cv; } makeRoot(v); par[v] = comp[v] = u; if(rank[cu] == rank[v]) ++rank[cu]; } else mergePath(u, v); } void makeRoot(int u) { int root = u, child = -1; while(u != -1) { int p = getBlock(par[u]); par[u] = child; comp[u] = root; child = u; u = p; } rank[root] = rank[child]; } void mergePath(int u, int v) { ++timer; ArrayList<Integer> uPath = new ArrayList<>(1); ArrayList<Integer> vPath = new ArrayList<>(1); int lca = -1; while(true) { if(u != -1) { uPath.add(u); if(time[u] == timer) { lca = u; break; } time[u] = timer; u = getBlock(par[u]); } if(v != -1) { vPath.add(v); if(time[v] == timer) { lca = v; break; } time[v] = timer; v = getBlock(par[v]); } } for(int x: uPath) { block[x] = lca; if(x == lca) break; --bridges; } for(int x: vPath) { block[x] = lca; if(x == lca) break; --bridges; } } }
1,830
382
/* * Copyright 2019 Alibaba Group. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.netflix.spinnaker.clouddriver.alicloud.controllers; import com.aliyuncs.IAcsClient; import com.aliyuncs.ess.model.v20140828.DescribeScalingActivitiesRequest; import com.aliyuncs.ess.model.v20140828.DescribeScalingActivitiesResponse; import com.aliyuncs.ess.model.v20140828.DescribeScalingActivitiesResponse.ScalingActivity; import com.aliyuncs.ess.model.v20140828.DescribeScalingGroupsRequest; import com.aliyuncs.ess.model.v20140828.DescribeScalingGroupsResponse; import com.aliyuncs.ess.model.v20140828.DescribeScalingGroupsResponse.ScalingGroup; import com.aliyuncs.exceptions.ClientException; import com.aliyuncs.exceptions.ServerException; import com.netflix.spinnaker.clouddriver.alicloud.common.ClientFactory; import com.netflix.spinnaker.clouddriver.alicloud.security.AliCloudCredentials; import com.netflix.spinnaker.clouddriver.security.AccountCredentials; import com.netflix.spinnaker.clouddriver.security.AccountCredentialsProvider; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; @RestController @RequestMapping( "/applications/{application}/clusters/{account}/{clusterName}/alicloud/serverGroups/{serverGroupName}") public class AliCloudScalingActivitiesController { private final AccountCredentialsProvider accountCredentialsProvider; private final ClientFactory clientFactory; @Autowired public AliCloudScalingActivitiesController( AccountCredentialsProvider accountCredentialsProvider, ClientFactory clientFactory) { this.accountCredentialsProvider = accountCredentialsProvider; this.clientFactory = clientFactory; } @RequestMapping(value = "/scalingActivities", method = RequestMethod.GET) ResponseEntity getScalingActivities( @PathVariable String account, @PathVariable String serverGroupName, @RequestParam(value = "region", required = true) String region) { List<ScalingActivity> resultList = new ArrayList<>(); AccountCredentials credentials = accountCredentialsProvider.getCredentials(account); if (!(credentials instanceof AliCloudCredentials)) { Map<String, String> messageMap = new HashMap<>(); messageMap.put("message", "bad credentials"); return new ResponseEntity(messageMap, HttpStatus.BAD_REQUEST); } AliCloudCredentials aliCloudCredentials = (AliCloudCredentials) credentials; IAcsClient client = clientFactory.createClient( region, aliCloudCredentials.getAccessKeyId(), aliCloudCredentials.getAccessSecretKey()); DescribeScalingGroupsRequest describeScalingGroupsRequest = new DescribeScalingGroupsRequest(); describeScalingGroupsRequest.setScalingGroupName(serverGroupName); describeScalingGroupsRequest.setPageSize(50); DescribeScalingGroupsResponse describeScalingGroupsResponse; try { describeScalingGroupsResponse = client.getAcsResponse(describeScalingGroupsRequest); if (describeScalingGroupsResponse.getScalingGroups().size() > 0) { ScalingGroup scalingGroup = describeScalingGroupsResponse.getScalingGroups().get(0); DescribeScalingActivitiesRequest activitiesRequest = new DescribeScalingActivitiesRequest(); activitiesRequest.setScalingGroupId(scalingGroup.getScalingGroupId()); activitiesRequest.setPageSize(50); DescribeScalingActivitiesResponse activitiesResponse = client.getAcsResponse(activitiesRequest); resultList.addAll(activitiesResponse.getScalingActivities()); } } catch (ServerException e) { e.printStackTrace(); throw new IllegalStateException(e.getMessage()); } catch (ClientException e) { e.printStackTrace(); throw new IllegalStateException(e.getMessage()); } return new ResponseEntity(resultList, HttpStatus.OK); } }
1,456
373
<filename>Platform/Intel/WhitleyOpenBoardPkg/Library/PlatformOpromPolicyLibNull/PlatformOpromPolicyLibNull.c<gh_stars>100-1000 /** @file @copyright Copyright 2015 - 2021 Intel Corporation. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Base.h> #include <Protocol/PciIo.h> #include <Library/PlatformOpromPolicyLib.h> /** Decide if BIOS embdded option roms should be loaded for a certain PCI device. @param PciIo PCI device to return the ROM image for. @retval TRUE BIOS embedded option roms should not be run for the PCI device. @retval FALSE BIOS embedded option roms could be run for the PCI device. **/ BOOLEAN PlatformOpromLoadDevicePolicy ( IN EFI_PCI_IO_PROTOCOL *PciIo ) { return TRUE; } /** For devices that support multiple option roms like FCoE, PXE, iSCSI etc., this function decides if one of these BIOS embdded option roms should be loaded for a certain PCI device based on platform choices. @param PciHandle PCI device to return the ROM image for. @param TableIndex The index pointing to the option rom in the platform option rom table for the PCI device. @retval FALSE The specific BIOS embedded option rom should not be run for the PCI device. @retval TRUE The specific BIOS embedded option rom could be run for a certain PCI device. **/ OPROM_LOAD_POLICY PlatformOpromLoadTypePolicy ( IN EFI_HANDLE PciHandle, IN UINTN TableIndex ) { return INCLUSIVE_LOAD; } /** Decide if a PCIe device option rom should be dispacthed. @param PciHandle PCI device handle. @retval FALSE The specific PCIe option rom should not be dispatched for the PCI device. @retval TRUE The specific PCIe option rom could be dispatched for a certain PCI device. **/ BOOLEAN PlatformOpromDispatchPolicy ( IN EFI_HANDLE DeviceHandle ) { return TRUE; } /** Enable the legacy console redirection before dispatch the legacy ORPOM or disable the legacy console redirection after dispatch the legacy ORPOM based on setup option and SOL status. @param Mode Subfunction. @param CheckIsAhciRom If the device is legacy Ahci device. @retval **/ VOID PlatformOpromLegacyCRPolicy ( IN UINTN Mode, IN BOOLEAN CheckIsAhciRom ) { return; }
949
879
package org.zstack.sdk; public class UpdatePriorityConfigResult { }
24
480
<gh_stars>100-1000 /* * Copyright [2013-2021], Alibaba Group Holding Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.alibaba.polardbx.druid.bvt.sql.mysql.createTable; import com.alibaba.polardbx.druid.sql.MysqlTest; import com.alibaba.polardbx.druid.sql.ast.SQLStatement; import com.alibaba.polardbx.druid.sql.dialect.mysql.ast.statement.MySqlCreateTableStatement; import com.alibaba.polardbx.druid.sql.dialect.mysql.parser.MySqlStatementParser; import java.util.List; /** * @version 1.0 */ public class MySqlCreateTableTest162_local_index extends MysqlTest { public void testOne() throws Exception { String sql = "CREATE TABLE `local_table` (\n" + " `id` bigint(11) NOT NULL AUTO_INCREMENT,\n" + " `c1` bigint(20) DEFAULT NULL,\n" + " `c2` bigint(20) DEFAULT NULL,\n" + " `c3` bigint(20) DEFAULT NULL,\n" + " `c4` bigint(20) DEFAULT NULL,\n" + " `c5` bigint(20) DEFAULT NULL,\n" + " PRIMARY KEY (`id`),\n" + " LOCAL INDEX cl1 (`c1`),\n" + " UNIQUE LOCAL INDEX cl2 (`c2`) dbpartition by hash(`c2`),\n" + " LOCAL UNIQUE INDEX cl3 (`c3`) dbpartition by hash(`c3`)\n" + ") ENGINE=InnoDB DEFAULT CHARSET=utf8 dbpartition by hash(`c1`);"; MySqlStatementParser parser = new MySqlStatementParser(sql); List<SQLStatement> statementList = parser.parseStatementList(); MySqlCreateTableStatement stmt = (MySqlCreateTableStatement) statementList.get(0); assertEquals("CREATE TABLE `local_table` (\n" + "\t`id` bigint(11) NOT NULL AUTO_INCREMENT,\n" + "\t`c1` bigint(20) DEFAULT NULL,\n" + "\t`c2` bigint(20) DEFAULT NULL,\n" + "\t`c3` bigint(20) DEFAULT NULL,\n" + "\t`c4` bigint(20) DEFAULT NULL,\n" + "\t`c5` bigint(20) DEFAULT NULL,\n" + "\tPRIMARY KEY (`id`),\n" + "\tLOCAL INDEX cl1(`c1`),\n" + "\tUNIQUE LOCAL INDEX cl2 (`c2`) DBPARTITION BY hash(`c2`),\n" + "\tUNIQUE LOCAL INDEX cl3 (`c3`) DBPARTITION BY hash(`c3`)\n" + ") ENGINE = InnoDB DEFAULT CHARSET = utf8\n" + "DBPARTITION BY hash(`c1`);", stmt.toString()); } public void testtwo() throws Exception { String sql = "CREATE TABLE `local_table` (\n" + " `id` bigint(11) NOT NULL AUTO_INCREMENT,\n" + " `c1` bigint(20) DEFAULT NULL,\n" + " `c2` bigint(20) DEFAULT NULL,\n" + " `c3` bigint(20) DEFAULT NULL,\n" + " `c4` bigint(20) DEFAULT NULL,\n" + " `c5` bigint(20) DEFAULT NULL,\n" + " PRIMARY KEY (`id`),\n" + " LOCAL KEY cl1 (`c1`),\n" + " UNIQUE LOCAL KEY cl2 (`c2`) dbpartition by hash(`c2`),\n" + " LOCAL UNIQUE KEY cl3 (`c3`) dbpartition by hash(`c3`)\n" + ") ENGINE=InnoDB DEFAULT CHARSET=utf8 dbpartition by hash(`c1`);"; MySqlStatementParser parser = new MySqlStatementParser(sql); List<SQLStatement> statementList = parser.parseStatementList(); MySqlCreateTableStatement stmt = (MySqlCreateTableStatement) statementList.get(0); assertEquals("CREATE TABLE `local_table` (\n" + "\t`id` bigint(11) NOT NULL AUTO_INCREMENT,\n" + "\t`c1` bigint(20) DEFAULT NULL,\n" + "\t`c2` bigint(20) DEFAULT NULL,\n" + "\t`c3` bigint(20) DEFAULT NULL,\n" + "\t`c4` bigint(20) DEFAULT NULL,\n" + "\t`c5` bigint(20) DEFAULT NULL,\n" + "\tPRIMARY KEY (`id`),\n" + "\tLOCAL KEY cl1 (`c1`),\n" + "\tUNIQUE LOCAL KEY cl2 (`c2`) DBPARTITION BY hash(`c2`),\n" + "\tUNIQUE LOCAL KEY cl3 (`c3`) DBPARTITION BY hash(`c3`)\n" + ") ENGINE = InnoDB DEFAULT CHARSET = utf8\n" + "DBPARTITION BY hash(`c1`);", stmt.toString()); } public void testCreate0() throws Exception { String sql = "create local index `n_i` on `t_order` (x)"; MySqlStatementParser parser = new MySqlStatementParser(sql); List<SQLStatement> statementList = parser.parseStatementList(); assertEquals("CREATE LOCAL INDEX `n_i` ON `t_order` (x)", statementList.get(0).toString()); } public void testCreate1() throws Exception { String sql = "create local unique index `n_i` on `t_order` (x)"; MySqlStatementParser parser = new MySqlStatementParser(sql); List<SQLStatement> statementList = parser.parseStatementList(); assertEquals("CREATE UNIQUE LOCAL INDEX `n_i` ON `t_order` (x)", statementList.get(0).toString()); } public void testCreate2() throws Exception { String sql = "create unique local index `n_i` on `t_order` (x)"; MySqlStatementParser parser = new MySqlStatementParser(sql); List<SQLStatement> statementList = parser.parseStatementList(); assertEquals("CREATE UNIQUE LOCAL INDEX `n_i` ON `t_order` (x)", statementList.get(0).toString()); } public void testAlter0() throws Exception { String sql = "alter table t_order add local index `l_i` (x)"; MySqlStatementParser parser = new MySqlStatementParser(sql); List<SQLStatement> statementList = parser.parseStatementList(); assertEquals("ALTER TABLE t_order\n" + "\tADD LOCAL INDEX `l_i` (x)", statementList.get(0).toString()); } public void testAlter1() throws Exception { String sql = "alter table t_order add unique local index `l_i` (x)"; MySqlStatementParser parser = new MySqlStatementParser(sql); List<SQLStatement> statementList = parser.parseStatementList(); assertEquals("ALTER TABLE t_order\n" + "\tADD UNIQUE LOCAL INDEX `l_i` (x)", statementList.get(0).toString()); } public void testAlter2() throws Exception { String sql = "alter table t_order add local unique index `l_i` (x)"; MySqlStatementParser parser = new MySqlStatementParser(sql); List<SQLStatement> statementList = parser.parseStatementList(); assertEquals("ALTER TABLE t_order\n" + "\tADD UNIQUE LOCAL INDEX `l_i` (x)", statementList.get(0).toString()); } }
3,064
999
<filename>api/src/main/java/marquez/service/RunTransitionListener.java package marquez.service; import java.util.List; import java.util.Optional; import javax.annotation.Nullable; import lombok.NonNull; import lombok.Value; import marquez.common.models.DatasetVersionId; import marquez.common.models.JobName; import marquez.common.models.JobVersionId; import marquez.common.models.NamespaceName; import marquez.common.models.RunId; import marquez.common.models.RunState; import marquez.service.models.RunMeta; /** * To get notified of run transition events Every run should have at least one JobInputUpdate and * one JobOutputUpdate event. A normal lifecycle is have a runTransition(START) followed by * runTransition(COMPLETE|FAILED|ABORTED) */ public interface RunTransitionListener { /** * Typically called when a run is created or starts Can also be called as the job is running as * new inputs are discovered * * @param jobInputUpdate - the job input update */ void notify(JobInputUpdate jobInputUpdate); /** * Typically called when a run is Complete * * @param jobOutputUpdate - the job output update */ void notify(JobOutputUpdate jobOutputUpdate); /** * Called when the job transitions from one state to another * * @param runTransition - the run transition */ void notify(RunTransition runTransition); /** Job input update event lists all the input versions for a given run of a job */ @Value class JobInputUpdate { @NonNull RunId runId; @NonNull RunMeta runMeta; JobVersionId jobVersionId; @NonNull JobName jobName; @NonNull NamespaceName namespaceName; @NonNull List<RunInput> inputs; } /** metadata for a specific input of a job. the version of the dataset consumed */ @Value class RunInput { @NonNull DatasetVersionId datasetVersionId; // TODO(Julien): add metadata attached to an input (ex: range predicate) } /** Job output update event */ @Value class JobOutputUpdate { @NonNull RunId runId; JobVersionId jobVersionId; @NonNull JobName jobName; @NonNull NamespaceName namespaceName; @NonNull List<RunOutput> outputs; } /** metadata for a specific output of a job. the version of the dataset produced */ @Value class RunOutput { @NonNull DatasetVersionId datasetVersionId; // TODO(Julien): add metadata attached to an output (ex: output partition key(s)) } /** The run state transition event. */ @Value class RunTransition { /** the unique ID of the run. */ @NonNull RunId runId; /** The old state of the run. */ @Nullable RunState oldState; /** The new state of the run. */ @NonNull RunState newState; public Optional<RunState> getOldState() { return Optional.ofNullable(oldState); } } }
879
502
<reponame>x-malet/iceberg /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iceberg; /** * API for overwriting files in a table by partition. * <p> * This is provided to implement SQL compatible with Hive table operations but is not recommended. * Instead, use the {@link OverwriteFiles overwrite API} to explicitly overwrite data. * <p> * The default validation mode is idempotent, meaning the overwrite is * correct and should be committed out regardless of other concurrent changes to the table. * Alternatively, this API can be configured to validate that no new data or deletes * have been applied since a snapshot ID associated when this operation began. * This can be done by calling {@link #validateNoConflictingDeletes()}, {@link #validateNoConflictingData()}, * to ensure that no conflicting delete files or data files respectively have been written since the snapshot * passed to {@link #validateFromSnapshot(long)}. * <p> * This API accumulates file additions and produces a new {@link Snapshot} of the table by replacing * all files in partitions with new data with the new additions. This operation is used to implement * dynamic partition replacement. * <p> * When committing, these changes will be applied to the latest table snapshot. Commit conflicts * will be resolved by applying the changes to the new latest snapshot and reattempting the commit. */ public interface ReplacePartitions extends SnapshotUpdate<ReplacePartitions> { /** * Add a {@link DataFile} to the table. * * @param file a data file * @return this for method chaining */ ReplacePartitions addFile(DataFile file); /** * Validate that no partitions will be replaced and the operation is append-only. * * @return this for method chaining */ ReplacePartitions validateAppendOnly(); /** * Set the snapshot ID used in validations for this operation. * * All validations will check changes after this snapshot ID. If this is not called, validation will occur * from the beginning of the table's history. * * This method should be called before this operation is committed. * If a concurrent operation committed a data or delta file or removed a data file after the given snapshot ID * that might contain rows matching a partition marked for deletion, validation will detect this and fail. * * @param snapshotId a snapshot ID, it should be set to when this operation started to read the table. * @return this for method chaining */ ReplacePartitions validateFromSnapshot(long snapshotId); /** * Enables validation that deletes that happened concurrently do not conflict with this commit's operation. * <p> * Validating concurrent deletes is required during non-idempotent replace partition operations. * This will check if a concurrent operation deletes data in any of the partitions being overwritten, * as the replace partition must be aborted to avoid undeleting rows that were removed concurrently. * * @return this for method chaining */ ReplacePartitions validateNoConflictingDeletes(); /** * Enables validation that data added concurrently does not conflict with this commit's operation. * <p> * Validating concurrent data files is required during non-idempotent replace partition operations. * This will check if a concurrent operation inserts data in any of the partitions being overwritten, * as the replace partition must be aborted to avoid removing rows added concurrently. * * @return this for method chaining */ ReplacePartitions validateNoConflictingData(); }
1,089
465
version https://git-lfs.github.com/spec/v1 oid sha256:f58e6c6a4c64a7c0edcd850870490efec6654311bbabad767b776cbc60ea863d size 123776814
65
1,816
from tests import TestCase from src.masonite.notification import Notification, Notifiable, SlackMessage from src.masonite.mail import Mailable from masoniteorm.models import Model class User(Model, Notifiable): """User Model""" __fillable__ = ["name", "email", "password"] class WelcomeNotification(Notification): def to_mail(self, notifiable): return ( Mailable() .subject("Masonite 4") .from_("<EMAIL>") .text("Hello from Masonite!") ) def via(self, notifiable): return ["mail"] class OtherNotification(Notification): def to_mail(self, notifiable): return ( Mailable() .subject("Other") .from_("<EMAIL>") .text("Hello again!") ) def via(self, notifiable): return ["mail"] class OrderNotification(Notification): def __init__(self, order_id): self.order_id = order_id def to_mail(self, notifiable): return ( Mailable() .subject(f"Order {self.order_id} shipped !") .from_("<EMAIL>") .text(f"{notifiable.name}, your order has been shipped") ) def to_slack(self, notifiable): return SlackMessage().text(f"Order {self.order_id} has been shipped !") def via(self, notifiable): return ["mail", "slack"] class TestMockNotification(TestCase): def setUp(self): super().setUp() self.fake("notification") def tearDown(self): super().tearDown() self.restore("notification") def test_assert_nothing_sent(self): notification = self.application.make("notification") notification.assertNothingSent() def test_assert_count(self): notification = self.application.make("notification") notification.assertCount(0) notification.route("mail", "<EMAIL>").send(WelcomeNotification()) notification.assertCount(1) notification.route("mail", "<EMAIL>").send(WelcomeNotification()) notification.assertCount(2) def test_reset_count(self): notification = self.application.make("notification") notification.assertNothingSent() notification.route("mail", "<EMAIL>").send(WelcomeNotification()) notification.resetCount() notification.assertNothingSent() def test_assert_sent_to_with_anonymous(self): notification = self.application.make("notification") notification.route("mail", "<EMAIL>").send(WelcomeNotification()) notification.assertSentTo("<EMAIL>", WelcomeNotification) notification.route("vonage", "123456").route("slack", "#general").send( WelcomeNotification() ) notification.assertSentTo("123456", WelcomeNotification) notification.assertSentTo("#general", WelcomeNotification) def test_assert_not_sent_to(self): notification = self.application.make("notification") notification.resetCount() notification.assertNotSentTo("<EMAIL>", WelcomeNotification) notification.route("vonage", "123456").send(OtherNotification()) notification.assertNotSentTo("123456", WelcomeNotification) notification.assertNotSentTo("<EMAIL>", OtherNotification) def test_assert_sent_to_with_notifiable(self): notification = self.application.make("notification") user = User.find(1) user.notify(WelcomeNotification()) notification.assertSentTo(user, WelcomeNotification) user.notify(OtherNotification()) notification.assertSentTo(user, OtherNotification) notification.assertCount(2) def test_assert_sent_to_with_count(self): notification = self.application.make("notification") user = User.find(1) user.notify(WelcomeNotification()) user.notify(WelcomeNotification()) notification.assertSentTo(user, WelcomeNotification, count=2) user.notify(OtherNotification()) user.notify(OtherNotification()) with self.assertRaises(AssertionError): notification.assertSentTo(user, OtherNotification, count=1) def test_assert_with_assertions_on_notification(self): user = User.find(1) user.notify(OrderNotification(6)) self.application.make("notification").assertSentTo( user, OrderNotification, lambda user, notification: ( notification.assertSentVia("mail", "slack") .assertEqual(notification.order_id, 6) .assertEqual( notification.to_mail(user).get_options().get("subject"), "Order 6 shipped !", ) .assertIn( user.name, notification.to_mail(user).get_options().get("text_content"), ) ), ) def test_last_notification(self): notification = self.application.make("notification") message = WelcomeNotification() notification.route("mail", "<EMAIL>").send(message) assert message == notification.last() def test_assert_last(self): self.application.make("notification").route("mail", "<EMAIL>").route( "slack", "#general" ).send(OrderNotification(10)) self.application.make("notification").assertLast( lambda user, notif: ( notif.assertSentVia("mail") .assertEqual(notif.order_id, 10) .assertEqual( notif.to_slack(user).get_options().get("text"), "Order 10 has been shipped !", ) ) )
2,422
743
<reponame>riag23/AdaptiveCards {"actions":[{"targetElements":["textToToggle","imageToToggle","imageToToggle2"],"title":"Toggle!","type":"Action.ToggleVisibility"},{"targetElements":["textToToggle","imageToToggle","imageToToggle2"],"title":"Also Toggle!","type":"Action.ToggleVisibility"},{"targetElements":[{"elementId":"textToToggle","isVisible":true},{"elementId":"imageToToggle","isVisible":true},{"elementId":"imageToToggle2","isVisible":true}],"title":"Show!","type":"Action.ToggleVisibility"},{"targetElements":[{"elementId":"textToToggle","isVisible":false},{"elementId":"imageToToggle","isVisible":false},{"elementId":"imageToToggle2","isVisible":false}],"title":"Hide!","type":"Action.ToggleVisibility"},{"targetElements":[{"elementId":"textToToggle","isVisible":true},{"elementId":"imageToToggle","isVisible":true},{"elementId":"imageToToggle2","isVisible":false}],"title":"Grain!","type":"Action.ToggleVisibility"},{"targetElements":[{"elementId":"textToToggle","isVisible":true},{"elementId":"imageToToggle","isVisible":false},{"elementId":"imageToToggle2","isVisible":true}],"title":"Water!","type":"Action.ToggleVisibility"}],"body":[{"text":"Press the buttons to toggle the images!","type":"TextBlock","wrap":true},{"id":"textToToggle","isVisible":false,"text":"Here are some images:","type":"TextBlock"},{"columns":[{"items":[{"altText":"sample image 1","id":"imageToToggle","isVisible":false,"size":"Medium","style":"person","type":"Image","url":"https://picsum.photos/100/100?image=112"}],"type":"Column"},{"items":[{"altText":"sample image 2","id":"imageToToggle2","isVisible":false,"size":"Medium","type":"Image","url":"https://picsum.photos/100/100?image=123"}],"type":"Column"}],"type":"ColumnSet"}],"type":"AdaptiveCard","version":"1.2"}
513
382
<reponame>PartiallyTyped/Hyperactive from sklearn.model_selection import cross_val_score from sklearn.ensemble import GradientBoostingRegressor from sklearn.datasets import load_boston from hyperactive import Hyperactive data = load_boston() X, y = data.data, data.target def model(opt): gbr = GradientBoostingRegressor( n_estimators=opt["n_estimators"], max_depth=opt["max_depth"], min_samples_split=opt["min_samples_split"], ) scores = cross_val_score(gbr, X, y, cv=3) return scores.mean() search_space = { "n_estimators": list(range(10, 150, 5)), "max_depth": list(range(2, 12)), "min_samples_split": list(range(2, 22)), } hyper = Hyperactive() hyper.add_search(model, search_space, n_iter=20) hyper.run()
303
852
#include "RecoMuon/MuonIdentification/interface/MuonCosmicsId.h" #include "DataFormats/TrackReco/interface/Track.h" bool directionAlongMomentum(const reco::Track& track) { // check is done in 2D return (track.innerPosition().x() - track.vx()) * track.px() + (track.innerPosition().y() - track.vy()) * track.py() > 0; } // returns angle and dPt/Pt std::pair<double, double> muonid::matchTracks(const reco::Track& ref, const reco::Track& probe) { std::pair<double, double> result(0, 0); // When both tracks are reconstructed as outside going, sign is -1 // otherwise it's +1. There is also a crazy case of both are outside // going, then sign is -1 as well. int match_sign = directionAlongMomentum(ref) == directionAlongMomentum(probe) ? -1 : +1; double sprod = ref.px() * probe.px() + ref.py() * probe.py() + ref.pz() * probe.pz(); double argCos = match_sign * (sprod / ref.p() / probe.p()); if (argCos < -1.0) argCos = -1.0; if (argCos > 1.0) argCos = 1.0; result.first = acos(argCos); result.second = fabs(probe.pt() - ref.pt()) / sqrt(ref.pt() * probe.pt()); //SK: take a geom-mean pt return result; } reco::TrackRef muonid::findOppositeTrack(const edm::Handle<reco::TrackCollection>& tracks, const reco::Track& muonTrack, double angleMatch, double momentumMatch) { for (unsigned int i = 0; i < tracks->size(); ++i) { // When both tracks are reconstructed as outside going, sign is -1 // otherwise it's +1. There is also a crazy case of both are outside // going, then sign is -1 as well. const std::pair<double, double>& match = matchTracks(muonTrack, tracks->at(i)); if (match.first < angleMatch && match.second < momentumMatch) return reco::TrackRef(tracks, i); } return reco::TrackRef(); }
764
595
<reponame>steamboatid/nginx /* * Copyright (C) <NAME> * Copyright (C) NGINX, Inc. */ #include <njs_main.h> /* * The red-black tree code is based on the algorithm described in * the "Introduction to Algorithms" by Cormen, Leiserson and Rivest. */ static void njs_rbtree_insert_fixup(njs_rbtree_node_t *node); static void njs_rbtree_delete_fixup(njs_rbtree_t *tree, njs_rbtree_node_t *node); njs_inline void njs_rbtree_left_rotate(njs_rbtree_node_t *node); njs_inline void njs_rbtree_right_rotate(njs_rbtree_node_t *node); njs_inline void njs_rbtree_parent_relink(njs_rbtree_node_t *subst, njs_rbtree_node_t *node); #define NJS_RBTREE_BLACK 0 #define NJS_RBTREE_RED 1 #define njs_rbtree_comparison_callback(tree) \ ((njs_rbtree_compare_t) (tree)->sentinel.right) void njs_rbtree_init(njs_rbtree_t *tree, njs_rbtree_compare_t compare) { /* * The sentinel is used as a leaf node sentinel and as a tree root * sentinel: it is a parent of a root node and the root node is * the left child of the sentinel. Combining two sentinels in one * entry and the fact that the sentinel's left child is a root node * simplifies njs_rbtree_node_successor() and eliminates explicit * root node test before or inside njs_rbtree_min(). */ /* The root is empty. */ tree->sentinel.left = &tree->sentinel; /* * The sentinel's right child is never used so * comparison callback can be safely stored here. */ tree->sentinel.right = (void *) compare; /* The root and leaf sentinel must be black. */ tree->sentinel.color = NJS_RBTREE_BLACK; } void njs_rbtree_insert(njs_rbtree_t *tree, njs_rbtree_part_t *part) { njs_rbtree_node_t *node, *new_node, *sentinel, **child; njs_rbtree_compare_t compare; new_node = (njs_rbtree_node_t *) part; node = njs_rbtree_root(tree); sentinel = njs_rbtree_sentinel(tree); new_node->left = sentinel; new_node->right = sentinel; new_node->color = NJS_RBTREE_RED; compare = (njs_rbtree_compare_t) tree->sentinel.right; child = &njs_rbtree_root(tree); while (*child != sentinel) { node = *child; njs_prefetch(node->left); njs_prefetch(node->right); child = (compare(new_node, node) < 0) ? &node->left : &node->right; } *child = new_node; new_node->parent = node; njs_rbtree_insert_fixup(new_node); node = njs_rbtree_root(tree); node->color = NJS_RBTREE_BLACK; } static void njs_rbtree_insert_fixup(njs_rbtree_node_t *node) { njs_rbtree_node_t *parent, *grandparent, *uncle; /* * Prefetching parent nodes does not help here because they are * already traversed during insertion. */ for ( ;; ) { parent = node->parent; /* * Testing whether a node is a tree root is not required here since * a root node's parent is the sentinel and it is always black. */ if (parent->color == NJS_RBTREE_BLACK) { return; } grandparent = parent->parent; if (parent == grandparent->left) { uncle = grandparent->right; if (uncle->color == NJS_RBTREE_BLACK) { if (node == parent->right) { node = parent; njs_rbtree_left_rotate(node); } /* * njs_rbtree_left_rotate() swaps parent and * child whilst keeps grandparent the same. */ parent = node->parent; parent->color = NJS_RBTREE_BLACK; grandparent->color = NJS_RBTREE_RED; njs_rbtree_right_rotate(grandparent); /* * njs_rbtree_right_rotate() does not change node->parent * color which is now black, so testing color is not required * to return from function. */ return; } } else { uncle = grandparent->left; if (uncle->color == NJS_RBTREE_BLACK) { if (node == parent->left) { node = parent; njs_rbtree_right_rotate(node); } /* See the comment in the symmetric branch above. */ parent = node->parent; parent->color = NJS_RBTREE_BLACK; grandparent->color = NJS_RBTREE_RED; njs_rbtree_left_rotate(grandparent); /* See the comment in the symmetric branch above. */ return; } } uncle->color = NJS_RBTREE_BLACK; parent->color = NJS_RBTREE_BLACK; grandparent->color = NJS_RBTREE_RED; node = grandparent; } } njs_rbtree_node_t * njs_rbtree_find(njs_rbtree_t *tree, njs_rbtree_part_t *part) { intptr_t n; njs_rbtree_node_t *node, *next, *sentinel; njs_rbtree_compare_t compare; node = (njs_rbtree_node_t *) part; next = njs_rbtree_root(tree); sentinel = njs_rbtree_sentinel(tree); compare = njs_rbtree_comparison_callback(tree); while (next != sentinel) { njs_prefetch(next->left); njs_prefetch(next->right); n = compare(node, next); if (n < 0) { next = next->left; } else if (n > 0) { next = next->right; } else { return next; } } return NULL; } njs_rbtree_node_t * njs_rbtree_find_less_or_equal(njs_rbtree_t *tree, njs_rbtree_part_t *part) { intptr_t n; njs_rbtree_node_t *node, *retval, *next, *sentinel; njs_rbtree_compare_t compare; node = (njs_rbtree_node_t *) part; retval = NULL; next = njs_rbtree_root(tree); sentinel = njs_rbtree_sentinel(tree); compare = njs_rbtree_comparison_callback(tree); while (next != sentinel) { njs_prefetch(next->left); njs_prefetch(next->right); n = compare(node, next); if (n < 0) { next = next->left; } else if (n > 0) { retval = next; next = next->right; } else { /* Exact match. */ return next; } } return retval; } njs_rbtree_node_t * njs_rbtree_find_greater_or_equal(njs_rbtree_t *tree, njs_rbtree_part_t *part) { intptr_t n; njs_rbtree_node_t *node, *retval, *next, *sentinel; njs_rbtree_compare_t compare; node = (njs_rbtree_node_t *) part; retval = NULL; next = njs_rbtree_root(tree); sentinel = njs_rbtree_sentinel(tree); compare = njs_rbtree_comparison_callback(tree); while (next != sentinel) { njs_prefetch(next->left); njs_prefetch(next->right); n = compare(node, next); if (n < 0) { retval = next; next = next->left; } else if (n > 0) { next = next->right; } else { /* Exact match. */ return next; } } return retval; } void njs_rbtree_delete(njs_rbtree_t *tree, njs_rbtree_part_t *part) { uint8_t color; njs_rbtree_node_t *node, *sentinel, *subst, *child; node = (njs_rbtree_node_t *) part; subst = node; sentinel = njs_rbtree_sentinel(tree); if (node->left == sentinel) { child = node->right; } else if (node->right == sentinel) { child = node->left; } else { subst = njs_rbtree_branch_min(tree, node->right); child = subst->right; } njs_rbtree_parent_relink(child, subst); color = subst->color; if (subst != node) { /* Move the subst node to the deleted node position in the tree. */ subst->color = node->color; subst->left = node->left; subst->left->parent = subst; subst->right = node->right; subst->right->parent = subst; njs_rbtree_parent_relink(subst, node); } #if (NJS_DEBUG) node->left = NULL; node->right = NULL; node->parent = NULL; #endif if (color == NJS_RBTREE_BLACK) { njs_rbtree_delete_fixup(tree, child); } } static void njs_rbtree_delete_fixup(njs_rbtree_t *tree, njs_rbtree_node_t *node) { njs_rbtree_node_t *parent, *sibling; while (node != njs_rbtree_root(tree) && node->color == NJS_RBTREE_BLACK) { /* * Prefetching parent nodes does not help here according * to microbenchmarks. */ parent = node->parent; if (node == parent->left) { sibling = parent->right; if (sibling->color != NJS_RBTREE_BLACK) { sibling->color = NJS_RBTREE_BLACK; parent->color = NJS_RBTREE_RED; njs_rbtree_left_rotate(parent); sibling = parent->right; } if (sibling->right->color == NJS_RBTREE_BLACK) { sibling->color = NJS_RBTREE_RED; if (sibling->left->color == NJS_RBTREE_BLACK) { node = parent; continue; } sibling->left->color = NJS_RBTREE_BLACK; njs_rbtree_right_rotate(sibling); /* * If the node is the leaf sentinel then the right * rotate above changes its parent so a sibling below * becames the leaf sentinel as well and this causes * segmentation fault. This is the reason why usual * red-black tree implementations with a leaf sentinel * which does not require to test leaf nodes at all * nevertheless test the leaf sentinel in the left and * right rotate procedures. Since according to the * algorithm node->parent must not be changed by both * the left and right rotates above, it can be cached * in a local variable. This not only eliminates the * sentinel test in njs_rbtree_parent_relink() but also * decreases the code size because C forces to reload * non-restrict pointers. */ sibling = parent->right; } sibling->color = parent->color; parent->color = NJS_RBTREE_BLACK; sibling->right->color = NJS_RBTREE_BLACK; njs_rbtree_left_rotate(parent); return; } else { sibling = parent->left; if (sibling->color != NJS_RBTREE_BLACK) { sibling->color = NJS_RBTREE_BLACK; parent->color = NJS_RBTREE_RED; njs_rbtree_right_rotate(parent); sibling = parent->left; } if (sibling->left->color == NJS_RBTREE_BLACK) { sibling->color = NJS_RBTREE_RED; if (sibling->right->color == NJS_RBTREE_BLACK) { node = parent; continue; } sibling->right->color = NJS_RBTREE_BLACK; njs_rbtree_left_rotate(sibling); /* See the comment in the symmetric branch above. */ sibling = parent->left; } sibling->color = parent->color; parent->color = NJS_RBTREE_BLACK; sibling->left->color = NJS_RBTREE_BLACK; njs_rbtree_right_rotate(parent); return; } } node->color = NJS_RBTREE_BLACK; } njs_inline void njs_rbtree_left_rotate(njs_rbtree_node_t *node) { njs_rbtree_node_t *child; child = node->right; node->right = child->left; child->left->parent = node; child->left = node; njs_rbtree_parent_relink(child, node); node->parent = child; } njs_inline void njs_rbtree_right_rotate(njs_rbtree_node_t *node) { njs_rbtree_node_t *child; child = node->left; node->left = child->right; child->right->parent = node; child->right = node; njs_rbtree_parent_relink(child, node); node->parent = child; } /* Relink a parent from the node to the subst node. */ njs_inline void njs_rbtree_parent_relink(njs_rbtree_node_t *subst, njs_rbtree_node_t *node) { njs_rbtree_node_t *parent, **link; parent = node->parent; /* * The leaf sentinel's parent can be safely changed here. * See the comment in njs_rbtree_delete_fixup() for details. */ subst->parent = parent; /* * If the node's parent is the root sentinel it is safely changed * because the root sentinel's left child is the tree root. */ link = (node == parent->left) ? &parent->left : &parent->right; *link = subst; } njs_rbtree_node_t * njs_rbtree_destroy_next(njs_rbtree_t *tree, njs_rbtree_node_t **next) { njs_rbtree_node_t *node, *subst, *parent, *sentinel; sentinel = njs_rbtree_sentinel(tree); /* Find the leftmost node. */ for (node = *next; node->left != sentinel; node = node->left); /* Replace the leftmost node with its right child. */ subst = node->right; parent = node->parent; parent->left = subst; subst->parent = parent; /* * The right child is used as the next start node. If the right child * is the sentinel then parent of the leftmost node is used as the next * start node. The parent of the root node is the sentinel so after * the single root node will be replaced with the sentinel, the next * start node will be equal to the sentinel and iteration will stop. */ if (subst == sentinel) { subst = parent; } *next = subst; return node; }
6,741
660
<gh_stars>100-1000 package quick.pager.shop.dto; import java.io.Serializable; import lombok.Data; @Data public class PublishCouponDTO implements Serializable { private static final long serialVersionUID = -4690360296030962986L; private String phone; private String description; }
100
327
<reponame>fkorotkov/greyhound<gh_stars>100-1000 package com.wixpress.dst.greyhound.java; import java.time.Duration; import java.util.Collections; import java.util.Map; public class TopicConfig { private String name; private int partitions; private int replicationFactor; private CleanupPolicy cleanupPolicy; private Map<String, String> extraProperties; public TopicConfig(String name, int partitions, int replicationFactor, CleanupPolicy cleanupPolicy, Map<String, String> extraProperties) { this.name = name; this.partitions = partitions; this.replicationFactor = replicationFactor; this.cleanupPolicy = cleanupPolicy; this.extraProperties = extraProperties; } public TopicConfig(String name, int partitions, int replicationFactor) { this(name, partitions, replicationFactor, CleanupPolicy.delete(Duration.ofHours(1)), Collections.emptyMap()); } public String name() { return name; } public int partitions() { return partitions; } public int replicationFactor() { return replicationFactor; } public CleanupPolicy cleanupPolicy() { return cleanupPolicy; } public Map<String, String> extraProperties() { return extraProperties; } }
445
398
<gh_stars>100-1000 package com.ruiyun.jvppeteer.protocol.runtime; import java.util.List; public class StackTrace { /** * String label of this stack trace. For async traces this may be a name of the function that initiated the async call. */ private String description; /** * JavaScript function name. */ private List<CallFrame> callFrames; /** * Asynchronous JavaScript stack trace that preceded this stack, if available. */ private StackTrace parent; /** * Asynchronous JavaScript stack trace that preceded this stack, if available. */ private StackTraceId parentId; public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public List<CallFrame> getCallFrames() { return callFrames; } public void setCallFrames(List<CallFrame> callFrames) { this.callFrames = callFrames; } public StackTrace getParent() { return parent; } public void setParent(StackTrace parent) { this.parent = parent; } public StackTraceId getParentId() { return parentId; } public void setParentId(StackTraceId parentId) { this.parentId = parentId; } }
479
1,144
<reponame>google-admin/mozc // Copyright 2010-2021, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above // copyright notice, this list of conditions and the following disclaimer // in the documentation and/or other materials provided with the // distribution. // * Neither the name of Google Inc. nor the names of its // contributors may be used to endorse or promote products derived from // this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #ifndef MOZC_RENDERER_WIN32_WIN32_RENDERER_UTIL_H_ #define MOZC_RENDERER_WIN32_WIN32_RENDERER_UTIL_H_ #include <Windows.h> #include <memory> #include <string> #include <vector> #include "base/port.h" #include "testing/base/public/gunit_prod.h" // for FRIEND_TEST() // TODO(yukawa): Use platform independent primitive types. #ifdef OS_WIN namespace mozc { namespace commands { class RendererCommand; // We cannot use RendererCommand::ApplicationInfo nor // RendererCommand::CandidateForm because C++ does not // allow forward declaration of a nested-type. class RendererCommand_ApplicationInfo; class RendererCommand_CandidateForm; } // namespace commands namespace renderer { namespace win32 { struct CharacterRange { CharacterRange(); int begin; int length; }; struct LineLayout { std::wstring text; int line_length; int line_width; int line_start_offset; std::vector<CharacterRange> character_positions; LineLayout(); }; struct SegmentMarkerLayout { POINT from; POINT to; bool highlighted; SegmentMarkerLayout(); }; struct CompositionWindowLayout { RECT window_position_in_screen_coordinate; RECT text_area; RECT caret_rect; POINT base_position; LOGFONT log_font; std::wstring text; std::vector<SegmentMarkerLayout> marker_layouts; CompositionWindowLayout(); }; // A POD-like class which represents positional information about where the // candidate window should be displayed. // Do not inherit from this class. This class is not designed to be // inheritable. class CandidateWindowLayout { public: // Initializes fields with default values keeping |initialized_| false. CandidateWindowLayout(); // Destructor Stub. Actually do nothing. ~CandidateWindowLayout(); // Returns true if this object is initialized with valid parameter. bool initialized() const; // Initializes fields with given target position and sets true // to |initialized_|. void InitializeWithPosition(const POINT &position); // Initializes fields with given target position and exclude region and // sets true to |initialized_|. void InitializeWithPositionAndExcludeRegion(const POINT &position, const RECT &exclude_region); // Clears fields and sets false to |initialized_|. void Clear(); // Returns target position in screen coordinate. const POINT &position() const; // Returns exclude region in screen coordinate. You can call this method // when |has_exclude_region| returns true. const RECT &exclude_region() const; // Returns true if |exclude_region| is available. bool has_exclude_region() const; private: POINT position_; RECT exclude_region_; bool has_exclude_region_; bool initialized_; }; struct IndicatorWindowLayout { public: IndicatorWindowLayout(); void Clear(); RECT window_rect; bool is_vertical; }; // This interface is designed to hook API calls for unit test. class SystemPreferenceInterface { public: virtual ~SystemPreferenceInterface() {} // This method can be used to retrieve some kind of default font // for GUI rendering. // Returns true if succeeds. virtual bool GetDefaultGuiFont(LOGFONTW *log_font) = 0; }; // This class implements SystemPreferenceInterface for unit tests. class SystemPreferenceFactory { public: // Returns an instance of WindowPositionEmulator. Caller must delete // the instance. static SystemPreferenceInterface *CreateMock(const LOGFONTW &gui_font); private: DISALLOW_IMPLICIT_CONSTRUCTORS(SystemPreferenceFactory); }; // This interface is designed to hook API calls for unit test. class WorkingAreaInterface { public: virtual ~WorkingAreaInterface() {} virtual bool GetWorkingAreaFromPoint(const POINT &point, RECT *working_area) = 0; }; class WorkingAreaFactory { public: // Returns an instance of WorkingAreaInterface. Caller must delete // the instance. static WorkingAreaInterface *Create(); // Returns an instance of WorkingAreaInterface. Caller must delete // the instance. static WorkingAreaInterface *CreateMock(const RECT &working_area); private: DISALLOW_IMPLICIT_CONSTRUCTORS(WorkingAreaFactory); }; // This interface is designed to hook API calls for unit test. class WindowPositionInterface { public: virtual ~WindowPositionInterface() {} // This method wraps API call of LogicalToPhysicalPoint. // Returns true if this method can convert the given coordinate into // physical space. We do not declare this method as const method so // that a mock class can implement this method in non-const way. virtual bool LogicalToPhysicalPoint(HWND window_handle, const POINT &logical_coordinate, POINT *physical_coordinate) = 0; // This method wraps API call of GetWindowRect. virtual bool GetWindowRect(HWND window_handle, RECT *rect) = 0; // This method wraps API call of GetClientRect. virtual bool GetClientRect(HWND window_handle, RECT *rect) = 0; // This method wraps API call of ClientToScreen. virtual bool ClientToScreen(HWND window_handle, POINT *point) = 0; // This method wraps API call of IsWindow. virtual bool IsWindow(HWND window_handle) = 0; // This method wraps API call of GetAncestor/GA_ROOT. virtual HWND GetRootWindow(HWND window_handle) = 0; // This method wraps API call of GetClassName. virtual bool GetWindowClassName(HWND window_handle, std::wstring *class_name) = 0; }; // This class implements WindowPositionInterface and emulates APIs // with positional information registered by RegisterWindow method. class WindowPositionEmulator : public WindowPositionInterface { public: // Returns an instance of WindowPositionEmulator. static WindowPositionEmulator *Create(); // Returns a dummy window handle for this emulator. You can call methods of // WindowPositionInterface with this dummy handle. You need not to release // the returned handle. virtual HWND RegisterWindow(const std::wstring &class_name, const RECT &window_rect, const POINT &client_area_offset, const SIZE &client_area_size, double scale_factor) = 0; virtual void SetRoot(HWND child_window, HWND root_window) = 0; }; enum CompatibilityMode { // This flag represents the position can be calculated with default strategy. COMPATIBILITY_MODE_NONE = 0, // Some applications always keep CandidateForm up-to-date. When this flag // is specified, CandidateForm is taken into account so that the suggest // window can be shown at more appropriate position. Qt-based applications // match this category. CAN_USE_CANDIDATE_FORM_FOR_SUGGEST = 1, // Some applications interpret the coordinate system of CandidateForm as // the offset from the upper-left corner of the window as opposed to most // of other applications which simply use local coordinate. When this flag // is specified, positional fields in CandidateForm are transformed as if // they are the offset from the upper-left corner of the window. GTK-based // applications and Java AWT-based applications match this category. USE_LOCAL_COORD_FOR_CANDIDATE_FORM = 2, // Some applications such as V2C occasionally create zero-initialized // CANDIDATEFORM and maintain it regardless of the actual position of the // composition. This compatibility flag represents that it is better to // ignore this phantom CANDIDATEFORM. Currently all the Java AWT-based // applications match this category. IGNORE_DEFAULT_COMPOSITION_FORM = 4, // Some applications such as NTEmacs22 or Meadow3.0 automatically and // frequently generates WM_IME_CONTROL/IMC_SETCOMPOSITIONWINDOW messages. // In this case, the renderer might not be able to show the InfoList // because new rendering messages will come before the InfoList is // displayed with the default delay (~500 msec). This compatibility flag // represents that we should show the InfoList immediately on such // applications. See b/5824433 for details. // TODO(horo, yukawa): Perhapes we can improve the rendering algorithm // when the renderer is receiving the same messages successively. // If we can safely ignore such successive messages, this flag // can be removed. SHOW_INFOLIST_IMMEDIATELY = 8, }; class LayoutManager { public: LayoutManager(); ~LayoutManager(); // A special constructor for unit tests. You can set a mock object which // emulates native APIs for unit test. This class is responsible for // deleting the mock objects passed. LayoutManager(SystemPreferenceInterface *mock_system_preference, WindowPositionInterface *mock_window_position); // Calculates layout of composition windows including preferred position of // the candidate window and text attributes such as underline or text // highlighting in the composition windows. Returns true when succeeds. // This method is thread-safe. // command: The renderer commant to be rendered. // composition_window_layouts: calculated layout for composition windows. // candidate_form: calculated position for the candidate window to be // displayed. bool LayoutCompositionWindow( const commands::RendererCommand &command, std::vector<CompositionWindowLayout> *composition_window_layouts, CandidateWindowLayout *candidate_layout) const; // Returns compatibility bits for given target application. int GetCompatibilityMode( const commands::RendererCommand_ApplicationInfo &app_info); // Determines the position where the suggest window should be placed when the // composition window is drawn by the application. This function does not // take DPI virtualization into account. In other words, any positional // field in |candidate_form| is calculated in virtualized screen coordinates // for the target application window. bool LayoutCandidateWindowForSuggestion( const commands::RendererCommand_ApplicationInfo &app_info, CandidateWindowLayout *candidate_layout); // Determines the position where the candidate/predict window should be // placed when the composition window is drawn by the application. This // function does not take DPI virtualization into account. In other words, // any positional field in |candidate_form| is calculated in virtualized // screen coordinates for the target application window. bool LayoutCandidateWindowForConversion( const commands::RendererCommand_ApplicationInfo &app_info, CandidateWindowLayout *candidate_layout); // Converts a virtualized screen coordinate for the DPI-unaware application // specified by |window_handle| to the universal screen coordinate for // DPI-aware applications. When the LogicalToPhysicalPoint API is not // available in the target platform, this function simply copies |point| // into |result|. If LogicalToPhysicalPoint API fails due to some // limitations, this function tries to emulate the result assuming the // scaling factor is one dimension and scaling center is (0, 0). // See remarks of the following document for details about the limitations. // http://msdn.microsoft.com/en-us/library/ms633533.aspx // This method is thread-safe. void GetPointInPhysicalCoords(HWND window_handle, const POINT &point, POINT *result) const; // RECT version of GetPointInPhysicalCoords. This method is thread-safe. void GetRectInPhysicalCoords(HWND window_handle, const RECT &rect, RECT *result) const; // Converts a local coordinate into a logical screen coordinate assuming // |src_point| is the relative offset from the top-left of the // window specified by the |src_window_handle|. // Returns false if fails. bool LocalPointToScreen(HWND src_window_handle, const POINT &src_point, POINT *dest_point) const; // Converts a local coordinate into a logical screen coordinate assuming // |src_point| is the relative offset from the top-left of the // window specified by the |src_window_handle|. // Returns false if fails. bool LocalRectToScreen(HWND src_window_handle, const RECT &src_rect, RECT *dest_rect) const; // Converts a local coordinate into a logical screen coordinate assuming // |src_point| is the client coorinate in the window specified by // |src_window_handle|. // Returns false if fails. bool ClientRectToScreen(HWND src_window_handle, const RECT &src_rect, RECT *dest_rect) const; // Converts a local coordinate into a logical screen coordinate assuming // |src_point| is the client coorinate in the window specified by // |src_window_handle|. // Returns false if fails. bool ClientPointToScreen(HWND src_window_handle, const POINT &src_point, POINT *dest_point) const; // Returns true if the client rect of the target window specified by // |src_window_handle| is retrieved in a logical screen coordinate. // Returns false if fails. bool GetClientRect(HWND window_handle, RECT *client_rect) const; // Returns the scaling factor for DPI Virtualization. // Returns 1.0 if any error occurs. double GetScalingFactor(HWND window_handle) const; // Returns true if the default GUI font is retrieved. // Returns false if fails. bool GetDefaultGuiFont(LOGFONTW *logfong) const; // Represents preferred writing direction, especially for composition string. enum WritingDirection { // The writing direction is not specified. WRITING_DIRECTION_UNSPECIFIED = 0, // Horizontal writing is specified. HORIZONTAL_WRITING = 1, // Vertical writing is specified. VERTICAL_WRITING = 2, }; // Returns writing direction. static WritingDirection GetWritingDirection( const commands::RendererCommand_ApplicationInfo &app_info); // Returns true when the target rect is successfully obtained. bool LayoutIndicatorWindow( const commands::RendererCommand_ApplicationInfo &app_info, IndicatorWindowLayout *indicator_layout); private: FRIEND_TEST(Win32RendererUtilTest, HorizontalProportional); FRIEND_TEST(Win32RendererUtilTest, VerticalProportional); FRIEND_TEST(Win32RendererUtilTest, HorizontalMonospaced); FRIEND_TEST(Win32RendererUtilTest, VerticalMonospaced); FRIEND_TEST(Win32RendererUtilTest, HorizontalProportionalCompositeGlyph); FRIEND_TEST(Win32RendererUtilTest, VerticalProportionalCompositeGlyph); FRIEND_TEST(Win32RendererUtilTest, HorizontalMonospacedCompositeGlyph); FRIEND_TEST(Win32RendererUtilTest, VerticalMonospacedCompositeGlyph); // Calculates text layout with taking text wrapping into account. Returns // true when succeeds. // font: The font information to be used for calculation. // str: The string to be calculated. Non-printable characters are not fully // supported. For example, this function may not work well if |str| // contains CR, LF, HT, and VT. // maximum_line_length: The maximum length which limits the grows of text // for each line. // initial_offset: Represents cursor position where the first character in // the |str| starts from if there is enough space to show the first // character. // LineLayout: Layout information for each split line. static bool CalcLayoutWithTextWrapping(const LOGFONTW &font, const std::wstring &text, int maximum_line_length, int initial_offset, std::vector<LineLayout> *line_layouts); std::unique_ptr<SystemPreferenceInterface> system_preference_; std::unique_ptr<WindowPositionInterface> window_position_; DISALLOW_COPY_AND_ASSIGN(LayoutManager); }; } // namespace win32 } // namespace renderer } // namespace mozc #endif // OS_WIN #endif // MOZC_RENDERER_WIN32_WIN32_RENDERER_UTIL_H_
5,437
543
/** * Copyright 2018 Twitter. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.twitter.graphjet.algorithms; import com.twitter.graphjet.hashing.SmallArrayBasedLongToDoubleMap; import static com.twitter.graphjet.algorithms.RecommendationRequest.FAVORITE_SOCIAL_PROOF_TYPE; import static com.twitter.graphjet.algorithms.RecommendationRequest.UNFAVORITE_SOCIAL_PROOF_TYPE; public final class NodeInfoHelper { private NodeInfoHelper() { } /** * Given a nodeInfo, check all social proofs stored and determine if it still has * valid, non-empty social proofs. */ public static boolean nodeInfoHasValidSocialProofs(NodeInfo nodeInfo) { for (SmallArrayBasedLongToDoubleMap socialProof: nodeInfo.getSocialProofs()) { if (socialProof != null && socialProof.size() != 0) { return true; } } return false; } /** * Given a nodeInfo, check whether this nodeInfo supports unfavorite edges. */ private static boolean isUnfavoriteTypeSupported(NodeInfo nodeInfo) { return UNFAVORITE_SOCIAL_PROOF_TYPE < nodeInfo.getSocialProofs().length; } /** * Given a nodeInfo containing the collection of all social proofs on a tweet, remove the * Favorite social proofs that also have Unfavorite counterparts, and deduct the weight of the * nodeInfo accordingly. The Unfavorite social proofs will always be reset to null. * * @return true if the nodInfo has been modified, i.e. have Unfavorited removed, false otherwise. */ public static boolean removeUnfavoritedSocialProofs(NodeInfo nodeInfo) { if (!isUnfavoriteTypeSupported(nodeInfo)) { return false; } SmallArrayBasedLongToDoubleMap[] socialProofs = nodeInfo.getSocialProofs(); SmallArrayBasedLongToDoubleMap unfavSocialProofs = socialProofs[UNFAVORITE_SOCIAL_PROOF_TYPE]; SmallArrayBasedLongToDoubleMap favSocialProofs = socialProofs[FAVORITE_SOCIAL_PROOF_TYPE]; if (unfavSocialProofs == null) { return false; } // Always remove unfavorite social proofs, as they are only meant for internal processing and // not to be returned to the caller. double unfavWeightToRemove = 0; for (int i = 0; i < unfavSocialProofs.size(); i++) { unfavWeightToRemove += unfavSocialProofs.values()[i]; } nodeInfo.setWeight(nodeInfo.getWeight() - unfavWeightToRemove); socialProofs[UNFAVORITE_SOCIAL_PROOF_TYPE] = null; // Remove favorite social proofs that were unfavorited and the corresponding weights if (favSocialProofs != null) { int favWeightToRemove = 0; SmallArrayBasedLongToDoubleMap newFavSocialProofs = new SmallArrayBasedLongToDoubleMap(); for (int i = 0; i < favSocialProofs.size(); i++) { long favUser = favSocialProofs.keys()[i]; double favWeight = favSocialProofs.values()[i]; if (unfavSocialProofs.contains(favUser)) { favWeightToRemove += favWeight; } else { newFavSocialProofs.put(favUser, favWeight, favSocialProofs.metadata()[i]); } } // Add the filtered Favorite social proofs nodeInfo.setWeight(nodeInfo.getWeight() - favWeightToRemove); socialProofs[FAVORITE_SOCIAL_PROOF_TYPE] = (newFavSocialProofs.size() != 0) ? newFavSocialProofs : null; } return true; } }
1,273
30,023
"""Tests for the sensors provided by the Tailscale integration.""" from homeassistant.components.binary_sensor import ( STATE_OFF, STATE_ON, BinarySensorDeviceClass, ) from homeassistant.components.tailscale.const import DOMAIN from homeassistant.const import ATTR_DEVICE_CLASS, ATTR_FRIENDLY_NAME, ATTR_ICON from homeassistant.core import HomeAssistant from homeassistant.helpers import device_registry as dr, entity_registry as er from homeassistant.helpers.entity import EntityCategory from tests.common import MockConfigEntry async def test_tailscale_binary_sensors( hass: HomeAssistant, init_integration: MockConfigEntry, ) -> None: """Test the Tailscale binary sensors.""" entity_registry = er.async_get(hass) device_registry = dr.async_get(hass) state = hass.states.get("binary_sensor.frencks_iphone_client") entry = entity_registry.async_get("binary_sensor.frencks_iphone_client") assert entry assert state assert entry.unique_id == "123456_update_available" assert entry.entity_category == EntityCategory.DIAGNOSTIC assert state.state == STATE_ON assert state.attributes.get(ATTR_FRIENDLY_NAME) == "frencks-iphone Client" assert state.attributes.get(ATTR_DEVICE_CLASS) == BinarySensorDeviceClass.UPDATE assert ATTR_ICON not in state.attributes state = hass.states.get("binary_sensor.frencks_iphone_supports_hairpinning") entry = entity_registry.async_get( "binary_sensor.frencks_iphone_supports_hairpinning" ) assert entry assert state assert entry.unique_id == "123456_client_supports_hair_pinning" assert entry.entity_category == EntityCategory.DIAGNOSTIC assert state.state == STATE_OFF assert ( state.attributes.get(ATTR_FRIENDLY_NAME) == "frencks-iphone Supports Hairpinning" ) assert state.attributes.get(ATTR_ICON) == "mdi:wan" assert ATTR_DEVICE_CLASS not in state.attributes state = hass.states.get("binary_sensor.frencks_iphone_supports_ipv6") entry = entity_registry.async_get("binary_sensor.frencks_iphone_supports_ipv6") assert entry assert state assert entry.unique_id == "123456_client_supports_ipv6" assert entry.entity_category == EntityCategory.DIAGNOSTIC assert state.state == STATE_OFF assert state.attributes.get(ATTR_FRIENDLY_NAME) == "frencks-iphone Supports IPv6" assert state.attributes.get(ATTR_ICON) == "mdi:wan" assert ATTR_DEVICE_CLASS not in state.attributes state = hass.states.get("binary_sensor.frencks_iphone_supports_pcp") entry = entity_registry.async_get("binary_sensor.frencks_iphone_supports_pcp") assert entry assert state assert entry.unique_id == "123456_client_supports_pcp" assert entry.entity_category == EntityCategory.DIAGNOSTIC assert state.state == STATE_OFF assert state.attributes.get(ATTR_FRIENDLY_NAME) == "frencks-iphone Supports PCP" assert state.attributes.get(ATTR_ICON) == "mdi:wan" assert ATTR_DEVICE_CLASS not in state.attributes state = hass.states.get("binary_sensor.frencks_iphone_supports_nat_pmp") entry = entity_registry.async_get("binary_sensor.frencks_iphone_supports_nat_pmp") assert entry assert state assert entry.unique_id == "123456_client_supports_pmp" assert entry.entity_category == EntityCategory.DIAGNOSTIC assert state.state == STATE_OFF assert state.attributes.get(ATTR_FRIENDLY_NAME) == "frencks-iphone Supports NAT-PMP" assert state.attributes.get(ATTR_ICON) == "mdi:wan" assert ATTR_DEVICE_CLASS not in state.attributes state = hass.states.get("binary_sensor.frencks_iphone_supports_udp") entry = entity_registry.async_get("binary_sensor.frencks_iphone_supports_udp") assert entry assert state assert entry.unique_id == "123456_client_supports_udp" assert entry.entity_category == EntityCategory.DIAGNOSTIC assert state.state == STATE_ON assert state.attributes.get(ATTR_FRIENDLY_NAME) == "frencks-iphone Supports UDP" assert state.attributes.get(ATTR_ICON) == "mdi:wan" assert ATTR_DEVICE_CLASS not in state.attributes state = hass.states.get("binary_sensor.frencks_iphone_supports_upnp") entry = entity_registry.async_get("binary_sensor.frencks_iphone_supports_upnp") assert entry assert state assert entry.unique_id == "123456_client_supports_upnp" assert entry.entity_category == EntityCategory.DIAGNOSTIC assert state.state == STATE_OFF assert state.attributes.get(ATTR_FRIENDLY_NAME) == "frencks-iphone Supports UPnP" assert state.attributes.get(ATTR_ICON) == "mdi:wan" assert ATTR_DEVICE_CLASS not in state.attributes assert entry.device_id device_entry = device_registry.async_get(entry.device_id) assert device_entry assert device_entry.identifiers == {(DOMAIN, "123456")} assert device_entry.manufacturer == "Tailscale Inc." assert device_entry.model == "iOS" assert device_entry.name == "frencks-iphone" assert device_entry.entry_type == dr.DeviceEntryType.SERVICE assert device_entry.sw_version == "1.12.3-td91ea7286-ge1bbbd90c" assert ( device_entry.configuration_url == "https://login.tailscale.com/admin/machines/100.11.11.111" )
1,975
6,497
package com.sohu.cache.web.service; import com.sohu.cache.entity.AppUser; import com.sohu.cache.entity.SystemResource; import com.sohu.cache.web.enums.SuccessEnum; import java.util.List; import java.util.Map; /** * Created by chenshi on 2020/7/6. */ public interface ResourceService { SuccessEnum saveResource(SystemResource systemResouce); SuccessEnum updateResource(SystemResource systemResouce); List<SystemResource> getResourceList(int resourceType); List<SystemResource> getResourceList(int resourceType, String searchName); SuccessEnum pushScript(Integer repositoryId, Integer resourceId, String content, AppUser userInfo); SuccessEnum pushDir(Integer repositoryId, Integer resourceId, AppUser userInfo); SystemResource getResourceById(int resourceId); SystemResource getResourceByName(String resourceName); String getRespositoryUrl(int resourceId, int respoitoryId); String getRemoteFileContent(int resourceId, int respoitoryId); //获取远程仓库信息 SystemResource getRepository(); Map<Integer, Integer> getAppUseRedis(); }
346
575
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROMEOS_COMPONENTS_MULTIDEVICE_BEACON_SEED_H_ #define CHROMEOS_COMPONENTS_MULTIDEVICE_BEACON_SEED_H_ #include <google/protobuf/repeated_field.h> #include <ostream> #include <string> #include <vector> #include "base/time/time.h" #include "chromeos/services/device_sync/proto/cryptauth_api.pb.h" #include "chromeos/services/device_sync/proto/cryptauth_better_together_device_metadata.pb.h" namespace chromeos { namespace multidevice { // Salt value used to generate ephemeral IDs for bootstrapping connections. // A BeaconSeed value is valid only between its start and end timestamps. // // This class should always be preferred over the cryptauth::BeaconSeed proto // except when communicating with the CryptAuth server. class BeaconSeed { public: BeaconSeed(); BeaconSeed(const std::string& data, base::Time start_time, base::Time end_time); BeaconSeed(const BeaconSeed& other); ~BeaconSeed(); const std::string& data() const { return data_; } base::Time start_time() const { return start_time_; } base::Time end_time() const { return end_time_; } bool operator==(const BeaconSeed& other) const; private: std::string data_; base::Time start_time_; base::Time end_time_; }; BeaconSeed FromCryptAuthSeed(cryptauth::BeaconSeed cryptauth_seed); cryptauth::BeaconSeed ToCryptAuthSeed(BeaconSeed multidevice_seed); BeaconSeed FromCryptAuthV2Seed(cryptauthv2::BeaconSeed cryptauth_seed); cryptauthv2::BeaconSeed ToCryptAuthV2Seed(BeaconSeed multidevice_seed); std::vector<cryptauth::BeaconSeed> ToCryptAuthSeedList( const std::vector<BeaconSeed>& cryptauth_seed_list); std::vector<BeaconSeed> FromCryptAuthSeedList( const std::vector<cryptauth::BeaconSeed>& cryptauth_seed_list); std::vector<BeaconSeed> FromCryptAuthV2SeedRepeatedPtrField( const google::protobuf::RepeatedPtrField<cryptauthv2::BeaconSeed>& cryptauth_seed_list); std::ostream& operator<<(std::ostream& stream, const BeaconSeed& beacon_seed); } // namespace multidevice } // namespace chromeos #endif // CHROMEOS_COMPONENTS_MULTIDEVICE_BEACON_SEED_H_
800
647
<gh_stars>100-1000 /* * Copyright 2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License */ package io.atomix.copycat.error; import org.testng.annotations.Test; import static org.testng.Assert.assertEquals; /** * Copycat error serialization test. * * @author <a href="http://github.com/kuujo><NAME></a> */ @Test public class CopycatErrorTest { /** * Tests serializing exceptions. */ public void testSerializeErrors() throws Throwable { CopycatError error; error = CopycatError.forId(new NoLeaderException("test").getType().id()); assertEquals(error, CopycatError.Type.NO_LEADER_ERROR); error = CopycatError.forId(new QueryException("test").getType().id()); assertEquals(error, CopycatError.Type.QUERY_ERROR); error = CopycatError.forId(new CommandException("test").getType().id()); assertEquals(error, CopycatError.Type.COMMAND_ERROR); error = CopycatError.forId(new ApplicationException("test").getType().id()); assertEquals(error, CopycatError.Type.APPLICATION_ERROR); error = CopycatError.forId(new IllegalMemberStateException("test").getType().id()); assertEquals(error, CopycatError.Type.ILLEGAL_MEMBER_STATE_ERROR); error = CopycatError.forId(new UnknownSessionException("test").getType().id()); assertEquals(error, CopycatError.Type.UNKNOWN_SESSION_ERROR); error = CopycatError.forId(new InternalException("test").getType().id()); assertEquals(error, CopycatError.Type.INTERNAL_ERROR); error = CopycatError.forId(new ConfigurationException("test").getType().id()); assertEquals(error, CopycatError.Type.CONFIGURATION_ERROR); } }
676
1,194
<reponame>mbw-ahc/hapi-fhir package ca.uhn.fhir.mdm.rules.svc; import ca.uhn.fhir.context.RuntimeSearchParam; import ca.uhn.fhir.mdm.BaseR4Test; import ca.uhn.fhir.mdm.api.MdmMatchResultEnum; import ca.uhn.fhir.mdm.rules.json.MdmFieldMatchJson; import ca.uhn.fhir.mdm.rules.json.MdmMatcherJson; import ca.uhn.fhir.mdm.rules.json.MdmRulesJson; import ca.uhn.fhir.mdm.rules.matcher.MdmMatcherEnum; import org.hl7.fhir.r4.model.HumanName; import org.hl7.fhir.r4.model.Patient; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import java.util.Arrays; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; public class CustomResourceMatcherR4Test extends BaseR4Test { public static final String FIELD_EXACT_MATCH_NAME = MdmMatcherEnum.NAME_ANY_ORDER.name(); private static Patient ourJohnHenry; private static Patient ourJohnHENRY; private static Patient ourJaneHenry; private static Patient ourJohnSmith; private static Patient ourJohnBillyHenry; private static Patient ourBillyJohnHenry; private static Patient ourHenryJohn; private static Patient ourHenryJOHN; @BeforeEach public void before() { when(mySearchParamRetriever.getActiveSearchParam("Patient", "identifier")).thenReturn(mock(RuntimeSearchParam.class)); when(mySearchParamRetriever.getActiveSearchParam("Practitioner", "identifier")).thenReturn(mock(RuntimeSearchParam.class)); when(mySearchParamRetriever.getActiveSearchParam("Medication", "identifier")).thenReturn(mock(RuntimeSearchParam.class)); when(mySearchParamRetriever.getActiveSearchParam("AllergyIntolerance", "identifier")).thenReturn(null); } @Test public void testExactNameAnyOrder() { MdmResourceMatcherSvc nameAnyOrderMatcher = buildMatcher(buildNameRules(MdmMatcherEnum.NAME_ANY_ORDER, true)); assertMatch(MdmMatchResultEnum.MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourJohnHenry)); assertMatch(MdmMatchResultEnum.MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourHenryJohn)); assertMatch(MdmMatchResultEnum.NO_MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourHenryJOHN)); assertMatch(MdmMatchResultEnum.NO_MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourJohnHENRY)); assertMatch(MdmMatchResultEnum.NO_MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourJaneHenry)); assertMatch(MdmMatchResultEnum.NO_MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourJohnSmith)); assertMatch(MdmMatchResultEnum.MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourJohnBillyHenry)); assertMatch(MdmMatchResultEnum.MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourBillyJohnHenry)); } @Test public void testNormalizedNameAnyOrder() { MdmResourceMatcherSvc nameAnyOrderMatcher = buildMatcher(buildNameRules(MdmMatcherEnum.NAME_ANY_ORDER, false)); assertMatch(MdmMatchResultEnum.MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourJohnHenry)); assertMatch(MdmMatchResultEnum.MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourHenryJohn)); assertMatch(MdmMatchResultEnum.MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourHenryJOHN)); assertMatch(MdmMatchResultEnum.MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourJohnHENRY)); assertMatch(MdmMatchResultEnum.NO_MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourJaneHenry)); assertMatch(MdmMatchResultEnum.NO_MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourJohnSmith)); assertMatch(MdmMatchResultEnum.MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourJohnBillyHenry)); assertMatch(MdmMatchResultEnum.MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourBillyJohnHenry)); } @Test public void testExactNameFirstAndLast() { MdmResourceMatcherSvc nameAnyOrderMatcher = buildMatcher(buildNameRules(MdmMatcherEnum.NAME_FIRST_AND_LAST, true)); assertMatch(MdmMatchResultEnum.MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourJohnHenry)); assertMatchResult(MdmMatchResultEnum.MATCH, 1L, 1.0, false, false, nameAnyOrderMatcher.match(ourJohnHenry, ourJohnHenry)); assertMatch(MdmMatchResultEnum.NO_MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourHenryJohn)); assertMatch(MdmMatchResultEnum.NO_MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourHenryJOHN)); assertMatch(MdmMatchResultEnum.NO_MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourJohnHENRY)); assertMatch(MdmMatchResultEnum.NO_MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourJaneHenry)); assertMatch(MdmMatchResultEnum.NO_MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourJohnSmith)); assertMatch(MdmMatchResultEnum.MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourJohnBillyHenry)); assertMatch(MdmMatchResultEnum.MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourBillyJohnHenry)); } @Test public void testNormalizedNameFirstAndLast() { MdmResourceMatcherSvc nameAnyOrderMatcher = buildMatcher(buildNameRules(MdmMatcherEnum.NAME_FIRST_AND_LAST, false)); assertMatch(MdmMatchResultEnum.MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourJohnHenry)); assertMatch(MdmMatchResultEnum.NO_MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourHenryJohn)); assertMatch(MdmMatchResultEnum.NO_MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourHenryJOHN)); assertMatch(MdmMatchResultEnum.MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourJohnHENRY)); assertMatch(MdmMatchResultEnum.NO_MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourJaneHenry)); assertMatch(MdmMatchResultEnum.NO_MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourJohnSmith)); assertMatch(MdmMatchResultEnum.MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourJohnBillyHenry)); assertMatch(MdmMatchResultEnum.MATCH, nameAnyOrderMatcher.match(ourJohnHenry, ourBillyJohnHenry)); } private MdmRulesJson buildNameRules(MdmMatcherEnum theAlgorithm, boolean theExact) { MdmMatcherJson matcherJson = new MdmMatcherJson().setAlgorithm(theAlgorithm).setExact(theExact); MdmFieldMatchJson nameAnyOrderFieldMatch = new MdmFieldMatchJson() .setName(FIELD_EXACT_MATCH_NAME) .setResourceType("Patient") .setResourcePath("name") .setMatcher(matcherJson); MdmRulesJson retval = new MdmRulesJson(); retval.addMatchField(nameAnyOrderFieldMatch); retval.setMdmTypes(Arrays.asList("Patient", "Practitioner", "Medication")); retval.putMatchResult(FIELD_EXACT_MATCH_NAME, MdmMatchResultEnum.MATCH); return retval; } @BeforeAll public static void beforeClass() { ourJohnHenry = buildPatientWithNames("Henry", "John"); ourJohnHENRY = buildPatientWithNames("HENRY", "John"); ourJaneHenry = buildPatientWithNames("Henry", "Jane"); ourJohnSmith = buildPatientWithNames("Smith", "John"); ourJohnBillyHenry = buildPatientWithNames("Henry", "John", "Billy"); ourBillyJohnHenry = buildPatientWithNames("Henry", "Billy", "John"); ourHenryJohn = buildPatientWithNames("John", "Henry"); ourHenryJOHN = buildPatientWithNames("JOHN", "Henry"); } protected static Patient buildPatientWithNames(String theFamilyName, String... theGivenNames) { Patient patient = new Patient(); HumanName name = patient.addName(); name.setFamily(theFamilyName); for (String givenName : theGivenNames) { name.addGiven(givenName); } patient.setId("Patient/1"); return patient; } }
2,496
638
import json import os import shutil from contextlib import contextmanager from pathlib import Path from tempfile import NamedTemporaryFile from typing import Any, Union, Generator PathType = Union[str, Path] def to_path(path: PathType) -> Path: if isinstance(path, Path): return path else: return Path(path) def write_json_file(data: Any, path: PathType) -> None: path = to_path(path) f = NamedTemporaryFile(mode="w+", prefix=path.name, dir=str(path.parent)) with f as tmp_file: json.dump(data, tmp_file, indent=4, sort_keys=True) shutil.move(tmp_file.name, path) # NamedTemporaryFile tries to delete the file and fails otherwise open(tmp_file.name, "a").close() @contextmanager def chdir(dest: PathType) -> Generator[None, None, None]: previous = os.getcwd() os.chdir(dest) try: yield finally: os.chdir(previous)
357
960
<reponame>zhangtemplar/esp-adf // Copyright (2018) Baidu Inc. All rights reserved. /** * File: lightduer_flash_ring_buf.h * Auth: <NAME>(<EMAIL>) * Desc: APIs of store string list to flash. */ #ifndef BAIDU_DUER_LIGHTDUER_FLASH_RING_BUF_H #define BAIDU_DUER_LIGHTDUER_FLASH_RING_BUF_H #ifdef __cplusplus extern "C" { #endif #include "lightduer_types.h" #include "lightduer_flash.h" typedef struct { duer_flash_context_t ctx; int ele_count; unsigned int sequence_num; unsigned int ele_header; unsigned int ele_tail; } duer_flash_ring_buf_context_t; /** * DESC: * Should be called in duer_flash_init, * This function will only take effect when first time called. * * PARAM config: configuration of hardware flash. * * @RETURN: none */ extern void duer_flash_ring_buf_set_config(const duer_flash_config_t *config); void duer_flash_ring_buf_load(duer_flash_ring_buf_context_t *ctx); char *duer_flash_ring_buf_top(duer_flash_ring_buf_context_t *ctx); duer_status_t duer_flash_ring_buf_header_remove(duer_flash_ring_buf_context_t *ctx); duer_status_t duer_flash_ring_buf_append(duer_flash_ring_buf_context_t *ctx, const char *msg); #ifdef __cplusplus } #endif #endif//BAIDU_DUER_LIGHTDUER_FLASH_RING_BUF_H
513
781
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //------------------------------------------------------------------------------------------------------- package Windows.UI.Xaml.Controls; import android.graphics.PointF; public class LineSegment extends PathSegment { PointF _point; public PointF getPoint() { return _point; } public void setPoint(PointF point) { _point = point; } }
151
1,875
/* * Copyright 2017 The Chromium Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ package io.flutter.run; import com.intellij.openapi.roots.ModuleRootModificationUtil; import com.intellij.openapi.vfs.VirtualFile; import io.flutter.testing.ProjectFixture; import io.flutter.testing.TestDir; import io.flutter.testing.Testing; import org.jetbrains.annotations.Nullable; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import static org.junit.Assert.*; public class MainFileTest { @Rule public final ProjectFixture fixture = Testing.makeCodeInsightModule(); @Rule public final TestDir tmp = new TestDir(); VirtualFile contentRoot; String appDir; @Before public void setUp() throws Exception { contentRoot = tmp.ensureDir("root"); appDir = tmp.ensureDir("root/work").getPath(); tmp.writeFile("root/work/pubspec.yaml", ""); tmp.ensureDir("root/work/lib"); Testing.runOnDispatchThread( () -> ModuleRootModificationUtil.addContentRoot(fixture.getModule(), contentRoot.getPath())); } @Test public void shouldFindAppDirForValidFlutterApp() throws Exception { final String mainPath = tmp.writeFile("root/work/lib/main.dart", "import \"package:flutter/ui.dart\"\n" + "main() {}\n").getPath(); final MainFile.Result result = Testing.computeOnDispatchThread(() -> MainFile.verify(mainPath, fixture.getProject())); if (!result.canLaunch()) { fail("Flutter app should be valid but got error: " + result.getError()); } final MainFile main = result.get(); assertEquals(mainPath, main.getFile().getPath()); assertEquals(appDir, main.getAppDir().getPath()); assertTrue(main.hasFlutterImports()); } @Test public void shouldDetectErrors() throws Exception { checkInvalid(null, "hasn't been set"); checkInvalid("notfound.dart", "not found"); tmp.writeFile("root/foo.txt", ""); checkInvalid("root/foo.txt", "not a Dart file"); tmp.writeFile("root/foo.dart", ""); checkInvalid("root/foo.dart", "doesn't contain a main function"); tmp.writeFile("elsewhere.dart", "import \"package:flutter/ui.dart\"\n" + "main() {}\n"); checkInvalid("elsewhere.dart", "isn't within the current project"); tmp.writeFile("root/elsewhere.dart", "import \"package:flutter/ui.dart\"\n" + "main() {}\n"); checkInvalid("root/elsewhere.dart", "isn't within a Flutter application"); } private void checkInvalid(@Nullable String path, String expected) throws Exception { final String fullPath = path == null ? null : tmp.pathAt(path); final MainFile.Result main = Testing.computeOnDispatchThread( () -> MainFile.verify(fullPath, fixture.getProject())); assertFalse(main.canLaunch()); if (main.getError().contains("{0}")) { fail("bad error message: " + main.getError()); } if (!main.getError().contains(expected)) { fail("expected error to contain '" + expected + "' but got: " + main.getError()); } } }
1,197
1,575
package com.billy.android.preloader; import com.billy.android.preloader.interfaces.DataListener; import com.billy.android.preloader.interfaces.DataLoader; import com.billy.android.preloader.interfaces.GroupedDataListener; import com.billy.android.preloader.interfaces.GroupedDataLoader; import com.billy.android.preloader.util.ILogger; import com.billy.android.preloader.util.PreLoaderLogger; import java.util.List; import java.util.concurrent.ExecutorService; /** * Entrance for pre-load data * * @author billy.qi <a href="mailto:<EMAIL>">Contact me.</a> */ public class PreLoader { static ILogger logger = new PreLoaderLogger(); /** * set a custom logger * @param logger custom logger */ public static void setLogger(ILogger logger) { if (logger != null) { PreLoader.logger = logger; } } /** * enable/disable logger * @param show true:enable logger, false:disable logger */ public static void showLog(boolean show) { if (logger != null) { logger.showLog(show); } } /** * start a pre-loader and listen data in the future */ public static <E> PreLoaderWrapper<E> just(DataLoader<E> loader) { return just(loader, (DataListener<E>)null); } /** * start a pre-loader for {@link DataListener} * you can handle the {@link PreLoaderWrapper} object to do whatever you want * @param loader data loader * @param listener data listener * @return {@link PreLoaderWrapper} */ public static <E> PreLoaderWrapper<E> just(DataLoader<E> loader, DataListener<E> listener) { PreLoaderWrapper<E> preLoader = new PreLoaderWrapper<>(loader, listener); preLoader.preLoad(); return preLoader; } public static <E> PreLoaderWrapper<E> just(DataLoader<E> loader, List<DataListener<E>> listeners) { PreLoaderWrapper<E> preLoader = new PreLoaderWrapper<>(loader, listeners); preLoader.preLoad(); return preLoader; } /** * set a custom thread pool for all pre-load tasks * @param threadPoolExecutor thread pool */ public static void setDefaultThreadPoolExecutor(ExecutorService threadPoolExecutor) { Worker.setDefaultThreadPoolExecutor(threadPoolExecutor); } /** * provide a entrance for pre-load data in singleton {@link PreLoaderPool} <br> * @param loader data loader * @param listeners listeners start work after both of loader.loadData() completed and PreLoader.listenData(id) called * @return id for this loader */ public static <E> int preLoad(DataLoader<E> loader, List<DataListener<E>> listeners) { return PreLoaderPool.getDefault().preLoad(loader, listeners); } public static <E> int preLoad(DataLoader<E> loader, DataListener<E> listener) { return PreLoaderPool.getDefault().preLoad(loader, listener); } /** * provide a entrance for pre-load data in singleton {@link PreLoaderPool} <br> * @param loader data loader * @return id for this loader */ public static <E> int preLoad(DataLoader<E> loader) { return PreLoaderPool.getDefault().preLoad(loader); } /** * pre-load data with a group loaders in only one pre-load-id * eg. pre-load data in an activity with lots of {@link DataLoader} * @param loaders * @return */ public static int preLoad(GroupedDataLoader... loaders) { return PreLoaderPool.getDefault().preLoadGroup(loaders); } /** * provide a entrance for create a new {@link PreLoaderPool} object * @return a new object of {@link PreLoaderPool} */ public static PreLoaderPool newPool() { return new PreLoaderPool(); } /** * start to listen data by id<br> * 1. if pre-load task starts via {@link #preLoad(DataLoader, DataListener)} or {@link #preLoad(DataLoader, List)} * the listeners will be called when {@link DataLoader#loadData()} completed<br> * 2. if pre-load task starts via {@link #preLoad(DataLoader)}, * and call this method without any {@link DataListener}, * the pre-load only change the state to {@link StateDone}, * you can get data later by {@link #preLoad(DataLoader, DataListener)} and {@link #preLoad(DataLoader, List)} * @param id the id returns by {@link #preLoad(DataLoader)} * @return success or not */ public static boolean listenData(int id) { return PreLoaderPool.getDefault().listenData(id); } /** * start to listen data with {@link DataListener} by id<br> * @see #listenData(int) PreLoader.listenData(int) for more details * @param id the id returns by {@link #preLoad(DataLoader)} * @param dataListener the dataListener.onDataArrived(data) will be called if data load is completed * @return success or not */ public static <T> boolean listenData(int id, DataListener<T> dataListener) { return PreLoaderPool.getDefault().listenData(id, dataListener); } public static boolean listenData(int id, GroupedDataListener... listeners) { return PreLoaderPool.getDefault().listenData(id, listeners); } /** * remove a specified {@link DataListener} for the pre-load task by id * @param id the id returns by {@link #preLoad(DataLoader)} * @param dataListener the listener to remove * @return success or not */ public static <T> boolean removeListener(int id, DataListener<T> dataListener) { return PreLoaderPool.getDefault().removeListener(id, dataListener); } /** * check the pre-load task is exists in singleton {@link PreLoaderPool} * @param id the id returns by {@link #preLoad(DataLoader)} * @return exists or not */ public static boolean exists(int id) { return PreLoaderPool.getDefault().exists(id); } /** * re-load data for all listeners * @return success */ public static boolean refresh(int id) { return PreLoaderPool.getDefault().refresh(id); } /** * destroy the pre-load task by id. * call this method for remove loader and all listeners, and will not accept any listeners * @param id the id returns by {@link #preLoad(DataLoader)} * @return success or not */ public static boolean destroy(int id) { return PreLoaderPool.getDefault().destroy(id); } /** * destroy all pre-load tasks in singleton {@link PreLoaderPool} * @return success or not */ public static boolean destroyAll() { return PreLoaderPool.getDefault().destroyAll(); } }
2,408
2,151
// Copyright 2012 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // An abstraction to "smear" values by a given percent. Useful for randomizing // delays a little bit so that (say) processes do not get synchronized on time // inadvertently, e.g., a heartbeat task that sends a message every few minutes // is smeared so that all clients do not end up sending a message at the same // time. In particular, given a |delay|, returns a value that is randomly // distributed between // [delay - smearPercent * delay, delay + smearPercent * delay] #ifndef GOOGLE_CACHEINVALIDATION_IMPL_SMEARER_H_ #define GOOGLE_CACHEINVALIDATION_IMPL_SMEARER_H_ #include "google/cacheinvalidation/deps/logging.h" #include "google/cacheinvalidation/deps/random.h" #include "google/cacheinvalidation/deps/scoped_ptr.h" namespace invalidation { class Smearer { public: /* Creates a smearer with the given random number generator. * REQUIRES: 0 <= smear_percent <= 100 * Caller continues to own space for random. */ Smearer(Random* random, int smear_percent) : random_(random), smear_fraction_(smear_percent / 100.0) { CHECK((smear_percent >= 0) && (smear_percent <= 100)); } /* Given a delay, returns a value that is randomly distributed between * (delay - smear_percent * delay, delay + smear_percent * delay) */ TimeDelta GetSmearedDelay(TimeDelta delay) { // Get a random number between -1 and 1 and then multiply that by the // smear fraction. double smear_factor = (2 * random_->RandDouble() - 1.0) * smear_fraction_; return TimeDelta::FromMilliseconds( delay.InMilliseconds() * (1.0 + smear_factor)); } private: Random* random_; /* The percentage (0, 1.0] for smearing the delay. */ double smear_fraction_; }; } // namespace invalidation #endif // GOOGLE_CACHEINVALIDATION_IMPL_SMEARER_H_
746
589
<reponame>ClaudioWaldvogel/inspectIT<gh_stars>100-1000 package rocks.inspectit.ui.rcp.tester; import org.eclipse.core.expressions.PropertyTester; import rocks.inspectit.ui.rcp.editor.inputdefinition.InputDefinition; import rocks.inspectit.ui.rcp.provider.IInputDefinitionProvider; import rocks.inspectit.ui.rcp.repository.CmrRepositoryDefinition; import rocks.inspectit.ui.rcp.repository.StorageRepositoryDefinition; /** * Tests the input definition for different properties. * * @author <NAME> * */ public class InputDefinitionTester extends PropertyTester { /** * {@inheritDoc} */ @Override public boolean test(Object receiver, String property, Object[] args, Object expectedValue) { if (receiver instanceof IInputDefinitionProvider) { InputDefinition inputDefinition = ((IInputDefinitionProvider) receiver).getInputDefinition(); if ("repositoryType".equals(property)) { if ("cmrRepositoryDefinition".equals(expectedValue)) { return inputDefinition.getRepositoryDefinition() instanceof CmrRepositoryDefinition; } else if ("storageRepositoryDefinition".equals(expectedValue)) { return inputDefinition.getRepositoryDefinition() instanceof StorageRepositoryDefinition; } } } return false; } }
391
531
<reponame>szigetics/di // // Copyright (c) 2012-2020 <NAME> (kris at jusiak dot net) // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // //<- #include <cassert> #include <memory> //-> #include <boost/di.hpp> namespace di = boost::di; //<- struct per_request { virtual ~per_request() noexcept = default; virtual void dummy() = 0; }; struct per_request_impl : per_request { void dummy() override {} }; struct shared { virtual ~shared() noexcept = default; virtual void dummy() = 0; }; struct shared_impl : shared { void dummy() override {} }; //-> struct example { // clang-format off example(std::shared_ptr<per_request> sp1 /*unique*/ , std::shared_ptr<per_request> sp2 /*unique*/ , const shared& s1 /*singleton*/ , shared& s2 /*singleton*/) { assert(sp1 != sp2); assert(&s1 == &s2); } // clang-format on }; int main() { // clang-format off auto injector = di::make_injector( di::bind<per_request>().to<per_request_impl>().in(di::unique) , di::bind<shared>().to<shared_impl>().in(di::singleton) ); // clang-format on /*<<create `example`>>*/ injector.create<example>(); }
476
898
/** *Copyright (c) 2020 LZ.All Right Reserved *Author : LZ *Date: 2020.4.08 *Email: <EMAIL> */ #pragma once #include "BucketZombies.h" class BucketFlagZombies :public BucketZombies { public: static BucketFlagZombies* create(Node* node = nullptr); virtual void createZombie() override; virtual void createPreviewZombie() override; virtual void playZombieSoundEffect() override; CC_CONSTRUCTOR_ACCESS: BucketFlagZombies(Node* node = nullptr); };
161
13,885
// Copyright (c) 2020 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // Tests for OpExtension validator rules. #include <string> #include <vector> #include "gmock/gmock.h" #include "source/enum_string_mapping.h" #include "source/extensions.h" #include "source/spirv_target_env.h" #include "test/test_fixture.h" #include "test/unit_spirv.h" #include "test/val/val_fixtures.h" namespace spvtools { namespace val { namespace { using ::testing::HasSubstr; using ::testing::Values; using ::testing::ValuesIn; using ValidateSpvKHRLinkOnceODR = spvtest::ValidateBase<bool>; TEST_F(ValidateSpvKHRLinkOnceODR, Valid) { const std::string str = R"( OpCapability Kernel OpCapability Addresses OpCapability Linkage OpExtension "SPV_KHR_linkonce_odr" OpMemoryModel Physical32 OpenCL OpDecorate %var LinkageAttributes "foobar" LinkOnceODR %uint = OpTypeInt 32 0 %ptr = OpTypePointer CrossWorkgroup %uint %var = OpVariable %ptr CrossWorkgroup )"; CompileSuccessfully(str.c_str()); EXPECT_EQ(SPV_SUCCESS, ValidateInstructions()); } TEST_F(ValidateSpvKHRLinkOnceODR, RequiresExtension) { const std::string str = R"( OpCapability Kernel OpCapability Addresses OpCapability Linkage OpMemoryModel Physical32 OpenCL OpDecorate %var LinkageAttributes "foobar" LinkOnceODR %uint = OpTypeInt 32 0 %ptr = OpTypePointer CrossWorkgroup %uint %var = OpVariable %ptr CrossWorkgroup )"; CompileSuccessfully(str.c_str()); EXPECT_NE(SPV_SUCCESS, ValidateInstructions()); EXPECT_THAT( getDiagnosticString(), HasSubstr("4th operand of Decorate: operand LinkOnceODR(2) requires one " "of these extensions: SPV_KHR_linkonce_odr \n" " OpDecorate %1 LinkageAttributes \"foobar\" LinkOnceODR\n")); } TEST_F(ValidateSpvKHRLinkOnceODR, RequiresLinkageCapability) { const std::string str = R"( OpCapability Kernel OpCapability Addresses OpExtension "SPV_KHR_linkonce_odr" OpMemoryModel Physical32 OpenCL OpDecorate %var LinkageAttributes "foobar" LinkOnceODR %uint = OpTypeInt 32 0 %ptr = OpTypePointer CrossWorkgroup %uint %var = OpVariable %ptr CrossWorkgroup )"; CompileSuccessfully(str.c_str()); EXPECT_NE(SPV_SUCCESS, ValidateInstructions()); EXPECT_THAT( getDiagnosticString(), HasSubstr( "Operand 2 of Decorate requires one of these capabilities: Linkage \n" " OpDecorate %1 LinkageAttributes \"foobar\" LinkOnceODR")); } } // namespace } // namespace val } // namespace spvtools
1,114
409
<reponame>abraha2d/PyVirtualDisplay import logging import os import sys from tempfile import TemporaryDirectory from time import sleep from easyprocess import EasyProcess from pyvirtualdisplay import Display from tutil import has_xvnc, kill_process_tree, prog_check, worker log = logging.getLogger(__name__) python = sys.executable def test_screenshot(): owd = os.getcwd() with TemporaryDirectory(prefix="pyvirtualdisplay_") as tmpdirname: try: os.chdir(tmpdirname) p = EasyProcess([python, "-m", "pyvirtualdisplay.examples.screenshot"]) p.call() assert p.return_code == 0 finally: os.chdir(owd) def test_headless(): p = EasyProcess([python, "-m", "pyvirtualdisplay.examples.headless"]).start() sleep(1) assert p.is_alive() # p.stop() kill_process_tree(p) def test_nested(): with Display(): p = EasyProcess([python, "-m", "pyvirtualdisplay.examples.nested"]).start() sleep(1) assert p.is_alive() # p.stop() kill_process_tree(p) if has_xvnc(): def test_vncserver(): if worker() == 0: p = EasyProcess( [python, "-m", "pyvirtualdisplay.examples.vncserver"] ).start() sleep(1) assert p.is_alive() # p.stop() kill_process_tree(p) if prog_check(["gnumeric", "-help"]): def test_lowres(): with Display(): p = EasyProcess([python, "-m", "pyvirtualdisplay.examples.lowres"]).start() sleep(1) assert p.is_alive() # p.stop() kill_process_tree(p)
767
318
#include <tamtypes.h> #include <kernel.h> #include <fileio.h> #include <stdlib.h> #include <stdio.h> #include <sysmem.h> #include "cdvd_iop.h" #define TRUE 1 #define FALSE 0 #define TH_C 0x02000000 enum PathMatch { NOT_MATCH = 0, MATCH, SUBDIR }; //#define DEBUG // 16 sectors worth of toc entry #define MAX_DIR_CACHE_SECTORS 32 //static u8 cdVolDescriptor[2048]; static CdRMode cdReadMode; // added by ps2reality int lastsector; int last_bk=0; struct rootDirTocHeader { u16 length; u32 tocLBA; u32 tocLBA_bigend; u32 tocSize; u32 tocSize_bigend; u8 dateStamp[8]; u8 reserved[6]; u8 reserved2; u8 reserved3; } __attribute__((packed)); struct asciiDate { char year[4]; char month[2]; char day[2]; char hours[2]; char minutes[2]; char seconds[2]; char hundreths[2]; char terminator[1]; } __attribute__((packed)); struct cdVolDesc { u8 filesystemType; // 0x01 = ISO9660, 0x02 = Joliet, 0xFF = NULL u8 volID[5]; // "CD001" u8 reserved2; u8 reserved3; u8 sysIdName[32]; u8 volName[32]; // The ISO9660 Volume Name u8 reserved5[8]; u32 volSize; // Volume Size u32 volSizeBig; // Volume Size Big-Endian u8 reserved6[32]; u32 unknown1; u32 unknown1_bigend; u16 volDescSize; u16 volDescSize_bigend; u32 unknown3; u32 unknown3_bigend; u32 priDirTableLBA; // LBA of Primary Dir Table u32 reserved7; u32 secDirTableLBA; // LBA of Secondary Dir Table u32 reserved8; struct rootDirTocHeader rootToc; u8 volSetName[128]; u8 publisherName[128]; u8 preparerName[128]; u8 applicationName[128]; u8 copyrightFileName[37]; u8 abstractFileName[37]; u8 bibliographyFileName[37]; struct asciiDate creationDate; struct asciiDate modificationDate; struct asciiDate effectiveDate; struct asciiDate expirationDate; u8 reserved10; u8 reserved11[1166]; } __attribute__((packed)); struct dirTableEntry { u8 dirNameLength; u8 reserved; u32 dirTOCLBA; u16 dirDepth; u8 dirName[32]; } __attribute__((packed)); struct dirTocEntry { short length; unsigned int fileLBA; unsigned int fileLBA_bigend; unsigned int fileSize; unsigned int fileSize_bigend; unsigned char dateStamp[6]; unsigned char reserved1; unsigned char fileProperties; unsigned char reserved2[6]; unsigned char filenameLength; unsigned char filename[128]; } __attribute__((packed)); // This is the internal format on the CD // a file with a single character filename will have a 34byte toc entry // (max 60 entries per sector)6 // TocEntry structure contains only the important stuff needed for export // struct fdtable { int fd; int fileSize; int LBA; int filePos; }; struct dirtable { int dir_entry; struct dirTocEntry * tocEntryPointer; }; struct dir_cache_info { char pathname[1024]; // The pathname of the cached directory unsigned int valid; // TRUE if cache data is valid, FALSE if not unsigned int path_depth; // The path depth of the cached directory (0 = root) unsigned int sector_start; // The start sector (LBA) of the cached directory unsigned int sector_num; // The total size of the directory (in sectors) unsigned int cache_offset; // The offset from sector_start of the cached area unsigned int cache_size; // The size of the cached directory area (in sectors) char* cache; // The actual cached data }; static struct dir_cache_info CachedDirInfo; enum Cache_getMode { CACHE_START = 0, CACHE_NEXT = 1 }; static struct cdVolDesc CDVolDesc; static unsigned int *buffer; // RPC send/receive buffer struct t_SifRpcDataQueue qd; struct t_SifRpcServerData sd0; static struct fdtable fd_table[16]; static int fd_used[16]; static int files_open; static struct fileio_driver file_driver; static struct dirtable _CDVD_OpenDir; static struct dirtable *_CDVD_pCurrentOpenDir; /* Filing-system exported functions */ void CDVD_init( struct fileio_driver *driver); int CDVD_open( int kernel_fd, char *name, int mode); int CDVD_lseek(int kernel_fd, int offset, int whence); int CDVD_read( int kernel_fd, char * buffer, int size ); int CDVD_write( int fd, char * buffer, int size ); int CDVD_close( int kernel_fd); int CDVD_dopen( int kernel_fd, char *path); int CDVD_dclose( int kernel_fd); int CDVD_dread( int kernel_fd, char *buf); /* RPC exported functions */ int CDVD_findfile(const char* fname, struct TocEntry* tocEntry); int CDVD_stop(void); int CDVD_trayreq(int mode); int CDVD_diskready(void); int CDVD_GetDir_RPC(const char* pathname, const char* extensions, enum CDVD_getMode getMode, struct TocEntry tocEntry[], unsigned int req_entries); int CDVD_getdir_IOP(const char* pathname, const char* extensions, enum CDVD_getMode getMode, struct TocEntry tocEntry[], unsigned int req_entries); // Functions called by the RPC server void* CDVDRpc_Stop(); void* CDVDRpc_TrayReq(unsigned int* sbuff); void* CDVDRpc_DiskReady(unsigned int* sbuff); void* CDVDRpc_FindFile(unsigned int* sbuff); void* CDVDRpc_Getdir(unsigned int* sbuff); /* Internal use functions */ int strcasecmp(const char *s1, const char *s2); int strncasecmp(const char *s1, const char *s2, int limit); int CDVD_GetVolumeDescriptor(void); void _splitpath (const char *constpath, char *dir, char *fname); void TocEntryCopy(struct TocEntry* tocEntry, struct dirTocEntry* internalTocEntry); int TocEntryCompare(char* filename, const char* extensions); enum PathMatch ComparePath(const char* path); int CDVD_Cache_Dir(const char* pathname, enum Cache_getMode getMode); int FindPath(char* pathname); void* CDVD_rpc_server(int fno, void *data, int size); void CDVD_Thread(void* param); unsigned long _gp_store __attribute__((section(".bss"))); #define StoreGP() \ __asm __volatile__ (" sw $28, 0(%0) li $28,0" :: "r"(_gp_store)) #define RestoreGP() \ __asm __volatile (" lw $28, 0(%0)" :: "r"(_gp_store)) /***************************************************** * Thread-safe versions of the file-system operations * * These just call the normal versions * *****************************************************/ void T_CDVD_init( struct fileio_driver *driver) { StoreGP(); CDVD_init(driver); RestoreGP(); } int T_CDVD_open( int kernel_fd, char *name, int mode) { register int ret; StoreGP(); ret=CDVD_open(kernel_fd,name,mode); RestoreGP(); return ret; } int T_CDVD_close( int kernel_fd) { register int ret; StoreGP(); ret=CDVD_close(kernel_fd); RestoreGP(); return ret; } int T_CDVD_read( int kernel_fd, char * buffer, int size ) { register int ret; StoreGP(); ret=CDVD_read(kernel_fd,buffer,size); RestoreGP(); return ret; } int T_CDVD_write( int kernel_fd, char * buffer, int size) { register int ret; StoreGP(); ret=CDVD_write(kernel_fd,buffer,size); RestoreGP(); return ret; } int T_CDVD_lseek(int kernel_fd, int offset, int whence) { register int ret; StoreGP(); ret=CDVD_lseek(kernel_fd,offset,whence); RestoreGP(); return ret; } int T_CDVD_dopen(int kernel_fd, char *path) { register int ret; StoreGP(); ret=CDVD_dopen(kernel_fd,path); RestoreGP(); return ret; } int T_CDVD_dclose(int kernel_fd) { register int ret; StoreGP(); ret=CDVD_dclose(kernel_fd); RestoreGP(); return ret; } int T_CDVD_dread(int kernel_fd, char *buf) { register int ret; StoreGP(); ret=CDVD_dread(kernel_fd, buf); RestoreGP(); return ret; } /********************************** * Optimised CD Read by ps2reality * **********************************/ int ReadSect(u32 lsn, u32 sectors, void *buf, CdRMode *mode) { int retry; int result=0; cdReadMode.trycount=32; for(retry=0;retry<32;retry++) // 32 retries { if(retry <= 8) cdReadMode.spindlctrl=1; // Try fast reads for first 8 tries else cdReadMode.spindlctrl=0; // Then try slow reads CdDiskReady(0); if (CdRead(lsn, sectors, buf, mode) != TRUE) { // Failed to read if(retry==31) { // Still failed after last retry memset(buf,0,(sectors<<11)); // printf("Couldn't Read from file for some reason\n"); return FALSE; // error } } else { // Read okay CdSync(0); break; } result=CdGetError(); if(result==0) break; } cdReadMode.trycount=32; cdReadMode.spindlctrl =1; if(result==0) return TRUE; memset(buf,0,(sectors<<11)); return FALSE; // error } /************************************************************* * The functions below are the normal file-system operations, * * used to provide a standard filesystem interface. There is * * no need to export these functions for calling via RPC * *************************************************************/ int dummy() { #ifdef DEBUG printf("CDVD: dummy function called\n"); #endif return -5; } void CDVD_init( struct fileio_driver *driver) { printf("CDVD: CDVD Filesystem v1.14\n"); printf("by A.Lee (aka Hiryu) & <NAME> (aka Sjeep)\n"); printf("CDVD: Initializing '%s' file driver.\n", driver->device); CdInit(0); memset(fd_table,0,sizeof(fd_table)); memset(fd_used,0,16*4); return; } int CDVD_open( int kernel_fd, char *name, int mode) { int j; static struct TocEntry tocEntry; #ifdef DEBUG printf("CDVD: fd_open called.\n" ); printf(" kernel_fd.. %d\n", kernel_fd); printf(" name....... %s %x\n", name, (int)name); printf(" mode....... %d\n\n", mode); #endif // check if the file exists if (CDVD_findfile(name,&tocEntry) != TRUE) { return -1; } if(mode != O_RDONLY) return -2; // set up a new file descriptor for(j=0; j < 16; j++) { if(fd_used[j] == 0) break; } if(j >= 16) return -3; fd_used[j] = 1; files_open++; #ifdef DEBUG printf("CDVD: internal fd %d\n", j); #endif fd_table[j].fd = kernel_fd; fd_table[j].fileSize = tocEntry.fileSize; fd_table[j].LBA = tocEntry.fileLBA; fd_table[j].filePos = 0; #ifdef DEBUG printf("tocEntry.fileSize = %d\n",tocEntry.fileSize); printf("Opened file: %s\n",name); #endif return kernel_fd; } int CDVD_lseek(int kernel_fd, int offset, int whence) { int i; #ifdef DEBUG printf("CDVD: fd_seek called.\n"); printf(" kernel_fd... %d\n", kernel_fd); printf(" offset...... %d\n", offset); printf(" whence...... %d\n\n", whence); #endif for(i=0; i < 16; i++) { if(fd_table[i].fd == kernel_fd) break; } if(i >= 16) { #ifdef DEBUG printf("CDVD_lseek: ERROR: File does not appear to be open!\n"); #endif return -1; } switch(whence) { case SEEK_SET: fd_table[i].filePos = offset; break; case SEEK_CUR: fd_table[i].filePos += offset; break; case SEEK_END: fd_table[i].filePos = fd_table[i].fileSize + offset; break; default: return -1; } if (fd_table[i].filePos < 0) fd_table[i].filePos = 0; if (fd_table[i].filePos > fd_table[i].fileSize) fd_table[i].filePos = fd_table[i].fileSize; return fd_table[i].filePos; } int CDVD_read( int kernel_fd, char * buffer, int size ) { int i; int start_sector; int off_sector; int num_sectors; int read=0; // int sector; // int size_left; // int copy_size; static char local_buffer[9*2048]; #ifdef DEBUG printf("CDVD: read called\n"); printf(" kernel_fd... %d\n",kernel_fd); printf(" buffer...... 0x%X\n",(int)buffer); printf(" size........ %d\n\n",size); #endif for(i=0; i < 16; i++) { if(fd_table[i].fd == kernel_fd) break; } if(i >= 16) { #ifdef DEBUG printf("CDVD_read: ERROR: File does not appear to be open!\n"); #endif return -1; } // A few sanity checks if (fd_table[i].filePos > fd_table[i].fileSize) { // We cant start reading from past the beginning of the file return 0; // File exists but we couldnt read anything from it } if ((fd_table[i].filePos+size) > fd_table[i].fileSize) size = fd_table[i].fileSize - fd_table[i].filePos; // Updates by ps2reality if(size<=0) return 0; if(size>16384) size=16384; // Now work out where we want to start reading from start_sector = fd_table[i].LBA + (fd_table[i].filePos >> 11); off_sector = (fd_table[i].filePos & 0x7FF); // Updates by ps2reality //num_sectors = ((off_sector + size) >> 11) + 1; num_sectors = (off_sector + size); num_sectors = (num_sectors>>11)+((num_sectors & 2047)!=0); #ifdef DEBUG printf("CDVD_read: read sectors %d to %d\n",start_sector,start_sector+num_sectors); #endif /* // Read the data (we only ever get 16KB max request at once) if (CdRead(start_sector, num_sectors, local_buffer, &cdReadMode) != TRUE) { //printf("sector = %d, start sector = %d\n",sector,start_sector); printf("Couldn't Read from file for some reason\n"); return 0; } CdSync(0); */ // Updates by ps2reality // Skip a Sector for equal (use the last sector in buffer) if(start_sector==lastsector) { read=1; if (last_bk > 0) memcpy(local_buffer,local_buffer+2048*(last_bk),2048); last_bk=0; } lastsector=start_sector+num_sectors-1; // Read the data (we only ever get 16KB max request at once) if(read==0 || (read==1 && num_sectors>1)) { if (ReadSect(start_sector+read, num_sectors-read, local_buffer+((read)<<11), &cdReadMode) != TRUE) { #ifdef DEBUG printf("Couldn't Read from file for some reason\n"); #endif } last_bk=num_sectors-1; } memcpy(buffer,local_buffer+off_sector,size); fd_table[i].filePos += size; return (size); } int CDVD_write( int kernel_fd, char * buffer, int size ) { if(size == 0) return 0; else return -1; } int CDVD_close( int kernel_fd) { int i; #ifdef DEBUG printf("CDVD: fd_close called.\n" ); printf(" kernel fd.. %d\n\n", kernel_fd); #endif for(i=0; i < 16; i++) { if(fd_table[i].fd == kernel_fd) break; } if(i >= 16) { #ifdef DEBUG printf("CDVD_close: ERROR: File does not appear to be open!\n"); #endif return -1; } #ifdef DEBUG printf("CDVD: internal fd %d\n",i); #endif fd_used[i] = 0; files_open--; return 0; } int CDVD_dopen( int kernel_fd, char *path) { struct dirtable *pDir; if (_CDVD_pCurrentOpenDir != NULL) { // we only support one open dir at a time now unfortunately return -1; } #ifdef DEBUG printf("cdvd: dopen %s (%d)\n", path, sizeof(struct fio_dirent)); #endif // pre-cache the dir (and get the new pathname - in-case selected "..") if (CDVD_Cache_Dir(path, CACHE_START) != TRUE) { #ifdef DEBUG printf("CDVD_dopen - Call of CDVD_Cache_Dir failed\n"); #endif return -1; } // open dir _CDVD_pCurrentOpenDir = &_CDVD_OpenDir; pDir = _CDVD_pCurrentOpenDir; (char*)pDir->tocEntryPointer = CachedDirInfo.cache; pDir->dir_entry = 0; /* // skip the first self-referencing entry (char*)pDir->tocEntryPointer += pDir->tocEntryPointer->length; // skip the parent entry if this is the root if (CachedDirInfo.path_depth == 0) (char*)pDir->tocEntryPointer += pDir->tocEntryPointer->length; */ // success return 1; } int CDVD_dclose( int kernel_fd) { struct dirtable *pDir = _CDVD_pCurrentOpenDir; #ifdef DEBUG printf("cdvd: dclose %d\n", kernel_fd); #endif if (pDir == NULL) { // no dir open return -1; } pDir->tocEntryPointer = NULL; // close open dir _CDVD_pCurrentOpenDir = NULL; return 1; } void DirEntryCopy(fio_dirent_t *dirent, struct TocEntry *toc_entry) { dirent->stat.addr = toc_entry->fileLBA; dirent->stat.attr = (toc_entry->fileProperties & 0x02) ? FIO_ATTR_SUBDIR : 0; dirent->stat.attr |= FIO_ATTR_READABLE; dirent->stat.size = toc_entry->fileSize; dirent->stat.hisize = 0; // copy file name memcpy((char *)dirent->name, (const char *)toc_entry->filename, sizeof(dirent->name)); dirent->unknown = 0; } int CDVD_dread( int kernel_fd, char *buf) { struct TocEntry localTocEntry; struct dirtable *pDir = _CDVD_pCurrentOpenDir; fio_dirent_t *dirent = (fio_dirent_t *)buf; // clear output buffer memset((char *)dirent, 0, sizeof(dirent)); if (pDir == NULL || pDir->tocEntryPointer == NULL) { // no dir open return -1; } if (pDir->tocEntryPointer->length == 0) { // if we have a toc entry length of zero, // then we've either reached the end of the sector, or the end of the dir // so point to next sector (if there is one - will be checked by next condition) (char*)pDir->tocEntryPointer = CachedDirInfo.cache + (((((char*)pDir->tocEntryPointer - CachedDirInfo.cache)/2048)+1)*2048); } if ((char*)pDir->tocEntryPointer >= CachedDirInfo.cache + (CachedDirInfo.cache_size * 2048)) { // we've reached the end of the current cache block (which may be end of entire dir // if there is more dir to load, then load next chunk, else finish if ((CachedDirInfo.cache_offset+CachedDirInfo.cache_size) < CachedDirInfo.sector_num) { if (CDVD_Cache_Dir(CachedDirInfo.pathname, CACHE_NEXT) != TRUE) { // failed to cache next block pDir->tocEntryPointer = NULL; return -1; } } else { // no more to dir entries pDir->tocEntryPointer = NULL; return -1; } (char*)pDir->tocEntryPointer = CachedDirInfo.cache; } // copy dir entry TocEntryCopy(&localTocEntry, pDir->tocEntryPointer); switch (pDir->dir_entry) { case 0: strcpy(localTocEntry.filename, "."); break; case 1: strcpy(localTocEntry.filename, ".."); break; } DirEntryCopy(dirent, &localTocEntry); // advance to next entry (char*)pDir->tocEntryPointer += pDir->tocEntryPointer->length; pDir->dir_entry++; // printf("cdvd: dread %d %s\n", kernel_fd, localTocEntry.filename); return 1; } static void *filedriver_functarray[16]; int _start( int argc, char **argv) { int i; struct t_thread param; int th; // Initialise the directory cache strcpy(CachedDirInfo.pathname, ""); // The pathname of the cached directory CachedDirInfo.valid = FALSE; // Cache is not valid CachedDirInfo.path_depth = 0; // 0 = root) CachedDirInfo.sector_start = 0; // The start sector (LBA) of the cached directory CachedDirInfo.sector_num = 0; // The total size of the directory (in sectors) CachedDirInfo.cache_offset = 0; // The offset from sector_start of the cached area CachedDirInfo.cache_size = 0; // The size of the cached directory area (in sectors) if (CachedDirInfo.cache == NULL) CachedDirInfo.cache = (char*)AllocSysMemory(0,MAX_DIR_CACHE_SECTORS*2048,NULL); // setup the cdReadMode structure cdReadMode.trycount = 0; cdReadMode.spindlctrl = CdSpinStm; cdReadMode.datapattern = CdSecS2048; // setup the file_driver structure file_driver.device = "cdfs"; file_driver.xx1 = 16; file_driver.version = 1; file_driver.description = "CDVD Filedriver"; file_driver.function_list = filedriver_functarray; for (i=0;i < 16; i++) filedriver_functarray[i] = dummy; filedriver_functarray[ FIO_INITIALIZE ] = T_CDVD_init; filedriver_functarray[ FIO_OPEN ] = T_CDVD_open; filedriver_functarray[ FIO_CLOSE ] = T_CDVD_close; filedriver_functarray[ FIO_READ ] = T_CDVD_read; filedriver_functarray[ FIO_WRITE ] = T_CDVD_write; filedriver_functarray[ FIO_SEEK ] = T_CDVD_lseek; filedriver_functarray[ FIO_DOPEN ] = T_CDVD_dopen; filedriver_functarray[ FIO_DREAD ] = T_CDVD_dread; filedriver_functarray[ FIO_DCLOSE ] = T_CDVD_dclose; FILEIO_del( "cdfs"); FILEIO_add( &file_driver); param.type = TH_C; param.function = (void*)CDVD_Thread; param.priority = 40; param.stackSize = 0x8000; param.unknown = 0; th = CreateThread(&param); if (th > 0) { StartThread(th,0); return 0; } else return 1; return 0; } /************************************************************** * The functions below are not exported for normal file-system * * operations, but are used by the file-system operations, and * * may also be exported for use via RPC * **************************************************************/ int CDVD_GetVolumeDescriptor(void) { // Read until we find the last valid Volume Descriptor int volDescSector; static struct cdVolDesc localVolDesc; #ifdef DEBUG printf("CDVD_GetVolumeDescriptor called\n"); #endif for (volDescSector = 16; volDescSector<20; volDescSector++) { ReadSect(volDescSector,1,&localVolDesc,&cdReadMode); // If this is still a volume Descriptor if (strncmp(localVolDesc.volID, "CD001", 5) == 0) { if ((localVolDesc.filesystemType == 1) || (localVolDesc.filesystemType == 2)) { memcpy(&CDVolDesc, &localVolDesc, sizeof(struct cdVolDesc)); } } else break; } #ifdef DEBUG switch (CDVolDesc.filesystemType) { case 1: printf("CD FileSystem is ISO9660\n"); break; case 2: printf("CD FileSystem is Joliet\n"); break; default: printf("CD FileSystem is unknown type\n"); break; } #endif // CdStop(); return TRUE; } int CDVD_findfile(const char* fname, struct TocEntry* tocEntry) { static char filename[128+1]; static char pathname[1024+1]; struct dirTocEntry* tocEntryPointer; #ifdef DEBUG printf("CDVD_findfile called\n"); #endif _splitpath(fname, pathname, filename); #ifdef DEBUG printf("Trying to find file: %s in directory: %s\n",filename, pathname); #endif // if ((CachedDirInfo.valid==TRUE) // && (strcasecmp(pathname, CachedDirInfo.pathname)==0)) if ((CachedDirInfo.valid==TRUE) && (ComparePath(pathname)==MATCH)) { // the directory is already cached, so check through the currently // cached chunk of the directory first (char*)tocEntryPointer=CachedDirInfo.cache; for ( ; (char*)tocEntryPointer < (CachedDirInfo.cache + (CachedDirInfo.cache_size * 2048)); (char*)tocEntryPointer += tocEntryPointer->length) { if (tocEntryPointer->length == 0) { #ifdef DEBUG printf("Got a null pointer entry, so either reached end of dir, or end of sector\n"); #endif (char*)tocEntryPointer = CachedDirInfo.cache + (((((char*)tocEntryPointer - CachedDirInfo.cache)/2048)+1)*2048); } if ((char*)tocEntryPointer >= (CachedDirInfo.cache + (CachedDirInfo.cache_size * 2048))) { // reached the end of the cache block break; } if ((tocEntryPointer->fileProperties & 0x02)==0) { // It's a file TocEntryCopy(tocEntry, tocEntryPointer); if (strcasecmp(tocEntry->filename, filename)==0) { // and it matches !! return TRUE; } } } // end of for loop // If that was the only dir block, and we havent found it, then fail if (CachedDirInfo.cache_size == CachedDirInfo.sector_num) return FALSE; // Otherwise there is more dir to check if (CachedDirInfo.cache_offset == 0) { // If that was the first block then continue with the next block if (CDVD_Cache_Dir(pathname,CACHE_NEXT) != TRUE) return FALSE; } else { // otherwise (if that wasnt the first block) then start checking from the start if (CDVD_Cache_Dir(pathname,CACHE_START) != TRUE) return FALSE; } } else { #ifdef DEBUG printf("Trying to cache directory\n"); #endif // The wanted directory wasnt already cached, so cache it now if (CDVD_Cache_Dir(pathname, CACHE_START) != TRUE) { #ifdef DEBUG printf("Failed to cache directory\n"); #endif return FALSE; } } // If we've got here, then we have a block of the directory cached, and want to check // from this point, to the end of the dir #ifdef DEBUG printf("cache_size = %d\n",CachedDirInfo.cache_size); #endif while (CachedDirInfo.cache_size > 0) { (char*)tocEntryPointer=CachedDirInfo.cache; if (CachedDirInfo.cache_offset == 0) (char*)tocEntryPointer += tocEntryPointer->length; for ( ; (char*)tocEntryPointer < (CachedDirInfo.cache + (CachedDirInfo.cache_size * 2048)); (char*)tocEntryPointer += tocEntryPointer->length) { if (tocEntryPointer->length == 0) { #ifdef DEBUG printf("Got a null pointer entry, so either reached end of dir, or end of sector\n"); printf("Offset into cache = %d bytes\n",(char*)tocEntryPointer - CachedDirInfo.cache); #endif (char*)tocEntryPointer = CachedDirInfo.cache + (((((char*)tocEntryPointer - CachedDirInfo.cache)/2048)+1)*2048); } if ((char*)tocEntryPointer >= (CachedDirInfo.cache + (CachedDirInfo.cache_size * 2048))) { // reached the end of the cache block break; } TocEntryCopy(tocEntry, tocEntryPointer); if (strcasecmp(tocEntry->filename, filename)==0) { #ifdef DEBUG printf("Found a matching file\n"); #endif // and it matches !! return TRUE; } #ifdef DEBUG printf("Non-matching file - looking for %s , found %s\n",filename, tocEntry->filename); #endif } // end of for loop #ifdef DEBUG printf("Reached end of cache block\n"); #endif // cache the next block CDVD_Cache_Dir(pathname, CACHE_NEXT); } // we've run out of dir blocks to cache, and still not found it, so fail #ifdef DEBUG printf("CDVD_findfile: could not find file\n"); #endif return FALSE; } // Find, and cache, the requested directory, for use by GetDir or (and thus open) // provide an optional offset variable, for use when caching dirs of greater than 500 files // returns TRUE if all TOC entries have been retrieved, or // returns FALSE if there are more TOC entries to be retrieved int CDVD_Cache_Dir(const char* pathname, enum Cache_getMode getMode) { // macke sure that the requested pathname is not directly modified static char dirname[1024]; int path_len; #ifdef DEBUG printf("Attempting to find, and cache, directory: %s\n",pathname); #endif // printf("CDVD_Cache_Dir %s %d\n", pathname, sizeof(fio_dirent_t)); // only take any notice of the existing cache, if it's valid if (CachedDirInfo.valid == TRUE) { // Check if the requested path is already cached // if (strcasecmp(pathname,CachedDirInfo.pathname)==0) if (ComparePath(pathname)==MATCH) { #ifdef DEBUG printf("CacheDir: The requested path is already cached\n"); #endif // If so, is the request ot cache the start of the directory, or to resume the next block ? if (getMode == CACHE_START) { #ifdef DEBUG printf(" and requested cache from start of dir\n"); #endif if (CachedDirInfo.cache_offset == 0) { // requested cache of start of the directory, and thats what's already cached // so sit back and do nothing #ifdef DEBUG printf(" and start of dir is already cached so nothing to do :o)\n"); #endif CachedDirInfo.valid = TRUE; return TRUE; } else { // Requested cache of start of the directory, but thats not what's cached // so re-cache the start of the directory #ifdef DEBUG printf(" but dir isn't cached from start, so re-cache existing dir from start\n"); #endif // reset cache data to start of existing directory CachedDirInfo.cache_offset = 0; CachedDirInfo.cache_size = CachedDirInfo.sector_num; if (CachedDirInfo.cache_size > MAX_DIR_CACHE_SECTORS) CachedDirInfo.cache_size = MAX_DIR_CACHE_SECTORS; // Now fill the cache with the specified sectors if (ReadSect(CachedDirInfo.sector_start+CachedDirInfo.cache_offset, CachedDirInfo.cache_size, CachedDirInfo.cache, &cdReadMode) != TRUE) { #ifdef DEBUG printf("Couldn't Read from CD !\n"); #endif CachedDirInfo.valid = FALSE; // should we completely invalidate just because we couldnt read first time? return FALSE; } CachedDirInfo.valid = TRUE; return TRUE; } } else // getMode == CACHE_NEXT { // So get the next block of the existing directory CachedDirInfo.cache_offset += CachedDirInfo.cache_size; CachedDirInfo.cache_size = CachedDirInfo.sector_num - CachedDirInfo.cache_offset; if (CachedDirInfo.cache_size > MAX_DIR_CACHE_SECTORS) CachedDirInfo.cache_size = MAX_DIR_CACHE_SECTORS; // Now fill the cache with the specified sectors if (ReadSect(CachedDirInfo.sector_start+CachedDirInfo.cache_offset, CachedDirInfo.cache_size, CachedDirInfo.cache, &cdReadMode) != TRUE) { #ifdef DEBUG printf("Couldn't Read from CD !\n"); #endif CachedDirInfo.valid = FALSE; // should we completely invalidate just because we couldnt read first time? return FALSE; } CachedDirInfo.valid = TRUE; return TRUE; } } else // requested directory is not the cached directory (but cache is still valid) { #ifdef DEBUG printf("Cache is valid, but cached directory, is not the requested one\n" "so check if the requested directory is a sub-dir of the cached one\n"); printf("Requested Path = %s , Cached Path = %s\n",pathname, CachedDirInfo.pathname); #endif // Is the requested pathname a sub-directory of the current-directory ? // if the requested pathname is longer than the pathname of the cached dir // and the pathname of the cached dir matches the beginning of the requested pathname // and the next character in the requested pathname is a dir seperator // printf("Length of Cached pathname = %d, length of req'd pathname = %d\n",path_len, strlen(pathname)); // printf("Result of strncasecmp = %d\n",strncasecmp(pathname, CachedDirInfo.pathname, path_len)); // printf("next character after length of cached name = %c\n",pathname[path_len]); // if ((strlen(pathname) > path_len) // && (strncasecmp(pathname, CachedDirInfo.pathname, path_len)==0) // && ((pathname[path_len]=='/') || (pathname[path_len]=='\\'))) if (ComparePath(pathname)==SUBDIR) { // If so then we can start our search for the path, from the currently cached directory #ifdef DEBUG printf("Requested dir is a sub-dir of the cached directory,\n" "so start search from current cached dir\n"); #endif // if the cached chunk, is not the start of the dir, // then we will need to re-load it before starting search if (CachedDirInfo.cache_offset != 0) { CachedDirInfo.cache_offset = 0; CachedDirInfo.cache_size = CachedDirInfo.sector_num; if (CachedDirInfo.cache_size > MAX_DIR_CACHE_SECTORS) CachedDirInfo.cache_size = MAX_DIR_CACHE_SECTORS; // Now fill the cache with the specified sectors if (ReadSect(CachedDirInfo.sector_start+CachedDirInfo.cache_offset, CachedDirInfo.cache_size, CachedDirInfo.cache, &cdReadMode) != TRUE) { #ifdef DEBUG printf("Couldn't Read from CD !\n"); #endif CachedDirInfo.valid = FALSE; // should we completely invalidate just because we couldnt read time? return FALSE; } } // start the search, with the path after the current directory path_len = strlen(CachedDirInfo.pathname); strcpy(dirname,pathname+path_len); // FindPath should use the current directory cache to start it's search // and should change CachedDirInfo.pathname, to the path of the dir it finds // it should also cache the first chunk of directory sectors, // and fill the contents of the other elements of CachedDirInfo appropriately return (FindPath(dirname)); } } } // If we've got here, then either the cache was not valid to start with // or the requested path is not a subdirectory of the currently cached directory // so lets start again #ifdef DEBUG printf("The cache is not valid, or the requested directory is not a sub-dir of the cached one\n"); #endif CdDiskReady(0); // Read the main volume descriptor if (CDVD_GetVolumeDescriptor() != TRUE) { #ifdef DEBUG printf("Could not read the CD/DVD Volume Descriptor\n"); #endif return -1; } #ifdef DEBUG printf("Read the CD Volume Descriptor\n"); #endif CachedDirInfo.path_depth=0; strcpy(CachedDirInfo.pathname,""); // Setup the lba and sector size, for retrieving the root toc CachedDirInfo.cache_offset =0; CachedDirInfo.sector_start = CDVolDesc.rootToc.tocLBA; CachedDirInfo.sector_num = CDVolDesc.rootToc.tocSize>>11; CachedDirInfo.cache_size = CachedDirInfo.sector_num; if (CachedDirInfo.cache_size > MAX_DIR_CACHE_SECTORS) CachedDirInfo.cache_size = MAX_DIR_CACHE_SECTORS; // Now fill the cache with the specified sectors if (ReadSect(CachedDirInfo.sector_start+CachedDirInfo.cache_offset, CachedDirInfo.cache_size, CachedDirInfo.cache, &cdReadMode) != TRUE) { #ifdef DEBUG printf("Couldn't Read from CD !\n"); #endif CachedDirInfo.valid = FALSE; // should we completely invalidate just because we couldnt read time? return FALSE; } #ifdef DEBUG printf("Read the first block from the root directory\n"); #endif // FindPath should use the current directory cache to start it's search (in this case the root) // and should change CachedDirInfo.pathname, to the path of the dir it finds // it should also cache the first chunk of directory sectors, // and fill the contents of the other elements of CachedDirInfo appropriately #ifdef DEBUG printf("Calling FindPath\n"); #endif strcpy(dirname, pathname); return (FindPath(dirname)); } int FindPath(char* pathname) { char* dirname; char* seperator; int dir_entry; int found_dir; struct dirTocEntry* tocEntryPointer; struct TocEntry localTocEntry; dirname=strtok(pathname,"\\/"); #ifdef DEBUG printf("FindPath: trying to find directory %s\n",pathname); #endif CdDiskReady(0); while(dirname != NULL) { found_dir=FALSE; (char*)tocEntryPointer = CachedDirInfo.cache; // Always skip the first entry (self-refencing entry) (char*)tocEntryPointer += tocEntryPointer->length; dir_entry=0; for ( ; (char*)tocEntryPointer < (CachedDirInfo.cache + (CachedDirInfo.cache_size * 2048)); (char*)tocEntryPointer += tocEntryPointer->length) { // If we have a null toc entry, then we've either reached the end of the dir, or have reached a sector boundary if (tocEntryPointer->length == 0) { #ifdef DEBUG printf("Got a null pointer entry, so either reached end of dir, or end of sector\n"); #endif (char*)tocEntryPointer = CachedDirInfo.cache + (((((char*)tocEntryPointer - CachedDirInfo.cache)/2048)+1)*2048); } if ((char*)tocEntryPointer >= (CachedDirInfo.cache + (CachedDirInfo.cache_size * 2048))) { // If we've gone past the end of the cache // then check if there are more sectors to load into the cache if ((CachedDirInfo.cache_offset + CachedDirInfo.cache_size) < CachedDirInfo.sector_num) { // If there are more sectors to load, then load them CachedDirInfo.cache_offset += CachedDirInfo.cache_size; CachedDirInfo.cache_size = CachedDirInfo.sector_num - CachedDirInfo.cache_offset; if (CachedDirInfo.cache_size > MAX_DIR_CACHE_SECTORS) CachedDirInfo.cache_size = MAX_DIR_CACHE_SECTORS; if (ReadSect(CachedDirInfo.sector_start+CachedDirInfo.cache_offset, CachedDirInfo.cache_size, CachedDirInfo.cache, &cdReadMode) != TRUE) { #ifdef DEBUG printf("Couldn't Read from CD !\n"); #endif CachedDirInfo.valid = FALSE; // should we completely invalidate just because we couldnt read time? return FALSE; } (char*)tocEntryPointer = CachedDirInfo.cache; } else { CachedDirInfo.valid = FALSE; return FALSE; } } // If the toc Entry is a directory ... if (tocEntryPointer->fileProperties & 0x02) { // Convert to our format (inc ascii name), for the check TocEntryCopy(&localTocEntry, tocEntryPointer); // If it's the link to the parent directory, then give it the name ".." if (dir_entry == 0) { if (CachedDirInfo.path_depth != 0) { #ifdef DEBUG printf("First directory entry in dir, so name it '..'\n"); #endif strcpy(localTocEntry.filename, ".."); } } // Check if this is the directory that we are looking for if (strcasecmp(dirname, localTocEntry.filename) == 0) { #ifdef DEBUG printf("Found the matching sub-directory\n"); #endif found_dir = TRUE; if (dir_entry == 0) { // We've matched with the parent directory // so truncate the pathname by one level if (CachedDirInfo.path_depth > 0) CachedDirInfo.path_depth --; if (CachedDirInfo.path_depth == 0) { // If at root then just clear the path to root // (simpler than finding the colon seperator etc) CachedDirInfo.pathname[0]=0; } else { seperator = strrchr(CachedDirInfo.pathname, '/'); if (seperator != NULL) *seperator = 0; } } else { // otherwise append a seperator, and the matched directory // to the pathname strcat(CachedDirInfo.pathname, "/"); #ifdef DEBUG printf("Adding '%s' to cached pathname - path depth = %d\n",dirname,CachedDirInfo.path_depth); #endif strcat(CachedDirInfo.pathname, dirname); CachedDirInfo.path_depth ++; } // Exit out of the search loop // (and find the next sub-directory, if there is one) break; } else { #ifdef DEBUG printf("Found a directory, but it doesn't match\n"); #endif } } dir_entry++; } // end of cache block search loop // if we've reached here, without finding the directory, then it's not there if (found_dir != TRUE) { CachedDirInfo.valid = FALSE; return FALSE; } // find name of next dir dirname = strtok(NULL,"\\/"); CachedDirInfo.sector_start = localTocEntry.fileLBA; CachedDirInfo.sector_num = localTocEntry.fileSize >> 11; // Cache the start of the found directory // (used in searching if this isn't the last dir, // or used by whatever requested the cache in the first place if it is the last dir) CachedDirInfo.cache_offset = 0; CachedDirInfo.cache_size = CachedDirInfo.sector_num; if (CachedDirInfo.cache_size > MAX_DIR_CACHE_SECTORS) CachedDirInfo.cache_size = MAX_DIR_CACHE_SECTORS; if (ReadSect(CachedDirInfo.sector_start+CachedDirInfo.cache_offset, CachedDirInfo.cache_size, CachedDirInfo.cache, &cdReadMode) != TRUE) { #ifdef DEBUG printf("Couldn't Read from CD, trying to read %d sectors, starting at sector %d !\n", CachedDirInfo.cache_size, CachedDirInfo.sector_start+CachedDirInfo.cache_offset); #endif CachedDirInfo.valid = FALSE; // should we completely invalidate just because we couldnt read time? return FALSE; } } // If we've got here then we found the requested directory #ifdef DEBUG printf("FindPath found the path\n"); #endif CachedDirInfo.valid = TRUE; return TRUE; } // This is the getdir for use by IOP clients // fills an array of TocEntry stucts in IOP memory int CDVD_getdir_IOP(const char* pathname, const char* extensions, enum CDVD_getMode getMode, struct TocEntry tocEntry[], unsigned int req_entries) { return FALSE; } // This is the getdir for use by the EE RPC client // It DMA's entries to the specified buffer in EE memory int CDVD_GetDir_RPC(const char* pathname, const char* extensions, enum CDVD_getMode getMode, struct TocEntry tocEntry[], unsigned int req_entries) { int matched_entries; int dir_entry; struct TocEntry localTocEntry; struct dirTocEntry* tocEntryPointer; int intStatus; // interrupt status - for dis/en-abling interrupts struct t_SifDmaTransfer dmaStruct; int dmaID; dmaID = 0; #ifdef DEBUG printf("RPC GetDir Request\n"); #endif matched_entries = 0; // pre-cache the dir (and get the new pathname - in-case selected "..") if (CDVD_Cache_Dir(pathname, CACHE_START) != TRUE) { #ifdef DEBUG printf("CDVD_GetDir_RPC - Call of CDVD_Cache_Dir failed\n"); #endif return -1; } #ifdef DEBUG printf("requested directory is %d sectors\n",CachedDirInfo.sector_num); #endif if ((getMode == CDVD_GET_DIRS_ONLY) || (getMode == CDVD_GET_FILES_AND_DIRS)) { // Cache the start of the requested directory if (CDVD_Cache_Dir(CachedDirInfo.pathname, CACHE_START) != TRUE) { #ifdef DEBUG printf("CDVD_GetDir_RPC - Call of CDVD_Cache_Dir failed\n"); #endif return -1; } (char*)tocEntryPointer = CachedDirInfo.cache; // skip the first self-referencing entry (char*)tocEntryPointer += tocEntryPointer->length; // skip the parent entry if this is the root if (CachedDirInfo.path_depth == 0) (char*)tocEntryPointer += tocEntryPointer->length; dir_entry = 0; while(1) { #ifdef DEBUG printf("CDVD_GetDir_RPC - inside while-loop\n"); #endif // parse the current cache block for( ; (char*)tocEntryPointer < (CachedDirInfo.cache + (CachedDirInfo.cache_size * 2048)); (char*)tocEntryPointer += tocEntryPointer->length) { if (tocEntryPointer->length == 0) { // if we have a toc entry length of zero, // then we've either reached the end of the sector, or the end of the dir // so point to next sector (if there is one - will be checked by next condition) (char*)tocEntryPointer = CachedDirInfo.cache + (((((char*)tocEntryPointer - CachedDirInfo.cache)/2048)+1)*2048); } if ((char*)tocEntryPointer >= CachedDirInfo.cache + (CachedDirInfo.cache_size * 2048)) { // we've reached the end of the current cache block (which may be end of entire dir // so just break the loop break; } // Check if the current entry is a dir or a file if (tocEntryPointer->fileProperties & 0x02) { #ifdef DEBUG printf("We found a dir, and we want all dirs\n"); #endif // wait for any previous DMA to complete // before over-writing localTocEntry while(SifDmaStat(dmaID)>=0); TocEntryCopy(&localTocEntry, tocEntryPointer); if (dir_entry==0) { if (CachedDirInfo.path_depth != 0) { #ifdef DEBUG printf("It's the first directory entry, so name it '..'\n"); #endif strcpy(localTocEntry.filename, ".."); } } // DMA localTocEntry to the address specified by tocEntry[matched_entries] // setup the dma struct dmaStruct.src = &localTocEntry; dmaStruct.dest = &tocEntry[matched_entries]; dmaStruct.size = sizeof(struct TocEntry); dmaStruct.attr = 0; // Do the DMA transfer CpuSuspendIntr(&intStatus); dmaID = SifSetDma(&dmaStruct, 1); CpuResumeIntr(intStatus); matched_entries++; } else // it must be a file { #ifdef DEBUG printf("We found a file, but we dont want files (at least not yet)\n"); #endif } dir_entry++; if (matched_entries >= req_entries) // if we've filled the requested buffer return (matched_entries); // then just return } // end of the current cache block // if there is more dir to load, then load next chunk, else finish if ((CachedDirInfo.cache_offset+CachedDirInfo.cache_size) < CachedDirInfo.sector_num) { if (CDVD_Cache_Dir(CachedDirInfo.pathname, CACHE_NEXT) != TRUE) { // failed to cache next block (should return TRUE even if // there is no more directory, as long as a CD read didnt fail return -1; } } else break; (char*)tocEntryPointer = CachedDirInfo.cache; } } // Next do files if ((getMode == CDVD_GET_FILES_ONLY) || (getMode == CDVD_GET_FILES_AND_DIRS)) { // Cache the start of the requested directory if (CDVD_Cache_Dir(CachedDirInfo.pathname, CACHE_START) != TRUE) { #ifdef DEBUG printf("CDVD_GetDir_RPC - Call of CDVD_Cache_Dir failed\n"); #endif return -1; } (char*)tocEntryPointer = CachedDirInfo.cache; // skip the first self-referencing entry (char*)tocEntryPointer += tocEntryPointer->length; // skip the parent entry if this is the root if (CachedDirInfo.path_depth == 0) (char*)tocEntryPointer += tocEntryPointer->length; dir_entry = 0; while(1) { #ifdef DEBUG printf("CDVD_GetDir_RPC - inside while-loop\n"); #endif // parse the current cache block for( ; (char*)tocEntryPointer < (CachedDirInfo.cache + (CachedDirInfo.cache_size * 2048)); (char*)tocEntryPointer += tocEntryPointer->length) { if (tocEntryPointer->length == 0) { // if we have a toc entry length of zero, // then we've either reached the end of the sector, or the end of the dir // so point to next sector (if there is one - will be checked by next condition) (char*)tocEntryPointer = CachedDirInfo.cache + (((((char*)tocEntryPointer - CachedDirInfo.cache)/2048)+1)*2048); } if ((char*)tocEntryPointer >= CachedDirInfo.cache + (CachedDirInfo.cache_size * 2048)) { // we've reached the end of the current cache block (which may be end of entire dir // so just break the loop break; } // Check if the current entry is a dir or a file if (tocEntryPointer->fileProperties & 0x02) { #ifdef DEBUG printf("We don't want files now\n"); #endif } else // it must be a file { // wait for any previous DMA to complete // before over-writing localTocEntry while(SifDmaStat(dmaID)>=0); TocEntryCopy(&localTocEntry, tocEntryPointer); if (strlen(extensions) > 0) { // check if the file matches the extension list if (TocEntryCompare(localTocEntry.filename, extensions) == TRUE) { #ifdef DEBUG printf("We found a file that matches the requested extension list\n"); #endif // DMA localTocEntry to the address specified by tocEntry[matched_entries] // setup the dma struct dmaStruct.src = &localTocEntry; dmaStruct.dest = &tocEntry[matched_entries]; dmaStruct.size = sizeof(struct TocEntry); dmaStruct.attr = 0; // Do the DMA transfer CpuSuspendIntr(&intStatus); dmaID = SifSetDma(&dmaStruct, 1); CpuResumeIntr(intStatus); matched_entries++; } else { #ifdef DEBUG printf("We found a file, but it didnt match the requested extension list\n"); #endif } } else // no extension list to match against { #ifdef DEBUG printf("We found a file, and there is not extension list to match against\n"); #endif // DMA localTocEntry to the address specified by tocEntry[matched_entries] // setup the dma struct dmaStruct.src = &localTocEntry; dmaStruct.dest = &tocEntry[matched_entries]; dmaStruct.size = sizeof(struct TocEntry); dmaStruct.attr = 0; // Do the DMA transfer CpuSuspendIntr(&intStatus); dmaID = SifSetDma(&dmaStruct, 1); CpuResumeIntr(intStatus); matched_entries++; } } dir_entry++; if (matched_entries >= req_entries) // if we've filled the requested buffer return (matched_entries); // then just return } // end of the current cache block // if there is more dir to load, then load next chunk, else finish if ((CachedDirInfo.cache_offset+CachedDirInfo.cache_size) < CachedDirInfo.sector_num) { if (CDVD_Cache_Dir(CachedDirInfo.pathname, CACHE_NEXT) != TRUE) { // failed to cache next block (should return TRUE even if // there is no more directory, as long as a CD read didnt fail return -1; } } else break; (char*)tocEntryPointer = CachedDirInfo.cache; } } // reached the end of the dir, before filling up the requested entries return (matched_entries); } int CdFlushCache(void) { strcpy(CachedDirInfo.pathname, ""); // The pathname of the cached directory CachedDirInfo.valid = FALSE; // Cache is not valid CachedDirInfo.path_depth = 0; // 0 = root) CachedDirInfo.sector_start = 0; // The start sector (LBA) of the cached directory CachedDirInfo.sector_num = 0; // The total size of the directory (in sectors) CachedDirInfo.cache_offset = 0; // The offset from sector_start of the cached area CachedDirInfo.cache_size = 0; // The size of the cached directory area (in sectors) return TRUE; } void* CDVDRpc_FlushCache() { CdFlushCache(); return NULL; } void* CDVDRpc_Stop() { CdStop(); return NULL; } // Send: Offset 0 = mode. Size = int // Return: Offset 0 = traycnt. Size = int void* CDVDRpc_TrayReq(unsigned int* sbuff) { int ret; CdTrayReq(sbuff[0],&ret); sbuff[0] = ret; return sbuff; } // Send: Offset 0 = mode // Return: Offset 0 = ret val (cd status) void* CDVDRpc_DiskReady(unsigned int* sbuff) { int ret; ret = CdDiskReady(sbuff[0]); sbuff[0] = ret; return sbuff; } // Send: Offset 0 = filename string (1024 bytes) // Return: Offset 0 = ret val (true/false). Size = int // Offset 1024 = start of TocEntry structure void* CDVDRpc_FindFile(unsigned int* sbuff) { int ret; ret = CDVD_findfile((char*)&sbuff[0],(struct TocEntry*)&sbuff[1024/4]); sbuff[0] = ret; return sbuff; } // Send: Offset 0 = filename string (1024 bytes) // Send: Offset 1024 = extension string (128 bytes) // Send: Offset 1152 = CDVD_getMode // Send: Offset 1156 = pointer to array of TocEntry structures in EE mem // Send: Offset 1160 = requested number of entries // Return: Offset 0 = ret val (number of matched entries). Size = int // Return: Offset 4 = updated pathname (for if path selected = ".." void* CDVDRpc_Getdir(unsigned int* sbuff) { int ret; ret=CDVD_GetDir_RPC( (char*)&sbuff[0/4], // pathname string (char*)&sbuff[1024/4], // extension string sbuff[1152/4], // CDVD_getMode (struct TocEntry*) sbuff[1156/4], // pointer to array of TocEntry structures in EE mem sbuff[1160/4] // requested number of entries ); sbuff[0] = ret; strcpy((char*)&sbuff[1],CachedDirInfo.pathname); return sbuff; } /************************************************* * The functions below are for internal use only, * * and are not to be exported * *************************************************/ void CDVD_Thread(void* param) { #ifdef DEBUG printf("CDVD: RPC Initialize\n"); #endif SifInitRpc(0); // 0x4800 bytes for TocEntry structures (can fit 128 of them) // 0x400 bytes for the filename string buffer = AllocSysMemory(0, 0x4C00, NULL); if(buffer == NULL) { #ifdef DEBUG printf("Failed to allocate memory for RPC buffer!\n"); #endif SleepThread(); } SifSetRpcQueue(&qd, GetThreadId()); SifRegisterRpc(&sd0, CDVD_IRX,CDVD_rpc_server,(void *)buffer,0,0,&qd); SifRpcLoop(&qd); } void* CDVD_rpc_server(int fno, void *data, int size) { switch(fno) { case CDVD_FINDFILE: return CDVDRpc_FindFile((unsigned*)data); case CDVD_GETDIR: return CDVDRpc_Getdir((unsigned*)data); case CDVD_STOP: return CDVDRpc_Stop(); case CDVD_TRAYREQ: return CDVDRpc_TrayReq((unsigned*)data); case CDVD_DISKREADY: return CDVDRpc_DiskReady((unsigned*)data); case CDVD_FLUSHCACHE: return CDVDRpc_FlushCache(); } return NULL; } void _splitpath (const char *constpath, char *dir, char *fname) { // 255 char max path-length is an ISO9660 restriction // we must change this for Joliet or relaxed iso restriction support static char pathcopy[1024+1]; char* slash; strncpy(pathcopy, constpath, 1024); slash = strrchr (pathcopy, '/'); // if the path doesn't contain a '/' then look for a '\' if (!slash) slash = strrchr (pathcopy, (int)'\\'); // if a slash was found if (slash != NULL) { // null terminate the path slash[0] = 0; // and copy the path into 'dir' strncpy(dir, pathcopy, 1024); dir[255]=0; // copy the filename into 'fname' strncpy(fname, slash+1, 128); fname[128]=0; } else { dir[0] = 0; strncpy(fname, pathcopy, 128); fname[128]=0; } } // Copy a TOC Entry from the CD native format to our tidier format void TocEntryCopy(struct TocEntry* tocEntry, struct dirTocEntry* internalTocEntry) { int i; int filenamelen; tocEntry->fileSize = internalTocEntry->fileSize; tocEntry->fileLBA = internalTocEntry->fileLBA; tocEntry->fileProperties = internalTocEntry->fileProperties; if (CDVolDesc.filesystemType == 2) { // This is a Joliet Filesystem, so use Unicode to ISO string copy filenamelen = internalTocEntry->filenameLength/2; for (i=0; i < filenamelen; i++) tocEntry->filename[i] = internalTocEntry->filename[(i<<1)+1]; tocEntry->filename[filenamelen] = 0; } else { filenamelen = internalTocEntry->filenameLength; // use normal string copy strncpy(tocEntry->filename,internalTocEntry->filename,128); tocEntry->filename[filenamelen] = 0; } if (!(tocEntry->fileProperties & 0x02)) { // strip the ;1 from the filename (if it exists) if (tocEntry->filename[filenamelen - 2] == ';') { tocEntry->filename[filenamelen - 2] = 0; } } } // Check if a TOC Entry matches our extension list int TocEntryCompare(char* filename, const char* extensions) { static char ext_list[129]; char* token; char* ext_point; strncpy(ext_list,extensions,128); ext_list[128]=0; token = strtok( ext_list, " ," ); while( token != NULL ) { // if 'token' matches extension of 'filename' // then return a match ext_point = strrchr(filename,'.'); if (strcasecmp(ext_point, token) == 0) return (TRUE); /* Get next token: */ token = strtok( NULL, " ," ); } // If not match found then return FALSE return (FALSE); } // Used in findfile int tolower(int c); int strcasecmp(const char *s1, const char *s2) { while (*s1 != '\0' && tolower(*s1) == tolower(*s2)) { s1++; s2++; } return tolower(*(unsigned char *) s1) - tolower(*(unsigned char *) s2); } int strncasecmp(const char *s1, const char *s2, int limit) { int i; for (i=0;i<limit;i++) { if (*s1 == '\0') return tolower(*(unsigned char *) s1) - tolower(*(unsigned char *) s2); if (tolower(*s1) != tolower(*s2)) return tolower(*(unsigned char *) s1) - tolower(*(unsigned char *) s2); s1++; s2++; } return 0; } enum PathMatch ComparePath(const char* path) { int length; int i; length=strlen(CachedDirInfo.pathname); for (i=0;i<length;i++) { // check if character matches if (path[i] != CachedDirInfo.pathname[i]) { // if not, then is it just because of different path seperator ? if ((path[i] == '/') || (path[i] == '\\')) { if ((CachedDirInfo.pathname[i] == '/') || (CachedDirInfo.pathname[i]=='\\')) { continue; } } // if the characters don't match for any other reason then report a failure return NOT_MATCH; } } // Reached the end of the Cached pathname // if requested path is same length, then report exact match if (path[length] == 0) return MATCH; // if requested path is longer, and next char is a dir seperator // then report sub-dir match if ((path[length]=='/') || (path[length]=='\\')) return SUBDIR; else return NOT_MATCH; }
24,146
345
<gh_stars>100-1000 #!/usr/bin/env python """This file is part of the django ERP project. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ __author__ = '<NAME> <<EMAIL>>' __copyright__ = 'Copyright (c) 2013-2015, django ERP Team' __version__ = '0.0.5' from django.test import TestCase from ..models import * class JSONValidationCase(TestCase): def test_correct_json_validation(self): """Tests that when a JSON snippet is incorrect, an error must be raised. """ try: validate_json('{"id":1,"name":"foo","interest":["django","django ERP"]}') self.assertTrue(True) except ValidationError: self.assertFalse(True) def test_incorrect_json_validation(self): """Tests that when a JSON snippet is incorrect, an error must be raised. """ try: # The snippet is incorrect due to the double closed square bracket. validate_json('{"id":1,"name":"foo","interest":["django","django ERP"]]}') self.assertFalse(True) except ValidationError: self.assertTrue(True) class UserModelTestCase(TestCase): def test_get_short_name(self): """Tests the username must be returned as short name. """ u1, n = User.objects.get_or_create(username="u1") self.assertEqual(u1.get_short_name(), "u1") def test_get_full_name(self): """Tests the full name must be equal to the short name. """ u1, n = User.objects.get_or_create(username="u1") self.assertEqual(u1.get_full_name(), u1.get_short_name()) def test_send_email(self): """Tests sending an email to the given user. """ from django.core import mail u1, n = User.objects.get_or_create(username="u1", email="<EMAIL>") u1.email_user('Subject here', 'Here is the message.', '<EMAIL>') self.assertEqual(len(mail.outbox), 1) self.assertEqual(mail.outbox[0].subject, 'Subject here') self.assertEqual(mail.outbox[0].from_email, '<EMAIL>') class GroupModelTestCase(TestCase): def test_unicode(self): """Tests getting correct unicode representation. """ g, n = Group.objects.get_or_create(name="users") self.assertEqual("%s" % g, "users") class ObjectPermissionModelTestCase(TestCase): def test_unicode(self): """Tests getting correct unicode representation. """ u1, n = User.objects.get_or_create(username="u1") p, n = ObjectPermission.objects.get_or_create_by_natural_key("view_user", "core", "user", u1.pk) self.assertEqual("%s" % p, "core | user | Can view user | %d" % u1.pk)
1,336
649
<filename>serenity-junit/src/main/java/net/thucydides/junit/ThucydidesJUnitSystemProperties.java package net.thucydides.junit; public enum ThucydidesJUnitSystemProperties { CONCURRENT_THREADS("thucydides.concurrent.threads"); private final String name; ThucydidesJUnitSystemProperties(String name) { this.name = name; } public String getName() { return name; } }
163
1,444
package mage.cards.n; import mage.MageInt; import mage.abilities.Ability; import mage.abilities.common.LeavesBattlefieldAllTriggeredAbility; import mage.abilities.effects.common.GainLifeEffect; import mage.abilities.effects.common.LoseLifeOpponentsEffect; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.constants.SubType; import mage.filter.FilterPermanent; import mage.filter.common.FilterControlledPermanent; import mage.filter.predicate.permanent.TokenPredicate; import java.util.UUID; /** * @author TheElk801 */ public final class NadiersNightblade extends CardImpl { private static final FilterPermanent filter = new FilterControlledPermanent("a token you control"); static { filter.add(TokenPredicate.TRUE); } public NadiersNightblade(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{B}"); this.subtype.add(SubType.ELF); this.subtype.add(SubType.WARRIOR); this.power = new MageInt(1); this.toughness = new MageInt(3); // Whenever a token you control leaves the battlefield, each opponent loses 1 life and you gain 1 life. Ability ability = new LeavesBattlefieldAllTriggeredAbility(new LoseLifeOpponentsEffect(1), filter); ability.addEffect(new GainLifeEffect(1).concatBy("and")); this.addAbility(ability); } private NadiersNightblade(final NadiersNightblade card) { super(card); } @Override public NadiersNightblade copy() { return new NadiersNightblade(this); } }
563
669
# 'reference_object', 'comparison' # 'reference_object', 'destroy' # 'reference_object', fill # 'reference_object', 'OtherAction' # 'reference_object', 'copy' # TODO: check if location can be integrated here ? # TODO: check if filters can be integrated here LOCATION_RADIO = [ {"text": "Not specified", "key": None, "tooltip": "The location information is missing."}, { "text": "The location is represented using an indefinite noun like 'there' or 'over here'", "key": "CONTAINS_COREFERENCE", "tooltip": "e.g. 'there', 'here', 'over there' etc", }, { "text": "Exact numerical coordinates are given", "key": "coordinates_check", "tooltip": "Exact numeric coordinates are specified.", "next": [ { "text": "Click on all words representing the coordinates", "key": "yes.coordinates", "span": True, "tooltip": "e.g. in 'make a box at 4 , 5 , 6' select all: '4 , 5 , 6'", } ], }, { "text": "Where the speaker is looking", "key": "SPEAKER_LOOK", "tooltip": "e.g. 'where I am looking'", }, { "text": "Somewhere relative to where the speaker is looking", "key": "SPEAKER_LOOK_REL", "tooltip": "e.g. 'in front of where I am looking'", "next": [ { "text": "Where (which direction) in relation to where the speaker is looking?", "key": "relative_direction", "radio": [ {"text": "Left", "key": "LEFT"}, {"text": "Right", "key": "RIGHT"}, {"text": "Above", "key": "UP"}, {"text": "Below", "key": "DOWN"}, {"text": "In front", "key": "FRONT"}, {"text": "Behind", "key": "BACK"}, {"text": "Away from", "key": "AWAY"}, {"text": "Nearby or close to", "key": "NEAR"}, {"text": "Around", "key": "AROUND"}, {"text": "Exactly at", "key": "EXACT"}, ], } ], }, { "text": "Where the speaker is standing", "key": "SPEAKER_POS", "tooltip": "e.g. 'by me', 'where I am', 'where I am standing'", }, { "text": "Somewhere relative to where the speaker is standing", "key": "SPEAKER_POS_REL", "tooltip": "e.g. 'in front of where I am', 'behind me'", "next": [ { "text": "Where (which direction) in relation to where the speaker is standing?", "key": "relative_direction", "radio": [ {"text": "Left", "key": "LEFT"}, {"text": "Right", "key": "RIGHT"}, {"text": "Above", "key": "UP"}, {"text": "Below", "key": "DOWN"}, {"text": "In front", "key": "FRONT"}, {"text": "Behind", "key": "BACK"}, {"text": "Away from", "key": "AWAY"}, {"text": "Nearby or close to", "key": "NEAR"}, {"text": "Around", "key": "AROUND"}, {"text": "Exactly at", "key": "EXACT"}, ], } ], }, { "text": "Where the assistant is standing", "key": "AGENT_POS", "tooltip": "e.g. 'by you', 'where you are', 'where you are standing'", }, { "text": "Somewhere relative to where the assistant is standing", "key": "AGENT_POS_REL", "tooltip": "e.g. 'in front of you', 'behind you'", "next": [ { "text": "Where (which direction) in relation to where the assistant is standing?", "key": "relative_direction", "radio": [ {"text": "Left", "key": "LEFT"}, {"text": "Right", "key": "RIGHT"}, {"text": "Above", "key": "UP"}, {"text": "Below", "key": "DOWN"}, {"text": "In front", "key": "FRONT"}, {"text": "Behind", "key": "BACK"}, {"text": "Away from", "key": "AWAY"}, {"text": "Nearby or close to", "key": "NEAR"}, {"text": "Around", "key": "AROUND"}, {"text": "Exactly at", "key": "EXACT"}, ], } ], }, ] LOCATION_REL_OBJECT = [ { "text": "Somewhere relative to (or exactly at) another object(s) / area(s)", "key": "REFERENCE_OBJECT", "next": [ { "text": "Where (which direction) in relation to the other object(s)?", "key": "relative_direction", "radio": [ { "text": "Left or towards the west direction", "key": "LEFT", "next": [ { "text": "Click on all words specifying the object / area to the left of which the location is given", "key": "reference_object.has_name", "tooltip": "e.g. in 'make 5 copies to the left of the cow' select 'cow'", "span": True, }, # { # "text": "Are there indefinite nouns or pronouns specifying the relative object?", # "key": "reference_object.contains_coreference", # "tooltip": "e.g. 'to the right of this', 'near that', 'behind these', 'next to those', 'underneath it' etc", # "add_radio_other": False, # "radio": [ # {"text": "Yes", "key": "yes"}, # {"text": "No", "key": "no"}, # ], # }, ], }, { "text": "Right or towards the east direction", "key": "RIGHT", "next": [ { "text": "Click on all words specifying the object / area to the right of which the location is given", "key": "reference_object.has_name", "tooltip": "e.g. in 'make 5 copies to the left of the cow' select 'cow'", "span": True, }, # { # "text": "Are there indefinite nouns or pronouns specifying the relative object?", # "key": "reference_object.contains_coreference", # "tooltip": "e.g. 'to the right of this', 'near that', 'behind these', 'next to those', 'underneath it' etc", # "add_radio_other": False, # "radio": [ # {"text": "Yes", "key": "yes"}, # {"text": "No", "key": "no"}, # ], # }, ], }, { "text": "Above or towards the north direction", "key": "UP", "next": [ { "text": "Click on all words specifying the object / area above which the location is given", "key": "reference_object.has_name", "tooltip": "e.g. in 'make 5 copies to the left of the cow' select 'cow'", "span": True, }, # { # "text": "Are there indefinite nouns or pronouns specifying the relative object?", # "key": "reference_object.contains_coreference", # "tooltip": "e.g. 'to the right of this', 'near that', 'behind these', 'next to those', 'underneath it' etc", # "add_radio_other": False, # "radio": [ # {"text": "Yes", "key": "yes"}, # {"text": "No", "key": "no"}, # ], # }, ], }, { "text": "Below or towards the south direction", "key": "DOWN", "next": [ { "text": "Click on all words specifying the object / area below which the location is given", "key": "reference_object.has_name", "tooltip": "e.g. in 'make 5 copies to the left of the cow' select 'cow'", "span": True, }, # { # "text": "Are there indefinite nouns or pronouns specifying the relative object?", # "key": "reference_object.contains_coreference", # "tooltip": "e.g. 'to the right of this', 'near that', 'behind these', 'next to those', 'underneath it' etc", # "add_radio_other": False, # "radio": [ # {"text": "Yes", "key": "yes"}, # {"text": "No", "key": "no"}, # ], # }, ], }, { "text": "In front", "key": "FRONT", "next": [ { "text": "Click on all words specifying the object / area in front of which the location is given", "key": "reference_object.has_name", "tooltip": "e.g. in 'make 5 copies to the left of the cow' select 'cow'", "span": True, }, # { # "text": "Are there indefinite nouns or pronouns specifying the relative object?", # "key": "reference_object.contains_coreference", # "tooltip": "e.g. 'to the right of this', 'near that', 'behind these', 'next to those', 'underneath it' etc", # "add_radio_other": False, # "radio": [ # {"text": "Yes", "key": "yes"}, # {"text": "No", "key": "no"}, # ], # }, ], }, { "text": "Behind", "key": "BACK", "next": [ { "text": "Click on all words specifying the object / area at the back of which the location is given", "key": "reference_object.has_name", "tooltip": "e.g. in 'make 5 copies to the left of the cow' select 'cow'", "span": True, }, # { # "text": "Are there indefinite nouns or pronouns specifying the relative object?", # "key": "reference_object.contains_coreference", # "tooltip": "e.g. 'to the right of this', 'near that', 'behind these', 'next to those', 'underneath it' etc", # "add_radio_other": False, # "radio": [ # {"text": "Yes", "key": "yes"}, # {"text": "No", "key": "no"}, # ], # }, ], }, { "text": "Away from", "key": "AWAY", "next": [ { "text": "Click on all words specifying the object / area away from which the location is given", "key": "reference_object.has_name", "tooltip": "e.g. in 'make 5 copies to the left of the cow' select 'cow'", "span": True, }, # { # "text": "Are there indefinite nouns or pronouns specifying the relative object?", # "key": "reference_object.contains_coreference", # "tooltip": "e.g. 'to the right of this', 'near that', 'behind these', 'next to those', 'underneath it' etc", # "add_radio_other": False, # "radio": [ # {"text": "Yes", "key": "yes"}, # {"text": "No", "key": "no"}, # ], # }, ], }, { "text": "Inside", "key": "INSIDE", "next": [ { "text": "Click on all words specifying the object / area inside which the location is given", "key": "reference_object.has_name", "tooltip": "e.g. in 'make 5 copies to the left of the cow' select 'cow'", "span": True, }, # { # "text": "Are there indefinite nouns or pronouns specifying the relative object?", # "key": "reference_object.contains_coreference", # "tooltip": "e.g. 'to the right of this', 'near that', 'behind these', 'next to those', 'underneath it' etc", # "add_radio_other": False, # "radio": [ # {"text": "Yes", "key": "yes"}, # {"text": "No", "key": "no"}, # ], # }, ], }, { "text": "Outside", "key": "OUTSIDE", "next": [ { "text": "Click on all words specifying the object / area outside which the location is given", "key": "reference_object.has_name", "tooltip": "e.g. in 'make 5 copies to the left of the cow' select 'cow'", "span": True, }, # { # "text": "Are there indefinite nouns or pronouns specifying the relative object?", # "key": "reference_object.contains_coreference", # "tooltip": "e.g. 'to the right of this', 'near that', 'behind these', 'next to those', 'underneath it' etc", # "add_radio_other": False, # "radio": [ # {"text": "Yes", "key": "yes"}, # {"text": "No", "key": "no"}, # ], # }, ], }, { "text": "Between two object(s) / area(s)", "key": "BETWEEN", "next": [ { "text": "Click on all words specifying the first object / area relative to which the location is given", "key": "reference_object_1.has_name", "tooltip": "e.g. in 'make 5 copies between the car and the house' select 'car'", "span": True, }, # { # "text": "Are there indefinite nouns or pronouns specifying the first relative object?", # "key": "reference_object_1.contains_coreference", # "tooltip": "e.g. 'to the right of this', 'near that', 'behind these', 'next to those', 'underneath it' etc", # "add_radio_other": False, # "radio": [ # {"text": "Yes", "key": "yes"}, # {"text": "No", "key": "no"}, # ], # }, { "text": "Click on all words specifying the second object / area relative to which the location is given", "key": "reference_object_2.has_name", "tooltip": "e.g. in 'make 5 copies between the car and the house' select 'house'", "span": True, }, # { # "text": "Are there indefinite nouns or pronouns specifying the second relative object?", # "key": "reference_object_2.contains_coreference", # "tooltip": "e.g. 'to the right of this', 'near that', 'behind these', 'next to those', 'underneath it' etc", # "add_radio_other": False, # "radio": [ # {"text": "Yes", "key": "yes"}, # {"text": "No", "key": "no"}, # ], # }, ], }, { "text": "Nearby or close to", "key": "NEAR", "next": [ { "text": "Click on all words specifying the object / area close to which the location is given", "key": "reference_object.has_name", "tooltip": "e.g. in 'make 5 copies to the left of the cow' select 'cow'", "span": True, }, # { # "text": "Are there indefinite nouns or pronouns specifying the relative object?", # "key": "reference_object.contains_coreference", # "tooltip": "e.g. 'to the right of this', 'near that', 'behind these', 'next to those', 'underneath it' etc", # "add_radio_other": False, # "radio": [ # {"text": "Yes", "key": "yes"}, # {"text": "No", "key": "no"}, # ], # }, ], }, { "text": "Around", "key": "AROUND", "next": [ { "text": "Click on all words specifying the object / area around which the location is given", "key": "reference_object.has_name", "tooltip": "e.g. in 'make 5 copies to the left of the cow' select 'cow'", "span": True, }, # { # "text": "Are there indefinite nouns or pronouns specifying the relative object?", # "key": "reference_object.contains_coreference", # "tooltip": "e.g. 'to the right of this', 'near that', 'behind these', 'next to those', 'underneath it' etc", # "add_radio_other": False, # "radio": [ # {"text": "Yes", "key": "yes"}, # {"text": "No", "key": "no"}, # ], # }, ], }, { "text": "Exactly at", "key": "EXACT", "next": [ { "text": "Click on all words specifying the object / area exactly where the location is given", "key": "reference_object.has_name", "tooltip": "e.g. in 'make 5 copies to the left of the cow' select 'cow'", "span": True, }, # { # "text": "Are there indefinite nouns or pronouns specifying the relative object?", # "key": "reference_object.contains_coreference", # "tooltip": "e.g. 'to the right of this', 'near that', 'behind these', 'next to those', 'underneath it' etc", # "add_radio_other": False, # "radio": [ # {"text": "Yes", "key": "yes"}, # {"text": "No", "key": "no"}, # ], # }, ], }, ], } ], } ] RELATIVE_DIRECTION_LIST = [ { "text": "Select the value of the relative direction", "key": "relative_direction", "radio": [ {"text": "Left or towards the west direction", "key": "LEFT"}, {"text": "Right or towards the east direction", "key": "RIGHT"}, {"text": "Above or towards the north direction", "key": "UP"}, {"text": "Below or towards the south direction", "key": "DOWN"}, {"text": "In front", "key": "FRONT"}, {"text": "Behind", "key": "BACK"}, {"text": "Away from", "key": "AWAY"}, {"text": "Inside", "key": "INSIDE"}, {"text": "Outside", "key": "OUTSIDE"}, {"text": "Between two object(s) / area(s)", "key": "BETWEEN"}, {"text": "Nearby or close to", "key": "NEAR"}, {"text": "Around", "key": "AROUND"}, {"text": "Exactly at", "key": "EXACT"}, ], } ] ORDINAL_OPTIONS = { "text": "What is the position of the property or measure in the ranked list", "key": "ordinal", "add_radio_other": False, "radio": [ {"text": "First / top of the list", "key": "FIRST"}, {"text": "Second in the ordered list", "key": "SECOND"}, {"text": "Third in the ordered list", "key": "THIRD"}, { "text": "Some other rank in the list", "key": "ordinal_other", "tooltip": "e.g. 'destroy the fifth object to your right'", "next": [ { "text": "Select words in the text that represent the rank number", "tooltip": "Select 'fifth' in 'destroy the fifth object to your right'", "key": "ordinal_span", "span": True, } ], }, ], } NUMBER_OPTIONS = { "text": "Select words for the number being compared against", "key": "number", "span": True, } QUANTITY_OPTIONS = { "text": "Select the property or measure of what's being compared.", "key": "quantity", "add_radio_other": False, "radio": [ {"text": "height", "key": "HEIGHT"}, {"text": "width", "key": "WIDTH"}, {"text": "depth", "key": "DEPTH"}, {"text": "The time when this was created", "key": "BORN_TIME"}, {"text": "The time when this was last modified or changed", "key": "MODIFY_TIME"}, {"text": "The time when this was last visited.", "key": "VISIT_TIME"}, { "text": "Relative direction or positioning from agent", "key": "RELATIVE_DIRECTION", "next": RELATIVE_DIRECTION_LIST, }, { "text": "Number of blocks", "key": "NUM_BLOCKS", "next": [ { "text": "Select all properties of the block type.", "key": "block_filters", "add_radio_other": False, "checkbox": True, "radio": [ { "text": "Colour", "key": "colour_check", "tooltip": "Select this if the colour of the object is specified", "next": [ { "text": "What is the colour?", "key": "has_colour", "span": True, "tooltip": "e.g. in 'destroy the cube with most red blocks' select 'red'", } ], }, { "text": "The block type material", "key": "block_type_check", "tooltip": "Select this if the material of the block is mentioned", "next": [ { "text": "What is the block material? Select all words.", "key": "has_block_type", "span": True, "tooltip": "e.g. in 'go to the house with most stone blocks' select 'stone'", } ], }, ], } ], }, { "text": "Distance to / from a given location", "key": "distance_to", "tooltip": "e.g. 'go to the blue circle farthest from me'", "next": [ { "text": "Tell us about the type of location from which distance is being computed", "key": "location", "tooltip": "e.g. in 'destroy the house behind the tree' select 'behind the tree'", "radio": LOCATION_RADIO + LOCATION_REL_OBJECT, } ], }, ], } def get_questions(child, ref_obj_child): QUESTION = None # only handle comparison in this tool if ref_obj_child != "comparison": return QUESTION QUESTION = [ QUANTITY_OPTIONS, { "text": "Select the kind of comparison of the value of a given property", "key": "arg_check_type", "add_radio_other": False, "radio": [ { "text": "The value is ranked.", "key": "ranked", "tooltip": "e.g. 'go to the third house from here', 'destroy the cube closest to you'", "next": [ { "text": "Select the kind of measure", "key": "measure_check", "add_radio_other": False, "radio": [ { "text": "The value is minimum / smallest / closest measure of some kind.", "key": "argmin", "tooltip": "minimum first e.g. in 'destroy the red thing closest to me', 'fill the third hole to my right'", "next": [ORDINAL_OPTIONS], }, { "text": "The value is maximum / largest / farthest measure of some kind.", "key": "argmax", "tooltip": "maximum first e.g in 'go to the house farthest from me', 'copy the second largest house'", "next": [ORDINAL_OPTIONS], }, ], } ], }, { "text": "The value is being compared to a fixed number.", "key": "fixed", "tooltip": "e.g. 'fill the hole that is more than 10 block deep', 'destroy the thing you made 5 minutes back'", "next": [ { "text": "Select the kind of comparison", "key": "measure_check", "add_radio_other": False, "radio": [ { "text": "The value is greater than some number", "key": "greater_than", "tooltip": "e.g. 'fill the hole that is more than 2 blocks wide'", "next": [NUMBER_OPTIONS], }, { "text": "The value is smaller than some number", "key": "less_than", "tooltip": "e.g. 'destroy the house that has less than 3 windows'", "next": [NUMBER_OPTIONS], }, ], } ], }, ], }, ] return QUESTION
19,158
455
<reponame>mattt21/zcoin /* Added for Tor. */ #ifndef CRYPTO_INT64_H #define CRYPTO_INT64_H #include "lib/cc/torint.h" #define crypto_int64 int64_t #define crypto_uint64 uint64_t /* Stop signed left shifts overflowing by using unsigned types for bitwise operations */ #ifndef OVERFLOW_SAFE_SIGNED_LSHIFT #define OVERFLOW_SAFE_SIGNED_LSHIFT(s, lshift, utype, stype) \ ((stype)((utype)(s) << (utype)(lshift))) #endif #define SHL64(s, lshift) \ OVERFLOW_SAFE_SIGNED_LSHIFT(s, lshift, crypto_uint64, crypto_int64) #endif /* CRYPTO_INT64_H */
230
386
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2013, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // // * Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // // * Neither the name of Image Engine Design nor the names of any // other contributors to this software may be used to endorse or // promote products derived from this software without specific prior // written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS // IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // ////////////////////////////////////////////////////////////////////////// #ifndef IECOREHOUDINI_PARAMETERISEDHOLDERINTERFACE_H #define IECOREHOUDINI_PARAMETERISEDHOLDERINTERFACE_H #include "IECoreHoudini/Export.h" #include "IECore/Parameter.h" #include "IECore/Parameterised.h" namespace IECoreHoudini { /// A base class from which nodes to hold IECore::ParameterisedInterface objects /// should multiply inherit (for example, ParameterisedHolder). class IECOREHOUDINI_API ParameterisedHolderInterface { public : ParameterisedHolderInterface(); virtual ~ParameterisedHolderInterface(); /// Sets the Parameterised object this node is holding. An IECore.ClassLoader object will be /// used with searchpaths obtained from the specified environment variable to actually load /// the Parameterised object. This mechanism is used rather than passing a ParameterisedPtr /// as it allows the Parameterised object to be loaded again when a houdini scene is opened. virtual void setParameterised( const std::string &className, int classVersion, const std::string &searchPathEnvVar ) = 0; /// Sets the Parameterised object this node is holding, directly. virtual void setParameterised( IECore::RunTimeTypedPtr p ) = 0; /// Returns whether or not this node is holding a valid parameterised object virtual bool hasParameterised() = 0; /// Returns the parameterised object held by this node virtual IECore::RunTimeTypedPtr getParameterised() = 0; /// Convenience method to return dynamic_cast<IECore::ParameterisedInterface *>( getParameterised().get() ) IECore::ParameterisedInterface *getParameterisedInterface(); /// Sets the attributes of the node to reflect the current values of the parameters in the held /// Parameterised object. Performs validation of the parameter values and will return false if //// any one is not valid. virtual bool setNodeValues() = 0; /// Sets the values of the parameters of the held Parameterised object to reflect the values // of the attributes of the node. virtual void setParameterisedValues( double time ) = 0; }; } #endif // IECOREHOUDINI_PARAMETERISEDHOLDERINTERFACE_H
1,100
9,491
{ "pattern_type": "descendant_pattern", "pattern": { "pattern_type": "node_pattern", "kind": "if_statement", "children": { "if_else_clause": { "pattern_type": "missing_node_pattern" } } } }
107
349
import numpy as np import scipy.misc def save(img,path): print(path) scipy.misc.toimage(np.rot90(img), cmin=0.0, cmax=...).save(path)
67
347
<filename>backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/vdscommands/gluster/GlusterVolumeBricksActionVDSParameters.java package org.ovirt.engine.core.common.vdscommands.gluster; import java.util.List; import org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity; import org.ovirt.engine.core.compat.Guid; import org.ovirt.engine.core.compat.Version; public class GlusterVolumeBricksActionVDSParameters extends GlusterVolumeBricksVDSParameters { private int replicaCount; private int stripeCount; private Version clusterVersion; private boolean force; public GlusterVolumeBricksActionVDSParameters(Guid serverId, String volumeName, List<GlusterBrickEntity> bricks, int replicaCount, int stripeCount, Version clusterVersion, boolean force) { super(serverId, volumeName, bricks); this.replicaCount = replicaCount; this.stripeCount = stripeCount; this.clusterVersion = clusterVersion; this.force = force; } public GlusterVolumeBricksActionVDSParameters() { } public int getReplicaCount() { return replicaCount; } public int getStripeCount() { return stripeCount; } public Version getClusterVersion() { return clusterVersion; } public boolean isForce() { return force; } }
549
497
#define N 123 struct test { #define LENGTH N int field; #define SIZE N int ary[SIZE]; }; // bug #73 enum TestEnum { VALUE_1 = 1, #define TEST_ENUM_VALUE_1 VALUE_1 };
76
3,102
// RUN: %clang -O1 -fexperimental-new-pass-manager -fno-unroll-loops -S -o - %s -emit-llvm | FileCheck %s // RUN: %clang -O1 -fno-experimental-new-pass-manager -fno-unroll-loops -S -o - %s -emit-llvm | FileCheck %s extern int a[16]; int b = 0; int foo(void) { #pragma unroll for (int i = 0; i < 16; ++i) a[i] = b += 2; return b; } // CHECK-NOT: br i1
170
11,356
// Copyright (C) 2009-2012 <NAME> // Distributed under the Boost Software License, Version 1.0 // (see accompanying file LICENSE_1_0.txt or a copy at // http://www.boost.org/LICENSE_1_0.txt) // Home at http://www.boost.org/libs/local_function #include <boost/local_function.hpp> #include <boost/utility/identity_type.hpp> #include <boost/typeof/std/string.hpp> // Type-of registrations #include <boost/typeof/std/map.hpp> // needed for `NAME` macro. #include <boost/config.hpp> #include <map> #include <string> std::string cat(const std::string& x, const std::string& y) { return x + y; } template<typename V, typename K> struct key_sizeof { static int const value; }; template<typename V, typename K> int const key_sizeof<V, K>::value = sizeof(K); typedef int sign_t; int main(void) { void BOOST_LOCAL_FUNCTION( (BOOST_IDENTITY_TYPE((const std::map<std::string, size_t>&)) m) (BOOST_IDENTITY_TYPE((::sign_t)) sign) (const size_t& factor) (default (key_sizeof<std::string, size_t>::value)) (const std::string& separator)(default cat(":", " ")) ) { // Do something... } BOOST_LOCAL_FUNCTION_NAME(f) std::map<std::string, size_t> m; ::sign_t sign = -1; f(m, sign); return 0; }
536
3,384
<reponame>Reflejo/XVim /* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>. */ #pragma GCC system_header #import "DVTKit.h" @class IDEActivityLogSection; @class IDETypeIdentifier; @class IDEIndexDatabase; @class IDEActivityLogSectionRecorder; @class IDEBreakpoint; @class IDEScheme; @class IDESchemeBuildableReference; @protocol IDETestableProvider; @class IDEBreakpointBucket; @class IDEConcreteClientTracker; @class IDEArchivedApplication; @class IDEBuildOperationGroup; @class IDEContainer; @class IDEWorkspace; @class IDEBuildSchemeAction; @class IDEBuilder; @class IDEIssueManager; @class IDEIssueProviederSession; @class IDEBuildOperation; @class IDELogStore; @class IDEExecutionEnvironment; @class IDEExecutionOperationTracker; @class IDEExecutionEnvironment; @class IDEBuildOperationDescription; @class IDEIsssueProviderSession; @class IDEBuildParameters; @class IDEBuildOperationStatus; @class IDEBuildOperationQueueSet; @class IDEOverridingBuildProperties; @class IDEWorkspaceArenaSnapshot; @class IDEIssueProviderSession; @class IDERunDestination; @class IDELaunchSession; @class IDEGroup; @protocol IDEConsoleAdaptorDelegateProtocol; @class IDEDependencyGraph; @class IDEWorkspaceArena; @class IDEExecutionTracker; @protocol IDEPreBuildSavingDelegate; @class IDERunOperationWorker; @class IDEInMemoryLogStore_Impl; @class IDEIndexQPManager; @class IDEIndexSymbolOccurrence; @class IDEIndexNewMainFile; @class IDEIndexNewFile; @class IDEIndexingEngine; @class IDEIndexingJob; @class IDEIndexCollection; @class IDEIndexDBTempTable; @class IDEIndexDBConnection; @class IDEIndexDBTransaction; @class IDEIndexImporter; @class IDEIndexDatabaseQueryProvider; @class IDEIndexUniqueStringMap; @class IDELocationScenarioReference; @protocol IDEDebugSession; @class IDELocationSimulator; @protocol IDETraceInferiorSession; @class IDELocationScenario; @class IDESimulateLocationService; @class IDEOCUnitTestRunner; @class IDEOCUnitTestOutputParser; @class IDETestableReference; @class IDEOnDiskLogStore_Impl; @class IDETestSchemeAction; @class IDESourceControlTree; @class IDESourceControlRequest; @class IDESourceControlTreeGroup; @protocol IDEAnalysisToolService; @class IDESourceControlProtocol; @class IDETestManager; @class IDEWorkspaceUserSettings; @class IDEWorkspaceSnapshotManager; @protocol IDESourceControlProtocol; @class IDEWorkspaceSharedSettings; @class IDEWorkspaceArenaInfo; @protocol IDESnapshotConfirmationDelegate; #pragma mark Named Structures #pragma mark Typedef'd Structures /* typedef struct { unsigned long long _field1; id *_field2; unsigned long long *_field3; unsigned long long _field4[5]; } CDStruct_70511ce9; */ typedef struct { int _field1; int _field2; void *_field3[3]; } CDStruct_a94d320b; #pragma mark - /* * File: /Developer/Applications/Xcode.app/Contents/Frameworks/IDEFoundation.framework/Versions/A/IDEFoundation * UUID: 1A2C2BAD-91CE-31A1-A739-37F928BBF1B9 * Arch: Intel x86-64 (x86_64) * Current version: 1192.0.0, Compatibility version: 1.0.0 * Minimum Mac OS X version: 10.7.0 * * Objective-C Garbage Collection: Required * Run path: @loader_path/../../../../Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib * = /Developer/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib */ @protocol IDEIntegrityLogDataSource @property(readonly) IDEActivityLogSection *integrityLog; - (void)analyzeModelIntegrity; @end /* @protocol DVTCancellableToken <NSObject> @property(readonly, getter=isCancelled) BOOL cancelled; - (void)cancel; @end @protocol DVTCustomDataStoring <NSObject> @property(readonly) NSString *displayName; - (BOOL)supportsCustomDataForOwnership:(id)arg1; - (void)moveCustomDataWithSpecifier:(id)arg1 toSpecifier:(id)arg2 completionQueue:(id)arg3 completionBlock:(id)arg4; - (void)removeCustomDataWithSpecifier:(id)arg1 completionQueue:(id)arg2 completionBlock:(id)arg3; - (void)writeCustomData:(id)arg1 withSpecifier:(id)arg2 forceOverwrite:(BOOL)arg3 completionQueue:(id)arg4 completionBlock:(id)arg5; - (id)readCustomDataWithSpecifier:(id)arg1 error:(id *)arg2; - (id)customDataOwnershipsForGrouping:(id)arg1; - (id)customDataSpecifiersForGrouping:(id)arg1 ownership:(id)arg2; @end */ @protocol DVTDirectoryBasedCustomDataStoreDelegate <NSObject> @optional - (void)customDataStore:(id)arg1 removeItemAtFilePath:(id)arg2 completionQueue:(id)arg3 completionBlock:(id)arg4; - (void)customDataStore:(id)arg1 moveItemAtFilePath:(id)arg2 toFilePath:(id)arg3 completionQueue:(id)arg4 completionBlock:(id)arg5; - (void)customDataStore:(id)arg1 writeData:(id)arg2 toFilePath:(id)arg3 completionQueue:(id)arg4 completionBlock:(id)arg5; - (void)customDataStore:(id)arg1 makeFilePathsWritable:(id)arg2 completionQueue:(id)arg3 completionBlock:(id)arg4; @end /* @protocol DVTInvalidation <NSObject> @property(readonly) DVTStackBacktrace *invalidationBacktrace; @property(readonly, nonatomic, getter=isValid) BOOL valid; - (void)invalidate; @end */ @protocol DVTObservingToken <DVTCancellableToken> @end @protocol DVTPerformanceTestParser - (BOOL)performanceTestOutput:(id *)arg1 forInputString:(id)arg2; @end @protocol DVTReferenceResolverClient - (void)resolverStrategiesDidChange:(id)arg1; @end @protocol DVTSimpleSerialization - (void)dvt_writeToSerializer:(id)arg1; - (id)dvt_initFromDeserializer:(id)arg1; @end @protocol DVTXMLUnarchiverDelegate <NSObject> @optional - (void)XMLUnarchiver:(id)arg1 didReadToPosition:(long long)arg2 ofTotal:(long long)arg3; @end @protocol DVTXMLUnarchiving <NSObject> - (id)initFromXMLUnarchiver:(id)arg1 archiveVersion:(float)arg2; @end @protocol IDEBlueprint <NSObject, IDEIntegrityLogDataSource> @property(readonly) NSString *blueprintIdentifier; @property(readonly) NSString *name; - (void)addFileReference:(id)arg1 toBuildablesContainingFileReference:(id)arg2; - (BOOL)containsFilePath:(id)arg1; - (BOOL)containsFileReference:(id)arg1; - (id)buildableProducts; - (id)buildables; - (id)primaryBuildable; - (id)buildableForIdentifier:(id)arg1; - (id)localizedDescription; - (id)customDataStore; - (id)blueprintProvider; @optional - (id)valueForOverridingBuildSettingKey:(id)arg1 sourceCodeBuildFileReferences:(id)arg2; - (void)setValue:(id)arg1 forOverridingBuildSettingKey:(id)arg2 sourceCodeBuildFileReference:(id)arg3; - (id)valueForBuildSettingKey:(id)arg1 sourceCodeBuildFileReferences:(id)arg2; - (void)setValue:(id)arg1 forBuildSettingKey:(id)arg2 sourceCodeBuildFileReference:(id)arg3; - (id)sourceCodeBuildFileReferences; - (void)convertToUseARC; - (BOOL)canConvertToUseARC; - (void)convertToBuild64bitOnly; - (void)convertToUseClang; - (id)deviceSDKFor:(id)arg1 SDKs:(id)arg2; - (id)simulatorSDKFor:(id)arg1 SDKs:(id)arg2; - (id)specifiedBaseSDKForBuildConfigurationName:(id)arg1; - (id)baseSDKForBuildConfigurationName:(id)arg1; - (id)supportedPlatformsForConfiguration:(id)arg1 workspaceArenaSnapshot:(id)arg2; - (id)compilerSpecificationIdentifier; - (id)availableArchitecturesForConfiguration:(id)arg1 workspaceArenaSnapshot:(id)arg2; - (id)defaultConfigurationName; - (id)availableConfigurationNames; @end @protocol IDEBlueprintProvider <NSObject> - (id)testableProdiver; - (id)blueprintForName:(id)arg1; - (id)blueprintForIdentifier:(id)arg1; - (id)classPrefix; - (id)organizationName; - (id)name; - (id)blueprints; @end @protocol IDEBuildable <NSObject> @property(readonly) NSString *legacyIdentifier; @property(readonly) NSSet *namesOfLinkedBinaries; @property(readonly) BOOL hasRecursiveDependencyCycle; @property(readonly) NSString *toolTip; @property(readonly) NSString *displayName; @property(readonly) id <IDEBlueprint> blueprint; @property(readonly) NSString *buildableIdentifier; - (id)createBuilderForBuildCommand:(int)arg1 withBuildTaskQueueSet:(id)arg2 parameters:(id)arg3 buildOnlyTheseFiles:(id)arg4 restorePersistedBuildResults:(BOOL)arg5; - (id)implicitDependenciesForBuildParameters:(id)arg1 executionEnvironment:(id)arg2; - (id)directDependencies; - (id)uncachedOrderedRecursiveDependenciesIncludingSelf:(BOOL)arg1 visitedBuildables:(id)arg2; - (id)orderedRecursiveDependenciesIncludingSelf:(BOOL)arg1; - (id)absolutePathByEvaluatingPropertyString:(id)arg1 withBuildParameters:(id)arg2; - (id)stringByEvaluatingPropertyString:(id)arg1 withBuildParameters:(id)arg2; - (id)valueForBuildSetting:(id)arg1 withBuildParameters:(id)arg2; - (id)allPropertyNamesWithBuildParameters:(id)arg1; @end @protocol IDEBuildableProduct <IDEBuildable> @property(readonly) NSDictionary *copiedFilePathsMap; @property(readonly) BOOL productIsExecutable; @property(readonly) NSDictionary *productSettings; @property(readonly) NSString *infoPlistIconPath; @property(readonly) DVTFileDataType *fileDataType; @property(readonly) DVTFilePath *filePath; - (id)filePathForBuildParameters:(id)arg1; - (id)productTypeIdentifier; @end @protocol IDEClientTracking <NSObject> - (void)cancelTrackedClients; - (id)clientsNotSupportingCancellation; - (id)clientsRequiringCancellationPrompt; - (id)registerClientWithName:(id)arg1; - (id)registerClientWithName:(id)arg1 promptForCancellation:(BOOL)arg2 cancellationBlock:(id)arg3; @end @protocol IDEClientTrackingToken <NSObject> @property(readonly) NSString *clientName; - (void)unregisterClient; @end @protocol IDEContainerCore <NSObject, DVTInvalidation> + (id)containerDataFilePathsForFilePath:(id)arg1; + (BOOL)supportsFilePersistence; + (id)containerFileType; - (int)currentActivity; - (id)containerExtension; - (id)filePath; - (id)rootGroup; - (id)invalidationBacktrace; - (BOOL)isValid; - (void)invalidate; - (void)releaseContainerCore; - (void)retainContainerCore; - (id)initWithFilePath:(id)arg1 extension:(id)arg2 error:(id *)arg3; @end @protocol IDEContainerDelegate <NSObject> @optional - (void)_container:(id)arg1 didChangeFromFilePath:(id)arg2 toFilePath:(id)arg3; @end @protocol IDEContainerErrorPresenter - (BOOL)presentError:(id)arg1; - (int)handleSaveError:(id)arg1 forContainer:(id)arg2 withAction:(int)arg3; @end @protocol IDEContainerItemCore; @protocol IDEGroupCore <IDEContainerItemCore> @property(copy) NSArray *subitems; @property(copy) NSString *name; @property(retain) id <IDEContainerCore> parentContainer; @end @protocol IDEContainerItemCore <NSObject> @property(readonly) id <IDEContainerCore> parentContainer; @property(copy) NSString<DVTMacroExpansion> *path; @property(retain) id <IDEGroupCore> parentGroup; @end @protocol IDEContainerReloadingDelegate - (int)responseToExternalChangesToBackingFileForContainer:(id)arg1 fileWasRemoved:(BOOL)arg2; @end @protocol IDEContainerUnlockingDelegate - (void)container:(id)arg1 attemptToUnlockItems:(id)arg2 workspace:(id)arg3 completionQueue:(id)arg4 completionBlock:(id)arg5; @end @protocol IDEDeferredInitialization + (BOOL)ide_deferredInitializeWithOptions:(int)arg1 error:(id *)arg2; @end @protocol IDEDiagnosticItemDelegate <NSObject> @optional - (void)diagnosticItemWasFixed:(id)arg1; @end @protocol IDEExecutingOperationTrackable <NSObject> - (void)registerTracker:(id)arg1; @end @protocol IDEFileReferenceCore <IDEContainerItemCore> @property(copy) DVTFileDataType *assignedDataType; @end @protocol IDEFolderCore <IDEContainerCore> @end @protocol IDEFrameworkCore <IDEContainerCore> @end @protocol IDEIndexDatabaseDelegate @optional - (void)database:(id)arg1 didForgetFiles:(id)arg2; - (id)databaseProvidersAndVersions:(id)arg1; - (void)databaseDidReportError:(id)arg1; - (void)database:(id)arg1 didEndImportSession:(id)arg2; - (void)databaseDidSave:(id)arg1; - (void)databaseDidIndexHotFile:(id)arg1; - (void)databaseDidLoad:(id)arg1; - (void)databaseDidOpen:(id)arg1; @end @protocol IDEIndexQueryProvider <NSObject> + (BOOL)supportsSymbolColoring; + (id)locationForURL:(id)arg1 locator:(id)arg2; @property(readonly, nonatomic) NSDictionary *settings; @property(readonly, nonatomic) IDEIndexDatabase *database; - (BOOL)isProjectSymbol:(id)arg1; - (id)locationForSymbolOccurrence:(id)arg1; - (id)correspondingSymbolForOccurrence:(id)arg1; - (id)relatedClassForCategory:(id)arg1; - (id)propertiesForCategory:(id)arg1; - (id)instanceVariablesForCategory:(id)arg1; - (id)instanceMethodsForCategory:(id)arg1; - (id)classMethodsForCategory:(id)arg1; - (id)allImplementingClassesForProtocol:(id)arg1; - (id)implementingClassesForProtocol:(id)arg1; - (id)subProtocolsForProtocol:(id)arg1; - (id)allSuperProtocolsForProtocol:(id)arg1; - (id)superProtocolsForProtocol:(id)arg1; - (id)propertiesForProtocol:(id)arg1; - (id)instanceMethodsForProtocol:(id)arg1; - (id)classMethodsForProtocol:(id)arg1; - (id)allInterfacesForClass:(id)arg1; - (id)interfacesForClass:(id)arg1; - (id)allProtocolsForClass:(id)arg1; - (id)protocolsForClass:(id)arg1; - (id)allOccurrencesOfMembers:(id)arg1 forClass:(id)arg2; - (id)allSubClassesForClass:(id)arg1; - (id)subClassesForClass:(id)arg1; - (id)allSuperClassesForClass:(id)arg1; - (id)superClassesForClass:(id)arg1; - (id)categoriesForClass:(id)arg1; - (id)ibOutletCollectionPropertiesForClass:(id)arg1; - (id)ibOutletCollectionVariablesForClass:(id)arg1; - (id)ibOutletCollectionsForClass:(id)arg1; - (id)ibOutletPropertiesForClass:(id)arg1; - (id)ibOutletVariablesForClass:(id)arg1; - (id)ibOutletsForClass:(id)arg1; - (id)ibActionMethodsForClass:(id)arg1; - (id)propertiesForClass:(id)arg1; - (id)instanceVariablesForClass:(id)arg1; - (id)classVariablesForClass:(id)arg1; - (id)instanceMethodsForClass:(id)arg1; - (id)classMethodsForClass:(id)arg1; - (id)childrenForContainer:(id)arg1; - (id)referencingFilesForSymbol:(id)arg1; - (id)containerSymbolForSymbol:(id)arg1; - (id)containerSymbolsForSymbol:(id)arg1; - (id)definitionsForSymbol:(id)arg1; - (id)declarationsForSymbol:(id)arg1; - (id)occurrencesForSymbol:(id)arg1; - (id)modelOccurrenceForSymbol:(id)arg1; - (id)filesWithSymbolOccurrencesMatchingName:(id)arg1 kind:(id)arg2 forIndex:(id)arg3; - (id)allClassesWithMembers:(id)arg1 forIndex:(id)arg2; - (id)classesWithMembers:(id)arg1 forIndex:(id)arg2; - (id)membersMatchingName:(id)arg1 kinds:(id)arg2 forInterfaces:(id)arg3 forIndex:(id)arg4; - (id)membersMatchingKinds:(id)arg1 forInterfaces:(id)arg2 forIndex:(id)arg3; - (id)symbolsForResolutions:(id)arg1 forIndex:(id)arg2; - (unsigned long long)countOfSymbolsMatchingKind:(id)arg1 workspaceOnly:(BOOL)arg2 forIndex:(id)arg3; - (id)allSymbolsMatchingKind:(id)arg1 workspaceOnly:(BOOL)arg2 cancelWhen:(id)arg3 forIndex:(void)arg4; - (id)allSymbolsMatchingNames:(id)arg1 kind:(id)arg2 forIndex:(id)arg3; - (id)allSymbolsMatchingName:(id)arg1 kind:(id)arg2 forIndex:(id)arg3; - (id)allProtocolsMatchingName:(id)arg1 forIndex:(id)arg2; - (id)allClassesMatchingName:(id)arg1 forIndex:(id)arg2; - (id)symbolsContaining:(id)arg1 anchorStart:(BOOL)arg2 anchorEnd:(BOOL)arg3 subsequence:(BOOL)arg4 ignoreCase:(BOOL)arg5 cancelWhen:(id)arg6 forIndex:(void)arg7; - (id)topLevelProtocolsWorkspaceOnly:(BOOL)arg1 cancelWhen:(id)arg2 forIndex:(void)arg3; - (id)topLevelClassesWorkspaceOnly:(BOOL)arg1 cancelWhen:(id)arg2 forIndex:(void)arg3; - (id)filesContaining:(id)arg1 anchorStart:(BOOL)arg2 anchorEnd:(BOOL)arg3 subsequence:(BOOL)arg4 ignoreCase:(BOOL)arg5 forIndex:(id)arg6; - (id)filesIncludedByFile:(id)arg1 forIndex:(id)arg2; - (id)filesIncludingFile:(id)arg1 forIndex:(id)arg2; - (id)importedFileAtDocumentLocation:(id)arg1 withCurrentFileContentDictionary:(id)arg2 forIndex:(id)arg3; - (id)collectionElementTypeSymbolForSymbol:(id)arg1 withCurrentFileContentDictionary:(id)arg2 forIndex:(id)arg3; - (id)typeSymbolForSymbol:(id)arg1 withCurrentFileContentDictionary:(id)arg2 forIndex:(id)arg3; - (id)referencesToSymbolMatchingName:(id)arg1 inContext:(id)arg2 withCurrentFileContentDictionary:(id)arg3 forIndex:(id)arg4; - (id)referencesToSymbol:(id)arg1 inContext:(id)arg2 withCurrentFileContentDictionary:(id)arg3 forIndex:(id)arg4; - (id)symbolsUsedInContext:(id)arg1 withCurrentFileContentDictionary:(id)arg2 forIndex:(id)arg3; - (id)symbolsOccurrencesInContext:(id)arg1 withCurrentFileContentDictionary:(id)arg2 forIndex:(id)arg3; - (id)codeDiagnosticsAtLocation:(id)arg1 withCurrentFileContentDictionary:(id)arg2 forIndex:(id)arg3; - (id)codeCompletionsAtLocation:(id)arg1 withCurrentFileContentDictionary:(id)arg2 sortedUsingBlock:(id)arg3 forIndex:(void)arg4; - (id)symbolsMatchingName:(id)arg1 inContext:(id)arg2 withCurrentFileContentDictionary:(id)arg3 forIndex:(id)arg4; - (id)symbolsMatchingName:(id)arg1 inContext:(id)arg2 forIndex:(id)arg3; - (id)topLevelSymbolsInFile:(id)arg1 forIndex:(id)arg2; - (void)purgeCaches; - (id)initWithSettings:(id)arg1 database:(id)arg2; @end @protocol IDEIndexable <NSObject> - (id)buildSettingsForMainFile:(id)arg1; - (id)localizedIndexableDescription; - (void)languageOfMainFile:(id)arg1 completionBlock:(id)arg2; - (BOOL)requiresMainThread; - (BOOL)writeProductHeaders:(id)arg1 toFile:(id)arg2 error:(id *)arg3; - (void)productHeadersInWorkspace:(id)arg1 withCompletionBlock:(id)arg2; - (id)containerForIndexables:(id)arg1 rootPaths:(id)arg2; - (id)indexableFiles; - (id)indexName; - (id)identifier; @optional @property(retain, nonatomic) id <IDEIndexable> proxy; - (id)copyWithZone:(struct _NSZone *)arg1; - (void)clearCachedBuildSettings; - (void)settingsForFilesInWorkspace:(id)arg1 withCompletionBlock:(id)arg2; @end @protocol IDEIndexableProvider <NSObject> - (id)indexables; @end @protocol IDEInitialization + (BOOL)ide_initializeWithOptions:(int)arg1 error:(id *)arg2; @end @protocol IDELegacyBreakpointProvider - (id)legacyProjectBreakpoints; @end @protocol IDEOCUnitTestOutputParserDelegate <NSObject> - (void)testDidOutput:(id)arg1; - (void)testCaseDidProducePerformanceOutput:(id)arg1 rawOutput:(id)arg2; - (void)testCaseDidFailForTestClass:(id)arg1 method:(id)arg2 withMessage:(id)arg3 file:(id)arg4 line:(long long)arg5 rawOutput:(id)arg6; - (void)testCaseDidFinishForTestClass:(id)arg1 method:(id)arg2 withStatus:(id)arg3 duration:(double)arg4 rawOutput:(id)arg5; - (void)testCaseDidStartForTestClass:(id)arg1 method:(id)arg2 rawOutput:(id)arg3; - (void)testSuiteDidFinish:(long long)arg1 withFailures:(long long)arg2 unexpected:(long long)arg3 testDuration:(double)arg4 totalDuration:(double)arg5 rawOutput:(id)arg6; - (void)testSuite:(id)arg1 willFinishAt:(id)arg2 rawOutput:(id)arg3; - (void)testSuite:(id)arg1 didStartAt:(id)arg2 rawOutput:(id)arg3; @end @protocol IDEProductTypeProvider <NSObject> + (id)productTypeForIdentifier:(id)arg1 platform:(id)arg2; @end @protocol IDEReadOnlyItem <NSObject> @property(readonly) NSURL *readOnlyItemURL; @property(readonly) int readOnlyStatus; - (BOOL)makeWritableWithError:(id *)arg1; @end @protocol IDERunOperationWorkerDelegate <NSObject> - (void)workerDidComplete:(id)arg1 withError:(id)arg2; @end @protocol IDERunOperationWorkerTracker <NSObject> - (void)runningDidFinish:(id)arg1 withError:(id)arg2; @end @protocol IDESourceTreeProvider <NSObject> + (id)stringByExpandingSourceTreeReferencesInString:(id)arg1; @end @protocol IDEStructureEditing - (BOOL)structureEditSetName:(id)arg1 inContext:(id)arg2; - (BOOL)canStructureEditName; - (BOOL)structureEditRemoveSubitemsAtIndexes:(id)arg1 error:(id *)arg2; - (BOOL)canStructureEditRemoveSubitemsAtIndexes:(id)arg1; - (BOOL)structureEditSortSubitemsAtIndexes:(id)arg1 byNameOrByType:(BOOL)arg2; - (BOOL)canStructureEditSortSubitemsAtIndexes:(id)arg1 byNameOrByType:(BOOL)arg2; - (id)structureEditInsertFileURLs:(id)arg1 atIndex:(unsigned long long)arg2 createGroupsForFolders:(BOOL)arg3; - (BOOL)canStructureEditInsertFileURLs:(id)arg1 atIndex:(unsigned long long)arg2; - (id)structureEditInsertSubitems:(id)arg1 atIndex:(unsigned long long)arg2; - (BOOL)canStructureEditInsertSubitems:(id)arg1 atIndex:(unsigned long long)arg2; - (BOOL)allowUserModificationOfSubitems; @end @protocol IDETestable <NSObject> @property(readonly) BOOL isSearchingForTests; @property(readonly) NSString *name; @property(readonly) NSArray *tests; @property(readonly) id <IDETestableProvider> testableProvider; - (BOOL)canHaveSubtestsForTestWithIdentifier:(id)arg1; - (id)supertestForTestWithIdentifier:(id)arg1; - (id)nameForTestWithIdentifier:(id)arg1; - (id)testForIdentifier:(id)arg1; - (id)parentBuildableInWorkspace:(id)arg1; - (id)testHostBuildableInWorkspace:(id)arg1; - (id)primaryBuildable; - (void)waitUntilTestSearchIsFinished; - (void)searchForTestsInWorkspace:(id)arg1; - (id)newTestRunner; @end @protocol IDETestableProvider <NSObject> @property(readonly) NSString *name; @property(readonly) NSArray *testables; - (id)testableForBlueprint:(id)arg1; @end @protocol IDEWorkspaceDelegate <IDEContainerDelegate> - (void)_workspace:(id)arg1 failedToResolveContainerForProjectFile:(id)arg2; @optional - (void)_workspace:(id)arg1 didChangeSimpleFilesFocusedTo:(BOOL)arg2; - (void)_workspace:(id)arg1 didChangeFinishedLoadingTo:(BOOL)arg2; @end @protocol IDEWorkspaceWrappingContainer - (void)becomeWorkspaceWrappingContainer; @end @protocol IDEXMLPackageContainerCore <IDEContainerCore> - (BOOL)writeToFile:(id)arg1 error:(id *)arg2; - (id)initWithContentsOfFile:(id)arg1 error:(id *)arg2; @end @interface DVTDevice (IDEFoundationAdditions) - (id)analysisOperationWithAnalysisToolService:(id)arg1 location:(id)arg2 commandLineArgs:(id)arg3 environmentVariables:(id)arg4 workingDirectory:(id)arg5 workspaceFilePath:(id)arg6 projectFilePath:(id)arg7 outError:(id *)arg8; - (void)createInstallWithName:(id)arg1 path:(id)arg2 buildables:(id)arg3 buildParameters:(id)arg4 killProcesses:(id)arg5; - (BOOL)canInstallBuildablesError:(id *)arg1; - (id)scriptingEnvironment; - (id)closestRelativeOfTargetArchitecture:(id)arg1 forBuildArchitectures:(id)arg2; - (BOOL)supportsRunningExecutableAtPath:(id)arg1 usingArchitecture:(id)arg2 error:(id *)arg3; - (BOOL)supportsExecutionForArchitecture:(id)arg1 launchSession:(id)arg2 error:(id *)arg3; - (id)deviceSpecificOverridingPropertiesForBuildable:(id)arg1 withBaselineParameters:(id)arg2; - (void)didBecomeActiveDeviceForRunContext:(id)arg1; - (id)supportedSDKsForBuildable:(id)arg1 withConfiguration:(id)arg2 workspaceArena:(id)arg3; - (id)supportedArchitecturesForBuildable:(id)arg1 withConfiguration:(id)arg2 workspaceArena:(id)arg3; - (BOOL)canBeDefaultDeviceForBuildable:(id)arg1 withConfiguration:(id)arg2; - (id)displayNameAdditionsWhenUsingArchitecture:(id)arg1 withSDK:(id)arg2; - (id)displayNameWhenUsingArchitecture:(id)arg1 withSDK:(id)arg2; @end @interface DVTDevice (IDEOCUnitTestAdditions) - (id)deviceForRunningUnitTestsWithHost:(id)arg1 error:(id *)arg2; - (void)modifyTestingEnvironmentVariables:(id)arg1 host:(id)arg2 testBundlePath:(id)arg3; @property(readonly) DVTFilePath *defaultTestHostPath; @property(readonly) BOOL supportsInverseTestScopes; @property(readonly) BOOL supportsMultipleTestScopes; @end @interface DVTExtension (DVTExtensionSortAdditions) - (long long)nameCompare:(id)arg1; @end @interface DVTExtension (DVTExtensionTypeIdentificationUtilities) + (id)typeIdentifierExtensionForString:(id)arg1; - (BOOL)isKindOfExtension:(id)arg1; - (id)closestRelatedExtensionAmongExtensions:(id)arg1; @end @interface DVTFilePath (IDESourceControlStatus) + (id)containerTypeIdentifiersKeyedByImportantSubpaths; + (id)importantSubpathsKeyedByContainerTypeIdentifier; @property(readonly) NSArray *IDESourceControl_importantSubpaths; @property(readonly) DVTFilePath *IDESourceControl_containerFilePath; - (void)removeAssociatedWorkingTree:(id)arg1; - (void)associateWorkingTree:(id)arg1; - (id)workingTree; - (void)removeAssociatedWorkingTreeItem:(id)arg1; - (void)associateWorkingTreeItem:(id)arg1; - (id)workingTreeItem_createIfNecessary:(BOOL)arg1; - (id)workingTreeItem; - (void)workingTreeItemWithCompletionBlock:(id)arg1; @end @interface DVTFilePath (IDESourceControlStatus_Private) - (id)IDESourceControl_importantFileReferences; @end @interface DVTFilePath (IDESourceControlUtilities) - (BOOL)idescm_isSameFileAsFilePathCaseSensitive:(id)arg1; @end @interface DVTLocalComputer (IDEFoundationAdditions) - (BOOL)supportsRunningExecutableAtPath:(id)arg1 usingArchitecture:(id)arg2 error:(id *)arg3; - (BOOL)supportsExecutionForArchitecture:(id)arg1 launchSession:(id)arg2 error:(id *)arg3; - (id)deviceSpecificOverridingPropertiesForBuildable:(id)arg1 withBaselineParameters:(id)arg2; - (id)supportedSDKsForBuildable:(id)arg1 withConfiguration:(id)arg2 workspaceArena:(id)arg3; - (id)supportedArchitecturesForBuildable:(id)arg1 withConfiguration:(id)arg2 workspaceArena:(id)arg3; - (BOOL)canBeDefaultDeviceForBuildable:(id)arg1 withConfiguration:(id)arg2; - (id)displayNameWhenUsingArchitecture:(id)arg1 withSDK:(id)arg2; - (id)_displayNameForArchitecture:(id)arg1; @end @interface IDEActivityLogSection : NSObject { IDEActivityLogSectionRecorder *_recorder; IDETypeIdentifier *_domainType; NSString *_title; double _timeStartedRecording; double _timeStoppedRecording; NSMutableArray *_subsections; NSMutableString *_text; NSMutableArray *_messages; id _representedObject; NSString *_subtitle; DVTDocumentLocation *_location; NSString *_signature; NSString *_commandDetailDesc; unsigned short _totalErrorCount; unsigned short _totalWarningCount; unsigned short _totalAnalyzerWarningCount; unsigned short _totalAnalyzerResultCount; unsigned short _sectionType; unsigned short _resultCode; BOOL _wasCancelled; BOOL _isQuiet; BOOL _wasFetchedFromCache; BOOL _hasAddedIssueMessage; NSString *_uniqueIdentifier; NSString *_localizedResultString; } + (id)sectionWithContentsOfFile:(id)arg1 error:(id *)arg2; + (id)sectionByDeserializingData:(id)arg1 error:(id *)arg2; + (unsigned long long)serializationFormatVersion; + (id)UUIDWithURL:(id)arg1; + (id)URLWithUUID:(id)arg1; + (id)defaultMainLogDomainType; + (id)defaultLogSectionDomainType; + (Class)logRecorderClass; + (void)initialize; @property(readonly) NSString *uniqueIdentifier; // @synthesize uniqueIdentifier=_uniqueIdentifier; @property(copy) NSString *localizedResultString; // @synthesize localizedResultString=_localizedResultString; @property(readonly) IDETypeIdentifier *domainType; // @synthesize domainType=_domainType; @property BOOL hasAddedIssueMessage; // @synthesize hasAddedIssueMessage=_hasAddedIssueMessage; @property(copy) NSString *signature; // @synthesize signature=_signature; @property BOOL wasFetchedFromCache; // @synthesize wasFetchedFromCache=_wasFetchedFromCache; - (id)indexPathForMessageOrSection:(id)arg1; - (id)indexPathForMessageOrSection:(id)arg1 messageOrSectionEqualityTest:(id)arg2; - (id)messageOrSectionAtIndexPath:(id)arg1; - (BOOL)writeToFile:(id)arg1 error:(id *)arg2; - (id)serializedData; - (void)dvt_writeToSerializer:(id)arg1; - (id)dvt_initFromDeserializer:(id)arg1; - (void)removeObserver:(id)arg1; - (id)addObserverUsingBlock:(id)arg1; - (id)enumerateMessagesUsingBlock:(id)arg1; - (id)enumerateSubsectionsRecursivelyUsingPreorderBlock:(id)arg1; - (void)_enumerateSubsectionsRecursivelyUsingPreorderBlock:(id)arg1 returningFilteredSections:(void)arg2; @property(readonly) NSURL *logSectionURL; - (id)emittedOutputText; - (void)logRecorder:(id)arg1 setCommandDetailDescription:(id)arg2; @property(readonly) NSString *commandDetailDescription; @property(readonly) DVTDocumentLocation *location; - (void)logRecorder:(id)arg1 setWasFetchedFromCache:(BOOL)arg2; - (void)logRecorder:(id)arg1 setIsQuiet:(BOOL)arg2; @property(readonly) BOOL isQuiet; - (void)logRecorder:(id)arg1 adjustMessageCountsWithErrorDelta:(long long)arg2 warningCountDelta:(long long)arg3 analyzerWarningDelta:(long long)arg4 analyzerResultDelta:(long long)arg5; @property(readonly) unsigned long long totalNumberOfAnalyzerResults; @property(readonly) unsigned long long totalNumberOfAnalyzerWarnings; @property(readonly) unsigned long long totalNumberOfWarnings; @property(readonly) unsigned long long totalNumberOfErrors; - (id)description; - (void)logRecorder:(id)arg1 didStopRecordingWithInfo:(id)arg2; - (void)checkMessageCounts; @property(readonly) IDEActivityLogSectionRecorder *recorder; @property(readonly) BOOL isRecording; - (void)logRecorder:(id)arg1 setWasCancelled:(BOOL)arg2; @property(readonly) long long resultCode; @property(readonly) BOOL wasCancelled; - (void)logRecorder:(id)arg1 addMessage:(id)arg2; @property(readonly) NSArray *messages; - (void)logRecorder:(id)arg1 appendText:(id)arg2; - (void)setAdditionalDescription:(id)arg1; @property(readonly) NSString *subtitle; @property(readonly) NSString *text; - (void)logRecorder:(id)arg1 addSubsection:(id)arg2; @property(readonly) NSArray *subsections; @property(readonly) double timeStoppedRecording; @property(readonly) double timeStartedRecording; @property(readonly) NSString *title; @property(readonly) id representedObject; - (void)setRepresentedObject:(id)arg1; - (void)finalize; @property(readonly) unsigned long long sectionType; - (id)initWithTitle:(id)arg1; - (id)init; - (id)initCommandInvocationWithDomainType:(id)arg1 title:(id)arg2 detailDescription:(id)arg3 filePath:(id)arg4; - (id)initCommandInvocationWithDomainType:(id)arg1 title:(id)arg2 detailDescription:(id)arg3 location:(id)arg4; - (id)initMajorGroupWithDomainType:(id)arg1 title:(id)arg2 representedObject:(id)arg3 subtitle:(id)arg4; - (id)initMainLogWithDomainType:(id)arg1 title:(id)arg2; - (id)initWithSectionType:(unsigned long long)arg1 domainType:(id)arg2 title:(id)arg3; @end @interface IDEActivityLog : IDEActivityLogSection { id _observer; } + (id)activityLogWithContentsOfFile:(id)arg1 error:(id *)arg2; + (unsigned long long)serializationFormatVersion; + (id)defaultLogSectionDomainType; + (Class)logRecorderClass; + (id)UUIDWithURL:(id)arg1; + (id)URLWithUUID:(id)arg1; - (BOOL)writeToFile:(id)arg1 error:(id *)arg2; - (void)dvt_writeToSerializer:(id)arg1; - (id)dvt_initFromDeserializer:(id)arg1; @property(readonly) IDEActivityLogSectionRecorder *recorder; @property(readonly) NSURL *logURL; - (id)init; - (id)initWithTitle:(id)arg1; - (id)initLogWithTitle:(id)arg1; - (id)initLogWithDomainType:(id)arg1 title:(id)arg2; - (id)initWrapperLogWithTitle:(id)arg1 subsection:(id)arg2; - (id)ideModelObjectTypeIdentifier; @end @interface IDEActivityLogMessage : NSObject <NSCopying> { NSString *_title; NSString *_shortTitle; double _timeEmitted; IDEActivityLogSection *_supersection; struct _NSRange _rangeInSectionText; IDEActivityLogMessage *_supermessage; NSMutableArray *_submessages; unsigned long long _severity; IDETypeIdentifier *_type; DVTDocumentLocation *_location; NSString *_categoryIdent; NSArray *_secondaryLocations; NSString *_additionalDescription; } + (id)messageWithType:(id)arg1 severity:(unsigned long long)arg2 title:(id)arg3 filePath:(id)arg4 lineNumber:(unsigned long long)arg5; + (id)messageWithType:(id)arg1 severity:(unsigned long long)arg2 title:(id)arg3 location:(id)arg4; @property(readonly) IDETypeIdentifier *type; // @synthesize type=_type; @property(readonly) unsigned long long severity; // @synthesize severity=_severity; - (void)dvt_writeToSerializer:(id)arg1; - (id)dvt_initFromDeserializer:(id)arg1; @property(readonly) unsigned long long totalNumberOfAnalyzerResults; @property(readonly) unsigned long long totalNumberOfAnalyzerWarnings; @property(readonly) unsigned long long totalNumberOfWarnings; @property(readonly) unsigned long long totalNumberOfErrors; - (void)setSecondaryLocations:(id)arg1; @property(readonly) NSArray *secondaryLocations; @property(readonly) NSString *additionalDescription; - (void)setCategoryIdentifier:(id)arg1; @property(readonly) NSString *categoryIdentifier; @property(readonly) DVTDocumentLocation *location; - (void)setShortTitle:(id)arg1; @property(readonly) NSString *shortTitle; - (void)logRecorder:(id)arg1 addSectionTextRange:(struct _NSRange)arg2; - (void)logRecorder:(id)arg1 setSectionTextRange:(struct _NSRange)arg2; @property(readonly) NSString *logMessageString; - (void)logRecorder:(id)arg1 addSubmessage:(id)arg2; - (void)addSubmessage:(id)arg1; @property(readonly) NSArray *submessages; - (void)_setSupermessage:(id)arg1; @property(readonly) IDEActivityLogMessage *supermessage; - (void)setSectionTextRange:(struct _NSRange)arg1; @property(readonly) struct _NSRange rangeInSectionText; - (void)_setSupersection:(id)arg1; @property(readonly) IDEActivityLogSection *supersection; - (id)description; @property(readonly) double timeEmitted; @property(readonly) NSString *title; - (id)copyWithZone:(struct _NSZone *)arg1; - (id)initWithType:(id)arg1 severity:(unsigned long long)arg2 title:(id)arg3 filePath:(id)arg4; - (id)initWithType:(id)arg1 severity:(unsigned long long)arg2 title:(id)arg3 filePath:(id)arg4 lineNumber:(unsigned long long)arg5; - (id)initWithType:(id)arg1 severity:(unsigned long long)arg2 title:(id)arg3 location:(id)arg4; - (id)initWithTitle:(id)arg1; - (id)init; - (id)initWithType:(id)arg1 severity:(unsigned long long)arg2 title:(id)arg3; @end @interface IDEActivityLogActionMessage : IDEActivityLogMessage { NSString *_actionIdentifier; } @property(copy) NSString *actionIdentifier; // @synthesize actionIdentifier=_actionIdentifier; - (id)initWithAction:(id)arg1 severity:(unsigned long long)arg2 title:(id)arg3 location:(id)arg4; @end @interface IDEActivityLogChangeEvent : NSObject { IDEActivityLogSection *_section; } + (id)stopRecordingEventWithSection:(id)arg1 supersections:(id)arg2; + (id)setValueEventWithSection:(id)arg1 key:(id)arg2 value:(id)arg3; + (id)appendTextEventWithSection:(id)arg1 textString:(id)arg2; + (id)addSubmessageEventWithSection:(id)arg1 supermessage:(id)arg2 submessage:(id)arg3; + (id)addSubsectionEventWithSection:(id)arg1 subsection:(id)arg2; @property(readonly) IDEActivityLogSection *section; // @synthesize section=_section; - (id)description; - (id)addedChild; - (id)changedParent; - (id)initWithSection:(id)arg1; @end @interface IDEActivityLogAddSubmessageChangeEvent : IDEActivityLogChangeEvent { IDEActivityLogMessage *_supermessage; IDEActivityLogMessage *_submessage; } @property(readonly) IDEActivityLogMessage *submessage; // @synthesize submessage=_submessage; @property(readonly) IDEActivityLogMessage *supermessage; // @synthesize supermessage=_supermessage; - (id)description; - (id)addedChild; - (id)changedParent; - (id)initWithSection:(id)arg1 supermessage:(id)arg2 submessage:(id)arg3; - (id)initWithSection:(id)arg1 submessage:(id)arg2; @end @interface IDEActivityLogAddSubsectionChangeEvent : IDEActivityLogChangeEvent { IDEActivityLogSection *_subsection; } @property(readonly) IDEActivityLogSection *subsection; // @synthesize subsection=_subsection; - (id)description; - (id)addedChild; - (id)initWithSection:(id)arg1 subsection:(id)arg2; @end @interface IDEActivityLogAnalyzerControlFlowStepEdge : NSObject { DVTTextDocumentLocation *_startLocation; DVTTextDocumentLocation *_endLocation; } - (void)dvt_writeToSerializer:(id)arg1; - (id)dvt_initFromDeserializer:(id)arg1; - (id)description; - (id)endLocation; - (id)startLocation; - (id)initWithStartLocation:(id)arg1 endLocation:(id)arg2; @end @interface IDEActivityLogAnalyzerStepMessage : IDEActivityLogMessage { } - (void)dvt_writeToSerializer:(id)arg1; - (id)dvt_initFromDeserializer:(id)arg1; - (unsigned long long)totalNumberOfWarnings; - (BOOL)isAnalyzerStepMessage; @end @interface IDEActivityLogAnalyzerControlFlowStepMessage : IDEActivityLogAnalyzerStepMessage { DVTTextDocumentLocation *_endLocation; NSArray *_edges; } - (void)dvt_writeToSerializer:(id)arg1; - (id)dvt_initFromDeserializer:(id)arg1; - (void)setEdges:(id)arg1; - (id)edges; - (id)endLocation; - (id)startLocation; - (unsigned long long)totalNumberOfWarnings; - (BOOL)isAnalyzerControlFlowStepMessage; - (id)initWithTitle:(id)arg1 startLocation:(id)arg2 endLocation:(id)arg3; @end @interface IDEActivityLogAnalyzerEventStepMessage : IDEActivityLogAnalyzerStepMessage { NSString *_description; } - (void)dvt_writeToSerializer:(id)arg1; - (id)dvt_initFromDeserializer:(id)arg1; - (id)locations; - (void)setDescription:(id)arg1; - (id)description; - (unsigned long long)totalNumberOfWarnings; @end @interface IDEActivityLogAnalyzerResultMessage : IDEActivityLogMessage { NSString *_resultType; } + (id)analyzerMessageType; - (void)dvt_writeToSerializer:(id)arg1; - (id)dvt_initFromDeserializer:(id)arg1; - (id)resultCategory; - (id)resultType; - (void)setResultType:(id)arg1; - (unsigned long long)totalNumberOfAnalyzerResults; - (unsigned long long)totalNumberOfWarnings; @end @interface IDEActivityLogAnalyzerWarningMessage : IDEActivityLogMessage { } + (id)analyzerWarningType; - (void)dvt_writeToSerializer:(id)arg1; - (id)dvt_initFromDeserializer:(id)arg1; - (unsigned long long)totalNumberOfAnalyzerWarnings; - (unsigned long long)totalNumberOfWarnings; - (BOOL)isAnalyzerWarningMessage; @end @interface IDEActivityLogAppendTextChangeEvent : IDEActivityLogChangeEvent { NSString *_textString; } @property(readonly) NSString *textString; // @synthesize textString=_textString; - (id)description; - (id)initWithSection:(id)arg1 textString:(id)arg2; @end @interface IDEActivityLogContextInfoMessage : IDEActivityLogMessage { } @end @interface IDEActivityLogHeaderInclusionMessage : IDEActivityLogMessage { } @end @interface IDEActivityLogRecord : NSObject { } + (id)cacheLog:(id)arg1; + (void)cacheLogRecord:(id)arg1; + (id)cachedLogRecordWithURL:(id)arg1; - (long long)compareUsingTimeStartedRecording:(id)arg1; - (id)fullLogIfInMemory; - (id)fullLogWithError:(id *)arg1; - (void)removeSelfWithCompletionBlock:(id)arg1; @property(readonly) BOOL isRemoved; @property(readonly) BOOL isRecording; @property(readonly) NSString *signature; @property(readonly) DVTFileDataType *documentType; @property(readonly, nonatomic) double timeStoppedRecording; @property(readonly) double timeStartedRecording; @property(readonly) NSString *title; @property(readonly) IDETypeIdentifier *domainType; @property(readonly) NSString *uniqueIdentifier; @property(readonly) NSURL *logURL; @end @interface IDEActivityLogSectionRecorder : NSObject { NSMutableArray *_parentRecorders; NSMutableArray *_childRecorders; IDEActivityLogSection *_section; NSMutableArray *_observations; NSMutableArray *_changesToPost; BOOL _hasScheduledChangePosting; NSMapTable *_rememberedMessagesByKey; struct _NSRange _mostRecentTextRange; id _completionBlock; DVTStackBacktrace *_initBacktrace; DVTStackBacktrace *_stopBacktrace; NSMapTable *_severityToLimitTable; NSMapTable *_severityToCountTable; int _lock; BOOL _hasAddedErrorMessages; BOOL _hasRequestedStop; } @property BOOL hasAddedAnyErrorMessages; // @synthesize hasAddedAnyErrorMessages=_hasAddedErrorMessages; - (id)addObserverUsingBlock:(id)arg1; - (void)setCommandDetailDescription:(id)arg1; - (void)addContextInfoMessageWithTitle:(id)arg1; - (void)addAnalyzerResultStepMessageWithTitle:(id)arg1; - (void)addAnalyzerResultMessageWithTitle:(id)arg1; - (void)addNoticeMessageWithTitle:(id)arg1; - (void)addWarningMessageWithTitle:(id)arg1; - (void)addErrorMessageWithTitle:(id)arg1; - (void)noteDescendantLogSectionDidClose:(id)arg1 inSupersection:(id)arg2; - (void)noteDescendantLogSection:(id)arg1 didAppendText:(id)arg2; - (void)noteDescendantLogSection:(id)arg1 didAddSubsection:(id)arg2; - (void)stopRecordingWithInfo:(id)arg1; - (void)_stopRecordingWithInfo:(id)arg1 sync:(BOOL)arg2; - (void)childRecorderDidStopRecording:(id)arg1; - (void)addSubmessage:(id)arg1 toMessage:(id)arg2; - (void)addMessage:(id)arg1 ignoreMessageLimit:(BOOL)arg2; - (void)addMessage:(id)arg1; - (struct _NSRange)mostRecentlyAppendedTextRange; - (struct _NSRange)appendTextUTF8Bytes:(const char *)arg1 length:(unsigned long long)arg2; - (struct _NSRange)appendTextFormat:(id)arg1; - (struct _NSRange)appendText:(id)arg1; - (void)addSubsection:(id)arg1; - (void)_addSubsection:(id)arg1 sync:(BOOL)arg2; - (BOOL)_attachToParentRecorderIfStillRecording:(id)arg1; - (BOOL)hasReachedAllMessageLimits; - (BOOL)hasReachedMessageLimitForSeverity:(unsigned long long)arg1; - (void)setMessageLimit:(unsigned long long)arg1 forSeverity:(unsigned long long)arg2; - (void)setLocalizedResultString:(id)arg1; - (void)setWasFetchedFromCache:(BOOL)arg1; - (void)setIsQuiet:(BOOL)arg1; - (id)addUnitTestSectionWithTitle:(id)arg1; - (id)addCommandSectionWithTitle:(id)arg1 detailDescription:(id)arg2; - (id)addCommandSectionWithDomainType:(id)arg1 title:(id)arg2 detailDescription:(id)arg3; - (void)handleChangeEvent:(id)arg1; - (void)setRememberedMessage:(id)arg1 forKey:(id)arg2; - (id)rememberedMessageForKey:(id)arg1; - (void)addCompletionBlock:(id)arg1; - (id)section; - (id)initWithLogSection:(id)arg1; @end @interface IDEActivityLogRecorder : IDEActivityLogSectionRecorder { } - (void)setLocalizedResultString:(id)arg1; - (id)section; - (id)initWithLogSection:(id)arg1; @end // Not exported @interface IDEActivityLogSectionObservation : NSObject <DVTObservingToken> { id _block; } + (id)sharedNullObservation; - (id)description; - (void)cancel; @property(readonly, getter=isCancelled) BOOL cancelled; - (id)block; - (id)init; - (id)initWithBlock:(id)arg1; @end @interface IDEActivityLogSetKeyValueChangeEvent : IDEActivityLogChangeEvent { NSString *_key; NSValue *_value; } @property(readonly) NSValue *value; // @synthesize value=_value; @property(readonly) NSString *key; // @synthesize key=_key; - (id)description; - (id)initWithSection:(id)arg1 key:(id)arg2 value:(id)arg3; @end @interface IDEActivityLogStopRecordingChangeEvent : IDEActivityLogChangeEvent { NSSet *_supersections; } @property(readonly) NSSet *supersections; // @synthesize supersections=_supersections; - (id)description; - (id)initWithSection:(id)arg1 supersections:(id)arg2; @end @interface IDEActivityLogUnitTestSection : IDEActivityLogSection { NSString *_testsPassedString; NSString *_durationString; NSString *_summaryString; NSString *_testName; NSString *_performanceTestOutputString; } + (Class)logRecorderClass; + (id)defaultLogSectionDomainType; @property(copy) NSString *performanceTestOutputString; // @synthesize performanceTestOutputString=_performanceTestOutputString; @property(copy) NSString *testName; // @synthesize testName=_testName; @property(copy) NSString *summaryString; // @synthesize summaryString=_summaryString; @property(copy) NSString *durationString; // @synthesize durationString=_durationString; @property(copy) NSString *testsPassedString; // @synthesize testsPassedString=_testsPassedString; - (void)dvt_writeToSerializer:(id)arg1; - (id)dvt_initFromDeserializer:(id)arg1; - (id)initUnitTestWithTitle:(id)arg1; @end @interface IDEActivityLogUnitTestSectionRecorder : IDEActivityLogSectionRecorder { DVTRegularExpression *_endMarker; BOOL _canFinish; unsigned long long _newEndMarker; } @property unsigned long long newEndMarker; // @synthesize newEndMarker=_newEndMarker; @property BOOL canFinish; // @synthesize canFinish=_canFinish; @property(copy) DVTRegularExpression *endMarker; // @synthesize endMarker=_endMarker; - (id)section; - (id)initWithLogSection:(id)arg1; @end @interface IDEBreakpoint : NSObject <DVTXMLUnarchiving, NSCopying> { NSString *_displayName; IDEBreakpointBucket *_bucket; NSMutableSet *_matchedModuleNames; BOOL _shouldBeEnabled; int _debuggerState; unsigned long long _ignoreCount; unsigned long long _hitCount; NSString *_condition; BOOL _continueAfterRunningActions; NSMutableArray *_actions; NSMutableArray *_locations; } + (id)propertiesAffectingPersistenceState; + (void)initialize; @property unsigned long long hitCount; // @synthesize hitCount=_hitCount; @property BOOL continueAfterRunningActions; // @synthesize continueAfterRunningActions=_continueAfterRunningActions; @property(copy) NSString *condition; // @synthesize condition=_condition; @property unsigned long long ignoreCount; // @synthesize ignoreCount=_ignoreCount; @property int debuggerState; // @synthesize debuggerState=_debuggerState; @property(nonatomic) BOOL shouldBeEnabled; // @synthesize shouldBeEnabled=_shouldBeEnabled; @property(retain) IDEBreakpointBucket *bucket; // @synthesize bucket=_bucket; @property(copy) NSString *displayName; // @synthesize displayName=_displayName; - (void)addLocations:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addActions:(id)arg1 fromXMLUnarchiver:(id)arg2; - (id)_actionArchivingProxiesArray; - (void)dvt_encodeRelationshipsWithXMLArchiver:(id)arg1; - (void)setContinueAfterRunningActionsFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setShouldBeEnabledFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (BOOL)_booleanValueFromUTF8String:(char *)arg1; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (id)initFromXMLUnarchiver:(id)arg1 archiveVersion:(float)arg2; - (void)_listenToActionsPropertyChanges:(id)arg1; - (void)_handleActionsAdded:(id)arg1; - (void)observeValueForKeyPath:(id)arg1 ofObject:(id)arg2 change:(id)arg3 context:(void *)arg4; - (void)resetActionExpressionResults; - (void)locationWasRemoved:(id)arg1; - (void)_locationWasResolved:(id)arg1 currentLocations:(id)arg2; - (void)locationWasResolved:(id)arg1; - (void)setInitialResolvedLocations:(id)arg1; - (BOOL)locationsProvideAdditionalInformation; - (void)toggleShouldBeEnabled; - (void)_notifyPersistencyStateChanged; - (void)primitiveSetBucket:(id)arg1; - (id)description; - (id)copyWithZone:(struct _NSZone *)arg1; - (id)init; - (void)_dvt_commonInit; // Remaining properties @property(copy) NSArray *actions; // @dynamic actions; @property(readonly) NSArray *locations; // @dynamic locations; @property(copy) NSSet *matchedModuleNames; // @dynamic matchedModuleNames; @property(readonly) NSMutableArray *mutableActions; // @dynamic mutableActions; @property(readonly) NSMutableArray *mutableLocations; // @dynamic mutableLocations; @property(readonly) NSMutableSet *mutableMatchedModuleNames; // @dynamic mutableMatchedModuleNames; @end @interface IDESymbolicBreakpoint : IDEBreakpoint { NSString *_symbolName; NSString *_moduleName; } + (id)keyPathsForValuesAffectingDisplayName; + (id)propertiesAffectingPersistenceState; @property(copy) NSString *moduleName; // @synthesize moduleName=_moduleName; @property(copy) NSString *symbolName; // @synthesize symbolName=_symbolName; - (void)dvt_encodeRelationshipsWithXMLArchiver:(id)arg1; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (id)initFromXMLUnarchiver:(id)arg1 archiveVersion:(float)arg2; - (BOOL)locationsProvideAdditionalInformation; - (id)description; - (id)copyWithZone:(struct _NSZone *)arg1; - (id)displayName; - (id)initWithSymbolName:(id)arg1 moduleName:(id)arg2; @end @interface IDEAddressBreakpoint : IDESymbolicBreakpoint { NSString *_hexAddress; } + (id)_createSymbolNameFromAddress:(id)arg1; - (id)displayName; @property(copy) NSString *hexAddress; - (id)initWithAddress:(id)arg1; @end @interface IDEAlert : NSObject { NSString *_identifier; double _executionPriority; BOOL _enabled; } + (id)createAlertForAlertIdentifier:(id)arg1 propertyList:(id)arg2; + (id)createAlertForAlertIdentifier:(id)arg1; + (BOOL)canAlertWithIdentifierRunOnCurrentOS:(id)arg1; + (id)alertExtensionForAlertIdentifier:(id)arg1; + (id)alertIdentifiersForGroup:(id)arg1; + (id)alertGroups; + (id)alertIdentifiers; + (id)alertExtensions; + (void)_cacheAlerts; + (void)_registerAlert:(id)arg1; + (void)initialize; @property double executionPriority; // @synthesize executionPriority=_executionPriority; @property(getter=isEnabled) BOOL enabled; // @synthesize enabled=_enabled; @property(readonly) NSString *identifier; // @synthesize identifier=_identifier; - (int)alertPropertyListVersion; - (id)initWithPropertyList:(id)arg1; - (id)propertyList; - (long long)compare:(id)arg1; - (id)description; - (void)runForEvent:(id)arg1 inWorkspace:(id)arg2 context:(id)arg3 completionBlock:(id)arg4; - (void)prepareToRunForEvent:(id)arg1 inWorkspace:(id)arg2 context:(id)arg3; - (BOOL)canRunOnCurrentOS; - (id)title; - (id)group; @end @interface IDEAlertEvent : NSObject { NSString *_identifier; NSString *_title; NSString *_titleSortKey; NSString *_group; NSString *_groupSortKey; NSString *_iconName; NSMutableDictionary *_alerts; NSMutableDictionary *_observationTokensByAlert; } + (id)alertEventsForGroup:(id)arg1; + (id)alertEventGroups; + (id)alertEvents; + (id)alertEventForIdentifier:(id)arg1; + (void)_cacheAlertEvents; + (void)_registerAlertEventExtension:(id)arg1; @property(retain) NSString *iconName; // @synthesize iconName=_iconName; @property(readonly) NSDictionary *alerts; // @synthesize alerts=_alerts; @property(retain, nonatomic) NSString *groupSortKey; // @synthesize groupSortKey=_groupSortKey; @property(retain) NSString *group; // @synthesize group=_group; @property(retain, nonatomic) NSString *titleSortKey; // @synthesize titleSortKey=_titleSortKey; @property(retain) NSString *title; // @synthesize title=_title; @property(readonly) NSString *identifier; // @synthesize identifier=_identifier; - (void)ide_setIdentifier:(id)arg1; - (void)saveToUserDefaults; - (id)propertyList; - (id)propertyListForVersion:(int)arg1; - (id)alertDefaults; - (id)alertDefaultsKey; - (void)observeValueForKeyPath:(id)arg1 ofObject:(id)arg2 change:(id)arg3 context:(void *)arg4; - (void)runInWorkspace:(id)arg1 context:(id)arg2; - (void)runInWorkspace:(id)arg1 context:(id)arg2 completionBlock:(id)arg3; - (id)ide_initializeAlertContext:(id)arg1 forWorkspace:(id)arg2; - (BOOL)hasEnabledAlerts; - (void)removeAlert:(id)arg1; - (void)addAlert:(id)arg1; - (id)description; - (id)initWithIdentifier:(id)arg1 title:(id)arg2 group:(id)arg3; - (id)init; - (void)ide_initializeAlertsFromDefaults:(id)arg1; @end @interface IDEAnalysisTool : NSObject { int _type; NSString *_identifier; NSString *_displayName; } @property(readonly) NSString *displayName; // @synthesize displayName=_displayName; @property(readonly) NSString *identifier; // @synthesize identifier=_identifier; @property(readonly) int type; // @synthesize type=_type; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (id)description; - (unsigned long long)hash; - (BOOL)isEqual:(id)arg1; - (long long)displayNameCompare:(id)arg1; - (id)initWithType:(int)arg1 identifer:(id)arg2 displayName:(id)arg3; @end @interface IDESchemeAction : NSObject <DVTXMLUnarchiving, DVTInvalidation> { BOOL _isInvalidated; DVTStackBacktrace *_invalidationBacktrace; BOOL _hasAwoken; IDEScheme *_runContext; NSMutableArray *_prePhaseExecutionActions; NSMutableArray *_postPhaseExecutionActions; IDESchemeBuildableReference *_buildableReferenceToUseForMacroExpansion; } + (BOOL)shouldAllowCustomPhaseActions; + (void)initialize; @property(retain) IDESchemeBuildableReference *buildableReferenceToUseForMacroExpansion; // @synthesize buildableReferenceToUseForMacroExpansion=_buildableReferenceToUseForMacroExpansion; @property(readonly) DVTStackBacktrace *invalidationBacktrace; // @synthesize invalidationBacktrace=_invalidationBacktrace; @property(readonly) IDEScheme *runContext; // @synthesize runContext=_runContext; - (id)updateDYLDSettingInEnvironment:(id)arg1 withBuildProducts:(id)arg2 runDestination:(id)arg3; - (void)addPostActions:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addPreActions:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)dvt_encodeRelationshipsWithXMLArchiver:(id)arg1; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (void)dvt_awakeFromXMLUnarchiver:(id)arg1; @property(readonly) NSArray *_postPhaseExecutionActionsProxies; @property(readonly) NSArray *_prePhaseExecutionActionsProxies; @property(readonly) BOOL hasAwoken; - (void)replacePostPhaseExecutionActionsAtIndexes:(id)arg1 withPostPhaseExecutionActions:(id)arg2; - (void)replaceObjectInPostPhaseExecutionActionsAtIndex:(unsigned long long)arg1 withObject:(id)arg2; - (void)removePostPhaseExecutionActionsAtIndexes:(id)arg1; - (void)insertPostPhaseExecutionActions:(id)arg1 atIndexes:(id)arg2; - (void)removeObjectFromPostPhaseExecutionActionsAtIndex:(unsigned long long)arg1; - (void)insertObject:(id)arg1 inPostPhaseExecutionActionsAtIndex:(unsigned long long)arg2; @property(copy) NSArray *postPhaseExecutionActions; // @dynamic postPhaseExecutionActions; - (void)replacePrePhaseExecutionActionsAtIndexes:(id)arg1 withObjects:(id)arg2; - (void)replaceObjectInPrePhaseExecutionActionsAtIndex:(unsigned long long)arg1 withObject:(id)arg2; - (void)removePrePhaseExecutionActionsAtIndexes:(id)arg1; - (void)insertPrePhaseExecutionActions:(id)arg1 atIndexes:(id)arg2; - (void)removeObjectFromPrePhaseExecutionActionsAtIndex:(unsigned long long)arg1; - (void)insertObject:(id)arg1 inPrePhaseExecutionActionsAtIndex:(unsigned long long)arg2; @property(copy) NSArray *prePhaseExecutionActions; // @dynamic prePhaseExecutionActions; - (void)invalidate; @property(readonly, nonatomic, getter=isValid) BOOL valid; - (id)expandMacrosInString:(id)arg1 forSchemeCommand:(int)arg2; - (id)setUpActionDependenciesForCorePhaseOperation:(id)arg1 shouldRunPostActionsBlock:(id)arg2 prePhaseEnvironmentPopulationBlock:(void)arg3 postPhaseEnvironmentPopulationBlock:(id)arg4 runDestination:(void)arg5 schemeCommand:(id)arg6 error:(void)arg7; - (void)setRunContext:(id)arg1; @property(readonly) BOOL doesNonActionWork; @property(readonly) NSString *subtitle; @property(readonly) NSString *name; - (id)initFromXMLUnarchiver:(id)arg1 archiveVersion:(float)arg2; - (id)init; // Remaining properties @property(readonly) NSMutableArray *mutablePostPhaseExecutionActions; // @dynamic mutablePostPhaseExecutionActions; @property(readonly) NSMutableArray *mutablePrePhaseExecutionActions; // @dynamic mutablePrePhaseExecutionActions; @end @interface IDEAnalyzeSchemeAction : IDESchemeAction <DVTXMLUnarchiving> { NSString *_buildConfiguration; } + (id)keyPathsForValuesAffectingSubtitle; + (BOOL)shouldAllowCustomPhaseActions; @property(copy) NSString *buildConfiguration; // @synthesize buildConfiguration=_buildConfiguration; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (void)dvt_awakeFromXMLUnarchiver:(id)arg1; - (id)buildOperationForExecutionEnvironment:(id)arg1 buildPurpose:(int)arg2 buildCommand:(int)arg3 schemeCommand:(int)arg4 filePath:(id)arg5 buildConfiguration:(id)arg6 buildLog:(id)arg7 overridingProperties:(id)arg8 activeRunDestination:(id)arg9 activeArchitecture:(id)arg10 restorePersistedBuildResults:(BOOL)arg11 error:(id *)arg12; - (BOOL)doesNonActionWork; - (id)subtitle; - (id)name; - (id)mutablePostPhaseExecutionActions; - (id)postPhaseExecutionActions; - (id)mutablePrePhaseExecutionActions; - (id)prePhaseExecutionActions; - (void)_commonInit; - (id)initFromXMLUnarchiver:(id)arg1 archiveVersion:(float)arg2; - (id)init; @end @interface IDEAppClientTracker : NSObject <IDEClientTracking> { IDEConcreteClientTracker *_clientTracker; } + (id)sharedAppClientTracker; - (void)cancelTrackedClients; - (id)clientsNotSupportingCancellation; - (id)clientsRequiringCancellationPrompt; - (id)registerClientWithName:(id)arg1; - (id)registerClientWithName:(id)arg1 promptForCancellation:(BOOL)arg2 cancellationBlock:(id)arg3; - (id)init; @end @interface IDEBreakpointAction : NSObject <DVTXMLUnarchiving> { NSString *_displayName; NSArray *_expressions; } + (id)_expressionsInString:(id)arg1; + (id)propertiesAffectingPersistenceState; + (id)extensionIDForAction:(id)arg1; + (id)extensions; + (id)_replace:(id)arg1 with:(id)arg2 inString:(id)arg3; + (id)_expandMacrosInString:(id)arg1 usingBreakpoint:(id)arg2; + (void)initialize; @property(copy) NSString *displayName; // @synthesize displayName=_displayName; - (id)initFromXMLUnarchiver:(id)arg1 archiveVersion:(float)arg2; - (id)_expandExpressionsInString:(id)arg1; - (void)extractAndSetExpressionsFromString:(id)arg1; - (id)expandExpressionsAndMacrosInString:(id)arg1 usingBreakpoint:(id)arg2; - (BOOL)haveExpressionsBeenEvaluated; - (void)resetExpressionResults; - (void)performActionUsingConsole:(id)arg1 andBreakpoint:(id)arg2; - (void)_breakpointActionCommonInit; - (id)init; // Remaining properties @property(copy) NSArray *expressions; // @dynamic expressions; @property(readonly) NSMutableArray *mutableExpressions; // @dynamic mutableExpressions; @end @interface IDEAppleScriptBreakpointAction : IDEBreakpointAction { NSString *_script; } + (id)propertiesAffectingPersistenceState; @property(copy) NSString *script; // @synthesize script=_script; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (void)dvt_awakeFromXMLUnarchiver:(id)arg1; - (id)initFromXMLUnarchiver:(id)arg1 archiveVersion:(float)arg2; - (void)performActionUsingConsole:(id)arg1 andBreakpoint:(id)arg2; - (void)_handleScriptChanged; - (void)_appleScriptActionCommonInit; - (id)init; @end @interface IDEArchive : NSObject { DVTFilePath *_path; NSMutableDictionary *_infoDictionary; IDEArchivedApplication *_application; BOOL _savePending; } + (long long)_computedApproximateAppStoreFileSizeForArchive:(id)arg1 platform:(id)arg2; + (id)_availableArchivePathInDirectory:(id)arg1 withName:(id)arg2 creationDate:(id)arg3 usingFileManager:(id)arg4; + (id)_archivePlistPathForArchivePath:(id)arg1; + (BOOL)_copyProductDefinitionPlistFromDirectory:(id)arg1 toArchiveWithPath:(id)arg2 usingFileManager:(id)arg3 error:(id *)arg4; + (BOOL)_copydSYMsFromDirectory:(id)arg1 toArchiveWithPath:(id)arg2 usingFileManager:(id)arg3 error:(id *)arg4; + (id)_createArchiveWithName:(id)arg1 usingFileManager:(id)arg2 error:(id *)arg3; + (id)_folderPathForArchiveWithDate:(id)arg1; + (id)createArchiveWithName:(id)arg1 schemeName:(id)arg2 platform:(id)arg3 products:(id)arg4 auxiliaryFiles:(id)arg5 usingFileManager:(id)arg6 error:(id *)arg7; + (id)installArchiveWithArchivePath:(id)arg1 usingFileManager:(id)arg2; + (id)archiveWithArchivePath:(id)arg1; + (id)keyPathsForValuesAffectingProductDefinitionPlistPath; + (id)_productDefinitionPlistPathForArchivePath:(id)arg1; + (id)keyPathsForValuesAffectingDSYMDirectoryPath; + (id)_dSYMDirectoryPathForArchivePath:(id)arg1; + (id)keyPathsForValuesAffectingProductsDirectoryPath; + (id)_productsDirectoryPathForArchivePath:(id)arg1; @property(readonly) IDEArchivedApplication *application; // @synthesize application=_application; @property(retain) DVTFilePath *path; // @synthesize path=_path; - (void)_saveArchive:(id)arg1; - (void)markDirty; - (id)objectForEnterpriseDistributionKey:(id)arg1; - (void)setObject:(id)arg1 forEnterpriseDistributionKey:(id)arg2; @property(copy) NSDictionary *enterpriseDistributionManifest; @property(copy) NSString *statusString; @property(copy) NSString *comment; @property long long estimatedAppStoreFileSize; @property(readonly) NSDate *creationDate; @property(readonly) unsigned long long version; @property(readonly) NSString *schemeName; @property(copy) NSString *name; @property(readonly) DVTFilePath *productDefinitionPlistPath; @property(readonly) DVTFilePath *dSYMDirectoryPath; @property(readonly) DVTFilePath *productsDirectoryPath; @property(readonly) NSMutableDictionary *infoDictionary; - (id)_initWithPath:(id)arg1 infoDictionary:(id)arg2; @end @interface IDEArchiveIdentityFilter : NSObject { NSString *_identifier; } + (id)filterWithIdentifier:(id)arg1; + (id)filterWithExtension:(id)arg1; + (id)allFilters; + (id)_createFilterFromExtension:(id)arg1; + (id)_identifiersToFiltersMapping; + (id)_extensionLock; + (id)_extensionPoint; @property(readonly) NSString *identifier; // @synthesize identifier=_identifier; @property(readonly) NSSet *allowedCertificateTypes; - (id)identityComparator; - (_Bool)shouldIncludeIdentity:(id)arg1; - (id)initWithExtension:(id)arg1; @end @interface IDEArchiveManager : NSObject { DVTDispatchLock *_archiveManagerLock; NSFileManager *_fileManager; NSMutableArray *_archives; _Bool _hasScanned; } + (void)initialize; + (id)sharedArchiveManager; - (BOOL)installArchiveAtPath:(id)arg1 revealInstalledArchive:(BOOL)arg2; - (id)_installedArchiveAtPath:(id)arg1; - (void)deleteArchives:(id)arg1; - (void)deleteArchive:(id)arg1; @property(copy) NSArray *archives; // @dynamic archives; - (void)_populateArchivesIfNeeded; - (void)_refreshArchives; - (id)_allPotentialArchivePathsWithin:(id)arg1; - (void)_checkPathForArchive:(id)arg1 andAddToArray:(id)arg2; - (BOOL)_couldBeArchivePath:(id)arg1; - (void)_revealArchiveAtPath:(id)arg1; - (void)archiveInstalledProductsDirectoryWithPath:(id)arg1 auxiliaryFilesDirectoryPath:(id)arg2 schemeName:(id)arg3 archiveName:(id)arg4 platform:(id)arg5 revealNewArchive:(BOOL)arg6 completionBlock:(id)arg7; - (id)init; // Remaining properties @property(readonly) NSMutableArray *mutableArchives; // @dynamic mutableArchives; @end @interface IDEArchivePackager : NSObject { NSString *_identifier; NSString *_displayName; } + (id)packagerForIdentifier:(id)arg1; + (id)packagerForPlatform:(id)arg1; + (id)allPackagers; + (id)_createPackagerFromExtension:(id)arg1; + (id)_identifiersToPackagersMapping; + (id)_platformsToPackagersMapping; + (id)_extensionLock; + (id)_extensionPoint; @property(copy) NSString *displayName; // @synthesize displayName=_displayName; @property(copy) NSString *identifier; // @synthesize identifier=_identifier; - (id)packagingOperationForArchive:(id)arg1 withCodesignIdentity:(id)arg2 installerIdentity:(id)arg3 andError:(id *)arg4; - (id)signingOperationForArchive:(id)arg1 withCodesignIdentity:(id)arg2 andError:(id *)arg3; - (id)identitiesForBundleIdentifier:(id)arg1 andIdentityFilter:(id)arg2; - (id)refreshIdentity; - (id)dontSignIdentity; @property(readonly) _Bool supportsInstallerSigning; @property(readonly) _Bool supportsCodeSigning; @end @interface IDEArchivePathsSnapshot : NSObject <NSCopying> { DVTFilePath *_archivePath; DVTFilePath *_archiveProductsPath; DVTFilePath *_archiveDSYMsPath; } @property(retain) DVTFilePath *archiveDSYMsPath; // @synthesize archiveDSYMsPath=_archiveDSYMsPath; @property(retain) DVTFilePath *archiveProductsPath; // @synthesize archiveProductsPath=_archiveProductsPath; @property(retain) DVTFilePath *archivePath; // @synthesize archivePath=_archivePath; - (id)copyWithZone:(struct _NSZone *)arg1; @end @interface IDEArchiveProcessingOperation : DVTOperationGroup { DVTFilePath *outputPath; } @property(retain) DVTFilePath *outputPath; // @synthesize outputPath; @end @interface IDEArchiveSchemeAction : IDESchemeAction { BOOL _includeSnapshotInArchive; BOOL _revealArchiveInOrganizer; NSString *_customArchiveName; NSString *_buildConfiguration; NSString *_packagerIdentifier; } + (id)keyPathsForValuesAffectingDefaultArchiveName; + (id)keyPathsForValuesAffectingSubtitle; @property(copy) NSString *packagerIdentifier; // @synthesize packagerIdentifier=_packagerIdentifier; @property(copy) NSString *buildConfiguration; // @synthesize buildConfiguration=_buildConfiguration; @property(copy) NSString *customArchiveName; // @synthesize customArchiveName=_customArchiveName; @property BOOL revealArchiveInOrganizer; // @synthesize revealArchiveInOrganizer=_revealArchiveInOrganizer; @property BOOL includeSnapshotInArchive; // @synthesize includeSnapshotInArchive=_includeSnapshotInArchive; - (void)addArchivingStrategy:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)setRevealArchiveInOrganizerFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setIncludeSnapshotInArchiveFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setPackagerIdentifierFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setCustomArchiveNameFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setBuildConfigurationFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)dvt_encodeRelationshipsWithXMLArchiver:(id)arg1; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (void)dvt_awakeFromXMLUnarchiver:(id)arg1; - (id)initFromXMLUnarchiver:(id)arg1 archiveVersion:(float)arg2; - (id)archivingOperationGroupForExecutionEnvironment:(id)arg1 error:(id *)arg2; @property(readonly) NSString *defaultArchiveName; - (BOOL)doesNonActionWork; - (id)subtitle; - (id)name; - (void)_commonInit; - (id)init; @end @interface IDEArchivedApplication : NSObject { IDEArchive *_archive; } + (id)keyPathsForValuesAffectingIconPath; + (id)keyPathsForValuesAffectingApplicationPath; + (id)_subBundlesInPath:(id)arg1; + (id)_codesigningIdentityFromApplicationPath:(id)arg1; + (id)_archivedApplicationIconPathsForArchive:(id)arg1; + (id)_archivedApplicationShortBundleVersionStringForArchive:(id)arg1; + (id)_archivedApplicationPathForArchive:(id)arg1; + (id)_archivedApplicationSigningIdentityForArchive:(id)arg1; + (id)_archivedApplicationBundleIdentifierForArchive:(id)arg1; + (id)_archivedApplicationInfoDictForArchive:(id)arg1; + (BOOL)validArchivedApplicationInfoInArchive:(id)arg1; + (id)archivedApplicationInfoForApplicationInArchiveProductsDirectory:(id)arg1; + (id)_soleArchivedApplicationRelativePathInDirectory:(id)arg1; @property IDEArchive *archive; // @synthesize archive=_archive; @property(readonly) NSArray *iconPaths; @property(readonly) DVTFilePath *applicationPath; @property(readonly) NSString *shortBundleVersionString; @property(readonly) NSString *signingIdentity; @property(readonly) NSString *bundleIdentifier; @property(readonly) NSArray *subBundles; - (id)initWithArchive:(id)arg1; @end @interface IDEArchivingOperation : DVTOperation { NSString *_archiveName; NSString *_schemeName; DVTPlatform *_platform; DVTFilePath *_archiveBuildFolder; DVTFilePath *_dstrootPath; DVTFilePath *_symrootPath; DVTFilePath *_objrootPath; DVTFilePath *_sharedPrecompsPath; IDEArchivePathsSnapshot *_archiveSnapshot; BOOL _revealCreatedArchive; } @property(readonly) IDEArchivePathsSnapshot *archiveSnapshot; // @synthesize archiveSnapshot=_archiveSnapshot; - (void)main; - (id)preperatoryOperationForArchiveBuild; - (id)overridingBuildSettingsForArchiveBuild; - (id)initWithArchiveName:(id)arg1 schemeName:(id)arg2 workspaceArena:(id)arg3 platform:(id)arg4 revealCreatedArchive:(BOOL)arg5; @end @interface IDEArchivingOperationGroup : DVTOperationGroup { IDEArchivingOperation *_archivingOperation; IDEBuildOperationGroup *_buildForArchiveOperation; } + (id)operationGroupWithSuboperations:(id)arg1; + (id)operationGroupWithArchivingOperation:(id)arg1 otherOperations:(id)arg2; @property(retain) IDEBuildOperationGroup *buildForArchiveOperation; // @synthesize buildForArchiveOperation=_buildForArchiveOperation; @property(readonly) IDEArchivingOperation *archivingOperation; // @synthesize archivingOperation=_archivingOperation; @end @interface IDEBatchFindHistoryItem : NSObject { NSString *_findString; NSString *_description; id _payload; NSString *_archivePath; } @property(retain) id payload; // @synthesize payload=_payload; @property(readonly) NSString *description; // @synthesize description=_description; @property(readonly) NSString *findString; // @synthesize findString=_findString; - (void)_unarchivePayloadFromPath:(id)arg1; - (void)archivePayloadToPath:(id)arg1; - (BOOL)isEqual:(id)arg1; - (unsigned long long)hash; - (id)initWithFindString:(id)arg1 description:(id)arg2 payload:(id)arg3; @end @interface IDEBatchFindManager : NSObject <DVTInvalidation> { NSMutableArray *_history; unsigned long long _maxHistoryCount; DVTMapTable *_findContexts; NSString *_archivePath; BOOL _isInvalidated; DVTStackBacktrace *_invalidationBacktrace; } @property(readonly) DVTStackBacktrace *invalidationBacktrace; // @synthesize invalidationBacktrace=_invalidationBacktrace; @property(readonly) NSArray *findHistory; // @synthesize findHistory=_history; @property(nonatomic) unsigned long long maxHistoryCount; // @synthesize maxHistoryCount=_maxHistoryCount; - (id)batchFindContextForWorkspaceTabController:(id)arg1; - (void)setBatchFindContext:(id)arg1 forWorkspaceTabController:(id)arg2; - (id)historyItemForDescription:(id)arg1; - (void)clearHistory; - (void)addHistoryItem:(id)arg1; - (void)_removeExtraHistory; @property(readonly, nonatomic, getter=isValid) BOOL valid; - (void)invalidate; - (id)init; @end @interface IDEBreakpointActionArchivingProxy : NSObject { NSString *_actionExtensionID; IDEBreakpointAction *_proxiedAction; BOOL _wasSuccessfullyUnarchived; } + (id)actionProxyForAction:(id)arg1; @property(readonly) BOOL wasSuccessfullyUnarchived; // @synthesize wasSuccessfullyUnarchived=_wasSuccessfullyUnarchived; @property(readonly) IDEBreakpointAction *proxiedAction; // @synthesize proxiedAction=_proxiedAction; @property(readonly) NSString *actionExtensionID; // @synthesize actionExtensionID=_actionExtensionID; - (void)addActionContent:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)setActionTypeFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)dvt_encodeRelationshipsWithXMLArchiver:(id)arg1; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; @end @interface IDEBreakpointBucket : NSObject <DVTXMLUnarchiving> { int _type; IDEContainer<DVTCustomDataStoring> *_archivingContainer; DVTCustomDataSpecifier *_archivingDataSpecifier; NSString *_archivingContainerItemBaseStandardizedPathString; NSString *_displayName; NSMutableArray *_breakpoints; NSMutableArray *_fileBreakpoints; NSMutableArray *_symbolicBreakpoints; NSMutableArray *_exceptionBreakpoints; BOOL _currentlyDecoding; BOOL _xcode3MigrationDidntFindPersistedBreakpointsOnCreation; } + (id)keyPathsForValuesAffectingDisplayName; + (id)keyPathsForValuesAffectingShared; + (id)userGlobalBucket:(id *)arg1; + (void)initialize; @property(readonly) BOOL xcode3MigrationDidntFindPersistedBreakpointsOnCreation; // @synthesize xcode3MigrationDidntFindPersistedBreakpointsOnCreation=_xcode3MigrationDidntFindPersistedBreakpointsOnCreation; @property(copy, nonatomic) NSString *displayName; // @synthesize displayName=_displayName; @property(readonly) IDEContainer<DVTCustomDataStoring> *archivingContainer; // @synthesize archivingContainer=_archivingContainer; @property(readonly) int type; // @synthesize type=_type; - (void)addExceptionBreakpoints:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addSymbolicBreakpoints:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addFileBreakpoints:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)dvt_encodeRelationshipsWithXMLArchiver:(id)arg1; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (id)initFromXMLUnarchiver:(id)arg1 archiveVersion:(float)arg2; - (void)dvt_awakeFromXMLUnarchiver:(id)arg1; - (void)_handleIndividualKindOfBreakpointsChanged:(id)arg1; - (id)_displayNameForWorkspace; - (id)archivingContainerItemBaseStandardizedPathString; - (void)_persistBreakpoints; - (void)notifyPersistencyStateChanged; - (BOOL)removeBreakpoint:(id)arg1; - (void)addBreakpoint:(id)arg1; @property(readonly, getter=isShared) BOOL shared; - (BOOL)containsBreakpoint:(id)arg1; - (id)_individualKindOfBreakpointArrayForBreakpoint:(id)arg1; - (id)initWithType:(int)arg1 archivingContainer:(id)arg2 error:(id *)arg3; - (BOOL)_decodeFromContainer:(id *)arg1; - (void)_encodeToContainer; - (BOOL)_shouldEncodeDecode; @property(readonly) DVTCustomDataSpecifier *archivingDataSpecifier; // @dynamic archivingDataSpecifier; - (id)_archivingDataStore; - (id)init; // Remaining properties @property(retain) NSArray *breakpoints; // @dynamic breakpoints; @property(retain) NSArray *exceptionBreakpoints; // @dynamic exceptionBreakpoints; @property(retain) NSArray *fileBreakpoints; // @dynamic fileBreakpoints; @property(readonly) NSMutableArray *mutableBreakpoints; // @dynamic mutableBreakpoints; @property(readonly) NSMutableArray *mutableExceptionBreakpoints; // @dynamic mutableExceptionBreakpoints; @property(readonly) NSMutableArray *mutableFileBreakpoints; // @dynamic mutableFileBreakpoints; @property(readonly) NSMutableArray *mutableSymbolicBreakpoints; // @dynamic mutableSymbolicBreakpoints; @property(retain) NSArray *symbolicBreakpoints; // @dynamic symbolicBreakpoints; @end @interface IDEBreakpointLocation : IDEBreakpoint { IDEBreakpoint *_parentBreakpoint; DVTTextDocumentLocation *_documentLocation; NSString *_symbolName; unsigned long long _address; NSString *_urlString; NSString *_timestampString; long long _startingColumnNumber; long long _endingColumnNumber; long long _startingLineNumber; long long _endingLineNumber; NSString *_characterRangeString; } + (id)keyPathsForValuesAffectingCondition; @property(readonly) unsigned long long address; // @synthesize address=_address; @property(readonly) NSString *symbolName; // @synthesize symbolName=_symbolName; @property(readonly) DVTTextDocumentLocation *documentLocation; // @synthesize documentLocation=_documentLocation; @property(readonly) IDEBreakpoint *parentBreakpoint; // @synthesize parentBreakpoint=_parentBreakpoint; - (void)dvt_awakeFromXMLUnarchiver:(id)arg1; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (id)initFromXMLUnarchiver:(id)arg1 archiveVersion:(float)arg2; - (BOOL)_isTextDocumentLocationEqual:(id)arg1; - (unsigned long long)hash; - (BOOL)isEqual:(id)arg1; - (id)mutableLocations; - (id)locations; - (id)condition; - (void)primitiveSetParentBreakpoint:(id)arg1; @property(readonly) DVTTextDocumentLocation *zeroBasedDocumentLocation; - (id)displayName; - (id)initWithBreakpoint:(id)arg1 documentTextLocation:(id)arg2 symbolName:(id)arg3 address:(unsigned long long)arg4; @end @interface IDEBreakpointManager : NSObject { IDEWorkspace *_workspace; id <DVTObservingToken> _workspaceReferencedContainersToken; IDEBreakpointBucket *_defaultBucket; IDEBreakpointBucket *_userWorkspaceBucket; NSMutableArray *_userProjectBuckets; IDEBreakpointBucket *_userGlobalBucket; IDEBreakpointBucket *_watchpointBucket; IDEBreakpointBucket *_sharedWorkspaceBucket; NSMutableArray *_sharedProjectBuckets; NSMapTable *_userToSharedBuckets; NSMapTable *_sharedToUserBuckets; NSMutableArray *_breakpoints; NSMutableArray *_fileBreakpoints; NSMutableArray *_symbolicBreakpoints; NSMutableArray *_exceptionBreakpoints; BOOL _breakpointsActivated; } + (id)_kindsOfManagedBreakpoints; + (BOOL)_isBreakpointAtLocation:(id)arg1 location:(id)arg2; + (void)initialize; @property BOOL breakpointsActivated; // @synthesize breakpointsActivated=_breakpointsActivated; @property(readonly) IDEBreakpointBucket *sharedWorkspaceBucket; // @synthesize sharedWorkspaceBucket=_sharedWorkspaceBucket; @property(readonly) IDEBreakpointBucket *userGlobalBucket; // @synthesize userGlobalBucket=_userGlobalBucket; @property(readonly) IDEBreakpointBucket *userWorkspaceBucket; // @synthesize userWorkspaceBucket=_userWorkspaceBucket; @property(retain, nonatomic) IDEBreakpointBucket *defaultBucket; // @synthesize defaultBucket=_defaultBucket; @property(readonly) IDEWorkspace *workspace; // @synthesize workspace=_workspace; - (void)_importLegacyBreakpointsIfNecessary:(id)arg1 userProjectBucket:(id)arg2; - (void)observeValueForKeyPath:(id)arg1 ofObject:(id)arg2 change:(id)arg3 context:(void *)arg4; - (void)_handleBreakpointsChanged:(id)arg1 forArray:(id)arg2; - (void)_addListenersToBucketsBreakpointLists:(id)arg1; - (BOOL)_canSetBreakpointAtURL:(id)arg1; - (void)setBreakpointShared:(id)arg1 shared:(BOOL)arg2; - (id)fileBreakpointAtDocumentLocation:(id)arg1; - (id)pathOfModulesMatchingFileBreakpoint:(id)arg1; - (void)removeBreakpoint:(id)arg1; - (BOOL)_managesBucket:(id)arg1; - (void)_addBreakpoint:(id)arg1 toBucket:(id)arg2; - (void)addBreakpoint:(id)arg1; - (id)createWatchpoint:(id)arg1 variableName:(id)arg2; - (id)_createAddressBreakpointFrom:(id)arg1 usingLineOfDisassembly:(id)arg2; - (id)createAddressBreakpoint:(id)arg1; - (id)createSymbolicBreakpointWithSymbolName:(id)arg1 moduleName:(id)arg2; - (id)createExceptionBreakpoint; - (id)createFileBreakpointAtDocumentLocation:(id)arg1; - (id)createBreakpointAtDocumentLocation:(id)arg1 usingStringAtLine:(id)arg2; - (void)_handleWorkspaceContainerRemoved:(id)arg1; - (void)_handleWorkspaceContainerInserted:(id)arg1; - (void)_handleWorkspaceContainersChanges:(id)arg1; - (id)initWithWorkspace:(id)arg1 error:(id *)arg2; // Remaining properties @property(copy) NSArray *breakpoints; // @dynamic breakpoints; @property(copy) NSArray *exceptionBreakpoints; // @dynamic exceptionBreakpoints; @property(readonly) NSArray *fileBreakpoints; // @dynamic fileBreakpoints; @property(readonly) NSMutableArray *mutableBreakpoints; // @dynamic mutableBreakpoints; @property(readonly) NSMutableArray *mutableExceptionBreakpoints; // @dynamic mutableExceptionBreakpoints; @property(readonly) NSMutableArray *mutableFileBreakpoints; // @dynamic mutableFileBreakpoints; @property(readonly) NSMutableArray *mutableSharedProjectBuckets; // @dynamic mutableSharedProjectBuckets; @property(readonly) NSMutableArray *mutableSymbolicBreakpoints; // @dynamic mutableSymbolicBreakpoints; @property(readonly) NSMutableArray *mutableUserProjectBuckets; // @dynamic mutableUserProjectBuckets; @property(retain) NSArray *sharedProjectBuckets; // @dynamic sharedProjectBuckets; @property(copy) NSArray *symbolicBreakpoints; // @dynamic symbolicBreakpoints; @property(retain) NSArray *userProjectBuckets; // @dynamic userProjectBuckets; @end @interface IDEScriptingElement : NSObject { id _container; id _accessor; } @property(retain) id accessor; // @synthesize accessor=_accessor; @property(retain) id container; // @synthesize container=_container; - (id)objectSpecifier; - (id)objectSpecifierAsProperty; - (id)objectSpecifierByIndex; - (id)objectSpecifierByName:(id)arg1; - (id)objectSpecifierByID:(id)arg1; - (id)newScriptingObjectOfClass:(Class)arg1 forValueForKey:(id)arg2 withContentsValue:(id)arg3 properties:(id)arg4; - (void)setScriptingID:(id)arg1; - (void)setName:(id)arg1; - (id)description; @end @interface IDEScriptingWrapper : IDEScriptingElement { id _client; } + (id)wrapSingleton:(id)arg1 inWrapper:(Class)arg2 forContainer:(id)arg3 andAccessor:(id)arg4; + (id)wrapItems:(id)arg1 inWrapper:(Class)arg2 forContainer:(id)arg3 andAccessor:(id)arg4; + (id)wrapItem:(id)arg1 inWrapper:(Class)arg2 forContainer:(id)arg3 andAccessor:(id)arg4; @property(retain) id client; // @synthesize client=_client; - (id)objectSpecifier; - (BOOL)isEqual:(id)arg1; - (id)scriptingID; - (id)name; - (id)description; @end @interface IDEContainerItemWrapper : IDEScriptingWrapper { } - (void)setProject:(id)arg1; - (id)project; - (void)setScriptingID:(id)arg1; - (id)scriptingID; - (void)setScriptingContainer:(id)arg1; - (id)scriptingContainer; @end @interface IDEBreakpointWrapper : NSObject /*ProjectItemWrapper*/ { } - (id)name; - (void)setEnabled:(BOOL)arg1; - (BOOL)enabled; - (void)setCondition:(id)arg1; - (id)condition; - (void)setAutomaticallyContinue:(BOOL)arg1; - (BOOL)automaticallyContinue; @end @interface IDEBuildActionEntry : NSObject <DVTXMLUnarchiving> { BOOL _isExplicitEntry; BOOL _shouldBuildForTesting; BOOL _mustBuildForTesting; BOOL _shouldBuildForRunning; BOOL _mustBuildForRunning; BOOL _shouldBuildForProfiling; BOOL _mustBuildForProfiling; BOOL _shouldBuildForArchiving; BOOL _shouldBuildForAnalyzing; IDESchemeBuildableReference *_buildableReference; IDEBuildSchemeAction *_buildAction; } + (id)keyPathsForValuesAffectingCanRemoveEntry; + (id)keyPathsForValuesAffectingCanEditBuildForProfiling; + (id)keyPathsForValuesAffectingShouldBuildForProfiling; + (id)keyPathsForValuesAffectingCanEditBuildForRunning; + (id)keyPathsForValuesAffectingShouldBuildForRunning; + (id)keyPathsForValuesAffectingCanEditBuildForTesting; + (id)keyPathsForValuesAffectingShouldBuildForTesting; @property(retain) IDEBuildSchemeAction *buildAction; // @synthesize buildAction=_buildAction; @property(readonly) IDESchemeBuildableReference *buildableReference; // @synthesize buildableReference=_buildableReference; @property(nonatomic) BOOL mustBuildForProfiling; // @synthesize mustBuildForProfiling=_mustBuildForProfiling; @property(nonatomic) BOOL mustBuildForRunning; // @synthesize mustBuildForRunning=_mustBuildForRunning; @property(nonatomic) BOOL mustBuildForTesting; // @synthesize mustBuildForTesting=_mustBuildForTesting; @property(readonly) BOOL isExplicitEntry; // @synthesize isExplicitEntry=_isExplicitEntry; - (void)addBuildableReference:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)setBuildForAnalyzingFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setBuildForArchivingFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setBuildForProfilingFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setBuildForRunningFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setBuildForTestingFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)dvt_encodeRelationshipsWithXMLArchiver:(id)arg1; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (void)enableBuildEntry; - (void)disableBuildEntry; @property(readonly) BOOL canRemoveEntry; @property(readonly) BOOL canEditBuildForAnalyzing; @property BOOL shouldBuildForAnalyzing; @property(readonly) BOOL canEditBuildForArchiving; @property BOOL shouldBuildForArchiving; @property(readonly) BOOL canEditBuildForProfiling; @property BOOL shouldBuildForProfiling; @property(readonly) BOOL canEditBuildForRunning; @property BOOL shouldBuildForRunning; @property(readonly) BOOL canEditBuildForTesting; @property BOOL shouldBuildForTesting; - (void)_makeExplicit; - (void)dvt_awakeFromXMLUnarchiver:(id)arg1; - (id)initFromXMLUnarchiver:(id)arg1 archiveVersion:(float)arg2; - (id)initWithBuildableReference:(id)arg1 buildAction:(id)arg2 explicityManaged:(BOOL)arg3; @end @interface IDEBuildArbitrator : NSObject { NSOperationQueue *_serializationQueue; NSMapTable *_fileProducingBuildTasksByFilePath; DVTMapTable *_registeringBuildersByFilePath; DVTMapTable *_registeredFilePathsByBuilder; } + (id)sharedBuildArbitrator; + (void)initialize; - (void)unregisterAllBuildTasksForBuilder:(id)arg1; - (void)unregisterBuildTaskWhichProducesFileAtPath:(id)arg1 forBuilder:(id)arg2; - (id)registerBuildTask:(id)arg1 asProducerOfFileAtPath:(id)arg2 forBuilder:(id)arg3; - (id)init; @end @interface IDEBuildFolder : NSObject { NSString *_path; IDEBuilder *_currentBuilder; } + (id)sharedBuildFolderWithPath:(id)arg1 error:(id *)arg2; @property(retain) IDEBuilder *currentBuilder; // @synthesize currentBuilder=_currentBuilder; @property(readonly) NSString *path; // @synthesize path=_path; - (id)description; - (void)unregisterCurrentBuilder:(id)arg1; - (void)registerCurrentBuilder:(id)arg1; - (void)finalize; - (id)init; - (id)initWithPath:(id)arg1 error:(id *)arg2; @end @interface IDEBuildFolderSettings : NSObject { int buildLocationStyle; NSString *sharedBuildFolderName; int customBuildLocationType; NSString *customBuildProductsPath; NSString *customBuildIntermediatesPath; } + (id)buildFolderSettingsForWorkspaceSettings:(id)arg1; - (id)description; @end @interface IDEIssueProvider : NSObject <DVTInvalidation> { BOOL _isInvalidated; IDEIssueManager *_issueManager; DVTExtension *_extension; IDEIssueProviderSession *_session; DVTStackBacktrace *_invalidationBacktrace; } + (int)providerType; @property(retain) IDEIssueProviderSession *_session; // @synthesize _session; @property(readonly) DVTStackBacktrace *invalidationBacktrace; // @synthesize invalidationBacktrace=_invalidationBacktrace; @property(readonly) DVTExtension *extension; // @synthesize extension=_extension; @property(readonly) IDEIssueManager *issueManager; // @synthesize issueManager=_issueManager; @property(readonly) BOOL _filterIssuesByActiveScheme; - (id)logDocumentLocationForIssue:(id)arg1; - (id)activityLogRecordForIssue:(id)arg1; - (void)endProviderSession; - (void)startProviderSession; - (id)imageNameForIssue:(id)arg1; - (id)imageNameForIssueTypeIdentifier:(id)arg1; - (id)displayNameForIssueTypeIdentifier:(id)arg1; - (void)addIssues:(id)arg1 forProviderContext:(id)arg2 container:(id)arg3 blueprint:(id)arg4; - (void)setIssues:(id)arg1 forProviderContext:(id)arg2 container:(id)arg3 blueprint:(id)arg4; - (id)description; @property(readonly, nonatomic, getter=isValid) BOOL valid; - (void)invalidate; - (id)initWithIssueManager:(id)arg1 extension:(id)arg2; - (id)init; @end @interface IDEBuildIssueProvider : IDEIssueProvider { NSMapTable *_blueprintToLatestLogSectionObserverMap; NSMapTable *_buildLogToLogNotificationObserverMap; NSMapTable *_blueprintToLatestBuildLogSectionMap; id <DVTObservingToken> _activeBuildOperationStateObserverToken; IDEBuildOperation *_activeBuildOperation; NSMutableSet *_pendingLogSections; IDELogStore *_logStore; NSMapTable *_blueprintToLogRecordMap; } + (int)providerType; + (id)_backgroundLoadingQueue; - (id)ideModelObjectTypeIdentifier; - (id)imageNameForIssue:(id)arg1; - (id)displayNameForIssueTypeIdentifier:(id)arg1; - (void)_buildLogDidUpdateItems:(id)arg1 blueprint:(id)arg2; - (void)_scanIssuesInLog:(id)arg1 forBlueprint:(id)arg2 intoArray:(id)arg3 usingSeenMessages:(id)arg4; - (void)_addIssueForMessage:(id)arg1 blueprint:(id)arg2 intoArray:(id)arg3 usingSeenMessages:(id)arg4 wasFetchedFromCache:(BOOL)arg5; - (void)_observeLogSection:(id)arg1 forBlueprint:(id)arg2; - (void)_currentBuildOperationDidChange; - (void)_blueprintsDidChange; - (void)_reactToCleanBuildFolder; - (void)_forgetBlueprint:(id)arg1; - (void)_latestBuildLogDidChange; - (void)_workspaceFinishedLoading; - (void)invalidate; - (id)initWithIssueManager:(id)arg1 extension:(id)arg2; @end @interface IDELogProvider : NSObject <DVTInvalidation> { BOOL _isInvalidated; id _domainItem; DVTStackBacktrace *_invalidationBacktrace; } @property(readonly) DVTStackBacktrace *invalidationBacktrace; // @synthesize invalidationBacktrace=_invalidationBacktrace; @property(readonly) id domainItem; // @synthesize domainItem=_domainItem; - (id)ideModelObjectTypeIdentifier; @property(readonly) NSArray *logRecords; @property(readonly, nonatomic, getter=isValid) BOOL valid; - (void)invalidate; - (id)initWithDomainItem:(id)arg1; @end @interface IDEBuildLogProvider : IDELogProvider { } + (id)keyPathsForValuesAffectingLogRecords; - (id)ideModelObjectTypeIdentifier; - (id)logRecords; @end @interface IDEExecutionEnvironmentAwareOperation : DVTOperation <IDEExecutingOperationTrackable> { IDEExecutionEnvironment *_executionContext; IDEExecutionOperationTracker *_mainExecutionTracker; } @property(readonly) IDEExecutionEnvironment *executionEnvironment; // @synthesize executionEnvironment=_executionContext; - (void)registerTracker:(id)arg1; - (id)initWithExecutionEnvironment:(id)arg1; @end @interface IDEBuildOperation : IDEExecutionEnvironmentAwareOperation { IDEBuildOperationDescription *_buildOperationDescription; int _purpose; int _buildCommand; NSArray *_buildables; IDEBuildParameters *_buildParameters; NSMapTable *_buildParametersForBuildable; BOOL _parallelizeBuildables; BOOL _buildImplicitDependencies; BOOL _restorePersistedBuildResults; int _state; int _result; IDEActivityLogSection *_buildLog; float _percentComplete; IDEBuildOperationStatus *_buildStatus; DVTDispatchLock *_operationLock; NSOperationQueue *_builderQueue; IDEBuildOperationQueueSet *_buildTaskQueueSet; NSMapTable *_buildablesToBuilders; unsigned long long _buildersBuilt; id <DVTCancellationBlockCompletion> _cancellationToken; NSMutableSet *_generatedFileInfo; NSMutableDictionary *_copiedFilePathsMap; NSMutableArray *_buildSetupErrorStrings; NSMutableArray *_buildSetupWarningStrings; } + (id)buildParametersForPurpose:(int)arg1 configurationName:(id)arg2 workspaceArena:(id)arg3 overridingProperties:(id)arg4 activeRunDestination:(id)arg5 activeArchitecture:(id)arg6; + (void)initialize; @property(retain) IDEBuildOperationStatus *buildStatus; // @synthesize buildStatus=_buildStatus; @property float percentComplete; // @synthesize percentComplete=_percentComplete; @property unsigned long long buildersBuilt; // @synthesize buildersBuilt=_buildersBuilt; @property(readonly) NSMapTable *buildablesToBuilders; // @synthesize buildablesToBuilders=_buildablesToBuilders; @property(readonly) IDEBuildOperationQueueSet *buildTaskQueueSet; // @synthesize buildTaskQueueSet=_buildTaskQueueSet; @property(readonly) NSOperationQueue *builderQueue; // @synthesize builderQueue=_builderQueue; @property(readonly) int result; // @synthesize result=_result; @property(readonly) int state; // @synthesize state=_state; @property(readonly) IDEActivityLogSection *buildLog; // @synthesize buildLog=_buildLog; @property(readonly) BOOL restorePersistedBuildResults; // @synthesize restorePersistedBuildResults=_restorePersistedBuildResults; @property(readonly) BOOL parallelizeBuildables; // @synthesize parallelizeBuildables=_parallelizeBuildables; @property(readonly) BOOL buildImplicitDependencies; // @synthesize buildImplicitDependencies=_buildImplicitDependencies; @property(readonly) IDEBuildParameters *buildParameters; // @synthesize buildParameters=_buildParameters; @property(readonly) NSArray *buildables; // @synthesize buildables=_buildables; @property(readonly) int buildCommand; // @synthesize buildCommand=_buildCommand; @property(readonly) int purpose; // @synthesize purpose=_purpose; @property(readonly) IDEBuildOperationDescription *buildOperationDescription; // @synthesize buildOperationDescription=_buildOperationDescription; - (void)stopWithResultCode:(int)arg1; - (void)lastBuilderDidFinish; - (void)_cancelAllBuilders; - (void)start; - (void)addOperationsForBuildables; - (id)_addOperationForBuildableIfNeeded:(id)arg1; - (id)_addOperationForBuildableIfNeeded:(id)arg1 recursionDetectionArray:(id)arg2; - (void)setupCallbackBlocksOnNewBuilder:(id)arg1; - (void)_updateBuildStatusWithStateDescription:(id)arg1 fileProgressString:(id)arg2; - (BOOL)isFinished; - (BOOL)isExecuting; - (BOOL)isConcurrent; - (void)changeMaximumOperationConcurrencyUsingThrottleFactor:(double)arg1; - (id)copiedFilePathsMap; - (void)addCopiedFilePathsFromDictionary:(id)arg1; - (void)addBuildSetupWarningString:(id)arg1; - (void)addBuildSetupErrorString:(id)arg1; - (void)addGeneratedFileInfo:(id)arg1; @property(retain) NSString *localizedStateDescription; @property(readonly) NSString *activeArchitecture; @property(readonly) IDERunDestination *activeRunDestination; @property(readonly) IDEOverridingBuildProperties *overridingProperties; @property(readonly) NSString *configurationName; - (id)buildParametersForBuildable:(id)arg1; - (void)setBuildParameters:(id)arg1 forBuildable:(id)arg2; - (id)initWithBuildOperationDescription:(id)arg1 purpose:(int)arg2 buildCommand:(int)arg3 configurationName:(id)arg4 buildables:(id)arg5 buildLog:(id)arg6 executionEnvironment:(id)arg7 overridingProperties:(id)arg8 activeRunDestination:(id)arg9 activeArchitecture:(id)arg10 parallelizeBuildables:(BOOL)arg11 buildImplicitDependencies:(BOOL)arg12 restorePersistedBuildResults:(BOOL)arg13; @end @interface IDEBuildOperationDescription : NSObject { NSString *_objectToBuildName; NSString *_actionName; NSString *_actionInProgress; } + (id)buildOperationDescriptionForSchemeCommand:(int)arg1 buildPurpose:(int)arg2 buildCommand:(int)arg3 schemeName:(id)arg4; @property(readonly) NSString *actionInProgress; // @synthesize actionInProgress=_actionInProgress; @property(readonly) NSString *actionName; // @synthesize actionName=_actionName; @property(readonly) NSString *objectToBuildName; // @synthesize objectToBuildName=_objectToBuildName; - (id)initWithObjectToBuildName:(id)arg1 actionName:(id)arg2 actionInProgress:(id)arg3; @end @interface IDEBuildOperationGroup : DVTOperationGroup { IDEBuildOperation *_buildOperation; } + (id)operationGroupWithSuboperations:(id)arg1; + (id)operationGroupWithBuildOperation:(id)arg1 otherOperations:(id)arg2; @property(readonly) IDEBuildOperation *buildOperation; // @synthesize buildOperation=_buildOperation; @end @interface IDEBuildOperationQueueSet : NSObject { NSString *_identifier; NSOperationQueue *_copyTaskQueue; unsigned long long _slidingMaxNumberOfConcurrentCompileTasks; BOOL _didReduceConcurrencyDueToResourcePressure; NSOperationQueue *_compileTaskQueue; NSOperationQueue *_linkTaskQueue; DVTDispatchLock *_updateConcurrencyLock; NSDate *_lastCheckedResourcePressure; NSDate *_lastIncreasedConcurrency; } + (id)sharedBuildTaskQueueSet; + (unsigned long long)maxNumberOfConcurrentCompileTasks; + (void)setMaxNumberOfConcurrentCompileTasks:(unsigned long long)arg1; + (void)initialize; @property(readonly) NSOperationQueue *linkTaskQueue; // @synthesize linkTaskQueue=_linkTaskQueue; @property(readonly) NSOperationQueue *compileTaskQueue; // @synthesize compileTaskQueue=_compileTaskQueue; @property(readonly) NSOperationQueue *copyTaskQueue; // @synthesize copyTaskQueue=_copyTaskQueue; @property(readonly) NSString *identifier; // @synthesize identifier=_identifier; - (void)changeMaximumOperationConcurrencyUsingThrottleFactor:(double)arg1; - (void)resetOperationConcurrency; - (void)updateOperationConcurrency; - (id)initWithIdentifier:(id)arg1; @end @interface IDEBuildOperationStatus : NSObject { NSString *_stateDescription; NSString *_fileProgressString; } @property(copy) NSString *fileProgressString; // @synthesize fileProgressString=_fileProgressString; @property(copy) NSString *stateDescription; // @synthesize stateDescription=_stateDescription; - (id)copyWithZone:(struct _NSZone *)arg1; - (id)initWithStateDescription:(id)arg1; @end @interface IDEBuildParameters : NSObject { IDEWorkspaceArenaSnapshot *_workspaceArenaSnapshot; NSString *_buildAction; NSString *_configurationName; IDERunDestination *_activeRunDestination; NSString *_activeArchitecture; IDEOverridingBuildProperties *_overridingProperties; NSString *_stateKey; unsigned long long _hash; } @property(readonly) IDEOverridingBuildProperties *overridingProperties; // @synthesize overridingProperties=_overridingProperties; @property(readonly) NSString *activeArchitecture; // @synthesize activeArchitecture=_activeArchitecture; @property(readonly) IDERunDestination *activeRunDestination; // @synthesize activeRunDestination=_activeRunDestination; @property(readonly) NSString *configurationName; // @synthesize configurationName=_configurationName; @property(readonly) NSString *buildAction; // @synthesize buildAction=_buildAction; @property(readonly) IDEWorkspaceArenaSnapshot *workspaceArenaSnapshot; // @synthesize workspaceArenaSnapshot=_workspaceArenaSnapshot; - (id)description; - (unsigned long long)hash; - (BOOL)isEqual:(id)arg1; - (id)_componentPropertyNames; - (id)mutableCopyWithZone:(struct _NSZone *)arg1; - (id)copyWithZone:(struct _NSZone *)arg1; - (id)_copyUsingTargetBuildParametersClass:(Class)arg1; - (id)init; @end @interface IDEBuildSchemeAction : IDESchemeAction { NSMutableArray *_legacyBuildableReferences; BOOL _parallelizeBuildables; BOOL _buildImplicitDependencies; NSString *_legacyBuildConfiguration; NSMutableArray *_buildActionEntries; IDEBuildActionEntry *_launchRunnableEntry; IDEBuildActionEntry *_profileRunnableEntry; NSMutableArray *_testBuildableEntries; BOOL _buildablesDidChangeNotificationEnabled; BOOL _isBuildablesDidChangeNotificationPending; NSMapTable *_overridingBuildPropertiesForBuildable; } + (id)keyPathsForValuesAffectingAvailableBuildConfigurations; + (id)keyPathsForValuesAffectingSubtitle; + (void)initialize; @property(nonatomic, getter=isBuildablesDidChangeNotificationEnabled) BOOL buildablesDidChangeNotificationEnabled; // @synthesize buildablesDidChangeNotificationEnabled=_buildablesDidChangeNotificationEnabled; @property BOOL buildImplicitDependencies; // @synthesize buildImplicitDependencies=_buildImplicitDependencies; @property BOOL parallelizeBuildables; // @synthesize parallelizeBuildables=_parallelizeBuildables; - (void)setBuildConfigurationFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)addBuildRoles:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addBuildActionEntries:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addBuildableProductReferences:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)setBuildImplicitDependenciesFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setParallelizeBuildablesFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)dvt_encodeRelationshipsWithXMLArchiver:(id)arg1; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (void)dvt_awakeFromXMLUnarchiver:(id)arg1; - (id)overridingBuildPropertiesForBuildable:(id)arg1; - (void)setOverridingBuildProperties:(id)arg1 forBuildable:(id)arg2; - (void)postBuildablesDidChangeNotification; - (id)_matcherBlockForCommand:(SEL)arg1; - (id)buildablesByConfiguration; - (id)buildableReferencesForSchemeCommand:(int)arg1; - (id)buildableReferences; - (id)buildablesForSchemeCommand:(int)arg1 includingDependencies:(BOOL)arg2; - (id)buildablesForAllSchemeCommandsIncludingDependencies:(BOOL)arg1; - (id)_buildablesIncludingDependencies:(BOOL)arg1 restrictToSchemeCommand:(id)arg2; - (id)buildableReferenceForBuildable:(id)arg1; @property(readonly) NSArray *availableBuildConfigurations; - (id)buildDirectoryPathsForBuildParameters:(id)arg1 schemeCommand:(int)arg2; - (void)moveBuildActionEntriesAtIndexes:(id)arg1 toIndex:(unsigned long long)arg2; - (id)addBuildActionEntryForBuildableReference:(id)arg1; - (void)removeBuildActionEntryAtIndex:(unsigned long long)arg1; - (void)_setupImplicitBuildActionEntries; - (BOOL)doesNonActionWork; - (id)subtitle; - (id)name; - (id)cleanOperationForExecutionEnvironment:(id)arg1 orderedBuildables:(id)arg2 buildConfiguration:(id)arg3 buildLog:(id)arg4 overridingProperties:(id)arg5 activeRunDestination:(id)arg6 activeArchitecture:(id)arg7 error:(id *)arg8; - (id)buildOperationForExecutionEnvironment:(id)arg1 buildPurpose:(int)arg2 buildCommand:(int)arg3 schemeCommand:(int)arg4 filePath:(id)arg5 buildConfiguration:(id)arg6 buildLog:(id)arg7 overridingProperties:(id)arg8 activeRunDestination:(id)arg9 activeArchitecture:(id)arg10 restorePersistedBuildResults:(BOOL)arg11 error:(id *)arg12; - (void)setRunContext:(id)arg1; - (id)initFromXMLUnarchiver:(id)arg1 archiveVersion:(float)arg2; - (id)init; - (void)_commonInit; // Remaining properties @property(readonly) NSArray *buildActionEntries; // @dynamic buildActionEntries; @property(readonly) NSMutableArray *mutableBuildActionEntries; // @dynamic mutableBuildActionEntries; @end @interface IDEBuildTask : DVTOperation { NSString *_identifier; NSDictionary *_properties; IDEActivityLogSection *_activityLogSection; id _didStartExecutingBlock; id _activityLogSectionDidChangeBlock; id _exitCodeWasSetBlock; id _updateBuildStatusForBuildTaskBlock; int _exitCode; BOOL _restorePersistedBuildResults; } + (id)defaultProperties; + (id)buildTaskWithIdentifier:(id)arg1 restorePersistedBuildResults:(BOOL)arg2 properties:(id)arg3; + (void)initialize; @property(copy) id updateBuildStatusForBuildTask; // @synthesize updateBuildStatusForBuildTask=_updateBuildStatusForBuildTaskBlock; @property(copy) id exitCodeWasSet; // @synthesize exitCodeWasSet=_exitCodeWasSetBlock; @property(copy) id activityLogSectionDidChange; // @synthesize activityLogSectionDidChange=_activityLogSectionDidChangeBlock; @property(copy) id didStartExecuting; // @synthesize didStartExecuting=_didStartExecutingBlock; @property(nonatomic) int exitCode; // @synthesize exitCode=_exitCode; @property(retain, nonatomic) IDEActivityLogSection *activityLogSection; // @synthesize activityLogSection=_activityLogSection; @property(readonly) BOOL restorePersistedBuildResults; // @synthesize restorePersistedBuildResults=_restorePersistedBuildResults; @property(readonly) NSDictionary *properties; // @synthesize properties=_properties; @property(readonly) NSString *identifier; // @synthesize identifier=_identifier; - (id)longDescription; - (id)description; - (void)main; - (id)init; - (id)initWithIdentifier:(id)arg1 restorePersistedBuildResults:(BOOL)arg2 properties:(id)arg3; @end @interface IDERunnable : NSObject { IDEScheme *_scheme; DVTFileDataType *_dataType; NSError *_dataTypeDetectionError; } @property(retain) IDEScheme *scheme; // @synthesize scheme=_scheme; - (void)resolveBuildableFromImport; @property(readonly) BOOL hasRunnablePath; @property(readonly) id <IDEBuildableProduct> buildableProduct; - (id)runnableUTIType:(id *)arg1; - (id)pathToRunnableForBuildParameters:(id)arg1; @property(readonly) NSString *toolTip; @property(readonly) NSString *displayName; @end @interface IDEBuildableProductRunnable : IDERunnable <DVTXMLUnarchiving> { id <IDEBuildableProduct> _buildableProduct; IDESchemeBuildableReference *_buildableReference; } + (id)keyPathsForValuesAffectingBuildableProduct; + (id)keyPathsForValuesAffectingHasRunnablePath; + (id)keyPathsForValuesAffectingDisplayName; @property(retain) IDESchemeBuildableReference *buildableReference; // @synthesize buildableReference=_buildableReference; - (void)dvt_encodeRelationshipsWithXMLArchiver:(id)arg1; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (void)addBuildableProductReference:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addBuildableReference:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)dvt_awakeFromXMLUnarchiver:(id)arg1; - (void)resolveBuildableFromImport; - (void)setScheme:(id)arg1; @property(readonly) id <IDEBuildableProduct> buildableProduct; // @synthesize buildableProduct=_buildableProduct; - (id)runnableUTIType:(id *)arg1; - (BOOL)hasRunnablePath; - (id)pathToRunnableForBuildParameters:(id)arg1; - (BOOL)isBlueprint; - (id)toolTip; - (id)displayName; - (id)initFromXMLUnarchiver:(id)arg1 archiveVersion:(float)arg2; - (id)initWithBuildableProduct:(id)arg1 scheme:(id)arg2; @end @interface IDEBuildableProductSupportMixIn : NSObject { id <IDEBuildableProduct> _buildableProduct; } - (id)toolTip; - (id)displayName; - (id)filePathForBuildParameters:(id)arg1; - (id)initWithBuildableProduct:(id)arg1; @end @interface IDEBuildableSnapshot : NSObject { id <IDEBuildable> _buildable; NSString *_name; IDEBuildParameters *_buildParameters; IDEActivityLogSection *_activityLogSection; NSArray *_currentBuildTasks; BOOL _cleanupDidRun; } + (void)initialize; @property(retain) IDEActivityLogSection *activityLogSection; // @synthesize activityLogSection=_activityLogSection; @property(retain) NSArray *currentBuildTasks; // @synthesize currentBuildTasks=_currentBuildTasks; @property(readonly) IDEBuildParameters *buildParameters; // @synthesize buildParameters=_buildParameters; @property(readonly) NSString *name; // @synthesize name=_name; @property(readonly) id <IDEBuildable> buildable; // @synthesize buildable=_buildable; - (id)description; - (void)cleanupForBuilder:(id)arg1; - (void)_cleanupOnlyOnceForBuilder:(id)arg1; - (void)builderWasCancelled:(id)arg1; - (void)buildForBuilderDidFinish:(id)arg1; - (id)nextBuildTasksToRunForBuilder:(id)arg1 buildCommand:(int)arg2 buildOnlyTheseFiles:(id)arg3; - (BOOL)buildForBuilderWillStart:(id)arg1; - (int)performBuildForBuilder:(id)arg1 buildCommand:(int)arg2 buildOnlyTheseFiles:(id)arg3; - (BOOL)prepareForBuildingForBuilder:(id)arg1; - (void)_updateBuildOperationStatusForBuilder:(id)arg1 buildTask:(id)arg2; - (void)_buildTaskDidStartForBuilder:(id)arg1 buildTask:(id)arg2; - (id)initFromBuildable:(id)arg1 withBuildParameters:(id)arg2; @end @interface IDEBuildableSupportMixIn : NSObject { id <IDEBuildable> _buildable; BOOL _hasRecursiveDependencyCycle; } + (void)initialize; - (id)orderedRecursiveDependenciesIncludingSelf:(BOOL)arg1; - (id)uncachedOrderedRecursiveDependenciesIncludingSelf:(BOOL)arg1 visitedBuildables:(id)arg2; - (BOOL)hasRecursiveDependencyCycle; - (id)initWithBuildable:(id)arg1; @end @interface IDEBuilder : DVTOperation { int _buildCommand; IDEBuildableSnapshot *_snapshot; NSArray *_exclusiveSourceFiles; int _result; IDEActivityLogSection *_activityLogSection; NSString *_localizedDescription; IDEBuildOperationQueueSet *_buildTaskQueueSet; BOOL _restorePersistedBuildResults; id <DVTCancellationBlockCompletion> _cancellationToken; NSMutableSet *_generatedFileInfo; NSDictionary *_copiedFilePathsFromBuildOperation; NSDictionary *_copiedFilePathsFromBuildableProduct; id _activityLogSectionDidChangeBlock; id _resultDidChangeBlock; id _didStartExecutingBlock; id _didFinishExecutingBlock; id _updateBuildStatusBlock; } + (void)initialize; @property(copy) NSDictionary *copiedFilePathsFromBuildableProduct; // @synthesize copiedFilePathsFromBuildableProduct=_copiedFilePathsFromBuildableProduct; @property(copy) NSDictionary *copiedFilePathsFromBuildOperation; // @synthesize copiedFilePathsFromBuildOperation=_copiedFilePathsFromBuildOperation; @property(copy) id updateBuildStatus; // @synthesize updateBuildStatus=_updateBuildStatusBlock; @property(copy) id didFinishExecuting; // @synthesize didFinishExecuting=_didFinishExecutingBlock; @property(copy) id didStartExecuting; // @synthesize didStartExecuting=_didStartExecutingBlock; @property(copy) id resultDidChange; // @synthesize resultDidChange=_resultDidChangeBlock; @property(copy) id activityLogSectionDidChange; // @synthesize activityLogSectionDidChange=_activityLogSectionDidChangeBlock; @property(readonly) NSSet *generatedFileInfo; // @synthesize generatedFileInfo=_generatedFileInfo; @property(readonly) BOOL restorePersistedBuildResults; // @synthesize restorePersistedBuildResults=_restorePersistedBuildResults; @property(readonly) NSArray *exclusiveSourceFiles; // @synthesize exclusiveSourceFiles=_exclusiveSourceFiles; @property(readonly) IDEBuildOperationQueueSet *buildTaskQueueSet; // @synthesize buildTaskQueueSet=_buildTaskQueueSet; @property(copy) NSString *localizedDescription; // @synthesize localizedDescription=_localizedDescription; @property(retain, nonatomic) IDEActivityLogSection *activityLogSection; // @synthesize activityLogSection=_activityLogSection; @property(nonatomic) int result; // @synthesize result=_result; @property(readonly) IDEBuildableSnapshot *snapshot; // @synthesize snapshot=_snapshot; @property(readonly) int buildCommand; // @synthesize buildCommand=_buildCommand; - (id)description; - (void)addGeneratedFileInfo:(id)arg1; - (void)main; - (id)init; - (id)initForBuildCommand:(int)arg1 withBuildableSnapshot:(id)arg2 buildTaskQueueSet:(id)arg3 buildOnlyTheseFiles:(id)arg4 restorePersistedBuildResults:(BOOL)arg5; @end @interface IDEBuilderGeneratedFileInfo : NSObject <NSCoding> { int _buildCommand; DVTFilePath *_sourceFilePath; DVTFilePath *_generatedFilePath; int _commandResult; NSString *_errorString; IDEActivityLogSection *_commandLogSection; } @property(readonly) IDEActivityLogSection *commandLogSection; // @synthesize commandLogSection=_commandLogSection; @property(readonly) NSString *errorString; // @synthesize errorString=_errorString; @property(readonly) int commandResult; // @synthesize commandResult=_commandResult; @property(readonly) DVTFilePath *generatedFilePath; // @synthesize generatedFilePath=_generatedFilePath; @property(readonly) DVTFilePath *sourceFilePath; // @synthesize sourceFilePath=_sourceFilePath; @property(readonly) int buildCommand; // @synthesize buildCommand=_buildCommand; - (id)description; - (void)encodeWithCoder:(id)arg1; - (id)initWithCoder:(id)arg1; - (id)initWithBuildCommand:(int)arg1 sourceFilePath:(id)arg2 generatedFilePath:(id)arg3 commandResult:(int)arg4 errorString:(id)arg5 commandLogSection:(id)arg6; @end @interface IDEDiagnosticActivityLogMessage : IDEActivityLogMessage { NSMutableArray *_diagnosticFixItItems; id <IDEDiagnosticItemDelegate> _delegate; id _representedObject; } + (id)keyPathsForValuesAffectingFixableDiagnosticItems; + (id)diagnosticMessageType; @property __weak id representedObject; // @synthesize representedObject=_representedObject; @property __weak id <IDEDiagnosticItemDelegate> delegate; // @synthesize delegate=_delegate; @property(copy, nonatomic) NSArray *diagnosticFixItItems; // @synthesize diagnosticFixItItems=_diagnosticFixItItems; @property(readonly) NSArray *fixableDiagnosticItems; - (void)removeObjectFromDiagnosticFixItItemsAtIndex:(unsigned long long)arg1; - (void)insertObject:(id)arg1 inDiagnosticFixItItemsAtIndex:(unsigned long long)arg2; @property(readonly) NSMutableArray *mutableDiagnosticFixItItems; @property(readonly) NSString *severityString; @property(readonly) int diagnosticSeverity; - (id)description; - (BOOL)isEqual:(id)arg1; - (BOOL)isEqualToDiagnosticItem:(id)arg1; - (id)init; - (id)initWithSeverity:(int)arg1 title:(id)arg2 location:(id)arg3; @end @interface IDEClangDiagnosticActivityLogMessage : IDEDiagnosticActivityLogMessage { int _diagnosticSeverity; } + (id)uniqueMessageCategoryStringForCString:(const char *)arg1; + (void)initialize; - (int)diagnosticSeverity; - (id)initWithDiagnostic:(void *)arg1 timestamp:(double)arg2 pathMap:(id)arg3 workingDirectory:(id)arg4 documentURL:(id)arg5; - (id)initWithDiagnostic:(void *)arg1 timestamp:(double)arg2 pathMap:(id)arg3 workingDirectory:(id)arg4; - (id)initWithDiagnostic:(void *)arg1 timestamp:(double)arg2 pathMap:(id)arg3 documentURL:(id)arg4; - (id)initWithDiagnostic:(void *)arg1 timestamp:(double)arg2 documentURL:(id)arg3; - (id)initWithDiagnostic:(void *)arg1 timestamp:(double)arg2 pathMap:(id)arg3; - (id)initWithDiagnostic:(void *)arg1 timestamp:(double)arg2; @end @interface IDECommandLineArgumentEntry : NSObject { NSString *_argument; BOOL _isEnabled; } + (id)argumentEntriesForLegacyValues:(id)arg1; @property(getter=isEnabled) BOOL enabled; // @synthesize enabled=_isEnabled; @property(copy) NSString *argument; // @synthesize argument=_argument; - (void)setIsEnabledFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setArgumentFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (id)description; - (id)init; - (id)initWithArgument:(id)arg1 enabled:(BOOL)arg2; @end @interface IDECommandLineBuildTask : IDEBuildTask { NSTask *_task; } + (id)buildTaskWithIdentifier:(id)arg1 restorePersistedBuildResults:(BOOL)arg2 command:(id)arg3; + (id)buildTaskWithIdentifier:(id)arg1 restorePersistedBuildResults:(BOOL)arg2 commandLine:(id)arg3; + (id)buildTaskWithIdentifier:(id)arg1 restorePersistedBuildResults:(BOOL)arg2 commandLine:(id)arg3 workingDirectory:(id)arg4 environmentEntries:(id)arg5; - (id)description; - (void)main; @property(readonly) NSString *workingDirectory; @property(readonly) NSDictionary *environmentEntries; @property(readonly) NSArray *commandLine; - (void)finalize; - (id)initWithIdentifier:(id)arg1 restorePersistedBuildResults:(BOOL)arg2 properties:(id)arg3; @end @interface IDECompilationBuildTask : IDECommandLineBuildTask { } - (id)description; - (void)main; - (id)initWithIdentifier:(id)arg1 restorePersistedBuildResults:(BOOL)arg2 properties:(id)arg3; @end @interface IDEConcreteClientTracker : NSObject <IDEClientTracking> { NSMutableSet *_clientTrackingTokensRequiringCancellation; NSMutableSet *_clientTrackingTokensRequiringCancellationPrompt; NSMutableSet *_clientTrackingTokensNotSupportingCancellation; } - (void)_clientCancellationTimeout; - (void)cancelTrackedClients; - (void)unregisterClient:(id)arg1; - (id)clientsNotSupportingCancellation; - (id)clientsRequiringCancellationPrompt; - (id)registerClientWithName:(id)arg1; - (id)registerClientWithName:(id)arg1 promptForCancellation:(BOOL)arg2 cancellationBlock:(id)arg3; @end @interface IDEConcreteClientTrackingToken : NSObject <IDEClientTrackingToken> { NSString *_clientName; id _cancellationBlock; BOOL _hasUnregistered; IDEConcreteClientTracker *_clientTracker; } @property(readonly) NSString *clientName; // @synthesize clientName=_clientName; - (void)cancelClient; - (id)initWithClientName:(id)arg1 clientTracker:(id)arg2 cancellationBlock:(id)arg3; - (id)description; - (void)unregisterClient; @end @interface IDEConsoleAdaptor : NSObject { IDELaunchSession *_launchSession; NSString *_type; struct dispatch_queue_s *_writeSerialQueue; BOOL _usedWithNSTask; BOOL _finishedReceivingData; NSFileHandle *_standardInput; NSFileHandle *_standardOutput; NSFileHandle *_standardError; NSMutableData *_currentOutputOverflow; NSMutableData *_currentErrorOverflow; id <IDEConsoleAdaptorDelegateProtocol> _delegate; NSMutableDictionary *_completeContent; NSMutableArray *_completeContentSequences; NSMutableArray *_standardInputSequences; NSMutableArray *_standardOutputSequences; NSMutableArray *_standardErrorSequences; } + (id)standardErrorItemsForAdaptors:(id)arg1; + (id)standardOutputItemsForAdaptors:(id)arg1; + (id)standardInputItemsForAdaptors:(id)arg1; + (id)allConsoleItemsForAdaptors:(id)arg1; + (id)_itemsForAdaptors:(id)arg1 sequencesKey:(id)arg2; + (unsigned long long)_nextContentSequence; + (void)initialize; @property(readonly) NSArray *standardErrorSequences; // @synthesize standardErrorSequences=_standardErrorSequences; @property(readonly) NSArray *standardOutputSequences; // @synthesize standardOutputSequences=_standardOutputSequences; @property(readonly) NSArray *standardInputSequences; // @synthesize standardInputSequences=_standardInputSequences; @property(readonly) NSArray *completeContentSequences; // @synthesize completeContentSequences=_completeContentSequences; @property(readonly) NSDictionary *completeContent; // @synthesize completeContent=_completeContent; @property(retain) id <IDEConsoleAdaptorDelegateProtocol> delegate; // @synthesize delegate=_delegate; @property BOOL finishedReceivingData; // @synthesize finishedReceivingData=_finishedReceivingData; @property(readonly) NSString *type; // @synthesize type=_type; @property(retain) IDELaunchSession *launchSession; // @synthesize launchSession=_launchSession; - (id)standardErrorItems; - (id)standardOutputItems; - (id)standardInputItems; - (id)allConsoleItems; - (id)_itemsForSequences:(id)arg1; - (void)_setStandardError:(id)arg1; - (void)_setStandardOutput:(id)arg1; - (void)_addObserverToReadCompletion:(id)arg1 selector:(SEL)arg2; - (void)_getError:(id)arg1; - (void)_getOutput:(id)arg1; - (void)_findHandleCompletedRead:(id)arg1; - (id)_getData:(id)arg1 overflowBuffer:(id *)arg2; - (void)_setStandardInput:(id)arg1; - (void)outputForStandardError:(id)arg1; - (void)outputForStandardOutput:(id)arg1; - (void)outputForStandardOutput:(id)arg1 isPrompt:(BOOL)arg2 isOutputRequestedByUser:(BOOL)arg3; - (void)_postOnMainThreadForNotification:(id)arg1 consoleItem:(id)arg2; - (void)inputForStandardInput:(id)arg1; - (void)_throwExceptionOnMainThread:(id)arg1; - (void)inputFromConsole:(id)arg1 echo:(BOOL)arg2; - (void)makeExpired; - (void)_makeExpired; - (void)_addToCompleteContent:(id)arg1 andSupportingSequences:(struct __CFArray *)arg2; - (id)initWithType:(id)arg1 standardInput:(id)arg2 standardOutput:(id)arg3 standardError:(id)arg4 usedWithNSTask:(BOOL)arg5; @end @interface IDEConsoleItem : NSObject <DVTSimpleSerialization> { NSString *_adaptorType; NSString *_content; double _timestamp; int _kind; } + (id)keyPathsForValuesAffectingError; + (id)keyPathsForValuesAffectingOutputRequestedByUser; + (id)keyPathsForValuesAffectingPrompt; + (id)keyPathsForValuesAffectingOutput; + (id)keyPathsForValuesAffectingInput; @property(readonly) double timestamp; // @synthesize timestamp=_timestamp; @property int kind; // @synthesize kind=_kind; @property(readonly) NSString *content; // @synthesize content=_content; @property(readonly) NSString *adaptorType; // @synthesize adaptorType=_adaptorType; - (void)dvt_writeToSerializer:(id)arg1; - (id)dvt_initFromDeserializer:(id)arg1; @property(readonly, getter=isError) BOOL error; - (void)setError:(BOOL)arg1; @property(readonly, getter=isOutputRequestedByUser) BOOL outputRequestedByUser; - (void)setOutputRequestedByUser:(BOOL)arg1; @property(readonly, getter=isPrompt) BOOL prompt; - (void)setPrompt:(BOOL)arg1; @property(readonly, getter=isOutput) BOOL output; - (void)setOutput:(BOOL)arg1; @property(readonly, getter=isInput) BOOL input; - (void)setInput:(BOOL)arg1; - (id)description; - (id)initWithAdaptorType:(id)arg1 content:(id)arg2 kind:(int)arg3; @end @interface IDEContainer : DVTModelObject <DVTInvalidation, IDEIntegrityLogDataSource, IDEReadOnlyItem, DVTDirectoryBasedCustomDataStoreDelegate> { id <IDEContainerCore> _containerCore; IDEWorkspace *_workspace; DVTFilePath *_filePath; IDEGroup *_rootGroup; DVTFilePath *_itemBaseFilePath; DVTExtension *_extension; DVTOperation *_willReadOperation; DVTOperation *_readOperation; DVTOperation *_didReadOperation; id <DVTCancellableToken> _resolvePendingFilesCancellableToken; int _activity; int _transitionActivity; NSMutableDictionary *_sessionIdentifiersToFilePaths; NSMutableDictionary *_containerLoadingTokens; NSMutableSet *_pendingFileReferences; NSDictionary *_containerDataFilePaths; int _autosaveBehavior; int _saveIssue; NSTimer *_pendingSaveTimer; NSString *_sessionIdentifier; NSMutableDictionary *_filePathToReadOnlyItemMap; NSMapTable *_readOnlyItemToStatusObserverMap; id <IDEContainerDelegate> _containerDelegate; NSDictionary *_pendingChangeDictionary; DVTStackBacktrace *_invalidationBacktrace; int _readOnlyStatus; BOOL _isInvalidated; BOOL _hasTransitionedToIdle; BOOL _transitioningToNewFilePath; BOOL _containerEdited; } + (BOOL)_shouldTrackReadOnlyStatus; + (id)unlockingDelegate; + (void)setUnlockingDelegate:(id)arg1; + (id)reloadingDelegate; + (void)setReloadingDelegate:(id)arg1; + (id)errorPresenter; + (void)setErrorPresenter:(id)arg1; + (BOOL)supportsMultipleInstancesPerFilePath; + (BOOL)automaticallyNotifiesObserversOfFilePath; + (BOOL)automaticallyNotifiesObserversOfActivity; + (id)containerDataFilePathsForFilePath:(id)arg1; + (BOOL)supportsFilePersistence; + (id)_errorSavingContainer:(id)arg1 code:(int)arg2; + (double)_defaltSlowAutosaveDelay; + (double)_defaltAutosaveDelay; + (BOOL)automaticallyNotifiesObserversOfContainerEdited; + (BOOL)_observeContainerDataFilePathsForChanges; + (id)_containerForSessionIdentifier:(id)arg1; + (void)_invalidateContainer:(id)arg1; + (void)_releaseContainer:(id)arg1; + (void)_retainContainer:(id)arg1; + (BOOL)_closeContainerIfNeeded:(id)arg1; + (void)_removeReferencesToContainer:(id)arg1; + (void)_decreaseCountForContainer:(id)arg1; + (void)_increaseCountForContainer:(id)arg1; + (unsigned long long)_countForContainer:(id)arg1; + (id)_openContainers; + (BOOL)isContainerOpenForFilePath:(id)arg1; + (id)retainedWrappedWorkspaceForContainerAtFilePath:(id)arg1 fileDataType:(id)arg2 error:(id *)arg3; + (id)containersForFilePath:(id)arg1; + (id)retainedContainerForFilePath:(id)arg1; + (id)retainedContainerForFilePath:(id)arg1 workspace:(id)arg2; + (id)retainedContainerAtFilePath:(id)arg1 fileDataType:(id)arg2 workspace:(id)arg3 error:(id *)arg4; + (id)_containerOpenInAnotherWorkspaceErrorForPath:(id)arg1; + (id)_noContainerClassForFileTypeError:(id)arg1; + (id)containerTypeDisplayName; + (id)containerFileDataType; + (id)containerExtensionForFileDataType:(id)arg1; + (id)containerLoadingModelObjectGraph; + (void)initialize; @property int readOnlyStatus; // @synthesize readOnlyStatus=_readOnlyStatus; @property(readonly) IDEGroup *rootGroup; // @synthesize rootGroup=_rootGroup; @property(copy, nonatomic) DVTFilePath *itemBaseFilePath; // @synthesize itemBaseFilePath=_itemBaseFilePath; @property(readonly) DVTFilePath *filePath; // @synthesize filePath=_filePath; @property(readonly) DVTExtension *extension; // @synthesize extension=_extension; @property(readonly) IDEWorkspace *workspace; // @synthesize workspace=_workspace; @property(readonly) id <IDEContainerCore> containerCore; // @synthesize containerCore=_containerCore; @property(retain) id <IDEContainerDelegate> containerDelegate; // @synthesize containerDelegate=_containerDelegate; @property(readonly) DVTStackBacktrace *invalidationBacktrace; // @synthesize invalidationBacktrace=_invalidationBacktrace; - (void)customDataStore:(id)arg1 removeItemAtFilePath:(id)arg2 completionQueue:(id)arg3 completionBlock:(id)arg4; - (void)customDataStore:(id)arg1 moveItemAtFilePath:(id)arg2 toFilePath:(id)arg3 completionQueue:(id)arg4 completionBlock:(id)arg5; - (void)customDataStore:(id)arg1 makeFilePathsWritable:(id)arg2 completionQueue:(id)arg3 completionBlock:(id)arg4; - (void)_unlockReadOnlyItems:(id)arg1 completionQueue:(id)arg2 completionBlock:(id)arg3; - (id)_readOnlyItemsToUnlock; - (void)_addReadOnlyItemPath:(id)arg1; - (void)_removeAllReadOnlyItemPaths; - (void)_removeReadOnlyItemPath:(id)arg1; - (void)_updateSharedReadOnlyItemStatus; - (BOOL)makeWritableWithError:(id *)arg1; @property(readonly) NSURL *readOnlyItemURL; - (void)debugPrintStructure; - (void)debugPrintInnerStructure; - (id)description; @property(readonly) IDEActivityLogSection *integrityLog; - (void)analyzeModelIntegrity; @property(readonly, getter=isMajorGroup) BOOL majorGroup; @property(readonly, getter=isEditable) BOOL editable; - (void)_initRootGroup; - (id)createRootGroup; - (id)_itemBaseFilePathForFilePath:(id)arg1; - (void)_makeRelativeFileReferencesInGroup:(id)arg1 relativeToNewBasePath:(id)arg2 oldBaseFilePath:(id)arg3; - (void)_changeContainerFilePath:(id)arg1 inContext:(id)arg2; - (BOOL)setContainerFilePath:(id)arg1 error:(id *)arg2; - (BOOL)_setContainerFilePath:(id)arg1 strict:(BOOL)arg2 error:(id *)arg3; - (void)_setFilePath:(id)arg1; - (void)_setFilePath:(id)arg1 strict:(BOOL)arg2 createContainerDataFilePathsToModDateMap:(BOOL)arg3; - (void)_respondToFileChangeOnDiskWithFilePath:(id)arg1; - (void)_makeAbsoluteFileReferencesInGroup:(id)arg1 relativeToFolderFilePath:(id)arg2 withPathString:(id)arg3; @property(readonly) NSString *displayName; - (void)_setTransitioningToNewFilePath:(BOOL)arg1; - (void)_setExtension:(id)arg1; - (void)_didUpdateActivity; - (void)_willUpdateActivity; - (void)_didTransitionToActivity:(int)arg1; - (void)_containerDidLoad; @property int activity; - (BOOL)writeToFilePath:(id)arg1 forceWrite:(BOOL)arg2 error:(id *)arg3; - (BOOL)didReadFromFilePath:(id)arg1 error:(id *)arg2; - (BOOL)willReadFromFilePath:(id)arg1 error:(id *)arg2; - (BOOL)readFromFilePath:(id)arg1 error:(id *)arg2; - (BOOL)_readAsyncIfPossibleFromFilePath:(id)arg1 error:(id *)arg2; - (id)_didReadOperationWithFilePath:(id)arg1; - (id)_willReadOperationWithFilePath:(id)arg1; - (id)_readOperationWithFilePath:(id)arg1; - (BOOL)_canClosePreflightWithCheckedContainers:(id)arg1 error:(id *)arg2; - (BOOL)_canClosePreflightOrError:(id *)arg1; - (BOOL)ignoreLocalChanges; - (void)_setContainerEdited; - (void)_containerEditedDidChange; - (BOOL)_saveContainerForAction:(int)arg1 error:(id *)arg2; - (void)_scheduleAutosaveTimer; - (void)_saveContainerPeriodically; @property BOOL containerEdited; - (id)_containerDataFilePaths; - (id)_lastKnownModDateForContainerDataFile:(id)arg1; - (void)_updateContainerDataFilePathsToModDateMap; - (void)_createContainerDataFilePathsToModDateMap; - (id)_modificationDateForFilePath:(id)arg1; - (void)_clearContainerDataFilePathsToModDateMap; - (void)_unregisterForChangesToContainerDataFilePath:(id)arg1; - (void)_registerForChangesToContainerDataFilePath:(id)arg1; - (void)_filePathDidChangeWithPendingChangeDictionary; @property(readonly, nonatomic, getter=isValid) BOOL valid; - (void)invalidate; - (id)_sessionIdentifier; - (void)_invalidateContainerToDiscardInMemoryRepresentation:(BOOL)arg1; - (void)_willInvalidateContainerToDiscardInMemoryRepresentation; - (void)releaseContainer; - (void)retainContainer; - (void)_saveContainerIfNeeded; - (id)init; - (id)initWithFilePath:(id)arg1 extension:(id)arg2 workspace:(id)arg3 error:(id *)arg4; - (void)_removeSubcontainer:(id)arg1; - (void)_addSubcontainer:(id)arg1; - (void)_setContainerLoadingTokenForContainer:(id)arg1; - (void)_removeContainerLoadingTokenForContainer:(id)arg1; - (void)_locateFileReferencesRecursively; - (void)_clearPendingFileReferencesAndContainerLoadingTokens; - (void)_scheduleResolvePendingFileReferencesOperation; - (void)_handleContainerResolutionFailureForFileReference:(id)arg1; - (void)_locateFileReferencesRecursivelyInGroup:(id)arg1; - (void)_removePendingFileReference:(id)arg1; - (void)_addPendingFileReference:(id)arg1; - (id)_containerInstanceDescription; @end @interface IDEContainerReferenceResolutionStrategy : DVTReferenceResolutionStrategy { } + (id)currentSDKRelativeContainerResolutionStrategy; + (id)developerDirectoryRelativeContainerResolutionStrategy; + (id)buildProductsRelativeContainerResolutionStrategy; + (id)pathRelativeContainerResolutionStrategy; + (id)containerItselfContainerResolutionStrategy; + (id)containerRelativeContainerResolutionStrategy; + (id)groupRelativeContainerResolutionStrategy; + (id)absoluteContainerResolutionStrategy; - (id)resolveInput:(id)arg1 forContainer:(id)arg2 group:(id)arg3 inContext:(id)arg4 usingSnapshot:(id)arg5 error:(id *)arg6; - (id)resolveInput:(id)arg1 inContext:(id)arg2 usingSnapshot:(id)arg3 error:(id *)arg4; - (BOOL)canResolveInputInBackground; @end @interface IDEContainerAbsolutePathReferenceResolutionStrategy : IDEContainerReferenceResolutionStrategy { } - (id)resolveInput:(id)arg1 forContainer:(id)arg2 group:(id)arg3 inContext:(id)arg4 usingSnapshot:(id)arg5 error:(id *)arg6; @end @interface IDEContainerPathRelativeReferenceResolutionStrategy : IDEContainerReferenceResolutionStrategy { } - (id)resolveInput:(id)arg1 forContainer:(id)arg2 group:(id)arg3 inContext:(id)arg4 usingSnapshot:(id)arg5 error:(id *)arg6; @end @interface IDEContainerBuildProductsRelativeReferenceResolutionStrategy : IDEContainerPathRelativeReferenceResolutionStrategy { } - (id)resolveInput:(id)arg1 forContainer:(id)arg2 group:(id)arg3 inContext:(id)arg4 usingSnapshot:(id)arg5 error:(id *)arg6; @end @interface IDEContainerContainerItselfReferenceResolutionStrategy : IDEContainerReferenceResolutionStrategy { } - (id)resolveInput:(id)arg1 forContainer:(id)arg2 group:(id)arg3 inContext:(id)arg4 usingSnapshot:(id)arg5 error:(id *)arg6; @end @interface IDEContainerContainerRelativeReferenceResolutionStrategy : IDEContainerReferenceResolutionStrategy { } - (id)displayNameInContext:(id)arg1; - (id)resolveInput:(id)arg1 forContainer:(id)arg2 group:(id)arg3 inContext:(id)arg4 usingSnapshot:(id)arg5 error:(id *)arg6; @end @interface IDEContainerCore : NSObject <IDEContainerCore> { DVTFilePath *_filePath; DVTExtension *_containerExtension; int _currentActivity; DVTStackBacktrace *_invalidationBacktrace; BOOL _isInvalidated; } + (void)_invalidateContainerCore:(id)arg1; + (void)_releaseContainerCore:(id)arg1; + (void)_retainContainerCore:(id)arg1; + (BOOL)_closeContainerCoreIfNeeded:(id)arg1; + (void)_removeReferencesToContainerCore:(id)arg1; + (void)_decrementCountForContainerCore:(id)arg1; + (void)_incrementCountForContainerCore:(id)arg1; + (unsigned long long)_countForContainerCore:(id)arg1; + (id)_openContainerCores; + (id)containerDataFilePathsForFilePath:(id)arg1; + (BOOL)supportsFilePersistence; + (id)containerFileType; + (BOOL)isContainerCoreOpenForFilePath:(id)arg1; + (id)retainedContainerCoreForFilePath:(id)arg1; + (id)retainedContainerCoreAtFilePath:(id)arg1 ofType:(id)arg2 error:(id *)arg3; + (id)containerExtensionForFileDataType:(id)arg1; + (void)initialize; - (id)filePath; - (id)containerExtension; - (id)rootGroup; - (int)currentActivity; @property(readonly, nonatomic, getter=isValid) BOOL valid; @property(readonly) DVTStackBacktrace *invalidationBacktrace; - (void)invalidate; - (void)releaseContainerCore; - (void)retainContainerCore; - (void)_saveContainerCoreIfNeeded; - (id)init; - (id)initWithFilePath:(id)arg1 extension:(id)arg2 error:(id *)arg3; @end @interface IDEContainerCurrentSDKRelativeReferenceResolutionStrategy : IDEContainerPathRelativeReferenceResolutionStrategy { } - (id)resolveInput:(id)arg1 forContainer:(id)arg2 group:(id)arg3 inContext:(id)arg4 usingSnapshot:(id)arg5 error:(id *)arg6; @end @interface IDEContainerDeveloperDirectoryRelativeReferenceResolutionStrategy : IDEContainerPathRelativeReferenceResolutionStrategy { } - (id)resolveInput:(id)arg1 forContainer:(id)arg2 group:(id)arg3 inContext:(id)arg4 usingSnapshot:(id)arg5 error:(id *)arg6; @end @interface IDEContainerGroupRelativeReferenceResolutionStrategy : IDEContainerReferenceResolutionStrategy { } - (id)resolveInput:(id)arg1 forContainer:(id)arg2 group:(id)arg3 inContext:(id)arg4 usingSnapshot:(id)arg5 error:(id *)arg6; @end @interface IDEContainerItem : DVTModelObject <DVTInvalidation, DVTReferenceResolverClient> { IDEGroup *_superitem; NSMutableDictionary *_properties; NSString<DVTMacroExpansion> *_path; DVTReferenceResolver *_resolver; DVTStackBacktrace *_invalidationBacktrace; struct { unsigned int isInvalidated:1; unsigned int observingForBuildProductsRelative:1; unsigned int observingForCurrentSDKRelative:1; unsigned int observingForSourceTreeRelative:1; } _flags; } + (id)keyPathsForValuesAffectingWrapsLines; + (id)keyPathsForValuesAffectingIndentWidth; + (id)keyPathsForValuesAffectingTabWidth; + (id)keyPathsForValuesAffectingUsesTabs; + (BOOL)automaticallyNotifiesObserversOfContainer; + (id)customResolutionStrategies; + (void)initialize; @property(readonly) NSString<DVTMacroExpansion> *path; // @synthesize path=_path; @property(readonly) DVTReferenceResolver *resolver; // @synthesize resolver=_resolver; @property(readonly) DVTStackBacktrace *invalidationBacktrace; // @synthesize invalidationBacktrace=_invalidationBacktrace; @property(readonly, nonatomic, getter=isValid) BOOL valid; - (void)invalidate; - (void)_takePathAndResolutionStrategiesFromContainerItem:(id)arg1; @property(readonly) DVTFilePath *resolvedFilePath; - (BOOL)_getPathAndResolutionStrategiesForAbsolutePath:(id)arg1 path:(id *)arg2 resolutionStrategies:(id *)arg3; - (BOOL)_getPath:(id *)arg1 forStrategies:(id)arg2; - (BOOL)_getPath:(id *)arg1 forStrategies:(id)arg2 absolutePath:(id)arg3; - (id)_absolutePath; - (id)resolutionContextForStrategies:(id)arg1; @property(readonly) unsigned long long aggregateSourceControlConflictStatus; @property(readonly) int aggregateSourceControlServerStatus; @property(readonly) int aggregateSourceControlLocalStatus; @property(readonly) unsigned long long conflictStateForUpdateOrMerge; @property(readonly) int sourceControlServerStatus; @property(readonly) int sourceControlLocalStatus; - (void)_setContainerItemEdited; - (id)description; - (void)debugPrintStructure; - (void)debugPrintInnerStructure; @property(copy) DVTSourceCodeLanguage *language; @property BOOL wrapsLines; @property long long indentWidth; @property long long tabWidth; @property BOOL usesTabs; @property unsigned long long textEncoding; @property unsigned long long lineEndings; - (id)_textPreferences; - (void)_setProperty:(id)arg1 forKey:(id)arg2; - (id)_propertyForKey:(id)arg1 searchParent:(BOOL)arg2; - (id)_propertiesCreatingIfNeeded; @property(readonly) NSDictionary *properties; - (id)name; @property(readonly, getter=isEditable) BOOL editable; - (void)_didSetContainer; - (void)_setContainer:(id)arg1; - (BOOL)_willSetContainer:(id)arg1; @property(readonly) IDEContainer *container; - (void)_setSuperitem:(id)arg1; @property(readonly) IDEGroup *superitem; - (void)setPath:(id)arg1 resolutionStrategies:(id)arg2; - (void)changePath:(id)arg1 resolutionStrategies:(id)arg2; - (void)primitiveChangePath:(id)arg1 resolutionStrategies:(id)arg2; - (void)resolverStrategiesDidChange:(id)arg1; - (void)_configureReferenceResolutionStrategySpecificObservations; - (void)_clearAllReferenceResolutionStrategySpecificObservations; - (void)_setupSourceTreeRelativeObservations; - (void)_clearSourceTreeRelativeObservations; - (void)_setupCurrentSDKRelativeObservations; - (void)_clearCurrentSDKRelativeObservations; - (void)_setupBuildProductsRelativeObservations; - (void)_clearBuildProductsRelativeObservations; - (void)_workspaceBuildProductsLocationDidChange:(id)arg1; - (void)_invalidateResolvedFilePath; - (id)relativePathForPath:(id)arg1 resolutionStrategies:(id)arg2; - (id)initWithPath:(id)arg1 resolutionStrategies:(id)arg2; - (id)init; - (void)dvt_encodeRelationshipsWithXMLArchiver:(id)arg1; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (void)dvt_awakeFromXMLUnarchiver:(id)arg1; - (void)setReferenceStrategyFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setLocationFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setPathFromUTF8String:(const char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setReferenceStyleFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; @end @interface IDEContainerItemCore : NSObject <IDEContainerItemCore> { id <IDEGroupCore> _parentGroup; NSString<DVTMacroExpansion> *_path; } @property(copy) NSString<DVTMacroExpansion> *path; // @synthesize path=_path; @property(retain) id <IDEGroupCore> parentGroup; // @synthesize parentGroup=_parentGroup; @property(readonly) id <IDEContainerCore> parentContainer; @end @interface IDEContainerQuery : NSObject { id <DVTModelObject, DVTInvalidation> _containerGraphObject; id <DVTObservingToken> _containerGraphObjectValidObservationToken; id _skipSubgraphBlock; id _predicateBlock; NSMutableSet *_matches; BOOL _inObjectsDidChangeNotification; } + (BOOL)automaticallyNotifiesObserversOfMatches; - (void)_objectsDidChange:(id)arg1; - (void)_updateWithInsertedMatches:(id)arg1 deletedMatches:(id)arg2; - (void)_traverseContainerGraphObjects:(id)arg1 forDeletion:(BOOL)arg2 insertedMatches:(id)arg3 deletedMatches:(id)arg4; - (BOOL)_isInterestedInContainerGraphObject:(id)arg1 forDeletion:(BOOL)arg2; - (BOOL)_isTrackingContainerItem:(id)arg1 checkedContainers:(id)arg2; - (BOOL)_isTrackingContainer:(id)arg1 checkedContainers:(id)arg2; - (void)_traverseContainerGraphObject:(id)arg1 forDeletion:(BOOL)arg2 checkedContainers:(id)arg3 insertedMatches:(id)arg4 deletedMatches:(id)arg5; - (void)_matchContainerGraphObject:(id)arg1 insertedMatches:(id)arg2 deletedMatches:(id)arg3; - (void)_removeContainerGraphObject:(id)arg1 deletedMatches:(id)arg2; - (void)_addContainerGraphObject:(id)arg1 insertedMatches:(id)arg2; @property(readonly) NSSet *matches; - (void)cancelQuery; - (id)initWithContainerGraphObject:(id)arg1 skipSubgraphBlock:(id)arg2 predicateBlock:(void)arg3; @end @interface IDEContainerReadOnlyItem : NSObject <IDEReadOnlyItem> { int _readOnlyStatus; IDEContainer *_container; DVTFilePath *_filePath; } @property int readOnlyStatus; // @synthesize readOnlyStatus=_readOnlyStatus; @property(readonly) IDEContainer *container; // @synthesize container=_container; @property(readonly) DVTFilePath *filePath; // @synthesize filePath=_filePath; - (BOOL)makeWritableWithError:(id *)arg1; - (void)updateReadOnlyStatus; @property(readonly) NSURL *readOnlyItemURL; - (id)description; - (id)initWithFilePath:(id)arg1 container:(id)arg2; @end @interface IDEContainerReadOnlyListeningItem : IDEContainerReadOnlyItem <DVTInvalidation> { DVTStackBacktrace *_invalidationBacktrace; BOOL _invalidated; } @property(readonly) DVTStackBacktrace *invalidationBacktrace; // @synthesize invalidationBacktrace=_invalidationBacktrace; - (void)parentFilePathDidChange; - (void)filePathDidChange; @property(readonly, nonatomic, getter=isValid) BOOL valid; - (void)invalidate; - (id)initWithFilePath:(id)arg1 container:(id)arg2; @end @interface IDEContainerWrapper : IDEScriptingWrapper { } - (void)setRootGroup:(id)arg1; - (void)setRealPath:(id)arg1; - (void)setReadOnly:(BOOL)arg1; - (void)setPath:(id)arg1; - (void)setFullPath:(id)arg1; @end @interface IDEDebuggerCommandBreakpointAction : IDEBreakpointAction { NSString *_consoleCommand; } + (id)propertiesAffectingPersistenceState; @property(copy) NSString *consoleCommand; // @synthesize consoleCommand=_consoleCommand; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (id)initFromXMLUnarchiver:(id)arg1 archiveVersion:(float)arg2; - (void)_reallyPerformActionUsingConsole:(id)arg1 andBreakpoint:(id)arg2; - (void)performActionUsingConsole:(id)arg1 andBreakpoint:(id)arg2; - (void)_debuggerCommandActionCommonInit; - (id)init; @end @interface IDEDebuggerExpression : NSObject { NSString *_expressionString; NSString *_result; } @property(copy) NSString *result; // @synthesize result=_result; @property(copy) NSString *expressionString; // @synthesize expressionString=_expressionString; - (void)resetResult; - (BOOL)hasBeenEvaluated; - (id)initWithExpressionString:(id)arg1; @end @interface IDEDebuggerSpecifier : NSObject { DVTExtension *_extension; NSString *_correspondingLauncherIdentifier; } + (BOOL)_isDefaultNonDebuggerLauncher:(id)arg1; + (id)_launcherExtensions; + (id)defaultDebuggerSpecifierForWorkspace:(id)arg1; + (id)_launcherPluginIdentiferForDebuggerPlugin:(id)arg1; + (id)allDebuggerSpecifiersIncludingNone; + (id)allDebuggerSpecifiers; + (id)_specifierWithIdentifer:(id)arg1 inArray:(id)arg2; + (id)specifierWithIdentiferInAllDebuggerSpecifierssIncludingNone:(id)arg1; + (id)specifierWithIdentiferInAllSpecifiers:(id)arg1; @property(readonly) DVTExtension *extension; // @synthesize extension=_extension; @property(readonly) NSString *correspondingLauncherIdentifier; @property(readonly) NSString *identifier; @property(readonly) NSString *displayName; - (id)_initWithExtension:(id)arg1; @end @interface IDEDependencyGraphEntry : NSObject { IDEDependencyGraph *_depGraph; } - (id)description; - (id)initFromByteStream:(id)arg1 inDependencyGraph:(id)arg2; - (BOOL)isValid; - (void)invalidate; - (id)dependencyGraph; - (void)finalize; - (id)init; - (id)initInDependencyGraph:(id)arg1; @end @interface IDEDepGraphCommand : IDEDependencyGraphEntry { NSString *_ident; NSMutableArray *_inputs; NSMutableArray *_outputs; } + (id)readFromByteStream:(id)arg1 inDependencyGraph:(id)arg2 withNumbersToNodesMapping:(id)arg3 numbersToCommandsMapping:(id)arg4; - (id)description; - (void)writeToByteStream:(id)arg1 withNodesToNumbersMapping:(id)arg2 commandsToNumbersMapping:(id)arg3; - (id)initFromByteStream:(id)arg1 inDependencyGraph:(id)arg2 withNumbersToNodesMapping:(id)arg3 numbersToCommandsMapping:(id)arg4; - (void)addOutputPath:(id)arg1; - (void)addOutputNode:(id)arg1; - (void)addInputPath:(id)arg1; - (void)addInputNode:(id)arg1; - (id)outputNodeStates; - (id)inputNodeStates; - (id)identifier; - (id)initInDependencyGraph:(id)arg1; - (id)initWithIdentifier:(id)arg1 inDependencyGraph:(id)arg2; @end @interface IDEDepGraphNode : IDEDependencyGraphEntry { IDEDepGraphNode *_supernode; NSMutableArray *_subnodes; int _subnodesLock; char _nameCStr[0]; } + (id)readFromByteStream:(id)arg1 inDependencyGraph:(id)arg2 withNumbersToNodesMapping:(id)arg3; + (id)nodeWithNameCStr:(const char *)arg1 inDependencyGraph:(id)arg2; + (id)nodeWithNameCStr:(const char *)arg1 length:(unsigned long long)arg2 inDependencyGraph:(id)arg3; - (id)description; - (void)writeToByteStream:(id)arg1 withNodesToNumbersMapping:(id)arg2; - (id)initFromByteStream:(id)arg1 inDependencyGraph:(id)arg2 withNumbersToNodesMapping:(id)arg3; - (id)subnodeWithSubpathCStr:(const char *)arg1 createIfNeeded:(BOOL)arg2; - (id)path; - (long long)getPathCStr:(char *)arg1 bufferSize:(unsigned long long)arg2; - (id)name; - (const char *)_nameCStr; - (void)unlockSubnodes; - (id)subnodes; - (void)lockSubnodes; - (id)supernode; - (id)initInDependencyGraph:(id)arg1; - (id)initWithNameCStr:(const char *)arg1 length:(unsigned long long)arg2 inDependencyGraph:(id)arg3; @end @interface IDEDepGraphNodeState : NSObject <NSCopying> { IDEDepGraphNode *_node; long long _st_mtime; long long _st_mtimensec; long long _st_size; unsigned short _st_mode; unsigned int _st_flags; } + (id)readFromByteStream:(id)arg1 withNumbersToNodesMapping:(id)arg2; + (id)currentNodeStateWithNode:(id)arg1; - (id)description; - (void)writeToByteStream:(id)arg1 withNodesToNumbersMapping:(id)arg2; - (id)initFromByteStream:(id)arg1 withNumbersToNodesMapping:(id)arg2; - (long long)size; - (long long)mtime; - (id)node; - (id)copyWithZone:(struct _NSZone *)arg1; - (id)init; - (id)initWithNode:(id)arg1; - (id)initWithNode:(id)arg1 statBuffer:(const struct stat *)arg2; @end @interface IDEDependencyGraph : NSObject { IDEDepGraphNode *_rootNode; IDEDepGraphNode *_baseNode; NSMutableDictionary *_commandsByIdent; struct dispatch_queue_s *_accessQueue; struct _opaque_pthread_rwlock_t; /* struct _opaque_pthread_rwlock_t { long long __sig; char __opaque[192]; } _rwLock; */ } - (void)printNodes; - (id)description; - (BOOL)writeToFile:(id)arg1 error:(id *)arg2; - (BOOL)writeToByteStream:(id)arg1 error:(id *)arg2; - (BOOL)readFromFile:(id)arg1 error:(id *)arg2; - (BOOL)readFromByteStream:(id)arg1 error:(id *)arg2; - (id)commandWithIdentifier:(id)arg1 createIfNeeded:(BOOL)arg2; - (id)nodeWithPath:(id)arg1 createIfNeeded:(BOOL)arg2; - (id)basePath; - (void)finalize; - (id)initWithBasePath:(id)arg1; @end @interface IDEDeveloperPaths : DVTDeveloperPaths { DVTFilePath *_distributionArchivesLocation; id _distributionArchivesLocationNotificatonToken; id _distributionArchivesSourceTreesNotificationToken; DVTFilePath *_snapshotsDirectory; id _snapshotsDirectoryNotificatonToken; id _snapshotsDirectorySourceTreesNotificationToken; } - (id)templateSearchPath; - (id)defaultWorkspaceDerivedDataLocation; - (id)defaultDistributionArchivesLocation; - (id)distributionArchivesLocation; - (id)defaultSnapshotsDirectory; - (id)snapshotsDirectory; - (id)corePlugInSearchPathForPlatform:(id)arg1; @end @interface IDEDeveloperProfileServiceProvider : NSObject { } - (id)protectionSpaceForLoginService; - (void)syncCertificatesWithUsername:(id)arg1 password:(id)arg2 statusHandler:(id)arg3; @end @interface IDEDeviceAppDataReference : NSObject <DVTXMLUnarchiving> { NSString *_resolvedPath; NSString *_appDataBundleId; NSString *_appDataDownloadDate; } @property(copy) NSString *appDataDownloadDate; // @synthesize appDataDownloadDate=_appDataDownloadDate; @property(copy) NSString *appDataBundleId; // @synthesize appDataBundleId=_appDataBundleId; @property(copy) NSString *resolvedPath; // @synthesize resolvedPath=_resolvedPath; - (void)dvt_encodeRelationshipsWithXMLArchiver:(id)arg1; - (void)setAppDataDownloadDateFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setAppDataBundleIdFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setResolvedPathFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (id)initFromXMLUnarchiver:(id)arg1 archiveVersion:(float)arg2; - (id)init; @end @interface IDEDiagnosticFixItItem : NSObject { IDEDiagnosticActivityLogMessage *_diagnosticItem; NSString *_fixItString; DVTTextDocumentLocation *_replacementLocation; } @property(readonly) DVTTextDocumentLocation *replacementLocation; // @synthesize replacementLocation=_replacementLocation; @property(readonly) NSString *fixItString; // @synthesize fixItString=_fixItString; @property(retain) IDEDiagnosticActivityLogMessage *diagnosticItem; // @synthesize diagnosticItem=_diagnosticItem; - (id)description; - (BOOL)isEqual:(id)arg1; - (BOOL)isEqualToDiagnosticFixItItem:(id)arg1; - (id)init; - (id)initWithFixItString:(id)arg1 replacementLocation:(id)arg2; @end @interface IDEDisassemblyStorageSupport : NSObject { } + (unsigned long long)_integerFromHexString:(id)arg1; + (unsigned long long)_integerAddressFromLineOfDisassembly:(id)arg1; + (id)hexAddressFromLineOfDisassembly:(id)arg1; + (id)addressForLineNumber:(unsigned long long)arg1 inDisassemblyAtURL:(id)arg2; + (unsigned long long)_lineNumberForAddress:(id)arg1 inLinesOfDisassembly:(id)arg2; + (unsigned long long)lineNumberForAddress:(id)arg1 inDisassembly:(id)arg2; + (BOOL)isDisassemblyStorageURL:(id)arg1; @end @interface IDEEnvironmentVariableEntry : NSObject { NSString *_key; NSString *_value; BOOL _isEnabled; } + (id)environmentEntriesForLegacyValues:(id)arg1; @property(getter=isEnabled) BOOL enabled; // @synthesize enabled=_isEnabled; @property(copy) NSString *value; // @synthesize value=_value; @property(copy) NSString *key; // @synthesize key=_key; - (void)setIsEnabledFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setValueFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setKeyFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (id)description; - (id)init; - (id)initWithKey:(id)arg1 value:(id)arg2 enabled:(BOOL)arg3; @end @interface IDEExceptionBreakpoint : IDEBreakpoint { int _scope; int _stopOnStyle; NSString *_exceptionName; } + (BOOL)isAllObjectiveCExceptionsBreakpoint:(id)arg1; + (BOOL)isAllExceptionsBreakpoint:(id)arg1; + (BOOL)isCPPOrAllExceptionBreakpoint:(id)arg1; + (BOOL)isCPPExceptionBreakpoint:(id)arg1; + (id)keyPathsForValuesAffectingDisplayName; + (id)propertiesAffectingPersistenceState; @property(copy) NSString *exceptionName; // @synthesize exceptionName=_exceptionName; @property int stopOnStyle; // @synthesize stopOnStyle=_stopOnStyle; @property int scope; // @synthesize scope=_scope; - (void)dvt_encodeRelationshipsWithXMLArchiver:(id)arg1; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (id)initFromXMLUnarchiver:(id)arg1 archiveVersion:(float)arg2; - (void)dvt_awakeFromXMLUnarchiver:(id)arg1; - (BOOL)matchesAllExceptionsInScope; - (id)description; - (id)copyWithZone:(struct _NSZone *)arg1; - (id)displayName; - (id)init; @end @interface IDEExecutionAction : NSObject <DVTXMLUnarchiving> { NSString *_title; IDEScheme *_runContext; } + (id)actionType; @property(retain) IDEScheme *runContext; // @synthesize runContext=_runContext; @property(copy, nonatomic) NSString *title; // @synthesize title=_title; @property(readonly) BOOL needsCurrentArchiveVersion; - (void)setTitleFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (id)initFromXMLUnarchiver:(id)arg1 archiveVersion:(float)arg2; - (id)operationForExecutionWithRunDestination:(id)arg1 schemeCommand:(int)arg2 error:(id *)arg3; @property(readonly) NSDictionary *actionEnvironmentVariables; @end @interface IDEExecutionActionArchivingProxy : NSObject { NSString *_actionExtensionID; IDEExecutionAction *_proxiedAction; } + (id)actionProxyForAction:(id)arg1; @property(readonly) IDEExecutionAction *proxiedAction; // @synthesize proxiedAction=_proxiedAction; @property(readonly) NSString *actionExtensionID; // @synthesize actionExtensionID=_actionExtensionID; - (void)addActionContent:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)setActionTypeFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)dvt_encodeRelationshipsWithXMLArchiver:(id)arg1; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; @end @interface IDEExecutionActionOperation : DVTOperation { id _environmentPopulationBlock; } @property(copy) id environmentPopulationBlock; // @synthesize environmentPopulationBlock=_environmentPopulationBlock; @end @interface IDEExecutionActionType : NSObject { NSString *_identifier; } + (id)actionTypeWithIdentifier:(id)arg1 error:(id *)arg2; + (BOOL)point:(id)arg1 isSubpointOfPoint:(id)arg2; + (id)actionTypePoint; @property(readonly) NSString *identifier; // @synthesize identifier=_identifier; @end @interface IDEExecutionEnvironment : NSObject { IDEWorkspaceArena *_workspaceArena; id <IDEClientTracking> _clientTracker; NSOperationQueue *_operationQueue; NSMutableArray *_executionTrackers; IDEExecutionTracker *_currentExecutionTracker; NSMutableSet *_pendingBuildOperations; IDEBuildOperation *_currentBuildOperation; int _buildState; int _lastBuildResult; NSMutableArray *_launchSessions; IDELaunchSession *_selectedLaunchSession; IDELaunchSession *_currentLaunchSession; IDEBreakpointManager *_breakpointManager; NSMapTable *_productNamesToBuildableProductsMapping; IDELogStore *_logStore; id <IDEPreBuildSavingDelegate> _preBuildSavingDelegate; BOOL _handlingLaunchSessionStateChange; BOOL _settingLaunchSessionForTabChange; } + (BOOL)automaticallyNotifiesObserversOfCurrentLaunchSession; + (id)keyPathsForValuesAffectingLatestBuildLog; + (id)keyPathsForValuesAffectingLogRecords; + (BOOL)automaticallyNotifiesObserversForCurrentExecutionTracker; + (void)initialize; @property(retain) id <IDEPreBuildSavingDelegate> preBuildSavingDelegate; // @synthesize preBuildSavingDelegate=_preBuildSavingDelegate; @property(retain) id <IDEClientTracking> clientTracker; // @synthesize clientTracker=_clientTracker; @property(copy) NSMapTable *productNamesToBuildableProductsMapping; // @synthesize productNamesToBuildableProductsMapping=_productNamesToBuildableProductsMapping; @property(readonly) int lastBuildResult; // @synthesize lastBuildResult=_lastBuildResult; @property(readonly) int buildState; // @synthesize buildState=_buildState; @property(readonly) NSSet *pendingBuildOperations; // @synthesize pendingBuildOperations=_pendingBuildOperations; @property(retain) IDEBuildOperation *currentBuildOperation; // @synthesize currentBuildOperation=_currentBuildOperation; @property(retain) IDEWorkspaceArena *workspaceArena; // @synthesize workspaceArena=_workspaceArena; @property(retain) IDEBreakpointManager *breakpointManager; // @synthesize breakpointManager=_breakpointManager; @property(retain, nonatomic) IDELaunchSession *currentLaunchSession; // @synthesize currentLaunchSession=_currentLaunchSession; @property(retain, nonatomic) IDELaunchSession *selectedLaunchSession; // @synthesize selectedLaunchSession=_selectedLaunchSession; @property(retain) NSOperationQueue *operationQueue; // @synthesize operationQueue=_operationQueue; @property(retain) IDEExecutionTracker *currentExecutionTracker; // @synthesize currentExecutionTracker=_currentExecutionTracker; - (void)observeValueForKeyPath:(id)arg1 ofObject:(id)arg2 change:(id)arg3 context:(void *)arg4; - (void)_addMissingErrorForFailedBuildToRecorder:(id)arg1; - (void)_handleLaunchSession:(id)arg1 stateChange:(id)arg2; - (void)_detectNameConflict:(char *)arg1 sameScheme:(char *)arg2 forLaunchSession:(id)arg3 add:(BOOL)arg4; - (void)_detectNameConflict:(char *)arg1 sameScheme:(char *)arg2 forLaunchSession:(id)arg3 otherLaunchSession:(id)arg4; - (void)_setStatusForExecutionTrackerInLaunchSession:(id)arg1 nameConflict:(BOOL)arg2 sameScheme:(BOOL)arg3; - (void)_noteLaunchSessionTargetOutputStateChanged:(id)arg1; - (void)_setSelectedLaunchSessionForTabChange:(id)arg1; @property(readonly) IDEActivityLogSection *latestBuildLog; @property(readonly) NSArray *logRecords; - (void)updateLogsFromOperation:(id)arg1; - (id)executeOperation:(id)arg1 withCommandName:(id)arg2 error:(id *)arg3; - (id)initWithWorkspaceArena:(id)arg1; // Remaining properties @property(readonly) NSArray *executionTrackers; // @dynamic executionTrackers; @property(readonly) NSArray *launchSessions; // @dynamic launchSessions; @property(readonly) NSMutableArray *mutableExecutionTrackers; // @dynamic mutableExecutionTrackers; @property(readonly) NSMutableArray *mutableLaunchSessions; // @dynamic mutableLaunchSessions; @end @interface IDEExecutionTracker : NSObject { NSString *_statusDisplayName; DVTFilePath *_statusImageFilePath; IDELaunchSession *_launchSession; NSMutableArray *_subtrackers; } @property(retain) IDELaunchSession *launchSession; // @synthesize launchSession=_launchSession; @property(retain) DVTFilePath *statusImageFilePath; // @synthesize statusImageFilePath=_statusImageFilePath; @property(retain) NSString *statusDisplayName; // @synthesize statusDisplayName=_statusDisplayName; - (void)setStatusDisplayName:(id)arg1 statusImageFilePath:(id)arg2; - (void)observeValueForKeyPath:(id)arg1 ofObject:(id)arg2 change:(id)arg3 context:(void *)arg4; - (void)addSubtracker:(id)arg1; - (void)cancel; @property(readonly) BOOL isFinished; @property(readonly) BOOL statusChanged; - (id)init; @end @interface IDEExecutionOperationTracker : IDEExecutionTracker { DVTOperation *_operation; BOOL _operationFinished; } @property(nonatomic) BOOL operationFinished; // @synthesize operationFinished=_operationFinished; @property(retain) DVTOperation *operation; // @synthesize operation=_operation; - (void)observeValueForKeyPath:(id)arg1 ofObject:(id)arg2 change:(id)arg3 context:(void *)arg4; - (BOOL)isFinished; - (void)cancel; - (id)initWithOperation:(id)arg1; @end @interface IDEExecutionRunnableTracker : IDEExecutionTracker <IDERunOperationWorkerTracker> { BOOL _finishedRunning; IDERunOperationWorker *_worker; } - (void)runningDidFinish:(id)arg1 withError:(id)arg2; - (void)cancel; - (BOOL)isFinished; - (id)initWithWorker:(id)arg1; @end @interface IDEFileBreakpoint : IDEBreakpoint { NSURL *_documentURL; DVTTextDocumentLocation *_location; NSString *_filePath; NSString *_timestampString; long long _startingColumnNumber; long long _endingColumnNumber; long long _startingLineNumber; long long _endingLineNumber; NSString *_characterRangeString; NSString *_landmarkName; unsigned long long _landmarkType; } + (id)keyPathsForValuesAffectingDisplayName; + (id)propertiesAffectingPersistenceState; @property unsigned long long landmarkType; // @synthesize landmarkType=_landmarkType; @property(copy) NSString *landmarkName; // @synthesize landmarkName=_landmarkName; @property(copy) DVTTextDocumentLocation *location; // @synthesize location=_location; @property(readonly) NSURL *documentURL; // @synthesize documentURL=_documentURL; - (id)ideModelObjectTypeIdentifier; - (id)zeroBasedLocation; - (void)dvt_encodeRelationshipsWithXMLArchiver:(id)arg1; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (id)initFromXMLUnarchiver:(id)arg1 archiveVersion:(float)arg2; - (void)dvt_awakeFromXMLUnarchiver:(id)arg1; - (id)description; - (void)setLocationFromZeroBasedLocation:(id)arg1; - (id)copyWithZone:(struct _NSZone *)arg1; - (id)displayName; - (id)initWithDocumentTextLocation:(id)arg1; @end @interface IDEFileBreakpointWrapper : IDEBreakpointWrapper { } - (void)setLineNumber:(long long)arg1; - (long long)lineNumber; - (void)setFileReference:(id)arg1; - (id)fileReference; @end @interface IDEFileBuildOperation : IDEBuildOperation { DVTFilePath *_filePath; } @property(readonly) DVTFilePath *filePath; // @synthesize filePath=_filePath; - (void)addOperationsForBuildables; - (id)_buildableWhichIncludesFilePath:(id)arg1 startingWithBuildable:(id)arg2 recursionDetectionSet:(id)arg3; - (id)initWithBuildOperationDescription:(id)arg1 purpose:(int)arg2 configurationName:(id)arg3 buildables:(id)arg4 buildLog:(id)arg5 executionEnvironment:(id)arg6 overridingProperties:(id)arg7 activeRunDestination:(id)arg8 activeArchitecture:(id)arg9 parallelizeBuildables:(BOOL)arg10 buildImplicitDependencies:(BOOL)arg11 restorePersistedBuildResults:(BOOL)arg12; - (id)initWithBuildOperationDescription:(id)arg1 purpose:(int)arg2 buildCommand:(int)arg3 configurationName:(id)arg4 buildables:(id)arg5 filePath:(id)arg6 buildLog:(id)arg7 executionEnvironment:(id)arg8 overridingProperties:(id)arg9 activeRunDestination:(id)arg10 activeArchitecture:(id)arg11 considerImplicitDependencies:(BOOL)arg12 restorePersistedBuildResults:(BOOL)arg13; @end @interface IDEFileReference : IDEContainerItem <IDEStructureEditing> { DVTFileDataType *_assignedFileDataType; DVTFilePath *_watchedFilePath; DVTFilePath *_oldWatchedFilePath; DVTFilePath *_resolvedFilePath; DVTFileDataType *_lastKnownFileDataType; DVTFileDataType *_lastDiscoveredFileDataType; DVTFileDataType *_discoveredFileDataType; DVTExtension *_referencedContainerExtension; IDEContainer *_referencedContainer; BOOL _workaroundForProblem8727051; int _sourceControlLocalStatus; int _sourceControlServerStatus; unsigned long long _conflictStateForUpdateOrMerge; int _aggregateSourceControlLocalStatus; int _aggregateSourceControlServerStatus; unsigned long long _aggregateSourceControlConflictStatus; BOOL _sourceControlLocalStatusNeedsUpdate; BOOL _sourceControlServerStatusNeedsUpdate; BOOL _sourceControlConflictStatusNeedsUpdate; } + (BOOL)automaticallyNotifiesObserversOfAggregateSourceControlConflictStatus; + (BOOL)automaticallyNotifiesObserversOfAggregateSourceControlServerStatus; + (BOOL)automaticallyNotifiesObserversOfAggregateSourceControlLocalStatus; + (BOOL)automaticallyNotifiesObserversOfConflictStateForUpdateOrMerge; + (BOOL)automaticallyNotifiesObserversOfSourceControlServerStatus; + (BOOL)automaticallyNotifiesObserversOfSourceControlLocalStatus; + (id)keyPathsForValuesAffectingName; + (id)fileReferenceAssociatesForPath:(id)arg1 forAllPathsToSameFile:(BOOL)arg2; + (void)initialize; + (id)keyPathsForValuesAffectingIdeModelObjectTypeIdentifier; @property(copy, nonatomic) DVTFileDataType *assignedFileDataType; // @synthesize assignedFileDataType=_assignedFileDataType; - (BOOL)structureEditSetName:(id)arg1 inContext:(id)arg2; - (id)_structureEditNameForSuggestedName:(id)arg1; - (BOOL)canStructureEditName; - (BOOL)structureEditRemoveSubitemsAtIndexes:(id)arg1 error:(id *)arg2; - (BOOL)canStructureEditRemoveSubitemsAtIndexes:(id)arg1; - (BOOL)structureEditSortSubitemsAtIndexes:(id)arg1 byNameOrByType:(BOOL)arg2; - (BOOL)canStructureEditSortSubitemsAtIndexes:(id)arg1 byNameOrByType:(BOOL)arg2; - (id)structureEditInsertFileURLs:(id)arg1 atIndex:(unsigned long long)arg2 createGroupsForFolders:(BOOL)arg3; - (BOOL)canStructureEditInsertFileURLs:(id)arg1 atIndex:(unsigned long long)arg2; - (id)structureEditInsertSubitems:(id)arg1 atIndex:(unsigned long long)arg2; - (BOOL)canStructureEditInsertSubitems:(id)arg1 atIndex:(unsigned long long)arg2; - (BOOL)allowUserModificationOfSubitems; - (void)fileReferenceWasConfigured; - (void)_takeConfigurationFromFileReference:(id)arg1; - (void)invalidate; - (void)debugPrintInnerStructure; - (void)_updateSourceControlStatusIfNeeded; - (void)_updateAggregateSourceControlConflictStatus; - (void)_updateAggregateSourceControlServerStatus; - (void)_updateAggregateSourceControlLocalStatus; - (void)_setAggregateSourceControlConflictStatus:(unsigned long long)arg1; - (void)_setAggregateSourceControlServerStatus:(int)arg1; - (void)_setAggregateSourceControlLocalStatus:(int)arg1; - (void)_updateConflictStateForUpdateOrMerge; @property unsigned long long conflictStateForUpdateOrMerge; - (void)_updateSourceControlServerStatus; @property int sourceControlServerStatus; - (void)_updateSourceControlLocalStatus; @property int sourceControlLocalStatus; - (unsigned long long)aggregateSourceControlConflictStatus; - (int)aggregateSourceControlServerStatus; - (int)aggregateSourceControlLocalStatus; - (BOOL)isReferencedContainerLoaded; - (void)_invalidateReferencedContainer; - (void)observeValueForKeyPath:(id)arg1 ofObject:(id)arg2 change:(id)arg3 context:(void *)arg4; - (id)_referencedContainer; @property(readonly) IDEContainer *referencedContainer; - (BOOL)_workaroundForProblem8727051; - (void)_invalidateReferencedContainerExtension; @property(readonly) DVTExtension *referencedContainerExtension; - (BOOL)_isBuildProductReference; - (void)_invalidateFileDataType; @property(readonly) DVTFileDataType *discoveredFileDataType; @property(readonly) DVTFileDataType *lastKnownFileDataType; - (void)_assignedFileDataTypeDidChange; - (BOOL)_resolvedFilePathIsValid; - (void)_resolvedFilePathDidChange:(id)arg1; - (void)_invalidateResolvedFilePathUsingPath:(id)arg1 resolutionStrategies:(id)arg2; - (void)_invalidateResolvedFilePath; - (id)_resolvedFilePathIfAvailable; @property(readonly) DVTFilePath *resolvedFilePath; @property(readonly) NSString *name; - (void)_invalidateStartingWith:(id)arg1 changeBlock:(id)arg2; - (void)_invalidateStartingWith:(id)arg1; - (void)changePath:(id)arg1 resolutionStrategies:(id)arg2; - (void)_setContainer:(id)arg1; - (BOOL)_willSetContainer:(id)arg1; - (id)init; - (void)setAssignedFileDataTypeFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)dvt_encodeRelationshipsWithXMLArchiver:(id)arg1; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (void)dvt_awakeFromXMLUnarchiver:(id)arg1; - (id)ideModelObjectTypeIdentifier; @property(readonly) NSString *sourceControlCurrentRevision; @end @interface IDEFileReferenceContainerObserver : NSObject <DVTInvalidation> { id _skipReferencePredicateBlock; id _updateHandlerBlock; DVTStackBacktrace *_invalidationBacktrace; NSMutableDictionary *_incrementalResults; NSMutableDictionary *_compositeResults; id <DVTObservingToken> _matchesKVOToken; IDEContainerQuery *_containerQuery; NSMutableSet *_incrementalRemovals; IDEContainer *_observedContainer; NSMutableSet *_observationBlocks; NSMutableSet *_previousFilePaths; double _postingDelay; struct dispatch_queue_s *_ioQueue; NSString *_identifier; NSSet *_observedTypes; BOOL _processConcurrently; BOOL _isInvalidated; } + (void)unregisterObserver:(id)arg1; + (id)observerForContainer:(id)arg1 types:(id)arg2 identifier:(id)arg3 updateHandlerBlock:(id)arg4; + (id)observerForContainer:(id)arg1 types:(id)arg2 identifier:(id)arg3 updateHandlerBlock:(id)arg4 skipFileReferencePredicate:(void)arg5; @property(readonly) DVTStackBacktrace *invalidationBacktrace; // @synthesize invalidationBacktrace=_invalidationBacktrace; @property(nonatomic) BOOL processConcurrently; // @synthesize processConcurrently=_processConcurrently; @property(nonatomic) double postingDelay; // @synthesize postingDelay=_postingDelay; @property(readonly) NSString *identifier; // @synthesize identifier=_identifier; @property(readonly) NSSet *observedTypes; // @synthesize observedTypes=_observedTypes; @property(readonly) IDEContainer *observedContainer; // @synthesize observedContainer=_observedContainer; - (void)processPendingResults; - (void)processResultForPath:(id)arg1 updateType:(long long)arg2; - (void)postResults; - (void)postResultsRetrospectiveResultsToObserverBlock:(id)arg1; - (void)setResult:(id)arg1 forPath:(id)arg2; - (void)matchedContainerItemsDidChange:(id)arg1; - (void)invalidateProcessing; - (void)invalidatePosting; - (id)addObserver:(id)arg1; - (id)description; @property(readonly, nonatomic, getter=isValid) BOOL valid; - (void)invalidate; - (id)initWithContainer:(id)arg1 types:(id)arg2 identifier:(id)arg3 updateHandlerBlock:(id)arg4 skipFileReferencePredicate:(void)arg5; @end @interface IDEFileReferenceContainerObserverCacheKey : NSObject { IDEContainer *_container; NSString *_identifier; NSSet *_types; } - (id)description; - (unsigned long long)hash; - (BOOL)isEqual:(id)arg1; - (id)initWithContainerObserver:(id)arg1; - (id)initWithContainer:(id)arg1 types:(id)arg2 identifier:(id)arg3; @end @interface IDEFileReferenceCore : IDEContainerItemCore <IDEFileReferenceCore> { DVTFileDataType *_assignedDataType; } @property(copy) DVTFileDataType *assignedDataType; // @synthesize assignedDataType=_assignedDataType; // Remaining properties @property(readonly) id <IDEContainerCore> parentContainer; @property(retain) id <IDEGroupCore> parentGroup; @property(copy) NSString<DVTMacroExpansion> *path; @end @interface IDEItemReferenceWrapper : IDEContainerItemWrapper { } - (void)setUsesTabs:(BOOL)arg1; - (BOOL)usesTabs; - (void)setTabWidth:(long long)arg1; - (long long)tabWidth; - (void)setRealPath:(id)arg1; - (id)realPath; - (void)setPath:(id)arg1; - (id)path; - (void)setLineEnding:(unsigned int)arg1; - (unsigned int)lineEnding; - (void)setIndentWidth:(long long)arg1; - (long long)indentWidth; - (void)setGroup:(id)arg1; - (id)group; - (void)setFullPath:(id)arg1; - (id)fullPath; - (void)setFileEncoding:(unsigned int)arg1; - (unsigned int)fileEncoding; - (void)setEntireContents:(id)arg1; - (id)entireContents; - (void)setContents:(id)arg1; - (id)contents; - (id)name; @end @interface IDEFileReferenceWrapper : IDEItemReferenceWrapper { } - (void)setTag:(id)arg1; - (void)setStatus:(int)arg1; - (void)setRevisionNumber:(id)arg1; - (void)setHeadRevisionNumber:(id)arg1; - (void)setFileKind:(id)arg1; @end @interface IDEFolder : IDEContainer { DVTDispatchLock *_generationLock; unsigned long long _updateOperationGeneration; } + (BOOL)supportsMultipleInstancesPerFilePath; + (BOOL)_observeContainerDataFilePathsForChanges; + (BOOL)_THREAD_shouldAddFileWithName:(id)arg1; + (id)containerTypeDisplayName; + (id)containerFileDataType; + (void)initialize; - (void)invalidate; - (void)_respondToFileChangeOnDiskWithFilePath:(id)arg1; - (id)initWithFilePath:(id)arg1 extension:(id)arg2 workspace:(id)arg3 error:(id *)arg4; - (void)_filePathDidChange:(id)arg1; - (id)_THREAD_fileNamesAtFilePath:(id)arg1; - (void)_updateSubitemsWithFileNames:(id)arg1; - (id)_itemBaseFilePathForFilePath:(id)arg1; - (id)createRootGroup; @end @interface IDEFolderCore : IDEContainerCore <IDEFolderCore> { } // Remaining properties @property(readonly) DVTStackBacktrace *invalidationBacktrace; @property(readonly, nonatomic, getter=isValid) BOOL valid; @end @interface IDEFoundationTestInitializer : NSObject { } + (BOOL)initializeTestabilityOrError:(id *)arg1; @end @interface IDEFramework : IDEFolder { } + (id)containerTypeDisplayName; + (BOOL)_THREAD_shouldAddFileWithName:(id)arg1; + (void)initialize; - (id)displayName; @end @interface IDEFrameworkCore : IDEContainerCore <IDEFrameworkCore> { } // Remaining properties @property(readonly) DVTStackBacktrace *invalidationBacktrace; @property(readonly, nonatomic, getter=isValid) BOOL valid; @end @interface IDEGroup : IDEContainerItem <IDEStructureEditing> { IDEContainer *_container; NSString *_name; DVTFilePath *_resolvedFilePath; DVTCopyOnWriteMutableArray *_subitems; BOOL _subitemsAreValid; BOOL _pendingAsynchronousUpdate; int _sourceControlLocalStatus; int _sourceControlServerStatus; unsigned long long _conflictStateForUpdateOrMerge; BOOL _sourceControlLocalStatusNeedsUpdate; BOOL _sourceControlServerStatusNeedsUpdate; BOOL _conflictStateForUpdateOrMergeNeedsUpdate; } + (Class)_groupClassForGroup:(id)arg1; + (Class)_fileReferenceClassForFileReference:(id)arg1; + (Class)_groupClassForSubitems; + (Class)_fileReferenceClassForSubitems; + (id)_groupForFolderURL:(id)arg1 targetGroup:(id)arg2; + (id)_fileReferenceWithFileURL:(id)arg1 targetGroup:(id)arg2; + (BOOL)_shouldCreateContainerItemForFileURL:(id)arg1 isFolder:(char *)arg2; + (BOOL)automaticallyNotifiesObserversOfConflictStateForUpdateOrMerge; + (BOOL)automaticallyNotifiesObserversOfSourceControlServerStatus; + (BOOL)automaticallyNotifiesObserversOfSourceControlLocalStatus; + (BOOL)automaticallyNotifiesObserversOfSubitems; + (id)keyPathsForValuesAffectingConflictStateForUpdateOrMerge; + (id)keyPathsForValuesAffectingSourceControlServerStatus; + (id)keyPathsForValuesAffectingSourceControlLocalStatus; @property(copy, nonatomic) NSString *name; // @synthesize name=_name; - (BOOL)createNewSubgroupAtIndex:(unsigned long long)arg1; - (id)_availableNameBasedOn:(id)arg1; - (id)_subgroupNamed:(id)arg1; - (BOOL)structureEditSetName:(id)arg1 inContext:(id)arg2; - (BOOL)canStructureEditName; - (BOOL)structureEditRemoveSubitemsAtIndexes:(id)arg1 error:(id *)arg2; - (BOOL)structureEditRemoveSubitemsPreflightForIndexes:(id)arg1 error:(id *)arg2; - (BOOL)canStructureEditRemoveSubitemsAtIndexes:(id)arg1; - (BOOL)structureEditSortSubitemsAtIndexes:(id)arg1 byNameOrByType:(BOOL)arg2; - (BOOL)canStructureEditSortSubitemsAtIndexes:(id)arg1 byNameOrByType:(BOOL)arg2; - (id)structureEditInsertFileURLs:(id)arg1 atIndex:(unsigned long long)arg2 createGroupsForFolders:(BOOL)arg3; - (BOOL)canStructureEditInsertFileURLs:(id)arg1 atIndex:(unsigned long long)arg2; - (id)structureEditInsertSubitems:(id)arg1 atIndex:(unsigned long long)arg2; - (BOOL)canStructureEditInsertSubitems:(id)arg1 atIndex:(unsigned long long)arg2; - (BOOL)allowUserModificationOfSubitems; - (BOOL)_acceptsItem:(id)arg1; - (BOOL)_isSubitemOfItem:(id)arg1; - (void)_takeConfigurationFromGroup:(id)arg1; - (void)_copyAndInsertSubitems:(id)arg1 atIndex:(unsigned long long)arg2; - (void)invalidate; - (void)debugPrintInnerStructure; - (void)_invalidateComputedSourceControlStatus; - (void)_setConflictStateForUpdateOrMergeNeedsUpdate; - (void)_setSourceControlServerStatusNeedsUpdate; - (void)_setSourceControlLocalStatusNeedsUpdate; - (void)_setConflictStateForUpdateOrMerge:(unsigned long long)arg1; - (void)_setSourceControlServerStatus:(int)arg1; - (void)_setSourceControlLocalStatus:(int)arg1; - (unsigned long long)aggregateSourceControlConflictStatus; - (int)aggregateSourceControlServerStatus; - (int)aggregateSourceControlLocalStatus; - (unsigned long long)conflictStateForUpdateOrMerge; - (int)sourceControlServerStatus; - (int)sourceControlLocalStatus; - (void)invalidateComputedSubitems; - (id)computedSubitemsWithOldSubitems:(id)arg1; - (void)insertObject:(id)arg1 inGroupSubitemsAtIndex:(unsigned long long)arg2; - (void)removeObjectFromGroupSubitemsAtIndex:(unsigned long long)arg1; - (void)insertGroupSubitems:(id)arg1 atIndexes:(id)arg2; - (void)removeGroupSubitemsAtIndexes:(id)arg1; - (unsigned long long)countOfGroupSubitems; - (id)objectInGroupSubitemsAtIndex:(unsigned long long)arg1; @property(readonly) NSMutableArray *mutableSubitems; - (void)_setSubitems:(id)arg1; @property(readonly) NSArray *subitems; - (id)_subitems; @property(readonly) BOOL subitemsAreComputed; @property(readonly) BOOL subitemsAreEditable; - (id)resolvedFilePath; - (void)_invalidateResolvedFilePath; - (void)changePath:(id)arg1 resolutionStrategies:(id)arg2; - (void)_didSetContainer; - (void)_setContainer:(id)arg1; - (BOOL)_willSetContainer:(id)arg1; - (id)container; - (id)initWithPath:(id)arg1 resolutionStrategies:(id)arg2; - (id)initWithName:(id)arg1; - (id)init; - (void)dvt_encodeRelationshipsWithXMLArchiver:(id)arg1; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (void)dvt_awakeFromXMLUnarchiver:(id)arg1; - (void)dvt_addObject:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)setNameFromUTF8String:(const char *)arg1 fromXMLUnarchiver:(id)arg2; - (id)ideModelObjectTypeIdentifier; @end @interface IDEGroupCore : IDEContainerItemCore <IDEGroupCore> { id <IDEContainerCore> _parentContainer; NSString *_name; NSArray *_subitems; } @property(copy) NSArray *subitems; // @synthesize subitems=_subitems; @property(copy) NSString *name; // @synthesize name=_name; - (void)setParentContainer:(id)arg1; @property(readonly) id <IDEContainerCore> parentContainer; // Remaining properties @property(retain) id <IDEGroupCore> parentGroup; @property(copy) NSString<DVTMacroExpansion> *path; @end @interface IDEGroupWrapper : IDEItemReferenceWrapper { } - (id)sdefSupport_fileReferenceForPath:(id)arg1; - (void)insertInGroups:(id)arg1 atIndex:(long long)arg2; - (void)insertInFileReferences:(id)arg1 atIndex:(long long)arg2; - (id)newScriptingObjectOfClass:(Class)arg1 forValueForKey:(id)arg2 withContentsValue:(id)arg3 properties:(id)arg4; - (id)itemReferences; - (id)groups; - (id)fileReferences; @end @interface IDEInMemoryActivityLogRecord : IDEActivityLogRecord { IDEInMemoryLogStore_Impl *_logStore; IDEActivityLogSection *_fullLog; DVTFileDataType *_documentType; } + (id)keyPathsForValuesAffectingTimeStoppedRecording; + (id)keyPathsForValuesAffectingIsRecording; - (double)timeStoppedRecording; - (id)signature; - (id)documentType; - (double)timeStartedRecording; - (id)title; - (id)uniqueIdentifier; - (id)domainType; - (BOOL)isRecording; - (id)fullLogIfInMemory; - (id)fullLogWithError:(id *)arg1; - (void)removeSelfWithCompletionBlock:(id)arg1; - (BOOL)isRemoved; - (id)initWithLog:(id)arg1 store:(id)arg2; @end @interface IDELogStore : NSObject { NSMutableArray *_logRecords; } + (id)onDiskOrInMemoryLogStoreInWorkspaceArena:(id)arg1 prefix:(id)arg2; + (void)initialize; - (id)logRecordWithURL:(id)arg1; - (id)addLog:(id)arg1 completionBlock:(id)arg2; - (id)init; // Remaining properties @property(readonly) NSArray *logRecords; // @dynamic logRecords; @property(readonly) NSMutableArray *mutableLogRecords; // @dynamic mutableLogRecords; @property BOOL preserveOldLogs; // @dynamic preserveOldLogs; @end @interface IDEInMemoryLogStore : IDELogStore { } + (id)inMemoryStore; @end @interface IDEInMemoryLogStore_Impl : IDEInMemoryLogStore { } - (BOOL)preserveOldLogs; - (void)setPreserveOldLogs:(BOOL)arg1; - (void)_removeLogRecord:(id)arg1 completionBlock:(id)arg2; - (id)addLog:(id)arg1 completionBlock:(id)arg2; @end @interface IDEIndex : NSObject <IDEIndexDatabaseDelegate> { IDEWorkspace *_workspace; DVTFilePath *_databaseFile; IDEIndexingEngine *_engine; IDEIndexQPManager *_qpManager; NSMutableDictionary *_identifiersToIndexables; NSMutableDictionary *_indexablesToProductHeaders; NSMutableDictionary *_copiedHeadersToSources; IDEIndexDatabase *_workspaceDatabase; long long _purgeCount; DVTDispatchLock *_stateLock; DVTDispatchLock *_pchCreationLock; NSMutableDictionary *_pchFiles; NSDate *_lastErrorTime; BOOL _isInvalid; BOOL _isCancelled; BOOL _isInErrorRecoveryMode; BOOL _isReadOnly; id _indexableFileWasAddedNotificationObservingToken; id _indexableFileWillBeRemovedNotificationObservingToken; id _indexableDidRenameFileNotificationObservingToken; id _buildablesDidChangeNotificationObservingToken; id _buildSettingsDidChangeNotificationObservingToken; id _buildOperationDidStopNotificationObservingToken; id _indexingMetric; } + (BOOL)languageSupportsSymbolColoring:(id)arg1; + (id)resolutionForName:(id)arg1 kind:(id)arg2 containerName:(id)arg3; + (id)pathToClang; + (id)_dataSourceExtensionForFile:(id)arg1 withLanguage:(id)arg2; + (void)syncPerformBlockOnMainThread:(id)arg1; + (void)initialize; + (BOOL)indexFollowsActiveScheme; + (id)schedulingLogAspect; + (id)clangInvocationLogAspect; + (id)symbolAdditionLogAspect; + (id)deferredMetricLogAspect; + (id)metricLogAspect; + (id)logAspect; @property(retain, nonatomic) DVTPerformanceMetric *indexingMetric; // @synthesize indexingMetric=_indexingMetric; @property(readonly, nonatomic) DVTFilePath *databaseFile; // @synthesize databaseFile=_databaseFile; @property(readonly, nonatomic) IDEIndexDatabase *database; // @synthesize database=_workspaceDatabase; - (id)mainFilesForFile:(id)arg1; - (id)sdkForFile:(id)arg1; - (id)timestampForFile:(id)arg1; - (void)_buildOperationDidStop:(id)arg1; - (void)_buildSettingsDidChange:(id)arg1; - (void)_activeRunDestinationDidChange:(id)arg1; - (void)_activeRunContextDidChange:(id)arg1; - (void)_clearAllCachedBuildSettings; - (void)_computePreferredTargets; - (id)databaseQueryProvider; - (id)queryProviderForLocation:(id)arg1 highPriority:(BOOL)arg2; - (id)queryProviderForFile:(id)arg1 highPriority:(BOOL)arg2; - (id)resolutionForName:(id)arg1 kind:(id)arg2 containerName:(id)arg3; - (id)effectivePathForHeader:(id)arg1; - (void)didCancelIndexingPCHFile:(id)arg1; - (id)createPCHFile:(id)arg1 willIndex:(BOOL)arg2 arguments:(id)arg3 prefix:(id)arg4; - (void)databaseDidReportError:(id)arg1; - (void)databaseDidLoad:(id)arg1; - (void)databaseDidOpen:(id)arg1; - (id)databaseProvidersAndVersions:(id)arg1; - (void)database:(id)arg1 didForgetFiles:(id)arg2; - (void)database:(id)arg1 didEndImportSession:(id)arg2; - (void)databaseDidSave:(id)arg1; - (void)databaseDidIndexHotFile:(id)arg1; - (void)_respondToFileChangeNotification:(id)arg1; @property(readonly, nonatomic) DVTFilePath *workspaceFile; @property(readonly, nonatomic) NSString *workspaceName; - (id)dataSourceExtensionForFile:(id)arg1 settings:(id)arg2; - (id)_dataSourceExtensionForFile:(id)arg1 withSettings:(id)arg2; - (id)settingsForFile:(id)arg1 indexable:(id)arg2; - (id)_waitForSettingsForFile:(id)arg1 object:(id)arg2; - (id)_waitForSettingsFromObject:(id)arg1; - (void)waitForBuildSystem:(struct dispatch_semaphore_s *)arg1; - (id)workspaceHeadersForIndexable:(id)arg1; - (void)gatherProductHeadersForIndexable:(id)arg1; - (long long)purgeCount; - (void)purgeFileCaches; - (void)close; - (void)expediteIndexing; - (void)_stopIndexing; - (void)setThrottleFactor:(double)arg1; - (void)resumeIndexing; - (void)suspendIndexing; @property(readonly, nonatomic) BOOL shouldAllowRefactoring; @property(readonly, nonatomic) BOOL isQuiescent; - (void)willRegisterMoreFiles:(BOOL)arg1; - (void)unregisterFile:(id)arg1; - (void)registerFile:(id)arg1; - (id)indexableForIdentifier:(id)arg1; - (void)unregisterObject:(id)arg1; - (void)registerObject:(id)arg1; - (void)postNotificationName:(id)arg1; - (void)postNotificationName:(id)arg1 userInfo:(id)arg2; - (id)description; - (void)setIndexState:(id)arg1; - (id)indexState; @property(readonly) DVTFilePath *workspaceBuildProductsDirPath; @property(readonly) DVTFilePath *headerMapFilePath; - (void)observeValueForKeyPath:(id)arg1 ofObject:(id)arg2 change:(id)arg3 context:(void *)arg4; - (id)initWithWorkspace:(id)arg1; - (id)initWithFolder:(id)arg1; - (id)initWithFolder:(id)arg1 forWorkspace:(id)arg2; - (id)_databaseFileURLForFolder:(id)arg1; - (id)_oldDatabaseFolderForWorkspace:(id)arg1; - (id)_databaseFolderForWorkspace:(id)arg1; - (id)_databaseFolderForWorkspace:(id)arg1 useScheme:(BOOL)arg2; - (BOOL)_reopenDatabaseWithRemoval:(BOOL)arg1; - (BOOL)_createDatabaseFolder; - (void)_setupObservers; - (id)mainFileForSelectionFilePath:(id)arg1 buildSettings:(id *)arg2; - (id)objCOrCCompilationUnitIndexablesForMainFile:(id)arg1 indexableObjects:(id)arg2; - (BOOL)isFileObjCCompilationUnitOrHeader:(id)arg1 error:(id *)arg2; - (id)_localizedPhraseForDependentObjCCompilationUnit:(id)arg1 errorLanguages:(id)arg2 sharedLanguageIdentifier:(id)arg3 sharedIndexableObject:(id)arg4; - (id)_localizedDescriptionForObjCCompilationUnit:(id)arg1 errorLanguages:(id)arg2; - (BOOL)_errorLanguages:(id *)arg1 forFilePath:(id)arg2 indexableObjects:(id)arg3; - (id)filesWithSymbolOccurrencesMatchingName:(id)arg1 kind:(id)arg2; - (id)allClassesWithMembers:(id)arg1; - (id)classesWithMembers:(id)arg1; - (id)membersMatchingName:(id)arg1 kinds:(id)arg2 forInterfaces:(id)arg3; - (id)membersMatchingKinds:(id)arg1 forInterfaces:(id)arg2; - (id)symbolsForResolutions:(id)arg1; - (id)codeDiagnosticsAtLocation:(id)arg1 withCurrentFileContentDictionary:(id)arg2; - (id)codeCompletionsAtLocation:(id)arg1 withCurrentFileContentDictionary:(id)arg2 sortedUsingBlock:(id)arg3; - (id)topLevelSymbolsInFile:(id)arg1; - (unsigned long long)countOfSymbolsMatchingKind:(id)arg1 workspaceOnly:(BOOL)arg2; - (id)allSymbolsMatchingKind:(id)arg1 workspaceOnly:(BOOL)arg2 cancelWhen:(id)arg3; - (id)allSymbolsMatchingKind:(id)arg1 workspaceOnly:(BOOL)arg2; - (id)allSymbolsMatchingKind:(id)arg1; - (id)allSymbolsMatchingNames:(id)arg1 kind:(id)arg2; - (id)allSymbolsMatchingName:(id)arg1 kind:(id)arg2; - (id)allProtocolsMatchingName:(id)arg1; - (id)allClassesMatchingName:(id)arg1; - (id)importedFileAtDocumentLocation:(id)arg1 withCurrentFileContentDictionary:(id)arg2; - (id)collectionElementTypeSymbolForSymbol:(id)arg1 withCurrentFileContentDictionary:(id)arg2; - (id)typeSymbolForSymbol:(id)arg1 withCurrentFileContentDictionary:(id)arg2; - (id)referencesToSymbolMatchingName:(id)arg1 inContext:(id)arg2 withCurrentFileContentDictionary:(id)arg3; - (id)referencesToSymbol:(id)arg1 inContext:(id)arg2 withCurrentFileContentDictionary:(id)arg3; - (id)symbolsUsedInContext:(id)arg1 withCurrentFileContentDictionary:(id)arg2; - (id)symbolsOccurrencesInContext:(id)arg1 withCurrentFileContentDictionary:(id)arg2; - (id)symbolsMatchingName:(id)arg1 inContext:(id)arg2 withCurrentFileContentDictionary:(id)arg3; - (id)symbolsMatchingName:(id)arg1 inContext:(id)arg2; - (id)symbolsContaining:(id)arg1 anchorStart:(BOOL)arg2 anchorEnd:(BOOL)arg3 subsequence:(BOOL)arg4 ignoreCase:(BOOL)arg5 cancelWhen:(id)arg6; - (id)symbolsContaining:(id)arg1 anchorStart:(BOOL)arg2 anchorEnd:(BOOL)arg3 subsequence:(BOOL)arg4 ignoreCase:(BOOL)arg5; - (id)topLevelProtocolsWorkspaceOnly:(BOOL)arg1 cancelWhen:(id)arg2; - (id)topLevelProtocolsWorkspaceOnly:(BOOL)arg1; - (id)topLevelProtocols; - (id)topLevelClassesWorkspaceOnly:(BOOL)arg1 cancelWhen:(id)arg2; - (id)topLevelClassesWorkspaceOnly:(BOOL)arg1; - (id)topLevelClasses; - (id)filesContaining:(id)arg1 anchorStart:(BOOL)arg2 anchorEnd:(BOOL)arg3 subsequence:(BOOL)arg4 ignoreCase:(BOOL)arg5; - (id)filesIncludedByFile:(id)arg1; - (id)filesIncludingFile:(id)arg1; @end @interface IDEIndexSymbol : NSObject { NSObject<IDEIndexQueryProvider> *_queryProvider; NSString *_name; DVTSourceCodeSymbolKind *_symbolKind; DVTSourceCodeLanguage *_symbolLanguage; NSString *_resolution; long long _rawKind; long long _rawLanguage; BOOL _lookedForModelOccurrence; BOOL _isVirtual; IDEIndexSymbolOccurrence *_modelOccurrence; } + (id)newSymbolOfKind:(id)arg1 language:(id)arg2 name:(id)arg3 resolution:(id)arg4 forQueryProvider:(id)arg5; + (id)newSymbolOfRawKind:(long long)arg1 rawLanguage:(long long)arg2 name:(id)arg3 resolution:(id)arg4 forQueryProvider:(id)arg5; + (id)newSymbolOfRawKind:(long long)arg1 kind:(id)arg2 rawLanguage:(long long)arg3 language:(id)arg4 name:(id)arg5 resolution:(id)arg6 forQueryProvider:(id)arg7; @property(nonatomic) BOOL isVirtual; // @synthesize isVirtual=_isVirtual; @property(nonatomic) long long rawLanguage; // @synthesize rawLanguage=_rawLanguage; @property(retain, nonatomic) DVTSourceCodeLanguage *symbolLanguage; // @synthesize symbolLanguage=_symbolLanguage; @property(nonatomic) long long rawKind; // @synthesize rawKind=_rawKind; @property(retain, nonatomic) DVTSourceCodeSymbolKind *symbolKind; // @synthesize symbolKind=_symbolKind; @property(retain, nonatomic) NSString *resolution; // @synthesize resolution=_resolution; @property(retain, nonatomic) NSString *name; // @synthesize name=_name; @property(nonatomic) NSObject<IDEIndexQueryProvider> *queryProvider; // @synthesize queryProvider=_queryProvider; - (id)qualifiedDisplayName; - (id)_containerName; - (id)displayName; - (id)_nameFromFile; - (id)referencingFiles; - (id)containerSymbol; - (id)containerSymbols; - (id)definitions; - (id)declarations; - (id)occurrences; - (void)setModelOccurrence:(id)arg1; - (id)modelOccurrence; - (BOOL)isInProject; - (BOOL)isEqual:(id)arg1; - (unsigned long long)hash; - (id)description; @end @interface IDEIndexContainerSymbol : IDEIndexSymbol { } - (id)children; @end @interface IDEIndexCategorySymbol : IDEIndexContainerSymbol { } - (id)relatedClass; - (id)properties; - (id)instanceVariables; - (id)instanceMethods; - (id)classMethods; @end @interface IDEIndexDataSource : NSObject { DVTPerformanceMetric *_generatorMetric; NSString *_source; } + (id)dataSourceVersion; @property(retain, nonatomic) DVTPerformanceMetric *generatorMetric; // @synthesize generatorMetric=_generatorMetric; @property(readonly, nonatomic) NSString *source; // @synthesize source=_source; - (BOOL)generateDataForJob:(id)arg1; - (BOOL)processJob:(id)arg1; - (id)initWithSource:(id)arg1; @end @interface IDEIndexClangDataSource : IDEIndexDataSource { IDEIndexingJob *_job; NSMutableDictionary *_sourcesToNewFiles; NSMutableArray *_containerStack; IDEIndexNewMainFile *_topLevelFile; IDEIndexNewFile *_topLevelSourceFile; void *_lastCXFile; IDEIndexNewFile *_lastNewFile; unsigned long long _numSymbolsReceived; unsigned long long _numVisits; unsigned long long _numSymbolsStored; unsigned long long _numReferencesSkipped; NSArray *_astArgs; NSString *_workingDirectory; } + (id)createPCHFile:(BOOL)arg1 path:(id)arg2 arguments:(id)arg3 prefix:(id)arg4; + (BOOL)_argumentsHasMissingHeadermap:(id)arg1; + (void)logPCHFailure:(id)arg1; + (id)addHeaderMapInclude:(id)arg1 forBuildProductsDir:(id)arg2 useSpellChecking:(BOOL)arg3 toArguments:(id)arg4; + (id)canonicalPathForPath:(id)arg1 index:(id)arg2 arguments:(id)arg3 workingDirectory:(id *)arg4; + (id)workingDirFromArgs:(id)arg1; + (void)logMemoryUsage:(struct CXTranslationUnitImpl *)arg1 forFile:(id)arg2; + (BOOL)loggingMemoryUsage; + (id)resolutionForName:(id)arg1 kind:(id)arg2 containerName:(id)arg3; + (id)dataSourceVersion; + (long long)timingMode; + (void)initialize; @property(nonatomic) unsigned long long numReferencesSkipped; // @synthesize numReferencesSkipped=_numReferencesSkipped; @property(nonatomic) unsigned long long numSymbolsStored; // @synthesize numSymbolsStored=_numSymbolsStored; @property(nonatomic) unsigned long long numVisits; // @synthesize numVisits=_numVisits; @property(nonatomic) unsigned long long numSymbolsReceived; // @synthesize numSymbolsReceived=_numSymbolsReceived; @property(retain, nonatomic) IDEIndexNewFile *lastNewFile; // @synthesize lastNewFile=_lastNewFile; @property(nonatomic) void *lastCXFile; // @synthesize lastCXFile=_lastCXFile; @property(readonly, nonatomic) IDEIndexNewFile *topLevelSourceFile; // @synthesize topLevelSourceFile=_topLevelSourceFile; @property(readonly, nonatomic) IDEIndexNewMainFile *topLevelFile; // @synthesize topLevelFile=_topLevelFile; @property(readonly, nonatomic) NSMutableArray *containerStack; // @synthesize containerStack=_containerStack; @property(readonly, nonatomic) NSMutableDictionary *sourcesToNewFiles; // @synthesize sourcesToNewFiles=_sourcesToNewFiles; @property(readonly, nonatomic) IDEIndexingJob *job; // @synthesize job=_job; - (BOOL)generateDataForJob:(id)arg1; - (BOOL)_addTopLevelFile:(id)arg1 includePath:(id)arg2; - (void *)cursorVisitor; - (id)_canonicalPathForPath:(id)arg1; - (BOOL)_addSymbolWithName:(const char *)arg1 kind:(id)arg2 role:(int)arg3 language:(id)arg4 resolution:(const char *)arg5 line:(long long)arg6 file:(id)arg7 container:(id)arg8 cursor:(CDStruct_a94d320b)arg9; - (id)initWithSource:(id)arg1; @end @interface IDEIndexGenericQueryProvider : NSObject <IDEIndexQueryProvider> { IDEIndexDatabase *_db; NSDictionary *_settings; NSString *_mainFile; NSString *_target; NSDictionary *_coveredFiles; double _lastAccess; } + (BOOL)supportsSymbolColoring; + (id)locationForURL:(id)arg1 locator:(id)arg2; @property(retain, nonatomic) NSDictionary *coveredFiles; // @synthesize coveredFiles=_coveredFiles; @property(copy, nonatomic) NSString *target; // @synthesize target=_target; @property(copy, nonatomic) NSString *mainFile; // @synthesize mainFile=_mainFile; @property double lastAccess; // @synthesize lastAccess=_lastAccess; @property(readonly, nonatomic) NSDictionary *settings; // @synthesize settings=_settings; @property(readonly, nonatomic) IDEIndexDatabase *database; // @synthesize database=_db; - (BOOL)isProjectSymbol:(id)arg1; - (id)locationForSymbolOccurrence:(id)arg1; - (id)correspondingSymbolForOccurrence:(id)arg1; - (id)relatedClassForCategory:(id)arg1; - (id)propertiesForCategory:(id)arg1; - (id)instanceVariablesForCategory:(id)arg1; - (id)instanceMethodsForCategory:(id)arg1; - (id)classMethodsForCategory:(id)arg1; - (id)allImplementingClassesForProtocol:(id)arg1; - (id)implementingClassesForProtocol:(id)arg1; - (id)subProtocolsForProtocol:(id)arg1; - (id)allSuperProtocolsForProtocol:(id)arg1; - (id)superProtocolsForProtocol:(id)arg1; - (id)propertiesForProtocol:(id)arg1; - (id)instanceMethodsForProtocol:(id)arg1; - (id)classMethodsForProtocol:(id)arg1; - (id)allInterfacesForClass:(id)arg1; - (id)interfacesForClass:(id)arg1; - (id)allProtocolsForClass:(id)arg1; - (id)protocolsForClass:(id)arg1; - (id)allOccurrencesOfMembers:(id)arg1 forClass:(id)arg2; - (id)allSubClassesForClass:(id)arg1; - (id)subClassesForClass:(id)arg1; - (id)allSuperClassesForClass:(id)arg1; - (id)superClassesForClass:(id)arg1; - (id)categoriesForClass:(id)arg1; - (id)ibOutletCollectionPropertiesForClass:(id)arg1; - (id)ibOutletCollectionVariablesForClass:(id)arg1; - (id)ibOutletCollectionsForClass:(id)arg1; - (id)ibOutletPropertiesForClass:(id)arg1; - (id)ibOutletVariablesForClass:(id)arg1; - (id)ibOutletsForClass:(id)arg1; - (id)ibActionMethodsForClass:(id)arg1; - (id)propertiesForClass:(id)arg1; - (id)instanceVariablesForClass:(id)arg1; - (id)classVariablesForClass:(id)arg1; - (id)instanceMethodsForClass:(id)arg1; - (id)classMethodsForClass:(id)arg1; - (id)childrenForContainer:(id)arg1; - (id)referencingFilesForSymbol:(id)arg1; - (id)containerSymbolForSymbol:(id)arg1; - (id)containerSymbolsForSymbol:(id)arg1; - (id)definitionsForSymbol:(id)arg1; - (id)declarationsForSymbol:(id)arg1; - (id)occurrencesForSymbol:(id)arg1; - (id)modelOccurrenceForSymbol:(id)arg1; - (id)filesWithSymbolOccurrencesMatchingName:(id)arg1 kind:(id)arg2 forIndex:(id)arg3; - (id)allClassesWithMembers:(id)arg1 forIndex:(id)arg2; - (id)classesWithMembers:(id)arg1 forIndex:(id)arg2; - (id)membersMatchingName:(id)arg1 kinds:(id)arg2 forInterfaces:(id)arg3 forIndex:(id)arg4; - (id)membersMatchingKinds:(id)arg1 forInterfaces:(id)arg2 forIndex:(id)arg3; - (id)symbolsForResolutions:(id)arg1 forIndex:(id)arg2; - (unsigned long long)countOfSymbolsMatchingKind:(id)arg1 workspaceOnly:(BOOL)arg2 forIndex:(id)arg3; - (id)allSymbolsMatchingKind:(id)arg1 workspaceOnly:(BOOL)arg2 cancelWhen:(id)arg3 forIndex:(void)arg4; - (id)allSymbolsMatchingNames:(id)arg1 kind:(id)arg2 forIndex:(id)arg3; - (id)allSymbolsMatchingName:(id)arg1 kind:(id)arg2 forIndex:(id)arg3; - (id)allProtocolsMatchingName:(id)arg1 forIndex:(id)arg2; - (id)allClassesMatchingName:(id)arg1 forIndex:(id)arg2; - (id)symbolsContaining:(id)arg1 anchorStart:(BOOL)arg2 anchorEnd:(BOOL)arg3 subsequence:(BOOL)arg4 ignoreCase:(BOOL)arg5 cancelWhen:(id)arg6 forIndex:(void)arg7; - (id)topLevelProtocolsWorkspaceOnly:(BOOL)arg1 cancelWhen:(id)arg2 forIndex:(void)arg3; - (id)topLevelClassesWorkspaceOnly:(BOOL)arg1 cancelWhen:(id)arg2 forIndex:(void)arg3; - (id)filesContaining:(id)arg1 anchorStart:(BOOL)arg2 anchorEnd:(BOOL)arg3 subsequence:(BOOL)arg4 ignoreCase:(BOOL)arg5 forIndex:(id)arg6; - (id)filesIncludedByFile:(id)arg1 forIndex:(id)arg2; - (id)filesIncludingFile:(id)arg1 forIndex:(id)arg2; - (id)importedFileAtDocumentLocation:(id)arg1 withCurrentFileContentDictionary:(id)arg2 forIndex:(id)arg3; - (id)collectionElementTypeSymbolForSymbol:(id)arg1 withCurrentFileContentDictionary:(id)arg2 forIndex:(id)arg3; - (id)typeSymbolForSymbol:(id)arg1 withCurrentFileContentDictionary:(id)arg2 forIndex:(id)arg3; - (id)referencesToSymbolMatchingName:(id)arg1 inContext:(id)arg2 withCurrentFileContentDictionary:(id)arg3 forIndex:(id)arg4; - (id)referencesToSymbol:(id)arg1 inContext:(id)arg2 withCurrentFileContentDictionary:(id)arg3 forIndex:(id)arg4; - (id)symbolsUsedInContext:(id)arg1 withCurrentFileContentDictionary:(id)arg2 forIndex:(id)arg3; - (id)symbolsOccurrencesInContext:(id)arg1 withCurrentFileContentDictionary:(id)arg2 forIndex:(id)arg3; - (id)codeDiagnosticsAtLocation:(id)arg1 withCurrentFileContentDictionary:(id)arg2 forIndex:(id)arg3; - (id)codeCompletionsAtLocation:(id)arg1 withCurrentFileContentDictionary:(id)arg2 sortedUsingBlock:(id)arg3 forIndex:(void)arg4; - (id)symbolsMatchingName:(id)arg1 inContext:(id)arg2 withCurrentFileContentDictionary:(id)arg3 forIndex:(id)arg4; - (id)symbolsMatchingName:(id)arg1 inContext:(id)arg2 forIndex:(id)arg3; - (id)topLevelSymbolsInFile:(id)arg1 forIndex:(id)arg2; @property(readonly, nonatomic) BOOL hasAST; // @dynamic hasAST; @property(readonly, nonatomic) NSString *pchFile; // @dynamic pchFile; - (void)purgeCaches; - (id)initWithSettings:(id)arg1 database:(id)arg2; @end @interface IDEIndexClangQueryProvider : IDEIndexGenericQueryProvider { DVTDispatchLock *_clangLock; void *_cxIndex; struct CXTranslationUnitImpl *_cxTU; long long _filePurgeCount; NSArray *_astArgs; NSString *_workingDirectory; struct { unsigned int _field1[4]; void *_field2; } *_tokens; CDStruct_a94d320b *_cursors; DVTTextDocumentLocation *_processedLocation; DVTDispatchLock *_completionLock; id _completionBlock; unsigned int _numTokens; BOOL _throwOutCache; } + (BOOL)supportsSymbolColoring; + (void)initialize; - (id)importedFileAtDocumentLocation:(id)arg1 withCurrentFileContentDictionary:(id)arg2 forIndex:(id)arg3; - (id)collectionElementTypeSymbolForSymbol:(id)arg1 withCurrentFileContentDictionary:(id)arg2 forIndex:(id)arg3; - (id)typeSymbolForSymbol:(id)arg1 withCurrentFileContentDictionary:(id)arg2 forIndex:(id)arg3; - (id)referencesToSymbolMatchingName:(id)arg1 inContext:(id)arg2 withCurrentFileContentDictionary:(id)arg3 forIndex:(id)arg4; - (id)referencesToSymbol:(id)arg1 inContext:(id)arg2 withCurrentFileContentDictionary:(id)arg3 forIndex:(id)arg4; - (id)symbolsUsedInContext:(id)arg1 withCurrentFileContentDictionary:(id)arg2 forIndex:(id)arg3; - (id)symbolsOccurrencesInContext:(id)arg1 withCurrentFileContentDictionary:(id)arg2 forIndex:(id)arg3; - (id)processedSymbolsInContext:(id)arg1 initFunction:(id)arg2 visitorFunction:(void)arg3 includeSymbolLocations:(id)arg4 withCurrentFileContentDictionary:(void)arg5 forIndex:(BOOL)arg6; - (id)codeDiagnosticsAtLocation:(id)arg1 withCurrentFileContentDictionary:(id)arg2 forIndex:(id)arg3; - (id)codeCompletionsAtLocation:(id)arg1 withCurrentFileContentDictionary:(id)arg2 sortedUsingBlock:(id)arg3 forIndex:(void)arg4; - (id)symbolsMatchingName:(id)arg1 inContext:(id)arg2 withCurrentFileContentDictionary:(id)arg3 forIndex:(id)arg4; - (id)_symbolsMatchingName:(id)arg1 inContext:(id)arg2 cxTU:(struct CXTranslationUnitImpl *)arg3 forIndex:(id)arg4; - (id)symbolsMatchingName:(id)arg1 inContext:(id)arg2 forIndex:(id)arg3; - (id)_resolutionForCursor:(CDStruct_a94d320b)arg1; - (void)_createSharedTranslationUnitWithCurrentFileContentDictionary:(id)arg1 index:(id)arg2; - (id)_canonicalPathForFile:(void *)arg1 index:(id)arg2; - (id)_canonicalPathForPath:(id)arg1 index:(id)arg2; - (void)_logClangInvocationWithArguments:(id)arg1; - (id)pchFile; - (void)purgeCaches; - (BOOL)hasAST; - (void)finalize; - (void)disposeCIndexAndTU; - (void)disposeTokensAndCursors; - (void)performCompletion:(id)arg1; - (void)asyncPerformClang:(id)arg1; - (void)performClang:(id)arg1; - (void)processCompletions; - (id)initWithSettings:(id)arg1 database:(id)arg2; @end @interface IDEIndexClangTranslationUnit : NSObject { NSString *_path; int _argc; const char **_argv; BOOL _isPCHFile; BOOL _shouldSave; unsigned int _tuOptions; void *_cxIndex; struct CXTranslationUnitImpl *_cxTranslationUnit; } - (void)dealloc; - (void)finalize; - (void)discard; - (void)discardTU; - (void)discardArgs; - (void)logMemoryUsage; - (void)logFailure; - (void)logInvocation; - (void)indexUsingDataSource:(id)arg1; @property(readonly, nonatomic) struct CXTranslationUnitImpl *cxTranslationUnit; - (void)resetArguments:(id)arg1; - (id)initPCHWithPath:(id)arg1 arguments:(id)arg2 shouldSave:(BOOL)arg3; - (id)initWithPath:(id)arg1 arguments:(id)arg2 usesPCHFile:(BOOL)arg3; @end @interface IDEIndexClassSymbol : IDEIndexContainerSymbol { IDEIndexCollection *_subClasses; } - (id)allInterfaces; - (id)interfaces; - (id)allProtocols; - (id)protocols; - (id)allOccurrencesOfMembers:(id)arg1; - (id)allSubclasses; - (id)subclasses; - (id)allSuperclasses; - (id)superclasses; - (id)categories; - (id)ibOutletCollectionProperties; - (id)ibOutletCollectionVariables; - (id)ibOutletCollections; - (id)ibOutletProperties; - (id)ibOutletVariables; - (id)ibOutlets; - (id)ibActionMethods; - (id)properties; - (id)instanceVariables; - (id)classVariables; - (id)instanceMethods; - (id)classMethods; @end @interface IDEIndexCollection : NSObject <NSFastEnumeration> { IDEIndexDBTempTable *_tempTable; NSArray *_instantiatedRows; } @property(readonly, nonatomic) IDEIndexDBTempTable *tempTable; // @synthesize tempTable=_tempTable; - (id)uniqueObjects; - (id)onlyObject; - (id)firstObject; - (id)instantiateRow:(struct sqlite3_stmt *)arg1; - (id)tempTableSchema; - (id)allObjects; - (unsigned long long)countByEnumeratingWithState:(CDStruct_70511ce9 *)arg1 objects:(id *)arg2 count:(unsigned long long)arg3; - (unsigned long long)instantiateRowsUpto:(unsigned long long)arg1; - (void)finalize; - (void)dropTempTable; - (id)description; - (id)initWithConnection:(id)arg1; - (id)initWithArrayNoCopy:(id)arg1; - (id)initWithArray:(id)arg1; - (id)initWithObject:(id)arg1; - (id)init; @end @interface IDEIndexCompletionArray : NSMutableArray { NSMutableArray *_array; void *_completionResults; } - (void)replaceObjectAtIndex:(unsigned long long)arg1 withObject:(id)arg2; - (void)removeObjectAtIndex:(unsigned long long)arg1; - (void)removeLastObject; - (void)insertObject:(id)arg1 atIndex:(unsigned long long)arg2; - (void)addObject:(id)arg1; - (id)objectAtIndex:(unsigned long long)arg1; - (unsigned long long)count; - (void)finalize; - (id)initWithCodeCompleteResults:(void *)arg1; @end @interface IDEIndexCompletionItem : NSObject { void *_completionResult; NSString *_displayText; NSString *_displayType; NSString *_completionText; DVTSourceCodeSymbolKind *_symbolKind; long long _priority; NSString *_name; } @property long long priority; // @synthesize priority=_priority; @property(readonly) NSString *name; // @synthesize name=_name; @property(readonly) BOOL notRecommended; @property(readonly) DVTSourceCodeSymbolKind *symbolKind; @property(readonly) NSAttributedString *descriptionText; @property(readonly) NSString *completionText; @property(readonly) NSString *displayType; @property(readonly) NSString *displayText; - (void)_fillInTheRest; - (id)description; - (id)initWithCompletionResult:(void *)arg1; @end @interface IDEIndexDBSQLStream : NSObject { } - (void)willSubmitTransaction:(id)arg1; - (id)newTransaction; - (void)doSQL1:(id)arg1 withBindings:(id)arg2; - (void)doSQL:(id)arg1; - (void)doBlock:(id)arg1; @property(readonly, nonatomic) IDEIndexDBConnection *dbConnection; @property(readonly, nonatomic) IDEIndexDatabase *database; @end @interface IDEIndexDBConnection : IDEIndexDBSQLStream { IDEIndexDatabase *_database; struct dispatch_queue_s *_runQueue; struct sqlite3 *_dbHandle; id _cancelCallback; long long _tempTableCount; NSMutableSet *_tempTables; BOOL _closing; int _inUseCount; int _collectionCount; } + (void)initialize; - (id)database; - (void)finalize; - (void)close; - (void)wait; - (void)reportSQLiteError:(int)arg1 function:(id)arg2 message:(const char *)arg3 info:(id)arg4; - (void)finalizeSQLiteStmt:(struct sqlite3_stmt **)arg1; - (void)runSQLiteStmt:(struct sqlite3_stmt **)arg1 sql:(id)arg2 bindings:(id)arg3 forEachRow:(void)arg4 whenDone:(id)arg5; - (void)cancelWhen:(id)arg1; - (BOOL)shouldCancel; - (void)shutdown; - (void)runSQLite:(id)arg1; - (void)willSubmitTransaction:(id)arg1; - (int)doSQLChanges:(id)arg1 withBindings:(id)arg2; - (void)doSQLQuery:(id)arg1 withBindings:(id)arg2 forEachRow:(void)arg3; - (void)didDropTempTable:(id)arg1; - (void)didCreateTempTable:(id)arg1; - (id)newTempTableWithName:(id)arg1 schema:(id)arg2; - (id)newTempTableWithSchema:(id)arg1; - (id)newTempTableName; - (void)doBlock:(id)arg1; - (id)dbConnection; - (id)initWithDatabase:(id)arg1 create:(BOOL)arg2; @end @interface IDEIndexDBFactory : NSObject { IDEIndexDBTransaction *_dbTransaction; NSString *_tableName; NSString *_columnNames; NSString *_values; NSString *_insertionSQL; struct sqlite3_stmt *_dbStatement; long long *_objectIdMap; long long _objectIdCount; long long _objectCount; NSString *_tempTableName; NSString *_insertionSQL2; struct sqlite3_stmt *_dbStatement2; } + (void)initialize; @property(readonly, nonatomic) long long objectCount; // @synthesize objectCount=_objectCount; @property(readonly, nonatomic) IDEIndexDBTransaction *dbTransaction; // @synthesize dbTransaction=_dbTransaction; - (void)finalize; - (void)close; - (long long)realObjectIdForId:(long long)arg1; - (void)addObjectId:(long long *)arg1 withBindings:(id)arg2; - (id)initWithTransaction:(id)arg1 table:(id)arg2 columns:(id)arg3; @end @interface IDEIndexDBStringStorage : NSObject { NSURL *_fileURL; DVTDispatchLock *_lock; NSHashTable *_hashTable; NSMutableData *_data; long long _fileSize; } + (void)initialize; @property(readonly, nonatomic) NSURL *fileURL; // @synthesize fileURL=_fileURL; - (void)findStringsContaining:(const char *)arg1 anchorStart:(BOOL)arg2 anchorEnd:(BOOL)arg3 subsequence:(BOOL)arg4 forEachResult:(id)arg5; - (id)findStringAtOffset:(long long)arg1 callback:(id)arg2; - (id)writeChangesToDisk; - (long long)offsetOfString:(const char *)arg1 addIfMissing:(BOOL)arg2; - (void)close; - (id)open; - (id)initWithFileURL:(id)arg1; @end @interface IDEIndexDBTempTable : NSObject { IDEIndexDBConnection *_dbConnection; NSString *_tableName; BOOL _readOnly; long long _count; } @property(readonly, nonatomic) IDEIndexDBConnection *dbConnection; // @synthesize dbConnection=_dbConnection; - (void)enumerateFromOffset:(long long)arg1 limit:(long long)arg2 forEachRow:(id)arg3; - (long long)count; - (void)connectionDidClose; - (void)drop; - (int)insertSQLChanges:(id)arg1 withBindings:(id)arg2; @property(readonly, nonatomic) IDEIndexDatabase *database; - (id)description; - (id)initWithConnection:(id)arg1 name:(id)arg2 schema:(id)arg3; @end @interface IDEIndexDBTransaction : IDEIndexDBSQLStream { NSMutableArray *_runQueue; IDEIndexDBSQLStream *_parent; NSMutableArray *_dbFactories; } @property(retain, nonatomic) IDEIndexDBSQLStream *parent; // @synthesize parent=_parent; - (void)submit; - (void)closeFactories; - (id)newFactoryForTable:(id)arg1 columns:(id)arg2; - (void)doBlock:(id)arg1; @property(readonly, nonatomic) unsigned long long queueSize; - (id)dbConnection; - (id)init; @end @interface IDEIndexDatabase : NSObject { NSURL *_fileURL; IDEIndexImporter *_importer; NSMutableArray *_dbConnections; DVTDispatchLock *_dbConnectionsLock; NSMutableDictionary *_rawKindForSymbolKind; NSMutableDictionary *_symbolKindForRawKind; NSDictionary *_rawLanguageForSymbolLanguage; NSDictionary *_symbolLanguageForRawLanguage; NSObject<IDEIndexDatabaseDelegate> *_delegate; IDEIndexDatabaseQueryProvider *_queryProvider; BOOL _readonly; BOOL _diagnosticMode; BOOL _enabledWAL; NSMutableArray *_errors; DVTDispatchLock *_errorLock; IDEIndexDBStringStorage *_directoryStringStorage; IDEIndexDBStringStorage *_filenameStringStorage; IDEIndexDBStringStorage *_spellingStringStorage; IDEIndexDBStringStorage *_resolutionStringStorage; NSDictionary *_rootPathsTrie; NSMutableDictionary *_rootPathsCache; } + (id)auxTargetID; + (id)pchTargetID; + (void)reportException:(id)arg1; + (BOOL)verboseLogging; + (void)logCritical:(id)arg1; + (void)logVerbose:(id)arg1; + (void)log:(id)arg1; + (void)initialize; @property(readonly, nonatomic) BOOL enabledWAL; // @synthesize enabledWAL=_enabledWAL; @property(readonly, nonatomic) NSObject<IDEIndexQueryProvider> *queryProvider; // @synthesize queryProvider=_queryProvider; @property(retain, nonatomic) NSObject<IDEIndexDatabaseDelegate> *delegate; // @synthesize delegate=_delegate; @property(readonly, nonatomic) IDEIndexImporter *importer; // @synthesize importer=_importer; @property(copy, nonatomic) NSURL *fileURL; // @synthesize fileURL=_fileURL; - (void)saveStringStorage; - (void)findSpellingStringsContaining:(id)arg1 anchorStart:(BOOL)arg2 anchorEnd:(BOOL)arg3 subsequence:(BOOL)arg4 lowercase:(BOOL)arg5 cancelWhen:(id)arg6 forEachResult:(void)arg7; - (void)findFilenameStringsContaining:(id)arg1 anchorStart:(BOOL)arg2 anchorEnd:(BOOL)arg3 subsequence:(BOOL)arg4 lowercase:(BOOL)arg5 cancelWhen:(id)arg6 forEachResult:(void)arg7; - (void)findStringsContaining:(id)arg1 inStorage:(id)arg2 anchorStart:(BOOL)arg3 anchorEnd:(BOOL)arg4 subsequence:(BOOL)arg5 lowercase:(BOOL)arg6 cancelWhen:(id)arg7 forEachResult:(void)arg8; - (id)filePathForDirectoryAtOffset:(long long)arg1 fileAtOffset:(long long)arg2; - (char *)resolutionCStringAtOffset:(long long)arg1; - (char *)spellingCStringAtOffset:(long long)arg1; - (char *)filenameCStringAtOffset:(long long)arg1; - (char *)directoryCStringAtOffset:(long long)arg1; - (char *)cStringAtOffset:(long long)arg1 inStorage:(id)arg2; - (id)resolutionStringAtOffset:(long long)arg1; - (id)spellingStringAtOffset:(long long)arg1; - (id)filenameStringAtOffset:(long long)arg1; - (id)directoryStringAtOffset:(long long)arg1; - (id)stringAtOffset:(long long)arg1 inStorage:(id)arg2; - (long long)offsetOfResolutionCString:(const char *)arg1 addIfMissing:(BOOL)arg2; - (long long)offsetOfSpellingCString:(const char *)arg1 addIfMissing:(BOOL)arg2; - (long long)offsetOfResolutionString:(id)arg1 addIfMissing:(BOOL)arg2; - (long long)offsetOfSpellingString:(id)arg1 addIfMissing:(BOOL)arg2; - (long long)offsetOfFilenameString:(id)arg1 addIfMissing:(BOOL)arg2; - (long long)offsetOfDirectoryString:(id)arg1 addIfMissing:(BOOL)arg2; - (long long)offsetOfString:(id)arg1 inStorage:(id)arg2 addIfMissing:(BOOL)arg3; - (void)registerSymbolLanguages:(id)arg1; - (id)symbolLanguageForRawLanguage:(long long)arg1; - (long long)rawLanguageForSymbolLanguage:(id)arg1; - (void)addKindsTableToConnection:(id)arg1; - (void)registerSymbolKinds:(id)arg1; - (id)symbolKindForRawKind:(long long)arg1; - (long long)rawKindForSymbolKind:(id)arg1; - (void)purgeStaleData:(id)arg1; - (BOOL)spliceChanges:(id)arg1 toMainFile:(id)arg2 target:(id)arg3; - (void)registerHotFile:(id)arg1; - (void)unregisterTarget:(id)arg1 dirtyFiles:(id)arg2; - (void)registerTarget:(id)arg1 outOfDateCallback:(id)arg2; - (id)auxiliaryFiles:(id)arg1 mainFile:(id)arg2; - (id)mainFilesForFile:(id)arg1; - (id)timestampForFile:(id)arg1; - (BOOL)isKnownFile:(id)arg1; - (id)mainFilesForTarget:(id)arg1; - (id)filesForMainFile:(id)arg1 target:(id)arg2 followPCH:(BOOL)arg3; - (id)filesForMainFile:(id)arg1 target:(id)arg2; - (BOOL)isProjectFile:(id)arg1; - (id)rebuildProjectFiles:(id)arg1; - (BOOL)updateProjectFiles:(id)arg1; - (BOOL)isProjectDirectory:(id)arg1; - (void)setRootPaths:(id)arg1; - (id)newImportSession; - (id)providersAndVersions; @property(readonly, nonatomic) NSArray *errors; - (void)reportErrorCode:(long long)arg1 description:(id)arg2 reason:(id)arg3; - (void)reportError:(id)arg1; - (void)didReportError; - (void)didForgetFiles:(id)arg1; - (void)sendDelegateDidForgetFiles:(id)arg1; - (void)didEndSession:(id)arg1; - (void)sendDelegateDidEndImportSession:(id)arg1; - (void)didSave; - (void)didIndexHotFile; - (void)didLoad; - (void)close; - (void)releaseQueryConnection:(id)arg1; - (id)obtainQueryConnection:(id)arg1; - (id)newConnection; - (void)openReadonly:(BOOL)arg1 diagnosticMode:(BOOL)arg2; - (void)openInDiagnosticMode; - (void)openReadonly; - (void)open; - (id)initWithFileURL:(id)arg1; @end @interface IDEIndexDatabaseQueryProvider : NSObject <IDEIndexQueryProvider> { IDEIndexDatabase *_database; NSDictionary *_settings; DVTDispatchLock *_cacheLock; NSDictionary *_symbolCountsByKind; } + (BOOL)supportsSymbolColoring; + (id)locationForURL:(id)arg1 locator:(id)arg2; @property(readonly, nonatomic) NSDictionary *settings; // @synthesize settings=_settings; @property(readonly, nonatomic) IDEIndexDatabase *database; // @synthesize database=_database; - (BOOL)isProjectSymbol:(id)arg1; - (id)timestampForFile:(id)arg1; - (id)locationForSymbolOccurrence:(id)arg1; - (id)correspondingSymbolForOccurrence:(id)arg1; - (id)relatedClassForCategory:(id)arg1; - (id)propertiesForCategory:(id)arg1; - (id)instanceVariablesForCategory:(id)arg1; - (id)instanceMethodsForCategory:(id)arg1; - (id)classMethodsForCategory:(id)arg1; - (id)allImplementingClassesForProtocol:(id)arg1; - (id)implementingClassesForProtocol:(id)arg1; - (id)subProtocolsForProtocol:(id)arg1; - (id)allSuperProtocolsForProtocol:(id)arg1; - (id)superProtocolsForProtocol:(id)arg1; - (id)propertiesForProtocol:(id)arg1; - (id)instanceMethodsForProtocol:(id)arg1; - (id)classMethodsForProtocol:(id)arg1; - (id)allInterfacesForClass:(id)arg1; - (id)interfacesForClass:(id)arg1; - (id)interfacesForClass:(id)arg1 andSuperclasses:(BOOL)arg2; - (id)allProtocolsForClass:(id)arg1; - (id)protocolsForClass:(id)arg1; - (id)allOccurrencesOfMembers:(id)arg1 forClass:(id)arg2; - (id)allSubClassesForClass:(id)arg1; - (id)subClassesForClass:(id)arg1; - (id)allSuperClassesForClass:(id)arg1; - (id)superClassesForClass:(id)arg1; - (id)categoriesForClass:(id)arg1; - (id)ibOutletCollectionPropertiesForClass:(id)arg1; - (id)ibOutletCollectionVariablesForClass:(id)arg1; - (id)ibOutletCollectionsForClass:(id)arg1; - (id)ibOutletPropertiesForClass:(id)arg1; - (id)ibOutletVariablesForClass:(id)arg1; - (id)ibOutletsForClass:(id)arg1; - (id)ibActionMethodsForClass:(id)arg1; - (id)propertiesForClass:(id)arg1; - (id)instanceVariablesForClass:(id)arg1; - (id)classVariablesForClass:(id)arg1; - (id)instanceMethodsForClass:(id)arg1; - (id)classMethodsForClass:(id)arg1; - (id)childrenForContainer:(id)arg1; - (id)referencingFilesForSymbol:(id)arg1; - (id)containerSymbolForSymbol:(id)arg1; - (id)containerSymbolsForSymbol:(id)arg1; - (id)definitionsForSymbol:(id)arg1; - (id)declarationsForSymbol:(id)arg1; - (id)occurrencesForSymbol:(id)arg1; - (id)modelOccurrenceForSymbol:(id)arg1; - (id)filesWithSymbolOccurrencesMatchingName:(id)arg1 kind:(id)arg2 forIndex:(id)arg3; - (id)allClassesWithMembers:(id)arg1 forIndex:(id)arg2; - (id)classesWithMembers:(id)arg1 forIndex:(id)arg2; - (id)classesWithMembers:(id)arg1 andSubclasses:(BOOL)arg2; - (id)membersMatchingName:(id)arg1 kinds:(id)arg2 forInterfaces:(id)arg3 forIndex:(id)arg4; - (id)membersMatchingKinds:(id)arg1 forInterfaces:(id)arg2 forIndex:(id)arg3; - (id)tempTableForSymbols:(id)arg1 shouldDrop:(char *)arg2; - (id)kindsStringForKinds:(id)arg1; - (id)symbolsForResolutions:(id)arg1 forIndex:(id)arg2; - (id)importedFileAtDocumentLocation:(id)arg1 withCurrentFileContentDictionary:(id)arg2 forIndex:(id)arg3; - (id)collectionElementTypeSymbolForSymbol:(id)arg1 withCurrentFileContentDictionary:(id)arg2 forIndex:(id)arg3; - (id)typeSymbolForSymbol:(id)arg1 withCurrentFileContentDictionary:(id)arg2 forIndex:(id)arg3; - (id)referencesToSymbolMatchingName:(id)arg1 inContext:(id)arg2 withCurrentFileContentDictionary:(id)arg3 forIndex:(id)arg4; - (id)referencesToSymbol:(id)arg1 inContext:(id)arg2 withCurrentFileContentDictionary:(id)arg3 forIndex:(id)arg4; - (id)symbolsUsedInContext:(id)arg1 withCurrentFileContentDictionary:(id)arg2 forIndex:(id)arg3; - (id)symbolsOccurrencesInContext:(id)arg1 withCurrentFileContentDictionary:(id)arg2 forIndex:(id)arg3; - (id)codeDiagnosticsAtLocation:(id)arg1 withCurrentFileContentDictionary:(id)arg2 forIndex:(id)arg3; - (id)codeCompletionsAtLocation:(id)arg1 withCurrentFileContentDictionary:(id)arg2 sortedUsingBlock:(id)arg3 forIndex:(void)arg4; - (id)topLevelSymbolsInFile:(id)arg1 forIndex:(id)arg2; - (id)allSymbolsMatchingNames:(id)arg1 kind:(id)arg2 forIndex:(id)arg3; - (id)allSymbolsMatchingName:(id)arg1 kind:(id)arg2 forIndex:(id)arg3; - (unsigned long long)countOfSymbolsMatchingKind:(id)arg1 workspaceOnly:(BOOL)arg2 forIndex:(id)arg3; - (id)allSymbolsMatchingKind:(id)arg1 workspaceOnly:(BOOL)arg2 cancelWhen:(id)arg3 forIndex:(void)arg4; - (id)allProtocolsMatchingName:(id)arg1 forIndex:(id)arg2; - (id)allClassesMatchingName:(id)arg1 forIndex:(id)arg2; - (id)symbolsMatchingName:(id)arg1 inContext:(id)arg2 withCurrentFileContentDictionary:(id)arg3 forIndex:(id)arg4; - (id)symbolsMatchingName:(id)arg1 inContext:(id)arg2 forIndex:(id)arg3; - (id)symbolsContaining:(id)arg1 anchorStart:(BOOL)arg2 anchorEnd:(BOOL)arg3 subsequence:(BOOL)arg4 ignoreCase:(BOOL)arg5 cancelWhen:(id)arg6 forIndex:(void)arg7; - (id)topLevelProtocolsWorkspaceOnly:(BOOL)arg1 cancelWhen:(id)arg2 forIndex:(void)arg3; - (id)topLevelClassesWorkspaceOnly:(BOOL)arg1 cancelWhen:(id)arg2 forIndex:(void)arg3; - (id)topLevelSymbolsMatchingKind:(id)arg1 workspaceOnly:(BOOL)arg2 cancelWhen:(id)arg3 forIndex:(void)arg4; - (id)filesContaining:(id)arg1 anchorStart:(BOOL)arg2 anchorEnd:(BOOL)arg3 subsequence:(BOOL)arg4 ignoreCase:(BOOL)arg5 forIndex:(id)arg6; - (id)filesIncludedByFile:(id)arg1 forIndex:(id)arg2; - (id)filesIncludingFile:(id)arg1 forIndex:(id)arg2; - (void)didSave; - (void)purgeCaches; - (id)initWithSettings:(id)arg1 database:(id)arg2; @end @interface IDEIndexFileCollection : IDEIndexCollection { } - (id)instantiateRow:(struct sqlite3_stmt *)arg1; - (id)tempTableSchema; @end @interface IDEIndexImportSession : NSObject { IDEIndexDatabase *_database; BOOL _wasSaved; BOOL _hasEnded; } @property(readonly, nonatomic) BOOL hasEnded; // @synthesize hasEnded=_hasEnded; @property(readonly, nonatomic) BOOL wasSaved; // @synthesize wasSaved=_wasSaved; @property(readonly, nonatomic) IDEIndexDatabase *database; // @synthesize database=_database; - (void)didEnd; - (void)endSession; - (void)didSave; - (id)newMainFileWithPath:(id)arg1 target:(id)arg2 source:(id)arg3 modified:(id)arg4; - (id)initWithDatabase:(id)arg1; @end @interface IDEIndexImporter : NSObject { IDEIndexDatabase *_database; struct dispatch_queue_s *_project_queue; struct dispatch_queue_s *_autoQuery_queue; struct dispatch_queue_s *_import_queue; int _isClosing; IDEIndexDBConnection *_dbConnection; NSDictionary *_providers; IDEIndexDBTransaction *_dbTransaction; NSMutableSet *_pendingMainFiles; IDEIndexDBFactory *_fileFactory; IDEIndexDBFactory *_unitFactory; IDEIndexDBFactory *_groupFactory; IDEIndexDBFactory *_contextFactory; NSMutableDictionary *_permanentFileCache; NSMutableDictionary *_fileCache; NSMutableDictionary *_unitCache; NSMutableDictionary *_permanentGroupCache; NSMutableSet *_staleGroups; NSMutableDictionary *_groupCache; long long _symbolCount; int _filesWaiting; NSSet *_projectFiles; IDEIndexUniqueStringMap *_uniqueStrings; NSMutableDictionary *_fileDates; NSMutableDictionary *_filesByMainFileByTarget; NSMutableDictionary *_outOfDateFilesByTarget; BOOL _isReady; NSMutableDictionary *_spliceTable; int _totalDeferredJobs; int _changedDeferredJobs; NSMutableSet *_hotFiles; BOOL _didIndexHotFile; } + (void)initialize; @property(readonly, nonatomic) BOOL isReady; // @synthesize isReady=_isReady; @property(readonly, nonatomic) IDEIndexDatabase *database; // @synthesize database=_database; - (void)purgeStaleFilesUsingTransaction:(id)arg1; - (void)purgeStaleGroupsUsingTransaction:(id)arg1; - (void)purgeStaleData:(id)arg1; - (void)submitTransaction; - (void)endSession:(id)arg1; - (void)didSave; - (void)submitMainFile:(id)arg1; - (void)resetSpliceTable; - (void)updateSpliceTableForDirtyFile:(id)arg1 oldGroupId:(long long)arg2 oldModified:(double)arg3; - (BOOL)spliceChanges:(id)arg1 toMainFile:(id)arg2 target:(id)arg3; - (long long)existingFileIdForPath:(id)arg1; - (long long)fileIdForPath:(id)arg1; - (long long)realGroupIdForId:(long long)arg1; - (long long)realUnitIdForId:(long long)arg1; - (long long)realFileIdForId:(long long)arg1; - (void)finalize; - (void)close; - (void)logStatistics; - (void)forgetOutOfDateMainFile:(id)arg1 forTarget:(id)arg2; - (void)noteOutOfDateMainFile:(id)arg1 file:(id)arg2 forTarget:(id)arg3; - (void)noteOutOfDateFile:(id)arg1; - (id)storeTimestamp:(id)arg1 modtime:(double)arg2 forFile:(id)arg3 mainFile:(id)arg4 target:(id)arg5 spliced:(BOOL)arg6; - (void)registerHotFile:(id)arg1; - (void)unregisterTarget:(id)arg1 dirtyFiles:(id)arg2; - (void)registerTarget:(id)arg1 outOfDateCallback:(id)arg2; - (id)auxiliaryFiles:(id)arg1 mainFile:(id)arg2; - (id)timestampForFile:(id)arg1; - (id)mainFilesForFile:(id)arg1; - (id)mainFilesForFile:(id)arg1 followPCH:(BOOL)arg2; - (id)mainFilesForTarget:(id)arg1; - (id)filesForMainFile:(id)arg1 target:(id)arg2 followPCH:(BOOL)arg3; - (BOOL)isProjectFile:(id)arg1; - (void)finishLoading; - (id)initWithDatabase:(id)arg1; @end @interface IDEIndexNewFile : NSObject { DVTFilePath *_path; NSDate *_modified; IDEIndexNewFile *_includer; long long _fileId; long long _groupId; char **_vectorSegments; int _nVectorSegments; int _vectorBytesRemaining; NSMutableArray *_containers; IDEIndexDBFactory *_symbolFactory; IDEIndexDBFactory *_referenceFactory; void *_digestContext; NSString *_signature; void *_dataSourceContext; IDEIndexNewMainFile *_mainFile; } + (void)poolFree:(void *)arg1; + (void *)poolMalloc:(unsigned long long)arg1; + (void)_pushSegment:(void *)arg1; + (void)_poolDelayedFree; + (void *)_popSegment; + (void)initialize; @property(nonatomic) void *dataSourceContext; // @synthesize dataSourceContext=_dataSourceContext; @property(nonatomic) long long groupId; // @synthesize groupId=_groupId; @property(nonatomic) long long fileId; // @synthesize fileId=_fileId; @property(readonly, nonatomic) IDEIndexNewMainFile *mainFile; // @synthesize mainFile=_mainFile; @property(readonly, nonatomic) NSDate *modified; // @synthesize modified=_modified; @property(readonly, nonatomic) DVTFilePath *path; // @synthesize path=_path; @property(readonly, nonatomic) NSString *signature; - (id)newFileWithPath:(id)arg1 modified:(id)arg2; - (id)newSymbolWithName:(id)arg1 kind:(id)arg2 role:(int)arg3 language:(id)arg4 resolution:(id)arg5 lineNumber:(long long)arg6 locator:(id)arg7 container:(id)arg8; - (void)addSymbolWithName:(id)arg1 kind:(id)arg2 role:(int)arg3 language:(id)arg4 resolution:(id)arg5 lineNumber:(long long)arg6 locator:(id)arg7 container:(id)arg8; - (id)newSymbolWithCName:(const char *)arg1 kind:(id)arg2 role:(int)arg3 language:(id)arg4 resolution:(const char *)arg5 lineNumber:(long long)arg6 locator:(id)arg7 container:(id)arg8; - (void)addSymbolWithCName:(const char *)arg1 kind:(id)arg2 role:(int)arg3 language:(id)arg4 resolution:(const char *)arg5 lineNumber:(long long)arg6 locator:(id)arg7 container:(id)arg8; - (void)createSymbolWithName:(const char *)arg1 kind:(id)arg2 role:(int)arg3 language:(id)arg4 resolution:(const char *)arg5 lineNumber:(long long)arg6 locator:(id)arg7 container:(id)arg8 pSymbol:(id *)arg9; - (id)description; - (void)freeMemory; - (void)dontSubmitSymbols; - (long long)submitSymbolsTo:(id)arg1; - (long long)realSymbolIdForId:(long long)arg1; @property(readonly, nonatomic) long long realGroupId; @property(readonly, nonatomic) long long realFileId; @property __weak IDEIndexNewFile *includer; - (void)dealloc; - (void)finalize; - (id)initWithPath:(id)arg1 modified:(id)arg2; @end @interface IDEIndexNewMainFile : IDEIndexNewFile { IDEIndexImportSession *_session; NSString *_target; NSString *_source; DVTFilePath *_pchPath; NSMutableArray *_files; NSSet *_dirtyFiles; long long _unitId; BOOL _deferred; } @property(nonatomic, getter=isDeferred) BOOL deferred; // @synthesize deferred=_deferred; @property(nonatomic) long long unitId; // @synthesize unitId=_unitId; @property(retain, nonatomic) NSSet *dirtyFiles; // @synthesize dirtyFiles=_dirtyFiles; @property(readonly, nonatomic) NSArray *files; // @synthesize files=_files; @property(retain, nonatomic) DVTFilePath *pchPath; // @synthesize pchPath=_pchPath; @property(copy, nonatomic) NSString *source; // @synthesize source=_source; @property(copy, nonatomic) NSString *target; // @synthesize target=_target; @property(retain, nonatomic) IDEIndexImportSession *session; // @synthesize session=_session; - (void)didSubmit; - (void)submit; - (long long)realGroupIdForId:(long long)arg1; - (long long)realFileIdForId:(long long)arg1; @property(readonly, nonatomic) long long realUnitId; - (id)importer; - (void)addFile:(id)arg1; - (id)initWithPath:(id)arg1 modified:(id)arg2; @end @interface IDEIndexNewSymbol : NSObject { IDEIndexNewFile *_file; long long _lineNumber; long long _symbolId; unsigned long long _containerSeq; } @property(nonatomic) unsigned long long containerSeq; // @synthesize containerSeq=_containerSeq; @property(nonatomic) long long symbolId; // @synthesize symbolId=_symbolId; @property(readonly, nonatomic) long long lineNumber; // @synthesize lineNumber=_lineNumber; @property(readonly, nonatomic) IDEIndexNewFile *file; // @synthesize file=_file; @property(readonly, nonatomic) long long realSymbolId; - (id)initWithFile:(id)arg1 lineNumber:(long long)arg2; @end @interface IDEIndexProtocolSymbol : IDEIndexContainerSymbol { } - (id)allImplementingClasses; - (id)implementingClasses; - (id)subProtocols; - (id)allSuperProtocols; - (id)superProtocols; - (id)properties; - (id)instanceMethods; - (id)classMethods; @end @interface IDEIndexQPManager : NSObject { IDEIndex *_index; struct dispatch_queue_s *_qp_queue; NSSet *_preferredTargets; NSMutableArray *_masterBlocks; NSMutableArray *_recentQueryProviders; NSTimer *_purgeTimer; } + (void)initialize; @property(readonly, nonatomic) IDEIndex *index; // @synthesize index=_index; - (void)_logRecents; - (void)_cancelPurgeTimer; - (void)_purgeTimeout:(id)arg1; - (void)_scheduleQPPurge; - (void)_addQueryProviderToRecents:(id)arg1 highPriority:(BOOL)arg2; - (void)purgeQPsUsingPCH:(id)arg1; - (void)purgeAllQPs; - (id)queryProviderForFile:(id)arg1 highPriority:(BOOL)arg2; - (void)finalize; - (void)setPreferredTargets:(id)arg1; - (id)initWithIndex:(id)arg1; @end @interface IDEIndexScannerDataSource : IDEIndexDataSource { } - (BOOL)generateDataForJob:(id)arg1; @end @interface IDEIndexSymbolCollection : IDEIndexCollection { } - (id)prepopulateModelOccurrencesCancelWhen:(id)arg1; - (id)instantiateRow:(struct sqlite3_stmt *)arg1; - (id)tempTableSchema; @end @interface IDEIndexSymbolOccurrence : NSObject { long long _role; DVTDocumentLocation *_location; long long _objectId; long long _lineNumber; DVTFilePath *_file; BOOL _lookedForCorrespondingSymbol; IDEIndexSymbol *_correspondingSymbol; NSObject<IDEIndexQueryProvider> *_queryProvider; } + (id)newSymbolOccurrenceForSymbol:(id)arg1 role:(long long)arg2 location:(id)arg3 forQueryProvider:(id)arg4; + (id)newSymbolOccurrenceForSymbol:(id)arg1 objectId:(long long)arg2 role:(long long)arg3 lineNumber:(long long)arg4 file:(id)arg5 forQueryProvider:(id)arg6; @property(retain, nonatomic) DVTDocumentLocation *location; // @synthesize location=_location; @property(nonatomic) NSObject<IDEIndexQueryProvider> *queryProvider; // @synthesize queryProvider=_queryProvider; @property(retain, nonatomic) DVTFilePath *file; // @synthesize file=_file; @property(nonatomic) long long lineNumber; // @synthesize lineNumber=_lineNumber; @property(nonatomic) long long role; // @synthesize role=_role; @property(nonatomic) long long objectId; // @synthesize objectId=_objectId; - (id)correspondingSymbol; - (id)initWithCorrespondingSymbol:(id)arg1; @end @interface IDEIndexSymbolOccurrenceCollection : IDEIndexCollection { IDEIndexSymbol *_correspondingSymbol; } @property(retain, nonatomic) IDEIndexSymbol *correspondingSymbol; // @synthesize correspondingSymbol=_correspondingSymbol; - (id)instantiateRow:(struct sqlite3_stmt *)arg1; - (id)tempTableSchema; @end @interface IDEIndexSymbolOccurrenceWithSymbolCollection : IDEIndexSymbolOccurrenceCollection { } - (id)instantiateRow:(struct sqlite3_stmt *)arg1; - (id)tempTableSchema; @end @interface IDEIndexSymbolWithModelOccurrenceCollection : IDEIndexSymbolCollection { } - (id)prepopulateModelOccurrencesCancelWhen:(id)arg1; - (id)instantiateRow:(struct sqlite3_stmt *)arg1; - (id)tempTableSchema; @end @interface IDEIndexTestPlistDataSource : IDEIndexDataSource { IDEIndexImportSession *_session; NSString *_target; } + (void)initialize; - (void)_processFile:(id)arg1 newFiles:(id)arg2; - (id)_newFilesForDictionaries:(id)arg1; - (void)_processSymbol:(id)arg1 inFile:(id)arg2 container:(id)arg3 containerName:(id)arg4; - (BOOL)generateDataForJob:(id)arg1; - (void)generateDataForPlist:(id)arg1; - (id)initWithSession:(id)arg1 target:(id)arg2; @end @interface IDEIndexUniqueStringMap : NSObject { NSMapTable *_mapTable; } - (id)stringWithString:(id)arg1; - (id)stringWithUTF8String:(const char *)arg1; - (id)init; @end @interface IDEIndexUnknownDataSource : IDEIndexDataSource { } + (id)dataSourceVersion; - (BOOL)generateDataForJob:(id)arg1; @end @interface IDEIndexableMainThreadProxy : NSObject <IDEIndexable> { id <IDEIndexable> _indexableObject; BOOL _respondsToSettingsForFiles; NSString *_cachedIdentifier; NSString *_cachedIndexName; NSDictionary *_cachedSettingsForFiles; } @property BOOL respondsToSettingsForFiles; // @synthesize respondsToSettingsForFiles=_respondsToSettingsForFiles; @property(retain) id <IDEIndexable> indexableObject; // @synthesize indexableObject=_indexableObject; - (id)buildSettingsForMainFile:(id)arg1; - (id)localizedIndexableDescription; - (void)languageOfMainFile:(id)arg1 completionBlock:(id)arg2; - (void)clearCachedBuildSettings; - (void)settingsForFilesInWorkspace:(id)arg1 withCompletionBlock:(id)arg2; - (BOOL)writeProductHeaders:(id)arg1 toFile:(id)arg2 error:(id *)arg3; - (void)productHeadersInWorkspace:(id)arg1 withCompletionBlock:(id)arg2; - (id)containerForIndexables:(id)arg1 rootPaths:(id)arg2; - (id)indexableFiles; - (id)indexName; - (id)identifier; - (BOOL)requiresMainThread; - (id)description; - (id)copyWithZone:(struct _NSZone *)arg1; - (id)initWithIndexable:(id)arg1; // Remaining properties @property(retain, nonatomic) id <IDEIndexable> proxy; @end @interface IDEIndexingEngine : NSObject { IDEIndex *_index; struct dispatch_queue_s *_engine_queue; NSMutableArray *_waitingLoadJobs; NSMutableArray *_waitingFileJobs; NSMutableSet *_waitingDeferredJobs; NSMutableDictionary *_registeredIndexables; NSMutableDictionary *_rootPaths; NSMutableSet *_registeredFiles; NSMutableDictionary *_missingFiles; IDEIndexImportSession *_session; double _timeIndexablesChanged; double _timeFilesChanged; double _timeJobsEnded; int _suspended; int _nScheduledJobs; BOOL _wroteWorkspaceHeaderMap; BOOL _wroteAuxiliaryFiles; BOOL _purgedStaleData; BOOL _isActive; BOOL _isIndexing; BOOL _notified; BOOL _mightNotResume; BOOL _waitingForSessionToEnd; BOOL _aborted; BOOL _waitingForMoreFiles; BOOL _waitingForMoreIndexables; BOOL _waitingToStartDeferredJob; BOOL _doingDeferredJobs; BOOL _dontDeferJobs; BOOL _lastLogWasDeferred; id _abortCallback; DVTPerformanceMetric *_indexingMetric; long long _nCompleted; double _throttleFactor; NSDictionary *_notifiedDeferred; } + (void)runFileJob:(id)arg1; + (void)runLoadJob:(id)arg1; + (id)auxDataSourceVersion; + (id)auxDataSource; + (void)initialize; @property(nonatomic) double throttleFactor; // @synthesize throttleFactor=_throttleFactor; @property(readonly, nonatomic) IDEIndex *index; // @synthesize index=_index; - (void)reset; - (void)abort:(id)arg1; @property(readonly, nonatomic) BOOL isActive; @property(readonly, nonatomic) BOOL isQuiescent; - (void)_endActivity; - (void)_endFileActivity; - (void)_reportProgress; - (void)_startFileActivity; - (void)_startActivity; - (void)_purgeStaleData; - (void)_writeAuxiliaryFiles; - (void)_writeWorkspaceHeaderMap; - (void)_setRootPaths:(id)arg1 forIndexable:(id)arg2; - (void)didForgetFiles:(id)arg1; - (void)didEndImportSession:(id)arg1; - (void)_scheduleJobs; - (void)didCancelJob:(id)arg1; - (void)didCompleteJob:(id)arg1; - (BOOL)shouldRunJob:(id)arg1; - (void)_deferJob:(id)arg1; - (void)_cancelJobs; - (void)_scheduleJob:(id)arg1; - (void)dontDeferJobs; - (void)indexFile:(id)arg1 indexable:(id)arg2 dirtyFile:(id)arg3; - (void)stopIndexing; - (void)resumeIndexing; - (void)suspendIndexing; - (void)suspendIndexing:(BOOL)arg1; - (void)registerHotFile:(id)arg1; - (void)willRegisterMoreFiles:(BOOL)arg1; - (void)unregisterFile:(id)arg1; - (void)registerFile:(id)arg1; - (void)unregisterIndexable:(id)arg1; - (void)indexableChanged:(id)arg1 addOnly:(BOOL)arg2; - (void)registerIndexable:(id)arg1; - (void)finalize; - (id)copyWithZone:(struct _NSZone *)arg1; - (id)initWithIndex:(id)arg1; @end @interface IDEIndexingJob : NSObject { IDEIndexingEngine *_engine; id <IDEIndexable> _indexable; DVTFilePath *_file; NSSet *_dirtyFiles; IDEIndexImportSession *_session; NSDictionary *_settings; BOOL _canceled; BOOL _completed; BOOL _deferred; NSSet *_oldDirtyFiles; } + (void)initialize; @property(readonly, nonatomic) NSSet *oldDirtyFiles; // @synthesize oldDirtyFiles=_oldDirtyFiles; @property(nonatomic, getter=isDeferred) BOOL deferred; // @synthesize deferred=_deferred; @property(retain, nonatomic) NSDictionary *settings; // @synthesize settings=_settings; @property(retain, nonatomic) IDEIndexImportSession *session; // @synthesize session=_session; @property(readonly, nonatomic) NSSet *dirtyFiles; // @synthesize dirtyFiles=_dirtyFiles; @property(readonly, nonatomic) DVTFilePath *file; // @synthesize file=_file; @property(readonly, nonatomic) id <IDEIndexable> indexable; // @synthesize indexable=_indexable; @property(readonly, nonatomic) IDEIndexingEngine *engine; // @synthesize engine=_engine; - (void)didComplete; - (BOOL)shouldContinue; - (id)newMainFileWithSource:(id)arg1 modified:(id)arg2; - (void)indexFile:(id)arg1 indexable:(id)arg2; - (void)cancel; - (void)run; @property(readonly, nonatomic) NSString *target; @property(readonly, nonatomic) IDEIndex *index; - (void)addDirtyFile:(id)arg1; - (id)initWithEngine:(id)arg1 indexable:(id)arg2 file:(id)arg3; - (id)initWithEngine:(id)arg1 indexable:(id)arg2; @end @interface IDEIndexingJobScheduler : NSObject { struct dispatch_queue_s *_control_queue; long long _width; long long _lastThrottledWidth; NSMutableArray *_engines; NSMutableDictionary *_hotFilesByEngine; NSMutableDictionary *_priorityIndicesByEngine; NSMutableDictionary *_waitingJobsByEngine; NSMutableArray *_runningJobs; } + (id)sharedInstance; + (void)initialize; @property(readonly, nonatomic) long long width; // @synthesize width=_width; - (void)_scheduleJobs; - (long long)_throttledWidth; - (long long)setWidth:(long long)arg1; - (void)ping; - (void)cancelJobsForEngine:(id)arg1; - (void)scheduleJob:(id)arg1; - (void)clearHotFilesForEngine:(id)arg1; - (void)addHotFile:(id)arg1 forEngine:(id)arg2; - (void)finalize; - (id)init; @end @interface IDERunDeviceService : DVTDeviceService { } - (id)operationWorkerWithLaunchSession:(id)arg1 error:(id *)arg2; @end @interface IDEInstallLocalMacService : IDERunDeviceService { } + (id)capability; - (id)operationWorkerWithLaunchSession:(id)arg1 error:(id *)arg2; @end @interface IDERunOperationWorker : NSObject { NSString *_extensionIdentifier; IDELaunchSession *_launchSession; id <IDERunOperationWorkerDelegate> _runOperation; id <IDERunOperationWorkerTracker> _runnableTracker; DVTDispatchLock *_lock; } @property(retain) id <IDERunOperationWorkerTracker> runnableTracker; // @synthesize runnableTracker=_runnableTracker; @property(readonly) IDELaunchSession *launchSession; // @synthesize launchSession=_launchSession; @property(readonly) NSString *extensionIdentifier; // @synthesize extensionIdentifier=_extensionIdentifier; - (void)terminate; - (void)finishedWithError:(id)arg1; - (void)start; @property(retain) id <IDERunOperationWorkerDelegate> runOperation; - (id)initWithExtensionIdentifier:(id)arg1 launchSession:(id)arg2; @end @interface IDEInstallLocalMacWorker : IDERunOperationWorker { } - (void)terminate; - (void)start; - (void)_setFinishedRunningWithError:(id)arg1; @end @interface IDEInstallSchemeAction : IDESchemeAction <DVTXMLUnarchiving> { NSString *_buildConfiguration; NSString *_customInstallName; NSArray *_killProcessList; } + (id)keyPathsForValuesAffectingKillProcessListString; + (id)keyPathsForValuesAffectingDefaultInstallName; + (id)keyPathsForValuesAffectingSubtitle; + (BOOL)allowInstallSchemeAction; @property(copy) NSArray *killProcessList; // @synthesize killProcessList=_killProcessList; @property(copy) NSString *customInstallName; // @synthesize customInstallName=_customInstallName; @property(copy) NSString *buildConfiguration; // @synthesize buildConfiguration=_buildConfiguration; - (void)setKillProcessesFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setCustomInstallNameFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setBuildConfigurationFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (void)dvt_awakeFromXMLUnarchiver:(id)arg1; - (BOOL)hasDefaultValues; - (id)overridingBuildSettingsForInstallBuildForWorkspaceArena:(id)arg1 destination:(id)arg2; - (id)installOperationWithExecutionEnvironment:(id)arg1 withBuildOperation:(id)arg2 buildParameters:(id)arg3 runDestination:(id)arg4 outError:(id *)arg5; @property(copy) NSString *killProcessListString; @property(readonly) NSString *defaultInstallName; - (BOOL)doesNonActionWork; - (id)subtitle; - (id)name; - (void)_commonInit; - (id)initFromXMLUnarchiver:(id)arg1 archiveVersion:(float)arg2; - (id)init; @end @interface IDEIssue : NSObject <IDEDiagnosticItemDelegate> { IDEIssueProvider *_issueProvider; NSArray *_documentLocations; id _issueTypeIdentifier; NSString *_fullMessage; unsigned long long _severity; unsigned long long _sequenceNumber; NSArray *_subissues; IDEActivityLogMessage *_representedMessage; IDEActivityLogMessage *_originatingMessage; IDEActivityLogRecord *_originatingLogRecord; IDEIssue *_parentIssue; int _issueType; DVTDocumentLocation *_primaryLocation; NSNumber *_lineNumber; BOOL _frozen; BOOL _valid; BOOL _coalesced; BOOL _wasFetchedFromCache; BOOL _vended; DVTDocumentLocation *_primaryDocumentLocation; } @property(readonly) NSNumber *_lineNumber; // @synthesize _lineNumber; @property(getter=_isVended) BOOL _vended; // @synthesize _vended; @property(getter=_isCoalesced) BOOL _coalesced; // @synthesize _coalesced; @property BOOL valid; // @synthesize valid=_valid; @property(readonly) DVTDocumentLocation *primaryDocumentLocation; // @synthesize primaryDocumentLocation=_primaryDocumentLocation; @property(readonly) int issueType; // @synthesize issueType=_issueType; @property BOOL wasFetchedFromCache; // @synthesize wasFetchedFromCache=_wasFetchedFromCache; @property(readonly) IDEIssue *parentIssue; // @synthesize parentIssue=_parentIssue; @property(readonly) IDEActivityLogRecord *originatingLogRecord; // @synthesize originatingLogRecord=_originatingLogRecord; @property(readonly) IDEActivityLogMessage *originatingMessage; // @synthesize originatingMessage=_originatingMessage; @property(retain) IDEActivityLogMessage *representedMessage; // @synthesize representedMessage=_representedMessage; @property(copy, nonatomic) NSArray *subissues; // @synthesize subissues=_subissues; @property(readonly) unsigned long long sequenceNumber; // @synthesize sequenceNumber=_sequenceNumber; @property(readonly) unsigned long long severity; // @synthesize severity=_severity; @property(readonly) NSString *fullMessage; // @synthesize fullMessage=_fullMessage; @property(retain) id issueTypeIdentifier; // @synthesize issueTypeIdentifier=_issueTypeIdentifier; @property(readonly) NSArray *documentLocations; // @synthesize documentLocations=_documentLocations; @property(retain, nonatomic) IDEIssueProvider *issueProvider; // @synthesize issueProvider=_issueProvider; - (BOOL)isEqualDisregardingLocationTimestamps:(id)arg1; - (BOOL)_arraysHaveCommonLocation:(id)arg1:(id)arg2; - (void)diagnosticItemWasFixed:(id)arg1; - (long long)compareByLineNumber:(id)arg1; - (long long)compare:(id)arg1; @property(readonly) BOOL isLiveIssue; @property(retain) IDEIssue *_parentIssue; @property(readonly) NSString *formattedStringRepresentation; - (id)description; - (id)_severityString; - (void)_freeze; @property(readonly) NSArray *fixableDiagnosticItems; - (void)_setRepresentedMessage:(id)arg1 force:(BOOL)arg2; - (void)_setSequenceNumber:(unsigned long long)arg1; - (id)initWithIssueProvider:(id)arg1 message:(id)arg2 wasFetchedFromCache:(BOOL)arg3; - (id)initWithIssueProvider:(id)arg1 message:(id)arg2 originatingLogRecord:(id)arg3 wasFetchedFromCache:(BOOL)arg4; - (id)initWithIssueProvider:(id)arg1 documentLocations:(id)arg2 issueTypeIdentifier:(id)arg3 fullMessage:(id)arg4 severity:(unsigned long long)arg5 representedMessage:(id)arg6; - (id)init; @end @interface IDEIssueFileGroup : NSObject { IDEIssueProvider *_issueProvider; NSURL *_documentURL; NSMutableArray *_issues; unsigned long long _errorCount; unsigned long long _warningCount; unsigned long long _noticeCount; unsigned long long _analyzerResultCount; int _issueType; } @property(readonly) int issueType; // @synthesize issueType=_issueType; @property(readonly) NSArray *issues; // @synthesize issues=_issues; @property(readonly) NSURL *documentURL; // @synthesize documentURL=_documentURL; @property(readonly) IDEIssueProvider *issueProvider; // @synthesize issueProvider=_issueProvider; - (void)_removeIssues:(id)arg1; - (void)_addIssues:(id)arg1; - (void)_updateIssueType; - (id)_initWithIssueProvider:(id)arg1 documentURL:(id)arg2; - (id)init; @end @interface IDEIssueGroup : NSObject { IDEIssueProvider *_issueProvider; IDEContainer *_container; id <IDEBlueprint> _blueprint; NSMutableArray *_issueFileGroups; NSMapTable *_issueFileGroupsIndex; NSMutableArray *_issuesWithNoFile; NSMutableArray *_issueTypeGroups; NSMapTable *_issueTypeGroupsIndex; unsigned long long _errorCount; unsigned long long _warningCount; unsigned long long _noticeCount; unsigned long long _analyzerResultCount; int _issueType; } @property(readonly) int issueType; // @synthesize issueType=_issueType; @property(readonly) NSArray *issueTypeGroups; // @synthesize issueTypeGroups=_issueTypeGroups; @property(readonly) NSArray *issuesWithNoFile; // @synthesize issuesWithNoFile=_issuesWithNoFile; @property(readonly) NSArray *issueFileGroups; // @synthesize issueFileGroups=_issueFileGroups; @property(readonly) id <IDEBlueprint> blueprint; // @synthesize blueprint=_blueprint; @property(readonly) IDEContainer *container; // @synthesize container=_container; @property(readonly) IDEIssueProvider *issueProvider; // @synthesize issueProvider=_issueProvider; @property(readonly) NSSet *_allIssues; - (void)_removeIssues:(id)arg1; - (void)_addIssues:(id)arg1; - (void)_addNoFileIssues:(id)arg1; - (void)_updateIssueType; @property(readonly) unsigned long long issueCount; - (id)_initWithIssueProvider:(id)arg1 container:(id)arg2 blueprint:(id)arg3; - (id)init; @end @interface IDEIssueLogRecordsGroup : NSObject { NSMutableArray *_logRecords; } + (void)initialize; - (void)removeLogsForIssues:(id)arg1; - (void)addLogsForIssues:(id)arg1; - (id)init; // Remaining properties @property(copy) NSArray *logRecords; // @dynamic logRecords; @property(readonly) NSMutableArray *mutableLogRecords; // @dynamic mutableLogRecords; @end @interface IDEIssueManager : NSObject <DVTInvalidation> { IDEWorkspace *_workspace; BOOL _isInvalidated; NSMutableArray *_issueProviders; DVTMapTable *_providerContextToProvisionInfoMap; DVTMapTable *_issueToProviderContextMap; NSMutableArray *_issueGroups; NSMapTable *_identifierToGroupIndex; NSMapTable *_issueToGroupsIndex; NSMutableSet *_issuesThatWillBeRemoved; NSMutableArray *_vendedIssuesWithNoDocument; NSMutableSet *_issuesWithNoDocument; NSMutableArray *_documentURLsWithVendedIssues; NSMutableDictionary *_documentURLsToVendedIssuesBySeqNumDict; NSMutableDictionary *_documentURLsToIssuesByLineNumDict; NSMutableDictionary *_documentURLToObserversDict; DVTHashTable *_allDocumentURLObservers; unsigned long long _nextIssueSequenceNumber; DVTStackBacktrace *_invalidationBacktrace; DVTMapTable *_providerToSessionObservationToken; unsigned long long _nextGroupSequenceNumber; DVTMapTable *_identifierToGroupSequenceNumberIndex; IDEIssueProviderSession *_lastSchemeActionSession; NSMutableArray *_lastSchemeActionIssues; id _issueFixedObserver; BOOL _liveIssuesEnabled; id _liveIssuesEnabledObserver; IDEIssueLogRecordsGroup *_issueLogRecordsGroup; DVTHashTable *_cachedBlueprintsForActiveScheme; DVTHashTable *_cachedContainersForActiveScheme; int _currentIssueFilterStyle; id _issueFilterStyleObserver; id _schemeBuildablesObserver; id <DVTObservingToken> _activeSchemeObserver; id <DVTObservingToken> _runDestinationObserver; id <DVTObservingToken> _implicitDependenciesObserver; } + (id)issueManagerLogAspect; + (id)_issueProviderInfo; + (void)_useDebugProviderExtensionPointWithIdentifier:(id)arg1; + (void)initialize; @property(readonly) IDEIssueLogRecordsGroup *issueLogRecordsGroup; // @synthesize issueLogRecordsGroup=_issueLogRecordsGroup; @property(readonly, getter=areLiveIssuesEnabled) BOOL liveIssuesEnabled; // @synthesize liveIssuesEnabled=_liveIssuesEnabled; @property(readonly) DVTStackBacktrace *invalidationBacktrace; // @synthesize invalidationBacktrace=_invalidationBacktrace; @property(readonly) IDEWorkspace *workspace; // @synthesize workspace=_workspace; - (void)_containersOrBlueprintsUpdated; - (id)_issuesForProviderContext:(id)arg1; - (id)_providerContextToProvisionInfoMapForIssues:(id)arg1; - (id)_unitTestIssueProvidersAccessor; - (void)_validateGroupIdentifiers; - (void)_delayedValidateGroupIdentifiers; - (void)_updateVendedIssues; - (void)_updateContainersAndBlueprintsForActiveScheme; - (void)_updateIssueFilterStyle; - (void)_needsUpdateInResponseToFilterChanges; - (void)_coalescedUpdateInResponseToFilterChanges; - (void)_hideIssues:(id)arg1; - (void)_setIssues:(id)arg1 forProviderContext:(id)arg2 container:(id)arg3 blueprint:(id)arg4 session:(id)arg5; - (void)_removeIssues:(id)arg1 forProviderContext:(id)arg2 session:(id)arg3; - (void)_addIssues:(id)arg1 forProviderContext:(id)arg2 container:(id)arg3 blueprint:(id)arg4 session:(id)arg5 tryToCoalesce:(BOOL)arg6; - (BOOL)_vendOnlyActiveSchemeIssues; - (void)_retractIssues:(id)arg1; - (void)_vendIssues:(id)arg1 container:(id)arg2 blueprint:(id)arg3 issueToGroupingObjectMap:(id)arg4 session:(id)arg5; - (id)_similarExistingIssueForIssue:(id)arg1; - (id)_similarExistingIssueForIssue:(id)arg1 container:(id)arg2 blueprint:(id)arg3; - (id)_identifierForGroupWithBlueprint:(id)arg1 container:(id)arg2; - (id)_groupingObjectsForIssue:(id)arg1; - (void)_rescindObserverToken:(id)arg1; - (id)newIssueObserverForDocumentURL:(id)arg1 options:(unsigned long long)arg2 withHandlerBlock:(id)arg3; - (void)_notifyAllObserversOfDocumentURL:(id)arg1 isPrior:(BOOL)arg2; - (void)_notifyObserver:(id)arg1 forURL:(id)arg2 isPrior:(BOOL)arg3; - (id)issuesWithNoDocument; - (id)issuesForDocumentURL:(id)arg1; @property(readonly) NSArray *documentURLsWithIssues; @property(readonly) NSArray *issueGroups; // @synthesize issueGroups=_issueGroups; - (void)_updateIssueProviders; @property(readonly, nonatomic, getter=isValid) BOOL valid; - (void)invalidate; - (id)initWithWorkspace:(id)arg1; - (id)init; // Remaining properties @property(readonly) NSArray *lastSchemeActionIssues; // @dynamic lastSchemeActionIssues; @property(readonly) NSMutableArray *mutableLastSchemeActionIssues; // @dynamic mutableLastSchemeActionIssues; @end @interface IDEIssueManager_ByFileObserverToken : NSObject <DVTObservingToken> { IDEIssueManager *_issueManager; NSURL *_documentURL; unsigned long long _observingOptions; id _observerBlock; } @property(readonly) unsigned long long observingOptions; // @synthesize observingOptions=_observingOptions; @property(readonly) id observerBlock; // @synthesize observerBlock=_observerBlock; @property(readonly) NSURL *documentURL; // @synthesize documentURL=_documentURL; - (void)cancel; @property(readonly, getter=isCancelled) BOOL cancelled; - (id)initWithIssueManager:(id)arg1 documentURL:(id)arg2 options:(unsigned long long)arg3 block:(id)arg4; @end @interface IDEIssueProviderSession : NSObject { double _timestamp; } @property(readonly) double timestamp; // @synthesize timestamp=_timestamp; - (id)init; @end @interface IDEIssueTypeGroup : NSObject { IDEIssueProvider *_issueProvider; id _issueTypeIdentifier; NSMutableArray *_issues; unsigned long long _errorCount; unsigned long long _warningCount; unsigned long long _noticeCount; unsigned long long _analyzerResultCount; int _issueType; } @property(readonly) int issueType; // @synthesize issueType=_issueType; @property(readonly) NSArray *issues; // @synthesize issues=_issues; @property(readonly) id issueTypeIdentifier; // @synthesize issueTypeIdentifier=_issueTypeIdentifier; @property(readonly) IDEIssueProvider *issueProvider; // @synthesize issueProvider=_issueProvider; - (void)_removeIssues:(id)arg1; - (void)_addIssues:(id)arg1; - (void)_updateIssueType; - (id)_initWithIssueProvider:(id)arg1 issueTypeIdentifier:(id)arg2; - (id)init; @end @interface IDELaunchParametersSnapshot : NSObject { NSString *_schemeIdentifier; NSString *_schemeName; NSString *_selectedLauncherIdentifier; NSString *_selectedDebuggerIdentifier; int _launchStyle; NSArray *_moduleNamePatternsToLoadDebugSymbolsFor; DVTFilePath *_runnableLocation; DVTFilePath *_replacementRunnableLocation; DVTFilePath *_workingDirectory; NSDictionary *_additionalDeviceSubstitutionPaths; NSArray *_commandLineArgs; NSArray *_testingCommandLineArgs; NSDictionary *_environmentVariables; NSDictionary *_testingEnvironmentVariables; NSString *_architecture; NSString *_sdkPath; NSString *_remoteInstallPath; BOOL _debugAsAService; int _debugServiceFD; NSString *_platformIdentifier; NSString *_buildConfiguration; id <IDEBuildableProduct> _buildableProduct; NSString *_deviceAppDataPackage; BOOL _allowLocationSimulation; IDELocationScenarioReference *_locationScenarioReference; BOOL _enablesOpenGLESFrameCapture; } + (id)launchParametersWithSchemeIdentifier:(id)arg1 schemeName:(id)arg2 launcherIdentifier:(id)arg3 debuggerIdentifier:(id)arg4 launchStyle:(int)arg5 moduleNamePatternsToLoadDebugSymbolsFor:(id)arg6 runnableLocation:(id)arg7 workingDirectory:(id)arg8 commandLineArgs:(id)arg9 environmentVariables:(id)arg10 architecture:(id)arg11 platformIdentifier:(id)arg12 buildConfiguration:(id)arg13 buildableProduct:(id)arg14 deviceAppDataPackage:(id)arg15 allowLocationSimulation:(BOOL)arg16 locationScenarioReference:(id)arg17 enablesOpenGLESFrameCapture:(BOOL)arg18; @property(readonly) BOOL enablesOpenGLESFrameCapture; // @synthesize enablesOpenGLESFrameCapture=_enablesOpenGLESFrameCapture; @property(readonly) IDELocationScenarioReference *locationScenarioReference; // @synthesize locationScenarioReference=_locationScenarioReference; @property BOOL allowLocationSimulation; // @synthesize allowLocationSimulation=_allowLocationSimulation; @property(readonly) NSString *deviceAppDataPackage; // @synthesize deviceAppDataPackage=_deviceAppDataPackage; @property(copy) NSDictionary *additionalDeviceSubstitutionPaths; // @synthesize additionalDeviceSubstitutionPaths=_additionalDeviceSubstitutionPaths; @property(readonly) id <IDEBuildableProduct> buildableProduct; // @synthesize buildableProduct=_buildableProduct; @property(readonly) NSString *buildConfiguration; // @synthesize buildConfiguration=_buildConfiguration; @property(readonly) NSString *platformIdentifier; // @synthesize platformIdentifier=_platformIdentifier; @property int debugServiceFD; // @synthesize debugServiceFD=_debugServiceFD; @property BOOL debugAsAService; // @synthesize debugAsAService=_debugAsAService; @property(copy) NSString *remoteInstallPath; // @synthesize remoteInstallPath=_remoteInstallPath; @property(copy) NSString *sdkPath; // @synthesize sdkPath=_sdkPath; @property(readonly) NSString *architecture; // @synthesize architecture=_architecture; @property(copy) NSDictionary *testingEnvironmentVariables; // @synthesize testingEnvironmentVariables=_testingEnvironmentVariables; @property(copy) NSArray *testingCommandLineArgs; // @synthesize testingCommandLineArgs=_testingCommandLineArgs; @property(readonly) DVTFilePath *workingDirectory; // @synthesize workingDirectory=_workingDirectory; @property(copy) DVTFilePath *replacementRunnableLocation; // @synthesize replacementRunnableLocation=_replacementRunnableLocation; @property(readonly) NSArray *moduleNamePatternsToLoadDebugSymbolsFor; // @synthesize moduleNamePatternsToLoadDebugSymbolsFor=_moduleNamePatternsToLoadDebugSymbolsFor; @property(readonly) int launchStyle; // @synthesize launchStyle=_launchStyle; @property(readonly) NSString *selectedDebuggerIdentifier; // @synthesize selectedDebuggerIdentifier=_selectedDebuggerIdentifier; @property(readonly) NSString *selectedLauncherIdentifier; // @synthesize selectedLauncherIdentifier=_selectedLauncherIdentifier; @property(readonly) NSString *schemeName; // @synthesize schemeName=_schemeName; @property(readonly) NSString *schemeIdentifier; // @synthesize schemeIdentifier=_schemeIdentifier; - (id)launchParametersByAppendingPath:(id)arg1 toSearchPathEnvironmentVariable:(id)arg2; - (id)launchParametersByPrependingPath:(id)arg1 toSearchPathEnvironmentVariable:(id)arg2; - (id)launchParametersByReplacingEnvironmentVariablesWithDictionary:(id)arg1; - (id)launchParametersByReplacingCommandLineArgsWithArray:(id)arg1; @property(readonly) DVTFilePath *runnableLocation; // @synthesize runnableLocation=_runnableLocation; @property(readonly) NSArray *commandLineArgs; // @synthesize commandLineArgs=_commandLineArgs; @property(readonly) NSDictionary *environmentVariables; // @synthesize environmentVariables=_environmentVariables; @end @interface IDELaunchRunPhasePathEntry : NSObject { NSString *_path; BOOL _isEnabled; } @property(getter=isEnabled) BOOL enabled; // @synthesize enabled=_isEnabled; @property(copy) NSString *path; // @synthesize path=_path; - (void)dvt_encodeRelationshipsWithXMLArchiver:(id)arg1; - (void)setIsEnabledFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setPathFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; @property(readonly) DVTFilePath *filePath; - (id)description; - (id)init; - (id)initWithPathString:(id)arg1 enabled:(BOOL)arg2; @end @interface IDELaunchSchemeAction : IDESchemeAction <DVTXMLUnarchiving> { NSMutableArray *_commandLineArgumentEntries; NSMutableArray *_environmentVariableEntries; NSDictionary *_additionalOptionEntriesDict; NSMutableArray *_additionalSourceCodeEntries; NSMutableArray *_additionalDSYMEntries; int _launchStyle; BOOL _useCustomWorkingDirectory; NSString *_customWorkingDirectory; NSString *_resolvedCustomWorkingDirectory; BOOL _ignoresPersistentStateOnLaunch; BOOL _debugDocumentVersioning; BOOL _enablesOpenGLESFrameCapture; short _shouldAllowOpenGLESOptions; NSMutableArray *_modulesToLoadDebugSymbolsFor; NSString *_selectedDebuggerIdentifier; NSString *_selectedLauncherIdentifier; IDERunnable *_runnable; IDEDeviceAppDataReference *_deviceAppDataReference; BOOL _allowLocationSimulation; IDELocationScenarioReference *_locationScenarioReference; NSString *_buildConfiguration; } + (id)keyPathsForValuesAffectingRunnable; + (id)keyPathsForValuesAffectingDoesNonActionWork; + (id)keyPathsForValuesAffectingSubtitle; + (void)initialize; @property(copy) NSString *buildConfiguration; // @synthesize buildConfiguration=_buildConfiguration; @property BOOL enablesOpenGLESFrameCapture; // @synthesize enablesOpenGLESFrameCapture=_enablesOpenGLESFrameCapture; @property BOOL debugDocumentVersioning; // @synthesize debugDocumentVersioning=_debugDocumentVersioning; @property BOOL ignoresPersistentStateOnLaunch; // @synthesize ignoresPersistentStateOnLaunch=_ignoresPersistentStateOnLaunch; @property(retain) IDELocationScenarioReference *locationScenarioReference; // @synthesize locationScenarioReference=_locationScenarioReference; @property BOOL allowLocationSimulation; // @synthesize allowLocationSimulation=_allowLocationSimulation; @property(retain) IDEDeviceAppDataReference *deviceAppDataReference; // @synthesize deviceAppDataReference=_deviceAppDataReference; @property(copy, nonatomic) NSString *customWorkingDirectory; // @synthesize customWorkingDirectory=_customWorkingDirectory; @property BOOL useCustomWorkingDirectory; // @synthesize useCustomWorkingDirectory=_useCustomWorkingDirectory; @property int launchStyle; // @synthesize launchStyle=_launchStyle; @property(copy) NSString *selectedLauncherIdentifier; // @synthesize selectedLauncherIdentifier=_selectedLauncherIdentifier; @property(readonly) NSDictionary *additionalOptionEntriesDict; // @synthesize additionalOptionEntriesDict=_additionalOptionEntriesDict; - (void)addLocationScenarioReference:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addDeviceAppData:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addMacroExpansion:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addModuleMatchers:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addAdditionalDSYMFilesAndDirs:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addAdditionalSourceCodeFilesAndDirs:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addAdditionalOptions:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addEnvironmentVariables:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addCommandLineArguments:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addBuildableProductRunnable:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addPathRunnable:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)dvt_encodeRelationshipsWithXMLArchiver:(id)arg1; - (BOOL)needsNewSchemeVersionForLocationSimulation; - (BOOL)needsNewSchemeVersionForAppDataPackage; - (void)setUseCustomWorkingDirectoryFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; @property(readonly) BOOL shouldAllowOpenGLESOptions; - (void)setAllowLocationSimulationFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setEnablesOpenGLESFrameCaptureFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setDebugDocumentVersioningFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setIgnoresPersistentStateOnLaunchFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (void)dvt_awakeFromXMLUnarchiver:(id)arg1; @property(readonly) NSArray *moduleNamePatternsToLoadDebugSymbolsFor; - (id)runOperationForExecutionEnvironment:(id)arg1 withBuildOperation:(id)arg2 buildParameters:(id)arg3 buildableProductDirectories:(id)arg4 runDestination:(id)arg5 outError:(id *)arg6; - (id)_realAppNameForRunnablePath:(id)arg1; @property(retain) IDERunnable *runnable; // @synthesize runnable=_runnable; @property(copy) NSString *selectedDebuggerIdentifier; // @synthesize selectedDebuggerIdentifier=_selectedDebuggerIdentifier; @property(readonly) NSArray *additionalDSYMFilePaths; @property(readonly) NSArray *additionalSourceCodeFilePaths; - (id)_additionalOptions; - (id)_additionalOptionEntries; - (id)_expandMacrosInString:(id)arg1; @property(readonly) NSString *resolvedCustomWorkingDirectory; // @synthesize resolvedCustomWorkingDirectory=_resolvedCustomWorkingDirectory; @property(readonly) NSDictionary *environmentVariables; - (id)commandLineArgumentsForDevice:(id)arg1; - (BOOL)doesNonActionWork; - (id)subtitle; - (id)name; - (void)_updateBuildableToUseForMacroExpansion; - (void)setRunContext:(id)arg1; - (id)_initAdditionalOptionsDict; - (void)_commonInit; - (id)initFromXMLUnarchiver:(id)arg1 archiveVersion:(float)arg2; - (id)init; // Remaining properties @property(copy) NSArray *additionalDSYMEntries; // @dynamic additionalDSYMEntries; @property(copy) NSArray *additionalSourceCodeEntries; // @dynamic additionalSourceCodeEntries; @property(copy) NSArray *commandLineArgumentEntries; // @dynamic commandLineArgumentEntries; @property(copy) NSArray *environmentVariableEntries; // @dynamic environmentVariableEntries; @property(copy) NSArray *modulesToLoadDebugSymbolsFor; // @dynamic modulesToLoadDebugSymbolsFor; @property(readonly) NSMutableArray *mutableAdditionalDSYMEntries; // @dynamic mutableAdditionalDSYMEntries; @property(readonly) NSMutableArray *mutableAdditionalSourceCodeEntries; // @dynamic mutableAdditionalSourceCodeEntries; @property(readonly) NSMutableArray *mutableCommandLineArgumentEntries; // @dynamic mutableCommandLineArgumentEntries; @property(readonly) NSMutableArray *mutableEnvironmentVariableEntries; // @dynamic mutableEnvironmentVariableEntries; @property(readonly) NSMutableArray *mutableModulesToLoadDebugSymbolsFor; // @dynamic mutableModulesToLoadDebugSymbolsFor; @end @interface IDELaunchSession : NSObject { IDEExecutionEnvironment *_executionEnvironment; IDEExecutionTracker *_executionTracker; NSMutableArray *_debugSessions; id <IDEDebugSession> _currentDebugSession; id <IDETraceInferiorSession> _currentTraceInferiorSession; NSArray *_debuggingAdditions; int _state; IDELaunchParametersSnapshot *_launchParameters; DVTFileDataType *_runnableType; int _runnablePID; int _simulatorPID; BOOL _iconChanged; IDERunDestination *_runDestination; NSString *_runnableDisplayName; int _schemeCommand; NSMutableSet *_consoleAdaptors; NSMapTable *_targetConsoleAdaptorToTerminationToken; int _targetOutputState; IDELocationSimulator *_locationSimulator; } + (BOOL)automaticallyNotifiesObserversOfTargetOutputState; + (void)initialize; @property(readonly) IDELocationSimulator *locationSimulator; // @synthesize locationSimulator=_locationSimulator; @property int schemeCommand; // @synthesize schemeCommand=_schemeCommand; @property(nonatomic) int targetOutputState; // @synthesize targetOutputState=_targetOutputState; @property(readonly) NSString *runnableDisplayName; // @synthesize runnableDisplayName=_runnableDisplayName; @property BOOL iconChanged; // @synthesize iconChanged=_iconChanged; @property int simulatorPID; // @synthesize simulatorPID=_simulatorPID; @property int runnablePID; // @synthesize runnablePID=_runnablePID; @property(readonly) DVTFileDataType *runnableType; // @synthesize runnableType=_runnableType; @property(retain) IDELaunchParametersSnapshot *launchParameters; // @synthesize launchParameters=_launchParameters; @property(nonatomic) int state; // @synthesize state=_state; @property(readonly) NSArray *debuggingAdditions; // @synthesize debuggingAdditions=_debuggingAdditions; @property(retain) id <IDETraceInferiorSession> currentTraceInferiorSession; // @synthesize currentTraceInferiorSession=_currentTraceInferiorSession; @property(retain, nonatomic) id <IDEDebugSession> currentDebugSession; // @synthesize currentDebugSession=_currentDebugSession; @property(retain) IDEExecutionTracker *executionTracker; // @synthesize executionTracker=_executionTracker; @property(readonly) IDEExecutionEnvironment *executionEnvironment; // @synthesize executionEnvironment=_executionEnvironment; - (BOOL)isAlive; - (void)_willExpire; - (void)_didStart; - (void)_removeConsoleAdaptorObservations:(id)arg1; - (void)_handleConsoleAdaptorOutputTerminated:(id)arg1; - (void)_handleConsoleItemAdded:(id)arg1; - (void)removeConsoleAdaptor:(id)arg1; - (void)addConsoleAdaptor:(id)arg1; @property(readonly) NSMutableSet *kvoConsoleAdaptors; @property(readonly) int CPUType; @property(readonly) IDERunDestination *runDestination; @property(readonly) NSDictionary *environmentVariables; @property(readonly) NSArray *commandLineArgs; @property(readonly) DVTFilePath *workingDirectory; - (id)initWithExecutionEnvironment:(id)arg1 launchParameters:(id)arg2 runnableDisplayName:(id)arg3 runnableType:(id)arg4 runDestination:(id)arg5; // Remaining properties @property(copy) NSArray *debugSessions; // @dynamic debugSessions; @property(readonly) NSMutableArray *mutableDebugSessions; // @dynamic mutableDebugSessions; @end @interface IDELocation : NSObject { NSNumber *_latitude; NSNumber *_longitude; IDELocationScenario *_scenario; } @property(readonly) IDELocationScenario *scenario; // @synthesize scenario=_scenario; @property(readonly) NSNumber *longitude; // @synthesize longitude=_longitude; @property(readonly) NSNumber *latitude; // @synthesize latitude=_latitude; - (id)description; - (id)initWithLatitude:(id)arg1 longitude:(id)arg2; @end @interface IDELocationScenario : NSObject { NSString *_identifier; NSArray *_locations; BOOL _autorepeat; NSNumber *_speed; DVTFilePath *_filePath; BOOL _hasLoadedContent; BOOL _valid; NSError *_loadingError; BOOL _isCurrentLocation; } + (id)builtInScenarioWithIdentifier:(id)arg1; + (id)defaultScenarios; + (id)currentLocationScenario; @property(readonly) BOOL isCurrentLocationScenario; // @synthesize isCurrentLocationScenario=_isCurrentLocation; @property(readonly) DVTFilePath *filePath; // @synthesize filePath=_filePath; @property(readonly) NSString *identifier; // @synthesize identifier=_identifier; @property(readonly) NSNumber *speed; // @synthesize speed=_speed; @property(readonly) BOOL autorepeat; // @synthesize autorepeat=_autorepeat; @property(readonly, getter=isDefaultScenario) BOOL defaultScenario; - (id)description; @property(readonly) BOOL isValid; @property(readonly) NSString *name; @property(readonly) NSArray *locations; // @dynamic locations; - (id)_locationsFromReferencedGPXFileWithError:(id *)arg1; - (id)initWithIdentifier:(id)arg1 referencingFilePath:(id)arg2; - (id)initWithIdentifier:(id)arg1 locations:(id)arg2 speed:(id)arg3 autorepeat:(BOOL)arg4; - (id)initWithIdentifier:(id)arg1 locations:(id)arg2; // Remaining properties @property(readonly) NSMutableArray *mutableLocations; // @dynamic mutableLocations; @end @interface IDELocationScenarioReference : NSObject <DVTXMLUnarchiving> { NSString *_identifier; int _referenceType; NSString *_resolvedAbsolutePath; } @property(copy) NSString *resolvedAbsolutePath; // @synthesize resolvedAbsolutePath=_resolvedAbsolutePath; @property int referenceType; // @synthesize referenceType=_referenceType; @property(copy) NSString *identifier; // @synthesize identifier=_identifier; - (void)dvt_encodeRelationshipsWithXMLArchiver:(id)arg1; - (void)setIdentifierFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (id)initFromXMLUnarchiver:(id)arg1 archiveVersion:(float)arg2; @end @interface IDELocationSimulator : NSObject { IDELaunchSession *_launchSession; IDESimulateLocationService *_service; int _state; IDELocationScenario *_scenario; id <DVTObservingToken> _debugSessionStateObserver; BOOL _playingBack; NSTimer *_playbackTimer; unsigned long long _currentPlaybackIndex; IDELocation *_currentPlaybackLocation; double _lastUpdateTime; NSOperationQueue *_playbackQueue; } + (id)locationSimulatorLogAspect; @property(retain) IDESimulateLocationService *service; // @synthesize service=_service; @property(retain, nonatomic) IDELocationScenario *scenario; // @synthesize scenario=_scenario; @property(readonly) int state; // @synthesize state=_state; @property(readonly) IDELaunchSession *launchSession; // @synthesize launchSession=_launchSession; - (void)_playbackTimerFired:(id)arg1; - (void)_startOrResumePlayback; - (void)_pausePlayback; - (void)_stopPlayback; - (void)_debugSessionStateChanged; - (void)_setState:(int)arg1; - (void)_updateScenarioSimulation; - (int)_locationSimulatorStateForDebugSessionState:(int)arg1; - (void)_updateLocationScenario; - (void)_updateService; - (id)_simulateLocationCapability; - (void)stopSimulating; - (id)initWithLaunchSession:(id)arg1; @end @interface IDELogDocumentLocation : DVTDocumentLocation { NSIndexPath *_indexPath; BOOL _expandTranscript; struct _NSRange _characterRange; } @property(readonly) struct _NSRange characterRange; // @synthesize characterRange=_characterRange; @property(readonly) BOOL expandTranscript; // @synthesize expandTranscript=_expandTranscript; @property(readonly) NSIndexPath *indexPath; // @synthesize indexPath=_indexPath; - (BOOL)isEqual:(id)arg1; - (long long)compare:(id)arg1; - (void)encodeWithCoder:(id)arg1; - (id)initWithCoder:(id)arg1; - (id)initWithDocumentURL:(id)arg1 timestamp:(id)arg2 indexPath:(id)arg3 expandTranscript:(BOOL)arg4; - (id)initWithDocumentURL:(id)arg1 timestamp:(id)arg2 indexPath:(id)arg3 characterRange:(struct _NSRange)arg4; - (id)_initWithDocumentURL:(id)arg1 timestamp:(id)arg2 indexPath:(id)arg3 expandTranscript:(BOOL)arg4 characterRange:(struct _NSRange)arg5; @end @interface IDELogManager : NSObject <DVTInvalidation> { BOOL _isInvalidated; id _domainItem; NSString *_domainName; NSArray *_logProviders; NSMutableArray *_logRecords; DVTMapTable *_logProviderToRecordsIndex; NSSet *_cachedRecentLogRecords; DVTStackBacktrace *_invalidationBacktrace; } + (void)initialize; @property(readonly) DVTStackBacktrace *invalidationBacktrace; // @synthesize invalidationBacktrace=_invalidationBacktrace; @property(copy) NSString *domainName; // @synthesize domainName=_domainName; @property(retain) id domainItem; // @synthesize domainItem=_domainItem; @property(readonly) NSArray *logProviders; // @synthesize logProviders=_logProviders; @property(readonly) NSSet *mostRecentLogRecordForEachType; - (void)_handleLogRecordChangesForProvider:(id)arg1; - (id)_findLogProviders; - (id)extensionsFromExtensionPointIdentifier:(id)arg1; @property(readonly, nonatomic, getter=isValid) BOOL valid; - (void)invalidate; - (id)initWithDomainItem:(id)arg1 domain:(id)arg2; // Remaining properties @property(readonly) NSArray *logRecords; // @dynamic logRecords; @property(readonly) NSMutableArray *mutableLogRecords; // @dynamic mutableLogRecords; @end @interface IDEModuleMatcherEntry : NSObject { int _criteria; NSString *_stringToMatch; } @property(copy) NSString *stringToMatch; // @synthesize stringToMatch=_stringToMatch; @property int criteria; // @synthesize criteria=_criteria; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (id)regularExpression; - (id)init; @end @interface IDEMutableBuildParameters : IDEBuildParameters { } @property(copy) IDEOverridingBuildProperties *overridingProperties; // @dynamic overridingProperties; @property(copy) NSString *activeArchitecture; // @dynamic activeArchitecture; @property(retain) IDERunDestination *activeRunDestination; // @dynamic activeRunDestination; @property(copy) NSString *configurationName; // @dynamic configurationName; @property(copy) NSString *buildAction; // @dynamic buildAction; @property(copy) IDEWorkspaceArenaSnapshot *workspaceArenaSnapshot; // @dynamic workspaceArenaSnapshot; - (id)copyWithZone:(struct _NSZone *)arg1; @end @interface IDEOverridingBuildProperties : NSObject { NSMutableDictionary *_properties; NSArray *_arrayRepresentation; unsigned long long _hash; } - (id)description; - (unsigned long long)hash; - (BOOL)isEqual:(id)arg1; - (BOOL)isEmpty; - (id)dictionaries; @property(readonly) NSDictionary *propertiesFromEnvironmentXcconfigFile; @property(readonly) NSDictionary *propertiesFromCommandLineXcconfigFile; @property(readonly) NSDictionary *propertiesFromCommandLine; @property(readonly) NSDictionary *synthesizedProperties; - (void)_setPropertyDictionary:(id)arg1 forLevel:(int)arg2; - (id)propertyDictionaryForLevel:(int)arg1; - (id)copyUsingDictionaryClass:(Class)arg1; - (id)mutableCopyWithZone:(struct _NSZone *)arg1; - (id)copyWithZone:(struct _NSZone *)arg1; - (id)_copyUsingOverridingPropertiesClass:(Class)arg1; - (id)initWithDictionary:(id)arg1; - (id)init; @end @interface IDEMutableOverridingBuildProperties : IDEOverridingBuildProperties { } @property(copy) NSDictionary *propertiesFromEnvironmentXcconfigFile; @property(copy) NSDictionary *propertiesFromCommandLineXcconfigFile; @property(copy) NSDictionary *propertiesFromCommandLine; @property(copy) NSDictionary *synthesizedProperties; - (void)setPropertyDictionary:(id)arg1 forLevel:(int)arg2; @end @interface IDETestObserver : NSObject { } - (void)stopObservingLaunchSession:(id)arg1; - (void)startObservingLaunchSession:(id)arg1; @end @interface IDEOCUnitTestObserver : IDETestObserver <IDEOCUnitTestOutputParserDelegate> { IDEOCUnitTestRunner *_testRunner; id <DVTObservingToken> _launchSessionObservance; NSString *_savedPartialContent; NSMutableArray *_testsStack; NSMapTable *_consoleAdaptorsToFinishedRecievingDataObservationTokens; BOOL _isRunningUnitTests; IDEOCUnitTestOutputParser *outputParser; } + (BOOL)_initializedForUserInteraction; + (void)initialize; @property(readonly) IDEOCUnitTestRunner *testRunner; // @synthesize testRunner=_testRunner; - (void)processConsoleText:(id)arg1; - (void)testDidOutput:(id)arg1; - (void)testCaseDidProducePerformanceOutput:(id)arg1 rawOutput:(id)arg2; - (void)testCaseDidFailForTestClass:(id)arg1 method:(id)arg2 withMessage:(id)arg3 file:(id)arg4 line:(long long)arg5 rawOutput:(id)arg6; - (void)testCaseDidFinishForTestClass:(id)arg1 method:(id)arg2 withStatus:(id)arg3 duration:(double)arg4 rawOutput:(id)arg5; - (void)testCaseDidStartForTestClass:(id)arg1 method:(id)arg2 rawOutput:(id)arg3; - (void)testSuiteDidFinish:(long long)arg1 withFailures:(long long)arg2 unexpected:(long long)arg3 testDuration:(double)arg4 totalDuration:(double)arg5 rawOutput:(id)arg6; - (void)testSuite:(id)arg1 willFinishAt:(id)arg2 rawOutput:(id)arg3; - (void)testSuite:(id)arg1 didStartAt:(id)arg2 rawOutput:(id)arg3; - (id)parsedTestFromTestClass:(id)arg1 method:(id)arg2; - (id)parsedTestFromTestSuiteIdentifier:(id)arg1; - (id)currentTestRecord; - (id)popTestRecord; - (void)pushTestRecord:(id)arg1; - (void)stopObservingLaunchSession:(id)arg1; - (void)startObservingLaunchSession:(id)arg1; - (void)_handleConsoleAdaptorsChanged:(id)arg1; - (void)_handleConsoleAdaptorRemoved:(id)arg1; - (void)_handleConsoleAdaptorAdded:(id)arg1; - (void)_handleConsoleOutputAdded:(id)arg1; - (void)_handleConsoleOutputTerminated; - (id)initWithTestRunner:(id)arg1; @end @interface IDEOCUnitTestOutputParser : NSObject { id <IDEOCUnitTestOutputParserDelegate> _delegate; DVTRegularExpression *_testSuiteStartedRegex; DVTRegularExpression *_testSuiteFinishedRegex; DVTRegularExpression *_testSuiteExecutedRegex; DVTRegularExpression *_testCaseStartedRegex; DVTRegularExpression *_testCaseFinishedRegex; DVTRegularExpression *_testCaseFailedRegex; NSArray *_performanceTestParsers; } + (void)_initializeRegularExpressionsIfNeeded; @property(retain, nonatomic) id <IDEOCUnitTestOutputParserDelegate> delegate; // @synthesize delegate=_delegate; - (void)processConsoleText:(id)arg1; - (id)init; @end @interface IDETestRunner : NSObject { NSMutableArray *_skippedTests; NSMutableArray *_testResults; id <IDETestable> _testable; IDERunnable *_host; IDETestableReference *_testableReference; } + (void)initialize; @property(retain) IDERunnable *host; // @synthesize host=_host; @property(retain) IDETestableReference *testableReference; // @synthesize testableReference=_testableReference; @property(retain) id <IDETestable> testable; // @synthesize testable=_testable; - (void)didRunTest:(id)arg1 withResult:(id)arg2; - (BOOL)addTestRunningOperationsToOperationGroup:(id)arg1 executionEnvironment:(id)arg2 buildParameters:(id)arg3 runDestination:(id)arg4 workspace:(id)arg5 error:(id *)arg6 launchParametersBlock:(id)arg7; - (id)init; // Remaining properties @property(readonly) NSMutableArray *mutableSkippedTests; // @dynamic mutableSkippedTests; @property(readonly) NSMutableArray *mutableTestResults; // @dynamic mutableTestResults; @property(copy) NSArray *skippedTests; // @dynamic skippedTests; @property(copy) NSArray *testResults; // @dynamic testResults; @end @interface IDEOCUnitTestRunner : IDETestRunner { NSOperationQueue *_commandLineArgsQueue; IDEOCUnitTestObserver *_observer; } - (BOOL)addTestRunningOperationsToOperationGroup:(id)arg1 executionEnvironment:(id)arg2 buildParameters:(id)arg3 runDestination:(id)arg4 workspace:(id)arg5 error:(id *)arg6 launchParametersBlock:(id)arg7; - (id)launchNameForBuildParameters:(id)arg1 runDestination:(id)arg2 testRunIdentifier:(id)arg3 testRunIdentifiers:(id)arg4; - (id)testRunIdentifiersForBuildParameters:(id)arg1 runDestination:(id)arg2; - (id)workingDirectoryForWorkspace:(id)arg1; - (id)architectureForBuildParameters:(id)arg1 runDestination:(id)arg2 testRunIdentifier:(id)arg3 testRunIdentifiers:(id)arg4; - (id)environmentVariablesForBuildParameters:(id)arg1 runDestination:(id)arg2 testRunIdentifier:(id)arg3 testRunIdentifiers:(id)arg4; - (id)testBundlePathForBuildParameters:(id)arg1 runDestination:(id)arg2 testRunIdentifier:(id)arg3 testRunIdentifiers:(id)arg4; - (id)stringRepresentationOfTestScopesWithWorkspace:(id)arg1 supportMultiple:(BOOL)arg2 supportInverse:(BOOL)arg3 invert:(char *)arg4; @end @interface IDEOCUnitTestable : NSObject <IDETestable> { NSMutableArray *_tests; } + (void)initialize; - (void)removeTest:(id)arg1; - (BOOL)canHaveSubtestsForTestWithIdentifier:(id)arg1; - (id)supertestForTestWithIdentifier:(id)arg1; - (id)nameForTestWithIdentifier:(id)arg1; - (id)testForIdentifier:(id)arg1; - (void)insertTest:(id)arg1 inTests:(id)arg2; - (id)parentBuildableInWorkspace:(id)arg1; - (id)testHostBuildableInWorkspace:(id)arg1; - (id)primaryBuildable; - (BOOL)matchesBlueprint:(id)arg1; - (void)waitUntilTestSearchIsFinished; @property(readonly) BOOL isSearchingForTests; - (void)searchForTestsInWorkspace:(id)arg1; - (id)newTestRunner; @property(readonly) NSString *name; @property(readonly) id <IDETestableProvider> testableProvider; - (id)init; // Remaining properties @property(readonly) NSMutableArray *mutableTests; // @dynamic mutableTests; @property(readonly) NSArray *tests; // @dynamic tests; @end @interface IDEOnDiskActivityLogRecord : IDEActivityLogRecord { IDEOnDiskLogStore_Impl *_logStore; IDEActivityLogSection *_strongFullLog; IDEActivityLogSection *_weakFullLog; IDEActivityLogSection *_recorderLog; id <DVTObservingToken> _recorderLogObservingToken; NSString *_uniqueIdentifier; IDETypeIdentifier *_domainType; NSString *_title; double _timeStartedRecording; double _timeStoppedRecording; DVTFileDataType *_documentType; NSString *_signature; } + (id)keyPathsForValuesAffectingIsRecording; @property(retain, nonatomic) IDEActivityLogSection *recorderLog; // @synthesize recorderLog=_recorderLog; @property(nonatomic) double timeStoppedRecording; // @synthesize timeStoppedRecording=_timeStoppedRecording; - (id)signature; - (id)documentType; - (double)timeStartedRecording; - (id)title; - (id)domainType; - (id)uniqueIdentifier; - (BOOL)isRecording; - (void)_setRemovedState; - (void)_makeWeak; - (id)fullLogIfInMemory; - (id)fullLogWithError:(id *)arg1; - (void)removeSelfWithCompletionBlock:(id)arg1; - (BOOL)isRemoved; - (id)initWithUUID:(id)arg1 store:(id)arg2 cacheEntry:(id)arg3 updatedCache:(char *)arg4 error:(id *)arg5; - (id)initWithLog:(id)arg1 store:(id)arg2; @end @interface IDEOnDiskLogStore : IDELogStore { } + (id)onDiskStoreInWorkspaceArena:(id)arg1 atSubPath:(id)arg2 error:(id *)arg3; + (id)onDiskStoreWithRootDirectoryAtPath:(id)arg1 error:(id *)arg2; @end @interface IDEOnDiskLogStore_Impl : IDEOnDiskLogStore { NSString *_rootDirectoryPath; NSMutableDictionary *_cache; NSMutableDictionary *_cachedLogs; NSOperationQueue *_asyncOperations; BOOL _preserveOldLogs; } - (BOOL)preserveOldLogs; - (void)setPreserveOldLogs:(BOOL)arg1; - (id)_pathForUniqueIdentifier:(id)arg1; - (void)_removeAllButTheLatestLog; - (void)_removeLogRecord:(id)arg1 completionBlock:(id)arg2; - (void)_moveToRootDirectoryAtPath:(id)arg1 errorBlock:(id)arg2; - (id)addLog:(id)arg1 completionBlock:(id)arg2; - (void)_saveLog:(id)arg1 logRecord:(id)arg2 toPath:(id)arg3 completionBlock:(id)arg4; - (BOOL)_saveCacheWithError:(id *)arg1; - (id)_cachePath; - (id)initWithRootDirectoryAtPath:(id)arg1 error:(id *)arg2; @end @interface IDEPathRunnable : IDERunnable <DVTXMLUnarchiving> { DVTFilePath *_filePath; } + (id)keyPathsForValuesAffectingHasRunnablePath; @property(readonly) DVTFilePath *filePath; // @synthesize filePath=_filePath; - (void)dvt_encodeRelationshipsWithXMLArchiver:(id)arg1; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (void)setFilePathFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (id)runnableUTIType:(id *)arg1; - (BOOL)hasRunnablePath; - (id)pathToRunnableForBuildParameters:(id)arg1; - (id)toolTip; - (id)displayName; - (id)description; - (id)initFromXMLUnarchiver:(id)arg1 archiveVersion:(float)arg2; - (id)initWithFilePath:(id)arg1; @end @interface IDEPosixSpawnLaunchLocalService : IDERunDeviceService { } + (id)capability; - (id)operationWorkerWithLaunchSession:(id)arg1 error:(id *)arg2; @end @interface IDERunOperationPathWorker : IDERunOperationWorker { DVTFilePath *_filePathToBinary; } @property(readonly) NSMutableDictionary *compositeEnvironmentVariables; @property(readonly) DVTFilePath *filePathToBinary; @property(readonly) DVTFilePath *filePath; @end @interface IDEPosixSpawnLauncher : IDERunOperationPathWorker { void *_file_actions; BOOL _startSuspended; BOOL _terminateCalled; BOOL _targetReallyDead; DVTDispatchLock *_atomizingLock; } @property BOOL startSuspended; // @synthesize startSuspended=_startSuspended; - (void)terminate; - (void)start; - (void)_setPIDOnMainThread:(int)arg1; - (void)_forceQuit:(id)arg1; - (BOOL)_convertCmdArgs:(id)arg1 intoPtrArray:(const char ***)arg2 andEnvVars:(id)arg3 intoPtrArray:(const char ***)arg4 andReturnStandardizedPath:(const char **)arg5 error:(id *)arg6; - (void)_waitForChildExit; - (void *)_setupPosixSpawnAttributesAndPTY:(id *)arg1; - (id)initWithExtensionIdentifier:(id)arg1 launchSession:(id)arg2; @end @interface IDEPosixSpawnLocalService : IDERunDeviceService { } + (id)capability; - (id)operationWorkerWithLaunchSession:(id)arg1 error:(id *)arg2; - (id)capabilitySequenceForLaunchSession:(id)arg1; @end @interface IDEProductType : NSObject { } + (id)productTypeForIdentifier:(id)arg1 platform:(id)arg2; @property(readonly) IDEProductType *superType; @property(readonly) DVTPlatform *platform; @property(readonly) NSString *localizedDescription; @property(readonly) NSString *name; @property(readonly) NSString *identifier; @end @interface IDEProfileSchemeAction : IDESchemeAction <DVTXMLUnarchiving> { IDERunnable *_runnable; NSMutableArray *_commandLineArgumentEntries; NSMutableArray *_environmentVariableEntries; id <IDEAnalysisToolService> _analysisToolService; BOOL _useCustomWorkingDirectory; NSString *_customWorkingDirectory; NSString *_resolvedCustomWorkingDirectory; BOOL _ignoresPersistentStateOnLaunch; BOOL _debugDocumentVersioning; BOOL _shouldUseLaunchSchemeArgsEnv; NSString *_buildConfiguration; NSString *_savedToolIdentifier; IDESchemeBuildableReference *_profileBuildableReferenceToUseForMacroExpansion; } + (id)keyPathsForValuesAffectingBuildableReferenceToUseForMacroExpansion; + (BOOL)automaticallyNotifiesObserversOfAnalysisToolService; + (id)keyPathsForValuesAffectingRunnable; + (id)keyPathsForValuesAffectingDoesNonActionWork; + (id)keyPathsForValuesAffectingSubtitle; + (void)initialize; @property(retain, nonatomic) NSString *savedToolIdentifier; // @synthesize savedToolIdentifier=_savedToolIdentifier; @property BOOL debugDocumentVersioning; // @synthesize debugDocumentVersioning=_debugDocumentVersioning; @property BOOL ignoresPersistentStateOnLaunch; // @synthesize ignoresPersistentStateOnLaunch=_ignoresPersistentStateOnLaunch; @property(copy, nonatomic) NSString *customWorkingDirectory; // @synthesize customWorkingDirectory=_customWorkingDirectory; @property BOOL useCustomWorkingDirectory; // @synthesize useCustomWorkingDirectory=_useCustomWorkingDirectory; @property(copy) NSString *buildConfiguration; // @synthesize buildConfiguration=_buildConfiguration; @property(nonatomic) BOOL shouldUseLaunchSchemeArgsEnv; // @synthesize shouldUseLaunchSchemeArgsEnv=_shouldUseLaunchSchemeArgsEnv; @property(readonly) id <IDEAnalysisToolService> analysisToolService; // @synthesize analysisToolService=_analysisToolService; - (void)addMacroExpansion:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addEnvironmentVariables:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addCommandLineArguments:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addBuildableProductRunnable:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addPathRunnable:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)dvt_encodeRelationshipsWithXMLArchiver:(id)arg1; - (void)setDebugDocumentVersioningFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setIgnoresPersistentStateOnLaunchFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setSavedToolIdentifierFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setShouldUseLaunchSchemeArgsEnvFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setUseCustomWorkingDirectoryFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (void)dvt_awakeFromXMLUnarchiver:(id)arg1; - (id)_expandMacrosInString:(id)arg1; - (void)setBuildableReferenceToUseForMacroExpansion:(id)arg1; - (id)buildableReferenceToUseForMacroExpansion; @property(readonly) NSString *resolvedCustomWorkingDirectory; // @synthesize resolvedCustomWorkingDirectory=_resolvedCustomWorkingDirectory; @property(readonly) NSDictionary *environmentVariables; @property(readonly) NSMutableArray *mutableEnvironmentVariableEntries; // @dynamic mutableEnvironmentVariableEntries; @property(copy) NSArray *environmentVariableEntries; // @dynamic environmentVariableEntries; - (id)commandLineArgumentsForDevice:(id)arg1; @property(readonly) NSMutableArray *mutableCommandLineArgumentEntries; // @dynamic mutableCommandLineArgumentEntries; @property(copy) NSArray *commandLineArgumentEntries; // @dynamic commandLineArgumentEntries; - (id)runOperationForExecutionEnvironment:(id)arg1 withBuildOperation:(id)arg2 buildParameters:(id)arg3 buildableProductDirectories:(id)arg4 runDestination:(id)arg5 outError:(id *)arg6; - (void)_setAnalysisToolService:(id)arg1; - (void)_updateCurrentTool; - (void)_updateAnalysisToolService; @property(retain) IDERunnable *runnable; // @synthesize runnable=_runnable; - (void)_updateProfileActionBuildableToUseForMacroExpansion; - (void)setRunContext:(id)arg1; - (BOOL)doesNonActionWork; - (id)subtitle; - (id)name; - (void)_commonInit; - (id)initFromXMLUnarchiver:(id)arg1 archiveVersion:(float)arg2; - (id)init; @end @interface IDEPseudoTerminal : NSObject { int _masterFD; NSFileHandle *_masterFileHandle; int _slaveFD; NSFileHandle *_slaveFileHandle; NSString *_slaveName; } @property(readonly) NSFileHandle *slaveFileHandle; // @synthesize slaveFileHandle=_slaveFileHandle; @property(readonly) NSFileHandle *masterFileHandle; // @synthesize masterFileHandle=_masterFileHandle; @property(readonly) NSString *slaveName; // @synthesize slaveName=_slaveName; - (BOOL)_openSlaveCounterpart:(int)arg1 error:(id *)arg2; - (BOOL)_openFirstAvailableMasterWithAccessMode:(int)arg1 error:(id *)arg2; - (id)initWithAccessMode:(int)arg1 error:(id *)arg2; - (void)_closeSlaveFD; - (void)_closeMasterFD; @end @interface IDEReadOnlyItemsManager : NSObject { } + (id)readOnlyItemsManagerAspect; + (id)localizedRecoveryMessageForFailedUnlockingAttemptWithStatus:(int)arg1; + (id)localizedDescriptionForReadOnlyStatus:(int)arg1 itemName:(id)arg2 pluralized:(BOOL)arg3; + (BOOL)shouldShowLockedIndicatorForStatus:(int)arg1; + (BOOL)tryToMakeFilePathWritable:(id)arg1 error:(id *)arg2; + (BOOL)_addUserWritePermissionToFilePath:(id)arg1 error:(id *)arg2; + (int)readOnlyStatusOfFilePath:(id)arg1; @end @interface IDERefactoring : NSObject <DVTInvalidation> { IDEWorkspace *_workspace; BOOL _invalidated; DVTStackBacktrace *_invalidationBacktrace; id _willIndexNotificationObservingToken; id _didIndexNotificationObservingToken; BOOL _refactoringAllowed; id _domainObject; } @property(retain) id domainObject; // @synthesize domainObject=_domainObject; @property(readonly) DVTStackBacktrace *invalidationBacktrace; // @synthesize invalidationBacktrace=_invalidationBacktrace; @property(readonly) IDEWorkspace *workspace; // @synthesize workspace=_workspace; - (id)objCOrCCompilationUnitIndexablesForMainFile:(id)arg1 indexableObjects:(id)arg2; - (BOOL)isFileObjCCompilationUnitOrHeader:(id)arg1 error:(id *)arg2; - (id)description; @property(readonly, nonatomic, getter=isValid) BOOL valid; - (void)invalidate; - (id)initWithWorkspace:(id)arg1; @end @interface IDERefactoringBuildSettings : NSObject { int _status; } + (id)plistFileSettings; + (id)dataModelFileSettings; + (id)nibFileSettings; + (id)fileInNoIndexables; + (id)noBuildSettingsFound; @property int status; // @synthesize status=_status; - (id)pathForFileName:(id)arg1 includedByFiles:(id)arg2 usingQuotes:(BOOL)arg3; @property(readonly) NSNumber *arcMode; @property(readonly) NSString *languageDialect; @property(readonly) NSArray *undefinedMacroNames; @property(readonly) NSArray *predefinedMacroNamesAndDefs; @property(readonly) NSArray *userIncludePaths; @property(readonly) NSArray *systemIncludePaths; @property(readonly) NSArray *frameworkSearchPaths; @property(readonly) NSSet *plistFilePaths; @property(readonly) NSArray *preincludeFiles; - (id)init; @end @interface IDERefactoringKeyValueAccessorMethodDescriptor : NSObject { NSString *_methodName; int _keyStyle; unsigned long long _indexOfKey; } @property(readonly) unsigned long long indexOfKey; // @synthesize indexOfKey=_indexOfKey; @property(readonly) int keyStyle; // @synthesize keyStyle=_keyStyle; @property(readonly) NSString *methodName; // @synthesize methodName=_methodName; - (id)description; - (id)initWithMethodName:(const char *)arg1 keyStyle:(int)arg2 indexOfKey:(unsigned long long)arg3; @end @interface IDERunContextManager : NSObject <DVTInvalidation> { IDEWorkspace *_workspace; NSMutableSet *_customDataStores; NSMapTable *_storeToSpecifierMap; NSMapTable *_storeToUserDataMap; NSMutableArray *_runContexts; IDEScheme *_activeRunContext; IDERunDestination *_activeRunDestination; NSMutableArray *_activeRunDestinationHistory; DVTStackBacktrace *_invalidationBacktrace; NSMutableArray *_ignoredChangesDevices; NSCountedSet *_schemeNameCounts; NSMutableDictionary *_containerReloadingDetails; BOOL _bulkChangingBlueprints; BOOL _blueprintChangedDuringBulkChanges; BOOL _isInvalidated; } + (BOOL)automaticallyNotifiesObserversOfActiveRunDestination; + (BOOL)automaticallyNotifiesObserversOfActiveRunContext; + (void)initialize; @property(readonly) NSCountedSet *schemeNameCounts; // @synthesize schemeNameCounts=_schemeNameCounts; @property(readonly) DVTStackBacktrace *invalidationBacktrace; // @synthesize invalidationBacktrace=_invalidationBacktrace; @property(retain, nonatomic) IDERunDestination *activeRunDestination; // @synthesize activeRunDestination=_activeRunDestination; @property(retain, nonatomic) IDEScheme *activeRunContext; // @synthesize activeRunContext=_activeRunContext; @property(readonly) NSArray *runContexts; // @synthesize runContexts=_runContexts; @property(readonly) IDEWorkspace *workspace; // @synthesize workspace=_workspace; - (void)setActiveRunContext:(id)arg1 andRunDestination:(id)arg2; - (void)blueprintsDidBulkChange:(id)arg1; - (void)blueprintsWillBulkChange:(id)arg1; - (void)blueprintsDidChange:(id)arg1; - (void)deviceUsabilityDidChange:(id)arg1; - (void)_invalidateAvailableRunDestinations; - (void)_invalidateAvailableRunDestinationsForSchemes:(id)arg1; - (void)_invalidateActiveRunDestination; - (id)_bestDestinationForScheme:(id)arg1 previousDestination:(id)arg2; - (void)shouldIgnoreDeviceChangesDidEnd:(id)arg1; - (void)shouldIgnoreDeviceChangesWillBegin:(id)arg1; - (void)_updateOrderHint:(unsigned long long)arg1 forRunContext:(id)arg2; - (void)_updateIsShown:(BOOL)arg1 forRunContext:(id)arg2; - (id)runContextManagementDictionaryForStore:(id)arg1; - (void)saveRunContextManagementDictionaryForStore:(id)arg1; - (void)_lookupIsShown:(char *)arg1 orderHint:(unsigned long long *)arg2 forCustomDataStore:(id)arg3 specifier:(id)arg4; - (id)_contextUserStateForCustomDataStore:(id)arg1 specifier:(id)arg2 createIfNeeded:(BOOL)arg3; - (id)_contextUserStateDictForCustomDataStore:(id)arg1 createIfNeeded:(BOOL)arg2; - (id)_contextUserStateKeyForSpecifier:(id)arg1; - (void)moveRunContext:(id)arg1 toCustomDataStore:(id)arg2 customDataSpecifier:(id)arg3 completionQueue:(id)arg4 completionBlock:(id)arg5; - (void)deleteRunContexts:(id)arg1 completionQueue:(id)arg2 completionBlock:(id)arg3; - (id)importRunContextAtURL:(id)arg1 withCustomDataStore:(id)arg2 customDataSpecifier:(id)arg3 orderHint:(unsigned long long)arg4 completionQueue:(id)arg5 completionBlock:(id)arg6; - (id)duplicateRunContext:(id)arg1 withCustomDataSpecifier:(id)arg2 completionQueue:(id)arg3 completionBlock:(id)arg4; - (id)newSchemeWithCustomDataStore:(id)arg1 customDataSpecifier:(id)arg2 orderHint:(unsigned long long)arg3; - (id)_newSchemeWithCustomDataStore:(id)arg1 customDataSpecifier:(id)arg2 orderHint:(unsigned long long)arg3 schemeCreationBlock:(id)arg4; - (void)_addContext:(id)arg1 specifierToRunContextMap:(id)arg2; - (id)_uniqueSpecifierForSpecifier:(id)arg1 inMap:(id)arg2; - (void)_customDataStoresDidUpdate; - (void)_customDataStoresDidChangeFrom:(id)arg1 to:(id)arg2; - (void)_customDataStoresWillChangeFrom:(id)arg1 to:(id)arg2; - (void)_restoreActiveSchemeAndRunDestinationUsingReloadDetails:(id)arg1; - (id)_containerReloadDetails; - (void)_finishUpdatingRunContexts; - (void)_startUpdatingRunContexts; - (void)_ensureActiveRunContext; - (void)_updateMap:(id)arg1 contextForCustomDataStore:(id)arg2 specifier:(id)arg3; @property(readonly, nonatomic, getter=isValid) BOOL valid; - (void)invalidate; - (id)initWithWorkspace:(id)arg1; - (id)init; @end @interface IDERunDestination : NSObject { DVTDevice *_targetDevice; NSString *_targetArchitecture; DVTSDK *_targetSDK; NSDictionary *_buildSettingOverrides; } + (id)validRunDestinationsForRunContext:(id)arg1 executionEnvironment:(id)arg2; + (id)validRunDestinationsForScheme:(id)arg1 schemeCommands:(id)arg2 executionEnvironment:(id)arg3; + (id)defaultRunDestinationForScheme:(id)arg1 fromRunDestinations:(id)arg2; + (void)_checkPathRunnablePlatform:(id)arg1 architectures:(id)arg2 againstDevice:(id)arg3 addingToDestinations:(id)arg4; + (void)_checkBuildable:(id)arg1 againstDevice:(id)arg2 withConfiguration:(id)arg3 workspaceArena:(id)arg4 addingToDestinations:(id)arg5; + (id)runDestinationWithTargetDevice:(id)arg1 architecture:(id)arg2 SDK:(id)arg3; + (id)keyPathsForValuesAffectingFullDisplayName; + (id)keyPathsForValuesAffectingDisplayName; + (id)_cachedRunDestinationForDevice:(id)arg1 architecture:(id)arg2 SDK:(id)arg3; + (void)_cacheRunDestination:(id)arg1; + (void)initialize; @property(readonly) NSDictionary *buildSettingOverrides; // @synthesize buildSettingOverrides=_buildSettingOverrides; @property(readonly) DVTSDK *targetSDK; // @synthesize targetSDK=_targetSDK; @property(readonly) NSString *targetArchitecture; // @synthesize targetArchitecture=_targetArchitecture; @property(readonly) DVTDevice *targetDevice; // @synthesize targetDevice=_targetDevice; - (id)activeArchitectureForBuildArchitectures:(id)arg1; - (void)didBecomeActiveRunDestinationForRunContext:(id)arg1; - (id)runOperationForLaunchSession:(id)arg1 error:(id *)arg2; - (id)runWorkerForLaunchSession:(id)arg1 error:(id *)arg2; - (id)targetArchitectureForSorting; - (id)targetSDKForSorting; - (id)targetDeviceForSorting; - (id)displayOrder; - (BOOL)isValidRunDestinationsForScheme:(id)arg1 schemeCommand:(int)arg2 executionEnvironment:(id)arg3 error:(id *)arg4; - (id)description; @property(readonly) NSString *fullDisplayName; @property(readonly) NSString *displayNameAdditions; @property(readonly) NSString *displayName; - (id)initWithTargetDevice:(id)arg1 architecture:(id)arg2 SDK:(id)arg3 withBuildSettingOverrides:(id)arg4; @end @interface IDERunGeneratesOutputAlertEvent : IDEAlertEvent { } - (void)runInWorkspace:(id)arg1 context:(id)arg2 completionBlock:(id)arg3; @end @interface IDERunOperation : DVTOperation <IDEExecutingOperationTrackable, IDERunOperationWorkerDelegate> { IDERunOperationWorker *_worker; NSMutableArray *_trackers; id <DVTCancellationBlockCompletion> _cancellationToken; id _finishToken; } + (id)keyPathsForValuesAffectingLaunchSession; @property(retain) NSMutableArray *trackers; // @synthesize trackers=_trackers; - (void)registerTracker:(id)arg1; - (void)_runningTrackerFinished:(id)arg1; - (void)runningDidFinish; @property(readonly) IDELaunchSession *launchSession; - (void)main; - (void)workerDidComplete:(id)arg1 withError:(id)arg2; - (id)initWithWorker:(id)arg1; @end @interface IDERunOperationWorkerGroup : IDERunOperationWorker <IDERunOperationWorkerDelegate, IDERunOperationWorkerTracker> { NSArray *_subworkers; unsigned long long _completedSubworkers; unsigned long long _finishedSubworkers; } @property(readonly) NSArray *subworkers; // @synthesize subworkers=_subworkers; - (void)allSubworkersDidFinishWithError:(id)arg1; - (void)runningDidFinish:(id)arg1 withError:(id)arg2; - (void)workerDidComplete:(id)arg1 withError:(id)arg2; - (void)terminate; - (void)start; - (id)initWithExtensionIdentifier:(id)arg1 launchSession:(id)arg2; - (id)initWithWorkers:(id)arg1 launchSession:(id)arg2; @end @interface IDERunOperationSerialWorkerGroup : IDERunOperationWorkerGroup { unsigned long long _currentWorkerIndex; BOOL _started; } - (void)workerDidComplete:(id)arg1 withError:(id)arg2; - (void)start; - (BOOL)_startNextWorker; @end @interface IDEScheme : NSObject <DVTInvalidation> { NSString *_identifier; IDEBuildSchemeAction *_buildSchemeAction; IDETestSchemeAction *_testSchemeAction; IDELaunchSchemeAction *_launchSchemeAction; IDEArchiveSchemeAction *_archiveSchemeAction; IDEProfileSchemeAction *_profileSchemeAction; IDEAnalyzeSchemeAction *_analyzeSchemeAction; IDEInstallSchemeAction *_installSchemeAction; NSString *_lastUpgradeVersion; NSString *_cachedLastUpgradeVersion; BOOL _hasRunUpgradeCheck; BOOL _wasUpgraded; IDERunnable *_oldFormatArchivedRunnable; IDERunContextManager *_runContextManager; IDEContainer<DVTCustomDataStoring> *_customDataStoreContainer; DVTCustomDataSpecifier *_customDataSpecifier; NSArray *_availableRunDestinations; BOOL _isShown; unsigned long long _orderHint; BOOL _dataStoreClosed; BOOL _isValid; DVTStackBacktrace *_invalidationBacktrace; BOOL _deferredSaveScheduled; BOOL _registeredForIsBuildableNotifications; NSNumber *_isArchivable; id _isArchivableNotificationToken; NSNumber *_isInstallable; id _isInstallableNotificationToken; BOOL _hasUnsupportedArchiveData; } + (BOOL)automaticallyNotifiesObserversOfOrderHint; + (BOOL)automaticallyNotifiesObserversOfIsShown; + (id)keyPathsForValuesAffectingDisambiguatedName; + (BOOL)automaticallyNotifiesObserversOfCustomDataStoreContainer; + (id)keyPathsForValuesAffectingTestable; + (id)keyPathsForValuesAffectingAnalyzable; + (id)keyPathsForValuesAffectingProfilable; + (id)keyPathsForValuesAffectingRunnable; + (id)schemeFromXMLData:(id)arg1 withRunContextManager:(id)arg2 customDataStoreContainer:(id)arg3 customDataSpecifier:(id)arg4 isShown:(BOOL)arg5 orderHint:(unsigned long long)arg6 error:(id *)arg7; + (id)schemeWithRunContextManager:(id)arg1 customDataStoreContainer:(id)arg2 customDataSpecifier:(id)arg3; @property(retain) DVTStackBacktrace *invalidationBacktrace; // @synthesize invalidationBacktrace=_invalidationBacktrace; @property(nonatomic, getter=isValid) BOOL valid; // @synthesize valid=_isValid; @property(readonly) DVTCustomDataSpecifier *customDataSpecifier; // @synthesize customDataSpecifier=_customDataSpecifier; @property(retain, nonatomic) IDEContainer<DVTCustomDataStoring> *customDataStoreContainer; // @synthesize customDataStoreContainer=_customDataStoreContainer; @property(readonly) IDERunContextManager *runContextManager; // @synthesize runContextManager=_runContextManager; @property BOOL wasUpgraded; // @synthesize wasUpgraded=_wasUpgraded; @property BOOL hasRunUpgradeCheck; // @synthesize hasRunUpgradeCheck=_hasRunUpgradeCheck; @property(copy) NSString *lastUpgradeVersion; // @synthesize lastUpgradeVersion=_lastUpgradeVersion; @property(copy) NSString *cachedLastUpgradeVersion; // @synthesize cachedLastUpgradeVersion=_cachedLastUpgradeVersion; @property(readonly) IDEInstallSchemeAction *installSchemeAction; // @synthesize installSchemeAction=_installSchemeAction; @property(readonly) IDEAnalyzeSchemeAction *analyzeSchemeAction; // @synthesize analyzeSchemeAction=_analyzeSchemeAction; @property(readonly) IDEProfileSchemeAction *profileSchemeAction; // @synthesize profileSchemeAction=_profileSchemeAction; @property(readonly) IDEArchiveSchemeAction *archiveSchemeAction; // @synthesize archiveSchemeAction=_archiveSchemeAction; @property(readonly) IDELaunchSchemeAction *launchSchemeAction; // @synthesize launchSchemeAction=_launchSchemeAction; @property(readonly) IDETestSchemeAction *testSchemeAction; // @synthesize testSchemeAction=_testSchemeAction; @property(readonly) IDEBuildSchemeAction *buildSchemeAction; // @synthesize buildSchemeAction=_buildSchemeAction; @property(readonly) NSString *identifier; // @synthesize identifier=_identifier; - (void)addBuildableProductRunnable:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addPathRunnable:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addLaunchPhase:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addTestPhase:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addBuildPhase:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addArchiveAction:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addInstallAction:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addAnalyzeAction:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addProfileAction:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addLaunchAction:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addTestAction:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addBuildAction:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)setLastUpgradeVersionFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)dvt_encodeRelationshipsWithXMLArchiver:(id)arg1; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; @property(readonly) NSData *xmlData; - (BOOL)_executionActionsNeedCurrentArchiveVersion; - (void)dvt_awakeFromXMLUnarchiver:(id)arg1; - (id)_groupAndImposeDependenciesForOrderedOperations:(id)arg1; - (id)_buildOperationGroupForExecutionEnvironment:(id)arg1 buildConfiguration:(id)arg2 buildPurpose:(int)arg3 buildCommand:(int)arg4 schemeCommand:(int)arg5 overridingProperties:(id)arg6 destination:(id)arg7 buildLog:(id)arg8 filePath:(id)arg9 error:(id *)arg10; - (id)_executionOperationForExecutionEnvironment:(id)arg1 build:(BOOL)arg2 onlyBuild:(BOOL)arg3 buildPurpose:(int)arg4 buildCommand:(int)arg5 schemeCommand:(int)arg6 overridingProperties:(id)arg7 destination:(id)arg8 buildLog:(id)arg9 filePath:(id)arg10 error:(id *)arg11 testCallbackBlock:(id)arg12; - (id)installWithExecutionContext:(id)arg1 onlyBuild:(BOOL)arg2 destination:(id)arg3 overridingProperties:(id)arg4 commandName:(id)arg5 error:(id *)arg6; - (id)archiveWithExecutionContext:(id)arg1 onlyBuild:(BOOL)arg2 destination:(id)arg3 overridingProperties:(id)arg4 commandName:(id)arg5 error:(id *)arg6; - (id)archiveOperactionWithExecutionContext:(id)arg1 onlyBuild:(BOOL)arg2 destination:(id)arg3 overridingProperties:(id)arg4 commandName:(id)arg5 buildLog:(id)arg6 error:(id *)arg7; - (id)testWithExecutionContext:(id)arg1 buildIfNeeded:(BOOL)arg2 onlyBuild:(BOOL)arg3 destination:(id)arg4 overridingProperties:(id)arg5 commandName:(id)arg6 error:(id *)arg7; - (id)testOperationWithExecutionContext:(id)arg1 buildIfNeeded:(BOOL)arg2 onlyBuild:(BOOL)arg3 destination:(id)arg4 overridingProperties:(id)arg5 commandName:(id)arg6 buildLog:(id)arg7 error:(id *)arg8 testCallbackBlock:(id)arg9; - (id)profileWithExecutionContext:(id)arg1 buildIfNeeded:(BOOL)arg2 onlyBuild:(BOOL)arg3 destination:(id)arg4 overridingProperties:(id)arg5 commandName:(id)arg6 error:(id *)arg7; - (id)runWithExecutionContext:(id)arg1 buildIfNeeded:(BOOL)arg2 onlyBuild:(BOOL)arg3 destination:(id)arg4 overridingProperties:(id)arg5 commandName:(id)arg6 error:(id *)arg7; - (id)analyzeWithExecutionContext:(id)arg1 onlyBuild:(BOOL)arg2 destination:(id)arg3 overridingProperties:(id)arg4 commandName:(id)arg5 error:(id *)arg6; - (id)cleanWithExecutionContext:(id)arg1 destination:(id)arg2 overridingProperties:(id)arg3 commandName:(id)arg4 error:(id *)arg5; - (id)buildWithPurpose:(int)arg1 buildCommand:(int)arg2 schemeCommand:(int)arg3 executionContext:(id)arg4 destination:(id)arg5 overridingProperties:(id)arg6 commandName:(id)arg7 filePath:(id)arg8 error:(id *)arg9 completionBlock:(id)arg10; - (void)_updateOrderHint:(unsigned long long)arg1; @property unsigned long long orderHint; - (void)_updateIsShown:(BOOL)arg1; @property BOOL isShown; @property BOOL isShared; @property(readonly) NSString *disambiguatedName; @property(copy) NSString *name; - (void)_primitiveSetCustomDataStoreContainer:(id)arg1; - (void)_updateCustomDataStoreContainer:(id)arg1 andSpecifier:(id)arg2; - (void)_invalidateAvailableRunDestinations; @property(readonly) NSArray *availableRunDestinations; - (void)buildConfigurationDidChange:(id)arg1; - (id)buildParametersForSchemeCommand:(int)arg1 destination:(id)arg2; - (id)buildConfigurationForSchemeCommand:(int)arg1; - (id)buildablesForSchemeCommand:(int)arg1; - (id)runnablePathForSchemeCommand:(int)arg1 destination:(id)arg2; - (id)schemeActionForSchemeCommand:(int)arg1; @property(readonly, getter=isInstallable) BOOL installable; @property(readonly, getter=isArchivable) BOOL archivable; @property(readonly, getter=isTestable) BOOL testable; @property(readonly, getter=isAnalyzable) BOOL analyzable; @property(readonly, getter=isProfilable) BOOL profilable; @property(readonly, getter=isRunnable) BOOL runnable; @property(readonly, getter=isBuildable) BOOL buildable; - (void)invalidate; @property(readonly) BOOL isClosed; - (void)customDataStoreContainerClosing:(id)arg1; - (void)performDelayedSave:(id)arg1; - (void)markSchemeDirty; - (void)resolveBuildablesFromImport; - (id)description; - (id)initFromUnarchiver:(BOOL)arg1 runContextManager:(id)arg2 customDataStoreContainer:(id)arg3 customDataSpecifier:(id)arg4 isShown:(BOOL)arg5 orderHint:(unsigned long long)arg6; @end @interface IDESchemeBuildableReference : NSObject <DVTXMLUnarchiving, NSCopying> { NSString *_buildableIdentifier; NSString *_blueprintIdentifier; NSString *_cachedBuildableName; NSString *_cachedBlueprintName; NSString *_legacyBuildableIdentifier; IDEContainer<IDEBlueprintProvider> *_referencedContainer; NSString *_lastArchivedReferencedContainerPath; IDEScheme *_scheme; id <DVTObservingToken> _referencedContainersObservingToken; id <DVTObservingToken> _referencedContainerFilePathObservingToken; id <DVTObservingToken> _resolvedBuildableNameObservingToken; id <DVTObservingToken> _resolvedBlueprintNameObservingToken; BOOL _resolvingBlueprint; } + (id)resolvedBuildableForLegacyIdentifier:(id)arg1 inContainer:(id)arg2; + (id)keyPathsForValuesAffectingBlueprintName; + (id)keyPathsForValuesAffectingBuildableName; + (id)keyPathsForValuesAffectingResolvedBuildable; + (id)keyPathsForValuesAffectingResolvedBlueprint; @property(copy) NSString *cachedBlueprintName; // @synthesize cachedBlueprintName=_cachedBlueprintName; @property(copy) NSString *cachedBuildableName; // @synthesize cachedBuildableName=_cachedBuildableName; @property(nonatomic) IDEContainer<IDEBlueprintProvider> *referencedContainer; // @synthesize referencedContainer=_referencedContainer; @property(copy) NSString *blueprintIdentifier; // @synthesize blueprintIdentifier=_blueprintIdentifier; @property(copy) NSString *buildableIdentifier; // @synthesize buildableIdentifier=_buildableIdentifier; @property(retain, nonatomic) IDEScheme *scheme; // @synthesize scheme=_scheme; - (void)dvt_encodeRelationshipsWithXMLArchiver:(id)arg1; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (void)setReferencedContainerFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setBlueprintNameFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setBuildableNameFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setBlueprintIdentifierFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setBuildableIdentifierFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)setBuildableProductIdentifierFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)loadLegacyBuildableWithResolutionContextContainer:(id)arg1; - (void)resolveBuildableFromImport; - (BOOL)referencesSameBuildableAsReference:(id)arg1; - (id)currentReferencedContainerPath; - (id)referencedContainerFromSchemeForArchivedPath:(id)arg1; - (id)referenceResolutionContext; - (id)containerReferenceResolver; @property(readonly) NSString *blueprintName; @property(readonly) NSString *buildableName; - (BOOL)updateCachedBuildableName; - (BOOL)updateCachedBlueprintName; @property(readonly) id <IDEBuildable> resolvedBuildable; @property(readonly) id <IDEBlueprint> resolvedBlueprint; - (id)description; - (id)copyWithZone:(struct _NSZone *)arg1; - (id)initFromXMLUnarchiver:(id)arg1 archiveVersion:(float)arg2; - (id)initWithBuildable:(id)arg1 scheme:(id)arg2; - (void)_IDESchemeBuildableReferenceSharedInit; @end @interface IDEScriptingProxy : IDEScriptingElement { id _key; id _collection; } + (id)wrapDictionary:(id)arg1 inProxy:(Class)arg2 forContainer:(id)arg3 andAccessor:(id)arg4; + (id)wrapItemOfDictionary:(id)arg1 forKey:(id)arg2 inProxy:(Class)arg3 forContainer:(id)arg4 andAccessor:(id)arg5; @property(retain) id collection; // @synthesize collection=_collection; @property(retain) id key; // @synthesize key=_key; - (id)objectSpecifier; - (BOOL)isEqual:(id)arg1; - (void)setValue:(id)arg1; - (id)value; - (id)scriptingID; - (id)name; - (id)description; @end @interface IDESharedLibraryEntry : NSObject { long long _identifer; NSString *_name; unsigned long long _address; NSString *_path; int _debugSymbolsLoadState; } @property int debugSymbolsLoadState; // @synthesize debugSymbolsLoadState=_debugSymbolsLoadState; @property(readonly) NSString *path; // @synthesize path=_path; @property(readonly) unsigned long long address; // @synthesize address=_address; @property(readonly) NSString *name; // @synthesize name=_name; @property(readonly) long long identifier; // @synthesize identifier=_identifer; @property(readonly) NSString *displayAddress; - (id)initWithIdentifer:(long long)arg1 name:(id)arg2 address:(unsigned long long)arg3 path:(id)arg4 debugSymbolsLoadState:(int)arg5; @end @interface IDEShellCommandBreakpointAction : IDEBreakpointAction { NSString *_command; NSString *_arguments; BOOL _waitUntilDone; } + (id)propertiesAffectingPersistenceState; @property BOOL waitUntilDone; // @synthesize waitUntilDone=_waitUntilDone; @property(copy) NSString *arguments; // @synthesize arguments=_arguments; @property(copy) NSString *command; // @synthesize command=_command; - (void)setWaitUntilDoneFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (id)initFromXMLUnarchiver:(id)arg1 archiveVersion:(float)arg2; - (id)_stringForFileHandleData:(id)arg1; - (id)_taskWithLaunchPath:(id)arg1 arguments:(id)arg2 consoleAdaptor:(id)arg3; - (id)_errorMessageForShellCommandValidity:(int)arg1 shellCommand:(id)arg2; - (int)_commandValidity:(id)arg1; - (id)_fullPathOfCommand:(int *)arg1; - (void)performActionUsingConsole:(id)arg1 andBreakpoint:(id)arg2; - (id)_argumentsArrayForBreakpoint:(id)arg1; - (void)_shellCommandActionCommonInit; - (id)init; @end @interface IDESimulateLocationService : DVTDeviceService { } + (id)capability; - (void)simulateLocationWithLatitude:(id)arg1 longitude:(id)arg2 error:(id *)arg3; - (void)stopLocationSimulationWithError:(id *)arg1; @end @interface IDESnapshotItem : NSObject { NSString *_name; NSString *_comment; int _type; NSDate *_date; NSString *_revision; } @property(copy) NSString *revision; // @synthesize revision=_revision; @property(copy) NSDate *date; // @synthesize date=_date; @property int type; // @synthesize type=_type; @property(copy) NSString *comment; // @synthesize comment=_comment; @property(copy) NSString *name; // @synthesize name=_name; - (id)description; @end @interface IDESnapshotsEngine : NSObject { } + (void)fileAndDirectoryDifferencesBetweenPath:(id)arg1 andPath:(id)arg2 completionBlock:(id)arg3; + (id)beginRestoreOfSnapshot:(id)arg1 fromRepositoryAtPath:(id)arg2 toLocation:(id)arg3 completionBlock:(id)arg4; + (void)finishRestoreOfSnapshotWithContext:(id)arg1 exportedSnapshotLocation:(id)arg2 completionBlock:(id)arg3; + (id)exportSnapshot:(id)arg1 fromRepositoryAtPath:(id)arg2 toLocation:(id)arg3 completionBlock:(id)arg4; + (id)_exportSnapshot:(id)arg1 toLocation:(id)arg2 tmpExportLocation:(id)arg3; + (id)_pathForTmpFiles; + (id)_removeFilePaths:(id)arg1 inPath:(id)arg2; + (id)_copyOrReplaceFilePaths:(id)arg1 fromPath:(id)arg2 toPath:(id)arg3; + (BOOL)isPathValidForSnapshots:(id)arg1; + (id)_firstInterestingFilePathInLocation:(id)arg1; + (id)exportRequestForSnapshot:(id)arg1 fromRepositoryAtPath:(id)arg2 toLocation:(id)arg3; + (BOOL)commitSnapshot:(id)arg1 withCommitMessage:(id)arg2 error:(id *)arg3; + (BOOL)snapshotFiles:(id)arg1 toRepository:(id)arg2 error:(id *)arg3; + (id)filesToSnapshotInWorkspace:(id)arg1; + (id)consolidatedFilePathFromPaths:(id)arg1 workingTreesRoots:(id)arg2; + (BOOL)createSnapshotRepositoryAtPath:(id)arg1 forWorkspace:(id)arg2 error:(id *)arg3; + (void)performSyncGitRequest:(int)arg1 files:(id)arg2 repositoryPath:(id)arg3 message:(id)arg4 completionBlock:(id)arg5; @end @interface IDESnapshotsManager : NSObject { BOOL _areSnapshotsEnabled; DVTPerformanceMetric *_metric; } + (id)sourceControlSystemUsedForSnapshotsWithError:(id *)arg1; + (id)snapshotsLogAspect; + (id)sharedManager; - (id)restoreSnapshot:(id)arg1 fromRepositoryAtPath:(id)arg2 toLocation:(id)arg3 completionBlock:(id)arg4; - (id)tmpFileForFileAtOriginalLocation:(id)arg1 fromSnapshot:(id)arg2 fromRepositoryAtPath:(id)arg3 completionBlock:(id)arg4; - (id)modifiedFilesBetweenSnapshot:(id)arg1 andPreviousSnapshot:(id)arg2 fromRepositoryAtPath:(id)arg3 completionBlock:(id)arg4; - (id)snapshotsForRepositoryAtPath:(id)arg1 completionBlock:(id)arg2; @property BOOL areSnapshotsEnabled; // @synthesize areSnapshotsEnabled=_areSnapshotsEnabled; - (id)snapshotsFolderPath; - (id)snapshotExtension; @end @interface IDESnapshotsRestoreContext : NSObject { IDESnapshotItem *_snapshot; DVTFilePath *_repositoryPath; DVTFilePath *_exportLocation; NSArray *_pathsToRestore; } + (id)contextWithSnapshot:(id)arg1 repositoryPath:(id)arg2 exportLocation:(id)arg3 pathsToRestore:(id)arg4; @property(retain) NSArray *pathsToRestore; // @synthesize pathsToRestore=_pathsToRestore; @property(retain) DVTFilePath *exportLocation; // @synthesize exportLocation=_exportLocation; @property(retain) DVTFilePath *repositoryPath; // @synthesize repositoryPath=_repositoryPath; @property(retain) IDESnapshotItem *snapshot; // @synthesize snapshot=_snapshot; @end @interface IDESourceControlBranch : NSObject { NSString *_name; IDESourceControlTree *_sourceTree; BOOL _isTrunk; BOOL _orphaned; } @property BOOL orphaned; // @synthesize orphaned=_orphaned; @property(readonly) BOOL isTrunk; // @synthesize isTrunk=_isTrunk; @property(readonly) IDESourceControlTree *sourceTree; // @synthesize sourceTree=_sourceTree; @property(readonly) NSString *name; // @synthesize name=_name; - (BOOL)isEqualTo:(id)arg1; - (id)nameOfTrackingBranch:(id)arg1; - (id)revisionsWithStartingRevision:(id)arg1 endingRevision:(id)arg2 limit:(unsigned long long)arg3 branch:(id)arg4 completionBlock:(id)arg5; - (id)currentRevisionWithCompletionBlock:(id)arg1; @property(readonly) NSString *repositoryURLString; - (id)description; - (id)ideModelObjectTypeIdentifier; - (id)initWithName:(id)arg1 sourceTree:(id)arg2 isTrunk:(BOOL)arg3; @end @interface IDESourceControlDocumentLocation : DVTDocumentLocation { NSString *_branchName; NSString *_revisionName; } @property(readonly) NSString *revisionName; // @synthesize revisionName=_revisionName; @property(readonly) NSString *branchName; // @synthesize branchName=_branchName; - (id)description; - (BOOL)isEqualDisregardingTimestamp:(id)arg1; - (id)workingTreeItem; - (void)encodeWithCoder:(id)arg1; - (id)initWithCoder:(id)arg1; - (id)initWithDocumentLocation:(id)arg1 branchName:(id)arg2 revisionName:(id)arg3; - (id)initWithDocumentURL:(id)arg1 branchName:(id)arg2 revisionName:(id)arg3; @end @interface IDESourceControlExtension : NSObject { id <IDESourceControlProtocol> _delegate; NSString *_identifier; NSString *_title; NSString *_directoryIdentifier; Class _delegateClass; NSArray *_supportedProtocols; BOOL _distributed; BOOL _requiresUsernameInURL; BOOL _commitMessageRequired; BOOL _supportsLocalBlame; BOOL _supportsFineGrainedCheckouts; BOOL _repositoryLayoutNeeded; BOOL _supportsRemotes; } @property(readonly) BOOL supportsRemotes; // @synthesize supportsRemotes=_supportsRemotes; @property(readonly) BOOL repositoryLayoutNeeded; // @synthesize repositoryLayoutNeeded=_repositoryLayoutNeeded; @property(readonly) BOOL supportsFineGrainedCheckouts; // @synthesize supportsFineGrainedCheckouts=_supportsFineGrainedCheckouts; @property(readonly) BOOL supportsLocalBlame; // @synthesize supportsLocalBlame=_supportsLocalBlame; @property(readonly) BOOL commitMessageRequired; // @synthesize commitMessageRequired=_commitMessageRequired; @property(readonly) BOOL requiresUsernameInURL; // @synthesize requiresUsernameInURL=_requiresUsernameInURL; @property(readonly) BOOL distributed; // @synthesize distributed=_distributed; @property(readonly) NSArray *supportedProtocols; // @synthesize supportedProtocols=_supportedProtocols; @property(readonly) Class delegateClass; // @synthesize delegateClass=_delegateClass; @property(readonly) NSString *directoryIdentifier; // @synthesize directoryIdentifier=_directoryIdentifier; @property(readonly) NSString *title; // @synthesize title=_title; @property(readonly) NSString *identifier; // @synthesize identifier=_identifier; @property(readonly) NSString *Xcode3Title; @property(readonly) id <IDESourceControlProtocol> delegate; // @synthesize delegate=_delegate; - (id)initWithDVTExtension:(id)arg1; @end @interface IDESourceControlIssueProvider : IDEIssueProvider { IDEWorkspace *_workspace; id <DVTObservingToken> _scmMonitorObservingToken; id _didUpdateServerStatusNotificationToken; id _didUpdateLocalStatusNotificationToken; NSDictionary *_localizedStrings; } + (id)_issueScanningQueue; - (id)ideModelObjectTypeIdentifier; - (id)_issueTypeIdentifierForStatus:(int)arg1; - (id)_shortMessageForItem:(id)arg1; - (id)displayNameForIssueTypeIdentifier:(id)arg1; - (id)_locationsOfTextualConflictsAtPath:(id)arg1; - (id)_issuesForItemWithStatus:(id)arg1; - (void)_scanForIssues; - (void)invalidate; - (void)_setUpSourceControlObserving; - (id)_localizedStringForKey:(id)arg1; - (void)_generateLocalizedStrings; - (id)initWithIssueManager:(id)arg1 extension:(id)arg2; @end @interface IDESourceControlLogProvider : IDELogProvider { } + (id)keyPathsForValuesAffectingLogRecords; - (id)ideModelObjectTypeIdentifier; - (id)logRecords; @end @interface IDESourceControlManager : NSObject { NSMutableArray *_repositories; NSMutableArray *_extensions; NSOperationQueue *_operationQueue; NSMutableDictionary *_workingCopyRootDirectories; NSMutableArray *_holdingQueue; DVTDispatchLock *_holdingQueueLock; DVTDispatchLock *_sharedRepositoryLock; unsigned long long _maxConcurrentOperationCount; BOOL _localStatusCheckingEnabled; BOOL _remoteStatusCheckingEnabled; BOOL _waitingForAuthentication; } + (id)sourceControlProfilingLogAspect; + (id)sourceControlAuthenticationLogAspect; + (id)sourceControlFileScanningLogAspect; + (id)sourceControlLogAspect; + (id)sharedSourceControlManager; @property(copy) NSMutableDictionary *workingCopyRootDirectories; // @synthesize workingCopyRootDirectories=_workingCopyRootDirectories; @property(readonly) NSArray *repositories; // @synthesize repositories=_repositories; @property(readonly) NSArray *extensions; // @synthesize extensions=_extensions; - (void)cancelRequest:(id)arg1; - (void)performRequest:(id)arg1 withCompletionBlock:(id)arg2; - (void)performRequest:(id)arg1 waitUntilFinished:(BOOL)arg2 withCompletionBlock:(id)arg3; - (void)handleError:(id)arg1 forRequest:(id)arg2 operation:(id)arg3 waitUntilFinished:(BOOL)arg4 withCompletionBlock:(id)arg5; - (BOOL)validateRequest:(id)arg1 error:(id *)arg2; @property BOOL waitingForAuthentication; // @synthesize waitingForAuthentication=_waitingForAuthentication; @property unsigned long long maxConcurrentOperationCount; // @synthesize maxConcurrentOperationCount=_maxConcurrentOperationCount; - (void)_finishLogForRequest:(id)arg1 operation:(id)arg2 withResult:(int)arg3; - (void)_startLogForRequest:(id)arg1 operation:(id)arg2; - (void)removeAssociatedRepositoryRoot:(id)arg1 withFilePath:(id)arg2; - (void)associateRepositoryRoot:(id)arg1 withFilePath:(id)arg2; - (void)remoteRootPathForFilePath:(id)arg1 sourceControlExtension:(id)arg2 completionBlock:(id)arg3; - (void)workingTreeRootForFilePath:(id)arg1 sourceControlExtension:(id)arg2 completionBlock:(id)arg3; - (void)workingTreeRootForFilePath:(id)arg1 completionBlock:(id)arg2; - (void)workingTreeForFilePath:(id)arg1 completionBlock:(id)arg2; - (id)workingTreeForFilePath:(id)arg1; - (id)extensionForRequest:(id)arg1; - (id)commonExtensionForPaths:(id)arg1; - (id)extensionForURL:(id)arg1; - (id)extensionToUseForFilePath:(id)arg1; - (void)scanForExtensionsInFilePath:(id)arg1; - (id)extensionsAtFilePath:(id)arg1; - (void)invalidateExtensionsForFilePath:(id)arg1; - (id)extensionsAssociatedWithFilePath:(id)arg1; - (void)removeAssociatedExtension:(id)arg1 withPath:(id)arg2; - (void)associateExtension:(id)arg1 withPath:(id)arg2; - (id)extensionMatchingDirectoryIdentifier:(id)arg1; - (id)extensionsMatchingProtocol:(id)arg1; - (id)extensionMatchingIdentifier:(id)arg1; - (void)removeRepository:(id)arg1 removePasswordFromKeychain:(BOOL)arg2; - (void)addRepository:(id)arg1; - (BOOL)containsRepository:(id)arg1; - (void)updateUserDefaults; - (id)arrayOfRepositoryDictionaries; - (id)repositoryForLocation:(id)arg1 sourceControlExtension:(id)arg2; - (id)repositoriesForExtension:(id)arg1; @property BOOL remoteStatusCheckingEnabled; // @synthesize remoteStatusCheckingEnabled=_remoteStatusCheckingEnabled; @property BOOL localStatusCheckingEnabled; // @synthesize localStatusCheckingEnabled=_localStatusCheckingEnabled; - (id)_directoryIdentifiers; - (void)loadRepositories; - (void)loadExtensions; - (id)defaultExtension; - (id)initWithSavedRepositories:(BOOL)arg1; @end @interface IDESourceControlMultipleStepInvalidationToken : NSObject <DVTInvalidation> { IDESourceControlRequest *_currentRequest; BOOL _isInvalidated; DVTStackBacktrace *_invalidationBacktrace; } @property(readonly) DVTStackBacktrace *invalidationBacktrace; // @synthesize invalidationBacktrace=_invalidationBacktrace; @property __weak IDESourceControlRequest *currentRequest; // @synthesize currentRequest=_currentRequest; @property(readonly, nonatomic, getter=isValid) BOOL valid; - (void)invalidate; @end @interface IDESourceControlOperation : DVTOperation { NSArray *_result; IDESourceControlRequest *_request; NSString *_rawInput; NSString *_rawStandardOutput; NSString *_rawErrorOutput; } @property(readonly) IDESourceControlRequest *request; // @synthesize request=_request; @property(retain) NSArray *result; // @synthesize result=_result; - (void)cancel; @property(retain) NSString *rawErrorOutput; // @synthesize rawErrorOutput=_rawErrorOutput; @property(retain) NSString *rawStandardOutput; // @synthesize rawStandardOutput=_rawStandardOutput; @property(retain) NSString *rawInput; // @synthesize rawInput=_rawInput; - (id)initWithRequest:(id)arg1; @end @interface IDESourceControlTree : DVTModelTree <DVTInvalidation> { DVTDispatchLock *_childrenChangeLock; IDESourceControlManager *_sourceControlManager; IDESourceControlExtension *_sourceControlExtension; DVTStackBacktrace *_invalidationBacktrace; NSString *_location; NSString *_name; NSString *_origin; int _reachabilityFlags; unsigned long long _state; long long _reachable; BOOL _isInvalidated; BOOL _disallowLoadingChildren; BOOL _isObservingReachability; } + (void)initialize; + (id)keyPathsForValuesAffectingConnected; + (id)treeLoadingModelObjectGraph; @property BOOL isObservingReachability; // @synthesize isObservingReachability=_isObservingReachability; @property long long reachable; // @synthesize reachable=_reachable; @property BOOL disallowLoadingChildren; // @synthesize disallowLoadingChildren=_disallowLoadingChildren; @property unsigned long long state; // @synthesize state=_state; @property int reachabilityFlags; // @synthesize reachabilityFlags=_reachabilityFlags; @property(readonly) NSString *origin; // @synthesize origin=_origin; @property(copy) NSString *location; // @synthesize location=_location; @property(copy, nonatomic) NSString *name; // @synthesize name=_name; @property(retain) IDESourceControlExtension *sourceControlExtension; // @synthesize sourceControlExtension=_sourceControlExtension; @property(readonly) IDESourceControlManager *sourceControlManager; // @synthesize sourceControlManager=_sourceControlManager; @property(readonly) DVTStackBacktrace *invalidationBacktrace; // @synthesize invalidationBacktrace=_invalidationBacktrace; - (id)branchesWithCompletionBlock:(id)arg1; - (id)description; - (BOOL)isSameAsSourceTreeAtLocation:(id)arg1; - (BOOL)containsItemAtLocation:(id)arg1; - (void)endObservingReachability; - (void)startObservingReachability; @property(readonly) BOOL connected; - (void)_setOrigin:(id)arg1; - (id)subclass_createRootNode; @property(readonly, nonatomic, getter=isValid) BOOL valid; - (void)invalidate; - (id)dictionaryRepresentation; - (id)initWithDictionary:(id)arg1 sourceControlExtension:(id)arg2 sourceControlManager:(id)arg3; - (id)initWithLocation:(id)arg1 sourceControlManager:(id)arg2; - (id)_initWithLocation:(id)arg1 sourceControlManager:(id)arg2; // Remaining properties @property(readonly) IDESourceControlTreeGroup *rootGroup; // @dynamic rootGroup; @end @interface IDESourceControlRepository : IDESourceControlTree /* <NSURLConnectionDelegate> */ { struct __SCNetworkReachability *_reachabilityRef; NSMutableArray *_workingTrees; DVTDispatchLock *_branchesLock; NSMutableArray *_branches; NSURL *_trunkLocation; NSURL *_branchesLocation; NSURL *_tagsLocation; NSDate *_branchesInvalidationDate; DVTDispatchLock *_remotesLock; NSMutableArray *_remotes; NSURL *_URL; NSString *_root; NSString *_user; NSString *_password; NSString *_keychainName; IDESourceControlBranch *_trunkBranch; NSMutableDictionary *_authenticationDictionary; NSString *_relativeTrunkLocation; NSString *_relativeBranchesLocation; NSString *_relativeTagsLocation; NSMutableArray *_itemsWithStatus; DVTDispatchLock *_itemsWithStatusLock; IDESourceControlRequest *_repositorySetupRequest; BOOL _authenticated; BOOL _doNotAuthenticate; BOOL _shouldRetryAuthentication; } + (id)keyPathsForValuesAffectingRelativeTagsLocation; + (id)keyPathsForValuesAffectingRelativeBranchesLocation; + (id)keyPathsForValuesAffectingRelativeTrunkLocation; + (unsigned int)securityProtocolForURL:(id)arg1; @property BOOL shouldRetryAuthentication; // @synthesize shouldRetryAuthentication=_shouldRetryAuthentication; @property(copy, nonatomic) NSString *relativeTagsLocation; // @synthesize relativeTagsLocation=_relativeTagsLocation; @property(copy, nonatomic) NSString *relativeBranchesLocation; // @synthesize relativeBranchesLocation=_relativeBranchesLocation; @property(copy, nonatomic) NSString *relativeTrunkLocation; // @synthesize relativeTrunkLocation=_relativeTrunkLocation; @property(readonly) IDESourceControlBranch *trunkBranch; // @synthesize trunkBranch=_trunkBranch; @property(nonatomic) BOOL doNotAuthenticate; // @synthesize doNotAuthenticate=_doNotAuthenticate; @property(nonatomic) BOOL authenticated; // @synthesize authenticated=_authenticated; @property(readonly) NSArray *workingTrees; // @synthesize workingTrees=_workingTrees; @property(readonly) NSString *root; // @synthesize root=_root; - (id)stripBaseURLOrStartingSlash:(id)arg1; - (void)checkForExistanceOfPathComponent:(id)arg1 withCompletionBlock:(id)arg2; - (BOOL)isSameAsSourceTreeAtLocation:(id)arg1; @property(copy) NSURL *tagsLocation; // @synthesize tagsLocation=_tagsLocation; @property(copy) NSURL *trunkLocation; // @synthesize trunkLocation=_trunkLocation; @property(copy) NSURL *branchesLocation; // @synthesize branchesLocation=_branchesLocation; - (id)trackRemoteBranch:(id)arg1 withLocalBranchName:(id)arg2 completionBlock:(id)arg3; - (id)removeRemoteWithName:(id)arg1 completionBlock:(id)arg2; - (id)newRemoteWithName:(id)arg1 location:(id)arg2 completionBlock:(id)arg3; - (id)remotesWithCompletionBlock:(id)arg1; - (id)_remoteWithName:(id)arg1 andLocation:(id)arg2; - (void)setRemotes:(id)arg1; @property(readonly) NSMutableArray *remotes; - (id)removeBranchWithName:(id)arg1 message:(id)arg2 force:(BOOL)arg3 completionBlock:(id)arg4; - (id)newBranchWithName:(id)arg1 source:(id)arg2 message:(id)arg3 completionBlock:(id)arg4; - (id)branchesWithCompletionBlock:(id)arg1; - (id)defaultBranchStartingPoint; - (void)setBranches:(id)arg1; @property(readonly) NSMutableArray *branches; - (void)removeWorkingTree:(id)arg1; - (void)addWorkingTree:(id)arg1; - (void)endObservingReachability; - (void)startObservingReachability; - (void)testReachabilityWithCompletionBlock:(id)arg1; - (long long)reachable; - (BOOL)connected; - (id)localURL; - (void)authenticateWithCompletionBlock:(id)arg1; - (void)connectionDidFinishLoading:(id)arg1; - (void)connection:(id)arg1 didFailWithError:(id)arg2; - (void)connection:(id)arg1 willSendRequestForAuthenticationChallenge:(id)arg2; - (void)testCredentialsWithCompletionBlock:(id)arg1; - (int)removePasswordFromKeychain; - (void)savePasswordToKeychain; - (void)savePasswordToKeychainForSubversionHTTPWithProtectionSpace:(id)arg1; - (int)setGenericPassword:(id)arg1 item:(struct OpaqueSecKeychainItemRef *)arg2; - (struct OpaqueSecAccessRef *)setAccessForKeychainItem:(struct OpaqueSecKeychainItemRef *)arg1 withAccessLabel:(id)arg2; - (void)setPassword:(id)arg1 forSubversionHTTPWithProtectionSpace:(id)arg2; @property(copy) NSString *password; // @synthesize password=_password; - (id)Xcode3ApplicationPassword; - (id)Xcode3AccountName; - (id)passwordForSubversionHTTP; - (id)internetPassword; - (void)invalidate; @property(readonly) BOOL isRemoteDistributedRepository; - (id)ideModelObjectTypeIdentifier; - (void)clearServerStatus; - (void)clearLocalStatus; - (void)clearLocalAndServerStatus; - (void)clearStatusForItem:(id)arg1; - (void)addItemWithStatus:(id)arg1; @property(readonly) NSArray *itemsWithStatus; - (BOOL)containsItemAtLocation:(id)arg1; - (id)itemAtURL:(id)arg1 isGroup:(BOOL)arg2; - (void)_setRoot:(id)arg1; @property(copy) NSString *user; // @synthesize user=_user; @property(readonly) NSURL *URL; // @synthesize URL=_URL; - (void)setLocation:(id)arg1; - (void)setupRepositoryInformationWithCompletionBlock:(id)arg1; - (void)setSourceControlExtension:(id)arg1; - (id)dictionaryRepresentation; - (id)initWithDictionary:(id)arg1 sourceControlExtension:(id)arg2 sourceControlManager:(id)arg3; - (id)initWithLocation:(id)arg1 sourceControlManager:(id)arg2; - (id)_initWithLocation:(id)arg1 sourceControlManager:(id)arg2; @end @interface IDESourceControlRemote : IDESourceControlRepository { IDESourceControlRepository *_repository; BOOL _representsGitSVNBridge; } @property BOOL representsGitSVNBridge; // @synthesize representsGitSVNBridge=_representsGitSVNBridge; @property(readonly) IDESourceControlRepository *repository; // @synthesize repository=_repository; - (void)setRelativeTagsLocation:(id)arg1; - (void)setRelativeBranchesLocation:(id)arg1; - (void)setRelativeTrunkLocation:(id)arg1; - (void)setTagsLocation:(id)arg1; - (void)setTrunkLocation:(id)arg1; - (void)setBranchesLocation:(id)arg1; - (id)tagsLocation; - (id)trunkLocation; - (id)branchesLocation; - (id)removeRemoteWithName:(id)arg1 completionBlock:(id)arg2; - (id)newRemoteWithName:(id)arg1 location:(id)arg2 completionBlock:(id)arg3; - (id)remotesWithCompletionBlock:(id)arg1; - (void)setRemotes:(id)arg1; - (id)remotes; - (id)removeBranchWithName:(id)arg1 message:(id)arg2 force:(BOOL)arg3 completionBlock:(id)arg4; - (id)defaultBranchStartingPoint; - (void)removeWorkingTree:(id)arg1; - (void)addWorkingTree:(id)arg1; - (void)setupRepositoryInformationWithCompletionBlock:(id)arg1; - (id)initWithName:(id)arg1 location:(id)arg2 repository:(id)arg3 sourceControlManager:(id)arg4 sourceControlExtension:(id)arg5; @end @interface IDESourceControlRequest : NSObject <DVTInvalidation> { IDESourceControlTree *_sourceTree; IDESourceControlRemote *_remote; int _type; NSString *_startingRevision; NSString *_endingRevision; NSString *_destination; NSArray *_files; NSDictionary *_options; IDEActivityLogSection *_log; IDEActivityLogSection *_logSection; NSString *_shortTitle; NSString *_longTitle; id _domain; IDESourceControlExtension *_sourceControlExtension; NSString *_message; DVTStackBacktrace *_invalidationBacktrace; BOOL _isInvalidated; BOOL _stopAllActivityWhenCanceled; BOOL _shouldGenerateLog; BOOL _cancelable; } @property BOOL cancelable; // @synthesize cancelable=_cancelable; @property(readonly) DVTStackBacktrace *invalidationBacktrace; // @synthesize invalidationBacktrace=_invalidationBacktrace; @property(readonly) id domain; // @synthesize domain=_domain; @property BOOL shouldGenerateLog; // @synthesize shouldGenerateLog=_shouldGenerateLog; @property(retain) IDEActivityLogSection *logSection; // @synthesize logSection=_logSection; @property(retain) IDEActivityLogSection *log; // @synthesize log=_log; @property BOOL stopAllActivityWhenCanceled; // @synthesize stopAllActivityWhenCanceled=_stopAllActivityWhenCanceled; @property(copy) NSDictionary *options; // @synthesize options=_options; @property(copy) NSArray *files; // @synthesize files=_files; @property(copy) NSString *destination; // @synthesize destination=_destination; @property(copy) NSString *message; // @synthesize message=_message; @property(copy) NSString *endingRevision; // @synthesize endingRevision=_endingRevision; @property(copy) NSString *startingRevision; // @synthesize startingRevision=_startingRevision; @property int type; // @synthesize type=_type; @property(retain) IDESourceControlRemote *remote; // @synthesize remote=_remote; @property(retain) IDESourceControlTree *sourceTree; // @synthesize sourceTree=_sourceTree; @property(readonly, nonatomic, getter=isValid) BOOL valid; - (void)invalidate; - (void)setShouldGenerateLog:(BOOL)arg1 forDomain:(id)arg2; @property(readonly) NSString *longTitle; // @synthesize longTitle=_longTitle; @property(readonly) NSString *shortTitle; // @synthesize shortTitle=_shortTitle; - (BOOL)isRequestBlacklistedFromLogging; - (id)description; @property(readonly) IDESourceControlRepository *repositoryToAuthenticate; @property(retain) IDESourceControlExtension *sourceControlExtension; // @synthesize sourceControlExtension=_sourceControlExtension; - (id)initWithType:(int)arg1 startingRevision:(id)arg2 destination:(id)arg3 options:(id)arg4; - (id)initWithType:(int)arg1 sourceTree:(id)arg2 files:(id)arg3 options:(id)arg4; - (id)initWithType:(int)arg1 sourceTree:(id)arg2 destination:(id)arg3 files:(id)arg4 options:(id)arg5; - (id)initWithType:(int)arg1 sourceTree:(id)arg2 destination:(id)arg3 startingRevision:(id)arg4 endingRevision:(id)arg5 files:(id)arg6 options:(id)arg7; - (id)initWithType:(int)arg1 sourceTree:(id)arg2 startingRevision:(id)arg3 endingRevision:(id)arg4 files:(id)arg5 options:(id)arg6; - (id)initWithType:(int)arg1 sourceTree:(id)arg2 message:(id)arg3 files:(id)arg4 options:(id)arg5; - (id)initWithType:(int)arg1 sourceTree:(id)arg2 files:(id)arg3; - (id)initWithType:(int)arg1 sourceTree:(id)arg2; @end @interface IDESourceControlRevision : NSObject { NSString *_revision; NSString *_author; NSDate *_date; NSString *_message; BOOL _isHEAD; BOOL _isBASE; BOOL _isCurrent; } + (id)inMemoryRevision; + (id)localRevision; + (id)keyPathsForValuesAffectingLongRevisionString; @property BOOL isCurrent; // @synthesize isCurrent=_isCurrent; @property BOOL isBASE; // @synthesize isBASE=_isBASE; @property BOOL isHEAD; // @synthesize isHEAD=_isHEAD; @property(readonly) NSString *message; // @synthesize message=_message; @property(readonly) NSDate *date; // @synthesize date=_date; @property(readonly) NSString *author; // @synthesize author=_author; @property(readonly) NSString *revision; // @synthesize revision=_revision; - (BOOL)isEqual:(id)arg1; - (unsigned long long)hash; @property(readonly) NSString *longRevisionString; - (id)ideModelObjectTypeIdentifier; - (id)description; - (id)initWithRevision:(id)arg1 author:(id)arg2 date:(id)arg3 message:(id)arg4; @end @interface IDESourceControlRevisionWrapper : IDEScriptingWrapper { } - (void)setTimestamp:(id)arg1; - (id)timestamp; - (void)setTag:(id)arg1; - (id)tag; - (void)setRevision:(id)arg1; - (id)revision; - (id)name; - (void)setCommitMessage:(id)arg1; - (id)commitMessage; - (void)setAuthor:(id)arg1; - (id)author; @end @interface IDESourceControlTaskOperation : IDESourceControlOperation { DVTTask *_task; DVTTask *_pipeTask; NSString *_launchPath; NSString *_currentDirectoryPath; NSArray *_arguments; NSMutableData *_data; NSMutableData *_errorData; DVTPerformanceMetric *_metric; } + (id)_authenticationAgentExecutablePath; + (id)sourceControlTaskOperationLogAspect; @property(retain) NSMutableData *errorData; // @synthesize errorData=_errorData; @property(retain) NSMutableData *data; // @synthesize data=_data; @property(retain) NSArray *arguments; // @synthesize arguments=_arguments; @property(copy) NSString *currentDirectoryPath; // @synthesize currentDirectoryPath=_currentDirectoryPath; @property(copy) NSString *launchPath; // @synthesize launchPath=_launchPath; @property(retain) DVTTask *pipeTask; // @synthesize pipeTask=_pipeTask; @property(readonly) DVTTask *task; // @synthesize task=_task; - (void)parseDataOrGenerateErrorForTask:(id)arg1 operation:(id)arg2; - (void)main; - (id)pipeToOperation; - (id)rawErrorOutput; - (id)rawStandardOutput; - (id)rawInput; - (id)errorFromErrorMessage:(id)arg1; - (void)parseData; @end @interface IDESourceControlTreeItem : DVTModelTreeNode <DVTInvalidation> { IDESourceControlRevision *_headRevision; IDESourceControlRevision *_currentRevision; NSMutableDictionary *_revisions; DVTDispatchLock *_revisionsLock; NSString *_name; NSString *_pathString; DVTStackBacktrace *_invalidationBacktrace; unsigned long long _state; int _sourceControlLocalStatus; int _sourceControlServerStatus; unsigned long long _conflictStateForUpdateOrMerge; BOOL _isInvalidated; } + (BOOL)automaticallyNotifiesObserversOfCurrentRevision; + (void)initialize; @property unsigned long long conflictStateForUpdateOrMerge; // @synthesize conflictStateForUpdateOrMerge=_conflictStateForUpdateOrMerge; @property(readonly) DVTStackBacktrace *invalidationBacktrace; // @synthesize invalidationBacktrace=_invalidationBacktrace; @property int sourceControlServerStatus; // @synthesize sourceControlServerStatus=_sourceControlServerStatus; @property int sourceControlLocalStatus; // @synthesize sourceControlLocalStatus=_sourceControlLocalStatus; @property unsigned long long state; // @synthesize state=_state; @property(readonly) NSString *pathString; // @synthesize pathString=_pathString; @property(copy) NSString *name; // @synthesize name=_name; - (BOOL)isEqual:(id)arg1; - (unsigned long long)hash; - (id)exportToFileURL:(id)arg1 completionBlock:(id)arg2; - (void)clearAllRevisions; - (id)revisionsWithStartingRevision:(id)arg1 endingRevision:(id)arg2 limit:(unsigned long long)arg3 branch:(id)arg4 completionBlock:(id)arg5; @property(readonly) NSArray *revisions; - (id)revisionsDictionary; - (void)addRevision:(id)arg1; - (void)clearCurrentRevision; - (id)currentRevisionWithCompletionBlock:(id)arg1; - (void)setCurrentRevision:(id)arg1; @property(readonly) IDESourceControlRevision *currentRevision; - (int)aggregateSourceControlServerStatus; - (int)aggregateSourceControlLocalStatus; - (id)baseRevisionWithCompletionBlock:(id)arg1; - (id)headRevisionWithCompletionBlock:(id)arg1; - (void)setHEADRevision:(id)arg1; - (id)description; - (id)ideModelObjectTypeIdentifier; - (void)repositoryURLStringAtBranch:(id)arg1 completionBlock:(id)arg2; @property(readonly) NSString *repositoryURLString; - (void)_setPathString:(id)arg1; @property(readonly, nonatomic, getter=isValid) BOOL valid; - (void)invalidate; - (id)initWithPathString:(id)arg1; // Remaining properties @property(readonly) IDESourceControlTreeGroup *parentGroup; // @dynamic parentGroup; @property(readonly) IDESourceControlTree *sourceTree; // @dynamic sourceTree; @end @interface IDESourceControlTreeGroup : IDESourceControlTreeItem { BOOL _areChildrenLoaded; } + (id)keyPathsForValuesAffectingSparseChildren; + (void)initialize; @property BOOL areChildrenLoaded; // @synthesize areChildrenLoaded=_areChildrenLoaded; - (void)clearAllRevisions; - (void)reload; @property(readonly) NSMutableArray *mutableChildren; // @dynamic mutableChildren; @property(copy) NSArray *children; // @dynamic children; - (id)sparseChildren; - (void)computeChildrenIfNeeded; - (id)ideModelObjectTypeIdentifier; @end @interface IDESourceControlWorkingTree : IDESourceControlTree { IDESourceControlRepository *_repository; IDESourceControlBranch *_currentBranch; NSMutableArray *_itemsWithStatus; DVTDispatchLock *_itemsWithStatusLock; NSOperationQueue *_status_processing_queue; DVTFilePath *_filePath; NSMutableDictionary *_localStatusRequests; NSMutableDictionary *_serverStatusRequests; BOOL _initialLocalStatusUpdateIsComplete; BOOL _initialServerStatusUpdateIsComplete; NSMutableSet *_delayedLocalStatusUpdateForDirectories; DVTDispatchLock *_delayedLocalStatusUpdateForDirectoriesLock; } @property(readonly) BOOL initialServerStatusUpdateIsComplete; // @synthesize initialServerStatusUpdateIsComplete=_initialServerStatusUpdateIsComplete; @property(readonly) BOOL initialLocalStatusUpdateIsComplete; // @synthesize initialLocalStatusUpdateIsComplete=_initialLocalStatusUpdateIsComplete; @property(readonly) IDESourceControlRepository *repository; // @synthesize repository=_repository; @property(copy) DVTFilePath *filePath; // @synthesize filePath=_filePath; - (void)invalidateServerStatus; - (void)clearServerStatus; - (void)invalidateLocalStatus; - (void)clearLocalAndServerStatus; - (void)clearStatusForItem:(id)arg1; - (void)mergeStatusOperationResults:(id)arg1 forLocalStatusOnly:(BOOL)arg2; - (void)addNewItemsWithStatusWithResults:(id)arg1; - (id)updateLocalStatusForDirectory:(id)arg1 cancelable:(BOOL)arg2 completionBlock:(id)arg3; - (id)updateLocalStatusForDirectory:(id)arg1 completionBlock:(id)arg2; - (void)setBatchedUpdateLocalStatusForDirectory:(id)arg1; - (void)setState:(unsigned long long)arg1; - (void)emptyBatchedUpdateLocalStatus; - (id)updateServerStatusForDirectory:(id)arg1 cancelable:(BOOL)arg2 completionBlock:(id)arg3; - (id)updateServerStatusForDirectory:(id)arg1 completionBlock:(id)arg2; @property(readonly) NSArray *itemsWithStatus; // @synthesize itemsWithStatus=_itemsWithStatus; - (void)invalidateCurrentBranch; - (id)switchToBranch:(id)arg1 completionBlock:(id)arg2; - (id)currentBranchWithCompletionBlock:(id)arg1; - (id)branchesWithCompletionBlock:(id)arg1; - (void)endObservingReachability; - (void)startObservingReachability; - (BOOL)connected; - (id)itemForFilePath:(id)arg1; - (BOOL)containsItemAtLocation:(id)arg1; - (BOOL)containsItemAtFilePath:(id)arg1; - (id)subclass_createRootNode; - (id)description; - (id)ideModelObjectTypeIdentifier; - (BOOL)isSameAsSourceTreeAtLocation:(id)arg1; - (BOOL)isEqual:(id)arg1; - (unsigned long long)hash; @property(readonly) IDESourceControlBranch *currentBranch; // @synthesize currentBranch=_currentBranch; - (void)_setRepository:(id)arg1; - (void)setLocation:(id)arg1; - (void)invalidate; - (id)initWithDictionary:(id)arg1 repository:(id)arg2 sourceControlExtension:(id)arg3 sourceControlManager:(id)arg4; - (id)initWithLocation:(id)arg1 sourceControlManager:(id)arg2; - (id)_initWithLocation:(id)arg1 sourceControlManager:(id)arg2; @end @interface IDESourceControlWorkingTreeGroup : IDESourceControlTreeGroup { DVTFilePath *_filePath; NSMutableDictionary *_statusForKeyDictionary; BOOL _edited; } + (BOOL)automaticallyNotifiesObserversOfConflictStateForUpdateOrMerge; + (BOOL)automaticallyNotifiesObserversOfSourceControlServerStatus; + (BOOL)automaticallyNotifiesObserversOfSourceControlLocalStatus; @property(readonly) DVTFilePath *filePath; // @synthesize filePath=_filePath; - (int)aggregateSourceControlServerStatus; - (int)aggregateSourceControlLocalStatus; - (void)setSourceControlStatus:(int)arg1 forKey:(id)arg2; - (int)sourceControlStatusForKey:(id)arg1; - (void)setConflictStateForUpdateOrMerge:(unsigned long long)arg1; - (void)setSourceControlServerStatus:(int)arg1; - (void)setSourceControlLocalStatus:(int)arg1; - (id)blameEntriesForRevisionNumber:(id)arg1 completionBlock:(id)arg2; - (id)temporaryFolderForBranchName:(id)arg1 revisionNumber:(id)arg2 completionBlock:(id)arg3; - (id)currentRevisionWithCompletionBlock:(id)arg1; - (void)computeChildrenIfNeeded; @property BOOL edited; // @synthesize edited=_edited; - (id)ideModelObjectTypeIdentifier; - (void)repositoryURLStringAtBranch:(id)arg1 completionBlock:(id)arg2; - (id)repositoryURLString; - (BOOL)isEqual:(id)arg1; - (unsigned long long)hash; - (void)invalidate; - (id)initWithFilePath:(id)arg1; @end @interface IDESourceControlWorkingTreeItem : IDESourceControlTreeItem { DVTFilePath *_filePath; NSMutableDictionary *_statusForKeyDictionary; BOOL _edited; } + (BOOL)automaticallyNotifiesObserversOfConflictStateForUpdateOrMerge; + (BOOL)automaticallyNotifiesObserversOfSourceControlServerStatus; + (BOOL)automaticallyNotifiesObserversOfSourceControlLocalStatus; @property(readonly) DVTFilePath *filePath; // @synthesize filePath=_filePath; - (void)setSourceControlStatus:(int)arg1 forKey:(id)arg2; - (int)sourceControlStatusForKey:(id)arg1; - (id)blameEntriesForRevisionNumber:(id)arg1 completionBlock:(id)arg2; - (id)temporaryFileForBranchName:(id)arg1 revisionNumber:(id)arg2 completionBlock:(id)arg3; - (id)currentRevisionWithCompletionBlock:(id)arg1; @property BOOL edited; // @synthesize edited=_edited; - (void)setConflictStateForUpdateOrMerge:(unsigned long long)arg1; - (void)setSourceControlServerStatus:(int)arg1; - (void)setSourceControlLocalStatus:(int)arg1; - (id)ideModelObjectTypeIdentifier; - (void)repositoryURLStringAtBranch:(id)arg1 completionBlock:(id)arg2; - (id)repositoryURLString; - (BOOL)isEqual:(id)arg1; - (unsigned long long)hash; - (void)invalidate; - (id)initWithFilePath:(id)arg1; @end @interface IDESourceControlWorkingTreeItemHolder : NSObject { NSMutableArray *_workingTreeItems; } - (unsigned long long)navigableItem_indexOfRepresentedObjectForIdentifier:(id)arg1 inRelationshipKeyPath:(id)arg2; - (id)navigableItem_identifierForRepresentedObjectAtIndex:(unsigned long long)arg1 inRelationshipKeyPath:(id)arg2; - (void)addFilePath:(id)arg1; @property(readonly) NSMutableArray *workingTreeItems; // @synthesize workingTreeItems=_workingTreeItems; @end @interface IDESourceControlWorkspaceMonitor : NSObject <DVTInvalidation> { IDESourceControlManager *_sourceControlManager; IDEContainerQuery *_query; NSMutableSet *_fileRefSet; NSDate *_startDate; NSDate *_endDate; NSMutableArray *_workingTrees; DVTDispatchLock *_workingTreesLock; NSMapTable *_workspaceRootForWorkingTreeMapTable; DVTDispatchLock *_workspaceRootMapTableLock; IDELogStore *_logStore; id <DVTObservingToken> _containerQueryMatchesObserver; struct dispatch_queue_s *_scmQueue; struct dispatch_group_s *_scmGroup; IDESourceControlRequest *_sourceControlInfoRequest; double _serverStatusUpdateInterval; NSTimer *_statusUpdateTimer; struct dispatch_source_s *_scanningTimer; DVTStackBacktrace *_invalidationBacktrace; NSString *_developerFolderPathString; BOOL _localStatusCheckingEnabled; BOOL _remoteStatusCheckingEnabled; BOOL _idleNotificationPosted; BOOL _isInvalidated; BOOL _isPerformingInitialWorkspaceScan; } + (id)keyPathsForValuesAffectingLogRecords; @property(retain) IDELogStore *logStore; // @synthesize logStore=_logStore; @property(readonly) DVTStackBacktrace *invalidationBacktrace; // @synthesize invalidationBacktrace=_invalidationBacktrace; @property BOOL isPerformingInitialWorkspaceScan; // @synthesize isPerformingInitialWorkspaceScan=_isPerformingInitialWorkspaceScan; @property(copy) NSTimer *statusUpdateTimer; // @synthesize statusUpdateTimer=_statusUpdateTimer; @property double serverStatusUpdateInterval; // @synthesize serverStatusUpdateInterval=_serverStatusUpdateInterval; @property(readonly) NSMapTable *workspaceRootForWorkingTreeMapTable; // @synthesize workspaceRootForWorkingTreeMapTable=_workspaceRootForWorkingTreeMapTable; @property __weak IDESourceControlManager *sourceControlManager; // @synthesize sourceControlManager=_sourceControlManager; - (void)updateLogsWithRequest:(id)arg1; @property(readonly) NSArray *logRecords; - (void)_findWorkingTreesForFilePath:(id)arg1; - (void)_scanFinished; - (void)_startScanTimer; - (void)forceUpdateLocalStatusForWorkingTreesWithCompletionBlock:(id)arg1; - (void)updateLocalStatusForWorkingTrees; - (void)forceUpdateServerStatusForWorkingTreesWithCompletionBlock:(id)arg1; - (void)updateServerStatusForWorkingTrees; @property BOOL remoteStatusCheckingEnabled; // @synthesize remoteStatusCheckingEnabled=_remoteStatusCheckingEnabled; - (void)endPeriodicServerStatusUpdates; - (void)beginPeriodicServerStatusUpdates; @property BOOL localStatusCheckingEnabled; // @synthesize localStatusCheckingEnabled=_localStatusCheckingEnabled; - (void)endObservingWorkingTree:(id)arg1; - (void)beginObservingWorkingTree:(id)arg1; - (id)itemsWithStatusInWorkspaceForWorkingTree:(id)arg1; - (void)evaluteWorkspaceRootForWorkingTree:(id)arg1 relativeToFilePath:(id)arg2; - (id)rootDirectoryInWorkspaceForWorkingTree:(id)arg1; - (void)_processFileRefsBatch:(id)arg1; - (void)loadSourceControlLogsForWorkspace:(id)arg1; - (void)startScanningWorkspace:(id)arg1; - (void)addWorkingTree:(id)arg1; @property(readonly) NSArray *workingTrees; // @synthesize workingTrees=_workingTrees; @property(readonly, nonatomic, getter=isValid) BOOL valid; - (void)invalidate; - (id)init; @end @interface IDESourceTrees : NSObject { } + (BOOL)stringContainsSourceTreeReference:(id)arg1; + (id)stringByExpandingSourceTreeReferencesInString:(id)arg1; + (Class)sourceTreeProviderClass; @end @interface IDESymbolicBreakpointWrapper : IDEBreakpointWrapper { } - (void)setSymbolName:(id)arg1; - (id)symbolName; @end @interface IDETaskLaunchLocalService : IDERunDeviceService { } + (id)capability; - (id)operationWorkerWithLaunchSession:(id)arg1 error:(id *)arg2; @end @interface IDETaskLauncher : IDERunOperationPathWorker { NSTask *_task; BOOL _handledAppLaunch; } @property(retain) NSTask *task; // @synthesize task=_task; - (void)applicationDidLaunch:(id)arg1; - (void)taskDidTerminate:(id)arg1; - (void)terminate; - (void)_setFinishedRunning; - (void)start; - (void)_setupPTY; @end @interface IDETaskLocalService : IDERunDeviceService { } + (id)capability; - (id)operationWorkerWithLaunchSession:(id)arg1 error:(id *)arg2; - (id)capabilitySequenceForLaunchSession:(id)arg1; @end @interface IDETest : NSObject { id <IDETestable> _testable; NSString *_identifier; NSString *_name; IDETest *_supertest; NSMutableArray *_subtests; BOOL _canHaveSubtests; } + (void)initialize; @property(readonly) BOOL canHaveSubtests; // @synthesize canHaveSubtests=_canHaveSubtests; @property(readonly) IDETest *supertest; // @synthesize supertest=_supertest; @property(readonly) NSString *name; // @synthesize name=_name; @property(readonly) NSString *identifier; // @synthesize identifier=_identifier; @property(readonly) id <IDETestable> testable; // @synthesize testable=_testable; - (unsigned long long)hash; - (BOOL)isEqual:(id)arg1; - (id)description; - (id)initWithTestable:(id)arg1 identifier:(id)arg2; // Remaining properties @property(readonly) NSMutableArray *mutableSubtests; // @dynamic mutableSubtests; @property(copy) NSArray *subtests; // @dynamic subtests; @end @interface IDETestIssueProvider : IDEIssueProvider { IDETestManager *_testManager; NSMutableArray *_testResultObservationTokens; id <DVTObservingToken> _testRunnerObserver; } + (int)providerType; @property(readonly) IDETestManager *testManager; // @synthesize testManager=_testManager; - (void)invalidate; - (id)displayNameForIssueTypeIdentifier:(id)arg1; - (id)_documentLocationForFilePath:(id)arg1 lineNumber:(id)arg2 timestamp:(id)arg3; - (id)_headingNameForTest:(id)arg1; - (void)_trackIssuesForTestRunner:(id)arg1; - (id)initWithIssueManager:(id)arg1 extension:(id)arg2; @end @interface IDETestManager : NSObject { IDEWorkspace *_workspace; NSMutableArray *_testRunners; } + (BOOL)_initializedForUserInteraction; + (id)_stringForCurrentTime; @property(readonly) IDEWorkspace *workspace; // @synthesize workspace=_workspace; @property(readonly) NSArray *testRunners; // @synthesize testRunners=_testRunners; - (id)testOperationForTestableReferences:(id)arg1 executionEnvironment:(id)arg2 buildParameters:(id)arg3 runDestination:(id)arg4 workspace:(id)arg5 error:(id *)arg6 launchParametersBlock:(id)arg7 testCallbackBlock:(void)arg8; - (void)_writeTestResultsBundleForTestRunners:(id)arg1 allTestsPassed:(char *)arg2; - (id)description; - (id)initWithWorkspace:(id)arg1; @end @interface IDETestResult : NSObject { IDETest *_test; int _status; NSDate *_date; double _duration; DVTPerformanceTestOutput *_performanceTestOutput; NSArray *_messages; } @property(readonly) NSArray *messages; // @synthesize messages=_messages; @property(readonly) DVTPerformanceTestOutput *performanceTestOutput; // @synthesize performanceTestOutput=_performanceTestOutput; @property(readonly) double duration; // @synthesize duration=_duration; @property(readonly) NSDate *date; // @synthesize date=_date; @property(readonly) int status; // @synthesize status=_status; @property(readonly) IDETest *test; // @synthesize test=_test; - (id)initWithTest:(id)arg1 status:(int)arg2 date:(id)arg3 duration:(double)arg4 performanceTestOutput:(id)arg5 messages:(id)arg6; @end @interface IDETestResultMessage : NSObject { NSString *_text; int _messageType; NSString *_filePath; NSNumber *_lineNumber; } @property(readonly) NSNumber *lineNumber; // @synthesize lineNumber=_lineNumber; @property(readonly) NSString *filePath; // @synthesize filePath=_filePath; @property(readonly) int messageType; // @synthesize messageType=_messageType; @property(readonly) NSString *text; // @synthesize text=_text; - (id)initWithText:(id)arg1 messageType:(int)arg2 filePath:(id)arg3 lineNumber:(id)arg4; @end @interface IDETestRunOperation : IDERunOperation { id _runningFinishedBlock; IDETestObserver *_testObserver; BOOL _previousOperationFinished; } + (id)keyPathsForValuesAffectingIsReady; @property(retain) IDETestObserver *testObserver; // @synthesize testObserver=_testObserver; @property BOOL previousOperationFinished; // @synthesize previousOperationFinished=_previousOperationFinished; @property(copy) id runningFinishedBlock; // @synthesize runningFinishedBlock=_runningFinishedBlock; - (void)cancel; - (BOOL)isReady; - (void)runningDidFinish; @end @interface IDETestSchemeAction : IDESchemeAction { NSMutableArray *_testableReferences; NSMutableArray *_loadingTestableReferences; NSString *_selectedDebuggerIdentifier; NSString *_selectedLauncherIdentifier; NSMutableArray *_commandLineArgumentEntries; NSMutableArray *_environmentVariableEntries; BOOL _shouldUseLaunchSchemeArgsEnv; id <DVTObservingToken> _testablesObservingToken; id <DVTObservingToken> _skippedTestsObservingToken; id <DVTObservingToken> _workspaceRunnableProductsToken; NSString *_buildConfiguration; NSArray *_hostBuildableReferences; IDESchemeBuildableReference *_testBuildableReferenceToUseForMacroExpansion; } + (id)keyPathsForValuesAffectingBuildableReferenceToUseForMacroExpansion; + (id)keyPathsForValuesAffectingTestBuildableReferences; + (BOOL)_initializedForUserInteraction; + (id)keyPathsForValuesAffectingDoesNonActionWork; + (id)keyPathsForValuesAffectingSubtitle; + (void)initialize; @property(nonatomic) BOOL shouldUseLaunchSchemeArgsEnv; // @synthesize shouldUseLaunchSchemeArgsEnv=_shouldUseLaunchSchemeArgsEnv; @property(copy) NSString *selectedLauncherIdentifier; // @synthesize selectedLauncherIdentifier=_selectedLauncherIdentifier; @property(copy) NSString *buildConfiguration; // @synthesize buildConfiguration=_buildConfiguration; - (BOOL)needsNewSchemeVersionForLocationSimulation; - (BOOL)needsNewSchemeVersionForAppDataPackages; - (void)addMacroExpansion:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addEnvironmentVariables:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addCommandLineArguments:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addTestables:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)setShouldUseLaunchSchemeArgsEnvFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)dvt_encodeRelationshipsWithXMLArchiver:(id)arg1; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (void)dvt_awakeFromXMLUnarchiver:(id)arg1; - (id)initFromXMLUnarchiver:(id)arg1 archiveVersion:(float)arg2; - (void)invalidate; - (id)_expandMacrosInString:(id)arg1; - (void)setBuildableReferenceToUseForMacroExpansion:(id)arg1; - (id)buildableReferenceToUseForMacroExpansion; @property(readonly) NSDictionary *environmentVariables; @property(readonly) NSMutableArray *mutableEnvironmentVariableEntries; // @dynamic mutableEnvironmentVariableEntries; @property(copy) NSArray *environmentVariableEntries; // @dynamic environmentVariableEntries; @property(readonly) NSArray *commandLineArguments; @property(readonly) NSMutableArray *mutableCommandLineArgumentEntries; // @dynamic mutableCommandLineArgumentEntries; @property(copy) NSArray *commandLineArgumentEntries; // @dynamic commandLineArgumentEntries; - (void)_updateTestActionBuildableToUseForMacroExpansion; @property(copy) NSString *selectedDebuggerIdentifier; // @synthesize selectedDebuggerIdentifier=_selectedDebuggerIdentifier; - (void)setRunContext:(id)arg1; @property(readonly, getter=isTestable) BOOL testable; @property(readonly) NSArray *testBuildableReferences; @property(readonly) NSArray *hostBuildableReferences; - (void)testableDidChangeHost:(id)arg1; - (id)testOperationWithTestManager:(id)arg1 executionEnvironment:(id)arg2 withBuildOperation:(id)arg3 buildParameters:(id)arg4 runDestination:(id)arg5 outError:(id *)arg6 testCallbackBlock:(id)arg7; - (BOOL)doesNonActionWork; - (id)subtitle; - (id)name; - (void)_commonInit; - (id)init; // Remaining properties @property(readonly) NSMutableArray *mutableTestableReferences; // @dynamic mutableTestableReferences; @property(copy) NSArray *testableReferences; // @dynamic testableReferences; @end @interface IDETestableReference : NSObject <DVTXMLUnarchiving> { IDESchemeBuildableReference *_buildableReference; NSArray *_skippedTests; IDEDeviceAppDataReference *_deviceAppDataReference; IDELocationScenarioReference *_locationScenarioReference; BOOL _skipped; } + (id)keyPathsForValuesAffectingScheme; + (void)initialize; @property(retain) IDELocationScenarioReference *locationScenarioReference; // @synthesize locationScenarioReference=_locationScenarioReference; @property(retain) IDEDeviceAppDataReference *deviceAppDataReference; // @synthesize deviceAppDataReference=_deviceAppDataReference; @property BOOL skipped; // @synthesize skipped=_skipped; @property(readonly) IDESchemeBuildableReference *buildableReference; // @synthesize buildableReference=_buildableReference; - (void)setSkippedFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)addLocationScenarioReference:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addDeviceAppData:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addBuildableReference:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)addSkippedTests:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)dvt_encodeRelationshipsWithXMLArchiver:(id)arg1; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (id)initFromXMLUnarchiver:(id)arg1 archiveVersion:(float)arg2; @property(retain) IDEScheme *scheme; - (void)resolveBuildableFromImport; - (id)testableName; - (id)testable; - (id)init; - (id)initWithTestable:(id)arg1 scheme:(id)arg2; // Remaining properties @property(readonly) NSMutableArray *mutableSkippedTests; // @dynamic mutableSkippedTests; @property(copy) NSArray *skippedTests; // @dynamic skippedTests; @end @interface IDETestableReferenceTestIdentifier : NSObject <DVTXMLUnarchiving> { NSString *_identifier; } @property(copy) NSString *identifier; // @synthesize identifier=_identifier; - (void)setIdentifierFromUTF8String:(char *)arg1 fromXMLUnarchiver:(id)arg2; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (id)initFromXMLUnarchiver:(id)arg1 archiveVersion:(float)arg2; @end @interface IDETestingSystem : NSObject { NSString *_name; NSString *_identifier; Class _testableClass; } + (id)testingSystems; + (id)testingSystemForIdentifier:(id)arg1; + (id)_testingSystemForExtension:(id)arg1; + (void)initialize; @property(readonly) Class testableClass; // @synthesize testableClass=_testableClass; @property(readonly) NSString *identifier; // @synthesize identifier=_identifier; @property(readonly) NSString *name; // @synthesize name=_name; - (id)description; - (id)initWithTestingSystemExtension:(id)arg1; @end @interface IDETypeIdentifier : NSObject { NSString *_stringRepresentation; NSArray *_subTypes; IDETypeIdentifier *_parentType; } + (id)typeIdentifierForStringRepresentation:(id)arg1; + (id)registerTypeIdentifierWithStringRepresentation:(id)arg1 basedOn:(id)arg2; + (id)_registerTypeIdentifierWithStringRepresentation:(id)arg1 basedOn:(id)arg2; + (id)_rootType; + (void)_registerBasicTypeIdentifiers; @property(retain) IDETypeIdentifier *parentType; // @synthesize parentType=_parentType; @property(retain) NSArray *subTypes; // @synthesize subTypes=_subTypes; @property(copy) NSString *stringRepresentation; // @synthesize stringRepresentation=_stringRepresentation; - (id)typeIdentifierLineage; - (BOOL)isEqual:(id)arg1; - (BOOL)isKindOfType:(id)arg1; - (void)addSubType:(id)arg1; - (id)description; - (id)initWithStringRepresentation:(id)arg1; @end @interface IDEUpgradeContext : NSObject { } @end @interface IDEUpgradeBlueprintContext : IDEUpgradeContext { id <IDEBlueprint> _blueprint; } @property(readonly) id <IDEBlueprint> blueprint; // @synthesize blueprint=_blueprint; - (id)description; - (id)initWithBlueprint:(id)arg1; @end @interface IDEUpgradeContainerContext : IDEUpgradeContext { IDEContainer *_container; } @property(readonly) IDEContainer *container; // @synthesize container=_container; - (id)description; - (id)initWithContainer:(id)arg1; @end @interface IDEUpgradeSchemeContext : IDEUpgradeContext { IDEScheme *_scheme; } @property(readonly) IDEScheme *scheme; // @synthesize scheme=_scheme; - (id)description; - (id)initWithScheme:(id)arg1; @end @interface IDEUpgradeTask : NSObject { NSString *_title; NSString *_subtitle; NSString *_category; IDEUpgradeContext *_context; BOOL _selected; } + (id)analyzeInScheme:(id)arg1; + (id)analyzeInContext:(id)arg1; + (id)metricLogAspect; @property BOOL selected; // @synthesize selected=_selected; @property(readonly) IDEUpgradeContext *context; // @synthesize context=_context; @property(readonly) NSString *category; // @synthesize category=_category; @property(readonly) NSString *subtitle; // @synthesize subtitle=_subtitle; @property(readonly) NSString *title; // @synthesize title=_title; - (void)_setCategory:(id)arg1; - (BOOL)upgrade; - (id)initWithTitle:(id)arg1 subtitle:(id)arg2 context:(id)arg3; @end @interface IDEVersionedFileManager : NSObject { unsigned long long _batchEditModeCounter; NSMutableSet *_workingCopiesWeHaveTouchedInBatchEditMode; DVTDispatchLock *_batchEditLock; } + (id)_errorWithUnderlyingErrors:(id)arg1 type:(int)arg2; + (id)_errorDescriptionForType:(int)arg1; + (void)_callCompletionBlockWithResult:(BOOL)arg1 error:(id)arg2 queue:(struct dispatch_queue_s *)arg3 completionBlock:(id)arg4; + (void)_delegatePerformBlock:(id)arg1; + (void)setDelegate:(id)arg1 withDispatchQueue:(struct dispatch_queue_s *)arg2; + (void)initialize; - (void)moveItemsAtFilePaths:(id)arg1 toFilePaths:(id)arg2 inContext:(id)arg3 completionBlockDispatchQueue:(struct dispatch_queue_s *)arg4 completionBlock:(id)arg5; - (void)copyItemsAtFilePaths:(id)arg1 toFilePaths:(id)arg2 completionBlockDispatchQueue:(struct dispatch_queue_s *)arg3 completionBlock:(id)arg4; - (void)addItemsAtFilePaths:(id)arg1 completionBlockDispatchQueue:(struct dispatch_queue_s *)arg2 completionBlock:(id)arg3; - (BOOL)_addItemsAtFilePaths:(id)arg1 error:(id *)arg2; - (void)removeItemsAtFilePaths:(id)arg1 moveToTrash:(BOOL)arg2 completionBlockDispatchQueue:(struct dispatch_queue_s *)arg3 completionBlock:(id)arg4; - (void)createDirectoryAtFilePath:(id)arg1 withIntermediateDirectories:(BOOL)arg2 attributes:(id)arg3 completionBlockDispatchQueue:(struct dispatch_queue_s *)arg4 completionBlock:(id)arg5; - (id)init; - (void)finalize; - (void)setupBatchEditMode:(id)arg1; - (BOOL)isInBatchEditMode; - (void)endBatchEdits; - (void)startBatchEdits; @end @interface IDEWatchpoint : IDEBreakpoint { NSString *_expression; NSString *_variableName; unsigned long long _address; NSString *_hexAddress; } + (id)_displayStringForAddress:(unsigned long long)arg1; + (id)keyPathsForValuesAffectingDisplayName; + (id)keyPathsForValuesAffectingHexAddress; @property unsigned long long address; // @synthesize address=_address; @property(readonly) NSString *variableName; // @synthesize variableName=_variableName; @property(readonly) NSString *expression; // @synthesize expression=_expression; - (id)displayName; @property(readonly) NSString *hexAddress; - (id)initWithExpression:(id)arg1 variableName:(id)arg2; @end @interface IDEWatchpointNotificationInfo : NSObject { IDEWatchpoint *_watchpoint; NSString *_watchpointID; NSString *_expression; NSString *_oldValue; NSString *_newValue; NSString *_thread; } @property(readonly) NSString *thread; // @synthesize thread=_thread; @property(readonly) NSString *newValue; // @synthesize newValue=_newValue; @property(readonly) NSString *oldValue; // @synthesize oldValue=_oldValue; @property(readonly) NSString *expression; // @synthesize expression=_expression; @property(readonly) NSString *watchpointID; // @synthesize watchpointID=_watchpointID; @property(readonly) IDEWatchpoint *watchpoint; // @synthesize watchpoint=_watchpoint; - (id)consoleOutputStyleDisplayString; - (id)titleStyleDisplayString; - (id)initWithWatchpoint:(id)arg1 watchpointID:(id)arg2 expression:(id)arg3 oldValue:(id)arg4 newValue:(id)arg5 thread:(id)arg6; @end @interface IDEXMLPackageContainer : IDEContainer <DVTXMLUnarchiverDelegate, DVTXMLUnarchiving, DVTCustomDataStoring> { IDEGroup *_unarchivingGroup; NSMutableDictionary *_unarchivingProperties; DVTDirectoryBasedCustomDataStore *_customDataStore; NSMapTable *_unsavedXMLDataForCustomDataStoreSpecifier; BOOL _hasUnhandledArchiveData; } + (id)containerDataFilePathsForFilePath:(id)arg1; + (id)xmlArchiveFileName; + (id)rootElementName; + (BOOL)supportsFilePersistence; @property(readonly) BOOL hasUnhandledArchiveData; // @synthesize hasUnhandledArchiveData=_hasUnhandledArchiveData; @property(retain) DVTDirectoryBasedCustomDataStore *customDataStore; // @synthesize customDataStore=_customDataStore; @property(readonly) float maxSupportedArchiveVersion; @property(readonly) float archiveVersion; @property(readonly) NSString *displayName; - (BOOL)supportsCustomDataForOwnership:(id)arg1; - (void)moveCustomDataWithSpecifier:(id)arg1 toSpecifier:(id)arg2 completionQueue:(id)arg3 completionBlock:(id)arg4; - (void)removeCustomDataWithSpecifier:(id)arg1 completionQueue:(id)arg2 completionBlock:(id)arg3; - (void)writeCustomData:(id)arg1 withSpecifier:(id)arg2 forceOverwrite:(BOOL)arg3 completionQueue:(id)arg4 completionBlock:(id)arg5; - (id)readCustomDataWithSpecifier:(id)arg1 error:(id *)arg2; - (id)customDataOwnershipsForGrouping:(id)arg1; - (id)customDataSpecifiersForGrouping:(id)arg1 ownership:(id)arg2; - (void)invalidate; - (void)_handleFilePathDidChange:(id)arg1; - (BOOL)writeToFilePath:(id)arg1 forceWrite:(BOOL)arg2 error:(id *)arg3; - (id)_xmlData; - (BOOL)didReadFromFilePath:(id)arg1 error:(id *)arg2; - (BOOL)willReadFromFilePath:(id)arg1 error:(id *)arg2; - (BOOL)readFromFilePath:(id)arg1 error:(id *)arg2; - (id)initFromXMLUnarchiver:(id)arg1 archiveVersion:(float)arg2; - (void)customDataStoreClosing:(id)arg1; - (id)initWithFilePath:(id)arg1 extension:(id)arg2 workspace:(id)arg3 error:(id *)arg4; - (void)_createCustomDataStore:(id)arg1; - (id)_archiveFilePathForFilePath:(id)arg1; - (void)dvt_encodeRelationshipsWithXMLArchiver:(id)arg1; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (void)dvt_addObject:(id)arg1 fromXMLUnarchiver:(id)arg2; - (void)dvt_setProperty:(id)arg1 fromUTF8String:(const char *)arg2 fromXMLUnarchiver:(id)arg3; @end @interface IDEWorkspace : IDEXMLPackageContainer <IDEClientTracking, IDEIntegrityLogDataSource> { NSString *_untitledName; IDEWorkspaceArena *_workspaceArena; DVTFilePath *_headerMapFilePath; IDEExecutionEnvironment *_executionEnvironment; IDEContainerQuery *_containerQuery; id <DVTObservingToken> _containerQueryObservingToken; NSMutableSet *_referencedContainers; DVTHashTable *_fileRefsWithContainerLoadingIssues; IDEActivityLogSection *_containerLoadingIntegrityLog; NSMutableSet *_customDataStores; IDEWorkspaceUserSettings *_userSettings; IDEWorkspaceSharedSettings *_sharedSettings; NSMapTable *_blueprintProviderObserverMap; NSMutableSet *_referencedBlueprints; NSMapTable *_testableProviderObserverMap; NSMutableSet *_referencedTestables; BOOL _initialContainerScanComplete; NSMutableArray *_referencedRunnableBuildableProducts; IDERunContextManager *_runContextManager; IDELogManager *_logManager; IDEIssueManager *_issueManager; IDEBreakpointManager *_breakpointManager; IDEBatchFindManager *_batchFindManager; IDETestManager *_testManager; IDEContainerQuery *_indexableSourceQuery; id <DVTObservingToken> _indexableSourceQueryObservingToken; IDEContainerQuery *_indexableFileQuery; id <DVTObservingToken> _indexableFileQueryObservingToken; IDEIndex *_index; IDERefactoring *_refactoring; NSMapTable *_fileRefsToResolvedFilePaths; NSMutableSet *_fileRefsToRegisterForIndexing; IDESourceControlWorkspaceMonitor *_sourceControlWorkspaceMonitor; IDEWorkspaceSnapshotManager *_snapshotManager; DVTFilePath *_wrappedXcode3ProjectPath; IDEContainer *_wrappedXcode3Project; id <DVTObservingToken> _wrappedXcode3ProjectValidObservingToken; NSHashTable *_pendingReferencedFileReferences; NSHashTable *_pendingReferencedContainers; IDEConcreteClientTracker *_clientTracker; DVTHashTable *_fileReferencesForProblem8727051; id <DVTObservingToken> _finishedLoadingObservingToken; NSDictionary *_Problem9887530_preferredStructurePaths; BOOL _simpleFilesFocused; BOOL _hasPostedIndexingRegistrationBatchNotification; BOOL _didFinishLoadingFirstStage; BOOL _finishedLoading; BOOL _pendingFileReferencesAndContainers; BOOL _didProcessFileReferencesForProblem8727051; BOOL _isCleaningBuildFolder; BOOL _indexingAndRefactoringRestartScheduled; BOOL _sourceControlStatusUpdatePending; NSHashTable *_sourceControlStatusUpdatePendingFileReferences; id _openingPerformanceMetricIdentifier; DVTStackBacktrace *_finishedLoadingBacktrace; } + (BOOL)_shouldTrackReadOnlyStatus; + (id)keyPathsForValuesAffectingRepresentingCustomDataStore; + (id)keyPathsForValuesAffectingHostOnlyXcode3Project; + (id)keyPathsForValuesAffectingRepresentingTitle; + (id)keyPathsForValuesAffectingRepresentingFilePath; + (id)keyPathsForValuesAffectingName; + (id)_workspaceFileExtension; + (id)containerTypeDisplayName; + (id)containerFileDataType; + (id)xmlArchiveFileName; + (id)rootElementName; + (id)_wrappedWorkspacePathForProjectPath:(id)arg1; + (BOOL)automaticallyNotifiesObserversOfWrappedXcode3ProjectPath; + (BOOL)_shouldLoadUISubsystems; + (BOOL)automaticallyNotifiesObserversOfFileRefsWithContainerLoadingIssues; + (void)initialize; @property BOOL isCleaningBuildFolder; // @synthesize isCleaningBuildFolder=_isCleaningBuildFolder; @property(nonatomic) BOOL finishedLoading; // @synthesize finishedLoading=_finishedLoading; @property(nonatomic) BOOL pendingFileReferencesAndContainers; // @synthesize pendingFileReferencesAndContainers=_pendingFileReferencesAndContainers; @property BOOL initialContainerScanComplete; // @synthesize initialContainerScanComplete=_initialContainerScanComplete; @property(retain) IDESourceControlWorkspaceMonitor *sourceControlWorkspaceMonitor; // @synthesize sourceControlWorkspaceMonitor=_sourceControlWorkspaceMonitor; @property(readonly) IDERefactoring *refactoring; // @synthesize refactoring=_refactoring; @property(retain) IDEIndex *index; // @synthesize index=_index; @property(retain, nonatomic) IDEWorkspaceArena *workspaceArena; // @synthesize workspaceArena=_workspaceArena; @property(readonly) DVTFilePath *wrappedXcode3ProjectPath; // @synthesize wrappedXcode3ProjectPath=_wrappedXcode3ProjectPath; - (id)buildableProductsForBaseName:(id)arg1; - (void)_updateIndexables:(id)arg1; - (void)observeValueForKeyPath:(id)arg1 ofObject:(id)arg2 change:(id)arg3 context:(void *)arg4; - (void)invalidate; - (void)initializeIndexAndRefactoring:(id)arg1; - (void)_setupSourceControlWorkspaceMonitor; - (id)tearDownIndexAndRefactoring; - (void)_restartIndexingAndRefactoring; - (void)_scheduleIndexingAndRefactoringRestart; - (void)_updateIndexableFiles:(id)arg1; - (void)_processIndexRegistrationBatch:(id)arg1; - (void)_updateIndexableSources:(id)arg1; @property(readonly) IDEContainer<DVTCustomDataStoring> *representingCustomDataStore; - (void)_updateWrappedXcode3Project; - (void)_setWrappedXcode3Project:(id)arg1; @property(readonly, getter=isSimpleFilesFocused) BOOL simpleFilesFocused; - (void)_setSimpleFilesFocused:(BOOL)arg1; - (void)_primitiveSetSimpleFilesFocused:(BOOL)arg1; - (void)setSimpleFilesFocused:(BOOL)arg1; @property(readonly) BOOL hostsOnlyXcode3Project; @property(readonly) NSString *representingTitle; @property(readonly) DVTFilePath *representingFilePath; @property(readonly) IDEExecutionEnvironment *executionEnvironment; - (void)_setupExecutionEnvironment; - (float)maxSupportedArchiveVersion; - (float)archiveVersion; - (id)displayName; @property(readonly) NSString *name; @property(readonly) IDEWorkspaceSharedSettings *sharedSettings; @property(readonly) IDEWorkspaceUserSettings *userSettings; @property(readonly) IDETestManager *testManager; // @dynamic testManager; @property(readonly) IDEBatchFindManager *batchFindManager; @property(retain) IDEWorkspaceSnapshotManager *snapshotManager; // @synthesize snapshotManager=_snapshotManager; @property(readonly) IDEBreakpointManager *breakpointManager; // @dynamic breakpointManager; @property(readonly) IDEIssueManager *issueManager; // @synthesize issueManager=_issueManager; - (void)_setupIssueManagerIfNeeded; @property(readonly) IDELogManager *logManager; // @synthesize logManager=_logManager; - (void)_setupLogManagerIfNeeded; @property(readonly) IDERunContextManager *runContextManager; - (void)_setupRunContextManager; @property(readonly) NSSet *customDataStores; @property(readonly) NSSet *referencedRunnableBuildableProducts; @property(readonly) NSSet *referencedTestables; @property(readonly) NSSet *referencedTestableProviders; @property(readonly) NSSet *referencedBlueprints; @property(readonly) NSSet *referencedBlueprintProviders; @property(readonly) NSSet *referencedContainers; - (void)_referencedContainersDidUpdate; - (void)invokeChangingValueForKey:(id)arg1 fromSet:(id)arg2 toSet:(id)arg3 block:(id)arg4; - (void)_referencedTestablesOfProvider:(id)arg1 didChange:(id)arg2; - (void)_referencedBlueprintsDidUpdateForProvider:(id)arg1; - (void)_setupContainerQueries; - (id)_Problem9887530_preferredStructurePathForContainerAtPath:(id)arg1; - (id)_Problem9887530_preferredStructurePaths; - (id)_Problem9887530_preferredStructurePathsForContainerToContainerFileReferences:(id)arg1; - (id)_Problem9887530_wrappedContainerFileReferences:(id)arg1 forPath:(id)arg2; - (void)_processFileReferencesForProblem8727051; - (void)_addFileReferenceForProblem8727051:(id)arg1; - (void)cancelTrackedClients; - (id)clientsNotSupportingCancellation; - (id)clientsRequiringCancellationPrompt; - (id)registerClientWithName:(id)arg1; - (id)registerClientWithName:(id)arg1 promptForCancellation:(BOOL)arg2 cancellationBlock:(id)arg3; @property(readonly) IDEConcreteClientTracker *clientTracker; - (BOOL)setContainerFilePath:(id)arg1 error:(id *)arg2; - (BOOL)_setContainerFilePath:(id)arg1 upgradeToWorkspace:(BOOL)arg2 error:(id *)arg3; - (void)_changeContainerFilePath:(id)arg1 inContext:(id)arg2 upgradeToWorkspace:(BOOL)arg3; - (void)_changeContainerFilePath:(id)arg1 inContext:(id)arg2; - (BOOL)_configureWrappedWorkspaceWithError:(id *)arg1; - (id)_wrappingContainerPath; - (void)_setWrappedXcode3ProjectPath:(id)arg1; - (id)initWithFilePath:(id)arg1 extension:(id)arg2 workspace:(id)arg3 error:(id *)arg4; - (void)_buildProductsLocationDidChange; - (void)_containerDidLoad; - (void)_checkIfHasFinishedLoading; - (void)_finishLoadingAsynchronously:(BOOL)arg1 shouldUpgradeFromSimpleFilesFocused:(BOOL)arg2; - (void)_setupWorkspaceArenaIfNeeded; - (void)_unregisterFileReferenceForSourceControlStatusUpdate:(id)arg1; - (void)_registerFileReferenceForSourceControlStatusUpdate:(id)arg1; - (void)_updateSourceControlStatusIfNeeded; - (void)_scheduleUpdateSourceControlStatusIfNeededTimer; - (void)_invalidateUpdateSourceControlStatusIfNeededTimer; @property(readonly) IDEActivityLogSection *integrityLog; - (void)analyzeModelIntegrity; - (void)_setFileRefsWithContainerLoadingIssues:(id)arg1; - (void)_handleContainerResolutionFailureForFileReference:(id)arg1; - (void)_clearPendingFileReferencesAndContainerLoadingTokens; - (void)_removePendingReferencedContainerPath:(id)arg1; - (void)_addPendingReferencedContainerPath:(id)arg1; - (void)_removePendingReferencedFileReference:(id)arg1; - (void)_addPendingReferencedFileReference:(id)arg1; @property(retain) id _applicationDelegate; // @dynamic _applicationDelegate; @property(retain) id <IDEWorkspaceDelegate> workspaceDelegate; - (id)_openingPerformanceMetricIdentifier; - (void)dvt_encodeRelationshipsWithXMLArchiver:(id)arg1; - (void)dvt_encodeAttributesWithXMLArchiver:(id)arg1; - (void)insertInSdefSupport_symbolicBreakpoints:(id)arg1 atIndex:(unsigned long long)arg2; - (void)insertInSdefSupport_fileBreakpoints:(id)arg1 atIndex:(unsigned long long)arg2; - (void)insertInSdefSupport_breakpoints:(id)arg1 atIndex:(unsigned long long)arg2; - (id)sdefSupport_newXcode3GroupWithProperties:(id)arg1; - (id)sdefSupport_newXcode3FileReferenceWithProperties:(id)arg1; - (id)sdefSupport_newSymbolicBreakpointWithProperties:(id)arg1; - (id)sdefSupport_newRunContextWithProperties:(id)arg1; - (id)sdefSupport_newProjectForDocument:(id)arg1 withContentsValue:(id)arg2 andProperties:(id)arg3; - (id)sdefSupport_newItemReferenceWithProperties:(id)arg1; - (id)sdefSupport_newGroupWithProperties:(id)arg1; - (id)sdefSupport_newFileReferenceWithProperties:(id)arg1; - (id)sdefSupport_newFileBreakpointWithProperties:(id)arg1; - (id)sdefSupport_newBuildMessagesWithProperties:(id)arg1; - (id)sdefSupport_newBreakpointWithProperties:(id)arg1; - (id)newScriptingObjectOfClass:(Class)arg1 forValueForKey:(id)arg2 withContentsValue:(id)arg3 properties:(id)arg4; - (id)sdefSupport_symbolicBreakpointsForDocument:(id)arg1; - (id)sdefSupport_fileBreakpointsForDocument:(id)arg1; - (id)sdefSupport_breakpointsForDocument:(id)arg1; - (void)setSdefSupport_buildFolderName:(id)arg1; - (id)sdefSupport_buildFolderName; - (id)ideModelObjectTypeIdentifier; @end @interface IDEWorkspaceArena : NSObject { IDEWorkspace *_workspace; DVTFilePath *_cachedDerivedDataLocation; DVTFilePath *_cachedBuildFolderPath; DVTFilePath *_cachedBuildProductsFolderPath; DVTFilePath *_cachedBuildIntermediatesFolderPath; NSString *_cachedWorkspaceArenaFolderName; BOOL _hasWorkspaceRelativeDerivedDataLocation; BOOL didSetUpCachedWorkspaceArenaFolderNameObservations; id _pathObservingToken; id _derivedDataNotificationToken; id _derivedDataSourceTreesNotificationToken; IDEWorkspaceArenaSnapshot *_cachedSnapshot; } + (id)defaultBuildSubdirectoryName; + (id)defaultWorkspaceRelativeDerivedDataDirLocation; + (BOOL)shouldUniqueWorkspaceFoldersInStandardDerivedDataLocation; + (id)standardWorkspaceDerivedDataLocationForWorkspace:(id)arg1; + (id)_standardDerivedDataLocationPathFragment; + (id)keyPathsForValuesAffectingWorkspaceArenaInfo; + (id)keyPathsForValuesAffectingTestResultsFolderPath; + (id)keyPathsForValuesAffectingLogFolderPath; + (id)keyPathsForValuesAffectingIndexPrecompiledHeadersFolderPath; + (id)keyPathsForValuesAffectingIndexFolderPath; + (id)buildIntermediatesFolderPathForSettings:(id)arg1 usingPlaceholderOfType:(int *)arg2; + (id)buildProductsFolderPathForSettings:(id)arg1 usingPlaceholderOfType:(int *)arg2; + (id)keyPathsForValuesAffectingPrecompiledHeadersFolderPath; + (id)keyPathsForValuesAffectingInstallingBuildFolderPath; + (id)keyPathsForValuesAffectingArchivingBuildFolderPath; + (id)keyPathsForValuesAffectingBuildIntermediatesFolderPath; + (id)keyPathsForValuesAffectingBuildProductsFolderPath; + (void)_buildResultsPathForBuildResultsType:(int)arg1 settings:(id)arg2 workspaceArena:(id)arg3 returningFilePath:(id *)arg4 orReturningPathString:(id *)arg5 withPlaceholder:(int *)arg6; + (id)_resolvedBuildFolderSettingsGivenSettings:(id)arg1; + (id)keyPathsForValuesAffectingPath; + (id)nameForWorkspaceArenaWithBaseName:(id)arg1 gristInput:(id)arg2; @property BOOL hasWorkspaceRelativeDerivedDataLocation; // @synthesize hasWorkspaceRelativeDerivedDataLocation=_hasWorkspaceRelativeDerivedDataLocation; @property(readonly) IDEWorkspace *workspace; // @synthesize workspace=_workspace; - (id)description; - (void)createWorkspaceArenaFolderIfNecessary; - (id)mutableCopyWithZone:(struct _NSZone *)arg1; - (id)copyWithZone:(struct _NSZone *)arg1; - (id)initWithWorkspace:(id)arg1; @property(readonly) IDEWorkspaceArenaInfo *workspaceArenaInfo; @property(readonly) DVTFilePath *testResultsFolderPath; @property(readonly) DVTFilePath *logFolderPath; @property(readonly) DVTFilePath *indexPrecompiledHeadersFolderPath; @property(readonly) DVTFilePath *indexFolderPath; @property(readonly) DVTFilePath *precompiledHeadersFolderPath; @property(readonly) DVTFilePath *installingBuildFolderPath; @property(readonly) DVTFilePath *archivingBuildFolderPath; @property(readonly) DVTFilePath *buildIntermediatesFolderPath; - (id)buildIntermediatesFolderPathForSettings:(id)arg1; @property(readonly) DVTFilePath *buildProductsFolderPath; - (id)buildProductsFolderPathForSettings:(id)arg1; - (id)_buildResultsPathForBuildResultsType:(int)arg1 settings:(id)arg2; @property(readonly) DVTFilePath *buildFolderPath; - (id)_buildFolderPathForSettings:(id)arg1; - (void)buildFolderSettingsDidChange:(id)arg1; - (id)presumptiveBuildFolderPathWithName:(id)arg1 baseBuildFolderLocation:(id)arg2; @property(readonly) DVTFilePath *path; - (BOOL)_shouldUniqueWorkspaceInDerivedDataForDerivedDataLocationStyle:(int)arg1 customDerivedDataLocation:(id)arg2; - (id)derivedDataLocation; - (id)workspaceArenaFolderName; @property(readonly) IDEWorkspaceArenaSnapshot *currentSnapshot; @end @interface IDEWorkspaceArenaInfo : NSObject { NSDictionary *_infoDict; DVTFilePath *_workspacePath; } + (id)workspaceArenaInfoFromFileAtPath:(id)arg1 error:(id *)arg2; + (id)workspaceArenaInfoWithWorkspacePath:(id)arg1; - (BOOL)writeToFileAtPath:(id)arg1 withRelativeWorkspacePath:(BOOL)arg2 error:(id *)arg3; @property(readonly) DVTFilePath *workspacePath; @end @interface IDEWorkspaceArenaSnapshot : NSObject { DVTFilePath *_buildProductsFolderPath; DVTFilePath *_buildIntermediatesFolderPath; DVTFilePath *_precompiledHeadersFolderPath; DVTFilePath *_indexFolderPath; DVTFilePath *_indexPrecompiledHeadersFolderPath; DVTFilePath *_logFolderPath; unsigned long long _hash; } + (id)workspaceArenaSnapshotForWorkspaceArena:(id)arg1; @property(readonly) DVTFilePath *logFolderPath; // @synthesize logFolderPath=_logFolderPath; @property(readonly) DVTFilePath *indexPrecompiledHeadersFolderPath; // @synthesize indexPrecompiledHeadersFolderPath=_indexPrecompiledHeadersFolderPath; @property(readonly) DVTFilePath *indexFolderPath; // @synthesize indexFolderPath=_indexFolderPath; @property(readonly) DVTFilePath *precompiledHeadersFolderPath; // @synthesize precompiledHeadersFolderPath=_precompiledHeadersFolderPath; @property(readonly) DVTFilePath *buildIntermediatesFolderPath; // @synthesize buildIntermediatesFolderPath=_buildIntermediatesFolderPath; @property(readonly) DVTFilePath *buildProductsFolderPath; // @synthesize buildProductsFolderPath=_buildProductsFolderPath; - (id)copy; - (unsigned long long)hash; - (BOOL)isEqual:(id)arg1; @end @interface IDEXMLPackageContainerCore : IDEContainerCore <IDEXMLPackageContainerCore> { } - (BOOL)writeToFile:(id)arg1 error:(id *)arg2; - (id)initWithContentsOfFile:(id)arg1 error:(id *)arg2; // Remaining properties @property(readonly) DVTStackBacktrace *invalidationBacktrace; @property(readonly, nonatomic, getter=isValid) BOOL valid; @end @interface IDEWorkspaceCore : IDEXMLPackageContainerCore <IDEContainerCore> { } // Remaining properties @property(readonly) DVTStackBacktrace *invalidationBacktrace; @property(readonly, nonatomic, getter=isValid) BOOL valid; @end @interface IDEWorkspaceIntegrityIssueProvider : IDEIssueProvider { id _modelObjectDidChangeObserver; id <DVTObservingToken> _referencedContainersObserverToken; NSMapTable *_referencedContainersToIssueObserverTokensMapTable; NSMapTable *_referencedContainersToProviderContextsMapTable; id <DVTObservingToken> _blueprintsObserverToken; NSMapTable *_blueprintsToIssueObserverTokensMapTable; NSMapTable *_blueprintsToProviderContextsMapTable; } + (int)providerType; + (void)initialize; - (id)ideModelObjectTypeIdentifier; - (id)displayNameForIssueTypeIdentifier:(id)arg1; - (void)_blueprintsDidChange; - (void)_referencedContainersDidChange; - (id)_integrityIssuesForDataSource:(id)arg1; - (id)_issueForMessage:(id)arg1; - (void)invalidate; - (id)initWithIssueManager:(id)arg1 extension:(id)arg2; @end @interface IDEWorkspaceIntegrityIssueProviderContext : NSObject { IDEIssueProvider *_issueProvider; id <IDEIntegrityLogDataSource> _dataSource; unsigned long long _hash; } @property(readonly) id <IDEIntegrityLogDataSource> dataSource; // @synthesize dataSource=_dataSource; @property(readonly) IDEIssueProvider *issueProvider; // @synthesize issueProvider=_issueProvider; - (id)description; - (unsigned long long)hash; - (BOOL)isEqual:(id)arg1; - (id)initWithIssueManager:(id)arg1 dataSource:(id)arg2; @end @interface IDEWorkspaceSettings : NSObject { IDEWorkspace *_workspace; NSMutableDictionary *_workspaceSettings; BOOL _loadedExistingSettings; } @property(readonly) BOOL loadedExistingSettings; // @synthesize loadedExistingSettings=_loadedExistingSettings; @property(readonly) IDEWorkspace *workspace; // @synthesize workspace=_workspace; - (void)loadSettings; - (void)saveSettings; - (id)customDataSpecifier; - (id)settingsOwnership; - (void)setBool:(BOOL)arg1 forKey:(id)arg2; - (void)setInteger:(long long)arg1 forKey:(id)arg2; - (void)setString:(id)arg1 forKey:(id)arg2; - (BOOL)boolForKey:(id)arg1; - (long long)integerForKey:(id)arg1; - (id)stringForKey:(id)arg1; - (void)removeObjectForKey:(id)arg1; - (void)setObject:(id)arg1 forKey:(id)arg2; - (id)objectForKey:(id)arg1; - (id)initWithWorkspace:(id)arg1; @end @interface IDEWorkspaceSharedSettings : IDEWorkspaceSettings { } @property BOOL autocreateContextsIfNeeded; - (id)settingsOwnership; @end @interface IDEWorkspaceSnapshotManager : NSObject { IDESnapshotsManager *_snapshotsManager; DVTPerformanceMetric *_metric; IDEWorkspace *_workspace; DVTFilePath *_repositoryPath; BOOL _userIntentToSnapshot; NSString *_currentOperationName; id <IDESnapshotConfirmationDelegate> _confirmationDelegate; struct dispatch_queue_s *_snapshotManagerQueue; NSDictionary *_localizedStrings; } @property(retain) id <IDESnapshotConfirmationDelegate> confirmationDelegate; // @synthesize confirmationDelegate=_confirmationDelegate; @property(copy) NSString *currentOperationName; // @synthesize currentOperationName=_currentOperationName; @property(readonly) IDEWorkspace *workspace; // @synthesize workspace=_workspace; - (void)createSnapshotWithType:(int)arg1 name:(id)arg2 description:(id)arg3 origin:(id)arg4 completionBlock:(id)arg5; - (void)createAutomaticSnapshotBefore:(id)arg1 generatedBy:(id)arg2 type:(int)arg3 completionBlock:(id)arg4; - (BOOL)_shouldCreateSnapshotWithType:(int)arg1 error:(id *)arg2; @property(retain) DVTFilePath *repositoryPath; // @synthesize repositoryPath=_repositoryPath; - (void)_snapshotsSettingsDidChange:(id)arg1; - (id)_localizedStringForKey:(id)arg1; - (void)_generateLocalizedStrings; - (void)finalize; - (id)initWithWorkspace:(id)arg1; @end @interface IDEWorkspaceUserSettings : IDEWorkspaceSettings { } + (BOOL)automaticallyNotifiesObserversForIssueFilterStyle; + (BOOL)automaticallyNotifiesObserversForLiveSourceIssuesEnabled; + (BOOL)automaticallyNotifiesObserversForHasAskedToTakeAutomaticSnapshotBeforeSignificantChanges; + (BOOL)automaticallyNotifiesObserversForTakeSnapshotsBeforeSignificantChanges; + (BOOL)automaticallyNotifiesObserversForSnapshotCustomLocation; + (BOOL)automaticallyNotifiesObserversForSnapshotLocationStyle; + (BOOL)automaticallyNotifiesObserversForCustomBuildIntermediatesPath; + (BOOL)automaticallyNotifiesObserversForCustomBuildProductsPath; + (BOOL)automaticallyNotifiesObserversForSharedBuildFolderName; + (BOOL)automaticallyNotifiesObserversForCustomBuildLocationType; + (BOOL)automaticallyNotifiesObserversForBuildLocationStyle; + (BOOL)automaticallyNotifiesObserversForDerivedDataCustomLocation; + (BOOL)automaticallyNotifiesObserversForDerivedDataLocationStyle; - (void)loadSettings; - (void)saveSettings; @property int issueFilterStyle; @property BOOL liveSourceIssuesEnabled; @property BOOL hasAskedToTakeAutomaticSnapshotBeforeSignificantChanges; @property BOOL takeSnapshotsBeforeSignificantChanges; @property(retain) NSString *snapshotCustomLocation; @property int snapshotLocationStyle; @property(retain) NSString *customBuildIntermediatesPath; @property(retain) NSString *customBuildProductsPath; @property(retain) NSString *sharedBuildFolderName; @property int customBuildLocationType; @property int buildLocationStyle; @property(retain) NSString *derivedDataCustomLocation; @property int derivedDataLocationStyle; - (id)settingsOwnership; @end @interface NSFileManager (IDESourceControlUtilities) - (BOOL)idescm_fileExistsAtFilePathCaseSensitive:(id)arg1; @end @interface NSNumber (IDESourceControlAdditions) - (int)ideSourceControlStatusValue; @end @interface NSObject (IDEModelObjectTypeIdentification) - (id)ideModelObjectTypeIdentifier; @end @interface NSString (IDEIndexAdditions) - (id)ideIndex_resolvedFilePath; - (id)ideIndex_stringByResolvingSymlinksInPath; - (id)ideIndex_firstNonPrefixString; - (id)ideIndex_normalizedFoldedString; @end @interface _IDEDeferredInitializationInvocation : NSObject { Class _initializerClass; int _options; DVTExtension *_extension; } - (void)invokeWithFailureHandler:(id)arg1; - (id)initWithInitalizerClass:(Class)arg1 options:(int)arg2 extension:(id)arg3; @end @interface _IDEFolderRootGroup : IDEGroup { } - (BOOL)subitemsAreEditable; @end @interface _IDEFoundationPrivateClassForFindingBundle : NSObject { } @end @interface _IDEIssueProvisionInfo : NSObject { id <IDEBlueprint> _blueprint; IDEContainer *_container; NSMutableArray *_issues; DVTMapTable *_issueToGroupingObjectsMap; IDEIssueProviderSession *_session; } @property(readonly) NSMutableArray *_mutableIssues; // @synthesize _mutableIssues=_issues; @property(readonly) IDEIssueProviderSession *session; // @synthesize session=_session; @property(copy) DVTMapTable *issueToGroupingObjectsMap; // @synthesize issueToGroupingObjectsMap=_issueToGroupingObjectsMap; @property(readonly) IDEContainer *container; // @synthesize container=_container; @property(readonly) id <IDEBlueprint> blueprint; // @synthesize blueprint=_blueprint; - (void)removeIssues:(id)arg1; - (void)addIssues:(id)arg1; @property(readonly) NSArray *issues; @property(readonly) IDEIssueProvider *issueProvider; - (id)initWithBlueprint:(id)arg1 container:(id)arg2 issues:(id)arg3 session:(id)arg4; @end @interface _IDELegacyUserDefaultsImporter : NSObject <IDEInitialization> { } + (BOOL)ide_initializeWithOptions:(int)arg1 error:(id *)arg2; @end @interface _IDEOCUnitTestRecord : NSObject { IDETest *_test; NSMutableArray *_outputMessages; int _status; NSDate *_startDate; double _duration; DVTPerformanceTestOutput *_performanceTestOutput; } + (void)initialize; @property(copy) DVTPerformanceTestOutput *performanceTestOutput; // @synthesize performanceTestOutput=_performanceTestOutput; @property double duration; // @synthesize duration=_duration; @property(copy) NSDate *startDate; // @synthesize startDate=_startDate; @property int status; // @synthesize status=_status; @property(readonly) IDETest *test; // @synthesize test=_test; @property(readonly) IDETestResult *result; - (id)initWithTest:(id)arg1; // Remaining properties @property(readonly) NSMutableArray *mutableOutputMessages; // @dynamic mutableOutputMessages; @property(copy) NSArray *outputMessages; // @dynamic outputMessages; @end
139,451
5,166
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // snippet-start:[sns.java.publish_large_file] import com.amazon.sqs.javamessaging.AmazonSQSExtendedClient; import com.amazon.sqs.javamessaging.ExtendedClientConfiguration; import com.amazonaws.regions.Region; import com.amazonaws.regions.Regions; import com.amazonaws.services.s3.AmazonS3; import com.amazonaws.services.s3.AmazonS3ClientBuilder; import com.amazonaws.services.sns.AmazonSNS; import com.amazonaws.services.sns.AmazonSNSClientBuilder; import com.amazonaws.services.sns.model.CreateTopicRequest; import com.amazonaws.services.sns.model.PublishRequest; import com.amazonaws.services.sns.model.SetSubscriptionAttributesRequest; import com.amazonaws.services.sns.util.Topics; import com.amazonaws.services.sqs.AmazonSQS; import com.amazonaws.services.sqs.AmazonSQSClientBuilder; import com.amazonaws.services.sqs.model.CreateQueueRequest; import com.amazonaws.services.sqs.model.ReceiveMessageResult; import software.amazon.sns.AmazonSNSExtendedClient; import software.amazon.sns.SNSExtendedClientConfiguration; public class Example { public static void main(String[] args) { final String BUCKET_NAME = "extended-client-bucket"; final String TOPIC_NAME = "extended-client-topic"; final String QUEUE_NAME = "extended-client-queue"; final Regions region = Regions.DEFAULT_REGION; //Message threshold controls the maximum message size that will be allowed to be published //through SNS using the extended client. Payload of messages exceeding this value will be stored in //S3. The default value of this parameter is 256 KB which is the maximum message size in SNS (and SQS). final int EXTENDED_STORAGE_MESSAGE_SIZE_THRESHOLD = 32; //Initialize SNS, SQS and S3 clients final AmazonSNS snsClient = AmazonSNSClientBuilder.standard().withRegion(region).build(); final AmazonSQS sqsClient = AmazonSQSClientBuilder.standard().withRegion(region).build(); final AmazonS3 s3Client = AmazonS3ClientBuilder.standard().withRegion(region).build(); //Create bucket, topic, queue and subscription s3Client.createBucket(BUCKET_NAME); final String topicArn = snsClient.createTopic( new CreateTopicRequest().withName(TOPIC_NAME) ).getTopicArn(); final String queueUrl = sqsClient.createQueue( new CreateQueueRequest().withQueueName(QUEUE_NAME) ).getQueueUrl(); final String subscriptionArn = Topics.subscribeQueue( snsClient, sqsClient, topicArn, queueUrl ); //To read message content stored in S3 transparently through SQS extended client, //set the RawMessageDelivery subscription attribute to TRUE final SetSubscriptionAttributesRequest subscriptionAttributesRequest = new SetSubscriptionAttributesRequest(); subscriptionAttributesRequest.setSubscriptionArn(subscriptionArn); subscriptionAttributesRequest.setAttributeName("RawMessageDelivery"); subscriptionAttributesRequest.setAttributeValue("TRUE"); snsClient.setSubscriptionAttributes(subscriptionAttributesRequest); //Initialize SNS extended client //PayloadSizeThreshold triggers message content storage in S3 when the threshold is exceeded //To store all messages content in S3, use AlwaysThroughS3 flag final SNSExtendedClientConfiguration snsExtendedClientConfiguration = new SNSExtendedClientConfiguration() .withPayloadSupportEnabled(s3Client, BUCKET_NAME) .withPayloadSizeThreshold(EXTENDED_STORAGE_MESSAGE_SIZE_THRESHOLD); final AmazonSNSExtendedClient snsExtendedClient = new AmazonSNSExtendedClient(snsClient, snsExtendedClientConfiguration); //Publish message via SNS with storage in S3 final String message = "This message is stored in S3 as it exceeds the threshold of 32 bytes set above."; snsExtendedClient.publish(topicArn, message); //Initialize SQS extended client final ExtendedClientConfiguration sqsExtendedClientConfiguration = new ExtendedClientConfiguration() .withPayloadSupportEnabled(s3Client, BUCKET_NAME); final AmazonSQSExtendedClient sqsExtendedClient = new AmazonSQSExtendedClient(sqsClient, sqsExtendedClientConfiguration); //Read the message from the queue final ReceiveMessageResult result = sqsExtendedClient.receiveMessage(queueUrl); System.out.println("Received message is " + result.getMessages().get(0).getBody()); } } // snippet-end:[sns.java.publish_large_file]
1,603
374
// 8859-5, to Unicode table // Derived from the tables available at unicode.org static uint16_t iso8859_5[] = { 0x00, 0x0000, // NULL 0x01, 0x0001, // START OF HEADING 0x02, 0x0002, // START OF TEXT 0x03, 0x0003, // END OF TEXT 0x04, 0x0004, // END OF TRANSMISSION 0x05, 0x0005, // ENQUIRY 0x06, 0x0006, // ACKNOWLEDGE 0x07, 0x0007, // BELL 0x08, 0x0008, // BACKSPACE 0x09, 0x0009, // HORIZONTAL TABULATION 0x0A, 0x000A, // LINE FEED 0x0B, 0x000B, // VERTICAL TABULATION 0x0C, 0x000C, // FORM FEED 0x0D, 0x000D, // CARRIAGE RETURN 0x0E, 0x000E, // SHIFT OUT 0x0F, 0x000F, // SHIFT IN 0x10, 0x0010, // DATA LINK ESCAPE 0x11, 0x0011, // DEVICE CONTROL ONE 0x12, 0x0012, // DEVICE CONTROL TWO 0x13, 0x0013, // DEVICE CONTROL THREE 0x14, 0x0014, // DEVICE CONTROL FOUR 0x15, 0x0015, // NEGATIVE ACKNOWLEDGE 0x16, 0x0016, // SYNCHRONOUS IDLE 0x17, 0x0017, // END OF TRANSMISSION BLOCK 0x18, 0x0018, // CANCEL 0x19, 0x0019, // END OF MEDIUM 0x1A, 0x001A, // SUBSTITUTE 0x1B, 0x001B, // ESCAPE 0x1C, 0x001C, // FILE SEPARATOR 0x1D, 0x001D, // GROUP SEPARATOR 0x1E, 0x001E, // RECORD SEPARATOR 0x1F, 0x001F, // UNIT SEPARATOR 0x20, 0x0020, // SPACE 0x21, 0x0021, // EXCLAMATION MARK 0x22, 0x0022, // QUOTATION MARK 0x23, 0x0023, // NUMBER SIGN 0x24, 0x0024, // DOLLAR SIGN 0x25, 0x0025, // PERCENT SIGN 0x26, 0x0026, // AMPERSAND 0x27, 0x0027, // APOSTROPHE 0x28, 0x0028, // LEFT PARENTHESIS 0x29, 0x0029, // RIGHT PARENTHESIS 0x2A, 0x002A, // ASTERISK 0x2B, 0x002B, // PLUS SIGN 0x2C, 0x002C, // COMMA 0x2D, 0x002D, // HYPHEN-MINUS 0x2E, 0x002E, // FULL STOP 0x2F, 0x002F, // SOLIDUS 0x30, 0x0030, // DIGIT ZERO 0x31, 0x0031, // DIGIT ONE 0x32, 0x0032, // DIGIT TWO 0x33, 0x0033, // DIGIT THREE 0x34, 0x0034, // DIGIT FOUR 0x35, 0x0035, // DIGIT FIVE 0x36, 0x0036, // DIGIT SIX 0x37, 0x0037, // DIGIT SEVEN 0x38, 0x0038, // DIGIT EIGHT 0x39, 0x0039, // DIGIT NINE 0x3A, 0x003A, // COLON 0x3B, 0x003B, // SEMICOLON 0x3C, 0x003C, // LESS-THAN SIGN 0x3D, 0x003D, // EQUALS SIGN 0x3E, 0x003E, // GREATER-THAN SIGN 0x3F, 0x003F, // QUESTION MARK 0x40, 0x0040, // COMMERCIAL AT 0x41, 0x0041, // LATIN CAPITAL LETTER A 0x42, 0x0042, // LATIN CAPITAL LETTER B 0x43, 0x0043, // LATIN CAPITAL LETTER C 0x44, 0x0044, // LATIN CAPITAL LETTER D 0x45, 0x0045, // LATIN CAPITAL LETTER E 0x46, 0x0046, // LATIN CAPITAL LETTER F 0x47, 0x0047, // LATIN CAPITAL LETTER G 0x48, 0x0048, // LATIN CAPITAL LETTER H 0x49, 0x0049, // LATIN CAPITAL LETTER I 0x4A, 0x004A, // LATIN CAPITAL LETTER J 0x4B, 0x004B, // LATIN CAPITAL LETTER K 0x4C, 0x004C, // LATIN CAPITAL LETTER L 0x4D, 0x004D, // LATIN CAPITAL LETTER M 0x4E, 0x004E, // LATIN CAPITAL LETTER N 0x4F, 0x004F, // LATIN CAPITAL LETTER O 0x50, 0x0050, // LATIN CAPITAL LETTER P 0x51, 0x0051, // LATIN CAPITAL LETTER Q 0x52, 0x0052, // LATIN CAPITAL LETTER R 0x53, 0x0053, // LATIN CAPITAL LETTER S 0x54, 0x0054, // LATIN CAPITAL LETTER T 0x55, 0x0055, // LATIN CAPITAL LETTER U 0x56, 0x0056, // LATIN CAPITAL LETTER V 0x57, 0x0057, // LATIN CAPITAL LETTER W 0x58, 0x0058, // LATIN CAPITAL LETTER X 0x59, 0x0059, // LATIN CAPITAL LETTER Y 0x5A, 0x005A, // LATIN CAPITAL LETTER Z 0x5B, 0x005B, // LEFT SQUARE BRACKET 0x5C, 0x005C, // REVERSE SOLIDUS 0x5D, 0x005D, // RIGHT SQUARE BRACKET 0x5E, 0x005E, // CIRCUMFLEX ACCENT 0x5F, 0x005F, // LOW LINE 0x60, 0x0060, // GRAVE ACCENT 0x61, 0x0061, // LATIN SMALL LETTER A 0x62, 0x0062, // LATIN SMALL LETTER B 0x63, 0x0063, // LATIN SMALL LETTER C 0x64, 0x0064, // LATIN SMALL LETTER D 0x65, 0x0065, // LATIN SMALL LETTER E 0x66, 0x0066, // LATIN SMALL LETTER F 0x67, 0x0067, // LATIN SMALL LETTER G 0x68, 0x0068, // LATIN SMALL LETTER H 0x69, 0x0069, // LATIN SMALL LETTER I 0x6A, 0x006A, // LATIN SMALL LETTER J 0x6B, 0x006B, // LATIN SMALL LETTER K 0x6C, 0x006C, // LATIN SMALL LETTER L 0x6D, 0x006D, // LATIN SMALL LETTER M 0x6E, 0x006E, // LATIN SMALL LETTER N 0x6F, 0x006F, // LATIN SMALL LETTER O 0x70, 0x0070, // LATIN SMALL LETTER P 0x71, 0x0071, // LATIN SMALL LETTER Q 0x72, 0x0072, // LATIN SMALL LETTER R 0x73, 0x0073, // LATIN SMALL LETTER S 0x74, 0x0074, // LATIN SMALL LETTER T 0x75, 0x0075, // LATIN SMALL LETTER U 0x76, 0x0076, // LATIN SMALL LETTER V 0x77, 0x0077, // LATIN SMALL LETTER W 0x78, 0x0078, // LATIN SMALL LETTER X 0x79, 0x0079, // LATIN SMALL LETTER Y 0x7A, 0x007A, // LATIN SMALL LETTER Z 0x7B, 0x007B, // LEFT CURLY BRACKET 0x7C, 0x007C, // VERTICAL LINE 0x7D, 0x007D, // RIGHT CURLY BRACKET 0x7E, 0x007E, // TILDE 0x7F, 0x007F, // DELETE 0x80, 0x0080, // <control> 0x81, 0x0081, // <control> 0x82, 0x0082, // <control> 0x83, 0x0083, // <control> 0x84, 0x0084, // <control> 0x85, 0x0085, // <control> 0x86, 0x0086, // <control> 0x87, 0x0087, // <control> 0x88, 0x0088, // <control> 0x89, 0x0089, // <control> 0x8A, 0x008A, // <control> 0x8B, 0x008B, // <control> 0x8C, 0x008C, // <control> 0x8D, 0x008D, // <control> 0x8E, 0x008E, // <control> 0x8F, 0x008F, // <control> 0x90, 0x0090, // <control> 0x91, 0x0091, // <control> 0x92, 0x0092, // <control> 0x93, 0x0093, // <control> 0x94, 0x0094, // <control> 0x95, 0x0095, // <control> 0x96, 0x0096, // <control> 0x97, 0x0097, // <control> 0x98, 0x0098, // <control> 0x99, 0x0099, // <control> 0x9A, 0x009A, // <control> 0x9B, 0x009B, // <control> 0x9C, 0x009C, // <control> 0x9D, 0x009D, // <control> 0x9E, 0x009E, // <control> 0x9F, 0x009F, // <control> 0xA0, 0x00A0, // NO-BREAK SPACE 0xA1, 0x0401, // CYRILLIC CAPITAL LETTER IO 0xA2, 0x0402, // CYRILLIC CAPITAL LETTER DJE 0xA3, 0x0403, // CYRILLIC CAPITAL LETTER GJE 0xA4, 0x0404, // CYRILLIC CAPITAL LETTER UKRAINIAN IE 0xA5, 0x0405, // CYRILLIC CAPITAL LETTER DZE 0xA6, 0x0406, // CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I 0xA7, 0x0407, // CYRILLIC CAPITAL LETTER YI 0xA8, 0x0408, // CYRILLIC CAPITAL LETTER JE 0xA9, 0x0409, // CYRILLIC CAPITAL LETTER LJE 0xAA, 0x040A, // CYRILLIC CAPITAL LETTER NJE 0xAB, 0x040B, // CYRILLIC CAPITAL LETTER TSHE 0xAC, 0x040C, // CYRILLIC CAPITAL LETTER KJE 0xAD, 0x00AD, // SOFT HYPHEN 0xAE, 0x040E, // CYRILLIC CAPITAL LETTER SHORT U 0xAF, 0x040F, // CYRILLIC CAPITAL LETTER DZHE 0xB0, 0x0410, // CYRILLIC CAPITAL LETTER A 0xB1, 0x0411, // CYRILLIC CAPITAL LETTER BE 0xB2, 0x0412, // CYRILLIC CAPITAL LETTER VE 0xB3, 0x0413, // CYRILLIC CAPITAL LETTER GHE 0xB4, 0x0414, // CYRILLIC CAPITAL LETTER DE 0xB5, 0x0415, // CYRILLIC CAPITAL LETTER IE 0xB6, 0x0416, // CYRILLIC CAPITAL LETTER ZHE 0xB7, 0x0417, // CYRILLIC CAPITAL LETTER ZE 0xB8, 0x0418, // CYRILLIC CAPITAL LETTER I 0xB9, 0x0419, // CYRILLIC CAPITAL LETTER SHORT I 0xBA, 0x041A, // CYRILLIC CAPITAL LETTER KA 0xBB, 0x041B, // CYRILLIC CAPITAL LETTER EL 0xBC, 0x041C, // CYRILLIC CAPITAL LETTER EM 0xBD, 0x041D, // CYRILLIC CAPITAL LETTER EN 0xBE, 0x041E, // CYRILLIC CAPITAL LETTER O 0xBF, 0x041F, // CYRILLIC CAPITAL LETTER PE 0xC0, 0x0420, // CYRILLIC CAPITAL LETTER ER 0xC1, 0x0421, // CYRILLIC CAPITAL LETTER ES 0xC2, 0x0422, // CYRILLIC CAPITAL LETTER TE 0xC3, 0x0423, // CYRILLIC CAPITAL LETTER U 0xC4, 0x0424, // CYRILLIC CAPITAL LETTER EF 0xC5, 0x0425, // CYRILLIC CAPITAL LETTER HA 0xC6, 0x0426, // CYRILLIC CAPITAL LETTER TSE 0xC7, 0x0427, // CYRILLIC CAPITAL LETTER CHE 0xC8, 0x0428, // CYRILLIC CAPITAL LETTER SHA 0xC9, 0x0429, // CYRILLIC CAPITAL LETTER SHCHA 0xCA, 0x042A, // CYRILLIC CAPITAL LETTER HARD SIGN 0xCB, 0x042B, // CYRILLIC CAPITAL LETTER YERU 0xCC, 0x042C, // CYRILLIC CAPITAL LETTER SOFT SIGN 0xCD, 0x042D, // CYRILLIC CAPITAL LETTER E 0xCE, 0x042E, // CYRILLIC CAPITAL LETTER YU 0xCF, 0x042F, // CYRILLIC CAPITAL LETTER YA 0xD0, 0x0430, // CYRILLIC SMALL LETTER A 0xD1, 0x0431, // CYRILLIC SMALL LETTER BE 0xD2, 0x0432, // CYRILLIC SMALL LETTER VE 0xD3, 0x0433, // CYRILLIC SMALL LETTER GHE 0xD4, 0x0434, // CYRILLIC SMALL LETTER DE 0xD5, 0x0435, // CYRILLIC SMALL LETTER IE 0xD6, 0x0436, // CYRILLIC SMALL LETTER ZHE 0xD7, 0x0437, // CYRILLIC SMALL LETTER ZE 0xD8, 0x0438, // CYRILLIC SMALL LETTER I 0xD9, 0x0439, // CYRILLIC SMALL LETTER SHORT I 0xDA, 0x043A, // CYRILLIC SMALL LETTER KA 0xDB, 0x043B, // CYRILLIC SMALL LETTER EL 0xDC, 0x043C, // CYRILLIC SMALL LETTER EM 0xDD, 0x043D, // CYRILLIC SMALL LETTER EN 0xDE, 0x043E, // CYRILLIC SMALL LETTER O 0xDF, 0x043F, // CYRILLIC SMALL LETTER PE 0xE0, 0x0440, // CYRILLIC SMALL LETTER ER 0xE1, 0x0441, // CYRILLIC SMALL LETTER ES 0xE2, 0x0442, // CYRILLIC SMALL LETTER TE 0xE3, 0x0443, // CYRILLIC SMALL LETTER U 0xE4, 0x0444, // CYRILLIC SMALL LETTER EF 0xE5, 0x0445, // CYRILLIC SMALL LETTER HA 0xE6, 0x0446, // CYRILLIC SMALL LETTER TSE 0xE7, 0x0447, // CYRILLIC SMALL LETTER CHE 0xE8, 0x0448, // CYRILLIC SMALL LETTER SHA 0xE9, 0x0449, // CYRILLIC SMALL LETTER SHCHA 0xEA, 0x044A, // CYRILLIC SMALL LETTER HARD SIGN 0xEB, 0x044B, // CYRILLIC SMALL LETTER YERU 0xEC, 0x044C, // CYRILLIC SMALL LETTER SOFT SIGN 0xED, 0x044D, // CYRILLIC SMALL LETTER E 0xEE, 0x044E, // CYRILLIC SMALL LETTER YU 0xEF, 0x044F, // CYRILLIC SMALL LETTER YA 0xF0, 0x2116, // NUMERO SIGN 0xF1, 0x0451, // CYRILLIC SMALL LETTER IO 0xF2, 0x0452, // CYRILLIC SMALL LETTER DJE 0xF3, 0x0453, // CYRILLIC SMALL LETTER GJE 0xF4, 0x0454, // CYRILLIC SMALL LETTER UKRAINIAN IE 0xF5, 0x0455, // CYRILLIC SMALL LETTER DZE 0xF6, 0x0456, // CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I 0xF7, 0x0457, // CYRILLIC SMALL LETTER YI 0xF8, 0x0458, // CYRILLIC SMALL LETTER JE 0xF9, 0x0459, // CYRILLIC SMALL LETTER LJE 0xFA, 0x045A, // CYRILLIC SMALL LETTER NJE 0xFB, 0x045B, // CYRILLIC SMALL LETTER TSHE 0xFC, 0x045C, // CYRILLIC SMALL LETTER KJE 0xFD, 0x00A7, // SECTION SIGN 0xFE, 0x045E, // CYRILLIC SMALL LETTER SHORT U 0xFF, 0x045F, // CYRILLIC SMALL LETTER DZHE -1, -1}; NSEncodingRegistration(iso8859_5, kCFStringEncodingISOLatinCyrillic);
5,929
333
<reponame>bullheadandplato/ReactFX<gh_stars>100-1000 package org.reactfx; import java.util.Deque; import java.util.NoSuchElementException; import java.util.function.BiFunction; import java.util.function.BinaryOperator; import java.util.function.Consumer; import java.util.function.Function; import javafx.beans.value.ObservableValue; import org.reactfx.util.AccumulatorSize; import org.reactfx.util.NotificationAccumulator; /** * An event stream whose emission of events can be suspended temporarily. What * events, if any, are emitted when emission is resumed depends on the concrete * implementation. */ public interface SuspendableEventStream<T> extends EventStream<T>, Suspendable { /** * Returns an event stream that is suspended when the given * {@code condition} is {@code true} and emits normally when * {@code condition} is {@code false}. */ default EventStream<T> suspendedWhen(ObservableValue<Boolean> condition) { return new SuspendedWhenStream<>(this, condition); } } abstract class SuspendableEventStreamBase<T, A> extends SuspendableBase<Consumer<? super T>, T, A> implements ProperEventStream<T>, SuspendableEventStream<T> { protected SuspendableEventStreamBase( EventStream<T> source, NotificationAccumulator<Consumer<? super T>, T, A> pn) { super(source, pn); } } final class AccumulativeEventStream<T, A> extends SuspendableEventStreamBase<T, A> { private final Function<? super A, AccumulatorSize> size; private final Function<? super A, ? extends T> head; private final Function<? super A, ? extends A> tail; AccumulativeEventStream( EventStream<T> source, Function<? super T, ? extends A> initialTransformation, BiFunction<? super A, ? super T, ? extends A> accumulation, Function<? super A, AccumulatorSize> size, Function<? super A, ? extends T> head, Function<? super A, ? extends A> tail) { super(source, NotificationAccumulator.accumulativeStreamNotifications(size, head, tail, initialTransformation, accumulation)); this.size = size; this.head = head; this.tail = tail; } @Override protected AccumulatorSize sizeOf(A accum) { return size.apply(accum); } @Override protected T headOf(A accum) { return head.apply(accum); } @Override protected A tailOf(A accum) { return tail.apply(accum); } } /** * See {@link EventStream#pausable()} */ final class PausableEventStream<T> extends SuspendableEventStreamBase<T, Deque<T>> { PausableEventStream(EventStream<T> source) { super(source, NotificationAccumulator.queuingStreamNotifications()); } @Override protected AccumulatorSize sizeOf(Deque<T> accum) { return AccumulatorSize.fromInt(accum.size()); } @Override protected T headOf(Deque<T> accum) { return accum.getFirst(); } @Override protected Deque<T> tailOf(Deque<T> accum) { accum.removeFirst(); return accum; } } abstract class AbstractReducibleEventStream<T> extends SuspendableEventStreamBase<T, T> { protected AbstractReducibleEventStream( EventStream<T> source, NotificationAccumulator<Consumer<? super T>, T, T> pn) { super(source, pn); } @Override protected final AccumulatorSize sizeOf(T accum) { return AccumulatorSize.ONE; } @Override protected final T headOf(T accum) { return accum; } @Override protected final T tailOf(T accum) { throw new NoSuchElementException(); } } /** * See {@link EventStream#reducible(BinaryOperator)} */ final class ReducibleEventStream<T> extends AbstractReducibleEventStream<T> { public ReducibleEventStream( EventStream<T> source, BinaryOperator<T> reduction) { super(source, NotificationAccumulator.reducingStreamNotifications(reduction)); } } /** * See {@link EventStream#forgetful()} */ final class ForgetfulEventStream<T> extends AbstractReducibleEventStream<T> { ForgetfulEventStream(EventStream<T> source) { super(source, NotificationAccumulator.retainLatestStreamNotifications()); } } final class SuppressibleEventStream<T> extends SuspendableEventStreamBase<T, T> { SuppressibleEventStream(EventStream<T> source) { super(source, NotificationAccumulator.nonAccumulativeStreamNotifications()); } @Override protected AccumulatorSize sizeOf(T accum) { return AccumulatorSize.ZERO; } @Override protected T headOf(T accum) { throw new NoSuchElementException(); } @Override protected T tailOf(T accum) { throw new NoSuchElementException(); } @Override protected T initialAccumulator(T value) { return null; } // Override reduce so that it permits accumulation. @Override protected T reduce(T accum, T value) { return null; } }
1,871
2,338
//===--- RedundantFunctionPtrDereferenceCheck.cpp - clang-tidy-------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "RedundantFunctionPtrDereferenceCheck.h" #include "clang/AST/ASTContext.h" #include "clang/ASTMatchers/ASTMatchFinder.h" using namespace clang::ast_matchers; namespace clang { namespace tidy { namespace readability { void RedundantFunctionPtrDereferenceCheck::registerMatchers(MatchFinder *Finder) { Finder->addMatcher( traverse(TK_AsIs, unaryOperator(hasOperatorName("*"), has(implicitCastExpr(hasCastKind( CK_FunctionToPointerDecay)))) .bind("op")), this); } void RedundantFunctionPtrDereferenceCheck::check(const MatchFinder::MatchResult &Result) { const auto *Operator = Result.Nodes.getNodeAs<UnaryOperator>("op"); diag(Operator->getOperatorLoc(), "redundant repeated dereference of function pointer") << FixItHint::CreateRemoval(Operator->getOperatorLoc()); } } // namespace readability } // namespace tidy } // namespace clang
507
3,151
package com.rarchives.ripme.tst.ripper.rippers; import java.io.IOException; import java.net.URL; import java.util.ArrayList; import java.util.List; import com.rarchives.ripme.ripper.VideoRipper; import com.rarchives.ripme.ripper.rippers.video.PornhubRipper; import com.rarchives.ripme.ripper.rippers.video.YuvutuRipper; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; public class VideoRippersTest extends RippersTest { /** * Helper method for testing a video ripper * * @param ripper The video ripper */ private void videoTestHelper(VideoRipper ripper) { URL oldURL = ripper.getURL(); try { ripper.setup(); ripper.markAsTest(); ripper.rip(); // Video ripper testing is... weird. // If the ripper finds the URL to download the video, and it's a test, // then the ripper sets the download URL as the ripper's URL. Assertions.assertFalse(oldURL.equals(ripper.getURL()), "Failed to find download url for " + oldURL); } catch (Exception e) { Assertions.fail("Error while ripping " + ripper.getURL() + " : " + e); e.printStackTrace(); } finally { deleteDir(ripper.getWorkingDir()); } } @Test @Disabled("Test disbaled. See https://github.com/RipMeApp/ripme/issues/574") public void testTwitchVideoRipper() throws IOException { List<URL> contentURLs = new ArrayList<>(); contentURLs.add(new URL("https://clips.twitch.tv/FaithfulIncredulousPotTBCheesePull")); for (URL url : contentURLs) { // TwitchVideoRipper ripper = new TwitchVideoRipper(url); // videoTestHelper(ripper); } } @Test @Disabled("Test disabled see https://github.com/RipMeApp/ripme/issues/1095") public void testPornhubRipper() throws IOException { List<URL> contentURLs = new ArrayList<>(); contentURLs.add(new URL("https://www.pornhub.com/view_video.php?viewkey=ph5a329fa707269")); for (URL url : contentURLs) { PornhubRipper ripper = new PornhubRipper(url); videoTestHelper(ripper); } } public void testYuvutuRipper() throws IOException { List<URL> contentURLs = new ArrayList<>(); contentURLs.add(new URL("http://www.yuvutu.com/video/828499/female-reader-armpit-job/")); for (URL url : contentURLs) { YuvutuRipper ripper = new YuvutuRipper(url); videoTestHelper(ripper); } } }
1,130
2,944
/* * Copyright (C) 2015 Mobs & Geeks * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language governing permissions and * limitations under the License. */ package com.mobsandgeeks.saripaar.adapter; import android.view.View; import android.widget.RadioGroup; import com.mobsandgeeks.saripaar.exception.ConversionException; import java.lang.annotation.Annotation; /** * Adapter that returns a {@link java.lang.Boolean} value from a {@link android.widget.RadioGroup}. * * @author <NAME> {@literal <<EMAIL>>} * @since 2.0 */ public class RadioGroupBooleanAdapter implements ViewDataAdapter<RadioGroup, Boolean> { @Override public Boolean getData(RadioGroup radioGroup) throws ConversionException { return radioGroup.getCheckedRadioButtonId() != View.NO_ID; } @Override public <T extends Annotation> boolean containsOptionalValue(final RadioGroup radioGroup, final T ruleAnnotation) { return radioGroup.getCheckedRadioButtonId() == View.NO_ID; } }
443
6,098
<filename>h2o-algos/src/main/java/hex/gam/MatrixFrameUtils/GamUtils.java<gh_stars>1000+ package hex.gam.MatrixFrameUtils; import hex.Model; import hex.gam.GAMModel.GAMParameters; import hex.glm.GLMModel.GLMParameters; import hex.quantile.Quantile; import hex.quantile.QuantileModel; import water.DKV; import water.Key; import water.MemoryManager; import water.Scope; import water.fvec.Frame; import water.fvec.Vec; import water.util.ArrayUtils; import java.lang.reflect.Field; import java.util.Arrays; import java.util.Comparator; import java.util.List; import static hex.gam.GamSplines.ThinPlateRegressionUtils.calculateM; import static hex.gam.GamSplines.ThinPlateRegressionUtils.calculatem; public class GamUtils { // allocate 3D array to store various information; public static double[][][] allocate3DArrayCS(int num2DArrays, GAMParameters parms, AllocateType fileMode) { double[][][] array3D = new double[num2DArrays][][]; int gamColCount = 0; for (int frameIdx = 0; frameIdx < num2DArrays; frameIdx++) { if (parms._gam_columns_sorted[frameIdx].length == 1) { int numKnots = parms._num_knots_sorted[frameIdx]; array3D[gamColCount++] = allocate2DArray(fileMode, numKnots); } } return array3D; } public static double[][][] allocate3DArray(int num2DArrays, GAMParameters parms, AllocateType fileMode) { double[][][] array3D = new double[num2DArrays][][]; for (int frameIdx = 0; frameIdx < num2DArrays; frameIdx++) array3D[frameIdx] = allocate2DArray(fileMode, parms._num_knots_sorted[frameIdx]); return array3D; } // allocate 3D array to store various information; public static double[][][] allocate3DArrayTP(int num2DArrays, GAMParameters parms, int[] secondDim, int[] thirdDim) { double[][][] array3D = new double[num2DArrays][][]; int gamColCount = 0; int numGamCols = parms._gam_columns.length; for (int frameIdx = 0; frameIdx < numGamCols; frameIdx++) { if (parms._bs_sorted[frameIdx] == 1) { array3D[gamColCount] = MemoryManager.malloc8d(secondDim[gamColCount], thirdDim[gamColCount]); gamColCount++; } } return array3D; } // allocate 3D array to store various information; public static double[][] allocate2DArray(AllocateType fileMode, int numKnots) { double[][] array2D; switch (fileMode) { case firstOneLess: array2D = MemoryManager.malloc8d(numKnots-1, numKnots); break; case sameOrig: array2D = MemoryManager.malloc8d(numKnots, numKnots); break; case bothOneLess: array2D = MemoryManager.malloc8d(numKnots-1, numKnots-1); break; case firstTwoLess: array2D = MemoryManager.malloc8d(numKnots-2, numKnots); break; default: throw new IllegalArgumentException("fileMode can only be firstOneLess, sameOrig, bothOneLess or " + "firstTwoLess."); } return array2D; } public enum AllocateType {firstOneLess, sameOrig, bothOneLess, firstTwoLess} // special functions are performed depending on GLMType. Internal use public static Integer[] sortCoeffMags(int arrayLength, double[] coeffMags) { Integer[] indices = new Integer[arrayLength]; for (int i = 0; i < indices.length; ++i) indices[i] = i; Arrays.sort(indices, new Comparator<Integer>() { @Override public int compare(Integer o1, Integer o2) { if (coeffMags[o1] < coeffMags[o2]) return +1; if (coeffMags[o1] > coeffMags[o2]) return -1; return 0; } }); return indices; } public static boolean equalColNames(String[] name1, String[] standardN, String response_column) { boolean name1ContainsResp = ArrayUtils.contains(name1, response_column); boolean standarNContainsResp = ArrayUtils.contains(standardN, response_column); boolean equalNames = name1.length==standardN.length; if (name1ContainsResp && !standarNContainsResp) // if name1 contains response but standardN does not equalNames = name1.length==(standardN.length+1); else if (!name1ContainsResp && standarNContainsResp) // if name1 does not contain response but standardN does equalNames = (name1.length+1)==standardN.length; if (equalNames) { // number of columns are correct but with the same column names and column types? for (String name : name1) { if (name==response_column) // leave out the response columns in this comparison. Only worry about predictors continue; if (!ArrayUtils.contains(standardN, name)) return false; } return true; } else return equalNames; } public static void copy2DArray(double[][] src_array, double[][] dest_array) { int numRows = src_array.length; for (int colIdx = 0; colIdx < numRows; colIdx++) { // save zMatrix for debugging purposes or later scoring on training dataset System.arraycopy(src_array[colIdx], 0, dest_array[colIdx], 0, src_array[colIdx].length); } } public static void copy2DArray(int[][] src_array, int[][] dest_array) { int numRows = src_array.length; for (int colIdx = 0; colIdx < numRows; colIdx++) { // save zMatrix for debugging purposes or later scoring on training dataset System.arraycopy(src_array[colIdx], 0, dest_array[colIdx], 0, src_array[colIdx].length); } } public static GLMParameters copyGAMParams2GLMParams(GAMParameters parms, Frame trainData, Frame valid) { GLMParameters glmParam = new GLMParameters(); List<String> gamOnlyList = Arrays.asList( "_num_knots", "_gam_columns", "_bs", "_scale", "_train", "_saveZMatrix", "_saveGamCols", "_savePenaltyMat" ); Field[] field1 = GAMParameters.class.getDeclaredFields(); setParamField(parms, glmParam, false, field1, gamOnlyList); Field[] field2 = Model.Parameters.class.getDeclaredFields(); setParamField(parms, glmParam, true, field2, gamOnlyList); glmParam._train = trainData._key; glmParam._valid = valid==null?null:valid._key; glmParam._nfolds = 0; // always set nfolds to 0 to disable cv in GLM. It is done in GAM glmParam._fold_assignment = Model.Parameters.FoldAssignmentScheme.AUTO; glmParam._keep_cross_validation_fold_assignment = false; glmParam._keep_cross_validation_models = false; glmParam._keep_cross_validation_predictions = false; glmParam._is_cv_model = false; // disable cv in GLM. return glmParam; } public static void setParamField(Model.Parameters parms, GLMParameters glmParam, boolean superClassParams, Field[] gamFields, List<String> excludeList) { // assign relevant GAMParameter fields to GLMParameter fields Field glmField; boolean emptyExcludeList = excludeList.size() == 0; for (Field oneField : gamFields) { try { if (emptyExcludeList || !excludeList.contains(oneField.getName())) { if (superClassParams) glmField = glmParam.getClass().getSuperclass().getDeclaredField(oneField.getName()); else glmField = glmParam.getClass().getDeclaredField(oneField.getName()); glmField.set(glmParam, oneField.get(parms)); } } catch (IllegalAccessException|NoSuchFieldException e) { // suppress error printing, only cares about fields that are accessible ; } } } public static void keepFrameKeys(List<Key> keep, Key<Frame> ... keyNames) { for (Key<Frame> keyName:keyNames) { Frame loadingFrm = DKV.getGet(keyName); if (loadingFrm != null) for (Vec vec : loadingFrm.vecs()) keep.add(vec._key); } } public static void setDefaultBSType(GAMParameters parms) { parms._bs = new int[parms._gam_columns.length]; for (int index = 0; index < parms._bs.length; index++) { if (parms._gam_columns[index].length > 1) { parms._bs[index] = 1; } else { parms._bs[index] = 0; } } } public static void setThinPlateParameters(GAMParameters parms, int thinPlateNum) { int numGamCols = parms._gam_columns.length; parms._m = MemoryManager.malloc4(thinPlateNum); parms._M = MemoryManager.malloc4(thinPlateNum); int countThinPlate = 0; for (int index = 0; index < numGamCols; index++) { if (parms._bs[index] == 1) { // todo: add in bs==2 when it is supported int d = parms._gam_columns[index].length; parms._m[countThinPlate] = calculatem(d); parms._M[countThinPlate] = calculateM(d, parms._m[countThinPlate]); countThinPlate++; } } } public static void setGamPredSize(GAMParameters parms, int csOffset) { int numGamCols = parms._gam_columns.length; int tpCount = csOffset; int csCount = 0; parms._gamPredSize = MemoryManager.malloc4(numGamCols); for (int index = 0; index < numGamCols; index++) { if (parms._gam_columns[index].length == 1) { // CS parms._gamPredSize[csCount++] = 1; } else { // TP parms._gamPredSize[tpCount++] = parms._gam_columns[index].length; } } } // This method will generate knot locations by choosing them from a uniform quantile distribution of that // chosen column. public static double[] generateKnotsOneColumn(Frame gamFrame, int knotNum) { double[] knots = MemoryManager.malloc8d(knotNum); try { Scope.enter(); Frame tempFrame = new Frame(gamFrame); // make sure we have a frame key DKV.put(tempFrame); double[] prob = MemoryManager.malloc8d(knotNum); assert knotNum > 1; double stepProb = 1.0 / (knotNum - 1); for (int knotInd = 0; knotInd < knotNum; knotInd++) prob[knotInd] = knotInd * stepProb; QuantileModel.QuantileParameters parms = new QuantileModel.QuantileParameters(); parms._train = tempFrame._key; parms._probs = prob; QuantileModel qModel = new Quantile(parms).trainModel().get(); DKV.remove(tempFrame._key); Scope.track_generic(qModel); System.arraycopy(qModel._output._quantiles[0], 0, knots, 0, knotNum); } finally { Scope.exit(); } return knots; } // grad all predictors to build a smoother public static Frame prepareGamVec(int gam_column_index, GAMParameters parms, Frame fr) { final Vec weights_column = (parms._weights_column == null) ? Scope.track(Vec.makeOne(fr.numRows())) : Scope.track(fr.vec(parms._weights_column)); final Frame predictVec = new Frame(); int numPredictors = parms._gam_columns_sorted[gam_column_index].length; for (int colInd = 0; colInd < numPredictors; colInd++) predictVec.add(parms._gam_columns_sorted[gam_column_index][colInd], fr.vec(parms._gam_columns_sorted[gam_column_index][colInd])); predictVec.add("weights_column", weights_column); // add weight columns for CV support return predictVec; } public static String[] generateGamColNames(int gam_col_index, GAMParameters parms) { String[] newColNames = new String[parms._num_knots_sorted[gam_col_index]]; StringBuffer nameStub = new StringBuffer(); int numPredictors = parms._gam_columns_sorted[gam_col_index].length; for (int predInd = 0; predInd < numPredictors; predInd++) { nameStub.append(parms._gam_columns_sorted[gam_col_index][predInd]+"_"); } String stubName = nameStub.toString(); for (int knotIndex = 0; knotIndex < parms._num_knots_sorted[gam_col_index]; knotIndex++) { newColNames[knotIndex] = stubName+knotIndex; } return newColNames; } public static String[] generateGamColNamesThinPlateKnots(int gamColIndex, GAMParameters parms, int[][] polyBasisDegree, String nameStub) { int num_knots = parms._num_knots_sorted[gamColIndex]; int polyBasisSize = polyBasisDegree.length; String[] gamColNames = new String[num_knots+polyBasisSize]; for (int index = 0; index < num_knots; index++) gamColNames[index] = nameStub+index; for (int index = 0; index < polyBasisSize; index++) { gamColNames[index+num_knots] = genPolyBasisNames(parms._gam_columns_sorted[gamColIndex], polyBasisDegree[index]); } return gamColNames; } public static String genPolyBasisNames(String[] gam_columns, int[] oneBasis) { StringBuffer polyBasisName = new StringBuffer(); int numGamCols = gam_columns.length; int beforeLastIndex = numGamCols-1; for (int index = 0; index < numGamCols; index++) { polyBasisName.append(gam_columns[index]); polyBasisName.append("_"); polyBasisName.append(oneBasis[index]); if (index < beforeLastIndex) polyBasisName.append("_"); } return polyBasisName.toString(); } public static Frame buildGamFrame(GAMParameters parms, Frame train, Key<Frame>[] gamFrameKeysCenter) { Vec responseVec = train.remove(parms._response_column); Vec weightsVec = null; if (parms._weights_column != null) // move weight vector to be the last vector before response variable weightsVec = Scope.track(train.remove(parms._weights_column)); for (int colIdx = 0; colIdx < parms._gam_columns_sorted.length; colIdx++) { // append the augmented columns to _train Frame gamFrame = Scope.track(gamFrameKeysCenter[colIdx].get()); train.add(gamFrame.names(), gamFrame.removeAll()); train.remove(parms._gam_columns_sorted[colIdx]); } if (weightsVec != null) train.add(parms._weights_column, weightsVec); if (responseVec != null) train.add(parms._response_column, responseVec); return train; } public static Frame concateGamVecs(Key<Frame>[] gamFrameKeysCenter) { Frame gamVecs = new Frame(Key.make()); for (int index = 0; index < gamFrameKeysCenter.length; index++) { Frame tempCols = Scope.track(gamFrameKeysCenter[index].get()); gamVecs.add(tempCols.names(), tempCols.removeAll()); } return gamVecs; } // move CS spline smoothers to the front and TP spline smoothers to the back for arrays: // gam_columns, bs, scale, num_knots public static void sortGAMParameters(GAMParameters parms, int csNum, int tpNum) { int gamColNum = parms._gam_columns.length; int csIndex = 0; int tpIndex = csNum; parms._gam_columns_sorted = new String[gamColNum][]; parms._num_knots_sorted = MemoryManager.malloc4(gamColNum); parms._scale_sorted = MemoryManager.malloc8d(gamColNum); parms._bs_sorted = MemoryManager.malloc4(gamColNum); parms._gamPredSize = MemoryManager.malloc4(gamColNum); for (int index = 0; index < gamColNum; index++) { if (parms._bs[index] == 0) { // cubic spline parms._gam_columns_sorted[csIndex] = parms._gam_columns[index].clone(); parms._num_knots_sorted[csIndex] = parms._num_knots[index]; parms._scale_sorted[csIndex] = parms._scale[index]; parms._gamPredSize[csIndex] = parms._gam_columns_sorted[csIndex].length; parms._bs_sorted[csIndex++] = parms._bs[index]; } else { // thin plate parms._gam_columns_sorted[tpIndex] = parms._gam_columns[index].clone(); parms._num_knots_sorted[tpIndex] = parms._num_knots[index]; parms._scale_sorted[tpIndex] = parms._scale[index]; parms._gamPredSize[tpIndex] = parms._gam_columns_sorted[tpIndex].length; parms._bs_sorted[tpIndex++] = parms._bs[index]; } } } // default value of scale is 1.0 public static void setDefaultScale(GAMParameters parms) { int numGamCol = parms._gam_columns.length; parms._scale = new double[numGamCol]; for (int index = 0; index < numGamCol; index++) parms._scale[index] = 1.0; } }
6,181
360
/* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * * openGauss is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. * ------------------------------------------------------------------------- * * pg_client_logic_params.h * * IDENTIFICATION * src\common\interfaces\libpq\client_logic_common\pg_client_logic_params.h * * ------------------------------------------------------------------------- */ #ifndef PG_CLIENT_LOGIC_PARAMS_H #define PG_CLIENT_LOGIC_PARAMS_H #include "libpq-fe.h" typedef struct PGClientLogicParams { PGClientLogicParams() : new_query(NULL), new_query_size(0), new_param_values(NULL), nParams(0), adjusted_query(NULL), adjusted_query_size(0), adjusted_paramTypes(NULL), adjusted_param_values(NULL), adjusted_param_lengths(NULL), copy_sizes(NULL) {}; PGClientLogicParams(const PGClientLogicParams &other); void init(const PGClientLogicParams &other); ~PGClientLogicParams(); char *new_query; size_t new_query_size; unsigned char **new_param_values; size_t nParams; const char *adjusted_query; size_t adjusted_query_size; Oid *adjusted_paramTypes; const char **adjusted_param_values; int *adjusted_param_lengths; size_t *copy_sizes; } PGClientLogicParams; #endif /* PG_CLIENT_LOGIC_PARAMS_H */
691
1,093
/* * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.springframework.integration.jpa.config.xml; import static org.assertj.core.api.Assertions.assertThat; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.ConfigurableApplicationContext; import org.springframework.expression.common.LiteralExpression; import org.springframework.expression.spel.standard.SpelExpression; import org.springframework.integration.channel.AbstractMessageChannel; import org.springframework.integration.endpoint.SourcePollingChannelAdapter; import org.springframework.integration.jpa.core.JpaExecutor; import org.springframework.integration.jpa.core.JpaOperations; import org.springframework.integration.jpa.support.parametersource.ParameterSource; import org.springframework.integration.test.util.TestUtils; import org.springframework.test.annotation.DirtiesContext; import org.springframework.test.context.junit4.SpringRunner; /** * @author <NAME> * @author <NAME> * @author <NAME> * * @since 2.2 * */ @RunWith(SpringRunner.class) @DirtiesContext public class JpaInboundChannelAdapterParserTests { @Autowired private ConfigurableApplicationContext context; @Autowired private SourcePollingChannelAdapter jpaInboundChannelAdapter1; @Autowired private SourcePollingChannelAdapter jpaInboundChannelAdapter2; @Autowired private SourcePollingChannelAdapter jpaInboundChannelAdapter3; @Test public void testJpaInboundChannelAdapterParser() throws Exception { AbstractMessageChannel outputChannel = TestUtils.getPropertyValue(this.jpaInboundChannelAdapter1, "outputChannel", AbstractMessageChannel.class); assertThat(outputChannel.getComponentName()).isEqualTo("out"); JpaExecutor jpaExecutor = TestUtils.getPropertyValue(this.jpaInboundChannelAdapter1, "source.jpaExecutor", JpaExecutor.class); assertThat(jpaExecutor).isNotNull(); Class<?> entityClass = TestUtils.getPropertyValue(jpaExecutor, "entityClass", Class.class); assertThat(entityClass.getName()).isEqualTo("org.springframework.integration.jpa.test.entity.StudentDomain"); JpaOperations jpaOperations = TestUtils.getPropertyValue(jpaExecutor, "jpaOperations", JpaOperations.class); assertThat(jpaOperations).isNotNull(); assertThat(TestUtils.getPropertyValue(jpaExecutor, "expectSingleResult", Boolean.class)).isTrue(); ParameterSource parameterSource = this.context.getBean(ParameterSource.class); assertThat(TestUtils.getPropertyValue(jpaExecutor, "parameterSource")).isSameAs(parameterSource); } @Test public void testJpaInboundChannelAdapterParserWithMaxResults() throws Exception { AbstractMessageChannel outputChannel = TestUtils.getPropertyValue(this.jpaInboundChannelAdapter2, "outputChannel", AbstractMessageChannel.class); assertThat(outputChannel.getComponentName()).isEqualTo("out"); JpaExecutor jpaExecutor = TestUtils.getPropertyValue(this.jpaInboundChannelAdapter2, "source.jpaExecutor", JpaExecutor.class); assertThat(jpaExecutor).isNotNull(); Class<?> entityClass = TestUtils.getPropertyValue(jpaExecutor, "entityClass", Class.class); assertThat(entityClass.getName()).isEqualTo("org.springframework.integration.jpa.test.entity.StudentDomain"); JpaOperations jpaOperations = TestUtils.getPropertyValue(jpaExecutor, "jpaOperations", JpaOperations.class); assertThat(jpaOperations).isNotNull(); LiteralExpression expression = TestUtils.getPropertyValue(jpaExecutor, "maxResultsExpression", LiteralExpression.class); assertThat(expression).isNotNull(); assertThat(TestUtils.getPropertyValue(expression, "literalValue")).isEqualTo("13"); assertThat(TestUtils.getPropertyValue(jpaExecutor, "deleteAfterPoll", Boolean.class)).isTrue(); assertThat(TestUtils.getPropertyValue(jpaExecutor, "flush", Boolean.class)).isTrue(); } @Test public void testJpaInboundChannelAdapterParserWithMaxResultsExpression() throws Exception { AbstractMessageChannel outputChannel = TestUtils.getPropertyValue(this.jpaInboundChannelAdapter3, "outputChannel", AbstractMessageChannel.class); assertThat(outputChannel.getComponentName()).isEqualTo("out"); JpaExecutor jpaExecutor = TestUtils.getPropertyValue(this.jpaInboundChannelAdapter3, "source.jpaExecutor", JpaExecutor.class); assertThat(jpaExecutor).isNotNull(); Class<?> entityClass = TestUtils.getPropertyValue(jpaExecutor, "entityClass", Class.class); assertThat(entityClass.getName()).isEqualTo("org.springframework.integration.jpa.test.entity.StudentDomain"); final JpaOperations jpaOperations = TestUtils.getPropertyValue(jpaExecutor, "jpaOperations", JpaOperations.class); assertThat(jpaOperations).isNotNull(); SpelExpression expression = TestUtils.getPropertyValue(jpaExecutor, "maxResultsExpression", SpelExpression.class); assertThat(expression).isNotNull(); assertThat(TestUtils.getPropertyValue(expression, "expression")).isEqualTo("@maxNumberOfResults"); } @Test public void testJpaExecutorBeanIdNaming() throws Exception { JpaExecutor jpaExecutor1 = this.context.getBean("jpaInboundChannelAdapter1.jpaExecutor", JpaExecutor.class); JpaExecutor jpaExecutor2 = this.context.getBean("jpaInboundChannelAdapter2.jpaExecutor", JpaExecutor.class); assertThat(jpaExecutor1).isNotNull(); assertThat(jpaExecutor2).isNotNull(); assertThat(jpaExecutor2).isNotSameAs(jpaExecutor1); assertThat(this.context.getBeansOfType(JpaExecutor.class).size()).isEqualTo(5); JpaExecutor jpaExecutorWithoutId0 = this.context.getBean("org.springframework.integration.config.SourcePollingChannelAdapterFactoryBean#0.jpaExecutor", JpaExecutor.class); JpaExecutor jpaExecutorWithoutId1 = this.context.getBean("org.springframework.integration.config.SourcePollingChannelAdapterFactoryBean#1.jpaExecutor", JpaExecutor.class); assertThat(jpaExecutorWithoutId0).isNotNull(); assertThat(jpaExecutorWithoutId1).isNotNull(); assertThat(jpaExecutorWithoutId1).isNotSameAs(jpaExecutorWithoutId0); } }
2,104
7,409
<reponame>avoajaugochukwu/posthog<gh_stars>1000+ # Generated by Django 3.0.7 on 2020-09-21 14:00 import uuid from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("posthog", "0083_auto_20200826_1504"), ] operations = [ migrations.AddField( model_name="person", name="uuid", field=models.UUIDField(db_index=True, default=uuid.uuid4, editable=False), ), ]
195
736
/** * Copyright (C) 2015 Topology LP * All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ #ifndef CPPCODEC_BASE32_RFC4648 #define CPPCODEC_BASE32_RFC4648 #include "detail/codec.hpp" #include "detail/base32.hpp" namespace cppcodec { namespace detail { // RFC 4648 uses a simple alphabet: A-Z starting at index 0, then 2-7 starting at index 26. static constexpr const char base32_rfc4648_alphabet[] = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', // at index 26 '2', '3', '4', '5', '6', '7' }; static_assert(sizeof(base32_rfc4648_alphabet) == 32, "base32 alphabet must have 32 values"); class base32_rfc4648 { public: template <typename Codec> using codec_impl = stream_codec<Codec, base32_rfc4648>; static inline constexpr bool generates_padding() { return true; } static inline constexpr bool requires_padding() { return true; } static inline constexpr char padding_symbol() { return '='; } static inline constexpr char symbol(uint8_t index) { return base32_rfc4648_alphabet[index]; } static inline constexpr uint8_t index_of(char c) { return (c >= 'A' && c <= 'Z') ? (c - 'A') : (c >= '2' && c <= '7') ? (c - '2' + 26) : (c == padding_symbol()) ? 254 : (c == '\0') ? 255 // stop at end of string : (c >= 'a' && c <= 'z') ? (c - 'a') // lower-case: not expected, but accepted : throw symbol_error(c); } // RFC4648 does not specify any whitespace being allowed in base32 encodings. static inline constexpr bool should_ignore(uint8_t /*index*/) { return false; } static inline constexpr bool is_special_character(uint8_t index) { return index > 32; } static inline constexpr bool is_padding_symbol(uint8_t index) { return index == 254; } static inline constexpr bool is_eof(uint8_t index) { return index == 255; } }; } // namespace detail using base32_rfc4648 = detail::codec<detail::base32<detail::base32_rfc4648>>; } // namespace cppcodec #endif // CPPCODEC_BASE32_RFC4648
1,152
613
package nl.jqno.equalsverifier.internal.reflection; import static org.junit.jupiter.api.Assertions.*; import java.lang.reflect.Field; import nl.jqno.equalsverifier.testhelpers.types.TypeHelper.*; import org.junit.jupiter.api.Test; public class FieldAccessorTest { private static final String FIELD_NAME = "field"; @Test public void getField() throws NoSuchFieldException { ObjectContainer foo = new ObjectContainer(); Field field = foo.getClass().getDeclaredField(FIELD_NAME); FieldAccessor fieldAccessor = FieldAccessor.of(field); assertSame(field, fieldAccessor.getField()); } @Test public void getFieldType() { ObjectContainer foo = new ObjectContainer(); FieldAccessor fieldAccessor = getAccessorFor(foo, FIELD_NAME); assertEquals(Object.class, fieldAccessor.getFieldType()); } @Test public void getFieldName() { ObjectContainer foo = new ObjectContainer(); FieldAccessor fieldAccessor = getAccessorFor(foo, FIELD_NAME); assertEquals(FIELD_NAME, fieldAccessor.getFieldName()); } @Test public void isNotPrimitive() { ObjectContainer foo = new ObjectContainer(); FieldAccessor fieldAccessor = getAccessorFor(foo, FIELD_NAME); assertFalse(fieldAccessor.fieldIsPrimitive()); } @Test public void isPrimitive() { PrimitiveContainer foo = new PrimitiveContainer(); FieldAccessor fieldAccessor = getAccessorFor(foo, FIELD_NAME); assertTrue(fieldAccessor.fieldIsPrimitive()); } @Test public void isNotFinal() { ObjectContainer foo = new ObjectContainer(); FieldAccessor fieldAccessor = getAccessorFor(foo, FIELD_NAME); assertFalse(fieldAccessor.fieldIsFinal()); } @Test public void isFinal() { FinalContainer foo = new FinalContainer(); FieldAccessor fieldAccessor = getAccessorFor(foo, FIELD_NAME); assertTrue(fieldAccessor.fieldIsFinal()); } @Test public void isNotStatic() { ObjectContainer foo = new ObjectContainer(); FieldAccessor fieldAccessor = getAccessorFor(foo, FIELD_NAME); assertFalse(fieldAccessor.fieldIsStatic()); } @Test public void isStatic() { StaticContainer foo = new StaticContainer(); FieldAccessor fieldAccessor = getAccessorFor(foo, FIELD_NAME); assertTrue(fieldAccessor.fieldIsStatic()); } @Test public void isNotTransient() { ObjectContainer foo = new ObjectContainer(); FieldAccessor fieldAccessor = getAccessorFor(foo, FIELD_NAME); assertFalse(fieldAccessor.fieldIsTransient()); } @Test public void isTransient() { TransientContainer foo = new TransientContainer(); FieldAccessor fieldAccessor = getAccessorFor(foo, FIELD_NAME); assertTrue(fieldAccessor.fieldIsTransient()); } @Test public void isNotEnum() { PrimitiveContainer foo = new PrimitiveContainer(); FieldAccessor fieldAccessor = getAccessorFor(foo, FIELD_NAME); assertFalse(fieldAccessor.fieldIsEmptyOrSingleValueEnum()); } @Test public void isEnumButNotSingleValue() { EnumContainer foo = new EnumContainer(); FieldAccessor fieldAccessor = getAccessorFor(foo, "twoElementEnum"); assertFalse(fieldAccessor.fieldIsEmptyOrSingleValueEnum()); } @Test public void isSingleValueEnum() { EnumContainer foo = new EnumContainer(); FieldAccessor fieldAccessor = getAccessorFor(foo, "oneElementEnum"); assertTrue(fieldAccessor.fieldIsEmptyOrSingleValueEnum()); } @Test public void isEmptyEnum() { EnumContainer foo = new EnumContainer(); FieldAccessor fieldAccessor = getAccessorFor(foo, "emptyEnum"); assertTrue(fieldAccessor.fieldIsEmptyOrSingleValueEnum()); } @Test public void getValuePrimitive() { PrimitiveContainer foo = new PrimitiveContainer(); foo.field = 10; Object value = getValue(foo, "field"); assertEquals(10, value); } @Test public void getValueObject() { Object object = new Object(); ObjectContainer foo = new ObjectContainer(); foo.field = object; Object value = getValue(foo, FIELD_NAME); assertEquals(object, value); } @Test public void getPrivateValue() { PrivateObjectContainer foo = new PrivateObjectContainer(); getValue(foo, FIELD_NAME); } private Object getValue(Object object, String fieldName) { return getAccessorFor(object, fieldName).get(object); } private FieldAccessor getAccessorFor(Object object, String fieldName) { try { Field field = object.getClass().getDeclaredField(fieldName); return FieldAccessor.of(field); } catch (NoSuchFieldException e) { throw new IllegalArgumentException("fieldName: " + fieldName); } } }
1,891
5,133
/* * Copyright MapStruct Authors. * * Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 */ package org.mapstruct.ap.test.bugs._1707; import java.util.Set; import java.util.stream.Stream; import org.mapstruct.AfterMapping; import org.mapstruct.Mapper; import org.mapstruct.Mapping; import org.mapstruct.MappingTarget; @Mapper public abstract class Converter { public abstract Set<Target> convert(Stream<Source> source); public abstract Target[] convertArray(Stream<Source> source); @Mapping( target = "custom", ignore = true ) public abstract Target convert(Source source); @AfterMapping public void addCustomValue(@MappingTarget Set<Target> targetList) { targetList.forEach( t -> t.custom = true ); } @AfterMapping public void addCustomValue(@MappingTarget Target[] targetArray) { for ( Target target : targetArray ) { target.custom = true; } } public static final class Source { private String text; private int number; public String getText() { return text; } public void setText(String text) { this.text = text; } public int getNumber() { return number; } public void setNumber(int number) { this.number = number; } } public static class Target { private String text; private int number; private boolean custom; public String getText() { return text; } public void setText(String text) { this.text = text; } public int getNumber() { return number; } public void setNumber(int number) { this.number = number; } public boolean isCustom() { return custom; } public void setCustom(boolean custom) { this.custom = custom; } } }
836
2,151
<gh_stars>1000+ // Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "remoting/host/host_experiment_session_plugin.h" #include <memory> #include "base/bind.h" #include "remoting/base/constants.h" #include "remoting/host/host_attributes.h" #include "testing/gtest/include/gtest/gtest.h" #include "third_party/libjingle_xmpp/xmllite/xmlelement.h" using buzz::QName; using buzz::XmlElement; namespace remoting { TEST(HostExperimentSessionPluginTest, AttachAttributes) { HostExperimentSessionPlugin plugin; std::unique_ptr<XmlElement> attachments = plugin.GetNextMessage(); ASSERT_TRUE(attachments); ASSERT_EQ(attachments->Name(), QName(kChromotingXmlNamespace, "host-attributes")); ASSERT_EQ(attachments->BodyText(), GetHostAttributes()); attachments.reset(); attachments = plugin.GetNextMessage(); ASSERT_FALSE(attachments); } TEST(HostExperimentSessionPluginTest, LoadConfiguration) { std::unique_ptr<XmlElement> attachment( new XmlElement(QName(kChromotingXmlNamespace, "attachments"))); XmlElement* configuration = new XmlElement(QName(kChromotingXmlNamespace, "host-configuration")); configuration->SetBodyText("This Is A Test Configuration"); attachment->AddElement(configuration); HostExperimentSessionPlugin plugin; plugin.OnIncomingMessage(*attachment); ASSERT_TRUE(plugin.configuration_received()); ASSERT_EQ(plugin.configuration(), "This Is A Test Configuration"); } TEST(HostExperimentSessionPluginTest, IgnoreSecondConfiguration) { std::unique_ptr<XmlElement> attachment( new XmlElement(QName(kChromotingXmlNamespace, "attachments"))); XmlElement* configuration = new XmlElement(QName(kChromotingXmlNamespace, "host-configuration")); attachment->AddElement(configuration); configuration->SetBodyText("config1"); HostExperimentSessionPlugin plugin; plugin.OnIncomingMessage(*attachment); ASSERT_TRUE(plugin.configuration_received()); ASSERT_EQ(plugin.configuration(), "config1"); configuration->SetBodyText("config2"); plugin.OnIncomingMessage(*attachment); ASSERT_TRUE(plugin.configuration_received()); ASSERT_EQ(plugin.configuration(), "config1"); } } // namespace remoting
750
669
<filename>onnxruntime/core/providers/nuphar/runtime/control_flow/scan_exec_ctx.cc // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "core/providers/nuphar/runtime/control_flow/scan_exec_ctx.h" #include "core/codegen/common/common.h" #include "core/codegen/passes/utils/codegen_context.h" #include "core/codegen/passes/utils/ort_tvm_utils.h" #include "core/providers/nuphar/runtime/compute_ctx.h" #include "core/providers/nuphar/runtime/utils.h" #include "gsl/gsl" #include <tvm/tvm.h> namespace onnxruntime { namespace nuphar { void ScanExecCtx::Advance(const ControlFlowInfo* cf_info) { ORT_ENFORCE_DEBUG(current_loop_step_ < max_loop_step_); // update inputs for (size_t scan_input_idx = 0; scan_input_idx < current_input_ptrs_.size(); ++scan_input_idx) { current_input_ptrs_[scan_input_idx] = (static_cast<char*>(current_input_ptrs_[scan_input_idx]) + input_strides_[scan_input_idx]); } // update outputs for (size_t scan_output_idx = 0; scan_output_idx < current_output_ptrs_.size(); ++scan_output_idx) { current_output_ptrs_[scan_output_idx] = (static_cast<char*>(current_output_ptrs_[scan_output_idx]) + output_strides_[scan_output_idx]); } const ScanExecInfo* scan_info = Promote<ScanExecInfo>(cf_info); ORT_ENFORCE_DEBUG(nullptr != scan_info); size_t num_state_variables = gsl::narrow<size_t>(scan_info->num_state_variables); const std::vector<int>& state_to_output_indices = scan_info->state_to_output_indices; // update input and output states if (current_loop_step_ == (max_loop_step_ - 1)) { // When executed the last loop step // copy from current_state_output_ptrs to state_output_ptrs if needed for (size_t scan_state_idx = 0; scan_state_idx < num_state_variables; ++scan_state_idx) { if (current_ort_state_output_ptrs_[scan_state_idx] != ort_state_output_buffers_[scan_state_idx]) { memcpy(ort_state_output_buffers_[scan_state_idx], current_ort_state_output_ptrs_[scan_state_idx], state_bytes_size_[scan_state_idx]); } } } else if (current_loop_step_ == 0) { // When executed the first loop (current_loop_step == 0), // assign current_state_input_ptrs as current_state_output_ptrs // and current_state_output_ptrs as ort_state_output_buffers_ for (size_t scan_state_idx = 0; scan_state_idx < num_state_variables; ++scan_state_idx) { current_ort_state_input_ptrs_[scan_state_idx] = current_ort_state_output_ptrs_[scan_state_idx]; int out_idx = state_to_output_indices[scan_state_idx]; if (out_idx >= 0) { current_ort_state_output_ptrs_[scan_state_idx] = current_output_ptrs_[out_idx]; } else { current_ort_state_output_ptrs_[scan_state_idx] = ort_state_output_buffers_[scan_state_idx]; } } } else { // When current_loop_step > 0 // Swap current_ort_state_input_ptrs_[i] and current_ort_state_output_ptrs_[i] for (size_t scan_state_idx = 0; scan_state_idx < num_state_variables; ++scan_state_idx) { int scan_output_idx = state_to_output_indices[scan_state_idx]; if (scan_output_idx >= 0) { current_ort_state_input_ptrs_[scan_state_idx] = current_ort_state_output_ptrs_[scan_state_idx]; current_ort_state_output_ptrs_[scan_state_idx] = current_output_ptrs_[scan_output_idx]; } else { std::swap(current_ort_state_input_ptrs_[scan_state_idx], current_ort_state_output_ptrs_[scan_state_idx]); } } } // increase loop index ++current_loop_step_; } void ScanExecCtx::InitIteration(KernelComputeCtx* kernel_compute_ctx, const NupharFuncInfo* func_info) { FuncComputeCtx& subgraph_compute_ctx = kernel_compute_ctx->GetFuncComputeCtx(func_info); std::vector<DLTensor>& dl_tensors = subgraph_compute_ctx.dl_tensors; size_t arg_index = 0; // update func inputs for (auto ptr : current_ort_state_input_ptrs_) { dl_tensors[arg_index].data = ptr; ++arg_index; } // update inputs for (auto ptr : current_input_ptrs_) { dl_tensors[arg_index].data = ptr; ++arg_index; } arg_index = func_info->func_input_count; // update func outputs for (auto ptr : current_func_output_ptrs_) { dl_tensors[arg_index].data = *ptr; ++arg_index; } } void ScanExecCtx::InitContext(KernelComputeCtx* kernel_compute_ctx, const NupharFuncInfo* func_info) { FuncComputeCtx& subgraph_compute_ctx = kernel_compute_ctx->GetFuncComputeCtx(func_info); const DLContext& dl_ctx = kernel_compute_ctx->GetRuntimeHandle()->dl_ctx; size_t tvm_input_count = func_info->func_input_count; size_t tvm_output_count = func_info->func_output_count; size_t tvm_num_args = tvm_input_count + tvm_output_count; std::vector<TVMValue>& lvalues = subgraph_compute_ctx.lvalues; lvalues.resize(tvm_num_args); std::vector<DLTensor>& dl_tensors = subgraph_compute_ctx.dl_tensors; dl_tensors.resize(tvm_num_args); std::vector<std::vector<int64_t>>& dl_output_shapes = subgraph_compute_ctx.dl_output_shapes; dl_output_shapes.resize(tvm_output_count); // control flow info const ScanExecInfo* scan_info = Promote<ScanExecInfo>(func_info->cf_info.get()); ORT_ENFORCE_DEBUG(nullptr != scan_info); int64_t num_state_variables = scan_info->num_state_variables; int64_t num_scan_inputs = scan_info->num_scan_inputs; int64_t num_scan_outputs = scan_info->num_scan_outputs; const std::vector<int64_t>& scan_input_axes = scan_info->scan_input_axes; const std::vector<int64_t>& scan_output_axes = scan_info->scan_output_axes; const std::vector<bool>& scan_input_forwards = scan_info->scan_input_forwards; const std::vector<bool>& scan_output_forwards = scan_info->scan_output_forwards; // a common lambda utility function for fill-in inputs and initializers auto fill_input = [&](size_t tvm_idx, const void* input_data, const int64_t* shape, size_t rank, MLDataType data_type) { ORT_ENFORCE_DEBUG(kernel_compute_ctx->GetRuntimeHandle()->allow_unaligned_buffers || (reinterpret_cast<std::uintptr_t>(input_data)) % 64 == 0); DLDataType dtype = tvm_codegen::ToTvmDLDataType(data_type); dl_tensors[tvm_idx] = {const_cast<void*>(input_data), dl_ctx, gsl::narrow_cast<int>(rank), dtype, const_cast<int64_t*>(shape), nullptr, 0}; lvalues[tvm_idx].v_handle = &(dl_tensors[tvm_idx]); }; // Reserve sizes of Scan's fast look ptr current_input_ptrs_.resize(num_scan_inputs); input_strides_.resize(num_scan_inputs); current_output_ptrs_.resize(num_scan_outputs); output_strides_.resize(num_scan_outputs); current_ort_state_input_ptrs_.resize(num_state_variables); current_ort_state_output_ptrs_.resize(num_state_variables); ort_state_input_buffers_.resize(num_state_variables); ort_state_output_buffers_.resize(num_state_variables); ort_state_buffer_unique_ptrs_.resize(num_state_variables); scan_input_in_subgraph_shapes_.resize(num_scan_inputs); scan_output_shapes_.resize(num_scan_outputs); state_bytes_size_.resize(num_state_variables); // Handle Scan's control flow ctx seq_length_ = 0; for (int ort_input_idx = gsl::narrow<int>(num_state_variables); ort_input_idx < gsl::narrow<int>(func_info->ort_input_count); ++ort_input_idx) { const int64_t* input_shape = subgraph_compute_ctx.ort_input_shapes[ort_input_idx]; size_t scan_input_idx = gsl::narrow<size_t>(ort_input_idx) - gsl::narrow<size_t>(num_state_variables); ORT_ENFORCE_DEBUG(scan_input_idx < scan_input_axes.size()); size_t input_scan_axis = gsl::narrow<size_t>(scan_input_axes[scan_input_idx]); if (seq_length_ == 0) { seq_length_ = input_shape[input_scan_axis]; } ORT_ENFORCE_DEBUG(seq_length_ == input_shape[input_scan_axis]); } min_loop_step_ = 0; max_loop_step_ = seq_length_; current_loop_step_ = min_loop_step_; // Handle Inputs (not including initializers) size_t tvm_input_idx = 0; for (const auto& input_meta : func_info->input_metas) { int ort_input_idx = input_meta.ort_arg_index; const void* input_data = subgraph_compute_ctx.ort_input_data[ort_input_idx]; const int64_t* ort_input_shape = subgraph_compute_ctx.ort_input_shapes[ort_input_idx]; MLDataType data_type = input_meta.dtype; size_t arg_shape_rank = input_meta.inferred_shape.size(); if (ort_input_idx < gsl::narrow<int>(num_state_variables)) { // for scan_state_input, the rank is the same fill_input(tvm_input_idx, input_data, ort_input_shape, arg_shape_rank, data_type); // set the input_data, which is the main graph's state input ptr, to current current_ort_state_input_ptrs_ current_ort_state_input_ptrs_[ort_input_idx] = dl_tensors[tvm_input_idx].data; // set the new allocated ptr to state_input_buffers ort_state_buffer_unique_ptrs_[ort_input_idx] = kernel_compute_ctx->AllocateDataUniquePtr(ort_input_shape, arg_shape_rank, data_type); ort_state_input_buffers_[ort_input_idx] = ort_state_buffer_unique_ptrs_[ort_input_idx].get(); } else if (ort_input_idx < gsl::narrow<int>(num_scan_inputs + num_state_variables)) { // if ith varialbe is an input, we need to slice it based on the scan_input_axes size_t scan_input_idx = gsl::narrow<size_t>(ort_input_idx) - gsl::narrow<size_t>(num_state_variables); ORT_ENFORCE_DEBUG(scan_input_idx < scan_input_axes.size()); size_t input_scan_axis = gsl::narrow<size_t>(scan_input_axes[scan_input_idx]); std::vector<int64_t>& shape = scan_input_in_subgraph_shapes_[scan_input_idx]; ShapeRemoveAxis(shape, ort_input_shape, arg_shape_rank + 1, input_scan_axis); // Check whether it is backward Scan // If so, we need to use the last frame, instead of the first frame. int64_t stride = BytesOfShape(shape, data_type); input_data = scan_input_forwards[scan_input_idx] ? input_data : (static_cast<const char*>(input_data) + stride * (seq_length_ - 1)); fill_input(tvm_input_idx, input_data, shape.data(), shape.size(), data_type); // set the input_data, which is the main graph's input ptr current_input_ptrs_[scan_input_idx] = dl_tensors[tvm_input_idx].data; // use sliced shape and data_type as stride input_strides_[scan_input_idx] = scan_input_forwards[scan_input_idx] ? stride : -stride; } else { fill_input(tvm_input_idx, input_data, ort_input_shape, arg_shape_rank, data_type); } // update dynamic shape in realized_dims const auto& symbols = input_meta.dim_symbols; kernel_compute_ctx->UpdateRealizedDims(symbols, dl_tensors[tvm_input_idx].shape); ++tvm_input_idx; } // Handle Initializers const std::vector<const Tensor*>& intializers = func_info->intializers; for (const Tensor* t : intializers) { fill_input(tvm_input_idx++, t->DataRaw(), t->Shape().GetDims().data(), t->Shape().NumDimensions(), t->DataType()); } // Handle outputs and state outputs current_func_output_ptrs_.resize(tvm_output_count); size_t tvm_output_idx = 0; for (const auto& output_meta : func_info->output_metas) { std::vector<int64_t>& realized_shape = dl_output_shapes[tvm_output_idx]; // Update static dim realized_shape = output_meta.inferred_shape; // Update dynamic dim const std::vector<std::pair<size_t, std::string>>& symbols = output_meta.dim_symbols; kernel_compute_ctx->UpdateRealizedDims(symbols, realized_shape); // Fill in output DLTensor MLDataType data_type = output_meta.dtype; // static meta from NupharFuncInfo int ort_output_idx = output_meta.ort_arg_index; void* output_data = nullptr; // if i variables is smaller than num_state_variables, check whether it is an output or a state output if (ort_output_idx < gsl::narrow<int>(num_state_variables)) { // if ith variable is a state output, we just call OutputData2 API with realized_shape output_data = kernel_compute_ctx->OutputData(func_info, ort_output_idx, TensorShape::FromExistingBuffer(realized_shape), data_type); // set current_ort_state_output_ptrs_ as ort_state_input_buffers_ // Note it is "ort_state_input_buffers_", since we will perform double buffering later. current_ort_state_output_ptrs_[ort_output_idx] = ort_state_input_buffers_[ort_output_idx]; // set ort_state_output_buffers_ as output_data ort_state_output_buffers_[ort_output_idx] = output_data; state_bytes_size_[ort_output_idx] = BytesOfShape(realized_shape, data_type); // link current_func_output_ptrs_ as current_ort_state_output_ptrs_ current_func_output_ptrs_[ort_output_idx] = &current_ort_state_output_ptrs_[ort_output_idx]; } else { // if ith varialbe is an output, we need to remove an axis for DLTesnor size_t scan_output_idx = gsl::narrow<size_t>(ort_output_idx) - gsl::narrow<size_t>(num_state_variables); std::vector<int64_t>& shape = scan_output_shapes_[scan_output_idx]; ORT_ENFORCE_DEBUG(scan_output_idx < scan_output_axes.size()); size_t output_scan_axis = gsl::narrow<size_t>(scan_output_axes[scan_output_idx]); ShapeInsertAxis(shape, realized_shape.data(), realized_shape.size(), output_scan_axis, seq_length_); output_data = kernel_compute_ctx->OutputData(func_info, ort_output_idx, TensorShape::FromExistingBuffer(shape), data_type); // Check whether it is backward Scan // If so, we need to use the last frame, instead of the first frame. // Note here sliced_shape is realized_shape, since realized_shape is from NupharFunctionInfo. int64_t stride = BytesOfShape(realized_shape, data_type); output_data = scan_output_forwards[scan_output_idx] ? output_data : (static_cast<char*>(output_data) + stride * (seq_length_ - 1)); // set output_data to current_output_ptrs_ current_output_ptrs_[scan_output_idx] = output_data; // use sliced shape and data_type as stride output_strides_[scan_output_idx] = scan_output_forwards[scan_output_idx] ? stride : -stride; // link current_func_output_ptrs_ to current_output_ptrs_ current_func_output_ptrs_[tvm_output_idx] = &current_output_ptrs_[scan_output_idx]; } DLDataType dtype = tvm_codegen::ToTvmDLDataType(data_type); size_t tvm_idx = tvm_output_idx + tvm_input_count; dl_tensors[tvm_idx] = {output_data, dl_ctx, gsl::narrow<int>(realized_shape.size()), dtype, realized_shape.data(), nullptr, 0}; lvalues[tvm_idx].v_handle = &(dl_tensors[tvm_idx]); ++tvm_output_idx; } // Handle alias state outputs const std::vector<std::pair<int, size_t>>& ort_aliased_output_to_func_indices = func_info->ort_aliased_output_to_func_indices; for (const auto& p : ort_aliased_output_to_func_indices) { // p is a std::pair<int, size_t>. A pair of (ort dst idx, tvm src idx) // Note ort dst idx is always a state output int ort_state_idx = p.first; size_t tvm_idx = p.second; size_t tvm_output_idx = tvm_idx - tvm_input_count; MLDataType data_type = func_info->output_metas[tvm_output_idx].dtype; current_ort_state_output_ptrs_[ort_state_idx] = dl_tensors[tvm_idx].data; ort_state_output_buffers_[ort_state_idx] = kernel_compute_ctx->OutputData(func_info, ort_state_idx, TensorShape::FromExistingBuffer(dl_output_shapes[tvm_output_idx]), data_type); state_bytes_size_[ort_state_idx] = BytesOfShape(dl_output_shapes[tvm_output_idx], data_type); } } // UpdateContext is for an existing KernelComputeCtx, and only needs to update non-initializer input/output void ScanExecCtx::UpdateContext(KernelComputeCtx* kernel_compute_ctx, const NupharFuncInfo* func_info) { FuncComputeCtx& subgraph_compute_ctx = kernel_compute_ctx->GetFuncComputeCtx(func_info); size_t tvm_input_count = func_info->func_input_count; // control flow info const ScanExecInfo* scan_info = Promote<ScanExecInfo>(func_info->cf_info.get()); ORT_ENFORCE_DEBUG(nullptr != scan_info); int64_t num_state_variables = scan_info->num_state_variables; int64_t num_scan_inputs = scan_info->num_scan_inputs; const std::vector<int64_t>& scan_input_axes = scan_info->scan_input_axes; const std::vector<bool>& scan_input_forwards = scan_info->scan_input_forwards; const std::vector<bool>& scan_output_forwards = scan_info->scan_output_forwards; const std::vector<int64_t>& scan_output_axes = scan_info->scan_output_axes; // Handle Scan's control flow ctx seq_length_ = 0; for (int ort_input_idx = gsl::narrow<int>(num_state_variables); ort_input_idx < gsl::narrow<int>(func_info->ort_input_count); ++ort_input_idx) { const int64_t* ort_input_shape = subgraph_compute_ctx.ort_input_shapes[ort_input_idx]; size_t scan_input_idx = gsl::narrow<size_t>(ort_input_idx) - gsl::narrow<size_t>(num_state_variables); ORT_ENFORCE_DEBUG(scan_input_idx < scan_input_axes.size()); size_t input_scan_axis = gsl::narrow<size_t>(scan_input_axes[scan_input_idx]); if (seq_length_ == 0) seq_length_ = ort_input_shape[input_scan_axis]; ORT_ENFORCE_DEBUG(seq_length_ == ort_input_shape[input_scan_axis]); } min_loop_step_ = 0; max_loop_step_ = seq_length_; current_loop_step_ = min_loop_step_; // Handle inputs and state inputs (not including initializer) size_t tvm_input_idx = 0; for (const auto& input_meta : func_info->input_metas) { int ort_input_idx = input_meta.ort_arg_index; DLTensor& dl_tensor = subgraph_compute_ctx.dl_tensors[tvm_input_idx]; const int64_t* ort_input_shape = subgraph_compute_ctx.ort_input_shapes[ort_input_idx]; const auto& symbols = input_meta.dim_symbols; MLDataType data_type = input_meta.dtype; // check whether it is an input or a state input int scan_input_idx = ort_input_idx - gsl::narrow<int>(num_state_variables); size_t input_scan_axis = 0; bool is_scan_input = ort_input_idx >= gsl::narrow<int>(num_state_variables) && ort_input_idx < (gsl::narrow<int>(num_scan_inputs + num_state_variables)); bool is_scan_state = ort_input_idx < gsl::narrow<int>(num_state_variables); if (is_scan_input) { ORT_ENFORCE_DEBUG(scan_input_idx < gsl::narrow<int>(scan_input_axes.size())); input_scan_axis = gsl::narrow<size_t>(scan_input_axes[scan_input_idx]); } // update scan inputs' dynamic shape in realized_dims // state input would use shape from ort directly if (is_scan_input) { kernel_compute_ctx->UpdateRealizedDims(symbols, ort_input_shape, input_scan_axis); for (const auto& s_pair : symbols) { size_t tvm_dim = s_pair.first; size_t ort_dim = tvm_dim; if (tvm_dim >= input_scan_axis) { ort_dim = tvm_dim + 1; } int64_t dim_size = ort_input_shape[ort_dim]; dl_tensor.shape[tvm_dim] = dim_size; } } // update ptrs void* input_data = const_cast<void*>(subgraph_compute_ctx.ort_input_data[ort_input_idx]); if (is_scan_input) { // if ith varialbe is an input, we need to use sliced shape (from dl_tensor.shape) int64_t stride = BytesOfShape(dl_tensor.shape, dl_tensor.ndim, data_type); // Check whether it is backward Scan // If so, we need to use the last frame, instead of the first frame. input_data = scan_input_forwards[scan_input_idx] ? input_data : (static_cast<char*>(input_data) + stride * (seq_length_ - 1)); size_t scan_input_idx = tvm_input_idx - gsl::narrow<size_t>(num_state_variables); dl_tensor.data = input_data; current_input_ptrs_[scan_input_idx] = input_data; // use sliced shape and data_type as stride input_strides_[scan_input_idx] = scan_input_forwards[scan_input_idx] ? stride : -stride; } else if (is_scan_state) { // if ith variable is a state input // set the input_data, which is the main graph's state input ptr, to current current_ort_state_input_ptrs_ dl_tensor.data = input_data; dl_tensor.shape = const_cast<int64_t*>(ort_input_shape); dl_tensor.ndim = gsl::narrow<int>(input_meta.inferred_shape.size()); current_ort_state_input_ptrs_[ort_input_idx] = input_data; // set the new allocated ptr to state_input_buffers ort_state_buffer_unique_ptrs_[ort_input_idx] = kernel_compute_ctx->AllocateDataUniquePtr(dl_tensor.shape, dl_tensor.ndim, data_type); ort_state_input_buffers_[ort_input_idx] = ort_state_buffer_unique_ptrs_[ort_input_idx].get(); } else { // if ith variable is an implicit input dl_tensor.data = input_data; dl_tensor.shape = const_cast<int64_t*>(ort_input_shape); dl_tensor.ndim = gsl::narrow<int>(input_meta.inferred_shape.size()); } ++tvm_input_idx; } // No need to update initializer in UpdateContext // Handle outputs and state std::vector<std::vector<int64_t>>& dl_output_shapes = subgraph_compute_ctx.dl_output_shapes; size_t tvm_output_idx = 0; for (const auto& output_meta : func_info->output_metas) { size_t tvm_idx = tvm_output_idx + tvm_input_count; int ort_output_idx = output_meta.ort_arg_index; MLDataType data_type = output_meta.dtype; DLTensor& dl_tensor = subgraph_compute_ctx.dl_tensors[tvm_idx]; int scan_output_idx = ort_output_idx - gsl::narrow<int>(num_state_variables); size_t output_scan_axis = 0; bool is_scan_output = (scan_output_idx >= 0); if (is_scan_output) { ORT_ENFORCE_DEBUG(scan_output_idx < gsl::narrow<int>(scan_output_axes.size())); output_scan_axis = gsl::narrow<size_t>(scan_output_axes[scan_output_idx]); } // Update dynamic dim const auto& symbols = output_meta.dim_symbols; if (is_scan_output) { kernel_compute_ctx->UpdateRealizedDims(symbols, scan_output_shapes_[scan_output_idx], output_scan_axis); } kernel_compute_ctx->UpdateRealizedDims(symbols, dl_output_shapes[tvm_output_idx]); std::vector<int64_t>& ort_output_shape = is_scan_output ? scan_output_shapes_[scan_output_idx] : dl_output_shapes[tvm_output_idx]; // update ptr void* output_data = nullptr; if (ort_output_idx < gsl::narrow<int>(num_state_variables)) { output_data = kernel_compute_ctx->OutputData(func_info, ort_output_idx, TensorShape::FromExistingBuffer(ort_output_shape), data_type); // set current_ort_state_output_ptrs_ as ort_state_input_buffers_ // Note it is "ort_state_input_buffers_", since we will perform double buffering later. current_ort_state_output_ptrs_[ort_output_idx] = ort_state_input_buffers_[ort_output_idx]; // set ort_state_output_buffers_ as output_data ort_state_output_buffers_[ort_output_idx] = output_data; state_bytes_size_[ort_output_idx] = BytesOfShape(ort_output_shape, data_type); } else { ort_output_shape[output_scan_axis] = seq_length_; output_data = kernel_compute_ctx->OutputData(func_info, ort_output_idx, TensorShape::FromExistingBuffer(ort_output_shape), data_type); // Check whether it is backward Scan // If so, we need to use the last frame, instead of the first frame. // Note here stride come from dl_tensor shape int64_t stride = BytesOfShape(dl_tensor.shape, dl_tensor.ndim, data_type); output_data = scan_output_forwards[scan_output_idx] ? output_data : (static_cast<char*>(output_data) + stride * (seq_length_ - 1)); // set output_data to current_output_ptrs_ current_output_ptrs_[scan_output_idx] = output_data; // use sliced shape and data_type as stride output_strides_[scan_output_idx] = scan_output_forwards[scan_output_idx] ? stride : -stride; } dl_tensor.data = output_data; ++tvm_output_idx; } // Handle alias state outputs const std::vector<std::pair<int, size_t>>& ort_aliased_output_to_func_indices = func_info->ort_aliased_output_to_func_indices; for (const auto& p : ort_aliased_output_to_func_indices) { // p is a std::pair<int, size_t>. A pair of (ort dst idx, tvm src idx) // Note ort dst idx is always a state output int ort_state_idx = p.first; size_t tvm_idx = p.second; size_t tvm_output_idx = tvm_idx - tvm_input_count; MLDataType data_type = func_info->output_metas[tvm_output_idx].dtype; DLTensor& dl_tensor = subgraph_compute_ctx.dl_tensors[tvm_idx]; current_ort_state_output_ptrs_[ort_state_idx] = dl_tensor.data; ort_state_output_buffers_[ort_state_idx] = kernel_compute_ctx->OutputData(func_info, ort_state_idx, TensorShape::FromExistingBuffer(dl_output_shapes[tvm_output_idx]), data_type); state_bytes_size_[ort_state_idx] = BytesOfShape(dl_output_shapes[tvm_output_idx], data_type); } } void ScanExecCtx::LoopFinalizer() { seq_length_ = 0; } } // namespace nuphar } // namespace onnxruntime
11,514
324
<gh_stars>100-1000 /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.jclouds.ec2.features; import static com.google.common.collect.Iterables.getOnlyElement; import static org.testng.Assert.assertNotNull; import java.util.Properties; import org.jclouds.Constants; import org.jclouds.ec2.EC2Api; import org.jclouds.ec2.domain.Reservation; import org.jclouds.ec2.domain.RunningInstance; import org.jclouds.ec2.internal.BaseEC2ApiExpectTest; import org.jclouds.http.HttpRequest; import org.jclouds.http.HttpResponse; import org.jclouds.rest.internal.BaseRestApiExpectTest; import org.jclouds.util.Strings2; import org.testng.Assert; import org.testng.annotations.Test; import com.google.common.collect.ImmutableMultimap; import com.google.common.collect.ImmutableSet; /** * * @see InstanceApi */ @Test(groups = "unit") public class InstanceApiExpectTest extends BaseEC2ApiExpectTest<EC2Api> { protected Properties setupProperties() { Properties props = super.setupProperties(); props.put(Constants.PROPERTY_API_VERSION, "2010-08-31"); return props; } HttpRequest filter = HttpRequest.builder() .method("POST") .endpoint("https://ec2.us-east-1.amazonaws.com/") .addHeader("Host", "ec2.us-east-1.amazonaws.com") .payload(BaseRestApiExpectTest.payloadFromStringWithContentType( "Action=DescribeInstances" + "&Filter.1.Name=key-name" + "&Filter.1.Value.1=" + Strings2.urlEncode("adriancole.ec21") + "&Signature=%2B2ktAljlAPNUMAJUFh3poQrTvwcwWytuQFBg/ktKdTc%3D" + "&SignatureMethod=HmacSHA256" + "&SignatureVersion=2" + "&Timestamp=2012-04-16T15%3A54%3A08.897Z" + "&Version=2010-08-31" + "&AWSAccessKeyId=identity", "application/x-www-form-urlencoded")) .build(); public void testFilterWhenResponseIs2xx() throws Exception { HttpResponse filterResponse = HttpResponse.builder().statusCode(200) .payload(payloadFromResourceWithContentType("/describe_instances_running.xml", "text/xml")).build(); EC2Api apiWhenExist = requestsSendResponses(describeRegionsRequest, describeRegionsResponse, filter, filterResponse); Reservation<? extends RunningInstance> reservation = getOnlyElement(apiWhenExist.getInstanceApi().get().describeInstancesInRegionWithFilter("us-east-1", ImmutableMultimap.<String, String>builder() .put("key-name", "adriancole.ec21") .build())); RunningInstance instance = getOnlyElement(reservation); assertNotNull(instance, "Instance should not be null"); Assert.assertEquals(instance.getId(), "i-0799056f"); } public void testFilterWhenResponseIs404() throws Exception { HttpResponse filterResponse = HttpResponse.builder().statusCode(404).build(); EC2Api apiWhenDontExist = requestsSendResponses(describeRegionsRequest, describeRegionsResponse, filter, filterResponse); Assert.assertEquals(apiWhenDontExist.getInstanceApi().get().describeInstancesInRegionWithFilter("us-east-1", ImmutableMultimap.<String, String>builder() .put("key-name", "adriancole.ec21") .build()), ImmutableSet.of()); } }
1,847
56,632
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. // // Copyright (C) 2018 Intel Corporation #ifndef OPENCV_GAPI_UTIL_OPTIONAL_HPP #define OPENCV_GAPI_UTIL_OPTIONAL_HPP #include <opencv2/gapi/util/variant.hpp> // A poor man's `optional` implementation, incompletely modeled against C++17 spec. namespace cv { namespace util { class bad_optional_access: public std::exception { public: virtual const char *what() const noexcept override { return "Bad optional access"; } }; // TODO: nullopt_t // Interface /////////////////////////////////////////////////////////////// template<typename T> class optional { public: // Constructors // NB.: there were issues with Clang 3.8 when =default() was used // instead {} optional() {} optional(const optional&) = default; explicit optional(T&&) noexcept; explicit optional(const T&) noexcept; optional(optional&&) noexcept; // TODO: optional(nullopt_t) noexcept; // TODO: optional(const optional<U> &) // TODO: optional(optional<U> &&) // TODO: optional(Args&&...) // TODO: optional(initializer_list<U>) // TODO: optional(U&& value); // Assignment optional& operator=(const optional&) = default; optional& operator=(optional&&); // Observers T* operator-> (); const T* operator-> () const; T& operator* (); const T& operator* () const; // TODO: && versions operator bool() const noexcept; bool has_value() const noexcept; T& value(); const T& value() const; // TODO: && versions template<class U> T value_or(U &&default_value) const; void swap(optional &other) noexcept; void reset() noexcept; // TODO: emplace // TODO: operator==, !=, <, <=, >, >= private: struct nothing {}; util::variant<nothing, T> m_holder; }; template<class T> optional<typename std::decay<T>::type> make_optional(T&& value); // TODO: Args... and initializer_list versions // Implementation ////////////////////////////////////////////////////////// template<class T> optional<T>::optional(T &&v) noexcept : m_holder(std::move(v)) { } template<class T> optional<T>::optional(const T &v) noexcept : m_holder(v) { } template<class T> optional<T>::optional(optional&& rhs) noexcept : m_holder(std::move(rhs.m_holder)) { rhs.reset(); } template<class T> optional<T>& optional<T>::operator=(optional&& rhs) { m_holder = std::move(rhs.m_holder); rhs.reset(); return *this; } template<class T> T* optional<T>::operator-> () { return & *(*this); } template<class T> const T* optional<T>::operator-> () const { return & *(*this); } template<class T> T& optional<T>::operator* () { return this->value(); } template<class T> const T& optional<T>::operator* () const { return this->value(); } template<class T> optional<T>::operator bool() const noexcept { return this->has_value(); } template<class T> bool optional<T>::has_value() const noexcept { return util::holds_alternative<T>(m_holder); } template<class T> T& optional<T>::value() { if (!this->has_value()) throw_error(bad_optional_access()); return util::get<T>(m_holder); } template<class T> const T& optional<T>::value() const { if (!this->has_value()) throw_error(bad_optional_access()); return util::get<T>(m_holder); } template<class T> template<class U> T optional<T>::value_or(U &&default_value) const { return (this->has_value() ? this->value() : T(default_value)); } template<class T> void optional<T>::swap(optional<T> &other) noexcept { m_holder.swap(other.m_holder); } template<class T> void optional<T>::reset() noexcept { if (this->has_value()) m_holder = nothing{}; } template<class T> optional<typename std::decay<T>::type> make_optional(T&& value) { return optional<typename std::decay<T>::type>(std::forward<T>(value)); } } // namespace util } // namespace cv #endif // OPENCV_GAPI_UTIL_OPTIONAL_HPP
1,952
416
package org.simpleflatmapper.util.test; import org.junit.Test; import org.simpleflatmapper.util.ImmutableListCollector; import java.util.Arrays; import static org.junit.Assert.assertEquals; import static org.junit.Assert.fail; public class ImmutableListCollectorTest { @Test public void testList() { ImmutableListCollector<String> handler = new ImmutableListCollector<String>(); handler.accept("1"); assertEquals(Arrays.asList("1"), handler.getList()); try { handler.getList().add("1"); fail(); } catch (UnsupportedOperationException e) { } } }
251
14,668
<gh_stars>1000+ /* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include "tensorflow_lite_support/cc/task/vision/utils/image_tensor_specs.h" #include "absl/status/status.h" #include "tensorflow_lite_support/cc/common.h" #include "tensorflow_lite_support/cc/port/integral_types.h" #include "tensorflow_lite_support/cc/port/status_macros.h" #include "tensorflow_lite_support/cc/port/statusor.h" #include "tensorflow_lite_support/cc/task/core/tflite_engine.h" namespace tflite { namespace task { namespace vision { namespace { using ::absl::StatusCode; using ::tflite::ColorSpaceType_RGB; using ::tflite::ContentProperties; using ::tflite::ContentProperties_ImageProperties; using ::tflite::EnumNameContentProperties; using ::tflite::ImageProperties; using ::tflite::TensorMetadata; using ::tflite::metadata::ModelMetadataExtractor; using ::tflite::support::CreateStatusWithPayload; using ::tflite::support::StatusOr; using ::tflite::support::TfLiteSupportStatus; using ::tflite::task::core::TfLiteEngine; StatusOr<const TensorMetadata*> GetInputTensorMetadataIfAny( const ModelMetadataExtractor& metadata_extractor) { if (metadata_extractor.GetModelMetadata() == nullptr || metadata_extractor.GetModelMetadata()->subgraph_metadata() == nullptr) { // Some models have no metadata at all (or very partial), so exit early. return nullptr; } else if (metadata_extractor.GetInputTensorCount() != 1) { return CreateStatusWithPayload( StatusCode::kInvalidArgument, "Models are assumed to have a single input TensorMetadata.", TfLiteSupportStatus::kInvalidNumInputTensorsError); } const TensorMetadata* metadata = metadata_extractor.GetInputTensorMetadata(0); if (metadata == nullptr) { // Should never happen. return CreateStatusWithPayload(StatusCode::kInternal, "Input TensorMetadata is null."); } return metadata; } StatusOr<const ImageProperties*> GetImagePropertiesIfAny( const TensorMetadata& tensor_metadata) { if (tensor_metadata.content() == nullptr || tensor_metadata.content()->content_properties() == nullptr) { return nullptr; } ContentProperties type = tensor_metadata.content()->content_properties_type(); if (type != ContentProperties_ImageProperties) { return CreateStatusWithPayload( StatusCode::kInvalidArgument, absl::StrCat( "Expected ImageProperties for tensor ", tensor_metadata.name() ? tensor_metadata.name()->str() : "#0", ", got ", EnumNameContentProperties(type), "."), TfLiteSupportStatus::kMetadataInvalidContentPropertiesError); } return tensor_metadata.content()->content_properties_as_ImageProperties(); } StatusOr<absl::optional<NormalizationOptions>> GetNormalizationOptionsIfAny( const TensorMetadata& tensor_metadata) { ASSIGN_OR_RETURN( const tflite::ProcessUnit* normalization_process_unit, ModelMetadataExtractor::FindFirstProcessUnit( tensor_metadata, tflite::ProcessUnitOptions_NormalizationOptions)); if (normalization_process_unit == nullptr) { return {absl::nullopt}; } const tflite::NormalizationOptions* tf_normalization_options = normalization_process_unit->options_as_NormalizationOptions(); const auto mean_values = tf_normalization_options->mean(); const auto std_values = tf_normalization_options->std(); if (mean_values->size() != std_values->size()) { return CreateStatusWithPayload( StatusCode::kInvalidArgument, absl::StrCat("NormalizationOptions: expected mean and std of same " "dimension, got ", mean_values->size(), " and ", std_values->size(), "."), TfLiteSupportStatus::kMetadataInvalidProcessUnitsError); } absl::optional<NormalizationOptions> normalization_options; if (mean_values->size() == 1) { normalization_options = NormalizationOptions{ .mean_values = {mean_values->Get(0), mean_values->Get(0), mean_values->Get(0)}, .std_values = {std_values->Get(0), std_values->Get(0), std_values->Get(0)}, .num_values = 1}; } else if (mean_values->size() == 3) { normalization_options = NormalizationOptions{ .mean_values = {mean_values->Get(0), mean_values->Get(1), mean_values->Get(2)}, .std_values = {std_values->Get(0), std_values->Get(1), std_values->Get(2)}, .num_values = 3}; } else { return CreateStatusWithPayload( StatusCode::kInvalidArgument, absl::StrCat("NormalizationOptions: only 1 or 3 mean and std " "values are supported, got ", mean_values->size(), "."), TfLiteSupportStatus::kMetadataInvalidProcessUnitsError); } return normalization_options; } } // namespace StatusOr<ImageTensorSpecs> BuildInputImageTensorSpecs( const TfLiteEngine::Interpreter& interpreter, const tflite::metadata::ModelMetadataExtractor& metadata_extractor) { ASSIGN_OR_RETURN(const TensorMetadata* metadata, GetInputTensorMetadataIfAny(metadata_extractor)); const ImageProperties* props = nullptr; absl::optional<NormalizationOptions> normalization_options; if (metadata != nullptr) { ASSIGN_OR_RETURN(props, GetImagePropertiesIfAny(*metadata)); ASSIGN_OR_RETURN(normalization_options, GetNormalizationOptionsIfAny(*metadata)); } if (TfLiteEngine::InputCount(&interpreter) != 1) { return CreateStatusWithPayload( StatusCode::kInvalidArgument, "Models are assumed to have a single input.", TfLiteSupportStatus::kInvalidNumInputTensorsError); } // Input-related specifications. const TfLiteTensor* input_tensor = TfLiteEngine::GetInput(&interpreter, 0); if (input_tensor->dims->size != 4) { return CreateStatusWithPayload( StatusCode::kInvalidArgument, "Only 4D tensors in BHWD layout are supported.", TfLiteSupportStatus::kInvalidInputTensorDimensionsError); } static constexpr TfLiteType valid_types[] = {kTfLiteUInt8, kTfLiteFloat32}; TfLiteType input_type = input_tensor->type; if (!absl::c_linear_search(valid_types, input_type)) { return CreateStatusWithPayload( StatusCode::kInvalidArgument, absl::StrCat( "Type mismatch for input tensor ", input_tensor->name, ". Requested one of these types: kTfLiteUint8/kTfLiteFloat32, got ", TfLiteTypeGetName(input_type), "."), TfLiteSupportStatus::kInvalidInputTensorTypeError); } // The expected layout is BHWD, i.e. batch x height x width x color // See https://www.tensorflow.org/guide/tensors const int batch = input_tensor->dims->data[0]; const int height = input_tensor->dims->data[1]; const int width = input_tensor->dims->data[2]; const int depth = input_tensor->dims->data[3]; if (props != nullptr && props->color_space() != ColorSpaceType_RGB) { return CreateStatusWithPayload(StatusCode::kInvalidArgument, "Only RGB color space is supported for now.", TfLiteSupportStatus::kInvalidArgumentError); } if (batch != 1 || depth != 3) { return CreateStatusWithPayload( StatusCode::kInvalidArgument, absl::StrCat("The input tensor should have dimensions 1 x height x " "width x 3. Got ", batch, " x ", height, " x ", width, " x ", depth, "."), TfLiteSupportStatus::kInvalidInputTensorDimensionsError); } int bytes_size = input_tensor->bytes; size_t byte_depth = input_type == kTfLiteFloat32 ? sizeof(float) : sizeof(uint8); // Sanity checks. if (input_type == kTfLiteFloat32) { if (!normalization_options.has_value()) { return CreateStatusWithPayload( absl::StatusCode::kNotFound, "Input tensor has type kTfLiteFloat32: it requires specifying " "NormalizationOptions metadata to preprocess input images.", TfLiteSupportStatus::kMetadataMissingNormalizationOptionsError); } else if (bytes_size / sizeof(float) % normalization_options.value().num_values != 0) { return CreateStatusWithPayload( StatusCode::kInvalidArgument, "The number of elements in the input tensor must be a multiple of " "the number of normalization parameters.", TfLiteSupportStatus::kInvalidArgumentError); } } if (width <= 0) { return CreateStatusWithPayload( StatusCode::kInvalidArgument, "The input width should be positive.", TfLiteSupportStatus::kInvalidInputTensorDimensionsError); } if (height <= 0) { return CreateStatusWithPayload( StatusCode::kInvalidArgument, "The input height should be positive.", TfLiteSupportStatus::kInvalidInputTensorDimensionsError); } if (bytes_size != height * width * depth * byte_depth) { return CreateStatusWithPayload( StatusCode::kInvalidArgument, "The input size in bytes does not correspond to the expected number of " "pixels.", TfLiteSupportStatus::kInvalidInputTensorSizeError); } // Note: in the future, additional checks against `props->default_size()` // might be added. Also, verify that NormalizationOptions, if any, do specify // a single value when color space is grayscale. ImageTensorSpecs result; result.image_width = width; result.image_height = height; result.color_space = ColorSpaceType_RGB; result.tensor_type = input_type; result.normalization_options = normalization_options; return result; } } // namespace vision } // namespace task } // namespace tflite
3,870
3,227
#include <iostream> #include <CGAL/Exact_predicates_inexact_constructions_kernel.h> #include <CGAL/Triangulation_2.h> typedef CGAL::Exact_predicates_inexact_constructions_kernel K; typedef CGAL::Triangulation_2<K> Triangulation; typedef Triangulation::Vertex_handle Vertex_handle; typedef Triangulation::Face_handle Face_handle; typedef Triangulation::All_faces_iterator All_faces_iterator; typedef Triangulation::All_edges_iterator All_edges_iterator; typedef Triangulation::Point Point; int main() { Point p(0,0), q(1,0); Triangulation t; Vertex_handle inf = t.infinite_vertex(); Face_handle fh = inf->face(); assert(fh->vertex(0) == inf); assert(fh->vertex(1) == Vertex_handle()); assert(fh->vertex(2) == Vertex_handle()); assert(t.all_faces_begin() == t.all_faces_end()); assert(t.all_edges_begin() == t.all_edges_end()); t.insert(p); Vertex_handle pvh = t.finite_vertices_begin(); Face_handle pfh = pvh->face(); assert(pfh->neighbor(0) == fh); t.insert(q); assert(t.infinite_vertex()->face() == fh); assert( (fh->vertex(0) == inf) || (fh->vertex(1) == inf) ); std::cout << "After the insertion of the second point" <<std::endl; std::cout << "|V| = " << t.number_of_vertices() << std::endl; std::cout << "|F| = " << t.number_of_faces() << std::endl; // Even now we have not really faces assert(t.all_faces_begin() == t.all_faces_end()); for (Triangulation::All_edges_iterator it = t.all_edges_begin(); it != t.all_edges_end(); ++it) { Face_handle fh = it->first; Vertex_handle v0 = fh->vertex(0); Vertex_handle v1 = fh->vertex(1); std::cout << "Edge: "; if (v0 == inf) {std::cout << "inf -- ";}else{ std::cout<< v0->point() << " -- ";} if (v1 == inf) {std::cout << "inf\n";}else{ std::cout<< v1->point() << std::endl;} } std::cout << "Edge traversal by hand" << std::endl; Face_handle done = fh; do { assert(fh->vertex(2) == Vertex_handle()); assert(fh->neighbor(2) == Face_handle()); Vertex_handle v0 = fh->vertex(0); Vertex_handle v1 = fh->vertex(1); std::cout << "Edge: "; if (v0 == inf) {std::cout << "inf -- ";}else{ std::cout<< v0->point() << " -- ";} if (v1 == inf) {std::cout << "inf\n";}else{ std::cout<< v1->point() << std::endl;} fh = fh->neighbor(0); } while (fh != done); std::cout << std::endl; return 0; }
1,051
389
/* * Copyright 2014 Guidewire Software, Inc. */ package gw.lang.reflect.java.asm; import gw.internal.ext.org.objectweb.asm.Type; import gw.lang.reflect.java.Parameter; import java.lang.annotation.Annotation; import java.lang.reflect.Modifier; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; /** */ public class AsmMethod implements IGeneric { private AsmType _methodType; private int _modifiers; private AsmType _returnType; private AsmType _genericReturnType; private List<AsmType> _parameters; private List<Parameter> _paramInfos; private List<AsmType> _genericParameters; private List<AsmType> _exceptions; private List<AsmType> _genericExceptions; private List<AsmAnnotation> _annotations; private List<AsmAnnotation>[] _paramAnnotations; private AsmClass _owner; private boolean _bGeneric; private Object _defaultAnnoValue; private int _iLine; public AsmMethod( AsmClass owner, int access, String name, String desc, String[] exceptions ) { _owner = owner; _modifiers = access; _methodType = new AsmType( name ); _annotations = Collections.emptyList(); _exceptions = Collections.emptyList(); _parameters = Collections.emptyList(); _genericExceptions = Collections.emptyList(); _genericParameters = Collections.emptyList(); _paramInfos = Collections.emptyList(); _iLine = -1; assignTypeFromDesc( desc ); //noinspection unchecked _paramAnnotations = new List[_parameters.size()]; assignExceptions( exceptions ); } public void update( List<DeclarationPartSignatureVisitor> paramTypes, DeclarationPartSignatureVisitor returnType, List<DeclarationPartSignatureVisitor> exceptionTypes ) { for( DeclarationPartSignatureVisitor v: paramTypes ) { if( _genericParameters.isEmpty() ) { _genericParameters = new ArrayList<>(); } _genericParameters.add( v.getCurrentType() ); } _genericReturnType = returnType.getCurrentType(); for( DeclarationPartSignatureVisitor v: exceptionTypes ) { if( _genericExceptions.isEmpty() ) { _genericExceptions = new ArrayList<>(); } _genericExceptions.add( v.getCurrentType() ); } } public String getName() { return _methodType.getName(); } public AsmType getMethodType() { return _methodType; } public int getModifiers() { return _modifiers; } public List<AsmType> getParameters() { return _parameters; } public List<AsmType> getGenericParameters() { return _genericParameters.isEmpty() ? _parameters : _genericParameters; } public AsmType getReturnType() { return _returnType; } void setReturnType( AsmType returnType ) { _returnType = returnType; } public AsmType getGenericReturnType() { return _genericReturnType == null ? _returnType : _genericReturnType; } void initGenericReturnType() { _genericReturnType = _returnType.copyNoArrayOrParameters(); } public AsmClass getDeclaringClass() { return _owner; } public boolean isGeneric() { return _bGeneric; } public void setGeneric() { _bGeneric = true; } public boolean isSynthetic() { return (_modifiers & 0x00001000) != 0; } public boolean isBridge() { return (_modifiers & 0x00000040) != 0; } public boolean isConstructor() { return getName().equals( "<init>" ); } public List<AsmType> getExceptions() { return _exceptions; } @SuppressWarnings("UnusedDeclaration") public List<AsmType> getGenericExceptions() { return _genericExceptions.isEmpty() ? _exceptions : _genericExceptions; } @SuppressWarnings("UnusedDeclaration") void initGenericExceptions() { _genericExceptions = new ArrayList<>( _exceptions.size() ); //noinspection Convert2streamapi for( AsmType exception : _exceptions ) { _genericExceptions.add( exception.copyNoArrayOrParameters() ); } } public List<AsmAnnotation> getAnnotations() { return _annotations; } @SuppressWarnings("UnusedDeclaration") public List<AsmAnnotation>[] getParameterAnnotations() { return _paramAnnotations; } public Object getAnnotationDefaultValue() { return _defaultAnnoValue; } public void setAnnotationDefaultValue( Object value ) { value = AsmAnnotation.makeAppropriateValue( value ); _defaultAnnoValue = value; } public boolean isAnnotationPresent( Class<? extends Annotation> annotationClass ) { return getAnnotation( annotationClass ) != null; } public AsmAnnotation getAnnotation( Class annotationClass ) { for( AsmAnnotation anno: getAnnotations() ) { if( annotationClass.getName().equals( anno.getType().getName() ) ) { return anno; } } return null; } private void assignExceptions( String[] exceptions ) { if( exceptions == null ) { return; } for( String exception : exceptions ) { if( _exceptions.isEmpty() ) { _exceptions = new ArrayList<>( exceptions.length ); } _exceptions.add( AsmUtil.makeType( exception ) ); } } private void assignTypeFromDesc( String desc ) { Type returnType = Type.getReturnType( desc ); _returnType = AsmUtil.makeType( returnType ); Type[] params = Type.getArgumentTypes( desc ); for( Type param : params ) { if( _parameters.isEmpty() ) { _parameters = new ArrayList<>( params.length ); } _parameters.add( AsmUtil.makeType( param ) ); } } public void addAnnotation( AsmAnnotation asmAnnotation ) { if( _annotations.isEmpty() ) { _annotations = new ArrayList<>( 2 ); } _annotations.add( asmAnnotation ); } public void addParameterAnnotation( int iParam, AsmAnnotation asmAnnotation ) { if( _paramAnnotations[iParam] == null ) { _paramAnnotations[iParam] = new ArrayList<>( 2 ); } _paramAnnotations[iParam].add( asmAnnotation ); } public String toString() { int mod = getModifiers(); return ((mod == 0) ? "" : (Modifier.toString( mod ) + " ")) + makeTypeVarsString() + (getGenericReturnType() == null ? getReturnType().getFqn() : getGenericReturnType().getFqn()) + " " + getName() + makeParameterString(); } private String makeParameterString() { String paramString = "("; for( AsmType param : _genericParameters.isEmpty() ? _parameters : _genericParameters ) { if( paramString.length() > 1 ) { paramString += ", "; } paramString += param.getFqn(); } paramString += ")"; return paramString; } private String makeTypeVarsString() { String tvString = ""; if( isGeneric() ) { tvString = "<"; for( AsmType tv : getMethodType().getTypeParameters() ) { if( tvString.length() > 1 ) { tvString += ", "; } tvString += tv.getFqn(); } tvString += ">"; } return tvString; } void assignLineNumber( int iLine ) { if( _iLine < 0 ) { _iLine = iLine; } } public int getLineNumber() { return _iLine; } public AsmType findTypeVariable( String tv ) { for( AsmType p: _methodType.getTypeParameters() ) { if( p.getName().equals( tv ) ) { return p; } } return null; } @Override public boolean equals( Object o ) { if( this == o ) { return true; } if( o == null || getClass() != o.getClass() ) { return false; } AsmMethod asmMethod = (AsmMethod)o; if( _bGeneric != asmMethod._bGeneric ) { return false; } if( _modifiers != asmMethod._modifiers ) { return false; } if( !_annotations.equals( asmMethod._annotations ) ) { return false; } if( _defaultAnnoValue != null ? !_defaultAnnoValue.equals( asmMethod._defaultAnnoValue ) : asmMethod._defaultAnnoValue != null ) { return false; } if( !_exceptions.equals( asmMethod._exceptions ) ) { return false; } if( !_genericExceptions.equals( asmMethod._genericExceptions ) ) { return false; } if( !_genericParameters.equals( asmMethod._genericParameters ) ) { return false; } if( !_genericReturnType.equals( asmMethod._genericReturnType ) ) { return false; } if( !_methodType.equals( asmMethod._methodType ) ) { return false; } if( !_owner.equals( asmMethod._owner ) ) { return false; } if( !Arrays.equals( _paramAnnotations, asmMethod._paramAnnotations ) ) { return false; } if( !_parameters.equals( asmMethod._parameters ) ) { return false; } return _returnType.equals( asmMethod._returnType ); } @Override public int hashCode() { int result = _methodType.hashCode(); result = 31 * result + _modifiers; result = 31 * result + _returnType.hashCode(); result = 31 * result + _genericReturnType.hashCode(); result = 31 * result + _parameters.hashCode(); result = 31 * result + _genericParameters.hashCode(); result = 31 * result + _exceptions.hashCode(); result = 31 * result + _genericExceptions.hashCode(); result = 31 * result + _annotations.hashCode(); result = 31 * result + Arrays.hashCode( _paramAnnotations ); result = 31 * result + _owner.hashCode(); result = 31 * result + (_bGeneric ? 1 : 0); result = 31 * result + (_defaultAnnoValue != null ? _defaultAnnoValue.hashCode() : 0); return result; } void assignParameter( String name, int access ) { if( _paramInfos.isEmpty() ) { _paramInfos = new ArrayList<>( 2 ); } _paramInfos.add( new Parameter( name, access ) ); } public List<Parameter> getParameterInfos() { return _paramInfos; } }
3,560
3,269
// Time: O(1) // Space: O(1) class Vector2D { public: Vector2D(vector<vector<int>>& vec2d) : vec(vec2d) { x = vec.begin(); if (x != vec.end()) { y = x->begin(); adjustNextIter(); } } int next() { const auto ret = *y; ++y; adjustNextIter(); return ret; } bool hasNext() { return x != vec.end() && y != x->end(); } void adjustNextIter() { while (x != vec.end() && y == x->end()) { ++x; if (x != vec.end()) { y = x->begin(); } } } private: vector<vector<int>>& vec; vector<vector<int>>::iterator x; vector<int>::iterator y; };
401
507
<filename>tests/test_provider_davidji99_ultradns.py # tests/test_provider_davidji99_ultradns.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:29:41 UTC) def test_provider_import(): import terrascript.provider.davidji99.ultradns def test_resource_import(): from terrascript.resource.davidji99.ultradns import ultradns_dirpool from terrascript.resource.davidji99.ultradns import ultradns_probe_http from terrascript.resource.davidji99.ultradns import ultradns_probe_ping from terrascript.resource.davidji99.ultradns import ultradns_rdpool from terrascript.resource.davidji99.ultradns import ultradns_record from terrascript.resource.davidji99.ultradns import ultradns_tcpool # TODO: Shortcut imports without namespace for official and supported providers. # TODO: This has to be moved into a required_providers block. # def test_version_source(): # # import terrascript.provider.davidji99.ultradns # # t = terrascript.provider.davidji99.ultradns.ultradns() # s = str(t) # # assert 'https://github.com/davidji99/terraform-provider-ultradns' in s # assert '2.1.0' in s
421
1,144
/* * Bitmain Antminer S1 board support * * Copyright (C) 2015 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published * by the Free Software Foundation. */ #include <linux/gpio.h> #include <asm/mach-ath79/ath79.h> #include <asm/mach-ath79/ar71xx_regs.h> #include "common.h" #include "dev-eth.h" #include "dev-gpio-buttons.h" #include "dev-leds-gpio.h" #include "dev-m25p80.h" #include "dev-wmac.h" #include "machtypes.h" #include "dev-usb.h" #define ANTMINER_S1_GPIO_BTN_RESET 11 #define ANTMINER_S1_GPIO_LED_SYSTEM 23 #define ANTMINER_S1_GPIO_LED_WLAN 0 #define ANTMINER_S1_GPIO_USB_POWER 26 #define ANTMINER_S1_KEYSPOLL_INTERVAL 20 /* msecs */ #define ANTMINER_S1_KEYSDEBOUNCE_INTERVAL (3 * ANTMINER_S1_KEYSPOLL_INTERVAL) static const char *ANTMINER_S1_part_probes[] = { "tp-link", NULL, }; static struct flash_platform_data ANTMINER_S1_flash_data = { .part_probes = ANTMINER_S1_part_probes, }; static struct gpio_led ANTMINER_S1_leds_gpio[] __initdata = { { .name = "antminer-s1:green:system", .gpio = ANTMINER_S1_GPIO_LED_SYSTEM, .active_low = 0, },{ .name = "antminer-s1:green:wlan", .gpio = ANTMINER_S1_GPIO_LED_WLAN, .active_low = 0, }, }; static struct gpio_keys_button ANTMINER_S1_GPIO_keys[] __initdata = { { .desc = "reset", .type = EV_KEY, .code = KEY_RESTART, .debounce_interval = ANTMINER_S1_KEYSDEBOUNCE_INTERVAL, .gpio = ANTMINER_S1_GPIO_BTN_RESET, .active_low = 0, }, }; static void __init antminer_s1_setup(void) { u8 *mac = (u8 *) KSEG1ADDR(0x1f01fc00); u8 *ee = (u8 *) KSEG1ADDR(0x1fff1000); /* disable PHY_SWAP and PHY_ADDR_SWAP bits */ ath79_setup_ar933x_phy4_switch(false, false); ath79_register_leds_gpio(-1, ARRAY_SIZE(ANTMINER_S1_leds_gpio), ANTMINER_S1_leds_gpio); ath79_register_gpio_keys_polled(-1, ANTMINER_S1_KEYSPOLL_INTERVAL, ARRAY_SIZE(ANTMINER_S1_GPIO_keys), ANTMINER_S1_GPIO_keys); gpio_request_one(ANTMINER_S1_GPIO_USB_POWER, GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED, "USB power"); ath79_register_usb(); ath79_register_m25p80(&ANTMINER_S1_flash_data); ath79_init_mac(ath79_eth0_data.mac_addr, mac, 1); ath79_init_mac(ath79_eth1_data.mac_addr, mac, -1); ath79_register_mdio(0, 0x0); ath79_register_eth(0); ath79_register_eth(1); ath79_register_wmac(ee, mac); } MIPS_MACHINE(ATH79_MACH_ANTMINER_S1, "ANTMINER-S1", "Antminer-S1", antminer_s1_setup);
1,227
776
package testapp.endpoint.binding.single; public class FloatActionParameterBindingTest extends PrimitiveTypeActionParameterBindingTestBase<Float> { @Override protected String primitiveUrlPath() { return "float_p"; } @Override protected String urlPath() { return "float_w"; } @Override protected Float nonNullValue() { return Float.MIN_VALUE; } @Override protected String primitiveDefValueStr() { return "0.0"; } @Override protected Object outOfScopeValue() { return Double.MAX_VALUE; } }
221
332
// Autogenerated from vk-api-schema. Please don't edit it manually. package com.vk.api.sdk.queries.docs; import com.vk.api.sdk.client.AbstractQueryBuilder; import com.vk.api.sdk.client.VkApiClient; import com.vk.api.sdk.client.actors.GroupActor; import com.vk.api.sdk.client.actors.UserActor; import com.vk.api.sdk.objects.docs.responses.SearchResponse; import java.util.Arrays; import java.util.List; /** * Query for Docs.search method */ public class DocsSearchQuery extends AbstractQueryBuilder<DocsSearchQuery, SearchResponse> { /** * Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters * * @param client VK API client * @param actor actor with access token * @param q value of "q" parameter. */ public DocsSearchQuery(VkApiClient client, UserActor actor, String q) { super(client, "docs.search", SearchResponse.class); accessToken(actor.getAccessToken()); q(q); } /** * Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters * * @param client VK API client * @param actor actor with access token * @param q value of "q" parameter. */ public DocsSearchQuery(VkApiClient client, GroupActor actor, String q) { super(client, "docs.search", SearchResponse.class); accessToken(actor.getAccessToken()); q(q); } /** * Search query string. * * @param value value of "q" parameter. * @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern. */ protected DocsSearchQuery q(String value) { return unsafeParam("q", value); } /** * Set search own * * @param value value of "search own" parameter. * @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern. */ public DocsSearchQuery searchOwn(Boolean value) { return unsafeParam("search_own", value); } /** * Number of results to return. * * @param value value of "count" parameter. Minimum is 0. By default 20. * @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern. */ public DocsSearchQuery count(Integer value) { return unsafeParam("count", value); } /** * Offset needed to return a specific subset of results. * * @param value value of "offset" parameter. Minimum is 0. * @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern. */ public DocsSearchQuery offset(Integer value) { return unsafeParam("offset", value); } /** * Set return tags * * @param value value of "return tags" parameter. * @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern. */ public DocsSearchQuery returnTags(Boolean value) { return unsafeParam("return_tags", value); } @Override protected DocsSearchQuery getThis() { return this; } @Override protected List<String> essentialKeys() { return Arrays.asList("q", "access_token"); } }
1,165
3,428
{"id":"01151","group":"easy-ham-1","checksum":{"type":"MD5","value":"a454cc33dce527bedd70cf42cff5f079"},"text":"From <EMAIL> Wed Oct 2 15:59:24 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: [email protected]\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby jmason.org (Postfix) with ESMTP id 4192D16F19\n\tfor <jm@localhost>; Wed, 2 Oct 2002 15:59:05 +0100 (IST)\nReceived: from jalapeno [127.0.0.1]\n\tby localhost with IMAP (fetchmail-5.9.0)\n\tfor jm@localhost (single-drop); Wed, 02 Oct 2002 15:59:05 +0100 (IST)\nReceived: from listman.spamassassin.taint.org (listman.spamassassin.taint.org [6172.16.17.3211]) by\n dogma.slashnull.org (8.11.6/8.11.6) with ESMTP id g92EZWK13040 for\n <<EMAIL>>; Wed, 2 Oct 2002 15:35:33 +0100\nReceived: from listman.spamassassin.taint.org (localhost.localdomain [127.0.0.1]) by\n listman.redhat.com (Postfix) with ESMTP id AE42E3F99C; Wed, 2 Oct 2002\n 10:36:05 -0400 (EDT)\nDelivered-To: <EMAIL>\nReceived: from int-mx1.corp.spamassassin.taint.org (int-mx1.corp.spamassassin.taint.org\n [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id 89B4F40DCE\n for <<EMAIL>>; Wed, 2 Oct 2002 10:34:19 -0400\n (EDT)\nReceived: (from mail@localhost) by int-mx1.corp.spamassassin.taint.org (8.11.6/8.11.6)\n id g92EYJ728308 for <EMAIL>; Wed, 2 Oct 2002\n 10:34:19 -0400\nReceived: from mx1.spamassassin.taint.org (mx1.spamassassin.taint.org [172.16.48.31]) by\n int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id g92EYJf28304 for\n <<EMAIL>>; Wed, 2 Oct 2002 10:34:19 -0400\nReceived: from dimebox.bmc.com (adsl-66-140-152-233.dsl.hstntx.swbell.net\n [66.140.152.233]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id\n g92EFSi03196 for <<EMAIL>>; Wed, 2 Oct 2002 10:15:28 -0400\nReceived: by dimebox.bmc.com (Postfix, from userid 1205) id 2441837EAB;\n Wed, 2 Oct 2002 09:34:14 -0500 (CDT)\nReceived: from dimebox.bmc.com (localhost [127.0.0.1]) by dimebox.bmc.com\n (Postfix) with ESMTP id 040AE37EAA; Wed, 2 Oct 2002 09:34:13 -0500 (CDT)\nX-Mailer: exmh version 2.5 07/13/2001 cvs 10/01/2002 with nmh-1.0.4\nIn-Reply-To: <<EMAIL>>\nReferences: <<EMAIL>>\n <<EMAIL>>\nComments: In-reply-to <NAME> <<EMAIL>>\n message dated \"Wed, 02 Oct 2002 08:58:51 -0500.\"\nTo: <NAME> <<EMAIL>>\nCc: <EMAIL>\nSubject: Re: Unseen window versus Sequences Window\nMIME-Version: 1.0\nFrom: <NAME> <<EMAIL>>\nX-Image-Url: http://www.geocities.com/hal_devore_ii/haleye48.gif\nContent-Type: text/plain; charset=us-ascii\nMessage-Id: <6367.1<EMAIL>>\nX-Loop: <EMAIL>\nSender: <EMAIL>\nErrors-To: <EMAIL>\nX-Beenthere: <EMAIL>\nX-Mailman-Version: 2.0.1\nPrecedence: bulk\nList-Help: <mailto:<EMAIL>?subject=help>\nList-Post: <mailto:<EMAIL>>\nList-Subscribe: <https://listman.spamassassin.taint.org/mailman/listinfo/exmh-workers>,\n <mailto:<EMAIL>?subject=subscribe>\nList-Id: Discussion list for EXMH developers <exmh-workers.spamassassin.taint.org>\nList-Unsubscribe: <https://listman.spamassassin.taint.org/mailman/listinfo/exmh-workers>,\n <mailto:<EMAIL>?subject=unsubscribe>\nList-Archive: <https://listman.spamassassin.taint.org/mailman/private/exmh-workers/>\nDate: Wed, 02 Oct 2002 09:34:08 -0500\n\n\n>>>>> On Wed, 2 Oct 2002, \"Chris\" == <NAME> wrote:\n\n Chris> I'm not sure I'll get to it any time soon.\n\nWell, you have a pretty good idea of when I might get to it (the \nphrase hell freezes over comes to mind)... so whenever you can \nwill certainly be fine.\n\nThanks for considering it. In the meantime I've set the \n\"minimum entry lines\" to 1. It certainly isn't going to make me \ngo back to the old version.\n\n--Hal\n\n\n\n\n_______________________________________________\nExmh-workers mailing list\nExmh-<EMAIL>@redhat.com\nhttps://listman.redhat.com/mailman/listinfo/exmh-workers\n\n\n"}
1,662
356
package com.indeed.proctor.common; import com.indeed.proctor.common.model.Allocation; import com.indeed.proctor.common.model.Audit; import com.indeed.proctor.common.model.ConsumableTestDefinition; import com.indeed.proctor.common.model.TestBucket; import javax.annotation.Nonnull; import javax.annotation.Nullable; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; import java.util.SortedMap; import java.util.TreeMap; import static java.util.Collections.emptyMap; import static java.util.Collections.emptySet; import static java.util.Collections.emptySortedMap; /** * Return value from {@link Proctor#determineTestGroups(Identifiers, java.util.Map, java.util.Map)} * @author ketan * */ public class ProctorResult { public static final ProctorResult EMPTY = new ProctorResult( Audit.EMPTY_VERSION, emptySortedMap(), emptySortedMap(), emptyMap() ); private final String matrixVersion; /** * maps from testname to bucket */ @Nonnull private final SortedMap<String, TestBucket> buckets; /** * maps from testname to allocation */ @Nonnull private final SortedMap<String, Allocation> allocations; /** * maps from testname to TestDefinition */ @Nonnull private final Map<String, ConsumableTestDefinition> testDefinitions; /** * Create a ProctorResult with copies of the provided collections * @deprecated this constructor creates copies of all inputs */ @Deprecated public ProctorResult( @Nonnull final int matrixVersion, @Nonnull final Map<String, TestBucket> buckets, // allowing null for historical reasons @Nullable final Map<String, ConsumableTestDefinition> testDefinitions ) { this(Integer.toString(matrixVersion), buckets, emptyMap(), testDefinitions); } /** * Create a ProctorResult with copies of the provided collections * @deprecated this constructor creates copies of all inputs */ @Deprecated public ProctorResult( @Nonnull final String matrixVersion, @Nonnull final Map<String, TestBucket> buckets, // allowing null for historical reasons @Nullable final Map<String, ConsumableTestDefinition> testDefinitions ) { this(matrixVersion, buckets, emptyMap(), testDefinitions); } /** * Create a ProctorResult with copies of the provided collections * @param matrixVersion any string, used for debugging * @param buckets the resolved bucket for each test * @param allocations the determined allocation for each test * @param testDefinitions the original test definitions * @deprecated this constructor creates copies of all input collections */ @Deprecated public ProctorResult( final String matrixVersion, @Nonnull final Map<String, TestBucket> buckets, @Nonnull final Map<String, Allocation> allocations, // allowing null for historical reasons @Nullable final Map<String, ConsumableTestDefinition> testDefinitions ) { // Potentially client applications might need to build ProctorResult instances in each request, and some apis // have large proctorResult objects, so if teams use this constructor, this may have a noticeable // impact on latency and GC, so ideally clients should avoid this constructor. this( matrixVersion, new TreeMap<>(buckets), new TreeMap<>(allocations), (testDefinitions == null) ? emptyMap() : new HashMap<>(testDefinitions) ); } /** * Plain constructor, not creating TreeMaps. * * @param matrixVersion any string, used for debugging * @param buckets the resolved bucket for each test * @param allocations the determined allocation for each test * @param testDefinitions the original test definitions */ public ProctorResult( @Nonnull final String matrixVersion, @Nonnull final SortedMap<String, TestBucket> buckets, @Nonnull final SortedMap<String, Allocation> allocations, @Nonnull final Map<String, ConsumableTestDefinition> testDefinitions ) { this.matrixVersion = matrixVersion; this.buckets = buckets; this.allocations = allocations; this.testDefinitions = testDefinitions; } /** * @return a new Proctor Result, which does not allow modifying the contained collections. * The result's fields are views of the original fields, to reduce memory allocation effort. */ public static ProctorResult unmodifiableView(final ProctorResult proctorResult) { return new ProctorResult( proctorResult.matrixVersion, // using fields directly because methods do not expose SortedMap type Collections.unmodifiableSortedMap(proctorResult.buckets), Collections.unmodifiableSortedMap(proctorResult.allocations), Collections.unmodifiableMap(proctorResult.testDefinitions) ); } @SuppressWarnings("UnusedDeclaration") public String getMatrixVersion() { return matrixVersion; } /** * @return a SortedMap (should be ordered by testname) */ @Nonnull // returning Map instead of SortedMap for historic reasons (changing breaks compiled libraries) public Map<String, TestBucket> getBuckets() { return buckets; } /** * @return a SortedMap (should be ordered by testname) */ @Nonnull // returning Map instead of SortedMap for historic reasons (changing breaks compiled libraries) public Map<String, Allocation> getAllocations() { return allocations; } @Nonnull public Map<String, ConsumableTestDefinition> getTestDefinitions() { return testDefinitions; } }
2,159
527
/* Alloy Analyzer 4 -- Copyright (c) 2006-2009, <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files * (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, * merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ package edu.mit.csail.sdg.alloy4graph; import javax.swing.Icon; import edu.mit.csail.sdg.alloy4.OurUtil; /** * Immutable; this defines the set of possible node shapes (BOX, CIRCLE, * ELLIPSE...) * <p> * <b>Thread Safety:</b> Can be called only by the AWT event thread. */ public enum DotShape { /** Ellipse */ ELLIPSE("Ellipse", "ellipse"), /** Box */ BOX("Box", "box"), /** Circle */ CIRCLE("Circle", "circle"), /** Egg */ EGG("Egg", "egg"), /** Triangle */ TRIANGLE("Triangle", "triangle"), /** Diamond */ DIAMOND("Diamond", "diamond"), /** Trapezoid */ TRAPEZOID("Trapezoid", "trapezium"), /** Parallelogram */ PARALLELOGRAM("Parallelogram", "parallelogram"), /** House */ HOUSE("House", "house"), /** Hexagon */ HEXAGON("Hexagon", "hexagon"), /** Octagon */ OCTAGON("Octagon", "octagon"), /** Double Circle */ DOUBLE_CIRCLE("Dbl Circle", "doublecircle"), /** Double Octagon */ DOUBLE_OCTAGON("Dbl Octagon", "doubleoctagon"), /** Triple Octagon */ TRIPLE_OCTAGON("Tpl Octagon", "tripleoctagon"), /** Inverted Triangle */ INV_TRIANGLE("Inv Triangle", "invtriangle"), /** Inverted House */ INV_HOUSE("Inv House", "invhouse"), /** Inverted Trapezoid */ INV_TRAPEZOID("Inv Trapezoid", "invtrapezium"), /** Lined Diamond */ M_DIAMOND("Lined Diamond", "Mdiamond"), /** Lined Square */ M_SQUARE("Lined Square", "Msquare"), /** Lined Circle */ M_CIRCLE("Lined Circle", "Mcircle"); /** The description of this line style. */ private final String name; /** The icon for this line style. */ private final Icon icon; /** The corresponding DOT attribute. */ private final String dotName; /** Constructs a DotShape object. */ private DotShape(String name, String dotName) { this.name = name; this.icon = OurUtil.loadIcon("icons/ShapeIcons/" + dotName + ".gif"); this.dotName = dotName; } /** * Returns the String that will be displayed in the GUI to represent this value. */ public String getDisplayedText() { return name; } /** * Returns the String that should be written into the dot file for this value, * when used with the given palette. */ public String getDotText() { return dotName; } /** * Returns the Icon that will be displayed in the GUI to represent this value, * when used with the given palette. */ public Icon getIcon() { return icon; } /** * This method is used in parsing the XML value into a valid Shape; returns null * if there is no match. */ public static DotShape parse(String x) { if (x != null) for (DotShape d : values()) if (d.name.equals(x)) return d; return null; } /** This value is used in writing XML. */ @Override public String toString() { return name; } }
2,212
390
<gh_stars>100-1000 # -*- coding: utf-8 -*- # # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 # # BACE from MoleculeNet for the prediction of quantitative (IC50) and # qualitative (binary label) binding results for a set of inhibitors of # human beta-secretase 1 (BACE-1). import pandas as pd from dgl.data.utils import get_download_dir, download, _get_dgl_url, extract_archive from .csv_dataset import MoleculeCSVDataset from ..utils.mol_to_graph import smiles_to_bigraph __all__ = ['BACE'] class BACE(MoleculeCSVDataset): r"""BACE from MoleculeNet for the prediction of quantitative and qualitative binding results for a set of inhibitors of human beta-secretase 1 (BACE-1) The dataset contains experimental values reported in scientific literature over the past decade, some with detailed crystal structures available. The MoleculeNet benchmark merged a collection of 1522 compounds with their 2D structures and binary labels. References: * [1] MoleculeNet: A Benchmark for Molecular Machine Learning. Parameters ---------- smiles_to_graph: callable, str -> DGLGraph A function turning a SMILES string into a DGLGraph. Default to :func:`dgllife.utils.smiles_to_bigraph`. node_featurizer : callable, rdkit.Chem.rdchem.Mol -> dict Featurization for nodes like atoms in a molecule, which can be used to update ndata for a DGLGraph. Default to None. edge_featurizer : callable, rdkit.Chem.rdchem.Mol -> dict Featurization for edges like bonds in a molecule, which can be used to update edata for a DGLGraph. Default to None. load : bool Whether to load the previously pre-processed dataset or pre-process from scratch. ``load`` should be False when we want to try different graph construction and featurization methods and need to preprocess from scratch. Default to False. log_every : bool Print a message every time ``log_every`` molecules are processed. Default to 1000. cache_file_path : str Path to the cached DGLGraphs, default to 'bace_dglgraph.bin'. n_jobs : int The maximum number of concurrently running jobs for graph construction and featurization, using joblib backend. Default to 1. Examples -------- >>> import torch >>> from dgllife.data import BACE >>> from dgllife.utils import smiles_to_bigraph, CanonicalAtomFeaturizer >>> dataset = BACE(smiles_to_bigraph, CanonicalAtomFeaturizer()) >>> # Get size of the dataset >>> len(dataset) 1513 >>> # Get the 0th datapoint, consisting of SMILES, DGLGraph, labels, and masks >>> dataset[0] ('O1CC[C@@H](NC(=O)[C@@H](Cc2cc3cc(ccc3nc2N)-c2ccccc2C)C)CC1(C)C', Graph(num_nodes=32, num_edges=70, ndata_schemes={'h': Scheme(shape=(74,), dtype=torch.float32)} edata_schemes={}), tensor([1.]), tensor([1.])) The dataset instance also contains information about molecule ids. >>> dataset.ids[i] We can also get the id along with SMILES, DGLGraph, labels, and masks at once. >>> dataset.load_full = True >>> dataset[0] ('O1CC[C@@H](NC(=O)[C@@H](Cc2cc3cc(ccc3nc2N)-c2ccccc2C)C)CC1(C)C', Graph(num_nodes=32, num_edges=70, ndata_schemes={'h': Scheme(shape=(74,), dtype=torch.float32)} edata_schemes={}), tensor([1.]), tensor([1.]), 'BACE_1') To address the imbalance between positive and negative samples, we can re-weight positive samples for each task based on the training datapoints. >>> train_ids = torch.arange(500) >>> dataset.task_pos_weights(train_ids) tensor([0.2594]) """ def __init__(self, smiles_to_graph=smiles_to_bigraph, node_featurizer=None, edge_featurizer=None, load=False, log_every=1000, cache_file_path='./bace_dglgraph.bin', n_jobs=1): self._url = 'dataset/bace.zip' data_path = get_download_dir() + '/bace.zip' dir_path = get_download_dir() + '/bace' download(_get_dgl_url(self._url), path=data_path, overwrite=False) extract_archive(data_path, dir_path) df = pd.read_csv(dir_path + '/bace.csv') super(BACE, self).__init__(df=df, smiles_to_graph=smiles_to_graph, node_featurizer=node_featurizer, edge_featurizer=edge_featurizer, smiles_column='mol', cache_file_path=cache_file_path, task_names=['Class'], load=load, log_every=log_every, init_mask=True, n_jobs=n_jobs) self.load_full = False self.ids = df['CID'].tolist() self.ids = [self.ids[i] for i in self.valid_ids] def __getitem__(self, item): """Get datapoint with index Parameters ---------- item : int Datapoint index Returns ------- str SMILES for the ith datapoint DGLGraph DGLGraph for the ith datapoint Tensor of dtype float32 and shape (T) Labels of the ith datapoint for all tasks. T for the number of tasks. Tensor of dtype float32 and shape (T) Binary masks of the ith datapoint indicating the existence of labels for all tasks. str, optional Id for the ith datapoint, returned only when ``self.load_full`` is True. """ if self.load_full: return self.smiles[item], self.graphs[item], self.labels[item], \ self.mask[item], self.ids[item] else: return self.smiles[item], self.graphs[item], self.labels[item], self.mask[item]
2,694
589
<reponame>ClaudioWaldvogel/inspectIT<filename>inspectit.shared.all/src/main/java/rocks/inspectit/shared/all/instrumentation/config/impl/AbstractSensorTypeConfig.java<gh_stars>100-1000 package rocks.inspectit.shared.all.instrumentation.config.impl; import java.util.HashMap; import java.util.Map; /** * Abstract sensor type configuration class which is used by the {@link MethodSensorTypeConfig} and * the {@link PlatformSensorTypeConfig}. * * @author <NAME> * @see MethodSensorTypeConfig * @see PlatformSensorTypeConfig * */ public abstract class AbstractSensorTypeConfig { /** * The hash value of this sensor type. */ private long id = -1; /** * The name of the class. */ private String className; /** * Some additional parameters. */ private Map<String, Object> parameters = new HashMap<String, Object>(); /** * Returns the id. * * @return The id. */ public long getId() { return id; } /** * Set the id of this sensor type. * * @param id * The id to set. */ public void setId(long id) { this.id = id; } /** * Returns the class name of the sensor type as fully qualified. * * @return The class name. */ public String getClassName() { return className; } /** * The class name has to be stored as fully qualified, example: <code>java.lang.String</code>. * * @param className * The class name. */ public void setClassName(String className) { this.className = className; } /** * Returns a {@link Map} of optional parameters. Is never null, but the size of the map could be * 0. * * @return A map of parameters. */ public Map<String, Object> getParameters() { return parameters; } /** * The {@link Map} of parameters stores additional information about the sensor type. Key and * value should be both Strings. * * @param parameters * The parameters. */ public void setParameters(Map<String, Object> parameters) { this.parameters = parameters; } }
675
4,013
<reponame>niradler/checkov<gh_stars>1000+ from checkov.common.models.enums import CheckCategories, CheckResult from checkov.kubernetes.base_spec_check import BaseK8Check class KubeletAnonymousAuth(BaseK8Check): def __init__(self): # CIS-1.6 4.2.1 id = "CKV_K8S_138" name = "Ensure that the --anonymous-auth argument is set to false" categories = [CheckCategories.KUBERNETES] supported_entities = ['containers'] super().__init__(name=name, id=id, categories=categories, supported_entities=supported_entities) def get_resource_id(self, conf): return f'{conf["parent"]} - {conf["name"]}' if conf.get('name') else conf["parent"] def scan_spec_conf(self, conf): if "command" in conf: if "kubelet" in conf["command"]: if "--anonymous-auth=true" in conf["command"] or "--anonymous-auth=false" not in conf["command"]: return CheckResult.FAILED return CheckResult.PASSED check = KubeletAnonymousAuth()
440
488
<filename>src/util/Sawyer/StackAllocator.h // WARNING: Changes to this file must be contributed back to Sawyer or else they will // be clobbered by the next update from Sawyer. The Sawyer repository is at // https://github.com/matzke1/sawyer. #ifndef SAWYER_STACK_ALLOCATOR #define SAWYER_STACK_ALLOCATOR #include <Sawyer/Sawyer.h> namespace Sawyer { /** Stack-like allocator. * * This allocator allocates single elements of POD type from a stack-like pool. The allocator is intentionally not thread safe * and is intended to be used in multi-threaded applications where each thread is allocating and freeing elements in a * stack-like order from its own allocator. */ template<typename T> class StackAllocator { public: typedef T Value; /**< Type of values being allocated. */ private: const size_t elmtsPerBlock_; // elements per large block of memory requested std::list<T*> blocks_; // front() is the most recent block from which an element is allocated size_t available_; // number of elements available in most recent block std::list<T*> freeBlocks_; // blocks that aren't being used currently public: explicit StackAllocator(size_t elmtsPerBlock) : elmtsPerBlock_(elmtsPerBlock), available_(0) {} ~StackAllocator() { prune(); BOOST_FOREACH (T *ptr, blocks_) delete[] ptr; blocks_.clear(); available_ = 0; } /** Free unused large blocks. */ void prune() { BOOST_FOREACH (T *ptr, freeBlocks_) delete[] ptr; freeBlocks_.clear(); } /** Reserve space for objects. Reserves space for @p nElmts elements of type @p T and returns a pointer to the first * one. Although this reserves space for objects, the memory is not yet usable to store an object. The next allocation * request will give back the same address as returned here, unless the allocated is reverted to an earlier address in the * mean time. */ T* reserve(size_t nElmts) { if (nElmts > available_) { ASSERT_require(nElmts <= elmtsPerBlock_); allocateBlock(); } return blocks_.front() + (elmtsPerBlock_ - available_); } /** Allocate one element. If this allocation is below the amount previously reserved then it is guaranteed to be adjacent * to the previous allocation. */ T* allocNext() { if (0 == available_) allocateBlock(); return blocks_.front() + (elmtsPerBlock_ - available_--); } /** Free all elements back to the specified element. Reverts the state of this allocator so that the specified @p ptr * would be the return value from @ref allocNext. If this results in whole large blocks becoming unused they are not * returned to the system (call @ref prune if that's desired). */ void revert(T *ptr) { ASSERT_not_null(ptr); while (!blocks_.empty() && (ptr < blocks_.front() || ptr >= blocks_.front() + elmtsPerBlock_)) freeBlock(); ASSERT_always_forbid2(blocks_.empty(), "bad address or previously reverted"); available_ = elmtsPerBlock_ - (ptr - blocks_.front()); } private: void allocateBlock() { if (freeBlocks_.empty()) { blocks_.insert(blocks_.begin(), new T[elmtsPerBlock_]); } else { blocks_.insert(blocks_.begin(), freeBlocks_.front()); freeBlocks_.erase(freeBlocks_.begin()); } available_ = elmtsPerBlock_; } void freeBlock() { ASSERT_forbid(blocks_.empty()); freeBlocks_.insert(freeBlocks_.begin(), blocks_.front()); blocks_.erase(blocks_.begin()); available_ = 0; } }; } // namespace #endif
1,516
763
<reponame>zabrewer/batfish package org.batfish.specifier; import java.util.Set; import org.batfish.datamodel.IpAccessList; /** * An abstract specification of a set of filters in the network. * * <p>TODO: Only IPv4 filters are supported at the moment; extend to IPv6 filters. */ public interface FilterSpecifier { /** * Returns the filters on {@code node} that match this specifier. * * <p>The 'node' string should be the canonical name that is in the configs map (and not, e.g., an * uppercase version that user entered) * * @param ctxt Information about the network that may be used to determine match. */ Set<IpAccessList> resolve(String node, SpecifierContext ctxt); }
223
1,223
<reponame>Oliver-makes-code/fabric-carpet<gh_stars>1000+ package carpet.fakes; public interface ExperienceOrbInterface { int getCombineDelay(); void setCombineDelay(int what); void setAmount(int what); int getCount(); void setCount(int i); }
100
2,608
<gh_stars>1000+ package com.looklook.xinghongfei.looklook.presenter; /** * Created by xinghongfei on 16/8/17. */ public interface INewTopDescriblePresenter extends BasePresenter { void getDescribleMessage(String id); }
80
2,151
<gh_stars>1000+ // Copyright (c) 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/third_party/quic/core/chlo_extractor.h" #include "net/third_party/quic/core/crypto/crypto_framer.h" #include "net/third_party/quic/core/crypto/crypto_handshake_message.h" #include "net/third_party/quic/core/crypto/crypto_protocol.h" #include "net/third_party/quic/core/crypto/quic_decrypter.h" #include "net/third_party/quic/core/crypto/quic_encrypter.h" #include "net/third_party/quic/core/quic_framer.h" #include "net/third_party/quic/platform/api/quic_string_piece.h" #include "net/third_party/quic/platform/api/quic_text_utils.h" namespace net { namespace { class ChloFramerVisitor : public QuicFramerVisitorInterface, public CryptoFramerVisitorInterface { public: ChloFramerVisitor(QuicFramer* framer, const QuicTagVector& create_session_tag_indicators, ChloExtractor::Delegate* delegate); ~ChloFramerVisitor() override = default; // QuicFramerVisitorInterface implementation void OnError(QuicFramer* framer) override {} bool OnProtocolVersionMismatch(ParsedQuicVersion version) override; void OnPacket() override {} void OnPublicResetPacket(const QuicPublicResetPacket& packet) override {} void OnVersionNegotiationPacket( const QuicVersionNegotiationPacket& packet) override {} bool OnUnauthenticatedPublicHeader(const QuicPacketHeader& header) override; bool OnUnauthenticatedHeader(const QuicPacketHeader& header) override; void OnDecryptedPacket(EncryptionLevel level) override {} bool OnPacketHeader(const QuicPacketHeader& header) override; bool OnStreamFrame(const QuicStreamFrame& frame) override; bool OnAckFrame(const QuicAckFrame& frame) override; bool OnAckFrameStart(QuicPacketNumber largest_acked, QuicTime::Delta ack_delay_time) override; bool OnAckRange(QuicPacketNumber start, QuicPacketNumber end, bool last_range) override; bool OnStopWaitingFrame(const QuicStopWaitingFrame& frame) override; bool OnPingFrame(const QuicPingFrame& frame) override; bool OnRstStreamFrame(const QuicRstStreamFrame& frame) override; bool OnConnectionCloseFrame(const QuicConnectionCloseFrame& frame) override; bool OnGoAwayFrame(const QuicGoAwayFrame& frame) override; bool OnWindowUpdateFrame(const QuicWindowUpdateFrame& frame) override; bool OnBlockedFrame(const QuicBlockedFrame& frame) override; bool OnPaddingFrame(const QuicPaddingFrame& frame) override; void OnPacketComplete() override {} bool IsValidStatelessResetToken(QuicUint128 token) const override; void OnAuthenticatedIetfStatelessResetPacket( const QuicIetfStatelessResetPacket& packet) override {} // CryptoFramerVisitorInterface implementation. void OnError(CryptoFramer* framer) override; void OnHandshakeMessage(const CryptoHandshakeMessage& message) override; bool found_chlo() { return found_chlo_; } bool chlo_contains_tags() { return chlo_contains_tags_; } private: QuicFramer* framer_; const QuicTagVector& create_session_tag_indicators_; ChloExtractor::Delegate* delegate_; bool found_chlo_; bool chlo_contains_tags_; QuicConnectionId connection_id_; }; ChloFramerVisitor::ChloFramerVisitor( QuicFramer* framer, const QuicTagVector& create_session_tag_indicators, ChloExtractor::Delegate* delegate) : framer_(framer), create_session_tag_indicators_(create_session_tag_indicators), delegate_(delegate), found_chlo_(false), chlo_contains_tags_(false), connection_id_(0) {} bool ChloFramerVisitor::OnProtocolVersionMismatch(ParsedQuicVersion version) { if (!framer_->IsSupportedVersion(version)) { return false; } framer_->set_version(version); return true; } bool ChloFramerVisitor::OnUnauthenticatedPublicHeader( const QuicPacketHeader& header) { connection_id_ = header.connection_id; return true; } bool ChloFramerVisitor::OnUnauthenticatedHeader( const QuicPacketHeader& header) { return true; } bool ChloFramerVisitor::OnPacketHeader(const QuicPacketHeader& header) { return true; } bool ChloFramerVisitor::OnStreamFrame(const QuicStreamFrame& frame) { QuicStringPiece data(frame.data_buffer, frame.data_length); if (frame.stream_id == kCryptoStreamId && frame.offset == 0 && QuicTextUtils::StartsWith(data, "CHLO")) { CryptoFramer crypto_framer; crypto_framer.set_visitor(this); if (!crypto_framer.ProcessInput(data, Perspective::IS_SERVER)) { return false; } // Interrogate the crypto framer and see if there are any // intersecting tags between what we saw in the maybe-CHLO and the // indicator set. for (const QuicTag tag : create_session_tag_indicators_) { if (crypto_framer.HasTag(tag)) { chlo_contains_tags_ = true; } } if (chlo_contains_tags_ && delegate_) { // Unfortunately, because this is a partial CHLO, // OnHandshakeMessage was never called, so the ALPN was never // extracted. Fake it up a bit and send it to the delegate so that // the correct dispatch can happen. crypto_framer.ForceHandshake(); } } return true; } bool ChloFramerVisitor::OnAckFrame(const QuicAckFrame& frame) { return true; } bool ChloFramerVisitor::OnAckFrameStart(QuicPacketNumber /*largest_acked*/, QuicTime::Delta /*ack_delay_time*/) { return true; } bool ChloFramerVisitor::OnAckRange(QuicPacketNumber /*start*/, QuicPacketNumber /*end*/, bool /*last_range*/) { return true; } bool ChloFramerVisitor::OnStopWaitingFrame(const QuicStopWaitingFrame& frame) { return true; } bool ChloFramerVisitor::OnPingFrame(const QuicPingFrame& frame) { return true; } bool ChloFramerVisitor::OnRstStreamFrame(const QuicRstStreamFrame& frame) { return true; } bool ChloFramerVisitor::OnConnectionCloseFrame( const QuicConnectionCloseFrame& frame) { return true; } bool ChloFramerVisitor::OnGoAwayFrame(const QuicGoAwayFrame& frame) { return true; } bool ChloFramerVisitor::OnWindowUpdateFrame( const QuicWindowUpdateFrame& frame) { return true; } bool ChloFramerVisitor::OnBlockedFrame(const QuicBlockedFrame& frame) { return true; } bool ChloFramerVisitor::OnPaddingFrame(const QuicPaddingFrame& frame) { return true; } bool ChloFramerVisitor::IsValidStatelessResetToken(QuicUint128 token) const { return false; } void ChloFramerVisitor::OnError(CryptoFramer* framer) {} void ChloFramerVisitor::OnHandshakeMessage( const CryptoHandshakeMessage& message) { if (delegate_ != nullptr) { delegate_->OnChlo(framer_->transport_version(), connection_id_, message); } found_chlo_ = true; } } // namespace // static bool ChloExtractor::Extract(const QuicEncryptedPacket& packet, const ParsedQuicVersionVector& versions, const QuicTagVector& create_session_tag_indicators, Delegate* delegate) { QuicFramer framer(versions, QuicTime::Zero(), Perspective::IS_SERVER); ChloFramerVisitor visitor(&framer, create_session_tag_indicators, delegate); framer.set_visitor(&visitor); if (!framer.ProcessPacket(packet)) { return false; } return visitor.found_chlo() || visitor.chlo_contains_tags(); } } // namespace net
2,820
2,023
<reponame>tdiprima/code import string,sys,os import csv #http://www.object-craft.com.au/projects/csv/ import getopt # file props.py from props import * #rem download from http://object-craft.com.au/projects/csv class csv2xml: """Given an input parameter of a property file and a CSV file, an output file name, convert the CSV file to the output file according to the property definitions""" propsFile="" #properties file name inputFile="" #input file name infile =0 # handle outputFile="" # output file name outfile = 0 #output file handle # Standard XML declaration PROLOG = "<?xml version=\"1.0\"?>" # Start tag OPEN_START = "<" # end tag OPEN_END = "</" # Close CLOSE = ">" # newline NEWLINE = "\n" #indentation INDENT = " " #Field Delimiter property; from property Fielddelimiter fldDelimiter="" # Row delimiter property : from property Rowdelimiter rowDelimiter="" #Number of fields per row nfields=0 #Number of rows (by calculation) nrows = 0 #Header, the xml decl, doctype etc. header1,header2,header3= "","","" #tag to use for each row. rowname="" #tag to use for root of output document rootname="" #tags to use for successive fields fieldnames={} #debug debug=0; debug2=0; def __init__ (self): version="0.3"; print "csv2xml, version ",version self.propsFile="" self.inputFile="" self.outputFile="" self.fieldnames.clear() def usage(self): print self.__doc__ print "Usage: csv2xml -p propertyFile -i inputFile -o outputFile" def checkFiles(self, inFile,outFile,pFile): #print "Outfile is: ", outFile if not(os.access(inFile, os.R_OK | os.F_OK)): print "\tNo read access to Input File ",inFile, "Quitting" sys.exit(2) if not(os.access(outFile, os.F_OK)): print "output file does not exist, creating it" self.outfile=open(outFile, 'w') self.outfile.close(); if not(os.access(pFile, os.R_OK|os.F_OK)): print "\tNo read access to Properties File ",pFile, "Quitting" sys.exit(2) return 1 def setParameters(self, props): """ Load up the global parameter attributes. Loads the global properties from the props class. params: props - An instance of class props. """ self.fldDelimiter = props.getProperty("head","fielddelimiter","X") self.rowDelimiter = props.getProperty("head","rowdelimiter","X") self.rootname = props.getProperty("head","rootname") self.rowname = props.getProperty("head","recordname") if self.debug: print "RowDelim[" , self.rowDelimiter , "]" self.dtd = props.getProperty("head","dtd","null") self.comment = props.getProperty("head","comment") if (self.fldDelimiter == "X"): print "Warning: Property file error: Fielddelimiter not set, using comma" self.fldDelimiter="," if (self.rowDelimiter[0] == 'X'): print "Warning: Property file error: Rowdelimiter not set, using NewLine" self.rowDelimiter="\n" self.header1 = self.PROLOG + self.NEWLINE if (self.dtd != ""): self.header2 ="<!DOCTYPE " + self.rootname + " SYSTEM " +"\""+ self.dtd + "\""+ ">"+ self.NEWLINE + self.NEWLINE self.header3 ="<!-- " + self.comment + " -->" + self.NEWLINE self.nfields = props.getProperty("head","fields") if self.debug2: print "setParameters: ",self.nfields for i in range(int(self.nfields)): fieldref = "field" + str(i) #self.addProp(fieldref, props.getProperty('fields',fieldref)) self.fieldnames[fieldref]=props.getProperty('fields',fieldref) if self.debug2: print "setParameters: ",props.getProperty('fields',fieldref) if self.debug2: print self.fieldnames.keys() def convert(self): # # *Convert the input file rows into XML, # * and outputting. # * # * # ** output =open(self.outputFile, 'w') output.write(self.header1+self.header2+self.header3) if self.debug: print "convert: writing to ", self.outputFile print "convert: reading fm: ", self.inputFile output.write(self.OPEN_START+self.rootname+self.CLOSE) #ROOT tag # p = csv.parser() f = open(self.inputFile,'r') nrows = int(self.nfields) # number of fields #Read and parse input file till full record in hand as list while 1: line = f.readline() if not line: break rec = p.parse(line) if rec is not None: output.write(self.OPEN_START+self.rowname+self.CLOSE+self.NEWLINE) #<entry> idx = 0 for fld in rec: #idx = rec.index(fld) #index of this item nfld1 = string.replace(fld,"&","&amp;") # subst for & nfld = string.replace(nfld1,"£","&#x00A3;") # subst for £ tag = self.fieldnames['field'+str(idx)] output.write(self.INDENT+self.OPEN_START+tag+self.CLOSE) output.write(nfld) output.write(self.OPEN_END+tag+self.CLOSE+self.NEWLINE) idx += 1 output.write(self.OPEN_END+self.rowname+self.CLOSE+self.NEWLINE)# </entry> output.write(self.OPEN_END+self.rootname+self.CLOSE) #ROOT tag output.close() #################### Main ############################# def main(self): if len(sys.argv) < 3: self.usage() sys.exit(2) try: opts,args = getopt.getopt(sys.argv[1:],"i:o:p:h",["help","input=","output=","properties="]) except getopt.GetoptError: self.usage() print "Option Exception" sys.exit(2) indexFile="" searchPattern="" for o, a in opts: if self.debug: print "main:",o,a if o in ("-h","--h","-help"): usage() sys.exit() if o in ("-p","--p","--properties"): self.propsFile= a # set properties file if o in ("-i","--i","--input"): self.inputFile = a if o in ("-o","--o","--output"): self.outputFile=a # set output file if (self.debug): print "Input File ",self.inputFile print "Properties File ",self.propsFile print "Output File ",self.outputFile if self.checkFiles(self.inputFile,self.outputFile,self.propsFile): if (self.debug): print "Files All OK" #set file handles for files self.outfile = file(self.outputFile, 'w') self.infile = file(self.inputFile, 'r') print "\tConverting "+self.inputFile+" using "+self.propsFile if (self.debug): print "Files opened." #instantiate the properties. myprops= props(self.propsFile) self.setParameters(myprops) self.convert() # convert the file. if self.debug: print "Mycsv: Done" if __name__ == "__main__": con=csv2xml() con.main() #==================================================================== Seperate class, probably should be included in the main file. This reads a configuration file of the form: The header group adds a comment, specifies the field and row delimiters to be expected (\n should not be changed) the recordname is the row tag. The number of fields specifies the number of fields to expect. This format is specified in one of the RFC's. [head] comment=Generated using CSVToXML fielddelimiter=, rowdelimiter=\n rootname=products recordname=entry fields=35 [fields] field0 =ProdID field1 =Prod_Code field2 =Print_Name field3 =Prod_Name field4 =Add_Info field5 =Desc_Info field6 =Description field7 =Audience_Other field8 =Product_Type field9 =SectionID field10 =SectionID2 field11 =Related_Products field12 =Related_Sections1 field13 =Related_Sections2 field14 =Related_Sections3 #==================================================================== import ConfigParser import sys # # Properties file props.py. Works in conjuction with # pcatsCSV.py to extract properties from a properties file. # #Only method, retrieve a named property from the properties file # format of props file as per java # addition, comment as per python class props: """ Mimic the java getProperties """ handle = "" # file handle for property. debug = 0 def __init__ (self,propsFileName): if self.debug: print "props: Init called on : ",propsFileName try: self.handle=ConfigParser.ConfigParser() self.handle.readfp(open (propsFileName)) except: print "\tprops: Error reading properties file, quitting" sys.exit(2) if self.debug: print "props: Done reading" def getProperty (self,sect, proName, *defaultValue): val = "" try: val = self.handle.get(sect,proName) except (ConfigParser.NoOptionError): print "props.getProperty, Property \""+ proName+ "\" Not found" if self.debug: if val=="": print "props.getProperty[", proName, "]Not found" else: print "props.getProperty, [", proName, "] Value ", val return val
4,617
2,151
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_SERVICEWORKERS_SERVICE_WORKER_WINDOW_CLIENT_H_ #define THIRD_PARTY_BLINK_RENDERER_MODULES_SERVICEWORKERS_SERVICE_WORKER_WINDOW_CLIENT_H_ #include <memory> #include "third_party/blink/renderer/bindings/core/v8/script_promise.h" #include "third_party/blink/renderer/modules/modules_export.h" #include "third_party/blink/renderer/modules/serviceworkers/service_worker_client.h" #include "third_party/blink/renderer/platform/heap/handle.h" #include "third_party/blink/renderer/platform/wtf/forward.h" namespace blink { class ScriptPromiseResolver; class ScriptState; class MODULES_EXPORT ServiceWorkerWindowClient final : public ServiceWorkerClient { DEFINE_WRAPPERTYPEINFO(); public: // To be used by CallbackPromiseAdapter. using WebType = std::unique_ptr<WebServiceWorkerClientInfo>; static ServiceWorkerWindowClient* Take( ScriptPromiseResolver*, std::unique_ptr<WebServiceWorkerClientInfo>); static ServiceWorkerWindowClient* Create(const WebServiceWorkerClientInfo&); ~ServiceWorkerWindowClient() override; // WindowClient.idl String visibilityState() const; bool focused() const { return is_focused_; } ScriptPromise focus(ScriptState*); ScriptPromise navigate(ScriptState*, const String& url); void Trace(blink::Visitor*) override; private: explicit ServiceWorkerWindowClient(const WebServiceWorkerClientInfo&); mojom::PageVisibilityState page_visibility_state_; bool is_focused_; }; } // namespace blink #endif // THIRD_PARTY_BLINK_RENDERER_MODULES_SERVICEWORKERS_SERVICE_WORKER_WINDOW_CLIENT_H_
598
3,765
/** * BSD-style license; for more info see http://pmd.sourceforge.net/license.html */ package net.sourceforge.pmd.typeresolution.testdata; import net.sourceforge.pmd.typeresolution.testdata.dummytypes.Converter; import net.sourceforge.pmd.typeresolution.testdata.dummytypes.ConverterFactory; public class NestedAnonymousClass { public class Bar { } public ConverterFactory<String, Bar> factory = new ConverterFactory<String, Bar>() { @Override public <Z extends Bar> Converter<String, Z> getConverter(Class<Z> targetType) { return new Converter<String, Z>() { @SuppressWarnings("unchecked") @Override public Z convert(String source) { return (Z) new Bar(); } }; } }; }
352
1,647
<filename>pythran/pythonic/numpy/nan.hpp #ifndef PYTHONIC_NUMPY_NAN_HPP #define PYTHONIC_NUMPY_NAN_HPP #include "pythonic/include/numpy/nan.hpp" #endif
78
1,224
<reponame>timgates42/processing.py """ Mouse 1D. Move the mouse left and right to shift the balance. The "mouseX" variable is used to control both the size and color of the rectangles. """ def setup(): size(640, 360) noStroke() colorMode(RGB, height, height, height) rectMode(CENTER) def draw(): background(0.0) r1 = map(mouseX, 0, width, 0, height) r2 = height - r1 fill(r1) rect(width / 2 + r1 / 2, height / 2, r1, r1) fill(r2) rect(width / 2 - r2 / 2, height / 2, r2, r2)
225
1,117
<reponame>icankeep/jupyterlab-lsp """work with jupyter config""" import json from pathlib import Path ENC = dict(encoding="utf-8") def update_jupyter_config(path, has_traits, **key_values): """update an existing jupyter_server_config.json""" p = Path(path) conf = json.loads(p.read_text(**ENC)) for key, value in key_values.items(): conf.setdefault(has_traits, {})[key] = value p.write_text(json.dumps(conf, indent=2, sort_keys=True), **ENC)
191
392
/******************************************************************************* * Copyright (c) 2015 * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. *******************************************************************************/ package go.graphics.region; /** * This class represents a interval in the space of double values. * * @author michael * */ public class DoubleRange { private final double min; private final double max; /** * Creates a new range of doubles. if min is bigger than max, a intervall with length 0 is created around the average of both. * * @param min * The min value * @param max * The max value. */ DoubleRange(double min, double max) { if (min <= max) { this.min = min; this.max = max; } else { double average = (min + max / 2); this.min = average; this.max = average; } } /** * Gets the minimal value, that is the start point of the interval. * * @return The min value given to the constructor. */ public double getMin() { return min; } /** * Gets the maximal value, that is the end of the interval. * * @return The max value given to the constructor. */ public double getMax() { return max; } /** * Constraints a value so that it lies inside the current interval and is as close to the given value as possible. * * @param x * The value to constraint. * @return The closest point inside the interval to the parameter x. */ public double constraint(double x) { if (x < min) { return min; } else if (x > max) { return max; } else { return x; } } /** * Gets a new Range with the given minimum as minimum, and the current maximum as maximum. Inf the current maximum is to small, the new one is * increased so that a 0-length-interval is created. * * @param d * The new minimum. * @return The new Range. */ public DoubleRange withMinimum(double d) { double min = d; double max = Math.max(d, this.max); return new DoubleRange(min, max); } }
917
2,144
<reponame>fredsterorg/incubator-pinot /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.pinot.core.data.table; import java.util.HashMap; import javax.annotation.concurrent.NotThreadSafe; import org.apache.pinot.common.utils.DataSchema; import org.apache.pinot.core.query.request.context.QueryContext; /** * {@link Table} implementation for aggregating TableRecords based on combination of keys */ @NotThreadSafe public class SimpleIndexedTable extends IndexedTable { public SimpleIndexedTable(DataSchema dataSchema, QueryContext queryContext, int resultSize, int trimSize, int trimThreshold) { super(dataSchema, queryContext, resultSize, trimSize, trimThreshold, new HashMap<>()); } /** * Non thread safe implementation of upsert to insert {@link Record} into the {@link Table} */ @Override public boolean upsert(Key key, Record record) { if (_hasOrderBy) { addOrUpdateRecord(key, record); if (_lookupMap.size() >= _trimThreshold) { resize(); } } else { if (_lookupMap.size() < _resultSize) { addOrUpdateRecord(key, record); } else { updateExistingRecord(key, record); } } return true; } }
612
5,169
{ "name": "BKYBImageBrowser", "version": "3.0.9", "summary": "YBImageBrowser改依赖为YYKit", "homepage": "https://github.com/MMDDZ", "license": "MIT", "authors": { "MMDDZ": "<EMAIL>" }, "source": { "git": "https://github.com/MMDDZ/BKYBImageBrowser", "tag": "3.0.9" }, "platforms": { "ios": "9.0" }, "source_files": "BKYBImageBrowser/**/*.{h,m}", "resources": [ "BKYBImageBrowser/Video/YBImageBrowserVideo.bundle", "BKYBImageBrowser/YBImageBrowser/YBImageBrowser.bundle" ], "dependencies": { "SDWebImage": [ "~> 5.2.3" ], "YYKit": [ "1.0.9" ] } }
312
307
<reponame>trgswe/fs2open.github.com // // #include "fireballclass.h" #include "model.h" #include "fireball/fireballs.h" namespace scripting { namespace api { //**********HANDLE: Fireballclass ADE_OBJ(l_Fireballclass, int, "fireballclass", "Fireball class handle"); ADE_FUNC(__tostring, l_Fireballclass, NULL, "Fireball class name", "string", "Fireball class unique id, or an empty string if handle is invalid") { int idx; const char* s = nullptr; if(!ade_get_args(L, "o|s", l_Fireballclass.Get(&idx), &s)) return ade_set_error(L, "s", ""); if(idx < 0 || idx >= Num_fireball_types) return ade_set_error(L, "s", ""); return ade_set_args(L, "s", Fireball_info[idx].unique_id); } ADE_FUNC(__eq, l_Fireballclass, "fireballclass, fireballclass", "Checks if the two classes are equal", "boolean", "true if equal, false otherwise") { int idx1,idx2; if(!ade_get_args(L, "oo", l_Fireballclass.Get(&idx1), l_Fireballclass.Get(&idx2))) return ade_set_error(L, "b", false); if(idx1 < 0 || idx1 >= Num_fireball_types) return ade_set_error(L, "b", false); if(idx2 < 0 || idx2 >= Num_fireball_types) return ade_set_error(L, "b", false); return ade_set_args(L, "b", idx1 == idx2); } ADE_VIRTVAR(UniqueID, l_Fireballclass, "string", "Fireball class name", "string", "Fireball class unique id, or empty string if handle is invalid") { int idx; const char* s = nullptr; if(!ade_get_args(L, "o", l_Fireballclass.Get(&idx), &s)) return ade_set_error(L, "s", ""); if(idx < 0 || idx >= Num_fireball_types) return ade_set_error(L, "s", ""); return ade_set_args(L, "s", Fireball_info[idx].unique_id); } ADE_VIRTVAR(Filename, l_Fireballclass, NULL, "Fireball class animation filename (LOD 0)", "string", "Filename, or empty string if handle is invalid") { //Currently not settable as the bitmaps are only loaded once at level start int idx; const char* s = nullptr; if(!ade_get_args(L, "o", l_Fireballclass.Get(&idx), &s)) return ade_set_error(L, "s", ""); if(idx < 0 || idx >= Num_fireball_types) return ade_set_error(L, "s", ""); return ade_set_args(L, "s", Fireball_info[idx].lod[0].filename); } ADE_VIRTVAR(NumberFrames, l_Fireballclass, NULL, "Amount of frames the animation has (LOD 0)", "number", "Amount of frames, or -1 if handle is invalid") { int idx; float f = 0.0f; if(!ade_get_args(L, "o", l_Fireballclass.Get(&idx), &f)) return ade_set_error(L, "i", -1); if(idx < 0 || idx >= Num_fireball_types) return ade_set_error(L, "i", -1); return ade_set_args(L, "i", Fireball_info[idx].lod[0].num_frames); } ADE_VIRTVAR(FPS, l_Fireballclass, NULL, "The FPS with which this fireball's animation is played (LOD 0)", "number", "FPS, or -1 if handle is invalid") { int idx; float f = 0.0f; if (!ade_get_args(L, "o", l_Fireballclass.Get(&idx), &f)) return ade_set_error(L, "i", -1); if (idx < 0 || idx >= Num_fireball_types) return ade_set_error(L, "i", -1); return ade_set_args(L, "i", Fireball_info[idx].lod[0].fps); } ADE_FUNC(isValid, l_Fireballclass, NULL, "Detects whether handle is valid", "boolean", "true if valid, false if handle is invalid, nil if a syntax/type error occurs") { int idx; if(!ade_get_args(L, "o", l_Fireballclass.Get(&idx))) return ADE_RETURN_NIL; if(idx < 0 || idx >= Num_fireball_types) return ADE_RETURN_FALSE; return ADE_RETURN_TRUE; } ADE_FUNC(getTableIndex, l_Fireballclass, NULL, "Gets the index value of the fireball class", "number", "index value of the fireball class") { int idx; if(!ade_get_args(L, "o", l_Fireballclass.Get(&idx))) return ade_set_args(L, "i", -1); if(idx < 0 || idx >= Num_fireball_types) return ade_set_args(L, "i", -1); return ade_set_args(L, "i", idx + 1); } } }
1,547
335
<reponame>draker94/vividus<gh_stars>100-1000 /* * Copyright 2019-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.vividus.ui.web.action.search; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.empty; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.params.provider.Arguments.arguments; import java.util.stream.Stream; import com.codeborne.selenide.selector.ByShadow; import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; import org.openqa.selenium.By; import org.vividus.ui.action.search.ByLocatorSearch; class WebLocatorTypeTests { @Test void shouldBuildByCssSelector() { var cssSelector = ".class"; assertEquals(By.cssSelector(cssSelector), WebLocatorType.CSS_SELECTOR.buildBy(cssSelector)); } @Test void shouldBuildByClassName() { var className = "class"; assertEquals(By.className(className), WebLocatorType.CLASS_NAME.buildBy(className)); } @Test void shouldBuildByXpath() { var xpath = "//xpath"; assertEquals(By.xpath(xpath), WebLocatorType.XPATH.buildBy(xpath)); } @Test void shouldBuildById() { var id = "id"; assertEquals(By.id(id), WebLocatorType.ID.buildBy(id)); } @Test void shouldBuildByImageSrc() { var imageSrc = "img.png"; assertEquals(By.xpath(".//img[normalize-space(@src)=\"img.png\"]"), WebLocatorType.IMAGE_SRC.buildBy(imageSrc)); } @Test void shouldBuildByImageSrcPart() { var imageSrcPart = "a.png"; assertEquals(By.xpath(".//img[contains(normalize-space(@src),\"a.png\")]"), WebLocatorType.IMAGE_SRC_PART.buildBy(imageSrcPart)); } @Test void shouldBuildByTagName() { var tagName = "div"; assertEquals(By.tagName(tagName), WebLocatorType.TAG_NAME.buildBy(tagName)); } @Test void shouldBuildByPartialLinkText() { var value = "text"; assertEquals(By.xpath(".//a[contains(normalize-space(.), \"text\") and not(.//a[contains(normalize-space(.), " + "\"text\")])]"), WebLocatorType.PARTIAL_LINK_TEXT.buildBy(value)); } @Test void shouldBuildByFieldName() { var value = "field"; assertEquals(By.xpath(".//*[(local-name() = 'input' or local-name() = 'textarea' or local-name()='body') and " + "((@* | text())=\"field\")]"), WebLocatorType.FIELD_NAME.buildBy(value)); } @Test void shouldBuildByCaseInsensitiveText() { var value = "locator"; var expected = By.xpath( ".//*[text()[normalize-space(translate(., 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'))" + "=\"locator\"] or @*[normalize-space(translate(., 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', " + "'abcdefghijklmnopqrstuvwxyz'))=\"locator\"] or *[normalize-space(translate(., " + "'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'))=\"locator\"] and not(" + ".//*[text()" + "[normalize-space(translate(., 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'))=" + "\"locator\"] or @*[normalize-space(translate(., 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', " + "'abcdefghijklmnopqrstuvwxyz'))=\"locator\"] or *[normalize-space(translate(.," + " 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'))=\"locator\"]])]"); assertEquals(expected, WebLocatorType.CASE_INSENSITIVE_TEXT.buildBy(value)); } @Test void shouldBuildByTooltip() { var tooltip = "tooltip"; assertEquals(By.xpath(".//*[normalize-space(@title)=\"tooltip\"]"), WebLocatorType.TOOLTIP.buildBy(tooltip)); } @Test void shouldBuildByShadowDomCss() { assertEquals(ByShadow.cssSelector("h1", "div1", "div2"), WebLocatorType.SHADOW_CSS_SELECTOR.buildBy("div1; div2; h1")); } static Stream<Arguments> dataSet() { return Stream.of( arguments(WebLocatorType.ID, "Id", ByLocatorSearch.class), arguments(WebLocatorType.TAG_NAME, "Tag name", ByLocatorSearch.class) ); } @MethodSource("dataSet") @ParameterizedTest void testWebAttributeType(WebLocatorType type, String name, Class<?> actionClass) { assertEquals(type.getAttributeName(), name); assertEquals(type.getActionClass(), actionClass); assertThat(type.getCompetingTypes(), empty()); assertEquals(type.name(), type.getKey()); } }
2,384